eai-frontend-components 2.0.73 → 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 +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- 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: disabled ? (jsxRuntime.jsx(lucideReact.CalendarIcon, { size: 16, className: '
|
|
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: 'text-gray-500 cursor-not-allowed' })) : (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({
|