@okam/stack-ui 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/components/Button/interface.d.ts +2 -2
  2. package/components/Menu/interface.d.ts +5 -2
  3. package/components/Video/index.d.ts +3 -0
  4. package/components/Video/interface.d.ts +6 -0
  5. package/index.d.ts +1 -2
  6. package/index.js +1 -1
  7. package/index.mjs +101 -103
  8. package/index10.js +1 -1
  9. package/index10.mjs +1 -1
  10. package/index100.js +2 -1
  11. package/index100.mjs +22 -17
  12. package/index101.js +1 -2
  13. package/index101.mjs +63 -22
  14. package/index102.js +1 -1
  15. package/index102.mjs +24 -58
  16. package/index103.js +1 -1
  17. package/index103.mjs +4 -29
  18. package/index104.js +1 -1
  19. package/index104.mjs +11 -4
  20. package/index105.js +1 -1
  21. package/index105.mjs +14 -11
  22. package/index106.js +1 -1
  23. package/index106.mjs +22 -13
  24. package/index107.js +1 -1
  25. package/index107.mjs +19 -19
  26. package/index108.js +1 -1
  27. package/index108.mjs +38 -22
  28. package/index109.js +2 -1
  29. package/index109.mjs +12 -38
  30. package/index11.js +1 -1
  31. package/index11.mjs +3 -3
  32. package/index110.js +1 -2
  33. package/index110.mjs +7 -12
  34. package/index111.js +1 -1
  35. package/index111.mjs +21 -7
  36. package/index112.js +1 -1
  37. package/index112.mjs +38 -21
  38. package/index113.js +1 -1
  39. package/index113.mjs +49 -38
  40. package/index114.js +1 -1
  41. package/index114.mjs +40 -49
  42. package/index115.js +1 -1
  43. package/index115.mjs +13 -40
  44. package/index116.js +1 -1
  45. package/index116.mjs +26 -14
  46. package/index117.js +1 -1
  47. package/index117.mjs +17 -23
  48. package/index118.js +1 -1
  49. package/index118.mjs +8 -19
  50. package/index119.js +1 -1
  51. package/index119.mjs +30 -9
  52. package/index12.js +1 -1
  53. package/index12.mjs +1 -1
  54. package/index120.js +1 -1
  55. package/index120.mjs +15 -30
  56. package/index121.js +1 -1
  57. package/index121.mjs +15 -13
  58. package/index122.js +1 -1
  59. package/index122.mjs +21 -17
  60. package/index123.js +1 -1
  61. package/index123.mjs +11 -5
  62. package/index124.js +2 -1
  63. package/index124.mjs +21 -20
  64. package/index125.js +1 -1
  65. package/index125.mjs +12 -11
  66. package/index126.js +1 -1
  67. package/index126.mjs +46 -42
  68. package/index127.js +1 -2
  69. package/index127.mjs +239 -20
  70. package/index128.js +2 -1
  71. package/index128.mjs +12 -11
  72. package/index129.js +1 -1
  73. package/index129.mjs +30 -46
  74. package/index130.js +1 -1
  75. package/index130.mjs +43 -233
  76. package/index131.js +1 -2
  77. package/index131.mjs +27 -13
  78. package/index132.js +1 -1
  79. package/index132.mjs +21 -30
  80. package/index133.js +1 -1
  81. package/index133.mjs +61 -50
  82. package/index134.js +1 -1
  83. package/index134.mjs +93 -25
  84. package/index135.js +1 -1
  85. package/index135.mjs +27 -16
  86. package/index136.js +1 -1
  87. package/index136.mjs +121 -3
  88. package/index137.js +1 -4
  89. package/index137.mjs +27 -246
  90. package/index138.js +1 -1
  91. package/index138.mjs +124 -61
  92. package/index139.js +1 -1
  93. package/index139.mjs +132 -92
  94. package/index14.js +1 -1
  95. package/index14.mjs +4 -4
  96. package/index140.js +1 -1
  97. package/index140.mjs +14 -31
  98. package/index141.js +1 -1
  99. package/index141.mjs +90 -116
  100. package/index142.js +1 -1
  101. package/index142.mjs +105 -26
  102. package/index143.js +1 -1
  103. package/index143.mjs +5 -124
  104. package/index144.js +1 -1
  105. package/index144.mjs +3 -134
  106. package/index145.js +1 -1
  107. package/index145.mjs +123 -12
  108. package/index146.js +1 -1
  109. package/index146.mjs +18 -84
  110. package/index147.js +1 -1
  111. package/index147.mjs +46 -101
  112. package/index148.js +1 -1
  113. package/index148.mjs +44 -5
  114. package/index149.js +1 -1
  115. package/index149.mjs +37 -3
  116. package/index15.js +1 -1
  117. package/index15.mjs +1 -1
  118. package/index150.js +1 -1
  119. package/index150.mjs +102 -114
  120. package/index151.js +1 -1
  121. package/index151.mjs +69 -21
  122. package/index152.js +1 -1
  123. package/index152.mjs +86 -36
  124. package/index153.js +1 -1
  125. package/index153.mjs +98 -45
  126. package/index154.js +1 -1
  127. package/index154.mjs +192 -30
  128. package/index155.js +1 -1
  129. package/index155.mjs +58 -107
  130. package/index156.js +1 -1
  131. package/index156.mjs +132 -68
  132. package/index157.js +1 -1
  133. package/index157.mjs +119 -101
  134. package/index158.js +1 -1
  135. package/index158.mjs +218 -98
  136. package/index159.js +1 -1
  137. package/index159.mjs +191 -2
  138. package/index16.js +1 -1
  139. package/index16.mjs +2 -2
  140. package/index160.js +1 -1
  141. package/index160.mjs +69 -5
  142. package/index161.js +1 -1
  143. package/index161.mjs +253 -59
  144. package/index162.js +1 -1
  145. package/index162.mjs +95 -24
  146. package/index163.js +1 -1
  147. package/index163.mjs +173 -53
  148. package/index164.js +1 -1
  149. package/index164.mjs +78 -149
  150. package/index165.js +1 -1
  151. package/index165.mjs +57 -21
  152. package/index166.js +1 -1
  153. package/index166.mjs +125 -18
  154. package/index167.js +1 -1
  155. package/index167.mjs +115 -38
  156. package/index168.js +1 -1
  157. package/index168.mjs +117 -77
  158. package/index169.js +1 -1
  159. package/index169.mjs +70 -28
  160. package/index17.js +1 -1
  161. package/index17.mjs +1 -1
  162. package/index170.js +1 -1
  163. package/index170.mjs +110 -21
  164. package/index171.js +1 -1
  165. package/index171.mjs +50 -51
  166. package/index172.js +1 -1
  167. package/index172.mjs +94 -2
  168. package/index173.js +1 -11
  169. package/index173.mjs +69 -114
  170. package/index174.js +1 -1
  171. package/index174.mjs +50 -193
  172. package/index175.js +1 -1
  173. package/index175.mjs +91 -56
  174. package/index176.js +5 -1
  175. package/index176.mjs +75 -136
  176. package/index177.js +1 -1
  177. package/index177.mjs +1999 -107
  178. package/index178.js +1 -1
  179. package/index178.mjs +56 -214
  180. package/index179.js +1 -1
  181. package/index179.mjs +186 -188
  182. package/index18.js +1 -1
  183. package/index18.mjs +4 -4
  184. package/index180.js +1 -1
  185. package/index180.mjs +5 -69
  186. package/index181.js +1 -1
  187. package/index181.mjs +121 -249
  188. package/index182.js +1 -1
  189. package/index182.mjs +171 -89
  190. package/index183.js +1 -1
  191. package/index183.mjs +8 -173
  192. package/index184.js +1 -1
  193. package/index184.mjs +3 -84
  194. package/index185.js +1 -1
  195. package/index185.mjs +32 -54
  196. package/index186.js +1 -1
  197. package/index186.mjs +5 -126
  198. package/index187.js +1 -1
  199. package/index187.mjs +25 -112
  200. package/index188.js +1 -1
  201. package/index188.mjs +6 -122
  202. package/index189.js +1 -1
  203. package/index189.mjs +307 -66
  204. package/index19.js +1 -1
  205. package/index19.mjs +2 -2
  206. package/index190.js +1 -1
  207. package/index190.mjs +190 -108
  208. package/index191.js +1 -1
  209. package/index191.mjs +8 -52
  210. package/index192.js +1 -1
  211. package/index192.mjs +24 -91
  212. package/index193.js +1 -1
  213. package/index193.mjs +54 -69
  214. package/index194.js +1 -1
  215. package/index194.mjs +43 -53
  216. package/index195.js +1 -1
  217. package/index195.mjs +123 -98
  218. package/index196.js +1 -5
  219. package/index196.mjs +5 -80
  220. package/index197.js +1 -1
  221. package/index197.mjs +25 -2008
  222. package/index198.js +1 -1
  223. package/index198.mjs +6 -59
  224. package/index199.js +1 -1
  225. package/index199.mjs +7 -188
  226. package/index2.js +1 -1
  227. package/index2.mjs +20 -20
  228. package/index20.js +1 -1
  229. package/index20.mjs +2 -2
  230. package/index200.js +1 -1
  231. package/index200.mjs +6 -4
  232. package/index201.js +1 -1
  233. package/index201.mjs +5 -2
  234. package/index202.js +1 -1
  235. package/index202.mjs +5 -52
  236. package/index203.js +1 -1
  237. package/index203.mjs +9 -20
  238. package/index21.js +1 -1
  239. package/index21.mjs +1 -1
  240. package/index22.js +1 -1
  241. package/index22.mjs +1 -1
  242. package/index23.js +1 -1
  243. package/index23.mjs +4 -4
  244. package/index24.js +1 -1
  245. package/index24.mjs +5 -5
  246. package/index25.js +1 -1
  247. package/index25.mjs +1 -1
  248. package/index26.js +1 -1
  249. package/index26.mjs +3 -3
  250. package/index27.js +1 -1
  251. package/index27.mjs +3 -3
  252. package/index28.js +1 -1
  253. package/index28.mjs +2 -2
  254. package/index29.js +1 -1
  255. package/index29.mjs +2 -2
  256. package/index3.js +1 -1
  257. package/index3.mjs +1 -1
  258. package/index30.js +1 -1
  259. package/index31.js +1 -1
  260. package/index31.mjs +4 -4
  261. package/index32.js +1 -1
  262. package/index32.mjs +2 -2
  263. package/index33.js +1 -1
  264. package/index33.mjs +88 -65
  265. package/index34.js +1 -1
  266. package/index34.mjs +2 -2
  267. package/index35.js +1 -1
  268. package/index35.mjs +3 -3
  269. package/index36.js +1 -1
  270. package/index36.mjs +1 -1
  271. package/index37.js +1 -1
  272. package/index38.js +2 -1
  273. package/index38.mjs +20 -45
  274. package/index39.js +1 -2
  275. package/index39.mjs +5 -26
  276. package/index4.js +1 -1
  277. package/index4.mjs +4 -4
  278. package/index40.js +1 -1
  279. package/index40.mjs +7 -4
  280. package/index41.js +1 -1
  281. package/index41.mjs +5 -5
  282. package/index42.js +1 -1
  283. package/index42.mjs +5 -8
  284. package/index43.js +1 -1
  285. package/index43.mjs +2 -2
  286. package/index44.js +1 -1
  287. package/index44.mjs +1 -1
  288. package/index45.js +1 -1
  289. package/index45.mjs +4 -4
  290. package/index46.js +1 -1
  291. package/index46.mjs +9 -3
  292. package/index47.js +1 -1
  293. package/index47.mjs +9 -7
  294. package/index48.js +1 -1
  295. package/index48.mjs +9 -9
  296. package/index49.js +1 -1
  297. package/index49.mjs +46 -13
  298. package/index50.js +1 -1
  299. package/index50.mjs +8 -46
  300. package/index51.js +1 -1
  301. package/index51.mjs +69 -6
  302. package/index52.js +1 -1
  303. package/index52.mjs +8 -71
  304. package/index53.js +1 -1
  305. package/index53.mjs +12 -7
  306. package/index54.js +1 -1
  307. package/index54.mjs +9 -12
  308. package/index55.js +1 -1
  309. package/index55.mjs +17 -10
  310. package/index56.js +1 -1
  311. package/index56.mjs +13 -17
  312. package/index57.js +1 -1
  313. package/index57.mjs +5 -5
  314. package/index58.js +1 -1
  315. package/index58.mjs +6 -6
  316. package/index59.js +1 -1
  317. package/index59.mjs +8 -10
  318. package/index6.js +1 -1
  319. package/index6.mjs +1 -1
  320. package/index60.js +1 -1
  321. package/index60.mjs +5 -5
  322. package/index61.js +1 -1
  323. package/index61.mjs +8 -6
  324. package/index62.js +1 -1
  325. package/index62.mjs +14 -13
  326. package/index63.js +2 -1
  327. package/index63.mjs +23 -14
  328. package/index64.js +1 -1
  329. package/index64.mjs +15 -21
  330. package/index65.js +1 -1
  331. package/index65.mjs +14 -16
  332. package/index66.js +1 -1
  333. package/index66.mjs +40 -13
  334. package/index67.js +1 -1
  335. package/index67.mjs +36 -39
  336. package/index68.js +1 -1
  337. package/index68.mjs +11 -37
  338. package/index69.js +1 -1
  339. package/index69.mjs +10 -11
  340. package/index7.js +1 -1
  341. package/index7.mjs +1 -1
  342. package/index70.js +1 -1
  343. package/index70.mjs +13 -10
  344. package/index71.js +1 -1
  345. package/index71.mjs +10 -13
  346. package/index72.js +1 -2
  347. package/index72.mjs +2 -12
  348. package/index73.js +2 -1
  349. package/index73.mjs +9 -2
  350. package/index74.js +1 -1
  351. package/index74.mjs +6 -7
  352. package/index75.js +1 -1
  353. package/index75.mjs +6 -6
  354. package/index76.js +1 -1
  355. package/index76.mjs +6 -6
  356. package/index77.js +1 -2
  357. package/index77.mjs +25 -8
  358. package/index78.js +1 -1
  359. package/index78.mjs +2 -25
  360. package/index79.js +6 -1
  361. package/index79.mjs +94 -2
  362. package/index8.js +1 -1
  363. package/index8.mjs +3 -3
  364. package/index80.js +1 -6
  365. package/index80.mjs +54 -79
  366. package/index81.js +1 -1
  367. package/index81.mjs +33 -61
  368. package/index82.js +42 -1
  369. package/index82.mjs +67 -34
  370. package/index83.js +1 -42
  371. package/index83.mjs +154 -65
  372. package/index84.js +9 -1
  373. package/index84.mjs +47 -149
  374. package/index85.js +1 -9
  375. package/index85.mjs +36 -48
  376. package/index86.js +1 -1
  377. package/index86.mjs +8 -40
  378. package/index87.js +1 -1
  379. package/index87.mjs +31 -9
  380. package/index88.js +1 -1
  381. package/index88.mjs +6 -35
  382. package/index89.js +12 -1
  383. package/index89.mjs +40 -6
  384. package/index9.js +1 -1
  385. package/index9.mjs +38 -43
  386. package/index90.js +1 -12
  387. package/index90.mjs +25 -36
  388. package/index91.js +1 -1
  389. package/index91.mjs +8 -24
  390. package/index92.js +7 -1
  391. package/index92.mjs +13 -7
  392. package/index93.js +14 -6
  393. package/index93.mjs +65 -13
  394. package/index94.js +1 -15
  395. package/index94.mjs +7 -71
  396. package/index95.js +16 -1
  397. package/index95.mjs +25 -7
  398. package/index96.js +1 -16
  399. package/index96.mjs +37 -20
  400. package/index97.js +1 -1
  401. package/index97.mjs +43 -40
  402. package/index98.js +1 -1
  403. package/index98.mjs +47 -44
  404. package/index99.js +1 -1
  405. package/index99.mjs +17 -48
  406. package/package.json +1 -1
  407. package/theme/Alerts/index.d.ts +88 -0
  408. package/theme/Button/index.d.ts +28 -0
  409. package/theme/Carousel/index.d.ts +36 -0
  410. package/types/next-link.d.ts +16 -0
  411. package/components/DirectusImg/index.d.ts +0 -3
  412. package/components/DirectusImg/interface.d.ts +0 -20
  413. package/components/Img/index.d.ts +0 -3
  414. package/components/Img/interface.d.ts +0 -6
  415. package/index204.js +0 -1
  416. package/index204.mjs +0 -26
  417. package/index205.js +0 -1
  418. package/index205.mjs +0 -29
  419. package/index206.js +0 -1
  420. package/index206.mjs +0 -49
  421. package/index207.js +0 -1
  422. package/index207.mjs +0 -4
  423. package/index208.js +0 -1
  424. package/index208.mjs +0 -23
  425. package/index209.js +0 -1
  426. package/index209.mjs +0 -4
  427. package/index210.js +0 -1
  428. package/index210.mjs +0 -31
  429. package/index211.js +0 -1
  430. package/index211.mjs +0 -4
  431. package/index212.js +0 -1
  432. package/index212.mjs +0 -4
  433. package/index213.js +0 -1
  434. package/index213.mjs +0 -25
  435. package/index214.js +0 -1
  436. package/index214.mjs +0 -4
  437. package/index215.js +0 -1
  438. package/index215.mjs +0 -4
  439. package/index216.js +0 -1
  440. package/index216.mjs +0 -4
  441. package/index217.js +0 -1
  442. package/index217.mjs +0 -40
  443. package/index218.js +0 -1
  444. package/index218.mjs +0 -4
  445. package/index219.js +0 -1
  446. package/index219.mjs +0 -23
  447. package/index220.js +0 -1
  448. package/index220.mjs +0 -25
  449. package/index221.js +0 -1
  450. package/index221.mjs +0 -4
  451. package/index222.js +0 -1
  452. package/index222.mjs +0 -25
  453. package/index223.js +0 -1
  454. package/index223.mjs +0 -4
  455. package/index224.js +0 -1
  456. package/index224.mjs +0 -133
  457. package/index225.js +0 -1
  458. package/index225.mjs +0 -182
  459. package/index226.js +0 -1
  460. package/index226.mjs +0 -12
  461. package/index227.js +0 -1
  462. package/index227.mjs +0 -6
  463. package/index228.js +0 -1
  464. package/index228.mjs +0 -39
  465. package/index229.js +0 -1
  466. package/index229.mjs +0 -8
  467. package/index230.js +0 -1
  468. package/index230.mjs +0 -32
  469. package/index231.js +0 -1
  470. package/index231.mjs +0 -9
  471. package/index232.js +0 -1
  472. package/index232.mjs +0 -316
  473. package/index233.js +0 -1
  474. package/index233.mjs +0 -195
  475. package/index234.js +0 -1
  476. package/index234.mjs +0 -11
  477. package/index235.js +0 -1
  478. package/index235.mjs +0 -29
  479. package/index236.js +0 -1
  480. package/index236.mjs +0 -58
  481. package/index237.js +0 -1
  482. package/index237.mjs +0 -49
  483. package/index238.js +0 -1
  484. package/index238.mjs +0 -127
  485. package/index239.js +0 -1
  486. package/index239.mjs +0 -4
  487. package/index240.js +0 -1
  488. package/index240.mjs +0 -4
  489. package/index241.js +0 -1
  490. package/index241.mjs +0 -4
  491. package/index242.js +0 -1
  492. package/index242.mjs +0 -20
  493. package/index243.js +0 -1
  494. package/index243.mjs +0 -29
  495. package/index244.js +0 -1
  496. package/index244.mjs +0 -4
  497. package/index245.js +0 -1
  498. package/index245.mjs +0 -91
  499. package/index246.js +0 -1
  500. package/index246.mjs +0 -22
  501. package/index247.js +0 -1
  502. package/index247.mjs +0 -4
  503. package/index248.js +0 -1
  504. package/index248.mjs +0 -40
  505. package/index249.js +0 -1
  506. package/index249.mjs +0 -139
  507. package/index250.js +0 -1
  508. package/index250.mjs +0 -4
  509. package/index251.js +0 -1
  510. package/index251.mjs +0 -25
  511. package/index252.js +0 -1
  512. package/index252.mjs +0 -4
  513. package/index253.js +0 -1
  514. package/index253.mjs +0 -4
  515. package/index254.js +0 -1
  516. package/index254.mjs +0 -4
  517. package/index255.js +0 -1
  518. package/index255.mjs +0 -4
  519. package/index256.js +0 -1
  520. package/index256.mjs +0 -25
  521. package/index257.js +0 -1
  522. package/index257.mjs +0 -4
  523. package/index258.js +0 -1
  524. package/index258.mjs +0 -28
  525. package/index259.js +0 -1
  526. package/index259.mjs +0 -4
  527. package/index260.js +0 -1
  528. package/index260.mjs +0 -8
  529. package/index261.js +0 -1
  530. package/index261.mjs +0 -4
  531. package/index262.js +0 -1
  532. package/index262.mjs +0 -4
  533. package/index263.js +0 -1
  534. package/index263.mjs +0 -4
  535. package/index264.js +0 -1
  536. package/index264.mjs +0 -4
  537. package/index265.js +0 -1
  538. package/index265.mjs +0 -74
  539. package/index266.js +0 -1
  540. package/index266.mjs +0 -4
  541. package/index267.js +0 -1
  542. package/index267.mjs +0 -4
  543. package/index268.js +0 -1
  544. package/index268.mjs +0 -21
  545. package/index269.js +0 -1
  546. package/index269.mjs +0 -4
  547. package/index270.js +0 -1
  548. package/index270.mjs +0 -4
  549. package/index271.js +0 -1
  550. package/index271.mjs +0 -4
  551. package/index272.js +0 -1
  552. package/index272.mjs +0 -31
  553. package/index273.js +0 -1
  554. package/index273.mjs +0 -9
  555. package/index274.js +0 -1
  556. package/index274.mjs +0 -10
  557. package/index275.js +0 -1
  558. package/index275.mjs +0 -10
  559. package/index276.js +0 -1
  560. package/index276.mjs +0 -4
  561. package/index277.js +0 -1
  562. package/index277.mjs +0 -39
  563. package/index278.js +0 -1
  564. package/index278.mjs +0 -4
  565. package/index279.js +0 -1
  566. package/index279.mjs +0 -7
  567. package/index280.js +0 -1
  568. package/index280.mjs +0 -8
  569. package/index281.js +0 -1
  570. package/index281.mjs +0 -12
  571. package/index282.js +0 -1
  572. package/index282.mjs +0 -4
  573. package/index283.js +0 -1
  574. package/index283.mjs +0 -20
  575. package/index284.js +0 -1
  576. package/index284.mjs +0 -33
  577. package/index285.js +0 -1
  578. package/index285.mjs +0 -4
  579. package/index286.js +0 -1
  580. package/index286.mjs +0 -4
