silver-ui 0.3.1 → 0.5.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.
- package/dist/{chunk-YAYINZT2.cjs → chunk-27EAV2GT.cjs} +3 -3
- package/dist/chunk-27EAV2GT.cjs.map +1 -0
- package/dist/{chunk-AMFFE5UJ.js → chunk-2AWSJF22.js} +5 -5
- package/dist/{chunk-AMFFE5UJ.js.map → chunk-2AWSJF22.js.map} +1 -1
- package/dist/{chunk-66LRFIYK.cjs → chunk-2F5TDBRT.cjs} +171 -153
- package/dist/chunk-2F5TDBRT.cjs.map +1 -0
- package/dist/{chunk-MUUPZEZ5.cjs → chunk-2GMDMZKI.cjs} +6 -6
- package/dist/chunk-2GMDMZKI.cjs.map +1 -0
- package/dist/{chunk-BS55BG2U.cjs → chunk-2K4I2MB3.cjs} +7 -7
- package/dist/{chunk-BS55BG2U.cjs.map → chunk-2K4I2MB3.cjs.map} +1 -1
- package/dist/{chunk-WMXIUOOU.cjs → chunk-2MXK2SDR.cjs} +3 -3
- package/dist/chunk-2MXK2SDR.cjs.map +1 -0
- package/dist/{chunk-U5GTHA44.cjs → chunk-2RZNX26F.cjs} +14 -14
- package/dist/{chunk-U5GTHA44.cjs.map → chunk-2RZNX26F.cjs.map} +1 -1
- package/dist/{chunk-DSB4Q3AS.js → chunk-2VAUVJVG.js} +4 -4
- package/dist/{chunk-DSB4Q3AS.js.map → chunk-2VAUVJVG.js.map} +1 -1
- package/dist/{chunk-D2DOHX4W.js → chunk-2VL66QBX.js} +123 -108
- package/dist/chunk-2VL66QBX.js.map +1 -0
- package/dist/{chunk-QL3YSC3H.cjs → chunk-2WTHSGDP.cjs} +30 -24
- package/dist/chunk-2WTHSGDP.cjs.map +1 -0
- package/dist/{chunk-UYBGXFYX.js → chunk-2Y7ULSEU.js} +495 -433
- package/dist/chunk-2Y7ULSEU.js.map +1 -0
- package/dist/{chunk-UPQHFW47.js → chunk-3IYM5MAC.js} +5 -5
- package/dist/chunk-3IYM5MAC.js.map +1 -0
- package/dist/chunk-3NIDAKCF.cjs +38 -0
- package/dist/chunk-3NIDAKCF.cjs.map +1 -0
- package/dist/{chunk-L7BOLGF2.cjs → chunk-3VJIUZAY.cjs} +263 -224
- package/dist/chunk-3VJIUZAY.cjs.map +1 -0
- package/dist/{chunk-VJBBMBRT.cjs → chunk-3W3ST5Y3.cjs} +7 -7
- package/dist/chunk-3W3ST5Y3.cjs.map +1 -0
- package/dist/{chunk-QEFE4QBL.cjs → chunk-3Z5PF75J.cjs} +14 -14
- package/dist/{chunk-QEFE4QBL.cjs.map → chunk-3Z5PF75J.cjs.map} +1 -1
- package/dist/{chunk-XSQOHNIF.js → chunk-4426KMA7.js} +3 -3
- package/dist/{chunk-XSQOHNIF.js.map → chunk-4426KMA7.js.map} +1 -1
- package/dist/{chunk-4MRORQNN.js → chunk-4HXNBLCJ.js} +4 -4
- package/dist/{chunk-4MRORQNN.js.map → chunk-4HXNBLCJ.js.map} +1 -1
- package/dist/chunk-4RDA4W4N.js +150 -0
- package/dist/chunk-4RDA4W4N.js.map +1 -0
- package/dist/{chunk-Y4FH67QZ.js → chunk-4SUQFPWH.js} +176 -102
- package/dist/chunk-4SUQFPWH.js.map +1 -0
- package/dist/{chunk-P3SMNZCT.js → chunk-56PY2CD7.js} +18 -45
- package/dist/chunk-56PY2CD7.js.map +1 -0
- package/dist/{chunk-M4JUQCKP.js → chunk-5FTIATD6.js} +2 -2
- package/dist/{chunk-M4JUQCKP.js.map → chunk-5FTIATD6.js.map} +1 -1
- package/dist/{chunk-QSEDH7T2.js → chunk-5HPXUDX6.js} +3 -6
- package/dist/chunk-5HPXUDX6.js.map +1 -0
- package/dist/{chunk-Z4TZAJS3.js → chunk-5UGHDUMO.js} +2 -2
- package/dist/chunk-5UGHDUMO.js.map +1 -0
- package/dist/{chunk-BRB52QFV.cjs → chunk-5XMWGK3O.cjs} +18 -18
- package/dist/chunk-5XMWGK3O.cjs.map +1 -0
- package/dist/{chunk-2XAA3CM5.js → chunk-5ZU7FY4O.js} +2 -2
- package/dist/chunk-5ZU7FY4O.js.map +1 -0
- package/dist/{chunk-NHXJVSZZ.cjs → chunk-62SQBQA4.cjs} +2 -2
- package/dist/chunk-62SQBQA4.cjs.map +1 -0
- package/dist/{chunk-LUBVZVY3.js → chunk-65MJZYO6.js} +185 -134
- package/dist/chunk-65MJZYO6.js.map +1 -0
- package/dist/{chunk-U2U4FMFM.cjs → chunk-67UUGI3M.cjs} +9 -9
- package/dist/chunk-67UUGI3M.cjs.map +1 -0
- package/dist/{chunk-CEU7BIL6.cjs → chunk-6DAZ2ZOW.cjs} +13 -13
- package/dist/chunk-6DAZ2ZOW.cjs.map +1 -0
- package/dist/{chunk-DIIE44GO.js → chunk-6EYLEVC6.js} +203 -172
- package/dist/chunk-6EYLEVC6.js.map +1 -0
- package/dist/{chunk-ASJ5CBCR.js → chunk-6J326CN6.js} +7 -7
- package/dist/chunk-6J326CN6.js.map +1 -0
- package/dist/{chunk-EMHLPPQZ.js → chunk-6PIVWNUR.js} +4 -4
- package/dist/chunk-6PIVWNUR.js.map +1 -0
- package/dist/{chunk-BA4A7C7U.js → chunk-75KSHZTV.js} +23 -16
- package/dist/chunk-75KSHZTV.js.map +1 -0
- package/dist/{chunk-ZLATP3P5.cjs → chunk-7CTHD4G6.cjs} +8 -16
- package/dist/chunk-7CTHD4G6.cjs.map +1 -0
- package/dist/{chunk-ZWULWVN3.js → chunk-ADSG24VE.js} +9 -9
- package/dist/chunk-ADSG24VE.js.map +1 -0
- package/dist/{chunk-N2TNBDQI.js → chunk-AEYJ6PWC.js} +3 -3
- package/dist/{chunk-N2TNBDQI.js.map → chunk-AEYJ6PWC.js.map} +1 -1
- package/dist/{chunk-D3SSMY73.cjs → chunk-ANACERIO.cjs} +8 -8
- package/dist/chunk-ANACERIO.cjs.map +1 -0
- package/dist/{chunk-6MOJEGDU.cjs → chunk-ARUOMLOJ.cjs} +27 -23
- package/dist/chunk-ARUOMLOJ.cjs.map +1 -0
- package/dist/{chunk-OWBNRALR.js → chunk-AV7D3SXF.js} +7 -7
- package/dist/{chunk-OWBNRALR.js.map → chunk-AV7D3SXF.js.map} +1 -1
- package/dist/{chunk-PL6J55JB.cjs → chunk-BIJ6YDWJ.cjs} +87 -60
- package/dist/chunk-BIJ6YDWJ.cjs.map +1 -0
- package/dist/{chunk-RNB4BDEG.js → chunk-BIKVMVWF.js} +3 -3
- package/dist/{chunk-RNB4BDEG.js.map → chunk-BIKVMVWF.js.map} +1 -1
- package/dist/{chunk-IHM2M74J.js → chunk-BQWUTDTN.js} +3 -3
- package/dist/{chunk-IHM2M74J.js.map → chunk-BQWUTDTN.js.map} +1 -1
- package/dist/{chunk-KFDHP4WP.cjs → chunk-BSI4BQEX.cjs} +6 -6
- package/dist/{chunk-KFDHP4WP.cjs.map → chunk-BSI4BQEX.cjs.map} +1 -1
- package/dist/{chunk-WYE3VOFK.cjs → chunk-BSPWX2OZ.cjs} +22 -22
- package/dist/{chunk-WYE3VOFK.cjs.map → chunk-BSPWX2OZ.cjs.map} +1 -1
- package/dist/{chunk-3XDUR3IG.cjs → chunk-BSXUNRET.cjs} +14 -15
- package/dist/chunk-BSXUNRET.cjs.map +1 -0
- package/dist/chunk-BUYZZOOU.js +56 -0
- package/dist/chunk-BUYZZOOU.js.map +1 -0
- package/dist/chunk-CPDWUT2H.cjs +59 -0
- package/dist/chunk-CPDWUT2H.cjs.map +1 -0
- package/dist/{chunk-ZVH3BLYO.js → chunk-CUHJDV6K.js} +8 -8
- package/dist/chunk-CUHJDV6K.js.map +1 -0
- package/dist/{chunk-4CVDLMD6.js → chunk-D3CHBU46.js} +3 -3
- package/dist/{chunk-4CVDLMD6.js.map → chunk-D3CHBU46.js.map} +1 -1
- package/dist/{chunk-HM7IEGQ2.cjs → chunk-D5OX6II7.cjs} +7 -7
- package/dist/chunk-D5OX6II7.cjs.map +1 -0
- package/dist/{chunk-RDNMAV5B.js → chunk-DE7JLNSO.js} +2 -2
- package/dist/chunk-DE7JLNSO.js.map +1 -0
- package/dist/{chunk-JKERY7QF.cjs → chunk-DLIYUFTS.cjs} +2 -2
- package/dist/{chunk-JKERY7QF.cjs.map → chunk-DLIYUFTS.cjs.map} +1 -1
- package/dist/{chunk-MSNRGNVY.cjs → chunk-DV4K35UC.cjs} +7 -7
- package/dist/{chunk-MSNRGNVY.cjs.map → chunk-DV4K35UC.cjs.map} +1 -1
- package/dist/{chunk-54J6FRPG.js → chunk-DZZEJY3J.js} +198 -180
- package/dist/chunk-DZZEJY3J.js.map +1 -0
- package/dist/{chunk-IRSJHEYI.js → chunk-E42WOTIC.js} +4 -4
- package/dist/chunk-E42WOTIC.js.map +1 -0
- package/dist/{chunk-ZNUOFLCQ.js → chunk-EBJPUXFQ.js} +149 -147
- package/dist/chunk-EBJPUXFQ.js.map +1 -0
- package/dist/{chunk-AJTJD5C6.js → chunk-ECDYAZ2R.js} +8 -8
- package/dist/{chunk-AJTJD5C6.js.map → chunk-ECDYAZ2R.js.map} +1 -1
- package/dist/{chunk-2IKWX66Q.js → chunk-EFBSEJBD.js} +28 -29
- package/dist/chunk-EFBSEJBD.js.map +1 -0
- package/dist/{chunk-PUVBNGCF.js → chunk-EIT2QSCA.js} +2 -2
- package/dist/{chunk-PUVBNGCF.js.map → chunk-EIT2QSCA.js.map} +1 -1
- package/dist/{chunk-3IBY374V.cjs → chunk-ESRDHDYN.cjs} +10 -10
- package/dist/chunk-ESRDHDYN.cjs.map +1 -0
- package/dist/{chunk-IKF6VHA4.cjs → chunk-EZFQCREN.cjs} +19 -46
- package/dist/chunk-EZFQCREN.cjs.map +1 -0
- package/dist/chunk-F7BFO3SD.cjs +153 -0
- package/dist/chunk-F7BFO3SD.cjs.map +1 -0
- package/dist/{chunk-EVKFA5FA.cjs → chunk-FCUUGJTM.cjs} +210 -192
- package/dist/chunk-FCUUGJTM.cjs.map +1 -0
- package/dist/{chunk-BAPCHFNX.cjs → chunk-FFF57VHO.cjs} +14 -14
- package/dist/chunk-FFF57VHO.cjs.map +1 -0
- package/dist/{chunk-UKDGDMWN.js → chunk-FNRYGCO3.js} +5 -5
- package/dist/chunk-FNRYGCO3.js.map +1 -0
- package/dist/{chunk-6USJ4LJJ.js → chunk-FQSVY4QB.js} +4 -4
- package/dist/chunk-FQSVY4QB.js.map +1 -0
- package/dist/{chunk-WOIWI2UO.js → chunk-G6HS52US.js} +3 -3
- package/dist/chunk-G6HS52US.js.map +1 -0
- package/dist/chunk-GA77PPVL.cjs +217 -0
- package/dist/chunk-GA77PPVL.cjs.map +1 -0
- package/dist/{chunk-MGVEX3RS.js → chunk-GSTINE4X.js} +814 -503
- package/dist/chunk-GSTINE4X.js.map +1 -0
- package/dist/chunk-GW6P4FJ4.cjs +424 -0
- package/dist/chunk-GW6P4FJ4.cjs.map +1 -0
- package/dist/{chunk-QRKRVCA3.cjs → chunk-GY2ZZR4Z.cjs} +34 -34
- package/dist/chunk-GY2ZZR4Z.cjs.map +1 -0
- package/dist/{chunk-RQ5BMSGU.js → chunk-H2EMKCWT.js} +3 -3
- package/dist/{chunk-RQ5BMSGU.js.map → chunk-H2EMKCWT.js.map} +1 -1
- package/dist/{chunk-P6RAOXJA.js → chunk-H4L456EW.js} +85 -58
- package/dist/chunk-H4L456EW.js.map +1 -0
- package/dist/{chunk-GXRH5XQY.js → chunk-HIH6MS5D.js} +10 -12
- package/dist/chunk-HIH6MS5D.js.map +1 -0
- package/dist/{chunk-YLGAJD6Q.js → chunk-HNDDNW52.js} +6 -14
- package/dist/chunk-HNDDNW52.js.map +1 -0
- package/dist/{chunk-3TXVDCF2.js → chunk-HPNY32G6.js} +5 -5
- package/dist/{chunk-3TXVDCF2.js.map → chunk-HPNY32G6.js.map} +1 -1
- package/dist/{chunk-M3RNFDA2.cjs → chunk-HWD4HDQ5.cjs} +61 -52
- package/dist/chunk-HWD4HDQ5.cjs.map +1 -0
- package/dist/{chunk-LX64ENLC.cjs → chunk-HWP2UGOC.cjs} +84 -97
- package/dist/chunk-HWP2UGOC.cjs.map +1 -0
- package/dist/chunk-HXIU3SIQ.cjs +391 -0
- package/dist/chunk-HXIU3SIQ.cjs.map +1 -0
- package/dist/{chunk-5GNYP3PH.cjs → chunk-I2NG2P5K.cjs} +152 -137
- package/dist/chunk-I2NG2P5K.cjs.map +1 -0
- package/dist/chunk-I47WOF6E.js +389 -0
- package/dist/chunk-I47WOF6E.js.map +1 -0
- package/dist/{chunk-EHCAF6D3.js → chunk-IAVZKGZS.js} +14 -3
- package/dist/chunk-IAVZKGZS.js.map +1 -0
- package/dist/{chunk-F3NATTQG.cjs → chunk-IGJEZLHP.cjs} +223 -205
- package/dist/chunk-IGJEZLHP.cjs.map +1 -0
- package/dist/{chunk-A66NIFJE.cjs → chunk-IU2YRN35.cjs} +112 -112
- package/dist/chunk-IU2YRN35.cjs.map +1 -0
- package/dist/{chunk-7T3SWOY7.js → chunk-IUW777WZ.js} +2 -2
- package/dist/{chunk-7T3SWOY7.js.map → chunk-IUW777WZ.js.map} +1 -1
- package/dist/{chunk-QGHFUOUB.cjs → chunk-IX26TMZD.cjs} +7 -7
- package/dist/{chunk-QGHFUOUB.cjs.map → chunk-IX26TMZD.cjs.map} +1 -1
- package/dist/chunk-J2YKUHQM.js +330 -0
- package/dist/chunk-J2YKUHQM.js.map +1 -0
- package/dist/{chunk-QEX7V7TI.cjs → chunk-J3X465QT.cjs} +16 -16
- package/dist/chunk-J3X465QT.cjs.map +1 -0
- package/dist/{chunk-4TIAKZ4Q.cjs → chunk-J4PIYOWT.cjs} +2 -2
- package/dist/{chunk-4TIAKZ4Q.cjs.map → chunk-J4PIYOWT.cjs.map} +1 -1
- package/dist/{chunk-O32BKXTR.cjs → chunk-JIF5TZHC.cjs} +2 -2
- package/dist/chunk-JIF5TZHC.cjs.map +1 -0
- package/dist/{chunk-UN35QV25.js → chunk-JJNXQ7EL.js} +4 -4
- package/dist/{chunk-UN35QV25.js.map → chunk-JJNXQ7EL.js.map} +1 -1
- package/dist/{chunk-CK3UJQRI.cjs → chunk-JK4YAQ2N.cjs} +2 -6
- package/dist/chunk-JK4YAQ2N.cjs.map +1 -0
- package/dist/{chunk-VVO7GIHG.cjs → chunk-JM4Q7ZQH.cjs} +9 -9
- package/dist/{chunk-VVO7GIHG.cjs.map → chunk-JM4Q7ZQH.cjs.map} +1 -1
- package/dist/{chunk-NH7KH7QP.js → chunk-JS6MRT6M.js} +5 -5
- package/dist/{chunk-NH7KH7QP.js.map → chunk-JS6MRT6M.js.map} +1 -1
- package/dist/{chunk-7GN6YTSS.cjs → chunk-JSAYTQTJ.cjs} +7 -7
- package/dist/chunk-JSAYTQTJ.cjs.map +1 -0
- package/dist/{chunk-WGCGHFXE.cjs → chunk-JV4Y6HNP.cjs} +2 -2
- package/dist/{chunk-WGCGHFXE.cjs.map → chunk-JV4Y6HNP.cjs.map} +1 -1
- package/dist/{chunk-I7KILUVL.cjs → chunk-K4K4FU3D.cjs} +182 -108
- package/dist/chunk-K4K4FU3D.cjs.map +1 -0
- package/dist/{chunk-M3IKL2VG.js → chunk-KC4EKXGF.js} +7 -7
- package/dist/{chunk-M3IKL2VG.js.map → chunk-KC4EKXGF.js.map} +1 -1
- package/dist/{chunk-PYPXJC35.cjs → chunk-KUXFEAT4.cjs} +4 -4
- package/dist/{chunk-PYPXJC35.cjs.map → chunk-KUXFEAT4.cjs.map} +1 -1
- package/dist/chunk-KVEXSDEM.js +214 -0
- package/dist/chunk-KVEXSDEM.js.map +1 -0
- package/dist/{chunk-276LEL3G.cjs → chunk-KVJ27734.cjs} +4 -4
- package/dist/{chunk-276LEL3G.cjs.map → chunk-KVJ27734.cjs.map} +1 -1
- package/dist/{chunk-W3KMDQKP.cjs → chunk-L5JS6P62.cjs} +38 -33
- package/dist/chunk-L5JS6P62.cjs.map +1 -0
- package/dist/{chunk-75CPTIET.js → chunk-L5PJCLV6.js} +263 -224
- package/dist/chunk-L5PJCLV6.js.map +1 -0
- package/dist/{chunk-3L6KAW7G.js → chunk-L7XJZJCM.js} +5 -5
- package/dist/chunk-L7XJZJCM.js.map +1 -0
- package/dist/{chunk-YSTESYUB.js → chunk-LBGC6EC5.js} +249 -203
- package/dist/chunk-LBGC6EC5.js.map +1 -0
- package/dist/{chunk-CN2HJ7CP.js → chunk-LKGHYNLH.js} +10 -10
- package/dist/{chunk-CN2HJ7CP.js.map → chunk-LKGHYNLH.js.map} +1 -1
- package/dist/{chunk-7U7RP6N2.cjs → chunk-LW3DJOF4.cjs} +13 -13
- package/dist/{chunk-7U7RP6N2.cjs.map → chunk-LW3DJOF4.cjs.map} +1 -1
- package/dist/{chunk-HVUYVPQL.cjs → chunk-MAYQGKKW.cjs} +4 -4
- package/dist/{chunk-HVUYVPQL.cjs.map → chunk-MAYQGKKW.cjs.map} +1 -1
- package/dist/{chunk-6NTDPZWP.js → chunk-MDQSVB2Y.js} +26 -22
- package/dist/chunk-MDQSVB2Y.js.map +1 -0
- package/dist/{chunk-EE2O457Z.cjs → chunk-MEUELWGO.cjs} +14 -14
- package/dist/{chunk-EE2O457Z.cjs.map → chunk-MEUELWGO.cjs.map} +1 -1
- package/dist/{chunk-CRQXHA7N.js → chunk-MEXR5ONE.js} +9 -9
- package/dist/{chunk-CRQXHA7N.js.map → chunk-MEXR5ONE.js.map} +1 -1
- package/dist/{chunk-WO6FS4DV.js → chunk-MGJLBHPJ.js} +166 -148
- package/dist/chunk-MGJLBHPJ.js.map +1 -0
- package/dist/{chunk-5AYGQJOW.js → chunk-MN2NCSQQ.js} +4 -4
- package/dist/{chunk-5AYGQJOW.js.map → chunk-MN2NCSQQ.js.map} +1 -1
- package/dist/{chunk-5TT4PGZO.cjs → chunk-N77K3NQY.cjs} +9 -9
- package/dist/{chunk-5TT4PGZO.cjs.map → chunk-N77K3NQY.cjs.map} +1 -1
- package/dist/{chunk-KRZ57O2J.cjs → chunk-NYTSAO5I.cjs} +8 -8
- package/dist/{chunk-KRZ57O2J.cjs.map → chunk-NYTSAO5I.cjs.map} +1 -1
- package/dist/{chunk-CPOYENSZ.cjs → chunk-O4PO6AMS.cjs} +4 -4
- package/dist/{chunk-CPOYENSZ.cjs.map → chunk-O4PO6AMS.cjs.map} +1 -1
- package/dist/{chunk-HNROO7CR.js → chunk-OERNLR2P.js} +16 -16
- package/dist/chunk-OERNLR2P.js.map +1 -0
- package/dist/{chunk-TF7IWMV2.js → chunk-OF5NULAO.js} +19 -13
- package/dist/chunk-OF5NULAO.js.map +1 -0
- package/dist/{chunk-F3ZNRO6W.js → chunk-OTQAREYU.js} +6 -6
- package/dist/{chunk-F3ZNRO6W.js.map → chunk-OTQAREYU.js.map} +1 -1
- package/dist/{chunk-LFRTNC7M.cjs → chunk-OUZX7STE.cjs} +30 -31
- package/dist/chunk-OUZX7STE.cjs.map +1 -0
- package/dist/{chunk-O4RTJESR.js → chunk-PBQMHXVO.js} +4 -4
- package/dist/chunk-PBQMHXVO.js.map +1 -0
- package/dist/{chunk-HPVXP3DG.cjs → chunk-PGTOVMP7.cjs} +21 -21
- package/dist/{chunk-HPVXP3DG.cjs.map → chunk-PGTOVMP7.cjs.map} +1 -1
- package/dist/{chunk-2OXKEUKG.cjs → chunk-PKZSJX53.cjs} +2 -2
- package/dist/chunk-PKZSJX53.cjs.map +1 -0
- package/dist/chunk-PZHRFASW.js +36 -0
- package/dist/chunk-PZHRFASW.js.map +1 -0
- package/dist/{chunk-7MN4JDP7.js → chunk-Q3HMGFGI.js} +46 -59
- package/dist/chunk-Q3HMGFGI.js.map +1 -0
- package/dist/{chunk-U2WVHZ24.cjs → chunk-Q4HAXT5C.cjs} +149 -146
- package/dist/chunk-Q4HAXT5C.cjs.map +1 -0
- package/dist/{chunk-ZD3NPHZ7.cjs → chunk-QB2BSOM4.cjs} +4 -4
- package/dist/{chunk-ZD3NPHZ7.cjs.map → chunk-QB2BSOM4.cjs.map} +1 -1
- package/dist/{chunk-VAK4JQYL.js → chunk-QO5C7TIV.js} +9 -8
- package/dist/chunk-QO5C7TIV.js.map +1 -0
- package/dist/{chunk-CZM5FAWL.cjs → chunk-R4DGCQTA.cjs} +12 -12
- package/dist/{chunk-CZM5FAWL.cjs.map → chunk-R4DGCQTA.cjs.map} +1 -1
- package/dist/{chunk-76B2VLID.js → chunk-RJEZBOSH.js} +5 -5
- package/dist/{chunk-76B2VLID.js.map → chunk-RJEZBOSH.js.map} +1 -1
- package/dist/{chunk-4H35H54I.cjs → chunk-RRXOSNCX.cjs} +18 -18
- package/dist/chunk-RRXOSNCX.cjs.map +1 -0
- package/dist/{chunk-2VOB6LEI.js → chunk-S4IHNNA2.js} +111 -111
- package/dist/chunk-S4IHNNA2.js.map +1 -0
- package/dist/{chunk-VEUZ5DZR.js → chunk-S5CMLG2E.js} +34 -29
- package/dist/chunk-S5CMLG2E.js.map +1 -0
- package/dist/{chunk-24J3BUKL.js → chunk-SHARVIUI.js} +3 -3
- package/dist/chunk-SHARVIUI.js.map +1 -0
- package/dist/{chunk-7PNLMDAR.cjs → chunk-SUT35RHA.cjs} +8 -8
- package/dist/chunk-SUT35RHA.cjs.map +1 -0
- package/dist/{chunk-SSOAZZNR.cjs → chunk-SUWRSJAN.cjs} +5 -5
- package/dist/{chunk-SSOAZZNR.cjs.map → chunk-SUWRSJAN.cjs.map} +1 -1
- package/dist/{chunk-LHP47U6H.js → chunk-SZ27SCE2.js} +3 -3
- package/dist/{chunk-LHP47U6H.js.map → chunk-SZ27SCE2.js.map} +1 -1
- package/dist/{chunk-YNTPHZFJ.js → chunk-TCTPR7YQ.js} +3 -3
- package/dist/{chunk-YNTPHZFJ.js.map → chunk-TCTPR7YQ.js.map} +1 -1
- package/dist/{chunk-XUJZTD4E.js → chunk-TH537HOM.js} +55 -46
- package/dist/chunk-TH537HOM.js.map +1 -0
- package/dist/{chunk-RVENUWRD.js → chunk-THTVYP5V.js} +9 -9
- package/dist/chunk-THTVYP5V.js.map +1 -0
- package/dist/{chunk-GLJWAY4A.cjs → chunk-TKTCN4JE.cjs} +19 -19
- package/dist/chunk-TKTCN4JE.cjs.map +1 -0
- package/dist/{chunk-Q3OA23V5.js → chunk-TOQ4MGM5.js} +51 -51
- package/dist/chunk-TOQ4MGM5.js.map +1 -0
- package/dist/chunk-TSKFGLGQ.cjs +332 -0
- package/dist/chunk-TSKFGLGQ.cjs.map +1 -0
- package/dist/{chunk-OULO3YDQ.cjs → chunk-TTDNCN5G.cjs} +233 -242
- package/dist/chunk-TTDNCN5G.cjs.map +1 -0
- package/dist/{chunk-PYW5UO2Z.js → chunk-U5M4JZBX.js} +4 -4
- package/dist/chunk-U5M4JZBX.js.map +1 -0
- package/dist/{chunk-NUTB2K4G.js → chunk-U7ALNPFJ.js} +3 -3
- package/dist/{chunk-NUTB2K4G.js.map → chunk-U7ALNPFJ.js.map} +1 -1
- package/dist/{chunk-5D4LRSIV.js → chunk-UARQIMPS.js} +10 -10
- package/dist/chunk-UARQIMPS.js.map +1 -0
- package/dist/{chunk-CZC2K5GJ.js → chunk-UXGHFKLA.js} +6 -6
- package/dist/{chunk-CZC2K5GJ.js.map → chunk-UXGHFKLA.js.map} +1 -1
- package/dist/{chunk-QCT4BPB6.cjs → chunk-UXQSSRBQ.cjs} +867 -556
- package/dist/chunk-UXQSSRBQ.cjs.map +1 -0
- package/dist/{chunk-EXYBQVZT.js → chunk-V2V5TTTL.js} +3 -3
- package/dist/chunk-V2V5TTTL.js.map +1 -0
- package/dist/{chunk-5BCLEOFF.cjs → chunk-V4ZH2H2P.cjs} +37 -30
- package/dist/chunk-V4ZH2H2P.cjs.map +1 -0
- package/dist/{chunk-EC2ALHNJ.js → chunk-VD52FLHL.js} +214 -196
- package/dist/chunk-VD52FLHL.js.map +1 -0
- package/dist/{chunk-O5A47TA2.js → chunk-VH3G4IUX.js} +231 -240
- package/dist/chunk-VH3G4IUX.js.map +1 -0
- package/dist/{chunk-IUUQXCDE.js → chunk-VJXSJXEX.js} +2 -2
- package/dist/{chunk-IUUQXCDE.js.map → chunk-VJXSJXEX.js.map} +1 -1
- package/dist/{chunk-PJMV2HTO.cjs → chunk-VO4FG3L2.cjs} +62 -62
- package/dist/chunk-VO4FG3L2.cjs.map +1 -0
- package/dist/{chunk-I45346RZ.cjs → chunk-VOOD6CXJ.cjs} +2 -2
- package/dist/{chunk-I45346RZ.cjs.map → chunk-VOOD6CXJ.cjs.map} +1 -1
- package/dist/{chunk-3ZFEBOXD.cjs → chunk-VV72PGKH.cjs} +257 -211
- package/dist/chunk-VV72PGKH.cjs.map +1 -0
- package/dist/{chunk-PQRIV5XU.js → chunk-W5F7PYT2.js} +11 -11
- package/dist/{chunk-PQRIV5XU.js.map → chunk-W5F7PYT2.js.map} +1 -1
- package/dist/{chunk-3DJ46WN4.js → chunk-WPMWHKJX.js} +6 -6
- package/dist/chunk-WPMWHKJX.js.map +1 -0
- package/dist/{chunk-FZCBTFHY.js → chunk-WTCH3QCQ.js} +12 -13
- package/dist/chunk-WTCH3QCQ.js.map +1 -0
- package/dist/{chunk-65QAZWOG.cjs → chunk-X34F4ZV6.cjs} +4 -4
- package/dist/{chunk-65QAZWOG.cjs.map → chunk-X34F4ZV6.cjs.map} +1 -1
- package/dist/{chunk-6W3L6IJB.cjs → chunk-X4I5YARV.cjs} +17 -17
- package/dist/chunk-X4I5YARV.cjs.map +1 -0
- package/dist/{chunk-S4LVSSJI.js → chunk-XHJRAEGW.js} +11 -11
- package/dist/chunk-XHJRAEGW.js.map +1 -0
- package/dist/{chunk-W5G7ZDQ6.cjs → chunk-XLNRO3S6.cjs} +4 -4
- package/dist/{chunk-W5G7ZDQ6.cjs.map → chunk-XLNRO3S6.cjs.map} +1 -1
- package/dist/{chunk-PZ63ZCEO.cjs → chunk-XPGIWOJO.cjs} +26 -26
- package/dist/{chunk-PZ63ZCEO.cjs.map → chunk-XPGIWOJO.cjs.map} +1 -1
- package/dist/{chunk-2P6D43V2.cjs → chunk-XPHXAZCE.cjs} +6 -6
- package/dist/chunk-XPHXAZCE.cjs.map +1 -0
- package/dist/{chunk-X2GRBPCJ.cjs → chunk-XZZI3JYK.cjs} +11 -13
- package/dist/chunk-XZZI3JYK.cjs.map +1 -0
- package/dist/{chunk-UXDXE7Z6.cjs → chunk-YDNEAHVK.cjs} +512 -452
- package/dist/chunk-YDNEAHVK.cjs.map +1 -0
- package/dist/{chunk-M3BF3BBJ.cjs → chunk-YJEX32HZ.cjs} +15 -15
- package/dist/{chunk-M3BF3BBJ.cjs.map → chunk-YJEX32HZ.cjs.map} +1 -1
- package/dist/{chunk-5QPM5LUS.cjs → chunk-Z6RT3WPE.cjs} +15 -4
- package/dist/chunk-Z6RT3WPE.cjs.map +1 -0
- package/dist/{chunk-L5YTMHDI.cjs → chunk-Z7OUMVR5.cjs} +17 -16
- package/dist/chunk-Z7OUMVR5.cjs.map +1 -0
- package/dist/{chunk-OSBVDRVD.cjs → chunk-ZPJW3PP7.cjs} +206 -175
- package/dist/chunk-ZPJW3PP7.cjs.map +1 -0
- package/dist/{chunk-AX6HC2YY.cjs → chunk-ZPOXH42B.cjs} +3 -3
- package/dist/{chunk-AX6HC2YY.cjs.map → chunk-ZPOXH42B.cjs.map} +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/index.cjs +7 -8
- package/dist/components/Accordion/index.d.ts +2 -2
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +4 -5
- package/dist/components/Accordion/useAccordionDevWarning.d.ts +8 -0
- package/dist/components/Accordion/useAccordionDevWarning.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +2 -11
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.recipe.d.ts +1 -1
- package/dist/components/Alert/Alert.types.d.ts +3 -0
- package/dist/components/Alert/Alert.types.d.ts.map +1 -0
- package/dist/components/Alert/index.cjs +14 -15
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +13 -14
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog/index.cjs +19 -18
- package/dist/components/AlertDialog/index.d.ts.map +1 -1
- package/dist/components/AlertDialog/index.js +17 -16
- package/dist/components/AlertDialog/useAlertDialog.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/index.cjs +23 -23
- package/dist/components/AppShell/index.d.ts.map +1 -1
- package/dist/components/AppShell/index.js +20 -20
- package/dist/components/AspectRatio/index.cjs +3 -3
- package/dist/components/AspectRatio/index.d.ts +1 -1
- package/dist/components/AspectRatio/index.d.ts.map +1 -1
- package/dist/components/AspectRatio/index.js +2 -2
- package/dist/components/AutocompleteInput/AutocompleteInput.d.ts +4 -2
- package/dist/components/AutocompleteInput/AutocompleteInput.d.ts.map +1 -1
- package/dist/components/AutocompleteInput/AutocompleteInput.recipe.d.ts +1 -1
- package/dist/components/AutocompleteInput/AutocompleteInputItem.d.ts +1 -1
- package/dist/components/AutocompleteInput/AutocompleteInputItem.d.ts.map +1 -1
- package/dist/components/AutocompleteInput/BaseAutocompleteInput.d.ts +3 -1
- package/dist/components/AutocompleteInput/BaseAutocompleteInput.d.ts.map +1 -1
- package/dist/components/AutocompleteInput/index.cjs +23 -25
- package/dist/components/AutocompleteInput/index.d.ts +1 -1
- package/dist/components/AutocompleteInput/index.d.ts.map +1 -1
- package/dist/components/AutocompleteInput/index.js +18 -20
- package/dist/components/AutocompleteInput/types.d.ts +3 -3
- package/dist/components/AutocompleteInput/types.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.recipe.d.ts +1 -1
- package/dist/components/Avatar/index.cjs +7 -8
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +4 -5
- package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
- package/dist/components/AvatarGroup/index.cjs +7 -8
- package/dist/components/AvatarGroup/index.d.ts +1 -1
- package/dist/components/AvatarGroup/index.d.ts.map +1 -1
- package/dist/components/AvatarGroup/index.js +5 -6
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/index.cjs +4 -4
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +3 -3
- package/dist/components/Blockquote/Blockquote.recipe.d.ts +1 -1
- package/dist/components/Blockquote/index.cjs +4 -5
- package/dist/components/Blockquote/index.d.ts +1 -1
- package/dist/components/Blockquote/index.d.ts.map +1 -1
- package/dist/components/Blockquote/index.js +3 -4
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbItem.recipe.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.recipe.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.cjs +11 -12
- package/dist/components/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +8 -9
- package/dist/components/Button/Button.d.ts +2 -4
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.recipe.d.ts +1 -1
- package/dist/components/Button/Button.types.d.ts +3 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/index.cjs +13 -14
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +12 -13
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.cjs +4 -4
- package/dist/components/ButtonGroup/index.d.ts +1 -1
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +3 -3
- package/dist/components/Calendar/Calendar.d.ts +16 -3
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.recipe.d.ts +1 -1
- package/dist/components/Calendar/index.cjs +15 -16
- package/dist/components/Calendar/index.d.ts.map +1 -1
- package/dist/components/Calendar/index.js +14 -15
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/index.cjs +3 -3
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Center/Center.d.ts.map +1 -1
- package/dist/components/Center/index.cjs +3 -3
- package/dist/components/Center/index.d.ts +1 -1
- package/dist/components/Center/index.d.ts.map +1 -1
- package/dist/components/Center/index.js +2 -2
- package/dist/components/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/components/CheckboxInput/CheckboxInput.recipe.d.ts +1 -1
- package/dist/components/CheckboxInput/index.cjs +14 -15
- package/dist/components/CheckboxInput/index.d.ts.map +1 -1
- package/dist/components/CheckboxInput/index.js +13 -14
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.recipe.d.ts +1 -1
- package/dist/components/CodeBlock/index.cjs +16 -17
- package/dist/components/CodeBlock/index.d.ts.map +1 -1
- package/dist/components/CodeBlock/index.js +15 -16
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/index.cjs +19 -21
- package/dist/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/components/ContextMenu/index.js +17 -19
- package/dist/components/DateInput/DateInput.d.ts +7 -5
- package/dist/components/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput/index.cjs +21 -22
- package/dist/components/DateInput/index.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +20 -21
- package/dist/components/DateRangeInput/DateRangeInput.d.ts +5 -5
- package/dist/components/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/components/DateRangeInput/index.cjs +21 -22
- package/dist/components/DateRangeInput/index.d.ts.map +1 -1
- package/dist/components/DateRangeInput/index.js +20 -21
- package/dist/components/DateTimeInput/DateTimeInput.d.ts +4 -4
- package/dist/components/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/components/DateTimeInput/index.cjs +23 -24
- package/dist/components/DateTimeInput/index.d.ts.map +1 -1
- package/dist/components/DateTimeInput/index.js +22 -23
- package/dist/components/Dialog/Dialog.d.ts +2 -4
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.cjs +7 -6
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +5 -4
- package/dist/components/Dialog/useDialog.d.ts.map +1 -1
- package/dist/components/Divider/Divider.recipe.d.ts +1 -1
- package/dist/components/Divider/index.cjs +4 -5
- package/dist/components/Divider/index.d.ts.map +1 -1
- package/dist/components/Divider/index.js +3 -4
- package/dist/components/Drawer/Drawer.d.ts +10 -2
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.recipe.d.ts +63 -0
- package/dist/components/Drawer/Drawer.recipe.d.ts.map +1 -0
- package/dist/components/Drawer/index.cjs +8 -4
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +6 -2
- package/dist/components/Drawer/useDrawer.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.recipe.d.ts +36 -0
- package/dist/components/DropdownMenu/DropdownMenuItem.recipe.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.cjs +20 -22
- package/dist/components/DropdownMenu/index.d.ts +1 -1
- package/dist/components/DropdownMenu/index.d.ts.map +1 -1
- package/dist/components/DropdownMenu/index.js +16 -18
- package/dist/components/DropdownMenu/menuUtils.d.ts.map +1 -1
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.recipe.d.ts +1 -1
- package/dist/components/EmptyState/index.cjs +7 -8
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +6 -7
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/Field.recipe.d.ts +1 -1
- package/dist/components/Field/index.cjs +11 -12
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/Field/index.js +9 -10
- package/dist/components/Field/inputUtils.d.ts.map +1 -1
- package/dist/components/FileInput/FileInput.d.ts.map +1 -1
- package/dist/components/FileInput/FileInput.recipe.d.ts +66 -0
- package/dist/components/FileInput/FileInput.recipe.d.ts.map +1 -0
- package/dist/components/FileInput/index.cjs +17 -19
- package/dist/components/FileInput/index.d.ts +1 -1
- package/dist/components/FileInput/index.d.ts.map +1 -1
- package/dist/components/FileInput/index.js +16 -18
- package/dist/components/HoverCard/HoverCard.d.ts +1 -1
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -1
- package/dist/components/HoverCard/index.cjs +5 -5
- package/dist/components/HoverCard/index.d.ts.map +1 -1
- package/dist/components/HoverCard/index.js +3 -3
- package/dist/components/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/components/Icon/index.cjs +3 -3
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +2 -2
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.recipe.d.ts +1 -1
- package/dist/components/InputGroup/InputGroup.recipe.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroupContext.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroupText.d.ts.map +1 -1
- package/dist/components/InputGroup/index.cjs +14 -15
- package/dist/components/InputGroup/index.d.ts +2 -2
- package/dist/components/InputGroup/index.d.ts.map +1 -1
- package/dist/components/InputGroup/index.js +10 -11
- package/dist/components/Item/Item.d.ts +1 -1
- package/dist/components/Item/Item.d.ts.map +1 -1
- package/dist/components/Item/Item.recipe.d.ts +75 -0
- package/dist/components/Item/Item.recipe.d.ts.map +1 -0
- package/dist/components/Item/index.cjs +10 -10
- package/dist/components/Item/index.d.ts +1 -1
- package/dist/components/Item/index.d.ts.map +1 -1
- package/dist/components/Item/index.js +9 -9
- package/dist/components/Kbd/Kbd.recipe.d.ts +1 -1
- package/dist/components/Kbd/index.cjs +4 -5
- package/dist/components/Kbd/index.d.ts.map +1 -1
- package/dist/components/Kbd/index.js +3 -4
- package/dist/components/Layout/Layout.d.ts +1 -1
- package/dist/components/Layout/Layout.d.ts.map +1 -1
- package/dist/components/Layout/Layout.recipe.d.ts +101 -16
- package/dist/components/Layout/Layout.recipe.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContext.d.ts +0 -7
- package/dist/components/Layout/LayoutContext.d.ts.map +1 -1
- package/dist/components/Layout/LayoutFooter.d.ts +1 -1
- package/dist/components/Layout/LayoutFooter.d.ts.map +1 -1
- package/dist/components/Layout/LayoutHeader.d.ts.map +1 -1
- package/dist/components/Layout/LayoutPanel.d.ts.map +1 -1
- package/dist/components/Layout/index.cjs +18 -19
- package/dist/components/Layout/index.d.ts +4 -4
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +13 -14
- package/dist/components/Layout/types.d.ts +4 -2
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.recipe.d.ts +43 -0
- package/dist/components/Lightbox/Lightbox.recipe.d.ts.map +1 -0
- package/dist/components/Lightbox/index.cjs +16 -16
- package/dist/components/Lightbox/index.d.ts.map +1 -1
- package/dist/components/Lightbox/index.js +14 -14
- package/dist/components/Lightbox/useLightbox.d.ts.map +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/LinkContext.d.ts.map +1 -1
- package/dist/components/Link/LinkProvider.d.ts.map +1 -1
- package/dist/components/Link/index.cjs +9 -10
- package/dist/components/Link/index.d.ts +1 -1
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +6 -7
- package/dist/components/Link/useLinkComponent.d.ts.map +1 -1
- package/dist/components/List/List.d.ts.map +1 -1
- package/dist/components/List/List.recipe.d.ts +1 -1
- package/dist/components/List/index.cjs +12 -13
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +10 -11
- package/dist/components/MetadataList/MetadataList.d.ts.map +1 -1
- package/dist/components/MetadataList/MetadataList.recipe.d.ts +29 -0
- package/dist/components/MetadataList/MetadataList.recipe.d.ts.map +1 -0
- package/dist/components/MetadataList/MetadataListItem.d.ts.map +1 -1
- package/dist/components/MetadataList/index.cjs +9 -9
- package/dist/components/MetadataList/index.d.ts +1 -1
- package/dist/components/MetadataList/index.d.ts.map +1 -1
- package/dist/components/MetadataList/index.js +7 -7
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.recipe.d.ts +41 -0
- package/dist/components/MultiSelect/MultiSelect.recipe.d.ts.map +1 -0
- package/dist/components/MultiSelect/index.cjs +20 -22
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +19 -21
- package/dist/components/NavIcon/index.cjs +3 -3
- package/dist/components/NavIcon/index.d.ts.map +1 -1
- package/dist/components/NavIcon/index.js +2 -2
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput/index.cjs +18 -19
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +17 -18
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/index.cjs +14 -15
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +13 -14
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/index.cjs +19 -20
- package/dist/components/PasswordInput/index.d.ts +1 -1
- package/dist/components/PasswordInput/index.d.ts.map +1 -1
- package/dist/components/PasswordInput/index.js +18 -19
- package/dist/components/Popover/Popover.d.ts +9 -3
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/index.cjs +15 -17
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +13 -15
- package/dist/components/Popover/usePopover.d.ts +72 -2
- package/dist/components/Popover/usePopover.d.ts.map +1 -1
- package/dist/components/Progress/Progress.recipe.d.ts +1 -1
- package/dist/components/Progress/index.cjs +5 -6
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +4 -5
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.recipe.d.ts +1 -1
- package/dist/components/RadioGroup/index.cjs +15 -16
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +13 -14
- package/dist/components/Rating/Rating.d.ts.map +1 -1
- package/dist/components/Rating/Rating.recipe.d.ts +1 -1
- package/dist/components/Rating/index.cjs +6 -7
- package/dist/components/Rating/index.d.ts.map +1 -1
- package/dist/components/Rating/index.js +5 -6
- package/dist/components/Schedule/CalendarEvent.d.ts +2 -2
- package/dist/components/Schedule/CalendarEvent.d.ts.map +1 -1
- package/dist/components/Schedule/DayView.d.ts.map +1 -1
- package/dist/components/Schedule/ListView.d.ts.map +1 -1
- package/dist/components/Schedule/MonthlyView.d.ts +12 -1
- package/dist/components/Schedule/MonthlyView.d.ts.map +1 -1
- package/dist/components/Schedule/Schedule.d.ts +2 -6
- package/dist/components/Schedule/Schedule.d.ts.map +1 -1
- package/dist/components/Schedule/Schedule.recipe.d.ts +8 -0
- package/dist/components/Schedule/Schedule.recipe.d.ts.map +1 -0
- package/dist/components/Schedule/ScheduleEvent.recipe.d.ts +191 -0
- package/dist/components/Schedule/ScheduleEvent.recipe.d.ts.map +1 -0
- package/dist/components/Schedule/TimeGridView.d.ts.map +1 -1
- package/dist/components/Schedule/WeeklyView.d.ts.map +1 -1
- package/dist/components/Schedule/context.d.ts +4 -8
- package/dist/components/Schedule/context.d.ts.map +1 -1
- package/dist/components/Schedule/dateMath.d.ts +1 -1
- package/dist/components/Schedule/dateMath.d.ts.map +1 -1
- package/dist/components/Schedule/index.cjs +30 -31
- package/dist/components/Schedule/index.d.ts +3 -3
- package/dist/components/Schedule/index.d.ts.map +1 -1
- package/dist/components/Schedule/index.js +19 -20
- package/dist/components/Schedule/plugins/PaginationPlugin.d.ts +3 -3
- package/dist/components/Schedule/plugins/PaginationPlugin.d.ts.map +1 -1
- package/dist/components/Schedule/plugins/ViewSelectorPlugin.d.ts.map +1 -1
- package/dist/components/Schedule/plugins/index.d.ts.map +1 -1
- package/dist/components/Schedule/scheduleZonedInstant.d.ts +17 -0
- package/dist/components/Schedule/scheduleZonedInstant.d.ts.map +1 -0
- package/dist/components/Schedule/shared.d.ts +11 -20
- package/dist/components/Schedule/shared.d.ts.map +1 -1
- package/dist/components/Schedule/types.d.ts +8 -7
- package/dist/components/Schedule/types.d.ts.map +1 -1
- package/dist/components/Schedule/useCurrentTime.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInput.d.ts +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInput.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInputEditPopover.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInputFilterEditor.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInputTag.d.ts +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInputTag.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/SearchFilterInputValueEditor.d.ts +1 -2
- package/dist/components/SearchFilterInput/SearchFilterInputValueEditor.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/formatFilterValue.d.ts +1 -2
- package/dist/components/SearchFilterInput/formatFilterValue.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/index.cjs +40 -41
- package/dist/components/SearchFilterInput/index.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/index.js +32 -33
- package/dist/components/SearchFilterInput/internalConfig.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/types.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/useSearchFilterInputConfig.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/useSearchFilterInputSource.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.recipe.d.ts +73 -0
- package/dist/components/SegmentedControl/SegmentedControl.recipe.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.cjs +7 -6
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.js +5 -4
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.recipe.d.ts +1 -1
- package/dist/components/Select/SelectOption.d.ts.map +1 -1
- package/dist/components/Select/index.cjs +21 -23
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +19 -21
- package/dist/components/SideNav/SideNav.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavItem.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavItem.recipe.d.ts +51 -0
- package/dist/components/SideNav/SideNavItem.recipe.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavSection.d.ts.map +1 -1
- package/dist/components/SideNav/index.cjs +22 -22
- package/dist/components/SideNav/index.d.ts +3 -3
- package/dist/components/SideNav/index.d.ts.map +1 -1
- package/dist/components/SideNav/index.js +16 -16
- package/dist/components/Skeleton/index.cjs +3 -3
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/Slider.recipe.d.ts +1 -1
- package/dist/components/Slider/index.cjs +11 -12
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +10 -11
- package/dist/components/Spinner/Spinner.d.ts +1 -4
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.types.d.ts +3 -0
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/Spinner/index.cjs +7 -8
- package/dist/components/Spinner/index.d.ts.map +1 -1
- package/dist/components/Spinner/index.js +6 -7
- package/dist/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/components/SplitButton/index.cjs +19 -21
- package/dist/components/SplitButton/index.d.ts +1 -1
- package/dist/components/SplitButton/index.d.ts.map +1 -1
- package/dist/components/SplitButton/index.js +18 -20
- package/dist/components/Stack/HStack.d.ts.map +1 -1
- package/dist/components/Stack/VStack.d.ts.map +1 -1
- package/dist/components/Stack/index.cjs +4 -4
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/Stack/internal/Stack.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts +55 -11
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/index.cjs +8 -16
- package/dist/components/Stepper/index.d.ts +2 -3
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +7 -7
- package/dist/components/Stepper/internal/Step.d.ts +36 -0
- package/dist/components/Stepper/internal/Step.d.ts.map +1 -0
- package/dist/components/Stepper/internal/Step.recipe.d.ts +164 -0
- package/dist/components/Stepper/internal/Step.recipe.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.recipe.d.ts +1 -1
- package/dist/components/Switch/index.cjs +11 -12
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +10 -11
- package/dist/components/Table/Table.d.ts +45 -3
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.recipe.d.ts +156 -0
- package/dist/components/Table/Table.recipe.d.ts.map +1 -0
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Table/TableContext.d.ts.map +1 -1
- package/dist/components/Table/TableHeaderCell.d.ts.map +1 -1
- package/dist/components/Table/TableRow.d.ts.map +1 -1
- package/dist/components/Table/columnUtils.d.ts.map +1 -1
- package/dist/components/Table/index.cjs +62 -71
- package/dist/components/Table/index.d.ts +2 -4
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +36 -37
- package/dist/components/Table/plugins/columnResize/index.d.ts.map +1 -1
- package/dist/components/Table/plugins/columnResize/useTableColumnResize.d.ts.map +1 -1
- package/dist/components/Table/plugins/columnSettings/index.d.ts.map +1 -1
- package/dist/components/Table/plugins/columnSettings/useTableColumnSettings.d.ts +1 -1
- package/dist/components/Table/plugins/columnSettings/useTableColumnSettings.d.ts.map +1 -1
- package/dist/components/Table/plugins/columnSettings/useTableColumnSettingsState.d.ts.map +1 -1
- package/dist/components/Table/plugins/filtering/index.d.ts.map +1 -1
- package/dist/components/Table/plugins/filtering/useTableFilterState.d.ts.map +1 -1
- package/dist/components/Table/plugins/filtering/useTableFiltering.d.ts +1 -1
- package/dist/components/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
- package/dist/components/Table/plugins/pagination/index.d.ts +1 -1
- package/dist/components/Table/plugins/pagination/index.d.ts.map +1 -1
- package/dist/components/Table/plugins/pagination/useTablePagination.d.ts.map +1 -1
- package/dist/components/Table/plugins/selection/index.d.ts.map +1 -1
- package/dist/components/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
- package/dist/components/Table/plugins/selection/useTableSelectionState.d.ts.map +1 -1
- package/dist/components/Table/plugins/sortable/index.d.ts.map +1 -1
- package/dist/components/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
- package/dist/components/Table/plugins/sortable/useTableSortableState.d.ts.map +1 -1
- package/dist/components/Table/types.d.ts +1 -18
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Table/useBaseTablePlugins.d.ts +1 -1
- package/dist/components/Table/useBaseTablePlugins.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/TabMenu.d.ts.map +1 -1
- package/dist/components/Tabs/TabMenu.recipe.d.ts +21 -0
- package/dist/components/Tabs/TabMenu.recipe.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.recipe.d.ts +65 -0
- package/dist/components/Tabs/Tabs.recipe.d.ts.map +1 -0
- package/dist/components/Tabs/index.cjs +19 -21
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +14 -16
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/Tag.recipe.d.ts +1 -1
- package/dist/components/Tag/index.cjs +9 -10
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +8 -9
- package/dist/components/TagsInput/TagsInput.d.ts +52 -8
- package/dist/components/TagsInput/TagsInput.d.ts.map +1 -1
- package/dist/components/TagsInput/TagsInput.recipe.d.ts +45 -0
- package/dist/components/TagsInput/TagsInput.recipe.d.ts.map +1 -0
- package/dist/components/TagsInput/index.cjs +20 -22
- package/dist/components/TagsInput/index.d.ts.map +1 -1
- package/dist/components/TagsInput/index.js +19 -21
- package/dist/components/Text/Heading.d.ts +1 -1
- package/dist/components/Text/Heading.d.ts.map +1 -1
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/index.cjs +6 -6
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +4 -4
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/index.cjs +13 -14
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +12 -13
- package/dist/components/TextInput/TextInput.d.ts +5 -0
- package/dist/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/TextInput/index.cjs +18 -19
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.js +17 -18
- package/dist/components/Theme/index.cjs +2 -2
- package/dist/components/Theme/index.d.ts.map +1 -1
- package/dist/components/Theme/index.js +1 -1
- package/dist/components/Thumbnail/Thumbnail.recipe.d.ts +1 -1
- package/dist/components/Thumbnail/index.cjs +15 -16
- package/dist/components/Thumbnail/index.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.js +14 -15
- package/dist/components/TimeInput/TimeInput.d.ts +3 -3
- package/dist/components/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/components/TimeInput/index.cjs +17 -18
- package/dist/components/TimeInput/index.d.ts +1 -1
- package/dist/components/TimeInput/index.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +16 -17
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.recipe.d.ts +1 -1
- package/dist/components/Toast/ToastContext.d.ts.map +1 -1
- package/dist/components/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/components/Toast/index.cjs +16 -17
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +13 -14
- package/dist/components/Toast/useToast.d.ts.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -6
- package/dist/components/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.recipe.d.ts +20 -0
- package/dist/components/ToggleButton/ToggleButton.recipe.d.ts.map +1 -0
- package/dist/components/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
- package/dist/components/ToggleButton/index.cjs +11 -12
- package/dist/components/ToggleButton/index.d.ts +1 -1
- package/dist/components/ToggleButton/index.d.ts.map +1 -1
- package/dist/components/ToggleButton/index.js +9 -10
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/index.cjs +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +3 -3
- package/dist/components/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.recipe.d.ts +11 -5
- package/dist/components/TopNav/TopNav.recipe.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavContext.d.ts +0 -2
- package/dist/components/TopNav/TopNavContext.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavHeading.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavHeading.recipe.d.ts +4 -0
- package/dist/components/TopNav/TopNavHeading.recipe.d.ts.map +1 -0
- package/dist/components/TopNav/TopNavItem.d.ts +13 -8
- package/dist/components/TopNav/TopNavItem.d.ts.map +1 -1
- package/dist/components/TopNav/index.cjs +21 -25
- package/dist/components/TopNav/index.d.ts +2 -2
- package/dist/components/TopNav/index.d.ts.map +1 -1
- package/dist/components/TopNav/index.js +16 -16
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.recipe.d.ts +4 -0
- package/dist/components/TreeView/TreeView.recipe.d.ts.map +1 -0
- package/dist/components/TreeView/TreeViewBranches.d.ts.map +1 -1
- package/dist/components/TreeView/TreeViewBranches.recipe.d.ts +4 -0
- package/dist/components/TreeView/TreeViewBranches.recipe.d.ts.map +1 -0
- package/dist/components/TreeView/TreeViewItem.d.ts +1 -5
- package/dist/components/TreeView/TreeViewItem.d.ts.map +1 -1
- package/dist/components/TreeView/TreeViewItem.recipe.d.ts +84 -0
- package/dist/components/TreeView/TreeViewItem.recipe.d.ts.map +1 -0
- package/dist/components/TreeView/index.cjs +5 -4
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TreeView/index.js +4 -3
- package/dist/index.cjs +262 -281
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -88
- package/dist/index.js.map +1 -1
- package/dist/internal/HoverLayerTrigger.d.ts.map +1 -1
- package/dist/internal/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/internal/MobileNav/index.d.ts +2 -2
- package/dist/internal/MobileNav/index.d.ts.map +1 -1
- package/dist/internal/dismissBehavior.d.ts +18 -0
- package/dist/internal/dismissBehavior.d.ts.map +1 -0
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/parseDateInput.d.ts.map +1 -1
- package/dist/internal/plainDate.d.ts.map +1 -1
- package/dist/internal/shallowEqual.d.ts +7 -0
- package/dist/internal/shallowEqual.d.ts.map +1 -0
- package/dist/internal/useBackdropDismiss.d.ts +16 -0
- package/dist/internal/useBackdropDismiss.d.ts.map +1 -0
- package/dist/internal/useConstant.d.ts +8 -0
- package/dist/internal/useConstant.d.ts.map +1 -0
- package/dist/internal/useHoverLayer.d.ts.map +1 -1
- package/dist/internal/useLatest.d.ts +5 -0
- package/dist/internal/useLatest.d.ts.map +1 -0
- package/dist/internal/useLayer.d.ts +55 -2
- package/dist/internal/useLayer.d.ts.map +1 -1
- package/dist/internal/useScrollLock.d.ts +8 -0
- package/dist/internal/useScrollLock.d.ts.map +1 -0
- package/dist/internal/useSelectListbox.d.ts.map +1 -1
- package/dist/internal/useShallowEqualMemo.d.ts +13 -0
- package/dist/internal/useShallowEqualMemo.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/themes/presets.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-23NN5WRP.cjs +0 -454
- package/dist/chunk-23NN5WRP.cjs.map +0 -1
- package/dist/chunk-24J3BUKL.js.map +0 -1
- package/dist/chunk-2IKWX66Q.js.map +0 -1
- package/dist/chunk-2OXKEUKG.cjs.map +0 -1
- package/dist/chunk-2P6D43V2.cjs.map +0 -1
- package/dist/chunk-2VOB6LEI.js.map +0 -1
- package/dist/chunk-2XAA3CM5.js.map +0 -1
- package/dist/chunk-3DJ46WN4.js.map +0 -1
- package/dist/chunk-3IBY374V.cjs.map +0 -1
- package/dist/chunk-3L6KAW7G.js.map +0 -1
- package/dist/chunk-3XDUR3IG.cjs.map +0 -1
- package/dist/chunk-3ZFEBOXD.cjs.map +0 -1
- package/dist/chunk-4H35H54I.cjs.map +0 -1
- package/dist/chunk-54J6FRPG.js.map +0 -1
- package/dist/chunk-5BCLEOFF.cjs.map +0 -1
- package/dist/chunk-5D4LRSIV.js.map +0 -1
- package/dist/chunk-5GNYP3PH.cjs.map +0 -1
- package/dist/chunk-5QPM5LUS.cjs.map +0 -1
- package/dist/chunk-66LRFIYK.cjs.map +0 -1
- package/dist/chunk-6BK4LUK4.cjs +0 -17
- package/dist/chunk-6BK4LUK4.cjs.map +0 -1
- package/dist/chunk-6MOJEGDU.cjs.map +0 -1
- package/dist/chunk-6NTDPZWP.js.map +0 -1
- package/dist/chunk-6USJ4LJJ.js.map +0 -1
- package/dist/chunk-6W3L6IJB.cjs.map +0 -1
- package/dist/chunk-75CPTIET.js.map +0 -1
- package/dist/chunk-7GN6YTSS.cjs.map +0 -1
- package/dist/chunk-7MN4JDP7.js.map +0 -1
- package/dist/chunk-7PNLMDAR.cjs.map +0 -1
- package/dist/chunk-A66NIFJE.cjs.map +0 -1
- package/dist/chunk-ASJ5CBCR.js.map +0 -1
- package/dist/chunk-BA4A7C7U.js.map +0 -1
- package/dist/chunk-BAPCHFNX.cjs.map +0 -1
- package/dist/chunk-BRB52QFV.cjs.map +0 -1
- package/dist/chunk-CEU7BIL6.cjs.map +0 -1
- package/dist/chunk-CK3UJQRI.cjs.map +0 -1
- package/dist/chunk-D2DOHX4W.js.map +0 -1
- package/dist/chunk-D3SSMY73.cjs.map +0 -1
- package/dist/chunk-DIIE44GO.js.map +0 -1
- package/dist/chunk-EBQ3A4XO.js +0 -285
- package/dist/chunk-EBQ3A4XO.js.map +0 -1
- package/dist/chunk-EC2ALHNJ.js.map +0 -1
- package/dist/chunk-EHCAF6D3.js.map +0 -1
- package/dist/chunk-EMHLPPQZ.js.map +0 -1
- package/dist/chunk-EVKFA5FA.cjs.map +0 -1
- package/dist/chunk-EXYBQVZT.js.map +0 -1
- package/dist/chunk-F3NATTQG.cjs.map +0 -1
- package/dist/chunk-FZCBTFHY.js.map +0 -1
- package/dist/chunk-GLJWAY4A.cjs.map +0 -1
- package/dist/chunk-GUKZNXTB.js +0 -15
- package/dist/chunk-GUKZNXTB.js.map +0 -1
- package/dist/chunk-GXRH5XQY.js.map +0 -1
- package/dist/chunk-HM7IEGQ2.cjs.map +0 -1
- package/dist/chunk-HNROO7CR.js.map +0 -1
- package/dist/chunk-I7KILUVL.cjs.map +0 -1
- package/dist/chunk-IKF6VHA4.cjs.map +0 -1
- package/dist/chunk-IRSJHEYI.js.map +0 -1
- package/dist/chunk-JEIQ5GDK.cjs +0 -374
- package/dist/chunk-JEIQ5GDK.cjs.map +0 -1
- package/dist/chunk-L5YTMHDI.cjs.map +0 -1
- package/dist/chunk-L7BOLGF2.cjs.map +0 -1
- package/dist/chunk-LFRTNC7M.cjs.map +0 -1
- package/dist/chunk-LUBVZVY3.js.map +0 -1
- package/dist/chunk-LX64ENLC.cjs.map +0 -1
- package/dist/chunk-M3RNFDA2.cjs.map +0 -1
- package/dist/chunk-MGVEX3RS.js.map +0 -1
- package/dist/chunk-MUUPZEZ5.cjs.map +0 -1
- package/dist/chunk-NHXJVSZZ.cjs.map +0 -1
- package/dist/chunk-NYQPIBOD.cjs +0 -287
- package/dist/chunk-NYQPIBOD.cjs.map +0 -1
- package/dist/chunk-O32BKXTR.cjs.map +0 -1
- package/dist/chunk-O4RTJESR.js.map +0 -1
- package/dist/chunk-O5A47TA2.js.map +0 -1
- package/dist/chunk-OSBVDRVD.cjs.map +0 -1
- package/dist/chunk-OULO3YDQ.cjs.map +0 -1
- package/dist/chunk-P3SMNZCT.js.map +0 -1
- package/dist/chunk-P6RAOXJA.js.map +0 -1
- package/dist/chunk-PJMV2HTO.cjs.map +0 -1
- package/dist/chunk-PL6J55JB.cjs.map +0 -1
- package/dist/chunk-PYW5UO2Z.js.map +0 -1
- package/dist/chunk-Q3OA23V5.js.map +0 -1
- package/dist/chunk-QCT4BPB6.cjs.map +0 -1
- package/dist/chunk-QEX7V7TI.cjs.map +0 -1
- package/dist/chunk-QL3YSC3H.cjs.map +0 -1
- package/dist/chunk-QRKRVCA3.cjs.map +0 -1
- package/dist/chunk-QSEDH7T2.js.map +0 -1
- package/dist/chunk-RDNMAV5B.js.map +0 -1
- package/dist/chunk-RINP34ZG.js +0 -450
- package/dist/chunk-RINP34ZG.js.map +0 -1
- package/dist/chunk-RVENUWRD.js.map +0 -1
- package/dist/chunk-S4B2D427.js +0 -142
- package/dist/chunk-S4B2D427.js.map +0 -1
- package/dist/chunk-S4LVSSJI.js.map +0 -1
- package/dist/chunk-TF7IWMV2.js.map +0 -1
- package/dist/chunk-U2U4FMFM.cjs.map +0 -1
- package/dist/chunk-U2WVHZ24.cjs.map +0 -1
- package/dist/chunk-UKDGDMWN.js.map +0 -1
- package/dist/chunk-UPQHFW47.js.map +0 -1
- package/dist/chunk-UXDXE7Z6.cjs.map +0 -1
- package/dist/chunk-UYBGXFYX.js.map +0 -1
- package/dist/chunk-VAK4JQYL.js.map +0 -1
- package/dist/chunk-VEUZ5DZR.js.map +0 -1
- package/dist/chunk-VJBBMBRT.cjs.map +0 -1
- package/dist/chunk-W3KMDQKP.cjs.map +0 -1
- package/dist/chunk-WMXIUOOU.cjs.map +0 -1
- package/dist/chunk-WO6FS4DV.js.map +0 -1
- package/dist/chunk-WOIWI2UO.js.map +0 -1
- package/dist/chunk-X2GRBPCJ.cjs.map +0 -1
- package/dist/chunk-XADTIY7J.cjs +0 -145
- package/dist/chunk-XADTIY7J.cjs.map +0 -1
- package/dist/chunk-XIFLSMGW.js +0 -200
- package/dist/chunk-XIFLSMGW.js.map +0 -1
- package/dist/chunk-XUJZTD4E.js.map +0 -1
- package/dist/chunk-Y4FH67QZ.js.map +0 -1
- package/dist/chunk-YAIEA2YE.cjs +0 -203
- package/dist/chunk-YAIEA2YE.cjs.map +0 -1
- package/dist/chunk-YAYINZT2.cjs.map +0 -1
- package/dist/chunk-YLGAJD6Q.js.map +0 -1
- package/dist/chunk-YSTESYUB.js.map +0 -1
- package/dist/chunk-Z4TZAJS3.js.map +0 -1
- package/dist/chunk-ZLATP3P5.cjs.map +0 -1
- package/dist/chunk-ZNUOFLCQ.js.map +0 -1
- package/dist/chunk-ZVH3BLYO.js.map +0 -1
- package/dist/chunk-ZWULWVN3.js.map +0 -1
- package/dist/components/Schedule/zonedDateTime.d.ts +0 -14
- package/dist/components/Schedule/zonedDateTime.d.ts.map +0 -1
- package/dist/components/Stepper/Step.d.ts +0 -62
- package/dist/components/Stepper/Step.d.ts.map +0 -1
- package/dist/components/Stepper/Step.recipe.d.ts +0 -95
- package/dist/components/Stepper/Step.recipe.d.ts.map +0 -1
- package/dist/components/Stepper/StepperContext.d.ts +0 -10
- package/dist/components/Stepper/StepperContext.d.ts.map +0 -1
- package/dist/components/Table/BaseTable.d.ts +0 -6
- package/dist/components/Table/BaseTable.d.ts.map +0 -1
- package/dist/theme/generate-color-scale.d.ts +0 -6
- package/dist/theme/generate-color-scale.d.ts.map +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkHWD4HDQ5_cjs = require('./chunk-HWD4HDQ5.cjs');
|
|
4
|
+
var chunkKVJ27734_cjs = require('./chunk-KVJ27734.cjs');
|
|
5
|
+
var chunkJK4YAQ2N_cjs = require('./chunk-JK4YAQ2N.cjs');
|
|
6
6
|
var chunkR37R7DEV_cjs = require('./chunk-R37R7DEV.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
7
|
+
var chunkL5JS6P62_cjs = require('./chunk-L5JS6P62.cjs');
|
|
8
|
+
var chunk5XMWGK3O_cjs = require('./chunk-5XMWGK3O.cjs');
|
|
9
|
+
var chunkBSI4BQEX_cjs = require('./chunk-BSI4BQEX.cjs');
|
|
10
|
+
var chunk3Z5PF75J_cjs = require('./chunk-3Z5PF75J.cjs');
|
|
11
|
+
var chunkJSAYTQTJ_cjs = require('./chunk-JSAYTQTJ.cjs');
|
|
12
|
+
var chunkJ4PIYOWT_cjs = require('./chunk-J4PIYOWT.cjs');
|
|
13
|
+
var chunkZ6RT3WPE_cjs = require('./chunk-Z6RT3WPE.cjs');
|
|
14
14
|
var chunkRU6JG3FS_cjs = require('./chunk-RU6JG3FS.cjs');
|
|
15
|
+
var chunkSPDVNY2Z_cjs = require('./chunk-SPDVNY2Z.cjs');
|
|
15
16
|
var polyfill = require('@js-temporal/polyfill');
|
|
16
17
|
var react = require('react');
|
|
17
18
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -42,6 +43,211 @@ function createEventFromISO({
|
|
|
42
43
|
title
|
|
43
44
|
};
|
|
44
45
|
}
|
|
46
|
+
|
|
47
|
+
// src/components/Schedule/ScheduleEvent.recipe.ts
|
|
48
|
+
var scheduleEventRecipe = chunkZ6RT3WPE_cjs.sva({
|
|
49
|
+
slots: ["event", "dot", "time", "title"],
|
|
50
|
+
base: {
|
|
51
|
+
event: {
|
|
52
|
+
borderWidth: "default",
|
|
53
|
+
borderStyle: "solid",
|
|
54
|
+
borderColor: "var(--schedule-event-border)",
|
|
55
|
+
borderRadius: "sm",
|
|
56
|
+
overflow: "hidden",
|
|
57
|
+
px: "1",
|
|
58
|
+
py: "0.5",
|
|
59
|
+
fontSize: "xs",
|
|
60
|
+
lineHeight: "tight",
|
|
61
|
+
bg: "var(--schedule-event-bg)",
|
|
62
|
+
color: "var(--schedule-event-fg)",
|
|
63
|
+
_hover: {
|
|
64
|
+
bg: "var(--schedule-event-bg-hover)"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
dot: {
|
|
68
|
+
display: "inline-block",
|
|
69
|
+
w: "2",
|
|
70
|
+
h: "2",
|
|
71
|
+
borderRadius: "full",
|
|
72
|
+
bg: "var(--schedule-event-dot)",
|
|
73
|
+
flexShrink: 0
|
|
74
|
+
},
|
|
75
|
+
time: {
|
|
76
|
+
flexShrink: 0,
|
|
77
|
+
fontWeight: "normal"
|
|
78
|
+
},
|
|
79
|
+
title: {
|
|
80
|
+
fontWeight: "bold",
|
|
81
|
+
overflow: "hidden",
|
|
82
|
+
textOverflow: "ellipsis",
|
|
83
|
+
whiteSpace: "nowrap"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
variants: {
|
|
87
|
+
layout: {
|
|
88
|
+
inline: {
|
|
89
|
+
event: {
|
|
90
|
+
display: "inline-flex",
|
|
91
|
+
alignItems: "baseline",
|
|
92
|
+
gap: "1",
|
|
93
|
+
maxW: "full",
|
|
94
|
+
textOverflow: "ellipsis",
|
|
95
|
+
whiteSpace: "nowrap",
|
|
96
|
+
fontWeight: "medium"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
block: {
|
|
100
|
+
event: {
|
|
101
|
+
position: "absolute",
|
|
102
|
+
display: "flex",
|
|
103
|
+
flexDirection: "column",
|
|
104
|
+
gap: 0,
|
|
105
|
+
minH: "9",
|
|
106
|
+
minW: 0
|
|
107
|
+
},
|
|
108
|
+
time: {
|
|
109
|
+
overflow: "hidden",
|
|
110
|
+
textOverflow: "ellipsis",
|
|
111
|
+
whiteSpace: "nowrap"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
// Full-width pill used by the month overlay where the span sizes the cell.
|
|
116
|
+
isFullWidth: {
|
|
117
|
+
true: { event: { w: "full" } },
|
|
118
|
+
false: {}
|
|
119
|
+
},
|
|
120
|
+
color: {
|
|
121
|
+
blue: {
|
|
122
|
+
event: {
|
|
123
|
+
"--schedule-event-bg": "token(colors.surface.blue)",
|
|
124
|
+
"--schedule-event-bg-hover": "token(colors.surface.blue.hover)",
|
|
125
|
+
"--schedule-event-border": "token(colors.surface.blue.accent)",
|
|
126
|
+
"--schedule-event-fg": "token(colors.surface.blue.fg)",
|
|
127
|
+
"--schedule-event-fg-base": "token(colors.surface.blue.fg)",
|
|
128
|
+
"--schedule-event-dot": "token(colors.surface.blue.accent)"
|
|
129
|
+
},
|
|
130
|
+
dot: { "--schedule-event-dot": "token(colors.surface.blue.accent)" }
|
|
131
|
+
},
|
|
132
|
+
cyan: {
|
|
133
|
+
event: {
|
|
134
|
+
"--schedule-event-bg": "token(colors.surface.cyan)",
|
|
135
|
+
"--schedule-event-bg-hover": "token(colors.surface.cyan.hover)",
|
|
136
|
+
"--schedule-event-border": "token(colors.surface.cyan.accent)",
|
|
137
|
+
"--schedule-event-fg": "token(colors.surface.cyan.fg)",
|
|
138
|
+
"--schedule-event-fg-base": "token(colors.surface.cyan.fg)",
|
|
139
|
+
"--schedule-event-dot": "token(colors.surface.cyan.accent)"
|
|
140
|
+
},
|
|
141
|
+
dot: { "--schedule-event-dot": "token(colors.surface.cyan.accent)" }
|
|
142
|
+
},
|
|
143
|
+
gray: {
|
|
144
|
+
event: {
|
|
145
|
+
"--schedule-event-bg": "token(colors.surface.gray)",
|
|
146
|
+
"--schedule-event-bg-hover": "token(colors.surface.gray.hover)",
|
|
147
|
+
"--schedule-event-border": "token(colors.surface.gray.accent)",
|
|
148
|
+
"--schedule-event-fg": "token(colors.surface.gray.fg)",
|
|
149
|
+
"--schedule-event-fg-base": "token(colors.surface.gray.fg)",
|
|
150
|
+
"--schedule-event-dot": "token(colors.surface.gray.accent)"
|
|
151
|
+
},
|
|
152
|
+
dot: { "--schedule-event-dot": "token(colors.surface.gray.accent)" }
|
|
153
|
+
},
|
|
154
|
+
green: {
|
|
155
|
+
event: {
|
|
156
|
+
"--schedule-event-bg": "token(colors.surface.green)",
|
|
157
|
+
"--schedule-event-bg-hover": "token(colors.surface.green.hover)",
|
|
158
|
+
"--schedule-event-border": "token(colors.surface.green.accent)",
|
|
159
|
+
"--schedule-event-fg": "token(colors.surface.green.fg)",
|
|
160
|
+
"--schedule-event-fg-base": "token(colors.surface.green.fg)",
|
|
161
|
+
"--schedule-event-dot": "token(colors.surface.green.accent)"
|
|
162
|
+
},
|
|
163
|
+
dot: { "--schedule-event-dot": "token(colors.surface.green.accent)" }
|
|
164
|
+
},
|
|
165
|
+
orange: {
|
|
166
|
+
event: {
|
|
167
|
+
"--schedule-event-bg": "token(colors.surface.orange)",
|
|
168
|
+
"--schedule-event-bg-hover": "token(colors.surface.orange.hover)",
|
|
169
|
+
"--schedule-event-border": "token(colors.surface.orange.accent)",
|
|
170
|
+
"--schedule-event-fg": "token(colors.surface.orange.fg)",
|
|
171
|
+
"--schedule-event-fg-base": "token(colors.surface.orange.fg)",
|
|
172
|
+
"--schedule-event-dot": "token(colors.surface.orange.accent)"
|
|
173
|
+
},
|
|
174
|
+
dot: { "--schedule-event-dot": "token(colors.surface.orange.accent)" }
|
|
175
|
+
},
|
|
176
|
+
pink: {
|
|
177
|
+
event: {
|
|
178
|
+
"--schedule-event-bg": "token(colors.surface.pink)",
|
|
179
|
+
"--schedule-event-bg-hover": "token(colors.surface.pink.hover)",
|
|
180
|
+
"--schedule-event-border": "token(colors.surface.pink.accent)",
|
|
181
|
+
"--schedule-event-fg": "token(colors.surface.pink.fg)",
|
|
182
|
+
"--schedule-event-fg-base": "token(colors.surface.pink.fg)",
|
|
183
|
+
"--schedule-event-dot": "token(colors.surface.pink.accent)"
|
|
184
|
+
},
|
|
185
|
+
dot: { "--schedule-event-dot": "token(colors.surface.pink.accent)" }
|
|
186
|
+
},
|
|
187
|
+
purple: {
|
|
188
|
+
event: {
|
|
189
|
+
"--schedule-event-bg": "token(colors.surface.purple)",
|
|
190
|
+
"--schedule-event-bg-hover": "token(colors.surface.purple.hover)",
|
|
191
|
+
"--schedule-event-border": "token(colors.surface.purple.accent)",
|
|
192
|
+
"--schedule-event-fg": "token(colors.surface.purple.fg)",
|
|
193
|
+
"--schedule-event-fg-base": "token(colors.surface.purple.fg)",
|
|
194
|
+
"--schedule-event-dot": "token(colors.surface.purple.accent)"
|
|
195
|
+
},
|
|
196
|
+
dot: { "--schedule-event-dot": "token(colors.surface.purple.accent)" }
|
|
197
|
+
},
|
|
198
|
+
red: {
|
|
199
|
+
event: {
|
|
200
|
+
"--schedule-event-bg": "token(colors.surface.red)",
|
|
201
|
+
"--schedule-event-bg-hover": "token(colors.surface.red.hover)",
|
|
202
|
+
"--schedule-event-border": "token(colors.surface.red.accent)",
|
|
203
|
+
"--schedule-event-fg": "token(colors.surface.red.fg)",
|
|
204
|
+
"--schedule-event-fg-base": "token(colors.surface.red.fg)",
|
|
205
|
+
"--schedule-event-dot": "token(colors.surface.red.accent)"
|
|
206
|
+
},
|
|
207
|
+
dot: { "--schedule-event-dot": "token(colors.surface.red.accent)" }
|
|
208
|
+
},
|
|
209
|
+
teal: {
|
|
210
|
+
event: {
|
|
211
|
+
"--schedule-event-bg": "token(colors.surface.teal)",
|
|
212
|
+
"--schedule-event-bg-hover": "token(colors.surface.teal.hover)",
|
|
213
|
+
"--schedule-event-border": "token(colors.surface.teal.accent)",
|
|
214
|
+
"--schedule-event-fg": "token(colors.surface.teal.fg)",
|
|
215
|
+
"--schedule-event-fg-base": "token(colors.surface.teal.fg)",
|
|
216
|
+
"--schedule-event-dot": "token(colors.surface.teal.accent)"
|
|
217
|
+
},
|
|
218
|
+
dot: { "--schedule-event-dot": "token(colors.surface.teal.accent)" }
|
|
219
|
+
},
|
|
220
|
+
yellow: {
|
|
221
|
+
event: {
|
|
222
|
+
"--schedule-event-bg": "token(colors.surface.yellow)",
|
|
223
|
+
"--schedule-event-bg-hover": "token(colors.surface.yellow.hover)",
|
|
224
|
+
"--schedule-event-border": "token(colors.surface.yellow.accent)",
|
|
225
|
+
"--schedule-event-fg": "token(colors.surface.yellow.fg)",
|
|
226
|
+
"--schedule-event-fg-base": "token(colors.surface.yellow.fg)",
|
|
227
|
+
"--schedule-event-dot": "token(colors.surface.yellow.accent)"
|
|
228
|
+
},
|
|
229
|
+
dot: { "--schedule-event-dot": "token(colors.surface.yellow.accent)" }
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
isPast: {
|
|
233
|
+
true: {
|
|
234
|
+
event: {
|
|
235
|
+
"--schedule-event-bg": "color-mix(in srgb, var(--schedule-event-dot) 10%, token(colors.bg))",
|
|
236
|
+
"--schedule-event-bg-hover": "color-mix(in srgb, var(--schedule-event-dot) 14%, token(colors.bg))",
|
|
237
|
+
"--schedule-event-border": "color-mix(in srgb, var(--schedule-event-dot) 48%, token(colors.border))",
|
|
238
|
+
"--schedule-event-fg": "color-mix(in srgb, var(--schedule-event-fg-base) 52%, token(colors.fg.muted))"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
false: {}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
defaultVariants: {
|
|
245
|
+
layout: "inline",
|
|
246
|
+
color: "blue",
|
|
247
|
+
isFullWidth: false,
|
|
248
|
+
isPast: false
|
|
249
|
+
}
|
|
250
|
+
});
|
|
45
251
|
var ScheduleContext = react.createContext(null);
|
|
46
252
|
ScheduleContext.displayName = "ScheduleContext";
|
|
47
253
|
function useScheduleContext() {
|
|
@@ -62,16 +268,16 @@ function getScheduleRangeFromDates({
|
|
|
62
268
|
timezoneID
|
|
63
269
|
}) {
|
|
64
270
|
return {
|
|
65
|
-
end:
|
|
271
|
+
end: chunkJK4YAQ2N_cjs.plainDateToInstant(endDate, timezoneID),
|
|
66
272
|
endDate,
|
|
67
|
-
start:
|
|
273
|
+
start: chunkJK4YAQ2N_cjs.plainDateToInstant(startDate, timezoneID),
|
|
68
274
|
startDate
|
|
69
275
|
};
|
|
70
276
|
}
|
|
71
277
|
function enumerateDates(start, endExclusive) {
|
|
72
278
|
const dates = [];
|
|
73
279
|
let current = start;
|
|
74
|
-
while (
|
|
280
|
+
while (chunkJK4YAQ2N_cjs.plainDateIsBefore(current, endExclusive)) {
|
|
75
281
|
dates.push(current);
|
|
76
282
|
current = current.add({ days: 1 });
|
|
77
283
|
}
|
|
@@ -79,22 +285,22 @@ function enumerateDates(start, endExclusive) {
|
|
|
79
285
|
}
|
|
80
286
|
function eventOverlapsRange(event, range, timezoneID) {
|
|
81
287
|
if (isDayEvent(event)) {
|
|
82
|
-
const eventStart =
|
|
83
|
-
const eventEnd =
|
|
288
|
+
const eventStart = chunkJK4YAQ2N_cjs.plainDateToInstant(event.start, timezoneID);
|
|
289
|
+
const eventEnd = chunkJK4YAQ2N_cjs.plainDateToInstant(event.end.add({ days: 1 }), timezoneID);
|
|
84
290
|
return eventStart < range.end && eventEnd > range.start;
|
|
85
291
|
}
|
|
86
292
|
return event.start < range.end && event.end > range.start;
|
|
87
293
|
}
|
|
88
294
|
function eventOccursOnDate(event, date, timezoneID) {
|
|
89
295
|
if (isDayEvent(event)) {
|
|
90
|
-
return !
|
|
296
|
+
return !chunkJK4YAQ2N_cjs.plainDateIsAfter(event.start, date) && !chunkJK4YAQ2N_cjs.plainDateIsBefore(event.end, date);
|
|
91
297
|
}
|
|
92
|
-
const startDate =
|
|
93
|
-
const endDate =
|
|
298
|
+
const startDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(event.start, timezoneID);
|
|
299
|
+
const endDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(
|
|
94
300
|
Math.max(event.end - 1, event.start),
|
|
95
301
|
timezoneID
|
|
96
302
|
);
|
|
97
|
-
return !
|
|
303
|
+
return !chunkJK4YAQ2N_cjs.plainDateIsAfter(startDate, date) && !chunkJK4YAQ2N_cjs.plainDateIsBefore(endDate, date);
|
|
98
304
|
}
|
|
99
305
|
function sortEvents(events, timezoneID) {
|
|
100
306
|
return [...events].sort((a, b) => {
|
|
@@ -104,211 +310,108 @@ function sortEvents(events, timezoneID) {
|
|
|
104
310
|
});
|
|
105
311
|
}
|
|
106
312
|
function getEventSortStart(event, timezoneID) {
|
|
107
|
-
return isDayEvent(event) ?
|
|
313
|
+
return isDayEvent(event) ? chunkJK4YAQ2N_cjs.plainDateToInstant(event.start, timezoneID) : event.start;
|
|
108
314
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
bg: "var(--schedule-event-bg)",
|
|
177
|
-
color: "var(--schedule-event-fg)",
|
|
178
|
-
_hover: {
|
|
179
|
-
bg: "var(--schedule-event-bg-hover)"
|
|
315
|
+
|
|
316
|
+
// src/components/Schedule/Schedule.recipe.ts
|
|
317
|
+
var scheduleRecipe = chunkZ6RT3WPE_cjs.sva({
|
|
318
|
+
slots: [
|
|
319
|
+
"root",
|
|
320
|
+
"frame",
|
|
321
|
+
"header",
|
|
322
|
+
"headerSlotStart",
|
|
323
|
+
"headerSlotCenter",
|
|
324
|
+
"headerSlotEnd",
|
|
325
|
+
"headerTitleContent",
|
|
326
|
+
"headerTitleSpinner",
|
|
327
|
+
"surface"
|
|
328
|
+
],
|
|
329
|
+
base: {
|
|
330
|
+
root: {
|
|
331
|
+
color: "fg",
|
|
332
|
+
fontFamily: "body",
|
|
333
|
+
w: "full"
|
|
334
|
+
},
|
|
335
|
+
frame: {
|
|
336
|
+
display: "flex",
|
|
337
|
+
flexDirection: "column",
|
|
338
|
+
gap: "3",
|
|
339
|
+
w: "full"
|
|
340
|
+
},
|
|
341
|
+
header: {
|
|
342
|
+
display: "grid",
|
|
343
|
+
gridTemplateColumns: "1fr auto 1fr",
|
|
344
|
+
alignItems: "center",
|
|
345
|
+
gap: "3"
|
|
346
|
+
},
|
|
347
|
+
headerSlotStart: {
|
|
348
|
+
display: "flex",
|
|
349
|
+
justifyContent: "flex-start",
|
|
350
|
+
alignItems: "center",
|
|
351
|
+
gap: "2"
|
|
352
|
+
},
|
|
353
|
+
headerSlotCenter: {
|
|
354
|
+
display: "flex",
|
|
355
|
+
justifyContent: "center",
|
|
356
|
+
alignItems: "center",
|
|
357
|
+
gap: "2",
|
|
358
|
+
textAlign: "center"
|
|
359
|
+
},
|
|
360
|
+
headerSlotEnd: {
|
|
361
|
+
display: "flex",
|
|
362
|
+
justifyContent: "flex-end",
|
|
363
|
+
alignItems: "center",
|
|
364
|
+
gap: "2"
|
|
365
|
+
},
|
|
366
|
+
headerTitleContent: {
|
|
367
|
+
display: "inline-flex",
|
|
368
|
+
alignItems: "center",
|
|
369
|
+
gap: "2"
|
|
370
|
+
},
|
|
371
|
+
headerTitleSpinner: {
|
|
372
|
+
marginInlineStart: "4px",
|
|
373
|
+
marginBlockStart: "4px"
|
|
374
|
+
},
|
|
375
|
+
surface: {
|
|
376
|
+
borderWidth: "default",
|
|
377
|
+
borderStyle: "solid",
|
|
378
|
+
borderColor: "border",
|
|
379
|
+
borderRadius: "md",
|
|
380
|
+
overflow: "hidden",
|
|
381
|
+
bg: "bg"
|
|
180
382
|
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"--schedule-event-bg-hover": "color-mix(in srgb, var(--schedule-event-dot) 14%, token(colors.bg))",
|
|
185
|
-
"--schedule-event-border": "color-mix(in srgb, var(--schedule-event-dot) 48%, token(colors.border))",
|
|
186
|
-
"--schedule-event-fg": "color-mix(in srgb, var(--schedule-event-fg-base) 52%, token(colors.fg.muted))"
|
|
187
|
-
}),
|
|
188
|
-
eventDot: chunkRU6JG3FS_cjs.css({
|
|
189
|
-
display: "inline-block",
|
|
190
|
-
w: "2",
|
|
191
|
-
h: "2",
|
|
192
|
-
borderRadius: "full",
|
|
193
|
-
bg: "var(--schedule-event-dot)",
|
|
194
|
-
flexShrink: 0
|
|
195
|
-
}),
|
|
196
|
-
eventTime: chunkRU6JG3FS_cjs.css({
|
|
197
|
-
flexShrink: 0,
|
|
198
|
-
fontWeight: "normal"
|
|
199
|
-
}),
|
|
200
|
-
eventTitle: chunkRU6JG3FS_cjs.css({
|
|
201
|
-
fontWeight: "bold",
|
|
202
|
-
overflow: "hidden",
|
|
203
|
-
textOverflow: "ellipsis",
|
|
204
|
-
whiteSpace: "nowrap"
|
|
205
|
-
})
|
|
206
|
-
};
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
var scheduleClasses = scheduleRecipe();
|
|
207
386
|
var categoryFallback = { label: "Event", color: "blue" };
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}),
|
|
217
|
-
cyan: chunkRU6JG3FS_cjs.css({
|
|
218
|
-
"--schedule-event-bg": "token(colors.surface.cyan)",
|
|
219
|
-
"--schedule-event-bg-hover": "token(colors.surface.cyan.hover)",
|
|
220
|
-
"--schedule-event-border": "token(colors.surface.cyan.accent)",
|
|
221
|
-
"--schedule-event-fg": "token(colors.surface.cyan.fg)",
|
|
222
|
-
"--schedule-event-fg-base": "token(colors.surface.cyan.fg)",
|
|
223
|
-
"--schedule-event-dot": "token(colors.surface.cyan.accent)"
|
|
224
|
-
}),
|
|
225
|
-
gray: chunkRU6JG3FS_cjs.css({
|
|
226
|
-
"--schedule-event-bg": "token(colors.surface.gray)",
|
|
227
|
-
"--schedule-event-bg-hover": "token(colors.surface.gray.hover)",
|
|
228
|
-
"--schedule-event-border": "token(colors.surface.gray.accent)",
|
|
229
|
-
"--schedule-event-fg": "token(colors.surface.gray.fg)",
|
|
230
|
-
"--schedule-event-fg-base": "token(colors.surface.gray.fg)",
|
|
231
|
-
"--schedule-event-dot": "token(colors.surface.gray.accent)"
|
|
232
|
-
}),
|
|
233
|
-
green: chunkRU6JG3FS_cjs.css({
|
|
234
|
-
"--schedule-event-bg": "token(colors.surface.green)",
|
|
235
|
-
"--schedule-event-bg-hover": "token(colors.surface.green.hover)",
|
|
236
|
-
"--schedule-event-border": "token(colors.surface.green.accent)",
|
|
237
|
-
"--schedule-event-fg": "token(colors.surface.green.fg)",
|
|
238
|
-
"--schedule-event-fg-base": "token(colors.surface.green.fg)",
|
|
239
|
-
"--schedule-event-dot": "token(colors.surface.green.accent)"
|
|
240
|
-
}),
|
|
241
|
-
orange: chunkRU6JG3FS_cjs.css({
|
|
242
|
-
"--schedule-event-bg": "token(colors.surface.orange)",
|
|
243
|
-
"--schedule-event-bg-hover": "token(colors.surface.orange.hover)",
|
|
244
|
-
"--schedule-event-border": "token(colors.surface.orange.accent)",
|
|
245
|
-
"--schedule-event-fg": "token(colors.surface.orange.fg)",
|
|
246
|
-
"--schedule-event-fg-base": "token(colors.surface.orange.fg)",
|
|
247
|
-
"--schedule-event-dot": "token(colors.surface.orange.accent)"
|
|
248
|
-
}),
|
|
249
|
-
pink: chunkRU6JG3FS_cjs.css({
|
|
250
|
-
"--schedule-event-bg": "token(colors.surface.pink)",
|
|
251
|
-
"--schedule-event-bg-hover": "token(colors.surface.pink.hover)",
|
|
252
|
-
"--schedule-event-border": "token(colors.surface.pink.accent)",
|
|
253
|
-
"--schedule-event-fg": "token(colors.surface.pink.fg)",
|
|
254
|
-
"--schedule-event-fg-base": "token(colors.surface.pink.fg)",
|
|
255
|
-
"--schedule-event-dot": "token(colors.surface.pink.accent)"
|
|
256
|
-
}),
|
|
257
|
-
purple: chunkRU6JG3FS_cjs.css({
|
|
258
|
-
"--schedule-event-bg": "token(colors.surface.purple)",
|
|
259
|
-
"--schedule-event-bg-hover": "token(colors.surface.purple.hover)",
|
|
260
|
-
"--schedule-event-border": "token(colors.surface.purple.accent)",
|
|
261
|
-
"--schedule-event-fg": "token(colors.surface.purple.fg)",
|
|
262
|
-
"--schedule-event-fg-base": "token(colors.surface.purple.fg)",
|
|
263
|
-
"--schedule-event-dot": "token(colors.surface.purple.accent)"
|
|
264
|
-
}),
|
|
265
|
-
red: chunkRU6JG3FS_cjs.css({
|
|
266
|
-
"--schedule-event-bg": "token(colors.surface.red)",
|
|
267
|
-
"--schedule-event-bg-hover": "token(colors.surface.red.hover)",
|
|
268
|
-
"--schedule-event-border": "token(colors.surface.red.accent)",
|
|
269
|
-
"--schedule-event-fg": "token(colors.surface.red.fg)",
|
|
270
|
-
"--schedule-event-fg-base": "token(colors.surface.red.fg)",
|
|
271
|
-
"--schedule-event-dot": "token(colors.surface.red.accent)"
|
|
272
|
-
}),
|
|
273
|
-
teal: chunkRU6JG3FS_cjs.css({
|
|
274
|
-
"--schedule-event-bg": "token(colors.surface.teal)",
|
|
275
|
-
"--schedule-event-bg-hover": "token(colors.surface.teal.hover)",
|
|
276
|
-
"--schedule-event-border": "token(colors.surface.teal.accent)",
|
|
277
|
-
"--schedule-event-fg": "token(colors.surface.teal.fg)",
|
|
278
|
-
"--schedule-event-fg-base": "token(colors.surface.teal.fg)",
|
|
279
|
-
"--schedule-event-dot": "token(colors.surface.teal.accent)"
|
|
280
|
-
}),
|
|
281
|
-
yellow: chunkRU6JG3FS_cjs.css({
|
|
282
|
-
"--schedule-event-bg": "token(colors.surface.yellow)",
|
|
283
|
-
"--schedule-event-bg-hover": "token(colors.surface.yellow.hover)",
|
|
284
|
-
"--schedule-event-border": "token(colors.surface.yellow.accent)",
|
|
285
|
-
"--schedule-event-fg": "token(colors.surface.yellow.fg)",
|
|
286
|
-
"--schedule-event-fg-base": "token(colors.surface.yellow.fg)",
|
|
287
|
-
"--schedule-event-dot": "token(colors.surface.yellow.accent)"
|
|
288
|
-
})
|
|
289
|
-
};
|
|
290
|
-
function getCategory(categories, event) {
|
|
291
|
-
return categories.find((category) => category.label === event.category) ?? (event.category != null ? { label: event.category, color: categoryFallback.color } : categoryFallback);
|
|
387
|
+
function createCategoryMap(categories) {
|
|
388
|
+
const categoryMap = /* @__PURE__ */ new Map();
|
|
389
|
+
categories.forEach((category) => {
|
|
390
|
+
if (!categoryMap.has(category.label)) {
|
|
391
|
+
categoryMap.set(category.label, category);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
return categoryMap;
|
|
292
395
|
}
|
|
293
|
-
function
|
|
294
|
-
return
|
|
396
|
+
function getCategory(categoryMap, event) {
|
|
397
|
+
return (event.category == null ? void 0 : categoryMap.get(event.category)) ?? (event.category != null ? { label: event.category, color: categoryFallback.color } : categoryFallback);
|
|
295
398
|
}
|
|
296
399
|
function formatDate(date) {
|
|
297
|
-
return
|
|
400
|
+
return chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
298
401
|
}
|
|
299
402
|
function formatMonthTitle(date) {
|
|
300
|
-
return
|
|
403
|
+
return chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_MONTH_YEAR);
|
|
301
404
|
}
|
|
302
405
|
function formatWeekTitle(start, end) {
|
|
303
406
|
if (start.year === end.year && start.month === end.month) {
|
|
304
407
|
return formatMonthTitle(start);
|
|
305
408
|
}
|
|
306
|
-
const startMonth =
|
|
307
|
-
const endMonth =
|
|
409
|
+
const startMonth = chunkJK4YAQ2N_cjs.plainDateFormat(start, { month: "long" });
|
|
410
|
+
const endMonth = chunkJK4YAQ2N_cjs.plainDateFormat(end, { month: "long" });
|
|
308
411
|
return start.year === end.year ? `${startMonth} - ${endMonth} ${end.year}` : `${startMonth} ${start.year} - ${endMonth} ${end.year}`;
|
|
309
412
|
}
|
|
310
413
|
function formatListRangeTitle(start, end) {
|
|
311
|
-
return
|
|
414
|
+
return chunkJK4YAQ2N_cjs.plainDateIsEqual(start, end) ? formatDate(start) : formatWeekTitle(start, end);
|
|
312
415
|
}
|
|
313
416
|
function formatTime(instant, timezoneID) {
|
|
314
417
|
return polyfill.Temporal.Instant.fromEpochMilliseconds(instant).toZonedDateTimeISO(timezoneID).toLocaleString(void 0, {
|
|
@@ -326,7 +429,7 @@ function formatTimezoneAbbreviation(date, timezoneID) {
|
|
|
326
429
|
);
|
|
327
430
|
return parts.find((part) => part.type === "timeZoneName")?.value ?? timezoneID;
|
|
328
431
|
}
|
|
329
|
-
function formatHour(hour
|
|
432
|
+
function formatHour(hour) {
|
|
330
433
|
return polyfill.Temporal.PlainTime.from({ hour }).toLocaleString(void 0, {
|
|
331
434
|
hour: "numeric"
|
|
332
435
|
});
|
|
@@ -340,8 +443,8 @@ function getEventTimeLabel(event, timezoneID) {
|
|
|
340
443
|
function getEventStartTimeLabel(event, timezoneID) {
|
|
341
444
|
return isDayEvent(event) ? null : formatTime(event.start, timezoneID);
|
|
342
445
|
}
|
|
343
|
-
function getEventAccessibleLabel(event,
|
|
344
|
-
const category = getCategory(
|
|
446
|
+
function getEventAccessibleLabel(event, categoryMap, timezoneID) {
|
|
447
|
+
const category = getCategory(categoryMap, event);
|
|
345
448
|
return `${event.title}, ${category.label}, ${getEventTimeLabel(event, timezoneID)}`;
|
|
346
449
|
}
|
|
347
450
|
function getMinutesSinceStartOfDay(instant, timezoneID) {
|
|
@@ -350,9 +453,9 @@ function getMinutesSinceStartOfDay(instant, timezoneID) {
|
|
|
350
453
|
}
|
|
351
454
|
function isEventInPast(event, currentTime2, timezoneID) {
|
|
352
455
|
if (isDayEvent(event)) {
|
|
353
|
-
return
|
|
456
|
+
return chunkJK4YAQ2N_cjs.plainDateIsBefore(
|
|
354
457
|
event.end,
|
|
355
|
-
|
|
458
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(currentTime2, timezoneID)
|
|
356
459
|
);
|
|
357
460
|
}
|
|
358
461
|
return event.end <= currentTime2;
|
|
@@ -361,19 +464,16 @@ function CalendarEventPill({
|
|
|
361
464
|
event,
|
|
362
465
|
isPast = false
|
|
363
466
|
}) {
|
|
364
|
-
const {
|
|
365
|
-
const category = getCategory(
|
|
467
|
+
const { categoryMap, timezoneID } = useScheduleContext();
|
|
468
|
+
const category = getCategory(categoryMap, event);
|
|
469
|
+
const classes = scheduleEventRecipe({ color: category.color, isPast });
|
|
366
470
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
367
471
|
"span",
|
|
368
472
|
{
|
|
369
|
-
className:
|
|
370
|
-
styles.event,
|
|
371
|
-
eventColorClassName(category.color),
|
|
372
|
-
isPast && styles.eventPast
|
|
373
|
-
),
|
|
473
|
+
className: classes.event,
|
|
374
474
|
"data-state": isPast ? "past" : void 0,
|
|
375
475
|
"data-testid": `schedule-event-${event.id}`,
|
|
376
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
476
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.title, children: isDayEvent(event) ? event.title : getEventAccessibleLabel(event, categoryMap, timezoneID) })
|
|
377
477
|
}
|
|
378
478
|
);
|
|
379
479
|
}
|
|
@@ -381,23 +481,23 @@ function CalendarMonthEventPill({
|
|
|
381
481
|
event,
|
|
382
482
|
isPast = false
|
|
383
483
|
}) {
|
|
384
|
-
const {
|
|
385
|
-
const category = getCategory(
|
|
484
|
+
const { categoryMap, timezoneID } = useScheduleContext();
|
|
485
|
+
const category = getCategory(categoryMap, event);
|
|
386
486
|
const startTimeLabel = getEventStartTimeLabel(event, timezoneID);
|
|
487
|
+
const classes = scheduleEventRecipe({
|
|
488
|
+
color: category.color,
|
|
489
|
+
isPast,
|
|
490
|
+
isFullWidth: true
|
|
491
|
+
});
|
|
387
492
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
388
493
|
"span",
|
|
389
494
|
{
|
|
390
|
-
className:
|
|
391
|
-
styles.event,
|
|
392
|
-
chunkRU6JG3FS_cjs.css({ w: "full" }),
|
|
393
|
-
eventColorClassName(category.color),
|
|
394
|
-
isPast && styles.eventPast
|
|
395
|
-
),
|
|
495
|
+
className: classes.event,
|
|
396
496
|
"data-state": isPast ? "past" : void 0,
|
|
397
497
|
"data-testid": `schedule-event-${event.id}`,
|
|
398
498
|
children: [
|
|
399
|
-
startTimeLabel != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
400
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
499
|
+
startTimeLabel != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.time, children: startTimeLabel }) : null,
|
|
500
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.title, children: event.title })
|
|
401
501
|
]
|
|
402
502
|
}
|
|
403
503
|
);
|
|
@@ -410,9 +510,16 @@ function ScheduleFrame({
|
|
|
410
510
|
const { isLoading, plugins } = useScheduleContext();
|
|
411
511
|
const initialHeader = {
|
|
412
512
|
startContent: null,
|
|
413
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
414
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
415
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
513
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: scheduleClasses.headerTitleContent, children: [
|
|
514
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Heading, { level: 2, children: title }),
|
|
515
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
516
|
+
chunkBSI4BQEX_cjs.Spinner,
|
|
517
|
+
{
|
|
518
|
+
"aria-label": "Loading events",
|
|
519
|
+
className: scheduleClasses.headerTitleSpinner,
|
|
520
|
+
size: "sm"
|
|
521
|
+
}
|
|
522
|
+
) : null
|
|
416
523
|
] }),
|
|
417
524
|
endContent: null
|
|
418
525
|
};
|
|
@@ -424,11 +531,11 @@ function ScheduleFrame({
|
|
|
424
531
|
) ?? content,
|
|
425
532
|
initialHeader
|
|
426
533
|
);
|
|
427
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": titleLabel, className:
|
|
428
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
429
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
430
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
431
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
534
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": titleLabel, className: scheduleClasses.frame, children: [
|
|
535
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: scheduleClasses.header, children: [
|
|
536
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: scheduleClasses.headerSlotStart, children: header.startContent }),
|
|
537
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: scheduleClasses.headerSlotCenter, children: header.centerContent }),
|
|
538
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: scheduleClasses.headerSlotEnd, children: header.endContent })
|
|
432
539
|
] }),
|
|
433
540
|
children
|
|
434
541
|
] });
|
|
@@ -465,7 +572,7 @@ function subscribe(listener) {
|
|
|
465
572
|
function useCurrentTime() {
|
|
466
573
|
return react.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
467
574
|
}
|
|
468
|
-
var
|
|
575
|
+
var styles = {
|
|
469
576
|
grid: chunkRU6JG3FS_cjs.css({
|
|
470
577
|
display: "grid",
|
|
471
578
|
gridTemplateColumns: "72px 1fr",
|
|
@@ -571,41 +678,6 @@ var styles2 = {
|
|
|
571
678
|
lastRow: chunkRU6JG3FS_cjs.css({
|
|
572
679
|
borderBlockEndWidth: 0
|
|
573
680
|
}),
|
|
574
|
-
timedEvent: chunkRU6JG3FS_cjs.css({
|
|
575
|
-
position: "absolute",
|
|
576
|
-
display: "flex",
|
|
577
|
-
flexDirection: "column",
|
|
578
|
-
gap: 0,
|
|
579
|
-
minH: "9",
|
|
580
|
-
minW: 0,
|
|
581
|
-
overflow: "hidden",
|
|
582
|
-
borderWidth: "default",
|
|
583
|
-
borderStyle: "solid",
|
|
584
|
-
borderColor: "var(--schedule-event-border)",
|
|
585
|
-
borderRadius: "sm",
|
|
586
|
-
px: "1",
|
|
587
|
-
py: "0.5",
|
|
588
|
-
fontSize: "xs",
|
|
589
|
-
lineHeight: "tight",
|
|
590
|
-
bg: "var(--schedule-event-bg)",
|
|
591
|
-
color: "var(--schedule-event-fg)",
|
|
592
|
-
_hover: {
|
|
593
|
-
bg: "var(--schedule-event-bg-hover)"
|
|
594
|
-
}
|
|
595
|
-
}),
|
|
596
|
-
timedEventTitle: chunkRU6JG3FS_cjs.css({
|
|
597
|
-
overflow: "hidden",
|
|
598
|
-
textOverflow: "ellipsis",
|
|
599
|
-
whiteSpace: "nowrap",
|
|
600
|
-
fontWeight: "bold"
|
|
601
|
-
}),
|
|
602
|
-
timedEventTime: chunkRU6JG3FS_cjs.css({
|
|
603
|
-
overflow: "hidden",
|
|
604
|
-
textOverflow: "ellipsis",
|
|
605
|
-
whiteSpace: "nowrap",
|
|
606
|
-
flexShrink: 0,
|
|
607
|
-
fontWeight: "normal"
|
|
608
|
-
}),
|
|
609
681
|
events: chunkRU6JG3FS_cjs.css({
|
|
610
682
|
display: "flex",
|
|
611
683
|
flexDirection: "column",
|
|
@@ -647,8 +719,8 @@ function eventOverlapsHour(event, day, hour, timezoneID) {
|
|
|
647
719
|
return event.start < hourEnd && event.end > hourStart;
|
|
648
720
|
}
|
|
649
721
|
function eventSpansPastDay(event, day, timezoneID) {
|
|
650
|
-
return !
|
|
651
|
-
|
|
722
|
+
return !chunkJK4YAQ2N_cjs.plainDateIsEqual(
|
|
723
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(Math.max(event.end - 1, event.start), timezoneID),
|
|
652
724
|
day
|
|
653
725
|
);
|
|
654
726
|
}
|
|
@@ -670,8 +742,8 @@ function getTimedEventLayouts({
|
|
|
670
742
|
const minMinute = minHour * 60;
|
|
671
743
|
const maxMinute = maxHour * 60;
|
|
672
744
|
return events.map((event) => {
|
|
673
|
-
const startDate =
|
|
674
|
-
const rawStart =
|
|
745
|
+
const startDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(event.start, timezoneID);
|
|
746
|
+
const rawStart = chunkJK4YAQ2N_cjs.plainDateIsBefore(startDate, day) ? 0 : getMinutesSinceStartOfDay(event.start, timezoneID);
|
|
675
747
|
const rawEnd = eventSpansPastDay(event, day, timezoneID) ? 24 * 60 : getMinutesSinceStartOfDay(event.end, timezoneID);
|
|
676
748
|
if (rawEnd <= minMinute || rawStart >= maxMinute) {
|
|
677
749
|
return null;
|
|
@@ -716,15 +788,15 @@ function getTimedEventStyle({
|
|
|
716
788
|
};
|
|
717
789
|
}
|
|
718
790
|
function getCellName({
|
|
719
|
-
|
|
791
|
+
categoryMap,
|
|
720
792
|
date,
|
|
721
793
|
events,
|
|
722
794
|
hourLabel,
|
|
723
795
|
timezoneID
|
|
724
796
|
}) {
|
|
725
|
-
const dateLabel =
|
|
797
|
+
const dateLabel = chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
726
798
|
const eventLabels = events.map(
|
|
727
|
-
(event) => getEventAccessibleLabel(event,
|
|
799
|
+
(event) => getEventAccessibleLabel(event, categoryMap, timezoneID)
|
|
728
800
|
);
|
|
729
801
|
return eventLabels.length > 0 ? `${dateLabel} ${hourLabel}. ${eventLabels.join(". ")}` : `${dateLabel} ${hourLabel}`;
|
|
730
802
|
}
|
|
@@ -734,7 +806,7 @@ function TimeGridView({
|
|
|
734
806
|
maxHour = 24,
|
|
735
807
|
minHour = 0
|
|
736
808
|
}) {
|
|
737
|
-
const {
|
|
809
|
+
const { categoryMap, events, highlightDate, timezoneID } = useScheduleContext();
|
|
738
810
|
const normalizedMinHour = Math.max(0, Math.min(23, Math.floor(minHour)));
|
|
739
811
|
const normalizedMaxHour = Math.max(
|
|
740
812
|
normalizedMinHour + 1,
|
|
@@ -758,51 +830,63 @@ function TimeGridView({
|
|
|
758
830
|
height: normalizedHourHeight,
|
|
759
831
|
minHeight: normalizedHourHeight
|
|
760
832
|
};
|
|
833
|
+
const timedEventLayoutsByDay = days.map(
|
|
834
|
+
(day) => getTimedEventLayouts({
|
|
835
|
+
day,
|
|
836
|
+
events: events.filter(
|
|
837
|
+
(event) => !isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
|
|
838
|
+
),
|
|
839
|
+
hourHeight: normalizedHourHeight,
|
|
840
|
+
maxHour: normalizedMaxHour,
|
|
841
|
+
minHour: normalizedMinHour,
|
|
842
|
+
timezoneID
|
|
843
|
+
})
|
|
844
|
+
);
|
|
761
845
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
762
846
|
"div",
|
|
763
847
|
{
|
|
764
848
|
"aria-label": "Schedule time grid",
|
|
765
849
|
"aria-readonly": "true",
|
|
766
|
-
className:
|
|
850
|
+
className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.surface, styles.grid),
|
|
767
851
|
role: "grid",
|
|
768
852
|
style: gridStyle,
|
|
769
853
|
children: [
|
|
770
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
854
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.rowContents, role: "row", children: [
|
|
771
855
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
772
856
|
"div",
|
|
773
857
|
{
|
|
774
858
|
"aria-colindex": 1,
|
|
775
859
|
"aria-label": "Time",
|
|
776
|
-
className:
|
|
860
|
+
className: styles.corner,
|
|
777
861
|
role: "columnheader"
|
|
778
862
|
}
|
|
779
863
|
),
|
|
780
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
864
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.header, children: days.map((day, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
781
865
|
"div",
|
|
782
866
|
{
|
|
783
867
|
"aria-colindex": index + 2,
|
|
784
|
-
"aria-current":
|
|
785
|
-
"aria-label":
|
|
786
|
-
className:
|
|
787
|
-
|
|
788
|
-
index === days.length - 1 &&
|
|
868
|
+
"aria-current": chunkJK4YAQ2N_cjs.plainDateIsEqual(day, highlightPlainDate) ? "date" : void 0,
|
|
869
|
+
"aria-label": chunkJK4YAQ2N_cjs.plainDateFormat(day, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY),
|
|
870
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
871
|
+
styles.dayHeader,
|
|
872
|
+
index === days.length - 1 && styles.lastColumn
|
|
789
873
|
),
|
|
790
874
|
role: "columnheader",
|
|
791
875
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
792
|
-
|
|
876
|
+
chunk3Z5PF75J_cjs.Heading,
|
|
793
877
|
{
|
|
794
878
|
"aria-hidden": "true",
|
|
795
879
|
color: "secondary",
|
|
796
880
|
level: 4,
|
|
797
881
|
textWrap: "nowrap",
|
|
798
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
799
|
-
|
|
882
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles.dayHeaderContent, children: [
|
|
883
|
+
chunkJK4YAQ2N_cjs.plainDateFormat(day, { weekday: "short" }),
|
|
800
884
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
801
885
|
"span",
|
|
802
886
|
{
|
|
803
|
-
className:
|
|
804
|
-
|
|
805
|
-
|
|
887
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
888
|
+
styles.dayHeaderDayNumber,
|
|
889
|
+
chunkJK4YAQ2N_cjs.plainDateIsEqual(day, highlightPlainDate) && styles.dayHeaderCurrent
|
|
806
890
|
),
|
|
807
891
|
children: day.day
|
|
808
892
|
}
|
|
@@ -814,18 +898,18 @@ function TimeGridView({
|
|
|
814
898
|
day.toString()
|
|
815
899
|
)) })
|
|
816
900
|
] }),
|
|
817
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
901
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.rowContents, role: "row", children: [
|
|
818
902
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
819
903
|
"div",
|
|
820
904
|
{
|
|
821
905
|
"aria-colindex": 1,
|
|
822
906
|
"aria-label": `${timezoneLabel} all day`,
|
|
823
|
-
className:
|
|
907
|
+
className: styles.allDayLabel,
|
|
824
908
|
role: "rowheader",
|
|
825
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
909
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Text, { color: "secondary", type: "supporting", weight: "bold", children: timezoneLabel })
|
|
826
910
|
}
|
|
827
911
|
),
|
|
828
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
912
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.allDayRow, children: days.map((day, index) => {
|
|
829
913
|
const dayEvents = events.filter(
|
|
830
914
|
(event) => isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
|
|
831
915
|
);
|
|
@@ -834,18 +918,18 @@ function TimeGridView({
|
|
|
834
918
|
{
|
|
835
919
|
"aria-colindex": index + 2,
|
|
836
920
|
"aria-label": getCellName({
|
|
837
|
-
|
|
921
|
+
categoryMap,
|
|
838
922
|
date: day,
|
|
839
923
|
events: dayEvents,
|
|
840
924
|
hourLabel: "all day",
|
|
841
925
|
timezoneID
|
|
842
926
|
}),
|
|
843
|
-
className:
|
|
844
|
-
|
|
845
|
-
index === days.length - 1 &&
|
|
927
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
928
|
+
styles.dayCell,
|
|
929
|
+
index === days.length - 1 && styles.lastColumn
|
|
846
930
|
),
|
|
847
931
|
role: "gridcell",
|
|
848
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
932
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.events, children: dayEvents.map((event) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
849
933
|
CalendarEventPill,
|
|
850
934
|
{
|
|
851
935
|
event,
|
|
@@ -861,31 +945,22 @@ function TimeGridView({
|
|
|
861
945
|
hours.map((hour) => {
|
|
862
946
|
const hourLabel = formatHour(hour);
|
|
863
947
|
const isLastHour = hour === hours[hours.length - 1];
|
|
864
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
948
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.rowContents, role: "row", children: [
|
|
865
949
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
866
950
|
"div",
|
|
867
951
|
{
|
|
868
952
|
"aria-colindex": 1,
|
|
869
|
-
className:
|
|
953
|
+
className: chunkSPDVNY2Z_cjs.cx(styles.timeLabel, isLastHour && styles.lastRow),
|
|
870
954
|
role: "rowheader",
|
|
871
955
|
style: hourStyle,
|
|
872
956
|
children: hourLabel
|
|
873
957
|
}
|
|
874
958
|
),
|
|
875
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
959
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.timeRow, children: days.map((day, index) => {
|
|
876
960
|
const hourEvents = events.filter(
|
|
877
961
|
(event) => eventOverlapsHour(event, day, hour, timezoneID)
|
|
878
962
|
);
|
|
879
|
-
const visibleTimedEventLayouts =
|
|
880
|
-
day,
|
|
881
|
-
events: events.filter(
|
|
882
|
-
(event) => !isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
|
|
883
|
-
),
|
|
884
|
-
hourHeight: normalizedHourHeight,
|
|
885
|
-
maxHour: normalizedMaxHour,
|
|
886
|
-
minHour: normalizedMinHour,
|
|
887
|
-
timezoneID
|
|
888
|
-
}).filter((layout) => layout.startHour === hour);
|
|
963
|
+
const visibleTimedEventLayouts = timedEventLayoutsByDay[index].filter((layout) => layout.startHour === hour);
|
|
889
964
|
const currentTimeTop = getCurrentTimeTopForHour({
|
|
890
965
|
currentTime: currentTime2,
|
|
891
966
|
day,
|
|
@@ -899,16 +974,16 @@ function TimeGridView({
|
|
|
899
974
|
{
|
|
900
975
|
"aria-colindex": index + 2,
|
|
901
976
|
"aria-label": getCellName({
|
|
902
|
-
|
|
977
|
+
categoryMap,
|
|
903
978
|
date: day,
|
|
904
979
|
events: hourEvents,
|
|
905
980
|
hourLabel,
|
|
906
981
|
timezoneID
|
|
907
982
|
}),
|
|
908
|
-
className:
|
|
909
|
-
|
|
910
|
-
index === days.length - 1 &&
|
|
911
|
-
isLastHour &&
|
|
983
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
984
|
+
styles.hourCell,
|
|
985
|
+
index === days.length - 1 && styles.lastColumn,
|
|
986
|
+
isLastHour && styles.lastRow
|
|
912
987
|
),
|
|
913
988
|
role: "gridcell",
|
|
914
989
|
style: hourStyle,
|
|
@@ -917,28 +992,34 @@ function TimeGridView({
|
|
|
917
992
|
"div",
|
|
918
993
|
{
|
|
919
994
|
"aria-hidden": "true",
|
|
920
|
-
className:
|
|
995
|
+
className: styles.currentTimeLine,
|
|
921
996
|
"data-testid": "schedule-current-time-line",
|
|
922
997
|
style: { top: `${currentTimeTop}%` }
|
|
923
998
|
}
|
|
924
999
|
) : null,
|
|
925
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1000
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.events, children: visibleTimedEventLayouts.map((layout) => {
|
|
926
1001
|
const { event } = layout;
|
|
927
|
-
const category = getCategory(
|
|
1002
|
+
const category = getCategory(categoryMap, event);
|
|
1003
|
+
const isPast = isEventInPast(
|
|
1004
|
+
event,
|
|
1005
|
+
currentTime2,
|
|
1006
|
+
timezoneID
|
|
1007
|
+
);
|
|
1008
|
+
const eventClasses = scheduleEventRecipe({
|
|
1009
|
+
layout: "block",
|
|
1010
|
+
color: category.color,
|
|
1011
|
+
isPast
|
|
1012
|
+
});
|
|
928
1013
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
929
1014
|
"div",
|
|
930
1015
|
{
|
|
931
|
-
className:
|
|
932
|
-
|
|
933
|
-
eventColorClassName(category.color),
|
|
934
|
-
isEventInPast(event, currentTime2, timezoneID) && styles.eventPast
|
|
935
|
-
),
|
|
936
|
-
"data-state": isEventInPast(event, currentTime2, timezoneID) ? "past" : void 0,
|
|
1016
|
+
className: eventClasses.event,
|
|
1017
|
+
"data-state": isPast ? "past" : void 0,
|
|
937
1018
|
"data-testid": `schedule-event-${event.id}`,
|
|
938
1019
|
style: getTimedEventStyle(layout),
|
|
939
1020
|
children: [
|
|
940
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
941
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1021
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: eventClasses.title, children: event.title }),
|
|
1022
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: eventClasses.time, children: getEventTimeLabel(event, timezoneID) })
|
|
942
1023
|
]
|
|
943
1024
|
},
|
|
944
1025
|
event.id
|
|
@@ -963,7 +1044,7 @@ function getCurrentTimeTopForHour({
|
|
|
963
1044
|
minHour,
|
|
964
1045
|
timezoneID
|
|
965
1046
|
}) {
|
|
966
|
-
if (!
|
|
1047
|
+
if (!chunkJK4YAQ2N_cjs.plainDateIsEqual(day, chunkJK4YAQ2N_cjs.plainDateFromInstant(currentTime2, timezoneID))) {
|
|
967
1048
|
return null;
|
|
968
1049
|
}
|
|
969
1050
|
const currentMinute = getMinutesSinceStartOfDay(currentTime2, timezoneID);
|
|
@@ -981,35 +1062,35 @@ function getCurrentTimeTopForHour({
|
|
|
981
1062
|
return currentMinute % 60 / 60 * 100;
|
|
982
1063
|
}
|
|
983
1064
|
|
|
984
|
-
// src/components/Schedule/
|
|
985
|
-
function
|
|
986
|
-
return
|
|
1065
|
+
// src/components/Schedule/scheduleZonedInstant.ts
|
|
1066
|
+
function createScheduleZonedInstant(date, timezoneID) {
|
|
1067
|
+
return scheduleZonedInstantFromInstant(date, timezoneID);
|
|
987
1068
|
}
|
|
988
|
-
function
|
|
1069
|
+
function scheduleZonedInstantFromInstant(instant, timezoneID) {
|
|
989
1070
|
return {
|
|
990
1071
|
addDays: (days) => {
|
|
991
|
-
const date =
|
|
992
|
-
return
|
|
993
|
-
|
|
1072
|
+
const date = chunkJK4YAQ2N_cjs.plainDateFromInstant(instant, timezoneID).add({ days });
|
|
1073
|
+
return scheduleZonedInstantFromInstant(
|
|
1074
|
+
chunkJK4YAQ2N_cjs.plainDateToInstant(date, timezoneID),
|
|
994
1075
|
timezoneID
|
|
995
1076
|
);
|
|
996
1077
|
},
|
|
997
1078
|
instant,
|
|
998
1079
|
startOfDay: () => {
|
|
999
|
-
const date =
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1080
|
+
const date = chunkJK4YAQ2N_cjs.plainDateFromInstant(instant, timezoneID);
|
|
1081
|
+
return scheduleZonedInstantFromInstant(
|
|
1082
|
+
chunkJK4YAQ2N_cjs.plainDateToInstant(date, timezoneID),
|
|
1002
1083
|
timezoneID
|
|
1003
1084
|
);
|
|
1004
1085
|
},
|
|
1005
1086
|
timezoneID,
|
|
1006
|
-
toPlainDate: () =>
|
|
1087
|
+
toPlainDate: () => chunkJK4YAQ2N_cjs.plainDateFromInstant(instant, timezoneID)
|
|
1007
1088
|
};
|
|
1008
1089
|
}
|
|
1009
|
-
function
|
|
1090
|
+
function scheduleRangeToScheduleZonedInstantRange(range, timezoneID) {
|
|
1010
1091
|
return [
|
|
1011
|
-
|
|
1012
|
-
|
|
1092
|
+
scheduleZonedInstantFromInstant(range.start, timezoneID),
|
|
1093
|
+
scheduleZonedInstantFromInstant(range.end, timezoneID)
|
|
1013
1094
|
];
|
|
1014
1095
|
}
|
|
1015
1096
|
function ScheduleDayView({
|
|
@@ -1034,7 +1115,7 @@ function createScheduleDayView({
|
|
|
1034
1115
|
} = {}) {
|
|
1035
1116
|
return {
|
|
1036
1117
|
component: ScheduleDayView,
|
|
1037
|
-
getDateRange: (date) =>
|
|
1118
|
+
getDateRange: (date) => scheduleRangeToScheduleZonedInstantRange(
|
|
1038
1119
|
getScheduleRangeFromDates({
|
|
1039
1120
|
endDate: date.toPlainDate().add({ days: 1 }),
|
|
1040
1121
|
startDate: date.toPlainDate(),
|
|
@@ -1053,7 +1134,7 @@ function createScheduleDayView({
|
|
|
1053
1134
|
options: { hourHeight, maxHour, minHour }
|
|
1054
1135
|
};
|
|
1055
1136
|
}
|
|
1056
|
-
var
|
|
1137
|
+
var styles2 = {
|
|
1057
1138
|
list: chunkRU6JG3FS_cjs.css({
|
|
1058
1139
|
display: "flex",
|
|
1059
1140
|
flexDirection: "column"
|
|
@@ -1135,38 +1216,35 @@ function ListEvent({
|
|
|
1135
1216
|
event,
|
|
1136
1217
|
isPast
|
|
1137
1218
|
}) {
|
|
1138
|
-
const {
|
|
1139
|
-
const category = getCategory(
|
|
1219
|
+
const { categoryMap, timezoneID } = useScheduleContext();
|
|
1220
|
+
const category = getCategory(categoryMap, event);
|
|
1140
1221
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1141
1222
|
"div",
|
|
1142
1223
|
{
|
|
1143
|
-
className:
|
|
1224
|
+
className: chunkSPDVNY2Z_cjs.cx(styles2.eventRow, isPast && styles2.eventPast),
|
|
1144
1225
|
"data-state": isPast ? "past" : void 0,
|
|
1145
1226
|
children: [
|
|
1146
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1147
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1148
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1227
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Text, { className: styles2.eventTime, color: "secondary", type: "supporting", children: isDayEvent(event) ? "All day" : getEventTimeLabel(event, timezoneID) }),
|
|
1228
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles2.eventContent, children: [
|
|
1229
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJSAYTQTJ_cjs.Tooltip, { content: category.label, hasHoverIndication: false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1149
1230
|
"span",
|
|
1150
1231
|
{
|
|
1151
1232
|
"aria-label": category.label,
|
|
1152
|
-
className:
|
|
1153
|
-
styles.eventDot,
|
|
1154
|
-
eventColorClassName(category.color)
|
|
1155
|
-
),
|
|
1233
|
+
className: scheduleEventRecipe({ color: category.color }).dot,
|
|
1156
1234
|
role: "img"
|
|
1157
1235
|
}
|
|
1158
1236
|
) }),
|
|
1159
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1237
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Text, { children: event.title })
|
|
1160
1238
|
] })
|
|
1161
1239
|
]
|
|
1162
1240
|
}
|
|
1163
1241
|
);
|
|
1164
1242
|
}
|
|
1165
|
-
function ScheduleListView(
|
|
1243
|
+
function ScheduleListView() {
|
|
1166
1244
|
const { events, highlightDate, isLoading, range, timezoneID } = useScheduleContext();
|
|
1167
1245
|
const days = enumerateDates(range.startDate, range.endDate);
|
|
1168
1246
|
const currentTime2 = useCurrentTime();
|
|
1169
|
-
const currentPlainDate =
|
|
1247
|
+
const currentPlainDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(currentTime2, timezoneID);
|
|
1170
1248
|
const highlightPlainDate = highlightDate.toPlainDate();
|
|
1171
1249
|
const endDate = range.endDate.add({ days: -1 });
|
|
1172
1250
|
const title = formatListRangeTitle(range.startDate, endDate);
|
|
@@ -1174,9 +1252,9 @@ function ScheduleListView(_props) {
|
|
|
1174
1252
|
const dayEvents = events.filter(
|
|
1175
1253
|
(event) => eventOccursOnDate(event, day, timezoneID)
|
|
1176
1254
|
);
|
|
1177
|
-
const isCurrentDay =
|
|
1178
|
-
const isHighlightedDay =
|
|
1179
|
-
const isBaseDay =
|
|
1255
|
+
const isCurrentDay = chunkJK4YAQ2N_cjs.plainDateIsEqual(day, currentPlainDate);
|
|
1256
|
+
const isHighlightedDay = chunkJK4YAQ2N_cjs.plainDateIsEqual(day, highlightPlainDate);
|
|
1257
|
+
const isBaseDay = chunkJK4YAQ2N_cjs.plainDateIsEqual(day, range.startDate);
|
|
1180
1258
|
return {
|
|
1181
1259
|
day,
|
|
1182
1260
|
dayEvents,
|
|
@@ -1185,15 +1263,15 @@ function ScheduleListView(_props) {
|
|
|
1185
1263
|
isVisible: dayEvents.length > 0 || isCurrentDay || isBaseDay
|
|
1186
1264
|
};
|
|
1187
1265
|
}).filter((dayRecord) => dayRecord.isVisible);
|
|
1188
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1266
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.surface, styles2.list), children: visibleDays.map(
|
|
1189
1267
|
({ day, dayEvents, isCurrentDay, isHighlightedDay }, index) => {
|
|
1190
|
-
const fullDate =
|
|
1268
|
+
const fullDate = chunkJK4YAQ2N_cjs.plainDateFormat(day, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
1191
1269
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1192
1270
|
"section",
|
|
1193
1271
|
{
|
|
1194
|
-
className:
|
|
1195
|
-
|
|
1196
|
-
index === visibleDays.length - 1 &&
|
|
1272
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
1273
|
+
styles2.day,
|
|
1274
|
+
index === visibleDays.length - 1 && styles2.dayLast
|
|
1197
1275
|
),
|
|
1198
1276
|
children: [
|
|
1199
1277
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1201,23 +1279,23 @@ function ScheduleListView(_props) {
|
|
|
1201
1279
|
{
|
|
1202
1280
|
"aria-current": isHighlightedDay ? "date" : void 0,
|
|
1203
1281
|
"aria-label": fullDate,
|
|
1204
|
-
className:
|
|
1282
|
+
className: styles2.dayHeading,
|
|
1205
1283
|
children: [
|
|
1206
1284
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1207
1285
|
"span",
|
|
1208
1286
|
{
|
|
1209
|
-
className:
|
|
1210
|
-
|
|
1211
|
-
isHighlightedDay &&
|
|
1287
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
1288
|
+
styles2.dayNumber,
|
|
1289
|
+
isHighlightedDay && styles2.dayNumberCurrent
|
|
1212
1290
|
),
|
|
1213
1291
|
children: day.day
|
|
1214
1292
|
}
|
|
1215
1293
|
),
|
|
1216
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1294
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles2.dayWeekday, children: chunkJK4YAQ2N_cjs.plainDateFormat(day, { weekday: "short" }) })
|
|
1217
1295
|
]
|
|
1218
1296
|
}
|
|
1219
1297
|
),
|
|
1220
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1298
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.events, children: renderListRows({
|
|
1221
1299
|
currentTime: currentTime2,
|
|
1222
1300
|
events: dayEvents,
|
|
1223
1301
|
isShowingCurrentTime: isCurrentDay && !isLoading,
|
|
@@ -1251,7 +1329,7 @@ function renderListRows({
|
|
|
1251
1329
|
"div",
|
|
1252
1330
|
{
|
|
1253
1331
|
"aria-hidden": "true",
|
|
1254
|
-
className:
|
|
1332
|
+
className: styles2.nowRow,
|
|
1255
1333
|
"data-testid": "schedule-list-current-time"
|
|
1256
1334
|
},
|
|
1257
1335
|
"current-time"
|
|
@@ -1287,7 +1365,7 @@ function createScheduleListView({
|
|
|
1287
1365
|
options: { days }
|
|
1288
1366
|
};
|
|
1289
1367
|
}
|
|
1290
|
-
var
|
|
1368
|
+
var styles3 = {
|
|
1291
1369
|
grid: chunkRU6JG3FS_cjs.css({
|
|
1292
1370
|
display: "grid",
|
|
1293
1371
|
gridTemplateColumns: "repeat(7, minmax(0, 1fr))"
|
|
@@ -1350,14 +1428,14 @@ var styles4 = {
|
|
|
1350
1428
|
monthCellGrid: chunkRU6JG3FS_cjs.css({
|
|
1351
1429
|
display: "grid",
|
|
1352
1430
|
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
1353
|
-
gridAutoRows: "
|
|
1431
|
+
gridAutoRows: "var(--schedule-month-row-height)"
|
|
1354
1432
|
}),
|
|
1355
1433
|
monthEventOverlay: chunkRU6JG3FS_cjs.css({
|
|
1356
1434
|
position: "absolute",
|
|
1357
1435
|
inset: 0,
|
|
1358
1436
|
display: "grid",
|
|
1359
1437
|
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
1360
|
-
gridAutoRows: "
|
|
1438
|
+
gridAutoRows: "var(--schedule-month-row-height)",
|
|
1361
1439
|
pointerEvents: "none"
|
|
1362
1440
|
}),
|
|
1363
1441
|
monthEventSpan: chunkRU6JG3FS_cjs.css({
|
|
@@ -1366,6 +1444,46 @@ var styles4 = {
|
|
|
1366
1444
|
mx: "0.5",
|
|
1367
1445
|
pointerEvents: "auto",
|
|
1368
1446
|
zIndex: 1
|
|
1447
|
+
}),
|
|
1448
|
+
monthSeeMoreSpan: chunkRU6JG3FS_cjs.css({
|
|
1449
|
+
alignSelf: "start",
|
|
1450
|
+
minW: 0,
|
|
1451
|
+
mx: "0.5",
|
|
1452
|
+
pointerEvents: "auto",
|
|
1453
|
+
zIndex: 2
|
|
1454
|
+
}),
|
|
1455
|
+
monthSeeMoreButton: chunkRU6JG3FS_cjs.css({
|
|
1456
|
+
display: "inline-flex",
|
|
1457
|
+
alignItems: "center",
|
|
1458
|
+
maxW: "full",
|
|
1459
|
+
h: "5",
|
|
1460
|
+
px: "1",
|
|
1461
|
+
borderRadius: "sm",
|
|
1462
|
+
color: "primary",
|
|
1463
|
+
cursor: "pointer",
|
|
1464
|
+
fontSize: "xs",
|
|
1465
|
+
fontWeight: "medium",
|
|
1466
|
+
lineHeight: "tight",
|
|
1467
|
+
overflow: "hidden",
|
|
1468
|
+
textOverflow: "ellipsis",
|
|
1469
|
+
whiteSpace: "nowrap",
|
|
1470
|
+
_hover: {
|
|
1471
|
+
bg: "bg.muted"
|
|
1472
|
+
}
|
|
1473
|
+
}),
|
|
1474
|
+
monthPopoverContent: chunkRU6JG3FS_cjs.css({
|
|
1475
|
+
display: "flex",
|
|
1476
|
+
flexDirection: "column",
|
|
1477
|
+
gap: "1",
|
|
1478
|
+
p: "3"
|
|
1479
|
+
}),
|
|
1480
|
+
monthPopoverEvents: chunkRU6JG3FS_cjs.css({
|
|
1481
|
+
display: "flex",
|
|
1482
|
+
flexDirection: "column",
|
|
1483
|
+
gap: 0,
|
|
1484
|
+
m: 0,
|
|
1485
|
+
p: 0,
|
|
1486
|
+
listStyleType: "none"
|
|
1369
1487
|
})
|
|
1370
1488
|
};
|
|
1371
1489
|
var weekdays = [
|
|
@@ -1377,16 +1495,26 @@ var weekdays = [
|
|
|
1377
1495
|
{ label: "Friday", shortLabel: "Fri" },
|
|
1378
1496
|
{ label: "Saturday", shortLabel: "Sat" }
|
|
1379
1497
|
];
|
|
1380
|
-
function
|
|
1498
|
+
function getWeekdays(weekStartsOn) {
|
|
1499
|
+
return Array.from(
|
|
1500
|
+
{ length: 7 },
|
|
1501
|
+
(_, index) => weekdays[(index + weekStartsOn) % 7]
|
|
1502
|
+
);
|
|
1503
|
+
}
|
|
1504
|
+
function setStartOfWeek(date, weekStartsOn) {
|
|
1505
|
+
const daysSinceWeekStart = (chunkJK4YAQ2N_cjs.plainDateDayOfWeek(date) - weekStartsOn + 7) % 7;
|
|
1506
|
+
return date.add({ days: -daysSinceWeekStart });
|
|
1507
|
+
}
|
|
1508
|
+
function getMonthDays(date, weekCount, weekStartsOn) {
|
|
1381
1509
|
const firstOfMonth = date.with({ day: 1 });
|
|
1382
|
-
const firstVisibleDay =
|
|
1510
|
+
const firstVisibleDay = setStartOfWeek(firstOfMonth, weekStartsOn);
|
|
1383
1511
|
return Array.from(
|
|
1384
1512
|
{ length: weekCount * 7 },
|
|
1385
1513
|
(_, index) => firstVisibleDay.add({ days: index })
|
|
1386
1514
|
);
|
|
1387
1515
|
}
|
|
1388
|
-
function getVisibleMonthRange(date, month, weekCount) {
|
|
1389
|
-
const firstVisible =
|
|
1516
|
+
function getVisibleMonthRange(date, month, weekCount, weekStartsOn) {
|
|
1517
|
+
const firstVisible = setStartOfWeek(month.with({ day: 1 }), weekStartsOn);
|
|
1390
1518
|
const end = firstVisible.add({ days: weekCount * 7 });
|
|
1391
1519
|
const currentDate = date.toPlainDate();
|
|
1392
1520
|
return [
|
|
@@ -1394,16 +1522,61 @@ function getVisibleMonthRange(date, month, weekCount) {
|
|
|
1394
1522
|
date.startOfDay().addDays(currentDate.until(end).days)
|
|
1395
1523
|
];
|
|
1396
1524
|
}
|
|
1397
|
-
var
|
|
1525
|
+
var DEFAULT_MONTH_ROW_HEIGHT = 128;
|
|
1526
|
+
var MONTH_EVENT_TOP_OFFSET = 30;
|
|
1527
|
+
var MONTH_EVENT_LEVEL_HEIGHT = 22;
|
|
1528
|
+
var MONTH_EVENT_HEIGHT = 20;
|
|
1529
|
+
var MONTH_EVENT_BOTTOM_PADDING = 4;
|
|
1398
1530
|
function getEventDateSpan(event, timezoneID) {
|
|
1399
1531
|
if (isDayEvent(event)) {
|
|
1400
1532
|
return [event.start, event.end];
|
|
1401
1533
|
}
|
|
1402
1534
|
return [
|
|
1403
|
-
|
|
1404
|
-
|
|
1535
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(event.start, timezoneID),
|
|
1536
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(Math.max(event.end - 1, event.start), timezoneID)
|
|
1405
1537
|
];
|
|
1406
1538
|
}
|
|
1539
|
+
function getEventVisibleDateIndexes({
|
|
1540
|
+
event,
|
|
1541
|
+
firstDay,
|
|
1542
|
+
lastDay,
|
|
1543
|
+
timezoneID
|
|
1544
|
+
}) {
|
|
1545
|
+
const [eventStart, eventEnd] = getEventDateSpan(event, timezoneID);
|
|
1546
|
+
if (chunkJK4YAQ2N_cjs.plainDateIsBefore(eventEnd, firstDay) || chunkJK4YAQ2N_cjs.plainDateIsAfter(eventStart, lastDay)) {
|
|
1547
|
+
return null;
|
|
1548
|
+
}
|
|
1549
|
+
const startIndex = chunkJK4YAQ2N_cjs.plainDateIsBefore(eventStart, firstDay) ? 0 : firstDay.until(eventStart).days;
|
|
1550
|
+
const endIndex = chunkJK4YAQ2N_cjs.plainDateIsAfter(eventEnd, lastDay) ? firstDay.until(lastDay).days : firstDay.until(eventEnd).days;
|
|
1551
|
+
return [startIndex, endIndex];
|
|
1552
|
+
}
|
|
1553
|
+
function getEventsByDate(events, days, timezoneID) {
|
|
1554
|
+
const eventsByDate = /* @__PURE__ */ new Map();
|
|
1555
|
+
if (days.length === 0) {
|
|
1556
|
+
return eventsByDate;
|
|
1557
|
+
}
|
|
1558
|
+
const firstDay = days[0];
|
|
1559
|
+
const lastDay = days[days.length - 1];
|
|
1560
|
+
days.forEach((day) => {
|
|
1561
|
+
eventsByDate.set(day.toString(), []);
|
|
1562
|
+
});
|
|
1563
|
+
events.forEach((event) => {
|
|
1564
|
+
const indexes = getEventVisibleDateIndexes({
|
|
1565
|
+
event,
|
|
1566
|
+
firstDay,
|
|
1567
|
+
lastDay,
|
|
1568
|
+
timezoneID
|
|
1569
|
+
});
|
|
1570
|
+
if (indexes == null) {
|
|
1571
|
+
return;
|
|
1572
|
+
}
|
|
1573
|
+
const [startIndex, endIndex] = indexes;
|
|
1574
|
+
for (let index = startIndex; index <= endIndex; index += 1) {
|
|
1575
|
+
eventsByDate.get(days[index].toString())?.push(event);
|
|
1576
|
+
}
|
|
1577
|
+
});
|
|
1578
|
+
return eventsByDate;
|
|
1579
|
+
}
|
|
1407
1580
|
function getAvailableLevel(levels, columnStart) {
|
|
1408
1581
|
const level = levels.findIndex((columnEnd) => columnStart > columnEnd);
|
|
1409
1582
|
return level >= 0 ? level : levels.length;
|
|
@@ -1411,18 +1584,22 @@ function getAvailableLevel(levels, columnStart) {
|
|
|
1411
1584
|
function getMonthEventSegments(events, days, timezoneID) {
|
|
1412
1585
|
const segments = [];
|
|
1413
1586
|
const levelsByWeek = [];
|
|
1587
|
+
if (days.length === 0) {
|
|
1588
|
+
return segments;
|
|
1589
|
+
}
|
|
1414
1590
|
const firstDay = days[0];
|
|
1415
1591
|
const lastDay = days[days.length - 1];
|
|
1416
1592
|
const monthEvents = events.map((event) => {
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1593
|
+
const indexes = getEventVisibleDateIndexes({
|
|
1594
|
+
event,
|
|
1595
|
+
firstDay,
|
|
1596
|
+
lastDay,
|
|
1597
|
+
timezoneID
|
|
1598
|
+
});
|
|
1599
|
+
if (indexes == null) {
|
|
1423
1600
|
return null;
|
|
1424
1601
|
}
|
|
1425
|
-
const endIndex =
|
|
1602
|
+
const [startIndex, endIndex] = indexes;
|
|
1426
1603
|
return {
|
|
1427
1604
|
endIndex,
|
|
1428
1605
|
event,
|
|
@@ -1446,19 +1623,21 @@ function getMonthEventSegments(events, days, timezoneID) {
|
|
|
1446
1623
|
return a.event.title.localeCompare(b.event.title);
|
|
1447
1624
|
});
|
|
1448
1625
|
monthEvents.forEach(({ endIndex, event, startIndex }) => {
|
|
1449
|
-
const [eventStart, eventEnd] = getEventDateSpan(event, timezoneID);
|
|
1450
|
-
if (chunkCK3UJQRI_cjs.plainDateIsBefore(eventEnd, firstDay) || chunkCK3UJQRI_cjs.plainDateIsAfter(eventStart, lastDay)) {
|
|
1451
|
-
return;
|
|
1452
|
-
}
|
|
1453
1626
|
for (let week = Math.floor(startIndex / 7); week <= Math.floor(endIndex / 7); week += 1) {
|
|
1454
1627
|
const columnStart = week === Math.floor(startIndex / 7) ? startIndex % 7 : 0;
|
|
1455
1628
|
const columnEnd = week === Math.floor(endIndex / 7) ? endIndex % 7 : 6;
|
|
1456
1629
|
const weekLevels = levelsByWeek[week] ?? (levelsByWeek[week] = []);
|
|
1457
1630
|
const level = getAvailableLevel(weekLevels, columnStart);
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1631
|
+
weekLevels[level] = columnEnd;
|
|
1632
|
+
segments.push({
|
|
1633
|
+
columnEnd,
|
|
1634
|
+
columnStart,
|
|
1635
|
+
endIndex,
|
|
1636
|
+
event,
|
|
1637
|
+
level,
|
|
1638
|
+
startIndex,
|
|
1639
|
+
week
|
|
1640
|
+
});
|
|
1462
1641
|
}
|
|
1463
1642
|
});
|
|
1464
1643
|
return segments;
|
|
@@ -1472,81 +1651,173 @@ function getMonthEventSegmentStyle({
|
|
|
1472
1651
|
return {
|
|
1473
1652
|
gridColumn: `${columnStart + 1} / ${columnEnd + 2}`,
|
|
1474
1653
|
gridRow: `${week + 1}`,
|
|
1475
|
-
marginBlockStart: `${
|
|
1654
|
+
marginBlockStart: `${MONTH_EVENT_TOP_OFFSET + level * MONTH_EVENT_LEVEL_HEIGHT}px`
|
|
1476
1655
|
};
|
|
1477
1656
|
}
|
|
1657
|
+
function getMonthEventLevelCount(monthRowHeight) {
|
|
1658
|
+
const availableHeight = monthRowHeight - MONTH_EVENT_TOP_OFFSET - MONTH_EVENT_HEIGHT - MONTH_EVENT_BOTTOM_PADDING;
|
|
1659
|
+
return Math.max(
|
|
1660
|
+
1,
|
|
1661
|
+
Math.floor(availableHeight / MONTH_EVENT_LEVEL_HEIGHT) + 1
|
|
1662
|
+
);
|
|
1663
|
+
}
|
|
1664
|
+
function getMonthSeeMoreStyle({
|
|
1665
|
+
dayIndex,
|
|
1666
|
+
level
|
|
1667
|
+
}) {
|
|
1668
|
+
return {
|
|
1669
|
+
gridColumn: `${dayIndex % 7 + 1} / ${dayIndex % 7 + 2}`,
|
|
1670
|
+
gridRow: `${Math.floor(dayIndex / 7) + 1}`,
|
|
1671
|
+
marginBlockStart: `${MONTH_EVENT_TOP_OFFSET + level * MONTH_EVENT_LEVEL_HEIGHT}px`
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
function segmentCoversDay(segment, dayIndex) {
|
|
1675
|
+
return segment.startIndex <= dayIndex && segment.endIndex >= dayIndex;
|
|
1676
|
+
}
|
|
1677
|
+
function shouldReserveSeeMoreLevel({
|
|
1678
|
+
dayEvents,
|
|
1679
|
+
levelCount
|
|
1680
|
+
}) {
|
|
1681
|
+
return dayEvents.length > levelCount;
|
|
1682
|
+
}
|
|
1683
|
+
function isSegmentVisible({
|
|
1684
|
+
dayEventsByIndex,
|
|
1685
|
+
levelCount,
|
|
1686
|
+
segment
|
|
1687
|
+
}) {
|
|
1688
|
+
for (let index = segment.startIndex; index <= segment.endIndex; index += 1) {
|
|
1689
|
+
const visibleLevelCount = shouldReserveSeeMoreLevel({
|
|
1690
|
+
dayEvents: dayEventsByIndex[index] ?? [],
|
|
1691
|
+
levelCount
|
|
1692
|
+
}) ? levelCount - 1 : levelCount;
|
|
1693
|
+
if (segment.level >= visibleLevelCount) {
|
|
1694
|
+
return false;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
return true;
|
|
1698
|
+
}
|
|
1699
|
+
function getHiddenEventsByDate({
|
|
1700
|
+
dayEventsByIndex,
|
|
1701
|
+
days,
|
|
1702
|
+
segments,
|
|
1703
|
+
visibleSegments
|
|
1704
|
+
}) {
|
|
1705
|
+
const hiddenEventsByDate = /* @__PURE__ */ new Map();
|
|
1706
|
+
days.forEach((day, dayIndex) => {
|
|
1707
|
+
const allSegmentEventIds = new Set(
|
|
1708
|
+
segments.filter((segment) => segmentCoversDay(segment, dayIndex)).map((segment) => segment.event.id)
|
|
1709
|
+
);
|
|
1710
|
+
const visibleSegmentEventIds = new Set(
|
|
1711
|
+
visibleSegments.filter((segment) => segmentCoversDay(segment, dayIndex)).map((segment) => segment.event.id)
|
|
1712
|
+
);
|
|
1713
|
+
const hiddenEvents = (dayEventsByIndex[dayIndex] ?? []).filter(
|
|
1714
|
+
(event) => allSegmentEventIds.has(event.id) && !visibleSegmentEventIds.has(event.id)
|
|
1715
|
+
);
|
|
1716
|
+
if (hiddenEvents.length > 0) {
|
|
1717
|
+
hiddenEventsByDate.set(day.toString(), hiddenEvents);
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
return hiddenEventsByDate;
|
|
1721
|
+
}
|
|
1478
1722
|
function getGridCellName({
|
|
1723
|
+
categoryMap,
|
|
1479
1724
|
date,
|
|
1480
1725
|
events,
|
|
1481
1726
|
timezoneID
|
|
1482
1727
|
}) {
|
|
1483
1728
|
const eventLabels = events.map(
|
|
1484
|
-
(event) => getEventAccessibleLabel(event,
|
|
1729
|
+
(event) => getEventAccessibleLabel(event, categoryMap, timezoneID)
|
|
1485
1730
|
);
|
|
1486
|
-
const dateLabel =
|
|
1731
|
+
const dateLabel = chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
1487
1732
|
return eventLabels.length > 0 ? `${dateLabel}. ${eventLabels.join(". ")}` : dateLabel;
|
|
1488
1733
|
}
|
|
1489
1734
|
function ScheduleMonthlyView({
|
|
1490
1735
|
options
|
|
1491
1736
|
}) {
|
|
1492
|
-
const { events, highlightDate, timezoneID, viewDate } = useScheduleContext();
|
|
1737
|
+
const { categoryMap, events, highlightDate, timezoneID, viewDate } = useScheduleContext();
|
|
1493
1738
|
const currentTime2 = useCurrentTime();
|
|
1494
1739
|
const month = viewDate.toPlainDate();
|
|
1495
1740
|
const title = formatMonthTitle(month);
|
|
1496
|
-
const
|
|
1741
|
+
const monthRowHeight = Math.max(
|
|
1742
|
+
64,
|
|
1743
|
+
Math.floor(options.monthRowHeight ?? DEFAULT_MONTH_ROW_HEIGHT)
|
|
1744
|
+
);
|
|
1745
|
+
const weekStartsOn = options.weekStartsOn ?? 0;
|
|
1746
|
+
const days = getMonthDays(month, options.weekCount ?? 6, weekStartsOn);
|
|
1497
1747
|
const eventSegments = getMonthEventSegments(events, days, timezoneID);
|
|
1748
|
+
const eventsByDate = getEventsByDate(events, days, timezoneID);
|
|
1749
|
+
const dayEventsByIndex = days.map(
|
|
1750
|
+
(day) => eventsByDate.get(day.toString()) ?? []
|
|
1751
|
+
);
|
|
1752
|
+
const monthEventLevelCount = getMonthEventLevelCount(monthRowHeight);
|
|
1753
|
+
const visibleEventSegments = eventSegments.filter(
|
|
1754
|
+
(segment) => isSegmentVisible({
|
|
1755
|
+
dayEventsByIndex,
|
|
1756
|
+
levelCount: monthEventLevelCount,
|
|
1757
|
+
segment
|
|
1758
|
+
})
|
|
1759
|
+
);
|
|
1760
|
+
const hiddenEventsByDate = getHiddenEventsByDate({
|
|
1761
|
+
dayEventsByIndex,
|
|
1762
|
+
days,
|
|
1763
|
+
segments: eventSegments,
|
|
1764
|
+
visibleSegments: visibleEventSegments
|
|
1765
|
+
});
|
|
1498
1766
|
const today = highlightDate.toPlainDate();
|
|
1767
|
+
const visibleWeekdays = getWeekdays(weekStartsOn);
|
|
1768
|
+
const monthGridStyle = {
|
|
1769
|
+
"--schedule-month-row-height": `${monthRowHeight}px`
|
|
1770
|
+
};
|
|
1499
1771
|
return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1500
1772
|
"div",
|
|
1501
1773
|
{
|
|
1502
1774
|
"aria-label": title,
|
|
1503
|
-
className:
|
|
1775
|
+
className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.surface, styles3.grid),
|
|
1504
1776
|
role: "grid",
|
|
1505
1777
|
children: [
|
|
1506
|
-
|
|
1778
|
+
visibleWeekdays.map((weekday, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1507
1779
|
"div",
|
|
1508
1780
|
{
|
|
1509
1781
|
"aria-colindex": index + 1,
|
|
1510
1782
|
"aria-label": weekday.label,
|
|
1511
|
-
className:
|
|
1783
|
+
className: styles3.weekday,
|
|
1512
1784
|
role: "columnheader",
|
|
1513
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1785
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Heading, { color: "secondary", level: 4, children: weekday.shortLabel })
|
|
1514
1786
|
},
|
|
1515
1787
|
weekday.label
|
|
1516
1788
|
)),
|
|
1517
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1518
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1519
|
-
const dayEvents =
|
|
1520
|
-
(event) => eventOccursOnDate(event, day, timezoneID)
|
|
1521
|
-
);
|
|
1789
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles3.monthSurface, children: [
|
|
1790
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles3.monthCellGrid, style: monthGridStyle, children: days.map((day, index) => {
|
|
1791
|
+
const dayEvents = eventsByDate.get(day.toString()) ?? [];
|
|
1522
1792
|
const isCurrentMonth = day.month === month.month && day.year === month.year;
|
|
1523
1793
|
const isLastColumn = index % 7 === 6;
|
|
1524
1794
|
const isLastRow = index >= days.length - 7;
|
|
1525
1795
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1526
1796
|
"div",
|
|
1527
1797
|
{
|
|
1528
|
-
"aria-current":
|
|
1798
|
+
"aria-current": chunkJK4YAQ2N_cjs.plainDateIsEqual(day, today) ? "date" : void 0,
|
|
1529
1799
|
"aria-label": getGridCellName({
|
|
1800
|
+
categoryMap,
|
|
1530
1801
|
date: day,
|
|
1531
1802
|
events: dayEvents,
|
|
1532
1803
|
timezoneID
|
|
1533
1804
|
}),
|
|
1534
|
-
className:
|
|
1535
|
-
|
|
1536
|
-
isLastColumn ?
|
|
1537
|
-
isLastRow ?
|
|
1538
|
-
!isCurrentMonth ?
|
|
1805
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
1806
|
+
styles3.cell,
|
|
1807
|
+
isLastColumn ? styles3.lastColumn : void 0,
|
|
1808
|
+
isLastRow ? styles3.lastRow : void 0,
|
|
1809
|
+
!isCurrentMonth ? styles3.otherMonth : void 0
|
|
1539
1810
|
),
|
|
1540
1811
|
role: "gridcell",
|
|
1541
1812
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1542
1813
|
"span",
|
|
1543
1814
|
{
|
|
1544
|
-
className:
|
|
1545
|
-
|
|
1546
|
-
|
|
1815
|
+
className: chunkSPDVNY2Z_cjs.cx(
|
|
1816
|
+
styles3.dayNumber,
|
|
1817
|
+
chunkJK4YAQ2N_cjs.plainDateIsEqual(day, today) ? styles3.today : void 0
|
|
1547
1818
|
),
|
|
1548
1819
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1549
|
-
|
|
1820
|
+
chunk3Z5PF75J_cjs.Text,
|
|
1550
1821
|
{
|
|
1551
1822
|
as: "span",
|
|
1552
1823
|
color: "inherit",
|
|
@@ -1562,89 +1833,181 @@ function ScheduleMonthlyView({
|
|
|
1562
1833
|
day.toString()
|
|
1563
1834
|
);
|
|
1564
1835
|
}) }),
|
|
1565
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1836
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles3.monthEventOverlay, style: monthGridStyle, children: [
|
|
1837
|
+
visibleEventSegments.map((segment) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1838
|
+
"div",
|
|
1839
|
+
{
|
|
1840
|
+
"aria-hidden": "true",
|
|
1841
|
+
className: styles3.monthEventSpan,
|
|
1842
|
+
"data-testid": `schedule-event-span-${segment.event.id}`,
|
|
1843
|
+
style: getMonthEventSegmentStyle(segment),
|
|
1844
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1845
|
+
CalendarMonthEventPill,
|
|
1846
|
+
{
|
|
1847
|
+
event: segment.event,
|
|
1848
|
+
isPast: isEventInPast(segment.event, currentTime2, timezoneID)
|
|
1849
|
+
}
|
|
1850
|
+
)
|
|
1851
|
+
},
|
|
1852
|
+
`${segment.event.id}:${segment.week}:${segment.columnStart}`
|
|
1853
|
+
)),
|
|
1854
|
+
days.map((day, dayIndex) => {
|
|
1855
|
+
const hiddenEvents = hiddenEventsByDate.get(day.toString()) ?? [];
|
|
1856
|
+
if (hiddenEvents.length === 0) {
|
|
1857
|
+
return null;
|
|
1858
|
+
}
|
|
1859
|
+
const dateLabel = chunkJK4YAQ2N_cjs.plainDateFormat(day, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
1860
|
+
const label = `Show ${hiddenEvents.length} more events for ${dateLabel}`;
|
|
1861
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1862
|
+
"div",
|
|
1573
1863
|
{
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1864
|
+
className: styles3.monthSeeMoreSpan,
|
|
1865
|
+
style: getMonthSeeMoreStyle({
|
|
1866
|
+
dayIndex,
|
|
1867
|
+
level: Math.max(0, monthEventLevelCount - 1)
|
|
1868
|
+
}),
|
|
1869
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1870
|
+
chunkL5JS6P62_cjs.Popover,
|
|
1871
|
+
{
|
|
1872
|
+
content: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles3.monthPopoverContent, children: [
|
|
1873
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Heading, { level: 4, children: dateLabel }),
|
|
1874
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: styles3.monthPopoverEvents, children: (eventsByDate.get(day.toString()) ?? []).map(
|
|
1875
|
+
(event) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1876
|
+
CalendarMonthEventPill,
|
|
1877
|
+
{
|
|
1878
|
+
event,
|
|
1879
|
+
isPast: isEventInPast(
|
|
1880
|
+
event,
|
|
1881
|
+
currentTime2,
|
|
1882
|
+
timezoneID
|
|
1883
|
+
)
|
|
1884
|
+
}
|
|
1885
|
+
) }, event.id)
|
|
1886
|
+
) })
|
|
1887
|
+
] }),
|
|
1888
|
+
"data-testid": `schedule-month-see-more-${day.toString()}`,
|
|
1889
|
+
label,
|
|
1890
|
+
width: 320,
|
|
1891
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1892
|
+
"button",
|
|
1893
|
+
{
|
|
1894
|
+
"aria-label": label,
|
|
1895
|
+
className: styles3.monthSeeMoreButton,
|
|
1896
|
+
type: "button",
|
|
1897
|
+
children: [
|
|
1898
|
+
"+",
|
|
1899
|
+
hiddenEvents.length,
|
|
1900
|
+
" more"
|
|
1901
|
+
]
|
|
1902
|
+
}
|
|
1903
|
+
)
|
|
1904
|
+
}
|
|
1905
|
+
)
|
|
1906
|
+
},
|
|
1907
|
+
`${day.toString()}-see-more`
|
|
1908
|
+
);
|
|
1909
|
+
})
|
|
1910
|
+
] })
|
|
1581
1911
|
] })
|
|
1582
1912
|
]
|
|
1583
1913
|
}
|
|
1584
1914
|
) });
|
|
1585
1915
|
}
|
|
1586
1916
|
function createScheduleMonthlyView({
|
|
1587
|
-
|
|
1917
|
+
monthRowHeight = DEFAULT_MONTH_ROW_HEIGHT,
|
|
1918
|
+
weekCount = 6,
|
|
1919
|
+
weekStartsOn = 0
|
|
1588
1920
|
} = {}) {
|
|
1589
1921
|
return {
|
|
1590
1922
|
component: ScheduleMonthlyView,
|
|
1591
1923
|
getDateRange: (date) => {
|
|
1592
1924
|
const month = date.toPlainDate();
|
|
1593
|
-
return getVisibleMonthRange(date, month, weekCount);
|
|
1925
|
+
return getVisibleMonthRange(date, month, weekCount, weekStartsOn);
|
|
1594
1926
|
},
|
|
1595
1927
|
getNextDateRange: (date) => {
|
|
1596
1928
|
const nextMonth = date.toPlainDate().with({ day: 1 }).add({ months: 1 });
|
|
1597
1929
|
return {
|
|
1598
1930
|
label: "Next month",
|
|
1599
|
-
range: getVisibleMonthRange(date, nextMonth, weekCount)
|
|
1931
|
+
range: getVisibleMonthRange(date, nextMonth, weekCount, weekStartsOn)
|
|
1600
1932
|
};
|
|
1601
1933
|
},
|
|
1602
1934
|
getPreviousDateRange: (date) => {
|
|
1603
1935
|
const previousMonth = date.toPlainDate().with({ day: 1 }).subtract({ months: 1 });
|
|
1604
1936
|
return {
|
|
1605
1937
|
label: "Previous month",
|
|
1606
|
-
range: getVisibleMonthRange(
|
|
1938
|
+
range: getVisibleMonthRange(
|
|
1939
|
+
date,
|
|
1940
|
+
previousMonth,
|
|
1941
|
+
weekCount,
|
|
1942
|
+
weekStartsOn
|
|
1943
|
+
)
|
|
1607
1944
|
};
|
|
1608
1945
|
},
|
|
1609
|
-
options: { weekCount }
|
|
1946
|
+
options: { monthRowHeight, weekCount, weekStartsOn }
|
|
1610
1947
|
};
|
|
1611
1948
|
}
|
|
1612
|
-
function SchedulePaginationControls(
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1949
|
+
function SchedulePaginationControls({
|
|
1950
|
+
onViewDateChange
|
|
1951
|
+
}) {
|
|
1952
|
+
const { view, viewDate } = useScheduleContext();
|
|
1953
|
+
const currentRange = react.useMemo(
|
|
1954
|
+
() => view.getDateRange(viewDate),
|
|
1955
|
+
[view, viewDate]
|
|
1956
|
+
);
|
|
1957
|
+
const previousDateRange = react.useMemo(
|
|
1958
|
+
() => view.getPreviousDateRange(viewDate),
|
|
1959
|
+
[view, viewDate]
|
|
1960
|
+
);
|
|
1961
|
+
const nextDateRange = react.useMemo(
|
|
1962
|
+
() => view.getNextDateRange(viewDate),
|
|
1963
|
+
[view, viewDate]
|
|
1964
|
+
);
|
|
1965
|
+
const shiftToRange = react.useCallback(
|
|
1966
|
+
(nextRange) => {
|
|
1967
|
+
onViewDateChange(
|
|
1968
|
+
viewDate.instant + nextRange[0].instant - currentRange[0].instant
|
|
1969
|
+
);
|
|
1970
|
+
},
|
|
1971
|
+
[currentRange, onViewDateChange, viewDate]
|
|
1972
|
+
);
|
|
1973
|
+
const onPreviousDate = react.useCallback(() => {
|
|
1974
|
+
shiftToRange(previousDateRange.range);
|
|
1975
|
+
}, [previousDateRange, shiftToRange]);
|
|
1976
|
+
const onToday = react.useCallback(() => {
|
|
1977
|
+
onViewDateChange(chunkR37R7DEV_cjs.nowEpochMilliseconds());
|
|
1978
|
+
}, [onViewDateChange]);
|
|
1979
|
+
const onNextDate = react.useCallback(() => {
|
|
1980
|
+
shiftToRange(nextDateRange.range);
|
|
1981
|
+
}, [nextDateRange, shiftToRange]);
|
|
1982
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKVJ27734_cjs.ButtonGroup, { label: "Schedule pagination", size: "sm", children: [
|
|
1621
1983
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1622
|
-
|
|
1984
|
+
chunk5XMWGK3O_cjs.Button,
|
|
1623
1985
|
{
|
|
1624
1986
|
icon: lucideReact.ChevronLeft,
|
|
1625
1987
|
isIconOnly: true,
|
|
1626
|
-
label:
|
|
1988
|
+
label: previousDateRange.label,
|
|
1627
1989
|
onClick: onPreviousDate
|
|
1628
1990
|
}
|
|
1629
1991
|
),
|
|
1630
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1992
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk5XMWGK3O_cjs.Button, { label: "Today", onClick: onToday, size: "sm" }),
|
|
1631
1993
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1632
|
-
|
|
1994
|
+
chunk5XMWGK3O_cjs.Button,
|
|
1633
1995
|
{
|
|
1634
1996
|
icon: lucideReact.ChevronRight,
|
|
1635
1997
|
isIconOnly: true,
|
|
1636
|
-
label:
|
|
1998
|
+
label: nextDateRange.label,
|
|
1637
1999
|
onClick: onNextDate
|
|
1638
2000
|
}
|
|
1639
2001
|
)
|
|
1640
2002
|
] });
|
|
1641
2003
|
}
|
|
1642
2004
|
function createSchedulePaginationPlugin({
|
|
2005
|
+
onViewDateChange,
|
|
1643
2006
|
position = "start"
|
|
1644
|
-
}
|
|
2007
|
+
}) {
|
|
1645
2008
|
return {
|
|
1646
2009
|
renderHeader(startContent, centerContent, endContent) {
|
|
1647
|
-
const controls = /* @__PURE__ */ jsxRuntime.jsx(SchedulePaginationControls, {});
|
|
2010
|
+
const controls = /* @__PURE__ */ jsxRuntime.jsx(SchedulePaginationControls, { onViewDateChange });
|
|
1648
2011
|
return position === "start" ? {
|
|
1649
2012
|
centerContent,
|
|
1650
2013
|
endContent,
|
|
@@ -1663,11 +2026,14 @@ function createSchedulePaginationPlugin({
|
|
|
1663
2026
|
}
|
|
1664
2027
|
};
|
|
1665
2028
|
}
|
|
1666
|
-
var defaultSchedulePaginationPlugin = createSchedulePaginationPlugin();
|
|
1667
2029
|
function useSchedulePaginationPlugin({
|
|
2030
|
+
onViewDateChange,
|
|
1668
2031
|
position = "start"
|
|
1669
|
-
}
|
|
1670
|
-
return react.useMemo(
|
|
2032
|
+
}) {
|
|
2033
|
+
return react.useMemo(
|
|
2034
|
+
() => createSchedulePaginationPlugin({ onViewDateChange, position }),
|
|
2035
|
+
[onViewDateChange, position]
|
|
2036
|
+
);
|
|
1671
2037
|
}
|
|
1672
2038
|
function ScheduleViewSelectorControl({
|
|
1673
2039
|
onChangeView,
|
|
@@ -1676,7 +2042,7 @@ function ScheduleViewSelectorControl({
|
|
|
1676
2042
|
const { view } = useScheduleContext();
|
|
1677
2043
|
const currentOption = options.find((option) => option.view === view);
|
|
1678
2044
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1679
|
-
|
|
2045
|
+
chunkHWD4HDQ5_cjs.DropdownMenu,
|
|
1680
2046
|
{
|
|
1681
2047
|
button: {
|
|
1682
2048
|
isDisabled: onChangeView == null,
|
|
@@ -1685,10 +2051,10 @@ function ScheduleViewSelectorControl({
|
|
|
1685
2051
|
},
|
|
1686
2052
|
menuWidth: 160,
|
|
1687
2053
|
children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1688
|
-
|
|
2054
|
+
chunkHWD4HDQ5_cjs.DropdownMenuItem,
|
|
1689
2055
|
{
|
|
1690
2056
|
endContent: option.view === view ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1691
|
-
|
|
2057
|
+
chunkJ4PIYOWT_cjs.Icon,
|
|
1692
2058
|
{
|
|
1693
2059
|
color: "primary",
|
|
1694
2060
|
"data-testid": "schedule-view-selector-selected-icon",
|
|
@@ -1744,9 +2110,7 @@ function useScheduleViewSelectorPlugin(options, pluginOptions = {}) {
|
|
|
1744
2110
|
}
|
|
1745
2111
|
|
|
1746
2112
|
// src/components/Schedule/plugins/index.tsx
|
|
1747
|
-
var defaultSchedulePlugins = [
|
|
1748
|
-
defaultSchedulePaginationPlugin
|
|
1749
|
-
];
|
|
2113
|
+
var defaultSchedulePlugins = [];
|
|
1750
2114
|
var EMPTY_CATEGORIES = [];
|
|
1751
2115
|
function readAsyncEvents(loader, start, end, cache) {
|
|
1752
2116
|
const key = `${start}:${end}`;
|
|
@@ -1788,14 +2152,17 @@ function resolveEvents(eventSource, range, timezoneID, eventCache) {
|
|
|
1788
2152
|
timezoneID
|
|
1789
2153
|
);
|
|
1790
2154
|
}
|
|
1791
|
-
function
|
|
2155
|
+
function useRange(view, date) {
|
|
1792
2156
|
const [start, end] = view.getDateRange(date);
|
|
1793
|
-
return
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
2157
|
+
return react.useMemo(
|
|
2158
|
+
() => ({
|
|
2159
|
+
end: end.instant,
|
|
2160
|
+
endDate: chunkJK4YAQ2N_cjs.plainDateFromInstant(end.instant, end.timezoneID),
|
|
2161
|
+
start: start.instant,
|
|
2162
|
+
startDate: chunkJK4YAQ2N_cjs.plainDateFromInstant(start.instant, start.timezoneID)
|
|
2163
|
+
}),
|
|
2164
|
+
[start.instant, end.instant, start.timezoneID, end.timezoneID]
|
|
2165
|
+
);
|
|
1799
2166
|
}
|
|
1800
2167
|
function ScheduleViewContent({
|
|
1801
2168
|
categories,
|
|
@@ -1803,30 +2170,22 @@ function ScheduleViewContent({
|
|
|
1803
2170
|
eventSource,
|
|
1804
2171
|
highlightDate,
|
|
1805
2172
|
isLoading,
|
|
1806
|
-
nextDateLabel,
|
|
1807
|
-
onNextDate,
|
|
1808
|
-
onPreviousDate,
|
|
1809
|
-
onToday,
|
|
1810
2173
|
plugins,
|
|
1811
|
-
previousDateLabel,
|
|
1812
2174
|
view,
|
|
1813
2175
|
viewDate
|
|
1814
2176
|
}) {
|
|
1815
2177
|
const Component = view.component;
|
|
1816
|
-
const range =
|
|
2178
|
+
const range = useRange(view, viewDate);
|
|
1817
2179
|
const contextValue = react.useMemo(() => {
|
|
2180
|
+
const categoryMap = createCategoryMap(categories);
|
|
1818
2181
|
const events = isLoading ? [] : resolveEvents(eventSource, range, viewDate.timezoneID, eventCache);
|
|
1819
2182
|
return {
|
|
2183
|
+
categoryMap,
|
|
1820
2184
|
categories,
|
|
1821
2185
|
events,
|
|
1822
2186
|
highlightDate,
|
|
1823
2187
|
isLoading,
|
|
1824
|
-
nextDateLabel,
|
|
1825
|
-
onNextDate,
|
|
1826
|
-
onPreviousDate,
|
|
1827
|
-
onToday,
|
|
1828
2188
|
plugins,
|
|
1829
|
-
previousDateLabel,
|
|
1830
2189
|
range,
|
|
1831
2190
|
timezoneID: viewDate.timezoneID,
|
|
1832
2191
|
view,
|
|
@@ -1838,12 +2197,7 @@ function ScheduleViewContent({
|
|
|
1838
2197
|
eventSource,
|
|
1839
2198
|
highlightDate,
|
|
1840
2199
|
isLoading,
|
|
1841
|
-
nextDateLabel,
|
|
1842
|
-
onNextDate,
|
|
1843
|
-
onPreviousDate,
|
|
1844
|
-
onToday,
|
|
1845
2200
|
plugins,
|
|
1846
|
-
previousDateLabel,
|
|
1847
2201
|
range,
|
|
1848
2202
|
view,
|
|
1849
2203
|
viewDate
|
|
@@ -1856,7 +2210,6 @@ function Schedule({
|
|
|
1856
2210
|
"data-testid": dataTestId,
|
|
1857
2211
|
events,
|
|
1858
2212
|
highlightDate: highlightDateFromProps,
|
|
1859
|
-
onViewDateChange,
|
|
1860
2213
|
plugins = defaultSchedulePlugins,
|
|
1861
2214
|
ref,
|
|
1862
2215
|
style,
|
|
@@ -1870,50 +2223,18 @@ function Schedule({
|
|
|
1870
2223
|
() => chunkR37R7DEV_cjs.nowEpochMilliseconds()
|
|
1871
2224
|
);
|
|
1872
2225
|
const highlightDate = highlightDateFromProps ?? internalHighlightDate;
|
|
1873
|
-
const
|
|
1874
|
-
() =>
|
|
2226
|
+
const scheduleZonedInstant = react.useMemo(
|
|
2227
|
+
() => createScheduleZonedInstant(viewDate, timezoneID),
|
|
1875
2228
|
[viewDate, timezoneID]
|
|
1876
2229
|
);
|
|
1877
|
-
const
|
|
1878
|
-
() =>
|
|
2230
|
+
const highlightScheduleZonedInstant = react.useMemo(
|
|
2231
|
+
() => createScheduleZonedInstant(highlightDate, timezoneID),
|
|
1879
2232
|
[highlightDate, timezoneID]
|
|
1880
2233
|
);
|
|
1881
|
-
const updateViewDate = react.useCallback(
|
|
1882
|
-
(nextViewDate) => {
|
|
1883
|
-
onViewDateChange?.(nextViewDate);
|
|
1884
|
-
},
|
|
1885
|
-
[onViewDateChange]
|
|
1886
|
-
);
|
|
1887
|
-
const shiftToRange = react.useCallback(
|
|
1888
|
-
(nextRange) => {
|
|
1889
|
-
const currentRange = view.getDateRange(zonedDateTime);
|
|
1890
|
-
updateViewDate(
|
|
1891
|
-
zonedDateTime.instant + nextRange[0].instant - currentRange[0].instant
|
|
1892
|
-
);
|
|
1893
|
-
},
|
|
1894
|
-
[updateViewDate, view, zonedDateTime]
|
|
1895
|
-
);
|
|
1896
|
-
const previousDateRange = react.useMemo(
|
|
1897
|
-
() => view.getPreviousDateRange(zonedDateTime),
|
|
1898
|
-
[view, zonedDateTime]
|
|
1899
|
-
);
|
|
1900
|
-
const nextDateRange = react.useMemo(
|
|
1901
|
-
() => view.getNextDateRange(zonedDateTime),
|
|
1902
|
-
[view, zonedDateTime]
|
|
1903
|
-
);
|
|
1904
|
-
const onPreviousDate = react.useCallback(() => {
|
|
1905
|
-
shiftToRange(previousDateRange.range);
|
|
1906
|
-
}, [previousDateRange, shiftToRange]);
|
|
1907
|
-
const onToday = react.useCallback(() => {
|
|
1908
|
-
updateViewDate(chunkR37R7DEV_cjs.nowEpochMilliseconds());
|
|
1909
|
-
}, [updateViewDate]);
|
|
1910
|
-
const onNextDate = react.useCallback(() => {
|
|
1911
|
-
shiftToRange(nextDateRange.range);
|
|
1912
|
-
}, [nextDateRange, shiftToRange]);
|
|
1913
2234
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1914
2235
|
"div",
|
|
1915
2236
|
{
|
|
1916
|
-
className: chunkSPDVNY2Z_cjs.cx(
|
|
2237
|
+
className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.root, className),
|
|
1917
2238
|
"data-testid": dataTestId,
|
|
1918
2239
|
ref,
|
|
1919
2240
|
style,
|
|
@@ -1926,16 +2247,11 @@ function Schedule({
|
|
|
1926
2247
|
categories,
|
|
1927
2248
|
eventCache,
|
|
1928
2249
|
eventSource: [],
|
|
1929
|
-
highlightDate:
|
|
2250
|
+
highlightDate: highlightScheduleZonedInstant,
|
|
1930
2251
|
isLoading: true,
|
|
1931
|
-
nextDateLabel: nextDateRange.label,
|
|
1932
|
-
onNextDate,
|
|
1933
|
-
onPreviousDate,
|
|
1934
|
-
onToday,
|
|
1935
2252
|
plugins,
|
|
1936
|
-
previousDateLabel: previousDateRange.label,
|
|
1937
2253
|
view,
|
|
1938
|
-
viewDate:
|
|
2254
|
+
viewDate: scheduleZonedInstant
|
|
1939
2255
|
}
|
|
1940
2256
|
),
|
|
1941
2257
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1944,16 +2260,11 @@ function Schedule({
|
|
|
1944
2260
|
categories,
|
|
1945
2261
|
eventCache,
|
|
1946
2262
|
eventSource: events,
|
|
1947
|
-
highlightDate:
|
|
2263
|
+
highlightDate: highlightScheduleZonedInstant,
|
|
1948
2264
|
isLoading: false,
|
|
1949
|
-
nextDateLabel: nextDateRange.label,
|
|
1950
|
-
onNextDate,
|
|
1951
|
-
onPreviousDate,
|
|
1952
|
-
onToday,
|
|
1953
2265
|
plugins,
|
|
1954
|
-
previousDateLabel: previousDateRange.label,
|
|
1955
2266
|
view,
|
|
1956
|
-
viewDate:
|
|
2267
|
+
viewDate: scheduleZonedInstant
|
|
1957
2268
|
}
|
|
1958
2269
|
)
|
|
1959
2270
|
}
|
|
@@ -1984,10 +2295,10 @@ function createScheduleWeeklyView({
|
|
|
1984
2295
|
minHour = 0,
|
|
1985
2296
|
weekStartsOn = 0
|
|
1986
2297
|
} = {}) {
|
|
1987
|
-
const getWeekStart = (date) =>
|
|
2298
|
+
const getWeekStart = (date) => setStartOfWeek2(date.toPlainDate(), weekStartsOn);
|
|
1988
2299
|
const getWeekRange = (date) => {
|
|
1989
2300
|
const startDate = getWeekStart(date);
|
|
1990
|
-
return
|
|
2301
|
+
return scheduleRangeToScheduleZonedInstantRange(
|
|
1991
2302
|
getScheduleRangeFromDates({
|
|
1992
2303
|
endDate: startDate.add({ days: 7 }),
|
|
1993
2304
|
startDate,
|
|
@@ -2010,8 +2321,8 @@ function createScheduleWeeklyView({
|
|
|
2010
2321
|
options: { hourHeight, maxHour, minHour, weekStartsOn }
|
|
2011
2322
|
};
|
|
2012
2323
|
}
|
|
2013
|
-
function
|
|
2014
|
-
const daysSinceWeekStart = (
|
|
2324
|
+
function setStartOfWeek2(date, weekStartsOn) {
|
|
2325
|
+
const daysSinceWeekStart = (chunkJK4YAQ2N_cjs.plainDateDayOfWeek(date) - weekStartsOn + 7) % 7;
|
|
2015
2326
|
return date.add({ days: -daysSinceWeekStart });
|
|
2016
2327
|
}
|
|
2017
2328
|
|
|
@@ -2026,5 +2337,5 @@ exports.defaultSchedulePlugins = defaultSchedulePlugins;
|
|
|
2026
2337
|
exports.useScheduleContext = useScheduleContext;
|
|
2027
2338
|
exports.useSchedulePaginationPlugin = useSchedulePaginationPlugin;
|
|
2028
2339
|
exports.useScheduleViewSelectorPlugin = useScheduleViewSelectorPlugin;
|
|
2029
|
-
//# sourceMappingURL=chunk-
|
|
2030
|
-
//# sourceMappingURL=chunk-
|
|
2340
|
+
//# sourceMappingURL=chunk-UXQSSRBQ.cjs.map
|
|
2341
|
+
//# sourceMappingURL=chunk-UXQSSRBQ.cjs.map
|