@okam/stack-ui 1.27.0 → 1.27.3

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 (361) hide show
  1. package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -1
  2. package/index.d.ts +2 -0
  3. package/index.js +1 -1
  4. package/index.mjs +158 -151
  5. package/index10.js +1 -1
  6. package/index10.mjs +2 -2
  7. package/index100.js +1 -2
  8. package/index100.mjs +17 -12
  9. package/index101.js +2 -1
  10. package/index101.mjs +22 -45
  11. package/index102.js +1 -1
  12. package/index102.mjs +1 -1
  13. package/index103.js +1 -1
  14. package/index103.mjs +1 -1
  15. package/index107.js +1 -1
  16. package/index107.mjs +1 -1
  17. package/index108.js +1 -1
  18. package/index108.mjs +1 -1
  19. package/index11.js +1 -1
  20. package/index11.mjs +3 -3
  21. package/index112.js +1 -1
  22. package/index112.mjs +1 -1
  23. package/index113.js +1 -1
  24. package/index113.mjs +1 -1
  25. package/index114.js +1 -1
  26. package/index114.mjs +2 -2
  27. package/index116.js +1 -1
  28. package/index116.mjs +1 -1
  29. package/index118.js +1 -1
  30. package/index118.mjs +1 -1
  31. package/index119.js +1 -1
  32. package/index119.mjs +1 -1
  33. package/index12.js +2 -1
  34. package/index12.mjs +45 -15
  35. package/index121.js +1 -1
  36. package/index121.mjs +1 -1
  37. package/index122.js +1 -1
  38. package/index122.mjs +3 -3
  39. package/index124.js +1 -1
  40. package/index124.mjs +1 -1
  41. package/index125.js +1 -1
  42. package/index125.mjs +2 -2
  43. package/index128.js +1 -1
  44. package/index128.mjs +1 -1
  45. package/index13.js +1 -2
  46. package/index13.mjs +17 -20
  47. package/index131.js +1 -1
  48. package/index131.mjs +1 -1
  49. package/index132.js +1 -1
  50. package/index132.mjs +1 -1
  51. package/index134.js +1 -1
  52. package/index134.mjs +1 -1
  53. package/index135.js +1 -1
  54. package/index135.mjs +1 -1
  55. package/index138.js +1 -1
  56. package/index138.mjs +1 -1
  57. package/index139.js +1 -1
  58. package/index139.mjs +3 -3
  59. package/index14.js +1 -1
  60. package/index14.mjs +18 -17
  61. package/index140.js +1 -1
  62. package/index140.mjs +2 -2
  63. package/index15.js +1 -1
  64. package/index15.mjs +16 -83
  65. package/index16.js +1 -1
  66. package/index16.mjs +81 -28
  67. package/index17.js +1 -1
  68. package/index17.mjs +30 -32
  69. package/index174.js +1 -1
  70. package/index174.mjs +2 -2
  71. package/index175.js +1 -1
  72. package/index175.mjs +2 -2
  73. package/index176.js +1 -1
  74. package/index176.mjs +2 -2
  75. package/index177.js +1 -1
  76. package/index177.mjs +2 -2
  77. package/index178.js +1 -1
  78. package/index178.mjs +3 -3
  79. package/index179.js +1 -1
  80. package/index179.mjs +4 -4
  81. package/index18.js +1 -1
  82. package/index18.mjs +33 -31
  83. package/index180.js +1 -1
  84. package/index180.mjs +1 -1
  85. package/index181.js +1 -1
  86. package/index181.mjs +2 -2
  87. package/index182.js +1 -1
  88. package/index182.mjs +1 -1
  89. package/index183.js +1 -1
  90. package/index183.mjs +2 -2
  91. package/index184.js +1 -1
  92. package/index184.mjs +1 -1
  93. package/index185.js +1 -1
  94. package/index185.mjs +2 -2
  95. package/index186.js +1 -1
  96. package/index186.mjs +1 -1
  97. package/index187.js +1 -1
  98. package/index187.mjs +2 -2
  99. package/index188.js +1 -1
  100. package/index188.mjs +1 -1
  101. package/index19.js +1 -1
  102. package/index19.mjs +30 -33
  103. package/index191.js +1 -1
  104. package/index191.mjs +4 -4
  105. package/index192.js +1 -1
  106. package/index192.mjs +2 -2
  107. package/index193.js +1 -1
  108. package/index193.mjs +5 -5
  109. package/index194.js +1 -1
  110. package/index194.mjs +4 -4
  111. package/index195.js +1 -1
  112. package/index195.mjs +5 -5
  113. package/index196.js +1 -1
  114. package/index196.mjs +5 -5
  115. package/index197.js +1 -1
  116. package/index197.mjs +2 -2
  117. package/index2.js +1 -1
  118. package/index2.mjs +20 -20
  119. package/index20.js +1 -1
  120. package/index20.mjs +32 -67
  121. package/index208.js +1 -1
  122. package/index208.mjs +2 -2
  123. package/index21.js +1 -1
  124. package/index21.mjs +61 -58
  125. package/index210.js +1 -1
  126. package/index210.mjs +1 -1
  127. package/index213.js +1 -1
  128. package/index213.mjs +1 -1
  129. package/index22.js +1 -1
  130. package/index22.mjs +66 -52
  131. package/index224.js +1 -1
  132. package/index224.mjs +123 -306
  133. package/index225.js +1 -1
  134. package/index225.mjs +173 -186
  135. package/index226.js +1 -1
  136. package/index226.mjs +9 -8
  137. package/index227.js +1 -1
  138. package/index227.mjs +3 -26
  139. package/index228.js +1 -1
  140. package/index228.mjs +34 -53
  141. package/index229.js +1 -1
  142. package/index229.mjs +5 -46
  143. package/index23.js +1 -1
  144. package/index23.mjs +37 -41
  145. package/index230.js +1 -1
  146. package/index230.mjs +28 -123
  147. package/index231.js +1 -1
  148. package/index231.mjs +6 -130
  149. package/index232.js +1 -1
  150. package/index232.mjs +293 -159
  151. package/index233.js +1 -1
  152. package/index233.mjs +192 -9
  153. package/index234.js +1 -1
  154. package/index234.mjs +8 -3
  155. package/index235.js +1 -1
  156. package/index235.mjs +25 -35
  157. package/index236.js +1 -1
  158. package/index236.mjs +55 -5
  159. package/index237.js +1 -1
  160. package/index237.mjs +44 -27
  161. package/index238.js +1 -1
  162. package/index238.mjs +124 -6
  163. package/index24.js +1 -1
  164. package/index24.mjs +57 -20
  165. package/index242.js +1 -1
  166. package/index242.mjs +1 -1
  167. package/index243.js +1 -1
  168. package/index243.mjs +1 -1
  169. package/index245.js +1 -1
  170. package/index245.mjs +1 -1
  171. package/index246.js +1 -1
  172. package/index246.mjs +2 -2
  173. package/index248.js +1 -1
  174. package/index248.mjs +1 -1
  175. package/index249.js +1 -1
  176. package/index249.mjs +3 -3
  177. package/index25.js +1 -1
  178. package/index25.mjs +20 -50
  179. package/index250.js +1 -1
  180. package/index250.mjs +2 -2
  181. package/index251.js +1 -1
  182. package/index251.mjs +2 -23
  183. package/index252.js +1 -1
  184. package/index252.mjs +23 -2
  185. package/index26.js +1 -1
  186. package/index26.mjs +50 -17
  187. package/index260.js +1 -1
  188. package/index260.mjs +6 -2
  189. package/index261.mjs +2 -2
  190. package/index262.mjs +2 -2
  191. package/index263.mjs +2 -2
  192. package/index264.js +1 -1
  193. package/index264.mjs +2 -72
  194. package/index265.js +1 -1
  195. package/index265.mjs +72 -2
  196. package/index266.mjs +2 -2
  197. package/index267.js +1 -1
  198. package/index267.mjs +2 -19
  199. package/index268.js +1 -1
  200. package/index268.mjs +19 -2
  201. package/index269.js +1 -1
  202. package/index269.mjs +2 -6
  203. package/index27.js +1 -1
  204. package/index27.mjs +16 -32
  205. package/index28.js +1 -1
  206. package/index28.mjs +32 -23
  207. package/index29.js +1 -1
  208. package/index29.mjs +24 -8
  209. package/index3.js +1 -1
  210. package/index3.mjs +1 -1
  211. package/index30.js +1 -1
  212. package/index30.mjs +8 -32
  213. package/index31.js +1 -1
  214. package/index31.mjs +29 -30
  215. package/index32.js +1 -1
  216. package/index32.mjs +28 -98
  217. package/index33.js +1 -1
  218. package/index33.mjs +102 -8
  219. package/index34.js +1 -1
  220. package/index34.mjs +8 -46
  221. package/index35.js +1 -1
  222. package/index35.mjs +46 -18
  223. package/index36.js +2 -1
  224. package/index36.mjs +19 -6
  225. package/index37.js +1 -1
  226. package/index37.mjs +6 -46
  227. package/index38.js +1 -1
  228. package/index38.mjs +45 -23
  229. package/index39.js +2 -1
  230. package/index39.mjs +26 -5
  231. package/index4.js +1 -1
  232. package/index4.mjs +5 -5
  233. package/index40.js +1 -1
  234. package/index40.mjs +4 -7
  235. package/index41.js +1 -1
  236. package/index41.mjs +5 -5
  237. package/index42.js +1 -1
  238. package/index42.mjs +8 -5
  239. package/index43.js +1 -1
  240. package/index43.mjs +2 -2
  241. package/index44.js +1 -1
  242. package/index44.mjs +1 -1
  243. package/index45.js +1 -1
  244. package/index45.mjs +4 -4
  245. package/index46.js +1 -1
  246. package/index46.mjs +3 -9
  247. package/index47.js +1 -1
  248. package/index47.mjs +7 -9
  249. package/index48.js +1 -1
  250. package/index48.mjs +9 -9
  251. package/index49.js +1 -1
  252. package/index49.mjs +13 -46
  253. package/index50.js +1 -1
  254. package/index50.mjs +46 -8
  255. package/index51.js +1 -1
  256. package/index51.mjs +6 -69
  257. package/index52.js +1 -1
  258. package/index52.mjs +71 -8
  259. package/index53.js +1 -1
  260. package/index53.mjs +7 -12
  261. package/index54.js +1 -1
  262. package/index54.mjs +12 -9
  263. package/index55.js +1 -1
  264. package/index55.mjs +10 -17
  265. package/index56.js +1 -1
  266. package/index56.mjs +17 -13
  267. package/index57.js +1 -1
  268. package/index57.mjs +5 -5
  269. package/index58.js +1 -1
  270. package/index58.mjs +6 -6
  271. package/index59.js +1 -1
  272. package/index59.mjs +10 -8
  273. package/index6.js +1 -1
  274. package/index6.mjs +1 -1
  275. package/index60.js +1 -1
  276. package/index60.mjs +5 -5
  277. package/index61.js +1 -1
  278. package/index61.mjs +6 -8
  279. package/index62.js +1 -1
  280. package/index62.mjs +13 -14
  281. package/index63.js +1 -2
  282. package/index63.mjs +14 -23
  283. package/index64.js +1 -1
  284. package/index64.mjs +21 -15
  285. package/index65.js +1 -1
  286. package/index65.mjs +16 -14
  287. package/index66.js +1 -1
  288. package/index66.mjs +13 -40
  289. package/index67.js +1 -1
  290. package/index67.mjs +39 -36
  291. package/index68.js +1 -1
  292. package/index68.mjs +37 -11
  293. package/index69.js +1 -1
  294. package/index69.mjs +11 -10
  295. package/index7.js +1 -1
  296. package/index7.mjs +2 -2
  297. package/index70.js +1 -1
  298. package/index70.mjs +10 -13
  299. package/index71.js +2 -1
  300. package/index71.mjs +15 -2
  301. package/index72.js +1 -1
  302. package/index72.mjs +11 -8
  303. package/index73.js +1 -2
  304. package/index73.mjs +1 -7
  305. package/index74.js +1 -1
  306. package/index74.mjs +7 -6
  307. package/index75.js +1 -1
  308. package/index75.mjs +6 -6
  309. package/index76.js +2 -1
  310. package/index76.mjs +8 -25
  311. package/index77.js +2 -1
  312. package/index77.mjs +8 -2
  313. package/index78.js +1 -6
  314. package/index78.mjs +25 -94
  315. package/index79.js +1 -1
  316. package/index79.mjs +2 -69
  317. package/index8.js +1 -1
  318. package/index8.mjs +5 -5
  319. package/index80.js +6 -1
  320. package/index80.mjs +82 -29
  321. package/index81.js +1 -42
  322. package/index81.mjs +64 -65
  323. package/index82.js +1 -1
  324. package/index82.mjs +32 -150
  325. package/index83.js +42 -9
  326. package/index83.mjs +65 -52
  327. package/index84.js +1 -1
  328. package/index84.mjs +145 -31
  329. package/index85.js +9 -1
  330. package/index85.mjs +54 -10
  331. package/index86.js +1 -1
  332. package/index86.mjs +38 -28
  333. package/index87.js +1 -1
  334. package/index87.mjs +12 -5
  335. package/index88.js +1 -12
  336. package/index88.mjs +31 -36
  337. package/index89.js +1 -1
  338. package/index89.mjs +6 -29
  339. package/index9.js +1 -1
  340. package/index9.mjs +4 -4
  341. package/index90.js +12 -1
  342. package/index90.mjs +39 -12
  343. package/index91.js +1 -7
  344. package/index91.mjs +23 -13
  345. package/index92.js +1 -15
  346. package/index92.mjs +9 -67
  347. package/index93.js +7 -1
  348. package/index93.mjs +17 -5
  349. package/index94.js +13 -14
  350. package/index94.mjs +63 -17
  351. package/index95.js +1 -1
  352. package/index95.mjs +7 -42
  353. package/index96.js +16 -1
  354. package/index96.mjs +24 -44
  355. package/index97.js +1 -1
  356. package/index97.mjs +42 -48
  357. package/index98.js +1 -1
  358. package/index98.mjs +45 -17
  359. package/index99.js +1 -2
  360. package/index99.mjs +47 -21
  361. package/package.json +1 -1
