@okam/stack-ui 1.44.0 → 1.44.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 (347) hide show
  1. package/CHANGELOG.md +82 -4
  2. package/components/Popover/interface.d.ts +3 -3
  3. package/components/TagGroup/interface.d.ts +2 -2
  4. package/index.d.ts +2 -0
  5. package/index149.js +1 -1
  6. package/index149.mjs +4 -4
  7. package/index155.js +1 -1
  8. package/index155.mjs +4 -4
  9. package/index157.js +1 -1
  10. package/index157.mjs +4 -4
  11. package/index158.js +1 -1
  12. package/index158.mjs +2 -2
  13. package/index159.js +1 -1
  14. package/index159.mjs +1 -1
  15. package/index160.js +1 -1
  16. package/index160.mjs +1 -1
  17. package/index161.js +1 -2
  18. package/index161.mjs +39 -12
  19. package/index162.js +1 -1
  20. package/index162.mjs +12 -38
  21. package/index163.js +2 -1
  22. package/index163.mjs +26 -11
  23. package/index164.js +2 -1
  24. package/index164.mjs +38 -13
  25. package/index165.js +1 -1
  26. package/index165.mjs +21 -38
  27. package/index166.js +1 -2
  28. package/index166.mjs +44 -24
  29. package/index167.js +1 -1
  30. package/index167.mjs +25 -22
  31. package/index168.js +1 -1
  32. package/index168.mjs +40 -45
  33. package/index169.js +2 -1
  34. package/index169.mjs +57 -25
  35. package/index170.js +1 -1
  36. package/index170.mjs +39 -41
  37. package/index171.js +1 -2
  38. package/index171.mjs +30 -57
  39. package/index172.js +2 -1
  40. package/index172.mjs +8 -38
  41. package/index173.js +2 -1
  42. package/index173.mjs +9 -30
  43. package/index174.js +1 -2
  44. package/index174.mjs +32 -9
  45. package/index175.js +1 -2
  46. package/index175.mjs +14 -9
  47. package/index176.js +1 -1
  48. package/index176.mjs +16 -31
  49. package/index177.js +1 -1
  50. package/index177.mjs +11 -15
  51. package/index178.js +2 -1
  52. package/index178.mjs +47 -16
  53. package/index179.js +1 -2
  54. package/index179.mjs +36 -46
  55. package/index180.js +1 -1
  56. package/index180.mjs +31 -36
  57. package/index181.js +1 -1
  58. package/index181.mjs +20 -31
  59. package/index182.js +1 -1
  60. package/index182.mjs +32 -18
  61. package/index183.js +1 -1
  62. package/index183.mjs +14 -36
  63. package/index185.js +1 -1
  64. package/index185.mjs +3 -3
  65. package/index186.js +1 -1
  66. package/index186.mjs +23 -23
  67. package/index188.js +1 -1
  68. package/index188.mjs +5 -2025
  69. package/index189.js +2 -1
  70. package/index189.mjs +48 -58
  71. package/index190.js +1 -1
  72. package/index190.mjs +2010 -174
  73. package/index191.js +1 -1
  74. package/index191.mjs +59 -5
  75. package/index192.js +1 -2
  76. package/index192.mjs +186 -47
  77. package/index193.js +1 -1
  78. package/index193.mjs +203 -11
  79. package/index194.js +1 -1
  80. package/index194.mjs +51 -190
  81. package/index195.js +1 -1
  82. package/index195.mjs +130 -51
  83. package/index196.js +1 -1
  84. package/index196.mjs +111 -130
  85. package/index197.js +1 -1
  86. package/index197.mjs +205 -105
  87. package/index198.js +1 -1
  88. package/index198.mjs +169 -203
  89. package/index199.js +1 -1
  90. package/index199.mjs +61 -182
  91. package/index2.mjs +35 -35
  92. package/index200.js +1 -1
  93. package/index200.mjs +270 -60
  94. package/index201.js +1 -1
  95. package/index201.mjs +89 -270
  96. package/index202.js +1 -1
  97. package/index202.mjs +182 -92
  98. package/index203.js +1 -1
  99. package/index203.mjs +78 -182
  100. package/index204.js +1 -1
  101. package/index204.mjs +49 -75
  102. package/index205.js +1 -1
  103. package/index205.mjs +117 -49
  104. package/index206.js +1 -1
  105. package/index206.mjs +108 -118
  106. package/index207.js +1 -1
  107. package/index207.mjs +112 -106
  108. package/index208.js +1 -1
  109. package/index208.mjs +63 -113
  110. package/index209.js +1 -1
  111. package/index209.mjs +108 -70
  112. package/index210.js +1 -1
  113. package/index210.mjs +50 -108
  114. package/index211.js +1 -1
  115. package/index211.mjs +75 -34
  116. package/index212.js +1 -1
  117. package/index212.mjs +48 -71
  118. package/index213.js +1 -1
  119. package/index213.mjs +43 -57
  120. package/index214.js +1 -1
  121. package/index214.mjs +86 -43
  122. package/index215.js +5 -1
  123. package/index215.mjs +62 -81
  124. package/index216.js +1 -5
  125. package/index216.mjs +11 -80
  126. package/index217.js +1 -1
  127. package/index217.mjs +119 -125
  128. package/index218.js +1 -1
  129. package/index218.mjs +129 -185
  130. package/index219.js +1 -1
  131. package/index219.mjs +72 -121
  132. package/index220.js +1 -1
  133. package/index220.mjs +12 -132
  134. package/index221.js +1 -1
  135. package/index221.mjs +89 -69
  136. package/index222.js +1 -1
  137. package/index222.mjs +104 -12
  138. package/index223.js +1 -1
  139. package/index223.mjs +4 -95
  140. package/index224.js +1 -1
  141. package/index224.mjs +3 -106
  142. package/index225.js +1 -1
  143. package/index225.mjs +125 -4
  144. package/index226.js +1 -1
  145. package/index226.mjs +29 -3
  146. package/index227.js +1 -1
  147. package/index227.mjs +39 -113
  148. package/index228.js +1 -1
  149. package/index228.mjs +34 -19
  150. package/index229.js +1 -1
  151. package/index229.mjs +26 -40
  152. package/index230.js +1 -1
  153. package/index230.mjs +98 -29
  154. package/index231.js +1 -1
  155. package/index231.mjs +68 -28
  156. package/index232.js +1 -1
  157. package/index232.mjs +78 -90
  158. package/index233.js +1 -1
  159. package/index233.mjs +98 -78
  160. package/index234.js +1 -1
  161. package/index234.mjs +125 -96
  162. package/index235.js +1 -1
  163. package/index235.mjs +191 -98
  164. package/index236.js +1 -1
  165. package/index236.mjs +4 -126
  166. package/index237.js +1 -1
  167. package/index237.mjs +20 -67
  168. package/index238.js +1 -7
  169. package/index238.mjs +39 -431
  170. package/index239.js +1 -1
  171. package/index239.mjs +4 -57
  172. package/index240.js +1 -1
  173. package/index240.mjs +24 -3
  174. package/index241.js +1 -1
  175. package/index241.mjs +12 -25
  176. package/index242.js +1 -1
  177. package/index242.mjs +4 -47
  178. package/index243.js +1 -1
  179. package/index243.mjs +14 -5
  180. package/index244.js +1 -1
  181. package/index244.mjs +40 -22
  182. package/index245.js +1 -1
  183. package/index245.mjs +57 -11
  184. package/index246.js +1 -1
  185. package/index246.mjs +43 -4
  186. package/index247.js +1 -1
  187. package/index247.mjs +31 -13
  188. package/index248.js +1 -1
  189. package/index248.mjs +31 -42
  190. package/index249.js +1 -1
  191. package/index249.mjs +13 -57
  192. package/index250.js +1 -1
  193. package/index250.mjs +10 -43
  194. package/index251.js +1 -1
  195. package/index251.mjs +28 -31
  196. package/index252.js +1 -1
  197. package/index252.mjs +14 -30
  198. package/index253.js +1 -1
  199. package/index253.mjs +9 -14
  200. package/index254.js +1 -1
  201. package/index254.mjs +6 -10
  202. package/index255.js +1 -1
  203. package/index255.mjs +5 -29
  204. package/index256.js +1 -1
  205. package/index256.mjs +7 -15
  206. package/index257.js +1 -1
  207. package/index257.mjs +29 -9
  208. package/index258.js +1 -1
  209. package/index258.mjs +17 -6
  210. package/index259.js +1 -1
  211. package/index259.mjs +44 -5
  212. package/index260.js +1 -1
  213. package/index260.mjs +8 -7
  214. package/index261.js +1 -1
  215. package/index261.mjs +13 -26
  216. package/index262.js +1 -1
  217. package/index262.mjs +3 -18
  218. package/index263.js +1 -1
  219. package/index263.mjs +18 -43
  220. package/index264.js +1 -1
  221. package/index264.mjs +33 -7
  222. package/index265.js +1 -1
  223. package/index265.mjs +22 -16
  224. package/index266.js +1 -1
  225. package/index266.mjs +10 -3
  226. package/index267.js +1 -1
  227. package/index267.mjs +2 -18
  228. package/index268.js +1 -1
  229. package/index268.mjs +36 -34
  230. package/index269.js +1 -1
  231. package/index269.mjs +5 -22
  232. package/index270.js +1 -1
  233. package/index270.mjs +28 -53
  234. package/index271.js +1 -1
  235. package/index271.mjs +6 -27
  236. package/index272.js +1 -1
  237. package/index272.mjs +9 -144
  238. package/index273.js +1 -1
  239. package/index273.mjs +127 -207
  240. package/index274.js +1 -1
  241. package/index274.mjs +43 -22
  242. package/index275.js +1 -1
  243. package/index275.mjs +226 -44
  244. package/index276.js +1 -1
  245. package/index276.mjs +121 -42
  246. package/index277.js +1 -6
  247. package/index277.mjs +64 -105
  248. package/index278.js +7 -1
  249. package/index278.mjs +440 -72
  250. package/index279.js +1 -1
  251. package/index279.mjs +56 -72
  252. package/index28.js +1 -1
  253. package/index28.mjs +38 -94
  254. package/index280.js +1 -1
  255. package/index280.mjs +54 -7
  256. package/index281.js +1 -1
  257. package/index281.mjs +27 -11
  258. package/index282.js +1 -1
  259. package/index282.mjs +31 -9
  260. package/index283.js +1 -1
  261. package/index283.mjs +136 -125
  262. package/index284.js +1 -1
  263. package/index284.mjs +209 -39
  264. package/index285.js +1 -1
  265. package/index285.mjs +19 -228
  266. package/index286.js +1 -1
  267. package/index286.mjs +46 -28
  268. package/index287.js +1 -1
  269. package/index287.mjs +45 -8
  270. package/index288.js +6 -1
  271. package/index288.mjs +113 -3
  272. package/index289.js +1 -1
  273. package/index289.mjs +72 -37
  274. package/index29.js +1 -1
  275. package/index29.mjs +2 -2
  276. package/index290.js +1 -1
  277. package/index290.mjs +74 -5
  278. package/index291.js +1 -1
  279. package/index291.mjs +7 -29
  280. package/index292.js +1 -1
  281. package/index292.mjs +11 -6
  282. package/index30.js +1 -1
  283. package/index30.mjs +1 -1
  284. package/index329.js +1 -1
  285. package/index329.mjs +17 -59
  286. package/index33.js +1 -1
  287. package/index33.mjs +2 -2
  288. package/index330.js +1 -1
  289. package/index330.mjs +30 -7
  290. package/index331.js +1 -1
  291. package/index331.mjs +63 -27
  292. package/index332.js +1 -1
  293. package/index332.mjs +15 -87
  294. package/index333.js +1 -1
  295. package/index333.mjs +48 -7
  296. package/index334.js +1 -1
  297. package/index334.mjs +7 -26
  298. package/index335.js +1 -1
  299. package/index335.mjs +26 -32
  300. package/index336.js +1 -1
  301. package/index336.mjs +87 -6
  302. package/index337.js +1 -1
  303. package/index337.mjs +9 -6
  304. package/index338.js +1 -1
  305. package/index338.mjs +23 -48
  306. package/index339.js +1 -1
  307. package/index339.mjs +32 -28
  308. package/index34.js +1 -1
  309. package/index34.mjs +3 -3
  310. package/index340.js +1 -1
  311. package/index340.mjs +6 -15
  312. package/index341.js +1 -1
  313. package/index341.mjs +6 -21
  314. package/index342.js +1 -1
  315. package/index342.mjs +28 -28
  316. package/index345.js +1 -1
  317. package/index345.mjs +1 -1
  318. package/index35.js +1 -1
  319. package/index35.mjs +1 -1
  320. package/index36.js +1 -1
  321. package/index36.mjs +2 -2
  322. package/index38.js +1 -1
  323. package/index38.mjs +3 -3
  324. package/index39.js +1 -1
  325. package/index39.mjs +3 -3
  326. package/index40.js +1 -1
  327. package/index40.mjs +3 -3
  328. package/index42.js +1 -1
  329. package/index42.mjs +1 -1
  330. package/index44.js +1 -1
  331. package/index44.mjs +2 -2
  332. package/index45.js +1 -1
  333. package/index45.mjs +1 -1
  334. package/index48.js +1 -1
  335. package/index48.mjs +2 -2
  336. package/index52.js +1 -1
  337. package/index52.mjs +1 -1
  338. package/index54.js +1 -1
  339. package/index54.mjs +3 -3
  340. package/index56.js +1 -1
  341. package/index56.mjs +2 -2
  342. package/index57.js +1 -1
  343. package/index57.mjs +1 -1
  344. package/index59.js +1 -1
  345. package/index59.mjs +2 -2
  346. package/logger.d.ts +2 -2
  347. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,20 +1,98 @@
