eai-frontend-components 2.0.78 → 2.0.79

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 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" | "secondary" | "destructive" | "outline" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | "yellow" | null | undefined;
83
+ variant?: "default" | "outline" | "destructive" | "secondary" | "surface" | "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" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
108
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "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> {
@@ -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" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "onSelect" | "value" | "disabled"> & {
271
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
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" | "secondary" | "destructive" | "inverted" | null | undefined;
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
@@ -9566,7 +9566,7 @@ const FormInputPhone = ({ control, name, label, subLabel, helpText, placeholder,
9566
9566
 
9567
9567
  const FormRadioGroup = ({ control, name, value, label, subLabel, helpText, className, classNameOptions, disabled, required, size = 'md', options, onChange, }) => {
9568
9568
  const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
9569
- return (jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (jsxs(FormItem, { children: [jsxs("div", { className: cn('flex items-center space-x-1.5 mb-2', className), children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), jsx(FormControl, { children: jsx(RadioGroup, { onValueChange: (value) => {
9569
+ return (jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (jsxs(FormItem, { children: [label && (jsxs("div", { className: cn('flex items-center space-x-1.5 mb-2', className), children: [formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] })), jsx(FormControl, { children: jsx(RadioGroup, { onValueChange: (value) => {
9570
9570
  field?.onChange?.(value);
9571
9571
  onChange?.(value);
9572
9572
  }, defaultValue: field.value, disabled: disabled || formState.isSubmitting, className: `${className}`, children: jsx("div", { className: cn('flex flex-grow gap-6 font-medium text-sm', classNameOptions), children: options?.map((option) => (jsx("label", { htmlFor: `r${option.value}`, className: cn(option.disabled ? 'cursor-not-allowed' : 'cursor-pointer', 'block'), children: jsxs("div", { className: 'flex flex-col', children: [jsxs("div", { className: 'flex items-center space-x-2', children: [jsx(RadioGroupItem, { value: option.value, id: `r${option.value}`, checked: field.value === option.value, disabled: option.disabled, size: size }), jsx("div", { className: option.disabled ? 'opacity-50' : '', children: option.label })] }), option.description && (jsx("div", { className: cn('pl-6 text-zinc-500', { 'opacity-50': option.disabled }), children: option.description }))] }) }, `radio-${name}-${option.value}`))) }) }) }), formMessage(FormMessage)] })) }, value));