@stfrigerio/sito-template 0.1.94 → 0.1.96
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 +3 -1
- package/dist/components/atoms/Slider/Slider.d.ts.map +1 -1
- package/dist/components/atoms/Slider/Slider.stories.d.ts +1 -1
- package/dist/components/atoms/Slider/Slider.stories.d.ts.map +1 -1
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.d.ts +13 -0
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.d.ts.map +1 -0
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.stories.d.ts +12 -0
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.stories.d.ts.map +1 -0
- package/dist/components/molecules/RecurrencePicker/index.d.ts +3 -0
- package/dist/components/molecules/RecurrencePicker/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/components/organisms/charts/SleepChart/SleepChart.d.ts.map +1 -1
- package/dist/index.esm.js +490 -381
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +493 -383
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/themes/lossito.css +243 -49
- package/package.json +2 -1
- package/storybook-static/assets/{ASCIIText.stories-BcJjdQeF.js → ASCIIText.stories-BNQcc9gv.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-gLnakQIy.js → AllAtoms.stories-DBpk-rB8.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-BqG8Ujwo.js → AnimatedContent.stories-CCnlHD5Y.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-BHUu3vbs.js → AnimatedList.stories-DNI1W5-A.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-Dvy48Mca.js → Antigravity.stories-BQw1Zvk9.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-BaYz4AcS.js → ArrayInput.stories-HQd6ODME.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-Cj0WEobX.js → Aurora.stories-xI4i4wH4.js} +1 -1
- package/storybook-static/assets/{Beams.stories-DdjXl2Ud.js → Beams.stories-DxSqefhF.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-BoQFvL-r.js → BlobCursor.stories-DNk0BeNz.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-DxpW9DDe.js → BlurText.stories-DBsRktVj.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-BHhNYd6b.js → BooleansHeatmap.stories-dsUQfyWg.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-CuZoWDWv.js → BorderGlow.stories-lgvEGRVA.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-DEd7nU7K.js → BubbleMenu.stories-CXvB9JdY.js} +1 -1
- package/storybook-static/assets/{Button-pZnuxGoU.js → Button-6nmyMGc3.js} +1 -1
- package/storybook-static/assets/{Button.stories-ClGPyfoQ.js → Button.stories-DD3HQBXg.js} +1 -1
- package/storybook-static/assets/{Calendar.stories-CZ__yULj.js → Calendar.stories-_ZDa4YfS.js} +1 -1
- package/storybook-static/assets/{Card-qiSwFj5T.js → Card-B7F8cu_z.js} +1 -1
- package/storybook-static/assets/{Card.stories-QS7XsWA5.js → Card.stories-BLbuUq_5.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-yaYQBXBL.js → CardNav.stories-CiJ_bFt8.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-CN1saeqv.js → Carousel.stories-BYGW6P4X.js} +1 -1
- package/storybook-static/assets/{Checkbox-C5cfmgV9.js → Checkbox-xrie0yDX.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-DRcZy09T.js → Checkbox.stories-D-NYqhCG.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-BMv_eSkq.js → ChromaGrid.stories-yYkbcq2a.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-CM7yqhd9.js → CircularGallery.stories-Ci3GTUgX.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-TPKZYXaf.js → CircularText.stories-7QMPmTLn.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-BzYMb5jU.js → ClickSpark.stories-Dz9M-gEC.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-DXg_57qe.js → ColorBends.stories-Dfa0YMsf.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-B3YWVUaV.js → CountUp.stories-DrdYM8-J.js} +1 -1
- package/storybook-static/assets/{Counter.stories-PJzaHt_U.js → Counter.stories-3m6ldyes.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-CuTI-wK9.js → Crosshair.stories-DfRqBfZC.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-BNTbOIDN.js → Cubes.stories-D1sZRgvG.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-R4Z6U8gl.js → CurvedLoop.stories-D6jowEDF.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-BlRCjGvH.js → DarkVeil.stories-DLCrll-I.js} +1 -1
- package/storybook-static/assets/{DateInput-BHD9FDFh.js → DateInput-D4MHyeLk.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-CHkZcDfi.js → DateInput.stories-BRfVBcf6.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-BBARttiL.js → DecayCard.stories-DX1ak6pd.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories--j-BrW-d.js → DecryptedText.stories-BcCQ2Tby.js} +1 -1
- package/storybook-static/assets/{Dither.stories-CBVHTbq6.js → Dither.stories-BPqBpmFI.js} +1 -1
- package/storybook-static/assets/{Dock.stories-DkcSxUnP.js → Dock.stories-CKD_TOGP.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-CnO5gbbx.js → EditFAB.stories-DGVMpMOL.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-1AQhELsp.js → EvilEye.stories-DNoB6FG0.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-albedBaX.js → FadeContent.stories-C8ppDaXi.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-BFGmMtSB.js → FaultyTerminal.stories-Y8ME_yze.js} +1 -1
- package/storybook-static/assets/{Fbo-CtK0ycna.js → Fbo-Bkb1mqiu.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-2TQYxxp1.js → FloatingLines.stories-ZByyesqH.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-CZ5tXywl.js → FlowingMenu.stories-CTWLtqhL.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-Df2us36M.js → FluidGlass.stories--PsLBBhn.js} +1 -1
- package/storybook-static/assets/{Folder.stories-BrFzcjvz.js → Folder.stories-JNXotEML.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-C1RHobMi.js → FuzzyText.stories-o6wySpRq.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-Cok_44zn.js → Galaxy.stories-DTZantrp.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-DWaGKV-v.js → GhostCursor.stories-DXF-m9YM.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-CYve6zsX.js → GlareHover.stories-Bb4_dcLV.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-BvktN5x5.js → GlassSurface.stories-yZ4K521K.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-DLg3Stoq.js → GlitchText.stories-B4Eqkyri.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-Do5CtYVN.js → GooeyNav.stories-CqUOrJR-.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-D3SC67DZ.js → GradientBlinds.stories-DZ6bTCGp.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-54uAxgz7.js → GradientText.stories-DyDht-TI.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-CghGq35C.js → Grainient.stories-C1PtR90_.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-dOv18eyR.js → GridMotion.stories-BRbD6MZr.js} +1 -1
- package/storybook-static/assets/{HabitTimeOfDayChart.stories-BMoAR2U6.js → HabitTimeOfDayChart.stories-D3gqeKpl.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-DFosgVkj.js → ImageSlideshow.stories-BileVQYy.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-BESMZhKG.js → Iridescence.stories-BIhFVHOn.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-afCaPMTi.js → LaserFlow.stories-BSnwH5Mv.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-i9gr8ufw.js → LetterGlitch.stories-CfGaNSmi.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-Bd0CFE1p.js → LightPillar.stories-CNtpoF6N.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-B_SogOnY.js → LightRays.stories-DRKVWqXb.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-CK3jA29T.js → Lightning.stories-DJOW6kK7.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-LnRI4l13.js → LineWaves.stories-17nqJpH2.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-BoS4SUHe.js → LiquidChrome.stories-CgmsyPLg.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-UCodzAEW.js → LiquidEther.stories-CKvaP6zm.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-BMpWXUFz.js → LoadingSpinner-LXRJXAO4.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-CLXNFf4a.js → LoadingSpinner.stories-C0tbgfV3.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-Ca5ZNeFQ.js → MagicRings.stories-qzHi78-J.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-BmgRTPng.js → Magnet.stories-QWTKtI1e.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-B_HC2JfR.js → MagnetLines.stories-BOaR4PZi.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-CNVeDREe.js → Masonry.stories-DLz9dA8U.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-BI_m0HKO.js → MetaBalls.stories-DcleGPI8.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-DJHsg4pJ.js → MetallicPaint.stories-Dqit7nFj.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-C-XEjygQ.js → MoodChart.stories-1otFXWFu.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-r05VNYP5.js → MotionConfigContext-HXxMOMJo.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-c2BFGGgH.js → Navbar.stories-BPE4RMdc.js} +1 -1
- package/storybook-static/assets/{Noise.stories-DmNPaVB9.js → Noise.stories-BktPkK5a.js} +1 -1
- package/storybook-static/assets/{NumberStepper-eg4OI2J9.js → NumberStepper-D1to6bpi.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-DdaimTPt.js → NumberStepper.stories-WnrisOam.js} +1 -1
- package/storybook-static/assets/{Orb.stories-DYbtXka5.js → Orb.stories-BtZmx5Sy.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-C3I2W6Jq.js → OrbitImages.stories-DSTSVc16.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-W3H_ypdq.js → PieChart.stories-L1NRhd_j.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-BAGTaJo2.js → PixelBlast.stories-CfT09XYZ.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-nBZJmNRX.js → PixelCard.stories-B2LTanjI.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-DzM9AnhK.js → PixelSnow.stories-Kg0VE4Bc.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-B18uEo9_.js → PixelTransition.stories-CeanWE2-.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-FTIEGEjM.js → Plasma.stories-DujATB5Q.js} +1 -1
- package/storybook-static/assets/{Prism.stories-CzsTNjnE.js → Prism.stories-Dxke5JPk.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-_WZRfTMv.js → PrismaticBurst.stories-xc5NSeNp.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-D51iEq3Z.js → ProfileCard.stories-Cnb3pxki.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-DYvNt6Sy.js → QuantifiableHabitsChart.stories-BMxWoQO4.js} +1 -1
- package/storybook-static/assets/{Radar.stories-DDRZ17su.js → Radar.stories-CrJcMxjq.js} +1 -1
- package/storybook-static/assets/RecurrencePicker-Bjafom-j.css +1 -0
- package/storybook-static/assets/RecurrencePicker.stories-vkallG9D.js +19 -0
- package/storybook-static/assets/{Ribbons.stories-Cq-wi-5t.js → Ribbons.stories-LT5RgvPo.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-DH7NbksB.js → RippleGrid.stories-Bwsl-Ueq.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-CYXYLq6D.js → RotatingText.stories-CNDJn3v6.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-ByENHbNI.js → ScrollFloat.stories-B0qUJggd.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-C9ML5Vus.js → ScrollReveal.stories-BBVRW0fh.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-I83W7pTs.js → ScrollVelocity.stories-DfKnOsGa.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-BGekDZxb.js → SearchBar.stories-Coshf_t6.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-Dzdyi2XK.js → SearchableDropdown-CC1-QlKh.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-BpdIXlc0.js → SearchableDropdown.stories-DydVUjWf.js} +1 -1
- package/storybook-static/assets/{SelectInput-BpW7Dnep.js → SelectInput-BqVWIQmb.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-BSb6s-9V.js → SelectInput.stories-I0azAt7k.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-CTwpIXJ5.js → ShapeBlur.stories-BWBp8nEd.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-D--GPfwE.js → ShapeGrid.stories-DJmnW7fN.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-BmAOXMEC.js → ShinyText.stories-7vHIqa03.js} +1 -1
- package/storybook-static/assets/{Silk.stories-BYAWqU8r.js → Silk.stories-CXiaINFD.js} +1 -1
- package/storybook-static/assets/SleepChart-DtIKf_2P.css +1 -0
- package/storybook-static/assets/SleepChart.stories-BmAtNTJP.js +58 -0
- package/storybook-static/assets/Slider-BmG0iCoC.js +4 -0
- package/storybook-static/assets/Slider-DrZJBbk1.css +1 -0
- package/storybook-static/assets/Slider.stories-DZciYzwU.js +95 -0
- package/storybook-static/assets/{SoftAurora.stories-Dlak_U90.js → SoftAurora.stories-BubrO6U4.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-CMmdiHNZ.js → SoundDemo.stories-CDXr3mFW.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-DzWOpCeX.js → SplashCursor.stories-DgMm9xv3.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-CAAJsrlz.js → SpotlightCard.stories-ChPn0jeh.js} +1 -1
- package/storybook-static/assets/{Stack.stories-DVFREV7Y.js → Stack.stories-DzzqOEhy.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-B7s5XkvQ.js → StaggeredMenu.stories-BNHc0PM6.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-CQXUiLOv.js → StarBorder.stories-DBGelRYw.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-CPxlzoad.js → SunburstChart.stories-KPCIjiOk.js} +1 -1
- package/storybook-static/assets/{Table.stories-BMC7yWxi.js → Table.stories-Bz2NsPvR.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-CdJ6_mbA.js → Tabs.stories-DH8uIATQ.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-qa2q01Ir.js → TargetCursor.stories-BUrQiofc.js} +1 -1
- package/storybook-static/assets/{TextArea-DpPHbAJ1.js → TextArea-DVqzGhY3.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-DO6h1f86.js → TextArea.stories-A0YRdcwk.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-B_P4iCXO.js → TextCursor.stories-B_UinRXa.js} +1 -1
- package/storybook-static/assets/{TextInput-BQKvX1rm.js → TextInput-46C4j_hq.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-CuCM1ZoW.js → TextInput.stories-C7ZC_8wE.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-3FdKqak4.js → TextPressure.stories-Wwlb-VgV.js} +1 -1
- package/storybook-static/assets/{TextType.stories-B9zMgVXA.js → TextType.stories-DYLMktJi.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-MgR7bPEf.js → ThemeSwitcher.stories-8FTV9MJW.js} +1 -1
- package/storybook-static/assets/{Threads.stories-D_AvMoiV.js → Threads.stories-BDwauY1I.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-DgWeWVJu.js → TimeInput.stories-Bk2lwEyd.js} +1 -1
- package/storybook-static/assets/{Toggle-CM8QfiSr.js → Toggle-BbWuVStR.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-uX1tCiAw.js → Toggle.stories-Bb7-wtRn.js} +1 -1
- package/storybook-static/assets/{ToggleButton-BvyhCvtl.js → ToggleButton-BaLN5DsF.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-CL9uYRpB.js → ToggleButton.stories-Cdx8eTPI.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-BVd4m_-Q.js → TrueFocus.stories-B_pN3J3c.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-ZweoWxGv.js → VariableProximity.stories-BTLVRXWD.js} +1 -1
- package/storybook-static/assets/{Waves.stories-DnXloqCT.js → Waves.stories-_NtAqm6K.js} +1 -1
- package/storybook-static/assets/{calendar--DXe40Mf.js → calendar-jGMMZsgE.js} +1 -1
- package/storybook-static/assets/{chart-column-PgrGrNon.js → chart-column-jT4jlZWv.js} +1 -1
- package/storybook-static/assets/{check-ChmUvqWd.js → check-D_NpTUYB.js} +1 -1
- package/storybook-static/assets/{chevron-down-C6C4ZvBB.js → chevron-down-C40D1TRM.js} +1 -1
- package/storybook-static/assets/{chevron-right-C5SR-lRy.js → chevron-right-pJjQoHt-.js} +1 -1
- package/storybook-static/assets/client-BAyDOFGI.js +1 -0
- package/storybook-static/assets/{createLucideIcon-BG15kzB-.js → createLucideIcon-DhNY7W9i.js} +1 -1
- package/storybook-static/assets/{download-BfgQY4fA.js → download-DDadr76l.js} +1 -1
- package/storybook-static/assets/{folder-Cbvm9nXv.js → folder-Dt06LOrp.js} +1 -1
- package/storybook-static/assets/{iconBase-CeXzlF39.js → iconBase-HFPlWF3A.js} +1 -1
- package/storybook-static/assets/iframe-1P7UMs1C.css +1 -0
- package/storybook-static/assets/{iframe-Cm_EiDwn.js → iframe-rPhsLpUF.js} +3 -3
- package/storybook-static/assets/{index-ULNWitGi.js → index-B9UM6a_o.js} +1 -1
- package/storybook-static/assets/{index-BZSKMuzd.js → index-Ctb6PtgV.js} +1 -1
- package/storybook-static/assets/{index-CsT8MqWO.js → index-DVywRwbF.js} +1 -1
- package/storybook-static/assets/{proxy-Bwjbw6nW.js → proxy-uJ8evSzT.js} +1 -1
- package/storybook-static/assets/{react-18-DgqofcN2.js → react-18-CYoR46z3.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-hrjadSN9.js → react-three-fiber.esm-A61ChP7H.js} +1 -1
- package/storybook-static/assets/{search-BgmZvQ4N.js → search-CIAI1CyG.js} +1 -1
- package/storybook-static/assets/{settings-Byy70ga8.js → settings-en9EIxHx.js} +1 -1
- package/storybook-static/assets/{sun-BqaDfLy6.js → sun-D_CSzOJ1.js} +1 -1
- package/storybook-static/assets/{trash-2-Ceo1MVF-.js → trash-2-C2s-nRjQ.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-XhXswEVQ.js → use-animation-frame-B62vi9Ct.js} +1 -1
- package/storybook-static/assets/{use-in-view-BQr3dSLY.js → use-in-view-BHudJAGG.js} +1 -1
- package/storybook-static/assets/{use-motion-value-C2FYEM9k.js → use-motion-value-jBEsDEvG.js} +1 -1
- package/storybook-static/assets/{use-spring-Nj8eugaF.js → use-spring-Bf02nu3H.js} +1 -1
- package/storybook-static/assets/{use-transform-D5FUFr4K.js → use-transform-Cfp6qWZw.js} +1 -1
- package/storybook-static/assets/{useSound-CZL3WSRL.js → useSound-CISJumm6.js} +1 -1
- package/storybook-static/assets/{users-Copg4Dyi.js → users-Bm-CUW6N.js} +1 -1
- package/storybook-static/assets/{x-CFWk6cjo.js → x-Bb1g_3HM.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/storybook-2/manager-bundle.js +1 -1
- package/storybook-static/assets/SleepChart-CjpdWR_T.css +0 -1
- package/storybook-static/assets/SleepChart.stories-D4Ye-7Q_.js +0 -58
- package/storybook-static/assets/Slider-BfT1m14M.css +0 -1
- package/storybook-static/assets/Slider-Cj9hW0Us.js +0 -4
- package/storybook-static/assets/Slider.stories-BSSPlalx.js +0 -99
- package/storybook-static/assets/client-BtMMXwNO.js +0 -1
- package/storybook-static/assets/iframe-CU5nRRrn.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,j as v}from"./iframe-Cm_EiDwn.js";import{u as re}from"./use-motion-value-C2FYEM9k.js";import{h as ne,j as le,i as Te,r as Ce,m as Oe}from"./proxy-Bwjbw6nW.js";import{f as h,I as k,N as Ne,a3 as Pe,Y as He,$ as Be,j as Ae,c as oe,R as ke,U as Re,o as W,u as be,a as q}from"./MotionConfigContext-r05VNYP5.js";import{u as ze}from"./use-spring-Nj8eugaF.js";import{u as D}from"./use-transform-D5FUFr4K.js";import{u as je}from"./use-animation-frame-XhXswEVQ.js";import"./preload-helper-C1FmrZbK.js";function ce(e,t){let s;const r=()=>{const{currentTime:n}=t,o=(n===null?0:n.value)/100;s!==o&&e(o),s=o};return h.preUpdate(r,!0),()=>k(r)}function Ie(e,t,s){g.useInsertionEffect(()=>e.on(t,s),[e,t,s])}function O(e){return typeof window>"u"?!1:e?ne():le()}const _e=50,F=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),qe=()=>({time:0,x:F(),y:F()}),De={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $(e,t,s,r){const n=s[t],{length:l,position:o}=De[t],c=n.current,a=s.time;n.current=Math.abs(e[`scroll${o}`]),n.scrollLength=e[`scroll${l}`]-e[`client${l}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Ne(0,n.scrollLength,n.current);const i=r-a;n.velocity=i>_e?0:Pe(n.current-c,i)}function Fe(e,t,s){$(e,"x",t,s),$(e,"y",t,s),t.time=s}function $e(e,t){const s={x:0,y:0};let r=e;for(;r&&r!==t;)if(Te(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const n=r.getBoundingClientRect();r=r.parentElement;const l=r.getBoundingClientRect();s.x+=n.left-l.left,s.y+=n.top-l.top}else if(r instanceof SVGGraphicsElement){const{x:n,y:l}=r.getBBox();s.x+=n,s.y+=l;let o=null,c=r.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=r.parentNode;r=o}else break;return s}const R={start:0,center:.5,end:1};function Y(e,t,s=0){let r=0;if(e in R&&(e=R[e]),typeof e=="string"){const n=parseFloat(e);e.endsWith("px")?r=n:e.endsWith("%")?e=n/100:e.endsWith("vw")?r=n/100*document.documentElement.clientWidth:e.endsWith("vh")?r=n/100*document.documentElement.clientHeight:e=n}return typeof e=="number"&&(r=t*e),s+r}const Ye=[0,0];function Xe(e,t,s,r){let n=Array.isArray(e)?e:Ye,l=0,o=0;return typeof e=="number"?n=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?n=e.split(" "):n=[e,R[e]?e:"0"]),l=Y(n[0],s,r),o=Y(n[1],t),l-o}const E={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Me={x:0,y:0};function Ue(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Ge(e,t,s){const{offset:r=E.All}=s,{target:n=e,axis:l="y"}=s,o=l==="y"?"height":"width",c=n!==e?$e(n,e):Me,a=n===e?{width:e.scrollWidth,height:e.scrollHeight}:Ue(n),i={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate;const m=r.length;for(let f=0;f<m;f++){const p=Xe(r[f],i[o],a[o],c[l]);!u&&p!==t[l].interpolatorOffsets[f]&&(u=!0),t[l].offset[f]=p}u&&(t[l].interpolate=He(t[l].offset,Be(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Ae(0,1,t[l].interpolate(t[l].current))}function Ke(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function Je(e,t,s,r={}){return{measure:n=>{Ke(e,r.target,s),Fe(e,s,n),(r.offset||r.target)&&Ge(e,s,r)},notify:()=>t(s)}}const x=new WeakMap,X=new WeakMap,A=new WeakMap,M=new WeakMap,L=new WeakMap,U=e=>e===document.scrollingElement?window:e;function ie(e,{container:t=document.scrollingElement,trackContentSize:s=!1,...r}={}){if(!t)return oe;let n=A.get(t);n||(n=new Set,A.set(t,n));const l=qe(),o=Je(t,e,l,r);if(n.add(o),!x.has(t)){const a=()=>{for(const f of n)f.measure(ke.timestamp);h.preUpdate(i)},i=()=>{for(const f of n)f.notify()},u=()=>h.read(a);x.set(t,u);const m=U(t);window.addEventListener("resize",u),t!==document.documentElement&&X.set(t,Ce(t,u)),m.addEventListener("scroll",u),u()}if(s&&!L.has(t)){const a=x.get(t),i={width:t.scrollWidth,height:t.scrollHeight};M.set(t,i);const u=()=>{const f=t.scrollWidth,p=t.scrollHeight;(i.width!==f||i.height!==p)&&(a(),i.width=f,i.height=p)},m=h.read(u,!0);L.set(t,m)}const c=x.get(t);return h.read(c,!1,!0),()=>{var m;k(c);const a=A.get(t);if(!a||(a.delete(o),a.size))return;const i=x.get(t);x.delete(t),i&&(U(t).removeEventListener("scroll",i),(m=X.get(t))==null||m(),window.removeEventListener("resize",i));const u=L.get(t);u&&(k(u),L.delete(t)),M.delete(t)}}const Qe=[[E.Enter,"entry"],[E.Exit,"exit"],[E.Any,"cover"],[E.All,"contain"]],G={start:0,end:1};function Ze(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const s=G[t[0]],r=G[t[1]];if(!(s===void 0||r===void 0))return[s,r]}function et(e){if(e.length!==2)return;const t=[];for(const s of e)if(Array.isArray(s))t.push(s);else if(typeof s=="string"){const r=Ze(s);if(!r)return;t.push(r)}else return;return t}function tt(e,t){const s=et(e);if(!s)return!1;for(let r=0;r<2;r++){const n=s[r],l=t[r];if(n[0]!==l[0]||n[1]!==l[1])return!1}return!0}function b(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,s]of Qe)if(tt(e,t))return{rangeStart:`${s} 0%`,rangeEnd:`${s} 100%`}}const K=new Map;function J(e){const t={value:0},s=ie(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function ae({source:e,container:t,...s}){const{axis:r}=s;e&&(t=e);let n=K.get(t);n||(n=new Map,K.set(t,n));const l=s.target??"self";let o=n.get(l);o||(o={},n.set(l,o));const c=r+(s.offset??[]).join(",");return o[c]||(s.target&&O(s.target)?b(s.offset)?o[c]=new ViewTimeline({subject:s.target,axis:r}):o[c]=J({container:t,...s}):O()?o[c]=new ScrollTimeline({source:t,axis:r}):o[c]=J({container:t,...s})),o[c]}function st(e,t){const s=ae(t),r=t.target?b(t.offset):void 0,n=t.target?O(t.target)&&!!r:O();return e.attachTimeline({timeline:n?s:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:l=>(l.pause(),ce(o=>{l.time=l.iterationDuration*o},s))})}function rt(e){return e.length===2}function nt(e,t){return rt(e)?ie(s=>{e(s[t.axis].progress,s)},t):ce(e,ae(t))}function ue(e,{axis:t="y",container:s=document.scrollingElement,...r}={}){if(!s)return oe;const n={axis:t,container:s,...r};return typeof e=="function"?nt(e,n):st(e,n)}const lt=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),T=e=>e?!e.current:!1;function Q(e,t,s,r){return{factory:n=>ue(n,{...t,axis:e,container:(s==null?void 0:s.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function ot(e,t){return typeof window>"u"?!1:e?ne()&&!!b(t):le()}function ct({container:e,target:t,...s}={}){const r=Re(lt);ot(t,s.offset)&&(r.scrollXProgress.accelerate=Q("x",s,e,t),r.scrollYProgress.accelerate=Q("y",s,e,t));const n=g.useRef(null),l=g.useRef(!1),o=g.useCallback(()=>(n.current=ue((c,{x:a,y:i})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var c;(c=n.current)==null||c.call(n)}),[e,t,JSON.stringify(s.offset)]);return be(()=>{if(l.current=!1,T(e)||T(t)){l.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(l.current)return q(!T(e)),q(!T(t)),o()},[o]),r}function it(e){const t=re(e.getVelocity()),s=()=>{const r=e.getVelocity();t.set(r),r&&h.update(s)};return Ie(e,"change",()=>{h.update(s,!1,!0)}),t}const at="_parallax_1s8d6_1",ut="_scroller_1s8d6_6",Z={parallax:at,scroller:ut};function ft(e){const[t,s]=g.useState(0);return g.useLayoutEffect(()=>{function r(){e.current&&s(e.current.offsetWidth)}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t}const fe=({scrollContainerRef:e,texts:t=[],velocity:s=100,className:r="",damping:n=50,stiffness:l=400,numCopies:o=6,velocityMapping:c={input:[0,1e3],output:[0,5]},parallaxClassName:a=Z.parallax,scrollerClassName:i=Z.scroller,parallaxStyle:u,scrollerStyle:m})=>{function f({children:p,baseVelocity:S=s,scrollContainerRef:z,className:de="",damping:me,stiffness:pe,numCopies:ge,velocityMapping:y,parallaxClassName:he,scrollerClassName:ye,parallaxStyle:xe,scrollerStyle:we}){const N=re(0),ve=z?{container:z}:{},{scrollY:Ee}=ct(ve),Se=it(Ee),Ve=ze(Se,{damping:me??50,stiffness:pe??400}),P=D(Ve,(y==null?void 0:y.input)||[0,1e3],(y==null?void 0:y.output)||[0,5],{clamp:!1}),j=g.useRef(null),I=ft(j);function We(d,H,w){const B=H-d;return((w-d)%B+B)%B+d}const Le=D(N,d=>I===0?"0px":`${We(-I,0,d)}px`),V=g.useRef(1);je((d,H)=>{let w=V.current*S*(H/1e3);P.get()<0?V.current=-1:P.get()>0&&(V.current=1),w+=V.current*w*P.get(),N.set(N.get()+w)});const _=[];for(let d=0;d<ge;d++)_.push(v.jsxs("span",{className:de,ref:d===0?j:null,children:[p," "]},d));return v.jsx("div",{className:he,style:xe,children:v.jsx(Oe.div,{className:ye,style:{x:Le,...we},children:_})})}return v.jsx("section",{children:t.map((p,S)=>v.jsx(f,{className:r,baseVelocity:S%2!==0?-s:s,scrollContainerRef:e,damping:n,stiffness:l,numCopies:o,velocityMapping:c,parallaxClassName:a,scrollerClassName:i,parallaxStyle:u,scrollerStyle:m,children:p},S))})};fe.__docgenInfo={description:"",methods:[],displayName:"ScrollVelocity",props:{texts:{defaultValue:{value:"[]",computed:!1},required:!1},velocity:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},damping:{defaultValue:{value:"50",computed:!1},required:!1},stiffness:{defaultValue:{value:"400",computed:!1},required:!1},numCopies:{defaultValue:{value:"6",computed:!1},required:!1},velocityMapping:{defaultValue:{value:"{ input: [0, 1000], output: [0, 5] }",computed:!1},required:!1},parallaxClassName:{defaultValue:{value:"styles['parallax']",computed:!0},required:!1},scrollerClassName:{defaultValue:{value:"styles['scroller']",computed:!0},required:!1}}};const Et={title:"ReactBits/TextAnimations/ScrollVelocity",component:fe,parameters:{layout:"fullscreen"}},C={args:{texts:["React Bits","Scroll Velocity"],velocity:100,damping:50,stiffness:400,numCopies:6}};var ee,te,se;C.parameters={...C.parameters,docs:{...(ee=C.parameters)==null?void 0:ee.docs,source:{originalSource:`{
|
|
1
|
+
import{r as g,j as v}from"./iframe-rPhsLpUF.js";import{u as re}from"./use-motion-value-jBEsDEvG.js";import{h as ne,j as le,i as Te,r as Ce,m as Oe}from"./proxy-uJ8evSzT.js";import{f as h,I as k,N as Ne,a3 as Pe,Y as He,$ as Be,j as Ae,c as oe,R as ke,U as Re,o as W,u as be,a as q}from"./MotionConfigContext-HXxMOMJo.js";import{u as ze}from"./use-spring-Bf02nu3H.js";import{u as D}from"./use-transform-Cfp6qWZw.js";import{u as je}from"./use-animation-frame-B62vi9Ct.js";import"./preload-helper-C1FmrZbK.js";function ce(e,t){let s;const r=()=>{const{currentTime:n}=t,o=(n===null?0:n.value)/100;s!==o&&e(o),s=o};return h.preUpdate(r,!0),()=>k(r)}function Ie(e,t,s){g.useInsertionEffect(()=>e.on(t,s),[e,t,s])}function O(e){return typeof window>"u"?!1:e?ne():le()}const _e=50,F=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),qe=()=>({time:0,x:F(),y:F()}),De={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $(e,t,s,r){const n=s[t],{length:l,position:o}=De[t],c=n.current,a=s.time;n.current=Math.abs(e[`scroll${o}`]),n.scrollLength=e[`scroll${l}`]-e[`client${l}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Ne(0,n.scrollLength,n.current);const i=r-a;n.velocity=i>_e?0:Pe(n.current-c,i)}function Fe(e,t,s){$(e,"x",t,s),$(e,"y",t,s),t.time=s}function $e(e,t){const s={x:0,y:0};let r=e;for(;r&&r!==t;)if(Te(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const n=r.getBoundingClientRect();r=r.parentElement;const l=r.getBoundingClientRect();s.x+=n.left-l.left,s.y+=n.top-l.top}else if(r instanceof SVGGraphicsElement){const{x:n,y:l}=r.getBBox();s.x+=n,s.y+=l;let o=null,c=r.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=r.parentNode;r=o}else break;return s}const R={start:0,center:.5,end:1};function Y(e,t,s=0){let r=0;if(e in R&&(e=R[e]),typeof e=="string"){const n=parseFloat(e);e.endsWith("px")?r=n:e.endsWith("%")?e=n/100:e.endsWith("vw")?r=n/100*document.documentElement.clientWidth:e.endsWith("vh")?r=n/100*document.documentElement.clientHeight:e=n}return typeof e=="number"&&(r=t*e),s+r}const Ye=[0,0];function Xe(e,t,s,r){let n=Array.isArray(e)?e:Ye,l=0,o=0;return typeof e=="number"?n=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?n=e.split(" "):n=[e,R[e]?e:"0"]),l=Y(n[0],s,r),o=Y(n[1],t),l-o}const E={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Me={x:0,y:0};function Ue(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Ge(e,t,s){const{offset:r=E.All}=s,{target:n=e,axis:l="y"}=s,o=l==="y"?"height":"width",c=n!==e?$e(n,e):Me,a=n===e?{width:e.scrollWidth,height:e.scrollHeight}:Ue(n),i={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate;const m=r.length;for(let f=0;f<m;f++){const p=Xe(r[f],i[o],a[o],c[l]);!u&&p!==t[l].interpolatorOffsets[f]&&(u=!0),t[l].offset[f]=p}u&&(t[l].interpolate=He(t[l].offset,Be(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Ae(0,1,t[l].interpolate(t[l].current))}function Ke(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function Je(e,t,s,r={}){return{measure:n=>{Ke(e,r.target,s),Fe(e,s,n),(r.offset||r.target)&&Ge(e,s,r)},notify:()=>t(s)}}const x=new WeakMap,X=new WeakMap,A=new WeakMap,M=new WeakMap,L=new WeakMap,U=e=>e===document.scrollingElement?window:e;function ie(e,{container:t=document.scrollingElement,trackContentSize:s=!1,...r}={}){if(!t)return oe;let n=A.get(t);n||(n=new Set,A.set(t,n));const l=qe(),o=Je(t,e,l,r);if(n.add(o),!x.has(t)){const a=()=>{for(const f of n)f.measure(ke.timestamp);h.preUpdate(i)},i=()=>{for(const f of n)f.notify()},u=()=>h.read(a);x.set(t,u);const m=U(t);window.addEventListener("resize",u),t!==document.documentElement&&X.set(t,Ce(t,u)),m.addEventListener("scroll",u),u()}if(s&&!L.has(t)){const a=x.get(t),i={width:t.scrollWidth,height:t.scrollHeight};M.set(t,i);const u=()=>{const f=t.scrollWidth,p=t.scrollHeight;(i.width!==f||i.height!==p)&&(a(),i.width=f,i.height=p)},m=h.read(u,!0);L.set(t,m)}const c=x.get(t);return h.read(c,!1,!0),()=>{var m;k(c);const a=A.get(t);if(!a||(a.delete(o),a.size))return;const i=x.get(t);x.delete(t),i&&(U(t).removeEventListener("scroll",i),(m=X.get(t))==null||m(),window.removeEventListener("resize",i));const u=L.get(t);u&&(k(u),L.delete(t)),M.delete(t)}}const Qe=[[E.Enter,"entry"],[E.Exit,"exit"],[E.Any,"cover"],[E.All,"contain"]],G={start:0,end:1};function Ze(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const s=G[t[0]],r=G[t[1]];if(!(s===void 0||r===void 0))return[s,r]}function et(e){if(e.length!==2)return;const t=[];for(const s of e)if(Array.isArray(s))t.push(s);else if(typeof s=="string"){const r=Ze(s);if(!r)return;t.push(r)}else return;return t}function tt(e,t){const s=et(e);if(!s)return!1;for(let r=0;r<2;r++){const n=s[r],l=t[r];if(n[0]!==l[0]||n[1]!==l[1])return!1}return!0}function b(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,s]of Qe)if(tt(e,t))return{rangeStart:`${s} 0%`,rangeEnd:`${s} 100%`}}const K=new Map;function J(e){const t={value:0},s=ie(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function ae({source:e,container:t,...s}){const{axis:r}=s;e&&(t=e);let n=K.get(t);n||(n=new Map,K.set(t,n));const l=s.target??"self";let o=n.get(l);o||(o={},n.set(l,o));const c=r+(s.offset??[]).join(",");return o[c]||(s.target&&O(s.target)?b(s.offset)?o[c]=new ViewTimeline({subject:s.target,axis:r}):o[c]=J({container:t,...s}):O()?o[c]=new ScrollTimeline({source:t,axis:r}):o[c]=J({container:t,...s})),o[c]}function st(e,t){const s=ae(t),r=t.target?b(t.offset):void 0,n=t.target?O(t.target)&&!!r:O();return e.attachTimeline({timeline:n?s:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:l=>(l.pause(),ce(o=>{l.time=l.iterationDuration*o},s))})}function rt(e){return e.length===2}function nt(e,t){return rt(e)?ie(s=>{e(s[t.axis].progress,s)},t):ce(e,ae(t))}function ue(e,{axis:t="y",container:s=document.scrollingElement,...r}={}){if(!s)return oe;const n={axis:t,container:s,...r};return typeof e=="function"?nt(e,n):st(e,n)}const lt=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),T=e=>e?!e.current:!1;function Q(e,t,s,r){return{factory:n=>ue(n,{...t,axis:e,container:(s==null?void 0:s.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function ot(e,t){return typeof window>"u"?!1:e?ne()&&!!b(t):le()}function ct({container:e,target:t,...s}={}){const r=Re(lt);ot(t,s.offset)&&(r.scrollXProgress.accelerate=Q("x",s,e,t),r.scrollYProgress.accelerate=Q("y",s,e,t));const n=g.useRef(null),l=g.useRef(!1),o=g.useCallback(()=>(n.current=ue((c,{x:a,y:i})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var c;(c=n.current)==null||c.call(n)}),[e,t,JSON.stringify(s.offset)]);return be(()=>{if(l.current=!1,T(e)||T(t)){l.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(l.current)return q(!T(e)),q(!T(t)),o()},[o]),r}function it(e){const t=re(e.getVelocity()),s=()=>{const r=e.getVelocity();t.set(r),r&&h.update(s)};return Ie(e,"change",()=>{h.update(s,!1,!0)}),t}const at="_parallax_1s8d6_1",ut="_scroller_1s8d6_6",Z={parallax:at,scroller:ut};function ft(e){const[t,s]=g.useState(0);return g.useLayoutEffect(()=>{function r(){e.current&&s(e.current.offsetWidth)}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t}const fe=({scrollContainerRef:e,texts:t=[],velocity:s=100,className:r="",damping:n=50,stiffness:l=400,numCopies:o=6,velocityMapping:c={input:[0,1e3],output:[0,5]},parallaxClassName:a=Z.parallax,scrollerClassName:i=Z.scroller,parallaxStyle:u,scrollerStyle:m})=>{function f({children:p,baseVelocity:S=s,scrollContainerRef:z,className:de="",damping:me,stiffness:pe,numCopies:ge,velocityMapping:y,parallaxClassName:he,scrollerClassName:ye,parallaxStyle:xe,scrollerStyle:we}){const N=re(0),ve=z?{container:z}:{},{scrollY:Ee}=ct(ve),Se=it(Ee),Ve=ze(Se,{damping:me??50,stiffness:pe??400}),P=D(Ve,(y==null?void 0:y.input)||[0,1e3],(y==null?void 0:y.output)||[0,5],{clamp:!1}),j=g.useRef(null),I=ft(j);function We(d,H,w){const B=H-d;return((w-d)%B+B)%B+d}const Le=D(N,d=>I===0?"0px":`${We(-I,0,d)}px`),V=g.useRef(1);je((d,H)=>{let w=V.current*S*(H/1e3);P.get()<0?V.current=-1:P.get()>0&&(V.current=1),w+=V.current*w*P.get(),N.set(N.get()+w)});const _=[];for(let d=0;d<ge;d++)_.push(v.jsxs("span",{className:de,ref:d===0?j:null,children:[p," "]},d));return v.jsx("div",{className:he,style:xe,children:v.jsx(Oe.div,{className:ye,style:{x:Le,...we},children:_})})}return v.jsx("section",{children:t.map((p,S)=>v.jsx(f,{className:r,baseVelocity:S%2!==0?-s:s,scrollContainerRef:e,damping:n,stiffness:l,numCopies:o,velocityMapping:c,parallaxClassName:a,scrollerClassName:i,parallaxStyle:u,scrollerStyle:m,children:p},S))})};fe.__docgenInfo={description:"",methods:[],displayName:"ScrollVelocity",props:{texts:{defaultValue:{value:"[]",computed:!1},required:!1},velocity:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},damping:{defaultValue:{value:"50",computed:!1},required:!1},stiffness:{defaultValue:{value:"400",computed:!1},required:!1},numCopies:{defaultValue:{value:"6",computed:!1},required:!1},velocityMapping:{defaultValue:{value:"{ input: [0, 1000], output: [0, 5] }",computed:!1},required:!1},parallaxClassName:{defaultValue:{value:"styles['parallax']",computed:!0},required:!1},scrollerClassName:{defaultValue:{value:"styles['scroller']",computed:!0},required:!1}}};const Et={title:"ReactBits/TextAnimations/ScrollVelocity",component:fe,parameters:{layout:"fullscreen"}},C={args:{texts:["React Bits","Scroll Velocity"],velocity:100,damping:50,stiffness:400,numCopies:6}};var ee,te,se;C.parameters={...C.parameters,docs:{...(ee=C.parameters)==null?void 0:ee.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
texts: ['React Bits', 'Scroll Velocity'],
|
|
4
4
|
velocity: 100,
|
package/storybook-static/assets/{SearchBar.stories-BGekDZxb.js → SearchBar.stories-Coshf_t6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o,j as t}from"./iframe-
|
|
1
|
+
import{r as o,j as t}from"./iframe-rPhsLpUF.js";import{S as ee}from"./search-CIAI1CyG.js";import{F as te}from"./folder-Dt06LOrp.js";import{U as se}from"./users-Bm-CUW6N.js";import{c as P}from"./createLucideIcon-DhNY7W9i.js";import{m as $}from"./proxy-uJ8evSzT.js";import{X as ye}from"./x-Bb1g_3HM.js";import{A as fe}from"./index-B9UM6a_o.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";/**
|
|
2
2
|
* @license lucide-react v0.539.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/storybook-static/assets/{SearchableDropdown-Dzdyi2XK.js → SearchableDropdown-CC1-QlKh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as n}from"./iframe-
|
|
1
|
+
import{r,j as n}from"./iframe-rPhsLpUF.js";import{m as p}from"./proxy-uJ8evSzT.js";import{C as V}from"./chevron-down-C40D1TRM.js";import{A as R}from"./index-B9UM6a_o.js";import{S as A}from"./search-CIAI1CyG.js";import{C as T}from"./check-D_NpTUYB.js";const q="_searchableDropdown_13fbr_1",M="_dropdownTrigger_13fbr_17",$="_open_13fbr_45",L="_dropdownValue_13fbr_52",F="_placeholder_13fbr_61",K="_dropdownArrow_13fbr_67",H="_dropdownMenu_13fbr_83",P="_dropdownSearch_13fbr_101",z="_searchInput_13fbr_111",B="_searchIcon_13fbr_136",U="_dropdownOptions_13fbr_152",W="_dropdownOption_13fbr_152",G="_selected_13fbr_221",J="_highlighted_13fbr_243",Q="_checkIcon_13fbr_256",X="_dropdownNoResults_13fbr_276",Y="_loading_13fbr_390",o={searchableDropdown:q,dropdownTrigger:M,open:$,dropdownValue:L,placeholder:F,dropdownArrow:K,dropdownMenu:H,dropdownSearch:P,searchInput:z,searchIcon:B,dropdownOptions:U,dropdownOption:W,selected:G,highlighted:J,checkIcon:Q,dropdownNoResults:X,loading:Y};function Z({label:C,value:m,onChange:k,options:w,placeholder:N="Select...",allowEmpty:j=!0,disabled:u=!1,loading:g=!1,error:D=!1}){const[t,i]=r.useState(!1),[_,d]=r.useState(""),[c,l]=r.useState(-1),h=r.useRef(null),f=r.useRef(null),b=w.find(e=>e.value===m),y=b?b.label:"",v=w.filter(e=>e.label.toLowerCase().includes(_.toLowerCase())),s=j?[{label:"(none)",value:""},...v]:v;r.useEffect(()=>{function e(a){h.current&&!h.current.contains(a.target)&&(i(!1),d(""))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),r.useEffect(()=>{t&&f.current&&f.current.focus()},[t]);const x=e=>{k(e),i(!1),d(""),l(-1)},I=e=>{if(t)switch(e.key){case"ArrowDown":e.preventDefault(),l(a=>a<s.length-1?a+1:0);break;case"ArrowUp":e.preventDefault(),l(a=>a>0?a-1:s.length-1);break;case"Enter":e.preventDefault(),c>=0&&c<s.length&&x(s[c].value);break;case"Escape":e.preventDefault(),i(!1),d(""),l(-1);break}},O=()=>{const e=[o.dropdownTrigger];return t&&e.push(o.open),g&&e.push(o.loading),D&&e.push(o.error),e.join(" ")};return n.jsxs("div",{className:o.searchableDropdown,ref:h,onKeyDown:I,children:[n.jsx("label",{children:C}),n.jsxs(p.button,{type:"button",className:O(),onClick:()=>!u&&!g&&i(!t),whileTap:{scale:u?1:.98},style:{willChange:"transform"},disabled:u,children:[n.jsx("span",{className:`${o.dropdownValue} ${y?"":o.placeholder}`,children:y||N}),n.jsx(V,{className:o.dropdownArrow})]}),n.jsx(R,{children:t&&n.jsxs(p.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2,ease:"easeOut"},children:[n.jsxs("div",{className:o.dropdownSearch,children:[n.jsx(A,{className:o.searchIcon}),n.jsx("input",{ref:f,type:"text",className:o.searchInput,placeholder:"Cerca...",value:_,onChange:e=>d(e.target.value),onClick:e=>e.stopPropagation()})]}),n.jsxs("div",{className:o.dropdownOptions,children:[s.map((e,a)=>{const S=m===e.value,E=c===a;return n.jsxs(p.button,{type:"button",className:`${o.dropdownOption} ${S?o.selected:""} ${E?o.highlighted:""}`,onClick:()=>x(e.value),onMouseEnter:()=>l(a),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:a*.02},whileTap:{scale:.98},style:{willChange:"transform"},children:[n.jsx("span",{children:e.label}),S&&n.jsx(T,{className:o.checkIcon})]},`${e.value}-${a}`)}),s.length===0&&n.jsx(p.div,{className:o.dropdownNoResults,initial:{opacity:0},animate:{opacity:1},children:"No results found"})]})]})})]})}Z.__docgenInfo={description:`SearchableDropdown component - Modern filterable dropdown with animations
|
|
2
2
|
|
|
3
3
|
@component
|
|
4
4
|
@description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-rPhsLpUF.js";import{S as a}from"./SearchableDropdown-CC1-QlKh.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./chevron-down-C40D1TRM.js";import"./createLucideIcon-DhNY7W9i.js";import"./index-B9UM6a_o.js";import"./search-CIAI1CyG.js";import"./check-D_NpTUYB.js";const j={title:"Atoms/SearchableDropdown",component:a,parameters:{layout:"centered",docs:{description:{component:"A dropdown component with built-in search functionality and smooth animations."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},allowEmpty:{control:"boolean"},onChange:{action:"changed"}}},n=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"},{label:"Japan",value:"jp"},{label:"Australia",value:"au"},{label:"Brazil",value:"br"}],r=[{label:"React",value:"react"},{label:"Vue.js",value:"vue"},{label:"Angular",value:"angular"},{label:"Svelte",value:"svelte"},{label:"TypeScript",value:"typescript"},{label:"JavaScript",value:"javascript"},{label:"Node.js",value:"nodejs"},{label:"Python",value:"python"},{label:"Java",value:"java"},{label:"C#",value:"csharp"},{label:"Go",value:"go"},{label:"Rust",value:"rust"}],l={args:{label:"Select Country",value:"",options:n,placeholder:"Choose a country",allowEmpty:!0,onChange:()=>{}}},o={args:{label:"Technology Stack",value:"",options:r,placeholder:"Search technologies...",allowEmpty:!0,onChange:()=>{}}},t={args:{label:"With Empty Option",value:"",options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0,onChange:()=>{}},render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",width:"300px"},children:[e.jsx(a,{label:"With Empty Option",value:"",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"No Empty Option",value:"react",onChange:()=>{},options:r.slice(0,5),placeholder:"Choose...",allowEmpty:!1}),e.jsx(a,{label:"Pre-selected",value:"us",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"Long Options List",value:"",onChange:()=>{},options:r,placeholder:"Search technologies...",allowEmpty:!0})]}),parameters:{controls:{disable:!0}}};var s,p,c;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Select Country',
|
|
4
4
|
value: '',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./iframe-
|
|
1
|
+
import{j as s}from"./iframe-rPhsLpUF.js";import{u as y}from"./useSound-CISJumm6.js";import{C as g}from"./chevron-down-C40D1TRM.js";const I="_selectInput_qebnx_1",S="_selectWrapper_qebnx_16",j="_selectIcon_qebnx_68",q="_error_qebnx_134",C="_success_qebnx_163",V="_loading_qebnx_190",l={selectInput:I,selectWrapper:S,selectIcon:j,error:q,success:C,loading:V};function w({label:r,value:c,onChange:u,options:i,placeholder:p="Select...",disabled:d=!1,error:f=!1,success:m=!1,loading:a=!1,required:t=!1,soundConfig:v,className:n}){const{handlers:h,playSound:b}=y(v),x=()=>{const e=[l.selectInput];return f&&e.push(l.error),m&&e.push(l.success),a&&e.push(l.loading),e.join(" ")};return s.jsxs("div",{className:`${x()}${n?` ${n}`:""}`,children:[s.jsxs("label",{children:[r,t&&s.jsx("span",{style:{color:"var(--color-error)"},children:" *"})]}),s.jsxs("div",{className:l.selectWrapper,children:[s.jsxs("select",{value:c,onChange:e=>{b("click"),u(e.target.value)},disabled:d||a,required:t,...h,children:[s.jsx("option",{value:"",children:p}),i.map(e=>{const o=typeof e=="string"?e:e.value,_=typeof e=="string"?e:e.label;return s.jsx("option",{value:o,children:_},o)})]}),s.jsx(g,{className:l.selectIcon})]})]})}w.__docgenInfo={description:`SelectInput component - Styled dropdown selector with flexible option format
|
|
2
2
|
|
|
3
3
|
@component
|
|
4
4
|
@description
|
package/storybook-static/assets/{SelectInput.stories-BSb6s-9V.js → SelectInput.stories-I0azAt7k.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h,j as o}from"./iframe-
|
|
1
|
+
import{r as h,j as o}from"./iframe-rPhsLpUF.js";import{S as t}from"./SelectInput-BqVWIQmb.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-CISJumm6.js";import"./chevron-down-C40D1TRM.js";import"./createLucideIcon-DhNY7W9i.js";const F={title:"Atoms/SelectInput",component:t,parameters:{layout:"centered",docs:{description:{component:"A simple dropdown select component with customizable options."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"}}},y=["Option 1","Option 2","Option 3","Option 4"],S=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Australia",value:"au"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"}],r={args:{label:"Select an option",value:"",onChange:()=>{},options:y,placeholder:"Choose..."}},n={args:{label:"Country",value:"uk",onChange:()=>{},options:S,placeholder:"Select a country"}},s={args:{label:"Form Example",value:"",onChange:()=>{},options:["Option 1","Option 2"]},render:()=>{const[e,l]=h.useState({title:"",category:"",priority:"",assignee:""});return o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",padding:"1.5rem",background:"var(--color-background-secondary)",borderRadius:"var(--radius-md)",minWidth:"300px"},children:[o.jsx("h3",{style:{marginTop:0},children:"Create Task"}),o.jsx(t,{label:"Title",value:e.title,onChange:a=>l({...e,title:a}),options:["Mr","Mrs","Ms","Dr","Prof"],placeholder:"Select title"}),o.jsx(t,{label:"Category",value:e.category,onChange:a=>l({...e,category:a}),options:[{label:"Bug",value:"bug"},{label:"Feature",value:"feature"},{label:"Documentation",value:"docs"},{label:"Testing",value:"test"}],placeholder:"Select category"}),o.jsx(t,{label:"Priority",value:e.priority,onChange:a=>l({...e,priority:a}),options:["Low","Medium","High","Critical"],placeholder:"Select priority"}),o.jsx(t,{label:"Assignee",value:e.assignee,onChange:a=>l({...e,assignee:a}),options:[{label:"John Doe",value:"john"},{label:"Jane Smith",value:"jane"},{label:"Bob Johnson",value:"bob"},{label:"Alice Brown",value:"alice"}],placeholder:"Select assignee"})]})},parameters:{controls:{disable:!0}}};var i,c,u;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Select an option',
|
|
4
4
|
value: '',
|
package/storybook-static/assets/{ShapeBlur.stories-CTwpIXJ5.js → ShapeBlur.stories-BWBp8nEd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as M,j}from"./iframe-
|
|
1
|
+
import{r as M,j}from"./iframe-rPhsLpUF.js";import{d as m,S as B,a as D,W as N,q as T,i as k,M as G,r as H}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const U=`
|
|
2
2
|
varying vec2 v_texcoord;
|
|
3
3
|
void main() {
|
|
4
4
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
package/storybook-static/assets/{ShapeGrid.stories-D--GPfwE.js → ShapeGrid.stories-DJmnW7fN.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as v,j as q}from"./iframe-
|
|
1
|
+
import{r as v,j as q}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";const z={"shapegrid-canvas":"_shapegrid-canvas_ilyut_1"},J=({direction:P="right",speed:L=1,borderColor:k="#999",squareSize:t=40,hoverFillColor:b="#222",shape:X="square",hoverTrailAmount:y=0,className:Q=""})=>{const _=v.useRef(null),j=v.useRef(null),U=v.useRef(),Z=v.useRef(),r=v.useRef({x:0,y:0}),o=v.useRef(null),p=v.useRef([]),M=v.useRef(new Map);return v.useEffect(()=>{const s=_.current,n=s.getContext("2d"),Y=X==="hexagon",E=X==="triangle",w=t*1.5,m=t*Math.sqrt(3),V=()=>{s.width=s.offsetWidth,s.height=s.offsetHeight,U.current=Math.ceil(s.width/t)+1,Z.current=Math.ceil(s.height/t)+1};window.addEventListener("resize",V),V();const C=(l,e,c)=>{n.beginPath();for(let u=0;u<6;u++){const h=Math.PI/3*u,d=l+c*Math.cos(h),f=e+c*Math.sin(h);u===0?n.moveTo(d,f):n.lineTo(d,f)}n.closePath()},G=(l,e,c)=>{n.beginPath(),n.arc(l,e,c/2,0,Math.PI*2),n.closePath()},O=(l,e,c,u)=>{n.beginPath(),u?(n.moveTo(l,e+c/2),n.lineTo(l+c/2,e-c/2),n.lineTo(l-c/2,e-c/2)):(n.moveTo(l,e-c/2),n.lineTo(l+c/2,e+c/2),n.lineTo(l-c/2,e+c/2)),n.closePath()},A=()=>{if(n.clearRect(0,0,s.width,s.height),Y){const e=Math.floor(r.current.x/w),c=(r.current.x%w+w)%w,u=(r.current.y%m+m)%m,h=Math.ceil(s.width/w)+3,d=Math.ceil(s.height/m)+3;for(let f=-2;f<h;f++)for(let g=-2;g<d;g++){const i=f*w+c,a=g*m+((f+e)%2!==0?m/2:0)+u,x=`${f},${g}`,R=M.current.get(x);R&&(n.globalAlpha=R,C(i,a,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),C(i,a,t),n.strokeStyle=k,n.stroke()}}else if(E){const e=t/2,c=Math.floor(r.current.x/e),u=Math.floor(r.current.y/t),h=(r.current.x%e+e)%e,d=(r.current.y%t+t)%t,f=Math.ceil(s.width/e)+4,g=Math.ceil(s.height/t)+4;for(let i=-2;i<f;i++)for(let a=-2;a<g;a++){const x=i*e+h,R=a*t+t/2+d,I=((i+c+a+u)%2+2)%2!==0,S=`${i},${a}`,N=M.current.get(S);N&&(n.globalAlpha=N,O(x,R,t,I),n.fillStyle=b,n.fill(),n.globalAlpha=1),O(x,R,t,I),n.strokeStyle=k,n.stroke()}}else if(X==="circle"){const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+t/2+e,i=f*t+t/2+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,G(g,i,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),G(g,i,t),n.strokeStyle=k,n.stroke()}}else{const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+e,i=f*t+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,n.fillStyle=b,n.fillRect(g,i,t,t),n.globalAlpha=1),n.strokeStyle=k,n.strokeRect(g,i,t,t)}}const l=n.createRadialGradient(s.width/2,s.height/2,0,s.width/2,s.height/2,Math.sqrt(s.width**2+s.height**2)/2);l.addColorStop(0,"rgba(0, 0, 0, 0)"),n.fillStyle=l,n.fillRect(0,0,s.width,s.height)},H=()=>{const l=Math.max(L,.1),e=Y?w*2:t,c=Y?m:E?t*2:t;switch(P){case"right":r.current.x=(r.current.x-l+e)%e;break;case"left":r.current.x=(r.current.x+l+e)%e;break;case"up":r.current.y=(r.current.y+l+c)%c;break;case"down":r.current.y=(r.current.y-l+c)%c;break;case"diagonal":r.current.x=(r.current.x-l+e)%e,r.current.y=(r.current.y-l+c)%c;break}T(),A(),j.current=requestAnimationFrame(H)},T=()=>{const l=new Map;if(o.current&&l.set(`${o.current.x},${o.current.y}`,1),y>0)for(let e=0;e<p.current.length;e++){const c=p.current[e],u=`${c.x},${c.y}`;l.has(u)||l.set(u,(p.current.length-e)/(p.current.length+1))}for(const[e]of l)M.current.has(e)||M.current.set(e,0);for(const[e,c]of M.current){const u=l.get(e)||0,h=c+(u-c)*.15;h<.005?M.current.delete(e):M.current.set(e,h)}},K=l=>{const e=s.getBoundingClientRect(),c=l.clientX-e.left,u=l.clientY-e.top;if(Y){const h=Math.floor(r.current.x/w),d=(r.current.x%w+w)%w,f=(r.current.y%m+m)%m,g=c-d,i=u-f,a=Math.round(g/w),x=(a+h)%2!==0?m/2:0,R=Math.round((i-x)/m);(!o.current||o.current.x!==a||o.current.y!==R)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:R})}else if(E){const h=t/2,d=(r.current.x%h+h)%h,f=(r.current.y%t+t)%t,g=c-d,i=u-f,a=Math.round(g/h),x=Math.floor(i/t);(!o.current||o.current.x!==a||o.current.y!==x)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:x})}else if(X==="circle"){const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.round(f/t),a=Math.round(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}else{const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.floor(f/t),a=Math.floor(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}},B=()=>{o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current=null};return s.addEventListener("mousemove",K),s.addEventListener("mouseleave",B),j.current=requestAnimationFrame(H),()=>{window.removeEventListener("resize",V),cancelAnimationFrame(j.current),s.removeEventListener("mousemove",K),s.removeEventListener("mouseleave",B)}},[P,L,k,b,t,X,y]),q.jsx("canvas",{ref:_,className:`${z["shapegrid-canvas"]} ${Q}`})};J.__docgenInfo={description:"",methods:[],displayName:"ShapeGrid",props:{direction:{defaultValue:{value:"'right'",computed:!1},required:!1},speed:{defaultValue:{value:"1",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#999'",computed:!1},required:!1},squareSize:{defaultValue:{value:"40",computed:!1},required:!1},hoverFillColor:{defaultValue:{value:"'#222'",computed:!1},required:!1},shape:{defaultValue:{value:"'square'",computed:!1},required:!1},hoverTrailAmount:{defaultValue:{value:"0",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const nt={title:"ReactBits/Backgrounds/ShapeGrid",component:J,parameters:{layout:"fullscreen"}},$={args:{direction:"right",speed:1,borderColor:"#999",squareSize:40,hoverFillColor:"#222",shape:"square",hoverTrailAmount:0}};var W,D,F;$.parameters={...$.parameters,docs:{...(W=$.parameters)==null?void 0:W.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
direction: 'right',
|
|
4
4
|
speed: 1,
|
package/storybook-static/assets/{ShinyText.stories-BmAOXMEC.js → ShinyText.stories-7vHIqa03.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as N}from"./iframe-
|
|
1
|
+
import{r,j as N}from"./iframe-rPhsLpUF.js";import{u as P}from"./use-motion-value-jBEsDEvG.js";import{u as z}from"./use-animation-frame-B62vi9Ct.js";import{u as A}from"./use-transform-Cfp6qWZw.js";import{m as B}from"./proxy-uJ8evSzT.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";const F={"shiny-text":"_shiny-text_183zx_1"},T=({text:V,disabled:q=!1,speed:k=2,className:C="",color:u="#b5b5b5",shineColor:$="#ffffff",spread:R=120,yoyo:S=!1,pauseOnHover:f=!1,direction:m="left",delay:_=0})=>{const[D,y]=r.useState(!1),e=P(0),c=r.useRef(0),n=r.useRef(null),a=r.useRef(m==="left"?1:-1),t=k*1e3,b=_*1e3;z(o=>{if(q||D){n.current=null;return}if(n.current===null){n.current=o;return}const I=o-n.current;if(n.current=o,c.current+=I,S){const l=t+b,i=l*2,s=c.current%i;if(s<t){const p=s/t*100;e.set(a.current===1?p:100-p)}else if(s<l)e.set(a.current===1?100:0);else if(s<l+t){const x=100-(s-l)/t*100;e.set(a.current===1?x:100-x)}else e.set(a.current===1?0:100)}else{const l=t+b,i=c.current%l;if(i<t){const s=i/t*100;e.set(a.current===1?s:100-s)}else e.set(a.current===1?100:0)}}),r.useEffect(()=>{a.current=m==="left"?1:-1,c.current=0,e.set(0)},[m]);const E=A(e,o=>`${150-o*2}% center`),M=r.useCallback(()=>{f&&y(!0)},[f]),W=r.useCallback(()=>{f&&y(!1)},[f]),j={backgroundImage:`linear-gradient(${R}deg, ${u} 0%, ${u} 35%, ${$} 50%, ${u} 65%, ${u} 100%)`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"};return N.jsx(B.span,{className:`${F["shiny-text"]} ${C}`,style:{...j,backgroundPosition:E},onMouseEnter:M,onMouseLeave:W,children:V})};T.__docgenInfo={description:"",methods:[],displayName:"ShinyText",props:{disabled:{defaultValue:{value:"false",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'#b5b5b5'",computed:!1},required:!1},shineColor:{defaultValue:{value:"'#ffffff'",computed:!1},required:!1},spread:{defaultValue:{value:"120",computed:!1},required:!1},yoyo:{defaultValue:{value:"false",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/ShinyText",component:T,parameters:{layout:"fullscreen"}},d={args:{text:"Hello World",disabled:!1,speed:2,color:"#b5b5b5",shineColor:"#ffffff",spread:120,yoyo:!1,pauseOnHover:!1,direction:"left",delay:0}};var g,v,h;d.parameters={...d.parameters,docs:{...(g=d.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
text: 'Hello World',
|
|
4
4
|
disabled: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as n,j as a}from"./iframe-
|
|
1
|
+
import{r as n,j as a}from"./iframe-rPhsLpUF.js";import{C as p,u as x,a as y}from"./react-three-fiber.esm-A61ChP7H.js";import{n as g}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const S=e=>(e=e.replace("#",""),[parseInt(e.slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255]),C=`
|
|
2
2
|
varying vec2 vUv;
|
|
3
3
|
varying vec3 vPosition;
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1yktd_1{position:relative;background:transparent;padding:var(--spacing-lg) 0}._header_1yktd_7{display:flex;flex-direction:column;gap:4px;margin-bottom:var(--spacing-lg);padding-left:64px}._eyebrow_1yktd_15{font-family:var(--font-family-mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--color-text-tertiary)}._title_1yktd_23{margin:0;font-family:var(--font-family-primary);font-weight:400;font-size:22px;line-height:1.1;color:var(--color-text);letter-spacing:-.01em}._title_1yktd_23 em{font-style:italic;color:var(--color-accent)}._chart_1yktd_38{display:block;overflow:visible}._gridLine_1yktd_43{stroke:var(--color-border);stroke-width:1;stroke-opacity:.35;stroke-dasharray:1 4}._gridLineAccent_1yktd_50{stroke-opacity:.55;stroke-dasharray:none}._sleepBar_1yktd_55{transition:opacity .2s ease}._sleepBarHover_1yktd_59 ._squiggle_1yktd_59{stroke-opacity:1;filter:brightness(1.1)}._squiggle_1yktd_59{fill:none;stroke:var(--color-accent);stroke-opacity:.85;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:stroke-opacity .18s ease,filter .18s ease}._endpoint_1yktd_76{pointer-events:none}._endpointSleep_1yktd_80{fill:var(--color-accent)}._endpointWake_1yktd_84{fill:var(--color-primary)}._xAxis_1yktd_88 text,._yAxis_1yktd_89 text{fill:var(--color-text-tertiary);font-family:var(--font-family-mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase}._xAxis_1yktd_88 line,._yAxis_1yktd_89 line{stroke:var(--color-border)}._tooltip_1yktd_103{position:fixed;pointer-events:none;background:var(--color-background);border:1px dashed var(--color-border);border-radius:var(--radius-sm);padding:10px 14px;z-index:10000;transform:translate(-50%,-100%);opacity:0;transition:opacity .12s ease;min-width:160px}._visible_1yktd_117{opacity:1}._tooltipDate_1yktd_121{font-family:var(--font-family-mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--color-text-tertiary);padding-bottom:6px;margin-bottom:8px;border-bottom:1px dashed var(--color-border)}._tooltipBody_1yktd_132{display:flex;flex-direction:column;gap:4px}._tooltipRow_1yktd_138{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-family:var(--font-family-primary);font-size:13px;color:var(--color-text)}._tooltipRow_1yktd_138 em{font-style:italic;font-weight:400;color:var(--color-text-secondary);font-size:12.5px}._tooltipRow_1yktd_138 time{font-family:var(--font-family-mono);font-size:12px;color:var(--color-text);letter-spacing:.06em}._tooltipTotal_1yktd_162{margin-top:4px;padding-top:6px;border-top:1px dashed var(--color-border)}._tooltipTotal_1yktd_162 em{color:var(--color-accent)}._tooltipTotal_1yktd_162 time{color:var(--color-accent)}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import{r as x,j as n}from"./iframe-rPhsLpUF.js";import{s as B,e as L}from"./transform-QOf3tDlt.js";import{l as it}from"./linear-DhrdWH9x.js";import{b as dt,r as q}from"./band-BYy0bT_S.js";import{a as ct,b as pt}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";const ht="_container_1yktd_1",mt="_header_1yktd_7",ut="_eyebrow_1yktd_15",gt="_title_1yktd_23",ft="_chart_1yktd_38",_t="_gridLine_1yktd_43",Mt="_gridLineAccent_1yktd_50",St="_sleepBar_1yktd_55",yt="_sleepBarHover_1yktd_59",kt="_squiggle_1yktd_59",xt="_endpoint_1yktd_76",$t="_endpointSleep_1yktd_80",wt="_endpointWake_1yktd_84",vt="_xAxis_1yktd_88",bt="_yAxis_1yktd_89",Dt="_tooltip_1yktd_103",Tt="_visible_1yktd_117",At="_tooltipDate_1yktd_121",Ht="_tooltipBody_1yktd_132",jt="_tooltipRow_1yktd_138",Bt="_tooltipTotal_1yktd_162",a={container:ht,header:mt,eyebrow:ut,title:gt,chart:ft,gridLine:_t,gridLineAccent:Mt,sleepBar:St,sleepBarHover:yt,squiggle:kt,endpoint:xt,endpointSleep:$t,endpointWake:wt,xAxis:vt,yAxis:bt,tooltip:Dt,visible:Tt,tooltipDate:At,tooltipBody:Ht,tooltipRow:jt,tooltipTotal:Bt},I=t=>{const[o,r]=t.split(":").map(Number);return o+r/60},O=t=>{const o=Math.floor(t%24),r=Math.round(t%1*60);return`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`},Lt=t=>{const o=Math.floor(t),r=Math.round(t%1*60);return`${o}h ${r.toString().padStart(2,"0")}m`},Rt=(t,o,r,l,p)=>{const i=Math.max(0,o-t);if(i===0)return`M ${t} ${r}`;const g=Math.max(1,Math.round(i/p)),h=i/(g*2);let k=`M ${t} ${r}`;for(let m=0;m<g*2;m++){const f=t+(m+.5)*h,S=r+(m%2===0?-l:l),u=t+(m+1)*h;k+=` Q ${f} ${S} ${u} ${r}`}return k},at=({sleepData:t,width:o=800,height:r=400,onDateClick:l})=>{const p=x.useRef(null),[i,g]=x.useState(null),h=x.useMemo(()=>({top:12,right:16,bottom:32,left:64}),[]),k=o-h.left-h.right,m=r-h.top-h.bottom;return x.useEffect(()=>{const f=()=>g(null);return window.addEventListener("scroll",f,!0),()=>window.removeEventListener("scroll",f,!0)},[]),x.useEffect(()=>{if(!p.current||t.length===0)return;const f=B(p.current);f.selectAll("*").remove(),f.append("rect").attr("width",o).attr("height",r).attr("fill","transparent").style("pointer-events","all").on("mouseleave",()=>g(null));const S=f.append("g").attr("transform",`translate(${h.left},${h.top})`),u=it().domain([18,42]).range([0,k]),H=t.map(e=>e.date),j=dt().domain(H).range([0,m]).paddingInner(.35).paddingOuter(.1);S.selectAll(".grid-line-x").data(q(18,43,3)).enter().append("line").attr("class",a.gridLine).attr("x1",e=>u(e)).attr("y1",0).attr("x2",e=>u(e)).attr("y2",m).classed(a.gridLineAccent,e=>{const s=e%24;return s===0||s===12}),t.forEach(e=>{const s=j(e.date);if(s===void 0)return;const y=j.bandwidth(),$=S.append("g").attr("class",a.sleepBar).style("cursor",l?"pointer":"default").on("click",()=>l==null?void 0:l(e.date));let d=null,c=null;if(e.sleep_time&&(d=I(e.sleep_time),d<18&&(d+=24)),e.wake_hour&&(c=I(e.wake_hour),d!==null?(c<d||d>=18&&c<18)&&(c+=24):c<12&&(c+=24)),d!==null&&c!==null){const _=u(d),M=u(c),nt=s+y/2,st=Math.min(y/2.2,7),lt=Rt(_,M,nt,st,14),N=$.append("path").attr("class",a.squiggle).attr("d",lt).attr("fill","none"),E=N.node(),W=typeof E.getTotalLength=="function"?E.getTotalLength():(M-_)*1.8;N.attr("stroke-dasharray",W).attr("stroke-dashoffset",W).transition().duration(540).ease(L).attr("stroke-dashoffset",0)}d!==null&&$.append("circle").attr("class",`${a.endpoint} ${a.endpointSleep}`).attr("cx",u(d)).attr("cy",s+y/2).attr("r",0).transition().duration(280).delay(160).ease(L).attr("r",3.5),c!==null&&$.append("circle").attr("class",`${a.endpoint} ${a.endpointWake}`).attr("cx",u(c)).attr("cy",s+y/2).attr("r",0).transition().duration(280).delay(220).ease(L).attr("r",3.5),$.on("mouseenter",function(_){B(this).classed(a.sleepBarHover,!0);const M=d!==null&&c!==null?c-d:null;g({date:e.date,sleepTime:d!==null?O(d):null,wakeTime:c!==null?O(c):null,duration:M!==null?Math.round(M*100)/100:null,x:_.pageX,y:_.pageY-12})}).on("mouseleave",function(){B(this).classed(a.sleepBarHover,!1),g(null)}).on("mousemove",function(_){g(M=>M?{...M,x:_.pageX,y:_.pageY-12}:null)})});const R=q(18,43,3).map(e=>({value:e,label:`${(e%24).toString().padStart(2,"0")}:00`}));S.append("g").attr("class",a.xAxis).attr("transform",`translate(0,${m})`).call(ct(u).tickValues(R.map(e=>e.value)).tickFormat(e=>{const s=R.find(y=>y.value===e);return s?s.label:""}).tickSize(0).tickPadding(10)).select(".domain").remove();const ot=Math.max(1,Math.ceil(H.length/8)),rt=H.filter((e,s)=>s%ot===0);S.append("g").attr("class",a.yAxis).call(pt(j).tickValues(rt).tickFormat(e=>{const s=new Date(e);return`${(s.getMonth()+1).toString().padStart(2,"0")}/${s.getDate().toString().padStart(2,"0")}`}).tickSize(0).tickPadding(12)).select(".domain").remove()},[t,k,m,h,l,r,o]),n.jsxs("div",{className:a.container,children:[n.jsxs("header",{className:a.header,children:[n.jsx("span",{className:a.eyebrow,children:"the night"}),n.jsxs("h3",{className:a.title,children:[n.jsx("em",{children:"Sleep"})," pattern"]})]}),n.jsx("svg",{ref:p,width:o,height:r,className:a.chart}),i&&n.jsxs("div",{className:`${a.tooltip} ${a.visible}`,style:{left:`${i.x}px`,top:`${i.y}px`},children:[n.jsx("div",{className:a.tooltipDate,children:new Date(i.date).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})}),n.jsxs("div",{className:a.tooltipBody,children:[i.sleepTime&&n.jsxs("div",{className:a.tooltipRow,children:[n.jsx("em",{children:"sleep"}),n.jsx("time",{children:i.sleepTime})]}),i.wakeTime&&n.jsxs("div",{className:a.tooltipRow,children:[n.jsx("em",{children:"wake"}),n.jsx("time",{children:i.wakeTime})]}),i.duration!==null&&n.jsxs("div",{className:`${a.tooltipRow} ${a.tooltipTotal}`,children:[n.jsx("em",{children:"total"}),n.jsx("time",{children:Lt(i.duration)})]})]})]})]})};at.__docgenInfo={description:"",methods:[],displayName:"SleepChart",props:{sleepData:{required:!0,tsType:{name:"Array",elements:[{name:"SleepData"}],raw:"SleepData[]"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"800",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"400",computed:!1}},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""}}};const Ft={title:"Organisms/Charts/SleepChart",component:at,parameters:{layout:"centered"},argTypes:{width:{control:{type:"number",min:400,max:1200,step:50}},height:{control:{type:"number",min:200,max:600,step:50}},onDateClick:{action:"dateClicked"}}},A=t=>{const o=[],r=new Date;for(let l=t-1;l>=0;l--){const p=new Date(r);p.setDate(p.getDate()-l),o.push(p.toISOString().split("T")[0])}return o},w={args:{sleepData:A(7).map(t=>{const o=Math.floor(Math.random()*3)+22,r=Math.floor(Math.random()*3)+6;return{date:t,sleep_time:`${o%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${r}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:800,height:400}},v={args:{sleepData:A(30).map(t=>({date:t,sleep_time:`${(Math.floor(Math.random()*3)+22)%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${Math.floor(Math.random()*2)+7}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`})),width:900,height:400}},b={args:{sleepData:A(14).map((t,o)=>{const r=o%7===5||o%7===6,l=r?Math.floor(Math.random()*4)+24:Math.floor(Math.random()*2)+22,p=r?Math.floor(Math.random()*3)+9:Math.floor(Math.random()*2)+6;return{date:t,sleep_time:`${l%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${p}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:850,height:400}},D={args:{sleepData:A(14).map((t,o)=>({date:t,sleep_time:o%3===0?null:`${(Math.floor(Math.random()*3)+22)%24}:30`,wake_hour:o%3===0?null:`${Math.floor(Math.random()*2)+7}:00`})),width:800,height:400}},T={args:{sleepData:[],width:800,height:400}};var V,P,z;w.parameters={...w.parameters,docs:{...(V=w.parameters)==null?void 0:V.docs,source:{originalSource:`{
|
|
2
|
+
args: {
|
|
3
|
+
sleepData: generateDateRange(7).map(date => {
|
|
4
|
+
const bedHour = Math.floor(Math.random() * 3) + 22;
|
|
5
|
+
const wakeHour = Math.floor(Math.random() * 3) + 6;
|
|
6
|
+
return {
|
|
7
|
+
date,
|
|
8
|
+
sleep_time: \`\${bedHour % 24}:\${Math.floor(Math.random() * 60).toString().padStart(2, '0')}\`,
|
|
9
|
+
wake_hour: \`\${wakeHour}:\${Math.floor(Math.random() * 60).toString().padStart(2, '0')}\`
|
|
10
|
+
};
|
|
11
|
+
}),
|
|
12
|
+
width: 800,
|
|
13
|
+
height: 400
|
|
14
|
+
}
|
|
15
|
+
}`,...(z=(P=w.parameters)==null?void 0:P.docs)==null?void 0:z.source}}};var F,X,Y;v.parameters={...v.parameters,docs:{...(F=v.parameters)==null?void 0:F.docs,source:{originalSource:`{
|
|
16
|
+
args: {
|
|
17
|
+
sleepData: generateDateRange(30).map(date => ({
|
|
18
|
+
date,
|
|
19
|
+
sleep_time: \`\${(Math.floor(Math.random() * 3) + 22) % 24}:\${Math.floor(Math.random() * 60).toString().padStart(2, '0')}\`,
|
|
20
|
+
wake_hour: \`\${Math.floor(Math.random() * 2) + 7}:\${Math.floor(Math.random() * 60).toString().padStart(2, '0')}\`
|
|
21
|
+
})),
|
|
22
|
+
width: 900,
|
|
23
|
+
height: 400
|
|
24
|
+
}
|
|
25
|
+
}`,...(Y=(X=v.parameters)==null?void 0:X.docs)==null?void 0:Y.source}}};var C,G,Q;b.parameters={...b.parameters,docs:{...(C=b.parameters)==null?void 0:C.docs,source:{originalSource:`{
|
|
26
|
+
args: {
|
|
27
|
+
sleepData: generateDateRange(14).map((date, i) => {
|
|
28
|
+
// Simulate irregular sleep pattern
|
|
29
|
+
const isWeekend = i % 7 === 5 || i % 7 === 6;
|
|
30
|
+
const bedHour = isWeekend ? Math.floor(Math.random() * 4) + 24 : Math.floor(Math.random() * 2) + 22;
|
|
31
|
+
const wakeHour = isWeekend ? Math.floor(Math.random() * 3) + 9 : Math.floor(Math.random() * 2) + 6;
|
|
32
|
+
return {
|
|
33
|
+
date,
|
|
34
|
+
sleep_time: \`\${bedHour % 24}:\${Math.floor(Math.random() * 60).toString().padStart(2, '0')}\`,
|
|
35
|
+
wake_hour: \`\${wakeHour}:\${Math.floor(Math.random() * 60).toString().padStart(2, '0')}\`
|
|
36
|
+
};
|
|
37
|
+
}),
|
|
38
|
+
width: 850,
|
|
39
|
+
height: 400
|
|
40
|
+
}
|
|
41
|
+
}`,...(Q=(G=b.parameters)==null?void 0:G.docs)==null?void 0:Q.source}}};var U,J,K;D.parameters={...D.parameters,docs:{...(U=D.parameters)==null?void 0:U.docs,source:{originalSource:`{
|
|
42
|
+
args: {
|
|
43
|
+
sleepData: generateDateRange(14).map((date, i) => ({
|
|
44
|
+
date,
|
|
45
|
+
// Some days have missing data
|
|
46
|
+
sleep_time: i % 3 === 0 ? null : \`\${(Math.floor(Math.random() * 3) + 22) % 24}:30\`,
|
|
47
|
+
wake_hour: i % 3 === 0 ? null : \`\${Math.floor(Math.random() * 2) + 7}:00\`
|
|
48
|
+
})),
|
|
49
|
+
width: 800,
|
|
50
|
+
height: 400
|
|
51
|
+
}
|
|
52
|
+
}`,...(K=(J=D.parameters)==null?void 0:J.docs)==null?void 0:K.source}}};var Z,tt,et;T.parameters={...T.parameters,docs:{...(Z=T.parameters)==null?void 0:Z.docs,source:{originalSource:`{
|
|
53
|
+
args: {
|
|
54
|
+
sleepData: [],
|
|
55
|
+
width: 800,
|
|
56
|
+
height: 400
|
|
57
|
+
}
|
|
58
|
+
}`,...(et=(tt=T.parameters)==null?void 0:tt.docs)==null?void 0:et.source}}};const Xt=["WeeklySleep","MonthlySleep","IrregularSleep","MissingSleepData","EmptyState"];export{T as EmptyState,b as IrregularSleep,D as MissingSleepData,v as MonthlySleep,w as WeeklySleep,Xt as __namedExportsOrder,Ft as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as U,j as t}from"./iframe-rPhsLpUF.js";import{u as G}from"./useSound-CISJumm6.js";import{m as V}from"./proxy-uJ8evSzT.js";import{A as H}from"./index-B9UM6a_o.js";const J="_slider_1d1ne_2",K="_label_1d1ne_14",Q="_sliderContainer_1d1ne_22",W="_track_1d1ne_32",X="_dragging_1d1ne_43",Y="_fill_1d1ne_48",Z="_input_1d1ne_55",ee="_thumb_1d1ne_105",te="_tooltip_1d1ne_130",ae="_tooltipArrow_1d1ne_145",ne="_valueDisplay_1d1ne_158",se="_labelsContainer_1d1ne_170",re="_labelItem_1d1ne_177",ie="_dotsContainer_1d1ne_191",oe="_dot_1d1ne_191",le="_dotFilled_1d1ne_223",de="_size-sm_1d1ne_228",ce="_size-lg_1d1ne_233",ue="_disabled_1d1ne_261",me="_loading_1d1ne_273",pe="_loadingTrack_1d1ne_278",fe="_loadingIndicator_1d1ne_287",e={slider:J,label:K,sliderContainer:Q,track:W,dragging:X,fill:Y,input:Z,thumb:ee,tooltip:te,tooltipArrow:ae,valueDisplay:ne,labelsContainer:se,labelItem:re,dotsContainer:ie,dot:oe,dotFilled:le,"size-sm":"_size-sm_1d1ne_228",sizeSm:de,"size-lg":"_size-lg_1d1ne_233",sizeLg:ce,disabled:ue,loading:me,loadingTrack:pe,loadingIndicator:fe};function ge({value:n,onChange:k,min:o=0,max:d=100,step:p=1,label:i,showValue:T=!1,valueFormatter:f,labels:S=[],config:A={},disabled:l=!1,className:_="",style:y={},loading:g=!1,colorFunction:j,showTooltip:L=!1,tooltipContent:w,soundConfig:M,variant:P="track"}){const{handlers:$,playSound:N}=G(M),[q,z]=U.useState(!1),{colors:v={},size:R="md"}=A,b=Math.max(0,Math.min(100,(n-o)/(d-o)*100)),E=()=>j?j(n):v.fill?v.fill:"var(--color-primary)",h=a=>f?f(a):`${a}${d<=10?`/${d}`:""}`,F=a=>{if(l||g)return;const m=Number(a.target.value);N("click"),k(m)},O=()=>{l||g||z(!0)},C=()=>z(!1),r=E(),x=e[`size-${R}`],D=l?e.disabled:"",B=q?e.dragging:"";if(g)return t.jsxs("div",{className:`${e.slider} ${x} ${e.loading} ${_}`,style:y,children:[i&&t.jsx("label",{className:e.label,children:i}),t.jsx("div",{className:e.loadingTrack,children:t.jsx(V.div,{className:e.loadingIndicator,animate:{x:["-100%","200%"]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"}})})]});if(P==="dots"){const a=Math.max(0,Math.floor((d-o)/p)),m=Array.from({length:a},(s,u)=>o+(u+1)*p),c=s=>{if(l||g)return;N("click");const u=n===s?s-p:s;k(Math.max(o,u))};return t.jsxs("div",{className:`${e.slider} ${x} ${D} ${_}`,style:y,...$,children:[i&&t.jsx("label",{className:e.label,children:i}),t.jsx("div",{className:e.dotsContainer,role:"slider","aria-valuemin":o,"aria-valuemax":d,"aria-valuenow":n,"aria-label":i,children:m.map(s=>{const u=s<=n;return t.jsx("button",{type:"button",className:`${e.dot} ${u?e.dotFilled:""}`,style:u?{backgroundColor:r,borderColor:r}:void 0,onClick:()=>c(s),disabled:l,"aria-label":f?f(s):`Set to ${s}`},s)})}),T&&t.jsx("div",{className:e.valueDisplay,style:{color:r},children:h(n)})]})}const I={left:`${b}%`,marginLeft:`calc(var(--slider-thumb-size) * ${-b/100})`};return t.jsxs("div",{className:`${e.slider} ${x} ${D} ${B} ${_}`,style:y,children:[i&&t.jsx("label",{className:e.label,children:i}),t.jsxs("div",{className:e.sliderContainer,children:[t.jsx("div",{className:e.track,children:t.jsx("div",{className:e.fill,style:{width:`${b}%`,backgroundColor:r}})}),t.jsx("input",{type:"range",min:o,max:d,step:p,value:n,onChange:F,onPointerDown:O,onPointerUp:C,onPointerCancel:C,onBlur:C,...$,className:e.input,disabled:l,"aria-label":i}),t.jsx("div",{className:e.thumb,style:{...I,backgroundColor:r,borderColor:v.thumb||r}}),t.jsx(H,{children:L&&q&&!l&&t.jsxs(V.div,{className:e.tooltip,style:{...I,backgroundColor:r},initial:{opacity:0,y:6,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:6,scale:.9},transition:{duration:.15},children:[w?w(n):h(n),t.jsx("div",{className:e.tooltipArrow,style:{borderTopColor:r}})]})})]}),T&&t.jsx("div",{className:e.valueDisplay,style:{color:r},children:h(n)}),S.length>0&&t.jsx("div",{className:e.labelsContainer,children:S.map((a,m)=>{let c=0;return a.position==="start"?c=0:a.position==="end"?c=100:typeof a.position=="number"&&(c=a.position),t.jsx("div",{className:e.labelItem,style:{left:`${c}%`,color:a.color},children:a.label},m)})})]})}ge.__docgenInfo={description:`Slider component — responsive, accessible range input with a styled track, fill, and thumb.
|
|
2
|
+
|
|
3
|
+
The thumb is inset at the track endpoints so it never overflows. Drag state is tracked
|
|
4
|
+
via pointer events (works on mouse, touch, and pen).`,methods:[],displayName:"Slider",props:{value:{required:!0,tsType:{name:"number"},description:"Current slider value"},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: number) => void",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"void"}}},description:"Callback when value changes"},min:{required:!1,tsType:{name:"number"},description:"Minimum value",defaultValue:{value:"0",computed:!1}},max:{required:!1,tsType:{name:"number"},description:"Maximum value",defaultValue:{value:"100",computed:!1}},step:{required:!1,tsType:{name:"number"},description:"Step increment",defaultValue:{value:"1",computed:!1}},label:{required:!1,tsType:{name:"string"},description:"Optional label"},showValue:{required:!1,tsType:{name:"boolean"},description:"Show persistent value display below the track",defaultValue:{value:"false",computed:!1}},valueFormatter:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number) => string",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"string"}}},description:"Custom value formatter"},labels:{required:!1,tsType:{name:"Array",elements:[{name:"SliderLabel"}],raw:"SliderLabel[]"},description:"Labels for slider endpoints or custom positions",defaultValue:{value:"[]",computed:!1}},config:{required:!1,tsType:{name:"SliderConfig"},description:"Custom styling configuration",defaultValue:{value:"{}",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"Disabled state",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"Custom CSS class",defaultValue:{value:"''",computed:!1}},style:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:"Custom styles",defaultValue:{value:"{}",computed:!1}},loading:{required:!1,tsType:{name:"boolean"},description:"Loading state",defaultValue:{value:"false",computed:!1}},colorFunction:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number) => string",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"string"}}},description:"Color function for dynamic coloring"},showTooltip:{required:!1,tsType:{name:"boolean"},description:"Show a tooltip above the thumb while dragging",defaultValue:{value:"false",computed:!1}},tooltipContent:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number) => string",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"string"}}},description:"Custom tooltip content"},soundConfig:{required:!1,tsType:{name:"ComponentSoundConfig"},description:"Sound configuration for interactions"},variant:{required:!1,tsType:{name:"union",raw:"'track' | 'dots'",elements:[{name:"literal",value:"'track'"},{name:"literal",value:"'dots'"}]},description:"Visual variant: 'track' (default range slider) or 'dots' (tally strip)",defaultValue:{value:"'track'",computed:!1}}}};export{ge as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._slider_1d1ne_2{--slider-thumb-size: 20px;--slider-track-height: 6px;--slider-track-height-active: 7px;display:flex;flex-direction:column;gap:var(--spacing-xs);font-family:var(--font-family-primary);width:100%}._label_1d1ne_14{font-size:var(--font-size-sm);font-weight:500;color:var(--color-text);margin:0}._sliderContainer_1d1ne_22{position:relative;display:flex;align-items:center;width:100%;height:var(--slider-thumb-size);cursor:pointer}._track_1d1ne_32{position:absolute;left:0;right:0;height:var(--slider-track-height);background:var(--color-border);border-radius:calc(var(--slider-track-height) / 2);overflow:hidden;transition:height .12s ease}._slider_1d1ne_2._dragging_1d1ne_43 ._track_1d1ne_32{height:var(--slider-track-height-active)}._fill_1d1ne_48{height:100%;background:var(--color-primary);border-radius:inherit}._input_1d1ne_55{position:absolute;left:0;top:0;width:100%;height:100%;background:transparent;-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none;margin:0;padding:0;z-index:2}._input_1d1ne_55:focus,._input_1d1ne_55:active{outline:none}._input_1d1ne_55::-webkit-slider-thumb{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:var(--slider-thumb-size);height:var(--slider-thumb-size);background:transparent;border:none;cursor:pointer}._input_1d1ne_55::-moz-range-thumb{width:var(--slider-thumb-size);height:var(--slider-thumb-size);background:transparent;border:none;cursor:pointer}._input_1d1ne_55::-webkit-slider-runnable-track{background:transparent;border:none}._input_1d1ne_55::-moz-range-track{background:transparent;border:none}._thumb_1d1ne_105{position:absolute;top:50%;width:var(--slider-thumb-size);height:var(--slider-thumb-size);background:var(--color-primary);border:2px solid var(--color-background);border-radius:50%;transform:translateY(-50%);pointer-events:none;z-index:3;box-shadow:0 1px 3px #0003;transition:box-shadow .15s ease,width .15s ease,height .15s ease}._slider_1d1ne_2._dragging_1d1ne_43 ._thumb_1d1ne_105{width:calc(var(--slider-thumb-size) * 1.2);height:calc(var(--slider-thumb-size) * 1.2);box-shadow:0 2px 10px #00000040}._tooltip_1d1ne_130{position:absolute;bottom:calc(100% + 8px);padding:4px 8px;background:var(--color-primary);color:var(--color-text-inverse);font-size:var(--font-size-xs);font-weight:600;border-radius:var(--radius-sm);white-space:nowrap;z-index:10;box-shadow:var(--shadow-md);pointer-events:none}._tooltipArrow_1d1ne_145{position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--color-primary)}._valueDisplay_1d1ne_158{font-size:var(--font-size-sm);font-weight:600;color:var(--color-primary);text-align:center;min-height:18px;display:flex;align-items:center;justify-content:center}._labelsContainer_1d1ne_170{position:relative;width:100%;height:20px;margin-top:var(--spacing-xs)}._labelItem_1d1ne_177{position:absolute;transform:translate(-50%);font-size:var(--font-size-sm);color:var(--color-text-secondary);-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px}._dotsContainer_1d1ne_191{--slider-dot-height: 16px;display:flex;align-items:center;gap:6px;width:100%;padding:4px 0}._dot_1d1ne_191{flex:1 1 0;min-width:0;height:var(--slider-dot-height);border-radius:var(--radius-full);border:1.5px solid var(--color-border);background:transparent;padding:0;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,opacity .12s ease}._dot_1d1ne_191:hover:not(:disabled){border-color:var(--color-primary)}._dot_1d1ne_191:disabled{cursor:not-allowed}._dotFilled_1d1ne_223{background:var(--color-primary);border-color:var(--color-primary)}._size-sm_1d1ne_228 ._dotsContainer_1d1ne_191{--slider-dot-height: 12px;gap:5px}._size-lg_1d1ne_233 ._dotsContainer_1d1ne_191{--slider-dot-height: 20px;gap:8px}@media (max-width: 768px){._dotsContainer_1d1ne_191{--slider-dot-height: 18px;gap:6px}}._size-sm_1d1ne_228{--slider-thumb-size: 16px;--slider-track-height: 4px;--slider-track-height-active: 5px;font-size:var(--font-size-xs)}._size-lg_1d1ne_233{--slider-thumb-size: 24px;--slider-track-height: 8px;--slider-track-height-active: 10px;font-size:var(--font-size-lg)}._disabled_1d1ne_261{opacity:.5;pointer-events:none;cursor:not-allowed}._disabled_1d1ne_261 ._sliderContainer_1d1ne_22,._disabled_1d1ne_261 ._thumb_1d1ne_105{cursor:not-allowed}._loading_1d1ne_273{opacity:.7;pointer-events:none}._loadingTrack_1d1ne_278{position:relative;width:100%;height:var(--slider-track-height);background:var(--color-border);border-radius:calc(var(--slider-track-height) / 2);overflow:hidden}._loadingIndicator_1d1ne_287{position:absolute;top:0;left:0;width:30%;height:100%;background:linear-gradient(90deg,transparent,var(--color-primary),transparent);border-radius:inherit}._input_1d1ne_55:focus-visible~._thumb_1d1ne_105{box-shadow:0 0 0 2px var(--color-background),0 0 0 4px var(--color-primary)}@media (prefers-color-scheme: dark){._track_1d1ne_32{box-shadow:inset 0 1px 2px #0000004d}._thumb_1d1ne_105{box-shadow:0 1px 4px #00000080,0 0 0 1px #ffffff1a}._slider_1d1ne_2._dragging_1d1ne_43 ._thumb_1d1ne_105{box-shadow:0 2px 10px #00000080,0 0 0 1px #ffffff26}}@media (prefers-contrast: high){._track_1d1ne_32{border:1px solid var(--color-text)}._thumb_1d1ne_105{border-color:var(--color-text)}._fill_1d1ne_48{border:1px solid var(--color-text)}}@media (max-width: 768px){._slider_1d1ne_2{--slider-thumb-size: 22px}._size-sm_1d1ne_228{--slider-thumb-size: 18px}._size-lg_1d1ne_233{--slider-thumb-size: 26px}._labelItem_1d1ne_177{min-width:24px;height:24px;font-size:var(--font-size-sm)}}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import{r as k,j as i}from"./iframe-rPhsLpUF.js";import{S as y}from"./Slider-BmG0iCoC.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-CISJumm6.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./index-B9UM6a_o.js";const R={title:"Atoms/Slider",component:y,parameters:{layout:"centered",docs:{description:{component:"An animated slider component with customizable styling, labels, and dynamic coloring."}}},argTypes:{value:{control:"number"},min:{control:"number"},max:{control:"number"},step:{control:"number"},label:{control:"text"},showValue:{control:"boolean"},showTooltip:{control:"boolean"},disabled:{control:"boolean"},loading:{control:"boolean"},variant:{control:"inline-radio",options:["track","dots"]},config:{control:"object"}}},n=e=>{const[r,V]=k.useState(e.value||50);return i.jsx("div",{style:{width:"300px",padding:"20px"},children:i.jsx(y,{...e,value:r,onChange:V})})},a={render:n,args:{min:0,max:100,step:1,label:"Default Slider",showValue:!0}},o={render:n,args:{min:1,max:10,value:7,label:"Rating",showValue:!0,labels:[{label:":(",position:"start"},{label:":|",position:50},{label:":)",position:"end"}],colorFunction:e=>e<=3?"#ff4444":e<=6?"#ffa500":"#4caf50",valueFormatter:e=>`${e}/10`}},t={render:n,args:{min:-10,max:40,value:22,step:.5,label:"Temperature",showValue:!0,showTooltip:!0,colorFunction:e=>{const r=(e+10)/50;return r<.3?"#4fc3f7":r<.7?"#66bb6a":"#ff7043"},valueFormatter:e=>`${e} C`}},l={render:n,args:{min:1,max:5,value:3,label:"How are you feeling?",showValue:!0,labels:[{label:"Terrible",position:"start"},{label:"Okay",position:50},{label:"Great",position:"end"}],colorFunction:e=>{const r=["#f44336","#ff9800","#ffc107","#4caf50","#2196f3"];return r[e-1]||r[2]},valueFormatter:e=>["Terrible","Bad","Okay","Good","Great"][e-1]||"Okay",config:{size:"lg"}}},s={render:n,args:{variant:"dots",min:0,max:8,value:3,step:1,label:"Glasses of water",showValue:!0,valueFormatter:e=>`${e} / 8`}};var u,c,m;a.parameters={...a.parameters,docs:{...(u=a.parameters)==null?void 0:u.docs,source:{originalSource:`{
|
|
2
|
+
render: InteractiveSlider,
|
|
3
|
+
args: {
|
|
4
|
+
min: 0,
|
|
5
|
+
max: 100,
|
|
6
|
+
step: 1,
|
|
7
|
+
label: 'Default Slider',
|
|
8
|
+
showValue: true
|
|
9
|
+
}
|
|
10
|
+
}`,...(m=(c=a.parameters)==null?void 0:c.docs)==null?void 0:m.source}}};var d,p,b;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`{
|
|
11
|
+
render: InteractiveSlider,
|
|
12
|
+
args: {
|
|
13
|
+
min: 1,
|
|
14
|
+
max: 10,
|
|
15
|
+
value: 7,
|
|
16
|
+
label: 'Rating',
|
|
17
|
+
showValue: true,
|
|
18
|
+
labels: [{
|
|
19
|
+
label: ':(',
|
|
20
|
+
position: 'start'
|
|
21
|
+
}, {
|
|
22
|
+
label: ':|',
|
|
23
|
+
position: 50
|
|
24
|
+
}, {
|
|
25
|
+
label: ':)',
|
|
26
|
+
position: 'end'
|
|
27
|
+
}],
|
|
28
|
+
colorFunction: (val: number) => {
|
|
29
|
+
if (val <= 3) return '#ff4444';
|
|
30
|
+
if (val <= 6) return '#ffa500';
|
|
31
|
+
return '#4caf50';
|
|
32
|
+
},
|
|
33
|
+
valueFormatter: (val: number) => \`\${val}/10\`
|
|
34
|
+
}
|
|
35
|
+
}`,...(b=(p=o.parameters)==null?void 0:p.docs)==null?void 0:b.source}}};var f,v,g;t.parameters={...t.parameters,docs:{...(f=t.parameters)==null?void 0:f.docs,source:{originalSource:`{
|
|
36
|
+
render: InteractiveSlider,
|
|
37
|
+
args: {
|
|
38
|
+
min: -10,
|
|
39
|
+
max: 40,
|
|
40
|
+
value: 22,
|
|
41
|
+
step: 0.5,
|
|
42
|
+
label: 'Temperature',
|
|
43
|
+
showValue: true,
|
|
44
|
+
showTooltip: true,
|
|
45
|
+
colorFunction: (val: number) => {
|
|
46
|
+
const normalized = (val + 10) / 50;
|
|
47
|
+
if (normalized < 0.3) return '#4fc3f7';
|
|
48
|
+
if (normalized < 0.7) return '#66bb6a';
|
|
49
|
+
return '#ff7043';
|
|
50
|
+
},
|
|
51
|
+
valueFormatter: (val: number) => \`\${val} C\`
|
|
52
|
+
}
|
|
53
|
+
}`,...(g=(v=t.parameters)==null?void 0:v.docs)==null?void 0:g.source}}};var x,w,h;l.parameters={...l.parameters,docs:{...(x=l.parameters)==null?void 0:x.docs,source:{originalSource:`{
|
|
54
|
+
render: InteractiveSlider,
|
|
55
|
+
args: {
|
|
56
|
+
min: 1,
|
|
57
|
+
max: 5,
|
|
58
|
+
value: 3,
|
|
59
|
+
label: 'How are you feeling?',
|
|
60
|
+
showValue: true,
|
|
61
|
+
labels: [{
|
|
62
|
+
label: 'Terrible',
|
|
63
|
+
position: 'start'
|
|
64
|
+
}, {
|
|
65
|
+
label: 'Okay',
|
|
66
|
+
position: 50
|
|
67
|
+
}, {
|
|
68
|
+
label: 'Great',
|
|
69
|
+
position: 'end'
|
|
70
|
+
}],
|
|
71
|
+
colorFunction: (val: number) => {
|
|
72
|
+
const colors = ['#f44336', '#ff9800', '#ffc107', '#4caf50', '#2196f3'];
|
|
73
|
+
return colors[val - 1] || colors[2];
|
|
74
|
+
},
|
|
75
|
+
valueFormatter: (val: number) => {
|
|
76
|
+
const moods = ['Terrible', 'Bad', 'Okay', 'Good', 'Great'];
|
|
77
|
+
return moods[val - 1] || 'Okay';
|
|
78
|
+
},
|
|
79
|
+
config: {
|
|
80
|
+
size: 'lg'
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}`,...(h=(w=l.parameters)==null?void 0:w.docs)==null?void 0:h.source}}};var S,F,T;s.parameters={...s.parameters,docs:{...(S=s.parameters)==null?void 0:S.docs,source:{originalSource:`{
|
|
84
|
+
render: InteractiveSlider,
|
|
85
|
+
args: {
|
|
86
|
+
variant: 'dots',
|
|
87
|
+
min: 0,
|
|
88
|
+
max: 8,
|
|
89
|
+
value: 3,
|
|
90
|
+
step: 1,
|
|
91
|
+
label: 'Glasses of water',
|
|
92
|
+
showValue: true,
|
|
93
|
+
valueFormatter: (val: number) => \`\${val} / 8\`
|
|
94
|
+
}
|
|
95
|
+
}`,...(T=(F=s.parameters)==null?void 0:F.docs)==null?void 0:T.source}}};const C=["Default","Rating","Temperature","MoodTracker","Dots"];export{a as Default,s as Dots,l as MoodTracker,o as Rating,t as Temperature,C as __namedExportsOrder,R as default};
|
package/storybook-static/assets/{SoftAurora.stories-Dlak_U90.js → SoftAurora.stories-BubrO6U4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as E,j as D}from"./iframe-
|
|
1
|
+
import{r as E,j as D}from"./iframe-rPhsLpUF.js";import{R as I,P as O,M as N}from"./Mesh-CwXV3WjE.js";import{T as G}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const P={"soft-aurora-container":"_soft-aurora-container_c4lp8_1"};function H(r){const t=r.replace("#","");return[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255]}const U=`
|
|
2
2
|
attribute vec2 uv;
|
|
3
3
|
attribute vec2 position;
|
|
4
4
|
varying vec2 vUv;
|
package/storybook-static/assets/{SoundDemo.stories-CMmdiHNZ.js → SoundDemo.stories-CDXr3mFW.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{j as e,r as s,R as d}from"./iframe-
|
|
1
|
+
import{j as e,r as s,R as d}from"./iframe-rPhsLpUF.js";import{B as t}from"./Button-6nmyMGc3.js";import{C as c}from"./Checkbox-xrie0yDX.js";import{T}from"./TextInput-46C4j_hq.js";import{T as w}from"./Toggle-BbWuVStR.js";import{S as E}from"./Slider-BmG0iCoC.js";import{s as n}from"./useSound-CISJumm6.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./index-B9UM6a_o.js";const x=()=>{const[r,g]=s.useState(!0),[i,p]=s.useState(.5),[l,j]=s.useState("digital"),[v,y]=s.useState(!1),[S,f]=s.useState(!1),[C,k]=s.useState(""),[b,B]=s.useState(50);return d.useEffect(()=>{n.setEnabled(r)},[r]),d.useEffect(()=>{n.setVolume(i)},[i]),d.useEffect(()=>{n.setSoundPack(l)},[l]),e.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"0 auto"},children:[e.jsx("h1",{children:"🎵 Sound System Demo"}),e.jsxs("div",{style:{padding:"1.5rem",background:"#f5f5f5",borderRadius:"8px",marginBottom:"2rem"},children:[e.jsx("h2",{children:"Sound Controls"}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(c,{checked:r,onChange:g,label:"Enable Sounds"})}),e.jsxs("div",{style:{marginBottom:"1rem"},children:[e.jsxs("label",{children:["Volume: ",Math.round(i*100),"%"]}),e.jsx("input",{type:"range",min:"0",max:"100",value:i*100,onChange:a=>p(Number(a.target.value)/100),style:{width:"100%",marginTop:"0.5rem"}})]}),e.jsxs("div",{style:{marginBottom:"1rem"},children:[e.jsx("label",{children:"Sound Pack: "}),e.jsxs("select",{value:l,onChange:a=>j(a.target.value),style:{marginLeft:"0.5rem",padding:"0.25rem"},children:[e.jsx("option",{value:"digital",children:"🔊 Digital (Clean & Modern)"}),e.jsx("option",{value:"fantasy",children:"🧙 Fantasy (Magical & Mystical)"}),e.jsx("option",{value:"retro",children:"🎮 Retro (8-bit Gaming)"}),e.jsx("option",{value:"minimal",children:"⚪ Minimal (Subtle & Simple)"}),e.jsx("option",{value:"mechanical",children:"⚙️ Mechanical (Industrial)"})]})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Test Individual Sounds"}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[e.jsx(t,{variant:"primary",size:"small",onClick:()=>n.play("click"),children:"Click Sound"}),e.jsx(t,{variant:"secondary",size:"small",onClick:()=>n.play("hover"),children:"Hover Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("success"),children:"Success Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("error"),children:"Error Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("warning"),children:"Warning Sound"}),e.jsx(t,{variant:"secondary",size:"small",onClick:()=>n.play("toggle"),children:"Toggle Sound"}),e.jsx(t,{variant:"ghost",size:"small",onClick:()=>n.play("type"),children:"Type Sound"}),e.jsx(t,{variant:"ghost",size:"small",onClick:()=>n.play("delete"),children:"Delete Sound"})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Special Effects"}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[e.jsx(t,{variant:"primary",onClick:()=>n.celebration(),children:"🎉 Celebration"}),e.jsx(t,{variant:"secondary",onClick:()=>n.milestone(),children:"⭐ Milestone"})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Components with Sound Integration"}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Button with Sounds"}),e.jsx(t,{variant:"primary",soundConfig:{onClick:!0,onHover:!0},children:"Interactive Button (hover, click)"})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Checkbox with Sound"}),e.jsx(c,{checked:v,onChange:y,label:"Check me!",soundConfig:{onClick:!0}})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Toggle with Sound"}),e.jsx(w,{isOn:S,onToggle:f,leftLabel:"Off",rightLabel:"On",soundConfig:{onClick:!0}})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Input with Sound"}),e.jsx(T,{label:"Type something",value:C,onChange:k,placeholder:"Type to hear typing sounds",enableTypingSounds:!0})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Slider with Sound"}),e.jsx(E,{value:b,onChange:B,min:0,max:100,label:"Adjust me",soundConfig:{onClick:!0}})]})]}),e.jsxs("div",{style:{padding:"1rem",background:"#e8f4f8",borderRadius:"8px",fontSize:"0.9rem"},children:[e.jsx("h3",{children:"ℹ️ How to Use"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Enable sounds using the checkbox above"}),e.jsx("li",{children:"Adjust volume with the slider"}),e.jsx("li",{children:"Click the test buttons to hear individual sounds"}),e.jsx("li",{children:"Interact with the components below to hear sounds in context"}),e.jsx("li",{children:"Note: AudioContext requires user interaction to start (click any button first)"})]})]})]})},L={title:"Atoms/SoundDemo",component:x,parameters:{layout:"fullscreen",docs:{description:{component:"Interactive demo for testing the sound system with Web Audio API"}}}},o={render:()=>e.jsx(x,{})};var m,u,h;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <SoundDemo />
|
|
3
3
|
}`,...(h=(u=o.parameters)==null?void 0:u.docs)==null?void 0:h.source}}};const N=["Default"];export{o as Default,N as __namedExportsOrder,L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as V,j as le}from"./iframe-
|
|
1
|
+
import{r as V,j as le}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";function ve({SIM_RESOLUTION:de=128,DYE_RESOLUTION:me=1440,CAPTURE_RESOLUTION:it=512,DENSITY_DISSIPATION:he=3.5,VELOCITY_DISSIPATION:xe=2,PRESSURE:Te=.1,PRESSURE_ITERATIONS:pe=20,CURL:Re=3,SPLAT_RADIUS:Ee=.2,SPLAT_FORCE:ge=6e3,SHADING:Se=!0,COLOR_UPDATE_SPEED:De=10,BACK_COLOR:ot={r:.5,g:0,b:0},TRANSPARENT:at=!0}){const H=V.useRef(null),U=V.useRef(null);return V.useEffect(()=>{const c=H.current;if(!c)return;let q=!0;function Ae(){this.id=-1,this.texcoordX=0,this.texcoordY=0,this.prevTexcoordX=0,this.prevTexcoordY=0,this.deltaX=0,this.deltaY=0,this.down=!1,this.moved=!1,this.color=[0,0,0]}let v={SIM_RESOLUTION:de,DYE_RESOLUTION:me,DENSITY_DISSIPATION:he,VELOCITY_DISSIPATION:xe,PRESSURE:Te,PRESSURE_ITERATIONS:pe,CURL:Re,SPLAT_RADIUS:Ee,SPLAT_FORCE:ge,SHADING:Se,COLOR_UPDATE_SPEED:De},_=[new Ae];const{gl:t,ext:E}=_e(c);E.supportLinearFiltering||(v.DYE_RESOLUTION=256,v.SHADING=!1);function _e(e){const r={alpha:!0,depth:!1,stencil:!1,antialias:!1,preserveDrawingBuffer:!1};let i=e.getContext("webgl2",r);const o=!!i;o||(i=e.getContext("webgl",r)||e.getContext("experimental-webgl",r));let a,n;o?(i.getExtension("EXT_color_buffer_float"),n=i.getExtension("OES_texture_float_linear")):(a=i.getExtension("OES_texture_half_float"),n=i.getExtension("OES_texture_half_float_linear")),i.clearColor(0,0,0,1);const u=o?i.HALF_FLOAT:a&&a.HALF_FLOAT_OES;let f,s,R;return o?(f=S(i,i.RGBA16F,i.RGBA,u),s=S(i,i.RG16F,i.RG,u),R=S(i,i.R16F,i.RED,u)):(f=S(i,i.RGBA,i.RGBA,u),s=S(i,i.RGBA,i.RGBA,u),R=S(i,i.RGBA,i.RGBA,u)),{gl:i,ext:{formatRGBA:f,formatRG:s,formatR:R,halfFloatTexType:u,supportLinearFiltering:n}}}function S(e,r,i,o){if(!ye(e,r,i,o))switch(r){case e.R16F:return S(e,e.RG16F,e.RG,o);case e.RG16F:return S(e,e.RGBA16F,e.RGBA,o);default:return null}return{internalFormat:r,format:i}}function ye(e,r,i,o){const a=e.createTexture();e.bindTexture(e.TEXTURE_2D,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texImage2D(e.TEXTURE_2D,0,r,4,4,0,i,o,null);const n=e.createFramebuffer();return e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a,0),e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE}class Fe{constructor(r,i){this.vertexShader=r,this.fragmentShaderSource=i,this.programs=[],this.activeProgram=null,this.uniforms=[]}setKeywords(r){let i=0;for(let a=0;a<r.length;a++)i+=rt(r[a]);let o=this.programs[i];if(o==null){let a=h(t.FRAGMENT_SHADER,this.fragmentShaderSource,r);o=W(this.vertexShader,a),this.programs[i]=o}o!==this.activeProgram&&(this.uniforms=k(o),this.activeProgram=o)}bind(){t.useProgram(this.activeProgram)}}class g{constructor(r,i){this.uniforms={},this.program=W(r,i),this.uniforms=k(this.program)}bind(){t.useProgram(this.program)}}function W(e,r){let i=t.createProgram();return t.attachShader(i,e),t.attachShader(i,r),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||console.trace(t.getProgramInfoLog(i)),i}function k(e){let r=[],i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS);for(let o=0;o<i;o++){let a=t.getActiveUniform(e,o).name;r[a]=t.getUniformLocation(e,a)}return r}function h(e,r,i){r=we(r,i);const o=t.createShader(e);return t.shaderSource(o,r),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS)||console.trace(t.getShaderInfoLog(o)),o}function we(e,r){if(!r)return e;let i="";return r.forEach(o=>{i+="#define "+o+`
|
|
2
2
|
`}),i+e}const T=h(t.VERTEX_SHADER,`
|
|
3
3
|
precision highp float;
|
|
4
4
|
attribute vec2 aPosition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,j as f}from"./iframe-
|
|
1
|
+
import{r as g,j as f}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";const h={"card-spotlight":"_card-spotlight_leen8_1"},n=({children:c,className:p="",spotlightColor:u="rgba(255, 255, 255, 0.25)"})=>{const e=g.useRef(null),d=o=>{const r=e.current.getBoundingClientRect(),i=o.clientX-r.left,m=o.clientY-r.top;e.current.style.setProperty("--mouse-x",`${i}px`),e.current.style.setProperty("--mouse-y",`${m}px`),e.current.style.setProperty("--spotlight-color",u)};return f.jsx("div",{ref:e,onMouseMove:d,className:`${h["card-spotlight"]} ${p}`,children:c})};n.__docgenInfo={description:"",methods:[],displayName:"SpotlightCard",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},spotlightColor:{defaultValue:{value:"'rgba(255, 255, 255, 0.25)'",computed:!1},required:!1}}};const C={title:"ReactBits/Components/SpotlightCard",component:n,parameters:{layout:"fullscreen"}},t={args:{children:"Hello World",spotlightColor:"rgba(255, 255, 255, 0.25)"}};var s,l,a;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
children: 'Hello World',
|
|
4
4
|
spotlightColor: 'rgba(255, 255, 255, 0.25)'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as t}from"./iframe-
|
|
1
|
+
import{r as c,j as t}from"./iframe-rPhsLpUF.js";import{m as k}from"./proxy-uJ8evSzT.js";import{u as R}from"./use-motion-value-jBEsDEvG.js";import{u as q}from"./use-transform-Cfp6qWZw.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";const $="_card_1aymn_8",o={"stack-container":"_stack-container_1aymn_1","card-rotate":"_card-rotate_1aymn_8","card-rotate-disabled":"_card-rotate-disabled_1aymn_15",card:$,"card-image":"_card-image_1aymn_38"};function I({children:n,onSendToBack:g,sensitivity:s,disableDrag:u=!1}){const d=R(0),i=R(0),m=q(i,[-100,100],[60,-60]),f=q(d,[-100,100],[-60,60]);function b(y,p){Math.abs(p.offset.x)>s||Math.abs(p.offset.y)>s?g():(d.set(0),i.set(0))}return u?t.jsx(k.div,{className:`${o["card-rotate-disabled"]}`,style:{x:0,y:0},children:n}):t.jsx(k.div,{className:`${o["card-rotate"]}`,style:{x:d,y:i,rotateX:m,rotateY:f},drag:!0,dragConstraints:{top:0,right:0,bottom:0,left:0},dragElastic:.6,whileTap:{cursor:"grabbing"},onDragEnd:b,children:n})}function O({randomRotation:n=!1,sensitivity:g=200,cards:s=[],animationConfig:u={stiffness:260,damping:20},sendToBackOnClick:d=!1,autoplay:i=!1,autoplayDelay:m=3e3,pauseOnHover:f=!1,mobileClickOnly:b=!1,mobileBreakpoint:y=768}){const[p,S]=c.useState(!1),[j,x]=c.useState(!1);c.useEffect(()=>{const e=()=>{S(window.innerWidth<y)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[y]);const w=b&&p,D=d||w,[r,_]=c.useState(()=>s.length?s.map((e,a)=>({id:a+1,content:e})):[{id:1,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1480074568708-e7b720bb3f09?q=80&w=500&auto=format",alt:"card-1",className:`${o["card-image"]}`})},{id:2,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1449844908441-8829872d2607?q=80&w=500&auto=format",alt:"card-2",className:`${o["card-image"]}`})},{id:3,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1452626212852-811d58933cae?q=80&w=500&auto=format",alt:"card-3",className:`${o["card-image"]}`})},{id:4,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1572120360610-d971b9d7767c?q=80&w=500&auto=format",alt:"card-4",className:`${o["card-image"]}`})}]);c.useEffect(()=>{s.length&&_(s.map((e,a)=>({id:a+1,content:e})))},[s]);const v=e=>{_(a=>{const l=[...a],M=l.findIndex(F=>F.id===e),[N]=l.splice(M,1);return l.unshift(N),l})};return c.useEffect(()=>{if(i&&r.length>1&&!j){const e=setInterval(()=>{const a=r[r.length-1].id;v(a)},m);return()=>clearInterval(e)}},[i,m,r,j]),t.jsx("div",{className:`${o["stack-container"]}`,onMouseEnter:()=>f&&x(!0),onMouseLeave:()=>f&&x(!1),children:r.map((e,a)=>{const l=n?Math.random()*10-5:0;return t.jsx(I,{onSendToBack:()=>v(e.id),sensitivity:g,disableDrag:w,children:t.jsx(k.div,{className:`${o.card}`,onClick:()=>D&&v(e.id),animate:{rotateZ:(r.length-a-1)*4+l,scale:1+a*.06-r.length*.06,transformOrigin:"90% 90%"},initial:!1,transition:{type:"spring",stiffness:u.stiffness,damping:u.damping},children:e.content})},e.id)})})}O.__docgenInfo={description:"",methods:[],displayName:"Stack",props:{randomRotation:{defaultValue:{value:"false",computed:!1},required:!1},sensitivity:{defaultValue:{value:"200",computed:!1},required:!1},cards:{defaultValue:{value:"[]",computed:!1},required:!1},animationConfig:{defaultValue:{value:"{ stiffness: 260, damping: 20 }",computed:!1},required:!1},sendToBackOnClick:{defaultValue:{value:"false",computed:!1},required:!1},autoplay:{defaultValue:{value:"false",computed:!1},required:!1},autoplayDelay:{defaultValue:{value:"3000",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},mobileClickOnly:{defaultValue:{value:"false",computed:!1},required:!1},mobileBreakpoint:{defaultValue:{value:"768",computed:!1},required:!1}}};const W={title:"ReactBits/Components/Stack",component:O,parameters:{layout:"fullscreen"}},h={args:{randomRotation:!1,sensitivity:200,sendToBackOnClick:!1,autoplay:!1,autoplayDelay:3e3,pauseOnHover:!1,mobileClickOnly:!1,cards:[t.jsx("img",{src:"https://picsum.photos/seed/a/400/300",alt:"card-1",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"1"),t.jsx("img",{src:"https://picsum.photos/seed/b/400/300",alt:"card-2",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"2"),t.jsx("img",{src:"https://picsum.photos/seed/c/400/300",alt:"card-3",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"3"),t.jsx("img",{src:"https://picsum.photos/seed/d/400/300",alt:"card-4",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"4")]}};var E,C,V;h.parameters={...h.parameters,docs:{...(E=h.parameters)==null?void 0:E.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
randomRotation: false,
|
|
4
4
|
sensitivity: 200,
|