@jenesei-software/jenesei-kit-react 1.0.0
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/LICENSE +21 -0
- package/README.md +102 -0
- package/build/area-9NUxwBGc.cjs +2 -0
- package/build/area-9NUxwBGc.cjs.map +1 -0
- package/build/area-BnAddPtl.js +114 -0
- package/build/area-BnAddPtl.js.map +1 -0
- package/build/area-C2sWYH-e.js +47 -0
- package/build/area-C2sWYH-e.js.map +1 -0
- package/build/area-CD10k19W.cjs +27 -0
- package/build/area-CD10k19W.cjs.map +1 -0
- package/build/area-ClrrGVJG.cjs +40 -0
- package/build/area-ClrrGVJG.cjs.map +1 -0
- package/build/area-D7906bXA.cjs +2 -0
- package/build/area-D7906bXA.cjs.map +1 -0
- package/build/area-DRqAofd0.js +35 -0
- package/build/area-DRqAofd0.js.map +1 -0
- package/build/area-DfCAwCiZ.js +69 -0
- package/build/area-DfCAwCiZ.js.map +1 -0
- package/build/area-outside.cjs.js +2 -0
- package/build/area-outside.cjs.js.map +1 -0
- package/build/area-outside.d.ts +28 -0
- package/build/area-outside.es.js +5 -0
- package/build/area-outside.es.js.map +1 -0
- package/build/area-preview.cjs.js +2 -0
- package/build/area-preview.cjs.js.map +1 -0
- package/build/area-preview.d.ts +48 -0
- package/build/area-preview.es.js +7 -0
- package/build/area-preview.es.js.map +1 -0
- package/build/area-scroll.cjs.js +2 -0
- package/build/area-scroll.cjs.js.map +1 -0
- package/build/area-scroll.d.ts +58 -0
- package/build/area-scroll.es.js +6 -0
- package/build/area-scroll.es.js.map +1 -0
- package/build/area-skeleton.cjs.js +2 -0
- package/build/area-skeleton.cjs.js.map +1 -0
- package/build/area-skeleton.d.ts +64 -0
- package/build/area-skeleton.es.js +6 -0
- package/build/area-skeleton.es.js.map +1 -0
- package/build/area-smooth.cjs.js +2 -0
- package/build/area-smooth.cjs.js.map +1 -0
- package/build/area-smooth.d.ts +37 -0
- package/build/area-smooth.es.js +5 -0
- package/build/area-smooth.es.js.map +1 -0
- package/build/area.hooks-Bk04M7mk.js +26 -0
- package/build/area.hooks-Bk04M7mk.js.map +1 -0
- package/build/area.hooks-C_UKZzcb.cjs +2 -0
- package/build/area.hooks-C_UKZzcb.cjs.map +1 -0
- package/build/build-info.txt +3 -0
- package/build/component--Oo5_3xq.cjs +2 -0
- package/build/component--Oo5_3xq.cjs.map +1 -0
- package/build/component-BV_7tGiu.cjs +28 -0
- package/build/component-BV_7tGiu.cjs.map +1 -0
- package/build/component-BcHiCCC9.js +23 -0
- package/build/component-BcHiCCC9.js.map +1 -0
- package/build/component-BnI7BIp-.cjs +2 -0
- package/build/component-BnI7BIp-.cjs.map +1 -0
- package/build/component-ByY_9Ryc.js +65 -0
- package/build/component-ByY_9Ryc.js.map +1 -0
- package/build/component-C2JFFh-k.js +2372 -0
- package/build/component-C2JFFh-k.js.map +1 -0
- package/build/component-C52VCES6.cjs +247 -0
- package/build/component-C52VCES6.cjs.map +1 -0
- package/build/component-CBshLNEf.js +50 -0
- package/build/component-CBshLNEf.js.map +1 -0
- package/build/component-CFMlaYj1.js +66 -0
- package/build/component-CFMlaYj1.js.map +1 -0
- package/build/component-CuiUpH8H.js +207 -0
- package/build/component-CuiUpH8H.js.map +1 -0
- package/build/component-D1NPhRuV.cjs +90 -0
- package/build/component-D1NPhRuV.cjs.map +1 -0
- package/build/component-DZxbW_Jz.js +237 -0
- package/build/component-DZxbW_Jz.js.map +1 -0
- package/build/component-UW1VzyvB.cjs +52 -0
- package/build/component-UW1VzyvB.cjs.map +1 -0
- package/build/component-accordion.cjs.js +2 -0
- package/build/component-accordion.cjs.js.map +1 -0
- package/build/component-accordion.d.ts +94 -0
- package/build/component-accordion.es.js +10 -0
- package/build/component-accordion.es.js.map +1 -0
- package/build/component-button-group.cjs.js +2 -0
- package/build/component-button-group.cjs.js.map +1 -0
- package/build/component-button-group.d.ts +320 -0
- package/build/component-button-group.es.js +6 -0
- package/build/component-button-group.es.js.map +1 -0
- package/build/component-button.cjs.js +2 -0
- package/build/component-button.cjs.js.map +1 -0
- package/build/component-button.d.ts +347 -0
- package/build/component-button.es.js +9 -0
- package/build/component-button.es.js.map +1 -0
- package/build/component-checkbox-group.cjs.js +2 -0
- package/build/component-checkbox-group.cjs.js.map +1 -0
- package/build/component-checkbox-group.d.ts +337 -0
- package/build/component-checkbox-group.es.js +11 -0
- package/build/component-checkbox-group.es.js.map +1 -0
- package/build/component-checkbox.cjs.js +2 -0
- package/build/component-checkbox.cjs.js.map +1 -0
- package/build/component-checkbox.d.ts +342 -0
- package/build/component-checkbox.es.js +10 -0
- package/build/component-checkbox.es.js.map +1 -0
- package/build/component-date-picker.cjs.js +2 -0
- package/build/component-date-picker.cjs.js.map +1 -0
- package/build/component-date-picker.d.ts +415 -0
- package/build/component-date-picker.es.js +17 -0
- package/build/component-date-picker.es.js.map +1 -0
- package/build/component-icon.cjs.js +2 -0
- package/build/component-icon.cjs.js.map +1 -0
- package/build/component-icon.d.ts +198 -0
- package/build/component-icon.es.js +12 -0
- package/build/component-icon.es.js.map +1 -0
- package/build/component-image-button.cjs.js +2 -0
- package/build/component-image-button.cjs.js.map +1 -0
- package/build/component-image-button.d.ts +340 -0
- package/build/component-image-button.es.js +5 -0
- package/build/component-image-button.es.js.map +1 -0
- package/build/component-image-select.cjs.js +2 -0
- package/build/component-image-select.cjs.js.map +1 -0
- package/build/component-image-select.d.ts +436 -0
- package/build/component-image-select.es.js +11 -0
- package/build/component-image-select.es.js.map +1 -0
- package/build/component-image-slider.cjs.js +2 -0
- package/build/component-image-slider.cjs.js.map +1 -0
- package/build/component-image-slider.d.ts +108 -0
- package/build/component-image-slider.es.js +8 -0
- package/build/component-image-slider.es.js.map +1 -0
- package/build/component-image.cjs.js +2 -0
- package/build/component-image.cjs.js.map +1 -0
- package/build/component-image.d.ts +51 -0
- package/build/component-image.es.js +6 -0
- package/build/component-image.es.js.map +1 -0
- package/build/component-input-otp.cjs.js +2 -0
- package/build/component-input-otp.cjs.js.map +1 -0
- package/build/component-input-otp.d.ts +150 -0
- package/build/component-input-otp.es.js +8 -0
- package/build/component-input-otp.es.js.map +1 -0
- package/build/component-input.cjs.js +2 -0
- package/build/component-input.cjs.js.map +1 -0
- package/build/component-input.d.ts +226 -0
- package/build/component-input.es.js +20 -0
- package/build/component-input.es.js.map +1 -0
- package/build/component-jPZYT5iL.js +76 -0
- package/build/component-jPZYT5iL.js.map +1 -0
- package/build/component-map.cjs.js +2 -0
- package/build/component-map.cjs.js.map +1 -0
- package/build/component-map.d.ts +97 -0
- package/build/component-map.es.js +18 -0
- package/build/component-map.es.js.map +1 -0
- package/build/component-nFn_uOy_.cjs +2 -0
- package/build/component-nFn_uOy_.cjs.map +1 -0
- package/build/component-pagination.cjs.js +2 -0
- package/build/component-pagination.cjs.js.map +1 -0
- package/build/component-pagination.d.ts +321 -0
- package/build/component-pagination.es.js +6 -0
- package/build/component-pagination.es.js.map +1 -0
- package/build/component-range.cjs.js +2 -0
- package/build/component-range.cjs.js.map +1 -0
- package/build/component-range.d.ts +153 -0
- package/build/component-range.es.js +8 -0
- package/build/component-range.es.js.map +1 -0
- package/build/component-ripple.cjs.js +2 -0
- package/build/component-ripple.cjs.js.map +1 -0
- package/build/component-ripple.d.ts +45 -0
- package/build/component-ripple.es.js +12 -0
- package/build/component-ripple.es.js.map +1 -0
- package/build/component-select.cjs.js +2 -0
- package/build/component-select.cjs.js.map +1 -0
- package/build/component-select.d.ts +406 -0
- package/build/component-select.es.js +25 -0
- package/build/component-select.es.js.map +1 -0
- package/build/component-separator.cjs.js +2 -0
- package/build/component-separator.cjs.js.map +1 -0
- package/build/component-separator.d.ts +46 -0
- package/build/component-separator.es.js +6 -0
- package/build/component-separator.es.js.map +1 -0
- package/build/component-stack.cjs.js +2 -0
- package/build/component-stack.cjs.js.map +1 -0
- package/build/component-stack.d.ts +72 -0
- package/build/component-stack.es.js +8 -0
- package/build/component-stack.es.js.map +1 -0
- package/build/component-textarea.cjs.js +2 -0
- package/build/component-textarea.cjs.js.map +1 -0
- package/build/component-textarea.d.ts +131 -0
- package/build/component-textarea.es.js +12 -0
- package/build/component-textarea.es.js.map +1 -0
- package/build/component-toggle.cjs.js +2 -0
- package/build/component-toggle.cjs.js.map +1 -0
- package/build/component-toggle.d.ts +101 -0
- package/build/component-toggle.es.js +7 -0
- package/build/component-toggle.es.js.map +1 -0
- package/build/component-tooltip.cjs.js +2 -0
- package/build/component-tooltip.cjs.js.map +1 -0
- package/build/component-tooltip.d.ts +170 -0
- package/build/component-tooltip.es.js +12 -0
- package/build/component-tooltip.es.js.map +1 -0
- package/build/component-typography.cjs.js +2 -0
- package/build/component-typography.cjs.js.map +1 -0
- package/build/component-typography.d.ts +183 -0
- package/build/component-typography.es.js +10 -0
- package/build/component-typography.es.js.map +1 -0
- package/build/component-xnEaYd4a.cjs +2 -0
- package/build/component-xnEaYd4a.cjs.map +1 -0
- package/build/component.components-BAAT5GTH.js +363 -0
- package/build/component.components-BAAT5GTH.js.map +1 -0
- package/build/component.components-CaR5gfQW.cjs +16 -0
- package/build/component.components-CaR5gfQW.cjs.map +1 -0
- package/build/component.constants-BeWW8Ijx.cjs +2 -0
- package/build/component.constants-BeWW8Ijx.cjs.map +1 -0
- package/build/component.constants-D9wVZ3zy.cjs +22 -0
- package/build/component.constants-D9wVZ3zy.cjs.map +1 -0
- package/build/component.constants-DRvp5Bez.js +142 -0
- package/build/component.constants-DRvp5Bez.js.map +1 -0
- package/build/component.constants-DbNhxh0k.js +759 -0
- package/build/component.constants-DbNhxh0k.js.map +1 -0
- package/build/component.styles-B0L4jbOO.js +59 -0
- package/build/component.styles-B0L4jbOO.js.map +1 -0
- package/build/component.styles-B1DIataj.cjs +10 -0
- package/build/component.styles-B1DIataj.cjs.map +1 -0
- package/build/component.styles-BFwkFWkd.cjs +39 -0
- package/build/component.styles-BFwkFWkd.cjs.map +1 -0
- package/build/component.styles-BSEA2Dqn.cjs +8 -0
- package/build/component.styles-BSEA2Dqn.cjs.map +1 -0
- package/build/component.styles-BapdQNhL.js +2166 -0
- package/build/component.styles-BapdQNhL.js.map +1 -0
- package/build/component.styles-BfvB83xM.cjs +22 -0
- package/build/component.styles-BfvB83xM.cjs.map +1 -0
- package/build/component.styles-Bn6ylF83.js +859 -0
- package/build/component.styles-Bn6ylF83.js.map +1 -0
- package/build/component.styles-BsZIuwWJ.cjs +140 -0
- package/build/component.styles-BsZIuwWJ.cjs.map +1 -0
- package/build/component.styles-C6LohBfF.js +81 -0
- package/build/component.styles-C6LohBfF.js.map +1 -0
- package/build/component.styles-CEBh8X5q.js +20 -0
- package/build/component.styles-CEBh8X5q.js.map +1 -0
- package/build/component.styles-CPsxMKVK.cjs +73 -0
- package/build/component.styles-CPsxMKVK.cjs.map +1 -0
- package/build/component.styles-CTo5NC52.js +71 -0
- package/build/component.styles-CTo5NC52.js.map +1 -0
- package/build/component.styles-CV7jTFCg.js +758 -0
- package/build/component.styles-CV7jTFCg.js.map +1 -0
- package/build/component.styles-CVBpx4fw.js +474 -0
- package/build/component.styles-CVBpx4fw.js.map +1 -0
- package/build/component.styles-CZu2m0O4.cjs +21 -0
- package/build/component.styles-CZu2m0O4.cjs.map +1 -0
- package/build/component.styles-CmBcHREH.cjs +13 -0
- package/build/component.styles-CmBcHREH.cjs.map +1 -0
- package/build/component.styles-CmEFZfA5.js +120 -0
- package/build/component.styles-CmEFZfA5.js.map +1 -0
- package/build/component.styles-DHIw8p8e.cjs +158 -0
- package/build/component.styles-DHIw8p8e.cjs.map +1 -0
- package/build/component.styles-DOPCUXcr.js +158 -0
- package/build/component.styles-DOPCUXcr.js.map +1 -0
- package/build/component.styles-Dj3h7jd9.cjs +165 -0
- package/build/component.styles-Dj3h7jd9.cjs.map +1 -0
- package/build/component.styles-Do1NYZEO.js +86 -0
- package/build/component.styles-Do1NYZEO.js.map +1 -0
- package/build/component.styles-Dok17vPl.js +126 -0
- package/build/component.styles-Dok17vPl.js.map +1 -0
- package/build/component.styles-Dpg-__rn.cjs +43 -0
- package/build/component.styles-Dpg-__rn.cjs.map +1 -0
- package/build/component.styles-DpkFoWEh.cjs +81 -0
- package/build/component.styles-DpkFoWEh.cjs.map +1 -0
- package/build/component.styles-DqsBDAEo.js +202 -0
- package/build/component.styles-DqsBDAEo.js.map +1 -0
- package/build/component.styles-Du2y0R4W.js +177 -0
- package/build/component.styles-Du2y0R4W.js.map +1 -0
- package/build/component.styles-DxeG9Opm.cjs +47 -0
- package/build/component.styles-DxeG9Opm.cjs.map +1 -0
- package/build/component.styles-DyGfo9t0.cjs +32 -0
- package/build/component.styles-DyGfo9t0.cjs.map +1 -0
- package/build/component.styles-RkQwTlwG.js +170 -0
- package/build/component.styles-RkQwTlwG.js.map +1 -0
- package/build/component.styles-ZtwHuL4x.cjs +75 -0
- package/build/component.styles-ZtwHuL4x.cjs.map +1 -0
- package/build/component.types-D05KdxnZ.js +132 -0
- package/build/component.types-D05KdxnZ.js.map +1 -0
- package/build/component.types-gy5Q9qHX.cjs +2 -0
- package/build/component.types-gy5Q9qHX.cjs.map +1 -0
- package/build/consts.cjs.js +2 -0
- package/build/consts.cjs.js.map +1 -0
- package/build/consts.d.ts +86 -0
- package/build/consts.es.js +177 -0
- package/build/consts.es.js.map +1 -0
- package/build/context-app.cjs.js +2 -0
- package/build/context-app.cjs.js.map +1 -0
- package/build/context-app.d.ts +223 -0
- package/build/context-app.es.js +20 -0
- package/build/context-app.es.js.map +1 -0
- package/build/context-cookie.cjs.js +2 -0
- package/build/context-cookie.cjs.js.map +1 -0
- package/build/context-cookie.d.ts +67 -0
- package/build/context-cookie.es.js +9 -0
- package/build/context-cookie.es.js.map +1 -0
- package/build/context-dialog.cjs.js +2 -0
- package/build/context-dialog.cjs.js.map +1 -0
- package/build/context-dialog.d.ts +92 -0
- package/build/context-dialog.es.js +18 -0
- package/build/context-dialog.es.js.map +1 -0
- package/build/context-geolocation.cjs.js +2 -0
- package/build/context-geolocation.cjs.js.map +1 -0
- package/build/context-geolocation.d.ts +22 -0
- package/build/context-geolocation.es.js +7 -0
- package/build/context-geolocation.es.js.map +1 -0
- package/build/context-local-storage.cjs.js +2 -0
- package/build/context-local-storage.cjs.js.map +1 -0
- package/build/context-local-storage.d.ts +54 -0
- package/build/context-local-storage.es.js +9 -0
- package/build/context-local-storage.es.js.map +1 -0
- package/build/context-permission.cjs.js +2 -0
- package/build/context-permission.cjs.js.map +1 -0
- package/build/context-permission.d.ts +28 -0
- package/build/context-permission.es.js +9 -0
- package/build/context-permission.es.js.map +1 -0
- package/build/context-screen-width.cjs.js +2 -0
- package/build/context-screen-width.cjs.js.map +1 -0
- package/build/context-screen-width.d.ts +34 -0
- package/build/context-screen-width.es.js +7 -0
- package/build/context-screen-width.es.js.map +1 -0
- package/build/context-sonner.cjs.js +2 -0
- package/build/context-sonner.cjs.js.map +1 -0
- package/build/context-sonner.d.ts +449 -0
- package/build/context-sonner.es.js +21 -0
- package/build/context-sonner.es.js.map +1 -0
- package/build/context.constants-B29-_8v3.cjs +32 -0
- package/build/context.constants-B29-_8v3.cjs.map +1 -0
- package/build/context.constants-BaD7xj_m.cjs +100 -0
- package/build/context.constants-BaD7xj_m.cjs.map +1 -0
- package/build/context.constants-CsZRZ7gH.js +228 -0
- package/build/context.constants-CsZRZ7gH.js.map +1 -0
- package/build/context.constants-DqYjo5m4.js +375 -0
- package/build/context.constants-DqYjo5m4.js.map +1 -0
- package/build/context.functions-80N-5MqM.cjs +2 -0
- package/build/context.functions-80N-5MqM.cjs.map +1 -0
- package/build/context.functions-B8FDl7nJ.js +14 -0
- package/build/context.functions-B8FDl7nJ.js.map +1 -0
- package/build/context.functions-BD15C8_y.js +128 -0
- package/build/context.functions-BD15C8_y.js.map +1 -0
- package/build/context.functions-CQ9GerPb.js +147 -0
- package/build/context.functions-CQ9GerPb.js.map +1 -0
- package/build/context.functions-ar41xFVo.cjs +2 -0
- package/build/context.functions-ar41xFVo.cjs.map +1 -0
- package/build/context.functions-ohI9H54j.cjs +2 -0
- package/build/context.functions-ohI9H54j.cjs.map +1 -0
- package/build/context.hooks-7ydA7mGj.js +117 -0
- package/build/context.hooks-7ydA7mGj.js.map +1 -0
- package/build/context.hooks-BIsapq-0.cjs +2 -0
- package/build/context.hooks-BIsapq-0.cjs.map +1 -0
- package/build/context.hooks-BmwyZ1p3.js +68 -0
- package/build/context.hooks-BmwyZ1p3.js.map +1 -0
- package/build/context.hooks-BzMTkJNv.js +52 -0
- package/build/context.hooks-BzMTkJNv.js.map +1 -0
- package/build/context.hooks-CTi-CVKx.cjs +72 -0
- package/build/context.hooks-CTi-CVKx.cjs.map +1 -0
- package/build/context.hooks-D13tbrva.cjs +2 -0
- package/build/context.hooks-D13tbrva.cjs.map +1 -0
- package/build/context.hooks-gyzZSaVi.js +527 -0
- package/build/context.hooks-gyzZSaVi.js.map +1 -0
- package/build/context.hooks-u408Pxw8.cjs +2 -0
- package/build/context.hooks-u408Pxw8.cjs.map +1 -0
- package/build/functions.cjs.js +2 -0
- package/build/functions.cjs.js.map +1 -0
- package/build/functions.d.ts +22 -0
- package/build/functions.es.js +47 -0
- package/build/functions.es.js.map +1 -0
- package/build/hooks-use-debounced-callback.cjs.js +2 -0
- package/build/hooks-use-debounced-callback.cjs.js.map +1 -0
- package/build/hooks-use-debounced-callback.d.ts +3 -0
- package/build/hooks-use-debounced-callback.es.js +5 -0
- package/build/hooks-use-debounced-callback.es.js.map +1 -0
- package/build/hooks-use-deep-compare-memoize.cjs.js +2 -0
- package/build/hooks-use-deep-compare-memoize.cjs.js.map +1 -0
- package/build/hooks-use-deep-compare-memoize.d.ts +3 -0
- package/build/hooks-use-deep-compare-memoize.es.js +5 -0
- package/build/hooks-use-deep-compare-memoize.es.js.map +1 -0
- package/build/index.cjs.js +2 -0
- package/build/index.cjs.js.map +1 -0
- package/build/index.d.ts +2540 -0
- package/build/index.es.js +329 -0
- package/build/index.es.js.map +1 -0
- package/build/jsx-runtime-BcGej2Kr.cjs +11 -0
- package/build/jsx-runtime-BcGej2Kr.cjs.map +1 -0
- package/build/jsx-runtime-BrDlu8eK.js +320 -0
- package/build/jsx-runtime-BrDlu8eK.js.map +1 -0
- package/build/motion-CIQfrLky.js +85 -0
- package/build/motion-CIQfrLky.js.map +1 -0
- package/build/motion-DgB7M2Hn.cjs +2 -0
- package/build/motion-DgB7M2Hn.cjs.map +1 -0
- package/build/style-CEGJOjRW.js +107 -0
- package/build/style-CEGJOjRW.js.map +1 -0
- package/build/style-CtGd1JVB.cjs +32 -0
- package/build/style-CtGd1JVB.cjs.map +1 -0
- package/build/style-DeAgDHyI.js +52 -0
- package/build/style-DeAgDHyI.js.map +1 -0
- package/build/style-Dm74EPGE.cjs +87 -0
- package/build/style-Dm74EPGE.cjs.map +1 -0
- package/build/style-add.cjs.js +2 -0
- package/build/style-add.cjs.js.map +1 -0
- package/build/style-add.d.ts +21 -0
- package/build/style-add.es.js +13 -0
- package/build/style-add.es.js.map +1 -0
- package/build/style-error.cjs.js +2 -0
- package/build/style-error.cjs.js.map +1 -0
- package/build/style-error.d.ts +56 -0
- package/build/style-error.es.js +7 -0
- package/build/style-error.es.js.map +1 -0
- package/build/style-fRZ6xrVp.cjs +10 -0
- package/build/style-fRZ6xrVp.cjs.map +1 -0
- package/build/style-motion.cjs.js +2 -0
- package/build/style-motion.cjs.js.map +1 -0
- package/build/style-motion.d.ts +20 -0
- package/build/style-motion.es.js +8 -0
- package/build/style-motion.es.js.map +1 -0
- package/build/style-plT9Ah7t.js +33 -0
- package/build/style-plT9Ah7t.js.map +1 -0
- package/build/style-sx.cjs.js +2 -0
- package/build/style-sx.cjs.js.map +1 -0
- package/build/style-sx.d.ts +31 -0
- package/build/style-sx.es.js +5 -0
- package/build/style-sx.es.js.map +1 -0
- package/build/style-theme.cjs.js +2 -0
- package/build/style-theme.cjs.js.map +1 -0
- package/build/style-theme.d.ts +263 -0
- package/build/style-theme.es.js +10 -0
- package/build/style-theme.es.js.map +1 -0
- package/build/style.css +1 -0
- package/build/theme.global-D6XU05Et.cjs +169 -0
- package/build/theme.global-D6XU05Et.cjs.map +1 -0
- package/build/theme.global-bN9HlSWE.js +1080 -0
- package/build/theme.global-bN9HlSWE.js.map +1 -0
- package/build/types.cjs.js +2 -0
- package/build/types.cjs.js.map +1 -0
- package/build/types.d.ts +27 -0
- package/build/types.es.js +2 -0
- package/build/types.es.js.map +1 -0
- package/build/use-BVj4dgbW.js +1547 -0
- package/build/use-BVj4dgbW.js.map +1 -0
- package/build/use-BhofoOgk.cjs +16 -0
- package/build/use-BhofoOgk.cjs.map +1 -0
- package/build/use-Bp8UVw4Y.js +16 -0
- package/build/use-Bp8UVw4Y.js.map +1 -0
- package/build/use-C1l0O0Qo.cjs +2 -0
- package/build/use-C1l0O0Qo.cjs.map +1 -0
- package/build/use-DT0XgvJT.js +25 -0
- package/build/use-DT0XgvJT.js.map +1 -0
- package/build/use-IhzeVumv.cjs +2 -0
- package/build/use-IhzeVumv.cjs.map +1 -0
- package/package.json +360 -0
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-BrDlu8eK.js";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
import { useState, useRef, useMemo, useCallback, useEffect, Fragment } from "react";
|
|
4
|
+
import styled, { useTheme, css } from "styled-components";
|
|
5
|
+
import { c as Button } from "./component-DZxbW_Jz.js";
|
|
6
|
+
import "./component.styles-B0L4jbOO.js";
|
|
7
|
+
import { R as Ripple } from "./component-ByY_9Ryc.js";
|
|
8
|
+
import { b as SelectMonth, c as SelectYear } from "./component.styles-Bn6ylF83.js";
|
|
9
|
+
import { b as Stack } from "./component-jPZYT5iL.js";
|
|
10
|
+
import { b as ErrorMessage, a as addError } from "./style-DeAgDHyI.js";
|
|
11
|
+
import { K as KEY_SIZE_DATA } from "./theme.global-bN9HlSWE.js";
|
|
12
|
+
import { u as usePopover, P as Popover, g as getFontSizeStyles } from "./component-C2JFFh-k.js";
|
|
13
|
+
import { motion } from "framer-motion";
|
|
14
|
+
import { PatternFormat } from "react-number-format";
|
|
15
|
+
import { d as InputIsInputEffect, a as InputPlaceholderNiceNumber } from "./component.styles-Du2y0R4W.js";
|
|
16
|
+
import { i as addNiceNumber, a as addRemoveScrollbar, b as addTransition, f as addOutline, h as addRemoveOutline } from "./style-CEGJOjRW.js";
|
|
17
|
+
import { a as addSX } from "./style-plT9Ah7t.js";
|
|
18
|
+
function countSevens(number) {
|
|
19
|
+
const divisor = 7;
|
|
20
|
+
const count = Math.floor(number / divisor);
|
|
21
|
+
const remainder = number % divisor;
|
|
22
|
+
return remainder > 0 ? count + 1 : count;
|
|
23
|
+
}
|
|
24
|
+
const DatePicker = (props) => {
|
|
25
|
+
const { onChange, onBlur } = props;
|
|
26
|
+
const theme = useTheme();
|
|
27
|
+
const [valueMoment, setValueMoment] = useState(null);
|
|
28
|
+
const [currentMonth, setCurrentMonth] = useState(null);
|
|
29
|
+
const [currentYear, setCurrentYear] = useState(null);
|
|
30
|
+
const [currentDay, setCurrentDay] = useState(null);
|
|
31
|
+
const [inputDay, setInputDay] = useState(null);
|
|
32
|
+
const [inputMonth, setInputMonth] = useState(null);
|
|
33
|
+
const [inputYear, setInputYear] = useState(null);
|
|
34
|
+
const refDay = useRef(null);
|
|
35
|
+
const refMonth = useRef(null);
|
|
36
|
+
const refYear = useRef(null);
|
|
37
|
+
const [activeSegment, setActiveSegment] = useState(null);
|
|
38
|
+
const [isError, setIsError] = useState(false);
|
|
39
|
+
const dataDate = useMemo(() => {
|
|
40
|
+
const mode = props.mode ?? "DD.MM.YYYY";
|
|
41
|
+
const result = {
|
|
42
|
+
MM: {
|
|
43
|
+
type: "MM",
|
|
44
|
+
width: "20px",
|
|
45
|
+
ref: refMonth,
|
|
46
|
+
value: inputMonth,
|
|
47
|
+
setValue: setInputMonth,
|
|
48
|
+
setActive: () => setActiveSegment("month"),
|
|
49
|
+
valueInput: inputMonth,
|
|
50
|
+
setValueInput: setInputMonth,
|
|
51
|
+
placeholder: props.locale.inputs.month
|
|
52
|
+
},
|
|
53
|
+
DD: {
|
|
54
|
+
type: "DD",
|
|
55
|
+
width: "20px",
|
|
56
|
+
ref: refDay,
|
|
57
|
+
value: inputDay,
|
|
58
|
+
setValue: setInputDay,
|
|
59
|
+
setActive: () => setActiveSegment("day"),
|
|
60
|
+
valueInput: inputDay,
|
|
61
|
+
setValueInput: setInputDay,
|
|
62
|
+
placeholder: props.locale.inputs.day
|
|
63
|
+
},
|
|
64
|
+
YYYY: {
|
|
65
|
+
type: "YYYY",
|
|
66
|
+
width: "40px",
|
|
67
|
+
ref: refYear,
|
|
68
|
+
value: inputYear,
|
|
69
|
+
setValue: setInputYear,
|
|
70
|
+
setActive: () => setActiveSegment("year"),
|
|
71
|
+
valueInput: inputYear,
|
|
72
|
+
setValueInput: setInputYear,
|
|
73
|
+
placeholder: props.locale.inputs.year
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const resultSort = mode.split(".").map((e) => e.trim()).map((e) => {
|
|
77
|
+
if (e === "DD") return result.DD;
|
|
78
|
+
if (e === "MM") return result.MM;
|
|
79
|
+
if (e === "YYYY") return result.YYYY;
|
|
80
|
+
return null;
|
|
81
|
+
}).filter((e) => e !== null);
|
|
82
|
+
return resultSort;
|
|
83
|
+
}, [
|
|
84
|
+
inputDay,
|
|
85
|
+
inputMonth,
|
|
86
|
+
inputYear,
|
|
87
|
+
props.locale.inputs.day,
|
|
88
|
+
props.locale.inputs.month,
|
|
89
|
+
props.locale.inputs.year,
|
|
90
|
+
props.mode
|
|
91
|
+
]);
|
|
92
|
+
const daysInWeek = useMemo(() => {
|
|
93
|
+
const weekOrder = ["mo", "tu", "we", "th", "fr", "sa", "su"];
|
|
94
|
+
return weekOrder.map((key, index) => {
|
|
95
|
+
const found = props.locale.weeks.find((w) => w.value === key);
|
|
96
|
+
return {
|
|
97
|
+
index,
|
|
98
|
+
label: (found == null ? void 0 : found.localeShort) ?? key.toUpperCase()
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
}, [props.locale.weeks]);
|
|
102
|
+
const daysInMonth = useMemo(() => {
|
|
103
|
+
if (currentYear === null || currentMonth === null) return [];
|
|
104
|
+
const today = moment.utc();
|
|
105
|
+
const startOfMonth = moment.utc().year(currentYear).month(currentMonth).startOf("month");
|
|
106
|
+
const endOfMonth = moment.utc().year(currentYear).month(currentMonth).endOf("month");
|
|
107
|
+
const days = [];
|
|
108
|
+
const startDate = props.startDate ? moment.utc(props.startDate) : null;
|
|
109
|
+
const endDate = props.endDate ? moment.utc(props.endDate) : null;
|
|
110
|
+
const daysToAddBefore = startOfMonth.isoWeekday() - 1;
|
|
111
|
+
if (daysToAddBefore > 0) {
|
|
112
|
+
for (let i = daysToAddBefore; i > 0; i--) {
|
|
113
|
+
const day = startOfMonth.clone().subtract(i, "days");
|
|
114
|
+
days.push({
|
|
115
|
+
value: day.valueOf(),
|
|
116
|
+
labelString: day.format("dd"),
|
|
117
|
+
labelNumber: day.date(),
|
|
118
|
+
dayOfWeek: day.isoWeekday(),
|
|
119
|
+
isWeekend: day.isoWeekday() === 6 || day.isoWeekday() === 7,
|
|
120
|
+
weekOfMonth: Math.ceil((days.length + 1) / 7),
|
|
121
|
+
isToday: day.isSame(today, "day"),
|
|
122
|
+
isCurrentMonth: false,
|
|
123
|
+
isDisabled: day.isBefore(startDate, "day") || day.isAfter(endDate, "day")
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const currentDate = startOfMonth.clone();
|
|
128
|
+
while (currentDate <= endOfMonth) {
|
|
129
|
+
days.push({
|
|
130
|
+
value: currentDate.valueOf(),
|
|
131
|
+
labelString: currentDate.format("dd"),
|
|
132
|
+
labelNumber: currentDate.date(),
|
|
133
|
+
dayOfWeek: currentDate.isoWeekday(),
|
|
134
|
+
isWeekend: currentDate.isoWeekday() === 6 || currentDate.isoWeekday() === 7,
|
|
135
|
+
weekOfMonth: Math.ceil((days.length + 1) / 7),
|
|
136
|
+
isToday: currentDate.isSame(today, "day"),
|
|
137
|
+
isCurrentMonth: true,
|
|
138
|
+
isDisabled: currentDate.isBefore(startDate, "day") || currentDate.isAfter(endDate, "day")
|
|
139
|
+
});
|
|
140
|
+
currentDate.add(1, "day");
|
|
141
|
+
}
|
|
142
|
+
const daysToAddAfter = 7 - endOfMonth.isoWeekday();
|
|
143
|
+
if (daysToAddAfter > 0) {
|
|
144
|
+
for (let i = 1; i <= daysToAddAfter; i++) {
|
|
145
|
+
const day = endOfMonth.clone().add(i, "days").startOf("day");
|
|
146
|
+
days.push({
|
|
147
|
+
value: day.valueOf(),
|
|
148
|
+
labelString: day.format("dd"),
|
|
149
|
+
labelNumber: day.date(),
|
|
150
|
+
dayOfWeek: day.isoWeekday(),
|
|
151
|
+
isWeekend: day.isoWeekday() === 6 || day.isoWeekday() === 7,
|
|
152
|
+
weekOfMonth: Math.ceil((days.length + 1) / 7),
|
|
153
|
+
isToday: day.isSame(today, "day"),
|
|
154
|
+
isCurrentMonth: false,
|
|
155
|
+
isDisabled: day.isBefore(startDate, "day") || day.isAfter(endDate, "day")
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
days.sort((a, b) => a.value - b.value);
|
|
160
|
+
return days;
|
|
161
|
+
}, [currentMonth, currentYear, props.endDate, props.startDate]);
|
|
162
|
+
const rows = useMemo(() => countSevens(daysInMonth.length) + 1, [daysInMonth]);
|
|
163
|
+
const height = useMemo(
|
|
164
|
+
() => 40 + rows * 28 + (rows - 1) * 6 + KEY_SIZE_DATA[props.size].padding * 2,
|
|
165
|
+
[props.size, rows]
|
|
166
|
+
);
|
|
167
|
+
const radius = useMemo(() => KEY_SIZE_DATA[props.size].radius, [props.size]);
|
|
168
|
+
const isBlockNextMonth = useMemo(() => {
|
|
169
|
+
if (currentYear === null || currentMonth === null || currentDay === null) return true;
|
|
170
|
+
const nextMonth = moment.utc().year(currentYear).month(currentMonth).date(currentDay).add(1, "month").startOf("month");
|
|
171
|
+
const isBeforeEndDate = props.endDate ? nextMonth.isAfter(moment.utc(props.endDate), "month") : false;
|
|
172
|
+
return isBeforeEndDate;
|
|
173
|
+
}, [currentYear, currentMonth, currentDay, props.endDate]);
|
|
174
|
+
const isBlockPrevMonth = useMemo(() => {
|
|
175
|
+
if (currentYear === null || currentMonth === null || currentDay === null) return true;
|
|
176
|
+
const prevMonth = moment.utc().year(currentYear).month(currentMonth).date(currentDay).subtract(1, "month").startOf("month");
|
|
177
|
+
const isAfterStartDate = props.startDate ? prevMonth.isBefore(moment.utc(props.startDate), "month") : false;
|
|
178
|
+
return isAfterStartDate;
|
|
179
|
+
}, [currentYear, currentMonth, currentDay, props.startDate]);
|
|
180
|
+
const { isOpen, close, reference, floating, floatingStyles } = usePopover({
|
|
181
|
+
placement: "bottom-start",
|
|
182
|
+
offset: 8,
|
|
183
|
+
mode: "clickOpen",
|
|
184
|
+
isClickOutside: true
|
|
185
|
+
});
|
|
186
|
+
const handleOnClose = useCallback(
|
|
187
|
+
(isCheck) => {
|
|
188
|
+
close();
|
|
189
|
+
if (isCheck) {
|
|
190
|
+
if (!inputDay || !inputMonth || !inputYear) {
|
|
191
|
+
onChange(null);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
[close, inputDay, inputMonth, inputYear, onChange]
|
|
196
|
+
);
|
|
197
|
+
const handleKeyDown = useCallback(
|
|
198
|
+
(e) => {
|
|
199
|
+
if (!/^\d$/.test(e.key) && !["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Backspace", "Delete", "Tab"].includes(e.key) && !e.ctrlKey && !e.metaKey) {
|
|
200
|
+
e.preventDefault();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (e.key === "Backspace" || e.key === "Delete") {
|
|
204
|
+
if (activeSegment === "day" && (!inputDay || inputDay === "") || activeSegment === "month" && (!inputMonth || inputMonth === "") || activeSegment === "year" && (!inputYear || inputYear === "")) {
|
|
205
|
+
if (activeSegment === "day") {
|
|
206
|
+
setInputDay(null);
|
|
207
|
+
} else if (activeSegment === "month") {
|
|
208
|
+
setInputMonth(null);
|
|
209
|
+
} else if (activeSegment === "year") {
|
|
210
|
+
setInputYear(null);
|
|
211
|
+
}
|
|
212
|
+
const nextSegment = activeSegment === "day" ? "day" : activeSegment === "month" ? "day" : "month";
|
|
213
|
+
setActiveSegment(nextSegment);
|
|
214
|
+
e.preventDefault();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
|
|
218
|
+
const nextSegment = activeSegment === "day" ? "year" : activeSegment === "month" ? "day" : "month";
|
|
219
|
+
setActiveSegment(nextSegment);
|
|
220
|
+
e.preventDefault();
|
|
221
|
+
}
|
|
222
|
+
if (e.key === "ArrowRight" || e.key === "ArrowUp") {
|
|
223
|
+
const nextSegment = activeSegment === "day" ? "month" : activeSegment === "month" ? "year" : "day";
|
|
224
|
+
setActiveSegment(nextSegment);
|
|
225
|
+
e.preventDefault();
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
[activeSegment, inputDay, inputMonth, inputYear]
|
|
229
|
+
);
|
|
230
|
+
const onChangeDate = useCallback(
|
|
231
|
+
(timestamp, isBlur, isChange) => {
|
|
232
|
+
const momentStartDate = props.startDate ? moment(props.startDate).utc() : null;
|
|
233
|
+
const momentEndDate = props.endDate ? moment(props.endDate).utc() : null;
|
|
234
|
+
const momentCheckDate = moment(timestamp).utc();
|
|
235
|
+
let momentNewDate = moment(timestamp).utc();
|
|
236
|
+
if (momentStartDate && momentCheckDate.isBefore(momentStartDate, "day")) {
|
|
237
|
+
momentNewDate = momentStartDate.startOf("day");
|
|
238
|
+
} else if (momentEndDate && momentCheckDate.isAfter(momentEndDate, "day")) {
|
|
239
|
+
momentNewDate = momentEndDate.startOf("day");
|
|
240
|
+
}
|
|
241
|
+
if (valueMoment && valueMoment.isSame(momentNewDate, "day")) return;
|
|
242
|
+
setValueMoment(momentNewDate);
|
|
243
|
+
setCurrentDay(momentNewDate.date());
|
|
244
|
+
setCurrentMonth(momentNewDate.month());
|
|
245
|
+
setCurrentYear(momentNewDate.year());
|
|
246
|
+
if (isChange) onChange(momentNewDate.valueOf());
|
|
247
|
+
if (props.isOnClickClose && isBlur) {
|
|
248
|
+
onBlur == null ? void 0 : onBlur();
|
|
249
|
+
handleOnClose();
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
[props.startDate, props.endDate, props.isOnClickClose, valueMoment, onChange, onBlur, handleOnClose]
|
|
253
|
+
);
|
|
254
|
+
const onNextMonth = useCallback(() => {
|
|
255
|
+
if (currentYear === null || currentMonth === null || currentDay === null) return;
|
|
256
|
+
const newDate = moment.utc().year(currentYear).month(currentMonth).date(currentDay).add(1, "month");
|
|
257
|
+
onChangeDate(newDate.valueOf(), false, false);
|
|
258
|
+
}, [currentDay, currentMonth, currentYear, onChangeDate]);
|
|
259
|
+
const onPrevMonth = useCallback(() => {
|
|
260
|
+
if (currentYear === null || currentMonth === null || currentDay === null) return;
|
|
261
|
+
const newDate = moment.utc().year(currentYear).month(currentMonth).date(currentDay).subtract(1, "month");
|
|
262
|
+
onChangeDate(newDate.valueOf(), false, false);
|
|
263
|
+
}, [currentDay, currentMonth, currentYear, onChangeDate]);
|
|
264
|
+
useEffect(() => {
|
|
265
|
+
const valueMoment2 = props.value ? moment(props.value).utc() : moment.utc();
|
|
266
|
+
if (props.value !== null && props.value !== void 0) {
|
|
267
|
+
setInputDay(fixOneToZero(valueMoment2.date().toString()));
|
|
268
|
+
setInputMonth(fixOneToZero((valueMoment2.month() + 1).toString()));
|
|
269
|
+
setInputYear(valueMoment2.year().toString());
|
|
270
|
+
} else {
|
|
271
|
+
setInputDay(null);
|
|
272
|
+
setInputMonth(null);
|
|
273
|
+
setInputYear(null);
|
|
274
|
+
}
|
|
275
|
+
onChangeDate(valueMoment2.valueOf(), false, false);
|
|
276
|
+
}, [props.value, isOpen]);
|
|
277
|
+
useEffect(() => {
|
|
278
|
+
if (activeSegment !== null) {
|
|
279
|
+
setTimeout(() => {
|
|
280
|
+
var _a, _b, _c;
|
|
281
|
+
if (activeSegment === "day") {
|
|
282
|
+
(_a = refDay.current) == null ? void 0 : _a.focus();
|
|
283
|
+
} else if (activeSegment === "month") {
|
|
284
|
+
(_b = refMonth.current) == null ? void 0 : _b.focus();
|
|
285
|
+
} else if (activeSegment === "year") {
|
|
286
|
+
(_c = refYear.current) == null ? void 0 : _c.focus();
|
|
287
|
+
}
|
|
288
|
+
}, 0);
|
|
289
|
+
}
|
|
290
|
+
}, [activeSegment]);
|
|
291
|
+
useEffect(() => {
|
|
292
|
+
if (isOpen) {
|
|
293
|
+
setActiveSegment("day");
|
|
294
|
+
} else {
|
|
295
|
+
setActiveSegment(null);
|
|
296
|
+
}
|
|
297
|
+
}, [isOpen]);
|
|
298
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
299
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
300
|
+
DateWrapper,
|
|
301
|
+
{
|
|
302
|
+
ref: reference,
|
|
303
|
+
$size: props.size,
|
|
304
|
+
$genre: props.genre,
|
|
305
|
+
$sx: props.sx,
|
|
306
|
+
$isDisabled: props == null ? void 0 : props.isDisabled,
|
|
307
|
+
$isMinWidth: props == null ? void 0 : props.isMinWidth,
|
|
308
|
+
$radius: radius,
|
|
309
|
+
$parentListHeight: height,
|
|
310
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
311
|
+
DateInputWrapper,
|
|
312
|
+
{
|
|
313
|
+
tabIndex: 0,
|
|
314
|
+
$genre: props.genre,
|
|
315
|
+
$size: props.size,
|
|
316
|
+
$error: isError ? { isError: true } : props.error,
|
|
317
|
+
$isOpen: isOpen,
|
|
318
|
+
children: dataDate.map((date, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
319
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
320
|
+
DateInput,
|
|
321
|
+
{
|
|
322
|
+
onValueChange: (values, sourceInfo) => {
|
|
323
|
+
if (date.type === "DD") {
|
|
324
|
+
if (sourceInfo.source !== "event") return;
|
|
325
|
+
const value = values.formattedValue;
|
|
326
|
+
setInputMonth(null);
|
|
327
|
+
setInputYear(null);
|
|
328
|
+
if (Number(value) && Number(value) > 31) {
|
|
329
|
+
setInputDay("31");
|
|
330
|
+
} else {
|
|
331
|
+
setInputDay(value);
|
|
332
|
+
}
|
|
333
|
+
if (value !== "" && !value.includes("_")) {
|
|
334
|
+
setActiveSegment("month");
|
|
335
|
+
}
|
|
336
|
+
} else if (date.type === "MM") {
|
|
337
|
+
if (sourceInfo.source !== "event") return;
|
|
338
|
+
const value = values.formattedValue;
|
|
339
|
+
setInputYear(null);
|
|
340
|
+
if (Number(value) > 12) {
|
|
341
|
+
setInputMonth("12");
|
|
342
|
+
} else {
|
|
343
|
+
setInputMonth(value);
|
|
344
|
+
}
|
|
345
|
+
if (value !== "" && !value.includes("_")) {
|
|
346
|
+
setActiveSegment("year");
|
|
347
|
+
}
|
|
348
|
+
} else if (date.type === "YYYY") {
|
|
349
|
+
if (sourceInfo.source !== "event") return;
|
|
350
|
+
const value = values.formattedValue;
|
|
351
|
+
setInputYear(value);
|
|
352
|
+
if (value !== "" && !value.includes("_")) {
|
|
353
|
+
const day = inputDay ? Number(inputDay) : NaN;
|
|
354
|
+
const month = inputMonth ? Number(inputMonth) : NaN;
|
|
355
|
+
const year = value ? Number(value) : NaN;
|
|
356
|
+
if (!isNaN(day) && !isNaN(month) && !isNaN(year)) {
|
|
357
|
+
const m = moment.utc(`${day}.${month}.${year}`, "D.M.YYYY", true).startOf("day");
|
|
358
|
+
if (m.isValid()) {
|
|
359
|
+
onChangeDate(m.valueOf(), false, true);
|
|
360
|
+
} else {
|
|
361
|
+
setIsError(true);
|
|
362
|
+
setTimeout(() => {
|
|
363
|
+
setIsError(false);
|
|
364
|
+
setInputDay(null);
|
|
365
|
+
setInputMonth(null);
|
|
366
|
+
setInputYear(null);
|
|
367
|
+
setActiveSegment("day");
|
|
368
|
+
}, 1e3);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
$genre: props.genre,
|
|
375
|
+
$size: props.size,
|
|
376
|
+
getInputRef: (ref) => {
|
|
377
|
+
if (ref && !date.ref.current) {
|
|
378
|
+
date.ref.current = ref;
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
onFocus: (e) => {
|
|
382
|
+
date.setActive();
|
|
383
|
+
e.target.select();
|
|
384
|
+
},
|
|
385
|
+
onBlur: () => {
|
|
386
|
+
if (index !== dataDate.length - 1) {
|
|
387
|
+
if (date.valueInput && date.valueInput.includes("_"))
|
|
388
|
+
date.setValueInput(fixUnderscoreToZero(date.valueInput));
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
onKeyDown: handleKeyDown,
|
|
392
|
+
value: date.valueInput ?? "",
|
|
393
|
+
placeholder: date.placeholder,
|
|
394
|
+
format: "#".repeat(date.type.length),
|
|
395
|
+
style: { width: date.width },
|
|
396
|
+
readOnly: isError,
|
|
397
|
+
type: "text",
|
|
398
|
+
mask: "_"
|
|
399
|
+
}
|
|
400
|
+
),
|
|
401
|
+
index !== dataDate.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "4px", pointerEvents: "none", textAlign: "center" }, children: "." })
|
|
402
|
+
] }, date.type))
|
|
403
|
+
}
|
|
404
|
+
)
|
|
405
|
+
}
|
|
406
|
+
),
|
|
407
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
408
|
+
Popover,
|
|
409
|
+
{
|
|
410
|
+
sx: (theme2) => ({
|
|
411
|
+
default: {
|
|
412
|
+
background: theme2.colors.input[props.genre].background.rest,
|
|
413
|
+
border: `solid 1px ${theme2.colors.input[props.genre].border.rest}`
|
|
414
|
+
}
|
|
415
|
+
}),
|
|
416
|
+
size: props.size,
|
|
417
|
+
genre: props.genre,
|
|
418
|
+
isOpen,
|
|
419
|
+
floatingStyles,
|
|
420
|
+
ref: floating,
|
|
421
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(DateDropdownList, { $isInputEffect: props.isInputEffect, $genre: props.genre, $size: props.size, children: [
|
|
422
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
423
|
+
Stack,
|
|
424
|
+
{
|
|
425
|
+
sx: {
|
|
426
|
+
default: {
|
|
427
|
+
justifyContent: "space-between",
|
|
428
|
+
alignItems: "center"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
children: [
|
|
432
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
433
|
+
Button,
|
|
434
|
+
{
|
|
435
|
+
type: "button",
|
|
436
|
+
isRadius: true,
|
|
437
|
+
icons: [
|
|
438
|
+
{
|
|
439
|
+
name: "Arrow2",
|
|
440
|
+
type: "id",
|
|
441
|
+
turn: 90
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
isWidthAsHeight: true,
|
|
445
|
+
genre: props.genre,
|
|
446
|
+
size: "small",
|
|
447
|
+
onClick: () => !isBlockPrevMonth && onPrevMonth(),
|
|
448
|
+
isHidden: isBlockPrevMonth
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
currentYear !== null && currentMonth !== null && currentDay !== null ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { sx: { default: { gap: "8px" } }, children: [
|
|
452
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
453
|
+
SelectMonth,
|
|
454
|
+
{
|
|
455
|
+
isShortLabel: true,
|
|
456
|
+
monthsLocale: props.locale.months,
|
|
457
|
+
genre: props.genre,
|
|
458
|
+
size: "small",
|
|
459
|
+
value: moment.utc().year(currentYear).month(currentMonth).date(currentDay).startOf("day").utc().valueOf(),
|
|
460
|
+
onChange: (timestamp) => {
|
|
461
|
+
onChangeDate(timestamp, false, true);
|
|
462
|
+
},
|
|
463
|
+
startDate: props.startDate,
|
|
464
|
+
endDate: props.endDate,
|
|
465
|
+
sx: { default: { width: "70px" } }
|
|
466
|
+
}
|
|
467
|
+
),
|
|
468
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
469
|
+
SelectYear,
|
|
470
|
+
{
|
|
471
|
+
genre: props.genre,
|
|
472
|
+
size: "small",
|
|
473
|
+
value: moment.utc().year(currentYear).month(currentMonth).date(currentDay).startOf("day").utc().valueOf(),
|
|
474
|
+
onChange: (timestamp) => {
|
|
475
|
+
onChangeDate(timestamp, false, true);
|
|
476
|
+
},
|
|
477
|
+
startDate: props.startDate,
|
|
478
|
+
endDate: props.endDate,
|
|
479
|
+
sx: { default: { width: "70px" } }
|
|
480
|
+
}
|
|
481
|
+
)
|
|
482
|
+
] }) : null,
|
|
483
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
484
|
+
Button,
|
|
485
|
+
{
|
|
486
|
+
type: "button",
|
|
487
|
+
onClick: () => !isBlockNextMonth && onNextMonth(),
|
|
488
|
+
isWidthAsHeight: true,
|
|
489
|
+
isRadius: true,
|
|
490
|
+
icons: [
|
|
491
|
+
{
|
|
492
|
+
name: "Arrow2",
|
|
493
|
+
type: "id",
|
|
494
|
+
turn: -90
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
genre: props.genre,
|
|
498
|
+
size: "small",
|
|
499
|
+
isHidden: isBlockNextMonth
|
|
500
|
+
}
|
|
501
|
+
)
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
),
|
|
505
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(DateDropdownDays, { $rows: rows, children: [
|
|
506
|
+
daysInWeek.map((e, index) => {
|
|
507
|
+
var _a;
|
|
508
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
509
|
+
DateDropdownDayOfWeek,
|
|
510
|
+
{
|
|
511
|
+
$isToday: false,
|
|
512
|
+
$isWeekend: false,
|
|
513
|
+
type: "button",
|
|
514
|
+
$genre: props.genre,
|
|
515
|
+
$size: props.size,
|
|
516
|
+
$row: ((_a = daysInMonth[0]) == null ? void 0 : _a.weekOfMonth) - 1,
|
|
517
|
+
$column: index + 1,
|
|
518
|
+
children: e.label
|
|
519
|
+
},
|
|
520
|
+
index
|
|
521
|
+
);
|
|
522
|
+
}),
|
|
523
|
+
daysInMonth.map(
|
|
524
|
+
(day) => !day.isDisabled ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
525
|
+
DateDropdownDay,
|
|
526
|
+
{
|
|
527
|
+
type: "button",
|
|
528
|
+
$genre: props.genre,
|
|
529
|
+
$size: props.size,
|
|
530
|
+
$row: (day == null ? void 0 : day.weekOfMonth) + 1,
|
|
531
|
+
$column: day.dayOfWeek,
|
|
532
|
+
onClick: () => onChangeDate(day.value, true, true),
|
|
533
|
+
$isToday: day.isToday,
|
|
534
|
+
$isWeekend: day.isWeekend,
|
|
535
|
+
$isChoice: day.value === (valueMoment == null ? void 0 : valueMoment.valueOf()),
|
|
536
|
+
$isCurrentMonth: day.isCurrentMonth,
|
|
537
|
+
children: [
|
|
538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Ripple, { color: theme.colors.date[props.genre].color.rest }),
|
|
539
|
+
day.labelNumber
|
|
540
|
+
]
|
|
541
|
+
},
|
|
542
|
+
day.value
|
|
543
|
+
) : null
|
|
544
|
+
)
|
|
545
|
+
] })
|
|
546
|
+
] })
|
|
547
|
+
}
|
|
548
|
+
),
|
|
549
|
+
(props == null ? void 0 : props.error) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { ...props == null ? void 0 : props.error, size: (props == null ? void 0 : props.error.size) ?? props.size }) : null
|
|
550
|
+
] });
|
|
551
|
+
};
|
|
552
|
+
function fixUnderscoreToZero(str) {
|
|
553
|
+
if (str.length === 2) {
|
|
554
|
+
return "0" + str[0];
|
|
555
|
+
}
|
|
556
|
+
return str.replace(/_/g, "0");
|
|
557
|
+
}
|
|
558
|
+
function fixOneToZero(str) {
|
|
559
|
+
if (str.length === 1) {
|
|
560
|
+
return "0" + str[0];
|
|
561
|
+
}
|
|
562
|
+
return str;
|
|
563
|
+
}
|
|
564
|
+
const DateWrapper = styled.div`
|
|
565
|
+
width: 100%;
|
|
566
|
+
position: relative;
|
|
567
|
+
height: fit-content;
|
|
568
|
+
${(props) => props.$isMinWidth && css`
|
|
569
|
+
width: min-content;
|
|
570
|
+
`}
|
|
571
|
+
${addSX};
|
|
572
|
+
${addNiceNumber};
|
|
573
|
+
`;
|
|
574
|
+
const DateDropdownListParent = styled(motion.div)`
|
|
575
|
+
${addRemoveScrollbar};
|
|
576
|
+
`;
|
|
577
|
+
const DateDropdownList = styled.div`
|
|
578
|
+
list-style: none;
|
|
579
|
+
|
|
580
|
+
position: relative;
|
|
581
|
+
|
|
582
|
+
display: flex;
|
|
583
|
+
flex-direction: column;
|
|
584
|
+
overflow: hidden;
|
|
585
|
+
width: 100%;
|
|
586
|
+
padding-top: 6px;
|
|
587
|
+
transform: translateZ(0);
|
|
588
|
+
${InputIsInputEffect};
|
|
589
|
+
justify-content: flex-start;
|
|
590
|
+
gap: 10px;
|
|
591
|
+
`;
|
|
592
|
+
const DateDropdownDays = styled.div`
|
|
593
|
+
display: grid;
|
|
594
|
+
column-gap: normal;
|
|
595
|
+
row-gap: normal;
|
|
596
|
+
gap: 6px;
|
|
597
|
+
grid-template-columns: repeat(7, 28px);
|
|
598
|
+
grid-template-rows: repeat(${(props) => props.$rows}, 28px);
|
|
599
|
+
justify-content: space-between;
|
|
600
|
+
`;
|
|
601
|
+
const DateDropdownDaySize = css`
|
|
602
|
+
${(props) => props.$size && DateDropdownDaySizeConstructor({
|
|
603
|
+
...KEY_SIZE_DATA[props.$size]
|
|
604
|
+
})};
|
|
605
|
+
position: relative;
|
|
606
|
+
overflow: hidden;
|
|
607
|
+
isolation: isolate;
|
|
608
|
+
user-select: none;
|
|
609
|
+
background: ${(props) => props.theme.colors.date[props.$genre].background.rest};
|
|
610
|
+
border-color: ${(props) => props.theme.colors.date[props.$genre].border.rest};
|
|
611
|
+
color: ${(props) => props.theme.colors.date[props.$genre].color.rest};
|
|
612
|
+
border: 1px solid transparent;
|
|
613
|
+
grid-row: ${(props) => props.$row};
|
|
614
|
+
grid-column: ${(props) => props.$column};
|
|
615
|
+
display: flex;
|
|
616
|
+
align-items: center;
|
|
617
|
+
justify-content: center;
|
|
618
|
+
width: 100%;
|
|
619
|
+
height: 100%;
|
|
620
|
+
cursor: pointer;
|
|
621
|
+
&:hover {
|
|
622
|
+
${(props) => css`
|
|
623
|
+
background: ${props.theme.colors.date[props.$genre].background.hover};
|
|
624
|
+
border-color: ${props.theme.colors.date[props.$genre].border.hover};
|
|
625
|
+
color: ${props.theme.colors.date[props.$genre].color.hover};
|
|
626
|
+
`}
|
|
627
|
+
}
|
|
628
|
+
${addTransition};
|
|
629
|
+
|
|
630
|
+
${(props) => props.$isWeekend && css`
|
|
631
|
+
background: ${props.theme.colors.date[props.$genre].background.weekend};
|
|
632
|
+
border-color: ${props.theme.colors.date[props.$genre].border.weekend};
|
|
633
|
+
color: ${props.theme.colors.date[props.$genre].color.weekend};
|
|
634
|
+
`}
|
|
635
|
+
${(props) => props.$isToday && css`
|
|
636
|
+
background: ${props.theme.colors.date[props.$genre].background.today};
|
|
637
|
+
border-color: ${props.theme.colors.date[props.$genre].border.today};
|
|
638
|
+
color: ${props.theme.colors.date[props.$genre].color.today};
|
|
639
|
+
`}
|
|
640
|
+
${(props) => props.$isChoice && css`
|
|
641
|
+
background: ${props.theme.colors.date[props.$genre].background.choice};
|
|
642
|
+
border-color: ${props.theme.colors.date[props.$genre].border.choice};
|
|
643
|
+
color: ${props.theme.colors.date[props.$genre].color.choice};
|
|
644
|
+
`}
|
|
645
|
+
${(props) => !props.$isCurrentMonth && css`
|
|
646
|
+
opacity: 0.5;
|
|
647
|
+
`}
|
|
648
|
+
${(params) => getFontSizeStyles(12, 700, params.theme.font.family)};
|
|
649
|
+
|
|
650
|
+
${addOutline};
|
|
651
|
+
`;
|
|
652
|
+
const DateDropdownDaySizeConstructor = (props) => css`
|
|
653
|
+
border-radius: ${props.radius}px;
|
|
654
|
+
${(params) => getFontSizeStyles(12, 700, params.theme.font.family)};
|
|
655
|
+
`;
|
|
656
|
+
const DateDropdownDay = styled.button`
|
|
657
|
+
${DateDropdownDaySize}
|
|
658
|
+
`;
|
|
659
|
+
const DateDropdownDayOfWeek = styled.button`
|
|
660
|
+
${DateDropdownDaySize}
|
|
661
|
+
opacity: 1;
|
|
662
|
+
background-color: transparent;
|
|
663
|
+
`;
|
|
664
|
+
const DateInputGenre = css`
|
|
665
|
+
${(props) => css`
|
|
666
|
+
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
667
|
+
&:active {
|
|
668
|
+
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
669
|
+
}
|
|
670
|
+
&:focus-visible {
|
|
671
|
+
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
672
|
+
}
|
|
673
|
+
`};
|
|
674
|
+
`;
|
|
675
|
+
const DateInput = styled(PatternFormat)`
|
|
676
|
+
resize: none;
|
|
677
|
+
overflow: hidden;
|
|
678
|
+
border: 0px solid;
|
|
679
|
+
background: transparent;
|
|
680
|
+
padding: 0px !important;
|
|
681
|
+
margin: 0px !important;
|
|
682
|
+
white-space: nowrap;
|
|
683
|
+
text-align: left;
|
|
684
|
+
${(props) => getFontSizeStyles(16, 400, "Roboto Mono", props.theme.font.lineHeight)};
|
|
685
|
+
${DateInputGenre};
|
|
686
|
+
${InputPlaceholderNiceNumber};
|
|
687
|
+
${addRemoveOutline};
|
|
688
|
+
`;
|
|
689
|
+
const DateInputWrapperGenre = css`
|
|
690
|
+
${(props) => css`
|
|
691
|
+
background: ${props.theme.colors.input[props.$genre].background.rest};
|
|
692
|
+
border-color: ${props.theme.colors.input[props.$genre].border.rest};
|
|
693
|
+
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
694
|
+
outline: 2px solid transparent;
|
|
695
|
+
outline-offset: 1px;
|
|
696
|
+
&:hover {
|
|
697
|
+
background: ${props.theme.colors.input[props.$genre].background.hover};
|
|
698
|
+
border-color: ${props.theme.colors.input[props.$genre].border.hover};
|
|
699
|
+
color: ${props.theme.colors.input[props.$genre].color.hover};
|
|
700
|
+
}
|
|
701
|
+
&:has(:focus-visible),
|
|
702
|
+
&:has(:active) {
|
|
703
|
+
background: ${props.theme.colors.input[props.$genre].background.rest};
|
|
704
|
+
border-color: ${props.theme.colors.input[props.$genre].border.rest};
|
|
705
|
+
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
706
|
+
outline: 2px solid ${(props2) => props2.theme.states.focus};
|
|
707
|
+
}
|
|
708
|
+
${props.$isOpen && css`
|
|
709
|
+
background: ${props.theme.colors.input[props.$genre].background.rest};
|
|
710
|
+
border-color: ${props.theme.colors.input[props.$genre].border.rest};
|
|
711
|
+
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
712
|
+
outline: 2px solid ${(props2) => props2.theme.states.focus};
|
|
713
|
+
`}
|
|
714
|
+
`};
|
|
715
|
+
`;
|
|
716
|
+
const DateInputWrapperSize = css`
|
|
717
|
+
${(props) => DateInputWrapperSizeConstructor(KEY_SIZE_DATA[props.$size])};
|
|
718
|
+
`;
|
|
719
|
+
const DateInputWrapperSizeConstructor = (props) => css`
|
|
720
|
+
padding: 0px ${props.padding}px;
|
|
721
|
+
height: ${props.height}px;
|
|
722
|
+
min-height: ${props.height}px;
|
|
723
|
+
max-height: ${props.height}px;
|
|
724
|
+
border-radius: ${props.radius}px;
|
|
725
|
+
`;
|
|
726
|
+
const DateInputWrapper = styled.div`
|
|
727
|
+
resize: none;
|
|
728
|
+
overflow: hidden;
|
|
729
|
+
width: 100%;
|
|
730
|
+
border: 1px solid transparent;
|
|
731
|
+
|
|
732
|
+
white-space: nowrap;
|
|
733
|
+
|
|
734
|
+
display: flex;
|
|
735
|
+
align-items: center;
|
|
736
|
+
gap: 0px;
|
|
737
|
+
|
|
738
|
+
${DateInputWrapperSize};
|
|
739
|
+
${DateInputWrapperGenre};
|
|
740
|
+
${addTransition};
|
|
741
|
+
${addError};
|
|
742
|
+
`;
|
|
743
|
+
export {
|
|
744
|
+
DatePicker as D,
|
|
745
|
+
DateWrapper as a,
|
|
746
|
+
DateDropdownListParent as b,
|
|
747
|
+
DateDropdownList as c,
|
|
748
|
+
DateDropdownDays as d,
|
|
749
|
+
DateDropdownDaySize as e,
|
|
750
|
+
DateDropdownDaySizeConstructor as f,
|
|
751
|
+
DateDropdownDay as g,
|
|
752
|
+
DateDropdownDayOfWeek as h,
|
|
753
|
+
DateInput as i,
|
|
754
|
+
DateInputWrapperSize as j,
|
|
755
|
+
DateInputWrapperSizeConstructor as k,
|
|
756
|
+
DateInputWrapper as l
|
|
757
|
+
};
|
|
758
|
+
//# sourceMappingURL=component.styles-CV7jTFCg.js.map
|