@okam/stack-ui 1.29.1 → 1.30.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.
Files changed (412) hide show
  1. package/components/Accordion/components/AccordionItem.d.ts +1 -0
  2. package/components/Accordion/index.d.ts +2 -1
  3. package/components/Accordion/interface.d.ts +3 -2
  4. package/components/Alerts/components/AlertsCloseButton.d.ts +1 -1
  5. package/components/Alerts/index.d.ts +2 -1
  6. package/components/Alerts/interface.d.ts +4 -3
  7. package/components/Box/index.d.ts +3 -2
  8. package/components/Button/index.d.ts +8 -4
  9. package/components/Button/interface.d.ts +3 -2
  10. package/components/Calendar/index.d.ts +5 -1
  11. package/components/Calendar/interface.d.ts +2 -1
  12. package/components/Carousel/components/CarouselNavigationButton.d.ts +3 -3
  13. package/components/Date/index.d.ts +2 -1
  14. package/components/Date/interface.d.ts +2 -1
  15. package/components/Icon/index.d.ts +2 -1
  16. package/components/Icon/interface.d.ts +2 -1
  17. package/components/Lightbox/hooks/overlay/index.d.ts +75 -0
  18. package/components/Lightbox/index.d.ts +2 -1
  19. package/components/Lightbox/interface.d.ts +3 -2
  20. package/components/Menu/Menu.d.ts +2 -1
  21. package/components/Menu/interface.d.ts +5 -4
  22. package/components/Modal/index.d.ts +2 -1
  23. package/components/Modal/interface.d.ts +2 -1
  24. package/components/Popover/index.d.ts +2 -1
  25. package/components/Popover/interface.d.ts +3 -2
  26. package/components/ShareButton/index.d.ts +2 -1
  27. package/components/ShareButton/interface.d.ts +2 -2
  28. package/components/SidePanel/index.d.ts +3 -3
  29. package/components/SidePanel/interface.d.ts +5 -4
  30. package/components/Typography/index.d.ts +3 -2
  31. package/components/Video/index.d.ts +2 -1
  32. package/components/Video/interface.d.ts +2 -1
  33. package/components/WysiwygBlock/index.d.ts +2 -1
  34. package/components/WysiwygBlock/interface.d.ts +2 -1
  35. package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
  36. package/components/fields/Checkbox/index.d.ts +2 -1
  37. package/components/fields/CheckboxGroup/index.d.ts +2 -1
  38. package/components/fields/CheckboxGroup/interface.d.ts +2 -1
  39. package/components/fields/DatePicker/index.d.ts +2 -1
  40. package/components/fields/DatePicker/interface.d.ts +2 -1
  41. package/components/fields/Radio/Radio.interface.d.ts +3 -2
  42. package/components/fields/Radio/index.d.ts +3 -2
  43. package/components/fields/RadioGroup/index.d.ts +2 -1
  44. package/components/fields/RadioGroup/interface.d.ts +2 -1
  45. package/components/fields/SearchField/index.d.ts +2 -1
  46. package/components/fields/SearchField/interface.d.ts +2 -1
  47. package/components/fields/Select/Select.d.ts +2 -1
  48. package/components/fields/Select/Select.interface.d.ts +3 -2
  49. package/components/fields/TextArea/index.d.ts +2 -1
  50. package/components/fields/TextInputField/interface.d.ts +3 -2
  51. package/index.d.ts +1 -0
  52. package/index.js +1 -1
  53. package/index.mjs +41 -38
  54. package/index100.js +1 -2
  55. package/index100.mjs +22 -21
  56. package/index101.js +2 -1
  57. package/index101.mjs +22 -63
  58. package/index102.js +1 -1
  59. package/index102.mjs +58 -24
  60. package/index103.js +1 -1
  61. package/index103.mjs +29 -52
  62. package/index104.js +1 -1
  63. package/index104.mjs +52 -4
  64. package/index105.js +1 -1
  65. package/index105.mjs +4 -11
  66. package/index106.js +1 -1
  67. package/index106.mjs +11 -14
  68. package/index107.js +1 -1
  69. package/index107.mjs +13 -22
  70. package/index108.js +1 -1
  71. package/index108.mjs +19 -19
  72. package/index109.js +1 -1
  73. package/index109.mjs +22 -38
  74. package/index11.js +1 -1
  75. package/index11.mjs +2 -2
  76. package/index110.js +1 -2
  77. package/index110.mjs +38 -12
  78. package/index111.js +2 -1
  79. package/index111.mjs +12 -7
  80. package/index112.js +1 -1
  81. package/index112.mjs +7 -21
  82. package/index113.js +1 -1
  83. package/index113.mjs +21 -38
  84. package/index114.js +1 -1
  85. package/index114.mjs +38 -49
  86. package/index115.js +1 -1
  87. package/index115.mjs +49 -40
  88. package/index116.js +1 -1
  89. package/index116.mjs +40 -13
  90. package/index117.js +1 -1
  91. package/index117.mjs +14 -26
  92. package/index118.js +1 -1
  93. package/index118.mjs +29 -18
  94. package/index119.js +1 -1
  95. package/index119.mjs +19 -8
  96. package/index120.js +1 -1
  97. package/index120.mjs +9 -30
  98. package/index121.js +1 -1
  99. package/index121.mjs +30 -15
  100. package/index122.js +1 -1
  101. package/index122.mjs +13 -15
  102. package/index123.js +1 -1
  103. package/index123.mjs +17 -21
  104. package/index124.js +1 -1
  105. package/index124.mjs +21 -11
  106. package/index125.js +1 -2
  107. package/index125.mjs +11 -22
  108. package/index126.js +2 -1
  109. package/index126.mjs +22 -12
  110. package/index127.js +1 -1
  111. package/index127.mjs +12 -46
  112. package/index128.js +1 -1
  113. package/index128.mjs +46 -241
  114. package/index129.js +1 -2
  115. package/index129.mjs +241 -13
  116. package/index13.js +1 -1
  117. package/index13.mjs +1 -1
  118. package/index130.js +2 -1
  119. package/index130.mjs +12 -29
  120. package/index131.js +1 -1
  121. package/index131.mjs +30 -51
  122. package/index132.js +1 -1
  123. package/index132.mjs +49 -25
  124. package/index133.js +1 -1
  125. package/index133.mjs +25 -19
  126. package/index134.js +1 -1
  127. package/index134.mjs +17 -58
  128. package/index135.js +1 -1
  129. package/index135.mjs +57 -90
  130. package/index136.js +1 -1
  131. package/index136.mjs +91 -28
  132. package/index137.js +1 -1
  133. package/index137.mjs +31 -119
  134. package/index138.js +1 -1
  135. package/index138.mjs +119 -25
  136. package/index139.js +1 -1
  137. package/index139.mjs +25 -122
  138. package/index14.js +1 -1
  139. package/index14.mjs +3 -3
  140. package/index140.js +1 -1
  141. package/index140.mjs +122 -132
  142. package/index141.js +1 -1
  143. package/index141.mjs +132 -12
  144. package/index142.js +1 -1
  145. package/index142.mjs +12 -93
  146. package/index143.js +1 -1
  147. package/index143.mjs +87 -98
  148. package/index144.js +1 -1
  149. package/index144.mjs +106 -5
  150. package/index145.js +1 -1
  151. package/index145.mjs +5 -3
  152. package/index146.js +1 -1
  153. package/index146.mjs +3 -125
  154. package/index147.js +1 -1
  155. package/index147.mjs +117 -21
  156. package/index148.js +1 -1
  157. package/index148.mjs +15 -37
  158. package/index149.js +1 -1
  159. package/index149.mjs +41 -34
  160. package/index150.js +1 -1
  161. package/index150.mjs +32 -25
  162. package/index151.js +1 -1
  163. package/index151.mjs +22 -98
  164. package/index152.js +1 -1
  165. package/index152.mjs +99 -63
  166. package/index153.js +1 -1
  167. package/index153.mjs +55 -79
  168. package/index154.js +1 -1
  169. package/index154.mjs +102 -98
  170. package/index155.js +1 -1
  171. package/index155.mjs +98 -200
  172. package/index156.js +1 -1
  173. package/index156.mjs +186 -51
  174. package/index157.js +1 -1
  175. package/index157.mjs +51 -128
  176. package/index158.js +1 -1
  177. package/index158.mjs +129 -107
  178. package/index159.js +1 -1
  179. package/index159.mjs +101 -199
  180. package/index16.js +1 -1
  181. package/index16.mjs +2 -2
  182. package/index160.js +1 -1
  183. package/index160.mjs +198 -171
  184. package/index161.js +1 -1
  185. package/index161.mjs +182 -61
  186. package/index162.js +1 -1
  187. package/index162.mjs +60 -249
  188. package/index163.js +1 -1
  189. package/index163.mjs +249 -88
  190. package/index164.js +1 -1
  191. package/index164.mjs +93 -170
  192. package/index165.js +1 -1
  193. package/index165.mjs +170 -80
  194. package/index166.js +1 -1
  195. package/index166.mjs +75 -49
  196. package/index167.js +1 -1
  197. package/index167.mjs +49 -117
  198. package/index168.js +1 -1
  199. package/index168.mjs +118 -108
  200. package/index169.js +1 -1
  201. package/index169.mjs +106 -112
  202. package/index170.js +1 -1
  203. package/index170.mjs +113 -63
  204. package/index171.js +1 -1
  205. package/index171.mjs +70 -108
  206. package/index172.js +1 -1
  207. package/index172.mjs +108 -50
  208. package/index173.js +1 -1
  209. package/index173.mjs +34 -75
  210. package/index174.js +1 -1
  211. package/index174.mjs +71 -48
  212. package/index175.js +1 -1
  213. package/index175.mjs +57 -43
  214. package/index176.js +1 -1
  215. package/index176.mjs +43 -86
  216. package/index177.js +1 -5
  217. package/index177.mjs +81 -62
  218. package/index178.js +5 -1
  219. package/index178.mjs +72 -2003
  220. package/index179.js +1 -1
  221. package/index179.mjs +2006 -54
  222. package/index18.js +1 -1
  223. package/index18.mjs +7 -7
  224. package/index180.js +1 -1
  225. package/index180.mjs +56 -185
  226. package/index181.js +1 -1
  227. package/index181.mjs +188 -5
  228. package/index182.js +1 -1
  229. package/index182.mjs +5 -130
  230. package/index183.js +1 -1
  231. package/index183.mjs +123 -172
  232. package/index184.js +1 -1
  233. package/index184.mjs +178 -8
  234. package/index185.js +1 -1
  235. package/index185.mjs +9 -3
  236. package/index186.js +1 -1
  237. package/index186.mjs +3 -36
  238. package/index187.js +1 -1
  239. package/index187.mjs +36 -5
  240. package/index188.js +1 -1
  241. package/index188.mjs +5 -29
  242. package/index189.js +1 -1
  243. package/index189.mjs +29 -6
  244. package/index19.js +1 -1
  245. package/index19.mjs +2 -2
  246. package/index190.js +1 -1
  247. package/index190.mjs +6 -313
  248. package/index191.js +1 -1
  249. package/index191.mjs +327 -179
  250. package/index192.js +1 -1
  251. package/index192.mjs +183 -8
  252. package/index193.js +1 -1
  253. package/index193.mjs +7 -25
  254. package/index194.js +1 -1
  255. package/index194.mjs +26 -55
  256. package/index195.js +1 -1
  257. package/index195.mjs +55 -46
  258. package/index196.js +1 -1
  259. package/index196.mjs +45 -123
  260. package/index197.js +1 -1
  261. package/index197.mjs +110 -5
  262. package/index198.js +1 -1
  263. package/index198.mjs +31 -27
  264. package/index199.js +1 -1
  265. package/index199.mjs +6 -7
  266. package/index2.js +1 -1
  267. package/index2.mjs +19 -19
  268. package/index20.js +1 -1
  269. package/index20.mjs +1 -1
  270. package/index200.js +1 -1
  271. package/index200.mjs +28 -7
  272. package/index201.js +1 -1
  273. package/index201.mjs +7 -8
  274. package/index202.js +1 -1
  275. package/index202.mjs +6 -3
  276. package/index203.js +1 -1
  277. package/index203.mjs +7 -5
  278. package/index204.js +1 -1
  279. package/index204.mjs +4 -9
  280. package/index205.js +1 -0
  281. package/index205.mjs +8 -0
  282. package/index206.js +1 -0
  283. package/index206.mjs +12 -0
  284. package/index21.js +1 -1
  285. package/index21.mjs +8 -8
  286. package/index22.js +1 -1
  287. package/index22.mjs +2 -2
  288. package/index23.js +1 -1
  289. package/index23.mjs +3 -3
  290. package/index24.js +1 -1
  291. package/index24.mjs +14 -14
  292. package/index26.js +1 -1
  293. package/index26.mjs +28 -21
  294. package/index27.js +1 -1
  295. package/index27.mjs +12 -12
  296. package/index28.js +1 -1
  297. package/index28.mjs +6 -6
  298. package/index29.js +1 -1
  299. package/index29.mjs +1 -1
  300. package/index30.js +1 -1
  301. package/index30.mjs +14 -8
  302. package/index31.js +1 -1
  303. package/index31.mjs +18 -18
  304. package/index32.js +1 -1
  305. package/index32.mjs +1 -1
  306. package/index33.mjs +43 -43
  307. package/index34.js +1 -1
  308. package/index34.mjs +1 -1
  309. package/index35.js +1 -1
  310. package/index35.mjs +3 -3
  311. package/index36.mjs +10 -10
  312. package/index4.js +1 -1
  313. package/index4.mjs +3 -3
  314. package/index6.js +1 -1
  315. package/index6.mjs +34 -33
  316. package/index65.js +1 -1
  317. package/index65.mjs +1 -1
  318. package/index66.js +1 -1
  319. package/index66.mjs +2 -2
  320. package/index67.js +1 -1
  321. package/index67.mjs +1 -1
  322. package/index69.js +1 -1
  323. package/index69.mjs +1 -1
  324. package/index7.mjs +4 -4
  325. package/index70.js +1 -1
  326. package/index70.mjs +1 -1
  327. package/index71.js +1 -1
  328. package/index71.mjs +1 -1
  329. package/index72.js +2 -1
  330. package/index72.mjs +27 -2
  331. package/index73.js +1 -2
  332. package/index73.mjs +2 -9
  333. package/index74.js +1 -1
  334. package/index74.mjs +7 -6
  335. package/index75.js +1 -1
  336. package/index75.mjs +6 -6
  337. package/index76.js +1 -1
  338. package/index76.mjs +6 -6
  339. package/index77.js +2 -1
  340. package/index77.mjs +8 -25
  341. package/index78.js +1 -1
  342. package/index78.mjs +25 -2
  343. package/index79.js +1 -6
  344. package/index79.mjs +2 -94
  345. package/index8.js +1 -1
  346. package/index8.mjs +42 -23
  347. package/index80.js +6 -1
  348. package/index80.mjs +79 -54
  349. package/index81.js +1 -1
  350. package/index81.mjs +61 -33
  351. package/index82.js +1 -42
  352. package/index82.mjs +34 -67
  353. package/index83.js +42 -1
  354. package/index83.mjs +69 -154
  355. package/index84.js +1 -9
  356. package/index84.mjs +149 -47
  357. package/index85.js +9 -1
  358. package/index85.mjs +48 -36
  359. package/index86.js +1 -1
  360. package/index86.mjs +40 -8
  361. package/index87.js +1 -1
  362. package/index87.mjs +9 -31
  363. package/index88.js +1 -1
  364. package/index88.mjs +35 -6
  365. package/index89.js +1 -12
  366. package/index89.mjs +6 -40
  367. package/index9.js +1 -1
  368. package/index9.mjs +7 -7
  369. package/index90.js +12 -1
  370. package/index90.mjs +36 -25
  371. package/index91.js +1 -1
  372. package/index91.mjs +24 -8
  373. package/index92.js +1 -7
  374. package/index92.mjs +7 -13
  375. package/index93.js +6 -14
  376. package/index93.mjs +13 -65
  377. package/index94.js +15 -1
  378. package/index94.mjs +71 -7
  379. package/index95.js +1 -16
  380. package/index95.mjs +7 -25
  381. package/index96.js +16 -1
  382. package/index96.mjs +20 -37
  383. package/index97.js +1 -1
  384. package/index97.mjs +40 -43
  385. package/index98.js +1 -1
  386. package/index98.mjs +44 -47
  387. package/index99.js +1 -1
  388. package/index99.mjs +48 -17
  389. package/package.json +1 -1
  390. package/providers/Translation/index.d.ts +4 -0
  391. package/providers/Translation/interface.d.ts +16 -0
  392. package/theme/Accordion/index.d.ts +12 -12
  393. package/theme/Alerts/index.d.ts +22 -22
  394. package/theme/Box/index.d.ts +8 -8
  395. package/theme/Button/index.d.ts +2 -2
  396. package/theme/Calendar/index.d.ts +12 -12
  397. package/theme/Carousel/index.d.ts +11 -11
  398. package/theme/Checkbox/index.d.ts +8 -8
  399. package/theme/CheckboxGroup/index.d.ts +3 -3
  400. package/theme/DatePicker/index.d.ts +9 -9
  401. package/theme/Image/index.d.ts +1 -1
  402. package/theme/LightBox/index.d.ts +9 -9
  403. package/theme/Radio/index.d.ts +6 -6
  404. package/theme/RadioGroup/index.d.ts +3 -3
  405. package/theme/Search/index.d.ts +3 -3
  406. package/theme/ShareButton/index.d.ts +10 -10
  407. package/theme/SidePanel/index.d.ts +3 -3
  408. package/theme/TextArea/index.d.ts +2 -2
  409. package/theme/Typography/index.d.ts +2 -2
  410. package/transitions/ModalTransition.d.ts +3 -6
  411. package/transitions/RenderWithSlide.d.ts +3 -6
  412. package/transitions/SidePanelTransition.d.ts +3 -6
