@stfrigerio/sito-template 0.1.71 → 0.1.73

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.
Files changed (186) hide show
  1. package/dist/components/organisms/Calendar/Calendar.d.ts.map +1 -1
  2. package/dist/components/organisms/Navbar/Navbar.d.ts +3 -3
  3. package/dist/components/organisms/Navbar/Navbar.d.ts.map +1 -1
  4. package/dist/index.esm.js +110 -22
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.js +110 -22
  7. package/dist/index.js.map +1 -1
  8. package/dist/styles.css +1 -1
  9. package/dist/styles.css.map +1 -1
  10. package/package.json +1 -1
  11. package/storybook-static/assets/{ASCIIText.stories-CwjgEuJ9.js → ASCIIText.stories-yWdkeCFw.js} +1 -1
  12. package/storybook-static/assets/{AllAtoms.stories-Bpi44HYZ.js → AllAtoms.stories-D4-SQUuu.js} +1 -1
  13. package/storybook-static/assets/{AnimatedContent.stories-1u-UFi17.js → AnimatedContent.stories-DSYIR5wN.js} +1 -1
  14. package/storybook-static/assets/{AnimatedList.stories-mVUmPCqf.js → AnimatedList.stories-T24AuVkv.js} +1 -1
  15. package/storybook-static/assets/{Antigravity.stories-C9HwWmUN.js → Antigravity.stories-DzTXGWmi.js} +1 -1
  16. package/storybook-static/assets/{ArrayInput.stories-CzRUNpFC.js → ArrayInput.stories-eKRDos-X.js} +1 -1
  17. package/storybook-static/assets/{Aurora.stories-CZ6tOyDw.js → Aurora.stories-BPsqLAWZ.js} +1 -1
  18. package/storybook-static/assets/{Beams.stories-DUSSkxn2.js → Beams.stories-BENy-_Vw.js} +1 -1
  19. package/storybook-static/assets/{BlobCursor.stories-B3Czye_F.js → BlobCursor.stories-DIZuQWFz.js} +1 -1
  20. package/storybook-static/assets/{BlurText.stories-zTCdk18T.js → BlurText.stories-Dlg4TOUG.js} +1 -1
  21. package/storybook-static/assets/{BooleansHeatmap.stories-BnWEPNxI.js → BooleansHeatmap.stories-ByVDEzqb.js} +1 -1
  22. package/storybook-static/assets/{BorderGlow.stories-BmubU4F3.js → BorderGlow.stories-K5M4QBQS.js} +1 -1
  23. package/storybook-static/assets/{BubbleMenu.stories-B04jjIcf.js → BubbleMenu.stories-Bq-yo3V9.js} +1 -1
  24. package/storybook-static/assets/{Button-wfSXrxMx.js → Button-DQla6H3P.js} +1 -1
  25. package/storybook-static/assets/{Button.stories-DQQco2EQ.js → Button.stories-Cwm1uSEe.js} +1 -1
  26. package/storybook-static/assets/Calendar-Dk5RRsIK.css +1 -0
  27. package/storybook-static/assets/Calendar.stories-D6ud0VBm.js +367 -0
  28. package/storybook-static/assets/{Card-HMstO9S4.js → Card-D2W3wjZy.js} +1 -1
  29. package/storybook-static/assets/{Card.stories-BBmi_0dh.js → Card.stories-CN0Pj86n.js} +1 -1
  30. package/storybook-static/assets/{CardNav.stories-CGO2YKaJ.js → CardNav.stories-DkSfKCJm.js} +1 -1
  31. package/storybook-static/assets/{Carousel.stories-BEpnw6MT.js → Carousel.stories-CVfRELzK.js} +1 -1
  32. package/storybook-static/assets/{Checkbox-rs6CCDd2.js → Checkbox-BEMCpJLS.js} +1 -1
  33. package/storybook-static/assets/{Checkbox.stories-1Mc2aGyk.js → Checkbox.stories-DGfYhJ6B.js} +1 -1
  34. package/storybook-static/assets/{ChromaGrid.stories-5FjIXfBn.js → ChromaGrid.stories-Xh0Hxk6c.js} +1 -1
  35. package/storybook-static/assets/{CircularGallery.stories-Cdl8_A0h.js → CircularGallery.stories-B_tKlhmW.js} +1 -1
  36. package/storybook-static/assets/{CircularText.stories-DEk-mBMO.js → CircularText.stories-CIdtjRj7.js} +1 -1
  37. package/storybook-static/assets/{ClickSpark.stories-iH0P_EV-.js → ClickSpark.stories-DK3dh5eA.js} +1 -1
  38. package/storybook-static/assets/{ColorBends.stories-Cg44QQwN.js → ColorBends.stories-QHDx5sTz.js} +1 -1
  39. package/storybook-static/assets/{CountUp.stories-CG5OXs9u.js → CountUp.stories-D378Y8W_.js} +1 -1
  40. package/storybook-static/assets/{Counter.stories-1O7sZDnW.js → Counter.stories-Dk5Bv8Ct.js} +1 -1
  41. package/storybook-static/assets/{Crosshair.stories-tBs2EYfR.js → Crosshair.stories-MUN171O-.js} +1 -1
  42. package/storybook-static/assets/{Cubes.stories-DbIJO8oV.js → Cubes.stories-CviQtL5y.js} +1 -1
  43. package/storybook-static/assets/{CurvedLoop.stories-u03ebWkS.js → CurvedLoop.stories-C36zkO4M.js} +1 -1
  44. package/storybook-static/assets/{DarkVeil.stories-CAAtsFI_.js → DarkVeil.stories-C29cMn-f.js} +1 -1
  45. package/storybook-static/assets/{DateInput-Dgzr5qdd.js → DateInput-Drx-2LV9.js} +1 -1
  46. package/storybook-static/assets/{DateInput.stories-BHCR5Xz2.js → DateInput.stories-CLKAciVQ.js} +1 -1
  47. package/storybook-static/assets/{DecayCard.stories-DpjieBuP.js → DecayCard.stories-Bd5Ps1i9.js} +1 -1
  48. package/storybook-static/assets/{DecryptedText.stories-BAeQcHOZ.js → DecryptedText.stories-Ch69Dvsk.js} +1 -1
  49. package/storybook-static/assets/{Dither.stories-DsPwfT6w.js → Dither.stories-B3capSS0.js} +1 -1
  50. package/storybook-static/assets/{Dock.stories-OLc2U4Pk.js → Dock.stories-DBCaOR4C.js} +1 -1
  51. package/storybook-static/assets/{EditFAB.stories-Bu2i-7vg.js → EditFAB.stories-C1xqWa6A.js} +1 -1
  52. package/storybook-static/assets/{EvilEye.stories-COGE55Ue.js → EvilEye.stories-AVy76OJG.js} +1 -1
  53. package/storybook-static/assets/{FadeContent.stories-0x4yHbgt.js → FadeContent.stories-CPAlDBs2.js} +1 -1
  54. package/storybook-static/assets/{FaultyTerminal.stories-DUwLvxvp.js → FaultyTerminal.stories-CB1Njw7i.js} +1 -1
  55. package/storybook-static/assets/{Fbo-Dk75jk9m.js → Fbo-C0SB2kdr.js} +1 -1
  56. package/storybook-static/assets/{FloatingLines.stories-CrEOCrVc.js → FloatingLines.stories-D-LG1m2I.js} +1 -1
  57. package/storybook-static/assets/{FlowingMenu.stories-Bu7zY6aB.js → FlowingMenu.stories-BG1HFESz.js} +1 -1
  58. package/storybook-static/assets/{FluidGlass.stories-8jDsRsqD.js → FluidGlass.stories-CXIPm5cg.js} +1 -1
  59. package/storybook-static/assets/{Folder.stories-DWG4wwet.js → Folder.stories-DB3U5hwH.js} +1 -1
  60. package/storybook-static/assets/{FuzzyText.stories-CetTWIj7.js → FuzzyText.stories-vPc5htX9.js} +1 -1
  61. package/storybook-static/assets/{Galaxy.stories-DAUpNReC.js → Galaxy.stories-DcKUuMT9.js} +1 -1
  62. package/storybook-static/assets/{GhostCursor.stories-CUdsrtdF.js → GhostCursor.stories-Duc7utXe.js} +1 -1
  63. package/storybook-static/assets/{GlareHover.stories-De-n7zae.js → GlareHover.stories-Dl0knsPD.js} +1 -1
  64. package/storybook-static/assets/{GlassSurface.stories-DUNqzwbj.js → GlassSurface.stories-BHaCO3AU.js} +1 -1
  65. package/storybook-static/assets/{GlitchText.stories-CFzxhfho.js → GlitchText.stories-B9fHTPEu.js} +1 -1
  66. package/storybook-static/assets/{GooeyNav.stories-BJuZ0PKJ.js → GooeyNav.stories-B4Hl3OTw.js} +1 -1
  67. package/storybook-static/assets/{GradientBlinds.stories-Byla9NI-.js → GradientBlinds.stories-Damik9Et.js} +1 -1
  68. package/storybook-static/assets/{GradientText.stories-DRV-F3rp.js → GradientText.stories-DVB5Ndfl.js} +1 -1
  69. package/storybook-static/assets/{Grainient.stories-A3xVF0CI.js → Grainient.stories-q7QyYCRC.js} +1 -1
  70. package/storybook-static/assets/{GridMotion.stories-k5rGv9Ew.js → GridMotion.stories-BR97TB5W.js} +1 -1
  71. package/storybook-static/assets/{ImageSlideshow.stories-CI-E0hQG.js → ImageSlideshow.stories-C4yxI9Hk.js} +1 -1
  72. package/storybook-static/assets/{Iridescence.stories-B9kRy59B.js → Iridescence.stories-CqLa7JSo.js} +1 -1
  73. package/storybook-static/assets/{LaserFlow.stories-DnhxtQsq.js → LaserFlow.stories-DZ03d3Kr.js} +1 -1
  74. package/storybook-static/assets/{LetterGlitch.stories-BS3tgTot.js → LetterGlitch.stories-B1kZwfV4.js} +1 -1
  75. package/storybook-static/assets/{LightPillar.stories-Ch6iDPPI.js → LightPillar.stories-BH8CW99c.js} +1 -1
  76. package/storybook-static/assets/{LightRays.stories-96j1kh6q.js → LightRays.stories-sSdy_g-K.js} +1 -1
  77. package/storybook-static/assets/{Lightning.stories-B1X3GI94.js → Lightning.stories-Un6LCgoZ.js} +1 -1
  78. package/storybook-static/assets/{LineWaves.stories-3yb-Gtwr.js → LineWaves.stories-CLV_4WSt.js} +1 -1
  79. package/storybook-static/assets/{LiquidChrome.stories-WTpyqW7K.js → LiquidChrome.stories-ChQhK7Dy.js} +1 -1
  80. package/storybook-static/assets/{LiquidEther.stories-d3WyZQDd.js → LiquidEther.stories-B4OmA7LY.js} +1 -1
  81. package/storybook-static/assets/{LoadingSpinner-j0OUWyjZ.js → LoadingSpinner-qzqD3jTR.js} +1 -1
  82. package/storybook-static/assets/{LoadingSpinner.stories-V5Mfbr_A.js → LoadingSpinner.stories-8P7Z55GB.js} +1 -1
  83. package/storybook-static/assets/{MagicRings.stories-nxTUbOEQ.js → MagicRings.stories-D2GXRX-H.js} +1 -1
  84. package/storybook-static/assets/{Magnet.stories-CCc47Jka.js → Magnet.stories-Bgu6hV9i.js} +1 -1
  85. package/storybook-static/assets/{MagnetLines.stories-D-uxaOJV.js → MagnetLines.stories-Bekn7PzV.js} +1 -1
  86. package/storybook-static/assets/{Masonry.stories-vW2knxde.js → Masonry.stories-BymDnqyf.js} +1 -1
  87. package/storybook-static/assets/{MetaBalls.stories-tVKhRgBG.js → MetaBalls.stories-C_KyJ7W7.js} +1 -1
  88. package/storybook-static/assets/{MetallicPaint.stories-CRyFkVKF.js → MetallicPaint.stories-DgMk50WF.js} +1 -1
  89. package/storybook-static/assets/{MoodChart.stories-DcdCTegz.js → MoodChart.stories-C9m0jJCs.js} +1 -1
  90. package/storybook-static/assets/{MotionConfigContext-gtuPlUge.js → MotionConfigContext-E6BOCyHu.js} +1 -1
  91. package/storybook-static/assets/Navbar.stories-DhlE0kvG.js +186 -0
  92. package/storybook-static/assets/{Noise.stories-DyJIJUI1.js → Noise.stories-CDvf3xOK.js} +1 -1
  93. package/storybook-static/assets/{NumberStepper-Dn0f_CGn.js → NumberStepper-DwezmIn_.js} +1 -1
  94. package/storybook-static/assets/{NumberStepper.stories-DM6nY1u9.js → NumberStepper.stories-Dk53N2J7.js} +1 -1
  95. package/storybook-static/assets/{Orb.stories-DouEXJAu.js → Orb.stories-BrzRPQ1u.js} +1 -1
  96. package/storybook-static/assets/{OrbitImages.stories-DjRyNXD-.js → OrbitImages.stories-NOI2oLj0.js} +1 -1
  97. package/storybook-static/assets/{PieChart.stories-BY1dJDRv.js → PieChart.stories-MtaCNzgT.js} +1 -1
  98. package/storybook-static/assets/{PixelBlast.stories-CvztMISj.js → PixelBlast.stories-XJEIYKKu.js} +1 -1
  99. package/storybook-static/assets/{PixelCard.stories-czcj-4NC.js → PixelCard.stories-QbZqQ88B.js} +1 -1
  100. package/storybook-static/assets/{PixelSnow.stories-CqxqR746.js → PixelSnow.stories-WV68wNlK.js} +1 -1
  101. package/storybook-static/assets/{PixelTransition.stories-Dc8UkKjn.js → PixelTransition.stories-vqzvdubI.js} +1 -1
  102. package/storybook-static/assets/{Plasma.stories-Dg2AZLjZ.js → Plasma.stories--U6_YBdM.js} +1 -1
  103. package/storybook-static/assets/{Prism.stories-BeDFq0RV.js → Prism.stories-IWJ0w1dQ.js} +1 -1
  104. package/storybook-static/assets/{PrismaticBurst.stories-BoKU6BsE.js → PrismaticBurst.stories-CB_t4CWR.js} +1 -1
  105. package/storybook-static/assets/{ProfileCard.stories-CTN6lHX_.js → ProfileCard.stories-BbJ6gRsy.js} +1 -1
  106. package/storybook-static/assets/{QuantifiableHabitsChart.stories-DCEv5Jlh.js → QuantifiableHabitsChart.stories-DgWJAXZB.js} +1 -1
  107. package/storybook-static/assets/{Radar.stories-Bj0WRDFi.js → Radar.stories-GN-SIfi1.js} +1 -1
  108. package/storybook-static/assets/{Ribbons.stories-BZ0-6WXQ.js → Ribbons.stories-BwQB19FG.js} +1 -1
  109. package/storybook-static/assets/{RippleGrid.stories-CA8fhglD.js → RippleGrid.stories-DSt8ch11.js} +1 -1
  110. package/storybook-static/assets/{RotatingText.stories-GRgWk8wg.js → RotatingText.stories-CvaRE13z.js} +1 -1
  111. package/storybook-static/assets/{ScrollFloat.stories-DQAep0xZ.js → ScrollFloat.stories-BI0-boMm.js} +1 -1
  112. package/storybook-static/assets/{ScrollReveal.stories-DESnpDqF.js → ScrollReveal.stories-CqAwHxWZ.js} +1 -1
  113. package/storybook-static/assets/{ScrollVelocity.stories-Fqg6LSc8.js → ScrollVelocity.stories-CxfPVUdO.js} +1 -1
  114. package/storybook-static/assets/{SearchBar.stories-Cg0kSrHc.js → SearchBar.stories-BYGPQpKV.js} +1 -1
  115. package/storybook-static/assets/{SearchableDropdown-DogKMXhj.js → SearchableDropdown-DKGXHEST.js} +1 -1
  116. package/storybook-static/assets/{SearchableDropdown.stories-Di_rWviF.js → SearchableDropdown.stories-BSIq785F.js} +1 -1
  117. package/storybook-static/assets/{SelectInput-CFam5JrL.js → SelectInput-BTaSD4pV.js} +1 -1
  118. package/storybook-static/assets/{SelectInput.stories-B7ay2ZL3.js → SelectInput.stories-BWCsGvSv.js} +1 -1
  119. package/storybook-static/assets/{ShapeBlur.stories-BcxnlVe4.js → ShapeBlur.stories-CfUXU0Hu.js} +1 -1
  120. package/storybook-static/assets/{ShapeGrid.stories-DAu9WmFu.js → ShapeGrid.stories-BvZ4Ujrn.js} +1 -1
  121. package/storybook-static/assets/{ShinyText.stories-B_gTwT7Y.js → ShinyText.stories-CkM26rCA.js} +1 -1
  122. package/storybook-static/assets/{Silk.stories-CzbXwYWf.js → Silk.stories-heCaR9ri.js} +1 -1
  123. package/storybook-static/assets/{SleepChart.stories-Di_C26sX.js → SleepChart.stories-C_BQZ1zn.js} +1 -1
  124. package/storybook-static/assets/{Slider-B9WJhWgF.js → Slider-DFt4SqGe.js} +1 -1
  125. package/storybook-static/assets/{Slider.stories-BJHwcAMF.js → Slider.stories-CZOftn_6.js} +1 -1
  126. package/storybook-static/assets/{SoftAurora.stories-kbH9cSpO.js → SoftAurora.stories-CRCK1t7L.js} +1 -1
  127. package/storybook-static/assets/{SoundDemo.stories-B6S10F7a.js → SoundDemo.stories-B9TGtTa3.js} +1 -1
  128. package/storybook-static/assets/{SplashCursor.stories-DAxK6t9E.js → SplashCursor.stories-CNr5fovk.js} +1 -1
  129. package/storybook-static/assets/{SpotlightCard.stories-CciSkBEv.js → SpotlightCard.stories-OU6sEeI7.js} +1 -1
  130. package/storybook-static/assets/{Stack.stories-DFViIB7q.js → Stack.stories-Cl0pCvmS.js} +1 -1
  131. package/storybook-static/assets/{StaggeredMenu.stories-YcuPVZPt.js → StaggeredMenu.stories-CEhjZpSE.js} +1 -1
  132. package/storybook-static/assets/{StarBorder.stories-1-Oyd_5O.js → StarBorder.stories-Cu8Vh6JV.js} +1 -1
  133. package/storybook-static/assets/{SunburstChart.stories-CZT9Ph7a.js → SunburstChart.stories-CaaCz4D5.js} +1 -1
  134. package/storybook-static/assets/{Table.stories-C4M5zwtP.js → Table.stories-DEvZCR8b.js} +1 -1
  135. package/storybook-static/assets/{Tabs.stories-DNaVR-eu.js → Tabs.stories-ByrHcH_w.js} +1 -1
  136. package/storybook-static/assets/{TargetCursor.stories-N4remRSz.js → TargetCursor.stories-DflPhQr7.js} +1 -1
  137. package/storybook-static/assets/{TextArea-CeqAZ5AD.js → TextArea-DCv2oVEi.js} +1 -1
  138. package/storybook-static/assets/{TextArea.stories-B04MM0KP.js → TextArea.stories-C8XpFNeS.js} +1 -1
  139. package/storybook-static/assets/{TextCursor.stories-BLN2feY_.js → TextCursor.stories-BBRGtRGy.js} +1 -1
  140. package/storybook-static/assets/{TextInput-DCOr-Btn.js → TextInput-CiEBs1p7.js} +1 -1
  141. package/storybook-static/assets/{TextInput.stories-BQwVwClB.js → TextInput.stories-sDjzvv_r.js} +1 -1
  142. package/storybook-static/assets/{TextPressure.stories-Q4lRye5j.js → TextPressure.stories-6hWaU46K.js} +1 -1
  143. package/storybook-static/assets/{TextType.stories-Cn3KiZYs.js → TextType.stories-B96GIAfl.js} +1 -1
  144. package/storybook-static/assets/{ThemeSwitcher.stories--EaDJTJ0.js → ThemeSwitcher.stories-D4T-JeUC.js} +1 -1
  145. package/storybook-static/assets/{Threads.stories-CgVgk4xS.js → Threads.stories-DFj3LyR_.js} +1 -1
  146. package/storybook-static/assets/{TimeInput.stories-DC3oRpuG.js → TimeInput.stories-D29y9r9_.js} +1 -1
  147. package/storybook-static/assets/{Toggle-DviTJSME.js → Toggle-BQYsA6ul.js} +1 -1
  148. package/storybook-static/assets/{Toggle.stories-B-kk79ff.js → Toggle.stories-CUbp5Jsr.js} +1 -1
  149. package/storybook-static/assets/{ToggleButton-D-6-qBo1.js → ToggleButton-BfEkXfyM.js} +1 -1
  150. package/storybook-static/assets/{ToggleButton.stories-B2jNcd_g.js → ToggleButton.stories-DV2MLkN7.js} +1 -1
  151. package/storybook-static/assets/{TrueFocus.stories-CznLWB93.js → TrueFocus.stories-pHR04Ohp.js} +1 -1
  152. package/storybook-static/assets/{VariableProximity.stories-DF54x2j1.js → VariableProximity.stories-8BBD-zO6.js} +1 -1
  153. package/storybook-static/assets/{Waves.stories-TgNpPUFH.js → Waves.stories-Ch2WIT1y.js} +1 -1
  154. package/storybook-static/assets/{check-Clr1SyVQ.js → check-5UELpswJ.js} +1 -1
  155. package/storybook-static/assets/{chevron-down-9dE_f7KJ.js → chevron-down-DJrhvjuh.js} +1 -1
  156. package/storybook-static/assets/{chevron-right-BoBXGDdh.js → chevron-right-BXPuFhNR.js} +1 -1
  157. package/storybook-static/assets/client-CUSQMWIi.js +1 -0
  158. package/storybook-static/assets/{createLucideIcon-BYma-pZP.js → createLucideIcon-OIz9nbID.js} +1 -1
  159. package/storybook-static/assets/{download-CZActf1i.js → download-CKNX6tcv.js} +1 -1
  160. package/storybook-static/assets/{folder-hxUWwa0z.js → folder-UmgN-wpw.js} +1 -1
  161. package/storybook-static/assets/{iconBase-nw2ic-VZ.js → iconBase-l6iBLek9.js} +1 -1
  162. package/storybook-static/assets/{iframe-DeUB-sow.js → iframe-BLM9gPKH.js} +3 -3
  163. package/storybook-static/assets/{index-Ddbt8J-4.js → index-4lYlkM-D.js} +1 -1
  164. package/storybook-static/assets/{index-BouVZTao.js → index-b5igbCec.js} +1 -1
  165. package/storybook-static/assets/{index-B91nm_hV.js → index-vIkE6dHF.js} +1 -1
  166. package/storybook-static/assets/{proxy-CGOWLFI9.js → proxy-BsV6quUP.js} +1 -1
  167. package/storybook-static/assets/{react-18-aOUg2FhO.js → react-18-DDy7qzUT.js} +1 -1
  168. package/storybook-static/assets/{react-three-fiber.esm-CEXLtOZY.js → react-three-fiber.esm-DEhbi0-x.js} +1 -1
  169. package/storybook-static/assets/{search-B02YiHrH.js → search-BkBVkJzD.js} +1 -1
  170. package/storybook-static/assets/{settings-KaeFuAWM.js → settings-CMsrEzJS.js} +1 -1
  171. package/storybook-static/assets/{sun-Byq_SlmS.js → sun-WxYEV1-R.js} +1 -1
  172. package/storybook-static/assets/{trash-2-k8BZtDWO.js → trash-2-BvLXiygc.js} +1 -1
  173. package/storybook-static/assets/{use-animation-frame-smxOqIvj.js → use-animation-frame-B3QUdFyW.js} +1 -1
  174. package/storybook-static/assets/{use-in-view-BcwWANRX.js → use-in-view-DxORwu3d.js} +1 -1
  175. package/storybook-static/assets/{use-motion-value-StM-uKCi.js → use-motion-value-CYCvXY5m.js} +1 -1
  176. package/storybook-static/assets/{use-spring-P5hwkYBq.js → use-spring-Cdrlm-bg.js} +1 -1
  177. package/storybook-static/assets/{use-transform-D3sLak7o.js → use-transform-CxdHJNbN.js} +1 -1
  178. package/storybook-static/assets/{useSound-K12Qio3c.js → useSound-SuqbUlad.js} +1 -1
  179. package/storybook-static/assets/{users-_rOO1DQg.js → users-Br1MtzUW.js} +1 -1
  180. package/storybook-static/assets/{x-jCtIZ166.js → x-p0fEn4Nq.js} +1 -1
  181. package/storybook-static/iframe.html +1 -1
  182. package/storybook-static/project.json +1 -1
  183. package/storybook-static/assets/Calendar-E_-F3UEV.css +0 -1
  184. package/storybook-static/assets/Calendar.stories-B9TCGcuy.js +0 -367
  185. package/storybook-static/assets/Navbar.stories-BORRPKgI.js +0 -186
  186. package/storybook-static/assets/client-fkBkqlp7.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as h,j as o}from"./iframe-DeUB-sow.js";import{S as t}from"./SelectInput-CFam5JrL.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-K12Qio3c.js";import"./chevron-down-9dE_f7KJ.js";import"./createLucideIcon-BYma-pZP.js";const F={title:"Atoms/SelectInput",component:t,parameters:{layout:"centered",docs:{description:{component:"A simple dropdown select component with customizable options."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"}}},y=["Option 1","Option 2","Option 3","Option 4"],S=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Australia",value:"au"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"}],r={args:{label:"Select an option",value:"",onChange:()=>{},options:y,placeholder:"Choose..."}},n={args:{label:"Country",value:"uk",onChange:()=>{},options:S,placeholder:"Select a country"}},s={args:{label:"Form Example",value:"",onChange:()=>{},options:["Option 1","Option 2"]},render:()=>{const[e,l]=h.useState({title:"",category:"",priority:"",assignee:""});return o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",padding:"1.5rem",background:"var(--color-background-secondary)",borderRadius:"var(--radius-md)",minWidth:"300px"},children:[o.jsx("h3",{style:{marginTop:0},children:"Create Task"}),o.jsx(t,{label:"Title",value:e.title,onChange:a=>l({...e,title:a}),options:["Mr","Mrs","Ms","Dr","Prof"],placeholder:"Select title"}),o.jsx(t,{label:"Category",value:e.category,onChange:a=>l({...e,category:a}),options:[{label:"Bug",value:"bug"},{label:"Feature",value:"feature"},{label:"Documentation",value:"docs"},{label:"Testing",value:"test"}],placeholder:"Select category"}),o.jsx(t,{label:"Priority",value:e.priority,onChange:a=>l({...e,priority:a}),options:["Low","Medium","High","Critical"],placeholder:"Select priority"}),o.jsx(t,{label:"Assignee",value:e.assignee,onChange:a=>l({...e,assignee:a}),options:[{label:"John Doe",value:"john"},{label:"Jane Smith",value:"jane"},{label:"Bob Johnson",value:"bob"},{label:"Alice Brown",value:"alice"}],placeholder:"Select assignee"})]})},parameters:{controls:{disable:!0}}};var i,c,u;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