package/index32.mjs CHANGED
@@ -1,106 +1,36 @@
1
1
  "use client";
2
- import { jsxs as y, jsx as k } from "react/jsx-runtime";
3
- import b, { useCallback as x, createElement as N, useRef as E } from "react";
4
- import K from "./index123.mjs";
5
- import { useMenu as T } from "./index67.mjs";
6
- import p from "./index24.mjs";
7
- import g, { Anchor as L } from "./index6.mjs";
8
- const B = (a) => {
9
- const { tabState: r, defaultSelectedKey: s } = T(), { setSelectedKey: t } = r, { id: l, path: n, label: e, themeName: c = "button", tokens: h, customTheme: i, target: m, children: o, childItems: u, ...d } = a, f = n == null ? void 0 : n.substring(1), $ = x(() => {
10
- if (f != null) {
11
- if (r.selectedKey === f) {
12
- t(s);
13
- return;
14
- }
15
- t(f);
16
- }
17
- }, [f, r.selectedKey, t, s]);
18
- return /* @__PURE__ */ N(
19
- g,
20
- {
21
- ...d,
22
- themeName: `${c}`,
23
- tokens: h,
24
- customTheme: i,
25
- key: `button-${l}`,
26
- handlePress: $
27
- },
28
- b.isValidElement(o) ? o : e
29
- );
30
- }, P = (a) => {
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { useMenu as f } from "./index68.mjs";
4
+ import h from "./index8.mjs";
5
+ import p from "./index122.mjs";
6
+ const T = (m) => {
31
7
  const {
32
- id: r,
33
- target: s,
34
- path: t,
35
- label: l,
36
- themeName: n = "anchor",
37
- customTheme: e,
38
- tokens: c,
39
- nextLinkProps: h,
40
- children: i,
41
- childItems: m,
42
- ...o
43
- } = a, u = E(null);
44
- return t == null || l == null ? null : /* @__PURE__ */ N(
45
- L,
8
+ id: n = "main-menu",
9
+ children: s,
10
+ TransitionAnimation: l,
11
+ PanelTransition: a,
12
+ themeName: t,
13
+ tokens: o,
14
+ customTheme: r,
15
+ ...c
16
+ } = m, { closeBtn: d, tabState: e, defaultSelectedKey: u } = f();
17
+ return /* @__PURE__ */ i(
18
+ h,
46
19
  {
47
- ...o,
48
- themeName: `${n}`,
49
- tokens: c,
50
- customTheme: e,
51
- nextLinkProps: {
52
- scroll: !1,
53
- href: t,
54
- ...h
20
+ themeName: `${t}.sidePanel`,
21
+ tokens: o,
22
+ customTheme: r,
23
+ closeBtnRender: d,
24
+ id: n,
25
+ TransitionAnimation: l,
26
+ PanelTransition: a,
27
+ onCloseCallBack: () => {
28
+ e == null || e.setSelectedKey(u);
55
29
  },
56
- ref: u,
57
- key: `link-${r}`,
58
- as: K,
59
- target: s ?? "_self"
60
- },
61
- b.isValidElement(i) ? i : l
30
+ children: /* @__PURE__ */ i(p, { id: n, themeName: t, tokens: o, customTheme: r, ...c, children: s })
31
+ }
62
32
  );
63
- }, V = (a) => {
64
- const { menuItems: r, children: s, themeName: t = "menuItem", tokens: l, customTheme: n } = a;
65
- return /* @__PURE__ */ y(p, { themeName: `${t}.wrapper`, tokens: l, customTheme: n, children: [
66
- /* @__PURE__ */ k(p, { themeName: `${t}.container`, tokens: l, customTheme: n, children: r == null ? void 0 : r.map((e) => {
67
- var d;
68
- const { id: c, path: h, label: i, ...m } = e ?? {}, o = { ...l, ...e.tokens };
69
- if ((e == null ? void 0 : e.path) == null || e.id == null)
70
- return null;
71
- const u = (d = e.path) != null && d.startsWith("#") ? "button" : "a";
72
- return /* @__PURE__ */ k(
73
- p,
74
- {
75
- themeName: `${t}.innerContent`,
76
- tokens: o,
77
- customTheme: n,
78
- children: u === "button" ? /* @__PURE__ */ k(
79
- B,
80
- {
81
- ...m,
82
- ...e,
83
- themeName: `${t}.button`,
84
- tokens: o,
85
- customTheme: n
86
- }
87
- ) : /* @__PURE__ */ k(
88
- P,
89
- {
90
- ...m,
91
- ...e,
92
- themeName: `${t}.anchor`,
93
- tokens: o,
94
- customTheme: n
95
- }
96
- )
97
- },
98
- `li-${e.id}`
99
- );
100
- }) }),
101
- s
102
- ] });
103
33
  };
104
34
  export {
105
- V as default
35
+ T as default
106
36
  };
package/index33.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react"),s=require("./index67.js"),a=require("./index124.js"),c=n=>{var t;const{tabState:e}=s.useMenu();return r.createElement(a,{...n,key:(t=e.selectedItem)==null?void 0:t.key,state:e})};module.exports=c;
2
+ "use strict";const u=require("react/jsx-runtime"),c=require("react"),N=require("./index123.js"),y=require("./index68.js"),b=require("./index25.js"),x=require("./index6.js"),q=a=>{const{tabState:s,defaultSelectedKey:o}=y.useMenu(),{setSelectedKey:t}=s,{id:r,path:n,label:e,themeName:h="button",tokens:d,customTheme:i,target:m,children:l,childItems:k,...f}=a,$=n==null?void 0:n.substring(1),p=c.useCallback(()=>{if($!=null){if(s.selectedKey===$){t(o);return}t($)}},[$,s.selectedKey,t,o]);return c.createElement(x.default,{...f,themeName:`${h}`,tokens:d,customTheme:i,key:`button-${r}`,handlePress:p},c.isValidElement(l)?l:e)},E=a=>{const{id:s,target:o,path:t,label:r,themeName:n="anchor",customTheme:e,tokens:h,nextLinkProps:d,children:i,childItems:m,...l}=a,k=c.useRef(null);return t==null||r==null?null:c.createElement(x.Anchor,{...l,themeName:`${n}`,tokens:h,customTheme:e,nextLinkProps:{scroll:!1,href:t,...d},ref:k,key:`link-${s}`,as:N,target:o??"_self"},c.isValidElement(i)?i:r)},j=a=>{const{menuItems:s,children:o,themeName:t="menuItem",tokens:r,customTheme:n}=a;return u.jsxs(b.default,{themeName:`${t}.wrapper`,tokens:r,customTheme:n,children:[u.jsx(b.default,{themeName:`${t}.container`,tokens:r,customTheme:n,children:s==null?void 0:s.map(e=>{var f;const{id:h,path:d,label:i,...m}=e??{},l={...r,...e.tokens};if((e==null?void 0:e.path)==null||e.id==null)return null;const k=(f=e.path)!=null&&f.startsWith("#")?"button":"a";return u.jsx(b.default,{themeName:`${t}.innerContent`,tokens:l,customTheme:n,children:k==="button"?u.jsx(q,{...m,...e,themeName:`${t}.button`,tokens:l,customTheme:n}):u.jsx(E,{...m,...e,themeName:`${t}.anchor`,tokens:l,customTheme:n})},`li-${e.id}`)})}),o]})};module.exports=j;
package/index33.mjs CHANGED
@@ -1,12 +1,106 @@
1
1
  "use client";
2
- import { createElement as a } from "react";
3
- import { useMenu as o } from "./index67.mjs";
4
- import m from "./index124.mjs";
5
- const f = (r) => {
6
- var t;
7
- const { tabState: e } = o();
8
- return /* @__PURE__ */ a(m, { ...r, key: (t = e.selectedItem) == null ? void 0 : t.key, state: e });
2
+ import { jsxs as y, jsx as k } from "react/jsx-runtime";
3
+ import b, { useCallback as x, createElement as N, useRef as E } from "react";
4
+ import K from "./index123.mjs";
5
+ import { useMenu as T } from "./index68.mjs";
6
+ import p from "./index25.mjs";
7
+ import g, { Anchor as L } from "./index6.mjs";
8
+ const B = (a) => {
9
+ const { tabState: r, defaultSelectedKey: s } = T(), { setSelectedKey: t } = r, { id: l, path: n, label: e, themeName: c = "button", tokens: h, customTheme: i, target: m, children: o, childItems: u, ...d } = a, f = n == null ? void 0 : n.substring(1), $ = x(() => {
10
+ if (f != null) {
11
+ if (r.selectedKey === f) {
12
+ t(s);
13
+ return;
14
+ }
15
+ t(f);
16
+ }
17
+ }, [f, r.selectedKey, t, s]);
18
+ return /* @__PURE__ */ N(
19
+ g,
20
+ {
21
+ ...d,
22
+ themeName: `${c}`,
23
+ tokens: h,
24
+ customTheme: i,
25
+ key: `button-${l}`,
26
+ handlePress: $
27
+ },
28
+ b.isValidElement(o) ? o : e
29
+ );
30
+ }, P = (a) => {
31
+ const {
32
+ id: r,
33
+ target: s,
34
+ path: t,
35
+ label: l,
36
+ themeName: n = "anchor",
37
+ customTheme: e,
38
+ tokens: c,
39
+ nextLinkProps: h,
40
+ children: i,
41
+ childItems: m,
42
+ ...o
43
+ } = a, u = E(null);
44
+ return t == null || l == null ? null : /* @__PURE__ */ N(
45
+ L,
46
+ {
47
+ ...o,
48
+ themeName: `${n}`,
49
+ tokens: c,
50
+ customTheme: e,
51
+ nextLinkProps: {
52
+ scroll: !1,
53
+ href: t,
54
+ ...h
55
+ },
56
+ ref: u,
57
+ key: `link-${r}`,
58
+ as: K,
59
+ target: s ?? "_self"
60
+ },
61
+ b.isValidElement(i) ? i : l
62
+ );
63
+ }, V = (a) => {
64
+ const { menuItems: r, children: s, themeName: t = "menuItem", tokens: l, customTheme: n } = a;
65
+ return /* @__PURE__ */ y(p, { themeName: `${t}.wrapper`, tokens: l, customTheme: n, children: [
66
+ /* @__PURE__ */ k(p, { themeName: `${t}.container`, tokens: l, customTheme: n, children: r == null ? void 0 : r.map((e) => {
67
+ var d;
68
+ const { id: c, path: h, label: i, ...m } = e ?? {}, o = { ...l, ...e.tokens };
69
+ if ((e == null ? void 0 : e.path) == null || e.id == null)
70
+ return null;
71
+ const u = (d = e.path) != null && d.startsWith("#") ? "button" : "a";
72
+ return /* @__PURE__ */ k(
73
+ p,
74
+ {
75
+ themeName: `${t}.innerContent`,
76
+ tokens: o,
77
+ customTheme: n,
78
+ children: u === "button" ? /* @__PURE__ */ k(
79
+ B,
80
+ {
81
+ ...m,
82
+ ...e,
83
+ themeName: `${t}.button`,
84
+ tokens: o,
85
+ customTheme: n
86
+ }
87
+ ) : /* @__PURE__ */ k(
88
+ P,
89
+ {
90
+ ...m,
91
+ ...e,
92
+ themeName: `${t}.anchor`,
93
+ tokens: o,
94
+ customTheme: n
95
+ }
96
+ )
97
+ },
98
+ `li-${e.id}`
99
+ );
100
+ }) }),
101
+ s
102
+ ] });
9
103
  };
10
104
  export {
11
- f as default
105
+ V as default
12
106
  };
package/index34.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),g=require("react"),h=require("react-stately"),d=require("./index121.js"),O=require("./index11.js"),x=require("./index99.js"),y=require("./index125.js"),B=require("./index35.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:$,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:A,setOpen:R,children:u=B,...m}=e,n=g.useRef(null),o=h.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:q}=x({...e,type:"dialog"},o,n);return r.jsxs(l,{...q,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(O,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
2
+ "use strict";const r=require("react"),s=require("./index68.js"),a=require("./index124.js"),c=n=>{var t;const{tabState:e}=s.useMenu();return r.createElement(a,{...n,key:(t=e.selectedItem)==null?void 0:t.key,state:e})};module.exports=c;
package/index34.mjs CHANGED
@@ -1,50 +1,12 @@
1
1
  "use client";
2
- import { jsxs as g, jsx as n } from "react/jsx-runtime";
3
- import { useRef as h } from "react";
4
- import { useOverlayTriggerState as O } from "react-stately";
5
- import d from "./index121.mjs";
6
- import C from "./index11.mjs";
7
- import y from "./index99.mjs";
8
- import B from "./index125.mjs";
9
- import A from "./index35.mjs";
10
- const I = (e) => {
11
- const {
12
- themeName: t = "alerts",
13
- tokens: r,
14
- customTheme: b,
15
- defaultOpen: i = !0,
16
- closeButton: m = B,
17
- transitionComponent: l = d,
18
- closeButtonAriaLabel: a,
19
- isOpen: v,
20
- onOpenChange: x,
21
- setOpen: N,
22
- children: p = A,
23
- ...u
24
- } = e, o = h(null), s = O({ ...e, defaultOpen: i }), { triggerProps: f, overlayProps: c } = y({ ...e, type: "dialog" }, s, o);
25
- return /* @__PURE__ */ g(
26
- l,
27
- {
28
- ...c,
29
- role: "alert",
30
- themeName: `${t}.wrapper`,
31
- tokens: r,
32
- isVisible: s.isOpen,
33
- children: [
34
- /* @__PURE__ */ n(
35
- m,
36
- {
37
- ref: o,
38
- themeName: `${t}.closeBtn`,
39
- "aria-label": a,
40
- ...f
41
- }
42
- ),
43
- /* @__PURE__ */ n(C, { themeName: t, tokens: r, ...u, children: p })
44
- ]
45
- }
46
- );
2
+ import { createElement as a } from "react";
3
+ import { useMenu as o } from "./index68.mjs";
4
+ import m from "./index124.mjs";
5
+ const f = (r) => {
6
+ var t;
7
+ const { tabState: e } = o();
8
+ return /* @__PURE__ */ a(m, { ...r, key: (t = e.selectedItem) == null ? void 0 : t.key, state: e });
47
9
  };
48
10
  export {
49
- I as default
11
+ f as default
50
12
  };
package/index35.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const n=require("react/jsx-runtime"),o=require("react"),h=require("./index100.js"),u=require("./index24.js"),q=require("./index6.js"),N=require("./index13.js"),f=l=>{var m;const{title:r,button:c,content:e,themeName:i="alerts.item",tokens:s,icon:a,id:d}=l,{controller:t}=h.useSwiperController(),x=((m=t==null?void 0:t.slides)==null?void 0:m.findIndex($=>$.id===d))===(t==null?void 0:t.activeIndex);return!r&&!c&&!e&&!a?null:n.jsxs(n.Fragment,{children:[a&&n.jsx(N,{icon:a,themeName:`${i}.icon`,tokens:s}),(r||c||e)&&n.jsxs(u.default,{themeName:`${i}.container`,tokens:s,children:[r&&n.jsx(u.default,{as:"span",themeName:`${i}.title`,tokens:s,id:d,children:r}),c&&n.jsx(q.default,{tabIndex:x?0:-1,themeName:`${i}.button`,tokens:s,...c}),e&&(o.isValidElement(e)?o.cloneElement(e,{...e.props,themeName:`${i}.content`,tokens:s}):e)]})]})};module.exports=f;
2
+ "use strict";const r=require("react/jsx-runtime"),g=require("react"),h=require("react-stately"),d=require("./index121.js"),O=require("./index11.js"),x=require("./index101.js"),y=require("./index125.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:$,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:A,setOpen:R,children:u=B,...m}=e,n=g.useRef(null),o=h.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:q}=x({...e,type:"dialog"},o,n);return r.jsxs(l,{...q,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(O,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
package/index35.mjs CHANGED
@@ -1,22 +1,50 @@
1
1
  "use client";
2
- import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
3
- import l from "react";
4
- import { useSwiperController as N } from "./index100.mjs";
5
- import p from "./index24.mjs";
6
- import I from "./index6.mjs";
7
- import $ from "./index13.mjs";
8
- const _ = (f) => {
9
- var c;
10
- const { title: i, button: o, content: e, themeName: n = "alerts.item", tokens: m, icon: r, id: a } = f, { controller: t } = N(), h = ((c = t == null ? void 0 : t.slides) == null ? void 0 : c.findIndex((u) => u.id === a)) === (t == null ? void 0 : t.activeIndex);
11
- return !i && !o && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
12
- r && /* @__PURE__ */ s($, { icon: r, themeName: `${n}.icon`, tokens: m }),
13
- (i || o || e) && /* @__PURE__ */ d(p, { themeName: `${n}.container`, tokens: m, children: [
14
- i && /* @__PURE__ */ s(p, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: i }),
15
- o && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...o }),
16
- e && (l.isValidElement(e) ? l.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
17
- ] })
18
- ] });
2
+ import { jsxs as g, jsx as n } from "react/jsx-runtime";
3
+ import { useRef as h } from "react";
4
+ import { useOverlayTriggerState as O } from "react-stately";
5
+ import d from "./index121.mjs";
6
+ import C from "./index11.mjs";
7
+ import y from "./index101.mjs";
8
+ import B from "./index125.mjs";
9
+ import A from "./index36.mjs";
10
+ const I = (e) => {
11
+ const {
12
+ themeName: t = "alerts",
13
+ tokens: r,
14
+ customTheme: b,
15
+ defaultOpen: i = !0,
16
+ closeButton: m = B,
17
+ transitionComponent: l = d,
18
+ closeButtonAriaLabel: a,
19
+ isOpen: v,
20
+ onOpenChange: x,
21
+ setOpen: N,
22
+ children: p = A,
23
+ ...u
24
+ } = e, o = h(null), s = O({ ...e, defaultOpen: i }), { triggerProps: f, overlayProps: c } = y({ ...e, type: "dialog" }, s, o);
25
+ return /* @__PURE__ */ g(
26
+ l,
27
+ {
28
+ ...c,
29
+ role: "alert",
30
+ themeName: `${t}.wrapper`,
31
+ tokens: r,
32
+ isVisible: s.isOpen,
33
+ children: [
34
+ /* @__PURE__ */ n(
35
+ m,
36
+ {
37
+ ref: o,
38
+ themeName: `${t}.closeBtn`,
39
+ "aria-label": a,
40
+ ...f
41
+ }
42
+ ),
43
+ /* @__PURE__ */ n(C, { themeName: t, tokens: r, ...u, children: p })
44
+ ]
45
+ }
46
+ );
19
47
  };
