@jenesei-software/jenesei-kit-react 1.3.40 → 2.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/README.md +0 -37
- package/build/AnimatePresence-BByJ67dn.js +134 -0
- package/build/AnimatePresence-BByJ67dn.js.map +1 -0
- package/build/AnimatePresence-BtUPiqYm.cjs +11 -0
- package/build/AnimatePresence-BtUPiqYm.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-C5PgNYns.cjs +3 -0
- package/build/button-C5PgNYns.cjs.map +1 -0
- package/build/button-D8zdhI-0.js +102 -0
- package/build/button-D8zdhI-0.js.map +1 -0
- package/build/checkbox-Ba0-4wxk.js +98 -0
- package/build/checkbox-Ba0-4wxk.js.map +1 -0
- package/build/checkbox-BtkbSjHq.cjs +3 -0
- package/build/checkbox-BtkbSjHq.cjs.map +1 -0
- package/build/chunk-CW3en5xf.cjs +1 -0
- package/build/chunk-D1xtDmiO.js +31 -0
- package/build/component-6HgOL-7c.js +71 -0
- package/build/component-6HgOL-7c.js.map +1 -0
- package/build/component-BjdeqpEq.cjs +3 -0
- package/build/component-BjdeqpEq.cjs.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-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-4_kY3Qcd.js +417 -0
- package/build/context-app-4_kY3Qcd.js.map +1 -0
- package/build/context-app-DKsS6_WR.cjs +9 -0
- package/build/context-app-DKsS6_WR.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-CPhqqRUP.js +35 -0
- package/build/context-browser-theme-CPhqqRUP.js.map +1 -0
- package/build/context-browser-theme-o9geUlSH.cjs +3 -0
- package/build/context-browser-theme-o9geUlSH.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-CvTU44MD.cjs +3 -0
- package/build/context-cookie-CvTU44MD.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-CCnhd1EY.cjs +3 -0
- package/build/context-dialog-CCnhd1EY.cjs.map +1 -0
- package/build/context-dialog-HLeQ5WNn.js +176 -0
- package/build/context-dialog-HLeQ5WNn.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-ffFFV4kn.cjs +3 -0
- package/build/context-geolocation-ffFFV4kn.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-kmxWNK_4.cjs +3 -0
- package/build/context-local-storage-kmxWNK_4.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-K3tWOiAx.cjs +3 -0
- package/build/context-permission-K3tWOiAx.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-CEsyIyg6.js +53 -0
- package/build/context-screen-width-CEsyIyg6.js.map +1 -0
- package/build/context-screen-width-ind6z7Ny.cjs +3 -0
- package/build/context-screen-width-ind6z7Ny.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-Bniiz914.js +218 -0
- package/build/context-sonner-Bniiz914.js.map +1 -0
- package/build/context-sonner-L0OMEvZE.cjs +3 -0
- package/build/context-sonner-L0OMEvZE.cjs.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-CQUe3ZXt.cjs +3 -0
- package/build/date-picker-CQUe3ZXt.cjs.map +1 -0
- package/build/date-picker-z3LcE7Ab.js +689 -0
- package/build/date-picker-z3LcE7Ab.js.map +1 -0
- package/build/dist-C8r_OdG1.cjs +3 -0
- package/build/dist-C8r_OdG1.cjs.map +1 -0
- package/build/dist-Dq_YJa2q.js +483 -0
- package/build/dist-Dq_YJa2q.js.map +1 -0
- package/build/error--kiPVmoi.cjs +3 -0
- package/build/error--kiPVmoi.cjs.map +1 -0
- package/build/error-D1UNY-0f.js +50 -0
- package/build/error-D1UNY-0f.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-BG6R5Lfa.js +277 -0
- package/build/icon-BG6R5Lfa.js.map +1 -0
- package/build/icon-CreblPsB.cjs +3 -0
- package/build/icon-CreblPsB.cjs.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-CWcWWMCp.cjs +11 -0
- package/build/input-CWcWWMCp.cjs.map +1 -0
- package/build/input-DqMLnOz5.js +917 -0
- package/build/input-DqMLnOz5.js.map +1 -0
- package/build/input-otp-DPp3qmvI.js +106 -0
- package/build/input-otp-DPp3qmvI.js.map +1 -0
- package/build/input-otp-Z_wz6o6L.cjs +3 -0
- package/build/input-otp-Z_wz6o6L.cjs.map +1 -0
- package/build/isEqual-VCZu3vai.js +675 -0
- package/build/isEqual-VCZu3vai.js.map +1 -0
- package/build/isEqual-wc3RBuBi.cjs +3 -0
- package/build/isEqual-wc3RBuBi.cjs.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-BeQRGZxW.cjs +3 -0
- package/build/motion-BeQRGZxW.cjs.map +1 -0
- package/build/motion-Ot_yGWVJ.js +128 -0
- package/build/motion-Ot_yGWVJ.js.map +1 -0
- package/build/outside-BtjOuCPD.js +24 -0
- package/build/outside-BtjOuCPD.js.map +1 -0
- package/build/outside-DJ1B9sBT.cjs +3 -0
- package/build/outside-DJ1B9sBT.cjs.map +1 -0
- package/build/pagination-BnvQ1aha.cjs +3 -0
- package/build/pagination-BnvQ1aha.cjs.map +1 -0
- package/build/pagination-CpaP3Svg.js +110 -0
- package/build/pagination-CpaP3Svg.js.map +1 -0
- package/build/popover-1k1MNFwv.js +1948 -0
- package/build/popover-1k1MNFwv.js.map +1 -0
- package/build/popover-fte_EMYr.cjs +3 -0
- package/build/popover-fte_EMYr.cjs.map +1 -0
- package/build/preview-BvJN6QoV.js +65 -0
- package/build/preview-BvJN6QoV.js.map +1 -0
- package/build/preview-CG76AiC9.cjs +3 -0
- package/build/preview-CG76AiC9.cjs.map +1 -0
- package/build/proxy-D2Z8K6jr.cjs +3 -0
- package/build/proxy-D2Z8K6jr.cjs.map +1 -0
- package/build/proxy-DTLy-pV-.js +4354 -0
- package/build/proxy-DTLy-pV-.js.map +1 -0
- package/build/select-B4JeEvIF.js +3443 -0
- package/build/select-B4JeEvIF.js.map +1 -0
- package/build/select-BQtWzaxE.cjs +9 -0
- package/build/select-BQtWzaxE.cjs.map +1 -0
- package/build/separator-BXoT44nC.cjs +3 -0
- package/build/separator-BXoT44nC.cjs.map +1 -0
- package/build/separator-hWp-s54-.js +29 -0
- package/build/separator-hWp-s54-.js.map +1 -0
- package/build/skeleton-BOfnrUaI.cjs +3 -0
- package/build/skeleton-BOfnrUaI.cjs.map +1 -0
- package/build/skeleton-Bzr92XmL.js +39 -0
- package/build/skeleton-Bzr92XmL.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-BRzorAFw.cjs +3 -0
- package/build/textarea-BRzorAFw.cjs.map +1 -0
- package/build/textarea-BssfjUe3.js +132 -0
- package/build/textarea-BssfjUe3.js.map +1 -0
- package/build/toggle-BFp9Nmas.cjs +3 -0
- package/build/toggle-BFp9Nmas.cjs.map +1 -0
- package/build/toggle-CCfZoBpW.js +86 -0
- package/build/toggle-CCfZoBpW.js.map +1 -0
- package/build/typography-B2KioMfq.js +116 -0
- package/build/typography-B2KioMfq.js.map +1 -0
- package/build/typography-whjfut7N.cjs +3 -0
- package/build/typography-whjfut7N.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 +189 -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,78 @@
|
|
|
1
|
+
import { IErrorMessage } from '../error';
|
|
2
|
+
import { IThemeSize } from '../../styles/utils';
|
|
3
|
+
import { IThemeControl, IThemeGenreInput, ITypography } from '../../styles/utils/types';
|
|
4
|
+
import { ClipboardEventHandler, CSSProperties, FocusEventHandler, HTMLInputAutoCompleteAttribute, HTMLInputTypeAttribute, KeyboardEventHandler, PropsWithChildren, Ref } from 'react';
|
|
5
|
+
import { NumberFormatValues, NumericFormatProps, PatternFormatProps } from 'react-number-format';
|
|
6
|
+
type ICommonInput = {
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
error?: IErrorMessage;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
ref?: Ref<HTMLInputElement | null>;
|
|
12
|
+
sxTypography?: ITypography;
|
|
13
|
+
control?: IThemeControl;
|
|
14
|
+
size: IThemeSize;
|
|
15
|
+
tabIndex?: number;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
autoComplete?: HTMLInputAutoCompleteAttribute | string;
|
|
18
|
+
genre: IThemeGenreInput;
|
|
19
|
+
id?: string;
|
|
20
|
+
inputMode?: 'text' | 'none' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
21
|
+
isBold?: boolean;
|
|
22
|
+
isCenter?: boolean;
|
|
23
|
+
isDisabled?: boolean;
|
|
24
|
+
isFullRadius?: boolean;
|
|
25
|
+
isHidden?: boolean;
|
|
26
|
+
isHiddenBorder?: boolean;
|
|
27
|
+
isMinWidthAsContent?: boolean;
|
|
28
|
+
isNiceNumber?: boolean;
|
|
29
|
+
isNoSpaces?: boolean;
|
|
30
|
+
isReadOnly?: boolean;
|
|
31
|
+
isRequired?: boolean;
|
|
32
|
+
isWidthAsHeight?: boolean;
|
|
33
|
+
isZeroRadius?: boolean;
|
|
34
|
+
maxLength?: number;
|
|
35
|
+
minLength?: number;
|
|
36
|
+
name?: string;
|
|
37
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
38
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
39
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
40
|
+
onPaste?: ClipboardEventHandler<HTMLInputElement>;
|
|
41
|
+
postfixChildren?: InputChildrenProps;
|
|
42
|
+
prefixChildren?: InputChildrenProps;
|
|
43
|
+
};
|
|
44
|
+
type IControlledValue = {
|
|
45
|
+
value: string | number | null | undefined;
|
|
46
|
+
defaultValue?: never;
|
|
47
|
+
};
|
|
48
|
+
type IUnControlledValue = {
|
|
49
|
+
defaultValue: string | number | null | undefined;
|
|
50
|
+
value?: never;
|
|
51
|
+
};
|
|
52
|
+
type IBaseInput = ICommonInput & (IControlledValue | IUnControlledValue);
|
|
53
|
+
export type IInputStandard = IBaseInput & {
|
|
54
|
+
variety: 'standard';
|
|
55
|
+
onChange?: (value: string) => void;
|
|
56
|
+
type?: HTMLInputTypeAttribute;
|
|
57
|
+
min?: number;
|
|
58
|
+
max?: number;
|
|
59
|
+
step?: number;
|
|
60
|
+
};
|
|
61
|
+
export type IInputPattern = IBaseInput & {
|
|
62
|
+
variety: 'pattern';
|
|
63
|
+
onChange?: (value: NumberFormatValues) => void;
|
|
64
|
+
propsPattern: Pick<PatternFormatProps, 'allowEmptyFormatting' | 'format' | 'mask' | 'patternChar' | 'type' | 'valueIsNumericString'>;
|
|
65
|
+
};
|
|
66
|
+
export type IInputNumeric = IBaseInput & {
|
|
67
|
+
variety: 'numeric';
|
|
68
|
+
onChange?: (value: NumberFormatValues) => void;
|
|
69
|
+
propsNumeric: Pick<NumericFormatProps, 'allowLeadingZeros' | 'allowNegative' | 'allowedDecimalSeparators' | 'decimalScale' | 'decimalSeparator' | 'fixedDecimalScale' | 'isAllowed' | 'prefix' | 'suffix' | 'thousandSeparator' | 'thousandsGroupStyle'>;
|
|
70
|
+
};
|
|
71
|
+
export type IInput = IInputStandard | IInputPattern | IInputNumeric;
|
|
72
|
+
export interface InputChildrenProps extends PropsWithChildren {
|
|
73
|
+
left: string;
|
|
74
|
+
right: string;
|
|
75
|
+
width: string;
|
|
76
|
+
isFocusInput?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IInputStandard } from '../input';
|
|
2
|
+
import { FocusEvent } from 'react';
|
|
3
|
+
export type IInputOTP = {
|
|
4
|
+
length: number;
|
|
5
|
+
onComplete?: (otp: string) => void;
|
|
6
|
+
onFocus?: (event?: FocusEvent<HTMLElement>) => void;
|
|
7
|
+
onBlur?: (event?: FocusEvent<HTMLElement>) => void;
|
|
8
|
+
} & Pick<IInputStandard, 'size' | 'genre' | 'id' | 'error' | 'onChange' | 'sxTypography' | 'className' | 'style' | 'isBold' | 'isFullRadius' | 'isDisabled' | 'isHidden' | 'isHiddenBorder'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_COMPONENT_PAGINATION_GAP = 12;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IButton } from '../button';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
export type IPagination = {
|
|
4
|
+
buttonControl: Pick<IButton, 'size' | 'genre' | 'isFullRadius' | 'isWidthAsHeight'>;
|
|
5
|
+
buttonCount: {
|
|
6
|
+
active: Pick<IButton, 'size' | 'genre' | 'isFullRadius'>;
|
|
7
|
+
inactive: Pick<IButton, 'size' | 'genre' | 'isFullRadius'>;
|
|
8
|
+
};
|
|
9
|
+
gap?: number;
|
|
10
|
+
index: number;
|
|
11
|
+
lengthData?: Record<number, Pick<IButton, 'genre' | 'icons'>>;
|
|
12
|
+
length: number;
|
|
13
|
+
isInfinity?: boolean;
|
|
14
|
+
viewQuantity: number;
|
|
15
|
+
changeIndex: (index: number) => void;
|
|
16
|
+
locale: {
|
|
17
|
+
prev: string;
|
|
18
|
+
next: string;
|
|
19
|
+
};
|
|
20
|
+
className?: string;
|
|
21
|
+
style: CSSProperties;
|
|
22
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC, Ref } from 'react';
|
|
2
|
+
import { IPopover, IUsePopover } from './component.types';
|
|
3
|
+
export declare const Popover: FC<IPopover>;
|
|
4
|
+
export declare const usePopover: (props: IUsePopover) => {
|
|
5
|
+
getIsInside: (target: Node | null) => boolean;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
setIsOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
8
|
+
open: () => void;
|
|
9
|
+
close: () => void;
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
refReference: Ref<HTMLElement | null>;
|
|
12
|
+
refFloating: Ref<HTMLElement | null>;
|
|
13
|
+
refArrow: import('react').RefObject<null>;
|
|
14
|
+
context: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
placement: import('@floating-ui/utils').Placement;
|
|
18
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
19
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
20
|
+
isPositioned: boolean;
|
|
21
|
+
update: () => void;
|
|
22
|
+
floatingStyles: React.CSSProperties;
|
|
23
|
+
open: boolean;
|
|
24
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
25
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
26
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
27
|
+
nodeId: string | undefined;
|
|
28
|
+
floatingId: string | undefined;
|
|
29
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
30
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
31
|
+
};
|
|
32
|
+
floatingStyles: import('react').CSSProperties;
|
|
33
|
+
placement: import('@floating-ui/utils').Placement;
|
|
34
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { IThemeSize } from '../../styles/utils';
|
|
2
|
+
import { IThemeControl, IThemeGenrePopover, ITypography } from '../../styles/utils/types';
|
|
3
|
+
import { FloatingContext, Placement } from '@floating-ui/react';
|
|
4
|
+
import { CSSProperties, PropsWithChildren, Ref, RefObject } from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Popover component. / Свойства компонента Popover.
|
|
7
|
+
*/
|
|
8
|
+
export type IPopover = PropsWithChildren & {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
maxWidth?: string;
|
|
12
|
+
maxHeight?: string;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
isArrow?: boolean;
|
|
15
|
+
floatingStyles: CSSProperties;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
control?: IThemeControl;
|
|
18
|
+
sxTypography?: ITypography;
|
|
19
|
+
placement?: Placement;
|
|
20
|
+
arrowHeight?: number;
|
|
21
|
+
isCenteredArrow?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Ref to the popover root element.
|
|
24
|
+
*/
|
|
25
|
+
ref?: Ref<HTMLElement | null>;
|
|
26
|
+
refArrow?: RefObject<null>;
|
|
27
|
+
size: IThemeSize;
|
|
28
|
+
genre: IThemeGenrePopover;
|
|
29
|
+
context?: FloatingContext;
|
|
30
|
+
isDisabledBoxShadow?: boolean;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Props for the usePopover hook (popover logic and behavior).
|
|
34
|
+
* Свойства для хука usePopover (логика и поведение поповера).
|
|
35
|
+
*/
|
|
36
|
+
export type IUsePopover = {
|
|
37
|
+
/**
|
|
38
|
+
* Поддержка фокуса внутри поповера (если true, фокус будет удерживаться внутри поповера).
|
|
39
|
+
*/
|
|
40
|
+
isFocusTrap?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Delay in ms before closing popover on hover out (default: 100).
|
|
43
|
+
* Задержка в мс перед закрытием поповера при уходе мыши (по умолчанию: 100).
|
|
44
|
+
*/
|
|
45
|
+
hoverCloseDelay?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Offset in px for hover zone around popover (default: 8).
|
|
48
|
+
* Отступ в пикселях для hover-зоны вокруг поповера (по умолчанию: 8).
|
|
49
|
+
*/
|
|
50
|
+
hoverOffset?: number;
|
|
51
|
+
/**
|
|
52
|
+
* If true, popover closes when clicking outside.
|
|
53
|
+
* Если true — поповер закрывается при клике вне его.
|
|
54
|
+
*/
|
|
55
|
+
isClickOutside?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* If true, disables all popover logic and interaction.
|
|
58
|
+
* Если true — отключает всю логику и взаимодействие поповера.
|
|
59
|
+
*/
|
|
60
|
+
isDisabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* If true, enables floating hover mode (popover stays open while mouse is near).
|
|
63
|
+
* Если true — включает режим плавающего hover (поповер открыт, пока мышь рядом).
|
|
64
|
+
*/
|
|
65
|
+
isFloatingHover?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* If true, popover width matches reference element.
|
|
68
|
+
* Если true — ширина поповера совпадает с reference-элементом.
|
|
69
|
+
*/
|
|
70
|
+
isWidthAsContent?: boolean;
|
|
71
|
+
isArrow?: boolean;
|
|
72
|
+
arrowHeight?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Popover open/close mode: 'click', 'hover', 'clickOpen', or 'independence'.
|
|
75
|
+
* Режим открытия/закрытия поповера: 'click', 'hover', 'clickOpen', 'independence'.
|
|
76
|
+
*/
|
|
77
|
+
mode?: 'click' | 'hover' | 'clickOpen' | 'independence';
|
|
78
|
+
/**
|
|
79
|
+
* Offset in px between reference and popover (default: 8).
|
|
80
|
+
* Отступ в пикселях между reference и поповером (по умолчанию: 8).
|
|
81
|
+
*/
|
|
82
|
+
offset?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Placement of the popover relative to reference (from floating-ui).
|
|
85
|
+
* Положение поповера относительно reference (из floating-ui).
|
|
86
|
+
*/
|
|
87
|
+
placement: Placement;
|
|
88
|
+
/**
|
|
89
|
+
* Refs to elements that should not trigger click outside close.
|
|
90
|
+
* Массив ref'ов, которые не должны вызывать закрытие при клике вне.
|
|
91
|
+
*/
|
|
92
|
+
refsExcludeClickOutside?: Ref<HTMLElement | null>[];
|
|
93
|
+
/**
|
|
94
|
+
* Refs to elements that should not trigger blur close.
|
|
95
|
+
* Массив ref'ов, которые не должны вызывать закрытие при потере фокуса.
|
|
96
|
+
*/
|
|
97
|
+
refsExcludeBlur?: Ref<HTMLElement | null>[];
|
|
98
|
+
/**
|
|
99
|
+
* Callback fired when popover is focused/opened.
|
|
100
|
+
* Колбэк, вызываемый при открытии/фокусе поповера.
|
|
101
|
+
*/
|
|
102
|
+
onFocus?: () => void;
|
|
103
|
+
/**
|
|
104
|
+
* Callback fired when popover is blurred/closed.
|
|
105
|
+
* Колбэк, вызываемый при закрытии/потере фокуса поповера.
|
|
106
|
+
*/
|
|
107
|
+
onBlur?: () => void;
|
|
108
|
+
/**
|
|
109
|
+
* Callback fired when reference element loses focus (not to excluded refs).
|
|
110
|
+
* Колбэк, вызываемый при потере фокуса reference-элемента (не на исключённые ref'ы).
|
|
111
|
+
*/
|
|
112
|
+
onBlurReference?: () => void;
|
|
113
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IContainerDropdownListOption, IContainerSelectListOption, ISelect, ISelectItem } from './component.types';
|
|
2
|
+
export declare const Select: <T extends object & ISelectItem>(props: ISelect<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DropdownListOption: import('react').MemoExoticComponent<(<T extends object & ISelectItem>(props: IContainerDropdownListOption<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
4
|
+
export declare const SelectListOption: import('react').MemoExoticComponent<(<T extends object & ISelectItem>(props: IContainerSelectListOption<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ISelectLanguage, ISelectMonth, ISelectMonths, ISelectYear } from './component.types';
|
|
3
|
+
export declare const SelectLanguage: FC<ISelectLanguage>;
|
|
4
|
+
export declare const SelectMonth: FC<ISelectMonth>;
|
|
5
|
+
export declare const SelectMonths: FC<ISelectMonths>;
|
|
6
|
+
export declare const SelectYear: FC<ISelectYear>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { IDatePickerTranslateMonth } from '../date-picker';
|
|
2
|
+
import { IErrorMessage } from '../error';
|
|
3
|
+
import { IThemeSize } from '../../styles/utils';
|
|
4
|
+
import { IThemeControl, IThemeGenreSelect, ITypography } from '../../styles/utils/types';
|
|
5
|
+
import { CSSProperties, FocusEvent, ReactNode, Ref } from 'react';
|
|
6
|
+
export interface ISelectItem {
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
label: string | number | ReactNode;
|
|
11
|
+
value: string | number;
|
|
12
|
+
}
|
|
13
|
+
export type ISelect<T extends ISelectItem> = {
|
|
14
|
+
id?: string;
|
|
15
|
+
size: IThemeSize;
|
|
16
|
+
genre: IThemeGenreSelect;
|
|
17
|
+
control?: IThemeControl;
|
|
18
|
+
sxTypography?: ITypography;
|
|
19
|
+
error?: IErrorMessage;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
classNamePopover?: string;
|
|
23
|
+
stylePopover?: CSSProperties;
|
|
24
|
+
isToggleWhenClickSelectListOption?: boolean;
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
isShowDropdownOptionIcon?: boolean;
|
|
27
|
+
isShowIconToggle?: boolean;
|
|
28
|
+
isShowIconSearchClear?: boolean;
|
|
29
|
+
isShowIconFetching?: boolean;
|
|
30
|
+
isShowSelectAll?: boolean;
|
|
31
|
+
isShowSelectAllLabel?: boolean;
|
|
32
|
+
isShowAddOption?: boolean;
|
|
33
|
+
isNotShowDisabledOptions?: boolean;
|
|
34
|
+
isOnClickOptionClose?: boolean;
|
|
35
|
+
isSortValueAsOption?: boolean;
|
|
36
|
+
isCenter?: boolean;
|
|
37
|
+
isStayValueAfterSelect?: boolean;
|
|
38
|
+
isBold?: boolean;
|
|
39
|
+
isWrapSelectOption?: boolean;
|
|
40
|
+
isMulti?: boolean;
|
|
41
|
+
isFetching?: boolean;
|
|
42
|
+
isClearWhenClickSelectListOption?: boolean;
|
|
43
|
+
isOnlyColorInSelectListOption?: boolean;
|
|
44
|
+
labelPlaceholder?: string;
|
|
45
|
+
labelEmptyOption?: string;
|
|
46
|
+
labelSelectAll?: string;
|
|
47
|
+
labelAndMore?: (count: number) => string;
|
|
48
|
+
labelAddOption?: (value: string) => string;
|
|
49
|
+
isSearch?: boolean;
|
|
50
|
+
valueSearch?: string;
|
|
51
|
+
onChangeSearch?: (value: string) => void;
|
|
52
|
+
optionAllLength?: number;
|
|
53
|
+
option: T[];
|
|
54
|
+
value: T[];
|
|
55
|
+
maxViewSelect?: number;
|
|
56
|
+
maxViewDropdown?: number;
|
|
57
|
+
minViewDropdown?: number;
|
|
58
|
+
refFloating?: Ref<HTMLElement | null>;
|
|
59
|
+
refReference?: Ref<HTMLElement | null>;
|
|
60
|
+
onAddOption?: (value: string) => void;
|
|
61
|
+
onChange: (value: T[]) => void;
|
|
62
|
+
onChangeAll?: (value: T[], isAll: boolean) => void;
|
|
63
|
+
onFocus?: (event?: FocusEvent<HTMLElement>) => void;
|
|
64
|
+
onBlur?: (event?: FocusEvent<HTMLElement>) => void;
|
|
65
|
+
fetchNextPage?: () => void;
|
|
66
|
+
getEstimateSize?: (index: number) => number;
|
|
67
|
+
};
|
|
68
|
+
export interface ISelectLanguageOption extends ISelectItem {
|
|
69
|
+
placeholder: string;
|
|
70
|
+
search?: string;
|
|
71
|
+
}
|
|
72
|
+
export type ISelectLanguage = Omit<ISelect<ISelectItem>, 'option' | 'value' | 'onChange'> & {
|
|
73
|
+
value: string | null;
|
|
74
|
+
onChange: (language: string | null) => void;
|
|
75
|
+
};
|
|
76
|
+
export type ISelectMonth = Omit<ISelect<ISelectItem>, 'option' | 'value' | 'onChange'> & {
|
|
77
|
+
dateMin?: number;
|
|
78
|
+
dateMax?: number;
|
|
79
|
+
value: number | null;
|
|
80
|
+
isShortLabel?: boolean;
|
|
81
|
+
onChange: (value: number | null) => void;
|
|
82
|
+
monthsLocale: IDatePickerTranslateMonth[];
|
|
83
|
+
};
|
|
84
|
+
export type ISelectMonths = Omit<ISelect<ISelectItem>, 'option' | 'value' | 'onChange'> & {
|
|
85
|
+
dateMin?: number;
|
|
86
|
+
dateMax?: number;
|
|
87
|
+
value: number[];
|
|
88
|
+
isShortLabel?: boolean;
|
|
89
|
+
onChange: (value: number[]) => void;
|
|
90
|
+
monthsLocale: IDatePickerTranslateMonth[];
|
|
91
|
+
};
|
|
92
|
+
export type ISelectYear = Omit<ISelectMonth, 'monthsLocale'> & {
|
|
93
|
+
dateMin?: number;
|
|
94
|
+
dateMax?: number;
|
|
95
|
+
sortOrder?: 'asc' | 'desc';
|
|
96
|
+
};
|
|
97
|
+
export type IContainerDropdownListOption<T extends ISelectItem> = Pick<ISelect<T>, 'genre' | 'size' | 'isCenter' | 'isBold' | 'isShowDropdownOptionIcon' | 'sxTypography' | 'className' | 'style'> & {
|
|
98
|
+
item: T;
|
|
99
|
+
isChecked?: boolean;
|
|
100
|
+
isShowScroll?: boolean;
|
|
101
|
+
onClick: () => void;
|
|
102
|
+
virtualRowSize: number;
|
|
103
|
+
virtualRowStart: number;
|
|
104
|
+
};
|
|
105
|
+
export type IContainerSelectListOption<T extends ISelectItem> = Pick<ISelect<T>, 'genre' | 'size' | 'isCenter' | 'isWrapSelectOption' | 'isClearWhenClickSelectListOption' | 'isOnlyColorInSelectListOption' | 'className' | 'style'> & {
|
|
106
|
+
item: T;
|
|
107
|
+
isChecked?: boolean;
|
|
108
|
+
onClick: () => void;
|
|
109
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IThemePalette } from '../../styles/utils';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
export interface ISeparator {
|
|
4
|
+
radius?: string;
|
|
5
|
+
type?: 'horizontal' | 'vertical';
|
|
6
|
+
color?: IThemePalette;
|
|
7
|
+
thickness?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ISx } from '../../styles/utils';
|
|
2
|
+
import { IThemeScrollbarGutter } from '../../styles/utils/types';
|
|
3
|
+
import { AnimationProps, DraggableProps, FocusHandlers, HoverHandlers, LayoutProps, TapHandlers } from 'framer-motion';
|
|
4
|
+
import { CSSProperties, DragEvent, DragEventHandler, JSX, PropsWithChildren, Ref } from 'react';
|
|
5
|
+
export interface IStack extends ISx, PropsWithChildren {
|
|
6
|
+
className?: string;
|
|
7
|
+
isHover?: boolean;
|
|
8
|
+
id?: string;
|
|
9
|
+
isRipple?: boolean;
|
|
10
|
+
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
scrollbarGutter?: IThemeScrollbarGutter;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
onDragOver?: DragEventHandler<HTMLDivElement>;
|
|
14
|
+
onDrop?: (e: DragEvent<HTMLDivElement>) => void;
|
|
15
|
+
ref?: Ref<HTMLDivElement | null>;
|
|
16
|
+
style?: CSSProperties | undefined;
|
|
17
|
+
}
|
|
18
|
+
export type IStackMotion = IStack & LayoutProps & AnimationProps & HoverHandlers & TapHandlers & FocusHandlers & DraggableProps & {
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IErrorMessage } from '../error';
|
|
2
|
+
import { IThemeSize } from '../../styles/utils';
|
|
3
|
+
import { IThemeControl, IThemeGenreTextArea, ITypography } from '../../styles/utils/types';
|
|
4
|
+
import { ClipboardEventHandler, CSSProperties, FocusEventHandler, HTMLInputAutoCompleteAttribute, KeyboardEventHandler, MouseEventHandler, Ref } from 'react';
|
|
5
|
+
type ICommonTextArea = {
|
|
6
|
+
name?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
autoComplete?: HTMLInputAutoCompleteAttribute | string;
|
|
9
|
+
id?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
genre: IThemeGenreTextArea;
|
|
13
|
+
minRows: number;
|
|
14
|
+
ref?: Ref<HTMLTextAreaElement | null>;
|
|
15
|
+
control?: IThemeControl;
|
|
16
|
+
error?: IErrorMessage;
|
|
17
|
+
sxTypography?: ITypography;
|
|
18
|
+
size: IThemeSize;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
minLength?: number;
|
|
22
|
+
isResize?: boolean;
|
|
23
|
+
isLoading?: boolean;
|
|
24
|
+
isBold?: boolean;
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
isFullRadius?: boolean;
|
|
27
|
+
isHidden?: boolean;
|
|
28
|
+
isHiddenBorder?: boolean;
|
|
29
|
+
isNiceNumber?: boolean;
|
|
30
|
+
isNoSpaces?: boolean;
|
|
31
|
+
isReadOnly?: boolean;
|
|
32
|
+
isRequired?: boolean;
|
|
33
|
+
isZeroRadius?: boolean;
|
|
34
|
+
onChange?: (value: string) => void;
|
|
35
|
+
onClick?: MouseEventHandler<HTMLTextAreaElement>;
|
|
36
|
+
onMouseDown?: MouseEventHandler<HTMLTextAreaElement>;
|
|
37
|
+
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
38
|
+
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
39
|
+
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
40
|
+
onPaste?: ClipboardEventHandler<HTMLTextAreaElement>;
|
|
41
|
+
};
|
|
42
|
+
type IControlledValue = {
|
|
43
|
+
value: string | null | undefined;
|
|
44
|
+
defaultValue?: never;
|
|
45
|
+
};
|
|
46
|
+
type IUnControlledValue = {
|
|
47
|
+
value?: never;
|
|
48
|
+
defaultValue: string;
|
|
49
|
+
};
|
|
50
|
+
type IBaseTextArea = ICommonTextArea & (IControlledValue | IUnControlledValue);
|
|
51
|
+
type IAutoHeightTextArea = IBaseTextArea & {
|
|
52
|
+
isAutoHeight: true;
|
|
53
|
+
maxRows: number;
|
|
54
|
+
isResize?: false | undefined;
|
|
55
|
+
};
|
|
56
|
+
type IResizableTextArea = IBaseTextArea & {
|
|
57
|
+
isResize: true;
|
|
58
|
+
isAutoHeight?: false | undefined;
|
|
59
|
+
maxRows?: never;
|
|
60
|
+
};
|
|
61
|
+
type IFixedTextArea = IBaseTextArea & {
|
|
62
|
+
isResize?: false | undefined;
|
|
63
|
+
isAutoHeight?: false | undefined;
|
|
64
|
+
maxRows?: never;
|
|
65
|
+
};
|
|
66
|
+
export type ITextArea = IAutoHeightTextArea | IResizableTextArea | IFixedTextArea;
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IErrorMessage } from '../error';
|
|
2
|
+
import { IThemeControl, IThemeGenreToggle, IThemeSize } from '../../styles/utils/types';
|
|
3
|
+
import { CSSProperties, FocusEvent, MouseEventHandler, Ref } from 'react';
|
|
4
|
+
export type IToggle = {
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
genre: IThemeGenreToggle;
|
|
8
|
+
id?: string;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
isHidden?: boolean;
|
|
11
|
+
isHiddenBorder?: boolean;
|
|
12
|
+
isZeroRadius?: boolean;
|
|
13
|
+
name?: string;
|
|
14
|
+
onChange?: (value: boolean) => void;
|
|
15
|
+
onFocus?: (event: FocusEvent<HTMLButtonElement, Element>) => void;
|
|
16
|
+
onMouseDown?: MouseEventHandler<HTMLButtonElement>;
|
|
17
|
+
control?: IThemeControl;
|
|
18
|
+
error?: IErrorMessage;
|
|
19
|
+
ref?: Ref<HTMLElement | null>;
|
|
20
|
+
size: IThemeSize;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
tabIndex?: number;
|
|
23
|
+
type?: HTMLButtonElement['type'];
|
|
24
|
+
value: boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPopover, IUsePopover } from '../popover';
|
|
2
|
+
import { ITypography } from '../../styles/utils';
|
|
3
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
4
|
+
export type ITooltip = PropsWithChildren & Pick<IPopover, 'genre' | 'size' | 'maxHeight' | 'maxWidth' | 'isCenteredArrow'> & {
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
classNameWrapper?: string;
|
|
8
|
+
styleWrapper?: CSSProperties;
|
|
9
|
+
classNamePopover?: string;
|
|
10
|
+
stylePopover?: CSSProperties;
|
|
11
|
+
sxTypography?: ITypography;
|
|
12
|
+
} & Pick<IUsePopover, 'isWidthAsContent' | 'offset' | 'isClickOutside' | 'isFloatingHover' | 'mode' | 'hoverCloseDelay' | 'hoverOffset' | 'placement'>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ITypographyComponent, ITypographyTooltip } from './component.types';
|
|
2
|
+
export declare const Typography: import('react').MemoExoticComponent<(props: ITypographyComponent) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export declare const TypographyTooltip: import('react').MemoExoticComponent<(props: ITypographyTooltip) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ITooltip } from '../tooltip';
|
|
2
|
+
import { ITypography } from '../../styles/utils';
|
|
3
|
+
import { CSSProperties, PropsWithChildren, Ref } from 'react';
|
|
4
|
+
export type ITypographyComponent = PropsWithChildren & {
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
href?: string;
|
|
9
|
+
isParagraph?: boolean;
|
|
10
|
+
isAnchor?: boolean;
|
|
11
|
+
isSpan?: boolean;
|
|
12
|
+
ref?: Ref<HTMLElement | HTMLHeadingElement | HTMLAnchorElement | null>;
|
|
13
|
+
sx?: ITypography;
|
|
14
|
+
};
|
|
15
|
+
export type ITypographyTooltip = {
|
|
16
|
+
typography: ITypographyComponent;
|
|
17
|
+
tooltip: Omit<ITooltip, 'children' | 'content'>;
|
|
18
|
+
} & PropsWithChildren;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-CW3en5xf.cjs"),r=require("./error--kiPVmoi.cjs");exports.ErrorMessage=r.ErrorMessage;
|