@okam/stack-ui 1.40.0 → 1.40.1

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 (446) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/components/fields/ComboBox/components/ComboBoxButton.d.ts +3 -0
  3. package/components/fields/ComboBox/interface.d.ts +5 -1
  4. package/index108.js +6 -1
  5. package/index108.mjs +29 -12
  6. package/index123.js +1 -1
  7. package/index123.mjs +1 -1
  8. package/index125.js +1 -1
  9. package/index125.mjs +2 -2
  10. package/index126.js +1 -1
  11. package/index126.mjs +1 -1
  12. package/index131.js +1 -1
  13. package/index131.mjs +1 -1
  14. package/index133.js +1 -1
  15. package/index133.mjs +4 -4
  16. package/index134.js +1 -1
  17. package/index134.mjs +3 -3
  18. package/index135.js +1 -1
  19. package/index135.mjs +1 -1
  20. package/index136.js +1 -1
  21. package/index136.mjs +1 -1
  22. package/index137.js +1 -1
  23. package/index137.mjs +3 -3
  24. package/index141.js +1 -1
  25. package/index141.mjs +13 -38
  26. package/index142.js +1 -2
  27. package/index142.mjs +38 -24
  28. package/index143.js +2 -1
  29. package/index143.mjs +23 -21
  30. package/index144.js +1 -1
  31. package/index144.mjs +21 -41
  32. package/index145.js +1 -1
  33. package/index145.mjs +42 -25
  34. package/index146.js +1 -1
  35. package/index146.mjs +25 -40
  36. package/index147.js +1 -2
  37. package/index147.mjs +39 -56
  38. package/index148.js +2 -1
  39. package/index148.mjs +57 -38
  40. package/index149.js +1 -1
  41. package/index149.mjs +34 -26
  42. package/index150.js +1 -2
  43. package/index150.mjs +30 -8
  44. package/index151.js +1 -1
  45. package/index151.mjs +7 -8
  46. package/index152.js +2 -1
  47. package/index152.mjs +10 -30
  48. package/index153.js +1 -1
  49. package/index153.mjs +30 -15
  50. package/index154.js +1 -1
  51. package/index154.mjs +13 -15
  52. package/index155.js +1 -2
  53. package/index155.mjs +16 -47
  54. package/index156.js +2 -1
  55. package/index156.mjs +46 -36
  56. package/index157.js +1 -1
  57. package/index157.mjs +36 -27
  58. package/index158.js +1 -1
  59. package/index158.mjs +27 -20
  60. package/index159.js +1 -1
  61. package/index159.mjs +18 -32
  62. package/index160.js +1 -1
  63. package/index160.mjs +35 -21
  64. package/index161.js +1 -1
  65. package/index161.mjs +21 -56
  66. package/index162.js +1 -1
  67. package/index162.mjs +57 -12
  68. package/index163.js +1 -1
  69. package/index163.mjs +12 -46
  70. package/index164.js +1 -2
  71. package/index164.mjs +46 -13
  72. package/index165.js +1 -1
  73. package/index165.mjs +11 -29
  74. package/index166.js +2 -1
  75. package/index166.mjs +31 -12
  76. package/index167.js +1 -1
  77. package/index167.mjs +11 -5
  78. package/index168.js +1 -2
  79. package/index168.mjs +5 -49
  80. package/index169.js +2 -1
  81. package/index169.mjs +48 -124
  82. package/index170.js +1 -1
  83. package/index170.mjs +122 -24
  84. package/index171.js +1 -1
  85. package/index171.mjs +22 -68
  86. package/index172.js +1 -1
  87. package/index172.mjs +62 -370
  88. package/index173.js +1 -1
  89. package/index173.mjs +379 -44
  90. package/index174.js +1 -1
  91. package/index174.mjs +47 -4
  92. package/index175.js +1 -1
  93. package/index175.mjs +4 -25
  94. package/index176.js +1 -1
  95. package/index176.mjs +23 -46
  96. package/index177.js +1 -1
  97. package/index177.mjs +46 -4
  98. package/index178.js +1 -1
  99. package/index178.mjs +5 -24
  100. package/index179.js +1 -1
  101. package/index179.mjs +23 -11
  102. package/index180.js +1 -1
  103. package/index180.mjs +12 -4
  104. package/index181.js +1 -1
  105. package/index181.mjs +4 -14
  106. package/index182.js +1 -1
  107. package/index182.mjs +13 -41
  108. package/index183.js +1 -1
  109. package/index183.mjs +37 -52
  110. package/index184.js +1 -1
  111. package/index184.mjs +55 -39
  112. package/index185.js +1 -1
  113. package/index185.mjs +40 -27
  114. package/index186.js +1 -1
  115. package/index186.mjs +27 -30
  116. package/index187.js +1 -1
  117. package/index187.mjs +30 -13
  118. package/index188.js +1 -1
  119. package/index188.mjs +14 -10
  120. package/index189.js +1 -1
  121. package/index189.mjs +10 -28
  122. package/index19.js +1 -1
  123. package/index19.mjs +3 -2
  124. package/index190.js +1 -1
  125. package/index190.mjs +28 -9
  126. package/index191.js +1 -1
  127. package/index191.mjs +9 -6
  128. package/index192.js +1 -1
  129. package/index192.mjs +6 -5
  130. package/index193.js +1 -1
  131. package/index193.mjs +5 -7
  132. package/index194.js +1 -1
  133. package/index194.mjs +7 -29
  134. package/index195.js +1 -1
  135. package/index195.mjs +27 -16
  136. package/index196.js +1 -1
  137. package/index196.mjs +17 -12
  138. package/index197.js +1 -1
  139. package/index197.mjs +13 -43
  140. package/index198.js +1 -1
  141. package/index198.mjs +42 -7
  142. package/index199.js +1 -1
  143. package/index199.mjs +8 -17
  144. package/index20.js +1 -1
  145. package/index20.mjs +1 -1
  146. package/index200.js +1 -1
  147. package/index200.mjs +18 -3
  148. package/index201.js +1 -1
  149. package/index201.mjs +3 -5
  150. package/index202.js +1 -1
  151. package/index202.mjs +4 -19
  152. package/index203.js +1 -1
  153. package/index203.mjs +19 -54
  154. package/index204.js +1 -1
  155. package/index204.mjs +52 -122
  156. package/index205.js +1 -1
  157. package/index205.mjs +122 -132
  158. package/index206.js +1 -1
  159. package/index206.mjs +125 -35
  160. package/index207.js +1 -1
  161. package/index207.mjs +42 -12
  162. package/index208.js +1 -1
  163. package/index208.mjs +12 -93
  164. package/index209.js +1 -1
  165. package/index209.mjs +87 -98
  166. package/index210.js +1 -1
  167. package/index210.mjs +106 -4
  168. package/index211.js +1 -1
  169. package/index211.mjs +4 -3
  170. package/index212.js +1 -1
  171. package/index212.mjs +3 -125
  172. package/index213.js +1 -1
  173. package/index213.mjs +117 -21
  174. package/index214.js +1 -1
  175. package/index214.mjs +15 -37
  176. package/index215.js +1 -1
  177. package/index215.mjs +41 -34
  178. package/index216.js +1 -1
  179. package/index216.mjs +32 -25
  180. package/index217.js +1 -1
  181. package/index217.mjs +22 -98
  182. package/index218.js +1 -1
  183. package/index218.mjs +99 -63
  184. package/index219.js +1 -1
  185. package/index219.mjs +55 -79
  186. package/index220.js +1 -1
  187. package/index220.mjs +102 -98
  188. package/index221.js +1 -1
  189. package/index221.mjs +98 -141
  190. package/index222.js +1 -1
  191. package/index222.mjs +136 -193
  192. package/index223.js +1 -1
  193. package/index223.mjs +196 -21
  194. package/index224.js +1 -1
  195. package/index224.mjs +20 -47
  196. package/index225.js +1 -1
  197. package/index225.mjs +45 -44
  198. package/index226.js +1 -1
  199. package/index226.mjs +43 -92
  200. package/index227.js +1 -1
  201. package/index227.mjs +98 -72
  202. package/index228.js +1 -1
  203. package/index228.mjs +72 -69
  204. package/index229.js +1 -1
  205. package/index229.mjs +68 -7
  206. package/index230.js +1 -1
  207. package/index230.mjs +7 -11
  208. package/index231.js +1 -1
  209. package/index231.mjs +11 -203
  210. package/index232.js +1 -1
  211. package/index232.mjs +190 -51
  212. package/index233.js +1 -1
  213. package/index233.mjs +51 -130
  214. package/index234.js +1 -1
  215. package/index234.mjs +130 -111
  216. package/index235.js +1 -1
  217. package/index235.mjs +105 -205
  218. package/index236.js +1 -1
  219. package/index236.mjs +203 -169
  220. package/index237.js +1 -1
  221. package/index237.mjs +182 -61
  222. package/index238.js +1 -1
  223. package/index238.mjs +60 -270
  224. package/index239.js +1 -1
  225. package/index239.mjs +270 -89
  226. package/index24.js +1 -1
  227. package/index24.mjs +1 -1
  228. package/index240.js +1 -1
  229. package/index240.mjs +92 -182
  230. package/index241.js +1 -1
  231. package/index241.mjs +182 -78
  232. package/index242.js +1 -1
  233. package/index242.mjs +75 -49
  234. package/index243.js +1 -1
  235. package/index243.mjs +49 -117
  236. package/index244.js +1 -1
  237. package/index244.mjs +118 -108
  238. package/index245.js +1 -1
  239. package/index245.mjs +106 -112
  240. package/index246.js +1 -1
  241. package/index246.mjs +113 -63
  242. package/index247.js +1 -1
  243. package/index247.mjs +70 -108
  244. package/index248.js +1 -1
  245. package/index248.mjs +108 -50
  246. package/index249.js +1 -1
  247. package/index249.mjs +34 -75
  248. package/index25.js +1 -1
  249. package/index25.mjs +3 -3
  250. package/index250.js +1 -1
  251. package/index250.mjs +71 -48
  252. package/index251.js +1 -1
  253. package/index251.mjs +57 -43
  254. package/index252.js +1 -1
  255. package/index252.mjs +43 -86
  256. package/index253.js +1 -5
  257. package/index253.mjs +81 -62
  258. package/index254.js +5 -1
  259. package/index254.mjs +72 -2017
  260. package/index255.js +1 -1
  261. package/index255.mjs +2020 -54
  262. package/index256.js +1 -1
  263. package/index256.mjs +57 -186
  264. package/index257.js +1 -1
  265. package/index257.mjs +188 -5
  266. package/index258.js +1 -1
  267. package/index258.mjs +5 -121
  268. package/index259.js +1 -1
  269. package/index259.mjs +121 -43
  270. package/index26.js +1 -1
  271. package/index26.mjs +1 -1
  272. package/index260.js +1 -1
  273. package/index260.mjs +43 -230
  274. package/index261.js +1 -1
  275. package/index261.mjs +226 -27
  276. package/index262.js +1 -1
  277. package/index262.mjs +31 -3
  278. package/index263.js +1 -1
  279. package/index263.mjs +3 -4
  280. package/index264.js +1 -1
  281. package/index264.mjs +5 -5
  282. package/index265.js +1 -1
  283. package/index265.mjs +1 -1
  284. package/index266.js +1 -1
  285. package/index266.mjs +4 -4
  286. package/index267.js +1 -1
  287. package/index267.mjs +1 -1
  288. package/index268.js +1 -1
  289. package/index268.mjs +1 -1
  290. package/index269.js +1 -1
  291. package/index269.mjs +4 -4
  292. package/index27.js +1 -1
  293. package/index27.mjs +1 -1
  294. package/index270.js +1 -1
  295. package/index270.mjs +4 -4
  296. package/index271.js +1 -1
  297. package/index271.mjs +1 -1
  298. package/index272.js +1 -1
  299. package/index272.mjs +4 -4
  300. package/index273.js +1 -1
  301. package/index273.mjs +4 -4
  302. package/index274.js +1 -1
  303. package/index274.mjs +1 -1
  304. package/index275.js +1 -1
  305. package/index275.mjs +4 -4
  306. package/index276.js +1 -1
  307. package/index276.mjs +4 -4
  308. package/index277.js +1 -1
  309. package/index277.mjs +1 -1
  310. package/index278.js +1 -1
  311. package/index278.mjs +1 -1
  312. package/index279.js +1 -1
  313. package/index279.mjs +4 -4
  314. package/index280.js +1 -1
  315. package/index280.mjs +4 -4
  316. package/index281.js +1 -1
  317. package/index281.mjs +1 -1
  318. package/index282.js +1 -1
  319. package/index282.mjs +4 -4
  320. package/index283.js +1 -1
  321. package/index283.mjs +4 -4
  322. package/index284.js +1 -1
  323. package/index284.mjs +4 -4
  324. package/index285.js +1 -1
  325. package/index285.mjs +1 -1
  326. package/index286.js +1 -1
  327. package/index286.mjs +4 -4
  328. package/index287.js +1 -1
  329. package/index287.mjs +4 -4
  330. package/index288.js +1 -1
  331. package/index288.mjs +4 -4
  332. package/index289.js +1 -1
  333. package/index289.mjs +4 -4
  334. package/index29.js +1 -1
  335. package/index29.mjs +3 -3
  336. package/index290.js +1 -1
  337. package/index290.mjs +4 -4
  338. package/index291.js +1 -1
  339. package/index291.mjs +1 -1
  340. package/index292.js +1 -1
  341. package/index292.mjs +1 -1
  342. package/index293.js +1 -1
  343. package/index293.mjs +1 -1
  344. package/index294.js +1 -1
  345. package/index294.mjs +4 -4
  346. package/index295.js +1 -1
  347. package/index295.mjs +4 -4
  348. package/index296.js +1 -1
  349. package/index296.mjs +4 -4
  350. package/index297.js +1 -1
  351. package/index297.mjs +4 -4
  352. package/index298.js +1 -1
  353. package/index298.mjs +4 -130
  354. package/index299.js +1 -1
  355. package/index299.mjs +123 -183
  356. package/index30.js +1 -1
  357. package/index30.mjs +3 -3
  358. package/index300.js +1 -1
  359. package/index300.mjs +189 -8
  360. package/index301.js +1 -1
  361. package/index301.mjs +9 -3
  362. package/index302.js +1 -1
  363. package/index302.mjs +3 -36
  364. package/index303.js +1 -1
  365. package/index303.mjs +36 -5
  366. package/index304.js +1 -1
  367. package/index304.mjs +5 -29
  368. package/index305.js +1 -1
  369. package/index305.mjs +29 -6
  370. package/index306.js +1 -1
  371. package/index306.mjs +6 -62
  372. package/index307.js +1 -1
  373. package/index307.mjs +63 -7
  374. package/index308.js +1 -1
  375. package/index308.mjs +25 -23
  376. package/index309.js +1 -1
  377. package/index309.mjs +7 -93
  378. package/index31.js +1 -1
  379. package/index31.mjs +3 -3
  380. package/index310.js +1 -1
  381. package/index310.mjs +24 -6
  382. package/index311.js +1 -1
  383. package/index311.mjs +90 -23
  384. package/index312.js +1 -1
  385. package/index312.mjs +8 -32
  386. package/index313.js +1 -1
  387. package/index313.mjs +25 -6
  388. package/index314.js +1 -1
  389. package/index314.mjs +33 -6
  390. package/index315.js +1 -1
  391. package/index315.mjs +6 -50
  392. package/index316.js +1 -1
  393. package/index316.mjs +6 -29
  394. package/index317.js +1 -1
  395. package/index317.mjs +50 -14
  396. package/index318.js +1 -1
  397. package/index318.mjs +14 -21
  398. package/index319.js +1 -1
  399. package/index319.mjs +20 -28
  400. package/index320.js +1 -1
  401. package/index320.mjs +27 -64
  402. package/index321.js +1 -1
  403. package/index321.mjs +66 -53
  404. package/index322.js +1 -1
  405. package/index322.mjs +53 -54
  406. package/index323.js +1 -1
  407. package/index323.mjs +54 -281
  408. package/index324.js +1 -1
  409. package/index324.mjs +281 -20
  410. package/index325.js +1 -1
  411. package/index325.mjs +20 -3
  412. package/index326.js +1 -1
  413. package/index326.mjs +3 -4
  414. package/index327.js +1 -1
  415. package/index327.mjs +4 -8
  416. package/index328.js +1 -1
  417. package/index328.mjs +7 -4
  418. package/index329.js +1 -1
  419. package/index329.mjs +164 -27
  420. package/index33.js +1 -1
  421. package/index33.mjs +1 -1
  422. package/index330.js +1 -1
  423. package/index330.mjs +27 -164
  424. package/index331.js +1 -0
  425. package/index331.mjs +8 -0
  426. package/index35.js +1 -1
  427. package/index35.mjs +2 -2
  428. package/index36.js +1 -1
  429. package/index36.mjs +1 -1
  430. package/index39.js +1 -1
  431. package/index39.mjs +1 -1
  432. package/index43.js +1 -1
  433. package/index43.mjs +1 -1
  434. package/index45.js +1 -1
  435. package/index45.mjs +3 -3
  436. package/index47.js +1 -1
  437. package/index47.mjs +2 -2
  438. package/index48.js +1 -1
  439. package/index48.mjs +1 -1
  440. package/index49.js +1 -1
  441. package/index49.mjs +81 -82
  442. package/index51.js +1 -1
  443. package/index51.mjs +1 -1
  444. package/index95.js +1 -1
  445. package/index95.mjs +1 -1
  446. package/package.json +1 -1
