@okam/stack-ui 1.35.7 → 1.36.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 (652) hide show
  1. package/components/Lightbox/hooks/overlay/index.d.ts +4 -4
  2. package/components/TabList/components/Tab.d.ts +4 -0
  3. package/components/TabList/components/TabItem.d.ts +4 -0
  4. package/components/TabList/components/TabPanel.d.ts +4 -0
  5. package/components/TabList/index.d.ts +4 -0
  6. package/components/TabList/interface.d.ts +16 -12
  7. package/helpers/mergeDefaultComponentProps.d.ts +12 -0
  8. package/index.d.ts +7 -0
  9. package/index.js +1 -1
  10. package/index.mjs +106 -96
  11. package/index10.js +1 -1
  12. package/index10.mjs +1 -1
  13. package/index100.js +1 -15
  14. package/index100.mjs +6 -71
  15. package/index101.js +12 -1
  16. package/index101.mjs +39 -6
  17. package/index102.js +1 -47
  18. package/index102.mjs +21 -94
  19. package/index103.js +1 -16
  20. package/index103.mjs +9 -21
  21. package/index104.js +7 -1
  22. package/index104.mjs +15 -38
  23. package/index105.js +15 -1
  24. package/index105.mjs +71 -48
  25. package/index106.js +1 -1
  26. package/index106.mjs +7 -23
  27. package/index107.js +41 -2
  28. package/index107.mjs +105 -21
  29. package/index108.js +47 -1
  30. package/index108.mjs +100 -61
  31. package/index109.js +16 -1
  32. package/index109.mjs +24 -28
  33. package/index11.js +1 -1
  34. package/index11.mjs +3 -3
  35. package/index110.js +1 -1
  36. package/index110.mjs +42 -52
  37. package/index111.js +1 -1
  38. package/index111.mjs +48 -4
  39. package/index112.js +1 -1
  40. package/index112.mjs +23 -11
  41. package/index113.js +2 -1
  42. package/index113.mjs +22 -14
  43. package/index114.js +1 -1
  44. package/index114.mjs +58 -33
  45. package/index115.js +1 -1
  46. package/index115.mjs +26 -20
  47. package/index116.js +1 -1
  48. package/index116.mjs +52 -44
  49. package/index117.js +1 -1
  50. package/index117.mjs +4 -20
  51. package/index118.js +1 -1
  52. package/index118.mjs +11 -38
  53. package/index119.js +1 -1
  54. package/index119.mjs +14 -16
  55. package/index12.js +1 -1
  56. package/index12.mjs +1 -1
  57. package/index120.js +1 -1
  58. package/index120.mjs +37 -240
  59. package/index121.js +1 -2
  60. package/index121.mjs +22 -12
  61. package/index122.js +1 -2
  62. package/index122.mjs +44 -39
  63. package/index123.js +1 -1
  64. package/index123.mjs +20 -11
  65. package/index124.js +1 -1
  66. package/index124.mjs +35 -36
  67. package/index125.js +1 -1
  68. package/index125.mjs +15 -8
  69. package/index126.js +1 -1
  70. package/index126.mjs +237 -19
  71. package/index127.js +2 -1
  72. package/index127.mjs +12 -42
  73. package/index128.js +2 -1
  74. package/index128.mjs +39 -26
  75. package/index129.js +1 -1
  76. package/index129.mjs +11 -41
  77. package/index13.js +1 -1
  78. package/index13.mjs +1 -1
  79. package/index130.js +1 -2
  80. package/index130.mjs +38 -57
  81. package/index131.js +1 -1
  82. package/index131.mjs +9 -39
  83. package/index132.js +1 -1
  84. package/index132.mjs +23 -31
  85. package/index133.js +1 -1
  86. package/index133.mjs +42 -19
  87. package/index134.js +1 -1
  88. package/index134.mjs +26 -9
  89. package/index135.js +1 -1
  90. package/index135.mjs +40 -29
  91. package/index136.js +2 -1
  92. package/index136.mjs +57 -14
  93. package/index137.js +1 -1
  94. package/index137.mjs +37 -15
  95. package/index138.js +1 -1
  96. package/index138.mjs +31 -21
  97. package/index139.js +1 -2
  98. package/index139.mjs +17 -45
  99. package/index14.js +1 -1
  100. package/index14.mjs +4 -4
  101. package/index140.js +1 -2
  102. package/index140.mjs +9 -22
  103. package/index141.js +1 -1
  104. package/index141.mjs +29 -20
  105. package/index142.js +1 -1
  106. package/index142.mjs +14 -5
  107. package/index143.js +1 -1
  108. package/index143.mjs +16 -11
  109. package/index144.js +2 -1
  110. package/index144.mjs +48 -57
  111. package/index145.js +1 -1
  112. package/index145.mjs +37 -11
  113. package/index146.js +1 -1
  114. package/index146.mjs +29 -46
  115. package/index147.js +1 -2
  116. package/index147.mjs +22 -13
  117. package/index148.js +1 -1
  118. package/index148.mjs +36 -30
  119. package/index149.js +2 -1
  120. package/index149.mjs +21 -5
  121. package/index15.js +1 -1
  122. package/index15.mjs +1 -1
  123. package/index150.js +1 -2
  124. package/index150.mjs +20 -49
  125. package/index151.js +1 -1
  126. package/index151.mjs +6 -22
  127. package/index152.js +1 -1
  128. package/index152.mjs +12 -126
  129. package/index153.js +1 -1
  130. package/index153.mjs +46 -28
  131. package/index154.js +2 -1
  132. package/index154.mjs +13 -74
  133. package/index155.js +1 -1
  134. package/index155.mjs +28 -380
  135. package/index156.js +1 -1
  136. package/index156.mjs +56 -46
  137. package/index157.js +1 -1
  138. package/index157.mjs +12 -4
  139. package/index158.js +1 -1
  140. package/index158.mjs +5 -24
  141. package/index159.js +2 -1
  142. package/index159.mjs +48 -46
  143. package/index16.js +1 -1
  144. package/index16.mjs +3 -3
  145. package/index160.js +1 -1
  146. package/index160.mjs +124 -4
  147. package/index161.js +1 -1
  148. package/index161.mjs +27 -24
  149. package/index162.js +1 -1
  150. package/index162.mjs +72 -11
  151. package/index163.js +1 -1
  152. package/index163.mjs +381 -4
  153. package/index164.js +1 -1
  154. package/index164.mjs +46 -14
  155. package/index165.js +1 -1
  156. package/index165.mjs +4 -22
  157. package/index166.js +1 -1
  158. package/index166.mjs +23 -41
  159. package/index167.js +1 -1
  160. package/index167.mjs +47 -24
  161. package/index168.js +1 -1
  162. package/index168.mjs +5 -42
  163. package/index169.js +1 -1
  164. package/index169.mjs +22 -26
  165. package/index17.js +1 -1
  166. package/index17.mjs +6 -6
  167. package/index170.js +1 -1
  168. package/index170.mjs +12 -31
  169. package/index171.js +1 -1
  170. package/index171.mjs +4 -14
  171. package/index172.js +1 -1
  172. package/index172.mjs +13 -27
  173. package/index173.js +1 -1
  174. package/index173.mjs +21 -9
  175. package/index174.js +1 -1
  176. package/index174.mjs +42 -6
  177. package/index175.js +1 -1
  178. package/index175.mjs +57 -5
  179. package/index176.js +1 -1
  180. package/index176.mjs +41 -13
  181. package/index177.js +1 -1
  182. package/index177.mjs +27 -7
  183. package/index178.js +1 -1
  184. package/index178.mjs +29 -15
  185. package/index179.js +1 -1
  186. package/index179.mjs +14 -19
  187. package/index18.js +1 -1
  188. package/index18.mjs +22 -21
  189. package/index180.js +1 -1
  190. package/index180.mjs +10 -54
  191. package/index181.js +1 -1
  192. package/index181.mjs +27 -123
  193. package/index182.js +1 -1
  194. package/index182.mjs +9 -134
  195. package/index183.js +1 -1
  196. package/index183.mjs +6 -44
  197. package/index184.js +1 -1
  198. package/index184.mjs +5 -14
  199. package/index185.js +1 -1
  200. package/index185.mjs +7 -95
  201. package/index186.js +1 -1
  202. package/index186.mjs +28 -105
  203. package/index187.js +1 -1
  204. package/index187.mjs +18 -4
  205. package/index188.js +1 -1
  206. package/index188.mjs +13 -3
  207. package/index189.js +1 -1
  208. package/index189.mjs +38 -120
  209. package/index19.js +1 -1
  210. package/index19.mjs +2 -2
  211. package/index190.js +1 -1
  212. package/index190.mjs +7 -28
  213. package/index191.js +1 -1
  214. package/index191.mjs +17 -51
  215. package/index192.js +1 -1
  216. package/index192.mjs +3 -45
  217. package/index193.js +1 -1
  218. package/index193.mjs +4 -37
  219. package/index194.js +1 -1
  220. package/index194.mjs +19 -113
  221. package/index195.js +1 -1
  222. package/index195.mjs +54 -77
  223. package/index196.js +1 -1
  224. package/index196.mjs +137 -98
  225. package/index197.js +1 -1
  226. package/index197.mjs +198 -98
  227. package/index198.js +1 -1
  228. package/index198.mjs +18 -136
  229. package/index199.js +1 -1
  230. package/index199.mjs +45 -193
  231. package/index2.js +1 -1
  232. package/index2.mjs +35 -33
  233. package/index20.js +1 -1
  234. package/index20.mjs +3 -3
  235. package/index200.js +1 -1
  236. package/index200.mjs +46 -20
  237. package/index201.js +1 -1
  238. package/index201.mjs +91 -43
  239. package/index202.js +1 -1
  240. package/index202.mjs +72 -49
  241. package/index203.js +1 -1
  242. package/index203.mjs +63 -92
  243. package/index204.js +1 -1
  244. package/index204.mjs +8 -72
  245. package/index205.js +1 -1
  246. package/index205.mjs +10 -67
  247. package/index206.js +1 -1
  248. package/index206.mjs +124 -7
  249. package/index207.js +1 -1
  250. package/index207.mjs +133 -10
  251. package/index208.js +1 -1
  252. package/index208.mjs +43 -202
  253. package/index209.js +1 -1
  254. package/index209.mjs +14 -64
  255. package/index21.js +1 -1
  256. package/index21.mjs +2 -2
  257. package/index210.js +1 -1
  258. package/index210.mjs +86 -134
  259. package/index211.js +1 -1
  260. package/index211.mjs +102 -120
  261. package/index212.js +1 -1
  262. package/index212.mjs +4 -224
  263. package/index213.js +1 -1
  264. package/index213.mjs +3 -190
  265. package/index214.js +1 -1
  266. package/index214.mjs +123 -67
  267. package/index215.js +1 -1
  268. package/index215.mjs +23 -273
  269. package/index216.js +1 -1
  270. package/index216.mjs +46 -93
  271. package/index217.js +1 -1
  272. package/index217.mjs +43 -187
  273. package/index218.js +1 -1
  274. package/index218.mjs +36 -83
  275. package/index219.js +1 -1
  276. package/index219.mjs +109 -54
  277. package/index22.js +1 -1
  278. package/index22.mjs +2 -2
  279. package/index220.js +1 -1
  280. package/index220.mjs +76 -125
  281. package/index221.js +1 -1
  282. package/index221.mjs +101 -116
  283. package/index222.js +1 -1
  284. package/index222.mjs +98 -123
  285. package/index223.js +1 -1
  286. package/index223.mjs +195 -64
  287. package/index224.js +1 -1
  288. package/index224.mjs +60 -106
  289. package/index225.js +1 -1
  290. package/index225.mjs +138 -47
  291. package/index226.js +1 -1
  292. package/index226.mjs +119 -88
  293. package/index227.js +1 -1
  294. package/index227.mjs +218 -64
  295. package/index228.js +1 -1
  296. package/index228.mjs +187 -53
  297. package/index229.js +1 -1
  298. package/index229.mjs +63 -93
  299. package/index23.js +1 -1
  300. package/index23.mjs +2 -2
  301. package/index230.js +1 -5
  302. package/index230.mjs +274 -75
  303. package/index231.js +1 -1
  304. package/index231.mjs +90 -2017
  305. package/index232.js +1 -1
  306. package/index232.mjs +186 -57
  307. package/index233.js +1 -1
  308. package/index233.mjs +82 -186
  309. package/index234.js +1 -1
  310. package/index234.mjs +58 -3
  311. package/index235.js +1 -1
  312. package/index235.mjs +126 -4
  313. package/index236.js +1 -1
  314. package/index236.mjs +117 -5
  315. package/index237.js +1 -1
  316. package/index237.mjs +123 -5
  317. package/index238.js +1 -1
  318. package/index238.mjs +73 -5
  319. package/index239.js +1 -1
  320. package/index239.mjs +111 -5
  321. package/index24.js +1 -1
  322. package/index24.mjs +3 -3
  323. package/index240.js +1 -1
  324. package/index240.mjs +53 -5
  325. package/index241.js +1 -1
  326. package/index241.mjs +94 -5
  327. package/index242.js +1 -1
  328. package/index242.mjs +71 -5
  329. package/index243.js +1 -1
  330. package/index243.mjs +57 -5
  331. package/index244.js +1 -1
  332. package/index244.mjs +100 -5
  333. package/index245.js +5 -1
  334. package/index245.mjs +81 -5
  335. package/index246.js +1 -1
  336. package/index246.mjs +2025 -4
  337. package/index247.js +1 -1
  338. package/index247.mjs +59 -4
  339. package/index248.js +1 -1
  340. package/index248.mjs +189 -5
  341. package/index249.js +1 -1
  342. package/index249.mjs +6 -5
  343. package/index25.js +1 -1
  344. package/index25.mjs +2 -2
  345. package/index250.js +1 -1
  346. package/index250.mjs +122 -5
  347. package/index251.js +1 -1
  348. package/index251.mjs +44 -5
  349. package/index252.js +1 -1
  350. package/index252.mjs +231 -5
  351. package/index253.js +1 -1
  352. package/index253.mjs +32 -5
  353. package/index254.js +1 -1
  354. package/index254.mjs +4 -5
  355. package/index255.js +1 -1
  356. package/index255.mjs +4 -4
  357. package/index256.js +1 -1
  358. package/index256.mjs +4 -4
  359. package/index257.js +1 -1
  360. package/index257.mjs +1 -1
  361. package/index258.js +1 -1
  362. package/index258.mjs +4 -4
  363. package/index259.js +1 -1
  364. package/index259.mjs +4 -4
  365. package/index26.js +1 -1
  366. package/index26.mjs +2 -2
  367. package/index260.js +1 -1
  368. package/index260.mjs +4 -4
  369. package/index261.js +1 -1
  370. package/index261.mjs +4 -4
  371. package/index262.js +1 -1
  372. package/index262.mjs +1 -1
  373. package/index263.js +1 -1
  374. package/index263.mjs +4 -4
  375. package/index264.js +1 -1
  376. package/index264.mjs +4 -4
  377. package/index265.js +1 -1
  378. package/index265.mjs +4 -4
  379. package/index266.js +1 -1
  380. package/index266.mjs +4 -4
  381. package/index267.js +1 -1
  382. package/index267.mjs +4 -4
  383. package/index268.js +1 -1
  384. package/index268.mjs +4 -4
  385. package/index269.js +1 -1
  386. package/index269.mjs +1 -1
  387. package/index27.js +1 -1
  388. package/index27.mjs +1 -1
  389. package/index270.js +1 -1
  390. package/index270.mjs +4 -130
  391. package/index271.js +1 -1
  392. package/index271.mjs +5 -191
  393. package/index272.js +1 -1
  394. package/index272.mjs +5 -10
  395. package/index273.js +1 -1
  396. package/index273.mjs +5 -4
  397. package/index274.js +1 -1
  398. package/index274.mjs +5 -37
  399. package/index275.js +1 -1
  400. package/index275.mjs +5 -6
  401. package/index276.js +1 -1
  402. package/index276.mjs +5 -30
  403. package/index277.js +1 -1
  404. package/index277.mjs +5 -7
  405. package/index278.js +1 -1
  406. package/index278.mjs +4 -62
  407. package/index279.js +1 -1
  408. package/index279.mjs +5 -7
  409. package/index28.js +1 -1
  410. package/index28.mjs +3 -3
  411. package/index280.js +1 -1
  412. package/index280.mjs +5 -28
  413. package/index281.js +1 -1
  414. package/index281.mjs +5 -93
  415. package/index282.js +1 -1
  416. package/index282.mjs +5 -10
  417. package/index283.js +1 -1
  418. package/index283.mjs +5 -26
  419. package/index284.js +1 -1
  420. package/index284.mjs +5 -34
  421. package/index285.js +1 -1
  422. package/index285.mjs +5 -7
  423. package/index286.js +1 -1
  424. package/index286.mjs +5 -7
  425. package/index287.js +1 -1
  426. package/index287.mjs +5 -30
  427. package/index288.js +1 -1
  428. package/index288.mjs +5 -15
  429. package/index289.js +1 -1
  430. package/index289.mjs +4 -5
  431. package/index29.js +1 -1
  432. package/index29.mjs +3 -3
  433. package/index290.js +1 -1
  434. package/index290.mjs +130 -3
  435. package/index291.js +1 -1
  436. package/index291.mjs +190 -4
  437. package/index292.js +1 -1
  438. package/index292.mjs +9 -8
  439. package/index293.js +1 -0
  440. package/index293.mjs +6 -0
  441. package/index294.js +1 -0
  442. package/index294.mjs +39 -0
  443. package/index295.js +1 -0
  444. package/index295.mjs +8 -0
  445. package/index296.js +1 -0
  446. package/index296.mjs +32 -0
  447. package/index297.js +1 -0
  448. package/index297.mjs +9 -0
  449. package/index298.js +1 -0
  450. package/index298.mjs +65 -0
  451. package/index299.js +1 -0
  452. package/index299.mjs +9 -0
  453. package/index3.js +1 -1
  454. package/index3.mjs +1 -1
  455. package/index30.js +1 -1
  456. package/index30.mjs +3 -3
  457. package/index300.js +1 -0
  458. package/index300.mjs +30 -0
  459. package/index301.js +1 -0
  460. package/index301.mjs +95 -0
  461. package/index302.js +1 -0
  462. package/index302.mjs +12 -0
  463. package/index303.js +1 -0
  464. package/index303.mjs +28 -0
  465. package/index304.js +1 -0
  466. package/index304.mjs +36 -0
  467. package/index305.js +1 -0
  468. package/index305.mjs +9 -0
  469. package/index306.js +1 -0
  470. package/index306.mjs +9 -0
  471. package/index307.js +1 -0
  472. package/index307.mjs +53 -0
  473. package/index308.js +1 -0
  474. package/index308.mjs +32 -0
  475. package/index309.js +1 -0
  476. package/index309.mjs +17 -0
  477. package/index31.js +1 -1
  478. package/index31.mjs +3 -3
  479. package/index310.js +1 -0
  480. package/index310.mjs +24 -0
  481. package/index311.js +1 -0
  482. package/index311.mjs +32 -0
  483. package/index312.js +1 -0
  484. package/index312.mjs +69 -0
  485. package/index313.js +1 -0
  486. package/index313.mjs +56 -0
  487. package/index314.js +1 -0
  488. package/index314.mjs +57 -0
  489. package/index315.js +1 -0
  490. package/index315.mjs +284 -0
  491. package/index316.js +1 -0
  492. package/index316.mjs +23 -0
  493. package/index317.js +1 -0
  494. package/index317.mjs +6 -0
  495. package/index318.js +1 -0
  496. package/index318.mjs +7 -0
  497. package/index319.js +1 -0
  498. package/index319.mjs +11 -0
  499. package/index32.js +1 -1
  500. package/index32.mjs +2 -2
  501. package/index320.js +1 -0
  502. package/index320.mjs +8 -0
  503. package/index321.js +1 -0
  504. package/index321.mjs +33 -0
  505. package/index322.js +1 -0
  506. package/index322.mjs +170 -0
  507. package/index33.js +1 -1
  508. package/index33.mjs +1 -1
  509. package/index34.js +1 -1
  510. package/index34.mjs +4 -4
  511. package/index35.js +1 -1
  512. package/index35.mjs +2 -2
  513. package/index36.js +1 -1
  514. package/index36.mjs +1 -1
  515. package/index37.js +1 -1
  516. package/index37.mjs +2 -2
  517. package/index38.js +1 -1
  518. package/index38.mjs +3 -3
  519. package/index39.js +1 -1
  520. package/index39.mjs +1 -1
  521. package/index4.js +1 -1
  522. package/index4.mjs +3 -3
  523. package/index41.js +1 -1
  524. package/index41.mjs +1 -1
  525. package/index42.js +1 -1
  526. package/index42.mjs +1 -1
  527. package/index43.js +1 -1
  528. package/index43.mjs +1 -1
  529. package/index44.js +2 -1
  530. package/index44.mjs +50 -5
  531. package/index45.js +2 -1
  532. package/index45.mjs +41 -8
  533. package/index46.js +2 -1
  534. package/index46.mjs +29 -8
  535. package/index47.js +2 -1
  536. package/index47.mjs +20 -5
  537. package/index48.js +1 -1
  538. package/index48.mjs +3 -3
  539. package/index49.js +1 -1
  540. package/index49.mjs +7 -4
  541. package/index50.js +1 -1
  542. package/index50.mjs +7 -4
  543. package/index51.js +1 -1
  544. package/index51.mjs +4 -10
  545. package/index52.js +1 -1
  546. package/index52.mjs +4 -12
  547. package/index53.js +1 -1
  548. package/index53.mjs +4 -12
  549. package/index54.js +1 -1
  550. package/index54.mjs +5 -46
  551. package/index55.js +1 -1
  552. package/index55.mjs +11 -8
  553. package/index56.js +1 -1
  554. package/index56.mjs +12 -70
  555. package/index57.js +1 -1
  556. package/index57.mjs +13 -8
  557. package/index58.js +1 -1
  558. package/index58.mjs +45 -12
  559. package/index59.js +1 -1
  560. package/index59.mjs +8 -10
  561. package/index6.js +1 -1
  562. package/index6.mjs +1 -1
  563. package/index60.js +1 -1
  564. package/index60.mjs +65 -11
  565. package/index61.js +1 -1
  566. package/index61.mjs +8 -13
  567. package/index62.js +1 -1
  568. package/index62.mjs +10 -10
  569. package/index63.js +1 -1
  570. package/index63.mjs +9 -12
  571. package/index64.js +1 -1
  572. package/index64.mjs +17 -11
  573. package/index65.js +1 -1
  574. package/index65.mjs +9 -7
  575. package/index66.js +1 -1
  576. package/index66.mjs +5 -5
  577. package/index67.js +1 -1
  578. package/index67.mjs +12 -13
  579. package/index68.js +1 -2
  580. package/index68.mjs +10 -22
  581. package/index69.js +1 -2
  582. package/index69.mjs +10 -16
  583. package/index7.js +1 -1
  584. package/index7.mjs +1 -1
  585. package/index70.js +1 -2
  586. package/index70.mjs +13 -15
  587. package/index71.js +1 -2
  588. package/index71.mjs +13 -41
  589. package/index72.js +1 -1
  590. package/index72.mjs +21 -37
  591. package/index73.js +1 -1
  592. package/index73.mjs +15 -11
  593. package/index74.js +1 -1
  594. package/index74.mjs +13 -10
  595. package/index75.js +1 -1
  596. package/index75.mjs +39 -12
  597. package/index76.js +1 -1
  598. package/index76.mjs +37 -10
  599. package/index77.js +1 -1
  600. package/index77.mjs +11 -29
  601. package/index78.js +2 -1
  602. package/index78.mjs +12 -2
  603. package/index79.js +1 -1
  604. package/index79.mjs +14 -8
  605. package/index8.js +1 -1
  606. package/index8.mjs +3 -3
  607. package/index80.js +1 -1
  608. package/index80.mjs +11 -7
  609. package/index81.js +1 -1
  610. package/index81.mjs +30 -7
  611. package/index82.js +1 -2
  612. package/index82.mjs +2 -8
  613. package/index83.js +2 -1
  614. package/index83.mjs +9 -25
  615. package/index84.js +2 -1
  616. package/index84.mjs +8 -5
  617. package/index85.js +2 -1
  618. package/index85.mjs +8 -2
  619. package/index86.js +2 -6
  620. package/index86.mjs +7 -93
  621. package/index87.js +1 -1
  622. package/index87.mjs +25 -69
  623. package/index88.js +1 -1
  624. package/index88.mjs +7 -41
  625. package/index89.js +1 -42
  626. package/index89.mjs +5 -74
  627. package/index9.js +1 -1
  628. package/index9.mjs +1 -1
  629. package/index90.js +1 -64
  630. package/index90.mjs +2 -228
  631. package/index91.js +6 -9
  632. package/index91.mjs +80 -43
  633. package/index92.js +1 -1
  634. package/index92.mjs +59 -35
  635. package/index93.js +1 -1
  636. package/index93.mjs +37 -9
  637. package/index94.js +41 -4
  638. package/index94.mjs +66 -80
  639. package/index95.js +64 -1
  640. package/index95.mjs +228 -6
  641. package/index96.js +9 -12
  642. package/index96.mjs +47 -30
  643. package/index97.js +1 -1
  644. package/index97.mjs +22 -6
  645. package/index98.js +1 -1
  646. package/index98.mjs +4 -4
  647. package/index99.js +4 -6
  648. package/index99.mjs +84 -15
  649. package/package.json +1 -1
  650. package/theme/TabList/index.d.ts +772 -0
  651. package/types/react-stately.d.ts +17 -0
  652. package/components/TabList/components/TabPanel/TabPanel.d.ts +0 -4
