@jenesei-software/jenesei-kit-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +102 -0
- package/build/area-9NUxwBGc.cjs +2 -0
- package/build/area-9NUxwBGc.cjs.map +1 -0
- package/build/area-BnAddPtl.js +114 -0
- package/build/area-BnAddPtl.js.map +1 -0
- package/build/area-C2sWYH-e.js +47 -0
- package/build/area-C2sWYH-e.js.map +1 -0
- package/build/area-CD10k19W.cjs +27 -0
- package/build/area-CD10k19W.cjs.map +1 -0
- package/build/area-ClrrGVJG.cjs +40 -0
- package/build/area-ClrrGVJG.cjs.map +1 -0
- package/build/area-D7906bXA.cjs +2 -0
- package/build/area-D7906bXA.cjs.map +1 -0
- package/build/area-DRqAofd0.js +35 -0
- package/build/area-DRqAofd0.js.map +1 -0
- package/build/area-DfCAwCiZ.js +69 -0
- package/build/area-DfCAwCiZ.js.map +1 -0
- package/build/area-outside.cjs.js +2 -0
- package/build/area-outside.cjs.js.map +1 -0
- package/build/area-outside.d.ts +28 -0
- package/build/area-outside.es.js +5 -0
- package/build/area-outside.es.js.map +1 -0
- package/build/area-preview.cjs.js +2 -0
- package/build/area-preview.cjs.js.map +1 -0
- package/build/area-preview.d.ts +48 -0
- package/build/area-preview.es.js +7 -0
- package/build/area-preview.es.js.map +1 -0
- package/build/area-scroll.cjs.js +2 -0
- package/build/area-scroll.cjs.js.map +1 -0
- package/build/area-scroll.d.ts +58 -0
- package/build/area-scroll.es.js +6 -0
- package/build/area-scroll.es.js.map +1 -0
- package/build/area-skeleton.cjs.js +2 -0
- package/build/area-skeleton.cjs.js.map +1 -0
- package/build/area-skeleton.d.ts +64 -0
- package/build/area-skeleton.es.js +6 -0
- package/build/area-skeleton.es.js.map +1 -0
- package/build/area-smooth.cjs.js +2 -0
- package/build/area-smooth.cjs.js.map +1 -0
- package/build/area-smooth.d.ts +37 -0
- package/build/area-smooth.es.js +5 -0
- package/build/area-smooth.es.js.map +1 -0
- package/build/area.hooks-Bk04M7mk.js +26 -0
- package/build/area.hooks-Bk04M7mk.js.map +1 -0
- package/build/area.hooks-C_UKZzcb.cjs +2 -0
- package/build/area.hooks-C_UKZzcb.cjs.map +1 -0
- package/build/build-info.txt +3 -0
- package/build/component--Oo5_3xq.cjs +2 -0
- package/build/component--Oo5_3xq.cjs.map +1 -0
- package/build/component-BV_7tGiu.cjs +28 -0
- package/build/component-BV_7tGiu.cjs.map +1 -0
- package/build/component-BcHiCCC9.js +23 -0
- package/build/component-BcHiCCC9.js.map +1 -0
- package/build/component-BnI7BIp-.cjs +2 -0
- package/build/component-BnI7BIp-.cjs.map +1 -0
- package/build/component-ByY_9Ryc.js +65 -0
- package/build/component-ByY_9Ryc.js.map +1 -0
- package/build/component-C2JFFh-k.js +2372 -0
- package/build/component-C2JFFh-k.js.map +1 -0
- package/build/component-C52VCES6.cjs +247 -0
- package/build/component-C52VCES6.cjs.map +1 -0
- package/build/component-CBshLNEf.js +50 -0
- package/build/component-CBshLNEf.js.map +1 -0
- package/build/component-CFMlaYj1.js +66 -0
- package/build/component-CFMlaYj1.js.map +1 -0
- package/build/component-CuiUpH8H.js +207 -0
- package/build/component-CuiUpH8H.js.map +1 -0
- package/build/component-D1NPhRuV.cjs +90 -0
- package/build/component-D1NPhRuV.cjs.map +1 -0
- package/build/component-DZxbW_Jz.js +237 -0
- package/build/component-DZxbW_Jz.js.map +1 -0
- package/build/component-UW1VzyvB.cjs +52 -0
- package/build/component-UW1VzyvB.cjs.map +1 -0
- package/build/component-accordion.cjs.js +2 -0
- package/build/component-accordion.cjs.js.map +1 -0
- package/build/component-accordion.d.ts +94 -0
- package/build/component-accordion.es.js +10 -0
- package/build/component-accordion.es.js.map +1 -0
- package/build/component-button-group.cjs.js +2 -0
- package/build/component-button-group.cjs.js.map +1 -0
- package/build/component-button-group.d.ts +320 -0
- package/build/component-button-group.es.js +6 -0
- package/build/component-button-group.es.js.map +1 -0
- package/build/component-button.cjs.js +2 -0
- package/build/component-button.cjs.js.map +1 -0
- package/build/component-button.d.ts +347 -0
- package/build/component-button.es.js +9 -0
- package/build/component-button.es.js.map +1 -0
- package/build/component-checkbox-group.cjs.js +2 -0
- package/build/component-checkbox-group.cjs.js.map +1 -0
- package/build/component-checkbox-group.d.ts +337 -0
- package/build/component-checkbox-group.es.js +11 -0
- package/build/component-checkbox-group.es.js.map +1 -0
- package/build/component-checkbox.cjs.js +2 -0
- package/build/component-checkbox.cjs.js.map +1 -0
- package/build/component-checkbox.d.ts +342 -0
- package/build/component-checkbox.es.js +10 -0
- package/build/component-checkbox.es.js.map +1 -0
- package/build/component-date-picker.cjs.js +2 -0
- package/build/component-date-picker.cjs.js.map +1 -0
- package/build/component-date-picker.d.ts +415 -0
- package/build/component-date-picker.es.js +17 -0
- package/build/component-date-picker.es.js.map +1 -0
- package/build/component-icon.cjs.js +2 -0
- package/build/component-icon.cjs.js.map +1 -0
- package/build/component-icon.d.ts +198 -0
- package/build/component-icon.es.js +12 -0
- package/build/component-icon.es.js.map +1 -0
- package/build/component-image-button.cjs.js +2 -0
- package/build/component-image-button.cjs.js.map +1 -0
- package/build/component-image-button.d.ts +340 -0
- package/build/component-image-button.es.js +5 -0
- package/build/component-image-button.es.js.map +1 -0
- package/build/component-image-select.cjs.js +2 -0
- package/build/component-image-select.cjs.js.map +1 -0
- package/build/component-image-select.d.ts +436 -0
- package/build/component-image-select.es.js +11 -0
- package/build/component-image-select.es.js.map +1 -0
- package/build/component-image-slider.cjs.js +2 -0
- package/build/component-image-slider.cjs.js.map +1 -0
- package/build/component-image-slider.d.ts +108 -0
- package/build/component-image-slider.es.js +8 -0
- package/build/component-image-slider.es.js.map +1 -0
- package/build/component-image.cjs.js +2 -0
- package/build/component-image.cjs.js.map +1 -0
- package/build/component-image.d.ts +51 -0
- package/build/component-image.es.js +6 -0
- package/build/component-image.es.js.map +1 -0
- package/build/component-input-otp.cjs.js +2 -0
- package/build/component-input-otp.cjs.js.map +1 -0
- package/build/component-input-otp.d.ts +150 -0
- package/build/component-input-otp.es.js +8 -0
- package/build/component-input-otp.es.js.map +1 -0
- package/build/component-input.cjs.js +2 -0
- package/build/component-input.cjs.js.map +1 -0
- package/build/component-input.d.ts +226 -0
- package/build/component-input.es.js +20 -0
- package/build/component-input.es.js.map +1 -0
- package/build/component-jPZYT5iL.js +76 -0
- package/build/component-jPZYT5iL.js.map +1 -0
- package/build/component-map.cjs.js +2 -0
- package/build/component-map.cjs.js.map +1 -0
- package/build/component-map.d.ts +97 -0
- package/build/component-map.es.js +18 -0
- package/build/component-map.es.js.map +1 -0
- package/build/component-nFn_uOy_.cjs +2 -0
- package/build/component-nFn_uOy_.cjs.map +1 -0
- package/build/component-pagination.cjs.js +2 -0
- package/build/component-pagination.cjs.js.map +1 -0
- package/build/component-pagination.d.ts +321 -0
- package/build/component-pagination.es.js +6 -0
- package/build/component-pagination.es.js.map +1 -0
- package/build/component-range.cjs.js +2 -0
- package/build/component-range.cjs.js.map +1 -0
- package/build/component-range.d.ts +153 -0
- package/build/component-range.es.js +8 -0
- package/build/component-range.es.js.map +1 -0
- package/build/component-ripple.cjs.js +2 -0
- package/build/component-ripple.cjs.js.map +1 -0
- package/build/component-ripple.d.ts +45 -0
- package/build/component-ripple.es.js +12 -0
- package/build/component-ripple.es.js.map +1 -0
- package/build/component-select.cjs.js +2 -0
- package/build/component-select.cjs.js.map +1 -0
- package/build/component-select.d.ts +406 -0
- package/build/component-select.es.js +25 -0
- package/build/component-select.es.js.map +1 -0
- package/build/component-separator.cjs.js +2 -0
- package/build/component-separator.cjs.js.map +1 -0
- package/build/component-separator.d.ts +46 -0
- package/build/component-separator.es.js +6 -0
- package/build/component-separator.es.js.map +1 -0
- package/build/component-stack.cjs.js +2 -0
- package/build/component-stack.cjs.js.map +1 -0
- package/build/component-stack.d.ts +72 -0
- package/build/component-stack.es.js +8 -0
- package/build/component-stack.es.js.map +1 -0
- package/build/component-textarea.cjs.js +2 -0
- package/build/component-textarea.cjs.js.map +1 -0
- package/build/component-textarea.d.ts +131 -0
- package/build/component-textarea.es.js +12 -0
- package/build/component-textarea.es.js.map +1 -0
- package/build/component-toggle.cjs.js +2 -0
- package/build/component-toggle.cjs.js.map +1 -0
- package/build/component-toggle.d.ts +101 -0
- package/build/component-toggle.es.js +7 -0
- package/build/component-toggle.es.js.map +1 -0
- package/build/component-tooltip.cjs.js +2 -0
- package/build/component-tooltip.cjs.js.map +1 -0
- package/build/component-tooltip.d.ts +170 -0
- package/build/component-tooltip.es.js +12 -0
- package/build/component-tooltip.es.js.map +1 -0
- package/build/component-typography.cjs.js +2 -0
- package/build/component-typography.cjs.js.map +1 -0
- package/build/component-typography.d.ts +183 -0
- package/build/component-typography.es.js +10 -0
- package/build/component-typography.es.js.map +1 -0
- package/build/component-xnEaYd4a.cjs +2 -0
- package/build/component-xnEaYd4a.cjs.map +1 -0
- package/build/component.components-BAAT5GTH.js +363 -0
- package/build/component.components-BAAT5GTH.js.map +1 -0
- package/build/component.components-CaR5gfQW.cjs +16 -0
- package/build/component.components-CaR5gfQW.cjs.map +1 -0
- package/build/component.constants-BeWW8Ijx.cjs +2 -0
- package/build/component.constants-BeWW8Ijx.cjs.map +1 -0
- package/build/component.constants-D9wVZ3zy.cjs +22 -0
- package/build/component.constants-D9wVZ3zy.cjs.map +1 -0
- package/build/component.constants-DRvp5Bez.js +142 -0
- package/build/component.constants-DRvp5Bez.js.map +1 -0
- package/build/component.constants-DbNhxh0k.js +759 -0
- package/build/component.constants-DbNhxh0k.js.map +1 -0
- package/build/component.styles-B0L4jbOO.js +59 -0
- package/build/component.styles-B0L4jbOO.js.map +1 -0
- package/build/component.styles-B1DIataj.cjs +10 -0
- package/build/component.styles-B1DIataj.cjs.map +1 -0
- package/build/component.styles-BFwkFWkd.cjs +39 -0
- package/build/component.styles-BFwkFWkd.cjs.map +1 -0
- package/build/component.styles-BSEA2Dqn.cjs +8 -0
- package/build/component.styles-BSEA2Dqn.cjs.map +1 -0
- package/build/component.styles-BapdQNhL.js +2166 -0
- package/build/component.styles-BapdQNhL.js.map +1 -0
- package/build/component.styles-BfvB83xM.cjs +22 -0
- package/build/component.styles-BfvB83xM.cjs.map +1 -0
- package/build/component.styles-Bn6ylF83.js +859 -0
- package/build/component.styles-Bn6ylF83.js.map +1 -0
- package/build/component.styles-BsZIuwWJ.cjs +140 -0
- package/build/component.styles-BsZIuwWJ.cjs.map +1 -0
- package/build/component.styles-C6LohBfF.js +81 -0
- package/build/component.styles-C6LohBfF.js.map +1 -0
- package/build/component.styles-CEBh8X5q.js +20 -0
- package/build/component.styles-CEBh8X5q.js.map +1 -0
- package/build/component.styles-CPsxMKVK.cjs +73 -0
- package/build/component.styles-CPsxMKVK.cjs.map +1 -0
- package/build/component.styles-CTo5NC52.js +71 -0
- package/build/component.styles-CTo5NC52.js.map +1 -0
- package/build/component.styles-CV7jTFCg.js +758 -0
- package/build/component.styles-CV7jTFCg.js.map +1 -0
- package/build/component.styles-CVBpx4fw.js +474 -0
- package/build/component.styles-CVBpx4fw.js.map +1 -0
- package/build/component.styles-CZu2m0O4.cjs +21 -0
- package/build/component.styles-CZu2m0O4.cjs.map +1 -0
- package/build/component.styles-CmBcHREH.cjs +13 -0
- package/build/component.styles-CmBcHREH.cjs.map +1 -0
- package/build/component.styles-CmEFZfA5.js +120 -0
- package/build/component.styles-CmEFZfA5.js.map +1 -0
- package/build/component.styles-DHIw8p8e.cjs +158 -0
- package/build/component.styles-DHIw8p8e.cjs.map +1 -0
- package/build/component.styles-DOPCUXcr.js +158 -0
- package/build/component.styles-DOPCUXcr.js.map +1 -0
- package/build/component.styles-Dj3h7jd9.cjs +165 -0
- package/build/component.styles-Dj3h7jd9.cjs.map +1 -0
- package/build/component.styles-Do1NYZEO.js +86 -0
- package/build/component.styles-Do1NYZEO.js.map +1 -0
- package/build/component.styles-Dok17vPl.js +126 -0
- package/build/component.styles-Dok17vPl.js.map +1 -0
- package/build/component.styles-Dpg-__rn.cjs +43 -0
- package/build/component.styles-Dpg-__rn.cjs.map +1 -0
- package/build/component.styles-DpkFoWEh.cjs +81 -0
- package/build/component.styles-DpkFoWEh.cjs.map +1 -0
- package/build/component.styles-DqsBDAEo.js +202 -0
- package/build/component.styles-DqsBDAEo.js.map +1 -0
- package/build/component.styles-Du2y0R4W.js +177 -0
- package/build/component.styles-Du2y0R4W.js.map +1 -0
- package/build/component.styles-DxeG9Opm.cjs +47 -0
- package/build/component.styles-DxeG9Opm.cjs.map +1 -0
- package/build/component.styles-DyGfo9t0.cjs +32 -0
- package/build/component.styles-DyGfo9t0.cjs.map +1 -0
- package/build/component.styles-RkQwTlwG.js +170 -0
- package/build/component.styles-RkQwTlwG.js.map +1 -0
- package/build/component.styles-ZtwHuL4x.cjs +75 -0
- package/build/component.styles-ZtwHuL4x.cjs.map +1 -0
- package/build/component.types-D05KdxnZ.js +132 -0
- package/build/component.types-D05KdxnZ.js.map +1 -0
- package/build/component.types-gy5Q9qHX.cjs +2 -0
- package/build/component.types-gy5Q9qHX.cjs.map +1 -0
- package/build/consts.cjs.js +2 -0
- package/build/consts.cjs.js.map +1 -0
- package/build/consts.d.ts +86 -0
- package/build/consts.es.js +177 -0
- package/build/consts.es.js.map +1 -0
- package/build/context-app.cjs.js +2 -0
- package/build/context-app.cjs.js.map +1 -0
- package/build/context-app.d.ts +223 -0
- package/build/context-app.es.js +20 -0
- package/build/context-app.es.js.map +1 -0
- package/build/context-cookie.cjs.js +2 -0
- package/build/context-cookie.cjs.js.map +1 -0
- package/build/context-cookie.d.ts +67 -0
- package/build/context-cookie.es.js +9 -0
- package/build/context-cookie.es.js.map +1 -0
- package/build/context-dialog.cjs.js +2 -0
- package/build/context-dialog.cjs.js.map +1 -0
- package/build/context-dialog.d.ts +92 -0
- package/build/context-dialog.es.js +18 -0
- package/build/context-dialog.es.js.map +1 -0
- package/build/context-geolocation.cjs.js +2 -0
- package/build/context-geolocation.cjs.js.map +1 -0
- package/build/context-geolocation.d.ts +22 -0
- package/build/context-geolocation.es.js +7 -0
- package/build/context-geolocation.es.js.map +1 -0
- package/build/context-local-storage.cjs.js +2 -0
- package/build/context-local-storage.cjs.js.map +1 -0
- package/build/context-local-storage.d.ts +54 -0
- package/build/context-local-storage.es.js +9 -0
- package/build/context-local-storage.es.js.map +1 -0
- package/build/context-permission.cjs.js +2 -0
- package/build/context-permission.cjs.js.map +1 -0
- package/build/context-permission.d.ts +28 -0
- package/build/context-permission.es.js +9 -0
- package/build/context-permission.es.js.map +1 -0
- package/build/context-screen-width.cjs.js +2 -0
- package/build/context-screen-width.cjs.js.map +1 -0
- package/build/context-screen-width.d.ts +34 -0
- package/build/context-screen-width.es.js +7 -0
- package/build/context-screen-width.es.js.map +1 -0
- package/build/context-sonner.cjs.js +2 -0
- package/build/context-sonner.cjs.js.map +1 -0
- package/build/context-sonner.d.ts +449 -0
- package/build/context-sonner.es.js +21 -0
- package/build/context-sonner.es.js.map +1 -0
- package/build/context.constants-B29-_8v3.cjs +32 -0
- package/build/context.constants-B29-_8v3.cjs.map +1 -0
- package/build/context.constants-BaD7xj_m.cjs +100 -0
- package/build/context.constants-BaD7xj_m.cjs.map +1 -0
- package/build/context.constants-CsZRZ7gH.js +228 -0
- package/build/context.constants-CsZRZ7gH.js.map +1 -0
- package/build/context.constants-DqYjo5m4.js +375 -0
- package/build/context.constants-DqYjo5m4.js.map +1 -0
- package/build/context.functions-80N-5MqM.cjs +2 -0
- package/build/context.functions-80N-5MqM.cjs.map +1 -0
- package/build/context.functions-B8FDl7nJ.js +14 -0
- package/build/context.functions-B8FDl7nJ.js.map +1 -0
- package/build/context.functions-BD15C8_y.js +128 -0
- package/build/context.functions-BD15C8_y.js.map +1 -0
- package/build/context.functions-CQ9GerPb.js +147 -0
- package/build/context.functions-CQ9GerPb.js.map +1 -0
- package/build/context.functions-ar41xFVo.cjs +2 -0
- package/build/context.functions-ar41xFVo.cjs.map +1 -0
- package/build/context.functions-ohI9H54j.cjs +2 -0
- package/build/context.functions-ohI9H54j.cjs.map +1 -0
- package/build/context.hooks-7ydA7mGj.js +117 -0
- package/build/context.hooks-7ydA7mGj.js.map +1 -0
- package/build/context.hooks-BIsapq-0.cjs +2 -0
- package/build/context.hooks-BIsapq-0.cjs.map +1 -0
- package/build/context.hooks-BmwyZ1p3.js +68 -0
- package/build/context.hooks-BmwyZ1p3.js.map +1 -0
- package/build/context.hooks-BzMTkJNv.js +52 -0
- package/build/context.hooks-BzMTkJNv.js.map +1 -0
- package/build/context.hooks-CTi-CVKx.cjs +72 -0
- package/build/context.hooks-CTi-CVKx.cjs.map +1 -0
- package/build/context.hooks-D13tbrva.cjs +2 -0
- package/build/context.hooks-D13tbrva.cjs.map +1 -0
- package/build/context.hooks-gyzZSaVi.js +527 -0
- package/build/context.hooks-gyzZSaVi.js.map +1 -0
- package/build/context.hooks-u408Pxw8.cjs +2 -0
- package/build/context.hooks-u408Pxw8.cjs.map +1 -0
- package/build/functions.cjs.js +2 -0
- package/build/functions.cjs.js.map +1 -0
- package/build/functions.d.ts +22 -0
- package/build/functions.es.js +47 -0
- package/build/functions.es.js.map +1 -0
- package/build/hooks-use-debounced-callback.cjs.js +2 -0
- package/build/hooks-use-debounced-callback.cjs.js.map +1 -0
- package/build/hooks-use-debounced-callback.d.ts +3 -0
- package/build/hooks-use-debounced-callback.es.js +5 -0
- package/build/hooks-use-debounced-callback.es.js.map +1 -0
- package/build/hooks-use-deep-compare-memoize.cjs.js +2 -0
- package/build/hooks-use-deep-compare-memoize.cjs.js.map +1 -0
- package/build/hooks-use-deep-compare-memoize.d.ts +3 -0
- package/build/hooks-use-deep-compare-memoize.es.js +5 -0
- package/build/hooks-use-deep-compare-memoize.es.js.map +1 -0
- package/build/index.cjs.js +2 -0
- package/build/index.cjs.js.map +1 -0
- package/build/index.d.ts +2540 -0
- package/build/index.es.js +329 -0
- package/build/index.es.js.map +1 -0
- package/build/jsx-runtime-BcGej2Kr.cjs +11 -0
- package/build/jsx-runtime-BcGej2Kr.cjs.map +1 -0
- package/build/jsx-runtime-BrDlu8eK.js +320 -0
- package/build/jsx-runtime-BrDlu8eK.js.map +1 -0
- package/build/motion-CIQfrLky.js +85 -0
- package/build/motion-CIQfrLky.js.map +1 -0
- package/build/motion-DgB7M2Hn.cjs +2 -0
- package/build/motion-DgB7M2Hn.cjs.map +1 -0
- package/build/style-CEGJOjRW.js +107 -0
- package/build/style-CEGJOjRW.js.map +1 -0
- package/build/style-CtGd1JVB.cjs +32 -0
- package/build/style-CtGd1JVB.cjs.map +1 -0
- package/build/style-DeAgDHyI.js +52 -0
- package/build/style-DeAgDHyI.js.map +1 -0
- package/build/style-Dm74EPGE.cjs +87 -0
- package/build/style-Dm74EPGE.cjs.map +1 -0
- package/build/style-add.cjs.js +2 -0
- package/build/style-add.cjs.js.map +1 -0
- package/build/style-add.d.ts +21 -0
- package/build/style-add.es.js +13 -0
- package/build/style-add.es.js.map +1 -0
- package/build/style-error.cjs.js +2 -0
- package/build/style-error.cjs.js.map +1 -0
- package/build/style-error.d.ts +56 -0
- package/build/style-error.es.js +7 -0
- package/build/style-error.es.js.map +1 -0
- package/build/style-fRZ6xrVp.cjs +10 -0
- package/build/style-fRZ6xrVp.cjs.map +1 -0
- package/build/style-motion.cjs.js +2 -0
- package/build/style-motion.cjs.js.map +1 -0
- package/build/style-motion.d.ts +20 -0
- package/build/style-motion.es.js +8 -0
- package/build/style-motion.es.js.map +1 -0
- package/build/style-plT9Ah7t.js +33 -0
- package/build/style-plT9Ah7t.js.map +1 -0
- package/build/style-sx.cjs.js +2 -0
- package/build/style-sx.cjs.js.map +1 -0
- package/build/style-sx.d.ts +31 -0
- package/build/style-sx.es.js +5 -0
- package/build/style-sx.es.js.map +1 -0
- package/build/style-theme.cjs.js +2 -0
- package/build/style-theme.cjs.js.map +1 -0
- package/build/style-theme.d.ts +263 -0
- package/build/style-theme.es.js +10 -0
- package/build/style-theme.es.js.map +1 -0
- package/build/style.css +1 -0
- package/build/theme.global-D6XU05Et.cjs +169 -0
- package/build/theme.global-D6XU05Et.cjs.map +1 -0
- package/build/theme.global-bN9HlSWE.js +1080 -0
- package/build/theme.global-bN9HlSWE.js.map +1 -0
- package/build/types.cjs.js +2 -0
- package/build/types.cjs.js.map +1 -0
- package/build/types.d.ts +27 -0
- package/build/types.es.js +2 -0
- package/build/types.es.js.map +1 -0
- package/build/use-BVj4dgbW.js +1547 -0
- package/build/use-BVj4dgbW.js.map +1 -0
- package/build/use-BhofoOgk.cjs +16 -0
- package/build/use-BhofoOgk.cjs.map +1 -0
- package/build/use-Bp8UVw4Y.js +16 -0
- package/build/use-Bp8UVw4Y.js.map +1 -0
- package/build/use-C1l0O0Qo.cjs +2 -0
- package/build/use-C1l0O0Qo.cjs.map +1 -0
- package/build/use-DT0XgvJT.js +25 -0
- package/build/use-DT0XgvJT.js.map +1 -0
- package/build/use-IhzeVumv.cjs +2 -0
- package/build/use-IhzeVumv.cjs.map +1 -0
- package/package.json +360 -0
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-BrDlu8eK.js";
|
|
2
|
+
import { motion, AnimatePresence } from "framer-motion";
|
|
3
|
+
import { useMemo, useState, useCallback, useEffect } from "react";
|
|
4
|
+
import { c as Button } from "./component-DZxbW_Jz.js";
|
|
5
|
+
import { I as Image } from "./component.styles-Do1NYZEO.js";
|
|
6
|
+
import styled from "styled-components";
|
|
7
|
+
import { b as Stack, c as StackMotion } from "./component-jPZYT5iL.js";
|
|
8
|
+
import { j as Typography } from "./component-C2JFFh-k.js";
|
|
9
|
+
import { a as useDialog } from "./context.constants-CsZRZ7gH.js";
|
|
10
|
+
import { K as KEY_SIZE_DATA } from "./theme.global-bN9HlSWE.js";
|
|
11
|
+
import { I as Icon } from "./component.styles-BapdQNhL.js";
|
|
12
|
+
const SliderImage = styled(motion.div)`
|
|
13
|
+
display: flex;
|
|
14
|
+
position: absolute;
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
touch-action: pan-y;
|
|
18
|
+
&:hover {
|
|
19
|
+
cursor: grab;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:active {
|
|
23
|
+
cursor: grabbing;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const SliderDot = styled(motion.div)`
|
|
27
|
+
width: 6px;
|
|
28
|
+
height: 6px;
|
|
29
|
+
background-color: ${(props) => props.theme.palette.whiteStandard};
|
|
30
|
+
border-radius: 5px;
|
|
31
|
+
opacity: 0.8;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
`;
|
|
34
|
+
const useImageSlider = (props) => {
|
|
35
|
+
var _a;
|
|
36
|
+
const { onIndexChange } = props;
|
|
37
|
+
const size = useMemo(() => KEY_SIZE_DATA[props.size], [props.size]);
|
|
38
|
+
const br = useMemo(() => `${size.radius}px`, [size.radius]);
|
|
39
|
+
const images = useMemo(() => props.images, [props.images]);
|
|
40
|
+
const [{ activeImageId, direction }, setActiveImage] = useState({
|
|
41
|
+
activeImageId: ((_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.id) ?? null,
|
|
42
|
+
direction: 0
|
|
43
|
+
});
|
|
44
|
+
const isLengthOne = useMemo(() => (images == null ? void 0 : images.length) === 1, [images]);
|
|
45
|
+
const isLengthZero = useMemo(() => (images == null ? void 0 : images.length) === 0, [images]);
|
|
46
|
+
const activeImageIndex = useMemo(() => images.findIndex((img) => img.id === activeImageId), [activeImageId, images]);
|
|
47
|
+
const swipeToImage = useCallback(
|
|
48
|
+
(swipeDirection) => {
|
|
49
|
+
const currentIndex = images.findIndex((img) => img.id === activeImageId);
|
|
50
|
+
const nextIndex = (currentIndex + swipeDirection + images.length) % images.length;
|
|
51
|
+
setActiveImage({ activeImageId: images[nextIndex].id, direction: swipeDirection });
|
|
52
|
+
},
|
|
53
|
+
[activeImageId, images]
|
|
54
|
+
);
|
|
55
|
+
const dragEndHandler = useCallback(
|
|
56
|
+
(dragInfo) => {
|
|
57
|
+
const { offset, velocity } = dragInfo;
|
|
58
|
+
const swipeThreshold = 50;
|
|
59
|
+
const swipePower = Math.abs(offset.x) * velocity.x;
|
|
60
|
+
if (swipePower > 500 || offset.x > swipeThreshold) {
|
|
61
|
+
swipeToImage(-1);
|
|
62
|
+
} else if (swipePower < -500 || offset.x < -swipeThreshold) {
|
|
63
|
+
swipeToImage(1);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
[swipeToImage]
|
|
67
|
+
);
|
|
68
|
+
const skipToImage = useCallback(
|
|
69
|
+
(imageId) => {
|
|
70
|
+
const currentIndex = images.findIndex((img) => img.id === activeImageId);
|
|
71
|
+
const newIndex = images.findIndex((img) => img.id === imageId);
|
|
72
|
+
if (newIndex === -1 || newIndex === currentIndex) return;
|
|
73
|
+
const direction2 = newIndex > currentIndex ? 1 : -1;
|
|
74
|
+
setActiveImage({ activeImageId: imageId, direction: direction2 });
|
|
75
|
+
},
|
|
76
|
+
[activeImageId, images]
|
|
77
|
+
);
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (activeImageId) onIndexChange == null ? void 0 : onIndexChange(activeImageId);
|
|
80
|
+
}, [activeImageId, onIndexChange]);
|
|
81
|
+
const { add } = useDialog({
|
|
82
|
+
br,
|
|
83
|
+
dragEndHandler,
|
|
84
|
+
images,
|
|
85
|
+
children: props.children,
|
|
86
|
+
activeImageIndex,
|
|
87
|
+
activeImageId,
|
|
88
|
+
swipeToImage,
|
|
89
|
+
skipToImage,
|
|
90
|
+
direction,
|
|
91
|
+
genre: props.genre,
|
|
92
|
+
size: props.size,
|
|
93
|
+
propsDialog: {
|
|
94
|
+
borderRadius: br,
|
|
95
|
+
padding: "0",
|
|
96
|
+
background: "whiteStandard"
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
const handleAdd = useCallback(() => {
|
|
100
|
+
add({
|
|
101
|
+
content: (params, remove) => {
|
|
102
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
103
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
104
|
+
Stack,
|
|
105
|
+
{
|
|
106
|
+
sx: {
|
|
107
|
+
default: {
|
|
108
|
+
position: "relative",
|
|
109
|
+
overflow: "hidden",
|
|
110
|
+
aspectRatio: `${props.imageSettings.aspect * 2} / 2`,
|
|
111
|
+
width: "auto",
|
|
112
|
+
maxWidth: "70dvw",
|
|
113
|
+
height: "85dvh",
|
|
114
|
+
borderRadius: params == null ? void 0 : params.br
|
|
115
|
+
},
|
|
116
|
+
tablet: {
|
|
117
|
+
maxWidth: "95dvw"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { initial: false, custom: params == null ? void 0 : params.direction, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
122
|
+
SliderImage,
|
|
123
|
+
{
|
|
124
|
+
style: {
|
|
125
|
+
overflow: "hidden",
|
|
126
|
+
borderRadius: params == null ? void 0 : params.br
|
|
127
|
+
},
|
|
128
|
+
custom: params == null ? void 0 : params.direction,
|
|
129
|
+
variants: sliderVariants$1,
|
|
130
|
+
initial: "initial",
|
|
131
|
+
animate: "active",
|
|
132
|
+
exit: "exit",
|
|
133
|
+
transition: sliderTransition$1,
|
|
134
|
+
...!isLengthOne ? {
|
|
135
|
+
drag: "x",
|
|
136
|
+
dragConstraints: { left: 0, right: 0 },
|
|
137
|
+
dragElastic: 0.5,
|
|
138
|
+
onDragEnd: (_, dragInfo) => params == null ? void 0 : params.dragEndHandler(dragInfo)
|
|
139
|
+
} : {},
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
142
|
+
Image,
|
|
143
|
+
{
|
|
144
|
+
sxStack: (theme) => ({
|
|
145
|
+
default: {
|
|
146
|
+
width: "100%",
|
|
147
|
+
height: "100%",
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
justifyContent: "center",
|
|
150
|
+
backgroundColor: theme.palette.black10,
|
|
151
|
+
position: "absolute",
|
|
152
|
+
pointerEvents: "none"
|
|
153
|
+
}
|
|
154
|
+
}),
|
|
155
|
+
isShowBeforeImage: true,
|
|
156
|
+
sxImage: {
|
|
157
|
+
default: {
|
|
158
|
+
objectFit: "contain"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
alt: (_b = (_a2 = (params == null ? void 0 : params.images) ?? []) == null ? void 0 : _a2[(params == null ? void 0 : params.activeImageIndex) ?? 0]) == null ? void 0 : _b.imageSrc,
|
|
162
|
+
src: (_d = (_c = (params == null ? void 0 : params.images) ?? []) == null ? void 0 : _c[(params == null ? void 0 : params.activeImageIndex) ?? 0]) == null ? void 0 : _d.imageSrc,
|
|
163
|
+
componentFallback: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
164
|
+
Typography,
|
|
165
|
+
{
|
|
166
|
+
sx: {
|
|
167
|
+
default: {
|
|
168
|
+
variant: "h6"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
children: props.locales.failedToLoad
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
(_f = (_e = (params == null ? void 0 : params.images) ?? []) == null ? void 0 : _e[(params == null ? void 0 : params.activeImageIndex) ?? 0]) == null ? void 0 : _f.children
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
params == null ? void 0 : params.activeImageId
|
|
180
|
+
) }),
|
|
181
|
+
typeof (params == null ? void 0 : params.children) === "function" ? (_g = params == null ? void 0 : params.children) == null ? void 0 : _g.call(params, { isDialog: true }) : params == null ? void 0 : params.children,
|
|
182
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
183
|
+
Button,
|
|
184
|
+
{
|
|
185
|
+
sx: {
|
|
186
|
+
default: {
|
|
187
|
+
position: "absolute",
|
|
188
|
+
bottom: 15,
|
|
189
|
+
right: 15
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
genre: (params == null ? void 0 : params.genre) ?? "product",
|
|
193
|
+
size: (params == null ? void 0 : params.size) ?? "medium",
|
|
194
|
+
icons: [
|
|
195
|
+
{
|
|
196
|
+
type: "id",
|
|
197
|
+
name: "Arrow4"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
isWidthAsHeight: true,
|
|
201
|
+
isHiddenBorder: true,
|
|
202
|
+
isRadius: true,
|
|
203
|
+
onClick: () => remove == null ? void 0 : remove()
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
!isLengthOne ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
207
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
208
|
+
Stack,
|
|
209
|
+
{
|
|
210
|
+
sx: {
|
|
211
|
+
default: {
|
|
212
|
+
position: "absolute",
|
|
213
|
+
bottom: 15,
|
|
214
|
+
left: 15,
|
|
215
|
+
gap: "8px"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
220
|
+
Button,
|
|
221
|
+
{
|
|
222
|
+
genre: (params == null ? void 0 : params.genre) ?? "product",
|
|
223
|
+
size: (params == null ? void 0 : params.size) ?? "medium",
|
|
224
|
+
icons: [
|
|
225
|
+
{
|
|
226
|
+
type: "id",
|
|
227
|
+
name: "Arrow4",
|
|
228
|
+
turn: 90
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
isWidthAsHeight: true,
|
|
232
|
+
isHiddenBorder: true,
|
|
233
|
+
isPlaystationEffect: true,
|
|
234
|
+
isRadius: true,
|
|
235
|
+
onClick: () => {
|
|
236
|
+
var _a3;
|
|
237
|
+
return (_a3 = params == null ? void 0 : params.swipeToImage) == null ? void 0 : _a3.call(params, -1);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
242
|
+
Button,
|
|
243
|
+
{
|
|
244
|
+
genre: (params == null ? void 0 : params.genre) ?? "product",
|
|
245
|
+
size: (params == null ? void 0 : params.size) ?? "medium",
|
|
246
|
+
icons: [
|
|
247
|
+
{
|
|
248
|
+
type: "id",
|
|
249
|
+
name: "Arrow4",
|
|
250
|
+
turn: -90
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
isWidthAsHeight: true,
|
|
254
|
+
isHiddenBorder: true,
|
|
255
|
+
isPlaystationEffect: true,
|
|
256
|
+
isRadius: true,
|
|
257
|
+
onClick: () => {
|
|
258
|
+
var _a3;
|
|
259
|
+
return (_a3 = params == null ? void 0 : params.swipeToImage) == null ? void 0 : _a3.call(params, 1);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
)
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
267
|
+
Stack,
|
|
268
|
+
{
|
|
269
|
+
sx: {
|
|
270
|
+
default: {
|
|
271
|
+
position: "absolute",
|
|
272
|
+
bottom: 15,
|
|
273
|
+
left: "50%",
|
|
274
|
+
transform: "translateX(-50%)",
|
|
275
|
+
gap: "4px"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
children: (_h = (params == null ? void 0 : params.images) ?? []) == null ? void 0 : _h.map((i) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
279
|
+
SliderDot,
|
|
280
|
+
{
|
|
281
|
+
onClick: () => {
|
|
282
|
+
var _a3;
|
|
283
|
+
return (_a3 = params == null ? void 0 : params.skipToImage) == null ? void 0 : _a3.call(params, i.id);
|
|
284
|
+
},
|
|
285
|
+
initial: false,
|
|
286
|
+
animate: {
|
|
287
|
+
scale: (params == null ? void 0 : params.activeImageId) === i.id ? 1.5 : 1,
|
|
288
|
+
opacity: (params == null ? void 0 : params.activeImageId) === i.id ? 1 : 0.5
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
i.id
|
|
292
|
+
))
|
|
293
|
+
}
|
|
294
|
+
)
|
|
295
|
+
] }) : null
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}, [add, isLengthOne, props.imageSettings.aspect, props.locales.failedToLoad]);
|
|
302
|
+
return {
|
|
303
|
+
isLengthZero,
|
|
304
|
+
direction,
|
|
305
|
+
activeImageId,
|
|
306
|
+
isLengthOne,
|
|
307
|
+
dragEndHandler,
|
|
308
|
+
activeImageIndex,
|
|
309
|
+
swipeToImage,
|
|
310
|
+
skipToImage,
|
|
311
|
+
handleAdd
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
const sliderVariants$1 = {
|
|
315
|
+
initial: (direction) => ({
|
|
316
|
+
x: direction > 0 ? "100%" : "-100%",
|
|
317
|
+
scale: 1,
|
|
318
|
+
opacity: 0
|
|
319
|
+
}),
|
|
320
|
+
active: { x: 0, scale: 1, opacity: 1 },
|
|
321
|
+
exit: (direction) => ({
|
|
322
|
+
x: direction > 0 ? "-100%" : "100%",
|
|
323
|
+
scale: 1,
|
|
324
|
+
opacity: 0.2
|
|
325
|
+
})
|
|
326
|
+
};
|
|
327
|
+
const sliderTransition$1 = {
|
|
328
|
+
duration: 0.3,
|
|
329
|
+
ease: [0.56, 0.03, 0.12, 1.04]
|
|
330
|
+
};
|
|
331
|
+
const ImageSlider = (props) => {
|
|
332
|
+
var _a, _b, _c, _d;
|
|
333
|
+
const { onIndexChange } = props;
|
|
334
|
+
const images = useMemo(() => props.images, [props.images]);
|
|
335
|
+
const size = useMemo(() => KEY_SIZE_DATA[props.size], [props.size]);
|
|
336
|
+
const br = useMemo(() => `${size.radius}px`, [size.radius]);
|
|
337
|
+
const {
|
|
338
|
+
isLengthZero,
|
|
339
|
+
direction,
|
|
340
|
+
activeImageId,
|
|
341
|
+
isLengthOne,
|
|
342
|
+
dragEndHandler,
|
|
343
|
+
activeImageIndex,
|
|
344
|
+
swipeToImage,
|
|
345
|
+
skipToImage,
|
|
346
|
+
handleAdd
|
|
347
|
+
} = useImageSlider({
|
|
348
|
+
genre: props.genre,
|
|
349
|
+
size: props.size,
|
|
350
|
+
images,
|
|
351
|
+
imageSettings: props.imageSettings,
|
|
352
|
+
locales: props.locales,
|
|
353
|
+
onIndexChange,
|
|
354
|
+
children: props.children
|
|
355
|
+
});
|
|
356
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
357
|
+
StackMotion,
|
|
358
|
+
{
|
|
359
|
+
...props.propsStack,
|
|
360
|
+
sx: (theme) => {
|
|
361
|
+
var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i;
|
|
362
|
+
return {
|
|
363
|
+
...(_a2 = props.propsStack) == null ? void 0 : _a2.sx,
|
|
364
|
+
default: {
|
|
365
|
+
borderRadius: br,
|
|
366
|
+
flexDirection: "column",
|
|
367
|
+
alignItems: "center",
|
|
368
|
+
overflow: "hidden",
|
|
369
|
+
width: "auto",
|
|
370
|
+
maxWidth: "70dvw",
|
|
371
|
+
height: "85dvh",
|
|
372
|
+
...((_b2 = props.propsStack) == null ? void 0 : _b2.sx) ? typeof ((_c2 = props.propsStack) == null ? void 0 : _c2.sx) === "function" ? (_d2 = props.propsStack) == null ? void 0 : _d2.sx(theme).default : (_e = props.propsStack) == null ? void 0 : _e.sx.default : {}
|
|
373
|
+
},
|
|
374
|
+
tablet: {
|
|
375
|
+
maxWidth: "95dvw",
|
|
376
|
+
...((_f = props.propsStack) == null ? void 0 : _f.sx) ? typeof ((_g = props.propsStack) == null ? void 0 : _g.sx) === "function" ? (_h = props.propsStack) == null ? void 0 : _h.sx(theme).tablet : (_i = props.propsStack) == null ? void 0 : _i.sx.tablet : {}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
},
|
|
380
|
+
children: props.isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
381
|
+
Stack,
|
|
382
|
+
{
|
|
383
|
+
sx: {
|
|
384
|
+
default: {
|
|
385
|
+
width: "100%",
|
|
386
|
+
height: "100%",
|
|
387
|
+
position: "relative",
|
|
388
|
+
overflow: "hidden",
|
|
389
|
+
display: "flex",
|
|
390
|
+
alignItems: "center",
|
|
391
|
+
justifyContent: "center"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { size: "large", type: "loading", primaryColor: "blueFocus", name: "Line" })
|
|
395
|
+
}
|
|
396
|
+
) : !isLengthZero ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
397
|
+
Stack,
|
|
398
|
+
{
|
|
399
|
+
sx: {
|
|
400
|
+
default: {
|
|
401
|
+
width: "100%",
|
|
402
|
+
height: "100%",
|
|
403
|
+
position: "relative",
|
|
404
|
+
overflow: "hidden"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
children: [
|
|
408
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { initial: false, custom: direction, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
409
|
+
SliderImage,
|
|
410
|
+
{
|
|
411
|
+
style: {
|
|
412
|
+
overflow: "hidden",
|
|
413
|
+
borderRadius: br
|
|
414
|
+
},
|
|
415
|
+
custom: direction,
|
|
416
|
+
variants: sliderVariants,
|
|
417
|
+
initial: "initial",
|
|
418
|
+
animate: "active",
|
|
419
|
+
exit: "exit",
|
|
420
|
+
transition: sliderTransition,
|
|
421
|
+
...!isLengthOne ? {
|
|
422
|
+
drag: "x",
|
|
423
|
+
dragConstraints: { left: 0, right: 0 },
|
|
424
|
+
dragElastic: 0.5,
|
|
425
|
+
onDragEnd: (_, dragInfo) => dragEndHandler(dragInfo)
|
|
426
|
+
} : {},
|
|
427
|
+
children: [
|
|
428
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
429
|
+
Image,
|
|
430
|
+
{
|
|
431
|
+
sxStack: (theme) => ({
|
|
432
|
+
default: {
|
|
433
|
+
width: "100%",
|
|
434
|
+
height: "100%",
|
|
435
|
+
alignItems: "center",
|
|
436
|
+
justifyContent: "center",
|
|
437
|
+
backgroundColor: theme.palette.black10,
|
|
438
|
+
position: "absolute",
|
|
439
|
+
pointerEvents: "none"
|
|
440
|
+
}
|
|
441
|
+
}),
|
|
442
|
+
alt: (_a = images[activeImageIndex]) == null ? void 0 : _a.imageSrc,
|
|
443
|
+
src: (_b = images[activeImageIndex]) == null ? void 0 : _b.imageSrc,
|
|
444
|
+
componentFallback: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
445
|
+
Typography,
|
|
446
|
+
{
|
|
447
|
+
sx: {
|
|
448
|
+
default: {
|
|
449
|
+
variant: "h6"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
children: props.locales.failedToLoad
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
}
|
|
456
|
+
),
|
|
457
|
+
(_c = images[activeImageIndex]) == null ? void 0 : _c.children
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
activeImageId
|
|
461
|
+
) }),
|
|
462
|
+
typeof (props == null ? void 0 : props.children) === "function" ? (_d = props == null ? void 0 : props.children) == null ? void 0 : _d.call(props, { isDialog: false }) : props == null ? void 0 : props.children,
|
|
463
|
+
!isLengthOne && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
464
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
465
|
+
Button,
|
|
466
|
+
{
|
|
467
|
+
sx: {
|
|
468
|
+
default: {
|
|
469
|
+
position: "absolute",
|
|
470
|
+
top: "50%",
|
|
471
|
+
left: 5,
|
|
472
|
+
transform: "translateY(-50%)"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
genre: props.genre,
|
|
476
|
+
size: props.size,
|
|
477
|
+
icons: [
|
|
478
|
+
{
|
|
479
|
+
type: "id",
|
|
480
|
+
name: "Arrow4",
|
|
481
|
+
turn: 90
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
isWidthAsHeight: true,
|
|
485
|
+
isHiddenBorder: true,
|
|
486
|
+
isRadius: true,
|
|
487
|
+
onClick: () => swipeToImage(-1)
|
|
488
|
+
}
|
|
489
|
+
),
|
|
490
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
491
|
+
Button,
|
|
492
|
+
{
|
|
493
|
+
sx: {
|
|
494
|
+
default: {
|
|
495
|
+
position: "absolute",
|
|
496
|
+
top: "50%",
|
|
497
|
+
right: 5,
|
|
498
|
+
transform: "translateY(-50%)"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
genre: props.genre,
|
|
502
|
+
size: props.size,
|
|
503
|
+
icons: [
|
|
504
|
+
{
|
|
505
|
+
type: "id",
|
|
506
|
+
name: "Arrow4",
|
|
507
|
+
turn: -90
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
isWidthAsHeight: true,
|
|
511
|
+
isHiddenBorder: true,
|
|
512
|
+
isRadius: true,
|
|
513
|
+
onClick: () => swipeToImage(1)
|
|
514
|
+
}
|
|
515
|
+
),
|
|
516
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
517
|
+
Stack,
|
|
518
|
+
{
|
|
519
|
+
sx: {
|
|
520
|
+
default: {
|
|
521
|
+
position: "absolute",
|
|
522
|
+
bottom: 5,
|
|
523
|
+
left: "50%",
|
|
524
|
+
transform: "translateX(-50%)",
|
|
525
|
+
gap: "4px"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
children: images.map((i) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
529
|
+
SliderDot,
|
|
530
|
+
{
|
|
531
|
+
onClick: () => skipToImage(i.id),
|
|
532
|
+
initial: false,
|
|
533
|
+
animate: {
|
|
534
|
+
scale: activeImageId === i.id ? 1.5 : 1,
|
|
535
|
+
opacity: activeImageId === i.id ? 1 : 0.5
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
i.id
|
|
539
|
+
))
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
] }),
|
|
543
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
544
|
+
Button,
|
|
545
|
+
{
|
|
546
|
+
sx: {
|
|
547
|
+
default: {
|
|
548
|
+
position: "absolute",
|
|
549
|
+
bottom: 5,
|
|
550
|
+
right: 5
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
genre: props.genre,
|
|
554
|
+
size: props.size,
|
|
555
|
+
icons: [
|
|
556
|
+
{
|
|
557
|
+
type: "id",
|
|
558
|
+
name: "Activity"
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
isWidthAsHeight: true,
|
|
562
|
+
isHiddenBorder: true,
|
|
563
|
+
isRadius: true,
|
|
564
|
+
onClick: () => handleAdd()
|
|
565
|
+
}
|
|
566
|
+
)
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
570
|
+
Stack,
|
|
571
|
+
{
|
|
572
|
+
sx: {
|
|
573
|
+
default: {
|
|
574
|
+
width: "100%",
|
|
575
|
+
height: "100%",
|
|
576
|
+
position: "relative",
|
|
577
|
+
overflow: "hidden",
|
|
578
|
+
display: "flex",
|
|
579
|
+
alignItems: "center",
|
|
580
|
+
justifyContent: "center"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
584
|
+
Typography,
|
|
585
|
+
{
|
|
586
|
+
sx: {
|
|
587
|
+
default: {
|
|
588
|
+
variant: "h6"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
children: props.locales.noImagesAvailable
|
|
592
|
+
}
|
|
593
|
+
)
|
|
594
|
+
}
|
|
595
|
+
)
|
|
596
|
+
}
|
|
597
|
+
);
|
|
598
|
+
};
|
|
599
|
+
const sliderVariants = {
|
|
600
|
+
initial: (direction) => ({
|
|
601
|
+
x: direction > 0 ? "100%" : "-100%",
|
|
602
|
+
scale: 1,
|
|
603
|
+
opacity: 0
|
|
604
|
+
}),
|
|
605
|
+
active: { x: 0, scale: 1, opacity: 1 },
|
|
606
|
+
exit: (direction) => ({
|
|
607
|
+
x: direction > 0 ? "-100%" : "100%",
|
|
608
|
+
scale: 1,
|
|
609
|
+
opacity: 0.2
|
|
610
|
+
})
|
|
611
|
+
};
|
|
612
|
+
const sliderTransition = {
|
|
613
|
+
duration: 0.3,
|
|
614
|
+
ease: [0.56, 0.03, 0.12, 1.04]
|
|
615
|
+
};
|
|
616
|
+
const IMAGES = [
|
|
617
|
+
{
|
|
618
|
+
id: 0,
|
|
619
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
620
|
+
Stack,
|
|
621
|
+
{
|
|
622
|
+
sx: {
|
|
623
|
+
default: {
|
|
624
|
+
justifyContent: "flex-start",
|
|
625
|
+
padding: "5px",
|
|
626
|
+
flexGrow: 1
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
630
|
+
Button,
|
|
631
|
+
{
|
|
632
|
+
isHiddenBorder: true,
|
|
633
|
+
isDisabled: true,
|
|
634
|
+
genre: "realebail-white",
|
|
635
|
+
size: "medium",
|
|
636
|
+
sxTypography: { default: { weight: 700 } },
|
|
637
|
+
children: "Los Angeles"
|
|
638
|
+
}
|
|
639
|
+
)
|
|
640
|
+
}
|
|
641
|
+
),
|
|
642
|
+
imageSrc: "https://drupal-prod.visitcalifornia.com/sites/default/files/styles/fluid_1920/public/2020-06/VC_PlacesToVisit_LosAngelesCounty_RF_1170794243.jpg.webp?itok=46pJYz8v"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
id: 1,
|
|
646
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
647
|
+
Stack,
|
|
648
|
+
{
|
|
649
|
+
sx: {
|
|
650
|
+
default: {
|
|
651
|
+
justifyContent: "flex-start",
|
|
652
|
+
padding: "5px",
|
|
653
|
+
flexGrow: 1
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
657
|
+
Button,
|
|
658
|
+
{
|
|
659
|
+
isHiddenBorder: true,
|
|
660
|
+
isDisabled: true,
|
|
661
|
+
genre: "realebail-white",
|
|
662
|
+
size: "medium",
|
|
663
|
+
sxTypography: { default: { weight: 700 } },
|
|
664
|
+
children: "Los Angeles"
|
|
665
|
+
}
|
|
666
|
+
)
|
|
667
|
+
}
|
|
668
|
+
),
|
|
669
|
+
imageSrc: "https://images.unsplash.com/flagged/photo-1575555201693-7cd442b8023f?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8bG9zJTIwYW5nZWxlc3xlbnwwfHwwfHx8MA%3D%3D"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
id: 2,
|
|
673
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
674
|
+
Stack,
|
|
675
|
+
{
|
|
676
|
+
sx: {
|
|
677
|
+
default: {
|
|
678
|
+
justifyContent: "flex-start",
|
|
679
|
+
padding: "5px",
|
|
680
|
+
flexGrow: 1
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
684
|
+
Button,
|
|
685
|
+
{
|
|
686
|
+
isHiddenBorder: true,
|
|
687
|
+
isDisabled: true,
|
|
688
|
+
genre: "realebail-white",
|
|
689
|
+
size: "medium",
|
|
690
|
+
sxTypography: { default: { weight: 700 } },
|
|
691
|
+
children: "Los Angeles"
|
|
692
|
+
}
|
|
693
|
+
)
|
|
694
|
+
}
|
|
695
|
+
),
|
|
696
|
+
imageSrc: "https://img.goodfon.com/original/2048x1319/8/29/ssha-kaliforniia-los-andzheles-los-angeles-doma-neboskreby-s.jpg"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
id: 3,
|
|
700
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
701
|
+
Stack,
|
|
702
|
+
{
|
|
703
|
+
sx: {
|
|
704
|
+
default: {
|
|
705
|
+
justifyContent: "flex-start",
|
|
706
|
+
padding: "5px",
|
|
707
|
+
flexGrow: 1
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
711
|
+
Button,
|
|
712
|
+
{
|
|
713
|
+
isHiddenBorder: true,
|
|
714
|
+
isDisabled: true,
|
|
715
|
+
genre: "realebail-white",
|
|
716
|
+
size: "medium",
|
|
717
|
+
sxTypography: { default: { weight: 700 } },
|
|
718
|
+
children: "Los Angeles"
|
|
719
|
+
}
|
|
720
|
+
)
|
|
721
|
+
}
|
|
722
|
+
),
|
|
723
|
+
imageSrc: "https://images.pexels.com/photos/2231756/pexels-photo-2231756.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
id: 4,
|
|
727
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
728
|
+
Stack,
|
|
729
|
+
{
|
|
730
|
+
sx: {
|
|
731
|
+
default: {
|
|
732
|
+
justifyContent: "flex-start",
|
|
733
|
+
padding: "5px",
|
|
734
|
+
flexGrow: 1
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
738
|
+
Button,
|
|
739
|
+
{
|
|
740
|
+
isHiddenBorder: true,
|
|
741
|
+
isDisabled: true,
|
|
742
|
+
genre: "realebail-white",
|
|
743
|
+
size: "medium",
|
|
744
|
+
sxTypography: { default: { weight: 700 } },
|
|
745
|
+
children: "Los Angeles"
|
|
746
|
+
}
|
|
747
|
+
)
|
|
748
|
+
}
|
|
749
|
+
),
|
|
750
|
+
imageSrc: "https://images.pexels.com/photos/1813157/pexels-photo-1813157.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500"
|
|
751
|
+
}
|
|
752
|
+
];
|
|
753
|
+
export {
|
|
754
|
+
ImageSlider as I,
|
|
755
|
+
SliderImage as S,
|
|
756
|
+
SliderDot as a,
|
|
757
|
+
IMAGES as b
|
|
758
|
+
};
|
|
759
|
+
//# sourceMappingURL=component.constants-DbNhxh0k.js.map
|