@stfrigerio/sito-template 0.1.67 → 0.1.69
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/StreamConsole/StreamConsole.d.ts +29 -0
- package/dist/components/molecules/StreamConsole/StreamConsole.d.ts.map +1 -0
- package/dist/components/molecules/StreamConsole/index.d.ts +3 -0
- package/dist/components/molecules/StreamConsole/index.d.ts.map +1 -0
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/index.esm.js +251 -173
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +253 -174
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/themes/derived.css +71 -0
- package/dist/themes/shared.css +70 -0
- package/package.json +3 -1
- package/storybook-static/assets/{ASCIIText.stories-2uY7s8BZ.js → ASCIIText.stories-CsmAJN-2.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-frv6S625.js → AllAtoms.stories-D4rQ-wy1.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-CUycWMM4.js → AnimatedContent.stories-D3N3SO6o.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-BbqCXJLB.js → AnimatedList.stories-BKAHhF-d.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-DKz4EVwu.js → Antigravity.stories-CvGHJqQE.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-yRNCdMNY.js → ArrayInput.stories-jrA1o5Ea.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-Bjde8iIB.js → Aurora.stories-5UjwTJms.js} +1 -1
- package/storybook-static/assets/{Beams.stories-CJAMSn9o.js → Beams.stories-iu6YAOVD.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-xBb3jQRL.js → BlobCursor.stories-a0oYcNSe.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-Djx7K_2s.js → BlurText.stories-GYpg5JPE.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-i8MTthLD.js → BooleansHeatmap.stories-BGwP1qOw.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-szUvXR2S.js → BorderGlow.stories-CfJyZ5FD.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-CP_athV9.js → BubbleMenu.stories-BoL7fzPd.js} +1 -1
- package/storybook-static/assets/{Button-DhXZPIni.js → Button-XXleA-vf.js} +1 -1
- package/storybook-static/assets/{Button.stories-C8r4c9i-.js → Button.stories-B5CWQCIN.js} +1 -1
- package/storybook-static/assets/{Calendar.stories-B54YfNAL.js → Calendar.stories-BV4SkIwi.js} +1 -1
- package/storybook-static/assets/{Card-SXfZY3lZ.js → Card-OLMSKhVR.js} +1 -1
- package/storybook-static/assets/{Card.stories-wTz6AGB9.js → Card.stories-BNK1tsEb.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-VZnmV9f3.js → CardNav.stories-BcVq-zqM.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-Dyr8eZly.js → Carousel.stories-RbJHXJL2.js} +1 -1
- package/storybook-static/assets/{Checkbox-CB8DMRsV.js → Checkbox-BTElgaSY.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-CFIeXU3v.js → Checkbox.stories-CAd4f8K3.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-DuePEuFi.js → ChromaGrid.stories-D_aDPvzD.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-CrPHDRys.js → CircularGallery.stories-dnngbgLP.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-a2t2rH4C.js → CircularText.stories-LSAafadL.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-Do0ugmZB.js → ClickSpark.stories-DGBempBs.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-BqIUAI25.js → ColorBends.stories-DcK3_sn1.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-CVtJdUZx.js → CountUp.stories-BMtv_jPx.js} +1 -1
- package/storybook-static/assets/{Counter.stories-D4h2cwzf.js → Counter.stories-CyMUXbmN.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-BV4x7-ar.js → Crosshair.stories-BNFAHXYf.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-CBXpQbxi.js → Cubes.stories-CQC4LEGr.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-O_XCksUW.js → CurvedLoop.stories-Bbtj3443.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-BbGAZJDV.js → DarkVeil.stories-Ce-0FIT7.js} +1 -1
- package/storybook-static/assets/{DateInput-CaMS5QAe.js → DateInput-U7LprMtG.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-6OMQJ_72.js → DateInput.stories-CTnYmtUu.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-DRtsDU6B.js → DecayCard.stories-C3NSEnfj.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-CwVva8IA.js → DecryptedText.stories-DS3kmr3h.js} +1 -1
- package/storybook-static/assets/{Dither.stories-BwZigsAv.js → Dither.stories-DThgTxwS.js} +1 -1
- package/storybook-static/assets/{Dock.stories-C5-31n7p.js → Dock.stories-BejWrev2.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-Chl7FmBn.js → EditFAB.stories-B20NpuSi.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-BhtKyW1F.js → EvilEye.stories-DulC_ljn.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-BiLoI5tq.js → FadeContent.stories-BpeE-89g.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-IbYqXVJ2.js → FaultyTerminal.stories-BbqaYCD4.js} +1 -1
- package/storybook-static/assets/{Fbo-DxFZ40cO.js → Fbo-C81uYqf5.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-XZ4d9vMo.js → FloatingLines.stories-BhCV-IEL.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-DP2a8YDp.js → FlowingMenu.stories-DYmo4hlL.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-DIQAQcZ6.js → FluidGlass.stories-Hkc16HcI.js} +1 -1
- package/storybook-static/assets/{Folder.stories-mnlj4vFW.js → Folder.stories-sb348QG_.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-DGv8sEGm.js → FuzzyText.stories-B9oCWh_m.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-gpRz-VNQ.js → Galaxy.stories-BGZSxsRg.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-VA1F3OwX.js → GhostCursor.stories-BH1RyEhC.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-C7nQ8K8m.js → GlareHover.stories-BxKKigvA.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-CLxfz_0O.js → GlassSurface.stories-BThkx8mW.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-CYHae38N.js → GlitchText.stories-D4RJYPMa.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-CYwhZuDk.js → GooeyNav.stories-BTYUo3KQ.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-BAoZv-ap.js → GradientBlinds.stories-olxhUbmu.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-BZ0Hue6m.js → GradientText.stories-Bh69B8hF.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-_RQ0o4ay.js → Grainient.stories-BphTbaj0.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-CiYjTbgc.js → GridMotion.stories-DOr_siA6.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-Cx2WspmX.js → ImageSlideshow.stories-B-hGzyOU.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-Dd3aYfKm.js → Iridescence.stories-Rk7o1aTS.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-CkkItTeG.js → LaserFlow.stories-BcUFYXjR.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-DuyDZk6f.js → LetterGlitch.stories-BMwuzHhW.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-B2gdOEtL.js → LightPillar.stories-jRFcnXWR.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-C5jz7x4T.js → LightRays.stories-DlJZn0uj.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-MG8gMBqA.js → Lightning.stories-B3crwXQU.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-BcUKRhkl.js → LineWaves.stories-BT2wiuIx.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-V6_q_SsB.js → LiquidChrome.stories-BAHqF7Fe.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-NZD1YYlr.js → LiquidEther.stories-Btht6LYV.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-9e5g7mJO.js → LoadingSpinner-Bfs3FDv3.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-aox-4Com.js → LoadingSpinner.stories-DQrjNBi0.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-FapW-YM6.js → MagicRings.stories-wOj093RE.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-BlbaVEBe.js → Magnet.stories-DUVmVySV.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-CGop9ZCF.js → MagnetLines.stories-Q8XadhhN.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-ipkb_kpb.js → Masonry.stories-D03ww_ZA.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-UjMh5e0Y.js → MetaBalls.stories-CDdVkcY6.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-BqzjCkul.js → MetallicPaint.stories-DXs7ik4I.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-Ddcrit95.js → MoodChart.stories-Rw-AGXno.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-GKjLkfLk.js → MotionConfigContext-C14_78av.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-xpGvGDp2.js → Navbar.stories-FrLzsznk.js} +1 -1
- package/storybook-static/assets/{Noise.stories-MrNCWhbv.js → Noise.stories-BA3Ih5s0.js} +1 -1
- package/storybook-static/assets/{NumberStepper-CMafPj8S.js → NumberStepper-tZiXGmat.js} +1 -1
- package/storybook-static/assets/NumberStepper-vsuSLafY.css +1 -0
- package/storybook-static/assets/{NumberStepper.stories-DtYk1D8F.js → NumberStepper.stories-BhC8EKxm.js} +1 -1
- package/storybook-static/assets/{Orb.stories-CxxYjHjg.js → Orb.stories-AuD5iCC3.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-D2SUn61d.js → OrbitImages.stories-BXvJZ0-F.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-BHc6igty.js → PieChart.stories-C3r6LcY8.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-ey830SNz.js → PixelBlast.stories-Cr-O1JRj.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-Cj9550ir.js → PixelCard.stories-2lQKPfR5.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-KxoQD7bx.js → PixelSnow.stories-D_D3QKFz.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-TpTlb1XS.js → PixelTransition.stories-B3ZARstC.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-q_ambQtS.js → Plasma.stories-B1DaK_sM.js} +1 -1
- package/storybook-static/assets/{Prism.stories-B6fZIrNH.js → Prism.stories-DbqM5YZb.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-CC1pU1Pr.js → PrismaticBurst.stories-y-HXF5cV.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-CMn1mAio.js → ProfileCard.stories-DsmTybWU.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-DjbZXeUm.js → QuantifiableHabitsChart.stories-DCI49f9X.js} +1 -1
- package/storybook-static/assets/{Radar.stories-BNnwQX_l.js → Radar.stories-CEEkO42v.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-YsLrddYw.js → Ribbons.stories-CCA_yr4B.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-v0FYUM9u.js → RippleGrid.stories-BTwh4_2U.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-GNmEW1ub.js → RotatingText.stories-DHo8TfPe.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-DgNTKKcu.js → ScrollFloat.stories-BJZSf4VI.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-BLr7gIjD.js → ScrollReveal.stories-CiEFtSxi.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-C6MVInl2.js → ScrollVelocity.stories-DfnkAXxG.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-DEPaIkGL.js → SearchBar.stories-CSXGQoV5.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-CWaT7W35.js → SearchableDropdown-DUPy8rUp.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-BWNWA__W.js → SearchableDropdown.stories-CBxJFtvC.js} +1 -1
- package/storybook-static/assets/{SelectInput-1fHMqqP1.js → SelectInput-CYkoLmDl.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-ZygGOh3L.js → SelectInput.stories-CfvmOPeB.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-DQbBTOCc.js → ShapeBlur.stories-pc0wljrV.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-cunRci_L.js → ShapeGrid.stories-B4vId6lz.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-CyUsI8hq.js → ShinyText.stories-BXJJ29di.js} +1 -1
- package/storybook-static/assets/{Silk.stories--eMEeM8d.js → Silk.stories-CDD33YEC.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-BYimMJAL.js → SleepChart.stories-DdlAZqOr.js} +1 -1
- package/storybook-static/assets/{Slider-B84kfHMY.js → Slider-D658yr8V.js} +1 -1
- package/storybook-static/assets/{Slider.stories-CFLSmInM.js → Slider.stories-eskyLxXJ.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-7GQLdjQ7.js → SoftAurora.stories-BdYYDM27.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-F8vqqRfD.js → SoundDemo.stories-BgMuuQjq.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-CAFZWnU9.js → SplashCursor.stories-CZtK7e_O.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-C1Q0dxq3.js → SpotlightCard.stories-J0JZ-0RI.js} +1 -1
- package/storybook-static/assets/{Stack.stories-BUMuMvgK.js → Stack.stories-C0wOmqrH.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-4cHPpSyI.js → StaggeredMenu.stories-BLwQYHyu.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-BCbdyG0_.js → StarBorder.stories-Bc1fmorI.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-Btc6IAOC.js → SunburstChart.stories-CAmK3nor.js} +1 -1
- package/storybook-static/assets/{Table.stories-CxhEofLD.js → Table.stories-DGMjAm4t.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-Bvz1_Btb.js → Tabs.stories-Bb40tIYe.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-6kQzVi8x.js → TargetCursor.stories-CGwUiD7J.js} +1 -1
- package/storybook-static/assets/{TextArea-Cw0Z6fif.js → TextArea-DXQ_EBgX.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-COgKS38y.js → TextArea.stories-BLrrmB4z.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-BNJPLzFm.js → TextCursor.stories-BHNu5tz7.js} +1 -1
- package/storybook-static/assets/{TextInput-CcOD24QL.js → TextInput-DV7WwA-D.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-CJZAn4yN.js → TextInput.stories-CuWrd6gR.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-C42v4o6o.js → TextPressure.stories-vmUtkLCW.js} +1 -1
- package/storybook-static/assets/{TextType.stories-CvPSWJs6.js → TextType.stories-DRh6fQi6.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-DNl2WASw.js → ThemeSwitcher.stories-Cn69Ji6g.js} +1 -1
- package/storybook-static/assets/{Threads.stories-CQzja64j.js → Threads.stories-CydzcV1L.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-BSevAXEr.js → TimeInput.stories-DszOIZMM.js} +1 -1
- package/storybook-static/assets/{Toggle-cSmkSP6q.js → Toggle-DRxEA46V.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-lSwnXmCz.js → Toggle.stories-hRngPp0x.js} +1 -1
- package/storybook-static/assets/{ToggleButton-CWcHCKI6.js → ToggleButton-doH1twHO.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-Cdkvgsau.js → ToggleButton.stories-B8nvf77b.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-CiwMDkKc.js → TrueFocus.stories-CfKH3kUZ.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-DJ9xPymz.js → VariableProximity.stories-D9qK9mvY.js} +1 -1
- package/storybook-static/assets/{Waves.stories-Bf8Tm2OK.js → Waves.stories-ChiEHqOk.js} +1 -1
- package/storybook-static/assets/{check-BOBzZz98.js → check-oj_6B7vS.js} +1 -1
- package/storybook-static/assets/{chevron-down-DBbVTg9F.js → chevron-down-BWokfil4.js} +1 -1
- package/storybook-static/assets/{chevron-right-3dTMXayC.js → chevron-right-Bdzt2d70.js} +1 -1
- package/storybook-static/assets/client-B8LLU4_U.js +1 -0
- package/storybook-static/assets/{createLucideIcon-CkJC9vYJ.js → createLucideIcon-BWMoBn57.js} +1 -1
- package/storybook-static/assets/{download-B0yDATDC.js → download-BLiA0tpF.js} +1 -1
- package/storybook-static/assets/{folder-DheVrPAe.js → folder-DqKZ_0EF.js} +1 -1
- package/storybook-static/assets/{iconBase-lvWfesIY.js → iconBase-DwjO8aD6.js} +1 -1
- package/storybook-static/assets/{iframe-CTSBB6I3.js → iframe-Bzk7a4jE.js} +3 -3
- package/storybook-static/assets/{index-pCzHq_05.js → index-B9IQ2veq.js} +1 -1
- package/storybook-static/assets/{index-_evbJ2Cl.js → index-CFq2Sj1X.js} +1 -1
- package/storybook-static/assets/{index-BMKvNZS6.js → index-D75c7fgA.js} +1 -1
- package/storybook-static/assets/{proxy-DkzZxEFc.js → proxy-DWSRYAjq.js} +1 -1
- package/storybook-static/assets/{react-18-BvDZXdyj.js → react-18-EohdNo4M.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-CBWYRSfe.js → react-three-fiber.esm-CbOYykzu.js} +1 -1
- package/storybook-static/assets/{search-B55_-81C.js → search-BQFiVrSa.js} +1 -1
- package/storybook-static/assets/{settings-BlVPfQGB.js → settings-fMTZia7j.js} +1 -1
- package/storybook-static/assets/{sun-lmKYYygH.js → sun-DRUPjcvH.js} +1 -1
- package/storybook-static/assets/{trash-2-Dbz6gZCH.js → trash-2-Cs3jaKGo.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-BcYandkZ.js → use-animation-frame-D0dvJGOL.js} +1 -1
- package/storybook-static/assets/{use-in-view-Cwx1siTw.js → use-in-view-DHLaPX9x.js} +1 -1
- package/storybook-static/assets/{use-motion-value-BJ-r0NXG.js → use-motion-value-DqT2_cFi.js} +1 -1
- package/storybook-static/assets/{use-spring-BXqp16p5.js → use-spring-Iib2BnkK.js} +1 -1
- package/storybook-static/assets/{use-transform-BhprXxbF.js → use-transform-CfDt55IP.js} +1 -1
- package/storybook-static/assets/{useSound-BRmnt_Zm.js → useSound-BpN96I3Q.js} +1 -1
- package/storybook-static/assets/{users-D2lT3o9l.js → users-DuVIER1_.js} +1 -1
- package/storybook-static/assets/{x-DWSL3Ncx.js → x-BsIImlvB.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/NumberStepper-C_00aeJp.css +0 -1
- package/storybook-static/assets/client-SxjihoZo.js +0 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var dayjs = require('dayjs');
|
|
|
9
9
|
var MobileTimePicker = require('@mui/x-date-pickers/MobileTimePicker');
|
|
10
10
|
var LocalizationProvider = require('@mui/x-date-pickers/LocalizationProvider');
|
|
11
11
|
var AdapterDayjs = require('@mui/x-date-pickers/AdapterDayjs');
|
|
12
|
-
var styles$
|
|
12
|
+
var styles$B = require('@mui/material/styles');
|
|
13
13
|
var d3 = require('d3');
|
|
14
14
|
|
|
15
15
|
function _interopNamespaceDefault(e) {
|
|
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
|
|
32
32
|
var d3__namespace = /*#__PURE__*/_interopNamespaceDefault(d3);
|
|
33
33
|
|
|
34
|
-
var styles$
|
|
34
|
+
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"};
|
|
35
35
|
|
|
36
36
|
const SOUND_PACKS = {
|
|
37
37
|
digital: {
|
|
@@ -596,11 +596,11 @@ function useComponentSound(config, options) {
|
|
|
596
596
|
const Button = ({ variant = 'primary', size = 'medium', fullWidth = false, loading = false, iconLeft, iconRight, children, className = '', disabled, motionProps, soundConfig, onClick, onMouseEnter, onFocus, ...rest }) => {
|
|
597
597
|
const { handlers } = useComponentSound(soundConfig);
|
|
598
598
|
const buttonClasses = [
|
|
599
|
-
styles$
|
|
600
|
-
styles$
|
|
601
|
-
styles$
|
|
602
|
-
fullWidth && styles$
|
|
603
|
-
loading && styles$
|
|
599
|
+
styles$A.button,
|
|
600
|
+
styles$A[variant],
|
|
601
|
+
styles$A[size],
|
|
602
|
+
fullWidth && styles$A.fullWidth,
|
|
603
|
+
loading && styles$A.loading,
|
|
604
604
|
className
|
|
605
605
|
].filter(Boolean).join(' ');
|
|
606
606
|
const handleClick = (e) => {
|
|
@@ -611,10 +611,10 @@ const Button = ({ variant = 'primary', size = 'medium', fullWidth = false, loadi
|
|
|
611
611
|
handlers.onMouseEnter?.();
|
|
612
612
|
onMouseEnter?.(e);
|
|
613
613
|
};
|
|
614
|
-
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$
|
|
614
|
+
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 })] }));
|
|
615
615
|
};
|
|
616
616
|
|
|
617
|
-
var styles$
|
|
617
|
+
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"};
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* Card Component
|
|
@@ -679,28 +679,28 @@ const Card = ({ variant = 'elevated', hoverable = false, clickable = false, padd
|
|
|
679
679
|
onExpandChange?.(newExpanded);
|
|
680
680
|
};
|
|
681
681
|
const cardClasses = [
|
|
682
|
-
styles$
|
|
683
|
-
styles$
|
|
684
|
-
hoverable && styles$
|
|
685
|
-
clickable && styles$
|
|
686
|
-
!padding && styles$
|
|
687
|
-
expandable && styles$
|
|
682
|
+
styles$z.card,
|
|
683
|
+
styles$z[variant],
|
|
684
|
+
hoverable && styles$z.hoverable,
|
|
685
|
+
clickable && styles$z.clickable,
|
|
686
|
+
!padding && styles$z.noPadding,
|
|
687
|
+
expandable && styles$z.expandable,
|
|
688
688
|
className
|
|
689
689
|
].filter(Boolean).join(' ');
|
|
690
690
|
const renderHeader = () => {
|
|
691
691
|
if (header) {
|
|
692
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
692
|
+
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" }) }) }))] }));
|
|
693
693
|
}
|
|
694
694
|
if (title || subtitle) {
|
|
695
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
695
|
+
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" }) }) }))] }));
|
|
696
696
|
}
|
|
697
697
|
return null;
|
|
698
698
|
};
|
|
699
|
-
const cardContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [image && (jsxRuntime.jsx("div", { className: styles$
|
|
699
|
+
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")) })] }));
|
|
700
700
|
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 }));
|
|
701
701
|
};
|
|
702
702
|
|
|
703
|
-
var styles$
|
|
703
|
+
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"};
|
|
704
704
|
|
|
705
705
|
/**
|
|
706
706
|
* EmptyState Component
|
|
@@ -737,11 +737,11 @@ var styles$x = {"wrapper":"EmptyState-module_wrapper__h3Y2E","compact":"EmptySta
|
|
|
737
737
|
* @returns {JSX.Element} The rendered EmptyState component
|
|
738
738
|
*/
|
|
739
739
|
const EmptyState = ({ icon, title, message, action, size = 'default', }) => {
|
|
740
|
-
const wrapperClass = [styles$
|
|
741
|
-
return (jsxRuntime.jsxs("div", { className: wrapperClass, children: [icon && jsxRuntime.jsx("div", { className: styles$
|
|
740
|
+
const wrapperClass = [styles$y.wrapper, styles$y[size]].filter(Boolean).join(' ');
|
|
741
|
+
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 })] }));
|
|
742
742
|
};
|
|
743
743
|
|
|
744
|
-
var styles$
|
|
744
|
+
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"};
|
|
745
745
|
|
|
746
746
|
/**
|
|
747
747
|
* Modal Component
|
|
@@ -795,16 +795,16 @@ const Modal = ({ open, title, onClose, children, size = 'default', actions, padd
|
|
|
795
795
|
if (typeof document === 'undefined')
|
|
796
796
|
return null;
|
|
797
797
|
const dialogClass = [
|
|
798
|
-
styles$
|
|
799
|
-
size === 'compact' && styles$
|
|
800
|
-
size === 'wide' && styles$
|
|
798
|
+
styles$x.dialog,
|
|
799
|
+
size === 'compact' && styles$x.dialogCompact,
|
|
800
|
+
size === 'wide' && styles$x.dialogWide,
|
|
801
801
|
]
|
|
802
802
|
.filter(Boolean)
|
|
803
803
|
.join(' ');
|
|
804
|
-
return reactDom.createPortal(jsxRuntime.jsx(framerMotion.AnimatePresence, { children: open && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
804
|
+
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);
|
|
805
805
|
};
|
|
806
806
|
|
|
807
|
-
var styles$
|
|
807
|
+
var styles$w = {"checkboxLabel":"Checkbox-module_checkboxLabel__4tBVg","checkbox":"Checkbox-module_checkbox__BbJul","checkboxText":"Checkbox-module_checkboxText__oJsc9"};
|
|
808
808
|
|
|
809
809
|
/**
|
|
810
810
|
* Checkbox component - Modern interactive checkbox with animations
|
|
@@ -849,13 +849,13 @@ const Checkbox = ({ checked, onChange, label, disabled = false, indeterminate =
|
|
|
849
849
|
checkboxRef.current.indeterminate = indeterminate;
|
|
850
850
|
}
|
|
851
851
|
}, [indeterminate]);
|
|
852
|
-
return (jsxRuntime.jsxs("label", { className: styles$
|
|
852
|
+
return (jsxRuntime.jsxs("label", { className: styles$w.checkboxLabel, children: [jsxRuntime.jsx("input", { ref: checkboxRef, type: "checkbox", checked: checked, onChange: (e) => {
|
|
853
853
|
const isChecked = e.target.checked;
|
|
854
854
|
onChange(isChecked);
|
|
855
855
|
if (soundConfig?.onClick !== false) {
|
|
856
856
|
playSound('toggle');
|
|
857
857
|
}
|
|
858
|
-
}, className: styles$
|
|
858
|
+
}, 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 })] }));
|
|
859
859
|
};
|
|
860
860
|
|
|
861
861
|
const formatDateToEuropean = (date) => {
|
|
@@ -886,7 +886,7 @@ const parseEuropeanDate = (dateString) => {
|
|
|
886
886
|
return '';
|
|
887
887
|
};
|
|
888
888
|
|
|
889
|
-
var styles$
|
|
889
|
+
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"};
|
|
890
890
|
|
|
891
891
|
/**
|
|
892
892
|
* DateInput component - European format date picker with manual input support
|
|
@@ -975,19 +975,19 @@ function DateInput({ label, value, onChange, placeholder = "25/12/2024", onFocus
|
|
|
975
975
|
}
|
|
976
976
|
};
|
|
977
977
|
const getClassName = () => {
|
|
978
|
-
const classes = [styles$
|
|
978
|
+
const classes = [styles$v.dateInput];
|
|
979
979
|
if (error)
|
|
980
|
-
classes.push(styles$
|
|
980
|
+
classes.push(styles$v.error);
|
|
981
981
|
if (success)
|
|
982
|
-
classes.push(styles$
|
|
982
|
+
classes.push(styles$v.success);
|
|
983
983
|
if (loading)
|
|
984
|
-
classes.push(styles$
|
|
984
|
+
classes.push(styles$v.loading);
|
|
985
985
|
return classes.join(' ');
|
|
986
986
|
};
|
|
987
|
-
return (jsxRuntime.jsxs("div", { className: getClassName(), children: [jsxRuntime.jsx("label", { className: styles$
|
|
987
|
+
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 })] })] }));
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
var styles$
|
|
990
|
+
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"};
|
|
991
991
|
|
|
992
992
|
/**
|
|
993
993
|
* SearchableDropdown component - Modern filterable dropdown with animations
|
|
@@ -1092,23 +1092,23 @@ function SearchableDropdown({ label, value, onChange, options, placeholder = "Se
|
|
|
1092
1092
|
}
|
|
1093
1093
|
};
|
|
1094
1094
|
const getTriggerClassName = () => {
|
|
1095
|
-
const classes = [styles$
|
|
1095
|
+
const classes = [styles$u.dropdownTrigger];
|
|
1096
1096
|
if (isOpen)
|
|
1097
|
-
classes.push(styles$
|
|
1097
|
+
classes.push(styles$u.open);
|
|
1098
1098
|
if (loading)
|
|
1099
|
-
classes.push(styles$
|
|
1099
|
+
classes.push(styles$u.loading);
|
|
1100
1100
|
if (error)
|
|
1101
|
-
classes.push(styles$
|
|
1101
|
+
classes.push(styles$u.error);
|
|
1102
1102
|
return classes.join(' ');
|
|
1103
1103
|
};
|
|
1104
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
1104
|
+
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) => {
|
|
1105
1105
|
const isSelected = value === opt.value;
|
|
1106
1106
|
const isHighlighted = highlightedIndex === index;
|
|
1107
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { type: "button", className: `${styles$
|
|
1108
|
-
}), allOptions.length === 0 && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1107
|
+
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}`));
|
|
1108
|
+
}), allOptions.length === 0 && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$u.dropdownNoResults, initial: { opacity: 0 }, animate: { opacity: 1 }, children: "No results found" }))] })] })) })] }));
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
var styles$
|
|
1111
|
+
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"};
|
|
1112
1112
|
|
|
1113
1113
|
/**
|
|
1114
1114
|
* SelectInput component - Styled dropdown selector with flexible option format
|
|
@@ -1146,26 +1146,26 @@ var styles$s = {"selectInput":"SelectInput-module_selectInput__s6zEg","selectWra
|
|
|
1146
1146
|
function SelectInput({ label, value, onChange, options, placeholder = "Select...", disabled = false, error = false, success = false, loading = false, required = false, soundConfig, className }) {
|
|
1147
1147
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1148
1148
|
const getClassName = () => {
|
|
1149
|
-
const classes = [styles$
|
|
1149
|
+
const classes = [styles$t.selectInput];
|
|
1150
1150
|
if (error)
|
|
1151
|
-
classes.push(styles$
|
|
1151
|
+
classes.push(styles$t.error);
|
|
1152
1152
|
if (success)
|
|
1153
|
-
classes.push(styles$
|
|
1153
|
+
classes.push(styles$t.success);
|
|
1154
1154
|
if (loading)
|
|
1155
|
-
classes.push(styles$
|
|
1155
|
+
classes.push(styles$t.loading);
|
|
1156
1156
|
return classes.join(' ');
|
|
1157
1157
|
};
|
|
1158
|
-
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$
|
|
1158
|
+
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 => {
|
|
1159
1159
|
playSound('click');
|
|
1160
1160
|
onChange(e.target.value);
|
|
1161
1161
|
}, disabled: disabled || loading, required: required, ...handlers, children: [jsxRuntime.jsx("option", { value: "", children: placeholder }), options.map(opt => {
|
|
1162
1162
|
const optionValue = typeof opt === 'string' ? opt : opt.value;
|
|
1163
1163
|
const optionLabel = typeof opt === 'string' ? opt : opt.label;
|
|
1164
1164
|
return (jsxRuntime.jsx("option", { value: optionValue, children: optionLabel }, optionValue));
|
|
1165
|
-
})] }), jsxRuntime.jsx(lucideReact.ChevronDown, { className: styles$
|
|
1165
|
+
})] }), jsxRuntime.jsx(lucideReact.ChevronDown, { className: styles$t.selectIcon })] })] }));
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
|
-
var styles$
|
|
1168
|
+
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-"};
|
|
1169
1169
|
|
|
1170
1170
|
/**
|
|
1171
1171
|
* TextArea component - Multi-line text input with character counting
|
|
@@ -1200,38 +1200,38 @@ var styles$r = {"textareaContainer":"TextArea-module_textareaContainer__AquFj","
|
|
|
1200
1200
|
function TextArea({ label, value, onChange, rows = 5, placeholder = "", required = false, maxLength, disabled = false, error = false, success = false, loading = false, focusMode = false, compact = false, className = "" }) {
|
|
1201
1201
|
const textareaId = `textarea-${Math.random().toString(36).substr(2, 9)}`;
|
|
1202
1202
|
const getContainerClassName = () => {
|
|
1203
|
-
const classes = [styles$
|
|
1203
|
+
const classes = [styles$s.textareaContainer];
|
|
1204
1204
|
if (error)
|
|
1205
|
-
classes.push(styles$
|
|
1205
|
+
classes.push(styles$s.error);
|
|
1206
1206
|
if (success)
|
|
1207
|
-
classes.push(styles$
|
|
1207
|
+
classes.push(styles$s.success);
|
|
1208
1208
|
if (loading)
|
|
1209
|
-
classes.push(styles$
|
|
1209
|
+
classes.push(styles$s.loading);
|
|
1210
1210
|
if (focusMode)
|
|
1211
|
-
classes.push(styles$
|
|
1211
|
+
classes.push(styles$s.focusMode);
|
|
1212
1212
|
if (compact)
|
|
1213
|
-
classes.push(styles$
|
|
1213
|
+
classes.push(styles$s.compact);
|
|
1214
1214
|
if (className)
|
|
1215
1215
|
classes.push(className);
|
|
1216
1216
|
return classes.join(' ');
|
|
1217
1217
|
};
|
|
1218
1218
|
const getCharCountClassName = () => {
|
|
1219
1219
|
if (!maxLength)
|
|
1220
|
-
return styles$
|
|
1221
|
-
const classes = [styles$
|
|
1220
|
+
return styles$s.characterCount;
|
|
1221
|
+
const classes = [styles$s.characterCount];
|
|
1222
1222
|
const percentage = (value.length / maxLength) * 100;
|
|
1223
1223
|
if (percentage >= 100) {
|
|
1224
|
-
classes.push(styles$
|
|
1224
|
+
classes.push(styles$s.atLimit);
|
|
1225
1225
|
}
|
|
1226
1226
|
else if (percentage >= 80) {
|
|
1227
|
-
classes.push(styles$
|
|
1227
|
+
classes.push(styles$s.nearLimit);
|
|
1228
1228
|
}
|
|
1229
1229
|
return classes.join(' ');
|
|
1230
1230
|
};
|
|
1231
|
-
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [label && (jsxRuntime.jsxs("label", { htmlFor: textareaId, className: styles$
|
|
1231
|
+
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 })] }))] }));
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
1234
|
-
var styles$
|
|
1234
|
+
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"};
|
|
1235
1235
|
|
|
1236
1236
|
/**
|
|
1237
1237
|
* TextInput component - A versatile text input field with label and error handling
|
|
@@ -1268,21 +1268,21 @@ function TextInput({ label, value, onChange, type = "text", onBlur, placeholder,
|
|
|
1268
1268
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1269
1269
|
const prevValueRef = React.useRef(value);
|
|
1270
1270
|
const getContainerClassName = () => {
|
|
1271
|
-
const classes = [styles$
|
|
1271
|
+
const classes = [styles$r.textInput];
|
|
1272
1272
|
if (success)
|
|
1273
|
-
classes.push(styles$
|
|
1273
|
+
classes.push(styles$r.success);
|
|
1274
1274
|
if (loading)
|
|
1275
|
-
classes.push(styles$
|
|
1275
|
+
classes.push(styles$r.loading);
|
|
1276
1276
|
if (icon)
|
|
1277
|
-
classes.push(styles$
|
|
1277
|
+
classes.push(styles$r.withIcon);
|
|
1278
1278
|
if (actionButton)
|
|
1279
|
-
classes.push(styles$
|
|
1279
|
+
classes.push(styles$r.withAction);
|
|
1280
1280
|
return classes.join(' ');
|
|
1281
1281
|
};
|
|
1282
1282
|
React.useEffect(() => {
|
|
1283
1283
|
prevValueRef.current = value;
|
|
1284
1284
|
}, [value]);
|
|
1285
|
-
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [jsxRuntime.jsxs("label", { htmlFor: inputId, children: [label, required && jsxRuntime.jsx("span", { className: styles$
|
|
1285
|
+
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) => {
|
|
1286
1286
|
const newValue = e.target.value;
|
|
1287
1287
|
const oldValue = prevValueRef.current;
|
|
1288
1288
|
onChange(newValue);
|
|
@@ -1298,13 +1298,13 @@ function TextInput({ label, value, onChange, type = "text", onBlur, placeholder,
|
|
|
1298
1298
|
if (error && soundConfig?.onError) {
|
|
1299
1299
|
playSound(typeof soundConfig.onError === 'string' ? soundConfig.onError : 'error');
|
|
1300
1300
|
}
|
|
1301
|
-
}, onBlur: onBlur, placeholder: placeholder, className: error ? styles$
|
|
1301
|
+
}, 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: () => {
|
|
1302
1302
|
handlers.onClick?.();
|
|
1303
1303
|
actionButton.onClick();
|
|
1304
|
-
}, disabled: disabled || loading, children: actionButton.label }))] }), error && (jsxRuntime.jsx("span", { id: `${inputId}-error`, className: styles$
|
|
1304
|
+
}, disabled: disabled || loading, children: actionButton.label }))] }), error && (jsxRuntime.jsx("span", { id: `${inputId}-error`, className: styles$r.errorMessage, children: error }))] }));
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
|
-
var styles$
|
|
1307
|
+
var styles$q = {"toggleContainer":"Toggle-module_toggleContainer__QxqQb","toggleButton":"Toggle-module_toggleButton__WUUf-","active":"Toggle-module_active__fX6Io"};
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* Toggle Component
|
|
@@ -1365,7 +1365,7 @@ function Toggle(props) {
|
|
|
1365
1365
|
justifyContent: 'center',
|
|
1366
1366
|
...style
|
|
1367
1367
|
};
|
|
1368
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
1368
|
+
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: () => {
|
|
1369
1369
|
if (!isOn) {
|
|
1370
1370
|
// Already on left
|
|
1371
1371
|
if (enableCelebration) {
|
|
@@ -1380,7 +1380,7 @@ function Toggle(props) {
|
|
|
1380
1380
|
playSound('toggle');
|
|
1381
1381
|
}
|
|
1382
1382
|
onToggle(false);
|
|
1383
|
-
}, 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$
|
|
1383
|
+
}, 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: () => {
|
|
1384
1384
|
if (isOn) {
|
|
1385
1385
|
// Already on right
|
|
1386
1386
|
if (enableCelebration) {
|
|
@@ -1398,7 +1398,7 @@ function Toggle(props) {
|
|
|
1398
1398
|
}, 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] })] }));
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
-
var styles$
|
|
1401
|
+
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"};
|
|
1402
1402
|
|
|
1403
1403
|
/**
|
|
1404
1404
|
* NumberStepper Component
|
|
@@ -1585,32 +1585,32 @@ const NumberStepper = ({ value, onChange, min = -Infinity, max = Infinity, step
|
|
|
1585
1585
|
setDisplayValue(finalValue);
|
|
1586
1586
|
}, [displayValue, min, max, step, onChange]);
|
|
1587
1587
|
const containerClasses = [
|
|
1588
|
-
styles$
|
|
1589
|
-
styles$
|
|
1590
|
-
styles$
|
|
1591
|
-
layout === 'vertical' && styles$
|
|
1592
|
-
disabled && styles$
|
|
1588
|
+
styles$p.container,
|
|
1589
|
+
styles$p[size],
|
|
1590
|
+
styles$p[variant],
|
|
1591
|
+
layout === 'vertical' && styles$p.vertical,
|
|
1592
|
+
disabled && styles$p.disabled,
|
|
1593
1593
|
className
|
|
1594
1594
|
].filter(Boolean).join(' ');
|
|
1595
1595
|
// Merge custom styles with hover states
|
|
1596
1596
|
const [isButtonHovered, setIsButtonHovered] = React.useState(null);
|
|
1597
1597
|
const isDecrementDisabled = disabled || value <= min;
|
|
1598
1598
|
const isIncrementDisabled = disabled || value >= max;
|
|
1599
|
-
const stepperContent = (jsxRuntime.jsxs("div", { className: styles$
|
|
1599
|
+
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: {
|
|
1600
1600
|
...customStyles.button,
|
|
1601
1601
|
...(isButtonHovered === 'decrement' && customStyles.buttonHover)
|
|
1602
|
-
}, 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$
|
|
1602
|
+
}, 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: {
|
|
1603
1603
|
...customStyles.button,
|
|
1604
1604
|
...(isButtonHovered === 'increment' && customStyles.buttonHover)
|
|
1605
|
-
}, 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$
|
|
1605
|
+
}, 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" }) }))) })] }));
|
|
1606
1606
|
// For custom variant with horizontal layout, render differently
|
|
1607
1607
|
if (variant === 'custom' && (label || icon)) {
|
|
1608
|
-
return (jsxRuntime.jsxs("div", { className: containerClasses, style: { ...customStyles.container, display: 'flex', alignItems: 'center' }, children: [jsxRuntime.jsxs("div", { className: styles$
|
|
1608
|
+
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}` })] }))] }));
|
|
1609
1609
|
}
|
|
1610
|
-
return (jsxRuntime.jsxs("div", { className: containerClasses, style: customStyles.container, children: [(label || icon) && (jsxRuntime.jsxs("div", { className: styles$
|
|
1610
|
+
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}` })] }))] }));
|
|
1611
1611
|
};
|
|
1612
1612
|
|
|
1613
|
-
var styles$
|
|
1613
|
+
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"};
|
|
1614
1614
|
|
|
1615
1615
|
/**
|
|
1616
1616
|
* ToggleButton Component
|
|
@@ -1649,18 +1649,18 @@ var styles$n = {"button":"ToggleButton-module_button__DTuyY","background":"Toggl
|
|
|
1649
1649
|
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 }) => {
|
|
1650
1650
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1651
1651
|
const buttonClasses = [
|
|
1652
|
-
styles$
|
|
1653
|
-
styles$
|
|
1654
|
-
styles$
|
|
1655
|
-
active && styles$
|
|
1656
|
-
active && styles$
|
|
1657
|
-
disabled && styles$
|
|
1658
|
-
animation !== 'none' && styles$
|
|
1652
|
+
styles$o.button,
|
|
1653
|
+
styles$o[size],
|
|
1654
|
+
styles$o[variant],
|
|
1655
|
+
active && styles$o.active,
|
|
1656
|
+
active && styles$o[`active-${activeColor}`],
|
|
1657
|
+
disabled && styles$o.disabled,
|
|
1658
|
+
animation !== 'none' && styles$o[`animation-${animation}`],
|
|
1659
1659
|
className
|
|
1660
1660
|
].filter(Boolean).join(' ');
|
|
1661
1661
|
const labelClasses = [
|
|
1662
|
-
styles$
|
|
1663
|
-
hideLabelOnMobile && styles$
|
|
1662
|
+
styles$o.label,
|
|
1663
|
+
hideLabelOnMobile && styles$o.hideMobile
|
|
1664
1664
|
].filter(Boolean).join(' ');
|
|
1665
1665
|
const iconVariants = {
|
|
1666
1666
|
scale: {
|
|
@@ -1724,10 +1724,10 @@ const ToggleButton = ({ active, onClick, icon, label, disabled = false, size = '
|
|
|
1724
1724
|
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: buttonClasses, style: dynamicStyle, onClick: () => {
|
|
1725
1725
|
playSound('toggle');
|
|
1726
1726
|
onClick();
|
|
1727
|
-
}, 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$
|
|
1727
|
+
}, 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 } })) })] }));
|
|
1728
1728
|
};
|
|
1729
1729
|
|
|
1730
|
-
var styles$
|
|
1730
|
+
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"};
|
|
1731
1731
|
|
|
1732
1732
|
/**
|
|
1733
1733
|
* Slider component - A beautiful, animated range input
|
|
@@ -1815,16 +1815,16 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1815
1815
|
setShowTooltipState(false);
|
|
1816
1816
|
};
|
|
1817
1817
|
const dynamicColor = getDynamicColor();
|
|
1818
|
-
const sizeClass = styles$
|
|
1819
|
-
const stateClass = disabled ? styles$
|
|
1818
|
+
const sizeClass = styles$n[`size-${size}`];
|
|
1819
|
+
const stateClass = disabled ? styles$n.disabled : loading ? styles$n.loading : '';
|
|
1820
1820
|
if (loading) {
|
|
1821
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
1821
|
+
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: {
|
|
1822
1822
|
repeat: Infinity,
|
|
1823
1823
|
duration: 1.5,
|
|
1824
1824
|
ease: "easeInOut"
|
|
1825
1825
|
} }) })] }));
|
|
1826
1826
|
}
|
|
1827
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
1827
|
+
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: {
|
|
1828
1828
|
width: `${percentage}%`,
|
|
1829
1829
|
backgroundColor: dynamicColor
|
|
1830
1830
|
}, initial: { width: 0 }, animate: { width: `${percentage}%` }, transition: {
|
|
@@ -1834,7 +1834,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1834
1834
|
damping: 30
|
|
1835
1835
|
}, whileHover: {
|
|
1836
1836
|
boxShadow: `inset 0 0 0 1px rgba(255,255,255,0.2)`
|
|
1837
|
-
} }) }), jsxRuntime.jsx("input", { type: "range", min: min, max: max, step: step, value: value, onChange: handleChange, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, ...handlers, className: styles$
|
|
1837
|
+
} }) }), 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: {
|
|
1838
1838
|
left: `${percentage}%`,
|
|
1839
1839
|
backgroundColor: dynamicColor,
|
|
1840
1840
|
borderColor: colors.thumb || dynamicColor
|
|
@@ -1851,14 +1851,14 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1851
1851
|
}, whileHover: {
|
|
1852
1852
|
scale: 1.1,
|
|
1853
1853
|
transition: { duration: 0.1 }
|
|
1854
|
-
}, children: isDragging && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1854
|
+
}, 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: {
|
|
1855
1855
|
left: `${percentage}%`,
|
|
1856
1856
|
backgroundColor: dynamicColor
|
|
1857
|
-
}, 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$
|
|
1857
|
+
}, 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: {
|
|
1858
1858
|
duration: 0.2,
|
|
1859
1859
|
type: "spring",
|
|
1860
1860
|
stiffness: 300
|
|
1861
|
-
}, children: formatValue(value) }, value)), labels.length > 0 && (jsxRuntime.jsx("div", { className: styles$
|
|
1861
|
+
}, children: formatValue(value) }, value)), labels.length > 0 && (jsxRuntime.jsx("div", { className: styles$n.labelsContainer, children: labels.map((labelConfig, index) => {
|
|
1862
1862
|
let position = 0;
|
|
1863
1863
|
if (labelConfig.position === 'start')
|
|
1864
1864
|
position = 0;
|
|
@@ -1866,7 +1866,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1866
1866
|
position = 100;
|
|
1867
1867
|
else if (typeof labelConfig.position === 'number')
|
|
1868
1868
|
position = labelConfig.position;
|
|
1869
|
-
return (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1869
|
+
return (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$n.labelItem, style: {
|
|
1870
1870
|
left: `${position}%`,
|
|
1871
1871
|
color: labelConfig.color
|
|
1872
1872
|
}, initial: { opacity: 0, y: 5 }, animate: { opacity: 1, y: 0 }, transition: {
|
|
@@ -1879,7 +1879,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1879
1879
|
}) }))] }));
|
|
1880
1880
|
}
|
|
1881
1881
|
|
|
1882
|
-
var styles$
|
|
1882
|
+
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"};
|
|
1883
1883
|
|
|
1884
1884
|
const defaultMessages = [
|
|
1885
1885
|
'Loading your content...',
|
|
@@ -1963,22 +1963,22 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1963
1963
|
}
|
|
1964
1964
|
}, [currentMessageIndex, message, messagesToUse, showMessage]);
|
|
1965
1965
|
const containerClasses = [
|
|
1966
|
-
styles$
|
|
1967
|
-
styles$
|
|
1968
|
-
styles$
|
|
1969
|
-
fullScreen && styles$
|
|
1970
|
-
overlay && styles$
|
|
1966
|
+
styles$m.loadingContainer,
|
|
1967
|
+
styles$m[size],
|
|
1968
|
+
styles$m[variant],
|
|
1969
|
+
fullScreen && styles$m.fullScreen,
|
|
1970
|
+
overlay && styles$m.overlay,
|
|
1971
1971
|
className
|
|
1972
1972
|
].filter(Boolean).join(' ');
|
|
1973
1973
|
const customStyle = {
|
|
1974
1974
|
...(color && { '--spinner-color': color }),
|
|
1975
1975
|
...(backgroundColor && { '--spinner-background': backgroundColor }),
|
|
1976
1976
|
};
|
|
1977
|
-
const renderDots = () => (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$
|
|
1977
|
+
const renderDots = () => (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$m.dotsSpinner, animate: { rotate: 360 }, transition: {
|
|
1978
1978
|
duration: 2,
|
|
1979
1979
|
repeat: Infinity,
|
|
1980
1980
|
ease: 'linear'
|
|
1981
|
-
}, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1981
|
+
}, children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.dot1, animate: {
|
|
1982
1982
|
scale: [1, 1.3, 1],
|
|
1983
1983
|
y: [0, -6, 0]
|
|
1984
1984
|
}, transition: {
|
|
@@ -1986,7 +1986,7 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1986
1986
|
repeat: Infinity,
|
|
1987
1987
|
ease: 'easeInOut',
|
|
1988
1988
|
delay: 0
|
|
1989
|
-
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1989
|
+
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.dot2, animate: {
|
|
1990
1990
|
scale: [1, 1.3, 1],
|
|
1991
1991
|
y: [0, -6, 0]
|
|
1992
1992
|
}, transition: {
|
|
@@ -1994,7 +1994,7 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
1994
1994
|
repeat: Infinity,
|
|
1995
1995
|
ease: 'easeInOut',
|
|
1996
1996
|
delay: 0.5
|
|
1997
|
-
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
1997
|
+
} }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.dot3, animate: {
|
|
1998
1998
|
scale: [1, 1.3, 1],
|
|
1999
1999
|
y: [0, -6, 0]
|
|
2000
2000
|
}, transition: {
|
|
@@ -2003,12 +2003,12 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
2003
2003
|
ease: 'easeInOut',
|
|
2004
2004
|
delay: 1
|
|
2005
2005
|
} })] }));
|
|
2006
|
-
const renderSpinner = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
2006
|
+
const renderSpinner = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.circleSpinner, animate: { rotate: 360 }, transition: {
|
|
2007
2007
|
duration: 1,
|
|
2008
2008
|
repeat: Infinity,
|
|
2009
2009
|
ease: 'linear'
|
|
2010
2010
|
} }));
|
|
2011
|
-
const renderPulse = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
2011
|
+
const renderPulse = () => (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$m.pulseSpinner, animate: {
|
|
2012
2012
|
scale: [1, 1.2, 1],
|
|
2013
2013
|
opacity: [1, 0.7, 1]
|
|
2014
2014
|
}, transition: {
|
|
@@ -2027,10 +2027,10 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
2027
2027
|
return renderDots();
|
|
2028
2028
|
}
|
|
2029
2029
|
};
|
|
2030
|
-
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$
|
|
2030
|
+
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: {
|
|
2031
2031
|
duration: 0.4,
|
|
2032
2032
|
ease: 'easeOut'
|
|
2033
|
-
}, children: currentMessage }, currentMessage) })), showSparkles && (jsxRuntime.jsx("div", { className: styles$
|
|
2033
|
+
}, 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: {
|
|
2034
2034
|
opacity: [0, 1, 0],
|
|
2035
2035
|
scale: [0.5, 1, 0.5],
|
|
2036
2036
|
rotate: [0, 180, 360]
|
|
@@ -2045,7 +2045,7 @@ const LoadingSpinner = ({ message, size = 'medium', variant = 'dots', className
|
|
|
2045
2045
|
} }, i))) }))] }));
|
|
2046
2046
|
};
|
|
2047
2047
|
|
|
2048
|
-
var styles$
|
|
2048
|
+
var styles$l = {"wrapper":"DecryptedText-module_wrapper__tuLvf","srOnly":"DecryptedText-module_srOnly__A-K2T"};
|
|
2049
2049
|
|
|
2050
2050
|
/**
|
|
2051
2051
|
* DecryptedText Component
|
|
@@ -2229,13 +2229,13 @@ const DecryptedText = ({ text, speed = 50, maxIterations = 10, sequential = fals
|
|
|
2229
2229
|
onMouseLeave: () => setIsHovering(false),
|
|
2230
2230
|
}
|
|
2231
2231
|
: {};
|
|
2232
|
-
return (jsxRuntime.jsxs(framerMotion.motion.span, { className: `${styles$
|
|
2232
|
+
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) => {
|
|
2233
2233
|
const isRevealedOrDone = revealedIndices.has(index) || !isScrambling || !isHovering;
|
|
2234
2234
|
return (jsxRuntime.jsx("span", { className: isRevealedOrDone ? className : encryptedClassName, children: char }, index));
|
|
2235
2235
|
}) })] }));
|
|
2236
2236
|
};
|
|
2237
2237
|
|
|
2238
|
-
var styles$
|
|
2238
|
+
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"};
|
|
2239
2239
|
|
|
2240
2240
|
/**
|
|
2241
2241
|
* ArrayInput component - Versatile dynamic list manager
|
|
@@ -2302,11 +2302,11 @@ function SimpleArrayInput({ label, values, onChange, placeholder, itemStyle, inp
|
|
|
2302
2302
|
itemIdsRef.current.splice(index, 1);
|
|
2303
2303
|
onChange(newValues);
|
|
2304
2304
|
};
|
|
2305
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
2305
|
+
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: {
|
|
2306
2306
|
duration: 0.3,
|
|
2307
2307
|
ease: "easeInOut",
|
|
2308
2308
|
layout: { duration: 0.2 }
|
|
2309
|
-
}, children: [jsxRuntime.jsx("div", { className: styles$
|
|
2309
|
+
}, 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 })] }));
|
|
2310
2310
|
}
|
|
2311
2311
|
// Complex object array implementation
|
|
2312
2312
|
function ComplexArrayInput({ label, values, onChange, fields, getKey, itemStyle, inputStyle, buttonVariant = 'primary' }) {
|
|
@@ -2331,14 +2331,14 @@ function ComplexArrayInput({ label, values, onChange, fields, getKey, itemStyle,
|
|
|
2331
2331
|
// Generate key from all field values
|
|
2332
2332
|
return fields.map(f => item[f.name] || '').join('-') + `-${index}`;
|
|
2333
2333
|
};
|
|
2334
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
2334
|
+
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: {
|
|
2335
2335
|
duration: 0.3,
|
|
2336
2336
|
ease: "easeInOut",
|
|
2337
2337
|
layout: { duration: 0.2 }
|
|
2338
|
-
}, children: [jsxRuntime.jsx("div", { className: styles$
|
|
2338
|
+
}, 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] })] }));
|
|
2339
2339
|
}
|
|
2340
2340
|
|
|
2341
|
-
var styles$
|
|
2341
|
+
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"};
|
|
2342
2342
|
|
|
2343
2343
|
const EditFAB = ({ canEdit, isEditMode, hasUnsavedChanges = false, isSaving = false, onEnterEditMode, onExitEditMode, position = { bottom: 32, right: 32 } }) => {
|
|
2344
2344
|
const [isMobile, setIsMobile] = React.useState(false);
|
|
@@ -2423,15 +2423,15 @@ const EditFAB = ({ canEdit, isEditMode, hasUnsavedChanges = false, isSaving = fa
|
|
|
2423
2423
|
};
|
|
2424
2424
|
const getVariantClass = () => {
|
|
2425
2425
|
if (isSaving)
|
|
2426
|
-
return styles$
|
|
2426
|
+
return styles$j.primary;
|
|
2427
2427
|
if (isEditMode) {
|
|
2428
|
-
return hasUnsavedChanges ? styles$
|
|
2428
|
+
return hasUnsavedChanges ? styles$j.success : styles$j.secondary;
|
|
2429
2429
|
}
|
|
2430
|
-
return styles$
|
|
2430
|
+
return styles$j.primary;
|
|
2431
2431
|
};
|
|
2432
2432
|
const getIcon = () => {
|
|
2433
2433
|
if (isSaving) {
|
|
2434
|
-
return jsxRuntime.jsx("div", { className: styles$
|
|
2434
|
+
return jsxRuntime.jsx("div", { className: styles$j.loader });
|
|
2435
2435
|
}
|
|
2436
2436
|
if (isEditMode) {
|
|
2437
2437
|
return hasUnsavedChanges ? jsxRuntime.jsx(lucideReact.Check, { size: 24 }) : jsxRuntime.jsx(lucideReact.X, { size: 24 });
|
|
@@ -2446,14 +2446,14 @@ const EditFAB = ({ canEdit, isEditMode, hasUnsavedChanges = false, isSaving = fa
|
|
|
2446
2446
|
}
|
|
2447
2447
|
return "Enter edit mode";
|
|
2448
2448
|
};
|
|
2449
|
-
return (jsxRuntime.jsx(framerMotion.motion.button, { ref: fabRef, className: `${styles$
|
|
2449
|
+
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: {
|
|
2450
2450
|
type: "spring",
|
|
2451
2451
|
stiffness: 260,
|
|
2452
2452
|
damping: 20
|
|
2453
2453
|
}, children: getIcon() }));
|
|
2454
2454
|
};
|
|
2455
2455
|
|
|
2456
|
-
var styles$
|
|
2456
|
+
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"};
|
|
2457
2457
|
|
|
2458
2458
|
// Default filter options for backwards compatibility
|
|
2459
2459
|
const defaultFilterOptions = [
|
|
@@ -2646,20 +2646,20 @@ const SearchBar = ({ className, placeholder = "Search (Ctrl+Space)...", onSearch
|
|
|
2646
2646
|
return text || '';
|
|
2647
2647
|
const regex = new RegExp(`(${highlight.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
|
|
2648
2648
|
const parts = text.split(regex);
|
|
2649
|
-
return parts.map((part, index) => regex.test(part) ? (jsxRuntime.jsx("mark", { className: styles$
|
|
2649
|
+
return parts.map((part, index) => regex.test(part) ? (jsxRuntime.jsx("mark", { className: styles$i.highlight, children: part }, index)) : (part));
|
|
2650
2650
|
};
|
|
2651
|
-
return (jsxRuntime.jsxs("div", { ref: searchRef, className: `${styles$
|
|
2651
|
+
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]) => {
|
|
2652
2652
|
const Icon = entityIcons[type];
|
|
2653
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
2653
|
+
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) => {
|
|
2654
2654
|
const globalIndex = results.indexOf(result);
|
|
2655
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { "data-result-index": globalIndex, className: `${styles$
|
|
2655
|
+
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}`));
|
|
2656
2656
|
}) })] }, type));
|
|
2657
2657
|
}) })) })) })] }));
|
|
2658
2658
|
};
|
|
2659
2659
|
|
|
2660
|
-
var styles$
|
|
2660
|
+
var styles$h = {"timeInput":"TimeInput-module_timeInput__h1DpT","label":"TimeInput-module_label__d4rZw","required":"TimeInput-module_required__rc1vq","picker":"TimeInput-module_picker__9c6EI","error":"TimeInput-module_error__gJnpk","disabled":"TimeInput-module_disabled__wxiZ-"};
|
|
2661
2661
|
|
|
2662
|
-
const lightTheme = styles$
|
|
2662
|
+
const lightTheme = styles$B.createTheme({
|
|
2663
2663
|
palette: {
|
|
2664
2664
|
mode: 'light',
|
|
2665
2665
|
primary: { main: '#3b82f6' },
|
|
@@ -2673,7 +2673,7 @@ const lightTheme = styles$A.createTheme({
|
|
|
2673
2673
|
},
|
|
2674
2674
|
},
|
|
2675
2675
|
});
|
|
2676
|
-
const darkTheme = styles$
|
|
2676
|
+
const darkTheme = styles$B.createTheme({
|
|
2677
2677
|
palette: {
|
|
2678
2678
|
mode: 'dark',
|
|
2679
2679
|
primary: { main: '#f5b829' },
|
|
@@ -2693,26 +2693,26 @@ function TimeInput({ label, value, onChange, error = false, success = false, loa
|
|
|
2693
2693
|
!!document.documentElement.getAttribute('data-theme')?.includes('dark');
|
|
2694
2694
|
const muiTheme = React.useMemo(() => (isDark ? darkTheme : lightTheme), [isDark]);
|
|
2695
2695
|
const getContainerClassName = () => {
|
|
2696
|
-
const classes = [styles$
|
|
2696
|
+
const classes = [styles$h.timeInput];
|
|
2697
2697
|
if (error)
|
|
2698
|
-
classes.push(styles$
|
|
2698
|
+
classes.push(styles$h.error);
|
|
2699
2699
|
if (success)
|
|
2700
|
-
classes.push(styles$
|
|
2700
|
+
classes.push(styles$h.success);
|
|
2701
2701
|
if (loading)
|
|
2702
|
-
classes.push(styles$
|
|
2702
|
+
classes.push(styles$h.loading);
|
|
2703
2703
|
if (disabled)
|
|
2704
|
-
classes.push(styles$
|
|
2704
|
+
classes.push(styles$h.disabled);
|
|
2705
2705
|
if (className)
|
|
2706
2706
|
classes.push(className);
|
|
2707
2707
|
return classes.join(' ');
|
|
2708
2708
|
};
|
|
2709
|
-
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [label && (jsxRuntime.jsxs("label", { className: styles$
|
|
2709
|
+
return (jsxRuntime.jsxs("div", { className: getContainerClassName(), children: [label && (jsxRuntime.jsxs("label", { className: styles$h.label, children: [label, required && jsxRuntime.jsx("span", { className: styles$h.required, children: "*" })] })), jsxRuntime.jsx(styles$B.ThemeProvider, { theme: muiTheme, children: jsxRuntime.jsx(LocalizationProvider.LocalizationProvider, { dateAdapter: AdapterDayjs.AdapterDayjs, children: jsxRuntime.jsx(MobileTimePicker.MobileTimePicker, { value: dayjsValue, onChange: (newValue) => {
|
|
2710
2710
|
onChange(newValue ? newValue.format('HH:mm') : '');
|
|
2711
2711
|
}, ampm: false, views: ['hours', 'minutes'], disabled: disabled || loading, slotProps: {
|
|
2712
2712
|
textField: {
|
|
2713
2713
|
size: 'small',
|
|
2714
2714
|
fullWidth: true,
|
|
2715
|
-
className: styles$
|
|
2715
|
+
className: styles$h.picker,
|
|
2716
2716
|
sx: {
|
|
2717
2717
|
'& .MuiPickersOutlinedInput-root': {
|
|
2718
2718
|
fontFamily: "'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace",
|
|
@@ -2800,7 +2800,7 @@ const ThemeProvider = ({ children, defaultTheme = 'light', storageKey = 'app-the
|
|
|
2800
2800
|
return (jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children: children }));
|
|
2801
2801
|
};
|
|
2802
2802
|
|
|
2803
|
-
var styles$
|
|
2803
|
+
var styles$g = {"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"};
|
|
2804
2804
|
|
|
2805
2805
|
const ThemeSwitcher = ({ variant = 'button', showLabel = false, className = '', currentTheme, onThemeChange, themes: customThemes, }) => {
|
|
2806
2806
|
// Use safe version that returns null when outside a ThemeProvider
|
|
@@ -2821,19 +2821,19 @@ const ThemeSwitcher = ({ variant = 'button', showLabel = false, className = '',
|
|
|
2821
2821
|
if (variant === 'toggle') {
|
|
2822
2822
|
// Simple toggle between light and dark
|
|
2823
2823
|
const isDark = theme.includes('dark');
|
|
2824
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$
|
|
2824
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$g.toggle} ${className}`, onClick: () => setTheme(isDark ? 'light' : 'dark'), whileTap: { scale: 0.95 }, "aria-label": "Toggle theme", children: [jsxRuntime.jsx(framerMotion.motion.div, { className: styles$g.toggleTrack, animate: { backgroundColor: isDark ? 'var(--color-primary)' : 'var(--color-border)' }, children: jsxRuntime.jsx(framerMotion.motion.div, { className: styles$g.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$g.label, children: isDark ? 'Dark' : 'Light' })] }));
|
|
2825
2825
|
}
|
|
2826
2826
|
if (variant === 'dropdown') {
|
|
2827
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
2827
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$g.dropdown} ${className}`, children: [jsxRuntime.jsxs(framerMotion.motion.button, { className: styles$g.dropdownTrigger, whileTap: { scale: 0.98 }, children: [currentThemeData.icon, showLabel && jsxRuntime.jsx("span", { className: styles$g.label, children: currentThemeData.label })] }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$g.dropdownMenu, initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, children: themes.map((t) => (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$g.dropdownItem} ${theme === t.value ? styles$g.active : ''}`, onClick: () => setTheme(t.value), whileHover: { x: 4 }, whileTap: { scale: 0.98 }, children: [jsxRuntime.jsx("span", { className: styles$g.icon, children: t.icon }), jsxRuntime.jsx("span", { className: styles$g.text, children: t.label })] }, t.value))) })] }));
|
|
2828
2828
|
}
|
|
2829
2829
|
// Default button variant - cycles through themes
|
|
2830
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$
|
|
2830
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: `${styles$g.button} ${className}`, onClick: () => {
|
|
2831
2831
|
const nextIndex = (currentThemeIndex + 1) % themes.length;
|
|
2832
2832
|
setTheme(themes[nextIndex].value);
|
|
2833
|
-
}, 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$
|
|
2833
|
+
}, 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$g.iconWrapper, children: currentThemeData.icon }, theme), showLabel && jsxRuntime.jsx("span", { className: styles$g.label, children: currentThemeData.label })] }));
|
|
2834
2834
|
};
|
|
2835
2835
|
|
|
2836
|
-
var styles$
|
|
2836
|
+
var styles$f = {"tabs":"Tabs-module_tabs__Vlvn7","tab":"Tabs-module_tab__uQKim","tabIcon":"Tabs-module_tabIcon__AgN-O","fullWidth":"Tabs-module_fullWidth__X-GHP"};
|
|
2837
2837
|
|
|
2838
2838
|
// Default tabs for backwards compatibility
|
|
2839
2839
|
const defaultTabs = [
|
|
@@ -2844,39 +2844,39 @@ const defaultTabs = [
|
|
|
2844
2844
|
];
|
|
2845
2845
|
const Tabs = ({ activeTab, onTabChange, tabs: customTabs, className = '', fullWidth = false }) => {
|
|
2846
2846
|
const tabs = customTabs ?? defaultTabs;
|
|
2847
|
-
return (jsxRuntime.jsx("div", { className: `${styles$
|
|
2847
|
+
return (jsxRuntime.jsx("div", { className: `${styles$f.tabs} ${fullWidth ? styles$f.fullWidth : ''} ${className}`, children: tabs.map((tab) => {
|
|
2848
2848
|
const isActive = activeTab === tab.id;
|
|
2849
|
-
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: styles$
|
|
2849
|
+
return (jsxRuntime.jsxs(framerMotion.motion.button, { className: styles$f.tab, "data-active": isActive, onClick: () => onTabChange(tab.id), style: { position: 'relative' }, children: [jsxRuntime.jsx(framerMotion.motion.div, { animate: {
|
|
2850
2850
|
rotate: isActive ? [0, -10, 10, -5, 5, 0] : 0,
|
|
2851
2851
|
}, transition: {
|
|
2852
2852
|
rotate: {
|
|
2853
2853
|
duration: 0.5,
|
|
2854
2854
|
ease: 'easeInOut'
|
|
2855
2855
|
}
|
|
2856
|
-
}, children: tab.icon && (React.isValidElement(tab.icon) ? (jsxRuntime.jsx("span", { className: styles$
|
|
2856
|
+
}, children: tab.icon && (React.isValidElement(tab.icon) ? (jsxRuntime.jsx("span", { className: styles$f.tabIcon, children: tab.icon })) : (jsxRuntime.jsx("span", { className: styles$f.tabIcon, children: React.createElement(tab.icon) }))) }), jsxRuntime.jsx("span", { children: tab.label })] }, tab.id));
|
|
2857
2857
|
}) }));
|
|
2858
2858
|
};
|
|
2859
2859
|
|
|
2860
|
-
var styles$
|
|
2860
|
+
var styles$e = {"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"};
|
|
2861
2861
|
|
|
2862
2862
|
const getIcon = (type) => {
|
|
2863
2863
|
switch (type) {
|
|
2864
2864
|
case 'success':
|
|
2865
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2865
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$e.icon} ${styles$e.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" }) }));
|
|
2866
2866
|
case 'error':
|
|
2867
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2867
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$e.icon} ${styles$e.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" }) }));
|
|
2868
2868
|
case 'warning':
|
|
2869
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2869
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$e.icon} ${styles$e.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" }) }));
|
|
2870
2870
|
case 'info':
|
|
2871
|
-
return (jsxRuntime.jsx("svg", { className: `${styles$
|
|
2871
|
+
return (jsxRuntime.jsx("svg", { className: `${styles$e.icon} ${styles$e.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" }) }));
|
|
2872
2872
|
}
|
|
2873
2873
|
};
|
|
2874
2874
|
const getToastStyle = (type) => {
|
|
2875
2875
|
switch (type) {
|
|
2876
|
-
case 'success': return styles$
|
|
2877
|
-
case 'error': return styles$
|
|
2878
|
-
case 'warning': return styles$
|
|
2879
|
-
case 'info': return styles$
|
|
2876
|
+
case 'success': return styles$e.toastSuccess;
|
|
2877
|
+
case 'error': return styles$e.toastError;
|
|
2878
|
+
case 'warning': return styles$e.toastWarning;
|
|
2879
|
+
case 'info': return styles$e.toastInfo;
|
|
2880
2880
|
default: return '';
|
|
2881
2881
|
}
|
|
2882
2882
|
};
|
|
@@ -2898,7 +2898,7 @@ const ToastItem = ({ toast, removeToast, }) => {
|
|
|
2898
2898
|
clearInterval(interval);
|
|
2899
2899
|
};
|
|
2900
2900
|
}, [toast.id, duration, removeToast]);
|
|
2901
|
-
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$
|
|
2901
|
+
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: `${styles$e.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$e.content, children: [toast.title && jsxRuntime.jsx("p", { className: styles$e.title, children: toast.title }), jsxRuntime.jsx("p", { className: styles$e.message, children: toast.message })] }), jsxRuntime.jsx("button", { className: styles$e.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$e.progressBar, initial: { width: '100%' }, animate: { width: `${progress}%` }, style: {
|
|
2902
2902
|
color: toast.type === 'success' ? '#10B981'
|
|
2903
2903
|
: toast.type === 'error' ? '#EF4444'
|
|
2904
2904
|
: toast.type === 'warning' ? '#F59E0B'
|
|
@@ -2908,10 +2908,10 @@ const ToastItem = ({ toast, removeToast, }) => {
|
|
|
2908
2908
|
const ToastContainer = ({ toasts, removeToast }) => {
|
|
2909
2909
|
if (typeof document === 'undefined')
|
|
2910
2910
|
return null;
|
|
2911
|
-
return reactDom.createPortal(jsxRuntime.jsx("div", { className: styles$
|
|
2911
|
+
return reactDom.createPortal(jsxRuntime.jsx("div", { className: styles$e.toastContainer, children: jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "sync", children: toasts.map((toast) => (jsxRuntime.jsx(ToastItem, { toast: toast, removeToast: removeToast }, toast.id))) }) }), document.body);
|
|
2912
2912
|
};
|
|
2913
2913
|
|
|
2914
|
-
var styles$
|
|
2914
|
+
var styles$d = {"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"};
|
|
2915
2915
|
|
|
2916
2916
|
/**
|
|
2917
2917
|
* Breadcrumb Component
|
|
@@ -2930,13 +2930,13 @@ var styles$c = {"breadcrumb":"Breadcrumb-module_breadcrumb__pGabz","separator":"
|
|
|
2930
2930
|
* />
|
|
2931
2931
|
*/
|
|
2932
2932
|
const Breadcrumb = ({ items, onNavigate, className = '' }) => {
|
|
2933
|
-
return (jsxRuntime.jsx("nav", { className: `${styles$
|
|
2933
|
+
return (jsxRuntime.jsx("nav", { className: `${styles$d.breadcrumb} ${className}`, "aria-label": "Breadcrumb", children: items.map((item, index) => {
|
|
2934
2934
|
const isLast = index === items.length - 1;
|
|
2935
|
-
return (jsxRuntime.jsxs(React.Fragment, { children: [index > 0 && jsxRuntime.jsx(lucideReact.ChevronRight, { size: 14, className: styles$
|
|
2935
|
+
return (jsxRuntime.jsxs(React.Fragment, { children: [index > 0 && jsxRuntime.jsx(lucideReact.ChevronRight, { size: 14, className: styles$d.separator }), isLast || !item.href ? (jsxRuntime.jsx("span", { className: `${styles$d.item} ${isLast ? styles$d.current : ''}`, children: item.label })) : (jsxRuntime.jsx("button", { className: `${styles$d.item} ${styles$d.link}`, onClick: () => onNavigate?.(item.href), children: item.label }))] }, index));
|
|
2936
2936
|
}) }));
|
|
2937
2937
|
};
|
|
2938
2938
|
|
|
2939
|
-
var styles$
|
|
2939
|
+
var styles$c = {"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"};
|
|
2940
2940
|
|
|
2941
2941
|
/**
|
|
2942
2942
|
* LiquidButton Component
|
|
@@ -2962,11 +2962,89 @@ const LiquidButton = ({ actions, icon: Icon = lucideReact.Plus, className = '',
|
|
|
2962
2962
|
setExpanded(false);
|
|
2963
2963
|
action.onClick();
|
|
2964
2964
|
}, []);
|
|
2965
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(framerMotion.AnimatePresence, { children: expanded && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$
|
|
2965
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(framerMotion.AnimatePresence, { children: expanded && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$c.overlay, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, onClick: handleToggle })) }), jsxRuntime.jsxs("div", { className: `${styles$c.container} ${className}`, children: [jsxRuntime.jsx(framerMotion.AnimatePresence, { children: expanded && (jsxRuntime.jsx("div", { className: styles$c.actions, children: actions.map((action, index) => (jsxRuntime.jsxs(framerMotion.motion.button, { type: "button", className: styles$c.actionButton, initial: { opacity: 0, scale: 0.8 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.8 }, transition: {
|
|
2966
2966
|
duration: 0.15,
|
|
2967
2967
|
delay: (actions.length - 1 - index) * 0.05,
|
|
2968
|
-
}, onClick: () => handleAction(action), children: [jsxRuntime.jsx(action.icon, { size: 18, color: action.color }), jsxRuntime.jsx("span", { className: styles$
|
|
2968
|
+
}, onClick: () => handleAction(action), children: [jsxRuntime.jsx(action.icon, { size: 18, color: action.color }), jsxRuntime.jsx("span", { className: styles$c.actionLabel, children: action.label })] }, action.key))) })) }), jsxRuntime.jsx(framerMotion.motion.button, { type: "button", className: styles$c.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 }) })] })] }));
|
|
2969
|
+
};
|
|
2970
|
+
|
|
2971
|
+
var styles$b = {"wrap":"StreamConsole-module_wrap__MnVWw","header":"StreamConsole-module_header__FjnRM","headerLeft":"StreamConsole-module_headerLeft__gNDyh","statusDot":"StreamConsole-module_statusDot__xQ254","spin":"StreamConsole-module_spin__OrOeL","label":"StreamConsole-module_label__rJIDm","statusText":"StreamConsole-module_statusText__oG-ej","dismiss":"StreamConsole-module_dismiss__WH3Kv","body":"StreamConsole-module_body__-HIK-","hint":"StreamConsole-module_hint__BA4SI","line":"StreamConsole-module_line__5hMY2","linePrefix":"StreamConsole-module_linePrefix__xR-Oj","lineText":"StreamConsole-module_lineText__IyRSF","lineLabel":"StreamConsole-module_lineLabel__z-qj4"};
|
|
2972
|
+
|
|
2973
|
+
// Known prefixes produced by stream-json summarizers (DAO-style):
|
|
2974
|
+
// "bash: ls -la", "read: path/to/file", "edit: path/to/file",
|
|
2975
|
+
// "write: path", "grep: pattern", "glob: pattern", "thinking: ..."
|
|
2976
|
+
// Plus scaffold-specific lifecycle markers like "spawning claude ..." and
|
|
2977
|
+
// "resuming session ...". Anything else keeps the default `·` dot.
|
|
2978
|
+
function parseStep(message) {
|
|
2979
|
+
const prefixMatch = /^([a-z]+):\s*(.*)$/i.exec(message);
|
|
2980
|
+
if (prefixMatch) {
|
|
2981
|
+
const key = prefixMatch[1].toLowerCase();
|
|
2982
|
+
const body = prefixMatch[2];
|
|
2983
|
+
const known = {
|
|
2984
|
+
bash: 'bash',
|
|
2985
|
+
read: 'read',
|
|
2986
|
+
edit: 'edit',
|
|
2987
|
+
write: 'write',
|
|
2988
|
+
grep: 'grep',
|
|
2989
|
+
glob: 'glob',
|
|
2990
|
+
thinking: 'thinking',
|
|
2991
|
+
};
|
|
2992
|
+
if (known[key])
|
|
2993
|
+
return { subtype: known[key], label: key, body };
|
|
2994
|
+
}
|
|
2995
|
+
if (/^(spawning|resuming|starting|launching)\b/i.test(message)) {
|
|
2996
|
+
return { subtype: 'lifecycle', label: '', body: message };
|
|
2997
|
+
}
|
|
2998
|
+
return { subtype: null, label: '', body: message };
|
|
2999
|
+
}
|
|
3000
|
+
const STEP_ICON = {
|
|
3001
|
+
bash: lucideReact.Terminal,
|
|
3002
|
+
read: lucideReact.FileText,
|
|
3003
|
+
edit: lucideReact.Pencil,
|
|
3004
|
+
write: lucideReact.FilePlus,
|
|
3005
|
+
grep: lucideReact.Search,
|
|
3006
|
+
glob: lucideReact.FolderSearch,
|
|
3007
|
+
thinking: lucideReact.Brain,
|
|
3008
|
+
lifecycle: lucideReact.Play,
|
|
2969
3009
|
};
|
|
3010
|
+
function StreamConsole({ stream, onCancel, onDismiss, hideDismiss = false, runningLabel = 'Running', successLabel = 'Done', errorLabel = 'Failed', }) {
|
|
3011
|
+
const listRef = React.useRef(null);
|
|
3012
|
+
const userScrolledUp = React.useRef(false);
|
|
3013
|
+
React.useEffect(() => {
|
|
3014
|
+
const el = listRef.current;
|
|
3015
|
+
if (!el)
|
|
3016
|
+
return;
|
|
3017
|
+
const onScroll = () => {
|
|
3018
|
+
const atBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 40;
|
|
3019
|
+
userScrolledUp.current = !atBottom;
|
|
3020
|
+
};
|
|
3021
|
+
el.addEventListener('scroll', onScroll);
|
|
3022
|
+
return () => el.removeEventListener('scroll', onScroll);
|
|
3023
|
+
}, []);
|
|
3024
|
+
React.useEffect(() => {
|
|
3025
|
+
const el = listRef.current;
|
|
3026
|
+
if (!el || userScrolledUp.current)
|
|
3027
|
+
return;
|
|
3028
|
+
el.scrollTop = el.scrollHeight;
|
|
3029
|
+
}, [stream.events.length]);
|
|
3030
|
+
const Icon = stream.status === 'running' ? lucideReact.Loader2 : stream.status === 'success' ? lucideReact.Check : lucideReact.AlertTriangle;
|
|
3031
|
+
const statusLabel = stream.status === 'running'
|
|
3032
|
+
? runningLabel
|
|
3033
|
+
: stream.status === 'success'
|
|
3034
|
+
? successLabel
|
|
3035
|
+
: errorLabel;
|
|
3036
|
+
const canShowDismiss = !hideDismiss && (stream.status === 'running' ? !!onCancel : !!onDismiss);
|
|
3037
|
+
return (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$b.wrap, "data-status": stream.status, initial: { opacity: 0, y: -8 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -8 }, transition: { duration: 0.18 }, children: [jsxRuntime.jsxs("header", { className: styles$b.header, children: [jsxRuntime.jsxs("div", { className: styles$b.headerLeft, children: [jsxRuntime.jsx("span", { className: styles$b.statusDot, "data-status": stream.status, children: jsxRuntime.jsx(Icon, { size: 12, className: stream.status === 'running' ? styles$b.spin : '' }) }), jsxRuntime.jsx("span", { className: styles$b.label, children: stream.label }), jsxRuntime.jsx("span", { className: styles$b.statusText, children: statusLabel })] }), canShowDismiss && (jsxRuntime.jsx("button", { type: "button", className: styles$b.dismiss, "aria-label": stream.status === 'running' ? 'Cancel' : 'Dismiss', onClick: () => {
|
|
3038
|
+
if (stream.status === 'running')
|
|
3039
|
+
onCancel?.(stream.id);
|
|
3040
|
+
else
|
|
3041
|
+
onDismiss?.(stream.id);
|
|
3042
|
+
}, children: jsxRuntime.jsx(lucideReact.X, { size: 14 }) }))] }), jsxRuntime.jsxs("div", { className: styles$b.body, ref: listRef, children: [stream.events.length === 0 && stream.status === 'running' && (jsxRuntime.jsx("p", { className: styles$b.hint, children: "Waiting for output\u2026" })), stream.events.map((event, i) => {
|
|
3043
|
+
const step = event.type === 'step' ? parseStep(event.message) : null;
|
|
3044
|
+
const StepIcon = step?.subtype ? STEP_ICON[step.subtype] : null;
|
|
3045
|
+
return (jsxRuntime.jsxs("p", { className: styles$b.line, "data-type": event.type, "data-subtype": step?.subtype ?? undefined, children: [jsxRuntime.jsx("span", { className: styles$b.linePrefix, children: StepIcon ? (jsxRuntime.jsx(StepIcon, { size: 11 })) : event.type === 'error' ? ('!') : event.type === 'warning' ? ('⚠') : event.type === 'success' ? ('✓') : ('·') }), step?.label ? (jsxRuntime.jsx("span", { className: styles$b.lineLabel, children: step.label })) : null, jsxRuntime.jsx("span", { className: styles$b.lineText, children: step ? step.body : event.message })] }, i));
|
|
3046
|
+
}), stream.status === 'error' && stream.errorMessage && (jsxRuntime.jsxs("p", { className: styles$b.line, "data-type": "error", children: [jsxRuntime.jsx("span", { className: styles$b.linePrefix, children: "!" }), jsxRuntime.jsx("span", { className: styles$b.lineText, children: stream.errorMessage })] }))] })] }));
|
|
3047
|
+
}
|
|
2970
3048
|
|
|
2971
3049
|
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","exportDropdown":"Calendar-module_exportDropdown__yQX4q","exportButton":"Calendar-module_exportButton__dx7--","exportMenu":"Calendar-module_exportMenu__-lZ-8","exportMenuItem":"Calendar-module_exportMenuItem__D9MdL","todayButton":"Calendar-module_todayButton__Ac9zc","viewToggle":"Calendar-module_viewToggle__Fhg2t","viewButton":"Calendar-module_viewButton__J2WY6","active":"Calendar-module_active__lIqH-","filterBar":"Calendar-module_filterBar__ZD-lX","filterPill":"Calendar-module_filterPill__f7S8p","filterPillActive":"Calendar-module_filterPillActive__9Wtm9","filterDot":"Calendar-module_filterDot__E1Hp8","weekDays":"Calendar-module_weekDays__4J-8f","withWeekNumbers":"Calendar-module_withWeekNumbers__qbnUY","weekNumberHeader":"Calendar-module_weekNumberHeader__xhKbB","weekDay":"Calendar-module_weekDay__cg8Gr","daysGrid":"Calendar-module_daysGrid__ER0GM","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","weekNumberCell":"Calendar-module_weekNumberCell__bydCw","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","weekTimeline":"Calendar-module_weekTimeline__q75EF","weekTimelineHeader":"Calendar-module_weekTimelineHeader__n5i06","weekDayColumnHeader":"Calendar-module_weekDayColumnHeader__u2ghX","weekDayLabel":"Calendar-module_weekDayLabel__i8Rm9","weekDayNumber":"Calendar-module_weekDayNumber__tqFKO","weekTimelineScroll":"Calendar-module_weekTimelineScroll__jesa0","weekTimelineGrid":"Calendar-module_weekTimelineGrid__MxIHF","weekTimeColumn":"Calendar-module_weekTimeColumn__rK4ZV","weekTimeSlot":"Calendar-module_weekTimeSlot__IFPUz","weekHourLabel":"Calendar-module_weekHourLabel__0ANmg","weekDayColumns":"Calendar-module_weekDayColumns__soiyU","weekDayColumn":"Calendar-module_weekDayColumn__sXVu0","weekHourRow":"Calendar-module_weekHourRow__FHcB2","weekEventAnchor":"Calendar-module_weekEventAnchor__nhG4x","currentTimeIndicator":"Calendar-module_currentTimeIndicator__GntOZ"};
|
|
2972
3050
|
|
|
@@ -5805,6 +5883,7 @@ exports.SearchableDropdown = SearchableDropdown;
|
|
|
5805
5883
|
exports.SelectInput = SelectInput;
|
|
5806
5884
|
exports.SleepChart = SleepChart;
|
|
5807
5885
|
exports.Slider = Slider;
|
|
5886
|
+
exports.StreamConsole = StreamConsole;
|
|
5808
5887
|
exports.SunburstChart = SunburstChart;
|
|
5809
5888
|
exports.Table = Table;
|
|
5810
5889
|
exports.Tabs = Tabs;
|