package/index148.mjs CHANGED
@@ -1,32 +1,38 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import { useFocusManager as y, useKeyboard as P, usePress as k } from "react-aria";
3
- import { useSwiperController as w } from "./index76.mjs";
4
- import g from "./index6.mjs";
5
- const N = (d) => {
6
- const { themeName: l, tokens: u, slides: o, activeIndex: p, index: t } = d, { controller: e } = w(), s = y(), m = t === 0 ? o.length - 1 : t - 1, c = t === o.length - 1 ? 0 : t + 1, { keyboardProps: b } = P({
7
- onKeyUp: (i) => {
8
- i.key === "ArrowLeft" && (i.preventDefault(), s == null || s.focusPrevious({ wrap: !0 }), e == null || e.slideTo(m)), i.key === "ArrowRight" && (i.preventDefault(), s == null || s.focusNext({ wrap: !0 }), e == null || e.slideTo(c));
9
- }
10
- }), { pressProps: f } = k({
11
- onPress: () => e == null ? void 0 : e.slideTo(t)
12
- }), v = o[t], n = t === p, { title: r, id: x } = v, a = r && r.length > 0;
13
- return /* @__PURE__ */ h(
14
- g,
15
- {
16
- as: "button",
17
- tabIndex: 0,
18
- role: "button",
19
- "aria-current": n ? "true" : "false",
20
- "aria-disabled": n,
21
- "aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
22
- "aria-labelledby": a ? x : void 0,
23
- ...b,
24
- ...f,
25
- themeName: `${l}.bullet`,
26
- tokens: { ...u, active: n }
27
- }
28
- );
29
- };
1
+ import { generateId as t } from "./index249.mjs";
2
+ import { mergeProps as I } from "./index123.mjs";
3
+ import { filterDOMProps as g } from "./index173.mjs";
4
+ import { useLinkProps as k } from "./index175.mjs";
5
+ import { useFocusable as S } from "@react-aria/focus";
6
+ import { useSelectableItem as v } from "./index250.mjs";
7
+ function B(b, e, d) {
8
+ let { key: s, isDisabled: c, shouldSelectOnPressUp: n } = b, { selectionManager: p, selectedKey: f } = e, r = s === f, o = c || e.isDisabled || e.selectionManager.isDisabled(s), { itemProps: i, isPressed: m } = v({
9
+ selectionManager: p,
10
+ key: s,
11
+ ref: d,
12
+ isDisabled: o,
13
+ shouldSelectOnPressUp: n,
14
+ linkBehavior: "selection"
15
+ }), u = t(e, s, "tab"), $ = t(e, s, "tabpanel"), { tabIndex: P } = i, l = e.collection.getItem(s), a = g(l == null ? void 0 : l.props, {
16
+ labelable: !0
17
+ });
18
+ delete a.id;
19
+ let x = k(l == null ? void 0 : l.props), { focusableProps: D } = S({
20
+ isDisabled: o
21
+ }, d);
22
+ return {
23
+ tabProps: I(a, D, x, i, {
24
+ id: u,
25
+ "aria-selected": r,
26
+ "aria-disabled": o || void 0,
27
+ "aria-controls": r ? $ : void 0,
28
+ tabIndex: o ? void 0 : P,
29
+ role: "tab"
30
+ }),
31
+ isSelected: r,
32
+ isDisabled: o,
33
+ isPressed: m
34
+ };
35
+ }
30
36
  export {
31
- N as default
37
+ B as useTab
32
38
  };
