@stfrigerio/sito-template 0.1.44 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/charts/SunburstChart/SunburstChart.d.ts.map +1 -1
- package/dist/index.esm.js +113 -147
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +113 -147
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
- package/storybook-static/assets/{ASCIIText.stories-BSKNvcoU.js → ASCIIText.stories-DpBtrb9i.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-BheGtT2x.js → AllAtoms.stories-C2hvLJ8w.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-DHs1c0dV.js → AnimatedContent.stories-Di9Q7t9j.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-DIfbjb22.js → AnimatedList.stories-BGyYB85Y.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-BsyCq_d_.js → Antigravity.stories-Do1dnEK_.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-Vhl_2MiN.js → ArrayInput.stories-CNtTKUF0.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-C7vxHFyZ.js → Aurora.stories-DHuVs0Nh.js} +1 -1
- package/storybook-static/assets/{Beams.stories-WmoAQdE2.js → Beams.stories-C0fr646Y.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-Do76vl4q.js → BlobCursor.stories-CQmLI7VF.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-CIsxOJyQ.js → BlurText.stories-Bqhf_75C.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-DIdVIPVH.js → BooleansHeatmap.stories-CSTfHU8X.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-B88w6QLt.js → BorderGlow.stories-DllLrSOi.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-CjsSE6cs.js → BubbleMenu.stories-By8eacsb.js} +1 -1
- package/storybook-static/assets/{Button-C_YZ5gR4.js → Button-2CSvbnXB.js} +1 -1
- package/storybook-static/assets/{Button.stories-Mw6nstnk.js → Button.stories-CMFODsAR.js} +1 -1
- package/storybook-static/assets/Calendar-gAaU5NXk.css +1 -0
- package/storybook-static/assets/{Calendar.stories-Dxshyi2I.js → Calendar.stories-BPwP3WUJ.js} +6 -6
- package/storybook-static/assets/{Card-C1evZ1rT.js → Card-DZVLYsdd.js} +1 -1
- package/storybook-static/assets/{Card.stories-Cd8o0lJL.js → Card.stories-DisHmL7k.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-CVCNllVh.js → CardNav.stories-e50-9J_A.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-DXvKLxeO.js → Carousel.stories-B-rI6jNr.js} +1 -1
- package/storybook-static/assets/{Checkbox-tM16vTif.js → Checkbox-D7FUqeuB.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-dhEm8gbi.js → Checkbox.stories-CyIVTBxZ.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-_N6hSynZ.js → ChromaGrid.stories-S1cYuc5_.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-c7BEdmTm.js → CircularGallery.stories-DRrEcX-Y.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-BCoG12vU.js → CircularText.stories-CHoRy-lV.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-BOypb8hM.js → ClickSpark.stories-DbPNmGUE.js} +1 -1
- package/storybook-static/assets/{Color-AVL7NMMY-iZX0v-MX.js → Color-AVL7NMMY-C-H2x7hU.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-DJVplB1e.js → ColorBends.stories-BVGGr3v3.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-CZoxCmOS.js → CountUp.stories-Ofg9f0h2.js} +1 -1
- package/storybook-static/assets/{Counter.stories-CD2CN6Rs.js → Counter.stories-CsO7AtIx.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-pKH0CRjB.js → Crosshair.stories-kyfwqcvB.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-CG6EoDFk.js → Cubes.stories-hA-HjWNO.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-2_6LGDBt.js → CurvedLoop.stories-CHdhTRmN.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-NPy-IAdE.js → DarkVeil.stories-B68s8uCO.js} +1 -1
- package/storybook-static/assets/{DateInput-bEXupMbC.js → DateInput-DYaAr-pD.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-Di9xlwl-.js → DateInput.stories-D8DGjdAu.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-C_nLJJYv.js → DecayCard.stories-RASuy9DU.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-B3nmn_C5.js → DecryptedText.stories-BYt96S4h.js} +1 -1
- package/storybook-static/assets/{Dither.stories-DYFkOPEa.js → Dither.stories-BoRhWSS3.js} +1 -1
- package/storybook-static/assets/{Dock.stories-D5xKRTwB.js → Dock.stories-HG_pJS3N.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-PQXLIZUC-qnjLy5zI.js → DocsRenderer-PQXLIZUC-DhsqOTVk.js} +4 -4
- package/storybook-static/assets/{EditFAB.stories-D7WePUUN.js → EditFAB.stories-CTGHZ2-N.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-Cov9VutU.js → EvilEye.stories-CIq_GN_B.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-mHhk3715.js → FadeContent.stories-D4XSUqNs.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-DjKOHL4-.js → FaultyTerminal.stories-D47h3D9_.js} +1 -1
- package/storybook-static/assets/{Fbo-CDZq1mNj.js → Fbo-DJ3Mfipf.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-B_dxBmBz.js → FloatingLines.stories-DwrsyJ8S.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-DdUqXTFx.js → FlowingMenu.stories-BQGeeDYk.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-C6FrnI3D.js → FluidGlass.stories-BNEe11fE.js} +1 -1
- package/storybook-static/assets/{Folder.stories-Zb5rwe3k.js → Folder.stories-C34siiUF.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-CoZEjZrD.js → FuzzyText.stories-DoRGPHuR.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-D8hfMx7x.js → Galaxy.stories-CoORoc2P.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-DmAEHIj2.js → GhostCursor.stories-qUL8J6dR.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-C2pGThOS.js → GlareHover.stories-CCdco059.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-Dt29DAS0.js → GlassSurface.stories-DZY8JTI_.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-sqo6Y5iu.js → GlitchText.stories-BOc2qtp8.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-DxgFxo-U.js → GooeyNav.stories-AdVJ0HTE.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-BO3udAca.js → GradientBlinds.stories-CPMa1wbI.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-DwqimEmN.js → GradientText.stories-DiQ4BiOA.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-DrGFYn0A.js → Grainient.stories-6AktjTpR.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-Rbww9MSf.js → GridMotion.stories-CpUxov1L.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-BOxjGf7e.js → ImageSlideshow.stories-BB_WEc_C.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-CTQo8feH.js → Iridescence.stories-DVY4Ad82.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-DsHyOCT6.js → LaserFlow.stories-BIwcrTST.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-DYnbcxa2.js → LetterGlitch.stories-CYLP01fr.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-C0oLGh9j.js → LightPillar.stories-Op3-RL2H.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-y4A3LO7i.js → LightRays.stories-BWfITZGs.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-Bjuvt9ng.js → Lightning.stories-z3EqNFWs.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-DXHfmcAY.js → LineWaves.stories-CN-U2RZb.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-BIJKsALp.js → LiquidChrome.stories-CQunDA00.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-Zn4y8_Dj.js → LiquidEther.stories-Dx5E22qa.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-T2OjcR-z.js → LoadingSpinner-xoFPGq9a.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-YZPlVrIL.js → LoadingSpinner.stories-BXcLzSiN.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-B17cxZu8.js → MagicRings.stories-ChpUpgBm.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-C6geVwXu.js → Magnet.stories-CUAsnJjx.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-uCo-0xpG.js → MagnetLines.stories-BtKFg9_t.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-BsaHuUl3.js → Masonry.stories-BfT7aonk.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-CfS9YAYf.js → MetaBalls.stories-Bpx6y2Mq.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-CPnRKq8Y.js → MetallicPaint.stories-i_KuUoJ7.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-Bhzx-Mki.js → MoodChart.stories-BUrwIpbe.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-4uS6JRtS.js → MotionConfigContext-BdSKNtzx.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-CTJisFgI.js → Navbar.stories-B5n2URGj.js} +1 -1
- package/storybook-static/assets/{Noise.stories-CV2ieqjl.js → Noise.stories-BiOgX5JV.js} +1 -1
- package/storybook-static/assets/{NumberStepper-0N2zZmLM.js → NumberStepper-DvLaVPaJ.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-DO0SaXet.js → NumberStepper.stories-Tp2dyXJp.js} +1 -1
- package/storybook-static/assets/{Orb.stories-BO2G-id7.js → Orb.stories-B4ymfobF.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-Dd0Un1zc.js → OrbitImages.stories-BOOJ2sLz.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-YSBHUrlk.js → PieChart.stories-eN4T-LQ5.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-DLOdQdBC.js → PixelBlast.stories-CKyxO1s-.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-DL1EW33U.js → PixelCard.stories-DNkvTz5j.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-40ms3GpO.js → PixelSnow.stories-DDwr-w1I.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-Ce0j1LoP.js → PixelTransition.stories-nLfk3vHv.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-C-qYly6i.js → Plasma.stories-CiQrlhdr.js} +1 -1
- package/storybook-static/assets/{Prism.stories-BzLhe_ek.js → Prism.stories-DiUQJHSM.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-DODqjw3j.js → PrismaticBurst.stories-CE1GpHYN.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-DUyZIJ8A.js → ProfileCard.stories-CLCPDEvl.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-DvgzevZP.js → QuantifiableHabitsChart.stories-qCi1Hwlz.js} +1 -1
- package/storybook-static/assets/{Radar.stories-2RPf1QSy.js → Radar.stories-DKY5fGUM.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-RmoPiIi9.js → Ribbons.stories-fdt7Dly3.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-Otw1g2CJ.js → RippleGrid.stories-n5CU7uPT.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-NgYC0KMN.js → RotatingText.stories-D345b2IH.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-BFBCdW8h.js → ScrollFloat.stories-vqa9uxYG.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-JKNxxGAh.js → ScrollReveal.stories-dYbCWXJL.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-C8kmHqS4.js → ScrollVelocity.stories-BNKZ-bfJ.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-C7Ba5BXp.js → SearchBar.stories-CXEYCYtx.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-C_6nW_fM.js → SearchableDropdown-BTWjVlVv.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-Cr7zD259.js → SearchableDropdown.stories-BBXXroOM.js} +1 -1
- package/storybook-static/assets/{SelectInput-Cq1kd98Q.js → SelectInput-BhKBu2cI.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-BdpLeHVn.js → SelectInput.stories-W6PuLg-G.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-lRfZvgfc.js → ShapeBlur.stories-wsyTNDdI.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-CfjM9fjH.js → ShapeGrid.stories-BP0HTLmc.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-DKdXfhML.js → ShinyText.stories-2ZQhiBft.js} +1 -1
- package/storybook-static/assets/{Silk.stories-CjTLyn1c.js → Silk.stories-C973tELu.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-DJ12EHQj.js → SleepChart.stories-C-nic0Hg.js} +1 -1
- package/storybook-static/assets/{Slider-CjC8kTvA.js → Slider-Cj4NY5N0.js} +1 -1
- package/storybook-static/assets/{Slider.stories-8dOh6zEz.js → Slider.stories-DLEYO7pQ.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-OVy3Uj5H.js → SoftAurora.stories-BwKGvWh1.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-BMnOeJoJ.js → SoundDemo.stories-BBGMylUU.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-D-l4tdFh.js → SplashCursor.stories-Nh-ONQGd.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-CGzh2DPl.js → SpotlightCard.stories-C7FUbVoM.js} +1 -1
- package/storybook-static/assets/{Stack.stories-CGsiQ3oD.js → Stack.stories-eXwEbGTy.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-Bq5nvfqE.js → StaggeredMenu.stories-tgVDfUr0.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-CAGKcU-0.js → StarBorder.stories-D36zbc2N.js} +1 -1
- package/storybook-static/assets/SunburstChart-Cvr1OzgE.css +1 -0
- package/storybook-static/assets/SunburstChart.stories-CgCbkhG8.js +285 -0
- package/storybook-static/assets/{Table.stories-DNxjy4mw.js → Table.stories-BdABrDyr.js} +1 -1
- package/storybook-static/assets/Tabs-CLXu7F99.css +1 -0
- package/storybook-static/assets/{Tabs.stories-CujhnpzV.js → Tabs.stories-BwzAz5v_.js} +6 -6
- package/storybook-static/assets/{TargetCursor.stories-CjS6RpDB.js → TargetCursor.stories-D1M0ZV-S.js} +1 -1
- package/storybook-static/assets/{TextArea-DHBnvidn.js → TextArea-CMvPbRqQ.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-CCC4mZkh.js → TextArea.stories-DmAuD1fB.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-DbbUKuuf.js → TextCursor.stories-CJmFUz8s.js} +1 -1
- package/storybook-static/assets/{TextInput-BRLXZRi0.js → TextInput-7QROD9Bu.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-DzmoEdX3.js → TextInput.stories-Cwf2_Ika.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-BjGjNHuq.js → TextPressure.stories-CB8UIoN_.js} +1 -1
- package/storybook-static/assets/{TextType.stories-BCEjz-Zi.js → TextType.stories-D4ZEW3Fz.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-0T7fY3d_.js → ThemeSwitcher.stories-DHgVmIcC.js} +1 -1
- package/storybook-static/assets/{Threads.stories-DDlSfgD5.js → Threads.stories-P32yG4P8.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-CjV4ksEX.js → TimeInput.stories-Dkkdpsta.js} +1 -1
- package/storybook-static/assets/{Toggle-C26yCxt_.js → Toggle-DLu7xVQv.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-D5LQoJpm.js → Toggle.stories-BSS4Epfw.js} +1 -1
- package/storybook-static/assets/{ToggleButton-DKVqKQxZ.js → ToggleButton-Cq7dxxuH.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-BfAEDMOR.js → ToggleButton.stories-BZvOkwfy.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-DA9Ysraz.js → TrueFocus.stories-BMRj967B.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-CN-Q4WDX.js → VariableProximity.stories-B6-tbs3n.js} +1 -1
- package/storybook-static/assets/{Waves.stories-W2IDhrZm.js → Waves.stories-CAJon3iL.js} +1 -1
- package/storybook-static/assets/{check-Bh0K2zJt.js → check-D8bWZLP6.js} +1 -1
- package/storybook-static/assets/{chevron-down-B26xHSrx.js → chevron-down-BZPtZoHS.js} +1 -1
- package/storybook-static/assets/{chevron-right-4NIYYZ8p.js → chevron-right-B4kqmwjo.js} +1 -1
- package/storybook-static/assets/client-er7qZ0kF.js +1 -0
- package/storybook-static/assets/{createLucideIcon-wa-8tr0c.js → createLucideIcon-Eaeny9Zi.js} +1 -1
- package/storybook-static/assets/{folder-OUDa6Ti7.js → folder-DNcKa6s5.js} +1 -1
- package/storybook-static/assets/{iconBase-fo9b9WAM.js → iconBase-CstVDnta.js} +1 -1
- package/storybook-static/assets/{iframe-2N7rjfXm.js → iframe-CvT6MryR.js} +4 -4
- package/storybook-static/assets/{index-IKMS7NhW.js → index-2ZuXCVEx.js} +1 -1
- package/storybook-static/assets/{index-DaJY9FlE.js → index-Cb6YhhUk.js} +1 -1
- package/storybook-static/assets/{index-BXmXrRij.js → index-KuyQzDCw.js} +1 -1
- package/storybook-static/assets/{layout-grid-DMX9O4XB.js → layout-grid-nUVet5Tw.js} +1 -1
- package/storybook-static/assets/{proxy-qiKixXs8.js → proxy-0exJiild.js} +1 -1
- package/storybook-static/assets/{react-18-DajuY7cH.js → react-18-KOo_VULj.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-pSSy_32K.js → react-three-fiber.esm-BbD9yVT_.js} +1 -1
- package/storybook-static/assets/{search-DBjUUDRM.js → search-Cfa-rwoK.js} +1 -1
- package/storybook-static/assets/{sun-WV9AmUvz.js → sun-BwQ2hAsY.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-DNrI5vnP.js → use-animation-frame-BOMew7B2.js} +1 -1
- package/storybook-static/assets/{use-in-view-Dn2glBsV.js → use-in-view-BP3CscI2.js} +1 -1
- package/storybook-static/assets/{use-motion-value-w2f8nz4L.js → use-motion-value-DfJqnIZb.js} +1 -1
- package/storybook-static/assets/{use-spring-CDOZMwuR.js → use-spring-SHZiaDU4.js} +1 -1
- package/storybook-static/assets/{use-transform-DZyAm4Sp.js → use-transform-CATrWDJd.js} +1 -1
- package/storybook-static/assets/{useSound-BBLJ5Rjg.js → useSound-DyOR6GVH.js} +1 -1
- package/storybook-static/assets/{users-0pBe6bxm.js → users-CoCnAJkL.js} +1 -1
- package/storybook-static/assets/{x-k5o8Jl5E.js → x-D_m9a61B.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-4/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/docs-2/manager-bundle.js +2 -2
- package/storybook-static/sb-addons/links-3/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/storybook-5/manager-bundle.js +1 -1
- package/storybook-static/assets/Calendar-zTw0ddxb.css +0 -1
- package/storybook-static/assets/SunburstChart-ChXvU9py.css +0 -1
- package/storybook-static/assets/SunburstChart.stories-ceDZ0sGS.js +0 -285
- package/storybook-static/assets/Tabs-BfJ7skOE.css +0 -1
- package/storybook-static/assets/client-CyPtLppF.js +0 -1
package/storybook-static/assets/{TextType.stories-BCEjz-Zi.js → TextType.stories-D4ZEW3Fz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,j}from"./iframe-
|
|
1
|
+
import{r as e,j}from"./iframe-CvT6MryR.js";import{g as A}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const S={"text-type__cursor":"_text-type__cursor_i3t4x_6","text-type__cursor--hidden":"_text-type__cursor--hidden_i3t4x_12"},b=({text:n,as:k="div",typingSpeed:i=50,initialDelay:C=0,pauseDuration:x=2e3,deletingSpeed:V=30,loop:h=!0,className:w="",showCursor:y=!0,hideCursorWhileTyping:B=!1,cursorCharacter:H="|",cursorClassName:z="",cursorBlinkDuration:q=.5,textColors:g=[],variableSpeed:l,onSentenceComplete:T,startOnVisible:_=!1,reverseMode:D=!1,...F})=>{const[c,I]=e.useState(""),[o,E]=e.useState(0),[f,N]=e.useState(!1),[r,G]=e.useState(0),[R,J]=e.useState(!_),d=e.useRef(null),v=e.useRef(null),s=e.useMemo(()=>Array.isArray(n)?n:[n],[n]),K=e.useCallback(()=>{if(!l)return i;const{min:t,max:u}=l;return Math.random()*(u-t)+t},[l,i]),L=()=>g.length===0?"inherit":g[r%g.length];e.useEffect(()=>{if(!_||!v.current)return;const t=new IntersectionObserver(u=>{u.forEach(p=>{p.isIntersecting&&J(!0)})},{threshold:.1});return t.observe(v.current),()=>t.disconnect()},[_]),e.useEffect(()=>{y&&d.current&&(A.set(d.current,{opacity:1}),A.to(d.current,{opacity:0,duration:q,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[y,q]),e.useEffect(()=>{if(!R)return;let t;const u=s[r],p=D?u.split("").reverse().join(""):u,W=()=>{if(f)if(c===""){if(N(!1),r===s.length-1&&!h)return;T&&T(s[r],r),G(a=>(a+1)%s.length),E(0),t=setTimeout(()=>{},x)}else t=setTimeout(()=>{I(a=>a.slice(0,-1))},V);else if(o<p.length)t=setTimeout(()=>{I(a=>a+p[o]),E(a=>a+1)},l?K():i);else if(s.length>=1){if(!h&&r===s.length-1)return;t=setTimeout(()=>{N(!0)},x)}};return o===0&&!f&&c===""?t=setTimeout(W,C):W(),()=>clearTimeout(t)},[o,c,f,i,V,x,s,r,h,C,R,D,l,T]);const P=B&&(o<s[r].length||f);return e.createElement(k,{ref:v,className:`text-type ${w}`,...F},j.jsx("span",{className:"text-type__content",style:{color:L()||"inherit"},children:c}),y&&j.jsx("span",{ref:d,className:`${S["text-type__cursor"]} ${z} ${P?S["text-type__cursor--hidden"]:""}`,children:H}))};b.__docgenInfo={description:"",methods:[],displayName:"TextType",props:{as:{defaultValue:{value:"'div'",computed:!1},required:!1},typingSpeed:{defaultValue:{value:"50",computed:!1},required:!1},initialDelay:{defaultValue:{value:"0",computed:!1},required:!1},pauseDuration:{defaultValue:{value:"2000",computed:!1},required:!1},deletingSpeed:{defaultValue:{value:"30",computed:!1},required:!1},loop:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showCursor:{defaultValue:{value:"true",computed:!1},required:!1},hideCursorWhileTyping:{defaultValue:{value:"false",computed:!1},required:!1},cursorCharacter:{defaultValue:{value:"'|'",computed:!1},required:!1},cursorClassName:{defaultValue:{value:"''",computed:!1},required:!1},cursorBlinkDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},textColors:{defaultValue:{value:"[]",computed:!1},required:!1},startOnVisible:{defaultValue:{value:"false",computed:!1},required:!1},reverseMode:{defaultValue:{value:"false",computed:!1},required:!1}}};const Y={title:"ReactBits/TextAnimations/TextType",component:b,parameters:{layout:"fullscreen"},tags:["autodocs"]},m={args:{text:"Hello World",as:"div",typingSpeed:50,initialDelay:0,pauseDuration:2e3,deletingSpeed:30,loop:!0,showCursor:!0,hideCursorWhileTyping:!1,cursorCharacter:"|",cursorClassName:"",cursorBlinkDuration:.5,textColors:[],startOnVisible:!1,reverseMode:!1}};var M,O,$;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
text: 'Hello World',
|
|
4
4
|
as: 'div',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,j as e}from"./iframe-
|
|
1
|
+
import{r as p,j as e}from"./iframe-CvT6MryR.js";import{m as l}from"./proxy-0exJiild.js";import{M as L,S}from"./sun-BwQ2hAsY.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BdSKNtzx.js";import"./createLucideIcon-Eaeny9Zi.js";const U=p.createContext(void 0),Y=()=>p.useContext(U)??null,X=({children:r,defaultTheme:m="light",storageKey:s="app-theme"})=>{const[i,g]=p.useState(()=>{const a=localStorage.getItem(s);return a&&["light","dark","lossito","lossito-dark","dmood","dmood-dark","crt"].includes(a)?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":m}),v=a=>{g(a),localStorage.setItem(s,a)},n=()=>{const a=["light","dark","lossito","lossito-dark","dmood","dmood-dark","crt"],w=(a.indexOf(i)+1)%a.length;v(a[w])};return p.useEffect(()=>{const a=document.documentElement;a.setAttribute("data-theme",i),i.includes("dark")?a.classList.add("dark"):a.classList.remove("dark")},[i]),p.useEffect(()=>{const a=window.matchMedia("(prefers-color-scheme: dark)"),d=w=>{localStorage.getItem(s)||g(w.matches?"dark":"light")};return a.addEventListener("change",d),()=>a.removeEventListener("change",d)},[s]),e.jsx(U.Provider,{value:{theme:i,setTheme:v,toggleTheme:n},children:r})};X.__docgenInfo={description:"",methods:[],displayName:"ThemeProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dmood' | 'dmood-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dmood'"},{name:"literal",value:"'dmood-dark'"},{name:"literal",value:"'crt'"}]},description:"",defaultValue:{value:"'light'",computed:!1}},storageKey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'app-theme'",computed:!1}}}};const Z="_button_2917u_1",K="_iconWrapper_2917u_20",ee="_label_2917u_28",ae="_toggle_2917u_33",te="_toggleTrack_2917u_43",oe="_toggleThumb_2917u_53",re="_dropdown_2917u_65",se="_dropdownTrigger_2917u_69",ne="_dropdownMenu_2917u_87",le="_dropdownItem_2917u_106",ie="_active_2917u_124",de="_icon_2917u_20",ce="_text_2917u_144",o={button:Z,iconWrapper:K,label:ee,toggle:ae,toggleTrack:te,toggleThumb:oe,dropdown:re,dropdownTrigger:se,dropdownMenu:ne,dropdownItem:le,active:ie,icon:de,text:ce},h=({variant:r="button",showLabel:m=!1,className:s="",currentTheme:i,onThemeChange:g,themes:v})=>{const n=Y(),a=i??(n==null?void 0:n.theme)??"light",d=g??(n==null?void 0:n.setTheme)??(()=>{}),c=v??[{value:"light",label:"Light",icon:e.jsx(S,{})},{value:"dark",label:"Dark",icon:e.jsx(L,{})},{value:"lossito",label:"Lossito Light",icon:"✨"},{value:"lossito-dark",label:"Lossito Dark",icon:"🌑"},{value:"dmood",label:"Dmood Light",icon:"💙"},{value:"dmood-dark",label:"Dmood Dark",icon:"🌌"}],j=c.findIndex(t=>t.value===a),u=c[j]??c[0];if(r==="toggle"){const t=a.includes("dark");return e.jsxs(l.button,{className:`${o.toggle} ${s}`,onClick:()=>d(t?"light":"dark"),whileTap:{scale:.95},"aria-label":"Toggle theme",children:[e.jsx(l.div,{className:o.toggleTrack,animate:{backgroundColor:t?"var(--color-primary)":"var(--color-border)"},children:e.jsx(l.div,{className:o.toggleThumb,animate:{x:t?24:0},transition:{type:"spring",stiffness:500,damping:30},children:t?e.jsx(L,{size:14}):e.jsx(S,{size:14})})}),m&&e.jsx("span",{className:o.label,children:t?"Dark":"Light"})]})}return r==="dropdown"?e.jsxs("div",{className:`${o.dropdown} ${s}`,children:[e.jsxs(l.button,{className:o.dropdownTrigger,whileTap:{scale:.98},children:[u.icon,m&&e.jsx("span",{className:o.label,children:u.label})]}),e.jsx(l.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},children:c.map(t=>e.jsxs(l.button,{className:`${o.dropdownItem} ${a===t.value?o.active:""}`,onClick:()=>d(t.value),whileHover:{x:4},whileTap:{scale:.98},children:[e.jsx("span",{className:o.icon,children:t.icon}),e.jsx("span",{className:o.text,children:t.label})]},t.value))})]}):e.jsxs(l.button,{className:`${o.button} ${s}`,onClick:()=>{const t=(j+1)%c.length;d(c[t].value)},whileTap:{scale:.95},whileHover:{scale:1.05},"aria-label":`Current theme: ${u.label}. Click to change.`,children:[e.jsx(l.div,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:180,opacity:0},transition:{duration:.3},className:o.iconWrapper,children:u.icon},a),m&&e.jsx("span",{className:o.label,children:u.label})]})};h.__docgenInfo={description:"",methods:[],displayName:"ThemeSwitcher",props:{variant:{required:!1,tsType:{name:"union",raw:"'button' | 'dropdown' | 'toggle'",elements:[{name:"literal",value:"'button'"},{name:"literal",value:"'dropdown'"},{name:"literal",value:"'toggle'"}]},description:"",defaultValue:{value:"'button'",computed:!1}},showLabel:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},currentTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dmood' | 'dmood-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dmood'"},{name:"literal",value:"'dmood-dark'"},{name:"literal",value:"'crt'"}]},description:""},onThemeChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(theme: Theme) => void",signature:{arguments:[{type:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dmood' | 'dmood-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dmood'"},{name:"literal",value:"'dmood-dark'"},{name:"literal",value:"'crt'"}]},name:"theme"}],return:{name:"void"}}},description:""},themes:{required:!1,tsType:{name:"Array",elements:[{name:"ThemeOption"}],raw:"ThemeOption[]"},description:""}}};const me=({children:r})=>e.jsx(X,{defaultTheme:"light",children:r}),be={title:"Molecules/ThemeSwitcher",component:h,decorators:[r=>e.jsx(me,{children:e.jsx("div",{style:{padding:"2rem"},children:e.jsx(r,{})})})],parameters:{layout:"centered"},argTypes:{variant:{control:{type:"select"},options:["button","dropdown","toggle"]},showLabel:{control:{type:"boolean"}}}},b={args:{variant:"button",showLabel:!1}},x={args:{variant:"button",showLabel:!0}},f={args:{variant:"toggle",showLabel:!1}},T={args:{variant:"toggle",showLabel:!0}},k={args:{variant:"dropdown",showLabel:!1}},_={args:{variant:"dropdown",showLabel:!0}},y={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",alignItems:"center"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Button Variant"}),e.jsx(h,{variant:"button",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Toggle Variant"}),e.jsx(h,{variant:"toggle",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Dropdown Variant"}),e.jsx(h,{variant:"dropdown",showLabel:!0})]})]})};var I,N,D;b.parameters={...b.parameters,docs:{...(I=b.parameters)==null?void 0:I.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
variant: 'button',
|
|
4
4
|
showLabel: false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as z}from"./iframe-
|
|
1
|
+
import{r as d,j as z}from"./iframe-CvT6MryR.js";import{R as F,P as D,M as T}from"./Mesh-CwXV3WjE.js";import{T as q}from"./Triangle-64ffRKNB.js";import{C as P}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const I={"threads-container":"_threads-container_1ao30_1"},S=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
attribute vec2 uv;
|
|
4
4
|
varying vec2 vUv;
|
package/storybook-static/assets/{TimeInput.stories-CjV4ksEX.js → TimeInput.stories-Dkkdpsta.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as S,j as e}from"./iframe-
|
|
1
|
+
import{r as S,j as e}from"./iframe-CvT6MryR.js";import{X as ae}from"./x-D_m9a61B.js";import{c as ne}from"./createLucideIcon-Eaeny9Zi.js";import"./preload-helper-C1FmrZbK.js";/**
|
|
2
2
|
* @license lucide-react v0.539.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,j as i}from"./iframe-
|
|
1
|
+
import{r as p,j as i}from"./iframe-CvT6MryR.js";import{u as w}from"./useSound-DyOR6GVH.js";import{m as a}from"./proxy-0exJiild.js";const x="_toggleContainer_y5eyt_1",L="_toggleButton_y5eyt_11",_="_active_y5eyt_27",l={toggleContainer:x,toggleButton:L,active:_};function C(f){const{isOn:e,onToggle:r,leftLabel:m,rightLabel:u,leftIcon:d,rightIcon:h,className:T,style:b,soundConfig:t,enableCelebration:g=!1}=f,y=p.useRef(null),v=p.useRef(null),{handlers:o,playSound:n}=w({...t,onClick:(t==null?void 0:t.onClick)??"toggle",onHover:(t==null?void 0:t.onHover)??"hover"}),c={display:"flex",alignItems:"center",justifyContent:"center",...b};return i.jsxs("div",{className:`${l.toggleContainer} ${T||""}`,children:[i.jsxs(a.button,{ref:y,className:`${l.toggleButton} ${e?"":l.active}`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},onClick:()=>{n(e?"toggle":g?"success":"click"),r(!1)},onMouseEnter:()=>{var s;return(s=o.onMouseEnter)==null?void 0:s.call(o)},style:c,children:[i.jsx(a.div,{animate:{scale:e?1:1.1,rotate:e?0:[0,-5,5,0]},transition:{duration:.3},children:d}),m]}),i.jsxs(a.button,{ref:v,className:`${l.toggleButton} ${e?l.active:""}`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},onClick:()=>{n(e?g?"success":"click":"success"),r(!0)},onMouseEnter:()=>{var s;return(s=o.onMouseEnter)==null?void 0:s.call(o)},style:c,children:[i.jsx(a.div,{animate:{scale:e?1.1:1,rotate:e?[0,5,-5,0]:0},transition:{duration:.3},children:h}),u]})]})}C.__docgenInfo={description:`Toggle Component
|
|
2
2
|
|
|
3
3
|
@component
|
|
4
4
|
@description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as h}from"./iframe-
|
|
1
|
+
import{j as e,r as h}from"./iframe-CvT6MryR.js";import{T as a}from"./Toggle-DLu7xVQv.js";import{S as o,M as r}from"./sun-BwQ2hAsY.js";import{c as J}from"./createLucideIcon-Eaeny9Zi.js";import{L as F}from"./layout-grid-nUVet5Tw.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-DyOR6GVH.js";import"./proxy-0exJiild.js";import"./MotionConfigContext-BdSKNtzx.js";/**
|
|
2
2
|
* @license lucide-react v0.539.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./iframe-
|
|
1
|
+
import{j as a}from"./iframe-CvT6MryR.js";import{u as S}from"./useSound-DyOR6GVH.js";import{m as i}from"./proxy-0exJiild.js";import{A as c}from"./index-2ZuXCVEx.js";const q="_button_1ddez_1",A="_background_1ddez_33",N="_content_1ddez_49",V="_iconWrapper_1ddez_58",B="_icon_1ddez_58",R="_label_1ddez_75",W="_hideMobile_1ddez_81",P="_checkmark_1ddez_86",L="_ripple_1ddez_101",M="_small_1ddez_119",I="_large_1ddez_133",$="_active_1ddez_148",D="_outlined_1ddez_154",E="_filled_1ddez_168",F="_ghost_1ddez_179",Y="_active-primary_1ddez_196",H="_active-secondary_1ddez_202",J="_active-success_1ddez_208",O="_active-danger_1ddez_214",X="_active-warning_1ddez_220",G="_animation-scale_1ddez_258",K="_scaleAnimation_1ddez_1",Q="_animation-rotate_1ddez_262",U="_rotateAnimation_1ddez_1",Z="_animation-flip_1ddez_266",ee="_flipAnimation_1ddez_1",ae="_disabled_1ddez_298",e={button:q,background:A,content:N,iconWrapper:V,icon:B,label:R,hideMobile:W,checkmark:P,ripple:L,small:M,large:I,default:"_default_1ddez_148",active:$,outlined:D,filled:E,ghost:F,"active-primary":"_active-primary_1ddez_196",activePrimary:Y,"active-secondary":"_active-secondary_1ddez_202",activeSecondary:H,"active-success":"_active-success_1ddez_208",activeSuccess:J,"active-danger":"_active-danger_1ddez_214",activeDanger:O,"active-warning":"_active-warning_1ddez_220",activeWarning:X,"animation-scale":"_animation-scale_1ddez_258",animationScale:G,scaleAnimation:K,"animation-rotate":"_animation-rotate_1ddez_262",animationRotate:Q,rotateAnimation:U,"animation-flip":"_animation-flip_1ddez_266",animationFlip:Z,flipAnimation:ee,disabled:ae},te=({active:t,onClick:d,icon:o,label:l,disabled:s=!1,size:m="medium",variant:u="default",activeColor:p="primary",showCheckmark:_=!1,animation:r="scale",className:v="",style:f={},color:n,tooltip:g,hideLabelOnMobile:h=!1,soundConfig:y})=>{const{handlers:b,playSound:z}=S(y),k=[e.button,e[m],e[u],t&&e.active,t&&e[`active-${p}`],s&&e.disabled,r!=="none"&&e[`animation-${r}`],v].filter(Boolean).join(" "),T=[e.label,h&&e.hideMobile].filter(Boolean).join(" "),w={scale:{inactive:{scale:1},active:{scale:[1,1.2,1]}},rotate:{inactive:{rotate:0},active:{rotate:360}},flip:{inactive:{rotateY:0},active:{rotateY:180}},none:{inactive:{},active:{}}},C={hidden:{scale:0,opacity:0,rotate:-90},visible:{scale:1,opacity:1,rotate:0,transition:{type:"spring",stiffness:500,damping:25}}},x={inactive:{scale:0,opacity:0},active:{scale:1,opacity:1,transition:{type:"spring",stiffness:400,damping:20}}},j={...f,...n&&{"--toggle-color":n,"--toggle-border-color":t?n:`${n}40`,"--toggle-bg-color":t?`${n}20`:"transparent"}};return a.jsxs(i.button,{className:k,style:j,onClick:()=>{z("toggle"),d()},disabled:s,whileHover:s?void 0:{scale:1.05},whileTap:s?void 0:{scale:.95},title:g,"aria-pressed":t,"aria-label":l,...b,children:[a.jsx(i.div,{className:e.background,variants:x,initial:"inactive",animate:t?"active":"inactive"}),a.jsxs("div",{className:e.content,children:[o&&a.jsx(i.div,{className:e.iconWrapper,variants:w[r],initial:"inactive",animate:t?"active":"inactive",transition:{duration:.3},children:typeof o=="string"?a.jsx("span",{className:e.icon,children:o}):a.jsx("div",{className:e.icon,children:o})}),l&&a.jsx("span",{className:T,children:l}),a.jsx(c,{children:_&&t&&a.jsx(i.div,{className:e.checkmark,variants:C,initial:"hidden",animate:"visible",exit:"hidden",children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M20 6L9 17L4 12",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),a.jsx(c,{children:t&&a.jsx(i.div,{className:e.ripple,initial:{scale:0,opacity:.5},animate:{scale:2,opacity:0},exit:{scale:0,opacity:0},transition:{duration:.6}})})]})};te.__docgenInfo={description:`ToggleButton Component
|
|
2
2
|
|
|
3
3
|
@component
|
|
4
4
|
@description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as o}from"./iframe-
|
|
1
|
+
import{j as e,r as o}from"./iframe-CvT6MryR.js";import{T as a}from"./ToggleButton-Cq7dxxuH.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-DyOR6GVH.js";import"./proxy-0exJiild.js";import"./MotionConfigContext-BdSKNtzx.js";import"./index-2ZuXCVEx.js";const ue={title:"Atoms/ToggleButton",component:a,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{active:{control:"boolean",description:"Whether the button is active/selected"},onClick:{action:"clicked",description:"Click handler"},icon:{control:"text",description:"Icon or emoji to display"},label:{control:"text",description:"Label text"},disabled:{control:"boolean",description:"Whether the button is disabled"},size:{control:{type:"select"},options:["small","medium","large"],description:"Size variant"},variant:{control:{type:"select"},options:["default","outlined","filled","ghost"],description:"Visual variant"},activeColor:{control:{type:"select"},options:["primary","secondary","success","danger","warning"],description:"Color when active"},color:{control:"color",description:"Custom color for border/background when active"},showCheckmark:{control:"boolean",description:"Show a checkmark when active"},animation:{control:{type:"select"},options:["scale","rotate","flip","none"],description:"Animation type for state change"},tooltip:{control:"text",description:"Tooltip text"},hideLabelOnMobile:{control:"boolean",description:"Whether to hide the label on mobile"}}},w=t=>{const[l,s]=o.useState(t.active||!1);return e.jsx(a,{...t,active:l,onClick:()=>{var n;s(!l),(n=t.onClick)==null||n.call(t)}})},p={render:t=>e.jsx(w,{...t}),args:{active:!1,icon:"🦷",label:"Teeth"}},g={render:t=>e.jsx(w,{...t}),args:{active:!1,icon:"✅",label:"Complete",showCheckmark:!0}},v={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"🐁",label:"Small",size:"small"}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"🐕",label:"Medium",size:"medium"}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"🐘",label:"Large",size:"large"})]})}},f={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1),[c,d]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"🎨",label:"Default",variant:"default"}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"📝",label:"Outlined",variant:"outlined"}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"🎯",label:"Filled",variant:"filled"}),e.jsx(a,{active:c,onClick:()=>d(!c),icon:"👻",label:"Ghost",variant:"ghost"})]})}},C={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1),[c,d]=o.useState(!1),[u,m]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"💜",label:"Primary",activeColor:"primary"}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"💚",label:"Secondary",activeColor:"secondary"}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"✅",label:"Success",activeColor:"success"}),e.jsx(a,{active:c,onClick:()=>d(!c),icon:"⚠️",label:"Danger",activeColor:"danger"}),e.jsx(a,{active:u,onClick:()=>m(!u),icon:"🔔",label:"Warning",activeColor:"warning"})]})}},k={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1),[c,d]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"🎈",label:"Scale",animation:"scale"}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"🌀",label:"Rotate",animation:"rotate"}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"🔄",label:"Flip",animation:"flip"}),e.jsx(a,{active:c,onClick:()=>d(!c),icon:"⏸️",label:"None",animation:"none"})]})}},S={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1),[c,d]=o.useState(!1),[u,m]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",maxWidth:"600px"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"😢",label:"Sad",color:"#3b82f6"}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"😕",label:"Meh",color:"#8b5cf6"}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"😐",label:"Neutral",color:"#6b7280"}),e.jsx(a,{active:c,onClick:()=>d(!c),icon:"🙂",label:"Good",color:"#10b981"}),e.jsx(a,{active:u,onClick:()=>m(!u),icon:"😁",label:"Great",color:"#f59e0b"})]})}},x={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1),[c,d]=o.useState(!1),[u,m]=o.useState(!1);return e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))",gap:"12px",maxWidth:"400px"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"🦷",label:"Teeth",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"🚿",label:"Shower",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"🧘",label:"Meditate",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(a,{active:c,onClick:()=>d(!c),icon:"💊",label:"Vitamins",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(a,{active:u,onClick:()=>m(!u),icon:"💪",label:"Exercise",variant:"outlined",activeColor:"success",showCheckmark:!0})]})}},h={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"❤️",tooltip:"Add to favorites",activeColor:"danger",animation:"scale"}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"🔖",tooltip:"Bookmark",activeColor:"primary",animation:"flip"}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"🔔",tooltip:"Enable notifications",activeColor:"warning",animation:"rotate"})]})}},b={render:t=>e.jsx(w,{...t}),args:{active:!0,icon:"🔒",label:"Disabled",disabled:!0}},y={render:()=>{const[t,l]=o.useState(!1),[s,n]=o.useState(!1),[i,r]=o.useState(!1),[c,d]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx(a,{active:t,onClick:()=>l(!t),icon:"🎨",label:"Primary",variant:"outlined",activeColor:"primary",showCheckmark:!0}),e.jsx(a,{active:s,onClick:()=>n(!s),icon:"🎭",label:"Secondary",variant:"outlined",activeColor:"secondary",showCheckmark:!0}),e.jsx(a,{active:i,onClick:()=>r(!i),icon:"✨",label:"Success",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(a,{active:c,onClick:()=>d(!c),icon:"🚨",label:"Danger",variant:"outlined",activeColor:"danger",showCheckmark:!0})]})}};var T,j,B;p.parameters={...p.parameters,docs:{...(T=p.parameters)==null?void 0:T.docs,source:{originalSource:`{
|
|
2
2
|
render: args => <ToggleButtonWrapper {...args} />,
|
|
3
3
|
args: {
|
|
4
4
|
active: false,
|
package/storybook-static/assets/{TrueFocus.stories-DA9Ysraz.js → TrueFocus.stories-BMRj967B.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,j as n}from"./iframe-
|
|
1
|
+
import{r as a,j as n}from"./iframe-CvT6MryR.js";import{m as T}from"./proxy-0exJiild.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BdSKNtzx.js";const V="_active_ngfrk_24",C="_corner_ngfrk_37",e={"focus-container":"_focus-container_ngfrk_1","focus-word":"_focus-word_ngfrk_12",active:V,"focus-frame":"_focus-frame_ngfrk_28",corner:C,"top-left":"_top-left_ngfrk_47","top-right":"_top-right_ngfrk_54","bottom-left":"_bottom-left_ngfrk_61","bottom-right":"_bottom-right_ngfrk_68"},$=({sentence:R="True Focus",separator:y=" ",manualMode:s=!1,blurAmount:g=5,borderColor:_="green",glowColor:h="rgba(0, 255, 0, 0.6)",animationDuration:u=.5,pauseBetweenAnimations:v=1})=>{const l=R.split(y),[o,i]=a.useState(0),[j,k]=a.useState(null),d=a.useRef(null),p=a.useRef([]),[c,q]=a.useState({x:0,y:0,width:0,height:0});a.useEffect(()=>{if(!s){const r=setInterval(()=>{i(t=>(t+1)%l.length)},(u+v)*1e3);return()=>clearInterval(r)}},[s,u,v,l.length]),a.useEffect(()=>{if(o===null||o===-1||!p.current[o]||!d.current)return;const r=d.current.getBoundingClientRect(),t=p.current[o].getBoundingClientRect();q({x:t.left-r.left,y:t.top-r.top,width:t.width,height:t.height})},[o,l.length]);const A=r=>{s&&(k(r),i(r))},F=()=>{s&&i(j)};return n.jsxs("div",{className:`${e["focus-container"]}`,ref:d,children:[l.map((r,t)=>{const m=t===o;return n.jsx("span",{ref:N=>p.current[t]=N,className:`${e["focus-word"]} ${s?"manual":""} ${m&&!s?e.active:""}`,style:{filter:s?m?"blur(0px)":`blur(${g}px)`:m?"blur(0px)":`blur(${g}px)`,"--border-color":_,"--glow-color":h,transition:`filter ${u}s ease`},onMouseEnter:()=>A(t),onMouseLeave:F,children:r},t)}),n.jsxs(T.div,{className:`${e["focus-frame"]}`,animate:{x:c.x,y:c.y,width:c.width,height:c.height,opacity:o>=0?1:0},transition:{duration:u},style:{"--border-color":_,"--glow-color":h},children:[n.jsx("span",{className:`${e.corner} ${e["top-left"]}`}),n.jsx("span",{className:`${e.corner} ${e["top-right"]}`}),n.jsx("span",{className:`${e.corner} ${e["bottom-left"]}`}),n.jsx("span",{className:`${e.corner} ${e["bottom-right"]}`})]})]})};$.__docgenInfo={description:"",methods:[],displayName:"TrueFocus",props:{sentence:{defaultValue:{value:"'True Focus'",computed:!1},required:!1},separator:{defaultValue:{value:"' '",computed:!1},required:!1},manualMode:{defaultValue:{value:"false",computed:!1},required:!1},blurAmount:{defaultValue:{value:"5",computed:!1},required:!1},borderColor:{defaultValue:{value:"'green'",computed:!1},required:!1},glowColor:{defaultValue:{value:"'rgba(0, 255, 0, 0.6)'",computed:!1},required:!1},animationDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},pauseBetweenAnimations:{defaultValue:{value:"1",computed:!1},required:!1}}};const L={title:"ReactBits/TextAnimations/TrueFocus",component:$,parameters:{layout:"fullscreen"},tags:["autodocs"]},f={args:{sentence:"True Focus",separator:" ",manualMode:!1,blurAmount:5,borderColor:"green",glowColor:"rgba(0, 255, 0, 0.6)",animationDuration:.5,pauseBetweenAnimations:1}};var x,b,w;f.parameters={...f.parameters,docs:{...(x=f.parameters)==null?void 0:x.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
sentence: 'True Focus',
|
|
4
4
|
separator: ' ',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as m}from"./iframe-
|
|
1
|
+
import{r as l,j as m}from"./iframe-CvT6MryR.js";import{m as T}from"./proxy-0exJiild.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BdSKNtzx.js";const E={"variable-proximity":"_variable-proximity_14yrm_3","sr-only":"_sr-only_14yrm_7"};function W(e){l.useEffect(()=>{let r;const c=()=>{e(),r=requestAnimationFrame(c)};return r=requestAnimationFrame(c),()=>cancelAnimationFrame(r)},[e])}function O(e){const r=l.useRef({x:0,y:0});return l.useEffect(()=>{const c=(n,a)=>{if(e!=null&&e.current){const y=e.current.getBoundingClientRect();r.current={x:n-y.left,y:a-y.top}}else r.current={x:n,y:a}},p=n=>c(n.clientX,n.clientY),d=n=>{const a=n.touches[0];c(a.clientX,a.clientY)};return window.addEventListener("mousemove",p),window.addEventListener("touchmove",d),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("touchmove",d)}},[e]),r}const x=l.forwardRef((e,r)=>{const{label:c,fromFontVariationSettings:p,toFontVariationSettings:d,containerRef:n,radius:a=50,falloff:y="linear",className:C="",onClick:z,style:A,...L}=e,V=l.useRef([]),b=l.useRef([]),h=O(n),w=l.useRef({x:null,y:null}),N=l.useMemo(()=>{const s=t=>new Map(t.split(",").map(i=>i.trim()).map(i=>{const[f,S]=i.split(" ");return[f.replace(/['"]/g,""),parseFloat(S)]})),o=s(p),u=s(d);return Array.from(o.entries()).map(([t,i])=>({axis:t,fromValue:i,toValue:u.get(t)??i}))},[p,d]),$=(s,o,u,t)=>Math.sqrt((u-s)**2+(t-o)**2),k=s=>{const o=Math.min(Math.max(1-s/a,0),1);switch(y){case"exponential":return o**2;case"gaussian":return Math.exp(-((s/(a/2))**2)/2);case"linear":default:return o}};W(()=>{if(!(n!=null&&n.current))return;const s=n.current.getBoundingClientRect(),{x:o,y:u}=h.current;w.current.x===o&&w.current.y===u||(w.current={x:o,y:u},V.current.forEach((t,i)=>{if(!t)return;const f=t.getBoundingClientRect(),S=f.left+f.width/2-s.left,I=f.top+f.height/2-s.top,P=$(h.current.x,h.current.y,S,I);if(P>=a){t.style.fontVariationSettings=p;return}const q=k(P),j=N.map(({axis:D,fromValue:F,toValue:X})=>{const Y=F+(X-F)*q;return`'${D}' ${Y}`}).join(", ");b.current[i]=j,t.style.fontVariationSettings=j}))});const v=c.split(" ");let B=0;return m.jsxs("span",{ref:r,className:`${C} ${E["variable-proximity"]}`,onClick:z,style:{display:"inline",...A},...L,children:[v.map((s,o)=>m.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[s.split("").map(u=>{const t=B++;return m.jsx(T.span,{ref:i=>{V.current[t]=i},style:{display:"inline-block",fontVariationSettings:b.current[t]},"aria-hidden":"true",children:u},t)}),o<v.length-1&&m.jsx("span",{style:{display:"inline-block"},children:" "})]},o)),m.jsx("span",{className:`${E["sr-only"]}`,children:c})]})});x.displayName="VariableProximity";x.__docgenInfo={description:"",methods:[],displayName:"VariableProximity"};const U={title:"ReactBits/TextAnimations/VariableProximity",component:x,parameters:{layout:"fullscreen"},tags:["autodocs"]},G=e=>{const r=l.useRef(null);return m.jsx("div",{ref:r,style:{position:"relative",width:"100%",height:"300px",display:"flex",alignItems:"center",justifyContent:"center",background:"#000"},children:m.jsx(x,{...e,containerRef:r})})},g={render:e=>m.jsx(G,{...e}),args:{label:"Variable Proximity",fromFontVariationSettings:"'wght' 400, 'opsz' 9",toFontVariationSettings:"'wght' 900, 'opsz' 40",radius:150,falloff:"linear",style:{fontSize:"3rem",color:"#fff"}}};var M,_,R;g.parameters={...g.parameters,docs:{...(M=g.parameters)==null?void 0:M.docs,source:{originalSource:`{
|
|
2
2
|
render: args => <VariableProximityWrapper {...args} />,
|
|
3
3
|
args: {
|
|
4
4
|
label: 'Variable Proximity',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as J}from"./iframe-
|
|
1
|
+
import{r as i,j as J}from"./iframe-CvT6MryR.js";import"./preload-helper-C1FmrZbK.js";const le="_waves_vgm9y_1",K={waves:le,"waves-canvas":"_waves-canvas_vgm9y_25"};class l{constructor(s,r,o){this.x=s,this.y=r,this.z=o}dot2(s,r){return this.x*s+this.y*r}}class ie{constructor(s=0){this.grad3=[new l(1,1,0),new l(-1,1,0),new l(1,-1,0),new l(-1,-1,0),new l(1,0,1),new l(-1,0,1),new l(1,0,-1),new l(-1,0,-1),new l(0,1,1),new l(0,-1,1),new l(0,1,-1),new l(0,-1,-1)],this.p=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],this.perm=new Array(512),this.gradP=new Array(512),this.seed(s)}seed(s){s>0&&s<1&&(s*=65536),s=Math.floor(s),s<256&&(s|=s<<8);for(let r=0;r<256;r++){let o=r&1?this.p[r]^s&255:this.p[r]^s>>8&255;this.perm[r]=this.perm[r+256]=o,this.gradP[r]=this.gradP[r+256]=this.grad3[o%12]}}fade(s){return s*s*s*(s*(s*6-15)+10)}lerp(s,r,o){return(1-o)*s+o*r}perlin2(s,r){let o=Math.floor(s),f=Math.floor(r);s-=o,r-=f,o&=255,f&=255;const g=this.gradP[o+this.perm[f]].dot2(s,r),M=this.gradP[o+this.perm[f+1]].dot2(s,r-1),R=this.gradP[o+1+this.perm[f]].dot2(s-1,r),q=this.gradP[o+1+this.perm[f+1]].dot2(s-1,r-1),x=this.fade(s);return this.lerp(this.lerp(g,R,x),this.lerp(M,q,x),this.fade(r))}}const ee=({lineColor:p="black",backgroundColor:s="transparent",waveSpeedX:r=.0125,waveSpeedY:o=.005,waveAmpX:f=32,waveAmpY:g=16,xGap:M=10,yGap:R=32,friction:q=.925,tension:x=.005,maxCursorMove:A=100,style:te={},className:se=""})=>{const X=i.useRef(null),Y=i.useRef(null),$=i.useRef(null),w=i.useRef({width:0,height:0,left:0,top:0}),re=i.useRef(new ie(Math.random())),E=i.useRef([]),S=i.useRef({x:-10,y:0,lx:0,ly:0,sx:0,sy:0,v:0,vs:0,a:0,set:!1}),V=i.useRef({lineColor:p,waveSpeedX:r,waveSpeedY:o,waveAmpX:f,waveAmpY:g,friction:q,tension:x,maxCursorMove:A,xGap:M,yGap:R}),b=i.useRef(null);return i.useEffect(()=>{V.current={lineColor:p,waveSpeedX:r,waveSpeedY:o,waveAmpX:f,waveAmpY:g,friction:q,tension:x,maxCursorMove:A,xGap:M,yGap:R}},[p,r,o,f,g,q,x,A,M,R]),i.useEffect(()=>{console.log("Waves mounted");const j=Y.current,z=X.current;$.current=j.getContext("2d");function T(){w.current=z.getBoundingClientRect(),j.width=w.current.width,j.height=w.current.height}function B(){const{width:n,height:e}=w.current;E.current=[];const t=n+200,c=e+30,{xGap:u,yGap:v}=V.current,m=Math.ceil(t/u),d=Math.ceil(c/v),y=(n-u*m)/2,P=(e-v*d)/2;for(let h=0;h<=m;h++){const L=[];for(let a=0;a<=d;a++)L.push({x:y+u*h,y:P+v*a,wave:{x:0,y:0},cursor:{x:0,y:0,vx:0,vy:0}});E.current.push(L)}}function ae(n){const e=E.current,t=S.current,c=re.current,{waveSpeedX:u,waveSpeedY:v,waveAmpX:m,waveAmpY:d,friction:y,tension:P,maxCursorMove:h}=V.current;e.forEach(L=>{L.forEach(a=>{const I=c.perlin2((a.x+n*u)*.002,(a.y+n*v)*.0015)*12;a.wave.x=Math.cos(I)*m,a.wave.y=Math.sin(I)*d;const oe=a.x-t.sx,ce=a.y-t.sy,W=Math.hypot(oe,ce),_=Math.max(175,t.vs);if(W<_){const ue=1-W/_,O=Math.cos(W*.001)*ue;a.cursor.vx+=Math.cos(t.a)*O*_*t.vs*65e-5,a.cursor.vy+=Math.sin(t.a)*O*_*t.vs*65e-5}a.cursor.vx+=(0-a.cursor.x)*P,a.cursor.vy+=(0-a.cursor.y)*P,a.cursor.vx*=y,a.cursor.vy*=y,a.cursor.x+=a.cursor.vx*2,a.cursor.y+=a.cursor.vy*2,a.cursor.x=Math.min(h,Math.max(-h,a.cursor.x)),a.cursor.y=Math.min(h,Math.max(-h,a.cursor.y))})})}function N(n,e=!0){const t=n.x+n.wave.x+(e?n.cursor.x:0),c=n.y+n.wave.y+(e?n.cursor.y:0);return{x:Math.round(t*10)/10,y:Math.round(c*10)/10}}function ne(){const{width:n,height:e}=w.current,t=$.current;t.clearRect(0,0,n,e),t.beginPath(),t.strokeStyle=V.current.lineColor,E.current.forEach(c=>{let u=N(c[0],!1);t.moveTo(u.x,u.y),c.forEach((v,m)=>{const d=m===c.length-1;u=N(v,!d);const y=N(c[m+1]||c[c.length-1],!d);t.lineTo(u.x,u.y),d&&t.moveTo(y.x,y.y)})}),t.stroke()}function C(n){const e=S.current;e.sx+=(e.x-e.sx)*.1,e.sy+=(e.y-e.sy)*.1;const t=e.x-e.lx,c=e.y-e.ly,u=Math.hypot(t,c);e.v=u,e.vs+=(u-e.vs)*.1,e.vs=Math.min(100,e.vs),e.lx=e.x,e.ly=e.y,e.a=Math.atan2(c,t),z.style.setProperty("--x",`${e.sx}px`),z.style.setProperty("--y",`${e.sy}px`),ae(n),ne(),b.current=requestAnimationFrame(C)}function F(){T(),B()}function G(n){H(n.clientX,n.clientY)}function D(n){const e=n.touches[0];H(e.clientX,e.clientY)}function H(n,e){const t=S.current,c=w.current;t.x=n-c.left,t.y=e-c.top,t.set||(t.sx=t.x,t.sy=t.y,t.lx=t.x,t.ly=t.y,t.set=!0)}return T(),B(),b.current=requestAnimationFrame(C),window.addEventListener("resize",F),window.addEventListener("mousemove",G),window.addEventListener("touchmove",D,{passive:!1}),()=>{window.removeEventListener("resize",F),window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",D),cancelAnimationFrame(b.current)}},[]),J.jsx("div",{ref:X,className:`${K.waves} ${se}`,style:{position:"relative",margin:0,padding:0,width:"100%",minHeight:"100vh",overflow:"hidden",backgroundColor:s,...te},children:J.jsx("canvas",{ref:Y,className:`${K["waves-canvas"]}`})})};ee.__docgenInfo={description:"",methods:[],displayName:"Waves",props:{lineColor:{defaultValue:{value:"'black'",computed:!1},required:!1},backgroundColor:{defaultValue:{value:"'transparent'",computed:!1},required:!1},waveSpeedX:{defaultValue:{value:"0.0125",computed:!1},required:!1},waveSpeedY:{defaultValue:{value:"0.005",computed:!1},required:!1},waveAmpX:{defaultValue:{value:"32",computed:!1},required:!1},waveAmpY:{defaultValue:{value:"16",computed:!1},required:!1},xGap:{defaultValue:{value:"10",computed:!1},required:!1},yGap:{defaultValue:{value:"32",computed:!1},required:!1},friction:{defaultValue:{value:"0.925",computed:!1},required:!1},tension:{defaultValue:{value:"0.005",computed:!1},required:!1},maxCursorMove:{defaultValue:{value:"100",computed:!1},required:!1},style:{defaultValue:{value:"{}",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const he={title:"ReactBits/Backgrounds/Waves",component:ee,parameters:{layout:"fullscreen"},tags:["autodocs"]},k={};var Q,U,Z;k.parameters={...k.parameters,docs:{...(Q=k.parameters)==null?void 0:Q.docs,source:{originalSource:"{}",...(Z=(U=k.parameters)==null?void 0:U.docs)==null?void 0:Z.source}}};const ve=["Default"];export{k as Default,ve as __namedExportsOrder,he as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"./index-Cb6YhhUk.js";var t,o=r;t=o.createRoot,o.hydrateRoot;export{t as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as i}from"./iframe-
|
|
1
|
+
import{R as i}from"./iframe-CvT6MryR.js";var y={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},f=i.createContext&&i.createContext(y),g=["attr","size","title"];function p(e,r){if(e==null)return{};var t,n,o=O(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function O(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},u.apply(null,arguments)}function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?m(Object(t),!0).forEach(function(n){d(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function d(e,r,t){return(r=j(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function j(e){var r=P(e,"string");return typeof r=="symbol"?r:r+""}function P(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function b(e){return e&&e.map((r,t)=>i.createElement(r.tag,c({key:t},r.attr),b(r.child)))}function x(e){return r=>i.createElement(h,u({attr:c({},e.attr)},r),b(e.child))}function h(e){var r=t=>{var{attr:n,size:o,title:a}=e,v=p(e,g),s=o||t.size||"1em",l;return t.className&&(l=t.className),e.className&&(l=(l?l+" ":"")+e.className),i.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,v,{className:l,style:c(c({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&i.createElement("title",null,a),e.children)};return f!==void 0?i.createElement(f.Consumer,null,t=>r(t)):r(y)}export{x as G};
|