eai-frontend-components 2.0.93 → 2.0.95
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 +10 -10
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
|
|
|
80
80
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
81
81
|
|
|
82
82
|
declare const badgeVariants: (props?: ({
|
|
83
|
-
variant?: "default" | "
|
|
83
|
+
variant?: "default" | "destructive" | "secondary" | "surface" | "outline" | "green" | "red" | "gray" | "blue" | "orange" | "yellow" | null | undefined;
|
|
84
84
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
85
85
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
86
86
|
}
|
|
@@ -105,7 +105,7 @@ declare const BreadcrumbEllipsis: {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
declare const buttonVariants: (props?: ({
|
|
108
|
-
variant?: "link" | "default" | "
|
|
108
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "primary" | "ghost" | null | undefined;
|
|
109
109
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
110
110
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
111
111
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -208,7 +208,7 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
208
208
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
209
209
|
} & {
|
|
210
210
|
asChild?: boolean;
|
|
211
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement
|
|
211
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
212
212
|
label?: string;
|
|
213
213
|
shouldFilter?: boolean;
|
|
214
214
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -224,7 +224,7 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
|
|
|
224
224
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
225
225
|
} & {
|
|
226
226
|
asChild?: boolean;
|
|
227
|
-
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
227
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
228
228
|
value?: string;
|
|
229
229
|
onValueChange?: (search: string) => void;
|
|
230
230
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -234,7 +234,7 @@ declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
234
234
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
235
235
|
} & {
|
|
236
236
|
asChild?: boolean;
|
|
237
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement
|
|
237
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
238
238
|
label?: string;
|
|
239
239
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
240
240
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
@@ -243,14 +243,14 @@ declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
243
243
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
244
244
|
} & {
|
|
245
245
|
asChild?: boolean;
|
|
246
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement
|
|
246
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
247
247
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
248
248
|
children?: React$1.ReactNode;
|
|
249
249
|
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
250
250
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
251
251
|
} & {
|
|
252
252
|
asChild?: boolean;
|
|
253
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement
|
|
253
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
254
254
|
heading?: React$1.ReactNode;
|
|
255
255
|
value?: string;
|
|
256
256
|
forceMount?: boolean;
|
|
@@ -259,7 +259,7 @@ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick
|
|
|
259
259
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
260
260
|
} & {
|
|
261
261
|
asChild?: boolean;
|
|
262
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement
|
|
262
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
263
263
|
alwaysRender?: boolean;
|
|
264
264
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
265
265
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
@@ -268,7 +268,7 @@ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
268
268
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
269
269
|
} & {
|
|
270
270
|
asChild?: boolean;
|
|
271
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement
|
|
271
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "onSelect" | "value" | "disabled"> & {
|
|
272
272
|
disabled?: boolean;
|
|
273
273
|
onSelect?: (value: string) => void;
|
|
274
274
|
value?: string;
|
|
@@ -883,7 +883,7 @@ interface Props$8 {
|
|
|
883
883
|
declare const FormInputMask: React.FC<Props$8>;
|
|
884
884
|
|
|
885
885
|
declare const multiSelectVariants: (props?: ({
|
|
886
|
-
variant?: "default" | "
|
|
886
|
+
variant?: "default" | "destructive" | "secondary" | "inverted" | null | undefined;
|
|
887
887
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
888
888
|
interface MultiSelectOption {
|
|
889
889
|
value: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -9267,7 +9267,7 @@ const FormCombobox = ({ control, variant = 'outline', name, label, subLabel, hel
|
|
|
9267
9267
|
const handleSelect = (value, field) => {
|
|
9268
9268
|
const option = value ? getSelectedOption(value) : undefined;
|
|
9269
9269
|
if (canUnselect) {
|
|
9270
|
-
field.onChange(field.value === value ?
|
|
9270
|
+
field.onChange(field.value === value ? '' : value);
|
|
9271
9271
|
}
|
|
9272
9272
|
else {
|
|
9273
9273
|
field.onChange(value);
|
|
@@ -10139,7 +10139,8 @@ const NotFound = () => {
|
|
|
10139
10139
|
};
|
|
10140
10140
|
|
|
10141
10141
|
function NodeCard({ node, onNodeClick, isExpanded, hasChildren, onToggle, searchTerm }) {
|
|
10142
|
-
const isHighlighted = !!searchTerm?.trim() &&
|
|
10142
|
+
const isHighlighted = !!searchTerm?.trim() &&
|
|
10143
|
+
(node.title.toLowerCase().includes(searchTerm.toLowerCase()) || node.description?.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
10143
10144
|
return (jsx(Card, { className: cn('w-44 border transition-colors', onNodeClick && 'cursor-pointer hover:border-primary', isHighlighted && 'border-primary bg-primary/10'), onClick: () => onNodeClick?.(node), children: jsxs(CardContent, { className: 'flex flex-col gap-1.5 p-3', children: [jsx("div", { className: 'flex items-start justify-between gap-1', children: jsx(TooltipProvider, { children: jsxs(Tooltip, { children: [jsx(TooltipTrigger, { asChild: true, children: jsx("span", { className: 'line-clamp-2 text-sm font-medium leading-snug', children: node.title }) }), jsx(TooltipContent, { side: 'top', children: node.title })] }) }) }), node.description && jsx("p", { className: 'line-clamp-1 text-xs text-muted-foreground', children: node.description }), node.badges && (jsx("div", { className: 'flex justify-between gap-2', children: node.badges.map((badge, index) => (jsxs(Badge, { variant: badge.variant ?? 'secondary', className: 'mt-0.5 shrink-0 text-xs', children: [badge.icon && jsx("span", { className: 'mr-1', children: badge.icon }), badge.label] }, index))) })), node.icon && jsx("div", { className: 'text-muted-foreground', children: node.icon }), hasChildren && (jsx("div", { className: 'flex justify-center pt-0.5', children: jsx(Button, { type: 'button', variant: 'ghost', size: 'icon', className: 'h-5 w-5', onClick: (e) => {
|
|
10144
10145
|
e.stopPropagation();
|
|
10145
10146
|
onToggle();
|