@okam/stack-ui 1.38.1 → 1.39.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 (679) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/components/Box/interface.d.ts +2 -1
  3. package/components/Node/index.d.ts +3 -0
  4. package/components/Node/interface.d.ts +4 -0
  5. package/components/Popover/components/Button.d.ts +4 -0
  6. package/components/Popover/index.d.ts +3 -6
  7. package/components/Popover/interface.d.ts +17 -16
  8. package/components/Popover/popover.stories.d.ts +7 -0
  9. package/components/fields/ComboBox/combo-box.stories.d.ts +14 -0
  10. package/components/fields/ComboBox/hooks/useComboBoxFiltering.d.ts +30 -0
  11. package/components/fields/ComboBox/index.d.ts +8 -0
  12. package/components/fields/ComboBox/interface.d.ts +24 -0
  13. package/components/fields/ListBox/index.d.ts +3 -2
  14. package/components/fields/ListBox/interface.d.ts +5 -2
  15. package/components/fields/ListBox/list-box.stories.d.ts +1 -0
  16. package/hooks/useDebounce/index.d.ts +1 -0
  17. package/index.d.ts +7 -1
  18. package/index.js +1 -1
  19. package/index.mjs +188 -177
  20. package/index10.js +1 -1
  21. package/index10.mjs +52 -82
  22. package/index100.js +6 -9
  23. package/index100.mjs +80 -43
  24. package/index101.js +1 -1
  25. package/index101.mjs +59 -35
  26. package/index102.js +1 -1
  27. package/index102.mjs +37 -9
  28. package/index103.js +41 -4
  29. package/index103.mjs +66 -80
  30. package/index104.js +64 -1
  31. package/index104.mjs +228 -6
  32. package/index105.js +9 -12
  33. package/index105.mjs +47 -30
  34. package/index106.js +1 -1
  35. package/index106.mjs +34 -78
  36. package/index107.js +1 -1
  37. package/index107.mjs +8 -24
  38. package/index108.js +1 -1
  39. package/index108.mjs +32 -13
  40. package/index109.js +4 -6
  41. package/index109.mjs +84 -15
  42. package/index11.js +1 -1
  43. package/index11.mjs +53 -72
  44. package/index110.js +1 -15
  45. package/index110.mjs +6 -71
  46. package/index111.js +12 -1
  47. package/index111.mjs +39 -6
  48. package/index112.js +1 -41
  49. package/index112.mjs +73 -90
  50. package/index113.js +1 -47
  51. package/index113.mjs +12 -101
  52. package/index114.js +1 -16
  53. package/index114.mjs +25 -21
  54. package/index115.js +1 -1
  55. package/index115.mjs +9 -38
  56. package/index116.js +7 -1
  57. package/index116.mjs +19 -48
  58. package/index117.js +15 -1
  59. package/index117.mjs +70 -22
  60. package/index118.js +1 -1
  61. package/index118.mjs +7 -63
  62. package/index119.js +41 -1
  63. package/index119.mjs +104 -27
  64. package/index12.js +1 -1
  65. package/index12.mjs +77 -44
  66. package/index120.js +47 -1
  67. package/index120.mjs +102 -52
  68. package/index121.js +16 -1
  69. package/index121.mjs +25 -4
  70. package/index122.js +1 -1
  71. package/index122.mjs +42 -11
  72. package/index123.js +1 -1
  73. package/index123.mjs +47 -13
  74. package/index124.js +1 -1
  75. package/index124.mjs +21 -36
  76. package/index125.js +1 -1
  77. package/index125.mjs +60 -20
  78. package/index126.js +1 -1
  79. package/index126.mjs +28 -43
  80. package/index127.js +1 -1
  81. package/index127.mjs +52 -20
  82. package/index128.js +1 -1
  83. package/index128.mjs +4 -38
  84. package/index129.js +1 -1
  85. package/index129.mjs +11 -16
  86. package/index13.js +2 -1
  87. package/index13.mjs +46 -47
  88. package/index130.js +1 -1
  89. package/index130.mjs +13 -240
  90. package/index131.js +1 -2
  91. package/index131.mjs +37 -12
  92. package/index132.js +1 -2
  93. package/index132.mjs +22 -38
  94. package/index133.js +1 -1
  95. package/index133.mjs +44 -11
  96. package/index134.js +1 -1
  97. package/index134.mjs +18 -37
  98. package/index135.js +1 -1
  99. package/index135.mjs +36 -22
  100. package/index136.js +1 -1
  101. package/index136.mjs +14 -21
  102. package/index137.js +1 -1
  103. package/index137.mjs +238 -40
  104. package/index138.js +2 -1
  105. package/index138.mjs +12 -25
  106. package/index139.js +2 -1
  107. package/index139.mjs +39 -41
  108. package/index14.js +1 -1
  109. package/index14.mjs +47 -18
  110. package/index140.js +1 -2
  111. package/index140.mjs +11 -58
  112. package/index141.js +1 -1
  113. package/index141.mjs +39 -39
  114. package/index142.js +1 -1
  115. package/index142.mjs +23 -30
  116. package/index143.js +1 -1
  117. package/index143.mjs +23 -8
  118. package/index144.js +1 -1
  119. package/index144.mjs +43 -9
  120. package/index145.js +1 -1
  121. package/index145.mjs +25 -29
  122. package/index146.js +1 -1
  123. package/index146.mjs +41 -15
  124. package/index147.js +2 -1
  125. package/index147.mjs +57 -16
  126. package/index148.js +1 -2
  127. package/index148.mjs +38 -47
  128. package/index149.js +1 -1
  129. package/index149.mjs +31 -38
  130. package/index15.js +1 -1
  131. package/index15.mjs +18 -17
  132. package/index150.js +1 -1
  133. package/index150.mjs +8 -29
  134. package/index151.js +1 -1
  135. package/index151.mjs +9 -22
  136. package/index152.js +1 -1
  137. package/index152.mjs +27 -33
  138. package/index153.js +1 -1
  139. package/index153.mjs +15 -22
  140. package/index154.js +1 -1
  141. package/index154.mjs +17 -57
  142. package/index155.js +2 -1
  143. package/index155.mjs +47 -11
  144. package/index156.js +1 -1
  145. package/index156.mjs +37 -11
  146. package/index157.js +1 -1
  147. package/index157.mjs +29 -46
  148. package/index158.js +1 -2
  149. package/index158.mjs +22 -13
  150. package/index159.js +1 -1
  151. package/index159.mjs +36 -30
  152. package/index16.js +1 -1
  153. package/index16.mjs +16 -165
  154. package/index160.js +1 -1
  155. package/index160.mjs +21 -5
  156. package/index161.js +1 -2
  157. package/index161.mjs +56 -49
  158. package/index162.js +1 -1
  159. package/index162.mjs +12 -126
  160. package/index163.js +1 -1
  161. package/index163.mjs +46 -74
  162. package/index164.js +2 -1
  163. package/index164.mjs +13 -382
  164. package/index165.js +1 -1
  165. package/index165.mjs +30 -47
  166. package/index166.js +1 -1
  167. package/index166.mjs +12 -4
  168. package/index167.js +1 -1
  169. package/index167.mjs +5 -24
  170. package/index168.js +2 -1
  171. package/index168.mjs +48 -46
  172. package/index169.js +1 -1
  173. package/index169.mjs +124 -4
  174. package/index17.js +1 -1
  175. package/index17.mjs +148 -93
  176. package/index170.js +1 -1
  177. package/index170.mjs +27 -24
  178. package/index171.js +1 -1
  179. package/index171.mjs +72 -11
  180. package/index172.js +1 -1
  181. package/index172.mjs +381 -4
  182. package/index173.js +1 -1
  183. package/index173.mjs +46 -14
  184. package/index174.js +1 -1
  185. package/index174.mjs +4 -43
  186. package/index175.js +1 -1
  187. package/index175.mjs +23 -56
  188. package/index176.js +1 -1
  189. package/index176.mjs +45 -39
  190. package/index177.js +1 -1
  191. package/index177.mjs +4 -27
  192. package/index178.js +1 -1
  193. package/index178.mjs +24 -31
  194. package/index179.js +1 -1
  195. package/index179.mjs +12 -14
  196. package/index18.js +1 -1
  197. package/index18.mjs +110 -113
  198. package/index180.js +1 -1
  199. package/index180.mjs +4 -10
  200. package/index181.js +1 -1
  201. package/index181.mjs +13 -27
  202. package/index182.js +1 -1
  203. package/index182.mjs +41 -8
  204. package/index183.js +1 -1
  205. package/index183.mjs +57 -6
  206. package/index184.js +1 -1
  207. package/index184.mjs +41 -5
  208. package/index185.js +1 -1
  209. package/index185.mjs +28 -7
  210. package/index186.js +1 -1
  211. package/index186.mjs +28 -26
  212. package/index187.js +1 -1
  213. package/index187.mjs +14 -18
  214. package/index188.js +1 -1
  215. package/index188.mjs +10 -13
  216. package/index189.js +1 -1
  217. package/index189.mjs +26 -41
  218. package/index19.js +1 -1
  219. package/index19.mjs +115 -31
  220. package/index190.js +1 -1
  221. package/index190.mjs +9 -8
  222. package/index191.js +1 -1
  223. package/index191.mjs +6 -17
  224. package/index192.js +1 -1
  225. package/index192.mjs +6 -3
  226. package/index193.js +1 -1
  227. package/index193.mjs +7 -4
  228. package/index194.js +1 -1
  229. package/index194.mjs +29 -19
  230. package/index195.js +1 -1
  231. package/index195.mjs +14 -50
  232. package/index196.js +1 -1
  233. package/index196.mjs +12 -26
  234. package/index197.js +1 -1
  235. package/index197.mjs +37 -197
  236. package/index198.js +1 -1
  237. package/index198.mjs +8 -64
  238. package/index199.js +1 -1
  239. package/index199.mjs +16 -142
  240. package/index2.js +1 -1
  241. package/index2.mjs +60 -60
  242. package/index20.js +1 -1
  243. package/index20.mjs +27 -104
  244. package/index200.js +1 -1
  245. package/index200.mjs +3 -125
  246. package/index201.js +1 -1
  247. package/index201.mjs +4 -224
  248. package/index202.js +1 -1
  249. package/index202.mjs +19 -190
  250. package/index203.js +1 -1
  251. package/index203.mjs +50 -65
  252. package/index204.js +1 -1
  253. package/index204.mjs +116 -271
  254. package/index205.js +1 -1
  255. package/index205.mjs +129 -93
  256. package/index206.js +1 -1
  257. package/index206.mjs +44 -188
  258. package/index207.js +1 -1
  259. package/index207.mjs +14 -84
  260. package/index208.js +1 -1
  261. package/index208.mjs +95 -58
  262. package/index209.js +1 -1
  263. package/index209.mjs +105 -125
  264. package/index21.js +1 -1
  265. package/index21.mjs +84 -122
  266. package/index210.js +1 -1
  267. package/index210.mjs +4 -116
  268. package/index211.js +1 -1
  269. package/index211.mjs +3 -122
  270. package/index212.js +1 -1
  271. package/index212.mjs +123 -70
  272. package/index213.js +1 -1
  273. package/index213.mjs +25 -106
  274. package/index214.js +1 -1
  275. package/index214.mjs +51 -52
  276. package/index215.js +1 -1
  277. package/index215.mjs +44 -93
  278. package/index216.js +1 -1
  279. package/index216.mjs +36 -69
  280. package/index217.js +1 -1
  281. package/index217.mjs +111 -54
  282. package/index218.js +1 -1
  283. package/index218.mjs +77 -99
  284. package/index219.js +1 -5
  285. package/index219.mjs +101 -80
  286. package/index22.js +1 -1
  287. package/index22.mjs +110 -124
  288. package/index220.js +1 -1
  289. package/index220.mjs +97 -2025
  290. package/index221.js +1 -1
  291. package/index221.mjs +137 -56
  292. package/index222.js +1 -1
  293. package/index222.mjs +189 -180
  294. package/index223.js +1 -1
  295. package/index223.mjs +21 -123
  296. package/index224.js +1 -1
  297. package/index224.mjs +47 -132
  298. package/index225.js +1 -1
  299. package/index225.mjs +47 -43
  300. package/index226.js +1 -1
  301. package/index226.mjs +95 -12
  302. package/index227.js +1 -1
  303. package/index227.mjs +71 -95
  304. package/index228.js +1 -1
  305. package/index228.mjs +66 -104
  306. package/index229.js +1 -1
  307. package/index229.mjs +7 -4
  308. package/index23.js +1 -1
  309. package/index23.mjs +151 -102
  310. package/index230.js +1 -1
  311. package/index230.mjs +11 -3
  312. package/index231.js +1 -1
  313. package/index231.mjs +195 -117
  314. package/index232.js +1 -1
  315. package/index232.mjs +61 -26
  316. package/index233.js +1 -1
  317. package/index233.mjs +135 -43
  318. package/index234.js +1 -1
  319. package/index234.mjs +117 -37
  320. package/index235.js +1 -1
  321. package/index235.mjs +216 -29
  322. package/index236.js +1 -1
  323. package/index236.mjs +189 -112
  324. package/index237.js +1 -1
  325. package/index237.mjs +69 -77
  326. package/index238.js +1 -1
  327. package/index238.mjs +259 -81
  328. package/index239.js +1 -1
  329. package/index239.mjs +99 -98
  330. package/index24.js +1 -1
  331. package/index24.mjs +110 -22
  332. package/index240.js +1 -1
  333. package/index240.mjs +183 -135
  334. package/index241.js +1 -1
  335. package/index241.mjs +83 -196
  336. package/index242.js +1 -1
  337. package/index242.mjs +58 -22
  338. package/index243.js +1 -1
  339. package/index243.mjs +122 -45
  340. package/index244.js +1 -1
  341. package/index244.mjs +113 -45
  342. package/index245.js +1 -1
  343. package/index245.mjs +118 -93
  344. package/index246.js +1 -1
  345. package/index246.mjs +73 -72
  346. package/index247.js +1 -1
  347. package/index247.mjs +107 -65
  348. package/index248.js +1 -1
  349. package/index248.mjs +52 -7
  350. package/index249.js +1 -1
  351. package/index249.mjs +92 -10
  352. package/index25.js +1 -1
  353. package/index25.mjs +21 -68
  354. package/index250.js +1 -1
  355. package/index250.mjs +70 -5
  356. package/index251.js +1 -1
  357. package/index251.mjs +54 -119
  358. package/index252.js +1 -1
  359. package/index252.mjs +99 -43
  360. package/index253.js +5 -1
  361. package/index253.mjs +75 -225
  362. package/index254.js +1 -1
  363. package/index254.mjs +2023 -29
  364. package/index255.js +1 -1
  365. package/index255.mjs +59 -3
  366. package/index256.js +1 -1
  367. package/index256.mjs +183 -125
  368. package/index257.js +1 -1
  369. package/index257.mjs +5 -190
  370. package/index258.js +1 -1
  371. package/index258.mjs +121 -9
  372. package/index259.js +1 -1
  373. package/index259.mjs +43 -3
  374. package/index26.js +1 -1
  375. package/index26.mjs +69 -147
  376. package/index260.js +1 -1
  377. package/index260.mjs +227 -33
  378. package/index261.js +1 -1
  379. package/index261.mjs +31 -5
  380. package/index262.js +1 -1
  381. package/index262.mjs +3 -29
  382. package/index263.js +1 -1
  383. package/index263.mjs +4 -6
  384. package/index264.js +1 -1
  385. package/index264.mjs +5 -5
  386. package/index265.js +1 -1
  387. package/index265.mjs +1 -1
  388. package/index266.js +1 -1
  389. package/index266.mjs +4 -4
  390. package/index267.js +1 -1
  391. package/index267.mjs +1 -1
  392. package/index268.js +1 -1
  393. package/index268.mjs +1 -1
  394. package/index269.js +1 -1
  395. package/index269.mjs +4 -4
  396. package/index27.js +1 -1
  397. package/index27.mjs +149 -20
  398. package/index270.js +1 -1
  399. package/index270.mjs +4 -4
  400. package/index271.js +1 -1
  401. package/index271.mjs +1 -1
  402. package/index272.js +1 -1
  403. package/index272.mjs +4 -4
  404. package/index273.js +1 -1
  405. package/index273.mjs +4 -4
  406. package/index274.js +1 -1
  407. package/index274.mjs +1 -1
  408. package/index275.js +1 -1
  409. package/index275.mjs +4 -4
  410. package/index276.js +1 -1
  411. package/index276.mjs +4 -4
  412. package/index277.js +1 -1
  413. package/index277.mjs +1 -1
  414. package/index278.js +1 -1
  415. package/index278.mjs +1 -1
  416. package/index279.js +1 -1
  417. package/index279.mjs +4 -4
  418. package/index28.js +1 -1
  419. package/index28.mjs +20 -59
  420. package/index280.js +1 -1
  421. package/index280.mjs +4 -4
  422. package/index281.js +1 -1
  423. package/index281.mjs +1 -1
  424. package/index282.js +1 -1
  425. package/index282.mjs +4 -4
  426. package/index283.js +1 -1
  427. package/index283.mjs +4 -4
  428. package/index284.js +1 -1
  429. package/index284.mjs +4 -4
  430. package/index285.js +1 -1
  431. package/index285.mjs +1 -1
  432. package/index286.js +1 -1
  433. package/index286.mjs +4 -4
  434. package/index287.js +1 -1
  435. package/index287.mjs +4 -4
  436. package/index288.js +1 -1
  437. package/index288.mjs +4 -4
  438. package/index289.js +1 -1
  439. package/index289.mjs +4 -4
  440. package/index29.js +1 -1
  441. package/index29.mjs +42 -33
  442. package/index290.js +1 -1
  443. package/index290.mjs +4 -4
  444. package/index291.js +1 -1
  445. package/index291.mjs +1 -1
  446. package/index292.js +1 -1
  447. package/index292.mjs +1 -1
  448. package/index293.js +1 -1
  449. package/index293.mjs +1 -1
  450. package/index294.js +1 -1
  451. package/index294.mjs +4 -4
  452. package/index295.js +1 -1
  453. package/index295.mjs +4 -4
  454. package/index296.js +1 -1
  455. package/index296.mjs +4 -4
  456. package/index297.js +1 -1
  457. package/index297.mjs +4 -4
  458. package/index298.js +1 -1
  459. package/index298.mjs +130 -4
  460. package/index299.js +1 -1
  461. package/index299.mjs +180 -52
  462. package/index3.js +1 -1
  463. package/index3.mjs +1 -1
  464. package/index30.js +1 -1
  465. package/index30.mjs +49 -19
  466. package/index300.js +1 -1
  467. package/index300.mjs +10 -7
  468. package/index301.js +1 -1
  469. package/index301.mjs +3 -27
  470. package/index302.js +1 -1
  471. package/index302.mjs +34 -90
  472. package/index303.js +1 -1
  473. package/index303.mjs +5 -9
  474. package/index304.js +1 -1
  475. package/index304.mjs +29 -25
  476. package/index305.js +1 -1
  477. package/index305.mjs +6 -33
  478. package/index306.js +1 -1
  479. package/index306.mjs +62 -6
  480. package/index307.js +1 -1
  481. package/index307.mjs +29 -6
  482. package/index308.js +1 -1
  483. package/index308.mjs +7 -51
  484. package/index309.js +1 -1
  485. package/index309.mjs +23 -25
  486. package/index31.js +1 -1
  487. package/index31.mjs +19 -32
  488. package/index310.js +1 -1
  489. package/index310.mjs +92 -14
  490. package/index311.js +1 -1
  491. package/index311.mjs +9 -21
  492. package/index312.js +1 -1
  493. package/index312.mjs +23 -27
  494. package/index313.js +1 -1
  495. package/index313.mjs +31 -64
  496. package/index314.js +1 -1
  497. package/index314.mjs +6 -53
  498. package/index315.js +1 -1
  499. package/index315.mjs +6 -54
  500. package/index316.js +1 -1
  501. package/index316.mjs +49 -280
  502. package/index317.js +1 -1
  503. package/index317.mjs +14 -20
  504. package/index318.js +1 -1
  505. package/index318.mjs +21 -3
  506. package/index319.js +1 -1
  507. package/index319.mjs +29 -4
  508. package/index32.js +1 -1
  509. package/index32.mjs +32 -23
  510. package/index320.js +1 -1
  511. package/index320.mjs +66 -8
  512. package/index321.js +1 -1
  513. package/index321.mjs +52 -4
  514. package/index322.js +1 -1
  515. package/index322.mjs +52 -28
  516. package/index323.js +1 -1
  517. package/index323.mjs +267 -153
  518. package/index324.js +1 -0
  519. package/index324.mjs +23 -0
  520. package/index325.js +1 -0
  521. package/index325.mjs +6 -0
  522. package/index326.js +1 -0
  523. package/index326.mjs +7 -0
  524. package/index327.js +1 -0
  525. package/index327.mjs +11 -0
  526. package/index328.js +1 -0
  527. package/index328.mjs +8 -0
  528. package/index329.js +1 -0
  529. package/index329.mjs +33 -0
  530. package/index33.js +1 -1
  531. package/index33.mjs +22 -12
  532. package/index330.js +1 -0
  533. package/index330.mjs +170 -0
  534. package/index34.js +1 -1
  535. package/index34.mjs +13 -31
  536. package/index35.js +1 -1
  537. package/index35.mjs +30 -31
  538. package/index36.js +1 -1
  539. package/index36.mjs +28 -121
  540. package/index37.js +1 -1
  541. package/index37.mjs +125 -8
  542. package/index38.js +1 -1
  543. package/index38.mjs +8 -46
  544. package/index39.js +1 -1
  545. package/index39.mjs +46 -18
  546. package/index4.js +1 -1
  547. package/index4.mjs +4 -4
  548. package/index40.js +2 -1
  549. package/index40.mjs +19 -6
  550. package/index41.js +1 -2
  551. package/index41.mjs +6 -21
  552. package/index42.js +1 -1
  553. package/index42.mjs +18 -32
  554. package/index43.js +1 -1
  555. package/index43.mjs +34 -39
  556. package/index44.js +1 -1
  557. package/index44.mjs +39 -48
  558. package/index45.js +1 -1
  559. package/index45.mjs +48 -39
  560. package/index46.js +1 -1
  561. package/index46.mjs +38 -26
  562. package/index47.js +1 -1
  563. package/index47.mjs +27 -18
  564. package/index48.js +1 -1
  565. package/index48.mjs +18 -48
  566. package/index49.js +1 -1
  567. package/index49.mjs +112 -40
  568. package/index50.js +1 -1
  569. package/index50.mjs +55 -63
  570. package/index51.js +2 -1
  571. package/index51.mjs +42 -5
  572. package/index52.js +2 -1
  573. package/index52.mjs +66 -8
  574. package/index53.js +2 -1
  575. package/index53.mjs +74 -8
  576. package/index54.js +1 -1
  577. package/index54.mjs +3 -3
  578. package/index55.js +1 -1
  579. package/index55.mjs +7 -4
  580. package/index56.js +1 -1
  581. package/index56.mjs +8 -5
  582. package/index57.js +1 -1
  583. package/index57.mjs +4 -4
  584. package/index58.js +1 -1
  585. package/index58.mjs +3 -9
  586. package/index59.js +1 -1
  587. package/index59.mjs +4 -12
  588. package/index6.js +1 -1
  589. package/index6.mjs +1 -1
  590. package/index60.js +1 -1
  591. package/index60.mjs +4 -12
  592. package/index61.js +1 -1
  593. package/index61.mjs +11 -46
  594. package/index62.js +1 -1
  595. package/index62.mjs +12 -7
  596. package/index63.js +1 -1
  597. package/index63.mjs +13 -71
  598. package/index64.js +1 -1
  599. package/index64.mjs +45 -7
  600. package/index65.js +1 -1
  601. package/index65.mjs +8 -13
  602. package/index66.js +1 -1
  603. package/index66.mjs +71 -10
  604. package/index67.js +1 -1
  605. package/index67.mjs +8 -17
  606. package/index68.js +1 -1
  607. package/index68.mjs +10 -10
  608. package/index69.js +1 -1
  609. package/index69.mjs +9 -12
  610. package/index7.js +1 -1
  611. package/index7.mjs +2 -2
  612. package/index70.js +1 -1
  613. package/index70.mjs +17 -13
  614. package/index71.js +1 -1
  615. package/index71.mjs +9 -7
  616. package/index72.js +1 -1
  617. package/index72.mjs +9 -7
  618. package/index73.js +1 -1
  619. package/index73.mjs +8 -8
  620. package/index74.js +1 -1
  621. package/index74.mjs +11 -14
  622. package/index75.js +1 -2
  623. package/index75.mjs +10 -22
  624. package/index76.js +1 -2
  625. package/index76.mjs +12 -16
  626. package/index77.js +1 -2
  627. package/index77.mjs +14 -15
  628. package/index78.js +1 -1
  629. package/index78.mjs +21 -45
  630. package/index79.js +1 -1
  631. package/index79.mjs +15 -37
  632. package/index8.js +1 -1
  633. package/index8.mjs +5 -5
  634. package/index80.js +1 -1
  635. package/index80.mjs +13 -11
  636. package/index81.js +1 -1
  637. package/index81.mjs +45 -10
  638. package/index82.js +1 -1
  639. package/index82.mjs +36 -12
  640. package/index83.js +1 -1
  641. package/index83.mjs +11 -10
  642. package/index84.js +1 -1
  643. package/index84.mjs +10 -29
  644. package/index85.js +2 -1
  645. package/index85.mjs +15 -2
  646. package/index86.js +1 -1
  647. package/index86.mjs +11 -8
  648. package/index87.js +1 -1
  649. package/index87.mjs +30 -7
  650. package/index88.js +1 -2
  651. package/index88.mjs +2 -8
  652. package/index89.js +1 -1
  653. package/index89.mjs +7 -6
  654. package/index9.js +1 -1
  655. package/index9.mjs +4 -4
  656. package/index90.js +2 -1
  657. package/index90.mjs +8 -25
  658. package/index91.js +2 -1
  659. package/index91.mjs +8 -10
  660. package/index92.js +1 -1
  661. package/index92.mjs +7 -19
  662. package/index93.js +1 -1
  663. package/index93.mjs +25 -4
  664. package/index94.js +1 -1
  665. package/index94.mjs +10 -2
  666. package/index95.js +2 -6
  667. package/index95.mjs +20 -94
  668. package/index96.js +2 -1
  669. package/index96.mjs +14 -69
  670. package/index97.js +2 -1
  671. package/index97.mjs +37 -41
  672. package/index98.js +1 -42
  673. package/index98.mjs +4 -74
  674. package/index99.js +1 -64
  675. package/index99.mjs +2 -228
  676. package/package.json +1 -1
  677. package/theme/ComboBox/index.d.ts +3 -0
  678. package/theme/Popover/index.d.ts +238 -0
  679. package/types/react-stately.d.ts +8 -1
