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