package/index149.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e,n){if(!e)return!1;const{minValue:t,maxValue:a}=n;return!!(t&&e.compare(t)<0||a&&e.compare(a)>0)}exports.getIsDateOutsideRange=r;
1
+ "use client";
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");function n(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);if(t===void 0)throw new Error("useCtx must be inside a Provider");return t}return[o,e.Provider]}function u(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);return t===void 0?{}:t}return[o,e.Provider]}exports.createCtxNullable=u;exports.default=n;
package/index149.mjs CHANGED
@@ -1,8 +1,24 @@
1
- function t(e, a) {
2
- if (!e) return !1;
3
- const { minValue: n, maxValue: r } = a;
4
- return !!(n && e.compare(n) < 0 || r && e.compare(r) > 0);
1
+ "use client";
2
+ import r from "react";
3
+ function u() {
4
+ const t = r.createContext(void 0);
5
+ function o() {
6
+ const e = r.useContext(t);
7
+ if (e === void 0)
8
+ throw new Error("useCtx must be inside a Provider");
9
+ return e;
10
+ }
11
+ return [o, t.Provider];
12
+ }
13
+ function c() {
14
+ const t = r.createContext(void 0);
15
+ function o() {
16
+ const e = r.useContext(t);
17
+ return e === void 0 ? {} : e;
18
+ }
19
+ return [o, t.Provider];
5
20
  }
6
21
  export {
7
- t as getIsDateOutsideRange
22
+ c as createCtxNullable,
23
+ u as default
8
24
  };
package/index15.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const h=require("react/jsx-runtime"),p=require("@react-aria/i18n"),S=require("radashi"),l=require("react-aria"),q=require("./index69.js"),y=r=>{const{as:o="time",date:s,tokens:n,customTheme:a,dateFormatterOptions:m={month:"long",day:"numeric",year:"numeric"},themeName:c="typography",...i}=r,u=l.useIsSSR(),t=new Date(s),e=p.useDateFormatter(m).format(t),d=q(c,n,a);return u||S.isEmpty(e)?null:h.jsx(o,{...i,dateTime:t.toISOString(),className:d,children:e})};module.exports=y;
2
+ "use strict";const h=require("react/jsx-runtime"),p=require("@react-aria/i18n"),S=require("radashi"),l=require("react-aria"),q=require("./index73.js"),y=r=>{const{as:o="time",date:s,tokens:n,customTheme:a,dateFormatterOptions:m={month:"long",day:"numeric",year:"numeric"},themeName:c="typography",...i}=r,u=l.useIsSSR(),t=new Date(s),e=p.useDateFormatter(m).format(t),d=q(c,n,a);return u||S.isEmpty(e)?null:h.jsx(o,{...i,dateTime:t.toISOString(),className:d,children:e})};module.exports=y;
package/index15.mjs CHANGED
@@ -3,7 +3,7 @@ import { jsx as u } from "react/jsx-runtime";
3
3
  import { useDateFormatter as d } from "@react-aria/i18n";
4
4
  import { isEmpty as h } from "radashi";
5
5
  import { useIsSSR as l } from "react-aria";
6
- import S from "./index69.mjs";
6
+ import S from "./index73.mjs";
7
7
  const F = (o) => {
8
8
  const {
9
9
  as: m = "time",
package/index150.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";const o=require("react/jsx-runtime"),c=require("./index183.js"),O=require("@react-aria/focus"),W=require("./index117.js"),$=require("react"),q=require("react-aria"),r=require("./index27.js");function v(l){const{themeName:a="calendar",tokens:g,state:n,date:s}=l,d=$.useRef(null),{isUnavailable:k,cellProps:x,buttonProps:y,isSelected:t,isOutsideVisibleRange:u,isDisabled:b,formattedDate:C,isInvalid:S}=q.useCalendarCell(l,n,d),e=n==null?void 0:n.highlightedRange,h=e==null?void 0:e.start,m=e==null?void 0:e.end,f=e&&h?c.isSameDay(s,h):t,R=e&&m?c.isSameDay(s,m):t,{locale:P}=q.useLocale(),D=c.getDayOfWeek(s,P),j=t&&(f||D===0||s.day===1),p=t&&(R||D===6||s.day===s.calendar.getDaysInMonth(s)),{focusProps:N,isFocusVisible:F}=O.useFocusRing(),i={isInvalid:S,isDisabled:b,isUnavailable:k,isSelected:t,isFocusVisible:F,isOutsideVisibleRange:u,...g};return o.jsx(r.default,{as:"td",...x,"aria-disabled":!1,themeName:`${a}.cellContainer`,tokens:i,children:o.jsx(r.BoxWithForwardRef,{...W.mergeProps(y,N),ref:d,"aria-hidden":u,themeName:`${a}.cell`,tokens:{...i,isRoundedLeft:j,isRoundedRight:p},children:o.jsx(r.default,{themeName:`${a}.cellDate`,tokens:{...i,isSelectionStart:f,isSelectionEnd:R},children:C})})})}module.exports=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class n{constructor(t,s,e){this.nameSpace="[STACK]",this.suppressConsole=!1,this.env=process.env.NODE_ENV,this.nameSpace=t??this.nameSpace,this.suppressConsole=e??this.suppressConsole,this.logger=s??this.internalLogger}internalLogger(t,s,e){this.env!=="production"&&console[s||"log"](`${this.nameSpace} ${t}`.trimStart(),e??"")}setLogger(t){this.logger=(s,e,i)=>{this.suppressConsole&&this.internalLogger(s,e,i),t(s,e,i)}}static getInstance(){return n.instance||(n.instance=new n),n.instance}log(t,s,e){this.logger(t,s,e)}}n.getInstance();exports.Logger=n;
package/index150.mjs CHANGED
@@ -1,52 +1,23 @@
1
- "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { isSameDay as p, getDayOfWeek as O } from "./index183.mjs";
4
- import { useFocusRing as W } from "@react-aria/focus";
5
- import { mergeProps as v } from "./index117.mjs";
6
- import { useRef as B } from "react";
7
- import { useCalendarCell as I, useLocale as L } from "react-aria";
8
- import $, { BoxWithForwardRef as V } from "./index27.mjs";
9
- function z(c) {
10
- const { themeName: a = "calendar", tokens: b, state: s, date: t } = c, l = B(null), {
11
- isUnavailable: D,
12
- cellProps: R,
13
- buttonProps: k,
14
- isSelected: o,
15
- isOutsideVisibleRange: r,
16
- isDisabled: x,
17
- formattedDate: g,
18
- isInvalid: y
19
- } = I(c, s, l), e = s == null ? void 0 : s.highlightedRange, d = e == null ? void 0 : e.start, f = e == null ? void 0 : e.end, m = e && d ? p(t, d) : o, u = e && f ? p(t, f) : o, { locale: C } = L(), h = O(t, C), S = o && (m || h === 0 || t.day === 1), N = o && (u || h === 6 || t.day === t.calendar.getDaysInMonth(t)), { focusProps: P, isFocusVisible: F } = W(), n = {
20
- isInvalid: y,
21
- isDisabled: x,
22
- isUnavailable: D,
23
- isSelected: o,
24
- isFocusVisible: F,
25
- isOutsideVisibleRange: r,
26
- ...b
27
- };
28
- return /* @__PURE__ */ i(
29
- $,
30
- {
31
- as: "td",
32
- ...R,
33
- "aria-disabled": !1,
34
- themeName: `${a}.cellContainer`,
35
- tokens: n,
36
- children: /* @__PURE__ */ i(
37
- V,
38
- {
39
- ...v(k, P),
40
- ref: l,
41
- "aria-hidden": r,
42
- themeName: `${a}.cell`,
43
- tokens: { ...n, isRoundedLeft: S, isRoundedRight: N },
44
- children: /* @__PURE__ */ i($, { themeName: `${a}.cellDate`, tokens: { ...n, isSelectionStart: m, isSelectionEnd: u }, children: g })
45
- }
46
- )
47
- }
48
- );
1
+ class n {
2
+ constructor(t, s, e) {
3
+ this.nameSpace = "[STACK]", this.suppressConsole = !1, this.env = process.env.NODE_ENV, this.nameSpace = t ?? this.nameSpace, this.suppressConsole = e ?? this.suppressConsole, this.logger = s ?? this.internalLogger;
4
+ }
5
+ internalLogger(t, s, e) {
6
+ this.env !== "production" && console[s || "log"](`${this.nameSpace} ${t}`.trimStart(), e ?? "");
7
+ }
8
+ setLogger(t) {
9
+ this.logger = (s, e, i) => {
10
+ this.suppressConsole && this.internalLogger(s, e, i), t(s, e, i);
11
+ };
12
+ }
13
+ static getInstance() {
14
+ return n.instance || (n.instance = new n()), n.instance;
15
+ }
16
+ log(t, s, e) {
17
+ this.logger(t, s, e);
18
+ }
49
19
  }
20
+ n.getInstance();
50
21
  export {
51
- z as default
22
+ n as Logger
52
23
  };
package/index151.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index289.js"),o=require("./index117.js"),u=require("./index171.js"),s=require("@react-aria/focus");function c(a,e,d){let l=s.useHasTabbableChild(d)?void 0:0;var r;const n=i.generateId(e,(r=a.id)!==null&&r!==void 0?r:e==null?void 0:e.selectedKey,"tabpanel"),b=u.useLabels({...a,id:n,"aria-labelledby":i.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:o.mergeProps(b,{tabIndex:l,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=c;
1
+ "use strict";const t=require("./index150.js"),i=(o,r,g=!1)=>{const e=new t.Logger(o,r,g);return e.log("Logger initialized","info"),e};module.exports=i;
package/index151.mjs CHANGED
@@ -1,24 +1,8 @@
1
- import { generateId as r } from "./index289.mjs";
2
- import { mergeProps as n } from "./index117.mjs";
3
- import { useLabels as c } from "./index171.mjs";
4
- import { useHasTabbableChild as f } from "@react-aria/focus";
5
- function m(a, e, b) {
6
- let i = f(b) ? void 0 : 0;
7
- var d;
8
- const l = r(e, (d = a.id) !== null && d !== void 0 ? d : e == null ? void 0 : e.selectedKey, "tabpanel"), o = c({
9
- ...a,
10
- id: l,
11
- "aria-labelledby": r(e, e == null ? void 0 : e.selectedKey, "tab")
12
- });
13
- return {
14
- tabPanelProps: n(o, {
15
- tabIndex: i,
16
- role: "tabpanel",
17
- "aria-describedby": a["aria-describedby"],
18
- "aria-details": a["aria-details"]
19
- })
20
- };
21
- }
1
+ import { Logger as t } from "./index150.mjs";
2
+ const n = (o, r, g = !1) => {
3
+ const e = new t(o, r, g);
4
+ return e.log("Logger initialized", "info"), e;
5
+ };
22
6
  export {
23
- m as useTabPanel
7
+ n as default
24
8
  };
package/index152.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),v={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},x={...v,customError:!0,valid:!1},c={isInvalid:!1,validationDetails:v,validationErrors:[]},h=n.createContext({}),I="__formValidationState"+Date.now();function R(e){if(e[I]){let{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}=e[I];return{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}}return w(e)}function w(e){let{isInvalid:a,validationState:t,name:i,value:d,builtinValidation:l,validate:s,validationBehavior:o="aria"}=e;t&&(a||(a=t==="invalid"));let V=a!==void 0?{isInvalid:a,validationErrors:[],validationDetails:x}:null,m=n.useMemo(()=>{if(!s||d==null)return null;let r=F(s,d);return T(r)},[s,d]);l!=null&&l.validationDetails.valid&&(l=void 0);let u=n.useContext(h),A=n.useMemo(()=>i?Array.isArray(i)?i.flatMap(r=>D(u[r])):D(u[i]):[],[u,i]),[C,L]=n.useState(u),[g,$]=n.useState(!1);u!==C&&(L(u),$(!1));let b=n.useMemo(()=>T(g?[]:A),[g,A]),M=n.useRef(c),[E,p]=n.useState(c),f=n.useRef(c),_=()=>{if(!O)return;S(!1);let r=m||l||M.current;y(r,f.current)||(f.current=r,p(r))},[O,S]=n.useState(!1);return n.useEffect(_),{realtimeValidation:V||b||m||l||c,displayValidation:o==="native"?V||b||E:V||b||m||l||E,updateValidation(r){o==="aria"&&!y(E,r)?p(r):M.current=r},resetValidation(){let r=c;y(r,f.current)||(f.current=r,p(r)),o==="native"&&S(!1),$(!0)},commitValidation(){o==="native"&&S(!0),$(!0)}}}function D(e){return e?Array.isArray(e)?e:[e]:[]}function F(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return D(t)}return[]}function T(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:x}:null}function y(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,i)=>t===a.validationErrors[i])&&Object.entries(e.validationDetails).every(([t,i])=>a.validationDetails[t]===i)}function U(...e){let a=new Set,t=!1,i={...v};for(let s of e){var d,l;for(let o of s.validationErrors)a.add(o);t||(t=s.isInvalid);for(let o in i)(d=i)[l=o]||(d[l]=s.validationDetails[o])}return i.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:i}}exports.DEFAULT_VALIDATION_RESULT=c;exports.FormValidationContext=h;exports.VALID_VALIDITY_STATE=v;exports.mergeValidation=U;exports.privateValidationStateProp=I;exports.useFormValidationState=R;
1
+ "use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index73.js"),u=t=>{const{isVisible:o,children:i,themeName:n,tokens:r,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=g(n,r,s);return d((c,p)=>p&&T.jsx(e.animated.div,{...a,style:c,className:m,children:i}))};module.exports=u;
package/index152.mjs CHANGED
@@ -1,128 +1,14 @@
1
- import { createContext as O, useMemo as I, useContext as U, useState as f, useRef as T, useEffect as R } from "react";
2
- const D = {
3
- badInput: !1,
4
- customError: !1,
5
- patternMismatch: !1,
6
- rangeOverflow: !1,
7
- rangeUnderflow: !1,
8
- stepMismatch: !1,
9
- tooLong: !1,
10
- tooShort: !1,
11
- typeMismatch: !1,
12
- valueMissing: !1,
13
- valid: !0
14
- }, L = {
15
- ...D,
16
- customError: !0,
17
- valid: !1
18
- }, u = {
19
- isInvalid: !1,
20
- validationDetails: D,
21
- validationErrors: []
22
- }, B = O({}), h = "__formValidationState" + Date.now();
23
- function P(a) {
24
- if (a[h]) {
25
- let { realtimeValidation: e, displayValidation: t, updateValidation: i, resetValidation: o, commitValidation: l } = a[h];
26
- return {
27
- realtimeValidation: e,
28
- displayValidation: t,
29
- updateValidation: i,
30
- resetValidation: o,
31
- commitValidation: l
32
- };
33
- }
34
- return Q(a);
35
- }
36
- function Q(a) {
37
- let { isInvalid: e, validationState: t, name: i, value: o, builtinValidation: l, validate: d, validationBehavior: n = "aria" } = a;
38
- t && (e || (e = t === "invalid"));
39
- let v = e !== void 0 ? {
40
- isInvalid: e,
41
- validationErrors: [],
42
- validationDetails: L
43
- } : null, V = I(() => {
44
- if (!d || o == null) return null;
45
- let r = Y(d, o);
46
- return C(r);
47
- }, [
48
- d,
49
- o
50
- ]);
51
- l != null && l.validationDetails.valid && (l = void 0);
52
- let s = U(B), A = I(() => i ? Array.isArray(i) ? i.flatMap((r) => S(s[r])) : S(s[i]) : [], [
53
- s,
54
- i
55
- ]), [M, _] = f(s), [x, m] = f(!1);
56
- s !== M && (_(s), m(!1));
57
- let $ = I(() => C(x ? [] : A), [
58
- x,
59
- A
60
- ]), g = T(u), [b, E] = f(u), c = T(u), w = () => {
61
- if (!F) return;
62
- p(!1);
63
- let r = V || l || g.current;
64
- y(r, c.current) || (c.current = r, E(r));
65
- }, [F, p] = f(!1);
66
- return R(w), {
67
- realtimeValidation: v || $ || V || l || u,
68
- displayValidation: n === "native" ? v || $ || b : v || $ || V || l || b,
69
- updateValidation(r) {
70
- n === "aria" && !y(b, r) ? E(r) : g.current = r;
71
- },
72
- resetValidation() {
73
- let r = u;
74
- y(r, c.current) || (c.current = r, E(r)), n === "native" && p(!1), m(!0);
75
- },
76
- commitValidation() {
77
- n === "native" && p(!0), m(!0);
78
- }
79
- };
80
- }
81
- function S(a) {
82
- return a ? Array.isArray(a) ? a : [
83
- a
84
- ] : [];
85
- }
86
- function Y(a, e) {
87
- if (typeof a == "function") {
88
- let t = a(e);
89
- if (t && typeof t != "boolean") return S(t);
90
- }
91
- return [];
92
- }
93
- function C(a) {
94
- return a.length ? {
95
- isInvalid: !0,
96
- validationErrors: a,
97
- validationDetails: L
98
- } : null;
99
- }
100
- function y(a, e) {
101
- return a === e ? !0 : !!a && !!e && a.isInvalid === e.isInvalid && a.validationErrors.length === e.validationErrors.length && a.validationErrors.every((t, i) => t === e.validationErrors[i]) && Object.entries(a.validationDetails).every(([t, i]) => e.validationDetails[t] === i);
102
- }
103
- function k(...a) {
104
- let e = /* @__PURE__ */ new Set(), t = !1, i = {
105
- ...D
106
- };
107
- for (let d of a) {
108
- var o, l;
109
- for (let n of d.validationErrors) e.add(n);
110
- t || (t = d.isInvalid);
111
- for (let n in i) (o = i)[l = n] || (o[l] = d.validationDetails[n]);
112
- }
113
- return i.valid = !t, {
114
- isInvalid: t,
115
- validationErrors: [
116
- ...e
117
- ],
118
- validationDetails: i
119
- };
120
- }
1
+ import { jsx as T } from "react/jsx-runtime";
2
+ import { useTransition as c, animated as g } from "@react-spring/web";
3
+ import l from "./index73.mjs";
4
+ const w = (e) => {
5
+ const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
+ from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
7
+ enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
8
+ leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
9
+ }), a = l(r, i, n);
10
+ return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
11
+ };
121
12
  export {
122
- u as DEFAULT_VALIDATION_RESULT,
123
- B as FormValidationContext,
124
- D as VALID_VALIDITY_STATE,
125
- k as mergeValidation,
126
- h as privateValidationStateProp,
127
- P as useFormValidationState
13
+ w as default
128
14
  };
