@stfrigerio/sito-template 0.1.73 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/Calendar/Calendar.d.ts.map +1 -1
- package/dist/index.esm.js +10 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{ASCIIText.stories-yWdkeCFw.js → ASCIIText.stories-Be7IUzBl.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-D4-SQUuu.js → AllAtoms.stories-C9NutWhw.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-DSYIR5wN.js → AnimatedContent.stories-DAZgqjS_.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-T24AuVkv.js → AnimatedList.stories-Br-uT7_K.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-DzTXGWmi.js → Antigravity.stories-BZViYA2F.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-eKRDos-X.js → ArrayInput.stories-OZicZh0x.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-BPsqLAWZ.js → Aurora.stories-_Kk2dlqT.js} +1 -1
- package/storybook-static/assets/{Beams.stories-BENy-_Vw.js → Beams.stories-BWf6w14D.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-DIZuQWFz.js → BlobCursor.stories-C8LnoCVY.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-Dlg4TOUG.js → BlurText.stories-B-YSXpM4.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-ByVDEzqb.js → BooleansHeatmap.stories-NVqKfTn7.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-K5M4QBQS.js → BorderGlow.stories-Cb5lpRXR.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-Bq-yo3V9.js → BubbleMenu.stories-DcO35VF7.js} +1 -1
- package/storybook-static/assets/{Button-DQla6H3P.js → Button-C8qYbNr4.js} +1 -1
- package/storybook-static/assets/Button-Cx1LZrA2.css +1 -0
- package/storybook-static/assets/{Button.stories-Cwm1uSEe.js → Button.stories-DwzHgPep.js} +1 -1
- package/storybook-static/assets/Calendar-DmOKLbiz.css +1 -0
- package/storybook-static/assets/Calendar.stories-BA2-_mhV.js +367 -0
- package/storybook-static/assets/{Card-D2W3wjZy.js → Card-Cd6nYK-n.js} +1 -1
- package/storybook-static/assets/{Card.stories-CN0Pj86n.js → Card.stories-BR4jTCEu.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-DkSfKCJm.js → CardNav.stories-BC92ePdS.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-CVfRELzK.js → Carousel.stories-2zzLsuyG.js} +1 -1
- package/storybook-static/assets/{Checkbox-BEMCpJLS.js → Checkbox-D1NYWUJY.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-DGfYhJ6B.js → Checkbox.stories-5-iRUqeK.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-Xh0Hxk6c.js → ChromaGrid.stories-D8TFP6QH.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-B_tKlhmW.js → CircularGallery.stories-JsH1BjyB.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-CIdtjRj7.js → CircularText.stories-vbhRP9H6.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-DK3dh5eA.js → ClickSpark.stories-CjalF_iE.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-QHDx5sTz.js → ColorBends.stories-DgCt12L9.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-D378Y8W_.js → CountUp.stories-Bx0w5jtq.js} +1 -1
- package/storybook-static/assets/{Counter.stories-Dk5Bv8Ct.js → Counter.stories-RAMjdEPH.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-MUN171O-.js → Crosshair.stories-CGuCeDZg.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-CviQtL5y.js → Cubes.stories-BpRxVapu.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-C36zkO4M.js → CurvedLoop.stories-B-tYGBma.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-C29cMn-f.js → DarkVeil.stories-BN90toz_.js} +1 -1
- package/storybook-static/assets/{DateInput-Drx-2LV9.js → DateInput-De2GsD_W.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-CLKAciVQ.js → DateInput.stories-4L2ho_Pi.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-Bd5Ps1i9.js → DecayCard.stories-BJ7VTrOs.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-Ch69Dvsk.js → DecryptedText.stories-BhqbuMpe.js} +1 -1
- package/storybook-static/assets/{Dither.stories-B3capSS0.js → Dither.stories-UeQDenX9.js} +1 -1
- package/storybook-static/assets/{Dock.stories-DBCaOR4C.js → Dock.stories-NDUyF4PJ.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-C1xqWa6A.js → EditFAB.stories-B0wSYqZE.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-AVy76OJG.js → EvilEye.stories-CD4zSVsk.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-CPAlDBs2.js → FadeContent.stories-fS_5Hw44.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-CB1Njw7i.js → FaultyTerminal.stories-BdbWtZwI.js} +1 -1
- package/storybook-static/assets/{Fbo-C0SB2kdr.js → Fbo-BuZjyF_I.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-D-LG1m2I.js → FloatingLines.stories-a-bJ8W7B.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-BG1HFESz.js → FlowingMenu.stories-CPFd-oYE.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-CXIPm5cg.js → FluidGlass.stories-D70sIzph.js} +1 -1
- package/storybook-static/assets/{Folder.stories-DB3U5hwH.js → Folder.stories-BNad9vBK.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-vPc5htX9.js → FuzzyText.stories-kzTlAczv.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-DcKUuMT9.js → Galaxy.stories-BcoDoJJH.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-Duc7utXe.js → GhostCursor.stories-CIQ5oS-a.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-Dl0knsPD.js → GlareHover.stories-DZKCns9C.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-BHaCO3AU.js → GlassSurface.stories-DRkJx3Za.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-B9fHTPEu.js → GlitchText.stories-G_9lrKbn.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-B4Hl3OTw.js → GooeyNav.stories-CV4BQuUk.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-Damik9Et.js → GradientBlinds.stories-DHrpEpO_.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-DVB5Ndfl.js → GradientText.stories-CM948FuA.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-q7QyYCRC.js → Grainient.stories-zUxmkOn4.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-BR97TB5W.js → GridMotion.stories-B0sfK-C-.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-C4yxI9Hk.js → ImageSlideshow.stories-rPxMKmHH.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-CqLa7JSo.js → Iridescence.stories-BNNnwiDj.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-DZ03d3Kr.js → LaserFlow.stories-DuoNQh4u.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-B1kZwfV4.js → LetterGlitch.stories-7kRTByUR.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-BH8CW99c.js → LightPillar.stories-DoEKaygk.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-sSdy_g-K.js → LightRays.stories-DsoKnqhC.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-Un6LCgoZ.js → Lightning.stories-BY9AXDxS.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-CLV_4WSt.js → LineWaves.stories-BW_b_xTw.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-ChQhK7Dy.js → LiquidChrome.stories--0ZnOsg0.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-B4OmA7LY.js → LiquidEther.stories-BwpzjovS.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-qzqD3jTR.js → LoadingSpinner-1bG1jTA9.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-8P7Z55GB.js → LoadingSpinner.stories-Bj9WTCwr.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-D2GXRX-H.js → MagicRings.stories-BYwozKiq.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-Bgu6hV9i.js → Magnet.stories-dCmlUHRm.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-Bekn7PzV.js → MagnetLines.stories-Bddr81lJ.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-BymDnqyf.js → Masonry.stories-CsgBFQaq.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-C_KyJ7W7.js → MetaBalls.stories-r-9Ktern.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-DgMk50WF.js → MetallicPaint.stories-DJ1icY96.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-C9m0jJCs.js → MoodChart.stories-BAN1H65s.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-E6BOCyHu.js → MotionConfigContext-4sobDr_8.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-DhlE0kvG.js → Navbar.stories-DT4E8FDb.js} +1 -1
- package/storybook-static/assets/{Noise.stories-CDvf3xOK.js → Noise.stories-CySeqiK8.js} +1 -1
- package/storybook-static/assets/NumberStepper-BO5RBIZk.css +1 -0
- package/storybook-static/assets/{NumberStepper-DwezmIn_.js → NumberStepper-Bvk5-t63.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-Dk53N2J7.js → NumberStepper.stories-D0NnhqEp.js} +1 -1
- package/storybook-static/assets/{Orb.stories-BrzRPQ1u.js → Orb.stories-DETL2oxn.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-NOI2oLj0.js → OrbitImages.stories-BAyGh6vN.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-MtaCNzgT.js → PieChart.stories-C_miXq6_.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-XJEIYKKu.js → PixelBlast.stories-DNnRrF47.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-QbZqQ88B.js → PixelCard.stories-Cd6Auu0Y.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-WV68wNlK.js → PixelSnow.stories-DkN5T7YO.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-vqzvdubI.js → PixelTransition.stories-COEvkR-7.js} +1 -1
- package/storybook-static/assets/{Plasma.stories--U6_YBdM.js → Plasma.stories-B22oVtcY.js} +1 -1
- package/storybook-static/assets/{Prism.stories-IWJ0w1dQ.js → Prism.stories-DV0OORlV.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-CB_t4CWR.js → PrismaticBurst.stories-DCmccTx8.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-BbJ6gRsy.js → ProfileCard.stories-CHEs7KlC.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-DgWJAXZB.js → QuantifiableHabitsChart.stories-Bl2yVrqA.js} +1 -1
- package/storybook-static/assets/{Radar.stories-GN-SIfi1.js → Radar.stories-I5P8dO4E.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-BwQB19FG.js → Ribbons.stories-D5cJQVM0.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-DSt8ch11.js → RippleGrid.stories-BwtOrFUs.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-CvaRE13z.js → RotatingText.stories-DARyQPUz.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-BI0-boMm.js → ScrollFloat.stories-Dc0orsYz.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-CqAwHxWZ.js → ScrollReveal.stories-W8gKKJkz.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-CxfPVUdO.js → ScrollVelocity.stories-BtBHIdDh.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-BYGPQpKV.js → SearchBar.stories-CKF_skS-.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-DKGXHEST.js → SearchableDropdown-DjgPBW4S.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-BSIq785F.js → SearchableDropdown.stories-C9lfureo.js} +1 -1
- package/storybook-static/assets/{SelectInput-BTaSD4pV.js → SelectInput-D7sYzDrc.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-BWCsGvSv.js → SelectInput.stories-D-o6dXmn.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-CfUXU0Hu.js → ShapeBlur.stories-C7c7wicM.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-BvZ4Ujrn.js → ShapeGrid.stories-DrVQJIO7.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-CkM26rCA.js → ShinyText.stories-Bqs9oVTE.js} +1 -1
- package/storybook-static/assets/{Silk.stories-heCaR9ri.js → Silk.stories-DAfQOgwq.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-C_BQZ1zn.js → SleepChart.stories-C0QkrKDH.js} +1 -1
- package/storybook-static/assets/{Slider-DFt4SqGe.js → Slider-Bdyo6Ygg.js} +1 -1
- package/storybook-static/assets/{Slider.stories-CZOftn_6.js → Slider.stories-DS51oQwf.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-CRCK1t7L.js → SoftAurora.stories-BTounCNw.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-B9TGtTa3.js → SoundDemo.stories-DjSqbaqn.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-CNr5fovk.js → SplashCursor.stories-B2z2pfTN.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-OU6sEeI7.js → SpotlightCard.stories-DFWy3Qsm.js} +1 -1
- package/storybook-static/assets/{Stack.stories-Cl0pCvmS.js → Stack.stories-eVxU6drS.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-CEhjZpSE.js → StaggeredMenu.stories-Be8MWGKS.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-Cu8Vh6JV.js → StarBorder.stories-buLGGhWU.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-CaaCz4D5.js → SunburstChart.stories-DwkU63M7.js} +1 -1
- package/storybook-static/assets/{Table.stories-DEvZCR8b.js → Table.stories-D4MtUw5s.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-ByrHcH_w.js → Tabs.stories-CPFWVggt.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-DflPhQr7.js → TargetCursor.stories-BIbnRiSZ.js} +1 -1
- package/storybook-static/assets/{TextArea-DCv2oVEi.js → TextArea-DDehMfhZ.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-C8XpFNeS.js → TextArea.stories-CpREuHFt.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-BBRGtRGy.js → TextCursor.stories-BUDnLpvZ.js} +1 -1
- package/storybook-static/assets/{TextInput-CiEBs1p7.js → TextInput-CAzdMbcN.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-sDjzvv_r.js → TextInput.stories-BfehwbP8.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-6hWaU46K.js → TextPressure.stories-DIKhiUzc.js} +1 -1
- package/storybook-static/assets/{TextType.stories-B96GIAfl.js → TextType.stories-DRbvgF_m.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-D4T-JeUC.js → ThemeSwitcher.stories-cXhciw3M.js} +1 -1
- package/storybook-static/assets/{Threads.stories-DFj3LyR_.js → Threads.stories-xmcTjKpL.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-D29y9r9_.js → TimeInput.stories-DKFZtesR.js} +1 -1
- package/storybook-static/assets/{Toggle-BQYsA6ul.js → Toggle-CC1WRtNx.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-CUbp5Jsr.js → Toggle.stories-BayZsnhd.js} +1 -1
- package/storybook-static/assets/{ToggleButton-BfEkXfyM.js → ToggleButton-DNwMOk4B.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-DV2MLkN7.js → ToggleButton.stories-CE4iTjBV.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-pHR04Ohp.js → TrueFocus.stories-CaFMcY8L.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-8BBD-zO6.js → VariableProximity.stories-ChP4Tjlr.js} +1 -1
- package/storybook-static/assets/{Waves.stories-Ch2WIT1y.js → Waves.stories-Bv4PvTSw.js} +1 -1
- package/storybook-static/assets/{check-5UELpswJ.js → check-BksAJHcR.js} +1 -1
- package/storybook-static/assets/{chevron-down-DJrhvjuh.js → chevron-down-Ah_Qzuj-.js} +1 -1
- package/storybook-static/assets/{chevron-right-BXPuFhNR.js → chevron-right-RJ7bLHYT.js} +1 -1
- package/storybook-static/assets/client-DfVgzhP2.js +1 -0
- package/storybook-static/assets/{createLucideIcon-OIz9nbID.js → createLucideIcon-Cw9oc6nQ.js} +1 -1
- package/storybook-static/assets/{download-CKNX6tcv.js → download-DeFjy7YQ.js} +1 -1
- package/storybook-static/assets/{folder-UmgN-wpw.js → folder-DFqD7Xmc.js} +1 -1
- package/storybook-static/assets/{iconBase-l6iBLek9.js → iconBase-B0Y1EhGm.js} +1 -1
- package/storybook-static/assets/{iframe-BLM9gPKH.js → iframe-wVHIxtK4.js} +3 -3
- package/storybook-static/assets/{index-b5igbCec.js → index-C6ccT3Cy.js} +1 -1
- package/storybook-static/assets/{index-4lYlkM-D.js → index-D6HUHJ-I.js} +1 -1
- package/storybook-static/assets/{index-vIkE6dHF.js → index-DAgWpYb7.js} +1 -1
- package/storybook-static/assets/{proxy-BsV6quUP.js → proxy-DtFoluf3.js} +1 -1
- package/storybook-static/assets/{react-18-DDy7qzUT.js → react-18-CVRz73bU.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-DEhbi0-x.js → react-three-fiber.esm-Dk2XrsuX.js} +1 -1
- package/storybook-static/assets/{search-BkBVkJzD.js → search-DdxW2DIt.js} +1 -1
- package/storybook-static/assets/{settings-CMsrEzJS.js → settings-B7vVk5ZY.js} +1 -1
- package/storybook-static/assets/{sun-WxYEV1-R.js → sun-E7lh9m5E.js} +1 -1
- package/storybook-static/assets/{trash-2-BvLXiygc.js → trash-2-BWCK62PC.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-B3QUdFyW.js → use-animation-frame-ByBIonQ_.js} +1 -1
- package/storybook-static/assets/{use-in-view-DxORwu3d.js → use-in-view-BJexGYZY.js} +1 -1
- package/storybook-static/assets/{use-motion-value-CYCvXY5m.js → use-motion-value-wRl_TaJk.js} +1 -1
- package/storybook-static/assets/{use-spring-Cdrlm-bg.js → use-spring-BOIoQ2Wo.js} +1 -1
- package/storybook-static/assets/{use-transform-CxdHJNbN.js → use-transform-DK7n09PB.js} +1 -1
- package/storybook-static/assets/{useSound-SuqbUlad.js → useSound-DGHMGE7h.js} +1 -1
- package/storybook-static/assets/{users-Br1MtzUW.js → users-B7vi8Bsk.js} +1 -1
- package/storybook-static/assets/{x-p0fEn4Nq.js → x-DxxcvklS.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/Button-O-w2-ag3.css +0 -1
- package/storybook-static/assets/Calendar-Dk5RRsIK.css +0 -1
- package/storybook-static/assets/Calendar.stories-D6ud0VBm.js +0 -367
- package/storybook-static/assets/NumberStepper-vsuSLafY.css +0 -1
- package/storybook-static/assets/client-CUSQMWIi.js +0 -1
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
import{r as T,j as e}from"./iframe-BLM9gPKH.js";import{u as lt}from"./use-motion-value-CYCvXY5m.js";import{u as on}from"./use-transform-CxdHJNbN.js";import{m as We}from"./proxy-BsV6quUP.js";import{T as rn}from"./trash-2-BvLXiygc.js";import{c as zt}from"./createLucideIcon-OIz9nbID.js";import{C as sn}from"./check-5UELpswJ.js";import{a as ke}from"./index-4lYlkM-D.js";import{D as ln}from"./download-CKNX6tcv.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-E6BOCyHu.js";/**
|
|
2
|
-
* @license lucide-react v0.539.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const dn=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],cn=zt("grip-vertical",dn);/**
|
|
7
|
-
* @license lucide-react v0.539.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const mn=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],un=zt("pencil",mn),gn="_calendar_givdb_2",pn="_loading_givdb_14",vn="_loadingSpinner_givdb_21",fn="_header_givdb_27",hn="_navigation_givdb_35",yn="_navButton_givdb_41",wn="_title_givdb_60",Dn="_controls_givdb_70",_n="_exportDropdown_givdb_76",bn="_exportButton_givdb_80",xn="_exportMenu_givdb_98",Sn="_exportMenuItem_givdb_113",kn="_todayButton_givdb_130",Cn="_viewToggle_givdb_146",En="_viewButton_givdb_153",Tn="_active_givdb_167",jn="_filterBar_givdb_177",Nn="_filterPill_givdb_186",Mn="_filterPillActive_givdb_205",Hn="_filterDot_givdb_211",$n="_weekDays_givdb_219",Ln="_withWeekNumbers_givdb_226",In="_weekNumberHeader_givdb_230",Pn="_weekDay_givdb_219",Bn="_daysGrid_givdb_247",Fn="_dayCell_givdb_263",Wn="_dayNumber_givdb_292",An="_today_givdb_130",Rn="_events_givdb_311",On="_event_givdb_311",qn="_eventTitle_givdb_338",Vn="_eventTime_givdb_347",zn="_otherMonth_givdb_392",Gn="_selected_givdb_397",Un="_compact_givdb_409",Yn="_dots_givdb_432",Xn="_dot_givdb_432",Jn="_dotMore_givdb_447",Kn="_weekNumberCell_givdb_454",Qn="_completed_givdb_500",Zn="_completedIcon_givdb_521",ea="_moreEvents_givdb_528",ta="_emptyState_givdb_538",na="_dayView_givdb_548",aa="_dayViewHeader_givdb_557",oa="_timeColumnHeader_givdb_567",ra="_dayColumnHeader_givdb_574",sa="_allDayStrip_givdb_584",ia="_allDayLabel_givdb_592",la="_allDayList_givdb_603",da="_dayViewScrollContainer_givdb_626",ca="_dayTimelineGrid_givdb_635",ma="_hourRow_givdb_640",ua="_hourLabel_givdb_646",ga="_hourSlots_givdb_657",pa="_halfHourSlot_givdb_664",va="_halfHourSlotBottom_givdb_674",fa="_dayEventAnchor_givdb_679",ha="_weekTimeline_givdb_687",ya="_weekTimelineHeader_givdb_696",wa="_weekDayColumnHeader_givdb_708",Da="_weekDayLabel_givdb_742",_a="_weekDayNumber_givdb_750",ba="_weekTimelineScroll_givdb_755",xa="_weekTimelineGrid_givdb_763",Sa="_weekTimeColumn_givdb_769",ka="_weekTimeSlot_givdb_777",Ca="_weekHourLabel_givdb_784",Ea="_weekDayColumns_givdb_790",Ta="_weekDayColumn_givdb_708",ja="_weekHourRow_givdb_808",Na="_weekEventAnchor_givdb_814",Ma="_currentTimeIndicator_givdb_822",n={calendar:gn,loading:pn,loadingSpinner:vn,header:fn,navigation:hn,navButton:yn,title:wn,controls:Dn,exportDropdown:_n,exportButton:bn,exportMenu:xn,exportMenuItem:Sn,todayButton:kn,viewToggle:Cn,viewButton:En,active:Tn,filterBar:jn,filterPill:Nn,filterPillActive:Mn,filterDot:Hn,weekDays:$n,withWeekNumbers:Ln,weekNumberHeader:In,weekDay:Pn,daysGrid:Bn,dayCell:Fn,dayNumber:Wn,today:An,events:Rn,event:On,eventTitle:qn,eventTime:Vn,otherMonth:zn,selected:Gn,compact:Un,dots:Yn,dot:Xn,dotMore:Jn,weekNumberCell:Kn,completed:Qn,completedIcon:Zn,moreEvents:ea,emptyState:ta,dayView:na,dayViewHeader:aa,timeColumnHeader:oa,dayColumnHeader:ra,allDayStrip:sa,allDayLabel:ia,allDayList:la,dayViewScrollContainer:da,dayTimelineGrid:ca,hourRow:ma,hourLabel:ua,hourSlots:ga,halfHourSlot:pa,halfHourSlotBottom:va,dayEventAnchor:fa,weekTimeline:ha,weekTimelineHeader:ya,weekDayColumnHeader:wa,weekDayLabel:Da,weekDayNumber:_a,weekTimelineScroll:ba,weekTimelineGrid:xa,weekTimeColumn:Sa,weekTimeSlot:ka,weekHourLabel:Ca,weekDayColumns:Ea,weekDayColumn:Ta,weekHourRow:ja,weekEventAnchor:Na,currentTimeIndicator:Ma},Ha="_wrapper_nyv1b_1",$a="_deleteUnderlay_nyv1b_7",La="_card_nyv1b_23",Ia="_dragging_nyv1b_43",Pa="_completed_nyv1b_49",Ba="_text_nyv1b_53",Fa="_grip_nyv1b_57",Wa="_checkIcon_nyv1b_77",Aa="_time_nyv1b_89",Ra="_editButton_nyv1b_96",q={wrapper:Ha,deleteUnderlay:$a,card:La,dragging:Ia,completed:Pa,text:Ba,grip:Fa,checkIcon:Wa,time:Aa,editButton:Ra},Oa=-80,Fe=({event:o,color:a,textColor:s,onComplete:d,onEdit:m,onDelete:p,onDragEnd:u,draggable:y=!0})=>{const b=lt(0),k=lt(0),x=on(b,[-80,0],[1,0]),[j,H]=T.useState(!1),W=T.useRef(!1),I=T.useRef(null),ae=o.status==="completed",Y=(g,J)=>{p&&J.offset.x<Oa?ke(b,-1e3,{duration:.2,onComplete:()=>p(o)}):ke(b,0,{type:"spring",stiffness:400,damping:30})},oe=()=>{if(W.current){W.current=!1;return}j||d==null||d(o)},pe=g=>{!y||!u||(g.stopPropagation(),g.preventDefault(),I.current={x:g.clientX,y:g.clientY,pointerId:g.pointerId},g.currentTarget.setPointerCapture(g.pointerId),H(!0))},re=g=>{I.current&&(b.set(g.clientX-I.current.x),k.set(g.clientY-I.current.y))},ve=g=>{if(!I.current)return;const J=g.clientY,_=g.clientX;try{g.currentTarget.releasePointerCapture(I.current.pointerId)}catch{}I.current=null,H(!1),ke(k,0,{type:"spring",stiffness:400,damping:30}),ke(b,0,{type:"spring",stiffness:400,damping:30}),u==null||u(J,_)},X=!!p,fe=y&&!!u;return e.jsxs("div",{className:q.wrapper,children:[X&&e.jsxs(We.div,{className:q.deleteUnderlay,style:{opacity:x},children:[e.jsx(rn,{size:16}),e.jsx("span",{children:"Delete"})]}),e.jsxs(We.div,{className:`${q.card} ${ae?q.completed:""} ${j?q.dragging:""}`,style:{x:b,y:k,background:a,color:s,borderLeftColor:a},drag:X&&!j?"x":!1,dragConstraints:X?{left:-200,right:0}:void 0,dragElastic:.15,dragDirectionLock:!0,onDragStart:()=>{W.current=!0},onDragEnd:Y,whileTap:j?void 0:{scale:.98},animate:j?{scale:1.03}:{scale:1},onClick:oe,children:[fe&&e.jsx("div",{className:q.grip,onPointerDown:pe,onPointerMove:re,onPointerUp:ve,onPointerCancel:ve,onClick:g=>g.stopPropagation(),children:e.jsx(cn,{size:14})}),ae&&e.jsx(sn,{size:14,className:q.checkIcon,strokeWidth:3}),e.jsx("span",{className:q.text,children:o.title}),o.time&&e.jsx("span",{className:q.time,children:o.time}),m&&e.jsx("button",{className:q.editButton,onClick:g=>{g.stopPropagation(),m(o)},"aria-label":"Edit event",children:e.jsx(un,{size:13})})]})]})};Fe.__docgenInfo={description:"",methods:[],displayName:"DayEventCard",props:{draggable:{defaultValue:{value:"true",computed:!1},required:!1}}};const ye=["id","title","date","time","endTime","allDay","type","status","priority","category"],qa=o=>(typeof o=="string"?new Date(o):o).toISOString(),Ye=o=>{const a={};for(const s of ye){const d=o[s];d!==void 0&&(a[s]=s==="date"?qa(d):d)}return a},Va=o=>{if(o==null)return"";const a=String(o);return/[",\n\r]/.test(a)?`"${a.replace(/"/g,'""')}"`:a},za=o=>{const a=ye.join(","),s=o.map(d=>{const m=Ye(d);return ye.map(p=>Va(m[p])).join(",")});return[a,...s].join(`
|
|
12
|
-
`)},Ga=o=>JSON.stringify(o.map(Ye),null,2),Ua=o=>{if(o==null)return"";const a=String(o);return/[",\n\r]/.test(a)?`"${a.replace(/"/g,'""')}"`:a},Ya=o=>{const a=`events[${o.length}]{${ye.join(",")}}:`,s=o.map(d=>{const m=Ye(d);return" "+ye.map(p=>Ua(m[p])).join(",")});return[a,...s].join(`
|
|
13
|
-
`)},Xa={csv:"text/csv;charset=utf-8;",json:"application/json;charset=utf-8;",toon:"text/plain;charset=utf-8;"},Ja={csv:"csv",json:"json",toon:"toon"},Ka=(o,a)=>a==="csv"?za(o):a==="json"?Ga(o):Ya(o),Qa=(o,a,s)=>{const d=Ka(o,a),m=new Blob([d],{type:Xa[a]}),p=URL.createObjectURL(m),u=document.createElement("a");u.href=p,u.download=`events-${new Date().toISOString().slice(0,10)}.${Ja[a]}`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(p)};function ue({events:o,onEventClick:a,onDateClick:s,onEventClickByView:d,onDateClickByView:m,onTimeSlotClick:p,onEventDrop:u,onEventComplete:y,onEventDelete:b,onEventEdit:k,viewMode:x="month",initialDate:j=new Date,config:H={},className:W="",style:I={},loading:ae=!1,emptyState:Y,hideHeader:oe=!1,compact:pe=!1,selectedDate:re,selectedCategoryId:ve,onCategoryChange:X,exportFormats:fe}){const[g,J]=T.useState(j),[_,Re]=T.useState(x),[Ut,Yt]=T.useState(null),Xe=ve!==void 0,se=Xe?ve??null:Ut,Je=t=>{Xe||Yt(t),X==null||X(t)},Oe=T.useRef(null),qe=T.useRef(null),[we,Ve]=T.useState(!1),ze=T.useRef(null);T.useEffect(()=>{if(!we)return;const t=r=>{ze.current&&!ze.current.contains(r.target)&&Ve(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[we]);const{eventColors:Ke={},iconRenderer:Qe,maxEventsPerDay:K=3,mondayStart:Q=!1,showWeekNumbers:De=!1,dateFormat:Ze={month:"long",year:"numeric"},locale:Z="en-US",dayLabels:Xt,monthNames:_e,startHour:R=0,endHour:et=24,hourHeight:N=60,halfHourSlots:O=!1,categories:ie}=H,tt=T.useMemo(()=>!ie||ie.length===0||se===null?o:o.filter(t=>!t.category||t.category===se),[o,ie,se]),Jt=Xt||(Q?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),nt=(H==null?void 0:H.hourHeight)??60,at=(H==null?void 0:H.startHour)??0,Ge=T.useMemo(()=>{const t=g.getFullYear(),r=g.getMonth();let v,i,S;if(_==="week"){v=new Date(g);const D=v.getDay(),h=Q?v.getDate()-D+(D===0?-6:1):v.getDate()-D;v=new Date(v.setDate(h)),v.setHours(0,0,0,0),i=new Date(v),i.setDate(i.getDate()+6);const C=v.toLocaleDateString(Z,{day:"numeric",month:"short"}),$=i.toLocaleDateString(Z,{day:"numeric",month:"short"});S=`${C} - ${$}`}else if(_==="day")v=new Date(g),v.setHours(0,0,0,0),i=new Date(g),i.setHours(23,59,59,999),S=g.toLocaleDateString(Z,{weekday:"long",year:"numeric",month:"long",day:"numeric"});else{const D=new Date(t,r,1),h=new Date(t,r+1,0);v=new Date(D);const C=Q?(D.getDay()+6)%7:D.getDay();v.setDate(v.getDate()-C),i=new Date(h);const $=Q?(h.getDay()+6)%7:h.getDay();i.setDate(i.getDate()+(6-$)),_e&&_e[r]?S=`${_e[r]} ${t}`:S=g.toLocaleDateString(Z,Ze)}const M=[],c=new Date(v);for(;c<=i;)M.push(new Date(c)),c.setDate(c.getDate()+1);return{days:M,displayTitle:S}},[g,_,Q,Z,Ze,_e]),ot=T.useRef("");T.useEffect(()=>{if(_!=="day"&&_!=="week")return;const t=_==="day"?Oe:qe;if(!t.current)return;const r=new Date;if(!(()=>{if(_==="day")return g.toDateString()===r.toDateString();const c=new Date(g),D=c.getDay(),h=Q?D===0?-6:1-D:-D;c.setDate(c.getDate()+h),c.setHours(0,0,0,0);const C=new Date(c);return C.setDate(c.getDate()+7),r>=c&&r<C})())return;const i=`${_}-${g.toDateString()}`;if(ot.current===i)return;ot.current=i;const S=(r.getHours()-at)*60+r.getMinutes(),M=Math.max(0,S/60*nt-100);setTimeout(()=>{t.current&&(t.current.scrollTop=M)},0)},[_,g,at,nt,Q]);const Ue=t=>tt.filter(v=>new Date(v.date).toDateString()===t.toDateString()).sort((v,i)=>{const S=v.time?be(v.time):999999,M=i.time?be(i.time):999999;return S-M}),be=t=>{const[r,v]=t.split(":").map(Number);return r*60+v},rt=t=>{const r=new Map,v=t.filter(c=>c.time).map(c=>{const D=be(c.time),h=c.endTime?be(c.endTime):D+30;return{event:c,start:D,end:Math.max(h,D+1)}});v.sort((c,D)=>c.start-D.start||c.end-D.end);let i=[],S=-1;const M=()=>{if(i.length===0)return;const c=[],D=[];for(const C of i){let $=!1;for(let z=0;z<c.length;z++)if(c[z]<=C.start){c[z]=C.end,D.push({id:C.event.id,col:z}),$=!0;break}$||(c.push(C.end),D.push({id:C.event.id,col:c.length-1}))}const h=c.length;for(const C of D)r.set(C.id,{col:C.col,totalCols:h});i=[],S=-1};for(const c of v)i.length===0||c.start<S?(i.push(c),S=Math.max(S,c.end)):(M(),i.push(c),S=c.end);return M(),r},Kt=()=>{const t=new Date(g);_==="week"?t.setDate(t.getDate()-7):_==="day"?t.setDate(t.getDate()-1):t.setMonth(t.getMonth()-1),J(t)},Qt=()=>{const t=new Date(g);_==="week"?t.setDate(t.getDate()+7):_==="day"?t.setDate(t.getDate()+1):t.setMonth(t.getMonth()+1),J(t)},Zt=()=>{J(new Date)},le=t=>{if(t.color)return t.color;if(t.type&&Ke[t.type])return Ke[t.type];const r={high:"#FF4444",medium:"#FFA500",low:"#4A90E2"};return t.priority&&r[t.priority]?r[t.priority]:"#4A90E2"},en=t=>{const r=t.replace("#",""),v=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),S=parseInt(r.substring(4,6),16);return(.299*v+.587*i+.114*S)/255>.5?"#000000":"#FFFFFF"},xe=t=>{if(t.textColor)return t.textColor;const r=le(t);return en(r)},Se=t=>{d&&d[_]?d[_](t):a&&a(t)},st=t=>{m&&m[_]?m[_](t):s&&s(t)},tn=t=>{const r=new Date;return t.toDateString()===r.toDateString()},nn=t=>t.getMonth()===g.getMonth(),an=t=>{const r=new Date(t.getFullYear(),0,1),v=t.getTime()-r.getTime(),i=1e3*60*60*24*7;return Math.floor(v/i)+1};return ae?e.jsx("div",{className:`${n.calendar} ${n.loading} ${W}`,style:I,children:e.jsx("div",{className:n.loadingSpinner,children:"Loading..."})}):e.jsxs("div",{className:`${n.calendar} ${pe?n.compact:""} ${W}`,style:I,children:[!oe&&e.jsxs("div",{className:n.header,children:[e.jsxs("div",{className:n.navigation,children:[e.jsx("button",{onClick:Kt,className:n.navButton,"aria-label":"Previous",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:e.jsx("polyline",{points:"15,18 9,12 15,6"})})}),e.jsx("h3",{className:n.title,children:Ge.displayTitle}),e.jsx("button",{onClick:Qt,className:n.navButton,"aria-label":"Next",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:e.jsx("polyline",{points:"9,6 15,12 9,18"})})})]}),ie&&ie.length>0&&e.jsxs("div",{className:n.filterBar,role:"tablist","aria-label":"Filter by category",children:[e.jsx("button",{type:"button",role:"tab","aria-selected":se===null,className:`${n.filterPill} ${se===null?n.filterPillActive:""}`,onClick:()=>Je(null),children:"All"}),ie.map(t=>{const r=se===t.id;return e.jsxs("button",{type:"button",role:"tab","aria-selected":r,className:`${n.filterPill} ${r?n.filterPillActive:""}`,style:r?{background:t.color,borderColor:t.color,color:"#ffffff"}:void 0,onClick:()=>Je(t.id),children:[!r&&e.jsx("span",{className:n.filterDot,style:{background:t.color}}),t.label]},t.id)})]}),e.jsxs("div",{className:n.controls,children:[fe&&fe.length>0&&e.jsxs("div",{className:n.exportDropdown,ref:ze,children:[e.jsx("button",{type:"button",className:n.exportButton,onClick:()=>Ve(t=>!t),"aria-haspopup":"menu","aria-expanded":we,"aria-label":"Export events",title:"Export events",children:e.jsx(ln,{size:16})}),we&&e.jsx("div",{className:n.exportMenu,role:"menu",children:fe.map(t=>e.jsx("button",{type:"button",role:"menuitem",className:n.exportMenuItem,onClick:()=>{Qa(tt,t),Ve(!1)},children:t.toUpperCase()},t))})]}),e.jsx("button",{onClick:Zt,className:n.todayButton,children:"Today"}),e.jsxs("div",{className:n.viewToggle,children:[e.jsx("button",{className:`${n.viewButton} ${_==="month"?n.active:""}`,onClick:()=>Re("month"),children:"Month"}),e.jsx("button",{className:`${n.viewButton} ${_==="week"?n.active:""}`,onClick:()=>Re("week"),children:"Week"}),e.jsx("button",{className:`${n.viewButton} ${_==="day"?n.active:""}`,onClick:()=>Re("day"),children:"Day"})]})]})]}),_==="month"&&e.jsxs("div",{className:`${n.weekDays} ${De?n.withWeekNumbers:""}`,children:[De&&e.jsx("div",{className:n.weekNumberHeader,children:"Wk"}),Jt.map(t=>e.jsx("div",{className:n.weekDay,children:t},t))]}),_==="day"?(()=>{const t=Ue(g),r=t.filter(l=>!l.allDay&&l.time),v=t.filter(l=>l.allDay||!l.time),i=Array.from({length:et-R},(l,f)=>R+f),S=i.length*N,M=new Date,c=g.toDateString()===M.toDateString(),h=((M.getHours()-R)*60+M.getMinutes())/60*N,C=c&&h>=0&&h<=S,$=l=>{const[f,L]=l.split(":").map(Number);return f*60+L},z=l=>{if(!l.time||!l.endTime)return 30;const f=$(l.endTime)-$(l.time);return f>0?f:30},w=rt(r),E=(l,f)=>{if(p){const L=new Date(g);L.setHours(l,f,0,0);const G=`${l.toString().padStart(2,"0")}:${f.toString().padStart(2,"0")}`;p(L,l,G)}},P=(l,f)=>{var he;if(!u)return;const L=(he=Oe.current)==null?void 0:he.querySelector(`.${n.dayTimelineGrid}`);if(!L)return;const G=L.getBoundingClientRect(),ee=f-G.top,te=O?N/2:N,B=Math.max(0,Math.floor(ee/te)),F=O?i.length*2:i.length,U=Math.min(F-1,B),A=R+Math.floor(O?U/2:U),ne=O&&U%2===1?30:0,de=new Date(g);de.setHours(A,ne,0,0),u(l,de)};return e.jsxs("div",{className:n.dayView,children:[e.jsxs("div",{className:n.dayViewHeader,children:[e.jsx("div",{className:n.timeColumnHeader}),e.jsx("div",{className:n.dayColumnHeader,children:g.toLocaleDateString(Z,{weekday:"short",day:"numeric"})})]}),v.length>0&&e.jsxs("div",{className:n.allDayStrip,children:[e.jsx("span",{className:n.allDayLabel,children:"All day"}),e.jsx("div",{className:n.allDayList,children:v.map(l=>e.jsx(Fe,{event:l,color:le(l),textColor:xe(l),onComplete:y??(a?Se:void 0),onEdit:k,onDelete:b,draggable:!1},l.id))})]}),e.jsx("div",{className:n.dayViewScrollContainer,ref:Oe,children:e.jsxs("div",{className:n.dayTimelineGrid,style:{height:S},children:[i.map(l=>e.jsxs("div",{className:n.hourRow,style:{height:N},children:[e.jsxs("span",{className:n.hourLabel,children:[l.toString().padStart(2,"0"),":00"]}),e.jsx("div",{className:n.hourSlots,children:O?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:n.halfHourSlot,onClick:()=>E(l,0)}),e.jsx("div",{className:`${n.halfHourSlot} ${n.halfHourSlotBottom}`,onClick:()=>E(l,30)})]}):e.jsx("div",{className:n.halfHourSlot,onClick:()=>E(l,0)})})]},l)),r.map(l=>{const[f,L]=l.time.split(":").map(Number),G=(f-R)*N+L/60*N,ee=z(l),te=Math.max(24,ee/60*N-2),B=w.get(l.id),F=(B==null?void 0:B.totalCols)??1,U=(B==null?void 0:B.col)??0;return e.jsx("div",{className:n.dayEventAnchor,style:{top:G,height:te,"--lane-col":U,"--lane-total":F},onClick:A=>A.stopPropagation(),children:e.jsx(Fe,{event:l,color:le(l),textColor:xe(l),onComplete:y??(a?Se:void 0),onEdit:k,onDelete:b,onDragEnd:u?A=>P(l,A):void 0})},l.id)}),C&&e.jsx("div",{className:n.currentTimeIndicator,style:{top:`${h}px`}})]})})]})})():_==="week"?(()=>{const t=Ge.days,r=Array.from({length:et-R},(w,E)=>R+E),v=r.length*N,i=new Date,S=t.findIndex(w=>w.toDateString()===i.toDateString()),c=((i.getHours()-R)*60+i.getMinutes())/60*N,D=S>=0&&c>=0&&c<=v,h=w=>{const[E,P]=w.split(":").map(Number);return E*60+P},C=w=>{if(!w.time||!w.endTime)return 30;const E=h(w.endTime)-h(w.time);return E>0?E:30},$=(w,E,P)=>{if(!p)return;const l=new Date(w);l.setHours(E,P,0,0);const f=`${E.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`;p(l,E,f)},z=(w,E,P)=>{var it;if(!u)return;const l=(it=qe.current)==null?void 0:it.querySelector(`.${n.weekDayColumns}`);if(!l)return;const f=l.getBoundingClientRect(),L=P-f.left,G=E-f.top,ee=f.width/7,te=Math.min(6,Math.max(0,Math.floor(L/ee))),B=t[te],F=O?N/2:N,U=O?r.length*2:r.length,A=Math.min(U-1,Math.max(0,Math.floor(G/F))),ne=R+Math.floor(O?A/2:A),de=O&&A%2===1?30:0,he=new Date(B);he.setHours(ne,de,0,0),u(w,he)};return e.jsxs("div",{className:n.weekTimeline,children:[e.jsxs("div",{className:n.weekTimelineHeader,children:[e.jsx("div",{className:n.timeColumnHeader}),t.map(w=>{const E=w.toDateString()===i.toDateString(),P=re&&w.toDateString()===re.toDateString();return e.jsxs("button",{type:"button",className:`${n.weekDayColumnHeader} ${E?n.today:""} ${P?n.selected:""}`,onClick:()=>st(w),children:[e.jsx("span",{className:n.weekDayLabel,children:w.toLocaleDateString(Z,{weekday:"short"})}),e.jsx("span",{className:n.weekDayNumber,children:w.getDate()})]},w.toISOString())})]}),e.jsx("div",{className:n.weekTimelineScroll,ref:qe,children:e.jsxs("div",{className:n.weekTimelineGrid,style:{height:v},children:[e.jsx("div",{className:n.weekTimeColumn,children:r.map(w=>e.jsx("div",{className:n.weekTimeSlot,style:{height:N},children:e.jsxs("span",{className:n.weekHourLabel,children:[w.toString().padStart(2,"0"),":00"]})},w))}),e.jsx("div",{className:n.weekDayColumns,children:t.map(w=>{const E=Ue(w).filter(f=>!f.allDay&&f.time),P=w.toDateString()===i.toDateString(),l=rt(E);return e.jsxs("div",{className:n.weekDayColumn,children:[r.map(f=>e.jsx("div",{className:n.weekHourRow,style:{height:N},children:O?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:n.halfHourSlot,onClick:()=>$(w,f,0)}),e.jsx("div",{className:`${n.halfHourSlot} ${n.halfHourSlotBottom}`,onClick:()=>$(w,f,30)})]}):e.jsx("div",{className:n.halfHourSlot,onClick:()=>$(w,f,0)})},f)),E.map(f=>{const[L,G]=f.time.split(":").map(Number),ee=(L-R)*N+G/60*N,te=C(f),B=Math.max(24,te/60*N-2),F=l.get(f.id),U=(F==null?void 0:F.totalCols)??1,A=(F==null?void 0:F.col)??0;return e.jsx("div",{className:n.weekEventAnchor,style:{top:ee,height:B,"--lane-col":A,"--lane-total":U},onClick:ne=>ne.stopPropagation(),children:e.jsx(Fe,{event:f,color:le(f),textColor:xe(f),onComplete:y??(a?Se:void 0),onEdit:k,onDelete:b,onDragEnd:u?(ne,de)=>z(f,ne,de):void 0})},f.id)}),P&&D&&e.jsx("div",{className:n.currentTimeIndicator,style:{top:`${c}px`,left:0}})]},w.toISOString())})})]})})]})})():(()=>{const t=pe?void 0:40+K*24;return e.jsx("div",{className:`${n.daysGrid} ${De?n.withWeekNumbers:""}`,children:Ge.days.map((r,v)=>{const i=Ue(r),S=tn(r),M=nn(r),c=De&&v%7===0,D=re&&r.toDateString()===re.toDateString();return e.jsxs(T.Fragment,{children:[c&&e.jsx("div",{className:n.weekNumberCell,style:t!==void 0?{height:t,minHeight:t}:void 0,children:an(r)}),e.jsxs(We.div,{className:`${n.dayCell} ${S?n.today:""} ${M?"":n.otherMonth} ${D?n.selected:""}`,style:t!==void 0?{height:t,minHeight:t}:void 0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:v*.02,ease:"easeOut"},onClick:()=>st(r),children:[e.jsx("div",{className:n.dayNumber,children:r.getDate()}),i.length>0&&pe&&_==="month"?e.jsxs("div",{className:n.dots,children:[i.slice(0,K).map(h=>e.jsx("span",{className:n.dot,style:{backgroundColor:le(h)}},h.id)),i.length>K&&e.jsxs("span",{className:n.dotMore,children:["+",i.length-K]})]}):i.length>0?e.jsxs("div",{className:n.events,children:[i.slice(0,K).map((h,C)=>e.jsxs(We.div,{className:`${n.event} ${h.status==="completed"?n.completed:""}`,style:{backgroundColor:le(h),color:xe(h),opacity:h.status==="completed"?.7:1},onClick:$=>{$.stopPropagation(),Se(h)},initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:C*.05,ease:"easeOut"},whileHover:{scale:1.02,y:-1,transition:{duration:.1}},whileTap:{scale:.98,transition:{duration:.1}},children:[Qe&&Qe(h),e.jsxs("span",{className:n.eventTitle,children:[h.time&&e.jsx("span",{className:n.eventTime,children:h.time}),h.title]}),h.status==="completed"&&e.jsx("svg",{className:n.completedIcon,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:e.jsx("polyline",{points:"20,6 9,17 4,12"})})]},h.id)),i.length>K&&e.jsxs("div",{className:n.moreEvents,children:["+",i.length-K," more"]})]}):Y?e.jsx("div",{className:n.emptyState,children:Y}):null]})]},`${r.getFullYear()}-${r.getMonth()}-${r.getDate()}`)})})})()]})}ue.__docgenInfo={description:`Calendar component - A flexible, reusable calendar for displaying events
|
|
14
|
-
|
|
15
|
-
@component
|
|
16
|
-
@description
|
|
17
|
-
A highly customizable calendar component that can display events in month or week view.
|
|
18
|
-
Supports custom event types, colors, icons, and localization. Perfect for scheduling,
|
|
19
|
-
project management, habit tracking, or any date-based data visualization.
|
|
20
|
-
|
|
21
|
-
@example
|
|
22
|
-
// Basic usage
|
|
23
|
-
<Calendar
|
|
24
|
-
events={myEvents}
|
|
25
|
-
onEventClick={handleEventClick}
|
|
26
|
-
viewMode="month"
|
|
27
|
-
/>
|
|
28
|
-
|
|
29
|
-
@example
|
|
30
|
-
// With custom configuration
|
|
31
|
-
<Calendar
|
|
32
|
-
events={projectEvents}
|
|
33
|
-
config={{
|
|
34
|
-
eventColors: { task: '#4A90E2', meeting: '#7ED321' },
|
|
35
|
-
maxEventsPerDay: 5,
|
|
36
|
-
mondayStart: true
|
|
37
|
-
}}
|
|
38
|
-
onEventClick={handleEventClick}
|
|
39
|
-
/>`,methods:[],displayName:"Calendar",props:{events:{required:!0,tsType:{name:"Array",elements:[{name:"CalendarEvent"}],raw:"CalendarEvent[]"},description:"Array of events to display"},onEventClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Callback when an event is clicked"},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}}},description:"Callback when a date is clicked"},onEventClickByView:{required:!1,tsType:{name:"signature",type:"object",raw:`{
|
|
40
|
-
month?: (event: CalendarEvent) => void;
|
|
41
|
-
week?: (event: CalendarEvent) => void;
|
|
42
|
-
day?: (event: CalendarEvent) => void;
|
|
43
|
-
}`,signature:{properties:[{key:"month",value:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}},required:!1}},{key:"week",value:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}},required:!1}},{key:"day",value:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}},required:!1}}]}},description:"View-specific event click handlers"},onDateClickByView:{required:!1,tsType:{name:"signature",type:"object",raw:`{
|
|
44
|
-
month?: (date: Date) => void;
|
|
45
|
-
week?: (date: Date) => void;
|
|
46
|
-
day?: (date: Date) => void;
|
|
47
|
-
}`,signature:{properties:[{key:"month",value:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}},required:!1}},{key:"week",value:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}},required:!1}},{key:"day",value:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}},required:!1}}]}},description:"View-specific date click handlers"},onTimeSlotClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: Date, hour: number, time: string) => void",signature:{arguments:[{type:{name:"Date"},name:"date"},{type:{name:"number"},name:"hour"},{type:{name:"string"},name:"time"}],return:{name:"void"}}},description:"Callback when a time slot is clicked in day view"},onEventDrop:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent, newDate: Date) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"},{type:{name:"Date"},name:"newDate"}],return:{name:"void"}}},description:"Callback when an event is dropped (drag-rescheduled) in day view"},onEventComplete:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Day view: callback when an event body is tapped to toggle complete"},onEventDelete:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Day view: callback when an event is swiped left to delete"},onEventEdit:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Day view: callback when an event's edit button is clicked"},viewMode:{required:!1,tsType:{name:"union",raw:"'month' | 'week' | 'day'",elements:[{name:"literal",value:"'month'"},{name:"literal",value:"'week'"},{name:"literal",value:"'day'"}]},description:"Initial view mode",defaultValue:{value:"'month'",computed:!1}},initialDate:{required:!1,tsType:{name:"Date"},description:"Initial date to display",defaultValue:{value:"new Date()",computed:!1}},config:{required:!1,tsType:{name:"CalendarConfig"},description:"Configuration options",defaultValue:{value:"{}",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"Custom CSS class",defaultValue:{value:"''",computed:!1}},style:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:"Custom styles",defaultValue:{value:"{}",computed:!1}},loading:{required:!1,tsType:{name:"boolean"},description:"Loading state",defaultValue:{value:"false",computed:!1}},emptyState:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:"Custom empty state component"},hideHeader:{required:!1,tsType:{name:"boolean"},description:"Hide the calendar header (navigation, title, view controls)",defaultValue:{value:"false",computed:!1}},compact:{required:!1,tsType:{name:"boolean"},description:"Compact mode - renders colored dots instead of event blocks in month view",defaultValue:{value:"false",computed:!1}},selectedDate:{required:!1,tsType:{name:"Date"},description:"Externally controlled selected date highlight (distinct from initialDate which controls navigation)"},selectedCategoryId:{required:!1,tsType:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},description:'Controlled category filter selection. `null` means "All". Omit for uncontrolled.'},onCategoryChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(categoryId: string | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"categoryId"}],return:{name:"void"}}},description:'Called when the user picks a pill in the category filter. `null` = "All".'},exportFormats:{required:!1,tsType:{name:"Array",elements:[{name:"union",raw:"'csv' | 'json' | 'toon'",elements:[{name:"literal",value:"'csv'"},{name:"literal",value:"'json'"},{name:"literal",value:"'toon'"}]}],raw:"ExportFormat[]"},description:'Offer an "Export" dropdown in the header with the given formats. Exports the currently\nfiltered events (respects category filter). Omit or pass `[]` to hide the button.'}}};const po={title:"Organisms/Calendar",component:ue,parameters:{layout:"padded"},argTypes:{viewMode:{control:"radio",options:["month","week","day"]},compact:{control:"boolean"},config:{control:"object"},onEventClick:{action:"event-clicked"},onDateClick:{action:"date-clicked"},onTimeSlotClick:{action:"slot-clicked"}}},ce=["#4A90E2","#7ED321","#BD10E0","#F5B829","#FF6B6B","#4ECDC4","#7C6FBF"],me=["Morning standup","Sprint planning","Code review","1:1 with manager","Design critique","Client demo","Deep work","Lunch with Ava","Architecture review","Release sign-off","Interview (FE)","Write weekly summary","Bug triage","Pairing session","Retro","Security debrief"],Ae=["meeting","task","review","deadline"],V=(o,a=0)=>`${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`,Za=o=>{let a=o;return()=>{a|=0,a=a+1831565813|0;let s=Math.imul(a^a>>>15,1|a);return s=s+Math.imul(s^s>>>7,61|s)^s,((s^s>>>14)>>>0)/4294967296}},ge=(o=42)=>{const a=Za(o),s=new Date,d=[];for(let m=0;m<28;m++){const p=new Date(s);p.setDate(s.getDate()+Math.floor(a()*30)-15);const u=8+Math.floor(a()*10),y=a()>.5?0:30;d.push({id:`m-${m}`,title:me[m%me.length],date:p,time:a()>.35?V(u,y):void 0,type:Ae[Math.floor(a()*Ae.length)],status:a()>.75?"completed":"pending",color:ce[m%ce.length],textColor:"#ffffff"})}return d},Gt=()=>{const o=new Date,a=(s,d=0)=>{const m=new Date(o);return m.setHours(s,d,0,0),m};return[{id:"ad-1",title:"Offsite — Q2 planning",date:a(0),allDay:!0,color:"#7C6FBF",textColor:"#ffffff"},{id:"d-1",title:"Morning standup",date:a(9),time:"09:00",endTime:"09:30",status:"completed",color:"#4A90E2",textColor:"#ffffff"},{id:"d-2",title:"Deep work: refactor auth",date:a(10),time:"10:00",endTime:"12:00",color:"#F5B829",textColor:"#1a1a1a"},{id:"d-3",title:"Lunch with Ava",date:a(12,30),time:"12:30",endTime:"13:30",color:"#4ECDC4",textColor:"#1a1a1a"},{id:"d-4",title:"1:1 with manager",date:a(14),time:"14:00",endTime:"14:30",color:"#BD10E0",textColor:"#ffffff"},{id:"d-5",title:"Design review",date:a(15),time:"15:00",endTime:"16:30",color:"#FF6B6B",textColor:"#ffffff"},{id:"d-6",title:"Write weekly summary",date:a(17,30),time:"17:30",endTime:"18:00",color:"#10b981",textColor:"#ffffff"}]},eo=o=>{const a={meeting:"👥",task:"✓",review:"👀",deadline:"⏰"};return e.jsx("span",{style:{fontSize:11},children:a[o.type??""]??"📅"})},Ce={args:{events:ge(),viewMode:"month",config:{mondayStart:!0,maxEventsPerDay:3,iconRenderer:eo}},render:o=>{const[a,s]=T.useState(o.events??[]);return e.jsx(ue,{...o,events:a,onEventClick:d=>{s(m=>m.map(p=>p.id===d.id?{...p,status:p.status==="completed"?"pending":"completed"}:p))},onDateClick:d=>{s(m=>[...m,{id:`new-${Date.now()}`,title:"New event",date:d,time:"15:00",type:"task",status:"pending",color:"#6366f1",textColor:"#ffffff"}])}})}},Ee={args:{events:[],viewMode:"week",config:{mondayStart:!0,startHour:7,endHour:22,hourHeight:56,halfHourSlots:!0}},render:o=>{const a=new Date,s=(a.getDay()+6)%7,d=new Date(a);d.setDate(a.getDate()-s),d.setHours(0,0,0,0);const m=[];for(let y=0;y<7;y++){const b=new Date(d);b.setDate(d.getDate()+y);const k=y*2%3+1;for(let x=0;x<k;x++){const j=9+x*3+y%2;m.push({id:`w-${y}-${x}`,title:me[(y*3+x)%me.length],date:new Date(b),time:V(j,x%2===0?0:30),endTime:V(j+1,x%2===0?0:30),color:ce[(y+x)%ce.length],textColor:"#ffffff"})}}const[p,u]=T.useState(m);return e.jsx(ue,{...o,events:p,onTimeSlotClick:(y,b,k)=>{const x=Math.min(23,y.getHours()+1);u(j=>[...j,{id:`new-${Date.now()}`,title:`New @ ${k}`,date:y,time:k,endTime:V(x,y.getMinutes()),color:"#6366f1",textColor:"#ffffff"}])},onEventComplete:y=>u(b=>b.map(k=>k.id===y.id?{...k,status:k.status==="completed"?"pending":"completed"}:k)),onEventDelete:y=>u(b=>b.filter(k=>k.id!==y.id)),onEventDrop:(y,b)=>{u(k=>k.map(x=>{if(x.id!==y.id)return x;const j=new Date(x.date),H=b.getTime()-j.getTime(),W=(()=>{if(!x.endTime||!x.time)return x.endTime;const[I,ae]=x.endTime.split(":").map(Number),Y=new Date(j);Y.setHours(I,ae,0,0);const oe=new Date(Y.getTime()+H);return V(oe.getHours(),oe.getMinutes())})();return{...x,date:b,time:V(b.getHours(),b.getMinutes()),endTime:W}}))}})}},Te={args:{events:[],viewMode:"day",config:{startHour:6,endHour:24,hourHeight:72,halfHourSlots:!0,mondayStart:!0}},render:o=>{const[a,s]=T.useState(Gt());return e.jsx(ue,{...o,events:a,onTimeSlotClick:(d,m,p)=>{const u=Math.min(23,d.getHours()+1);s(y=>[...y,{id:`new-${Date.now()}`,title:`New @ ${p}`,date:d,time:p,endTime:V(u,d.getMinutes()),color:"#6366f1",textColor:"#ffffff"}])},onEventComplete:d=>s(m=>m.map(p=>p.id===d.id?{...p,status:p.status==="completed"?"pending":"completed"}:p)),onEventDelete:d=>s(m=>m.filter(p=>p.id!==d.id)),onEventEdit:d=>{const m=window.prompt("Rename event",d.title);m&&s(p=>p.map(u=>u.id===d.id?{...u,title:m}:u))},onEventDrop:(d,m)=>{s(p=>p.map(u=>{if(u.id!==d.id)return u;const y=new Date(u.date),b=m.getTime()-y.getTime(),k=(()=>{if(!u.endTime||!u.time)return u.endTime;const[x,j]=u.endTime.split(":").map(Number),H=new Date(y);H.setHours(x,j,0,0);const W=new Date(H.getTime()+b);return V(W.getHours(),W.getMinutes())})();return{...u,date:m,time:V(m.getHours(),m.getMinutes()),endTime:k}}))}})}},je={args:{events:ge(1).map((a,s)=>({...a,category:s%3===0?"work":s%3===1?"life":"side"})),viewMode:"month",compact:!0,config:{mondayStart:!0,maxEventsPerDay:4,categories:[{id:"life",label:"Life",color:"#F5B829"},{id:"work",label:"Work",color:"#7C6FBF"},{id:"side",label:"Side",color:"#4ECDC4"}]},style:{maxWidth:420}}},Ne={args:{events:Gt(),viewMode:"day",compact:!0,config:{startHour:7,endHour:22,hourHeight:56,halfHourSlots:!0},style:{maxWidth:520}}},Me={args:{events:ge(3),viewMode:"month",config:{mondayStart:!0,showWeekNumbers:!0,maxEventsPerDay:3}}},He={args:{events:(()=>{const o=new Date;return Array.from({length:9},(a,s)=>({id:`over-${s}`,title:me[s%me.length],date:new Date(o),time:V(8+s),type:Ae[s%Ae.length],color:ce[s%ce.length],textColor:"#ffffff"}))})(),viewMode:"month",config:{mondayStart:!0,maxEventsPerDay:3}}},$e={args:{events:[],loading:!0}},Le={args:{events:[],viewMode:"month",config:{mondayStart:!0},emptyState:e.jsx("span",{style:{color:"var(--color-text-tertiary)",fontSize:11},children:"No events"})}},Ie={args:{events:ge(5),viewMode:"month",exportFormats:["csv","json","toon"],config:{mondayStart:!0,maxEventsPerDay:3}}},Pe={args:{events:ge(11).map((a,s)=>({...a,category:s%3===0?"work":s%3===1?"life":"side"})),viewMode:"month",config:{mondayStart:!0,maxEventsPerDay:3,categories:[{id:"life",label:"Life",color:"#F5B829"},{id:"work",label:"Work",color:"#7C6FBF"},{id:"side",label:"Side projects",color:"#4ECDC4"}]}}},Be={args:{events:[]},render:()=>{const[o,a]=T.useState(new Date),s=T.useMemo(()=>ge(9),[]);return e.jsxs("div",{style:{display:"grid",gap:"var(--spacing-md)"},children:[e.jsxs("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-text-secondary)"},children:["Selected: ",e.jsx("strong",{children:o.toLocaleDateString()})]}),e.jsx(ue,{events:s,viewMode:"month",selectedDate:o,onDateClick:a,config:{mondayStart:!0,maxEventsPerDay:3}})]})}};var dt,ct,mt;Ce.parameters={...Ce.parameters,docs:{...(dt=Ce.parameters)==null?void 0:dt.docs,source:{originalSource:`{
|
|
48
|
-
args: {
|
|
49
|
-
events: buildMonthEvents(),
|
|
50
|
-
viewMode: 'month',
|
|
51
|
-
config: {
|
|
52
|
-
mondayStart: true,
|
|
53
|
-
maxEventsPerDay: 3,
|
|
54
|
-
iconRenderer: iconForType
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
render: args => {
|
|
58
|
-
const [events, setEvents] = useState<CalendarEvent[]>(args.events ?? []);
|
|
59
|
-
return <Calendar {...args} events={events} onEventClick={e => {
|
|
60
|
-
setEvents(prev => prev.map(ev => ev.id === e.id ? {
|
|
61
|
-
...ev,
|
|
62
|
-
status: ev.status === 'completed' ? 'pending' : 'completed'
|
|
63
|
-
} : ev));
|
|
64
|
-
}} onDateClick={date => {
|
|
65
|
-
setEvents(prev => [...prev, {
|
|
66
|
-
id: \`new-\${Date.now()}\`,
|
|
67
|
-
title: 'New event',
|
|
68
|
-
date,
|
|
69
|
-
time: '15:00',
|
|
70
|
-
type: 'task',
|
|
71
|
-
status: 'pending',
|
|
72
|
-
color: '#6366f1',
|
|
73
|
-
textColor: '#ffffff'
|
|
74
|
-
}]);
|
|
75
|
-
}} />;
|
|
76
|
-
}
|
|
77
|
-
}`,...(mt=(ct=Ce.parameters)==null?void 0:ct.docs)==null?void 0:mt.source}}};var ut,gt,pt;Ee.parameters={...Ee.parameters,docs:{...(ut=Ee.parameters)==null?void 0:ut.docs,source:{originalSource:`{
|
|
78
|
-
args: {
|
|
79
|
-
events: [],
|
|
80
|
-
viewMode: 'week',
|
|
81
|
-
config: {
|
|
82
|
-
mondayStart: true,
|
|
83
|
-
startHour: 7,
|
|
84
|
-
endHour: 22,
|
|
85
|
-
hourHeight: 56,
|
|
86
|
-
halfHourSlots: true
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
render: args => {
|
|
90
|
-
// Build 7 days of timed events around "today" so drag has neighbours to land on
|
|
91
|
-
const today = new Date();
|
|
92
|
-
const mondayOffset = (today.getDay() + 6) % 7;
|
|
93
|
-
const weekStart = new Date(today);
|
|
94
|
-
weekStart.setDate(today.getDate() - mondayOffset);
|
|
95
|
-
weekStart.setHours(0, 0, 0, 0);
|
|
96
|
-
const initial: CalendarEvent[] = [];
|
|
97
|
-
for (let i = 0; i < 7; i++) {
|
|
98
|
-
const d = new Date(weekStart);
|
|
99
|
-
d.setDate(weekStart.getDate() + i);
|
|
100
|
-
const count = i * 2 % 3 + 1;
|
|
101
|
-
for (let j = 0; j < count; j++) {
|
|
102
|
-
const startH = 9 + j * 3 + i % 2;
|
|
103
|
-
initial.push({
|
|
104
|
-
id: \`w-\${i}-\${j}\`,
|
|
105
|
-
title: TITLES[(i * 3 + j) % TITLES.length],
|
|
106
|
-
date: new Date(d),
|
|
107
|
-
time: hhmm(startH, j % 2 === 0 ? 0 : 30),
|
|
108
|
-
endTime: hhmm(startH + 1, j % 2 === 0 ? 0 : 30),
|
|
109
|
-
color: PALETTE[(i + j) % PALETTE.length],
|
|
110
|
-
textColor: '#ffffff'
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
const [events, setEvents] = useState<CalendarEvent[]>(initial);
|
|
115
|
-
return <Calendar {...args} events={events} onTimeSlotClick={(date, _h, time) => {
|
|
116
|
-
const endH = Math.min(23, date.getHours() + 1);
|
|
117
|
-
setEvents(prev => [...prev, {
|
|
118
|
-
id: \`new-\${Date.now()}\`,
|
|
119
|
-
title: \`New @ \${time}\`,
|
|
120
|
-
date,
|
|
121
|
-
time,
|
|
122
|
-
endTime: hhmm(endH, date.getMinutes()),
|
|
123
|
-
color: '#6366f1',
|
|
124
|
-
textColor: '#ffffff'
|
|
125
|
-
}]);
|
|
126
|
-
}} onEventComplete={e => setEvents(prev => prev.map(ev => ev.id === e.id ? {
|
|
127
|
-
...ev,
|
|
128
|
-
status: ev.status === 'completed' ? 'pending' : 'completed'
|
|
129
|
-
} : ev))} onEventDelete={e => setEvents(prev => prev.filter(ev => ev.id !== e.id))} onEventDrop={(e, newDate) => {
|
|
130
|
-
setEvents(prev => prev.map(ev => {
|
|
131
|
-
if (ev.id !== e.id) return ev;
|
|
132
|
-
const oldStart = new Date(ev.date);
|
|
133
|
-
const deltaMs = newDate.getTime() - oldStart.getTime();
|
|
134
|
-
const nextEndTime = (() => {
|
|
135
|
-
if (!ev.endTime || !ev.time) return ev.endTime;
|
|
136
|
-
const [oh, om] = ev.endTime.split(':').map(Number);
|
|
137
|
-
const endOld = new Date(oldStart);
|
|
138
|
-
endOld.setHours(oh, om, 0, 0);
|
|
139
|
-
const endNew = new Date(endOld.getTime() + deltaMs);
|
|
140
|
-
return hhmm(endNew.getHours(), endNew.getMinutes());
|
|
141
|
-
})();
|
|
142
|
-
return {
|
|
143
|
-
...ev,
|
|
144
|
-
date: newDate,
|
|
145
|
-
time: hhmm(newDate.getHours(), newDate.getMinutes()),
|
|
146
|
-
endTime: nextEndTime
|
|
147
|
-
};
|
|
148
|
-
}));
|
|
149
|
-
}} />;
|
|
150
|
-
}
|
|
151
|
-
}`,...(pt=(gt=Ee.parameters)==null?void 0:gt.docs)==null?void 0:pt.source}}};var vt,ft,ht;Te.parameters={...Te.parameters,docs:{...(vt=Te.parameters)==null?void 0:vt.docs,source:{originalSource:`{
|
|
152
|
-
args: {
|
|
153
|
-
events: [],
|
|
154
|
-
viewMode: 'day',
|
|
155
|
-
config: {
|
|
156
|
-
startHour: 6,
|
|
157
|
-
endHour: 24,
|
|
158
|
-
hourHeight: 72,
|
|
159
|
-
halfHourSlots: true,
|
|
160
|
-
mondayStart: true
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
render: args => {
|
|
164
|
-
const [events, setEvents] = useState<CalendarEvent[]>(buildDayEvents());
|
|
165
|
-
return <Calendar {...args} events={events} onTimeSlotClick={(date, _h, time) => {
|
|
166
|
-
const endH = Math.min(23, date.getHours() + 1);
|
|
167
|
-
setEvents(prev => [...prev, {
|
|
168
|
-
id: \`new-\${Date.now()}\`,
|
|
169
|
-
title: \`New @ \${time}\`,
|
|
170
|
-
date,
|
|
171
|
-
time,
|
|
172
|
-
endTime: hhmm(endH, date.getMinutes()),
|
|
173
|
-
color: '#6366f1',
|
|
174
|
-
textColor: '#ffffff'
|
|
175
|
-
}]);
|
|
176
|
-
}} onEventComplete={e => setEvents(prev => prev.map(ev => ev.id === e.id ? {
|
|
177
|
-
...ev,
|
|
178
|
-
status: ev.status === 'completed' ? 'pending' : 'completed'
|
|
179
|
-
} : ev))} onEventDelete={e => setEvents(prev => prev.filter(ev => ev.id !== e.id))} onEventEdit={e => {
|
|
180
|
-
const next = window.prompt('Rename event', e.title);
|
|
181
|
-
if (!next) return;
|
|
182
|
-
setEvents(prev => prev.map(ev => ev.id === e.id ? {
|
|
183
|
-
...ev,
|
|
184
|
-
title: next
|
|
185
|
-
} : ev));
|
|
186
|
-
}} onEventDrop={(e, newDate) => {
|
|
187
|
-
setEvents(prev => prev.map(ev => {
|
|
188
|
-
if (ev.id !== e.id) return ev;
|
|
189
|
-
const oldStart = new Date(ev.date);
|
|
190
|
-
const deltaMs = newDate.getTime() - oldStart.getTime();
|
|
191
|
-
const nextEndTime = (() => {
|
|
192
|
-
if (!ev.endTime || !ev.time) return ev.endTime;
|
|
193
|
-
const [oh, om] = ev.endTime.split(':').map(Number);
|
|
194
|
-
const endOld = new Date(oldStart);
|
|
195
|
-
endOld.setHours(oh, om, 0, 0);
|
|
196
|
-
const endNew = new Date(endOld.getTime() + deltaMs);
|
|
197
|
-
return hhmm(endNew.getHours(), endNew.getMinutes());
|
|
198
|
-
})();
|
|
199
|
-
return {
|
|
200
|
-
...ev,
|
|
201
|
-
date: newDate,
|
|
202
|
-
time: hhmm(newDate.getHours(), newDate.getMinutes()),
|
|
203
|
-
endTime: nextEndTime
|
|
204
|
-
};
|
|
205
|
-
}));
|
|
206
|
-
}} />;
|
|
207
|
-
}
|
|
208
|
-
}`,...(ht=(ft=Te.parameters)==null?void 0:ft.docs)==null?void 0:ht.source}}};var yt,wt,Dt;je.parameters={...je.parameters,docs:{...(yt=je.parameters)==null?void 0:yt.docs,source:{originalSource:`{
|
|
209
|
-
args: {
|
|
210
|
-
events: (() => {
|
|
211
|
-
const base = buildMonthEvents(1);
|
|
212
|
-
return base.map((e, i) => ({
|
|
213
|
-
...e,
|
|
214
|
-
category: i % 3 === 0 ? 'work' : i % 3 === 1 ? 'life' : 'side'
|
|
215
|
-
}));
|
|
216
|
-
})(),
|
|
217
|
-
viewMode: 'month',
|
|
218
|
-
compact: true,
|
|
219
|
-
config: {
|
|
220
|
-
mondayStart: true,
|
|
221
|
-
maxEventsPerDay: 4,
|
|
222
|
-
categories: [{
|
|
223
|
-
id: 'life',
|
|
224
|
-
label: 'Life',
|
|
225
|
-
color: '#F5B829'
|
|
226
|
-
}, {
|
|
227
|
-
id: 'work',
|
|
228
|
-
label: 'Work',
|
|
229
|
-
color: '#7C6FBF'
|
|
230
|
-
}, {
|
|
231
|
-
id: 'side',
|
|
232
|
-
label: 'Side',
|
|
233
|
-
color: '#4ECDC4'
|
|
234
|
-
}]
|
|
235
|
-
},
|
|
236
|
-
style: {
|
|
237
|
-
maxWidth: 420
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}`,...(Dt=(wt=je.parameters)==null?void 0:wt.docs)==null?void 0:Dt.source}}};var _t,bt,xt;Ne.parameters={...Ne.parameters,docs:{...(_t=Ne.parameters)==null?void 0:_t.docs,source:{originalSource:`{
|
|
241
|
-
args: {
|
|
242
|
-
events: buildDayEvents(),
|
|
243
|
-
viewMode: 'day',
|
|
244
|
-
compact: true,
|
|
245
|
-
config: {
|
|
246
|
-
startHour: 7,
|
|
247
|
-
endHour: 22,
|
|
248
|
-
hourHeight: 56,
|
|
249
|
-
halfHourSlots: true
|
|
250
|
-
},
|
|
251
|
-
style: {
|
|
252
|
-
maxWidth: 520
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}`,...(xt=(bt=Ne.parameters)==null?void 0:bt.docs)==null?void 0:xt.source}}};var St,kt,Ct;Me.parameters={...Me.parameters,docs:{...(St=Me.parameters)==null?void 0:St.docs,source:{originalSource:`{
|
|
256
|
-
args: {
|
|
257
|
-
events: buildMonthEvents(3),
|
|
258
|
-
viewMode: 'month',
|
|
259
|
-
config: {
|
|
260
|
-
mondayStart: true,
|
|
261
|
-
showWeekNumbers: true,
|
|
262
|
-
maxEventsPerDay: 3
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}`,...(Ct=(kt=Me.parameters)==null?void 0:kt.docs)==null?void 0:Ct.source}}};var Et,Tt,jt;He.parameters={...He.parameters,docs:{...(Et=He.parameters)==null?void 0:Et.docs,source:{originalSource:`{
|
|
266
|
-
args: {
|
|
267
|
-
events: (() => {
|
|
268
|
-
const today = new Date();
|
|
269
|
-
return Array.from({
|
|
270
|
-
length: 9
|
|
271
|
-
}, (_, i) => ({
|
|
272
|
-
id: \`over-\${i}\`,
|
|
273
|
-
title: TITLES[i % TITLES.length],
|
|
274
|
-
date: new Date(today),
|
|
275
|
-
time: hhmm(8 + i),
|
|
276
|
-
type: TYPES[i % TYPES.length],
|
|
277
|
-
color: PALETTE[i % PALETTE.length],
|
|
278
|
-
textColor: '#ffffff'
|
|
279
|
-
}));
|
|
280
|
-
})(),
|
|
281
|
-
viewMode: 'month',
|
|
282
|
-
config: {
|
|
283
|
-
mondayStart: true,
|
|
284
|
-
maxEventsPerDay: 3
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}`,...(jt=(Tt=He.parameters)==null?void 0:Tt.docs)==null?void 0:jt.source}}};var Nt,Mt,Ht;$e.parameters={...$e.parameters,docs:{...(Nt=$e.parameters)==null?void 0:Nt.docs,source:{originalSource:`{
|
|
288
|
-
args: {
|
|
289
|
-
events: [],
|
|
290
|
-
loading: true
|
|
291
|
-
}
|
|
292
|
-
}`,...(Ht=(Mt=$e.parameters)==null?void 0:Mt.docs)==null?void 0:Ht.source}}};var $t,Lt,It;Le.parameters={...Le.parameters,docs:{...($t=Le.parameters)==null?void 0:$t.docs,source:{originalSource:`{
|
|
293
|
-
args: {
|
|
294
|
-
events: [],
|
|
295
|
-
viewMode: 'month',
|
|
296
|
-
config: {
|
|
297
|
-
mondayStart: true
|
|
298
|
-
},
|
|
299
|
-
emptyState: <span style={{
|
|
300
|
-
color: 'var(--color-text-tertiary)',
|
|
301
|
-
fontSize: 11
|
|
302
|
-
}}>
|
|
303
|
-
No events
|
|
304
|
-
</span>
|
|
305
|
-
}
|
|
306
|
-
}`,...(It=(Lt=Le.parameters)==null?void 0:Lt.docs)==null?void 0:It.source}}};var Pt,Bt,Ft;Ie.parameters={...Ie.parameters,docs:{...(Pt=Ie.parameters)==null?void 0:Pt.docs,source:{originalSource:`{
|
|
307
|
-
args: {
|
|
308
|
-
events: buildMonthEvents(5),
|
|
309
|
-
viewMode: 'month',
|
|
310
|
-
exportFormats: ['csv', 'json', 'toon'],
|
|
311
|
-
config: {
|
|
312
|
-
mondayStart: true,
|
|
313
|
-
maxEventsPerDay: 3
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}`,...(Ft=(Bt=Ie.parameters)==null?void 0:Bt.docs)==null?void 0:Ft.source}}};var Wt,At,Rt;Pe.parameters={...Pe.parameters,docs:{...(Wt=Pe.parameters)==null?void 0:Wt.docs,source:{originalSource:`{
|
|
317
|
-
args: {
|
|
318
|
-
events: (() => {
|
|
319
|
-
const base = buildMonthEvents(11);
|
|
320
|
-
return base.map((e, i) => ({
|
|
321
|
-
...e,
|
|
322
|
-
category: i % 3 === 0 ? 'work' : i % 3 === 1 ? 'life' : 'side'
|
|
323
|
-
}));
|
|
324
|
-
})(),
|
|
325
|
-
viewMode: 'month',
|
|
326
|
-
config: {
|
|
327
|
-
mondayStart: true,
|
|
328
|
-
maxEventsPerDay: 3,
|
|
329
|
-
categories: [{
|
|
330
|
-
id: 'life',
|
|
331
|
-
label: 'Life',
|
|
332
|
-
color: '#F5B829'
|
|
333
|
-
}, {
|
|
334
|
-
id: 'work',
|
|
335
|
-
label: 'Work',
|
|
336
|
-
color: '#7C6FBF'
|
|
337
|
-
}, {
|
|
338
|
-
id: 'side',
|
|
339
|
-
label: 'Side projects',
|
|
340
|
-
color: '#4ECDC4'
|
|
341
|
-
}]
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}`,...(Rt=(At=Pe.parameters)==null?void 0:At.docs)==null?void 0:Rt.source}}};var Ot,qt,Vt;Be.parameters={...Be.parameters,docs:{...(Ot=Be.parameters)==null?void 0:Ot.docs,source:{originalSource:`{
|
|
345
|
-
args: {
|
|
346
|
-
events: []
|
|
347
|
-
},
|
|
348
|
-
render: () => {
|
|
349
|
-
const [selected, setSelected] = useState(new Date());
|
|
350
|
-
const events = useMemo(() => buildMonthEvents(9), []);
|
|
351
|
-
return <div style={{
|
|
352
|
-
display: 'grid',
|
|
353
|
-
gap: 'var(--spacing-md)'
|
|
354
|
-
}}>
|
|
355
|
-
<div style={{
|
|
356
|
-
fontSize: 'var(--font-size-sm)',
|
|
357
|
-
color: 'var(--color-text-secondary)'
|
|
358
|
-
}}>
|
|
359
|
-
Selected: <strong>{selected.toLocaleDateString()}</strong>
|
|
360
|
-
</div>
|
|
361
|
-
<Calendar events={events} viewMode="month" selectedDate={selected} onDateClick={setSelected} config={{
|
|
362
|
-
mondayStart: true,
|
|
363
|
-
maxEventsPerDay: 3
|
|
364
|
-
}} />
|
|
365
|
-
</div>;
|
|
366
|
-
}
|
|
367
|
-
}`,...(Vt=(qt=Be.parameters)==null?void 0:qt.docs)==null?void 0:Vt.source}}};const vo=["Default","WeekView","DayView","CompactMonth","CompactDay","WithWeekNumbers","OverflowDay","Loading","Empty","WithExport","WithCategoryFilter","ControlledSelection"];export{Ne as CompactDay,je as CompactMonth,Be as ControlledSelection,Te as DayView,Ce as Default,Le as Empty,$e as Loading,He as OverflowDay,Ee as WeekView,Pe as WithCategoryFilter,Ie as WithExport,Me as WithWeekNumbers,vo as __namedExportsOrder,po as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._container_1513y_1{display:inline-flex;flex-direction:column;gap:var(--spacing-sm);font-family:var(--font-family-primary)}._header_1513y_8{display:flex;align-items:center;gap:var(--spacing-sm)}._icon_1513y_14{font-size:var(--font-size-xl);line-height:1;display:flex;align-items:center;justify-content:center}._label_1513y_22{font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-text-secondary);letter-spacing:var(--letter-spacing-wide);text-transform:uppercase}._stepper_1513y_31{display:flex;align-items:center;gap:var(--spacing-xs);background:var(--color-background);border-radius:var(--radius-lg);padding:var(--spacing-xs);border:1px solid var(--color-border);transition:all var(--transition-base);position:relative;overflow:hidden}._stepper_1513y_31:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._stepper_1513y_31:hover:not(._disabled_1513y_49 ._stepper_1513y_31){border-color:var(--color-primary-light);box-shadow:var(--shadow-sm)}._button_1513y_55{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:var(--color-background-secondary);color:var(--color-text);border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast);position:relative;overflow:hidden}._button_1513y_55:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:var(--color-primary-light);transform:translate(-50%,-50%);transition:width var(--transition-base),height var(--transition-base)}@media (hover: hover){._button_1513y_55:hover:not(:disabled){background:var(--color-primary);color:var(--color-background)}._button_1513y_55:hover:not(:disabled):before{width:100%;height:100%}}._button_1513y_55:active:not(:disabled){transform:scale(.95)}._button_1513y_55:disabled{opacity:.3;cursor:not-allowed}._buttonIcon_1513y_105{width:16px;height:16px;position:relative;z-index:1;font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);line-height:1}._valueContainer_1513y_116{flex:1;min-width:60px;position:relative;height:36px;display:flex;align-items:center;justify-content:center}._valueWrapper_1513y_126{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}._value_1513y_116{width:100%;text-align:center;font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--color-text);background:transparent;border:none;outline:none;padding:0 var(--spacing-xs)}._value_1513y_116:focus{color:var(--color-primary)}._limits_1513y_152{display:flex;justify-content:space-between;padding:0 var(--spacing-xs);opacity:.6}._limit_1513y_152{font-size:var(--font-size-xs);color:var(--color-text-secondary)}._small_1513y_165 ._stepper_1513y_31{padding:2px}._small_1513y_165 ._button_1513y_55{width:28px;height:28px}._small_1513y_165 ._valueContainer_1513y_116{min-width:48px;height:28px}._small_1513y_165 ._value_1513y_116{font-size:var(--font-size-base)}._small_1513y_165 ._buttonIcon_1513y_105{width:12px;height:12px;font-size:var(--font-size-lg)}._large_1513y_189 ._stepper_1513y_31{padding:var(--spacing-sm)}._large_1513y_189 ._button_1513y_55{width:44px;height:44px}._large_1513y_189 ._valueContainer_1513y_116{min-width:80px;height:44px}._large_1513y_189 ._value_1513y_116{font-size:var(--font-size-xl)}._large_1513y_189 ._buttonIcon_1513y_105{width:20px;height:20px;font-size:var(--font-size-2xl)}._outlined_1513y_214 ._stepper_1513y_31{background:transparent;border:2px solid var(--color-border)}._outlined_1513y_214 ._button_1513y_55{background:transparent}._outlined_1513y_214 ._button_1513y_55:hover:not(:disabled){background:var(--color-primary-light)}._filled_1513y_227 ._stepper_1513y_31{background:var(--color-primary);border-color:var(--color-primary)}._filled_1513y_227 ._button_1513y_55{background:#fff3;color:#fff}._filled_1513y_227 ._value_1513y_116{color:#fff}._filled_1513y_227 ._button_1513y_55:hover:not(:disabled){background:#ffffff4d}._disabled_1513y_49{opacity:.5;pointer-events:none}._disabled_1513y_49 ._stepper_1513y_31,[data-theme=dark] ._stepper_1513y_31{background:var(--color-background-secondary);border-color:var(--color-border)}[data-theme=dark] ._button_1513y_55{background:var(--color-background-tertiary)}[data-theme=dark] ._button_1513y_55:hover:not(:disabled){background:var(--color-primary)}[data-theme=dark] ._outlined_1513y_214 ._stepper_1513y_31{background:transparent}[data-theme=dark] ._filled_1513y_227 ._stepper_1513y_31{background:var(--color-primary-light)}@keyframes _pulse_1513y_1{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}._minimal_1513y_292 ._stepper_1513y_31{background:transparent;border:none;padding:0;gap:var(--spacing-md)}._minimal_1513y_292 ._button_1513y_55{width:32px;height:32px;background:transparent;border:2px solid var(--color-border);border-radius:50%;transition:all .2s cubic-bezier(.4,0,.2,1)}._minimal_1513y_292 ._button_1513y_55:hover:not(:disabled){border-color:var(--color-primary);background:var(--color-primary);transform:scale(1.1)}._minimal_1513y_292 ._value_1513y_116{font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);min-width:60px;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-md);background:var(--color-background-secondary)}._minimal_1513y_292 ._buttonIcon_1513y_105{font-size:var(--font-size-lg)}._custom_1513y_328 ._stepper_1513y_31{background:transparent;border:none;padding:0}._custom_1513y_328 ._button_1513y_55{background:transparent;border:none}._custom_1513y_328 ._button_1513y_55:before{display:none}@media (hover: hover){._custom_1513y_328 ._button_1513y_55:hover:not(:disabled){background:transparent;color:var(--color-primary)}}._vertical_1513y_351{align-items:stretch}._vertical_1513y_351 ._header_1513y_8{justify-content:space-between;padding-bottom:var(--spacing-sm)}._vertical_1513y_351 ._stepper_1513y_31{flex-direction:row;justify-content:space-between;width:100%}._vertical_1513y_351 ._icon_1513y_14{font-size:var(--font-size-2xl)}._vertical_1513y_351 ._label_1513y_22{font-size:var(--font-size-base);text-transform:none;font-weight:var(--font-weight-semibold);color:var(--color-text)}@media (max-width: 768px){._valueContainer_1513y_116{min-width:50px}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-b5igbCec.js";var t,o=r;t=o.createRoot,o.hydrateRoot;export{t as c};
|