@jenesei-software/jenesei-kit-react 1.3.39 → 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-B0PbrKuJ.cjs +0 -2
- package/build/component-B0PbrKuJ.cjs.map +0 -1
- package/build/component-BBrKC5hB.js +0 -84
- package/build/component-BBrKC5hB.js.map +0 -1
- package/build/component-BMIqhbpK.js +0 -23
- package/build/component-BMIqhbpK.js.map +0 -1
- package/build/component-BlEglNo9.js +0 -60
- package/build/component-BlEglNo9.js.map +0 -1
- package/build/component-CONSm7hH.cjs +0 -2
- package/build/component-CONSm7hH.cjs.map +0 -1
- package/build/component-CPVG0orB.js +0 -50
- package/build/component-CPVG0orB.js.map +0 -1
- package/build/component-CTrSBI75.js +0 -64
- package/build/component-CTrSBI75.js.map +0 -1
- package/build/component-CWawez-M.js +0 -443
- package/build/component-CWawez-M.js.map +0 -1
- package/build/component-CZM5p4mC.js +0 -74
- package/build/component-CZM5p4mC.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-D-HMYzXU.js +0 -65
- package/build/component-D-HMYzXU.js.map +0 -1
- package/build/component-DGpaKn6_.js +0 -248
- package/build/component-DGpaKn6_.js.map +0 -1
- package/build/component-DJAq34yj.cjs +0 -2
- package/build/component-DJAq34yj.cjs.map +0 -1
- package/build/component-DKzHmIUP.js +0 -10
- package/build/component-DKzHmIUP.js.map +0 -1
- package/build/component-Dkw50gzn.cjs +0 -2
- package/build/component-Dkw50gzn.cjs.map +0 -1
- package/build/component-DqV_-YxZ.cjs +0 -2
- package/build/component-DqV_-YxZ.cjs.map +0 -1
- package/build/component-Dy66XPIf.cjs +0 -2
- package/build/component-Dy66XPIf.cjs.map +0 -1
- package/build/component-DyLdklDO.cjs +0 -2
- package/build/component-DyLdklDO.cjs.map +0 -1
- package/build/component-LG-duo2b.cjs +0 -2
- package/build/component-LG-duo2b.cjs.map +0 -1
- package/build/component-PZe4p8qh.cjs +0 -2
- package/build/component-PZe4p8qh.cjs.map +0 -1
- package/build/component-RlcwDmkg.js +0 -39
- package/build/component-RlcwDmkg.js.map +0 -1
- package/build/component-ZdZUAyaP.cjs +0 -2
- package/build/component-ZdZUAyaP.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-buGvmEo6.cjs +0 -2
- package/build/component-buGvmEo6.cjs.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-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-sNGsB3JK.js +0 -88
- package/build/component-sNGsB3JK.js.map +0 -1
- package/build/component-sVzC5XUR.cjs +0 -2
- package/build/component-sVzC5XUR.cjs.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-wOmehMbn.js +0 -170
- package/build/component-wOmehMbn.js.map +0 -1
- package/build/component-zLIAB2HV.cjs +0 -2
- package/build/component-zLIAB2HV.cjs.map +0 -1
- package/build/component.constants-CJcoXCFC.js +0 -757
- package/build/component.constants-CJcoXCFC.js.map +0 -1
- package/build/component.constants-Ctj7PsM8.cjs +0 -2
- package/build/component.constants-Ctj7PsM8.cjs.map +0 -1
- package/build/component.constants-CzKFXlYT.cjs +0 -2
- package/build/component.constants-CzKFXlYT.cjs.map +0 -1
- package/build/component.constants-DjzlauTL.js +0 -142
- package/build/component.constants-DjzlauTL.js.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-CryJGkU7.js +0 -907
- package/build/component.types-CryJGkU7.js.map +0 -1
- package/build/component.types-Drt-O54w.cjs +0 -2
- package/build/component.types-Drt-O54w.cjs.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-B1id3uai.cjs +0 -2
- package/build/context-B1id3uai.cjs.map +0 -1
- package/build/context-B8kTBKjt.cjs +0 -2
- package/build/context-B8kTBKjt.cjs.map +0 -1
- package/build/context-BkovkNHQ.js +0 -117
- package/build/context-BkovkNHQ.js.map +0 -1
- package/build/context-C0_RNFp_.js +0 -195
- package/build/context-C0_RNFp_.js.map +0 -1
- package/build/context-DyTE2I_6.cjs +0 -4
- package/build/context-DyTE2I_6.cjs.map +0 -1
- package/build/context-LBih45kv.js +0 -44
- package/build/context-LBih45kv.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.constants-Bzn9Rcey.cjs +0 -32
- package/build/context.constants-Bzn9Rcey.cjs.map +0 -1
- package/build/context.constants-D0UjboYX.js +0 -12593
- package/build/context.constants-D0UjboYX.js.map +0 -1
- package/build/context.constants-DUVlJghM.js +0 -249
- package/build/context.constants-DUVlJghM.js.map +0 -1
- package/build/context.constants-gXk1ewxx.cjs +0 -1742
- package/build/context.constants-gXk1ewxx.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-BqeTmcmr.cjs +0 -2
- package/build/context.functions-BqeTmcmr.cjs.map +0 -1
- package/build/context.functions-D2K4Xk47.js +0 -35
- package/build/context.functions-D2K4Xk47.js.map +0 -1
- package/build/context.functions-Duwzgcga.cjs +0 -2
- package/build/context.functions-Duwzgcga.cjs.map +0 -1
- package/build/context.functions-ObfwvEVG.js +0 -35
- package/build/context.functions-ObfwvEVG.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-B9dsW2kz.js +0 -117
- package/build/context.hooks-B9dsW2kz.js.map +0 -1
- package/build/context.hooks-Bkj1PSKe.cjs +0 -2
- package/build/context.hooks-Bkj1PSKe.cjs.map +0 -1
- package/build/context.hooks-CCLq09Ra.js +0 -13
- package/build/context.hooks-CCLq09Ra.js.map +0 -1
- package/build/context.hooks-CDvi20Bm.cjs +0 -2
- package/build/context.hooks-CDvi20Bm.cjs.map +0 -1
- package/build/context.hooks-CUXDpPaG.cjs +0 -2
- package/build/context.hooks-CUXDpPaG.cjs.map +0 -1
- package/build/context.hooks-CXJ-eM6d.js +0 -13
- package/build/context.hooks-CXJ-eM6d.js.map +0 -1
- package/build/context.hooks-CYJnoIrt.cjs +0 -2
- package/build/context.hooks-CYJnoIrt.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-Djt5R2yX.js +0 -13
- package/build/context.hooks-Djt5R2yX.js.map +0 -1
- package/build/context.hooks-DpwnIiRj.cjs +0 -2
- package/build/context.hooks-DpwnIiRj.cjs.map +0 -1
- package/build/context.hooks-oclt34zD.js +0 -68
- package/build/context.hooks-oclt34zD.js.map +0 -1
- package/build/context.hooks-v8uZ7dfO.js +0 -49
- package/build/context.hooks-v8uZ7dfO.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-BNuSnUSV.cjs +0 -16
- package/build/use-BNuSnUSV.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-D8uozTND.js +0 -1577
- package/build/use-D8uozTND.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,33 @@
|
|
|
1
|
+
import { IThemePalette } from '../../styles/utils';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { IAppContext, IAppProvider } from './context.types';
|
|
4
|
+
export declare const AppContext: import('use-context-selector').Context<IAppContext | null>;
|
|
5
|
+
export declare const ProviderApp: FC<IAppProvider>;
|
|
6
|
+
export declare const useBgColor: (defaultColor: IThemePalette) => {
|
|
7
|
+
bgColor: "inherit" | "current" | "transparent" | "accentRedLight" | "accentOrangeLight" | "accentYellowLight" | "accentGreenLight" | "accentMintLight" | "accentTealLight" | "accentCyanLight" | "accentBlueLight" | "accentIndigoLight" | "accentPurpleLight" | "accentPinkLight" | "accentBrownLight" | "accentGrayLight" | "fillLight" | "fillPrimaryLight" | "fillSecondaryLight" | "fillTertiaryLight" | "fillQuaternaryLight" | "fillQuinaryLight" | "textPrimaryLight" | "textSecondaryLight" | "textTertiaryLight" | "controlMenuLight" | "controlTooltipLight" | "controlTransparent" | "shadowGlassLight" | "shadowPrimaryLight" | "shadowSecondaryLight" | "shadowTertiaryLight" | "shadowQuaternaryLight" | "shadowWindowInnerShadowLight" | "productPrimaryLight" | "productSecondaryLight" | "productTertiaryLight" | "productQuaternaryLight" | "productQuinaryLight" | "accentRedDark" | "accentOrangeDark" | "accentYellowDark" | "accentGreenDark" | "accentMintDark" | "accentTealDark" | "accentCyanDark" | "accentBlueDark" | "accentIndigoDark" | "accentPurpleDark" | "accentPinkDark" | "accentBrownDark" | "accentGrayDark" | "fillDark" | "fillPrimaryDark" | "fillSecondaryDark" | "fillTertiaryDark" | "fillQuaternaryDark" | "fillQuinaryDark" | "textPrimaryDark" | "textSecondaryDark" | "textTertiaryDark" | "controlMenuDark" | "controlTooltipDark" | "productPrimaryDark" | "productSecondaryDark" | "productTertiaryDark" | "productQuaternaryDark" | "productQuinaryDark" | "shadowGlassDark" | "shadowPrimaryDark" | "shadowSecondaryDark" | "shadowTertiaryDark" | "shadowQuaternaryDark" | "shadowWindowInnerShadowDark" | "accentRedLightStable" | "accentOrangeLightStable" | "accentYellowLightStable" | "accentGreenLightStable" | "accentMintLightStable" | "accentTealLightStable" | "accentCyanLightStable" | "accentBlueLightStable" | "accentIndigoLightStable" | "accentPurpleLightStable" | "accentPinkLightStable" | "accentBrownLightStable" | "accentGrayLightStable" | "fillLightStable" | "fillPrimaryLightStable" | "fillSecondaryLightStable" | "fillTertiaryLightStable" | "fillQuaternaryLightStable" | "fillQuinaryLightStable" | "textPrimaryLightStable" | "textSecondaryLightStable" | "textTertiaryLightStable" | "controlMenuLightStable" | "controlTooltipLightStable" | "controlTransparentStable" | "shadowGlassLightStable" | "shadowPrimaryLightStable" | "shadowSecondaryLightStable" | "shadowTertiaryLightStable" | "shadowQuaternaryLightStable" | "shadowWindowInnerShadowLightStable" | "productPrimaryLightStable" | "productSecondaryLightStable" | "productTertiaryLightStable" | "productQuaternaryLightStable" | "productQuinaryLightStable" | "accentRedDarkStable" | "accentOrangeDarkStable" | "accentYellowDarkStable" | "accentGreenDarkStable" | "accentMintDarkStable" | "accentTealDarkStable" | "accentCyanDarkStable" | "accentBlueDarkStable" | "accentIndigoDarkStable" | "accentPurpleDarkStable" | "accentPinkDarkStable" | "accentBrownDarkStable" | "accentGrayDarkStable" | "fillDarkStable" | "fillPrimaryDarkStable" | "fillSecondaryDarkStable" | "fillTertiaryDarkStable" | "fillQuaternaryDarkStable" | "fillQuinaryDarkStable" | "textPrimaryDarkStable" | "textSecondaryDarkStable" | "textTertiaryDarkStable" | "controlMenuDarkStable" | "controlTooltipDarkStable" | "productPrimaryDarkStable" | "productSecondaryDarkStable" | "productTertiaryDarkStable" | "productQuaternaryDarkStable" | "productQuinaryDarkStable" | "shadowGlassDarkStable" | "shadowPrimaryDarkStable" | "shadowSecondaryDarkStable" | "shadowTertiaryDarkStable" | "shadowQuaternaryDarkStable" | "shadowWindowInnerShadowDarkStable";
|
|
8
|
+
changeBgColor: (color: IThemePalette) => void;
|
|
9
|
+
historyBgColor: (steps: number) => void;
|
|
10
|
+
setDefaultBgColor: () => void;
|
|
11
|
+
bgColorIndex: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const useStatusBarColor: (defaultColor: IThemePalette) => {
|
|
14
|
+
statusBarColor: "inherit" | "current" | "transparent" | "accentRedLight" | "accentOrangeLight" | "accentYellowLight" | "accentGreenLight" | "accentMintLight" | "accentTealLight" | "accentCyanLight" | "accentBlueLight" | "accentIndigoLight" | "accentPurpleLight" | "accentPinkLight" | "accentBrownLight" | "accentGrayLight" | "fillLight" | "fillPrimaryLight" | "fillSecondaryLight" | "fillTertiaryLight" | "fillQuaternaryLight" | "fillQuinaryLight" | "textPrimaryLight" | "textSecondaryLight" | "textTertiaryLight" | "controlMenuLight" | "controlTooltipLight" | "controlTransparent" | "shadowGlassLight" | "shadowPrimaryLight" | "shadowSecondaryLight" | "shadowTertiaryLight" | "shadowQuaternaryLight" | "shadowWindowInnerShadowLight" | "productPrimaryLight" | "productSecondaryLight" | "productTertiaryLight" | "productQuaternaryLight" | "productQuinaryLight" | "accentRedDark" | "accentOrangeDark" | "accentYellowDark" | "accentGreenDark" | "accentMintDark" | "accentTealDark" | "accentCyanDark" | "accentBlueDark" | "accentIndigoDark" | "accentPurpleDark" | "accentPinkDark" | "accentBrownDark" | "accentGrayDark" | "fillDark" | "fillPrimaryDark" | "fillSecondaryDark" | "fillTertiaryDark" | "fillQuaternaryDark" | "fillQuinaryDark" | "textPrimaryDark" | "textSecondaryDark" | "textTertiaryDark" | "controlMenuDark" | "controlTooltipDark" | "productPrimaryDark" | "productSecondaryDark" | "productTertiaryDark" | "productQuaternaryDark" | "productQuinaryDark" | "shadowGlassDark" | "shadowPrimaryDark" | "shadowSecondaryDark" | "shadowTertiaryDark" | "shadowQuaternaryDark" | "shadowWindowInnerShadowDark" | "accentRedLightStable" | "accentOrangeLightStable" | "accentYellowLightStable" | "accentGreenLightStable" | "accentMintLightStable" | "accentTealLightStable" | "accentCyanLightStable" | "accentBlueLightStable" | "accentIndigoLightStable" | "accentPurpleLightStable" | "accentPinkLightStable" | "accentBrownLightStable" | "accentGrayLightStable" | "fillLightStable" | "fillPrimaryLightStable" | "fillSecondaryLightStable" | "fillTertiaryLightStable" | "fillQuaternaryLightStable" | "fillQuinaryLightStable" | "textPrimaryLightStable" | "textSecondaryLightStable" | "textTertiaryLightStable" | "controlMenuLightStable" | "controlTooltipLightStable" | "controlTransparentStable" | "shadowGlassLightStable" | "shadowPrimaryLightStable" | "shadowSecondaryLightStable" | "shadowTertiaryLightStable" | "shadowQuaternaryLightStable" | "shadowWindowInnerShadowLightStable" | "productPrimaryLightStable" | "productSecondaryLightStable" | "productTertiaryLightStable" | "productQuaternaryLightStable" | "productQuinaryLightStable" | "accentRedDarkStable" | "accentOrangeDarkStable" | "accentYellowDarkStable" | "accentGreenDarkStable" | "accentMintDarkStable" | "accentTealDarkStable" | "accentCyanDarkStable" | "accentBlueDarkStable" | "accentIndigoDarkStable" | "accentPurpleDarkStable" | "accentPinkDarkStable" | "accentBrownDarkStable" | "accentGrayDarkStable" | "fillDarkStable" | "fillPrimaryDarkStable" | "fillSecondaryDarkStable" | "fillTertiaryDarkStable" | "fillQuaternaryDarkStable" | "fillQuinaryDarkStable" | "textPrimaryDarkStable" | "textSecondaryDarkStable" | "textTertiaryDarkStable" | "controlMenuDarkStable" | "controlTooltipDarkStable" | "productPrimaryDarkStable" | "productSecondaryDarkStable" | "productTertiaryDarkStable" | "productQuaternaryDarkStable" | "productQuinaryDarkStable" | "shadowGlassDarkStable" | "shadowPrimaryDarkStable" | "shadowSecondaryDarkStable" | "shadowTertiaryDarkStable" | "shadowQuaternaryDarkStable" | "shadowWindowInnerShadowDarkStable";
|
|
15
|
+
changeStatusBarColor: (color: IThemePalette) => void;
|
|
16
|
+
historyStatusBarColor: (steps: number) => void;
|
|
17
|
+
setDefaultStatusBarColor: () => void;
|
|
18
|
+
statusBarColorIndex: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const useBgImage: (defaultImage: string | null) => {
|
|
21
|
+
bgImage: string | null;
|
|
22
|
+
changeBgImage: (image: string | null) => void;
|
|
23
|
+
historyBgImage: (steps: number) => void;
|
|
24
|
+
setDefaultBgImage: () => void;
|
|
25
|
+
bgImageIndex: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const useDescription: (defaultDescription: string) => {
|
|
28
|
+
description: string;
|
|
29
|
+
changeDescription: (newDescription: string) => void;
|
|
30
|
+
historyDescription: (steps: number) => void;
|
|
31
|
+
setDefaultDescription: () => void;
|
|
32
|
+
descriptionIndex: number;
|
|
33
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IThemePalette } from '../../styles/utils';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { IAppProviderOutletStyled } from './context.types';
|
|
4
|
+
type IAppOutletParts = IAppProviderOutletStyled;
|
|
5
|
+
export declare const getProviderAppWrapperStyle: (bgColor: IThemePalette, bgImage: string | null) => CSSProperties;
|
|
6
|
+
export declare const getProviderAppOutletStyle: (props: IAppOutletParts) => CSSProperties;
|
|
7
|
+
export declare const getProviderAppOutletChildrenStyle: (props: IAppOutletParts) => CSSProperties;
|
|
8
|
+
export declare const getProviderAppOutletNotificationStyle: (props: IAppOutletParts) => CSSProperties;
|
|
9
|
+
export declare const getProviderAppOutletHeaderStyle: (props: IAppOutletParts) => CSSProperties;
|
|
10
|
+
export declare const getProviderAppOutletFooterStyle: (props: IAppOutletParts) => CSSProperties;
|
|
11
|
+
export declare const getProviderAppOutletNavStyle: (props: IAppOutletParts) => CSSProperties;
|
|
12
|
+
export declare const getProviderAppOutletLeftAsideStyle: (props: IAppOutletParts) => CSSProperties;
|
|
13
|
+
export declare const getProviderAppOutletRightAsideStyle: (props: IAppOutletParts) => CSSProperties;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { IPreviewAdditional } from '../../areas/preview';
|
|
2
|
+
import { IThemeBreakpoint, IThemeOrientation, IThemePalette } from '../../styles/utils';
|
|
3
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
4
|
+
export interface IAppProviderElement {
|
|
5
|
+
component: ReactElement;
|
|
6
|
+
length?: {
|
|
7
|
+
default?: number | string | null;
|
|
8
|
+
breakpoint?: Partial<Record<IThemeBreakpoint, number | string | null | undefined>>;
|
|
9
|
+
orientation?: Partial<Record<IThemeOrientation, number | string | null | undefined>>;
|
|
10
|
+
};
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
}
|
|
13
|
+
interface IAppProviderElementStyled {
|
|
14
|
+
component: ReactElement;
|
|
15
|
+
length?: number | string | null;
|
|
16
|
+
zIndex?: number;
|
|
17
|
+
}
|
|
18
|
+
export type IAppProviderOutletStyled = {
|
|
19
|
+
notification?: IAppProviderElementStyled;
|
|
20
|
+
header?: IAppProviderElementStyled;
|
|
21
|
+
nav?: IAppProviderElementStyled;
|
|
22
|
+
footer?: IAppProviderElementStyled;
|
|
23
|
+
leftAside?: IAppProviderElementStyled & {
|
|
24
|
+
isTopHeader?: boolean;
|
|
25
|
+
isTopFooter?: boolean;
|
|
26
|
+
isTopNav?: boolean;
|
|
27
|
+
};
|
|
28
|
+
rightAside?: IAppProviderElementStyled & {
|
|
29
|
+
isTopHeader?: boolean;
|
|
30
|
+
isTopFooter?: boolean;
|
|
31
|
+
isTopNav?: boolean;
|
|
32
|
+
};
|
|
33
|
+
main?: {
|
|
34
|
+
zIndex?: number;
|
|
35
|
+
};
|
|
36
|
+
isScrollOutlet?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export interface IAppProvider extends PropsWithChildren {
|
|
39
|
+
defaultPreview?: IPreviewAdditional;
|
|
40
|
+
defaultBgColor: IThemePalette;
|
|
41
|
+
defaultStatusBarColor: IThemePalette;
|
|
42
|
+
defaultBgImage?: string;
|
|
43
|
+
defaultTitle: string;
|
|
44
|
+
defaultDescription: string;
|
|
45
|
+
isScrollOutlet?: boolean;
|
|
46
|
+
notification?: IAppProviderElement;
|
|
47
|
+
header?: IAppProviderElement;
|
|
48
|
+
nav?: IAppProviderElement;
|
|
49
|
+
footer?: IAppProviderElement;
|
|
50
|
+
leftAside?: IAppProviderElement & {
|
|
51
|
+
isTopHeader?: boolean;
|
|
52
|
+
isTopFooter?: boolean;
|
|
53
|
+
isTopNav?: boolean;
|
|
54
|
+
};
|
|
55
|
+
rightAside?: IAppProviderElement & {
|
|
56
|
+
isTopHeader?: boolean;
|
|
57
|
+
isTopFooter?: boolean;
|
|
58
|
+
isTopNav?: boolean;
|
|
59
|
+
};
|
|
60
|
+
main?: {
|
|
61
|
+
zIndex?: number;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface IAppContext {
|
|
65
|
+
changePreview: (newIPreview: IPreviewAdditional) => void;
|
|
66
|
+
changeStatusBarColor: (color: IThemePalette) => void;
|
|
67
|
+
changeBgColor: (color: IThemePalette) => void;
|
|
68
|
+
changeBgImage: (image: string) => void;
|
|
69
|
+
changeTitle: (title: string) => void;
|
|
70
|
+
changeDescription: (description: string) => void;
|
|
71
|
+
setDefaultStatusBarColor: () => void;
|
|
72
|
+
setDefaultBgColor: () => void;
|
|
73
|
+
setDefaultBgImage: () => void;
|
|
74
|
+
setDefaultTitle: () => void;
|
|
75
|
+
setDefaultDescription: () => void;
|
|
76
|
+
historyStatusBarColor: (step: number) => void;
|
|
77
|
+
historyBgColor: (step: number) => void;
|
|
78
|
+
setHistoryTitle: (step: number) => void;
|
|
79
|
+
historyBgImage: (step: number) => void;
|
|
80
|
+
historyDescription: (step: number) => void;
|
|
81
|
+
}
|
|
82
|
+
export type IUseAppDependencies = (keyof IAppContext)[];
|
|
83
|
+
export interface IAppProviderWrapper {
|
|
84
|
+
$bgColor: IAppProvider['defaultBgColor'];
|
|
85
|
+
$bgImage: IAppProvider['defaultBgImage'] | null;
|
|
86
|
+
}
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IBrowserThemeContext, IBrowserThemeProvider } from './context.types';
|
|
3
|
+
export declare const BrowserThemeContext: import('use-context-selector').Context<IBrowserThemeContext | null>;
|
|
4
|
+
export declare const ProviderBrowserTheme: FC<IBrowserThemeProvider>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type IBrowserThemeProvider = PropsWithChildren & {
|
|
3
|
+
defaultMode?: IBrowserThemeMode;
|
|
4
|
+
};
|
|
5
|
+
export type IBrowserTheme = 'light' | 'dark';
|
|
6
|
+
export type IBrowserThemeMode = IBrowserTheme | 'auto';
|
|
7
|
+
export interface IBrowserThemeContext {
|
|
8
|
+
theme: IBrowserTheme;
|
|
9
|
+
mode: IBrowserThemeMode;
|
|
10
|
+
setMode: (mode: IBrowserThemeMode) => void;
|
|
11
|
+
}
|
|
12
|
+
export type IUseBrowserThemeDependencies = (keyof IBrowserThemeContext)[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICookieContext, ICookieProvider } from './context.types';
|
|
3
|
+
/**
|
|
4
|
+
* Context for managing cookies.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CookieContext: import('react').Context<ICookieContext | null>;
|
|
7
|
+
/**
|
|
8
|
+
* Provider component for managing cookies.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* You should understand which cookies you are changing and whether you have access to them.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* The local storage is typed using the `jenesei-kit-react.d.ts` file:
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import '@jenesei-software/jenesei-kit-react'
|
|
18
|
+
*
|
|
19
|
+
* declare module '@jenesei-software/jenesei-kit-react' {
|
|
20
|
+
* export interface IValidCookieObject {
|
|
21
|
+
* access_token: string
|
|
22
|
+
* refresh_token: string
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const ProviderCookie: FC<ICookieProvider>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICookieContext } from './context.types';
|
|
2
|
+
/**
|
|
3
|
+
* Custom hook to access the CookieContext.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* You should understand which cookies you are changing and whether you have access to them.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const useCookie: () => ICookieContext;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as Cookies } from 'node_modules/@types/js-cookie';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export type ICookieAttributes = Cookies.CookieAttributes;
|
|
4
|
+
export interface ICookieProvider extends PropsWithChildren {
|
|
5
|
+
validate?: {
|
|
6
|
+
validateKeys: (keyof IValidCookieObject)[];
|
|
7
|
+
getValidateCookieValue: <K extends keyof IValidCookieObject>(key: K, value: IValidCookieObject[K]) => value is IValidCookieObject[K];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type IValidCookieObject = {};
|
|
11
|
+
export interface ICookieContext {
|
|
12
|
+
getCookie: <K extends keyof IValidCookieObject>(name: K) => IValidCookieObject[K] | undefined;
|
|
13
|
+
setCookie: <K extends keyof IValidCookieObject>(name: K, value: IValidCookieObject[K], options?: ICookieAttributes) => void;
|
|
14
|
+
removeCookieValue: <K extends keyof IValidCookieObject>(name: K, options?: ICookieAttributes) => void;
|
|
15
|
+
removeCookieValues: () => void;
|
|
16
|
+
checkCookie: () => void;
|
|
17
|
+
cookieValues: IValidCookieObject | undefined;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IThemePalette } from '../../styles/utils';
|
|
2
|
+
export declare const DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT = 0.3;
|
|
3
|
+
export declare const DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT = 0.4;
|
|
4
|
+
export declare const DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT: string;
|
|
5
|
+
export declare const DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH: string;
|
|
6
|
+
export declare const DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS: string;
|
|
7
|
+
export declare const DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING: string;
|
|
8
|
+
export declare const DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND: IThemePalette;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IDialogContext, IDialogItem, IUseDialog, IUseDialogDependencies } from './context.types';
|
|
2
|
+
export declare const useDialogs: (props: IUseDialogDependencies) => IDialogContext;
|
|
3
|
+
export declare const useDialog: <T extends object = Record<string, unknown>>(props?: IUseDialog<T>) => IDialogItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IDialogElementStyle, IDialogLayoutStyle } from './context.types';
|
|
3
|
+
export declare const DialogClass: {
|
|
4
|
+
readonly layout: "context-dialog__layout";
|
|
5
|
+
readonly element: "context-dialog__element";
|
|
6
|
+
};
|
|
7
|
+
export declare const getDialogLayoutClassName: () => "context-dialog__layout";
|
|
8
|
+
export declare const getDialogLayoutStyle: (props: IDialogLayoutStyle) => CSSProperties;
|
|
9
|
+
export declare const getDialogElementStyle: (props: IDialogElementStyle) => CSSProperties;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IThemePalette } from '../../styles/utils';
|
|
2
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
export type IDialogProvider = PropsWithChildren & {
|
|
4
|
+
zIndex: number;
|
|
5
|
+
};
|
|
6
|
+
export type IDialogContext<T extends object = Record<string, unknown>> = {
|
|
7
|
+
add: (dialog: IDialogContent<T>) => void;
|
|
8
|
+
remove: (id: IDialogContent<T>['id']) => void;
|
|
9
|
+
update: (dialog: IDialogContent<T>) => void;
|
|
10
|
+
dialogHistory: IDialogContent<T>[];
|
|
11
|
+
};
|
|
12
|
+
export type IDialogItem = {
|
|
13
|
+
add: () => void;
|
|
14
|
+
remove: () => void;
|
|
15
|
+
id: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type IDialogContent<T extends object = Record<string, unknown>> = {
|
|
18
|
+
props?: IUseDialog<T>;
|
|
19
|
+
id?: string;
|
|
20
|
+
index?: number;
|
|
21
|
+
onRemove?: () => void;
|
|
22
|
+
};
|
|
23
|
+
export type IUseDialogDependencies = (keyof IDialogContext)[];
|
|
24
|
+
export type IUseDialog<T extends object = Record<string, unknown>> = {
|
|
25
|
+
content?: IDialogContentNode<T>;
|
|
26
|
+
propsDialog?: IDialogDialogProps;
|
|
27
|
+
propsCustom?: T;
|
|
28
|
+
onRemove?: () => void;
|
|
29
|
+
};
|
|
30
|
+
type IDialogDialogProps = {
|
|
31
|
+
maxWidth?: string;
|
|
32
|
+
maxHeight?: string;
|
|
33
|
+
padding?: string;
|
|
34
|
+
borderRadius?: string;
|
|
35
|
+
background?: IThemePalette;
|
|
36
|
+
isRemoveOnOutsideClick?: boolean;
|
|
37
|
+
};
|
|
38
|
+
interface IDialogContentNodeProps<T extends object = Record<string, unknown>> {
|
|
39
|
+
remove?: () => void;
|
|
40
|
+
isAnimating?: boolean;
|
|
41
|
+
propsCustom?: T;
|
|
42
|
+
}
|
|
43
|
+
type IDialogContentNode<T extends object> = (props: IDialogContentNodeProps<T>) => ReactNode;
|
|
44
|
+
export type IDialogElement<T extends object> = IDialogContent<T>;
|
|
45
|
+
export type IDialogLayoutStyle = Pick<IDialogProvider, 'zIndex'>;
|
|
46
|
+
export type IDialogElementStyle<T extends object = Record<string, unknown>> = Pick<IUseDialog<T>, 'propsDialog'>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type IGeolocationProvider = PropsWithChildren & {
|
|
3
|
+
isAskEntrance?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export interface IGeolocationContext {
|
|
6
|
+
geolocationPermission: PermissionState | null;
|
|
7
|
+
requestGeolocationPermission: () => void;
|
|
8
|
+
location: GeolocationPosition | null;
|
|
9
|
+
error: GeolocationPositionError | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ILocalStorageContext, ILocalStorageProvider } from './context.types';
|
|
3
|
+
export declare const LocalStorageContext: import('react').Context<ILocalStorageContext | null>;
|
|
4
|
+
/**
|
|
5
|
+
* Provider component for managing local storage.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* The local storage is typed using the `jenesei-kit-react.d.ts` file:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@jenesei-software/jenesei-kit-react'
|
|
12
|
+
*
|
|
13
|
+
* declare module '@jenesei-software/jenesei-kit-react' {
|
|
14
|
+
* export interface IValidLocalStorageObject {
|
|
15
|
+
* access_token: string
|
|
16
|
+
* refresh_token: string
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const ProviderLocalStorage: FC<ILocalStorageProvider>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export interface ILocalStorageProvider extends PropsWithChildren {
|
|
3
|
+
validate?: {
|
|
4
|
+
validateKeys: (keyof IValidLocalStorageObject)[];
|
|
5
|
+
getValidateLocalStorageValue: <K extends keyof IValidLocalStorageObject>(key: K, value: IValidLocalStorageObject[K]) => value is IValidLocalStorageObject[K];
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export type IValidLocalStorageObject = {};
|
|
9
|
+
export interface ILocalStorageContext {
|
|
10
|
+
getLocalStorage: <K extends keyof IValidLocalStorageObject>(name: K) => IValidLocalStorageObject[K] | undefined;
|
|
11
|
+
setLocalStorage: <K extends keyof IValidLocalStorageObject>(name: K, value: IValidLocalStorageObject[K]) => void;
|
|
12
|
+
removeLocalStorageValue: <K extends keyof IValidLocalStorageObject>(name: K) => void;
|
|
13
|
+
removeLocalStorageValues: () => void;
|
|
14
|
+
checkLocalStorage: () => void;
|
|
15
|
+
localStorageValues: IValidLocalStorageObject | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IPermissionContext, IPermissionProvider } from './context.types';
|
|
2
|
+
export declare const PermissionContext: import('react').Context<IPermissionContext | null>;
|
|
3
|
+
export declare const ProviderPermission: (props: IPermissionProvider) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const urlBase64ToUint8Array: (base64String: string) => Uint8Array<ArrayBuffer>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export interface IPermissionContext {
|
|
3
|
+
geolocationPermission: PermissionState | null;
|
|
4
|
+
isBiometricSupported: boolean;
|
|
5
|
+
isNotificationPermissionLoading: boolean;
|
|
6
|
+
notificationPermission: NotificationPermission | null;
|
|
7
|
+
pushNotificationSupported: boolean;
|
|
8
|
+
requestGeolocationPermission: () => void;
|
|
9
|
+
requestNotificationPermission: () => Promise<NotificationPermission | undefined>;
|
|
10
|
+
}
|
|
11
|
+
export type IPermissionProvider = PropsWithChildren;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IScreenWidthContext, IScreenWidthProvider } from './context.types';
|
|
3
|
+
export declare const ScreenWidthContext: import('use-context-selector').Context<IScreenWidthContext | null>;
|
|
4
|
+
export declare const ProviderScreenWidth: FC<IScreenWidthProvider>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IThemeBreakpoint, IThemeOrientation } from '../../styles/utils';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export type IScreenWidthProvider = PropsWithChildren & {
|
|
4
|
+
type?: 'breakpoint' | 'orientation';
|
|
5
|
+
};
|
|
6
|
+
export interface IScreenWidthContext {
|
|
7
|
+
breakpoint: IThemeBreakpoint | 'default';
|
|
8
|
+
orientation: IThemeOrientation;
|
|
9
|
+
type?: 'breakpoint' | 'orientation';
|
|
10
|
+
}
|
|
11
|
+
export type IUseScreenWidthDependencies = (keyof IScreenWidthContext)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IThemeGenreSonner } from '../../styles/utils/types';
|
|
2
|
+
import { ISonnerProvider } from './context.types';
|
|
3
|
+
export declare const DEFAULT_PROVIDER_SONNER_Z_INDEX = 100;
|
|
4
|
+
export declare const DEFAULT_PROVIDER_SONNER_SCALE = 0.04;
|
|
5
|
+
export declare const DEFAULT_PROVIDER_SONNER_Y = 100;
|
|
6
|
+
export declare const DEFAULT_PROVIDER_SONNER_DURATION = 0.3;
|
|
7
|
+
export declare const DEFAULT_PROVIDER_SONNER_GENRE: IThemeGenreSonner;
|
|
8
|
+
export declare const DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM = 65;
|
|
9
|
+
export declare const DEFAULT_PROVIDER_SONNER_BUTTON: ISonnerProvider['default']['button'];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IThemeGenreSonner } from '../../styles/utils/types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { ISonnerProvider } from './context.types';
|
|
4
|
+
export declare const SonnerClass: {
|
|
5
|
+
readonly layout: "context-sonner__layout";
|
|
6
|
+
readonly layoutBottomCenter: "context-sonner__layout--bottom-center";
|
|
7
|
+
readonly layoutBottomLeft: "context-sonner__layout--bottom-left";
|
|
8
|
+
readonly layoutBottomRight: "context-sonner__layout--bottom-right";
|
|
9
|
+
readonly layoutTopRight: "context-sonner__layout--top-right";
|
|
10
|
+
readonly layoutTopLeft: "context-sonner__layout--top-left";
|
|
11
|
+
readonly layoutTopCenter: "context-sonner__layout--top-center";
|
|
12
|
+
readonly elementWrapper: "context-sonner__element-wrapper";
|
|
13
|
+
readonly content: "context-sonner__content";
|
|
14
|
+
readonly icon: "context-sonner__icon";
|
|
15
|
+
readonly contentTitle: "context-sonner__content-title";
|
|
16
|
+
readonly contentDescription: "context-sonner__content-description";
|
|
17
|
+
readonly buttonWrapper: "context-sonner__button-wrapper";
|
|
18
|
+
};
|
|
19
|
+
export declare const SonnerLayout: "context-sonner__layout";
|
|
20
|
+
export declare const SonnerElementWrapper: "context-sonner__element-wrapper";
|
|
21
|
+
export declare const SonnerContent: "context-sonner__content";
|
|
22
|
+
export declare const SonnerIcon: "context-sonner__icon";
|
|
23
|
+
export declare const SonnerContentTitle: "context-sonner__content-title";
|
|
24
|
+
export declare const SonnerContentDescription: "context-sonner__content-description";
|
|
25
|
+
export declare const SonnerButtonWrapper: "context-sonner__button-wrapper";
|
|
26
|
+
type ISonnerStyleWithVars = CSSProperties & Record<string, string>;
|
|
27
|
+
export declare const getSonnerLayoutClassName: (position: ISonnerProvider["position"]) => string;
|
|
28
|
+
export declare const getSonnerLayoutStyle: (props: Pick<ISonnerProvider, "gap" | "zIndex">) => ISonnerStyleWithVars;
|
|
29
|
+
export declare const getSonnerElementWrapperStyle: (genre: IThemeGenreSonner) => ISonnerStyleWithVars;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IAddIIcon } from '../../components/icon';
|
|
2
|
+
import { IThemeGenreButton, IThemeGenreSonner, ITypography } from '../../styles/utils/types';
|
|
3
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
+
export type ISonnerProvider = PropsWithChildren & {
|
|
5
|
+
gap: number;
|
|
6
|
+
position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'bottom-center' | 'top-center';
|
|
7
|
+
visibleToasts?: number;
|
|
8
|
+
zIndex?: number;
|
|
9
|
+
default: Omit<ISonnerContentStandard, 'index'>;
|
|
10
|
+
};
|
|
11
|
+
export type ISonnerContext = {
|
|
12
|
+
toast: (content: Omit<ISonnerContentStandard, 'index'>) => void;
|
|
13
|
+
promise: <T>(promise: Promise<T>, expectation: Omit<ISonnerContentStandard, 'index'>, toast: (success: T | undefined, error: any | undefined) => Omit<ISonnerContent, 'index'>) => void;
|
|
14
|
+
remove: (id: ISonnerContentDefault['id']) => void;
|
|
15
|
+
contentHistory: ISonnerContent[];
|
|
16
|
+
};
|
|
17
|
+
export type IUseSonnerDependencies = (keyof ISonnerContext)[];
|
|
18
|
+
export type ISonnerElement = ISonnerElementDefault;
|
|
19
|
+
type ISonnerElementDefault = {
|
|
20
|
+
id: ISonnerContentDefault['id'];
|
|
21
|
+
title: ISonnerContentStandard['title'];
|
|
22
|
+
description: ISonnerContentStandard['description'];
|
|
23
|
+
content: ISonnerContentContent['content'];
|
|
24
|
+
icon?: ISonnerContentDefault['icon'];
|
|
25
|
+
isLoading: ISonnerContentDefault['isLoading'];
|
|
26
|
+
hidingMode: ISonnerContentDefault['hidingMode'];
|
|
27
|
+
button: ISonnerContentDefault['button'];
|
|
28
|
+
index: number;
|
|
29
|
+
handleOnClick: (id: ISonnerContentDefault['id'], hidingMode?: ISonnerContentDefault['hidingMode']) => void;
|
|
30
|
+
isMoreThanLastViewIndexPlusOne: boolean;
|
|
31
|
+
isMoreThanLastViewIndex: boolean;
|
|
32
|
+
isHovered: boolean;
|
|
33
|
+
isLastViewIndex: boolean;
|
|
34
|
+
buttonGenre: IThemeGenreButton;
|
|
35
|
+
isTop: boolean;
|
|
36
|
+
} & Required<Pick<ISonnerContentDefault, 'genre'>>;
|
|
37
|
+
export type ISonnerContent = ISonnerContentContent | ISonnerContentStandard;
|
|
38
|
+
type ISonnerContentDefault = {
|
|
39
|
+
hidingMode?: 'clickOnSonner' | 'clickOnButton';
|
|
40
|
+
hidingTime?: number;
|
|
41
|
+
icon?: IAddIIcon;
|
|
42
|
+
id?: string;
|
|
43
|
+
genre?: IThemeGenreSonner;
|
|
44
|
+
isLoading?: boolean;
|
|
45
|
+
sxTypography?: ITypography;
|
|
46
|
+
button?: {
|
|
47
|
+
content?: string | ReactNode;
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
} | false;
|
|
50
|
+
index: number;
|
|
51
|
+
};
|
|
52
|
+
type ISonnerContentContent = ISonnerContentDefault & {
|
|
53
|
+
content: ReactNode | false;
|
|
54
|
+
};
|
|
55
|
+
export type ISonnerContentStandard = ISonnerContentDefault & {
|
|
56
|
+
description?: string | ReactNode;
|
|
57
|
+
title?: string | ReactNode;
|
|
58
|
+
};
|
|
59
|
+
export {};
|