package/index153.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function m(o,p,s){let[b,u]=l.useState(o||p),i=l.useRef(o!==void 0),e=o!==void 0;l.useEffect(()=>{let t=i.current;t!==e&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${e?"controlled":"uncontrolled"}.`),i.current=e},[e]);let n=e?o:b,S=l.useCallback((t,...f)=>{let d=(r,...c)=>{s&&(Object.is(n,r)||s(r,...c)),e||(n=r)};typeof t=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),u((c,...V)=>{let a=t(e?n:c,...V);return d(a,...f),e?c:a})):(e||u(t),d(t,...f))},[e,n,s]);return[n,S]}exports.useControlledState=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index223.js"),r=require("./index224.js"),t=require("./index225.js"),o=require("./index226.js"),i=require("./index227.js"),a=require("./index228.js"),c=require("./index229.js"),n=require("./index230.js"),u=require("./index231.js"),s=require("./index232.js"),f=require("./index233.js"),l=require("./index234.js"),q=require("./index235.js"),d=require("./index236.js"),b=require("./index237.js"),v=require("./index238.js"),y=require("./index239.js"),g=require("./index240.js"),p=require("./index241.js"),C=require("./index242.js"),h=require("./index243.js"),m=require("./index244.js"),E=require("./index245.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
package/index153.mjs CHANGED
@@ -1,30 +1,48 @@
1
- import { useState as V, useRef as C, useEffect as E, useCallback as N } from "react";
2
- function S(n, a, l) {
3
- let [p, s] = V(n || a), i = C(n !== void 0), e = n !== void 0;
4
- E(() => {
5
- let t = i.current;
6
- t !== e && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${t ? "controlled" : "uncontrolled"} to ${e ? "controlled" : "uncontrolled"}.`), i.current = e;
7
- }, [
8
- e
9
- ]);
10
- let o = e ? n : p, b = N((t, ...u) => {
11
- let f = (r, ...c) => {
12
- l && (Object.is(o, r) || l(r, ...c)), e || (o = r);
13
- };
14
- typeof t == "function" ? (process.env.NODE_ENV !== "production" && console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), s((c, ...m) => {
15
- let d = t(e ? o : c, ...m);
16
- return f(d, ...u), e ? c : d;
17
- })) : (e || s(t), f(t, ...u));
18
- }, [
19
- e,
20
- o,
21
- l
22
- ]);
23
- return [
24
- o,
25
- b
26
- ];
27
- }
1
+ import { default as o } from "./index223.mjs";
2
+ import { default as f } from "./index224.mjs";
3
+ import { default as l } from "./index225.mjs";
4
+ import { default as d } from "./index226.mjs";
5
+ import { default as p } from "./index227.mjs";
6
+ import { default as x } from "./index228.mjs";
7
+ import { default as c } from "./index229.mjs";
8
+ import { default as E } from "./index230.mjs";
9
+ import { default as b } from "./index231.mjs";
10
+ import { default as y } from "./index232.mjs";
11
+ import { default as h } from "./index233.mjs";
12
+ import { default as M } from "./index234.mjs";
13
+ import { default as A } from "./index235.mjs";
14
+ import { default as N } from "./index236.mjs";
15
+ import { default as G } from "./index237.mjs";
16
+ import { default as S } from "./index238.mjs";
17
+ import { default as V } from "./index239.mjs";
18
+ import { default as j } from "./index240.mjs";
19
+ import { default as q } from "./index241.mjs";
20
+ import { default as B } from "./index242.mjs";
21
+ import { default as I } from "./index243.mjs";
22
+ import { default as L } from "./index244.mjs";
23
+ import { default as Q } from "./index245.mjs";
28
24
  export {
29
- S as useControlledState
25
+ y as A11y,
26
+ A as Autoplay,
27
+ b as Controller,
28
+ Q as EffectCards,
29
+ I as EffectCoverflow,
30
+ L as EffectCreative,
31
+ q as EffectCube,
32
+ j as EffectFade,
33
+ B as EffectFlip,
34
+ G as FreeMode,
35
+ S as Grid,
36
+ M as HashNavigation,
37
+ h as History,
38
+ f as Keyboard,
39
+ V as Manipulation,
40
+ l as Mousewheel,
41
+ d as Navigation,
42
+ p as Pagination,
43
+ c as Parallax,
44
+ x as Scrollbar,
45
+ N as Thumbs,
46
+ o as Virtual,
47
+ E as Zoom
30
48
  };