package/index325.mjs CHANGED
@@ -1,6 +1,23 @@
1
- function a(t, e) {
2
- return e.get ? e.get.call(t) : e.value;
1
+ import { CollectionBuilder as u } from "./index329.mjs";
2
+ import { useMemo as n } from "react";
3
+ function b(d, l, r) {
4
+ let t = n(() => new u(), []), { children: i, items: o, collection: e } = d;
5
+ return n(() => {
6
+ if (e) return e;
7
+ let c = t.build({
8
+ children: i,
9
+ items: o
10
+ }, r);
11
+ return l(c);
12
+ }, [
13
+ t,
14
+ i,
15
+ o,
16
+ e,
17
+ r,
18
+ l
19
+ ]);
3
20
  }
4
21
  export {
5
- a as _
22
+ b as useCollection
6
23
  };
package/index326.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}exports._=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(t,e){return e.get?e.get.call(t):e.value}exports._=l;
package/index326.mjs CHANGED
@@ -1,7 +1,6 @@
1
- function o(t, e, n) {
2
- if (!e.has(t)) throw new TypeError("attempted to " + n + " private field on non-instance");
3
- return e.get(t);
1
+ function a(t, e) {
2
+ return e.get ? e.get.call(t) : e.value;
4
3
  }
5
4
  export {
6
- o as _
5
+ a as _
7
6
  };
package/index327.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(l,e,t){if(e.set)e.set.call(l,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}exports._=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}exports._=o;
package/index327.mjs CHANGED
@@ -1,11 +1,7 @@
1
- function l(a, e, t) {
2
- if (e.set) e.set.call(a, t);
3
- else {
4
- if (!e.writable)
5
- throw new TypeError("attempted to set read only private field");
6
- e.value = t;
7
- }
1
+ function o(t, e, n) {
2
+ if (!e.has(t)) throw new TypeError("attempted to " + n + " private field on non-instance");
3
+ return e.get(t);
8
4
  }
9
5
  export {
10
- l as _
6
+ o as _
11
7
  };
package/index328.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o extends Set{constructor(t,l,i){super(t),t instanceof o?(this.anchorKey=l??t.anchorKey,this.currentKey=i??t.currentKey):(this.anchorKey=l??null,this.currentKey=i??null)}}exports.Selection=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(l,e,t){if(e.set)e.set.call(l,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}exports._=a;
package/index328.mjs CHANGED
@@ -1,8 +1,11 @@
1
- class t extends Set {
2
- constructor(s, l, i) {
3
- super(s), s instanceof t ? (this.anchorKey = l ?? s.anchorKey, this.currentKey = i ?? s.currentKey) : (this.anchorKey = l ?? null, this.currentKey = i ?? null);
1
+ function l(a, e, t) {
2
+ if (e.set) e.set.call(a, t);
3
+ else {
4
+ if (!e.writable)
5
+ throw new TypeError("attempted to set read only private field");
6
+ e.value = t;
4
7
  }
5
8
  }
6
9
  export {
7
- t as Selection
10
+ l as _
8
11
  };
package/index329.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function l(n){return o(n)}function o(n,e){for(let t of n)return t}function s(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let r=[...c(n,e),e],f=[...c(n,t),t],d=r.slice(0,f.length).findIndex((i,u)=>i!==f[u]);return d!==-1?(e=r[d],t=f[d],e.index-t.index):r.findIndex(i=>i===t)>=0?1:(f.findIndex(i=>i===e)>=0,-1)}function c(n,e){let t=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=n.getItem(r.parentKey),r&&t.unshift(r);return t}exports.compareNodeOrder=s;exports.getChildNodes=a;exports.getFirstItem=l;exports.getNthItem=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react");class I{build(e,l){return this.context=l,V(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:l,items:u}=e;if(y.isValidElement(l)&&l.type===y.Fragment)yield*this.iterateCollection({children:l.props.children,items:u});else if(typeof l=="function"){if(!u)throw new Error("props.children was a function but props.items is missing");let n=0;for(let r of u)yield*this.getFullNode({value:r,index:n},{renderer:l}),n++}else{let n=[];y.Children.forEach(l,t=>{t&&n.push(t)});let r=0;for(let t of n){let d=this.getFullNode({element:t,index:r},{});for(let m of d)r++,yield m}}}getKey(e,l,u,n){if(e.key!=null)return e.key;if(l.type==="cell"&&l.key!=null)return`${n}${l.key}`;let r=l.value;if(r!=null){var t;let d=(t=r.key)!==null&&t!==void 0?t:r.id;if(d==null)throw new Error("No key found for item");return d}return n?`${n}.${l.index}`:`$.${l.index}`}getChildState(e,l){return{renderer:l.renderer||e.renderer}}*getFullNode(e,l,u,n){if(y.isValidElement(e.element)&&e.element.type===y.Fragment){let i=[];y.Children.forEach(e.element.props.children,f=>{i.push(f)});var r;let s=(r=e.index)!==null&&r!==void 0?r:0;for(const f of i)yield*this.getFullNode({element:f,index:s++},l,u,n);return}let t=e.element;if(!t&&e.value&&l&&l.renderer){let i=this.cache.get(e.value);if(i&&(!i.shouldInvalidate||!i.shouldInvalidate(this.context))){i.index=e.index,i.parentKey=n?n.key:null,yield i;return}t=l.renderer(e.value)}if(y.isValidElement(t)){let i=t.type;if(typeof i!="function"&&typeof i.getCollectionNode!="function"){let c=t.type;throw new Error(`Unknown element <${c}> in collection.`)}let s=i.getCollectionNode(t.props,this.context);var d;let f=(d=e.index)!==null&&d!==void 0?d:0,v=s.next();for(;!v.done&&v.value;){let c=v.value;e.index=f;var m;let C=(m=c.key)!==null&&m!==void 0?m:null;C==null&&(C=c.element?null:this.getKey(t,e,l,u));let S=[...this.getFullNode({...c,key:C,index:f,wrapper:p(e.wrapper,c.wrapper)},this.getChildState(l,c),u?`${u}${t.key}`:t.key,n)];for(let h of S){var x,k;h.value=(k=(x=c.value)!==null&&x!==void 0?x:e.value)!==null&&k!==void 0?k:null,h.value&&this.cache.set(h.value,h);var g;if(e.type&&h.type!==e.type)throw new Error(`Unsupported type <${E(h.type)}> in <${E((g=n==null?void 0:n.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${E(e.type)}> is supported.`);f++,yield h}v=s.next(S)}return}if(e.key==null||e.type==null)return;let F=this;var w,b;let $={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(w=e.value)!==null&&w!==void 0?w:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:V(function*(){if(!e.hasChildNodes||!e.childNodes)return;let i=0;for(let s of e.childNodes()){s.key!=null&&(s.key=`${$.key}${s.key}`);let f=F.getFullNode({...s,index:i},F.getChildState(l,s),$.key,$);for(let v of f)i++,yield v}})};yield $}constructor(){this.cache=new WeakMap}}function V(o){let e=[],l=null;return{*[Symbol.iterator](){for(let u of e)yield u;l||(l=o());for(let u of l)e.push(u),yield u}}}function p(o,e){if(o&&e)return l=>o(e(l));if(o)return o;if(e)return e}function E(o){return o[0].toUpperCase()+o.slice(1)}exports.CollectionBuilder=I;
package/index329.mjs CHANGED
@@ -1,33 +1,170 @@
1
- function a(n, e) {
2
- return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
1
+ import y from "react";
2
+ class z {
3
+ build(e, l) {
4
+ return this.context = l, p(() => this.iterateCollection(e));
5
+ }
6
+ *iterateCollection(e) {
7
+ let { children: l, items: u } = e;
8
+ if (y.isValidElement(l) && l.type === y.Fragment) yield* this.iterateCollection({
9
+ children: l.props.children,
10
+ items: u
11
+ });
12
+ else if (typeof l == "function") {
13
+ if (!u) throw new Error("props.children was a function but props.items is missing");
14
+ let n = 0;
15
+ for (let r of u)
16
+ yield* this.getFullNode({
17
+ value: r,
18
+ index: n
19
+ }, {
20
+ renderer: l
21
+ }), n++;
22
+ } else {
23
+ let n = [];
24
+ y.Children.forEach(l, (t) => {
25
+ t && n.push(t);
26
+ });
27
+ let r = 0;
28
+ for (let t of n) {
29
+ let d = this.getFullNode({
30
+ element: t,
31
+ index: r
32
+ }, {});
33
+ for (let m of d)
34
+ r++, yield m;
35
+ }
36
+ }
37
+ }
38
+ getKey(e, l, u, n) {
39
+ if (e.key != null) return e.key;
40
+ if (l.type === "cell" && l.key != null) return `${n}${l.key}`;
41
+ let r = l.value;
42
+ if (r != null) {
43
+ var t;
44
+ let d = (t = r.key) !== null && t !== void 0 ? t : r.id;
45
+ if (d == null) throw new Error("No key found for item");
46
+ return d;
47
+ }
48
+ return n ? `${n}.${l.index}` : `$.${l.index}`;
49
+ }
50
+ getChildState(e, l) {
51
+ return {
52
+ renderer: l.renderer || e.renderer
53
+ };
54
+ }
55
+ *getFullNode(e, l, u, n) {
56
+ if (y.isValidElement(e.element) && e.element.type === y.Fragment) {
57
+ let i = [];
58
+ y.Children.forEach(e.element.props.children, (s) => {
59
+ i.push(s);
60
+ });
61
+ var r;
62
+ let o = (r = e.index) !== null && r !== void 0 ? r : 0;
63
+ for (const s of i) yield* this.getFullNode({
64
+ element: s,
65
+ index: o++
66
+ }, l, u, n);
67
+ return;
68
+ }
69
+ let t = e.element;
70
+ if (!t && e.value && l && l.renderer) {
71
+ let i = this.cache.get(e.value);
72
+ if (i && (!i.shouldInvalidate || !i.shouldInvalidate(this.context))) {
73
+ i.index = e.index, i.parentKey = n ? n.key : null, yield i;
74
+ return;
75
+ }
76
+ t = l.renderer(e.value);
77
+ }
78
+ if (y.isValidElement(t)) {
79
+ let i = t.type;
80
+ if (typeof i != "function" && typeof i.getCollectionNode != "function") {
81
+ let h = t.type;
82
+ throw new Error(`Unknown element <${h}> in collection.`);
83
+ }
84
+ let o = i.getCollectionNode(t.props, this.context);
85
+ var d;
86
+ let s = (d = e.index) !== null && d !== void 0 ? d : 0, v = o.next();
87
+ for (; !v.done && v.value; ) {
88
+ let h = v.value;
89
+ e.index = s;
90
+ var m;
91
+ let b = (m = h.key) !== null && m !== void 0 ? m : null;
92
+ b == null && (b = h.element ? null : this.getKey(t, e, l, u));
93
+ let V = [
94
+ ...this.getFullNode({
95
+ ...h,
96
+ key: b,
97
+ index: s,
98
+ wrapper: I(e.wrapper, h.wrapper)
99
+ }, this.getChildState(l, h), u ? `${u}${t.key}` : t.key, n)
100
+ ];
101
+ for (let c of V) {
102
+ var x, k;
103
+ c.value = (k = (x = h.value) !== null && x !== void 0 ? x : e.value) !== null && k !== void 0 ? k : null, c.value && this.cache.set(c.value, c);
104
+ var w;
105
+ if (e.type && c.type !== e.type) throw new Error(`Unsupported type <${E(c.type)}> in <${E((w = n == null ? void 0 : n.type) !== null && w !== void 0 ? w : "unknown parent type")}>. Only <${E(e.type)}> is supported.`);
106
+ s++, yield c;
107
+ }
108
+ v = o.next(V);
109
+ }
110
+ return;
111
+ }
112
+ if (e.key == null || e.type == null) return;
113
+ let F = this;
114
+ var g, C;
115
+ let $ = {
116
+ type: e.type,
117
+ props: e.props,
118
+ key: e.key,
119
+ parentKey: n ? n.key : null,
120
+ value: (g = e.value) !== null && g !== void 0 ? g : null,
121
+ level: n ? n.level + 1 : 0,
122
+ index: e.index,
123
+ rendered: e.rendered,
124
+ textValue: (C = e.textValue) !== null && C !== void 0 ? C : "",
125
+ "aria-label": e["aria-label"],
126
+ wrapper: e.wrapper,
127
+ shouldInvalidate: e.shouldInvalidate,
128
+ hasChildNodes: e.hasChildNodes || !1,
129
+ childNodes: p(function* () {
130
+ if (!e.hasChildNodes || !e.childNodes) return;
131
+ let i = 0;
132
+ for (let o of e.childNodes()) {
133
+ o.key != null && (o.key = `${$.key}${o.key}`);
134
+ let s = F.getFullNode({
135
+ ...o,
136
+ index: i
137
+ }, F.getChildState(l, o), $.key, $);
138
+ for (let v of s)
139
+ i++, yield v;
140
+ }
141
+ })
142
+ };
143
+ yield $;
144
+ }
145
+ constructor() {
146
+ this.cache = /* @__PURE__ */ new WeakMap();
147
+ }
3
148
  }
4
- function s(n) {
5
- return u(n);
149
+ function p(f) {
150
+ let e = [], l = null;
151
+ return {
152
+ *[Symbol.iterator]() {
153
+ for (let u of e) yield u;
154
+ l || (l = f());
155
+ for (let u of l)
156
+ e.push(u), yield u;
157
+ }
158
+ };
6
159
  }
7
- function u(n, e) {
8
- for (let t of n)
9
- return t;
160
+ function I(f, e) {
161
+ if (f && e) return (l) => f(e(l));
162
+ if (f) return f;
163
+ if (e) return e;
10
164
  }
11
- function $(n, e, t) {
12
- if (e.parentKey === t.parentKey) return e.index - t.index;
13
- let r = [
14
- ...c(n, e),
15
- e
16
- ], f = [
17
- ...c(n, t),
18
- t
19
- ], d = r.slice(0, f.length).findIndex((i, o) => i !== f[o]);
20
- return d !== -1 ? (e = r[d], t = f[d], e.index - t.index) : r.findIndex((i) => i === t) >= 0 ? 1 : (f.findIndex((i) => i === e) >= 0, -1);
21
- }
22
- function c(n, e) {
23
- let t = [], r = e;
24
- for (; (r == null ? void 0 : r.parentKey) != null; )
25
- r = n.getItem(r.parentKey), r && t.unshift(r);
26
- return t;
165
+ function E(f) {
166
+ return f[0].toUpperCase() + f.slice(1);
27
167
  }
28
168
  export {
29
- $ as compareNodeOrder,
30
- a as getChildNodes,
31
- s as getFirstItem,
32
- u as getNthItem
169
+ z as CollectionBuilder
33
170
  };
package/index33.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),h=require("./index152.js"),x=require("react-aria"),m=require("./index83.js"),u=require("./index28.js"),d=require("./index3.js"),R=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:t=!1,children:c,themeName:i="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:t};return e.jsxs(u.default,{...G,"aria-disabled":t,themeName:`${i}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${i}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=R;
2
+ "use strict";const e=require("react/jsx-runtime"),h=require("./index153.js"),x=require("react-aria"),m=require("./index83.js"),u=require("./index28.js"),d=require("./index3.js"),R=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:t=!1,children:c,themeName:i="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:t};return e.jsxs(u.default,{...G,"aria-disabled":t,themeName:`${i}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${i}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=R;
package/index33.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs as f, jsx as r } from "react/jsx-runtime";
3
- import { useRadioGroupState as h } from "./index152.mjs";
3
+ import { useRadioGroupState as h } from "./index153.mjs";
4
4
  import { useRadioGroup as G } from "react-aria";
5
5
  import { RadioGroupProvider as b } from "./index83.mjs";
6
6
  import d from "./index28.mjs";
package/index330.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react");class I{build(e,l){return this.context=l,V(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:l,items:u}=e;if(y.isValidElement(l)&&l.type===y.Fragment)yield*this.iterateCollection({children:l.props.children,items:u});else if(typeof l=="function"){if(!u)throw new Error("props.children was a function but props.items is missing");let n=0;for(let r of u)yield*this.getFullNode({value:r,index:n},{renderer:l}),n++}else{let n=[];y.Children.forEach(l,t=>{t&&n.push(t)});let r=0;for(let t of n){let d=this.getFullNode({element:t,index:r},{});for(let m of d)r++,yield m}}}getKey(e,l,u,n){if(e.key!=null)return e.key;if(l.type==="cell"&&l.key!=null)return`${n}${l.key}`;let r=l.value;if(r!=null){var t;let d=(t=r.key)!==null&&t!==void 0?t:r.id;if(d==null)throw new Error("No key found for item");return d}return n?`${n}.${l.index}`:`$.${l.index}`}getChildState(e,l){return{renderer:l.renderer||e.renderer}}*getFullNode(e,l,u,n){if(y.isValidElement(e.element)&&e.element.type===y.Fragment){let i=[];y.Children.forEach(e.element.props.children,f=>{i.push(f)});var r;let s=(r=e.index)!==null&&r!==void 0?r:0;for(const f of i)yield*this.getFullNode({element:f,index:s++},l,u,n);return}let t=e.element;if(!t&&e.value&&l&&l.renderer){let i=this.cache.get(e.value);if(i&&(!i.shouldInvalidate||!i.shouldInvalidate(this.context))){i.index=e.index,i.parentKey=n?n.key:null,yield i;return}t=l.renderer(e.value)}if(y.isValidElement(t)){let i=t.type;if(typeof i!="function"&&typeof i.getCollectionNode!="function"){let c=t.type;throw new Error(`Unknown element <${c}> in collection.`)}let s=i.getCollectionNode(t.props,this.context);var d;let f=(d=e.index)!==null&&d!==void 0?d:0,v=s.next();for(;!v.done&&v.value;){let c=v.value;e.index=f;var m;let C=(m=c.key)!==null&&m!==void 0?m:null;C==null&&(C=c.element?null:this.getKey(t,e,l,u));let S=[...this.getFullNode({...c,key:C,index:f,wrapper:p(e.wrapper,c.wrapper)},this.getChildState(l,c),u?`${u}${t.key}`:t.key,n)];for(let h of S){var x,k;h.value=(k=(x=c.value)!==null&&x!==void 0?x:e.value)!==null&&k!==void 0?k:null,h.value&&this.cache.set(h.value,h);var g;if(e.type&&h.type!==e.type)throw new Error(`Unsupported type <${E(h.type)}> in <${E((g=n==null?void 0:n.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${E(e.type)}> is supported.`);f++,yield h}v=s.next(S)}return}if(e.key==null||e.type==null)return;let F=this;var w,b;let $={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(w=e.value)!==null&&w!==void 0?w:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:V(function*(){if(!e.hasChildNodes||!e.childNodes)return;let i=0;for(let s of e.childNodes()){s.key!=null&&(s.key=`${$.key}${s.key}`);let f=F.getFullNode({...s,index:i},F.getChildState(l,s),$.key,$);for(let v of f)i++,yield v}})};yield $}constructor(){this.cache=new WeakMap}}function V(o){let e=[],l=null;return{*[Symbol.iterator](){for(let u of e)yield u;l||(l=o());for(let u of l)e.push(u),yield u}}}function p(o,e){if(o&&e)return l=>o(e(l));if(o)return o;if(e)return e}function E(o){return o[0].toUpperCase()+o.slice(1)}exports.CollectionBuilder=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function l(n){return o(n)}function o(n,e){for(let t of n)return t}function s(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let r=[...c(n,e),e],f=[...c(n,t),t],d=r.slice(0,f.length).findIndex((i,u)=>i!==f[u]);return d!==-1?(e=r[d],t=f[d],e.index-t.index):r.findIndex(i=>i===t)>=0?1:(f.findIndex(i=>i===e)>=0,-1)}function c(n,e){let t=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=n.getItem(r.parentKey),r&&t.unshift(r);return t}exports.compareNodeOrder=s;exports.getChildNodes=a;exports.getFirstItem=l;exports.getNthItem=o;
package/index330.mjs CHANGED
@@ -1,170 +1,33 @@
1
- import y from "react";
2
- class z {
3
- build(e, l) {
4
- return this.context = l, p(() => this.iterateCollection(e));
5
- }
6
- *iterateCollection(e) {
7
- let { children: l, items: u } = e;
8
- if (y.isValidElement(l) && l.type === y.Fragment) yield* this.iterateCollection({
9
- children: l.props.children,
10
- items: u
11
- });
12
- else if (typeof l == "function") {
13
- if (!u) throw new Error("props.children was a function but props.items is missing");
14
- let n = 0;
15
- for (let r of u)
16
- yield* this.getFullNode({
17
- value: r,
18
- index: n
19
- }, {
20
- renderer: l
21
- }), n++;
22
- } else {
23
- let n = [];
24
- y.Children.forEach(l, (t) => {
25
- t && n.push(t);
26
- });
27
- let r = 0;
28
- for (let t of n) {
29
- let d = this.getFullNode({
30
- element: t,
31
- index: r
32
- }, {});
33
- for (let m of d)
34
- r++, yield m;
35
- }
36
- }
37
- }
38
- getKey(e, l, u, n) {
39
- if (e.key != null) return e.key;
40
- if (l.type === "cell" && l.key != null) return `${n}${l.key}`;
41
- let r = l.value;
42
- if (r != null) {
43
- var t;
44
- let d = (t = r.key) !== null && t !== void 0 ? t : r.id;
45
- if (d == null) throw new Error("No key found for item");
46
- return d;
47
- }
48
- return n ? `${n}.${l.index}` : `$.${l.index}`;
49
- }
50
- getChildState(e, l) {
51
- return {
52
- renderer: l.renderer || e.renderer
53
- };
54
- }
55
- *getFullNode(e, l, u, n) {
56
- if (y.isValidElement(e.element) && e.element.type === y.Fragment) {
57
- let i = [];
58
- y.Children.forEach(e.element.props.children, (s) => {
59
- i.push(s);
60
- });
61
- var r;
62
- let o = (r = e.index) !== null && r !== void 0 ? r : 0;
63
- for (const s of i) yield* this.getFullNode({
64
- element: s,
65
- index: o++
66
- }, l, u, n);
67
- return;
68
- }
69
- let t = e.element;
70
- if (!t && e.value && l && l.renderer) {
71
- let i = this.cache.get(e.value);
72
- if (i && (!i.shouldInvalidate || !i.shouldInvalidate(this.context))) {
73
- i.index = e.index, i.parentKey = n ? n.key : null, yield i;
74
- return;
75
- }
76
- t = l.renderer(e.value);
77
- }
78
- if (y.isValidElement(t)) {
79
- let i = t.type;
80
- if (typeof i != "function" && typeof i.getCollectionNode != "function") {
81
- let h = t.type;
82
- throw new Error(`Unknown element <${h}> in collection.`);
83
- }
84
- let o = i.getCollectionNode(t.props, this.context);
85
- var d;
86
- let s = (d = e.index) !== null && d !== void 0 ? d : 0, v = o.next();
87
- for (; !v.done && v.value; ) {
88
- let h = v.value;
89
- e.index = s;
90
- var m;
91
- let b = (m = h.key) !== null && m !== void 0 ? m : null;
92
- b == null && (b = h.element ? null : this.getKey(t, e, l, u));
93
- let V = [
94
- ...this.getFullNode({
95
- ...h,
96
- key: b,
97
- index: s,
98
- wrapper: I(e.wrapper, h.wrapper)
99
- }, this.getChildState(l, h), u ? `${u}${t.key}` : t.key, n)
100
- ];
101
- for (let c of V) {
102
- var x, k;
103
- c.value = (k = (x = h.value) !== null && x !== void 0 ? x : e.value) !== null && k !== void 0 ? k : null, c.value && this.cache.set(c.value, c);
104
- var w;
105
- if (e.type && c.type !== e.type) throw new Error(`Unsupported type <${E(c.type)}> in <${E((w = n == null ? void 0 : n.type) !== null && w !== void 0 ? w : "unknown parent type")}>. Only <${E(e.type)}> is supported.`);
106
- s++, yield c;
107
- }
108
- v = o.next(V);
109
- }
110
- return;
111
- }
112
- if (e.key == null || e.type == null) return;
113
- let F = this;
114
- var g, C;
115
- let $ = {
116
- type: e.type,
117
- props: e.props,
118
- key: e.key,
119
- parentKey: n ? n.key : null,
120
- value: (g = e.value) !== null && g !== void 0 ? g : null,
121
- level: n ? n.level + 1 : 0,
122
- index: e.index,
123
- rendered: e.rendered,
124
- textValue: (C = e.textValue) !== null && C !== void 0 ? C : "",
125
- "aria-label": e["aria-label"],
126
- wrapper: e.wrapper,
127
- shouldInvalidate: e.shouldInvalidate,
128
- hasChildNodes: e.hasChildNodes || !1,
129
- childNodes: p(function* () {
130
- if (!e.hasChildNodes || !e.childNodes) return;
131
- let i = 0;
132
- for (let o of e.childNodes()) {
133
- o.key != null && (o.key = `${$.key}${o.key}`);
134
- let s = F.getFullNode({
135
- ...o,
136
- index: i
137
- }, F.getChildState(l, o), $.key, $);
138
- for (let v of s)
139
- i++, yield v;
140
- }
141
- })
142
- };
143
- yield $;
144
- }
145
- constructor() {
146
- this.cache = /* @__PURE__ */ new WeakMap();
147
- }
1
+ function a(n, e) {
2
+ return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
148
3
  }
149
- function p(f) {
150
- let e = [], l = null;
151
- return {
152
- *[Symbol.iterator]() {
153
- for (let u of e) yield u;
154
- l || (l = f());
155
- for (let u of l)
156
- e.push(u), yield u;
157
- }
158
- };
4
+ function s(n) {
5
+ return u(n);
159
6
  }
160
- function I(f, e) {
161
- if (f && e) return (l) => f(e(l));
162
- if (f) return f;
163
- if (e) return e;
7
+ function u(n, e) {
8
+ for (let t of n)
9
+ return t;
164
10
  }
165
- function E(f) {
166
- return f[0].toUpperCase() + f.slice(1);
11
+ function $(n, e, t) {
12
+ if (e.parentKey === t.parentKey) return e.index - t.index;
13
+ let r = [
14
+ ...c(n, e),
15
+ e
16
+ ], f = [
17
+ ...c(n, t),
18
+ t
19
+ ], d = r.slice(0, f.length).findIndex((i, o) => i !== f[o]);
20
+ return d !== -1 ? (e = r[d], t = f[d], e.index - t.index) : r.findIndex((i) => i === t) >= 0 ? 1 : (f.findIndex((i) => i === e) >= 0, -1);
21
+ }
22
+ function c(n, e) {
23
+ let t = [], r = e;
24
+ for (; (r == null ? void 0 : r.parentKey) != null; )
25
+ r = n.getItem(r.parentKey), r && t.unshift(r);
26
+ return t;
167
27
  }
168
28
  export {
169
- z as CollectionBuilder
29
+ $ as compareNodeOrder,
30
+ a as getChildNodes,
31
+ s as getFirstItem,
32
+ u as getNthItem
170
33
  };
package/index331.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o extends Set{constructor(t,l,i){super(t),t instanceof o?(this.anchorKey=l??t.anchorKey,this.currentKey=i??t.currentKey):(this.anchorKey=l??null,this.currentKey=i??null)}}exports.Selection=o;
package/index331.mjs ADDED
@@ -0,0 +1,8 @@
1
+ class t extends Set {
2
+ constructor(s, l, i) {
3
+ super(s), s instanceof t ? (this.anchorKey = l ?? s.anchorKey, this.currentKey = i ?? s.currentKey) : (this.anchorKey = l ?? null, this.currentKey = i ?? null);
4
+ }
5
+ }
6
+ export {
7
+ t as Selection
8
+ };
package/index35.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const t=require("react/jsx-runtime"),h=require("./index82.js"),l=require("./index81.js"),x=require("./index153.js"),r=require("./index28.js"),p=require("./index154.js"),q=c=>{const{id:o="main-menu",children:u,PanelTransition:m=x,themeName:e,tokens:n,customTheme:a,...d}=c,{overlayState:i}=l.useSidePanel(),{closeBtn:s}=h.useMenu();return t.jsx(m,{themeName:`${e}.panelTransition`,tokens:n,isVisible:i==null?void 0:i.isOpen,children:t.jsxs(r.default,{themeName:`${e}.wrapper`,tokens:n,children:[s&&s(),t.jsx(r.default,{themeName:`${e}.container`,tokens:n,children:t.jsx(p,{id:o,themeName:`${e}.innerContent`,tokens:n,customTheme:a,...d,children:u})})]})})};module.exports=q;
2
+ "use strict";const t=require("react/jsx-runtime"),h=require("./index82.js"),l=require("./index81.js"),x=require("./index154.js"),r=require("./index28.js"),p=require("./index155.js"),q=c=>{const{id:o="main-menu",children:u,PanelTransition:m=x,themeName:e,tokens:n,customTheme:a,...d}=c,{overlayState:i}=l.useSidePanel(),{closeBtn:s}=h.useMenu();return t.jsx(m,{themeName:`${e}.panelTransition`,tokens:n,isVisible:i==null?void 0:i.isOpen,children:t.jsxs(r.default,{themeName:`${e}.wrapper`,tokens:n,children:[s&&s(),t.jsx(r.default,{themeName:`${e}.container`,tokens:n,children:t.jsx(p,{id:o,themeName:`${e}.innerContent`,tokens:n,customTheme:a,...d,children:u})})]})})};module.exports=q;
package/index35.mjs CHANGED
@@ -2,9 +2,9 @@
2
2
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
3
3
  import { useMenu as d } from "./index82.mjs";
4
4
  import { useSidePanel as u } from "./index81.mjs";
5
- import f from "./index153.mjs";
5
+ import f from "./index154.mjs";
6
6
  import i from "./index28.mjs";
7
- import N from "./index154.mjs";
7
+ import N from "./index155.mjs";
8
8
  const M = (o) => {
9
9
  const {
10
10
  id: s = "main-menu",
package/index36.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),x=require("./index82.js"),q=require("./index8.js"),j=require("./index154.js"),P=o=>{const{id:n="main-menu",children:c,TransitionAnimation:u,PanelTransition:d,themeName:t,tokens:s,customTheme:i,...l}=o,{closeBtn:m,tabState:e,defaultSelectedKey:a}=x.useMenu();return r.jsx(q,{themeName:`${t}.sidePanel`,tokens:s,customTheme:i,closeBtnRender:m,id:n,TransitionAnimation:u,PanelTransition:d,onOpenChange:h=>{h||e==null||e.setSelectedKey(a)},children:r.jsx(j,{id:n,themeName:t,tokens:s,customTheme:i,...l,children:c})})};module.exports=P;
2
+ "use strict";const r=require("react/jsx-runtime"),x=require("./index82.js"),q=require("./index8.js"),j=require("./index155.js"),P=o=>{const{id:n="main-menu",children:c,TransitionAnimation:u,PanelTransition:d,themeName:t,tokens:s,customTheme:i,...l}=o,{closeBtn:m,tabState:e,defaultSelectedKey:a}=x.useMenu();return r.jsx(q,{themeName:`${t}.sidePanel`,tokens:s,customTheme:i,closeBtnRender:m,id:n,TransitionAnimation:u,PanelTransition:d,onOpenChange:h=>{h||e==null||e.setSelectedKey(a)},children:r.jsx(j,{id:n,themeName:t,tokens:s,customTheme:i,...l,children:c})})};module.exports=P;
package/index36.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import { useMenu as h } from "./index82.mjs";
4
4
  import p from "./index8.mjs";
5
- import P from "./index154.mjs";
5
+ import P from "./index155.mjs";
6
6
  const B = (m) => {
7
7
  const {
8
8
  id: n = "main-menu",
package/index39.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("./index95.js"),x=require("./index153.js"),O=require("./index12.js"),y=require("./index140.js"),B=require("./index40.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=x,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}=d({...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(O,{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("./index95.js"),x=require("./index154.js"),O=require("./index12.js"),y=require("./index140.js"),B=require("./index40.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=x,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}=d({...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(O,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
package/index39.mjs CHANGED
@@ -3,7 +3,7 @@ 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
5
  import d from "./index95.mjs";
6
- import C from "./index153.mjs";
6
+ import C from "./index154.mjs";
7
7
  import y from "./index12.mjs";
8
8
  import B from "./index140.mjs";
9
9
  import b from "./index40.mjs";
package/index43.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const t=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),$=require("react-stately"),m=require("./index28.js"),n=require("./index3.js"),P=require("./index155.js"),R=s=>{const{themeName:e="tagGroup",tokens:r,customTheme:d,as:h,label:c,description:i,errorMessage:u,removeButtonProps:p={children:"❌"}}=s,l=q.useRef(null),o=$.useListState(s),{gridProps:x,labelProps:g,descriptionProps:f,errorMessageProps:j}=N.useTagGroup(s,o,l);return t.jsxs(m.default,{as:h,themeName:`${e}.wrapper`,tokens:r,customTheme:d,children:[c&&t.jsx(n.default,{themeName:`${e}.label`,tokens:r,...g,children:c}),t.jsx(m.BoxWithForwardRef,{themeName:`${e}.tags`,tokens:r,ref:l,...x,children:[...o.collection].map(a=>t.jsx(P,{themeName:`${e}.tag`,tokens:r,item:{...a,props:{removeButtonProps:p,...a.props}},state:o},a.key))}),i&&t.jsx(n.default,{themeName:`${e}.description`,tokens:r,...f,children:i}),u&&t.jsx(n.default,{themeName:`${e}.errorMessage`,tokens:r,...j,children:u})]})};module.exports=R;
2
+ "use strict";const t=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),$=require("react-stately"),m=require("./index28.js"),n=require("./index3.js"),P=require("./index156.js"),R=s=>{const{themeName:e="tagGroup",tokens:r,customTheme:d,as:h,label:c,description:i,errorMessage:u,removeButtonProps:p={children:"❌"}}=s,l=q.useRef(null),o=$.useListState(s),{gridProps:x,labelProps:g,descriptionProps:f,errorMessageProps:j}=N.useTagGroup(s,o,l);return t.jsxs(m.default,{as:h,themeName:`${e}.wrapper`,tokens:r,customTheme:d,children:[c&&t.jsx(n.default,{themeName:`${e}.label`,tokens:r,...g,children:c}),t.jsx(m.BoxWithForwardRef,{themeName:`${e}.tags`,tokens:r,ref:l,...x,children:[...o.collection].map(a=>t.jsx(P,{themeName:`${e}.tag`,tokens:r,item:{...a,props:{removeButtonProps:p,...a.props}},state:o},a.key))}),i&&t.jsx(n.default,{themeName:`${e}.description`,tokens:r,...f,children:i}),u&&t.jsx(n.default,{themeName:`${e}.errorMessage`,tokens:r,...j,children:u})]})};module.exports=R;
package/index43.mjs CHANGED
@@ -5,7 +5,7 @@ import { useTagGroup as P } from "react-aria";
5
5
  import { useListState as T } from "react-stately";
6
6
  import b, { BoxWithForwardRef as y } from "./index28.mjs";
7
7
  import a from "./index3.mjs";
8
- import B from "./index155.mjs";
8
+ import B from "./index156.mjs";
9
9
  const F = (t) => {
10
10
  const {
11
11
  themeName: e = "tagGroup",
package/index45.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const s=require("react/jsx-runtime"),T=require("./index156.js"),k=require("./index157.js"),x=require("react"),q=require("./index153.js"),a=require("./index28.js"),L=require("./index48.js"),f=require("./index47.js");function j(i){var u;const{themeName:e="tabList",tokens:o,customTheme:b,label:r,orientation:c="horizontal",panelTransition:h=q}=i,t=k.useTabListState(i),l=x.useRef(null),{tabListProps:d}=T.useTabList(i,t,l),n={...o,orientation:c,isDisabled:t.isDisabled};return s.jsxs(a.default,{themeName:`${e}.wrapper`,tokens:n,customTheme:b,children:[r&&s.jsx(a.default,{themeName:`${e}.label`,tokens:n,children:r}),s.jsxs(a.default,{themeName:`${e}.container`,tokens:n,children:[s.jsx(a.BoxWithForwardRef,{themeName:`${e}.list`,tokens:n,...d,ref:l,children:[...t.collection].map(m=>s.jsx(L,{item:m,state:t,themeName:`${e}.tab`,tokens:{...o,orientation:c}},m.key))}),s.jsx(f,{state:t,themeName:`${e}.panel`,tokens:n,panelTransition:h},(u=t.selectedItem)==null?void 0:u.key)]})]})}module.exports=j;
2
+ "use strict";const s=require("react/jsx-runtime"),T=require("./index157.js"),k=require("./index158.js"),x=require("react"),q=require("./index154.js"),a=require("./index28.js"),L=require("./index48.js"),f=require("./index47.js");function j(i){var u;const{themeName:e="tabList",tokens:o,customTheme:b,label:r,orientation:c="horizontal",panelTransition:h=q}=i,t=k.useTabListState(i),l=x.useRef(null),{tabListProps:d}=T.useTabList(i,t,l),n={...o,orientation:c,isDisabled:t.isDisabled};return s.jsxs(a.default,{themeName:`${e}.wrapper`,tokens:n,customTheme:b,children:[r&&s.jsx(a.default,{themeName:`${e}.label`,tokens:n,children:r}),s.jsxs(a.default,{themeName:`${e}.container`,tokens:n,children:[s.jsx(a.BoxWithForwardRef,{themeName:`${e}.list`,tokens:n,...d,ref:l,children:[...t.collection].map(m=>s.jsx(L,{item:m,state:t,themeName:`${e}.tab`,tokens:{...o,orientation:c}},m.key))}),s.jsx(f,{state:t,themeName:`${e}.panel`,tokens:n,panelTransition:h},(u=t.selectedItem)==null?void 0:u.key)]})]})}module.exports=j;
package/index45.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as b, jsx as o } from "react/jsx-runtime";
3
- import { useTabList as $ } from "./index156.mjs";
4
- import { useTabListState as k } from "./index157.mjs";
3
+ import { useTabList as $ } from "./index157.mjs";
4
+ import { useTabListState as k } from "./index158.mjs";
5
5
  import { useRef as T } from "react";
6
- import u from "./index153.mjs";
6
+ import u from "./index154.mjs";
7
7
  import s, { BoxWithForwardRef as x } from "./index28.mjs";
8
8
  import N from "./index48.mjs";
9
9
  import L from "./index47.mjs";
package/index47.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const a=require("react/jsx-runtime"),m=require("./index158.js"),h=require("react"),d=require("./index153.js"),b=require("./index28.js"),x=e=>{var i;const{state:t,customTheme:o,themeName:n="tabList.panel",tokens:s,panelTransition:c=d,...l}=e,r=h.useRef(null),{tabPanelProps:u}=m.useTabPanel(e,t,r);return a.jsx(c,{...l,themeName:`${n}.transition`,tokens:s,customTheme:o,isVisible:!0,children:a.jsx(b.BoxWithForwardRef,{themeName:`${n}.container`,tokens:s,...u,ref:r,children:(i=t.selectedItem)==null?void 0:i.props.children})})};module.exports=x;
2
+ "use strict";const a=require("react/jsx-runtime"),m=require("./index159.js"),h=require("react"),d=require("./index154.js"),b=require("./index28.js"),x=e=>{var i;const{state:t,customTheme:o,themeName:n="tabList.panel",tokens:s,panelTransition:c=d,...l}=e,r=h.useRef(null),{tabPanelProps:u}=m.useTabPanel(e,t,r);return a.jsx(c,{...l,themeName:`${n}.transition`,tokens:s,customTheme:o,isVisible:!0,children:a.jsx(b.BoxWithForwardRef,{themeName:`${n}.container`,tokens:s,...u,ref:r,children:(i=t.selectedItem)==null?void 0:i.props.children})})};module.exports=x;