package/index123.mjs CHANGED
@@ -1,23 +1,19 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useTabPanel as m } from "./index133.mjs";
3
- import c from "react";
4
- import p from "./index121.mjs";
5
- import { BoxWithForwardRef as s } from "./index25.mjs";
6
- function x({ state: e, customTheme: a, themeName: i = "tabPanel", tokens: n, ...f }) {
7
- var t;
8
- const r = c.useRef(null), { tabPanelProps: l } = m(f, e, r);
9
- return /* @__PURE__ */ o(p, { isVisible: !0, children: /* @__PURE__ */ o(
10
- s,
11
- {
12
- themeName: `${i}`,
13
- tokens: n,
14
- customTheme: a,
15
- ...l,
16
- ref: r,
17
- children: (t = e.selectedItem) == null ? void 0 : t.props.children
18
- }
19
- ) });
20
- }
1
+ import { jsxs as l, Fragment as f, jsx as s } from "react/jsx-runtime";
2
+ import { useMenu as h } from "./index67.mjs";
3
+ import c from "./index25.mjs";
4
+ import d from "./index34.mjs";
5
+ const T = (i) => {
6
+ var a;
7
+ const { themeName: e, tokens: t, customTheme: n, children: p, beforeTabContent: o, afterTabContent: m } = i, { tabState: r, defaultSelectedKey: u } = h();
8
+ return /* @__PURE__ */ l(f, { children: [
9
+ /* @__PURE__ */ s(c, { themeName: `${e}.wrapper`, tokens: t, customTheme: n, children: p }),
10
+ ((a = r == null ? void 0 : r.selectedKey) == null ? void 0 : a.toString()) === u ? null : /* @__PURE__ */ l(c, { themeName: `${e}.tabWrapper`, tokens: t, customTheme: n, children: [
11
+ o !== null && o,
12
+ /* @__PURE__ */ s(d, { themeName: `${e}.tabPanel`, tokens: t, customTheme: n }),
13
+ m !== null && m
14
+ ] })
15
+ ] });
16
+ };
21
17
  export {
22
- x as default
18
+ T as default
23
19
  };
