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