@jenesei-software/jenesei-kit-react 1.3.20 → 1.3.21
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/build/{area-DAgP6K9K.cjs → area-BG04bpxi.cjs} +2 -2
- package/build/{area-DAgP6K9K.cjs.map → area-BG04bpxi.cjs.map} +1 -1
- package/build/{area-CD8KKIM0.js → area-D4BoNEmX.js} +2 -2
- package/build/{area-CD8KKIM0.js.map → area-D4BoNEmX.js.map} +1 -1
- package/build/{area-BLgNLu9A.js → area-occQcGnD.js} +2 -2
- package/build/{area-BLgNLu9A.js.map → area-occQcGnD.js.map} +1 -1
- package/build/area-outside.cjs.js +1 -1
- package/build/area-outside.es.js +1 -1
- package/build/{area-Dup_lUb9.cjs → area-pCo19R2g.cjs} +2 -2
- package/build/{area-Dup_lUb9.cjs.map → area-pCo19R2g.cjs.map} +1 -1
- package/build/area-preview.cjs.js +1 -1
- package/build/area-preview.es.js +1 -1
- package/build/area-scroll.cjs.js +1 -1
- package/build/area-scroll.es.js +2 -2
- package/build/area-skeleton.cjs.js +1 -1
- package/build/area-skeleton.d.ts +6 -1
- package/build/area-skeleton.es.js +2 -3
- package/build/area-skeleton.es.js.map +1 -1
- package/build/area-smooth.cjs.js +1 -1
- package/build/area-smooth.es.js +1 -1
- package/build/{area.styles-DWqSyo49.js → area.styles-BSqCfPE4.js} +2 -2
- package/build/{area.styles-DWqSyo49.js.map → area.styles-BSqCfPE4.js.map} +1 -1
- package/build/area.styles-BuceLNra.cjs +27 -0
- package/build/{area.styles-DQBIvHdz.cjs.map → area.styles-BuceLNra.cjs.map} +1 -1
- package/build/build-info.txt +3 -3
- package/build/{component-GKvpOWlO.cjs → component-5Utdcc2G.cjs} +7 -7
- package/build/{component-GKvpOWlO.cjs.map → component-5Utdcc2G.cjs.map} +1 -1
- package/build/{component-BtgXUCiJ.js → component-B--Ljzf8.js} +2 -2
- package/build/{component-BtgXUCiJ.js.map → component-B--Ljzf8.js.map} +1 -1
- package/build/{component-BLa80fGE.cjs → component-Bq9jd15r.cjs} +2 -2
- package/build/{component-BLa80fGE.cjs.map → component-Bq9jd15r.cjs.map} +1 -1
- package/build/{component-DDVjxLvn.js → component-C3BrgaVs.js} +3 -3
- package/build/{component-DDVjxLvn.js.map → component-C3BrgaVs.js.map} +1 -1
- package/build/{component-CHmCK6Bc.js → component-C7SV3z2B.js} +2 -2
- package/build/{component-CHmCK6Bc.js.map → component-C7SV3z2B.js.map} +1 -1
- package/build/{component-BX7rFpno.js → component-C9TJVTRc.js} +7 -8
- package/build/{component-BX7rFpno.js.map → component-C9TJVTRc.js.map} +1 -1
- package/build/{component-6hRanOkU.cjs → component-CLqcB5mM.cjs} +2 -2
- package/build/{component-6hRanOkU.cjs.map → component-CLqcB5mM.cjs.map} +1 -1
- package/build/{component-DQrnK2Bj.js → component-CS7C3l76.js} +3 -3
- package/build/{component-DQrnK2Bj.js.map → component-CS7C3l76.js.map} +1 -1
- package/build/{component-DpVp9dB1.js → component-CUiqQLEQ.js} +2 -2
- package/build/{component-DpVp9dB1.js.map → component-CUiqQLEQ.js.map} +1 -1
- package/build/{component-DyEa0lzB.js → component-CWIsglCv.js} +3 -3
- package/build/{component-DyEa0lzB.js.map → component-CWIsglCv.js.map} +1 -1
- package/build/component-CZPL9hGj.cjs +2 -0
- package/build/{component-IlhRGJHX.cjs.map → component-CZPL9hGj.cjs.map} +1 -1
- package/build/{component-8NOxwZJO.cjs → component-Cc8X-Z80.cjs} +2 -2
- package/build/{component-8NOxwZJO.cjs.map → component-Cc8X-Z80.cjs.map} +1 -1
- package/build/{component-DerXrx9p.js → component-CeZFnxeP.js} +2 -2
- package/build/{component-DerXrx9p.js.map → component-CeZFnxeP.js.map} +1 -1
- package/build/{component-DhCe6E21.js → component-CqQpLjWf.js} +2 -2
- package/build/{component-DhCe6E21.js.map → component-CqQpLjWf.js.map} +1 -1
- package/build/{component-DF8wYX_U.js → component-DAMiuCOk.js} +3 -3
- package/build/{component-DF8wYX_U.js.map → component-DAMiuCOk.js.map} +1 -1
- package/build/{component-DdSHuopV.cjs → component-DBZIl6Pf.cjs} +2 -2
- package/build/{component-DdSHuopV.cjs.map → component-DBZIl6Pf.cjs.map} +1 -1
- package/build/{component-D9Fz-_ZH.cjs → component-DC6wk9OC.cjs} +2 -2
- package/build/{component-D9Fz-_ZH.cjs.map → component-DC6wk9OC.cjs.map} +1 -1
- package/build/{component-mzzOCXSx.js → component-DEZX8aBs.js} +2 -2
- package/build/{component-mzzOCXSx.js.map → component-DEZX8aBs.js.map} +1 -1
- package/build/{component-C-yqkm2n.cjs → component-DgtdqEgO.cjs} +2 -2
- package/build/{component-C-yqkm2n.cjs.map → component-DgtdqEgO.cjs.map} +1 -1
- package/build/{component-DXSNBORy.cjs → component-Dt1QKoQc.cjs} +2 -2
- package/build/{component-DXSNBORy.cjs.map → component-Dt1QKoQc.cjs.map} +1 -1
- package/build/component-DvuH4WLo.cjs +2 -0
- package/build/{component-KwYlKatx.cjs.map → component-DvuH4WLo.cjs.map} +1 -1
- package/build/{component-C56biWpi.js → component-HpOulBAQ.js} +3 -5
- package/build/{component-C56biWpi.js.map → component-HpOulBAQ.js.map} +1 -1
- package/build/{component-Cr62wN62.js → component-O7HvTkOa.js} +2 -2
- package/build/{component-Cr62wN62.js.map → component-O7HvTkOa.js.map} +1 -1
- package/build/{component-BLW4AlTi.cjs → component-PvY4ZuKa.cjs} +2 -2
- package/build/{component-BLW4AlTi.cjs.map → component-PvY4ZuKa.cjs.map} +1 -1
- package/build/{component-Ds6eJznV.cjs → component-SobV8wHk.cjs} +2 -2
- package/build/{component-Ds6eJznV.cjs.map → component-SobV8wHk.cjs.map} +1 -1
- package/build/{component-GqA6sCHI.cjs → component-VZLVznEM.cjs} +2 -2
- package/build/{component-GqA6sCHI.cjs.map → component-VZLVznEM.cjs.map} +1 -1
- package/build/component-accordion.cjs.js +1 -1
- package/build/component-accordion.d.ts +1 -1
- package/build/component-accordion.es.js +6 -6
- package/build/component-button-group.cjs.js +1 -1
- package/build/component-button-group.es.js +3 -3
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.es.js +3 -3
- package/build/component-checkbox-group.cjs.js +1 -1
- package/build/component-checkbox-group.es.js +8 -8
- package/build/component-checkbox.cjs.js +1 -1
- package/build/component-checkbox.es.js +5 -5
- package/build/component-date-picker.cjs.js +1 -1
- package/build/component-date-picker.es.js +13 -13
- package/build/component-icon.cjs.js +1 -1
- package/build/component-icon.d.ts +16 -3
- package/build/component-icon.es.js +6 -5
- package/build/component-image-button.cjs.js +1 -1
- package/build/component-image-button.es.js +1 -1
- package/build/component-image-select.cjs.js +1 -1
- package/build/component-image-select.es.js +8 -8
- package/build/component-image-slider.cjs.js +1 -1
- package/build/component-image-slider.es.js +4 -4
- package/build/component-image.cjs.js +1 -1
- package/build/component-image.es.js +3 -3
- package/build/component-input-otp.cjs.js +1 -1
- package/build/component-input-otp.es.js +5 -5
- package/build/component-input.cjs.js +1 -1
- package/build/component-input.es.js +15 -15
- package/build/{component-DP42Uzl2.cjs → component-iyi7lqrB.cjs} +2 -2
- package/build/{component-DP42Uzl2.cjs.map → component-iyi7lqrB.cjs.map} +1 -1
- package/build/component-map.cjs.js +1 -1
- package/build/component-map.es.js +8 -8
- package/build/component-pagination.cjs.js +1 -1
- package/build/component-pagination.es.js +1 -1
- package/build/component-range.cjs.js +1 -1
- package/build/component-range.es.js +5 -5
- package/build/component-ripple.cjs.js +1 -1
- package/build/component-select.cjs.js +1 -1
- package/build/component-select.d.ts +1 -1
- package/build/component-select.es.js +18 -18
- package/build/component-separator.cjs.js +1 -1
- package/build/component-stack.cjs.js +1 -1
- package/build/component-stack.es.js +1 -1
- package/build/component-textarea.cjs.js +1 -1
- package/build/component-textarea.es.js +5 -5
- package/build/component-toggle.cjs.js +1 -1
- package/build/component-toggle.es.js +4 -4
- package/build/component-tooltip.cjs.js +1 -1
- package/build/component-tooltip.es.js +9 -9
- package/build/component-typography.cjs.js +1 -1
- package/build/component-typography.es.js +6 -6
- package/build/{component.components-B6FC2-ox.cjs → component.components-Cck7T25y.cjs} +2 -2
- package/build/{component.components-B6FC2-ox.cjs.map → component.components-Cck7T25y.cjs.map} +1 -1
- package/build/{component.components-DlJ9rcRL.js → component.components-NP2aSgyb.js} +2 -2
- package/build/{component.components-DlJ9rcRL.js.map → component.components-NP2aSgyb.js.map} +1 -1
- package/build/{component.constants-B-ZUZwuJ.js → component.constants-3UuU_a__.js} +3 -3
- package/build/{component.constants-B-ZUZwuJ.js.map → component.constants-3UuU_a__.js.map} +1 -1
- package/build/{component.constants-DwSQ9oe4.js → component.constants-B0mODNks.js} +6 -7
- package/build/{component.constants-DwSQ9oe4.js.map → component.constants-B0mODNks.js.map} +1 -1
- package/build/{component.constants-DiCmqOri.cjs → component.constants-CoFHa30V.cjs} +2 -2
- package/build/{component.constants-DiCmqOri.cjs.map → component.constants-CoFHa30V.cjs.map} +1 -1
- package/build/component.constants-vNAPiC5p.cjs +2 -0
- package/build/{component.constants-hDTTnj7k.cjs.map → component.constants-vNAPiC5p.cjs.map} +1 -1
- package/build/{component.types-CYtUJDuN.cjs → component.types-BRZsYWlH.cjs} +2 -2
- package/build/{component.types-CYtUJDuN.cjs.map → component.types-BRZsYWlH.cjs.map} +1 -1
- package/build/{component.types-DFRLIpd6.js → component.types-Cysm3D4v.js} +3 -3
- package/build/{component.types-DFRLIpd6.js.map → component.types-Cysm3D4v.js.map} +1 -1
- package/build/consts.cjs.js +1 -1
- package/build/consts.es.js +1 -1
- package/build/context-app.cjs.js +1 -1
- package/build/context-app.es.js +17 -17
- package/build/context-dialog.cjs.js +1 -1
- package/build/context-dialog.es.js +2 -2
- package/build/context-sonner.cjs.js +1 -1
- package/build/context-sonner.es.js +18 -18
- package/build/{context.constants-C5Unln0I.js → context.constants-BVl2x1gR.js} +302 -179
- package/build/context.constants-BVl2x1gR.js.map +1 -0
- package/build/{context.constants-CRxCVRKK.cjs → context.constants-BgXWD3zz.cjs} +2 -2
- package/build/{context.constants-CRxCVRKK.cjs.map → context.constants-BgXWD3zz.cjs.map} +1 -1
- package/build/{context.constants-CaDW-QGJ.js → context.constants-D-s5XvZX.js} +2 -2
- package/build/{context.constants-CaDW-QGJ.js.map → context.constants-D-s5XvZX.js.map} +1 -1
- package/build/{context.constants-DSfxf3ST.cjs → context.constants-YhrMPIvq.cjs} +285 -227
- package/build/context.constants-YhrMPIvq.cjs.map +1 -0
- package/build/{context.hooks-BfmhHvrX.cjs → context.hooks-99wJ8TBG.cjs} +2 -2
- package/build/{context.hooks-BfmhHvrX.cjs.map → context.hooks-99wJ8TBG.cjs.map} +1 -1
- package/build/{context.hooks-ByjHt-DO.cjs → context.hooks-B16qxQQY.cjs} +2 -2
- package/build/{context.hooks-ByjHt-DO.cjs.map → context.hooks-B16qxQQY.cjs.map} +1 -1
- package/build/{context.hooks-CKO6mDS-.js → context.hooks-DjwMqRSt.js} +2 -2
- package/build/{context.hooks-CKO6mDS-.js.map → context.hooks-DjwMqRSt.js.map} +1 -1
- package/build/{context.hooks-PU-CST61.cjs → context.hooks-Dkb5yK8Z.cjs} +2 -2
- package/build/{context.hooks-PU-CST61.cjs.map → context.hooks-Dkb5yK8Z.cjs.map} +1 -1
- package/build/{context.hooks-B2vWSael.js → context.hooks-KS9z3sac.js} +2 -2
- package/build/{context.hooks-B2vWSael.js.map → context.hooks-KS9z3sac.js.map} +1 -1
- package/build/{context.hooks-Bj9FlQEC.js → context.hooks-fo2TeZoK.js} +2 -2
- package/build/{context.hooks-Bj9FlQEC.js.map → context.hooks-fo2TeZoK.js.map} +1 -1
- package/build/index.cjs.js +1 -1
- package/build/index.d.ts +19 -7
- package/build/index.es.js +188 -190
- package/build/index.es.js.map +1 -1
- package/build/style-error.cjs.js +1 -1
- package/build/style-error.es.js +4 -4
- package/build/style-theme.cjs.js +1 -1
- package/build/style-theme.es.js +13 -13
- package/build/{use-7TZR9yNq.js → use-BI2JJFUm.js} +6 -6
- package/build/{use-7TZR9yNq.js.map → use-BI2JJFUm.js.map} +1 -1
- package/build/{use-DNJlP5ji.cjs → use-CtF6jyms.cjs} +3 -3
- package/build/{use-DNJlP5ji.cjs.map → use-CtF6jyms.cjs.map} +1 -1
- package/package.json +1 -1
- package/build/area-C5QUBcb-.js +0 -26
- package/build/area-C5QUBcb-.js.map +0 -1
- package/build/area-k8GR7Khj.cjs +0 -2
- package/build/area-k8GR7Khj.cjs.map +0 -1
- package/build/area.styles-BJCDsTi3.js +0 -46
- package/build/area.styles-BJCDsTi3.js.map +0 -1
- package/build/area.styles-CtrTLcAj.cjs +0 -40
- package/build/area.styles-CtrTLcAj.cjs.map +0 -1
- package/build/area.styles-DQBIvHdz.cjs +0 -27
- package/build/component-IlhRGJHX.cjs +0 -2
- package/build/component-KwYlKatx.cjs +0 -2
- package/build/component.constants-hDTTnj7k.cjs +0 -2
- package/build/component.styles-CNn9SMc9.cjs +0 -10
- package/build/component.styles-CNn9SMc9.cjs.map +0 -1
- package/build/component.styles-eaocqYbA.js +0 -16
- package/build/component.styles-eaocqYbA.js.map +0 -1
- package/build/context.constants-C5Unln0I.js.map +0 -1
- package/build/context.constants-DSfxf3ST.cjs.map +0 -1
package/package.json
CHANGED
package/build/area-C5QUBcb-.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./jsx-runtime-BrDlu8eK.js";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
3
|
-
import { S as StyledSkeleton } from "./area.styles-BJCDsTi3.js";
|
|
4
|
-
const Skeleton = (props) => {
|
|
5
|
-
const [visible, setVisible] = useState(props.defaultVisible ?? false);
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
if ("time" in props) {
|
|
8
|
-
const timer = setTimeout(() => {
|
|
9
|
-
setVisible(true);
|
|
10
|
-
}, props.time);
|
|
11
|
-
return () => {
|
|
12
|
-
clearTimeout(timer);
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}, [props]);
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
if ("visible" in props) {
|
|
18
|
-
setVisible(!props.visible);
|
|
19
|
-
}
|
|
20
|
-
}, [props]);
|
|
21
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledSkeleton, { ...props, $visible: visible, $type: props.type, children: props.children });
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
Skeleton as S
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=area-C5QUBcb-.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area-C5QUBcb-.js","sources":["../src/areas/skeleton/area.tsx"],"sourcesContent":["import { FC, useEffect, useState } from 'react';\n\nimport { SkeletonProps, StyledSkeleton } from '.';\n\nexport const Skeleton: FC<SkeletonProps> = (props) => {\n const [visible, setVisible] = useState(props.defaultVisible ?? false);\n\n useEffect(() => {\n if ('time' in props) {\n const timer = setTimeout(() => {\n setVisible(true);\n }, props.time);\n\n return () => {\n clearTimeout(timer);\n };\n }\n }, [props]);\n\n useEffect(() => {\n if ('visible' in props) {\n setVisible(!props.visible);\n }\n }, [props]);\n\n return (\n <StyledSkeleton {...props} $visible={visible} $type={props.type}>\n {props.children}\n </StyledSkeleton>\n );\n};\n"],"names":["jsx"],"mappings":";;;AAIO,MAAM,WAA8B,CAAC,UAAU;AACpD,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,MAAM,kBAAkB,KAAK;AAEpE,YAAU,MAAM;AACd,QAAI,UAAU,OAAO;AACnB,YAAM,QAAQ,WAAW,MAAM;AAC7B,mBAAW,IAAI;AAAA,MAAA,GACd,MAAM,IAAI;AAEb,aAAO,MAAM;AACX,qBAAa,KAAK;AAAA,MAAA;AAAA,IACpB;AAAA,EACF,GACC,CAAC,KAAK,CAAC;AAEV,YAAU,MAAM;AACd,QAAI,aAAa,OAAO;AACtB,iBAAW,CAAC,MAAM,OAAO;AAAA,IAAA;AAAA,EAC3B,GACC,CAAC,KAAK,CAAC;AAEV,SACEA,kCAAAA,IAAC,gBAAA,EAAgB,GAAG,OAAO,UAAU,SAAS,OAAO,MAAM,MACxD,UAAA,MAAM,SAAA,CACT;AAEJ;"}
|
package/build/area-k8GR7Khj.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs"),t=require("react"),i=require("./area.styles-CtrTLcAj.cjs");exports.Skeleton=s=>{const[r,u]=t.useState(s.defaultVisible??!1);return t.useEffect(()=>{if("time"in s){const e=setTimeout(()=>{u(!0)},s.time);return()=>{clearTimeout(e)}}},[s]),t.useEffect(()=>{"visible"in s&&u(!s.visible)},[s]),e.jsxRuntimeExports.jsx(i.StyledSkeleton,{...s,$visible:r,$type:s.type,children:s.children})};
|
|
2
|
-
//# sourceMappingURL=area-k8GR7Khj.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area-k8GR7Khj.cjs","sources":["../src/areas/skeleton/area.tsx"],"sourcesContent":["import { FC, useEffect, useState } from 'react';\n\nimport { SkeletonProps, StyledSkeleton } from '.';\n\nexport const Skeleton: FC<SkeletonProps> = (props) => {\n const [visible, setVisible] = useState(props.defaultVisible ?? false);\n\n useEffect(() => {\n if ('time' in props) {\n const timer = setTimeout(() => {\n setVisible(true);\n }, props.time);\n\n return () => {\n clearTimeout(timer);\n };\n }\n }, [props]);\n\n useEffect(() => {\n if ('visible' in props) {\n setVisible(!props.visible);\n }\n }, [props]);\n\n return (\n <StyledSkeleton {...props} $visible={visible} $type={props.type}>\n {props.children}\n </StyledSkeleton>\n );\n};\n"],"names":["props","visible","setVisible","useState","defaultVisible","useEffect","timer","setTimeout","time","clearTimeout","jsx","StyledSkeleton","$visible","$type","type","children"],"mappings":"uIAI4CA,IAC1C,MAAOC,EAASC,GAAcC,EAAAA,SAASH,EAAMI,iBAAkB,GAoB/D,OAlBAC,EAAAA,UAAU,KACR,GAAI,SAAUL,EAAO,CACnB,MAAMM,EAAQC,WAAW,KACvBL,GAAW,IACVF,EAAMQ,MAET,MAAO,KACLC,aAAaH,GACf,GAED,CAACN,IAEJK,EAAAA,UAAU,KACJ,YAAaL,GACfE,GAAYF,EAAMC,UAEnB,CAACD,MAGFU,kBAAAA,IAACC,EAAAA,eAAA,IAAmBX,EAAOY,SAAUX,EAASY,MAAOb,EAAMc,KACxDC,SAAAf,EAAMe"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { b as Stack } from "./component-mzzOCXSx.js";
|
|
2
|
-
import styled, { keyframes, css } from "styled-components";
|
|
3
|
-
const shimmer = keyframes`
|
|
4
|
-
0% {
|
|
5
|
-
background-position: 100%;
|
|
6
|
-
}
|
|
7
|
-
100% {
|
|
8
|
-
background-position: -100%;
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
const StyledSkeleton = styled(Stack)`
|
|
12
|
-
background: transparent;
|
|
13
|
-
|
|
14
|
-
${(props) => css`
|
|
15
|
-
${!props.$visible && css`
|
|
16
|
-
${props.$type === "secondary" ? css`
|
|
17
|
-
background: linear-gradient(
|
|
18
|
-
90deg,
|
|
19
|
-
#f6f7f8 25%,
|
|
20
|
-
#edeef1 50%,
|
|
21
|
-
#f6f7f8 75%
|
|
22
|
-
);
|
|
23
|
-
` : css`
|
|
24
|
-
background: linear-gradient(
|
|
25
|
-
90deg,
|
|
26
|
-
#edeef1 25%,
|
|
27
|
-
#f6f7f8 50%,
|
|
28
|
-
#edeef1 75%
|
|
29
|
-
);
|
|
30
|
-
`};
|
|
31
|
-
background-size: 200% 100%;
|
|
32
|
-
animation: ${shimmer} 1.5s infinite linear;
|
|
33
|
-
|
|
34
|
-
`};
|
|
35
|
-
`}
|
|
36
|
-
& > * {
|
|
37
|
-
opacity: ${(props) => !props.$visible ? 0 : 1};
|
|
38
|
-
transition:
|
|
39
|
-
outline 0s,
|
|
40
|
-
opacity ${(props) => props.theme.transition.default};
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
export {
|
|
44
|
-
StyledSkeleton as S
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=area.styles-BJCDsTi3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area.styles-BJCDsTi3.js","sources":["../src/areas/skeleton/area.styles.tsx"],"sourcesContent":["import { Stack } from '@local/components/stack';\n\nimport styled, { css, keyframes } from 'styled-components';\n\nimport { StyledSkeletonProps } from '.';\n\n// const shimmer = keyframes`\n// 0% {\n// background-position: -468px 0;\n// }\n// 100% {\n// background-position: 468px 0;\n// }\n// `;\n\nconst shimmer = keyframes`\n 0% {\n background-position: 100%;\n }\n 100% {\n background-position: -100%;\n }\n`;\n\nexport const StyledSkeleton = styled(Stack)<StyledSkeletonProps>`\n background: transparent;\n\n ${(props) => css`\n ${\n !props.$visible &&\n css`\n ${\n props.$type === 'secondary'\n ? css`\n background: linear-gradient(\n 90deg,\n #f6f7f8 25%,\n #edeef1 50%,\n #f6f7f8 75%\n );\n `\n : css`\n background: linear-gradient(\n 90deg,\n #edeef1 25%,\n #f6f7f8 50%,\n #edeef1 75%\n ); \n `\n };\n background-size: 200% 100%;\n animation: ${shimmer} 1.5s infinite linear;\n\n `\n };\n `}\n & > * {\n opacity: ${(props) => (!props.$visible ? 0 : 1)};\n transition:\n outline 0s,\n opacity ${(props) => props.theme.transition.default};\n }\n`;\n"],"names":[],"mappings":";;AAeA,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAST,MAAM,iBAAiB,OAAO,KAAK;AAAA;AAAA;AAAA,IAGtC,CAAC,UAAU;AAAA,MAET,CAAC,MAAM,YACP;AAAA,QAEE,MAAM,UAAU,cACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAQA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAQN;AAAA;AAAA,mBAEa,OAAO;AAAA;AAAA,KAGtB;AAAA,GACD;AAAA;AAAA,eAEY,CAAC,UAAW,CAAC,MAAM,WAAW,IAAI,CAAE;AAAA;AAAA;AAAA,gBAGnC,CAAC,UAAU,MAAM,MAAM,WAAW,OAAO;AAAA;AAAA;"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./component-GKvpOWlO.cjs"),n=require("styled-components"),i=n.keyframes`
|
|
2
|
-
0% {
|
|
3
|
-
background-position: 100%;
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
background-position: -100%;
|
|
7
|
-
}
|
|
8
|
-
`,s=n(e.Stack)`
|
|
9
|
-
background: transparent;
|
|
10
|
-
|
|
11
|
-
${e=>n.css`
|
|
12
|
-
${!e.$visible&&n.css`
|
|
13
|
-
${"secondary"===e.$type?n.css`
|
|
14
|
-
background: linear-gradient(
|
|
15
|
-
90deg,
|
|
16
|
-
#f6f7f8 25%,
|
|
17
|
-
#edeef1 50%,
|
|
18
|
-
#f6f7f8 75%
|
|
19
|
-
);
|
|
20
|
-
`:n.css`
|
|
21
|
-
background: linear-gradient(
|
|
22
|
-
90deg,
|
|
23
|
-
#edeef1 25%,
|
|
24
|
-
#f6f7f8 50%,
|
|
25
|
-
#edeef1 75%
|
|
26
|
-
);
|
|
27
|
-
`};
|
|
28
|
-
background-size: 200% 100%;
|
|
29
|
-
animation: ${i} 1.5s infinite linear;
|
|
30
|
-
|
|
31
|
-
`};
|
|
32
|
-
`}
|
|
33
|
-
& > * {
|
|
34
|
-
opacity: ${e=>e.$visible?1:0};
|
|
35
|
-
transition:
|
|
36
|
-
outline 0s,
|
|
37
|
-
opacity ${e=>e.theme.transition.default};
|
|
38
|
-
}
|
|
39
|
-
`;exports.StyledSkeleton=s;
|
|
40
|
-
//# sourceMappingURL=area.styles-CtrTLcAj.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area.styles-CtrTLcAj.cjs","sources":["../src/areas/skeleton/area.styles.tsx"],"sourcesContent":["import { Stack } from '@local/components/stack';\n\nimport styled, { css, keyframes } from 'styled-components';\n\nimport { StyledSkeletonProps } from '.';\n\n// const shimmer = keyframes`\n// 0% {\n// background-position: -468px 0;\n// }\n// 100% {\n// background-position: 468px 0;\n// }\n// `;\n\nconst shimmer = keyframes`\n 0% {\n background-position: 100%;\n }\n 100% {\n background-position: -100%;\n }\n`;\n\nexport const StyledSkeleton = styled(Stack)<StyledSkeletonProps>`\n background: transparent;\n\n ${(props) => css`\n ${\n !props.$visible &&\n css`\n ${\n props.$type === 'secondary'\n ? css`\n background: linear-gradient(\n 90deg,\n #f6f7f8 25%,\n #edeef1 50%,\n #f6f7f8 75%\n );\n `\n : css`\n background: linear-gradient(\n 90deg,\n #edeef1 25%,\n #f6f7f8 50%,\n #edeef1 75%\n ); \n `\n };\n background-size: 200% 100%;\n animation: ${shimmer} 1.5s infinite linear;\n\n `\n };\n `}\n & > * {\n opacity: ${(props) => (!props.$visible ? 0 : 1)};\n transition:\n outline 0s,\n opacity ${(props) => props.theme.transition.default};\n }\n`;\n"],"names":["shimmer","keyframes","StyledSkeleton","styled","Stack","props","css","$visible","$type","theme","transition","default"],"mappings":"wFAeMA,EAAUC,EAAAA,SAAAA;;;;;;;EASHC,EAAiBC,EAAOC,QAAK;;;IAGrCC,GAAUC,EAAAA,GAAAA;OAERD,EAAME,UACPD,EAAAA,GAAAA;QAEkB,cAAhBD,EAAMG,MACFF,EAAAA,GAAAA;;;;;;;YAQAA,EAAAA,GAAAA;;;;;;;;;mBAUON;;;;;eAMHK,GAAYA,EAAME,SAAe,EAAJ;;;gBAG5BF,GAAUA,EAAMI,MAAMC,WAAWC;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./component-GKvpOWlO.cjs"),s=require("styled-components"),o=s(l.Stack)`
|
|
2
|
-
overflow-x: hidden;
|
|
3
|
-
overflow-y: hidden;
|
|
4
|
-
|
|
5
|
-
${l=>s.css`
|
|
6
|
-
${l.$horizontal&&s.css`
|
|
7
|
-
scrollbar-gutter: stable;
|
|
8
|
-
overflow-x: auto;
|
|
9
|
-
`}
|
|
10
|
-
|
|
11
|
-
${l.$vertical&&s.css`
|
|
12
|
-
scrollbar-gutter: stable;
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
`}
|
|
15
|
-
|
|
16
|
-
${l.$isAlwaysHorizontal&&s.css`
|
|
17
|
-
scrollbar-gutter: stable;
|
|
18
|
-
overflow-x: scroll;
|
|
19
|
-
`}
|
|
20
|
-
|
|
21
|
-
${l.$isAlwaysVertical&&s.css`
|
|
22
|
-
scrollbar-gutter: stable;
|
|
23
|
-
overflow-y: scroll;
|
|
24
|
-
`}
|
|
25
|
-
`}
|
|
26
|
-
`;exports.StyledScroll=o;
|
|
27
|
-
//# sourceMappingURL=area.styles-DQBIvHdz.cjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs");require("./area.styles-CtrTLcAj.cjs");const t=require("./area-k8GR7Khj.cjs"),r=require("./component-GKvpOWlO.cjs"),s=require("react"),n=require("styled-components"),o=require("./component.styles-CNn9SMc9.cjs");exports.Image=a=>{const[c,i]=s.useState(!0),[l,u]=s.useState(!1);s.useEffect(()=>{if(!a.src)return;const e=new window.Image;return e.onload=()=>{i(!1),u(!1)},e.onerror=()=>{i(!1),u(!0)},e.src=a.src,e.complete&&(e.naturalWidth>0?(i(!1),u(!1)):(i(!1),u(!0))),()=>{e.onload=null,e.onerror=null,i(!0),u(!1)}},[a.src]);const d=n.useTheme(),{default:x,...m}=(null==a?void 0:a.sxStack)?"function"==typeof(null==a?void 0:a.sxStack)?a.sxStack(d):a.sxStack:{};return e.jsxRuntimeExports.jsxs(r.Stack,{sx:{default:{position:"relative",overflow:"hidden",...a.isShowBeforeImage?{"&::before":{width:"100%",height:"100%",content:'""',position:"absolute",inset:0,backgroundImage:`url(${a.src})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",filter:"blur(20px)",transform:"scale(1.1)",zIndex:0}}:{},...x},...m},children:[l?null:a.componentLoading||c?e.jsxRuntimeExports.jsx(t.Skeleton,{visible:!0,sx:{default:{width:"100%",height:"100%"}}}):null,!l&&e.jsxRuntimeExports.jsx(o.ImageIMG,{loading:"lazy",$isPending:c,src:a.src,alt:a.alt,$sx:a.sxImage}),l&&a.componentFallback||null]})};
|
|
2
|
-
//# sourceMappingURL=component-IlhRGJHX.cjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs"),t=require("./consts.cjs.js"),i=require("./use-DNJlP5ji.cjs"),s=require("./context.constants-DSfxf3ST.cjs"),n=require("./component-IlhRGJHX.cjs");require("./component.styles-CNn9SMc9.cjs");const r=require("./component-GKvpOWlO.cjs"),o=require("styled-components");require("./context.constants-CRxCVRKK.cjs");const a=require("./context.hooks-ByjHt-DO.cjs"),l=require("react"),u=require("framer-motion");exports.ImageSelect=d=>{const{onChange:c}=d,g=l.useMemo(()=>s.KEY_SIZE_DATA[d.size],[d.size]),[p,x]=l.useState(d.images||[]),[m,h]=l.useState(!1),j=l.useRef(null),f=o.useTheme(),S=l.useCallback(e=>{e&&x(t=>{const i=e.map((e,i)=>({...e,index:t.length+i})),s=[...t,...i];return null==c||c(s),s})},[c]),b=()=>{var e;null==(e=j.current)||e.click()},{handleAddFiles:y}=i.useImageCrop({onSave:S,locale:d.locale,dialog:{button:{genre:d.propsButton.default.genre,size:d.propsButton.default.size},buttonDelete:{genre:d.propsButton.delete.genre,size:d.propsButton.delete.size}},imageSettings:{maxSize:d.imageSettings.maxSize,maxCount:d.imageSettings.maxCount-p.length,aspect:d.imageSettings.aspect},refInput:j}),{handleAdd:R}=(t=>{const i=l.useMemo(()=>s.KEY_SIZE_DATA[t.size],[t.size]),o=l.useMemo(()=>`${i.radius}px`,[i.radius]),{add:u}=a.useDialog({br:o,propsDialog:{borderRadius:o,padding:"0",background:"whiteStandard"}});return{handleAdd:l.useCallback(i=>{u({content:(o,a)=>e.jsxRuntimeExports.jsxs(r.Stack,{sx:{default:{position:"relative",overflow:"hidden",aspectRatio:2*t.imageSettings.aspect+" / 2",width:"auto",maxWidth:"70dvw",height:"85dvh",borderRadius:null==o?void 0:o.br},tablet:{maxWidth:"95dvw"}},children:[e.jsxRuntimeExports.jsx(n.Image,{sxStack:e=>({default:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.palette.black10,position:"absolute",pointerEvents:"none"}}),isShowBeforeImage:!0,sxImage:{default:{objectFit:"contain"}},alt:null==i?void 0:i.imageSrc,src:null==i?void 0:i.imageSrc,componentFallback:e.jsxRuntimeExports.jsx(s.Typography,{sx:{default:{variant:"h6"}},children:t.locale.imageFallback})}),e.jsxRuntimeExports.jsx(s.Button,{sx:{default:{position:"absolute",bottom:15,right:15}},genre:"realebail-white",size:"small",icons:[{type:"id",name:"Arrow4"}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>null==a?void 0:a()})]})})},[u,t.imageSettings.aspect,t.locale.imageFallback])}})({size:d.size,locale:d.locale,imageSettings:d.imageSettings,genre:d.genre});return l.useEffect(()=>{x(d.images||[])},[d.images]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(s.ImageSelectWrapper,{$genre:d.genre,$size:d.size,id:d.id,$sx:d.sx,$error:d.error,children:[e.jsxRuntimeExports.jsxs(s.ImageSelectListWrapper,{onDrop:e=>{(e=>{var t;e.preventDefault(),(null==(t=e.dataTransfer.files)?void 0:t.length)&&y(e.dataTransfer.files)})(e),h(!1)},onDragOver:e=>e.preventDefault(),onDragEnter:()=>h(!0),onDragLeave:()=>h(!1),animate:{borderColor:m?f.colors.imageSelect[d.genre].border.hover:f.colors.imageSelect[d.genre].border.rest},transition:{duration:.3},$genre:d.genre,$size:d.size,children:[e.jsxRuntimeExports.jsxs(u.motion.div,{transition:{layout:{duration:.3,ease:"easeInOut",type:"spring"}},layout:!0,style:{display:"flex",flexWrap:"wrap",gap:g.padding-2+"px"},children:[p.map(t=>t.url&&e.jsxRuntimeExports.jsxs(u.motion.div,{style:{position:"relative",width:`${d.imageSettings.width}px`,height:`${d.imageSettings.height}px`,userSelect:"none",overflow:"hidden",borderRadius:`${g.radius}px`,flexGrow:1},layout:!0,transition:{layout:{duration:.3,ease:"easeInOut",type:"spring"}},children:[e.jsxRuntimeExports.jsx(n.Image,{sxStack:e=>({default:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.palette.black10,position:"absolute",pointerEvents:"none"}}),isShowBeforeImage:d.isContain,sxImage:{default:{objectFit:d.isContain?"contain":"cover"}},alt:t.name||"image",src:t.url,componentFallback:e.jsxRuntimeExports.jsx(s.Typography,{sx:{default:{variant:"h6"}},children:d.locale.imageFallback})}),e.jsxRuntimeExports.jsx(s.Button,{sx:{default:{position:"absolute",top:5,right:5}},genre:d.genre,size:"small",icons:[{type:"id",name:"Close"}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>{return e=t.id,void x(t=>{const i=t.filter(t=>t.id!==e);return null==c||c(i),i});var e}}),e.jsxRuntimeExports.jsx(s.Button,{sx:{default:{position:"absolute",bottom:5,right:5}},genre:d.genre,size:"small",icons:[{type:"id",name:"Activity"}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>t.url&&R({id:t.id,imageSrc:t.url})})]},t.id)),0===p.length?e.jsxRuntimeExports.jsx("div",{onClick:b,style:{position:"relative",width:`${d.imageSettings.width}px`,height:`${d.imageSettings.height}px`,userSelect:"none",overflow:"hidden",borderRadius:`${g.radius}px`,flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer"},children:e.jsxRuntimeExports.jsx(s.Typography,{style:{color:f.colors.imageSelect[d.genre].color.rest},sx:{default:{}},children:d.locale.dragAndDrop})},"empty"):null]}),e.jsxRuntimeExports.jsx("input",{ref:j,type:"file",accept:t.LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT,multiple:!0,style:{display:"none"},onChange:e=>{e.target.files&&y(e.target.files)}})]}),e.jsxRuntimeExports.jsxs(r.Stack,{sx:{default:{flexGrow:1,gap:g.padding-2+"px"}},children:[e.jsxRuntimeExports.jsx(s.Button,{type:"button",genre:d.genre,size:d.size,sx:{default:{flexGrow:3}},isRadius:!0,onClick:b,children:d.locale.buttonAdd}),e.jsxRuntimeExports.jsx(s.Button,{isRadius:!0,type:"button",sx:{default:{flexGrow:1}},onClick:()=>{x(d.defaultImages||[]),null==c||c(d.defaultImages||[])},genre:d.genre,size:d.size,children:d.locale.buttonReset})]})]}),(null==d?void 0:d.error)?e.jsxRuntimeExports.jsx(s.ErrorMessage,{...d.error,size:(null==d?void 0:d.error.size)??d.size,font:{size:12,weight:400,family:f.font.family}}):null]})};
|
|
2
|
-
//# sourceMappingURL=component-KwYlKatx.cjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs"),i=require("./context.constants-DSfxf3ST.cjs"),t=require("./component-IlhRGJHX.cjs");require("./component.styles-CNn9SMc9.cjs");const s=require("./component-GKvpOWlO.cjs");require("styled-components"),require("./context.constants-CRxCVRKK.cjs");const n=require("./context.hooks-ByjHt-DO.cjs"),o=require("framer-motion"),a=require("react"),l={initial:e=>({x:e>0?"100%":"-100%",scale:1,opacity:0}),active:{x:0,scale:1,opacity:1},exit:e=>({x:e>0?"-100%":"100%",scale:1,opacity:.2})},d={duration:.3,ease:[.56,.03,.12,1.04]},r=({params:n,remove:a})=>{var r,u,c,x,p,m,g,h;return e.jsxRuntimeExports.jsxs(s.Stack,{sx:{default:{position:"relative",overflow:"hidden",aspectRatio:2*(null==n?void 0:n.aspect)+" / 2",width:"auto",maxWidth:"70dvw",height:"85dvh",borderRadius:null==n?void 0:n.br},tablet:{maxWidth:"95dvw"}},children:[e.jsxRuntimeExports.jsx(o.AnimatePresence,{initial:!1,custom:null==n?void 0:n.direction,children:e.jsxRuntimeExports.jsxs(i.SliderImage,{style:{overflow:"hidden",borderRadius:null==n?void 0:n.br},custom:null==n?void 0:n.direction,variants:l,initial:"initial",animate:"active",exit:"exit",transition:d,...(null==n?void 0:n.isLengthOne)?{}:{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.5,onDragEnd:(e,i)=>null==n?void 0:n.dragEndHandler(i)},children:[e.jsxRuntimeExports.jsx(t.Image,{sxStack:e=>({default:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.palette.black10,position:"absolute",pointerEvents:"none"}}),isShowBeforeImage:!0,sxImage:{default:{objectFit:"contain"}},alt:null==(u=null==(r=(null==n?void 0:n.images)??[])?void 0:r[(null==n?void 0:n.activeImageIndex)??0])?void 0:u.imageSrc,src:null==(x=null==(c=(null==n?void 0:n.images)??[])?void 0:c[(null==n?void 0:n.activeImageIndex)??0])?void 0:x.imageSrc,componentFallback:e.jsxRuntimeExports.jsx(i.Typography,{sx:{default:{variant:"h6"}},children:null==n?void 0:n.failedToLoad})}),null==(m=null==(p=(null==n?void 0:n.images)??[])?void 0:p[(null==n?void 0:n.activeImageIndex)??0])?void 0:m.children]},null==n?void 0:n.activeImageId)}),"function"==typeof(null==n?void 0:n.children)?null==(g=null==n?void 0:n.children)?void 0:g.call(n,{isDialog:!0}):null==n?void 0:n.children,e.jsxRuntimeExports.jsx(i.Button,{sx:{default:{position:"absolute",bottom:15,right:15}},genre:(null==n?void 0:n.genre)??"product",size:(null==n?void 0:n.size)??"medium",icons:[{type:"id",name:"Arrow4"}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>null==a?void 0:a()}),(null==n?void 0:n.isLengthOne)?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(s.Stack,{sx:{default:{position:"absolute",bottom:15,left:15,gap:"8px"}},children:[e.jsxRuntimeExports.jsx(i.Button,{genre:(null==n?void 0:n.genre)??"product",size:(null==n?void 0:n.size)??"medium",icons:[{type:"id",name:"Arrow4",turn:90}],isWidthAsHeight:!0,isHiddenBorder:!0,isPlaystationEffect:!0,isRadius:!0,onClick:()=>{var e;return null==(e=null==n?void 0:n.swipeToImage)?void 0:e.call(n,-1)}}),e.jsxRuntimeExports.jsx(i.Button,{genre:(null==n?void 0:n.genre)??"product",size:(null==n?void 0:n.size)??"medium",icons:[{type:"id",name:"Arrow4",turn:-90}],isWidthAsHeight:!0,isHiddenBorder:!0,isPlaystationEffect:!0,isRadius:!0,onClick:()=>{var e;return null==(e=null==n?void 0:n.swipeToImage)?void 0:e.call(n,1)}})]}),e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{position:"absolute",bottom:15,left:"50%",transform:"translateX(-50%)",gap:"4px"}},children:null==(h=(null==n?void 0:n.images)??[])?void 0:h.map(t=>e.jsxRuntimeExports.jsx(i.SliderDot,{onClick:()=>{var e;return null==(e=null==n?void 0:n.skipToImage)?void 0:e.call(n,t.id)},initial:!1,animate:{scale:(null==n?void 0:n.activeImageId)===t.id?1.5:1,opacity:(null==n?void 0:n.activeImageId)===t.id?1:.5}},t.id))})]})]})},u={initial:e=>({x:e>0?"100%":"-100%",scale:1,opacity:0}),active:{x:0,scale:1,opacity:1},exit:e=>({x:e>0?"-100%":"100%",scale:1,opacity:.2})},c={duration:.3,ease:[.56,.03,.12,1.04]},x=[{id:0,children:e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{justifyContent:"flex-start",padding:"5px",flexGrow:1}},children:e.jsxRuntimeExports.jsx(i.Button,{isHiddenBorder:!0,isDisabled:!0,genre:"realebail-white",size:"medium",sxTypography:{default:{weight:700}},children:"Los Angeles"})}),imageSrc:"https://drupal-prod.visitcalifornia.com/sites/default/files/styles/fluid_1920/public/2020-06/VC_PlacesToVisit_LosAngelesCounty_RF_1170794243.jpg.webp?itok=46pJYz8v"},{id:1,children:e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{justifyContent:"flex-start",padding:"5px",flexGrow:1}},children:e.jsxRuntimeExports.jsx(i.Button,{isHiddenBorder:!0,isDisabled:!0,genre:"realebail-white",size:"medium",sxTypography:{default:{weight:700}},children:"Los Angeles"})}),imageSrc:"https://images.unsplash.com/flagged/photo-1575555201693-7cd442b8023f?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8bG9zJTIwYW5nZWxlc3xlbnwwfHwwfHx8MA%3D%3D"},{id:2,children:e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{justifyContent:"flex-start",padding:"5px",flexGrow:1}},children:e.jsxRuntimeExports.jsx(i.Button,{isHiddenBorder:!0,isDisabled:!0,genre:"realebail-white",size:"medium",sxTypography:{default:{weight:700}},children:"Los Angeles"})}),imageSrc:"https://img.goodfon.com/original/2048x1319/8/29/ssha-kaliforniia-los-andzheles-los-angeles-doma-neboskreby-s.jpg"},{id:3,children:e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{justifyContent:"flex-start",padding:"5px",flexGrow:1}},children:e.jsxRuntimeExports.jsx(i.Button,{isHiddenBorder:!0,isDisabled:!0,genre:"realebail-white",size:"medium",sxTypography:{default:{weight:700}},children:"Los Angeles"})}),imageSrc:"https://images.pexels.com/photos/2231756/pexels-photo-2231756.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500"},{id:4,children:e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{justifyContent:"flex-start",padding:"5px",flexGrow:1}},children:e.jsxRuntimeExports.jsx(i.Button,{isHiddenBorder:!0,isDisabled:!0,genre:"realebail-white",size:"medium",sxTypography:{default:{weight:700}},children:"Los Angeles"})}),imageSrc:"https://images.pexels.com/photos/1813157/pexels-photo-1813157.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500"}];exports.IMAGES=x,exports.ImageSlider=l=>{var d,x,p,m;const{onIndexChange:g}=l,h=a.useMemo(()=>l.images,[l.images]),v=a.useMemo(()=>i.KEY_SIZE_DATA[l.size],[l.size]),f=a.useMemo(()=>`${v.radius}px`,[v.radius]),{isLengthZero:j,direction:I,activeImageId:b,isLengthOne:y,dragEndHandler:E,activeImageIndex:w,swipeToImage:R,skipToImage:k,handleAdd:S}=(t=>{var s;const{onIndexChange:o}=t,l=a.useMemo(()=>i.KEY_SIZE_DATA[t.size],[t.size]),d=a.useMemo(()=>`${l.radius}px`,[l.radius]),u=a.useMemo(()=>t.images,[t.images]),[{activeImageId:c,direction:x},p]=a.useState({activeImageId:(null==(s=null==u?void 0:u[0])?void 0:s.id)??null,direction:0}),m=a.useMemo(()=>1===(null==u?void 0:u.length),[u]),g=a.useMemo(()=>0===(null==u?void 0:u.length),[u]),h=a.useMemo(()=>u.findIndex(e=>e.id===c),[c,u]),v=a.useCallback(e=>{const i=(u.findIndex(e=>e.id===c)+e+u.length)%u.length;p({activeImageId:u[i].id,direction:e})},[c,u]),f=a.useCallback(e=>{const{offset:i,velocity:t}=e,s=Math.abs(i.x)*t.x;s>500||i.x>50?v(-1):(s<-500||i.x<-50)&&v(1)},[v]),j=a.useCallback(e=>{const i=u.findIndex(e=>e.id===c),t=u.findIndex(i=>i.id===e);-1!==t&&t!==i&&p({activeImageId:e,direction:t>i?1:-1})},[c,u]);a.useEffect(()=>{c&&(null==o||o(c))},[c,o]);const{add:I}=n.useDialog({br:d,dragEndHandler:f,images:u,children:t.children,activeImageIndex:h,activeImageId:c,swipeToImage:v,skipToImage:j,direction:x,aspect:t.imageSettings.aspect,genre:t.genre,size:t.size,failedToLoad:t.locales.failedToLoad,isLengthOne:m,propsDialog:{borderRadius:d,padding:"0",background:"whiteStandard"}}),b=a.useCallback(()=>{I({content:(i,t)=>e.jsxRuntimeExports.jsx(r,{params:i,remove:t})})},[I]);return{isLengthZero:g,direction:x,activeImageId:c,isLengthOne:m,dragEndHandler:f,activeImageIndex:h,swipeToImage:v,skipToImage:j,handleAdd:b}})({genre:l.genre,size:l.size,images:h,imageSettings:l.imageSettings,locales:l.locales,onIndexChange:g,children:l.children});return e.jsxRuntimeExports.jsx(s.StackMotion,{...l.propsStack,sx:e=>{var i,t,s,n,o,a,d,r,u;return{...null==(i=l.propsStack)?void 0:i.sx,default:{borderRadius:f,flexDirection:"column",alignItems:"center",overflow:"hidden",width:"auto",maxWidth:"70dvw",height:"85dvh",...(null==(t=l.propsStack)?void 0:t.sx)?"function"==typeof(null==(s=l.propsStack)?void 0:s.sx)?null==(n=l.propsStack)?void 0:n.sx(e).default:null==(o=l.propsStack)?void 0:o.sx.default:{}},tablet:{maxWidth:"95dvw",...(null==(a=l.propsStack)?void 0:a.sx)?"function"==typeof(null==(d=l.propsStack)?void 0:d.sx)?null==(r=l.propsStack)?void 0:r.sx(e).tablet:null==(u=l.propsStack)?void 0:u.sx.tablet:{}}}},children:l.isLoading?e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{width:"100%",height:"100%",position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}},children:e.jsxRuntimeExports.jsx(i.Icon,{size:"large",type:"loading",color:"blueFocus",name:"Line"})}):j?e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{width:"100%",height:"100%",position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}},children:e.jsxRuntimeExports.jsx(i.Typography,{sx:{default:{variant:"h6"}},children:l.locales.noImagesAvailable})}):e.jsxRuntimeExports.jsxs(s.Stack,{sx:{default:{width:"100%",height:"100%",position:"relative",overflow:"hidden"}},children:[e.jsxRuntimeExports.jsx(o.AnimatePresence,{initial:!1,custom:I,children:e.jsxRuntimeExports.jsxs(i.SliderImage,{style:{overflow:"hidden",borderRadius:f},custom:I,variants:u,initial:"initial",animate:"active",exit:"exit",transition:c,...y?{}:{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.5,onDragEnd:(e,i)=>E(i)},children:[e.jsxRuntimeExports.jsx(t.Image,{sxStack:e=>({default:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.palette.black10,position:"absolute",pointerEvents:"none"}}),alt:null==(d=h[w])?void 0:d.imageSrc,src:null==(x=h[w])?void 0:x.imageSrc,componentFallback:e.jsxRuntimeExports.jsx(i.Typography,{sx:{default:{variant:"h6"}},children:l.locales.failedToLoad})}),null==(p=h[w])?void 0:p.children]},b)}),"function"==typeof(null==l?void 0:l.children)?null==(m=null==l?void 0:l.children)?void 0:m.call(l,{isDialog:!1}):null==l?void 0:l.children,!y&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(i.Button,{sx:{default:{position:"absolute",top:"50%",left:5,transform:"translateY(-50%)"}},genre:l.genre,size:l.size,icons:[{type:"id",name:"Arrow4",turn:90}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>R(-1)}),e.jsxRuntimeExports.jsx(i.Button,{sx:{default:{position:"absolute",top:"50%",right:5,transform:"translateY(-50%)"}},genre:l.genre,size:l.size,icons:[{type:"id",name:"Arrow4",turn:-90}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>R(1)}),e.jsxRuntimeExports.jsx(s.Stack,{sx:{default:{position:"absolute",bottom:5,left:"50%",transform:"translateX(-50%)",gap:"4px"}},children:h.map(t=>e.jsxRuntimeExports.jsx(i.SliderDot,{onClick:()=>k(t.id),initial:!1,animate:{scale:b===t.id?1.5:1,opacity:b===t.id?1:.5}},t.id))})]}),e.jsxRuntimeExports.jsx(i.Button,{sx:{default:{position:"absolute",bottom:5,right:5}},genre:l.genre,size:l.size,icons:[{type:"id",name:"Activity"}],isWidthAsHeight:!0,isHiddenBorder:!0,isRadius:!0,onClick:()=>S()})]})})};
|
|
2
|
-
//# sourceMappingURL=component.constants-hDTTnj7k.cjs.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./style-Df37KnoJ.cjs"),t=require("./style-fRZ6xrVp.cjs"),i=require("styled-components").img`
|
|
2
|
-
position: absolute;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
object-fit: cover;
|
|
6
|
-
opacity: ${e=>e.$isPending?0:1};
|
|
7
|
-
${e.addTransition};
|
|
8
|
-
${t.addSX};
|
|
9
|
-
`;exports.ImageIMG=i;
|
|
10
|
-
//# sourceMappingURL=component.styles-CNn9SMc9.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.styles-CNn9SMc9.cjs","sources":["../src/components/image/component.styles.tsx"],"sourcesContent":["import { addTransition } from '@local/styles/add';\nimport { addSX } from '@local/styles/sx';\n\nimport styled from 'styled-components';\n\nimport { ImageIMGProps } from '.';\n\nexport const ImageIMG = styled.img<ImageIMGProps>`\n position: absolute;\n width: 100%;\n height: 100%;\n object-fit: cover;\n opacity: ${(props) => (props.$isPending ? 0 : 1)};\n ${addTransition};\n ${addSX};\n`;\n"],"names":["ImageIMG","img","props","$isPending","addTransition","addSX"],"mappings":"uFAOaA,+BAAkBC,GAAA;;;;;aAKjBC,GAAWA,EAAMC,WAAa,EAAI;IAC5CC;IACAC;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { b as addTransition } from "./style-RL73t3JD.js";
|
|
2
|
-
import { a as addSX } from "./style-plT9Ah7t.js";
|
|
3
|
-
import styled from "styled-components";
|
|
4
|
-
const ImageIMG = styled.img`
|
|
5
|
-
position: absolute;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
object-fit: cover;
|
|
9
|
-
opacity: ${(props) => props.$isPending ? 0 : 1};
|
|
10
|
-
${addTransition};
|
|
11
|
-
${addSX};
|
|
12
|
-
`;
|
|
13
|
-
export {
|
|
14
|
-
ImageIMG as I
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=component.styles-eaocqYbA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.styles-eaocqYbA.js","sources":["../src/components/image/component.styles.tsx"],"sourcesContent":["import { addTransition } from '@local/styles/add';\nimport { addSX } from '@local/styles/sx';\n\nimport styled from 'styled-components';\n\nimport { ImageIMGProps } from '.';\n\nexport const ImageIMG = styled.img<ImageIMGProps>`\n position: absolute;\n width: 100%;\n height: 100%;\n object-fit: cover;\n opacity: ${(props) => (props.$isPending ? 0 : 1)};\n ${addTransition};\n ${addSX};\n`;\n"],"names":[],"mappings":";;;AAOO,MAAM,WAAW,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,aAKlB,CAAC,UAAW,MAAM,aAAa,IAAI,CAAE;AAAA,IAC9C,aAAa;AAAA,IACb,KAAK;AAAA;"}
|