silver-ui 0.4.0 → 0.6.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 (1117) hide show
  1. package/README.md +1 -65
  2. package/dist/{chunk-JYVYCU22.cjs → chunk-27EAV2GT.cjs} +2 -2
  3. package/dist/chunk-27EAV2GT.cjs.map +1 -0
  4. package/dist/{chunk-SR5VVJ5Y.cjs → chunk-2K4I2MB3.cjs} +5 -5
  5. package/dist/{chunk-SR5VVJ5Y.cjs.map → chunk-2K4I2MB3.cjs.map} +1 -1
  6. package/dist/{chunk-GYVWTH3U.cjs → chunk-2MXK2SDR.cjs} +2 -2
  7. package/dist/chunk-2MXK2SDR.cjs.map +1 -0
  8. package/dist/{chunk-AP7BDTTF.js → chunk-2SN3KVWF.js} +5 -5
  9. package/dist/chunk-2SN3KVWF.js.map +1 -0
  10. package/dist/{chunk-SCGXGVNN.cjs → chunk-3IDT3PZC.cjs} +18 -18
  11. package/dist/{chunk-SCGXGVNN.cjs.map → chunk-3IDT3PZC.cjs.map} +1 -1
  12. package/dist/chunk-3NIDAKCF.cjs +38 -0
  13. package/dist/chunk-3NIDAKCF.cjs.map +1 -0
  14. package/dist/chunk-3PEK2Q54.cjs +31 -0
  15. package/dist/chunk-3PEK2Q54.cjs.map +1 -0
  16. package/dist/{chunk-ZTWBG2XY.cjs → chunk-3W3ST5Y3.cjs} +6 -6
  17. package/dist/chunk-3W3ST5Y3.cjs.map +1 -0
  18. package/dist/{chunk-J3DNWPXJ.js → chunk-4426KMA7.js} +2 -2
  19. package/dist/{chunk-J3DNWPXJ.js.map → chunk-4426KMA7.js.map} +1 -1
  20. package/dist/{chunk-L6VSBBPP.js → chunk-45OSUS5A.js} +176 -102
  21. package/dist/chunk-45OSUS5A.js.map +1 -0
  22. package/dist/{chunk-FMLIYHDP.js → chunk-4EUUZQAM.js} +5 -5
  23. package/dist/chunk-4EUUZQAM.js.map +1 -0
  24. package/dist/{chunk-VUCMGGU5.js → chunk-4JJFQZVY.js} +129 -121
  25. package/dist/chunk-4JJFQZVY.js.map +1 -0
  26. package/dist/{chunk-3JPUXC5U.js → chunk-56PY2CD7.js} +17 -44
  27. package/dist/chunk-56PY2CD7.js.map +1 -0
  28. package/dist/chunk-5FQKELP6.js +28 -0
  29. package/dist/chunk-5FQKELP6.js.map +1 -0
  30. package/dist/{chunk-M4JUQCKP.js → chunk-5FTIATD6.js} +2 -2
  31. package/dist/{chunk-M4JUQCKP.js.map → chunk-5FTIATD6.js.map} +1 -1
  32. package/dist/{chunk-QSEDH7T2.js → chunk-5HPXUDX6.js} +3 -6
  33. package/dist/chunk-5HPXUDX6.js.map +1 -0
  34. package/dist/chunk-5JROXZBG.cjs +491 -0
  35. package/dist/chunk-5JROXZBG.cjs.map +1 -0
  36. package/dist/{chunk-FNZOICR4.cjs → chunk-5K3C3INR.cjs} +29 -58
  37. package/dist/chunk-5K3C3INR.cjs.map +1 -0
  38. package/dist/{chunk-N2TNBDQI.js → chunk-5RFHYDQY.js} +17 -12
  39. package/dist/chunk-5RFHYDQY.js.map +1 -0
  40. package/dist/{chunk-Z4TZAJS3.js → chunk-5UGHDUMO.js} +2 -2
  41. package/dist/chunk-5UGHDUMO.js.map +1 -0
  42. package/dist/{chunk-2XAA3CM5.js → chunk-5ZU7FY4O.js} +2 -2
  43. package/dist/chunk-5ZU7FY4O.js.map +1 -0
  44. package/dist/{chunk-NHXJVSZZ.cjs → chunk-62SQBQA4.cjs} +2 -2
  45. package/dist/chunk-62SQBQA4.cjs.map +1 -0
  46. package/dist/{chunk-BULJWVPU.cjs → chunk-6FC5YF2O.cjs} +19 -19
  47. package/dist/{chunk-BULJWVPU.cjs.map → chunk-6FC5YF2O.cjs.map} +1 -1
  48. package/dist/{chunk-2N6FOSNM.js → chunk-6I5QWA6A.js} +210 -172
  49. package/dist/chunk-6I5QWA6A.js.map +1 -0
  50. package/dist/chunk-6ZV7HGZT.cjs +169 -0
  51. package/dist/chunk-6ZV7HGZT.cjs.map +1 -0
  52. package/dist/{chunk-GL7PSN7H.cjs → chunk-7EE6DCRP.cjs} +29 -23
  53. package/dist/chunk-7EE6DCRP.cjs.map +1 -0
  54. package/dist/{chunk-6XWXBXYE.js → chunk-7TJ2O56S.js} +8 -10
  55. package/dist/chunk-7TJ2O56S.js.map +1 -0
  56. package/dist/chunk-A2AC6WL5.cjs +4 -0
  57. package/dist/chunk-A2AC6WL5.cjs.map +1 -0
  58. package/dist/{chunk-TBOQTPRO.cjs → chunk-AFJEAYR4.cjs} +91 -57
  59. package/dist/chunk-AFJEAYR4.cjs.map +1 -0
  60. package/dist/chunk-AFXU6XIS.js +3 -0
  61. package/dist/chunk-AFXU6XIS.js.map +1 -0
  62. package/dist/{chunk-PIZMCOKL.js → chunk-AKAXQ4RL.js} +276 -246
  63. package/dist/chunk-AKAXQ4RL.js.map +1 -0
  64. package/dist/{chunk-O2WICOUK.cjs → chunk-ARUOMLOJ.cjs} +24 -20
  65. package/dist/chunk-ARUOMLOJ.cjs.map +1 -0
  66. package/dist/{chunk-3OIUA2NY.js → chunk-ATK3F3MC.js} +5 -5
  67. package/dist/{chunk-3OIUA2NY.js.map → chunk-ATK3F3MC.js.map} +1 -1
  68. package/dist/{chunk-6ONAGCCZ.js → chunk-B5QX6KGJ.js} +113 -105
  69. package/dist/chunk-B5QX6KGJ.js.map +1 -0
  70. package/dist/{chunk-52WQDDWQ.js → chunk-BDFNEQR3.js} +50 -50
  71. package/dist/chunk-BDFNEQR3.js.map +1 -0
  72. package/dist/{chunk-JDAJ2HJQ.js → chunk-BGLT7XH6.js} +9 -9
  73. package/dist/chunk-BGLT7XH6.js.map +1 -0
  74. package/dist/{chunk-FDUO2HVX.js → chunk-BIKVMVWF.js} +2 -2
  75. package/dist/{chunk-FDUO2HVX.js.map → chunk-BIKVMVWF.js.map} +1 -1
  76. package/dist/{chunk-UUVLEOSD.js → chunk-BNGYGCT2.js} +9 -9
  77. package/dist/chunk-BNGYGCT2.js.map +1 -0
  78. package/dist/{chunk-W2Q4PQ6I.js → chunk-BQWUTDTN.js} +2 -2
  79. package/dist/{chunk-W2Q4PQ6I.js.map → chunk-BQWUTDTN.js.map} +1 -1
  80. package/dist/{chunk-E2A3GJSN.cjs → chunk-BSXUNRET.cjs} +11 -12
  81. package/dist/chunk-BSXUNRET.cjs.map +1 -0
  82. package/dist/chunk-BUYZZOOU.js +56 -0
  83. package/dist/chunk-BUYZZOOU.js.map +1 -0
  84. package/dist/{chunk-NFABMGNH.js → chunk-C6EWA3H2.js} +8 -8
  85. package/dist/chunk-C6EWA3H2.js.map +1 -0
  86. package/dist/{chunk-YWGYN6YV.cjs → chunk-CABYRYVA.cjs} +171 -153
  87. package/dist/chunk-CABYRYVA.cjs.map +1 -0
  88. package/dist/{chunk-5D2OR64D.cjs → chunk-CNDUYO7I.cjs} +7 -15
  89. package/dist/chunk-CNDUYO7I.cjs.map +1 -0
  90. package/dist/chunk-CPDWUT2H.cjs +59 -0
  91. package/dist/chunk-CPDWUT2H.cjs.map +1 -0
  92. package/dist/{chunk-C6EYCIKJ.cjs → chunk-CVT7JW6C.cjs} +276 -246
  93. package/dist/chunk-CVT7JW6C.cjs.map +1 -0
  94. package/dist/chunk-CZUMVOPH.js +3525 -0
  95. package/dist/chunk-CZUMVOPH.js.map +1 -0
  96. package/dist/{chunk-4CVDLMD6.js → chunk-D3CHBU46.js} +3 -3
  97. package/dist/{chunk-4CVDLMD6.js.map → chunk-D3CHBU46.js.map} +1 -1
  98. package/dist/{chunk-U6NH54YD.js → chunk-DAO4UXR4.js} +166 -148
  99. package/dist/chunk-DAO4UXR4.js.map +1 -0
  100. package/dist/{chunk-RDNMAV5B.js → chunk-DE7JLNSO.js} +2 -2
  101. package/dist/chunk-DE7JLNSO.js.map +1 -0
  102. package/dist/{chunk-TF7XVTSP.cjs → chunk-DFEAB7Z3.cjs} +15 -15
  103. package/dist/chunk-DFEAB7Z3.cjs.map +1 -0
  104. package/dist/{chunk-BLRWA445.cjs → chunk-DK6USFZP.cjs} +27 -27
  105. package/dist/chunk-DK6USFZP.cjs.map +1 -0
  106. package/dist/{chunk-JKERY7QF.cjs → chunk-DLIYUFTS.cjs} +2 -2
  107. package/dist/{chunk-JKERY7QF.cjs.map → chunk-DLIYUFTS.cjs.map} +1 -1
  108. package/dist/{chunk-JIVYPJKO.js → chunk-DPSAPA6B.js} +6 -6
  109. package/dist/chunk-DPSAPA6B.js.map +1 -0
  110. package/dist/{chunk-YAWVGZRC.js → chunk-DWZR2AGT.js} +6 -6
  111. package/dist/{chunk-YAWVGZRC.js.map → chunk-DWZR2AGT.js.map} +1 -1
  112. package/dist/{chunk-FB245S6T.cjs → chunk-DXUFDJHA.cjs} +17 -18
  113. package/dist/chunk-DXUFDJHA.cjs.map +1 -0
  114. package/dist/{chunk-G3KKLGZU.cjs → chunk-DYMZ4DLN.cjs} +8 -8
  115. package/dist/chunk-DYMZ4DLN.cjs.map +1 -0
  116. package/dist/{chunk-M2MC3E27.cjs → chunk-EEOUWM2F.cjs} +10 -10
  117. package/dist/chunk-EEOUWM2F.cjs.map +1 -0
  118. package/dist/{chunk-AFI4V7LI.js → chunk-EIJSWHG7.js} +11 -12
  119. package/dist/chunk-EIJSWHG7.js.map +1 -0
  120. package/dist/{chunk-PUVBNGCF.js → chunk-EIT2QSCA.js} +2 -2
  121. package/dist/{chunk-PUVBNGCF.js.map → chunk-EIT2QSCA.js.map} +1 -1
  122. package/dist/{chunk-YVHWOKR7.cjs → chunk-ENVDR66N.cjs} +314 -324
  123. package/dist/chunk-ENVDR66N.cjs.map +1 -0
  124. package/dist/chunk-ERVWZILR.js +321 -0
  125. package/dist/chunk-ERVWZILR.js.map +1 -0
  126. package/dist/{chunk-2A3V6OR7.cjs → chunk-EVCQCZMM.cjs} +5 -5
  127. package/dist/{chunk-2A3V6OR7.cjs.map → chunk-EVCQCZMM.cjs.map} +1 -1
  128. package/dist/{chunk-GC5VUTUR.cjs → chunk-EZFQCREN.cjs} +17 -44
  129. package/dist/chunk-EZFQCREN.cjs.map +1 -0
  130. package/dist/{chunk-FP5E5BUM.js → chunk-FIOCTAXT.js} +4 -4
  131. package/dist/chunk-FIOCTAXT.js.map +1 -0
  132. package/dist/{chunk-AWDIKDX5.cjs → chunk-FLDTPAG4.cjs} +11 -11
  133. package/dist/{chunk-AWDIKDX5.cjs.map → chunk-FLDTPAG4.cjs.map} +1 -1
  134. package/dist/{chunk-S7INL5NI.js → chunk-FQN22DO5.js} +10 -10
  135. package/dist/chunk-FQN22DO5.js.map +1 -0
  136. package/dist/{chunk-AJ6X62AI.js → chunk-FQSVY4QB.js} +3 -3
  137. package/dist/chunk-FQSVY4QB.js.map +1 -0
  138. package/dist/{chunk-3ZV3EGGK.cjs → chunk-FWBYCTUB.cjs} +24 -24
  139. package/dist/chunk-FWBYCTUB.cjs.map +1 -0
  140. package/dist/{chunk-WBQNPBXR.js → chunk-G5PU2EL2.js} +5 -5
  141. package/dist/{chunk-WBQNPBXR.js.map → chunk-G5PU2EL2.js.map} +1 -1
  142. package/dist/{chunk-WOIWI2UO.js → chunk-G6HS52US.js} +3 -3
  143. package/dist/chunk-G6HS52US.js.map +1 -0
  144. package/dist/chunk-GA77PPVL.cjs +217 -0
  145. package/dist/chunk-GA77PPVL.cjs.map +1 -0
  146. package/dist/chunk-GJKRSQEA.cjs +3541 -0
  147. package/dist/chunk-GJKRSQEA.cjs.map +1 -0
  148. package/dist/{chunk-7CCXHH6Y.cjs → chunk-GJZAGTPV.cjs} +7 -7
  149. package/dist/chunk-GJZAGTPV.cjs.map +1 -0
  150. package/dist/{chunk-SBS7U7CN.cjs → chunk-GU65FGY6.cjs} +4 -4
  151. package/dist/{chunk-SBS7U7CN.cjs.map → chunk-GU65FGY6.cjs.map} +1 -1
  152. package/dist/{chunk-K3XHXWBW.js → chunk-GUUCIG7U.js} +9 -9
  153. package/dist/{chunk-K3XHXWBW.js.map → chunk-GUUCIG7U.js.map} +1 -1
  154. package/dist/{chunk-RQ5BMSGU.js → chunk-H2EMKCWT.js} +3 -3
  155. package/dist/{chunk-RQ5BMSGU.js.map → chunk-H2EMKCWT.js.map} +1 -1
  156. package/dist/{chunk-JTFNNEWR.cjs → chunk-H5VMHDRD.cjs} +8 -10
  157. package/dist/chunk-H5VMHDRD.cjs.map +1 -0
  158. package/dist/{chunk-AHVHLNHU.cjs → chunk-H7VK36SZ.cjs} +213 -175
  159. package/dist/chunk-H7VK36SZ.cjs.map +1 -0
  160. package/dist/{chunk-YYNWZRXZ.js → chunk-HKGFMJFK.js} +491 -431
  161. package/dist/chunk-HKGFMJFK.js.map +1 -0
  162. package/dist/{chunk-2LABTS4P.js → chunk-HMJINNXZ.js} +24 -35
  163. package/dist/chunk-HMJINNXZ.js.map +1 -0
  164. package/dist/{chunk-WY5BOT7O.js → chunk-HPNY32G6.js} +4 -4
  165. package/dist/{chunk-WY5BOT7O.js.map → chunk-HPNY32G6.js.map} +1 -1
  166. package/dist/{chunk-IA5GII7N.cjs → chunk-HPOURAKV.cjs} +264 -218
  167. package/dist/chunk-HPOURAKV.cjs.map +1 -0
  168. package/dist/{chunk-LUQVSNQL.cjs → chunk-INQ34SVW.cjs} +141 -133
  169. package/dist/chunk-INQ34SVW.cjs.map +1 -0
  170. package/dist/{chunk-5YS43PSQ.cjs → chunk-IREOTHD3.cjs} +8 -8
  171. package/dist/chunk-IREOTHD3.cjs.map +1 -0
  172. package/dist/chunk-ISWZQUVA.cjs +409 -0
  173. package/dist/chunk-ISWZQUVA.cjs.map +1 -0
  174. package/dist/{chunk-XXBA3KSH.cjs → chunk-IU2YRN35.cjs} +112 -112
  175. package/dist/chunk-IU2YRN35.cjs.map +1 -0
  176. package/dist/{chunk-7T3SWOY7.js → chunk-IUW777WZ.js} +2 -2
  177. package/dist/{chunk-7T3SWOY7.js.map → chunk-IUW777WZ.js.map} +1 -1
  178. package/dist/{chunk-ZFBQ4R7M.cjs → chunk-J4LJXCXB.cjs} +15 -15
  179. package/dist/chunk-J4LJXCXB.cjs.map +1 -0
  180. package/dist/{chunk-4TIAKZ4Q.cjs → chunk-J4PIYOWT.cjs} +2 -2
  181. package/dist/{chunk-4TIAKZ4Q.cjs.map → chunk-J4PIYOWT.cjs.map} +1 -1
  182. package/dist/{chunk-LNT2IFOA.js → chunk-JC66FRQX.js} +3 -3
  183. package/dist/chunk-JC66FRQX.js.map +1 -0
  184. package/dist/{chunk-ZAX2UJBC.js → chunk-JHMUMJF3.js} +37 -28
  185. package/dist/chunk-JHMUMJF3.js.map +1 -0
  186. package/dist/{chunk-O32BKXTR.cjs → chunk-JIF5TZHC.cjs} +2 -2
  187. package/dist/chunk-JIF5TZHC.cjs.map +1 -0
  188. package/dist/{chunk-CK3UJQRI.cjs → chunk-JK4YAQ2N.cjs} +2 -6
  189. package/dist/chunk-JK4YAQ2N.cjs.map +1 -0
  190. package/dist/{chunk-G2U2W422.js → chunk-JR353MN5.js} +8 -8
  191. package/dist/chunk-JR353MN5.js.map +1 -0
  192. package/dist/{chunk-WGCGHFXE.cjs → chunk-JV4Y6HNP.cjs} +2 -2
  193. package/dist/{chunk-WGCGHFXE.cjs.map → chunk-JV4Y6HNP.cjs.map} +1 -1
  194. package/dist/{chunk-PIOMR4X2.js → chunk-K2V3IOAX.js} +4 -4
  195. package/dist/{chunk-PIOMR4X2.js.map → chunk-K2V3IOAX.js.map} +1 -1
  196. package/dist/{chunk-4H7X5FGX.js → chunk-K2WT7A64.js} +239 -274
  197. package/dist/chunk-K2WT7A64.js.map +1 -0
  198. package/dist/{chunk-SBOXHIES.js → chunk-KCI4I42U.js} +11 -11
  199. package/dist/chunk-KCI4I42U.js.map +1 -0
  200. package/dist/{chunk-HINS4GY6.js → chunk-KEPCKSDE.js} +168 -146
  201. package/dist/chunk-KEPCKSDE.js.map +1 -0
  202. package/dist/{chunk-LY6Z6A54.js → chunk-KG7RHDVX.js} +18 -12
  203. package/dist/chunk-KG7RHDVX.js.map +1 -0
  204. package/dist/{chunk-PYPXJC35.cjs → chunk-KUXFEAT4.cjs} +4 -4
  205. package/dist/{chunk-PYPXJC35.cjs.map → chunk-KUXFEAT4.cjs.map} +1 -1
  206. package/dist/chunk-KVEXSDEM.js +214 -0
  207. package/dist/chunk-KVEXSDEM.js.map +1 -0
  208. package/dist/{chunk-276LEL3G.cjs → chunk-KVJ27734.cjs} +4 -4
  209. package/dist/{chunk-276LEL3G.cjs.map → chunk-KVJ27734.cjs.map} +1 -1
  210. package/dist/{chunk-3CJC4QE6.js → chunk-KWZMXX4F.js} +5 -5
  211. package/dist/chunk-KWZMXX4F.js.map +1 -0
  212. package/dist/{chunk-SOCSUNIM.js → chunk-LDYUVGD4.js} +303 -313
  213. package/dist/chunk-LDYUVGD4.js.map +1 -0
  214. package/dist/{chunk-HNZWPIJE.js → chunk-LF6I2B7G.js} +215 -197
  215. package/dist/chunk-LF6I2B7G.js.map +1 -0
  216. package/dist/{chunk-W3C6QQF7.js → chunk-LLSWAAFH.js} +4 -4
  217. package/dist/chunk-LLSWAAFH.js.map +1 -0
  218. package/dist/{chunk-J5IRFGUP.js → chunk-M64WMYYV.js} +256 -210
  219. package/dist/chunk-M64WMYYV.js.map +1 -0
  220. package/dist/{chunk-VFGSNR35.js → chunk-MDQSVB2Y.js} +24 -20
  221. package/dist/chunk-MDQSVB2Y.js.map +1 -0
  222. package/dist/{chunk-M26XECB2.cjs → chunk-MHAXS4GO.cjs} +17 -19
  223. package/dist/chunk-MHAXS4GO.cjs.map +1 -0
  224. package/dist/{chunk-KXIILLQD.cjs → chunk-MHEPDHL5.cjs} +18 -18
  225. package/dist/chunk-MHEPDHL5.cjs.map +1 -0
  226. package/dist/{chunk-BCCPNGUV.js → chunk-MN2NCSQQ.js} +3 -3
  227. package/dist/{chunk-BCCPNGUV.js.map → chunk-MN2NCSQQ.js.map} +1 -1
  228. package/dist/{chunk-PQEFVHJZ.cjs → chunk-NFEL5GNX.cjs} +16 -15
  229. package/dist/chunk-NFEL5GNX.cjs.map +1 -0
  230. package/dist/{chunk-FDZQPWFZ.cjs → chunk-NG2H3PYA.cjs} +17 -17
  231. package/dist/chunk-NG2H3PYA.cjs.map +1 -0
  232. package/dist/{chunk-7U7JMRVF.cjs → chunk-NW36BN7N.cjs} +61 -61
  233. package/dist/chunk-NW36BN7N.cjs.map +1 -0
  234. package/dist/{chunk-QRFDPG34.js → chunk-NXTDP6AX.js} +12 -14
  235. package/dist/chunk-NXTDP6AX.js.map +1 -0
  236. package/dist/{chunk-VGHNBMEJ.cjs → chunk-NYTSAO5I.cjs} +6 -6
  237. package/dist/{chunk-VGHNBMEJ.cjs.map → chunk-NYTSAO5I.cjs.map} +1 -1
  238. package/dist/{chunk-YO3MBGBP.cjs → chunk-O4PO6AMS.cjs} +2 -2
  239. package/dist/{chunk-YO3MBGBP.cjs.map → chunk-O4PO6AMS.cjs.map} +1 -1
  240. package/dist/{chunk-BUESV4DR.cjs → chunk-P5LMEANN.cjs} +7 -7
  241. package/dist/{chunk-BUESV4DR.cjs.map → chunk-P5LMEANN.cjs.map} +1 -1
  242. package/dist/{chunk-NI55JEYL.js → chunk-P7TSM63O.js} +3 -3
  243. package/dist/{chunk-NI55JEYL.js.map → chunk-P7TSM63O.js.map} +1 -1
  244. package/dist/chunk-PG4CZRTU.js +77 -0
  245. package/dist/chunk-PG4CZRTU.js.map +1 -0
  246. package/dist/{chunk-XLKXFJMU.cjs → chunk-PHFJBQXU.cjs} +8 -8
  247. package/dist/chunk-PHFJBQXU.cjs.map +1 -0
  248. package/dist/{chunk-2OXKEUKG.cjs → chunk-PKZSJX53.cjs} +2 -2
  249. package/dist/chunk-PKZSJX53.cjs.map +1 -0
  250. package/dist/{chunk-J4OEETYQ.cjs → chunk-PNM7MPUX.cjs} +13 -13
  251. package/dist/{chunk-J4OEETYQ.cjs.map → chunk-PNM7MPUX.cjs.map} +1 -1
  252. package/dist/{chunk-TKTLWX2V.js → chunk-PU4PBI3H.js} +8 -8
  253. package/dist/{chunk-TKTLWX2V.js.map → chunk-PU4PBI3H.js.map} +1 -1
  254. package/dist/{chunk-LO5NZY7N.cjs → chunk-PYJX2SBC.cjs} +6 -6
  255. package/dist/chunk-PYJX2SBC.cjs.map +1 -0
  256. package/dist/{chunk-D3LZQ5QS.js → chunk-PYN75QAG.js} +6 -6
  257. package/dist/chunk-PYN75QAG.js.map +1 -0
  258. package/dist/chunk-PZHRFASW.js +36 -0
  259. package/dist/chunk-PZHRFASW.js.map +1 -0
  260. package/dist/{chunk-DP7VC4FW.cjs → chunk-QB2BSOM4.cjs} +2 -2
  261. package/dist/{chunk-DP7VC4FW.cjs.map → chunk-QB2BSOM4.cjs.map} +1 -1
  262. package/dist/{chunk-6ULCJ3XZ.js → chunk-QHXI2QDK.js} +3 -3
  263. package/dist/{chunk-6ULCJ3XZ.js.map → chunk-QHXI2QDK.js.map} +1 -1
  264. package/dist/{chunk-C732WXKS.cjs → chunk-QTOFQB26.cjs} +17 -17
  265. package/dist/chunk-QTOFQB26.cjs.map +1 -0
  266. package/dist/{chunk-TQA3BI7M.cjs → chunk-QYZXTIB2.cjs} +4 -4
  267. package/dist/{chunk-TQA3BI7M.cjs.map → chunk-QYZXTIB2.cjs.map} +1 -1
  268. package/dist/{chunk-YY6KJO5Z.cjs → chunk-R3ZS6FU6.cjs} +12 -12
  269. package/dist/chunk-R3ZS6FU6.cjs.map +1 -0
  270. package/dist/{chunk-G2WW52GO.cjs → chunk-RAMDISDK.cjs} +40 -31
  271. package/dist/chunk-RAMDISDK.cjs.map +1 -0
  272. package/dist/{chunk-SSOAZZNR.cjs → chunk-RLIBY7XB.cjs} +19 -14
  273. package/dist/chunk-RLIBY7XB.cjs.map +1 -0
  274. package/dist/chunk-RU7JPU7V.js +389 -0
  275. package/dist/chunk-RU7JPU7V.js.map +1 -0
  276. package/dist/{chunk-SSAYBCAD.js → chunk-RXKDRZF3.js} +5 -13
  277. package/dist/chunk-RXKDRZF3.js.map +1 -0
  278. package/dist/{chunk-VQ7U3ASC.js → chunk-S4IHNNA2.js} +111 -111
  279. package/dist/chunk-S4IHNNA2.js.map +1 -0
  280. package/dist/{chunk-MI5QU37D.js → chunk-S4WWBV4N.js} +24 -50
  281. package/dist/chunk-S4WWBV4N.js.map +1 -0
  282. package/dist/{chunk-RLOGQBFD.js → chunk-SEDUAMDW.js} +6 -6
  283. package/dist/chunk-SEDUAMDW.js.map +1 -0
  284. package/dist/{chunk-SUH62Z64.js → chunk-SHARVIUI.js} +2 -2
  285. package/dist/chunk-SHARVIUI.js.map +1 -0
  286. package/dist/chunk-SKZNSOB7.cjs +323 -0
  287. package/dist/chunk-SKZNSOB7.cjs.map +1 -0
  288. package/dist/{chunk-ZEA2VYX4.js → chunk-SZ27SCE2.js} +2 -2
  289. package/dist/{chunk-ZEA2VYX4.js.map → chunk-SZ27SCE2.js.map} +1 -1
  290. package/dist/{chunk-H2CZ6IE5.cjs → chunk-TNYAYXKC.cjs} +509 -451
  291. package/dist/chunk-TNYAYXKC.cjs.map +1 -0
  292. package/dist/{chunk-DXPQRAGI.js → chunk-TQDJVPHP.js} +3 -3
  293. package/dist/{chunk-DXPQRAGI.js.map → chunk-TQDJVPHP.js.map} +1 -1
  294. package/dist/{chunk-JSINCF2R.cjs → chunk-TVWU4XBL.cjs} +12 -12
  295. package/dist/{chunk-JSINCF2R.cjs.map → chunk-TVWU4XBL.cjs.map} +1 -1
  296. package/dist/{chunk-OBWWRRL6.cjs → chunk-U4L75VA4.cjs} +167 -159
  297. package/dist/chunk-U4L75VA4.cjs.map +1 -0
  298. package/dist/{chunk-X574M2JB.cjs → chunk-U5HW5P7Q.cjs} +13 -13
  299. package/dist/chunk-U5HW5P7Q.cjs.map +1 -0
  300. package/dist/{chunk-KDR5DCYL.cjs → chunk-UMS46KF4.cjs} +10 -10
  301. package/dist/{chunk-KDR5DCYL.cjs.map → chunk-UMS46KF4.cjs.map} +1 -1
  302. package/dist/{chunk-BSAZRW6T.js → chunk-UT45YVPI.js} +22 -15
  303. package/dist/chunk-UT45YVPI.js.map +1 -0
  304. package/dist/{chunk-LQIZSE3O.js → chunk-UYZQGHFI.js} +11 -11
  305. package/dist/chunk-UYZQGHFI.js.map +1 -0
  306. package/dist/{chunk-TPB53MHV.cjs → chunk-UZGPFPIV.cjs} +224 -206
  307. package/dist/chunk-UZGPFPIV.cjs.map +1 -0
  308. package/dist/{chunk-7BSFKG7N.js → chunk-V2V5TTTL.js} +2 -2
  309. package/dist/chunk-V2V5TTTL.js.map +1 -0
  310. package/dist/{chunk-IUUQXCDE.js → chunk-VJXSJXEX.js} +2 -2
  311. package/dist/{chunk-IUUQXCDE.js.map → chunk-VJXSJXEX.js.map} +1 -1
  312. package/dist/{chunk-JJ324PSZ.cjs → chunk-VK7DXUGH.cjs} +168 -145
  313. package/dist/chunk-VK7DXUGH.cjs.map +1 -0
  314. package/dist/{chunk-I45346RZ.cjs → chunk-VOOD6CXJ.cjs} +2 -2
  315. package/dist/{chunk-I45346RZ.cjs.map → chunk-VOOD6CXJ.cjs.map} +1 -1
  316. package/dist/chunk-VPWNRWNO.cjs +81 -0
  317. package/dist/chunk-VPWNRWNO.cjs.map +1 -0
  318. package/dist/{chunk-QATCDVZ6.cjs → chunk-VREW3BK6.cjs} +182 -108
  319. package/dist/chunk-VREW3BK6.cjs.map +1 -0
  320. package/dist/{chunk-DIRVAHOF.cjs → chunk-VRQ66IBW.cjs} +8 -8
  321. package/dist/chunk-VRQ66IBW.cjs.map +1 -0
  322. package/dist/chunk-VW52NVGM.cjs +391 -0
  323. package/dist/chunk-VW52NVGM.cjs.map +1 -0
  324. package/dist/{chunk-QOKEU3DC.cjs → chunk-VXOIOPGZ.cjs} +30 -41
  325. package/dist/chunk-VXOIOPGZ.cjs.map +1 -0
  326. package/dist/chunk-WAWHHXSR.js +166 -0
  327. package/dist/chunk-WAWHHXSR.js.map +1 -0
  328. package/dist/{chunk-2RKMG2TC.js → chunk-WEXTGWRE.js} +176 -140
  329. package/dist/chunk-WEXTGWRE.js.map +1 -0
  330. package/dist/{chunk-ILEKDNP7.js → chunk-WHDDBOJN.js} +7 -7
  331. package/dist/{chunk-ILEKDNP7.js.map → chunk-WHDDBOJN.js.map} +1 -1
  332. package/dist/{chunk-QVNDZZS6.cjs → chunk-WINDLDH3.cjs} +9 -9
  333. package/dist/chunk-WINDLDH3.cjs.map +1 -0
  334. package/dist/{chunk-DWUEPOYH.js → chunk-WM7NEOME.js} +8 -8
  335. package/dist/chunk-WM7NEOME.js.map +1 -0
  336. package/dist/{chunk-ZQUPAIBS.js → chunk-WTCH3QCQ.js} +10 -11
  337. package/dist/chunk-WTCH3QCQ.js.map +1 -0
  338. package/dist/{chunk-K4ZJNQTX.cjs → chunk-X34F4ZV6.cjs} +2 -2
  339. package/dist/{chunk-K4ZJNQTX.cjs.map → chunk-X34F4ZV6.cjs.map} +1 -1
  340. package/dist/{chunk-2P6D43V2.cjs → chunk-XPHXAZCE.cjs} +6 -6
  341. package/dist/chunk-XPHXAZCE.cjs.map +1 -0
  342. package/dist/{chunk-WBGFFP3G.js → chunk-XTLNUYCK.js} +90 -56
  343. package/dist/chunk-XTLNUYCK.js.map +1 -0
  344. package/dist/{chunk-ZN7CULIL.cjs → chunk-ZPOXH42B.cjs} +2 -2
  345. package/dist/{chunk-ZN7CULIL.cjs.map → chunk-ZPOXH42B.cjs.map} +1 -1
  346. package/dist/{chunk-EBDODJ5X.js → chunk-ZSB43DEI.js} +8 -7
  347. package/dist/chunk-ZSB43DEI.js.map +1 -0
  348. package/dist/{chunk-VHKA25IV.cjs → chunk-ZUAWNT66.cjs} +36 -29
  349. package/dist/chunk-ZUAWNT66.cjs.map +1 -0
  350. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  351. package/dist/components/Accordion/index.cjs +5 -5
  352. package/dist/components/Accordion/index.d.ts +2 -2
  353. package/dist/components/Accordion/index.d.ts.map +1 -1
  354. package/dist/components/Accordion/index.js +2 -2
  355. package/dist/components/Accordion/useAccordionDevWarning.d.ts +8 -0
  356. package/dist/components/Accordion/useAccordionDevWarning.d.ts.map +1 -0
  357. package/dist/components/Alert/Alert.d.ts +2 -11
  358. package/dist/components/Alert/Alert.d.ts.map +1 -1
  359. package/dist/components/Alert/Alert.recipe.d.ts +1 -1
  360. package/dist/components/Alert/Alert.types.d.ts +3 -0
  361. package/dist/components/Alert/Alert.types.d.ts.map +1 -0
  362. package/dist/components/Alert/index.cjs +13 -11
  363. package/dist/components/Alert/index.d.ts.map +1 -1
  364. package/dist/components/Alert/index.js +12 -10
  365. package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
  366. package/dist/components/AlertDialog/index.cjs +18 -14
  367. package/dist/components/AlertDialog/index.d.ts.map +1 -1
  368. package/dist/components/AlertDialog/index.js +16 -12
  369. package/dist/components/AlertDialog/useAlertDialog.d.ts.map +1 -1
  370. package/dist/components/AppShell/AppShell.d.ts.map +1 -1
  371. package/dist/components/AppShell/index.cjs +23 -19
  372. package/dist/components/AppShell/index.d.ts.map +1 -1
  373. package/dist/components/AppShell/index.js +20 -16
  374. package/dist/components/AspectRatio/index.cjs +2 -2
  375. package/dist/components/AspectRatio/index.d.ts +1 -1
  376. package/dist/components/AspectRatio/index.d.ts.map +1 -1
  377. package/dist/components/AspectRatio/index.js +1 -1
  378. package/dist/components/AutocompleteInput/AutocompleteInput.d.ts +1 -1
  379. package/dist/components/AutocompleteInput/AutocompleteInput.d.ts.map +1 -1
  380. package/dist/components/AutocompleteInput/AutocompleteInput.recipe.d.ts +1 -1
  381. package/dist/components/AutocompleteInput/AutocompleteInputItem.d.ts +1 -1
  382. package/dist/components/AutocompleteInput/AutocompleteInputItem.d.ts.map +1 -1
  383. package/dist/components/AutocompleteInput/BaseAutocompleteInput.d.ts.map +1 -1
  384. package/dist/components/AutocompleteInput/index.cjs +21 -19
  385. package/dist/components/AutocompleteInput/index.d.ts.map +1 -1
  386. package/dist/components/AutocompleteInput/index.js +17 -15
  387. package/dist/components/Avatar/Avatar.recipe.d.ts +1 -1
  388. package/dist/components/Avatar/index.cjs +5 -5
  389. package/dist/components/Avatar/index.d.ts.map +1 -1
  390. package/dist/components/Avatar/index.js +2 -2
  391. package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  392. package/dist/components/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
  393. package/dist/components/AvatarGroup/index.cjs +5 -5
  394. package/dist/components/AvatarGroup/index.d.ts +1 -1
  395. package/dist/components/AvatarGroup/index.d.ts.map +1 -1
  396. package/dist/components/AvatarGroup/index.js +3 -3
  397. package/dist/components/Badge/Badge.d.ts.map +1 -1
  398. package/dist/components/Badge/index.cjs +3 -3
  399. package/dist/components/Badge/index.d.ts +1 -1
  400. package/dist/components/Badge/index.d.ts.map +1 -1
  401. package/dist/components/Badge/index.js +2 -2
  402. package/dist/components/Blockquote/Blockquote.recipe.d.ts +1 -1
  403. package/dist/components/Blockquote/index.cjs +2 -2
  404. package/dist/components/Blockquote/index.d.ts +1 -1
  405. package/dist/components/Blockquote/index.d.ts.map +1 -1
  406. package/dist/components/Blockquote/index.js +1 -1
  407. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
  408. package/dist/components/Breadcrumbs/BreadcrumbItem.recipe.d.ts +1 -1
  409. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  410. package/dist/components/Breadcrumbs/Breadcrumbs.recipe.d.ts +1 -1
  411. package/dist/components/Breadcrumbs/index.cjs +6 -11
  412. package/dist/components/Breadcrumbs/index.d.ts +2 -2
  413. package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
  414. package/dist/components/Breadcrumbs/index.js +3 -8
  415. package/dist/components/Button/Button.d.ts +7 -7
  416. package/dist/components/Button/Button.d.ts.map +1 -1
  417. package/dist/components/Button/Button.recipe.d.ts +1 -1
  418. package/dist/components/Button/Button.types.d.ts +3 -0
  419. package/dist/components/Button/Button.types.d.ts.map +1 -0
  420. package/dist/components/Button/index.cjs +12 -10
  421. package/dist/components/Button/index.d.ts +1 -1
  422. package/dist/components/Button/index.d.ts.map +1 -1
  423. package/dist/components/Button/index.js +11 -9
  424. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  425. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
  426. package/dist/components/ButtonGroup/index.cjs +3 -3
  427. package/dist/components/ButtonGroup/index.d.ts +1 -1
  428. package/dist/components/ButtonGroup/index.d.ts.map +1 -1
  429. package/dist/components/ButtonGroup/index.js +2 -2
  430. package/dist/components/Calendar/Calendar.d.ts +16 -3
  431. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  432. package/dist/components/Calendar/Calendar.recipe.d.ts +1 -1
  433. package/dist/components/Calendar/index.cjs +14 -12
  434. package/dist/components/Calendar/index.d.ts.map +1 -1
  435. package/dist/components/Calendar/index.js +13 -11
  436. package/dist/components/Card/Card.d.ts.map +1 -1
  437. package/dist/components/Card/index.cjs +2 -2
  438. package/dist/components/Card/index.d.ts +1 -1
  439. package/dist/components/Card/index.d.ts.map +1 -1
  440. package/dist/components/Card/index.js +1 -1
  441. package/dist/components/Center/Center.d.ts.map +1 -1
  442. package/dist/components/Center/index.cjs +2 -2
  443. package/dist/components/Center/index.d.ts +1 -1
  444. package/dist/components/Center/index.d.ts.map +1 -1
  445. package/dist/components/Center/index.js +1 -1
  446. package/dist/components/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  447. package/dist/components/CheckboxInput/CheckboxInput.recipe.d.ts +1 -1
  448. package/dist/components/CheckboxInput/index.cjs +12 -11
  449. package/dist/components/CheckboxInput/index.d.ts.map +1 -1
  450. package/dist/components/CheckboxInput/index.js +11 -10
  451. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -1
  452. package/dist/components/CodeBlock/CodeBlock.recipe.d.ts +1 -1
  453. package/dist/components/CodeBlock/index.cjs +15 -13
  454. package/dist/components/CodeBlock/index.d.ts.map +1 -1
  455. package/dist/components/CodeBlock/index.js +14 -12
  456. package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
  457. package/dist/components/ContextMenu/index.cjs +18 -17
  458. package/dist/components/ContextMenu/index.d.ts.map +1 -1
  459. package/dist/components/ContextMenu/index.js +16 -15
  460. package/dist/components/DateInput/DateInput.d.ts +7 -5
  461. package/dist/components/DateInput/DateInput.d.ts.map +1 -1
  462. package/dist/components/DateInput/index.cjs +19 -17
  463. package/dist/components/DateInput/index.d.ts +1 -1
  464. package/dist/components/DateInput/index.d.ts.map +1 -1
  465. package/dist/components/DateInput/index.js +18 -16
  466. package/dist/components/DateRangeInput/DateRangeInput.d.ts +5 -5
  467. package/dist/components/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  468. package/dist/components/DateRangeInput/index.cjs +19 -17
  469. package/dist/components/DateRangeInput/index.d.ts.map +1 -1
  470. package/dist/components/DateRangeInput/index.js +18 -16
  471. package/dist/components/DateTimeInput/DateTimeInput.d.ts +4 -4
  472. package/dist/components/DateTimeInput/DateTimeInput.d.ts.map +1 -1
  473. package/dist/components/DateTimeInput/index.cjs +21 -19
  474. package/dist/components/DateTimeInput/index.d.ts.map +1 -1
  475. package/dist/components/DateTimeInput/index.js +20 -18
  476. package/dist/components/Dialog/Dialog.d.ts +2 -4
  477. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  478. package/dist/components/Dialog/index.cjs +5 -3
  479. package/dist/components/Dialog/index.d.ts +1 -1
  480. package/dist/components/Dialog/index.d.ts.map +1 -1
  481. package/dist/components/Dialog/index.js +3 -1
  482. package/dist/components/Dialog/useDialog.d.ts.map +1 -1
  483. package/dist/components/Divider/Divider.recipe.d.ts +1 -1
  484. package/dist/components/Divider/index.cjs +2 -2
  485. package/dist/components/Divider/index.d.ts.map +1 -1
  486. package/dist/components/Divider/index.js +1 -1
  487. package/dist/components/Drawer/Drawer.d.ts +10 -2
  488. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  489. package/dist/components/Drawer/Drawer.recipe.d.ts +63 -0
  490. package/dist/components/Drawer/Drawer.recipe.d.ts.map +1 -0
  491. package/dist/components/Drawer/index.cjs +7 -3
  492. package/dist/components/Drawer/index.d.ts +2 -2
  493. package/dist/components/Drawer/index.d.ts.map +1 -1
  494. package/dist/components/Drawer/index.js +5 -1
  495. package/dist/components/Drawer/useDrawer.d.ts.map +1 -1
  496. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  497. package/dist/components/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
  498. package/dist/components/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
  499. package/dist/components/DropdownMenu/index.cjs +19 -18
  500. package/dist/components/DropdownMenu/index.d.ts +1 -1
  501. package/dist/components/DropdownMenu/index.d.ts.map +1 -1
  502. package/dist/components/DropdownMenu/index.js +15 -14
  503. package/dist/components/DropdownMenu/menuUtils.d.ts.map +1 -1
  504. package/dist/components/DropdownMenu/types.d.ts.map +1 -1
  505. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
  506. package/dist/components/EmptyState/EmptyState.recipe.d.ts +1 -1
  507. package/dist/components/EmptyState/index.cjs +5 -5
  508. package/dist/components/EmptyState/index.d.ts +1 -1
  509. package/dist/components/EmptyState/index.d.ts.map +1 -1
  510. package/dist/components/EmptyState/index.js +4 -4
  511. package/dist/components/Field/Field.d.ts +1 -1
  512. package/dist/components/Field/Field.d.ts.map +1 -1
  513. package/dist/components/Field/Field.recipe.d.ts +1 -1
  514. package/dist/components/Field/index.cjs +8 -8
  515. package/dist/components/Field/index.d.ts +1 -1
  516. package/dist/components/Field/index.d.ts.map +1 -1
  517. package/dist/components/Field/index.js +6 -6
  518. package/dist/components/Field/inputUtils.d.ts.map +1 -1
  519. package/dist/components/FileInput/FileInput.d.ts.map +1 -1
  520. package/dist/components/FileInput/FileInput.recipe.d.ts +66 -0
  521. package/dist/components/FileInput/FileInput.recipe.d.ts.map +1 -0
  522. package/dist/components/FileInput/index.cjs +15 -14
  523. package/dist/components/FileInput/index.d.ts +1 -1
  524. package/dist/components/FileInput/index.d.ts.map +1 -1
  525. package/dist/components/FileInput/index.js +14 -13
  526. package/dist/components/HoverCard/HoverCard.d.ts +7 -7
  527. package/dist/components/HoverCard/HoverCard.d.ts.map +1 -1
  528. package/dist/components/HoverCard/index.cjs +4 -4
  529. package/dist/components/HoverCard/index.d.ts.map +1 -1
  530. package/dist/components/HoverCard/index.js +2 -2
  531. package/dist/components/HoverCard/useHoverCard.d.ts.map +1 -1
  532. package/dist/components/Icon/index.cjs +2 -2
  533. package/dist/components/Icon/index.d.ts.map +1 -1
  534. package/dist/components/Icon/index.js +1 -1
  535. package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
  536. package/dist/components/InputGroup/InputGroup.recipe.d.ts +1 -1
  537. package/dist/components/InputGroup/InputGroup.recipe.d.ts.map +1 -1
  538. package/dist/components/InputGroup/InputGroupContext.d.ts.map +1 -1
  539. package/dist/components/InputGroup/InputGroupText.d.ts.map +1 -1
  540. package/dist/components/InputGroup/index.cjs +11 -11
  541. package/dist/components/InputGroup/index.d.ts +2 -2
  542. package/dist/components/InputGroup/index.d.ts.map +1 -1
  543. package/dist/components/InputGroup/index.js +7 -7
  544. package/dist/components/Item/Item.d.ts +1 -1
  545. package/dist/components/Item/Item.d.ts.map +1 -1
  546. package/dist/components/Item/Item.recipe.d.ts +75 -0
  547. package/dist/components/Item/Item.recipe.d.ts.map +1 -0
  548. package/dist/components/Item/index.cjs +8 -8
  549. package/dist/components/Item/index.d.ts +1 -1
  550. package/dist/components/Item/index.d.ts.map +1 -1
  551. package/dist/components/Item/index.js +7 -7
  552. package/dist/components/Kbd/Kbd.recipe.d.ts +1 -1
  553. package/dist/components/Kbd/index.cjs +2 -2
  554. package/dist/components/Kbd/index.d.ts.map +1 -1
  555. package/dist/components/Kbd/index.js +1 -1
  556. package/dist/components/Layout/Layout.d.ts +1 -1
  557. package/dist/components/Layout/Layout.d.ts.map +1 -1
  558. package/dist/components/Layout/Layout.recipe.d.ts +118 -16
  559. package/dist/components/Layout/Layout.recipe.d.ts.map +1 -1
  560. package/dist/components/Layout/LayoutContent.d.ts.map +1 -1
  561. package/dist/components/Layout/LayoutContext.d.ts +0 -7
  562. package/dist/components/Layout/LayoutContext.d.ts.map +1 -1
  563. package/dist/components/Layout/LayoutFooter.d.ts +1 -1
  564. package/dist/components/Layout/LayoutFooter.d.ts.map +1 -1
  565. package/dist/components/Layout/LayoutHeader.d.ts +6 -1
  566. package/dist/components/Layout/LayoutHeader.d.ts.map +1 -1
  567. package/dist/components/Layout/LayoutPanel.d.ts.map +1 -1
  568. package/dist/components/Layout/index.cjs +17 -15
  569. package/dist/components/Layout/index.d.ts +4 -4
  570. package/dist/components/Layout/index.d.ts.map +1 -1
  571. package/dist/components/Layout/index.js +12 -10
  572. package/dist/components/Layout/types.d.ts +4 -2
  573. package/dist/components/Layout/types.d.ts.map +1 -1
  574. package/dist/components/Lightbox/Lightbox.d.ts.map +1 -1
  575. package/dist/components/Lightbox/Lightbox.recipe.d.ts +43 -0
  576. package/dist/components/Lightbox/Lightbox.recipe.d.ts.map +1 -0
  577. package/dist/components/Lightbox/index.cjs +15 -12
  578. package/dist/components/Lightbox/index.d.ts.map +1 -1
  579. package/dist/components/Lightbox/index.js +13 -10
  580. package/dist/components/Lightbox/useLightbox.d.ts.map +1 -1
  581. package/dist/components/Link/Link.d.ts +5 -6
  582. package/dist/components/Link/Link.d.ts.map +1 -1
  583. package/dist/components/Link/Link.recipe.d.ts.map +1 -1
  584. package/dist/components/Link/LinkContext.d.ts.map +1 -1
  585. package/dist/components/Link/LinkProvider.d.ts.map +1 -1
  586. package/dist/components/Link/index.cjs +11 -8
  587. package/dist/components/Link/index.d.ts +1 -1
  588. package/dist/components/Link/index.d.ts.map +1 -1
  589. package/dist/components/Link/index.js +8 -5
  590. package/dist/components/Link/useLinkComponent.d.ts.map +1 -1
  591. package/dist/components/List/List.d.ts.map +1 -1
  592. package/dist/components/List/List.recipe.d.ts +1 -1
  593. package/dist/components/List/index.cjs +9 -10
  594. package/dist/components/List/index.d.ts.map +1 -1
  595. package/dist/components/List/index.js +7 -8
  596. package/dist/components/MetadataList/MetadataList.d.ts.map +1 -1
  597. package/dist/components/MetadataList/MetadataList.recipe.d.ts +37 -0
  598. package/dist/components/MetadataList/MetadataList.recipe.d.ts.map +1 -0
  599. package/dist/components/MetadataList/MetadataListItem.d.ts +6 -1
  600. package/dist/components/MetadataList/MetadataListItem.d.ts.map +1 -1
  601. package/dist/components/MetadataList/index.cjs +11 -7
  602. package/dist/components/MetadataList/index.d.ts +1 -1
  603. package/dist/components/MetadataList/index.d.ts.map +1 -1
  604. package/dist/components/MetadataList/index.js +9 -5
  605. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  606. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  607. package/dist/components/MultiSelect/MultiSelect.recipe.d.ts +41 -0
  608. package/dist/components/MultiSelect/MultiSelect.recipe.d.ts.map +1 -0
  609. package/dist/components/MultiSelect/index.cjs +18 -17
  610. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  611. package/dist/components/MultiSelect/index.js +17 -16
  612. package/dist/components/NavIcon/index.cjs +2 -2
  613. package/dist/components/NavIcon/index.d.ts.map +1 -1
  614. package/dist/components/NavIcon/index.js +1 -1
  615. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  616. package/dist/components/NumberInput/index.cjs +16 -14
  617. package/dist/components/NumberInput/index.d.ts +1 -1
  618. package/dist/components/NumberInput/index.d.ts.map +1 -1
  619. package/dist/components/NumberInput/index.js +15 -13
  620. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  621. package/dist/components/Pagination/index.cjs +13 -11
  622. package/dist/components/Pagination/index.d.ts.map +1 -1
  623. package/dist/components/Pagination/index.js +12 -10
  624. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
  625. package/dist/components/PasswordInput/index.cjs +17 -15
  626. package/dist/components/PasswordInput/index.d.ts +1 -1
  627. package/dist/components/PasswordInput/index.d.ts.map +1 -1
  628. package/dist/components/PasswordInput/index.js +16 -14
  629. package/dist/components/Popover/Popover.d.ts +21 -3
  630. package/dist/components/Popover/Popover.d.ts.map +1 -1
  631. package/dist/components/Popover/index.cjs +14 -13
  632. package/dist/components/Popover/index.d.ts.map +1 -1
  633. package/dist/components/Popover/index.js +12 -11
  634. package/dist/components/Popover/usePopover.d.ts +72 -2
  635. package/dist/components/Popover/usePopover.d.ts.map +1 -1
  636. package/dist/components/Progress/Progress.recipe.d.ts +1 -1
  637. package/dist/components/Progress/index.cjs +3 -3
  638. package/dist/components/Progress/index.d.ts +1 -1
  639. package/dist/components/Progress/index.d.ts.map +1 -1
  640. package/dist/components/Progress/index.js +2 -2
  641. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  642. package/dist/components/RadioGroup/RadioGroup.recipe.d.ts +1 -1
  643. package/dist/components/RadioGroup/index.cjs +13 -12
  644. package/dist/components/RadioGroup/index.d.ts +1 -1
  645. package/dist/components/RadioGroup/index.d.ts.map +1 -1
  646. package/dist/components/RadioGroup/index.js +11 -10
  647. package/dist/components/Rating/Rating.d.ts.map +1 -1
  648. package/dist/components/Rating/Rating.recipe.d.ts +1 -1
  649. package/dist/components/Rating/index.cjs +4 -4
  650. package/dist/components/Rating/index.d.ts.map +1 -1
  651. package/dist/components/Rating/index.js +3 -3
  652. package/dist/components/Schedule/CalendarEvent.d.ts +20 -6
  653. package/dist/components/Schedule/CalendarEvent.d.ts.map +1 -1
  654. package/dist/components/Schedule/DayView.d.ts +7 -1
  655. package/dist/components/Schedule/DayView.d.ts.map +1 -1
  656. package/dist/components/Schedule/ListView.d.ts.map +1 -1
  657. package/dist/components/Schedule/ListView.recipe.d.ts +56 -0
  658. package/dist/components/Schedule/ListView.recipe.d.ts.map +1 -0
  659. package/dist/components/Schedule/MonthlyView.d.ts +12 -1
  660. package/dist/components/Schedule/MonthlyView.d.ts.map +1 -1
  661. package/dist/components/Schedule/MonthlyView.recipe.d.ts +47 -0
  662. package/dist/components/Schedule/MonthlyView.recipe.d.ts.map +1 -0
  663. package/dist/components/Schedule/Schedule.d.ts +2 -6
  664. package/dist/components/Schedule/Schedule.d.ts.map +1 -1
  665. package/dist/components/Schedule/Schedule.recipe.d.ts +8 -0
  666. package/dist/components/Schedule/Schedule.recipe.d.ts.map +1 -0
  667. package/dist/components/Schedule/ScheduleEvent.recipe.d.ts +208 -0
  668. package/dist/components/Schedule/ScheduleEvent.recipe.d.ts.map +1 -0
  669. package/dist/components/Schedule/TimeGridView.d.ts +7 -1
  670. package/dist/components/Schedule/TimeGridView.d.ts.map +1 -1
  671. package/dist/components/Schedule/TimeGridView.recipe.d.ts +43 -0
  672. package/dist/components/Schedule/TimeGridView.recipe.d.ts.map +1 -0
  673. package/dist/components/Schedule/WeeklyView.d.ts +7 -1
  674. package/dist/components/Schedule/WeeklyView.d.ts.map +1 -1
  675. package/dist/components/Schedule/context.d.ts +4 -8
  676. package/dist/components/Schedule/context.d.ts.map +1 -1
  677. package/dist/components/Schedule/dateMath.d.ts +1 -1
  678. package/dist/components/Schedule/dateMath.d.ts.map +1 -1
  679. package/dist/components/Schedule/index.cjs +50 -27
  680. package/dist/components/Schedule/index.d.ts +8 -4
  681. package/dist/components/Schedule/index.d.ts.map +1 -1
  682. package/dist/components/Schedule/index.js +23 -16
  683. package/dist/components/Schedule/plugins/EventMovePlugin.d.ts +23 -0
  684. package/dist/components/Schedule/plugins/EventMovePlugin.d.ts.map +1 -0
  685. package/dist/components/Schedule/plugins/EventPopoverPlugin.d.ts +31 -0
  686. package/dist/components/Schedule/plugins/EventPopoverPlugin.d.ts.map +1 -0
  687. package/dist/components/Schedule/plugins/EventResizePlugin.d.ts +24 -0
  688. package/dist/components/Schedule/plugins/EventResizePlugin.d.ts.map +1 -0
  689. package/dist/components/Schedule/plugins/PaginationPlugin.d.ts +3 -3
  690. package/dist/components/Schedule/plugins/PaginationPlugin.d.ts.map +1 -1
  691. package/dist/components/Schedule/plugins/ScheduleEventPopoverContent.d.ts +39 -0
  692. package/dist/components/Schedule/plugins/ScheduleEventPopoverContent.d.ts.map +1 -0
  693. package/dist/components/Schedule/plugins/ViewSelectorPlugin.d.ts.map +1 -1
  694. package/dist/components/Schedule/plugins/index.d.ts +4 -0
  695. package/dist/components/Schedule/plugins/index.d.ts.map +1 -1
  696. package/dist/components/Schedule/scheduleZonedInstant.d.ts +17 -0
  697. package/dist/components/Schedule/scheduleZonedInstant.d.ts.map +1 -0
  698. package/dist/components/Schedule/shared.d.ts +68 -22
  699. package/dist/components/Schedule/shared.d.ts.map +1 -1
  700. package/dist/components/Schedule/types.d.ts +55 -8
  701. package/dist/components/Schedule/types.d.ts.map +1 -1
  702. package/dist/components/Schedule/useCurrentTime.d.ts.map +1 -1
  703. package/dist/components/SearchFilterInput/SearchFilterInput.d.ts +1 -1
  704. package/dist/components/SearchFilterInput/SearchFilterInput.d.ts.map +1 -1
  705. package/dist/components/SearchFilterInput/SearchFilterInputEditPopover.d.ts.map +1 -1
  706. package/dist/components/SearchFilterInput/SearchFilterInputEditPopover.recipe.d.ts +4 -0
  707. package/dist/components/SearchFilterInput/SearchFilterInputEditPopover.recipe.d.ts.map +1 -0
  708. package/dist/components/SearchFilterInput/SearchFilterInputFilterEditor.d.ts.map +1 -1
  709. package/dist/components/SearchFilterInput/SearchFilterInputTag.d.ts +1 -1
  710. package/dist/components/SearchFilterInput/SearchFilterInputTag.d.ts.map +1 -1
  711. package/dist/components/SearchFilterInput/SearchFilterInputValueEditor.d.ts +1 -2
  712. package/dist/components/SearchFilterInput/SearchFilterInputValueEditor.d.ts.map +1 -1
  713. package/dist/components/SearchFilterInput/formatFilterValue.d.ts +1 -2
  714. package/dist/components/SearchFilterInput/formatFilterValue.d.ts.map +1 -1
  715. package/dist/components/SearchFilterInput/index.cjs +39 -36
  716. package/dist/components/SearchFilterInput/index.d.ts.map +1 -1
  717. package/dist/components/SearchFilterInput/index.js +31 -28
  718. package/dist/components/SearchFilterInput/internalConfig.d.ts.map +1 -1
  719. package/dist/components/SearchFilterInput/types.d.ts.map +1 -1
  720. package/dist/components/SearchFilterInput/useSearchFilterInputConfig.d.ts.map +1 -1
  721. package/dist/components/SearchFilterInput/useSearchFilterInputSource.d.ts.map +1 -1
  722. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  723. package/dist/components/SegmentedControl/SegmentedControl.recipe.d.ts +73 -0
  724. package/dist/components/SegmentedControl/SegmentedControl.recipe.d.ts.map +1 -0
  725. package/dist/components/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
  726. package/dist/components/SegmentedControl/index.cjs +6 -5
  727. package/dist/components/SegmentedControl/index.d.ts +1 -1
  728. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  729. package/dist/components/SegmentedControl/index.js +4 -3
  730. package/dist/components/Select/Select.d.ts +1 -1
  731. package/dist/components/Select/Select.d.ts.map +1 -1
  732. package/dist/components/Select/Select.recipe.d.ts +1 -1
  733. package/dist/components/Select/SelectOption.d.ts.map +1 -1
  734. package/dist/components/Select/index.cjs +19 -18
  735. package/dist/components/Select/index.d.ts +1 -1
  736. package/dist/components/Select/index.d.ts.map +1 -1
  737. package/dist/components/Select/index.js +17 -16
  738. package/dist/components/SideNav/SideNav.d.ts.map +1 -1
  739. package/dist/components/SideNav/SideNav.recipe.d.ts +26 -7
  740. package/dist/components/SideNav/SideNav.recipe.d.ts.map +1 -1
  741. package/dist/components/SideNav/SideNavHeading.d.ts.map +1 -1
  742. package/dist/components/SideNav/SideNavItem.d.ts.map +1 -1
  743. package/dist/components/SideNav/SideNavItem.recipe.d.ts +51 -0
  744. package/dist/components/SideNav/SideNavItem.recipe.d.ts.map +1 -0
  745. package/dist/components/SideNav/SideNavSection.d.ts.map +1 -1
  746. package/dist/components/SideNav/index.cjs +22 -18
  747. package/dist/components/SideNav/index.d.ts +3 -3
  748. package/dist/components/SideNav/index.d.ts.map +1 -1
  749. package/dist/components/SideNav/index.js +16 -12
  750. package/dist/components/Skeleton/index.cjs +2 -2
  751. package/dist/components/Skeleton/index.d.ts +1 -1
  752. package/dist/components/Skeleton/index.d.ts.map +1 -1
  753. package/dist/components/Skeleton/index.js +1 -1
  754. package/dist/components/Slider/Slider.d.ts.map +1 -1
  755. package/dist/components/Slider/Slider.recipe.d.ts +1 -1
  756. package/dist/components/Slider/index.cjs +8 -8
  757. package/dist/components/Slider/index.d.ts.map +1 -1
  758. package/dist/components/Slider/index.js +7 -7
  759. package/dist/components/Spinner/Spinner.d.ts +1 -4
  760. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  761. package/dist/components/Spinner/Spinner.types.d.ts +3 -0
  762. package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
  763. package/dist/components/Spinner/index.cjs +5 -5
  764. package/dist/components/Spinner/index.d.ts.map +1 -1
  765. package/dist/components/Spinner/index.js +4 -4
  766. package/dist/components/SplitButton/SplitButton.d.ts.map +1 -1
  767. package/dist/components/SplitButton/index.cjs +18 -17
  768. package/dist/components/SplitButton/index.d.ts +1 -1
  769. package/dist/components/SplitButton/index.d.ts.map +1 -1
  770. package/dist/components/SplitButton/index.js +17 -16
  771. package/dist/components/Stack/HStack.d.ts.map +1 -1
  772. package/dist/components/Stack/VStack.d.ts.map +1 -1
  773. package/dist/components/Stack/index.cjs +3 -3
  774. package/dist/components/Stack/index.d.ts.map +1 -1
  775. package/dist/components/Stack/index.js +1 -1
  776. package/dist/components/Stack/internal/Stack.d.ts.map +1 -1
  777. package/dist/components/Stepper/Stepper.d.ts +55 -11
  778. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  779. package/dist/components/Stepper/index.cjs +7 -14
  780. package/dist/components/Stepper/index.d.ts +2 -3
  781. package/dist/components/Stepper/index.d.ts.map +1 -1
  782. package/dist/components/Stepper/index.js +6 -5
  783. package/dist/components/Stepper/internal/Step.d.ts +36 -0
  784. package/dist/components/Stepper/internal/Step.d.ts.map +1 -0
  785. package/dist/components/Stepper/internal/Step.recipe.d.ts +164 -0
  786. package/dist/components/Stepper/internal/Step.recipe.d.ts.map +1 -0
  787. package/dist/components/Switch/Switch.d.ts.map +1 -1
  788. package/dist/components/Switch/Switch.recipe.d.ts +1 -1
  789. package/dist/components/Switch/index.cjs +9 -9
  790. package/dist/components/Switch/index.d.ts.map +1 -1
  791. package/dist/components/Switch/index.js +8 -8
  792. package/dist/components/Table/Table.d.ts +45 -3
  793. package/dist/components/Table/Table.d.ts.map +1 -1
  794. package/dist/components/Table/Table.recipe.d.ts +156 -0
  795. package/dist/components/Table/Table.recipe.d.ts.map +1 -0
  796. package/dist/components/Table/TableCell.d.ts.map +1 -1
  797. package/dist/components/Table/TableContext.d.ts.map +1 -1
  798. package/dist/components/Table/TableHeaderCell.d.ts.map +1 -1
  799. package/dist/components/Table/TableRow.d.ts.map +1 -1
  800. package/dist/components/Table/columnUtils.d.ts.map +1 -1
  801. package/dist/components/Table/index.cjs +61 -66
  802. package/dist/components/Table/index.d.ts +2 -4
  803. package/dist/components/Table/index.d.ts.map +1 -1
  804. package/dist/components/Table/index.js +35 -32
  805. package/dist/components/Table/plugins/columnResize/index.d.ts.map +1 -1
  806. package/dist/components/Table/plugins/columnResize/useTableColumnResize.d.ts.map +1 -1
  807. package/dist/components/Table/plugins/columnSettings/index.d.ts.map +1 -1
  808. package/dist/components/Table/plugins/columnSettings/useTableColumnSettings.d.ts +1 -1
  809. package/dist/components/Table/plugins/columnSettings/useTableColumnSettings.d.ts.map +1 -1
  810. package/dist/components/Table/plugins/columnSettings/useTableColumnSettingsState.d.ts.map +1 -1
  811. package/dist/components/Table/plugins/filtering/index.d.ts.map +1 -1
  812. package/dist/components/Table/plugins/filtering/useTableFilterState.d.ts.map +1 -1
  813. package/dist/components/Table/plugins/filtering/useTableFiltering.d.ts +1 -1
  814. package/dist/components/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
  815. package/dist/components/Table/plugins/pagination/index.d.ts +1 -1
  816. package/dist/components/Table/plugins/pagination/index.d.ts.map +1 -1
  817. package/dist/components/Table/plugins/pagination/useTablePagination.d.ts.map +1 -1
  818. package/dist/components/Table/plugins/selection/index.d.ts.map +1 -1
  819. package/dist/components/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  820. package/dist/components/Table/plugins/selection/useTableSelectionState.d.ts.map +1 -1
  821. package/dist/components/Table/plugins/sortable/index.d.ts.map +1 -1
  822. package/dist/components/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
  823. package/dist/components/Table/plugins/sortable/useTableSortableState.d.ts.map +1 -1
  824. package/dist/components/Table/types.d.ts +1 -18
  825. package/dist/components/Table/types.d.ts.map +1 -1
  826. package/dist/components/Table/useBaseTablePlugins.d.ts +1 -1
  827. package/dist/components/Table/useBaseTablePlugins.d.ts.map +1 -1
  828. package/dist/components/Tabs/Tab.d.ts.map +1 -1
  829. package/dist/components/Tabs/TabMenu.d.ts.map +1 -1
  830. package/dist/components/Tabs/TabMenu.recipe.d.ts +21 -0
  831. package/dist/components/Tabs/TabMenu.recipe.d.ts.map +1 -0
  832. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  833. package/dist/components/Tabs/Tabs.recipe.d.ts +65 -0
  834. package/dist/components/Tabs/Tabs.recipe.d.ts.map +1 -0
  835. package/dist/components/Tabs/index.cjs +18 -17
  836. package/dist/components/Tabs/index.d.ts +1 -1
  837. package/dist/components/Tabs/index.d.ts.map +1 -1
  838. package/dist/components/Tabs/index.js +13 -12
  839. package/dist/components/Tag/Tag.d.ts.map +1 -1
  840. package/dist/components/Tag/Tag.recipe.d.ts +1 -1
  841. package/dist/components/Tag/index.cjs +10 -7
  842. package/dist/components/Tag/index.d.ts +1 -1
  843. package/dist/components/Tag/index.d.ts.map +1 -1
  844. package/dist/components/Tag/index.js +9 -6
  845. package/dist/components/TagsInput/TagsInput.d.ts +49 -7
  846. package/dist/components/TagsInput/TagsInput.d.ts.map +1 -1
  847. package/dist/components/TagsInput/TagsInput.recipe.d.ts +45 -0
  848. package/dist/components/TagsInput/TagsInput.recipe.d.ts.map +1 -0
  849. package/dist/components/TagsInput/index.cjs +19 -17
  850. package/dist/components/TagsInput/index.d.ts.map +1 -1
  851. package/dist/components/TagsInput/index.js +18 -16
  852. package/dist/components/Text/Heading.d.ts +6 -6
  853. package/dist/components/Text/Heading.d.ts.map +1 -1
  854. package/dist/components/Text/Text.d.ts +5 -5
  855. package/dist/components/Text/Text.d.ts.map +1 -1
  856. package/dist/components/Text/index.cjs +5 -5
  857. package/dist/components/Text/index.d.ts.map +1 -1
  858. package/dist/components/Text/index.js +3 -3
  859. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  860. package/dist/components/TextArea/index.cjs +10 -10
  861. package/dist/components/TextArea/index.d.ts.map +1 -1
  862. package/dist/components/TextArea/index.js +9 -9
  863. package/dist/components/TextInput/TextInput.d.ts +5 -0
  864. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  865. package/dist/components/TextInput/index.cjs +16 -14
  866. package/dist/components/TextInput/index.d.ts +1 -1
  867. package/dist/components/TextInput/index.d.ts.map +1 -1
  868. package/dist/components/TextInput/index.js +15 -13
  869. package/dist/components/Theme/index.cjs +2 -2
  870. package/dist/components/Theme/index.d.ts.map +1 -1
  871. package/dist/components/Theme/index.js +1 -1
  872. package/dist/components/Thumbnail/Thumbnail.recipe.d.ts +1 -1
  873. package/dist/components/Thumbnail/index.cjs +14 -12
  874. package/dist/components/Thumbnail/index.d.ts.map +1 -1
  875. package/dist/components/Thumbnail/index.js +13 -11
  876. package/dist/components/TimeInput/TimeInput.d.ts +3 -3
  877. package/dist/components/TimeInput/TimeInput.d.ts.map +1 -1
  878. package/dist/components/TimeInput/index.cjs +15 -13
  879. package/dist/components/TimeInput/index.d.ts +1 -1
  880. package/dist/components/TimeInput/index.d.ts.map +1 -1
  881. package/dist/components/TimeInput/index.js +14 -12
  882. package/dist/components/Toast/Toast.d.ts +1 -1
  883. package/dist/components/Toast/Toast.d.ts.map +1 -1
  884. package/dist/components/Toast/Toast.recipe.d.ts +1 -1
  885. package/dist/components/Toast/ToastContext.d.ts.map +1 -1
  886. package/dist/components/Toast/ToastViewport.d.ts.map +1 -1
  887. package/dist/components/Toast/index.cjs +15 -13
  888. package/dist/components/Toast/index.d.ts.map +1 -1
  889. package/dist/components/Toast/index.js +12 -10
  890. package/dist/components/Toast/useToast.d.ts.map +1 -1
  891. package/dist/components/ToggleButton/ToggleButton.d.ts +2 -6
  892. package/dist/components/ToggleButton/ToggleButton.d.ts.map +1 -1
  893. package/dist/components/ToggleButton/ToggleButton.recipe.d.ts +20 -0
  894. package/dist/components/ToggleButton/ToggleButton.recipe.d.ts.map +1 -0
  895. package/dist/components/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
  896. package/dist/components/ToggleButton/index.cjs +8 -8
  897. package/dist/components/ToggleButton/index.d.ts +1 -1
  898. package/dist/components/ToggleButton/index.d.ts.map +1 -1
  899. package/dist/components/ToggleButton/index.js +6 -6
  900. package/dist/components/Tooltip/Tooltip.d.ts +7 -7
  901. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  902. package/dist/components/Tooltip/index.cjs +4 -4
  903. package/dist/components/Tooltip/index.d.ts +1 -1
  904. package/dist/components/Tooltip/index.d.ts.map +1 -1
  905. package/dist/components/Tooltip/index.js +2 -2
  906. package/dist/components/Tooltip/useTooltip.d.ts.map +1 -1
  907. package/dist/components/TopNav/TopNav.d.ts.map +1 -1
  908. package/dist/components/TopNav/TopNav.recipe.d.ts +11 -5
  909. package/dist/components/TopNav/TopNav.recipe.d.ts.map +1 -1
  910. package/dist/components/TopNav/TopNavContext.d.ts +0 -2
  911. package/dist/components/TopNav/TopNavContext.d.ts.map +1 -1
  912. package/dist/components/TopNav/TopNavHeading.d.ts.map +1 -1
  913. package/dist/components/TopNav/TopNavHeading.recipe.d.ts +4 -0
  914. package/dist/components/TopNav/TopNavHeading.recipe.d.ts.map +1 -0
  915. package/dist/components/TopNav/TopNavItem.d.ts +13 -8
  916. package/dist/components/TopNav/TopNavItem.d.ts.map +1 -1
  917. package/dist/components/TopNav/index.cjs +21 -21
  918. package/dist/components/TopNav/index.d.ts +2 -2
  919. package/dist/components/TopNav/index.d.ts.map +1 -1
  920. package/dist/components/TopNav/index.js +16 -12
  921. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  922. package/dist/components/TreeView/TreeView.recipe.d.ts +4 -0
  923. package/dist/components/TreeView/TreeView.recipe.d.ts.map +1 -0
  924. package/dist/components/TreeView/TreeViewBranches.d.ts.map +1 -1
  925. package/dist/components/TreeView/TreeViewBranches.recipe.d.ts +4 -0
  926. package/dist/components/TreeView/TreeViewBranches.recipe.d.ts.map +1 -0
  927. package/dist/components/TreeView/TreeViewItem.d.ts +1 -5
  928. package/dist/components/TreeView/TreeViewItem.d.ts.map +1 -1
  929. package/dist/components/TreeView/TreeViewItem.recipe.d.ts +84 -0
  930. package/dist/components/TreeView/TreeViewItem.recipe.d.ts.map +1 -0
  931. package/dist/components/TreeView/index.cjs +5 -3
  932. package/dist/components/TreeView/index.d.ts +1 -1
  933. package/dist/components/TreeView/index.d.ts.map +1 -1
  934. package/dist/components/TreeView/index.js +4 -2
  935. package/dist/index.cjs +290 -289
  936. package/dist/index.cjs.map +1 -1
  937. package/dist/index.d.ts +7 -7
  938. package/dist/index.d.ts.map +1 -1
  939. package/dist/index.js +88 -83
  940. package/dist/index.js.map +1 -1
  941. package/dist/internal/ActionElement.d.ts +45 -0
  942. package/dist/internal/ActionElement.d.ts.map +1 -0
  943. package/dist/internal/HoverLayerTrigger.d.ts +3 -4
  944. package/dist/internal/HoverLayerTrigger.d.ts.map +1 -1
  945. package/dist/internal/MobileNav/MobileNav.d.ts.map +1 -1
  946. package/dist/internal/MobileNav/index.d.ts +2 -2
  947. package/dist/internal/MobileNav/index.d.ts.map +1 -1
  948. package/dist/internal/dismissBehavior.d.ts +18 -0
  949. package/dist/internal/dismissBehavior.d.ts.map +1 -0
  950. package/dist/internal/index.d.ts +1 -1
  951. package/dist/internal/index.d.ts.map +1 -1
  952. package/dist/internal/parseDateInput.d.ts.map +1 -1
  953. package/dist/internal/plainDate.d.ts.map +1 -1
  954. package/dist/internal/shallowEqual.d.ts +7 -0
  955. package/dist/internal/shallowEqual.d.ts.map +1 -0
  956. package/dist/internal/useBackdropDismiss.d.ts +16 -0
  957. package/dist/internal/useBackdropDismiss.d.ts.map +1 -0
  958. package/dist/internal/useConstant.d.ts +8 -0
  959. package/dist/internal/useConstant.d.ts.map +1 -0
  960. package/dist/internal/useHoverLayer.d.ts.map +1 -1
  961. package/dist/internal/useLatest.d.ts +5 -0
  962. package/dist/internal/useLatest.d.ts.map +1 -0
  963. package/dist/internal/useLayer.d.ts +67 -2
  964. package/dist/internal/useLayer.d.ts.map +1 -1
  965. package/dist/internal/useScrollLock.d.ts +8 -0
  966. package/dist/internal/useScrollLock.d.ts.map +1 -0
  967. package/dist/internal/useSelectListbox.d.ts +5 -5
  968. package/dist/internal/useSelectListbox.d.ts.map +1 -1
  969. package/dist/internal/useShallowEqualMemo.d.ts +13 -0
  970. package/dist/internal/useShallowEqualMemo.d.ts.map +1 -0
  971. package/dist/styles.css +1 -1
  972. package/dist/themes/presets.d.ts.map +1 -1
  973. package/package.json +3 -2
  974. package/dist/chunk-2LABTS4P.js.map +0 -1
  975. package/dist/chunk-2N6FOSNM.js.map +0 -1
  976. package/dist/chunk-2OXKEUKG.cjs.map +0 -1
  977. package/dist/chunk-2P6D43V2.cjs.map +0 -1
  978. package/dist/chunk-2RKMG2TC.js.map +0 -1
  979. package/dist/chunk-2XAA3CM5.js.map +0 -1
  980. package/dist/chunk-3CJC4QE6.js.map +0 -1
  981. package/dist/chunk-3JPUXC5U.js.map +0 -1
  982. package/dist/chunk-3ZV3EGGK.cjs.map +0 -1
  983. package/dist/chunk-4H7X5FGX.js.map +0 -1
  984. package/dist/chunk-52WQDDWQ.js.map +0 -1
  985. package/dist/chunk-5D2OR64D.cjs.map +0 -1
  986. package/dist/chunk-5PX76QOL.cjs +0 -203
  987. package/dist/chunk-5PX76QOL.cjs.map +0 -1
  988. package/dist/chunk-5YS43PSQ.cjs.map +0 -1
  989. package/dist/chunk-6ONAGCCZ.js.map +0 -1
  990. package/dist/chunk-6XWXBXYE.js.map +0 -1
  991. package/dist/chunk-7BSFKG7N.js.map +0 -1
  992. package/dist/chunk-7CCXHH6Y.cjs.map +0 -1
  993. package/dist/chunk-7U7JMRVF.cjs.map +0 -1
  994. package/dist/chunk-AFI4V7LI.js.map +0 -1
  995. package/dist/chunk-AHVHLNHU.cjs.map +0 -1
  996. package/dist/chunk-AJ6X62AI.js.map +0 -1
  997. package/dist/chunk-AP7BDTTF.js.map +0 -1
  998. package/dist/chunk-BLRWA445.cjs.map +0 -1
  999. package/dist/chunk-BSAZRW6T.js.map +0 -1
  1000. package/dist/chunk-C6EYCIKJ.cjs.map +0 -1
  1001. package/dist/chunk-C732WXKS.cjs.map +0 -1
  1002. package/dist/chunk-CGYZ6QWY.js +0 -142
  1003. package/dist/chunk-CGYZ6QWY.js.map +0 -1
  1004. package/dist/chunk-CK3UJQRI.cjs.map +0 -1
  1005. package/dist/chunk-CKTXDIH4.cjs +0 -2029
  1006. package/dist/chunk-CKTXDIH4.cjs.map +0 -1
  1007. package/dist/chunk-D3LZQ5QS.js.map +0 -1
  1008. package/dist/chunk-DIRVAHOF.cjs.map +0 -1
  1009. package/dist/chunk-DVGLYE3G.cjs +0 -287
  1010. package/dist/chunk-DVGLYE3G.cjs.map +0 -1
  1011. package/dist/chunk-DWUEPOYH.js.map +0 -1
  1012. package/dist/chunk-E2A3GJSN.cjs.map +0 -1
  1013. package/dist/chunk-EALKX3ST.cjs +0 -526
  1014. package/dist/chunk-EALKX3ST.cjs.map +0 -1
  1015. package/dist/chunk-EBDODJ5X.js.map +0 -1
  1016. package/dist/chunk-FB245S6T.cjs.map +0 -1
  1017. package/dist/chunk-FDZQPWFZ.cjs.map +0 -1
  1018. package/dist/chunk-FMLIYHDP.js.map +0 -1
  1019. package/dist/chunk-FNOUX5T2.cjs +0 -145
  1020. package/dist/chunk-FNOUX5T2.cjs.map +0 -1
  1021. package/dist/chunk-FNZOICR4.cjs.map +0 -1
  1022. package/dist/chunk-FP5E5BUM.js.map +0 -1
  1023. package/dist/chunk-G2U2W422.js.map +0 -1
  1024. package/dist/chunk-G2WW52GO.cjs.map +0 -1
  1025. package/dist/chunk-G3KKLGZU.cjs.map +0 -1
  1026. package/dist/chunk-GC5VUTUR.cjs.map +0 -1
  1027. package/dist/chunk-GL7PSN7H.cjs.map +0 -1
  1028. package/dist/chunk-GYVWTH3U.cjs.map +0 -1
  1029. package/dist/chunk-H2CZ6IE5.cjs.map +0 -1
  1030. package/dist/chunk-H7HQYBPH.js +0 -2017
  1031. package/dist/chunk-H7HQYBPH.js.map +0 -1
  1032. package/dist/chunk-HINS4GY6.js.map +0 -1
  1033. package/dist/chunk-HNZWPIJE.js.map +0 -1
  1034. package/dist/chunk-IA5GII7N.cjs.map +0 -1
  1035. package/dist/chunk-J5IRFGUP.js.map +0 -1
  1036. package/dist/chunk-JDAJ2HJQ.js.map +0 -1
  1037. package/dist/chunk-JIVYPJKO.js.map +0 -1
  1038. package/dist/chunk-JJ324PSZ.cjs.map +0 -1
  1039. package/dist/chunk-JTFNNEWR.cjs.map +0 -1
  1040. package/dist/chunk-JYVYCU22.cjs.map +0 -1
  1041. package/dist/chunk-KXIILLQD.cjs.map +0 -1
  1042. package/dist/chunk-L6VSBBPP.js.map +0 -1
  1043. package/dist/chunk-LNT2IFOA.js.map +0 -1
  1044. package/dist/chunk-LO5NZY7N.cjs.map +0 -1
  1045. package/dist/chunk-LQIZSE3O.js.map +0 -1
  1046. package/dist/chunk-LUQVSNQL.cjs.map +0 -1
  1047. package/dist/chunk-LY6Z6A54.js.map +0 -1
  1048. package/dist/chunk-M26XECB2.cjs.map +0 -1
  1049. package/dist/chunk-M2MC3E27.cjs.map +0 -1
  1050. package/dist/chunk-MI5QU37D.js.map +0 -1
  1051. package/dist/chunk-N2TNBDQI.js.map +0 -1
  1052. package/dist/chunk-NFABMGNH.js.map +0 -1
  1053. package/dist/chunk-NHXJVSZZ.cjs.map +0 -1
  1054. package/dist/chunk-O2WICOUK.cjs.map +0 -1
  1055. package/dist/chunk-O32BKXTR.cjs.map +0 -1
  1056. package/dist/chunk-OBWWRRL6.cjs.map +0 -1
  1057. package/dist/chunk-PIZMCOKL.js.map +0 -1
  1058. package/dist/chunk-PQEFVHJZ.cjs.map +0 -1
  1059. package/dist/chunk-QATCDVZ6.cjs.map +0 -1
  1060. package/dist/chunk-QOKEU3DC.cjs.map +0 -1
  1061. package/dist/chunk-QRFDPG34.js.map +0 -1
  1062. package/dist/chunk-QSEDH7T2.js.map +0 -1
  1063. package/dist/chunk-QVNDZZS6.cjs.map +0 -1
  1064. package/dist/chunk-QY6OMQW6.js +0 -285
  1065. package/dist/chunk-QY6OMQW6.js.map +0 -1
  1066. package/dist/chunk-R6CMJMIJ.js +0 -200
  1067. package/dist/chunk-R6CMJMIJ.js.map +0 -1
  1068. package/dist/chunk-RDNMAV5B.js.map +0 -1
  1069. package/dist/chunk-RLOGQBFD.js.map +0 -1
  1070. package/dist/chunk-S7INL5NI.js.map +0 -1
  1071. package/dist/chunk-SBOXHIES.js.map +0 -1
  1072. package/dist/chunk-SOCSUNIM.js.map +0 -1
  1073. package/dist/chunk-SSAYBCAD.js.map +0 -1
  1074. package/dist/chunk-SSOAZZNR.cjs.map +0 -1
  1075. package/dist/chunk-SUH62Z64.js.map +0 -1
  1076. package/dist/chunk-TBOQTPRO.cjs.map +0 -1
  1077. package/dist/chunk-TF7XVTSP.cjs.map +0 -1
  1078. package/dist/chunk-TPB53MHV.cjs.map +0 -1
  1079. package/dist/chunk-U6NH54YD.js.map +0 -1
  1080. package/dist/chunk-UKW2C5RN.js +0 -450
  1081. package/dist/chunk-UKW2C5RN.js.map +0 -1
  1082. package/dist/chunk-UUVLEOSD.js.map +0 -1
  1083. package/dist/chunk-VFGSNR35.js.map +0 -1
  1084. package/dist/chunk-VHKA25IV.cjs.map +0 -1
  1085. package/dist/chunk-VK4O6W2K.cjs +0 -454
  1086. package/dist/chunk-VK4O6W2K.cjs.map +0 -1
  1087. package/dist/chunk-VQ7U3ASC.js.map +0 -1
  1088. package/dist/chunk-VUCMGGU5.js.map +0 -1
  1089. package/dist/chunk-W3C6QQF7.js.map +0 -1
  1090. package/dist/chunk-WBGFFP3G.js.map +0 -1
  1091. package/dist/chunk-WOIWI2UO.js.map +0 -1
  1092. package/dist/chunk-X574M2JB.cjs.map +0 -1
  1093. package/dist/chunk-XLKXFJMU.cjs.map +0 -1
  1094. package/dist/chunk-XXBA3KSH.cjs.map +0 -1
  1095. package/dist/chunk-YHBYVERE.cjs +0 -374
  1096. package/dist/chunk-YHBYVERE.cjs.map +0 -1
  1097. package/dist/chunk-YVHWOKR7.cjs.map +0 -1
  1098. package/dist/chunk-YWGYN6YV.cjs.map +0 -1
  1099. package/dist/chunk-YY6KJO5Z.cjs.map +0 -1
  1100. package/dist/chunk-YYNWZRXZ.js.map +0 -1
  1101. package/dist/chunk-Z4TZAJS3.js.map +0 -1
  1102. package/dist/chunk-ZAX2UJBC.js.map +0 -1
  1103. package/dist/chunk-ZFBQ4R7M.cjs.map +0 -1
  1104. package/dist/chunk-ZQUPAIBS.js.map +0 -1
  1105. package/dist/chunk-ZTWBG2XY.cjs.map +0 -1
  1106. package/dist/components/Schedule/zonedDateTime.d.ts +0 -14
  1107. package/dist/components/Schedule/zonedDateTime.d.ts.map +0 -1
  1108. package/dist/components/Stepper/Step.d.ts +0 -62
  1109. package/dist/components/Stepper/Step.d.ts.map +0 -1
  1110. package/dist/components/Stepper/Step.recipe.d.ts +0 -95
  1111. package/dist/components/Stepper/Step.recipe.d.ts.map +0 -1
  1112. package/dist/components/Stepper/StepperContext.d.ts +0 -10
  1113. package/dist/components/Stepper/StepperContext.d.ts.map +0 -1
  1114. package/dist/components/Table/BaseTable.d.ts +0 -6
  1115. package/dist/components/Table/BaseTable.d.ts.map +0 -1
  1116. package/dist/theme/generate-color-scale.d.ts +0 -6
  1117. package/dist/theme/generate-color-scale.d.ts.map +0 -1
