@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/index33.mjs CHANGED
@@ -1,65 +1,65 @@
1
1
  "use client";
2
- import { jsxs as x, jsx as p } from "react/jsx-runtime";
3
- import $, { useCallback as E, createElement as y, useRef as K } from "react";
4
- import { useMenu as L } from "./index67.mjs";
2
+ import { jsxs as x, jsx as k } from "react/jsx-runtime";
3
+ import $, { useCallback as C, createElement as y, useRef as E } from "react";
4
+ import { useMenu as K } from "./index67.mjs";
5
5
  import N from "./index25.mjs";
6
- import T, { Anchor as g } from "./index6.mjs";
7
- const C = (i) => {
8
- const { tabState: s, defaultSelectedKey: r } = L(), { setSelectedKey: t } = s, {
9
- id: o,
6
+ import L, { Anchor as T } from "./index6.mjs";
7
+ const g = (i) => {
8
+ const { tabState: o, defaultSelectedKey: r } = K(), { setSelectedKey: t } = o, {
9
+ id: s,
10
10
  path: n,
11
11
  label: c,
12
- themeName: h = "button",
12
+ themeName: m = "button",
13
13
  tokens: e,
14
- customTheme: m,
14
+ customTheme: h,
15
15
  target: b,
16
- children: f,
16
+ children: p,
17
17
  childItems: u,
18
18
  as: l,
19
19
  ...d
20
- } = i, a = n == null ? void 0 : n.substring(1), k = E(() => {
20
+ } = i, a = n == null ? void 0 : n.substring(1), f = C(() => {
21
21
  if (a != null) {
22
- if (s.selectedKey === a) {
22
+ if (o.selectedKey === a) {
23
23
  t(r);
24
24
  return;
25
25
  }
26
26
  t(a);
27
27
  }
28
- }, [a, s.selectedKey, t, r]);
28
+ }, [a, o.selectedKey, t, r]);
29
29
  return /* @__PURE__ */ y(
30
- T,
30
+ L,
31
31
  {
32
32
  ...d,
33
- themeName: `${h}`,
33
+ themeName: `${m}`,
34
34
  tokens: e,
35
- customTheme: m,
36
- key: `button-${o}`,
37
- handlePress: k,
35
+ customTheme: h,
36
+ key: `button-${s}`,
37
+ handlePress: f,
38
38
  as: l
39
39
  },
40
- $.isValidElement(f) ? f : c
40
+ $.isValidElement(p) ? p : c
41
41
  );
42
42
  }, B = (i) => {
43
43
  const {
44
- id: s,
44
+ id: o,
45
45
  target: r,
46
46
  path: t,
47
- label: o,
47
+ label: s,
48
48
  themeName: n = "anchor",
49
49
  customTheme: c,
50
- tokens: h,
50
+ tokens: m,
51
51
  nextLinkProps: e,
52
- children: m,
52
+ children: h,
53
53
  as: b,
54
- childItems: f,
54
+ childItems: p,
55
55
  ...u
56
- } = i, l = K(null);
57
- return t == null || o == null ? null : /* @__PURE__ */ y(
58
- g,
56
+ } = i, l = E(null);
57
+ return t == null || s == null ? null : /* @__PURE__ */ y(
58
+ T,
59
59
  {
60
60
  ...u,
61
61
  themeName: `${n}`,
62
- tokens: h,
62
+ tokens: m,
63
63
  customTheme: c,
64
64
  nextLinkProps: {
65
65
  scroll: !1,
@@ -67,46 +67,46 @@ const C = (i) => {
67
67
  ...e
68
68
  },
69
69
  ref: l,
70
- key: `link-${s}`,
70
+ key: `link-${o}`,
71
71
  target: r ?? "_self",
72
72
  as: b
73
73
  },
74
- $.isValidElement(m) ? m : o
74
+ $.isValidElement(h) ? h : s
75
75
  );
76
76
  }, R = (i) => {
77
77
  const {
78
- menuItems: s,
78
+ menuItems: o,
79
79
  children: r,
80
80
  themeName: t = "menuItem",
81
- tokens: o,
81
+ tokens: s,
82
82
  customTheme: n,
83
83
  menuLinkComponent: c,
84
- buttonLinkComponent: h
84
+ buttonLinkComponent: m
85
85
  } = i;
86
- return /* @__PURE__ */ x(N, { themeName: `${t}.wrapper`, tokens: o, customTheme: n, children: [
87
- /* @__PURE__ */ p(N, { themeName: `${t}.container`, tokens: o, customTheme: n, children: s == null ? void 0 : s.map((e) => {
88
- var k;
89
- const { id: m, path: b, label: f, as: u, ...l } = e ?? {}, d = { ...o, ...e.tokens };
86
+ return /* @__PURE__ */ x(N, { themeName: `${t}.wrapper`, tokens: s, customTheme: n, children: [
87
+ /* @__PURE__ */ k(N, { themeName: `${t}.container`, tokens: s, customTheme: n, children: o == null ? void 0 : o.map((e) => {
88
+ var f;
89
+ const { id: h, path: b, label: p, as: u, ...l } = e ?? {}, d = { ...s, ...e.tokens };
90
90
  if ((e == null ? void 0 : e.path) == null || e.id == null)
91
91
  return null;
92
- const a = (k = e.path) != null && k.startsWith("#") ? "button" : "a";
93
- return /* @__PURE__ */ p(
92
+ const a = (f = e.path) != null && f.startsWith("#") ? "button" : "a";
93
+ return /* @__PURE__ */ k(
94
94
  N,
95
95
  {
96
96
  themeName: `${t}.innerContent`,
97
97
  tokens: d,
98
98
  customTheme: n,
99
- children: a === "button" ? /* @__PURE__ */ p(
100
- C,
99
+ children: a === "button" ? /* @__PURE__ */ k(
100
+ g,
101
101
  {
102
102
  ...l,
103
103
  ...e,
104
104
  themeName: `${t}.button`,
105
105
  tokens: d,
106
106
  customTheme: n,
107
- as: u ?? h
107
+ as: u ?? m
108
108
  }
109
- ) : /* @__PURE__ */ p(
109
+ ) : /* @__PURE__ */ k(
110
110
  B,
111
111
  {
112
112
  ...l,
package/index34.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react"),s=require("./index67.js"),a=require("./index123.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 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;
package/index34.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { createElement as a } from "react";
3
3
  import { useMenu as o } from "./index67.mjs";
4
- import m from "./index123.mjs";
4
+ import m from "./index124.mjs";
5
5
  const f = (r) => {
6
6
  var t;
7
7
  const { tabState: e } = o();
package/index35.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./index121.js"),x=require("./index11.js"),O=require("./index100.js"),y=require("./index124.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=B,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=O({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,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(x,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
2
+ "use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./index122.js"),x=require("./index11.js"),O=require("./index101.js"),y=require("./index125.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=B,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=O({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,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(x,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
package/index35.mjs CHANGED
@@ -2,10 +2,10 @@
2
2
  import { jsxs as g, jsx as n } from "react/jsx-runtime";
3
3
  import { useRef as h } from "react";
4
4
  import { useOverlayTriggerState as O } from "react-stately";
5
- import d from "./index121.mjs";
5
+ import d from "./index122.mjs";
6
6
  import C from "./index11.mjs";
7
- import y from "./index100.mjs";
8
- import B from "./index124.mjs";
7
+ import y from "./index101.mjs";
8
+ import B from "./index125.mjs";
9
9
  import A from "./index36.mjs";
10
10
  const I = (e) => {
11
11
  const {
package/index36.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
3
- import l from "react";
3
+ import p from "react";
4
4
  import { useSwiperController as N } from "./index71.mjs";
5
- import p from "./index25.mjs";
5
+ import l from "./index25.mjs";
6
6
  import I from "./index6.mjs";
7
7
  import $ from "./index14.mjs";
8
- const _ = (f) => {
8
+ const E = (f) => {
9
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: [
10
+ const { title: o, button: i, 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 !o && !i && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
12
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)
13
+ (o || i || e) && /* @__PURE__ */ d(l, { themeName: `${n}.container`, tokens: m, children: [
14
+ o && /* @__PURE__ */ s(l, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: o }),
15
+ i && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...i }),
16
+ e && (p.isValidElement(e) ? p.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
17
17
  ] })
18
18
  ] });
19
19
  };
20
20
  export {
21
- _ as default
21
+ E as default
22
22
  };
package/index4.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),a=require("./index97.js"),m=require("react"),x=require("./index69.js"),A=require("./index25.js"),q=require("./index98.js"),h=require("./index77.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:d}=a.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(A.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...o.collection].map(i=>r.jsx(q,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
2
+ "use strict";const r=require("react/jsx-runtime"),a=require("./index98.js"),m=require("react"),x=require("./index69.js"),A=require("./index25.js"),q=require("./index99.js"),h=require("./index78.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:d}=a.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(A.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...o.collection].map(i=>r.jsx(q,{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 "./index97.mjs";
3
+ import { useAccordion as f } from "./index98.mjs";
4
4
  import { useRef as s } from "react";
5
5
  import { AccordionContextProvider as p } from "./index69.mjs";
6
6
  import { BoxWithForwardRef as u } from "./index25.mjs";
7
- import l from "./index98.mjs";
8
- import A from "./index77.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(
package/index6.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),c=require("react"),a=require("react-aria"),b=require("./index64.js"),R=c.forwardRef((e,t)=>{var x;const{as:n="a",handlePress:i,children:h,as:r,customTheme:l,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=a.useLink({...e,...o,href:e.href??((x=o==null?void 0:o.href)==null?void 0:x.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=b(f,m,l);return s.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...o,...d,className:j,children:h})})}),B=c.forwardRef((e,t)=>{const{as:n="button",handlePress:i,children:h,as:r,customTheme:l,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=a.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=b(f,m,l);return s.jsx(a.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...d,className:j,children:h})})}),P=c.forwardRef((e,t)=>{const{as:n}=e;return n==="a"?s.jsx(R,{ref:t,...e}):s.jsx(B,{ref:t,...e})}),C=e=>{const{as:t}=e,n=c.useRef(null);return t==="a"?s.jsx(R,{ref:n,...e}):s.jsx(B,{ref:n,...e})},T=c.memo(C);exports.Anchor=R;exports.ButtonWithForwardRef=P;exports.default=T;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),a=require("react"),c=require("react-aria"),b=require("./index64.js"),R=a.forwardRef((e,t)=>{var x;const{as:n="a",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=c.useLink({...e,...o,href:e.href??((x=o==null?void 0:o.href)==null?void 0:x.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=b(f,m,h);return s.jsx(c.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...o,...d,className:j,children:l})})}),B=a.forwardRef((e,t)=>{const{as:n="button",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=c.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=b(f,m,h);return s.jsx(c.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...d,className:j,children:l})})}),C=a.forwardRef((e,t)=>{const{as:n}=e;return n==="a"?s.jsx(R,{ref:t,...e}):s.jsx(B,{ref:t,...e})}),P=e=>{const{as:t}=e,n=a.useRef(null);return t==="a"?s.jsx(R,{ref:n,...e}):s.jsx(B,{ref:n,...e})};P.displayName="Button";exports.Anchor=R;exports.ButtonWithForwardRef=C;exports.default=P;
package/index6.mjs CHANGED
@@ -1,60 +1,61 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import u, { useRef as T } from "react";
4
- import { useLink as N, FocusRing as C, useButton as k } from "react-aria";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import g, { useRef as P } from "react";
4
+ import { useLink as T, FocusRing as C, useButton as k } from "react-aria";
5
5
  import b from "./index64.mjs";
6
- const B = u.forwardRef(
6
+ const B = g.forwardRef(
7
7
  (t, e) => {
8
8
  var R;
9
9
  const {
10
10
  as: n = "a",
11
- handlePress: m,
11
+ handlePress: u,
12
12
  children: a,
13
13
  as: r,
14
- customTheme: i,
15
- tokens: f,
16
- themeName: h = "button",
17
- nextLinkProps: s,
18
- ...l
19
- } = t, c = e, { linkProps: d } = N(
14
+ customTheme: m,
15
+ tokens: i,
16
+ themeName: f = "button",
17
+ nextLinkProps: o,
18
+ ...h
19
+ } = t, c = e, { linkProps: l } = T(
20
20
  {
21
21
  ...t,
22
- ...s,
23
- href: t.href ?? ((R = s == null ? void 0 : s.href) == null ? void 0 : R.toString()),
22
+ ...o,
23
+ href: t.href ?? ((R = o == null ? void 0 : o.href) == null ? void 0 : R.toString()),
24
24
  elementType: r == null ? void 0 : r.toString(),
25
- onPress: m
25
+ onPress: u
26
26
  },
27
27
  e ?? c
28
- ), g = b(h, f, i);
29
- return /* @__PURE__ */ o(C, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ o(n, { ref: c, ...d, ...s, ...l, className: g, children: a }) });
28
+ ), d = b(f, i, m);
29
+ return /* @__PURE__ */ s(C, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...o, ...h, className: d, children: a }) });
30
30
  }
31
- ), P = u.forwardRef((t, e) => {
31
+ ), N = g.forwardRef((t, e) => {
32
32
  const {
33
33
  as: n = "button",
34
- handlePress: m,
34
+ handlePress: u,
35
35
  children: a,
36
36
  as: r,
37
- customTheme: i,
38
- tokens: f,
39
- themeName: h = "button",
40
- isDisabled: s = !1,
41
- ...l
42
- } = t, c = e, { buttonProps: d } = k(
43
- { ...t, isDisabled: s, elementType: r, onPress: m },
37
+ customTheme: m,
38
+ tokens: i,
39
+ themeName: f = "button",
40
+ isDisabled: o = !1,
41
+ ...h
42
+ } = t, c = e, { buttonProps: l } = k(
43
+ { ...t, isDisabled: o, elementType: r, onPress: u },
44
44
  e ?? c
45
- ), g = b(h, f, i);
46
- return /* @__PURE__ */ o(C, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ o(n, { ref: c, ...d, ...l, className: g, children: a }) });
47
- }), _ = u.forwardRef(
45
+ ), d = b(f, i, m);
46
+ return /* @__PURE__ */ s(C, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...h, className: d, children: a }) });
47
+ }), _ = g.forwardRef(
48
48
  (t, e) => {
49
49
  const { as: n } = t;
50
- return n === "a" ? /* @__PURE__ */ o(B, { ref: e, ...t }) : /* @__PURE__ */ o(P, { ref: e, ...t });
50
+ return n === "a" ? /* @__PURE__ */ s(B, { ref: e, ...t }) : /* @__PURE__ */ s(N, { ref: e, ...t });
51
51
  }
52
52
  ), w = (t) => {
53
- const { as: e } = t, n = T(null);
54
- return e === "a" ? /* @__PURE__ */ o(B, { ref: n, ...t }) : /* @__PURE__ */ o(P, { ref: n, ...t });
55
- }, j = u.memo(w);
53
+ const { as: e } = t, n = P(null);
54
+ return e === "a" ? /* @__PURE__ */ s(B, { ref: n, ...t }) : /* @__PURE__ */ s(N, { ref: n, ...t });
55
+ };
56
+ w.displayName = "Button";
56
57
  export {
57
58
  B as Anchor,
58
59
  _ as ButtonWithForwardRef,
59
- j as default
60
+ w as default
60
61
  };
package/index65.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./index125.js"),e=require("react"),[u,l]=o.default();function c({children:s}){const[t,n]=e.useState(!1);e.useEffect(()=>{n(!0)},[]);const r=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(l,{value:r,children:s})}exports.IsClientContextProvider=c;exports.useIsClient=u;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./index126.js"),e=require("react"),[u,l]=o.default();function c({children:s}){const[t,n]=e.useState(!1);e.useEffect(()=>{n(!0)},[]);const r=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(l,{value:r,children:s})}exports.IsClientContextProvider=c;exports.useIsClient=u;
package/index65.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
- import i from "./index125.mjs";
3
+ import i from "./index126.mjs";
4
4
  import { useState as n, useEffect as u, useMemo as f } from "react";
5
5
  const [a, l] = i();
6
6
  function p({ children: t }) {
package/index66.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./index125.js"),r=require("react"),v=require("react-stately"),y=require("./index100.js"),[x,R]=g.default();function q(i){const{children:l,defaultSelectedKey:s,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:a=!1,type:c="dialog"}=i,d=r.useRef(null),P=r.useRef(null),n=v.useOverlayTriggerState({defaultOpen:a,onOpenChange(p){if(!p){t==null||t();return}e==null||e()}}),{triggerProps:o,overlayProps:u}=y({type:c},n),f=r.useMemo(()=>({overlayProps:u,defaultSelectedKey:s,overlayState:n,buttonProps:{closeButtonProps:o,closeButtonRef:P,openButtonProps:o,openButtonRef:d}}),[n,s,o,u]);return S.jsx(R,{value:f,children:l})}exports.SidePanelContextProvider=q;exports.useSidePanel=x;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./index126.js"),r=require("react"),v=require("react-stately"),y=require("./index101.js"),[x,R]=g.default();function q(i){const{children:l,defaultSelectedKey:s,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:a=!1,type:c="dialog"}=i,d=r.useRef(null),P=r.useRef(null),n=v.useOverlayTriggerState({defaultOpen:a,onOpenChange(p){if(!p){t==null||t();return}e==null||e()}}),{triggerProps:o,overlayProps:u}=y({type:c},n),f=r.useMemo(()=>({overlayProps:u,defaultSelectedKey:s,overlayState:n,buttonProps:{closeButtonProps:o,closeButtonRef:P,openButtonProps:o,openButtonRef:d}}),[n,s,o,u]);return S.jsx(R,{value:f,children:l})}exports.SidePanelContextProvider=q;exports.useSidePanel=x;
package/index66.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as P } from "react/jsx-runtime";
3
- import v from "./index125.mjs";
3
+ import v from "./index126.mjs";
4
4
  import { useRef as u, useMemo as g } from "react";
5
5
  import { useOverlayTriggerState as y } from "react-stately";
6
- import S from "./index100.mjs";
6
+ import S from "./index101.mjs";
7
7
  const [H, x] = v();
8
8
  function I(i) {
9
9
  const {
package/index67.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("./index125.js"),j=require("react"),g=require("react-stately"),m=require("./index66.js"),[h,s]=q.createCtxNullable();function R({children:c,defaultSelectedKey:r,defaultIsOpen:x,onCloseCallback:n,onOpenCallback:M,tabs:v,openBtn:t,closeBtn:i,...P}){const e=g.useTabListState({...P,children:v,defaultSelectedKey:r}),d=j.useMemo(()=>({openBtn:t,closeBtn:i,tabState:e,defaultSelectedKey:r}),[t,i,e,r]);return o.jsx(s,{value:d,children:o.jsx(m.SidePanelContextProvider,{onCloseCallback:()=>{var u;n==null||n(),(u=e==null?void 0:e.setSelectedKey)==null||u.call(e,r)},onOpenCallback:M,defaultIsOpen:x,defaultSelectedKey:r.toString(),children:c})})}exports.MenuContextProvider=R;exports.MenuProvider=s;exports.useMenu=h;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("./index126.js"),j=require("react"),g=require("react-stately"),m=require("./index66.js"),[h,s]=q.createCtxNullable();function R({children:c,defaultSelectedKey:r,defaultIsOpen:x,onCloseCallback:n,onOpenCallback:M,tabs:v,openBtn:t,closeBtn:i,...P}){const e=g.useTabListState({...P,children:v,defaultSelectedKey:r}),d=j.useMemo(()=>({openBtn:t,closeBtn:i,tabState:e,defaultSelectedKey:r}),[t,i,e,r]);return o.jsx(s,{value:d,children:o.jsx(m.SidePanelContextProvider,{onCloseCallback:()=>{var u;n==null||n(),(u=e==null?void 0:e.setSelectedKey)==null||u.call(e,r)},onOpenCallback:M,defaultIsOpen:x,defaultSelectedKey:r.toString(),children:c})})}exports.MenuContextProvider=R;exports.MenuProvider=s;exports.useMenu=h;
package/index67.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as u } from "react/jsx-runtime";
3
- import { createCtxNullable as P } from "./index125.mjs";
3
+ import { createCtxNullable as P } from "./index126.mjs";
4
4
  import { useMemo as f } from "react";
5
5
  import { useTabListState as h } from "react-stately";
6
6
  import { SidePanelContextProvider as c } from "./index66.mjs";
package/index69.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("./index125.js"),u=require("react"),[d,t]=s.createCtxNullable();function a(r){const{state:e,children:n,TransitionAnimation:o}=r,c=u.useMemo(()=>({state:e,TransitionAnimation:o}),[e,o]);return i.jsx(t,{value:c,children:n})}exports.AccordionContextProvider=a;exports.AccordionProvider=t;exports.useAccordionCtx=d;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("./index126.js"),u=require("react"),[d,t]=s.createCtxNullable();function a(r){const{state:e,children:n,TransitionAnimation:o}=r,c=u.useMemo(()=>({state:e,TransitionAnimation:o}),[e,o]);return i.jsx(t,{value:c,children:n})}exports.AccordionContextProvider=a;exports.AccordionProvider=t;exports.useAccordionCtx=d;
package/index69.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
- import { createCtxNullable as c } from "./index125.mjs";
3
+ import { createCtxNullable as c } from "./index126.mjs";
4
4
  import { useMemo as m } from "react";
5
5
  const [l, s] = c();
6
6
  function x(t) {
package/index7.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx as i, jsxs as A } from "react/jsx-runtime";
3
- import { useState as C } from "react";
2
+ import { jsx as i, jsxs as C } from "react/jsx-runtime";
3
+ import { useState as A } from "react";
4
4
  import { FocusScope as T, useFocusManager as I } from "react-aria";
5
5
  import b from "./index64.mjs";
6
6
  import K, { ButtonWithForwardRef as L } from "./index6.mjs";
@@ -40,14 +40,14 @@ const $ = (w) => {
40
40
  themeName: a = "shareButton",
41
41
  tokens: c,
42
42
  ...y
43
- } = w, [e, p] = C(!1), o = b(`${a}.container`, c, l), u = (t) => {
43
+ } = w, [e, p] = A(!1), o = b(`${a}.container`, c, l), u = (t) => {
44
44
  p(!e), !e && setTimeout(() => {
45
45
  var n, s;
46
46
  const r = (s = (n = t.target.parentElement) == null ? void 0 : n.lastChild) == null ? void 0 : s.firstChild;
47
47
  r == null || r.focus();
48
48
  });
49
49
  };
50
- return /* @__PURE__ */ i(T, { autoFocus: !0, restoreFocus: !0, contain: e, children: /* @__PURE__ */ A("div", { className: o, onKeyDown: (t) => {
50
+ return /* @__PURE__ */ i(T, { autoFocus: !0, restoreFocus: !0, contain: e, children: /* @__PURE__ */ C("div", { className: o, onKeyDown: (t) => {
51
51
  const r = t.currentTarget.firstChild, n = t.currentTarget.lastChild, s = n.firstChild, v = n.lastChild, { listDirection: x } = c ?? {};
52
52
  x === "row" && (t.key === "ArrowRight" && t.target === r && (s == null || s.focus(), t.preventDefault()), t.key === "ArrowLeft" && t.target === r && (v.focus(), t.preventDefault())), x === "column" && (t.key === "ArrowDown" && t.target === r && (s == null || s.focus(), t.preventDefault()), t.key === "ArrowUp" && t.target === r && (v.focus(), t.preventDefault())), t.key === "Escape" && (p(!1), r == null || r.focus()), document.activeElement === n && (r == null || r.focus());
53
53
  }, children: [
package/index70.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./index125.js"),t=require("react"),[l,s]=i.default();function S(u){const{userQuery:o,children:a}=u,[e,r]=t.useState(o),c=t.useMemo(()=>({userSearchQuery:e,setUserSearchQuery:r}),[e,r]);return n.jsx(s,{value:c,children:a})}exports.SearchBarProvider=S;exports.SearchProvider=s;exports.useUserQueryValHook=l;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./index126.js"),t=require("react"),[l,s]=i.default();function S(u){const{userQuery:o,children:a}=u,[e,r]=t.useState(o),c=t.useMemo(()=>({userSearchQuery:e,setUserSearchQuery:r}),[e,r]);return n.jsx(s,{value:c,children:a})}exports.SearchBarProvider=S;exports.SearchProvider=s;exports.useUserQueryValHook=l;
package/index70.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
- import c from "./index125.mjs";
3
+ import c from "./index126.mjs";
4
4
  import { useState as n, useMemo as i } from "react";
5
5
  const [f, m] = c();
6
6
  function p(o) {
package/index71.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),i=require("./index125.js"),c=require("react"),[u,r]=i.createCtxNullable();function s(o){const{controller:e,children:t}=o,n=c.useMemo(()=>({controller:e}),[e]);return l.jsx(r,{value:n,children:t})}exports.SwiperControllerContextProvider=s;exports.SwiperControllerProvider=r;exports.useSwiperController=u;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),i=require("./index126.js"),c=require("react"),[u,r]=i.createCtxNullable();function s(o){const{controller:e,children:t}=o,n=c.useMemo(()=>({controller:e}),[e]);return l.jsx(r,{value:n,children:t})}exports.SwiperControllerContextProvider=s;exports.SwiperControllerProvider=r;exports.useSwiperController=u;
package/index71.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
- import { createCtxNullable as n } from "./index125.mjs";
3
+ import { createCtxNullable as n } from "./index126.mjs";
4
4
  import { useMemo as i } from "react";
5
5
  const [u, c] = n();
6
6
  function C(o) {
package/index72.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const s=(t,e,m="sharing_tool")=>`?utm_source=${t}&utm_medium=${e}&utm_campaign=${m}`;module.exports=s;
1
+ "use client";
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),f=require("./index126.js"),m=require("radash"),a=require("react"),[v,x]=f.default();function C({useTranslationFunc:s,children:u,namespace:i="common",translateFunctionName:r="t"}){const c=s(i),l=(n,e)=>(console.warn(`STACK-UI/Translation --> translation function not found: translateFunctionName: ${r}`),n),t=m.get(c,r,l),o=a.useCallback((n,e)=>e==null?t(n):t(n,e),[t]),d=a.useMemo(()=>({t:o}),[o]);return T.jsx(x,{value:d,children:u})}exports.TranslationContextProvider=C;exports.useTranslation=v;
package/index72.mjs CHANGED
@@ -1,4 +1,29 @@
1
- const m = (t, a, e = "sharing_tool") => `?utm_source=${t}&utm_medium=${a}&utm_campaign=${e}`;
1
+ "use client";
2
+ import { jsx as u } from "react/jsx-runtime";
3
+ import m from "./index126.mjs";
4
+ import { get as f } from "radash";
5
+ import { useCallback as p, useMemo as T } from "react";
6
+ const [k, x] = m();
7
+ function P({
8
+ useTranslationFunc: s,
9
+ children: e,
10
+ namespace: l = "common",
11
+ translateFunctionName: r = "t"
12
+ }) {
13
+ const c = s(l), t = f(c, r, (n, o) => (console.warn(
14
+ `STACK-UI/Translation --> translation function not found: translateFunctionName: ${r}`
15
+ ), n)), a = p(
16
+ (n, o) => o == null ? t(n) : t(n, o),
17
+ [t]
18
+ ), i = T(
19
+ () => ({
20
+ t: a
21
+ }),
22
+ [a]
23
+ );
24
+ return /* @__PURE__ */ u(x, { value: i, children: e });
25
+ }
2
26
  export {
3
- m as default
27
+ P as TranslationContextProvider,
28
+ k as useTranslation
4
29
  };
package/index73.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";const t=require("react"),s=()=>{const[e,o]=t.useState(),[n,i]=t.useState();return t.useEffect(()=>{o(window.location.href),i(window.document.title)},[]),{windowLocation:e,windowTitle:n}};module.exports=s;
1
+ "use strict";const s=(t,e,m="sharing_tool")=>`?utm_source=${t}&utm_medium=${e}&utm_campaign=${m}`;module.exports=s;
package/index73.mjs CHANGED
@@ -1,11 +1,4 @@
1
- "use client";
2
- import { useState as o, useEffect as w } from "react";
3
- const s = () => {
4
- const [t, e] = o(), [n, i] = o();
5
- return w(() => {
6
- e(window.location.href), i(window.document.title);
7
- }, []), { windowLocation: t, windowTitle: n };
8
- };
1
+ const m = (t, a, e = "sharing_tool") => `?utm_source=${t}&utm_medium=${a}&utm_campaign=${e}`;
9
2
  export {
10
- s as default
3
+ m as default
11
4
  };
package/index74.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const u=require("./index72.js"),i=require("./index73.js"),l=(t,e,o)=>{const{windowLocation:r,windowTitle:s}=i(),n=o??r,c=u(t,e);return`https://www.facebook.com/sharer.php?u=${`${n}${c}`}&t=${s}`};module.exports=l;
2
+ "use strict";const t=require("react"),s=()=>{const[e,o]=t.useState(),[n,i]=t.useState();return t.useEffect(()=>{o(window.location.href),i(window.document.title)},[]),{windowLocation:e,windowTitle:n}};module.exports=s;
package/index74.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  "use client";
2
- import a from "./index72.mjs";
3
- import l from "./index73.mjs";
4
- const m = (o, t, r) => {
5
- const { windowLocation: e, windowTitle: n } = l(), s = r ?? e, c = a(o, t);
6
- return `https://www.facebook.com/sharer.php?u=${`${s}${c}`}&t=${n}`;
2
+ import { useState as o, useEffect as w } from "react";
3
+ const s = () => {
4
+ const [t, e] = o(), [n, i] = o();
5
+ return w(() => {
6
+ e(window.location.href), i(window.document.title);
7
+ }, []), { windowLocation: t, windowTitle: n };
7
8
  };
8
9
  export {
9
- m as default
10
+ s as default
10
11
  };
package/index75.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const u=require("./index72.js"),l=require("./index73.js"),a=(t,o,e)=>{const{windowLocation:n,windowTitle:r}=l(),s=e??n,c=u(t,o),i=`${s}${c}`;return`mailto:?to=&body=${r}%20${i}`};module.exports=a;
2
+ "use strict";const u=require("./index73.js"),i=require("./index74.js"),l=(t,e,o)=>{const{windowLocation:r,windowTitle:s}=i(),n=o??r,c=u(t,e);return`https://www.facebook.com/sharer.php?u=${`${n}${c}`}&t=${s}`};module.exports=l;
package/index75.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import l from "./index72.mjs";
3
- import c from "./index73.mjs";
4
- const d = (o, t, r) => {
5
- const { windowLocation: n, windowTitle: e } = c(), i = r ?? n, s = l(o, t), a = `${i}${s}`;
6
- return `mailto:?to=&body=${e}%20${a}`;
2
+ import a from "./index73.mjs";
3
+ import l from "./index74.mjs";
4
+ const m = (o, t, r) => {
5
+ const { windowLocation: e, windowTitle: n } = l(), s = r ?? e, c = a(o, t);
6
+ return `https://www.facebook.com/sharer.php?u=${`${s}${c}`}&t=${n}`;
7
7
  };
8
8
  export {
9
- d as default
9
+ m as default
10
10
  };
package/index76.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const c=require("./index72.js"),u=require("./index73.js"),i=(t,e,r)=>{const{windowLocation:n}=u(),s=r??n,o=c(t,e);return`https://twitter.com/intent/tweet?text=${`${s}${o}`}`};module.exports=i;
2
+ "use strict";const u=require("./index73.js"),l=require("./index74.js"),a=(t,o,e)=>{const{windowLocation:n,windowTitle:r}=l(),s=e??n,c=u(t,o),i=`${s}${c}`;return`mailto:?to=&body=${r}%20${i}`};module.exports=a;
package/index76.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import c from "./index72.mjs";
3
- import i from "./index73.mjs";
4
- const a = (t, e, r) => {
5
- const { windowLocation: o } = i(), n = r ?? o, s = c(t, e);
6
- return `https://twitter.com/intent/tweet?text=${`${n}${s}`}`;
2
+ import l from "./index73.mjs";
3
+ import c from "./index74.mjs";
4
+ const d = (o, t, r) => {
5
+ const { windowLocation: n, windowTitle: e } = c(), i = r ?? n, s = l(o, t), a = `${i}${s}`;
6
+ return `mailto:?to=&body=${e}%20${a}`;
7
7
  };
8
8
  export {
9
- a as default
9
+ d as default
10
10
  };