diff --git a/app/[locale]/institute/sections/library/collection-and-resources/page.tsx b/app/[locale]/institute/sections/library/collection-and-resources/page.tsx index 2bf6173d..b75671ac 100644 --- a/app/[locale]/institute/sections/library/collection-and-resources/page.tsx +++ b/app/[locale]/institute/sections/library/collection-and-resources/page.tsx @@ -125,7 +125,7 @@ export default async function CollectionAndResources({
- +
{text.eResourcesTable.heading.srno} diff --git a/app/[locale]/login/login.tsx b/app/[locale]/login/login.tsx index 21000c14..a4fefe0d 100644 --- a/app/[locale]/login/login.tsx +++ b/app/[locale]/login/login.tsx @@ -26,7 +26,7 @@ const Login = async ({ locale }: { locale: string }) => {
@@ -269,7 +271,7 @@ const ResultsView = async ({

{categories[category]}

{currentCategory === 'all' && ( diff --git a/components/carousels/gallery.tsx b/components/carousels/gallery.tsx index f594fc68..347fde92 100644 --- a/components/carousels/gallery.tsx +++ b/components/carousels/gallery.tsx @@ -12,12 +12,12 @@ const GalleryCarousel = ({ carouselProps, children, className, - itemClassName, + classNames, }: { carouselProps?: CarouselProps; children: React.ReactNode[]; className?: string; - itemClassName?: string; + classNames?: { item?: string }; }) => { return (
@@ -35,7 +35,7 @@ const GalleryCarousel = ({ key={index} className={cn( 'sm:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5', - itemClassName + classNames?.item )} > {child} diff --git a/components/inputs/input.tsx b/components/inputs/input.tsx index fec79826..ac99d16e 100644 --- a/components/inputs/input.tsx +++ b/components/inputs/input.tsx @@ -19,7 +19,7 @@ export interface InputProps debounceTo?: string; description?: string; id: string; - inputClassName?: string; + classNames?: { input?: string }; label?: string; reserveSpaceForError?: boolean; showError?: boolean; @@ -54,7 +54,7 @@ const Input = forwardRef( debounceEvery, debounceTo, description, - inputClassName, + classNames, label, onBlur, onChange, @@ -124,7 +124,7 @@ const Input = forwardRef( focusedOnce && 'invalid:border-primary-500 invalid:focus-visible:ring-primary-500', (type === 'checkbox' || type === 'radio') && 'h-5 w-5 ', //incomplete - inputClassName + classNames?.input )} onBlur={(event) => { if (!focusedOnce) setFocusedOnce(true); diff --git a/components/inputs/multi-select.tsx b/components/inputs/multi-select.tsx index 787cdb4f..cf0aabce 100644 --- a/components/inputs/multi-select.tsx +++ b/components/inputs/multi-select.tsx @@ -56,7 +56,7 @@ export interface MultipleSelectorProps { /** Group the options base on provided key. */ groupBy?: string; className?: string; - badgeClassName?: string; + classNames?: { badge?: string }; /** * First item selected is a default behavior by cmdk. That is why the default is true. * This is a workaround solution by add a dummy item. @@ -172,7 +172,7 @@ const MultipleSelector = React.forwardRef< disabled, groupBy, className, - badgeClassName, + classNames, selectFirstItem = true, creatable = false, triggerSearchOnFocus = false, @@ -375,7 +375,7 @@ const MultipleSelector = React.forwardRef< className={cn( 'data-[disabled]:cursor-not-allowed data-[disabled]:border-0 data-[disabled]:bg-neutral-200/30 data-[disabled]:ring-0', 'bg-primary-300 data-[fixed]:bg-neutral-400 data-[fixed]:text-neutral-700 data-[fixed]:hover:bg-neutral-400', - badgeClassName + classNames?.badge )} > {option} diff --git a/components/ui/scroll-area.tsx b/components/ui/scroll-area.tsx index 8872b629..519ef3f1 100644 --- a/components/ui/scroll-area.tsx +++ b/components/ui/scroll-area.tsx @@ -8,9 +8,11 @@ import { cn } from '~/lib/utils'; const ScrollArea = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { - scrollBarClassName?: string; + classNames?: { + scrollBar?: string; + }; } ->(({ className, children, scrollBarClassName, ...props }, ref) => ( +>(({ children, className, classNames, ...props }, ref) => ( {children} - + )); diff --git a/components/ui/table.tsx b/components/ui/table.tsx index 8b7756e0..9d4c5954 100644 --- a/components/ui/table.tsx +++ b/components/ui/table.tsx @@ -7,16 +7,19 @@ import { ScrollArea } from '.'; const Table = React.forwardRef< HTMLTableElement, React.HTMLAttributes & { - scrollAreaClassName?: string; + classNames?: { + scrollArea?: string; + scrollBar?: string; + }; } ->(({ className, scrollAreaClassName, ...props }, ref) => ( +>(({ className, classNames, ...props }, ref) => (