@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-plT9Ah7t.js","sources":["../src/styles/sx/style.ts"],"sourcesContent":["import { CSSObject, css, DefaultTheme } from 'styled-components';\n\nimport { addSXStyleProps } from '.';\n\nfunction toStyledCSS(value: CSSObject | ((theme: DefaultTheme) => CSSObject), theme: DefaultTheme) {\n const styles = typeof value === 'function' ? value(theme) : value;\n return css(styles);\n}\n\nexport const addSX = css<addSXStyleProps>`\n ${(props) => {\n const rawSX = props.$sx;\n if (!rawSX) return null;\n\n const sx = typeof rawSX === 'function' ? rawSX(props.theme) : rawSX;\n return toStyledCSS(sx.default, props.theme);\n }}\n\n ${(props) => {\n const rawSX = props.$sx;\n if (!rawSX) return null;\n\n const sx = typeof rawSX === 'function' ? rawSX(props.theme) : rawSX;\n\n return Object.entries(sx)\n .filter(([key]) => key !== 'default')\n .map(([deviceKey, value]) => {\n const screenWidth = props.theme.screens[deviceKey as keyof typeof props.theme.screens]?.width;\n if (!screenWidth) return null;\n return css`\n @media (max-width: ${screenWidth}px) {\n ${toStyledCSS(value, props.theme)}\n }\n `;\n });\n }}\n`;\n"],"names":[],"mappings":";AAIA,SAAS,YAAY,OAAyD,OAAqB;AACjG,QAAM,SAAS,OAAO,UAAU,aAAa,MAAM,KAAK,IAAI;AAC5D,SAAO,IAAI,MAAM;AACnB;AAEO,MAAM,QAAQ;AAAA,IACjB,CAAC,UAAU;AACX,QAAM,QAAQ,MAAM;AACpB,MAAI,CAAC,MAAO,QAAO;AAEnB,QAAM,KAAK,OAAO,UAAU,aAAa,MAAM,MAAM,KAAK,IAAI;AAC9D,SAAO,YAAY,GAAG,SAAS,MAAM,KAAK;AAC5C,CAAC;AAAA;AAAA,IAEC,CAAC,UAAU;AACX,QAAM,QAAQ,MAAM;AACpB,MAAI,CAAC,MAAO,QAAO;AAEnB,QAAM,KAAK,OAAO,UAAU,aAAa,MAAM,MAAM,KAAK,IAAI;AAE9D,SAAO,OAAO,QAAQ,EAAE,EACrB,OAAO,CAAC,CAAC,GAAG,MAAM,QAAQ,SAAS,EACnC,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM;;AAC3B,UAAM,eAAc,WAAM,MAAM,QAAQ,SAA6C,MAAjE,mBAAoE;AACxF,QAAI,CAAC,YAAa,QAAO;AACzB,WAAO;AAAA,+BACgB,WAAW;AAAA,cAC5B,YAAY,OAAO,MAAM,KAAK,CAAC;AAAA;AAAA;AAAA,EAGvC,CAAC;AACL,CAAC;AAAA;"}
|
package/build/style-sx.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-sx.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/style-sx.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { CSSObject } from 'styled-components';
|
|
2
|
-
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
import { RuleSet } from 'styled-components';
|
|
4
|
-
|
|
5
|
-
declare type AddDollarSign<T> = {
|
|
6
|
-
[K in keyof T as `$${string & K}`]: T[K];
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
declare type AddDollarSign_2<T> = {
|
|
10
|
-
[K in keyof T as `$${string & K}`]: T[K];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export declare const addSX: RuleSet<AddDollarSign<addSXProps>>;
|
|
14
|
-
|
|
15
|
-
export declare interface addSXProps {
|
|
16
|
-
sx?: SXProps;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export declare type addSXStyleProps = AddDollarSign_2<addSXProps>;
|
|
20
|
-
|
|
21
|
-
declare type IThemeDevice = 'default' | 'tablet' | 'mobile';
|
|
22
|
-
|
|
23
|
-
export declare type SXProps = ({
|
|
24
|
-
default: CSSObject;
|
|
25
|
-
} & {
|
|
26
|
-
[K in IThemeDevice]?: CSSObject;
|
|
27
|
-
}) | ((theme: DefaultTheme) => {
|
|
28
|
-
default: CSSObject;
|
|
29
|
-
} & {
|
|
30
|
-
[K in IThemeDevice]?: CSSObject;
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export { }
|
package/build/style-sx.es.js
DELETED
package/build/style-sx.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-sx.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/build/style-theme.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context.constants-gXk1ewxx.cjs");exports.JeneseiGlobalStyles=e.JeneseiGlobalStyles,exports.JeneseiPalette=e.JeneseiPalette,exports.KEY_SIZE_DATA=e.KEY_SIZE_DATA,exports.KEY_SIZE_DATA_TOGGLE=e.KEY_SIZE_DATA_TOGGLE,exports.ThemeBlack=e.ThemeBlack,exports.ThemeLight=e.ThemeLight,exports.ThemeMapBustmarket=e.ThemeMapBustmarket,exports.ThemeMapCheckbox=e.ThemeMapCheckbox,exports.ThemeMapId=e.ThemeMapId,exports.ThemeMapLoading=e.ThemeMapLoading,exports.ThemeMapLogo=e.ThemeMapLogo,exports.ThemeMapRealebail=e.ThemeMapRealebail;
|
|
2
|
-
//# sourceMappingURL=style-theme.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-theme.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/style-theme.d.ts
DELETED
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { ExecutionProps } from 'styled-components';
|
|
2
|
-
import { NamedExoticComponent } from 'react';
|
|
3
|
-
|
|
4
|
-
export declare interface ITheme {
|
|
5
|
-
icon: {
|
|
6
|
-
map: {
|
|
7
|
-
id: typeof ThemeMapId;
|
|
8
|
-
checkbox: typeof ThemeMapCheckbox;
|
|
9
|
-
loading: typeof ThemeMapLoading;
|
|
10
|
-
realebail: typeof ThemeMapRealebail;
|
|
11
|
-
logo: typeof ThemeMapLogo;
|
|
12
|
-
bustmarket: typeof ThemeMapBustmarket;
|
|
13
|
-
};
|
|
14
|
-
getIconId: <T extends keyof ITheme['icon']['map']>(props: {
|
|
15
|
-
type: T;
|
|
16
|
-
name: ITheme['icon']['map'][T][number];
|
|
17
|
-
}) => string;
|
|
18
|
-
getSpriteUrl: (props: {
|
|
19
|
-
type: keyof ITheme['icon']['map'];
|
|
20
|
-
}) => string;
|
|
21
|
-
};
|
|
22
|
-
states: {
|
|
23
|
-
focus: string;
|
|
24
|
-
danger: string;
|
|
25
|
-
};
|
|
26
|
-
colors: {
|
|
27
|
-
range: IThemeGenreRange;
|
|
28
|
-
date: IThemeGenreDate;
|
|
29
|
-
button: IThemeGenre;
|
|
30
|
-
toggle: IThemeGenreToggle;
|
|
31
|
-
checkbox: IThemeGenre;
|
|
32
|
-
input: IThemeGenreInput;
|
|
33
|
-
imageSelect: IThemeGenreImageSelect;
|
|
34
|
-
select: IThemeGenreSelect;
|
|
35
|
-
sonner: IThemeGenreSonner;
|
|
36
|
-
};
|
|
37
|
-
effects: {
|
|
38
|
-
input: string;
|
|
39
|
-
button: string;
|
|
40
|
-
};
|
|
41
|
-
font: {
|
|
42
|
-
family: IThemeFontFamily;
|
|
43
|
-
weight: IThemeTypographyWeight;
|
|
44
|
-
sizeDefault: Record<IThemeDevice, number>;
|
|
45
|
-
sizeHeading: Record<IThemeTypographyHeading, number>;
|
|
46
|
-
lineHeight: number;
|
|
47
|
-
};
|
|
48
|
-
palette: Record<IThemePaletteKeys, string>;
|
|
49
|
-
background: Record<IThemePaletteKeys, string>;
|
|
50
|
-
screens: IThemeScreen;
|
|
51
|
-
scrollbar: {
|
|
52
|
-
width: number;
|
|
53
|
-
background: string;
|
|
54
|
-
thumb: string;
|
|
55
|
-
thumbBorder: string;
|
|
56
|
-
};
|
|
57
|
-
transition: {
|
|
58
|
-
duration: string;
|
|
59
|
-
timingFunction: string;
|
|
60
|
-
default: string;
|
|
61
|
-
icon: string;
|
|
62
|
-
};
|
|
63
|
-
getContrastYIQ: (hexcolor: string) => string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare type IThemeDevice = 'default' | 'tablet' | 'mobile';
|
|
67
|
-
|
|
68
|
-
export declare type IThemeFontFamily = 'Inter' | 'Roboto' | 'Work Sans' | 'Roboto Mono' | 'Manrope';
|
|
69
|
-
|
|
70
|
-
export declare type IThemeGenre = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'black' | 'blackBorder' | 'product' | 'productBorder' | 'white' | 'greenTransparent' | 'redTransparent' | 'yellowTransparent' | 'realebail-product' | 'realebail-gray' | 'realebail-white' | 'bustmarket-gray' | 'bustmarket-gray-violet' | 'bustmarket-violet' | 'bustmarket-white-violet'>, IThemeGenreTypeDefault>;
|
|
71
|
-
|
|
72
|
-
export declare type IThemeGenreDate = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'blackBorder' | 'realebail-white'>, IThemeGenreTypeDate>;
|
|
73
|
-
|
|
74
|
-
export declare type IThemeGenreImageSelect = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'blackBorder' | 'realebail-white'>, IThemeGenreTypeImageSelect>;
|
|
75
|
-
|
|
76
|
-
export declare type IThemeGenreInput = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'blackBorder' | 'realebail-white' | 'bustmarket-gray'>, IThemeGenreTypeDefault>;
|
|
77
|
-
|
|
78
|
-
export declare type IThemeGenreName = 'gray' | 'grayBorder' | 'black' | 'blackBorder' | 'product' | 'productBorder' | 'white' | 'greenTransparent' | 'redTransparent' | 'yellowTransparent' | 'realebail-product' | 'realebail-gray' | 'realebail-white' | 'bustmarket-gray-violet' | 'bustmarket-gray' | 'bustmarket-violet' | 'bustmarket-white-violet';
|
|
79
|
-
|
|
80
|
-
export declare type IThemeGenreRange = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'blackBorder' | 'realebail-white' | 'bustmarket-gray'>, IThemeGenreTypeRange>;
|
|
81
|
-
|
|
82
|
-
export declare type IThemeGenreSelect = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'blackBorder' | 'realebail-white'>, IThemeGenreTypeSelect>;
|
|
83
|
-
|
|
84
|
-
export declare type IThemeGenreSonner = Record<Extract<IThemeGenreName, 'black' | 'greenTransparent' | 'redTransparent' | 'yellowTransparent'>, IThemeGenreTypeSonner>;
|
|
85
|
-
|
|
86
|
-
export declare type IThemeGenreTextArea = Record<Extract<IThemeGenreName, 'gray' | 'grayBorder' | 'blackBorder' | 'realebail-white'>, IThemeGenreTypeDefault>;
|
|
87
|
-
|
|
88
|
-
export declare type IThemeGenreToggle = Record<Extract<IThemeGenreName, 'product'>, IThemeGenreTypeToggle>;
|
|
89
|
-
|
|
90
|
-
export declare interface IThemeGenreTypeDate {
|
|
91
|
-
background: {
|
|
92
|
-
rest: string;
|
|
93
|
-
hover: string;
|
|
94
|
-
today: string;
|
|
95
|
-
weekend: string;
|
|
96
|
-
choice: string;
|
|
97
|
-
line: string;
|
|
98
|
-
};
|
|
99
|
-
border: {
|
|
100
|
-
rest: string;
|
|
101
|
-
hover: string;
|
|
102
|
-
today: string;
|
|
103
|
-
weekend: string;
|
|
104
|
-
choice: string;
|
|
105
|
-
line: string;
|
|
106
|
-
};
|
|
107
|
-
color: {
|
|
108
|
-
rest: string;
|
|
109
|
-
hover: string;
|
|
110
|
-
placeholder: string;
|
|
111
|
-
today: string;
|
|
112
|
-
weekend: string;
|
|
113
|
-
choice: string;
|
|
114
|
-
line: string;
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export declare interface IThemeGenreTypeDefault {
|
|
119
|
-
background: {
|
|
120
|
-
rest: string;
|
|
121
|
-
hover: string;
|
|
122
|
-
};
|
|
123
|
-
border: {
|
|
124
|
-
rest: string;
|
|
125
|
-
hover: string;
|
|
126
|
-
};
|
|
127
|
-
color: {
|
|
128
|
-
rest: string;
|
|
129
|
-
hover: string;
|
|
130
|
-
placeholder: string;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export declare interface IThemeGenreTypeImageSelect {
|
|
135
|
-
background: {
|
|
136
|
-
rest: string;
|
|
137
|
-
hover: string;
|
|
138
|
-
};
|
|
139
|
-
border: {
|
|
140
|
-
rest: string;
|
|
141
|
-
hover: string;
|
|
142
|
-
};
|
|
143
|
-
color: {
|
|
144
|
-
rest: string;
|
|
145
|
-
hover: string;
|
|
146
|
-
placeholder: string;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export declare interface IThemeGenreTypeRange {
|
|
151
|
-
thumb: {
|
|
152
|
-
background: {
|
|
153
|
-
rest: string;
|
|
154
|
-
hover: string;
|
|
155
|
-
};
|
|
156
|
-
border: {
|
|
157
|
-
rest: string;
|
|
158
|
-
hover: string;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
track: {
|
|
162
|
-
background: {
|
|
163
|
-
rest: string;
|
|
164
|
-
};
|
|
165
|
-
gradient: {
|
|
166
|
-
rest: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export declare interface IThemeGenreTypeSelect {
|
|
172
|
-
background: {
|
|
173
|
-
rest: string;
|
|
174
|
-
hover: string;
|
|
175
|
-
select: string;
|
|
176
|
-
};
|
|
177
|
-
border: {
|
|
178
|
-
rest: string;
|
|
179
|
-
hover: string;
|
|
180
|
-
select: string;
|
|
181
|
-
};
|
|
182
|
-
color: {
|
|
183
|
-
rest: string;
|
|
184
|
-
hover: string;
|
|
185
|
-
select: string;
|
|
186
|
-
placeholder: string;
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export declare interface IThemeGenreTypeSonner {
|
|
191
|
-
button: {
|
|
192
|
-
genre: keyof IThemeGenre;
|
|
193
|
-
};
|
|
194
|
-
description: {
|
|
195
|
-
color: string;
|
|
196
|
-
};
|
|
197
|
-
icon: {
|
|
198
|
-
color: string;
|
|
199
|
-
};
|
|
200
|
-
title: {
|
|
201
|
-
color: string;
|
|
202
|
-
};
|
|
203
|
-
wrapper: {
|
|
204
|
-
background: string;
|
|
205
|
-
borderColor: string;
|
|
206
|
-
boxShadow: string;
|
|
207
|
-
boxShadowHover: string;
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export declare interface IThemeGenreTypeToggle {
|
|
212
|
-
active: {
|
|
213
|
-
rest: {
|
|
214
|
-
track: string;
|
|
215
|
-
thumb: string;
|
|
216
|
-
border: string;
|
|
217
|
-
thumbBoxShadow: string;
|
|
218
|
-
};
|
|
219
|
-
hover: {
|
|
220
|
-
track: string;
|
|
221
|
-
thumb: string;
|
|
222
|
-
border: string;
|
|
223
|
-
thumbBoxShadow: string;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
unActive: {
|
|
227
|
-
rest: {
|
|
228
|
-
track: string;
|
|
229
|
-
thumb: string;
|
|
230
|
-
border: string;
|
|
231
|
-
thumbBoxShadow: string;
|
|
232
|
-
};
|
|
233
|
-
hover: {
|
|
234
|
-
track: string;
|
|
235
|
-
thumb: string;
|
|
236
|
-
border: string;
|
|
237
|
-
thumbBoxShadow: string;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export declare type IThemePaletteKeys = 'transparent' | 'black100' | 'black80' | 'black60' | 'black50' | 'black40' | 'black10' | 'black05' | 'black04' | 'blackHelena' | 'blackJanice' | 'grayJanice' | 'grayKaren' | 'grayMonica' | 'graySandra' | 'grayPatricia' | 'graySarah' | 'grayStassie' | 'grayAdriana' | 'greenGoogle' | 'grayBarbara' | 'grayStephanie' | 'grayFrances' | 'grayTina' | 'green100' | 'green50' | 'green25' | 'green10' | 'green10Background' | 'whiteStandard' | 'whiteJanice' | 'yellowGoogle' | 'yellow100' | 'yellow50' | 'yellow25' | 'yellow10' | 'yellow10Background' | 'redGoogle' | 'red100' | 'red50' | 'red25' | 'red10' | 'red10Background' | 'blueGoogle' | 'blueRest' | 'blueActive' | 'blueHover' | 'blueFocus' | 'blueBr' | 'blueKaren' | 'blueMonica' | 'violetStephanie' | 'violetJanice' | 'amnezia' | 'inherit' | 'currentColor';
|
|
243
|
-
|
|
244
|
-
export declare type IThemeScreen = Record<IThemeDevice, {
|
|
245
|
-
width: number;
|
|
246
|
-
}>;
|
|
247
|
-
|
|
248
|
-
export declare type IThemeSize = 'large' | 'largeMedium' | 'medium' | 'mediumSmall' | 'small';
|
|
249
|
-
|
|
250
|
-
export declare interface IThemeSizePropertyDefault {
|
|
251
|
-
font: number;
|
|
252
|
-
height: number;
|
|
253
|
-
heightIcon: number;
|
|
254
|
-
padding: number;
|
|
255
|
-
radius: number;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export declare interface IThemeSizePropertyToggle {
|
|
259
|
-
height: number;
|
|
260
|
-
padding: number;
|
|
261
|
-
thumb: number;
|
|
262
|
-
width: number;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export declare type IThemeTypographyHeading = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'h8' | 'h9';
|
|
266
|
-
|
|
267
|
-
export declare type IThemeTypographyWeight = 100 | 300 | 400 | 500 | 700 | 900;
|
|
268
|
-
|
|
269
|
-
export declare const JeneseiGlobalStyles: NamedExoticComponent<ExecutionProps & object>;
|
|
270
|
-
|
|
271
|
-
export declare const JeneseiPalette: Record<IThemePaletteKeys, string>;
|
|
272
|
-
|
|
273
|
-
export declare const KEY_SIZE_DATA: Record<IThemeSize, IThemeSizePropertyDefault>;
|
|
274
|
-
|
|
275
|
-
export declare const KEY_SIZE_DATA_TOGGLE: Record<IThemeSize, IThemeSizePropertyToggle>;
|
|
276
|
-
|
|
277
|
-
export declare const ThemeBlack: ITheme;
|
|
278
|
-
|
|
279
|
-
export declare const ThemeLight: ITheme;
|
|
280
|
-
|
|
281
|
-
export declare const ThemeMapBustmarket: readonly ["Card", "Delivery", "Heart", "Reviews", "Search", "Menu"];
|
|
282
|
-
|
|
283
|
-
export declare const ThemeMapCheckbox: readonly ["Radio-true", "Radio-false", "Square-true", "Square-false", "Heart-true", "Heart-false", "Arrow"];
|
|
284
|
-
|
|
285
|
-
export declare const ThemeMapId: readonly ["Close", "Biometry", "Qr", "Search", "Folder", "Wallet", "Graph", "Bookmark", "Browser", "Category", "Home", "Notification", "Chat", "Heart", "Paper", "Plus", "Minus", "PaperPlus", "PaperNegative", "PaperFail", "PaperDownload", "PaperUpload", "Send", "Password", "Swap", "Work", "Arrow1", "Arrow2", "Arrow3", "Arrow4", "ArrowMini1", "ArrowMini2", "Scan", "Activity", "Calendar", "Message", "PlusMini", "ChartMini", "Game", "Bag1", "Bag2", "TicketStar", "MoreCircle", "MoreSquare", "Discount", "Buy", "Web", "InfoMini", "DangerMini", "CloseMini", "TickMini", "Video", "Discovery", "Location", "Document", "Setting", "Time", "VolumeUp", "VolumeDown", "VolumeOff", "Star", "Select", "Ticket", "Camera", "Profile", "AddUser", "TwoUser", "ThreeUser", "Login", "Logout", "Download", "Upload", "Voice1", "Voice2", "Delete", "Edit", "PlayMini", "ShieldDone", "ShieldFail", "Show", "Hide", "Filter1", "Filter2", "Image", "Call", "Calling", "CallMissed", "CallSilent", "Lock", "Unlock", "Resources", "Language"];
|
|
286
|
-
|
|
287
|
-
export declare const ThemeMapLoading: readonly ["Line", "Circle", "Blocks", "Balls"];
|
|
288
|
-
|
|
289
|
-
export declare const ThemeMapLogo: readonly ["Jenesei", "BustMarket"];
|
|
290
|
-
|
|
291
|
-
export declare const ThemeMapRealebail: readonly ["MapCluster", "HomeLikes", "HomeManagement", "UserSettings", "User"];
|
|
292
|
-
|
|
293
|
-
export { }
|
package/build/style-theme.es.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { bq, bl, bo, bp, bn, bm, bw, bs, br, bt, bv, bu } from "./context.constants-D0UjboYX.js";
|
|
2
|
-
export {
|
|
3
|
-
bq as JeneseiGlobalStyles,
|
|
4
|
-
bl as JeneseiPalette,
|
|
5
|
-
bo as KEY_SIZE_DATA,
|
|
6
|
-
bp as KEY_SIZE_DATA_TOGGLE,
|
|
7
|
-
bn as ThemeBlack,
|
|
8
|
-
bm as ThemeLight,
|
|
9
|
-
bw as ThemeMapBustmarket,
|
|
10
|
-
bs as ThemeMapCheckbox,
|
|
11
|
-
br as ThemeMapId,
|
|
12
|
-
bt as ThemeMapLoading,
|
|
13
|
-
bv as ThemeMapLogo,
|
|
14
|
-
bu as ThemeMapRealebail
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=style-theme.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-theme.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/build/types.cjs.js
DELETED
package/build/types.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/types.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare type AddDollarSign<T> = {
|
|
2
|
-
[K in keyof T as `$${string & K}`]: T[K];
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
export declare type IImageFormat = (typeof LIST_IMAGE_SUPPORTED_FORMAT)[number];
|
|
6
|
-
|
|
7
|
-
export declare type ILanguage = Record<ILanguageKeys, {
|
|
8
|
-
value: ILanguageKeys;
|
|
9
|
-
label: string;
|
|
10
|
-
placeholder: string;
|
|
11
|
-
search: string;
|
|
12
|
-
}>;
|
|
13
|
-
|
|
14
|
-
export declare type ILanguageKeys = 'eng' | 'rus';
|
|
15
|
-
|
|
16
|
-
export declare type IService = Record<IServiceKeys, {
|
|
17
|
-
value: IServiceKeys;
|
|
18
|
-
label: string;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
search: string;
|
|
21
|
-
}>;
|
|
22
|
-
|
|
23
|
-
export declare type IServiceKeys = 'jenesei_id';
|
|
24
|
-
|
|
25
|
-
declare const LIST_IMAGE_SUPPORTED_FORMAT: readonly ["image/jpeg", "image/jpg", "image/png", "image/webp", "image/avif"];
|
|
26
|
-
|
|
27
|
-
export { }
|
package/build/types.es.js
DELETED
package/build/types.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/use-BNuSnUSV.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-C6yv_9g1.cjs"),t=require("react"),o=require("./context.constants-gXk1ewxx.cjs"),i=require("./component.constants-Ctj7PsM8.cjs"),n=require("./component-CoOTSdM5.cjs"),r=require("./consts.cjs.js");require("./context.constants-Bzn9Rcey.cjs");const a=require("./context.hooks-Bkj1PSKe.cjs"),s=require("./use-zW3LuRc_.cjs"),c=require("styled-components");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const o in e)if("default"!==o){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}return t.default=e,Object.freeze(t)}const u=p(t);var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};var l=function(){return l=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},l.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,m,v,g,f,w,x,S,C,y,z,b,R,D,E,P=!1;function M(){if(!P){P=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(b=/\b(iPhone|iP[ao]d)/.exec(e),R=/\b(iP[ao]d)/.exec(e),y=/Android/i.exec(e),D=/FBAN\/\w+;/i.exec(e),E=/Mobile/i.exec(e),z=!!/Win64/.exec(e),t){(h=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(h=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(e);w=i?parseFloat(i[1])+4:h,m=t[2]?parseFloat(t[2]):NaN,v=t[3]?parseFloat(t[3]):NaN,(g=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),f=t&&t[1]?parseFloat(t[1]):NaN):f=NaN}else h=m=v=f=g=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);x=!n||parseFloat(n[1].replace("_","."))}else x=!1;S=!!o[2],C=!!o[3]}else x=S=C=!1}}var A,j={ie:function(){return M()||h},ieCompatibilityMode:function(){return M()||w>h},ie64:function(){return j.ie()&&z},firefox:function(){return M()||m},opera:function(){return M()||v},webkit:function(){return M()||g},safari:function(){return j.webkit()},chrome:function(){return M()||f},windows:function(){return M()||S},osx:function(){return M()||x},linux:function(){return M()||C},iphone:function(){return M()||b},mobile:function(){return M()||b||R||y||E},nativeApp:function(){return M()||D},android:function(){return M()||y},ipad:function(){return M()||R}},T=j,O={canUseDOM:!("undefined"==typeof window||!window.document||!window.document.createElement)};O.canUseDOM&&(A=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
2
|
-
/**
|
|
3
|
-
* Checks if an event is supported in the current execution environment.
|
|
4
|
-
*
|
|
5
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
6
|
-
* `reset`, `load`, `error`, and `select`.
|
|
7
|
-
*
|
|
8
|
-
* Borrows from Modernizr.
|
|
9
|
-
*
|
|
10
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
11
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
12
|
-
* @return {boolean} True if the event is supported.
|
|
13
|
-
* @internal
|
|
14
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
15
|
-
*/;var W=T,_=function(e,t){if(!O.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,i=o in document;if(!i){var n=document.createElement("div");n.setAttribute(o,"return;"),i="function"==typeof n[o]}return!i&&A&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i};function I(e){var t=0,o=0,i=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),i=10*t,n=10*o,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||n)&&e.deltaMode&&(1==e.deltaMode?(i*=40,n*=40):(i*=800,n*=800)),i&&!t&&(t=i<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:n}}I.getEventType=function(){return W.firefox()?"DOMMouseScroll":_("wheel")?"wheel":"mousewheel"};var L=I;const N=s.getDefaultExportFromCjs(L);function F(e,t,o,i,n){void 0===n&&(n=0);var r=G(t.width,t.height,n),a=r.width,s=r.height;return{x:k(e.x,a,o.width,i),y:k(e.y,s,o.height,i)}}function k(e,t,o,i){var n=t*i/2-o/2;return X(e,-n,n)}function Z(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function H(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function U(e,t){return Math.min(e,Math.max(0,t))}function q(e,t){return t}function B(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function G(e,t,o){var i=o*Math.PI/180;return{width:Math.abs(Math.cos(i)*e)+Math.abs(Math.sin(i)*t),height:Math.abs(Math.sin(i)*e)+Math.abs(Math.cos(i)*t)}}function X(e,t,o){return Math.min(Math.max(e,t),o)}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var Y=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.cropperRef=u.createRef(),o.imageRef=u.createRef(),o.videoRef=u.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc="undefined"!=typeof document?document:null,o.currentWindow="undefined"!=typeof window?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&o.containerRef){var e=!0;o.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var e=o.computeSizes();e&&(o.previousCropSize=e,o.emitCropData(),o.setInitialCrop(e),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(e){if(o.props.initialCroppedAreaPercentages){var t=function(e,t,o,i,n,r){var a=G(t.width,t.height,o),s=X(i.width/a.width*(100/e.width),n,r);return{crop:{x:s*a.width/2-i.width/2-a.width*s*(e.x/100),y:s*a.height/2-i.height/2-a.height*s*(e.y/100)},zoom:s}}(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,e,o.props.minZoom,o.props.maxZoom),i=t.crop,n=t.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(n)}else if(o.props.initialCroppedAreaPixels){var r=function(e,t,o,i,n,r){void 0===o&&(o=0);var a=G(t.naturalWidth,t.naturalHeight,o),s=X(function(e,t,o){var i=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return o.height>o.width?o.height/(e.height*i):o.width/(e.width*i)}(e,t,i),n,r),c=i.height>i.width?i.height/e.height:i.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c},zoom:s}}(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,e,o.props.minZoom,o.props.maxZoom);i=r.crop,n=r.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(n)}},o.computeSizes=function(){var e,t,i,n,r,a,s=o.imageRef.current||o.videoRef.current;if(s&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var c=o.containerRect.width/o.containerRect.height,p=(null===(e=o.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(i=o.imageRef.current)||void 0===i?void 0:i.naturalHeight)||(null===(n=o.videoRef.current)||void 0===n?void 0:n.videoHeight)||0,d=p/u,h=void 0;if(s.offsetWidth<p||s.offsetHeight<u)switch(o.state.mediaObjectFit){default:case"contain":h=c>d?{width:o.containerRect.height*d,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/d};break;case"horizontal-cover":h={width:o.containerRect.width,height:o.containerRect.width/d};break;case"vertical-cover":h={width:o.containerRect.height*d,height:o.containerRect.height}}else h={width:s.offsetWidth,height:s.offsetHeight};o.mediaSize=l(l({},h),{naturalWidth:p,naturalHeight:u}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var m=o.props.cropSize?o.props.cropSize:function(e,t,o,i,n,r){void 0===r&&(r=0);var a=G(e,t,r),s=a.width,c=a.height,p=Math.min(s,o),u=Math.min(c,i);return p>u*n?{width:u*n,height:u}:{width:p,height:p/n}}(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(null===(r=o.state.cropSize)||void 0===r?void 0:r.height)===m.height&&(null===(a=o.state.cropSize)||void 0===a?void 0:a.width)===m.width||o.props.onCropSizeChange&&o.props.onCropSizeChange(m),o.setState({cropSize:m},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(m),m}},o.saveContainerPosition=function(){if(o.containerRef){var e=o.containerRef.getBoundingClientRect();o.containerPosition={x:e.left,y:e.top}}},o.onMouseDown=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(e)))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onScroll=function(e){o.currentDoc&&(e.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(e){o.currentDoc&&(o.isTouching=!0,o.props.onTouchRequest&&!o.props.onTouchRequest(e)||(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onGestureStart=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(e){if(e.preventDefault(),!o.isTouching){var i=t.getMousePoint(e),n=o.gestureZoomStart-1+e.scale;if(o.setNewZoom(n,i,{shouldUpdatePosition:!0}),o.props.onRotationChange){var r=o.gestureRotationStart+e.rotation;o.props.onRotationChange(r)}}},o.onGestureEnd=function(e){o.cleanEvents()},o.onDragStart=function(e){var t,i,n=e.x,r=e.y;o.dragStartPosition={x:n,y:r},o.dragStartCrop=l({},o.props.crop),null===(i=(t=o.props).onInteractionStart)||void 0===i||i.call(t)},o.onDrag=function(e){var t=e.x,i=e.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&void 0!==t&&void 0!==i){var e=t-o.dragStartPosition.x,n=i-o.dragStartPosition.y,r={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+n},a=o.props.restrictPosition?F(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.props.onCropChange(a)}}))},o.onDragStopped=function(){var e,t;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){if(o.currentWindow&&(!o.props.onWheelRequest||o.props.onWheelRequest(e))){e.preventDefault();var i=t.getMousePoint(e),n=N(e).pixelY,r=o.props.zoom-n*o.props.zoomSpeed/200;o.setNewZoom(r,i,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},o.getPointOnContainer=function(e,t){var i=e.x,n=e.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(i-t.x),y:o.containerRect.height/2-(n-t.y)}},o.getPointOnMedia=function(e){var t=e.x,i=e.y,n=o.props,r=n.crop,a=n.zoom;return{x:(t+r.x)/a,y:(i+r.y)/a}},o.setNewZoom=function(e,t,i){var n=(void 0===i?{}:i).shouldUpdatePosition,r=void 0===n||n;if(o.state.cropSize&&o.props.onZoomChange){var a=X(e,o.props.minZoom,o.props.maxZoom);if(r){var s=o.getPointOnContainer(t,o.containerPosition),c=o.getPointOnMedia(s),p={x:c.x*a-s.x,y:c.y*a-s.y},u=o.props.restrictPosition?F(p,o.mediaSize,o.state.cropSize,a,o.props.rotation):p;o.props.onCropChange(u)}o.props.onZoomChange(a)}},o.getCropData=function(){return o.state.cropSize?function(e,t,o,i,n,r,a){void 0===r&&(r=0),void 0===a&&(a=!0);var s=a?U:q,c=G(t.width,t.height,r),p=G(t.naturalWidth,t.naturalHeight,r),u={x:s(100,((c.width-o.width/n)/2-e.x/n)/c.width*100),y:s(100,((c.height-o.height/n)/2-e.y/n)/c.height*100),width:s(100,o.width/c.width*100/n),height:s(100,o.height/c.height*100/n)},d=Math.round(s(p.width,u.width*p.width/100)),h=Math.round(s(p.height,u.height*p.height/100)),m=p.width>=p.height*i?{width:Math.round(h*i),height:h}:{width:d,height:Math.round(d/i)};return{croppedAreaPercentages:u,croppedAreaPixels:l(l({},m),{x:Math.round(s(p.width-m.width,u.x*p.width/100)),y:Math.round(s(p.height-m.height,u.y*p.height/100))})}}(o.props.restrictPosition?F(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,i=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,i),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,i)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,i=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,i)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var e=o.props.crop;if(o.isInitialized&&o.previousCropSize)if(Math.abs(o.previousCropSize.width-o.state.cropSize.width)>1e-6||Math.abs(o.previousCropSize.height-o.state.cropSize.height)>1e-6){var t=o.state.cropSize.width/o.previousCropSize.width,i=o.state.cropSize.height/o.previousCropSize.height;e={x:o.props.crop.x*t,y:o.props.crop.y*i}}var n=o.props.restrictPosition?F(e,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):e;o.previousCropSize=o.state.cropSize,o.props.onCropChange(n),o.emitCropData()}},o.onKeyDown=function(e){var t,i,n=o.props,r=n.crop,a=n.onCropChange,s=n.keyboardStep,c=n.zoom,p=n.rotation,u=s;if(o.state.cropSize){e.shiftKey&&(u*=.2);var d=l({},r);switch(e.key){case"ArrowUp":d.y-=u,e.preventDefault();break;case"ArrowDown":d.y+=u,e.preventDefault();break;case"ArrowLeft":d.x-=u,e.preventDefault();break;case"ArrowRight":d.x+=u,e.preventDefault();break;default:return}o.props.restrictPosition&&(d=F(d,o.mediaSize,o.state.cropSize,c,p)),e.repeat||null===(i=(t=o.props).onInteractionStart)||void 0===i||i.call(t),a(d)}},o.onKeyUp=function(e){var t,i;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}o.emitCropData(),null===(i=(t=o.props).onInteractionEnd)||void 0===i||i.call(t)},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,o,i,n,r,a,s,c,p;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(i=e.cropSize)||void 0===i?void 0:i.width)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.width)?this.computeSizes():(null===(r=e.crop)||void 0===r?void 0:r.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(c=this.props.crop)||void 0===c?void 0:c.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(p=this.videoRef.current)||void 0===p||p.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.prototype.getObjectFit=function(){var e,t,o,i;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var n=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(o=this.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(i=this.videoRef.current)||void 0===i?void 0:i.videoHeight)||0)<n?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Z(o,i),this.lastPinchRotation=H(o,i),this.onDragStart(B(o,i))},t.prototype.onPinchMove=function(e){var o=this;if(this.currentDoc&&this.currentWindow){var i=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]),r=B(i,n);this.onDrag(r),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=Z(i,n),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,r,{shouldUpdatePosition:!1}),o.lastPinchDistance=e;var a=H(i,n),s=o.props.rotation+(a-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(s),o.lastPinchRotation=a})}},t.prototype.render=function(){var e,t=this,o=this.props,i=o.image,n=o.video,r=o.mediaProps,a=o.cropperProps,s=o.transform,c=o.crop,p=c.x,d=c.y,h=o.rotation,m=o.zoom,v=o.cropShape,g=o.showGrid,f=o.roundCropAreaPixels,w=o.style,x=w.containerStyle,S=w.cropAreaStyle,C=w.mediaStyle,y=o.classes,z=y.containerClassName,b=y.cropAreaClassName,R=y.mediaClassName,D=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return u.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:x,className:V("reactEasyCrop_Container",z)},i?u.createElement("img",l({alt:"",className:V("reactEasyCrop_Image","contain"===D&&"reactEasyCrop_Contain","horizontal-cover"===D&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===D&&"reactEasyCrop_Cover_Vertical",R)},r,{src:i,ref:this.imageRef,style:l(l({},C),{transform:s||"translate(".concat(p,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(m,")")}),onLoad:this.onMediaLoad})):n&&u.createElement("video",l({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:V("reactEasyCrop_Video","contain"===D&&"reactEasyCrop_Contain","horizontal-cover"===D&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===D&&"reactEasyCrop_Cover_Vertical",R)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:l(l({},C),{transform:s||"translate(".concat(p,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(m,")")}),controls:!1}),(Array.isArray(n)?n:[{src:n}]).map(function(e){return u.createElement("source",l({key:e.src},e))})),this.state.cropSize&&u.createElement("div",l({ref:this.cropperRef,style:l(l({},S),{width:f?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:f?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:V("reactEasyCrop_CropArea","round"===v&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",b)},a)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(u.Component);const K=a=>{var s,p,u,d,l,h,m,v,g,f,w,x,S,C,y;const[z,b]=t.useState(0),[R,D]=t.useState([]),[E,P]=t.useState([]),M=c.useTheme(),A=t.useMemo(()=>{var e,t;return(null==(t=(null==(e=null==a?void 0:a.params)?void 0:e.images)??[])?void 0:t.length)>1},[null==(s=a.params)?void 0:s.images]),j=t.useMemo(()=>null==R?void 0:R[z],[R,z]),T=t.useCallback(async e=>{var t,o,i;const n=await Promise.all(e.map(async e=>{const t=E[e.index]??null;if(e.isDeleted||!e.isCropped||!e.url||!e.name||!t)return null;const o=await function(e,t,o="image/png"){const i=r.LIST_IMAGE_SUPPORTED_FORMAT.includes(o)?o:"image/png";return new Promise((o,n)=>{const r=new Image;r.src=e,r.crossOrigin="anonymous",r.onload=()=>{const e=document.createElement("canvas"),a=e.getContext("2d");e.width=t.width,e.height=t.height,a.drawImage(r,t.x,t.y,t.width,t.height,0,0,t.width,t.height),e.toBlob(e=>{e?o(e):n(new Error("Canvas is empty"))},i)},r.onerror=()=>n(new Error("Failed to load image"))})}(e.url,t,e.format),i=new File([o],e.name,{type:e.format});return{...e,file:i,url:URL.createObjectURL(i)}}));null==(o=null==(t=a.params)?void 0:t.onSave)||o.call(t,n.filter(Boolean)),null==(i=a.remove)||i.call(a)},[E,a]),O=t.useCallback(async e=>{var t,o,i;const n=null==(o=null==(t=null==a?void 0:a.params)?void 0:t.images)?void 0:o[e.index];if(n){const t={...n,id:Date.now()+e.index,index:e.index,croppedArea:e.croppedArea??n.croppedArea,zoom:e.zoom??n.zoom,crop:e.crop??n.crop,isNew:!0,isCropped:e.isCropped??n.isCropped,isDeleted:e.isDeleted??n.isDeleted};if(D(o=>{const i=[...o];return i[e.index]=t,i}),e.isNext){const t=e.index+1>=((null==(i=null==a?void 0:a.params)?void 0:i.images)??[]).length?0:e.index+1;b(t)}e.isSave&&T([t])}},[T,null==(p=null==a?void 0:a.params)?void 0:p.images]);t.useEffect(()=>{var e,t;D((null==(e=null==a?void 0:a.params)?void 0:e.images)??[]),P(((null==(t=null==a?void 0:a.params)?void 0:t.images)??[]).map(e=>e.croppedArea??null))},[null==(u=null==a?void 0:a.params)?void 0:u.images]),t.useEffect(()=>()=>{b(0),D([]),P([])},[]);const W=t.useMemo(()=>R.reduce((e,t)=>(e&&void 0!==(null==t?void 0:t.index)&&(e[t.index]={genre:t.isDeleted?"redTransparent":t.isCropped?"greenTransparent":"white",icons:t.isDeleted?[{type:"id",name:"CloseMini"}]:t.isCropped?[{type:"id",name:"TickMini"}]:[]}),e),{}),[R]),_=t.useMemo(()=>R.every(e=>(null==e?void 0:e.isDeleted)||!(null==e?void 0:e.isCropped)),[R]),I=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.button.genre)||"product"},[null==(d=a.params)?void 0:d.dialog.button.genre]),L=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.button.size)||"medium"},[null==(l=a.params)?void 0:l.dialog.button.size]),N=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.buttonDelete.genre)||"product"},[null==(h=a.params)?void 0:h.dialog.buttonDelete.genre]),F=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.button.size)||"medium"},[null==(m=a.params)?void 0:m.dialog.button.size]);return e.jsxRuntimeExports.jsxs(n.Stack,{sx:e=>{var t,o,i;return{default:{position:"relative",overflow:"hidden",aspectRatio:(null==(t=a.params)?void 0:t.imageSettings.aspect)?2*(null==(o=a.params)?void 0:o.imageSettings.aspect)+" / 2":void 0,width:"auto",maxWidth:"70dvw",height:"85dvh",borderRadius:null==(i=a.params)?void 0:i.br,backgroundColor:e.palette.whiteStandard},tablet:{maxWidth:"95dvw"}}},children:[e.jsxRuntimeExports.jsxs(o.Preview,{visible:!a.isAnimating,minTime:500,children:[e.jsxRuntimeExports.jsx(n.Stack,{sx:{default:{position:"absolute",top:0,left:0,right:0,bottom:0}},children:j&&e.jsxRuntimeExports.jsx(Y,{style:{containerStyle:{backgroundColor:M.palette.black80}},image:j.url,crop:(null==j?void 0:j.crop)??{x:0,y:0},zoom:(null==j?void 0:j.zoom)??1,aspect:null==(v=a.params)?void 0:v.imageSettings.aspect,onCropChange:e=>{O({...j,crop:e})},onZoomChange:e=>{O({...j,zoom:e})},onCropComplete:(e,t)=>{P(e=>{const o=[...e];return o[z]=t,o})}})}),e.jsxRuntimeExports.jsxs(n.Stack,{sx:{default:{position:"absolute",top:15,right:15,gap:"10px"}},children:[e.jsxRuntimeExports.jsx(o.Button,{genre:N,size:F,isHiddenBorder:!0,isRadius:!0,onClick:()=>{var e;return null==(e=a.remove)?void 0:e.call(a)},children:null==(g=a.params)?void 0:g.locale.dialogCancel}),A&&e.jsxRuntimeExports.jsx(o.Button,{genre:I,size:L,isHiddenBorder:!0,isRadius:!0,onClick:()=>T(R),isHidden:_,isDisabled:_,children:null==(f=a.params)?void 0:f.locale.dialogSave})]})]}),A&&z!==(null==(w=null==a?void 0:a.params)?void 0:w.images.length)&&e.jsxRuntimeExports.jsx(o.Button,{sx:{default:{position:"absolute",top:15,left:15}},genre:I,size:L,isHiddenBorder:!0,isWidthAsHeight:!0,isRadius:!0,isDisabled:!0,children:z+1}),e.jsxRuntimeExports.jsxs(n.Stack,{sx:e=>({default:{position:"absolute",bottom:A?5:15,left:A?5:void 0,right:A?void 0:15,width:A?"calc(100% - 10px)":"fit-content",backgroundColor:A?e.palette.whiteStandard:e.palette.transparent,padding:"10px",borderRadius:"50px",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"10px"},mobile:{borderRadius:"24px",flexDirection:"column",alignItems:"stretch",gap:"10px"}}),children:[A&&e.jsxRuntimeExports.jsx(i.Pagination,{sx:{default:{},mobile:{justifyContent:"space-between"}},lengthData:W,length:((null==(x=null==a?void 0:a.params)?void 0:x.images)??[]).length,index:z,changeIndex:e=>{b(e)},isInfinity:!0,viewQuantity:4,buttonControl:{genre:I,size:L,isRadius:!0,isWidthAsHeight:!0},buttonCount:{active:{genre:I,size:L,isRadius:!0,isPlaystationEffect:!0},inactive:{genre:"white",size:L,isRadius:!0}},locale:{next:"Next",prev:"Prev"}}),e.jsxRuntimeExports.jsxs(n.Stack,{sx:{default:{gap:"10px"},mobile:{justifyContent:"center"}},children:[A&&e.jsxRuntimeExports.jsx(o.Button,{genre:N,size:F,isHiddenBorder:!0,isRadius:!0,onClick:()=>{O({...j,isDeleted:!0,isNext:A})},children:null==(S=a.params)?void 0:S.locale.dialogDeleteImage}),e.jsxRuntimeExports.jsx(o.Button,{genre:I,size:L,isHiddenBorder:!0,isRadius:!0,onClick:()=>{O({...j,isDeleted:!1,isCropped:!0,isNext:A,isSave:!A})},children:A?null==(C=a.params)?void 0:C.locale.dialogAddImage:null==(y=a.params)?void 0:y.locale.dialogSave})]})]})]})};exports.useImageCrop=i=>{const n=t.useMemo(()=>o.KEY_SIZE_DATA[i.dialog.button.size],[i.dialog.button.size]),r=t.useMemo(()=>`${n.radius}px`,[n.radius]),[c,p]=t.useState([]),u=s.useDeepCompareMemoize(i),d=t.useMemo(()=>({propsCustom:{images:c,br:r,imageSettings:u.imageSettings,onSave:u.onSave,dialog:u.dialog,locale:u.locale},propsDialog:{borderRadius:r,padding:"0",background:"transparent"},onRemove(){p([])},content:(t,o,i)=>e.jsxRuntimeExports.jsx(K,{params:i,remove:t,isAnimating:o})}),[r,c,u.dialog,u.imageSettings,u.locale,u.onSave]),{add:l}=a.useDialog(d),h=t.useCallback(e=>{p(e),l()},[l]),m=t.useCallback(e=>{const t=Array.from(e).filter(e=>!(e.size>i.imageSettings.maxSize)||(console.warn(`File ${e.name} exceeds the allowed size of ${i.imageSettings.maxSize} bytes`),!1)).map((e,t)=>({id:Date.now()+t,file:e,url:URL.createObjectURL(e),index:t,isNew:!0,name:e.name,format:e.type}));i.refInput&&"current"in i.refInput&&i.refInput.current&&(i.refInput.current.value=""),t.length&&h(t)},[h,i.imageSettings.maxSize,i.refInput]);return{handleAdd:h,handleAddFiles:m}};
|
|
16
|
-
//# sourceMappingURL=use-BNuSnUSV.cjs.map
|