1
- ## 1.44.0 (2026-01-14)
1
+ ## 1.44.3 (2026-01-19)
2
2
 
3
3
  ### 🚀 Features
4
4
 
5
+ - **admin-bar:** add AdminBar with draft mode support ([289427e](https://github.com/OKAMca/stack/commit/289427e))
6
+ - **next-component:** nuqs wrapper for react-aria ([d63f2f7](https://github.com/OKAMca/stack/commit/d63f2f7))
5
7
  - **stack-ui:** listbox react hook form integration ([f79cffc](https://github.com/OKAMca/stack/commit/f79cffc))
6
- - ⚠️ React 19 + Next.js 15 upgrade for all @okam/* packages ([#369](https://github.com/OKAMca/stack/pull/369))
7
8
 
8
9
  ### 🩹 Fixes
9
10
 
11
+ - cross-lib type imports are always absolute ([#392](https://github.com/OKAMca/stack/pull/392))
12
+ - replace safe import to avoid weird externalization issues ([2c1bf26](https://github.com/OKAMca/stack/commit/2c1bf26))
13
+ - **stack-ui:** remove breaking changes tag ([02ef258](https://github.com/OKAMca/stack/commit/02ef258))
14
+ - **stack-ui:** stop bundling okam libs ([57c2f4f](https://github.com/OKAMca/stack/commit/57c2f4f))
15
+ - adminbar safe draft mode handling ([#385](https://github.com/OKAMca/stack/pull/385))
16
+ - **directus-next:** draft route handler uses zod, returns draft isEnabled whenever possible ([#376](https://github.com/OKAMca/stack/pull/376))
10
17
  - **stack-ui:** props order fix ([b129ebe](https://github.com/OKAMca/stack/commit/b129ebe))
11
18
  - **stack-ui:** add icon + error icon to text input ([485cd9e](https://github.com/OKAMca/stack/commit/485cd9e))
12
- - **stack-ui:** typing fixes ([dc7b453](https://github.com/OKAMca/stack/commit/dc7b453))
13
19
 
14
- ### ⚠️ Breaking Changes
20
+ ### 🧱 Updated Dependencies
21
+
22
+ - Updated core-lib to 1.17.1
23
+
24
+ ### ❤️ Thank You
25
+
26
+ - Marie-Maxime Tanguay @marie-maxime
27
+ - Max Hilland
28
+ - Pierre-Olivier Clerson @poclerson
29
+ - poclerson
30
+
31
+ ## 1.44.2 (2026-01-19)
32
+
33
+ ### 🚀 Features
34
+
35
+ - **admin-bar:** add AdminBar with draft mode support ([289427e](https://github.com/OKAMca/stack/commit/289427e))
36
+ - **next-component:** nuqs wrapper for react-aria ([d63f2f7](https://github.com/OKAMca/stack/commit/d63f2f7))
37
+ - **stack-ui:** listbox react hook form integration ([f79cffc](https://github.com/OKAMca/stack/commit/f79cffc))
38
+
39
+ ### 🩹 Fixes
40
+
41
+ - cross-lib type imports are always absolute ([#392](https://github.com/OKAMca/stack/pull/392))
42
+ - replace safe import to avoid weird externalization issues ([2c1bf26](https://github.com/OKAMca/stack/commit/2c1bf26))
43
+ - **stack-ui:** remove breaking changes tag ([02ef258](https://github.com/OKAMca/stack/commit/02ef258))
44
+ - **stack-ui:** stop bundling okam libs ([57c2f4f](https://github.com/OKAMca/stack/commit/57c2f4f))
45
+ - adminbar safe draft mode handling ([#385](https://github.com/OKAMca/stack/pull/385))
46
+ - **directus-next:** draft route handler uses zod, returns draft isEnabled whenever possible ([#376](https://github.com/OKAMca/stack/pull/376))
47
+ - **stack-ui:** props order fix ([b129ebe](https://github.com/OKAMca/stack/commit/b129ebe))
48
+ - **stack-ui:** add icon + error icon to text input ([485cd9e](https://github.com/OKAMca/stack/commit/485cd9e))
49
+
50
+ ### ❤️ Thank You
51
+
52
+ - Marie-Maxime Tanguay @marie-maxime
53
+ - Max Hilland
54
+ - Pierre-Olivier Clerson @poclerson
55
+ - poclerson
56
+
57
+ ## 1.44.1 (2026-01-16)
58
+
59
+ ### 🚀 Features
60
+
61
+ - **admin-bar:** add AdminBar with draft mode support ([289427e](https://github.com/OKAMca/stack/commit/289427e))
62
+ - **next-component:** nuqs wrapper for react-aria ([d63f2f7](https://github.com/OKAMca/stack/commit/d63f2f7))
63
+ - **stack-ui:** listbox react hook form integration ([f79cffc](https://github.com/OKAMca/stack/commit/f79cffc))
64
+
65
+ ### 🩹 Fixes
15
66
 
67
+ - replace safe import to avoid weird externalization issues ([2c1bf26](https://github.com/OKAMca/stack/commit/2c1bf26))
68
+ - **stack-ui:** remove breaking changes tag ([02ef258](https://github.com/OKAMca/stack/commit/02ef258))
69
+ - **stack-ui:** stop bundling okam libs ([57c2f4f](https://github.com/OKAMca/stack/commit/57c2f4f))
70
+ - adminbar safe draft mode handling ([#385](https://github.com/OKAMca/stack/pull/385))
71
+ - **directus-next:** draft route handler uses zod, returns draft isEnabled whenever possible ([#376](https://github.com/OKAMca/stack/pull/376))
72
+ - **stack-ui:** props order fix ([b129ebe](https://github.com/OKAMca/stack/commit/b129ebe))
73
+ - **stack-ui:** add icon + error icon to text input ([485cd9e](https://github.com/OKAMca/stack/commit/485cd9e))
74
+
75
+ ### ❤️ Thank You
76
+
77
+ - Marie-Maxime Tanguay @marie-maxime
78
+ - Max Hilland
79
+ - Pierre-Olivier Clerson @poclerson
80
+ - poclerson
81
+
82
+ ## 1.44.0 (2026-01-14)
83
+
84
+ ### 🚀 Features
85
+
86
+ - **stack-ui:** listbox react hook form integration ([f79cffc](https://github.com/OKAMca/stack/commit/f79cffc))
87
+ - ⚠️ React 19 + Next.js 15 upgrade for all @okam/* packages ([#369](https://github.com/OKAMca/stack/pull/369))
16
88
  - Consumers must now have react and react-dom in their own
17
89
 
90
+ ### 🩹 Fixes
91
+
92
+ - **stack-ui:** props order fix ([b129ebe](https://github.com/OKAMca/stack/commit/b129ebe))
93
+ - **stack-ui:** add icon + error icon to text input ([485cd9e](https://github.com/OKAMca/stack/commit/485cd9e))
94
+ - **stack-ui:** typing fixes ([dc7b453](https://github.com/OKAMca/stack/commit/dc7b453))
95
+
18
96
  ### ❤️ Thank You
19
97
 
20
98
  - Marie-Maxime Tanguay @marie-maxime
@@ -1,16 +1,16 @@
1
- import { ReactElement, RefObject, SVGProps } from 'react';
1
+ import { ReactElement, ReactNode, RefObject, SVGProps } from 'react';
2
2
  import { AriaPopoverProps, AriaPositionProps, FocusScopeProps, OverlayTriggerProps } from 'react-aria';
3
3
  import { OverlayTriggerProps as AriaOverlayTriggerProps, OverlayTriggerState } from 'react-stately';
4
4
  import { TToken } from '../../providers/Theme/interface';
5
5
  import { TDefaultComponent } from '../../types/components';
6
6
  import { TButtonProps } from '../Button/interface';
7
7
 
8
- export interface TPopoverButtonProps<T = TToken> extends TDefaultComponent<T>, TButtonProps<T>, AriaOverlayTriggerProps, AriaPositionProps, OverlayTriggerProps, Pick<AriaPopoverProps, 'shouldCloseOnInteractOutside' | 'isKeyboardDismissDisabled'> {
8
+ export interface TPopoverButtonProps<T = TToken> extends TDefaultComponent<T>, TButtonProps<T>, AriaOverlayTriggerProps, Omit<AriaPositionProps, 'targetRef' | 'overlayRef'>, OverlayTriggerProps, Pick<AriaPopoverProps, 'shouldCloseOnInteractOutside' | 'isKeyboardDismissDisabled'> {
9
9
  /**
10
10
  * @deprecated Pass button props directly to the component. `buttonProps.children` can now be passed as `label` prop.
11
11
  */
12
12
  buttonProps?: TButtonProps;
13
- label: string;
13
+ label: ReactNode;
14
14
  children: ReactElement;
15
15
  }
16
16
  export interface TPopoverProps<T = TToken> extends TDefaultComponent<T>, Omit<AriaPopoverProps, 'popoverRef' | 'triggerRef'>, FocusScopeProps {
@@ -6,9 +6,9 @@ import { TToken } from '../../providers/Theme/interface';
6
6
  import { TDefaultComponent } from '../../types/components';
7
7
  import { TButtonProps } from '../Button/interface';
8
8
 
9
- type TTagCollectionElement<I extends object> = CollectionElement<I> & {
9
+ type TTagCollectionElement<I extends object> = (CollectionElement<I> & {
10
10
  removeButtonProps?: TButtonProps;
11
- };
11
+ }) | null;
12
12
  export type TTagItem<I extends object> = I & {
13
13
  removeButtonProps?: TButtonProps;
14
14
  href?: string;
package/index.d.ts CHANGED
@@ -91,6 +91,8 @@ export type { TTabListProps, TTabProps, TTabPanelProps } from './components/TabL
91
91
  export type { TDefaultNode, TDefaultItemComponent, TDefaultNodeComponent, TDefaultSectionComponent, } from './types/react-stately';
92
92
  export type { TListBoxProps, TListBoxSectionProps } from './components/fields/ListBox/interface';
93
93
  export type { TOptionProps } from './components/fields/Option/interface';
94
+ export type { TPopoverButtonProps } from './components/Popover/interface';
95
+ export type { TPopoverProps } from './components/Popover/interface';
94
96
  export type { TIconProps } from './components/Icon/interface';
95
97
  export type { TShareButtonProps } from './components/ShareButton/interface';
96
98
  export { default as generateUtmTags } from './components/ShareButton/utils/generateUtmTags';
package/index149.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index188.js"),I=require("./index189.js"),d=require("./index190.js");function T(){return T=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},T.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(l=>t.push(l)):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=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=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),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{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=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);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",B)}),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&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.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=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.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:k,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:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=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 v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);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,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.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(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index190.js"),I=require("./index191.js"),d=require("./index192.js");function T(){return T=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},T.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(l=>t.push(l)):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=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=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),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{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=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);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",B)}),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&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.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=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.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:k,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:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=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 v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);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,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.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(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;
package/index149.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import a, { forwardRef as W, useState as P, useRef as u, useEffect as _, useLayoutEffect as Q, createContext as q } from "react";
2
- import { S as X } from "./index188.mjs";
3
- import { g as Y, m as Z, a as ee, u as re } from "./index189.mjs";
4
- import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index190.mjs";
1
+ import a, { forwardRef as W, useState as P, useRef as u, useEffect as _, createContext as q, useLayoutEffect as Q } from "react";
2
+ import { S as X } from "./index190.mjs";
3
+ import { g as Y, m as Z, a as ee, u as re } from "./index191.mjs";
4
+ import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index192.mjs";
5
5
  function k() {
6
6
  return k = Object.assign ? Object.assign.bind() : function(n) {
7
7
  for (var r = 1; r < arguments.length; r++) {
package/index155.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),h=require("react-aria"),k=require("./index89.js"),l=require("./index37.js"),j=require("./index3.js"),N=require("./index193.js"),d=({item:o,state:a,themeName:n="li"})=>{const r=p.useRef(null),{optionProps:e,isFocusVisible:i}=h.useOption({key:o.key},a,r),c=k(n);return t.jsx(j.TypographyWithForwardRef,{as:"li",...e,tokens:{className:`${c} ${i?"has-focus-ring":""}`},ref:r,children:o.rendered})},y=o=>{const{children:a,listBoxRef:n,themeName:r,...e}=o;return t.jsx(h.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:t.jsx(l.BoxWithForwardRef,{...e,ref:n,as:"ul",themeName:`${r}.ul`,children:a})})},B=o=>{const a=p.useRef(null),{listBoxRef:n=a,state:r,themeName:e="option",optionsWithHeaders:i}=o,{listBoxProps:c}=h.useListBox(o,r,n),m=Array.from(r.collection),$=N.useListboxSections(m,i||[]);return(i==null?void 0:i.some(s=>{var u;return(u=s.key)==null?void 0:u.includes("header-")}))?t.jsx(y,{...c,listBoxRef:n,themeName:e,children:$.map(s=>{var x;const u=s.header?`section-${s.header.key}`:`section-${((x=s.items[0])==null?void 0:x.key)||"empty"}`;return t.jsx(l.default,{as:"li",themeName:`${e}.group`,children:t.jsxs(l.default,{as:"section",themeName:`${e}.section`,children:[s.header&&t.jsx(j.default,{as:"header",themeName:`${e}.headerText`,children:s.header.rendered},s.header.key),t.jsx(l.default,{as:"ul",themeName:`${e}.list`,children:s.items.map(f=>t.jsx(d,{themeName:`${e}.li`,item:f,state:r},String(f.key)))})]})},u)})}):t.jsx(y,{...c,listBoxRef:n,themeName:e,children:m.map(s=>t.jsx(d,{themeName:`${e}.li`,item:s,state:r},s.key))})};exports.ListBox=B;exports.Option=d;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),h=require("react-aria"),k=require("./index89.js"),l=require("./index37.js"),j=require("./index3.js"),N=require("./index216.js"),d=({item:o,state:a,themeName:n="li"})=>{const r=p.useRef(null),{optionProps:e,isFocusVisible:i}=h.useOption({key:o.key},a,r),c=k(n);return t.jsx(j.TypographyWithForwardRef,{as:"li",...e,tokens:{className:`${c} ${i?"has-focus-ring":""}`},ref:r,children:o.rendered})},y=o=>{const{children:a,listBoxRef:n,themeName:r,...e}=o;return t.jsx(h.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:t.jsx(l.BoxWithForwardRef,{...e,ref:n,as:"ul",themeName:`${r}.ul`,children:a})})},B=o=>{const a=p.useRef(null),{listBoxRef:n=a,state:r,themeName:e="option",optionsWithHeaders:i}=o,{listBoxProps:c}=h.useListBox(o,r,n),m=Array.from(r.collection),$=N.useListboxSections(m,i||[]);return(i==null?void 0:i.some(s=>{var u;return(u=s.key)==null?void 0:u.includes("header-")}))?t.jsx(y,{...c,listBoxRef:n,themeName:e,children:$.map(s=>{var x;const u=s.header?`section-${s.header.key}`:`section-${((x=s.items[0])==null?void 0:x.key)||"empty"}`;return t.jsx(l.default,{as:"li",themeName:`${e}.group`,children:t.jsxs(l.default,{as:"section",themeName:`${e}.section`,children:[s.header&&t.jsx(j.default,{as:"header",themeName:`${e}.headerText`,children:s.header.rendered},s.header.key),t.jsx(l.default,{as:"ul",themeName:`${e}.list`,children:s.items.map(f=>t.jsx(d,{themeName:`${e}.li`,item:f,state:r},String(f.key)))})]})},u)})}):t.jsx(y,{...c,listBoxRef:n,themeName:e,children:m.map(s=>t.jsx(d,{themeName:`${e}.li`,item:s,state:r},s.key))})};exports.ListBox=B;exports.Option=d;
package/index155.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as $ } from "react/jsx-runtime";
3
3
  import y from "react";