package/index46.mjs CHANGED
@@ -1,31 +1,43 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { useTabPanel as f } from "./index151.mjs";
4
- import { useRef as p } from "react";
5
- import h from "./index146.mjs";
6
- import { BoxWithForwardRef as b } from "./index27.mjs";
7
- const x = (e) => {
8
- var o;
9
- const {
10
- state: t,
11
- customTheme: s,
12
- themeName: r = "tabList.panel",
13
- tokens: a,
14
- panelTransition: m = h,
15
- ...l
16
- } = e, n = p(null), { tabPanelProps: c } = f(e, t, n);
17
- return /* @__PURE__ */ i(
18
- m,
19
- {
20
- ...l,
21
- themeName: `${r}.transition`,
22
- tokens: a,
23
- customTheme: s,
24
- isVisible: !0,
25
- children: /* @__PURE__ */ i(b, { themeName: `${r}.container`, tokens: a, ...c, ref: n, children: (o = t.selectedItem) == null ? void 0 : o.props.children })
2
+ import d from "react";
3
+ import { log as h } from "./index98.mjs";
4
+ function u(t) {
5
+ return null;
6
+ }
7
+ function o(t) {
8
+ return t.hasChildItems != null ? t.hasChildItems : !!(t.childItems || t.title && d.Children.count(t.children) > 0);
9
+ }
10
+ u.getCollectionNode = function* (e, l) {
11
+ const { childItems: n, title: s, children: m } = e, a = e.title || e.children, r = e.textValue || (typeof a == "string" ? a : "") || e["aria-label"] || "";
12
+ !r && !(l != null && l.suppressTextValueWarning) && h(
13
+ "<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.",
14
+ "warn"
15
+ ), yield {
16
+ type: "item",
17
+ props: e,
18
+ rendered: a,
19
+ textValue: r,
20
+ "aria-label": e["aria-label"],
21
+ hasChildNodes: o(e),
22
+ *childNodes() {
23
+ if (n)
24
+ yield* Array.from(n).map((i) => ({
25
+ type: "item",
26
+ value: i
27
+ }));
28
+ else if (s) {
29
+ const i = [];
30
+ d.Children.forEach(m, (c) => {
31
+ i.push({
32
+ type: "item",
33
+ element: c
34
+ });
35
+ }), yield* i;
36
+ }
26
37
  }
27
- );
38
+ };
28
39
  };
40
+ const I = u;
29
41
  export {
30
- x as default
42
+ I as TabItem
31
43
  };
package/index47.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./index152.js"),F=require("react"),P=require("react-aria"),R=require("./index91.js"),h=require("./index27.js"),D=({item:o,state:e,...r})=>{const{key:s,rendered:t}=o,{themeName:i="tabList.tab",tokens:c,...u}=R.mergeDefaultComponentProps(r,o.props),n=F.useRef(null),{tabProps:a}=x.useTab({key:s},e,n),{focusProps:l,isFocusVisible:b,isFocused:d}=k.useFocusRing({within:!0,autoFocus:!1}),p=e.selectionManager.isDisabled(s),f=e.selectionManager.isSelected(s),g=e.selectionManager.isLink(s),m={...c,isDisabled:p,isSelected:f,isLink:g,isFocused:d,isFocusVisible:b};return q.jsx(h.BoxWithForwardRef,{...P.mergeProps(u,l,a),themeName:i,tokens:m,ref:n,children:t})};module.exports=D;
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;
package/index47.mjs CHANGED
@@ -1,22 +1,31 @@
1
1
  "use client";
2
- import { jsx as k } from "react/jsx-runtime";
3
- import { useFocusRing as F } from "@react-aria/focus";
4
- import { useTab as h } from "./index152.mjs";
5
- import { useRef as x } from "react";
6
- import { mergeProps as P } from "react-aria";
7
- import { mergeDefaultComponentProps as D } from "./index91.mjs";
8
- import { BoxWithForwardRef as L } from "./index27.mjs";
9
- const y = ({ item: s, state: e, ...t }) => {
10
- const { key: o, rendered: i } = s, { themeName: n = "tabList.tab", tokens: c, ...a } = D(t, s.props), r = x(null), { tabProps: m } = h({ key: o }, e, r), { focusProps: f, isFocusVisible: p, isFocused: l } = F({ within: !0, autoFocus: !1 }), u = e.selectionManager.isDisabled(o), d = e.selectionManager.isSelected(o), b = e.selectionManager.isLink(o), g = {
11
- ...c,
12
- isDisabled: u,
13
- isSelected: d,
14
- isLink: b,
15
- isFocused: l,
16
- isFocusVisible: p
17
- };
18
- return /* @__PURE__ */ k(L, { ...P(a, f, m), themeName: n, tokens: g, ref: r, children: i });
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { useTabPanel as f } from "./index158.mjs";
4
+ import { useRef as p } from "react";
5
+ import h from "./index153.mjs";
6
+ import { BoxWithForwardRef as b } from "./index28.mjs";
7
+ const x = (e) => {
8
+ var o;
9
+ const {
10
+ state: t,
11
+ customTheme: s,
12
+ themeName: r = "tabList.panel",
13
+ tokens: a,
14
+ panelTransition: m = h,
15
+ ...l
16
+ } = e, n = p(null), { tabPanelProps: c } = f(e, t, n);
17
+ return /* @__PURE__ */ i(
18
+ m,
19
+ {
20
+ ...l,
21
+ themeName: `${r}.transition`,
22
+ tokens: a,
23
+ customTheme: s,
24
+ isVisible: !0,
25
+ children: /* @__PURE__ */ i(b, { themeName: `${r}.container`, tokens: a, ...c, ref: n, children: (o = t.selectedItem) == null ? void 0 : o.props.children })
26
+ }
27
+ );
19
28
  };
20
29
  export {
21
- y as default
30
+ x as default
22
31
  };
package/index48.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const s=require("react/jsx-runtime"),B=require("react"),f=require("react-aria"),j=require("react-stately"),l=require("./index27.js"),y=require("./index6.js"),N=require("./index3.js"),L=require("./index50.js"),R=require("./index49.js"),S={item:L,section:R},b=i=>{const{themeName:e="listBox",tokens:t,customTheme:u,label:n,escapeKeyBehavior:m="clearSelection",linkElementType:x=y.Anchor,...h}=i,r=j.useListState(i),c=B.useRef(null),{listBoxProps:d,labelProps:p}=f.useListBox({...h,escapeKeyBehavior:m,label:n},r,c);return s.jsxs(l.default,{themeName:`${e}.wrapper`,tokens:t,customTheme:u,children:[n&&s.jsx(N.default,{...p,themeName:`${e}.label`,tokens:t,children:n}),s.jsx(l.BoxWithForwardRef,{ref:c,as:"ul",...d,themeName:`${e}.list`,tokens:t,children:[...r.collection].map(a=>{const{type:o,key:q}=a,$=S[o];return s.jsx($,{[o]:a,state:r,tokens:t,themeName:`${e}.${o}`,linkElementType:x},q)})})]})};module.exports=b;
2
+ "use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./index159.js"),F=require("react"),P=require("react-aria"),R=require("./index94.js"),h=require("./index28.js"),D=({item:o,state:e,...r})=>{const{key:s,rendered:t}=o,{themeName:i="tabList.tab",tokens:c,...u}=R.mergeDefaultComponentProps(r,o.props),n=F.useRef(null),{tabProps:a}=x.useTab({key:s},e,n),{focusProps:l,isFocusVisible:b,isFocused:d}=k.useFocusRing({within:!0,autoFocus:!1}),p=e.selectionManager.isDisabled(s),f=e.selectionManager.isSelected(s),g=e.selectionManager.isLink(s),m={...c,isDisabled:p,isSelected:f,isLink:g,isFocused:d,isFocusVisible:b};return q.jsx(h.BoxWithForwardRef,{...P.mergeProps(u,l,a),themeName:i,tokens:m,ref:n,children:t})};module.exports=D;
package/index48.mjs CHANGED
@@ -1,52 +1,22 @@
1
1
  "use client";
2
- import { jsxs as y, jsx as s } from "react/jsx-runtime";
3
- import { useRef as d } from "react";
4
- import { useListBox as N } from "react-aria";
5
- import { useListState as $ } from "react-stately";
6
- import L, { BoxWithForwardRef as b } from "./index27.mjs";
7
- import { Anchor as k } from "./index6.mjs";
8
- import S from "./index3.mjs";
9
- import T from "./index50.mjs";
10
- import j from "./index49.mjs";
11
- const w = {
12
- item: T,
13
- section: j
14
- }, O = (i) => {
15
- const {
16
- themeName: e = "listBox",
17
- tokens: o,
18
- customTheme: p,
19
- label: t,
20
- escapeKeyBehavior: a = "clearSelection",
21
- linkElementType: c = k,
22
- ...f
23
- } = i, r = $(i), n = d(null), { listBoxProps: h, labelProps: x } = N(
24
- {
25
- ...f,
26
- escapeKeyBehavior: a,
27
- label: t
28
- },
29
- r,
30
- n
31
- );
32
- return /* @__PURE__ */ y(L, { themeName: `${e}.wrapper`, tokens: o, customTheme: p, children: [
33
- t && /* @__PURE__ */ s(S, { ...x, themeName: `${e}.label`, tokens: o, children: t }),
34
- /* @__PURE__ */ s(b, { ref: n, as: "ul", ...h, themeName: `${e}.list`, tokens: o, children: [...r.collection].map((l) => {
35
- const { type: m, key: u } = l, B = w[m];
36
- return /* @__PURE__ */ s(
37
- B,
38
- {
39
- [m]: l,
40
- state: r,
41
- tokens: o,
42
- themeName: `${e}.${m}`,
43
- linkElementType: c
44
- },
45
- u
46
- );
47
- }) })
48
- ] });
2
+ import { jsx as k } from "react/jsx-runtime";
3
+ import { useFocusRing as F } from "@react-aria/focus";
4
+ import { useTab as h } from "./index159.mjs";
5
+ import { useRef as x } from "react";
6
+ import { mergeProps as P } from "react-aria";
7
+ import { mergeDefaultComponentProps as D } from "./index94.mjs";
8
+ import { BoxWithForwardRef as L } from "./index28.mjs";
9
+ const y = ({ item: s, state: e, ...t }) => {
10
+ const { key: o, rendered: i } = s, { themeName: n = "tabList.tab", tokens: c, ...a } = D(t, s.props), r = x(null), { tabProps: m } = h({ key: o }, e, r), { focusProps: f, isFocusVisible: p, isFocused: l } = F({ within: !0, autoFocus: !1 }), u = e.selectionManager.isDisabled(o), d = e.selectionManager.isSelected(o), b = e.selectionManager.isLink(o), g = {
11
+ ...c,
12
+ isDisabled: u,
13
+ isSelected: d,
14
+ isLink: b,
15
+ isFocused: l,
16
+ isFocusVisible: p
17
+ };
18
+ return /* @__PURE__ */ k(L, { ...P(a, f, m), themeName: n, tokens: g, ref: r, children: i });
49
19
  };
50
20
  export {
51
- O as default
21
+ y as default
52
22
  };
package/index49.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const t=require("react/jsx-runtime"),C=require("./index153.js"),u=require("react-aria"),D=require("./index91.js"),a=require("./index27.js"),y=require("./index3.js"),B=require("./index50.js"),S=({section:p,state:s,...o})=>{var c,l;const{key:d,rendered:n,props:h,level:x,hasChildNodes:g,type:P}=p,{themeName:e="listBox.section",tokens:r,as:f="li",customTheme:q,...k}=D.mergeDefaultComponentProps(o,h),i={...r,type:P,level:x.toString(),hasChildNodes:g},{itemProps:N,headingProps:$,groupProps:j}=u.useListBoxSection(o);return t.jsxs(a.default,{as:f,themeName:`${e}.wrapper`,tokens:i,...u.mergeProps(C.filterDOMProps(k),N),customTheme:q,children:[n&&t.jsx(y.default,{themeName:`${e}.heading`,tokens:r,...$,children:n}),t.jsx(a.default,{as:"ul",themeName:`${e}.group`,tokens:i,...j,children:[...((l=(c=s.collection).getChildren)==null?void 0:l.call(c,d))??[]].map(m=>t.jsx(B,{item:m,state:s,tokens:r,themeName:`${e}.item`},m.key))})]})};module.exports=S;
2
+ "use strict";const t=require("react/jsx-runtime"),re=require("radashi"),n=require("react"),k=require("react-aria");require("react-hook-form");const ie=require("react-stately"),ce=require("./index96.js");require("./index87.js");const x=require("./index28.js"),le=require("./index6.js"),ue=require("./index15.js"),ae=require("./index54.js"),de=require("./index60.js"),fe=require("./index10.js"),v=require("./index3.js"),pe=require("./index50.js"),me=p=>{const{children:N,hookFormRef:c,errorMessage:R,themeName:s="comboBox",tokens:y,customTheme:C,label:h,icon:F=t.jsx(ae,{}),closeIcon:I=t.jsx(de,{}),isDisabled:g=!1,isRequired:M=!1,isReadOnly:S=!1,defaultFilter:V,inputRef:w,buttonRef:D,popoverRef:O,listBoxRef:W,debounceDelay:A=200}=p,E=n.useRef(null),r=w??E,z=n.useRef(null),b=D??z,L=n.useRef(null),q=O??L,T=n.useRef(null),B=W??T,l=n.useRef(null),{contains:G}=k.useFilter({sensitivity:"base"}),H=V??G,e=ie.useComboBoxState({...p,defaultFilter:H}),{inputProps:J,listBoxProps:K,labelProps:Q,buttonProps:U,errorMessageProps:X,isInvalid:$}=k.useComboBox({...p,inputRef:r,buttonRef:b,popoverRef:q,listBoxRef:B},e),P=ce.useDebounce(e.collection,A),j=n.useMemo(()=>({...e,collection:P}),[e,P]),{onPress:u,onPressStart:a,preventFocusOnPress:xe,...Y}=U,{isOpen:d,selectedItem:m,selectionManager:Z}=e,{isFocused:_,isSelectAll:ee,isEmpty:te}=Z,f=!re.isEmpty(e.inputValue),o={...y,isInvalid:$,isOpen:d,isFocused:_,hasValue:f,hasSelectedItem:!te,isSelectAll:ee,isReadOnly:S,isDisabled:g,isRequired:M},se=n.useCallback(i=>{f?(e.setInputValue(""),e.selectionManager.clearSelection(),r.current&&r.current.focus()):(u==null||u(i),a==null||a(i))},[f,e,u,a,r]),ne=n.useCallback(i=>{i&&(c==null||c(i),r.current=i)},[c,r]),oe=n.useMemo(()=>m&&!d?m.rendered:e.inputValue,[m,e.inputValue,d]);return t.jsxs(x.default,{themeName:`${s}.wrapper`,tokens:o,customTheme:C,children:[h&&t.jsx(v.default,{...Q,as:"label",themeName:`${s}.label`,tokens:o,children:h}),t.jsxs(x.default,{themeName:`${s}.container`,children:[t.jsxs(x.BoxWithForwardRef,{ref:l,themeName:`${s}.inputWrapper`,tokens:o,children:[t.jsx("input",{...J,ref:ne,value:oe}),t.jsx(le.ButtonWithForwardRef,{themeName:`${s}.button`,tokens:o,...Y,ref:b,handlePress:se,children:t.jsx(ue,{themeName:`${s}.icon`,tokens:o,icon:f?I:F})})]}),d&&l.current&&j.collection.size>0&&t.jsx(fe.Popover,{themeName:`${s}.popover`,tokens:o,state:e,triggerRef:l,placement:"bottom",sizeRef:l,popoverRef:q,autoFocus:!1,children:t.jsx(pe.ControlledListBox,{...K,themeName:`${s}.list`,tokens:o,state:j,ref:B,children:N})}),$&&R&&t.jsx(v.default,{tokens:o,themeName:`${s}.errorMessage`,...X,children:R})]})]})};module.exports=me;
package/index49.mjs CHANGED
@@ -1,44 +1,116 @@
1
1
  "use client";
2
- import { jsxs as B, jsx as t } from "react/jsx-runtime";
3
- import { filterDOMProps as C } from "./index153.mjs";
4
- import { useListBoxSection as S, mergeProps as T } from "react-aria";
5
- import { mergeDefaultComponentProps as b } from "./index91.mjs";
6
- import l from "./index27.mjs";
7
- import j from "./index3.mjs";
8
- import v from "./index50.mjs";
9
- const A = ({
10
- section: a,
11
- state: r,
12
- ...s
13
- }) => {
14
- var n, p;
15
- const { key: d, rendered: m, props: h, level: f, hasChildNodes: g, type: u } = a, {
16
- themeName: e = "listBox.section",
17
- tokens: o,
18
- as: x = "li",
19
- customTheme: P,
20
- ...$
21
- } = b(s, h), i = {
22
- ...o,
23
- type: u,
24
- level: f.toString(),
25
- hasChildNodes: g
26
- }, { itemProps: k, headingProps: N, groupProps: y } = S(s);
27
- return /* @__PURE__ */ B(
28
- l,
29
- {
30
- as: x,
31
- themeName: `${e}.wrapper`,
32
- tokens: i,
33
- ...T(C($), k),
34
- customTheme: P,
35
- children: [
36
- m && /* @__PURE__ */ t(j, { themeName: `${e}.heading`, tokens: o, ...N, children: m }),
37
- /* @__PURE__ */ t(l, { as: "ul", themeName: `${e}.group`, tokens: i, ...y, children: [...((p = (n = r.collection).getChildren) == null ? void 0 : p.call(n, d)) ?? []].map((c) => /* @__PURE__ */ t(v, { item: c, state: r, tokens: o, themeName: `${e}.item` }, c.key)) })
38
- ]
39
- }
40
- );
2
+ import { jsxs as h, jsx as t } from "react/jsx-runtime";
3
+ import { isEmpty as ie } from "radashi";
4
+ import { useRef as i, useMemo as y, useCallback as F } from "react";
5
+ import { useFilter as le, useComboBox as ce } from "react-aria";
6
+ import "react-hook-form";
7
+ import { useComboBoxState as ae } from "react-stately";
8
+ import { useDebounce as me } from "./index96.mjs";
9
+ import "./index87.mjs";
10
+ import I, { BoxWithForwardRef as ue } from "./index28.mjs";
11
+ import { ButtonWithForwardRef as pe } from "./index6.mjs";
12
+ import fe from "./index15.mjs";
13
+ import de from "./index54.mjs";
14
+ import he from "./index60.mjs";
15
+ import { Popover as Re } from "./index10.mjs";
16
+ import $ from "./index3.mjs";
17
+ import { ControlledListBox as be } from "./index50.mjs";
18
+ const Ee = (f) => {
19
+ const {
20
+ children: g,
21
+ hookFormRef: l,
22
+ errorMessage: R,
23
+ themeName: o = "comboBox",
24
+ tokens: C,
25
+ customTheme: M,
26
+ label: b,
27
+ icon: S = /* @__PURE__ */ t(de, {}),
28
+ closeIcon: V = /* @__PURE__ */ t(he, {}),
29
+ isDisabled: w = !1,
30
+ isRequired: D = !1,
31
+ isReadOnly: O = !1,
32
+ defaultFilter: W,
33
+ inputRef: E,
34
+ buttonRef: T,
35
+ popoverRef: j,
36
+ listBoxRef: z,
37
+ debounceDelay: A = 200
38
+ } = f, L = i(null), r = E ?? L, q = i(null), B = T ?? q, G = i(null), x = j ?? G, H = i(null), P = z ?? H, c = i(null), { contains: J } = le({ sensitivity: "base" }), e = ae({ ...f, defaultFilter: W ?? J }), { inputProps: K, listBoxProps: Q, labelProps: U, buttonProps: X, errorMessageProps: Y, isInvalid: k } = ce(
39
+ { ...f, inputRef: r, buttonRef: B, popoverRef: x, listBoxRef: P },
40
+ e
41
+ ), v = me(e.collection, A), N = y(
42
+ () => ({
43
+ ...e,
44
+ collection: v
45
+ }),
46
+ [e, v]
47
+ ), { onPress: a, onPressStart: m, preventFocusOnPress: xe, ...Z } = X, { isOpen: u, selectedItem: d, selectionManager: _ } = e, { isFocused: ee, isSelectAll: oe, isEmpty: te } = _, p = !ie(e.inputValue), n = {
48
+ ...C,
49
+ isInvalid: k,
50
+ isOpen: u,
51
+ isFocused: ee,
52
+ hasValue: p,
53
+ hasSelectedItem: !te,
54
+ isSelectAll: oe,
55
+ isReadOnly: O,
56
+ isDisabled: w,
57
+ isRequired: D
58
+ }, ne = F(
59
+ (s) => {
60
+ p ? (e.setInputValue(""), e.selectionManager.clearSelection(), r.current && r.current.focus()) : (a == null || a(s), m == null || m(s));
61
+ },
62
+ [p, e, a, m, r]
63
+ ), re = F(
64
+ (s) => {
65
+ s && (l == null || l(s), r.current = s);
66
+ },
67
+ [l, r]
68
+ ), se = y(() => d && !u ? d.rendered : e.inputValue, [d, e.inputValue, u]);
69
+ return /* @__PURE__ */ h(I, { themeName: `${o}.wrapper`, tokens: n, customTheme: M, children: [
70
+ b && /* @__PURE__ */ t($, { ...U, as: "label", themeName: `${o}.label`, tokens: n, children: b }),
71
+ /* @__PURE__ */ h(I, { themeName: `${o}.container`, children: [
72
+ /* @__PURE__ */ h(ue, { ref: c, themeName: `${o}.inputWrapper`, tokens: n, children: [
73
+ /* @__PURE__ */ t("input", { ...K, ref: re, value: se }),
74
+ /* @__PURE__ */ t(
75
+ pe,
76
+ {
77
+ themeName: `${o}.button`,
78
+ tokens: n,
79
+ ...Z,
80
+ ref: B,
81
+ handlePress: ne,
82
+ children: /* @__PURE__ */ t(fe, { themeName: `${o}.icon`, tokens: n, icon: p ? V : S })
83
+ }
84
+ )
85
+ ] }),
86
+ u && c.current && N.collection.size > 0 && /* @__PURE__ */ t(
87
+ Re,
88
+ {
89
+ themeName: `${o}.popover`,
90
+ tokens: n,
91
+ state: e,
92
+ triggerRef: c,
93
+ placement: "bottom",
94
+ sizeRef: c,
95
+ popoverRef: x,
96
+ autoFocus: !1,
97
+ children: /* @__PURE__ */ t(
98
+ be,
99
+ {
100
+ ...Q,
101
+ themeName: `${o}.list`,
102
+ tokens: n,
103
+ state: N,
104
+ ref: P,
105
+ children: g
106
+ }
107
+ )
108
+ }
109
+ ),
110
+ k && R && /* @__PURE__ */ t($, { tokens: n, themeName: `${o}.errorMessage`, ...Y, children: R })
111
+ ] })
112
+ ] });
41
113
  };
42
114
  export {
43
- A as default
115
+ Ee as default
44
116
  };
package/index50.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const n=require("react/jsx-runtime"),e=require("react"),l=require("react-aria"),M=require("./index91.js"),a=require("./index27.js"),O=require("./index6.js"),B=({item:d,state:t,...g})=>{const{key:o,rendered:s,type:b}=d,{themeName:i="option",tokens:C,as:P="li",customTheme:j,linkElementType:q=O.Anchor,...E}=M.mergeDefaultComponentProps(g,d.props),u=e.useRef(null),{optionProps:R,isFocused:y,isDisabled:F,isFocusVisible:V,isPressed:A,isSelected:D,allowsSelection:L,descriptionProps:m,labelProps:p,hasAction:N}=l.useOption({key:o},t,u),r=t.selectionManager.isLink(o),S=t.selectionManager.canSelectItem(o),c={...C,type:b,isFocused:y,isDisabled:F,isFocusVisible:V,isPressed:A,isSelected:D,allowsSelection:L,hasAction:N,isLink:r,isSelectable:S},T=r?q:a.BoxWithForwardRef,$=r?"a":P,w=()=>{if(e.Children.count(s)>1){const[h,f]=e.Children.toArray(s),k=e.isValidElement(h),x=e.isValidElement(f);return!k&&!x?s:n.jsxs(n.Fragment,{children:[k&&n.jsx(a.default,{...p,themeName:`${i}.label`,tokens:c,children:e.cloneElement(h,p)}),x&&n.jsx(a.default,{...m,themeName:`${i}.description`,tokens:c,children:e.cloneElement(f,m)})]})}return s};return n.jsx(l.FocusRing,{focusRingClass:"has-focus-ring",children:n.jsx(T,{as:$,...l.mergeProps(E,R),ref:u,themeName:`${i}.option`,tokens:c,customTheme:j,children:w()})})};module.exports=B;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),m=require("react"),j=require("react-aria"),L=require("react-stately"),u=require("./index28.js"),N=require("./index6.js"),S=require("./index3.js"),b=require("./index52.js"),C=require("./index51.js"),R={item:b,section:C},a=m.forwardRef((o,s)=>{const{themeName:e="listBox",tokens:n,customTheme:d,label:i,escapeKeyBehavior:x="clearSelection",linkElementType:h=N.Anchor,state:l,as:p,...B}=o,{listBoxProps:q,labelProps:f}=j.useListBox({...B,escapeKeyBehavior:x,label:i},l,s);return t.jsxs(u.default,{themeName:`${e}.wrapper`,tokens:n,customTheme:d,as:p,children:[i&&t.jsx(S.default,{...f,themeName:`${e}.label`,tokens:n,children:i}),t.jsx(u.BoxWithForwardRef,{ref:s,as:"ul",...q,themeName:`${e}.list`,tokens:n,children:[...l.collection].map(c=>{const{key:y}=c,r=c.type??"item",$=R[r];return t.jsx($,{[r]:c,state:l,tokens:{...n,type:r},themeName:`${e}.${r}`,linkElementType:h},y)})})]})});a.displayName="ControlledListBox";const k=o=>{const s=L.useListState(o),e=m.useRef(null);return t.jsx(a,{...o,state:s,ref:e})};exports.ControlledListBox=a;exports.default=k;
package/index50.mjs CHANGED
@@ -1,68 +1,60 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as O, Fragment as I } from "react/jsx-runtime";
3
- import { useRef as W, Children as f, isValidElement as k, cloneElement as g } from "react";
4
- import { useOption as q, FocusRing as v, mergeProps as z } from "react-aria";
5
- import { mergeDefaultComponentProps as G } from "./index91.mjs";
6
- import b, { BoxWithForwardRef as H } from "./index27.mjs";
7
- import { Anchor as J } from "./index6.mjs";
8
- const _ = ({
9
- item: l,
10
- state: n,
11
- ...P
12
- }) => {
13
- const { key: s, rendered: e, type: x } = l, {
14
- themeName: t = "option",
15
- tokens: y,
16
- as: C = "li",
17
- customTheme: F,
18
- linkElementType: E = J,
19
- ...L
20
- } = G(P, l.props), c = W(null), {
21
- optionProps: N,
22
- isFocused: R,
23
- isDisabled: S,
24
- isFocusVisible: T,
25
- isPressed: V,
26
- isSelected: A,
27
- allowsSelection: D,
28
- descriptionProps: m,
29
- labelProps: a,
30
- hasAction: $
31
- } = q({ key: s }, n, c), i = n.selectionManager.isLink(s), j = n.selectionManager.canSelectItem(s), r = {
32
- ...y,
33
- type: x,
34
- isFocused: R,
35
- isDisabled: S,
36
- isFocusVisible: T,
37
- isPressed: V,
38
- isSelected: A,
39
- allowsSelection: D,
40
- hasAction: $,
41
- isLink: i,
42
- isSelectable: j
43
- }, w = i ? E : H, B = i ? "a" : C, M = () => {
44
- if (f.count(e) > 1) {
45
- const [p, d] = f.toArray(e), h = k(p), u = k(d);
46
- return !h && !u ? e : /* @__PURE__ */ O(I, { children: [
47
- h && /* @__PURE__ */ o(b, { ...a, themeName: `${t}.label`, tokens: r, children: g(p, a) }),
48
- u && /* @__PURE__ */ o(b, { ...m, themeName: `${t}.description`, tokens: r, children: g(d, m) })
49
- ] });
50
- }
51
- return e;
52
- };
53
- return /* @__PURE__ */ o(v, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ o(
54
- w,
2
+ import { jsxs as L, jsx as m } from "react/jsx-runtime";
3
+ import { forwardRef as N, useRef as $ } from "react";
4
+ import { useListBox as k } from "react-aria";
5
+ import { useListState as C } from "react-stately";
6
+ import b, { BoxWithForwardRef as w } from "./index28.mjs";
7
+ import { Anchor as R } from "./index6.mjs";
8
+ import S from "./index3.mjs";
9
+ import T from "./index52.mjs";
10
+ import j from "./index51.mjs";
11
+ const P = {
12
+ item: T,
13
+ section: j
14
+ }, a = N((t, o) => {
15
+ const {
16
+ themeName: e = "listBox",
17
+ tokens: r,
18
+ customTheme: p,
19
+ label: n,
20
+ escapeKeyBehavior: c = "clearSelection",
21
+ linkElementType: f = R,
22
+ state: i,
23
+ as: h,
24
+ ...x
25
+ } = t, { listBoxProps: u, labelProps: B } = k(
55
26
  {
56
- as: B,
57
- ...z(L, N),
58
- ref: c,
59
- themeName: `${t}.option`,
60
- tokens: r,
61
- customTheme: F,
62
- children: M()
63
- }
64
- ) });
27
+ ...x,
28
+ escapeKeyBehavior: c,
29
+ label: n
30
+ },
31
+ i,
32
+ o
33
+ );
34
+ return /* @__PURE__ */ L(b, { themeName: `${e}.wrapper`, tokens: r, customTheme: p, as: h, children: [
35
+ n && /* @__PURE__ */ m(S, { ...B, themeName: `${e}.label`, tokens: r, children: n }),
36
+ /* @__PURE__ */ m(w, { ref: o, as: "ul", ...u, themeName: `${e}.list`, tokens: r, children: [...i.collection].map((l) => {
37
+ const { key: d } = l, s = l.type ?? "item", y = P[s];
38
+ return /* @__PURE__ */ m(
39
+ y,
40
+ {
41
+ [s]: l,
42
+ state: i,
43
+ tokens: { ...r, type: s },
44
+ themeName: `${e}.${s}`,
45
+ linkElementType: f
46
+ },
47
+ d
48
+ );
49
+ }) })
50
+ ] });
51
+ });
52
+ a.displayName = "ControlledListBox";
53
+ const z = (t) => {
54
+ const o = C(t), e = $(null);
55
+ return /* @__PURE__ */ m(a, { ...t, state: o, ref: e });
65
56
  };
66
57
  export {
67
- _ as default
58
+ a as ControlledListBox,
59
+ z as default
68
60
  };
package/index51.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const t=require("react/jsx-runtime"),r=require("radashi"),s=require("react"),o=e=>t.jsx("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14",stroke:"currentColor"})}),n=s.memo(o,r.isEqual);module.exports=n;
1
+ "use client";
2
+ "use strict";const t=require("react/jsx-runtime"),C=require("./index160.js"),u=require("react-aria"),D=require("./index94.js"),a=require("./index28.js"),y=require("./index3.js"),B=require("./index52.js"),S=({section:p,state:s,...o})=>{var c,l;const{key:d,rendered:n,props:h,level:x,hasChildNodes:g,type:P}=p,{themeName:e="listBox.section",tokens:r,as:f="li",customTheme:q,...k}=D.mergeDefaultComponentProps(o,h),i={...r,type:P,level:x.toString(),hasChildNodes:g},{itemProps:N,headingProps:$,groupProps:j}=u.useListBoxSection(o);return t.jsxs(a.default,{as:f,themeName:`${e}.wrapper`,tokens:i,...u.mergeProps(C.filterDOMProps(k),N),customTheme:q,children:[n&&t.jsx(y.default,{themeName:`${e}.heading`,tokens:r,...$,children:n}),t.jsx(a.default,{as:"ul",themeName:`${e}.group`,tokens:i,...j,children:[...((l=(c=s.collection).getChildren)==null?void 0:l.call(c,d))??[]].map(m=>t.jsx(B,{item:m,state:s,tokens:r,themeName:`${e}.item`},m.key))})]})};module.exports=S;
package/index51.mjs CHANGED
@@ -1,7 +1,44 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { isEqual as t } from "radashi";
3
- import { memo as m } from "react";
4
- const n = (r) => /* @__PURE__ */ o("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14", stroke: "currentColor" }) }), l = m(n, t);
1
+ "use client";
2
+ import { jsxs as B, jsx as t } from "react/jsx-runtime";
3
+ import { filterDOMProps as C } from "./index160.mjs";
4
+ import { useListBoxSection as S, mergeProps as T } from "react-aria";
5
+ import { mergeDefaultComponentProps as b } from "./index94.mjs";
6
+ import l from "./index28.mjs";
7
+ import j from "./index3.mjs";
8
+ import v from "./index52.mjs";
9
+ const A = ({
10
+ section: a,
11
+ state: r,
12
+ ...s
13
+ }) => {
14
+ var n, p;
15
+ const { key: d, rendered: m, props: h, level: f, hasChildNodes: g, type: u } = a, {
16
+ themeName: e = "listBox.section",
17
+ tokens: o,
18
+ as: x = "li",
19
+ customTheme: P,
20
+ ...$
21
+ } = b(s, h), i = {
22
+ ...o,
23
+ type: u,
24
+ level: f.toString(),
25
+ hasChildNodes: g
26
+ }, { itemProps: k, headingProps: N, groupProps: y } = S(s);
27
+ return /* @__PURE__ */ B(
28
+ l,
29
+ {
30
+ as: x,
31
+ themeName: `${e}.wrapper`,
32
+ tokens: i,
33
+ ...T(C($), k),
34
+ customTheme: P,
35
+ children: [
36
+ m && /* @__PURE__ */ t(j, { themeName: `${e}.heading`, tokens: o, ...N, children: m }),
37
+ /* @__PURE__ */ t(l, { as: "ul", themeName: `${e}.group`, tokens: i, ...y, children: [...((p = (n = r.collection).getChildren) == null ? void 0 : p.call(n, d)) ?? []].map((c) => /* @__PURE__ */ t(v, { item: c, state: r, tokens: o, themeName: `${e}.item` }, c.key)) })
38
+ ]
39
+ }
40
+ );
41
+ };
5
42
  export {
6
- l as default
43
+ A as default
7
44
  };