package/index102.mjs CHANGED
@@ -1,65 +1,31 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as M from "./index129.mjs";
3
- import { Swiper as N, SwiperSlide as $ } from "./index130.mjs";
4
- import a from "./index65.mjs";
5
- import I from "./index131.mjs";
6
- const D = (p) => {
7
- const {
8
- slides: n,
9
- slidesPerView: d = 1,
10
- spaceBetween: m = 50,
11
- themeName: r,
12
- tokens: s,
13
- customTheme: c,
14
- modules: i,
15
- a11y: t,
16
- children: u = (e) => /* @__PURE__ */ o(I, { ...e }),
17
- ...w
18
- } = p, h = a(`${r}.slide.wrapper`, s), f = a(`${r}.swiper.swiper`, s, c), b = a(`${r}.swiper.wrapper`, s), g = ["A11y"], y = [...(i == null ? void 0 : i.filter((e) => e !== "Pagination")) ?? [], ...g].map(
19
- (e) => M[e]
20
- ), {
21
- itemRoleDescriptionMessage: S = "slide",
22
- slideRole: x = "group",
23
- containerRoleDescriptionMessage: T = "carousel"
24
- } = t ?? {};
25
- return /* @__PURE__ */ o(
26
- N,
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { FocusScope as p } from "react-aria";
3
+ import s from "./index25.mjs";
4
+ import u from "./index129.mjs";
5
+ const h = (i) => {
6
+ const { themeName: o, tokens: r, slides: a, activeIndex: t, paginationGroupLabel: n } = i;
7
+ return /* @__PURE__ */ e(
8
+ s,
27
9
  {
28
- tabIndex: 0,
29
- ...w,
30
- watchSlidesProgress: !0,
10
+ as: "div",
11
+ themeName: `${o}.wrapper`,
12
+ tokens: r,
31
13
  role: "group",
32
- "aria-roledescription": T ?? void 0,
33
- slidesPerView: d,
34
- spaceBetween: m,
35
- className: f,
36
- wrapperClass: b,
37
- modules: y,
38
- keyboard: {
39
- enabled: !0,
40
- onlyInViewport: !1
41
- },
42
- a11y: {
43
- ...t,
44
- enabled: !1
45
- },
46
- children: n.map((e) => {
47
- const { id: l, title: C } = e;
48
- return /* @__PURE__ */ o(
49
- $,
50
- {
51
- className: h,
52
- ...C ? { "aria-labelledby": l } : { "aria-label": e.ariaLabel },
53
- role: x,
54
- "aria-roledescription": S ?? void 0,
55
- children: u({ ...e, themeName: `${r}.slide`, tokens: s })
56
- },
57
- l
58
- );
59
- })
14
+ "aria-label": n,
15
+ children: /* @__PURE__ */ e(p, { children: a.map((m, l) => /* @__PURE__ */ e(
16
+ u,
17
+ {
18
+ index: l,
19
+ activeIndex: t,
20
+ slides: a,
21
+ themeName: o,
22
+ tokens: r
23
+ },
24
+ JSON.stringify(m)
25
+ )) })
60
26
  }
61
27
  );
62
28
  };
63
29
  export {
64
- D as default
30
+ h as default
65
31
  };
package/index103.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index25.js"),p=require("./index132.js"),d=t=>{const{themeName:r,tokens:i,slides:a,activeIndex:s,paginationGroupLabel:n}=t;return e.jsx(l.default,{as:"div",themeName:`${r}.wrapper`,tokens:i,role:"group","aria-label":n,children:e.jsx(c.FocusScope,{children:a.map((o,u)=>e.jsx(p,{index:u,activeIndex:s,slides:a,themeName:r,tokens:i},JSON.stringify(o)))})})};module.exports=d;
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("react"),o=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),r=s.memo(o);module.exports=r;
package/index103.mjs CHANGED
@@ -1,31 +1,6 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { FocusScope as p } from "react-aria";
3
- import s from "./index25.mjs";
4
- import u from "./index132.mjs";
5
- const h = (i) => {
6
- const { themeName: o, tokens: r, slides: a, activeIndex: t, paginationGroupLabel: n } = i;
7
- return /* @__PURE__ */ e(
8
- s,
9
- {
10
- as: "div",
11
- themeName: `${o}.wrapper`,
12
- tokens: r,
13
- role: "group",
14
- "aria-label": n,
15
- children: /* @__PURE__ */ e(p, { children: a.map((m, l) => /* @__PURE__ */ e(
16
- u,
17
- {
18
- index: l,
19
- activeIndex: t,
20
- slides: a,
21
- themeName: o,
22
- tokens: r
23
- },
24
- JSON.stringify(m)
25
- )) })
26
- }
27
- );
28
- };
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { memo as r } from "react";
3
+ const m = (o) => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", height: 48, width: 48, fill: "currentColor", ...o }), e = r(m);
29
4
  export {
30
- h as default
5
+ e as default
31
6
  };
package/index104.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),r=require("react"),o=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),s=r.memo(o);module.exports=s;
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("lodash.isequal"),t=require("react"),c=r=>e.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...r,children:[e.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[e.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),e.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),e.jsx("defs",{children:e.jsx("clipPath",{children:e.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),i=t.memo(c,s);module.exports=i;
package/index104.mjs CHANGED
@@ -1,6 +1,13 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { memo as r } from "react";
3
- const m = (o) => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", height: 48, width: 48, fill: "currentColor", ...o }), e = r(m);
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import e from "lodash.isequal";
3
+ import { memo as l } from "react";
4
+ const i = (t) => /* @__PURE__ */ o("svg", { width: 20, height: 20, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", ...t, children: [
5
+ /* @__PURE__ */ o("g", { stroke: "currentColor", clipPath: "url(#a)", children: [
6
+ /* @__PURE__ */ r("circle", { cx: "8.2727", cy: "8.2727", r: "7.2727" }),
7
+ /* @__PURE__ */ r("path", { d: "M13.4551 13.4531L19.5005 19.4986" })
8
+ ] }),
9
+ /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M0 0h14v14H0z" }) }) })
10
+ ] }), s = l(i, e);
4
11
  export {
5
- e as default
12
+ s as default
6
13
  };
package/index105.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("lodash.isequal"),t=require("react"),c=r=>e.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...r,children:[e.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[e.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),e.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),e.jsx("defs",{children:e.jsx("clipPath",{children:e.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),i=t.memo(c,s);module.exports=i;
1
+ "use strict";const i=(r,n,t)=>{const e=r[n];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})};module.exports=i;
package/index105.mjs CHANGED
@@ -1,13 +1,16 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import e from "lodash.isequal";
3
- import { memo as l } from "react";
4
- const i = (t) => /* @__PURE__ */ o("svg", { width: 20, height: 20, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", ...t, children: [
5
- /* @__PURE__ */ o("g", { stroke: "currentColor", clipPath: "url(#a)", children: [
6
- /* @__PURE__ */ r("circle", { cx: "8.2727", cy: "8.2727", r: "7.2727" }),
7
- /* @__PURE__ */ r("path", { d: "M13.4551 13.4531L19.5005 19.4986" })
8
- ] }),
9
- /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M0 0h14v14H0z" }) }) })
10
- ] }), s = l(i, e);
1
+ const l = (r, n, t) => {
2
+ const e = r[n];
3
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
4
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5
+ o.bind(
6
+ null,
7
+ new Error(
8
+ "Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
9
+ )
10
+ )
11
+ );
12
+ });
13
+ };
11
14
  export {
12
- s as default
15
+ l as default
13
16
  };
