silver-ui 0.4.0 → 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-JYVYCU22.cjs → chunk-27EAV2GT.cjs} +2 -2
- package/dist/chunk-27EAV2GT.cjs.map +1 -0
- package/dist/{chunk-UUVLEOSD.js → chunk-2AWSJF22.js} +4 -4
- package/dist/{chunk-UUVLEOSD.js.map → chunk-2AWSJF22.js.map} +1 -1
- package/dist/{chunk-YWGYN6YV.cjs → chunk-2F5TDBRT.cjs} +171 -153
- package/dist/chunk-2F5TDBRT.cjs.map +1 -0
- package/dist/{chunk-LO5NZY7N.cjs → chunk-2GMDMZKI.cjs} +6 -6
- package/dist/chunk-2GMDMZKI.cjs.map +1 -0
- package/dist/{chunk-SR5VVJ5Y.cjs → chunk-2K4I2MB3.cjs} +5 -5
- package/dist/{chunk-SR5VVJ5Y.cjs.map → chunk-2K4I2MB3.cjs.map} +1 -1
- package/dist/{chunk-GYVWTH3U.cjs → chunk-2MXK2SDR.cjs} +2 -2
- package/dist/chunk-2MXK2SDR.cjs.map +1 -0
- package/dist/{chunk-FB245S6T.cjs → chunk-2RZNX26F.cjs} +12 -12
- package/dist/{chunk-FB245S6T.cjs.map → chunk-2RZNX26F.cjs.map} +1 -1
- package/dist/{chunk-6ULCJ3XZ.js → chunk-2VAUVJVG.js} +3 -3
- package/dist/{chunk-6ULCJ3XZ.js.map → chunk-2VAUVJVG.js.map} +1 -1
- package/dist/{chunk-6ONAGCCZ.js → chunk-2VL66QBX.js} +113 -105
- package/dist/chunk-2VL66QBX.js.map +1 -0
- package/dist/{chunk-GL7PSN7H.cjs → chunk-2WTHSGDP.cjs} +29 -23
- package/dist/chunk-2WTHSGDP.cjs.map +1 -0
- package/dist/{chunk-YYNWZRXZ.js → chunk-2Y7ULSEU.js} +491 -431
- package/dist/chunk-2Y7ULSEU.js.map +1 -0
- package/dist/{chunk-W3C6QQF7.js → chunk-3IYM5MAC.js} +4 -4
- 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-C6EYCIKJ.cjs → chunk-3VJIUZAY.cjs} +263 -224
- package/dist/chunk-3VJIUZAY.cjs.map +1 -0
- package/dist/{chunk-ZTWBG2XY.cjs → chunk-3W3ST5Y3.cjs} +6 -6
- package/dist/chunk-3W3ST5Y3.cjs.map +1 -0
- package/dist/{chunk-M26XECB2.cjs → chunk-3Z5PF75J.cjs} +9 -9
- package/dist/{chunk-M26XECB2.cjs.map → chunk-3Z5PF75J.cjs.map} +1 -1
- package/dist/{chunk-J3DNWPXJ.js → chunk-4426KMA7.js} +2 -2
- package/dist/{chunk-J3DNWPXJ.js.map → chunk-4426KMA7.js.map} +1 -1
- package/dist/{chunk-NI55JEYL.js → chunk-4HXNBLCJ.js} +3 -3
- package/dist/{chunk-NI55JEYL.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-L6VSBBPP.js → chunk-4SUQFPWH.js} +176 -102
- package/dist/chunk-4SUQFPWH.js.map +1 -0
- package/dist/{chunk-3JPUXC5U.js → chunk-56PY2CD7.js} +17 -44
- 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-QOKEU3DC.cjs → chunk-5XMWGK3O.cjs} +16 -16
- 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-2RKMG2TC.js → chunk-65MJZYO6.js} +185 -134
- package/dist/chunk-65MJZYO6.js.map +1 -0
- package/dist/{chunk-G3KKLGZU.cjs → chunk-67UUGI3M.cjs} +8 -8
- package/dist/chunk-67UUGI3M.cjs.map +1 -0
- package/dist/{chunk-X574M2JB.cjs → chunk-6DAZ2ZOW.cjs} +13 -13
- package/dist/chunk-6DAZ2ZOW.cjs.map +1 -0
- package/dist/{chunk-2N6FOSNM.js → chunk-6EYLEVC6.js} +203 -172
- package/dist/chunk-6EYLEVC6.js.map +1 -0
- package/dist/{chunk-RLOGQBFD.js → chunk-6J326CN6.js} +6 -6
- package/dist/chunk-6J326CN6.js.map +1 -0
- package/dist/{chunk-3CJC4QE6.js → chunk-6PIVWNUR.js} +3 -3
- package/dist/chunk-6PIVWNUR.js.map +1 -0
- package/dist/{chunk-BSAZRW6T.js → chunk-75KSHZTV.js} +22 -15
- package/dist/chunk-75KSHZTV.js.map +1 -0
- package/dist/{chunk-5D2OR64D.cjs → chunk-7CTHD4G6.cjs} +7 -15
- package/dist/chunk-7CTHD4G6.cjs.map +1 -0
- package/dist/{chunk-DWUEPOYH.js → chunk-ADSG24VE.js} +8 -8
- 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-DIRVAHOF.cjs → chunk-ANACERIO.cjs} +8 -8
- package/dist/chunk-ANACERIO.cjs.map +1 -0
- package/dist/{chunk-O2WICOUK.cjs → chunk-ARUOMLOJ.cjs} +24 -20
- package/dist/chunk-ARUOMLOJ.cjs.map +1 -0
- package/dist/{chunk-YAWVGZRC.js → chunk-AV7D3SXF.js} +6 -6
- package/dist/{chunk-YAWVGZRC.js.map → chunk-AV7D3SXF.js.map} +1 -1
- package/dist/{chunk-TBOQTPRO.cjs → chunk-BIJ6YDWJ.cjs} +84 -57
- package/dist/chunk-BIJ6YDWJ.cjs.map +1 -0
- package/dist/{chunk-FDUO2HVX.js → chunk-BIKVMVWF.js} +2 -2
- package/dist/{chunk-FDUO2HVX.js.map → chunk-BIKVMVWF.js.map} +1 -1
- package/dist/{chunk-W2Q4PQ6I.js → chunk-BQWUTDTN.js} +2 -2
- package/dist/{chunk-W2Q4PQ6I.js.map → chunk-BQWUTDTN.js.map} +1 -1
- package/dist/{chunk-SBS7U7CN.cjs → chunk-BSI4BQEX.cjs} +4 -4
- package/dist/{chunk-SBS7U7CN.cjs.map → chunk-BSI4BQEX.cjs.map} +1 -1
- package/dist/{chunk-SCGXGVNN.cjs → chunk-BSPWX2OZ.cjs} +18 -18
- package/dist/{chunk-SCGXGVNN.cjs.map → chunk-BSPWX2OZ.cjs.map} +1 -1
- package/dist/{chunk-E2A3GJSN.cjs → chunk-BSXUNRET.cjs} +11 -12
- 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-G2U2W422.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-5YS43PSQ.cjs → chunk-D5OX6II7.cjs} +5 -5
- 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-TQA3BI7M.cjs → chunk-DV4K35UC.cjs} +4 -4
- package/dist/{chunk-TQA3BI7M.cjs.map → chunk-DV4K35UC.cjs.map} +1 -1
- package/dist/{chunk-SOCSUNIM.js → chunk-DZZEJY3J.js} +197 -179
- package/dist/chunk-DZZEJY3J.js.map +1 -0
- package/dist/{chunk-FP5E5BUM.js → chunk-E42WOTIC.js} +4 -4
- package/dist/chunk-E42WOTIC.js.map +1 -0
- package/dist/{chunk-HINS4GY6.js → chunk-EBJPUXFQ.js} +148 -146
- package/dist/chunk-EBJPUXFQ.js.map +1 -0
- package/dist/{chunk-ILEKDNP7.js → chunk-ECDYAZ2R.js} +7 -7
- package/dist/{chunk-ILEKDNP7.js.map → chunk-ECDYAZ2R.js.map} +1 -1
- package/dist/{chunk-MI5QU37D.js → chunk-EFBSEJBD.js} +27 -28
- 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-QVNDZZS6.cjs → chunk-ESRDHDYN.cjs} +9 -9
- package/dist/chunk-ESRDHDYN.cjs.map +1 -0
- package/dist/{chunk-GC5VUTUR.cjs → chunk-EZFQCREN.cjs} +17 -44
- 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-YVHWOKR7.cjs → chunk-FCUUGJTM.cjs} +209 -191
- package/dist/chunk-FCUUGJTM.cjs.map +1 -0
- package/dist/{chunk-YY6KJO5Z.cjs → chunk-FFF57VHO.cjs} +12 -12
- package/dist/chunk-FFF57VHO.cjs.map +1 -0
- package/dist/{chunk-AP7BDTTF.js → chunk-FNRYGCO3.js} +5 -5
- package/dist/chunk-FNRYGCO3.js.map +1 -0
- package/dist/{chunk-AJ6X62AI.js → chunk-FQSVY4QB.js} +3 -3
- 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-H7HQYBPH.js → chunk-GSTINE4X.js} +805 -493
- 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-BLRWA445.cjs → chunk-GY2ZZR4Z.cjs} +27 -27
- 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-WBGFFP3G.js → chunk-H4L456EW.js} +83 -56
- package/dist/chunk-H4L456EW.js.map +1 -0
- package/dist/{chunk-6XWXBXYE.js → chunk-HIH6MS5D.js} +8 -10
- package/dist/chunk-HIH6MS5D.js.map +1 -0
- package/dist/{chunk-SSAYBCAD.js → chunk-HNDDNW52.js} +5 -13
- package/dist/chunk-HNDDNW52.js.map +1 -0
- package/dist/{chunk-WY5BOT7O.js → chunk-HPNY32G6.js} +4 -4
- package/dist/{chunk-WY5BOT7O.js.map → chunk-HPNY32G6.js.map} +1 -1
- package/dist/{chunk-TF7XVTSP.cjs → chunk-HWD4HDQ5.cjs} +15 -15
- package/dist/chunk-HWD4HDQ5.cjs.map +1 -0
- package/dist/{chunk-OBWWRRL6.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-LUQVSNQL.cjs → chunk-I2NG2P5K.cjs} +141 -133
- 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-TPB53MHV.cjs → chunk-IGJEZLHP.cjs} +223 -205
- package/dist/chunk-IGJEZLHP.cjs.map +1 -0
- package/dist/{chunk-XXBA3KSH.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-2A3V6OR7.cjs → chunk-IX26TMZD.cjs} +5 -5
- package/dist/{chunk-2A3V6OR7.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-ZFBQ4R7M.cjs → chunk-J3X465QT.cjs} +15 -15
- 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-DXPQRAGI.js → chunk-JJNXQ7EL.js} +3 -3
- package/dist/{chunk-DXPQRAGI.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-M2MC3E27.cjs → chunk-JM4Q7ZQH.cjs} +6 -6
- package/dist/{chunk-M2MC3E27.cjs.map → chunk-JM4Q7ZQH.cjs.map} +1 -1
- package/dist/{chunk-PIOMR4X2.js → chunk-JS6MRT6M.js} +4 -4
- package/dist/{chunk-PIOMR4X2.js.map → chunk-JS6MRT6M.js.map} +1 -1
- package/dist/{chunk-7CCXHH6Y.cjs → chunk-JSAYTQTJ.cjs} +5 -5
- 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-QATCDVZ6.cjs → chunk-K4K4FU3D.cjs} +182 -108
- package/dist/chunk-K4K4FU3D.cjs.map +1 -0
- package/dist/{chunk-AFI4V7LI.js → chunk-KC4EKXGF.js} +6 -6
- package/dist/{chunk-AFI4V7LI.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-G2WW52GO.cjs → chunk-L5JS6P62.cjs} +36 -31
- package/dist/chunk-L5JS6P62.cjs.map +1 -0
- package/dist/{chunk-PIZMCOKL.js → chunk-L5PJCLV6.js} +263 -224
- package/dist/chunk-L5PJCLV6.js.map +1 -0
- package/dist/{chunk-FMLIYHDP.js → chunk-L7XJZJCM.js} +5 -5
- package/dist/chunk-L7XJZJCM.js.map +1 -0
- package/dist/{chunk-J5IRFGUP.js → chunk-LBGC6EC5.js} +248 -202
- package/dist/chunk-LBGC6EC5.js.map +1 -0
- package/dist/{chunk-LQIZSE3O.js → chunk-LKGHYNLH.js} +9 -9
- package/dist/{chunk-LQIZSE3O.js.map → chunk-LKGHYNLH.js.map} +1 -1
- package/dist/{chunk-AWDIKDX5.cjs → chunk-LW3DJOF4.cjs} +11 -11
- package/dist/{chunk-AWDIKDX5.cjs.map → chunk-LW3DJOF4.cjs.map} +1 -1
- package/dist/{chunk-VFGSNR35.js → chunk-MDQSVB2Y.js} +24 -20
- package/dist/chunk-MDQSVB2Y.js.map +1 -0
- package/dist/{chunk-JSINCF2R.cjs → chunk-MEUELWGO.cjs} +12 -12
- package/dist/{chunk-JSINCF2R.cjs.map → chunk-MEUELWGO.cjs.map} +1 -1
- package/dist/{chunk-TKTLWX2V.js → chunk-MEXR5ONE.js} +8 -8
- package/dist/{chunk-TKTLWX2V.js.map → chunk-MEXR5ONE.js.map} +1 -1
- package/dist/{chunk-U6NH54YD.js → chunk-MGJLBHPJ.js} +166 -148
- package/dist/chunk-MGJLBHPJ.js.map +1 -0
- package/dist/{chunk-BCCPNGUV.js → chunk-MN2NCSQQ.js} +3 -3
- package/dist/{chunk-BCCPNGUV.js.map → chunk-MN2NCSQQ.js.map} +1 -1
- package/dist/{chunk-BUESV4DR.cjs → chunk-N77K3NQY.cjs} +7 -7
- package/dist/{chunk-BUESV4DR.cjs.map → chunk-N77K3NQY.cjs.map} +1 -1
- package/dist/{chunk-VGHNBMEJ.cjs → chunk-NYTSAO5I.cjs} +6 -6
- package/dist/{chunk-VGHNBMEJ.cjs.map → chunk-NYTSAO5I.cjs.map} +1 -1
- package/dist/{chunk-YO3MBGBP.cjs → chunk-O4PO6AMS.cjs} +2 -2
- package/dist/{chunk-YO3MBGBP.cjs.map → chunk-O4PO6AMS.cjs.map} +1 -1
- package/dist/{chunk-SBOXHIES.js → chunk-OERNLR2P.js} +11 -11
- package/dist/chunk-OERNLR2P.js.map +1 -0
- package/dist/{chunk-LY6Z6A54.js → chunk-OF5NULAO.js} +18 -12
- package/dist/chunk-OF5NULAO.js.map +1 -0
- package/dist/{chunk-3OIUA2NY.js → chunk-OTQAREYU.js} +5 -5
- package/dist/{chunk-3OIUA2NY.js.map → chunk-OTQAREYU.js.map} +1 -1
- package/dist/{chunk-FNZOICR4.cjs → chunk-OUZX7STE.cjs} +29 -30
- package/dist/chunk-OUZX7STE.cjs.map +1 -0
- package/dist/{chunk-LNT2IFOA.js → chunk-PBQMHXVO.js} +3 -3
- package/dist/chunk-PBQMHXVO.js.map +1 -0
- package/dist/{chunk-BULJWVPU.cjs → chunk-PGTOVMP7.cjs} +19 -19
- package/dist/{chunk-BULJWVPU.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-VUCMGGU5.js → chunk-Q3HMGFGI.js} +45 -58
- package/dist/chunk-Q3HMGFGI.js.map +1 -0
- package/dist/{chunk-JJ324PSZ.cjs → chunk-Q4HAXT5C.cjs} +148 -145
- package/dist/chunk-Q4HAXT5C.cjs.map +1 -0
- package/dist/{chunk-DP7VC4FW.cjs → chunk-QB2BSOM4.cjs} +2 -2
- package/dist/{chunk-DP7VC4FW.cjs.map → chunk-QB2BSOM4.cjs.map} +1 -1
- package/dist/{chunk-EBDODJ5X.js → chunk-QO5C7TIV.js} +8 -7
- package/dist/chunk-QO5C7TIV.js.map +1 -0
- package/dist/{chunk-KDR5DCYL.cjs → chunk-R4DGCQTA.cjs} +10 -10
- package/dist/{chunk-KDR5DCYL.cjs.map → chunk-R4DGCQTA.cjs.map} +1 -1
- package/dist/{chunk-QRFDPG34.js → chunk-RJEZBOSH.js} +4 -4
- package/dist/{chunk-QRFDPG34.js.map → chunk-RJEZBOSH.js.map} +1 -1
- package/dist/{chunk-C732WXKS.cjs → chunk-RRXOSNCX.cjs} +17 -17
- package/dist/chunk-RRXOSNCX.cjs.map +1 -0
- package/dist/{chunk-VQ7U3ASC.js → chunk-S4IHNNA2.js} +111 -111
- package/dist/chunk-S4IHNNA2.js.map +1 -0
- package/dist/{chunk-ZAX2UJBC.js → chunk-S5CMLG2E.js} +33 -28
- package/dist/chunk-S5CMLG2E.js.map +1 -0
- package/dist/{chunk-SUH62Z64.js → chunk-SHARVIUI.js} +2 -2
- package/dist/chunk-SHARVIUI.js.map +1 -0
- package/dist/{chunk-XLKXFJMU.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-ZEA2VYX4.js → chunk-SZ27SCE2.js} +2 -2
- package/dist/{chunk-ZEA2VYX4.js.map → chunk-SZ27SCE2.js.map} +1 -1
- package/dist/{chunk-NFABMGNH.js → chunk-TH537HOM.js} +8 -8
- package/dist/chunk-TH537HOM.js.map +1 -0
- package/dist/{chunk-2LABTS4P.js → chunk-THTVYP5V.js} +8 -8
- package/dist/chunk-THTVYP5V.js.map +1 -0
- package/dist/{chunk-KXIILLQD.cjs → chunk-TKTCN4JE.cjs} +18 -18
- package/dist/chunk-TKTCN4JE.cjs.map +1 -0
- package/dist/{chunk-52WQDDWQ.js → chunk-TOQ4MGM5.js} +50 -50
- 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-EALKX3ST.cjs → chunk-TTDNCN5G.cjs} +233 -242
- package/dist/chunk-TTDNCN5G.cjs.map +1 -0
- package/dist/{chunk-D3LZQ5QS.js → chunk-U5M4JZBX.js} +3 -3
- package/dist/chunk-U5M4JZBX.js.map +1 -0
- package/dist/{chunk-JDAJ2HJQ.js → chunk-UARQIMPS.js} +9 -9
- package/dist/chunk-UARQIMPS.js.map +1 -0
- package/dist/{chunk-WBQNPBXR.js → chunk-UXGHFKLA.js} +5 -5
- package/dist/{chunk-WBQNPBXR.js.map → chunk-UXGHFKLA.js.map} +1 -1
- package/dist/{chunk-CKTXDIH4.cjs → chunk-UXQSSRBQ.cjs} +858 -546
- package/dist/chunk-UXQSSRBQ.cjs.map +1 -0
- package/dist/{chunk-7BSFKG7N.js → chunk-V2V5TTTL.js} +2 -2
- package/dist/chunk-V2V5TTTL.js.map +1 -0
- package/dist/{chunk-VHKA25IV.cjs → chunk-V4ZH2H2P.cjs} +36 -29
- package/dist/chunk-V4ZH2H2P.cjs.map +1 -0
- package/dist/{chunk-HNZWPIJE.js → chunk-VD52FLHL.js} +214 -196
- package/dist/chunk-VD52FLHL.js.map +1 -0
- package/dist/{chunk-4H7X5FGX.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-7U7JMRVF.cjs → chunk-VO4FG3L2.cjs} +61 -61
- 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-IA5GII7N.cjs → chunk-VV72PGKH.cjs} +256 -210
- package/dist/chunk-VV72PGKH.cjs.map +1 -0
- package/dist/{chunk-K3XHXWBW.js → chunk-W5F7PYT2.js} +9 -9
- package/dist/{chunk-K3XHXWBW.js.map → chunk-W5F7PYT2.js.map} +1 -1
- package/dist/{chunk-JIVYPJKO.js → chunk-WPMWHKJX.js} +6 -6
- package/dist/chunk-WPMWHKJX.js.map +1 -0
- package/dist/{chunk-ZQUPAIBS.js → chunk-WTCH3QCQ.js} +10 -11
- package/dist/chunk-WTCH3QCQ.js.map +1 -0
- package/dist/{chunk-K4ZJNQTX.cjs → chunk-X34F4ZV6.cjs} +2 -2
- package/dist/{chunk-K4ZJNQTX.cjs.map → chunk-X34F4ZV6.cjs.map} +1 -1
- package/dist/{chunk-FDZQPWFZ.cjs → chunk-X4I5YARV.cjs} +17 -17
- package/dist/chunk-X4I5YARV.cjs.map +1 -0
- package/dist/{chunk-S7INL5NI.js → chunk-XHJRAEGW.js} +10 -10
- package/dist/chunk-XHJRAEGW.js.map +1 -0
- package/dist/{chunk-3ZV3EGGK.cjs → chunk-XPGIWOJO.cjs} +22 -22
- package/dist/{chunk-3ZV3EGGK.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-JTFNNEWR.cjs → chunk-XZZI3JYK.cjs} +8 -10
- package/dist/chunk-XZZI3JYK.cjs.map +1 -0
- package/dist/{chunk-H2CZ6IE5.cjs → chunk-YDNEAHVK.cjs} +509 -451
- package/dist/chunk-YDNEAHVK.cjs.map +1 -0
- package/dist/{chunk-J4OEETYQ.cjs → chunk-YJEX32HZ.cjs} +13 -13
- package/dist/{chunk-J4OEETYQ.cjs.map → chunk-YJEX32HZ.cjs.map} +1 -1
- package/dist/{chunk-PQEFVHJZ.cjs → chunk-Z7OUMVR5.cjs} +16 -15
- package/dist/chunk-Z7OUMVR5.cjs.map +1 -0
- package/dist/{chunk-AHVHLNHU.cjs → chunk-ZPJW3PP7.cjs} +206 -175
- package/dist/chunk-ZPJW3PP7.cjs.map +1 -0
- package/dist/{chunk-ZN7CULIL.cjs → chunk-ZPOXH42B.cjs} +2 -2
- package/dist/{chunk-ZN7CULIL.cjs.map → chunk-ZPOXH42B.cjs.map} +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/index.cjs +5 -5
- 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 +2 -2
- 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 +11 -11
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +10 -10
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog/index.cjs +16 -14
- package/dist/components/AlertDialog/index.d.ts.map +1 -1
- package/dist/components/AlertDialog/index.js +14 -12
- 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 +20 -19
- package/dist/components/AppShell/index.d.ts.map +1 -1
- package/dist/components/AppShell/index.js +17 -16
- package/dist/components/AspectRatio/index.cjs +2 -2
- 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 +1 -1
- package/dist/components/AutocompleteInput/AutocompleteInput.d.ts +1 -1
- 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.map +1 -1
- package/dist/components/AutocompleteInput/index.cjs +18 -19
- package/dist/components/AutocompleteInput/index.d.ts.map +1 -1
- package/dist/components/AutocompleteInput/index.js +14 -15
- package/dist/components/Avatar/Avatar.recipe.d.ts +1 -1
- package/dist/components/Avatar/index.cjs +5 -5
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +2 -2
- 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 +5 -5
- 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 +3 -3
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/index.cjs +3 -3
- 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 +2 -2
- package/dist/components/Blockquote/Blockquote.recipe.d.ts +1 -1
- package/dist/components/Blockquote/index.cjs +2 -2
- 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 +1 -1
- 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 +9 -9
- 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 +6 -6
- 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 +10 -10
- 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 +9 -9
- 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 +3 -3
- 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 +2 -2
- 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 +12 -12
- package/dist/components/Calendar/index.d.ts.map +1 -1
- package/dist/components/Calendar/index.js +11 -11
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/index.cjs +2 -2
- 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 +1 -1
- package/dist/components/Center/Center.d.ts.map +1 -1
- package/dist/components/Center/index.cjs +2 -2
- 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 +1 -1
- 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 +11 -11
- package/dist/components/CheckboxInput/index.d.ts.map +1 -1
- package/dist/components/CheckboxInput/index.js +10 -10
- 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 +13 -13
- package/dist/components/CodeBlock/index.d.ts.map +1 -1
- package/dist/components/CodeBlock/index.js +12 -12
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/index.cjs +16 -17
- package/dist/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/components/ContextMenu/index.js +14 -15
- 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 +17 -17
- 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 +16 -16
- 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 +17 -17
- package/dist/components/DateRangeInput/index.d.ts.map +1 -1
- package/dist/components/DateRangeInput/index.js +16 -16
- 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 +19 -19
- package/dist/components/DateTimeInput/index.d.ts.map +1 -1
- package/dist/components/DateTimeInput/index.js +18 -18
- 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 +5 -3
- 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 +3 -1
- 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 +2 -2
- package/dist/components/Divider/index.d.ts.map +1 -1
- package/dist/components/Divider/index.js +1 -1
- 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 +7 -3
- 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 +5 -1
- 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/index.cjs +17 -18
- 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 +13 -14
- 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 +5 -5
- 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 +4 -4
- 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 +8 -8
- 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 +6 -6
- 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 +13 -14
- 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 +12 -13
- 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 +4 -4
- package/dist/components/HoverCard/index.d.ts.map +1 -1
- package/dist/components/HoverCard/index.js +2 -2
- package/dist/components/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/components/Icon/index.cjs +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +1 -1
- 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 +11 -11
- 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 +7 -7
- 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 +9 -8
- 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 +8 -7
- package/dist/components/Kbd/Kbd.recipe.d.ts +1 -1
- package/dist/components/Kbd/index.cjs +2 -2
- package/dist/components/Kbd/index.d.ts.map +1 -1
- package/dist/components/Kbd/index.js +1 -1
- 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 +15 -15
- 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 +10 -10
- 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 +13 -12
- package/dist/components/Lightbox/index.d.ts.map +1 -1
- package/dist/components/Lightbox/index.js +11 -10
- 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 +8 -8
- 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 +5 -5
- 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 +10 -10
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +8 -8
- 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 +8 -7
- 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 +6 -5
- 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 +16 -17
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +15 -16
- package/dist/components/NavIcon/index.cjs +2 -2
- package/dist/components/NavIcon/index.d.ts.map +1 -1
- package/dist/components/NavIcon/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput/index.cjs +14 -14
- 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 +13 -13
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/index.cjs +11 -11
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +10 -10
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/index.cjs +15 -15
- 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 +14 -14
- 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 +12 -13
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +10 -11
- 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 +3 -3
- 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 +2 -2
- 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 +12 -12
- 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 +10 -10
- 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 +4 -4
- package/dist/components/Rating/index.d.ts.map +1 -1
- package/dist/components/Rating/index.js +3 -3
- 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 +27 -27
- 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 +16 -16
- 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 +36 -36
- package/dist/components/SearchFilterInput/index.d.ts.map +1 -1
- package/dist/components/SearchFilterInput/index.js +28 -28
- 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 +6 -5
- 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 +4 -3
- 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 +17 -18
- 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 +15 -16
- 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 +19 -18
- 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 +13 -12
- package/dist/components/Skeleton/index.cjs +2 -2
- 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 +1 -1
- 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 +8 -8
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +7 -7
- 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 +5 -5
- package/dist/components/Spinner/index.d.ts.map +1 -1
- package/dist/components/Spinner/index.js +4 -4
- package/dist/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/components/SplitButton/index.cjs +16 -17
- 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 +15 -16
- 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 +3 -3
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +1 -1
- 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 +7 -14
- 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 +6 -5
- 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 +9 -9
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +8 -8
- 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 +58 -66
- 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 +32 -32
- 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 +16 -17
- 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 +11 -12
- 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 +7 -7
- 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 +6 -6
- package/dist/components/TagsInput/TagsInput.d.ts +49 -7
- 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 +16 -17
- package/dist/components/TagsInput/index.d.ts.map +1 -1
- package/dist/components/TagsInput/index.js +15 -16
- 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 +5 -5
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +3 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/index.cjs +10 -10
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +9 -9
- 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 +14 -14
- 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 +13 -13
- 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 +12 -12
- package/dist/components/Thumbnail/index.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.js +11 -11
- 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 +13 -13
- 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 +12 -12
- 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 +13 -13
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +10 -10
- 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 +8 -8
- 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 +6 -6
- 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 +4 -4
- 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 +2 -2
- 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 +18 -21
- 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 +13 -12
- 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 +4 -3
- 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 +3 -2
- package/dist/index.cjs +257 -275
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +85 -83
- package/dist/index.js.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-2LABTS4P.js.map +0 -1
- package/dist/chunk-2N6FOSNM.js.map +0 -1
- package/dist/chunk-2OXKEUKG.cjs.map +0 -1
- package/dist/chunk-2P6D43V2.cjs.map +0 -1
- package/dist/chunk-2RKMG2TC.js.map +0 -1
- package/dist/chunk-2XAA3CM5.js.map +0 -1
- package/dist/chunk-3CJC4QE6.js.map +0 -1
- package/dist/chunk-3JPUXC5U.js.map +0 -1
- package/dist/chunk-4H7X5FGX.js.map +0 -1
- package/dist/chunk-52WQDDWQ.js.map +0 -1
- package/dist/chunk-5D2OR64D.cjs.map +0 -1
- package/dist/chunk-5PX76QOL.cjs +0 -203
- package/dist/chunk-5PX76QOL.cjs.map +0 -1
- package/dist/chunk-5YS43PSQ.cjs.map +0 -1
- package/dist/chunk-6ONAGCCZ.js.map +0 -1
- package/dist/chunk-6XWXBXYE.js.map +0 -1
- package/dist/chunk-7BSFKG7N.js.map +0 -1
- package/dist/chunk-7CCXHH6Y.cjs.map +0 -1
- package/dist/chunk-7U7JMRVF.cjs.map +0 -1
- package/dist/chunk-AHVHLNHU.cjs.map +0 -1
- package/dist/chunk-AJ6X62AI.js.map +0 -1
- package/dist/chunk-AP7BDTTF.js.map +0 -1
- package/dist/chunk-BLRWA445.cjs.map +0 -1
- package/dist/chunk-BSAZRW6T.js.map +0 -1
- package/dist/chunk-C6EYCIKJ.cjs.map +0 -1
- package/dist/chunk-C732WXKS.cjs.map +0 -1
- package/dist/chunk-CGYZ6QWY.js +0 -142
- package/dist/chunk-CGYZ6QWY.js.map +0 -1
- package/dist/chunk-CK3UJQRI.cjs.map +0 -1
- package/dist/chunk-CKTXDIH4.cjs.map +0 -1
- package/dist/chunk-D3LZQ5QS.js.map +0 -1
- package/dist/chunk-DIRVAHOF.cjs.map +0 -1
- package/dist/chunk-DVGLYE3G.cjs +0 -287
- package/dist/chunk-DVGLYE3G.cjs.map +0 -1
- package/dist/chunk-DWUEPOYH.js.map +0 -1
- package/dist/chunk-E2A3GJSN.cjs.map +0 -1
- package/dist/chunk-EALKX3ST.cjs.map +0 -1
- package/dist/chunk-EBDODJ5X.js.map +0 -1
- package/dist/chunk-FDZQPWFZ.cjs.map +0 -1
- package/dist/chunk-FMLIYHDP.js.map +0 -1
- package/dist/chunk-FNOUX5T2.cjs +0 -145
- package/dist/chunk-FNOUX5T2.cjs.map +0 -1
- package/dist/chunk-FNZOICR4.cjs.map +0 -1
- package/dist/chunk-FP5E5BUM.js.map +0 -1
- package/dist/chunk-G2U2W422.js.map +0 -1
- package/dist/chunk-G2WW52GO.cjs.map +0 -1
- package/dist/chunk-G3KKLGZU.cjs.map +0 -1
- package/dist/chunk-GC5VUTUR.cjs.map +0 -1
- package/dist/chunk-GL7PSN7H.cjs.map +0 -1
- package/dist/chunk-GYVWTH3U.cjs.map +0 -1
- package/dist/chunk-H2CZ6IE5.cjs.map +0 -1
- package/dist/chunk-H7HQYBPH.js.map +0 -1
- package/dist/chunk-HINS4GY6.js.map +0 -1
- package/dist/chunk-HNZWPIJE.js.map +0 -1
- package/dist/chunk-IA5GII7N.cjs.map +0 -1
- package/dist/chunk-J5IRFGUP.js.map +0 -1
- package/dist/chunk-JDAJ2HJQ.js.map +0 -1
- package/dist/chunk-JIVYPJKO.js.map +0 -1
- package/dist/chunk-JJ324PSZ.cjs.map +0 -1
- package/dist/chunk-JTFNNEWR.cjs.map +0 -1
- package/dist/chunk-JYVYCU22.cjs.map +0 -1
- package/dist/chunk-KXIILLQD.cjs.map +0 -1
- package/dist/chunk-L6VSBBPP.js.map +0 -1
- package/dist/chunk-LNT2IFOA.js.map +0 -1
- package/dist/chunk-LO5NZY7N.cjs.map +0 -1
- package/dist/chunk-LUQVSNQL.cjs.map +0 -1
- package/dist/chunk-LY6Z6A54.js.map +0 -1
- package/dist/chunk-MI5QU37D.js.map +0 -1
- package/dist/chunk-NFABMGNH.js.map +0 -1
- package/dist/chunk-NHXJVSZZ.cjs.map +0 -1
- package/dist/chunk-O2WICOUK.cjs.map +0 -1
- package/dist/chunk-O32BKXTR.cjs.map +0 -1
- package/dist/chunk-OBWWRRL6.cjs.map +0 -1
- package/dist/chunk-PIZMCOKL.js.map +0 -1
- package/dist/chunk-PQEFVHJZ.cjs.map +0 -1
- package/dist/chunk-QATCDVZ6.cjs.map +0 -1
- package/dist/chunk-QOKEU3DC.cjs.map +0 -1
- package/dist/chunk-QSEDH7T2.js.map +0 -1
- package/dist/chunk-QVNDZZS6.cjs.map +0 -1
- package/dist/chunk-QY6OMQW6.js +0 -285
- package/dist/chunk-QY6OMQW6.js.map +0 -1
- package/dist/chunk-R6CMJMIJ.js +0 -200
- package/dist/chunk-R6CMJMIJ.js.map +0 -1
- package/dist/chunk-RDNMAV5B.js.map +0 -1
- package/dist/chunk-RLOGQBFD.js.map +0 -1
- package/dist/chunk-S7INL5NI.js.map +0 -1
- package/dist/chunk-SBOXHIES.js.map +0 -1
- package/dist/chunk-SOCSUNIM.js.map +0 -1
- package/dist/chunk-SSAYBCAD.js.map +0 -1
- package/dist/chunk-SUH62Z64.js.map +0 -1
- package/dist/chunk-TBOQTPRO.cjs.map +0 -1
- package/dist/chunk-TF7XVTSP.cjs.map +0 -1
- package/dist/chunk-TPB53MHV.cjs.map +0 -1
- package/dist/chunk-U6NH54YD.js.map +0 -1
- package/dist/chunk-UKW2C5RN.js +0 -450
- package/dist/chunk-UKW2C5RN.js.map +0 -1
- package/dist/chunk-VFGSNR35.js.map +0 -1
- package/dist/chunk-VHKA25IV.cjs.map +0 -1
- package/dist/chunk-VK4O6W2K.cjs +0 -454
- package/dist/chunk-VK4O6W2K.cjs.map +0 -1
- package/dist/chunk-VQ7U3ASC.js.map +0 -1
- package/dist/chunk-VUCMGGU5.js.map +0 -1
- package/dist/chunk-W3C6QQF7.js.map +0 -1
- package/dist/chunk-WBGFFP3G.js.map +0 -1
- package/dist/chunk-WOIWI2UO.js.map +0 -1
- package/dist/chunk-X574M2JB.cjs.map +0 -1
- package/dist/chunk-XLKXFJMU.cjs.map +0 -1
- package/dist/chunk-XXBA3KSH.cjs.map +0 -1
- package/dist/chunk-YHBYVERE.cjs +0 -374
- package/dist/chunk-YHBYVERE.cjs.map +0 -1
- package/dist/chunk-YVHWOKR7.cjs.map +0 -1
- package/dist/chunk-YWGYN6YV.cjs.map +0 -1
- package/dist/chunk-YY6KJO5Z.cjs.map +0 -1
- package/dist/chunk-YYNWZRXZ.js.map +0 -1
- package/dist/chunk-Z4TZAJS3.js.map +0 -1
- package/dist/chunk-ZAX2UJBC.js.map +0 -1
- package/dist/chunk-ZFBQ4R7M.cjs.map +0 -1
- package/dist/chunk-ZQUPAIBS.js.map +0 -1
- package/dist/chunk-ZTWBG2XY.cjs.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,14 +1,16 @@
|
|
|
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
|
|
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');
|
|
12
14
|
var chunkRU6JG3FS_cjs = require('./chunk-RU6JG3FS.cjs');
|
|
13
15
|
var chunkSPDVNY2Z_cjs = require('./chunk-SPDVNY2Z.cjs');
|
|
14
16
|
var polyfill = require('@js-temporal/polyfill');
|
|
@@ -41,6 +43,211 @@ function createEventFromISO({
|
|
|
41
43
|
title
|
|
42
44
|
};
|
|
43
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
|
+
});
|
|
44
251
|
var ScheduleContext = react.createContext(null);
|
|
45
252
|
ScheduleContext.displayName = "ScheduleContext";
|
|
46
253
|
function useScheduleContext() {
|
|
@@ -61,16 +268,16 @@ function getScheduleRangeFromDates({
|
|
|
61
268
|
timezoneID
|
|
62
269
|
}) {
|
|
63
270
|
return {
|
|
64
|
-
end:
|
|
271
|
+
end: chunkJK4YAQ2N_cjs.plainDateToInstant(endDate, timezoneID),
|
|
65
272
|
endDate,
|
|
66
|
-
start:
|
|
273
|
+
start: chunkJK4YAQ2N_cjs.plainDateToInstant(startDate, timezoneID),
|
|
67
274
|
startDate
|
|
68
275
|
};
|
|
69
276
|
}
|
|
70
277
|
function enumerateDates(start, endExclusive) {
|
|
71
278
|
const dates = [];
|
|
72
279
|
let current = start;
|
|
73
|
-
while (
|
|
280
|
+
while (chunkJK4YAQ2N_cjs.plainDateIsBefore(current, endExclusive)) {
|
|
74
281
|
dates.push(current);
|
|
75
282
|
current = current.add({ days: 1 });
|
|
76
283
|
}
|
|
@@ -78,22 +285,22 @@ function enumerateDates(start, endExclusive) {
|
|
|
78
285
|
}
|
|
79
286
|
function eventOverlapsRange(event, range, timezoneID) {
|
|
80
287
|
if (isDayEvent(event)) {
|
|
81
|
-
const eventStart =
|
|
82
|
-
const eventEnd =
|
|
288
|
+
const eventStart = chunkJK4YAQ2N_cjs.plainDateToInstant(event.start, timezoneID);
|
|
289
|
+
const eventEnd = chunkJK4YAQ2N_cjs.plainDateToInstant(event.end.add({ days: 1 }), timezoneID);
|
|
83
290
|
return eventStart < range.end && eventEnd > range.start;
|
|
84
291
|
}
|
|
85
292
|
return event.start < range.end && event.end > range.start;
|
|
86
293
|
}
|
|
87
294
|
function eventOccursOnDate(event, date, timezoneID) {
|
|
88
295
|
if (isDayEvent(event)) {
|
|
89
|
-
return !
|
|
296
|
+
return !chunkJK4YAQ2N_cjs.plainDateIsAfter(event.start, date) && !chunkJK4YAQ2N_cjs.plainDateIsBefore(event.end, date);
|
|
90
297
|
}
|
|
91
|
-
const startDate =
|
|
92
|
-
const endDate =
|
|
298
|
+
const startDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(event.start, timezoneID);
|
|
299
|
+
const endDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(
|
|
93
300
|
Math.max(event.end - 1, event.start),
|
|
94
301
|
timezoneID
|
|
95
302
|
);
|
|
96
|
-
return !
|
|
303
|
+
return !chunkJK4YAQ2N_cjs.plainDateIsAfter(startDate, date) && !chunkJK4YAQ2N_cjs.plainDateIsBefore(endDate, date);
|
|
97
304
|
}
|
|
98
305
|
function sortEvents(events, timezoneID) {
|
|
99
306
|
return [...events].sort((a, b) => {
|
|
@@ -103,211 +310,108 @@ function sortEvents(events, timezoneID) {
|
|
|
103
310
|
});
|
|
104
311
|
}
|
|
105
312
|
function getEventSortStart(event, timezoneID) {
|
|
106
|
-
return isDayEvent(event) ?
|
|
313
|
+
return isDayEvent(event) ? chunkJK4YAQ2N_cjs.plainDateToInstant(event.start, timezoneID) : event.start;
|
|
107
314
|
}
|
|
108
|
-
|
|
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
|
-
bg: "var(--schedule-event-bg)",
|
|
176
|
-
color: "var(--schedule-event-fg)",
|
|
177
|
-
_hover: {
|
|
178
|
-
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"
|
|
179
382
|
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"--schedule-event-bg-hover": "color-mix(in srgb, var(--schedule-event-dot) 14%, token(colors.bg))",
|
|
184
|
-
"--schedule-event-border": "color-mix(in srgb, var(--schedule-event-dot) 48%, token(colors.border))",
|
|
185
|
-
"--schedule-event-fg": "color-mix(in srgb, var(--schedule-event-fg-base) 52%, token(colors.fg.muted))"
|
|
186
|
-
}),
|
|
187
|
-
eventDot: chunkRU6JG3FS_cjs.css({
|
|
188
|
-
display: "inline-block",
|
|
189
|
-
w: "2",
|
|
190
|
-
h: "2",
|
|
191
|
-
borderRadius: "full",
|
|
192
|
-
bg: "var(--schedule-event-dot)",
|
|
193
|
-
flexShrink: 0
|
|
194
|
-
}),
|
|
195
|
-
eventTime: chunkRU6JG3FS_cjs.css({
|
|
196
|
-
flexShrink: 0,
|
|
197
|
-
fontWeight: "normal"
|
|
198
|
-
}),
|
|
199
|
-
eventTitle: chunkRU6JG3FS_cjs.css({
|
|
200
|
-
fontWeight: "bold",
|
|
201
|
-
overflow: "hidden",
|
|
202
|
-
textOverflow: "ellipsis",
|
|
203
|
-
whiteSpace: "nowrap"
|
|
204
|
-
})
|
|
205
|
-
};
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
var scheduleClasses = scheduleRecipe();
|
|
206
386
|
var categoryFallback = { label: "Event", color: "blue" };
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}),
|
|
216
|
-
cyan: chunkRU6JG3FS_cjs.css({
|
|
217
|
-
"--schedule-event-bg": "token(colors.surface.cyan)",
|
|
218
|
-
"--schedule-event-bg-hover": "token(colors.surface.cyan.hover)",
|
|
219
|
-
"--schedule-event-border": "token(colors.surface.cyan.accent)",
|
|
220
|
-
"--schedule-event-fg": "token(colors.surface.cyan.fg)",
|
|
221
|
-
"--schedule-event-fg-base": "token(colors.surface.cyan.fg)",
|
|
222
|
-
"--schedule-event-dot": "token(colors.surface.cyan.accent)"
|
|
223
|
-
}),
|
|
224
|
-
gray: chunkRU6JG3FS_cjs.css({
|
|
225
|
-
"--schedule-event-bg": "token(colors.surface.gray)",
|
|
226
|
-
"--schedule-event-bg-hover": "token(colors.surface.gray.hover)",
|
|
227
|
-
"--schedule-event-border": "token(colors.surface.gray.accent)",
|
|
228
|
-
"--schedule-event-fg": "token(colors.surface.gray.fg)",
|
|
229
|
-
"--schedule-event-fg-base": "token(colors.surface.gray.fg)",
|
|
230
|
-
"--schedule-event-dot": "token(colors.surface.gray.accent)"
|
|
231
|
-
}),
|
|
232
|
-
green: chunkRU6JG3FS_cjs.css({
|
|
233
|
-
"--schedule-event-bg": "token(colors.surface.green)",
|
|
234
|
-
"--schedule-event-bg-hover": "token(colors.surface.green.hover)",
|
|
235
|
-
"--schedule-event-border": "token(colors.surface.green.accent)",
|
|
236
|
-
"--schedule-event-fg": "token(colors.surface.green.fg)",
|
|
237
|
-
"--schedule-event-fg-base": "token(colors.surface.green.fg)",
|
|
238
|
-
"--schedule-event-dot": "token(colors.surface.green.accent)"
|
|
239
|
-
}),
|
|
240
|
-
orange: chunkRU6JG3FS_cjs.css({
|
|
241
|
-
"--schedule-event-bg": "token(colors.surface.orange)",
|
|
242
|
-
"--schedule-event-bg-hover": "token(colors.surface.orange.hover)",
|
|
243
|
-
"--schedule-event-border": "token(colors.surface.orange.accent)",
|
|
244
|
-
"--schedule-event-fg": "token(colors.surface.orange.fg)",
|
|
245
|
-
"--schedule-event-fg-base": "token(colors.surface.orange.fg)",
|
|
246
|
-
"--schedule-event-dot": "token(colors.surface.orange.accent)"
|
|
247
|
-
}),
|
|
248
|
-
pink: chunkRU6JG3FS_cjs.css({
|
|
249
|
-
"--schedule-event-bg": "token(colors.surface.pink)",
|
|
250
|
-
"--schedule-event-bg-hover": "token(colors.surface.pink.hover)",
|
|
251
|
-
"--schedule-event-border": "token(colors.surface.pink.accent)",
|
|
252
|
-
"--schedule-event-fg": "token(colors.surface.pink.fg)",
|
|
253
|
-
"--schedule-event-fg-base": "token(colors.surface.pink.fg)",
|
|
254
|
-
"--schedule-event-dot": "token(colors.surface.pink.accent)"
|
|
255
|
-
}),
|
|
256
|
-
purple: chunkRU6JG3FS_cjs.css({
|
|
257
|
-
"--schedule-event-bg": "token(colors.surface.purple)",
|
|
258
|
-
"--schedule-event-bg-hover": "token(colors.surface.purple.hover)",
|
|
259
|
-
"--schedule-event-border": "token(colors.surface.purple.accent)",
|
|
260
|
-
"--schedule-event-fg": "token(colors.surface.purple.fg)",
|
|
261
|
-
"--schedule-event-fg-base": "token(colors.surface.purple.fg)",
|
|
262
|
-
"--schedule-event-dot": "token(colors.surface.purple.accent)"
|
|
263
|
-
}),
|
|
264
|
-
red: chunkRU6JG3FS_cjs.css({
|
|
265
|
-
"--schedule-event-bg": "token(colors.surface.red)",
|
|
266
|
-
"--schedule-event-bg-hover": "token(colors.surface.red.hover)",
|
|
267
|
-
"--schedule-event-border": "token(colors.surface.red.accent)",
|
|
268
|
-
"--schedule-event-fg": "token(colors.surface.red.fg)",
|
|
269
|
-
"--schedule-event-fg-base": "token(colors.surface.red.fg)",
|
|
270
|
-
"--schedule-event-dot": "token(colors.surface.red.accent)"
|
|
271
|
-
}),
|
|
272
|
-
teal: chunkRU6JG3FS_cjs.css({
|
|
273
|
-
"--schedule-event-bg": "token(colors.surface.teal)",
|
|
274
|
-
"--schedule-event-bg-hover": "token(colors.surface.teal.hover)",
|
|
275
|
-
"--schedule-event-border": "token(colors.surface.teal.accent)",
|
|
276
|
-
"--schedule-event-fg": "token(colors.surface.teal.fg)",
|
|
277
|
-
"--schedule-event-fg-base": "token(colors.surface.teal.fg)",
|
|
278
|
-
"--schedule-event-dot": "token(colors.surface.teal.accent)"
|
|
279
|
-
}),
|
|
280
|
-
yellow: chunkRU6JG3FS_cjs.css({
|
|
281
|
-
"--schedule-event-bg": "token(colors.surface.yellow)",
|
|
282
|
-
"--schedule-event-bg-hover": "token(colors.surface.yellow.hover)",
|
|
283
|
-
"--schedule-event-border": "token(colors.surface.yellow.accent)",
|
|
284
|
-
"--schedule-event-fg": "token(colors.surface.yellow.fg)",
|
|
285
|
-
"--schedule-event-fg-base": "token(colors.surface.yellow.fg)",
|
|
286
|
-
"--schedule-event-dot": "token(colors.surface.yellow.accent)"
|
|
287
|
-
})
|
|
288
|
-
};
|
|
289
|
-
function getCategory(categories, event) {
|
|
290
|
-
return categories.find((category) => category.label === event.category) ?? (event.category != null ? { label: event.category, color: categoryFallback.color } : categoryFallback);
|
|
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;
|
|
291
395
|
}
|
|
292
|
-
function
|
|
293
|
-
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);
|
|
294
398
|
}
|
|
295
399
|
function formatDate(date) {
|
|
296
|
-
return
|
|
400
|
+
return chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
297
401
|
}
|
|
298
402
|
function formatMonthTitle(date) {
|
|
299
|
-
return
|
|
403
|
+
return chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_MONTH_YEAR);
|
|
300
404
|
}
|
|
301
405
|
function formatWeekTitle(start, end) {
|
|
302
406
|
if (start.year === end.year && start.month === end.month) {
|
|
303
407
|
return formatMonthTitle(start);
|
|
304
408
|
}
|
|
305
|
-
const startMonth =
|
|
306
|
-
const endMonth =
|
|
409
|
+
const startMonth = chunkJK4YAQ2N_cjs.plainDateFormat(start, { month: "long" });
|
|
410
|
+
const endMonth = chunkJK4YAQ2N_cjs.plainDateFormat(end, { month: "long" });
|
|
307
411
|
return start.year === end.year ? `${startMonth} - ${endMonth} ${end.year}` : `${startMonth} ${start.year} - ${endMonth} ${end.year}`;
|
|
308
412
|
}
|
|
309
413
|
function formatListRangeTitle(start, end) {
|
|
310
|
-
return
|
|
414
|
+
return chunkJK4YAQ2N_cjs.plainDateIsEqual(start, end) ? formatDate(start) : formatWeekTitle(start, end);
|
|
311
415
|
}
|
|
312
416
|
function formatTime(instant, timezoneID) {
|
|
313
417
|
return polyfill.Temporal.Instant.fromEpochMilliseconds(instant).toZonedDateTimeISO(timezoneID).toLocaleString(void 0, {
|
|
@@ -325,7 +429,7 @@ function formatTimezoneAbbreviation(date, timezoneID) {
|
|
|
325
429
|
);
|
|
326
430
|
return parts.find((part) => part.type === "timeZoneName")?.value ?? timezoneID;
|
|
327
431
|
}
|
|
328
|
-
function formatHour(hour
|
|
432
|
+
function formatHour(hour) {
|
|
329
433
|
return polyfill.Temporal.PlainTime.from({ hour }).toLocaleString(void 0, {
|
|
330
434
|
hour: "numeric"
|
|
331
435
|
});
|
|
@@ -339,8 +443,8 @@ function getEventTimeLabel(event, timezoneID) {
|
|
|
339
443
|
function getEventStartTimeLabel(event, timezoneID) {
|
|
340
444
|
return isDayEvent(event) ? null : formatTime(event.start, timezoneID);
|
|
341
445
|
}
|
|
342
|
-
function getEventAccessibleLabel(event,
|
|
343
|
-
const category = getCategory(
|
|
446
|
+
function getEventAccessibleLabel(event, categoryMap, timezoneID) {
|
|
447
|
+
const category = getCategory(categoryMap, event);
|
|
344
448
|
return `${event.title}, ${category.label}, ${getEventTimeLabel(event, timezoneID)}`;
|
|
345
449
|
}
|
|
346
450
|
function getMinutesSinceStartOfDay(instant, timezoneID) {
|
|
@@ -349,9 +453,9 @@ function getMinutesSinceStartOfDay(instant, timezoneID) {
|
|
|
349
453
|
}
|
|
350
454
|
function isEventInPast(event, currentTime2, timezoneID) {
|
|
351
455
|
if (isDayEvent(event)) {
|
|
352
|
-
return
|
|
456
|
+
return chunkJK4YAQ2N_cjs.plainDateIsBefore(
|
|
353
457
|
event.end,
|
|
354
|
-
|
|
458
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(currentTime2, timezoneID)
|
|
355
459
|
);
|
|
356
460
|
}
|
|
357
461
|
return event.end <= currentTime2;
|
|
@@ -360,19 +464,16 @@ function CalendarEventPill({
|
|
|
360
464
|
event,
|
|
361
465
|
isPast = false
|
|
362
466
|
}) {
|
|
363
|
-
const {
|
|
364
|
-
const category = getCategory(
|
|
467
|
+
const { categoryMap, timezoneID } = useScheduleContext();
|
|
468
|
+
const category = getCategory(categoryMap, event);
|
|
469
|
+
const classes = scheduleEventRecipe({ color: category.color, isPast });
|
|
365
470
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
366
471
|
"span",
|
|
367
472
|
{
|
|
368
|
-
className:
|
|
369
|
-
styles.event,
|
|
370
|
-
eventColorClassName(category.color),
|
|
371
|
-
isPast && styles.eventPast
|
|
372
|
-
),
|
|
473
|
+
className: classes.event,
|
|
373
474
|
"data-state": isPast ? "past" : void 0,
|
|
374
475
|
"data-testid": `schedule-event-${event.id}`,
|
|
375
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
476
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.title, children: isDayEvent(event) ? event.title : getEventAccessibleLabel(event, categoryMap, timezoneID) })
|
|
376
477
|
}
|
|
377
478
|
);
|
|
378
479
|
}
|
|
@@ -380,23 +481,23 @@ function CalendarMonthEventPill({
|
|
|
380
481
|
event,
|
|
381
482
|
isPast = false
|
|
382
483
|
}) {
|
|
383
|
-
const {
|
|
384
|
-
const category = getCategory(
|
|
484
|
+
const { categoryMap, timezoneID } = useScheduleContext();
|
|
485
|
+
const category = getCategory(categoryMap, event);
|
|
385
486
|
const startTimeLabel = getEventStartTimeLabel(event, timezoneID);
|
|
487
|
+
const classes = scheduleEventRecipe({
|
|
488
|
+
color: category.color,
|
|
489
|
+
isPast,
|
|
490
|
+
isFullWidth: true
|
|
491
|
+
});
|
|
386
492
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
387
493
|
"span",
|
|
388
494
|
{
|
|
389
|
-
className:
|
|
390
|
-
styles.event,
|
|
391
|
-
chunkRU6JG3FS_cjs.css({ w: "full" }),
|
|
392
|
-
eventColorClassName(category.color),
|
|
393
|
-
isPast && styles.eventPast
|
|
394
|
-
),
|
|
495
|
+
className: classes.event,
|
|
395
496
|
"data-state": isPast ? "past" : void 0,
|
|
396
497
|
"data-testid": `schedule-event-${event.id}`,
|
|
397
498
|
children: [
|
|
398
|
-
startTimeLabel != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
399
|
-
/* @__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 })
|
|
400
501
|
]
|
|
401
502
|
}
|
|
402
503
|
);
|
|
@@ -409,9 +510,16 @@ function ScheduleFrame({
|
|
|
409
510
|
const { isLoading, plugins } = useScheduleContext();
|
|
410
511
|
const initialHeader = {
|
|
411
512
|
startContent: null,
|
|
412
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
413
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
414
|
-
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
|
|
415
523
|
] }),
|
|
416
524
|
endContent: null
|
|
417
525
|
};
|
|
@@ -423,11 +531,11 @@ function ScheduleFrame({
|
|
|
423
531
|
) ?? content,
|
|
424
532
|
initialHeader
|
|
425
533
|
);
|
|
426
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": titleLabel, className:
|
|
427
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
428
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
429
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
430
|
-
/* @__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 })
|
|
431
539
|
] }),
|
|
432
540
|
children
|
|
433
541
|
] });
|
|
@@ -464,7 +572,7 @@ function subscribe(listener) {
|
|
|
464
572
|
function useCurrentTime() {
|
|
465
573
|
return react.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
466
574
|
}
|
|
467
|
-
var
|
|
575
|
+
var styles = {
|
|
468
576
|
grid: chunkRU6JG3FS_cjs.css({
|
|
469
577
|
display: "grid",
|
|
470
578
|
gridTemplateColumns: "72px 1fr",
|
|
@@ -570,41 +678,6 @@ var styles2 = {
|
|
|
570
678
|
lastRow: chunkRU6JG3FS_cjs.css({
|
|
571
679
|
borderBlockEndWidth: 0
|
|
572
680
|
}),
|
|
573
|
-
timedEvent: chunkRU6JG3FS_cjs.css({
|
|
574
|
-
position: "absolute",
|
|
575
|
-
display: "flex",
|
|
576
|
-
flexDirection: "column",
|
|
577
|
-
gap: 0,
|
|
578
|
-
minH: "9",
|
|
579
|
-
minW: 0,
|
|
580
|
-
overflow: "hidden",
|
|
581
|
-
borderWidth: "default",
|
|
582
|
-
borderStyle: "solid",
|
|
583
|
-
borderColor: "var(--schedule-event-border)",
|
|
584
|
-
borderRadius: "sm",
|
|
585
|
-
px: "1",
|
|
586
|
-
py: "0.5",
|
|
587
|
-
fontSize: "xs",
|
|
588
|
-
lineHeight: "tight",
|
|
589
|
-
bg: "var(--schedule-event-bg)",
|
|
590
|
-
color: "var(--schedule-event-fg)",
|
|
591
|
-
_hover: {
|
|
592
|
-
bg: "var(--schedule-event-bg-hover)"
|
|
593
|
-
}
|
|
594
|
-
}),
|
|
595
|
-
timedEventTitle: chunkRU6JG3FS_cjs.css({
|
|
596
|
-
overflow: "hidden",
|
|
597
|
-
textOverflow: "ellipsis",
|
|
598
|
-
whiteSpace: "nowrap",
|
|
599
|
-
fontWeight: "bold"
|
|
600
|
-
}),
|
|
601
|
-
timedEventTime: chunkRU6JG3FS_cjs.css({
|
|
602
|
-
overflow: "hidden",
|
|
603
|
-
textOverflow: "ellipsis",
|
|
604
|
-
whiteSpace: "nowrap",
|
|
605
|
-
flexShrink: 0,
|
|
606
|
-
fontWeight: "normal"
|
|
607
|
-
}),
|
|
608
681
|
events: chunkRU6JG3FS_cjs.css({
|
|
609
682
|
display: "flex",
|
|
610
683
|
flexDirection: "column",
|
|
@@ -646,8 +719,8 @@ function eventOverlapsHour(event, day, hour, timezoneID) {
|
|
|
646
719
|
return event.start < hourEnd && event.end > hourStart;
|
|
647
720
|
}
|
|
648
721
|
function eventSpansPastDay(event, day, timezoneID) {
|
|
649
|
-
return !
|
|
650
|
-
|
|
722
|
+
return !chunkJK4YAQ2N_cjs.plainDateIsEqual(
|
|
723
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(Math.max(event.end - 1, event.start), timezoneID),
|
|
651
724
|
day
|
|
652
725
|
);
|
|
653
726
|
}
|
|
@@ -669,8 +742,8 @@ function getTimedEventLayouts({
|
|
|
669
742
|
const minMinute = minHour * 60;
|
|
670
743
|
const maxMinute = maxHour * 60;
|
|
671
744
|
return events.map((event) => {
|
|
672
|
-
const startDate =
|
|
673
|
-
const rawStart =
|
|
745
|
+
const startDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(event.start, timezoneID);
|
|
746
|
+
const rawStart = chunkJK4YAQ2N_cjs.plainDateIsBefore(startDate, day) ? 0 : getMinutesSinceStartOfDay(event.start, timezoneID);
|
|
674
747
|
const rawEnd = eventSpansPastDay(event, day, timezoneID) ? 24 * 60 : getMinutesSinceStartOfDay(event.end, timezoneID);
|
|
675
748
|
if (rawEnd <= minMinute || rawStart >= maxMinute) {
|
|
676
749
|
return null;
|
|
@@ -715,15 +788,15 @@ function getTimedEventStyle({
|
|
|
715
788
|
};
|
|
716
789
|
}
|
|
717
790
|
function getCellName({
|
|
718
|
-
|
|
791
|
+
categoryMap,
|
|
719
792
|
date,
|
|
720
793
|
events,
|
|
721
794
|
hourLabel,
|
|
722
795
|
timezoneID
|
|
723
796
|
}) {
|
|
724
|
-
const dateLabel =
|
|
797
|
+
const dateLabel = chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
725
798
|
const eventLabels = events.map(
|
|
726
|
-
(event) => getEventAccessibleLabel(event,
|
|
799
|
+
(event) => getEventAccessibleLabel(event, categoryMap, timezoneID)
|
|
727
800
|
);
|
|
728
801
|
return eventLabels.length > 0 ? `${dateLabel} ${hourLabel}. ${eventLabels.join(". ")}` : `${dateLabel} ${hourLabel}`;
|
|
729
802
|
}
|
|
@@ -733,7 +806,7 @@ function TimeGridView({
|
|
|
733
806
|
maxHour = 24,
|
|
734
807
|
minHour = 0
|
|
735
808
|
}) {
|
|
736
|
-
const {
|
|
809
|
+
const { categoryMap, events, highlightDate, timezoneID } = useScheduleContext();
|
|
737
810
|
const normalizedMinHour = Math.max(0, Math.min(23, Math.floor(minHour)));
|
|
738
811
|
const normalizedMaxHour = Math.max(
|
|
739
812
|
normalizedMinHour + 1,
|
|
@@ -757,51 +830,63 @@ function TimeGridView({
|
|
|
757
830
|
height: normalizedHourHeight,
|
|
758
831
|
minHeight: normalizedHourHeight
|
|
759
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
|
+
);
|
|
760
845
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
761
846
|
"div",
|
|
762
847
|
{
|
|
763
848
|
"aria-label": "Schedule time grid",
|
|
764
849
|
"aria-readonly": "true",
|
|
765
|
-
className: chunkSPDVNY2Z_cjs.cx(
|
|
850
|
+
className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.surface, styles.grid),
|
|
766
851
|
role: "grid",
|
|
767
852
|
style: gridStyle,
|
|
768
853
|
children: [
|
|
769
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
854
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.rowContents, role: "row", children: [
|
|
770
855
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
771
856
|
"div",
|
|
772
857
|
{
|
|
773
858
|
"aria-colindex": 1,
|
|
774
859
|
"aria-label": "Time",
|
|
775
|
-
className:
|
|
860
|
+
className: styles.corner,
|
|
776
861
|
role: "columnheader"
|
|
777
862
|
}
|
|
778
863
|
),
|
|
779
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
864
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.header, children: days.map((day, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
780
865
|
"div",
|
|
781
866
|
{
|
|
782
867
|
"aria-colindex": index + 2,
|
|
783
|
-
"aria-current":
|
|
784
|
-
"aria-label":
|
|
868
|
+
"aria-current": chunkJK4YAQ2N_cjs.plainDateIsEqual(day, highlightPlainDate) ? "date" : void 0,
|
|
869
|
+
"aria-label": chunkJK4YAQ2N_cjs.plainDateFormat(day, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY),
|
|
785
870
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
786
|
-
|
|
787
|
-
index === days.length - 1 &&
|
|
871
|
+
styles.dayHeader,
|
|
872
|
+
index === days.length - 1 && styles.lastColumn
|
|
788
873
|
),
|
|
789
874
|
role: "columnheader",
|
|
790
875
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
791
|
-
|
|
876
|
+
chunk3Z5PF75J_cjs.Heading,
|
|
792
877
|
{
|
|
793
878
|
"aria-hidden": "true",
|
|
794
879
|
color: "secondary",
|
|
795
880
|
level: 4,
|
|
796
881
|
textWrap: "nowrap",
|
|
797
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
798
|
-
|
|
882
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles.dayHeaderContent, children: [
|
|
883
|
+
chunkJK4YAQ2N_cjs.plainDateFormat(day, { weekday: "short" }),
|
|
799
884
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
800
885
|
"span",
|
|
801
886
|
{
|
|
802
887
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
803
|
-
|
|
804
|
-
|
|
888
|
+
styles.dayHeaderDayNumber,
|
|
889
|
+
chunkJK4YAQ2N_cjs.plainDateIsEqual(day, highlightPlainDate) && styles.dayHeaderCurrent
|
|
805
890
|
),
|
|
806
891
|
children: day.day
|
|
807
892
|
}
|
|
@@ -813,18 +898,18 @@ function TimeGridView({
|
|
|
813
898
|
day.toString()
|
|
814
899
|
)) })
|
|
815
900
|
] }),
|
|
816
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
901
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.rowContents, role: "row", children: [
|
|
817
902
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
818
903
|
"div",
|
|
819
904
|
{
|
|
820
905
|
"aria-colindex": 1,
|
|
821
906
|
"aria-label": `${timezoneLabel} all day`,
|
|
822
|
-
className:
|
|
907
|
+
className: styles.allDayLabel,
|
|
823
908
|
role: "rowheader",
|
|
824
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
909
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Text, { color: "secondary", type: "supporting", weight: "bold", children: timezoneLabel })
|
|
825
910
|
}
|
|
826
911
|
),
|
|
827
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
912
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.allDayRow, children: days.map((day, index) => {
|
|
828
913
|
const dayEvents = events.filter(
|
|
829
914
|
(event) => isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
|
|
830
915
|
);
|
|
@@ -833,18 +918,18 @@ function TimeGridView({
|
|
|
833
918
|
{
|
|
834
919
|
"aria-colindex": index + 2,
|
|
835
920
|
"aria-label": getCellName({
|
|
836
|
-
|
|
921
|
+
categoryMap,
|
|
837
922
|
date: day,
|
|
838
923
|
events: dayEvents,
|
|
839
924
|
hourLabel: "all day",
|
|
840
925
|
timezoneID
|
|
841
926
|
}),
|
|
842
927
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
843
|
-
|
|
844
|
-
index === days.length - 1 &&
|
|
928
|
+
styles.dayCell,
|
|
929
|
+
index === days.length - 1 && styles.lastColumn
|
|
845
930
|
),
|
|
846
931
|
role: "gridcell",
|
|
847
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
932
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.events, children: dayEvents.map((event) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
848
933
|
CalendarEventPill,
|
|
849
934
|
{
|
|
850
935
|
event,
|
|
@@ -860,31 +945,22 @@ function TimeGridView({
|
|
|
860
945
|
hours.map((hour) => {
|
|
861
946
|
const hourLabel = formatHour(hour);
|
|
862
947
|
const isLastHour = hour === hours[hours.length - 1];
|
|
863
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
948
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.rowContents, role: "row", children: [
|
|
864
949
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
865
950
|
"div",
|
|
866
951
|
{
|
|
867
952
|
"aria-colindex": 1,
|
|
868
|
-
className: chunkSPDVNY2Z_cjs.cx(
|
|
953
|
+
className: chunkSPDVNY2Z_cjs.cx(styles.timeLabel, isLastHour && styles.lastRow),
|
|
869
954
|
role: "rowheader",
|
|
870
955
|
style: hourStyle,
|
|
871
956
|
children: hourLabel
|
|
872
957
|
}
|
|
873
958
|
),
|
|
874
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
959
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.timeRow, children: days.map((day, index) => {
|
|
875
960
|
const hourEvents = events.filter(
|
|
876
961
|
(event) => eventOverlapsHour(event, day, hour, timezoneID)
|
|
877
962
|
);
|
|
878
|
-
const visibleTimedEventLayouts =
|
|
879
|
-
day,
|
|
880
|
-
events: events.filter(
|
|
881
|
-
(event) => !isDayEvent(event) && eventOccursOnDate(event, day, timezoneID)
|
|
882
|
-
),
|
|
883
|
-
hourHeight: normalizedHourHeight,
|
|
884
|
-
maxHour: normalizedMaxHour,
|
|
885
|
-
minHour: normalizedMinHour,
|
|
886
|
-
timezoneID
|
|
887
|
-
}).filter((layout) => layout.startHour === hour);
|
|
963
|
+
const visibleTimedEventLayouts = timedEventLayoutsByDay[index].filter((layout) => layout.startHour === hour);
|
|
888
964
|
const currentTimeTop = getCurrentTimeTopForHour({
|
|
889
965
|
currentTime: currentTime2,
|
|
890
966
|
day,
|
|
@@ -898,16 +974,16 @@ function TimeGridView({
|
|
|
898
974
|
{
|
|
899
975
|
"aria-colindex": index + 2,
|
|
900
976
|
"aria-label": getCellName({
|
|
901
|
-
|
|
977
|
+
categoryMap,
|
|
902
978
|
date: day,
|
|
903
979
|
events: hourEvents,
|
|
904
980
|
hourLabel,
|
|
905
981
|
timezoneID
|
|
906
982
|
}),
|
|
907
983
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
908
|
-
|
|
909
|
-
index === days.length - 1 &&
|
|
910
|
-
isLastHour &&
|
|
984
|
+
styles.hourCell,
|
|
985
|
+
index === days.length - 1 && styles.lastColumn,
|
|
986
|
+
isLastHour && styles.lastRow
|
|
911
987
|
),
|
|
912
988
|
role: "gridcell",
|
|
913
989
|
style: hourStyle,
|
|
@@ -916,28 +992,34 @@ function TimeGridView({
|
|
|
916
992
|
"div",
|
|
917
993
|
{
|
|
918
994
|
"aria-hidden": "true",
|
|
919
|
-
className:
|
|
995
|
+
className: styles.currentTimeLine,
|
|
920
996
|
"data-testid": "schedule-current-time-line",
|
|
921
997
|
style: { top: `${currentTimeTop}%` }
|
|
922
998
|
}
|
|
923
999
|
) : null,
|
|
924
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1000
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.events, children: visibleTimedEventLayouts.map((layout) => {
|
|
925
1001
|
const { event } = layout;
|
|
926
|
-
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
|
+
});
|
|
927
1013
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
928
1014
|
"div",
|
|
929
1015
|
{
|
|
930
|
-
className:
|
|
931
|
-
|
|
932
|
-
eventColorClassName(category.color),
|
|
933
|
-
isEventInPast(event, currentTime2, timezoneID) && styles.eventPast
|
|
934
|
-
),
|
|
935
|
-
"data-state": isEventInPast(event, currentTime2, timezoneID) ? "past" : void 0,
|
|
1016
|
+
className: eventClasses.event,
|
|
1017
|
+
"data-state": isPast ? "past" : void 0,
|
|
936
1018
|
"data-testid": `schedule-event-${event.id}`,
|
|
937
1019
|
style: getTimedEventStyle(layout),
|
|
938
1020
|
children: [
|
|
939
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
940
|
-
/* @__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) })
|
|
941
1023
|
]
|
|
942
1024
|
},
|
|
943
1025
|
event.id
|
|
@@ -962,7 +1044,7 @@ function getCurrentTimeTopForHour({
|
|
|
962
1044
|
minHour,
|
|
963
1045
|
timezoneID
|
|
964
1046
|
}) {
|
|
965
|
-
if (!
|
|
1047
|
+
if (!chunkJK4YAQ2N_cjs.plainDateIsEqual(day, chunkJK4YAQ2N_cjs.plainDateFromInstant(currentTime2, timezoneID))) {
|
|
966
1048
|
return null;
|
|
967
1049
|
}
|
|
968
1050
|
const currentMinute = getMinutesSinceStartOfDay(currentTime2, timezoneID);
|
|
@@ -980,35 +1062,35 @@ function getCurrentTimeTopForHour({
|
|
|
980
1062
|
return currentMinute % 60 / 60 * 100;
|
|
981
1063
|
}
|
|
982
1064
|
|
|
983
|
-
// src/components/Schedule/
|
|
984
|
-
function
|
|
985
|
-
return
|
|
1065
|
+
// src/components/Schedule/scheduleZonedInstant.ts
|
|
1066
|
+
function createScheduleZonedInstant(date, timezoneID) {
|
|
1067
|
+
return scheduleZonedInstantFromInstant(date, timezoneID);
|
|
986
1068
|
}
|
|
987
|
-
function
|
|
1069
|
+
function scheduleZonedInstantFromInstant(instant, timezoneID) {
|
|
988
1070
|
return {
|
|
989
1071
|
addDays: (days) => {
|
|
990
|
-
const date =
|
|
991
|
-
return
|
|
992
|
-
|
|
1072
|
+
const date = chunkJK4YAQ2N_cjs.plainDateFromInstant(instant, timezoneID).add({ days });
|
|
1073
|
+
return scheduleZonedInstantFromInstant(
|
|
1074
|
+
chunkJK4YAQ2N_cjs.plainDateToInstant(date, timezoneID),
|
|
993
1075
|
timezoneID
|
|
994
1076
|
);
|
|
995
1077
|
},
|
|
996
1078
|
instant,
|
|
997
1079
|
startOfDay: () => {
|
|
998
|
-
const date =
|
|
999
|
-
return
|
|
1000
|
-
|
|
1080
|
+
const date = chunkJK4YAQ2N_cjs.plainDateFromInstant(instant, timezoneID);
|
|
1081
|
+
return scheduleZonedInstantFromInstant(
|
|
1082
|
+
chunkJK4YAQ2N_cjs.plainDateToInstant(date, timezoneID),
|
|
1001
1083
|
timezoneID
|
|
1002
1084
|
);
|
|
1003
1085
|
},
|
|
1004
1086
|
timezoneID,
|
|
1005
|
-
toPlainDate: () =>
|
|
1087
|
+
toPlainDate: () => chunkJK4YAQ2N_cjs.plainDateFromInstant(instant, timezoneID)
|
|
1006
1088
|
};
|
|
1007
1089
|
}
|
|
1008
|
-
function
|
|
1090
|
+
function scheduleRangeToScheduleZonedInstantRange(range, timezoneID) {
|
|
1009
1091
|
return [
|
|
1010
|
-
|
|
1011
|
-
|
|
1092
|
+
scheduleZonedInstantFromInstant(range.start, timezoneID),
|
|
1093
|
+
scheduleZonedInstantFromInstant(range.end, timezoneID)
|
|
1012
1094
|
];
|
|
1013
1095
|
}
|
|
1014
1096
|
function ScheduleDayView({
|
|
@@ -1033,7 +1115,7 @@ function createScheduleDayView({
|
|
|
1033
1115
|
} = {}) {
|
|
1034
1116
|
return {
|
|
1035
1117
|
component: ScheduleDayView,
|
|
1036
|
-
getDateRange: (date) =>
|
|
1118
|
+
getDateRange: (date) => scheduleRangeToScheduleZonedInstantRange(
|
|
1037
1119
|
getScheduleRangeFromDates({
|
|
1038
1120
|
endDate: date.toPlainDate().add({ days: 1 }),
|
|
1039
1121
|
startDate: date.toPlainDate(),
|
|
@@ -1052,7 +1134,7 @@ function createScheduleDayView({
|
|
|
1052
1134
|
options: { hourHeight, maxHour, minHour }
|
|
1053
1135
|
};
|
|
1054
1136
|
}
|
|
1055
|
-
var
|
|
1137
|
+
var styles2 = {
|
|
1056
1138
|
list: chunkRU6JG3FS_cjs.css({
|
|
1057
1139
|
display: "flex",
|
|
1058
1140
|
flexDirection: "column"
|
|
@@ -1134,38 +1216,35 @@ function ListEvent({
|
|
|
1134
1216
|
event,
|
|
1135
1217
|
isPast
|
|
1136
1218
|
}) {
|
|
1137
|
-
const {
|
|
1138
|
-
const category = getCategory(
|
|
1219
|
+
const { categoryMap, timezoneID } = useScheduleContext();
|
|
1220
|
+
const category = getCategory(categoryMap, event);
|
|
1139
1221
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1140
1222
|
"div",
|
|
1141
1223
|
{
|
|
1142
|
-
className: chunkSPDVNY2Z_cjs.cx(
|
|
1224
|
+
className: chunkSPDVNY2Z_cjs.cx(styles2.eventRow, isPast && styles2.eventPast),
|
|
1143
1225
|
"data-state": isPast ? "past" : void 0,
|
|
1144
1226
|
children: [
|
|
1145
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1146
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1147
|
-
/* @__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(
|
|
1148
1230
|
"span",
|
|
1149
1231
|
{
|
|
1150
1232
|
"aria-label": category.label,
|
|
1151
|
-
className:
|
|
1152
|
-
styles.eventDot,
|
|
1153
|
-
eventColorClassName(category.color)
|
|
1154
|
-
),
|
|
1233
|
+
className: scheduleEventRecipe({ color: category.color }).dot,
|
|
1155
1234
|
role: "img"
|
|
1156
1235
|
}
|
|
1157
1236
|
) }),
|
|
1158
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1237
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Text, { children: event.title })
|
|
1159
1238
|
] })
|
|
1160
1239
|
]
|
|
1161
1240
|
}
|
|
1162
1241
|
);
|
|
1163
1242
|
}
|
|
1164
|
-
function ScheduleListView(
|
|
1243
|
+
function ScheduleListView() {
|
|
1165
1244
|
const { events, highlightDate, isLoading, range, timezoneID } = useScheduleContext();
|
|
1166
1245
|
const days = enumerateDates(range.startDate, range.endDate);
|
|
1167
1246
|
const currentTime2 = useCurrentTime();
|
|
1168
|
-
const currentPlainDate =
|
|
1247
|
+
const currentPlainDate = chunkJK4YAQ2N_cjs.plainDateFromInstant(currentTime2, timezoneID);
|
|
1169
1248
|
const highlightPlainDate = highlightDate.toPlainDate();
|
|
1170
1249
|
const endDate = range.endDate.add({ days: -1 });
|
|
1171
1250
|
const title = formatListRangeTitle(range.startDate, endDate);
|
|
@@ -1173,9 +1252,9 @@ function ScheduleListView(_props) {
|
|
|
1173
1252
|
const dayEvents = events.filter(
|
|
1174
1253
|
(event) => eventOccursOnDate(event, day, timezoneID)
|
|
1175
1254
|
);
|
|
1176
|
-
const isCurrentDay =
|
|
1177
|
-
const isHighlightedDay =
|
|
1178
|
-
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);
|
|
1179
1258
|
return {
|
|
1180
1259
|
day,
|
|
1181
1260
|
dayEvents,
|
|
@@ -1184,15 +1263,15 @@ function ScheduleListView(_props) {
|
|
|
1184
1263
|
isVisible: dayEvents.length > 0 || isCurrentDay || isBaseDay
|
|
1185
1264
|
};
|
|
1186
1265
|
}).filter((dayRecord) => dayRecord.isVisible);
|
|
1187
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkSPDVNY2Z_cjs.cx(
|
|
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(
|
|
1188
1267
|
({ day, dayEvents, isCurrentDay, isHighlightedDay }, index) => {
|
|
1189
|
-
const fullDate =
|
|
1268
|
+
const fullDate = chunkJK4YAQ2N_cjs.plainDateFormat(day, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
1190
1269
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1191
1270
|
"section",
|
|
1192
1271
|
{
|
|
1193
1272
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
1194
|
-
|
|
1195
|
-
index === visibleDays.length - 1 &&
|
|
1273
|
+
styles2.day,
|
|
1274
|
+
index === visibleDays.length - 1 && styles2.dayLast
|
|
1196
1275
|
),
|
|
1197
1276
|
children: [
|
|
1198
1277
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1200,23 +1279,23 @@ function ScheduleListView(_props) {
|
|
|
1200
1279
|
{
|
|
1201
1280
|
"aria-current": isHighlightedDay ? "date" : void 0,
|
|
1202
1281
|
"aria-label": fullDate,
|
|
1203
|
-
className:
|
|
1282
|
+
className: styles2.dayHeading,
|
|
1204
1283
|
children: [
|
|
1205
1284
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1206
1285
|
"span",
|
|
1207
1286
|
{
|
|
1208
1287
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
1209
|
-
|
|
1210
|
-
isHighlightedDay &&
|
|
1288
|
+
styles2.dayNumber,
|
|
1289
|
+
isHighlightedDay && styles2.dayNumberCurrent
|
|
1211
1290
|
),
|
|
1212
1291
|
children: day.day
|
|
1213
1292
|
}
|
|
1214
1293
|
),
|
|
1215
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1294
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles2.dayWeekday, children: chunkJK4YAQ2N_cjs.plainDateFormat(day, { weekday: "short" }) })
|
|
1216
1295
|
]
|
|
1217
1296
|
}
|
|
1218
1297
|
),
|
|
1219
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1298
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2.events, children: renderListRows({
|
|
1220
1299
|
currentTime: currentTime2,
|
|
1221
1300
|
events: dayEvents,
|
|
1222
1301
|
isShowingCurrentTime: isCurrentDay && !isLoading,
|
|
@@ -1250,7 +1329,7 @@ function renderListRows({
|
|
|
1250
1329
|
"div",
|
|
1251
1330
|
{
|
|
1252
1331
|
"aria-hidden": "true",
|
|
1253
|
-
className:
|
|
1332
|
+
className: styles2.nowRow,
|
|
1254
1333
|
"data-testid": "schedule-list-current-time"
|
|
1255
1334
|
},
|
|
1256
1335
|
"current-time"
|
|
@@ -1286,7 +1365,7 @@ function createScheduleListView({
|
|
|
1286
1365
|
options: { days }
|
|
1287
1366
|
};
|
|
1288
1367
|
}
|
|
1289
|
-
var
|
|
1368
|
+
var styles3 = {
|
|
1290
1369
|
grid: chunkRU6JG3FS_cjs.css({
|
|
1291
1370
|
display: "grid",
|
|
1292
1371
|
gridTemplateColumns: "repeat(7, minmax(0, 1fr))"
|
|
@@ -1349,14 +1428,14 @@ var styles4 = {
|
|
|
1349
1428
|
monthCellGrid: chunkRU6JG3FS_cjs.css({
|
|
1350
1429
|
display: "grid",
|
|
1351
1430
|
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
1352
|
-
gridAutoRows: "
|
|
1431
|
+
gridAutoRows: "var(--schedule-month-row-height)"
|
|
1353
1432
|
}),
|
|
1354
1433
|
monthEventOverlay: chunkRU6JG3FS_cjs.css({
|
|
1355
1434
|
position: "absolute",
|
|
1356
1435
|
inset: 0,
|
|
1357
1436
|
display: "grid",
|
|
1358
1437
|
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
1359
|
-
gridAutoRows: "
|
|
1438
|
+
gridAutoRows: "var(--schedule-month-row-height)",
|
|
1360
1439
|
pointerEvents: "none"
|
|
1361
1440
|
}),
|
|
1362
1441
|
monthEventSpan: chunkRU6JG3FS_cjs.css({
|
|
@@ -1365,6 +1444,46 @@ var styles4 = {
|
|
|
1365
1444
|
mx: "0.5",
|
|
1366
1445
|
pointerEvents: "auto",
|
|
1367
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"
|
|
1368
1487
|
})
|
|
1369
1488
|
};
|
|
1370
1489
|
var weekdays = [
|
|
@@ -1376,16 +1495,26 @@ var weekdays = [
|
|
|
1376
1495
|
{ label: "Friday", shortLabel: "Fri" },
|
|
1377
1496
|
{ label: "Saturday", shortLabel: "Sat" }
|
|
1378
1497
|
];
|
|
1379
|
-
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) {
|
|
1380
1509
|
const firstOfMonth = date.with({ day: 1 });
|
|
1381
|
-
const firstVisibleDay =
|
|
1510
|
+
const firstVisibleDay = setStartOfWeek(firstOfMonth, weekStartsOn);
|
|
1382
1511
|
return Array.from(
|
|
1383
1512
|
{ length: weekCount * 7 },
|
|
1384
1513
|
(_, index) => firstVisibleDay.add({ days: index })
|
|
1385
1514
|
);
|
|
1386
1515
|
}
|
|
1387
|
-
function getVisibleMonthRange(date, month, weekCount) {
|
|
1388
|
-
const firstVisible =
|
|
1516
|
+
function getVisibleMonthRange(date, month, weekCount, weekStartsOn) {
|
|
1517
|
+
const firstVisible = setStartOfWeek(month.with({ day: 1 }), weekStartsOn);
|
|
1389
1518
|
const end = firstVisible.add({ days: weekCount * 7 });
|
|
1390
1519
|
const currentDate = date.toPlainDate();
|
|
1391
1520
|
return [
|
|
@@ -1393,16 +1522,61 @@ function getVisibleMonthRange(date, month, weekCount) {
|
|
|
1393
1522
|
date.startOfDay().addDays(currentDate.until(end).days)
|
|
1394
1523
|
];
|
|
1395
1524
|
}
|
|
1396
|
-
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;
|
|
1397
1530
|
function getEventDateSpan(event, timezoneID) {
|
|
1398
1531
|
if (isDayEvent(event)) {
|
|
1399
1532
|
return [event.start, event.end];
|
|
1400
1533
|
}
|
|
1401
1534
|
return [
|
|
1402
|
-
|
|
1403
|
-
|
|
1535
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(event.start, timezoneID),
|
|
1536
|
+
chunkJK4YAQ2N_cjs.plainDateFromInstant(Math.max(event.end - 1, event.start), timezoneID)
|
|
1404
1537
|
];
|
|
1405
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
|
+
}
|
|
1406
1580
|
function getAvailableLevel(levels, columnStart) {
|
|
1407
1581
|
const level = levels.findIndex((columnEnd) => columnStart > columnEnd);
|
|
1408
1582
|
return level >= 0 ? level : levels.length;
|
|
@@ -1410,18 +1584,22 @@ function getAvailableLevel(levels, columnStart) {
|
|
|
1410
1584
|
function getMonthEventSegments(events, days, timezoneID) {
|
|
1411
1585
|
const segments = [];
|
|
1412
1586
|
const levelsByWeek = [];
|
|
1587
|
+
if (days.length === 0) {
|
|
1588
|
+
return segments;
|
|
1589
|
+
}
|
|
1413
1590
|
const firstDay = days[0];
|
|
1414
1591
|
const lastDay = days[days.length - 1];
|
|
1415
1592
|
const monthEvents = events.map((event) => {
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1593
|
+
const indexes = getEventVisibleDateIndexes({
|
|
1594
|
+
event,
|
|
1595
|
+
firstDay,
|
|
1596
|
+
lastDay,
|
|
1597
|
+
timezoneID
|
|
1598
|
+
});
|
|
1599
|
+
if (indexes == null) {
|
|
1422
1600
|
return null;
|
|
1423
1601
|
}
|
|
1424
|
-
const endIndex =
|
|
1602
|
+
const [startIndex, endIndex] = indexes;
|
|
1425
1603
|
return {
|
|
1426
1604
|
endIndex,
|
|
1427
1605
|
event,
|
|
@@ -1445,19 +1623,21 @@ function getMonthEventSegments(events, days, timezoneID) {
|
|
|
1445
1623
|
return a.event.title.localeCompare(b.event.title);
|
|
1446
1624
|
});
|
|
1447
1625
|
monthEvents.forEach(({ endIndex, event, startIndex }) => {
|
|
1448
|
-
const [eventStart, eventEnd] = getEventDateSpan(event, timezoneID);
|
|
1449
|
-
if (chunkCK3UJQRI_cjs.plainDateIsBefore(eventEnd, firstDay) || chunkCK3UJQRI_cjs.plainDateIsAfter(eventStart, lastDay)) {
|
|
1450
|
-
return;
|
|
1451
|
-
}
|
|
1452
1626
|
for (let week = Math.floor(startIndex / 7); week <= Math.floor(endIndex / 7); week += 1) {
|
|
1453
1627
|
const columnStart = week === Math.floor(startIndex / 7) ? startIndex % 7 : 0;
|
|
1454
1628
|
const columnEnd = week === Math.floor(endIndex / 7) ? endIndex % 7 : 6;
|
|
1455
1629
|
const weekLevels = levelsByWeek[week] ?? (levelsByWeek[week] = []);
|
|
1456
1630
|
const level = getAvailableLevel(weekLevels, columnStart);
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1631
|
+
weekLevels[level] = columnEnd;
|
|
1632
|
+
segments.push({
|
|
1633
|
+
columnEnd,
|
|
1634
|
+
columnStart,
|
|
1635
|
+
endIndex,
|
|
1636
|
+
event,
|
|
1637
|
+
level,
|
|
1638
|
+
startIndex,
|
|
1639
|
+
week
|
|
1640
|
+
});
|
|
1461
1641
|
}
|
|
1462
1642
|
});
|
|
1463
1643
|
return segments;
|
|
@@ -1471,81 +1651,173 @@ function getMonthEventSegmentStyle({
|
|
|
1471
1651
|
return {
|
|
1472
1652
|
gridColumn: `${columnStart + 1} / ${columnEnd + 2}`,
|
|
1473
1653
|
gridRow: `${week + 1}`,
|
|
1474
|
-
marginBlockStart: `${
|
|
1654
|
+
marginBlockStart: `${MONTH_EVENT_TOP_OFFSET + level * MONTH_EVENT_LEVEL_HEIGHT}px`
|
|
1475
1655
|
};
|
|
1476
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
|
+
}
|
|
1477
1722
|
function getGridCellName({
|
|
1723
|
+
categoryMap,
|
|
1478
1724
|
date,
|
|
1479
1725
|
events,
|
|
1480
1726
|
timezoneID
|
|
1481
1727
|
}) {
|
|
1482
1728
|
const eventLabels = events.map(
|
|
1483
|
-
(event) => getEventAccessibleLabel(event,
|
|
1729
|
+
(event) => getEventAccessibleLabel(event, categoryMap, timezoneID)
|
|
1484
1730
|
);
|
|
1485
|
-
const dateLabel =
|
|
1731
|
+
const dateLabel = chunkJK4YAQ2N_cjs.plainDateFormat(date, chunkJK4YAQ2N_cjs.DATE_FORMAT_WITH_WEEKDAY);
|
|
1486
1732
|
return eventLabels.length > 0 ? `${dateLabel}. ${eventLabels.join(". ")}` : dateLabel;
|
|
1487
1733
|
}
|
|
1488
1734
|
function ScheduleMonthlyView({
|
|
1489
1735
|
options
|
|
1490
1736
|
}) {
|
|
1491
|
-
const { events, highlightDate, timezoneID, viewDate } = useScheduleContext();
|
|
1737
|
+
const { categoryMap, events, highlightDate, timezoneID, viewDate } = useScheduleContext();
|
|
1492
1738
|
const currentTime2 = useCurrentTime();
|
|
1493
1739
|
const month = viewDate.toPlainDate();
|
|
1494
1740
|
const title = formatMonthTitle(month);
|
|
1495
|
-
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);
|
|
1496
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
|
+
});
|
|
1497
1766
|
const today = highlightDate.toPlainDate();
|
|
1767
|
+
const visibleWeekdays = getWeekdays(weekStartsOn);
|
|
1768
|
+
const monthGridStyle = {
|
|
1769
|
+
"--schedule-month-row-height": `${monthRowHeight}px`
|
|
1770
|
+
};
|
|
1498
1771
|
return /* @__PURE__ */ jsxRuntime.jsx(ScheduleFrame, { title, titleLabel: title, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1499
1772
|
"div",
|
|
1500
1773
|
{
|
|
1501
1774
|
"aria-label": title,
|
|
1502
|
-
className: chunkSPDVNY2Z_cjs.cx(
|
|
1775
|
+
className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.surface, styles3.grid),
|
|
1503
1776
|
role: "grid",
|
|
1504
1777
|
children: [
|
|
1505
|
-
|
|
1778
|
+
visibleWeekdays.map((weekday, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1506
1779
|
"div",
|
|
1507
1780
|
{
|
|
1508
1781
|
"aria-colindex": index + 1,
|
|
1509
1782
|
"aria-label": weekday.label,
|
|
1510
|
-
className:
|
|
1783
|
+
className: styles3.weekday,
|
|
1511
1784
|
role: "columnheader",
|
|
1512
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1785
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk3Z5PF75J_cjs.Heading, { color: "secondary", level: 4, children: weekday.shortLabel })
|
|
1513
1786
|
},
|
|
1514
1787
|
weekday.label
|
|
1515
1788
|
)),
|
|
1516
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1517
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1518
|
-
const dayEvents =
|
|
1519
|
-
(event) => eventOccursOnDate(event, day, timezoneID)
|
|
1520
|
-
);
|
|
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()) ?? [];
|
|
1521
1792
|
const isCurrentMonth = day.month === month.month && day.year === month.year;
|
|
1522
1793
|
const isLastColumn = index % 7 === 6;
|
|
1523
1794
|
const isLastRow = index >= days.length - 7;
|
|
1524
1795
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1525
1796
|
"div",
|
|
1526
1797
|
{
|
|
1527
|
-
"aria-current":
|
|
1798
|
+
"aria-current": chunkJK4YAQ2N_cjs.plainDateIsEqual(day, today) ? "date" : void 0,
|
|
1528
1799
|
"aria-label": getGridCellName({
|
|
1800
|
+
categoryMap,
|
|
1529
1801
|
date: day,
|
|
1530
1802
|
events: dayEvents,
|
|
1531
1803
|
timezoneID
|
|
1532
1804
|
}),
|
|
1533
1805
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
1534
|
-
|
|
1535
|
-
isLastColumn ?
|
|
1536
|
-
isLastRow ?
|
|
1537
|
-
!isCurrentMonth ?
|
|
1806
|
+
styles3.cell,
|
|
1807
|
+
isLastColumn ? styles3.lastColumn : void 0,
|
|
1808
|
+
isLastRow ? styles3.lastRow : void 0,
|
|
1809
|
+
!isCurrentMonth ? styles3.otherMonth : void 0
|
|
1538
1810
|
),
|
|
1539
1811
|
role: "gridcell",
|
|
1540
1812
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1541
1813
|
"span",
|
|
1542
1814
|
{
|
|
1543
1815
|
className: chunkSPDVNY2Z_cjs.cx(
|
|
1544
|
-
|
|
1545
|
-
|
|
1816
|
+
styles3.dayNumber,
|
|
1817
|
+
chunkJK4YAQ2N_cjs.plainDateIsEqual(day, today) ? styles3.today : void 0
|
|
1546
1818
|
),
|
|
1547
1819
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1548
|
-
|
|
1820
|
+
chunk3Z5PF75J_cjs.Text,
|
|
1549
1821
|
{
|
|
1550
1822
|
as: "span",
|
|
1551
1823
|
color: "inherit",
|
|
@@ -1561,89 +1833,181 @@ function ScheduleMonthlyView({
|
|
|
1561
1833
|
day.toString()
|
|
1562
1834
|
);
|
|
1563
1835
|
}) }),
|
|
1564
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
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",
|
|
1572
1863
|
{
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
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
|
+
] })
|
|
1580
1911
|
] })
|
|
1581
1912
|
]
|
|
1582
1913
|
}
|
|
1583
1914
|
) });
|
|
1584
1915
|
}
|
|
1585
1916
|
function createScheduleMonthlyView({
|
|
1586
|
-
|
|
1917
|
+
monthRowHeight = DEFAULT_MONTH_ROW_HEIGHT,
|
|
1918
|
+
weekCount = 6,
|
|
1919
|
+
weekStartsOn = 0
|
|
1587
1920
|
} = {}) {
|
|
1588
1921
|
return {
|
|
1589
1922
|
component: ScheduleMonthlyView,
|
|
1590
1923
|
getDateRange: (date) => {
|
|
1591
1924
|
const month = date.toPlainDate();
|
|
1592
|
-
return getVisibleMonthRange(date, month, weekCount);
|
|
1925
|
+
return getVisibleMonthRange(date, month, weekCount, weekStartsOn);
|
|
1593
1926
|
},
|
|
1594
1927
|
getNextDateRange: (date) => {
|
|
1595
1928
|
const nextMonth = date.toPlainDate().with({ day: 1 }).add({ months: 1 });
|
|
1596
1929
|
return {
|
|
1597
1930
|
label: "Next month",
|
|
1598
|
-
range: getVisibleMonthRange(date, nextMonth, weekCount)
|
|
1931
|
+
range: getVisibleMonthRange(date, nextMonth, weekCount, weekStartsOn)
|
|
1599
1932
|
};
|
|
1600
1933
|
},
|
|
1601
1934
|
getPreviousDateRange: (date) => {
|
|
1602
1935
|
const previousMonth = date.toPlainDate().with({ day: 1 }).subtract({ months: 1 });
|
|
1603
1936
|
return {
|
|
1604
1937
|
label: "Previous month",
|
|
1605
|
-
range: getVisibleMonthRange(
|
|
1938
|
+
range: getVisibleMonthRange(
|
|
1939
|
+
date,
|
|
1940
|
+
previousMonth,
|
|
1941
|
+
weekCount,
|
|
1942
|
+
weekStartsOn
|
|
1943
|
+
)
|
|
1606
1944
|
};
|
|
1607
1945
|
},
|
|
1608
|
-
options: { weekCount }
|
|
1946
|
+
options: { monthRowHeight, weekCount, weekStartsOn }
|
|
1609
1947
|
};
|
|
1610
1948
|
}
|
|
1611
|
-
function SchedulePaginationControls(
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
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: [
|
|
1620
1983
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1621
|
-
|
|
1984
|
+
chunk5XMWGK3O_cjs.Button,
|
|
1622
1985
|
{
|
|
1623
1986
|
icon: lucideReact.ChevronLeft,
|
|
1624
1987
|
isIconOnly: true,
|
|
1625
|
-
label:
|
|
1988
|
+
label: previousDateRange.label,
|
|
1626
1989
|
onClick: onPreviousDate
|
|
1627
1990
|
}
|
|
1628
1991
|
),
|
|
1629
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1992
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk5XMWGK3O_cjs.Button, { label: "Today", onClick: onToday, size: "sm" }),
|
|
1630
1993
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1631
|
-
|
|
1994
|
+
chunk5XMWGK3O_cjs.Button,
|
|
1632
1995
|
{
|
|
1633
1996
|
icon: lucideReact.ChevronRight,
|
|
1634
1997
|
isIconOnly: true,
|
|
1635
|
-
label:
|
|
1998
|
+
label: nextDateRange.label,
|
|
1636
1999
|
onClick: onNextDate
|
|
1637
2000
|
}
|
|
1638
2001
|
)
|
|
1639
2002
|
] });
|
|
1640
2003
|
}
|
|
1641
2004
|
function createSchedulePaginationPlugin({
|
|
2005
|
+
onViewDateChange,
|
|
1642
2006
|
position = "start"
|
|
1643
|
-
}
|
|
2007
|
+
}) {
|
|
1644
2008
|
return {
|
|
1645
2009
|
renderHeader(startContent, centerContent, endContent) {
|
|
1646
|
-
const controls = /* @__PURE__ */ jsxRuntime.jsx(SchedulePaginationControls, {});
|
|
2010
|
+
const controls = /* @__PURE__ */ jsxRuntime.jsx(SchedulePaginationControls, { onViewDateChange });
|
|
1647
2011
|
return position === "start" ? {
|
|
1648
2012
|
centerContent,
|
|
1649
2013
|
endContent,
|
|
@@ -1662,11 +2026,14 @@ function createSchedulePaginationPlugin({
|
|
|
1662
2026
|
}
|
|
1663
2027
|
};
|
|
1664
2028
|
}
|
|
1665
|
-
var defaultSchedulePaginationPlugin = createSchedulePaginationPlugin();
|
|
1666
2029
|
function useSchedulePaginationPlugin({
|
|
2030
|
+
onViewDateChange,
|
|
1667
2031
|
position = "start"
|
|
1668
|
-
}
|
|
1669
|
-
return react.useMemo(
|
|
2032
|
+
}) {
|
|
2033
|
+
return react.useMemo(
|
|
2034
|
+
() => createSchedulePaginationPlugin({ onViewDateChange, position }),
|
|
2035
|
+
[onViewDateChange, position]
|
|
2036
|
+
);
|
|
1670
2037
|
}
|
|
1671
2038
|
function ScheduleViewSelectorControl({
|
|
1672
2039
|
onChangeView,
|
|
@@ -1675,7 +2042,7 @@ function ScheduleViewSelectorControl({
|
|
|
1675
2042
|
const { view } = useScheduleContext();
|
|
1676
2043
|
const currentOption = options.find((option) => option.view === view);
|
|
1677
2044
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1678
|
-
|
|
2045
|
+
chunkHWD4HDQ5_cjs.DropdownMenu,
|
|
1679
2046
|
{
|
|
1680
2047
|
button: {
|
|
1681
2048
|
isDisabled: onChangeView == null,
|
|
@@ -1684,10 +2051,10 @@ function ScheduleViewSelectorControl({
|
|
|
1684
2051
|
},
|
|
1685
2052
|
menuWidth: 160,
|
|
1686
2053
|
children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1687
|
-
|
|
2054
|
+
chunkHWD4HDQ5_cjs.DropdownMenuItem,
|
|
1688
2055
|
{
|
|
1689
2056
|
endContent: option.view === view ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1690
|
-
|
|
2057
|
+
chunkJ4PIYOWT_cjs.Icon,
|
|
1691
2058
|
{
|
|
1692
2059
|
color: "primary",
|
|
1693
2060
|
"data-testid": "schedule-view-selector-selected-icon",
|
|
@@ -1743,9 +2110,7 @@ function useScheduleViewSelectorPlugin(options, pluginOptions = {}) {
|
|
|
1743
2110
|
}
|
|
1744
2111
|
|
|
1745
2112
|
// src/components/Schedule/plugins/index.tsx
|
|
1746
|
-
var defaultSchedulePlugins = [
|
|
1747
|
-
defaultSchedulePaginationPlugin
|
|
1748
|
-
];
|
|
2113
|
+
var defaultSchedulePlugins = [];
|
|
1749
2114
|
var EMPTY_CATEGORIES = [];
|
|
1750
2115
|
function readAsyncEvents(loader, start, end, cache) {
|
|
1751
2116
|
const key = `${start}:${end}`;
|
|
@@ -1787,14 +2152,17 @@ function resolveEvents(eventSource, range, timezoneID, eventCache) {
|
|
|
1787
2152
|
timezoneID
|
|
1788
2153
|
);
|
|
1789
2154
|
}
|
|
1790
|
-
function
|
|
2155
|
+
function useRange(view, date) {
|
|
1791
2156
|
const [start, end] = view.getDateRange(date);
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
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
|
+
);
|
|
1798
2166
|
}
|
|
1799
2167
|
function ScheduleViewContent({
|
|
1800
2168
|
categories,
|
|
@@ -1802,30 +2170,22 @@ function ScheduleViewContent({
|
|
|
1802
2170
|
eventSource,
|
|
1803
2171
|
highlightDate,
|
|
1804
2172
|
isLoading,
|
|
1805
|
-
nextDateLabel,
|
|
1806
|
-
onNextDate,
|
|
1807
|
-
onPreviousDate,
|
|
1808
|
-
onToday,
|
|
1809
2173
|
plugins,
|
|
1810
|
-
previousDateLabel,
|
|
1811
2174
|
view,
|
|
1812
2175
|
viewDate
|
|
1813
2176
|
}) {
|
|
1814
2177
|
const Component = view.component;
|
|
1815
|
-
const range =
|
|
2178
|
+
const range = useRange(view, viewDate);
|
|
1816
2179
|
const contextValue = react.useMemo(() => {
|
|
2180
|
+
const categoryMap = createCategoryMap(categories);
|
|
1817
2181
|
const events = isLoading ? [] : resolveEvents(eventSource, range, viewDate.timezoneID, eventCache);
|
|
1818
2182
|
return {
|
|
2183
|
+
categoryMap,
|
|
1819
2184
|
categories,
|
|
1820
2185
|
events,
|
|
1821
2186
|
highlightDate,
|
|
1822
2187
|
isLoading,
|
|
1823
|
-
nextDateLabel,
|
|
1824
|
-
onNextDate,
|
|
1825
|
-
onPreviousDate,
|
|
1826
|
-
onToday,
|
|
1827
2188
|
plugins,
|
|
1828
|
-
previousDateLabel,
|
|
1829
2189
|
range,
|
|
1830
2190
|
timezoneID: viewDate.timezoneID,
|
|
1831
2191
|
view,
|
|
@@ -1837,12 +2197,7 @@ function ScheduleViewContent({
|
|
|
1837
2197
|
eventSource,
|
|
1838
2198
|
highlightDate,
|
|
1839
2199
|
isLoading,
|
|
1840
|
-
nextDateLabel,
|
|
1841
|
-
onNextDate,
|
|
1842
|
-
onPreviousDate,
|
|
1843
|
-
onToday,
|
|
1844
2200
|
plugins,
|
|
1845
|
-
previousDateLabel,
|
|
1846
2201
|
range,
|
|
1847
2202
|
view,
|
|
1848
2203
|
viewDate
|
|
@@ -1855,7 +2210,6 @@ function Schedule({
|
|
|
1855
2210
|
"data-testid": dataTestId,
|
|
1856
2211
|
events,
|
|
1857
2212
|
highlightDate: highlightDateFromProps,
|
|
1858
|
-
onViewDateChange,
|
|
1859
2213
|
plugins = defaultSchedulePlugins,
|
|
1860
2214
|
ref,
|
|
1861
2215
|
style,
|
|
@@ -1869,50 +2223,18 @@ function Schedule({
|
|
|
1869
2223
|
() => chunkR37R7DEV_cjs.nowEpochMilliseconds()
|
|
1870
2224
|
);
|
|
1871
2225
|
const highlightDate = highlightDateFromProps ?? internalHighlightDate;
|
|
1872
|
-
const
|
|
1873
|
-
() =>
|
|
2226
|
+
const scheduleZonedInstant = react.useMemo(
|
|
2227
|
+
() => createScheduleZonedInstant(viewDate, timezoneID),
|
|
1874
2228
|
[viewDate, timezoneID]
|
|
1875
2229
|
);
|
|
1876
|
-
const
|
|
1877
|
-
() =>
|
|
2230
|
+
const highlightScheduleZonedInstant = react.useMemo(
|
|
2231
|
+
() => createScheduleZonedInstant(highlightDate, timezoneID),
|
|
1878
2232
|
[highlightDate, timezoneID]
|
|
1879
2233
|
);
|
|
1880
|
-
const updateViewDate = react.useCallback(
|
|
1881
|
-
(nextViewDate) => {
|
|
1882
|
-
onViewDateChange?.(nextViewDate);
|
|
1883
|
-
},
|
|
1884
|
-
[onViewDateChange]
|
|
1885
|
-
);
|
|
1886
|
-
const shiftToRange = react.useCallback(
|
|
1887
|
-
(nextRange) => {
|
|
1888
|
-
const currentRange = view.getDateRange(zonedDateTime);
|
|
1889
|
-
updateViewDate(
|
|
1890
|
-
zonedDateTime.instant + nextRange[0].instant - currentRange[0].instant
|
|
1891
|
-
);
|
|
1892
|
-
},
|
|
1893
|
-
[updateViewDate, view, zonedDateTime]
|
|
1894
|
-
);
|
|
1895
|
-
const previousDateRange = react.useMemo(
|
|
1896
|
-
() => view.getPreviousDateRange(zonedDateTime),
|
|
1897
|
-
[view, zonedDateTime]
|
|
1898
|
-
);
|
|
1899
|
-
const nextDateRange = react.useMemo(
|
|
1900
|
-
() => view.getNextDateRange(zonedDateTime),
|
|
1901
|
-
[view, zonedDateTime]
|
|
1902
|
-
);
|
|
1903
|
-
const onPreviousDate = react.useCallback(() => {
|
|
1904
|
-
shiftToRange(previousDateRange.range);
|
|
1905
|
-
}, [previousDateRange, shiftToRange]);
|
|
1906
|
-
const onToday = react.useCallback(() => {
|
|
1907
|
-
updateViewDate(chunkR37R7DEV_cjs.nowEpochMilliseconds());
|
|
1908
|
-
}, [updateViewDate]);
|
|
1909
|
-
const onNextDate = react.useCallback(() => {
|
|
1910
|
-
shiftToRange(nextDateRange.range);
|
|
1911
|
-
}, [nextDateRange, shiftToRange]);
|
|
1912
2234
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1913
2235
|
"div",
|
|
1914
2236
|
{
|
|
1915
|
-
className: chunkSPDVNY2Z_cjs.cx(
|
|
2237
|
+
className: chunkSPDVNY2Z_cjs.cx(scheduleClasses.root, className),
|
|
1916
2238
|
"data-testid": dataTestId,
|
|
1917
2239
|
ref,
|
|
1918
2240
|
style,
|
|
@@ -1925,16 +2247,11 @@ function Schedule({
|
|
|
1925
2247
|
categories,
|
|
1926
2248
|
eventCache,
|
|
1927
2249
|
eventSource: [],
|
|
1928
|
-
highlightDate:
|
|
2250
|
+
highlightDate: highlightScheduleZonedInstant,
|
|
1929
2251
|
isLoading: true,
|
|
1930
|
-
nextDateLabel: nextDateRange.label,
|
|
1931
|
-
onNextDate,
|
|
1932
|
-
onPreviousDate,
|
|
1933
|
-
onToday,
|
|
1934
2252
|
plugins,
|
|
1935
|
-
previousDateLabel: previousDateRange.label,
|
|
1936
2253
|
view,
|
|
1937
|
-
viewDate:
|
|
2254
|
+
viewDate: scheduleZonedInstant
|
|
1938
2255
|
}
|
|
1939
2256
|
),
|
|
1940
2257
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1943,16 +2260,11 @@ function Schedule({
|
|
|
1943
2260
|
categories,
|
|
1944
2261
|
eventCache,
|
|
1945
2262
|
eventSource: events,
|
|
1946
|
-
highlightDate:
|
|
2263
|
+
highlightDate: highlightScheduleZonedInstant,
|
|
1947
2264
|
isLoading: false,
|
|
1948
|
-
nextDateLabel: nextDateRange.label,
|
|
1949
|
-
onNextDate,
|
|
1950
|
-
onPreviousDate,
|
|
1951
|
-
onToday,
|
|
1952
2265
|
plugins,
|
|
1953
|
-
previousDateLabel: previousDateRange.label,
|
|
1954
2266
|
view,
|
|
1955
|
-
viewDate:
|
|
2267
|
+
viewDate: scheduleZonedInstant
|
|
1956
2268
|
}
|
|
1957
2269
|
)
|
|
1958
2270
|
}
|
|
@@ -1983,10 +2295,10 @@ function createScheduleWeeklyView({
|
|
|
1983
2295
|
minHour = 0,
|
|
1984
2296
|
weekStartsOn = 0
|
|
1985
2297
|
} = {}) {
|
|
1986
|
-
const getWeekStart = (date) =>
|
|
2298
|
+
const getWeekStart = (date) => setStartOfWeek2(date.toPlainDate(), weekStartsOn);
|
|
1987
2299
|
const getWeekRange = (date) => {
|
|
1988
2300
|
const startDate = getWeekStart(date);
|
|
1989
|
-
return
|
|
2301
|
+
return scheduleRangeToScheduleZonedInstantRange(
|
|
1990
2302
|
getScheduleRangeFromDates({
|
|
1991
2303
|
endDate: startDate.add({ days: 7 }),
|
|
1992
2304
|
startDate,
|
|
@@ -2009,8 +2321,8 @@ function createScheduleWeeklyView({
|
|
|
2009
2321
|
options: { hourHeight, maxHour, minHour, weekStartsOn }
|
|
2010
2322
|
};
|
|
2011
2323
|
}
|
|
2012
|
-
function
|
|
2013
|
-
const daysSinceWeekStart = (
|
|
2324
|
+
function setStartOfWeek2(date, weekStartsOn) {
|
|
2325
|
+
const daysSinceWeekStart = (chunkJK4YAQ2N_cjs.plainDateDayOfWeek(date) - weekStartsOn + 7) % 7;
|
|
2014
2326
|
return date.add({ days: -daysSinceWeekStart });
|
|
2015
2327
|
}
|
|
2016
2328
|
|
|
@@ -2025,5 +2337,5 @@ exports.defaultSchedulePlugins = defaultSchedulePlugins;
|
|
|
2025
2337
|
exports.useScheduleContext = useScheduleContext;
|
|
2026
2338
|
exports.useSchedulePaginationPlugin = useSchedulePaginationPlugin;
|
|
2027
2339
|
exports.useScheduleViewSelectorPlugin = useScheduleViewSelectorPlugin;
|
|
2028
|
-
//# sourceMappingURL=chunk-
|
|
2029
|
-
//# sourceMappingURL=chunk-
|
|
2340
|
+
//# sourceMappingURL=chunk-UXQSSRBQ.cjs.map
|
|
2341
|
+
//# sourceMappingURL=chunk-UXQSSRBQ.cjs.map
|