@stfrigerio/sito-template 0.1.55 → 0.1.57
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/molecules/Tabs/Tabs.stories.d.ts +1 -3
- package/dist/components/molecules/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/organisms/Calendar/Calendar.d.ts +7 -1
- package/dist/components/organisms/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/organisms/Calendar/Calendar.stories.d.ts +16 -16
- package/dist/components/organisms/Calendar/Calendar.stories.d.ts.map +1 -1
- package/dist/components/organisms/Calendar/DayEventCard.d.ts +14 -0
- package/dist/components/organisms/Calendar/DayEventCard.d.ts.map +1 -0
- package/dist/index.esm.js +256 -201
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +254 -199
- 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-Cb8HvABR.js → ASCIIText.stories-LbmvFzzv.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-Disxvghm.js → AllAtoms.stories-CLunFOjI.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-jVAgBFE2.js → AnimatedContent.stories-B8hBaVkK.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-Di-vE601.js → AnimatedList.stories-D8a9eYqH.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-CE90HCpY.js → Antigravity.stories-D_mJbWK0.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-DgSsXJly.js → ArrayInput.stories-Cshz2s-a.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-DrVAkdjt.js → Aurora.stories-BN4MataE.js} +1 -1
- package/storybook-static/assets/{Beams.stories-BSVIpqQ0.js → Beams.stories-CCtZOw8G.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-C3EgjAh2.js → BlobCursor.stories-CdB55R5G.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-DJVDRdFo.js → BlurText.stories-Bg2Ih2Je.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-B_9cPYMM.js → BooleansHeatmap.stories-CpNxqSED.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-B_wdQUgw.js → BorderGlow.stories-CUxbrsvW.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-DpLYYw_z.js → BubbleMenu.stories-DuVDLBsV.js} +1 -1
- package/storybook-static/assets/{Button-DK4vPDdE.js → Button-CQGdvhpN.js} +1 -1
- package/storybook-static/assets/Button.stories-D8Xx3I9p.js +88 -0
- package/storybook-static/assets/Calendar-tbpzwSIm.css +1 -0
- package/storybook-static/assets/Calendar.stories-Cx2JEddO.js +229 -0
- package/storybook-static/assets/{Card--7bShmQv.js → Card-DNp-cUnt.js} +1 -1
- package/storybook-static/assets/{Card.stories-C9cPoCVI.js → Card.stories-D1f1NTVU.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-1WFeombk.js → CardNav.stories-Cd4zEw8p.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-CPp1bcnx.js → Carousel.stories-BxbGwXE5.js} +1 -1
- package/storybook-static/assets/{Checkbox-BZ4OK19r.js → Checkbox-Dw8W2w74.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-pzFmZn7E.js → Checkbox.stories-BwsnN3CP.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-Nunq8QCK.js → ChromaGrid.stories-DBHYiDPV.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-C6B3QdGe.js → CircularGallery.stories-TJN6o_RG.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-x-CZkrWE.js → CircularText.stories-rNjRUNn2.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-BgEy72nd.js → ClickSpark.stories-BfqByoGe.js} +1 -1
- package/storybook-static/assets/{Color-AVL7NMMY-BH2T5gYv.js → Color-AVL7NMMY-CoWQkAiP.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-l5hP9mw3.js → ColorBends.stories-IEMOWAyf.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-f4Xo5-1D.js → CountUp.stories-DXPrKAQb.js} +1 -1
- package/storybook-static/assets/{Counter.stories-Cq0esRYp.js → Counter.stories-DMdecsw_.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-cmjX8jB1.js → Crosshair.stories-CYzDxRSn.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-Deum-zPK.js → Cubes.stories-Drq4ULo3.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-CaRb6vtE.js → CurvedLoop.stories-C9GMKnIw.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-DtKNrEKT.js → DarkVeil.stories-BtLNfEH8.js} +1 -1
- package/storybook-static/assets/{DateInput-Dhe5jlzS.js → DateInput-CW4PsZAQ.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-tMfHI-jT.js → DateInput.stories-d46zYiZA.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-DOejb79q.js → DecayCard.stories-CAU_wTc7.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-ZJFOqvcs.js → DecryptedText.stories-Dvba9C1V.js} +1 -1
- package/storybook-static/assets/{Dither.stories-BteQ8qaz.js → Dither.stories-B5KfMprl.js} +1 -1
- package/storybook-static/assets/{Dock.stories-CjgGmbrT.js → Dock.stories-oyQGRzlM.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-PQXLIZUC-CDqlUQhE.js → DocsRenderer-PQXLIZUC-C2AYT361.js} +4 -4
- package/storybook-static/assets/{EditFAB.stories-HiEYPWDM.js → EditFAB.stories-DvtpW34v.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-Dh40voJH.js → EvilEye.stories-C1820-DG.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-APJ9w9po.js → FadeContent.stories-B4z_JRy9.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-B1QU0me7.js → FaultyTerminal.stories-DmkguJql.js} +1 -1
- package/storybook-static/assets/{Fbo-C7_12zi1.js → Fbo-CTQm-4Bw.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-BoZu0Eil.js → FloatingLines.stories-CQvqKSpH.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-CIsIyO9J.js → FlowingMenu.stories-DmOspv0B.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-vH3qnmEk.js → FluidGlass.stories-CZSqxrNt.js} +1 -1
- package/storybook-static/assets/{Folder.stories-HkOOEOjb.js → Folder.stories-7vb52Lfi.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-By8q6YQt.js → FuzzyText.stories-BdXN4VK1.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-07G7jp_6.js → Galaxy.stories-BhT1GZh5.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-BC-trpJu.js → GhostCursor.stories-DkXqCjE9.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-B_MjE5aX.js → GlareHover.stories-CznX3yTV.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-rPXwGZOW.js → GlassSurface.stories-BnwwYK95.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-BN308waP.js → GlitchText.stories-CVcTBUVS.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-C5lqZx3I.js → GooeyNav.stories-C0abTHBc.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-D9l7Ayxs.js → GradientBlinds.stories-CpSguKtv.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-BiDAn88F.js → GradientText.stories-B4hMx13h.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-CSCcWH0M.js → Grainient.stories-5EakpvU2.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-heG3R9uG.js → GridMotion.stories-Bm3DD7cb.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-RDcrjCte.js → ImageSlideshow.stories-BasuECRV.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-iJ26He9j.js → Iridescence.stories-Cykk3hHZ.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-H_kwxAaY.js → LaserFlow.stories-CfiM4ZZ5.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-BY9P1wPN.js → LetterGlitch.stories-BXb7iSeX.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-Bb4DN5XV.js → LightPillar.stories-CwI-8_BF.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-Cc6Y1X_k.js → LightRays.stories-BIIfv6Ky.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-CpSHxlp7.js → Lightning.stories-B8GNkzSN.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-COm5OuGf.js → LineWaves.stories-CjxdD_yt.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-C88ONVOT.js → LiquidChrome.stories-G7bVFJM9.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-CPSMWSN9.js → LiquidEther.stories-C8n27zuA.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-C4MXlRnC.js → LoadingSpinner-Br8TYFlF.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-CCyN9n1T.js → LoadingSpinner.stories-Dj0bMFhR.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-NQSwG8Yn.js → MagicRings.stories-D50m_2UF.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-BAwXSJEW.js → Magnet.stories-BP9fjpzP.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-CJqMXg51.js → MagnetLines.stories-DvbytV0Y.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-DAl8CRm6.js → Masonry.stories-xXYQw2uD.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-BY7Ilvw5.js → MetaBalls.stories-DKD3gVUH.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-iuclFGy4.js → MetallicPaint.stories-Bz-uS-L_.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-T8Td91vu.js → MoodChart.stories-Bk0jtB4g.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-D_4LMwJ5.js → MotionConfigContext-D5hZdVGx.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-SRGoJhYx.js → Navbar.stories-Dos3kovt.js} +14 -19
- package/storybook-static/assets/{Noise.stories-B5_Jt1t3.js → Noise.stories-D6C6-k8-.js} +1 -1
- package/storybook-static/assets/{NumberStepper-BaK5ZScA.js → NumberStepper--0cJcLNZ.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-BZIrFbrQ.js → NumberStepper.stories-BvFwBEjt.js} +1 -1
- package/storybook-static/assets/{Orb.stories-Ci1HMLUW.js → Orb.stories-CS__2PJW.js} +1 -1
- package/storybook-static/assets/OrbitImages.stories-CcaelcY5.js +26 -0
- package/storybook-static/assets/{PieChart.stories-ByRTgKp3.js → PieChart.stories-XZqxh_GW.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-C83D_GSk.js → PixelBlast.stories-CyK8BxPq.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-B8DdUCQe.js → PixelCard.stories-D_Og1Eve.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-BOHNVU80.js → PixelSnow.stories-CoCZucVV.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-D8VH3ukb.js → PixelTransition.stories-DmVJ4jdu.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-CatIdRAD.js → Plasma.stories-DUqrW-qq.js} +1 -1
- package/storybook-static/assets/{Prism.stories-Bg6GLExD.js → Prism.stories-DWdVDcBG.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-BNdrAv89.js → PrismaticBurst.stories-BEVYTjXo.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-CyaTrCeK.js → ProfileCard.stories-CAoKQpAZ.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-C86yjHJm.js → QuantifiableHabitsChart.stories-CMexb5Ij.js} +1 -1
- package/storybook-static/assets/{Radar.stories-CvzRcw-C.js → Radar.stories-Dcjnm9Bu.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-BRX9ZoeY.js → Ribbons.stories-Cs3Eg2Gz.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-vnV8CCtp.js → RippleGrid.stories-QV9Doq9P.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-B8GsJWaC.js → RotatingText.stories-DkntoAXJ.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-DOlmhv7e.js → ScrollFloat.stories-BaX43Ike.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-Bm9KxbWm.js → ScrollReveal.stories-C2IWpLpI.js} +1 -1
- package/storybook-static/assets/ScrollVelocity.stories-LaYJ5WQN.js +9 -0
- package/storybook-static/assets/{SearchBar.stories-CfIOeCyX.js → SearchBar.stories-CGaj__zF.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown--EWJF18v.js → SearchableDropdown-4HgWY0Ck.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-B9KNxfZm.js → SearchableDropdown.stories-CfeFR5Rk.js} +1 -1
- package/storybook-static/assets/{SelectInput-CFM_N8VG.js → SelectInput-DvSeeIw5.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-D_5G5-0N.js → SelectInput.stories-DByYKCGI.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-DNg_BI9n.js → ShapeBlur.stories-ZQV0yHkn.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-D6mhsKbm.js → ShapeGrid.stories-G_tZAcp9.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-NtVkUqNB.js → ShinyText.stories-C6BrLI0x.js} +1 -1
- package/storybook-static/assets/{Silk.stories-BACMGa6I.js → Silk.stories-BpsR4txJ.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-S6pSldWo.js → SleepChart.stories-DcoBwiEm.js} +1 -1
- package/storybook-static/assets/{Slider-dqb2UNTZ.js → Slider-3iog5_du.js} +1 -1
- package/storybook-static/assets/{Slider.stories-4UkeTwoz.js → Slider.stories-C8eUZ7Ne.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-DH8d39VG.js → SoftAurora.stories--Rcyqxiu.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-Ci_Q1qDO.js → SoundDemo.stories-DvhKS2Fi.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-BMBbSrDn.js → SplashCursor.stories-FzRIUaX9.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-Cy3mgAFZ.js → SpotlightCard.stories-CifqsSUc.js} +1 -1
- package/storybook-static/assets/{Stack.stories-C_qFRAvS.js → Stack.stories-Dq82x0TG.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-BeqjTXCs.js → StaggeredMenu.stories-CsiTDJGG.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-BeLKjLZu.js → StarBorder.stories-Ba14_TPk.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-DN8EQLMh.js → SunburstChart.stories-fREzDXM9.js} +1 -1
- package/storybook-static/assets/{Table.stories-BJ6FcfdD.js → Table.stories-CXsQAQrR.js} +1 -1
- package/storybook-static/assets/Tabs-D5ZPN7MM.css +1 -0
- package/storybook-static/assets/Tabs.stories-HeiG8gYN.js +37 -0
- package/storybook-static/assets/{TargetCursor.stories-CfxWRalc.js → TargetCursor.stories-B16pWZaP.js} +1 -1
- package/storybook-static/assets/{TextArea-DGywTJLt.js → TextArea-DKx3k6hV.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-B-uYOZs4.js → TextArea.stories-Bpqlv7j5.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-61sj2bl9.js → TextCursor.stories-CY2eIn6Z.js} +1 -1
- package/storybook-static/assets/{TextInput-CiI38oLt.js → TextInput-CLyTHgK9.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-DtG6MQod.js → TextInput.stories-BP1LSkLG.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-C1h8GiS8.js → TextPressure.stories-sH-cgdL2.js} +1 -1
- package/storybook-static/assets/{TextType.stories-BfUDVoY_.js → TextType.stories-B7Oy3P9u.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-gBLrYosz.js → ThemeSwitcher.stories-Bj0YQKM5.js} +1 -1
- package/storybook-static/assets/{Threads.stories-sZxNqPXX.js → Threads.stories-e52ErKbM.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-CjvGCAgd.js → TimeInput.stories-Cd28zwwR.js} +1 -1
- package/storybook-static/assets/{Toggle-DwTHl9Fm.js → Toggle-BntWdyUe.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-DU0Scugu.js → Toggle.stories-DtqFmh3E.js} +1 -1
- package/storybook-static/assets/{ToggleButton-s2aFLlgS.js → ToggleButton-BQqJdlB_.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-DgSqo96g.js → ToggleButton.stories-DkN_4qpp.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-CuqOvqGj.js → TrueFocus.stories-wm4VXWCk.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-CWLeFmxb.js → VariableProximity.stories-BNSYs_rC.js} +1 -1
- package/storybook-static/assets/{Waves.stories-zeyoHm5S.js → Waves.stories-Ce2ZJFsV.js} +1 -1
- package/storybook-static/assets/{check-7O6ar4SG.js → check-Cty-Z1Ib.js} +1 -1
- package/storybook-static/assets/{chevron-down-BC5Z9HYA.js → chevron-down-OhqRl4eJ.js} +1 -1
- package/storybook-static/assets/{chevron-right-CDwij0IV.js → chevron-right-CZm4bArI.js} +1 -1
- package/storybook-static/assets/client-0pKYCVHx.js +1 -0
- package/storybook-static/assets/{createLucideIcon-yjHXhSOm.js → createLucideIcon-BNUG5osq.js} +1 -1
- package/storybook-static/assets/{folder-CATSGh42.js → folder-BjriMpXc.js} +1 -1
- package/storybook-static/assets/{iconBase-D_x0Veg_.js → iconBase-DmcmY1l-.js} +1 -1
- package/storybook-static/assets/{iframe-LZvJb0BS.js → iframe-B8pH-Lvr.js} +5 -5
- package/storybook-static/assets/index-BN99WpBo.js +1 -0
- package/storybook-static/assets/{index-vc18hLoj.js → index-DBfrIdYd.js} +1 -1
- package/storybook-static/assets/{index-D9mC-cEf.js → index-PY_vM88c.js} +1 -1
- package/storybook-static/assets/{index-DSYnL-zq.js → index-bi5z6E3I.js} +1 -1
- package/storybook-static/assets/{layout-grid-Dyvnjtf9.js → layout-grid-TssXYNzv.js} +1 -1
- package/storybook-static/assets/{proxy-94dt0K2Y.js → proxy-BA3VZtN5.js} +1 -1
- package/storybook-static/assets/{react-18-C-ERT8YQ.js → react-18-7dGub68c.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-D_o7ZgN9.js → react-three-fiber.esm-DI-wNJmP.js} +1 -1
- package/storybook-static/assets/{search-BVmOcKZi.js → search-2YqBkJlG.js} +1 -1
- package/storybook-static/assets/settings-DvzICcFU.js +6 -0
- package/storybook-static/assets/{sun-s1P_-p6e.js → sun-DgDhCM_S.js} +1 -1
- package/storybook-static/assets/trash-2-BwI5jvsn.js +6 -0
- package/storybook-static/assets/{use-animation-frame-04H3dRpD.js → use-animation-frame-CF42h0i5.js} +1 -1
- package/storybook-static/assets/{use-in-view--MCxH20O.js → use-in-view-Zn8evg3J.js} +1 -1
- package/storybook-static/assets/{use-motion-value-Cic9xvrL.js → use-motion-value--XhiA2Gt.js} +1 -1
- package/storybook-static/assets/{use-spring-D4LsSJyy.js → use-spring-CrWzlBMd.js} +1 -1
- package/storybook-static/assets/use-transform-vyDqMhf-.js +1 -0
- package/storybook-static/assets/{useSound-Dc8S51xy.js → useSound-Bk2W5gkV.js} +1 -1
- package/storybook-static/assets/{users-DmRtN79P.js → users-aNPxMiig.js} +1 -1
- package/storybook-static/assets/{x-C7Ulr4p2.js → x-BC8LCdn9.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/Button.stories-dpSafIdz.js +0 -93
- package/storybook-static/assets/Calendar-CreieAui.css +0 -1
- package/storybook-static/assets/Calendar.stories-lRbXwh4f.js +0 -470
- package/storybook-static/assets/OrbitImages.stories-Bzf1HUks.js +0 -26
- package/storybook-static/assets/ScrollVelocity.stories-De4s_pOX.js +0 -9
- package/storybook-static/assets/Tabs-CLXu7F99.css +0 -1
- package/storybook-static/assets/Tabs.stories-7-b1PtWp.js +0 -64
- package/storybook-static/assets/client-C--dgtnn.js +0 -1
- package/storybook-static/assets/use-transform-D1fwdMmS.js +0 -1
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ function _interopNamespaceDefault(e) {
|
|
|
26
26
|
|
|
27
27
|
var d3__namespace = /*#__PURE__*/_interopNamespaceDefault(d3);
|
|
28
28
|
|
|
29
|
-
var styles$
|
|
29
|
+
var styles$A = {"button":"Button-module_button__c6nkW","primary":"Button-module_primary__pMqAs","secondary":"Button-module_secondary__mBWx9","outline":"Button-module_outline__NGGGN","ghost":"Button-module_ghost__u2QBF","danger":"Button-module_danger__2ewhr","small":"Button-module_small__ZI9RX","medium":"Button-module_medium__Wnf9t","large":"Button-module_large__cQCpA","fullWidth":"Button-module_fullWidth__N8vYg","loading":"Button-module_loading__hcSI4","spinner":"Button-module_spinner__HtM96","spin":"Button-module_spin__jblrj","iconLeft":"Button-module_iconLeft__Fpz-y","iconRight":"Button-module_iconRight__kTfjS"};
|
|
30
30
|
|
|
31
31
|
const SOUND_PACKS = {
|
|
32
32
|
digital: {
|
|
@@ -591,11 +591,11 @@ function useComponentSound(config, options) {
|
|
|
591
591
|
const Button = ({ variant = 'primary', size = 'medium', fullWidth = false, loading = false, iconLeft, iconRight, children, className = '', disabled, motionProps, soundConfig, onClick, onMouseEnter, onFocus, ...rest }) => {
|
|
592
592
|
const { handlers } = useComponentSound(soundConfig);
|
|
593
593
|
const buttonClasses = [
|
|
594
|
-
styles$
|
|
595
|
-
styles$
|
|
596
|
-
styles$
|
|
597
|
-
fullWidth && styles$
|
|
598
|
-
loading && styles$
|
|
594
|
+
styles$A.button,
|
|
595
|
+
styles$A[variant],
|
|
596
|
+
styles$A[size],
|
|
597
|
+
fullWidth && styles$A.fullWidth,
|
|
598
|
+
loading && styles$A.loading,
|
|
599
599
|
className
|
|
600
600
|
].filter(Boolean).join(' ');
|
|
601
601
|
const handleClick = (e) => {
|
|
@@ -606,10 +606,10 @@ const Button = ({ variant = 'primary', size = 'medium', fullWidth = false, loadi
|
|
|
606
606
|
handlers.onMouseEnter?.();
|
|
607
607
|
onMouseEnter?.(e);
|
|
608
608
|
};
|
|
609
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: buttonClasses, disabled: disabled || loading, whileHover: { scale: disabled || loading ? 1 : 1.02 }, whileTap: { scale: disabled || loading ? 1 : 0.98 }, transition: { type: "spring", stiffness: 400, damping: 17 }, onClick: handleClick, onMouseEnter: handleMouseEnter, onFocus: onFocus, ...motionProps, ...rest, children: [loading && jsxRuntime.jsx("span", { className: styles$
|
|
609
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: buttonClasses, disabled: disabled || loading, whileHover: { scale: disabled || loading ? 1 : 1.02 }, whileTap: { scale: disabled || loading ? 1 : 0.98 }, transition: { type: "spring", stiffness: 400, damping: 17 }, onClick: handleClick, onMouseEnter: handleMouseEnter, onFocus: onFocus, ...motionProps, ...rest, children: [loading && jsxRuntime.jsx("span", { className: styles$A.spinner }), iconLeft && jsxRuntime.jsx("span", { className: styles$A.iconLeft, children: iconLeft }), children, iconRight && jsxRuntime.jsx("span", { className: styles$A.iconRight, children: iconRight })] }));
|
|
610
610
|
};
|
|
611
611
|
|
|
612
|
-
var styles$
|
|
612
|
+
var styles$z = {"card":"Card-module_card__r2DB2","hoverable":"Card-module_hoverable__X3OpS","elevated":"Card-module_elevated__hGV6-","outlined":"Card-module_outlined__ngRag","flat":"Card-module_flat__xy-xt","glass":"Card-module_glass__Sv-Vs","imageContainer":"Card-module_imageContainer__L4ma6","image":"Card-module_image__bQBt6","header":"Card-module_header__0dtj3","headerContent":"Card-module_headerContent__W7-jD","expandButton":"Card-module_expandButton__I7f49","expandIcon":"Card-module_expandIcon__Lu-OY","expandableContent":"Card-module_expandableContent__BFgO5","expandable":"Card-module_expandable__GMXzo","body":"Card-module_body__K7eL3","footer":"Card-module_footer__L5wO-","title":"Card-module_title__pW9g8","subtitle":"Card-module_subtitle__gejH4","clickable":"Card-module_clickable__Y6fm8","padding":"Card-module_padding__wtyDo","noPadding":"Card-module_noPadding__r5Qq0","loading":"Card-module_loading__S4Wng","loadingShimmer":"Card-module_loadingShimmer__Q1Osr","loadingPulse":"Card-module_loadingPulse__bXQmC"};
|
|
613
613
|
|
|
614
614
|
/**
|
|
615
615
|
* Card Component
|
|
@@ -674,28 +674,28 @@ const Card = ({ variant = 'elevated', hoverable = false, clickable = false, padd
|
|
|
674
674
|
onExpandChange?.(newExpanded);
|
|
675
675
|
};
|
|
676
676
|
const cardClasses = [
|
|
677
|
-
styles$
|
|
678
|
-
styles$
|
|
679
|
-
hoverable && styles$
|
|
680
|
-
clickable && styles$
|
|
681
|
-
!padding && styles$
|
|
682
|
-
expandable && styles$
|
|
677
|
+
styles$z.card,
|
|
678
|
+
styles$z[variant],
|
|
679
|
+
hoverable && styles$z.hoverable,
|
|
680
|
+
clickable && styles$z.clickable,
|
|
681
|
+
!padding && styles$z.noPadding,
|
|
682
|
+
expandable && styles$z.expandable,
|
|
683
683
|
className
|
|
684
684
|
].filter(Boolean).join(' ');
|
|
685
685
|
const renderHeader = () => {
|
|
686
686
|
if (header) {
|
|
687
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
687
|
+
return (jsxRuntime.jsxs("div", { className: styles$z.header, children: [jsxRuntime.jsx("div", { className: styles$z.headerContent, children: header }), expandable && (jsxRuntime.jsx("button", { className: styles$z.expandButton, onClick: handleToggleExpand, "aria-label": isExpanded ? 'Collapse card' : 'Expand card', children: jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: styles$z.expandIcon, style: { transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)' }, children: jsxRuntime.jsx("path", { d: "M6 9l6 6 6-6" }) }) }))] }));
|
|
688
688
|
}
|
|
689
689
|
if (title || subtitle) {
|
|
690
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
690
|
+
return (jsxRuntime.jsxs("div", { className: styles$z.header, children: [jsxRuntime.jsxs("div", { className: styles$z.headerContent, children: [title && jsxRuntime.jsx("h3", { className: styles$z.title, children: title }), subtitle && jsxRuntime.jsx("p", { className: styles$z.subtitle, children: subtitle })] }), expandable && (jsxRuntime.jsx("button", { className: styles$z.expandButton, onClick: handleToggleExpand, "aria-label": isExpanded ? 'Collapse card' : 'Expand card', children: jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: styles$z.expandIcon, style: { transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)' }, children: jsxRuntime.jsx("path", { d: "M6 9l6 6 6-6" }) }) }))] }));
|
|
691
691
|
}
|
|
692
692
|
return null;
|
|
693
693
|
};
|
|
694
|
-
const cardContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [image && (jsxRuntime.jsx("div", { className: styles$
|
|
694
|
+
const cardContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [image && (jsxRuntime.jsx("div", { className: styles$z.imageContainer, children: jsxRuntime.jsx("img", { src: image, alt: imageAlt, className: styles$z.image }) })), renderHeader(), jsxRuntime.jsx(framerMotion.AnimatePresence, { initial: false, children: (!expandable || isExpanded) && (jsxRuntime.jsxs(framerMotion.motion.div, { initial: expandable ? { height: 0, opacity: 0 } : undefined, animate: expandable ? { height: 'auto', opacity: 1 } : undefined, exit: expandable ? { height: 0, opacity: 0 } : undefined, transition: { duration: 0.3, ease: "easeInOut" }, className: styles$z.expandableContent, children: [children && (jsxRuntime.jsx("div", { className: padding ? styles$z.body : undefined, children: children })), footer && jsxRuntime.jsx("div", { className: styles$z.footer, children: footer })] }, "content")) })] }));
|
|
695
695
|
return (jsxRuntime.jsx(framerMotion.motion.div, { className: cardClasses, onClick: clickable ? onClick : undefined, whileHover: hoverable ? { y: -4 } : undefined, transition: { type: "spring", stiffness: 400, damping: 17 }, ...motionProps, ...rest, children: cardContent }));
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
-
var styles$
|
|
698
|
+
var styles$y = {"wrapper":"EmptyState-module_wrapper__h3Y2E","compact":"EmptyState-module_compact__HdYu1","default":"EmptyState-module_default__ACAbn","large":"EmptyState-module_large__H3ELo","icon":"EmptyState-module_icon__i7-3M","title":"EmptyState-module_title__xCyfH","message":"EmptyState-module_message__Bc5xK","action":"EmptyState-module_action__UpnvZ"};
|
|
699
699
|
|
|
700
700
|
/**
|
|
701
701
|
* EmptyState Component
|
|
@@ -732,11 +732,11 @@ var styles$x = {"wrapper":"EmptyState-module_wrapper__h3Y2E","compact":"EmptySta
|
|
|
732
732
|
* @returns {JSX.Element} The rendered EmptyState component
|
|
733
733
|
*/
|
|
734
734
|
const EmptyState = ({ icon, title, message, action, size = 'default', }) => {
|
|
735
|
-
const wrapperClass = [styles$
|
|
736
|
-
return (jsxRuntime.jsxs("div", { className: wrapperClass, children: [icon && jsxRuntime.jsx("div", { className: styles$
|
|
735
|
+
const wrapperClass = [styles$y.wrapper, styles$y[size]].filter(Boolean).join(' ');
|
|
736
|
+
return (jsxRuntime.jsxs("div", { className: wrapperClass, children: [icon && jsxRuntime.jsx("div", { className: styles$y.icon, children: icon }), title && jsxRuntime.jsx("h3", { className: styles$y.title, children: title }), jsxRuntime.jsx("p", { className: styles$y.message, children: message }), action && jsxRuntime.jsx("div", { className: styles$y.action, children: action })] }));
|
|
737
737
|
};
|
|
738
738
|
|
|
739
|
-
var styles$
|
|
739
|
+
var styles$x = {"backdrop":"Modal-module_backdrop__yOx-a","dialog":"Modal-module_dialog__yEXTq","dialogCompact":"Modal-module_dialogCompact__z1Wxp","dialogWide":"Modal-module_dialogWide__9PTXK","header":"Modal-module_header__NHHKd","title":"Modal-module_title__i3R0x","headerActions":"Modal-module_headerActions__g28UN","closeButton":"Modal-module_closeButton__siC-1","body":"Modal-module_body__U7jvM","bodyFlush":"Modal-module_bodyFlush__wtk3q"};
|
|
740
740
|
|
|
741
741
|
/**
|
|
742
742
|
* Modal Component
|
|
@@ -790,16 +790,16 @@ const Modal = ({ open, title, onClose, children, size = 'default', actions, padd
|
|
|
790
790
|
if (typeof document === 'undefined')
|
|
791
791
|
return null;
|
|
792
792
|
const dialogClass = [
|
|
793
|
-
styles$
|
|
794
|
-
size === 'compact' && styles$
|
|
795
|
-
size === 'wide' && styles$
|
|
793
|
+
styles$x.dialog,
|
|
794
|
+
size === 'compact' && styles$x.dialogCompact,
|
|
795
|
+
size === 'wide' && styles$x.dialogWide,
|
|
796
796
|
]
|
|
797
797
|
.filter(Boolean)
|
|
798
798
|
.join(' ');
|
|
799
|
-
return reactDom.createPortal(jsxRuntime.jsx(framerMotion.AnimatePresence, { children: open && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
799
|
+
return reactDom.createPortal(jsxRuntime.jsx(framerMotion.AnimatePresence, { children: open && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$x.backdrop, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.15 }, onClick: onClose, "aria-hidden": "true", children: jsxRuntime.jsxs(framerMotion.motion.div, { className: dialogClass, role: "dialog", "aria-modal": "true", "aria-label": title, initial: { opacity: 0, scale: 0.96, y: 8 }, animate: { opacity: 1, scale: 1, y: 0 }, exit: { opacity: 0, scale: 0.96, y: 8 }, transition: { duration: 0.15, ease: 'easeOut' }, onClick: (e) => e.stopPropagation(), children: [jsxRuntime.jsxs("div", { className: styles$x.header, children: [jsxRuntime.jsx("span", { className: styles$x.title, children: title }), actions && jsxRuntime.jsx("div", { className: styles$x.headerActions, children: actions }), jsxRuntime.jsx("button", { className: styles$x.closeButton, onClick: onClose, "aria-label": "Close modal", type: "button", children: jsxRuntime.jsx(lucideReact.X, { size: 16 }) })] }), jsxRuntime.jsx("div", { className: padding ? styles$x.body : styles$x.bodyFlush, children: children })] }) })) }), document.body);
|
|
800
800
|
};
|
|
801
801
|
|
|
802
|
-
var styles$
|
|
802
|
+
var styles$w = {"checkboxLabel":"Checkbox-module_checkboxLabel__4tBVg","checkbox":"Checkbox-module_checkbox__BbJul","checkboxText":"Checkbox-module_checkboxText__oJsc9"};
|
|
803
803
|
|
|
804
804
|
/**
|
|
805
805
|
* Checkbox component - Modern interactive checkbox with animations
|
|
@@ -844,13 +844,13 @@ const Checkbox = ({ checked, onChange, label, disabled = false, indeterminate =
|
|
|
844
844
|
checkboxRef.current.indeterminate = indeterminate;
|
|
845
845
|
}
|
|
846
846
|
}, [indeterminate]);
|
|
847
|
-
return (jsxRuntime.jsxs("label", { className: styles$
|
|
847
|
+
return (jsxRuntime.jsxs("label", { className: styles$w.checkboxLabel, children: [jsxRuntime.jsx("input", { ref: checkboxRef, type: "checkbox", checked: checked, onChange: (e) => {
|
|
848
848
|
const isChecked = e.target.checked;
|
|
849
849
|
onChange(isChecked);
|
|
850
850
|
if (soundConfig?.onClick !== false) {
|
|
851
851
|
playSound('toggle');
|
|
852
852
|
}
|
|
853
|
-
}, className: styles$
|
|
853
|
+
}, className: styles$w.checkbox, disabled: disabled, id: id, name: name, value: value, "aria-checked": indeterminate ? 'mixed' : checked }), label && jsxRuntime.jsx("span", { className: styles$w.checkboxText, children: label })] }));
|
|
854
854
|
};
|
|
855
855
|
|
|
856
856
|
const formatDateToEuropean = (date) => {
|
|
@@ -881,7 +881,7 @@ const parseEuropeanDate = (dateString) => {
|
|
|
881
881
|
return '';
|
|
882
882
|
};
|
|
883
883
|
|
|
884
|
-
var styles$
|
|
884
|
+
var styles$v = {"dateInput":"DateInput-module_dateInput__54VPD","label":"DateInput-module_label__yDdUw","inputWrapper":"DateInput-module_inputWrapper__x-r1d","textInput":"DateInput-module_textInput__ToOSX","calendarButton":"DateInput-module_calendarButton__JzDGD","hiddenDateInput":"DateInput-module_hiddenDateInput__IWNg3","error":"DateInput-module_error__ieuPO","success":"DateInput-module_success__rPA93","loading":"DateInput-module_loading__1DAmD"};
|
|
885
885
|
|
|
886
886
|
/**
|
|
887
887
|
* DateInput component - European format date picker with manual input support
|
|
@@ -970,19 +970,19 @@ function DateInput({ label, value, onChange, placeholder = "25/12/2024", onFocus
|
|
|
970
970
|
}
|
|
971
971
|
};
|
|
972
972
|
const getClassName = () => {
|
|
973
|
-
const classes = [styles$
|
|
973
|
+
const classes = [styles$v.dateInput];
|
|
974
974
|
if (error)
|
|
975
|
-
classes.push(styles$
|
|
975
|
+
classes.push(styles$v.error);
|
|
976
976
|
if (success)
|
|
977
|
-
classes.push(styles$
|
|
977
|
+
classes.push(styles$v.success);
|
|
978
978
|
if (loading)
|
|
979
|
-
classes.push(styles$
|
|
979
|
+
classes.push(styles$v.loading);
|
|
980
980
|
return classes.join(' ');
|
|
981
981
|
};
|
|
982
|
-
return (jsxRuntime.jsxs("div", { className: getClassName(), children: [jsxRuntime.jsx("label", { className: styles$
|
|
982
|
+
return (jsxRuntime.jsxs("div", { className: getClassName(), children: [jsxRuntime.jsx("label", { className: styles$v.label, children: label }), jsxRuntime.jsxs("div", { className: styles$v.inputWrapper, children: [jsxRuntime.jsx("input", { type: "text", value: value.includes('-') ? formatDateToEuropean(value) : value, onChange: (e) => handleTextChange(e.target.value), onFocus: onFocus, onBlur: onBlur, placeholder: placeholder, className: styles$v.textInput, disabled: disabled || loading, ...handlers }), jsxRuntime.jsx("button", { type: "button", onClick: handleCalendarClick, className: styles$v.calendarButton, title: "Select date from calendar", disabled: disabled || loading, children: jsxRuntime.jsx(lucideReact.Calendar, {}) }), jsxRuntime.jsx("input", { ref: hiddenDateInputRef, type: "date", onChange: handleCalendarChange, className: styles$v.hiddenDateInput, tabIndex: -1, disabled: disabled || loading })] })] }));
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
-
var styles$
|
|
985
|
+
var styles$u = {"searchableDropdown":"SearchableDropdown-module_searchableDropdown__S2Nh5","dropdownTrigger":"SearchableDropdown-module_dropdownTrigger__dihdr","open":"SearchableDropdown-module_open__P7mRt","dropdownValue":"SearchableDropdown-module_dropdownValue__ydrc2","placeholder":"SearchableDropdown-module_placeholder__BwM2W","dropdownArrow":"SearchableDropdown-module_dropdownArrow__yd5fp","dropdownMenu":"SearchableDropdown-module_dropdownMenu__2Z5cc","dropdownSearch":"SearchableDropdown-module_dropdownSearch__NRk7j","searchInput":"SearchableDropdown-module_searchInput__VS2Hw","searchIcon":"SearchableDropdown-module_searchIcon__2vKFF","dropdownOptions":"SearchableDropdown-module_dropdownOptions__6YXqF","dropdownOption":"SearchableDropdown-module_dropdownOption__YwDr-","selected":"SearchableDropdown-module_selected__31JeB","highlighted":"SearchableDropdown-module_highlighted__P0bBq","checkIcon":"SearchableDropdown-module_checkIcon__YxowK","dropdownNoResults":"SearchableDropdown-module_dropdownNoResults__WW-Da","loading":"SearchableDropdown-module_loading__xlYf0"};
|
|
986
986
|
|
|
987
987
|
/**
|
|
988
988
|
* SearchableDropdown component - Modern filterable dropdown with animations
|
|
@@ -1087,23 +1087,23 @@ function SearchableDropdown({ label, value, onChange, options, placeholder = "Se
|
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
1089
|
const getTriggerClassName = () => {
|
|
1090
|
-
const classes = [styles$
|
|
1090
|
+
const classes = [styles$u.dropdownTrigger];
|
|
1091
1091
|
if (isOpen)
|
|
1092
|
-
classes.push(styles$
|
|
1092
|
+
classes.push(styles$u.open);
|
|
1093
1093
|
if (loading)
|
|
1094
|
-
classes.push(styles$
|
|
1094
|
+
classes.push(styles$u.loading);
|
|
1095
1095
|
if (error)
|
|
1096
|
-
classes.push(styles$
|
|
1096
|
+
classes.push(styles$u.error);
|
|
1097
1097
|
return classes.join(' ');
|
|
1098
1098
|
};
|
|
1099
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
1099
|
+
return (jsxRuntime.jsxs("div", { className: styles$u.searchableDropdown, ref: dropdownRef, onKeyDown: handleKeyDown, children: [jsxRuntime.jsx("label", { children: label }), jsxRuntime.jsxs(framerMotion.motion.button, { type: "button", className: getTriggerClassName(), onClick: () => !disabled && !loading && setIsOpen(!isOpen), whileTap: { scale: disabled ? 1 : 0.98 }, style: { willChange: 'transform' }, disabled: disabled, children: [jsxRuntime.jsx("span", { className: `${styles$u.dropdownValue} ${!displayValue ? styles$u.placeholder : ''}`, children: displayValue || placeholder }), jsxRuntime.jsx(lucideReact.ChevronDown, { className: styles$u.dropdownArrow })] }), jsxRuntime.jsx(framerMotion.AnimatePresence, { children: isOpen && (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$u.dropdownMenu, initial: { opacity: 0, y: -10, scale: 0.95 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: -10, scale: 0.95 }, transition: { duration: 0.2, ease: "easeOut" }, children: [jsxRuntime.jsxs("div", { className: styles$u.dropdownSearch, children: [jsxRuntime.jsx(lucideReact.Search, { className: styles$u.searchIcon }), jsxRuntime.jsx("input", { ref: inputRef, type: "text", className: styles$u.searchInput, placeholder: "Cerca...", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), onClick: (e) => e.stopPropagation() })] }), jsxRuntime.jsxs("div", { className: styles$u.dropdownOptions, children: [allOptions.map((opt, index) => {
|
|
1100
1100
|
const isSelected = value === opt.value;
|
|
1101
1101
|
const isHighlighted = highlightedIndex === index;
|
|
1102
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { type: "button", className: `${styles$
|
|
1103
|
-
}), allOptions.length === 0 && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1102
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { type: "button", className: `${styles$u.dropdownOption} ${isSelected ? styles$u.selected : ''} ${isHighlighted ? styles$u.highlighted : ''}`, onClick: () => handleSelect(opt.value), onMouseEnter: () => setHighlightedIndex(index), initial: { opacity: 0, x: -20 }, animate: { opacity: 1, x: 0 }, transition: { delay: index * 0.02 }, whileTap: { scale: 0.98 }, style: { willChange: 'transform' }, children: [jsxRuntime.jsx("span", { children: opt.label }), isSelected && jsxRuntime.jsx(lucideReact.Check, { className: styles$u.checkIcon })] }, `${opt.value}-${index}`));
|
|
1103
|
+
}), allOptions.length === 0 && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$u.dropdownNoResults, initial: { opacity: 0 }, animate: { opacity: 1 }, children: "No results found" }))] })] })) })] }));
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
var styles$
|
|
1106
|
+
var styles$t = {"selectInput":"SelectInput-module_selectInput__s6zEg","selectWrapper":"SelectInput-module_selectWrapper__Qr4pl","selectIcon":"SelectInput-module_selectIcon__9pjhf","error":"SelectInput-module_error__3WNJc","success":"SelectInput-module_success__WJ5ga","loading":"SelectInput-module_loading__n35N9"};
|
|
1107
1107
|
|
|
1108
1108
|
/**
|
|
1109
1109
|
* SelectInput component - Styled dropdown selector with flexible option format
|
|
@@ -1141,26 +1141,26 @@ var styles$s = {"selectInput":"SelectInput-module_selectInput__s6zEg","selectWra
|
|
|
1141
1141
|
function SelectInput({ label, value, onChange, options, placeholder = "Select...", disabled = false, error = false, success = false, loading = false, required = false, soundConfig, className }) {
|
|
1142
1142
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1143
1143
|
const getClassName = () => {
|
|
1144
|
-
const classes = [styles$
|
|
1144
|
+
const classes = [styles$t.selectInput];
|
|
1145
1145
|
if (error)
|
|
1146
|
-
classes.push(styles$
|
|
1146
|
+
classes.push(styles$t.error);
|
|
1147
1147
|
if (success)
|
|
1148
|
-
classes.push(styles$
|
|
1148
|
+
classes.push(styles$t.success);
|
|
1149
1149
|
if (loading)
|
|
1150
|
-
classes.push(styles$
|
|
1150
|
+
classes.push(styles$t.loading);
|
|
1151
1151
|
return classes.join(' ');
|
|
1152
1152
|
};
|
|
1153
|
-
return (jsxRuntime.jsxs("div", { className: `${getClassName()}${className ? ` ${className}` : ''}`, children: [jsxRuntime.jsxs("label", { children: [label, required && jsxRuntime.jsx("span", { style: { color: 'var(--color-error)' }, children: " *" })] }), jsxRuntime.jsxs("div", { className: styles$
|
|
1153
|
+
return (jsxRuntime.jsxs("div", { className: `${getClassName()}${className ? ` ${className}` : ''}`, children: [jsxRuntime.jsxs("label", { children: [label, required && jsxRuntime.jsx("span", { style: { color: 'var(--color-error)' }, children: " *" })] }), jsxRuntime.jsxs("div", { className: styles$t.selectWrapper, children: [jsxRuntime.jsxs("select", { value: value, onChange: e => {
|
|
1154
1154
|
playSound('click');
|
|
1155
1155
|
onChange(e.target.value);
|
|
1156
1156
|
}, disabled: disabled || loading, required: required, ...handlers, children: [jsxRuntime.jsx("option", { value: "", children: placeholder }), options.map(opt => {
|
|
1157
1157
|
const optionValue = typeof opt === 'string' ? opt : opt.value;
|
|
1158
1158
|
const optionLabel = typeof opt === 'string' ? opt : opt.label;
|
|
1159
1159
|
return (jsxRuntime.jsx("option", { value: optionValue, children: optionLabel }, optionValue));
|
|
1160
|
-
})] }), jsxRuntime.jsx(lucideReact.ChevronDown, { className: styles$
|
|
1160
|
+
})] }), jsxRuntime.jsx(lucideReact.ChevronDown, { className: styles$t.selectIcon })] })] }));
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
|
-
var styles$
|
|
1163
|
+
var styles$s = {"textareaContainer":"TextArea-module_textareaContainer__AquFj","compact":"TextArea-module_compact__U5lPn","textareaLabel":"TextArea-module_textareaLabel__7Vmyx","requiredIndicator":"TextArea-module_requiredIndicator__3Fxyy","textareaInput":"TextArea-module_textareaInput__VCDZA","characterCount":"TextArea-module_characterCount__9FO5N","nearLimit":"TextArea-module_nearLimit__cUdnw","atLimit":"TextArea-module_atLimit__GoWCC","error":"TextArea-module_error__ciHgb","success":"TextArea-module_success__a0-xD","loading":"TextArea-module_loading__CSFBR","focusMode":"TextArea-module_focusMode__9A8U-"};
|
|
1164
1164
|
|
|
1165
1165
|
/**
|
|
1166
1166
|
* TextArea component - Multi-line text input with character counting
|
|
@@ -1195,38 +1195,38 @@ var styles$r = {"textareaContainer":"TextArea-module_textareaContainer__AquFj","
|
|
|
1195
1195
|
function TextArea({ label, value, onChange, rows = 5, placeholder = "", required = false, maxLength, disabled = false, error = false, success = false, loading = false, focusMode = false, compact = false, className = "" }) {
|
|
1196
1196
|
const textareaId = `textarea-${Math.random().toString(36).substr(2, 9)}`;
|
|
1197
1197
|
const getContainerClassName = () => {
|
|
1198
|
-
const classes = [styles$
|
|
1198
|
+
const classes = [styles$s.textareaContainer];
|
|
1199
1199
|
if (error)
|
|
1200
|
-
classes.push(styles$
|
|
1200
|
+
classes.push(styles$s.error);
|
|
1201
1201
|
if (success)
|
|
1202
|
-
classes.push(styles$
|
|
1202
|
+
classes.push(styles$s.success);
|
|
1203
1203
|
if (loading)
|
|
1204
|
-
classes.push(styles$
|
|
1204
|
+
classes.push(styles$s.loading);
|
|
1205
1205
|
if (focusMode)
|
|
1206
|
-
classes.push(styles$
|
|
1206
|
+
classes.push(styles$s.focusMode);
|
|
1207
1207
|
if (compact)
|
|
1208
|
-
classes.push(styles$
|
|
1208
|
+
classes.push(styles$s.compact);
|
|
1209
1209
|
if (className)
|
|
1210
1210
|
classes.push(className);
|
|
1211
1211
|
return classes.join(' ');
|
|
1212
1212
|
};
|
|
1213
1213
|
const getCharCountClassName = () => {
|
|
1214
1214
|
if (!maxLength)
|
|
1215
|
-
return styles$
|
|
1216
|
-
const classes = [styles$
|
|
1215
|
+
return styles$s.characterCount;
|
|
1216
|
+
const classes = [styles$s.characterCount];
|
|
1217
1217
|
const percentage = (value.length / maxLength) * 100;
|
|
1218
1218
|
if (percentage >= 100) {
|
|
1219
|
-
classes.push(styles$
|
|
1219
|
+
classes.push(styles$s.atLimit);
|
|
1220
1220
|
}
|
|
1221
1221
|
else if (percentage >= 80) {
|
|
1222
|
-
classes.push(styles$
|
|
1222
|
+
classes.push(styles$s.nearLimit);
|
|
1223
1223
|
}
|
|
1224
1224
|
return classes.join(' ');
|
|
1225
1225
|
};
|
|
1226
|
-
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [label && (jsxRuntime.jsxs("label", { htmlFor: textareaId, className: styles$
|
|
1226
|
+
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [label && (jsxRuntime.jsxs("label", { htmlFor: textareaId, className: styles$s.textareaLabel, children: [label, required && jsxRuntime.jsx("span", { className: styles$s.requiredIndicator, children: "*" })] })), jsxRuntime.jsx("textarea", { id: textareaId, value: value, onChange: (e) => onChange(e.target.value), rows: rows, placeholder: placeholder, maxLength: maxLength, className: styles$s.textareaInput, "aria-required": required, disabled: disabled || loading, "aria-invalid": error }), maxLength && (jsxRuntime.jsxs("div", { className: getCharCountClassName(), children: [jsxRuntime.jsx("span", { children: value.length }), jsxRuntime.jsx("span", { style: { opacity: 0.7 }, children: " / " }), jsxRuntime.jsx("span", { children: maxLength })] }))] }));
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
-
var styles$
|
|
1229
|
+
var styles$r = {"textInput":"TextInput-module_textInput__b2LVM","required":"TextInput-module_required__7uLiM","inputError":"TextInput-module_inputError__QD0a-","errorMessage":"TextInput-module_errorMessage__nIDoQ","success":"TextInput-module_success__KbSS3","loading":"TextInput-module_loading__qXaca","withIcon":"TextInput-module_withIcon__-8swm","inputIcon":"TextInput-module_inputIcon__B4czN","withAction":"TextInput-module_withAction__JD3ku","actionButton":"TextInput-module_actionButton__zFJel"};
|
|
1230
1230
|
|
|
1231
1231
|
/**
|
|
1232
1232
|
* TextInput component - A versatile text input field with label and error handling
|
|
@@ -1263,21 +1263,21 @@ function TextInput({ label, value, onChange, type = "text", onBlur, placeholder,
|
|
|
1263
1263
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1264
1264
|
const prevValueRef = React.useRef(value);
|
|
1265
1265
|
const getContainerClassName = () => {
|
|
1266
|
-
const classes = [styles$
|
|
1266
|
+
const classes = [styles$r.textInput];
|
|
1267
1267
|
if (success)
|
|
1268
|
-
classes.push(styles$
|
|
1268
|
+
classes.push(styles$r.success);
|
|
1269
1269
|
if (loading)
|
|
1270
|
-
classes.push(styles$
|
|
1270
|
+
classes.push(styles$r.loading);
|
|
1271
1271
|
if (icon)
|
|
1272
|
-
classes.push(styles$
|
|
1272
|
+
classes.push(styles$r.withIcon);
|
|
1273
1273
|
if (actionButton)
|
|
1274
|
-
classes.push(styles$
|
|
1274
|
+
classes.push(styles$r.withAction);
|
|
1275
1275
|
return classes.join(' ');
|
|
1276
1276
|
};
|
|
1277
1277
|
React.useEffect(() => {
|
|
1278
1278
|
prevValueRef.current = value;
|
|
1279
1279
|
}, [value]);
|
|
1280
|
-
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [jsxRuntime.jsxs("label", { htmlFor: inputId, children: [label, required && jsxRuntime.jsx("span", { className: styles$
|
|
1280
|
+
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [jsxRuntime.jsxs("label", { htmlFor: inputId, children: [label, required && jsxRuntime.jsx("span", { className: styles$r.required, children: "*" })] }), jsxRuntime.jsxs("div", { style: { position: 'relative' }, children: [icon && jsxRuntime.jsx("div", { className: styles$r.inputIcon, children: icon }), jsxRuntime.jsx("input", { id: inputId, type: type, value: value, onChange: (e) => {
|
|
1281
1281
|
const newValue = e.target.value;
|
|
1282
1282
|
const oldValue = prevValueRef.current;
|
|
1283
1283
|
onChange(newValue);
|
|
@@ -1293,13 +1293,13 @@ function TextInput({ label, value, onChange, type = "text", onBlur, placeholder,
|
|
|
1293
1293
|
if (error && soundConfig?.onError) {
|
|
1294
1294
|
playSound(typeof soundConfig.onError === 'string' ? soundConfig.onError : 'error');
|
|
1295
1295
|
}
|
|
1296
|
-
}, onBlur: onBlur, placeholder: placeholder, className: error ? styles$
|
|
1296
|
+
}, onBlur: onBlur, placeholder: placeholder, className: error ? styles$r.inputError : '', "aria-invalid": !!error, "aria-describedby": error ? `${inputId}-error` : undefined, disabled: disabled || loading, maxLength: maxLength, autoComplete: autoComplete }), actionButton && (jsxRuntime.jsx("button", { type: "button", className: styles$r.actionButton, onClick: () => {
|
|
1297
1297
|
handlers.onClick?.();
|
|
1298
1298
|
actionButton.onClick();
|
|
1299
|
-
}, disabled: disabled || loading, children: actionButton.label }))] }), error && (jsxRuntime.jsx("span", { id: `${inputId}-error`, className: styles$
|
|
1299
|
+
}, disabled: disabled || loading, children: actionButton.label }))] }), error && (jsxRuntime.jsx("span", { id: `${inputId}-error`, className: styles$r.errorMessage, children: error }))] }));
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
-
var styles$
|
|
1302
|
+
var styles$q = {"toggleContainer":"Toggle-module_toggleContainer__QxqQb","toggleButton":"Toggle-module_toggleButton__WUUf-","active":"Toggle-module_active__fX6Io"};
|
|
1303
1303
|
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Toggle Component
|
|
@@ -1360,7 +1360,7 @@ function Toggle(props) {
|
|
|
1360
1360
|
justifyContent: 'center',
|
|
1361
1361
|
...style
|
|
1362
1362
|
};
|
|
1363
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
1363
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$q.toggleContainer} ${className || ''}`, children: [jsxRuntime.jsxs(framerMotion.motion.button, { ref: leftButtonRef, className: `${styles$q.toggleButton} ${!isOn ? styles$q.active : ''}`, whileHover: { scale: 1.05 }, whileTap: { scale: 0.95 }, transition: { type: "spring", stiffness: 400, damping: 17 }, onClick: () => {
|
|
1364
1364
|
if (!isOn) {
|
|
1365
1365
|
// Already on left
|
|
1366
1366
|
if (enableCelebration) {
|
|
@@ -1375,7 +1375,7 @@ function Toggle(props) {
|
|
|
1375
1375
|
playSound('toggle');
|
|
1376
1376
|
}
|
|
1377
1377
|
onToggle(false);
|
|
1378
|
-
}, onMouseEnter: () => handlers.onMouseEnter?.(), style: buttonStyle, children: [jsxRuntime.jsx(framerMotion.motion.div, { animate: { scale: !isOn ? 1.1 : 1, rotate: !isOn ? [0, -5, 5, 0] : 0 }, transition: { duration: 0.3 }, children: leftIcon }), leftLabel] }), jsxRuntime.jsxs(framerMotion.motion.button, { ref: rightButtonRef, className: `${styles$
|
|
1378
|
+
}, onMouseEnter: () => handlers.onMouseEnter?.(), style: buttonStyle, children: [jsxRuntime.jsx(framerMotion.motion.div, { animate: { scale: !isOn ? 1.1 : 1, rotate: !isOn ? [0, -5, 5, 0] : 0 }, transition: { duration: 0.3 }, children: leftIcon }), leftLabel] }), jsxRuntime.jsxs(framerMotion.motion.button, { ref: rightButtonRef, className: `${styles$q.toggleButton} ${isOn ? styles$q.active : ''}`, whileHover: { scale: 1.05 }, whileTap: { scale: 0.95 }, transition: { type: "spring", stiffness: 400, damping: 17 }, onClick: () => {
|
|
1379
1379
|
if (isOn) {
|
|
1380
1380
|
// Already on right
|
|
1381
1381
|
if (enableCelebration) {
|
|
@@ -1393,7 +1393,7 @@ function Toggle(props) {
|
|
|
1393
1393
|
}, onMouseEnter: () => handlers.onMouseEnter?.(), style: buttonStyle, children: [jsxRuntime.jsx(framerMotion.motion.div, { animate: { scale: isOn ? 1.1 : 1, rotate: isOn ? [0, 5, -5, 0] : 0 }, transition: { duration: 0.3 }, children: rightIcon }), rightLabel] })] }));
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
|
-
var styles$
|
|
1396
|
+
var styles$p = {"container":"NumberStepper-module_container__WSGlU","header":"NumberStepper-module_header__qXI1Y","icon":"NumberStepper-module_icon__vHgsw","label":"NumberStepper-module_label__AYr3g","stepper":"NumberStepper-module_stepper__oQhTp","disabled":"NumberStepper-module_disabled__kGB-g","button":"NumberStepper-module_button__YcjRt","buttonIcon":"NumberStepper-module_buttonIcon__odXec","valueContainer":"NumberStepper-module_valueContainer__87w2D","valueWrapper":"NumberStepper-module_valueWrapper__TH65N","value":"NumberStepper-module_value__BxJeD","limits":"NumberStepper-module_limits__-UrRE","limit":"NumberStepper-module_limit__7nbIP","small":"NumberStepper-module_small__P-k96","large":"NumberStepper-module_large__Lz6lk","outlined":"NumberStepper-module_outlined__CIXv7","filled":"NumberStepper-module_filled__IxOg-","minimal":"NumberStepper-module_minimal__y47-W","custom":"NumberStepper-module_custom__XGSVg","vertical":"NumberStepper-module_vertical__nBcL7","pulse":"NumberStepper-module_pulse__51oUo"};
|
|
1397
1397
|
|
|
1398
1398
|
/**
|
|
1399
1399
|
* NumberStepper Component
|
|
@@ -1580,32 +1580,32 @@ const NumberStepper = ({ value, onChange, min = -Infinity, max = Infinity, step
|
|
|
1580
1580
|
setDisplayValue(finalValue);
|
|
1581
1581
|
}, [displayValue, min, max, step, onChange]);
|
|
1582
1582
|
const containerClasses = [
|
|
1583
|
-
styles$
|
|
1584
|
-
styles$
|
|
1585
|
-
styles$
|
|
1586
|
-
layout === 'vertical' && styles$
|
|
1587
|
-
disabled && styles$
|
|
1583
|
+
styles$p.container,
|
|
1584
|
+
styles$p[size],
|
|
1585
|
+
styles$p[variant],
|
|
1586
|
+
layout === 'vertical' && styles$p.vertical,
|
|
1587
|
+
disabled && styles$p.disabled,
|
|
1588
1588
|
className
|
|
1589
1589
|
].filter(Boolean).join(' ');
|
|
1590
1590
|
// Merge custom styles with hover states
|
|
1591
1591
|
const [isButtonHovered, setIsButtonHovered] = React.useState(null);
|
|
1592
1592
|
const isDecrementDisabled = disabled || value <= min;
|
|
1593
1593
|
const isIncrementDisabled = disabled || value >= max;
|
|
1594
|
-
const stepperContent = (jsxRuntime.jsxs("div", { className: styles$
|
|
1594
|
+
const stepperContent = (jsxRuntime.jsxs("div", { className: styles$p.stepper, style: customStyles.stepper, onKeyDown: handleKeyDown, tabIndex: disabled ? -1 : 0, ...handlers, children: [jsxRuntime.jsx(framerMotion.motion.button, { className: styles$p.button, style: {
|
|
1595
1595
|
...customStyles.button,
|
|
1596
1596
|
...(isButtonHovered === 'decrement' && customStyles.buttonHover)
|
|
1597
|
-
}, onMouseEnter: () => setIsButtonHovered('decrement'), onMouseLeave: () => setIsButtonHovered(null), onClick: handleDecrement, disabled: isDecrementDisabled, whileTap: !isDecrementDisabled ? { scale: 0.9 } : undefined, animate: isDecrementing ? { scale: [1, 1.2, 1] } : undefined, transition: { duration: 0.2 }, "aria-label": "Decrease value", children: customButtons.decrement || (showPlusMinus ? (jsxRuntime.jsx("span", { className: styles$
|
|
1597
|
+
}, onMouseEnter: () => setIsButtonHovered('decrement'), onMouseLeave: () => setIsButtonHovered(null), onClick: handleDecrement, disabled: isDecrementDisabled, whileTap: !isDecrementDisabled ? { scale: 0.9 } : undefined, animate: isDecrementing ? { scale: [1, 1.2, 1] } : undefined, transition: { duration: 0.2 }, "aria-label": "Decrease value", children: customButtons.decrement || (showPlusMinus ? (jsxRuntime.jsx("span", { className: styles$p.buttonIcon, style: customStyles.buttonIcon, children: "\u2212" })) : (jsxRuntime.jsx("svg", { className: styles$p.buttonIcon, style: customStyles.buttonIcon, viewBox: "0 0 24 24", fill: "none", children: jsxRuntime.jsx("path", { d: "M15 18L9 12L15 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }))) }), jsxRuntime.jsx("div", { className: styles$p.valueContainer, style: customStyles.valueContainer, children: jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: jsxRuntime.jsx(framerMotion.motion.div, { initial: { y: isIncrementing ? 10 : isDecrementing ? -10 : 0, opacity: 0 }, animate: { y: 0, opacity: 1 }, exit: { y: isIncrementing ? -10 : isDecrementing ? 10 : 0, opacity: 0 }, transition: { duration: 0.15 }, className: styles$p.valueWrapper, children: jsxRuntime.jsx("input", { type: "text", className: styles$p.value, style: customStyles.value, value: displayValue, onChange: handleInputChange, onBlur: handleInputBlur, disabled: disabled, "aria-label": label || "Number input", "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value }) }, value) }) }), jsxRuntime.jsx(framerMotion.motion.button, { className: styles$p.button, style: {
|
|
1598
1598
|
...customStyles.button,
|
|
1599
1599
|
...(isButtonHovered === 'increment' && customStyles.buttonHover)
|
|
1600
|
-
}, onMouseEnter: () => setIsButtonHovered('increment'), onMouseLeave: () => setIsButtonHovered(null), onClick: handleIncrement, disabled: isIncrementDisabled, whileTap: !isIncrementDisabled ? { scale: 0.9 } : undefined, animate: isIncrementing ? { scale: [1, 1.2, 1] } : undefined, transition: { duration: 0.2 }, "aria-label": "Increase value", children: customButtons.increment || (showPlusMinus ? (jsxRuntime.jsx("span", { className: styles$
|
|
1600
|
+
}, onMouseEnter: () => setIsButtonHovered('increment'), onMouseLeave: () => setIsButtonHovered(null), onClick: handleIncrement, disabled: isIncrementDisabled, whileTap: !isIncrementDisabled ? { scale: 0.9 } : undefined, animate: isIncrementing ? { scale: [1, 1.2, 1] } : undefined, transition: { duration: 0.2 }, "aria-label": "Increase value", children: customButtons.increment || (showPlusMinus ? (jsxRuntime.jsx("span", { className: styles$p.buttonIcon, style: customStyles.buttonIcon, children: "+" })) : (jsxRuntime.jsx("svg", { className: styles$p.buttonIcon, style: customStyles.buttonIcon, viewBox: "0 0 24 24", fill: "none", children: jsxRuntime.jsx("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }))) })] }));
|
|
1601
1601
|
// For custom variant with horizontal layout, render differently
|
|
1602
1602
|
if (variant === 'custom' && (label || icon)) {
|
|
1603
|
-
return (jsxRuntime.jsxs("div", { className: containerClasses, style: { ...customStyles.container, display: 'flex', alignItems: 'center' }, children: [jsxRuntime.jsxs("div", { className: styles$
|
|
1603
|
+
return (jsxRuntime.jsxs("div", { className: containerClasses, style: { ...customStyles.container, display: 'flex', alignItems: 'center' }, children: [jsxRuntime.jsxs("div", { className: styles$p.header, style: { ...customStyles.header, flex: 1, marginBottom: 0 }, children: [icon && jsxRuntime.jsx("span", { className: styles$p.icon, style: customStyles.icon, children: icon }), label && jsxRuntime.jsx("label", { className: styles$p.label, style: customStyles.label, children: label })] }), stepperContent, !hideLimits && (min !== -Infinity || max !== Infinity) && (jsxRuntime.jsxs("div", { className: styles$p.limits, style: customStyles.limits, children: [jsxRuntime.jsx("span", { className: styles$p.limit, children: min !== -Infinity && `Min: ${min}` }), jsxRuntime.jsx("span", { className: styles$p.limit, children: max !== Infinity && `Max: ${max}` })] }))] }));
|
|
1604
1604
|
}
|
|
1605
|
-
return (jsxRuntime.jsxs("div", { className: containerClasses, style: customStyles.container, children: [(label || icon) && (jsxRuntime.jsxs("div", { className: styles$
|
|
1605
|
+
return (jsxRuntime.jsxs("div", { className: containerClasses, style: customStyles.container, children: [(label || icon) && (jsxRuntime.jsxs("div", { className: styles$p.header, style: customStyles.header, children: [icon && jsxRuntime.jsx("span", { className: styles$p.icon, style: customStyles.icon, children: icon }), label && jsxRuntime.jsx("label", { className: styles$p.label, style: customStyles.label, children: label })] })), stepperContent, !hideLimits && (min !== -Infinity || max !== Infinity) && (jsxRuntime.jsxs("div", { className: styles$p.limits, style: customStyles.limits, children: [jsxRuntime.jsx("span", { className: styles$p.limit, children: min !== -Infinity && `Min: ${min}` }), jsxRuntime.jsx("span", { className: styles$p.limit, children: max !== Infinity && `Max: ${max}` })] }))] }));
|
|
1606
1606
|
};
|
|
1607
1607
|
|
|
1608
|
-
var styles$
|
|
1608
|
+
var styles$o = {"button":"ToggleButton-module_button__DTuyY","background":"ToggleButton-module_background__NwfTp","content":"ToggleButton-module_content__NHqIN","iconWrapper":"ToggleButton-module_iconWrapper__yN4sP","icon":"ToggleButton-module_icon__r8juX","label":"ToggleButton-module_label__4mPJP","hideMobile":"ToggleButton-module_hideMobile__GFAc3","checkmark":"ToggleButton-module_checkmark__ZJwf-","ripple":"ToggleButton-module_ripple__2-faB","small":"ToggleButton-module_small__MhfoN","large":"ToggleButton-module_large__A3naL","default":"ToggleButton-module_default__q8QaZ","active":"ToggleButton-module_active__4DjlR","outlined":"ToggleButton-module_outlined__OtqJB","filled":"ToggleButton-module_filled__LySNn","ghost":"ToggleButton-module_ghost__9KXcb","active-primary":"ToggleButton-module_active-primary__vXMP7","active-secondary":"ToggleButton-module_active-secondary__9Ttdx","active-success":"ToggleButton-module_active-success__oi0rr","active-danger":"ToggleButton-module_active-danger__VUdxr","active-warning":"ToggleButton-module_active-warning__77nSu","animation-scale":"ToggleButton-module_animation-scale__j-3mJ","scaleAnimation":"ToggleButton-module_scaleAnimation__Ms1j2","animation-rotate":"ToggleButton-module_animation-rotate__pBmfc","rotateAnimation":"ToggleButton-module_rotateAnimation__xWZJ5","animation-flip":"ToggleButton-module_animation-flip__ErAbm","flipAnimation":"ToggleButton-module_flipAnimation__qwDTb","disabled":"ToggleButton-module_disabled__Gv5ji"};
|
|
1609
1609
|
|
|
1610
1610
|
/**
|
|
1611
1611
|
* ToggleButton Component
|
|
@@ -1644,18 +1644,18 @@ var styles$n = {"button":"ToggleButton-module_button__DTuyY","background":"Toggl
|
|
|
1644
1644
|
const ToggleButton = ({ active, onClick, icon, label, disabled = false, size = 'medium', variant = 'default', activeColor = 'primary', showCheckmark = false, animation = 'scale', className = '', style = {}, color, tooltip, hideLabelOnMobile = false, soundConfig }) => {
|
|
1645
1645
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1646
1646
|
const buttonClasses = [
|
|
1647
|
-
styles$
|
|
1648
|
-
styles$
|
|
1649
|
-
styles$
|
|
1650
|
-
active && styles$
|
|
1651
|
-
active && styles$
|
|
1652
|
-
disabled && styles$
|
|
1653
|
-
animation !== 'none' && styles$
|
|
1647
|
+
styles$o.button,
|
|
1648
|
+
styles$o[size],
|
|
1649
|
+
styles$o[variant],
|
|
1650
|
+
active && styles$o.active,
|
|
1651
|
+
active && styles$o[`active-${activeColor}`],
|
|
1652
|
+
disabled && styles$o.disabled,
|
|
1653
|
+
animation !== 'none' && styles$o[`animation-${animation}`],
|
|
1654
1654
|
className
|
|
1655
1655
|
].filter(Boolean).join(' ');
|
|
1656
1656
|
const labelClasses = [
|
|
1657
|
-
styles$
|
|
1658
|
-
hideLabelOnMobile && styles$
|
|
1657
|
+
styles$o.label,
|
|
1658
|
+
hideLabelOnMobile && styles$o.hideMobile
|
|
1659
1659
|
].filter(Boolean).join(' ');
|
|
1660
1660
|
const iconVariants = {
|
|
1661
1661
|
scale: {
|
|
@@ -1719,10 +1719,10 @@ const ToggleButton = ({ active, onClick, icon, label, disabled = false, size = '
|
|
|
1719
1719
|
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: buttonClasses, style: dynamicStyle, onClick: () => {
|
|
1720
1720
|
playSound('toggle');
|
|
1721
1721
|
onClick();
|
|
1722
|
-
}, disabled: disabled, whileHover: !disabled ? { scale: 1.05 } : undefined, whileTap: !disabled ? { scale: 0.95 } : undefined, title: tooltip, "aria-pressed": active, "aria-label": label, ...handlers, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1722
|
+
}, disabled: disabled, whileHover: !disabled ? { scale: 1.05 } : undefined, whileTap: !disabled ? { scale: 0.95 } : undefined, title: tooltip, "aria-pressed": active, "aria-label": label, ...handlers, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.background, variants: backgroundVariants, initial: "inactive", animate: active ? "active" : "inactive" }), jsxRuntime.jsxs("div", { className: styles$o.content, children: [icon && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.iconWrapper, variants: iconVariants[animation], initial: "inactive", animate: active ? "active" : "inactive", transition: { duration: 0.3 }, children: typeof icon === 'string' ? (jsxRuntime.jsx("span", { className: styles$o.icon, children: icon })) : (jsxRuntime.jsx("div", { className: styles$o.icon, children: icon })) })), label && jsxRuntime.jsx("span", { className: labelClasses, children: label }), jsxRuntime.jsx(framerMotion.AnimatePresence, { children: showCheckmark && active && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.checkmark, variants: checkmarkVariants, initial: "hidden", animate: "visible", exit: "hidden", children: jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: jsxRuntime.jsx("path", { d: "M20 6L9 17L4 12", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) }) })) })] }), jsxRuntime.jsx(framerMotion.AnimatePresence, { children: active && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.ripple, initial: { scale: 0, opacity: 0.5 }, animate: { scale: 2, opacity: 0 }, exit: { scale: 0, opacity: 0 }, transition: { duration: 0.6 } })) })] }));
|
|
1723
1723
|
};
|
|
1724
1724
|
|
|
1725
|
-
var styles$
|
|
1725
|
+
var styles$n = {"slider":"Slider-module_slider__RD4G7","label":"Slider-module_label__j4H8M","sliderContainer":"Slider-module_sliderContainer__kQICC","track":"Slider-module_track__fQ-oP","fill":"Slider-module_fill__AYR4-","shimmer":"Slider-module_shimmer__271tL","input":"Slider-module_input__fqY-G","thumb":"Slider-module_thumb__yQJho","ripple":"Slider-module_ripple__gVS04","tooltip":"Slider-module_tooltip__ZubHR","tooltipArrow":"Slider-module_tooltipArrow__1aV9s","valueDisplay":"Slider-module_valueDisplay__V6caL","labelsContainer":"Slider-module_labelsContainer__F6ojF","labelItem":"Slider-module_labelItem__FuEaY","size-sm":"Slider-module_size-sm__Y2bmS","size-lg":"Slider-module_size-lg__RSnPf","disabled":"Slider-module_disabled__gxYoH","loading":"Slider-module_loading__6FkKb","loadingTrack":"Slider-module_loadingTrack__8ItT2","loadingIndicator":"Slider-module_loadingIndicator__Elydq"};
|
|
1726
1726
|
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Slider component - A beautiful, animated range input
|
|
@@ -1810,16 +1810,16 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1810
1810
|
setShowTooltipState(false);
|
|
1811
1811
|
};
|
|
1812
1812
|
const dynamicColor = getDynamicColor();
|
|
1813
|
-
const sizeClass = styles$
|
|
1814
|
-
const stateClass = disabled ? styles$
|
|
1813
|
+
const sizeClass = styles$n[`size-${size}`];
|
|
1814
|
+
const stateClass = disabled ? styles$n.disabled : loading ? styles$n.loading : '';
|
|
1815
1815
|
if (loading) {
|
|
1816
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
1816
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$n.slider} ${sizeClass} ${styles$n.loading} ${className}`, style: style, children: [label && jsxRuntime.jsx("label", { className: styles$n.label, children: label }), jsxRuntime.jsx("div", { className: styles$n.loadingTrack, children: jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.loadingIndicator, animate: { x: ['-100%', '200%'] }, transition: {
|
|
1817
1817
|
repeat: Infinity,
|
|
1818
1818
|
duration: 1.5,
|
|
1819
1819
|
ease: "easeInOut"
|
|
1820
1820
|
} }) })] }));
|
|
1821
1821
|
}
|
|
1822
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
1822
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$n.slider} ${sizeClass} ${stateClass} ${className}`, style: style, children: [label && (jsxRuntime.jsx(framerMotion.motion.label, { className: styles$n.label, initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.3 }, children: label })), jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$n.sliderContainer, ref: sliderRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, whileHover: { scale: 1.02 }, transition: { duration: 0.1 }, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.track, whileHover: { height: 8, marginTop: -1 }, transition: { duration: 0.1 }, children: jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.fill, style: {
|
|
1823
1823
|
width: `${percentage}%`,
|
|
1824
1824
|
backgroundColor: dynamicColor
|
|
1825
1825
|
}, initial: { width: 0 }, animate: { width: `${percentage}%` }, transition: {
|
|
@@ -1829,7 +1829,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1829
1829
|
damping: 30
|
|
1830
1830
|
}, whileHover: {
|
|
1831
1831
|
boxShadow: `inset 0 0 0 1px rgba(255,255,255,0.2)`
|
|
1832
|
-
} }) }), jsxRuntime.jsx("input", { type: "range", min: min, max: max, step: step, value: value, onChange: handleChange, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, ...handlers, className: styles$
|
|
1832
|
+
} }) }), jsxRuntime.jsx("input", { type: "range", min: min, max: max, step: step, value: value, onChange: handleChange, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, ...handlers, className: styles$n.input, disabled: disabled, "aria-label": label }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.thumb, style: {
|
|
1833
1833
|
left: `${percentage}%`,
|
|
1834
1834
|
backgroundColor: dynamicColor,
|
|
1835
1835
|
borderColor: colors.thumb || dynamicColor
|
|
@@ -1846,14 +1846,14 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1846
1846
|
}, whileHover: {
|
|
1847
1847
|
scale: 1.1,
|
|
1848
1848
|
transition: { duration: 0.1 }
|
|
1849
|
-
}, children: isDragging && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1849
|
+
}, children: isDragging && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.ripple, initial: { scale: 0, opacity: 0.6 }, animate: { scale: 2, opacity: 0 }, transition: { duration: 0.5 } })) }), jsxRuntime.jsx(framerMotion.AnimatePresence, { children: showTooltipState && (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$n.tooltip, style: {
|
|
1850
1850
|
left: `${percentage}%`,
|
|
1851
1851
|
backgroundColor: dynamicColor
|
|
1852
|
-
}, initial: { opacity: 0, y: 10, scale: 0.8 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 10, scale: 0.8 }, transition: { duration: 0.2 }, children: [tooltipContent ? tooltipContent(value) : formatValue(value), jsxRuntime.jsx("div", { className: styles$
|
|
1852
|
+
}, initial: { opacity: 0, y: 10, scale: 0.8 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 10, scale: 0.8 }, transition: { duration: 0.2 }, children: [tooltipContent ? tooltipContent(value) : formatValue(value), jsxRuntime.jsx("div", { className: styles$n.tooltipArrow, style: { borderTopColor: dynamicColor } })] })) })] }), showValue && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.valueDisplay, style: { color: dynamicColor }, initial: { scale: 0.8 }, animate: { scale: 1 }, transition: {
|
|
1853
1853
|
duration: 0.2,
|
|
1854
1854
|
type: "spring",
|
|
1855
1855
|
stiffness: 300
|
|
1856
|
-
}, children: formatValue(value) }, value)), labels.length > 0 && (jsxRuntime.jsx("div", { className: styles$
|
|
1856
|
+
}, children: formatValue(value) }, value)), labels.length > 0 && (jsxRuntime.jsx("div", { className: styles$n.labelsContainer, children: labels.map((labelConfig, index) => {
|
|
1857
1857
|
let position = 0;
|
|
1858
1858
|
if (labelConfig.position === 'start')
|
|
1859
1859
|
position = 0;
|
|
@@ -1861,7 +1861,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1861
1861
|
position = 100;
|
|
1862
1862
|
else if (typeof labelConfig.position === 'number')
|
|
1863
1863
|
position = labelConfig.position;
|
|
1864
|
-
return (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1864
|
+
return (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.labelItem, style: {
|
|
1865
1865
|
left: `${position}%`,
|
|
1866
1866
|
color: labelConfig.color
|
|
1867
1867
|
}, initial: { opacity: 0, y: 5 }, animate: { opacity: 1, y: 0 }, transition: {
|
|
@@ -1874,7 +1874,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1874
1874
|
}) }))] }));
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
1877
|
-
var styles$
|
|
1877
|
+
var styles$m = {"loadingContainer":"LoadingSpinner-module_loadingContainer__m5u51","fullScreen":"LoadingSpinner-module_fullScreen__TuAem","overlay":"LoadingSpinner-module_overlay__X7FTa","shimmer":"LoadingSpinner-module_shimmer__xw4AH","small":"LoadingSpinner-module_small__nq8A3","loadingText":"LoadingSpinner-module_loadingText__wWwna","medium":"LoadingSpinner-module_medium__3JC1S","large":"LoadingSpinner-module_large__4MvAc","dotsSpinner":"LoadingSpinner-module_dotsSpinner__PXtfs","dot1":"LoadingSpinner-module_dot1__5YKSi","dot2":"LoadingSpinner-module_dot2__l6Rbu","dot3":"LoadingSpinner-module_dot3__b9YPW","circleSpinner":"LoadingSpinner-module_circleSpinner__ZmmWs","pulseSpinner":"LoadingSpinner-module_pulseSpinner__wTtDJ","textGradient":"LoadingSpinner-module_textGradient__QDrTY","sparkleContainer":"LoadingSpinner-module_sparkleContainer__9XLJG","sparkle":"LoadingSpinner-module_sparkle__LtFFf"};
|
|
1878
1878
|
|
|
1879
1879
|
const defaultMessages = [
|
|
1880
1880
|
'Loading your content...',
|
|
@@ -1958,22 +1958,22 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1958
1958
|
}
|
|
1959
1959
|
}, [currentMessageIndex, message, messagesToUse, showMessage]);
|
|
1960
1960
|
const containerClasses = [
|
|
1961
|
-
styles$
|
|
1962
|
-
styles$
|
|
1963
|
-
styles$
|
|
1964
|
-
fullScreen && styles$
|
|
1965
|
-
overlay && styles$
|
|
1961
|
+
styles$m.loadingContainer,
|
|
1962
|
+
styles$m[size],
|
|
1963
|
+
styles$m[variant],
|
|
1964
|
+
fullScreen && styles$m.fullScreen,
|
|
1965
|
+
overlay && styles$m.overlay,
|
|
1966
1966
|
className
|
|
1967
1967
|
].filter(Boolean).join(' ');
|
|
1968
1968
|
const customStyle = {
|
|
1969
1969
|
...(color && { '--spinner-color': color }),
|
|
1970
1970
|
...(backgroundColor && { '--spinner-background': backgroundColor }),
|
|
1971
1971
|
};
|
|
1972
|
-
const renderDots = () => (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$
|
|
1972
|
+
const renderDots = () => (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$m.dotsSpinner, animate: { rotate: 360 }, transition: {
|
|
1973
1973
|
duration: 2,
|
|
1974
1974
|
repeat: Infinity,
|
|
1975
1975
|
ease: 'linear'
|
|
1976
|
-
}, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1976
|
+
}, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.dot1, animate: {
|
|
1977
1977
|
scale: [1, 1.3, 1],
|
|
1978
1978
|
y: [0, -6, 0]
|
|
1979
1979
|
}, transition: {
|
|
@@ -1981,7 +1981,7 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1981
1981
|
repeat: Infinity,
|
|
1982
1982
|
ease: 'easeInOut',
|
|
1983
1983
|
delay: 0
|
|
1984
|
-
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1984
|
+
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.dot2, animate: {
|
|
1985
1985
|
scale: [1, 1.3, 1],
|
|
1986
1986
|
y: [0, -6, 0]
|
|
1987
1987
|
}, transition: {
|
|
@@ -1989,7 +1989,7 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1989
1989
|
repeat: Infinity,
|
|
1990
1990
|
ease: 'easeInOut',
|
|
1991
1991
|
delay: 0.5
|
|
1992
|
-
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1992
|
+
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.dot3, animate: {
|
|
1993
1993
|
scale: [1, 1.3, 1],
|
|
1994
1994
|
y: [0, -6, 0]
|
|
1995
1995
|
}, transition: {
|
|
@@ -1998,12 +1998,12 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1998
1998
|
ease: 'easeInOut',
|
|
1999
1999
|
delay: 1
|
|
2000
2000
|
} })] }));
|
|
2001
|
-
const renderSpinner = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
2001
|
+
const renderSpinner = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.circleSpinner, animate: { rotate: 360 }, transition: {
|
|
2002
2002
|
duration: 1,
|
|
2003
2003
|
repeat: Infinity,
|
|
2004
2004
|
ease: 'linear'
|
|
2005
2005
|
} }));
|
|
2006
|
-
const renderPulse = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
2006
|
+
const renderPulse = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.pulseSpinner, animate: {
|
|
2007
2007
|
scale: [1, 1.2, 1],
|
|
2008
2008
|
opacity: [1, 0.7, 1]
|
|
2009
2009
|
}, transition: {
|
|
@@ -2022,10 +2022,10 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
2022
2022
|
return renderDots();
|
|
2023
2023
|
}
|
|
2024
2024
|
};
|
|
2025
|
-
return (jsxRuntime.jsxs("div", { className: containerClasses, style: customStyle, children: [renderSpinnerVariant(), showMessage && (jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: jsxRuntime.jsx(framerMotion.motion.p, { className: styles$
|
|
2025
|
+
return (jsxRuntime.jsxs("div", { className: containerClasses, style: customStyle, children: [renderSpinnerVariant(), showMessage && (jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: jsxRuntime.jsx(framerMotion.motion.p, { className: styles$m.loadingText, initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 }, transition: {
|
|
2026
2026
|
duration: 0.4,
|
|
2027
2027
|
ease: 'easeOut'
|
|
2028
|
-
}, children: currentMessage }, currentMessage) })), showSparkles && (jsxRuntime.jsx("div", { className: styles$
|
|
2028
|
+
}, children: currentMessage }, currentMessage) })), showSparkles && (jsxRuntime.jsx("div", { className: styles$m.sparkleContainer, children: [...Array(4)].map((_, i) => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.sparkle, animate: {
|
|
2029
2029
|
opacity: [0, 1, 0],
|
|
2030
2030
|
scale: [0.5, 1, 0.5],
|
|
2031
2031
|
rotate: [0, 180, 360]
|
|
@@ -2040,7 +2040,7 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
2040
2040
|
} }, i))) }))] }));
|
|
2041
2041
|
};
|
|
2042
2042
|
|
|
2043
|
-
var styles$
|
|
2043
|
+
var styles$l = {"wrapper":"DecryptedText-module_wrapper__tuLvf","srOnly":"DecryptedText-module_srOnly__A-K2T"};
|
|
2044
2044
|
|
|
2045
2045
|
/**
|
|
2046
2046
|
* DecryptedText Component
|
|
@@ -2224,13 +2224,13 @@ const DecryptedText = ({ text, speed = 50, maxIterations = 10, sequential = fals
|
|
|
2224
2224
|
onMouseLeave: () => setIsHovering(false),
|
|
2225
2225
|
}
|
|
2226
2226
|
: {};
|
|
2227
|
-
return (jsxRuntime.jsxs(framerMotion.motion.span, { className: `${styles$
|
|
2227
|
+
return (jsxRuntime.jsxs(framerMotion.motion.span, { className: `${styles$l.wrapper} ${parentClassName}`, ref: containerRef, ...hoverProps, ...props, children: [jsxRuntime.jsx("span", { className: styles$l.srOnly, children: displayText }), jsxRuntime.jsx("span", { "aria-hidden": "true", children: displayText.split('').map((char, index) => {
|
|
2228
2228
|
const isRevealedOrDone = revealedIndices.has(index) || !isScrambling || !isHovering;
|
|
2229
2229
|
return (jsxRuntime.jsx("span", { className: isRevealedOrDone ? className : encryptedClassName, children: char }, index));
|
|
2230
2230
|
}) })] }));
|
|
2231
2231
|
};
|
|
2232
2232
|
|
|
2233
|
-
var styles$
|
|
2233
|
+
var styles$k = {"arrayInput":"ArrayInput-module_arrayInput__q1x7A","arrayInputLabel":"ArrayInput-module_arrayInputLabel__HyUC7","arrayInputItem":"ArrayInput-module_arrayInputItem__bFtgl","inputWrapper":"ArrayInput-module_inputWrapper__ajhbW","input":"ArrayInput-module_input__1uywi","complexItem":"ArrayInput-module_complexItem__zr-Q-","fieldsWrapper":"ArrayInput-module_fieldsWrapper__7BVPa","removeButton":"ArrayInput-module_removeButton__gYf8Y","addButton":"ArrayInput-module_addButton__mia29"};
|
|
2234
2234
|
|
|
2235
2235
|
/**
|
|
2236
2236
|
* ArrayInput component - Versatile dynamic list manager
|
|
@@ -2297,11 +2297,11 @@ function SimpleArrayInput({ label, values, onChange, placeholder, itemStyle, inp
|
|
|
2297
2297
|
itemIdsRef.current.splice(index, 1);
|
|
2298
2298
|
onChange(newValues);
|
|
2299
2299
|
};
|
|
2300
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
2300
|
+
return (jsxRuntime.jsxs("div", { className: styles$k.arrayInput, children: [jsxRuntime.jsx("h3", { className: styles$k.arrayInputLabel, children: label }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(framerMotion.AnimatePresence, { children: values.map((value, index) => (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$k.arrayInputItem, style: itemStyle, initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0 }, transition: {
|
|
2301
2301
|
duration: 0.3,
|
|
2302
2302
|
ease: "easeInOut",
|
|
2303
2303
|
layout: { duration: 0.2 }
|
|
2304
|
-
}, children: [jsxRuntime.jsx("div", { className: styles$
|
|
2304
|
+
}, children: [jsxRuntime.jsx("div", { className: styles$k.inputWrapper, children: multiline ? (jsxRuntime.jsx("div", { style: inputStyle, children: jsxRuntime.jsx(TextArea, { label: "", value: value, onChange: (newValue) => handleChange(index, newValue), placeholder: placeholder, rows: rows, compact: true }) })) : (jsxRuntime.jsx("input", { type: "text", value: value, onChange: (e) => handleChange(index, e.target.value), placeholder: placeholder, className: styles$k.input, style: inputStyle })) }), jsxRuntime.jsx(Button, { variant: "ghost", size: "small", onClick: () => handleRemove(index), "aria-label": "Remove item", className: styles$k.removeButton, children: jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) })] }, itemIdsRef.current[index]))) }) }), jsxRuntime.jsx(Button, { variant: buttonVariant, size: "small", onClick: handleAdd, className: styles$k.addButton, children: label })] }));
|
|
2305
2305
|
}
|
|
2306
2306
|
// Complex object array implementation
|
|
2307
2307
|
function ComplexArrayInput({ label, values, onChange, fields, getKey, itemStyle, inputStyle, buttonVariant = 'primary' }) {
|
|
@@ -2326,14 +2326,14 @@ function ComplexArrayInput({ label, values, onChange, fields, getKey, itemStyle,
|
|
|
2326
2326
|
// Generate key from all field values
|
|
2327
2327
|
return fields.map(f => item[f.name] || '').join('-') + `-${index}`;
|
|
2328
2328
|
};
|
|
2329
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
2329
|
+
return (jsxRuntime.jsxs("div", { className: styles$k.arrayInput, children: [jsxRuntime.jsx("h3", { className: styles$k.arrayInputLabel, children: label }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(framerMotion.AnimatePresence, { children: values.map((value, index) => (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$k.arrayInputItem} ${fields.length > 1 ? styles$k.complexItem : ''}`, style: itemStyle, initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0 }, transition: {
|
|
2330
2330
|
duration: 0.3,
|
|
2331
2331
|
ease: "easeInOut",
|
|
2332
2332
|
layout: { duration: 0.2 }
|
|
2333
|
-
}, children: [jsxRuntime.jsx("div", { className: styles$
|
|
2333
|
+
}, children: [jsxRuntime.jsx("div", { className: styles$k.fieldsWrapper, children: fields.map((field) => (jsxRuntime.jsx("div", { style: inputStyle, children: field.multiline ? (jsxRuntime.jsx(TextArea, { value: value[field.name] || '', onChange: (newValue) => handleChange(index, field.name, newValue), label: field.label, placeholder: field.placeholder, rows: field.rows, compact: true })) : (jsxRuntime.jsx(TextInput, { value: value[field.name] || '', onChange: (newValue) => handleChange(index, field.name, newValue), label: field.label, type: field.type, placeholder: field.placeholder })) }, field.name))) }), jsxRuntime.jsx(Button, { variant: "ghost", size: "small", onClick: () => handleRemove(index), "aria-label": "Remove item", className: styles$k.removeButton, children: jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) })] }, generateKey(value, index)))) }) }), jsxRuntime.jsxs(Button, { variant: buttonVariant, size: "small", onClick: handleAdd, className: styles$k.addButton, children: ["Add ", label] })] }));
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
|
-
var styles$
|
|
2336
|
+
var styles$j = {"fab":"EditFAB-module_fab__nSrTJ","primary":"EditFAB-module_primary__zbA9n","secondary":"EditFAB-module_secondary__BnXs0","success":"EditFAB-module_success__kcLg3","loader":"EditFAB-module_loader__TaJOm","draggable":"EditFAB-module_draggable__eE2vE","dragging":"EditFAB-module_dragging__btRJe"};
|
|
2337
2337
|
|
|
2338
2338
|
const EditFAB = ({ canEdit, isEditMode, hasUnsavedChanges = false, isSaving = false, onEnterEditMode, onExitEditMode, position = { bottom: 32, right: 32 } }) => {
|
|
2339
2339
|
const [isMobile, setIsMobile] = React.useState(false);
|
|
@@ -2418,15 +2418,15 @@ const EditFAB = ({ canEdit, isEditMode, hasUnsavedChanges = false, isSaving = fa
|
|
|
2418
2418
|
};
|
|
2419
2419
|
const getVariantClass = () => {
|
|
2420
2420
|
if (isSaving)
|
|
2421
|
-
return styles$
|
|
2421
|
+
return styles$j.primary;
|
|
2422
2422
|
if (isEditMode) {
|
|
2423
|
-
return hasUnsavedChanges ? styles$
|
|
2423
|
+
return hasUnsavedChanges ? styles$j.success : styles$j.secondary;
|
|
2424
2424
|
}
|
|
2425
|
-
return styles$
|
|
2425
|
+
return styles$j.primary;
|
|
2426
2426
|
};
|
|
2427
2427
|
const getIcon = () => {
|
|
2428
2428
|
if (isSaving) {
|
|
2429
|
-
return jsxRuntime.jsx("div", { className: styles$
|
|
2429
|
+
return jsxRuntime.jsx("div", { className: styles$j.loader });
|
|
2430
2430
|
}
|
|
2431
2431
|
if (isEditMode) {
|
|
2432
2432
|
return hasUnsavedChanges ? jsxRuntime.jsx(lucideReact.Check, { size: 24 }) : jsxRuntime.jsx(lucideReact.X, { size: 24 });
|
|
@@ -2441,14 +2441,14 @@ const EditFAB = ({ canEdit, isEditMode, hasUnsavedChanges = false, isSaving = fa
|
|
|
2441
2441
|
}
|
|
2442
2442
|
return "Enter edit mode";
|
|
2443
2443
|
};
|
|
2444
|
-
return (jsxRuntime.jsx(framerMotion.motion.button, { ref: fabRef, className: `${styles$
|
|
2444
|
+
return (jsxRuntime.jsx(framerMotion.motion.button, { ref: fabRef, className: `${styles$j.fab} ${getVariantClass()} ${isMobile ? styles$j.draggable : ''} ${isDragging ? styles$j.dragging : ''}`, style: getPositionStyles(), onClick: handleClick, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, disabled: isSaving, "aria-label": getAriaLabel(), initial: { scale: 0, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0, opacity: 0 }, whileHover: !isSaving && !isDragging ? { scale: 1.1 } : {}, whileTap: !isSaving && !isDragging ? { scale: 0.9 } : {}, transition: {
|
|
2445
2445
|
type: "spring",
|
|
2446
2446
|
stiffness: 260,
|
|
2447
2447
|
damping: 20
|
|
2448
2448
|
}, children: getIcon() }));
|
|
2449
2449
|
};
|
|
2450
2450
|
|
|
2451
|
-
var styles$
|
|
2451
|
+
var styles$i = {"searchContainer":"SearchBar-module_searchContainer__TdM1w","searchInputWrapper":"SearchBar-module_searchInputWrapper__kCZLU","searchIcon":"SearchBar-module_searchIcon__IIxEu","searchInput":"SearchBar-module_searchInput__V4gkE","clearButton":"SearchBar-module_clearButton__7fNIY","filterSelect":"SearchBar-module_filterSelect__xIVE4","resultsDropdown":"SearchBar-module_resultsDropdown__yh6NF","loadingState":"SearchBar-module_loadingState__4gidK","emptyState":"SearchBar-module_emptyState__RbI4s","spinner":"SearchBar-module_spinner__PMc6-","resultsGroups":"SearchBar-module_resultsGroups__U24DC","resultGroup":"SearchBar-module_resultGroup__SoTQH","groupHeader":"SearchBar-module_groupHeader__bFRHA","groupIcon":"SearchBar-module_groupIcon__9ENM-","groupTitle":"SearchBar-module_groupTitle__ZekZs","groupCount":"SearchBar-module_groupCount__PQIqw","groupResults":"SearchBar-module_groupResults__xTF52","resultItem":"SearchBar-module_resultItem__VaKKy","highlighted":"SearchBar-module_highlighted__Q-3sH","resultTitle":"SearchBar-module_resultTitle__i1uqL","resultSubtitle":"SearchBar-module_resultSubtitle__LQOJ1","resultMeta":"SearchBar-module_resultMeta__Kmkrn","resultContent":"SearchBar-module_resultContent__TzVzL","highlight":"SearchBar-module_highlight__Q3PSP"};
|
|
2452
2452
|
|
|
2453
2453
|
// Default filter options for backwards compatibility
|
|
2454
2454
|
const defaultFilterOptions = [
|
|
@@ -2641,18 +2641,18 @@ const SearchBar = ({ className, placeholder = "Search (Ctrl+Space)...", onSearch
|
|
|
2641
2641
|
return text || '';
|
|
2642
2642
|
const regex = new RegExp(`(${highlight.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
|
|
2643
2643
|
const parts = text.split(regex);
|
|
2644
|
-
return parts.map((part, index) => regex.test(part) ? (jsxRuntime.jsx("mark", { className: styles$
|
|
2644
|
+
return parts.map((part, index) => regex.test(part) ? (jsxRuntime.jsx("mark", { className: styles$i.highlight, children: part }, index)) : (part));
|
|
2645
2645
|
};
|
|
2646
|
-
return (jsxRuntime.jsxs("div", { ref: searchRef, className: `${styles$
|
|
2646
|
+
return (jsxRuntime.jsxs("div", { ref: searchRef, className: `${styles$i.searchContainer} ${className || ''}`, children: [jsxRuntime.jsxs("div", { className: styles$i.searchInputWrapper, children: [jsxRuntime.jsx(lucideReact.Search, { className: styles$i.searchIcon }), jsxRuntime.jsx("input", { ref: inputRef, type: "text", value: query, onChange: (e) => setQuery(e.target.value), onKeyDown: handleKeyDown, onFocus: () => query.trim() && results.length > 0 && setIsDropdownOpen(true), placeholder: placeholder, className: styles$i.searchInput, "aria-label": "Search", "aria-expanded": isDropdownOpen, "aria-controls": "search-results", "aria-autocomplete": "list" }), query && (jsxRuntime.jsx(framerMotion.motion.button, { className: styles$i.clearButton, onClick: handleClear, whileHover: { scale: 1.1 }, whileTap: { scale: 0.9 }, initial: { opacity: 0, scale: 0.8 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.8 }, children: jsxRuntime.jsx(lucideReact.X, {}) })), showFilter && (jsxRuntime.jsx("select", { value: filter, onChange: (e) => setFilter(e.target.value), className: styles$i.filterSelect, "aria-label": "Filter search results", children: filterOptions.map(option => (jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.value))) }))] }), jsxRuntime.jsx(framerMotion.AnimatePresence, { children: isDropdownOpen && (jsxRuntime.jsx(framerMotion.motion.div, { ref: resultsRef, id: "search-results", className: styles$i.resultsDropdown, initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 }, transition: { duration: 0.2 }, children: isLoading ? (jsxRuntime.jsxs("div", { className: styles$i.loadingState, children: [jsxRuntime.jsx("div", { className: styles$i.spinner }), jsxRuntime.jsx("span", { children: "Searching..." })] })) : results.length === 0 ? (jsxRuntime.jsxs("div", { className: styles$i.emptyState, children: ["No results found for \"", query, "\""] })) : (jsxRuntime.jsx("div", { className: styles$i.resultsGroups, children: Object.entries(groupedResults).map(([type, groupResults]) => {
|
|
2647
2647
|
const Icon = entityIcons[type];
|
|
2648
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
2648
|
+
return (jsxRuntime.jsxs("div", { className: styles$i.resultGroup, children: [jsxRuntime.jsxs("div", { className: styles$i.groupHeader, children: [Icon && jsxRuntime.jsx(Icon, { className: styles$i.groupIcon }), jsxRuntime.jsx("span", { className: styles$i.groupTitle, children: type.charAt(0).toUpperCase() + type.slice(1) }), jsxRuntime.jsx("span", { className: styles$i.groupCount, children: groupResults.length })] }), jsxRuntime.jsx("div", { className: styles$i.groupResults, children: groupResults.map((result) => {
|
|
2649
2649
|
const globalIndex = results.indexOf(result);
|
|
2650
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { "data-result-index": globalIndex, className: `${styles$
|
|
2650
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { "data-result-index": globalIndex, className: `${styles$i.resultItem} ${highlightedIndex === globalIndex ? styles$i.highlighted : ''}`, onClick: () => handleResultClick(result), whileHover: { x: 4 }, onMouseEnter: () => setHighlightedIndex(globalIndex), children: [jsxRuntime.jsxs("div", { className: styles$i.resultContent, children: [jsxRuntime.jsx("div", { className: styles$i.resultTitle, children: highlightMatch(result.title || 'Untitled', query) }), result.subtitle && (jsxRuntime.jsx("div", { className: styles$i.resultSubtitle, children: highlightMatch(result.subtitle, query) }))] }), result.meta && (jsxRuntime.jsx("div", { className: styles$i.resultMeta, children: result.meta }))] }, `${result.type}-${result.id}`));
|
|
2651
2651
|
}) })] }, type));
|
|
2652
2652
|
}) })) })) })] }));
|
|
2653
2653
|
};
|
|
2654
2654
|
|
|
2655
|
-
var styles$
|
|
2655
|
+
var styles$h = {"modalOverlay":"TimePickerModal-module_modalOverlay__Cbq5-","modalContent":"TimePickerModal-module_modalContent__e6py2","modalHeader":"TimePickerModal-module_modalHeader__XhTgK","closeButton":"TimePickerModal-module_closeButton__qsRAG","timeDisplay":"TimePickerModal-module_timeDisplay__voGP4","pickerContainer":"TimePickerModal-module_pickerContainer__4qn3r","pickerColumn":"TimePickerModal-module_pickerColumn__0-kWf","pickerLabel":"TimePickerModal-module_pickerLabel__e7zQ2","pickerScroll":"TimePickerModal-module_pickerScroll__5Dcvw","pickerItem":"TimePickerModal-module_pickerItem__n8sC2","selected":"TimePickerModal-module_selected__oQA8Z","pickerDivider":"TimePickerModal-module_pickerDivider__eg83F","modalActions":"TimePickerModal-module_modalActions__eJRWU","cancelButton":"TimePickerModal-module_cancelButton__zri81","confirmButton":"TimePickerModal-module_confirmButton__q2p3Q"};
|
|
2656
2656
|
|
|
2657
2657
|
function TimePickerModal({ isOpen, onClose, value, onChange }) {
|
|
2658
2658
|
const [hours, minutes] = value ? value.split(':').map(Number) : [12, 0];
|
|
@@ -2673,10 +2673,10 @@ function TimePickerModal({ isOpen, onClose, value, onChange }) {
|
|
|
2673
2673
|
};
|
|
2674
2674
|
if (!isOpen)
|
|
2675
2675
|
return null;
|
|
2676
|
-
return (jsxRuntime.jsx("div", { className: styles$
|
|
2676
|
+
return (jsxRuntime.jsx("div", { className: styles$h.modalOverlay, onClick: onClose, children: jsxRuntime.jsxs("div", { className: styles$h.modalContent, onClick: (e) => e.stopPropagation(), children: [jsxRuntime.jsxs("div", { className: styles$h.modalHeader, children: [jsxRuntime.jsx("h3", { children: "Select Time" }), jsxRuntime.jsx("button", { className: styles$h.closeButton, onClick: onClose, "aria-label": "Close", children: jsxRuntime.jsx(lucideReact.X, {}) })] }), jsxRuntime.jsxs("div", { className: styles$h.timeDisplay, children: [selectedHour.toString().padStart(2, '0'), ":", selectedMinute.toString().padStart(2, '0')] }), jsxRuntime.jsxs("div", { className: styles$h.pickerContainer, children: [jsxRuntime.jsxs("div", { className: styles$h.pickerColumn, children: [jsxRuntime.jsx("div", { className: styles$h.pickerLabel, children: "Hours" }), jsxRuntime.jsx("div", { className: styles$h.pickerScroll, children: Array.from({ length: 24 }, (_, i) => (jsxRuntime.jsx("button", { className: `${styles$h.pickerItem} ${selectedHour === i ? styles$h.selected : ''}`, onClick: () => setSelectedHour(i), children: i.toString().padStart(2, '0') }, i))) })] }), jsxRuntime.jsx("div", { className: styles$h.pickerDivider, children: ":" }), jsxRuntime.jsxs("div", { className: styles$h.pickerColumn, children: [jsxRuntime.jsx("div", { className: styles$h.pickerLabel, children: "Minutes" }), jsxRuntime.jsx("div", { className: styles$h.pickerScroll, children: Array.from({ length: 60 }, (_, i) => (jsxRuntime.jsx("button", { className: `${styles$h.pickerItem} ${selectedMinute === i ? styles$h.selected : ''}`, onClick: () => setSelectedMinute(i), children: i.toString().padStart(2, '0') }, i))) })] })] }), jsxRuntime.jsxs("div", { className: styles$h.modalActions, children: [jsxRuntime.jsx("button", { className: styles$h.cancelButton, onClick: onClose, children: "Cancel" }), jsxRuntime.jsx("button", { className: styles$h.confirmButton, onClick: handleConfirm, children: "Confirm" })] })] }) }));
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
|
-
var styles$
|
|
2679
|
+
var styles$g = {"timeInput":"TimeInput-module_timeInput__h1DpT","label":"TimeInput-module_label__d4rZw","required":"TimeInput-module_required__rc1vq","inputWrapper":"TimeInput-module_inputWrapper__4RPAn","textInput":"TimeInput-module_textInput__M3eBZ","clockButton":"TimeInput-module_clockButton__3qoub","error":"TimeInput-module_error__gJnpk","success":"TimeInput-module_success__np-lF","loading":"TimeInput-module_loading__Wb1DC","disabled":"TimeInput-module_disabled__wxiZ-"};
|
|
2680
2680
|
|
|
2681
2681
|
function TimeInput({ label, value, onChange, placeholder = "14:30", onFocus, onBlur, error = false, success = false, loading = false, disabled = false, required = false, className = "" }) {
|
|
2682
2682
|
const [showPicker, setShowPicker] = React.useState(false);
|
|
@@ -2729,20 +2729,20 @@ function TimeInput({ label, value, onChange, placeholder = "14:30", onFocus, onB
|
|
|
2729
2729
|
}
|
|
2730
2730
|
};
|
|
2731
2731
|
const getContainerClassName = () => {
|
|
2732
|
-
const classes = [styles$
|
|
2732
|
+
const classes = [styles$g.timeInput];
|
|
2733
2733
|
if (error)
|
|
2734
|
-
classes.push(styles$
|
|
2734
|
+
classes.push(styles$g.error);
|
|
2735
2735
|
if (success)
|
|
2736
|
-
classes.push(styles$
|
|
2736
|
+
classes.push(styles$g.success);
|
|
2737
2737
|
if (loading)
|
|
2738
|
-
classes.push(styles$
|
|
2738
|
+
classes.push(styles$g.loading);
|
|
2739
2739
|
if (disabled)
|
|
2740
|
-
classes.push(styles$
|
|
2740
|
+
classes.push(styles$g.disabled);
|
|
2741
2741
|
if (className)
|
|
2742
2742
|
classes.push(className);
|
|
2743
2743
|
return classes.join(' ');
|
|
2744
2744
|
};
|
|
2745
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [jsxRuntime.jsxs("label", { className: styles$
|
|
2745
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [jsxRuntime.jsxs("label", { className: styles$g.label, children: [label, required && jsxRuntime.jsx("span", { className: styles$g.required, children: "*" })] }), jsxRuntime.jsxs("div", { className: styles$g.inputWrapper, children: [jsxRuntime.jsx("input", { type: "text", value: value, onChange: (e) => handleTextChange(e.target.value), onFocus: onFocus, onBlur: onBlur, placeholder: placeholder, className: styles$g.textInput, maxLength: 5, disabled: disabled || loading, "aria-invalid": error, "aria-required": required, inputMode: "numeric", pattern: "[0-9:]*" }), jsxRuntime.jsx("button", { type: "button", onClick: handleClockClick, className: styles$g.clockButton, title: "Open time picker", disabled: disabled || loading, "aria-label": "Open time picker", children: jsxRuntime.jsx(lucideReact.Clock, { size: 20 }) })] })] }), jsxRuntime.jsx(TimePickerModal, { isOpen: showPicker, onClose: () => setShowPicker(false), value: value, onChange: onChange })] }));
|
|
2746
2746
|
}
|
|
2747
2747
|
|
|
2748
2748
|
const ThemeContext = React.createContext(undefined);
|
|
@@ -2807,7 +2807,7 @@ const ThemeProvider = ({ children, defaultTheme = 'light', storageKey = 'app-the
|
|
|
2807
2807
|
return (jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children: children }));
|
|
2808
2808
|
};
|
|
2809
2809
|
|
|
2810
|
-
var styles$
|
|
2810
|
+
var styles$f = {"button":"ThemeSwitcher-module_button__VfRjU","iconWrapper":"ThemeSwitcher-module_iconWrapper__FpHo8","label":"ThemeSwitcher-module_label__2Hfkp","toggle":"ThemeSwitcher-module_toggle__ATXx4","toggleTrack":"ThemeSwitcher-module_toggleTrack__x28Rv","toggleThumb":"ThemeSwitcher-module_toggleThumb__V8QeN","dropdown":"ThemeSwitcher-module_dropdown__3qLdt","dropdownTrigger":"ThemeSwitcher-module_dropdownTrigger__UzYV5","dropdownMenu":"ThemeSwitcher-module_dropdownMenu__3L5hT","dropdownItem":"ThemeSwitcher-module_dropdownItem__inw-K","active":"ThemeSwitcher-module_active__OHP19","icon":"ThemeSwitcher-module_icon__iRZiJ","text":"ThemeSwitcher-module_text__OCOoA"};
|
|
2811
2811
|
|
|
2812
2812
|
const ThemeSwitcher = ({ variant = 'button', showLabel = false, className = '', currentTheme, onThemeChange, themes: customThemes, }) => {
|
|
2813
2813
|
// Use safe version that returns null when outside a ThemeProvider
|
|
@@ -2828,19 +2828,19 @@ const ThemeSwitcher = ({ variant = 'button', showLabel = false, className = '',
|
|
|
2828
2828
|
if (variant === 'toggle') {
|
|
2829
2829
|
// Simple toggle between light and dark
|
|
2830
2830
|
const isDark = theme.includes('dark');
|
|
2831
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$
|
|
2831
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$f.toggle} ${className}`, onClick: () => setTheme(isDark ? 'light' : 'dark'), whileTap: { scale: 0.95 }, "aria-label": "Toggle theme", children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$f.toggleTrack, animate: { backgroundColor: isDark ? 'var(--color-primary)' : 'var(--color-border)' }, children: jsxRuntime.jsx(framerMotion.motion.div, { className: styles$f.toggleThumb, animate: { x: isDark ? 24 : 0 }, transition: { type: 'spring', stiffness: 500, damping: 30 }, children: isDark ? jsxRuntime.jsx(lucideReact.Moon, { size: 14 }) : jsxRuntime.jsx(lucideReact.Sun, { size: 14 }) }) }), showLabel && jsxRuntime.jsx("span", { className: styles$f.label, children: isDark ? 'Dark' : 'Light' })] }));
|
|
2832
2832
|
}
|
|
2833
2833
|
if (variant === 'dropdown') {
|
|
2834
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
2834
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$f.dropdown} ${className}`, children: [jsxRuntime.jsxs(framerMotion.motion.button, { className: styles$f.dropdownTrigger, whileTap: { scale: 0.98 }, children: [currentThemeData.icon, showLabel && jsxRuntime.jsx("span", { className: styles$f.label, children: currentThemeData.label })] }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$f.dropdownMenu, initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, children: themes.map((t) => (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$f.dropdownItem} ${theme === t.value ? styles$f.active : ''}`, onClick: () => setTheme(t.value), whileHover: { x: 4 }, whileTap: { scale: 0.98 }, children: [jsxRuntime.jsx("span", { className: styles$f.icon, children: t.icon }), jsxRuntime.jsx("span", { className: styles$f.text, children: t.label })] }, t.value))) })] }));
|
|
2835
2835
|
}
|
|
2836
2836
|
// Default button variant - cycles through themes
|
|
2837
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$
|
|
2837
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$f.button} ${className}`, onClick: () => {
|
|
2838
2838
|
const nextIndex = (currentThemeIndex + 1) % themes.length;
|
|
2839
2839
|
setTheme(themes[nextIndex].value);
|
|
2840
|
-
}, whileTap: { scale: 0.95 }, whileHover: { scale: 1.05 }, "aria-label": `Current theme: ${currentThemeData.label}. Click to change.`, children: [jsxRuntime.jsx(framerMotion.motion.div, { initial: { rotate: -180, opacity: 0 }, animate: { rotate: 0, opacity: 1 }, exit: { rotate: 180, opacity: 0 }, transition: { duration: 0.3 }, className: styles$
|
|
2840
|
+
}, whileTap: { scale: 0.95 }, whileHover: { scale: 1.05 }, "aria-label": `Current theme: ${currentThemeData.label}. Click to change.`, children: [jsxRuntime.jsx(framerMotion.motion.div, { initial: { rotate: -180, opacity: 0 }, animate: { rotate: 0, opacity: 1 }, exit: { rotate: 180, opacity: 0 }, transition: { duration: 0.3 }, className: styles$f.iconWrapper, children: currentThemeData.icon }, theme), showLabel && jsxRuntime.jsx("span", { className: styles$f.label, children: currentThemeData.label })] }));
|
|
2841
2841
|
};
|
|
2842
2842
|
|
|
2843
|
-
var styles$
|
|
2843
|
+
var styles$e = {"tabs":"Tabs-module_tabs__Vlvn7","tab":"Tabs-module_tab__uQKim","tabIcon":"Tabs-module_tabIcon__AgN-O"};
|
|
2844
2844
|
|
|
2845
2845
|
// Default tabs for backwards compatibility
|
|
2846
2846
|
const defaultTabs = [
|
|
@@ -2851,39 +2851,39 @@ const defaultTabs = [
|
|
|
2851
2851
|
];
|
|
2852
2852
|
const Tabs = ({ activeTab, onTabChange, tabs: customTabs, className = '' }) => {
|
|
2853
2853
|
const tabs = customTabs ?? defaultTabs;
|
|
2854
|
-
return (jsxRuntime.jsx("div", { className: `${styles$
|
|
2854
|
+
return (jsxRuntime.jsx("div", { className: `${styles$e.tabs} ${className}`, children: tabs.map((tab) => {
|
|
2855
2855
|
const isActive = activeTab === tab.id;
|
|
2856
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: styles$
|
|
2856
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: styles$e.tab, "data-active": isActive, onClick: () => onTabChange(tab.id), style: { position: 'relative' }, children: [jsxRuntime.jsx(framerMotion.motion.div, { animate: {
|
|
2857
2857
|
rotate: isActive ? [0, -10, 10, -5, 5, 0] : 0,
|
|
2858
2858
|
}, transition: {
|
|
2859
2859
|
rotate: {
|
|
2860
2860
|
duration: 0.5,
|
|
2861
2861
|
ease: 'easeInOut'
|
|
2862
2862
|
}
|
|
2863
|
-
}, children: tab.icon && (React.isValidElement(tab.icon) ? (jsxRuntime.jsx("span", { className: styles$
|
|
2863
|
+
}, children: tab.icon && (React.isValidElement(tab.icon) ? (jsxRuntime.jsx("span", { className: styles$e.tabIcon, children: tab.icon })) : (jsxRuntime.jsx("span", { className: styles$e.tabIcon, children: React.createElement(tab.icon) }))) }), jsxRuntime.jsx("span", { children: tab.label })] }, tab.id));
|
|
2864
2864
|
}) }));
|
|
2865
2865
|
};
|
|
2866
2866
|
|
|
2867
|
-
var styles$
|
|
2867
|
+
var styles$d = {"toastContainer":"Toast-module_toastContainer__gp5C0","toast":"Toast-module_toast__eenNR","toastSuccess":"Toast-module_toastSuccess__e-cSx","toastError":"Toast-module_toastError__6JO9w","toastWarning":"Toast-module_toastWarning__pJoF1","toastInfo":"Toast-module_toastInfo__y33kR","icon":"Toast-module_icon__Z-D6i","iconSuccess":"Toast-module_iconSuccess__ehY27","iconError":"Toast-module_iconError__nXhZz","iconWarning":"Toast-module_iconWarning__Ie8oD","iconInfo":"Toast-module_iconInfo__8vOf5","content":"Toast-module_content__eBhK8","title":"Toast-module_title__EfUfZ","message":"Toast-module_message__l4pyr","closeButton":"Toast-module_closeButton__UWOVG","progressBar":"Toast-module_progressBar__fGwBU"};
|
|
2868
2868
|
|
|
2869
2869
|
const getIcon = (type) => {
|
|
2870
2870
|
switch (type) {
|
|
2871
2871
|
case 'success':
|
|
2872
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2872
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$d.icon} ${styles$d.iconSuccess}`, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }));
|
|
2873
2873
|
case 'error':
|
|
2874
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2874
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$d.icon} ${styles$d.iconError}`, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }));
|
|
2875
2875
|
case 'warning':
|
|
2876
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2876
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$d.icon} ${styles$d.iconWarning}`, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }));
|
|
2877
2877
|
case 'info':
|
|
2878
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2878
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$d.icon} ${styles$d.iconInfo}`, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) }));
|
|
2879
2879
|
}
|
|
2880
2880
|
};
|
|
2881
2881
|
const getToastStyle = (type) => {
|
|
2882
2882
|
switch (type) {
|
|
2883
|
-
case 'success': return styles$
|
|
2884
|
-
case 'error': return styles$
|
|
2885
|
-
case 'warning': return styles$
|
|
2886
|
-
case 'info': return styles$
|
|
2883
|
+
case 'success': return styles$d.toastSuccess;
|
|
2884
|
+
case 'error': return styles$d.toastError;
|
|
2885
|
+
case 'warning': return styles$d.toastWarning;
|
|
2886
|
+
case 'info': return styles$d.toastInfo;
|
|
2887
2887
|
default: return '';
|
|
2888
2888
|
}
|
|
2889
2889
|
};
|
|
@@ -2905,7 +2905,7 @@ const ToastItem = ({ toast, removeToast, }) => {
|
|
|
2905
2905
|
clearInterval(interval);
|
|
2906
2906
|
};
|
|
2907
2907
|
}, [toast.id, duration, removeToast]);
|
|
2908
|
-
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$
|
|
2908
|
+
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$d.toast} ${getToastStyle(toast.type)}`, initial: { opacity: 0, x: 100, scale: 0.9 }, animate: { opacity: 1, x: 0, scale: 1 }, exit: { opacity: 0, x: 100, scale: 0.9 }, transition: { type: 'spring', stiffness: 500, damping: 40 }, layout: true, children: [getIcon(toast.type), jsxRuntime.jsxs("div", { className: styles$d.content, children: [toast.title && jsxRuntime.jsx("p", { className: styles$d.title, children: toast.title }), jsxRuntime.jsx("p", { className: styles$d.message, children: toast.message })] }), jsxRuntime.jsx("button", { className: styles$d.closeButton, onClick: () => removeToast(toast.id), "aria-label": "Close notification", children: jsxRuntime.jsx("svg", { width: "16", height: "16", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$d.progressBar, initial: { width: '100%' }, animate: { width: `${progress}%` }, style: {
|
|
2909
2909
|
color: toast.type === 'success' ? '#10B981'
|
|
2910
2910
|
: toast.type === 'error' ? '#EF4444'
|
|
2911
2911
|
: toast.type === 'warning' ? '#F59E0B'
|
|
@@ -2915,10 +2915,10 @@ const ToastItem = ({ toast, removeToast, }) => {
|
|
|
2915
2915
|
const ToastContainer = ({ toasts, removeToast }) => {
|
|
2916
2916
|
if (typeof document === 'undefined')
|
|
2917
2917
|
return null;
|
|
2918
|
-
return reactDom.createPortal(jsxRuntime.jsx("div", { className: styles$
|
|
2918
|
+
return reactDom.createPortal(jsxRuntime.jsx("div", { className: styles$d.toastContainer, children: jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "sync", children: toasts.map((toast) => (jsxRuntime.jsx(ToastItem, { toast: toast, removeToast: removeToast }, toast.id))) }) }), document.body);
|
|
2919
2919
|
};
|
|
2920
2920
|
|
|
2921
|
-
var styles$
|
|
2921
|
+
var styles$c = {"breadcrumb":"Breadcrumb-module_breadcrumb__pGabz","separator":"Breadcrumb-module_separator__UCmyy","item":"Breadcrumb-module_item__0cLOg","link":"Breadcrumb-module_link__udp8M","current":"Breadcrumb-module_current__3DpQc"};
|
|
2922
2922
|
|
|
2923
2923
|
/**
|
|
2924
2924
|
* Breadcrumb Component
|
|
@@ -2937,13 +2937,13 @@ var styles$b = {"breadcrumb":"Breadcrumb-module_breadcrumb__pGabz","separator":"
|
|
|
2937
2937
|
* />
|
|
2938
2938
|
*/
|
|
2939
2939
|
const Breadcrumb = ({ items, onNavigate, className = '' }) => {
|
|
2940
|
-
return (jsxRuntime.jsx("nav", { className: `${styles$
|
|
2940
|
+
return (jsxRuntime.jsx("nav", { className: `${styles$c.breadcrumb} ${className}`, "aria-label": "Breadcrumb", children: items.map((item, index) => {
|
|
2941
2941
|
const isLast = index === items.length - 1;
|
|
2942
|
-
return (jsxRuntime.jsxs(React.Fragment, { children: [index > 0 && jsxRuntime.jsx(lucideReact.ChevronRight, { size: 14, className: styles$
|
|
2942
|
+
return (jsxRuntime.jsxs(React.Fragment, { children: [index > 0 && jsxRuntime.jsx(lucideReact.ChevronRight, { size: 14, className: styles$c.separator }), isLast || !item.href ? (jsxRuntime.jsx("span", { className: `${styles$c.item} ${isLast ? styles$c.current : ''}`, children: item.label })) : (jsxRuntime.jsx("button", { className: `${styles$c.item} ${styles$c.link}`, onClick: () => onNavigate?.(item.href), children: item.label }))] }, index));
|
|
2943
2943
|
}) }));
|
|
2944
2944
|
};
|
|
2945
2945
|
|
|
2946
|
-
var styles$
|
|
2946
|
+
var styles$b = {"overlay":"LiquidButton-module_overlay__-P-xm","container":"LiquidButton-module_container__f1COS","actions":"LiquidButton-module_actions__XBz7p","actionButton":"LiquidButton-module_actionButton__PlEOk","actionLabel":"LiquidButton-module_actionLabel__tIGHE","button":"LiquidButton-module_button__znjyS"};
|
|
2947
2947
|
|
|
2948
2948
|
/**
|
|
2949
2949
|
* LiquidButton Component
|
|
@@ -2969,13 +2969,81 @@ const LiquidButton = ({ actions, icon: Icon = lucideReact.Plus, className = '',
|
|
|
2969
2969
|
setExpanded(false);
|
|
2970
2970
|
action.onClick();
|
|
2971
2971
|
}, []);
|
|
2972
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(framerMotion.AnimatePresence, { children: expanded && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
2972
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(framerMotion.AnimatePresence, { children: expanded && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$b.overlay, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, onClick: handleToggle })) }), jsxRuntime.jsxs("div", { className: `${styles$b.container} ${className}`, children: [jsxRuntime.jsx(framerMotion.AnimatePresence, { children: expanded && (jsxRuntime.jsx("div", { className: styles$b.actions, children: actions.map((action, index) => (jsxRuntime.jsxs(framerMotion.motion.button, { type: "button", className: styles$b.actionButton, initial: { opacity: 0, scale: 0.8 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.8 }, transition: {
|
|
2973
2973
|
duration: 0.15,
|
|
2974
2974
|
delay: (actions.length - 1 - index) * 0.05,
|
|
2975
|
-
}, onClick: () => handleAction(action), children: [jsxRuntime.jsx(action.icon, { size: 18, color: action.color }), jsxRuntime.jsx("span", { className: styles$
|
|
2975
|
+
}, onClick: () => handleAction(action), children: [jsxRuntime.jsx(action.icon, { size: 18, color: action.color }), jsxRuntime.jsx("span", { className: styles$b.actionLabel, children: action.label })] }, action.key))) })) }), jsxRuntime.jsx(framerMotion.motion.button, { type: "button", className: styles$b.button, onClick: handleToggle, animate: { rotate: expanded ? 45 : 0 }, transition: { duration: 0.2 }, "aria-label": expanded ? 'Close actions' : 'Open actions', children: jsxRuntime.jsx(Icon, { size: 24, strokeWidth: 2.5 }) })] })] }));
|
|
2976
2976
|
};
|
|
2977
2977
|
|
|
2978
|
-
var styles$
|
|
2978
|
+
var styles$a = {"calendar":"Calendar-module_calendar__3mIJS","loading":"Calendar-module_loading__59Z9-","loadingSpinner":"Calendar-module_loadingSpinner__7MXqV","header":"Calendar-module_header__cZHNA","navigation":"Calendar-module_navigation__PGkpY","navButton":"Calendar-module_navButton__kOe-w","title":"Calendar-module_title__oJZ7m","controls":"Calendar-module_controls__i1Z38","todayButton":"Calendar-module_todayButton__Ac9zc","viewToggle":"Calendar-module_viewToggle__Fhg2t","viewButton":"Calendar-module_viewButton__J2WY6","active":"Calendar-module_active__lIqH-","weekDays":"Calendar-module_weekDays__4J-8f","weekNumberHeader":"Calendar-module_weekNumberHeader__xhKbB","weekDay":"Calendar-module_weekDay__cg8Gr","daysGrid":"Calendar-module_daysGrid__ER0GM","weekView":"Calendar-module_weekView__bdtGs","dayCell":"Calendar-module_dayCell__TV-HR","dayNumber":"Calendar-module_dayNumber__ICH-X","today":"Calendar-module_today__eGuUU","events":"Calendar-module_events__qdbs7","event":"Calendar-module_event__Q1Zq3","eventTitle":"Calendar-module_eventTitle__XU7Wd","eventTime":"Calendar-module_eventTime__pMGEB","otherMonth":"Calendar-module_otherMonth__r6VJK","selected":"Calendar-module_selected__5e6h0","compact":"Calendar-module_compact__i0SF3","dots":"Calendar-module_dots__1Q7QR","dot":"Calendar-module_dot__tsCR1","dotMore":"Calendar-module_dotMore__emasD","weekNumber":"Calendar-module_weekNumber__nlo50","completed":"Calendar-module_completed__B-SHI","completedIcon":"Calendar-module_completedIcon__-oDZ9","moreEvents":"Calendar-module_moreEvents__TIKaT","emptyState":"Calendar-module_emptyState__2fcj7","dayView":"Calendar-module_dayView__PCIos","dayViewHeader":"Calendar-module_dayViewHeader__Gvxx2","timeColumnHeader":"Calendar-module_timeColumnHeader__B0btR","dayColumnHeader":"Calendar-module_dayColumnHeader__Rjqwg","allDayStrip":"Calendar-module_allDayStrip__VOqbV","allDayLabel":"Calendar-module_allDayLabel__2AmyT","allDayList":"Calendar-module_allDayList__6hFSb","dayViewScrollContainer":"Calendar-module_dayViewScrollContainer__84Byq","dayTimelineGrid":"Calendar-module_dayTimelineGrid__r1BNI","hourRow":"Calendar-module_hourRow__U-YN-","hourLabel":"Calendar-module_hourLabel__im84k","hourSlots":"Calendar-module_hourSlots__vbtYy","halfHourSlot":"Calendar-module_halfHourSlot__UWIri","halfHourSlotBottom":"Calendar-module_halfHourSlotBottom__aE5Mo","dayEventAnchor":"Calendar-module_dayEventAnchor__oryAi","currentTimeIndicator":"Calendar-module_currentTimeIndicator__GntOZ"};
|
|
2979
|
+
|
|
2980
|
+
var styles$9 = {"wrapper":"DayEventCard-module_wrapper__qvRgl","deleteUnderlay":"DayEventCard-module_deleteUnderlay__fTtuX","card":"DayEventCard-module_card__V9xTi","dragging":"DayEventCard-module_dragging__q19ID","completed":"DayEventCard-module_completed__tq8ol","text":"DayEventCard-module_text__3dWF7","grip":"DayEventCard-module_grip__tmim4","checkIcon":"DayEventCard-module_checkIcon__Ki67j","time":"DayEventCard-module_time__Ojdye","editButton":"DayEventCard-module_editButton__nDi-e"};
|
|
2981
|
+
|
|
2982
|
+
const SWIPE_DELETE_THRESHOLD = -80;
|
|
2983
|
+
const DayEventCard = ({ event, color, textColor, onComplete, onEdit, onDelete, onDragEnd, draggable = true, }) => {
|
|
2984
|
+
const x = framerMotion.useMotionValue(0);
|
|
2985
|
+
const y = framerMotion.useMotionValue(0);
|
|
2986
|
+
const deleteOpacity = framerMotion.useTransform(x, [-80, 0], [1, 0]);
|
|
2987
|
+
const [verticalDragging, setVerticalDragging] = React.useState(false);
|
|
2988
|
+
const didSwipe = React.useRef(false);
|
|
2989
|
+
const dragStart = React.useRef(null);
|
|
2990
|
+
const completed = event.status === 'completed';
|
|
2991
|
+
const handleSwipeEnd = (_, info) => {
|
|
2992
|
+
if (onDelete && info.offset.x < SWIPE_DELETE_THRESHOLD) {
|
|
2993
|
+
framerMotion.animate(x, -1e3, { duration: 0.2, onComplete: () => onDelete(event) });
|
|
2994
|
+
}
|
|
2995
|
+
else {
|
|
2996
|
+
framerMotion.animate(x, 0, { type: 'spring', stiffness: 400, damping: 30 });
|
|
2997
|
+
}
|
|
2998
|
+
};
|
|
2999
|
+
const handleCardClick = () => {
|
|
3000
|
+
if (didSwipe.current) {
|
|
3001
|
+
didSwipe.current = false;
|
|
3002
|
+
return;
|
|
3003
|
+
}
|
|
3004
|
+
if (verticalDragging)
|
|
3005
|
+
return;
|
|
3006
|
+
onComplete?.(event);
|
|
3007
|
+
};
|
|
3008
|
+
const handleGripPointerDown = (e) => {
|
|
3009
|
+
if (!draggable || !onDragEnd)
|
|
3010
|
+
return;
|
|
3011
|
+
e.stopPropagation();
|
|
3012
|
+
e.preventDefault();
|
|
3013
|
+
dragStart.current = { y: e.clientY, pointerId: e.pointerId };
|
|
3014
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
3015
|
+
setVerticalDragging(true);
|
|
3016
|
+
};
|
|
3017
|
+
const handleGripPointerMove = (e) => {
|
|
3018
|
+
if (!dragStart.current)
|
|
3019
|
+
return;
|
|
3020
|
+
const dy = e.clientY - dragStart.current.y;
|
|
3021
|
+
y.set(dy);
|
|
3022
|
+
};
|
|
3023
|
+
const handleGripPointerUp = (e) => {
|
|
3024
|
+
if (!dragStart.current)
|
|
3025
|
+
return;
|
|
3026
|
+
const clientY = e.clientY;
|
|
3027
|
+
try {
|
|
3028
|
+
e.currentTarget.releasePointerCapture(dragStart.current.pointerId);
|
|
3029
|
+
}
|
|
3030
|
+
catch {
|
|
3031
|
+
// ignore
|
|
3032
|
+
}
|
|
3033
|
+
dragStart.current = null;
|
|
3034
|
+
setVerticalDragging(false);
|
|
3035
|
+
framerMotion.animate(y, 0, { type: 'spring', stiffness: 400, damping: 30 });
|
|
3036
|
+
onDragEnd?.(clientY);
|
|
3037
|
+
};
|
|
3038
|
+
const canSwipe = !!onDelete;
|
|
3039
|
+
const showGrip = draggable && !!onDragEnd;
|
|
3040
|
+
return (jsxRuntime.jsxs("div", { className: styles$9.wrapper, children: [canSwipe && (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$9.deleteUnderlay, style: { opacity: deleteOpacity }, children: [jsxRuntime.jsx(lucideReact.Trash2, { size: 16 }), jsxRuntime.jsx("span", { children: "Delete" })] })), jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$9.card} ${completed ? styles$9.completed : ''} ${verticalDragging ? styles$9.dragging : ''}`, style: { x, y, background: color, color: textColor, borderLeftColor: color }, drag: canSwipe && !verticalDragging ? 'x' : false, dragConstraints: canSwipe ? { left: -200, right: 0 } : undefined, dragElastic: 0.15, dragDirectionLock: true, onDragStart: () => {
|
|
3041
|
+
didSwipe.current = true;
|
|
3042
|
+
}, onDragEnd: handleSwipeEnd, whileTap: verticalDragging ? undefined : { scale: 0.98 }, animate: verticalDragging ? { scale: 1.03 } : { scale: 1 }, onClick: handleCardClick, children: [showGrip && (jsxRuntime.jsx("div", { className: styles$9.grip, onPointerDown: handleGripPointerDown, onPointerMove: handleGripPointerMove, onPointerUp: handleGripPointerUp, onPointerCancel: handleGripPointerUp, onClick: (e) => e.stopPropagation(), children: jsxRuntime.jsx(lucideReact.GripVertical, { size: 14 }) })), completed && jsxRuntime.jsx(lucideReact.Check, { size: 14, className: styles$9.checkIcon, strokeWidth: 3 }), jsxRuntime.jsx("span", { className: styles$9.text, children: event.title }), event.time && jsxRuntime.jsx("span", { className: styles$9.time, children: event.time }), onEdit && (jsxRuntime.jsx("button", { className: styles$9.editButton, onClick: (e) => {
|
|
3043
|
+
e.stopPropagation();
|
|
3044
|
+
onEdit(event);
|
|
3045
|
+
}, "aria-label": "Edit event", children: jsxRuntime.jsx(lucideReact.Pencil, { size: 13 }) }))] })] }));
|
|
3046
|
+
};
|
|
2979
3047
|
|
|
2980
3048
|
/**
|
|
2981
3049
|
* Calendar component - A flexible, reusable calendar for displaying events
|
|
@@ -3006,7 +3074,7 @@ var styles$9 = {"calendar":"Calendar-module_calendar__3mIJS","loading":"Calendar
|
|
|
3006
3074
|
* onEventClick={handleEventClick}
|
|
3007
3075
|
* />
|
|
3008
3076
|
*/
|
|
3009
|
-
function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDateClickByView, onTimeSlotClick, onEventDrop, viewMode = 'month', initialDate = new Date(), config = {}, className = '', style = {}, loading = false, emptyState, hideHeader = false, compact = false, selectedDate }) {
|
|
3077
|
+
function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDateClickByView, onTimeSlotClick, onEventDrop, onEventComplete, onEventDelete, onEventEdit, viewMode = 'month', initialDate = new Date(), config = {}, className = '', style = {}, loading = false, emptyState, hideHeader = false, compact = false, selectedDate }) {
|
|
3010
3078
|
const [currentDate, setCurrentDate] = React.useState(initialDate);
|
|
3011
3079
|
const [currentViewMode, setCurrentViewMode] = React.useState(viewMode);
|
|
3012
3080
|
const dayViewScrollRef = React.useRef(null);
|
|
@@ -3208,9 +3276,9 @@ function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDat
|
|
|
3208
3276
|
return Math.floor(diff / oneWeek) + 1;
|
|
3209
3277
|
};
|
|
3210
3278
|
if (loading) {
|
|
3211
|
-
return (jsxRuntime.jsx("div", { className: `${styles$
|
|
3279
|
+
return (jsxRuntime.jsx("div", { className: `${styles$a.calendar} ${styles$a.loading} ${className}`, style: style, children: jsxRuntime.jsx("div", { className: styles$a.loadingSpinner, children: "Loading..." }) }));
|
|
3212
3280
|
}
|
|
3213
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
3281
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$a.calendar} ${compact ? styles$a.compact : ''} ${className}`, style: style, children: [!hideHeader && (jsxRuntime.jsxs("div", { className: styles$a.header, children: [jsxRuntime.jsxs("div", { className: styles$a.navigation, children: [jsxRuntime.jsx("button", { onClick: handlePrevious, className: styles$a.navButton, "aria-label": "Previous", children: jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", children: jsxRuntime.jsx("polyline", { points: "15,18 9,12 15,6" }) }) }), jsxRuntime.jsx("h3", { className: styles$a.title, children: calendarData.displayTitle }), jsxRuntime.jsx("button", { onClick: handleNext, className: styles$a.navButton, "aria-label": "Next", children: jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", children: jsxRuntime.jsx("polyline", { points: "9,6 15,12 9,18" }) }) })] }), jsxRuntime.jsxs("div", { className: styles$a.controls, children: [jsxRuntime.jsx("button", { onClick: handleToday, className: styles$a.todayButton, children: "Today" }), jsxRuntime.jsxs("div", { className: styles$a.viewToggle, children: [jsxRuntime.jsx("button", { className: `${styles$a.viewButton} ${currentViewMode === 'month' ? styles$a.active : ''}`, onClick: () => setCurrentViewMode('month'), children: "Month" }), jsxRuntime.jsx("button", { className: `${styles$a.viewButton} ${currentViewMode === 'week' ? styles$a.active : ''}`, onClick: () => setCurrentViewMode('week'), children: "Week" }), jsxRuntime.jsx("button", { className: `${styles$a.viewButton} ${currentViewMode === 'day' ? styles$a.active : ''}`, onClick: () => setCurrentViewMode('day'), children: "Day" })] })] })] })), currentViewMode !== 'day' && (jsxRuntime.jsxs("div", { className: styles$a.weekDays, children: [showWeekNumbers && jsxRuntime.jsx("div", { className: styles$a.weekNumberHeader, children: "Week" }), finalDayLabels.map((day) => (jsxRuntime.jsx("div", { className: styles$a.weekDay, children: day }, day)))] })), currentViewMode === 'day' ? (
|
|
3214
3282
|
// Day view layout — positioned events with duration, all-day strip, now-line
|
|
3215
3283
|
(() => {
|
|
3216
3284
|
const dayEvents = getDayEvents(currentDate);
|
|
@@ -3241,14 +3309,14 @@ function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDat
|
|
|
3241
3309
|
onTimeSlotClick(slotDate, hour, timeString);
|
|
3242
3310
|
}
|
|
3243
3311
|
};
|
|
3244
|
-
const handleEventDragEnd = (event,
|
|
3312
|
+
const handleEventDragEnd = (event, clientY) => {
|
|
3245
3313
|
if (!onEventDrop)
|
|
3246
3314
|
return;
|
|
3247
|
-
const gridEl = dayViewScrollRef.current?.querySelector(`.${styles$
|
|
3315
|
+
const gridEl = dayViewScrollRef.current?.querySelector(`.${styles$a.dayTimelineGrid}`);
|
|
3248
3316
|
if (!gridEl)
|
|
3249
3317
|
return;
|
|
3250
3318
|
const rect = gridEl.getBoundingClientRect();
|
|
3251
|
-
const relativeY =
|
|
3319
|
+
const relativeY = clientY - rect.top;
|
|
3252
3320
|
const slotSize = halfHourSlots ? hourHeight / 2 : hourHeight;
|
|
3253
3321
|
const slotIndex = Math.max(0, Math.floor(relativeY / slotSize));
|
|
3254
3322
|
const totalSlots = halfHourSlots ? hours.length * 2 : hours.length;
|
|
@@ -3259,26 +3327,13 @@ function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDat
|
|
|
3259
3327
|
newDate.setHours(newHour, newMinute, 0, 0);
|
|
3260
3328
|
onEventDrop(event, newDate);
|
|
3261
3329
|
};
|
|
3262
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
3263
|
-
backgroundColor: getEventColor(event),
|
|
3264
|
-
color: getEventTextColor(event),
|
|
3265
|
-
opacity: event.status === 'completed' ? 0.7 : 1
|
|
3266
|
-
}, onClick: () => handleEventClick(event), whileHover: { scale: 1.02 }, whileTap: { scale: 0.98 }, children: [iconRenderer && iconRenderer(event), jsxRuntime.jsx("span", { children: event.title })] }, event.id))) })] })), jsxRuntime.jsx("div", { className: styles$9.dayViewScrollContainer, ref: dayViewScrollRef, children: jsxRuntime.jsxs("div", { className: styles$9.dayTimelineGrid, style: { height: timelineHeight }, children: [hours.map(hour => (jsxRuntime.jsxs("div", { className: styles$9.hourRow, style: { height: hourHeight }, children: [jsxRuntime.jsxs("span", { className: styles$9.hourLabel, children: [hour.toString().padStart(2, '0'), ":00"] }), jsxRuntime.jsx("div", { className: styles$9.hourSlots, children: halfHourSlots ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$9.halfHourSlot, onClick: () => handleSlotClick(hour, 0) }), jsxRuntime.jsx("div", { className: `${styles$9.halfHourSlot} ${styles$9.halfHourSlotBottom}`, onClick: () => handleSlotClick(hour, 30) })] })) : (jsxRuntime.jsx("div", { className: styles$9.halfHourSlot, onClick: () => handleSlotClick(hour, 0) })) })] }, hour))), scheduled.map((event, eventIndex) => {
|
|
3330
|
+
return (jsxRuntime.jsxs("div", { className: styles$a.dayView, children: [jsxRuntime.jsxs("div", { className: styles$a.dayViewHeader, children: [jsxRuntime.jsx("div", { className: styles$a.timeColumnHeader }), jsxRuntime.jsx("div", { className: styles$a.dayColumnHeader, children: currentDate.toLocaleDateString(locale, { weekday: 'short', day: 'numeric' }) })] }), allDayEvents.length > 0 && (jsxRuntime.jsxs("div", { className: styles$a.allDayStrip, children: [jsxRuntime.jsx("span", { className: styles$a.allDayLabel, children: "All day" }), jsxRuntime.jsx("div", { className: styles$a.allDayList, children: allDayEvents.map(event => (jsxRuntime.jsx(DayEventCard, { event: event, color: getEventColor(event), textColor: getEventTextColor(event), onComplete: onEventComplete ?? (onEventClick ? handleEventClick : undefined), onEdit: onEventEdit, onDelete: onEventDelete, draggable: false }, event.id))) })] })), jsxRuntime.jsx("div", { className: styles$a.dayViewScrollContainer, ref: dayViewScrollRef, children: jsxRuntime.jsxs("div", { className: styles$a.dayTimelineGrid, style: { height: timelineHeight }, children: [hours.map(hour => (jsxRuntime.jsxs("div", { className: styles$a.hourRow, style: { height: hourHeight }, children: [jsxRuntime.jsxs("span", { className: styles$a.hourLabel, children: [hour.toString().padStart(2, '0'), ":00"] }), jsxRuntime.jsx("div", { className: styles$a.hourSlots, children: halfHourSlots ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$a.halfHourSlot, onClick: () => handleSlotClick(hour, 0) }), jsxRuntime.jsx("div", { className: `${styles$a.halfHourSlot} ${styles$a.halfHourSlotBottom}`, onClick: () => handleSlotClick(hour, 30) })] })) : (jsxRuntime.jsx("div", { className: styles$a.halfHourSlot, onClick: () => handleSlotClick(hour, 0) })) })] }, hour))), scheduled.map((event) => {
|
|
3267
3331
|
const [h, m] = event.time.split(':').map(Number);
|
|
3268
3332
|
const top = (h - startHour) * hourHeight + (m / 60) * hourHeight;
|
|
3269
3333
|
const duration = eventDuration(event);
|
|
3270
3334
|
const height = Math.max(24, (duration / 60) * hourHeight - 2);
|
|
3271
|
-
return (jsxRuntime.
|
|
3272
|
-
|
|
3273
|
-
height,
|
|
3274
|
-
backgroundColor: getEventColor(event),
|
|
3275
|
-
color: getEventTextColor(event),
|
|
3276
|
-
opacity: event.status === 'completed' ? 0.7 : 1
|
|
3277
|
-
}, onClick: (e) => {
|
|
3278
|
-
e.stopPropagation();
|
|
3279
|
-
handleEventClick(event);
|
|
3280
|
-
}, initial: { opacity: 0, x: -10 }, animate: { opacity: 1, x: 0 }, transition: { duration: 0.2, delay: eventIndex * 0.03, ease: 'easeOut' }, whileHover: { scale: 1.01, transition: { duration: 0.1 } }, whileTap: { scale: 0.98, transition: { duration: 0.1 } }, drag: onEventDrop ? 'y' : false, dragMomentum: false, onDragEnd: (_, info) => handleEventDragEnd(event, info), children: [iconRenderer && iconRenderer(event), jsxRuntime.jsxs("span", { className: styles$9.dayEventTitle, children: [jsxRuntime.jsx("span", { className: styles$9.dayEventTime, children: event.time }), event.title] }), event.status === 'completed' && (jsxRuntime.jsx("svg", { className: styles$9.completedIcon, width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", children: jsxRuntime.jsx("polyline", { points: "20,6 9,17 4,12" }) }))] }, event.id));
|
|
3281
|
-
}), showNow && (jsxRuntime.jsx("div", { className: styles$9.currentTimeIndicator, style: { top: `${nowOffset}px` } }))] }) })] }));
|
|
3335
|
+
return (jsxRuntime.jsx("div", { className: styles$a.dayEventAnchor, style: { top, height }, onClick: (e) => e.stopPropagation(), children: jsxRuntime.jsx(DayEventCard, { event: event, color: getEventColor(event), textColor: getEventTextColor(event), onComplete: onEventComplete ?? (onEventClick ? handleEventClick : undefined), onEdit: onEventEdit, onDelete: onEventDelete, onDragEnd: onEventDrop ? (clientY) => handleEventDragEnd(event, clientY) : undefined }) }, event.id));
|
|
3336
|
+
}), showNow && (jsxRuntime.jsx("div", { className: styles$a.currentTimeIndicator, style: { top: `${nowOffset}px` } }))] }) })] }));
|
|
3282
3337
|
})()) : ((() => {
|
|
3283
3338
|
// Fixed month-view cell height derived from maxEventsPerDay.
|
|
3284
3339
|
// Day number + padding ≈ 40px, each event row ≈ 24px.
|
|
@@ -3286,17 +3341,17 @@ function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDat
|
|
|
3286
3341
|
const monthCellHeight = currentViewMode === 'month' && !compact
|
|
3287
3342
|
? 40 + maxEventsPerDay * 24
|
|
3288
3343
|
: undefined;
|
|
3289
|
-
return (jsxRuntime.jsx("div", { className: `${styles$
|
|
3344
|
+
return (jsxRuntime.jsx("div", { className: `${styles$a.daysGrid} ${currentViewMode === 'week' ? styles$a.weekView : ''}`, children: calendarData.days.map((day, index) => {
|
|
3290
3345
|
const dayEvents = getDayEvents(day);
|
|
3291
3346
|
const dayIsToday = isToday(day);
|
|
3292
3347
|
const isInCurrentMonth = currentViewMode === 'week' || isCurrentMonth(day);
|
|
3293
3348
|
const isWeekStart = showWeekNumbers && (index % 7 === 0);
|
|
3294
3349
|
const dayIsSelected = selectedDate && day.toDateString() === selectedDate.toDateString();
|
|
3295
|
-
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$
|
|
3350
|
+
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$a.dayCell} ${dayIsToday ? styles$a.today : ''} ${!isInCurrentMonth ? styles$a.otherMonth : ''} ${dayIsSelected ? styles$a.selected : ''}`, style: monthCellHeight !== undefined ? { height: monthCellHeight, minHeight: monthCellHeight } : undefined, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: {
|
|
3296
3351
|
duration: 0.3,
|
|
3297
3352
|
delay: index * 0.02,
|
|
3298
3353
|
ease: "easeOut"
|
|
3299
|
-
}, onClick: () => handleDateClick(day), children: [isWeekStart && (jsxRuntime.jsx("div", { className: styles$
|
|
3354
|
+
}, onClick: () => handleDateClick(day), children: [isWeekStart && (jsxRuntime.jsx("div", { className: styles$a.weekNumber, children: getWeekNumber(day) })), jsxRuntime.jsx("div", { className: styles$a.dayNumber, children: day.getDate() }), dayEvents.length > 0 && compact && currentViewMode === 'month' ? (jsxRuntime.jsxs("div", { className: styles$a.dots, children: [dayEvents.slice(0, maxEventsPerDay).map((event) => (jsxRuntime.jsx("span", { className: styles$a.dot, style: { backgroundColor: getEventColor(event) } }, event.id))), dayEvents.length > maxEventsPerDay && (jsxRuntime.jsxs("span", { className: styles$a.dotMore, children: ["+", dayEvents.length - maxEventsPerDay] }))] })) : dayEvents.length > 0 ? (jsxRuntime.jsxs("div", { className: styles$a.events, children: [dayEvents.slice(0, maxEventsPerDay).map((event, eventIndex) => (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$a.event} ${event.status === 'completed' ? styles$a.completed : ''}`, style: {
|
|
3300
3355
|
backgroundColor: getEventColor(event),
|
|
3301
3356
|
color: getEventTextColor(event),
|
|
3302
3357
|
opacity: event.status === 'completed' ? 0.7 : 1
|
|
@@ -3314,7 +3369,7 @@ function Calendar({ events, onEventClick, onDateClick, onEventClickByView, onDat
|
|
|
3314
3369
|
}, whileTap: {
|
|
3315
3370
|
scale: 0.98,
|
|
3316
3371
|
transition: { duration: 0.1 }
|
|
3317
|
-
}, children: [iconRenderer && iconRenderer(event), jsxRuntime.jsxs("span", { className: styles$
|
|
3372
|
+
}, children: [iconRenderer && iconRenderer(event), jsxRuntime.jsxs("span", { className: styles$a.eventTitle, children: [event.time && (jsxRuntime.jsx("span", { className: styles$a.eventTime, children: event.time })), event.title] }), event.status === 'completed' && (jsxRuntime.jsx("svg", { className: styles$a.completedIcon, width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", children: jsxRuntime.jsx("polyline", { points: "20,6 9,17 4,12" }) }))] }, event.id))), dayEvents.length > maxEventsPerDay && (jsxRuntime.jsxs("div", { className: styles$a.moreEvents, children: ["+", dayEvents.length - maxEventsPerDay, " more"] }))] })) : emptyState ? (jsxRuntime.jsx("div", { className: styles$a.emptyState, children: emptyState })) : null] }, `${day.getFullYear()}-${day.getMonth()}-${day.getDate()}`));
|
|
3318
3373
|
}) }));
|
|
3319
3374
|
})())] }));
|
|
3320
3375
|
}
|