@okam/stack-ui 1.32.4 → 1.32.6

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 (525) hide show
  1. package/components/fields/Checkbox/index.d.ts +6 -0
  2. package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +6 -0
  3. package/components/fields/Select/Select.d.ts +4 -1
  4. package/components/fields/Select/Select.interface.d.ts +1 -0
  5. package/components/fields/TextArea/index.d.ts +4 -1
  6. package/index.d.ts +4 -2
  7. package/index.js +1 -1
  8. package/index.mjs +153 -151
  9. package/index110.js +1 -1
  10. package/index110.mjs +5 -5
  11. package/index111.js +1 -1
  12. package/index111.mjs +2 -2
  13. package/index112.js +1 -1
  14. package/index112.mjs +1 -1
  15. package/index113.js +1 -1
  16. package/index113.mjs +2 -2
  17. package/index115.js +1 -1
  18. package/index115.mjs +8 -8
  19. package/index116.js +1 -1
  20. package/index116.mjs +6 -6
  21. package/index120.js +1 -1
  22. package/index120.mjs +8 -8
  23. package/index121.js +1 -1
  24. package/index121.mjs +6 -6
  25. package/index123.js +1 -1
  26. package/index123.mjs +9 -9
  27. package/index124.js +1 -1
  28. package/index124.mjs +1 -1
  29. package/index125.js +1 -1
  30. package/index125.mjs +6 -6
  31. package/index126.js +1 -1
  32. package/index126.mjs +3 -3
  33. package/index130.js +1 -1
  34. package/index130.mjs +2 -2
  35. package/index133.js +1 -1
  36. package/index133.mjs +1 -1
  37. package/index139.js +1 -1
  38. package/index139.mjs +3 -3
  39. package/index140.js +1 -1
  40. package/index140.mjs +23 -23
  41. package/index141.js +1 -1
  42. package/index141.mjs +3 -3
  43. package/index144.js +1 -1
  44. package/index144.mjs +2 -2
  45. package/index145.js +1 -1
  46. package/index145.mjs +5 -5
  47. package/index146.js +1 -1
  48. package/index146.mjs +2 -2
  49. package/index147.js +1 -1
  50. package/index147.mjs +6 -6
  51. package/index148.js +1 -1
  52. package/index148.mjs +3 -3
  53. package/index149.js +1 -1
  54. package/index149.mjs +12 -12
  55. package/index150.js +1 -1
  56. package/index150.mjs +9 -9
  57. package/index151.js +1 -1
  58. package/index151.mjs +8 -8
  59. package/index152.js +1 -1
  60. package/index152.mjs +106 -20
  61. package/index153.js +1 -1
  62. package/index153.mjs +83 -107
  63. package/index154.js +1 -1
  64. package/index154.mjs +26 -83
  65. package/index155.js +1 -1
  66. package/index155.mjs +20 -25
  67. package/index156.js +1 -1
  68. package/index156.mjs +17 -123
  69. package/index157.js +1 -1
  70. package/index157.mjs +122 -24
  71. package/index158.js +1 -1
  72. package/index158.mjs +71 -17
  73. package/index159.js +1 -1
  74. package/index159.mjs +338 -62
  75. package/index16.js +1 -1
  76. package/index16.mjs +144 -67
  77. package/index160.js +1 -1
  78. package/index160.mjs +42 -346
  79. package/index161.js +1 -1
  80. package/index161.mjs +29 -43
  81. package/index162.js +1 -1
  82. package/index162.mjs +24 -28
  83. package/index163.js +1 -1
  84. package/index163.mjs +136 -71
  85. package/index164.js +1 -1
  86. package/index164.mjs +132 -50
  87. package/index165.js +1 -1
  88. package/index165.mjs +96 -21
  89. package/index166.js +1 -1
  90. package/index166.mjs +24 -27
  91. package/index167.js +1 -1
  92. package/index167.mjs +381 -33
  93. package/index168.js +1 -1
  94. package/index168.mjs +90 -24
  95. package/index169.js +1 -1
  96. package/index169.mjs +72 -217
  97. package/index17.js +1 -1
  98. package/index17.mjs +95 -26
  99. package/index170.js +1 -1
  100. package/index170.mjs +50 -132
  101. package/index171.js +1 -1
  102. package/index171.mjs +21 -14
  103. package/index172.js +1 -1
  104. package/index172.mjs +30 -4
  105. package/index173.js +1 -1
  106. package/index173.mjs +33 -6
  107. package/index174.js +1 -1
  108. package/index174.mjs +27 -35
  109. package/index175.js +1 -1
  110. package/index175.mjs +215 -17
  111. package/index176.js +1 -1
  112. package/index176.mjs +14 -43
  113. package/index177.js +1 -1
  114. package/index177.mjs +4 -154
  115. package/index178.js +1 -1
  116. package/index178.mjs +6 -100
  117. package/index179.js +1 -1
  118. package/index179.mjs +37 -17
  119. package/index180.js +1 -1
  120. package/index180.mjs +16 -134
  121. package/index181.js +1 -1
  122. package/index181.mjs +40 -93
  123. package/index182.js +1 -1
  124. package/index182.mjs +151 -24
  125. package/index183.js +1 -1
  126. package/index183.mjs +100 -381
  127. package/index184.js +1 -1
  128. package/index184.mjs +16 -94
  129. package/index185.js +1 -1
  130. package/index185.mjs +205 -197
  131. package/index186.js +1 -1
  132. package/index186.mjs +24 -64
  133. package/index187.js +1 -1
  134. package/index187.mjs +4 -143
  135. package/index188.js +1 -1
  136. package/index188.mjs +3 -124
  137. package/index189.js +1 -1
  138. package/index189.mjs +116 -215
  139. package/index190.js +1 -1
  140. package/index190.mjs +23 -184
  141. package/index191.js +1 -1
  142. package/index191.mjs +51 -69
  143. package/index192.js +1 -1
  144. package/index192.mjs +43 -278
  145. package/index193.js +1 -1
  146. package/index193.mjs +31 -92
  147. package/index194.js +1 -1
  148. package/index194.mjs +109 -184
  149. package/index195.js +1 -1
  150. package/index195.mjs +77 -84
  151. package/index196.js +1 -1
  152. package/index196.mjs +101 -58
  153. package/index197.js +1 -1
  154. package/index197.mjs +98 -127
  155. package/index198.js +1 -1
  156. package/index198.mjs +70 -114
  157. package/index199.js +1 -1
  158. package/index199.mjs +91 -118
  159. package/index20.js +1 -1
  160. package/index20.mjs +105 -31
  161. package/index200.js +1 -1
  162. package/index200.mjs +152 -69
  163. package/index201.js +1 -1
  164. package/index201.mjs +72 -111
  165. package/index202.js +1 -1
  166. package/index202.mjs +41 -51
  167. package/index203.js +1 -1
  168. package/index203.mjs +5 -93
  169. package/index204.js +1 -1
  170. package/index204.mjs +60 -69
  171. package/index205.js +1 -1
  172. package/index205.mjs +58 -55
  173. package/index206.js +1 -1
  174. package/index206.mjs +196 -92
  175. package/index207.js +1 -5
  176. package/index207.mjs +59 -75
  177. package/index208.js +1 -1
  178. package/index208.mjs +126 -2008
  179. package/index209.js +1 -1
  180. package/index209.mjs +121 -56
  181. package/index21.js +1 -1
  182. package/index21.mjs +141 -64
  183. package/index210.js +1 -1
  184. package/index210.mjs +221 -185
  185. package/index211.js +1 -1
  186. package/index211.mjs +185 -206
  187. package/index212.js +1 -1
  188. package/index212.mjs +69 -24
  189. package/index213.js +1 -1
  190. package/index213.mjs +279 -4
  191. package/index214.js +1 -1
  192. package/index214.mjs +98 -3
  193. package/index215.js +1 -1
  194. package/index215.mjs +179 -116
  195. package/index216.js +1 -1
  196. package/index216.mjs +84 -29
  197. package/index217.js +1 -1
  198. package/index217.mjs +58 -51
  199. package/index218.js +1 -1
  200. package/index218.mjs +125 -43
  201. package/index219.js +1 -1
  202. package/index219.mjs +112 -33
  203. package/index220.js +1 -1
  204. package/index220.mjs +119 -110
  205. package/index221.js +1 -1
  206. package/index221.mjs +72 -77
  207. package/index222.js +1 -1
  208. package/index222.mjs +105 -96
  209. package/index223.js +1 -1
  210. package/index223.mjs +53 -98
  211. package/index224.js +1 -1
  212. package/index224.mjs +89 -68
  213. package/index225.js +1 -1
  214. package/index225.mjs +68 -93
  215. package/index226.js +1 -1
  216. package/index226.mjs +52 -151
  217. package/index227.js +1 -1
  218. package/index227.mjs +100 -72
  219. package/index228.js +5 -1
  220. package/index228.mjs +78 -40
  221. package/index229.js +1 -1
  222. package/index229.mjs +2025 -5
  223. package/index230.js +1 -1
  224. package/index230.mjs +59 -61
  225. package/index231.js +1 -1
  226. package/index231.mjs +187 -58
  227. package/index232.js +1 -1
  228. package/index232.mjs +71 -19
  229. package/index233.js +1 -1
  230. package/index233.mjs +45 -20
  231. package/index234.js +1 -1
  232. package/index234.mjs +30 -20
  233. package/index235.js +1 -1
  234. package/index235.mjs +19 -19
  235. package/index236.js +1 -1
  236. package/index236.mjs +19 -19
  237. package/index237.js +1 -1
  238. package/index237.mjs +19 -19
  239. package/index238.js +1 -1
  240. package/index238.mjs +15 -15
  241. package/index239.js +1 -1
  242. package/index239.mjs +19 -19
  243. package/index240.js +1 -1
  244. package/index240.mjs +19 -19
  245. package/index241.js +1 -1
  246. package/index241.mjs +19 -19
  247. package/index242.js +1 -1
  248. package/index242.mjs +16 -16
  249. package/index243.js +1 -1
  250. package/index243.mjs +19 -19
  251. package/index244.js +1 -1
  252. package/index244.mjs +16 -16
  253. package/index245.js +1 -1
  254. package/index245.mjs +16 -16
  255. package/index246.js +1 -1
  256. package/index246.mjs +19 -19
  257. package/index247.js +1 -1
  258. package/index247.mjs +19 -19
  259. package/index248.js +1 -1
  260. package/index248.mjs +19 -19
  261. package/index249.js +1 -1
  262. package/index249.mjs +18 -18
  263. package/index250.js +1 -1
  264. package/index250.mjs +19 -19
  265. package/index251.js +1 -1
  266. package/index251.mjs +19 -19
  267. package/index252.js +1 -1
  268. package/index252.mjs +19 -19
  269. package/index253.js +1 -1
  270. package/index253.mjs +16 -16
  271. package/index254.js +1 -1
  272. package/index254.mjs +19 -19
  273. package/index255.js +1 -1
  274. package/index255.mjs +19 -19
  275. package/index256.js +1 -1
  276. package/index256.mjs +16 -16
  277. package/index257.js +1 -1
  278. package/index257.mjs +18 -18
  279. package/index258.js +1 -1
  280. package/index258.mjs +16 -16
  281. package/index259.js +1 -1
  282. package/index259.mjs +16 -16
  283. package/index260.js +1 -1
  284. package/index260.mjs +16 -16
  285. package/index261.js +1 -1
  286. package/index261.mjs +19 -19
  287. package/index262.js +1 -1
  288. package/index262.mjs +16 -16
  289. package/index263.js +1 -1
  290. package/index263.mjs +15 -15
  291. package/index264.js +1 -1
  292. package/index264.mjs +19 -19
  293. package/index265.js +1 -1
  294. package/index265.mjs +19 -19
  295. package/index266.js +1 -1
  296. package/index266.mjs +19 -71
  297. package/index267.js +1 -1
  298. package/index267.mjs +20 -45
  299. package/index268.js +1 -1
  300. package/index268.mjs +20 -30
  301. package/index269.js +1 -1
  302. package/index269.mjs +4 -130
  303. package/index270.js +1 -1
  304. package/index270.mjs +22 -188
  305. package/index271.js +1 -1
  306. package/index271.mjs +46 -8
  307. package/index272.js +1 -1
  308. package/index272.mjs +5 -3
  309. package/index273.js +1 -1
  310. package/index273.mjs +6 -37
  311. package/index274.js +1 -1
  312. package/index274.mjs +14 -5
  313. package/index275.js +1 -1
  314. package/index275.mjs +24 -29
  315. package/index276.js +1 -1
  316. package/index276.mjs +28 -6
  317. package/index277.js +1 -1
  318. package/index277.mjs +26 -135
  319. package/index278.js +1 -1
  320. package/index278.mjs +9 -197
  321. package/index279.js +1 -1
  322. package/index279.mjs +25 -19
  323. package/index280.js +1 -1
  324. package/index280.mjs +9 -28
  325. package/index281.js +1 -1
  326. package/index281.mjs +5 -46
  327. package/index282.js +1 -1
  328. package/index282.mjs +7 -48
  329. package/index283.js +1 -1
  330. package/index283.mjs +12 -99
  331. package/index284.js +1 -1
  332. package/index284.mjs +8 -5
  333. package/index285.js +1 -1
  334. package/index285.mjs +49 -72
  335. package/index286.js +1 -1
  336. package/index286.mjs +16 -59
  337. package/index287.js +1 -1
  338. package/index287.mjs +16 -8
  339. package/index288.js +1 -1
  340. package/index288.mjs +16 -12
  341. package/index289.js +1 -1
  342. package/index289.mjs +16 -48
  343. package/index290.js +1 -1
  344. package/index290.mjs +16 -25
  345. package/index291.js +1 -1
  346. package/index291.mjs +16 -6
  347. package/index292.js +1 -1
  348. package/index292.mjs +16 -15
  349. package/index293.js +1 -1
  350. package/index293.mjs +16 -25
  351. package/index294.js +1 -1
  352. package/index294.mjs +16 -29
  353. package/index295.js +1 -1
  354. package/index295.mjs +16 -32
  355. package/index296.js +1 -1
  356. package/index296.mjs +16 -10
  357. package/index297.js +1 -1
  358. package/index297.mjs +16 -10
  359. package/index298.js +1 -1
  360. package/index298.mjs +16 -6
  361. package/index299.js +1 -1
  362. package/index299.mjs +16 -8
  363. package/index300.js +1 -1
  364. package/index300.mjs +16 -14
  365. package/index301.js +1 -1
  366. package/index301.mjs +16 -9
  367. package/index302.js +1 -1
  368. package/index302.mjs +16 -5
  369. package/index303.js +1 -1
  370. package/index303.mjs +16 -49
  371. package/index304.js +1 -1
  372. package/index304.mjs +15 -15
  373. package/index305.js +1 -1
  374. package/index305.mjs +15 -15
  375. package/index306.js +1 -1
  376. package/index306.mjs +12 -12
  377. package/index307.js +1 -1
  378. package/index307.mjs +15 -15
  379. package/index308.js +1 -1
  380. package/index308.mjs +15 -15
  381. package/index309.js +1 -1
  382. package/index309.mjs +15 -15
  383. package/index310.js +1 -1
  384. package/index310.mjs +12 -12
  385. package/index311.js +1 -1
  386. package/index311.mjs +15 -15
  387. package/index312.js +1 -1
  388. package/index312.mjs +15 -15
  389. package/index313.js +1 -1
  390. package/index313.mjs +12 -12
  391. package/index314.js +1 -1
  392. package/index314.mjs +15 -15
  393. package/index315.js +1 -1
  394. package/index315.mjs +15 -15
  395. package/index316.js +1 -1
  396. package/index316.mjs +15 -15
  397. package/index317.js +1 -1
  398. package/index317.mjs +15 -15
  399. package/index318.js +1 -1
  400. package/index318.mjs +15 -15
  401. package/index319.js +1 -1
  402. package/index319.mjs +12 -12
  403. package/index320.js +1 -1
  404. package/index320.mjs +130 -15
  405. package/index321.js +1 -1
  406. package/index321.mjs +191 -16
  407. package/index322.js +1 -1
  408. package/index322.mjs +10 -16
  409. package/index323.js +1 -1
  410. package/index323.mjs +4 -16
  411. package/index324.js +1 -1
  412. package/index324.mjs +37 -16
  413. package/index325.js +1 -1
  414. package/index325.mjs +6 -16
  415. package/index326.js +1 -1
  416. package/index326.mjs +30 -16
  417. package/index327.js +1 -1
  418. package/index327.mjs +7 -16
  419. package/index328.js +1 -1
  420. package/index328.mjs +141 -16
  421. package/index329.js +1 -1
  422. package/index329.mjs +198 -16
  423. package/index330.js +1 -1
  424. package/index330.mjs +23 -16
  425. package/index331.js +1 -1
  426. package/index331.mjs +47 -16
  427. package/index332.js +1 -1
  428. package/index332.mjs +49 -16
  429. package/index333.js +1 -1
  430. package/index333.mjs +101 -16
  431. package/index334.js +1 -1
  432. package/index334.mjs +71 -15
  433. package/index335.js +1 -1
  434. package/index335.mjs +59 -16
  435. package/index336.js +1 -1
  436. package/index336.mjs +8 -16
  437. package/index337.js +1 -1
  438. package/index337.mjs +12 -16
  439. package/index338.js +1 -1
  440. package/index338.mjs +7 -4
  441. package/index339.js +1 -1
  442. package/index339.mjs +68 -6
  443. package/index340.js +1 -1
  444. package/index340.mjs +27 -65
  445. package/index341.js +1 -1
  446. package/index341.mjs +6 -30
  447. package/index342.js +1 -1
  448. package/index342.mjs +6 -6
  449. package/index343.js +1 -1
  450. package/index343.mjs +20 -6
  451. package/index344.js +1 -1
  452. package/index344.mjs +3 -20
  453. package/index345.js +1 -1
  454. package/index345.mjs +7 -71
  455. package/index346.js +1 -1
  456. package/index346.mjs +7 -117
  457. package/index347.js +1 -1
  458. package/index347.mjs +7 -7
  459. package/index348.js +1 -1
  460. package/index348.mjs +7 -7
  461. package/index349.js +1 -1
  462. package/index349.mjs +7 -7
  463. package/index350.js +1 -1
  464. package/index350.mjs +7 -7
  465. package/index351.js +1 -1
  466. package/index351.mjs +4 -4
  467. package/index352.js +1 -1
  468. package/index352.mjs +7 -7
  469. package/index353.js +1 -1
  470. package/index353.mjs +4 -4
  471. package/index354.js +1 -1
  472. package/index354.mjs +4 -4
  473. package/index355.js +1 -1
  474. package/index355.mjs +4 -4
  475. package/index356.js +1 -1
  476. package/index356.mjs +7 -7
  477. package/index357.js +1 -1
  478. package/index357.mjs +7 -7
  479. package/index358.js +1 -1
  480. package/index358.mjs +7 -7
  481. package/index359.js +1 -1
  482. package/index359.mjs +7 -7
  483. package/index360.js +1 -1
  484. package/index360.mjs +7 -7
  485. package/index361.js +1 -1
  486. package/index361.mjs +7 -7
  487. package/index362.js +1 -1
  488. package/index362.mjs +4 -4
  489. package/index363.js +1 -1
  490. package/index363.mjs +7 -7
  491. package/index364.js +1 -1
  492. package/index364.mjs +7 -7
  493. package/index365.js +1 -1
  494. package/index365.mjs +7 -7
  495. package/index366.js +1 -1
  496. package/index366.mjs +7 -7
  497. package/index367.js +1 -1
  498. package/index367.mjs +4 -4
  499. package/index368.js +1 -1
  500. package/index368.mjs +7 -7
  501. package/index369.js +1 -1
  502. package/index369.mjs +4 -4
  503. package/index370.js +1 -1
  504. package/index370.mjs +7 -7
  505. package/index371.js +1 -1
  506. package/index371.mjs +4 -4
  507. package/index372.js +1 -1
  508. package/index372.mjs +7 -7
  509. package/index373.js +1 -1
  510. package/index373.mjs +7 -7
  511. package/index374.js +1 -1
  512. package/index374.mjs +7 -7
  513. package/index375.js +1 -1
  514. package/index375.mjs +7 -7
  515. package/index376.js +1 -1
  516. package/index376.mjs +4 -4
  517. package/index377.js +1 -1
  518. package/index377.mjs +7 -7
  519. package/index378.js +1 -1
  520. package/index378.mjs +7 -7
  521. package/index379.js +1 -1
  522. package/index379.mjs +117 -7
  523. package/index380.js +1 -1
  524. package/index380.mjs +71 -7
  525. package/package.json +1 -1
