eai-frontend-components 2.0.72 → 2.0.73
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 +1 -1
- 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.js
CHANGED
|
@@ -9441,7 +9441,7 @@ const FormInputDate = ({ control, name, label, subLabel, helpText, placeholder =
|
|
|
9441
9441
|
if (onKeyUp) {
|
|
9442
9442
|
onKeyUp(e);
|
|
9443
9443
|
}
|
|
9444
|
-
} }), jsxRuntime.jsx("div", { className: 'absolute left-3 top-1/2 -translate-y-1/2 cursor-pointer', children: jsxRuntime.jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: jsxRuntime.jsx(lucideReact.CalendarIcon, { size: 16, className: 'cursor-pointer text-gray-500' }) }), jsxRuntime.jsx(PopoverContent, { className: 'w-[250px] p-0', align: 'start', children: jsxRuntime.jsx(Calendar, { mode: 'single', locale: ptBR, required: true, selected: stringToDate(field.value) ?? new Date(), onSelect: (date) => {
|
|
9444
|
+
} }), jsxRuntime.jsx("div", { className: 'absolute left-3 top-1/2 -translate-y-1/2 cursor-pointer', children: disabled ? (jsxRuntime.jsx(lucideReact.CalendarIcon, { size: 16, className: 'cursor-pointer text-gray-500' })) : (jsxRuntime.jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: jsxRuntime.jsx(lucideReact.CalendarIcon, { size: 16, className: 'cursor-pointer text-gray-500' }) }), jsxRuntime.jsx(PopoverContent, { className: 'w-[250px] p-0', align: 'start', children: jsxRuntime.jsx(Calendar, { mode: 'single', locale: ptBR, required: true, selected: stringToDate(field.value) ?? new Date(), onSelect: (date) => {
|
|
9445
9445
|
field.onChange(date ? date.toLocaleDateString('pt-BR') : '');
|
|
9446
9446
|
if (onChange) {
|
|
9447
9447
|
onChange({
|
|
@@ -9449,7 +9449,7 @@ const FormInputDate = ({ control, name, label, subLabel, helpText, placeholder =
|
|
|
9449
9449
|
});
|
|
9450
9450
|
}
|
|
9451
9451
|
setOpen(false);
|
|
9452
|
-
}, className: 'rounded-md', captionLayout: 'dropdown' }) })] }) })] }) }), formMessage(FormMessage)] })) }));
|
|
9452
|
+
}, className: 'rounded-md', captionLayout: 'dropdown' }) })] })) })] }) }), formMessage(FormMessage)] })) }));
|
|
9453
9453
|
};
|
|
9454
9454
|
|
|
9455
9455
|
const FormDataRange = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, onChange, }) => {
|