eai-frontend-components 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -15
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
|
|
|
77
77
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
78
78
|
|
|
79
79
|
declare const badgeVariants: (props?: ({
|
|
80
|
-
variant?: "default" | "
|
|
80
|
+
variant?: "default" | "outline" | "destructive" | "secondary" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
|
|
81
81
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
82
82
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
83
83
|
}
|
|
@@ -102,7 +102,7 @@ declare const BreadcrumbEllipsis: {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
declare const buttonVariants: (props?: ({
|
|
105
|
-
variant?: "
|
|
105
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
106
106
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
107
107
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
108
108
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -201,11 +201,11 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
|
|
|
201
201
|
|
|
202
202
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
203
203
|
children?: React$1.ReactNode;
|
|
204
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
204
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
205
205
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
206
206
|
} & {
|
|
207
207
|
asChild?: boolean;
|
|
208
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "
|
|
208
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
209
209
|
label?: string;
|
|
210
210
|
shouldFilter?: boolean;
|
|
211
211
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -221,51 +221,51 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
|
|
|
221
221
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
222
222
|
} & {
|
|
223
223
|
asChild?: boolean;
|
|
224
|
-
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
224
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
225
225
|
value?: string;
|
|
226
226
|
onValueChange?: (search: string) => void;
|
|
227
227
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
228
228
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
229
229
|
children?: React$1.ReactNode;
|
|
230
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
230
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
231
231
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
232
232
|
} & {
|
|
233
233
|
asChild?: boolean;
|
|
234
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "
|
|
234
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
235
235
|
label?: string;
|
|
236
236
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
237
237
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
238
238
|
children?: React$1.ReactNode;
|
|
239
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
239
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
240
240
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
241
241
|
} & {
|
|
242
242
|
asChild?: boolean;
|
|
243
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "
|
|
243
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
244
244
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
245
245
|
children?: React$1.ReactNode;
|
|
246
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
246
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
247
247
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
248
248
|
} & {
|
|
249
249
|
asChild?: boolean;
|
|
250
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "
|
|
250
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
251
251
|
heading?: React$1.ReactNode;
|
|
252
252
|
value?: string;
|
|
253
253
|
forceMount?: boolean;
|
|
254
254
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
255
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
255
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
256
256
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
257
257
|
} & {
|
|
258
258
|
asChild?: boolean;
|
|
259
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "
|
|
259
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
260
260
|
alwaysRender?: boolean;
|
|
261
261
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
262
262
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
263
263
|
children?: React$1.ReactNode;
|
|
264
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
264
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
265
265
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
266
266
|
} & {
|
|
267
267
|
asChild?: boolean;
|
|
268
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "
|
|
268
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
269
269
|
disabled?: boolean;
|
|
270
270
|
onSelect?: (value: string) => void;
|
|
271
271
|
value?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -3018,7 +3018,7 @@ const SidebarItemTwoLines = ({ item }) => {
|
|
|
3018
3018
|
};
|
|
3019
3019
|
|
|
3020
3020
|
const ModuleSwitcher = ({ modules, activeModule, onModuleChange, }) => {
|
|
3021
|
-
const isMobile =
|
|
3021
|
+
const { isMobile } = useSidebar();
|
|
3022
3022
|
return (jsx(SidebarMenu, { children: jsx(SidebarMenuItem, { children: jsxs(DropdownMenu, { children: [jsx(DropdownMenuTrigger, { asChild: true, children: jsx(SidebarMenuButton, { size: 'lg', className: 'data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground', children: jsx(SidebarItemTwoLines, { item: {
|
|
3023
3023
|
iconLeft: (jsx("div", { className: 'flex p-[7.6px] items-center rounded-md bg-background-primary', children: activeModule?.icon })),
|
|
3024
3024
|
title: activeModule?.title ?? '',
|
|
@@ -3094,7 +3094,7 @@ const NavMain = ({ pages }) => {
|
|
|
3094
3094
|
|
|
3095
3095
|
const NavUser = ({ userName, userEmail, userInitials, callbackLogout }) => {
|
|
3096
3096
|
const [isLoggingOut, setIsLoggingOut] = useState(false);
|
|
3097
|
-
const isMobile =
|
|
3097
|
+
const { isMobile } = useSidebar();
|
|
3098
3098
|
const handleLogout = () => {
|
|
3099
3099
|
setIsLoggingOut(true);
|
|
3100
3100
|
setTimeout(() => {
|