package/index154.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index278.js"),f=require("react"),E=require("./index157.js"),v=require("./index176.js");function g(i,e,t){let{validationBehavior:s,focus:u}=i;E.useLayoutEffect(()=>{if(s==="native"&&(t!=null&&t.current)&&!t.current.disabled){let n=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(n),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(h(t.current))}});let o=v.useEffectEvent(()=>{e.resetValidation()}),l=v.useEffectEvent(n=>{var a;e.displayValidation.isInvalid||e.commitValidation();let c=t==null||(a=t.current)===null||a===void 0?void 0:a.form;if(!n.defaultPrevented&&t&&c&&b(c)===t.current){var d;u?u():(d=t.current)===null||d===void 0||d.focus(),m.setInteractionModality("keyboard")}n.preventDefault()}),r=v.useEffectEvent(()=>{e.commitValidation()});f.useEffect(()=>{let n=t==null?void 0:t.current;if(!n)return;let a=n.form;return n.addEventListener("invalid",l),n.addEventListener("change",r),a==null||a.addEventListener("reset",o),()=>{n.removeEventListener("invalid",l),n.removeEventListener("change",r),a==null||a.removeEventListener("reset",o)}},[t,l,r,o,s])}function y(i){let e=i.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function h(i){return{isInvalid:!i.validity.valid,validationDetails:y(i),validationErrors:i.validationMessage?[i.validationMessage]:[]}}function b(i){for(let e=0;e<i.elements.length;e++){let t=i.elements[e];if(!t.validity.valid)return t}return null}exports.useFormValidation=g;
1
+ "use client";
2
+ "use strict";const n=require("react/jsx-runtime"),d=require("./index126.js"),a=require("./index27.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
package/index154.mjs CHANGED
@@ -1,76 +1,15 @@
1
- import { setInteractionModality as m } from "./index278.mjs";
2
- import { useEffect as f } from "react";
3
- import { useLayoutEffect as $ } from "./index157.mjs";
4
- import { useEffectEvent as v } from "./index176.mjs";
5
- function V(t, i, e) {
6
- let { validationBehavior: s, focus: u } = t;
7
- $(() => {
8
- if (s === "native" && (e != null && e.current) && !e.current.disabled) {
9
- let a = i.realtimeValidation.isInvalid ? i.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
10
- e.current.setCustomValidity(a), e.current.hasAttribute("title") || (e.current.title = ""), i.realtimeValidation.isInvalid || i.updateValidation(g(e.current));
11
- }
12
- });
13
- let o = v(() => {
14
- i.resetValidation();
15
- }), l = v((a) => {
16
- var n;
17
- i.displayValidation.isInvalid || i.commitValidation();
18
- let c = e == null || (n = e.current) === null || n === void 0 ? void 0 : n.form;
19
- if (!a.defaultPrevented && e && c && b(c) === e.current) {
20
- var d;
21
- u ? u() : (d = e.current) === null || d === void 0 || d.focus(), m("keyboard");
22
- }
23
- a.preventDefault();
24
- }), r = v(() => {
25
- i.commitValidation();
26
- });
27
- f(() => {
28
- let a = e == null ? void 0 : e.current;
29
- if (!a) return;
30
- let n = a.form;
31
- return a.addEventListener("invalid", l), a.addEventListener("change", r), n == null || n.addEventListener("reset", o), () => {
32
- a.removeEventListener("invalid", l), a.removeEventListener("change", r), n == null || n.removeEventListener("reset", o);
33
- };
34
- }, [
35
- e,
36
- l,
37
- r,
38
- o,
39
- s
40
- ]);
41
- }
42
- function p(t) {
43
- let i = t.validity;
44
- return {
45
- badInput: i.badInput,
46
- customError: i.customError,
47
- patternMismatch: i.patternMismatch,
48
- rangeOverflow: i.rangeOverflow,
49
- rangeUnderflow: i.rangeUnderflow,
50
- stepMismatch: i.stepMismatch,
51
- tooLong: i.tooLong,
52
- tooShort: i.tooShort,
53
- typeMismatch: i.typeMismatch,
54
- valueMissing: i.valueMissing,
55
- valid: i.valid
56
- };
57
- }
58
- function g(t) {
59
- return {
60
- isInvalid: !t.validity.valid,
61
- validationDetails: p(t),
62
- validationErrors: t.validationMessage ? [
63
- t.validationMessage
64
- ] : []
65
- };
66
- }
67
- function b(t) {
68
- for (let i = 0; i < t.elements.length; i++) {
69
- let e = t.elements[i];
70
- if (!e.validity.valid) return e;
71
- }
72
- return null;
73
- }
1
+ "use client";
2
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
3
+ import { useSwiperSlide as d } from "./index126.mjs";
4
+ import p from "./index27.mjs";
5
+ import h from "./index3.mjs";
6
+ const S = (r) => {
7
+ const { themeName: e, title: t, tokens: s, id: n, children: m } = r, { isActive: l, isVisible: o } = d(), i = { ...s, isActive: l, isVisible: o };
8
+ return /* @__PURE__ */ c(p, { themeName: `${e}.container`, tokens: i, ...o ? {} : { inert: "true" }, children: [
9
+ t && /* @__PURE__ */ a(h, { themeName: `${e}.title`, tokens: i, id: n, children: t }),
10
+ m
11
+ ] });
12
+ };
74
13
  export {
75
- V as useFormValidation
14
+ S as default
76
15
  };
package/index155.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("./index281.js"),L=require("./index284.js"),ne=require("./index279.js"),ie=require("./index285.js"),se=require("./index187.js"),G=require("./index286.js"),oe=require("./index160.js"),o=require("./index161.js"),$=require("./index162.js"),Q=require("./index117.js"),ae=require("./index166.js"),B=require("./index167.js"),le=require("./index170.js"),ue=require("./index173.js"),ce=require("./index168.js"),A=require("./index177.js"),O=require("./index176.js"),fe=require("react-dom"),M=require("react");function ge(n){let i=M.useContext(ne.PressResponderContext);if(i){let{register:l,...u}=i;n=Q.mergeProps(u,n),l()}return ue.useSyncRef(i,n.ref),n}var R=new WeakMap;class _{continuePropagation(){G._(this,R,!1)}get shouldStopPropagation(){return ie._(this,R)}constructor(i,l,u,g){se._(this,R,{writable:!0,value:void 0}),G._(this,R,!0);var P;let y=(P=g==null?void 0:g.target)!==null&&P!==void 0?P:u.currentTarget;const d=y==null?void 0:y.getBoundingClientRect();let x,b=0,I,v=null;u.clientX!=null&&u.clientY!=null&&(I=u.clientX,v=u.clientY),d&&(I!=null&&v!=null?(x=I-d.left,b=v-d.top):(x=d.width/2,b=d.height/2)),this.type=i,this.pointerType=l,this.target=u.currentTarget,this.shiftKey=u.shiftKey,this.metaKey=u.metaKey,this.ctrlKey=u.ctrlKey,this.altKey=u.altKey,this.x=x,this.y=b}}const N=Symbol("linkClicked");function pe(n){let{onPress:i,onPressChange:l,onPressStart:u,onPressEnd:g,onPressUp:P,onClick:y,isDisabled:d,isPressed:x,preventFocusOnPress:b,shouldCancelOnPointerExit:I,allowTextSelectionOnPress:v,ref:D,...ee}=ge(n),[te,V]=M.useState(!1),K=M.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:q}=le.useGlobalListeners(),h=O.useEffectEvent((e,s)=>{let p=K.current;if(d||p.didFirePressStart)return!1;let r=!0;if(p.isTriggeringEvent=!0,u){let f=new _("pressstart",s,e);u(f),r=f.shouldStopPropagation}return l&&l(!0),p.isTriggeringEvent=!1,p.didFirePressStart=!0,V(!0),r}),E=O.useEffectEvent((e,s,p=!0)=>{let r=K.current;if(!r.didFirePressStart)return!1;r.didFirePressStart=!1,r.isTriggeringEvent=!0;let f=!0;if(g){let t=new _("pressend",s,e);g(t),f=t.shouldStopPropagation}if(l&&l(!1),V(!1),i&&p&&!d){let t=new _("press",s,e);i(t),f&&(f=t.shouldStopPropagation)}return r.isTriggeringEvent=!1,f}),k=O.useEffectEvent((e,s)=>{let p=K.current;if(d)return!1;if(P){p.isTriggeringEvent=!0;let r=new _("pressup",s,e);return P(r),p.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),T=O.useEffectEvent(e=>{let s=K.current;if(s.isPressed&&s.target){s.didFirePressStart&&s.pointerType!=null&&E(w(s.target,e),s.pointerType,!1),s.isPressed=!1,s.isOverTarget=!1,s.activePointerId=null,s.pointerType=null,q(),v||L.restoreTextSelection(s.target);for(let p of s.disposables)p();s.disposables=[]}}),X=O.useEffectEvent(e=>{I&&T(e)}),F=O.useEffectEvent(e=>{y==null||y(e)}),U=O.useEffectEvent((e,s)=>{if(y){let p=new MouseEvent("click",e);Y.setEventTarget(p,s),y(Y.createSyntheticEvent(p))}}),re=M.useMemo(()=>{let e=K.current,s={onKeyDown(r){if(H(r.nativeEvent,r.currentTarget)&&o.nodeContains(r.currentTarget,o.getEventTarget(r.nativeEvent))){var f;J(o.getEventTarget(r.nativeEvent),r.key)&&r.preventDefault();let t=!0;if(!e.isPressed&&!r.repeat){e.target=r.currentTarget,e.isPressed=!0,e.pointerType="keyboard",t=h(r,"keyboard");let a=r.currentTarget,c=m=>{H(m,a)&&!m.repeat&&o.nodeContains(a,o.getEventTarget(m))&&e.target&&k(w(e.target,m),"keyboard")};C($.getOwnerDocument(r.currentTarget),"keyup",oe.chain(c,p),!0)}t&&r.stopPropagation(),r.metaKey&&ce.isMac()&&((f=e.metaKeyEvents)===null||f===void 0||f.set(r.key,r.nativeEvent))}else r.key==="Meta"&&(e.metaKeyEvents=new Map)},onClick(r){if(!(r&&!o.nodeContains(r.currentTarget,o.getEventTarget(r.nativeEvent)))&&r&&r.button===0&&!e.isTriggeringEvent&&!B.openLink.isOpening){let f=!0;if(d&&r.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType==="virtual"||A.isVirtualClick(r.nativeEvent))){let t=h(r,"virtual"),a=k(r,"virtual"),c=E(r,"virtual");F(r),f=t&&a&&c}else if(e.isPressed&&e.pointerType!=="keyboard"){let t=e.pointerType||r.nativeEvent.pointerType||"virtual";f=E(w(r.currentTarget,r),t,!0),e.isOverTarget=!1,F(r),T(r)}e.ignoreEmulatedMouseEvents=!1,f&&r.stopPropagation()}}},p=r=>{var f;if(e.isPressed&&e.target&&H(r,e.target)){var t;J(o.getEventTarget(r),r.key)&&r.preventDefault();let c=o.getEventTarget(r),m=o.nodeContains(e.target,o.getEventTarget(r));E(w(e.target,r),"keyboard",m),m&&U(r,e.target),q(),r.key!=="Enter"&&W(e.target)&&o.nodeContains(e.target,c)&&!r[N]&&(r[N]=!0,B.openLink(e.target,r,!1)),e.isPressed=!1,(t=e.metaKeyEvents)===null||t===void 0||t.delete(r.key)}else if(r.key==="Meta"&&(!((f=e.metaKeyEvents)===null||f===void 0)&&f.size)){var a;let c=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let m of c.values())(a=e.target)===null||a===void 0||a.dispatchEvent(new KeyboardEvent("keyup",m))}};if(typeof PointerEvent<"u"){s.onPointerDown=t=>{if(t.button!==0||!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;if(A.isVirtualPointerEvent(t.nativeEvent)){e.pointerType="virtual";return}e.pointerType=t.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,v||L.disableTextSelection(e.target),a=h(t,e.pointerType);let c=o.getEventTarget(t.nativeEvent);"releasePointerCapture"in c&&c.releasePointerCapture(t.pointerId),C($.getOwnerDocument(t.currentTarget),"pointerup",r,!1),C($.getOwnerDocument(t.currentTarget),"pointercancel",f,!1)}a&&t.stopPropagation()},s.onMouseDown=t=>{if(o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent))&&t.button===0){if(b){let a=Y.preventFocus(t.target);a&&e.disposables.push(a)}t.stopPropagation()}},s.onPointerUp=t=>{!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent))||e.pointerType==="virtual"||t.button===0&&k(t,e.pointerType||t.pointerType)},s.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,h(w(e.target,t),e.pointerType))},s.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,E(w(e.target,t),e.pointerType,!1),X(t))};let r=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(o.nodeContains(e.target,o.getEventTarget(t))&&e.pointerType!=null){let a=!1,c=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(a?T(t):(ae.focusWithoutScrolling(e.target),e.target.click()))},80);C(t.currentTarget,"click",()=>a=!0,!0),e.disposables.push(()=>clearTimeout(c))}else T(t);e.isOverTarget=!1}},f=t=>{T(t)};s.onDragStart=t=>{o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent))&&T(t)}}else if(process.env.NODE_ENV==="test"){s.onMouseDown=t=>{if(t.button!==0||!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;if(e.ignoreEmulatedMouseEvents){t.stopPropagation();return}if(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=A.isVirtualClick(t.nativeEvent)?"virtual":"mouse",fe.flushSync(()=>h(t,e.pointerType))&&t.stopPropagation(),b){let c=Y.preventFocus(t.target);c&&e.disposables.push(c)}C($.getOwnerDocument(t.currentTarget),"mouseup",r,!1)},s.onMouseEnter=t=>{if(!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;let a=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&e.pointerType!=null&&(e.isOverTarget=!0,a=h(t,e.pointerType)),a&&t.stopPropagation()},s.onMouseLeave=t=>{if(!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;let a=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&e.pointerType!=null&&(e.isOverTarget=!1,a=E(t,e.pointerType,!1),X(t)),a&&t.stopPropagation()},s.onMouseUp=t=>{o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent))&&!e.ignoreEmulatedMouseEvents&&t.button===0&&k(t,e.pointerType||"mouse")};let r=t=>{if(t.button===0){if(e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&e.target.contains(t.target)&&e.pointerType!=null||T(t),e.isOverTarget=!1}};s.onTouchStart=t=>{if(!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;let a=de(t.nativeEvent);if(!a)return;e.activePointerId=a.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",v||L.disableTextSelection(e.target),h(S(e.target,t),e.pointerType)&&t.stopPropagation(),C($.getOwnerWindow(t.currentTarget),"scroll",f,!0)},s.onTouchMove=t=>{if(!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;if(!e.isPressed){t.stopPropagation();return}let a=z(t.nativeEvent,e.activePointerId),c=!0;a&&j(a,t.currentTarget)?!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,c=h(S(e.target,t),e.pointerType)):e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,c=E(S(e.target,t),e.pointerType,!1),X(S(e.target,t))),c&&t.stopPropagation()},s.onTouchEnd=t=>{if(!o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent)))return;if(!e.isPressed){t.stopPropagation();return}let a=z(t.nativeEvent,e.activePointerId),c=!0;a&&j(a,t.currentTarget)&&e.pointerType!=null?(k(S(e.target,t),e.pointerType),c=E(S(e.target,t),e.pointerType),U(t.nativeEvent,e.target)):e.isOverTarget&&e.pointerType!=null&&(c=E(S(e.target,t),e.pointerType,!1)),c&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!v&&L.restoreTextSelection(e.target),q()},s.onTouchCancel=t=>{o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&T(S(e.target,t)))};let f=t=>{e.isPressed&&o.nodeContains(o.getEventTarget(t),e.target)&&T({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};s.onDragStart=t=>{o.nodeContains(t.currentTarget,o.getEventTarget(t.nativeEvent))&&T(t)}}return s},[C,d,b,q,v,T,X,E,h,k,F,U]);return M.useEffect(()=>{let e=D==null?void 0:D.current;e&&e instanceof $.getOwnerWindow(e).Element&&$.getOwnerWindow(e).getComputedStyle(e).touchAction==="auto"&&(e.style.touchAction="pan-x pan-y pinch-zoom")},[D]),M.useEffect(()=>{let e=K.current;return()=>{var s;v||L.restoreTextSelection((s=e.target)!==null&&s!==void 0?s:void 0);for(let p of e.disposables)p();e.disposables=[]}},[v]),{isPressed:x||te,pressProps:Q.mergeProps(ee,re)}}function W(n){return n.tagName==="A"&&n.hasAttribute("href")}function H(n,i){const{key:l,code:u}=n,g=i,P=g.getAttribute("role");return(l==="Enter"||l===" "||l==="Spacebar"||u==="Space")&&!(g instanceof $.getOwnerWindow(g).HTMLInputElement&&!Z(g,l)||g instanceof $.getOwnerWindow(g).HTMLTextAreaElement||g.isContentEditable)&&!((P==="link"||!P&&W(g))&&l!=="Enter")}function de(n){const{targetTouches:i}=n;return i.length>0?i[0]:null}function z(n,i){const l=n.changedTouches;for(let u=0;u<l.length;u++){const g=l[u];if(g.identifier===i)return g}return null}function S(n,i){let l=0,u=0;return i.targetTouches&&i.targetTouches.length===1&&(l=i.targetTouches[0].clientX,u=i.targetTouches[0].clientY),{currentTarget:n,shiftKey:i.shiftKey,ctrlKey:i.ctrlKey,metaKey:i.metaKey,altKey:i.altKey,clientX:l,clientY:u}}function w(n,i){let l=i.clientX,u=i.clientY;return{currentTarget:n,shiftKey:i.shiftKey,ctrlKey:i.ctrlKey,metaKey:i.metaKey,altKey:i.altKey,clientX:l,clientY:u}}function ve(n){let i=0,l=0;return n.width!==void 0?i=n.width/2:n.radiusX!==void 0&&(i=n.radiusX),n.height!==void 0?l=n.height/2:n.radiusY!==void 0&&(l=n.radiusY),{top:n.clientY-l,right:n.clientX+i,bottom:n.clientY+l,left:n.clientX-i}}function Te(n,i){return!(n.left>i.right||i.left>n.right||n.top>i.bottom||i.top>n.bottom)}function j(n,i){let l=i.getBoundingClientRect(),u=ve(n);return Te(l,u)}function Ee(n){return n instanceof HTMLInputElement?!1:n instanceof HTMLButtonElement?n.type!=="submit"&&n.type!=="reset":!W(n)}function J(n,i){return n instanceof HTMLInputElement?!Z(n,i):Ee(n)}const Pe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Z(n,i){return n.type==="checkbox"||n.type==="radio"?i===" ":Pe.has(n.type)}exports.usePress=pe;
1
+ "use strict";const P=require("react/jsx-runtime"),o=require("react-aria"),k=require("./index80.js"),m=require("./index6.js"),w=d=>{const{themeName:l,tokens:c,slides:i,activeIndex:x,index:t}=d,{controller:e}=k.useSwiperController(),s=o.useFocusManager(),p=t===0?i.length-1:t-1,b=t===i.length-1?0:t+1,{keyboardProps:v}=o.useKeyboard({onKeyUp:n=>{n.key==="ArrowLeft"&&(n.preventDefault(),s==null||s.focusPrevious({wrap:!0}),e==null||e.slideTo(p)),n.key==="ArrowRight"&&(n.preventDefault(),s==null||s.focusNext({wrap:!0}),e==null||e.slideTo(b))}}),{pressProps:h}=o.usePress({onPress:()=>e==null?void 0:e.slideTo(t)}),f=i[t],r=t===x,{title:a,id:y}=f,u=a&&a.length>0;return P.jsx(m.default,{as:"button",tabIndex:0,role:"button","aria-current":r?"true":"false","aria-disabled":r,"aria-label":u?void 0:`${t+1} / ${i.length}`,"aria-labelledby":u?y:void 0,...v,...h,themeName:`${l}.bullet`,tokens:{...c,active:r}})};module.exports=w;