@jenesei-software/jenesei-kit-react 1.3.20 → 1.3.22

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.
Files changed (214) hide show
  1. package/build/{area-DAgP6K9K.cjs → area-BG04bpxi.cjs} +2 -2
  2. package/build/{area-DAgP6K9K.cjs.map → area-BG04bpxi.cjs.map} +1 -1
  3. package/build/{area-CD8KKIM0.js → area-D4BoNEmX.js} +2 -2
  4. package/build/{area-CD8KKIM0.js.map → area-D4BoNEmX.js.map} +1 -1
  5. package/build/{area-BLgNLu9A.js → area-occQcGnD.js} +2 -2
  6. package/build/{area-BLgNLu9A.js.map → area-occQcGnD.js.map} +1 -1
  7. package/build/area-outside.cjs.js +1 -1
  8. package/build/area-outside.es.js +1 -1
  9. package/build/{area-Dup_lUb9.cjs → area-pCo19R2g.cjs} +2 -2
  10. package/build/{area-Dup_lUb9.cjs.map → area-pCo19R2g.cjs.map} +1 -1
  11. package/build/area-preview.cjs.js +1 -1
  12. package/build/area-preview.es.js +1 -1
  13. package/build/area-scroll.cjs.js +1 -1
  14. package/build/area-scroll.es.js +2 -2
  15. package/build/area-skeleton.cjs.js +1 -1
  16. package/build/area-skeleton.d.ts +6 -1
  17. package/build/area-skeleton.es.js +2 -3
  18. package/build/area-skeleton.es.js.map +1 -1
  19. package/build/area-smooth.cjs.js +1 -1
  20. package/build/area-smooth.es.js +1 -1
  21. package/build/{area.styles-DWqSyo49.js → area.styles-BSqCfPE4.js} +2 -2
  22. package/build/{area.styles-DWqSyo49.js.map → area.styles-BSqCfPE4.js.map} +1 -1
  23. package/build/area.styles-BuceLNra.cjs +27 -0
  24. package/build/{area.styles-DQBIvHdz.cjs.map → area.styles-BuceLNra.cjs.map} +1 -1
  25. package/build/build-info.txt +3 -3
  26. package/build/{component-D9Fz-_ZH.cjs → component-1kuvOkUa.cjs} +2 -2
  27. package/build/{component-D9Fz-_ZH.cjs.map → component-1kuvOkUa.cjs.map} +1 -1
  28. package/build/{component-DhCe6E21.js → component-31qgF6V7.js} +2 -2
  29. package/build/{component-DhCe6E21.js.map → component-31qgF6V7.js.map} +1 -1
  30. package/build/{component-GKvpOWlO.cjs → component-5Utdcc2G.cjs} +7 -7
  31. package/build/{component-GKvpOWlO.cjs.map → component-5Utdcc2G.cjs.map} +1 -1
  32. package/build/component-BF_RC9Ej.cjs +2 -0
  33. package/build/{component-IlhRGJHX.cjs.map → component-BF_RC9Ej.cjs.map} +1 -1
  34. package/build/{component-C-yqkm2n.cjs → component-BXCFqCtK.cjs} +2 -2
  35. package/build/{component-C-yqkm2n.cjs.map → component-BXCFqCtK.cjs.map} +1 -1
  36. package/build/component-BXhibaBj.cjs +2 -0
  37. package/build/{component-KwYlKatx.cjs.map → component-BXhibaBj.cjs.map} +1 -1
  38. package/build/{component-BX7rFpno.js → component-BnJWTOR7.js} +7 -8
  39. package/build/{component-BX7rFpno.js.map → component-BnJWTOR7.js.map} +1 -1
  40. package/build/{component-BLW4AlTi.cjs → component-Bv6UuRlj.cjs} +2 -2
  41. package/build/{component-BLW4AlTi.cjs.map → component-Bv6UuRlj.cjs.map} +1 -1
  42. package/build/{component-DyEa0lzB.js → component-C0Cy_U1j.js} +3 -3
  43. package/build/{component-DyEa0lzB.js.map → component-C0Cy_U1j.js.map} +1 -1
  44. package/build/{component-DF8wYX_U.js → component-C7Nffvkz.js} +3 -3
  45. package/build/{component-DF8wYX_U.js.map → component-C7Nffvkz.js.map} +1 -1
  46. package/build/{component-GqA6sCHI.cjs → component-CDa4aHfO.cjs} +2 -2
  47. package/build/{component-GqA6sCHI.cjs.map → component-CDa4aHfO.cjs.map} +1 -1
  48. package/build/{component-6hRanOkU.cjs → component-CLqcB5mM.cjs} +2 -2
  49. package/build/{component-6hRanOkU.cjs.map → component-CLqcB5mM.cjs.map} +1 -1
  50. package/build/{component-DpVp9dB1.js → component-CUiqQLEQ.js} +2 -2
  51. package/build/{component-DpVp9dB1.js.map → component-CUiqQLEQ.js.map} +1 -1
  52. package/build/{component-DXSNBORy.cjs → component-CYmkHAmE.cjs} +2 -2
  53. package/build/{component-DXSNBORy.cjs.map → component-CYmkHAmE.cjs.map} +1 -1
  54. package/build/{component-DerXrx9p.js → component-CaJK3Oq8.js} +2 -2
  55. package/build/{component-DerXrx9p.js.map → component-CaJK3Oq8.js.map} +1 -1
  56. package/build/{component-8NOxwZJO.cjs → component-Cc8X-Z80.cjs} +2 -2
  57. package/build/{component-8NOxwZJO.cjs.map → component-Cc8X-Z80.cjs.map} +1 -1
  58. package/build/{component-CHmCK6Bc.js → component-D4hkx75Z.js} +2 -2
  59. package/build/{component-CHmCK6Bc.js.map → component-D4hkx75Z.js.map} +1 -1
  60. package/build/{component-mzzOCXSx.js → component-DEZX8aBs.js} +2 -2
  61. package/build/{component-mzzOCXSx.js.map → component-DEZX8aBs.js.map} +1 -1
  62. package/build/{component-BtgXUCiJ.js → component-DHj3MVyO.js} +2 -2
  63. package/build/{component-BtgXUCiJ.js.map → component-DHj3MVyO.js.map} +1 -1
  64. package/build/{component-DQrnK2Bj.js → component-DLEbIbn9.js} +3 -3
  65. package/build/{component-DQrnK2Bj.js.map → component-DLEbIbn9.js.map} +1 -1
  66. package/build/{component-Cr62wN62.js → component-DwFwB6Zz.js} +2 -2
  67. package/build/{component-Cr62wN62.js.map → component-DwFwB6Zz.js.map} +1 -1
  68. package/build/{component-BLa80fGE.cjs → component-GiB9SJbH.cjs} +2 -2
  69. package/build/{component-BLa80fGE.cjs.map → component-GiB9SJbH.cjs.map} +1 -1
  70. package/build/{component-Ds6eJznV.cjs → component-JIJwPwrc.cjs} +2 -2
  71. package/build/{component-Ds6eJznV.cjs.map → component-JIJwPwrc.cjs.map} +1 -1
  72. package/build/{component-C56biWpi.js → component-JQMDepCj.js} +3 -5
  73. package/build/{component-C56biWpi.js.map → component-JQMDepCj.js.map} +1 -1
  74. package/build/{component-DDVjxLvn.js → component-RXfJR8yQ.js} +3 -3
  75. package/build/{component-DDVjxLvn.js.map → component-RXfJR8yQ.js.map} +1 -1
  76. package/build/component-accordion.cjs.js +1 -1
  77. package/build/component-accordion.d.ts +1 -1
  78. package/build/component-accordion.es.js +6 -6
  79. package/build/component-button-group.cjs.js +1 -1
  80. package/build/component-button-group.es.js +3 -3
  81. package/build/component-button.cjs.js +1 -1
  82. package/build/component-button.es.js +3 -3
  83. package/build/component-checkbox-group.cjs.js +1 -1
  84. package/build/component-checkbox-group.es.js +8 -8
  85. package/build/component-checkbox.cjs.js +1 -1
  86. package/build/component-checkbox.es.js +5 -5
  87. package/build/component-date-picker.cjs.js +1 -1
  88. package/build/component-date-picker.es.js +13 -13
  89. package/build/component-icon.cjs.js +1 -1
  90. package/build/component-icon.d.ts +16 -3
  91. package/build/component-icon.es.js +6 -5
  92. package/build/component-image-button.cjs.js +1 -1
  93. package/build/component-image-button.es.js +1 -1
  94. package/build/component-image-select.cjs.js +1 -1
  95. package/build/component-image-select.es.js +8 -8
  96. package/build/component-image-slider.cjs.js +1 -1
  97. package/build/component-image-slider.es.js +4 -4
  98. package/build/component-image.cjs.js +1 -1
  99. package/build/component-image.es.js +3 -3
  100. package/build/component-input-otp.cjs.js +1 -1
  101. package/build/component-input-otp.es.js +5 -5
  102. package/build/component-input.cjs.js +1 -1
  103. package/build/component-input.es.js +15 -15
  104. package/build/{component-DP42Uzl2.cjs → component-jH7YXK4X.cjs} +2 -2
  105. package/build/{component-DP42Uzl2.cjs.map → component-jH7YXK4X.cjs.map} +1 -1
  106. package/build/component-map.cjs.js +1 -1
  107. package/build/component-map.es.js +8 -8
  108. package/build/component-pagination.cjs.js +1 -1
  109. package/build/component-pagination.es.js +1 -1
  110. package/build/component-range.cjs.js +1 -1
  111. package/build/component-range.es.js +5 -5
  112. package/build/component-ripple.cjs.js +1 -1
  113. package/build/component-select.cjs.js +1 -1
  114. package/build/component-select.d.ts +1 -1
  115. package/build/component-select.es.js +18 -18
  116. package/build/component-separator.cjs.js +1 -1
  117. package/build/component-stack.cjs.js +1 -1
  118. package/build/component-stack.es.js +1 -1
  119. package/build/component-textarea.cjs.js +1 -1
  120. package/build/component-textarea.es.js +5 -5
  121. package/build/component-toggle.cjs.js +1 -1
  122. package/build/component-toggle.es.js +4 -4
  123. package/build/component-tooltip.cjs.js +1 -1
  124. package/build/component-tooltip.es.js +9 -9
  125. package/build/component-typography.cjs.js +1 -1
  126. package/build/component-typography.d.ts +2 -0
  127. package/build/component-typography.es.js +6 -6
  128. package/build/{component-DdSHuopV.cjs → component-ySx7l0Xg.cjs} +2 -2
  129. package/build/{component-DdSHuopV.cjs.map → component-ySx7l0Xg.cjs.map} +1 -1
  130. package/build/{component.components-DlJ9rcRL.js → component.components-DKDMKKNb.js} +2 -2
  131. package/build/{component.components-DlJ9rcRL.js.map → component.components-DKDMKKNb.js.map} +1 -1
  132. package/build/{component.components-B6FC2-ox.cjs → component.components-DzoKT5j9.cjs} +2 -2
  133. package/build/{component.components-B6FC2-ox.cjs.map → component.components-DzoKT5j9.cjs.map} +1 -1
  134. package/build/{component.constants-B-ZUZwuJ.js → component.constants-BMz7bhlw.js} +3 -3
  135. package/build/{component.constants-B-ZUZwuJ.js.map → component.constants-BMz7bhlw.js.map} +1 -1
  136. package/build/{component.constants-DwSQ9oe4.js → component.constants-Bgm_xB87.js} +6 -7
  137. package/build/{component.constants-DwSQ9oe4.js.map → component.constants-Bgm_xB87.js.map} +1 -1
  138. package/build/component.constants-C0oGZ1iR.cjs +2 -0
  139. package/build/{component.constants-hDTTnj7k.cjs.map → component.constants-C0oGZ1iR.cjs.map} +1 -1
  140. package/build/{component.constants-DiCmqOri.cjs → component.constants-DZyqQi6L.cjs} +2 -2
  141. package/build/{component.constants-DiCmqOri.cjs.map → component.constants-DZyqQi6L.cjs.map} +1 -1
  142. package/build/{component.types-DFRLIpd6.js → component.types-D_tW7ArD.js} +3 -3
  143. package/build/{component.types-DFRLIpd6.js.map → component.types-D_tW7ArD.js.map} +1 -1
  144. package/build/{component.types-CYtUJDuN.cjs → component.types-ZmH2V3qe.cjs} +2 -2
  145. package/build/{component.types-CYtUJDuN.cjs.map → component.types-ZmH2V3qe.cjs.map} +1 -1
  146. package/build/consts.cjs.js +1 -1
  147. package/build/consts.es.js +1 -1
  148. package/build/context-app.cjs.js +1 -1
  149. package/build/context-app.es.js +17 -17
  150. package/build/context-dialog.cjs.js +1 -1
  151. package/build/context-dialog.es.js +2 -2
  152. package/build/context-sonner.cjs.js +1 -1
  153. package/build/context-sonner.es.js +18 -18
  154. package/build/{context.constants-C5Unln0I.js → context.constants-AVloP24q.js} +308 -194
  155. package/build/context.constants-AVloP24q.js.map +1 -0
  156. package/build/{context.constants-CaDW-QGJ.js → context.constants-CZykW9B3.js} +3 -3
  157. package/build/{context.constants-CaDW-QGJ.js.map → context.constants-CZykW9B3.js.map} +1 -1
  158. package/build/context.constants-wfD246Ww.cjs +1739 -0
  159. package/build/context.constants-wfD246Ww.cjs.map +1 -0
  160. package/build/{context.constants-CRxCVRKK.cjs → context.constants-wztrdG5Q.cjs} +2 -2
  161. package/build/{context.constants-CRxCVRKK.cjs.map → context.constants-wztrdG5Q.cjs.map} +1 -1
  162. package/build/{context.hooks-CKO6mDS-.js → context.hooks-BsMIDkb3.js} +2 -2
  163. package/build/{context.hooks-CKO6mDS-.js.map → context.hooks-BsMIDkb3.js.map} +1 -1
  164. package/build/{context.hooks-B2vWSael.js → context.hooks-CQXyg8Md.js} +2 -2
  165. package/build/{context.hooks-B2vWSael.js.map → context.hooks-CQXyg8Md.js.map} +1 -1
  166. package/build/{context.hooks-PU-CST61.cjs → context.hooks-CXSsHfiI.cjs} +2 -2
  167. package/build/{context.hooks-PU-CST61.cjs.map → context.hooks-CXSsHfiI.cjs.map} +1 -1
  168. package/build/{context.hooks-Bj9FlQEC.js → context.hooks-D0OtRPb7.js} +2 -2
  169. package/build/{context.hooks-Bj9FlQEC.js.map → context.hooks-D0OtRPb7.js.map} +1 -1
  170. package/build/{context.hooks-ByjHt-DO.cjs → context.hooks-DDtUqE34.cjs} +2 -2
  171. package/build/{context.hooks-ByjHt-DO.cjs.map → context.hooks-DDtUqE34.cjs.map} +1 -1
  172. package/build/{context.hooks-BfmhHvrX.cjs → context.hooks-L-OO9FIg.cjs} +2 -2
  173. package/build/{context.hooks-BfmhHvrX.cjs.map → context.hooks-L-OO9FIg.cjs.map} +1 -1
  174. package/build/index.cjs.js +1 -1
  175. package/build/index.d.ts +25 -7
  176. package/build/index.es.js +197 -198
  177. package/build/index.es.js.map +1 -1
  178. package/build/{style-RL73t3JD.js → style-BfuEu91g.js} +14 -8
  179. package/build/style-BfuEu91g.js.map +1 -0
  180. package/build/{style-Df37KnoJ.cjs → style-Drq-Q1Im.cjs} +12 -8
  181. package/build/style-Drq-Q1Im.cjs.map +1 -0
  182. package/build/style-add.cjs.js +1 -1
  183. package/build/style-add.d.ts +4 -0
  184. package/build/style-add.es.js +9 -8
  185. package/build/style-error.cjs.js +1 -1
  186. package/build/style-error.es.js +4 -4
  187. package/build/style-theme.cjs.js +1 -1
  188. package/build/style-theme.es.js +13 -13
  189. package/build/{use-7TZR9yNq.js → use-B4ELG6B3.js} +6 -6
  190. package/build/{use-7TZR9yNq.js.map → use-B4ELG6B3.js.map} +1 -1
  191. package/build/{use-DNJlP5ji.cjs → use-fcNoM5UL.cjs} +3 -3
  192. package/build/{use-DNJlP5ji.cjs.map → use-fcNoM5UL.cjs.map} +1 -1
  193. package/package.json +1 -1
  194. package/build/area-C5QUBcb-.js +0 -26
  195. package/build/area-C5QUBcb-.js.map +0 -1
  196. package/build/area-k8GR7Khj.cjs +0 -2
  197. package/build/area-k8GR7Khj.cjs.map +0 -1
  198. package/build/area.styles-BJCDsTi3.js +0 -46
  199. package/build/area.styles-BJCDsTi3.js.map +0 -1
  200. package/build/area.styles-CtrTLcAj.cjs +0 -40
  201. package/build/area.styles-CtrTLcAj.cjs.map +0 -1
  202. package/build/area.styles-DQBIvHdz.cjs +0 -27
  203. package/build/component-IlhRGJHX.cjs +0 -2
  204. package/build/component-KwYlKatx.cjs +0 -2
  205. package/build/component.constants-hDTTnj7k.cjs +0 -2
  206. package/build/component.styles-CNn9SMc9.cjs +0 -10
  207. package/build/component.styles-CNn9SMc9.cjs.map +0 -1
  208. package/build/component.styles-eaocqYbA.js +0 -16
  209. package/build/component.styles-eaocqYbA.js.map +0 -1
  210. package/build/context.constants-C5Unln0I.js.map +0 -1
  211. package/build/context.constants-DSfxf3ST.cjs +0 -1692
  212. package/build/context.constants-DSfxf3ST.cjs.map +0 -1
  213. package/build/style-Df37KnoJ.cjs.map +0 -1
  214. package/build/style-RL73t3JD.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Cyril Strone",
3
3
  "name": "@jenesei-software/jenesei-kit-react",
4
- "version": "1.3.20",
4
+ "version": "1.3.22",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/jenesei-software/jenesei-kit-react.git"
@@ -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;"}
@@ -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;"}