package/index106.js CHANGED
@@ -1 +1 @@
1
- "use strict";const i=(r,n,t)=>{const e=r[n];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})};module.exports=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),u=require("react-aria"),p=require("./index64.js"),l=require("./index3.js"),h=({item:o,state:i,themeName:t="li"})=>{const e=a.useRef(null),{optionProps:s,isFocusVisible:c}=u.useOption({key:o.key},i,e),r=p(t);return n.jsx(l.TypographyWithForwardRef,{as:"li",...s,tokens:{className:`${r} ${c?"has-focus-ring":""}`},ref:e,children:o.rendered})},x=o=>{const i=a.useRef(null),{listBoxRef:t=i,state:e,themeName:s="option"}=o,{listBoxProps:c}=u.useListBox(o,e,t);return n.jsx(u.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:n.jsx(l.TypographyWithForwardRef,{...c,ref:t,as:"ul",themeName:`${s}.ul`,children:[...e.collection].map(r=>n.jsx(h,{themeName:`${s}.li`,item:r,state:e},r.key))})})};exports.ListBox=x;exports.Option=h;
package/index106.mjs CHANGED
@@ -1,16 +1,25 @@
1
- const l = (r, n, t) => {
2
- const e = r[n];
3
- return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
4
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5
- o.bind(
6
- null,
7
- new Error(
8
- "Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
9
- )
10
- )
11
- );
12
- });
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import u from "react";
3
+ import { useListBox as m, FocusScope as a, useOption as f } from "react-aria";
4
+ import p from "./index64.mjs";
5
+ import { TypographyWithForwardRef as l } from "./index3.mjs";
6
+ const h = ({ item: o, state: i, themeName: t = "li" }) => {
7
+ const e = u.useRef(null), { optionProps: s, isFocusVisible: c } = f({ key: o.key }, i, e), r = p(t);
8
+ return /* @__PURE__ */ n(
9
+ l,
10
+ {
11
+ as: "li",
12
+ ...s,
13
+ tokens: { className: `${r} ${c ? "has-focus-ring" : ""}` },
14
+ ref: e,
15
+ children: o.rendered
16
+ }
17
+ );
18
+ }, k = (o) => {
19
+ const i = u.useRef(null), { listBoxRef: t = i, state: e, themeName: s = "option" } = o, { listBoxProps: c } = m(o, e, t);
20
+ return /* @__PURE__ */ n(a, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ n(l, { ...c, ref: t, as: "ul", themeName: `${s}.ul`, children: [...e.collection].map((r) => /* @__PURE__ */ n(h, { themeName: `${s}.li`, item: r, state: e }, r.key)) }) });
13
21
  };
