@okam/stack-ui 1.25.4 → 1.26.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 (576) hide show
  1. package/components/DirectusImg/interface.d.ts +3 -0
  2. package/index.js +1 -110
  3. package/index.mjs +165 -12753
  4. package/index10.js +2 -0
  5. package/index10.mjs +92 -0
  6. package/index100.js +1 -0
  7. package/index100.mjs +67 -0
  8. package/index101.js +1 -0
  9. package/index101.mjs +144 -0
  10. package/index102.js +1 -0
  11. package/index102.mjs +122 -0
  12. package/index103.js +1 -0
  13. package/index103.mjs +220 -0
  14. package/index104.js +1 -0
  15. package/index104.mjs +177 -0
  16. package/index105.js +1 -0
  17. package/index105.mjs +129 -0
  18. package/index106.js +1 -0
  19. package/index106.mjs +243 -0
  20. package/index107.js +1 -0
  21. package/index107.mjs +6 -0
  22. package/index108.js +1 -0
  23. package/index108.mjs +13 -0
  24. package/index109.js +1 -0
  25. package/index109.mjs +16 -0
  26. package/index11.js +2 -0
  27. package/index11.mjs +75 -0
  28. package/index110.js +1 -0
  29. package/index110.mjs +25 -0
  30. package/index111.js +1 -0
  31. package/index111.mjs +25 -0
  32. package/index112.js +1 -0
  33. package/index112.mjs +41 -0
  34. package/index113.js +2 -0
  35. package/index113.mjs +15 -0
  36. package/index114.js +1 -0
  37. package/index114.mjs +10 -0
  38. package/index115.js +1 -0
  39. package/index115.mjs +24 -0
  40. package/index116.js +1 -0
  41. package/index116.mjs +41 -0
  42. package/index117.js +1 -0
  43. package/index117.mjs +52 -0
  44. package/index118.js +1 -0
  45. package/index118.mjs +43 -0
  46. package/index119.js +1 -0
  47. package/index119.mjs +16 -0
  48. package/index12.js +1 -0
  49. package/index12.mjs +19 -0
  50. package/index120.js +1 -0
  51. package/index120.mjs +28 -0
  52. package/index121.js +1 -0
  53. package/index121.mjs +22 -0
  54. package/index122.js +1 -0
  55. package/index122.mjs +11 -0
  56. package/index123.js +1 -0
  57. package/index123.mjs +32 -0
  58. package/index124.js +1 -0
  59. package/index124.mjs +17 -0
  60. package/index125.js +1 -0
  61. package/index125.mjs +19 -0
  62. package/index126.js +1 -0
  63. package/index126.mjs +7 -0
  64. package/index127.js +1 -0
  65. package/index127.mjs +23 -0
  66. package/index128.js +1 -0
  67. package/index128.mjs +13 -0
  68. package/index129.js +1 -0
  69. package/index129.mjs +106 -0
  70. package/index13.js +2 -0
  71. package/index13.mjs +22 -0
  72. package/index130.js +1 -0
  73. package/index130.mjs +44 -0
  74. package/index131.js +2 -0
  75. package/index131.mjs +24 -0
  76. package/index132.js +1 -0
  77. package/index132.mjs +14 -0
  78. package/index133.js +1 -0
  79. package/index133.mjs +23 -0
  80. package/index134.js +1 -0
  81. package/index134.mjs +53 -0
  82. package/index135.js +1 -0
  83. package/index135.mjs +29 -0
  84. package/index136.js +1 -0
  85. package/index136.mjs +27 -0
  86. package/index137.js +1 -0
  87. package/index137.mjs +48 -0
  88. package/index138.js +2 -0
  89. package/index138.mjs +14 -0
  90. package/index14.js +2 -0
  91. package/index14.mjs +21 -0
  92. package/index141.js +1 -0
  93. package/index141.mjs +44 -0
  94. package/index142.js +1 -0
  95. package/index142.mjs +31 -0
  96. package/index143.js +1 -0
  97. package/index143.mjs +202 -0
  98. package/index144.js +1 -0
  99. package/index144.mjs +193 -0
  100. package/index145.js +1 -0
  101. package/index145.mjs +72 -0
  102. package/index146.js +1 -0
  103. package/index146.mjs +261 -0
  104. package/index147.js +1 -0
  105. package/index147.mjs +100 -0
  106. package/index148.js +1 -0
  107. package/index148.mjs +87 -0
  108. package/index149.js +1 -0
  109. package/index149.mjs +61 -0
  110. package/index15.js +2 -0
  111. package/index15.mjs +88 -0
  112. package/index150.js +1 -0
  113. package/index150.mjs +119 -0
  114. package/index151.js +1 -0
  115. package/index151.mjs +125 -0
  116. package/index152.js +1 -0
  117. package/index152.mjs +75 -0
  118. package/index153.js +1 -0
  119. package/index153.mjs +113 -0
  120. package/index154.js +1 -0
  121. package/index154.mjs +55 -0
  122. package/index155.js +1 -0
  123. package/index155.mjs +96 -0
  124. package/index156.js +1 -0
  125. package/index156.mjs +73 -0
  126. package/index157.js +1 -0
  127. package/index157.mjs +59 -0
  128. package/index158.js +1 -0
  129. package/index158.mjs +102 -0
  130. package/index159.js +5 -0
  131. package/index159.mjs +83 -0
  132. package/index16.js +2 -0
  133. package/index16.mjs +35 -0
  134. package/index160.js +1 -0
  135. package/index160.mjs +2014 -0
  136. package/index161.js +1 -0
  137. package/index161.mjs +62 -0
  138. package/index162.js +1 -0
  139. package/index162.mjs +191 -0
  140. package/index163.js +1 -0
  141. package/index163.mjs +8 -0
  142. package/index164.js +4 -0
  143. package/index164.mjs +249 -0
  144. package/index165.js +1 -0
  145. package/index165.mjs +33 -0
  146. package/index166.js +1 -0
  147. package/index166.mjs +64 -0
  148. package/index167.js +1 -0
  149. package/index167.mjs +97 -0
  150. package/index168.js +1 -0
  151. package/index168.mjs +34 -0
  152. package/index169.js +1 -0
  153. package/index169.mjs +133 -0
  154. package/index17.js +2 -0
  155. package/index17.mjs +37 -0
  156. package/index170.js +1 -0
  157. package/index170.mjs +182 -0
  158. package/index171.js +1 -0
  159. package/index171.mjs +12 -0
  160. package/index172.js +1 -0
  161. package/index172.mjs +6 -0
  162. package/index173.js +1 -0
  163. package/index173.mjs +39 -0
  164. package/index174.js +1 -0
  165. package/index174.mjs +8 -0
  166. package/index175.js +1 -0
  167. package/index175.mjs +32 -0
  168. package/index176.js +1 -0
  169. package/index176.mjs +9 -0
  170. package/index177.js +1 -0
  171. package/index177.mjs +124 -0
  172. package/index178.js +1 -0
  173. package/index178.mjs +30 -0
  174. package/index179.js +1 -0
  175. package/index179.mjs +127 -0
  176. package/index18.js +2 -0
  177. package/index18.mjs +35 -0
  178. package/index180.js +1 -0
  179. package/index180.mjs +137 -0
  180. package/index181.js +1 -0
  181. package/index181.mjs +17 -0
  182. package/index182.js +1 -0
  183. package/index182.mjs +98 -0
  184. package/index183.js +1 -0
  185. package/index183.mjs +109 -0
  186. package/index184.js +1 -0
  187. package/index184.mjs +8 -0
  188. package/index185.js +1 -0
  189. package/index185.mjs +6 -0
  190. package/index186.js +1 -0
  191. package/index186.mjs +128 -0
  192. package/index187.js +1 -0
  193. package/index187.mjs +32 -0
  194. package/index188.js +1 -0
  195. package/index188.mjs +54 -0
  196. package/index189.js +1 -0
  197. package/index189.mjs +47 -0
  198. package/index19.js +2 -0
  199. package/index19.mjs +38 -0
  200. package/index190.js +1 -0
  201. package/index190.mjs +40 -0
  202. package/index191.js +1 -0
  203. package/index191.mjs +116 -0
  204. package/index192.js +1 -0
  205. package/index192.mjs +80 -0
  206. package/index193.js +1 -0
  207. package/index193.mjs +104 -0
  208. package/index194.js +1 -0
  209. package/index194.mjs +100 -0
  210. package/index195.js +1 -0
  211. package/index195.mjs +4 -0
  212. package/index196.js +1 -0
  213. package/index196.mjs +8 -0
  214. package/index197.js +1 -0
  215. package/index197.mjs +67 -0
  216. package/index198.js +1 -0
  217. package/index198.mjs +29 -0
  218. package/index199.js +1 -0
  219. package/index199.mjs +57 -0
  220. package/index2.js +2 -0
  221. package/index2.mjs +149 -0
  222. package/index20.js +2 -0
  223. package/index20.mjs +73 -0
  224. package/index200.js +1 -0
  225. package/index200.mjs +158 -0
  226. package/index201.js +1 -0
  227. package/index201.mjs +25 -0
  228. package/index202.js +1 -0
  229. package/index202.mjs +22 -0
  230. package/index203.js +1 -0
  231. package/index203.mjs +42 -0
  232. package/index204.js +1 -0
  233. package/index204.mjs +85 -0
  234. package/index205.js +1 -0
  235. package/index205.mjs +33 -0
  236. package/index206.js +1 -0
  237. package/index206.mjs +24 -0
  238. package/index207.js +1 -0
  239. package/index207.mjs +63 -0
  240. package/index208.js +1 -0
  241. package/index208.mjs +4 -0
  242. package/index209.js +11 -0
  243. package/index209.mjs +118 -0
  244. package/index21.js +2 -0
  245. package/index21.mjs +70 -0
  246. package/index210.js +1 -0
  247. package/index210.mjs +4 -0
  248. package/index211.js +1 -0
  249. package/index211.mjs +8 -0
  250. package/index212.js +1 -0
  251. package/index212.mjs +4 -0
  252. package/index213.js +1 -0
  253. package/index213.mjs +55 -0
  254. package/index214.js +1 -0
  255. package/index214.mjs +23 -0
  256. package/index215.js +1 -0
  257. package/index215.mjs +26 -0
  258. package/index216.js +1 -0
  259. package/index216.mjs +29 -0
  260. package/index217.js +1 -0
  261. package/index217.mjs +49 -0
  262. package/index218.js +1 -0
  263. package/index218.mjs +4 -0
  264. package/index219.js +1 -0
  265. package/index219.mjs +23 -0
  266. package/index22.js +2 -0
  267. package/index22.mjs +56 -0
  268. package/index220.js +1 -0
  269. package/index220.mjs +4 -0
  270. package/index221.js +1 -0
  271. package/index221.mjs +31 -0
  272. package/index222.js +1 -0
  273. package/index222.mjs +4 -0
  274. package/index223.js +1 -0
  275. package/index223.mjs +4 -0
  276. package/index224.js +1 -0
  277. package/index224.mjs +25 -0
  278. package/index225.js +1 -0
  279. package/index225.mjs +4 -0
  280. package/index226.js +1 -0
  281. package/index226.mjs +4 -0
  282. package/index227.js +1 -0
  283. package/index227.mjs +4 -0
  284. package/index228.js +1 -0
  285. package/index228.mjs +40 -0
  286. package/index229.js +1 -0
  287. package/index229.mjs +4 -0
  288. package/index23.js +2 -0
  289. package/index23.mjs +60 -0
  290. package/index230.js +1 -0
  291. package/index230.mjs +23 -0
  292. package/index231.js +1 -0
  293. package/index231.mjs +25 -0
  294. package/index232.js +1 -0
  295. package/index232.mjs +4 -0
  296. package/index233.js +1 -0
  297. package/index233.mjs +25 -0
  298. package/index234.js +1 -0
  299. package/index234.mjs +4 -0
  300. package/index235.js +1 -0
  301. package/index235.mjs +316 -0
  302. package/index236.js +1 -0
  303. package/index236.mjs +195 -0
  304. package/index237.js +1 -0
  305. package/index237.mjs +11 -0
  306. package/index238.js +1 -0
  307. package/index238.mjs +29 -0
  308. package/index239.js +1 -0
  309. package/index239.mjs +58 -0
  310. package/index24.js +2 -0
  311. package/index24.mjs +23 -0
  312. package/index240.js +1 -0
  313. package/index240.mjs +49 -0
  314. package/index241.js +1 -0
  315. package/index241.mjs +127 -0
  316. package/index242.js +1 -0
  317. package/index242.mjs +8 -0
  318. package/index243.js +1 -0
  319. package/index243.mjs +4 -0
  320. package/index244.js +1 -0
  321. package/index244.mjs +4 -0
  322. package/index245.js +1 -0
  323. package/index245.mjs +4 -0
  324. package/index246.js +1 -0
  325. package/index246.mjs +20 -0
  326. package/index247.js +1 -0
  327. package/index247.mjs +29 -0
  328. package/index248.js +1 -0
  329. package/index248.mjs +4 -0
  330. package/index249.js +1 -0
  331. package/index249.mjs +91 -0
  332. package/index25.js +2 -0
  333. package/index25.mjs +53 -0
  334. package/index250.js +1 -0
  335. package/index250.mjs +22 -0
  336. package/index251.js +1 -0
  337. package/index251.mjs +4 -0
  338. package/index252.js +1 -0
  339. package/index252.mjs +40 -0
  340. package/index253.js +1 -0
  341. package/index253.mjs +139 -0
  342. package/index254.js +1 -0
  343. package/index254.mjs +4 -0
  344. package/index255.js +1 -0
  345. package/index255.mjs +25 -0
  346. package/index256.js +1 -0
  347. package/index256.mjs +4 -0
  348. package/index257.js +1 -0
  349. package/index257.mjs +4 -0
  350. package/index258.js +1 -0
  351. package/index258.mjs +4 -0
  352. package/index259.js +1 -0
  353. package/index259.mjs +4 -0
  354. package/index26.js +2 -0
  355. package/index26.mjs +20 -0
  356. package/index260.js +1 -0
  357. package/index260.mjs +25 -0
  358. package/index261.js +1 -0
  359. package/index261.mjs +4 -0
  360. package/index262.js +1 -0
  361. package/index262.mjs +28 -0
  362. package/index263.js +1 -0
  363. package/index263.mjs +4 -0
  364. package/index264.js +1 -0
  365. package/index264.mjs +4 -0
  366. package/index265.js +1 -0
  367. package/index265.mjs +4 -0
  368. package/index266.js +1 -0
  369. package/index266.mjs +4 -0
  370. package/index267.js +1 -0
  371. package/index267.mjs +4 -0
  372. package/index268.js +1 -0
  373. package/index268.mjs +74 -0
  374. package/index269.js +1 -0
  375. package/index269.mjs +4 -0
  376. package/index27.js +2 -0
  377. package/index27.mjs +36 -0
  378. package/index270.js +1 -0
  379. package/index270.mjs +4 -0
  380. package/index271.js +1 -0
  381. package/index271.mjs +21 -0
  382. package/index272.js +1 -0
  383. package/index272.mjs +4 -0
  384. package/index273.js +1 -0
  385. package/index273.mjs +4 -0
  386. package/index274.js +1 -0
  387. package/index274.mjs +4 -0
  388. package/index275.js +1 -0
  389. package/index275.mjs +31 -0
  390. package/index276.js +1 -0
  391. package/index276.mjs +9 -0
  392. package/index277.js +1 -0
  393. package/index277.mjs +10 -0
  394. package/index278.js +1 -0
  395. package/index278.mjs +10 -0
  396. package/index279.js +1 -0
  397. package/index279.mjs +4 -0
  398. package/index28.js +2 -0
  399. package/index28.mjs +27 -0
  400. package/index280.js +1 -0
  401. package/index280.mjs +39 -0
  402. package/index281.js +1 -0
  403. package/index281.mjs +4 -0
  404. package/index282.js +1 -0
  405. package/index282.mjs +7 -0
  406. package/index283.js +1 -0
  407. package/index283.mjs +8 -0
  408. package/index284.js +1 -0
  409. package/index284.mjs +12 -0
  410. package/index285.js +1 -0
  411. package/index285.mjs +4 -0
  412. package/index286.js +1 -0
  413. package/index286.mjs +20 -0
  414. package/index287.js +1 -0
  415. package/index287.mjs +33 -0
  416. package/index288.js +1 -0
  417. package/index288.mjs +4 -0
  418. package/index289.js +1 -0
  419. package/index289.mjs +4 -0
  420. package/index29.js +2 -0
  421. package/index29.mjs +11 -0
  422. package/index3.js +2 -0
  423. package/index3.mjs +22 -0
  424. package/index30.js +2 -0
  425. package/index30.mjs +35 -0
  426. package/index31.js +2 -0
  427. package/index31.mjs +36 -0
  428. package/index32.js +2 -0
  429. package/index32.mjs +106 -0
  430. package/index33.js +2 -0
  431. package/index33.mjs +12 -0
  432. package/index34.js +2 -0
  433. package/index34.mjs +49 -0
  434. package/index35.js +2 -0
  435. package/index35.mjs +21 -0
  436. package/index36.js +1 -0
  437. package/index36.mjs +9 -0
  438. package/index37.js +1 -0
  439. package/index37.mjs +49 -0
  440. package/index38.js +1 -0
  441. package/index38.mjs +27 -0
  442. package/index39.js +1 -0
  443. package/index39.mjs +7 -0
  444. package/index4.js +2 -0
  445. package/index4.mjs +25 -0
  446. package/index40.js +1 -0
  447. package/index40.mjs +10 -0
  448. package/index41.js +1 -0
  449. package/index41.mjs +10 -0
  450. package/index42.js +1 -0
  451. package/index42.mjs +7 -0
  452. package/index43.js +1 -0
  453. package/index43.mjs +7 -0
  454. package/index44.js +1 -0
  455. package/index44.mjs +7 -0
  456. package/index45.js +1 -0
  457. package/index45.mjs +7 -0
  458. package/index46.js +1 -0
  459. package/index46.mjs +13 -0
  460. package/index47.js +1 -0
  461. package/index47.mjs +15 -0
  462. package/index48.js +1 -0
  463. package/index48.mjs +15 -0
  464. package/index49.js +1 -0
  465. package/index49.mjs +48 -0
  466. package/index5.js +1 -0
  467. package/index5.mjs +34 -0
  468. package/index50.js +1 -0
  469. package/index50.mjs +10 -0
  470. package/index51.js +1 -0
  471. package/index51.mjs +73 -0
  472. package/index52.js +1 -0
  473. package/index52.mjs +10 -0
  474. package/index53.js +1 -0
  475. package/index53.mjs +15 -0
  476. package/index54.js +1 -0
  477. package/index54.mjs +12 -0
  478. package/index55.js +1 -0
  479. package/index55.mjs +19 -0
  480. package/index56.js +1 -0
  481. package/index56.mjs +15 -0
  482. package/index57.js +1 -0
  483. package/index57.mjs +15 -0
  484. package/index58.js +1 -0
  485. package/index58.mjs +15 -0
  486. package/index59.js +1 -0
  487. package/index59.mjs +13 -0
  488. package/index6.js +2 -0
  489. package/index6.mjs +60 -0
  490. package/index60.js +1 -0
  491. package/index60.mjs +13 -0
  492. package/index61.js +1 -0
  493. package/index61.mjs +15 -0
  494. package/index62.js +1 -0
  495. package/index62.mjs +16 -0
  496. package/index63.js +2 -0
  497. package/index63.mjs +25 -0
  498. package/index64.js +2 -0
  499. package/index64.mjs +19 -0
  500. package/index65.js +2 -0
  501. package/index65.mjs +17 -0
  502. package/index66.js +2 -0
  503. package/index66.mjs +44 -0
  504. package/index67.js +2 -0
  505. package/index67.mjs +41 -0
  506. package/index68.js +2 -0
  507. package/index68.mjs +15 -0
  508. package/index69.js +2 -0
  509. package/index69.mjs +14 -0
  510. package/index7.js +2 -0
  511. package/index7.mjs +86 -0
  512. package/index70.js +2 -0
  513. package/index70.mjs +17 -0
  514. package/index71.js +1 -0
  515. package/index71.mjs +4 -0
  516. package/index72.js +2 -0
  517. package/index72.mjs +11 -0
  518. package/index73.js +2 -0
  519. package/index73.mjs +10 -0
  520. package/index74.js +2 -0
  521. package/index74.mjs +10 -0
  522. package/index75.js +2 -0
  523. package/index75.mjs +10 -0
  524. package/index76.js +1 -0
  525. package/index76.mjs +27 -0
  526. package/index77.js +1 -0
  527. package/index77.mjs +4 -0
  528. package/index78.js +6 -0
  529. package/index78.mjs +96 -0
  530. package/index79.js +1 -0
  531. package/index79.mjs +71 -0
  532. package/index8.js +2 -0
  533. package/index8.mjs +27 -0
  534. package/index80.js +1 -0
  535. package/index80.mjs +43 -0
  536. package/index81.js +42 -0
  537. package/index81.mjs +72 -0
  538. package/index82.js +1 -0
  539. package/index82.mjs +161 -0
  540. package/index83.js +1 -0
  541. package/index83.mjs +24 -0
  542. package/index84.js +1 -0
  543. package/index84.mjs +47 -0
  544. package/index85.js +1 -0
  545. package/index85.mjs +15 -0
  546. package/index86.js +1 -0
  547. package/index86.mjs +37 -0
  548. package/index87.js +1 -0
  549. package/index87.mjs +8 -0
  550. package/index88.js +12 -0
  551. package/index88.mjs +42 -0
  552. package/index89.js +1 -0
  553. package/index89.mjs +31 -0
  554. package/index9.js +2 -0
  555. package/index9.mjs +64 -0
  556. package/index90.js +1 -0
  557. package/index90.mjs +15 -0
  558. package/index91.js +7 -0
  559. package/index91.mjs +21 -0
  560. package/index92.js +15 -0
  561. package/index92.mjs +73 -0
  562. package/index93.js +1 -0
  563. package/index93.mjs +9 -0
  564. package/index94.js +16 -0
  565. package/index94.mjs +27 -0
  566. package/index95.js +1 -0
  567. package/index95.mjs +44 -0
  568. package/index96.js +1 -0
  569. package/index96.mjs +47 -0
  570. package/index97.js +1 -0
  571. package/index97.mjs +50 -0
  572. package/index98.js +1 -0
  573. package/index98.mjs +19 -0
  574. package/index99.js +2 -0
  575. package/index99.mjs +24 -0
  576. package/package.json +1 -1
