@stfrigerio/sito-template 0.1.95 → 0.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.d.ts +13 -0
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.d.ts.map +1 -0
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.stories.d.ts +12 -0
- package/dist/components/molecules/RecurrencePicker/RecurrencePicker.stories.d.ts.map +1 -0
- package/dist/components/molecules/RecurrencePicker/index.d.ts +3 -0
- package/dist/components/molecules/RecurrencePicker/index.d.ts.map +1 -0
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/index.esm.js +340 -182
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +343 -184
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/themes/lossito.css +243 -49
- package/package.json +2 -1
- package/storybook-static/assets/{ASCIIText.stories-DFJdLu85.js → ASCIIText.stories-BNQcc9gv.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-exRxVmzu.js → AllAtoms.stories-DBpk-rB8.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-A1SzIOe2.js → AnimatedContent.stories-CCnlHD5Y.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-D2Q-T7WK.js → AnimatedList.stories-DNI1W5-A.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-CB3_2V40.js → Antigravity.stories-BQw1Zvk9.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-pogP4q4b.js → ArrayInput.stories-HQd6ODME.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-Cu440k5S.js → Aurora.stories-xI4i4wH4.js} +1 -1
- package/storybook-static/assets/{Beams.stories-CzUpFwoS.js → Beams.stories-DxSqefhF.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-IsVKCCEO.js → BlobCursor.stories-DNk0BeNz.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-BVGu0aqN.js → BlurText.stories-DBsRktVj.js} +1 -1
- package/storybook-static/assets/{BooleansHeatmap.stories-BthQ5ehB.js → BooleansHeatmap.stories-dsUQfyWg.js} +1 -1
- package/storybook-static/assets/{BorderGlow.stories-BNwBLObC.js → BorderGlow.stories-lgvEGRVA.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-7__gkj8R.js → BubbleMenu.stories-CXvB9JdY.js} +1 -1
- package/storybook-static/assets/{Button-CwSLfSSb.js → Button-6nmyMGc3.js} +1 -1
- package/storybook-static/assets/{Button.stories-DXdSC8Ub.js → Button.stories-DD3HQBXg.js} +1 -1
- package/storybook-static/assets/{Calendar.stories-HJNrPTKA.js → Calendar.stories-_ZDa4YfS.js} +1 -1
- package/storybook-static/assets/{Card-CMuvydSk.js → Card-B7F8cu_z.js} +1 -1
- package/storybook-static/assets/{Card.stories-C6r4Lfy1.js → Card.stories-BLbuUq_5.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-WDha-__w.js → CardNav.stories-CiJ_bFt8.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-C73W8Cj0.js → Carousel.stories-BYGW6P4X.js} +1 -1
- package/storybook-static/assets/{Checkbox-DXDBhCOJ.js → Checkbox-xrie0yDX.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-BdYI4nAD.js → Checkbox.stories-D-NYqhCG.js} +1 -1
- package/storybook-static/assets/{ChromaGrid.stories-DWa4kR3d.js → ChromaGrid.stories-yYkbcq2a.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-DtM7FALz.js → CircularGallery.stories-Ci3GTUgX.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-BaJvxGQF.js → CircularText.stories-7QMPmTLn.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories--IchxFvN.js → ClickSpark.stories-Dz9M-gEC.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-0cTr18l9.js → ColorBends.stories-Dfa0YMsf.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-Cf4NC-XR.js → CountUp.stories-DrdYM8-J.js} +1 -1
- package/storybook-static/assets/{Counter.stories-CyhbcvKm.js → Counter.stories-3m6ldyes.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-ZZ5g9eO6.js → Crosshair.stories-DfRqBfZC.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-CrYhlnje.js → Cubes.stories-D1sZRgvG.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-DyK7Wlt6.js → CurvedLoop.stories-D6jowEDF.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-BEf6V85c.js → DarkVeil.stories-DLCrll-I.js} +1 -1
- package/storybook-static/assets/{DateInput-8onWa3KI.js → DateInput-D4MHyeLk.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-BUDpdFa5.js → DateInput.stories-BRfVBcf6.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-DG0lwrmk.js → DecayCard.stories-DX1ak6pd.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-BAy5in1k.js → DecryptedText.stories-BcCQ2Tby.js} +1 -1
- package/storybook-static/assets/{Dither.stories-B0Asjgfz.js → Dither.stories-BPqBpmFI.js} +1 -1
- package/storybook-static/assets/{Dock.stories-BrZSOCw5.js → Dock.stories-CKD_TOGP.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-Cur6BXdD.js → EditFAB.stories-DGVMpMOL.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-C6fVeJGL.js → EvilEye.stories-DNoB6FG0.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-Ckl198gp.js → FadeContent.stories-C8ppDaXi.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-CRQCWCv-.js → FaultyTerminal.stories-Y8ME_yze.js} +1 -1
- package/storybook-static/assets/{Fbo-DIZ3Y1HH.js → Fbo-Bkb1mqiu.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-BqgEOEZS.js → FloatingLines.stories-ZByyesqH.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-BnPI8poB.js → FlowingMenu.stories-CTWLtqhL.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-CHAlMw3S.js → FluidGlass.stories--PsLBBhn.js} +1 -1
- package/storybook-static/assets/{Folder.stories-Dk5JAIQD.js → Folder.stories-JNXotEML.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-BtDnau8f.js → FuzzyText.stories-o6wySpRq.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-BzhW3GF9.js → Galaxy.stories-DTZantrp.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-DieHFjxw.js → GhostCursor.stories-DXF-m9YM.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-BHoXBn9o.js → GlareHover.stories-Bb4_dcLV.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-DREe1ppH.js → GlassSurface.stories-yZ4K521K.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-ByEeawKD.js → GlitchText.stories-B4Eqkyri.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-BwwWfgQg.js → GooeyNav.stories-CqUOrJR-.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-ZaBq37aP.js → GradientBlinds.stories-DZ6bTCGp.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-OlD8JIJh.js → GradientText.stories-DyDht-TI.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-CfHG2dG3.js → Grainient.stories-C1PtR90_.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-BsWVs4IR.js → GridMotion.stories-BRbD6MZr.js} +1 -1
- package/storybook-static/assets/{HabitTimeOfDayChart.stories-DfBLc8St.js → HabitTimeOfDayChart.stories-D3gqeKpl.js} +1 -1
- package/storybook-static/assets/{ImageSlideshow.stories-Cpb9fisd.js → ImageSlideshow.stories-BileVQYy.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-Ch3ilnYv.js → Iridescence.stories-BIhFVHOn.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-DenbpERy.js → LaserFlow.stories-BSnwH5Mv.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-D1DfeFIa.js → LetterGlitch.stories-CfGaNSmi.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-CVxcYtjt.js → LightPillar.stories-CNtpoF6N.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-F5idlq2b.js → LightRays.stories-DRKVWqXb.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-Diu1zWyT.js → Lightning.stories-DJOW6kK7.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-CmEm2I-A.js → LineWaves.stories-17nqJpH2.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-CHP_FcPv.js → LiquidChrome.stories-CgmsyPLg.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-Iraa-nLM.js → LiquidEther.stories-CKvaP6zm.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-DlrNT1AA.js → LoadingSpinner-LXRJXAO4.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-CnE24Tsx.js → LoadingSpinner.stories-C0tbgfV3.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-BqJypRLP.js → MagicRings.stories-qzHi78-J.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-DL0Go3qR.js → Magnet.stories-QWTKtI1e.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-CxpAiInh.js → MagnetLines.stories-BOaR4PZi.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-flII8LRK.js → Masonry.stories-DLz9dA8U.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-Bs_-0CGV.js → MetaBalls.stories-DcleGPI8.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-DiyJoRNq.js → MetallicPaint.stories-Dqit7nFj.js} +1 -1
- package/storybook-static/assets/{MoodChart.stories-CJ2A0E0j.js → MoodChart.stories-1otFXWFu.js} +1 -1
- package/storybook-static/assets/{MotionConfigContext-Dyabqz-b.js → MotionConfigContext-HXxMOMJo.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-B--ABN9C.js → Navbar.stories-BPE4RMdc.js} +1 -1
- package/storybook-static/assets/{Noise.stories-BpKTpxeE.js → Noise.stories-BktPkK5a.js} +1 -1
- package/storybook-static/assets/{NumberStepper-EhG-KGNo.js → NumberStepper-D1to6bpi.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-Ba1aWk0g.js → NumberStepper.stories-WnrisOam.js} +1 -1
- package/storybook-static/assets/{Orb.stories-D8od8KSg.js → Orb.stories-BtZmx5Sy.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-Dxj-5r4i.js → OrbitImages.stories-DSTSVc16.js} +1 -1
- package/storybook-static/assets/{PieChart.stories-DWw4EGwt.js → PieChart.stories-L1NRhd_j.js} +1 -1
- package/storybook-static/assets/{PixelBlast.stories-C3u9ldzB.js → PixelBlast.stories-CfT09XYZ.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-BtQ8LfFf.js → PixelCard.stories-B2LTanjI.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-KpmT5jBn.js → PixelSnow.stories-Kg0VE4Bc.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-CJs0eV-2.js → PixelTransition.stories-CeanWE2-.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-CivG0ZTB.js → Plasma.stories-DujATB5Q.js} +1 -1
- package/storybook-static/assets/{Prism.stories--tExtMti.js → Prism.stories-Dxke5JPk.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-BEHRmqtH.js → PrismaticBurst.stories-xc5NSeNp.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-Bfv1Qk_A.js → ProfileCard.stories-Cnb3pxki.js} +1 -1
- package/storybook-static/assets/{QuantifiableHabitsChart.stories-WPetwjBc.js → QuantifiableHabitsChart.stories-BMxWoQO4.js} +1 -1
- package/storybook-static/assets/{Radar.stories-CWQNMWx2.js → Radar.stories-CrJcMxjq.js} +1 -1
- package/storybook-static/assets/RecurrencePicker-Bjafom-j.css +1 -0
- package/storybook-static/assets/RecurrencePicker.stories-vkallG9D.js +19 -0
- package/storybook-static/assets/{Ribbons.stories-B3X4I9Cz.js → Ribbons.stories-LT5RgvPo.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-O3VVcQWl.js → RippleGrid.stories-Bwsl-Ueq.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-Cs-vTbFZ.js → RotatingText.stories-CNDJn3v6.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-BMoNuRtU.js → ScrollFloat.stories-B0qUJggd.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-C5dVXxt1.js → ScrollReveal.stories-BBVRW0fh.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-CJKSvAY4.js → ScrollVelocity.stories-DfKnOsGa.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-Dtm9l67y.js → SearchBar.stories-Coshf_t6.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-Dqzi4LKk.js → SearchableDropdown-CC1-QlKh.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-BG3ESCwq.js → SearchableDropdown.stories-DydVUjWf.js} +1 -1
- package/storybook-static/assets/{SelectInput-BUDt34Ej.js → SelectInput-BqVWIQmb.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-Dxe4mL9o.js → SelectInput.stories-I0azAt7k.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-C2sk-BXL.js → ShapeBlur.stories-BWBp8nEd.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-ihKrWukc.js → ShapeGrid.stories-DJmnW7fN.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-DwNgYe9N.js → ShinyText.stories-7vHIqa03.js} +1 -1
- package/storybook-static/assets/{Silk.stories-CzFSFGhP.js → Silk.stories-CXiaINFD.js} +1 -1
- package/storybook-static/assets/{SleepChart.stories-CZufs6Gb.js → SleepChart.stories-BmAtNTJP.js} +1 -1
- package/storybook-static/assets/{Slider-BRAq3fxE.js → Slider-BmG0iCoC.js} +1 -1
- package/storybook-static/assets/{Slider.stories-CK522MN_.js → Slider.stories-DZciYzwU.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-DqOpOzFw.js → SoftAurora.stories-BubrO6U4.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-BkFbK-1Y.js → SoundDemo.stories-CDXr3mFW.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-ClGNxcw4.js → SplashCursor.stories-DgMm9xv3.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-B-Hpffrl.js → SpotlightCard.stories-ChPn0jeh.js} +1 -1
- package/storybook-static/assets/{Stack.stories-DLN47Bj-.js → Stack.stories-DzzqOEhy.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-DL6I7cbu.js → StaggeredMenu.stories-BNHc0PM6.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-BIP0gskB.js → StarBorder.stories-DBGelRYw.js} +1 -1
- package/storybook-static/assets/{SunburstChart.stories-Bb0VKYC3.js → SunburstChart.stories-KPCIjiOk.js} +1 -1
- package/storybook-static/assets/{Table.stories-DeMvjpqQ.js → Table.stories-Bz2NsPvR.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-qZulSRrO.js → Tabs.stories-DH8uIATQ.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-4pSN2J9r.js → TargetCursor.stories-BUrQiofc.js} +1 -1
- package/storybook-static/assets/{TextArea-CvRZ3TaY.js → TextArea-DVqzGhY3.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-teCx-H2z.js → TextArea.stories-A0YRdcwk.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-pry7pdoW.js → TextCursor.stories-B_UinRXa.js} +1 -1
- package/storybook-static/assets/{TextInput-BPdFcHbk.js → TextInput-46C4j_hq.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-B-HTRiwl.js → TextInput.stories-C7ZC_8wE.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-BdtIOM1Y.js → TextPressure.stories-Wwlb-VgV.js} +1 -1
- package/storybook-static/assets/{TextType.stories-Bq-Vo4qL.js → TextType.stories-DYLMktJi.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-SgJg0LCK.js → ThemeSwitcher.stories-8FTV9MJW.js} +1 -1
- package/storybook-static/assets/{Threads.stories-hqtYUEu-.js → Threads.stories-BDwauY1I.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-CPOqj_Se.js → TimeInput.stories-Bk2lwEyd.js} +1 -1
- package/storybook-static/assets/{Toggle-CAPcFsLF.js → Toggle-BbWuVStR.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-O2_0c-1s.js → Toggle.stories-Bb7-wtRn.js} +1 -1
- package/storybook-static/assets/{ToggleButton-BZOAtsmB.js → ToggleButton-BaLN5DsF.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-JG_Pazh7.js → ToggleButton.stories-Cdx8eTPI.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-rLnKDbsk.js → TrueFocus.stories-B_pN3J3c.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-RaopvofU.js → VariableProximity.stories-BTLVRXWD.js} +1 -1
- package/storybook-static/assets/{Waves.stories-oO9FrJAS.js → Waves.stories-_NtAqm6K.js} +1 -1
- package/storybook-static/assets/{calendar-JsvgBBDH.js → calendar-jGMMZsgE.js} +1 -1
- package/storybook-static/assets/{chart-column-mrC32qXf.js → chart-column-jT4jlZWv.js} +1 -1
- package/storybook-static/assets/{check-CvrIUYEl.js → check-D_NpTUYB.js} +1 -1
- package/storybook-static/assets/{chevron-down-BUZZ9BTx.js → chevron-down-C40D1TRM.js} +1 -1
- package/storybook-static/assets/{chevron-right-SVhPWVWz.js → chevron-right-pJjQoHt-.js} +1 -1
- package/storybook-static/assets/client-BAyDOFGI.js +1 -0
- package/storybook-static/assets/{createLucideIcon-D1rlWUhC.js → createLucideIcon-DhNY7W9i.js} +1 -1
- package/storybook-static/assets/{download-Bmqc20p3.js → download-DDadr76l.js} +1 -1
- package/storybook-static/assets/{folder-BCJqv57N.js → folder-Dt06LOrp.js} +1 -1
- package/storybook-static/assets/{iconBase-Bvu3HEFH.js → iconBase-HFPlWF3A.js} +1 -1
- package/storybook-static/assets/iframe-1P7UMs1C.css +1 -0
- package/storybook-static/assets/{iframe-D7y7FUTK.js → iframe-rPhsLpUF.js} +3 -3
- package/storybook-static/assets/{index-C_G3JJLn.js → index-B9UM6a_o.js} +1 -1
- package/storybook-static/assets/{index-um02zCcj.js → index-Ctb6PtgV.js} +1 -1
- package/storybook-static/assets/{index-BCGRwJ5q.js → index-DVywRwbF.js} +1 -1
- package/storybook-static/assets/{proxy-Ce-uTDDv.js → proxy-uJ8evSzT.js} +1 -1
- package/storybook-static/assets/{react-18-DlLnXErP.js → react-18-CYoR46z3.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-ssg-DJvA.js → react-three-fiber.esm-A61ChP7H.js} +1 -1
- package/storybook-static/assets/{search-BpBodH3r.js → search-CIAI1CyG.js} +1 -1
- package/storybook-static/assets/{settings-D8D67Id0.js → settings-en9EIxHx.js} +1 -1
- package/storybook-static/assets/{sun-BQcJSsaQ.js → sun-D_CSzOJ1.js} +1 -1
- package/storybook-static/assets/{trash-2-D6WRmoL3.js → trash-2-C2s-nRjQ.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-CO9S19qn.js → use-animation-frame-B62vi9Ct.js} +1 -1
- package/storybook-static/assets/{use-in-view-DZc-byXh.js → use-in-view-BHudJAGG.js} +1 -1
- package/storybook-static/assets/{use-motion-value-mO9NrpTN.js → use-motion-value-jBEsDEvG.js} +1 -1
- package/storybook-static/assets/{use-spring-CdsbAGfL.js → use-spring-Bf02nu3H.js} +1 -1
- package/storybook-static/assets/{use-transform-DcYgqXpl.js → use-transform-Cfp6qWZw.js} +1 -1
- package/storybook-static/assets/{useSound-Ape9PZyo.js → useSound-CISJumm6.js} +1 -1
- package/storybook-static/assets/{users-BQ1OQC3n.js → users-Bm-CUW6N.js} +1 -1
- package/storybook-static/assets/{x-Cq6n8SKu.js → x-Bb1g_3HM.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/storybook-2/manager-bundle.js +1 -1
- package/storybook-static/assets/client-7pDjGlit.js +0 -1
- package/storybook-static/assets/iframe-CU5nRRrn.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,r as n}from"./iframe-
|
|
1
|
+
import{j as a,r as n}from"./iframe-rPhsLpUF.js";import{N as t}from"./NumberStepper-D1to6bpi.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-CISJumm6.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./index-B9UM6a_o.js";const I={title:"Atoms/NumberStepper",component:t,parameters:{layout:"centered"},argTypes:{value:{control:{type:"number"}},onChange:{action:"changed"},min:{control:{type:"number"}},max:{control:{type:"number"}},step:{control:{type:"number"}},label:{control:"text"},icon:{control:"text"},disabled:{control:"boolean"},size:{control:{type:"select"},options:["small","medium","large"]},variant:{control:{type:"select"},options:["default","outlined","filled","minimal","custom","tally"]},showPlusMinus:{control:"boolean"},allowKeyboard:{control:"boolean"}}},b=e=>{const[l,r]=n.useState(e.value||0);return a.jsx(t,{...e,value:l,onChange:s=>{var o;r(s),(o=e.onChange)==null||o.call(e,s)}})},i={render:e=>a.jsx(b,{...e}),args:{value:5,min:0,max:10,step:1}},c={render:e=>a.jsx(b,{...e}),args:{value:5,min:0,max:100,step:1,label:"Cigarettes",icon:"🚬"}},p={render:()=>{const[e,l]=n.useState(0),[r,s]=n.useState(0),[o,m]=n.useState(7);return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx(t,{value:e,onChange:l,min:0,max:10,step:1,label:"Glasses of Water",icon:"💧",variant:"filled"}),a.jsx(t,{value:r,onChange:s,min:0,max:120,step:15,label:"Exercise (minutes)",icon:"🏃",variant:"outlined"}),a.jsx(t,{value:o,onChange:m,min:0,max:12,step:.5,label:"Hours of Sleep",icon:"😴"})]})}},u={render:()=>{const[e,l]=n.useState(3),[r,s]=n.useState(1),[o,m]=n.useState(2),[g,A]=n.useState(0),E=e+r+o+g;return a.jsxs("div",{style:{width:520,padding:24,background:"#0d1320",color:"#e6e6e6",borderRadius:12,fontFamily:"var(--font-family-primary)"},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11,letterSpacing:"0.1em",textTransform:"uppercase",color:"#7a7e8a",marginBottom:12},children:[a.jsx("span",{children:"Counts — tap row to log"}),a.jsxs("span",{children:[E," today"]})]}),a.jsx(t,{variant:"tally",icon:"🚬",label:"Cigarettes",value:e,onChange:l,color:"#fd4545",min:0}),a.jsx(t,{variant:"tally",icon:"🌿",label:"Herbs",value:r,onChange:s,color:"#22c55e",min:0}),a.jsx(t,{variant:"tally",icon:"☕",label:"Coffees",value:o,onChange:m,color:"#f5b829",min:0}),a.jsx(t,{variant:"tally",icon:"🍷",label:"Alcohols",value:g,onChange:A,color:"#fce390",min:0})]})}},d={render:e=>a.jsx(b,{...e}),args:{value:100,min:0,max:999,step:1,label:"Health Points",icon:"❤️",showPlusMinus:!0,customStyles:{container:{background:"#1a1a2e",border:"2px solid #16213e",borderRadius:"12px",padding:"16px"},header:{marginBottom:"12px"},label:{color:"#eaeaea",fontSize:"14px",textTransform:"uppercase",letterSpacing:"1px"},icon:{filter:"drop-shadow(0 0 10px rgba(255, 0, 0, 0.5))"},stepper:{background:"#0f3460",borderRadius:"8px",padding:"8px"},button:{background:"#e94560",color:"white",border:"none",borderRadius:"6px",transition:"all 0.3s ease"},buttonHover:{background:"#ff4666",boxShadow:"0 0 20px rgba(233, 69, 96, 0.5)"},value:{color:"#00ff00",fontSize:"28px",fontFamily:"monospace",fontWeight:"bold",textShadow:"0 0 10px rgba(0, 255, 0, 0.5)"}}}};var x,f,h;i.parameters={...i.parameters,docs:{...(x=i.parameters)==null?void 0:x.docs,source:{originalSource:`{
|
|
2
2
|
render: args => <NumberStepperWrapper {...args} />,
|
|
3
3
|
args: {
|
|
4
4
|
value: 5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as E,j as D}from"./iframe-
|
|
1
|
+
import{r as E,j as D}from"./iframe-rPhsLpUF.js";import{R as P,P as U,V as g,M as W}from"./Mesh-CwXV3WjE.js";import{T as X}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const Y={"orb-container":"_orb-container_r9fzx_1"};function j({hue:o=0,hoverIntensity:a=.2,rotateOnHover:n=!0,forceHoverState:c=!1,backgroundColor:i="#000000"}){const l=E.useRef(null),h=`
|
|
2
2
|
precision highp float;
|
|
3
3
|
attribute vec2 position;
|
|
4
4
|
attribute vec2 uv;
|
package/storybook-static/assets/{OrbitImages.stories-Dxj-5r4i.js → OrbitImages.stories-DSTSVc16.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as j,j as c}from"./iframe-
|
|
1
|
+
import{r as j,j as c}from"./iframe-rPhsLpUF.js";import{u as K}from"./use-motion-value-jBEsDEvG.js";import{a as Q}from"./index-Ctb6PtgV.js";import{u as U}from"./use-transform-Cfp6qWZw.js";import{m as X}from"./proxy-uJ8evSzT.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";const g={"orbit-container":"_orbit-container_tujj3_1","orbit-scaling-container":"_orbit-scaling-container_tujj3_7","orbit-rotation-wrapper":"_orbit-rotation-wrapper_tujj3_20","orbit-path-svg":"_orbit-path-svg_tujj3_27","orbit-item":"_orbit-item_tujj3_33","orbit-center-content":"_orbit-center-content_tujj3_39","orbit-image":"_orbit-image_tujj3_48"};function P(e,t,r,a){return`M ${e-r} ${t} A ${r} ${a} 0 1 0 ${e+r} ${t} A ${r} ${a} 0 1 0 ${e-r} ${t}`}function S(e,t,r){return P(e,t,r,r)}function Y(e,t,r){const a=r/2;return`M ${e-a} ${t-a} L ${e+a} ${t-a} L ${e+a} ${t+a} L ${e-a} ${t+a} Z`}function x(e,t,r,a){const s=r/2,n=a/2;return`M ${e-s} ${t-n} L ${e+s} ${t-n} L ${e+s} ${t+n} L ${e-s} ${t+n} Z`}function y(e,t,r){const a=r*Math.sqrt(3)/2,s=r/2;return`M ${e} ${t-a/1.5} L ${e+s} ${t+a/3} L ${e-s} ${t+a/3} Z`}function ee(e,t,r,a,s){const n=Math.PI/s;let l="";for(let o=0;o<2*s;o++){const i=o%2===0?r:a,u=o*n-Math.PI/2,f=e+i*Math.cos(u),b=t+i*Math.sin(u);l+=o===0?`M ${f} ${b}`:` L ${f} ${b}`}return l+" Z"}function te(e,t,r){const a=r/30;return`M ${e} ${t+12*a} C ${e-20*a} ${t-5*a}, ${e-12*a} ${t-18*a}, ${e} ${t-8*a} C ${e+12*a} ${t-18*a}, ${e+20*a} ${t-5*a}, ${e} ${t+12*a}`}function ae(e,t,r,a){const s=r/2,n=a/2;return`M ${e} ${t} C ${e+s*.5} ${t-n}, ${e+s} ${t-n}, ${e+s} ${t} C ${e+s} ${t+n}, ${e+s*.5} ${t+n}, ${e} ${t} C ${e-s*.5} ${t+n}, ${e-s} ${t+n}, ${e-s} ${t} C ${e-s} ${t-n}, ${e-s*.5} ${t-n}, ${e} ${t}`}function se(e,t,r,a,s){const n=[],l=s*20,o=r/2;for(let i=0;i<=l;i++){const u=e-o+r*i/l,f=t+Math.sin(i/l*s*2*Math.PI)*a;n.push(i===0?`M ${u} ${f}`:`L ${u} ${f}`)}for(let i=l;i>=0;i--){const u=e-o+r*i/l,f=t-Math.sin(i/l*s*2*Math.PI)*a;n.push(`L ${u} ${f}`)}return n.join(" ")+" Z"}function re({item:e,index:t,totalItems:r,path:a,itemSize:s,rotation:n,progress:l,fill:o}){const i=o?t/r*100:0,u=U(l,f=>`${((f+i)%100+100)%100}%`);return c.jsx(X.div,{className:`${g["orbit-item"]}`,style:{width:s,height:s,offsetPath:`path("${a}")`,offsetRotate:"0deg",offsetAnchor:"center center",offsetDistance:u},children:c.jsx("div",{style:{transform:`rotate(${-n}deg)`},children:e})})}function D({images:e=[],altPrefix:t="Orbiting image",shape:r="ellipse",customPath:a,baseWidth:s=1400,radiusX:n=700,radiusY:l=170,radius:o=300,starPoints:i=5,starInnerRatio:u=.5,rotation:f=-8,duration:b=40,itemSize:T=64,direction:M="normal",fill:W=!0,width:q=100,height:I=100,className:k="",showPath:z=!1,pathColor:B="rgba(0,0,0,0.1)",pathWidth:H=2,easing:w="linear",paused:C=!1,centerContent:L,responsive:h=!1}){const v=j.useRef(null),[O,F]=j.useState(1),d=s/2,p=s/2,R=j.useMemo(()=>{switch(r){case"circle":return S(d,p,o);case"ellipse":return P(d,p,n,l);case"square":return Y(d,p,o*2);case"rectangle":return x(d,p,n*2,l*2);case"triangle":return y(d,p,o*2);case"star":return ee(d,p,o,o*u,i);case"heart":return te(d,p,o*2);case"infinity":return ae(d,p,n*2,l*2);case"wave":return se(d,p,n*2,l,3);case"custom":return a||S(d,p,o);default:return P(d,p,n,l)}},[r,a,d,p,n,l,o,i,u]);j.useEffect(()=>{if(!h||!v.current)return;const m=()=>{v.current&&F(v.current.clientWidth/s)};m();const $=new ResizeObserver(m);return $.observe(v.current),()=>$.disconnect()},[h,s]);const V=K(0);j.useEffect(()=>{if(C)return;const m=Q(V,M==="reverse"?-100:100,{duration:b,ease:w,repeat:1/0,repeatType:"loop"});return()=>m.stop()},[V,b,w,M,C]);const G=h?"100%":typeof q=="number"?q:"100%",J=h?"auto":typeof I=="number"?I:typeof q=="number"?q:"auto",N=e.map((m,$)=>c.jsx("img",{src:m,alt:`${t} ${$+1}`,draggable:!1,className:`${g["orbit-image"]}`},m));return c.jsxs("div",{ref:v,className:`${g["orbit-container"]} ${k}`,style:{width:G,height:J,aspectRatio:h?"1 / 1":void 0},"aria-hidden":"true",children:[c.jsx("div",{className:h?"orbit-scaling-container orbit-scaling-container--responsive":g["orbit-scaling-container"],style:{width:h?s:"100%",height:h?s:"100%",transform:h?`translate(-50%, -50%) scale(${O})`:void 0},children:c.jsxs("div",{className:`${g["orbit-rotation-wrapper"]}`,style:{transform:`rotate(${f}deg)`},children:[z&&c.jsx("svg",{width:"100%",height:"100%",viewBox:`0 0 ${s} ${s}`,className:`${g["orbit-path-svg"]}`,children:c.jsx("path",{d:R,fill:"none",stroke:B,strokeWidth:H/O})}),N.map((m,$)=>c.jsx(re,{item:m,index:$,totalItems:N.length,path:R,itemSize:T,rotation:f,progress:V,fill:W},$))]})}),L&&c.jsx("div",{className:`${g["orbit-center-content"]}`,children:L})]})}D.__docgenInfo={description:"",methods:[],displayName:"OrbitImages",props:{images:{defaultValue:{value:"[]",computed:!1},required:!1},altPrefix:{defaultValue:{value:"'Orbiting image'",computed:!1},required:!1},shape:{defaultValue:{value:"'ellipse'",computed:!1},required:!1},baseWidth:{defaultValue:{value:"1400",computed:!1},required:!1},radiusX:{defaultValue:{value:"700",computed:!1},required:!1},radiusY:{defaultValue:{value:"170",computed:!1},required:!1},radius:{defaultValue:{value:"300",computed:!1},required:!1},starPoints:{defaultValue:{value:"5",computed:!1},required:!1},starInnerRatio:{defaultValue:{value:"0.5",computed:!1},required:!1},rotation:{defaultValue:{value:"-8",computed:!1},required:!1},duration:{defaultValue:{value:"40",computed:!1},required:!1},itemSize:{defaultValue:{value:"64",computed:!1},required:!1},direction:{defaultValue:{value:"'normal'",computed:!1},required:!1},fill:{defaultValue:{value:"true",computed:!1},required:!1},width:{defaultValue:{value:"100",computed:!1},required:!1},height:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showPath:{defaultValue:{value:"false",computed:!1},required:!1},pathColor:{defaultValue:{value:"'rgba(0,0,0,0.1)'",computed:!1},required:!1},pathWidth:{defaultValue:{value:"2",computed:!1},required:!1},easing:{defaultValue:{value:"'linear'",computed:!1},required:!1},paused:{defaultValue:{value:"false",computed:!1},required:!1},responsive:{defaultValue:{value:"false",computed:!1},required:!1}}};const pe={title:"ReactBits/Animations/OrbitImages",component:D,parameters:{layout:"fullscreen"}},_={args:{images:["https://picsum.photos/seed/a/200/200","https://picsum.photos/seed/b/200/200","https://picsum.photos/seed/c/200/200","https://picsum.photos/seed/d/200/200","https://picsum.photos/seed/e/200/200","https://picsum.photos/seed/f/200/200"],altPrefix:"Orbiting image",shape:"ellipse",baseWidth:1400,radiusX:700,radiusY:170,radius:300,starPoints:5,starInnerRatio:.5,rotation:-8,duration:40,itemSize:64,direction:"normal",fill:!0,width:100,height:100,showPath:!1,pathColor:"rgba(0,0,0,0.1)",pathWidth:2,easing:"linear",paused:!1,responsive:!1}};var E,Z,A;_.parameters={..._.parameters,docs:{...(E=_.parameters)==null?void 0:E.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
images: ['https://picsum.photos/seed/a/200/200', 'https://picsum.photos/seed/b/200/200', 'https://picsum.photos/seed/c/200/200', 'https://picsum.photos/seed/d/200/200', 'https://picsum.photos/seed/e/200/200', 'https://picsum.photos/seed/f/200/200'],
|
|
4
4
|
altPrefix: 'Orbiting image',
|
package/storybook-static/assets/{PieChart.stories-DWw4EGwt.js → PieChart.stories-L1NRhd_j.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-rPhsLpUF.js";import{s as S,i as K,c as X}from"./transform-QOf3tDlt.js";import{a as H}from"./array-BKyUJesY.js";import{c as b}from"./path-CbwjOpE9.js";import{t as z,a as P}from"./arc-DgcIQOLP.js";import"./preload-helper-C1FmrZbK.js";function Q(n,a){let l=0;if(a===void 0)for(let c of n)(c=+c)&&(l+=c);else{let c=-1;for(let g of n)(g=+a(g,++c,n))&&(l+=g)}return l}function W(n,a){return a<n?-1:a>n?1:a>=n?0:NaN}function Z(n){return n}function ee(){var n=Z,a=W,l=null,c=b(0),g=b(z),w=b(0);function s(e){var r,i=(e=H(e)).length,m,L,C=0,_=new Array(i),u=new Array(i),A=+c.apply(this,arguments),h=Math.min(z,Math.max(-z,g.apply(this,arguments)-A)),T,x=Math.min(Math.abs(h)/i,w.apply(this,arguments)),R=x*(h<0?-1:1),d;for(r=0;r<i;++r)(d=u[_[r]=r]=+n(e[r],r,e))>0&&(C+=d);for(a!=null?_.sort(function(t,o){return a(u[t],u[o])}):l!=null&&_.sort(function(t,o){return l(e[t],e[o])}),r=0,L=C?(h-i*R)/C:0;r<i;++r,A=T)m=_[r],d=u[m],T=A+(d>0?d*L:0)+R,u[m]={data:e[m],index:r,value:d,startAngle:A,endAngle:T,padAngle:x};return u}return s.value=function(e){return arguments.length?(n=typeof e=="function"?e:b(+e),s):n},s.sortValues=function(e){return arguments.length?(a=e,l=null,s):a},s.sort=function(e){return arguments.length?(l=e,a=null,s):l},s.startAngle=function(e){return arguments.length?(c=typeof e=="function"?e:b(+e),s):c},s.endAngle=function(e){return arguments.length?(g=typeof e=="function"?e:b(+e),s):g},s.padAngle=function(e){return arguments.length?(w=typeof e=="function"?e:b(+e),s):w},s}const te="_container_1d3zv_1",ne="_title_1d3zv_7",ae="_chartContainer_1d3zv_15",re="_chart_1d3zv_15",oe="_legend_1d3zv_26",le="_legendItem_1d3zv_31",se="_legendColor_1d3zv_45",ie="_legendLabel_1d3zv_52",ce="_legendValue_1d3zv_59",ue="_tooltip_1d3zv_65",p={container:te,title:ne,chartContainer:ae,chart:re,legend:oe,legendItem:le,legendColor:se,legendLabel:ie,legendValue:ce,tooltip:ue},f=["#6366f1","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444","#ec4899","#84cc16","#f97316","#3b82f6","#8b5cf6","#14b8a6","#f59e0b","#ef4444","#06b6d4","#10b981"],$=n=>{const a=X(n);if(!a)return"#ffffff";const l=a.rgb();return(.299*l.r+.587*l.g+.114*l.b)/255>.5?"#000000":"#ffffff"},G=({data:n,width:a=400,height:l=400,title:c="Distribution",showLegend:g=!0,unit:w="items",centerLabel:s})=>{const e=q.useRef(null),r=Math.min(a,l)/2-20;return q.useEffect(()=>{if(!e.current||!n.length)return;const i=S(e.current);i.selectAll("*").remove();const m=i.append("g").attr("transform",`translate(${a/2},${l/2})`),L=ee().value(t=>t.value).sort(null),C=P().innerRadius(r*.4).outerRadius(r).cornerRadius(4),_=P().innerRadius(r*.7).outerRadius(r*.7),u=S("body").append("div").attr("class",p.tooltip).style("opacity",0).style("position","absolute"),A=L(n),h=Q(n,t=>t.value),T=m.selectAll(".arc").data(A).enter().append("g").attr("class","arc");T.append("path").attr("d",t=>C(t)).attr("fill",(t,o)=>t.data.color||f[o%f.length]).attr("stroke","var(--bg-primary)").attr("stroke-width",3).style("cursor","pointer").style("filter","drop-shadow(0 2px 8px rgba(0,0,0,0.15))").on("mouseover",function(t,o){const y=P().innerRadius(r*.4).outerRadius(r*1.05).cornerRadius(4);S(this).transition().duration(200).attr("d",M=>y(M)).style("filter","drop-shadow(0 4px 12px rgba(0,0,0,0.25))"),u.transition().duration(200).style("opacity",1);const V=(o.data.value/h*100).toFixed(1);u.html(`
|
|
2
2
|
<div><strong>${o.data.name}</strong></div>
|
|
3
3
|
<div>Value: ${o.data.value.toLocaleString()}</div>
|
|
4
4
|
<div>${V}% of total</div>
|
package/storybook-static/assets/{PixelBlast.stories-C3u9ldzB.js → PixelBlast.stories-CfT09XYZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as z,j as Ee}from"./iframe-
|
|
1
|
+
import{r as z,j as Ee}from"./iframe-rPhsLpUF.js";import{E as re,R as le,b as ie,a as me}from"./index-DcRHiSf7.js";import{W as we,d as ne,n as Re,S as Ce,a as Pe,i as qe,a9 as Te,q as be,M as Ae,f as ze,G as M,a2 as Me,z as se}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const Fe={"pixel-blast-container":"_pixel-blast-container_a95g7_1"},ke=()=>{const l=document.createElement("canvas");l.width=64,l.height=64;const i=l.getContext("2d");if(!i)throw new Error("2D context not available");i.fillStyle="black",i.fillRect(0,0,l.width,l.height);const T=new Me(l);T.minFilter=se,T.magFilter=se,T.generateMipmaps=!1;const E=[];let w=null;const m=64;let R=.1*64;const F=1/m,k=()=>{i.fillStyle="black",i.fillRect(0,0,l.width,l.height)},I=a=>{const n={x:a.x*64,y:(1-a.y)*64};let c=1;const C=v=>Math.sin(v*Math.PI/2),g=v=>-v*(v-2);a.age<m*.3?c=C(a.age/(m*.3)):c=g(1-(a.age-m*.3)/(m*.7))||0,c*=a.force;const h=`${(a.vx+1)/2*255}, ${(a.vy+1)/2*255}, ${c*255}`,p=64*5;i.shadowOffsetX=p,i.shadowOffsetY=p,i.shadowBlur=R,i.shadowColor=`rgba(${h},${.22*c})`,i.beginPath(),i.fillStyle="rgba(255,0,0,1)",i.arc(n.x-p,n.y-p,R,0,Math.PI*2),i.fill()};return{canvas:l,texture:T,addTouch:a=>{let n=0,c=0,C=0;if(w){const g=a.x-w.x,h=a.y-w.y;if(g===0&&h===0)return;const p=g*g+h*h,v=Math.sqrt(p);c=g/(v||1),C=h/(v||1),n=Math.min(p*1e4,1)}w={x:a.x,y:a.y},E.push({x:a.x,y:a.y,age:0,force:n,vx:c,vy:C})},update:()=>{k();for(let a=E.length-1;a>=0;a--){const n=E[a],c=n.force*F*(1-n.age/m);n.x+=n.vx*c,n.y+=n.vy*c,n.age++,n.age>m&&E.splice(a,1)}for(let a=0;a<E.length;a++)I(E[a]);T.needsUpdate=!0},set radiusScale(a){R=.1*64*a},get radiusScale(){return R/(.1*64)},size:64}},Ie=(b,l)=>{const i=`
|
|
2
2
|
uniform sampler2D uTexture;
|
|
3
3
|
uniform float uStrength;
|
|
4
4
|
uniform float uTime;
|
package/storybook-static/assets/{PixelCard.stories-BtQ8LfFf.js → PixelCard.stories-B2LTanjI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as V}from"./iframe-
|
|
1
|
+
import{r as l,j as V}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";const q={"pixel-canvas":"_pixel-canvas_wo94u_1","pixel-card":"_pixel-card_wo94u_7"};class J{constructor(t,u,p,x,i,y,n){this.width=t.width,this.height=t.height,this.ctx=u,this.x=p,this.y=x,this.color=i,this.speed=this.getRandomValue(.1,.9)*y,this.size=0,this.sizeStep=Math.random()*.4,this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.getRandomValue(this.minSize,this.maxSizeInteger),this.delay=n,this.counter=0,this.counterStep=Math.random()*4+(this.width+this.height)*.01,this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1}getRandomValue(t,u){return Math.random()*(u-t)+t}draw(){const t=this.maxSizeInteger*.5-this.size*.5;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+t,this.y+t,this.size,this.size)}appear(){if(this.isIdle=!1,this.counter<=this.delay){this.counter+=this.counterStep;return}this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw()}disappear(){if(this.isShimmer=!1,this.counter=0,this.size<=0){this.isIdle=!0;return}else this.size-=.1;this.draw()}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.isReverse?this.size-=this.speed:this.size+=this.speed}}function K(m,t){const i=parseInt(m,10);return i<=0||t?0:i>=100?100*.001:i*.001}const T={default:{activeColor:null,gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{activeColor:"#e0f2fe",gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{activeColor:"#fef08a",gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{activeColor:"#fecdd3",gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};function O({variant:m="default",gap:t,speed:u,colors:p,noFocus:x,className:i="",children:y}){const n=l.useRef(null),s=l.useRef(null),I=l.useRef([]),h=l.useRef(null),F=l.useRef(performance.now()),M=l.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,g=T[m]||T.default,C=t??g.gap,A=u??g.speed,_=p??g.colors,v=x??g.noFocus,b=()=>{if(!n.current||!s.current)return;const e=n.current.getBoundingClientRect(),a=Math.floor(e.width),o=Math.floor(e.height),z=s.current.getContext("2d");s.current.width=a,s.current.height=o,s.current.style.width=`${a}px`,s.current.style.height=`${o}px`;const d=_.split(","),f=[];for(let c=0;c<a;c+=parseInt(C,10))for(let r=0;r<o;r+=parseInt(C,10)){const S=d[Math.floor(Math.random()*d.length)],E=c-a/2,N=r-o/2,G=Math.sqrt(E*E+N*N),L=M?0:G;f.push(new J(s.current,z,c,r,S,K(A,M),L))}I.current=f},P=e=>{var c;h.current=requestAnimationFrame(()=>P(e));const a=performance.now(),o=a-F.current,z=1e3/60;if(o<z)return;F.current=a-o%z;const d=(c=s.current)==null?void 0:c.getContext("2d");if(!d||!s.current)return;d.clearRect(0,0,s.current.width,s.current.height);let f=!0;for(let r=0;r<I.current.length;r++){const S=I.current[r];S[e](),S.isIdle||(f=!1)}f&&cancelAnimationFrame(h.current)},R=e=>{cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>P(e))},D=()=>R("appear"),H=()=>R("disappear"),W=e=>{e.currentTarget.contains(e.relatedTarget)||R("appear")},k=e=>{e.currentTarget.contains(e.relatedTarget)||R("disappear")};return l.useEffect(()=>{b();const e=new ResizeObserver(()=>{b()});return n.current&&e.observe(n.current),()=>{e.disconnect(),cancelAnimationFrame(h.current)}},[C,A,_,v]),V.jsxs("div",{ref:n,className:`${q["pixel-card"]} ${i}`,onMouseEnter:D,onMouseLeave:H,onFocus:v?void 0:W,onBlur:v?void 0:k,tabIndex:v?-1:0,children:[V.jsx("canvas",{className:`${q["pixel-canvas"]}`,ref:s}),y]})}O.__docgenInfo={description:"",methods:[],displayName:"PixelCard",props:{variant:{defaultValue:{value:"'default'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const X={title:"ReactBits/Components/PixelCard",component:O,parameters:{layout:"fullscreen"}},w={args:{variant:"default",children:"Hello World"}};var $,j,B;w.parameters={...w.parameters,docs:{...($=w.parameters)==null?void 0:$.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
variant: 'default',
|
|
4
4
|
children: 'Hello World'
|
package/storybook-static/assets/{PixelSnow.stories-KpmT5jBn.js → PixelSnow.stories-Kg0VE4Bc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,j as B}from"./iframe-
|
|
1
|
+
import{r as t,j as B}from"./iframe-rPhsLpUF.js";import{n as K,e as O,S as T,a as U,W as X,i as G,d as H,q as W,M as Y}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const J={"pixel-snow-container":"_pixel-snow-container_udm6i_1"},L=`
|
|
2
2
|
void main() {
|
|
3
3
|
gl_Position = vec4(position, 1.0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as l}from"./iframe-
|
|
1
|
+
import{r,j as l}from"./iframe-rPhsLpUF.js";import{g as d}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const c={"pixelated-image-card":"_pixelated-image-card_12og9_1","pixelated-image-card__default":"_pixelated-image-card__default_12og9_12","pixelated-image-card__active":"_pixelated-image-card__active_12og9_13","pixelated-image-card__pixels":"_pixelated-image-card__pixels_12og9_14","pixelated-image-card__pixel":"_pixelated-image-card__pixel_12og9_14"};function E({firstContent:b,secondContent:F,gridSize:u=7,pixelColor:_="currentColor",animationStepDuration:m=.3,once:v=!1,aspectRatio:$="100%",className:q="",style:S={}}){const T=r.useRef(null),x=r.useRef(null),h=r.useRef(null),g=r.useRef(null),[i,I]=r.useState(!1),o="ontouchstart"in window||navigator.maxTouchPoints>0||window.matchMedia("(pointer: coarse)").matches;r.useEffect(()=>{const t=x.current;if(t){t.innerHTML="";for(let n=0;n<u;n++)for(let a=0;a<u;a++){const e=document.createElement("div");e.classList.add(c["pixelated-image-card__pixel"]),e.setAttribute("data-pixel",""),e.style.backgroundColor=_;const s=100/u;e.style.width=`${s}%`,e.style.height=`${s}%`,e.style.left=`${a*s}%`,e.style.top=`${n*s}%`,t.appendChild(e)}}},[u,_]);const f=t=>{I(t);const n=x.current,a=h.current;if(!n||!a)return;const e=n.querySelectorAll("[data-pixel]");if(!e.length)return;d.killTweensOf(e),g.current&&g.current.kill(),d.set(e,{display:"none"});const s=e.length,R=m/s;d.to(e,{display:"block",duration:0,stagger:{each:R,from:"random"}}),g.current=d.delayedCall(m,()=>{a.style.display=t?"block":"none",a.style.pointerEvents=t?"none":""}),d.to(e,{display:"none",duration:0,delay:m,stagger:{each:R,from:"random"}})},y=()=>{i||f(!0)},C=()=>{i&&!v&&f(!1)},V=()=>{i?i&&!v&&f(!1):f(!0)};return l.jsxs("div",{ref:T,className:`${c["pixelated-image-card"]} ${q}`,style:S,onMouseEnter:o?void 0:y,onMouseLeave:o?void 0:C,onClick:o?V:void 0,onFocus:o?void 0:y,onBlur:o?void 0:C,tabIndex:0,children:[l.jsx("div",{style:{paddingTop:$}}),l.jsx("div",{className:`${c["pixelated-image-card__default"]}`,"aria-hidden":i,children:b}),l.jsx("div",{className:`${c["pixelated-image-card__active"]}`,ref:h,"aria-hidden":!i,children:F}),l.jsx("div",{className:`${c["pixelated-image-card__pixels"]}`,ref:x})]})}E.__docgenInfo={description:"",methods:[],displayName:"PixelTransition",props:{gridSize:{defaultValue:{value:"7",computed:!1},required:!1},pixelColor:{defaultValue:{value:"'currentColor'",computed:!1},required:!1},animationStepDuration:{defaultValue:{value:"0.3",computed:!1},required:!1},once:{defaultValue:{value:"false",computed:!1},required:!1},aspectRatio:{defaultValue:{value:"'100%'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},style:{defaultValue:{value:"{}",computed:!1},required:!1}}};const A={title:"ReactBits/Animations/PixelTransition",component:E,parameters:{layout:"fullscreen"}},p={args:{firstContent:l.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#1a1a2e",color:"#fff",fontSize:"2rem"},children:"Hover me"}),secondContent:l.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#5227FF",color:"#fff",fontSize:"2rem"},children:"Revealed!"}),gridSize:7,pixelColor:"#5227FF",aspectRatio:"100%"}};var j,k,w;p.parameters={...p.parameters,docs:{...(j=p.parameters)==null?void 0:j.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
firstContent: <div style={{
|
|
4
4
|
width: '100%',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as y,j as U}from"./iframe-
|
|
1
|
+
import{r as y,j as U}from"./iframe-rPhsLpUF.js";import{R as E,P as Q,M as j}from"./Mesh-CwXV3WjE.js";import{T as k}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const L={"plasma-container":"_plasma-container_4c6hx_1"},N=n=>{const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return o?[parseInt(o[1],16)/255,parseInt(o[2],16)/255,parseInt(o[3],16)/255]:[1,.5,.2]},$=`#version 300 es
|
|
2
2
|
precision highp float;
|
|
3
3
|
in vec2 position;
|
|
4
4
|
in vec2 uv;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as le,j as Ne}from"./iframe-
|
|
1
|
+
import{r as le,j as Ne}from"./iframe-rPhsLpUF.js";import{R as Ye,P as je,M as De}from"./Mesh-CwXV3WjE.js";import{T as Ge}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const Xe={"prism-container":"_prism-container_sjqpx_1"},ce=({height:T=3.5,baseWidth:z=5.5,animationType:h="rotate",glow:W=1,offset:s={x:0,y:0},noise:U=.5,transparent:E=!0,scale:N=3.6,hueShift:Y=0,colorFrequency:j=1,hoverStrength:D=2,inertia:G=.05,bloom:X=1,suspendWhenOffscreen:P=!1,timeScale:Z=.5})=>{const k=le.useRef(null);return le.useEffect(()=>{const r=k.current;if(!r)return;const b=Math.max(.001,T),H=Math.max(.001,z)*.5,fe=Math.max(0,W),Q=Math.max(0,U),me=(s==null?void 0:s.x)??0,de=(s==null?void 0:s.y)??0,ve=E?1.5:1,I=Math.max(.001,N),he=Y||0,pe=Math.max(0,j||1),xe=Math.max(0,X||1),we=1,Me=1,Se=1,R=Math.max(0,Z||1),$=Math.max(0,D||1),J=Math.max(0,Math.min(1,G||.12)),_=Math.min(2,window.devicePixelRatio||1),A=new Ye({dpr:_,alpha:E,antialias:!1}),a=A.gl;a.disable(a.DEPTH_TEST),a.disable(a.CULL_FACE),a.disable(a.BLEND),Object.assign(a.canvas.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block"}),r.appendChild(a.canvas);const ge=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
void main() {
|
|
4
4
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as n,j as te}from"./iframe-
|
|
1
|
+
import{r as n,j as te}from"./iframe-rPhsLpUF.js";import{R as re,P as ae,M as ne}from"./Mesh-CwXV3WjE.js";import{T as oe}from"./Texture-BkQWYNP2.js";import{T as se}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const ue={"prismatic-burst-container":"_prismatic-burst-container_u2n5x_1"},ce=`#version 300 es
|
|
2
2
|
in vec2 position;
|
|
3
3
|
in vec2 uv;
|
|
4
4
|
out vec2 vUv;
|
package/storybook-static/assets/{ProfileCard.stories-Bfv1Qk_A.js → ProfileCard.stories-Cnb3pxki.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as ve,r as o,j as r}from"./iframe-
|
|
1
|
+
import{R as ve,r as o,j as r}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";const he="_active_uxwt3_56",_e="_entering_uxwt3_84",xe="_avatar_uxwt3_252",n={"pc-behind":"_pc-behind_uxwt3_40",active:he,"pc-card":"_pc-card_uxwt3_33","pc-card-shell":"_pc-card-shell_uxwt3_84",entering:_e,"pc-inside":"_pc-inside_uxwt3_100","pc-shine":"_pc-shine_uxwt3_108","pc-glare":"_pc-glare_uxwt3_232","pc-avatar-content":"_pc-avatar-content_uxwt3_245",avatar:xe,"pc-user-info":"_pc-user-info_uxwt3_274","pc-user-details":"_pc-user-details_uxwt3_293","pc-mini-avatar":"_pc-mini-avatar_uxwt3_299","pc-user-text":"_pc-user-text_uxwt3_315","pc-handle":"_pc-handle_uxwt3_322","pc-status":"_pc-status_uxwt3_329","pc-contact-btn":"_pc-contact-btn_uxwt3_335","pc-content":"_pc-content_uxwt3_353","pc-details":"_pc-details_uxwt3_367"},ge="linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)",L={INITIAL_DURATION:1200,INITIAL_X_OFFSET:70,INITIAL_Y_OFFSET:60,DEVICE_BETA_OFFSET:20,ENTER_TRANSITION_MS:180},$=(p,d=0,v=100)=>Math.min(Math.max(p,d),v),C=(p,d=3)=>parseFloat(p.toFixed(d)),z=(p,d,v,x,O)=>C(x+(O-x)*(p-d)/(v-d)),Z=({avatarUrl:p="<Placeholder for avatar URL>",iconUrl:d="<Placeholder for icon URL>",grainUrl:v="<Placeholder for grain URL>",innerGradient:x,behindGlowEnabled:O=!0,behindGlowColor:S,behindGlowSize:U,className:ee="",enableTilt:A=!0,enableMobileTilt:V=!1,mobileTiltSensitivity:q=5,miniAvatarUrl:te,name:y="Javi A. Torres",title:ne="Software Engineer",handle:ae="javicodes",status:re="Online",contactText:se="Contact",showUserInfo:ce=!0,onContactClick:F})=>{const M=o.useRef(null),m=o.useRef(null),g=o.useRef(null),h=o.useRef(null),s=o.useMemo(()=>{if(!A)return null;let e=null,t=!1,a=0,c=0,i=0,u=0,f=0;const E=.14,T=.6;let j=0;const H=(l,_)=>{const w=m.current,I=M.current;if(!w||!I)return;const J=w.clientWidth||1,oe=w.clientHeight||1,N=$(100/J*l),b=$(100/oe*_),ue=N-50,de=b-50,pe={"--pointer-x":`${N}%`,"--pointer-y":`${b}%`,"--background-x":`${z(N,0,100,35,65)}%`,"--background-y":`${z(b,0,100,35,65)}%`,"--pointer-from-center":`${$(Math.hypot(b-50,N-50)/50,0,1)}`,"--pointer-from-top":`${b/100}`,"--pointer-from-left":`${N/100}`,"--rotate-x":`${C(-(ue/5))}deg`,"--rotate-y":`${C(de/4)}deg`};for(const[fe,me]of Object.entries(pe))I.style.setProperty(fe,me)},W=l=>{if(!t)return;a===0&&(a=l);const _=(l-a)/1e3;a=l;const w=l<j?T:E,I=1-Math.exp(-_/w);c+=(u-c)*I,i+=(f-i)*I,H(c,i),Math.abs(u-c)>.05||Math.abs(f-i)>.05||document.hasFocus()?e=requestAnimationFrame(W):(t=!1,a=0,e&&(cancelAnimationFrame(e),e=null))},B=()=>{t||(t=!0,a=0,e=requestAnimationFrame(W))};return{setImmediate(l,_){c=l,i=_,H(c,i)},setTarget(l,_){u=l,f=_,B()},toCenter(){const l=m.current;l&&this.setTarget(l.clientWidth/2,l.clientHeight/2)},beginInitial(l){j=performance.now()+l,B()},getCurrent(){return{x:c,y:i,tx:u,ty:f}},cancel(){e&&cancelAnimationFrame(e),e=null,t=!1,a=0}}},[A]),P=(e,t)=>{const a=t.getBoundingClientRect();return{x:e.clientX-a.left,y:e.clientY-a.top}},D=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),k=o.useCallback(e=>{const t=m.current;if(!t||!s)return;t.classList.add(n.active),t.classList.add(n.entering),g.current&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{t.classList.remove(n.entering)},L.ENTER_TRANSITION_MS);const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),X=o.useCallback(()=>{const e=m.current;if(!e||!s)return;s.toCenter();const t=()=>{const{x:a,y:c,tx:i,ty:u}=s.getCurrent();Math.hypot(i-a,u-c)<.6?(e.classList.remove(n.active),h.current=null):h.current=requestAnimationFrame(t)};h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(t)},[s]),Y=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{beta:a,gamma:c}=e;if(a==null||c==null)return;const i=t.clientWidth/2,u=t.clientHeight/2,f=$(i+c*q,0,t.clientWidth),E=$(u+(a-L.DEVICE_BETA_OFFSET)*q,0,t.clientHeight);s.setTarget(f,E)},[s,q]);o.useEffect(()=>{if(!A||!s)return;const e=m.current;if(!e)return;const t=D,a=k,c=X,i=Y;e.addEventListener("pointerenter",a),e.addEventListener("pointermove",t),e.addEventListener("pointerleave",c);const u=()=>{if(!V||location.protocol!=="https:")return;const T=window.DeviceMotionEvent;T&&typeof T.requestPermission=="function"?T.requestPermission().then(j=>{j==="granted"&&window.addEventListener("deviceorientation",i)}).catch(console.error):window.addEventListener("deviceorientation",i)};e.addEventListener("click",u);const f=(e.clientWidth||0)-L.INITIAL_X_OFFSET,E=L.INITIAL_Y_OFFSET;return s.setImmediate(f,E),s.toCenter(),s.beginInitial(L.INITIAL_DURATION),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointermove",t),e.removeEventListener("pointerleave",c),e.removeEventListener("click",u),window.removeEventListener("deviceorientation",i),g.current&&window.clearTimeout(g.current),h.current&&cancelAnimationFrame(h.current),s.cancel(),e.classList.remove(n.entering)}},[A,V,s,D,k,X,Y]);const le=o.useMemo(()=>({"--icon":d?`url(${d})`:"none","--grain":v?`url(${v})`:"none","--inner-gradient":x??ge,"--behind-glow-color":S??"rgba(125, 190, 255, 0.67)","--behind-glow-size":U??"50%"}),[d,v,x,S,U]),ie=o.useCallback(()=>{F==null||F()},[F]);return r.jsxs("div",{ref:M,className:`pc-card-wrapper ${ee}`.trim(),style:le,children:[O&&r.jsx("div",{className:`${n["pc-behind"]}`}),r.jsx("div",{ref:m,className:`${n["pc-card-shell"]}`,children:r.jsx("section",{className:`${n["pc-card"]}`,children:r.jsxs("div",{className:`${n["pc-inside"]}`,children:[r.jsx("div",{className:`${n["pc-shine"]}`}),r.jsx("div",{className:`${n["pc-glare"]}`}),r.jsxs("div",{className:`${n["pc-content"]} ${n["pc-avatar-content"]}`,children:[r.jsx("img",{className:`${n.avatar}`,src:p,alt:`${y||"User"} avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.display="none"}}),ce&&r.jsxs("div",{className:`${n["pc-user-info"]}`,children:[r.jsxs("div",{className:`${n["pc-user-details"]}`,children:[r.jsx("div",{className:`${n["pc-mini-avatar"]}`,children:r.jsx("img",{src:te||p,alt:`${y||"User"} mini avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.opacity="0.5",t.src=p}})}),r.jsxs("div",{className:`${n["pc-user-text"]}`,children:[r.jsxs("div",{className:`${n["pc-handle"]}`,children:["@",ae]}),r.jsx("div",{className:`${n["pc-status"]}`,children:re})]})]}),r.jsx("button",{className:`${n["pc-contact-btn"]}`,onClick:ie,style:{pointerEvents:"auto"},type:"button","aria-label":`Contact ${y||"user"}`,children:se})]})]}),r.jsx("div",{className:`${n["pc-content"]}`,children:r.jsxs("div",{className:`${n["pc-details"]}`,children:[r.jsx("h3",{children:y}),r.jsx("p",{children:ne})]})})]})})})]})},Ee=ve.memo(Z);Z.__docgenInfo={description:"",methods:[],displayName:"ProfileCardComponent",props:{avatarUrl:{defaultValue:{value:"'<Placeholder for avatar URL>'",computed:!1},required:!1},iconUrl:{defaultValue:{value:"'<Placeholder for icon URL>'",computed:!1},required:!1},grainUrl:{defaultValue:{value:"'<Placeholder for grain URL>'",computed:!1},required:!1},behindGlowEnabled:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},enableTilt:{defaultValue:{value:"true",computed:!1},required:!1},enableMobileTilt:{defaultValue:{value:"false",computed:!1},required:!1},mobileTiltSensitivity:{defaultValue:{value:"5",computed:!1},required:!1},name:{defaultValue:{value:"'Javi A. Torres'",computed:!1},required:!1},title:{defaultValue:{value:"'Software Engineer'",computed:!1},required:!1},handle:{defaultValue:{value:"'javicodes'",computed:!1},required:!1},status:{defaultValue:{value:"'Online'",computed:!1},required:!1},contactText:{defaultValue:{value:"'Contact'",computed:!1},required:!1},showUserInfo:{defaultValue:{value:"true",computed:!1},required:!1}}};const Ie={title:"ReactBits/Components/ProfileCard",component:Ee,parameters:{layout:"fullscreen"}},R={args:{avatarUrl:"https://i.pravatar.cc/300?img=12",behindGlowEnabled:!0,enableTilt:!0,enableMobileTilt:!1,mobileTiltSensitivity:5,name:"Javi A. Torres",title:"Software Engineer",handle:"javicodes",status:"Online",contactText:"Contact",showUserInfo:!0}};var G,K,Q;R.parameters={...R.parameters,docs:{...(G=R.parameters)==null?void 0:G.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
avatarUrl: 'https://i.pravatar.cc/300?img=12',
|
|
4
4
|
behindGlowEnabled: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as n}from"./iframe-
|
|
1
|
+
import{r as d,j as n}from"./iframe-rPhsLpUF.js";import{s as Y}from"./transform-QOf3tDlt.js";import{t as be,e as ke,l as Se,m as Te}from"./monotone-DouxdRGd.js";import{l as je}from"./linear-DhrdWH9x.js";import{C as De}from"./chart-column-jT4jlZWv.js";import{c as H}from"./createLucideIcon-DhNY7W9i.js";import{C as Ce}from"./calendar-jGMMZsgE.js";import{t as Q}from"./defaultLocale-DJ2q5QjE.js";import{a as Ee,b as qe}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.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 y,j as W}from"./iframe-
|
|
1
|
+
import{r as y,j as W}from"./iframe-rPhsLpUF.js";import{R as D,P as G,M as U}from"./Mesh-CwXV3WjE.js";import{T as z}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const j={"radar-container":"_radar-container_51ksp_1"};function L(n){const o=n.replace("#","");return[parseInt(o.slice(0,2),16)/255,parseInt(o.slice(2,4),16)/255,parseInt(o.slice(4,6),16)/255]}const N=`
|
|
2
2
|
attribute vec2 uv;
|
|
3
3
|
attribute vec2 position;
|
|
4
4
|
varying vec2 vUv;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1cryq_1{display:flex;flex-direction:column;gap:var(--spacing-sm)}._field_1cryq_7{display:flex;flex-direction:column;gap:6px}._fieldCentered_1cryq_13{align-items:center;text-align:center}._fieldLabel_1cryq_18{font-size:var(--font-size-sm);font-weight:500;color:var(--color-text-secondary)}._fieldRow_1cryq_24{display:flex;align-items:center;gap:var(--spacing-sm)}._fieldUnit_1cryq_30{font-size:var(--font-size-sm);color:var(--color-text-secondary)}._dayPicker_1cryq_35{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}._dayBtn_1cryq_42{width:32px;height:32px;border-radius:var(--radius-full);border:1px solid var(--color-border);background:var(--color-background);color:var(--color-text-secondary);font-size:var(--font-size-sm);font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}._dayBtn_1cryq_42:hover{border-color:var(--color-primary);color:var(--color-text)}._dayBtnActive_1cryq_64{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-background)}._preview_1cryq_70{font-size:var(--font-size-sm);font-style:italic;color:var(--color-text-secondary);margin-top:4px}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{r as B,j as b}from"./iframe-rPhsLpUF.js";import{C as Tt}from"./Checkbox-xrie0yDX.js";import{N as fe}from"./NumberStepper-D1to6bpi.js";import{S as Le}from"./SelectInput-BqVWIQmb.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-CISJumm6.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./index-B9UM6a_o.js";import"./chevron-down-C40D1TRM.js";import"./createLucideIcon-DhNY7W9i.js";var pe=["MO","TU","WE","TH","FR","SA","SU"],O=function(){function t(e,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=r}return t.fromStr=function(e){return new t(pe.indexOf(e))},t.prototype.nth=function(e){return this.n===e?this:new t(this.weekday,e)},t.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},t.prototype.toString=function(){var e=pe[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},t}(),Y=function(t){return t!=null},_=function(t){return typeof t=="number"},Oe=function(t){return typeof t=="string"&&pe.includes(t)},S=Array.isArray,W=function(t,e){e===void 0&&(e=t),arguments.length===1&&(e=t,t=0);for(var r=[],n=t;n<e;n++)r.push(n);return r},w=function(t,e){var r=0,n=[];if(S(t))for(;r<e;r++)n[r]=[].concat(t);else for(;r<e;r++)n[r]=t;return n},Yt=function(t){return S(t)?t:[t]};function z(t,e,r){r===void 0&&(r=" ");var n=String(t);return e=e>>0,n.length>e?String(n):(e=e-n.length,e>r.length&&(r+=w(r,e/r.length)),r.slice(0,e)+String(n))}var xt=function(t,e,r){var n=t.split(e);return r?n.slice(0,r).concat([n.slice(r).join(e)]):n},N=function(t,e){var r=t%e;return r*e<0?r+e:r},de=function(t,e){return{div:Math.floor(t/e),mod:N(t,e)}},I=function(t){return!Y(t)||t.length===0},D=function(t){return!I(t)},g=function(t,e){return D(t)&&t.indexOf(e)!==-1},K=function(t,e,r,n,a,i){return n===void 0&&(n=0),a===void 0&&(a=0),i===void 0&&(i=0),new Date(Date.UTC(t,e-1,r,n,a,i))},Dt=[31,28,31,30,31,30,31,31,30,31,30,31],ft=1e3*60*60*24,dt=9999,yt=K(1970,1,1),Mt=[6,0,1,2,3,4,5],V=function(t){return t%4===0&&t%100!==0||t%400===0},pt=function(t){return t instanceof Date},X=function(t){return pt(t)&&!isNaN(t.getTime())},Lt=function(t,e){var r=t.getTime(),n=e.getTime(),a=r-n;return Math.round(a/ft)},me=function(t){return Lt(t,yt)},mt=function(t){return new Date(yt.getTime()+t*ft)},Ot=function(t){var e=t.getUTCMonth();return e===1&&V(t.getUTCFullYear())?29:Dt[e]},Q=function(t){return Mt[t.getUTCDay()]},Se=function(t,e){var r=K(t,e+1,1);return[Q(r),Ot(r)]},bt=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},be=function(t){var e=new Date(t.getTime());return e},Ae=function(t){for(var e=[],r=0;r<t.length;r++)e.push(be(t[r]));return e},ee=function(t){t.sort(function(e,r){return e.getTime()-r.getTime()})},ke=function(t,e){e===void 0&&(e=!0);var r=new Date(t);return[z(r.getUTCFullYear().toString(),4,"0"),z(r.getUTCMonth()+1,2,"0"),z(r.getUTCDate(),2,"0"),"T",z(r.getUTCHours(),2,"0"),z(r.getUTCMinutes(),2,"0"),z(r.getUTCSeconds(),2,"0"),e?"Z":""].join("")},ge=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,r=e.exec(t);if(!r)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[5],10)||0,parseInt(r[6],10)||0,parseInt(r[7],10)||0))},Ne=function(t,e){var r=t.toLocaleString("sv-SE",{timeZone:e});return r.replace(" ","T")+"Z"},St=function(t,e){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(Ne(t,r)),a=new Date(Ne(t,e??"UTC")),i=a.getTime()-n.getTime();return new Date(t.getTime()-i)},Z=function(){function t(e,r){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=r,e==="between"?(this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1),this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)):e==="before"?this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1):e==="after"&&(this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1))}return t.prototype.accept=function(e){++this.total;var r=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if(this.method==="between"){if(r)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return r?!0:(this.add(e),!1);return this.add(e)},t.prototype.add=function(e){return this._result.push(e),!0},t.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}(),ve=function(t,e){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},ve(t,e)};function Te(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ve(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var A=function(){return A=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},A.apply(this,arguments)};function h(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var Re=function(t){Te(e,t);function e(r,n,a){var i=t.call(this,r,n)||this;return i.iterator=a,i}return e.prototype.add=function(r){return this.iterator(r,this._result.length)?(this._result.push(r),!0):!1},e}(Z),oe={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Ue=function(t,e){return t.indexOf(e)!==-1},At=function(t){return t.toString()},Nt=function(t,e,r){return"".concat(e," ").concat(r,", ").concat(t)},H=function(){function t(e,r,n,a){if(r===void 0&&(r=At),n===void 0&&(n=oe),a===void 0&&(a=Nt),this.text=[],this.language=n||oe,this.gettext=r,this.dateFormatter=a,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),s=[].concat(this.options.bynmonthday);i.sort(function(l,d){return l-d}),s.sort(function(l,d){return d-l}),this.bymonthday=i.concat(s),this.bymonthday.length||(this.bymonthday=null)}if(Y(this.origOptions.byweekday)){var o=S(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(o);this.byweekday={allWeeks:o.filter(function(l){return!l.n}),someWeeks:o.filter(function(l){return!!l.n}),isWeekdays:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")===-1&&u.indexOf("SU")===-1,isEveryDay:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")!==-1&&u.indexOf("SU")!==-1};var f=function(l,d){return l.weekday-d.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(e){var r=!0;if(!(e.options.freq in t.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var n in e.origOptions){if(Ue(["dtstart","tzid","wkst","freq"],n))return!0;if(!Ue(t.IMPLEMENTED[e.options.freq],n))return!1}return r},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[y.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},t.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},t.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},t.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},t.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},t.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},t.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(e){e=parseInt(e.toString(),10);var r,n=this.gettext;if(e===-1)return n("last");var a=Math.abs(e);switch(a){case 1:case 21:case 31:r=a+n("st");break;case 2:case 22:r=a+n("nd");break;case 3:case 23:r=a+n("rd");break;default:r=a+n("th")}return e<0?r+" "+n("last"):r},t.prototype.monthtext=function(e){return this.language.monthNames[e-1]},t.prototype.weekdaytext=function(e){var r=_(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[r]},t.prototype.plural=function(e){return e%100!==1},t.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},t.prototype.list=function(e,r,n,a){var i=this;a===void 0&&(a=","),S(e)||(e=[e]);var s=function(u,f,l){for(var d="",c=0;c<u.length;c++)c!==0&&(c===u.length-1?d+=" "+l+" ":d+=f+" "),d+=u[c];return d};r=r||function(u){return u.toString()};var o=function(u){return r&&r.call(i,u)};return n?s(e.map(o),a,n):e.map(o).join(a+" ")},t}(),Rt=function(){function t(e){this.done=!0,this.rules=e}return t.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&this.symbol===null},t.prototype.nextSymbol=function(){var e,r;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;e=null;for(var a in this.rules){n=this.rules[a];var i=n.exec(this.text);i&&(e===null||i[0].length>e[0].length)&&(e=i,r=a)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(r==="SKIP");return this.symbol=r,this.value=e,!0},t.prototype.accept=function(e){if(this.symbol===e){if(this.value){var r=this.value;return this.nextSymbol(),r}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},t}();function vt(t,e){e===void 0&&(e=oe);var r={},n=new Rt(e.tokens);if(!n.start(t))return null;return a(),r;function a(){n.expect("every");var c=n.acceptNumber();if(c&&(r.interval=parseInt(c[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=y.DAILY,n.nextSymbol()&&(s(),d());break;case"weekday(s)":r.freq=y.WEEKLY,r.byweekday=[y.MO,y.TU,y.WE,y.TH,y.FR],n.nextSymbol(),s(),d();break;case"week(s)":r.freq=y.WEEKLY,n.nextSymbol()&&(i(),s(),d());break;case"hour(s)":r.freq=y.HOURLY,n.nextSymbol()&&(i(),d());break;case"minute(s)":r.freq=y.MINUTELY,n.nextSymbol()&&(i(),d());break;case"month(s)":r.freq=y.MONTHLY,n.nextSymbol()&&(i(),d());break;case"year(s)":r.freq=y.YEARLY,n.nextSymbol()&&(i(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=y.WEEKLY;var p=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[y[p]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var m=u();if(!m)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(y[m]),n.nextSymbol()}s(),l(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=y.YEARLY,r.bymonth=[o()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var k=o();if(!k)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(k),n.nextSymbol()}i(),d();break;default:throw new Error("Unknown symbol")}}function i(){var c=n.accept("on"),p=n.accept("the");if(c||p)do{var m=f(),k=u(),v=o();if(m)k?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(y[k].nth(m))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(m),n.accept("day(s)"));else if(k)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(y[k]);else if(n.symbol==="weekday(s)")n.nextSymbol(),r.byweekday||(r.byweekday=[y.MO,y.TU,y.WE,y.TH,y.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var T=n.acceptNumber();if(!T)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(T[0],10)];n.accept("comma");){if(T=n.acceptNumber(),!T)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(T[0],10))}}else if(v)n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(v);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function s(){var c=n.accept("at");if(c)do{var p=n.acceptNumber();if(!p)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(p[0],10)];n.accept("comma");){if(p=n.acceptNumber(),!p)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(p[0],10))}}while(n.accept("comma")||n.accept("at"))}function o(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function u(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var c=parseInt(n.value[1],10);if(c<-366||c>366)throw new Error("Nth out of range: "+c);return n.nextSymbol(),n.accept("last")?-c:c;default:return!1}}function l(){n.accept("on"),n.accept("the");var c=f();if(c)for(r.bymonthday=[c],n.nextSymbol();n.accept("comma");){if(c=f(),!c)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(c),n.nextSymbol()}}function d(){if(n.symbol==="until"){var c=Date.parse(n.text);if(!c)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(c)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}var E;(function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"})(E||(E={}));function Ye(t){return t<E.HOURLY}var Ut=function(t,e){return e===void 0&&(e=oe),new y(vt(t,e)||void 0)},$=["count","until","interval","byweekday","bymonthday","bymonth"];H.IMPLEMENTED=[];H.IMPLEMENTED[E.HOURLY]=$;H.IMPLEMENTED[E.MINUTELY]=$;H.IMPLEMENTED[E.DAILY]=["byhour"].concat($);H.IMPLEMENTED[E.WEEKLY]=$;H.IMPLEMENTED[E.MONTHLY]=$;H.IMPLEMENTED[E.YEARLY]=["byweekno","byyearday"].concat($);var _t=function(t,e,r,n){return new H(t,e,r,n).toString()},It=H.isFullyConvertible,ue=function(){function t(e,r,n,a){this.hour=e,this.minute=r,this.second=n,this.millisecond=a||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},t}(),Wt=function(t){Te(e,t);function e(r,n,a,i,s,o,u){var f=t.call(this,i,s,o,u)||this;return f.year=r,f.month=n,f.day=a,f}return e.fromDate=function(r){return new this(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.valueOf()%1e3)},e.prototype.getWeekday=function(){return Q(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(r){this.year+=r},e.prototype.addMonths=function(r){if(this.month+=r,this.month>12){var n=Math.floor(this.month/12),a=N(this.month,12);this.month=a,this.year+=n,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(r,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+r*7:this.day+=-(this.getWeekday()-n)+r*7,this.fixDay()},e.prototype.addDaily=function(r){this.day+=r,this.fixDay()},e.prototype.addHours=function(r,n,a){for(n&&(this.hour+=Math.floor((23-this.hour)/r)*r);;){this.hour+=r;var i=de(this.hour,24),s=i.div,o=i.mod;if(s&&(this.hour=o,this.addDaily(s)),I(a)||g(a,this.hour))break}},e.prototype.addMinutes=function(r,n,a,i){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/r)*r);;){this.minute+=r;var s=de(this.minute,60),o=s.div,u=s.mod;if(o&&(this.minute=u,this.addHours(o,!1,a)),(I(a)||g(a,this.hour))&&(I(i)||g(i,this.minute)))break}},e.prototype.addSeconds=function(r,n,a,i,s){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/r)*r);;){this.second+=r;var o=de(this.second,60),u=o.div,f=o.mod;if(u&&(this.second=f,this.addMinutes(u,!1,a,i)),(I(a)||g(a,this.hour))&&(I(i)||g(i,this.minute))&&(I(s)||g(s,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var r=Se(this.year,this.month-1)[1];if(!(this.day<=r))for(;this.day>r;){if(this.day-=r,++this.month,this.month===13&&(this.month=1,++this.year,this.year>dt))return;r=Se(this.year,this.month-1)[1]}}},e.prototype.add=function(r,n){var a=r.freq,i=r.interval,s=r.wkst,o=r.byhour,u=r.byminute,f=r.bysecond;switch(a){case E.YEARLY:return this.addYears(i);case E.MONTHLY:return this.addMonths(i);case E.WEEKLY:return this.addWeekly(i,s);case E.DAILY:return this.addDaily(i);case E.HOURLY:return this.addHours(i,n,o);case E.MINUTELY:return this.addMinutes(i,n,o,u);case E.SECONDLY:return this.addSeconds(i,n,o,u,f)}},e}(ue);function wt(t){for(var e=[],r=Object.keys(t),n=0,a=r;n<a.length;n++){var i=a[n];g(dr,i)||e.push(i),pt(t[i])&&!X(t[i])&&e.push(i)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return A({},t)}function Ct(t){var e=A(A({},xe),wt(t));if(Y(e.byeaster)&&(e.freq=y.YEARLY),!(Y(e.freq)&&y.FREQUENCIES[e.freq]))throw new Error("Invalid frequency: ".concat(e.freq," ").concat(t.freq));if(e.dtstart||(e.dtstart=new Date(new Date().setMilliseconds(0))),Y(e.wkst)?_(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=y.MO.weekday,Y(e.bysetpos)){_(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var r=0;r<e.bysetpos.length;r++){var n=e.bysetpos[r];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(e.byweekno||D(e.byweekno)||D(e.byyearday)||e.bymonthday||D(e.bymonthday)||Y(e.byweekday)||Y(e.byeaster)))switch(e.freq){case y.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case y.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case y.WEEKLY:e.byweekday=[Q(e.dtstart)];break}if(Y(e.bymonth)&&!S(e.bymonth)&&(e.bymonth=[e.bymonth]),Y(e.byyearday)&&!S(e.byyearday)&&_(e.byyearday)&&(e.byyearday=[e.byyearday]),!Y(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(S(e.bymonthday)){for(var a=[],i=[],r=0;r<e.bymonthday.length;r++){var n=e.bymonthday[r];n>0?a.push(n):n<0&&i.push(n)}e.bymonthday=a,e.bynmonthday=i}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(Y(e.byweekno)&&!S(e.byweekno)&&(e.byweekno=[e.byweekno]),!Y(e.byweekday))e.bynweekday=null;else if(_(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(Oe(e.byweekday))e.byweekday=[O.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof O)!e.byweekday.n||e.freq>y.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var s=[],o=[],r=0;r<e.byweekday.length;r++){var u=e.byweekday[r];if(_(u)){s.push(u);continue}else if(Oe(u)){s.push(O.fromStr(u).weekday);continue}!u.n||e.freq>y.MONTHLY?s.push(u.weekday):o.push([u.weekday,u.n])}e.byweekday=D(s)?s:null,e.bynweekday=D(o)?o:null}return Y(e.byhour)?_(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<y.HOURLY?[e.dtstart.getUTCHours()]:null,Y(e.byminute)?_(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<y.MINUTELY?[e.dtstart.getUTCMinutes()]:null,Y(e.bysecond)?_(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<y.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}function Ht(t){var e=t.dtstart.getTime()%1e3;if(!Ye(t.freq))return[];var r=[];return t.byhour.forEach(function(n){t.byminute.forEach(function(a){t.bysecond.forEach(function(i){r.push(new ue(n,a,i,e))})})}),r}function we(t){var e=t.split(`
|
|
2
|
+
`).map(jt).filter(function(r){return r!==null});return A(A({},e[0]),e[1])}function le(t){var e={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!r)return e;var n=r[1],a=r[2];return n&&(e.tzid=n),e.dtstart=ge(a),e}function jt(t){if(t=t.replace(/^\s+|\s+$/,""),!t.length)return null;var e=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!e)return _e(t);var r=e[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return _e(t);case"DTSTART":return le(t);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(t))}}function _e(t){var e=t.replace(/^RRULE:/i,""),r=le(e),n=t.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(a){var i=a.split("="),s=i[0],o=i[1];switch(s.toUpperCase()){case"FREQ":r.freq=E[o.toUpperCase()];break;case"WKST":r.wkst=U[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=qt(o),f=s.toLowerCase();r[f]=u;break;case"BYWEEKDAY":case"BYDAY":r.byweekday=Ft(o);break;case"DTSTART":case"TZID":var l=le(t);r.tzid=l.tzid,r.dtstart=l.dtstart;break;case"UNTIL":r.until=ge(o);break;case"BYEASTER":r.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+s+"'")}}),r}function qt(t){if(t.indexOf(",")!==-1){var e=t.split(",");return e.map(Ie)}return Ie(t)}function Ie(t){return/^[+-]?\d+$/.test(t)?Number(t):t}function Ft(t){var e=t.split(",");return e.map(function(r){if(r.length===2)return U[r];var n=r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(r));var a=Number(n[1]),i=n[2],s=U[i].weekday;return new O(s,a)})}var ce=function(){function t(e,r){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=r}return Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=ke(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},t.prototype.getTime=function(){return this.date.getTime()},t.prototype.rezonedDate=function(){return this.isUTC?this.date:St(this.date,this.tzid)},t}();function Ee(t){for(var e=[],r="",n=Object.keys(t),a=Object.keys(xe),i=0;i<n.length;i++)if(n[i]!=="tzid"&&g(a,n[i])){var s=n[i].toUpperCase(),o=t[n[i]],u="";if(!(!Y(o)||S(o)&&!o.length)){switch(s){case"FREQ":u=y.FREQUENCIES[t.freq];break;case"WKST":_(o)?u=new O(o).toString():u=o.toString();break;case"BYWEEKDAY":s="BYDAY",u=Yt(o).map(function(p){return p instanceof O?p:S(p)?new O(p[0],p[1]):new O(p)}).toString();break;case"DTSTART":r=Kt(o,t.tzid);break;case"UNTIL":u=ke(o,!t.tzid);break;default:if(S(o)){for(var f=[],l=0;l<o.length;l++)f[l]=String(o[l]);u=f.toString()}else u=String(o)}u&&e.push([s,u])}}var d=e.map(function(p){var m=p[0],k=p[1];return"".concat(m,"=").concat(k.toString())}).join(";"),c="";return d!==""&&(c="RRULE:".concat(d)),[r,c].filter(function(p){return!!p}).join(`
|
|
3
|
+
`)}function Kt(t,e){return t?"DTSTART"+new ce(new Date(t),e).toString():""}function Pt(t,e){return Array.isArray(t)?!Array.isArray(e)||t.length!==e.length?!1:t.every(function(r,n){return r.getTime()===e[n].getTime()}):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():t===e}var zt=function(){function t(){this.all=!1,this.before=[],this.after=[],this.between=[]}return t.prototype._cacheAdd=function(e,r,n){r&&(r=r instanceof Date?be(r):Ae(r)),e==="all"?this.all=r:(n._value=r,this[e].push(n))},t.prototype._cacheGet=function(e,r){var n=!1,a=r?Object.keys(r):[],i=function(l){for(var d=0;d<a.length;d++){var c=a[d];if(!Pt(r[c],l[c]))return!0}return!1},s=this[e];if(e==="all")n=this.all;else if(S(s))for(var o=0;o<s.length;o++){var u=s[o];if(!(a.length&&i(u))){n=u._value;break}}if(!n&&this.all){for(var f=new Z(e,r),o=0;o<this.all.length&&f.accept(this.all[o]);o++);n=f.getValue(),this._cacheAdd(e,n,r)}return S(n)?Ae(n):n instanceof Date?be(n):n},t}(),Bt=h(h(h(h(h(h(h(h(h(h(h(h(h([],w(1,31),!0),w(2,28),!0),w(3,31),!0),w(4,30),!0),w(5,31),!0),w(6,30),!0),w(7,31),!0),w(8,31),!0),w(9,30),!0),w(10,31),!0),w(11,30),!0),w(12,31),!0),w(1,7),!0),Zt=h(h(h(h(h(h(h(h(h(h(h(h(h([],w(1,31),!0),w(2,29),!0),w(3,31),!0),w(4,30),!0),w(5,31),!0),w(6,30),!0),w(7,31),!0),w(8,31),!0),w(9,30),!0),w(10,31),!0),w(11,30),!0),w(12,31),!0),w(1,7),!0),Qt=W(1,29),$t=W(1,30),j=W(1,31),M=W(1,32),Gt=h(h(h(h(h(h(h(h(h(h(h(h(h([],M,!0),$t,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M.slice(0,7),!0),Jt=h(h(h(h(h(h(h(h(h(h(h(h(h([],M,!0),Qt,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M.slice(0,7),!0),Xt=W(-28,0),Vt=W(-29,0),q=W(-30,0),L=W(-31,0),er=h(h(h(h(h(h(h(h(h(h(h(h(h([],L,!0),Vt,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L.slice(0,7),!0),tr=h(h(h(h(h(h(h(h(h(h(h(h(h([],L,!0),Xt,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L.slice(0,7),!0),rr=[0,31,60,91,121,152,182,213,244,274,305,335,366],nr=[0,31,59,90,120,151,181,212,243,273,304,334,365],We=function(){for(var t=[],e=0;e<55;e++)t=t.concat(W(7));return t}();function ar(t,e){var r=K(t,1,1),n=V(t)?366:365,a=V(t+1)?366:365,i=me(r),s=Q(r),o=A(A({yearlen:n,nextyearlen:a,yearordinal:i,yearweekday:s},ir(t)),{wnomask:null});if(I(e.byweekno))return o;o.wnomask=w(0,n+7);var u,f,l=u=N(7-s+e.wkst,7);l>=4?(l=0,f=o.yearlen+N(s-e.wkst,7)):f=n-l;for(var d=Math.floor(f/7),c=N(f,7),p=Math.floor(d+c/4),m=0;m<e.byweekno.length;m++){var k=e.byweekno[m];if(k<0&&(k+=p+1),k>0&&k<=p){var v=void 0;k>1?(v=l+(k-1)*7,l!==u&&(v-=7-u)):v=l;for(var T=0;T<7&&(o.wnomask[v]=1,v++,o.wdaymask[v]!==e.wkst);T++);}}if(g(e.byweekno,1)){var v=l+p*7;if(l!==u&&(v-=7-u),v<n)for(var m=0;m<7&&(o.wnomask[v]=1,v+=1,o.wdaymask[v]!==e.wkst);m++);}if(l){var R=void 0;if(g(e.byweekno,-1))R=-1;else{var P=Q(K(t-1,1,1)),J=N(7-P.valueOf()+e.wkst,7),he=V(t-1)?366:365,F=void 0;J>=4?(J=0,F=he+N(P-e.wkst,7)):F=n-l,R=Math.floor(52+N(F,7)/4)}if(g(e.byweekno,R))for(var v=0;v<l;v++)o.wnomask[v]=1}return o}function ir(t){var e=V(t)?366:365,r=K(t,1,1),n=Q(r);return e===365?{mmask:Bt,mdaymask:Jt,nmdaymask:tr,wdaymask:We.slice(n),mrange:nr}:{mmask:Zt,mdaymask:Gt,nmdaymask:er,wdaymask:We.slice(n),mrange:rr}}function sr(t,e,r,n,a,i){var s={lastyear:t,lastmonth:e,nwdaymask:[]},o=[];if(i.freq===y.YEARLY)if(I(i.bymonth))o=[[0,r]];else for(var u=0;u<i.bymonth.length;u++)e=i.bymonth[u],o.push(n.slice(e-1,e+1));else i.freq===y.MONTHLY&&(o=[n.slice(e-1,e+1)]);if(I(o))return s;s.nwdaymask=w(0,r);for(var u=0;u<o.length;u++)for(var f=o[u],l=f[0],d=f[1]-1,c=0;c<i.bynweekday.length;c++){var p=void 0,m=i.bynweekday[c],k=m[0],v=m[1];v<0?(p=d+(v+1)*7,p-=N(a[p]-k,7)):(p=l+(v-1)*7,p+=N(7-a[p]+k,7)),l<=p&&p<=d&&(s.nwdaymask[p]=1)}return s}function or(t,e){e===void 0&&(e=0);var r=t%19,n=Math.floor(t/100),a=t%100,i=Math.floor(n/4),s=n%4,o=Math.floor((n+8)/25),u=Math.floor((n-o+1)/3),f=Math.floor(19*r+n-i-u+15)%30,l=Math.floor(a/4),d=a%4,c=Math.floor(32+2*s+2*l-f-d)%7,p=Math.floor((r+11*f+22*c)/451),m=Math.floor((f+c-7*p+114)/31),k=(f+c-7*p+114)%31+1,v=Date.UTC(t,m-1,k+e),T=Date.UTC(t,0,1);return[Math.ceil((v-T)/(1e3*60*60*24))]}var ur=function(){function t(e){this.options=e}return t.prototype.rebuild=function(e,r){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=ar(e,n)),D(n.bynweekday)&&(r!==this.lastmonth||e!==this.lastyear)){var a=this.yearinfo,i=a.yearlen,s=a.mrange,o=a.wdaymask;this.monthinfo=sr(e,r,i,s,o,n)}Y(n.byeaster)&&(this.eastermask=or(e,n.byeaster))},Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),t.prototype.ydayset=function(){return[W(this.yearlen),0,this.yearlen]},t.prototype.mdayset=function(e,r){for(var n=this.mrange[r-1],a=this.mrange[r],i=w(null,this.yearlen),s=n;s<a;s++)i[s]=s;return[i,n,a]},t.prototype.wdayset=function(e,r,n){for(var a=w(null,this.yearlen+7),i=me(K(e,r,n))-this.yearordinal,s=i,o=0;o<7&&(a[i]=i,++i,this.wdaymask[i]!==this.options.wkst);o++);return[a,s,i]},t.prototype.ddayset=function(e,r,n){var a=w(null,this.yearlen),i=me(K(e,r,n))-this.yearordinal;return a[i]=i,[a,i,i+1]},t.prototype.htimeset=function(e,r,n,a){var i=this,s=[];return this.options.byminute.forEach(function(o){s=s.concat(i.mtimeset(e,o,n,a))}),ee(s),s},t.prototype.mtimeset=function(e,r,n,a){var i=this.options.bysecond.map(function(s){return new ue(e,r,s,a)});return ee(i),i},t.prototype.stimeset=function(e,r,n,a){return[new ue(e,r,n,a)]},t.prototype.getdayset=function(e){switch(e){case E.YEARLY:return this.ydayset.bind(this);case E.MONTHLY:return this.mdayset.bind(this);case E.WEEKLY:return this.wdayset.bind(this);case E.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},t.prototype.gettimeset=function(e){switch(e){case E.HOURLY:return this.htimeset.bind(this);case E.MINUTELY:return this.mtimeset.bind(this);case E.SECONDLY:return this.stimeset.bind(this)}},t}();function lr(t,e,r,n,a,i){for(var s=[],o=0;o<t.length;o++){var u=void 0,f=void 0,l=t[o];l<0?(u=Math.floor(l/e.length),f=N(l,e.length)):(u=Math.floor((l-1)/e.length),f=N(l-1,e.length));for(var d=[],c=r;c<n;c++){var p=i[c];Y(p)&&d.push(p)}var m=void 0;u<0?m=d.slice(u)[0]:m=d[u];var k=e[f],v=mt(a.yearordinal+m),T=bt(v,k);g(s,T)||s.push(T)}return ee(s),s}function Et(t,e){var r=e.dtstart,n=e.freq,a=e.interval,i=e.until,s=e.bysetpos,o=e.count;if(o===0||a===0)return C(t);var u=Wt.fromDate(r),f=new ur(e);f.rebuild(u.year,u.month);for(var l=fr(f,u,e);;){var d=f.getdayset(n)(u.year,u.month,u.day),c=d[0],p=d[1],m=d[2],k=hr(c,p,m,f,e);if(D(s))for(var v=lr(s,l,p,m,f,c),T=0;T<v.length;T++){var R=v[T];if(i&&R>i)return C(t);if(R>=r){var P=Ce(R,e);if(!t.accept(P)||o&&(--o,!o))return C(t)}}else for(var T=p;T<m;T++){var J=c[T];if(Y(J))for(var he=mt(f.yearordinal+J),F=0;F<l.length;F++){var gt=l[F],R=bt(he,gt);if(i&&R>i)return C(t);if(R>=r){var P=Ce(R,e);if(!t.accept(P)||o&&(--o,!o))return C(t)}}}if(e.interval===0||(u.add(e,k),u.year>dt))return C(t);Ye(n)||(l=f.gettimeset(n)(u.hour,u.minute,u.second,0)),f.rebuild(u.year,u.month)}}function cr(t,e,r){var n=r.bymonth,a=r.byweekno,i=r.byweekday,s=r.byeaster,o=r.bymonthday,u=r.bynmonthday,f=r.byyearday;return D(n)&&!g(n,t.mmask[e])||D(a)&&!t.wnomask[e]||D(i)&&!g(i,t.wdaymask[e])||D(t.nwdaymask)&&!t.nwdaymask[e]||s!==null&&!g(t.eastermask,e)||(D(o)||D(u))&&!g(o,t.mdaymask[e])&&!g(u,t.nmdaymask[e])||D(f)&&(e<t.yearlen&&!g(f,e+1)&&!g(f,-t.yearlen+e)||e>=t.yearlen&&!g(f,e+1-t.yearlen)&&!g(f,-t.nextyearlen+e-t.yearlen))}function Ce(t,e){return new ce(t,e.tzid).rezonedDate()}function C(t){return t.getValue()}function hr(t,e,r,n,a){for(var i=!1,s=e;s<r;s++){var o=t[s];i=cr(n,o,a),i&&(t[o]=null)}return i}function fr(t,e,r){var n=r.freq,a=r.byhour,i=r.byminute,s=r.bysecond;return Ye(n)?Ht(r):n>=y.HOURLY&&D(a)&&!g(a,e.hour)||n>=y.MINUTELY&&D(i)&&!g(i,e.minute)||n>=y.SECONDLY&&D(s)&&!g(s,e.second)?[]:t.gettimeset(n)(e.hour,e.minute,e.second,e.millisecond)}var U={MO:new O(0),TU:new O(1),WE:new O(2),TH:new O(3),FR:new O(4),SA:new O(5),SU:new O(6)},xe={freq:E.YEARLY,dtstart:null,interval:1,wkst:U.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},dr=Object.keys(xe),y=function(){function t(e,r){e===void 0&&(e={}),r===void 0&&(r=!1),this._cache=r?null:new zt,this.origOptions=wt(e);var n=Ct(e).parsedOptions;this.options=n}return t.parseText=function(e,r){return vt(e,r)},t.fromText=function(e,r){return Ut(e,r)},t.fromString=function(e){return new t(t.parseString(e)||void 0)},t.prototype._iter=function(e){return Et(e,this.options)},t.prototype._cacheGet=function(e,r){return this._cache?this._cache._cacheGet(e,r):!1},t.prototype._cacheAdd=function(e,r,n){if(this._cache)return this._cache._cacheAdd(e,r,n)},t.prototype.all=function(e){if(e)return this._iter(new Re("all",{},e));var r=this._cacheGet("all");return r===!1&&(r=this._iter(new Z("all",{})),this._cacheAdd("all",r)),r},t.prototype.between=function(e,r,n,a){if(n===void 0&&(n=!1),!X(e)||!X(r))throw new Error("Invalid date passed in to RRule.between");var i={before:r,after:e,inc:n};if(a)return this._iter(new Re("between",i,a));var s=this._cacheGet("between",i);return s===!1&&(s=this._iter(new Z("between",i)),this._cacheAdd("between",s,i)),s},t.prototype.before=function(e,r){if(r===void 0&&(r=!1),!X(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:r},a=this._cacheGet("before",n);return a===!1&&(a=this._iter(new Z("before",n)),this._cacheAdd("before",a,n)),a},t.prototype.after=function(e,r){if(r===void 0&&(r=!1),!X(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:r},a=this._cacheGet("after",n);return a===!1&&(a=this._iter(new Z("after",n)),this._cacheAdd("after",a,n)),a},t.prototype.count=function(){return this.all().length},t.prototype.toString=function(){return Ee(this.origOptions)},t.prototype.toText=function(e,r,n){return _t(this,e,r,n)},t.prototype.isFullyConvertibleToText=function(){return It(this)},t.prototype.clone=function(){return new t(this.origOptions)},t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],t.YEARLY=E.YEARLY,t.MONTHLY=E.MONTHLY,t.WEEKLY=E.WEEKLY,t.DAILY=E.DAILY,t.HOURLY=E.HOURLY,t.MINUTELY=E.MINUTELY,t.SECONDLY=E.SECONDLY,t.MO=U.MO,t.TU=U.TU,t.WE=U.WE,t.TH=U.TH,t.FR=U.FR,t.SA=U.SA,t.SU=U.SU,t.parseString=we,t.optionsToString=Ee,t}();function yr(t,e,r,n,a,i){var s={},o=t.accept;function u(c,p){r.forEach(function(m){m.between(c,p,!0).forEach(function(k){s[Number(k)]=!0})})}a.forEach(function(c){var p=new ce(c,i).rezonedDate();s[Number(p)]=!0}),t.accept=function(c){var p=Number(c);return isNaN(p)?o.call(this,c):!s[p]&&(u(new Date(p-1),new Date(p+1)),!s[p])?(s[p]=!0,o.call(this,c)):!0},t.method==="between"&&(u(t.args.after,t.args.before),t.accept=function(c){var p=Number(c);return s[p]?!0:(s[p]=!0,o.call(this,c))});for(var f=0;f<n.length;f++){var l=new ce(n[f],i).rezonedDate();if(!t.accept(new Date(l.getTime())))break}e.forEach(function(c){Et(t,c.options)});var d=t._result;switch(ee(d),t.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;case"after":default:return d.length&&d[0]||null}}var He={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function pr(t,e){var r=[],n=[],a=[],i=[],s=le(t),o=s.dtstart,u=s.tzid,f=Er(t,e.unfold);return f.forEach(function(l){var d;if(l){var c=wr(l),p=c.name,m=c.parms,k=c.value;switch(p.toUpperCase()){case"RRULE":if(m.length)throw new Error("unsupported RRULE parm: ".concat(m.join(",")));r.push(we(l));break;case"RDATE":var v=(d=/RDATE(?:;TZID=([^:=]+))?/i.exec(l))!==null&&d!==void 0?d:[],T=v[1];T&&!u&&(u=T),n=n.concat(qe(k,m));break;case"EXRULE":if(m.length)throw new Error("unsupported EXRULE parm: ".concat(m.join(",")));a.push(we(k));break;case"EXDATE":i=i.concat(qe(k,m));break;case"DTSTART":break;default:throw new Error("unsupported property: "+p)}}}),{dtstart:o,tzid:u,rrulevals:r,rdatevals:n,exrulevals:a,exdatevals:i}}function mr(t,e){var r=pr(t,e),n=r.rrulevals,a=r.rdatevals,i=r.exrulevals,s=r.exdatevals,o=r.dtstart,u=r.tzid,f=e.cache===!1;if(e.compatible&&(e.forceset=!0,e.unfold=!0),e.forceset||n.length>1||a.length||i.length||s.length){var l=new gr(f);return l.dtstart(o),l.tzid(u||void 0),n.forEach(function(c){l.rrule(new y(ye(c,o,u),f))}),a.forEach(function(c){l.rdate(c)}),i.forEach(function(c){l.exrule(new y(ye(c,o,u),f))}),s.forEach(function(c){l.exdate(c)}),e.compatible&&e.dtstart&&l.rdate(o),l}var d=n[0]||{};return new y(ye(d,d.dtstart||e.dtstart||o,d.tzid||e.tzid||u),f)}function je(t,e){return e===void 0&&(e={}),mr(t,br(e))}function ye(t,e,r){return A(A({},t),{dtstart:e,tzid:r})}function br(t){var e=[],r=Object.keys(t),n=Object.keys(He);if(r.forEach(function(a){g(n,a)||e.push(a)}),e.length)throw new Error("Invalid options: "+e.join(", "));return A(A({},He),t)}function vr(t){if(t.indexOf(":")===-1)return{name:"RRULE",value:t};var e=xt(t,":",1),r=e[0],n=e[1];return{name:r,value:n}}function wr(t){var e=vr(t),r=e.name,n=e.value,a=r.split(";");if(!a)throw new Error("empty property name");return{name:a[0].toUpperCase(),parms:a.slice(1),value:n}}function Er(t,e){if(e===void 0&&(e=!1),t=t&&t.trim(),!t)throw new Error("Invalid empty string");if(!e)return t.split(/\s/);for(var r=t.split(`
|
|
4
|
+
`),n=0;n<r.length;){var a=r[n]=r[n].replace(/\s+$/g,"");a?n>0&&a[0]===" "?(r[n-1]+=a.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}function kr(t){t.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function qe(t,e){return kr(e),t.split(",").map(function(r){return ge(r)})}function Fe(t){var e=this;return function(r){if(r!==void 0&&(e["_".concat(t)]=r),e["_".concat(t)]!==void 0)return e["_".concat(t)];for(var n=0;n<e._rrule.length;n++){var a=e._rrule[n].origOptions[t];if(a)return a}}}var gr=function(t){Te(e,t);function e(r){r===void 0&&(r=!1);var n=t.call(this,{},r)||this;return n.dtstart=Fe.apply(n,["dtstart"]),n.tzid=Fe.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return e.prototype._iter=function(r){return yr(r,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(r){Ke(r,this._rrule)},e.prototype.exrule=function(r){Ke(r,this._exrule)},e.prototype.rdate=function(r){Pe(r,this._rdate)},e.prototype.exdate=function(r){Pe(r,this._exdate)},e.prototype.rrules=function(){return this._rrule.map(function(r){return je(r.toString())})},e.prototype.exrules=function(){return this._exrule.map(function(r){return je(r.toString())})},e.prototype.rdates=function(){return this._rdate.map(function(r){return new Date(r.getTime())})},e.prototype.exdates=function(){return this._exdate.map(function(r){return new Date(r.getTime())})},e.prototype.valueOf=function(){var r=[];return!this._rrule.length&&this._dtstart&&(r=r.concat(Ee({dtstart:this._dtstart}))),this._rrule.forEach(function(n){r=r.concat(n.toString().split(`
|
|
5
|
+
`))}),this._exrule.forEach(function(n){r=r.concat(n.toString().split(`
|
|
6
|
+
`).map(function(a){return a.replace(/^RRULE:/,"EXRULE:")}).filter(function(a){return!/^DTSTART/.test(a)}))}),this._rdate.length&&r.push(ze("RDATE",this._rdate,this.tzid())),this._exdate.length&&r.push(ze("EXDATE",this._exdate,this.tzid())),r},e.prototype.toString=function(){return this.valueOf().join(`
|
|
7
|
+
`)},e.prototype.clone=function(){var r=new e(!!this._cache);return this._rrule.forEach(function(n){return r.rrule(n.clone())}),this._exrule.forEach(function(n){return r.exrule(n.clone())}),this._rdate.forEach(function(n){return r.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return r.exdate(new Date(n.getTime()))}),r},e}(y);function Ke(t,e){if(!(t instanceof y))throw new TypeError(String(t)+" is not RRule instance");g(e.map(String),String(t))||e.push(t)}function Pe(t,e){if(!(t instanceof Date))throw new TypeError(String(t)+" is not Date instance");g(e.map(Number),Number(t))||(e.push(t),ee(e))}function ze(t,e,r){var n=!r||r.toUpperCase()==="UTC",a=n?"".concat(t,":"):"".concat(t,";TZID=").concat(r,":"),i=e.map(function(s){return ke(s.valueOf(),n)}).join(",");return"".concat(a).concat(i)}const Tr="_container_1cryq_1",Yr="_field_1cryq_7",xr="_fieldCentered_1cryq_13",Dr="_fieldLabel_1cryq_18",Mr="_fieldRow_1cryq_24",Lr="_fieldUnit_1cryq_30",Or="_dayPicker_1cryq_35",Sr="_dayBtn_1cryq_42",Ar="_dayBtnActive_1cryq_64",Nr="_preview_1cryq_70",x={container:Tr,field:Yr,fieldCentered:xr,fieldLabel:Dr,fieldRow:Mr,fieldUnit:Lr,dayPicker:Or,dayBtn:Sr,dayBtnActive:Ar,preview:Nr},Be={freq:"WEEKLY",interval:1,byDay:["MO"],byMonthDay:1,monthlyLast:!1,byMonth:1,yearDay:1},De=[{code:"MO",label:"M",rrule:y.MO},{code:"TU",label:"T",rrule:y.TU},{code:"WE",label:"W",rrule:y.WE},{code:"TH",label:"T",rrule:y.TH},{code:"FR",label:"F",rrule:y.FR},{code:"SA",label:"S",rrule:y.SA},{code:"SU",label:"S",rrule:y.SU}],Rr=["January","February","March","April","May","June","July","August","September","October","November","December"],Ur={DAILY:y.DAILY,WEEKLY:y.WEEKLY,MONTHLY:y.MONTHLY,YEARLY:y.YEARLY},_r={[y.DAILY]:"DAILY",[y.WEEKLY]:"WEEKLY",[y.MONTHLY]:"MONTHLY",[y.YEARLY]:"YEARLY"},Ze=t=>{const e={freq:Ur[t.freq]};return t.interval>1&&(e.interval=t.interval),t.freq==="WEEKLY"&&t.byDay.length>0&&(e.byweekday=t.byDay.map(n=>{var a;return(a=De.find(i=>i.code===n))==null?void 0:a.rrule}).filter(n=>!!n)),t.freq==="MONTHLY"&&(e.bymonthday=t.monthlyLast?-1:t.byMonthDay),t.freq==="YEARLY"&&(e.bymonth=t.byMonth,e.bymonthday=t.yearDay),new y(e).toString().replace(/^(?:DTSTART:[^\n]*\n)?RRULE:/,"")},kt=t=>{try{const e=y.parseString(t),r=_r[e.freq];if(!r)return null;const a=(e.byweekday??[]).map(f=>{var d;const l=typeof f=="number"?f:f.weekday;return(d=De.find(c=>c.rrule.weekday===l))==null?void 0:d.code}).filter(f=>!!f),i=e.bymonthday,s=Array.isArray(i)?i[0]:i,o=e.bymonth,u=Array.isArray(o)?o[0]:o;return{freq:r,interval:e.interval||1,byDay:a.length>0?a:["MO"],byMonthDay:r==="MONTHLY"&&s&&s>0?s:1,monthlyLast:r==="MONTHLY"&&s===-1,byMonth:r==="YEARLY"&&u||1,yearDay:r==="YEARLY"&&s?s:1}}catch{return null}},Ir=t=>t?kt(t)??Be:Be,Me=({value:t,onChange:e,className:r})=>{const[n,a]=B.useState(()=>Ir(t)),i=B.useMemo(()=>Ze(n),[n]);B.useEffect(()=>{if(t&&t!==i){const l=kt(t);l&&a(l)}},[t,i]),B.useEffect(()=>{t||e(i)},[]);const s=l=>{const d={...n,...l};a(d),e(Ze(d))},o=l=>{const d=n.byDay.includes(l)?n.byDay.filter(c=>c!==l):[...n.byDay,l];s({byDay:d})},u=B.useMemo(()=>{try{return y.fromString(i).toText()}catch{return i}},[i]),f={DAILY:n.interval===1?"day":"days",WEEKLY:n.interval===1?"week":"weeks",MONTHLY:n.interval===1?"month":"months",YEARLY:n.interval===1?"year":"years"};return b.jsxs("div",{className:`${x.container}${r?` ${r}`:""}`,children:[b.jsx("div",{className:x.field,children:b.jsx(Le,{label:"Frequency",value:n.freq,onChange:l=>s({freq:l}),options:[{value:"DAILY",label:"Daily"},{value:"WEEKLY",label:"Weekly"},{value:"MONTHLY",label:"Monthly"},{value:"YEARLY",label:"Yearly"}]})}),b.jsxs("div",{className:x.field,children:[b.jsx("span",{className:x.fieldLabel,children:"Every"}),b.jsxs("div",{className:x.fieldRow,children:[b.jsx(fe,{value:n.interval,onChange:l=>s({interval:Math.max(1,l)}),min:1,max:99,hideLimits:!0,size:"small"}),b.jsx("span",{className:x.fieldUnit,children:f[n.freq]})]})]}),n.freq==="WEEKLY"&&b.jsxs("div",{className:`${x.field} ${x.fieldCentered}`,children:[b.jsx("span",{className:x.fieldLabel,children:"On"}),b.jsx("div",{className:x.dayPicker,children:De.map(l=>b.jsx("button",{type:"button",className:`${x.dayBtn} ${n.byDay.includes(l.code)?x.dayBtnActive:""}`,onClick:()=>o(l.code),"aria-label":l.code,children:l.label},l.code))})]}),n.freq==="MONTHLY"&&b.jsxs("div",{className:x.field,children:[b.jsx("span",{className:x.fieldLabel,children:"Day of month"}),b.jsxs("div",{className:x.fieldRow,children:[b.jsx(fe,{value:n.byMonthDay,onChange:l=>s({byMonthDay:Math.min(31,Math.max(1,l))}),min:1,max:31,disabled:n.monthlyLast,hideLimits:!0,size:"small"}),b.jsx(Tt,{checked:n.monthlyLast,onChange:l=>s({monthlyLast:l}),label:"Last day"})]})]}),n.freq==="YEARLY"&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:x.field,children:b.jsx(Le,{label:"Month",value:String(n.byMonth),onChange:l=>s({byMonth:Number(l)}),options:Rr.map((l,d)=>({value:String(d+1),label:l}))})}),b.jsxs("div",{className:x.field,children:[b.jsx("span",{className:x.fieldLabel,children:"Day"}),b.jsx(fe,{value:n.yearDay,onChange:l=>s({yearDay:Math.min(31,Math.max(1,l))}),min:1,max:31,hideLimits:!0,size:"small"})]})]}),b.jsx("div",{className:x.preview,children:u})]})};Me.__docgenInfo={description:"",methods:[],displayName:"RecurrencePicker"};const Qr={title:"Molecules/RecurrencePicker",component:Me,parameters:{layout:"centered",docs:{description:{component:"A picker for iCalendar RRULE recurrence rules (RFC 5545). Builds rule strings like `FREQ=WEEKLY;BYDAY=MO,WE` from form inputs and shows a human-readable preview via `RRule.toText()`."}}},tags:["autodocs"]},G=({initial:t})=>{const[e,r]=B.useState(t);return b.jsxs("div",{style:{width:420},children:[b.jsx(Me,{value:e,onChange:r}),b.jsx("div",{style:{marginTop:16,padding:8,background:"var(--color-surface)",borderRadius:"var(--radius-sm)",fontFamily:"monospace",fontSize:12,color:"var(--color-text-secondary)",minHeight:24},children:e||"(no recurrence)"})]})},te={render:()=>b.jsx(G,{})},re={render:()=>b.jsx(G,{initial:"FREQ=WEEKLY;BYDAY=MO,WE,FR"})},ne={render:()=>b.jsx(G,{initial:"FREQ=WEEKLY;INTERVAL=2;BYDAY=TU"})},ae={render:()=>b.jsx(G,{initial:"FREQ=MONTHLY;BYMONTHDAY=15"})},ie={render:()=>b.jsx(G,{initial:"FREQ=MONTHLY;BYMONTHDAY=-1"})},se={render:()=>b.jsx(G,{initial:"FREQ=YEARLY;BYMONTH=1;BYMONTHDAY=1"})};var Qe,$e,Ge;te.parameters={...te.parameters,docs:{...(Qe=te.parameters)==null?void 0:Qe.docs,source:{originalSource:`{
|
|
8
|
+
render: () => <Wrapper />
|
|
9
|
+
}`,...(Ge=($e=te.parameters)==null?void 0:$e.docs)==null?void 0:Ge.source}}};var Je,Xe,Ve;re.parameters={...re.parameters,docs:{...(Je=re.parameters)==null?void 0:Je.docs,source:{originalSource:`{
|
|
10
|
+
render: () => <Wrapper initial="FREQ=WEEKLY;BYDAY=MO,WE,FR" />
|
|
11
|
+
}`,...(Ve=(Xe=re.parameters)==null?void 0:Xe.docs)==null?void 0:Ve.source}}};var et,tt,rt;ne.parameters={...ne.parameters,docs:{...(et=ne.parameters)==null?void 0:et.docs,source:{originalSource:`{
|
|
12
|
+
render: () => <Wrapper initial="FREQ=WEEKLY;INTERVAL=2;BYDAY=TU" />
|
|
13
|
+
}`,...(rt=(tt=ne.parameters)==null?void 0:tt.docs)==null?void 0:rt.source}}};var nt,at,it;ae.parameters={...ae.parameters,docs:{...(nt=ae.parameters)==null?void 0:nt.docs,source:{originalSource:`{
|
|
14
|
+
render: () => <Wrapper initial="FREQ=MONTHLY;BYMONTHDAY=15" />
|
|
15
|
+
}`,...(it=(at=ae.parameters)==null?void 0:at.docs)==null?void 0:it.source}}};var st,ot,ut;ie.parameters={...ie.parameters,docs:{...(st=ie.parameters)==null?void 0:st.docs,source:{originalSource:`{
|
|
16
|
+
render: () => <Wrapper initial="FREQ=MONTHLY;BYMONTHDAY=-1" />
|
|
17
|
+
}`,...(ut=(ot=ie.parameters)==null?void 0:ot.docs)==null?void 0:ut.source}}};var lt,ct,ht;se.parameters={...se.parameters,docs:{...(lt=se.parameters)==null?void 0:lt.docs,source:{originalSource:`{
|
|
18
|
+
render: () => <Wrapper initial="FREQ=YEARLY;BYMONTH=1;BYMONTHDAY=1" />
|
|
19
|
+
}`,...(ht=(ct=se.parameters)==null?void 0:ct.docs)==null?void 0:ht.source}}};const $r=["Default","WeeklyMonWedFri","EveryOtherTuesday","FifteenthOfEveryMonth","LastDayOfMonth","Yearly"];export{te as Default,ne as EveryOtherTuesday,ae as FifteenthOfEveryMonth,ie as LastDayOfMonth,re as WeeklyMonWedFri,se as Yearly,$r as __namedExportsOrder,Qr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as D,j as X}from"./iframe-
|
|
1
|
+
import{r as D,j as X}from"./iframe-rPhsLpUF.js";import{G as Y,P as $,M as J,V as m,R as K,T as Q}from"./Mesh-CwXV3WjE.js";import{V as Z}from"./Vec2-Cf1C3GIc.js";import{C as j}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const v=new m;class ee{constructor(o,{points:t,vertex:w=te,fragment:E=oe,uniforms:r={},attributes:R={}}){this.gl=o,this.points=t,this.count=t.length,this.position=new Float32Array(this.count*3*2),this.prev=new Float32Array(this.count*3*2),this.next=new Float32Array(this.count*3*2);const h=new Float32Array(this.count*1*2),y=new Float32Array(this.count*2*2),p=new Uint16Array((this.count-1)*3*2);for(let l=0;l<this.count;l++){h.set([-1,1],l*2);const n=l/(this.count-1);if(y.set([0,n,1,n],l*4),l===this.count-1)continue;const s=l*2;p.set([s+0,s+1,s+2],(s+0)*3),p.set([s+2,s+1,s+3],(s+1)*3)}const A=this.geometry=new Y(o,Object.assign(R,{position:{size:3,data:this.position},prev:{size:3,data:this.prev},next:{size:3,data:this.next},side:{size:1,data:h},uv:{size:2,data:y},index:{size:1,data:p}}));this.updateGeometry(),r.uResolution||(this.resolution=r.uResolution={value:new Z}),r.uDPR||(this.dpr=r.uDPR={value:1}),r.uThickness||(this.thickness=r.uThickness={value:1}),r.uColor||(this.color=r.uColor={value:new j("#000")}),r.uMiter||(this.miter=r.uMiter={value:1}),this.resize();const u=this.program=new $(o,{vertex:w,fragment:E,uniforms:r});this.mesh=new J(o,{geometry:A,program:u})}updateGeometry(){this.points.forEach((o,t)=>{o.toArray(this.position,t*3*2),o.toArray(this.position,t*3*2+3),t?(o.toArray(this.next,(t-1)*3*2),o.toArray(this.next,(t-1)*3*2+3)):(v.copy(o).sub(this.points[t+1]).add(o),v.toArray(this.prev,t*3*2),v.toArray(this.prev,t*3*2+3)),t===this.points.length-1?(v.copy(o).sub(this.points[t-1]).add(o),v.toArray(this.next,t*3*2),v.toArray(this.next,t*3*2+3)):(o.toArray(this.prev,(t+1)*3*2),o.toArray(this.prev,(t+1)*3*2+3))}),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.prev.needsUpdate=!0,this.geometry.attributes.next.needsUpdate=!0}resize(){this.resolution&&this.resolution.value.set(this.gl.canvas.width,this.gl.canvas.height),this.dpr&&(this.dpr.value=this.gl.renderer.dpr)}}const te=`
|
|
2
2
|
precision highp float;
|
|
3
3
|
|
|
4
4
|
attribute vec3 position;
|
package/storybook-static/assets/{RippleGrid.stories-O3VVcQWl.js → RippleGrid.stories-Bwsl-Ueq.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as N}from"./iframe-
|
|
1
|
+
import{r as u,j as N}from"./iframe-rPhsLpUF.js";import{R as G,P as j,M as H}from"./Mesh-CwXV3WjE.js";import{T as $}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const O={"ripple-grid-container":"_ripple-grid-container_1783h_1"},P=({enableRainbow:d=!1,gridColor:v="#ffffff",rippleIntensity:m=.05,gridSize:p=10,gridThickness:g=15,fadeDistance:h=1.5,vignetteStrength:R=2,glowIntensity:y=.1,opacity:x=1,gridRotation:I=0,mouseInteraction:i=!0,mouseInteractionRadius:w=1})=>{const r=u.useRef(null),l=u.useRef({x:.5,y:.5}),T=u.useRef({x:.5,y:.5}),b=u.useRef(0),n=u.useRef(null);return u.useEffect(()=>{if(!r.current)return;const E=o=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return t?[parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255]:[1,1,1]},c=new G({dpr:Math.min(window.devicePixelRatio,2),alpha:!0}),e=c.gl;e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),e.canvas.style.width="100%",e.canvas.style.height="100%",r.current.appendChild(e.canvas);const z=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
varying vec2 vUv;
|
|
4
4
|
void main() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,j as c}from"./iframe-
|
|
1
|
+
import{r as s,j as c}from"./iframe-rPhsLpUF.js";import{m as C}from"./proxy-uJ8evSzT.js";import{A as Q}from"./index-B9UM6a_o.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";const i={"text-rotate":"_text-rotate_1n8cd_1","text-rotate-sr-only":"_text-rotate-sr-only_1n8cd_8","text-rotate-word":"_text-rotate-word_1n8cd_20","text-rotate-lines":"_text-rotate-lines_1n8cd_24","text-rotate-element":"_text-rotate-element_1n8cd_30","text-rotate-space":"_text-rotate-space_1n8cd_34"};function h(...y){return y.filter(Boolean).join(" ")}const v=s.forwardRef((y,D)=>{const{texts:o,transition:N={type:"spring",damping:25,stiffness:300},initial:w={y:"100%",opacity:0},animate:A={y:0,opacity:1},exit:E={y:"-120%",opacity:0},animatePresenceMode:F="wait",animatePresenceInitial:H=!1,rotationInterval:j=2e3,staggerDuration:m=0,staggerFrom:u="first",loop:d=!0,auto:M=!0,splitBy:p="characters",onNext:_,mainClassName:P,splitLevelClassName:L,elementLevelClassName:W,...$}=y,[e,q]=s.useState(0),z=t=>{if(typeof Intl<"u"&&Intl.Segmenter){const a=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(a.segment(t),r=>r.segment)}return Array.from(t)},G=s.useMemo(()=>{const t=o[e];if(p==="characters"){const a=t.split(" ");return a.map((r,n)=>({characters:z(r),needsSpace:n!==a.length-1}))}return p==="words"?t.split(" ").map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):p==="lines"?t.split(`
|
|
2
2
|
`).map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):t.split(p).map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1}))},[o,e,p]),J=s.useCallback((t,a)=>{const r=a;if(u==="first")return t*m;if(u==="last")return(r-1-t)*m;if(u==="center"){const n=Math.floor(r/2);return Math.abs(n-t)*m}if(u==="random"){const n=Math.floor(Math.random()*r);return Math.abs(n-t)*m}return Math.abs(u-t)*m},[u,m]),l=s.useCallback(t=>{q(t),_&&_(t)},[_]),x=s.useCallback(()=>{const t=e===o.length-1?d?0:e:e+1;t!==e&&l(t)},[e,o.length,d,l]),S=s.useCallback(()=>{const t=e===0?d?o.length-1:e:e-1;t!==e&&l(t)},[e,o.length,d,l]),R=s.useCallback(t=>{const a=Math.max(0,Math.min(t,o.length-1));a!==e&&l(a)},[o.length,e,l]),T=s.useCallback(()=>{e!==0&&l(0)},[e,l]);return s.useImperativeHandle(D,()=>({next:x,previous:S,jumpTo:R,reset:T}),[x,S,R,T]),s.useEffect(()=>{if(!M)return;const t=setInterval(x,j);return()=>clearInterval(t)},[x,j,M]),c.jsxs(C.span,{className:h(i["text-rotate"],P),...$,layout:!0,transition:N,children:[c.jsx("span",{className:`${i["text-rotate-sr-only"]}`,children:o[e]}),c.jsx(Q,{mode:F,initial:H,children:c.jsx(C.span,{className:h(p==="lines"?i["text-rotate-lines"]:i["text-rotate"]),layout:!0,"aria-hidden":"true",children:G.map((t,a,r)=>{const n=r.slice(0,a).reduce((I,g)=>I+g.characters.length,0);return c.jsxs("span",{className:h(i["text-rotate-word"],L),children:[t.characters.map((I,g)=>c.jsx(C.span,{initial:w,animate:A,exit:E,transition:{...N,delay:J(n+g,r.reduce((K,O)=>K+O.characters.length,0))},className:h(i["text-rotate-element"],W),children:I},g)),t.needsSpace&&c.jsx("span",{className:`${i["text-rotate-space"]}`,children:" "})]},a)})},e)})]})});v.displayName="RotatingText";v.__docgenInfo={description:"",methods:[],displayName:"RotatingText"};const tt={title:"ReactBits/TextAnimations/RotatingText",component:v,parameters:{layout:"fullscreen"}},f={args:{texts:["Hello","World","React","Bits"],rotationInterval:2e3,loop:!0,auto:!0,splitBy:"characters",staggerDuration:0,staggerFrom:"first"}};var b,B,k;f.parameters={...f.parameters,docs:{...(b=f.parameters)==null?void 0:b.docs,source:{originalSource:`{
|
|
3
3
|
args: {
|
|
4
4
|
texts: ['Hello', 'World', 'React', 'Bits'],
|
package/storybook-static/assets/{ScrollFloat.stories-BMoNuRtU.js → ScrollFloat.stories-B0qUJggd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,j as c}from"./iframe-
|
|
1
|
+
import{r as s,j as c}from"./iframe-rPhsLpUF.js";import{g as _}from"./index-C8pce-KX.js";import{S as q}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const v="_char_46mmt_13",n={"scroll-float":"_scroll-float_46mmt_1","scroll-float-text":"_scroll-float-text_46mmt_5",char:v};_.registerPlugin(q);const h=({children:l,scrollContainerRef:e,containerClassName:S="",textClassName:y="",animationDuration:u=1,ease:m="back.inOut(2)",scrollStart:i="center bottom+=50%",scrollEnd:f="bottom bottom-=40%",stagger:d=.03})=>{const p=s.useRef(null),N=s.useMemo(()=>(typeof l=="string"?l:"").split("").map((a,o)=>c.jsx("span",{className:`${n.char}`,children:a===" "?" ":a},o)),[l]);return s.useEffect(()=>{const t=p.current;if(!t)return;const a=e&&e.current?e.current:window,o=t.querySelectorAll(".char");_.fromTo(o,{willChange:"opacity, transform",opacity:0,yPercent:120,scaleY:2.3,scaleX:.7,transformOrigin:"50% 0%"},{duration:u,ease:m,opacity:1,yPercent:0,scaleY:1,scaleX:1,stagger:d,scrollTrigger:{trigger:t,scroller:a,start:i,end:f,scrub:!0}})},[e,u,m,i,f,d]),c.jsx("h2",{ref:p,className:`${n["scroll-float"]} ${S}`,children:c.jsx("span",{className:`${n["scroll-float-text"]} ${y}`,children:N})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollFloat",props:{containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},animationDuration:{defaultValue:{value:"1",computed:!1},required:!1},ease:{defaultValue:{value:"'back.inOut(2)'",computed:!1},required:!1},scrollStart:{defaultValue:{value:"'center bottom+=50%'",computed:!1},required:!1},scrollEnd:{defaultValue:{value:"'bottom bottom-=40%'",computed:!1},required:!1},stagger:{defaultValue:{value:"0.03",computed:!1},required:!1}}};const C={title:"ReactBits/TextAnimations/ScrollFloat",component:h,parameters:{layout:"fullscreen"}},r={args:{children:"Hello World",containerClassName:"",textClassName:"",animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03}};var g,x,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
children: 'Hello World',
|
|
4
4
|
containerClassName: '',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as c}from"./iframe-
|
|
1
|
+
import{r as u,j as c}from"./iframe-rPhsLpUF.js";import{g as l}from"./index-C8pce-KX.js";import{S as _}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const T="_word_1yrz7_11",m={"scroll-reveal":"_scroll-reveal_1yrz7_1","scroll-reveal-text":"_scroll-reveal-text_1yrz7_5",word:T};l.registerPlugin(_);const h=({children:s,scrollContainerRef:r,enableBlur:i=!0,baseOpacity:d=.1,baseRotation:f=3,blurStrength:p=4,containerClassName:S="",textClassName:N="",rotationEnd:b="bottom bottom",wordAnimationEnd:n="bottom bottom"})=>{const g=u.useRef(null),q=u.useMemo(()=>(typeof s=="string"?s:"").split(/(\s+)/).map((t,o)=>t.match(/^\s+$/)?t:c.jsx("span",{className:`${m.word}`,children:t},o)),[s]);return u.useEffect(()=>{const e=g.current;if(!e)return;const t=r&&r.current?r.current:window;l.fromTo(e,{transformOrigin:"0% 50%",rotate:f},{ease:"none",rotate:0,scrollTrigger:{trigger:e,scroller:t,start:"top bottom",end:b,scrub:!0}});const o=e.querySelectorAll(".word");return l.fromTo(o,{opacity:d,willChange:"opacity"},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),i&&l.fromTo(o,{filter:`blur(${p}px)`},{ease:"none",filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),()=>{_.getAll().forEach(E=>E.kill())}},[r,i,f,d,b,n,p]),c.jsx("h2",{ref:g,className:`${m["scroll-reveal"]} ${S}`,children:c.jsx("p",{className:`${m["scroll-reveal-text"]} ${N}`,children:q})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollReveal",props:{enableBlur:{defaultValue:{value:"true",computed:!1},required:!1},baseOpacity:{defaultValue:{value:"0.1",computed:!1},required:!1},baseRotation:{defaultValue:{value:"3",computed:!1},required:!1},blurStrength:{defaultValue:{value:"4",computed:!1},required:!1},containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},rotationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1},wordAnimationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1}}};const j={title:"ReactBits/TextAnimations/ScrollReveal",component:h,parameters:{layout:"fullscreen"}},a={args:{children:"Hello World",enableBlur:!0,baseOpacity:.1,baseRotation:3,blurStrength:4,containerClassName:"",textClassName:"",rotationEnd:"bottom bottom",wordAnimationEnd:"bottom bottom"}};var x,v,y;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
children: 'Hello World',
|
|
4
4
|
enableBlur: true,
|