lizaui 3.0.23 → 3.0.24
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/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +2 -2
- package/dist/calendar/index.es.js.map +1 -1
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.cjs.js.map +1 -1
- package/dist/table/index.es.js +34 -34
- package/dist/table/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -421,5 +421,5 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
/* RANGE */
|
|
424
|
-
`,rm=({id:e,value:t,showDoubleView:n,className:r,color:a="primary",minDate:o,maxDate:i,showCalendar:s=!1,loading:c,widthCalendar:u,locale:l="es",format:f="MM/dd/yyyy",disabled:d,error:v,label:p,touched:h,required:y,onChange:g,onCloseCalendar:w,onOpenCalendar:E,tileDisabled:O,onClearCalendar:C,onInvalidChange:_,onKeyDown:D,onKeyUp:P,onBlur:q,type:Y="date-picker",size:ne="md",tileContent:X=null})=>{const[ee,W]=b.useState(s),ae=b.useRef(0),R=fu.v4(),le=b.useId(),ce=e||le,M=!d&&!!v&&h;b.useEffect(()=>{const L=document.getElementById(R);L&&(u?ae.current=u:ae.current=L.clientWidth)},[n,R,u]);const k=L=>{g(L),W(!1)},V=()=>{const L=new Date,B=new Date(L.getFullYear(),L.getMonth(),L.getDate(),0,0,0);k(B)},T=()=>{d||(W(!1),w&&w())},re=()=>{if(d)return;const L=!ee;W(L),L&&E?E():w&&w()},K=()=>{if(!d){if(C)return C();g(null)}},de=po.cn("block font-normal text-sm text-gray-700 mb-1",{"text-danger":M});return m.jsxRuntimeExports.jsx(wu.Popover,{isOpen:ee,content:m.jsxRuntimeExports.jsxs(Ai,{color:a,showcalendar:ee.toString(),widthcalendar:ae.current,children:[c?m.jsxRuntimeExports.jsx("p",{children:"loading"}):null,m.jsxRuntimeExports.jsxs("div",{className:"w-full relative flex flex-col gap-2",children:[m.jsxRuntimeExports.jsx(Qs,{value:t,onChange:k,locale:l,showDoubleView:n,calendarType:"gregory",minDate:o,maxDate:i,tileDisabled:O,selectRange:Y==="date-range-picker",returnValue:Y==="date-range-picker"?"range":"start",prevLabel:m.jsxRuntimeExports.jsx(xu,{className:"w-4 h-5"}),nextLabel:m.jsxRuntimeExports.jsx(_u,{className:"w-4 h-5"}),tileContent:X}),m.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-x-4 p-3 w-full",children:[m.jsxRuntimeExports.jsx(go.Button,{onClick:V,color:a,className:"flex-1",children:"Hoy"}),m.jsxRuntimeExports.jsx(go.Button,{color:"default",variant:"bordered",className:"flex-1",onClick:()=>W(!1),children:"Cerrar"})]})]})]}),positions:["bottom","top"],reposition:!0,onClickOutside:T,clickOutsideCapture:!0,containerClassName:"shadow-lg bg-
|
|
424
|
+
`,rm=({id:e,value:t,showDoubleView:n,className:r,color:a="primary",minDate:o,maxDate:i,showCalendar:s=!1,loading:c,widthCalendar:u,locale:l="es",format:f="MM/dd/yyyy",disabled:d,error:v,label:p,touched:h,required:y,onChange:g,onCloseCalendar:w,onOpenCalendar:E,tileDisabled:O,onClearCalendar:C,onInvalidChange:_,onKeyDown:D,onKeyUp:P,onBlur:q,type:Y="date-picker",size:ne="md",tileContent:X=null})=>{const[ee,W]=b.useState(s),ae=b.useRef(0),R=fu.v4(),le=b.useId(),ce=e||le,M=!d&&!!v&&h;b.useEffect(()=>{const L=document.getElementById(R);L&&(u?ae.current=u:ae.current=L.clientWidth)},[n,R,u]);const k=L=>{g(L),W(!1)},V=()=>{const L=new Date,B=new Date(L.getFullYear(),L.getMonth(),L.getDate(),0,0,0);k(B)},T=()=>{d||(W(!1),w&&w())},re=()=>{if(d)return;const L=!ee;W(L),L&&E?E():w&&w()},K=()=>{if(!d){if(C)return C();g(null)}},de=po.cn("block font-normal text-sm text-gray-700 mb-1",{"text-danger":M});return m.jsxRuntimeExports.jsx(wu.Popover,{isOpen:ee,content:m.jsxRuntimeExports.jsxs(Ai,{color:a,showcalendar:ee.toString(),widthcalendar:ae.current,className:"w-full",children:[c?m.jsxRuntimeExports.jsx("p",{children:"loading"}):null,m.jsxRuntimeExports.jsxs("div",{className:"w-full relative flex flex-col gap-2",children:[m.jsxRuntimeExports.jsx(Qs,{value:t,onChange:k,locale:l,showDoubleView:n,calendarType:"gregory",minDate:o,maxDate:i,tileDisabled:O,selectRange:Y==="date-range-picker",returnValue:Y==="date-range-picker"?"range":"start",prevLabel:m.jsxRuntimeExports.jsx(xu,{className:"w-4 h-5"}),nextLabel:m.jsxRuntimeExports.jsx(_u,{className:"w-4 h-5"}),tileContent:X}),m.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-x-4 p-3 w-full",children:[m.jsxRuntimeExports.jsx(go.Button,{onClick:V,color:a,className:"flex-1",children:"Hoy"}),m.jsxRuntimeExports.jsx(go.Button,{color:"default",variant:"bordered",className:"flex-1",onClick:()=>W(!1),children:"Cerrar"})]})]})]}),positions:["bottom","top"],reposition:!0,onClickOutside:T,clickOutsideCapture:!0,containerClassName:"shadow-lg bg-content1 rounded-lg",children:m.jsxRuntimeExports.jsxs(Ai,{color:a,className:kn.twMerge(r),onClick:re,showcalendar:ee.toString(),id:R,widthcalendar:ae.current,error:v,size:ne,children:[p&&m.jsxRuntimeExports.jsxs("label",{htmlFor:ce,className:de,children:[p," ",y&&m.jsxRuntimeExports.jsx("span",{className:"text-danger",children:"*"})]}),Y==="date-picker"?m.jsxRuntimeExports.jsx(Vf,{id:ce,value:t,onChange:g,calendarIcon:m.jsxRuntimeExports.jsx(vi,{disabled:d,error:v}),shouldOpenCalendar:()=>!1,className:kn.twMerge("w-full",r),format:f,locale:l,showLeadingZeros:!0,clearIcon:m.jsxRuntimeExports.jsx(mi,{disabled:d,error:v,onClick:K}),minDate:o,maxDate:i,disabled:d,onInvalidChange:_,isOpen:!1,onKeyDown:D,onKeyUp:P,onBlur:q,dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY"}):m.jsxRuntimeExports.jsx(Uf,{id:ce,value:t,onChange:g,calendarIcon:m.jsxRuntimeExports.jsx(vi,{disabled:d,error:v}),shouldOpenCalendar:()=>!1,className:kn.twMerge("w-full",r),format:f,locale:l,showLeadingZeros:!0,clearIcon:m.jsxRuntimeExports.jsx(mi,{disabled:d,error:v,onClick:K}),minDate:o,maxDate:i,disabled:d,onInvalidChange:_,isOpen:!1,onKeyDown:D,onKeyUp:P,dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY"}),!d&&v?m.jsxRuntimeExports.jsx(po.LabelError,{text:v}):null]})})};exports.CalendarPicker=rm;
|
|
425
425
|
//# sourceMappingURL=index.cjs.js.map
|