@jenesei-software/jenesei-kit-react 1.3.40 → 2.0.1
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/README.md +0 -37
- package/build/AnimatePresence-19yP-TCg.js +134 -0
- package/build/AnimatePresence-19yP-TCg.js.map +1 -0
- package/build/AnimatePresence-BdBJCJuf.cjs +11 -0
- package/build/AnimatePresence-BdBJCJuf.cjs.map +1 -0
- package/build/area-outside.cjs.js +1 -2
- package/build/area-outside.d.ts +2 -28
- package/build/area-outside.es.js +2 -3
- package/build/area-preview.cjs.js +1 -2
- package/build/area-preview.d.ts +2 -48
- package/build/area-preview.es.js +3 -5
- package/build/area-skeleton.cjs.js +1 -2
- package/build/area-skeleton.d.ts +2 -68
- package/build/area-skeleton.es.js +2 -4
- package/build/areas/outside/area.d.ts +7 -0
- package/build/areas/outside/index.d.ts +1 -0
- package/build/areas/preview/area.d.ts +3 -0
- package/build/areas/preview/area.hooks.d.ts +1 -0
- package/build/areas/preview/area.types.d.ts +19 -0
- package/build/areas/preview/index.d.ts +3 -0
- package/build/areas/skeleton/area.d.ts +3 -0
- package/build/areas/skeleton/area.types.d.ts +21 -0
- package/build/areas/skeleton/index.d.ts +2 -0
- package/build/build-info.txt +3 -3
- package/build/button-BbGiFvok.js +102 -0
- package/build/button-BbGiFvok.js.map +1 -0
- package/build/button-BuPpgfL_.cjs +3 -0
- package/build/button-BuPpgfL_.cjs.map +1 -0
- package/build/checkbox-CXxWDklX.js +98 -0
- package/build/checkbox-CXxWDklX.js.map +1 -0
- package/build/checkbox-qgc_Ntc3.cjs +3 -0
- package/build/checkbox-qgc_Ntc3.cjs.map +1 -0
- package/build/chunk-Dd8m0Ver.cjs +1 -0
- package/build/chunk-cI0lbGMq.js +31 -0
- package/build/component-BHyXT2-h.js +71 -0
- package/build/component-BHyXT2-h.js.map +1 -0
- package/build/component-button.cjs.js +1 -2
- package/build/component-button.d.ts +2 -208
- package/build/component-button.es.js +2 -5
- package/build/component-checkbox.cjs.js +1 -2
- package/build/component-checkbox.d.ts +2 -208
- package/build/component-checkbox.es.js +2 -8
- package/build/component-date-picker.cjs.js +1 -2
- package/build/component-date-picker.d.ts +2 -582
- package/build/component-date-picker.es.js +2 -19
- package/build/component-icon.cjs.js +1 -2
- package/build/component-icon.d.ts +2 -136
- package/build/component-icon.es.js +4 -8
- package/build/component-input-otp.cjs.js +1 -2
- package/build/component-input-otp.d.ts +2 -211
- package/build/component-input-otp.es.js +2 -7
- package/build/component-input.cjs.js +1 -2
- package/build/component-input.d.ts +2 -286
- package/build/component-input.es.js +2 -18
- package/build/component-jsn2T8Hu.cjs +3 -0
- package/build/component-jsn2T8Hu.cjs.map +1 -0
- package/build/component-pagination.cjs.js +1 -2
- package/build/component-pagination.d.ts +2 -196
- package/build/component-pagination.es.js +2 -4
- package/build/component-popover.cjs.js +1 -0
- package/build/component-popover.d.ts +2 -0
- package/build/component-popover.es.js +5 -0
- package/build/component-select.cjs.js +1 -2
- package/build/component-select.d.ts +2 -411
- package/build/component-select.es.js +6 -18
- package/build/component-separator.cjs.js +1 -2
- package/build/component-separator.d.ts +2 -49
- package/build/component-separator.es.js +2 -5
- package/build/component-stack.cjs.js +1 -2
- package/build/component-stack.d.ts +2 -72
- package/build/component-stack.es.js +3 -6
- package/build/component-textarea.cjs.js +1 -2
- package/build/component-textarea.d.ts +2 -202
- package/build/component-textarea.es.js +2 -6
- package/build/component-toggle.cjs.js +1 -2
- package/build/component-toggle.d.ts +2 -150
- package/build/component-toggle.es.js +2 -6
- package/build/component-tooltip.cjs.js +1 -2
- package/build/component-tooltip.d.ts +2 -360
- package/build/component-tooltip.es.js +2 -10
- package/build/component-typography.cjs.js +1 -2
- package/build/component-typography.d.ts +2 -316
- package/build/component-typography.es.js +3 -9
- package/build/components/button/component.d.ts +3 -0
- package/build/components/button/component.types.d.ts +41 -0
- package/build/components/button/index.d.ts +2 -0
- package/build/components/checkbox/component.d.ts +3 -0
- package/build/components/checkbox/component.types.d.ts +51 -0
- package/build/components/checkbox/index.d.ts +2 -0
- package/build/components/date-picker/component.d.ts +2 -0
- package/build/components/date-picker/component.types.d.ts +86 -0
- package/build/components/date-picker/index.d.ts +2 -0
- package/build/components/error/component.d.ts +3 -0
- package/build/components/error/component.types.d.ts +11 -0
- package/build/components/error/index.d.ts +2 -0
- package/build/components/icon/component.consts.d.ts +6 -0
- package/build/components/icon/component.d.ts +9 -0
- package/build/components/icon/component.functions.d.ts +2 -0
- package/build/components/icon/component.hooks.d.ts +5 -0
- package/build/components/icon/component.types.d.ts +47 -0
- package/build/components/icon/index.d.ts +4 -0
- package/build/components/input/component.d.ts +6 -0
- package/build/components/input/component.types.d.ts +78 -0
- package/build/components/input/index.d.ts +2 -0
- package/build/components/input-otp/component.d.ts +2 -0
- package/build/components/input-otp/component.types.d.ts +8 -0
- package/build/components/input-otp/index.d.ts +2 -0
- package/build/components/pagination/component.constants.d.ts +1 -0
- package/build/components/pagination/component.d.ts +3 -0
- package/build/components/pagination/component.types.d.ts +22 -0
- package/build/components/pagination/index.d.ts +2 -0
- package/build/components/popover/component.constants.d.ts +3 -0
- package/build/components/popover/component.d.ts +34 -0
- package/build/components/popover/component.types.d.ts +113 -0
- package/build/components/popover/index.d.ts +2 -0
- package/build/components/select/component.d.ts +4 -0
- package/build/components/select/component.examples.d.ts +6 -0
- package/build/components/select/component.types.d.ts +109 -0
- package/build/components/select/index.d.ts +3 -0
- package/build/components/separator/component.d.ts +3 -0
- package/build/components/separator/component.types.d.ts +10 -0
- package/build/components/separator/index.d.ts +2 -0
- package/build/components/stack/component.d.ts +4 -0
- package/build/components/stack/component.types.d.ts +20 -0
- package/build/components/stack/index.d.ts +2 -0
- package/build/components/textarea/component.d.ts +2 -0
- package/build/components/textarea/component.types.d.ts +67 -0
- package/build/components/textarea/index.d.ts +2 -0
- package/build/components/toggle/component.d.ts +2 -0
- package/build/components/toggle/component.types.d.ts +25 -0
- package/build/components/toggle/index.d.ts +2 -0
- package/build/components/tooltip/component.constants.d.ts +3 -0
- package/build/components/tooltip/component.d.ts +4 -0
- package/build/components/tooltip/component.types.d.ts +12 -0
- package/build/components/tooltip/index.d.ts +2 -0
- package/build/components/typography/component.d.ts +3 -0
- package/build/components/typography/component.types.d.ts +18 -0
- package/build/components/typography/index.d.ts +2 -0
- package/build/components-error.cjs.js +1 -0
- package/build/components-error.d.ts +2 -0
- package/build/components-error.es.js +4 -0
- package/build/context-app-CMK9g6MI.js +417 -0
- package/build/context-app-CMK9g6MI.js.map +1 -0
- package/build/context-app-HhFcx1wY.cjs +9 -0
- package/build/context-app-HhFcx1wY.cjs.map +1 -0
- package/build/context-app.cjs.js +1 -2
- package/build/context-app.d.ts +2 -224
- package/build/context-app.es.js +3 -19
- package/build/context-browser-theme-Cb6siWO0.js +35 -0
- package/build/context-browser-theme-Cb6siWO0.js.map +1 -0
- package/build/context-browser-theme-Cso_rAT5.cjs +3 -0
- package/build/context-browser-theme-Cso_rAT5.cjs.map +1 -0
- package/build/context-browser-theme.cjs.js +1 -0
- package/build/context-browser-theme.d.ts +2 -0
- package/build/context-browser-theme.es.js +5 -0
- package/build/context-cookie-5CBhf-gb.js +138 -0
- package/build/context-cookie-5CBhf-gb.js.map +1 -0
- package/build/context-cookie-Btkd2aXy.cjs +3 -0
- package/build/context-cookie-Btkd2aXy.cjs.map +1 -0
- package/build/context-cookie.cjs.js +1 -2
- package/build/context-cookie.d.ts +2 -67
- package/build/context-cookie.es.js +3 -8
- package/build/context-dialog-B67-_jMH.cjs +3 -0
- package/build/context-dialog-B67-_jMH.cjs.map +1 -0
- package/build/context-dialog-CxGGmBqC.js +176 -0
- package/build/context-dialog-CxGGmBqC.js.map +1 -0
- package/build/context-dialog.cjs.js +1 -2
- package/build/context-dialog.d.ts +2 -106
- package/build/context-dialog.es.js +4 -17
- package/build/context-geolocation-C7PYGQ2g.js +42 -0
- package/build/context-geolocation-C7PYGQ2g.js.map +1 -0
- package/build/context-geolocation-CV4hV0NX.cjs +3 -0
- package/build/context-geolocation-CV4hV0NX.cjs.map +1 -0
- package/build/context-geolocation.cjs.js +1 -2
- package/build/context-geolocation.d.ts +2 -22
- package/build/context-geolocation.es.js +3 -6
- package/build/context-local-storage-Bb_vktd8.js +83 -0
- package/build/context-local-storage-Bb_vktd8.js.map +1 -0
- package/build/context-local-storage-DUKHVPAA.cjs +3 -0
- package/build/context-local-storage-DUKHVPAA.cjs.map +1 -0
- package/build/context-local-storage.cjs.js +1 -2
- package/build/context-local-storage.d.ts +2 -54
- package/build/context-local-storage.es.js +3 -8
- package/build/context-permission-Co4BKDOu.js +77 -0
- package/build/context-permission-Co4BKDOu.js.map +1 -0
- package/build/context-permission-DrcIwK9y.cjs +3 -0
- package/build/context-permission-DrcIwK9y.cjs.map +1 -0
- package/build/context-permission.cjs.js +1 -2
- package/build/context-permission.d.ts +2 -28
- package/build/context-permission.es.js +3 -7
- package/build/context-screen-width-CFexCIzV.js +53 -0
- package/build/context-screen-width-CFexCIzV.js.map +1 -0
- package/build/context-screen-width-hcRkxzy7.cjs +3 -0
- package/build/context-screen-width-hcRkxzy7.cjs.map +1 -0
- package/build/context-screen-width.cjs.js +1 -2
- package/build/context-screen-width.d.ts +2 -34
- package/build/context-screen-width.es.js +3 -5
- package/build/context-sonner-4gBa1F7G.cjs +3 -0
- package/build/context-sonner-4gBa1F7G.cjs.map +1 -0
- package/build/context-sonner-qDPLFpD5.js +218 -0
- package/build/context-sonner-qDPLFpD5.js.map +1 -0
- package/build/context-sonner.cjs.js +1 -2
- package/build/context-sonner.d.ts +2 -457
- package/build/context-sonner.es.js +3 -20
- package/build/contexts/context-app/context.d.ts +33 -0
- package/build/contexts/context-app/context.hooks.d.ts +2 -0
- package/build/contexts/context-app/context.styles.d.ts +14 -0
- package/build/contexts/context-app/context.types.d.ts +87 -0
- package/build/contexts/context-app/index.d.ts +2 -0
- package/build/contexts/context-browser-theme/context.d.ts +4 -0
- package/build/contexts/context-browser-theme/context.hooks.d.ts +2 -0
- package/build/contexts/context-browser-theme/context.types.d.ts +12 -0
- package/build/contexts/context-browser-theme/index.d.ts +2 -0
- package/build/contexts/context-cookie/context.d.ts +27 -0
- package/build/contexts/context-cookie/context.functions.d.ts +3 -0
- package/build/contexts/context-cookie/context.hooks.d.ts +9 -0
- package/build/contexts/context-cookie/context.types.d.ts +18 -0
- package/build/contexts/context-cookie/index.d.ts +3 -0
- package/build/contexts/context-dialog/context.constants.d.ts +8 -0
- package/build/contexts/context-dialog/context.d.ts +4 -0
- package/build/contexts/context-dialog/context.hooks.d.ts +3 -0
- package/build/contexts/context-dialog/context.styles.d.ts +9 -0
- package/build/contexts/context-dialog/context.types.d.ts +47 -0
- package/build/contexts/context-dialog/index.d.ts +3 -0
- package/build/contexts/context-geolocation/context.d.ts +4 -0
- package/build/contexts/context-geolocation/context.hooks.d.ts +2 -0
- package/build/contexts/context-geolocation/context.types.d.ts +10 -0
- package/build/contexts/context-geolocation/index.d.ts +2 -0
- package/build/contexts/context-local-storage/context.d.ts +21 -0
- package/build/contexts/context-local-storage/context.functions.d.ts +2 -0
- package/build/contexts/context-local-storage/context.hooks.d.ts +5 -0
- package/build/contexts/context-local-storage/context.types.d.ts +16 -0
- package/build/contexts/context-local-storage/index.d.ts +3 -0
- package/build/contexts/context-permission/context.d.ts +3 -0
- package/build/contexts/context-permission/context.functions.d.ts +1 -0
- package/build/contexts/context-permission/context.hooks.d.ts +5 -0
- package/build/contexts/context-permission/context.types.d.ts +11 -0
- package/build/contexts/context-permission/index.d.ts +2 -0
- package/build/contexts/context-screen-width/context.d.ts +4 -0
- package/build/contexts/context-screen-width/context.hooks.d.ts +2 -0
- package/build/contexts/context-screen-width/context.types.d.ts +11 -0
- package/build/contexts/context-screen-width/index.d.ts +3 -0
- package/build/contexts/context-sonner/context.constants.d.ts +9 -0
- package/build/contexts/context-sonner/context.d.ts +4 -0
- package/build/contexts/context-sonner/context.hooks.d.ts +2 -0
- package/build/contexts/context-sonner/context.styles.d.ts +30 -0
- package/build/contexts/context-sonner/context.types.d.ts +59 -0
- package/build/contexts/context-sonner/index.d.ts +3 -0
- package/build/cores/consts.d.ts +30 -0
- package/build/{functions.d.ts → cores/functions.d.ts} +18 -22
- package/build/cores/logger.d.ts +1 -0
- package/build/cores/types.d.ts +18 -0
- package/build/date-picker-CPNNIEa-.cjs +3 -0
- package/build/date-picker-CPNNIEa-.cjs.map +1 -0
- package/build/date-picker-Uuce_InW.js +689 -0
- package/build/date-picker-Uuce_InW.js.map +1 -0
- package/build/dist-BV0C3tLK.js +483 -0
- package/build/dist-BV0C3tLK.js.map +1 -0
- package/build/dist-DswBAjW1.cjs +3 -0
- package/build/dist-DswBAjW1.cjs.map +1 -0
- package/build/error-DzkkNL2H.cjs +3 -0
- package/build/error-DzkkNL2H.cjs.map +1 -0
- package/build/error-L2fvWcNv.js +50 -0
- package/build/error-L2fvWcNv.js.map +1 -0
- package/build/functions-CLGf7hqw.js +20 -0
- package/build/functions-CLGf7hqw.js.map +1 -0
- package/build/functions-Dwo54amB.cjs +3 -0
- package/build/functions-Dwo54amB.cjs.map +1 -0
- package/build/hooks/use-debounced-callback/index.d.ts +1 -0
- package/build/hooks/use-debounced-callback/use.d.ts +1 -0
- package/build/hooks/use-deep-compare-memoize/index.d.ts +1 -0
- package/build/hooks/use-deep-compare-memoize/use.d.ts +1 -0
- package/build/hooks/use-deep-memo/index.d.ts +1 -0
- package/build/hooks/use-deep-memo/use.d.ts +1 -0
- package/build/hooks/use-merge-refs/index.d.ts +1 -0
- package/build/hooks/use-merge-refs/use.d.ts +2 -0
- package/build/hooks/use-overflowing/index.d.ts +2 -0
- package/build/hooks/use-overflowing/use.d.ts +12 -0
- package/build/hooks/use-overflowing/use.types.d.ts +6 -0
- package/build/hooks/use-overflowing-advanced/index.d.ts +2 -0
- package/build/hooks/use-overflowing-advanced/use.d.ts +7 -0
- package/build/hooks/use-overflowing-advanced/use.types.d.ts +5 -0
- package/build/hooks/use-overflowing-in-container/index.d.ts +2 -0
- package/build/hooks/use-overflowing-in-container/use.d.ts +7 -0
- package/build/hooks/use-overflowing-in-container/use.types.d.ts +7 -0
- package/build/hooks/use-responsive-layout/index.d.ts +1 -0
- package/build/hooks/use-responsive-layout/use.d.ts +2 -0
- package/build/hooks/use-typography-styles/index.d.ts +2 -0
- package/build/hooks/use-typography-styles/use.d.ts +2 -0
- package/build/hooks/use-typography-styles/use.types.d.ts +11 -0
- package/build/hooks-use-debounced-callback.cjs.js +3 -2
- package/build/hooks-use-debounced-callback.cjs.js.map +1 -1
- package/build/hooks-use-debounced-callback.d.ts +2 -3
- package/build/hooks-use-debounced-callback.es.js +12 -3
- package/build/hooks-use-debounced-callback.es.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.cjs.js +3 -2
- package/build/hooks-use-deep-compare-memoize.cjs.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.d.ts +2 -3
- package/build/hooks-use-deep-compare-memoize.es.js +10 -3
- package/build/hooks-use-deep-compare-memoize.es.js.map +1 -1
- package/build/hooks-use-deep-memo.cjs.js +3 -0
- package/build/hooks-use-deep-memo.cjs.js.map +1 -0
- package/build/hooks-use-deep-memo.d.ts +2 -0
- package/build/hooks-use-deep-memo.es.js +13 -0
- package/build/hooks-use-deep-memo.es.js.map +1 -0
- package/build/hooks-use-merge-refs.cjs.js +3 -0
- package/build/hooks-use-merge-refs.cjs.js.map +1 -0
- package/build/hooks-use-merge-refs.d.ts +2 -0
- package/build/hooks-use-merge-refs.es.js +13 -0
- package/build/hooks-use-merge-refs.es.js.map +1 -0
- package/build/hooks-use-overflowing-advanced.cjs.js +3 -0
- package/build/hooks-use-overflowing-advanced.cjs.js.map +1 -0
- package/build/hooks-use-overflowing-advanced.d.ts +2 -0
- package/build/hooks-use-overflowing-advanced.es.js +24 -0
- package/build/hooks-use-overflowing-advanced.es.js.map +1 -0
- package/build/hooks-use-overflowing-in-container.cjs.js +3 -0
- package/build/hooks-use-overflowing-in-container.cjs.js.map +1 -0
- package/build/hooks-use-overflowing-in-container.d.ts +2 -0
- package/build/hooks-use-overflowing-in-container.es.js +20 -0
- package/build/hooks-use-overflowing-in-container.es.js.map +1 -0
- package/build/hooks-use-overflowing.cjs.js +3 -0
- package/build/hooks-use-overflowing.cjs.js.map +1 -0
- package/build/hooks-use-overflowing.d.ts +2 -0
- package/build/hooks-use-overflowing.es.js +28 -0
- package/build/hooks-use-overflowing.es.js.map +1 -0
- package/build/hooks-use-responsive-layout.cjs.js +3 -0
- package/build/hooks-use-responsive-layout.cjs.js.map +1 -0
- package/build/hooks-use-responsive-layout.d.ts +2 -0
- package/build/hooks-use-responsive-layout.es.js +22 -0
- package/build/hooks-use-responsive-layout.es.js.map +1 -0
- package/build/hooks-use-typography-styles.cjs.js +3 -0
- package/build/hooks-use-typography-styles.cjs.js.map +1 -0
- package/build/hooks-use-typography-styles.d.ts +2 -0
- package/build/hooks-use-typography-styles.es.js +37 -0
- package/build/hooks-use-typography-styles.es.js.map +1 -0
- package/build/icon-CoIQwke4.cjs +3 -0
- package/build/icon-CoIQwke4.cjs.map +1 -0
- package/build/icon-DzAWOQJg.js +277 -0
- package/build/icon-DzAWOQJg.js.map +1 -0
- package/build/index.cjs.js +1 -2
- package/build/index.d.ts +39 -2494
- package/build/index.es.js +104 -309
- package/build/input-CV02F03L.js +917 -0
- package/build/input-CV02F03L.js.map +1 -0
- package/build/input-otp-B9cYxJ7X.js +106 -0
- package/build/input-otp-B9cYxJ7X.js.map +1 -0
- package/build/input-otp-BVRCfoRK.cjs +3 -0
- package/build/input-otp-BVRCfoRK.cjs.map +1 -0
- package/build/input-zXF5f99Z.cjs +11 -0
- package/build/input-zXF5f99Z.cjs.map +1 -0
- package/build/isEqual-DeC2HFe5.cjs +3 -0
- package/build/isEqual-DeC2HFe5.cjs.map +1 -0
- package/build/isEqual-Qb81B2zH.js +676 -0
- package/build/isEqual-Qb81B2zH.js.map +1 -0
- package/build/logger-BRWLzI5S.js +174 -0
- package/build/logger-BRWLzI5S.js.map +1 -0
- package/build/logger-DZFY33QY.cjs +5 -0
- package/build/logger-DZFY33QY.cjs.map +1 -0
- package/build/motion-CAPq8wSn.cjs +3 -0
- package/build/motion-CAPq8wSn.cjs.map +1 -0
- package/build/motion-Dt6TyEjN.js +128 -0
- package/build/motion-Dt6TyEjN.js.map +1 -0
- package/build/outside-B3nRnDGb.cjs +3 -0
- package/build/outside-B3nRnDGb.cjs.map +1 -0
- package/build/outside-DpK1pI8b.js +24 -0
- package/build/outside-DpK1pI8b.js.map +1 -0
- package/build/pagination-Dbs4Lrpt.cjs +3 -0
- package/build/pagination-Dbs4Lrpt.cjs.map +1 -0
- package/build/pagination-YXSjZsMZ.js +110 -0
- package/build/pagination-YXSjZsMZ.js.map +1 -0
- package/build/popover-1k1MNFwv.js +1948 -0
- package/build/popover-1k1MNFwv.js.map +1 -0
- package/build/popover-CgwGn-55.cjs +3 -0
- package/build/popover-CgwGn-55.cjs.map +1 -0
- package/build/preview-C_yFxoFH.js +65 -0
- package/build/preview-C_yFxoFH.js.map +1 -0
- package/build/preview-dT7fmxcc.cjs +3 -0
- package/build/preview-dT7fmxcc.cjs.map +1 -0
- package/build/proxy-_gZenxVU.cjs +3 -0
- package/build/proxy-_gZenxVU.cjs.map +1 -0
- package/build/proxy-wCWa57J3.js +4354 -0
- package/build/proxy-wCWa57J3.js.map +1 -0
- package/build/select-B0adRX2_.cjs +9 -0
- package/build/select-B0adRX2_.cjs.map +1 -0
- package/build/select-D7EyxR2l.js +3443 -0
- package/build/select-D7EyxR2l.js.map +1 -0
- package/build/separator-CbeH8Lug.cjs +3 -0
- package/build/separator-CbeH8Lug.cjs.map +1 -0
- package/build/separator-hWp-s54-.js +29 -0
- package/build/separator-hWp-s54-.js.map +1 -0
- package/build/skeleton-BoVFwt7y.cjs +3 -0
- package/build/skeleton-BoVFwt7y.cjs.map +1 -0
- package/build/skeleton-DNwTI6w0.js +39 -0
- package/build/skeleton-DNwTI6w0.js.map +1 -0
- package/build/style-motion.cjs.js +1 -2
- package/build/style-motion.d.ts +2 -20
- package/build/style-motion.es.js +5 -6
- package/build/style-utils.cjs.js +1 -0
- package/build/style-utils.d.ts +2 -0
- package/build/style-utils.es.js +7 -0
- package/build/styles/motion/index.d.ts +1 -0
- package/build/styles/motion/motion.d.ts +13 -0
- package/build/styles/utils/constants.d.ts +1797 -0
- package/build/styles/utils/functions.d.ts +3 -0
- package/build/styles/utils/index.d.ts +3 -0
- package/build/styles/utils/types.d.ts +68 -0
- package/build/textarea-CbZSeqGR.cjs +3 -0
- package/build/textarea-CbZSeqGR.cjs.map +1 -0
- package/build/textarea-ChkjV_Ha.js +132 -0
- package/build/textarea-ChkjV_Ha.js.map +1 -0
- package/build/toggle-I6YvEX4w.js +86 -0
- package/build/toggle-I6YvEX4w.js.map +1 -0
- package/build/toggle-gYw5FUp-.cjs +3 -0
- package/build/toggle-gYw5FUp-.cjs.map +1 -0
- package/build/typography-B2KioMfq.js +116 -0
- package/build/typography-B2KioMfq.js.map +1 -0
- package/build/typography-DcxhX_9e.cjs +3 -0
- package/build/typography-DcxhX_9e.cjs.map +1 -0
- package/build/utils-Cona48dZ.js +925 -0
- package/build/utils-Cona48dZ.js.map +1 -0
- package/build/utils-DtinAjAU.cjs +3 -0
- package/build/utils-DtinAjAU.cjs.map +1 -0
- package/build/v4-BDi_Luux.cjs +3 -0
- package/build/v4-BDi_Luux.cjs.map +1 -0
- package/build/v4-CYaPyb-W.js +31 -0
- package/build/v4-CYaPyb-W.js.map +1 -0
- package/package.json +185 -194
- package/build/area-0BNtBqG8.cjs +0 -2
- package/build/area-0BNtBqG8.cjs.map +0 -1
- package/build/area-B6xxVQ87.js +0 -35
- package/build/area-B6xxVQ87.js.map +0 -1
- package/build/area-B7-4IFQB.js +0 -19
- package/build/area-B7-4IFQB.js.map +0 -1
- package/build/area-DxKLtDFZ.cjs +0 -2
- package/build/area-DxKLtDFZ.cjs.map +0 -1
- package/build/area-outside.cjs.js.map +0 -1
- package/build/area-outside.es.js.map +0 -1
- package/build/area-preview.cjs.js.map +0 -1
- package/build/area-preview.es.js.map +0 -1
- package/build/area-scroll.cjs.js +0 -2
- package/build/area-scroll.cjs.js.map +0 -1
- package/build/area-scroll.d.ts +0 -57
- package/build/area-scroll.es.js +0 -7
- package/build/area-scroll.es.js.map +0 -1
- package/build/area-skeleton.cjs.js.map +0 -1
- package/build/area-skeleton.es.js.map +0 -1
- package/build/area-smooth.cjs.js +0 -2
- package/build/area-smooth.cjs.js.map +0 -1
- package/build/area-smooth.d.ts +0 -37
- package/build/area-smooth.es.js +0 -5
- package/build/area-smooth.es.js.map +0 -1
- package/build/area.hooks-Bk04M7mk.js +0 -26
- package/build/area.hooks-Bk04M7mk.js.map +0 -1
- package/build/area.hooks-C_UKZzcb.cjs +0 -2
- package/build/area.hooks-C_UKZzcb.cjs.map +0 -1
- package/build/area.styles-Cpx4H0gc.cjs +0 -27
- package/build/area.styles-Cpx4H0gc.cjs.map +0 -1
- package/build/area.styles-DhCCEhuq.js +0 -32
- package/build/area.styles-DhCCEhuq.js.map +0 -1
- package/build/component-B72M2Tpw.js +0 -84
- package/build/component-B72M2Tpw.js.map +0 -1
- package/build/component-BIxOOifU.cjs +0 -2
- package/build/component-BIxOOifU.cjs.map +0 -1
- package/build/component-BMIqhbpK.js +0 -23
- package/build/component-BMIqhbpK.js.map +0 -1
- package/build/component-BQru5uoj.js +0 -10
- package/build/component-BQru5uoj.js.map +0 -1
- package/build/component-BRCDQbb-.js +0 -50
- package/build/component-BRCDQbb-.js.map +0 -1
- package/build/component-BUkf5TLO.js +0 -170
- package/build/component-BUkf5TLO.js.map +0 -1
- package/build/component-BmccRQ_Y.cjs +0 -2
- package/build/component-BmccRQ_Y.cjs.map +0 -1
- package/build/component-Bvq-fgCN.cjs +0 -2
- package/build/component-Bvq-fgCN.cjs.map +0 -1
- package/build/component-C448kBTA.js +0 -443
- package/build/component-C448kBTA.js.map +0 -1
- package/build/component-C6I01Mel.cjs +0 -2
- package/build/component-C6I01Mel.cjs.map +0 -1
- package/build/component-C8mTuBua.js +0 -74
- package/build/component-C8mTuBua.js.map +0 -1
- package/build/component-CVWsmIlg.cjs +0 -2
- package/build/component-CVWsmIlg.cjs.map +0 -1
- package/build/component-C_6x7Mk8.js +0 -88
- package/build/component-C_6x7Mk8.js.map +0 -1
- package/build/component-CbWtsuhz.js +0 -60
- package/build/component-CbWtsuhz.js.map +0 -1
- package/build/component-Cfs39n8Q.js +0 -21
- package/build/component-Cfs39n8Q.js.map +0 -1
- package/build/component-CoOTSdM5.cjs +0 -28
- package/build/component-CoOTSdM5.cjs.map +0 -1
- package/build/component-Cu2i_-RT.cjs +0 -2
- package/build/component-Cu2i_-RT.cjs.map +0 -1
- package/build/component-CyZbUCkT.js +0 -39
- package/build/component-CyZbUCkT.js.map +0 -1
- package/build/component-D-HMYzXU.js +0 -65
- package/build/component-D-HMYzXU.js.map +0 -1
- package/build/component-D2vDwS60.cjs +0 -2
- package/build/component-D2vDwS60.cjs.map +0 -1
- package/build/component-D3KCIC-G.js +0 -64
- package/build/component-D3KCIC-G.js.map +0 -1
- package/build/component-DJAq34yj.cjs +0 -2
- package/build/component-DJAq34yj.cjs.map +0 -1
- package/build/component-DRMRXUJA.cjs +0 -2
- package/build/component-DRMRXUJA.cjs.map +0 -1
- package/build/component-DfSTPgfj.js +0 -248
- package/build/component-DfSTPgfj.js.map +0 -1
- package/build/component-DqV_-YxZ.cjs +0 -2
- package/build/component-DqV_-YxZ.cjs.map +0 -1
- package/build/component-DrmSI_ni.cjs +0 -2
- package/build/component-DrmSI_ni.cjs.map +0 -1
- package/build/component-Qxjnm7yi.cjs +0 -2
- package/build/component-Qxjnm7yi.cjs.map +0 -1
- package/build/component-WmDPzhcW.cjs +0 -2
- package/build/component-WmDPzhcW.cjs.map +0 -1
- package/build/component-accordion.cjs.js +0 -2
- package/build/component-accordion.cjs.js.map +0 -1
- package/build/component-accordion.d.ts +0 -100
- package/build/component-accordion.es.js +0 -11
- package/build/component-accordion.es.js.map +0 -1
- package/build/component-button-group.cjs.js +0 -2
- package/build/component-button-group.cjs.js.map +0 -1
- package/build/component-button-group.d.ts +0 -195
- package/build/component-button-group.es.js +0 -7
- package/build/component-button-group.es.js.map +0 -1
- package/build/component-button.cjs.js.map +0 -1
- package/build/component-button.es.js.map +0 -1
- package/build/component-checkbox-group.cjs.js +0 -2
- package/build/component-checkbox-group.cjs.js.map +0 -1
- package/build/component-checkbox-group.d.ts +0 -224
- package/build/component-checkbox-group.es.js +0 -12
- package/build/component-checkbox-group.es.js.map +0 -1
- package/build/component-checkbox.cjs.js.map +0 -1
- package/build/component-checkbox.es.js.map +0 -1
- package/build/component-date-picker.cjs.js.map +0 -1
- package/build/component-date-picker.es.js.map +0 -1
- package/build/component-gcvwlILJ.js +0 -76
- package/build/component-gcvwlILJ.js.map +0 -1
- package/build/component-icon.cjs.js.map +0 -1
- package/build/component-icon.es.js.map +0 -1
- package/build/component-image-button.cjs.js +0 -2
- package/build/component-image-button.cjs.js.map +0 -1
- package/build/component-image-button.d.ts +0 -215
- package/build/component-image-button.es.js +0 -5
- package/build/component-image-button.es.js.map +0 -1
- package/build/component-image-select.cjs.js +0 -2
- package/build/component-image-select.cjs.js.map +0 -1
- package/build/component-image-select.d.ts +0 -313
- package/build/component-image-select.es.js +0 -12
- package/build/component-image-select.es.js.map +0 -1
- package/build/component-image-slider.cjs.js +0 -2
- package/build/component-image-slider.cjs.js.map +0 -1
- package/build/component-image-slider.d.ts +0 -108
- package/build/component-image-slider.es.js +0 -9
- package/build/component-image-slider.es.js.map +0 -1
- package/build/component-image.cjs.js +0 -2
- package/build/component-image.cjs.js.map +0 -1
- package/build/component-image.d.ts +0 -51
- package/build/component-image.es.js +0 -7
- package/build/component-image.es.js.map +0 -1
- package/build/component-input-otp.cjs.js.map +0 -1
- package/build/component-input-otp.es.js.map +0 -1
- package/build/component-input.cjs.js.map +0 -1
- package/build/component-input.es.js.map +0 -1
- package/build/component-mFXKTq1K.cjs +0 -2
- package/build/component-mFXKTq1K.cjs.map +0 -1
- package/build/component-pagination.cjs.js.map +0 -1
- package/build/component-pagination.es.js.map +0 -1
- package/build/component-range.cjs.js +0 -2
- package/build/component-range.cjs.js.map +0 -1
- package/build/component-range.d.ts +0 -212
- package/build/component-range.es.js +0 -9
- package/build/component-range.es.js.map +0 -1
- package/build/component-ripple.cjs.js +0 -2
- package/build/component-ripple.cjs.js.map +0 -1
- package/build/component-ripple.d.ts +0 -47
- package/build/component-ripple.es.js +0 -12
- package/build/component-ripple.es.js.map +0 -1
- package/build/component-select.cjs.js.map +0 -1
- package/build/component-select.es.js.map +0 -1
- package/build/component-separator.cjs.js.map +0 -1
- package/build/component-separator.es.js.map +0 -1
- package/build/component-stack.cjs.js.map +0 -1
- package/build/component-stack.es.js.map +0 -1
- package/build/component-textarea.cjs.js.map +0 -1
- package/build/component-textarea.es.js.map +0 -1
- package/build/component-toggle.cjs.js.map +0 -1
- package/build/component-toggle.es.js.map +0 -1
- package/build/component-tooltip.cjs.js.map +0 -1
- package/build/component-tooltip.es.js.map +0 -1
- package/build/component-typography.cjs.js.map +0 -1
- package/build/component-typography.es.js.map +0 -1
- package/build/component.constants-BQOzGr0l.js +0 -757
- package/build/component.constants-BQOzGr0l.js.map +0 -1
- package/build/component.constants-CFLrPu5_.cjs +0 -2
- package/build/component.constants-CFLrPu5_.cjs.map +0 -1
- package/build/component.constants-DI22AYyi.js +0 -142
- package/build/component.constants-DI22AYyi.js.map +0 -1
- package/build/component.constants-DnHO8qFb.cjs +0 -2
- package/build/component.constants-DnHO8qFb.cjs.map +0 -1
- package/build/component.functions-D9ffjEok.cjs +0 -8
- package/build/component.functions-D9ffjEok.cjs.map +0 -1
- package/build/component.functions-DNW6h8kk.js +0 -12
- package/build/component.functions-DNW6h8kk.js.map +0 -1
- package/build/component.styles-BX2Aiqp_.cjs +0 -43
- package/build/component.styles-BX2Aiqp_.cjs.map +0 -1
- package/build/component.styles-C0oU5oX_.js +0 -59
- package/build/component.styles-C0oU5oX_.js.map +0 -1
- package/build/component.styles-CD6ZzRrk.cjs +0 -14
- package/build/component.styles-CD6ZzRrk.cjs.map +0 -1
- package/build/component.styles-SZ5VuhNG.js +0 -20
- package/build/component.styles-SZ5VuhNG.js.map +0 -1
- package/build/component.types-6hyRS9ZB.cjs +0 -2
- package/build/component.types-6hyRS9ZB.cjs.map +0 -1
- package/build/component.types-e2YpVj0l.js +0 -907
- package/build/component.types-e2YpVj0l.js.map +0 -1
- package/build/consts.cjs.js +0 -2
- package/build/consts.cjs.js.map +0 -1
- package/build/consts.d.ts +0 -77
- package/build/consts.es.js +0 -151
- package/build/consts.es.js.map +0 -1
- package/build/context-BK9a46O1.cjs +0 -4
- package/build/context-BK9a46O1.cjs.map +0 -1
- package/build/context-CPZf131N.cjs +0 -2
- package/build/context-CPZf131N.cjs.map +0 -1
- package/build/context-Cr80KOpF.js +0 -122
- package/build/context-Cr80KOpF.js.map +0 -1
- package/build/context-DssNKJ_n.cjs +0 -2
- package/build/context-DssNKJ_n.cjs.map +0 -1
- package/build/context-PFdUnKga.js +0 -44
- package/build/context-PFdUnKga.js.map +0 -1
- package/build/context-app.cjs.js.map +0 -1
- package/build/context-app.es.js.map +0 -1
- package/build/context-cookie.cjs.js.map +0 -1
- package/build/context-cookie.es.js.map +0 -1
- package/build/context-dialog.cjs.js.map +0 -1
- package/build/context-dialog.es.js.map +0 -1
- package/build/context-geolocation.cjs.js.map +0 -1
- package/build/context-geolocation.es.js.map +0 -1
- package/build/context-local-storage.cjs.js.map +0 -1
- package/build/context-local-storage.es.js.map +0 -1
- package/build/context-permission.cjs.js.map +0 -1
- package/build/context-permission.es.js.map +0 -1
- package/build/context-screen-width.cjs.js.map +0 -1
- package/build/context-screen-width.es.js.map +0 -1
- package/build/context-sonner.cjs.js.map +0 -1
- package/build/context-sonner.es.js.map +0 -1
- package/build/context-w9weDPCZ.js +0 -200
- package/build/context-w9weDPCZ.js.map +0 -1
- package/build/context.constants-B14bB8O1.js +0 -254
- package/build/context.constants-B14bB8O1.js.map +0 -1
- package/build/context.constants-BA1u2p1r.cjs +0 -32
- package/build/context.constants-BA1u2p1r.cjs.map +0 -1
- package/build/context.constants-BWLe7YHv.js +0 -12598
- package/build/context.constants-BWLe7YHv.js.map +0 -1
- package/build/context.constants-baqYH-_k.cjs +0 -1742
- package/build/context.constants-baqYH-_k.cjs.map +0 -1
- package/build/context.functions--v7FClEV.cjs +0 -2
- package/build/context.functions--v7FClEV.cjs.map +0 -1
- package/build/context.functions-B8FDl7nJ.js +0 -14
- package/build/context.functions-B8FDl7nJ.js.map +0 -1
- package/build/context.functions-CB6--UcR.js +0 -35
- package/build/context.functions-CB6--UcR.js.map +0 -1
- package/build/context.functions-CHaPcuVS.cjs +0 -2
- package/build/context.functions-CHaPcuVS.cjs.map +0 -1
- package/build/context.functions-CPP8X6so.js +0 -35
- package/build/context.functions-CPP8X6so.js.map +0 -1
- package/build/context.functions-ar41xFVo.cjs +0 -2
- package/build/context.functions-ar41xFVo.cjs.map +0 -1
- package/build/context.hooks-B-YcyJ5E.cjs +0 -2
- package/build/context.hooks-B-YcyJ5E.cjs.map +0 -1
- package/build/context.hooks-B9dsW2kz.js +0 -117
- package/build/context.hooks-B9dsW2kz.js.map +0 -1
- package/build/context.hooks-Bi7spFak.cjs +0 -2
- package/build/context.hooks-Bi7spFak.cjs.map +0 -1
- package/build/context.hooks-BnHnPV_i.js +0 -49
- package/build/context.hooks-BnHnPV_i.js.map +0 -1
- package/build/context.hooks-CDnjxy35.cjs +0 -2
- package/build/context.hooks-CDnjxy35.cjs.map +0 -1
- package/build/context.hooks-DDD8ffJI.cjs +0 -2
- package/build/context.hooks-DDD8ffJI.cjs.map +0 -1
- package/build/context.hooks-Df0m0Voe.js +0 -13
- package/build/context.hooks-Df0m0Voe.js.map +0 -1
- package/build/context.hooks-DjafkFMD.cjs +0 -2
- package/build/context.hooks-DjafkFMD.cjs.map +0 -1
- package/build/context.hooks-DpwnIiRj.cjs +0 -2
- package/build/context.hooks-DpwnIiRj.cjs.map +0 -1
- package/build/context.hooks-HEeFGka7.js +0 -13
- package/build/context.hooks-HEeFGka7.js.map +0 -1
- package/build/context.hooks-NDk5ehgk.js +0 -13
- package/build/context.hooks-NDk5ehgk.js.map +0 -1
- package/build/context.hooks-oclt34zD.js +0 -68
- package/build/context.hooks-oclt34zD.js.map +0 -1
- package/build/functions.cjs.js +0 -2
- package/build/functions.cjs.js.map +0 -1
- package/build/functions.es.js +0 -50
- package/build/functions.es.js.map +0 -1
- package/build/index.cjs.js.map +0 -1
- package/build/index.es.js.map +0 -1
- package/build/jsx-runtime-C6yv_9g1.cjs +0 -11
- package/build/jsx-runtime-C6yv_9g1.cjs.map +0 -1
- package/build/jsx-runtime-DZS36FSE.js +0 -316
- package/build/jsx-runtime-DZS36FSE.js.map +0 -1
- package/build/motion-DrSN18V7.cjs +0 -2
- package/build/motion-DrSN18V7.cjs.map +0 -1
- package/build/motion-K7hUU4gL.js +0 -85
- package/build/motion-K7hUU4gL.js.map +0 -1
- package/build/style-BfuEu91g.js +0 -176
- package/build/style-BfuEu91g.js.map +0 -1
- package/build/style-Drq-Q1Im.cjs +0 -136
- package/build/style-Drq-Q1Im.cjs.map +0 -1
- package/build/style-add.cjs.js +0 -2
- package/build/style-add.cjs.js.map +0 -1
- package/build/style-add.d.ts +0 -88
- package/build/style-add.es.js +0 -17
- package/build/style-add.es.js.map +0 -1
- package/build/style-error.cjs.js +0 -2
- package/build/style-error.cjs.js.map +0 -1
- package/build/style-error.d.ts +0 -99
- package/build/style-error.es.js +0 -7
- package/build/style-error.es.js.map +0 -1
- package/build/style-fRZ6xrVp.cjs +0 -10
- package/build/style-fRZ6xrVp.cjs.map +0 -1
- package/build/style-motion.cjs.js.map +0 -1
- package/build/style-motion.es.js.map +0 -1
- package/build/style-plT9Ah7t.js +0 -33
- package/build/style-plT9Ah7t.js.map +0 -1
- package/build/style-sx.cjs.js +0 -2
- package/build/style-sx.cjs.js.map +0 -1
- package/build/style-sx.d.ts +0 -33
- package/build/style-sx.es.js +0 -5
- package/build/style-sx.es.js.map +0 -1
- package/build/style-theme.cjs.js +0 -2
- package/build/style-theme.cjs.js.map +0 -1
- package/build/style-theme.d.ts +0 -293
- package/build/style-theme.es.js +0 -16
- package/build/style-theme.es.js.map +0 -1
- package/build/types.cjs.js +0 -2
- package/build/types.cjs.js.map +0 -1
- package/build/types.d.ts +0 -27
- package/build/types.es.js +0 -2
- package/build/types.es.js.map +0 -1
- package/build/use-BF8VW4MA.cjs +0 -16
- package/build/use-BF8VW4MA.cjs.map +0 -1
- package/build/use-Bp8UVw4Y.js +0 -16
- package/build/use-Bp8UVw4Y.js.map +0 -1
- package/build/use-C7vngeRk.js +0 -882
- package/build/use-C7vngeRk.js.map +0 -1
- package/build/use-DdGWsOBo.js +0 -1577
- package/build/use-DdGWsOBo.js.map +0 -1
- package/build/use-IhzeVumv.cjs +0 -2
- package/build/use-IhzeVumv.cjs.map +0 -1
- package/build/use-zW3LuRc_.cjs +0 -2
- package/build/use-zW3LuRc_.cjs.map +0 -1
|
@@ -0,0 +1,917 @@
|
|
|
1
|
+
import { i as P, n as L, r as Y } from "./utils-Cona48dZ.js";
|
|
2
|
+
import { n as Se, t as Ce } from "./functions-CLGf7hqw.js";
|
|
3
|
+
import { useMergeRefs as He } from "./hooks-use-merge-refs.es.js";
|
|
4
|
+
import { useTypographyStyles as $e } from "./hooks-use-typography-styles.es.js";
|
|
5
|
+
import { t as qe } from "./error-L2fvWcNv.js";
|
|
6
|
+
import { Fragment as Ue, jsx as ne, jsxs as be } from "react/jsx-runtime";
|
|
7
|
+
import p, { useCallback as Ze, useEffect as fe, useLayoutEffect as Ge, useMemo as ge, useRef as ee, useState as De } from "react";
|
|
8
|
+
function he(e, t) {
|
|
9
|
+
var a = {};
|
|
10
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
11
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
12
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++) t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
13
|
+
return a;
|
|
14
|
+
}
|
|
15
|
+
var ie;
|
|
16
|
+
(function(e) {
|
|
17
|
+
e.event = "event", e.props = "prop";
|
|
18
|
+
})(ie || (ie = {}));
|
|
19
|
+
function $() {
|
|
20
|
+
}
|
|
21
|
+
function Je(e) {
|
|
22
|
+
var t, a = void 0;
|
|
23
|
+
return function() {
|
|
24
|
+
for (var n = [], r = arguments.length; r--; ) n[r] = arguments[r];
|
|
25
|
+
return t && n.length === t.length && n.every(function(i, f) {
|
|
26
|
+
return i === t[f];
|
|
27
|
+
}) || (t = n, a = e.apply(void 0, n)), a;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function te(e) {
|
|
31
|
+
return !!(e || "").match(/\d/);
|
|
32
|
+
}
|
|
33
|
+
function q(e) {
|
|
34
|
+
return e == null;
|
|
35
|
+
}
|
|
36
|
+
function Qe(e) {
|
|
37
|
+
return typeof e == "number" && isNaN(e);
|
|
38
|
+
}
|
|
39
|
+
function Ae(e) {
|
|
40
|
+
return q(e) || Qe(e) || typeof e == "number" && !isFinite(e);
|
|
41
|
+
}
|
|
42
|
+
function Re(e) {
|
|
43
|
+
return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
44
|
+
}
|
|
45
|
+
function Xe(e) {
|
|
46
|
+
switch (e) {
|
|
47
|
+
case "lakh":
|
|
48
|
+
return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
|
|
49
|
+
case "wan":
|
|
50
|
+
return /(\d)(?=(\d{4})+(?!\d))/g;
|
|
51
|
+
default:
|
|
52
|
+
return /(\d)(?=(\d{3})+(?!\d))/g;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function Ye(e, t, a) {
|
|
56
|
+
var n = Xe(a), r = e.search(/[1-9]/);
|
|
57
|
+
return r = r === -1 ? e.length : r, e.substring(0, r) + e.substring(r, e.length).replace(n, "$1" + t);
|
|
58
|
+
}
|
|
59
|
+
function we(e) {
|
|
60
|
+
var t = ee(e);
|
|
61
|
+
return t.current = e, ee(function() {
|
|
62
|
+
for (var a = [], n = arguments.length; n--; ) a[n] = arguments[n];
|
|
63
|
+
return t.current.apply(t, a);
|
|
64
|
+
}).current;
|
|
65
|
+
}
|
|
66
|
+
function xe(e, t) {
|
|
67
|
+
t === void 0 && (t = !0);
|
|
68
|
+
var a = e[0] === "-", n = a && t;
|
|
69
|
+
e = e.replace("-", "");
|
|
70
|
+
var r = e.split(".");
|
|
71
|
+
return {
|
|
72
|
+
beforeDecimal: r[0],
|
|
73
|
+
afterDecimal: r[1] || "",
|
|
74
|
+
hasNegation: a,
|
|
75
|
+
addNegation: n
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function pe(e) {
|
|
79
|
+
if (!e) return e;
|
|
80
|
+
var t = e[0] === "-";
|
|
81
|
+
t && (e = e.substring(1, e.length));
|
|
82
|
+
var a = e.split("."), n = a[0].replace(/^0+/, "") || "0", r = a[1] || "";
|
|
83
|
+
return (t ? "-" : "") + n + (r ? "." + r : "");
|
|
84
|
+
}
|
|
85
|
+
function Fe(e, t, a) {
|
|
86
|
+
for (var n = "", r = a ? "0" : "", i = 0; i <= t - 1; i++) n += e[i] || r;
|
|
87
|
+
return n;
|
|
88
|
+
}
|
|
89
|
+
function Ne(e, t) {
|
|
90
|
+
return Array(t + 1).join(e);
|
|
91
|
+
}
|
|
92
|
+
function Be(e) {
|
|
93
|
+
var t = e + "", a = t[0] === "-" ? "-" : "";
|
|
94
|
+
a && (t = t.substring(1));
|
|
95
|
+
var n = t.split(/[eE]/g), r = n[0], i = n[1];
|
|
96
|
+
if (i = Number(i), !i) return a + r;
|
|
97
|
+
r = r.replace(".", "");
|
|
98
|
+
var f = 1 + i, v = r.length;
|
|
99
|
+
return f < 0 ? r = "0." + Ne("0", Math.abs(f)) + r : f >= v ? r = r + Ne("0", f - v) : r = (r.substring(0, f) || "0") + "." + r.substring(f), a + r;
|
|
100
|
+
}
|
|
101
|
+
function Ve(e, t, a) {
|
|
102
|
+
if (["", "-"].indexOf(e) !== -1) return e;
|
|
103
|
+
var n = (e.indexOf(".") !== -1 || a) && t, r = xe(e), i = r.beforeDecimal, f = r.afterDecimal, v = r.hasNegation, s = parseFloat("0." + (f || "0")), h = (f.length <= t ? "0." + f : s.toFixed(t)).split("."), d = i;
|
|
104
|
+
i && Number(h[0]) && (d = i.split("").reverse().reduce(function(o, b, g) {
|
|
105
|
+
return o.length > g ? (Number(o[0]) + Number(b)).toString() + o.substring(1, o.length) : b + o;
|
|
106
|
+
}, h[0]));
|
|
107
|
+
var u = Fe(h[1] || "", t, a), m = v ? "-" : "", S = n ? "." : "";
|
|
108
|
+
return "" + m + d + S + u;
|
|
109
|
+
}
|
|
110
|
+
function X(e, t) {
|
|
111
|
+
if (e.value = e.value, e !== null) {
|
|
112
|
+
if (e.createTextRange) {
|
|
113
|
+
var a = e.createTextRange();
|
|
114
|
+
return a.move("character", t), a.select(), !0;
|
|
115
|
+
}
|
|
116
|
+
return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
var Ee = Je(function(e, t) {
|
|
120
|
+
for (var a = 0, n = 0, r = e.length, i = t.length; e[a] === t[a] && a < r; ) a++;
|
|
121
|
+
for (; e[r - 1 - n] === t[i - 1 - n] && i - n > a && r - n > a; ) n++;
|
|
122
|
+
return {
|
|
123
|
+
from: {
|
|
124
|
+
start: a,
|
|
125
|
+
end: r - n
|
|
126
|
+
},
|
|
127
|
+
to: {
|
|
128
|
+
start: a,
|
|
129
|
+
end: i - n
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}), et = function(e, t) {
|
|
133
|
+
var a = Math.min(e.selectionStart, t);
|
|
134
|
+
return {
|
|
135
|
+
from: {
|
|
136
|
+
start: a,
|
|
137
|
+
end: e.selectionEnd
|
|
138
|
+
},
|
|
139
|
+
to: {
|
|
140
|
+
start: a,
|
|
141
|
+
end: t
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
function tt(e, t, a) {
|
|
146
|
+
return Math.min(Math.max(e, t), a);
|
|
147
|
+
}
|
|
148
|
+
function me(e) {
|
|
149
|
+
return Math.max(e.selectionStart, e.selectionEnd);
|
|
150
|
+
}
|
|
151
|
+
function at() {
|
|
152
|
+
return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
|
|
153
|
+
}
|
|
154
|
+
function Oe(e) {
|
|
155
|
+
return {
|
|
156
|
+
from: {
|
|
157
|
+
start: 0,
|
|
158
|
+
end: 0
|
|
159
|
+
},
|
|
160
|
+
to: {
|
|
161
|
+
start: 0,
|
|
162
|
+
end: e.length
|
|
163
|
+
},
|
|
164
|
+
lastValue: ""
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function Te(e, t) {
|
|
168
|
+
return e === void 0 && (e = " "), typeof e == "string" ? e : e[t] || " ";
|
|
169
|
+
}
|
|
170
|
+
function rt(e) {
|
|
171
|
+
var t = e.currentValue, a = e.formattedValue, n = e.currentValueIndex, r = e.formattedValueIndex;
|
|
172
|
+
return t[n] === a[r];
|
|
173
|
+
}
|
|
174
|
+
function nt(e, t, a, n, r, i, f) {
|
|
175
|
+
f === void 0 && (f = rt);
|
|
176
|
+
var v = r.findIndex(function(I) {
|
|
177
|
+
return I;
|
|
178
|
+
}), s = e.slice(0, v);
|
|
179
|
+
!t && !a.startsWith(s) && (t = s, a = s + a, n = n + s.length);
|
|
180
|
+
for (var h = a.length, d = e.length, u = {}, m = new Array(h), S = 0; S < h; S++) {
|
|
181
|
+
m[S] = -1;
|
|
182
|
+
for (var o = 0, b = d; o < b; o++) if (f({
|
|
183
|
+
currentValue: a,
|
|
184
|
+
lastValue: t,
|
|
185
|
+
formattedValue: e,
|
|
186
|
+
currentValueIndex: S,
|
|
187
|
+
formattedValueIndex: o
|
|
188
|
+
}) && u[o] !== !0) {
|
|
189
|
+
m[S] = o, u[o] = !0;
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
for (var g = n; g < h && (m[g] === -1 || !i(a[g])); ) g++;
|
|
194
|
+
var w = g === h || m[g] === -1 ? d : m[g];
|
|
195
|
+
for (g = n - 1; g > 0 && m[g] === -1; ) g--;
|
|
196
|
+
var E = g === -1 || m[g] === -1 ? 0 : m[g] + 1;
|
|
197
|
+
return E > w ? w : n - E < w - n ? E : w;
|
|
198
|
+
}
|
|
199
|
+
function de(e, t, a, n) {
|
|
200
|
+
var r = e.length;
|
|
201
|
+
if (t = tt(t, 0, r), n === "left") {
|
|
202
|
+
for (; t >= 0 && !a[t]; ) t--;
|
|
203
|
+
t === -1 && (t = a.indexOf(!0));
|
|
204
|
+
} else {
|
|
205
|
+
for (; t <= r && !a[t]; ) t++;
|
|
206
|
+
t > r && (t = a.lastIndexOf(!0));
|
|
207
|
+
}
|
|
208
|
+
return t === -1 && (t = r), t;
|
|
209
|
+
}
|
|
210
|
+
function it(e) {
|
|
211
|
+
for (var t = Array.from({ length: e.length + 1 }).map(function() {
|
|
212
|
+
return !0;
|
|
213
|
+
}), a = 0, n = t.length; a < n; a++) t[a] = !!(te(e[a]) || te(e[a - 1]));
|
|
214
|
+
return t;
|
|
215
|
+
}
|
|
216
|
+
function Le(e, t, a, n, r, i) {
|
|
217
|
+
i === void 0 && (i = $);
|
|
218
|
+
var f = we(function(o, b) {
|
|
219
|
+
var g, w;
|
|
220
|
+
return Ae(o) ? (w = "", g = "") : typeof o == "number" || b ? (w = typeof o == "number" ? Be(o) : o, g = n(w)) : (w = r(o, void 0), g = n(w)), {
|
|
221
|
+
formattedValue: g,
|
|
222
|
+
numAsString: w
|
|
223
|
+
};
|
|
224
|
+
}), v = De(function() {
|
|
225
|
+
return f(q(e) ? t : e, a);
|
|
226
|
+
}), s = v[0], h = v[1], d = we(function(o, b) {
|
|
227
|
+
o.formattedValue !== s.formattedValue && h({
|
|
228
|
+
formattedValue: o.formattedValue,
|
|
229
|
+
numAsString: o.value
|
|
230
|
+
}), i(o, b);
|
|
231
|
+
}), u = e, m = a;
|
|
232
|
+
q(e) && (u = s.numAsString, m = !0);
|
|
233
|
+
var S = f(u, m);
|
|
234
|
+
return ge(function() {
|
|
235
|
+
h(S);
|
|
236
|
+
}, [S.formattedValue]), fe(function() {
|
|
237
|
+
if (!q(t) && q(e) && s.formattedValue !== "") {
|
|
238
|
+
var o = parseFloat(s.numAsString);
|
|
239
|
+
d({
|
|
240
|
+
formattedValue: s.formattedValue,
|
|
241
|
+
value: s.numAsString,
|
|
242
|
+
floatValue: isNaN(o) ? void 0 : o
|
|
243
|
+
}, {
|
|
244
|
+
event: void 0,
|
|
245
|
+
source: ie.props
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}, []), [s, d];
|
|
249
|
+
}
|
|
250
|
+
function ot(e) {
|
|
251
|
+
return e.replace(/[^0-9]/g, "");
|
|
252
|
+
}
|
|
253
|
+
function ut(e) {
|
|
254
|
+
return e;
|
|
255
|
+
}
|
|
256
|
+
function _e(e) {
|
|
257
|
+
var t = e.type;
|
|
258
|
+
t === void 0 && (t = "text");
|
|
259
|
+
var a = e.displayType;
|
|
260
|
+
a === void 0 && (a = "input");
|
|
261
|
+
var n = e.customInput, r = e.renderText, i = e.getInputRef, f = e.format;
|
|
262
|
+
f === void 0 && (f = ut);
|
|
263
|
+
var v = e.removeFormatting;
|
|
264
|
+
v === void 0 && (v = ot);
|
|
265
|
+
var s = e.defaultValue, h = e.valueIsNumericString, d = e.onValueChange, u = e.isAllowed, m = e.onChange;
|
|
266
|
+
m === void 0 && (m = $);
|
|
267
|
+
var S = e.onKeyDown;
|
|
268
|
+
S === void 0 && (S = $);
|
|
269
|
+
var o = e.onMouseUp;
|
|
270
|
+
o === void 0 && (o = $);
|
|
271
|
+
var b = e.onFocus;
|
|
272
|
+
b === void 0 && (b = $);
|
|
273
|
+
var g = e.onBlur;
|
|
274
|
+
g === void 0 && (g = $);
|
|
275
|
+
var w = e.value, E = e.getCaretBoundary;
|
|
276
|
+
E === void 0 && (E = it);
|
|
277
|
+
var I = e.isValidInputCharacter;
|
|
278
|
+
I === void 0 && (I = te);
|
|
279
|
+
var F = e.isCharacterSame, M = he(e, [
|
|
280
|
+
"type",
|
|
281
|
+
"displayType",
|
|
282
|
+
"customInput",
|
|
283
|
+
"renderText",
|
|
284
|
+
"getInputRef",
|
|
285
|
+
"format",
|
|
286
|
+
"removeFormatting",
|
|
287
|
+
"defaultValue",
|
|
288
|
+
"valueIsNumericString",
|
|
289
|
+
"onValueChange",
|
|
290
|
+
"isAllowed",
|
|
291
|
+
"onChange",
|
|
292
|
+
"onKeyDown",
|
|
293
|
+
"onMouseUp",
|
|
294
|
+
"onFocus",
|
|
295
|
+
"onBlur",
|
|
296
|
+
"value",
|
|
297
|
+
"getCaretBoundary",
|
|
298
|
+
"isValidInputCharacter",
|
|
299
|
+
"isCharacterSame"
|
|
300
|
+
]), W = Le(w, s, !!h, f, v, d), z = W[0], V = z.formattedValue, j = z.numAsString, U = W[1], K = ee(), Z = ee({
|
|
301
|
+
formattedValue: V,
|
|
302
|
+
numAsString: j
|
|
303
|
+
}), G = function(l, c) {
|
|
304
|
+
Z.current = {
|
|
305
|
+
formattedValue: l.formattedValue,
|
|
306
|
+
numAsString: l.value
|
|
307
|
+
}, U(l, c);
|
|
308
|
+
}, ae = De(!1), oe = ae[0], y = ae[1], x = ee(null), A = ee({
|
|
309
|
+
setCaretTimeout: null,
|
|
310
|
+
focusTimeout: null
|
|
311
|
+
});
|
|
312
|
+
fe(function() {
|
|
313
|
+
return y(!0), function() {
|
|
314
|
+
clearTimeout(A.current.setCaretTimeout), clearTimeout(A.current.focusTimeout);
|
|
315
|
+
};
|
|
316
|
+
}, []);
|
|
317
|
+
var O = f, T = function(l, c) {
|
|
318
|
+
var C = parseFloat(c);
|
|
319
|
+
return {
|
|
320
|
+
formattedValue: l,
|
|
321
|
+
value: c,
|
|
322
|
+
floatValue: isNaN(C) ? void 0 : C
|
|
323
|
+
};
|
|
324
|
+
}, R = function(l, c, C) {
|
|
325
|
+
l.selectionStart === 0 && l.selectionEnd === l.value.length || (X(l, c), A.current.setCaretTimeout = setTimeout(function() {
|
|
326
|
+
l.value === C && l.selectionStart !== c && X(l, c);
|
|
327
|
+
}, 0));
|
|
328
|
+
}, _ = function(l, c, C) {
|
|
329
|
+
return de(l, c, E(l), C);
|
|
330
|
+
}, re = function(l, c, C) {
|
|
331
|
+
var B = E(c), k = nt(c, V, l, C, B, I, F);
|
|
332
|
+
return k = de(c, k, B), k;
|
|
333
|
+
}, ue = function(l) {
|
|
334
|
+
var c = l.formattedValue;
|
|
335
|
+
c === void 0 && (c = "");
|
|
336
|
+
var C = l.input, B = l.source, k = l.event, D = l.numAsString, N;
|
|
337
|
+
if (C) {
|
|
338
|
+
var H = l.inputValue || C.value, J = me(C);
|
|
339
|
+
C.value = c, N = re(H, c, J), N !== void 0 && R(C, N, c);
|
|
340
|
+
}
|
|
341
|
+
c !== V && G(T(c, D), {
|
|
342
|
+
event: k,
|
|
343
|
+
source: B
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
fe(function() {
|
|
347
|
+
var l = Z.current, c = l.formattedValue, C = l.numAsString;
|
|
348
|
+
(V !== c || j !== C) && G(T(V, j), {
|
|
349
|
+
event: void 0,
|
|
350
|
+
source: ie.props
|
|
351
|
+
});
|
|
352
|
+
}, [V, j]);
|
|
353
|
+
var le = x.current ? me(x.current) : void 0;
|
|
354
|
+
(typeof window < "u" ? Ge : fe)(function() {
|
|
355
|
+
var l = x.current;
|
|
356
|
+
if (V !== Z.current.formattedValue && l) {
|
|
357
|
+
var c = re(Z.current.formattedValue, V, le);
|
|
358
|
+
l.value = V, R(l, c, V);
|
|
359
|
+
}
|
|
360
|
+
}, [V]);
|
|
361
|
+
var ve = function(l, c, C) {
|
|
362
|
+
var B = c.target, k = K.current ? et(K.current, B.selectionEnd) : Ee(V, l), D = Object.assign(Object.assign({}, k), { lastValue: V }), N = v(l, D), H = O(N);
|
|
363
|
+
if (N = v(H, void 0), u && !u(T(H, N))) {
|
|
364
|
+
var J = c.target, Q = re(l, V, me(J));
|
|
365
|
+
return J.value = V, R(J, Q, V), !1;
|
|
366
|
+
}
|
|
367
|
+
return ue({
|
|
368
|
+
formattedValue: H,
|
|
369
|
+
numAsString: N,
|
|
370
|
+
inputValue: l,
|
|
371
|
+
event: c,
|
|
372
|
+
source: C,
|
|
373
|
+
input: c.target
|
|
374
|
+
}), !0;
|
|
375
|
+
}, se = function(l, c) {
|
|
376
|
+
c === void 0 && (c = 0), K.current = {
|
|
377
|
+
selectionStart: l.selectionStart,
|
|
378
|
+
selectionEnd: l.selectionEnd + c
|
|
379
|
+
};
|
|
380
|
+
}, Me = function(l) {
|
|
381
|
+
var c = l.target.value;
|
|
382
|
+
ve(c, l, ie.event) && m(l), K.current = void 0;
|
|
383
|
+
}, ke = function(l) {
|
|
384
|
+
var c = l.target, C = l.key, B = c.selectionStart, k = c.selectionEnd, D = c.value;
|
|
385
|
+
D === void 0 && (D = "");
|
|
386
|
+
var N;
|
|
387
|
+
C === "ArrowLeft" || C === "Backspace" ? N = Math.max(B - 1, 0) : C === "ArrowRight" ? N = Math.min(B + 1, D.length) : C === "Delete" && (N = B);
|
|
388
|
+
var H = 0;
|
|
389
|
+
C === "Delete" && B === k && (H = 1);
|
|
390
|
+
var J = C === "ArrowLeft" || C === "ArrowRight";
|
|
391
|
+
if (N === void 0 || B !== k && !J) {
|
|
392
|
+
S(l), se(c, H);
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
var Q = N;
|
|
396
|
+
J ? (Q = _(D, N, C === "ArrowLeft" ? "left" : "right"), Q !== N && l.preventDefault()) : C === "Delete" && !I(D[N]) ? Q = _(D, N, "right") : C === "Backspace" && !I(D[N]) && (Q = _(D, N, "left")), Q !== N && R(c, Q, D), S(l), se(c, H);
|
|
397
|
+
}, Pe = function(l) {
|
|
398
|
+
var c = l.target, C = function() {
|
|
399
|
+
var B = c.selectionStart, k = c.selectionEnd, D = c.value;
|
|
400
|
+
if (D === void 0 && (D = ""), B === k) {
|
|
401
|
+
var N = _(D, B);
|
|
402
|
+
N !== B && R(c, N, D);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
C(), requestAnimationFrame(function() {
|
|
406
|
+
C();
|
|
407
|
+
}), o(l), se(c);
|
|
408
|
+
}, je = function(l) {
|
|
409
|
+
l.persist && l.persist();
|
|
410
|
+
var c = l.target, C = l.currentTarget;
|
|
411
|
+
x.current = c, A.current.focusTimeout = setTimeout(function() {
|
|
412
|
+
var B = c.selectionStart, k = c.selectionEnd, D = c.value;
|
|
413
|
+
D === void 0 && (D = "");
|
|
414
|
+
var N = _(D, B);
|
|
415
|
+
N !== B && !(B === 0 && k === D.length) && R(c, N, D), b(Object.assign(Object.assign({}, l), { currentTarget: C }));
|
|
416
|
+
}, 0);
|
|
417
|
+
}, Ke = function(l) {
|
|
418
|
+
x.current = null, clearTimeout(A.current.focusTimeout), clearTimeout(A.current.setCaretTimeout), g(l);
|
|
419
|
+
}, We = oe && at() ? "numeric" : void 0, ye = Object.assign({ inputMode: We }, M, {
|
|
420
|
+
type: t,
|
|
421
|
+
value: V,
|
|
422
|
+
onChange: Me,
|
|
423
|
+
onKeyDown: ke,
|
|
424
|
+
onMouseUp: Pe,
|
|
425
|
+
onFocus: je,
|
|
426
|
+
onBlur: Ke
|
|
427
|
+
});
|
|
428
|
+
if (a === "text") return r ? p.createElement(p.Fragment, null, r(V, M) || null) : p.createElement("span", Object.assign({}, M, { ref: i }), V);
|
|
429
|
+
if (n) {
|
|
430
|
+
var ze = n;
|
|
431
|
+
return p.createElement(ze, Object.assign({}, ye, { ref: i }));
|
|
432
|
+
}
|
|
433
|
+
return p.createElement("input", Object.assign({}, ye, { ref: i }));
|
|
434
|
+
}
|
|
435
|
+
function Ie(e, t) {
|
|
436
|
+
var a = t.decimalScale, n = t.fixedDecimalScale, r = t.prefix;
|
|
437
|
+
r === void 0 && (r = "");
|
|
438
|
+
var i = t.suffix;
|
|
439
|
+
i === void 0 && (i = "");
|
|
440
|
+
var f = t.allowNegative, v = t.thousandsGroupStyle;
|
|
441
|
+
if (v === void 0 && (v = "thousand"), e === "" || e === "-") return e;
|
|
442
|
+
var s = ce(t), h = s.thousandSeparator, d = s.decimalSeparator, u = a !== 0 && e.indexOf(".") !== -1 || a && n, m = xe(e, f), S = m.beforeDecimal, o = m.afterDecimal, b = m.addNegation;
|
|
443
|
+
return a !== void 0 && (o = Fe(o, a, !!n)), h && (S = Ye(S, h, v)), r && (S = r + S), i && (o = o + i), b && (S = "-" + S), e = S + (u && d || "") + o, e;
|
|
444
|
+
}
|
|
445
|
+
function ce(e) {
|
|
446
|
+
var t = e.decimalSeparator;
|
|
447
|
+
t === void 0 && (t = ".");
|
|
448
|
+
var a = e.thousandSeparator, n = e.allowedDecimalSeparators;
|
|
449
|
+
return a === !0 && (a = ","), n || (n = [t, "."]), {
|
|
450
|
+
decimalSeparator: t,
|
|
451
|
+
thousandSeparator: a,
|
|
452
|
+
allowedDecimalSeparators: n
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
function lt(e, t) {
|
|
456
|
+
e === void 0 && (e = "");
|
|
457
|
+
var a = /* @__PURE__ */ new RegExp("(-)"), n = /* @__PURE__ */ new RegExp("(-)(.)*(-)"), r = a.test(e), i = n.test(e);
|
|
458
|
+
return e = e.replace(/-/g, ""), r && !i && t && (e = "-" + e), e;
|
|
459
|
+
}
|
|
460
|
+
function ft(e, t) {
|
|
461
|
+
return new RegExp("(^-)|[0-9]|" + Re(e), t ? "g" : void 0);
|
|
462
|
+
}
|
|
463
|
+
function dt(e, t, a) {
|
|
464
|
+
return e === "" ? !0 : !t?.match(/\d/) && !a?.match(/\d/) && typeof e == "string" && !isNaN(Number(e));
|
|
465
|
+
}
|
|
466
|
+
function ct(e, t, a) {
|
|
467
|
+
var n;
|
|
468
|
+
t === void 0 && (t = Oe(e));
|
|
469
|
+
var r = a.allowNegative, i = a.prefix;
|
|
470
|
+
i === void 0 && (i = "");
|
|
471
|
+
var f = a.suffix;
|
|
472
|
+
f === void 0 && (f = "");
|
|
473
|
+
var v = a.decimalScale, s = t.from, h = t.to, d = h.start, u = h.end, m = ce(a), S = m.allowedDecimalSeparators, o = m.decimalSeparator, b = e[u] === o;
|
|
474
|
+
if (te(e) && (e === i || e === f) && t.lastValue === "") return e;
|
|
475
|
+
if (u - d === 1 && S.indexOf(e[d]) !== -1) {
|
|
476
|
+
var g = v === 0 ? "" : o;
|
|
477
|
+
e = e.substring(0, d) + g + e.substring(d + 1, e.length);
|
|
478
|
+
}
|
|
479
|
+
var w = function(x, A, O) {
|
|
480
|
+
var T = !1, R = !1;
|
|
481
|
+
i.startsWith("-") ? T = !1 : x.startsWith("--") ? (T = !1, R = !0) : f.startsWith("-") && x.length === f.length ? T = !1 : x[0] === "-" && (T = !0);
|
|
482
|
+
var _ = T ? 1 : 0;
|
|
483
|
+
return R && (_ = 2), _ && (x = x.substring(_), A -= _, O -= _), {
|
|
484
|
+
value: x,
|
|
485
|
+
start: A,
|
|
486
|
+
end: O,
|
|
487
|
+
hasNegation: T
|
|
488
|
+
};
|
|
489
|
+
}, E = w(e, d, u), I = E.hasNegation;
|
|
490
|
+
n = E, e = n.value, d = n.start, u = n.end;
|
|
491
|
+
var F = w(t.lastValue, s.start, s.end), M = F.start, W = F.end, z = F.value, V = e.substring(d, u);
|
|
492
|
+
e.length && z.length && (M > z.length - f.length || W < i.length) && !(V && f.startsWith(V)) && (e = z);
|
|
493
|
+
var j = 0;
|
|
494
|
+
e.startsWith(i) ? j += i.length : d < i.length && (j = d), e = e.substring(j), u -= j;
|
|
495
|
+
var U = e.length, K = e.length - f.length;
|
|
496
|
+
e.endsWith(f) ? U = K : (u > K || u > e.length - f.length) && (U = u), e = e.substring(0, U), e = lt(I ? "-" + e : e, r), e = (e.match(ft(o, !0)) || []).join("");
|
|
497
|
+
var Z = e.indexOf(o);
|
|
498
|
+
e = e.replace(new RegExp(Re(o), "g"), function(x, A) {
|
|
499
|
+
return A === Z ? "." : "";
|
|
500
|
+
});
|
|
501
|
+
var G = xe(e, r), ae = G.beforeDecimal, oe = G.afterDecimal, y = G.addNegation;
|
|
502
|
+
return h.end - h.start < s.end - s.start && ae === "" && b && !parseFloat(oe) && (e = y ? "-" : ""), e;
|
|
503
|
+
}
|
|
504
|
+
function vt(e, t) {
|
|
505
|
+
var a = t.prefix;
|
|
506
|
+
a === void 0 && (a = "");
|
|
507
|
+
var n = t.suffix;
|
|
508
|
+
n === void 0 && (n = "");
|
|
509
|
+
var r = Array.from({ length: e.length + 1 }).map(function() {
|
|
510
|
+
return !0;
|
|
511
|
+
}), i = e[0] === "-";
|
|
512
|
+
r.fill(!1, 0, Math.min(a.length + (i ? 1 : 0), e.length));
|
|
513
|
+
var f = e.length;
|
|
514
|
+
return r.fill(!1, f - n.length + 1, f + 1), r;
|
|
515
|
+
}
|
|
516
|
+
function st(e) {
|
|
517
|
+
var t = ce(e), a = t.thousandSeparator, n = t.decimalSeparator, r = e.prefix;
|
|
518
|
+
r === void 0 && (r = "");
|
|
519
|
+
var i = e.allowNegative;
|
|
520
|
+
if (i === void 0 && (i = !0), a === n) throw new Error(`
|
|
521
|
+
Decimal separator can't be same as thousand separator.
|
|
522
|
+
thousandSeparator: ` + a + ` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
523
|
+
decimalSeparator: ` + n + ` (default value for decimalSeparator is .)
|
|
524
|
+
`);
|
|
525
|
+
return r.startsWith("-") && i && (console.error(`
|
|
526
|
+
Prefix can't start with '-' when allowNegative is true.
|
|
527
|
+
prefix: ` + r + `
|
|
528
|
+
allowNegative: ` + i + `
|
|
529
|
+
`), i = !1), Object.assign(Object.assign({}, e), { allowNegative: i });
|
|
530
|
+
}
|
|
531
|
+
function mt(e) {
|
|
532
|
+
e = st(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
|
|
533
|
+
var t = e.suffix, a = e.allowNegative, n = e.allowLeadingZeros, r = e.onKeyDown;
|
|
534
|
+
r === void 0 && (r = $);
|
|
535
|
+
var i = e.onBlur;
|
|
536
|
+
i === void 0 && (i = $);
|
|
537
|
+
var f = e.thousandSeparator, v = e.decimalScale, s = e.fixedDecimalScale, h = e.prefix;
|
|
538
|
+
h === void 0 && (h = "");
|
|
539
|
+
var d = e.defaultValue, u = e.value, m = e.valueIsNumericString, S = e.onValueChange, o = he(e, [
|
|
540
|
+
"decimalSeparator",
|
|
541
|
+
"allowedDecimalSeparators",
|
|
542
|
+
"thousandsGroupStyle",
|
|
543
|
+
"suffix",
|
|
544
|
+
"allowNegative",
|
|
545
|
+
"allowLeadingZeros",
|
|
546
|
+
"onKeyDown",
|
|
547
|
+
"onBlur",
|
|
548
|
+
"thousandSeparator",
|
|
549
|
+
"decimalScale",
|
|
550
|
+
"fixedDecimalScale",
|
|
551
|
+
"prefix",
|
|
552
|
+
"defaultValue",
|
|
553
|
+
"value",
|
|
554
|
+
"valueIsNumericString",
|
|
555
|
+
"onValueChange"
|
|
556
|
+
]), b = ce(e), g = b.decimalSeparator, w = b.allowedDecimalSeparators, E = function(y) {
|
|
557
|
+
return Ie(y, e);
|
|
558
|
+
}, I = function(y, x) {
|
|
559
|
+
return ct(y, x, e);
|
|
560
|
+
}, F = q(u) ? d : u, M = m ?? dt(F, h, t);
|
|
561
|
+
q(u) ? q(d) || (M = M || typeof d == "number") : M = M || typeof u == "number";
|
|
562
|
+
var W = function(y) {
|
|
563
|
+
return Ae(y) ? y : (typeof y == "number" && (y = Be(y)), M && typeof v == "number" ? Ve(y, v, !!s) : y);
|
|
564
|
+
}, z = Le(W(u), W(d), !!M, E, I, S), V = z[0], j = V.numAsString, U = V.formattedValue, K = z[1], Z = function(y) {
|
|
565
|
+
var x = y.target, A = y.key, O = x.selectionStart, T = x.selectionEnd, R = x.value;
|
|
566
|
+
if (R === void 0 && (R = ""), (A === "Backspace" || A === "Delete") && T < h.length && R !== "-") {
|
|
567
|
+
y.preventDefault();
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
if (O !== T) {
|
|
571
|
+
r(y);
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
A === "Backspace" && R[0] === "-" && O === h.length + 1 && a && X(x, 1), v && s && (A === "Backspace" && R[O - 1] === g ? (X(x, O - 1), y.preventDefault()) : A === "Delete" && R[O] === g && y.preventDefault()), w?.includes(A) && R[O] === g && X(x, O + 1);
|
|
575
|
+
var _ = f === !0 ? "," : f;
|
|
576
|
+
A === "Backspace" && R[O - 1] === _ && X(x, O - 1), A === "Delete" && R[O] === _ && X(x, O + 1), r(y);
|
|
577
|
+
}, G = function(y) {
|
|
578
|
+
var x = j;
|
|
579
|
+
x.match(/\d/g) || (x = ""), n || (x = pe(x)), s && v && (x = Ve(x, v, s)), x !== j && K({
|
|
580
|
+
formattedValue: Ie(x, e),
|
|
581
|
+
value: x,
|
|
582
|
+
floatValue: parseFloat(x)
|
|
583
|
+
}, {
|
|
584
|
+
event: y,
|
|
585
|
+
source: ie.event
|
|
586
|
+
}), i(y);
|
|
587
|
+
}, ae = function(y) {
|
|
588
|
+
return y === g ? !0 : te(y);
|
|
589
|
+
}, oe = function(y) {
|
|
590
|
+
var x = y.currentValue, A = y.lastValue, O = y.formattedValue, T = y.currentValueIndex, R = y.formattedValueIndex, _ = x[T], re = O[R], ue = Ee(A, x).to, le = function(ve) {
|
|
591
|
+
return I(ve).indexOf(".") + h.length;
|
|
592
|
+
};
|
|
593
|
+
return u === 0 && s && v && x[ue.start] === g && le(x) < T && le(O) > R ? !1 : T >= ue.start && T < ue.end && w && w.includes(_) && re === g ? !0 : _ === re;
|
|
594
|
+
};
|
|
595
|
+
return Object.assign(Object.assign({}, o), {
|
|
596
|
+
value: U,
|
|
597
|
+
valueIsNumericString: !1,
|
|
598
|
+
isValidInputCharacter: ae,
|
|
599
|
+
isCharacterSame: oe,
|
|
600
|
+
onValueChange: K,
|
|
601
|
+
format: E,
|
|
602
|
+
removeFormatting: I,
|
|
603
|
+
getCaretBoundary: function(y) {
|
|
604
|
+
return vt(y, e);
|
|
605
|
+
},
|
|
606
|
+
onKeyDown: Z,
|
|
607
|
+
onBlur: G
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
function gt(e) {
|
|
611
|
+
var t = mt(e);
|
|
612
|
+
return p.createElement(_e, Object.assign({}, t));
|
|
613
|
+
}
|
|
614
|
+
function ht(e, t) {
|
|
615
|
+
var a = t.format, n = t.allowEmptyFormatting, r = t.mask, i = t.patternChar;
|
|
616
|
+
if (i === void 0 && (i = "#"), e === "" && !n) return "";
|
|
617
|
+
for (var f = 0, v = a.split(""), s = 0, h = a.length; s < h; s++) a[s] === i && (v[s] = e[f] || Te(r, f), f += 1);
|
|
618
|
+
return v.join("");
|
|
619
|
+
}
|
|
620
|
+
function xt(e, t, a) {
|
|
621
|
+
t === void 0 && (t = Oe(e));
|
|
622
|
+
var n = a.format, r = a.patternChar;
|
|
623
|
+
r === void 0 && (r = "#");
|
|
624
|
+
var i = t.from, f = t.to, v = t.lastValue;
|
|
625
|
+
v === void 0 && (v = "");
|
|
626
|
+
var s = function(g) {
|
|
627
|
+
return n[g] === r;
|
|
628
|
+
}, h = function(g, w) {
|
|
629
|
+
for (var E = "", I = 0; I < g.length; I++) s(w + I) && te(g[I]) && (E += g[I]);
|
|
630
|
+
return E;
|
|
631
|
+
}, d = function(g) {
|
|
632
|
+
return g.replace(/[^0-9]/g, "");
|
|
633
|
+
};
|
|
634
|
+
if (!n.match(/\d/)) return d(e);
|
|
635
|
+
if ((v === "" || i.end - i.start === v.length) && e.length === n.length) {
|
|
636
|
+
for (var u = "", m = 0; m < e.length; m++) if (s(m))
|
|
637
|
+
te(e[m]) && (u += e[m]);
|
|
638
|
+
else if (e[m] !== n[m]) return d(e);
|
|
639
|
+
return u;
|
|
640
|
+
}
|
|
641
|
+
var S = v.substring(0, i.start), o = e.substring(f.start, f.end), b = v.substring(i.end);
|
|
642
|
+
return "" + h(S, 0) + d(o) + h(b, i.end);
|
|
643
|
+
}
|
|
644
|
+
function yt(e, t) {
|
|
645
|
+
var a = t.format, n = t.mask, r = t.patternChar;
|
|
646
|
+
r === void 0 && (r = "#");
|
|
647
|
+
var i = Array.from({ length: e.length + 1 }).map(function() {
|
|
648
|
+
return !0;
|
|
649
|
+
}), f = 0, v = -1, s = {};
|
|
650
|
+
a.split("").forEach(function(m, S) {
|
|
651
|
+
var o = void 0;
|
|
652
|
+
m === r && (f++, o = Te(n, f - 1), v === -1 && e[S] === o && (v = S)), s[S] = o;
|
|
653
|
+
});
|
|
654
|
+
for (var h = function(m) {
|
|
655
|
+
return a[m] === r && e[m] !== s[m];
|
|
656
|
+
}, d = 0, u = i.length; d < u; d++) i[d] = d === v || h(d) || h(d - 1);
|
|
657
|
+
return i[a.indexOf(r)] = !0, i;
|
|
658
|
+
}
|
|
659
|
+
function St(e) {
|
|
660
|
+
var t = e.mask;
|
|
661
|
+
if (t && (t === "string" ? t : t.toString()).match(/\d/g))
|
|
662
|
+
throw new Error("Mask " + t + " should not contain numeric character;");
|
|
663
|
+
}
|
|
664
|
+
function Ct(e, t) {
|
|
665
|
+
return e === "" ? !0 : !t?.match(/\d/) && typeof e == "string" && (!!e.match(/^\d+$/) || e === "");
|
|
666
|
+
}
|
|
667
|
+
function bt(e) {
|
|
668
|
+
e.mask, e.allowEmptyFormatting;
|
|
669
|
+
var t = e.format, a = e.inputMode;
|
|
670
|
+
a === void 0 && (a = "numeric");
|
|
671
|
+
var n = e.onKeyDown;
|
|
672
|
+
n === void 0 && (n = $);
|
|
673
|
+
var r = e.patternChar;
|
|
674
|
+
r === void 0 && (r = "#");
|
|
675
|
+
var i = e.value, f = e.defaultValue, v = e.valueIsNumericString, s = he(e, [
|
|
676
|
+
"mask",
|
|
677
|
+
"allowEmptyFormatting",
|
|
678
|
+
"format",
|
|
679
|
+
"inputMode",
|
|
680
|
+
"onKeyDown",
|
|
681
|
+
"patternChar",
|
|
682
|
+
"value",
|
|
683
|
+
"defaultValue",
|
|
684
|
+
"valueIsNumericString"
|
|
685
|
+
]);
|
|
686
|
+
St(e);
|
|
687
|
+
var h = function(o) {
|
|
688
|
+
return yt(o, e);
|
|
689
|
+
}, d = function(o) {
|
|
690
|
+
var b = o.key, g = o.target, w = g.selectionStart, E = g.selectionEnd, I = g.value;
|
|
691
|
+
if (w !== E) {
|
|
692
|
+
n(o);
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
var F = w;
|
|
696
|
+
if (b === "Backspace" || b === "Delete") {
|
|
697
|
+
var M = "right";
|
|
698
|
+
if (b === "Backspace") {
|
|
699
|
+
for (; F > 0 && t[F - 1] !== r; ) F--;
|
|
700
|
+
M = "left";
|
|
701
|
+
} else {
|
|
702
|
+
for (var W = t.length; F < W && t[F] !== r; ) F++;
|
|
703
|
+
M = "right";
|
|
704
|
+
}
|
|
705
|
+
F = de(I, F, h(I), M);
|
|
706
|
+
} else t[F] !== r && b !== "ArrowLeft" && b !== "ArrowRight" && (F = de(I, F + 1, h(I), "right"));
|
|
707
|
+
F !== w && X(g, F), n(o);
|
|
708
|
+
}, u = q(i) ? f : i, m = v ?? Ct(u, t), S = Object.assign(Object.assign({}, e), { valueIsNumericString: m });
|
|
709
|
+
return Object.assign(Object.assign({}, s), {
|
|
710
|
+
value: i,
|
|
711
|
+
defaultValue: f,
|
|
712
|
+
valueIsNumericString: m,
|
|
713
|
+
inputMode: a,
|
|
714
|
+
format: function(o) {
|
|
715
|
+
return ht(o, S);
|
|
716
|
+
},
|
|
717
|
+
removeFormatting: function(o, b) {
|
|
718
|
+
return xt(o, b, S);
|
|
719
|
+
},
|
|
720
|
+
getCaretBoundary: h,
|
|
721
|
+
onKeyDown: d
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
function wt(e) {
|
|
725
|
+
var t = bt(e);
|
|
726
|
+
return p.createElement(_e, Object.assign({}, t));
|
|
727
|
+
}
|
|
728
|
+
var Bt = (e) => {
|
|
729
|
+
const t = Ze((d) => {
|
|
730
|
+
if (e.variety === "standard") {
|
|
731
|
+
const u = typeof d == "string" ? d : d.value, m = e.isNoSpaces ? u.replace(/\s+/g, "") : u;
|
|
732
|
+
e.onChange?.(m);
|
|
733
|
+
}
|
|
734
|
+
(e.variety === "pattern" || e.variety === "numeric") && typeof d != "string" && e.onChange?.(d);
|
|
735
|
+
}, [e]), { className: a, style: n } = $e({ sx: {
|
|
736
|
+
family: e.isNiceNumber ? "Roboto Mono" : e.sxTypography?.family,
|
|
737
|
+
size: 16,
|
|
738
|
+
weight: e.isBold ? "700" : "400",
|
|
739
|
+
height: "1",
|
|
740
|
+
...e?.sxTypography
|
|
741
|
+
} }), { className: r, style: i } = ge(() => {
|
|
742
|
+
const d = Ce([
|
|
743
|
+
L.component.input.wrapper,
|
|
744
|
+
L.transition.color,
|
|
745
|
+
e.error?.isError && L.isError,
|
|
746
|
+
L.control[e.isDisabled ? "none" : e.control ?? "boxShadow"],
|
|
747
|
+
e.isWidthAsHeight && L.component.input.wrapperIsWidthAsHeight,
|
|
748
|
+
e.isZeroRadius && L.component.input.wrapperIsZeroRadius,
|
|
749
|
+
e.isHidden && L.component.input.wrapperIsHidden,
|
|
750
|
+
e.isHiddenBorder && L.component.input.wrapperIsHiddenBorder,
|
|
751
|
+
e.isFullRadius && L.component.input.wrapperIsFullRadius,
|
|
752
|
+
e.isWidthAsHeight && L.component.input.wrapperIsWidthAsHeight,
|
|
753
|
+
e.isMinWidthAsContent && L.component.input.wrapperIsMinWidthAsContent,
|
|
754
|
+
e.isCenter && L.component.input.wrapperIsCenter,
|
|
755
|
+
e.className
|
|
756
|
+
]), u = {};
|
|
757
|
+
return u[P.component.input.height] = Y.size[e.size].height, u[P.component.input.radius] = Y.size[e.size].radius, u[P.component.input.borderColor] = Y.genre.input[e.genre].border, u[P.component.input.background] = Y.genre.input[e.genre].background, e.postfixChildren?.left && (u[P.component.input.postfixLeft] = e.postfixChildren?.left), e.postfixChildren?.right && (u[P.component.input.postfixRight] = e.postfixChildren?.right), e.postfixChildren?.width && (u[P.component.input.postfixWidth] = e.postfixChildren?.width), e.prefixChildren?.left && (u[P.component.input.prefixLeft] = e.prefixChildren?.left), e.prefixChildren?.right && (u[P.component.input.prefixRight] = e.prefixChildren?.right), e.prefixChildren?.width && (u[P.component.input.prefixWidth] = e.prefixChildren?.width), {
|
|
758
|
+
className: d,
|
|
759
|
+
style: Se([Object.keys(u).length ? u : void 0, e.style])
|
|
760
|
+
};
|
|
761
|
+
}, [
|
|
762
|
+
e.className,
|
|
763
|
+
e.isWidthAsHeight,
|
|
764
|
+
e.size,
|
|
765
|
+
e.style,
|
|
766
|
+
e.isDisabled,
|
|
767
|
+
e.isHidden,
|
|
768
|
+
e.isFullRadius,
|
|
769
|
+
e.isHiddenBorder,
|
|
770
|
+
e.isMinWidthAsContent,
|
|
771
|
+
e.isZeroRadius,
|
|
772
|
+
e.genre,
|
|
773
|
+
e.postfixChildren?.left,
|
|
774
|
+
e.postfixChildren?.right,
|
|
775
|
+
e.postfixChildren?.width,
|
|
776
|
+
e.prefixChildren?.left,
|
|
777
|
+
e.prefixChildren?.right,
|
|
778
|
+
e.prefixChildren?.width,
|
|
779
|
+
e.control,
|
|
780
|
+
e.isCenter,
|
|
781
|
+
e.error?.isError
|
|
782
|
+
]), { className: f, style: v } = ge(() => {
|
|
783
|
+
const d = Ce([
|
|
784
|
+
L.component.input.root,
|
|
785
|
+
L.transition.color,
|
|
786
|
+
a,
|
|
787
|
+
e.prefixChildren && L.component.input.hasPrefix,
|
|
788
|
+
e.postfixChildren && L.component.input.hasPostfix
|
|
789
|
+
]), u = {};
|
|
790
|
+
return u[P.component.input.color] = Y.genre.input[e.genre].color, u[P.component.input.placeholderColor] = Y.genre.input[e.genre].placeholder, u[P.component.input.padding] = Y.size[e.size].padding, {
|
|
791
|
+
className: d,
|
|
792
|
+
style: Se([
|
|
793
|
+
e.style,
|
|
794
|
+
n,
|
|
795
|
+
Object.keys(u).length ? u : void 0
|
|
796
|
+
])
|
|
797
|
+
};
|
|
798
|
+
}, [
|
|
799
|
+
e.size,
|
|
800
|
+
e.style,
|
|
801
|
+
e.genre,
|
|
802
|
+
a,
|
|
803
|
+
n,
|
|
804
|
+
e.postfixChildren,
|
|
805
|
+
e.prefixChildren
|
|
806
|
+
]), s = ee(null), h = He([s, e.ref]);
|
|
807
|
+
return /* @__PURE__ */ be(Ue, { children: [/* @__PURE__ */ be("div", {
|
|
808
|
+
className: r,
|
|
809
|
+
style: i,
|
|
810
|
+
children: [
|
|
811
|
+
e.prefixChildren && /* @__PURE__ */ ne("div", {
|
|
812
|
+
onMouseDown: (d) => {
|
|
813
|
+
e.prefixChildren?.isFocusInput && (d.preventDefault(), s.current?.focus());
|
|
814
|
+
},
|
|
815
|
+
className: L.component.input.prefix,
|
|
816
|
+
children: e.prefixChildren.children
|
|
817
|
+
}),
|
|
818
|
+
e.variety === "pattern" ? /* @__PURE__ */ ne(wt, {
|
|
819
|
+
className: f,
|
|
820
|
+
style: v,
|
|
821
|
+
disabled: e.isDisabled,
|
|
822
|
+
readOnly: e.isReadOnly,
|
|
823
|
+
required: e.isRequired,
|
|
824
|
+
defaultValue: e.defaultValue === null ? "" : e.defaultValue,
|
|
825
|
+
value: e.value === null ? "" : e.value,
|
|
826
|
+
placeholder: e.placeholder,
|
|
827
|
+
onValueChange: (d) => t(d),
|
|
828
|
+
onBlur: e.onBlur,
|
|
829
|
+
onFocus: e.onFocus,
|
|
830
|
+
onPaste: e.onPaste,
|
|
831
|
+
onKeyDown: e.onKeyDown,
|
|
832
|
+
name: e.name,
|
|
833
|
+
"aria-label": e.ariaLabel ?? e.name,
|
|
834
|
+
id: e.id,
|
|
835
|
+
inputMode: e.inputMode,
|
|
836
|
+
maxLength: e.maxLength,
|
|
837
|
+
minLength: e.minLength,
|
|
838
|
+
tabIndex: e.tabIndex,
|
|
839
|
+
getInputRef: h,
|
|
840
|
+
...e.propsPattern
|
|
841
|
+
}) : e.variety === "numeric" ? /* @__PURE__ */ ne(gt, {
|
|
842
|
+
className: f,
|
|
843
|
+
style: v,
|
|
844
|
+
disabled: e.isDisabled,
|
|
845
|
+
readOnly: e.isReadOnly,
|
|
846
|
+
required: e.isRequired,
|
|
847
|
+
defaultValue: e.defaultValue === null ? "" : e.defaultValue,
|
|
848
|
+
value: e.value === null ? "" : e.value,
|
|
849
|
+
placeholder: e.placeholder,
|
|
850
|
+
onValueChange: (d) => t(d),
|
|
851
|
+
onBlur: e.onBlur,
|
|
852
|
+
onFocus: e.onFocus,
|
|
853
|
+
onPaste: e.onPaste,
|
|
854
|
+
onKeyDown: e.onKeyDown,
|
|
855
|
+
name: e.name,
|
|
856
|
+
"aria-label": e.ariaLabel ?? e.name,
|
|
857
|
+
id: e.id,
|
|
858
|
+
inputMode: e.inputMode,
|
|
859
|
+
maxLength: e.maxLength,
|
|
860
|
+
minLength: e.minLength,
|
|
861
|
+
tabIndex: e.tabIndex,
|
|
862
|
+
getInputRef: h,
|
|
863
|
+
...e.propsNumeric
|
|
864
|
+
}) : /* @__PURE__ */ ne("input", {
|
|
865
|
+
className: f,
|
|
866
|
+
style: v,
|
|
867
|
+
inputMode: e.inputMode,
|
|
868
|
+
maxLength: e.maxLength,
|
|
869
|
+
minLength: e.minLength,
|
|
870
|
+
ref: h,
|
|
871
|
+
disabled: e.isDisabled,
|
|
872
|
+
readOnly: e.isReadOnly,
|
|
873
|
+
required: e.isRequired,
|
|
874
|
+
defaultValue: e.defaultValue === null ? "" : e.defaultValue,
|
|
875
|
+
value: e.value === null ? "" : e.value,
|
|
876
|
+
placeholder: e.placeholder,
|
|
877
|
+
type: e.type,
|
|
878
|
+
autoComplete: e.autoComplete,
|
|
879
|
+
onInput: (d) => {
|
|
880
|
+
const u = d.target;
|
|
881
|
+
t(u.value);
|
|
882
|
+
},
|
|
883
|
+
onBlur: e.onBlur,
|
|
884
|
+
onFocus: e.onFocus,
|
|
885
|
+
onPaste: e.onPaste,
|
|
886
|
+
onKeyDown: e.onKeyDown,
|
|
887
|
+
name: e.name,
|
|
888
|
+
"aria-label": e.ariaLabel ?? e.name,
|
|
889
|
+
id: e.id,
|
|
890
|
+
tabIndex: e.tabIndex,
|
|
891
|
+
min: e.min,
|
|
892
|
+
max: e.max,
|
|
893
|
+
step: e.step
|
|
894
|
+
}),
|
|
895
|
+
e.postfixChildren && /* @__PURE__ */ ne("div", {
|
|
896
|
+
onMouseDown: (d) => {
|
|
897
|
+
e.postfixChildren?.isFocusInput && (d.preventDefault(), s?.current?.focus());
|
|
898
|
+
},
|
|
899
|
+
className: L.component.input.postfix,
|
|
900
|
+
children: e.postfixChildren.children
|
|
901
|
+
})
|
|
902
|
+
]
|
|
903
|
+
}), e?.error?.isError && /* @__PURE__ */ ne(qe, {
|
|
904
|
+
size: e?.error.size ?? e.size,
|
|
905
|
+
sxTypography: {
|
|
906
|
+
size: 16,
|
|
907
|
+
weight: "400",
|
|
908
|
+
...e?.error.sxTypography
|
|
909
|
+
},
|
|
910
|
+
...e.error
|
|
911
|
+
})] });
|
|
912
|
+
};
|
|
913
|
+
export {
|
|
914
|
+
Bt as t
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
//# sourceMappingURL=input-CV02F03L.js.map
|