20
48
  export {
21
- _ as default
49
+ I as default
22
50
  };
package/index36.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const c=require("react/jsx-runtime"),s=require("react-stately"),n=e=>{const{key:t,value:r}=e;return c.jsx(s.Item,{children:r},t)};module.exports=n;
1
+ "use client";
2
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),h=require("./index72.js"),u=require("./index25.js"),q=require("./index6.js"),N=require("./index14.js"),f=l=>{var m;const{title:r,button:c,content:e,themeName:i="alerts.item",tokens:s,icon:a,id:d}=l,{controller:t}=h.useSwiperController(),x=((m=t==null?void 0:t.slides)==null?void 0:m.findIndex($=>$.id===d))===(t==null?void 0:t.activeIndex);return!r&&!c&&!e&&!a?null:n.jsxs(n.Fragment,{children:[a&&n.jsx(N,{icon:a,themeName:`${i}.icon`,tokens:s}),(r||c||e)&&n.jsxs(u.default,{themeName:`${i}.container`,tokens:s,children:[r&&n.jsx(u.default,{as:"span",themeName:`${i}.title`,tokens:s,id:d,children:r}),c&&n.jsx(q.default,{tabIndex:x?0:-1,themeName:`${i}.button`,tokens:s,...c}),e&&(o.isValidElement(e)?o.cloneElement(e,{...e.props,themeName:`${i}.content`,tokens:s}):e)]})]})};module.exports=f;
package/index36.mjs CHANGED
@@ -1,9 +1,22 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Item as m } from "react-stately";
3
- const n = (e) => {
4
- const { key: t, value: r } = e;
5
- return /* @__PURE__ */ o(m, { children: r }, t);
1
+ "use client";
2
+ import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
3
+ import l from "react";
4
+ import { useSwiperController as N } from "./index72.mjs";
5
+ import p from "./index25.mjs";
6
+ import I from "./index6.mjs";
7
+ import $ from "./index14.mjs";
8
+ const _ = (f) => {
9
+ var c;
10
+ const { title: i, button: o, content: e, themeName: n = "alerts.item", tokens: m, icon: r, id: a } = f, { controller: t } = N(), h = ((c = t == null ? void 0 : t.slides) == null ? void 0 : c.findIndex((u) => u.id === a)) === (t == null ? void 0 : t.activeIndex);
11
+ return !i && !o && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
12
+ r && /* @__PURE__ */ s($, { icon: r, themeName: `${n}.icon`, tokens: m }),
13
+ (i || o || e) && /* @__PURE__ */ d(p, { themeName: `${n}.container`, tokens: m, children: [
14
+ i && /* @__PURE__ */ s(p, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: i }),
15
+ o && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...o }),
16
+ e && (l.isValidElement(e) ? l.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
17
+ ] })
18
+ ] });
6
19
  };
