lizaui 3.0.26 → 3.0.27
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 +9 -6
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +209 -207
- package/dist/calendar/index.es.js.map +1 -1
- package/dist/chunks/{index-aJH5hxzX.js → index-CAN9sAU3.js} +3 -3
- package/dist/chunks/{index-aJH5hxzX.js.map → index-CAN9sAU3.js.map} +1 -1
- package/dist/chunks/{index-CsBpUUVP.js → index-DwUBdMuM.js} +2 -2
- package/dist/chunks/{index-CsBpUUVP.js.map → index-DwUBdMuM.js.map} +1 -1
- package/dist/components/calendar/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/calendar/date-picker/date-picker.style.d.ts.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +1 -1
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +2 -2
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
96
96
|
padding-left: 8px;
|
|
97
97
|
border: 1px solid var(--color-gray-300);
|
|
98
98
|
border-radius: 6px;
|
|
99
|
-
|
|
99
|
+
background-color: var(--color-white);
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-grow: 1;
|
|
102
102
|
flex-shrink: 0;
|
|
@@ -199,6 +199,8 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
199
199
|
padding: 12px;
|
|
200
200
|
font-family: var(--font-family-base);
|
|
201
201
|
min-width: 320px;
|
|
202
|
+
border-radius: calc(var(--radius) - 2px);
|
|
203
|
+
background-color: var(--color-content1-default);
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
/* .react-calendar--doubleView {
|
|
@@ -208,6 +210,7 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
208
210
|
.react-calendar__navigation {
|
|
209
211
|
height: 44px;
|
|
210
212
|
margin-bottom: 6px;
|
|
213
|
+
gap: 2px;
|
|
211
214
|
}
|
|
212
215
|
.react-calendar__navigation__prev2-button,
|
|
213
216
|
.react-calendar__navigation__next2-button {
|
|
@@ -217,7 +220,7 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
217
220
|
.react-calendar__navigation__next-button,
|
|
218
221
|
.react-calendar__navigation__prev-button {
|
|
219
222
|
font-size: 22px;
|
|
220
|
-
color: var(--color-
|
|
223
|
+
color: var(--color-default-900);
|
|
221
224
|
}
|
|
222
225
|
|
|
223
226
|
.react-calendar__navigation__label {
|
|
@@ -226,18 +229,18 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
226
229
|
|
|
227
230
|
.react-calendar__navigation__label span {
|
|
228
231
|
text-transform: capitalize;
|
|
229
|
-
color: var(--color-
|
|
232
|
+
color: var(--color-default-900);
|
|
230
233
|
font-weight: bold;
|
|
231
234
|
font-size: 14px;
|
|
232
235
|
}
|
|
233
236
|
|
|
234
237
|
.react-calendar__navigation button:disabled {
|
|
235
|
-
background-color: var(--color-
|
|
238
|
+
background-color: var(--color-default-100);
|
|
236
239
|
}
|
|
237
240
|
|
|
238
241
|
.react-calendar__navigation button:enabled:hover,
|
|
239
242
|
.react-calendar__navigation button:enabled:focus {
|
|
240
|
-
background-color: var(--color-
|
|
243
|
+
background-color: var(--color-default-200);
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
.react-calendar__month-view__weekdays__weekday {
|
|
@@ -421,5 +424,5 @@ Has styled-components' style tag been unmounted or altered by another script?
|
|
|
421
424
|
}
|
|
422
425
|
|
|
423
426
|
/* 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-
|
|
427
|
+
`,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-foreground 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:"shadow-medium bg-content1 rounded-md",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,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
428
|
//# sourceMappingURL=index.cjs.js.map
|