package/index124.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index14.js"),l=require("./index45.js"),t=i.forwardRef((r,s)=>{const{themeName:n="alerts.closeBtn",...o}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:n,...o,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
1
+ "use strict";const t=require("react/jsx-runtime"),o=require("./index134.js"),l=require("react"),d=require("./index122.js"),b=require("./index25.js");function h({state:e,customTheme:s,themeName:i="tabPanel",tokens:c,...u}){var n;const r=l.useRef(null),{tabPanelProps:a}=o.useTabPanel(u,e,r);return t.jsx(d,{isVisible:!0,children:t.jsx(b.BoxWithForwardRef,{themeName:`${i}`,tokens:c,customTheme:s,...a,ref:r,children:(n=e.selectedItem)==null?void 0:n.props.children})})}module.exports=h;
package/index124.mjs CHANGED
@@ -1,13 +1,23 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
3
- import { ButtonWithForwardRef as n } from "./index6.mjs";
4
- import i from "./index14.mjs";
5
- import l from "./index45.mjs";
6
- const a = m((o, r) => {
7
- const { themeName: e = "alerts.closeBtn", ...s } = o;
8
- return /* @__PURE__ */ t(n, { ref: r, themeName: e, ...s, children: /* @__PURE__ */ t(i, { icon: /* @__PURE__ */ t(l, {}) }) });
9
- });
10
- a.displayName = "AlertsCloseButton";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useTabPanel as m } from "./index134.mjs";
3
+ import c from "react";
4
+ import p from "./index122.mjs";
5
+ import { BoxWithForwardRef as s } from "./index25.mjs";
6
+ function x({ state: e, customTheme: a, themeName: i = "tabPanel", tokens: n, ...f }) {
7
+ var t;
8
+ const r = c.useRef(null), { tabPanelProps: l } = m(f, e, r);
9
+ return /* @__PURE__ */ o(p, { isVisible: !0, children: /* @__PURE__ */ o(
10
+ s,
11
+ {
12
+ themeName: `${i}`,
13
+ tokens: n,
14
+ customTheme: a,
15
+ ...l,
16
+ ref: r,
17
+ children: (t = e.selectedItem) == null ? void 0 : t.props.children
18
+ }
19
+ ) });
20
+ }
11
21
  export {
12
- a as default
22
+ x as default
13
23
  };