package/index52.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("radashi"),t=require("react"),i=r=>e.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...r,children:[e.jsx("g",{children:e.jsx("path",{d:"M.075 11.622a1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l8 8a1.004 1.004 0 0 0 1.42-1.42l-6.3-6.29h19.59a1 1 0 0 0 0-2H3.405l6.3-6.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-8 8a1 1 0 0 0-.21.33Z"})}),e.jsx("defs",{children:e.jsx("clipPath",{children:e.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),l=t.memo(i,s.isEqual);module.exports=l;
1
+ "use client";
2
+ "use strict";const n=require("react/jsx-runtime"),e=require("react"),l=require("react-aria"),M=require("./index94.js"),a=require("./index28.js"),O=require("./index6.js"),B=({item:d,state:t,...g})=>{const{key:o,rendered:s,type:b}=d,{themeName:i="option",tokens:C,as:P="li",customTheme:j,linkElementType:q=O.Anchor,...E}=M.mergeDefaultComponentProps(g,d.props),u=e.useRef(null),{optionProps:R,isFocused:y,isDisabled:F,isFocusVisible:V,isPressed:A,isSelected:D,allowsSelection:L,descriptionProps:m,labelProps:p,hasAction:N}=l.useOption({key:o},t,u),r=t.selectionManager.isLink(o),S=t.selectionManager.canSelectItem(o),c={...C,type:b,isFocused:y,isDisabled:F,isFocusVisible:V,isPressed:A,isSelected:D,allowsSelection:L,hasAction:N,isLink:r,isSelectable:S},T=r?q:a.BoxWithForwardRef,$=r?"a":P,w=()=>{if(e.Children.count(s)>1){const[h,f]=e.Children.toArray(s),k=e.isValidElement(h),x=e.isValidElement(f);return!k&&!x?s:n.jsxs(n.Fragment,{children:[k&&n.jsx(a.default,{...p,themeName:`${i}.label`,tokens:c,children:e.cloneElement(h,p)}),x&&n.jsx(a.default,{...m,themeName:`${i}.description`,tokens:c,children:e.cloneElement(f,m)})]})}return s};return n.jsx(l.FocusRing,{focusRingClass:"has-focus-ring",children:n.jsx(T,{as:$,...l.mergeProps(E,R),ref:u,themeName:`${i}.option`,tokens:c,customTheme:j,children:w()})})};module.exports=B;