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