@@ -1,2029 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkTF7XVTSP_cjs = require('./chunk-TF7XVTSP.cjs');
4
- var chunk276LEL3G_cjs = require('./chunk-276LEL3G.cjs');
5
- var chunkCK3UJQRI_cjs = require('./chunk-CK3UJQRI.cjs');
6
- var chunkR37R7DEV_cjs = require('./chunk-R37R7DEV.cjs');
7
- var chunkQOKEU3DC_cjs = require('./chunk-QOKEU3DC.cjs');
8
- var chunkSBS7U7CN_cjs = require('./chunk-SBS7U7CN.cjs');
9
- var chunkM26XECB2_cjs = require('./chunk-M26XECB2.cjs');
10
- var chunk7CCXHH6Y_cjs = require('./chunk-7CCXHH6Y.cjs');
11
- var chunk4TIAKZ4Q_cjs = require('./chunk-4TIAKZ4Q.cjs');
12
- var chunkRU6JG3FS_cjs = require('./chunk-RU6JG3FS.cjs');
13
- var chunkSPDVNY2Z_cjs = require('./chunk-SPDVNY2Z.cjs');
14
- var polyfill = require('@js-temporal/polyfill');
15
- var react = require('react');
16
- var jsxRuntime = require('react/jsx-runtime');
17
- var lucideReact = require('lucide-react');
18
-
19
- var DATE_ONLY_RE = /^\d{4}-\d{2}-\d{2}$/;
20
- function createEventFromISO({
21
- category,
22
- end,
23
- id,
24
- start,
25
- title
26
- }) {
27
- if (DATE_ONLY_RE.test(start) && DATE_ONLY_RE.test(end)) {
28
- return {
29
- category,
30
- end: polyfill.Temporal.PlainDate.from(end),
31
- id,
32
- start: polyfill.Temporal.PlainDate.from(start),
33
- title
34
- };
35
- }
36
- return {
37
- category,
38
- end: polyfill.Temporal.Instant.from(end).epochMilliseconds,
39
- id,
40
- start: polyfill.Temporal.Instant.from(start).epochMilliseconds,
41
- title
42
- };
43
- }
44
- var ScheduleContext = react.createContext(null);
45
- ScheduleContext.displayName = "ScheduleContext";
46
- function useScheduleContext() {
47
- const context = react.use(ScheduleContext);
48
- if (context == null) {
49
- throw new Error("Schedule views must be rendered inside Schedule.");
50
- }
51
- return context;
52
- }
53
-
54
- // src/components/Schedule/dateMath.ts
55
- function isDayEvent(event) {
56
- return typeof event.start !== "number";
57
- }
58
- function getScheduleRangeFromDates({
59
- endDate,
60
- startDate,
61
- timezoneID
62
- }) {
63
- return {
64
- end: chunkCK3UJQRI_cjs.plainDateToInstant(endDate, timezoneID),
65
- endDate,
66
- start: chunkCK3UJQRI_cjs.plainDateToInstant(startDate, timezoneID),
67
- startDate
68
- };
69
- }
70
- function enumerateDates(start, endExclusive) {
71
- const dates = [];
72
- let current = start;
73
- while (chunkCK3UJQRI_cjs.plainDateIsBefore(current, endExclusive)) {
74
- dates.push(current);
75
- current = current.add({ days: 1 });
76
- }
77
- return dates;
78
- }
79
- function eventOverlapsRange(event, range, timezoneID) {
80
- if (isDayEvent(event)) {
81
- const eventStart = chunkCK3UJQRI_cjs.plainDateToInstant(event.start, timezoneID);
82
- const eventEnd = chunkCK3UJQRI_cjs.plainDateToInstant(event.end.add({ days: 1 }), timezoneID);
83
- return eventStart < range.end && eventEnd > range.start;
84
- }
85
- return event.start < range.end && event.end > range.start;
86
- }
87
- function eventOccursOnDate(event, date, timezoneID) {
88
- if (isDayEvent(event)) {
89
- return !chunkCK3UJQRI_cjs.plainDateIsAfter(event.start, date) && !chunkCK3UJQRI_cjs.plainDateIsBefore(event.end, date);
90
- }
91
- const startDate = chunkCK3UJQRI_cjs.plainDateFromInstant(event.start, timezoneID);
92
- const endDate = chunkCK3UJQRI_cjs.plainDateFromInstant(
93
- Math.max(event.end - 1, event.start),
94
- timezoneID
95
- );
96
- return !chunkCK3UJQRI_cjs.plainDateIsAfter(startDate, date) && !chunkCK3UJQRI_cjs.plainDateIsBefore(endDate, date);
97
- }
98
- function sortEvents(events, timezoneID) {
99
- return [...events].sort((a, b) => {
100
- const aStart = getEventSortStart(a, timezoneID);
101
- const bStart = getEventSortStart(b, timezoneID);
102
- return aStart < bStart ? -1 : aStart > bStart ? 1 : a.title.localeCompare(b.title);
103
- });
104
- }
105
- function getEventSortStart(event, timezoneID) {
106
- return isDayEvent(event) ? chunkCK3UJQRI_cjs.plainDateToInstant(event.start, timezoneID) : event.start;
107
- }
108
- var styles = {
109
- root: chunkRU6JG3FS_cjs.css({
110
- color: "fg",
111
- fontFamily: "body",
112
- w: "full"
113
- }),
114
- frame: chunkRU6JG3FS_cjs.css({
115
- display: "flex",
116
- flexDirection: "column",
117
- gap: "3",
118
- w: "full"
119
- }),
120
- header: chunkRU6JG3FS_cjs.css({
121
- display: "grid",
122
- gridTemplateColumns: "1fr auto 1fr",
123
- alignItems: "center",
124
- gap: "3"
125
- }),
126
- headerSlotStart: chunkRU6JG3FS_cjs.css({
127
- display: "flex",
128
- justifyContent: "flex-start",
129
- alignItems: "center",
130
- gap: "2"
131
- }),
132
- headerSlotCenter: chunkRU6JG3FS_cjs.css({
133
- display: "flex",
134
- justifyContent: "center",
135
- alignItems: "center",
136
- gap: "2",
137
- textAlign: "center"
138
- }),
139
- headerSlotEnd: chunkRU6JG3FS_cjs.css({
140
- display: "flex",
141
- justifyContent: "flex-end",
142
- alignItems: "center",
143
- gap: "2"
144
- }),
145
- headerTitleContent: chunkRU6JG3FS_cjs.css({
146
- display: "inline-flex",
147
- alignItems: "center",
148
- gap: "2"
149
- }),
150
- surface: chunkRU6JG3FS_cjs.css({
151
- borderWidth: "default",
152
- borderStyle: "solid",
153
- borderColor: "border",
154
- borderRadius: "md",
155
- overflow: "hidden",
156
- bg: "bg"
157
- }),
158
- event: chunkRU6JG3FS_cjs.css({
159
- display: "inline-flex",
160
- alignItems: "baseline",
161
- gap: "1",
162
- maxW: "full",
163
- overflow: "hidden",
164
- textOverflow: "ellipsis",
165
- whiteSpace: "nowrap",
166
- borderWidth: "default",
167
- borderStyle: "solid",
168
- borderColor: "var(--schedule-event-border)",
169
- borderRadius: "sm",
170
- px: "1",
171
- py: "0.5",
172
- fontSize: "xs",
173
- fontWeight: "medium",
174
- lineHeight: "tight",
175
- bg: "var(--schedule-event-bg)",
176
- color: "var(--schedule-event-fg)",
177
- _hover: {
178
- bg: "var(--schedule-event-bg-hover)"
179
- }
180
- }),
181
- eventPast: chunkRU6JG3FS_cjs.css({
182
- "--schedule-event-bg": "color-mix(in srgb, var(--schedule-event-dot) 10%, token(colors.bg))",
183
- "--schedule-event-bg-hover": "color-mix(in srgb, var(--schedule-event-dot) 14%, token(colors.bg))",
184
- "--schedule-event-border": "color-mix(in srgb, var(--schedule-event-dot) 48%, token(colors.border))",
185
- "--schedule-event-fg": "color-mix(in srgb, var(--schedule-event-fg-base) 52%, token(colors.fg.muted))"
186
- }),
187
- eventDot: chunkRU6JG3FS_cjs.css({
188
- display: "inline-block",
189
- w: "2",
190
- h: "2",
191
- borderRadius: "full",
192
- bg: "var(--schedule-event-dot)",
193
- flexShrink: 0
194
- }),
195
- eventTime: chunkRU6JG3FS_cjs.css({
196
- flexShrink: 0,
197
- fontWeight: "normal"
198
- }),
199
- eventTitle: chunkRU6JG3FS_cjs.css({
200
- fontWeight: "bold",
201
- overflow: "hidden",
202
- textOverflow: "ellipsis",
203
- whiteSpace: "nowrap"
204
- })
205
- };
206
- var categoryFallback = { label: "Event", color: "blue" };
207
- var colorStyles = {
208
- blue: chunkRU6JG3FS_cjs.css({
209
- "--schedule-event-bg": "token(colors.surface.blue)",
210
- "--schedule-event-bg-hover": "token(colors.surface.blue.hover)",
211
- "--schedule-event-border": "token(colors.surface.blue.accent)",
212
- "--schedule-event-fg": "token(colors.surface.blue.fg)",
213
- "--schedule-event-fg-base": "token(colors.surface.blue.fg)",
214
- "--schedule-event-dot": "token(colors.surface.blue.accent)"
215
- }),
216
- cyan: chunkRU6JG3FS_cjs.css({
217
- "--schedule-event-bg": "token(colors.surface.cyan)",
218
- "--schedule-event-bg-hover": "token(colors.surface.cyan.hover)",
219
- "--schedule-event-border": "token(colors.surface.cyan.accent)",
220
- "--schedule-event-fg": "token(colors.surface.cyan.fg)",
221
- "--schedule-event-fg-base": "token(colors.surface.cyan.fg)",
222
- "--schedule-event-dot": "token(colors.surface.cyan.accent)"
223
- }),
224
- gray: chunkRU6JG3FS_cjs.css({
225
- "--schedule-event-bg": "token(colors.surface.gray)",
226
- "--schedule-event-bg-hover": "token(colors.surface.gray.hover)",
227
- "--schedule-event-border": "token(colors.surface.gray.accent)",
228
- "--schedule-event-fg": "token(colors.surface.gray.fg)",
229
- "--schedule-event-fg-base": "token(colors.surface.gray.fg)",
230
- "--schedule-event-dot": "token(colors.surface.gray.accent)"
231
- }),
232
- green: chunkRU6JG3FS_cjs.css({
233
- "--schedule-event-bg": "token(colors.surface.green)",
234
- "--schedule-event-bg-hover": "token(colors.surface.green.hover)",
235
- "--schedule-event-border": "token(colors.surface.green.accent)",
236
- "--schedule-event-fg": "token(colors.surface.green.fg)",
237
- "--schedule-event-fg-base": "token(colors.surface.green.fg)",
238
- "--schedule-event-dot": "token(colors.surface.green.accent)"
239
- }),
240
- orange: chunkRU6JG3FS_cjs.css({
241
- "--schedule-event-bg": "token(colors.surface.orange)",
242
- "--schedule-event-bg-hover": "token(colors.surface.orange.hover)",
243
- "--schedule-event-border": "token(colors.surface.orange.accent)",
244
- "--schedule-event-fg": "token(colors.surface.orange.fg)",
245
- "--schedule-event-fg-base": "token(colors.surface.orange.fg)",
246
- "--schedule-event-dot": "token(colors.surface.orange.accent)"
247
- }),
248
- pink: chunkRU6JG3FS_cjs.css({
249
- "--schedule-event-bg": "token(colors.surface.pink)",
250
- "--schedule-event-bg-hover": "token(colors.surface.pink.hover)",
251
- "--schedule-event-border": "token(colors.surface.pink.accent)",
252
- "--schedule-event-fg": "token(colors.surface.pink.fg)",
253
- "--schedule-event-fg-base": "token(colors.surface.pink.fg)",
254
- "--schedule-event-dot": "token(colors.surface.pink.accent)"
255
- }),
256
- purple: chunkRU6JG3FS_cjs.css({
257
- "--schedule-event-bg": "token(colors.surface.purple)",
258
- "--schedule-event-bg-hover": "token(colors.surface.purple.hover)",
259
- "--schedule-event-border": "token(colors.surface.purple.accent)",
260
- "--schedule-event-fg": "token(colors.surface.purple.fg)",
261
- "--schedule-event-fg-base": "token(colors.surface.purple.fg)",
262
- "--schedule-event-dot": "token(colors.surface.purple.accent)"
263
- }),
264
- red: chunkRU6JG3FS_cjs.css({
265
- "--schedule-event-bg": "token(colors.surface.red)",
266
- "--schedule-event-bg-hover": "token(colors.surface.red.hover)",
267
- "--schedule-event-border": "token(colors.surface.red.accent)",
268
- "--schedule-event-fg": "token(colors.surface.red.fg)",
269
- "--schedule-event-fg-base": "token(colors.surface.red.fg)",
270
- "--schedule-event-dot": "token(colors.surface.red.accent)"
271
- }),
272
- teal: chunkRU6JG3FS_cjs.css({
273
- "--schedule-event-bg": "token(colors.surface.teal)",
274
- "--schedule-event-bg-hover": "token(colors.surface.teal.hover)",
275
- "--schedule-event-border": "token(colors.surface.teal.accent)",
276
- "--schedule-event-fg": "token(colors.surface.teal.fg)",
277
- "--schedule-event-fg-base": "token(colors.surface.teal.fg)",
278
- "--schedule-event-dot": "token(colors.surface.teal.accent)"
279
- }),
280
- yellow: chunkRU6JG3FS_cjs.css({
281
- "--schedule-event-bg": "token(colors.surface.yellow)",
282
- "--schedule-event-bg-hover": "token(colors.surface.yellow.hover)",
283
- "--schedule-event-border": "token(colors.surface.yellow.accent)",
284
- "--schedule-event-fg": "token(colors.surface.yellow.fg)",
285
- "--schedule-event-fg-base": "token(colors.surface.yellow.fg)",
286
- "--schedule-event-dot": "token(colors.surface.yellow.accent)"
287
- })
288
- };
289
- function getCategory(categories, event) {
290
- return categories.find((category) => category.label === event.category) ?? (event.category != null ? { label: event.category, color: categoryFallback.color } : categoryFallback);
291
- }
292
- function eventColorClassName(color) {
293
- return colorStyles[color ?? categoryFallback.color];
294
- }
295
- function formatDate(date) {
296
- return chunkCK3UJQRI_cjs.plainDateFormat(date, chunkCK3UJQRI_cjs.DATE_FORMAT_WITH_WEEKDAY);
297
- }
298
- function formatMonthTitle(date) {
299
- return chunkCK3UJQRI_cjs.plainDateFormat(date, chunkCK3UJQRI_cjs.DATE_FORMAT_MONTH_YEAR);
300
- }
301
- function formatWeekTitle(start, end) {
302
- if (start.year === end.year && start.month === end.month) {
303
- return formatMonthTitle(start);
304
- }
305
- const startMonth = chunkCK3UJQRI_cjs.plainDateFormat(start, { month: "long" });
306
- const endMonth = chunkCK3UJQRI_cjs.plainDateFormat(end, { month: "long" });
307
- return start.year === end.year ? `${startMonth} - ${endMonth} ${end.year}` : `${startMonth} ${start.year} - ${endMonth} ${end.year}`;
308
- }
309
- function formatListRangeTitle(start, end) {
310
- return chunkCK3UJQRI_cjs.plainDateIsEqual(start, end) ? formatDate(start) : formatWeekTitle(start, end);
311
- }
312
- function formatTime(instant, timezoneID) {
313
- return polyfill.Temporal.Instant.fromEpochMilliseconds(instant).toZonedDateTimeISO(timezoneID).toLocaleString(void 0, {
314
- hour: "numeric",
315
- minute: "2-digit"
316
- });
317
- }
318
- function formatTimezoneAbbreviation(date, timezoneID) {
319
- const formatter = new Intl.DateTimeFormat(void 0, {
320
- timeZone: timezoneID,
321
- timeZoneName: "short"
322
- });
323
- const parts = formatter.formatToParts(
324
- date.toZonedDateTime(timezoneID).epochMilliseconds
325
- );
326
- return parts.find((part) => part.type === "timeZoneName")?.value ?? timezoneID;
327
- }
328
- function formatHour(hour, _timezoneID) {
329
- return polyfill.Temporal.PlainTime.from({ hour }).toLocaleString(void 0, {
330
- hour: "numeric"
331
- });
332
- }
333
- function getEventTimeLabel(event, timezoneID) {
334
- if (isDayEvent(event)) {
335
- return "all day";
336
- }
337
- return `${formatTime(event.start, timezoneID)} - ${formatTime(event.end, timezoneID)}`;
338
- }
339
- function getEventStartTimeLabel(event, timezoneID) {
340
- return isDayEvent(event) ? null : formatTime(event.start, timezoneID);
341
- }
342
- function getEventAccessibleLabel(event, categories, timezoneID) {
343
- const category = getCategory(categories, event);
344
- return `${event.title}, ${category.label}, ${getEventTimeLabel(event, timezoneID)}`;
345
- }
346
- function getMinutesSinceStartOfDay(instant, timezoneID) {
347
- const zonedTime = polyfill.Temporal.Instant.fromEpochMilliseconds(instant).toZonedDateTimeISO(timezoneID).toPlainTime();
348
- return zonedTime.hour * 60 + zonedTime.minute;
349
- }
350
- function isEventInPast(event, currentTime2, timezoneID) {
351
- if (isDayEvent(event)) {
352
- return chunkCK3UJQRI_cjs.plainDateIsBefore(
353
- event.end,
354
- chunkCK3UJQRI_cjs.plainDateFromInstant(currentTime2, timezoneID)
355
- );
356
- }
357
- return event.end <= currentTime2;
358
- }
359
- function CalendarEventPill({
360
- event,
361
- isPast = false
362
- }) {
363
- const { categories, timezoneID } = useScheduleContext();
364
- const category = getCategory(categories, event);
365
- return /* @__PURE__ */ jsxRuntime.jsx(
366
- "span",
367
- {
368
- className: chunkSPDVNY2Z_cjs.cx(
369
- styles.event,
370
- eventColorClassName(category.color),
371
- isPast && styles.eventPast
372
- ),
373
- "data-state": isPast ? "past" : void 0,
374
- "data-testid": `schedule-event-${event.id}`,
375
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.eventTitle, children: isDayEvent(event) ? event.title : getEventAccessibleLabel(event, categories, timezoneID) })
376
- }
377
- );
378
- }
379
- function CalendarMonthEventPill({
380
- event,
381
- isPast = false
382
- }) {
383
- const { categories, timezoneID } = useScheduleContext();
384
- const category = getCategory(categories, event);
385
- const startTimeLabel = getEventStartTimeLabel(event, timezoneID);
386
- return /* @__PURE__ */ jsxRuntime.jsxs(
387
- "span",
388
- {
389
- className: chunkSPDVNY2Z_cjs.cx(
390
- styles.event,
391
- chunkRU6JG3FS_cjs.css({ w: "full" }),
392
- eventColorClassName(category.color),
393
- isPast && styles.eventPast
394
- ),
395
- "data-state": isPast ? "past" : void 0,
396
- "data-testid": `schedule-event-${event.id}`,
397
- children: [
398
- startTimeLabel != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.eventTime, children: startTimeLabel }) : null,
399
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.eventTitle, children: event.title })
400
- ]
401
- }
402
- );
403
- }
404
- function ScheduleFrame({
405
- children,
406
- title,
407
- titleLabel
408
- }) {
409
- const { isLoading, plugins } = useScheduleContext();
410
- const initialHeader = {
411
- startContent: null,
412
- centerContent: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles.headerTitleContent, children: [
413
- /* @__PURE__ */ jsxRuntime.jsx(chunkM26XECB2_cjs.Heading, { level: 2, children: title }),
414
- isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkSBS7U7CN_cjs.Spinner, { "aria-label": "Loading events", size: "sm" }) : null
415
- ] }),
416
- endContent: null
417
- };
418
- const header = plugins.reduce(
419
- (content, plugin) => plugin.renderHeader?.(
420
- content.startContent,
421
- content.centerContent,
422
- content.endContent
423
- ) ?? content,
424
- initialHeader
425
- );
426
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": titleLabel, className: styles.frame, children: [
427
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.header, children: [
428
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.headerSlotStart, children: header.startContent }),
429
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.headerSlotCenter, children: header.centerContent }),
430
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.headerSlotEnd, children: header.endContent })
431
- ] }),
432
- children
433
- ] });
434
- }
435
- var UPDATE_INTERVAL_MS = 60 * 1e3;
436
- var listeners = /* @__PURE__ */ new Set();
437
- var interval = null;
438
- var currentTime = getCurrentTime();
439
- function getCurrentTime() {
440
- return polyfill.Temporal.Now.instant().epochMilliseconds;
441
- }
442
- function getSnapshot() {
443
- return currentTime;
444
- }
445
- function getServerSnapshot() {
446
- return 0;
447
- }
448
- function subscribe(listener) {
449
- listeners.add(listener);
450
- currentTime = getCurrentTime();
451
- listener();
452
- interval ?? (interval = setInterval(() => {
453
- currentTime = getCurrentTime();
454
- listeners.forEach((activeListener) => activeListener());
455
- }, UPDATE_INTERVAL_MS));
456
- return () => {
457
- listeners.delete(listener);
458
- if (listeners.size === 0 && interval != null) {
459
- clearInterval(interval);
460
- interval = null;
461
- }
462
- };
463
- }
464
- function useCurrentTime() {
465
- return react.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
466
- }
467
- var styles2 = {
468
- grid: chunkRU6JG3FS_cjs.css({
469
- display: "grid",
470
- gridTemplateColumns: "72px 1fr",
471
- overflow: "auto"
472
- }),
473
- header: chunkRU6JG3FS_cjs.css({
474
- display: "grid",
475
- gridTemplateColumns: "repeat(var(--schedule-day-count), minmax(160px, 1fr))",
476
- borderBlockEndWidth: "default",
477
- borderBlockEndStyle: "solid",
478
- borderBlockEndColor: "border"
479
- }),
480
- corner: chunkRU6JG3FS_cjs.css({
481
- borderInlineEndWidth: "default",
482
- borderInlineEndStyle: "solid",
483
- borderInlineEndColor: "border",
484
- borderBlockEndWidth: "default",
485
- borderBlockEndStyle: "solid",
486
- borderBlockEndColor: "border"
487
- }),
488
- dayHeader: chunkRU6JG3FS_cjs.css({
489
- p: "2",
490
- textAlign: "center",
491
- borderInlineEndWidth: "default",
492
- borderInlineEndStyle: "solid",
493
- borderInlineEndColor: "border"
494
- }),
495
- lastColumn: chunkRU6JG3FS_cjs.css({
496
- borderInlineEndWidth: 0
497
- }),
498
- dayHeaderContent: chunkRU6JG3FS_cjs.css({
499
- display: "inline-flex",
500
- alignItems: "center",
501
- justifyContent: "center",
502
- gap: "1"
503
- }),
504
- dayHeaderDayNumber: chunkRU6JG3FS_cjs.css({
505
- display: "inline-flex",
506
- alignItems: "center",
507
- justifyContent: "center",
508
- minW: "30px",
509
- h: "30px",
510
- lineHeight: "30px",
511
- borderRadius: "full"
512
- }),
513
- dayHeaderCurrent: chunkRU6JG3FS_cjs.css({
514
- bg: "primary",
515
- color: "fg.onPrimary"
516
- }),
517
- allDayLabel: chunkRU6JG3FS_cjs.css({
518
- display: "flex",
519
- alignItems: "center",
520
- justifyContent: "flex-end",
521
- py: "1",
522
- px: "2",
523
- borderInlineEndWidth: "default",
524
- borderInlineEndStyle: "solid",
525
- borderInlineEndColor: "border",
526
- borderBlockEndWidth: "default",
527
- borderBlockEndStyle: "solid",
528
- borderBlockEndColor: "border"
529
- }),
530
- allDayRow: chunkRU6JG3FS_cjs.css({
531
- display: "grid",
532
- gridTemplateColumns: "repeat(var(--schedule-day-count), minmax(160px, 1fr))",
533
- borderBlockEndWidth: "default",
534
- borderBlockEndStyle: "solid",
535
- borderBlockEndColor: "border"
536
- }),
537
- dayCell: chunkRU6JG3FS_cjs.css({
538
- minH: 0,
539
- p: "0.5",
540
- borderInlineEndWidth: "default",
541
- borderInlineEndStyle: "solid",
542
- borderInlineEndColor: "border"
543
- }),
544
- timeLabel: chunkRU6JG3FS_cjs.css({
545
- p: "2",
546
- color: "fg.muted",
547
- textAlign: "end",
548
- borderInlineEndWidth: "default",
549
- borderInlineEndStyle: "solid",
550
- borderInlineEndColor: "border",
551
- borderBlockEndWidth: "default",
552
- borderBlockEndStyle: "solid",
553
- borderBlockEndColor: "border"
554
- }),
555
- timeRow: chunkRU6JG3FS_cjs.css({
556
- display: "grid",
557
- gridTemplateColumns: "repeat(var(--schedule-day-count), minmax(160px, 1fr))"
558
- }),
559
- hourCell: chunkRU6JG3FS_cjs.css({
560
- position: "relative",
561
- minH: "14",
562
- p: "1",
563
- borderInlineEndWidth: "default",
564
- borderInlineEndStyle: "solid",
565
- borderInlineEndColor: "border",
566
- borderBlockEndWidth: "default",
567
- borderBlockEndStyle: "solid",
568
- borderBlockEndColor: "border"
569
- }),
570
- lastRow: chunkRU6JG3FS_cjs.css({
571
- borderBlockEndWidth: 0
572
- }),
573
- timedEvent: chunkRU6JG3FS_cjs.css({
574
- position: "absolute",
575
- display: "flex",
576
- flexDirection: "column",
577
- gap: 0,
578
- minH: "9",
579
- minW: 0,
580
- overflow: "hidden",
581
- borderWidth: "default",
582
- borderStyle: "solid",
583
- borderColor: "var(--schedule-event-border)",
584
- borderRadius: "sm",
585
- px: "1",
586
- py: "0.5",
587
- fontSize: "xs",
588
- lineHeight: "tight",
589
- bg: "var(--schedule-event-bg)",
590
- color: "var(--schedule-event-fg)",
591
- _hover: {
592
- bg: "var(--schedule-event-bg-hover)"
593
- }
594
- }),
595
- timedEventTitle: chunkRU6JG3FS_cjs.css({
596
- overflow: "hidden",
597
- textOverflow: "ellipsis",
598
- whiteSpace: "nowrap",
599
- fontWeight: "bold"
600
- }),
601
- timedEventTime: chunkRU6JG3FS_cjs.css({
602
- overflow: "hidden",
603
- textOverflow: "ellipsis",
604
- whiteSpace: "nowrap",
605
- flexShrink: 0,
606
- fontWeight: "normal"
607
- }),
608
- events: chunkRU6JG3FS_cjs.css({
609
- display: "flex",
610
- flexDirection: "column",
611
- gap: "1"
612
- }),
613
- currentTimeLine: chunkRU6JG3FS_cjs.css({
614
- position: "absolute",
615
- insetInline: "0",
616
- borderBlockStartWidth: "2px",
617
- borderBlockStartStyle: "solid",
618
- borderBlockStartColor: "surface.orange.accent",
619
- transform: "translateY(2px)",
620
- zIndex: "20",
621
- pointerEvents: "none",
622
- _before: {
623
- content: '""',
624
- position: "absolute",
625
- insetInlineStart: "-6px",
626
- top: "-6px",
627
- w: "2.5",
628
- h: "2.5",
629
- borderRadius: "full",
630
- bg: "surface.orange.accent"
631
- }
632
- }),
633
- rowContents: chunkRU6JG3FS_cjs.css({
634
- display: "contents"
635
- })
636
- };
637
- function eventOverlapsHour(event, day, hour, timezoneID) {
638
- if (isDayEvent(event)) {
639
- return false;
640
- }
641
- if (!eventOccursOnDate(event, day, timezoneID)) {
642
- return false;
643
- }
644
- const hourStart = day.toPlainDateTime(polyfill.Temporal.PlainTime.from({ hour })).toZonedDateTime(timezoneID).epochMilliseconds;
645
- const hourEnd = hour === 23 ? day.add({ days: 1 }).toZonedDateTime(timezoneID).epochMilliseconds : day.toPlainDateTime(polyfill.Temporal.PlainTime.from({ hour: hour + 1 })).toZonedDateTime(timezoneID).epochMilliseconds;
646
- return event.start < hourEnd && event.end > hourStart;
647
- }
648
- function eventSpansPastDay(event, day, timezoneID) {
649
- return !chunkCK3UJQRI_cjs.plainDateIsEqual(
650
- chunkCK3UJQRI_cjs.plainDateFromInstant(Math.max(event.end - 1, event.start), timezoneID),
651
- day
652
- );
653
- }
654
- function getAvailableTimedEventLevel(levelEndMinutes, visibleStart) {
655
- const level = levelEndMinutes.findIndex(
656
- (endMinute) => visibleStart >= endMinute
657
- );
658
- return level >= 0 ? level : levelEndMinutes.length;
659
- }
660
- function getTimedEventLayouts({
661
- day,
662
- events,
663
- hourHeight,
664
- maxHour,
665
- minHour,
666
- timezoneID
667
- }) {
668
- const levelEndMinutes = [];
669
- const minMinute = minHour * 60;
670
- const maxMinute = maxHour * 60;
671
- return events.map((event) => {
672
- const startDate = chunkCK3UJQRI_cjs.plainDateFromInstant(event.start, timezoneID);
673
- const rawStart = chunkCK3UJQRI_cjs.plainDateIsBefore(startDate, day) ? 0 : getMinutesSinceStartOfDay(event.start, timezoneID);
674
- const rawEnd = eventSpansPastDay(event, day, timezoneID) ? 24 * 60 : getMinutesSinceStartOfDay(event.end, timezoneID);
675
- if (rawEnd <= minMinute || rawStart >= maxMinute) {
676
- return null;
677
- }
678
- const visibleStart = Math.max(rawStart, minMinute);
679
- const visibleEnd = Math.min(
680
- maxMinute,
681
- Math.max(visibleStart + 15, rawEnd)
682
- );
683
- return { event, visibleEnd, visibleStart };
684
- }).filter(
685
- (layout) => layout != null && layout.visibleEnd > layout.visibleStart
686
- ).sort((a, b) => {
687
- if (a.visibleStart !== b.visibleStart) {
688
- return a.visibleStart - b.visibleStart;
689
- }
690
- return a.visibleEnd - b.visibleEnd || a.event.title.localeCompare(b.event.title);
691
- }).map(({ event, visibleEnd, visibleStart }) => {
692
- const level = getAvailableTimedEventLevel(levelEndMinutes, visibleStart);
693
- levelEndMinutes[level] = visibleEnd;
694
- const startHour = Math.floor(visibleStart / 60);
695
- return {
696
- event,
697
- height: (visibleEnd - visibleStart) / 60 * hourHeight,
698
- level,
699
- startHour,
700
- top: (visibleStart - startHour * 60) / 60 * hourHeight
701
- };
702
- });
703
- }
704
- function getTimedEventStyle({
705
- height,
706
- level,
707
- top
708
- }) {
709
- return {
710
- height: `${Math.max(36, height - 5)}px`,
711
- insetInlineEnd: "2px",
712
- insetInlineStart: level === 0 ? "2px" : `calc(2px + ${level * 8}%)`,
713
- top: `${top + 2}px`,
714
- zIndex: level + 1
715
- };
716
- }
717
- function getCellName({
718
- categories,
719
- date,
720
- events,
721
- hourLabel,
722
- timezoneID
723
- }) {
724
- const dateLabel = chunkCK3UJQRI_cjs.plainDateFormat(date, chunkCK3UJQRI_cjs.DATE_FORMAT_WITH_WEEKDAY);
725
- const eventLabels = events.map(
726
- (event) => getEventAccessibleLabel(event, categories, timezoneID)
727
- );
728
- return eventLabels.length > 0 ? `${dateLabel} ${hourLabel}. ${eventLabels.join(". ")}` : `${dateLabel} ${hourLabel}`;
729
- }
730
- function TimeGridView({
731
- days,
732
- hourHeight = 100,
733
- maxHour = 24,
734
- minHour = 0
735
- }) {
736
- const { categories, events, highlightDate, timezoneID } = useScheduleContext();
737
- const normalizedMinHour = Math.max(0, Math.min(23, Math.floor(minHour)));
738
- const normalizedMaxHour = Math.max(
739
- normalizedMinHour + 1,
740
- Math.min(24, Math.floor(maxHour))
741
- );
742
- const hours = Array.from(
743
- { length: normalizedMaxHour - normalizedMinHour },
744
- (_, index) => normalizedMinHour + index
745
- );
746
- const currentTime2 = useCurrentTime();
747
- const highlightPlainDate = highlightDate.toPlainDate();
748
- const timezoneLabel = formatTimezoneAbbreviation(
749
- days[0] ?? highlightPlainDate,
750
- timezoneID
751
- );
752
- const gridStyle = {
753
- "--schedule-day-count": String(days.length)
754
- };
755
- const normalizedHourHeight = Math.max(1, Math.floor(hourHeight));
756
- const hourStyle = {
757
- height: normalizedHourHeight,
758
- minHeight: normalizedHourHeight
759
- };
760
- return /* @__PURE__ */ jsxRuntime.jsxs(
761
- "div",
762
- {
763
- "aria-label": "Schedule time grid",
764
- "aria-readonly": "true",
765
- className: chunkSPDVNY2Z_cjs.cx(styles.surface, styles2.grid),
766
- role: "grid",
767
- style: gridStyle,
768
- children: [
769
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles2.rowContents, role: "row", children: [
770
- /* @__PURE__ */ jsxRuntime.jsx(
771
- "div",
772
- {
773
- "aria-colindex": 1,
774
- "aria-label": "Time",
775
- className: styles2.corner,
776
- role: "columnheader"
777
- }
778
- ),
779
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.header, children: days.map((day, index) => /* @__PURE__ */ jsxRuntime.jsx(
780
- "div",
781
- {
782
- "aria-colindex": index + 2,
783
- "aria-current": chunkCK3UJQRI_cjs.plainDateIsEqual(day, highlightPlainDate) ? "date" : void 0,
784
- "aria-label": chunkCK3UJQRI_cjs.plainDateFormat(day, chunkCK3UJQRI_cjs.DATE_FORMAT_WITH_WEEKDAY),
785
- className: chunkSPDVNY2Z_cjs.cx(
786
- styles2.dayHeader,
787
- index === days.length - 1 && styles2.lastColumn
788
- ),
789
- role: "columnheader",
790
- children: /* @__PURE__ */ jsxRuntime.jsx(
791
- chunkM26XECB2_cjs.Heading,
792
- {
793
- "aria-hidden": "true",
794
- color: "secondary",
795
- level: 4,
796
- textWrap: "nowrap",
797
- children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles2.dayHeaderContent, children: [
798
- chunkCK3UJQRI_cjs.plainDateFormat(day, { weekday: "short" }),
799
- /* @__PURE__ */ jsxRuntime.jsx(
800
- "span",
801
- {
802
- className: chunkSPDVNY2Z_cjs.cx(
803
- styles2.dayHeaderDayNumber,
804
- chunkCK3UJQRI_cjs.plainDateIsEqual(day, highlightPlainDate) && styles2.dayHeaderCurrent
805
- ),
806
- children: day.day
807
- }
808
- )
809
- ] })
810
- }
811
- )
812
- },
813
- day.toString()
814
- )) })
815
- ] }),
816
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles2.rowContents, role: "row", children: [
817
- /* @__PURE__ */ jsxRuntime.jsx(
818
- "div",
819
- {
820
- "aria-colindex": 1,
821
- "aria-label": `${timezoneLabel} all day`,
822
- className: styles2.allDayLabel,
823
- role: "rowheader",
824
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkM26XECB2_cjs.Text, { color: "secondary", type: "supporting", weight: "bold", children: timezoneLabel })
825
- }
826
- ),
827
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.allDayRow, children: days.map((day, index) => {
828
- const dayEvents = events.filter(
829
- (event) => isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
830
- );
831
- return /* @__PURE__ */ jsxRuntime.jsx(
832
- "div",
833
- {
834
- "aria-colindex": index + 2,
835
- "aria-label": getCellName({
836
- categories,
837
- date: day,
838
- events: dayEvents,
839
- hourLabel: "all day",
840
- timezoneID
841
- }),
842
- className: chunkSPDVNY2Z_cjs.cx(
843
- styles2.dayCell,
844
- index === days.length - 1 && styles2.lastColumn
845
- ),
846
- role: "gridcell",
847
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.events, children: dayEvents.map((event) => /* @__PURE__ */ jsxRuntime.jsx(
848
- CalendarEventPill,
849
- {
850
- event,
851
- isPast: isEventInPast(event, currentTime2, timezoneID)
852
- },
853
- event.id
854
- )) })
855
- },
856
- `${day.toString()}-all-day`
857
- );
858
- }) })
859
- ] }),
860
- hours.map((hour) => {
861
- const hourLabel = formatHour(hour);
862
- const isLastHour = hour === hours[hours.length - 1];
863
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles2.rowContents, role: "row", children: [
864
- /* @__PURE__ */ jsxRuntime.jsx(
865
- "div",
866
- {
867
- "aria-colindex": 1,
868
- className: chunkSPDVNY2Z_cjs.cx(styles2.timeLabel, isLastHour && styles2.lastRow),
869
- role: "rowheader",
870
- style: hourStyle,
871
- children: hourLabel
872
- }
873
- ),
874
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.timeRow, children: days.map((day, index) => {
875
- const hourEvents = events.filter(
876
- (event) => eventOverlapsHour(event, day, hour, timezoneID)
877
- );
878
- const visibleTimedEventLayouts = getTimedEventLayouts({
879
- day,
880
- events: events.filter(
881
- (event) => !isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
882
- ),
883
- hourHeight: normalizedHourHeight,
884
- maxHour: normalizedMaxHour,
885
- minHour: normalizedMinHour,
886
- timezoneID
887
- }).filter((layout) => layout.startHour === hour);
888
- const currentTimeTop = getCurrentTimeTopForHour({
889
- currentTime: currentTime2,
890
- day,
891
- hour,
892
- maxHour: normalizedMaxHour,
893
- minHour: normalizedMinHour,
894
- timezoneID
895
- });
896
- return /* @__PURE__ */ jsxRuntime.jsxs(
897
- "div",
898
- {
899
- "aria-colindex": index + 2,
900
- "aria-label": getCellName({
901
- categories,
902
- date: day,
903
- events: hourEvents,
904
- hourLabel,
905
- timezoneID
906
- }),
907
- className: chunkSPDVNY2Z_cjs.cx(
908
- styles2.hourCell,
909
- index === days.length - 1 && styles2.lastColumn,
910
- isLastHour && styles2.lastRow
911
- ),
912
- role: "gridcell",
913
- style: hourStyle,
914
- children: [
915
- currentTimeTop != null ? /* @__PURE__ */ jsxRuntime.jsx(
916
- "div",
917
- {
918
- "aria-hidden": "true",
919
- className: styles2.currentTimeLine,
920
- "data-testid": "schedule-current-time-line",
921
- style: { top: `${currentTimeTop}%` }
922
- }
923
- ) : null,
924
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.events, children: visibleTimedEventLayouts.map((layout) => {
925
- const { event } = layout;
926
- const category = getCategory(categories, event);
927
- return /* @__PURE__ */ jsxRuntime.jsxs(
928
- "div",
929
- {
930
- className: chunkSPDVNY2Z_cjs.cx(
931
- styles2.timedEvent,
932
- eventColorClassName(category.color),
933
- isEventInPast(event, currentTime2, timezoneID) && styles.eventPast
934
- ),
935
- "data-state": isEventInPast(event, currentTime2, timezoneID) ? "past" : void 0,
936
- "data-testid": `schedule-event-${event.id}`,
937
- style: getTimedEventStyle(layout),
938
- children: [
939
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles2.timedEventTitle, children: event.title }),
940
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles2.timedEventTime, children: getEventTimeLabel(event, timezoneID) })
941
- ]
942
- },
943
- event.id
944
- );
945
- }) })
946
- ]
947
- },
948
- `${day.toString()}-${hour}`
949
- );
950
- }) })
951
- ] }, hour);
952
- })
953
- ]
954
- }
955
- );
956
- }
957
- function getCurrentTimeTopForHour({
958
- currentTime: currentTime2,
959
- day,
960
- hour,
961
- maxHour,
962
- minHour,
963
- timezoneID
964
- }) {
965
- if (!chunkCK3UJQRI_cjs.plainDateIsEqual(day, chunkCK3UJQRI_cjs.plainDateFromInstant(currentTime2, timezoneID))) {
966
- return null;
967
- }
968
- const currentMinute = getMinutesSinceStartOfDay(currentTime2, timezoneID);
969
- const minMinute = minHour * 60;
970
- const maxMinute = maxHour * 60;
971
- if (currentMinute < minMinute || currentMinute > maxMinute) {
972
- return null;
973
- }
974
- if (currentMinute === maxMinute) {
975
- return hour === maxHour - 1 ? 100 : null;
976
- }
977
- if (Math.floor(currentMinute / 60) !== hour) {
978
- return null;
979
- }
980
- return currentMinute % 60 / 60 * 100;
981
- }
982
-
983
- // src/components/Schedule/zonedDateTime.ts
984
- function createZonedDateTime(date, timezoneID) {
985
- return zonedDateTimeFromInstant(date, timezoneID);
986
- }
987
- function zonedDateTimeFromInstant(instant, timezoneID) {
988
- return {
989
- addDays: (days) => {
990
- const date = chunkCK3UJQRI_cjs.plainDateFromInstant(instant, timezoneID).add({ days });
991
- return zonedDateTimeFromInstant(
992
- chunkCK3UJQRI_cjs.plainDateToInstant(date, timezoneID),
993
- timezoneID
994
- );
995
- },
996
- instant,
997
- startOfDay: () => {
998
- const date = chunkCK3UJQRI_cjs.plainDateFromInstant(instant, timezoneID);
999
- return zonedDateTimeFromInstant(
1000
- chunkCK3UJQRI_cjs.plainDateToInstant(date, timezoneID),
1001
- timezoneID
1002
- );
1003
- },
1004
- timezoneID,
1005
- toPlainDate: () => chunkCK3UJQRI_cjs.plainDateFromInstant(instant, timezoneID)
1006
- };
1007
- }
1008
- function scheduleRangeToZonedDateTimeRange(range, timezoneID) {
1009
- return [
1010
- zonedDateTimeFromInstant(range.start, timezoneID),
1011
- zonedDateTimeFromInstant(range.end, timezoneID)
1012
- ];
1013
- }
1014
- function ScheduleDayView({
1015
- options
1016
- }) {
1017
- const { viewDate } = useScheduleContext();
1018
- const day = viewDate.toPlainDate();
1019
- return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title: formatMonthTitle(day), titleLabel: formatDate(day), children: /* @__PURE__ */ jsxRuntime.jsx(
1020
- TimeGridView,
1021
- {
1022
- days: [day],
1023
- hourHeight: options.hourHeight,
1024
- maxHour: options.maxHour,
1025
- minHour: options.minHour
1026
- }
1027
- ) });
1028
- }
1029
- function createScheduleDayView({
1030
- hourHeight = 100,
1031
- maxHour = 24,
1032
- minHour = 0
1033
- } = {}) {
1034
- return {
1035
- component: ScheduleDayView,
1036
- getDateRange: (date) => scheduleRangeToZonedDateTimeRange(
1037
- getScheduleRangeFromDates({
1038
- endDate: date.toPlainDate().add({ days: 1 }),
1039
- startDate: date.toPlainDate(),
1040
- timezoneID: date.timezoneID
1041
- }),
1042
- date.timezoneID
1043
- ),
1044
- getNextDateRange: (date) => ({
1045
- label: "Next day",
1046
- range: [date.startOfDay().addDays(1), date.startOfDay().addDays(2)]
1047
- }),
1048
- getPreviousDateRange: (date) => ({
1049
- label: "Previous day",
1050
- range: [date.startOfDay().addDays(-1), date.startOfDay()]
1051
- }),
1052
- options: { hourHeight, maxHour, minHour }
1053
- };
1054
- }
1055
- var styles3 = {
1056
- list: chunkRU6JG3FS_cjs.css({
1057
- display: "flex",
1058
- flexDirection: "column"
1059
- }),
1060
- day: chunkRU6JG3FS_cjs.css({
1061
- display: "grid",
1062
- gridTemplateColumns: "112px minmax(0, 1fr)",
1063
- alignItems: "start",
1064
- columnGap: "3",
1065
- p: "3",
1066
- borderBlockEndWidth: "default",
1067
- borderBlockEndStyle: "solid",
1068
- borderBlockEndColor: "border"
1069
- }),
1070
- dayLast: chunkRU6JG3FS_cjs.css({
1071
- borderBlockEndWidth: 0
1072
- }),
1073
- dayHeading: chunkRU6JG3FS_cjs.css({
1074
- m: 0,
1075
- display: "inline-flex",
1076
- alignItems: "center",
1077
- justifyContent: "flex-start",
1078
- gap: "2",
1079
- color: "fg.muted",
1080
- fontFamily: "body",
1081
- fontSize: "lg",
1082
- fontWeight: "semibold",
1083
- lineHeight: "tight",
1084
- whiteSpace: "nowrap"
1085
- }),
1086
- dayWeekday: chunkRU6JG3FS_cjs.css({
1087
- display: "inline-block",
1088
- fontSize: "lg"
1089
- }),
1090
- dayNumber: chunkRU6JG3FS_cjs.css({
1091
- display: "inline-flex",
1092
- flexShrink: 0,
1093
- alignItems: "center",
1094
- justifyContent: "center",
1095
- w: "30px",
1096
- h: "30px",
1097
- borderRadius: "full",
1098
- fontWeight: "bold"
1099
- }),
1100
- dayNumberCurrent: chunkRU6JG3FS_cjs.css({
1101
- bg: "primary",
1102
- color: "fg.onPrimary"
1103
- }),
1104
- events: chunkRU6JG3FS_cjs.css({
1105
- display: "flex",
1106
- flexDirection: "column",
1107
- gap: "2"
1108
- }),
1109
- eventRow: chunkRU6JG3FS_cjs.css({
1110
- display: "grid",
1111
- gridTemplateColumns: "160px minmax(0, 1fr)",
1112
- alignItems: "center",
1113
- gap: "3"
1114
- }),
1115
- eventPast: chunkRU6JG3FS_cjs.css({
1116
- opacity: 0.64
1117
- }),
1118
- eventContent: chunkRU6JG3FS_cjs.css({
1119
- display: "flex",
1120
- alignItems: "center",
1121
- gap: "2",
1122
- minW: 0
1123
- }),
1124
- eventTime: chunkRU6JG3FS_cjs.css({
1125
- whiteSpace: "nowrap"
1126
- }),
1127
- nowRow: chunkRU6JG3FS_cjs.css({
1128
- h: "0.5",
1129
- bg: "fg.danger",
1130
- borderRadius: "full"
1131
- })
1132
- };
1133
- function ListEvent({
1134
- event,
1135
- isPast
1136
- }) {
1137
- const { categories, timezoneID } = useScheduleContext();
1138
- const category = getCategory(categories, event);
1139
- return /* @__PURE__ */ jsxRuntime.jsxs(
1140
- "div",
1141
- {
1142
- className: chunkSPDVNY2Z_cjs.cx(styles3.eventRow, isPast && styles3.eventPast),
1143
- "data-state": isPast ? "past" : void 0,
1144
- children: [
1145
- /* @__PURE__ */ jsxRuntime.jsx(chunkM26XECB2_cjs.Text, { className: styles3.eventTime, color: "secondary", type: "supporting", children: isDayEvent(event) ? "All day" : getEventTimeLabel(event, timezoneID) }),
1146
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles3.eventContent, children: [
1147
- /* @__PURE__ */ jsxRuntime.jsx(chunk7CCXHH6Y_cjs.Tooltip, { content: category.label, hasHoverIndication: false, children: /* @__PURE__ */ jsxRuntime.jsx(
1148
- "span",
1149
- {
1150
- "aria-label": category.label,
1151
- className: chunkSPDVNY2Z_cjs.cx(
1152
- styles.eventDot,
1153
- eventColorClassName(category.color)
1154
- ),
1155
- role: "img"
1156
- }
1157
- ) }),
1158
- /* @__PURE__ */ jsxRuntime.jsx(chunkM26XECB2_cjs.Text, { children: event.title })
1159
- ] })
1160
- ]
1161
- }
1162
- );
1163
- }
1164
- function ScheduleListView(_props) {
1165
- const { events, highlightDate, isLoading, range, timezoneID } = useScheduleContext();
1166
- const days = enumerateDates(range.startDate, range.endDate);
1167
- const currentTime2 = useCurrentTime();
1168
- const currentPlainDate = chunkCK3UJQRI_cjs.plainDateFromInstant(currentTime2, timezoneID);
1169
- const highlightPlainDate = highlightDate.toPlainDate();
1170
- const endDate = range.endDate.add({ days: -1 });
1171
- const title = formatListRangeTitle(range.startDate, endDate);
1172
- const visibleDays = days.map((day) => {
1173
- const dayEvents = events.filter(
1174
- (event) => eventOccursOnDate(event, day, timezoneID)
1175
- );
1176
- const isCurrentDay = chunkCK3UJQRI_cjs.plainDateIsEqual(day, currentPlainDate);
1177
- const isHighlightedDay = chunkCK3UJQRI_cjs.plainDateIsEqual(day, highlightPlainDate);
1178
- const isBaseDay = chunkCK3UJQRI_cjs.plainDateIsEqual(day, range.startDate);
1179
- return {
1180
- day,
1181
- dayEvents,
1182
- isCurrentDay,
1183
- isHighlightedDay,
1184
- isVisible: dayEvents.length > 0 || isCurrentDay || isBaseDay
1185
- };
1186
- }).filter((dayRecord) => dayRecord.isVisible);
1187
- return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkSPDVNY2Z_cjs.cx(styles.surface, styles3.list), children: visibleDays.map(
1188
- ({ day, dayEvents, isCurrentDay, isHighlightedDay }, index) => {
1189
- const fullDate = chunkCK3UJQRI_cjs.plainDateFormat(day, chunkCK3UJQRI_cjs.DATE_FORMAT_WITH_WEEKDAY);
1190
- return /* @__PURE__ */ jsxRuntime.jsxs(
1191
- "section",
1192
- {
1193
- className: chunkSPDVNY2Z_cjs.cx(
1194
- styles3.day,
1195
- index === visibleDays.length - 1 && styles3.dayLast
1196
- ),
1197
- children: [
1198
- /* @__PURE__ */ jsxRuntime.jsxs(
1199
- "h4",
1200
- {
1201
- "aria-current": isHighlightedDay ? "date" : void 0,
1202
- "aria-label": fullDate,
1203
- className: styles3.dayHeading,
1204
- children: [
1205
- /* @__PURE__ */ jsxRuntime.jsx(
1206
- "span",
1207
- {
1208
- className: chunkSPDVNY2Z_cjs.cx(
1209
- styles3.dayNumber,
1210
- isHighlightedDay && styles3.dayNumberCurrent
1211
- ),
1212
- children: day.day
1213
- }
1214
- ),
1215
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles3.dayWeekday, children: chunkCK3UJQRI_cjs.plainDateFormat(day, { weekday: "short" }) })
1216
- ]
1217
- }
1218
- ),
1219
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles3.events, children: renderListRows({
1220
- currentTime: currentTime2,
1221
- events: dayEvents,
1222
- isShowingCurrentTime: isCurrentDay && !isLoading,
1223
- timezoneID
1224
- }) })
1225
- ]
1226
- },
1227
- day.toString()
1228
- );
1229
- }
1230
- ) }) });
1231
- }
1232
- function renderListRows({
1233
- currentTime: currentTime2,
1234
- events,
1235
- isShowingCurrentTime,
1236
- timezoneID
1237
- }) {
1238
- const rows = events.map((event) => /* @__PURE__ */ jsxRuntime.jsx(
1239
- ListEvent,
1240
- {
1241
- event,
1242
- isPast: isEventInPast(event, currentTime2, timezoneID)
1243
- },
1244
- event.id
1245
- ));
1246
- if (!isShowingCurrentTime) {
1247
- return rows;
1248
- }
1249
- const marker = /* @__PURE__ */ jsxRuntime.jsx(
1250
- "div",
1251
- {
1252
- "aria-hidden": "true",
1253
- className: styles3.nowRow,
1254
- "data-testid": "schedule-list-current-time"
1255
- },
1256
- "current-time"
1257
- );
1258
- const insertIndex = events.findIndex(
1259
- (event) => !isDayEvent(event) && event.start > currentTime2
1260
- );
1261
- if (insertIndex < 0) {
1262
- return [...rows, marker];
1263
- }
1264
- return [...rows.slice(0, insertIndex), marker, ...rows.slice(insertIndex)];
1265
- }
1266
- function createScheduleListView({
1267
- days = 7
1268
- } = {}) {
1269
- return {
1270
- component: ScheduleListView,
1271
- getDateRange: (date) => [
1272
- date.startOfDay(),
1273
- date.startOfDay().addDays(days)
1274
- ],
1275
- getNextDateRange: (date) => ({
1276
- label: "Next range",
1277
- range: [
1278
- date.startOfDay().addDays(days),
1279
- date.startOfDay().addDays(days * 2)
1280
- ]
1281
- }),
1282
- getPreviousDateRange: (date) => ({
1283
- label: "Previous range",
1284
- range: [date.startOfDay().addDays(-days), date.startOfDay()]
1285
- }),
1286
- options: { days }
1287
- };
1288
- }
1289
- var styles4 = {
1290
- grid: chunkRU6JG3FS_cjs.css({
1291
- display: "grid",
1292
- gridTemplateColumns: "repeat(7, minmax(0, 1fr))"
1293
- }),
1294
- weekday: chunkRU6JG3FS_cjs.css({
1295
- p: "2",
1296
- textAlign: "center",
1297
- borderBlockEndWidth: "default",
1298
- borderBlockEndStyle: "solid",
1299
- borderBlockEndColor: "border"
1300
- }),
1301
- cell: chunkRU6JG3FS_cjs.css({
1302
- minH: "24",
1303
- p: "0.5",
1304
- borderInlineEndWidth: "default",
1305
- borderInlineEndStyle: "solid",
1306
- borderInlineEndColor: "border",
1307
- borderBlockEndWidth: "default",
1308
- borderBlockEndStyle: "solid",
1309
- borderBlockEndColor: "border"
1310
- }),
1311
- lastColumn: chunkRU6JG3FS_cjs.css({
1312
- borderInlineEndWidth: 0
1313
- }),
1314
- lastRow: chunkRU6JG3FS_cjs.css({
1315
- borderBlockEndWidth: 0
1316
- }),
1317
- otherMonth: chunkRU6JG3FS_cjs.css({
1318
- bg: "bg.subtle",
1319
- color: "fg.muted"
1320
- }),
1321
- dayNumber: chunkRU6JG3FS_cjs.css({
1322
- display: "inline-flex",
1323
- alignItems: "center",
1324
- justifyContent: "center",
1325
- w: "6",
1326
- h: "6",
1327
- m: "0.5",
1328
- borderRadius: "full"
1329
- }),
1330
- today: chunkRU6JG3FS_cjs.css({
1331
- bg: "primary",
1332
- color: "fg.onPrimary"
1333
- }),
1334
- events: chunkRU6JG3FS_cjs.css({
1335
- display: "flex",
1336
- flexDirection: "column",
1337
- gap: "1",
1338
- m: 0,
1339
- p: 0,
1340
- listStyleType: "none"
1341
- }),
1342
- eventItem: chunkRU6JG3FS_cjs.css({
1343
- display: "flex"
1344
- }),
1345
- monthSurface: chunkRU6JG3FS_cjs.css({
1346
- position: "relative",
1347
- gridColumn: "1 / -1"
1348
- }),
1349
- monthCellGrid: chunkRU6JG3FS_cjs.css({
1350
- display: "grid",
1351
- gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
1352
- gridAutoRows: "128px"
1353
- }),
1354
- monthEventOverlay: chunkRU6JG3FS_cjs.css({
1355
- position: "absolute",
1356
- inset: 0,
1357
- display: "grid",
1358
- gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
1359
- gridAutoRows: "128px",
1360
- pointerEvents: "none"
1361
- }),
1362
- monthEventSpan: chunkRU6JG3FS_cjs.css({
1363
- alignSelf: "start",
1364
- minW: 0,
1365
- mx: "0.5",
1366
- pointerEvents: "auto",
1367
- zIndex: 1
1368
- })
1369
- };
1370
- var weekdays = [
1371
- { label: "Sunday", shortLabel: "Sun" },
1372
- { label: "Monday", shortLabel: "Mon" },
1373
- { label: "Tuesday", shortLabel: "Tue" },
1374
- { label: "Wednesday", shortLabel: "Wed" },
1375
- { label: "Thursday", shortLabel: "Thu" },
1376
- { label: "Friday", shortLabel: "Fri" },
1377
- { label: "Saturday", shortLabel: "Sat" }
1378
- ];
1379
- function getMonthDays(date, weekCount) {
1380
- const firstOfMonth = date.with({ day: 1 });
1381
- const firstVisibleDay = chunkCK3UJQRI_cjs.plainDateSetStartOfWeek(firstOfMonth);
1382
- return Array.from(
1383
- { length: weekCount * 7 },
1384
- (_, index) => firstVisibleDay.add({ days: index })
1385
- );
1386
- }
1387
- function getVisibleMonthRange(date, month, weekCount) {
1388
- const firstVisible = chunkCK3UJQRI_cjs.plainDateSetStartOfWeek(month.with({ day: 1 }));
1389
- const end = firstVisible.add({ days: weekCount * 7 });
1390
- const currentDate = date.toPlainDate();
1391
- return [
1392
- date.startOfDay().addDays(currentDate.until(firstVisible).days),
1393
- date.startOfDay().addDays(currentDate.until(end).days)
1394
- ];
1395
- }
1396
- var MAX_MONTH_EVENT_LEVELS = 4;
1397
- function getEventDateSpan(event, timezoneID) {
1398
- if (isDayEvent(event)) {
1399
- return [event.start, event.end];
1400
- }
1401
- return [
1402
- chunkCK3UJQRI_cjs.plainDateFromInstant(event.start, timezoneID),
1403
- chunkCK3UJQRI_cjs.plainDateFromInstant(Math.max(event.end - 1, event.start), timezoneID)
1404
- ];
1405
- }
1406
- function getAvailableLevel(levels, columnStart) {
1407
- const level = levels.findIndex((columnEnd) => columnStart > columnEnd);
1408
- return level >= 0 ? level : levels.length;
1409
- }
1410
- function getMonthEventSegments(events, days, timezoneID) {
1411
- const segments = [];
1412
- const levelsByWeek = [];
1413
- const firstDay = days[0];
1414
- const lastDay = days[days.length - 1];
1415
- const monthEvents = events.map((event) => {
1416
- const [eventStart, eventEnd] = getEventDateSpan(event, timezoneID);
1417
- const startIndex = days.findIndex(
1418
- (day) => !chunkCK3UJQRI_cjs.plainDateIsBefore(day, eventStart)
1419
- );
1420
- const endIndexFromRight = [...days].reverse().findIndex((day) => !chunkCK3UJQRI_cjs.plainDateIsAfter(day, eventEnd));
1421
- if (startIndex < 0 || endIndexFromRight < 0) {
1422
- return null;
1423
- }
1424
- const endIndex = days.length - 1 - endIndexFromRight;
1425
- return {
1426
- endIndex,
1427
- event,
1428
- isPriority: isDayEvent(event) || endIndex > startIndex,
1429
- startIndex
1430
- };
1431
- }).filter(
1432
- (record) => record != null
1433
- ).sort((a, b) => {
1434
- if (a.startIndex !== b.startIndex) {
1435
- return a.startIndex - b.startIndex;
1436
- }
1437
- if (a.isPriority !== b.isPriority) {
1438
- return a.isPriority ? -1 : 1;
1439
- }
1440
- const aDuration = a.endIndex - a.startIndex;
1441
- const bDuration = b.endIndex - b.startIndex;
1442
- if (aDuration !== bDuration) {
1443
- return bDuration - aDuration;
1444
- }
1445
- return a.event.title.localeCompare(b.event.title);
1446
- });
1447
- monthEvents.forEach(({ endIndex, event, startIndex }) => {
1448
- const [eventStart, eventEnd] = getEventDateSpan(event, timezoneID);
1449
- if (chunkCK3UJQRI_cjs.plainDateIsBefore(eventEnd, firstDay) || chunkCK3UJQRI_cjs.plainDateIsAfter(eventStart, lastDay)) {
1450
- return;
1451
- }
1452
- for (let week = Math.floor(startIndex / 7); week <= Math.floor(endIndex / 7); week += 1) {
1453
- const columnStart = week === Math.floor(startIndex / 7) ? startIndex % 7 : 0;
1454
- const columnEnd = week === Math.floor(endIndex / 7) ? endIndex % 7 : 6;
1455
- const weekLevels = levelsByWeek[week] ?? (levelsByWeek[week] = []);
1456
- const level = getAvailableLevel(weekLevels, columnStart);
1457
- if (level < MAX_MONTH_EVENT_LEVELS) {
1458
- weekLevels[level] = columnEnd;
1459
- segments.push({ columnEnd, columnStart, event, level, week });
1460
- }
1461
- }
1462
- });
1463
- return segments;
1464
- }
1465
- function getMonthEventSegmentStyle({
1466
- columnEnd,
1467
- columnStart,
1468
- level,
1469
- week
1470
- }) {
1471
- return {
1472
- gridColumn: `${columnStart + 1} / ${columnEnd + 2}`,
1473
- gridRow: `${week + 1}`,
1474
- marginBlockStart: `${30 + level * 29}px`
1475
- };
1476
- }
1477
- function getGridCellName({
1478
- date,
1479
- events,
1480
- timezoneID
1481
- }) {
1482
- const eventLabels = events.map(
1483
- (event) => getEventAccessibleLabel(event, [], timezoneID)
1484
- );
1485
- const dateLabel = chunkCK3UJQRI_cjs.plainDateFormat(date, chunkCK3UJQRI_cjs.DATE_FORMAT_WITH_WEEKDAY);
1486
- return eventLabels.length > 0 ? `${dateLabel}. ${eventLabels.join(". ")}` : dateLabel;
1487
- }
1488
- function ScheduleMonthlyView({
1489
- options
1490
- }) {
1491
- const { events, highlightDate, timezoneID, viewDate } = useScheduleContext();
1492
- const currentTime2 = useCurrentTime();
1493
- const month = viewDate.toPlainDate();
1494
- const title = formatMonthTitle(month);
1495
- const days = getMonthDays(month, options.weekCount ?? 6);
1496
- const eventSegments = getMonthEventSegments(events, days, timezoneID);
1497
- const today = highlightDate.toPlainDate();
1498
- return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsxs(
1499
- "div",
1500
- {
1501
- "aria-label": title,
1502
- className: chunkSPDVNY2Z_cjs.cx(styles.surface, styles4.grid),
1503
- role: "grid",
1504
- children: [
1505
- weekdays.map((weekday, index) => /* @__PURE__ */ jsxRuntime.jsx(
1506
- "div",
1507
- {
1508
- "aria-colindex": index + 1,
1509
- "aria-label": weekday.label,
1510
- className: styles4.weekday,
1511
- role: "columnheader",
1512
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkM26XECB2_cjs.Heading, { color: "secondary", level: 4, children: weekday.shortLabel })
1513
- },
1514
- weekday.label
1515
- )),
1516
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles4.monthSurface, children: [
1517
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles4.monthCellGrid, children: days.map((day, index) => {
1518
- const dayEvents = events.filter(
1519
- (event) => eventOccursOnDate(event, day, timezoneID)
1520
- );
1521
- const isCurrentMonth = day.month === month.month && day.year === month.year;
1522
- const isLastColumn = index % 7 === 6;
1523
- const isLastRow = index >= days.length - 7;
1524
- return /* @__PURE__ */ jsxRuntime.jsx(
1525
- "div",
1526
- {
1527
- "aria-current": chunkCK3UJQRI_cjs.plainDateIsEqual(day, today) ? "date" : void 0,
1528
- "aria-label": getGridCellName({
1529
- date: day,
1530
- events: dayEvents,
1531
- timezoneID
1532
- }),
1533
- className: chunkSPDVNY2Z_cjs.cx(
1534
- styles4.cell,
1535
- isLastColumn ? styles4.lastColumn : void 0,
1536
- isLastRow ? styles4.lastRow : void 0,
1537
- !isCurrentMonth ? styles4.otherMonth : void 0
1538
- ),
1539
- role: "gridcell",
1540
- children: /* @__PURE__ */ jsxRuntime.jsx(
1541
- "span",
1542
- {
1543
- className: chunkSPDVNY2Z_cjs.cx(
1544
- styles4.dayNumber,
1545
- chunkCK3UJQRI_cjs.plainDateIsEqual(day, today) ? styles4.today : void 0
1546
- ),
1547
- children: /* @__PURE__ */ jsxRuntime.jsx(
1548
- chunkM26XECB2_cjs.Text,
1549
- {
1550
- as: "span",
1551
- color: "inherit",
1552
- hasTabularNumbers: true,
1553
- type: "supporting",
1554
- weight: "medium",
1555
- children: day.day
1556
- }
1557
- )
1558
- }
1559
- )
1560
- },
1561
- day.toString()
1562
- );
1563
- }) }),
1564
- /* @__PURE__ */ jsxRuntime.jsx("div", { "aria-hidden": "true", className: styles4.monthEventOverlay, children: eventSegments.map((segment) => /* @__PURE__ */ jsxRuntime.jsx(
1565
- "div",
1566
- {
1567
- className: styles4.monthEventSpan,
1568
- "data-testid": `schedule-event-span-${segment.event.id}`,
1569
- style: getMonthEventSegmentStyle(segment),
1570
- children: /* @__PURE__ */ jsxRuntime.jsx(
1571
- CalendarMonthEventPill,
1572
- {
1573
- event: segment.event,
1574
- isPast: isEventInPast(segment.event, currentTime2, timezoneID)
1575
- }
1576
- )
1577
- },
1578
- `${segment.event.id}:${segment.week}:${segment.columnStart}`
1579
- )) })
1580
- ] })
1581
- ]
1582
- }
1583
- ) });
1584
- }
1585
- function createScheduleMonthlyView({
1586
- weekCount = 6
1587
- } = {}) {
1588
- return {
1589
- component: ScheduleMonthlyView,
1590
- getDateRange: (date) => {
1591
- const month = date.toPlainDate();
1592
- return getVisibleMonthRange(date, month, weekCount);
1593
- },
1594
- getNextDateRange: (date) => {
1595
- const nextMonth = date.toPlainDate().with({ day: 1 }).add({ months: 1 });
1596
- return {
1597
- label: "Next month",
1598
- range: getVisibleMonthRange(date, nextMonth, weekCount)
1599
- };
1600
- },
1601
- getPreviousDateRange: (date) => {
1602
- const previousMonth = date.toPlainDate().with({ day: 1 }).subtract({ months: 1 });
1603
- return {
1604
- label: "Previous month",
1605
- range: getVisibleMonthRange(date, previousMonth, weekCount)
1606
- };
1607
- },
1608
- options: { weekCount }
1609
- };
1610
- }
1611
- function SchedulePaginationControls() {
1612
- const {
1613
- nextDateLabel,
1614
- onNextDate,
1615
- onPreviousDate,
1616
- onToday,
1617
- previousDateLabel
1618
- } = useScheduleContext();
1619
- return /* @__PURE__ */ jsxRuntime.jsxs(chunk276LEL3G_cjs.ButtonGroup, { label: "Schedule pagination", size: "sm", children: [
1620
- /* @__PURE__ */ jsxRuntime.jsx(
1621
- chunkQOKEU3DC_cjs.Button,
1622
- {
1623
- icon: lucideReact.ChevronLeft,
1624
- isIconOnly: true,
1625
- label: previousDateLabel,
1626
- onClick: onPreviousDate
1627
- }
1628
- ),
1629
- /* @__PURE__ */ jsxRuntime.jsx(chunkQOKEU3DC_cjs.Button, { label: "Today", onClick: onToday, size: "sm" }),
1630
- /* @__PURE__ */ jsxRuntime.jsx(
1631
- chunkQOKEU3DC_cjs.Button,
1632
- {
1633
- icon: lucideReact.ChevronRight,
1634
- isIconOnly: true,
1635
- label: nextDateLabel,
1636
- onClick: onNextDate
1637
- }
1638
- )
1639
- ] });
1640
- }
1641
- function createSchedulePaginationPlugin({
1642
- position = "start"
1643
- } = {}) {
1644
- return {
1645
- renderHeader(startContent, centerContent, endContent) {
1646
- const controls = /* @__PURE__ */ jsxRuntime.jsx(SchedulePaginationControls, {});
1647
- return position === "start" ? {
1648
- centerContent,
1649
- endContent,
1650
- startContent: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1651
- controls,
1652
- startContent
1653
- ] })
1654
- } : {
1655
- centerContent,
1656
- endContent: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1657
- endContent,
1658
- controls
1659
- ] }),
1660
- startContent
1661
- };
1662
- }
1663
- };
1664
- }
1665
- var defaultSchedulePaginationPlugin = createSchedulePaginationPlugin();
1666
- function useSchedulePaginationPlugin({
1667
- position = "start"
1668
- } = {}) {
1669
- return react.useMemo(() => createSchedulePaginationPlugin({ position }), [position]);
1670
- }
1671
- function ScheduleViewSelectorControl({
1672
- onChangeView,
1673
- options
1674
- }) {
1675
- const { view } = useScheduleContext();
1676
- const currentOption = options.find((option) => option.view === view);
1677
- return /* @__PURE__ */ jsxRuntime.jsx(
1678
- chunkTF7XVTSP_cjs.DropdownMenu,
1679
- {
1680
- button: {
1681
- isDisabled: onChangeView == null,
1682
- label: currentOption?.label ?? "View",
1683
- size: "sm"
1684
- },
1685
- menuWidth: 160,
1686
- children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
1687
- chunkTF7XVTSP_cjs.DropdownMenuItem,
1688
- {
1689
- endContent: option.view === view ? /* @__PURE__ */ jsxRuntime.jsx(
1690
- chunk4TIAKZ4Q_cjs.Icon,
1691
- {
1692
- color: "primary",
1693
- "data-testid": "schedule-view-selector-selected-icon",
1694
- icon: lucideReact.Check,
1695
- size: "sm"
1696
- }
1697
- ) : null,
1698
- label: option.label,
1699
- onClick: () => onChangeView?.(option.view)
1700
- },
1701
- option.label
1702
- ))
1703
- }
1704
- );
1705
- }
1706
- function createScheduleViewSelectorPlugin(options, {
1707
- onChangeView,
1708
- position = "end"
1709
- } = {}) {
1710
- return {
1711
- renderHeader(startContent, centerContent, endContent) {
1712
- const selector = /* @__PURE__ */ jsxRuntime.jsx(
1713
- ScheduleViewSelectorControl,
1714
- {
1715
- onChangeView,
1716
- options
1717
- }
1718
- );
1719
- return position === "start" ? {
1720
- centerContent,
1721
- endContent,
1722
- startContent: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1723
- startContent,
1724
- selector
1725
- ] })
1726
- } : {
1727
- centerContent,
1728
- endContent: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1729
- endContent,
1730
- selector
1731
- ] }),
1732
- startContent
1733
- };
1734
- }
1735
- };
1736
- }
1737
- function useScheduleViewSelectorPlugin(options, pluginOptions = {}) {
1738
- const { onChangeView, position = "end" } = pluginOptions;
1739
- return react.useMemo(
1740
- () => createScheduleViewSelectorPlugin(options, { onChangeView, position }),
1741
- [onChangeView, options, position]
1742
- );
1743
- }
1744
-
1745
- // src/components/Schedule/plugins/index.tsx
1746
- var defaultSchedulePlugins = [
1747
- defaultSchedulePaginationPlugin
1748
- ];
1749
- var EMPTY_CATEGORIES = [];
1750
- function readAsyncEvents(loader, start, end, cache) {
1751
- const key = `${start}:${end}`;
1752
- let record = cache.get(key);
1753
- if (record == null) {
1754
- record = {
1755
- error: null,
1756
- promise: Promise.resolve().then(async () => loader(start, end)).then(
1757
- (value) => {
1758
- if (record != null) {
1759
- record.status = "fulfilled";
1760
- record.value = value;
1761
- }
1762
- },
1763
- (error) => {
1764
- if (record != null) {
1765
- record.status = "rejected";
1766
- record.error = error;
1767
- }
1768
- }
1769
- ),
1770
- status: "pending",
1771
- value: []
1772
- };
1773
- cache.set(key, record);
1774
- }
1775
- if (record.status === "pending") {
1776
- throw record.promise;
1777
- }
1778
- if (record.status === "rejected") {
1779
- throw record.error instanceof Error ? record.error : new Error(String(record.error));
1780
- }
1781
- return record.value;
1782
- }
1783
- function resolveEvents(eventSource, range, timezoneID, eventCache) {
1784
- const events = typeof eventSource === "function" ? readAsyncEvents(eventSource, range.start, range.end, eventCache) : eventSource;
1785
- return sortEvents(
1786
- events.filter((event) => eventOverlapsRange(event, range, timezoneID)),
1787
- timezoneID
1788
- );
1789
- }
1790
- function getRange(view, date) {
1791
- const [start, end] = view.getDateRange(date);
1792
- return {
1793
- end: end.instant,
1794
- endDate: chunkCK3UJQRI_cjs.plainDateFromInstant(end.instant, end.timezoneID),
1795
- start: start.instant,
1796
- startDate: chunkCK3UJQRI_cjs.plainDateFromInstant(start.instant, start.timezoneID)
1797
- };
1798
- }
1799
- function ScheduleViewContent({
1800
- categories,
1801
- eventCache,
1802
- eventSource,
1803
- highlightDate,
1804
- isLoading,
1805
- nextDateLabel,
1806
- onNextDate,
1807
- onPreviousDate,
1808
- onToday,
1809
- plugins,
1810
- previousDateLabel,
1811
- view,
1812
- viewDate
1813
- }) {
1814
- const Component = view.component;
1815
- const range = getRange(view, viewDate);
1816
- const contextValue = react.useMemo(() => {
1817
- const events = isLoading ? [] : resolveEvents(eventSource, range, viewDate.timezoneID, eventCache);
1818
- return {
1819
- categories,
1820
- events,
1821
- highlightDate,
1822
- isLoading,
1823
- nextDateLabel,
1824
- onNextDate,
1825
- onPreviousDate,
1826
- onToday,
1827
- plugins,
1828
- previousDateLabel,
1829
- range,
1830
- timezoneID: viewDate.timezoneID,
1831
- view,
1832
- viewDate
1833
- };
1834
- }, [
1835
- categories,
1836
- eventCache,
1837
- eventSource,
1838
- highlightDate,
1839
- isLoading,
1840
- nextDateLabel,
1841
- onNextDate,
1842
- onPreviousDate,
1843
- onToday,
1844
- plugins,
1845
- previousDateLabel,
1846
- range,
1847
- view,
1848
- viewDate
1849
- ]);
1850
- return /* @__PURE__ */ jsxRuntime.jsx(ScheduleContext, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(Component, { options: view.options }) });
1851
- }
1852
- function Schedule({
1853
- categories = EMPTY_CATEGORIES,
1854
- className,
1855
- "data-testid": dataTestId,
1856
- events,
1857
- highlightDate: highlightDateFromProps,
1858
- onViewDateChange,
1859
- plugins = defaultSchedulePlugins,
1860
- ref,
1861
- style,
1862
- timezoneID: timezoneIDFromProps,
1863
- view,
1864
- viewDate
1865
- }) {
1866
- const timezoneID = timezoneIDFromProps ?? chunkR37R7DEV_cjs.getBrowserTimezoneID();
1867
- const [eventCache] = react.useState(() => /* @__PURE__ */ new Map());
1868
- const [internalHighlightDate] = react.useState(
1869
- () => chunkR37R7DEV_cjs.nowEpochMilliseconds()
1870
- );
1871
- const highlightDate = highlightDateFromProps ?? internalHighlightDate;
1872
- const zonedDateTime = react.useMemo(
1873
- () => createZonedDateTime(viewDate, timezoneID),
1874
- [viewDate, timezoneID]
1875
- );
1876
- const highlightZonedDateTime = react.useMemo(
1877
- () => createZonedDateTime(highlightDate, timezoneID),
1878
- [highlightDate, timezoneID]
1879
- );
1880
- const updateViewDate = react.useCallback(
1881
- (nextViewDate) => {
1882
- onViewDateChange?.(nextViewDate);
1883
- },
1884
- [onViewDateChange]
1885
- );
1886
- const shiftToRange = react.useCallback(
1887
- (nextRange) => {
1888
- const currentRange = view.getDateRange(zonedDateTime);
1889
- updateViewDate(
1890
- zonedDateTime.instant + nextRange[0].instant - currentRange[0].instant
1891
- );
1892
- },
1893
- [updateViewDate, view, zonedDateTime]
1894
- );
1895
- const previousDateRange = react.useMemo(
1896
- () => view.getPreviousDateRange(zonedDateTime),
1897
- [view, zonedDateTime]
1898
- );
1899
- const nextDateRange = react.useMemo(
1900
- () => view.getNextDateRange(zonedDateTime),
1901
- [view, zonedDateTime]
1902
- );
1903
- const onPreviousDate = react.useCallback(() => {
1904
- shiftToRange(previousDateRange.range);
1905
- }, [previousDateRange, shiftToRange]);
1906
- const onToday = react.useCallback(() => {
1907
- updateViewDate(chunkR37R7DEV_cjs.nowEpochMilliseconds());
1908
- }, [updateViewDate]);
1909
- const onNextDate = react.useCallback(() => {
1910
- shiftToRange(nextDateRange.range);
1911
- }, [nextDateRange, shiftToRange]);
1912
- return /* @__PURE__ */ jsxRuntime.jsx(
1913
- "div",
1914
- {
1915
- className: chunkSPDVNY2Z_cjs.cx(styles.root, className),
1916
- "data-testid": dataTestId,
1917
- ref,
1918
- style,
1919
- children: /* @__PURE__ */ jsxRuntime.jsx(
1920
- react.Suspense,
1921
- {
1922
- fallback: /* @__PURE__ */ jsxRuntime.jsx(
1923
- ScheduleViewContent,
1924
- {
1925
- categories,
1926
- eventCache,
1927
- eventSource: [],
1928
- highlightDate: highlightZonedDateTime,
1929
- isLoading: true,
1930
- nextDateLabel: nextDateRange.label,
1931
- onNextDate,
1932
- onPreviousDate,
1933
- onToday,
1934
- plugins,
1935
- previousDateLabel: previousDateRange.label,
1936
- view,
1937
- viewDate: zonedDateTime
1938
- }
1939
- ),
1940
- children: /* @__PURE__ */ jsxRuntime.jsx(
1941
- ScheduleViewContent,
1942
- {
1943
- categories,
1944
- eventCache,
1945
- eventSource: events,
1946
- highlightDate: highlightZonedDateTime,
1947
- isLoading: false,
1948
- nextDateLabel: nextDateRange.label,
1949
- onNextDate,
1950
- onPreviousDate,
1951
- onToday,
1952
- plugins,
1953
- previousDateLabel: previousDateRange.label,
1954
- view,
1955
- viewDate: zonedDateTime
1956
- }
1957
- )
1958
- }
1959
- )
1960
- }
1961
- );
1962
- }
1963
- Schedule.displayName = "Schedule";
1964
- function ScheduleWeeklyView({
1965
- options
1966
- }) {
1967
- const { range } = useScheduleContext();
1968
- const days = enumerateDates(range.startDate, range.endDate);
1969
- const title = formatWeekTitle(days[0], days[days.length - 1]);
1970
- return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsx(
1971
- TimeGridView,
1972
- {
1973
- days,
1974
- hourHeight: options.hourHeight,
1975
- maxHour: options.maxHour,
1976
- minHour: options.minHour
1977
- }
1978
- ) });
1979
- }
1980
- function createScheduleWeeklyView({
1981
- hourHeight = 100,
1982
- maxHour = 24,
1983
- minHour = 0,
1984
- weekStartsOn = 0
1985
- } = {}) {
1986
- const getWeekStart = (date) => setStartOfWeek(date.toPlainDate(), weekStartsOn);
1987
- const getWeekRange = (date) => {
1988
- const startDate = getWeekStart(date);
1989
- return scheduleRangeToZonedDateTimeRange(
1990
- getScheduleRangeFromDates({
1991
- endDate: startDate.add({ days: 7 }),
1992
- startDate,
1993
- timezoneID: date.timezoneID
1994
- }),
1995
- date.timezoneID
1996
- );
1997
- };
1998
- return {
1999
- component: ScheduleWeeklyView,
2000
- getDateRange: getWeekRange,
2001
- getNextDateRange: (date) => ({
2002
- label: "Next week",
2003
- range: getWeekRange(date.addDays(7))
2004
- }),
2005
- getPreviousDateRange: (date) => ({
2006
- label: "Previous week",
2007
- range: getWeekRange(date.addDays(-7))
2008
- }),
2009
- options: { hourHeight, maxHour, minHour, weekStartsOn }
2010
- };
2011
- }
2012
- function setStartOfWeek(date, weekStartsOn) {
2013
- const daysSinceWeekStart = (chunkCK3UJQRI_cjs.plainDateDayOfWeek(date) - weekStartsOn + 7) % 7;
2014
- return date.add({ days: -daysSinceWeekStart });
2015
- }
2016
-
2017
- exports.Schedule = Schedule;
2018
- exports.ScheduleContext = ScheduleContext;
2019
- exports.createEventFromISO = createEventFromISO;
2020
- exports.createScheduleDayView = createScheduleDayView;
2021
- exports.createScheduleListView = createScheduleListView;
2022
- exports.createScheduleMonthlyView = createScheduleMonthlyView;
2023
- exports.createScheduleWeeklyView = createScheduleWeeklyView;
2024
- exports.defaultSchedulePlugins = defaultSchedulePlugins;
2025
- exports.useScheduleContext = useScheduleContext;
2026
- exports.useSchedulePaginationPlugin = useSchedulePaginationPlugin;
2027
- exports.useScheduleViewSelectorPlugin = useScheduleViewSelectorPlugin;
2028
- //# sourceMappingURL=chunk-CKTXDIH4.cjs.map
2029
- //# sourceMappingURL=chunk-CKTXDIH4.cjs.map