14
22
  export {
15
- l as default
23
+ k as ListBox,
24
+ h as Option
16
25
  };
package/index107.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),u=require("react-aria"),p=require("./index65.js"),l=require("./index3.js"),h=({item:o,state:i,themeName:t="li"})=>{const e=a.useRef(null),{optionProps:s,isFocusVisible:c}=u.useOption({key:o.key},i,e),r=p(t);return n.jsx(l.TypographyWithForwardRef,{as:"li",...s,tokens:{className:`${r} ${c?"has-focus-ring":""}`},ref:e,children:o.rendered})},d=o=>{const i=a.useRef(null),{listBoxRef:t=i,state:e,themeName:s="option"}=o,{listBoxProps:c}=u.useListBox(o,e,t);return n.jsx(u.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:n.jsx(l.TypographyWithForwardRef,{...c,ref:t,as:"ul",themeName:`${s}.ul`,children:[...e.collection].map(r=>n.jsx(h,{themeName:`${s}.li`,item:r,state:e},r.key))})})};exports.ListBox=d;exports.Option=h;
1
+ "use strict";const e=require("react/jsx-runtime"),m=require("react"),s=require("react-aria"),i=require("./index25.js"),f=o=>{const n=m.useRef(null),{popoverRef:t=n,state:r,children:c,themeName:u="popover",tokens:l,customTheme:h,triggerRef:x,...d}=o,{popoverProps:p,underlayProps:a}=s.usePopover({...o,popoverRef:t,triggerRef:x},r);return e.jsxs(s.Overlay,{children:[e.jsx("div",{...a,style:{position:"fixed",inset:0}}),e.jsx(i.default,{...d,children:e.jsxs(i.BoxWithForwardRef,{...p,ref:t,themeName:u,tokens:l,children:[e.jsx(s.DismissButton,{onDismiss:r.close}),c,e.jsx(s.DismissButton,{onDismiss:r.close})]})})]})};module.exports=f;
package/index107.mjs CHANGED
@@ -1,25 +1,25 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import u from "react";
3
- import { useListBox as m, FocusScope as a, useOption as f } from "react-aria";
4
- import p from "./index65.mjs";
5
- import { TypographyWithForwardRef as l } from "./index3.mjs";
6
- const h = ({ item: o, state: i, themeName: t = "li" }) => {
7
- const e = u.useRef(null), { optionProps: s, isFocusVisible: c } = f({ key: o.key }, i, e), r = p(t);
8
- return /* @__PURE__ */ n(
9
- l,
3
+ import { usePopover as h, Overlay as v, DismissButton as i } from "react-aria";
4
+ import x, { BoxWithForwardRef as R } from "./index25.mjs";
5
+ const j = (r) => {
6
+ const n = u.useRef(null), { popoverRef: s = n, state: o, children: m, themeName: p = "popover", tokens: f, customTheme: P, triggerRef: l, ...c } = r, { popoverProps: d, underlayProps: a } = h(
10
7
  {
11
- as: "li",
12
- ...s,
13
- tokens: { className: `${r} ${c ? "has-focus-ring" : ""}` },
14
- ref: e,
15
- children: o.rendered
16
- }
8
+ ...r,
9
+ popoverRef: s,
10
+ triggerRef: l
11
+ },
12
+ o
17
13
  );
18
- }, k = (o) => {
19
- const i = u.useRef(null), { listBoxRef: t = i, state: e, themeName: s = "option" } = o, { listBoxProps: c } = m(o, e, t);
20
- return /* @__PURE__ */ n(a, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ n(l, { ...c, ref: t, as: "ul", themeName: `${s}.ul`, children: [...e.collection].map((r) => /* @__PURE__ */ n(h, { themeName: `${s}.li`, item: r, state: e }, r.key)) }) });
14
+ return /* @__PURE__ */ t(v, { children: [
15
+ /* @__PURE__ */ e("div", { ...a, style: { position: "fixed", inset: 0 } }),
16
+ /* @__PURE__ */ e(x, { ...c, children: /* @__PURE__ */ t(R, { ...d, ref: s, themeName: p, tokens: f, children: [
17
+ /* @__PURE__ */ e(i, { onDismiss: o.close }),
18
+ m,
19
+ /* @__PURE__ */ e(i, { onDismiss: o.close })
20
+ ] }) })
21
+ ] });
21
22
  };
