@stfrigerio/sito-template 0.1.84 → 0.1.86
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/atoms/Slider/Slider.d.ts +7 -35
- package/dist/components/atoms/Slider/Slider.d.ts.map +1 -1
- package/dist/index.esm.js +25 -110
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -110
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{ASCIIText.stories-CTeBuFpi.js → ASCIIText.stories-CNAYMBVz.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-DBrw1vFG.js → AllAtoms.stories-MHYWFqQF.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-BD8sotzQ.js → AnimatedContent.stories-V5whpU4J.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-4Fus9UzP.js → AnimatedList.stories-BaF72SjB.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-Ch2wkEYn.js → Antigravity.stories-so3-HBu3.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-wXGcLfH1.js → ArrayInput.stories-hoSUKkt7.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-99bMFNR4.js → Aurora.stories-OXWAb54U.js} +1 -1
- package/storybook-static/assets/{Beams.stories-Brn1v9rc.js → Beams.stories-Cb1rkwb1.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-B02RPEDJ.js → BlobCursor.stories-CWlds7X2.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-Dyu9PAsX.js → BlurText.stories-D5D0-11e.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-BKTOmUhM.js → BooleansHeatmap.stories-BIq0VlsC.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-B438NKZB.js → BorderGlow.stories-Bo56NGQ8.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-BMKJc9nd.js → BubbleMenu.stories-BnMDj001.js} +1 -1
- package/storybook-static/assets/{Button-C86OWbU2.js → Button-C5_5Jklb.js} +1 -1
- package/storybook-static/assets/{Button.stories-D2R-blTE.js → Button.stories-B8ClK_ci.js} +1 -1
- package/storybook-static/assets/{Calendar.stories-p1kM4Ukn.js → Calendar.stories-N79FvNmQ.js} +1 -1
- package/storybook-static/assets/{Card-Dzg60jA1.js → Card-DyuCvfHl.js} +1 -1
- package/storybook-static/assets/{Card.stories-D6UnB5vX.js → Card.stories-DNtRp8o4.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-D4qTeIBs.js → CardNav.stories-BnLwIVuF.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-CSCaUdy4.js → Carousel.stories-Cv4lDtBJ.js} +1 -1
- package/storybook-static/assets/{Checkbox-BxPYIg4Z.js → Checkbox-Bvv-yQQP.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-BBCZ0vbU.js → Checkbox.stories-DzQtUcK6.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-B2ewNQ_-.js → ChromaGrid.stories-t9eQeUCp.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-B3RUMzH8.js → CircularGallery.stories-CAjtL9Aq.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-BuaO-8cf.js → CircularText.stories-9Mdw6YlU.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-BmQt8ytV.js → ClickSpark.stories-BiRqEmHI.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-CfVD5-pW.js → ColorBends.stories-DeABQnlv.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-Bc00TeU8.js → CountUp.stories-DHCtTfD7.js} +1 -1
- package/storybook-static/assets/{Counter.stories-BiV7vgEY.js → Counter.stories-DJWrfm9H.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-BW-1vRqp.js → Crosshair.stories-CL8i9CiB.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-CDdBiwBs.js → Cubes.stories-CiUoD1dR.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-JKn8n1mc.js → CurvedLoop.stories-Dz2hXFKM.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-Cs7Lakaw.js → DarkVeil.stories-CE62-9Ie.js} +1 -1
- package/storybook-static/assets/{DateInput-qz9YhRbQ.js → DateInput-BERFdVr2.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-C_csQ8Q9.js → DateInput.stories-tTNFvdD-.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-BqYdNirE.js → DecayCard.stories-Bv-vTj_Z.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-Dj2JsMxv.js → DecryptedText.stories-eTaV3EjL.js} +1 -1
- package/storybook-static/assets/{Dither.stories-CNuiaoDI.js → Dither.stories-DsOTTOvj.js} +1 -1
- package/storybook-static/assets/{Dock.stories-D9BZPllx.js → Dock.stories-CEEOj7Pf.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-D2V_BfpY.js → EditFAB.stories-D_fnI61M.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-Bb4r5LRC.js → EvilEye.stories-3NdhOYa5.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-BOHh_Z3P.js → FadeContent.stories-CLd7C-ki.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-C2XEVQOR.js → FaultyTerminal.stories-Dw0Dr9AL.js} +1 -1
- package/storybook-static/assets/{Fbo-DkQYMtXY.js → Fbo-BAJ5_cN0.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-BUp_bmIx.js → FloatingLines.stories-BD2TWEED.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-bATDbXg1.js → FlowingMenu.stories-D-NF6vd8.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-BEBfn66X.js → FluidGlass.stories-DdsEMaWI.js} +1 -1
- package/storybook-static/assets/{Folder.stories-DDva1YJc.js → Folder.stories-4bjMWtCH.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-CbiEcoGW.js → FuzzyText.stories-CubWm9y1.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-nLTuYUyz.js → Galaxy.stories-B9s03-F3.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-Cr5oB_UX.js → GhostCursor.stories-BNLRk3Wv.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-CckrAQFV.js → GlareHover.stories-ku-SSiUw.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-Bh6ll9Qg.js → GlassSurface.stories-DlXZ4cQJ.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-DrgRSYHL.js → GlitchText.stories-BpwMxxXo.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-c8ENwyQ_.js → GooeyNav.stories-BibjMaUN.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-uL6nST_x.js → GradientBlinds.stories-UZRaBZIY.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-CZjZQhMt.js → GradientText.stories-CwEg0CVc.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-DQs4E66I.js → Grainient.stories-BYaFcPNU.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-DH8IUQDL.js → GridMotion.stories-Cv8TSctx.js} +1 -1
- package/storybook-static/assets/{HabitTimeOfDayChart.stories-C0KB2ufl.js → HabitTimeOfDayChart.stories-BVIU3EjT.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-itGrJCYu.js → ImageSlideshow.stories-D01t6AgA.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-DhgFENKy.js → Iridescence.stories-DSUKD1Im.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-Kyl728kD.js → LaserFlow.stories-CU55-EMa.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-DXN3ZpQj.js → LetterGlitch.stories-OOOQYSWe.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-1tEyhH0h.js → LightPillar.stories-DnWZ9MLO.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-PmvJGOEc.js → LightRays.stories-DsG6sYTu.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-CXVJMlcL.js → Lightning.stories-B-5t1hnQ.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-C9s92nI_.js → LineWaves.stories-BTXlYfIA.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-kvrDFKhW.js → LiquidChrome.stories-D0SqpFBU.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-CwoEV3ZM.js → LiquidEther.stories-C7Atyooz.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-TO2k9dkR.js → LoadingSpinner-B-nFZqMP.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-CmlRIK6V.js → LoadingSpinner.stories-rHdR7Opm.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-CwnBQw4l.js → MagicRings.stories-BWP3mkpa.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-wiYtHP3j.js → Magnet.stories-B71Vy_Q3.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-CP0C5rZu.js → MagnetLines.stories-CS1wIDWN.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-2UGpchcm.js → Masonry.stories-DZZjabXb.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-CLGRNeQS.js → MetaBalls.stories-DbbN6vax.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-IeKUeumy.js → MetallicPaint.stories-Bb9zLAxZ.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-PPkimNqj.js → MoodChart.stories-CNBEeQw5.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-DnBM5OK0.js → MotionConfigContext-Do3j9FYR.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-Dqv51P5D.js → Navbar.stories-BG0eopVz.js} +1 -1
- package/storybook-static/assets/{Noise.stories-CuwyLBOh.js → Noise.stories-D_Vk98pq.js} +1 -1
- package/storybook-static/assets/{NumberStepper-CM9sa3Al.js → NumberStepper-BHepIAXP.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-C60dGYaE.js → NumberStepper.stories-CBjqDVLy.js} +1 -1
- package/storybook-static/assets/{Orb.stories-Pdv0-xsZ.js → Orb.stories-C-RXlinN.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-XbHS1EdM.js → OrbitImages.stories-BpEWo848.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-nfBoYIRi.js → PieChart.stories-BEWgFpPc.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-DsT_9E9W.js → PixelBlast.stories-BFoeyIVN.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-BnzmWXOx.js → PixelCard.stories-bB-deMd4.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-DN14D8Tl.js → PixelSnow.stories-BRhLzRBf.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-BKfvVSqC.js → PixelTransition.stories-BOBOJRmS.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-DahXhatP.js → Plasma.stories-DKyyI413.js} +1 -1
- package/storybook-static/assets/{Prism.stories-BccFvEeA.js → Prism.stories-BHTua6ud.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-CZbJKnTU.js → PrismaticBurst.stories-BnDG8SSM.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-D84mbIPg.js → ProfileCard.stories-uwN1erd1.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-CibKsvi_.js → QuantifiableHabitsChart.stories-CRSIU8au.js} +1 -1
- package/storybook-static/assets/{Radar.stories-CK2Kzn_4.js → Radar.stories-CWY526-I.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-DZg5rVlE.js → Ribbons.stories-DU1mjHld.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-BRHIhn23.js → RippleGrid.stories-C2nJBuYo.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-CuZtfcND.js → RotatingText.stories-sI7Hztpa.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-6g6HD-fB.js → ScrollFloat.stories-DcZ__tEJ.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-DA-cvRPd.js → ScrollReveal.stories-DS1GWw_3.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-BjmlBuV3.js → ScrollVelocity.stories-BLWNH3I4.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-ZwmClfwJ.js → SearchBar.stories-Bgr047x5.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-CwpEKLZE.js → SearchableDropdown-aYGuxPH9.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-BvkN7hKU.js → SearchableDropdown.stories-DE7zPKzh.js} +1 -1
- package/storybook-static/assets/{SelectInput-BOEJNJs8.js → SelectInput-BZQ08ZNK.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-dWCyjn61.js → SelectInput.stories-H0G-KoP9.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-B4-JvA2z.js → ShapeBlur.stories-9ni_F5Zg.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-BoEMCax4.js → ShapeGrid.stories-D9uOkUkB.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-CDr7CBhI.js → ShinyText.stories-DohW-fL4.js} +1 -1
- package/storybook-static/assets/{Silk.stories-CEoU1Fq0.js → Silk.stories-bQRdGXLn.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-DMUCOdOw.js → SleepChart.stories-C-nVpGd_.js} +1 -1
- package/storybook-static/assets/Slider-BfT1m14M.css +1 -0
- package/storybook-static/assets/Slider-DOs6EtWq.js +4 -0
- package/storybook-static/assets/{Slider.stories-rPmD-YV9.js → Slider.stories-BdwoJHP3.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-B1kmojaS.js → SoftAurora.stories-CXLQdZQC.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-BoSFEnHi.js → SoundDemo.stories-By9FQIz_.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-B_zGIUaW.js → SplashCursor.stories-DNaEANVg.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-762LCoel.js → SpotlightCard.stories-B4OdX0pj.js} +1 -1
- package/storybook-static/assets/{Stack.stories-DujL-Idp.js → Stack.stories-C3yud1EC.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-ov3id3Wj.js → StaggeredMenu.stories-BF7X32Uw.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-D-uEOvw6.js → StarBorder.stories-VDaxp6l1.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-EOjyADqF.js → SunburstChart.stories-CfY0qUGw.js} +1 -1
- package/storybook-static/assets/{Table.stories-lMCUQyPU.js → Table.stories-B3TVllEr.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-Dr-60dpt.js → Tabs.stories-DgqxTrxr.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-BZ2Fi_e3.js → TargetCursor.stories-D2EP7KAh.js} +1 -1
- package/storybook-static/assets/{TextArea-C-c2e26u.js → TextArea-BlYg50FN.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-Gu4Jf_gB.js → TextArea.stories-BranZzYt.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-DHGiuwwE.js → TextCursor.stories-DLxQFmov.js} +1 -1
- package/storybook-static/assets/{TextInput-BKuNn34X.js → TextInput-CCXvp-ew.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-BgDQw1RX.js → TextInput.stories-BLTjwGq8.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-9LaOuEz9.js → TextPressure.stories-CZl_xi-e.js} +1 -1
- package/storybook-static/assets/{TextType.stories-DSl9Foim.js → TextType.stories-DIq_eGE1.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-8s89yuWr.js → ThemeSwitcher.stories-DMdF3nMm.js} +1 -1
- package/storybook-static/assets/{Threads.stories-BewW9wxv.js → Threads.stories-CZM7WZ47.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-C7vbZKkq.js → TimeInput.stories-CmUXf4Cz.js} +1 -1
- package/storybook-static/assets/{Toggle-B77gnVbq.js → Toggle-D4PkYdGP.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-CICV6Dos.js → Toggle.stories-rv1G2wrq.js} +1 -1
- package/storybook-static/assets/{ToggleButton-DfzY0w7z.js → ToggleButton-BNvqA30A.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-B6aw7nUC.js → ToggleButton.stories-BQKmg4kH.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-CDNyLqHV.js → TrueFocus.stories-BbwajONh.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-D-eZNvIb.js → VariableProximity.stories-xNKN4tfJ.js} +1 -1
- package/storybook-static/assets/{Waves.stories-BgquGfIy.js → Waves.stories-C9OfntwX.js} +1 -1
- package/storybook-static/assets/{check-DXM5njmV.js → check-CabJlJ5V.js} +1 -1
- package/storybook-static/assets/{chevron-down-BqEnhr0i.js → chevron-down-BFP14H7G.js} +1 -1
- package/storybook-static/assets/{chevron-right-CsaKmsqe.js → chevron-right-a0qGzY7-.js} +1 -1
- package/storybook-static/assets/client-BrrCg_ZV.js +1 -0
- package/storybook-static/assets/{createLucideIcon-DF2dqRZF.js → createLucideIcon-CbwkZy_P.js} +1 -1
- package/storybook-static/assets/{download-I7JyljST.js → download-0mONaVPI.js} +1 -1
- package/storybook-static/assets/{folder-jqfoKfv0.js → folder-BaMNOmQ8.js} +1 -1
- package/storybook-static/assets/{iconBase-CEH4v73G.js → iconBase-DcfbbyDP.js} +1 -1
- package/storybook-static/assets/{iframe-8g14XBDl.js → iframe-CwEFvVsM.js} +3 -3
- package/storybook-static/assets/{index-CYZOrNi9.js → index-BnwRPUps.js} +1 -1
- package/storybook-static/assets/{index-DOd88rlX.js → index-DDGDY6hI.js} +1 -1
- package/storybook-static/assets/{index-B_onaclE.js → index-zV-F4owU.js} +1 -1
- package/storybook-static/assets/{proxy-B2d_UmJi.js → proxy-yTVbPXe9.js} +1 -1
- package/storybook-static/assets/{react-18-COyYApA4.js → react-18-CuObrg1Z.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-B8N96BIS.js → react-three-fiber.esm-D2hrkyvm.js} +1 -1
- package/storybook-static/assets/{search-C0KAlVwX.js → search-RV5qkJTo.js} +1 -1
- package/storybook-static/assets/{settings-DvSP9mPL.js → settings-OOphSE-m.js} +1 -1
- package/storybook-static/assets/{sun-BT1EGPgL.js → sun-BjScggrH.js} +1 -1
- package/storybook-static/assets/{trash-2-D5d4Dvkn.js → trash-2-B7b5Q2ub.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-698WQrz7.js → use-animation-frame-Dphx9oWi.js} +1 -1
- package/storybook-static/assets/{use-in-view-xKGI5xuh.js → use-in-view-DWMcMKFb.js} +1 -1
- package/storybook-static/assets/{use-motion-value-BWJfnGID.js → use-motion-value-wdb7Vlfx.js} +1 -1
- package/storybook-static/assets/{use-spring-DhaXuuuR.js → use-spring-Cs2Ba4qv.js} +1 -1
- package/storybook-static/assets/{use-transform-px_rlL4B.js → use-transform-C7g5E8Wc.js} +1 -1
- package/storybook-static/assets/{useSound-DDw9oPnZ.js → useSound-DNj86aSq.js} +1 -1
- package/storybook-static/assets/{users-_YmezGRA.js → users-C0ovKm_B.js} +1 -1
- package/storybook-static/assets/{x-Dxu8qoCJ.js → x-DeSz9wqs.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/Slider-C--ylcyD.js +0 -32
- package/storybook-static/assets/Slider-CAC_Rru_.css +0 -1
- package/storybook-static/assets/client-BCFLJVq6.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1733,52 +1733,19 @@ const ToggleButton = ({ active, onClick, icon, label, disabled = false, size = '
|
|
|
1733
1733
|
}, 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$p.background, variants: backgroundVariants, initial: "inactive", animate: active ? "active" : "inactive" }), jsxRuntime.jsxs("div", { className: styles$p.content, children: [icon && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$p.iconWrapper, variants: iconVariants[animation], initial: "inactive", animate: active ? "active" : "inactive", transition: { duration: 0.3 }, children: typeof icon === 'string' ? (jsxRuntime.jsx("span", { className: styles$p.icon, children: icon })) : (jsxRuntime.jsx("div", { className: styles$p.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$p.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$p.ripple, initial: { scale: 0, opacity: 0.5 }, animate: { scale: 2, opacity: 0 }, exit: { scale: 0, opacity: 0 }, transition: { duration: 0.6 } })) })] }));
|
|
1734
1734
|
};
|
|
1735
1735
|
|
|
1736
|
-
var styles$o = {"slider":"Slider-module_slider__RD4G7","label":"Slider-module_label__j4H8M","sliderContainer":"Slider-module_sliderContainer__kQICC","track":"Slider-module_track__fQ-oP","
|
|
1736
|
+
var styles$o = {"slider":"Slider-module_slider__RD4G7","label":"Slider-module_label__j4H8M","sliderContainer":"Slider-module_sliderContainer__kQICC","track":"Slider-module_track__fQ-oP","dragging":"Slider-module_dragging__rynPv","fill":"Slider-module_fill__AYR4-","input":"Slider-module_input__fqY-G","thumb":"Slider-module_thumb__yQJho","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"};
|
|
1737
1737
|
|
|
1738
1738
|
/**
|
|
1739
|
-
* Slider component
|
|
1739
|
+
* Slider component — responsive, accessible range input with a styled track, fill, and thumb.
|
|
1740
1740
|
*
|
|
1741
|
-
*
|
|
1742
|
-
*
|
|
1743
|
-
* A highly customizable slider component with smooth Framer Motion animations,
|
|
1744
|
-
* dynamic coloring, custom labels, tooltips, and theme support. Perfect for
|
|
1745
|
-
* ratings, volume controls, progress indicators, or any numeric input.
|
|
1746
|
-
*
|
|
1747
|
-
* @example
|
|
1748
|
-
* // Basic usage
|
|
1749
|
-
* <Slider
|
|
1750
|
-
* value={rating}
|
|
1751
|
-
* onChange={setRating}
|
|
1752
|
-
* min={1}
|
|
1753
|
-
* max={10}
|
|
1754
|
-
* showValue
|
|
1755
|
-
* />
|
|
1756
|
-
*
|
|
1757
|
-
* @example
|
|
1758
|
-
* // Rating slider with emojis
|
|
1759
|
-
* <Slider
|
|
1760
|
-
* value={mood}
|
|
1761
|
-
* onChange={setMood}
|
|
1762
|
-
* min={1}
|
|
1763
|
-
* max={5}
|
|
1764
|
-
* labels={[
|
|
1765
|
-
* { label: '😢', position: 'start' },
|
|
1766
|
-
* { label: '😐', position: 50 },
|
|
1767
|
-
* { label: '😊', position: 'end' }
|
|
1768
|
-
* ]}
|
|
1769
|
-
* colorFunction={(val) => `hsl(${val * 24}, 70%, 50%)`}
|
|
1770
|
-
* />
|
|
1741
|
+
* The thumb is inset at the track endpoints so it never overflows. Drag state is tracked
|
|
1742
|
+
* via pointer events (works on mouse, touch, and pen).
|
|
1771
1743
|
*/
|
|
1772
|
-
function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValue = false, valueFormatter, labels = [], config = {}, disabled = false, className = '', style = {}, loading = false, colorFunction, showTooltip = false, tooltipContent, soundConfig }) {
|
|
1744
|
+
function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValue = false, valueFormatter, labels = [], config = {}, disabled = false, className = '', style = {}, loading = false, colorFunction, showTooltip = false, tooltipContent, soundConfig, }) {
|
|
1773
1745
|
const { handlers, playSound } = useComponentSound(soundConfig);
|
|
1774
1746
|
const [isDragging, setIsDragging] = React.useState(false);
|
|
1775
|
-
const
|
|
1776
|
-
const
|
|
1777
|
-
const { colors = {}, size = 'md', animations = {} } = config;
|
|
1778
|
-
const { duration = 0.2 } = animations;
|
|
1779
|
-
// Calculate percentage
|
|
1780
|
-
const percentage = ((value - min) / (max - min)) * 100;
|
|
1781
|
-
// Get dynamic color
|
|
1747
|
+
const { colors = {}, size = 'md' } = config;
|
|
1748
|
+
const percentage = Math.max(0, Math.min(100, ((value - min) / (max - min)) * 100));
|
|
1782
1749
|
const getDynamicColor = () => {
|
|
1783
1750
|
if (colorFunction)
|
|
1784
1751
|
return colorFunction(value);
|
|
@@ -1786,13 +1753,11 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1786
1753
|
return colors.fill;
|
|
1787
1754
|
return 'var(--color-primary)';
|
|
1788
1755
|
};
|
|
1789
|
-
// Format value display
|
|
1790
1756
|
const formatValue = (val) => {
|
|
1791
1757
|
if (valueFormatter)
|
|
1792
1758
|
return valueFormatter(val);
|
|
1793
1759
|
return `${val}${max <= 10 ? `/${max}` : ''}`;
|
|
1794
1760
|
};
|
|
1795
|
-
// Handle slider change
|
|
1796
1761
|
const handleChange = (e) => {
|
|
1797
1762
|
if (disabled || loading)
|
|
1798
1763
|
return;
|
|
@@ -1800,71 +1765,30 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1800
1765
|
playSound('click');
|
|
1801
1766
|
onChange(newValue);
|
|
1802
1767
|
};
|
|
1803
|
-
|
|
1804
|
-
|
|
1768
|
+
const startDrag = () => {
|
|
1769
|
+
if (disabled || loading)
|
|
1770
|
+
return;
|
|
1805
1771
|
setIsDragging(true);
|
|
1806
|
-
if (showTooltip)
|
|
1807
|
-
setShowTooltipState(true);
|
|
1808
|
-
};
|
|
1809
|
-
const handleMouseUp = () => {
|
|
1810
|
-
setIsDragging(false);
|
|
1811
|
-
if (showTooltip) {
|
|
1812
|
-
setTimeout(() => setShowTooltipState(false), 500);
|
|
1813
|
-
}
|
|
1814
|
-
};
|
|
1815
|
-
const handleMouseEnter = () => {
|
|
1816
|
-
if (showTooltip && !disabled)
|
|
1817
|
-
setShowTooltipState(true);
|
|
1818
|
-
};
|
|
1819
|
-
const handleMouseLeave = () => {
|
|
1820
|
-
if (showTooltip && !isDragging)
|
|
1821
|
-
setShowTooltipState(false);
|
|
1822
1772
|
};
|
|
1773
|
+
const endDrag = () => setIsDragging(false);
|
|
1823
1774
|
const dynamicColor = getDynamicColor();
|
|
1824
1775
|
const sizeClass = styles$o[`size-${size}`];
|
|
1825
|
-
const stateClass = disabled ? styles$o.disabled :
|
|
1776
|
+
const stateClass = disabled ? styles$o.disabled : '';
|
|
1777
|
+
const dragClass = isDragging ? styles$o.dragging : '';
|
|
1826
1778
|
if (loading) {
|
|
1827
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$o.slider} ${sizeClass} ${styles$o.loading} ${className}`, style: style, children: [label && jsxRuntime.jsx("label", { className: styles$o.label, children: label }), jsxRuntime.jsx("div", { className: styles$o.loadingTrack, children: jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.loadingIndicator, animate: { x: ['-100%', '200%'] }, transition: {
|
|
1828
|
-
repeat: Infinity,
|
|
1829
|
-
duration: 1.5,
|
|
1830
|
-
ease: "easeInOut"
|
|
1831
|
-
} }) })] }));
|
|
1779
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$o.slider} ${sizeClass} ${styles$o.loading} ${className}`, style: style, children: [label && jsxRuntime.jsx("label", { className: styles$o.label, children: label }), jsxRuntime.jsx("div", { className: styles$o.loadingTrack, children: jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.loadingIndicator, animate: { x: ['-100%', '200%'] }, transition: { repeat: Infinity, duration: 1.5, ease: 'easeInOut' } }) })] }));
|
|
1832
1780
|
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}, whileHover: {
|
|
1842
|
-
boxShadow: `inset 0 0 0 1px rgba(255,255,255,0.2)`
|
|
1843
|
-
} }) }), jsxRuntime.jsx("input", { type: "range", min: min, max: max, step: step, value: value, onChange: handleChange, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, ...handlers, className: styles$o.input, disabled: disabled, "aria-label": label }), jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.thumb, style: {
|
|
1844
|
-
left: `${percentage}%`,
|
|
1781
|
+
// Inset the thumb so its bounding box stays inside the track at 0/100%.
|
|
1782
|
+
// At percentage=0: marginLeft=0 → thumb flush-left. At 100%: marginLeft=-thumbSize → flush-right.
|
|
1783
|
+
const insetStyle = {
|
|
1784
|
+
left: `${percentage}%`,
|
|
1785
|
+
marginLeft: `calc(var(--slider-thumb-size) * ${-percentage / 100})`,
|
|
1786
|
+
};
|
|
1787
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$o.slider} ${sizeClass} ${stateClass} ${dragClass} ${className}`, style: style, children: [label && jsxRuntime.jsx("label", { className: styles$o.label, children: label }), jsxRuntime.jsxs("div", { className: styles$o.sliderContainer, children: [jsxRuntime.jsx("div", { className: styles$o.track, children: jsxRuntime.jsx("div", { className: styles$o.fill, style: { width: `${percentage}%`, backgroundColor: dynamicColor } }) }), jsxRuntime.jsx("input", { type: "range", min: min, max: max, step: step, value: value, onChange: handleChange, onPointerDown: startDrag, onPointerUp: endDrag, onPointerCancel: endDrag, onBlur: endDrag, ...handlers, className: styles$o.input, disabled: disabled, "aria-label": label }), jsxRuntime.jsx("div", { className: styles$o.thumb, style: {
|
|
1788
|
+
...insetStyle,
|
|
1845
1789
|
backgroundColor: dynamicColor,
|
|
1846
|
-
borderColor: colors.thumb || dynamicColor
|
|
1847
|
-
}, animate: {
|
|
1848
|
-
scale: isDragging ? 1.3 : 1,
|
|
1849
|
-
boxShadow: isDragging
|
|
1850
|
-
? `0 0 20px ${dynamicColor}40`
|
|
1851
|
-
: `0 2px 8px ${dynamicColor}30`
|
|
1852
|
-
}, transition: {
|
|
1853
|
-
duration: 0.1,
|
|
1854
|
-
type: "spring",
|
|
1855
|
-
stiffness: 400,
|
|
1856
|
-
damping: 25
|
|
1857
|
-
}, whileHover: {
|
|
1858
|
-
scale: 1.1,
|
|
1859
|
-
transition: { duration: 0.1 }
|
|
1860
|
-
}, children: isDragging && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.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$o.tooltip, style: {
|
|
1861
|
-
left: `${percentage}%`,
|
|
1862
|
-
backgroundColor: dynamicColor
|
|
1863
|
-
}, 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$o.tooltipArrow, style: { borderTopColor: dynamicColor } })] })) })] }), showValue && (jsxRuntime.jsx(framerMotion.motion.div, { className: styles$o.valueDisplay, style: { color: dynamicColor }, initial: { scale: 0.8 }, animate: { scale: 1 }, transition: {
|
|
1864
|
-
duration: 0.2,
|
|
1865
|
-
type: "spring",
|
|
1866
|
-
stiffness: 300
|
|
1867
|
-
}, children: formatValue(value) }, value)), labels.length > 0 && (jsxRuntime.jsx("div", { className: styles$o.labelsContainer, children: labels.map((labelConfig, index) => {
|
|
1790
|
+
borderColor: colors.thumb || dynamicColor,
|
|
1791
|
+
} }), jsxRuntime.jsx(framerMotion.AnimatePresence, { children: showTooltip && isDragging && !disabled && (jsxRuntime.jsxs(framerMotion.motion.div, { className: styles$o.tooltip, style: { ...insetStyle, backgroundColor: dynamicColor }, initial: { opacity: 0, y: 6, scale: 0.9 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 6, scale: 0.9 }, transition: { duration: 0.15 }, children: [tooltipContent ? tooltipContent(value) : formatValue(value), jsxRuntime.jsx("div", { className: styles$o.tooltipArrow, style: { borderTopColor: dynamicColor } })] })) })] }), showValue && (jsxRuntime.jsx("div", { className: styles$o.valueDisplay, style: { color: dynamicColor }, children: formatValue(value) })), labels.length > 0 && (jsxRuntime.jsx("div", { className: styles$o.labelsContainer, children: labels.map((labelConfig, index) => {
|
|
1868
1792
|
let position = 0;
|
|
1869
1793
|
if (labelConfig.position === 'start')
|
|
1870
1794
|
position = 0;
|
|
@@ -1872,16 +1796,7 @@ function Slider({ value, onChange, min = 0, max = 100, step = 1, label, showValu
|
|
|
1872
1796
|
position = 100;
|
|
1873
1797
|
else if (typeof labelConfig.position === 'number')
|
|
1874
1798
|
position = labelConfig.position;
|
|
1875
|
-
return (jsxRuntime.jsx(
|
|
1876
|
-
left: `${position}%`,
|
|
1877
|
-
color: labelConfig.color
|
|
1878
|
-
}, initial: { opacity: 0, y: 5 }, animate: { opacity: 1, y: 0 }, transition: {
|
|
1879
|
-
duration: 0.3,
|
|
1880
|
-
delay: index * 0.1
|
|
1881
|
-
}, whileHover: {
|
|
1882
|
-
scale: 1.2,
|
|
1883
|
-
transition: { duration: 0.1 }
|
|
1884
|
-
}, children: labelConfig.label }, index));
|
|
1799
|
+
return (jsxRuntime.jsx("div", { className: styles$o.labelItem, style: { left: `${position}%`, color: labelConfig.color }, children: labelConfig.label }, index));
|
|
1885
1800
|
}) }))] }));
|
|
1886
1801
|
}
|
|
1887
1802
|
|