7
20
  export {
8
- n as default
21
+ _ as default
9
22
  };
package/index37.js CHANGED
@@ -1 +1 @@
1
- "use strict";const D=require("react/jsx-runtime"),$=require("./index38.js"),I=require("./index126.js"),b=process.env.NEXT_PUBLIC_IMG_DOMAIN,p=l=>{const{fit:h,customTheme:v,thumbhash:o,description:m,width:e,height:r,id:n,filenameDownload:i,imgDomain:s=b,protocol:d="https",focalPointX:c,focalPointY:a,...g}=l;if(!n||!i)return null;if(!s)return console.warn("No image domain was provided"),null;const u=(()=>{try{const t=new URL(`/assets/${n}/${i}`,`${d}://${s}`);return t.searchParams.set("fit",h??"contain"),t}catch(t){return console.warn(t),null}})();if(u==null)return null;const f=!!c&&!!a&&!!e&&!!r;return D.jsx($,{style:f?{objectFit:"cover",objectPosition:`${c/e*100}% ${a/r*100}%`}:void 0,alt:m??"",...o?{blurDataURL:I.createPngDataUri(o),placeholder:"blur"}:{},src:u.href,...g,width:e??void 0,height:r??void 0})};module.exports=p;
1
+ "use strict";const c=require("react/jsx-runtime"),s=require("react-stately"),n=e=>{const{key:t,value:r}=e;return c.jsx(s.Item,{children:r},t)};module.exports=n;
package/index37.mjs CHANGED
@@ -1,49 +1,9 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import p from "./index38.mjs";
3
- import { createPngDataUri as D } from "./index126.mjs";
4
- const I = process.env.NEXT_PUBLIC_IMG_DOMAIN, j = (m) => {
5
- const {
6
- fit: u,
7
- customTheme: P,
8
- thumbhash: r,
9
- description: h,
10
- width: o,
11
- height: e,
12
- id: i,
13
- filenameDownload: n,
14
- imgDomain: a = I,
15
- protocol: d = "https",
16
- focalPointX: s,
17
- focalPointY: c,
18
- ...g
19
- } = m;
20
- if (!i || !n) return null;
21
- if (!a)
22
- return console.warn("No image domain was provided"), null;
23
- const l = (() => {
24
- try {
25
- const t = new URL(`/assets/${i}/${n}`, `${d}://${a}`);
26
- return t.searchParams.set("fit", u ?? "contain"), t;
27
- } catch (t) {
28
- return console.warn(t), null;
29
- }
30
- })();
31
- return l == null ? null : /* @__PURE__ */ f(
32
- p,
33
- {
34
- style: !!s && !!c && !!o && !!e ? {
35
- objectFit: "cover",
36
- objectPosition: `${s / o * 100}% ${c / e * 100}%`
37
- } : void 0,
38
- alt: h ?? "",
39
- ...r ? { blurDataURL: D(r), placeholder: "blur" } : {},
40
- src: l.href,
41
- ...g,
42
- width: o ?? void 0,
43
- height: e ?? void 0
44
- }
45
- );
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Item as m } from "react-stately";
3
+ const n = (e) => {
4
+ const { key: t, value: r } = e;
5
+ return /* @__PURE__ */ o(m, { children: r }, t);
46
6
  };