22
23
  export {
23
- k as ListBox,
24
- h as Option
24
+ j as default
25
25
  };
package/index108.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),f=require("react"),s=require("react-aria"),i=require("./index25.js"),m=o=>{const n=f.useRef(null),{popoverRef:t=n,state:r,children:c,themeName:u="popover",tokens:l,customTheme:h,triggerRef:d,...p}=o,{popoverProps:x,underlayProps:a}=s.usePopover({...o,popoverRef:t,triggerRef:d},r);return e.jsxs(s.Overlay,{children:[e.jsx("div",{...a,style:{position:"fixed",inset:0}}),e.jsx(i.default,{...p,children:e.jsxs(i.BoxWithForwardRef,{...x,ref:t,themeName:u,tokens:l,children:[e.jsx(s.DismissButton,{onDismiss:r.close}),c,e.jsx(s.DismissButton,{onDismiss:r.close})]})})]})};module.exports=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index136.js"),o=require("./index137.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||a.includes(i)||l(a.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
package/index108.mjs CHANGED
@@ -1,25 +1,41 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import u from "react";
3
- import { usePopover as h, Overlay as v, DismissButton as i } from "react-aria";
4
- import x, { BoxWithForwardRef as R } from "./index25.mjs";
5
- const j = (r) => {
6
- const n = u.useRef(null), { popoverRef: s = n, state: o, children: m, themeName: p = "popover", tokens: f, customTheme: P, triggerRef: l, ...c } = r, { popoverProps: d, underlayProps: a } = h(
7
- {
8
- ...r,
9
- popoverRef: s,
10
- triggerRef: l
1
+ import { useFormValidationState as r, mergeValidation as o } from "./index136.mjs";
2
+ import { useControlledState as b } from "./index137.mjs";
3
+ import { useRef as v } from "react";
4
+ function y(e = {}) {
5
+ let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
6
+ ...e,
7
+ value: i
8
+ }), f = n.displayValidation.isInvalid;
9
+ var s;
10
+ return {
11
+ ...n,
12
+ value: i,
13
+ setValue(a) {
14
+ e.isReadOnly || e.isDisabled || l(a);
11
15
  },
12
- o
13
- );
14
- return /* @__PURE__ */ t(v, { children: [
15
- /* @__PURE__ */ e("div", { ...a, style: { position: "fixed", inset: 0 } }),
16
- /* @__PURE__ */ e(x, { ...c, children: /* @__PURE__ */ t(R, { ...d, ref: s, themeName: p, tokens: f, children: [
17
- /* @__PURE__ */ e(i, { onDismiss: o.close }),
18
- m,
19
- /* @__PURE__ */ e(i, { onDismiss: o.close })
20
- ] }) })
21
- ] });
22
- };
16
+ isDisabled: e.isDisabled || !1,
17
+ isReadOnly: e.isReadOnly || !1,
18
+ isSelected(a) {
19
+ return i.includes(a);
20
+ },
21
+ addValue(a) {
22
+ e.isReadOnly || e.isDisabled || i.includes(a) || l(i.concat(a));
23
+ },
24
+ removeValue(a) {
25
+ e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
26
+ },
27
+ toggleValue(a) {
28
+ e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
29
+ },
30
+ setInvalid(a, t) {
31
+ let d = new Map(u.current);
32
+ t.isInvalid ? d.set(a, t) : d.delete(a), u.current = d, n.updateValidation(o(...d.values()));
33
+ },
34
+ validationState: (s = e.validationState) !== null && s !== void 0 ? s : f ? "invalid" : null,
35
+ isInvalid: f,
36
+ isRequired: c
37
+ };
38
+ }
23
39
  export {
24
- j as default
40
+ y as useCheckboxGroupState
25
41
  };