package/index125.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");function n(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);if(t===void 0)throw new Error("useCtx must be inside a Provider");return t}return[o,e.Provider]}function u(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);return t===void 0?{}:t}return[o,e.Provider]}exports.createCtxNullable=u;exports.default=n;
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index14.js"),l=require("./index45.js"),t=i.forwardRef((r,s)=>{const{themeName:n="alerts.closeBtn",...o}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:n,...o,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
package/index125.mjs CHANGED
@@ -1,24 +1,13 @@
1
- "use client";
2
- import r from "react";
3
- function u() {
4
- const t = r.createContext(void 0);
5
- function o() {
6
- const e = r.useContext(t);
7
- if (e === void 0)
8
- throw new Error("useCtx must be inside a Provider");
9
- return e;
10
- }
11
- return [o, t.Provider];
12
- }
13
- function c() {
14
- const t = r.createContext(void 0);
15
- function o() {
16
- const e = r.useContext(t);
17
- return e === void 0 ? {} : e;
18
- }
19
- return [o, t.Provider];
20
- }
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { ButtonWithForwardRef as n } from "./index6.mjs";
4
+ import i from "./index14.mjs";
5
+ import l from "./index45.mjs";
6
+ const a = m((o, r) => {
7
+ const { themeName: e = "alerts.closeBtn", ...s } = o;
8
+ return /* @__PURE__ */ t(n, { ref: r, themeName: e, ...s, children: /* @__PURE__ */ t(i, { icon: /* @__PURE__ */ t(l, {}) }) });
9
+ });
10
+ a.displayName = "AlertsCloseButton";
21
11
  export {
22
- c as createCtxNullable,
23
- u as default
12
+ a as default
24
13
  };