47
7
  export {
48
- j as default
8
+ n as default
49
9
  };
package/index38.js CHANGED
@@ -1 +1 @@
1
- "use strict";const h=require("react/jsx-runtime"),o=require("next/image"),q=require("./index64.js"),j=c=>{const{src:t,width:e,height:s,themeName:u="img",tokens:n,customTheme:m,...r}=c,i=q(u,n,m);if(typeof t=="object"){const{blurWidth:g,blurHeight:l,width:a,height:b,...d}=t,w={blurwidth:g,blurheight:l};return h.jsx(o,{className:i,...d,...r,...w,width:a??e,height:b??s})}return h.jsx(o,{width:e,height:s,className:i,src:t,...r})};module.exports=j;
1
+ "use strict";const D=require("react/jsx-runtime"),$=require("./index39.js"),I=require("./index126.js"),b=process.env.NEXT_PUBLIC_IMG_DOMAIN,p=l=>{const{fit:h,customTheme:v,thumbhash:o,description:m,width:e,height:r,id:n,filenameDownload:i,imgDomain:s=b,protocol:d="https",focalPointX:c,focalPointY:a,...g}=l;if(!n||!i)return null;if(!s)return console.warn("No image domain was provided"),null;const u=(()=>{try{const t=new URL(`/assets/${n}/${i}`,`${d}://${s}`);return t.searchParams.set("fit",h??"contain"),t}catch(t){return console.warn(t),null}})();if(u==null)return null;const f=!!c&&!!a&&!!e&&!!r;return D.jsx($,{style:f?{objectFit:"cover",objectPosition:`${c/e*100}% ${a/r*100}%`}:void 0,alt:m??"",...o?{blurDataURL:I.createPngDataUri(o),placeholder:"blur"}:{},src:u.href,...g,width:e??void 0,height:r??void 0})};module.exports=p;
package/index38.mjs CHANGED
@@ -1,26 +1,48 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import o from "next/image";
3
- import f from "./index64.mjs";
4
- const j = (m) => {
5
- const { src: t, width: e, height: r, themeName: u = "img", tokens: c, customTheme: n, ...h } = m, i = f(u, c, n);
6
- if (typeof t == "object") {
7
- const { blurWidth: l, blurHeight: g, width: a, height: b, ...d } = t;
8
- return /* @__PURE__ */ s(
9
- o,
10
- {
11
- className: i,
12
- ...d,
13
- ...h,
14
- ...{
15
- blurwidth: l,
16
- blurheight: g
17
- },
18
- width: a ?? e,
19
- height: b ?? r
20
- }
21
- );
22
- }
23
- return /* @__PURE__ */ s(o, { width: e, height: r, className: i, src: t, ...h });
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import p from "./index39.mjs";
3
+ import { createPngDataUri as D } from "./index126.mjs";
4
+ const I = process.env.NEXT_PUBLIC_IMG_DOMAIN, j = (m) => {
5
+ const {
6
+ fit: u,
7
+ customTheme: P,
8
+ thumbhash: r,
9
+ description: h,
10
+ width: o,
11
+ height: e,
12
+ id: i,
13
+ filenameDownload: n,
14
+ imgDomain: a = I,
15
+ protocol: d = "https",
16
+ focalPointX: s,
17
+ focalPointY: c,
18
+ ...g
19
+ } = m;
20
+ if (!i || !n) return null;
21
+ if (!a)
22
+ return console.warn("No image domain was provided"), null;
23
+ const l = (() => {
24
+ try {
25
+ const t = new URL(`/assets/${i}/${n}`, `${d}://${a}`);
26
+ return t.searchParams.set("fit", u ?? "contain"), t;
27
+ } catch (t) {
28
+ return console.warn(t), null;
29
+ }
30
+ })();
31
+ return l == null ? null : /* @__PURE__ */ f(
32
+ p,
33
+ {
34
+ style: !!s && !!c && !!o && !!e ? {
35
+ objectFit: "cover",
36
+ objectPosition: `${s / o * 100}% ${c / e * 100}%`
37
+ } : void 0,
38
+ alt: h ?? "",
39
+ ...r ? { blurDataURL: D(r), placeholder: "blur" } : {},
40
+ src: l.href,
41
+ ...g,
42
+ width: o ?? void 0,
43
+ height: e ?? void 0
44
+ }
45
+ );
24
46
  };
25
47
  export {
26
48
  j as default
package/index39.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),t=require("lodash.isequal"),o=require("react"),s=r=>e.jsx("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx("path",{d:"M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14",stroke:"currentColor"})}),n=o.memo(s,t);module.exports=n;
1
+ "use client";
2
+ "use strict";const h=require("react/jsx-runtime"),o=require("next/image"),q=require("./index65.js"),j=c=>{const{src:t,width:e,height:s,themeName:u="img",tokens:n,customTheme:m,...r}=c,i=q(u,n,m);if(typeof t=="object"){const{blurWidth:g,blurHeight:l,width:a,height:b,...d}=t,w={blurwidth:g,blurheight:l};return h.jsx(o,{className:i,...d,...r,...w,width:a??e,height:b??s})}return h.jsx(o,{width:e,height:s,className:i,src:t,...r})};module.exports=j;
package/index39.mjs CHANGED
@@ -1,7 +1,28 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import t from "lodash.isequal";
3
- import { memo as m } from "react";
4
- const n = (r) => /* @__PURE__ */ o("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14", stroke: "currentColor" }) }), l = m(n, t);
1
+ "use client";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import o from "next/image";
4
+ import f from "./index65.mjs";
5
+ const j = (m) => {
6
+ const { src: t, width: e, height: r, themeName: u = "img", tokens: c, customTheme: n, ...h } = m, i = f(u, c, n);
7
+ if (typeof t == "object") {
8
+ const { blurWidth: l, blurHeight: g, width: a, height: b, ...d } = t;
9
+ return /* @__PURE__ */ s(
10
+ o,
11
+ {
12
+ className: i,
13
+ ...d,
14
+ ...h,
15
+ ...{
16
+ blurwidth: l,
17
+ blurheight: g
18
+ },
19
+ width: a ?? e,
20
+ height: b ?? r
21
+ }
22
+ );
23
+ }
24
+ return /* @__PURE__ */ s(o, { width: e, height: r, className: i, src: t, ...h });
25
+ };
5
26
  export {
6
- l as default
27
+ j as default
7
28
  };