package/index109.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index141.js"),o=require("./index142.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||a.includes(i)||l(a.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
1
+ "use client";
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
package/index109.mjs CHANGED
@@ -1,41 +1,15 @@
1
- import { useFormValidationState as r, mergeValidation as o } from "./index141.mjs";
2
- import { useControlledState as b } from "./index142.mjs";
3
- import { useRef as v } from "react";
4
- function y(e = {}) {
5
- let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
6
- ...e,
7
- value: i
8
- }), f = n.displayValidation.isInvalid;
9
- var s;
10
- return {
11
- ...n,
12
- value: i,
13
- setValue(a) {
14
- e.isReadOnly || e.isDisabled || l(a);
15
- },
16
- isDisabled: e.isDisabled || !1,
17
- isReadOnly: e.isReadOnly || !1,
18
- isSelected(a) {
19
- return i.includes(a);
20
- },
21
- addValue(a) {
22
- e.isReadOnly || e.isDisabled || i.includes(a) || l(i.concat(a));
23
- },
24
- removeValue(a) {
25
- e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
26
- },
27
- toggleValue(a) {
28
- e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
29
- },
30
- setInvalid(a, t) {
31
- let d = new Map(u.current);
32
- t.isInvalid ? d.set(a, t) : d.delete(a), u.current = d, n.updateValidation(o(...d.values()));
33
- },
34
- validationState: (s = e.validationState) !== null && s !== void 0 ? s : f ? "invalid" : null,
35
- isInvalid: f,
36
- isRequired: c
37
- };
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { createContext as u, useContext as c } from "react";
4
+ const o = u(null), i = (t) => {
5
+ const { children: e, state: r } = t;
6
+ return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
7
+ };
8
+ function C() {
9
+ const t = c(o);
10
+ return t || null;
38
11
  }