package/index126.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const g=require("react/jsx-runtime"),e=require("react-spring"),T=require("./index64.js"),u=t=>{const{isVisible:o,children:r,themeName:i,tokens:n,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=T(i,n,s);return d((c,p)=>p&&g.jsx(e.animated.div,{...a,style:c,className:m,children:r}))};module.exports=u;
1
+ "use client";
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");function n(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);if(t===void 0)throw new Error("useCtx must be inside a Provider");return t}return[o,e.Provider]}function u(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);return t===void 0?{}:t}return[o,e.Provider]}exports.createCtxNullable=u;exports.default=n;
package/index126.mjs CHANGED
@@ -1,14 +1,24 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import { useTransition as c, animated as g } from "react-spring";
3
- import l from "./index64.mjs";
4
- const w = (e) => {
5
- const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
- from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
7
- enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
8
- leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
9
- }), a = l(r, i, n);
10
- return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
11
- };
1
+ "use client";
2
+ import r from "react";
3
+ function u() {
4
+ const t = r.createContext(void 0);
5
+ function o() {
6
+ const e = r.useContext(t);
7
+ if (e === void 0)
8
+ throw new Error("useCtx must be inside a Provider");
9
+ return e;
10
+ }
11
+ return [o, t.Provider];
12
+ }
13
+ function c() {
14
+ const t = r.createContext(void 0);
15
+ function o() {
16
+ const e = r.useContext(t);
17
+ return e === void 0 ? {} : e;
18
+ }
19
+ return [o, t.Provider];
20
+ }
12
21
  export {
13
- w as default
22
+ c as createCtxNullable,
23
+ u as default
14
24
  };
package/index127.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index155.js"),r=require("./index156.js"),t=require("./index157.js"),o=require("./index158.js"),i=require("./index159.js"),a=require("./index160.js"),c=require("./index161.js"),n=require("./index162.js"),u=require("./index163.js"),s=require("./index164.js"),f=require("./index165.js"),l=require("./index166.js"),q=require("./index167.js"),d=require("./index168.js"),b=require("./index169.js"),v=require("./index170.js"),y=require("./index171.js"),g=require("./index172.js"),p=require("./index173.js"),C=require("./index174.js"),h=require("./index175.js"),m=require("./index176.js"),E=require("./index177.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
1
+ "use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index64.js"),u=t=>{const{isVisible:o,children:i,themeName:n,tokens:r,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=g(n,r,s);return d((c,p)=>p&&T.jsx(e.animated.div,{...a,style:c,className:m,children:i}))};module.exports=u;
package/index127.mjs CHANGED
@@ -1,48 +1,14 @@
1
- import { default as o } from "./index155.mjs";
2
- import { default as f } from "./index156.mjs";
3
- import { default as l } from "./index157.mjs";
4
- import { default as d } from "./index158.mjs";
5
- import { default as p } from "./index159.mjs";
6
- import { default as x } from "./index160.mjs";
7
- import { default as c } from "./index161.mjs";
8
- import { default as E } from "./index162.mjs";
9
- import { default as b } from "./index163.mjs";
10
- import { default as y } from "./index164.mjs";
11
- import { default as h } from "./index165.mjs";
12
- import { default as M } from "./index166.mjs";
13
- import { default as A } from "./index167.mjs";
14
- import { default as N } from "./index168.mjs";
15
- import { default as G } from "./index169.mjs";
16
- import { default as S } from "./index170.mjs";
17
- import { default as V } from "./index171.mjs";
18
- import { default as j } from "./index172.mjs";
19
- import { default as q } from "./index173.mjs";
20
- import { default as B } from "./index174.mjs";
21
- import { default as I } from "./index175.mjs";
22
- import { default as L } from "./index176.mjs";
23
- import { default as Q } from "./index177.mjs";
1
+ import { jsx as T } from "react/jsx-runtime";
2
+ import { useTransition as c, animated as g } from "@react-spring/web";
3
+ import l from "./index64.mjs";
4
+ const w = (e) => {
5
+ const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
+ from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
7
+ enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
8
+ leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
9
+ }), a = l(r, i, n);
10
+ return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
11
+ };
24
12
  export {
25
- y as A11y,
26
- A as Autoplay,
27
- b as Controller,
28
- Q as EffectCards,
29
- I as EffectCoverflow,
30
- L as EffectCreative,
31
- q as EffectCube,
32
- j as EffectFade,
33
- B as EffectFlip,
34
- G as FreeMode,
35
- S as Grid,
36
- M as HashNavigation,
37
- h as History,
38
- f as Keyboard,
39
- V as Manipulation,
40
- l as Mousewheel,
41
- d as Navigation,
42
- p as Pagination,
43
- c as Parallax,
44
- x as Scrollbar,
45
- N as Thumbs,
46
- o as Virtual,
47
- E as Zoom
13
+ w as default
48
14
  };