1
+ import{r as h,j as o}from"./iframe-BLM9gPKH.js";import{S as t}from"./SelectInput-BTaSD4pV.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-SuqbUlad.js";import"./chevron-down-DJrhvjuh.js";import"./createLucideIcon-OIz9nbID.js";const F={title:"Atoms/SelectInput",component:t,parameters:{layout:"centered",docs:{description:{component:"A simple dropdown select component with customizable options."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"}}},y=["Option 1","Option 2","Option 3","Option 4"],S=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Australia",value:"au"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"}],r={args:{label:"Select an option",value:"",onChange:()=>{},options:y,placeholder:"Choose..."}},n={args:{label:"Country",value:"uk",onChange:()=>{},options:S,placeholder:"Select a country"}},s={args:{label:"Form Example",value:"",onChange:()=>{},options:["Option 1","Option 2"]},render:()=>{const[e,l]=h.useState({title:"",category:"",priority:"",assignee:""});return o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",padding:"1.5rem",background:"var(--color-background-secondary)",borderRadius:"var(--radius-md)",minWidth:"300px"},children:[o.jsx("h3",{style:{marginTop:0},children:"Create Task"}),o.jsx(t,{label:"Title",value:e.title,onChange:a=>l({...e,title:a}),options:["Mr","Mrs","Ms","Dr","Prof"],placeholder:"Select title"}),o.jsx(t,{label:"Category",value:e.category,onChange:a=>l({...e,category:a}),options:[{label:"Bug",value:"bug"},{label:"Feature",value:"feature"},{label:"Documentation",value:"docs"},{label:"Testing",value:"test"}],placeholder:"Select category"}),o.jsx(t,{label:"Priority",value:e.priority,onChange:a=>l({...e,priority:a}),options:["Low","Medium","High","Critical"],placeholder:"Select priority"}),o.jsx(t,{label:"Assignee",value:e.assignee,onChange:a=>l({...e,assignee:a}),options:[{label:"John Doe",value:"john"},{label:"Jane Smith",value:"jane"},{label:"Bob Johnson",value:"bob"},{label:"Alice Brown",value:"alice"}],placeholder:"Select assignee"})]})},parameters:{controls:{disable:!0}}};var i,c,u;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Select an option',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{r as M,j}from"./iframe-DeUB-sow.js";import{d as m,S as B,a as D,W as N,q as T,i as k,M as G,r as H}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const U=`
1
+ import{r as M,j}from"./iframe-BLM9gPKH.js";import{d as m,S as B,a as D,W as N,q as T,i as k,M as G,r as H}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const U=`
2
2
  varying vec2 v_texcoord;
3
3
  void main() {
4
4
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
@@ -1,4 +1,4 @@
1
- import{r as v,j as q}from"./iframe-DeUB-sow.js";import"./preload-helper-C1FmrZbK.js";const z={"shapegrid-canvas":"_shapegrid-canvas_ilyut_1"},J=({direction:P="right",speed:L=1,borderColor:k="#999",squareSize:t=40,hoverFillColor:b="#222",shape:X="square",hoverTrailAmount:y=0,className:Q=""})=>{const _=v.useRef(null),j=v.useRef(null),U=v.useRef(),Z=v.useRef(),r=v.useRef({x:0,y:0}),o=v.useRef(null),p=v.useRef([]),M=v.useRef(new Map);return v.useEffect(()=>{const s=_.current,n=s.getContext("2d"),Y=X==="hexagon",E=X==="triangle",w=t*1.5,m=t*Math.sqrt(3),V=()=>{s.width=s.offsetWidth,s.height=s.offsetHeight,U.current=Math.ceil(s.width/t)+1,Z.current=Math.ceil(s.height/t)+1};window.addEventListener("resize",V),V();const C=(l,e,c)=>{n.beginPath();for(let u=0;u<6;u++){const h=Math.PI/3*u,d=l+c*Math.cos(h),f=e+c*Math.sin(h);u===0?n.moveTo(d,f):n.lineTo(d,f)}n.closePath()},G=(l,e,c)=>{n.beginPath(),n.arc(l,e,c/2,0,Math.PI*2),n.closePath()},O=(l,e,c,u)=>{n.beginPath(),u?(n.moveTo(l,e+c/2),n.lineTo(l+c/2,e-c/2),n.lineTo(l-c/2,e-c/2)):(n.moveTo(l,e-c/2),n.lineTo(l+c/2,e+c/2),n.lineTo(l-c/2,e+c/2)),n.closePath()},A=()=>{if(n.clearRect(0,0,s.width,s.height),Y){const e=Math.floor(r.current.x/w),c=(r.current.x%w+w)%w,u=(r.current.y%m+m)%m,h=Math.ceil(s.width/w)+3,d=Math.ceil(s.height/m)+3;for(let f=-2;f<h;f++)for(let g=-2;g<d;g++){const i=f*w+c,a=g*m+((f+e)%2!==0?m/2:0)+u,x=`${f},${g}`,R=M.current.get(x);R&&(n.globalAlpha=R,C(i,a,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),C(i,a,t),n.strokeStyle=k,n.stroke()}}else if(E){const e=t/2,c=Math.floor(r.current.x/e),u=Math.floor(r.current.y/t),h=(r.current.x%e+e)%e,d=(r.current.y%t+t)%t,f=Math.ceil(s.width/e)+4,g=Math.ceil(s.height/t)+4;for(let i=-2;i<f;i++)for(let a=-2;a<g;a++){const x=i*e+h,R=a*t+t/2+d,I=((i+c+a+u)%2+2)%2!==0,S=`${i},${a}`,N=M.current.get(S);N&&(n.globalAlpha=N,O(x,R,t,I),n.fillStyle=b,n.fill(),n.globalAlpha=1),O(x,R,t,I),n.strokeStyle=k,n.stroke()}}else if(X==="circle"){const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+t/2+e,i=f*t+t/2+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,G(g,i,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),G(g,i,t),n.strokeStyle=k,n.stroke()}}else{const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+e,i=f*t+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,n.fillStyle=b,n.fillRect(g,i,t,t),n.globalAlpha=1),n.strokeStyle=k,n.strokeRect(g,i,t,t)}}const l=n.createRadialGradient(s.width/2,s.height/2,0,s.width/2,s.height/2,Math.sqrt(s.width**2+s.height**2)/2);l.addColorStop(0,"rgba(0, 0, 0, 0)"),n.fillStyle=l,n.fillRect(0,0,s.width,s.height)},H=()=>{const l=Math.max(L,.1),e=Y?w*2:t,c=Y?m:E?t*2:t;switch(P){case"right":r.current.x=(r.current.x-l+e)%e;break;case"left":r.current.x=(r.current.x+l+e)%e;break;case"up":r.current.y=(r.current.y+l+c)%c;break;case"down":r.current.y=(r.current.y-l+c)%c;break;case"diagonal":r.current.x=(r.current.x-l+e)%e,r.current.y=(r.current.y-l+c)%c;break}T(),A(),j.current=requestAnimationFrame(H)},T=()=>{const l=new Map;if(o.current&&l.set(`${o.current.x},${o.current.y}`,1),y>0)for(let e=0;e<p.current.length;e++){const c=p.current[e],u=`${c.x},${c.y}`;l.has(u)||l.set(u,(p.current.length-e)/(p.current.length+1))}for(const[e]of l)M.current.has(e)||M.current.set(e,0);for(const[e,c]of M.current){const u=l.get(e)||0,h=c+(u-c)*.15;h<.005?M.current.delete(e):M.current.set(e,h)}},K=l=>{const e=s.getBoundingClientRect(),c=l.clientX-e.left,u=l.clientY-e.top;if(Y){const h=Math.floor(r.current.x/w),d=(r.current.x%w+w)%w,f=(r.current.y%m+m)%m,g=c-d,i=u-f,a=Math.round(g/w),x=(a+h)%2!==0?m/2:0,R=Math.round((i-x)/m);(!o.current||o.current.x!==a||o.current.y!==R)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:R})}else if(E){const h=t/2,d=(r.current.x%h+h)%h,f=(r.current.y%t+t)%t,g=c-d,i=u-f,a=Math.round(g/h),x=Math.floor(i/t);(!o.current||o.current.x!==a||o.current.y!==x)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:x})}else if(X==="circle"){const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.round(f/t),a=Math.round(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}else{const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.floor(f/t),a=Math.floor(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}},B=()=>{o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current=null};return s.addEventListener("mousemove",K),s.addEventListener("mouseleave",B),j.current=requestAnimationFrame(H),()=>{window.removeEventListener("resize",V),cancelAnimationFrame(j.current),s.removeEventListener("mousemove",K),s.removeEventListener("mouseleave",B)}},[P,L,k,b,t,X,y]),q.jsx("canvas",{ref:_,className:`${z["shapegrid-canvas"]} ${Q}`})};J.__docgenInfo={description:"",methods:[],displayName:"ShapeGrid",props:{direction:{defaultValue:{value:"'right'",computed:!1},required:!1},speed:{defaultValue:{value:"1",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#999'",computed:!1},required:!1},squareSize:{defaultValue:{value:"40",computed:!1},required:!1},hoverFillColor:{defaultValue:{value:"'#222'",computed:!1},required:!1},shape:{defaultValue:{value:"'square'",computed:!1},required:!1},hoverTrailAmount:{defaultValue:{value:"0",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const nt={title:"ReactBits/Backgrounds/ShapeGrid",component:J,parameters:{layout:"fullscreen"}},$={args:{direction:"right",speed:1,borderColor:"#999",squareSize:40,hoverFillColor:"#222",shape:"square",hoverTrailAmount:0}};var W,D,F;$.parameters={...$.parameters,docs:{...(W=$.parameters)==null?void 0:W.docs,source:{originalSource:`{
1
+ import{r as v,j as q}from"./iframe-BLM9gPKH.js";import"./preload-helper-C1FmrZbK.js";const z={"shapegrid-canvas":"_shapegrid-canvas_ilyut_1"},J=({direction:P="right",speed:L=1,borderColor:k="#999",squareSize:t=40,hoverFillColor:b="#222",shape:X="square",hoverTrailAmount:y=0,className:Q=""})=>{const _=v.useRef(null),j=v.useRef(null),U=v.useRef(),Z=v.useRef(),r=v.useRef({x:0,y:0}),o=v.useRef(null),p=v.useRef([]),M=v.useRef(new Map);return v.useEffect(()=>{const s=_.current,n=s.getContext("2d"),Y=X==="hexagon",E=X==="triangle",w=t*1.5,m=t*Math.sqrt(3),V=()=>{s.width=s.offsetWidth,s.height=s.offsetHeight,U.current=Math.ceil(s.width/t)+1,Z.current=Math.ceil(s.height/t)+1};window.addEventListener("resize",V),V();const C=(l,e,c)=>{n.beginPath();for(let u=0;u<6;u++){const h=Math.PI/3*u,d=l+c*Math.cos(h),f=e+c*Math.sin(h);u===0?n.moveTo(d,f):n.lineTo(d,f)}n.closePath()},G=(l,e,c)=>{n.beginPath(),n.arc(l,e,c/2,0,Math.PI*2),n.closePath()},O=(l,e,c,u)=>{n.beginPath(),u?(n.moveTo(l,e+c/2),n.lineTo(l+c/2,e-c/2),n.lineTo(l-c/2,e-c/2)):(n.moveTo(l,e-c/2),n.lineTo(l+c/2,e+c/2),n.lineTo(l-c/2,e+c/2)),n.closePath()},A=()=>{if(n.clearRect(0,0,s.width,s.height),Y){const e=Math.floor(r.current.x/w),c=(r.current.x%w+w)%w,u=(r.current.y%m+m)%m,h=Math.ceil(s.width/w)+3,d=Math.ceil(s.height/m)+3;for(let f=-2;f<h;f++)for(let g=-2;g<d;g++){const i=f*w+c,a=g*m+((f+e)%2!==0?m/2:0)+u,x=`${f},${g}`,R=M.current.get(x);R&&(n.globalAlpha=R,C(i,a,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),C(i,a,t),n.strokeStyle=k,n.stroke()}}else if(E){const e=t/2,c=Math.floor(r.current.x/e),u=Math.floor(r.current.y/t),h=(r.current.x%e+e)%e,d=(r.current.y%t+t)%t,f=Math.ceil(s.width/e)+4,g=Math.ceil(s.height/t)+4;for(let i=-2;i<f;i++)for(let a=-2;a<g;a++){const x=i*e+h,R=a*t+t/2+d,I=((i+c+a+u)%2+2)%2!==0,S=`${i},${a}`,N=M.current.get(S);N&&(n.globalAlpha=N,O(x,R,t,I),n.fillStyle=b,n.fill(),n.globalAlpha=1),O(x,R,t,I),n.strokeStyle=k,n.stroke()}}else if(X==="circle"){const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+t/2+e,i=f*t+t/2+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,G(g,i,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),G(g,i,t),n.strokeStyle=k,n.stroke()}}else{const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+e,i=f*t+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,n.fillStyle=b,n.fillRect(g,i,t,t),n.globalAlpha=1),n.strokeStyle=k,n.strokeRect(g,i,t,t)}}const l=n.createRadialGradient(s.width/2,s.height/2,0,s.width/2,s.height/2,Math.sqrt(s.width**2+s.height**2)/2);l.addColorStop(0,"rgba(0, 0, 0, 0)"),n.fillStyle=l,n.fillRect(0,0,s.width,s.height)},H=()=>{const l=Math.max(L,.1),e=Y?w*2:t,c=Y?m:E?t*2:t;switch(P){case"right":r.current.x=(r.current.x-l+e)%e;break;case"left":r.current.x=(r.current.x+l+e)%e;break;case"up":r.current.y=(r.current.y+l+c)%c;break;case"down":r.current.y=(r.current.y-l+c)%c;break;case"diagonal":r.current.x=(r.current.x-l+e)%e,r.current.y=(r.current.y-l+c)%c;break}T(),A(),j.current=requestAnimationFrame(H)},T=()=>{const l=new Map;if(o.current&&l.set(`${o.current.x},${o.current.y}`,1),y>0)for(let e=0;e<p.current.length;e++){const c=p.current[e],u=`${c.x},${c.y}`;l.has(u)||l.set(u,(p.current.length-e)/(p.current.length+1))}for(const[e]of l)M.current.has(e)||M.current.set(e,0);for(const[e,c]of M.current){const u=l.get(e)||0,h=c+(u-c)*.15;h<.005?M.current.delete(e):M.current.set(e,h)}},K=l=>{const e=s.getBoundingClientRect(),c=l.clientX-e.left,u=l.clientY-e.top;if(Y){const h=Math.floor(r.current.x/w),d=(r.current.x%w+w)%w,f=(r.current.y%m+m)%m,g=c-d,i=u-f,a=Math.round(g/w),x=(a+h)%2!==0?m/2:0,R=Math.round((i-x)/m);(!o.current||o.current.x!==a||o.current.y!==R)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:R})}else if(E){const h=t/2,d=(r.current.x%h+h)%h,f=(r.current.y%t+t)%t,g=c-d,i=u-f,a=Math.round(g/h),x=Math.floor(i/t);(!o.current||o.current.x!==a||o.current.y!==x)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:x})}else if(X==="circle"){const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.round(f/t),a=Math.round(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}else{const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.floor(f/t),a=Math.floor(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}},B=()=>{o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current=null};return s.addEventListener("mousemove",K),s.addEventListener("mouseleave",B),j.current=requestAnimationFrame(H),()=>{window.removeEventListener("resize",V),cancelAnimationFrame(j.current),s.removeEventListener("mousemove",K),s.removeEventListener("mouseleave",B)}},[P,L,k,b,t,X,y]),q.jsx("canvas",{ref:_,className:`${z["shapegrid-canvas"]} ${Q}`})};J.__docgenInfo={description:"",methods:[],displayName:"ShapeGrid",props:{direction:{defaultValue:{value:"'right'",computed:!1},required:!1},speed:{defaultValue:{value:"1",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#999'",computed:!1},required:!1},squareSize:{defaultValue:{value:"40",computed:!1},required:!1},hoverFillColor:{defaultValue:{value:"'#222'",computed:!1},required:!1},shape:{defaultValue:{value:"'square'",computed:!1},required:!1},hoverTrailAmount:{defaultValue:{value:"0",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const nt={title:"ReactBits/Backgrounds/ShapeGrid",component:J,parameters:{layout:"fullscreen"}},$={args:{direction:"right",speed:1,borderColor:"#999",squareSize:40,hoverFillColor:"#222",shape:"square",hoverTrailAmount:0}};var W,D,F;$.parameters={...$.parameters,docs:{...(W=$.parameters)==null?void 0:W.docs,source:{originalSource:`{
2
2
  args: {
3
3
  direction: 'right',
4
4
  speed: 1,
@@ -1,4 +1,4 @@
1
- import{r,j as N}from"./iframe-DeUB-sow.js";import{u as P}from"./use-motion-value-StM-uKCi.js";import{u as z}from"./use-animation-frame-smxOqIvj.js";import{u as A}from"./use-transform-D3sLak7o.js";import{m as B}from"./proxy-CGOWLFI9.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-gtuPlUge.js";const F={"shiny-text":"_shiny-text_183zx_1"},T=({text:V,disabled:q=!1,speed:k=2,className:C="",color:u="#b5b5b5",shineColor:$="#ffffff",spread:R=120,yoyo:S=!1,pauseOnHover:f=!1,direction:m="left",delay:_=0})=>{const[D,y]=r.useState(!1),e=P(0),c=r.useRef(0),n=r.useRef(null),a=r.useRef(m==="left"?1:-1),t=k*1e3,b=_*1e3;z(o=>{if(q||D){n.current=null;return}if(n.current===null){n.current=o;return}const I=o-n.current;if(n.current=o,c.current+=I,S){const l=t+b,i=l*2,s=c.current%i;if(s<t){const p=s/t*100;e.set(a.current===1?p:100-p)}else if(s<l)e.set(a.current===1?100:0);else if(s<l+t){const x=100-(s-l)/t*100;e.set(a.current===1?x:100-x)}else e.set(a.current===1?0:100)}else{const l=t+b,i=c.current%l;if(i<t){const s=i/t*100;e.set(a.current===1?s:100-s)}else e.set(a.current===1?100:0)}}),r.useEffect(()=>{a.current=m==="left"?1:-1,c.current=0,e.set(0)},[m]);const E=A(e,o=>`${150-o*2}% center`),M=r.useCallback(()=>{f&&y(!0)},[f]),W=r.useCallback(()=>{f&&y(!1)},[f]),j={backgroundImage:`linear-gradient(${R}deg, ${u} 0%, ${u} 35%, ${$} 50%, ${u} 65%, ${u} 100%)`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"};return N.jsx(B.span,{className:`${F["shiny-text"]} ${C}`,style:{...j,backgroundPosition:E},onMouseEnter:M,onMouseLeave:W,children:V})};T.__docgenInfo={description:"",methods:[],displayName:"ShinyText",props:{disabled:{defaultValue:{value:"false",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'#b5b5b5'",computed:!1},required:!1},shineColor:{defaultValue:{value:"'#ffffff'",computed:!1},required:!1},spread:{defaultValue:{value:"120",computed:!1},required:!1},yoyo:{defaultValue:{value:"false",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/ShinyText",component:T,parameters:{layout:"fullscreen"}},d={args:{text:"Hello World",disabled:!1,speed:2,color:"#b5b5b5",shineColor:"#ffffff",spread:120,yoyo:!1,pauseOnHover:!1,direction:"left",delay:0}};var g,v,h;d.parameters={...d.parameters,docs:{...(g=d.parameters)==null?void 0:g.docs,source:{originalSource:`{
1
+ import{r,j as N}from"./iframe-BLM9gPKH.js";import{u as P}from"./use-motion-value-CYCvXY5m.js";import{u as z}from"./use-animation-frame-B3QUdFyW.js";import{u as A}from"./use-transform-CxdHJNbN.js";import{m as B}from"./proxy-BsV6quUP.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-E6BOCyHu.js";const F={"shiny-text":"_shiny-text_183zx_1"},T=({text:V,disabled:q=!1,speed:k=2,className:C="",color:u="#b5b5b5",shineColor:$="#ffffff",spread:R=120,yoyo:S=!1,pauseOnHover:f=!1,direction:m="left",delay:_=0})=>{const[D,y]=r.useState(!1),e=P(0),c=r.useRef(0),n=r.useRef(null),a=r.useRef(m==="left"?1:-1),t=k*1e3,b=_*1e3;z(o=>{if(q||D){n.current=null;return}if(n.current===null){n.current=o;return}const I=o-n.current;if(n.current=o,c.current+=I,S){const l=t+b,i=l*2,s=c.current%i;if(s<t){const p=s/t*100;e.set(a.current===1?p:100-p)}else if(s<l)e.set(a.current===1?100:0);else if(s<l+t){const x=100-(s-l)/t*100;e.set(a.current===1?x:100-x)}else e.set(a.current===1?0:100)}else{const l=t+b,i=c.current%l;if(i<t){const s=i/t*100;e.set(a.current===1?s:100-s)}else e.set(a.current===1?100:0)}}),r.useEffect(()=>{a.current=m==="left"?1:-1,c.current=0,e.set(0)},[m]);const E=A(e,o=>`${150-o*2}% center`),M=r.useCallback(()=>{f&&y(!0)},[f]),W=r.useCallback(()=>{f&&y(!1)},[f]),j={backgroundImage:`linear-gradient(${R}deg, ${u} 0%, ${u} 35%, ${$} 50%, ${u} 65%, ${u} 100%)`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"};return N.jsx(B.span,{className:`${F["shiny-text"]} ${C}`,style:{...j,backgroundPosition:E},onMouseEnter:M,onMouseLeave:W,children:V})};T.__docgenInfo={description:"",methods:[],displayName:"ShinyText",props:{disabled:{defaultValue:{value:"false",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'#b5b5b5'",computed:!1},required:!1},shineColor:{defaultValue:{value:"'#ffffff'",computed:!1},required:!1},spread:{defaultValue:{value:"120",computed:!1},required:!1},yoyo:{defaultValue:{value:"false",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/ShinyText",component:T,parameters:{layout:"fullscreen"}},d={args:{text:"Hello World",disabled:!1,speed:2,color:"#b5b5b5",shineColor:"#ffffff",spread:120,yoyo:!1,pauseOnHover:!1,direction:"left",delay:0}};var g,v,h;d.parameters={...d.parameters,docs:{...(g=d.parameters)==null?void 0:g.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: 'Hello World',
4
4
  disabled: false,
@@ -1,4 +1,4 @@
1
- import{r as n,j as a}from"./iframe-DeUB-sow.js";import{C as p,u as x,a as y}from"./react-three-fiber.esm-CEXLtOZY.js";import{n as g}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const S=e=>(e=e.replace("#",""),[parseInt(e.slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255]),C=`
1
+ import{r as n,j as a}from"./iframe-BLM9gPKH.js";import{C as p,u as x,a as y}from"./react-three-fiber.esm-DEhbi0-x.js";import{n as g}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const S=e=>(e=e.replace("#",""),[parseInt(e.slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255]),C=`
2
2
  varying vec2 vUv;
3
3
  varying vec3 vPosition;
4
4
 
@@ -1,4 +1,4 @@
1
- import{r as b,j as i}from"./iframe-DeUB-sow.js";import{s as v,a as ut}from"./transform-BKmuZieF.js";import{i as it,l as ht}from"./linear-dkJHgUri.js";import{a as mt,b as ft}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";class V extends Map{constructor(t,r=wt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,n]of t)this.set(a,n)}get(t){return super.get(W(this,t))}has(t){return super.has(W(this,t))}set(t,r){return super.set(gt(this,t),r)}delete(t){return super.delete(Mt(this,t))}}function W({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function gt({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function Mt({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function wt(e){return e!==null&&typeof e=="object"?e.valueOf():e}function E(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var a=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,s=new Array(n);++a<n;)s[a]=e+a*r;return s}var O=1.70158;(function e(t){t=+t;function r(a){return(a=+a)*a*(t*(a-1)+a)}return r.overshoot=e,r})(O);var P=function e(t){t=+t;function r(a){return--a*a*((a+1)*t+a)+1}return r.overshoot=e,r}(O);(function e(t){t=+t;function r(a){return((a*=2)<1?a*a*((t+1)*a-t):(a-=2)*a*((t+1)*a+t)+2)/2}return r.overshoot=e,r})(O);const q=Symbol("implicit");function lt(){var e=new V,t=[],r=[],a=q;function n(s){let p=e.get(s);if(p===void 0){if(a!==q)return a;e.set(s,p=t.push(s)-1)}return r[p%r.length]}return n.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new V;for(const p of s)e.has(p)||e.set(p,t.push(p)-1);return n},n.range=function(s){return arguments.length?(r=Array.from(s),n):r.slice()},n.unknown=function(s){return arguments.length?(a=s,n):a},n.copy=function(){return lt(t,r).unknown(a)},it.apply(n,arguments),n}function dt(){var e=lt().unknown(void 0),t=e.domain,r=e.range,a=0,n=1,s,p,h=!1,M=0,w=0,g=.5;delete e.unknown;function m(){var l=t().length,k=n<a,x=k?n:a,T=k?a:n;s=(T-x)/Math.max(1,l-M+w*2),h&&(s=Math.floor(s)),x+=(T-x-s*(l-M))*g,p=s*(1-M),h&&(x=Math.round(x),p=Math.round(p));var y=E(l).map(function($){return x+s*$});return r(k?y.reverse():y)}return e.domain=function(l){return arguments.length?(t(l),m()):t()},e.range=function(l){return arguments.length?([a,n]=l,a=+a,n=+n,m()):[a,n]},e.rangeRound=function(l){return[a,n]=l,a=+a,n=+n,h=!0,m()},e.bandwidth=function(){return p},e.step=function(){return s},e.round=function(l){return arguments.length?(h=!!l,m()):h},e.padding=function(l){return arguments.length?(M=Math.min(1,w=+l),m()):M},e.paddingInner=function(l){return arguments.length?(M=Math.min(1,l),m()):M},e.paddingOuter=function(l){return arguments.length?(w=+l,m()):w},e.align=function(l){return arguments.length?(g=Math.max(0,Math.min(1,l)),m()):g},e.copy=function(){return dt(t(),[a,n]).round(h).paddingInner(M).paddingOuter(w).align(g)},it.apply(m(),arguments)}const xt="_container_wk2zd_1",_t="_header_wk2zd_7",kt="_title_wk2zd_14",yt="_legend_wk2zd_20",St="_legendItem_wk2zd_25",bt="_sleepDot_wk2zd_33",vt="_wakeDot_wk2zd_42",$t="_chart_wk2zd_51",Dt="_gridLine_wk2zd_55",jt="_sleepBar_wk2zd_60",At="_xAxis_wk2zd_70",zt="_yAxis_wk2zd_71",Nt="_tooltip_wk2zd_96",Ht="_visible_wk2zd_117",It="_tooltipHeader_wk2zd_122",Tt="_tooltipEmoji_wk2zd_133",Rt="_tooltipInfo_wk2zd_138",Et="_tooltipRow_wk2zd_144",Ot="_tooltipLabel_wk2zd_152",Bt="_tooltipValue_wk2zd_158",Lt="_tooltipDuration_wk2zd_163",c={container:xt,header:_t,title:kt,legend:yt,legendItem:St,sleepDot:bt,wakeDot:vt,chart:$t,gridLine:Dt,sleepBar:jt,xAxis:At,yAxis:zt,tooltip:Nt,visible:Ht,tooltipHeader:It,tooltipEmoji:Tt,tooltipInfo:Rt,tooltipRow:Et,tooltipLabel:Ot,tooltipValue:Bt,tooltipDuration:Lt},G=e=>{const[t,r]=e.split(":").map(Number);return t+r/60},C=e=>{const t=Math.floor(e%24),r=t===0?12:t>12?t-12:t,a=t>=12?"PM":"AM",n=Math.round(e%1*60);return`${Math.floor(r)}:${n.toString().padStart(2,"0")} ${a}`},ct=({sleepData:e,width:t=800,height:r=400,onDateClick:a})=>{const n=b.useRef(null),[s,p]=b.useState(null),h=b.useMemo(()=>({top:30,right:30,bottom:50,left:80}),[]),M=t-h.left-h.right,w=r-h.top-h.bottom;return b.useEffect(()=>{const g=()=>{p(null)};return window.addEventListener("scroll",g,!0),()=>{window.removeEventListener("scroll",g,!0)}},[]),b.useEffect(()=>{if(!n.current||e.length===0)return;const g=v(n.current);g.selectAll("*").remove(),g.append("rect").attr("width",t).attr("height",r).attr("fill","transparent").style("pointer-events","all").on("mouseleave",()=>{p(null)});const m=g.append("g").attr("transform",`translate(${h.left},${h.top})`),l=ht().domain([18,42]).range([0,M]),k=e.map(o=>o.date),x=dt().domain(k).range([0,w]).paddingInner(.2).paddingOuter(.1);m.selectAll(".grid-line-x").data(E(18,43,1)).enter().append("line").attr("class",c.gridLine).attr("x1",o=>l(o)).attr("y1",0).attr("x2",o=>l(o)).attr("y2",w).style("stroke",o=>{const d=o%24;return"var(--color-border)"}).style("stroke-opacity",o=>{const d=o%24;return d===0||d===12?.3:d%3===0?.15:.05}).style("stroke-width",o=>{const d=o%24;return d===0||d===12?2:1}),e.forEach(o=>{const d=x(o.date);if(d===void 0)return;const S=x.bandwidth(),D=m.append("g").attr("class",c.sleepBar).style("cursor","pointer").on("click",()=>a==null?void 0:a(o.date));let u=null,f=null;o.sleep_time&&(u=G(o.sleep_time),u<18&&(u+=24)),o.wake_hour&&(f=G(o.wake_hour),u!==null?(f<u||u>=18&&f<18)&&(f+=24):f<12&&(f+=24)),u!==null&&f!==null&&D.append("rect").attr("x",l(u)).attr("y",d).attr("width",0).attr("height",S).attr("rx",S/2).attr("fill","url(#sleepGradient)").attr("opacity",0).attr("stroke","rgba(255,255,255,0.3)").attr("stroke-width",1).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))").transition().duration(800).delay(Math.random()*200).ease(ut).attr("width",Math.max(0,l(f)-l(u))).attr("opacity",.85),u!==null&&D.append("circle").attr("cx",l(u)).attr("cy",d+S/2).attr("r",0).attr("fill","#9B59B6").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(155, 89, 182, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(300+Math.random()*100).ease(P).attr("r",6),f!==null&&D.append("circle").attr("cx",l(f)).attr("cy",d+S/2).attr("r",0).attr("fill","#3498DB").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(52, 152, 219, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(500+Math.random()*100).ease(P).attr("r",6),D.on("mouseenter",function(_){var B;if(v(this).select("rect").transition().duration(200).attr("opacity",1).style("filter","drop-shadow(0 4px 12px rgba(155, 89, 182, 0.5)) brightness(1.1)"),v(this).selectAll("circle").transition().duration(200).attr("r",8),(B=n.current)==null?void 0:B.getBoundingClientRect()){const L=u!==null&&f!==null?f-u:null;p({date:o.date,sleepTime:u!==null?C(u):null,wakeTime:f!==null?C(f):null,duration:L!==null?Math.round(L*100)/100:null,x:_.pageX,y:_.pageY-80})}}).on("mouseleave",function(){v(this).select("rect").transition().duration(200).attr("opacity",.85).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))"),v(this).selectAll("circle").transition().duration(200).attr("r",6),p(null)}).on("mousemove",function(_){p(R=>R?{...R,x:_.pageX,y:_.pageY-80}:null)})});const y=g.append("defs").append("linearGradient").attr("id","sleepGradient").attr("x1","0%").attr("x2","100%");y.append("stop").attr("offset","0%").attr("stop-color","#9B59B6").attr("stop-opacity",1),y.append("stop").attr("offset","50%").attr("stop-color","#7B68A6").attr("stop-opacity",1),y.append("stop").attr("offset","100%").attr("stop-color","#3498DB").attr("stop-opacity",1);const $=E(18,43,3).map(o=>({value:o,label:o===24?"12 AM":o===36?"12 PM":o%24===0?"12 AM":o%24<12?`${o%24} AM`:o%24===12?"12 PM":`${o%24-12} PM`}));m.append("g").attr("class",c.xAxis).attr("transform",`translate(0,${w})`).call(mt(l).tickValues($.map(o=>o.value)).tickFormat(o=>{const d=$.find(S=>S.value===o);return d?d.label:""}).tickSizeOuter(0)).selectAll("text").style("font-weight",o=>{const d=o%24;return d===0||d===12?"600":"400"});const pt=k.filter((o,d)=>d%Math.ceil(k.length/10)===0);m.append("g").attr("class",c.yAxis).call(ft(x).tickValues(pt).tickFormat(o=>{const d=new Date(o);return`${(d.getMonth()+1).toString().padStart(2,"0")}/${d.getDate().toString().padStart(2,"0")}`}))},[e,M,w,h,a,r,t]),i.jsxs("div",{className:c.container,children:[i.jsxs("div",{className:c.header,children:[i.jsx("h3",{className:c.title,children:"Sleep Pattern"}),i.jsxs("div",{className:c.legend,children:[i.jsxs("div",{className:c.legendItem,children:[i.jsx("span",{className:c.sleepDot}),i.jsx("span",{children:"Sleep Time"})]}),i.jsxs("div",{className:c.legendItem,children:[i.jsx("span",{className:c.wakeDot}),i.jsx("span",{children:"Wake Time"})]})]})]}),i.jsx("svg",{ref:n,width:t,height:r,className:c.chart}),s&&i.jsxs("div",{className:`${c.tooltip} ${s?c.visible:""}`,style:{left:`${s.x}px`,top:`${s.y}px`},children:[i.jsxs("div",{className:c.tooltipHeader,children:[i.jsx("span",{className:c.tooltipEmoji,children:"😴"}),i.jsx("span",{children:new Date(s.date).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})})]}),i.jsxs("div",{className:c.tooltipInfo,children:[s.sleepTime&&i.jsxs("div",{className:c.tooltipRow,children:[i.jsxs("span",{className:c.tooltipLabel,children:[i.jsx("span",{children:"🌙"}),i.jsx("span",{children:"Sleep:"})]}),i.jsx("span",{className:c.tooltipValue,children:s.sleepTime})]}),s.wakeTime&&i.jsxs("div",{className:c.tooltipRow,children:[i.jsxs("span",{className:c.tooltipLabel,children:[i.jsx("span",{children:"☀️"}),i.jsx("span",{children:"Wake:"})]}),i.jsx("span",{className:c.tooltipValue,children:s.wakeTime})]}),s.duration!==null&&i.jsxs("div",{className:c.tooltipDuration,children:[i.jsx("span",{children:"⏱️"}),i.jsxs("span",{children:[Math.floor(s.duration),"h ",Math.round(s.duration%1*60),"m"]})]})]})]})]})};ct.__docgenInfo={description:"",methods:[],displayName:"SleepChart",props:{sleepData:{required:!0,tsType:{name:"Array",elements:[{name:"SleepData"}],raw:"SleepData[]"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"800",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"400",computed:!1}},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""}}};const Ft={title:"Organisms/Charts/SleepChart",component:ct,parameters:{layout:"centered"},argTypes:{width:{control:{type:"number",min:400,max:1200,step:50}},height:{control:{type:"number",min:200,max:600,step:50}},onDateClick:{action:"dateClicked"}}},I=e=>{const t=[],r=new Date;for(let a=e-1;a>=0;a--){const n=new Date(r);n.setDate(n.getDate()-a),t.push(n.toISOString().split("T")[0])}return t},j={args:{sleepData:I(7).map(e=>{const t=Math.floor(Math.random()*3)+22,r=Math.floor(Math.random()*3)+6;return{date:e,sleep_time:`${t%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${r}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:800,height:400}},A={args:{sleepData:I(30).map(e=>({date:e,sleep_time:`${(Math.floor(Math.random()*3)+22)%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${Math.floor(Math.random()*2)+7}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`})),width:900,height:400}},z={args:{sleepData:I(14).map((e,t)=>{const r=t%7===5||t%7===6,a=r?Math.floor(Math.random()*4)+24:Math.floor(Math.random()*2)+22,n=r?Math.floor(Math.random()*3)+9:Math.floor(Math.random()*2)+6;return{date:e,sleep_time:`${a%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${n}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:850,height:400}},N={args:{sleepData:I(14).map((e,t)=>({date:e,sleep_time:t%3===0?null:`${(Math.floor(Math.random()*3)+22)%24}:30`,wake_hour:t%3===0?null:`${Math.floor(Math.random()*2)+7}:00`})),width:800,height:400}},H={args:{sleepData:[],width:800,height:400}};var F,X,Y;j.parameters={...j.parameters,docs:{...(F=j.parameters)==null?void 0:F.docs,source:{originalSource:`{
1
+ import{r as b,j as i}from"./iframe-BLM9gPKH.js";import{s as v,a as ut}from"./transform-BKmuZieF.js";import{i as it,l as ht}from"./linear-dkJHgUri.js";import{a as mt,b as ft}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";class V extends Map{constructor(t,r=wt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,n]of t)this.set(a,n)}get(t){return super.get(W(this,t))}has(t){return super.has(W(this,t))}set(t,r){return super.set(gt(this,t),r)}delete(t){return super.delete(Mt(this,t))}}function W({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function gt({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function Mt({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function wt(e){return e!==null&&typeof e=="object"?e.valueOf():e}function E(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var a=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,s=new Array(n);++a<n;)s[a]=e+a*r;return s}var O=1.70158;(function e(t){t=+t;function r(a){return(a=+a)*a*(t*(a-1)+a)}return r.overshoot=e,r})(O);var P=function e(t){t=+t;function r(a){return--a*a*((a+1)*t+a)+1}return r.overshoot=e,r}(O);(function e(t){t=+t;function r(a){return((a*=2)<1?a*a*((t+1)*a-t):(a-=2)*a*((t+1)*a+t)+2)/2}return r.overshoot=e,r})(O);const q=Symbol("implicit");function lt(){var e=new V,t=[],r=[],a=q;function n(s){let p=e.get(s);if(p===void 0){if(a!==q)return a;e.set(s,p=t.push(s)-1)}return r[p%r.length]}return n.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new V;for(const p of s)e.has(p)||e.set(p,t.push(p)-1);return n},n.range=function(s){return arguments.length?(r=Array.from(s),n):r.slice()},n.unknown=function(s){return arguments.length?(a=s,n):a},n.copy=function(){return lt(t,r).unknown(a)},it.apply(n,arguments),n}function dt(){var e=lt().unknown(void 0),t=e.domain,r=e.range,a=0,n=1,s,p,h=!1,M=0,w=0,g=.5;delete e.unknown;function m(){var l=t().length,k=n<a,x=k?n:a,T=k?a:n;s=(T-x)/Math.max(1,l-M+w*2),h&&(s=Math.floor(s)),x+=(T-x-s*(l-M))*g,p=s*(1-M),h&&(x=Math.round(x),p=Math.round(p));var y=E(l).map(function($){return x+s*$});return r(k?y.reverse():y)}return e.domain=function(l){return arguments.length?(t(l),m()):t()},e.range=function(l){return arguments.length?([a,n]=l,a=+a,n=+n,m()):[a,n]},e.rangeRound=function(l){return[a,n]=l,a=+a,n=+n,h=!0,m()},e.bandwidth=function(){return p},e.step=function(){return s},e.round=function(l){return arguments.length?(h=!!l,m()):h},e.padding=function(l){return arguments.length?(M=Math.min(1,w=+l),m()):M},e.paddingInner=function(l){return arguments.length?(M=Math.min(1,l),m()):M},e.paddingOuter=function(l){return arguments.length?(w=+l,m()):w},e.align=function(l){return arguments.length?(g=Math.max(0,Math.min(1,l)),m()):g},e.copy=function(){return dt(t(),[a,n]).round(h).paddingInner(M).paddingOuter(w).align(g)},it.apply(m(),arguments)}const xt="_container_wk2zd_1",_t="_header_wk2zd_7",kt="_title_wk2zd_14",yt="_legend_wk2zd_20",St="_legendItem_wk2zd_25",bt="_sleepDot_wk2zd_33",vt="_wakeDot_wk2zd_42",$t="_chart_wk2zd_51",Dt="_gridLine_wk2zd_55",jt="_sleepBar_wk2zd_60",At="_xAxis_wk2zd_70",zt="_yAxis_wk2zd_71",Nt="_tooltip_wk2zd_96",Ht="_visible_wk2zd_117",It="_tooltipHeader_wk2zd_122",Tt="_tooltipEmoji_wk2zd_133",Rt="_tooltipInfo_wk2zd_138",Et="_tooltipRow_wk2zd_144",Ot="_tooltipLabel_wk2zd_152",Bt="_tooltipValue_wk2zd_158",Lt="_tooltipDuration_wk2zd_163",c={container:xt,header:_t,title:kt,legend:yt,legendItem:St,sleepDot:bt,wakeDot:vt,chart:$t,gridLine:Dt,sleepBar:jt,xAxis:At,yAxis:zt,tooltip:Nt,visible:Ht,tooltipHeader:It,tooltipEmoji:Tt,tooltipInfo:Rt,tooltipRow:Et,tooltipLabel:Ot,tooltipValue:Bt,tooltipDuration:Lt},G=e=>{const[t,r]=e.split(":").map(Number);return t+r/60},C=e=>{const t=Math.floor(e%24),r=t===0?12:t>12?t-12:t,a=t>=12?"PM":"AM",n=Math.round(e%1*60);return`${Math.floor(r)}:${n.toString().padStart(2,"0")} ${a}`},ct=({sleepData:e,width:t=800,height:r=400,onDateClick:a})=>{const n=b.useRef(null),[s,p]=b.useState(null),h=b.useMemo(()=>({top:30,right:30,bottom:50,left:80}),[]),M=t-h.left-h.right,w=r-h.top-h.bottom;return b.useEffect(()=>{const g=()=>{p(null)};return window.addEventListener("scroll",g,!0),()=>{window.removeEventListener("scroll",g,!0)}},[]),b.useEffect(()=>{if(!n.current||e.length===0)return;const g=v(n.current);g.selectAll("*").remove(),g.append("rect").attr("width",t).attr("height",r).attr("fill","transparent").style("pointer-events","all").on("mouseleave",()=>{p(null)});const m=g.append("g").attr("transform",`translate(${h.left},${h.top})`),l=ht().domain([18,42]).range([0,M]),k=e.map(o=>o.date),x=dt().domain(k).range([0,w]).paddingInner(.2).paddingOuter(.1);m.selectAll(".grid-line-x").data(E(18,43,1)).enter().append("line").attr("class",c.gridLine).attr("x1",o=>l(o)).attr("y1",0).attr("x2",o=>l(o)).attr("y2",w).style("stroke",o=>{const d=o%24;return"var(--color-border)"}).style("stroke-opacity",o=>{const d=o%24;return d===0||d===12?.3:d%3===0?.15:.05}).style("stroke-width",o=>{const d=o%24;return d===0||d===12?2:1}),e.forEach(o=>{const d=x(o.date);if(d===void 0)return;const S=x.bandwidth(),D=m.append("g").attr("class",c.sleepBar).style("cursor","pointer").on("click",()=>a==null?void 0:a(o.date));let u=null,f=null;o.sleep_time&&(u=G(o.sleep_time),u<18&&(u+=24)),o.wake_hour&&(f=G(o.wake_hour),u!==null?(f<u||u>=18&&f<18)&&(f+=24):f<12&&(f+=24)),u!==null&&f!==null&&D.append("rect").attr("x",l(u)).attr("y",d).attr("width",0).attr("height",S).attr("rx",S/2).attr("fill","url(#sleepGradient)").attr("opacity",0).attr("stroke","rgba(255,255,255,0.3)").attr("stroke-width",1).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))").transition().duration(800).delay(Math.random()*200).ease(ut).attr("width",Math.max(0,l(f)-l(u))).attr("opacity",.85),u!==null&&D.append("circle").attr("cx",l(u)).attr("cy",d+S/2).attr("r",0).attr("fill","#9B59B6").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(155, 89, 182, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(300+Math.random()*100).ease(P).attr("r",6),f!==null&&D.append("circle").attr("cx",l(f)).attr("cy",d+S/2).attr("r",0).attr("fill","#3498DB").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(52, 152, 219, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(500+Math.random()*100).ease(P).attr("r",6),D.on("mouseenter",function(_){var B;if(v(this).select("rect").transition().duration(200).attr("opacity",1).style("filter","drop-shadow(0 4px 12px rgba(155, 89, 182, 0.5)) brightness(1.1)"),v(this).selectAll("circle").transition().duration(200).attr("r",8),(B=n.current)==null?void 0:B.getBoundingClientRect()){const L=u!==null&&f!==null?f-u:null;p({date:o.date,sleepTime:u!==null?C(u):null,wakeTime:f!==null?C(f):null,duration:L!==null?Math.round(L*100)/100:null,x:_.pageX,y:_.pageY-80})}}).on("mouseleave",function(){v(this).select("rect").transition().duration(200).attr("opacity",.85).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))"),v(this).selectAll("circle").transition().duration(200).attr("r",6),p(null)}).on("mousemove",function(_){p(R=>R?{...R,x:_.pageX,y:_.pageY-80}:null)})});const y=g.append("defs").append("linearGradient").attr("id","sleepGradient").attr("x1","0%").attr("x2","100%");y.append("stop").attr("offset","0%").attr("stop-color","#9B59B6").attr("stop-opacity",1),y.append("stop").attr("offset","50%").attr("stop-color","#7B68A6").attr("stop-opacity",1),y.append("stop").attr("offset","100%").attr("stop-color","#3498DB").attr("stop-opacity",1);const $=E(18,43,3).map(o=>({value:o,label:o===24?"12 AM":o===36?"12 PM":o%24===0?"12 AM":o%24<12?`${o%24} AM`:o%24===12?"12 PM":`${o%24-12} PM`}));m.append("g").attr("class",c.xAxis).attr("transform",`translate(0,${w})`).call(mt(l).tickValues($.map(o=>o.value)).tickFormat(o=>{const d=$.find(S=>S.value===o);return d?d.label:""}).tickSizeOuter(0)).selectAll("text").style("font-weight",o=>{const d=o%24;return d===0||d===12?"600":"400"});const pt=k.filter((o,d)=>d%Math.ceil(k.length/10)===0);m.append("g").attr("class",c.yAxis).call(ft(x).tickValues(pt).tickFormat(o=>{const d=new Date(o);return`${(d.getMonth()+1).toString().padStart(2,"0")}/${d.getDate().toString().padStart(2,"0")}`}))},[e,M,w,h,a,r,t]),i.jsxs("div",{className:c.container,children:[i.jsxs("div",{className:c.header,children:[i.jsx("h3",{className:c.title,children:"Sleep Pattern"}),i.jsxs("div",{className:c.legend,children:[i.jsxs("div",{className:c.legendItem,children:[i.jsx("span",{className:c.sleepDot}),i.jsx("span",{children:"Sleep Time"})]}),i.jsxs("div",{className:c.legendItem,children:[i.jsx("span",{className:c.wakeDot}),i.jsx("span",{children:"Wake Time"})]})]})]}),i.jsx("svg",{ref:n,width:t,height:r,className:c.chart}),s&&i.jsxs("div",{className:`${c.tooltip} ${s?c.visible:""}`,style:{left:`${s.x}px`,top:`${s.y}px`},children:[i.jsxs("div",{className:c.tooltipHeader,children:[i.jsx("span",{className:c.tooltipEmoji,children:"😴"}),i.jsx("span",{children:new Date(s.date).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})})]}),i.jsxs("div",{className:c.tooltipInfo,children:[s.sleepTime&&i.jsxs("div",{className:c.tooltipRow,children:[i.jsxs("span",{className:c.tooltipLabel,children:[i.jsx("span",{children:"🌙"}),i.jsx("span",{children:"Sleep:"})]}),i.jsx("span",{className:c.tooltipValue,children:s.sleepTime})]}),s.wakeTime&&i.jsxs("div",{className:c.tooltipRow,children:[i.jsxs("span",{className:c.tooltipLabel,children:[i.jsx("span",{children:"☀️"}),i.jsx("span",{children:"Wake:"})]}),i.jsx("span",{className:c.tooltipValue,children:s.wakeTime})]}),s.duration!==null&&i.jsxs("div",{className:c.tooltipDuration,children:[i.jsx("span",{children:"⏱️"}),i.jsxs("span",{children:[Math.floor(s.duration),"h ",Math.round(s.duration%1*60),"m"]})]})]})]})]})};ct.__docgenInfo={description:"",methods:[],displayName:"SleepChart",props:{sleepData:{required:!0,tsType:{name:"Array",elements:[{name:"SleepData"}],raw:"SleepData[]"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"800",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"400",computed:!1}},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""}}};const Ft={title:"Organisms/Charts/SleepChart",component:ct,parameters:{layout:"centered"},argTypes:{width:{control:{type:"number",min:400,max:1200,step:50}},height:{control:{type:"number",min:200,max:600,step:50}},onDateClick:{action:"dateClicked"}}},I=e=>{const t=[],r=new Date;for(let a=e-1;a>=0;a--){const n=new Date(r);n.setDate(n.getDate()-a),t.push(n.toISOString().split("T")[0])}return t},j={args:{sleepData:I(7).map(e=>{const t=Math.floor(Math.random()*3)+22,r=Math.floor(Math.random()*3)+6;return{date:e,sleep_time:`${t%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${r}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:800,height:400}},A={args:{sleepData:I(30).map(e=>({date:e,sleep_time:`${(Math.floor(Math.random()*3)+22)%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${Math.floor(Math.random()*2)+7}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`})),width:900,height:400}},z={args:{sleepData:I(14).map((e,t)=>{const r=t%7===5||t%7===6,a=r?Math.floor(Math.random()*4)+24:Math.floor(Math.random()*2)+22,n=r?Math.floor(Math.random()*3)+9:Math.floor(Math.random()*2)+6;return{date:e,sleep_time:`${a%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${n}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:850,height:400}},N={args:{sleepData:I(14).map((e,t)=>({date:e,sleep_time:t%3===0?null:`${(Math.floor(Math.random()*3)+22)%24}:30`,wake_hour:t%3===0?null:`${Math.floor(Math.random()*2)+7}:00`})),width:800,height:400}},H={args:{sleepData:[],width:800,height:400}};var F,X,Y;j.parameters={...j.parameters,docs:{...(F=j.parameters)==null?void 0:F.docs,source:{originalSource:`{
2
2
  args: {
3
3
  sleepData: generateDateRange(7).map(date => {
4
4
  const bedHour = Math.floor(Math.random() * 3) + 22;
@@ -1,4 +1,4 @@
1
- import{r as h,j as n}from"./iframe-DeUB-sow.js";import{u as J}from"./useSound-K12Qio3c.js";import{m as t}from"./proxy-CGOWLFI9.js";import{A as K}from"./index-B91nm_hV.js";const Q="_slider_134f2_2",W="_label_134f2_11",X="_sliderContainer_134f2_19",Y="_track_134f2_29",Z="_fill_134f2_41",ee="_shimmer_134f2_1",ne="_input_134f2_69",ae="_thumb_134f2_96",te="_ripple_134f2_122",ie="_tooltip_134f2_135",se="_tooltipArrow_134f2_152",oe="_valueDisplay_134f2_165",re="_labelsContainer_134f2_177",le="_labelItem_134f2_184",ue="_size-sm_134f2_199",de="_size-lg_134f2_226",ce="_disabled_134f2_254",me="_loading_134f2_269",pe="_loadingTrack_134f2_274",fe="_loadingIndicator_134f2_283",e={slider:Q,label:W,sliderContainer:X,track:Y,fill:Z,shimmer:ee,input:ne,thumb:ae,ripple:te,tooltip:ie,tooltipArrow:se,valueDisplay:oe,labelsContainer:re,labelItem:le,"size-sm":"_size-sm_134f2_199",sizeSm:ue,"size-lg":"_size-lg_134f2_226",sizeLg:de,disabled:ce,loading:me,loadingTrack:pe,loadingIndicator:fe};function ge({value:s,onChange:N,min:g=0,max:l=100,step:q=1,label:o,showValue:V=!1,valueFormatter:b,labels:v=[],config:z={},disabled:u=!1,className:C="",style:x={},loading:y=!1,colorFunction:S,showTooltip:d=!1,tooltipContent:w,soundConfig:k}){const{handlers:I,playSound:M}=J(k),[c,T]=h.useState(!1),[D,m]=h.useState(!1),A=h.useRef(null),{colors:_={},size:L="md",animations:R={}}=z,{duration:H=.2}=R,r=(s-g)/(l-g)*100,E=()=>S?S(s):_.fill?_.fill:`hsl(${r*1.2}, 70%, 50%)`,j=a=>b?b(a):`${a}${l<=10?`/${l}`:""}`,P=a=>{if(u||y)return;const p=Number(a.target.value);M("click"),N(p)},F=()=>{T(!0),d&&m(!0)},O=()=>{T(!1),d&&setTimeout(()=>m(!1),500)},U=()=>{d&&!u&&m(!0)},B=()=>{d&&!c&&m(!1)},i=E(),$=e[`size-${L}`],G=u?e.disabled:y?e.loading:"";return y?n.jsxs("div",{className:`${e.slider} ${$} ${e.loading} ${C}`,style:x,children:[o&&n.jsx("label",{className:e.label,children:o}),n.jsx("div",{className:e.loadingTrack,children:n.jsx(t.div,{className:e.loadingIndicator,animate:{x:["-100%","200%"]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"}})})]}):n.jsxs("div",{className:`${e.slider} ${$} ${G} ${C}`,style:x,children:[o&&n.jsx(t.label,{className:e.label,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},children:o}),n.jsxs(t.div,{className:e.sliderContainer,ref:A,onMouseEnter:U,onMouseLeave:B,whileHover:{scale:1.02},transition:{duration:.1},children:[n.jsx(t.div,{className:e.track,whileHover:{height:8,marginTop:-1},transition:{duration:.1},children:n.jsx(t.div,{className:e.fill,style:{width:`${r}%`,backgroundColor:i},initial:{width:0},animate:{width:`${r}%`},transition:{duration:H,type:"spring",stiffness:300,damping:30},whileHover:{boxShadow:"inset 0 0 0 1px rgba(255,255,255,0.2)"}})}),n.jsx("input",{type:"range",min:g,max:l,step:q,value:s,onChange:P,onMouseDown:F,onMouseUp:O,...I,className:e.input,disabled:u,"aria-label":o}),n.jsx(t.div,{className:e.thumb,style:{left:`${r}%`,backgroundColor:i,borderColor:_.thumb||i},animate:{scale:c?1.3:1,boxShadow:c?`0 0 20px ${i}40`:`0 2px 8px ${i}30`},transition:{duration:.1,type:"spring",stiffness:400,damping:25},whileHover:{scale:1.1,transition:{duration:.1}},children:c&&n.jsx(t.div,{className:e.ripple,initial:{scale:0,opacity:.6},animate:{scale:2,opacity:0},transition:{duration:.5}})}),n.jsx(K,{children:D&&n.jsxs(t.div,{className:e.tooltip,style:{left:`${r}%`,backgroundColor:i},initial:{opacity:0,y:10,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.8},transition:{duration:.2},children:[w?w(s):j(s),n.jsx("div",{className:e.tooltipArrow,style:{borderTopColor:i}})]})})]}),V&&n.jsx(t.div,{className:e.valueDisplay,style:{color:i},initial:{scale:.8},animate:{scale:1},transition:{duration:.2,type:"spring",stiffness:300},children:j(s)},s),v.length>0&&n.jsx("div",{className:e.labelsContainer,children:v.map((a,p)=>{let f=0;return a.position==="start"?f=0:a.position==="end"?f=100:typeof a.position=="number"&&(f=a.position),n.jsx(t.div,{className:e.labelItem,style:{left:`${f}%`,color:a.color},initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{duration:.3,delay:p*.1},whileHover:{scale:1.2,transition:{duration:.1}},children:a.label},p)})})]})}ge.__docgenInfo={description:`Slider component - A beautiful, animated range input
1
+ import{r as h,j as n}from"./iframe-BLM9gPKH.js";import{u as J}from"./useSound-SuqbUlad.js";import{m as t}from"./proxy-BsV6quUP.js";import{A as K}from"./index-vIkE6dHF.js";const Q="_slider_134f2_2",W="_label_134f2_11",X="_sliderContainer_134f2_19",Y="_track_134f2_29",Z="_fill_134f2_41",ee="_shimmer_134f2_1",ne="_input_134f2_69",ae="_thumb_134f2_96",te="_ripple_134f2_122",ie="_tooltip_134f2_135",se="_tooltipArrow_134f2_152",oe="_valueDisplay_134f2_165",re="_labelsContainer_134f2_177",le="_labelItem_134f2_184",ue="_size-sm_134f2_199",de="_size-lg_134f2_226",ce="_disabled_134f2_254",me="_loading_134f2_269",pe="_loadingTrack_134f2_274",fe="_loadingIndicator_134f2_283",e={slider:Q,label:W,sliderContainer:X,track:Y,fill:Z,shimmer:ee,input:ne,thumb:ae,ripple:te,tooltip:ie,tooltipArrow:se,valueDisplay:oe,labelsContainer:re,labelItem:le,"size-sm":"_size-sm_134f2_199",sizeSm:ue,"size-lg":"_size-lg_134f2_226",sizeLg:de,disabled:ce,loading:me,loadingTrack:pe,loadingIndicator:fe};function ge({value:s,onChange:N,min:g=0,max:l=100,step:q=1,label:o,showValue:V=!1,valueFormatter:b,labels:v=[],config:z={},disabled:u=!1,className:C="",style:x={},loading:y=!1,colorFunction:S,showTooltip:d=!1,tooltipContent:w,soundConfig:k}){const{handlers:I,playSound:M}=J(k),[c,T]=h.useState(!1),[D,m]=h.useState(!1),A=h.useRef(null),{colors:_={},size:L="md",animations:R={}}=z,{duration:H=.2}=R,r=(s-g)/(l-g)*100,E=()=>S?S(s):_.fill?_.fill:`hsl(${r*1.2}, 70%, 50%)`,j=a=>b?b(a):`${a}${l<=10?`/${l}`:""}`,P=a=>{if(u||y)return;const p=Number(a.target.value);M("click"),N(p)},F=()=>{T(!0),d&&m(!0)},O=()=>{T(!1),d&&setTimeout(()=>m(!1),500)},U=()=>{d&&!u&&m(!0)},B=()=>{d&&!c&&m(!1)},i=E(),$=e[`size-${L}`],G=u?e.disabled:y?e.loading:"";return y?n.jsxs("div",{className:`${e.slider} ${$} ${e.loading} ${C}`,style:x,children:[o&&n.jsx("label",{className:e.label,children:o}),n.jsx("div",{className:e.loadingTrack,children:n.jsx(t.div,{className:e.loadingIndicator,animate:{x:["-100%","200%"]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"}})})]}):n.jsxs("div",{className:`${e.slider} ${$} ${G} ${C}`,style:x,children:[o&&n.jsx(t.label,{className:e.label,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},children:o}),n.jsxs(t.div,{className:e.sliderContainer,ref:A,onMouseEnter:U,onMouseLeave:B,whileHover:{scale:1.02},transition:{duration:.1},children:[n.jsx(t.div,{className:e.track,whileHover:{height:8,marginTop:-1},transition:{duration:.1},children:n.jsx(t.div,{className:e.fill,style:{width:`${r}%`,backgroundColor:i},initial:{width:0},animate:{width:`${r}%`},transition:{duration:H,type:"spring",stiffness:300,damping:30},whileHover:{boxShadow:"inset 0 0 0 1px rgba(255,255,255,0.2)"}})}),n.jsx("input",{type:"range",min:g,max:l,step:q,value:s,onChange:P,onMouseDown:F,onMouseUp:O,...I,className:e.input,disabled:u,"aria-label":o}),n.jsx(t.div,{className:e.thumb,style:{left:`${r}%`,backgroundColor:i,borderColor:_.thumb||i},animate:{scale:c?1.3:1,boxShadow:c?`0 0 20px ${i}40`:`0 2px 8px ${i}30`},transition:{duration:.1,type:"spring",stiffness:400,damping:25},whileHover:{scale:1.1,transition:{duration:.1}},children:c&&n.jsx(t.div,{className:e.ripple,initial:{scale:0,opacity:.6},animate:{scale:2,opacity:0},transition:{duration:.5}})}),n.jsx(K,{children:D&&n.jsxs(t.div,{className:e.tooltip,style:{left:`${r}%`,backgroundColor:i},initial:{opacity:0,y:10,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.8},transition:{duration:.2},children:[w?w(s):j(s),n.jsx("div",{className:e.tooltipArrow,style:{borderTopColor:i}})]})})]}),V&&n.jsx(t.div,{className:e.valueDisplay,style:{color:i},initial:{scale:.8},animate:{scale:1},transition:{duration:.2,type:"spring",stiffness:300},children:j(s)},s),v.length>0&&n.jsx("div",{className:e.labelsContainer,children:v.map((a,p)=>{let f=0;return a.position==="start"?f=0:a.position==="end"?f=100:typeof a.position=="number"&&(f=a.position),n.jsx(t.div,{className:e.labelItem,style:{left:`${f}%`,color:a.color},initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{duration:.3,delay:p*.1},whileHover:{scale:1.2,transition:{duration:.1}},children:a.label},p)})})]})}ge.__docgenInfo={description:`Slider component - A beautiful, animated range input
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{r as C,j as i}from"./iframe-DeUB-sow.js";import{S as F}from"./Slider-B9WJhWgF.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-K12Qio3c.js";import"./proxy-CGOWLFI9.js";import"./MotionConfigContext-gtuPlUge.js";import"./index-B91nm_hV.js";const D={title:"Atoms/Slider",component:F,parameters:{layout:"centered",docs:{description:{component:"An animated slider component with customizable styling, labels, and dynamic coloring."}}},argTypes:{value:{control:"number"},min:{control:"number"},max:{control:"number"},step:{control:"number"},label:{control:"text"},showValue:{control:"boolean"},showTooltip:{control:"boolean"},disabled:{control:"boolean"},loading:{control:"boolean"},config:{control:"object"}}},n=e=>{const[r,V]=C.useState(e.value||50);return i.jsx("div",{style:{width:"300px",padding:"20px"},children:i.jsx(F,{...e,value:r,onChange:V})})},o={render:n,args:{min:0,max:100,step:1,label:"Default Slider",showValue:!0}},a={render:n,args:{min:1,max:10,value:7,label:"Rating",showValue:!0,labels:[{label:":(",position:"start"},{label:":|",position:50},{label:":)",position:"end"}],colorFunction:e=>e<=3?"#ff4444":e<=6?"#ffa500":"#4caf50",valueFormatter:e=>`${e}/10`}},t={render:n,args:{min:-10,max:40,value:22,step:.5,label:"Temperature",showValue:!0,showTooltip:!0,colorFunction:e=>{const r=(e+10)/50;return r<.3?"#4fc3f7":r<.7?"#66bb6a":"#ff7043"},valueFormatter:e=>`${e} C`}},l={render:n,args:{min:1,max:5,value:3,label:"How are you feeling?",showValue:!0,labels:[{label:"Terrible",position:"start"},{label:"Okay",position:50},{label:"Great",position:"end"}],colorFunction:e=>{const r=["#f44336","#ff9800","#ffc107","#4caf50","#2196f3"];return r[e-1]||r[2]},valueFormatter:e=>["Terrible","Bad","Okay","Good","Great"][e-1]||"Okay",config:{size:"lg"}}},s={render:n,args:{min:0,max:100,value:30,label:"Custom Colors",showValue:!0,config:{colors:{fill:"#e91e63",thumb:"#e91e63",text:"#e91e63"}}}};var u,c,m;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`{
1
+ import{r as C,j as i}from"./iframe-BLM9gPKH.js";import{S as F}from"./Slider-DFt4SqGe.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-SuqbUlad.js";import"./proxy-BsV6quUP.js";import"./MotionConfigContext-E6BOCyHu.js";import"./index-vIkE6dHF.js";const D={title:"Atoms/Slider",component:F,parameters:{layout:"centered",docs:{description:{component:"An animated slider component with customizable styling, labels, and dynamic coloring."}}},argTypes:{value:{control:"number"},min:{control:"number"},max:{control:"number"},step:{control:"number"},label:{control:"text"},showValue:{control:"boolean"},showTooltip:{control:"boolean"},disabled:{control:"boolean"},loading:{control:"boolean"},config:{control:"object"}}},n=e=>{const[r,V]=C.useState(e.value||50);return i.jsx("div",{style:{width:"300px",padding:"20px"},children:i.jsx(F,{...e,value:r,onChange:V})})},o={render:n,args:{min:0,max:100,step:1,label:"Default Slider",showValue:!0}},a={render:n,args:{min:1,max:10,value:7,label:"Rating",showValue:!0,labels:[{label:":(",position:"start"},{label:":|",position:50},{label:":)",position:"end"}],colorFunction:e=>e<=3?"#ff4444":e<=6?"#ffa500":"#4caf50",valueFormatter:e=>`${e}/10`}},t={render:n,args:{min:-10,max:40,value:22,step:.5,label:"Temperature",showValue:!0,showTooltip:!0,colorFunction:e=>{const r=(e+10)/50;return r<.3?"#4fc3f7":r<.7?"#66bb6a":"#ff7043"},valueFormatter:e=>`${e} C`}},l={render:n,args:{min:1,max:5,value:3,label:"How are you feeling?",showValue:!0,labels:[{label:"Terrible",position:"start"},{label:"Okay",position:50},{label:"Great",position:"end"}],colorFunction:e=>{const r=["#f44336","#ff9800","#ffc107","#4caf50","#2196f3"];return r[e-1]||r[2]},valueFormatter:e=>["Terrible","Bad","Okay","Good","Great"][e-1]||"Okay",config:{size:"lg"}}},s={render:n,args:{min:0,max:100,value:30,label:"Custom Colors",showValue:!0,config:{colors:{fill:"#e91e63",thumb:"#e91e63",text:"#e91e63"}}}};var u,c,m;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`{
2
2
  render: InteractiveSlider,
3
3
  args: {
4
4
  min: 0,
@@ -1,4 +1,4 @@
1
- import{r as E,j as D}from"./iframe-DeUB-sow.js";import{R as I,P as O,M as N}from"./Mesh-CwXV3WjE.js";import{T as G}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const P={"soft-aurora-container":"_soft-aurora-container_c4lp8_1"};function H(r){const t=r.replace("#","");return[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255]}const U=`
1
+ import{r as E,j as D}from"./iframe-BLM9gPKH.js";import{R as I,P as O,M as N}from"./Mesh-CwXV3WjE.js";import{T as G}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const P={"soft-aurora-container":"_soft-aurora-container_c4lp8_1"};function H(r){const t=r.replace("#","");return[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255]}const U=`
2
2
  attribute vec2 uv;
3
3
  attribute vec2 position;
4
4
  varying vec2 vUv;
@@ -1,3 +1,3 @@
1
- import{j as e,r as s,R as d}from"./iframe-DeUB-sow.js";import{B as t}from"./Button-wfSXrxMx.js";import{C as c}from"./Checkbox-rs6CCDd2.js";import{T}from"./TextInput-DCOr-Btn.js";import{T as w}from"./Toggle-DviTJSME.js";import{S as E}from"./Slider-B9WJhWgF.js";import{s as n}from"./useSound-K12Qio3c.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-CGOWLFI9.js";import"./MotionConfigContext-gtuPlUge.js";import"./index-B91nm_hV.js";const x=()=>{const[r,g]=s.useState(!0),[i,p]=s.useState(.5),[l,j]=s.useState("digital"),[v,y]=s.useState(!1),[S,f]=s.useState(!1),[C,k]=s.useState(""),[b,B]=s.useState(50);return d.useEffect(()=>{n.setEnabled(r)},[r]),d.useEffect(()=>{n.setVolume(i)},[i]),d.useEffect(()=>{n.setSoundPack(l)},[l]),e.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"0 auto"},children:[e.jsx("h1",{children:"🎵 Sound System Demo"}),e.jsxs("div",{style:{padding:"1.5rem",background:"#f5f5f5",borderRadius:"8px",marginBottom:"2rem"},children:[e.jsx("h2",{children:"Sound Controls"}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(c,{checked:r,onChange:g,label:"Enable Sounds"})}),e.jsxs("div",{style:{marginBottom:"1rem"},children:[e.jsxs("label",{children:["Volume: ",Math.round(i*100),"%"]}),e.jsx("input",{type:"range",min:"0",max:"100",value:i*100,onChange:a=>p(Number(a.target.value)/100),style:{width:"100%",marginTop:"0.5rem"}})]}),e.jsxs("div",{style:{marginBottom:"1rem"},children:[e.jsx("label",{children:"Sound Pack: "}),e.jsxs("select",{value:l,onChange:a=>j(a.target.value),style:{marginLeft:"0.5rem",padding:"0.25rem"},children:[e.jsx("option",{value:"digital",children:"🔊 Digital (Clean & Modern)"}),e.jsx("option",{value:"fantasy",children:"🧙 Fantasy (Magical & Mystical)"}),e.jsx("option",{value:"retro",children:"🎮 Retro (8-bit Gaming)"}),e.jsx("option",{value:"minimal",children:"⚪ Minimal (Subtle & Simple)"}),e.jsx("option",{value:"mechanical",children:"⚙️ Mechanical (Industrial)"})]})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Test Individual Sounds"}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[e.jsx(t,{variant:"primary",size:"small",onClick:()=>n.play("click"),children:"Click Sound"}),e.jsx(t,{variant:"secondary",size:"small",onClick:()=>n.play("hover"),children:"Hover Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("success"),children:"Success Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("error"),children:"Error Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("warning"),children:"Warning Sound"}),e.jsx(t,{variant:"secondary",size:"small",onClick:()=>n.play("toggle"),children:"Toggle Sound"}),e.jsx(t,{variant:"ghost",size:"small",onClick:()=>n.play("type"),children:"Type Sound"}),e.jsx(t,{variant:"ghost",size:"small",onClick:()=>n.play("delete"),children:"Delete Sound"})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Special Effects"}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[e.jsx(t,{variant:"primary",onClick:()=>n.celebration(),children:"🎉 Celebration"}),e.jsx(t,{variant:"secondary",onClick:()=>n.milestone(),children:"⭐ Milestone"})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Components with Sound Integration"}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Button with Sounds"}),e.jsx(t,{variant:"primary",soundConfig:{onClick:!0,onHover:!0},children:"Interactive Button (hover, click)"})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Checkbox with Sound"}),e.jsx(c,{checked:v,onChange:y,label:"Check me!",soundConfig:{onClick:!0}})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Toggle with Sound"}),e.jsx(w,{isOn:S,onToggle:f,leftLabel:"Off",rightLabel:"On",soundConfig:{onClick:!0}})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Input with Sound"}),e.jsx(T,{label:"Type something",value:C,onChange:k,placeholder:"Type to hear typing sounds",enableTypingSounds:!0})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Slider with Sound"}),e.jsx(E,{value:b,onChange:B,min:0,max:100,label:"Adjust me",soundConfig:{onClick:!0}})]})]}),e.jsxs("div",{style:{padding:"1rem",background:"#e8f4f8",borderRadius:"8px",fontSize:"0.9rem"},children:[e.jsx("h3",{children:"ℹ️ How to Use"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Enable sounds using the checkbox above"}),e.jsx("li",{children:"Adjust volume with the slider"}),e.jsx("li",{children:"Click the test buttons to hear individual sounds"}),e.jsx("li",{children:"Interact with the components below to hear sounds in context"}),e.jsx("li",{children:"Note: AudioContext requires user interaction to start (click any button first)"})]})]})]})},L={title:"Atoms/SoundDemo",component:x,parameters:{layout:"fullscreen",docs:{description:{component:"Interactive demo for testing the sound system with Web Audio API"}}}},o={render:()=>e.jsx(x,{})};var m,u,h;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`{
1
+ import{j as e,r as s,R as d}from"./iframe-BLM9gPKH.js";import{B as t}from"./Button-DQla6H3P.js";import{C as c}from"./Checkbox-BEMCpJLS.js";import{T}from"./TextInput-CiEBs1p7.js";import{T as w}from"./Toggle-BQYsA6ul.js";import{S as E}from"./Slider-DFt4SqGe.js";import{s as n}from"./useSound-SuqbUlad.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-BsV6quUP.js";import"./MotionConfigContext-E6BOCyHu.js";import"./index-vIkE6dHF.js";const x=()=>{const[r,g]=s.useState(!0),[i,p]=s.useState(.5),[l,j]=s.useState("digital"),[v,y]=s.useState(!1),[S,f]=s.useState(!1),[C,k]=s.useState(""),[b,B]=s.useState(50);return d.useEffect(()=>{n.setEnabled(r)},[r]),d.useEffect(()=>{n.setVolume(i)},[i]),d.useEffect(()=>{n.setSoundPack(l)},[l]),e.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"0 auto"},children:[e.jsx("h1",{children:"🎵 Sound System Demo"}),e.jsxs("div",{style:{padding:"1.5rem",background:"#f5f5f5",borderRadius:"8px",marginBottom:"2rem"},children:[e.jsx("h2",{children:"Sound Controls"}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(c,{checked:r,onChange:g,label:"Enable Sounds"})}),e.jsxs("div",{style:{marginBottom:"1rem"},children:[e.jsxs("label",{children:["Volume: ",Math.round(i*100),"%"]}),e.jsx("input",{type:"range",min:"0",max:"100",value:i*100,onChange:a=>p(Number(a.target.value)/100),style:{width:"100%",marginTop:"0.5rem"}})]}),e.jsxs("div",{style:{marginBottom:"1rem"},children:[e.jsx("label",{children:"Sound Pack: "}),e.jsxs("select",{value:l,onChange:a=>j(a.target.value),style:{marginLeft:"0.5rem",padding:"0.25rem"},children:[e.jsx("option",{value:"digital",children:"🔊 Digital (Clean & Modern)"}),e.jsx("option",{value:"fantasy",children:"🧙 Fantasy (Magical & Mystical)"}),e.jsx("option",{value:"retro",children:"🎮 Retro (8-bit Gaming)"}),e.jsx("option",{value:"minimal",children:"⚪ Minimal (Subtle & Simple)"}),e.jsx("option",{value:"mechanical",children:"⚙️ Mechanical (Industrial)"})]})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Test Individual Sounds"}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[e.jsx(t,{variant:"primary",size:"small",onClick:()=>n.play("click"),children:"Click Sound"}),e.jsx(t,{variant:"secondary",size:"small",onClick:()=>n.play("hover"),children:"Hover Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("success"),children:"Success Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("error"),children:"Error Sound"}),e.jsx(t,{variant:"outline",size:"small",onClick:()=>n.play("warning"),children:"Warning Sound"}),e.jsx(t,{variant:"secondary",size:"small",onClick:()=>n.play("toggle"),children:"Toggle Sound"}),e.jsx(t,{variant:"ghost",size:"small",onClick:()=>n.play("type"),children:"Type Sound"}),e.jsx(t,{variant:"ghost",size:"small",onClick:()=>n.play("delete"),children:"Delete Sound"})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Special Effects"}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[e.jsx(t,{variant:"primary",onClick:()=>n.celebration(),children:"🎉 Celebration"}),e.jsx(t,{variant:"secondary",onClick:()=>n.milestone(),children:"⭐ Milestone"})]})]}),e.jsxs("div",{style:{marginBottom:"2rem"},children:[e.jsx("h2",{children:"Components with Sound Integration"}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Button with Sounds"}),e.jsx(t,{variant:"primary",soundConfig:{onClick:!0,onHover:!0},children:"Interactive Button (hover, click)"})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Checkbox with Sound"}),e.jsx(c,{checked:v,onChange:y,label:"Check me!",soundConfig:{onClick:!0}})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Toggle with Sound"}),e.jsx(w,{isOn:S,onToggle:f,leftLabel:"Off",rightLabel:"On",soundConfig:{onClick:!0}})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Input with Sound"}),e.jsx(T,{label:"Type something",value:C,onChange:k,placeholder:"Type to hear typing sounds",enableTypingSounds:!0})]}),e.jsxs("div",{style:{marginBottom:"1.5rem"},children:[e.jsx("h3",{children:"Slider with Sound"}),e.jsx(E,{value:b,onChange:B,min:0,max:100,label:"Adjust me",soundConfig:{onClick:!0}})]})]}),e.jsxs("div",{style:{padding:"1rem",background:"#e8f4f8",borderRadius:"8px",fontSize:"0.9rem"},children:[e.jsx("h3",{children:"ℹ️ How to Use"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Enable sounds using the checkbox above"}),e.jsx("li",{children:"Adjust volume with the slider"}),e.jsx("li",{children:"Click the test buttons to hear individual sounds"}),e.jsx("li",{children:"Interact with the components below to hear sounds in context"}),e.jsx("li",{children:"Note: AudioContext requires user interaction to start (click any button first)"})]})]})]})},L={title:"Atoms/SoundDemo",component:x,parameters:{layout:"fullscreen",docs:{description:{component:"Interactive demo for testing the sound system with Web Audio API"}}}},o={render:()=>e.jsx(x,{})};var m,u,h;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`{
2
2
  render: () => <SoundDemo />
3
3
  }`,...(h=(u=o.parameters)==null?void 0:u.docs)==null?void 0:h.source}}};const N=["Default"];export{o as Default,N as __namedExportsOrder,L as default};
@@ -1,4 +1,4 @@
1
- import{r as V,j as le}from"./iframe-DeUB-sow.js";import"./preload-helper-C1FmrZbK.js";function ve({SIM_RESOLUTION:de=128,DYE_RESOLUTION:me=1440,CAPTURE_RESOLUTION:it=512,DENSITY_DISSIPATION:he=3.5,VELOCITY_DISSIPATION:xe=2,PRESSURE:Te=.1,PRESSURE_ITERATIONS:pe=20,CURL:Re=3,SPLAT_RADIUS:Ee=.2,SPLAT_FORCE:ge=6e3,SHADING:Se=!0,COLOR_UPDATE_SPEED:De=10,BACK_COLOR:ot={r:.5,g:0,b:0},TRANSPARENT:at=!0}){const H=V.useRef(null),U=V.useRef(null);return V.useEffect(()=>{const c=H.current;if(!c)return;let q=!0;function Ae(){this.id=-1,this.texcoordX=0,this.texcoordY=0,this.prevTexcoordX=0,this.prevTexcoordY=0,this.deltaX=0,this.deltaY=0,this.down=!1,this.moved=!1,this.color=[0,0,0]}let v={SIM_RESOLUTION:de,DYE_RESOLUTION:me,DENSITY_DISSIPATION:he,VELOCITY_DISSIPATION:xe,PRESSURE:Te,PRESSURE_ITERATIONS:pe,CURL:Re,SPLAT_RADIUS:Ee,SPLAT_FORCE:ge,SHADING:Se,COLOR_UPDATE_SPEED:De},_=[new Ae];const{gl:t,ext:E}=_e(c);E.supportLinearFiltering||(v.DYE_RESOLUTION=256,v.SHADING=!1);function _e(e){const r={alpha:!0,depth:!1,stencil:!1,antialias:!1,preserveDrawingBuffer:!1};let i=e.getContext("webgl2",r);const o=!!i;o||(i=e.getContext("webgl",r)||e.getContext("experimental-webgl",r));let a,n;o?(i.getExtension("EXT_color_buffer_float"),n=i.getExtension("OES_texture_float_linear")):(a=i.getExtension("OES_texture_half_float"),n=i.getExtension("OES_texture_half_float_linear")),i.clearColor(0,0,0,1);const u=o?i.HALF_FLOAT:a&&a.HALF_FLOAT_OES;let f,s,R;return o?(f=S(i,i.RGBA16F,i.RGBA,u),s=S(i,i.RG16F,i.RG,u),R=S(i,i.R16F,i.RED,u)):(f=S(i,i.RGBA,i.RGBA,u),s=S(i,i.RGBA,i.RGBA,u),R=S(i,i.RGBA,i.RGBA,u)),{gl:i,ext:{formatRGBA:f,formatRG:s,formatR:R,halfFloatTexType:u,supportLinearFiltering:n}}}function S(e,r,i,o){if(!ye(e,r,i,o))switch(r){case e.R16F:return S(e,e.RG16F,e.RG,o);case e.RG16F:return S(e,e.RGBA16F,e.RGBA,o);default:return null}return{internalFormat:r,format:i}}function ye(e,r,i,o){const a=e.createTexture();e.bindTexture(e.TEXTURE_2D,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texImage2D(e.TEXTURE_2D,0,r,4,4,0,i,o,null);const n=e.createFramebuffer();return e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a,0),e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE}class Fe{constructor(r,i){this.vertexShader=r,this.fragmentShaderSource=i,this.programs=[],this.activeProgram=null,this.uniforms=[]}setKeywords(r){let i=0;for(let a=0;a<r.length;a++)i+=rt(r[a]);let o=this.programs[i];if(o==null){let a=h(t.FRAGMENT_SHADER,this.fragmentShaderSource,r);o=W(this.vertexShader,a),this.programs[i]=o}o!==this.activeProgram&&(this.uniforms=k(o),this.activeProgram=o)}bind(){t.useProgram(this.activeProgram)}}class g{constructor(r,i){this.uniforms={},this.program=W(r,i),this.uniforms=k(this.program)}bind(){t.useProgram(this.program)}}function W(e,r){let i=t.createProgram();return t.attachShader(i,e),t.attachShader(i,r),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||console.trace(t.getProgramInfoLog(i)),i}function k(e){let r=[],i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS);for(let o=0;o<i;o++){let a=t.getActiveUniform(e,o).name;r[a]=t.getUniformLocation(e,a)}return r}function h(e,r,i){r=we(r,i);const o=t.createShader(e);return t.shaderSource(o,r),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS)||console.trace(t.getShaderInfoLog(o)),o}function we(e,r){if(!r)return e;let i="";return r.forEach(o=>{i+="#define "+o+`
1
+ import{r as V,j as le}from"./iframe-BLM9gPKH.js";import"./preload-helper-C1FmrZbK.js";function ve({SIM_RESOLUTION:de=128,DYE_RESOLUTION:me=1440,CAPTURE_RESOLUTION:it=512,DENSITY_DISSIPATION:he=3.5,VELOCITY_DISSIPATION:xe=2,PRESSURE:Te=.1,PRESSURE_ITERATIONS:pe=20,CURL:Re=3,SPLAT_RADIUS:Ee=.2,SPLAT_FORCE:ge=6e3,SHADING:Se=!0,COLOR_UPDATE_SPEED:De=10,BACK_COLOR:ot={r:.5,g:0,b:0},TRANSPARENT:at=!0}){const H=V.useRef(null),U=V.useRef(null);return V.useEffect(()=>{const c=H.current;if(!c)return;let q=!0;function Ae(){this.id=-1,this.texcoordX=0,this.texcoordY=0,this.prevTexcoordX=0,this.prevTexcoordY=0,this.deltaX=0,this.deltaY=0,this.down=!1,this.moved=!1,this.color=[0,0,0]}let v={SIM_RESOLUTION:de,DYE_RESOLUTION:me,DENSITY_DISSIPATION:he,VELOCITY_DISSIPATION:xe,PRESSURE:Te,PRESSURE_ITERATIONS:pe,CURL:Re,SPLAT_RADIUS:Ee,SPLAT_FORCE:ge,SHADING:Se,COLOR_UPDATE_SPEED:De},_=[new Ae];const{gl:t,ext:E}=_e(c);E.supportLinearFiltering||(v.DYE_RESOLUTION=256,v.SHADING=!1);function _e(e){const r={alpha:!0,depth:!1,stencil:!1,antialias:!1,preserveDrawingBuffer:!1};let i=e.getContext("webgl2",r);const o=!!i;o||(i=e.getContext("webgl",r)||e.getContext("experimental-webgl",r));let a,n;o?(i.getExtension("EXT_color_buffer_float"),n=i.getExtension("OES_texture_float_linear")):(a=i.getExtension("OES_texture_half_float"),n=i.getExtension("OES_texture_half_float_linear")),i.clearColor(0,0,0,1);const u=o?i.HALF_FLOAT:a&&a.HALF_FLOAT_OES;let f,s,R;return o?(f=S(i,i.RGBA16F,i.RGBA,u),s=S(i,i.RG16F,i.RG,u),R=S(i,i.R16F,i.RED,u)):(f=S(i,i.RGBA,i.RGBA,u),s=S(i,i.RGBA,i.RGBA,u),R=S(i,i.RGBA,i.RGBA,u)),{gl:i,ext:{formatRGBA:f,formatRG:s,formatR:R,halfFloatTexType:u,supportLinearFiltering:n}}}function S(e,r,i,o){if(!ye(e,r,i,o))switch(r){case e.R16F:return S(e,e.RG16F,e.RG,o);case e.RG16F:return S(e,e.RGBA16F,e.RGBA,o);default:return null}return{internalFormat:r,format:i}}function ye(e,r,i,o){const a=e.createTexture();e.bindTexture(e.TEXTURE_2D,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texImage2D(e.TEXTURE_2D,0,r,4,4,0,i,o,null);const n=e.createFramebuffer();return e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a,0),e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE}class Fe{constructor(r,i){this.vertexShader=r,this.fragmentShaderSource=i,this.programs=[],this.activeProgram=null,this.uniforms=[]}setKeywords(r){let i=0;for(let a=0;a<r.length;a++)i+=rt(r[a]);let o=this.programs[i];if(o==null){let a=h(t.FRAGMENT_SHADER,this.fragmentShaderSource,r);o=W(this.vertexShader,a),this.programs[i]=o}o!==this.activeProgram&&(this.uniforms=k(o),this.activeProgram=o)}bind(){t.useProgram(this.activeProgram)}}class g{constructor(r,i){this.uniforms={},this.program=W(r,i),this.uniforms=k(this.program)}bind(){t.useProgram(this.program)}}function W(e,r){let i=t.createProgram();return t.attachShader(i,e),t.attachShader(i,r),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||console.trace(t.getProgramInfoLog(i)),i}function k(e){let r=[],i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS);for(let o=0;o<i;o++){let a=t.getActiveUniform(e,o).name;r[a]=t.getUniformLocation(e,a)}return r}function h(e,r,i){r=we(r,i);const o=t.createShader(e);return t.shaderSource(o,r),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS)||console.trace(t.getShaderInfoLog(o)),o}function we(e,r){if(!r)return e;let i="";return r.forEach(o=>{i+="#define "+o+`
2
2
  `}),i+e}const T=h(t.VERTEX_SHADER,`
3
3
  precision highp float;
4
4
  attribute vec2 aPosition;
@@ -1,4 +1,4 @@
1
- import{r as g,j as f}from"./iframe-DeUB-sow.js";import"./preload-helper-C1FmrZbK.js";const h={"card-spotlight":"_card-spotlight_leen8_1"},n=({children:c,className:p="",spotlightColor:u="rgba(255, 255, 255, 0.25)"})=>{const e=g.useRef(null),d=o=>{const r=e.current.getBoundingClientRect(),i=o.clientX-r.left,m=o.clientY-r.top;e.current.style.setProperty("--mouse-x",`${i}px`),e.current.style.setProperty("--mouse-y",`${m}px`),e.current.style.setProperty("--spotlight-color",u)};return f.jsx("div",{ref:e,onMouseMove:d,className:`${h["card-spotlight"]} ${p}`,children:c})};n.__docgenInfo={description:"",methods:[],displayName:"SpotlightCard",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},spotlightColor:{defaultValue:{value:"'rgba(255, 255, 255, 0.25)'",computed:!1},required:!1}}};const C={title:"ReactBits/Components/SpotlightCard",component:n,parameters:{layout:"fullscreen"}},t={args:{children:"Hello World",spotlightColor:"rgba(255, 255, 255, 0.25)"}};var s,l,a;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
1
+ import{r as g,j as f}from"./iframe-BLM9gPKH.js";import"./preload-helper-C1FmrZbK.js";const h={"card-spotlight":"_card-spotlight_leen8_1"},n=({children:c,className:p="",spotlightColor:u="rgba(255, 255, 255, 0.25)"})=>{const e=g.useRef(null),d=o=>{const r=e.current.getBoundingClientRect(),i=o.clientX-r.left,m=o.clientY-r.top;e.current.style.setProperty("--mouse-x",`${i}px`),e.current.style.setProperty("--mouse-y",`${m}px`),e.current.style.setProperty("--spotlight-color",u)};return f.jsx("div",{ref:e,onMouseMove:d,className:`${h["card-spotlight"]} ${p}`,children:c})};n.__docgenInfo={description:"",methods:[],displayName:"SpotlightCard",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},spotlightColor:{defaultValue:{value:"'rgba(255, 255, 255, 0.25)'",computed:!1},required:!1}}};const C={title:"ReactBits/Components/SpotlightCard",component:n,parameters:{layout:"fullscreen"}},t={args:{children:"Hello World",spotlightColor:"rgba(255, 255, 255, 0.25)"}};var s,l,a;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
2
2
  args: {
3
3
  children: 'Hello World',
4
4
  spotlightColor: 'rgba(255, 255, 255, 0.25)'
@@ -1,4 +1,4 @@
1
- import{r as c,j as t}from"./iframe-DeUB-sow.js";import{m as k}from"./proxy-CGOWLFI9.js";import{u as R}from"./use-motion-value-StM-uKCi.js";import{u as q}from"./use-transform-D3sLak7o.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-gtuPlUge.js";const $="_card_1aymn_8",o={"stack-container":"_stack-container_1aymn_1","card-rotate":"_card-rotate_1aymn_8","card-rotate-disabled":"_card-rotate-disabled_1aymn_15",card:$,"card-image":"_card-image_1aymn_38"};function I({children:n,onSendToBack:g,sensitivity:s,disableDrag:u=!1}){const d=R(0),i=R(0),m=q(i,[-100,100],[60,-60]),f=q(d,[-100,100],[-60,60]);function b(y,p){Math.abs(p.offset.x)>s||Math.abs(p.offset.y)>s?g():(d.set(0),i.set(0))}return u?t.jsx(k.div,{className:`${o["card-rotate-disabled"]}`,style:{x:0,y:0},children:n}):t.jsx(k.div,{className:`${o["card-rotate"]}`,style:{x:d,y:i,rotateX:m,rotateY:f},drag:!0,dragConstraints:{top:0,right:0,bottom:0,left:0},dragElastic:.6,whileTap:{cursor:"grabbing"},onDragEnd:b,children:n})}function O({randomRotation:n=!1,sensitivity:g=200,cards:s=[],animationConfig:u={stiffness:260,damping:20},sendToBackOnClick:d=!1,autoplay:i=!1,autoplayDelay:m=3e3,pauseOnHover:f=!1,mobileClickOnly:b=!1,mobileBreakpoint:y=768}){const[p,S]=c.useState(!1),[j,x]=c.useState(!1);c.useEffect(()=>{const e=()=>{S(window.innerWidth<y)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[y]);const w=b&&p,D=d||w,[r,_]=c.useState(()=>s.length?s.map((e,a)=>({id:a+1,content:e})):[{id:1,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1480074568708-e7b720bb3f09?q=80&w=500&auto=format",alt:"card-1",className:`${o["card-image"]}`})},{id:2,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1449844908441-8829872d2607?q=80&w=500&auto=format",alt:"card-2",className:`${o["card-image"]}`})},{id:3,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1452626212852-811d58933cae?q=80&w=500&auto=format",alt:"card-3",className:`${o["card-image"]}`})},{id:4,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1572120360610-d971b9d7767c?q=80&w=500&auto=format",alt:"card-4",className:`${o["card-image"]}`})}]);c.useEffect(()=>{s.length&&_(s.map((e,a)=>({id:a+1,content:e})))},[s]);const v=e=>{_(a=>{const l=[...a],M=l.findIndex(F=>F.id===e),[N]=l.splice(M,1);return l.unshift(N),l})};return c.useEffect(()=>{if(i&&r.length>1&&!j){const e=setInterval(()=>{const a=r[r.length-1].id;v(a)},m);return()=>clearInterval(e)}},[i,m,r,j]),t.jsx("div",{className:`${o["stack-container"]}`,onMouseEnter:()=>f&&x(!0),onMouseLeave:()=>f&&x(!1),children:r.map((e,a)=>{const l=n?Math.random()*10-5:0;return t.jsx(I,{onSendToBack:()=>v(e.id),sensitivity:g,disableDrag:w,children:t.jsx(k.div,{className:`${o.card}`,onClick:()=>D&&v(e.id),animate:{rotateZ:(r.length-a-1)*4+l,scale:1+a*.06-r.length*.06,transformOrigin:"90% 90%"},initial:!1,transition:{type:"spring",stiffness:u.stiffness,damping:u.damping},children:e.content})},e.id)})})}O.__docgenInfo={description:"",methods:[],displayName:"Stack",props:{randomRotation:{defaultValue:{value:"false",computed:!1},required:!1},sensitivity:{defaultValue:{value:"200",computed:!1},required:!1},cards:{defaultValue:{value:"[]",computed:!1},required:!1},animationConfig:{defaultValue:{value:"{ stiffness: 260, damping: 20 }",computed:!1},required:!1},sendToBackOnClick:{defaultValue:{value:"false",computed:!1},required:!1},autoplay:{defaultValue:{value:"false",computed:!1},required:!1},autoplayDelay:{defaultValue:{value:"3000",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},mobileClickOnly:{defaultValue:{value:"false",computed:!1},required:!1},mobileBreakpoint:{defaultValue:{value:"768",computed:!1},required:!1}}};const W={title:"ReactBits/Components/Stack",component:O,parameters:{layout:"fullscreen"}},h={args:{randomRotation:!1,sensitivity:200,sendToBackOnClick:!1,autoplay:!1,autoplayDelay:3e3,pauseOnHover:!1,mobileClickOnly:!1,cards:[t.jsx("img",{src:"https://picsum.photos/seed/a/400/300",alt:"card-1",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"1"),t.jsx("img",{src:"https://picsum.photos/seed/b/400/300",alt:"card-2",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"2"),t.jsx("img",{src:"https://picsum.photos/seed/c/400/300",alt:"card-3",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"3"),t.jsx("img",{src:"https://picsum.photos/seed/d/400/300",alt:"card-4",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"4")]}};var E,C,V;h.parameters={...h.parameters,docs:{...(E=h.parameters)==null?void 0:E.docs,source:{originalSource:`{
1
+ import{r as c,j as t}from"./iframe-BLM9gPKH.js";import{m as k}from"./proxy-BsV6quUP.js";import{u as R}from"./use-motion-value-CYCvXY5m.js";import{u as q}from"./use-transform-CxdHJNbN.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-E6BOCyHu.js";const $="_card_1aymn_8",o={"stack-container":"_stack-container_1aymn_1","card-rotate":"_card-rotate_1aymn_8","card-rotate-disabled":"_card-rotate-disabled_1aymn_15",card:$,"card-image":"_card-image_1aymn_38"};function I({children:n,onSendToBack:g,sensitivity:s,disableDrag:u=!1}){const d=R(0),i=R(0),m=q(i,[-100,100],[60,-60]),f=q(d,[-100,100],[-60,60]);function b(y,p){Math.abs(p.offset.x)>s||Math.abs(p.offset.y)>s?g():(d.set(0),i.set(0))}return u?t.jsx(k.div,{className:`${o["card-rotate-disabled"]}`,style:{x:0,y:0},children:n}):t.jsx(k.div,{className:`${o["card-rotate"]}`,style:{x:d,y:i,rotateX:m,rotateY:f},drag:!0,dragConstraints:{top:0,right:0,bottom:0,left:0},dragElastic:.6,whileTap:{cursor:"grabbing"},onDragEnd:b,children:n})}function O({randomRotation:n=!1,sensitivity:g=200,cards:s=[],animationConfig:u={stiffness:260,damping:20},sendToBackOnClick:d=!1,autoplay:i=!1,autoplayDelay:m=3e3,pauseOnHover:f=!1,mobileClickOnly:b=!1,mobileBreakpoint:y=768}){const[p,S]=c.useState(!1),[j,x]=c.useState(!1);c.useEffect(()=>{const e=()=>{S(window.innerWidth<y)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[y]);const w=b&&p,D=d||w,[r,_]=c.useState(()=>s.length?s.map((e,a)=>({id:a+1,content:e})):[{id:1,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1480074568708-e7b720bb3f09?q=80&w=500&auto=format",alt:"card-1",className:`${o["card-image"]}`})},{id:2,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1449844908441-8829872d2607?q=80&w=500&auto=format",alt:"card-2",className:`${o["card-image"]}`})},{id:3,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1452626212852-811d58933cae?q=80&w=500&auto=format",alt:"card-3",className:`${o["card-image"]}`})},{id:4,content:t.jsx("img",{src:"https://images.unsplash.com/photo-1572120360610-d971b9d7767c?q=80&w=500&auto=format",alt:"card-4",className:`${o["card-image"]}`})}]);c.useEffect(()=>{s.length&&_(s.map((e,a)=>({id:a+1,content:e})))},[s]);const v=e=>{_(a=>{const l=[...a],M=l.findIndex(F=>F.id===e),[N]=l.splice(M,1);return l.unshift(N),l})};return c.useEffect(()=>{if(i&&r.length>1&&!j){const e=setInterval(()=>{const a=r[r.length-1].id;v(a)},m);return()=>clearInterval(e)}},[i,m,r,j]),t.jsx("div",{className:`${o["stack-container"]}`,onMouseEnter:()=>f&&x(!0),onMouseLeave:()=>f&&x(!1),children:r.map((e,a)=>{const l=n?Math.random()*10-5:0;return t.jsx(I,{onSendToBack:()=>v(e.id),sensitivity:g,disableDrag:w,children:t.jsx(k.div,{className:`${o.card}`,onClick:()=>D&&v(e.id),animate:{rotateZ:(r.length-a-1)*4+l,scale:1+a*.06-r.length*.06,transformOrigin:"90% 90%"},initial:!1,transition:{type:"spring",stiffness:u.stiffness,damping:u.damping},children:e.content})},e.id)})})}O.__docgenInfo={description:"",methods:[],displayName:"Stack",props:{randomRotation:{defaultValue:{value:"false",computed:!1},required:!1},sensitivity:{defaultValue:{value:"200",computed:!1},required:!1},cards:{defaultValue:{value:"[]",computed:!1},required:!1},animationConfig:{defaultValue:{value:"{ stiffness: 260, damping: 20 }",computed:!1},required:!1},sendToBackOnClick:{defaultValue:{value:"false",computed:!1},required:!1},autoplay:{defaultValue:{value:"false",computed:!1},required:!1},autoplayDelay:{defaultValue:{value:"3000",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},mobileClickOnly:{defaultValue:{value:"false",computed:!1},required:!1},mobileBreakpoint:{defaultValue:{value:"768",computed:!1},required:!1}}};const W={title:"ReactBits/Components/Stack",component:O,parameters:{layout:"fullscreen"}},h={args:{randomRotation:!1,sensitivity:200,sendToBackOnClick:!1,autoplay:!1,autoplayDelay:3e3,pauseOnHover:!1,mobileClickOnly:!1,cards:[t.jsx("img",{src:"https://picsum.photos/seed/a/400/300",alt:"card-1",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"1"),t.jsx("img",{src:"https://picsum.photos/seed/b/400/300",alt:"card-2",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"2"),t.jsx("img",{src:"https://picsum.photos/seed/c/400/300",alt:"card-3",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"3"),t.jsx("img",{src:"https://picsum.photos/seed/d/400/300",alt:"card-4",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:12}},"4")]}};var E,C,V;h.parameters={...h.parameters,docs:{...(E=h.parameters)==null?void 0:E.docs,source:{originalSource:`{
2
2
  args: {
3
3
  randomRotation: false,
4
4
  sensitivity: 200,
@@ -1,4 +1,4 @@
1
- import{r as s,R as le,j as r}from"./iframe-DeUB-sow.js";import{g as l}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const a={"staggered-menu-wrapper":"_staggered-menu-wrapper_rbage_1","staggered-menu-header":"_staggered-menu-header_rbage_19","sm-logo":"_sm-logo_rbage_37","sm-logo-img":"_sm-logo-img_rbage_43","sm-toggle":"_sm-toggle_rbage_50","sm-toggle-textWrap":"_sm-toggle-textWrap_rbage_74","sm-toggle-textInner":"_sm-toggle-textInner_rbage_84","sm-toggle-line":"_sm-toggle-line_rbage_90","sm-icon":"_sm-icon_rbage_96","sm-panel-itemWrap":"_sm-panel-itemWrap_rbage_107","sm-icon-line":"_sm-icon-line_rbage_113","staggered-menu-panel":"_staggered-menu-panel_rbage_129","sm-prelayers":"_sm-prelayers_rbage_151","sm-prelayer":"_sm-prelayer_rbage_151","sm-panel-inner":"_sm-panel-inner_rbage_175","sm-socials":"_sm-socials_rbage_182","sm-socials-title":"_sm-socials-title_rbage_190","sm-socials-list":"_sm-socials-list_rbage_197","sm-socials-link":"_sm-socials-link_rbage_208","sm-panel-list":"_sm-panel-list_rbage_258","sm-panel-item":"_sm-panel-item_rbage_107","sm-panel-itemLabel":"_sm-panel-itemLabel_rbage_302"},oe=({position:k="right",colors:P=["#B19EEF","#5227FF"],items:T=[],socialItems:V=[],displaySocials:ce=!0,displayItemNumbering:ue=!0,className:D,logoUrl:me="/src/assets/logos/reactbits-gh-white.svg",menuButtonColor:b="#fff",openMenuButtonColor:v="#fff",accentColor:G="#5227FF",changeMenuColorOnOpen:L=!0,isFixed:fe=!1,closeOnClickAway:U=!0,onMenuOpen:N,onMenuClose:h})=>{const[y,z]=s.useState(!1),R=s.useRef(!1),_=s.useRef(null),J=s.useRef(null),I=s.useRef([]),K=s.useRef(null),Q=s.useRef(null),W=s.useRef(null),H=s.useRef(null),pe=s.useRef(null),[ge,de]=s.useState(["Menu","Close"]),S=s.useRef(null),w=s.useRef(null),O=s.useRef(null),X=s.useRef(null),Y=s.useRef(null),p=s.useRef(null),j=s.useRef(!1),Z=s.useRef(null);s.useLayoutEffect(()=>{const e=l.context(()=>{const t=_.current,n=J.current,o=K.current,m=Q.current,i=W.current,c=H.current;if(!t||!o||!m||!i||!c)return;let f=[];n&&(f=Array.from(n.querySelectorAll(".sm-prelayer"))),I.current=f;const u=k==="left"?-100:100;l.set([t,...f],{xPercent:u}),l.set(o,{transformOrigin:"50% 50%",rotate:0}),l.set(m,{transformOrigin:"50% 50%",rotate:90}),l.set(i,{rotate:0,transformOrigin:"50% 50%"}),l.set(c,{yPercent:0}),p.current&&l.set(p.current,{color:b})});return()=>e.revert()},[b,k]);const M=s.useCallback(()=>{var ae,se;const e=_.current,t=I.current;if(!e)return null;(ae=S.current)==null||ae.kill(),w.current&&(w.current.kill(),w.current=null),(se=Z.current)==null||se.kill();const n=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),o=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),m=e.querySelector(".sm-socials-title"),i=Array.from(e.querySelectorAll(".sm-socials-link")),c=t.map(d=>({el:d,start:Number(l.getProperty(d,"xPercent"))})),f=Number(l.getProperty(e,"xPercent"));n.length&&l.set(n,{yPercent:140,rotate:10}),o.length&&l.set(o,{"--sm-num-opacity":0}),m&&l.set(m,{opacity:0}),i.length&&l.set(i,{y:25,opacity:0});const u=l.timeline({paused:!0});c.forEach((d,A)=>{u.fromTo(d.el,{xPercent:d.start},{xPercent:0,duration:.5,ease:"power4.out"},A*.07)});const g=(c.length?(c.length-1)*.07:0)+(c.length?.08:0),B=.65;if(u.fromTo(e,{xPercent:f},{xPercent:0,duration:B,ease:"power4.out"},g),n.length){const A=g+B*.15;u.to(n,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},A),o.length&&u.to(o,{duration:.6,ease:"power2.out","--sm-num-opacity":1,stagger:{each:.08,from:"start"}},A+.1)}if(m||i.length){const d=g+B*.4;m&&u.to(m,{opacity:1,duration:.5,ease:"power2.out"},d),i.length&&u.to(i,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:()=>{l.set(i,{clearProps:"opacity"})}},d+.04)}return S.current=u,u},[]),ee=s.useCallback(()=>{if(j.current)return;j.current=!0;const e=M();e?(e.eventCallback("onComplete",()=>{j.current=!1}),e.play(0)):j.current=!1},[M]),$=s.useCallback(()=>{var m,i,c;(m=S.current)==null||m.kill(),S.current=null,(i=Z.current)==null||i.kill();const e=_.current,t=I.current;if(!e)return;const n=[...t,e];(c=w.current)==null||c.kill();const o=k==="left"?-100:100;w.current=l.to(n,{xPercent:o,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:()=>{const f=Array.from(e.querySelectorAll(".sm-panel-itemLabel"));f.length&&l.set(f,{yPercent:140,rotate:10});const u=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));u.length&&l.set(u,{"--sm-num-opacity":0});const x=e.querySelector(".sm-socials-title"),g=Array.from(e.querySelectorAll(".sm-socials-link"));x&&l.set(x,{opacity:0}),g.length&&l.set(g,{y:25,opacity:0}),j.current=!1}})},[k]),q=s.useCallback(e=>{var n;const t=W.current;t&&((n=O.current)==null||n.kill(),e?O.current=l.to(t,{rotate:225,duration:.8,ease:"power4.out",overwrite:"auto"}):O.current=l.to(t,{rotate:0,duration:.35,ease:"power3.inOut",overwrite:"auto"}))},[]),E=s.useCallback(e=>{var n;const t=p.current;if(t)if((n=Y.current)==null||n.kill(),L){const o=e?v:b;Y.current=l.to(t,{color:o,delay:.18,duration:.3,ease:"power2.out"})}else l.set(t,{color:b})},[v,b,L]);le.useEffect(()=>{if(p.current)if(L){const e=R.current?v:b;l.set(p.current,{color:e})}else l.set(p.current,{color:b})},[L,b,v]);const F=s.useCallback(e=>{var x;const t=H.current;if(!t)return;(x=X.current)==null||x.kill();const n=e?"Menu":"Close",o=e?"Close":"Menu",m=3,i=[n];let c=n;for(let g=0;g<m;g++)c=c==="Menu"?"Close":"Menu",i.push(c);c!==o&&i.push(o),i.push(o),de(i),l.set(t,{yPercent:0});const f=i.length,u=(f-1)/f*100;X.current=l.to(t,{yPercent:-u,duration:.5+f*.07,ease:"power4.out"})},[]),be=s.useCallback(()=>{const e=!R.current;R.current=e,z(e),e?(N==null||N(),ee()):(h==null||h(),$()),q(e),E(e),F(e)},[ee,$,q,E,F,N,h]),te=s.useCallback(()=>{R.current&&(R.current=!1,z(!1),h==null||h(),$(),q(!1),E(!1),F(!1))},[$,q,E,F,h]);return le.useEffect(()=>{if(!U||!y)return;const e=t=>{_.current&&!_.current.contains(t.target)&&p.current&&!p.current.contains(t.target)&&te()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[U,y,te]),r.jsxs("div",{className:(D?D+" ":"")+a["staggered-menu-wrapper"]+(fe?" fixed-wrapper":""),style:G?{"--sm-accent":G}:void 0,"data-position":k,"data-open":y||void 0,children:[r.jsx("div",{ref:J,className:`${a["sm-prelayers"]}`,"aria-hidden":"true",children:(()=>{let t=[...P&&P.length?P.slice(0,4):["#1e1e22","#35353c"]];if(t.length>=3){const n=Math.floor(t.length/2);t.splice(n,1)}return t.map((n,o)=>r.jsx("div",{className:`${a["sm-prelayer"]}`,style:{background:n}},o))})()}),r.jsxs("header",{className:`${a["staggered-menu-header"]}`,"aria-label":"Main navigation header",children:[r.jsx("div",{className:`${a["sm-logo"]}`,"aria-label":"Logo",children:r.jsx("img",{src:me||"/src/assets/logos/reactbits-gh-white.svg",alt:"Logo",className:`${a["sm-logo-img"]}`,draggable:!1,width:110,height:24})}),r.jsxs("button",{ref:p,className:`${a["sm-toggle"]}`,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,"aria-controls":a["staggered-menu-panel"],onClick:be,type:"button",children:[r.jsx("span",{ref:pe,className:`${a["sm-toggle-textWrap"]}`,"aria-hidden":"true",children:r.jsx("span",{ref:H,className:`${a["sm-toggle-textInner"]}`,children:ge.map((e,t)=>r.jsx("span",{className:`${a["sm-toggle-line"]}`,children:e},t))})}),r.jsxs("span",{ref:W,className:`${a["sm-icon"]}`,"aria-hidden":"true",children:[r.jsx("span",{ref:K,className:`${a["sm-icon-line"]}`}),r.jsx("span",{ref:Q,className:`${a["sm-icon-line"]} ${a["sm-icon-line"]}-v`})]})]})]}),r.jsx("aside",{id:a["staggered-menu-panel"],ref:_,className:`${a["staggered-menu-panel"]}`,"aria-hidden":!y,children:r.jsxs("div",{className:`${a["sm-panel-inner"]}`,children:[r.jsx("ul",{className:`${a["sm-panel-list"]}`,role:"list","data-numbering":ue||void 0,children:T&&T.length?T.map((e,t)=>r.jsx("li",{className:`${a["sm-panel-itemWrap"]}`,children:r.jsx("a",{className:`${a["sm-panel-item"]}`,href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:r.jsx("span",{className:`${a["sm-panel-itemLabel"]}`,children:e.label})})},e.label+t)):r.jsx("li",{className:`${a["sm-panel-itemWrap"]}`,"aria-hidden":"true",children:r.jsx("span",{className:`${a["sm-panel-item"]}`,children:r.jsx("span",{className:`${a["sm-panel-itemLabel"]}`,children:"No items"})})})}),ce&&V&&V.length>0&&r.jsxs("div",{className:`${a["sm-socials"]}`,"aria-label":"Social links",children:[r.jsx("h3",{className:`${a["sm-socials-title"]}`,children:"Socials"}),r.jsx("ul",{className:`${a["sm-socials-list"]}`,role:"list",children:V.map((e,t)=>r.jsx("li",{className:"sm-socials-item",children:r.jsx("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:`${a["sm-socials-link"]}`,children:e.label})},e.label+t))})]})]})})]})};oe.__docgenInfo={description:"",methods:[],displayName:"StaggeredMenu",props:{position:{defaultValue:{value:"'right'",computed:!1},required:!1},colors:{defaultValue:{value:"['#B19EEF', '#5227FF']",computed:!1},required:!1},items:{defaultValue:{value:"[]",computed:!1},required:!1},socialItems:{defaultValue:{value:"[]",computed:!1},required:!1},displaySocials:{defaultValue:{value:"true",computed:!1},required:!1},displayItemNumbering:{defaultValue:{value:"true",computed:!1},required:!1},logoUrl:{defaultValue:{value:"'/src/assets/logos/reactbits-gh-white.svg'",computed:!1},required:!1},menuButtonColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},openMenuButtonColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},accentColor:{defaultValue:{value:"'#5227FF'",computed:!1},required:!1},changeMenuColorOnOpen:{defaultValue:{value:"true",computed:!1},required:!1},isFixed:{defaultValue:{value:"false",computed:!1},required:!1},closeOnClickAway:{defaultValue:{value:"true",computed:!1},required:!1}}};const xe={title:"ReactBits/Components/StaggeredMenu",component:oe,parameters:{layout:"fullscreen"}},C={args:{position:"right",colors:["#B19EEF","#5227FF"],items:[{label:"Home",link:"#",ariaLabel:"Home"},{label:"About",link:"#about",ariaLabel:"About"},{label:"Projects",link:"#projects",ariaLabel:"Projects"},{label:"Blog",link:"#blog",ariaLabel:"Blog"},{label:"Contact",link:"#contact",ariaLabel:"Contact"}],socialItems:[{label:"Twitter",link:"https://twitter.com"},{label:"GitHub",link:"https://github.com"},{label:"LinkedIn",link:"https://linkedin.com"}],displaySocials:!0,displayItemNumbering:!0,menuButtonColor:"#fff",openMenuButtonColor:"#fff",accentColor:"#5227FF",changeMenuColorOnOpen:!0,isFixed:!1,closeOnClickAway:!0}};var re,ne,ie;C.parameters={...C.parameters,docs:{...(re=C.parameters)==null?void 0:re.docs,source:{originalSource:`{
1
+ import{r as s,R as le,j as r}from"./iframe-BLM9gPKH.js";import{g as l}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const a={"staggered-menu-wrapper":"_staggered-menu-wrapper_rbage_1","staggered-menu-header":"_staggered-menu-header_rbage_19","sm-logo":"_sm-logo_rbage_37","sm-logo-img":"_sm-logo-img_rbage_43","sm-toggle":"_sm-toggle_rbage_50","sm-toggle-textWrap":"_sm-toggle-textWrap_rbage_74","sm-toggle-textInner":"_sm-toggle-textInner_rbage_84","sm-toggle-line":"_sm-toggle-line_rbage_90","sm-icon":"_sm-icon_rbage_96","sm-panel-itemWrap":"_sm-panel-itemWrap_rbage_107","sm-icon-line":"_sm-icon-line_rbage_113","staggered-menu-panel":"_staggered-menu-panel_rbage_129","sm-prelayers":"_sm-prelayers_rbage_151","sm-prelayer":"_sm-prelayer_rbage_151","sm-panel-inner":"_sm-panel-inner_rbage_175","sm-socials":"_sm-socials_rbage_182","sm-socials-title":"_sm-socials-title_rbage_190","sm-socials-list":"_sm-socials-list_rbage_197","sm-socials-link":"_sm-socials-link_rbage_208","sm-panel-list":"_sm-panel-list_rbage_258","sm-panel-item":"_sm-panel-item_rbage_107","sm-panel-itemLabel":"_sm-panel-itemLabel_rbage_302"},oe=({position:k="right",colors:P=["#B19EEF","#5227FF"],items:T=[],socialItems:V=[],displaySocials:ce=!0,displayItemNumbering:ue=!0,className:D,logoUrl:me="/src/assets/logos/reactbits-gh-white.svg",menuButtonColor:b="#fff",openMenuButtonColor:v="#fff",accentColor:G="#5227FF",changeMenuColorOnOpen:L=!0,isFixed:fe=!1,closeOnClickAway:U=!0,onMenuOpen:N,onMenuClose:h})=>{const[y,z]=s.useState(!1),R=s.useRef(!1),_=s.useRef(null),J=s.useRef(null),I=s.useRef([]),K=s.useRef(null),Q=s.useRef(null),W=s.useRef(null),H=s.useRef(null),pe=s.useRef(null),[ge,de]=s.useState(["Menu","Close"]),S=s.useRef(null),w=s.useRef(null),O=s.useRef(null),X=s.useRef(null),Y=s.useRef(null),p=s.useRef(null),j=s.useRef(!1),Z=s.useRef(null);s.useLayoutEffect(()=>{const e=l.context(()=>{const t=_.current,n=J.current,o=K.current,m=Q.current,i=W.current,c=H.current;if(!t||!o||!m||!i||!c)return;let f=[];n&&(f=Array.from(n.querySelectorAll(".sm-prelayer"))),I.current=f;const u=k==="left"?-100:100;l.set([t,...f],{xPercent:u}),l.set(o,{transformOrigin:"50% 50%",rotate:0}),l.set(m,{transformOrigin:"50% 50%",rotate:90}),l.set(i,{rotate:0,transformOrigin:"50% 50%"}),l.set(c,{yPercent:0}),p.current&&l.set(p.current,{color:b})});return()=>e.revert()},[b,k]);const M=s.useCallback(()=>{var ae,se;const e=_.current,t=I.current;if(!e)return null;(ae=S.current)==null||ae.kill(),w.current&&(w.current.kill(),w.current=null),(se=Z.current)==null||se.kill();const n=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),o=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),m=e.querySelector(".sm-socials-title"),i=Array.from(e.querySelectorAll(".sm-socials-link")),c=t.map(d=>({el:d,start:Number(l.getProperty(d,"xPercent"))})),f=Number(l.getProperty(e,"xPercent"));n.length&&l.set(n,{yPercent:140,rotate:10}),o.length&&l.set(o,{"--sm-num-opacity":0}),m&&l.set(m,{opacity:0}),i.length&&l.set(i,{y:25,opacity:0});const u=l.timeline({paused:!0});c.forEach((d,A)=>{u.fromTo(d.el,{xPercent:d.start},{xPercent:0,duration:.5,ease:"power4.out"},A*.07)});const g=(c.length?(c.length-1)*.07:0)+(c.length?.08:0),B=.65;if(u.fromTo(e,{xPercent:f},{xPercent:0,duration:B,ease:"power4.out"},g),n.length){const A=g+B*.15;u.to(n,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},A),o.length&&u.to(o,{duration:.6,ease:"power2.out","--sm-num-opacity":1,stagger:{each:.08,from:"start"}},A+.1)}if(m||i.length){const d=g+B*.4;m&&u.to(m,{opacity:1,duration:.5,ease:"power2.out"},d),i.length&&u.to(i,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:()=>{l.set(i,{clearProps:"opacity"})}},d+.04)}return S.current=u,u},[]),ee=s.useCallback(()=>{if(j.current)return;j.current=!0;const e=M();e?(e.eventCallback("onComplete",()=>{j.current=!1}),e.play(0)):j.current=!1},[M]),$=s.useCallback(()=>{var m,i,c;(m=S.current)==null||m.kill(),S.current=null,(i=Z.current)==null||i.kill();const e=_.current,t=I.current;if(!e)return;const n=[...t,e];(c=w.current)==null||c.kill();const o=k==="left"?-100:100;w.current=l.to(n,{xPercent:o,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:()=>{const f=Array.from(e.querySelectorAll(".sm-panel-itemLabel"));f.length&&l.set(f,{yPercent:140,rotate:10});const u=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));u.length&&l.set(u,{"--sm-num-opacity":0});const x=e.querySelector(".sm-socials-title"),g=Array.from(e.querySelectorAll(".sm-socials-link"));x&&l.set(x,{opacity:0}),g.length&&l.set(g,{y:25,opacity:0}),j.current=!1}})},[k]),q=s.useCallback(e=>{var n;const t=W.current;t&&((n=O.current)==null||n.kill(),e?O.current=l.to(t,{rotate:225,duration:.8,ease:"power4.out",overwrite:"auto"}):O.current=l.to(t,{rotate:0,duration:.35,ease:"power3.inOut",overwrite:"auto"}))},[]),E=s.useCallback(e=>{var n;const t=p.current;if(t)if((n=Y.current)==null||n.kill(),L){const o=e?v:b;Y.current=l.to(t,{color:o,delay:.18,duration:.3,ease:"power2.out"})}else l.set(t,{color:b})},[v,b,L]);le.useEffect(()=>{if(p.current)if(L){const e=R.current?v:b;l.set(p.current,{color:e})}else l.set(p.current,{color:b})},[L,b,v]);const F=s.useCallback(e=>{var x;const t=H.current;if(!t)return;(x=X.current)==null||x.kill();const n=e?"Menu":"Close",o=e?"Close":"Menu",m=3,i=[n];let c=n;for(let g=0;g<m;g++)c=c==="Menu"?"Close":"Menu",i.push(c);c!==o&&i.push(o),i.push(o),de(i),l.set(t,{yPercent:0});const f=i.length,u=(f-1)/f*100;X.current=l.to(t,{yPercent:-u,duration:.5+f*.07,ease:"power4.out"})},[]),be=s.useCallback(()=>{const e=!R.current;R.current=e,z(e),e?(N==null||N(),ee()):(h==null||h(),$()),q(e),E(e),F(e)},[ee,$,q,E,F,N,h]),te=s.useCallback(()=>{R.current&&(R.current=!1,z(!1),h==null||h(),$(),q(!1),E(!1),F(!1))},[$,q,E,F,h]);return le.useEffect(()=>{if(!U||!y)return;const e=t=>{_.current&&!_.current.contains(t.target)&&p.current&&!p.current.contains(t.target)&&te()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[U,y,te]),r.jsxs("div",{className:(D?D+" ":"")+a["staggered-menu-wrapper"]+(fe?" fixed-wrapper":""),style:G?{"--sm-accent":G}:void 0,"data-position":k,"data-open":y||void 0,children:[r.jsx("div",{ref:J,className:`${a["sm-prelayers"]}`,"aria-hidden":"true",children:(()=>{let t=[...P&&P.length?P.slice(0,4):["#1e1e22","#35353c"]];if(t.length>=3){const n=Math.floor(t.length/2);t.splice(n,1)}return t.map((n,o)=>r.jsx("div",{className:`${a["sm-prelayer"]}`,style:{background:n}},o))})()}),r.jsxs("header",{className:`${a["staggered-menu-header"]}`,"aria-label":"Main navigation header",children:[r.jsx("div",{className:`${a["sm-logo"]}`,"aria-label":"Logo",children:r.jsx("img",{src:me||"/src/assets/logos/reactbits-gh-white.svg",alt:"Logo",className:`${a["sm-logo-img"]}`,draggable:!1,width:110,height:24})}),r.jsxs("button",{ref:p,className:`${a["sm-toggle"]}`,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,"aria-controls":a["staggered-menu-panel"],onClick:be,type:"button",children:[r.jsx("span",{ref:pe,className:`${a["sm-toggle-textWrap"]}`,"aria-hidden":"true",children:r.jsx("span",{ref:H,className:`${a["sm-toggle-textInner"]}`,children:ge.map((e,t)=>r.jsx("span",{className:`${a["sm-toggle-line"]}`,children:e},t))})}),r.jsxs("span",{ref:W,className:`${a["sm-icon"]}`,"aria-hidden":"true",children:[r.jsx("span",{ref:K,className:`${a["sm-icon-line"]}`}),r.jsx("span",{ref:Q,className:`${a["sm-icon-line"]} ${a["sm-icon-line"]}-v`})]})]})]}),r.jsx("aside",{id:a["staggered-menu-panel"],ref:_,className:`${a["staggered-menu-panel"]}`,"aria-hidden":!y,children:r.jsxs("div",{className:`${a["sm-panel-inner"]}`,children:[r.jsx("ul",{className:`${a["sm-panel-list"]}`,role:"list","data-numbering":ue||void 0,children:T&&T.length?T.map((e,t)=>r.jsx("li",{className:`${a["sm-panel-itemWrap"]}`,children:r.jsx("a",{className:`${a["sm-panel-item"]}`,href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:r.jsx("span",{className:`${a["sm-panel-itemLabel"]}`,children:e.label})})},e.label+t)):r.jsx("li",{className:`${a["sm-panel-itemWrap"]}`,"aria-hidden":"true",children:r.jsx("span",{className:`${a["sm-panel-item"]}`,children:r.jsx("span",{className:`${a["sm-panel-itemLabel"]}`,children:"No items"})})})}),ce&&V&&V.length>0&&r.jsxs("div",{className:`${a["sm-socials"]}`,"aria-label":"Social links",children:[r.jsx("h3",{className:`${a["sm-socials-title"]}`,children:"Socials"}),r.jsx("ul",{className:`${a["sm-socials-list"]}`,role:"list",children:V.map((e,t)=>r.jsx("li",{className:"sm-socials-item",children:r.jsx("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:`${a["sm-socials-link"]}`,children:e.label})},e.label+t))})]})]})})]})};oe.__docgenInfo={description:"",methods:[],displayName:"StaggeredMenu",props:{position:{defaultValue:{value:"'right'",computed:!1},required:!1},colors:{defaultValue:{value:"['#B19EEF', '#5227FF']",computed:!1},required:!1},items:{defaultValue:{value:"[]",computed:!1},required:!1},socialItems:{defaultValue:{value:"[]",computed:!1},required:!1},displaySocials:{defaultValue:{value:"true",computed:!1},required:!1},displayItemNumbering:{defaultValue:{value:"true",computed:!1},required:!1},logoUrl:{defaultValue:{value:"'/src/assets/logos/reactbits-gh-white.svg'",computed:!1},required:!1},menuButtonColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},openMenuButtonColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},accentColor:{defaultValue:{value:"'#5227FF'",computed:!1},required:!1},changeMenuColorOnOpen:{defaultValue:{value:"true",computed:!1},required:!1},isFixed:{defaultValue:{value:"false",computed:!1},required:!1},closeOnClickAway:{defaultValue:{value:"true",computed:!1},required:!1}}};const xe={title:"ReactBits/Components/StaggeredMenu",component:oe,parameters:{layout:"fullscreen"}},C={args:{position:"right",colors:["#B19EEF","#5227FF"],items:[{label:"Home",link:"#",ariaLabel:"Home"},{label:"About",link:"#about",ariaLabel:"About"},{label:"Projects",link:"#projects",ariaLabel:"Projects"},{label:"Blog",link:"#blog",ariaLabel:"Blog"},{label:"Contact",link:"#contact",ariaLabel:"Contact"}],socialItems:[{label:"Twitter",link:"https://twitter.com"},{label:"GitHub",link:"https://github.com"},{label:"LinkedIn",link:"https://linkedin.com"}],displaySocials:!0,displayItemNumbering:!0,menuButtonColor:"#fff",openMenuButtonColor:"#fff",accentColor:"#5227FF",changeMenuColorOnOpen:!0,isFixed:!1,closeOnClickAway:!0}};var re,ne,ie;C.parameters={...C.parameters,docs:{...(re=C.parameters)==null?void 0:re.docs,source:{originalSource:`{
2
2
  args: {
3
3
  position: 'right',
4
4
  colors: ['#B19EEF', '#5227FF'],
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-DeUB-sow.js";import"./preload-helper-C1FmrZbK.js";const r={"star-border-container":"_star-border-container_xk50o_1","border-gradient-bottom":"_border-gradient-bottom_xk50o_8","border-gradient-top":"_border-gradient-top_xk50o_23","inner-content":"_inner-content_xk50o_38"},i=({as:c="button",className:u="",color:a="white",speed:o="6s",thickness:m=1,children:p,...s})=>e.jsxs(c,{className:`${r["star-border-container"]} ${u}`,style:{padding:`${m}px 0`,...s.style},...s,children:[e.jsx("div",{className:`${r["border-gradient-bottom"]}`,style:{background:`radial-gradient(circle, ${a}, transparent 10%)`,animationDuration:o}}),e.jsx("div",{className:`${r["border-gradient-top"]}`,style:{background:`radial-gradient(circle, ${a}, transparent 10%)`,animationDuration:o}}),e.jsx("div",{className:`${r["inner-content"]}`,children:p})]});i.__docgenInfo={description:"",methods:[],displayName:"StarBorder",props:{as:{defaultValue:{value:"'button'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'white'",computed:!1},required:!1},speed:{defaultValue:{value:"'6s'",computed:!1},required:!1},thickness:{defaultValue:{value:"1",computed:!1},required:!1}}};const _={title:"ReactBits/Animations/StarBorder",component:i,parameters:{layout:"fullscreen"}},t={args:{as:"button",color:"white",speed:"6s",thickness:1,children:"Hello World"}};var n,d,l;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`{
1
+ import{j as e}from"./iframe-BLM9gPKH.js";import"./preload-helper-C1FmrZbK.js";const r={"star-border-container":"_star-border-container_xk50o_1","border-gradient-bottom":"_border-gradient-bottom_xk50o_8","border-gradient-top":"_border-gradient-top_xk50o_23","inner-content":"_inner-content_xk50o_38"},i=({as:c="button",className:u="",color:a="white",speed:o="6s",thickness:m=1,children:p,...s})=>e.jsxs(c,{className:`${r["star-border-container"]} ${u}`,style:{padding:`${m}px 0`,...s.style},...s,children:[e.jsx("div",{className:`${r["border-gradient-bottom"]}`,style:{background:`radial-gradient(circle, ${a}, transparent 10%)`,animationDuration:o}}),e.jsx("div",{className:`${r["border-gradient-top"]}`,style:{background:`radial-gradient(circle, ${a}, transparent 10%)`,animationDuration:o}}),e.jsx("div",{className:`${r["inner-content"]}`,children:p})]});i.__docgenInfo={description:"",methods:[],displayName:"StarBorder",props:{as:{defaultValue:{value:"'button'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'white'",computed:!1},required:!1},speed:{defaultValue:{value:"'6s'",computed:!1},required:!1},thickness:{defaultValue:{value:"1",computed:!1},required:!1}}};const _={title:"ReactBits/Animations/StarBorder",component:i,parameters:{layout:"fullscreen"}},t={args:{as:"button",color:"white",speed:"6s",thickness:1,children:"Hello World"}};var n,d,l;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`{
2
2
  args: {
3
3
  as: 'button',
4
4
  color: 'white',
@@ -1,4 +1,4 @@
1
- import{r as T,j as W}from"./iframe-DeUB-sow.js";import{c as ae,s as _,t as re,f as ie}from"./transform-BKmuZieF.js";import{l as se,d as R}from"./linear-dkJHgUri.js";import{a as U}from"./arc-DgcIQOLP.js";import"./preload-helper-C1FmrZbK.js";import"./path-CbwjOpE9.js";function Oe(e){var n=0,a=e.children,r=a&&a.length;if(!r)n=1;else for(;--r>=0;)n+=a[r].value;e.value=n}function Te(){return this.eachAfter(Oe)}function _e(e,n){let a=-1;for(const r of this)e.call(n,r,++a,this);return this}function ke(e,n){for(var a=this,r=[a],o,u,i=-1;a=r.pop();)if(e.call(n,a,++i,this),o=a.children)for(u=o.length-1;u>=0;--u)r.push(o[u]);return this}function De(e,n){for(var a=this,r=[a],o=[],u,i,m,c=-1;a=r.pop();)if(o.push(a),u=a.children)for(i=0,m=u.length;i<m;++i)r.push(u[i]);for(;a=o.pop();)e.call(n,a,++c,this);return this}function Ee(e,n){let a=-1;for(const r of this)if(e.call(n,r,++a,this))return r}function Be(e){return this.eachAfter(function(n){for(var a=+e(n.data)||0,r=n.children,o=r&&r.length;--o>=0;)a+=r[o].value;n.value=a})}function Ie(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})}function $e(e){for(var n=this,a=qe(n,e),r=[n];n!==a;)n=n.parent,r.push(n);for(var o=r.length;e!==a;)r.splice(o,0,e),e=e.parent;return r}function qe(e,n){if(e===n)return e;var a=e.ancestors(),r=n.ancestors(),o=null;for(e=a.pop(),n=r.pop();e===n;)o=e,e=a.pop(),n=r.pop();return o}function je(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n}function Le(){return Array.from(this)}function Ve(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e}function Fe(){var e=this,n=[];return e.each(function(a){a!==e&&n.push({source:a.parent,target:a})}),n}function*Ye(){var e=this,n,a=[e],r,o,u;do for(n=a.reverse(),a=[];e=n.pop();)if(yield e,r=e.children)for(o=0,u=r.length;o<u;++o)a.push(r[o]);while(a.length)}function N(e,n){e instanceof Map?(e=[void 0,e],n===void 0&&(n=Ge)):n===void 0&&(n=He);for(var a=new Y(e),r,o=[a],u,i,m,c;r=o.pop();)if((i=n(r.data))&&(c=(i=Array.from(i)).length))for(r.children=i,m=c-1;m>=0;--m)o.push(u=i[m]=new Y(i[m])),u.parent=r,u.depth=r.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 n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}function Y(e){this.data=e,this.depth=this.height=0,this.parent=null}Y.prototype=N.prototype={constructor:Y,count:Te,each:_e,eachAfter:De,eachBefore:ke,find:Ee,sum:Be,sort:Ie,path:$e,ancestors:je,descendants:Le,leaves:Ve,links:Fe,copy:Xe,[Symbol.iterator]:Ye};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,n,a,r,o){for(var u=e.children,i,m=-1,c=u.length,b=e.value&&(r-n)/e.value;++m<c;)i=u[m],i.y0=a,i.y1=o,i.x0=n,i.x1=n+=i.value*b}function Je(){var e=1,n=1,a=0,r=!1;function o(i){var m=i.height+1;return i.x0=i.y0=a,i.x1=e,i.y1=n/m,i.eachBefore(u(n,m)),r&&i.eachBefore(Ne),i}function u(i,m){return function(c){c.children&&Qe(c,c.x0,i*(c.depth+1)/m,c.x1,i*(c.depth+2)/m);var b=c.x0,g=c.y0,p=c.x1-a,O=c.y1-a;p<b&&(b=p=(b+p)/2),O<g&&(g=O=(g+O)/2),c.x0=b,c.y0=g,c.x1=p,c.y1=O}}return o.round=function(i){return arguments.length?(r=!!i,o):r},o.size=function(i){return arguments.length?(e=+i[0],n=+i[1],o):[e,n]},o.padding=function(i){return arguments.length?(a=+i,o):a},o}const Ke="_container_sjfr4_1",Ze="_title_sjfr4_9",en="_chart_sjfr4_17",nn="_tooltip_sjfr4_23",q={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:n=500,height:a=500,title:r="Sunburst Chart",tagColors:o={},unit:u="items",centerLabel:i})=>{const m=T.useRef(null),c=T.useRef(new Map).current,b=T.useRef(0),g=T.useRef(null),p=Math.min(n,a)/2,O=T.useCallback((C,x)=>{if(o[C]){const v=ae(o[C]);if(v)return x>1?v.darker((x-1)*.3).toString():v.toString()}c.has(C)||(c.set(C,oe[b.current%oe.length]),b.current++);const w=c.get(C)||"#d4af37",X=ae(w);return X?X.darker(x*.3).toString():w},[o,c]);return T.useEffect(()=>{if(!m.current||!e)return;const C=_(m.current);C.selectAll("*").remove();const x=C.append("g").attr("transform",`translate(${n/2},${a/2})`),w=N(e).sum(t=>t.size??0).sort((t,s)=>(s.value??0)-(t.value??0)),v=Je().size([2*Math.PI,p*p])(w).descendants();v.forEach(t=>{const s=t;s.x0Original=t.x0,s.x1Original=t.x1,s.y0Original=t.y0,s.y1Original=t.y1});const be=U().startAngle(t=>t.x0).endAngle(t=>t.x1).innerRadius(t=>Math.sqrt(t.y0)).outerRadius(t=>Math.sqrt(t.y1)).cornerRadius(3),k=_("body").append("div").attr("class",q.tooltip).style("opacity",0).style("position","absolute"),Ce=()=>{g.current=null;const t=re().duration(750).ease(ie);M.style("opacity",1),M.transition(t).attrTween("d",s=>{const l=s;return f=>{const z=R(l.x0,l.x0Original)(f),S=R(l.x1,l.x1Original)(f),P=R(l.y0,l.y0Original)(f),d=R(l.y1,l.y1Original)(f);return l.x0=z,l.x1=S,l.y0=P,l.y1=d,U().startAngle(()=>z).endAngle(()=>S).innerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,P)))).outerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,d)))).cornerRadius(3)(l)||""}}),M.style("cursor",s=>!s.children||s.children.length===0?"default":"pointer"),K.style("cursor","default"),J(t,v)},we=(t,s)=>{if(t.stopPropagation(),g.current||!s.children||s.children.length===0)return;g.current=s;const l=re().duration(750).ease(ie),f=s,z=se().domain([f.x0Original,f.x1Original]).range([0,2*Math.PI]).clamp(!0),S=v.filter(y=>B(s,y)),P=Math.max(...S.map(y=>y.y1Original)),d=se().domain([f.y0Original,P]).range([0,p*p]).clamp(!0);M.style("opacity",y=>B(s,y)?1:0),M.transition(l).attrTween("d",y=>{const h=y;if(!B(s,y))return()=>"";let D=z(h.x0Original),E=z(h.x1Original);if(E<=D){const A=(h.x1Original-h.x0Original)/(f.x1Original-f.x0Original);E=D+2*Math.PI*A}let G,I;if(h===s)if(G=0,h.children&&h.children.length>0){const A=Math.min(...h.children.map($=>$.y0Original));I=d(A)*.98}else I=p*p*.98;else G=d(h.y0Original),I=d(h.y1Original);const Se=h.x0,Ae=h.x1,Re=h.y0,Pe=h.y1;return A=>{const $=R(Se,D)(A),ee=R(Ae,E)(A),ne=R(Re,G)(A),te=R(Pe,I)(A);return h.x0=$,h.x1=ee,h.y0=ne,h.y1=te,U().startAngle(()=>$).endAngle(()=>ee).innerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,ne)))).outerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,te)))).cornerRadius(3)(h)||""}}),J(l,v.filter(y=>B(s,y))),M.style("cursor","default"),K.style("cursor","pointer")},B=(t,s)=>{if(t===s)return!0;let l=s.parent;for(;l;){if(l===t)return!0;l=l.parent}return!1},M=x.selectAll("path").data(v.filter(t=>t.depth>0&&t.value&&t.value>0)).enter().append("path").attr("d",be).attr("fill",t=>{let s=t;for(;s.depth>1&&s.parent;)s=s.parent;return O(s.data.name,t.depth)}).attr("stroke",()=>window.getComputedStyle(m.current).getPropertyValue("--color-border")||"#e2e8f0").attr("stroke-width",2).style("cursor",t=>!t.children||t.children.length===0?"default":"pointer").on("click",we).on("mouseover",function(t,s){if(g.current)return;const l=this;k.transition().duration(200).style("opacity",1);const f=s.value||0,z=(f/(w.value||1)*100).toFixed(1);k.html(`
1
+ import{r as T,j as W}from"./iframe-BLM9gPKH.js";import{c as ae,s as _,t as re,f as ie}from"./transform-BKmuZieF.js";import{l as se,d as R}from"./linear-dkJHgUri.js";import{a as U}from"./arc-DgcIQOLP.js";import"./preload-helper-C1FmrZbK.js";import"./path-CbwjOpE9.js";function Oe(e){var n=0,a=e.children,r=a&&a.length;if(!r)n=1;else for(;--r>=0;)n+=a[r].value;e.value=n}function Te(){return this.eachAfter(Oe)}function _e(e,n){let a=-1;for(const r of this)e.call(n,r,++a,this);return this}function ke(e,n){for(var a=this,r=[a],o,u,i=-1;a=r.pop();)if(e.call(n,a,++i,this),o=a.children)for(u=o.length-1;u>=0;--u)r.push(o[u]);return this}function De(e,n){for(var a=this,r=[a],o=[],u,i,m,c=-1;a=r.pop();)if(o.push(a),u=a.children)for(i=0,m=u.length;i<m;++i)r.push(u[i]);for(;a=o.pop();)e.call(n,a,++c,this);return this}function Ee(e,n){let a=-1;for(const r of this)if(e.call(n,r,++a,this))return r}function Be(e){return this.eachAfter(function(n){for(var a=+e(n.data)||0,r=n.children,o=r&&r.length;--o>=0;)a+=r[o].value;n.value=a})}function Ie(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})}function $e(e){for(var n=this,a=qe(n,e),r=[n];n!==a;)n=n.parent,r.push(n);for(var o=r.length;e!==a;)r.splice(o,0,e),e=e.parent;return r}function qe(e,n){if(e===n)return e;var a=e.ancestors(),r=n.ancestors(),o=null;for(e=a.pop(),n=r.pop();e===n;)o=e,e=a.pop(),n=r.pop();return o}function je(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n}function Le(){return Array.from(this)}function Ve(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e}function Fe(){var e=this,n=[];return e.each(function(a){a!==e&&n.push({source:a.parent,target:a})}),n}function*Ye(){var e=this,n,a=[e],r,o,u;do for(n=a.reverse(),a=[];e=n.pop();)if(yield e,r=e.children)for(o=0,u=r.length;o<u;++o)a.push(r[o]);while(a.length)}function N(e,n){e instanceof Map?(e=[void 0,e],n===void 0&&(n=Ge)):n===void 0&&(n=He);for(var a=new Y(e),r,o=[a],u,i,m,c;r=o.pop();)if((i=n(r.data))&&(c=(i=Array.from(i)).length))for(r.children=i,m=c-1;m>=0;--m)o.push(u=i[m]=new Y(i[m])),u.parent=r,u.depth=r.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 n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}function Y(e){this.data=e,this.depth=this.height=0,this.parent=null}Y.prototype=N.prototype={constructor:Y,count:Te,each:_e,eachAfter:De,eachBefore:ke,find:Ee,sum:Be,sort:Ie,path:$e,ancestors:je,descendants:Le,leaves:Ve,links:Fe,copy:Xe,[Symbol.iterator]:Ye};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,n,a,r,o){for(var u=e.children,i,m=-1,c=u.length,b=e.value&&(r-n)/e.value;++m<c;)i=u[m],i.y0=a,i.y1=o,i.x0=n,i.x1=n+=i.value*b}function Je(){var e=1,n=1,a=0,r=!1;function o(i){var m=i.height+1;return i.x0=i.y0=a,i.x1=e,i.y1=n/m,i.eachBefore(u(n,m)),r&&i.eachBefore(Ne),i}function u(i,m){return function(c){c.children&&Qe(c,c.x0,i*(c.depth+1)/m,c.x1,i*(c.depth+2)/m);var b=c.x0,g=c.y0,p=c.x1-a,O=c.y1-a;p<b&&(b=p=(b+p)/2),O<g&&(g=O=(g+O)/2),c.x0=b,c.y0=g,c.x1=p,c.y1=O}}return o.round=function(i){return arguments.length?(r=!!i,o):r},o.size=function(i){return arguments.length?(e=+i[0],n=+i[1],o):[e,n]},o.padding=function(i){return arguments.length?(a=+i,o):a},o}const Ke="_container_sjfr4_1",Ze="_title_sjfr4_9",en="_chart_sjfr4_17",nn="_tooltip_sjfr4_23",q={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:n=500,height:a=500,title:r="Sunburst Chart",tagColors:o={},unit:u="items",centerLabel:i})=>{const m=T.useRef(null),c=T.useRef(new Map).current,b=T.useRef(0),g=T.useRef(null),p=Math.min(n,a)/2,O=T.useCallback((C,x)=>{if(o[C]){const v=ae(o[C]);if(v)return x>1?v.darker((x-1)*.3).toString():v.toString()}c.has(C)||(c.set(C,oe[b.current%oe.length]),b.current++);const w=c.get(C)||"#d4af37",X=ae(w);return X?X.darker(x*.3).toString():w},[o,c]);return T.useEffect(()=>{if(!m.current||!e)return;const C=_(m.current);C.selectAll("*").remove();const x=C.append("g").attr("transform",`translate(${n/2},${a/2})`),w=N(e).sum(t=>t.size??0).sort((t,s)=>(s.value??0)-(t.value??0)),v=Je().size([2*Math.PI,p*p])(w).descendants();v.forEach(t=>{const s=t;s.x0Original=t.x0,s.x1Original=t.x1,s.y0Original=t.y0,s.y1Original=t.y1});const be=U().startAngle(t=>t.x0).endAngle(t=>t.x1).innerRadius(t=>Math.sqrt(t.y0)).outerRadius(t=>Math.sqrt(t.y1)).cornerRadius(3),k=_("body").append("div").attr("class",q.tooltip).style("opacity",0).style("position","absolute"),Ce=()=>{g.current=null;const t=re().duration(750).ease(ie);M.style("opacity",1),M.transition(t).attrTween("d",s=>{const l=s;return f=>{const z=R(l.x0,l.x0Original)(f),S=R(l.x1,l.x1Original)(f),P=R(l.y0,l.y0Original)(f),d=R(l.y1,l.y1Original)(f);return l.x0=z,l.x1=S,l.y0=P,l.y1=d,U().startAngle(()=>z).endAngle(()=>S).innerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,P)))).outerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,d)))).cornerRadius(3)(l)||""}}),M.style("cursor",s=>!s.children||s.children.length===0?"default":"pointer"),K.style("cursor","default"),J(t,v)},we=(t,s)=>{if(t.stopPropagation(),g.current||!s.children||s.children.length===0)return;g.current=s;const l=re().duration(750).ease(ie),f=s,z=se().domain([f.x0Original,f.x1Original]).range([0,2*Math.PI]).clamp(!0),S=v.filter(y=>B(s,y)),P=Math.max(...S.map(y=>y.y1Original)),d=se().domain([f.y0Original,P]).range([0,p*p]).clamp(!0);M.style("opacity",y=>B(s,y)?1:0),M.transition(l).attrTween("d",y=>{const h=y;if(!B(s,y))return()=>"";let D=z(h.x0Original),E=z(h.x1Original);if(E<=D){const A=(h.x1Original-h.x0Original)/(f.x1Original-f.x0Original);E=D+2*Math.PI*A}let G,I;if(h===s)if(G=0,h.children&&h.children.length>0){const A=Math.min(...h.children.map($=>$.y0Original));I=d(A)*.98}else I=p*p*.98;else G=d(h.y0Original),I=d(h.y1Original);const Se=h.x0,Ae=h.x1,Re=h.y0,Pe=h.y1;return A=>{const $=R(Se,D)(A),ee=R(Ae,E)(A),ne=R(Re,G)(A),te=R(Pe,I)(A);return h.x0=$,h.x1=ee,h.y0=ne,h.y1=te,U().startAngle(()=>$).endAngle(()=>ee).innerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,ne)))).outerRadius(()=>Math.min(p,Math.sqrt(Math.max(0,te)))).cornerRadius(3)(h)||""}}),J(l,v.filter(y=>B(s,y))),M.style("cursor","default"),K.style("cursor","pointer")},B=(t,s)=>{if(t===s)return!0;let l=s.parent;for(;l;){if(l===t)return!0;l=l.parent}return!1},M=x.selectAll("path").data(v.filter(t=>t.depth>0&&t.value&&t.value>0)).enter().append("path").attr("d",be).attr("fill",t=>{let s=t;for(;s.depth>1&&s.parent;)s=s.parent;return O(s.data.name,t.depth)}).attr("stroke",()=>window.getComputedStyle(m.current).getPropertyValue("--color-border")||"#e2e8f0").attr("stroke-width",2).style("cursor",t=>!t.children||t.children.length===0?"default":"pointer").on("click",we).on("mouseover",function(t,s){if(g.current)return;const l=this;k.transition().duration(200).style("opacity",1);const f=s.value||0,z=(f/(w.value||1)*100).toFixed(1);k.html(`
2
2
  <div><strong>${s.data.name}</strong></div>
3
3
  <div>Value: ${f}</div>
4
4
  <div>${z}% of total</div>
@@ -1,4 +1,4 @@
1
- import{r as d,j as a}from"./iframe-DeUB-sow.js";import{L as de,m as aa}from"./proxy-CGOWLFI9.js";import{u as na,f as ta}from"./MotionConfigContext-gtuPlUge.js";import{A as sa}from"./index-B91nm_hV.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:`
1
+ import{r as d,j as a}from"./iframe-BLM9gPKH.js";import{L as de,m as aa}from"./proxy-BsV6quUP.js";import{u as na,f as ta}from"./MotionConfigContext-E6BOCyHu.js";import{A as sa}from"./index-vIkE6dHF.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-DeUB-sow.js";import{c as n}from"./createLucideIcon-BYma-pZP.js";import{m}from"./proxy-CGOWLFI9.js";import{F as N}from"./folder-hxUWwa0z.js";import{S}from"./settings-KaeFuAWM.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-gtuPlUge.js";/**
1
+ import{j as e,R as u,r as k}from"./iframe-BLM9gPKH.js";import{c as n}from"./createLucideIcon-OIz9nbID.js";import{m}from"./proxy-BsV6quUP.js";import{F as N}from"./folder-UmgN-wpw.js";import{S}from"./settings-CMsrEzJS.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-E6BOCyHu.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-DeUB-sow.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:`{
1
+ import{r as c,j as _}from"./iframe-BLM9gPKH.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-DeUB-sow.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
1
+ import{j as t}from"./iframe-BLM9gPKH.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