@stfrigerio/sito-template 0.1.99 → 0.1.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/charts/BooleansHeatmap/BooleansHeatmap.d.ts.map +1 -1
- package/dist/components/organisms/charts/ChordDiagram/ChordDiagram.d.ts +20 -0
- package/dist/components/organisms/charts/ChordDiagram/ChordDiagram.d.ts.map +1 -0
- package/dist/components/organisms/charts/ChordDiagram/ChordDiagram.stories.d.ts +9 -0
- package/dist/components/organisms/charts/ChordDiagram/ChordDiagram.stories.d.ts.map +1 -0
- package/dist/components/organisms/charts/HabitTimeOfDayChart/HabitTimeOfDayChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/PieChart/PieChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/PolarHeatmap/PolarHeatmap.d.ts +30 -0
- package/dist/components/organisms/charts/PolarHeatmap/PolarHeatmap.d.ts.map +1 -0
- package/dist/components/organisms/charts/PolarHeatmap/PolarHeatmap.stories.d.ts +9 -0
- package/dist/components/organisms/charts/PolarHeatmap/PolarHeatmap.stories.d.ts.map +1 -0
- package/dist/components/organisms/charts/ProgressRings/ProgressRings.d.ts +20 -0
- package/dist/components/organisms/charts/ProgressRings/ProgressRings.d.ts.map +1 -0
- package/dist/components/organisms/charts/ProgressRings/ProgressRings.stories.d.ts +9 -0
- package/dist/components/organisms/charts/ProgressRings/ProgressRings.stories.d.ts.map +1 -0
- package/dist/components/organisms/charts/QuantifiableHabitsChart/QuantifiableHabitsChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/RadialDayChart/RadialDayChart.d.ts +30 -0
- package/dist/components/organisms/charts/RadialDayChart/RadialDayChart.d.ts.map +1 -0
- package/dist/components/organisms/charts/RadialDayChart/RadialDayChart.stories.d.ts +9 -0
- package/dist/components/organisms/charts/RadialDayChart/RadialDayChart.stories.d.ts.map +1 -0
- package/dist/components/organisms/charts/SleepChart/SleepChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/SunburstChart/SunburstChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/index.d.ts +7 -0
- package/dist/components/organisms/charts/index.d.ts.map +1 -1
- package/dist/components/organisms/index.d.ts +7 -0
- package/dist/components/organisms/index.d.ts.map +1 -1
- package/dist/index.esm.js +969 -305
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +975 -307
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{ASCIIText.stories-DSI7g-mB.js → ASCIIText.stories-tIaR8-30.js} +1 -1
- package/storybook-static/assets/{AllAtoms.stories-JflUIS5e.js → AllAtoms.stories-wjImSAbw.js} +1 -1
- package/storybook-static/assets/{AnimatedContent.stories-YR7SgIxb.js → AnimatedContent.stories-2qC-fkJI.js} +1 -1
- package/storybook-static/assets/{AnimatedList.stories-GR75O93H.js → AnimatedList.stories-CylIt0ba.js} +1 -1
- package/storybook-static/assets/{Antigravity.stories-B2MVCdRl.js → Antigravity.stories-ium_rPSJ.js} +1 -1
- package/storybook-static/assets/{ArrayInput.stories-BI_3D81-.js → ArrayInput.stories-CnVg06MK.js} +1 -1
- package/storybook-static/assets/{Aurora.stories-C_w705rr.js → Aurora.stories-DuFv0_k8.js} +1 -1
- package/storybook-static/assets/{Beams.stories-D1L26zBi.js → Beams.stories-DIEOjIBe.js} +1 -1
- package/storybook-static/assets/{BlobCursor.stories-BjywoQ5q.js → BlobCursor.stories-DvG-koWY.js} +1 -1
- package/storybook-static/assets/{BlurText.stories-CSpGTebR.js → BlurText.stories-sWy214Q2.js} +1 -1
- package/storybook-static/assets/BooleansHeatmap.stories-mxTxY_p5.js +63 -0
- package/storybook-static/assets/{BorderGlow.stories-BadihHiQ.js → BorderGlow.stories-E4gpGeWQ.js} +1 -1
- package/storybook-static/assets/{BubbleMenu.stories-Up_UUIWc.js → BubbleMenu.stories-W43-ioFH.js} +1 -1
- package/storybook-static/assets/{Button-DtiJJxMy.js → Button-CTnNAnoF.js} +1 -1
- package/storybook-static/assets/{Button.stories-BG9uxBwH.js → Button.stories-ACvBbIR1.js} +1 -1
- package/storybook-static/assets/{Calendar.stories-CUZikQRy.js → Calendar.stories-iQkvrvgz.js} +1 -1
- package/storybook-static/assets/{Card-BrvmNtM2.js → Card-6j0993HS.js} +1 -1
- package/storybook-static/assets/{Card.stories-Bf_EtMxA.js → Card.stories-DZzRMcRM.js} +1 -1
- package/storybook-static/assets/{CardNav.stories-OiwfVEn3.js → CardNav.stories-BqXRGPFR.js} +1 -1
- package/storybook-static/assets/{Carousel.stories-Gw1aPaNl.js → Carousel.stories-Z9HYvNS6.js} +1 -1
- package/storybook-static/assets/{Checkbox-CJhut6rk.js → Checkbox-6Z_EEcoe.js} +1 -1
- package/storybook-static/assets/{Checkbox.stories-tIqU6B-y.js → Checkbox.stories-CkXxAAOM.js} +1 -1
- package/storybook-static/assets/ChordDiagram-Bk6idINH.css +1 -0
- package/storybook-static/assets/ChordDiagram.stories-BoGS9mXW.js +25 -0
- package/storybook-static/assets/{ChromaGrid.stories-DbsrxAuC.js → ChromaGrid.stories-DZWtESDP.js} +1 -1
- package/storybook-static/assets/{CircularGallery.stories-0ffqgfyn.js → CircularGallery.stories-DQHz7F4g.js} +1 -1
- package/storybook-static/assets/{CircularText.stories-o46bAR53.js → CircularText.stories-hAb1lSel.js} +1 -1
- package/storybook-static/assets/{ClickSpark.stories-Ci-BtpH_.js → ClickSpark.stories-BjzCHr3X.js} +1 -1
- package/storybook-static/assets/{ColorBends.stories-CAiI7Gmw.js → ColorBends.stories-VFe9q7SG.js} +1 -1
- package/storybook-static/assets/{CountUp.stories-CFiYranp.js → CountUp.stories-DMfEJ2_X.js} +1 -1
- package/storybook-static/assets/{Counter.stories-BfaVu_y6.js → Counter.stories-Ddufg4zF.js} +1 -1
- package/storybook-static/assets/{Crosshair.stories-_Hh1nKQp.js → Crosshair.stories-C6quKu3e.js} +1 -1
- package/storybook-static/assets/{Cubes.stories-DXBS_f8J.js → Cubes.stories-B7vxZouX.js} +1 -1
- package/storybook-static/assets/{CurvedLoop.stories-jcgMeMsw.js → CurvedLoop.stories-BGet8MMP.js} +1 -1
- package/storybook-static/assets/{DarkVeil.stories-BwtU9vKO.js → DarkVeil.stories-Bu0Tnu-6.js} +1 -1
- package/storybook-static/assets/{DateInput-6Jn_FyvO.js → DateInput-BuyblN2J.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-C_XBRwB3.js → DateInput.stories-CyRv7sjg.js} +1 -1
- package/storybook-static/assets/{DecayCard.stories-D6kTH79t.js → DecayCard.stories-BD2h63Yc.js} +1 -1
- package/storybook-static/assets/{DecryptedText.stories-B4xWEvyF.js → DecryptedText.stories-BR5w3WHS.js} +1 -1
- package/storybook-static/assets/{Dither.stories-DmAOxBWe.js → Dither.stories-aUCUDBCz.js} +1 -1
- package/storybook-static/assets/{Dock.stories-AHZywNVf.js → Dock.stories-B9c2txIi.js} +1 -1
- package/storybook-static/assets/{EditFAB.stories-BJ5P85ZN.js → EditFAB.stories-DMOijRLx.js} +1 -1
- package/storybook-static/assets/{EvilEye.stories-D0CBPfm1.js → EvilEye.stories-CsOG_d0o.js} +1 -1
- package/storybook-static/assets/{FadeContent.stories-D1capsBJ.js → FadeContent.stories-BR6tybqY.js} +1 -1
- package/storybook-static/assets/{FaultyTerminal.stories-BxqqRf0S.js → FaultyTerminal.stories-DS5Tyv6l.js} +1 -1
- package/storybook-static/assets/{Fbo-DvyLCJ1Y.js → Fbo-CW8HnzJ0.js} +1 -1
- package/storybook-static/assets/{FloatingLines.stories-7ze9ddpl.js → FloatingLines.stories-DpsTsF-M.js} +1 -1
- package/storybook-static/assets/{FlowingMenu.stories-BX9PD8x2.js → FlowingMenu.stories-C7Yw24v8.js} +1 -1
- package/storybook-static/assets/{FluidGlass.stories-DynD7GVO.js → FluidGlass.stories-DL7gsIvR.js} +1 -1
- package/storybook-static/assets/{Folder.stories-DDktLoEO.js → Folder.stories-oUQTik2D.js} +1 -1
- package/storybook-static/assets/{FuzzyText.stories-D9tRARUX.js → FuzzyText.stories-3sz8Ql2j.js} +1 -1
- package/storybook-static/assets/{Galaxy.stories-aSApGekp.js → Galaxy.stories-DNKl8sLe.js} +1 -1
- package/storybook-static/assets/{GhostCursor.stories-5l0di532.js → GhostCursor.stories-BwKhRvGF.js} +1 -1
- package/storybook-static/assets/{GlareHover.stories-Dc69-LbU.js → GlareHover.stories-HqLH7vCz.js} +1 -1
- package/storybook-static/assets/{GlassSurface.stories-DETLyc0H.js → GlassSurface.stories-BI3VNUMA.js} +1 -1
- package/storybook-static/assets/{GlitchText.stories-Bzb3ZMSY.js → GlitchText.stories-DAJVj_2t.js} +1 -1
- package/storybook-static/assets/{GooeyNav.stories-rxdxJjAy.js → GooeyNav.stories-DC9dqubb.js} +1 -1
- package/storybook-static/assets/{GradientBlinds.stories-03LkBbo8.js → GradientBlinds.stories-FtL2FczL.js} +1 -1
- package/storybook-static/assets/{GradientText.stories-CGo9FyNH.js → GradientText.stories-sKX4wnrF.js} +1 -1
- package/storybook-static/assets/{Grainient.stories-CzGAEJr-.js → Grainient.stories-LOYPnd1b.js} +1 -1
- package/storybook-static/assets/{GridMotion.stories-BzeBDaK8.js → GridMotion.stories-D56B4vk1.js} +1 -1
- package/storybook-static/assets/HabitTimeOfDayChart.stories-CSb9GUPx.js +49 -0
- package/storybook-static/assets/{ImageSlideshow.stories-hoGOc1Gf.js → ImageSlideshow.stories-B74RIe-i.js} +1 -1
- package/storybook-static/assets/{Iridescence.stories-CQTjQ1lh.js → Iridescence.stories-CTwtY8eT.js} +1 -1
- package/storybook-static/assets/{LaserFlow.stories-DzkVWskc.js → LaserFlow.stories-BLmaf3AB.js} +1 -1
- package/storybook-static/assets/{LetterGlitch.stories-0wcxCpnJ.js → LetterGlitch.stories-DH37XF0t.js} +1 -1
- package/storybook-static/assets/{LightPillar.stories-C3jRtdg9.js → LightPillar.stories-Ck3qeiN0.js} +1 -1
- package/storybook-static/assets/{LightRays.stories-C52kBsnd.js → LightRays.stories-ua2gmYoU.js} +1 -1
- package/storybook-static/assets/{Lightning.stories-BFVGqmMh.js → Lightning.stories-aH3grKDv.js} +1 -1
- package/storybook-static/assets/{LineWaves.stories-DNdwRrSd.js → LineWaves.stories-Dny9m17l.js} +1 -1
- package/storybook-static/assets/{LiquidChrome.stories-DFTBXxI6.js → LiquidChrome.stories-DhhNq7hu.js} +1 -1
- package/storybook-static/assets/{LiquidEther.stories-BGYmyfDI.js → LiquidEther.stories-QrTDJF0k.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner-D3Kx-V7J.js → LoadingSpinner-1TPKggI4.js} +1 -1
- package/storybook-static/assets/{LoadingSpinner.stories-CP70BGAb.js → LoadingSpinner.stories-hbHHmRIN.js} +1 -1
- package/storybook-static/assets/{MagicRings.stories-BA9xv5mB.js → MagicRings.stories-DVVFiIUt.js} +1 -1
- package/storybook-static/assets/{Magnet.stories-cqBYCb-D.js → Magnet.stories-BbdHeWMA.js} +1 -1
- package/storybook-static/assets/{MagnetLines.stories-QkoPnGKj.js → MagnetLines.stories-DuFdunF1.js} +1 -1
- package/storybook-static/assets/{Masonry.stories-CiGXRf3O.js → Masonry.stories-eCIUqf99.js} +1 -1
- package/storybook-static/assets/{MetaBalls.stories-3l0pQiKn.js → MetaBalls.stories-Dv6jUd7Z.js} +1 -1
- package/storybook-static/assets/{MetallicPaint.stories-DgZJfMr5.js → MetallicPaint.stories-DAVRhJNS.js} +1 -1
- package/storybook-static/assets/MoodChart.stories-Cu2L9ctb.js +40 -0
- package/storybook-static/assets/{MotionConfigContext-BWFxZgdN.js → MotionConfigContext-BOce3hkw.js} +1 -1
- package/storybook-static/assets/{Navbar.stories-C_Zyfhqr.js → Navbar.stories-CA4HG5LC.js} +1 -1
- package/storybook-static/assets/{Noise.stories-Cg7CucgT.js → Noise.stories-CzRiztMU.js} +1 -1
- package/storybook-static/assets/{NumberStepper-DpOu7xmF.js → NumberStepper-CA99F71z.js} +1 -1
- package/storybook-static/assets/{NumberStepper.stories-CvG9oY5Q.js → NumberStepper.stories-BaedWrxw.js} +1 -1
- package/storybook-static/assets/{Orb.stories-BR92tgyW.js → Orb.stories-C3AvU6Ck.js} +1 -1
- package/storybook-static/assets/{OrbitImages.stories-D_-2HcAd.js → OrbitImages.stories-CUQtYBoA.js} +1 -1
- package/storybook-static/assets/PieChart.stories-CuDdoiKR.js +91 -0
- package/storybook-static/assets/{PixelBlast.stories-B6FXuNf4.js → PixelBlast.stories-BZMMgPnx.js} +1 -1
- package/storybook-static/assets/{PixelCard.stories-Dq4CP2Qj.js → PixelCard.stories-BGHIfRb9.js} +1 -1
- package/storybook-static/assets/{PixelSnow.stories-BoQSOear.js → PixelSnow.stories-BxIpxPJS.js} +1 -1
- package/storybook-static/assets/{PixelTransition.stories-CtQQ070z.js → PixelTransition.stories-Do2T23Se.js} +1 -1
- package/storybook-static/assets/{Plasma.stories-D-421jzZ.js → Plasma.stories-SQXqI75y.js} +1 -1
- package/storybook-static/assets/PolarHeatmap.stories-CDFci1PA.js +26 -0
- package/storybook-static/assets/{Prism.stories-BuibpwdU.js → Prism.stories-Ba_UAm8c.js} +1 -1
- package/storybook-static/assets/{PrismaticBurst.stories-CwYzdBlM.js → PrismaticBurst.stories-NskKboMg.js} +1 -1
- package/storybook-static/assets/{ProfileCard.stories-Dj4oJCxw.js → ProfileCard.stories-nhGFawW1.js} +1 -1
- package/storybook-static/assets/ProgressRings-CR8t1see.css +1 -0
- package/storybook-static/assets/ProgressRings.stories-Dq2WYOU1.js +67 -0
- package/storybook-static/assets/QuantifiableHabitsChart.stories-treJexAd.js +125 -0
- package/storybook-static/assets/{Radar.stories-DxNmoYV3.js → Radar.stories-DN8oMfe1.js} +1 -1
- package/storybook-static/assets/RadialDayChart-CjNQ36HL.css +1 -0
- package/storybook-static/assets/RadialDayChart.stories-C_GY1oKa.js +26 -0
- package/storybook-static/assets/{RecurrencePicker.stories-BAicSNhQ.js → RecurrencePicker.stories-yUASJJzk.js} +1 -1
- package/storybook-static/assets/{Ribbons.stories-usN1kCyI.js → Ribbons.stories-2PD9Q7CT.js} +1 -1
- package/storybook-static/assets/{RippleGrid.stories-nTLGHPV6.js → RippleGrid.stories-Bmz86N8L.js} +1 -1
- package/storybook-static/assets/{RotatingText.stories-8CShs_WJ.js → RotatingText.stories-Db0Kj4fU.js} +1 -1
- package/storybook-static/assets/{ScrollFloat.stories-Dp9YyvHK.js → ScrollFloat.stories-BvS3cLTO.js} +1 -1
- package/storybook-static/assets/{ScrollReveal.stories-Dy4JUrqi.js → ScrollReveal.stories-BRz9n7Qk.js} +1 -1
- package/storybook-static/assets/{ScrollVelocity.stories-CUf-OHNp.js → ScrollVelocity.stories-TeCcq0Yc.js} +1 -1
- package/storybook-static/assets/{SearchBar.stories-BKfuRnlK.js → SearchBar.stories-Bu7toOZA.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown-Ctnh_PVq.js → SearchableDropdown-BKDA92Db.js} +1 -1
- package/storybook-static/assets/{SearchableDropdown.stories-1d-goy0G.js → SearchableDropdown.stories-oT9buOsg.js} +1 -1
- package/storybook-static/assets/{SelectInput-C94OHQIl.js → SelectInput-Cej6AIrC.js} +1 -1
- package/storybook-static/assets/{SelectInput.stories-DPV5iKcs.js → SelectInput.stories--hmbh-1I.js} +1 -1
- package/storybook-static/assets/{ShapeBlur.stories-CdASN24B.js → ShapeBlur.stories-BrPB9Dgq.js} +1 -1
- package/storybook-static/assets/{ShapeGrid.stories-Duzq6qpW.js → ShapeGrid.stories-A41-DtIq.js} +1 -1
- package/storybook-static/assets/{ShinyText.stories-Dgqps29_.js → ShinyText.stories-BFTU8GJP.js} +1 -1
- package/storybook-static/assets/{Silk.stories-DWnaBFZp.js → Silk.stories-BxpLiRNx.js} +1 -1
- package/storybook-static/assets/SleepChart.stories-ywhx7_91.js +58 -0
- package/storybook-static/assets/{Slider-C69QbwVa.js → Slider-CuNmEDiZ.js} +1 -1
- package/storybook-static/assets/{Slider.stories-DDhTLU2g.js → Slider.stories-CsQAkQAf.js} +1 -1
- package/storybook-static/assets/{SoftAurora.stories-C5OSOqjj.js → SoftAurora.stories-taxcnhT9.js} +1 -1
- package/storybook-static/assets/{SoundDemo.stories-sb4V9P8H.js → SoundDemo.stories-zh_F_pgW.js} +1 -1
- package/storybook-static/assets/{SplashCursor.stories-PeC0-y78.js → SplashCursor.stories-CmqWbAt-.js} +1 -1
- package/storybook-static/assets/{SpotlightCard.stories-BCCdQhIJ.js → SpotlightCard.stories-CuO7WGGH.js} +1 -1
- package/storybook-static/assets/{Stack.stories-DJekNsdu.js → Stack.stories-7-b3bhlI.js} +1 -1
- package/storybook-static/assets/{StaggeredMenu.stories-BU-AxZRv.js → StaggeredMenu.stories-DBTBz-bp.js} +1 -1
- package/storybook-static/assets/{StarBorder.stories-Dw9LDvMk.js → StarBorder.stories-eXdZPyrG.js} +1 -1
- package/storybook-static/assets/SunburstChart.stories-CMSDNzoY.js +285 -0
- package/storybook-static/assets/{Table.stories-IhtnLV5J.js → Table.stories-SylwgEpv.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-F_Q4-xiR.js → Tabs.stories-DbAMtL9i.js} +1 -1
- package/storybook-static/assets/{TargetCursor.stories-B-Tl1DdA.js → TargetCursor.stories-BRd8eVe6.js} +1 -1
- package/storybook-static/assets/{TextArea-Bb148SaD.js → TextArea-DBXLzMeZ.js} +1 -1
- package/storybook-static/assets/{TextArea.stories-5-dHoUPL.js → TextArea.stories-udebbAVJ.js} +1 -1
- package/storybook-static/assets/{TextCursor.stories-O-EIx7Nu.js → TextCursor.stories-BUDlvRvw.js} +1 -1
- package/storybook-static/assets/{TextInput-BQ78htqq.js → TextInput-Df0ECj-K.js} +1 -1
- package/storybook-static/assets/{TextInput.stories-Bjjfu_5O.js → TextInput.stories-FtH8T5-_.js} +1 -1
- package/storybook-static/assets/{TextPressure.stories-BvXWcayn.js → TextPressure.stories-Dooijbiu.js} +1 -1
- package/storybook-static/assets/{TextType.stories-DL92625c.js → TextType.stories-ClLVvVVk.js} +1 -1
- package/storybook-static/assets/{ThemeSwitcher.stories-BUUyb12v.js → ThemeSwitcher.stories-CwegSINw.js} +1 -1
- package/storybook-static/assets/{Threads.stories-C_LDNe0R.js → Threads.stories-BuN-AxUr.js} +1 -1
- package/storybook-static/assets/{TimeInput.stories-Tj2LrCtN.js → TimeInput.stories-B5IUTUV2.js} +1 -1
- package/storybook-static/assets/{Toggle-BgFXbOVy.js → Toggle-B5sCmBg4.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-voNeGmVh.js → Toggle.stories-BmSHf5DP.js} +1 -1
- package/storybook-static/assets/{ToggleButton-CQLM9369.js → ToggleButton-CP739hB6.js} +1 -1
- package/storybook-static/assets/{ToggleButton.stories-CLdG94qe.js → ToggleButton.stories-m2eCrn7I.js} +1 -1
- package/storybook-static/assets/{TrueFocus.stories-CEC_mKz7.js → TrueFocus.stories-ATT_gCYY.js} +1 -1
- package/storybook-static/assets/{VariableProximity.stories-CoB68xuF.js → VariableProximity.stories-CjhZaqvP.js} +1 -1
- package/storybook-static/assets/{Waves.stories-Cpn9tv6C.js → Waves.stories-l6P0auFd.js} +1 -1
- package/storybook-static/assets/{arc-DgcIQOLP.js → arc--Q2xWRUA.js} +1 -1
- package/storybook-static/assets/back-BxPoHLz2.js +1 -0
- package/storybook-static/assets/{band-Cq25-Mh7.js → band-D-svgzWl.js} +1 -1
- package/storybook-static/assets/{calendar-B90N4a5g.js → calendar-DtZXr8CJ.js} +1 -1
- package/storybook-static/assets/{chart-column-Qn3KVlVm.js → chart-column-Bc8_bGZY.js} +1 -1
- package/storybook-static/assets/{check-BdgefYk0.js → check-pQLEHzEB.js} +1 -1
- package/storybook-static/assets/{chevron-down-rAxqUK0f.js → chevron-down-BwWfy_sP.js} +1 -1
- package/storybook-static/assets/{chevron-right-BQYLOSGD.js → chevron-right-D2pOUpcG.js} +1 -1
- package/storybook-static/assets/client-DyHGB6m6.js +1 -0
- package/storybook-static/assets/{createLucideIcon-CanksmPJ.js → createLucideIcon-B-jPBnP1.js} +1 -1
- package/storybook-static/assets/descending-BO6OmMcj.js +1 -0
- package/storybook-static/assets/{download-BoPCl2gy.js → download-DnhuO1Ek.js} +1 -1
- package/storybook-static/assets/{folder-B0zTnOfo.js → folder-B0kHgyRN.js} +1 -1
- package/storybook-static/assets/{iconBase-jWAd7fUM.js → iconBase-Do-FwLpb.js} +1 -1
- package/storybook-static/assets/{iframe-BTbLpgFM.js → iframe-ClorXKAj.js} +3 -3
- package/storybook-static/assets/{index-D9A3yXPP.js → index-Bs1dRoHq.js} +1 -1
- package/storybook-static/assets/{index-8orVvKs3.js → index-CBJggPN9.js} +1 -1
- package/storybook-static/assets/{index-Dnnp7mc9.js → index-CezVs6bU.js} +1 -1
- package/storybook-static/assets/linear-BTA54h8k.js +1 -0
- package/storybook-static/assets/monotone-Ca9yXB0X.js +1 -0
- package/storybook-static/assets/path-CSVzDSO0.js +1 -0
- package/storybook-static/assets/{proxy-DHiOkbBq.js → proxy-3BlM6Jc4.js} +1 -1
- package/storybook-static/assets/{react-18-RyhzFaVZ.js → react-18-wzICuHUq.js} +1 -1
- package/storybook-static/assets/{react-three-fiber.esm-DyDueq1t.js → react-three-fiber.esm-BmUFa1-S.js} +1 -1
- package/storybook-static/assets/{search-C2F8ucQI.js → search-BKi-6XDz.js} +1 -1
- package/storybook-static/assets/{settings-B4F4kfld.js → settings-BzEV0s0L.js} +1 -1
- package/storybook-static/assets/{sun-CbGl2Vwt.js → sun-C9Sm1WQX.js} +1 -1
- package/storybook-static/assets/{transform-v7fcW145.js → transform-DaumkFRH.js} +1 -1
- package/storybook-static/assets/{trash-2-CNCXZ0wH.js → trash-2-Bb1H8yHr.js} +1 -1
- package/storybook-static/assets/{use-animation-frame-DY1VsI4g.js → use-animation-frame-D9hLiIrP.js} +1 -1
- package/storybook-static/assets/{use-in-view-Cawxv_UZ.js → use-in-view-DKEXTXQI.js} +1 -1
- package/storybook-static/assets/{use-motion-value-BKT0PPfP.js → use-motion-value-BABvebXq.js} +1 -1
- package/storybook-static/assets/{use-spring-CDH8BIpQ.js → use-spring-C8_4zIh_.js} +1 -1
- package/storybook-static/assets/{use-transform-Bj0aHFrd.js → use-transform-CcGdha8D.js} +1 -1
- package/storybook-static/assets/{useSound-OlKqgJtL.js → useSound-BS8g02XJ.js} +1 -1
- package/storybook-static/assets/{users-Oy8C2tFC.js → users-CL9_RODb.js} +1 -1
- package/storybook-static/assets/value-CMZJhU-O.js +1 -0
- package/storybook-static/assets/{x-CR0CkM0G.js → x-BgxSkyBO.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/BooleansHeatmap.stories-CKYZW8W5.js +0 -63
- package/storybook-static/assets/HabitTimeOfDayChart.stories-CbMqUfq0.js +0 -49
- package/storybook-static/assets/MoodChart.stories-UXaQU4EG.js +0 -40
- package/storybook-static/assets/PieChart.stories-CjtEiSJY.js +0 -91
- package/storybook-static/assets/QuantifiableHabitsChart.stories-ZY1-WQ1g.js +0 -125
- package/storybook-static/assets/SleepChart.stories-C1n9aK7B.js +0 -58
- package/storybook-static/assets/SunburstChart.stories-CE4d4r8-.js +0 -285
- package/storybook-static/assets/client-Chg03P_H.js +0 -1
- package/storybook-static/assets/linear-9syG7RFK.js +0 -1
- package/storybook-static/assets/monotone-B6BFTqpP.js +0 -1
- package/storybook-static/assets/path-CbwjOpE9.js +0 -1
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import{r as T,j as U}from"./iframe-ClorXKAj.js";import{e as ae,s as D,c as Oe,t as re,f as ie}from"./transform-DaumkFRH.js";import{l as se}from"./linear-BTA54h8k.js";import{a as B}from"./arc--Q2xWRUA.js";import{i as M}from"./value-CMZJhU-O.js";import"./preload-helper-C1FmrZbK.js";import"./descending-BO6OmMcj.js";import"./path-CSVzDSO0.js";function Pe(e){var t=0,a=e.children,i=a&&a.length;if(!i)t=1;else for(;--i>=0;)t+=a[i].value;e.value=t}function Te(){return this.eachAfter(Pe)}function De(e,t){let a=-1;for(const i of this)e.call(t,i,++a,this);return this}function _e(e,t){for(var a=this,i=[a],o,m,s=-1;a=i.pop();)if(e.call(t,a,++s,this),o=a.children)for(m=o.length-1;m>=0;--m)i.push(o[m]);return this}function ke(e,t){for(var a=this,i=[a],o=[],m,s,d,c=-1;a=i.pop();)if(o.push(a),m=a.children)for(s=0,d=m.length;s<d;++s)i.push(m[s]);for(;a=o.pop();)e.call(t,a,++c,this);return this}function Ee(e,t){let a=-1;for(const i of this)if(e.call(t,i,++a,this))return i}function Be(e){return this.eachAfter(function(t){for(var a=+e(t.data)||0,i=t.children,o=i&&i.length;--o>=0;)a+=i[o].value;t.value=a})}function Ie(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function qe(e){for(var t=this,a=$e(t,e),i=[t];t!==a;)t=t.parent,i.push(t);for(var o=i.length;e!==a;)i.splice(o,0,e),e=e.parent;return i}function $e(e,t){if(e===t)return e;var a=e.ancestors(),i=t.ancestors(),o=null;for(e=a.pop(),t=i.pop();e===t;)o=e,e=a.pop(),t=i.pop();return o}function Ye(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function je(){return Array.from(this)}function Le(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Ve(){var e=this,t=[];return e.each(function(a){a!==e&&t.push({source:a.parent,target:a})}),t}function*Fe(){var e=this,t,a=[e],i,o,m;do for(t=a.reverse(),a=[];e=t.pop();)if(yield e,i=e.children)for(o=0,m=i.length;o<m;++o)a.push(i[o]);while(a.length)}function N(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ge)):t===void 0&&(t=He);for(var a=new X(e),i,o=[a],m,s,d,c;i=o.pop();)if((s=t(i.data))&&(c=(s=Array.from(s)).length))for(i.children=s,d=c-1;d>=0;--d)o.push(m=s[d]=new X(s[d])),m.parent=i,m.depth=i.depth+1;return a.eachBefore(Ue)}function Xe(){return N(this).eachBefore(We)}function He(e){return e.children}function Ge(e){return Array.isArray(e)?e[1]:null}function We(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function X(e){this.data=e,this.depth=this.height=0,this.parent=null}X.prototype=N.prototype={constructor:X,count:Te,each:De,eachAfter:ke,eachBefore:_e,find:Ee,sum:Be,sort:Ie,path:qe,ancestors:Ye,descendants:je,leaves:Le,links:Ve,copy:Xe,[Symbol.iterator]:Fe};function Ne(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Qe(e,t,a,i,o){for(var m=e.children,s,d=-1,c=m.length,w=e.value&&(i-t)/e.value;++d<c;)s=m[d],s.y0=a,s.y1=o,s.x0=t,s.x1=t+=s.value*w}function Je(){var e=1,t=1,a=0,i=!1;function o(s){var d=s.height+1;return s.x0=s.y0=a,s.x1=e,s.y1=t/d,s.eachBefore(m(t,d)),i&&s.eachBefore(Ne),s}function m(s,d){return function(c){c.children&&Qe(c,c.x0,s*(c.depth+1)/d,c.x1,s*(c.depth+2)/d);var w=c.x0,y=c.y0,g=c.x1-a,P=c.y1-a;g<w&&(w=g=(w+g)/2),P<y&&(y=P=(y+P)/2),c.x0=w,c.y0=y,c.x1=g,c.y1=P}}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(e=+s[0],t=+s[1],o):[e,t]},o.padding=function(s){return arguments.length?(a=+s,o):a},o}const Ke="_container_sjfr4_1",Ze="_title_sjfr4_9",en="_chart_sjfr4_17",nn="_tooltip_sjfr4_23",Y={container:Ke,title:Ze,chart:en,tooltip:nn},oe=["#6366f1","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444","#ec4899","#84cc16","#f97316","#3b82f6","#14b8a6","#f59e0b"],ve=({data:e,width:t=500,height:a=500,title:i="Sunburst Chart",tagColors:o={},unit:m="items",centerLabel:s})=>{const d=T.useRef(null),c=T.useRef(new Map).current,w=T.useRef(0),y=T.useRef(null),g=Math.min(t,a)/2,P=T.useCallback((A,z)=>{if(o[A]){const b=ae(o[A]);if(b)return z>1?b.darker((z-1)*.3).toString():b.toString()}c.has(A)||(c.set(A,oe[w.current%oe.length]),w.current++);const R=c.get(A)||"#d4af37",H=ae(R);return H?H.darker(z*.3).toString():R},[o,c]);return T.useEffect(()=>{if(!d.current||!e)return;const A=D(d.current);A.selectAll("*").remove();const z=A.append("g").attr("transform",`translate(${t/2},${a/2})`),R=N(e).sum(n=>n.size??0).sort((n,r)=>(r.value??0)-(n.value??0)),b=Je().size([2*Math.PI,g*g])(R).descendants();b.forEach(n=>{const r=n;r.x0Original=n.x0,r.x1Original=n.x1,r.y0Original=n.y0,r.y1Original=n.y1}),B().startAngle(n=>n.x0).endAngle(n=>n.x1).innerRadius(n=>Math.sqrt(n.y0)).outerRadius(n=>Math.sqrt(n.y1)).cornerRadius(3);const _=D("body").append("div").attr("class",Y.tooltip).style("opacity",0).style("position","absolute"),be=()=>{y.current=null;const n=re().duration(750).ease(ie);S.style("opacity",1),S.transition(n).attrTween("d",r=>{const l=r;return p=>{const x=M(l.x0,l.x0Original)(p),v=M(l.x1,l.x1Original)(p),C=M(l.y0,l.y0Original)(p),u=M(l.y1,l.y1Original)(p);return l.x0=x,l.x1=v,l.y0=C,l.y1=u,B().startAngle(()=>x).endAngle(()=>v).innerRadius(()=>Math.min(g,Math.sqrt(Math.max(0,C)))).outerRadius(()=>Math.min(g,Math.sqrt(Math.max(0,u)))).cornerRadius(3)(l)||""}}),S.style("cursor",r=>!r.children||r.children.length===0?"default":"pointer"),K.style("cursor","default"),J(n,b)},Ce=(n,r)=>{if(n.stopPropagation(),y.current||!r.children||r.children.length===0)return;y.current=r;const l=re().duration(750).ease(ie),p=r,x=se().domain([p.x0Original,p.x1Original]).range([0,2*Math.PI]).clamp(!0),v=b.filter(f=>I(r,f)),C=Math.max(...v.map(f=>f.y1Original)),u=se().domain([p.y0Original,C]).range([0,g*g]).clamp(!0);S.style("opacity",f=>I(r,f)?1:0),S.transition(l).attrTween("d",f=>{const h=f;if(!I(r,f))return()=>"";const k=x(h.x0Original);let E=x(h.x1Original);if(E<=k){const O=(h.x1Original-h.x0Original)/(p.x1Original-p.x0Original);E=k+2*Math.PI*O}let W,q;if(h===r)if(W=0,h.children&&h.children.length>0){const O=Math.min(...h.children.map($=>$.y0Original));q=u(O)*.98}else q=g*g*.98;else W=u(h.y0Original),q=u(h.y1Original);const we=h.x0,Se=h.x1,Ae=h.y0,Re=h.y1;return O=>{const $=M(we,k)(O),ee=M(Se,E)(O),ne=M(Ae,W)(O),te=M(Re,q)(O);return h.x0=$,h.x1=ee,h.y0=ne,h.y1=te,B().startAngle(()=>$).endAngle(()=>ee).innerRadius(()=>Math.min(g,Math.sqrt(Math.max(0,ne)))).outerRadius(()=>Math.min(g,Math.sqrt(Math.max(0,te)))).cornerRadius(3)(h)||""}}),J(l,b.filter(f=>I(r,f))),S.style("cursor","default"),K.style("cursor","pointer")},I=(n,r)=>{if(n===r)return!0;let l=r.parent;for(;l;){if(l===n)return!0;l=l.parent}return!1},S=z.selectAll("path").data(b.filter(n=>n.depth>0&&n.value&&n.value>0)).enter().append("path").attr("fill",n=>{let r=n;for(;r.depth>1&&r.parent;)r=r.parent;return P(r.data.name,n.depth)}).attr("stroke",()=>window.getComputedStyle(d.current).getPropertyValue("--color-border")||"#e2e8f0").attr("stroke-width",2).style("cursor",n=>!n.children||n.children.length===0?"default":"pointer").on("click",Ce).on("mouseover",function(n,r){if(y.current)return;const l=n.currentTarget;_.transition().duration(200).style("opacity",1);const p=r.value||0,x=(p/(R.value||1)*100).toFixed(1);_.html(`
|
|
2
|
+
<div><strong>${r.data.name}</strong></div>
|
|
3
|
+
<div>Value: ${p}</div>
|
|
4
|
+
<div>${x}% of total</div>
|
|
5
|
+
`).style("left",n.pageX+10+"px").style("top",n.pageY-28+"px"),S.each(function(){this!==l?D(this).transition().duration(200).style("opacity",.3).style("filter","blur(1px)"):D(this).transition().duration(200).style("opacity",1).style("filter","none")})}).on("mouseout",function(){_.transition().duration(500).style("opacity",0),S.transition().duration(200).style("opacity",1).style("filter","none")}).on("mousemove",function(n){_.style("left",n.pageX+10+"px").style("top",n.pageY-28+"px")});S.attr("d",n=>B().startAngle(()=>n.x0).endAngle(()=>n.x1).innerRadius(()=>0).outerRadius(()=>0).cornerRadius(3)(n)||"").style("opacity",0).transition().delay(n=>(n.depth-1)*120+(n.x0+n.x1)/2/(2*Math.PI)*240).duration(700).ease(Oe).style("opacity",1).attrTween("d",function(n){const r=n,l=0,p=0,x=r.y0Original,v=r.y1Original;return C=>{const u=M(l,x)(C),f=M(p,v)(C);return r.y0=u,r.y1=f,B().startAngle(()=>r.x0).endAngle(()=>r.x1).innerRadius(()=>Math.sqrt(Math.max(0,u))).outerRadius(()=>Math.sqrt(Math.max(0,f))).cornerRadius(3)(r)||""}});const Q=n=>{const r=n.x1-n.x0,l=y.current?.05:.15;return r>l&&n.depth<=2},J=(n,r,l)=>{z.selectAll("text.segment-label").remove(),z.selectAll("text.center-label").remove(),n.on("end",()=>{const p=r.filter(u=>y.current&&u===y.current?!1:u.depth>0&&u.value&&u.value>0&&Q(u));z.selectAll("text.segment-label").data(p).enter().append("text").attr("class","segment-label").attr("transform",u=>{const f=(u.x0+u.x1)/2,h=(Math.sqrt(u.y0)+Math.sqrt(u.y1))/2,k=Math.cos(f-Math.PI/2)*h,E=Math.sin(f-Math.PI/2)*h;return`translate(${k},${E})`}).attr("text-anchor","middle").attr("alignment-baseline","middle").attr("font-size",u=>u.depth===1?"14px":"12px").attr("fill","var(--color-text)").attr("font-weight","700").style("pointer-events","none").style("text-shadow","none").text(u=>{const f=u.depth===1?12:8;return u.data.name.substring(0,f)}).style("opacity",0).transition().duration(200).style("opacity",1);const x=y.current||R,v=window.getComputedStyle(d.current),C=v.getPropertyValue("--text-primary")||(v.getPropertyValue("--bg-primary")==="#000000"||v.getPropertyValue("color-scheme")==="dark"?"#ffffff":"#000000");z.append("text").attr("class","center-label").attr("text-anchor","middle").attr("alignment-baseline","middle").attr("font-size","18px").attr("font-weight","bold").attr("fill",C).style("pointer-events","none").text(x===R?s||e.name||"Total":x.data.name).style("opacity",0).transition().duration(200).style("opacity",1),z.append("text").attr("class","center-label").attr("text-anchor","middle").attr("alignment-baseline","middle").attr("y",20).attr("font-size","14px").attr("font-weight","500").attr("fill",C).style("pointer-events","none").text(`${(x.value||0).toLocaleString()} ${m}`).style("opacity",0).transition().duration(200).style("opacity",1)})},Me=Math.sqrt(b[0].y0)||g*.3,K=z.append("circle").attr("class","center-reset-button").attr("r",Me).attr("fill","transparent").style("cursor","default").on("click",()=>{y.current&&be()}).on("mouseover",function(){y.current&&D(this).transition().duration(150).attr("fill","rgba(100, 100, 100, 0.1)").attr("stroke","rgba(100, 100, 100, 0.3)").attr("stroke-width",2)}).on("mouseout",function(){y.current&&D(this).transition().duration(150).attr("fill","transparent").attr("stroke","none")}),G=window.getComputedStyle(d.current),Z=G.getPropertyValue("--text-primary")||(G.getPropertyValue("--bg-primary")==="#000000"||G.getPropertyValue("color-scheme")==="dark"?"#ffffff":"#000000");return z.append("text").attr("class","center-label").attr("text-anchor","middle").attr("alignment-baseline","middle").attr("font-size","18px").attr("font-weight","bold").attr("fill",Z).style("pointer-events","none").text(s||e.name||"Total"),z.append("text").attr("class","center-label").attr("text-anchor","middle").attr("alignment-baseline","middle").attr("y",20).attr("font-size","14px").attr("font-weight","500").attr("fill",Z).style("pointer-events","none").text(`${(R.value||0).toLocaleString()} ${m}`),z.selectAll("text.segment-label").data(b.filter(n=>n.depth>0&&n.value&&n.value>0&&Q(n))).enter().append("text").attr("class","segment-label").attr("transform",n=>{const r=n,l=(r.x0+r.x1)/2,p=(Math.sqrt(r.y0Original)+Math.sqrt(r.y1Original))/2,x=Math.cos(l-Math.PI/2)*p,v=Math.sin(l-Math.PI/2)*p;return`translate(${x},${v})`}).attr("text-anchor","middle").attr("alignment-baseline","middle").attr("font-size",n=>n.depth===1?"14px":"12px").attr("fill","var(--color-text)").attr("font-weight","700").style("pointer-events","none").style("text-shadow","none").text(n=>{const r=n.depth===1?12:8;return n.data.name.substring(0,r)}).style("opacity",0).transition().delay(n=>(n.depth-1)*120+(n.x0+n.x1)/2/(2*Math.PI)*240+500).duration(300).style("opacity",1),()=>{_.remove()}},[e,t,a,c,g,o,m,s]),U.jsxs("div",{className:Y.container,children:[U.jsx("h3",{className:Y.title,children:i}),U.jsx("svg",{ref:d,viewBox:`0 0 ${t} ${a}`,className:Y.chart})]})};ve.__docgenInfo={description:"",methods:[],displayName:"SunburstChart",props:{data:{required:!0,tsType:{name:"SunBurstRecord"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"500",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"500",computed:!1}},title:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'Sunburst Chart'",computed:!1}},tagColors:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"string"}],raw:"Record<string, string>"},description:"",defaultValue:{value:"{}",computed:!1}},unit:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'items'",computed:!1}},centerLabel:{required:!1,tsType:{name:"string"},description:""}}};const hn={title:"Organisms/Charts/SunburstChart",component:ve,parameters:{layout:"centered"},argTypes:{width:{control:{type:"number",min:400,max:800,step:50}},height:{control:{type:"number",min:400,max:800,step:50}},title:{control:{type:"text"}}}},j={args:{data:{name:"Activities",children:[{name:"Work",children:[{name:"Coding",size:120},{name:"Meetings",size:60},{name:"Planning",size:45},{name:"Code Review",size:30}]},{name:"Health",children:[{name:"Exercise",size:60},{name:"Cooking",size:45},{name:"Walking",size:30},{name:"Meditation",size:20}]},{name:"Personal",children:[{name:"Reading",size:90},{name:"Gaming",size:60},{name:"Learning",size:75},{name:"Hobbies",size:45}]},{name:"Social",children:[{name:"Family",size:80},{name:"Friends",size:60},{name:"Events",size:30}]}]},width:600,height:600,title:"Daily Time Distribution",tagColors:{Work:"#7c3aed",Health:"#10b981",Personal:"#3b82f6",Social:"#f59e0b",Coding:"#6d28d9",Exercise:"#059669",Reading:"#2563eb",Family:"#ea580c"}}},L={args:{data:{name:"Project",children:[{name:"Frontend",children:[{name:"Components",children:[{name:"UI Components",size:45},{name:"Forms",size:30},{name:"Charts",size:25}]},{name:"Styling",children:[{name:"CSS Modules",size:20},{name:"Themes",size:15},{name:"Animations",size:15}]},{name:"State",children:[{name:"Redux",size:25},{name:"Context",size:15},{name:"Hooks",size:20}]}]},{name:"Backend",children:[{name:"API",children:[{name:"REST",size:40},{name:"GraphQL",size:30}]},{name:"Database",children:[{name:"Models",size:25},{name:"Migrations",size:15}]},{name:"Services",children:[{name:"Auth",size:20},{name:"Email",size:15},{name:"Storage",size:20}]}]},{name:"DevOps",children:[{name:"CI/CD",size:30},{name:"Docker",size:25},{name:"Monitoring",size:20},{name:"Testing",size:35}]}]},width:700,height:700,title:"Project Time Allocation",tagColors:{Frontend:"#8b5cf6",Backend:"#3b82f6",DevOps:"#10b981",Components:"#a78bfa",API:"#60a5fa",Database:"#2563eb"}}},V={args:{data:{name:"Budget",children:[{name:"Essentials",children:[{name:"Rent",size:1500},{name:"Utilities",size:200},{name:"Insurance",size:300},{name:"Groceries",size:400}]},{name:"Transportation",children:[{name:"Car Payment",size:350},{name:"Gas",size:150},{name:"Maintenance",size:100},{name:"Public Transit",size:50}]},{name:"Lifestyle",children:[{name:"Dining Out",size:300},{name:"Entertainment",size:200},{name:"Shopping",size:250},{name:"Subscriptions",size:100}]},{name:"Savings",children:[{name:"Emergency Fund",size:500},{name:"Retirement",size:600},{name:"Investments",size:400}]}]},width:650,height:650,title:"Monthly Budget Distribution",tagColors:{Essentials:"#dc2626",Transportation:"#f59e0b",Lifestyle:"#8b5cf6",Savings:"#10b981"}}},F={args:{data:{name:"Root",children:[{name:"Category A",size:100},{name:"Category B",size:80},{name:"Category C",size:60},{name:"Category D",size:40},{name:"Category E",size:20}]},width:500,height:500,title:"Simple Distribution"}};var le,ce,ue;j.parameters={...j.parameters,docs:{...(le=j.parameters)==null?void 0:le.docs,source:{originalSource:`{
|
|
6
|
+
args: {
|
|
7
|
+
data: {
|
|
8
|
+
name: 'Activities',
|
|
9
|
+
children: [{
|
|
10
|
+
name: 'Work',
|
|
11
|
+
children: [{
|
|
12
|
+
name: 'Coding',
|
|
13
|
+
size: 120
|
|
14
|
+
}, {
|
|
15
|
+
name: 'Meetings',
|
|
16
|
+
size: 60
|
|
17
|
+
}, {
|
|
18
|
+
name: 'Planning',
|
|
19
|
+
size: 45
|
|
20
|
+
}, {
|
|
21
|
+
name: 'Code Review',
|
|
22
|
+
size: 30
|
|
23
|
+
}]
|
|
24
|
+
}, {
|
|
25
|
+
name: 'Health',
|
|
26
|
+
children: [{
|
|
27
|
+
name: 'Exercise',
|
|
28
|
+
size: 60
|
|
29
|
+
}, {
|
|
30
|
+
name: 'Cooking',
|
|
31
|
+
size: 45
|
|
32
|
+
}, {
|
|
33
|
+
name: 'Walking',
|
|
34
|
+
size: 30
|
|
35
|
+
}, {
|
|
36
|
+
name: 'Meditation',
|
|
37
|
+
size: 20
|
|
38
|
+
}]
|
|
39
|
+
}, {
|
|
40
|
+
name: 'Personal',
|
|
41
|
+
children: [{
|
|
42
|
+
name: 'Reading',
|
|
43
|
+
size: 90
|
|
44
|
+
}, {
|
|
45
|
+
name: 'Gaming',
|
|
46
|
+
size: 60
|
|
47
|
+
}, {
|
|
48
|
+
name: 'Learning',
|
|
49
|
+
size: 75
|
|
50
|
+
}, {
|
|
51
|
+
name: 'Hobbies',
|
|
52
|
+
size: 45
|
|
53
|
+
}]
|
|
54
|
+
}, {
|
|
55
|
+
name: 'Social',
|
|
56
|
+
children: [{
|
|
57
|
+
name: 'Family',
|
|
58
|
+
size: 80
|
|
59
|
+
}, {
|
|
60
|
+
name: 'Friends',
|
|
61
|
+
size: 60
|
|
62
|
+
}, {
|
|
63
|
+
name: 'Events',
|
|
64
|
+
size: 30
|
|
65
|
+
}]
|
|
66
|
+
}]
|
|
67
|
+
},
|
|
68
|
+
width: 600,
|
|
69
|
+
height: 600,
|
|
70
|
+
title: 'Daily Time Distribution',
|
|
71
|
+
tagColors: {
|
|
72
|
+
Work: '#7c3aed',
|
|
73
|
+
Health: '#10b981',
|
|
74
|
+
Personal: '#3b82f6',
|
|
75
|
+
Social: '#f59e0b',
|
|
76
|
+
Coding: '#6d28d9',
|
|
77
|
+
Exercise: '#059669',
|
|
78
|
+
Reading: '#2563eb',
|
|
79
|
+
Family: '#ea580c'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}`,...(ue=(ce=j.parameters)==null?void 0:ce.docs)==null?void 0:ue.source}}};var me,de,he;L.parameters={...L.parameters,docs:{...(me=L.parameters)==null?void 0:me.docs,source:{originalSource:`{
|
|
83
|
+
args: {
|
|
84
|
+
data: {
|
|
85
|
+
name: 'Project',
|
|
86
|
+
children: [{
|
|
87
|
+
name: 'Frontend',
|
|
88
|
+
children: [{
|
|
89
|
+
name: 'Components',
|
|
90
|
+
children: [{
|
|
91
|
+
name: 'UI Components',
|
|
92
|
+
size: 45
|
|
93
|
+
}, {
|
|
94
|
+
name: 'Forms',
|
|
95
|
+
size: 30
|
|
96
|
+
}, {
|
|
97
|
+
name: 'Charts',
|
|
98
|
+
size: 25
|
|
99
|
+
}]
|
|
100
|
+
}, {
|
|
101
|
+
name: 'Styling',
|
|
102
|
+
children: [{
|
|
103
|
+
name: 'CSS Modules',
|
|
104
|
+
size: 20
|
|
105
|
+
}, {
|
|
106
|
+
name: 'Themes',
|
|
107
|
+
size: 15
|
|
108
|
+
}, {
|
|
109
|
+
name: 'Animations',
|
|
110
|
+
size: 15
|
|
111
|
+
}]
|
|
112
|
+
}, {
|
|
113
|
+
name: 'State',
|
|
114
|
+
children: [{
|
|
115
|
+
name: 'Redux',
|
|
116
|
+
size: 25
|
|
117
|
+
}, {
|
|
118
|
+
name: 'Context',
|
|
119
|
+
size: 15
|
|
120
|
+
}, {
|
|
121
|
+
name: 'Hooks',
|
|
122
|
+
size: 20
|
|
123
|
+
}]
|
|
124
|
+
}]
|
|
125
|
+
}, {
|
|
126
|
+
name: 'Backend',
|
|
127
|
+
children: [{
|
|
128
|
+
name: 'API',
|
|
129
|
+
children: [{
|
|
130
|
+
name: 'REST',
|
|
131
|
+
size: 40
|
|
132
|
+
}, {
|
|
133
|
+
name: 'GraphQL',
|
|
134
|
+
size: 30
|
|
135
|
+
}]
|
|
136
|
+
}, {
|
|
137
|
+
name: 'Database',
|
|
138
|
+
children: [{
|
|
139
|
+
name: 'Models',
|
|
140
|
+
size: 25
|
|
141
|
+
}, {
|
|
142
|
+
name: 'Migrations',
|
|
143
|
+
size: 15
|
|
144
|
+
}]
|
|
145
|
+
}, {
|
|
146
|
+
name: 'Services',
|
|
147
|
+
children: [{
|
|
148
|
+
name: 'Auth',
|
|
149
|
+
size: 20
|
|
150
|
+
}, {
|
|
151
|
+
name: 'Email',
|
|
152
|
+
size: 15
|
|
153
|
+
}, {
|
|
154
|
+
name: 'Storage',
|
|
155
|
+
size: 20
|
|
156
|
+
}]
|
|
157
|
+
}]
|
|
158
|
+
}, {
|
|
159
|
+
name: 'DevOps',
|
|
160
|
+
children: [{
|
|
161
|
+
name: 'CI/CD',
|
|
162
|
+
size: 30
|
|
163
|
+
}, {
|
|
164
|
+
name: 'Docker',
|
|
165
|
+
size: 25
|
|
166
|
+
}, {
|
|
167
|
+
name: 'Monitoring',
|
|
168
|
+
size: 20
|
|
169
|
+
}, {
|
|
170
|
+
name: 'Testing',
|
|
171
|
+
size: 35
|
|
172
|
+
}]
|
|
173
|
+
}]
|
|
174
|
+
},
|
|
175
|
+
width: 700,
|
|
176
|
+
height: 700,
|
|
177
|
+
title: 'Project Time Allocation',
|
|
178
|
+
tagColors: {
|
|
179
|
+
Frontend: '#8b5cf6',
|
|
180
|
+
Backend: '#3b82f6',
|
|
181
|
+
DevOps: '#10b981',
|
|
182
|
+
Components: '#a78bfa',
|
|
183
|
+
API: '#60a5fa',
|
|
184
|
+
Database: '#2563eb'
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}`,...(he=(de=L.parameters)==null?void 0:de.docs)==null?void 0:he.source}}};var pe,fe,ge;V.parameters={...V.parameters,docs:{...(pe=V.parameters)==null?void 0:pe.docs,source:{originalSource:`{
|
|
188
|
+
args: {
|
|
189
|
+
data: {
|
|
190
|
+
name: 'Budget',
|
|
191
|
+
children: [{
|
|
192
|
+
name: 'Essentials',
|
|
193
|
+
children: [{
|
|
194
|
+
name: 'Rent',
|
|
195
|
+
size: 1500
|
|
196
|
+
}, {
|
|
197
|
+
name: 'Utilities',
|
|
198
|
+
size: 200
|
|
199
|
+
}, {
|
|
200
|
+
name: 'Insurance',
|
|
201
|
+
size: 300
|
|
202
|
+
}, {
|
|
203
|
+
name: 'Groceries',
|
|
204
|
+
size: 400
|
|
205
|
+
}]
|
|
206
|
+
}, {
|
|
207
|
+
name: 'Transportation',
|
|
208
|
+
children: [{
|
|
209
|
+
name: 'Car Payment',
|
|
210
|
+
size: 350
|
|
211
|
+
}, {
|
|
212
|
+
name: 'Gas',
|
|
213
|
+
size: 150
|
|
214
|
+
}, {
|
|
215
|
+
name: 'Maintenance',
|
|
216
|
+
size: 100
|
|
217
|
+
}, {
|
|
218
|
+
name: 'Public Transit',
|
|
219
|
+
size: 50
|
|
220
|
+
}]
|
|
221
|
+
}, {
|
|
222
|
+
name: 'Lifestyle',
|
|
223
|
+
children: [{
|
|
224
|
+
name: 'Dining Out',
|
|
225
|
+
size: 300
|
|
226
|
+
}, {
|
|
227
|
+
name: 'Entertainment',
|
|
228
|
+
size: 200
|
|
229
|
+
}, {
|
|
230
|
+
name: 'Shopping',
|
|
231
|
+
size: 250
|
|
232
|
+
}, {
|
|
233
|
+
name: 'Subscriptions',
|
|
234
|
+
size: 100
|
|
235
|
+
}]
|
|
236
|
+
}, {
|
|
237
|
+
name: 'Savings',
|
|
238
|
+
children: [{
|
|
239
|
+
name: 'Emergency Fund',
|
|
240
|
+
size: 500
|
|
241
|
+
}, {
|
|
242
|
+
name: 'Retirement',
|
|
243
|
+
size: 600
|
|
244
|
+
}, {
|
|
245
|
+
name: 'Investments',
|
|
246
|
+
size: 400
|
|
247
|
+
}]
|
|
248
|
+
}]
|
|
249
|
+
},
|
|
250
|
+
width: 650,
|
|
251
|
+
height: 650,
|
|
252
|
+
title: 'Monthly Budget Distribution',
|
|
253
|
+
tagColors: {
|
|
254
|
+
Essentials: '#dc2626',
|
|
255
|
+
Transportation: '#f59e0b',
|
|
256
|
+
Lifestyle: '#8b5cf6',
|
|
257
|
+
Savings: '#10b981'
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}`,...(ge=(fe=V.parameters)==null?void 0:fe.docs)==null?void 0:ge.source}}};var ye,xe,ze;F.parameters={...F.parameters,docs:{...(ye=F.parameters)==null?void 0:ye.docs,source:{originalSource:`{
|
|
261
|
+
args: {
|
|
262
|
+
data: {
|
|
263
|
+
name: 'Root',
|
|
264
|
+
children: [{
|
|
265
|
+
name: 'Category A',
|
|
266
|
+
size: 100
|
|
267
|
+
}, {
|
|
268
|
+
name: 'Category B',
|
|
269
|
+
size: 80
|
|
270
|
+
}, {
|
|
271
|
+
name: 'Category C',
|
|
272
|
+
size: 60
|
|
273
|
+
}, {
|
|
274
|
+
name: 'Category D',
|
|
275
|
+
size: 40
|
|
276
|
+
}, {
|
|
277
|
+
name: 'Category E',
|
|
278
|
+
size: 20
|
|
279
|
+
}]
|
|
280
|
+
},
|
|
281
|
+
width: 500,
|
|
282
|
+
height: 500,
|
|
283
|
+
title: 'Simple Distribution'
|
|
284
|
+
}
|
|
285
|
+
}`,...(ze=(xe=F.parameters)==null?void 0:xe.docs)==null?void 0:ze.source}}};const pn=["DailyActivities","ProjectBreakdown","BudgetBreakdown","SimpleData"];export{V as BudgetBreakdown,j as DailyActivities,L as ProjectBreakdown,F as SimpleData,pn as __namedExportsOrder,hn as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as a}from"./iframe-
|
|
1
|
+
import{r as d,j as a}from"./iframe-ClorXKAj.js";import{L as de,m as aa}from"./proxy-3BlM6Jc4.js";import{u as na,f as ta}from"./MotionConfigContext-BOce3hkw.js";import{A as sa}from"./index-CezVs6bU.js";import"./preload-helper-C1FmrZbK.js";const ra=s=>!s.isLayoutDirty&&s.willUpdate(!1);function ue(){const s=new Set,c=new WeakMap,p=()=>s.forEach(ra);return{add:i=>{s.add(i),c.set(i,i.addEventListener("willUpdate",p))},remove:i=>{s.delete(i);const h=c.get(i);h&&(h(),c.delete(i)),p()},dirty:p}}const oa=d.createContext(null);function la(){const s=d.useRef(!1);return na(()=>(s.current=!0,()=>{s.current=!1}),[]),s}function ca(){const s=la(),[c,p]=d.useState(0),i=d.useCallback(()=>{s.current&&p(c+1)},[c]);return[d.useCallback(()=>ta.postRender(i),[i]),c]}const Pe=s=>s===!0,ia=s=>Pe(s===!0)||s==="id",da=({children:s,id:c,inherit:p=!0})=>{const i=d.useContext(de),h=d.useContext(oa),[$,j]=ca(),u=d.useRef(null),b=i.id||h;u.current===null&&(ia(p)&&b&&(c=c?b+"-"+c:b),u.current={id:c,group:Pe(p)&&i.group||ue()});const y=d.useMemo(()=>({...u.current,forceRender:$}),[j]);return a.jsx(de.Provider,{value:y,children:s})},ua="_container_1cd0m_1",ma="_header_1cd0m_15",pa="_title_1cd0m_23",ha="_actions_1cd0m_31",ga="_controls_1cd0m_37",ba="_searchBox_1cd0m_45",fa="_searchIcon_1cd0m_52",xa="_searchInput_1cd0m_59",_a="_clearButton_1cd0m_76",ya="_clearFiltersButton_1cd0m_93",ka="_resultCount_1cd0m_109",va="_loading_1cd0m_117",Ca="_spinner_1cd0m_126",Sa="_empty_1cd0m_141",ja="_emptyIcon_1cd0m_147",wa="_tableWrapper_1cd0m_160",Na="_stickyHeader_1cd0m_167",Ta="_table_1cd0m_160",$a="_striped_1cd0m_189",za="_compact_1cd0m_193",Da="_th_1cd0m_193",Ia="_td_1cd0m_194",Aa="_hoverable_1cd0m_198",Ma="_headerCell_1cd0m_213",Ea="_headerText_1cd0m_220",La="_sortButton_1cd0m_225",Pa="_sortIcon_1cd0m_244",Wa="_columnFilter_1cd0m_261",Ra="_tr_1cd0m_279",qa="_selected_1cd0m_285",Ba="_clickable_1cd0m_290",Va="_checkboxColumn_1cd0m_315",Ua="_actionsColumn_1cd0m_326",Fa="_actionButtons_1cd0m_338",Oa="_actionButton_1cd0m_338",Ha="_actionButtonPrimary_1cd0m_438",Ga="_actionButtonSecondary_1cd0m_459",Ja="_actionButtonDanger_1cd0m_478",Qa="_actionButtonWarning_1cd0m_500",Ka="_actionButtonSuccess_1cd0m_522",Xa="_checkbox_1cd0m_315",Ya="_nullValue_1cd0m_552",Za="_badge_1cd0m_558",en="_badgeSuccess_1cd0m_569",an="_badgeDanger_1cd0m_574",nn="_code_1cd0m_579",tn="_pagination_1cd0m_593",sn="_pageInfo_1cd0m_602",rn="_pageControls_1cd0m_608",on="_pageButton_1cd0m_614",ln="_pageNumber_1cd0m_639",cn="_pageSizeSelect_1cd0m_646",dn="_bulkActions_1cd0m_675",un="_bulkActionButtons_1cd0m_740",mn="_bulkActionButton_1cd0m_740",pn="_selectionCount_1cd0m_817",hn="_bulkPrimary_1cd0m_828",gn="_bulkSecondary_1cd0m_844",bn="_bulkDanger_1cd0m_861",fn="_bulkWarning_1cd0m_871",xn="_bulkSuccess_1cd0m_881",_n="_bulkCustom_1cd0m_891",yn="_horizontalScroll_1cd0m_901",n={container:ua,header:ma,title:pa,actions:ha,controls:ga,searchBox:ba,searchIcon:fa,searchInput:xa,clearButton:_a,clearFiltersButton:ya,resultCount:ka,loading:va,spinner:Ca,empty:Sa,emptyIcon:ja,tableWrapper:wa,stickyHeader:Na,table:Ta,striped:$a,compact:za,th:Da,td:Ia,hoverable:Aa,headerCell:Ma,headerText:Ea,sortButton:La,sortIcon:Pa,columnFilter:Wa,tr:Ra,selected:qa,clickable:Ba,checkboxColumn:Va,actionsColumn:Ua,actionButtons:Fa,actionButton:Oa,actionButtonPrimary:Ha,actionButtonSecondary:Ga,actionButtonDanger:Ja,actionButtonWarning:Qa,actionButtonSuccess:Ka,checkbox:Xa,nullValue:Ya,badge:Za,badgeSuccess:en,badgeDanger:an,code:nn,pagination:tn,pageInfo:sn,pageControls:rn,pageButton:on,pageNumber:ln,pageSizeSelect:cn,bulkActions:dn,bulkActionButtons:un,bulkActionButton:mn,selectionCount:pn,bulkPrimary:hn,bulkSecondary:gn,bulkDanger:bn,bulkWarning:fn,bulkSuccess:xn,bulkCustom:_n,horizontalScroll:yn},We=function({data:c,columns:p,keyField:i="id",title:h,searchable:$=!1,selectable:j=!1,pagination:u=!1,onRowClick:b,onSelectionChange:y,actions:P,bulkActions:D,rowActions:k,actionButtonStyles:l,emptyMessage:qe="No data available",loading:Be=!1,striped:Ve=!1,hoverable:Ue=!0,compact:Fe=!1,stickyHeader:Oe=!1,animated:He=!0,horizontalScroll:Ge=!1,className:H=""}){const[g,Q]=d.useState(new Set),[w,G]=d.useState(""),[I,K]=d.useState({}),[f,X]=d.useState({key:null,direction:"asc"}),[x,v]=d.useState(1),[C,Je]=d.useState(typeof u=="object"&&u.pageSize?u.pageSize:10),Qe=d.useMemo(()=>typeof u=="object"&&u.pageSizeOptions?u.pageSizeOptions:[10,25,50,100],[u]),Y=d.useMemo(()=>p.map(e=>e.key),[p]),A=d.useMemo(()=>{if(!w&&Object.keys(I).length===0)return c;let e=c;if($&&w){const r=w.toLowerCase();e=e.filter(t=>Y.some(o=>{const m=t[o];return m!=null&&String(m).toLowerCase().includes(r)}))}for(const[r,t]of Object.entries(I))if(t){const o=t.toLowerCase();e=e.filter(m=>{const N=m[r];return N!=null&&String(N).toLowerCase().includes(o)})}return e},[c,Y,w,I,$]),S=d.useMemo(()=>f.key?[...A].sort((e,r)=>{const t=e[f.key],o=r[f.key];if(t==null)return 1;if(o==null)return-1;let m=0;return typeof t=="number"&&typeof o=="number"?m=t-o:t instanceof Date&&o instanceof Date?m=t.getTime()-o.getTime():m=String(t).localeCompare(String(o)),f.direction==="asc"?m:-m}):A,[A,f]),M=d.useMemo(()=>{if(!u)return S;const e=(x-1)*C,r=e+C;return S.slice(e,r)},[S,u,x,C]),z=d.useMemo(()=>u?Math.ceil(S.length/C):1,[S,C,u]),Ke=d.useCallback(e=>{X(r=>r.key!==e?{key:e,direction:"asc"}:r.direction==="asc"?{key:e,direction:"desc"}:{key:null,direction:"asc"})},[]),Xe=d.useCallback(()=>{const e=M.map(o=>o[i]),r=e.every(o=>g.has(o)),t=new Set(g);if(r?e.forEach(o=>t.delete(o)):e.forEach(o=>t.add(o)),Q(t),y){const o=c.filter(m=>t.has(m[i]));y(o)}},[M,g,i,c,y]),Z=d.useCallback(e=>{const r=new Set(g);if(r.has(e)?r.delete(e):r.add(e),Q(r),y){const t=c.filter(o=>r.has(o[i]));y(t)}},[g,c,i,y]),Ye=d.useCallback((e,r)=>{K(t=>({...t,[e]:r})),v(1)},[]),Ze=d.useCallback(()=>{G(""),K({}),X({key:null,direction:"asc"}),v(1)},[]),ee=w||Object.values(I).some(e=>e),J=M.map(e=>e[i]),ae=j&&J.length>0&&J.every(e=>g.has(e)),ea=j&&J.some(e=>g.has(e)),_=d.useMemo(()=>c.filter(e=>g.has(e[i])),[c,g,i]),ne=d.useCallback(e=>{var m,N,E,se,re,oe,le,ce,ie;const r=(l==null?void 0:l.size)||36,t=((m=e.buttonStyles)==null?void 0:m.size)||r,o={width:t,height:t,borderRadius:((N=e.buttonStyles)==null?void 0:N.borderRadius)||(l==null?void 0:l.borderRadius)||"50%",fontSize:((E=e.buttonStyles)==null?void 0:E.fontSize)||(l==null?void 0:l.fontSize),padding:((se=e.buttonStyles)==null?void 0:se.padding)||(l==null?void 0:l.padding),...l==null?void 0:l.style,...e.style,...(re=e.buttonStyles)==null?void 0:re.style};return((oe=e.buttonStyles)!=null&&oe.iconSize||l!=null&&l.iconSize)&&(o["--icon-size"]=typeof(((le=e.buttonStyles)==null?void 0:le.iconSize)||(l==null?void 0:l.iconSize))=="number"?`${((ce=e.buttonStyles)==null?void 0:ce.iconSize)||(l==null?void 0:l.iconSize)}px`:((ie=e.buttonStyles)==null?void 0:ie.iconSize)||(l==null?void 0:l.iconSize)),o},[l]),te=d.useCallback(e=>{var E;const r=n.actionButton,t=e.variant==="primary"?n.actionButtonPrimary:e.variant==="danger"?n.actionButtonDanger:e.variant==="warning"?n.actionButtonWarning:e.variant==="success"?n.actionButtonSuccess:e.variant==="custom"?"":n.actionButtonSecondary,o=(l==null?void 0:l.className)||"",m=e.className||"",N=((E=e.buttonStyles)==null?void 0:E.className)||"";return`${r} ${t} ${o} ${m} ${N}`.trim()},[l]);return Be?a.jsx("div",{className:`${n.container} ${H}`,children:a.jsxs("div",{className:n.loading,children:[a.jsx("div",{className:n.spinner}),a.jsx("span",{children:"Loading..."})]})}):c.length===0?a.jsxs("div",{className:`${n.container} ${H}`,children:[h&&a.jsx("h2",{className:n.title,children:h}),a.jsxs("div",{className:n.empty,children:[a.jsx("span",{className:n.emptyIcon,children:"📊"}),a.jsx("p",{children:qe})]})]}):a.jsxs("div",{className:`${n.container} ${H}`,children:[(h||P||D)&&a.jsxs("div",{className:n.header,children:[h&&a.jsx("h2",{className:n.title,children:h}),(P||D)&&a.jsxs("div",{className:n.bulkActions,children:[P&&_.length>0&&a.jsx("div",{className:n.actions,children:P(_)}),D&&D.length>0&&_.length>0&&a.jsx("div",{className:n.bulkActionButtons,children:D.map((e,r)=>{const t=e.disabled&&e.disabled(_)||e.minSelection&&_.length<e.minSelection||e.maxSelection&&_.length>e.maxSelection;return a.jsxs("button",{className:`${n.bulkActionButton} ${e.variant==="primary"?n.bulkPrimary:e.variant==="secondary"?n.bulkSecondary:e.variant==="danger"?n.bulkDanger:e.variant==="warning"?n.bulkWarning:e.variant==="success"?n.bulkSuccess:e.variant==="custom"?n.bulkCustom:n.bulkPrimary} ${e.className||""}`,style:e.style,disabled:!!t,onClick:async()=>{if(e.confirmMessage){const o=typeof e.confirmMessage=="function"?e.confirmMessage(_):e.confirmMessage;if(!confirm(o))return}await e.onClick(_)},title:e.label,"aria-label":e.label,children:[e.icon,a.jsx("span",{children:e.label}),a.jsxs("span",{className:n.selectionCount,children:["(",_.length,")"]})]},r)})})]})]}),($||ee)&&a.jsxs("div",{className:n.controls,children:[$&&a.jsxs("div",{className:n.searchBox,children:[a.jsx("span",{className:n.searchIcon,children:"🔍"}),a.jsx("input",{type:"text",placeholder:"Search...",value:w,onChange:e=>{G(e.target.value),v(1)},className:n.searchInput}),w&&a.jsx("button",{className:n.clearButton,onClick:()=>G(""),children:"✕"})]}),ee&&a.jsx("button",{className:n.clearFiltersButton,onClick:Ze,children:"Clear All Filters"}),a.jsxs("div",{className:n.resultCount,children:[A.length," ",A.length===1?"result":"results"]})]}),a.jsx("div",{className:`${n.tableWrapper} ${Oe?n.stickyHeader:""} ${Ge?n.horizontalScroll:""}`,children:a.jsxs("table",{className:`
|
|
2
2
|
${n.table}
|
|
3
3
|
${Ve?n.striped:""}
|
|
4
4
|
${Ue?n.hoverable:""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,R as u,r as k}from"./iframe-
|
|
1
|
+
import{j as e,R as u,r as k}from"./iframe-ClorXKAj.js";import{c as n}from"./createLucideIcon-B-jPBnP1.js";import{m}from"./proxy-3BlM6Jc4.js";import{F as N}from"./folder-B0kHgyRN.js";import{S}from"./settings-BzEV0s0L.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BOce3hkw.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 c,j as _}from"./iframe-
|
|
1
|
+
import{r as c,j as _}from"./iframe-ClorXKAj.js";import{g as e}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const l={"target-cursor-wrapper":"_target-cursor-wrapper_11z20_1","target-cursor-dot":"_target-cursor-dot_11z20_13","target-cursor-corner":"_target-cursor-corner_11z20_25","corner-tl":"_corner-tl_11z20_35","corner-tr":"_corner-tr_11z20_41","corner-br":"_corner-br_11z20_47","corner-bl":"_corner-bl_11z20_53"},Q=({targetSelector:$=".cursor-target",spinDuration:x=2,hideDefaultCursor:Y=!0,hoverDuration:q=.2,parallaxOn:D=!0})=>{const r=c.useRef(null),p=c.useRef(null),o=c.useRef(null),b=c.useRef(null),j=c.useRef(!1),d=c.useRef(null),R=c.useRef(null),C=c.useRef(0),E=c.useMemo(()=>{if(typeof window>"u")return!1;const T="ontouchstart"in window||navigator.maxTouchPoints>0,g=window.innerWidth<=768,s=navigator.userAgent||navigator.vendor||window.opera,w=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(s.toLowerCase());return T&&g||w},[]),H=c.useMemo(()=>({borderWidth:3,cornerSize:12}),[]),M=c.useCallback((T,g)=>{r.current&&e.to(r.current,{x:T,y:g,duration:.1,ease:"power3.out"})},[]);return c.useEffect(()=>{if(E||!r.current)return;const T=document.body.style.cursor;Y&&(document.body.style.cursor="none");const g=r.current;p.current=g.querySelectorAll(".target-cursor-corner");let s=null,v=null,w=null;const O=t=>{v&&t.removeEventListener("mouseleave",v),v=null};e.set(g,{xPercent:-50,yPercent:-50,x:window.innerWidth/2,y:window.innerHeight/2}),(()=>{o.current&&o.current.kill(),o.current=e.timeline({repeat:-1}).to(g,{rotation:"+=360",duration:x,ease:"none"})})();const Z=()=>{if(!d.current||!r.current||!p.current)return;const t=C.current;if(t===0)return;const S=e.getProperty(r.current,"x"),f=e.getProperty(r.current,"y");Array.from(p.current).forEach((i,k)=>{const u=e.getProperty(i,"x"),a=e.getProperty(i,"y"),h=d.current[k].x-S,N=d.current[k].y-f,X=u+(h-u)*t,z=a+(N-a)*t,L=t>=.99?D?.2:0:.05;e.to(i,{x:X,y:z,duration:L,ease:L===0?"none":"power1.out",overwrite:"auto"})})};R.current=Z;const V=t=>M(t.clientX,t.clientY);window.addEventListener("mousemove",V);const W=()=>{if(!s||!r.current)return;const t=e.getProperty(r.current,"x"),S=e.getProperty(r.current,"y"),f=document.elementFromPoint(t,S);f&&(f===s||f.closest($)===s)||v&&v()};window.addEventListener("scroll",W,{passive:!0});const F=()=>{b.current&&(e.to(b.current,{scale:.7,duration:.3}),e.to(r.current,{scale:.9,duration:.2}))},U=()=>{b.current&&(e.to(b.current,{scale:1,duration:.3}),e.to(r.current,{scale:1,duration:.2}))};window.addEventListener("mousedown",F),window.addEventListener("mouseup",U);const B=t=>{var L;const S=t.target,f=[];let m=S;for(;m&&m!==document.body;)m.matches($)&&f.push(m),m=m.parentElement;const i=f[0]||null;if(!i||!r.current||!p.current||s===i)return;s&&O(s),w&&(clearTimeout(w),w=null),s=i;const k=Array.from(p.current);k.forEach(y=>e.killTweensOf(y)),e.killTweensOf(r.current,"rotation"),(L=o.current)==null||L.pause(),e.set(r.current,{rotation:0});const u=i.getBoundingClientRect(),{borderWidth:a,cornerSize:h}=H,N=e.getProperty(r.current,"x"),X=e.getProperty(r.current,"y");d.current=[{x:u.left-a,y:u.top-a},{x:u.right+a-h,y:u.top-a},{x:u.right+a-h,y:u.bottom+a-h},{x:u.left-a,y:u.bottom+a-h}],j.current=!0,e.ticker.add(R.current),e.to(C,{current:1,duration:q,ease:"power2.out"}),k.forEach((y,n)=>{e.to(y,{x:d.current[n].x-N,y:d.current[n].y-X,duration:.2,ease:"power2.out"})});const z=()=>{if(e.ticker.remove(R.current),j.current=!1,d.current=null,e.set(C,{current:0,overwrite:!0}),s=null,p.current){const y=Array.from(p.current);e.killTweensOf(y);const{cornerSize:n}=H,P=[{x:-n*1.5,y:-n*1.5},{x:n*.5,y:-n*1.5},{x:n*.5,y:n*.5},{x:-n*1.5,y:n*.5}],ee=e.timeline();y.forEach((re,I)=>{ee.to(re,{x:P[I].x,y:P[I].y,duration:.3,ease:"power3.out"},0)})}w=setTimeout(()=>{if(!s&&r.current&&o.current){const n=e.getProperty(r.current,"rotation")%360;o.current.kill(),o.current=e.timeline({repeat:-1}).to(r.current,{rotation:"+=360",duration:x,ease:"none"}),e.to(r.current,{rotation:n+360,duration:x*(1-n/360),ease:"none",onComplete:()=>{var P;(P=o.current)==null||P.restart()}})}w=null},50),O(i)};v=z,i.addEventListener("mouseleave",z)};return window.addEventListener("mouseover",B,{passive:!0}),()=>{var t;R.current&&e.ticker.remove(R.current),window.removeEventListener("mousemove",V),window.removeEventListener("mouseover",B),window.removeEventListener("scroll",W),window.removeEventListener("mousedown",F),window.removeEventListener("mouseup",U),s&&O(s),(t=o.current)==null||t.kill(),document.body.style.cursor=T,j.current=!1,d.current=null,C.current=0}},[$,x,M,H,Y,E,q,D]),c.useEffect(()=>{E||!r.current||!o.current||o.current.isActive()&&(o.current.kill(),o.current=e.timeline({repeat:-1}).to(r.current,{rotation:"+=360",duration:x,ease:"none"}))},[x,E]),E?null:_.jsxs("div",{ref:r,className:`${l["target-cursor-wrapper"]}`,children:[_.jsx("div",{ref:b,className:`${l["target-cursor-dot"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-tl"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-tr"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-br"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-bl"]}`})]})};Q.__docgenInfo={description:"",methods:[],displayName:"TargetCursor",props:{targetSelector:{defaultValue:{value:"'.cursor-target'",computed:!1},required:!1},spinDuration:{defaultValue:{value:"2",computed:!1},required:!1},hideDefaultCursor:{defaultValue:{value:"true",computed:!1},required:!1},hoverDuration:{defaultValue:{value:"0.2",computed:!1},required:!1},parallaxOn:{defaultValue:{value:"true",computed:!1},required:!1}}};const ce={title:"ReactBits/Animations/TargetCursor",component:Q,parameters:{layout:"fullscreen"}},A={args:{targetSelector:".cursor-target",spinDuration:2,hideDefaultCursor:!0,hoverDuration:.2,parallaxOn:!0}};var G,J,K;A.parameters={...A.parameters,docs:{...(G=A.parameters)==null?void 0:G.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
targetSelector: '.cursor-target',
|
|
4
4
|
spinDuration: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./iframe-
|
|
1
|
+
import{j as t}from"./iframe-ClorXKAj.js";const v="_textareaContainer_1p1q8_1",b="_compact_1p1q8_6",j="_textareaLabel_1p1q8_10",I="_requiredIndicator_1p1q8_25",L="_textareaInput_1p1q8_31",V="_characterCount_1p1q8_90",N="_nearLimit_1p1q8_115",M="_atLimit_1p1q8_124",T="_error_1p1q8_180",w="_success_1p1q8_205",A="_loading_1p1q8_232",y="_focusMode_1p1q8_249",a={textareaContainer:v,compact:b,textareaLabel:j,requiredIndicator:I,textareaInput:L,characterCount:V,nearLimit:N,atLimit:M,error:T,success:w,loading:A,focusMode:y};function B({label:n,value:r,onChange:p,rows:f=5,placeholder:m="",required:o=!1,maxLength:s,disabled:h=!1,error:i=!1,success:_=!1,loading:l=!1,focusMode:x=!1,compact:q=!1,className:c=""}){const u=`textarea-${Math.random().toString(36).substr(2,9)}`,g=()=>{const e=[a.textareaContainer];return i&&e.push(a.error),_&&e.push(a.success),l&&e.push(a.loading),x&&e.push(a.focusMode),q&&e.push(a.compact),c&&e.push(c),e.join(" ")},C=()=>{if(!s)return a.characterCount;const e=[a.characterCount],d=r.length/s*100;return d>=100?e.push(a.atLimit):d>=80&&e.push(a.nearLimit),e.join(" ")};return t.jsxs("div",{className:g(),children:[n&&t.jsxs("label",{htmlFor:u,className:a.textareaLabel,children:[n,o&&t.jsx("span",{className:a.requiredIndicator,children:"*"})]}),t.jsx("textarea",{id:u,value:r,onChange:e=>p(e.target.value),rows:f,placeholder:m,maxLength:s,className:a.textareaInput,"aria-required":o,disabled:h||l,"aria-invalid":i}),s&&t.jsxs("div",{className:C(),children:[t.jsx("span",{children:r.length}),t.jsx("span",{style:{opacity:.7},children:" / "}),t.jsx("span",{children:s})]})]})}B.__docgenInfo={description:`TextArea component - Multi-line text input with character counting
|
|
2
2
|
|
|
3
3
|
@component
|
|
4
4
|
@description
|
package/storybook-static/assets/{TextArea.stories-5-dHoUPL.js → TextArea.stories-udebbAVJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,j as e}from"./iframe-
|
|
1
|
+
import{r as p,j as e}from"./iframe-ClorXKAj.js";import{T as m}from"./TextArea-DBXLzMeZ.js";import"./preload-helper-C1FmrZbK.js";const R={title:"Atoms/TextArea",component:m,parameters:{layout:"centered",docs:{description:{component:"A multiline text input component with character counter support and compact mode for arrays."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},rows:{control:"number"},maxLength:{control:"number"},required:{control:"boolean"},compact:{control:"boolean"},onChange:{action:"changed"}}},s={args:{label:"Description",value:"",placeholder:"Enter your description here...",rows:4,onChange:()=>{}}},l={args:{label:"Bio",value:"Software developer passionate about creating great user experiences.",placeholder:"Tell us about yourself...",rows:4,maxLength:200,onChange:()=>{}}},i={args:{label:"Comparison",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(""),[d,n]=p.useState("");return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",width:"400px"},children:[e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Regular TextArea"}),e.jsx(m,{label:"Description",value:r,onChange:a,placeholder:"Regular size textarea...",rows:4,maxLength:200})]}),e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Compact TextArea"}),e.jsx(m,{label:"Description",value:d,onChange:n,placeholder:"Compact size textarea...",rows:4,maxLength:200,compact:!0})]})]})},parameters:{controls:{disable:!0}}},c={args:{label:"Array Demo",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(["First item with some text",""]),d=(n,t)=>{const o=[...r];o[n]=t,a(o)};return e.jsxs("div",{style:{width:"400px"},children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"TextArea in Array Context (Compact Mode)"}),e.jsxs("div",{style:{background:"var(--color-background-secondary)",padding:"1rem",borderRadius:"var(--radius-md)"},children:[r.map((n,t)=>e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.5rem",marginBottom:t<r.length-1?"1rem":"0"},children:[e.jsx(m,{label:"",value:n,onChange:o=>d(t,o),placeholder:`Item ${t+1}...`,rows:2,compact:!0}),e.jsx("button",{onClick:()=>a(r.filter((o,I)=>I!==t)),style:{background:"var(--color-danger)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"4px 8px",cursor:"pointer",fontSize:"12px",marginTop:"2px"},children:"x"})]},t)),e.jsx("button",{onClick:()=>a([...r,""]),style:{background:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"8px 16px",cursor:"pointer",fontSize:"14px",marginTop:"1rem"},children:"+ Add Item"})]})]})},parameters:{controls:{disable:!0}}};var u,x,g;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Description',
|
|
4
4
|
value: '',
|
package/storybook-static/assets/{TextCursor.stories-O-EIx7Nu.js → TextCursor.stories-BUDlvRvw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,j as c}from"./iframe-
|
|
1
|
+
import{r as a,j as c}from"./iframe-ClorXKAj.js";import{A as B}from"./index-CezVs6bU.js";import{m as L}from"./proxy-3BlM6Jc4.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BOce3hkw.js";const p={"text-cursor-container":"_text-cursor-container_uryua_1","text-cursor-inner":"_text-cursor-inner_uryua_7","text-cursor-item":"_text-cursor-item_uryua_16"},E=({text:V="⚛️",spacing:d=100,followMouseDirection:j=!0,randomFloat:n=!0,exitDuration:A=.5,removalInterval:x=30,maxPoints:y=5})=>{const[C,v]=a.useState([]),o=a.useRef(null),g=a.useRef(Date.now()),h=a.useRef(0),M=e=>{if(!o.current)return;const r=o.current.getBoundingClientRect(),_=e.clientX-r.left,D=e.clientY-r.top,I=()=>n?{randomX:Math.random()*10-5,randomY:Math.random()*10-5,randomRotate:Math.random()*10-5}:{};v(O=>{const t=[...O];if(t.length===0)t.push({id:h.current++,x:_,y:D,angle:0,...I()});else{const s=t[t.length-1],u=_-s.x,l=D-s.y,f=Math.sqrt(u*u+l*l);if(f>=d){let X=Math.atan2(l,u)*180/Math.PI;const Y=j?X:0,N=Math.floor(f/d);for(let m=1;m<=N;m++){const R=d*m/f,P=s.x+u*R,$=s.y+l*R;t.push({id:h.current++,x:P,y:$,angle:Y,...I()})}}}return t.length>y?t.slice(t.length-y):t}),g.current=Date.now()};return a.useEffect(()=>{const e=o.current;if(e)return e.addEventListener("mousemove",M),()=>e.removeEventListener("mousemove",M)},[]),a.useEffect(()=>{const e=setInterval(()=>{Date.now()-g.current>100&&v(r=>r.length>0?r.slice(1):r)},x);return()=>clearInterval(e)},[x]),c.jsx("div",{ref:o,className:`${p["text-cursor-container"]}`,children:c.jsx("div",{className:`${p["text-cursor-inner"]}`,children:c.jsx(B,{children:C.map(e=>c.jsx(L.div,{initial:{opacity:0,scale:1,rotate:e.angle},animate:{opacity:1,scale:1,x:n?[0,e.randomX||0,0]:0,y:n?[0,e.randomY||0,0]:0,rotate:n?[e.angle,e.angle+(e.randomRotate||0),e.angle]:e.angle},exit:{opacity:0,scale:0},transition:{opacity:{duration:A,ease:"easeOut"},...n&&{x:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},y:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},rotate:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"}}},className:`${p["text-cursor-item"]}`,style:{left:e.x,top:e.y},children:V},e.id))})})})};E.__docgenInfo={description:"",methods:[],displayName:"TextCursor",props:{text:{defaultValue:{value:"'⚛️'",computed:!1},required:!1},spacing:{defaultValue:{value:"100",computed:!1},required:!1},followMouseDirection:{defaultValue:{value:"true",computed:!1},required:!1},randomFloat:{defaultValue:{value:"true",computed:!1},required:!1},exitDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},removalInterval:{defaultValue:{value:"30",computed:!1},required:!1},maxPoints:{defaultValue:{value:"5",computed:!1},required:!1}}};const H={title:"ReactBits/TextAnimations/TextCursor",component:E,parameters:{layout:"fullscreen"}},i={args:{text:"⚛️",spacing:100,followMouseDirection:!0,randomFloat:!0,exitDuration:.5,removalInterval:30,maxPoints:5}};var w,T,q;i.parameters={...i.parameters,docs:{...(w=i.parameters)==null?void 0:w.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
text: '⚛️',
|
|
4
4
|
spacing: 100,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as f,j as a}from"./iframe-
|
|
1
|
+
import{R as f,j as a}from"./iframe-ClorXKAj.js";import{u as T}from"./useSound-BS8g02XJ.js";const V="_textInput_16mxa_1",A="_required_16mxa_82",k="_inputError_16mxa_89",M="_errorMessage_16mxa_102",R="_success_16mxa_138",S="_loading_16mxa_167",P="_withIcon_16mxa_184",$="_inputIcon_16mxa_192",B="_withAction_16mxa_209",F="_actionButton_16mxa_213",t={textInput:V,required:A,inputError:k,errorMessage:M,success:R,loading:S,withIcon:P,inputIcon:$,withAction:B,actionButton:F};function H({label:_,value:r,onChange:I,type:b="text",onBlur:v,placeholder:w,error:n,required:y,disabled:m=!1,success:g=!1,loading:o=!1,icon:c,actionButton:l,maxLength:E,autoComplete:j,soundConfig:s,enableTypingSounds:q=!1}){const i=`input-${Math.random().toString(36).substr(2,9)}`,{handlers:u,playSound:p}=T(s),h=f.useRef(r),N=()=>{const e=[t.textInput];return g&&e.push(t.success),o&&e.push(t.loading),c&&e.push(t.withIcon),l&&e.push(t.withAction),e.join(" ")};return f.useEffect(()=>{h.current=r},[r]),a.jsxs("div",{className:N(),children:[a.jsxs("label",{htmlFor:i,children:[_,y&&a.jsx("span",{className:t.required,children:"*"})]}),a.jsxs("div",{style:{position:"relative"},children:[c&&a.jsx("div",{className:t.inputIcon,children:c}),a.jsx("input",{id:i,type:b,value:r,onChange:e=>{const d=e.target.value,x=h.current;I(d),(q||s!=null&&s.onClick)&&(d.length>x.length?p("type"):d.length<x.length&&p("delete")),n&&(s!=null&&s.onError)&&p(typeof s.onError=="string"?s.onError:"error")},onBlur:v,placeholder:w,className:n?t.inputError:"","aria-invalid":!!n,"aria-describedby":n?`${i}-error`:void 0,disabled:m||o,maxLength:E,autoComplete:j}),l&&a.jsx("button",{type:"button",className:t.actionButton,onClick:()=>{var e;(e=u.onClick)==null||e.call(u),l.onClick()},disabled:m||o,children:l.label})]}),n&&a.jsx("span",{id:`${i}-error`,className:t.errorMessage,children:n})]})}H.__docgenInfo={description:`TextInput component - A versatile text input field with label and error handling
|
|
2
2
|
|
|
3
3
|
@component
|
|
4
4
|
@description
|
package/storybook-static/assets/{TextInput.stories-Bjjfu_5O.js → TextInput.stories-FtH8T5-_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,j as e}from"./iframe-
|
|
1
|
+
import{r as i,j as e}from"./iframe-ClorXKAj.js";import{T as u}from"./TextInput-Df0ECj-K.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-BS8g02XJ.js";const U={title:"Atoms/TextInput",component:u,parameters:{layout:"centered",docs:{description:{component:"A simple wrapper around Input component for text input with controlled state management."}}},argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},error:{control:"text"},type:{control:"select",options:["text","email","password","tel","url"]},required:{control:"boolean"},onChange:{action:"changed"},onBlur:{action:"blurred"}}},s={args:{label:"Name",value:"",placeholder:"Enter your name",onChange:()=>{}}},o={args:{label:"Email",value:"invalid-email",type:"email",error:"Please enter a valid email address",onChange:()=>{}}},n={args:{label:"Username",value:"",placeholder:"Enter username",required:!0,onChange:()=>{}},render:()=>{const[m,y]=i.useState(""),[t,f]=i.useState(""),[a,d]=i.useState({}),C=()=>{const r={};m||(r.username="Username is required"),t?t.length<6&&(r.password="Password must be at least 6 characters"):r.password="Password is required",d(r)};return e.jsxs("div",{style:{padding:"2rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1.5rem"},children:"Login"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[e.jsx(u,{label:"Username",value:m,onChange:r=>{y(r),a.username&&d(l=>({...l,username:void 0}))},placeholder:"Enter username",error:a.username,required:!0}),e.jsx(u,{label:"Password",type:"password",value:t,onChange:r=>{f(r),a.password&&d(l=>({...l,password:void 0}))},placeholder:"Enter password",error:a.password,required:!0}),e.jsx("button",{type:"button",onClick:C,style:{padding:"0.75rem 1rem",backgroundColor:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",marginTop:"0.5rem"},children:"Login"})]})]})},parameters:{controls:{disable:!0}}};var p,c,g;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Name',
|
|
4
4
|
value: '',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as F}from"./iframe-
|
|
1
|
+
import{r,j as F}from"./iframe-ClorXKAj.js";import"./preload-helper-C1FmrZbK.js";const J=(i,o)=>{const a=o.x-i.x,l=o.y-i.y;return Math.sqrt(a*a+l*l)},v=(i,o,a,l)=>{const h=l-Math.abs(l*i/o);return Math.max(a,h+a)},K=(i,o)=>{let a;return(...l)=>{clearTimeout(a),a=setTimeout(()=>{i.apply(void 0,l)},o)}},P=({text:i="Compressa",fontFamily:o="Compressa VF",fontUrl:a="https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:l=!0,weight:h=!0,italic:V=!0,alpha:g=!1,flex:A=!0,stroke:q=!1,scale:S=!1,textColor:x="#FFFFFF",strokeColor:k="#FF0000",className:O="",minFontSize:R=24})=>{const p=r.useRef(null),d=r.useRef(null),E=r.useRef([]),c=r.useRef({x:0,y:0}),f=r.useRef({x:0,y:0}),[X,G]=r.useState(R),[N,b]=r.useState(1),[Y,M]=r.useState(1),C=i.split("");r.useEffect(()=>{const e=t=>{f.current.x=t.clientX,f.current.y=t.clientY},u=t=>{const s=t.touches[0];f.current.x=s.clientX,f.current.y=s.clientY};if(window.addEventListener("mousemove",e),window.addEventListener("touchmove",u,{passive:!0}),p.current){const{left:t,top:s,width:n,height:m}=p.current.getBoundingClientRect();c.current.x=t+n/2,c.current.y=s+m/2,f.current.x=c.current.x,f.current.y=c.current.y}return()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",u)}},[]);const $=r.useCallback(()=>{if(!p.current||!d.current)return;const{width:e,height:u}=p.current.getBoundingClientRect();let t=e/(C.length/2);t=Math.max(t,R),G(t),b(1),M(1),requestAnimationFrame(()=>{if(!d.current)return;const s=d.current.getBoundingClientRect();if(S&&s.height>0){const n=u/s.height;b(n),M(n)}})},[C.length,R,S]);r.useEffect(()=>{const e=K($,100);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[$]),r.useEffect(()=>{let e;const u=()=>{if(c.current.x+=(f.current.x-c.current.x)/15,c.current.y+=(f.current.y-c.current.y)/15,d.current){const s=d.current.getBoundingClientRect().width/2;E.current.forEach(n=>{if(!n)return;const m=n.getBoundingClientRect(),H={x:m.x+m.width/2,y:m.y+m.height/2},w=J(c.current,H),I=l?Math.floor(v(w,s,5,200)):100,U=h?Math.floor(v(w,s,100,900)):400,W=V?v(w,s,0,1).toFixed(2):0,z=g?v(w,s,0,1).toFixed(2):1,j=`'wght' ${U}, 'wdth' ${I}, 'ital' ${W}`;n.style.fontVariationSettings!==j&&(n.style.fontVariationSettings=j),g&&n.style.opacity!==z&&(n.style.opacity=z)})}e=requestAnimationFrame(u)};return u(),()=>cancelAnimationFrame(e)},[l,h,V,g]);const _=r.useMemo(()=>F.jsx("style",{children:`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: '${o}';
|
|
4
4
|
src: url('${a}');
|
package/storybook-static/assets/{TextType.stories-DL92625c.js → TextType.stories-ClLVvVVk.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,j}from"./iframe-
|
|
1
|
+
import{r as e,j}from"./iframe-ClorXKAj.js";import{g as A}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const S={"text-type__cursor":"_text-type__cursor_i3t4x_6","text-type__cursor--hidden":"_text-type__cursor--hidden_i3t4x_12"},b=({text:o,as:k="div",typingSpeed:i=50,initialDelay:C=0,pauseDuration:x=2e3,deletingSpeed:V=30,loop:h=!0,className:w="",showCursor:y=!0,hideCursorWhileTyping:B=!1,cursorCharacter:H="|",cursorClassName:z="",cursorBlinkDuration:q=.5,textColors:g=[],variableSpeed:l,onSentenceComplete:T,startOnVisible:_=!1,reverseMode:D=!1,...F})=>{const[c,I]=e.useState(""),[n,E]=e.useState(0),[f,N]=e.useState(!1),[r,G]=e.useState(0),[R,J]=e.useState(!_),d=e.useRef(null),v=e.useRef(null),s=e.useMemo(()=>Array.isArray(o)?o:[o],[o]),K=e.useCallback(()=>{if(!l)return i;const{min:t,max:u}=l;return Math.random()*(u-t)+t},[l,i]),L=()=>g.length===0?"inherit":g[r%g.length];e.useEffect(()=>{if(!_||!v.current)return;const t=new IntersectionObserver(u=>{u.forEach(p=>{p.isIntersecting&&J(!0)})},{threshold:.1});return t.observe(v.current),()=>t.disconnect()},[_]),e.useEffect(()=>{y&&d.current&&(A.set(d.current,{opacity:1}),A.to(d.current,{opacity:0,duration:q,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[y,q]),e.useEffect(()=>{if(!R)return;let t;const u=s[r],p=D?u.split("").reverse().join(""):u,W=()=>{if(f)if(c===""){if(N(!1),r===s.length-1&&!h)return;T&&T(s[r],r),G(a=>(a+1)%s.length),E(0),t=setTimeout(()=>{},x)}else t=setTimeout(()=>{I(a=>a.slice(0,-1))},V);else if(n<p.length)t=setTimeout(()=>{I(a=>a+p[n]),E(a=>a+1)},l?K():i);else if(s.length>=1){if(!h&&r===s.length-1)return;t=setTimeout(()=>{N(!0)},x)}};return n===0&&!f&&c===""?t=setTimeout(W,C):W(),()=>clearTimeout(t)},[n,c,f,i,V,x,s,r,h,C,R,D,l,T]);const P=B&&(n<s[r].length||f);return e.createElement(k,{ref:v,className:`text-type ${w}`,...F},j.jsx("span",{className:"text-type__content",style:{color:L()||"inherit"},children:c}),y&&j.jsx("span",{ref:d,className:`${S["text-type__cursor"]} ${z} ${P?S["text-type__cursor--hidden"]:""}`,children:H}))};b.__docgenInfo={description:"",methods:[],displayName:"TextType",props:{as:{defaultValue:{value:"'div'",computed:!1},required:!1},typingSpeed:{defaultValue:{value:"50",computed:!1},required:!1},initialDelay:{defaultValue:{value:"0",computed:!1},required:!1},pauseDuration:{defaultValue:{value:"2000",computed:!1},required:!1},deletingSpeed:{defaultValue:{value:"30",computed:!1},required:!1},loop:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showCursor:{defaultValue:{value:"true",computed:!1},required:!1},hideCursorWhileTyping:{defaultValue:{value:"false",computed:!1},required:!1},cursorCharacter:{defaultValue:{value:"'|'",computed:!1},required:!1},cursorClassName:{defaultValue:{value:"''",computed:!1},required:!1},cursorBlinkDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},textColors:{defaultValue:{value:"[]",computed:!1},required:!1},startOnVisible:{defaultValue:{value:"false",computed:!1},required:!1},reverseMode:{defaultValue:{value:"false",computed:!1},required:!1}}};const Y={title:"ReactBits/TextAnimations/TextType",component:b,parameters:{layout:"fullscreen"}},m={args:{text:"Hello World",as:"div",typingSpeed:50,initialDelay:0,pauseDuration:2e3,deletingSpeed:30,loop:!0,showCursor:!0,hideCursorWhileTyping:!1,cursorCharacter:"|",cursorClassName:"",cursorBlinkDuration:.5,textColors:[],startOnVisible:!1,reverseMode:!1}};var M,O,$;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
text: 'Hello World',
|
|
4
4
|
as: 'div',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,j as e}from"./iframe-
|
|
1
|
+
import{r as g,j as e}from"./iframe-ClorXKAj.js";import{m as d}from"./proxy-3BlM6Jc4.js";import{M as j,S as _}from"./sun-C9Sm1WQX.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BOce3hkw.js";import"./createLucideIcon-B-jPBnP1.js";const E=g.createContext(void 0),R=()=>g.useContext(E)??null,O=({children:r,defaultTheme:u="light",storageKey:l="app-theme"})=>{const[m,h]=g.useState(()=>{const t=localStorage.getItem(l);return t&&["light","dark","lossito","lossito-dark","dao","dao-dark","crt"].includes(t)?t:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":u}),v=t=>{h(t),localStorage.setItem(l,t)},i=()=>{const t=["light","dark","lossito","lossito-dark","dao","dao-dark","crt"],x=(t.indexOf(m)+1)%t.length;v(t[x])};return g.useEffect(()=>{const t=document.documentElement;t.setAttribute("data-theme",m),m.includes("dark")?t.classList.add("dark"):t.classList.remove("dark")},[m]),g.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)"),c=x=>{localStorage.getItem(l)||h(x.matches?"dark":"light")};return t.addEventListener("change",c),()=>t.removeEventListener("change",c)},[l]),e.jsx(E.Provider,{value:{theme:m,setTheme:v,toggleTheme:i},children:r})};O.__docgenInfo={description:"",methods:[],displayName:"ThemeProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:"",defaultValue:{value:"'light'",computed:!1}},storageKey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'app-theme'",computed:!1}}}};const W="_button_gscjg_1",P="_iconButton_gscjg_21",z="_iconWrapper_gscjg_44",A="_label_gscjg_52",H="_toggle_gscjg_57",Q="_toggleTrack_gscjg_67",F="_toggleThumb_gscjg_77",G="_dropdown_gscjg_89",J="_dropdownTrigger_gscjg_93",U="_dropdownMenu_gscjg_111",X="_dropdownItem_gscjg_130",Y="_active_gscjg_148",Z="_icon_gscjg_21",K="_text_gscjg_168",o={button:W,iconButton:P,iconWrapper:z,label:A,toggle:H,toggleTrack:Q,toggleThumb:F,dropdown:G,dropdownTrigger:J,dropdownMenu:U,dropdownItem:X,active:Y,icon:Z,text:K},p=({variant:r="button",showLabel:u=!1,className:l="",currentTheme:m,onThemeChange:h,themes:v})=>{const i=R(),t=m??(i==null?void 0:i.theme)??"light",c=h??(i==null?void 0:i.setTheme)??(()=>{}),n=v??[{value:"light",label:"Light",icon:e.jsx(_,{})},{value:"dark",label:"Dark",icon:e.jsx(j,{})},{value:"lossito",label:"Lossito Light",icon:"✨"},{value:"lossito-dark",label:"Lossito Dark",icon:"🌑"},{value:"dao",label:"Dao Light",icon:"⬜"},{value:"dao-dark",label:"Dao Dark",icon:"⬛"}],k=n.findIndex(a=>a.value===t),s=n[k]??n[0];if(r==="toggle"){const a=t.includes("dark");return e.jsxs(d.button,{className:`${o.toggle} ${l}`,onClick:()=>c(a?"light":"dark"),whileTap:{scale:.95},"aria-label":"Toggle theme",children:[e.jsx(d.div,{className:o.toggleTrack,animate:{backgroundColor:a?"var(--color-primary)":"var(--color-border)"},children:e.jsx(d.div,{className:o.toggleThumb,animate:{x:a?24:0},transition:{type:"spring",stiffness:500,damping:30},children:a?e.jsx(j,{size:14}):e.jsx(_,{size:14})})}),u&&e.jsx("span",{className:o.label,children:a?"Dark":"Light"})]})}return r==="icon"?e.jsxs("button",{type:"button",className:`${o.iconButton} ${l}`,onClick:()=>{const a=(k+1)%n.length;c(n[a].value)},"aria-label":`Current theme: ${s.label}. Click to change.`,title:s.label,children:[s.icon,u&&e.jsx("span",{className:o.label,children:s.label})]}):r==="dropdown"?e.jsxs("div",{className:`${o.dropdown} ${l}`,children:[e.jsxs(d.button,{className:o.dropdownTrigger,whileTap:{scale:.98},children:[s.icon,u&&e.jsx("span",{className:o.label,children:s.label})]}),e.jsx(d.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},children:n.map(a=>e.jsxs(d.button,{className:`${o.dropdownItem} ${t===a.value?o.active:""}`,onClick:()=>c(a.value),whileHover:{x:4},whileTap:{scale:.98},children:[e.jsx("span",{className:o.icon,children:a.icon}),e.jsx("span",{className:o.text,children:a.label})]},a.value))})]}):e.jsxs(d.button,{className:`${o.button} ${l}`,onClick:()=>{const a=(k+1)%n.length;c(n[a].value)},whileTap:{scale:.95},whileHover:{scale:1.05},"aria-label":`Current theme: ${s.label}. Click to change.`,children:[e.jsx(d.div,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:180,opacity:0},transition:{duration:.3},className:o.iconWrapper,children:s.icon},t),u&&e.jsx("span",{className:o.label,children:s.label})]})};p.__docgenInfo={description:"",methods:[],displayName:"ThemeSwitcher",props:{variant:{required:!1,tsType:{name:"union",raw:"'button' | 'dropdown' | 'toggle' | 'icon'",elements:[{name:"literal",value:"'button'"},{name:"literal",value:"'dropdown'"},{name:"literal",value:"'toggle'"},{name:"literal",value:"'icon'"}]},description:"",defaultValue:{value:"'button'",computed:!1}},showLabel:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},currentTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:""},onThemeChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(theme: Theme) => void",signature:{arguments:[{type:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},name:"theme"}],return:{name:"void"}}},description:""},themes:{required:!1,tsType:{name:"Array",elements:[{name:"ThemeOption"}],raw:"ThemeOption[]"},description:""}}};const ee=({children:r})=>e.jsx(O,{defaultTheme:"light",children:r}),se={title:"Molecules/ThemeSwitcher",component:p,decorators:[r=>e.jsx(ee,{children:e.jsx("div",{style:{padding:"2rem"},children:e.jsx(r,{})})})],parameters:{layout:"centered"},argTypes:{variant:{control:{type:"select"},options:["button","dropdown","toggle"]},showLabel:{control:{type:"boolean"}}}},b={args:{variant:"button",showLabel:!0}},w={args:{variant:"toggle",showLabel:!0}},T={args:{variant:"dropdown",showLabel:!0}},f={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",alignItems:"center"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Button Variant"}),e.jsx(p,{variant:"button",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Toggle Variant"}),e.jsx(p,{variant:"toggle",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Dropdown Variant"}),e.jsx(p,{variant:"dropdown",showLabel:!0})]})]})};var y,L,I;b.parameters={...b.parameters,docs:{...(y=b.parameters)==null?void 0:y.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
variant: 'button',
|
|
4
4
|
showLabel: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as z}from"./iframe-
|
|
1
|
+
import{r as d,j as z}from"./iframe-ClorXKAj.js";import{R as F,P as D,M as T}from"./Mesh-CwXV3WjE.js";import{T as q}from"./Triangle-64ffRKNB.js";import{C as P}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const I={"threads-container":"_threads-container_1ao30_1"},S=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
attribute vec2 uv;
|
|
4
4
|
varying vec2 vUv;
|