package/index128.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index178.js"),T=require("./index179.js"),d=require("./index180.js");function I(){return I=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},I.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(o=>t.push(o)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=l=>{let i=l;return l<0?i=t.length+l:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:o,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,S=[];for(let l=y;l<h;l+=1)l>=o&&l<=p&&S.push(t[n(l)]);return S.map((l,i)=>e.cloneElement(l,{swiper:s,style:c,key:`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const B=e.createContext(null),Q=()=>e.useContext(B),X=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:o,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[S,l]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),L=e.useRef(null),{params:f,passedParams:k,rest:D,events:g}=T.g(y),{slides:v,slots:j}=J(o),_=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){l(E)}});const q=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=v;const E={cache:!1,slides:v,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||q(),r.current&&r.current.on("_beforeBreakpoint",_);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",_)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&q(),T.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:L.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=T.a(k,x.current,v,z.current,E=>E.key);return x.current=k,z.current=v,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:v,passedParams:k,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:L.current,paginationEl:R.current}),()=>{M()}}),N(()=>{T.u(r.current)},[i]);function U(){return f.virtual?K(r.current,v,i):v.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,I({ref:w,className:d.d(`${S}${a?` ${a}`:""}`)},D),e.createElement(X.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:L,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:o,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:S,...l}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof S<"u"&&(i.current.swiperSlideIndex=S),t&&(t.current=i.current),!(!i.current||!o)){if(o.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return o.on("_slideClass",w),()=>{o&&o.off("_slideClass",w)}}}),N(()=>{o&&i.current&&!o.destroyed&&C(o.getSlideClasses(i.current))},[o]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,I({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},l),p&&e.createElement(B.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(B.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;exports.useSwiperSlide=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index156.js"),r=require("./index157.js"),t=require("./index158.js"),o=require("./index159.js"),i=require("./index160.js"),a=require("./index161.js"),c=require("./index162.js"),n=require("./index163.js"),u=require("./index164.js"),s=require("./index165.js"),f=require("./index166.js"),l=require("./index167.js"),q=require("./index168.js"),d=require("./index169.js"),b=require("./index170.js"),v=require("./index171.js"),y=require("./index172.js"),g=require("./index173.js"),p=require("./index174.js"),C=require("./index175.js"),h=require("./index176.js"),m=require("./index177.js"),E=require("./index178.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
package/index128.mjs CHANGED
@@ -1,243 +1,48 @@
1
- import a, { forwardRef as W, useState as P, useRef as u, useEffect as k, useLayoutEffect as Q, createContext as q, useContext as X } from "react";
2
- import { S as Y } from "./index178.mjs";
3
- import { g as Z, m as ee, a as re, u as te } from "./index179.mjs";
4
- import { d as D, w as ne, n as se, b as ae, a as ie, e as F, u as oe } from "./index180.mjs";
5
- function L() {
6
- return L = Object.assign ? Object.assign.bind() : function(n) {
7
- for (var r = 1; r < arguments.length; r++) {
8
- var s = arguments[r];
9
- for (var t in s)
10
- Object.prototype.hasOwnProperty.call(s, t) && (n[t] = s[t]);
11
- }
12
- return n;
13
- }, L.apply(this, arguments);
14
- }
15
- function H(n) {
16
- return n.type && n.type.displayName && n.type.displayName.includes("SwiperSlide");
17
- }
18
- function U(n) {
19
- const r = [];
20
- return a.Children.toArray(n).forEach((s) => {
21
- H(s) ? r.push(s) : s.props && s.props.children && U(s.props.children).forEach((t) => r.push(t));
22
- }), r;
23
- }
24
- function le(n) {
25
- const r = [], s = {
26
- "container-start": [],
27
- "container-end": [],
28
- "wrapper-start": [],
29
- "wrapper-end": []
30
- };
31
- return a.Children.toArray(n).forEach((t) => {
32
- if (H(t))
33
- r.push(t);
34
- else if (t.props && t.props.slot && s[t.props.slot])
35
- s[t.props.slot].push(t);
36
- else if (t.props && t.props.children) {
37
- const p = U(t.props.children);
38
- p.length > 0 ? p.forEach((o) => r.push(o)) : s["container-end"].push(t);
39
- } else
40
- s["container-end"].push(t);
41
- }), {
42
- slides: r,
43
- slots: s
44
- };
45
- }
46
- function ce(n, r, s) {
47
- if (!s) return null;
48
- const t = (l) => {
49
- let i = l;
50
- return l < 0 ? i = r.length + l : i >= r.length && (i = i - r.length), i;
51
- }, p = n.isHorizontal() ? {
52
- [n.rtlTranslate ? "right" : "left"]: `${s.offset}px`
53
- } : {
54
- top: `${s.offset}px`
55
- }, {
56
- from: o,
57
- to: d
58
- } = s, S = n.params.loop ? -r.length : 0, h = n.params.loop ? r.length * 2 : r.length, g = [];
59
- for (let l = S; l < h; l += 1)
60
- l >= o && l <= d && g.push(r[t(l)]);
61
- return g.map((l, i) => /* @__PURE__ */ a.cloneElement(l, {
62
- swiper: n,
63
- style: p,
64
- key: `slide-${i}`
65
- }));
66
- }
67
- function O(n, r) {
68
- return typeof window > "u" ? k(n, r) : Q(n, r);
69
- }
70
- const B = /* @__PURE__ */ q(null), ge = () => X(B), ue = /* @__PURE__ */ q(null), pe = /* @__PURE__ */ W(function(n, r) {
71
- let {
72
- className: s,
73
- tag: t = "div",
74
- wrapperTag: p = "div",
75
- children: o,
76
- onSwiper: d,
77
- ...S
78
- } = n === void 0 ? {} : n, h = !1;
79
- const [g, l] = P("swiper"), [i, m] = P(null), [C, R] = P(!1), z = u(!1), w = u(null), e = u(null), x = u(null), $ = u(null), j = u(null), b = u(null), N = u(null), T = u(null), {
80
- params: f,
81
- passedParams: _,
82
- rest: G,
83
- events: v
84
- } = Z(S), {
85
- slides: y,
86
- slots: I
87
- } = le(o), A = () => {
88
- R(!C);
89
- };
90
- Object.assign(f.on, {
91
- _containerClasses(c, E) {
92
- l(E);
93
- }
94
- });
95
- const V = () => {
96
- Object.assign(f.on, v), h = !0;
97
- const c = {
98
- ...f
99
- };
100
- if (delete c.wrapperClass, e.current = new Y(c), e.current.virtual && e.current.params.virtual.enabled) {
101
- e.current.virtual.slides = y;
102
- const E = {
103
- cache: !1,
104
- slides: y,
105
- renderExternal: m,
106
- renderExternalUpdate: !1
107
- };
108
- F(e.current.params.virtual, E), F(e.current.originalParams.virtual, E);
109
- }
110
- };
111
- w.current || V(), e.current && e.current.on("_beforeBreakpoint", A);
112
- const J = () => {
113
- h || !v || !e.current || Object.keys(v).forEach((c) => {
114
- e.current.on(c, v[c]);
115
- });
116
- }, K = () => {
117
- !v || !e.current || Object.keys(v).forEach((c) => {
118
- e.current.off(c, v[c]);
119
- });
120
- };
121
- k(() => () => {
122
- e.current && e.current.off("_beforeBreakpoint", A);
123
- }), k(() => {
124
- !z.current && e.current && (e.current.emitSlidesClasses(), z.current = !0);
125
- }), O(() => {
126
- if (r && (r.current = w.current), !!w.current)
127
- return e.current.destroyed && V(), ee({
128
- el: w.current,
129
- nextEl: j.current,
130
- prevEl: b.current,
131
- paginationEl: N.current,
132
- scrollbarEl: T.current,
133
- swiper: e.current
134
- }, f), d && !e.current.destroyed && d(e.current), () => {
135
- e.current && !e.current.destroyed && e.current.destroy(!0, !1);
136
- };
137
- }, []), O(() => {
138
- J();
139
- const c = re(_, x.current, y, $.current, (E) => E.key);
140
- return x.current = _, $.current = y, c.length && e.current && !e.current.destroyed && oe({
141
- swiper: e.current,
142
- slides: y,
143
- passedParams: _,
144
- changedParams: c,
145
- nextEl: j.current,
146
- prevEl: b.current,
147
- scrollbarEl: T.current,
148
- paginationEl: N.current
149
- }), () => {
150
- K();
151
- };
152
- }), O(() => {
153
- te(e.current);
154
- }, [i]);
155
- function M() {
156
- return f.virtual ? ce(e.current, y, i) : y.map((c, E) => /* @__PURE__ */ a.cloneElement(c, {
157
- swiper: e.current,
158
- swiperSlideIndex: E
159
- }));
160
- }
161
- return /* @__PURE__ */ a.createElement(t, L({
162
- ref: w,
163
- className: D(`${g}${s ? ` ${s}` : ""}`)
164
- }, G), /* @__PURE__ */ a.createElement(ue.Provider, {
165
- value: e.current
166
- }, I["container-start"], /* @__PURE__ */ a.createElement(p, {
167
- className: ne(f.wrapperClass)
168
- }, I["wrapper-start"], M(), I["wrapper-end"]), se(f) && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", {
169
- ref: b,
170
- className: "swiper-button-prev"
171
- }), /* @__PURE__ */ a.createElement("div", {
172
- ref: j,
173
- className: "swiper-button-next"
174
- })), ae(f) && /* @__PURE__ */ a.createElement("div", {
175
- ref: T,
176
- className: "swiper-scrollbar"
177
- }), ie(f) && /* @__PURE__ */ a.createElement("div", {
178
- ref: N,
179
- className: "swiper-pagination"
180
- }), I["container-end"]));
181
- });
182
- pe.displayName = "Swiper";
183
- const de = /* @__PURE__ */ W(function(n, r) {
184
- let {
185
- tag: s = "div",
186
- children: t,
187
- className: p = "",
188
- swiper: o,
189
- zoom: d,
190
- lazy: S,
191
- virtualIndex: h,
192
- swiperSlideIndex: g,
193
- ...l
194
- } = n === void 0 ? {} : n;
195
- const i = u(null), [m, C] = P("swiper-slide"), [R, z] = P(!1);
196
- function w(j, b, N) {
197
- b === i.current && C(N);
198
- }
199
- O(() => {
200
- if (typeof g < "u" && (i.current.swiperSlideIndex = g), r && (r.current = i.current), !(!i.current || !o)) {
201
- if (o.destroyed) {
202
- m !== "swiper-slide" && C("swiper-slide");
203
- return;
204
- }
205
- return o.on("_slideClass", w), () => {
206
- o && o.off("_slideClass", w);
207
- };
208
- }
209
- }), O(() => {
210
- o && i.current && !o.destroyed && C(o.getSlideClasses(i.current));
211
- }, [o]);
212
- const e = {
213
- isActive: m.indexOf("swiper-slide-active") >= 0,
214
- isVisible: m.indexOf("swiper-slide-visible") >= 0,
215
- isPrev: m.indexOf("swiper-slide-prev") >= 0,
216
- isNext: m.indexOf("swiper-slide-next") >= 0
217
- }, x = () => typeof t == "function" ? t(e) : t, $ = () => {
218
- z(!0);
219
- };
220
- return /* @__PURE__ */ a.createElement(s, L({
221
- ref: i,
222
- className: D(`${m}${p ? ` ${p}` : ""}`),
223
- "data-swiper-slide-index": h,
224
- onLoad: $
225
- }, l), d && /* @__PURE__ */ a.createElement(B.Provider, {
226
- value: e
227
- }, /* @__PURE__ */ a.createElement("div", {
228
- className: "swiper-zoom-container",
229
- "data-swiper-zoom": typeof d == "number" ? d : void 0
230
- }, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
231
- className: "swiper-lazy-preloader"
232
- }))), !d && /* @__PURE__ */ a.createElement(B.Provider, {
233
- value: e
234
- }, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
235
- className: "swiper-lazy-preloader"
236
- })));
237
- });
238
- de.displayName = "SwiperSlide";
1
+ import { default as o } from "./index156.mjs";
2
+ import { default as f } from "./index157.mjs";
3
+ import { default as l } from "./index158.mjs";
4
+ import { default as d } from "./index159.mjs";
5
+ import { default as p } from "./index160.mjs";
6
+ import { default as x } from "./index161.mjs";
7
+ import { default as c } from "./index162.mjs";
8
+ import { default as E } from "./index163.mjs";
9
+ import { default as b } from "./index164.mjs";
10
+ import { default as y } from "./index165.mjs";
11
+ import { default as h } from "./index166.mjs";
12
+ import { default as M } from "./index167.mjs";
13
+ import { default as A } from "./index168.mjs";
14
+ import { default as N } from "./index169.mjs";
15
+ import { default as G } from "./index170.mjs";
16
+ import { default as S } from "./index171.mjs";
17
+ import { default as V } from "./index172.mjs";
18
+ import { default as j } from "./index173.mjs";
19
+ import { default as q } from "./index174.mjs";
20
+ import { default as B } from "./index175.mjs";
21
+ import { default as I } from "./index176.mjs";
22
+ import { default as L } from "./index177.mjs";
23
+ import { default as Q } from "./index178.mjs";
239
24
  export {
240
- pe as Swiper,
241
- de as SwiperSlide,
242
- ge as useSwiperSlide
25
+ y as A11y,
26
+ A as Autoplay,
27
+ b as Controller,
28
+ Q as EffectCards,
29
+ I as EffectCoverflow,
30
+ L as EffectCreative,
31
+ q as EffectCube,
32
+ j as EffectFade,
33
+ B as EffectFlip,
34
+ G as FreeMode,
35
+ S as Grid,
36
+ M as HashNavigation,
37
+ h as History,
38
+ f as Keyboard,
39
+ V as Manipulation,
40
+ l as Mousewheel,
41
+ d as Navigation,
42
+ p as Pagination,
43
+ c as Parallax,
44
+ x as Scrollbar,
45
+ N as Thumbs,
46
+ o as Virtual,
47
+ E as Zoom
243
48
  };