4
- import { useListBox as N, useOption as k, FocusScope as B } from "react-aria";
4
+ import { useListBox as N, FocusScope as k, useOption as B } from "react-aria";
5
5
  import R from "./index89.mjs";
6
6
  import h, { BoxWithForwardRef as F } from "./index37.mjs";
7
7
  import g, { TypographyWithForwardRef as L } from "./index3.mjs";
8
- import { useListboxSections as S } from "./index193.mjs";
8
+ import { useListboxSections as S } from "./index216.mjs";
9
9
  const p = ({ item: s, state: i, themeName: n = "li" }) => {
10
- const t = y.useRef(null), { optionProps: e, isFocusVisible: a } = k({ key: s.key }, i, t), m = R(n);
10
+ const t = y.useRef(null), { optionProps: e, isFocusVisible: a } = B({ key: s.key }, i, t), m = R(n);
11
11
  return /* @__PURE__ */ o(
12
12
  L,
13
13
  {
@@ -20,7 +20,7 @@ const p = ({ item: s, state: i, themeName: n = "li" }) => {
20
20
  );
21
21
  }, f = (s) => {
22
22
  const { children: i, listBoxRef: n, themeName: t, ...e } = s;
23
- return /* @__PURE__ */ o(B, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ o(F, { ...e, ref: n, as: "ul", themeName: `${t}.ul`, children: i }) });
23
+ return /* @__PURE__ */ o(k, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ o(F, { ...e, ref: n, as: "ul", themeName: `${t}.ul`, children: i }) });
24
24
  }, C = (s) => {
25
25
  const i = y.useRef(null), { listBoxRef: n = i, state: t, themeName: e = "option", optionsWithHeaders: a } = s, { listBoxProps: m } = N(s, t, n), l = Array.from(t.collection), x = S(l, a || []);
26
26
  return (a == null ? void 0 : a.some((r) => {
package/index157.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),V=require("./index158.js"),v=require("./index236.js"),f=require("./index237.js"),y=require("./index238.js"),I=require("./index239.js");function h(e,t,i){let s=v.useFormValidationState({...e,value:t.isSelected}),{isInvalid:r,validationErrors:P,validationDetails:m}=s.displayValidation,{labelProps:b,inputProps:p,isSelected:l,isPressed:S,isDisabled:o,isReadOnly:n}=I.useToggle({...e,isInvalid:r},t,i);f.useFormValidation(e,s,i);let{isIndeterminate:q,isRequired:d,validationBehavior:u="aria"}=e;c.useEffect(()=>{i.current&&(i.current.indeterminate=!!q)});let{pressProps:g}=y.usePress({isDisabled:o||n,onPress(){let{[v.privateValidationStateProp]:a}=e,{commitValidation:D}=a||s;D()}});return{labelProps:V.mergeProps(b,g,c.useMemo(()=>({onMouseDown:a=>a.preventDefault()}),[])),inputProps:{...p,checked:l,"aria-required":d&&u==="aria"||void 0,required:d&&u==="native"},isSelected:l,isPressed:S,isDisabled:o,isReadOnly:n,isInvalid:r,validationErrors:P,validationDetails:m}}exports.useCheckbox=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),V=require("./index158.js"),v=require("./index276.js"),f=require("./index277.js"),y=require("./index278.js"),I=require("./index279.js");function h(e,t,i){let s=v.useFormValidationState({...e,value:t.isSelected}),{isInvalid:r,validationErrors:P,validationDetails:m}=s.displayValidation,{labelProps:b,inputProps:p,isSelected:l,isPressed:S,isDisabled:o,isReadOnly:n}=I.useToggle({...e,isInvalid:r},t,i);f.useFormValidation(e,s,i);let{isIndeterminate:q,isRequired:d,validationBehavior:u="aria"}=e;c.useEffect(()=>{i.current&&(i.current.indeterminate=!!q)});let{pressProps:g}=y.usePress({isDisabled:o||n,onPress(){let{[v.privateValidationStateProp]:a}=e,{commitValidation:D}=a||s;D()}});return{labelProps:V.mergeProps(b,g,c.useMemo(()=>({onMouseDown:a=>a.preventDefault()}),[])),inputProps:{...p,checked:l,"aria-required":d&&u==="aria"||void 0,required:d&&u==="native"},isSelected:l,isPressed:S,isDisabled:o,isReadOnly:n,isInvalid:r,validationErrors:P,validationDetails:m}}exports.useCheckbox=h;
package/index157.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { useEffect as x, useMemo as D } from "react";
2
2
  import { mergeProps as S } from "./index158.mjs";
3
- import { useFormValidationState as V, privateValidationStateProp as I } from "./index236.mjs";
4
- import { useFormValidation as g } from "./index237.mjs";
5
- import { usePress as h } from "./index238.mjs";
6
- import { useToggle as q } from "./index239.mjs";
3
+ import { useFormValidationState as V, privateValidationStateProp as I } from "./index276.mjs";
4
+ import { useFormValidation as g } from "./index277.mjs";
5
+ import { usePress as h } from "./index278.mjs";
6
+ import { useToggle as q } from "./index279.mjs";
7
7
  function M(e, t, i) {
8
8
  let r = V({
9
9
  ...e,
package/index158.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index243.js"),l=require("./index185.js"),f=require("./index247.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index239.js"),l=require("./index185.js"),f=require("./index243.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
package/index158.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { chain as n } from "./index243.mjs";
1
+ import { chain as n } from "./index239.mjs";
2
2
  import { mergeIds as s } from "./index185.mjs";
3
- import { clsx as l } from "./index247.mjs";
3
+ import { clsx as l } from "./index243.mjs";
4
4
  function a(...r) {
5
5
  let o = {
6
6
  ...r[0]
package/index159.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index158.js"),o=require("react"),p=require("./index270.js"),c={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function u(s={}){let{style:e,isFocusable:t}=s,[i,n]=o.useState(!1),{focusWithinProps:l}=p.useFocusWithin({isDisabled:!t,onFocusWithinChange:a=>n(a)}),r=o.useMemo(()=>i?e:e?{...c,...e}:c,[i]);return{visuallyHiddenProps:{...l,style:r}}}function h(s){let{children:e,elementType:t="div",isFocusable:i,style:n,...l}=s,{visuallyHiddenProps:r}=u(s);return o.createElement(t,d.mergeProps(l,r),e)}exports.VisuallyHidden=h;exports.useVisuallyHidden=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index158.js"),o=require("react"),p=require("./index280.js"),c={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function u(s={}){let{style:e,isFocusable:t}=s,[i,n]=o.useState(!1),{focusWithinProps:l}=p.useFocusWithin({isDisabled:!t,onFocusWithinChange:a=>n(a)}),r=o.useMemo(()=>i?e:e?{...c,...e}:c,[i]);return{visuallyHiddenProps:{...l,style:r}}}function h(s){let{children:e,elementType:t="div",isFocusable:i,style:n,...l}=s,{visuallyHiddenProps:r}=u(s);return o.createElement(t,d.mergeProps(l,r),e)}exports.VisuallyHidden=h;exports.useVisuallyHidden=u;
package/index159.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { mergeProps as n } from "./index158.mjs";
2
2
  import d, { useState as u, useMemo as p } from "react";
3
- import { useFocusWithin as f } from "./index270.mjs";
3
+ import { useFocusWithin as f } from "./index280.mjs";
4
4
  const a = {
5
5
  border: 0,
6
6
  clip: "rect(0 0 0 0)",
package/index160.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index271.js"),o=require("react");function f(e={}){let{isReadOnly:d}=e,[t,a]=S.useControlledState(e.isSelected,e.defaultSelected||!1,e.onChange),[c]=o.useState(t);function u(n){d||a(n)}function i(){d||a(!t)}var l;return{isSelected:t,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:c,setSelected:u,toggle:i}}exports.useToggleState=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index281.js"),o=require("react");function f(e={}){let{isReadOnly:d}=e,[t,a]=S.useControlledState(e.isSelected,e.defaultSelected||!1,e.onChange),[c]=o.useState(t);function u(n){d||a(n)}function i(){d||a(!t)}var l;return{isSelected:t,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:c,setSelected:u,toggle:i}}exports.useToggleState=f;
package/index160.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { useControlledState as o } from "./index271.mjs";
1
+ import { useControlledState as o } from "./index281.mjs";
2
2
  import { useState as u } from "react";
3
3
  function r(e = {}) {
4
4
  let { isReadOnly: d } = e, [t, a] = o(e.isSelected, e.defaultSelected || !1, e.onChange), [c] = u(t);
package/index161.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index276.js"),S=require("./index281.js"),c=require("react");function R(e={}){let[a,l]=S.useControlledState(e.value,e.defaultValue||[],e.onChange),[V]=c.useState(a),v=!!e.isRequired&&a.length===0,r=c.useRef(new Map),d=o.useFormValidationState({...e,value:a}),f=d.displayValidation.isInvalid;var u,s;return{...d,value:a,defaultValue:(u=e.defaultValue)!==null&&u!==void 0?u:V,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||l(t=>t.includes(i)?t:t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let n=new Map(r.current);t.isInvalid?n.set(i,t):n.delete(i),r.current=n,d.updateValidation(o.mergeValidation(...n.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:f?"invalid":null,isInvalid:f,isRequired:v}}exports.useCheckboxGroupState=R;
package/index161.mjs CHANGED
@@ -1,15 +1,42 @@
1
- "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { createContext as u, useContext as c } from "react";
4
- const o = u(null), i = (t) => {
5
- const { children: e, state: r } = t;
6
- return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
7
- };
8
- function C() {
9
- const t = c(o);
10
- return t || null;
1
+ import { useFormValidationState as b, mergeValidation as V } from "./index276.mjs";
2
+ import { useControlledState as v } from "./index281.mjs";
3
+ import { useState as $, useRef as R } from "react";
4
+ function D(e = {}) {
5
+ let [i, l] = v(e.value, e.defaultValue || [], e.onChange), [c] = $(i), o = !!e.isRequired && i.length === 0, f = R(/* @__PURE__ */ new Map()), n = b({
6
+ ...e,
7
+ value: i
8
+ }), r = n.displayValidation.isInvalid;
9
+ var u, s;
10
+ return {
11
+ ...n,
12
+ value: i,
13
+ defaultValue: (u = e.defaultValue) !== null && u !== void 0 ? u : c,
14
+ setValue(a) {
15
+ e.isReadOnly || e.isDisabled || l(a);
16
+ },
17
+ isDisabled: e.isDisabled || !1,
18
+ isReadOnly: e.isReadOnly || !1,
19
+ isSelected(a) {
20
+ return i.includes(a);
21
+ },
22
+ addValue(a) {
23
+ e.isReadOnly || e.isDisabled || l((t) => t.includes(a) ? t : t.concat(a));
24
+ },
25
+ removeValue(a) {
26
+ e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
27
+ },
28
+ toggleValue(a) {
29
+ e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
30
+ },
31
+ setInvalid(a, t) {
32
+ let d = new Map(f.current);
33
+ t.isInvalid ? d.set(a, t) : d.delete(a), f.current = d, n.updateValidation(V(...d.values()));
34
+ },
35
+ validationState: (s = e.validationState) !== null && s !== void 0 ? s : r ? "invalid" : null,
36
+ isInvalid: r,
37
+ isRequired: o
38
+ };
11
39
  }
12
40
  export {
13
- i as CheckboxGroupProvider,
14
- C as useCheckboxGroupCtx
41
+ D as useCheckboxGroupState
15
42
  };
package/index162.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),x=require("react"),a=require("./index37.js"),p=require("./index6.js"),b=require("./index24.js"),i=require("./index3.js"),u=x.forwardRef((d,c)=>{const{themeName:e="datePicker",tokens:t,groupProps:m,buttonProps:n,buttonLabel:o,buttonContent:s,icon:h,children:l}=d;return r.jsxs(a.BoxWithForwardRef,{themeName:`${e}.wrapper`,tokens:t,...m,ref:c,children:[o&&r.jsx(i.default,{themeName:`${e}.buttonLabel`,tokens:t,children:o}),r.jsx(a.default,{themeName:`${e}.dateFieldContainer`,tokens:t,children:l}),r.jsxs(p.default,{themeName:`${e}.button`,tokens:t,type:"button",...n,handlePress:n.onPress,children:[s&&r.jsx(i.default,{themeName:`${e}.buttonContent`,tokens:t,children:s}),r.jsx(b,{themeName:`${e}.icon`,tokens:t,icon:h??"ArrowDown"})]})]})});u.displayName="Wrapper";module.exports=u;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
package/index162.mjs CHANGED
@@ -1,41 +1,15 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
3
- import { forwardRef as l } from "react";
4
- import u, { BoxWithForwardRef as f } from "./index37.mjs";
5
- import b from "./index6.mjs";
6
- import N from "./index24.mjs";
7
- import p from "./index3.mjs";
8
- const $ = l((i, h) => {
9
- const {
10
- themeName: e = "datePicker",
11
- tokens: t,
12
- groupProps: s,
13
- buttonProps: r,
14
- buttonLabel: n,
15
- buttonContent: m,
16
- icon: c,
17
- children: d
18
- } = i;
19
- return /* @__PURE__ */ a(f, { themeName: `${e}.wrapper`, tokens: t, ...s, ref: h, children: [
20
- n && /* @__PURE__ */ o(p, { themeName: `${e}.buttonLabel`, tokens: t, children: n }),
21
- /* @__PURE__ */ o(u, { themeName: `${e}.dateFieldContainer`, tokens: t, children: d }),
22
- /* @__PURE__ */ a(
23
- b,
24
- {
25
- themeName: `${e}.button`,
26
- tokens: t,
27
- type: "button",
28
- ...r,
29
- handlePress: r.onPress,
30
- children: [
31
- m && /* @__PURE__ */ o(p, { themeName: `${e}.buttonContent`, tokens: t, children: m }),
32
- /* @__PURE__ */ o(N, { themeName: `${e}.icon`, tokens: t, icon: c ?? "ArrowDown" })
33
- ]
34
- }
35
- )
36
- ] });
37
- });
38
- $.displayName = "Wrapper";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { createContext as u, useContext as c } from "react";
4
+ const o = u(null), i = (t) => {
5
+ const { children: e, state: r } = t;
6
+ return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
7
+ };
8
+ function C() {
9
+ const t = c(o);
10
+ return t || null;
11
+ }
39
12
  export {
40
- $ as default
13
+ i as CheckboxGroupProvider,
14
+ C as useCheckboxGroupCtx
41
15
  };
package/index163.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index24.js"),l=require("./index69.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 client";
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("./index184.js"),m=require("react"),f=require("react-aria"),h=require("./index37.js"),g=require("./index3.js");function q(e){const{themeName:t="dialog",tokens:r,title:i,customTheme:n,children:l,...c}=e,o=m.useRef(null),{dialogProps:u,titleProps:a}=f.useDialog(e,o);return s.jsxs(h.BoxWithForwardRef,{...d.filterDOMProps(c),themeName:`${t}.wrapper`,tokens:r,customTheme:n,...u,ref:o,children:[i&&s.jsx(g.default,{themeName:`${t}.title`,tokens:r,...a,children:i}),l]})}exports.Dialog=q;
package/index163.mjs CHANGED
@@ -1,13 +1,28 @@
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 "./index24.mjs";
5
- import l from "./index69.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
+ "use client";
2
+ import { jsxs as a, jsx as c } from "react/jsx-runtime";
3
+ import { filterDOMProps as d } from "./index184.mjs";
4
+ import { useRef as n } from "react";
5
+ import { useDialog as h } from "react-aria";
6
+ import { BoxWithForwardRef as u } from "./index37.mjs";
7
+ import g from "./index3.mjs";
8
+ function j(e) {
9
+ const { themeName: o = "dialog", tokens: r, title: t, customTheme: i, children: s, ...l } = e, m = n(null), { dialogProps: p, titleProps: f } = h(e, m);
10
+ return /* @__PURE__ */ a(
11
+ u,
12
+ {
13
+ ...d(l),
14
+ themeName: `${o}.wrapper`,
15
+ tokens: r,
16
+ customTheme: i,
17
+ ...p,
18
+ ref: m,
19
+ children: [
20
+ t && /* @__PURE__ */ c(g, { themeName: `${o}.title`, tokens: r, ...f, children: t }),
21
+ s
22
+ ]
23
+ }
24
+ );
25
+ }
11
26
  export {
12
- a as default
27
+ j as Dialog
13
28
  };
package/index164.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const i=require("react/jsx-runtime"),o=require("react"),l=require("./index6.js"),s=o.forwardRef((n,r)=>{const{state:t,handlePress:e,...a}=n,c=o.useCallback(u=>{t.setInputValue(""),t.selectionManager.clearSelection(),e==null||e(u)},[e,t]);return i.jsx(l.ButtonWithForwardRef,{...a,ref:r,handlePress:c})});s.displayName="ComboBoxButton";module.exports=s;
1
+ "use client";
2
+ "use strict";const r=require("react/jsx-runtime"),x=require("react"),a=require("./index37.js"),p=require("./index6.js"),b=require("./index24.js"),i=require("./index3.js"),u=x.forwardRef((d,c)=>{const{themeName:e="datePicker",tokens:t,groupProps:m,buttonProps:n,buttonLabel:o,buttonContent:s,icon:h,children:l}=d;return r.jsxs(a.BoxWithForwardRef,{themeName:`${e}.wrapper`,tokens:t,...m,ref:c,children:[o&&r.jsx(i.default,{themeName:`${e}.buttonLabel`,tokens:t,children:o}),r.jsx(a.default,{themeName:`${e}.dateFieldContainer`,tokens:t,children:l}),r.jsxs(p.default,{themeName:`${e}.button`,tokens:t,type:"button",...n,handlePress:n.onPress,children:[s&&r.jsx(i.default,{themeName:`${e}.buttonContent`,tokens:t,children:s}),r.jsx(b,{themeName:`${e}.icon`,tokens:t,icon:h??"ArrowDown"})]})]})});u.displayName="Wrapper";module.exports=u;
package/index164.mjs CHANGED
@@ -1,16 +1,41 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as m, useCallback as u } from "react";
3
- import { ButtonWithForwardRef as c } from "./index6.mjs";
4
- const f = m((e, r) => {
5
- const { state: o, handlePress: t, ...a } = e, s = u(
6
- (n) => {
7
- o.setInputValue(""), o.selectionManager.clearSelection(), t == null || t(n);
8
- },
9
- [t, o]
10
- );
11
- return /* @__PURE__ */ l(c, { ...a, ref: r, handlePress: s });
1
+ "use client";
2
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
3
+ import { forwardRef as l } from "react";
4
+ import u, { BoxWithForwardRef as f } from "./index37.mjs";
5
+ import b from "./index6.mjs";
6
+ import N from "./index24.mjs";
7
+ import p from "./index3.mjs";
8
+ const $ = l((i, h) => {
9
+ const {
10
+ themeName: e = "datePicker",
11
+ tokens: t,
12
+ groupProps: s,
13
+ buttonProps: r,
14
+ buttonLabel: n,
15
+ buttonContent: m,
16
+ icon: c,
17
+ children: d
18
+ } = i;
19
+ return /* @__PURE__ */ a(f, { themeName: `${e}.wrapper`, tokens: t, ...s, ref: h, children: [
20
+ n && /* @__PURE__ */ o(p, { themeName: `${e}.buttonLabel`, tokens: t, children: n }),
21
+ /* @__PURE__ */ o(u, { themeName: `${e}.dateFieldContainer`, tokens: t, children: d }),
22
+ /* @__PURE__ */ a(
23
+ b,
24
+ {
25
+ themeName: `${e}.button`,
26
+ tokens: t,
27
+ type: "button",
28
+ ...r,
29
+ handlePress: r.onPress,
30
+ children: [
31
+ m && /* @__PURE__ */ o(p, { themeName: `${e}.buttonContent`, tokens: t, children: m }),
32
+ /* @__PURE__ */ o(N, { themeName: `${e}.icon`, tokens: t, icon: c ?? "ArrowDown" })
33
+ ]
34
+ }
35
+ )
36
+ ] });
12
37
  });
13
- f.displayName = "ComboBoxButton";
38
+ $.displayName = "Wrapper";
14
39
  export {
15
- f as default
40
+ $ as default
16
41
  };
package/index165.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index236.js"),S=require("./index271.js"),c=require("react");function R(e={}){let[a,l]=S.useControlledState(e.value,e.defaultValue||[],e.onChange),[V]=c.useState(a),v=!!e.isRequired&&a.length===0,r=c.useRef(new Map),d=o.useFormValidationState({...e,value:a}),f=d.displayValidation.isInvalid;var u,s;return{...d,value:a,defaultValue:(u=e.defaultValue)!==null&&u!==void 0?u:V,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||l(t=>t.includes(i)?t:t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let n=new Map(r.current);t.isInvalid?n.set(i,t):n.delete(i),r.current=n,d.updateValidation(o.mergeValidation(...n.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:f?"invalid":null,isInvalid:f,isRequired:v}}exports.useCheckboxGroupState=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index289.js"),r=require("react"),u=require("./index249.js"),a=require("@react-aria/i18n"),c=require("./index159.js");function d(e){return e&&e.__esModule?e.default:e}function m(e){let{onDismiss:t,...i}=e,s=a.useLocalizedStringFormatter(d(o),"@react-aria/overlays"),n=u.useLabels(i,s.format("dismiss")),l=()=>{t&&t()};return r.createElement(c.VisuallyHidden,null,r.createElement("button",{...n,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}exports.DismissButton=m;
package/index165.mjs CHANGED
@@ -1,42 +1,25 @@
1
- import { useFormValidationState as b, mergeValidation as V } from "./index236.mjs";
2
- import { useControlledState as v } from "./index271.mjs";
3
- import { useState as $, useRef as R } from "react";
4
- function D(e = {}) {
5
- let [i, l] = v(e.value, e.defaultValue || [], e.onChange), [c] = $(i), o = !!e.isRequired && i.length === 0, f = R(/* @__PURE__ */ new Map()), n = b({
6
- ...e,
7
- value: i
8
- }), r = n.displayValidation.isInvalid;
9
- var u, s;
10
- return {
11
- ...n,
12
- value: i,
13
- defaultValue: (u = e.defaultValue) !== null && u !== void 0 ? u : c,
14
- setValue(a) {
15
- e.isReadOnly || e.isDisabled || l(a);
16
- },
17
- isDisabled: e.isDisabled || !1,
18
- isReadOnly: e.isReadOnly || !1,
19
- isSelected(a) {
20
- return i.includes(a);
21
- },
22
- addValue(a) {
23
- e.isReadOnly || e.isDisabled || l((t) => t.includes(a) ? t : t.concat(a));
24
- },
25
- removeValue(a) {
26
- e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
27
- },
28
- toggleValue(a) {
29
- e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
30
- },
31
- setInvalid(a, t) {
32
- let d = new Map(f.current);
33
- t.isInvalid ? d.set(a, t) : d.delete(a), f.current = d, n.updateValidation(V(...d.values()));
34
- },
35
- validationState: (s = e.validationState) !== null && s !== void 0 ? s : r ? "invalid" : null,
36
- isInvalid: r,
37
- isRequired: o
1
+ import l from "./index289.mjs";
2
+ import r from "react";
3
+ import { useLabels as n } from "./index249.mjs";
4
+ import { useLocalizedStringFormatter as m } from "@react-aria/i18n";
5
+ import { VisuallyHidden as f } from "./index159.mjs";
6
+ function c(e) {
7
+ return e && e.__esModule ? e.default : e;
8
+ }
9
+ function x(e) {
10
+ let { onDismiss: t, ...o } = e, i = m(c(l), "@react-aria/overlays"), s = n(o, i.format("dismiss")), a = () => {
11
+ t && t();
38
12
  };
13
+ return /* @__PURE__ */ r.createElement(f, null, /* @__PURE__ */ r.createElement("button", {
14
+ ...s,
15
+ tabIndex: -1,
16
+ onClick: a,
17
+ style: {
18
+ width: 1,
19
+ height: 1
20
+ }
21
+ }));
39
22
  }
40
23
  export {
41
- D as useCheckboxGroupState
24
+ x as DismissButton
42
25
  };