39
12
  export {
40
- y as useCheckboxGroupState
13
+ i as CheckboxGroupProvider,
14
+ C as useCheckboxGroupCtx
41
15
  };
package/index11.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const t=require("react/jsx-runtime"),s=require("react"),k=require("react-aria"),L=require("./index72.js"),A=require("./index25.js"),g=require("./index12.js"),I=require("./index102.js"),w=require("./index103.js"),M=p=>{const{id:l,themeName:r="carousel",tokens:i,customTheme:W,slides:x,a11y:n,modules:a,prevButton:h=g.CarouselPrevNavigationButton,nextButton:N=g.CarouselNextNavigationButton,onSwiper:u,onSlideChange:c,...b}=p,m=s.useRef(null),q=s.useRef(null),{enabled:B=!0,paginationGroupLabel:C="pagination",...$}=n??{},v=a==null?void 0:a.includes("Navigation"),f=a==null?void 0:a.includes("Pagination"),[j,P]=s.useState(),[d,S]=s.useState(0),o=x.map((e,R)=>({...e,ariaLabel:e.ariaLabel??`${R+1} / ${x.length}`}));return t.jsx(A.default,{themeName:`${r}.carouselWrapper`,tokens:i,children:t.jsxs(L.SwiperControllerContextProvider,{controller:j,children:[v&&t.jsx(h,{themeName:`${r}.navigation.button`,tokens:{...i,order:"prev"},ref:m,"aria-label":n==null?void 0:n.prevSlideMessage,"aria-controls":l}),t.jsx(I,{themeName:r,tokens:i,id:l,slides:o,onSwiper:e=>{P(e),u==null||u(e)},onSlideChange:e=>{S(e.activeIndex),c==null||c(e)},a11y:$,modules:a,...b}),v&&t.jsx(N,{themeName:`${r}.navigation.button`,tokens:{...i,order:"next"},ref:q,"aria-label":n==null?void 0:n.nextSlideMessage,"aria-controls":l}),f&&t.jsx(w,{themeName:`${r}.pagination`,tokens:i,activeIndex:d,slides:o,paginationGroupLabel:C}),B&&t.jsx(k.VisuallyHidden,{children:t.jsx("div",{"aria-live":"polite",children:o[d].title??o[d].ariaLabel})})]})})};module.exports=M;
2
+ "use strict";const t=require("react/jsx-runtime"),s=require("react"),k=require("react-aria"),L=require("./index71.js"),A=require("./index25.js"),g=require("./index12.js"),I=require("./index101.js"),w=require("./index102.js"),M=p=>{const{id:l,themeName:i="carousel",tokens:r,customTheme:W,slides:x,a11y:n,modules:a,prevButton:h=g.CarouselPrevNavigationButton,nextButton:N=g.CarouselNextNavigationButton,onSwiper:u,onSlideChange:c,...b}=p,m=s.useRef(null),j=s.useRef(null),{enabled:B=!0,paginationGroupLabel:C="pagination",...f}=n??{},v=a==null?void 0:a.includes("Navigation"),q=a==null?void 0:a.includes("Pagination"),[$,P]=s.useState(),[d,R]=s.useState(0),o=x.map((e,S)=>({...e,ariaLabel:e.ariaLabel??`${S+1} / ${x.length}`}));return t.jsx(A.default,{themeName:`${i}.carouselWrapper`,tokens:r,children:t.jsxs(L.SwiperControllerContextProvider,{controller:$,children:[v&&t.jsx(h,{themeName:`${i}.navigation.button`,tokens:{...r,order:"prev"},ref:m,"aria-label":n==null?void 0:n.prevSlideMessage,"aria-controls":l}),t.jsx(I,{themeName:i,tokens:r,id:l,slides:o,onSwiper:e=>{P(e),u==null||u(e)},onSlideChange:e=>{R(e.activeIndex),c==null||c(e)},a11y:f,modules:a,...b}),v&&t.jsx(N,{themeName:`${i}.navigation.button`,tokens:{...r,order:"next"},ref:j,"aria-label":n==null?void 0:n.nextSlideMessage,"aria-controls":l}),q&&t.jsx(w,{themeName:`${i}.pagination`,tokens:r,activeIndex:d,slides:o,paginationGroupLabel:C}),B&&t.jsx(k.VisuallyHidden,{children:t.jsx("div",{"aria-live":"polite",children:o[d].title??o[d].ariaLabel})})]})})};module.exports=M;
package/index11.mjs CHANGED
@@ -2,11 +2,11 @@
2
2
  import { jsx as a, jsxs as R } from "react/jsx-runtime";
3
3
  import { useRef as d, useState as v } from "react";
4
4
  import { VisuallyHidden as j } from "react-aria";
5
- import { SwiperControllerContextProvider as w } from "./index72.mjs";
5
+ import { SwiperControllerContextProvider as w } from "./index71.mjs";
6
6
  import A from "./index25.mjs";
7
7
  import { CarouselPrevNavigationButton as M, CarouselNextNavigationButton as W } from "./index12.mjs";