package/index129.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";const n=require("react/jsx-runtime"),d=require("./index128.js"),a=require("./index25.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index179.js"),T=require("./index180.js"),d=require("./index181.js");function I(){return I=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},I.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(o=>t.push(o)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=l=>{let i=l;return l<0?i=t.length+l:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:o,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,S=[];for(let l=y;l<h;l+=1)l>=o&&l<=p&&S.push(t[n(l)]);return S.map((l,i)=>e.cloneElement(l,{swiper:s,style:c,key:`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const B=e.createContext(null),Q=()=>e.useContext(B),X=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:o,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[S,l]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),L=e.useRef(null),{params:f,passedParams:k,rest:D,events:g}=T.g(y),{slides:v,slots:j}=J(o),_=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){l(E)}});const q=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=v;const E={cache:!1,slides:v,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||q(),r.current&&r.current.on("_beforeBreakpoint",_);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",_)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&q(),T.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:L.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=T.a(k,x.current,v,z.current,E=>E.key);return x.current=k,z.current=v,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:v,passedParams:k,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:L.current,paginationEl:R.current}),()=>{M()}}),N(()=>{T.u(r.current)},[i]);function U(){return f.virtual?K(r.current,v,i):v.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,I({ref:w,className:d.d(`${S}${a?` ${a}`:""}`)},D),e.createElement(X.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:L,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:o,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:S,...l}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof S<"u"&&(i.current.swiperSlideIndex=S),t&&(t.current=i.current),!(!i.current||!o)){if(o.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return o.on("_slideClass",w),()=>{o&&o.off("_slideClass",w)}}}),N(()=>{o&&i.current&&!o.destroyed&&C(o.getSlideClasses(i.current))},[o]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,I({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},l),p&&e.createElement(B.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(B.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;exports.useSwiperSlide=Q;