@stfrigerio/sito-template 0.1.71 → 0.1.72
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/Navbar/Navbar.d.ts +3 -3
- package/dist/components/organisms/Navbar/Navbar.d.ts.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{ASCIIText.stories-CwjgEuJ9.js → ASCIIText.stories-BJyiZESR.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-Bpi44HYZ.js → AllAtoms.stories-CgOD8m3f.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-1u-UFi17.js → AnimatedContent.stories-DH-SARB9.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-mVUmPCqf.js → AnimatedList.stories-Ry_skUA3.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-C9HwWmUN.js → Antigravity.stories-BicJnuw8.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-CzRUNpFC.js → ArrayInput.stories-DYpCCBNb.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-CZ6tOyDw.js → Aurora.stories-DPq2ByaS.js} +1 -1
- package/storybook-static/assets/{Beams.stories-DUSSkxn2.js → Beams.stories-C-BOpddV.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-B3Czye_F.js → BlobCursor.stories-DD-byYja.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-zTCdk18T.js → BlurText.stories-CI-bIIKc.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-BnWEPNxI.js → BooleansHeatmap.stories-CEV0eftd.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-BmubU4F3.js → BorderGlow.stories-BE-ilp94.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-B04jjIcf.js → BubbleMenu.stories-D30td5QP.js} +1 -1
- package/storybook-static/assets/{Button-wfSXrxMx.js → Button-B8IhEFx4.js} +1 -1
- package/storybook-static/assets/{Button.stories-DQQco2EQ.js → Button.stories-DE36U0Qh.js} +1 -1
- package/storybook-static/assets/{Calendar.stories-B9TCGcuy.js → Calendar.stories-BgzQTcGv.js} +1 -1
- package/storybook-static/assets/{Card-HMstO9S4.js → Card-BBPiO_B4.js} +1 -1
- package/storybook-static/assets/{Card.stories-BBmi_0dh.js → Card.stories-TNOJS00N.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-CGO2YKaJ.js → CardNav.stories-t1Bp6iKB.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-BEpnw6MT.js → Carousel.stories-D3TV54aM.js} +1 -1
- package/storybook-static/assets/{Checkbox-rs6CCDd2.js → Checkbox-5p-zbzmi.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-1Mc2aGyk.js → Checkbox.stories-8znsCJhi.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-5FjIXfBn.js → ChromaGrid.stories-o3p8Qdx1.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-Cdl8_A0h.js → CircularGallery.stories-BEcnb56N.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-DEk-mBMO.js → CircularText.stories-Cac0HQ7O.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-iH0P_EV-.js → ClickSpark.stories-DS6RKm32.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-Cg44QQwN.js → ColorBends.stories-BLXOpDDP.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-CG5OXs9u.js → CountUp.stories-D0hVlNjf.js} +1 -1
- package/storybook-static/assets/{Counter.stories-1O7sZDnW.js → Counter.stories-D-AgJaFb.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-tBs2EYfR.js → Crosshair.stories-DuRxpkAA.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-DbIJO8oV.js → Cubes.stories-B2K-6Pv7.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-u03ebWkS.js → CurvedLoop.stories-EBWj-ut7.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-CAAtsFI_.js → DarkVeil.stories-BJfxCPIF.js} +1 -1
- package/storybook-static/assets/{DateInput-Dgzr5qdd.js → DateInput-Bl7y2Kqk.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-BHCR5Xz2.js → DateInput.stories-C2Lar4bv.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-DpjieBuP.js → DecayCard.stories-DS3y0loD.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-BAeQcHOZ.js → DecryptedText.stories-B5vYLMUi.js} +1 -1
- package/storybook-static/assets/{Dither.stories-DsPwfT6w.js → Dither.stories-CmPrb3rv.js} +1 -1
- package/storybook-static/assets/{Dock.stories-OLc2U4Pk.js → Dock.stories-CakFuVyb.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-Bu2i-7vg.js → EditFAB.stories-CFhxg94J.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-COGE55Ue.js → EvilEye.stories-BleX83nU.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-0x4yHbgt.js → FadeContent.stories-D2-4qOlC.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-DUwLvxvp.js → FaultyTerminal.stories-CFARBPp4.js} +1 -1
- package/storybook-static/assets/{Fbo-Dk75jk9m.js → Fbo-CfnU58r6.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-CrEOCrVc.js → FloatingLines.stories-Bc0U4qae.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-Bu7zY6aB.js → FlowingMenu.stories-BKmUrbe6.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-8jDsRsqD.js → FluidGlass.stories-BLJOG8Vu.js} +1 -1
- package/storybook-static/assets/{Folder.stories-DWG4wwet.js → Folder.stories-Cxdi_wWi.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-CetTWIj7.js → FuzzyText.stories-CUpUQ6nZ.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-DAUpNReC.js → Galaxy.stories-D7DFTFa9.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-CUdsrtdF.js → GhostCursor.stories-7NVzAeAI.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-De-n7zae.js → GlareHover.stories-DZiYzLd8.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-DUNqzwbj.js → GlassSurface.stories-CGVfI4xp.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-CFzxhfho.js → GlitchText.stories-DHeDmX4A.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-BJuZ0PKJ.js → GooeyNav.stories-CM8SswAh.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-Byla9NI-.js → GradientBlinds.stories-dLv1UfQ7.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-DRV-F3rp.js → GradientText.stories-1BJgOxi2.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-A3xVF0CI.js → Grainient.stories-CzG5cjll.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-k5rGv9Ew.js → GridMotion.stories-ItIwnA44.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-CI-E0hQG.js → ImageSlideshow.stories-C-_yjmyr.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-B9kRy59B.js → Iridescence.stories-B1aSL1Oh.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-DnhxtQsq.js → LaserFlow.stories-CRvKzX4a.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-BS3tgTot.js → LetterGlitch.stories-iTeRYMuB.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-Ch6iDPPI.js → LightPillar.stories-XpkpeiMs.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-96j1kh6q.js → LightRays.stories-lQANYMqj.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-B1X3GI94.js → Lightning.stories-ChKmI-y_.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-3yb-Gtwr.js → LineWaves.stories-DhGVNsQB.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-WTpyqW7K.js → LiquidChrome.stories-CnkZ7Wr3.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-d3WyZQDd.js → LiquidEther.stories-BU1_utEW.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-j0OUWyjZ.js → LoadingSpinner-j8Mi9qAD.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-V5Mfbr_A.js → LoadingSpinner.stories-D_3FCjkK.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-nxTUbOEQ.js → MagicRings.stories-mxBWDoWy.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-CCc47Jka.js → Magnet.stories-Dz0t_1eS.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-D-uxaOJV.js → MagnetLines.stories-Jy4OaYyY.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-vW2knxde.js → Masonry.stories-BRjBN5H3.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-tVKhRgBG.js → MetaBalls.stories-Dfk1k_wH.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-CRyFkVKF.js → MetallicPaint.stories-C1bMxsZM.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-DcdCTegz.js → MoodChart.stories-C324AbEU.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-gtuPlUge.js → MotionConfigContext-BgQoFUhc.js} +1 -1
- package/storybook-static/assets/Navbar.stories-sGOUKXXC.js +186 -0
- package/storybook-static/assets/{Noise.stories-DyJIJUI1.js → Noise.stories-_7O9uBP8.js} +1 -1
- package/storybook-static/assets/{NumberStepper-Dn0f_CGn.js → NumberStepper-DMw68Bdj.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-DM6nY1u9.js → NumberStepper.stories-C34Q1o9V.js} +1 -1
- package/storybook-static/assets/{Orb.stories-DouEXJAu.js → Orb.stories-Dy5JbOzp.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-DjRyNXD-.js → OrbitImages.stories-FfsyN9Iu.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-BY1dJDRv.js → PieChart.stories-OHDVp0RT.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-CvztMISj.js → PixelBlast.stories-DFKSutAz.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-czcj-4NC.js → PixelCard.stories-CTsY_vyI.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-CqxqR746.js → PixelSnow.stories-BlJBcWYF.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-Dc8UkKjn.js → PixelTransition.stories-CmBbK0DM.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-Dg2AZLjZ.js → Plasma.stories-QX3D_L78.js} +1 -1
- package/storybook-static/assets/{Prism.stories-BeDFq0RV.js → Prism.stories-D48sGYp7.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-BoKU6BsE.js → PrismaticBurst.stories-Dn2F2mIk.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-CTN6lHX_.js → ProfileCard.stories-Ct8ww3Sq.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-DCEv5Jlh.js → QuantifiableHabitsChart.stories-DuL527Qx.js} +1 -1
- package/storybook-static/assets/{Radar.stories-Bj0WRDFi.js → Radar.stories-ClTlR1N5.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-BZ0-6WXQ.js → Ribbons.stories-R7WgM-S8.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-CA8fhglD.js → RippleGrid.stories-DhMFo-nj.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-GRgWk8wg.js → RotatingText.stories-BDF0Yr7Z.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-DQAep0xZ.js → ScrollFloat.stories-Cyf50ogn.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-DESnpDqF.js → ScrollReveal.stories-DzCw2cHi.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-Fqg6LSc8.js → ScrollVelocity.stories-BofLpgQE.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-Cg0kSrHc.js → SearchBar.stories-B5r2LH16.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-DogKMXhj.js → SearchableDropdown-B6k12izZ.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-Di_rWviF.js → SearchableDropdown.stories-Bopbhioo.js} +1 -1
- package/storybook-static/assets/{SelectInput-CFam5JrL.js → SelectInput-DRue6-AH.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-B7ay2ZL3.js → SelectInput.stories-BTJwfB38.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-BcxnlVe4.js → ShapeBlur.stories-DT3G8P3a.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-DAu9WmFu.js → ShapeGrid.stories-DlmncXQS.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-B_gTwT7Y.js → ShinyText.stories-D2oMmZfL.js} +1 -1
- package/storybook-static/assets/{Silk.stories-CzbXwYWf.js → Silk.stories-Dxqi0p3h.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-Di_C26sX.js → SleepChart.stories-DotKmS0C.js} +1 -1
- package/storybook-static/assets/{Slider-B9WJhWgF.js → Slider-DeiM0g6-.js} +1 -1
- package/storybook-static/assets/{Slider.stories-BJHwcAMF.js → Slider.stories-D88AA3EG.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-kbH9cSpO.js → SoftAurora.stories-BEnpasA2.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-B6S10F7a.js → SoundDemo.stories-C11x2srG.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-DAxK6t9E.js → SplashCursor.stories-Cwszrlxd.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-CciSkBEv.js → SpotlightCard.stories-DCt3hEip.js} +1 -1
- package/storybook-static/assets/{Stack.stories-DFViIB7q.js → Stack.stories-By_aMVjW.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-YcuPVZPt.js → StaggeredMenu.stories-eF4uJ1MS.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-1-Oyd_5O.js → StarBorder.stories-2kJPpjuh.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-CZT9Ph7a.js → SunburstChart.stories-DwZaIIku.js} +1 -1
- package/storybook-static/assets/{Table.stories-C4M5zwtP.js → Table.stories-pZd9DvuZ.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-DNaVR-eu.js → Tabs.stories-DQtCc0JU.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-N4remRSz.js → TargetCursor.stories-KNijJURB.js} +1 -1
- package/storybook-static/assets/{TextArea-CeqAZ5AD.js → TextArea-BsBttKqQ.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-B04MM0KP.js → TextArea.stories-oB8MzoXg.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-BLN2feY_.js → TextCursor.stories-D67PSwe-.js} +1 -1
- package/storybook-static/assets/{TextInput-DCOr-Btn.js → TextInput-CjoPiwWi.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-BQwVwClB.js → TextInput.stories-B8VwO9KM.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-Q4lRye5j.js → TextPressure.stories-0-6_dNGJ.js} +1 -1
- package/storybook-static/assets/{TextType.stories-Cn3KiZYs.js → TextType.stories-D7wi-Xoy.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories--EaDJTJ0.js → ThemeSwitcher.stories-DEUFGF9B.js} +1 -1
- package/storybook-static/assets/{Threads.stories-CgVgk4xS.js → Threads.stories-BYTbEuF6.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-DC3oRpuG.js → TimeInput.stories-_1M5i4X_.js} +1 -1
- package/storybook-static/assets/{Toggle-DviTJSME.js → Toggle-CaV_CmDs.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-B-kk79ff.js → Toggle.stories-DBdNHwn1.js} +1 -1
- package/storybook-static/assets/{ToggleButton-D-6-qBo1.js → ToggleButton-jv6c5ezW.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-B2jNcd_g.js → ToggleButton.stories-D6AsjlA7.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-CznLWB93.js → TrueFocus.stories-CKc72PLP.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-DF54x2j1.js → VariableProximity.stories-fbDCLDLp.js} +1 -1
- package/storybook-static/assets/{Waves.stories-TgNpPUFH.js → Waves.stories-C_VysexU.js} +1 -1
- package/storybook-static/assets/{check-Clr1SyVQ.js → check-CV4xXNXR.js} +1 -1
- package/storybook-static/assets/{chevron-down-9dE_f7KJ.js → chevron-down-CkJFLecG.js} +1 -1
- package/storybook-static/assets/{chevron-right-BoBXGDdh.js → chevron-right-BpRTWC1z.js} +1 -1
- package/storybook-static/assets/client-Cor4ozso.js +1 -0
- package/storybook-static/assets/{createLucideIcon-BYma-pZP.js → createLucideIcon-CltDwvOP.js} +1 -1
- package/storybook-static/assets/{download-CZActf1i.js → download-SJcs72V4.js} +1 -1
- package/storybook-static/assets/{folder-hxUWwa0z.js → folder-6SjOmErA.js} +1 -1
- package/storybook-static/assets/{iconBase-nw2ic-VZ.js → iconBase-DtvD0saU.js} +1 -1
- package/storybook-static/assets/{iframe-DeUB-sow.js → iframe-Bipsh9dY.js} +3 -3
- package/storybook-static/assets/{index-Ddbt8J-4.js → index-BEA1mHaT.js} +1 -1
- package/storybook-static/assets/{index-BouVZTao.js → index-CTm0VtvQ.js} +1 -1
- package/storybook-static/assets/{index-B91nm_hV.js → index-Cia0c3io.js} +1 -1
- package/storybook-static/assets/{proxy-CGOWLFI9.js → proxy-D9bljBhB.js} +1 -1
- package/storybook-static/assets/{react-18-aOUg2FhO.js → react-18-JTQzpdif.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-CEXLtOZY.js → react-three-fiber.esm-Dc5EQDgd.js} +1 -1
- package/storybook-static/assets/{search-B02YiHrH.js → search-DH8smCRL.js} +1 -1
- package/storybook-static/assets/{settings-KaeFuAWM.js → settings-D99Exe-t.js} +1 -1
- package/storybook-static/assets/{sun-Byq_SlmS.js → sun-B6fJHO8-.js} +1 -1
- package/storybook-static/assets/{trash-2-k8BZtDWO.js → trash-2-Bc-vtAZE.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-smxOqIvj.js → use-animation-frame-CD6uZr8a.js} +1 -1
- package/storybook-static/assets/{use-in-view-BcwWANRX.js → use-in-view-DrFhenAa.js} +1 -1
- package/storybook-static/assets/{use-motion-value-StM-uKCi.js → use-motion-value-wsIqdv-r.js} +1 -1
- package/storybook-static/assets/{use-spring-P5hwkYBq.js → use-spring-C6saxCCT.js} +1 -1
- package/storybook-static/assets/{use-transform-D3sLak7o.js → use-transform-DuAStHvG.js} +1 -1
- package/storybook-static/assets/{useSound-K12Qio3c.js → useSound-BwsWxODM.js} +1 -1
- package/storybook-static/assets/{users-_rOO1DQg.js → users-GH_nMWDP.js} +1 -1
- package/storybook-static/assets/{x-jCtIZ166.js → x-DwbjixG_.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/Navbar.stories-BORRPKgI.js +0 -186
- package/storybook-static/assets/client-fkBkqlp7.js +0 -1
package/storybook-static/assets/{Checkbox.stories-1Mc2aGyk.js → Checkbox.stories-8znsCJhi.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,j as t}from"./iframe-
|
|
1
|
+
import{r as g,j as t}from"./iframe-Bipsh9dY.js";import{C as s}from"./Checkbox-5p-zbzmi.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-BwsWxODM.js";const E={title:"Atoms/Checkbox",component:s,parameters:{layout:"centered",docs:{description:{component:"A simple checkbox component with optional label."}}},tags:["autodocs"],argTypes:{checked:{control:"boolean"},label:{control:"text"},disabled:{control:"boolean"},onChange:{action:"changed"}}},n={args:{checked:!1,label:"Accept terms and conditions",onChange:()=>{}}},c={args:{checked:!1,label:"This option is disabled",disabled:!0,onChange:()=>{}}},i={args:{checked:!1,label:"Multiple checkboxes example",onChange:()=>{}},render:()=>{const[e,a]=g.useState({option1:!1,option2:!0,option3:!1,option4:!1});return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[t.jsx(s,{checked:e.option1,onChange:o=>a({...e,option1:o}),label:"Enable notifications"}),t.jsx(s,{checked:e.option2,onChange:o=>a({...e,option2:o}),label:"Receive marketing emails"}),t.jsx(s,{checked:e.option3,onChange:o=>a({...e,option3:o}),label:"Share usage statistics"}),t.jsx(s,{checked:e.option4,onChange:o=>a({...e,option4:o}),label:"Enable dark mode",disabled:!0})]})},parameters:{controls:{disable:!0}}};var l,r,p;n.parameters={...n.parameters,docs:{...(l=n.parameters)==null?void 0:l.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
checked: false,
|
|
4
4
|
label: 'Accept terms and conditions',
|
package/storybook-static/assets/{ChromaGrid.stories-5FjIXfBn.js → ChromaGrid.stories-o3p8Qdx1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as a}from"./iframe-
|
|
1
|
+
import{r as l,j as a}from"./iframe-Bipsh9dY.js";import{g as d}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const M="_role_1xucs_102",q="_handle_1xucs_103",t={"chroma-grid":"_chroma-grid_1xucs_1","chroma-card":"_chroma-card_1xucs_36","chroma-img-wrapper":"_chroma-img-wrapper_1xucs_72","chroma-info":"_chroma-info_1xucs_90",role:M,handle:q,"chroma-overlay":"_chroma-overlay_1xucs_107","chroma-fade":"_chroma-fade_1xucs_140"},b=({items:c,className:C="",radius:x=300,columns:y=3,rows:B=2,damping:_=.45,fadeOut:F=.6,ease:k="power3.out"})=>{const m=l.useRef(null),p=l.useRef(null),o=l.useRef(null),s=l.useRef(null),i=l.useRef({x:0,y:0}),E=[{image:"https://i.pravatar.cc/300?img=8",title:"Alex Rivera",subtitle:"Full Stack Developer",handle:"@alexrivera",borderColor:"#4F46E5",gradient:"linear-gradient(145deg, #4F46E5, #000)",url:"https://github.com/"},{image:"https://i.pravatar.cc/300?img=11",title:"Jordan Chen",subtitle:"DevOps Engineer",handle:"@jordanchen",borderColor:"#10B981",gradient:"linear-gradient(210deg, #10B981, #000)",url:"https://linkedin.com/in/"},{image:"https://i.pravatar.cc/300?img=3",title:"Morgan Blake",subtitle:"UI/UX Designer",handle:"@morganblake",borderColor:"#F59E0B",gradient:"linear-gradient(165deg, #F59E0B, #000)",url:"https://dribbble.com/"},{image:"https://i.pravatar.cc/300?img=16",title:"Casey Park",subtitle:"Data Scientist",handle:"@caseypark",borderColor:"#EF4444",gradient:"linear-gradient(195deg, #EF4444, #000)",url:"https://kaggle.com/"},{image:"https://i.pravatar.cc/300?img=25",title:"Sam Kim",subtitle:"Mobile Developer",handle:"@thesamkim",borderColor:"#8B5CF6",gradient:"linear-gradient(225deg, #8B5CF6, #000)",url:"https://github.com/"},{image:"https://i.pravatar.cc/300?img=60",title:"Tyler Rodriguez",subtitle:"Cloud Architect",handle:"@tylerrod",borderColor:"#06B6D4",gradient:"linear-gradient(135deg, #06B6D4, #000)",url:"https://aws.amazon.com/"}],D=c!=null&&c.length?c:E;l.useEffect(()=>{const e=m.current;if(!e)return;o.current=d.quickSetter(e,"--x","px"),s.current=d.quickSetter(e,"--y","px");const{width:r,height:n}=e.getBoundingClientRect();i.current={x:r/2,y:n/2},o.current(i.current.x),s.current(i.current.y)},[]);const w=(e,r)=>{d.to(i.current,{x:e,y:r,duration:_,ease:k,onUpdate:()=>{var n,u;(n=o.current)==null||n.call(o,i.current.x),(u=s.current)==null||u.call(s,i.current.y)},overwrite:!0})},R=e=>{const r=m.current.getBoundingClientRect();w(e.clientX-r.left,e.clientY-r.top),d.to(p.current,{opacity:0,duration:.25,overwrite:!0})},j=()=>{d.to(p.current,{opacity:1,duration:F,overwrite:!0})},S=e=>{e&&window.open(e,"_blank","noopener,noreferrer")},N=e=>{const r=e.currentTarget,n=r.getBoundingClientRect(),u=e.clientX-n.left,$=e.clientY-n.top;r.style.setProperty("--mouse-x",`${u}px`),r.style.setProperty("--mouse-y",`${$}px`)};return a.jsxs("div",{ref:m,className:`${t["chroma-grid"]} ${C}`,style:{"--r":`${x}px`,"--cols":y,"--rows":B},onPointerMove:R,onPointerLeave:j,children:[D.map((e,r)=>a.jsxs("article",{className:`${t["chroma-card"]}`,onMouseMove:N,onClick:()=>S(e.url),style:{"--card-border":e.borderColor||"transparent","--card-gradient":e.gradient,cursor:e.url?"pointer":"default"},children:[a.jsx("div",{className:`${t["chroma-img-wrapper"]}`,children:a.jsx("img",{src:e.image,alt:e.title,loading:"lazy"})}),a.jsxs("footer",{className:`${t["chroma-info"]}`,children:[a.jsx("h3",{className:"name",children:e.title}),e.handle&&a.jsx("span",{className:`${t.handle}`,children:e.handle}),a.jsx("p",{className:`${t.role}`,children:e.subtitle}),e.location&&a.jsx("span",{className:"location",children:e.location})]})]},r)),a.jsx("div",{className:`${t["chroma-overlay"]}`}),a.jsx("div",{ref:p,className:`${t["chroma-fade"]}`})]})};b.__docgenInfo={description:"",methods:[],displayName:"ChromaGrid",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},radius:{defaultValue:{value:"300",computed:!1},required:!1},columns:{defaultValue:{value:"3",computed:!1},required:!1},rows:{defaultValue:{value:"2",computed:!1},required:!1},damping:{defaultValue:{value:"0.45",computed:!1},required:!1},fadeOut:{defaultValue:{value:"0.6",computed:!1},required:!1},ease:{defaultValue:{value:"'power3.out'",computed:!1},required:!1}}};const V={title:"ReactBits/Components/ChromaGrid",component:b,parameters:{layout:"fullscreen"}},g={args:{items:[{image:"https://i.pravatar.cc/300?img=8",title:"Alex Rivera",subtitle:"Full Stack Developer",handle:"@alexrivera",borderColor:"#4F46E5",gradient:"linear-gradient(145deg, #4F46E5, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=11",title:"Jordan Chen",subtitle:"DevOps Engineer",handle:"@jordanchen",borderColor:"#10B981",gradient:"linear-gradient(210deg, #10B981, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=3",title:"Morgan Blake",subtitle:"UI/UX Designer",handle:"@morganblake",borderColor:"#F59E0B",gradient:"linear-gradient(165deg, #F59E0B, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=16",title:"Casey Park",subtitle:"Data Scientist",handle:"@caseypark",borderColor:"#EF4444",gradient:"linear-gradient(195deg, #EF4444, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=25",title:"Sam Kim",subtitle:"Mobile Developer",handle:"@thesamkim",borderColor:"#8B5CF6",gradient:"linear-gradient(225deg, #8B5CF6, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=60",title:"Tyler Rodriguez",subtitle:"Cloud Architect",handle:"@tylerrod",borderColor:"#06B6D4",gradient:"linear-gradient(135deg, #06B6D4, #000)",url:"#"}],radius:300,columns:3,rows:2,damping:.45,fadeOut:.6,ease:"power3.out"}};var h,v,f;g.parameters={...g.parameters,docs:{...(h=g.parameters)==null?void 0:h.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
items: [{
|
|
4
4
|
image: 'https://i.pravatar.cc/300?img=8',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as S,j as A}from"./iframe-
|
|
1
|
+
import{r as S,j as A}from"./iframe-Bipsh9dY.js";import{G as V,R as j,T as _,P as C,M as R}from"./Mesh-CwXV3WjE.js";import{C as G}from"./Camera-BM3HOhP6.js";import{T as D}from"./Texture-BkQWYNP2.js";import"./preload-helper-C1FmrZbK.js";class b extends V{constructor(e,{width:t=1,height:i=1,widthSegments:s=1,heightSegments:n=1,attributes:a={}}={}){const r=s,o=n,h=(r+1)*(o+1),l=r*o*6,m=new Float32Array(h*3),g=new Float32Array(h*3),v=new Float32Array(h*2),w=l>65536?new Uint32Array(l):new Uint16Array(l);b.buildPlane(m,g,v,w,t,i,0,r,o),Object.assign(a,{position:{size:3,data:m},normal:{size:3,data:g},uv:{size:2,data:v},index:{data:w}}),super(e,a)}static buildPlane(e,t,i,s,n,a,r,o,h,l=0,m=1,g=2,v=1,w=-1,d=0,f=0){const x=d,P=n/o,U=a/h;for(let u=0;u<=h;u++){let I=u*U-a/2;for(let p=0;p<=o;p++,d++){let B=p*P-n/2;if(e[d*3+l]=B*v,e[d*3+m]=I*w,e[d*3+g]=r/2,t[d*3+l]=0,t[d*3+m]=0,t[d*3+g]=r>=0?1:-1,i[d*2]=p/o,i[d*2+1]=1-u/h,u===h||p===o)continue;let F=x+p+u*(o+1),M=x+p+(u+1)*(o+1),W=x+p+(u+1)*(o+1)+1,T=x+p+u*(o+1)+1;s[f*6]=F,s[f*6+1]=M,s[f*6+2]=T,s[f*6+3]=M,s[f*6+4]=W,s[f*6+5]=T,f++}}}}const q={"circular-gallery":"_circular-gallery_p9017_1"};function k(c,e){let t;return function(...i){clearTimeout(t),t=setTimeout(()=>c.apply(this,i),e)}}function H(c,e,t){return c+(e-c)*t}function N(c){const e=Object.getPrototypeOf(c);Object.getOwnPropertyNames(e).forEach(t=>{t!=="constructor"&&typeof c[t]=="function"&&(c[t]=c[t].bind(c))})}function X(c,e,t="bold 30px monospace",i="black"){const s=document.createElement("canvas"),n=s.getContext("2d");n.font=t;const a=n.measureText(e),r=Math.ceil(a.width),o=Math.ceil(parseInt(t,10)*1.2);s.width=r+20,s.height=o+20,n.font=t,n.fillStyle=i,n.textBaseline="middle",n.textAlign="center",n.clearRect(0,0,s.width,s.height),n.fillText(e,s.width/2,s.height/2);const h=new D(c,{generateMipmaps:!1});return h.image=s,{texture:h,width:s.width,height:s.height}}class Y{constructor({gl:e,plane:t,renderer:i,text:s,textColor:n="#545050",font:a="30px sans-serif"}){N(this),this.gl=e,this.plane=t,this.renderer=i,this.text=s,this.textColor=n,this.font=a,this.createMesh()}createMesh(){const{texture:e,width:t,height:i}=X(this.gl,this.text,this.font,this.textColor),s=new b(this.gl),n=new C(this.gl,{vertex:`
|
|
2
2
|
attribute vec3 position;
|
|
3
3
|
attribute vec2 uv;
|
|
4
4
|
uniform mat4 modelViewMatrix;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as A,j as g}from"./iframe-
|
|
1
|
+
import{r as A,j as g}from"./iframe-Bipsh9dY.js";import{U as _,u as k}from"./MotionConfigContext-BgQoFUhc.js";import{g as w,s as b,m as U}from"./proxy-D9bljBhB.js";import{u as H}from"./use-motion-value-wsIqdv-r.js";import"./preload-helper-C1FmrZbK.js";function $(t){t.values.forEach(e=>e.stop())}function f(t,e){[...e].reverse().forEach(c=>{const o=t.getVariant(c);o&&b(t,o),t.variantChildren&&t.variantChildren.forEach(n=>{f(n,e)})})}function j(t,e){if(Array.isArray(e))return f(t,e);if(typeof e=="string")return f(t,[e]);b(t,e)}function I(){const t=new Set,e={subscribe(s){return t.add(s),()=>void t.delete(s)},start(s,c){const o=[];return t.forEach(n=>{o.push(w(n,s,{transitionOverride:c}))}),Promise.all(o)},set(s){return t.forEach(c=>{j(c,s)})},stop(){t.forEach(s=>{$(s)})},mount(){return()=>{e.stop()}}};return e}function M(){const t=_(I);return k(t.mount,[]),t}const q=M,L={"circular-text":"_circular-text_2sef0_1"},N=(t,e,s=!0)=>({from:e,to:e+360,ease:"linear",duration:t,type:"tween",repeat:s?1/0:0}),i=(t,e)=>({rotate:N(t,e),scale:{type:"spring",damping:20,stiffness:300}}),C=({text:t,spinDuration:e=20,onHover:s="speedUp",className:c=""})=>{const o=Array.from(t),n=q(),l=H(0);A.useEffect(()=>{const r=l.get();n.start({rotate:r+360,scale:1,transition:i(e,r)})},[e,t,s,n,l]);const v=()=>{const r=l.get();if(console.log("CircularText mounted with text:",t),!s)return;let a,u=1;switch(s){case"slowDown":a=i(e*2,r);break;case"speedUp":a=i(e/4,r);break;case"pause":a={rotate:{type:"spring",damping:20,stiffness:300},scale:{type:"spring",damping:20,stiffness:300}},u=1;break;case"goBonkers":a=i(e/20,r),u=.8;break;default:a=i(e,r)}n.start({rotate:r+360,scale:u,transition:a})},T=()=>{const r=l.get();n.start({rotate:r+360,scale:1,transition:i(e,r)})};return g.jsx(U.div,{className:`${L["circular-text"]} ${c}`,style:{rotate:l},initial:{rotate:0},animate:n,onMouseEnter:v,onMouseLeave:T,children:o.map((r,a)=>{const u=360/o.length*a,d=Math.PI/o.length,V=d*a,E=d*a,m=`rotateZ(${u}deg) translate3d(${V}px, ${E}px, 0)`;return g.jsx("span",{style:{transform:m,WebkitTransform:m},children:r},a)})})};C.__docgenInfo={description:"",methods:[],displayName:"CircularText",props:{spinDuration:{defaultValue:{value:"20",computed:!1},required:!1},onHover:{defaultValue:{value:"'speedUp'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const D={title:"ReactBits/TextAnimations/CircularText",component:C,parameters:{layout:"fullscreen"}},p={args:{text:"Hello World",spinDuration:20,onHover:"speedUp"}};var h,x,y;p.parameters={...p.parameters,docs:{...(h=p.parameters)==null?void 0:h.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
text: 'Hello World',
|
|
4
4
|
spinDuration: 20,
|
package/storybook-static/assets/{ClickSpark.stories-iH0P_EV-.js → ClickSpark.stories-DS6RKm32.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as S}from"./iframe-
|
|
1
|
+
import{r as l,j as S}from"./iframe-Bipsh9dY.js";import"./preload-helper-C1FmrZbK.js";const V=({sparkColor:g="#fff",sparkSize:v=10,sparkRadius:x=15,sparkCount:m=8,duration:p=400,easing:R="ease-out",extraScale:k=1,children:b})=>{const i=l.useRef(null),h=l.useRef([]),C=l.useRef(null);l.useEffect(()=>{const e=i.current;if(!e)return;const t=e.parentElement;if(!t)return;let a;const s=()=>{const{width:r,height:c}=t.getBoundingClientRect();(e.width!==r||e.height!==c)&&(e.width=r,e.height=c)},o=()=>{clearTimeout(a),a=setTimeout(s,100)},n=new ResizeObserver(o);return n.observe(t),s(),()=>{n.disconnect(),clearTimeout(a)}},[]);const w=l.useCallback(e=>{switch(R){case"linear":return e;case"ease-in":return e*e;case"ease-in-out":return e<.5?2*e*e:-1+(4-2*e)*e;default:return e*(2-e)}},[R]);l.useEffect(()=>{const e=i.current;if(!e)return;const t=e.getContext("2d");let a;const s=o=>{C.current||(C.current=o),t.clearRect(0,0,e.width,e.height),h.current=h.current.filter(n=>{const r=o-n.startTime;if(r>=p)return!1;const c=r/p,u=w(c),f=u*x*k,y=v*(1-u),A=n.x+f*Math.cos(n.angle),M=n.y+f*Math.sin(n.angle),_=n.x+(f+y)*Math.cos(n.angle),j=n.y+(f+y)*Math.sin(n.angle);return t.strokeStyle=g,t.lineWidth=2,t.beginPath(),t.moveTo(A,M),t.lineTo(_,j),t.stroke(),!0}),a=requestAnimationFrame(s)};return a=requestAnimationFrame(s),()=>{cancelAnimationFrame(a)}},[g,v,x,m,p,w,k]);const z=e=>{const t=i.current;if(!t)return;const a=t.getBoundingClientRect(),s=e.clientX-a.left,o=e.clientY-a.top,n=performance.now(),r=Array.from({length:m},(c,u)=>({x:s,y:o,angle:2*Math.PI*u/m,startTime:n}));h.current.push(...r)};return S.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},onClick:z,children:[S.jsx("canvas",{ref:i,style:{width:"100%",height:"100%",display:"block",userSelect:"none",position:"absolute",top:0,left:0,pointerEvents:"none"}}),b]})};V.__docgenInfo={description:"",methods:[],displayName:"ClickSpark",props:{sparkColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},sparkSize:{defaultValue:{value:"10",computed:!1},required:!1},sparkRadius:{defaultValue:{value:"15",computed:!1},required:!1},sparkCount:{defaultValue:{value:"8",computed:!1},required:!1},duration:{defaultValue:{value:"400",computed:!1},required:!1},easing:{defaultValue:{value:"'ease-out'",computed:!1},required:!1},extraScale:{defaultValue:{value:"1.0",computed:!1},required:!1}}};const I={title:"ReactBits/Animations/ClickSpark",component:V,parameters:{layout:"fullscreen"}},d={args:{sparkColor:"#fff",sparkSize:10,sparkRadius:15,sparkCount:8,duration:400,easing:"ease-out",extraScale:1,children:"Hello World"}};var q,T,E;d.parameters={...d.parameters,docs:{...(q=d.parameters)==null?void 0:q.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
sparkColor: '#fff',
|
|
4
4
|
sparkSize: 10,
|
package/storybook-static/assets/{ColorBends.stories-Cg44QQwN.js → ColorBends.stories-BLXOpDDP.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as n,j as K}from"./iframe-
|
|
1
|
+
import{r as n,j as K}from"./iframe-Bipsh9dY.js";import{d as m,S as Q,a as Z,q as ee,e as L,i as re,M as te,W as oe,s as ne,f as ae}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const ue={"color-bends-container":"_color-bends-container_1e02y_1"},q=8,se=`
|
|
2
2
|
#define MAX_COLORS ${q}
|
|
3
3
|
uniform vec2 uCanvas;
|
|
4
4
|
uniform float uTime;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as n,j as N}from"./iframe-
|
|
1
|
+
import{r as n,j as N}from"./iframe-Bipsh9dY.js";import{u as U}from"./use-motion-value-wsIqdv-r.js";import{u as _}from"./use-spring-C6saxCCT.js";import{u as j}from"./use-in-view-DrFhenAa.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BgQoFUhc.js";import"./use-transform-DuAStHvG.js";function b({to:u,from:s=0,direction:r="up",delay:p=0,duration:o=2,className:w="",startWhen:V=!0,separator:i="",onStart:d,onEnd:g}){const a=n.useRef(null),x=U(r==="down"?u:s),y=20+40*(1/o),E=100*(1/o),h=_(x,{damping:y,stiffness:E}),q=j(a,{once:!0,margin:"0px"}),v=t=>{const e=t.toString();if(e.includes(".")){const m=e.split(".")[1];if(parseInt(m)!==0)return m.length}return 0},l=Math.max(v(s),v(u)),c=n.useCallback(t=>{const e=l>0,m={useGrouping:!!i,minimumFractionDigits:e?l:0,maximumFractionDigits:e?l:0},D=Intl.NumberFormat("en-US",m).format(t);return i?D.replace(/,/g,i):D},[l,i]);return n.useEffect(()=>{a.current&&(a.current.textContent=c(r==="down"?u:s))},[s,u,r,c]),n.useEffect(()=>{if(q&&V){typeof d=="function"&&d();const t=setTimeout(()=>{x.set(r==="down"?s:u)},p*1e3),e=setTimeout(()=>{typeof g=="function"&&g()},p*1e3+o*1e3);return()=>{clearTimeout(t),clearTimeout(e)}}},[q,V,x,r,s,u,p,d,g,o]),n.useEffect(()=>{const t=h.on("change",e=>{a.current&&(a.current.textContent=c(e))});return()=>t()},[h,c]),N.jsx("span",{className:w,ref:a})}b.__docgenInfo={description:"",methods:[],displayName:"CountUp",props:{from:{defaultValue:{value:"0",computed:!1},required:!1},direction:{defaultValue:{value:"'up'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1},duration:{defaultValue:{value:"2",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},startWhen:{defaultValue:{value:"true",computed:!1},required:!1},separator:{defaultValue:{value:"''",computed:!1},required:!1}}};const B={title:"ReactBits/TextAnimations/CountUp",component:b,parameters:{layout:"fullscreen"}},f={args:{from:0,to:500,direction:"up",delay:0,duration:2,startWhen:!0,separator:""}};var I,C,T;f.parameters={...f.parameters,docs:{...(I=f.parameters)==null?void 0:I.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
from: 0,
|
|
4
4
|
to: 500,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,r as R}from"./iframe-
|
|
1
|
+
import{j as r,r as R}from"./iframe-Bipsh9dY.js";import{u as M}from"./use-spring-C6saxCCT.js";import{u as k}from"./use-transform-DuAStHvG.js";import{m as D}from"./proxy-D9bljBhB.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BgQoFUhc.js";import"./use-motion-value-wsIqdv-r.js";const u={"counter-container":"_counter-container_1x3ml_1","counter-counter":"_counter-counter_1x3ml_6","counter-digit":"_counter-digit_1x3ml_12","counter-number":"_counter-number_1x3ml_18","gradient-container":"_gradient-container_1x3ml_29","bottom-gradient":"_bottom-gradient_1x3ml_38"};function E({mv:e,number:t,height:a}){let i=k(e,o=>{let s=o%10,n=(10+t-s)%10,d=n*a;return n>5&&(d-=10*a),d});return r.jsx(D.span,{className:`${u["counter-number"]}`,style:{y:i},children:t})}function S(e){const t=Math.round(e),a=1e-9*Math.max(1,Math.abs(e));return Math.abs(e-t)<a?t:e}function T(e,t){const a=e/t;return Math.floor(S(a))}function B({place:e,value:t,height:a,digitStyle:i}){const o=e===".",s=o?0:T(t,e),n=M(s);return R.useEffect(()=>{o||n.set(s)},[n,s,o]),o?r.jsx("span",{className:`${u["counter-digit"]}`,style:{height:a,...i,width:"fit-content"},children:"."}):r.jsx("span",{className:`${u["counter-digit"]}`,style:{height:a,...i},children:Array.from({length:10},(d,f)=>r.jsx(E,{mv:n,number:f,height:a},f))})}function q({value:e,fontSize:t=100,padding:a=0,places:i=[...e.toString()].map((p,c,l)=>p==="."?".":10**(l.indexOf(".")===-1?l.length-c-1:c<l.indexOf(".")?l.indexOf(".")-c-1:-(c-l.indexOf(".")))),gap:o=8,borderRadius:s=4,horizontalPadding:n=8,textColor:d="inherit",fontWeight:f="inherit",containerStyle:N,counterStyle:$,digitStyle:O,gradientHeight:g=16,gradientFrom:x="black",gradientTo:h="transparent",topGradientStyle:_,bottomGradientStyle:v}){const p=t+a,c={fontSize:t,gap:o,borderRadius:s,paddingLeft:n,paddingRight:n,color:d,fontWeight:f},l={height:g,background:`linear-gradient(to bottom, ${x}, ${h})`},C={height:g,background:`linear-gradient(to top, ${x}, ${h})`};return r.jsxs("span",{className:`${u["counter-container"]}`,style:N,children:[r.jsx("span",{className:`${u["counter-counter"]}`,style:{...c,...$},children:i.map(b=>r.jsx(B,{place:b,value:e,height:p,digitStyle:O},b))}),r.jsxs("span",{className:`${u["gradient-container"]}`,children:[r.jsx("span",{className:"top-gradient",style:_||l}),r.jsx("span",{className:`${u["bottom-gradient"]}`,style:v||C})]})]})}q.__docgenInfo={description:"",methods:[],displayName:"Counter",props:{fontSize:{defaultValue:{value:"100",computed:!1},required:!1},padding:{defaultValue:{value:"0",computed:!1},required:!1},places:{defaultValue:{value:`[...value.toString()].map((ch, i, a) => {
|
|
2
2
|
ch == '.';
|
|
3
3
|
if (ch === '.') {
|
|
4
4
|
return '.';
|
package/storybook-static/assets/{Crosshair.stories-tBs2EYfR.js → Crosshair.stories-DuRxpkAA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as n}from"./iframe-
|
|
1
|
+
import{r as c,j as n}from"./iframe-Bipsh9dY.js";import{g as i}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const C=(o,e,l)=>(1-l)*o+l*e,M=(o,e)=>{if(e){const l=e.getBoundingClientRect();return{x:o.clientX-l.left,y:o.clientY-l.top}}return{x:o.clientX,y:o.clientY}},A=({color:o="white",containerRef:e=null})=>{const l=c.useRef(null),s=c.useRef(null),u=c.useRef(null),f=c.useRef(null),v=c.useRef(null);let a={x:0,y:0};return c.useEffect(()=>{const h=t=>{if(a=M(t,e==null?void 0:e.current),e!=null&&e.current){const m=e.current.getBoundingClientRect();t.clientX<m.left||t.clientX>m.right||t.clientY<m.top||t.clientY>m.bottom?i.to([s.current,u.current],{opacity:0}):i.to([s.current,u.current],{opacity:1})}},p=(e==null?void 0:e.current)||window;p.addEventListener("mousemove",h);const r={tx:{previous:0,current:0,amt:.15},ty:{previous:0,current:0,amt:.15}};i.set([s.current,u.current],{opacity:0});const y=()=>{r.tx.previous=r.tx.current=a.x,r.ty.previous=r.ty.current=a.y,i.to([s.current,u.current],{duration:.9,ease:"Power3.easeOut",opacity:1}),requestAnimationFrame(j),p.removeEventListener("mousemove",y)};p.addEventListener("mousemove",y);const x={turbulence:0},b=i.timeline({paused:!0,onStart:()=>{s.current.style.filter="url(#filter-noise-x)",u.current.style.filter="url(#filter-noise-y)"},onUpdate:()=>{f.current&&v.current&&(f.current.setAttribute("baseFrequency",x.turbulence),v.current.setAttribute("baseFrequency",x.turbulence))},onComplete:()=>{s.current&&u.current&&(s.current.style.filter=u.current.style.filter="none")}}).to(x,{duration:.5,ease:"power1",startAt:{turbulence:1},turbulence:0}),g=()=>b.restart(),E=()=>b.progress(1).kill(),j=()=>{r.tx.current=a.x,r.ty.current=a.y;for(const t in r)r[t].previous=C(r[t].previous,r[t].current,r[t].amt);s.current&&s.current&&(i.set(u.current,{x:r.tx.previous}),i.set(s.current,{y:r.ty.previous})),requestAnimationFrame(j)},w=e!=null&&e.current?e.current.querySelectorAll("a"):document.querySelectorAll("a");return w.forEach(t=>{t.addEventListener("mouseenter",g),t.addEventListener("mouseleave",E)}),()=>{p.removeEventListener("mousemove",h),p.removeEventListener("mousemove",y),w.forEach(t=>{t.removeEventListener("mouseenter",g),t.removeEventListener("mouseleave",E)})}},[e]),n.jsxs("div",{ref:l,className:"cursor",style:{position:e?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1e4},children:[n.jsx("svg",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%"},children:n.jsxs("defs",{children:[n.jsxs("filter",{id:"filter-noise-x",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.000001",numOctaves:"1",ref:f}),n.jsx("feDisplacementMap",{in:"SourceGraphic",scale:"40"})]}),n.jsxs("filter",{id:"filter-noise-y",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.000001",numOctaves:"1",ref:v}),n.jsx("feDisplacementMap",{in:"SourceGraphic",scale:"40"})]})]})}),n.jsx("div",{ref:s,style:{position:"absolute",width:"100%",height:"1px",background:o,pointerEvents:"none",transform:"translateY(50%)",opacity:0}}),n.jsx("div",{ref:u,style:{position:"absolute",height:"100%",width:"1px",background:o,pointerEvents:"none",transform:"translateX(50%)",opacity:0}})]})};A.__docgenInfo={description:"",methods:[],displayName:"Crosshair",props:{color:{defaultValue:{value:"'white'",computed:!1},required:!1},containerRef:{defaultValue:{value:"null",computed:!1},required:!1}}};const D={title:"ReactBits/Animations/Crosshair",component:A,parameters:{layout:"fullscreen"}},d={args:{color:"white",containerRef:null}};var q,L,S;d.parameters={...d.parameters,docs:{...(q=d.parameters)==null?void 0:q.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
color: 'white',
|
|
4
4
|
containerRef: null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as l}from"./iframe-
|
|
1
|
+
import{r as c,j as l}from"./iframe-Bipsh9dY.js";import{g as $}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const fe="_cube_lig8l_26",n={"default-animation":"_default-animation_lig8l_9","default-animation--scene":"_default-animation--scene_lig8l_16",cube:fe,"cube-face":"_cube-face_lig8l_43","cube-face--top":"_cube-face--top_lig8l_55","cube-face--bottom":"_cube-face--bottom_lig8l_59","cube-face--left":"_cube-face--left_lig8l_63","cube-face--right":"_cube-face--right_lig8l_67","cube-face--back":"_cube-face--back_lig8l_71","cube-face--front":"_cube-face--front_lig8l_72"},z=({gridSize:t=10,cubeSize:b,maxAngle:H=45,radius:k=3,easing:B="power3.out",duration:W={enter:.3,leave:.6},cellGap:s,borderStyle:ee="1px solid #fff",faceColor:M="#060010",shadow:O=!1,autoAnimate:P=!0,rippleOnClick:I=!0,rippleColor:J="#fff",rippleSpeed:w=2})=>{const u=c.useRef(null),f=c.useRef(null),i=c.useRef(null),v=c.useRef(!1),K=c.useRef({x:0,y:0}),T=c.useRef({x:0,y:0}),E=c.useRef(null),te=typeof s=="number"?`${s}px`:(s==null?void 0:s.col)!==void 0?`${s.col}px`:"5%",ae=typeof s=="number"?`${s}px`:(s==null?void 0:s.row)!==void 0?`${s.row}px`:"5%",Q=W.enter,R=W.leave,h=c.useCallback((e,a)=>{u.current&&u.current.querySelectorAll("[data-cube]").forEach(r=>{const o=+r.dataset.row,d=+r.dataset.col,m=Math.hypot(o-e,d-a);if(m<=k){const q=(1-m/k)*H;$.to(r,{duration:Q,ease:B,overwrite:!0,rotateX:-q,rotateY:q})}else $.to(r,{duration:R,ease:"power3.out",overwrite:!0,rotateX:0,rotateY:0})})},[k,H,Q,R,B]),j=c.useCallback(e=>{v.current=!0,i.current&&clearTimeout(i.current);const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=(e.clientX-a.left)/r,m=(e.clientY-a.top)/o;f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>h(m,d)),i.current=setTimeout(()=>{v.current=!1},3e3)},[t,h]),x=c.useCallback(()=>{u.current&&u.current.querySelectorAll("[data-cube]").forEach(e=>$.to(e,{duration:R,rotateX:0,rotateY:0,ease:"power3.out"}))},[R]),L=c.useCallback(e=>{e.preventDefault(),v.current=!0,i.current&&clearTimeout(i.current);const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=e.touches[0],m=(d.clientX-a.left)/r,C=(d.clientY-a.top)/o;f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>h(C,m)),i.current=setTimeout(()=>{v.current=!1},3e3)},[t,h]),V=c.useCallback(()=>{v.current=!0},[]),N=c.useCallback(()=>{u.current&&x()},[x]),D=c.useCallback(e=>{if(!I||!u.current)return;const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=e.clientX||e.touches&&e.touches[0].clientX,m=e.clientY||e.touches&&e.touches[0].clientY,C=Math.floor((d-a.left)/r),q=Math.floor((m-a.top)/o),oe=.15,ne=.3,ue=.6,se=oe/w,F=ne/w,le=ue/w,y={};u.current.querySelectorAll("[data-cube]").forEach(p=>{const _=+p.dataset.row,A=+p.dataset.col,X=Math.hypot(_-q,A-C),Y=Math.round(X);y[Y]||(y[Y]=[]),y[Y].push(p)}),Object.keys(y).map(Number).sort((p,_)=>p-_).forEach(p=>{const _=p*se,A=y[p].flatMap(X=>Array.from(X.querySelectorAll("[data-cube-face]")));$.to(A,{backgroundColor:J,duration:F,delay:_,ease:"power3.out"}),$.to(A,{backgroundColor:M,duration:F,delay:_+F+le,ease:"power3.out"})})},[I,t,M,J,w]);c.useEffect(()=>{if(!P||!u.current)return;K.current={x:Math.random()*t,y:Math.random()*t},T.current={x:Math.random()*t,y:Math.random()*t};const e=.02,a=()=>{if(!v.current){const r=K.current,o=T.current;r.x+=(o.x-r.x)*e,r.y+=(o.y-r.y)*e,h(r.y,r.x),Math.hypot(r.x-o.x,r.y-o.y)<.1&&(T.current={x:Math.random()*t,y:Math.random()*t})}E.current=requestAnimationFrame(a)};return E.current=requestAnimationFrame(a),()=>{E.current!=null&&cancelAnimationFrame(E.current)}},[P,t,h]),c.useEffect(()=>{const e=u.current;if(e)return e.addEventListener("pointermove",j),e.addEventListener("pointerleave",x),e.addEventListener("click",D),e.addEventListener("touchmove",L,{passive:!1}),e.addEventListener("touchstart",V,{passive:!0}),e.addEventListener("touchend",N,{passive:!0}),()=>{e.removeEventListener("pointermove",j),e.removeEventListener("pointerleave",x),e.removeEventListener("click",D),e.removeEventListener("touchmove",L),e.removeEventListener("touchstart",V),e.removeEventListener("touchend",N),f.current!=null&&cancelAnimationFrame(f.current),i.current&&clearTimeout(i.current)}},[j,x,D,L,V,N]);const U=Array.from({length:t}),re={gridTemplateColumns:b?`repeat(${t}, ${b}px)`:`repeat(${t}, 1fr)`,gridTemplateRows:b?`repeat(${t}, ${b}px)`:`repeat(${t}, 1fr)`,columnGap:te,rowGap:ae},ce={"--cube-face-border":ee,"--cube-face-bg":M,"--cube-face-shadow":O===!0?"0 0 6px rgba(0,0,0,.5)":O||"none",...b?{width:`${t*b}px`,height:`${t*b}px`}:{}};return l.jsx("div",{className:`${n["default-animation"]}`,style:ce,children:l.jsx("div",{ref:u,className:`${n["default-animation--scene"]}`,style:re,children:U.map((e,a)=>U.map((r,o)=>l.jsxs("div",{className:`${n.cube}`,"data-cube":!0,"data-row":a,"data-col":o,children:[l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--top"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--bottom"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--left"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--right"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--front"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--back"]}`,"data-cube-face":!0})]},`${a}-${o}`)))})})};z.__docgenInfo={description:"",methods:[],displayName:"Cubes",props:{gridSize:{defaultValue:{value:"10",computed:!1},required:!1},maxAngle:{defaultValue:{value:"45",computed:!1},required:!1},radius:{defaultValue:{value:"3",computed:!1},required:!1},easing:{defaultValue:{value:"'power3.out'",computed:!1},required:!1},duration:{defaultValue:{value:"{ enter: 0.3, leave: 0.6 }",computed:!1},required:!1},borderStyle:{defaultValue:{value:"'1px solid #fff'",computed:!1},required:!1},faceColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},shadow:{defaultValue:{value:"false",computed:!1},required:!1},autoAnimate:{defaultValue:{value:"true",computed:!1},required:!1},rippleOnClick:{defaultValue:{value:"true",computed:!1},required:!1},rippleColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},rippleSpeed:{defaultValue:{value:"2",computed:!1},required:!1}}};const pe={title:"ReactBits/Animations/Cubes",component:z,parameters:{layout:"fullscreen"}},g={};var Z,G,S;g.parameters={...g.parameters,docs:{...(Z=g.parameters)==null?void 0:Z.docs,source:{originalSource:"{}",...(S=(G=g.parameters)==null?void 0:G.docs)==null?void 0:S.source}}};const be=["Default"];export{g as Default,be as __namedExportsOrder,pe as default};
|
package/storybook-static/assets/{CurvedLoop.stories-u03ebWkS.js → CurvedLoop.stories-EBWj-ut7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,j as u}from"./iframe-
|
|
1
|
+
import{r as t,j as u}from"./iframe-Bipsh9dY.js";import"./preload-helper-C1FmrZbK.js";const P={"curved-loop-jacket":"_curved-loop-jacket_1xrkt_1","curved-loop-svg":"_curved-loop-svg_1xrkt_9"},C=({marqueeText:i="",speed:m=2,className:A,curveAmount:E=400,direction:T="left",interactive:f=!0})=>{const l=t.useMemo(()=>(/\s|\u00A0$/.test(i)?i.replace(/\s+$/,""):i)+" ",[i]),v=t.useRef(null),s=t.useRef(null),$=t.useRef(null),[n,k]=t.useState(0),[w,x]=t.useState(0),O=`curve-${t.useId()}`,D=`M-100,40 Q500,${40+E} 1540,40`,c=t.useRef(!1),g=t.useRef(0),j=t.useRef(T),h=t.useRef(0),b=n,F=b?Array(Math.ceil(1800/b)+2).fill(l).join(""):l,d=n>0;t.useEffect(()=>{v.current&&k(v.current.getComputedTextLength())},[l,A]),t.useEffect(()=>{if(n&&s.current){const e=-n;s.current.setAttribute("startOffset",e+"px"),x(e)}},[n]),t.useEffect(()=>{if(!n||!d)return;let e=0;const a=()=>{if(!c.current&&s.current){const _=j.current==="right"?m:-m;let r=parseFloat(s.current.getAttribute("startOffset")||"0")+_;const R=n;r<=-R&&(r+=R),r>0&&(r-=R),s.current.setAttribute("startOffset",r+"px"),x(r)}e=requestAnimationFrame(a)};return e=requestAnimationFrame(a),()=>cancelAnimationFrame(e)},[n,m,d]);const V=e=>{f&&(c.current=!0,g.current=e.clientX,h.current=0,e.target.setPointerCapture(e.pointerId))},B=e=>{if(!f||!c.current||!s.current)return;const a=e.clientX-g.current;g.current=e.clientX,h.current=a;let o=parseFloat(s.current.getAttribute("startOffset")||"0")+a;const r=n;o<=-r&&(o+=r),o>0&&(o-=r),s.current.setAttribute("startOffset",o+"px"),x(o)},y=()=>{f&&(c.current=!1,j.current=h.current>0?"right":"left")},I=f?c.current?"grabbing":"grab":"auto";return u.jsx("div",{className:`${P["curved-loop-jacket"]}`,style:{visibility:d?"visible":"hidden",cursor:I},onPointerDown:V,onPointerMove:B,onPointerUp:y,onPointerLeave:y,children:u.jsxs("svg",{className:`${P["curved-loop-svg"]}`,viewBox:"0 0 1440 120",children:[u.jsx("text",{ref:v,xmlSpace:"preserve",style:{visibility:"hidden",opacity:0,pointerEvents:"none"},children:l}),u.jsx("defs",{children:u.jsx("path",{ref:$,id:O,d:D,fill:"none",stroke:"transparent"})}),d&&u.jsx("text",{fontWeight:"bold",xmlSpace:"preserve",className:A,children:u.jsx("textPath",{ref:s,href:`#${O}`,startOffset:w+"px",xmlSpace:"preserve",children:F})})]})})};C.__docgenInfo={description:"",methods:[],displayName:"CurvedLoop",props:{marqueeText:{defaultValue:{value:"''",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},curveAmount:{defaultValue:{value:"400",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},interactive:{defaultValue:{value:"true",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/CurvedLoop",component:C,parameters:{layout:"fullscreen"}},p={args:{marqueeText:"React Bits - Curved Loop Text Animation - ",speed:2,curveAmount:400,direction:"left",interactive:!0}};var L,S,q;p.parameters={...p.parameters,docs:{...(L=p.parameters)==null?void 0:L.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
marqueeText: 'React Bits - Curved Loop Text Animation - ',
|
|
4
4
|
speed: 2,
|
package/storybook-static/assets/{DarkVeil.stories-CAAtsFI_.js → DarkVeil.stories-BJfxCPIF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as q,j as V}from"./iframe-
|
|
1
|
+
import{r as q,j as V}from"./iframe-Bipsh9dY.js";import{R as F,P as C,M as E}from"./Mesh-CwXV3WjE.js";import{T as k}from"./Triangle-64ffRKNB.js";import{V as z}from"./Vec2-Cf1C3GIc.js";import"./preload-helper-C1FmrZbK.js";const N={"darkveil-canvas":"_darkveil-canvas_1jcqg_1"},D=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
void main(){gl_Position=vec4(position,0.0,1.0);}
|
|
4
4
|
`,H=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as v,j as o}from"./iframe-
|
|
1
|
+
import{r as v,j as o}from"./iframe-Bipsh9dY.js";import{u as k}from"./useSound-BwsWxODM.js";import{c as N}from"./createLucideIcon-CltDwvOP.js";/**
|
|
2
2
|
* @license lucide-react v0.539.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/storybook-static/assets/{DateInput.stories-BHCR5Xz2.js → DateInput.stories-C2Lar4bv.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as e}from"./iframe-
|
|
1
|
+
import{r as c,j as e}from"./iframe-Bipsh9dY.js";import{D as n}from"./DateInput-Bl7y2Kqk.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-BwsWxODM.js";import"./createLucideIcon-CltDwvOP.js";const b={title:"Atoms/DateInput",component:n,parameters:{layout:"centered",docs:{description:{component:"A date input component with European format (dd/mm/yyyy) and calendar picker support."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"},onFocus:{action:"focused"},onBlur:{action:"blurred"}}},a={args:{label:"Select Date",value:"",placeholder:"25/12/2024",onChange:()=>{}}},r={args:{label:"Check-in",value:"",placeholder:"dd/mm/yyyy",onChange:()=>{}},render:()=>{const[t,p]=c.useState(""),[o,h]=c.useState("");return e.jsxs("div",{style:{padding:"1.5rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1rem"},children:"Hotel Booking"}),e.jsxs("div",{style:{display:"flex",gap:"1rem",marginBottom:"1rem"},children:[e.jsx(n,{label:"Check-in",value:t,onChange:p,placeholder:"dd/mm/yyyy"}),e.jsx(n,{label:"Check-out",value:o,onChange:h,placeholder:"dd/mm/yyyy"})]}),t&&o&&e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",color:"var(--color-text-secondary)"},children:["Your stay: ",new Date(t).toLocaleDateString("en-GB")," - ",new Date(o).toLocaleDateString("en-GB")]})]})},parameters:{controls:{disable:!0}}};var l,s,d;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Select Date',
|
|
4
4
|
value: '',
|
package/storybook-static/assets/{DecayCard.stories-DpjieBuP.js → DecayCard.stories-DS3y0loD.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as a}from"./iframe-
|
|
1
|
+
import{r as c,j as a}from"./iframe-Bipsh9dY.js";import{g as v}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const D="_content_deiue_1",W="_svg_deiue_5",f={content:D,svg:W,"card-text":"_card-text_deiue_13"},j=({width:M=300,height:S=400,image:z="https://picsum.photos/300/400?grayscale",children:C})=>{const h=c.useRef(null),p=c.useRef(null),n=c.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),g=c.useRef({...n.current}),l=c.useRef({width:window.innerWidth,height:window.innerHeight});return c.useEffect(()=>{const d=(t,r,i)=>(1-i)*t+i*r,u=(t,r,i,e,o)=>(t-r)*(o-e)/(i-r)+e,E=(t,r,i,e)=>{const o=t-r,b=i-e;return Math.hypot(o,b)},x=()=>{l.current={width:window.innerWidth,height:window.innerHeight}},w=t=>{n.current={x:t.clientX,y:t.clientY}};window.addEventListener("resize",x),window.addEventListener("mousemove",w);const s={imgTransforms:{x:0,y:0,rz:0},displacementScale:0},y=()=>{let t=d(s.imgTransforms.x,u(n.current.x,0,l.current.width,-120,120),.1),r=d(s.imgTransforms.y,u(n.current.y,0,l.current.height,-120,120),.1),i=d(s.imgTransforms.rz,u(n.current.x,0,l.current.width,-10,10),.1);const e=50;t>e&&(t=e+(t-e)*.2),t<-e&&(t=-e+(t+e)*.2),r>e&&(r=e+(r-e)*.2),r<-e&&(r=-e+(r+e)*.2),s.imgTransforms.x=t,s.imgTransforms.y=r,s.imgTransforms.rz=i,h.current&&v.set(h.current,{x:s.imgTransforms.x,y:s.imgTransforms.y,rotateZ:s.imgTransforms.rz});const o=E(g.current.x,n.current.x,g.current.y,n.current.y);s.displacementScale=d(s.displacementScale,u(o,0,200,0,400),.06),p.current&&v.set(p.current,{attr:{scale:s.displacementScale}}),g.current={...n.current},requestAnimationFrame(y)};return y(),()=>{window.removeEventListener("resize",x),window.removeEventListener("mousemove",w)}},[]),a.jsxs("div",{className:`${f.content}`,style:{width:`${M}px`,height:`${S}px`},ref:h,children:[a.jsxs("svg",{viewBox:"-60 -75 720 900",preserveAspectRatio:"xMidYMid slice",className:`${f.svg}`,children:[a.jsxs("filter",{id:"imgFilter",children:[a.jsx("feTurbulence",{type:"turbulence",baseFrequency:"0.015",numOctaves:"5",seed:"4",stitchTiles:"stitch",x:"0%",y:"0%",width:"100%",height:"100%",result:"turbulence1"}),a.jsx("feDisplacementMap",{ref:p,in:"SourceGraphic",in2:"turbulence1",scale:"0",xChannelSelector:"R",yChannelSelector:"B",x:"0%",y:"0%",width:"100%",height:"100%",result:"displacementMap3"})]}),a.jsx("g",{children:a.jsx("image",{href:z,x:"0",y:"0",width:"600",height:"750",filter:"url(#imgFilter)",preserveAspectRatio:"xMidYMid slice"})})]}),a.jsx("div",{className:`${f["card-text"]}`,children:C})]})};j.__docgenInfo={description:"",methods:[],displayName:"DecayCard",props:{width:{defaultValue:{value:"300",computed:!1},required:!1},height:{defaultValue:{value:"400",computed:!1},required:!1},image:{defaultValue:{value:"'https://picsum.photos/300/400?grayscale'",computed:!1},required:!1}}};const F={title:"ReactBits/Components/DecayCard",component:j,parameters:{layout:"fullscreen"}},m={args:{width:300,height:400,image:"https://picsum.photos/300/400?grayscale",children:"Hello World"}};var R,T,_;m.parameters={...m.parameters,docs:{...(R=m.parameters)==null?void 0:R.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
width: 300,
|
|
4
4
|
height: 400,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as n,j as N}from"./iframe-
|
|
1
|
+
import{r as n,j as N}from"./iframe-Bipsh9dY.js";import{m as te}from"./proxy-D9bljBhB.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BgQoFUhc.js";const P={wrapper:{display:"inline-block",whiteSpace:"pre-wrap"},srOnly:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:0}};function G({text:t,speed:j=50,maxIterations:I=10,sequential:w=!1,revealDirection:y="start",useOriginalCharsOnly:z=!1,characters:T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+",className:J="",parentClassName:K="",encryptedClassName:Q="",animateOn:i="hover",clickMode:x="once",...U}){const[R,c]=n.useState(t),[v,f]=n.useState(!1),[X,d]=n.useState(new Set),[H,Y]=n.useState(!1),[A,p]=n.useState(i!=="click"),[C,h]=n.useState("forward"),_=n.useRef(null),b=n.useRef([]),k=n.useRef(0),E=n.useMemo(()=>z?Array.from(new Set(t.split(""))).filter(r=>r!==" "):T.split(""),[z,t,T]),u=n.useCallback((r,a)=>r.split("").map((l,e)=>l===" "?" ":a.has(e)?r[e]:E[Math.floor(Math.random()*E.length)]).join(""),[E]),S=n.useCallback(r=>{const a=[];if(r<=0)return a;if(y==="start"){for(let s=0;s<r;s++)a.push(s);return a}if(y==="end"){for(let s=r-1;s>=0;s--)a.push(s);return a}const l=Math.floor(r/2);let e=0;for(;a.length<r;){if(e%2===0){const s=l+e/2;s>=0&&s<r&&a.push(s)}else{const s=l-Math.ceil(e/2);s>=0&&s<r&&a.push(s)}e++}return a.slice(0,r)},[y]),m=n.useCallback(()=>{const r=new Set;for(let a=0;a<t.length;a++)r.add(a);return r},[t]),O=n.useCallback((r,a)=>{const l=Array.from(r);for(let e=0;e<a&&l.length>0;e++){const s=Math.floor(Math.random()*l.length);l.splice(s,1)}return new Set(l)},[]),L=n.useCallback(()=>{const r=new Set;d(r),c(u(t,r)),p(!1)},[t,u]),M=n.useCallback(()=>{w?(b.current=S(t.length),k.current=0,d(new Set)):d(new Set),h("forward"),f(!0)},[w,S,t.length]),Z=n.useCallback(()=>{w?(b.current=S(t.length).slice().reverse(),k.current=0,d(m()),c(u(t,m()))):(d(m()),c(u(t,m()))),h("reverse"),f(!0)},[w,S,m,u,t]);n.useEffect(()=>{if(!v)return;let r,a=0;const l=e=>{const s=t.length;switch(y){case"start":return e.size;case"end":return s-1-e.size;case"center":{const o=Math.floor(s/2),g=Math.floor(e.size/2),V=e.size%2===0?o+g:o-g-1;if(V>=0&&V<s&&!e.has(V))return V;for(let D=0;D<s;D++)if(!e.has(D))return D;return 0}default:return e.size}};return r=setInterval(()=>{d(e=>{if(w){if(C==="forward")if(e.size<t.length){const s=l(e),o=new Set(e);return o.add(s),c(u(t,o)),o}else return clearInterval(r),f(!1),p(!0),e;if(C==="reverse")if(k.current<b.current.length){const s=b.current[k.current++],o=new Set(e);return o.delete(s),c(u(t,o)),o.size===0&&(clearInterval(r),f(!1),p(!1)),o}else return clearInterval(r),f(!1),p(!1),e}else{if(C==="forward")return c(u(t,e)),a++,a>=I&&(clearInterval(r),f(!1),c(t),p(!0)),e;if(C==="reverse"){let s=e;s.size===0&&(s=m());const o=Math.max(1,Math.ceil(t.length/Math.max(1,I))),g=O(s,o);return c(u(t,g)),a++,g.size===0||a>=I?(clearInterval(r),f(!1),p(!1),c(u(t,new Set)),new Set):g}}return e})},j),()=>clearInterval(r)},[v,t,j,I,w,y,u,C,m,O,T,z]);const $=()=>{if(i==="click"){if(x==="once"){if(A)return;h("forward"),M()}x==="toggle"&&(A?Z():(h("forward"),M()))}},ee=n.useCallback(()=>{v||(d(new Set),p(!1),c(t),h("forward"),f(!0))},[v,t]),re=n.useCallback(()=>{f(!1),d(new Set),c(t),p(!0),h("forward")},[t]);n.useEffect(()=>{if(i!=="view"&&i!=="inViewHover")return;const r=s=>{s.forEach(o=>{o.isIntersecting&&!H&&(M(),Y(!0))})},a={root:null,rootMargin:"0px",threshold:.1},l=new IntersectionObserver(r,a),e=_.current;return e&&l.observe(e),()=>{e&&l.unobserve(e)}},[i,H,M]),n.useEffect(()=>{i==="click"?L():(c(t),p(!0)),d(new Set),h("forward")},[i,t,L]);const se=i==="hover"||i==="inViewHover"?{onMouseEnter:ee,onMouseLeave:re}:i==="click"?{onClick:$}:{};return N.jsxs(te.span,{className:K,ref:_,style:P.wrapper,...se,...U,children:[N.jsx("span",{style:P.srOnly,children:R}),N.jsx("span",{"aria-hidden":"true",children:R.split("").map((r,a)=>{const l=X.has(a)||!v&&A;return N.jsx("span",{className:l?J:Q,children:r},a)})})]})}G.__docgenInfo={description:"",methods:[],displayName:"DecryptedText",props:{speed:{defaultValue:{value:"50",computed:!1},required:!1},maxIterations:{defaultValue:{value:"10",computed:!1},required:!1},sequential:{defaultValue:{value:"false",computed:!1},required:!1},revealDirection:{defaultValue:{value:"'start'",computed:!1},required:!1},useOriginalCharsOnly:{defaultValue:{value:"false",computed:!1},required:!1},characters:{defaultValue:{value:"'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},parentClassName:{defaultValue:{value:"''",computed:!1},required:!1},encryptedClassName:{defaultValue:{value:"''",computed:!1},required:!1},animateOn:{defaultValue:{value:"'hover'",computed:!1},required:!1},clickMode:{defaultValue:{value:"'once'",computed:!1},required:!1}}};const ce={title:"ReactBits/TextAnimations/DecryptedText",component:G,parameters:{layout:"fullscreen"}},q={args:{text:"Hello World",speed:50,maxIterations:10,sequential:!1,revealDirection:"start",useOriginalCharsOnly:!1,characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+",parentClassName:"",encryptedClassName:"",animateOn:"hover",clickMode:"once"}};var W,B,F;q.parameters={...q.parameters,docs:{...(W=q.parameters)==null?void 0:W.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
text: 'Hello World',
|
|
4
4
|
speed: 50,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as D,r as i,j as n}from"./iframe-
|
|
1
|
+
import{R as D,r as i,j as n}from"./iframe-Bipsh9dY.js";import{u as I,a as $,e as K,C as Q}from"./react-three-fiber.esm-Dc5EQDgd.js";import{H as Z,N as ee,d as V,G as p,n as oe}from"./three.module--_vTUKhS.js";import{E as te,R as ae,N as re,D as ne,a as F,b as se,c as L,P as ie}from"./index-DcRHiSf7.js";import"./preload-helper-C1FmrZbK.js";let _;function le(){var a;if(_!==void 0)return _;try{let o;const v=document.createElement("canvas");return _=!!(window.WebGL2RenderingContext&&(o=v.getContext("webgl2"))),o&&((a=o.getExtension("WEBGL_lose_context"))==null||a.loseContext()),_}catch{return _=!1}}const ue=i.createContext(null),T=a=>(a.getAttributes()&L.CONVOLUTION)===L.CONVOLUTION,ce=D.memo(i.forwardRef(({children:a,camera:o,scene:v,resolutionScale:r,enabled:y=!0,renderPriority:x=1,autoClear:P=!0,depthBuffer:u,enableNormalPass:w,stencilBuffer:C,multisampling:l=8,frameBufferType:g=Z},z)=>{const{gl:s,scene:E,camera:j,size:N}=I(),c=v||E,e=o||j,[t,f,S]=i.useMemo(()=>{const b=le(),d=new te(s,{depthBuffer:u,stencilBuffer:C,multisampling:l>0&&b?l:0,frameBufferType:g});d.addPass(new ae(c,e));let h=null,m=null;return w&&(m=new re(c,e),m.enabled=!1,d.addPass(m),r!==void 0&&b&&(h=new ne({normalBuffer:m.texture,resolutionScale:r}),h.enabled=!1,d.addPass(h))),[d,m,h]},[e,s,u,C,l,g,c,w,r]);i.useEffect(()=>t==null?void 0:t.setSize(N.width,N.height),[t,N]),$((b,d)=>{if(y){const h=s.autoClear;s.autoClear=P,C&&!P&&s.clearStencil(),t.render(d),s.autoClear=h}},y?x:0);const O=i.useRef(null);i.useLayoutEffect(()=>{var b;const d=[],h=(b=O.current)==null?void 0:b.__r3f;if(h&&t){const m=h.objects;for(let R=0;R<m.length;R++){const M=m[R];if(M instanceof F){const G=[M];if(!T(M)){let A=null;for(;(A=m[R+1])instanceof F&&!T(A);)G.push(A),R++}const Y=new se(e,...G);d.push(Y)}else M instanceof ie&&d.push(M)}for(const R of d)t==null||t.addPass(R);f&&(f.enabled=!0),S&&(S.enabled=!0)}return()=>{for(const m of d)t==null||t.removePass(m);f&&(f.enabled=!1),S&&(S.enabled=!1)}},[t,a,e,f,S]),i.useEffect(()=>{const b=s.toneMapping;return s.toneMapping=ee,()=>{s.toneMapping=b}},[s]);const X=i.useMemo(()=>({composer:t,normalPass:f,downSamplingPass:S,resolutionScale:r,camera:e,scene:c}),[t,f,S,r,e,c]);return i.useImperativeHandle(z,()=>t,[t]),n.jsx(ue.Provider,{value:X,children:n.jsx("group",{ref:O,children:a})})}));let fe=0;const U=new WeakMap,ve=(a,o)=>D.forwardRef(function({blendFunction:r=void 0,opacity:y=void 0,...x},P){let u=U.get(a);if(!u){const l=`@react-three/postprocessing/${a.name}-${fe++}`;K({[l]:a}),U.set(a,u=l)}const w=I(l=>l.camera),C=D.useMemo(()=>{var l,g;return[...(l=void 0)!=null?l:[],...(g=x.args)!=null?g:[{...o,...x}]]},[JSON.stringify(x)]);return n.jsx(u,{camera:w,"blendMode-blendFunction":r,"blendMode-opacity-value":y,...x,ref:P,args:C})}),de={"dither-container":"_dither-container_8gdcp_1"},me=`
|
|
2
2
|
precision highp float;
|
|
3
3
|
varying vec2 vUv;
|
|
4
4
|
void main() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as e}from"./iframe-
|
|
1
|
+
import{r as d,j as e}from"./iframe-Bipsh9dY.js";import{u as y}from"./use-motion-value-wsIqdv-r.js";import{u as S}from"./use-transform-DuAStHvG.js";import{u as H}from"./use-spring-C6saxCCT.js";import{m as k}from"./proxy-D9bljBhB.js";import{A as D}from"./index-Cia0c3io.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BgQoFUhc.js";const p={"dock-outer":"_dock-outer_12xx3_1","dock-panel":"_dock-panel_12xx3_8","dock-item":"_dock-item_12xx3_23","dock-icon":"_dock-icon_12xx3_38","dock-label":"_dock-label_12xx3_44"};function M({children:t,className:l="",onClick:i,mouseX:o,spring:m,distance:a,magnification:r,baseItemSize:c}){const u=d.useRef(null),s=y(0),x=S(o,n=>{var v;const b=((v=u.current)==null?void 0:v.getBoundingClientRect())??{x:0};return n-b.x-c/2}),g=S(x,[-a,0,a],[c,r,c]),f=H(g,m);return e.jsx(k.div,{ref:u,style:{width:f,height:f},onHoverStart:()=>s.set(1),onHoverEnd:()=>s.set(0),onFocus:()=>s.set(1),onBlur:()=>s.set(0),onClick:i,className:`${p["dock-item"]} ${l}`,tabIndex:0,role:"button","aria-haspopup":"true",children:d.Children.map(t,n=>d.cloneElement(n,{isHovered:s}))})}function V({children:t,className:l="",...i}){const{isHovered:o}=i,[m,a]=d.useState(!1);return d.useEffect(()=>{const r=o.on("change",c=>{a(c===1)});return()=>r()},[o]),e.jsx(D,{children:m&&e.jsx(k.div,{initial:{opacity:0,y:0},animate:{opacity:1,y:-10},exit:{opacity:0,y:0},transition:{duration:.2},className:`${p["dock-label"]} ${l}`,role:"tooltip",style:{x:"-50%"},children:t})})}function N({children:t,className:l=""}){return e.jsx("div",{className:`${p["dock-icon"]} ${l}`,children:t})}function z({items:t,className:l="",spring:i={mass:.1,stiffness:150,damping:12},magnification:o=70,distance:m=200,panelHeight:a=68,dockHeight:r=256,baseItemSize:c=50}){const u=y(1/0),s=y(0),x=d.useMemo(()=>Math.max(r,o+o/2+4),[o,r]),g=S(s,[0,1],[a,x]),f=H(g,i);return e.jsx(k.div,{style:{height:f,scrollbarWidth:"none"},className:`${p["dock-outer"]}`,children:e.jsx(k.div,{onMouseMove:({pageX:n})=>{s.set(1),u.set(n)},onMouseLeave:()=>{s.set(0),u.set(1/0)},className:`${p["dock-panel"]} ${l}`,style:{height:a},role:"toolbar","aria-label":"Application dock",children:t.map((n,b)=>e.jsxs(M,{onClick:n.onClick,className:n.className,mouseX:u,spring:i,distance:m,magnification:o,baseItemSize:c,children:[e.jsx(N,{children:n.icon}),e.jsx(V,{children:n.label})]},b))})})}z.__docgenInfo={description:"",methods:[],displayName:"Dock",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},spring:{defaultValue:{value:"{ mass: 0.1, stiffness: 150, damping: 12 }",computed:!1},required:!1},magnification:{defaultValue:{value:"70",computed:!1},required:!1},distance:{defaultValue:{value:"200",computed:!1},required:!1},panelHeight:{defaultValue:{value:"68",computed:!1},required:!1},dockHeight:{defaultValue:{value:"256",computed:!1},required:!1},baseItemSize:{defaultValue:{value:"50",computed:!1},required:!1}}};const L={title:"ReactBits/Components/Dock",component:z,parameters:{layout:"fullscreen"}},h={args:{items:[{icon:e.jsx("span",{style:{fontSize:24},children:"🏠"}),label:"Home",onClick:()=>console.log("Home")},{icon:e.jsx("span",{style:{fontSize:24},children:"📄"}),label:"Documents",onClick:()=>console.log("Documents")},{icon:e.jsx("span",{style:{fontSize:24},children:"⚙️"}),label:"Settings",onClick:()=>console.log("Settings")},{icon:e.jsx("span",{style:{fontSize:24},children:"📧"}),label:"Mail",onClick:()=>console.log("Mail")},{icon:e.jsx("span",{style:{fontSize:24},children:"🔍"}),label:"Search",onClick:()=>console.log("Search")}],magnification:70,distance:200,panelHeight:68,dockHeight:256,baseItemSize:50}};var _,j,C;h.parameters={...h.parameters,docs:{...(_=h.parameters)==null?void 0:_.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
items: [{
|
|
4
4
|
icon: <span style={{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,j as e}from"./iframe-
|
|
1
|
+
import{r as a,j as e}from"./iframe-Bipsh9dY.js";import{m as Y}from"./proxy-D9bljBhB.js";import{C as O}from"./check-CV4xXNXR.js";import{X as G}from"./x-DwbjixG_.js";import{c as J}from"./createLucideIcon-CltDwvOP.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BgQoFUhc.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 G,j as P}from"./iframe-
|
|
1
|
+
import{r as G,j as P}from"./iframe-Bipsh9dY.js";import{R as _,P as V,M as q}from"./Mesh-CwXV3WjE.js";import{T as L}from"./Texture-BkQWYNP2.js";import{T as U}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const D={"evil-eye-container":"_evil-eye-container_184dx_1"};function C(i){const r=i.replace("#","");return[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255]}function W(i=256){const r=new Uint8Array(i*i*4);function m(s,c,a){let n=s*374761393+c*668265263+a*1274126177;return n=Math.imul(n^n>>>13,1274126177),((n^n>>>16)>>>0)/4294967296}function w(s,c,a,n){const p=s/i*a,v=c/i*a,l=Math.floor(p),o=Math.floor(v),f=p-l,t=v-o,e=a|0,d=m((l%e+e)%e,(o%e+e)%e,n),u=m(((l+1)%e+e)%e,(o%e+e)%e,n),h=m((l%e+e)%e,((o+1)%e+e)%e,n),E=m(((l+1)%e+e)%e,((o+1)%e+e)%e,n);return d*(1-f)*(1-t)+u*f*(1-t)+h*(1-f)*t+E*f*t}for(let s=0;s<i;s++)for(let c=0;c<i;c++){let a=0,n=.4,p=0;for(let o=0;o<8;o++){const f=32*(1<<o);a+=n*w(c,s,f,o*31),p+=n,n*=.65}a/=p,a=(a-.5)*2.2+.5,a=Math.max(0,Math.min(1,a));const v=Math.round(a*255),l=(s*i+c)*4;r[l]=v,r[l+1]=v,r[l+2]=v,r[l+3]=255}return r}const b=`
|
|
2
2
|
attribute vec2 uv;
|
|
3
3
|
attribute vec2 position;
|
|
4
4
|
varying vec2 vUv;
|
package/storybook-static/assets/{FadeContent.stories-0x4yHbgt.js → FadeContent.stories-D2-4qOlC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as R}from"./iframe-
|
|
1
|
+
import{r as c,j as R}from"./iframe-Bipsh9dY.js";import{g as a}from"./index-C8pce-KX.js";import{S as h}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";a.registerPlugin(h);const w=({children:q,container:x,blur:d=!1,duration:V=1e3,ease:E="power2.out",delay:b=0,threshold:v=.1,initialOpacity:i=0,disappearAfter:n=0,disappearDuration:S=.5,disappearEase:A="power2.in",onComplete:f,onDisappearanceComplete:s,className:O="",style:_,...j})=>{const p=c.useRef(null);return c.useEffect(()=>{const e=p.current;if(!e)return;let r=x||document.getElementById("snap-main-container")||null;typeof r=="string"&&(r=document.querySelector(r));const k=(1-v)*100,t=l=>typeof l=="number"&&l>10?l/1e3:l;a.set(e,{autoAlpha:i,filter:d?"blur(10px)":"blur(0px)",willChange:"opacity, filter, transform"});const o=a.timeline({paused:!0,delay:t(b),onComplete:()=>{f&&f(),n>0&&a.to(e,{autoAlpha:i,filter:d?"blur(10px)":"blur(0px)",delay:t(n),duration:t(S),ease:A,onComplete:()=>s==null?void 0:s()})}});o.to(e,{autoAlpha:1,filter:"blur(0px)",duration:t(V),ease:E});const F=h.create({trigger:e,scroller:r||window,start:`top ${k}%`,once:!0,onEnter:()=>o.play()});return()=>{F.kill(),o.kill(),a.killTweensOf(e)}},[]),R.jsx("div",{ref:p,className:O,style:_,...j,children:q})};w.__docgenInfo={description:"",methods:[],displayName:"FadeContent",props:{blur:{defaultValue:{value:"false",computed:!1},required:!1},duration:{defaultValue:{value:"1000",computed:!1},required:!1},ease:{defaultValue:{value:"'power2.out'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1},threshold:{defaultValue:{value:"0.1",computed:!1},required:!1},initialOpacity:{defaultValue:{value:"0",computed:!1},required:!1},disappearAfter:{defaultValue:{value:"0",computed:!1},required:!1},disappearDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},disappearEase:{defaultValue:{value:"'power2.in'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const H={title:"ReactBits/Animations/FadeContent",component:w,parameters:{layout:"fullscreen"}},u={args:{children:"Hello World",blur:!1,duration:1e3,ease:"power2.out",delay:0,threshold:.1,initialOpacity:0,disappearAfter:0,disappearDuration:.5,disappearEase:"power2.in"}};var m,g,y;u.parameters={...u.parameters,docs:{...(m=u.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
children: 'Hello World',
|
|
4
4
|
blur: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,j as ee}from"./iframe-
|
|
1
|
+
import{r as a,j as ee}from"./iframe-Bipsh9dY.js";import{R as te,P as ae,M as oe}from"./Mesh-CwXV3WjE.js";import{T as re}from"./Triangle-64ffRKNB.js";import{C as w}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const ie={"faulty-terminal-container":"_faulty-terminal-container_kw0wy_1"},ne=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
attribute vec2 uv;
|
|
4
4
|
varying vec2 vUv;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n}from"./iframe-
|
|
1
|
+
import{r as n}from"./iframe-Bipsh9dY.js";import{u}from"./react-three-fiber.esm-Dc5EQDgd.js";import{k as l,H as y,z as m,D as F,E as T}from"./three.module--_vTUKhS.js";function b(s,d,f){const i=u(e=>e.size),p=u(e=>e.viewport),r=typeof s=="number"?s:i.width*p.dpr,o=i.height*p.dpr,c=(typeof s=="number"?f:s)||{},{samples:a=0,depth:g,...h}=c,t=n.useMemo(()=>{const e=new l(r,o,{minFilter:m,magFilter:m,type:y,...h});return g&&(e.depthTexture=new F(r,o,T)),e.samples=a,e},[]);return n.useLayoutEffect(()=>{t.setSize(r,o),a&&(t.samples=a)},[a,t,r,o]),n.useEffect(()=>()=>t.dispose(),[]),t}export{b as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as se}from"./iframe-
|
|
1
|
+
import{r as d,j as se}from"./iframe-Bipsh9dY.js";import{d as g,S as fe,a as de,W as me,e as x,i as ve,q as pe,M as ge,f as xe}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const he={"floating-lines-container":"_floating-lines-container_1a3kk_1"},be=`
|
|
2
2
|
precision highp float;
|
|
3
3
|
|
|
4
4
|
void main() {
|
package/storybook-static/assets/{FlowingMenu.stories-Bu7zY6aB.js → FlowingMenu.stories-BKmUrbe6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u,r as c}from"./iframe-
|
|
1
|
+
import{j as u,r as c}from"./iframe-Bipsh9dY.js";import{g as v}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const W="_menu_hu66r_1",B="_menu__item_hu66r_15",S="_marquee_hu66r_49",T="_marquee__inner_hu66r_60",I="_marquee__part_hu66r_75",L="_marquee__img_hu66r_90",a={"menu-wrap":"_menu-wrap_hu66r_1",menu:W,menu__item:B,"menu__item-link":"_menu__item-link_hu66r_27",marquee:S,"marquee__inner-wrap":"_marquee__inner-wrap_hu66r_60",marquee__inner:T,marquee__part:I,marquee__img:L};function N({items:q=[],speed:l=15,textColor:f="#fff",bgColor:p="#060010",marqueeBgColor:g="#fff",marqueeTextColor:x="#060010",borderColor:C="#fff"}){return u.jsx("div",{className:`${a["menu-wrap"]}`,style:{backgroundColor:p},children:u.jsx("nav",{className:`${a.menu}`,children:q.map((y,i)=>u.jsx(A,{...y,speed:l,textColor:f,marqueeBgColor:g,marqueeTextColor:x,borderColor:C},i))})})}function A({link:q,text:l,image:f,speed:p,textColor:g,marqueeBgColor:x,marqueeTextColor:C,borderColor:y}){const i=c.useRef(null),m=c.useRef(null),o=c.useRef(null),d=c.useRef(null),[w,$]=c.useState(4),k={duration:.6,ease:"expo"},b=(t,e,r,n)=>{const s=j(t,e,r/2,0),_=j(t,e,r/2,n);return s<_?"top":"bottom"},j=(t,e,r,n)=>{const s=t-r,_=e-n;return s*s+_*_};c.useEffect(()=>{const t=()=>{if(!o.current)return;const e=o.current.querySelector("[data-marquee-part]");if(!e)return;const r=e.offsetWidth,n=window.innerWidth,s=Math.ceil(n/r)+2;$(Math.max(4,s))};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[l,f]),c.useEffect(()=>{const e=setTimeout(()=>{if(!o.current)return;const r=o.current.querySelector("[data-marquee-part]");if(!r)return;const n=r.offsetWidth;n!==0&&(d.current&&d.current.kill(),d.current=v.to(o.current,{x:-n,duration:p,ease:"none",repeat:-1}))},50);return()=>{clearTimeout(e),d.current&&d.current.kill()}},[l,f,w,p]);const D=t=>{if(!i.current||!m.current||!o.current)return;const e=i.current.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top,s=b(r,n,e.width,e.height);v.timeline({defaults:k}).set(m.current,{y:s==="top"?"-101%":"101%"},0).set(o.current,{y:s==="top"?"101%":"-101%"},0).to([m.current,o.current],{y:"0%"},0)},V=t=>{if(!i.current||!m.current||!o.current)return;const e=i.current.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top,s=b(r,n,e.width,e.height);v.timeline({defaults:k}).to(m.current,{y:s==="top"?"-101%":"101%"},0).to(o.current,{y:s==="top"?"101%":"-101%"},0)};return u.jsxs("div",{className:`${a.menu__item}`,ref:i,style:{borderColor:y},children:[u.jsx("a",{className:`${a["menu__item-link"]}`,href:q,onMouseEnter:D,onMouseLeave:V,style:{color:g},children:l}),u.jsx("div",{className:`${a.marquee}`,ref:m,style:{backgroundColor:x},children:u.jsx("div",{className:`${a["marquee__inner-wrap"]}`,children:u.jsx("div",{className:`${a.marquee__inner}`,ref:o,"aria-hidden":"true",children:[...Array(w)].map((t,e)=>u.jsxs("div",{className:`${a.marquee__part}`,"data-marquee-part":!0,style:{color:C},children:[u.jsx("span",{children:l}),u.jsx("div",{className:`${a.marquee__img}`,style:{backgroundImage:`url(${f})`}})]},e))})})})]})}N.__docgenInfo={description:"",methods:[],displayName:"FlowingMenu",props:{items:{defaultValue:{value:"[]",computed:!1},required:!1},speed:{defaultValue:{value:"15",computed:!1},required:!1},textColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},bgColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},marqueeBgColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},marqueeTextColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1}}};const P={title:"ReactBits/Components/FlowingMenu",component:N,parameters:{layout:"fullscreen"}},h={args:{items:[{link:"#",text:"Home",image:"https://picsum.photos/seed/a/600/400"},{link:"#",text:"About",image:"https://picsum.photos/seed/b/600/400"},{link:"#",text:"Projects",image:"https://picsum.photos/seed/c/600/400"},{link:"#",text:"Contact",image:"https://picsum.photos/seed/d/600/400"}],speed:15,textColor:"#fff",bgColor:"#060010",marqueeBgColor:"#fff",marqueeTextColor:"#060010",borderColor:"#fff"}};var R,M,E;h.parameters={...h.parameters,docs:{...(R=h.parameters)==null?void 0:R.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
items: [{
|
|
4
4
|
link: '#',
|