package/index4.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const o=require("react/jsx-runtime"),a=require("./index96.js"),m=require("react"),q=require("./index69.js"),x=require("./index24.js"),A=require("./index97.js"),h=require("./index76.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),r=h(e),{accordionProps:d}=a.useAccordion(e,r,t);return o.jsx(q.AccordionContextProvider,{state:r,TransitionAnimation:u,children:o.jsx(x.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...r.collection].map(i=>o.jsx(A,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
2
+ "use strict";const o=require("react/jsx-runtime"),a=require("./index98.js"),m=require("react"),q=require("./index70.js"),x=require("./index25.js"),A=require("./index99.js"),h=require("./index78.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),r=h(e),{accordionProps:d}=a.useAccordion(e,r,t);return o.jsx(q.AccordionContextProvider,{state:r,TransitionAnimation:u,children:o.jsx(x.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...r.collection].map(i=>o.jsx(A,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
package/index4.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { useAccordion as f } from "./index96.mjs";
3
+ import { useAccordion as f } from "./index98.mjs";
4
4
  import { useRef as s } from "react";
5
- import { AccordionContextProvider as p } from "./index69.mjs";
6
- import { BoxWithForwardRef as u } from "./index24.mjs";
7
- import l from "./index97.mjs";
8
- import A from "./index76.mjs";
5
+ import { AccordionContextProvider as p } from "./index70.mjs";
6
+ import { BoxWithForwardRef as u } from "./index25.mjs";
7
+ import l from "./index99.mjs";
8
+ import A from "./index78.mjs";
9
9
  const N = (o) => {
10
10
  const { themeName: t = "accordion", tokens: c, customTheme: m, TransitionAnimation: a } = o, n = s(null), r = A(o), { accordionProps: d } = f(o, r, n);
11
11
  return /* @__PURE__ */ e(p, { state: r, TransitionAnimation: a, children: /* @__PURE__ */ e(