eai-frontend-components 2.0.72 → 2.0.74

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
@@ -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" | "type" | "value"> & {
227
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
228
228
  value?: string;
229
229
  onValueChange?: (search: string) => void;
230
230
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -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>>, "disabled" | "value" | "onSelect"> & {
272
272
  disabled?: boolean;
273
273
  onSelect?: (value: string) => void;
274
274
  value?: string;
package/dist/index.esm.js CHANGED
@@ -9401,7 +9401,7 @@ const FormInputDate = ({ control, name, label, subLabel, helpText, placeholder =
9401
9401
  if (onKeyUp) {
9402
9402
  onKeyUp(e);
9403
9403
  }
9404
- } }), jsx("div", { className: 'absolute left-3 top-1/2 -translate-y-1/2 cursor-pointer', children: jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsx(PopoverTrigger, { asChild: true, children: jsx(CalendarIcon, { size: 16, className: 'cursor-pointer text-gray-500' }) }), jsx(PopoverContent, { className: 'w-[250px] p-0', align: 'start', children: jsx(Calendar, { mode: 'single', locale: ptBR, required: true, selected: stringToDate(field.value) ?? new Date(), onSelect: (date) => {
9404
+ } }), jsx("div", { className: 'absolute left-3 top-1/2 -translate-y-1/2 cursor-pointer', children: disabled ? (jsx(CalendarIcon, { size: 16, className: 'text-gray-500 cursor-not-allowed' })) : (jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsx(PopoverTrigger, { asChild: true, children: jsx(CalendarIcon, { size: 16, className: 'cursor-pointer text-gray-500' }) }), jsx(PopoverContent, { className: 'w-[250px] p-0', align: 'start', children: jsx(Calendar, { mode: 'single', locale: ptBR, required: true, selected: stringToDate(field.value) ?? new Date(), onSelect: (date) => {
9405
9405
  field.onChange(date ? date.toLocaleDateString('pt-BR') : '');
9406
9406
  if (onChange) {
9407
9407
  onChange({
@@ -9409,7 +9409,7 @@ const FormInputDate = ({ control, name, label, subLabel, helpText, placeholder =
9409
9409
  });
9410
9410
  }
9411
9411
  setOpen(false);
9412
- }, className: 'rounded-md', captionLayout: 'dropdown' }) })] }) })] }) }), formMessage(FormMessage)] })) }));
9412
+ }, className: 'rounded-md', captionLayout: 'dropdown' }) })] })) })] }) }), formMessage(FormMessage)] })) }));
9413
9413
  };
9414
9414
 
9415
9415
  const FormDataRange = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, onChange, }) => {