package/index224.mjs CHANGED
@@ -1,75 +1,96 @@
1
- import { useVisibleRangeDescription as n, useSelectedDateDescription as D, hookData as v } from "./index225.mjs";
2
- import P from "./index227.mjs";
3
- import { announce as c } from "./index303.mjs";
4
- import { useSlotId as F } from "./index139.mjs";
5
- import { mergeProps as R } from "./index158.mjs";
6
- import { filterDOMProps as y } from "./index165.mjs";
7
- import { useLabels as B } from "./index171.mjs";
8
- import { useUpdateEffect as f } from "./index296.mjs";
9
- import { useLocalizedStringFormatter as I } from "@react-aria/i18n";
10
- import { useState as u } from "react";
11
- function M(e) {
12
- return e && e.__esModule ? e.default : e;
13
- }
14
- function z(e, a) {
15
- let o = I(M(P), "@react-aria/calendar"), $ = y(e), m = n(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), r = n(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
16
- f(() => {
17
- a.isFocused || c(r);
18
- }, [
19
- r
20
- ]);
21
- let i = D(a);
22
- f(() => {
23
- i && c(i, "polite", 4e3);
24
- }, [
25
- i
26
- ]);
27
- let l = F([
28
- !!e.errorMessage,
29
- e.isInvalid,
30
- e.validationState
31
- ]);
32
- v.set(a, {
33
- ariaLabel: e["aria-label"],
34
- ariaLabelledBy: e["aria-labelledby"],
35
- errorMessageId: l,
36
- selectedDateDescription: i
37
- });
38
- let [p, s] = u(!1), t = e.isDisabled || a.isNextVisibleRangeInvalid();
39
- t && p && (s(!1), a.setFocused(!0));
40
- let [g, d] = u(!1), b = e.isDisabled || a.isPreviousVisibleRangeInvalid();
41
- b && g && (d(!1), a.setFocused(!0));
42
- let x = B({
43
- id: e.id,
44
- "aria-label": [
45
- e["aria-label"],
46
- r
47
- ].filter(Boolean).join(", "),
48
- "aria-labelledby": e["aria-labelledby"]
1
+ import { e as H } from "./index324.mjs";
2
+ import { c as y, o as I } from "./index321.mjs";
3
+ function V(z) {
4
+ let {
5
+ swiper: e,
6
+ extendParams: E,
7
+ on: q
8
+ } = z;
9
+ E({
10
+ cubeEffect: {
11
+ slideShadows: !0,
12
+ shadow: !0,
13
+ shadowOffset: 20,
14
+ shadowScale: 0.94
15
+ }
49
16
  });
50
- return {
51
- calendarProps: R($, x, {
52
- role: "application",
53
- "aria-describedby": e["aria-describedby"] || void 0
54
- }),
55
- nextButtonProps: {
56
- onPress: () => a.focusNextPage(),
57
- "aria-label": o.format("next"),
58
- isDisabled: t,
59
- onFocusChange: s
17
+ const M = (t, a, r) => {
18
+ let s = r ? t.querySelector(".swiper-slide-shadow-left") : t.querySelector(".swiper-slide-shadow-top"), l = r ? t.querySelector(".swiper-slide-shadow-right") : t.querySelector(".swiper-slide-shadow-bottom");
19
+ s || (s = y("div", `swiper-slide-shadow-cube swiper-slide-shadow-${r ? "left" : "top"}`.split(" ")), t.append(s)), l || (l = y("div", `swiper-slide-shadow-cube swiper-slide-shadow-${r ? "right" : "bottom"}`.split(" ")), t.append(l)), s && (s.style.opacity = Math.max(-a, 0)), l && (l.style.opacity = Math.max(a, 0));
20
+ };
21
+ H({
22
+ effect: "cube",
23
+ swiper: e,
24
+ on: q,
25
+ setTranslate: () => {
26
+ const {
27
+ el: t,
28
+ wrapperEl: a,
29
+ slides: r,
30
+ width: s,
31
+ height: l,
32
+ rtlTranslate: $,
33
+ size: o,
34
+ browser: S
35
+ } = e, g = I(e), c = e.params.cubeEffect, h = e.isHorizontal(), T = e.virtual && e.params.virtual.enabled;
36
+ let u = 0, i;
37
+ c.shadow && (h ? (i = e.wrapperEl.querySelector(".swiper-cube-shadow"), i || (i = y("div", "swiper-cube-shadow"), e.wrapperEl.append(i)), i.style.height = `${s}px`) : (i = t.querySelector(".swiper-cube-shadow"), i || (i = y("div", "swiper-cube-shadow"), t.append(i))));
38
+ for (let w = 0; w < r.length; w += 1) {
39
+ const m = r[w];
40
+ let d = w;
41
+ T && (d = parseInt(m.getAttribute("data-swiper-slide-index"), 10));
42
+ let n = d * 90, f = Math.floor(n / 360);
43
+ $ && (n = -n, f = Math.floor(-n / 360));
44
+ const x = Math.max(Math.min(m.progress, 1), -1);
45
+ let p = 0, P = 0, b = 0;
46
+ d % 4 === 0 ? (p = -f * 4 * o, b = 0) : (d - 1) % 4 === 0 ? (p = 0, b = -f * 4 * o) : (d - 2) % 4 === 0 ? (p = o + f * 4 * o, b = o) : (d - 3) % 4 === 0 && (p = -o, b = 3 * o + o * 4 * f), $ && (p = -p), h || (P = p, p = 0);
47
+ const A = `rotateX(${g(h ? 0 : -n)}deg) rotateY(${g(h ? n : 0)}deg) translate3d(${p}px, ${P}px, ${b}px)`;
48
+ x <= 1 && x > -1 && (u = d * 90 + x * 90, $ && (u = -d * 90 - x * 90)), m.style.transform = A, c.slideShadows && M(m, x, h);
49
+ }
50
+ if (a.style.transformOrigin = `50% 50% -${o / 2}px`, a.style["-webkit-transform-origin"] = `50% 50% -${o / 2}px`, c.shadow)
51
+ if (h)
52
+ i.style.transform = `translate3d(0px, ${s / 2 + c.shadowOffset}px, ${-s / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${c.shadowScale})`;
53
+ else {
54
+ const w = Math.abs(u) - Math.floor(Math.abs(u) / 90) * 90, m = 1.5 - (Math.sin(w * 2 * Math.PI / 360) / 2 + Math.cos(w * 2 * Math.PI / 360) / 2), d = c.shadowScale, n = c.shadowScale / m, f = c.shadowOffset;
55
+ i.style.transform = `scale3d(${d}, 1, ${n}) translate3d(0px, ${l / 2 + f}px, ${-l / 2 / n}px) rotateX(-89.99deg)`;
56
+ }
57
+ const v = (S.isSafari || S.isWebView) && S.needPerspectiveFix ? -o / 2 : 0;
58
+ a.style.transform = `translate3d(0px,0,${v}px) rotateX(${g(e.isHorizontal() ? 0 : u)}deg) rotateY(${g(e.isHorizontal() ? -u : 0)}deg)`, a.style.setProperty("--swiper-cube-translate-z", `${v}px`);
60
59
  },
61
- prevButtonProps: {
62
- onPress: () => a.focusPreviousPage(),
63
- "aria-label": o.format("previous"),
64
- isDisabled: b,
65
- onFocusChange: d
60
+ setTransition: (t) => {
61
+ const {
62
+ el: a,
63
+ slides: r
64
+ } = e;
65
+ if (r.forEach((s) => {
66
+ s.style.transitionDuration = `${t}ms`, s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((l) => {
67
+ l.style.transitionDuration = `${t}ms`;
68
+ });
69
+ }), e.params.cubeEffect.shadow && !e.isHorizontal()) {
70
+ const s = a.querySelector(".swiper-cube-shadow");
71
+ s && (s.style.transitionDuration = `${t}ms`);
72
+ }
66
73
  },
67
- errorMessageProps: {
68
- id: l
74
+ recreateShadows: () => {
75
+ const t = e.isHorizontal();
76
+ e.slides.forEach((a) => {
77
+ const r = Math.max(Math.min(a.progress, 1), -1);
78
+ M(a, r, t);
79
+ });
69
80
  },
70
- title: m
71
- };
81
+ getEffectParams: () => e.params.cubeEffect,
82
+ perspective: () => !0,
83
+ overwriteParams: () => ({
84
+ slidesPerView: 1,
85
+ slidesPerGroup: 1,
86
+ watchSlidesProgress: !0,
87
+ resistanceRatio: 0,
88
+ spaceBetween: 0,
89
+ centeredSlides: !1,
90
+ virtualTranslate: !0
91
+ })
92
+ });
72
93
  }
73
94
  export {
74
- z as useCalendarBase
95
+ V as default
75
96
  };
package/index225.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index227.js"),f=require("./index153.js"),c=require("@react-aria/i18n"),$=require("react");function p(e){return e&&e.__esModule?e.default:e}const y=new WeakMap;function d(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function R(e){let a=c.useLocalizedStringFormatter(p(h),"@react-aria/calendar"),r,t;var l;"highlightedRange"in e?{start:r,end:t}=e.highlightedRange||{}:r=t=(l=e.value)!==null&&l!==void 0?l:void 0;let n=c.useDateFormatter({weekday:"long",month:"long",year:"numeric",day:"numeric",era:d(r)||d(t),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return $.useMemo(()=>{if(!o&&r&&t)if(f.isSameDay(r,t)){let u=n.format(r.toDate(e.timeZone));return a.format("selectedDateDescription",{date:u})}else{let u=g(n,a,r,t,e.timeZone);return a.format("selectedRangeDescription",{dateRange:u})}return""},[r,t,o,e.timeZone,a,n])}function F(e,a,r,t){let l=c.useLocalizedStringFormatter(p(h),"@react-aria/calendar"),n=d(e)||d(a),o=c.useDateFormatter({month:"long",year:"numeric",era:n,calendar:e.calendar.identifier,timeZone:r}),u=c.useDateFormatter({month:"long",year:"numeric",day:"numeric",era:n,calendar:e.calendar.identifier,timeZone:r});return $.useMemo(()=>{if(f.isSameDay(e,f.startOfMonth(e))){if(f.isSameDay(a,f.endOfMonth(e)))return o.format(e.toDate(r));if(f.isSameDay(a,f.endOfMonth(a)))return t?g(o,l,e,a,r):o.formatRange(e.toDate(r),a.toDate(r))}return t?g(u,l,e,a,r):u.formatRange(e.toDate(r),a.toDate(r))},[e,a,o,u,l,r,t])}function g(e,a,r,t,l){let n=e.formatRangeToParts(r.toDate(l),t.toDate(l)),o=-1;for(let i=0;i<n.length;i++){let m=n[i];if(m.source==="shared"&&m.type==="literal")o=i;else if(m.source==="endRange")break}let u="",s="";for(let i=0;i<n.length;i++)i<o?u+=n[i].value:i>o&&(s+=n[i].value);return a.format("dateRange",{startDate:u,endDate:s})}exports.getEraFormat=d;exports.hookData=y;exports.useSelectedDateDescription=R;exports.useVisibleRangeDescription=F;
1
+ "use strict";const m=require("./index327.js"),z=require("./index324.js"),P=require("./index325.js"),T=require("./index326.js"),w=require("./index321.js");function $(u){let{swiper:t,extendParams:g,on:y}=u;g({flipEffect:{slideShadows:!0,limitRotation:!0}});const c=(e,r)=>{let s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),o=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=m.c("flip",e,t.isHorizontal()?"left":"top")),o||(o=m.c("flip",e,t.isHorizontal()?"right":"bottom")),s&&(s.style.opacity=Math.max(-r,0)),o&&(o.style.opacity=Math.max(r,0))},S=()=>{t.params.flipEffect,t.slides.forEach(e=>{let r=e.progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(e.progress,1),-1)),c(e,r)})},x=()=>{const{slides:e,rtlTranslate:r}=t,s=t.params.flipEffect,o=w.o(t);for(let f=0;f<e.length;f+=1){const a=e[f];let l=a.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(a.progress,1),-1));const p=a.swiperSlideOffset;let i=-180*l,d=0,n=t.params.cssMode?-p-t.translate:-p,h=0;t.isHorizontal()?r&&(i=-i):(h=n,n=0,d=-i,i=0),a.style.zIndex=-Math.abs(Math.round(l))+e.length,s.slideShadows&&c(a,l);const M=`translate3d(${n}px, ${h}px, 0px) rotateX(${o(d)}deg) rotateY(${o(i)}deg)`,E=P.e(s,a);E.style.transform=M}},q=e=>{const r=t.slides.map(s=>w.g(s));r.forEach(s=>{s.style.transitionDuration=`${e}ms`,s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(o=>{o.style.transitionDuration=`${e}ms`})}),T.e({swiper:t,duration:e,transformElements:r})};z.e({effect:"flip",swiper:t,on:y,setTranslate:x,setTransition:q,recreateShadows:S,getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}module.exports=$;
package/index225.mjs CHANGED
@@ -1,98 +1,73 @@
1
- import s from "./index227.mjs";
2
- import { isSameDay as c, startOfMonth as x, endOfMonth as p } from "./index153.mjs";
3
- import { useLocalizedStringFormatter as h, useDateFormatter as m } from "@react-aria/i18n";
4
- import { useMemo as R } from "react";
5
- function b(e) {
6
- return e && e.__esModule ? e.default : e;
7
- }
8
- const k = /* @__PURE__ */ new WeakMap();
9
- function d(e) {
10
- return (e == null ? void 0 : e.calendar.identifier) === "gregory" && e.era === "BC" ? "short" : void 0;
11
- }
12
- function D(e) {
13
- let a = h(b(s), "@react-aria/calendar"), r, t;
14
- var i;
15
- "highlightedRange" in e ? { start: r, end: t } = e.highlightedRange || {} : r = t = (i = e.value) !== null && i !== void 0 ? i : void 0;
16
- let o = m({
17
- weekday: "long",
18
- month: "long",
19
- year: "numeric",
20
- day: "numeric",
21
- era: d(r) || d(t),
22
- timeZone: e.timeZone
23
- }), n = "anchorDate" in e ? e.anchorDate : null;
24
- return R(() => {
25
- if (!n && r && t)
26
- if (c(r, t)) {
27
- let f = o.format(r.toDate(e.timeZone));
28
- return a.format("selectedDateDescription", {
29
- date: f
30
- });
31
- } else {
32
- let f = g(o, a, r, t, e.timeZone);
33
- return a.format("selectedRangeDescription", {
34
- dateRange: f
35
- });
36
- }
37
- return "";
38
- }, [
39
- r,
40
- t,
41
- n,
42
- e.timeZone,
43
- a,
44
- o
45
- ]);
46
- }
47
- function _(e, a, r, t) {
48
- let i = h(b(s), "@react-aria/calendar"), o = d(e) || d(a), n = m({
49
- month: "long",
50
- year: "numeric",
51
- era: o,
52
- calendar: e.calendar.identifier,
53
- timeZone: r
54
- }), f = m({
55
- month: "long",
56
- year: "numeric",
57
- day: "numeric",
58
- era: o,
59
- calendar: e.calendar.identifier,
60
- timeZone: r
61
- });
62
- return R(() => {
63
- if (c(e, x(e))) {
64
- if (c(a, p(e))) return n.format(e.toDate(r));
65
- if (c(a, p(a))) return t ? g(n, i, e, a, r) : n.formatRange(e.toDate(r), a.toDate(r));
1
+ import { c as h } from "./index327.mjs";
2
+ import { e as x } from "./index324.mjs";
3
+ import { e as M } from "./index325.mjs";
4
+ import { e as E } from "./index326.mjs";
5
+ import { g as T, o as z } from "./index321.mjs";
6
+ function B(w) {
7
+ let {
8
+ swiper: t,
9
+ extendParams: g,
10
+ on: u
11
+ } = w;
12
+ g({
13
+ flipEffect: {
14
+ slideShadows: !0,
15
+ limitRotation: !0
66
16
  }
67
- return t ? g(f, i, e, a, r) : f.formatRange(e.toDate(r), a.toDate(r));
68
- }, [
69
- e,
70
- a,
71
- n,
72
- f,
73
- i,
74
- r,
75
- t
76
- ]);
77
- }
78
- function g(e, a, r, t, i) {
79
- let o = e.formatRangeToParts(r.toDate(i), t.toDate(i)), n = -1;
80
- for (let l = 0; l < o.length; l++) {
81
- let u = o[l];
82
- if (u.source === "shared" && u.type === "literal") n = l;
83
- else if (u.source === "endRange") break;
84
- }
85
- let f = "", $ = "";
86
- for (let l = 0; l < o.length; l++)
87
- l < n ? f += o[l].value : l > n && ($ += o[l].value);
88
- return a.format("dateRange", {
89
- startDate: f,
90
- endDate: $
17
+ });
18
+ const p = (e, r) => {
19
+ let s = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-left") : e.querySelector(".swiper-slide-shadow-top"), a = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-right") : e.querySelector(".swiper-slide-shadow-bottom");
20
+ s || (s = h("flip", e, t.isHorizontal() ? "left" : "top")), a || (a = h("flip", e, t.isHorizontal() ? "right" : "bottom")), s && (s.style.opacity = Math.max(-r, 0)), a && (a.style.opacity = Math.max(r, 0));
21
+ };
22
+ x({
23
+ effect: "flip",
24
+ swiper: t,
25
+ on: u,
26
+ setTranslate: () => {
27
+ const {
28
+ slides: e,
29
+ rtlTranslate: r
30
+ } = t, s = t.params.flipEffect, a = z(t);
31
+ for (let f = 0; f < e.length; f += 1) {
32
+ const o = e[f];
33
+ let l = o.progress;
34
+ t.params.flipEffect.limitRotation && (l = Math.max(Math.min(o.progress, 1), -1));
35
+ const c = o.swiperSlideOffset;
36
+ let i = -180 * l, m = 0, n = t.params.cssMode ? -c - t.translate : -c, d = 0;
37
+ t.isHorizontal() ? r && (i = -i) : (d = n, n = 0, m = -i, i = 0), o.style.zIndex = -Math.abs(Math.round(l)) + e.length, s.slideShadows && p(o, l);
38
+ const S = `translate3d(${n}px, ${d}px, 0px) rotateX(${a(m)}deg) rotateY(${a(i)}deg)`, y = M(s, o);
39
+ y.style.transform = S;
40
+ }
41
+ },
42
+ setTransition: (e) => {
43
+ const r = t.slides.map((s) => T(s));
44
+ r.forEach((s) => {
45
+ s.style.transitionDuration = `${e}ms`, s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((a) => {
46
+ a.style.transitionDuration = `${e}ms`;
47
+ });
48
+ }), E({
49
+ swiper: t,
50
+ duration: e,
51
+ transformElements: r
52
+ });
53
+ },
54
+ recreateShadows: () => {
55
+ t.params.flipEffect, t.slides.forEach((e) => {
56
+ let r = e.progress;
57
+ t.params.flipEffect.limitRotation && (r = Math.max(Math.min(e.progress, 1), -1)), p(e, r);
58
+ });
59
+ },
60
+ getEffectParams: () => t.params.flipEffect,
61
+ perspective: () => !0,
62
+ overwriteParams: () => ({
63
+ slidesPerView: 1,
64
+ slidesPerGroup: 1,
65
+ watchSlidesProgress: !0,
66
+ spaceBetween: 0,
67
+ virtualTranslate: !t.params.cssMode
68
+ })
91
69
  });
92
70
  }
93
71
  export {
94
- d as getEraFormat,
95
- k as hookData,
96
- D as useSelectedDateDescription,
97
- _ as useVisibleRangeDescription
72
+ B as default
98
73
  };
package/index226.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./index225.js"),E=require("./index227.js"),n=require("./index153.js"),Z=require("./index158.js"),$=require("./index228.js"),w=require("./index173.js"),A=require("./index166.js"),U=require("./index176.js"),k=require("./index229.js"),B=require("./index230.js"),j=require("./index160.js"),P=require("@react-aria/i18n"),l=require("react");function W(t){return t&&t.__esModule?t.default:t}function _(t,e,u){let{date:i,isDisabled:s}=t,{errorMessageId:T,selectedDateDescription:b}=I.hookData.get(e),a=P.useLocalizedStringFormatter(W(E),"@react-aria/calendar"),R=P.useDateFormatter({weekday:"long",day:"numeric",month:"long",year:"numeric",era:I.getEraFormat(i),timeZone:e.timeZone}),d=e.isSelected(i),f=e.isCellFocused(i);s=s||e.isCellDisabled(i);let S=e.isCellUnavailable(i),g=!s&&!S,c=e.isValueInvalid&&!!("highlightedRange"in e?!e.anchorDate&&e.highlightedRange&&i.compare(e.highlightedRange.start)>=0&&i.compare(e.highlightedRange.end)<=0:e.value&&n.isSameDay(e.value,i));c&&(d=!0),i=k.useDeepMemo(i,n.isEqualDay);let m=l.useMemo(()=>i.toDate(e.timeZone),[i,e.timeZone]),v=n.isToday(i,e.timeZone),M=l.useMemo(()=>{let r="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(n.isSameDay(i,e.value.start)||n.isSameDay(i,e.value.end))&&(r=b+", "),r+=R.format(m),v?r=a.format(d?"todayDateSelected":"todayDate",{date:r}):d&&(r=a.format("dateSelected",{date:r})),e.minValue&&n.isSameDay(i,e.minValue)?r+=", "+a.format("minimumDate"):e.maxValue&&n.isSameDay(i,e.maxValue)&&(r+=", "+a.format("maximumDate")),r},[R,m,a,d,v,i,e,b]),p="";"anchorDate"in e&&f&&!e.isReadOnly&&g&&(e.anchorDate?p=a.format("finishRangeSelectionPrompt"):p=a.format("startRangeSelectionPrompt"));let x=A.useDescription(p),y=l.useRef(!1),h=l.useRef(!1),D=l.useRef(void 0),{pressProps:C,isPressed:O}=j.usePress({shouldCancelOnPointerExit:"anchorDate"in e&&!!e.anchorDate,preventFocusOnPress:!0,isDisabled:!g||e.isReadOnly,onPressStart(r){if(e.isReadOnly){e.setFocusedDate(i);return}if("highlightedRange"in e&&!e.anchorDate&&(r.pointerType==="mouse"||r.pointerType==="touch")){if(e.highlightedRange&&!c){if(n.isSameDay(i,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(i),e.setDragging(!0),h.current=!0;return}else if(n.isSameDay(i,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(i),e.setDragging(!0),h.current=!0;return}}let o=()=>{e.setDragging(!0),D.current=void 0,e.selectDate(i),e.setFocusedDate(i),y.current=!0};r.pointerType==="touch"?D.current=setTimeout(o,200):o()}},onPressEnd(){h.current=!1,y.current=!1,clearTimeout(D.current),D.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(i),e.setFocusedDate(i))},onPressUp(r){if(!e.isReadOnly&&("anchorDate"in e&&D.current&&(e.selectDate(i),e.setFocusedDate(i)),"anchorDate"in e))if(h.current)e.setAnchorDate(i);else if(e.anchorDate&&!y.current)e.selectDate(i),e.setFocusedDate(i);else if(r.pointerType==="keyboard"&&!e.anchorDate){e.selectDate(i);let o=i.add({days:1});e.isInvalid(o)&&(o=i.subtract({days:1})),e.isInvalid(o)||e.setFocusedDate(o)}else r.pointerType==="virtual"&&(e.selectDate(i),e.setFocusedDate(i))}}),F;s||(F=n.isSameDay(i,e.focusedDate)?0:-1),l.useEffect(()=>{f&&u.current&&($.focusWithoutScrolling(u.current),B.getInteractionModality()!=="pointer"&&document.activeElement===u.current&&U.scrollIntoViewport(u.current,{containingElement:w.getScrollParent(u.current)}))},[f,u]);let q=P.useDateFormatter({day:"numeric",timeZone:e.timeZone,calendar:i.calendar.identifier}),V=l.useMemo(()=>q.formatToParts(m).find(r=>r.type==="day").value,[q,m]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":c||void 0},buttonProps:Z.mergeProps(C,{onFocus(){s||e.setFocusedDate(i)},tabIndex:F,role:"button","aria-disabled":!g||void 0,"aria-label":M,"aria-invalid":c||void 0,"aria-describedby":[c?T:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(r){"highlightDate"in e&&(r.pointerType!=="touch"||e.isDragging)&&g&&e.highlightDate(i)},onPointerDown(r){"releasePointerCapture"in r.target&&r.target.releasePointerCapture(r.pointerId)},onContextMenu(r){r.preventDefault()}}),isPressed:O,isFocused:f,isSelected:d,isDisabled:s,isUnavailable:S,isOutsideVisibleRange:i.compare(e.visibleRange.start)<0||i.compare(e.visibleRange.end)>0,isInvalid:c,formattedDate:V}}exports.useCalendarCell=_;
1
+ "use strict";const v=require("./index327.js"),B=require("./index324.js"),C=require("./index325.js"),$=require("./index321.js");function F(x){let{swiper:o,extendParams:z,on:O}=x;z({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}});const T=()=>{const{width:l,height:b,slides:i,slidesSizesGrid:d}=o,t=o.params.coverflowEffect,s=o.isHorizontal(),S=o.translate,P=s?-S+l/2:-S+b/2,E=s?t.rotate:-t.rotate,X=t.depth,M=$.o(o);for(let c=0,Y=i.length;c<Y;c+=1){const r=i[c],h=d[c],A=r.swiperSlideOffset,q=(P-A-h/2)/h,e=typeof t.modifier=="function"?t.modifier(q):q*t.modifier;let w=s?E*e:0,p=s?0:E*e,m=-X*Math.abs(e),a=t.stretch;typeof a=="string"&&a.indexOf("%")!==-1&&(a=parseFloat(t.stretch)/100*h);let u=s?0:a*e,y=s?a*e:0,g=1-(1-t.scale)*Math.abs(e);Math.abs(y)<.001&&(y=0),Math.abs(u)<.001&&(u=0),Math.abs(m)<.001&&(m=0),Math.abs(w)<.001&&(w=0),Math.abs(p)<.001&&(p=0),Math.abs(g)<.001&&(g=0);const D=`translate3d(${y}px,${u}px,${m}px) rotateX(${M(p)}deg) rotateY(${M(w)}deg) scale(${g})`,I=C.e(t,r);if(I.style.transform=D,r.style.zIndex=-Math.abs(Math.round(e))+1,t.slideShadows){let f=s?r.querySelector(".swiper-slide-shadow-left"):r.querySelector(".swiper-slide-shadow-top"),n=s?r.querySelector(".swiper-slide-shadow-right"):r.querySelector(".swiper-slide-shadow-bottom");f||(f=v.c("coverflow",r,s?"left":"top")),n||(n=v.c("coverflow",r,s?"right":"bottom")),f&&(f.style.opacity=e>0?e:0),n&&(n.style.opacity=-e>0?-e:0)}}},H=l=>{o.slides.map(i=>$.g(i)).forEach(i=>{i.style.transitionDuration=`${l}ms`,i.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})})};B.e({effect:"coverflow",swiper:o,on:O,setTranslate:T,setTransition:H,perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}module.exports=F;
package/index226.mjs CHANGED
@@ -1,158 +1,59 @@
1
- import { hookData as V, getEraFormat as Z } from "./index225.mjs";
2
- import A from "./index227.mjs";
3
- import { isSameDay as a, isEqualDay as U, isToday as k } from "./index153.mjs";
4
- import { mergeProps as w } from "./index158.mjs";
5
- import { focusWithoutScrolling as B } from "./index228.mjs";
6
- import { getScrollParent as _ } from "./index173.mjs";
7
- import { useDescription as j } from "./index166.mjs";
8
- import { scrollIntoViewport as q } from "./index176.mjs";
9
- import { useDeepMemo as z } from "./index229.mjs";
10
- import { getInteractionModality as L } from "./index230.mjs";
11
- import { usePress as W } from "./index160.mjs";
12
- import { useLocalizedStringFormatter as G, useDateFormatter as S } from "@react-aria/i18n";
13
- import { useMemo as b, useRef as $, useEffect as H } from "react";
14
- function J(t) {
15
- return t && t.__esModule ? t.default : t;
16
- }
17
- function de(t, e, l) {
18
- let { date: r, isDisabled: d } = t, { errorMessageId: I, selectedDateDescription: y } = V.get(e), n = G(J(A), "@react-aria/calendar"), P = S({
19
- weekday: "long",
20
- day: "numeric",
21
- month: "long",
22
- year: "numeric",
23
- era: Z(r),
24
- timeZone: e.timeZone
25
- }), c = e.isSelected(r), m = e.isCellFocused(r);
26
- d = d || e.isCellDisabled(r);
27
- let x = e.isCellUnavailable(r), u = !d && !x, f = e.isValueInvalid && !!("highlightedRange" in e ? !e.anchorDate && e.highlightedRange && r.compare(e.highlightedRange.start) >= 0 && r.compare(e.highlightedRange.end) <= 0 : e.value && a(e.value, r));
28
- f && (c = !0), r = z(r, U);
29
- let g = b(() => r.toDate(e.timeZone), [
30
- r,
31
- e.timeZone
32
- ]), R = k(r, e.timeZone), T = b(() => {
33
- let i = "";
34
- return "highlightedRange" in e && e.value && !e.anchorDate && (a(r, e.value.start) || a(r, e.value.end)) && (i = y + ", "), i += P.format(g), R ? i = n.format(c ? "todayDateSelected" : "todayDate", {
35
- date: i
36
- }) : c && (i = n.format("dateSelected", {
37
- date: i
38
- })), e.minValue && a(r, e.minValue) ? i += ", " + n.format("minimumDate") : e.maxValue && a(r, e.maxValue) && (i += ", " + n.format("maximumDate")), i;
39
- }, [
40
- P,
41
- g,
42
- n,
43
- c,
44
- R,
45
- r,
46
- e,
47
- y
48
- ]), D = "";
49
- "anchorDate" in e && m && !e.isReadOnly && u && (e.anchorDate ? D = n.format("finishRangeSelectionPrompt") : D = n.format("startRangeSelectionPrompt"));
50
- let C = j(D), h = $(!1), p = $(!1), s = $(void 0), { pressProps: E, isPressed: O } = W({
51
- // When dragging to select a range, we don't want dragging over the original anchor
52
- // again to trigger onPressStart. Cancel presses immediately when the pointer exits.
53
- shouldCancelOnPointerExit: "anchorDate" in e && !!e.anchorDate,
54
- preventFocusOnPress: !0,
55
- isDisabled: !u || e.isReadOnly,
56
- onPressStart(i) {
57
- if (e.isReadOnly) {
58
- e.setFocusedDate(r);
59
- return;
60
- }
61
- if ("highlightedRange" in e && !e.anchorDate && (i.pointerType === "mouse" || i.pointerType === "touch")) {
62
- if (e.highlightedRange && !f) {
63
- if (a(r, e.highlightedRange.start)) {
64
- e.setAnchorDate(e.highlightedRange.end), e.setFocusedDate(r), e.setDragging(!0), p.current = !0;
65
- return;
66
- } else if (a(r, e.highlightedRange.end)) {
67
- e.setAnchorDate(e.highlightedRange.start), e.setFocusedDate(r), e.setDragging(!0), p.current = !0;
68
- return;
69
- }
1
+ import { c as x } from "./index327.mjs";
2
+ import { e as A } from "./index324.mjs";
3
+ import { e as D } from "./index325.mjs";
4
+ import { g as F, o as I } from "./index321.mjs";
5
+ function j($) {
6
+ let {
7
+ swiper: r,
8
+ extendParams: T,
9
+ on: q
10
+ } = $;
11
+ T({
12
+ coverflowEffect: {
13
+ rotate: 50,
14
+ stretch: 0,
15
+ depth: 100,
16
+ scale: 1,
17
+ modifier: 1,
18
+ slideShadows: !0
19
+ }
20
+ }), A({
21
+ effect: "coverflow",
22
+ swiper: r,
23
+ on: q,
24
+ setTranslate: () => {
25
+ const {
26
+ width: l,
27
+ height: S,
28
+ slides: a,
29
+ slidesSizesGrid: d
30
+ } = r, t = r.params.coverflowEffect, s = r.isHorizontal(), b = r.translate, z = s ? -b + l / 2 : -b + S / 2, E = s ? t.rotate : -t.rotate, O = t.depth, M = I(r);
31
+ for (let f = 0, H = a.length; f < H; f += 1) {
32
+ const o = a[f], h = d[f], P = o.swiperSlideOffset, v = (z - P - h / 2) / h, e = typeof t.modifier == "function" ? t.modifier(v) : v * t.modifier;
33
+ let p = s ? E * e : 0, w = s ? 0 : E * e, m = -O * Math.abs(e), i = t.stretch;
34
+ typeof i == "string" && i.indexOf("%") !== -1 && (i = parseFloat(t.stretch) / 100 * h);
35
+ let g = s ? 0 : i * e, y = s ? i * e : 0, u = 1 - (1 - t.scale) * Math.abs(e);
36
+ Math.abs(y) < 1e-3 && (y = 0), Math.abs(g) < 1e-3 && (g = 0), Math.abs(m) < 1e-3 && (m = 0), Math.abs(p) < 1e-3 && (p = 0), Math.abs(w) < 1e-3 && (w = 0), Math.abs(u) < 1e-3 && (u = 0);
37
+ const X = `translate3d(${y}px,${g}px,${m}px) rotateX(${M(w)}deg) rotateY(${M(p)}deg) scale(${u})`, Y = D(t, o);
38
+ if (Y.style.transform = X, o.style.zIndex = -Math.abs(Math.round(e)) + 1, t.slideShadows) {
39
+ let n = s ? o.querySelector(".swiper-slide-shadow-left") : o.querySelector(".swiper-slide-shadow-top"), c = s ? o.querySelector(".swiper-slide-shadow-right") : o.querySelector(".swiper-slide-shadow-bottom");
40
+ n || (n = x("coverflow", o, s ? "left" : "top")), c || (c = x("coverflow", o, s ? "right" : "bottom")), n && (n.style.opacity = e > 0 ? e : 0), c && (c.style.opacity = -e > 0 ? -e : 0);
70
41
  }
71
- let o = () => {
72
- e.setDragging(!0), s.current = void 0, e.selectDate(r), e.setFocusedDate(r), h.current = !0;
73
- };
74
- i.pointerType === "touch" ? s.current = setTimeout(o, 200) : o();
75
42
  }
76
43
  },
77
- onPressEnd() {
78
- p.current = !1, h.current = !1, clearTimeout(s.current), s.current = void 0;
79
- },
80
- onPress() {
81
- !("anchorDate" in e) && !e.isReadOnly && (e.selectDate(r), e.setFocusedDate(r));
44
+ setTransition: (l) => {
45
+ r.slides.map((a) => F(a)).forEach((a) => {
46
+ a.style.transitionDuration = `${l}ms`, a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((d) => {
47
+ d.style.transitionDuration = `${l}ms`;
48
+ });
49
+ });
82
50
  },
83
- onPressUp(i) {
84
- if (!e.isReadOnly && ("anchorDate" in e && s.current && (e.selectDate(r), e.setFocusedDate(r)), "anchorDate" in e))
85
- if (p.current)
86
- e.setAnchorDate(r);
87
- else if (e.anchorDate && !h.current)
88
- e.selectDate(r), e.setFocusedDate(r);
89
- else if (i.pointerType === "keyboard" && !e.anchorDate) {
90
- e.selectDate(r);
91
- let o = r.add({
92
- days: 1
93
- });
94
- e.isInvalid(o) && (o = r.subtract({
95
- days: 1
96
- })), e.isInvalid(o) || e.setFocusedDate(o);
97
- } else i.pointerType === "virtual" && (e.selectDate(r), e.setFocusedDate(r));
98
- }
99
- }), v;
100
- d || (v = a(r, e.focusedDate) ? 0 : -1), H(() => {
101
- m && l.current && (B(l.current), L() !== "pointer" && document.activeElement === l.current && q(l.current, {
102
- containingElement: _(l.current)
103
- }));
104
- }, [
105
- m,
106
- l
107
- ]);
108
- let F = S({
109
- day: "numeric",
110
- timeZone: e.timeZone,
111
- calendar: r.calendar.identifier
112
- }), M = b(() => F.formatToParts(g).find((i) => i.type === "day").value, [
113
- F,
114
- g
115
- ]);
116
- return {
117
- cellProps: {
118
- role: "gridcell",
119
- "aria-disabled": !u || void 0,
120
- "aria-selected": c || void 0,
121
- "aria-invalid": f || void 0
122
- },
123
- buttonProps: w(E, {
124
- onFocus() {
125
- d || e.setFocusedDate(r);
126
- },
127
- tabIndex: v,
128
- role: "button",
129
- "aria-disabled": !u || void 0,
130
- "aria-label": T,
131
- "aria-invalid": f || void 0,
132
- "aria-describedby": [
133
- f ? I : void 0,
134
- C["aria-describedby"]
135
- ].filter(Boolean).join(" ") || void 0,
136
- onPointerEnter(i) {
137
- "highlightDate" in e && (i.pointerType !== "touch" || e.isDragging) && u && e.highlightDate(r);
138
- },
139
- onPointerDown(i) {
140
- "releasePointerCapture" in i.target && i.target.releasePointerCapture(i.pointerId);
141
- },
142
- onContextMenu(i) {
143
- i.preventDefault();
144
- }
145
- }),
146
- isPressed: O,
147
- isFocused: m,
148
- isSelected: c,
149
- isDisabled: d,
150
- isUnavailable: x,
151
- isOutsideVisibleRange: r.compare(e.visibleRange.start) < 0 || r.compare(e.visibleRange.end) > 0,
152
- isInvalid: f,
153
- formattedDate: M
154
- };
51
+ perspective: () => !0,
52
+ overwriteParams: () => ({
53
+ watchSlidesProgress: !0
54
+ })
55
+ });
155
56
  }
156
57
  export {
157
- de as useCalendarCell
58
+ j as default
158
59
  };
package/index227.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index304.js"),r=require("./index305.js"),t=require("./index306.js"),s=require("./index307.js"),u=require("./index308.js"),n=require("./index309.js"),i=require("./index310.js"),o=require("./index311.js"),c=require("./index312.js"),q=require("./index313.js"),R=require("./index314.js"),l=require("./index315.js"),E=require("./index316.js"),S=require("./index317.js"),h=require("./index318.js"),L=require("./index319.js"),T=require("./index320.js"),a=require("./index321.js"),I=require("./index322.js"),P=require("./index323.js"),U=require("./index324.js"),d=require("./index325.js"),f=require("./index326.js"),p=require("./index327.js"),k=require("./index328.js"),K=require("./index329.js"),N=require("./index330.js"),b=require("./index331.js"),v=require("./index332.js"),z=require("./index333.js"),A=require("./index334.js"),B=require("./index335.js"),C=require("./index336.js"),D=require("./index337.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
1
+ "use strict";const V=require("./index327.js"),X=require("./index324.js"),j=require("./index325.js"),A=require("./index326.js"),M=require("./index321.js");function B($){let{swiper:t,extendParams:E,on:v}=$;E({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const S=r=>typeof r=="string"?r:`${r}px`,x=()=>{const{slides:r,wrapperEl:d,slidesSizesGrid:c}=t,e=t.params.creativeEffect,{progressMultiplier:f}=e,w=t.params.centeredSlides,u=M.o(t);if(w){const g=c[0]/2-t.params.slidesOffsetBefore||0;d.style.transform=`translateX(calc(50% - ${g}px))`}for(let g=0;g<r.length;g+=1){const a=r[g],T=a.progress,i=Math.min(Math.max(a.progress,-e.limitProgress),e.limitProgress);let o=i;w||(o=Math.min(Math.max(a.originalProgress,-e.limitProgress),e.limitProgress));const P=a.swiperSlideOffset,p=[t.params.cssMode?-P-t.translate:-P,0,0],m=[0,0,0];let h=!1;t.isHorizontal()||(p[1]=p[0],p[0]=0);let s={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};i<0?(s=e.next,h=!0):i>0&&(s=e.prev,h=!0),p.forEach((l,n)=>{p[n]=`calc(${l}px + (${S(s.translate[n])} * ${Math.abs(i*f)}))`}),m.forEach((l,n)=>{let I=s.rotate[n]*Math.abs(i*f);m[n]=I}),a.style.zIndex=-Math.abs(Math.round(T))+r.length;const b=p.join(", "),O=`rotateX(${u(m[0])}deg) rotateY(${u(m[1])}deg) rotateZ(${u(m[2])}deg)`,z=o<0?`scale(${1+(1-s.scale)*o*f})`:`scale(${1-(1-s.scale)*o*f})`,C=o<0?1+(1-s.opacity)*o*f:1-(1-s.opacity)*o*f,D=`translate3d(${b}) ${O} ${z}`;if(h&&s.shadow||!h){let l=a.querySelector(".swiper-slide-shadow");if(!l&&s.shadow&&(l=V.c("creative",a)),l){const n=e.shadowPerProgress?i*(1/e.limitProgress):i;l.style.opacity=Math.min(Math.max(Math.abs(n),0),1)}}const y=j.e(e,a);y.style.transform=D,y.style.opacity=C,s.origin&&(y.style.transformOrigin=s.origin)}},q=r=>{const d=t.slides.map(c=>M.g(c));d.forEach(c=>{c.style.transitionDuration=`${r}ms`,c.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${r}ms`})}),A.e({swiper:t,duration:r,transformElements:d,allSlides:!0})};X.e({effect:"creative",swiper:t,on:v,setTranslate:x,setTransition:q,perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}module.exports=B;