8
- import y from "./index102.mjs";
9
- import E from "./index103.mjs";
8
+ import y from "./index101.mjs";
9
+ import E from "./index102.mjs";
10
10
  const J = (f) => {
11
11
  const {
12
12
  id: s,
package/index110.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=t.createContext(null),c=e=>{const{children:o,state:u}=e;return n.jsx(r.Provider,{value:u,children:o})};function s(){const e=t.useContext(r);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),s=require("react-aria");function u({title:c,children:t,...r}){const e=n.useRef(null),{dialogProps:i}=s.useDialog(r,e);return o.jsx("div",{...i,ref:e,children:t})}exports.Dialog=u;
package/index110.mjs CHANGED
@@ -1,15 +1,10 @@
1
- "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { createContext as u, useContext as c } from "react";
4
- const o = u(null), i = (t) => {
5
- const { children: e, state: r } = t;
6
- return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
7
- };
8
- function C() {
9
- const t = c(o);
10
- return t || null;
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useRef as f } from "react";
3
+ import { useDialog as l } from "react-aria";
4
+ function u({ title: m, children: r, ...t }) {
5
+ const o = f(null), { dialogProps: i } = l(t, o);
6
+ return /* @__PURE__ */ e("div", { ...i, ref: o, children: r });
11
7
  }
12
8
  export {
13
- i as CheckboxGroupProvider,
14
- C as useCheckboxGroupCtx
9
+ u as Dialog
15
10
  };
package/index111.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),n=require("react-aria");function s({title:c,children:r,...t}){const e=u.useRef(null),{dialogProps:i}=n.useDialog(t,e);return o.jsx("div",{...i,ref:e,children:r})}exports.Dialog=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@react-aria/overlays"),f=require("react"),a=require("./index64.js");function v(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const m=v(f);function j({themeName:e="datePicker",tokens:r,...o}){const s=m.useRef(null),{state:c,children:i}={...o},{popoverProps:l,underlayProps:u}=n.usePopover({...o,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,r),p=a(`${e}.calendarPopover`,r);return t.jsxs(n.Overlay,{children:[t.jsx("div",{...u,className:d}),t.jsxs("div",{...l,ref:s,className:p,children:[t.jsx(n.DismissButton,{onDismiss:c.close}),i,t.jsx(n.DismissButton,{onDismiss:c.close})]})]})}exports.CalendarPopover=j;
package/index111.mjs CHANGED
@@ -1,10 +1,24 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useRef as f } from "react";
3
- import { useDialog as l } from "react-aria";
4
- function u({ title: m, children: r, ...t }) {
5
- const o = f(null), { dialogProps: i } = l(t, o);
6
- return /* @__PURE__ */ e("div", { ...i, ref: o, children: r });
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { usePopover as v, Overlay as f, DismissButton as i } from "@react-aria/overlays";
3
+ import * as P from "react";
4
+ import t from "./index64.mjs";
5
+ function D({ themeName: r = "datePicker", tokens: s, ...n }) {
6
+ const a = P.useRef(null), { state: e, children: l } = { ...n }, { popoverProps: p, underlayProps: m } = v(
7
+ {
8
+ ...n,
9
+ popoverRef: a
10
+ },
11
+ e
12
+ ), d = t(`${r}.calendarUnderlay`, s), u = t(`${r}.calendarPopover`, s);
13
+ return /* @__PURE__ */ c(f, { children: [
14
+ /* @__PURE__ */ o("div", { ...m, className: d }),
15
+ /* @__PURE__ */ c("div", { ...p, ref: a, className: u, children: [
16
+ /* @__PURE__ */ o(i, { onDismiss: e.close }),
17
+ l,
18
+ /* @__PURE__ */ o(i, { onDismiss: e.close })
19
+ ] })
20
+ ] });
7
21
  }
8
22
  export {
9
- u as Dialog
23
+ D as CalendarPopover
10
24
  };
package/index112.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@react-aria/overlays"),f=require("react"),a=require("./index65.js");function v(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const m=v(f);function j({themeName:e="datePicker",tokens:o,...r}){const s=m.useRef(null),{state:c,children:i}={...r},{popoverProps:l,underlayProps:u}=n.usePopover({...r,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,o),p=a(`${e}.calendarPopover`,o);return t.jsxs(n.Overlay,{children:[t.jsx("div",{...u,className:d}),t.jsxs("div",{...l,ref:s,className:p,children:[t.jsx(n.DismissButton,{onDismiss:c.close}),i,t.jsx(n.DismissButton,{onDismiss:c.close})]})]})}exports.CalendarPopover=j;
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("./index114.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),x=require("./index64.js");function p({segment:e,state:i}){const s=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,s),c=x("datePicker.dateSegment");return r.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:r.jsxs("div",{...t,ref:s,className:c,children:[r.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function q(e){const{locale:i}=u.useLocale(),s=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,s,t);return r.jsx("div",{...c,ref:t,className:"flex",children:s.segments.map((l,o)=>r.jsx(p,{segment:l,state:s},o))})}module.exports=q;
package/index112.mjs CHANGED
@@ -1,24 +1,41 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { usePopover as v, Overlay as f, DismissButton as i } from "@react-aria/overlays";
3
- import * as P from "react";
4
- import t from "./index65.mjs";
5
- function D({ themeName: r = "datePicker", tokens: s, ...n }) {
6
- const a = P.useRef(null), { state: e, children: l } = { ...n }, { popoverProps: p, underlayProps: m } = v(
7
- {
8
- ...n,
9
- popoverRef: a
10
- },
11
- e
12
- ), d = t(`${r}.calendarUnderlay`, s), u = t(`${r}.calendarPopover`, s);
13
- return /* @__PURE__ */ c(f, { children: [
14
- /* @__PURE__ */ o("div", { ...m, className: d }),
15
- /* @__PURE__ */ c("div", { ...p, ref: a, className: u, children: [
16
- /* @__PURE__ */ o(i, { onDismiss: e.close }),
17
- l,
18
- /* @__PURE__ */ o(i, { onDismiss: e.close })
19
- ] })
20
- ] });
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { createCalendar as d } from "./index114.mjs";
3
+ import { useDateField as m, useDateSegment as f } from "@react-aria/datepicker";
4
+ import { useLocale as u } from "@react-aria/i18n";
5
+ import { useDateFieldState as h } from "@react-stately/datepicker";
6
+ import { useRef as s } from "react";
7
+ import { FocusRing as p } from "react-aria";
8
+ import x from "./index64.mjs";
9
+ function P({ segment: e, state: i }) {
10
+ const t = s(null), { segmentProps: o } = f(e, i, t), l = x("datePicker.dateSegment");
11
+ return /* @__PURE__ */ r(p, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c("div", { ...o, ref: t, className: l, children: [
12
+ /* @__PURE__ */ r(
13
+ "span",
14
+ {
15
+ "aria-hidden": "true",
16
+ style: {
17
+ visibility: e.isPlaceholder ? "visible" : "hidden",
18
+ height: e.isPlaceholder ? "" : 0,
19
+ pointerEvents: "none",
20
+ display: e.isPlaceholder ? "block" : "none"
21
+ },
22
+ children: e.placeholder
23
+ }
24
+ ),
25
+ e.isPlaceholder ? "" : e.text
26
+ ] }) });
27
+ }
28
+ function R(e) {
29
+ const { locale: i } = u(), t = h({
30
+ ...e,
31
+ locale: i,
32
+ createCalendar: d
33
+ }), o = s(null), { fieldProps: l } = m(e, t, o);
34
+ return /* @__PURE__ */ r("div", { ...l, ref: o, className: "flex", children: t.segments.map((a, n) => (
35
+ // eslint-disable-next-line react/no-array-index-key
36
+ /* @__PURE__ */ r(P, { segment: a, state: t }, n)
37
+ )) });
21
38
  }
22
39
  export {
23
- D as CalendarPopover
40
+ R as default
24
41
  };