package/index106.mjs ADDED
@@ -0,0 +1,243 @@
1
+ import a, { forwardRef as W, useState as P, useRef as u, useEffect as k, useLayoutEffect as Q, createContext as q, useContext as X } from "react";
2
+ import { S as Y } from "./index160.mjs";
3
+ import { g as Z, m as ee, a as re, u as te } from "./index161.mjs";
4
+ import { d as D, w as ne, n as se, b as ae, a as ie, e as F, u as oe } from "./index162.mjs";
5
+ function L() {
6
+ return L = Object.assign ? Object.assign.bind() : function(n) {
7
+ for (var r = 1; r < arguments.length; r++) {
8
+ var s = arguments[r];
9
+ for (var t in s)
10
+ Object.prototype.hasOwnProperty.call(s, t) && (n[t] = s[t]);
11
+ }
12
+ return n;
13
+ }, L.apply(this, arguments);
14
+ }
15
+ function H(n) {
16
+ return n.type && n.type.displayName && n.type.displayName.includes("SwiperSlide");
17
+ }
18
+ function U(n) {
19
+ const r = [];
20
+ return a.Children.toArray(n).forEach((s) => {
21
+ H(s) ? r.push(s) : s.props && s.props.children && U(s.props.children).forEach((t) => r.push(t));
22
+ }), r;
23
+ }
24
+ function le(n) {
25
+ const r = [], s = {
26
+ "container-start": [],
27
+ "container-end": [],
28
+ "wrapper-start": [],
29
+ "wrapper-end": []
30
+ };
31
+ return a.Children.toArray(n).forEach((t) => {
32
+ if (H(t))
33
+ r.push(t);
34
+ else if (t.props && t.props.slot && s[t.props.slot])
35
+ s[t.props.slot].push(t);
36
+ else if (t.props && t.props.children) {
37
+ const p = U(t.props.children);
38
+ p.length > 0 ? p.forEach((o) => r.push(o)) : s["container-end"].push(t);
39
+ } else
40
+ s["container-end"].push(t);
41
+ }), {
42
+ slides: r,
43
+ slots: s
44
+ };
45
+ }
46
+ function ce(n, r, s) {
47
+ if (!s) return null;
48
+ const t = (l) => {
49
+ let i = l;
50
+ return l < 0 ? i = r.length + l : i >= r.length && (i = i - r.length), i;
51
+ }, p = n.isHorizontal() ? {
52
+ [n.rtlTranslate ? "right" : "left"]: `${s.offset}px`
53
+ } : {
54
+ top: `${s.offset}px`
55
+ }, {
56
+ from: o,
57
+ to: d
58
+ } = s, S = n.params.loop ? -r.length : 0, h = n.params.loop ? r.length * 2 : r.length, g = [];
59
+ for (let l = S; l < h; l += 1)
60
+ l >= o && l <= d && g.push(r[t(l)]);
61
+ return g.map((l, i) => /* @__PURE__ */ a.cloneElement(l, {
62
+ swiper: n,
63
+ style: p,
64
+ key: `slide-${i}`
65
+ }));
66
+ }
67
+ function O(n, r) {
68
+ return typeof window > "u" ? k(n, r) : Q(n, r);
69
+ }
70
+ const B = /* @__PURE__ */ q(null), ge = () => X(B), ue = /* @__PURE__ */ q(null), pe = /* @__PURE__ */ W(function(n, r) {
71
+ let {
72
+ className: s,
73
+ tag: t = "div",
74
+ wrapperTag: p = "div",
75
+ children: o,
76
+ onSwiper: d,
77
+ ...S
78
+ } = n === void 0 ? {} : n, h = !1;
79
+ const [g, l] = P("swiper"), [i, m] = P(null), [C, R] = P(!1), z = u(!1), w = u(null), e = u(null), x = u(null), $ = u(null), j = u(null), b = u(null), N = u(null), T = u(null), {
80
+ params: f,
81
+ passedParams: _,
82
+ rest: G,
83
+ events: v
84
+ } = Z(S), {
85
+ slides: y,
86
+ slots: I
87
+ } = le(o), A = () => {
88
+ R(!C);
89
+ };
90
+ Object.assign(f.on, {
91
+ _containerClasses(c, E) {
92
+ l(E);
93
+ }
94
+ });
95
+ const V = () => {
96
+ Object.assign(f.on, v), h = !0;
97
+ const c = {
98
+ ...f
99
+ };
100
+ if (delete c.wrapperClass, e.current = new Y(c), e.current.virtual && e.current.params.virtual.enabled) {
101
+ e.current.virtual.slides = y;
102
+ const E = {
103
+ cache: !1,
104
+ slides: y,
105
+ renderExternal: m,
106
+ renderExternalUpdate: !1
107
+ };
108
+ F(e.current.params.virtual, E), F(e.current.originalParams.virtual, E);
109
+ }
110
+ };
111
+ w.current || V(), e.current && e.current.on("_beforeBreakpoint", A);
112
+ const J = () => {
113
+ h || !v || !e.current || Object.keys(v).forEach((c) => {
114
+ e.current.on(c, v[c]);
115
+ });
116
+ }, K = () => {
117
+ !v || !e.current || Object.keys(v).forEach((c) => {
118
+ e.current.off(c, v[c]);
119
+ });
120
+ };
121
+ k(() => () => {
122
+ e.current && e.current.off("_beforeBreakpoint", A);
123
+ }), k(() => {
124
+ !z.current && e.current && (e.current.emitSlidesClasses(), z.current = !0);
125
+ }), O(() => {
126
+ if (r && (r.current = w.current), !!w.current)
127
+ return e.current.destroyed && V(), ee({
128
+ el: w.current,
129
+ nextEl: j.current,
130
+ prevEl: b.current,
131
+ paginationEl: N.current,
132
+ scrollbarEl: T.current,
133
+ swiper: e.current
134
+ }, f), d && !e.current.destroyed && d(e.current), () => {
135
+ e.current && !e.current.destroyed && e.current.destroy(!0, !1);
136
+ };
137
+ }, []), O(() => {
138
+ J();
139
+ const c = re(_, x.current, y, $.current, (E) => E.key);
140
+ return x.current = _, $.current = y, c.length && e.current && !e.current.destroyed && oe({
141
+ swiper: e.current,
142
+ slides: y,
143
+ passedParams: _,
144
+ changedParams: c,
145
+ nextEl: j.current,
146
+ prevEl: b.current,
147
+ scrollbarEl: T.current,
148
+ paginationEl: N.current
149
+ }), () => {
150
+ K();
151
+ };
152
+ }), O(() => {
153
+ te(e.current);
154
+ }, [i]);
155
+ function M() {
156
+ return f.virtual ? ce(e.current, y, i) : y.map((c, E) => /* @__PURE__ */ a.cloneElement(c, {
157
+ swiper: e.current,
158
+ swiperSlideIndex: E
159
+ }));
160
+ }
161
+ return /* @__PURE__ */ a.createElement(t, L({
162
+ ref: w,
163
+ className: D(`${g}${s ? ` ${s}` : ""}`)
164
+ }, G), /* @__PURE__ */ a.createElement(ue.Provider, {
165
+ value: e.current
166
+ }, I["container-start"], /* @__PURE__ */ a.createElement(p, {
167
+ className: ne(f.wrapperClass)
168
+ }, I["wrapper-start"], M(), I["wrapper-end"]), se(f) && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", {
169
+ ref: b,
170
+ className: "swiper-button-prev"
171
+ }), /* @__PURE__ */ a.createElement("div", {
172
+ ref: j,
173
+ className: "swiper-button-next"
174
+ })), ae(f) && /* @__PURE__ */ a.createElement("div", {
175
+ ref: T,
176
+ className: "swiper-scrollbar"
177
+ }), ie(f) && /* @__PURE__ */ a.createElement("div", {
178
+ ref: N,
179
+ className: "swiper-pagination"
180
+ }), I["container-end"]));
181
+ });
182
+ pe.displayName = "Swiper";
183
+ const de = /* @__PURE__ */ W(function(n, r) {
184
+ let {
185
+ tag: s = "div",
186
+ children: t,
187
+ className: p = "",
188
+ swiper: o,
189
+ zoom: d,
190
+ lazy: S,
191
+ virtualIndex: h,
192
+ swiperSlideIndex: g,
193
+ ...l
194
+ } = n === void 0 ? {} : n;
195
+ const i = u(null), [m, C] = P("swiper-slide"), [R, z] = P(!1);
196
+ function w(j, b, N) {
197
+ b === i.current && C(N);
198
+ }
199
+ O(() => {
200
+ if (typeof g < "u" && (i.current.swiperSlideIndex = g), r && (r.current = i.current), !(!i.current || !o)) {
201
+ if (o.destroyed) {
202
+ m !== "swiper-slide" && C("swiper-slide");
203
+ return;
204
+ }
205
+ return o.on("_slideClass", w), () => {
206
+ o && o.off("_slideClass", w);
207
+ };
208
+ }
209
+ }), O(() => {
210
+ o && i.current && !o.destroyed && C(o.getSlideClasses(i.current));
211
+ }, [o]);
212
+ const e = {
213
+ isActive: m.indexOf("swiper-slide-active") >= 0,
214
+ isVisible: m.indexOf("swiper-slide-visible") >= 0,
215
+ isPrev: m.indexOf("swiper-slide-prev") >= 0,
216
+ isNext: m.indexOf("swiper-slide-next") >= 0
217
+ }, x = () => typeof t == "function" ? t(e) : t, $ = () => {
218
+ z(!0);
219
+ };
220
+ return /* @__PURE__ */ a.createElement(s, L({
221
+ ref: i,
222
+ className: D(`${m}${p ? ` ${p}` : ""}`),
223
+ "data-swiper-slide-index": h,
224
+ onLoad: $
225
+ }, l), d && /* @__PURE__ */ a.createElement(B.Provider, {
226
+ value: e
227
+ }, /* @__PURE__ */ a.createElement("div", {
228
+ className: "swiper-zoom-container",
229
+ "data-swiper-zoom": typeof d == "number" ? d : void 0
230
+ }, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
231
+ className: "swiper-lazy-preloader"
232
+ }))), !d && /* @__PURE__ */ a.createElement(B.Provider, {
233
+ value: e
234
+ }, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
235
+ className: "swiper-lazy-preloader"
236
+ })));
237
+ });
238
+ de.displayName = "SwiperSlide";
239
+ export {
240
+ pe as Swiper,
241
+ de as SwiperSlide,
242
+ ge as useSwiperSlide
243
+ };
package/index107.js ADDED
@@ -0,0 +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;
package/index107.mjs ADDED
@@ -0,0 +1,6 @@
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);
4
+ export {
5
+ e as default
6
+ };
package/index108.js ADDED
@@ -0,0 +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;
package/index108.mjs ADDED
@@ -0,0 +1,13 @@
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);
11
+ export {
12
+ s as default
13
+ };
package/index109.js ADDED
@@ -0,0 +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;
package/index109.mjs ADDED
@@ -0,0 +1,16 @@
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
+ };
14
+ export {
15
+ l as default
16
+ };
package/index11.js ADDED
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";const i=require("react/jsx-runtime"),q=require("react"),f=require("./index100.js"),S=require("./index101.js"),T=require("./index102.js"),y=require("./index103.js"),C=require("./index104.js"),P=require("./index105.js"),w=require("./index106.js"),d=require("./index64.js"),x=require("./index24.js"),k=require("./index6.js"),B=require("./index13.js"),$=u=>{const{navigationButton:s,icon:t,themeName:l="carousel",tokens:n,id:r,swiperFn:e}=u,c=a=>{("pointerType"in a&&a.pointerType==="keyboard"||"code"in a&&a.code==="Enter")&&(e==null||e())};return s?q.cloneElement(s,{onKeyDown:c,handlePress:c}):i.jsx(k.default,{themeName:`${l}.navigationButtons`,tokens:{...n,className:r},handlePress:c,children:i.jsx(B,{icon:t})})},E=u=>{const{id:s,slides:t,children:l,navigationButtons:n,themeName:r="carousel",tokens:e,customTheme:c,...a}=u,h=t&&(t==null?void 0:t.length)>1,{navigation:p,slidesPerView:v}=u,b=d(`${r}.swiper`,e),g=d(`${r}.swiperWrapper`,e),N=d(`${r}.slideWrapper`,e),[o,j]=q.useState();return i.jsxs(x.default,{themeName:`${r}.container`,tokens:e,customTheme:c,...a,children:[h&&p&&i.jsx($,{themeName:r,tokens:e,navigationButton:n==null?void 0:n.leftButton,id:`button-prev-${s}`,icon:"ArrowLeft",swiperFn:()=>o==null?void 0:o.slidePrev(),swiper:o}),i.jsx(w.Swiper,{modules:[T,S,f,y,P,C],...a,navigation:{prevEl:`.button-prev-${s}`,nextEl:`.button-next-${s}`,disabledClass:"button-disabled"},onSwiper:j,wrapperClass:g,className:b,mousewheel:!0,keyboard:!0,watchOverflow:!0,slidesPerView:v??1,children:t==null?void 0:t.map(m=>i.jsx(w.SwiperSlide,{className:N,children:i.jsx(x.default,{themeName:`${r}.slideContainer`,tokens:e,children:m.child})},m.id))}),h&&p&&i.jsx($,{themeName:r,tokens:e,navigationButton:n==null?void 0:n.rightButton,id:`button-next-${s}`,icon:"ArrowRight",swiperFn:()=>o==null?void 0:o.slideNext(),swiper:o}),l]})};module.exports=E;
package/index11.mjs ADDED
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ import { jsxs as x, jsx as m } from "react/jsx-runtime";
3
+ import T, { useState as B } from "react";
4
+ import C from "./index100.mjs";
5
+ import P from "./index101.mjs";
6
+ import S from "./index102.mjs";
7
+ import y from "./index103.mjs";
8
+ import A from "./index104.mjs";
9
+ import E from "./index105.mjs";
10
+ import { Swiper as W, SwiperSlide as j } from "./index106.mjs";
11
+ import c from "./index64.mjs";
12
+ import f from "./index24.mjs";
13
+ import k from "./index6.mjs";
14
+ import D from "./index13.mjs";
15
+ const w = (p) => {
16
+ const { navigationButton: i, icon: t, themeName: l = "carousel", tokens: r, id: o, swiperFn: e } = p, s = (a) => {
17
+ ("pointerType" in a && a.pointerType === "keyboard" || "code" in a && a.code === "Enter") && (e == null || e());
18
+ };
19
+ return i ? T.cloneElement(i, {
20
+ onKeyDown: s,
21
+ handlePress: s
22
+ }) : /* @__PURE__ */ m(k, { themeName: `${l}.navigationButtons`, tokens: { ...r, className: o }, handlePress: s, children: /* @__PURE__ */ m(D, { icon: t }) });
23
+ }, J = (p) => {
24
+ const { id: i, slides: t, children: l, navigationButtons: r, themeName: o = "carousel", tokens: e, customTheme: s, ...a } = p, d = t && (t == null ? void 0 : t.length) > 1, { navigation: u, slidesPerView: N } = p, b = c(`${o}.swiper`, e), v = c(`${o}.swiperWrapper`, e), $ = c(`${o}.slideWrapper`, e), [n, g] = B();
25
+ return /* @__PURE__ */ x(f, { themeName: `${o}.container`, tokens: e, customTheme: s, ...a, children: [
26
+ d && u && /* @__PURE__ */ m(
27
+ w,
28
+ {
29
+ themeName: o,
30
+ tokens: e,
31
+ navigationButton: r == null ? void 0 : r.leftButton,
32
+ id: `button-prev-${i}`,
33
+ icon: "ArrowLeft",
34
+ swiperFn: () => n == null ? void 0 : n.slidePrev(),
35
+ swiper: n
36
+ }
37
+ ),
38
+ /* @__PURE__ */ m(
39
+ W,
40
+ {
41
+ modules: [S, P, C, y, E, A],
42
+ ...a,
43
+ navigation: {
44
+ prevEl: `.button-prev-${i}`,
45
+ nextEl: `.button-next-${i}`,
46
+ disabledClass: "button-disabled"
47
+ },
48
+ onSwiper: g,
49
+ wrapperClass: v,
50
+ className: b,
51
+ mousewheel: !0,
52
+ keyboard: !0,
53
+ watchOverflow: !0,
54
+ slidesPerView: N ?? 1,
55
+ children: t == null ? void 0 : t.map((h) => /* @__PURE__ */ m(j, { className: $, children: /* @__PURE__ */ m(f, { themeName: `${o}.slideContainer`, tokens: e, children: h.child }) }, h.id))
56
+ }
57
+ ),
58
+ d && u && /* @__PURE__ */ m(
59
+ w,
60
+ {
61
+ themeName: o,
62
+ tokens: e,
63
+ navigationButton: r == null ? void 0 : r.rightButton,
64
+ id: `button-next-${i}`,
65
+ icon: "ArrowRight",
66
+ swiperFn: () => n == null ? void 0 : n.slideNext(),
67
+ swiper: n
68
+ }
69
+ ),
70
+ l
71
+ ] });
72
+ };
73
+ export {
74
+ J as default
75
+ };
package/index110.js ADDED
@@ -0,0 +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("./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})},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;
package/index110.mjs ADDED
@@ -0,0 +1,25 @@
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)) }) });
21
+ };
22
+ export {
23
+ k as ListBox,
24
+ h as Option
25
+ };
package/index111.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),f=require("react"),s=require("react-aria"),i=require("./index24.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;
package/index111.mjs ADDED
@@ -0,0 +1,25 @@
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 "./index24.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
11
+ },
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
+ };
23
+ export {
24
+ j as default
25
+ };
package/index112.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index177.js"),o=require("./index178.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/index112.mjs ADDED
@@ -0,0 +1,41 @@
1
+ import { useFormValidationState as r, mergeValidation as o } from "./index177.mjs";
2
+ import { useControlledState as b } from "./index178.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
+ };
38
+ }
39
+ export {
40
+ y as useCheckboxGroupState
41
+ };
package/index113.js ADDED
@@ -0,0 +1,2 @@
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;
package/index113.mjs ADDED
@@ -0,0 +1,15 @@
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;
11
+ }
12
+ export {
13
+ i as CheckboxGroupProvider,
14
+ C as useCheckboxGroupCtx
15
+ };
package/index114.js ADDED
@@ -0,0 +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;
package/index114.mjs ADDED
@@ -0,0 +1,10 @@
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 });
7
+ }
8
+ export {
9
+ u as Dialog
10
+ };
package/index115.js ADDED
@@ -0,0 +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("./index64.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;
package/index115.mjs ADDED
@@ -0,0 +1,24 @@
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
+ ] });
21
+ }
22
+ export {
23
+ D as CalendarPopover
24
+ };
package/index116.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),d=require("./index118.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),q=require("./index64.js");function p({segment:e,state:i}){const r=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,r),c=q("datePicker.dateSegment");return s.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsxs("div",{...t,ref:r,className:c,children:[s.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 x(e){const{locale:i}=u.useLocale(),r=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,r,t);return s.jsx("div",{...c,ref:t,className:"flex",children:r.segments.map((l,o)=>s.jsx(p,{segment:l,state:r},o))})}module.exports=x;
package/index116.mjs ADDED
@@ -0,0 +1,41 @@
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { createCalendar as d } from "./index118.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
+ )) });
38
+ }
39
+ export {
40
+ R as default
41
+ };
package/index117.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),v=require("./index118.js"),R=require("@react-aria/calendar"),P=require("@react-aria/i18n"),m=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),h=require("./index6.js"),x=require("./index13.js"),p=require("./index3.js"),w=require("./index119.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var l,u;const{locale:q}=P.useLocale(),o=m.useRangeCalendarState({...t,locale:q,createCalendar:v.createCalendar}),d=T.useRef(null),{calendarProps:$,prevButtonProps:s,nextButtonProps:i,title:j}=R.useRangeCalendar({...t},o,d),C=c(`${a}.container`,r),g=c(`${a}.header`,r),f=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...$,ref:d,className:C,children:[e.jsxs("div",{className:g,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:j}),e.jsxs("div",{className:f,children:[e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(x,{icon:((l=n==null?void 0:n.buttonPrev)==null?void 0:l.icon)??"ArrowLeft"})}),e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(x,{icon:((u=n==null?void 0:n.buttonNext)==null?void 0:u.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
package/index117.mjs ADDED
@@ -0,0 +1,52 @@
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { createCalendar as R } from "./index118.mjs";
3
+ import { useRangeCalendar as T } from "@react-aria/calendar";
4
+ import { useLocale as y } from "@react-aria/i18n";
5
+ import { useRangeCalendarState as P } from "@react-stately/calendar";
6
+ import { useRef as B } from "react";
7
+ import c from "./index64.mjs";
8
+ import p from "./index6.mjs";
9
+ import h from "./index13.mjs";
10
+ import j from "./index3.mjs";
11
+ import w from "./index119.mjs";
12
+ function J({ buttons: e, tokens: a, customTheme: A, themeName: n = "calendar", ...s }) {
13
+ var m, f;
14
+ const { locale: g } = y(), d = P({
15
+ ...s,
16
+ locale: g,
17
+ createCalendar: R
18
+ }), l = B(null), { calendarProps: C, prevButtonProps: o, nextButtonProps: i, title: u } = T({ ...s }, d, l), $ = c(`${n}.container`, a), v = c(`${n}.header`, a), x = c(`${n}.navigationButtonsContainer`, a);
19
+ return /* @__PURE__ */ t("div", { ...C, ref: l, className: $, children: [
20
+ /* @__PURE__ */ t("div", { className: v, children: [
21
+ /* @__PURE__ */ r(j, { as: "p", tokens: { size: "h6" }, children: u }),
22
+ /* @__PURE__ */ t("div", { className: x, children: [
23
+ /* @__PURE__ */ r(
24
+ p,
25
+ {
26
+ themeName: `${n}.navigationButtons`,
27
+ tokens: { ...a },
28
+ type: "button",
29
+ ...o,
30
+ handlePress: o == null ? void 0 : o.onPress,
31
+ children: /* @__PURE__ */ r(h, { icon: ((m = e == null ? void 0 : e.buttonPrev) == null ? void 0 : m.icon) ?? "ArrowLeft" })
32
+ }
33
+ ),
34
+ /* @__PURE__ */ r(
35
+ p,
36
+ {
37
+ themeName: `${n}.navigationButtons`,
38
+ tokens: { ...a },
39
+ type: "button",
40
+ ...i,
41
+ handlePress: i == null ? void 0 : i.onPress,
42
+ children: /* @__PURE__ */ r(h, { icon: ((f = e == null ? void 0 : e.buttonNext) == null ? void 0 : f.icon) ?? "ArrowRight" })
43
+ }
44
+ )
45
+ ] })
46
+ ] }),
47
+ /* @__PURE__ */ r(w, { state: d })
48
+ ] });
49
+ }
50
+ export {
51
+ J as default
52
+ };
package/index118.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index187.js"),e=require("./index193.js"),i=require("./index182.js"),c=require("./index192.js"),t=require("./index190.js"),a=require("./index191.js"),l=require("./index186.js"),s=require("./index189.js"),d=require("./index188.js");function u(r){switch(r){case"buddhist":return new n.BuddhistCalendar;case"ethiopic":return new e.EthiopicCalendar;case"ethioaa":return new e.EthiopicAmeteAlemCalendar;case"coptic":return new e.CopticCalendar;case"hebrew":return new c.HebrewCalendar;case"indian":return new t.IndianCalendar;case"islamic-civil":return new a.IslamicCivilCalendar;case"islamic-tbla":return new a.IslamicTabularCalendar;case"islamic-umalqura":return new a.IslamicUmalquraCalendar;case"japanese":return new l.JapaneseCalendar;case"persian":return new s.PersianCalendar;case"roc":return new d.TaiwanCalendar;case"gregory":default:return new i.GregorianCalendar}}exports.createCalendar=u;