@stfrigerio/sito-template 0.1.61 → 0.1.63
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/Calendar/Calendar.stories.d.ts +1 -0
- package/dist/components/organisms/Calendar/Calendar.stories.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{ASCIIText.stories-OSKwRAyY.js → ASCIIText.stories-DkHrXWCd.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-BMrwCHeq.js → AllAtoms.stories-waxJThNZ.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-Bxf47ut1.js → AnimatedContent.stories-DrOs9i5i.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-B1E8UqMr.js → AnimatedList.stories-9tapIYLj.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-I5mdFgmP.js → Antigravity.stories-CrEpmw17.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-DxmE1Rmk.js → ArrayInput.stories-Dkv2Fs5D.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-DTyse-oN.js → Aurora.stories-DzEZa36h.js} +1 -1
- package/storybook-static/assets/{Beams.stories-BTOldQ0-.js → Beams.stories-Dg0YZogM.js} +7 -7
- package/storybook-static/assets/{BlobCursor.stories-C_EhL1Sb.js → BlobCursor.stories-ChN77F1_.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-DBE9duA2.js → BlurText.stories-B6O3Y9Qx.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-BK-0k1Yf.js → BooleansHeatmap.stories-D6ygO02S.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-DUaNIh97.js → BorderGlow.stories-it1DUOAr.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-DUkNhCYN.js → BubbleMenu.stories-CMbzqRSG.js} +1 -1
- package/storybook-static/assets/{Button-CmL8YExH.js → Button-Df2q9TLX.js} +1 -1
- package/storybook-static/assets/{Button.stories-Qe92VaQO.js → Button.stories-CL5n3Ay0.js} +1 -1
- package/storybook-static/assets/Calendar-CmqcM0p9.css +1 -0
- package/storybook-static/assets/Calendar.stories-90RNlexc.js +367 -0
- package/storybook-static/assets/{Card-BNN9rA1_.js → Card-MgA9P_fJ.js} +1 -1
- package/storybook-static/assets/{Card.stories-DJtwbzzK.js → Card.stories-DNxTL3EL.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-D3WJ4l1d.js → CardNav.stories-sWdln5zg.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-Cl5XZxQx.js → Carousel.stories-B8J-aQFo.js} +1 -1
- package/storybook-static/assets/{Checkbox-NV1yLfww.js → Checkbox-Cweyinr1.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-DEt8_02c.js → Checkbox.stories-CwbhdX3a.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-BPq9jzOX.js → ChromaGrid.stories-DMr32Bt1.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-BKkHClqR.js → CircularGallery.stories-CwNENXzV.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-DL97L-4c.js → CircularText.stories-CDhP_9jw.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-CePCUrfJ.js → ClickSpark.stories-BSZqdW2z.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-qHNzC_b-.js → ColorBends.stories-QVtAqo1p.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-DN2cFFy0.js → CountUp.stories-DERdAmsa.js} +1 -1
- package/storybook-static/assets/{Counter.stories-U-VxTg4K.js → Counter.stories-DZJw2mQj.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-DZ3e7z4E.js → Crosshair.stories-DX5--UkN.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-zndGensK.js → Cubes.stories-Cn7GTO1-.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-CPwaetTg.js → CurvedLoop.stories-b7QSGTSR.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-7UE8YAds.js → DarkVeil.stories-CEo0tnB1.js} +1 -1
- package/storybook-static/assets/{DateInput-C7UYtU2f.js → DateInput-DGQd62gk.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-Blprxd6L.js → DateInput.stories-r4jcppXI.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-CyDj4Rzg.js → DecayCard.stories-B3_X0L_F.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-CcmNeei7.js → DecryptedText.stories-0pQEeoNv.js} +1 -1
- package/storybook-static/assets/{Dither.stories-Cx3gQA5F.js → Dither.stories-D6xl4r8D.js} +1 -1
- package/storybook-static/assets/{Dock.stories-BnetMt5P.js → Dock.stories-IsuDrRS3.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-BM8RRvq2.js → EditFAB.stories-xYYuy1qo.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-CU9FGY5P.js → EvilEye.stories-BdeHZPRd.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-BaWDFQed.js → FadeContent.stories-WewJ9uSB.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-D1AZCPEZ.js → FaultyTerminal.stories-Dz7M8RCy.js} +1 -1
- package/storybook-static/assets/Fbo-BWE8uba_.js +1 -0
- package/storybook-static/assets/{FloatingLines.stories-fehYMPcZ.js → FloatingLines.stories-GR-sBTEO.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-DRGoAotO.js → FlowingMenu.stories-CxMV28Mj.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-DgAiwR5f.js → FluidGlass.stories-BbNC2ZbA.js} +2 -2
- package/storybook-static/assets/{Folder.stories-Bys9N63w.js → Folder.stories-Dq60y3aQ.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-D-74llkc.js → FuzzyText.stories-B9v9hgBM.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-VD6ETxyT.js → Galaxy.stories-TRdBo17M.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-DjMEnN7i.js → GhostCursor.stories-DkwWoA5u.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-6KgkPV6C.js → GlareHover.stories-CwjiCokF.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-Dj1kCNDg.js → GlassSurface.stories-DBCc_lY7.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-DcGDGtvN.js → GlitchText.stories-9X7MlWDt.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-yae-ax1k.js → GooeyNav.stories-D-Vk8UCo.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-B7h647VQ.js → GradientBlinds.stories-Brd6ol6M.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-BPUXNES_.js → GradientText.stories-DxH1CX0B.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-BjFhc8gt.js → Grainient.stories-WJBaB1zK.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-Bm8YB3Nc.js → GridMotion.stories-BhdoomkN.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-BT5Pfqt3.js → ImageSlideshow.stories-D3U7urE5.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-DysieilC.js → Iridescence.stories-CGZqMr5h.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-BJMXiU6b.js → LaserFlow.stories-BFQho2NU.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-Qpkbs2x5.js → LetterGlitch.stories-DY6lSuak.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-D7r7SjN3.js → LightPillar.stories-DOGdIdpI.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-CSmrA40u.js → LightRays.stories-CP5zTmmM.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-0zr6qZVm.js → Lightning.stories-Cwk7Xwdr.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-KgMfrrqs.js → LineWaves.stories-H94GITRR.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-B8ZLHoH1.js → LiquidChrome.stories-_cCTp3XI.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-C4k9P7aN.js → LiquidEther.stories-h87c3L3q.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-Cy3HB7-7.js → LoadingSpinner-C7DqEVlc.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-DDNFJhwe.js → LoadingSpinner.stories-DHncRHKN.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-UqocGxaQ.js → MagicRings.stories-Z3uNcPKa.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-BxvO0Fqj.js → Magnet.stories-BxNuMJr7.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-BMqOFHvT.js → MagnetLines.stories-CpKSa-U1.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-CLwqpLTU.js → Masonry.stories-CTdlvghR.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-B_lPmlPu.js → MetaBalls.stories-80PvdiXC.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-9AWQepP6.js → MetallicPaint.stories-C4EdcyXC.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-B6LHsTmy.js → MoodChart.stories-BFXdwnaC.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-CJ0kpWbz.js → MotionConfigContext--E7FMpuk.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-Cag40GVb.js → Navbar.stories-BF7e2bWD.js} +1 -1
- package/storybook-static/assets/{Noise.stories-BukT-fj1.js → Noise.stories-BRcLgYBs.js} +1 -1
- package/storybook-static/assets/{NumberStepper-Ut_VByYA.js → NumberStepper-Ch5x5PrK.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-3y594BTK.js → NumberStepper.stories-DxQaxv2K.js} +1 -1
- package/storybook-static/assets/{Orb.stories-B45u5gJo.js → Orb.stories-CE87g3tR.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-B_7X-GMA.js → OrbitImages.stories-CRAhM6ry.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-DLrtlyWH.js → PieChart.stories-Cm24QGy-.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-C4ZAaMH_.js → PixelBlast.stories-CuzQW_7q.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-CaOGvNQ_.js → PixelCard.stories-BlMcROgx.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-CGmFGV3L.js → PixelSnow.stories-DynuT7af.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-DzTJZhF-.js → PixelTransition.stories-eNozx93m.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-CoyLfj7o.js → Plasma.stories-ChtNNNrc.js} +1 -1
- package/storybook-static/assets/{Prism.stories-D2E3ZI6g.js → Prism.stories-sm3dMYRl.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-B8PJhK5n.js → PrismaticBurst.stories-D_z89yJm.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-CbRCcyd9.js → ProfileCard.stories-CqeWfYDs.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-BCrpnpyh.js → QuantifiableHabitsChart.stories-DrrHKE0F.js} +1 -1
- package/storybook-static/assets/{Radar.stories-B-Ki4OHb.js → Radar.stories-zy5qwQU2.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-DMBczKgc.js → Ribbons.stories-BxSaDLNg.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-C8dKr2CX.js → RippleGrid.stories-rAWsyq7q.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-DJu0v3mv.js → RotatingText.stories-mkV2rlIW.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-B_edvvO1.js → ScrollFloat.stories-D8eyhiia.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-DTYFesNE.js → ScrollReveal.stories-Dh5sb1qV.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-B2O7zZ2t.js → ScrollVelocity.stories-DhPFdv4u.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-CUEF7Ba4.js → SearchBar.stories-BcKlcmxT.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-C6KY2mIJ.js → SearchableDropdown-CSnm5F56.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-DbSJdUAJ.js → SearchableDropdown.stories-DRqTAxZ6.js} +1 -1
- package/storybook-static/assets/{SelectInput-tDvouCuN.js → SelectInput-Den1Nnwn.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-C6apSsWx.js → SelectInput.stories-BrPNswg0.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-DVQs_Ng0.js → ShapeBlur.stories-DvTGJNwc.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-BjibW7b1.js → ShapeGrid.stories-6BP0isVl.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-DTezLW7e.js → ShinyText.stories-ZZwbWOPG.js} +1 -1
- package/storybook-static/assets/{Silk.stories-fZbeNXOO.js → Silk.stories-C1-V7kmi.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-nqH0hgCL.js → SleepChart.stories-ChlJj4Ew.js} +1 -1
- package/storybook-static/assets/{Slider-DIeyN9Hx.js → Slider-Di8iU87X.js} +1 -1
- package/storybook-static/assets/{Slider.stories-BzcscFcU.js → Slider.stories-jAN9JInC.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-Cvtf3TKB.js → SoftAurora.stories-CxDADr0W.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-Dpq3K-yq.js → SoundDemo.stories-DtGC-_95.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-Y5zBSBCL.js → SplashCursor.stories-BaHlEXXh.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-B1KBEp6T.js → SpotlightCard.stories-DpCgVs1-.js} +1 -1
- package/storybook-static/assets/{Stack.stories-CA5YToyH.js → Stack.stories-NHVMO-AX.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-BvQIujuB.js → StaggeredMenu.stories-BPVZ02oh.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-CHtwoVna.js → StarBorder.stories-BrB_x1nu.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-Ch-ivaQT.js → SunburstChart.stories-CYaTUaLb.js} +1 -1
- package/storybook-static/assets/{Table.stories-CvYZiI3H.js → Table.stories-B0h42fgo.js} +1 -1
- package/storybook-static/assets/Tabs-g0T145-1.css +1 -0
- package/storybook-static/assets/{Tabs.stories-BN3Icfzj.js → Tabs.stories-BT8S87ux.js} +4 -4
- package/storybook-static/assets/{TargetCursor.stories-D1PTwE36.js → TargetCursor.stories-DIWGCQ1G.js} +1 -1
- package/storybook-static/assets/{TextArea-DKtwryA1.js → TextArea-CwTvaCdF.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-CxsYukYi.js → TextArea.stories-B_YB-UHb.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-BouFdSlt.js → TextCursor.stories-C7m4Rv_d.js} +1 -1
- package/storybook-static/assets/{TextInput-CsK2bPrD.js → TextInput-CBe5ODhc.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-fZ3j5ID4.js → TextInput.stories-YzHGVGgo.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-B6pN9RLp.js → TextPressure.stories-CIiY_kL4.js} +1 -1
- package/storybook-static/assets/{TextType.stories-C9jm9TdC.js → TextType.stories-Dz9okejF.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-DHJZPEtd.js → ThemeSwitcher.stories-DM_QEiJI.js} +1 -1
- package/storybook-static/assets/{Threads.stories-BiH2lkaI.js → Threads.stories-BIzOUSgU.js} +1 -1
- package/storybook-static/assets/TimeInput-CxYhmiP9.css +1 -0
- package/storybook-static/assets/TimeInput.stories-BSf0hPVi.js +158 -0
- package/storybook-static/assets/{Toggle-sPP5IZcW.js → Toggle-CdOJMmFM.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-D5BPv-SU.js → Toggle.stories-_Txj4ze_.js} +1 -1
- package/storybook-static/assets/{ToggleButton-DmyfG7tC.js → ToggleButton-D_vuWONi.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-B1AcmGcL.js → ToggleButton.stories-BD6_OYh7.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-CYVbY0Hb.js → TrueFocus.stories-BJ_dLjls.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-BZRrDkSH.js → VariableProximity.stories-1rqKl4pl.js} +1 -1
- package/storybook-static/assets/{Waves.stories-D9BkuCeQ.js → Waves.stories-dkhX5Ce4.js} +1 -1
- package/storybook-static/assets/{check-B3Ha7gnS.js → check-B5r0tzjd.js} +1 -1
- package/storybook-static/assets/{chevron-down-DlPO5f1Y.js → chevron-down-QPfb782p.js} +1 -1
- package/storybook-static/assets/{chevron-right-B8eoaBIh.js → chevron-right-GFyPwiNh.js} +1 -1
- package/storybook-static/assets/client-OawgpumZ.js +1 -0
- package/storybook-static/assets/{createLucideIcon-G8N511cp.js → createLucideIcon-ByiU7ZJ8.js} +1 -1
- package/storybook-static/assets/{download-w1NWX-h6.js → download-D3vsOF1R.js} +1 -1
- package/storybook-static/assets/extends-CF3RwP-h.js +1 -0
- package/storybook-static/assets/{folder-JRyPzO6h.js → folder-C26Km0pr.js} +1 -1
- package/storybook-static/assets/{iconBase-DxMTUG9N.js → iconBase-CN6Wm3_0.js} +1 -1
- package/storybook-static/assets/{iframe-DCkPNH_h.js → iframe-CeVFZPwg.js} +118 -118
- package/storybook-static/assets/{index-BW6Op62F.js → index-9RMlv5zB.js} +6 -6
- package/storybook-static/assets/{index-CsT-CD6f.js → index-CyFWhgij.js} +1 -1
- package/storybook-static/assets/{index-BTVArzym.js → index-DXM2ca3y.js} +1 -1
- package/storybook-static/assets/{proxy-cgPyYfyG.js → proxy-cx8pSoB7.js} +1 -1
- package/storybook-static/assets/{react-18-YVQChixo.js → react-18-BIVbkkhZ.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-_mYjl9J6.js → react-three-fiber.esm-BwGwqvU1.js} +1 -1
- package/storybook-static/assets/{search-DioxI_xb.js → search-CDVqkFUU.js} +1 -1
- package/storybook-static/assets/{settings-DFQ10p72.js → settings-DmDKcCQ7.js} +1 -1
- package/storybook-static/assets/{sun-BfIldVmy.js → sun-DxFjS1jT.js} +1 -1
- package/storybook-static/assets/{trash-2-DqTvgQRR.js → trash-2-CYPq8NbZ.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-CnngNm80.js → use-animation-frame-Dz5JgxAH.js} +1 -1
- package/storybook-static/assets/{use-in-view-DLYDN0EG.js → use-in-view-BnP6JlhT.js} +1 -1
- package/storybook-static/assets/{use-motion-value-Ud8-h3gV.js → use-motion-value-B6yv84Vw.js} +1 -1
- package/storybook-static/assets/{use-spring-DcEBTvl_.js → use-spring-7mmkMtIq.js} +1 -1
- package/storybook-static/assets/{use-transform-8mNuLPFu.js → use-transform-CnZojnG1.js} +1 -1
- package/storybook-static/assets/{useSound-Cv_O9Yec.js → useSound-WbyQ5OGd.js} +1 -1
- package/storybook-static/assets/{users-B5lo7ErU.js → users-CX9SGPy6.js} +1 -1
- package/storybook-static/assets/{x-CgTXkpyT.js → x-K6unsBqY.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/Calendar-CXrUBxYt.css +0 -1
- package/storybook-static/assets/Calendar.stories-DvRq1jLb.js +0 -352
- package/storybook-static/assets/Fbo-BM-i3UPR.js +0 -1
- package/storybook-static/assets/Tabs-CDVjuS9_.css +0 -1
- package/storybook-static/assets/TimeInput-BT44V2P0.css +0 -1
- package/storybook-static/assets/TimeInput.stories-DOyFcxE2.js +0 -13
- package/storybook-static/assets/client-DxIdGip8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,j as i}from"./iframe-
|
|
1
|
+
import{r as p,j as i}from"./iframe-CeVFZPwg.js";import{u as w}from"./useSound-WbyQ5OGd.js";import{m as a}from"./proxy-cx8pSoB7.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 d}from"./iframe-
|
|
1
|
+
import{j as e,r as d}from"./iframe-CeVFZPwg.js";import{T as a}from"./Toggle-CdOJMmFM.js";import{M as g,S as c}from"./sun-DxFjS1jT.js";import{c as T}from"./createLucideIcon-ByiU7ZJ8.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-WbyQ5OGd.js";import"./proxy-cx8pSoB7.js";import"./MotionConfigContext--E7FMpuk.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-CeVFZPwg.js";import{u as S}from"./useSound-WbyQ5OGd.js";import{m as i}from"./proxy-cx8pSoB7.js";import{A as c}from"./index-DXM2ca3y.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-CeVFZPwg.js";import{T as t}from"./ToggleButton-D_vuWONi.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-WbyQ5OGd.js";import"./proxy-cx8pSoB7.js";import"./MotionConfigContext--E7FMpuk.js";import"./index-DXM2ca3y.js";const J={title:"Atoms/ToggleButton",component:t,parameters:{layout:"centered"},argTypes:{active:{control:"boolean"},onClick:{action:"clicked"},icon:{control:"text"},label:{control:"text"},disabled:{control:"boolean"},size:{control:{type:"select"},options:["small","medium","large"]},variant:{control:{type:"select"},options:["default","outlined","filled","ghost"]},activeColor:{control:{type:"select"},options:["primary","secondary","success","danger","warning"]},color:{control:"color"},showCheckmark:{control:"boolean"},animation:{control:{type:"select"},options:["scale","rotate","flip","none"]},tooltip:{control:"text"},hideLabelOnMobile:{control:"boolean"}}},L=a=>{const[l,i]=o.useState(a.active||!1);return e.jsx(t,{...a,active:l,onClick:()=>{var s;i(!l),(s=a.onClick)==null||s.call(a)}})},u={render:a=>e.jsx(L,{...a}),args:{active:!1,icon:"🦷",label:"Teeth"}},m={render:()=>{const[a,l]=o.useState(!1),[i,s]=o.useState(!1),[n,c]=o.useState(!1),[r,p]=o.useState(!1),[d,g]=o.useState(!1),[x,O]=o.useState(!1),[k,M]=o.useState(!1),[h,W]=o.useState(!1),[C,A]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:12},children:"Variants"}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx(t,{active:a,onClick:()=>l(!a),icon:"🎨",label:"Default",variant:"default"}),e.jsx(t,{active:i,onClick:()=>s(!i),icon:"📝",label:"Outlined",variant:"outlined"}),e.jsx(t,{active:n,onClick:()=>c(!n),icon:"🎯",label:"Filled",variant:"filled"}),e.jsx(t,{active:r,onClick:()=>p(!r),icon:"👻",label:"Ghost",variant:"ghost"})]})]}),e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:12},children:"Sizes"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(t,{active:d,onClick:()=>g(!d),icon:"🐁",label:"Small",size:"small"}),e.jsx(t,{active:a,onClick:()=>l(!a),icon:"🐕",label:"Medium",size:"medium"}),e.jsx(t,{active:x,onClick:()=>O(!x),icon:"🐘",label:"Large",size:"large"})]})]}),e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:12},children:"Animations"}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsx(t,{active:k,onClick:()=>M(!k),icon:"🎈",label:"Scale",animation:"scale"}),e.jsx(t,{active:h,onClick:()=>W(!h),icon:"🌀",label:"Rotate",animation:"rotate"}),e.jsx(t,{active:C,onClick:()=>A(!C),icon:"🔄",label:"Flip",animation:"flip"})]})]})]})}},v={render:()=>{const[a,l]=o.useState(!1),[i,s]=o.useState(!1),[n,c]=o.useState(!1),[r,p]=o.useState(!1),[d,g]=o.useState(!1);return e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))",gap:"12px",maxWidth:"400px"},children:[e.jsx(t,{active:a,onClick:()=>l(!a),icon:"🦷",label:"Teeth",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(t,{active:i,onClick:()=>s(!i),icon:"🚿",label:"Shower",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(t,{active:n,onClick:()=>c(!n),icon:"🧘",label:"Meditate",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(t,{active:r,onClick:()=>p(!r),icon:"💊",label:"Vitamins",variant:"outlined",activeColor:"success",showCheckmark:!0}),e.jsx(t,{active:d,onClick:()=>g(!d),icon:"💪",label:"Exercise",variant:"outlined",activeColor:"success",showCheckmark:!0})]})}},f={render:()=>{const[a,l]=o.useState(!1),[i,s]=o.useState(!1),[n,c]=o.useState(!1);return e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[e.jsx(t,{active:a,onClick:()=>l(!a),icon:"❤️",tooltip:"Add to favorites",activeColor:"danger",animation:"scale"}),e.jsx(t,{active:i,onClick:()=>s(!i),icon:"🔖",tooltip:"Bookmark",activeColor:"primary",animation:"flip"}),e.jsx(t,{active:n,onClick:()=>c(!n),icon:"🔔",tooltip:"Enable notifications",activeColor:"warning",animation:"rotate"})]})}};var S,b,y;u.parameters={...u.parameters,docs:{...(S=u.parameters)==null?void 0:S.docs,source:{originalSource:`{
|
|
2
2
|
render: args => <ToggleButtonWrapper {...args} />,
|
|
3
3
|
args: {
|
|
4
4
|
active: false,
|
package/storybook-static/assets/{TrueFocus.stories-CYVbY0Hb.js → TrueFocus.stories-BJ_dLjls.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-CeVFZPwg.js";import{m as T}from"./proxy-cx8pSoB7.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext--E7FMpuk.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:l=.5,pauseBetweenAnimations:v=1})=>{const u=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)%u.length)},(l+v)*1e3);return()=>clearInterval(r)}},[s,l,v,u.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,u.length]);const A=r=>{s&&(k(r),i(r))},F=()=>{s&&i(j)};return n.jsxs("div",{className:`${e["focus-container"]}`,ref:d,children:[u.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 ${l}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:l},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"}},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-CeVFZPwg.js";import{m as T}from"./proxy-cx8pSoB7.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext--E7FMpuk.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"}},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-CeVFZPwg.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"}},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-9RMlv5zB.js";var t,o=r;t=o.createRoot,o.hydrateRoot;export{t as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){return e=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},e.apply(null,arguments)}export{e as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as i}from"./iframe-
|
|
1
|
+
import{R as i}from"./iframe-CeVFZPwg.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};
|