eai-frontend-components 2.0.59 → 2.0.61

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" | "surface" | "destructive" | "outline" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
83
+ variant?: "default" | "secondary" | "destructive" | "outline" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | 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
  }
package/dist/index.esm.js CHANGED
@@ -9562,7 +9562,7 @@ const FormRadioGroup = ({ control, name, value, label, subLabel, helpText, class
9562
9562
  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) => {
9563
9563
  field?.onChange?.(value);
9564
9564
  onChange?.(value);
9565
- }, defaultValue: field.value, disabled: disabled || formState.isSubmitting, className: `${className}`, children: jsx("div", { className: cn('flex flex-grow gap-6', classNameOptions), children: options?.map((option, index) => (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 }), jsx(Label, { htmlFor: `r${option.value}`, className: option.disabled ? 'opacity-50' : '', children: option.label })] }, `radio-${name}-${index}`), option.description && (jsx("div", { className: cn('pl-6 text-zinc-500', { 'opacity-50': option.disabled }), children: option.description }))] }, `radio-${name}-${index}`))) }) }) }), formMessage(FormMessage)] })) }, value));
9565
+ }, defaultValue: field.value, disabled: disabled || formState.isSubmitting, className: `${className}`, children: jsx("div", { className: cn('flex flex-grow gap-6', classNameOptions), children: options?.map((option) => (jsx("label", { htmlFor: `r${option.value}`, className: 'cursor-pointer disabled:cursor-not-allowed 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 }), 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));
9566
9566
  };
9567
9567
 
9568
9568
  const FormSelect = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, options }) => {