@stfrigerio/sito-template 0.1.65 → 0.1.66

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 (177) hide show
  1. package/dist/styles.css +1 -1
  2. package/dist/styles.css.map +1 -1
  3. package/package.json +1 -1
  4. package/storybook-static/assets/{ASCIIText.stories-CdxqDPmD.js → ASCIIText.stories-BQt8B6As.js} +1 -1
  5. package/storybook-static/assets/{AllAtoms.stories-D-3a-tNA.js → AllAtoms.stories-8mBdcCeY.js} +1 -1
  6. package/storybook-static/assets/{AnimatedContent.stories-DeA3ZTox.js → AnimatedContent.stories-iIqm9cZL.js} +1 -1
  7. package/storybook-static/assets/{AnimatedList.stories-CHR1hxbE.js → AnimatedList.stories-Duey4ijf.js} +1 -1
  8. package/storybook-static/assets/{Antigravity.stories-CoZ8v2sr.js → Antigravity.stories-CuJYSpj7.js} +1 -1
  9. package/storybook-static/assets/{ArrayInput.stories-DlcoXZFh.js → ArrayInput.stories-CqXFEZSr.js} +1 -1
  10. package/storybook-static/assets/{Aurora.stories-DDTEfGLF.js → Aurora.stories-Ccg1Zxc3.js} +1 -1
  11. package/storybook-static/assets/{Beams.stories-Czgzm7bN.js → Beams.stories-D50tODHz.js} +1 -1
  12. package/storybook-static/assets/{BlobCursor.stories-MT2XP663.js → BlobCursor.stories-BqwP46t8.js} +1 -1
  13. package/storybook-static/assets/{BlurText.stories-CUkLasF-.js → BlurText.stories-BuDb8a2q.js} +1 -1
  14. package/storybook-static/assets/{BooleansHeatmap.stories-6TtzJhjV.js → BooleansHeatmap.stories-Byhs6Zes.js} +1 -1
  15. package/storybook-static/assets/{BorderGlow.stories-cCkjpcHC.js → BorderGlow.stories-hxlNhbIt.js} +1 -1
  16. package/storybook-static/assets/{BubbleMenu.stories-BWSKyqWd.js → BubbleMenu.stories-DT9s0HGy.js} +1 -1
  17. package/storybook-static/assets/{Button-BFubkKpV.js → Button-CHt05Jbq.js} +1 -1
  18. package/storybook-static/assets/{Button.stories-Dh-huyg3.js → Button.stories-CDGEs6zV.js} +1 -1
  19. package/storybook-static/assets/Calendar-CYo2UzOE.css +1 -0
  20. package/storybook-static/assets/{Calendar.stories-Dlyqht5q.js → Calendar.stories-D6K4DcbO.js} +14 -14
  21. package/storybook-static/assets/{Card-2B4Dlw2C.js → Card-Bj2f3gkT.js} +1 -1
  22. package/storybook-static/assets/{Card.stories-Dx_8CJUo.js → Card.stories-C1A8NBTN.js} +1 -1
  23. package/storybook-static/assets/{CardNav.stories-DRxuuo3S.js → CardNav.stories-BSezT2Mu.js} +1 -1
  24. package/storybook-static/assets/{Carousel.stories-DCMJqlia.js → Carousel.stories-CdOtBTqT.js} +1 -1
  25. package/storybook-static/assets/{Checkbox-W1y5iOHO.js → Checkbox-BZw1-CjZ.js} +1 -1
  26. package/storybook-static/assets/{Checkbox.stories-BptZXFmi.js → Checkbox.stories-CP7266xH.js} +1 -1
  27. package/storybook-static/assets/{ChromaGrid.stories-2Gl_0Jg0.js → ChromaGrid.stories-BrS0NLKl.js} +1 -1
  28. package/storybook-static/assets/{CircularGallery.stories-DGBweh3d.js → CircularGallery.stories-CsDrteyz.js} +1 -1
  29. package/storybook-static/assets/{CircularText.stories-D9z7407U.js → CircularText.stories-DNkBFKK7.js} +1 -1
  30. package/storybook-static/assets/{ClickSpark.stories-Chkt4JES.js → ClickSpark.stories-BqJSrjeV.js} +1 -1
  31. package/storybook-static/assets/{ColorBends.stories-D_PqOhcm.js → ColorBends.stories-tjTDyHin.js} +1 -1
  32. package/storybook-static/assets/{CountUp.stories-Brnx_59H.js → CountUp.stories-Wz9xxsr8.js} +1 -1
  33. package/storybook-static/assets/{Counter.stories-CoHM6D5i.js → Counter.stories-BYSWP3Ry.js} +1 -1
  34. package/storybook-static/assets/{Crosshair.stories-Bv0DTUCf.js → Crosshair.stories-Bt7Ee7MB.js} +1 -1
  35. package/storybook-static/assets/{Cubes.stories-C2hRDKf4.js → Cubes.stories-Ds4ynqYx.js} +1 -1
  36. package/storybook-static/assets/{CurvedLoop.stories-Db4C6Lz7.js → CurvedLoop.stories-M2vftkyO.js} +1 -1
  37. package/storybook-static/assets/{DarkVeil.stories-748SpGk3.js → DarkVeil.stories-PeZl2yff.js} +1 -1
  38. package/storybook-static/assets/{DateInput-Bk9k2Vsi.js → DateInput-BX5D1pMg.js} +1 -1
  39. package/storybook-static/assets/{DateInput.stories-De7Tkseb.js → DateInput.stories-Bb5zGjzs.js} +1 -1
  40. package/storybook-static/assets/{DecayCard.stories-Crr1Bh4n.js → DecayCard.stories-Dxa_Vqrc.js} +1 -1
  41. package/storybook-static/assets/{DecryptedText.stories-SiF8hjer.js → DecryptedText.stories-yUFdFIFO.js} +1 -1
  42. package/storybook-static/assets/{Dither.stories-d5bn1c-q.js → Dither.stories-DiyNOgY2.js} +1 -1
  43. package/storybook-static/assets/{Dock.stories-CPliAZb8.js → Dock.stories-XNu7kNIX.js} +1 -1
  44. package/storybook-static/assets/{EditFAB.stories-BY5Kbgeg.js → EditFAB.stories-D_ZD4rSm.js} +1 -1
  45. package/storybook-static/assets/{EvilEye.stories-Df_Y-ioN.js → EvilEye.stories-C0S3sEvk.js} +1 -1
  46. package/storybook-static/assets/{FadeContent.stories-mZajGMhm.js → FadeContent.stories-C-ipTGqJ.js} +1 -1
  47. package/storybook-static/assets/{FaultyTerminal.stories-bDBggcOF.js → FaultyTerminal.stories-10c-i_01.js} +1 -1
  48. package/storybook-static/assets/{Fbo-GbJEeuRQ.js → Fbo-Cr10jzQa.js} +1 -1
  49. package/storybook-static/assets/{FloatingLines.stories-DJME5VqZ.js → FloatingLines.stories-DkZO2qzt.js} +1 -1
  50. package/storybook-static/assets/{FlowingMenu.stories-C6Cqbr4h.js → FlowingMenu.stories-DS10XeZI.js} +1 -1
  51. package/storybook-static/assets/{FluidGlass.stories-g-LTsVYg.js → FluidGlass.stories-B-R5wDkB.js} +1 -1
  52. package/storybook-static/assets/{Folder.stories-CWX6-1YE.js → Folder.stories-BUmZH2ka.js} +1 -1
  53. package/storybook-static/assets/{FuzzyText.stories-Bu_r0FXj.js → FuzzyText.stories-BRnWU0yr.js} +1 -1
  54. package/storybook-static/assets/{Galaxy.stories-B23Orre6.js → Galaxy.stories-hqhjEO_R.js} +1 -1
  55. package/storybook-static/assets/{GhostCursor.stories-C4TnIvzy.js → GhostCursor.stories-BB2e8hmO.js} +1 -1
  56. package/storybook-static/assets/{GlareHover.stories-BDYrmfIJ.js → GlareHover.stories-BF6kB7EN.js} +1 -1
  57. package/storybook-static/assets/{GlassSurface.stories-CIBmjuRC.js → GlassSurface.stories-iF01agCe.js} +1 -1
  58. package/storybook-static/assets/{GlitchText.stories-BgBunTNk.js → GlitchText.stories-CITlEyXQ.js} +1 -1
  59. package/storybook-static/assets/{GooeyNav.stories-BETiFGdc.js → GooeyNav.stories-vYR6zhI-.js} +1 -1
  60. package/storybook-static/assets/{GradientBlinds.stories-i_HmHEeb.js → GradientBlinds.stories-DSf-fXuF.js} +1 -1
  61. package/storybook-static/assets/{GradientText.stories-BnFwQFVs.js → GradientText.stories-DncdPs2z.js} +1 -1
  62. package/storybook-static/assets/{Grainient.stories-Ce6Q88wn.js → Grainient.stories-BP35oJuG.js} +1 -1
  63. package/storybook-static/assets/{GridMotion.stories-BXnZJIw5.js → GridMotion.stories-Ck8lERpS.js} +1 -1
  64. package/storybook-static/assets/{ImageSlideshow.stories-Cw8fK_0l.js → ImageSlideshow.stories-D5CGI0M5.js} +1 -1
  65. package/storybook-static/assets/{Iridescence.stories-BSkVAArX.js → Iridescence.stories-DSEIJRrO.js} +1 -1
  66. package/storybook-static/assets/{LaserFlow.stories-4VWVUbU7.js → LaserFlow.stories-B-m7sVx7.js} +1 -1
  67. package/storybook-static/assets/{LetterGlitch.stories-RhOeUUPG.js → LetterGlitch.stories-D2KK0k49.js} +1 -1
  68. package/storybook-static/assets/{LightPillar.stories-Dq8kG8jR.js → LightPillar.stories-0fWLIQfM.js} +1 -1
  69. package/storybook-static/assets/{LightRays.stories-BCZF1bMk.js → LightRays.stories-U8mBgBFu.js} +1 -1
  70. package/storybook-static/assets/{Lightning.stories-BrJ-JDN_.js → Lightning.stories-qzK5B63O.js} +1 -1
  71. package/storybook-static/assets/{LineWaves.stories-DBbfhv8t.js → LineWaves.stories-Dh0hHXd-.js} +1 -1
  72. package/storybook-static/assets/{LiquidChrome.stories-R4oS2clG.js → LiquidChrome.stories-D-nD2mFo.js} +1 -1
  73. package/storybook-static/assets/{LiquidEther.stories-FP4-9BKQ.js → LiquidEther.stories-DO-bW-67.js} +1 -1
  74. package/storybook-static/assets/{LoadingSpinner-Cninzqla.js → LoadingSpinner-D2u7X2s9.js} +1 -1
  75. package/storybook-static/assets/{LoadingSpinner.stories-JXm-xJfp.js → LoadingSpinner.stories-CASjGJF0.js} +1 -1
  76. package/storybook-static/assets/{MagicRings.stories-CXsc4Q05.js → MagicRings.stories-CYDU5wlq.js} +1 -1
  77. package/storybook-static/assets/{Magnet.stories-BFEWmmXj.js → Magnet.stories-BzWFxE-V.js} +1 -1
  78. package/storybook-static/assets/{MagnetLines.stories-Cft4vONu.js → MagnetLines.stories-BLt0dpNN.js} +1 -1
  79. package/storybook-static/assets/{Masonry.stories-u63slqCY.js → Masonry.stories-CdsgD1y4.js} +1 -1
  80. package/storybook-static/assets/{MetaBalls.stories-DS8af8XK.js → MetaBalls.stories-1ggXqut_.js} +1 -1
  81. package/storybook-static/assets/{MetallicPaint.stories-CbrRD_tK.js → MetallicPaint.stories-5ZCaxSOk.js} +1 -1
  82. package/storybook-static/assets/{MoodChart.stories-CndFmbNg.js → MoodChart.stories-Bv5VWVvQ.js} +1 -1
  83. package/storybook-static/assets/{MotionConfigContext-Cl-Ye_B1.js → MotionConfigContext-BPeKZQwM.js} +1 -1
  84. package/storybook-static/assets/{Navbar.stories-BfqpIIby.js → Navbar.stories-PxIAocvK.js} +1 -1
  85. package/storybook-static/assets/{Noise.stories-CrUsMp-U.js → Noise.stories-qu_z-yQ8.js} +1 -1
  86. package/storybook-static/assets/{NumberStepper-BhCgwY9V.js → NumberStepper-CnpXSMIl.js} +1 -1
  87. package/storybook-static/assets/{NumberStepper.stories-Dh00Tbxd.js → NumberStepper.stories-Cw-zOdLi.js} +1 -1
  88. package/storybook-static/assets/{Orb.stories-DJ8vrTi6.js → Orb.stories-DgKOlXK_.js} +1 -1
  89. package/storybook-static/assets/{OrbitImages.stories-Bg8hu1qD.js → OrbitImages.stories-Bv5vyiHA.js} +1 -1
  90. package/storybook-static/assets/{PieChart.stories-CeorU_RF.js → PieChart.stories-2s1TKZIh.js} +1 -1
  91. package/storybook-static/assets/{PixelBlast.stories-BytXX4vg.js → PixelBlast.stories-C28Fm0cc.js} +1 -1
  92. package/storybook-static/assets/{PixelCard.stories-BtjFMhWu.js → PixelCard.stories-DSmyTgrk.js} +1 -1
  93. package/storybook-static/assets/{PixelSnow.stories-Dyo-H1Sx.js → PixelSnow.stories-D0XEmW1E.js} +1 -1
  94. package/storybook-static/assets/{PixelTransition.stories-DC8L0d5u.js → PixelTransition.stories-CG2BkKyJ.js} +1 -1
  95. package/storybook-static/assets/{Plasma.stories-DZUkmIpf.js → Plasma.stories-BK2e28Ch.js} +1 -1
  96. package/storybook-static/assets/{Prism.stories-7t60egoh.js → Prism.stories-BEUiZCms.js} +1 -1
  97. package/storybook-static/assets/{PrismaticBurst.stories-DoOuM63p.js → PrismaticBurst.stories-COY077W0.js} +1 -1
  98. package/storybook-static/assets/{ProfileCard.stories-BXPuiwo5.js → ProfileCard.stories-BPB50mBw.js} +1 -1
  99. package/storybook-static/assets/{QuantifiableHabitsChart.stories-CQtBjsk7.js → QuantifiableHabitsChart.stories-Dh4BO8wA.js} +1 -1
  100. package/storybook-static/assets/{Radar.stories-DrUnKKi0.js → Radar.stories-C9TRaVRk.js} +1 -1
  101. package/storybook-static/assets/{Ribbons.stories-CA9i-8mr.js → Ribbons.stories-BK6afGL-.js} +1 -1
  102. package/storybook-static/assets/{RippleGrid.stories-CBiNFAV-.js → RippleGrid.stories-CLkgzs8T.js} +1 -1
  103. package/storybook-static/assets/{RotatingText.stories-DA8Y8GOO.js → RotatingText.stories-BqRKm4Pk.js} +1 -1
  104. package/storybook-static/assets/{ScrollFloat.stories-DP8ykDLU.js → ScrollFloat.stories-CyVus5Hn.js} +1 -1
  105. package/storybook-static/assets/{ScrollReveal.stories-D9foknfW.js → ScrollReveal.stories-HNSNKMZC.js} +1 -1
  106. package/storybook-static/assets/{ScrollVelocity.stories-24tvCptN.js → ScrollVelocity.stories-Bl2UPKz8.js} +1 -1
  107. package/storybook-static/assets/{SearchBar.stories-WWu6R50w.js → SearchBar.stories-zTNrUibf.js} +1 -1
  108. package/storybook-static/assets/{SearchableDropdown-C6wFLVP-.js → SearchableDropdown-jZtEQYje.js} +1 -1
  109. package/storybook-static/assets/{SearchableDropdown.stories-DHV3REhh.js → SearchableDropdown.stories-DeTNwt1p.js} +1 -1
  110. package/storybook-static/assets/{SelectInput-Bing2juw.js → SelectInput-CTOoI-ar.js} +1 -1
  111. package/storybook-static/assets/{SelectInput.stories-PFcbteYv.js → SelectInput.stories-CXKqi4k2.js} +1 -1
  112. package/storybook-static/assets/{ShapeBlur.stories-DfLnBeIR.js → ShapeBlur.stories-on96JVhG.js} +1 -1
  113. package/storybook-static/assets/{ShapeGrid.stories-CgABU6rh.js → ShapeGrid.stories-BRxQh7UX.js} +1 -1
  114. package/storybook-static/assets/{ShinyText.stories-CHD2OFtJ.js → ShinyText.stories-BSiGTTuW.js} +1 -1
  115. package/storybook-static/assets/{Silk.stories-DyjPAaja.js → Silk.stories-DLh6h5sr.js} +1 -1
  116. package/storybook-static/assets/{SleepChart.stories-Bj0YDE9N.js → SleepChart.stories-CqgT_xSG.js} +1 -1
  117. package/storybook-static/assets/{Slider-DlXdhKwj.js → Slider-DkwynjlW.js} +1 -1
  118. package/storybook-static/assets/{Slider.stories-Da5ktnSq.js → Slider.stories-xzy9LCKq.js} +1 -1
  119. package/storybook-static/assets/{SoftAurora.stories-BV-KMTPm.js → SoftAurora.stories-BEGlyxv2.js} +1 -1
  120. package/storybook-static/assets/{SoundDemo.stories-xop1uKpA.js → SoundDemo.stories-lnHQaZRf.js} +1 -1
  121. package/storybook-static/assets/{SplashCursor.stories-Byg72kfZ.js → SplashCursor.stories-BLuoT7bI.js} +1 -1
  122. package/storybook-static/assets/{SpotlightCard.stories-DvHGGRkP.js → SpotlightCard.stories-8rbsIN_x.js} +1 -1
  123. package/storybook-static/assets/{Stack.stories-BN0f1d9l.js → Stack.stories-rXRU4bV_.js} +1 -1
  124. package/storybook-static/assets/{StaggeredMenu.stories-DE40G7OB.js → StaggeredMenu.stories-CTOihDVq.js} +1 -1
  125. package/storybook-static/assets/{StarBorder.stories-DAD2iiE4.js → StarBorder.stories-D42G2awE.js} +1 -1
  126. package/storybook-static/assets/{SunburstChart.stories-C4v_jHd_.js → SunburstChart.stories-CqJjS5Ra.js} +1 -1
  127. package/storybook-static/assets/{Table.stories-C8365iSY.js → Table.stories-DpQG-25p.js} +1 -1
  128. package/storybook-static/assets/{Tabs.stories-CqyX6Q0E.js → Tabs.stories-YHLNdl7B.js} +1 -1
  129. package/storybook-static/assets/{TargetCursor.stories-CbuJWxxw.js → TargetCursor.stories-DRsMwPSK.js} +1 -1
  130. package/storybook-static/assets/{TextArea-CjzPOUVC.js → TextArea-CngqtNxw.js} +1 -1
  131. package/storybook-static/assets/{TextArea.stories-fJXmfbvS.js → TextArea.stories-D1_hrHZS.js} +1 -1
  132. package/storybook-static/assets/{TextCursor.stories-CjzzBd76.js → TextCursor.stories-UtxhqemP.js} +1 -1
  133. package/storybook-static/assets/{TextInput-DXknP6gm.js → TextInput-BehfCmY5.js} +1 -1
  134. package/storybook-static/assets/{TextInput.stories-bqeUj53i.js → TextInput.stories-BvXJYvPz.js} +1 -1
  135. package/storybook-static/assets/{TextPressure.stories-DtkzzrnG.js → TextPressure.stories-CVxoipZx.js} +1 -1
  136. package/storybook-static/assets/{TextType.stories-Vd2VZ3KW.js → TextType.stories-Wbl-e4FH.js} +1 -1
  137. package/storybook-static/assets/{ThemeSwitcher.stories-BKDOG1q1.js → ThemeSwitcher.stories-DJtkbIsv.js} +1 -1
  138. package/storybook-static/assets/{Threads.stories-uqe5C8cR.js → Threads.stories-lWTZV9-e.js} +1 -1
  139. package/storybook-static/assets/{TimeInput.stories-CI-U07aE.js → TimeInput.stories-BRAnNdr7.js} +1 -1
  140. package/storybook-static/assets/{Toggle-IVYnFXU1.js → Toggle-Cox_9XI4.js} +1 -1
  141. package/storybook-static/assets/{Toggle.stories-DRLfC3UC.js → Toggle.stories-D-LdkyEg.js} +1 -1
  142. package/storybook-static/assets/{ToggleButton-uzvjV_39.js → ToggleButton-CJKNj0SW.js} +1 -1
  143. package/storybook-static/assets/{ToggleButton.stories-KmCTq9MK.js → ToggleButton.stories-1ap-eMVz.js} +1 -1
  144. package/storybook-static/assets/{TrueFocus.stories-Dkrutt0z.js → TrueFocus.stories-HdARUvZK.js} +1 -1
  145. package/storybook-static/assets/{VariableProximity.stories-Crz6uUPO.js → VariableProximity.stories-Bs1ntmHm.js} +1 -1
  146. package/storybook-static/assets/{Waves.stories-DrGujYug.js → Waves.stories-DZefHbtX.js} +1 -1
  147. package/storybook-static/assets/{check-D832kA1q.js → check-C2eSkRHq.js} +1 -1
  148. package/storybook-static/assets/{chevron-down-C6LFfaKj.js → chevron-down-C-70uzgo.js} +1 -1
  149. package/storybook-static/assets/{chevron-right-NGhk9HrW.js → chevron-right-wsLgLx3I.js} +1 -1
  150. package/storybook-static/assets/client-BF4QBMW1.js +1 -0
  151. package/storybook-static/assets/{createLucideIcon-BGbQGOSA.js → createLucideIcon-DaHCgKFX.js} +1 -1
  152. package/storybook-static/assets/{download-B0dViQRT.js → download--Xa2UKO-.js} +1 -1
  153. package/storybook-static/assets/{folder-famNjZ7u.js → folder-DCpVGUxB.js} +1 -1
  154. package/storybook-static/assets/{iconBase-DykFijkc.js → iconBase-B-RSH0v3.js} +1 -1
  155. package/storybook-static/assets/{iframe-BINQyIZA.js → iframe-BVoBDGkl.js} +3 -3
  156. package/storybook-static/assets/{index-DmCN6Quz.js → index-C5uOIRS9.js} +1 -1
  157. package/storybook-static/assets/{index-DaPGB1wK.js → index-CyoTMuJi.js} +1 -1
  158. package/storybook-static/assets/{index-DnyCC_gr.js → index-DufMyQUu.js} +1 -1
  159. package/storybook-static/assets/{proxy-D7-_CcFt.js → proxy-DTYfJ2to.js} +1 -1
  160. package/storybook-static/assets/{react-18-ASqyycOj.js → react-18-Blvw7U7X.js} +1 -1
  161. package/storybook-static/assets/{react-three-fiber.esm-DUHAb50j.js → react-three-fiber.esm-C85N-HX5.js} +1 -1
  162. package/storybook-static/assets/{search-B95bkeSW.js → search-MU52wG37.js} +1 -1
  163. package/storybook-static/assets/{settings-CmJHR9k2.js → settings-s6BFzNVN.js} +1 -1
  164. package/storybook-static/assets/{sun-BmNvNR00.js → sun-CEL81Yx2.js} +1 -1
  165. package/storybook-static/assets/{trash-2-ClnXPW9t.js → trash-2-DEEOdkJB.js} +1 -1
  166. package/storybook-static/assets/{use-animation-frame-CMmmR1iu.js → use-animation-frame-BdekcKuM.js} +1 -1
  167. package/storybook-static/assets/{use-in-view-A4Hx2el8.js → use-in-view-vaSz56VM.js} +1 -1
  168. package/storybook-static/assets/{use-motion-value-BhTz6p3H.js → use-motion-value-Cruaf_HC.js} +1 -1
  169. package/storybook-static/assets/{use-spring-CMtVWtyM.js → use-spring-QrlvhiwT.js} +1 -1
  170. package/storybook-static/assets/{use-transform-4uLAGEjM.js → use-transform-I-in6IUD.js} +1 -1
  171. package/storybook-static/assets/{useSound-Brsebkk1.js → useSound-D3odJ6j_.js} +1 -1
  172. package/storybook-static/assets/{users-ChD2Ccmg.js → users-V3YzqUXe.js} +1 -1
  173. package/storybook-static/assets/{x-CqbZIXFw.js → x-CIfb6lfQ.js} +1 -1
  174. package/storybook-static/iframe.html +1 -1
  175. package/storybook-static/project.json +1 -1
  176. package/storybook-static/assets/Calendar-CmqcM0p9.css +0 -1
  177. package/storybook-static/assets/client-CHNPENMZ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as s,R as le,j as r}from"./iframe-BINQyIZA.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-BVoBDGkl.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-BINQyIZA.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-BVoBDGkl.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-BINQyIZA.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-BVoBDGkl.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-BINQyIZA.js";import{L as de,m as aa}from"./proxy-D7-_CcFt.js";import{u as na,f as ta}from"./MotionConfigContext-Cl-Ye_B1.js";import{A as sa}from"./index-DnyCC_gr.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-BVoBDGkl.js";import{L as de,m as aa}from"./proxy-DTYfJ2to.js";import{u as na,f as ta}from"./MotionConfigContext-BPeKZQwM.js";import{A as sa}from"./index-DufMyQUu.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-BINQyIZA.js";import{c as n}from"./createLucideIcon-BGbQGOSA.js";import{m}from"./proxy-D7-_CcFt.js";import{F as N}from"./folder-famNjZ7u.js";import{S}from"./settings-CmJHR9k2.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Cl-Ye_B1.js";/**
1
+ import{j as e,R as u,r as k}from"./iframe-BVoBDGkl.js";import{c as n}from"./createLucideIcon-DaHCgKFX.js";import{m}from"./proxy-DTYfJ2to.js";import{F as N}from"./folder-DCpVGUxB.js";import{S}from"./settings-s6BFzNVN.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.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-BINQyIZA.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-BVoBDGkl.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-BINQyIZA.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-BVoBDGkl.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
@@ -1,4 +1,4 @@
1
- import{r as p,j as e}from"./iframe-BINQyIZA.js";import{T as m}from"./TextArea-CjzPOUVC.js";import"./preload-helper-C1FmrZbK.js";const R={title:"Atoms/TextArea",component:m,parameters:{layout:"centered",docs:{description:{component:"A multiline text input component with character counter support and compact mode for arrays."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},rows:{control:"number"},maxLength:{control:"number"},required:{control:"boolean"},compact:{control:"boolean"},onChange:{action:"changed"}}},s={args:{label:"Description",value:"",placeholder:"Enter your description here...",rows:4,onChange:()=>{}}},l={args:{label:"Bio",value:"Software developer passionate about creating great user experiences.",placeholder:"Tell us about yourself...",rows:4,maxLength:200,onChange:()=>{}}},i={args:{label:"Comparison",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(""),[d,n]=p.useState("");return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",width:"400px"},children:[e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Regular TextArea"}),e.jsx(m,{label:"Description",value:r,onChange:a,placeholder:"Regular size textarea...",rows:4,maxLength:200})]}),e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Compact TextArea"}),e.jsx(m,{label:"Description",value:d,onChange:n,placeholder:"Compact size textarea...",rows:4,maxLength:200,compact:!0})]})]})},parameters:{controls:{disable:!0}}},c={args:{label:"Array Demo",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(["First item with some text",""]),d=(n,t)=>{const o=[...r];o[n]=t,a(o)};return e.jsxs("div",{style:{width:"400px"},children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"TextArea in Array Context (Compact Mode)"}),e.jsxs("div",{style:{background:"var(--color-background-secondary)",padding:"1rem",borderRadius:"var(--radius-md)"},children:[r.map((n,t)=>e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.5rem",marginBottom:t<r.length-1?"1rem":"0"},children:[e.jsx(m,{label:"",value:n,onChange:o=>d(t,o),placeholder:`Item ${t+1}...`,rows:2,compact:!0}),e.jsx("button",{onClick:()=>a(r.filter((o,I)=>I!==t)),style:{background:"var(--color-danger)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"4px 8px",cursor:"pointer",fontSize:"12px",marginTop:"2px"},children:"x"})]},t)),e.jsx("button",{onClick:()=>a([...r,""]),style:{background:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"8px 16px",cursor:"pointer",fontSize:"14px",marginTop:"1rem"},children:"+ Add Item"})]})]})},parameters:{controls:{disable:!0}}};var u,x,g;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
1
+ import{r as p,j as e}from"./iframe-BVoBDGkl.js";import{T as m}from"./TextArea-CngqtNxw.js";import"./preload-helper-C1FmrZbK.js";const R={title:"Atoms/TextArea",component:m,parameters:{layout:"centered",docs:{description:{component:"A multiline text input component with character counter support and compact mode for arrays."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},rows:{control:"number"},maxLength:{control:"number"},required:{control:"boolean"},compact:{control:"boolean"},onChange:{action:"changed"}}},s={args:{label:"Description",value:"",placeholder:"Enter your description here...",rows:4,onChange:()=>{}}},l={args:{label:"Bio",value:"Software developer passionate about creating great user experiences.",placeholder:"Tell us about yourself...",rows:4,maxLength:200,onChange:()=>{}}},i={args:{label:"Comparison",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(""),[d,n]=p.useState("");return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",width:"400px"},children:[e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Regular TextArea"}),e.jsx(m,{label:"Description",value:r,onChange:a,placeholder:"Regular size textarea...",rows:4,maxLength:200})]}),e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Compact TextArea"}),e.jsx(m,{label:"Description",value:d,onChange:n,placeholder:"Compact size textarea...",rows:4,maxLength:200,compact:!0})]})]})},parameters:{controls:{disable:!0}}},c={args:{label:"Array Demo",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(["First item with some text",""]),d=(n,t)=>{const o=[...r];o[n]=t,a(o)};return e.jsxs("div",{style:{width:"400px"},children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"TextArea in Array Context (Compact Mode)"}),e.jsxs("div",{style:{background:"var(--color-background-secondary)",padding:"1rem",borderRadius:"var(--radius-md)"},children:[r.map((n,t)=>e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.5rem",marginBottom:t<r.length-1?"1rem":"0"},children:[e.jsx(m,{label:"",value:n,onChange:o=>d(t,o),placeholder:`Item ${t+1}...`,rows:2,compact:!0}),e.jsx("button",{onClick:()=>a(r.filter((o,I)=>I!==t)),style:{background:"var(--color-danger)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"4px 8px",cursor:"pointer",fontSize:"12px",marginTop:"2px"},children:"x"})]},t)),e.jsx("button",{onClick:()=>a([...r,""]),style:{background:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"8px 16px",cursor:"pointer",fontSize:"14px",marginTop:"1rem"},children:"+ Add Item"})]})]})},parameters:{controls:{disable:!0}}};var u,x,g;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Description',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{r as a,j as c}from"./iframe-BINQyIZA.js";import{A as B}from"./index-DnyCC_gr.js";import{m as L}from"./proxy-D7-_CcFt.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Cl-Ye_B1.js";const p={"text-cursor-container":"_text-cursor-container_uryua_1","text-cursor-inner":"_text-cursor-inner_uryua_7","text-cursor-item":"_text-cursor-item_uryua_16"},E=({text:V="⚛️",spacing:d=100,followMouseDirection:j=!0,randomFloat:n=!0,exitDuration:A=.5,removalInterval:x=30,maxPoints:y=5})=>{const[C,v]=a.useState([]),o=a.useRef(null),g=a.useRef(Date.now()),h=a.useRef(0),M=e=>{if(!o.current)return;const r=o.current.getBoundingClientRect(),_=e.clientX-r.left,D=e.clientY-r.top,I=()=>n?{randomX:Math.random()*10-5,randomY:Math.random()*10-5,randomRotate:Math.random()*10-5}:{};v(O=>{const t=[...O];if(t.length===0)t.push({id:h.current++,x:_,y:D,angle:0,...I()});else{const s=t[t.length-1],u=_-s.x,l=D-s.y,f=Math.sqrt(u*u+l*l);if(f>=d){let X=Math.atan2(l,u)*180/Math.PI;const Y=j?X:0,N=Math.floor(f/d);for(let m=1;m<=N;m++){const R=d*m/f,P=s.x+u*R,$=s.y+l*R;t.push({id:h.current++,x:P,y:$,angle:Y,...I()})}}}return t.length>y?t.slice(t.length-y):t}),g.current=Date.now()};return a.useEffect(()=>{const e=o.current;if(e)return e.addEventListener("mousemove",M),()=>e.removeEventListener("mousemove",M)},[]),a.useEffect(()=>{const e=setInterval(()=>{Date.now()-g.current>100&&v(r=>r.length>0?r.slice(1):r)},x);return()=>clearInterval(e)},[x]),c.jsx("div",{ref:o,className:`${p["text-cursor-container"]}`,children:c.jsx("div",{className:`${p["text-cursor-inner"]}`,children:c.jsx(B,{children:C.map(e=>c.jsx(L.div,{initial:{opacity:0,scale:1,rotate:e.angle},animate:{opacity:1,scale:1,x:n?[0,e.randomX||0,0]:0,y:n?[0,e.randomY||0,0]:0,rotate:n?[e.angle,e.angle+(e.randomRotate||0),e.angle]:e.angle},exit:{opacity:0,scale:0},transition:{opacity:{duration:A,ease:"easeOut"},...n&&{x:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},y:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},rotate:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"}}},className:`${p["text-cursor-item"]}`,style:{left:e.x,top:e.y},children:V},e.id))})})})};E.__docgenInfo={description:"",methods:[],displayName:"TextCursor",props:{text:{defaultValue:{value:"'⚛️'",computed:!1},required:!1},spacing:{defaultValue:{value:"100",computed:!1},required:!1},followMouseDirection:{defaultValue:{value:"true",computed:!1},required:!1},randomFloat:{defaultValue:{value:"true",computed:!1},required:!1},exitDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},removalInterval:{defaultValue:{value:"30",computed:!1},required:!1},maxPoints:{defaultValue:{value:"5",computed:!1},required:!1}}};const H={title:"ReactBits/TextAnimations/TextCursor",component:E,parameters:{layout:"fullscreen"}},i={args:{text:"⚛️",spacing:100,followMouseDirection:!0,randomFloat:!0,exitDuration:.5,removalInterval:30,maxPoints:5}};var w,T,q;i.parameters={...i.parameters,docs:{...(w=i.parameters)==null?void 0:w.docs,source:{originalSource:`{
1
+ import{r as a,j as c}from"./iframe-BVoBDGkl.js";import{A as B}from"./index-DufMyQUu.js";import{m as L}from"./proxy-DTYfJ2to.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.js";const p={"text-cursor-container":"_text-cursor-container_uryua_1","text-cursor-inner":"_text-cursor-inner_uryua_7","text-cursor-item":"_text-cursor-item_uryua_16"},E=({text:V="⚛️",spacing:d=100,followMouseDirection:j=!0,randomFloat:n=!0,exitDuration:A=.5,removalInterval:x=30,maxPoints:y=5})=>{const[C,v]=a.useState([]),o=a.useRef(null),g=a.useRef(Date.now()),h=a.useRef(0),M=e=>{if(!o.current)return;const r=o.current.getBoundingClientRect(),_=e.clientX-r.left,D=e.clientY-r.top,I=()=>n?{randomX:Math.random()*10-5,randomY:Math.random()*10-5,randomRotate:Math.random()*10-5}:{};v(O=>{const t=[...O];if(t.length===0)t.push({id:h.current++,x:_,y:D,angle:0,...I()});else{const s=t[t.length-1],u=_-s.x,l=D-s.y,f=Math.sqrt(u*u+l*l);if(f>=d){let X=Math.atan2(l,u)*180/Math.PI;const Y=j?X:0,N=Math.floor(f/d);for(let m=1;m<=N;m++){const R=d*m/f,P=s.x+u*R,$=s.y+l*R;t.push({id:h.current++,x:P,y:$,angle:Y,...I()})}}}return t.length>y?t.slice(t.length-y):t}),g.current=Date.now()};return a.useEffect(()=>{const e=o.current;if(e)return e.addEventListener("mousemove",M),()=>e.removeEventListener("mousemove",M)},[]),a.useEffect(()=>{const e=setInterval(()=>{Date.now()-g.current>100&&v(r=>r.length>0?r.slice(1):r)},x);return()=>clearInterval(e)},[x]),c.jsx("div",{ref:o,className:`${p["text-cursor-container"]}`,children:c.jsx("div",{className:`${p["text-cursor-inner"]}`,children:c.jsx(B,{children:C.map(e=>c.jsx(L.div,{initial:{opacity:0,scale:1,rotate:e.angle},animate:{opacity:1,scale:1,x:n?[0,e.randomX||0,0]:0,y:n?[0,e.randomY||0,0]:0,rotate:n?[e.angle,e.angle+(e.randomRotate||0),e.angle]:e.angle},exit:{opacity:0,scale:0},transition:{opacity:{duration:A,ease:"easeOut"},...n&&{x:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},y:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},rotate:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"}}},className:`${p["text-cursor-item"]}`,style:{left:e.x,top:e.y},children:V},e.id))})})})};E.__docgenInfo={description:"",methods:[],displayName:"TextCursor",props:{text:{defaultValue:{value:"'⚛️'",computed:!1},required:!1},spacing:{defaultValue:{value:"100",computed:!1},required:!1},followMouseDirection:{defaultValue:{value:"true",computed:!1},required:!1},randomFloat:{defaultValue:{value:"true",computed:!1},required:!1},exitDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},removalInterval:{defaultValue:{value:"30",computed:!1},required:!1},maxPoints:{defaultValue:{value:"5",computed:!1},required:!1}}};const H={title:"ReactBits/TextAnimations/TextCursor",component:E,parameters:{layout:"fullscreen"}},i={args:{text:"⚛️",spacing:100,followMouseDirection:!0,randomFloat:!0,exitDuration:.5,removalInterval:30,maxPoints:5}};var w,T,q;i.parameters={...i.parameters,docs:{...(w=i.parameters)==null?void 0:w.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: '⚛️',
4
4
  spacing: 100,
@@ -1,4 +1,4 @@
1
- import{R as f,j as a}from"./iframe-BINQyIZA.js";import{u as T}from"./useSound-Brsebkk1.js";const V="_textInput_16mxa_1",A="_required_16mxa_82",k="_inputError_16mxa_89",M="_errorMessage_16mxa_102",R="_success_16mxa_138",S="_loading_16mxa_167",P="_withIcon_16mxa_184",$="_inputIcon_16mxa_192",B="_withAction_16mxa_209",F="_actionButton_16mxa_213",t={textInput:V,required:A,inputError:k,errorMessage:M,success:R,loading:S,withIcon:P,inputIcon:$,withAction:B,actionButton:F};function H({label:_,value:r,onChange:I,type:b="text",onBlur:v,placeholder:w,error:n,required:y,disabled:m=!1,success:g=!1,loading:o=!1,icon:c,actionButton:l,maxLength:E,autoComplete:j,soundConfig:s,enableTypingSounds:q=!1}){const i=`input-${Math.random().toString(36).substr(2,9)}`,{handlers:u,playSound:p}=T(s),h=f.useRef(r),N=()=>{const e=[t.textInput];return g&&e.push(t.success),o&&e.push(t.loading),c&&e.push(t.withIcon),l&&e.push(t.withAction),e.join(" ")};return f.useEffect(()=>{h.current=r},[r]),a.jsxs("div",{className:N(),children:[a.jsxs("label",{htmlFor:i,children:[_,y&&a.jsx("span",{className:t.required,children:"*"})]}),a.jsxs("div",{style:{position:"relative"},children:[c&&a.jsx("div",{className:t.inputIcon,children:c}),a.jsx("input",{id:i,type:b,value:r,onChange:e=>{const d=e.target.value,x=h.current;I(d),(q||s!=null&&s.onClick)&&(d.length>x.length?p("type"):d.length<x.length&&p("delete")),n&&(s!=null&&s.onError)&&p(typeof s.onError=="string"?s.onError:"error")},onBlur:v,placeholder:w,className:n?t.inputError:"","aria-invalid":!!n,"aria-describedby":n?`${i}-error`:void 0,disabled:m||o,maxLength:E,autoComplete:j}),l&&a.jsx("button",{type:"button",className:t.actionButton,onClick:()=>{var e;(e=u.onClick)==null||e.call(u),l.onClick()},disabled:m||o,children:l.label})]}),n&&a.jsx("span",{id:`${i}-error`,className:t.errorMessage,children:n})]})}H.__docgenInfo={description:`TextInput component - A versatile text input field with label and error handling
1
+ import{R as f,j as a}from"./iframe-BVoBDGkl.js";import{u as T}from"./useSound-D3odJ6j_.js";const V="_textInput_16mxa_1",A="_required_16mxa_82",k="_inputError_16mxa_89",M="_errorMessage_16mxa_102",R="_success_16mxa_138",S="_loading_16mxa_167",P="_withIcon_16mxa_184",$="_inputIcon_16mxa_192",B="_withAction_16mxa_209",F="_actionButton_16mxa_213",t={textInput:V,required:A,inputError:k,errorMessage:M,success:R,loading:S,withIcon:P,inputIcon:$,withAction:B,actionButton:F};function H({label:_,value:r,onChange:I,type:b="text",onBlur:v,placeholder:w,error:n,required:y,disabled:m=!1,success:g=!1,loading:o=!1,icon:c,actionButton:l,maxLength:E,autoComplete:j,soundConfig:s,enableTypingSounds:q=!1}){const i=`input-${Math.random().toString(36).substr(2,9)}`,{handlers:u,playSound:p}=T(s),h=f.useRef(r),N=()=>{const e=[t.textInput];return g&&e.push(t.success),o&&e.push(t.loading),c&&e.push(t.withIcon),l&&e.push(t.withAction),e.join(" ")};return f.useEffect(()=>{h.current=r},[r]),a.jsxs("div",{className:N(),children:[a.jsxs("label",{htmlFor:i,children:[_,y&&a.jsx("span",{className:t.required,children:"*"})]}),a.jsxs("div",{style:{position:"relative"},children:[c&&a.jsx("div",{className:t.inputIcon,children:c}),a.jsx("input",{id:i,type:b,value:r,onChange:e=>{const d=e.target.value,x=h.current;I(d),(q||s!=null&&s.onClick)&&(d.length>x.length?p("type"):d.length<x.length&&p("delete")),n&&(s!=null&&s.onError)&&p(typeof s.onError=="string"?s.onError:"error")},onBlur:v,placeholder:w,className:n?t.inputError:"","aria-invalid":!!n,"aria-describedby":n?`${i}-error`:void 0,disabled:m||o,maxLength:E,autoComplete:j}),l&&a.jsx("button",{type:"button",className:t.actionButton,onClick:()=>{var e;(e=u.onClick)==null||e.call(u),l.onClick()},disabled:m||o,children:l.label})]}),n&&a.jsx("span",{id:`${i}-error`,className:t.errorMessage,children:n})]})}H.__docgenInfo={description:`TextInput component - A versatile text input field with label and error handling
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{r as i,j as e}from"./iframe-BINQyIZA.js";import{T as u}from"./TextInput-DXknP6gm.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-Brsebkk1.js";const U={title:"Atoms/TextInput",component:u,parameters:{layout:"centered",docs:{description:{component:"A simple wrapper around Input component for text input with controlled state management."}}},argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},error:{control:"text"},type:{control:"select",options:["text","email","password","tel","url"]},required:{control:"boolean"},onChange:{action:"changed"},onBlur:{action:"blurred"}}},s={args:{label:"Name",value:"",placeholder:"Enter your name",onChange:()=>{}}},o={args:{label:"Email",value:"invalid-email",type:"email",error:"Please enter a valid email address",onChange:()=>{}}},n={args:{label:"Username",value:"",placeholder:"Enter username",required:!0,onChange:()=>{}},render:()=>{const[m,y]=i.useState(""),[t,f]=i.useState(""),[a,d]=i.useState({}),C=()=>{const r={};m||(r.username="Username is required"),t?t.length<6&&(r.password="Password must be at least 6 characters"):r.password="Password is required",d(r)};return e.jsxs("div",{style:{padding:"2rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1.5rem"},children:"Login"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[e.jsx(u,{label:"Username",value:m,onChange:r=>{y(r),a.username&&d(l=>({...l,username:void 0}))},placeholder:"Enter username",error:a.username,required:!0}),e.jsx(u,{label:"Password",type:"password",value:t,onChange:r=>{f(r),a.password&&d(l=>({...l,password:void 0}))},placeholder:"Enter password",error:a.password,required:!0}),e.jsx("button",{type:"button",onClick:C,style:{padding:"0.75rem 1rem",backgroundColor:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",marginTop:"0.5rem"},children:"Login"})]})]})},parameters:{controls:{disable:!0}}};var p,c,g;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:`{
1
+ import{r as i,j as e}from"./iframe-BVoBDGkl.js";import{T as u}from"./TextInput-BehfCmY5.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-D3odJ6j_.js";const U={title:"Atoms/TextInput",component:u,parameters:{layout:"centered",docs:{description:{component:"A simple wrapper around Input component for text input with controlled state management."}}},argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},error:{control:"text"},type:{control:"select",options:["text","email","password","tel","url"]},required:{control:"boolean"},onChange:{action:"changed"},onBlur:{action:"blurred"}}},s={args:{label:"Name",value:"",placeholder:"Enter your name",onChange:()=>{}}},o={args:{label:"Email",value:"invalid-email",type:"email",error:"Please enter a valid email address",onChange:()=>{}}},n={args:{label:"Username",value:"",placeholder:"Enter username",required:!0,onChange:()=>{}},render:()=>{const[m,y]=i.useState(""),[t,f]=i.useState(""),[a,d]=i.useState({}),C=()=>{const r={};m||(r.username="Username is required"),t?t.length<6&&(r.password="Password must be at least 6 characters"):r.password="Password is required",d(r)};return e.jsxs("div",{style:{padding:"2rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1.5rem"},children:"Login"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[e.jsx(u,{label:"Username",value:m,onChange:r=>{y(r),a.username&&d(l=>({...l,username:void 0}))},placeholder:"Enter username",error:a.username,required:!0}),e.jsx(u,{label:"Password",type:"password",value:t,onChange:r=>{f(r),a.password&&d(l=>({...l,password:void 0}))},placeholder:"Enter password",error:a.password,required:!0}),e.jsx("button",{type:"button",onClick:C,style:{padding:"0.75rem 1rem",backgroundColor:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",marginTop:"0.5rem"},children:"Login"})]})]})},parameters:{controls:{disable:!0}}};var p,c,g;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Name',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{r,j as F}from"./iframe-BINQyIZA.js";import"./preload-helper-C1FmrZbK.js";const J=(i,o)=>{const a=o.x-i.x,l=o.y-i.y;return Math.sqrt(a*a+l*l)},v=(i,o,a,l)=>{const h=l-Math.abs(l*i/o);return Math.max(a,h+a)},K=(i,o)=>{let a;return(...l)=>{clearTimeout(a),a=setTimeout(()=>{i.apply(void 0,l)},o)}},P=({text:i="Compressa",fontFamily:o="Compressa VF",fontUrl:a="https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:l=!0,weight:h=!0,italic:V=!0,alpha:g=!1,flex:A=!0,stroke:q=!1,scale:S=!1,textColor:x="#FFFFFF",strokeColor:k="#FF0000",className:O="",minFontSize:R=24})=>{const p=r.useRef(null),d=r.useRef(null),E=r.useRef([]),c=r.useRef({x:0,y:0}),f=r.useRef({x:0,y:0}),[X,G]=r.useState(R),[N,b]=r.useState(1),[Y,M]=r.useState(1),C=i.split("");r.useEffect(()=>{const e=t=>{f.current.x=t.clientX,f.current.y=t.clientY},u=t=>{const s=t.touches[0];f.current.x=s.clientX,f.current.y=s.clientY};if(window.addEventListener("mousemove",e),window.addEventListener("touchmove",u,{passive:!0}),p.current){const{left:t,top:s,width:n,height:m}=p.current.getBoundingClientRect();c.current.x=t+n/2,c.current.y=s+m/2,f.current.x=c.current.x,f.current.y=c.current.y}return()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",u)}},[]);const $=r.useCallback(()=>{if(!p.current||!d.current)return;const{width:e,height:u}=p.current.getBoundingClientRect();let t=e/(C.length/2);t=Math.max(t,R),G(t),b(1),M(1),requestAnimationFrame(()=>{if(!d.current)return;const s=d.current.getBoundingClientRect();if(S&&s.height>0){const n=u/s.height;b(n),M(n)}})},[C.length,R,S]);r.useEffect(()=>{const e=K($,100);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[$]),r.useEffect(()=>{let e;const u=()=>{if(c.current.x+=(f.current.x-c.current.x)/15,c.current.y+=(f.current.y-c.current.y)/15,d.current){const s=d.current.getBoundingClientRect().width/2;E.current.forEach(n=>{if(!n)return;const m=n.getBoundingClientRect(),H={x:m.x+m.width/2,y:m.y+m.height/2},w=J(c.current,H),I=l?Math.floor(v(w,s,5,200)):100,U=h?Math.floor(v(w,s,100,900)):400,W=V?v(w,s,0,1).toFixed(2):0,z=g?v(w,s,0,1).toFixed(2):1,j=`'wght' ${U}, 'wdth' ${I}, 'ital' ${W}`;n.style.fontVariationSettings!==j&&(n.style.fontVariationSettings=j),g&&n.style.opacity!==z&&(n.style.opacity=z)})}e=requestAnimationFrame(u)};return u(),()=>cancelAnimationFrame(e)},[l,h,V,g]);const _=r.useMemo(()=>F.jsx("style",{children:`
1
+ import{r,j as F}from"./iframe-BVoBDGkl.js";import"./preload-helper-C1FmrZbK.js";const J=(i,o)=>{const a=o.x-i.x,l=o.y-i.y;return Math.sqrt(a*a+l*l)},v=(i,o,a,l)=>{const h=l-Math.abs(l*i/o);return Math.max(a,h+a)},K=(i,o)=>{let a;return(...l)=>{clearTimeout(a),a=setTimeout(()=>{i.apply(void 0,l)},o)}},P=({text:i="Compressa",fontFamily:o="Compressa VF",fontUrl:a="https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:l=!0,weight:h=!0,italic:V=!0,alpha:g=!1,flex:A=!0,stroke:q=!1,scale:S=!1,textColor:x="#FFFFFF",strokeColor:k="#FF0000",className:O="",minFontSize:R=24})=>{const p=r.useRef(null),d=r.useRef(null),E=r.useRef([]),c=r.useRef({x:0,y:0}),f=r.useRef({x:0,y:0}),[X,G]=r.useState(R),[N,b]=r.useState(1),[Y,M]=r.useState(1),C=i.split("");r.useEffect(()=>{const e=t=>{f.current.x=t.clientX,f.current.y=t.clientY},u=t=>{const s=t.touches[0];f.current.x=s.clientX,f.current.y=s.clientY};if(window.addEventListener("mousemove",e),window.addEventListener("touchmove",u,{passive:!0}),p.current){const{left:t,top:s,width:n,height:m}=p.current.getBoundingClientRect();c.current.x=t+n/2,c.current.y=s+m/2,f.current.x=c.current.x,f.current.y=c.current.y}return()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",u)}},[]);const $=r.useCallback(()=>{if(!p.current||!d.current)return;const{width:e,height:u}=p.current.getBoundingClientRect();let t=e/(C.length/2);t=Math.max(t,R),G(t),b(1),M(1),requestAnimationFrame(()=>{if(!d.current)return;const s=d.current.getBoundingClientRect();if(S&&s.height>0){const n=u/s.height;b(n),M(n)}})},[C.length,R,S]);r.useEffect(()=>{const e=K($,100);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[$]),r.useEffect(()=>{let e;const u=()=>{if(c.current.x+=(f.current.x-c.current.x)/15,c.current.y+=(f.current.y-c.current.y)/15,d.current){const s=d.current.getBoundingClientRect().width/2;E.current.forEach(n=>{if(!n)return;const m=n.getBoundingClientRect(),H={x:m.x+m.width/2,y:m.y+m.height/2},w=J(c.current,H),I=l?Math.floor(v(w,s,5,200)):100,U=h?Math.floor(v(w,s,100,900)):400,W=V?v(w,s,0,1).toFixed(2):0,z=g?v(w,s,0,1).toFixed(2):1,j=`'wght' ${U}, 'wdth' ${I}, 'ital' ${W}`;n.style.fontVariationSettings!==j&&(n.style.fontVariationSettings=j),g&&n.style.opacity!==z&&(n.style.opacity=z)})}e=requestAnimationFrame(u)};return u(),()=>cancelAnimationFrame(e)},[l,h,V,g]);const _=r.useMemo(()=>F.jsx("style",{children:`
2
2
  @font-face {
3
3
  font-family: '${o}';
4
4
  src: url('${a}');
@@ -1,4 +1,4 @@
1
- import{r as e,j}from"./iframe-BINQyIZA.js";import{g as A}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const S={"text-type__cursor":"_text-type__cursor_i3t4x_6","text-type__cursor--hidden":"_text-type__cursor--hidden_i3t4x_12"},b=({text:o,as:k="div",typingSpeed:i=50,initialDelay:C=0,pauseDuration:x=2e3,deletingSpeed:V=30,loop:h=!0,className:w="",showCursor:y=!0,hideCursorWhileTyping:B=!1,cursorCharacter:H="|",cursorClassName:z="",cursorBlinkDuration:q=.5,textColors:g=[],variableSpeed:l,onSentenceComplete:T,startOnVisible:_=!1,reverseMode:D=!1,...F})=>{const[c,I]=e.useState(""),[n,E]=e.useState(0),[f,N]=e.useState(!1),[r,G]=e.useState(0),[R,J]=e.useState(!_),d=e.useRef(null),v=e.useRef(null),s=e.useMemo(()=>Array.isArray(o)?o:[o],[o]),K=e.useCallback(()=>{if(!l)return i;const{min:t,max:u}=l;return Math.random()*(u-t)+t},[l,i]),L=()=>g.length===0?"inherit":g[r%g.length];e.useEffect(()=>{if(!_||!v.current)return;const t=new IntersectionObserver(u=>{u.forEach(p=>{p.isIntersecting&&J(!0)})},{threshold:.1});return t.observe(v.current),()=>t.disconnect()},[_]),e.useEffect(()=>{y&&d.current&&(A.set(d.current,{opacity:1}),A.to(d.current,{opacity:0,duration:q,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[y,q]),e.useEffect(()=>{if(!R)return;let t;const u=s[r],p=D?u.split("").reverse().join(""):u,W=()=>{if(f)if(c===""){if(N(!1),r===s.length-1&&!h)return;T&&T(s[r],r),G(a=>(a+1)%s.length),E(0),t=setTimeout(()=>{},x)}else t=setTimeout(()=>{I(a=>a.slice(0,-1))},V);else if(n<p.length)t=setTimeout(()=>{I(a=>a+p[n]),E(a=>a+1)},l?K():i);else if(s.length>=1){if(!h&&r===s.length-1)return;t=setTimeout(()=>{N(!0)},x)}};return n===0&&!f&&c===""?t=setTimeout(W,C):W(),()=>clearTimeout(t)},[n,c,f,i,V,x,s,r,h,C,R,D,l,T]);const P=B&&(n<s[r].length||f);return e.createElement(k,{ref:v,className:`text-type ${w}`,...F},j.jsx("span",{className:"text-type__content",style:{color:L()||"inherit"},children:c}),y&&j.jsx("span",{ref:d,className:`${S["text-type__cursor"]} ${z} ${P?S["text-type__cursor--hidden"]:""}`,children:H}))};b.__docgenInfo={description:"",methods:[],displayName:"TextType",props:{as:{defaultValue:{value:"'div'",computed:!1},required:!1},typingSpeed:{defaultValue:{value:"50",computed:!1},required:!1},initialDelay:{defaultValue:{value:"0",computed:!1},required:!1},pauseDuration:{defaultValue:{value:"2000",computed:!1},required:!1},deletingSpeed:{defaultValue:{value:"30",computed:!1},required:!1},loop:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showCursor:{defaultValue:{value:"true",computed:!1},required:!1},hideCursorWhileTyping:{defaultValue:{value:"false",computed:!1},required:!1},cursorCharacter:{defaultValue:{value:"'|'",computed:!1},required:!1},cursorClassName:{defaultValue:{value:"''",computed:!1},required:!1},cursorBlinkDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},textColors:{defaultValue:{value:"[]",computed:!1},required:!1},startOnVisible:{defaultValue:{value:"false",computed:!1},required:!1},reverseMode:{defaultValue:{value:"false",computed:!1},required:!1}}};const Y={title:"ReactBits/TextAnimations/TextType",component:b,parameters:{layout:"fullscreen"}},m={args:{text:"Hello World",as:"div",typingSpeed:50,initialDelay:0,pauseDuration:2e3,deletingSpeed:30,loop:!0,showCursor:!0,hideCursorWhileTyping:!1,cursorCharacter:"|",cursorClassName:"",cursorBlinkDuration:.5,textColors:[],startOnVisible:!1,reverseMode:!1}};var M,O,$;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`{
1
+ import{r as e,j}from"./iframe-BVoBDGkl.js";import{g as A}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const S={"text-type__cursor":"_text-type__cursor_i3t4x_6","text-type__cursor--hidden":"_text-type__cursor--hidden_i3t4x_12"},b=({text:o,as:k="div",typingSpeed:i=50,initialDelay:C=0,pauseDuration:x=2e3,deletingSpeed:V=30,loop:h=!0,className:w="",showCursor:y=!0,hideCursorWhileTyping:B=!1,cursorCharacter:H="|",cursorClassName:z="",cursorBlinkDuration:q=.5,textColors:g=[],variableSpeed:l,onSentenceComplete:T,startOnVisible:_=!1,reverseMode:D=!1,...F})=>{const[c,I]=e.useState(""),[n,E]=e.useState(0),[f,N]=e.useState(!1),[r,G]=e.useState(0),[R,J]=e.useState(!_),d=e.useRef(null),v=e.useRef(null),s=e.useMemo(()=>Array.isArray(o)?o:[o],[o]),K=e.useCallback(()=>{if(!l)return i;const{min:t,max:u}=l;return Math.random()*(u-t)+t},[l,i]),L=()=>g.length===0?"inherit":g[r%g.length];e.useEffect(()=>{if(!_||!v.current)return;const t=new IntersectionObserver(u=>{u.forEach(p=>{p.isIntersecting&&J(!0)})},{threshold:.1});return t.observe(v.current),()=>t.disconnect()},[_]),e.useEffect(()=>{y&&d.current&&(A.set(d.current,{opacity:1}),A.to(d.current,{opacity:0,duration:q,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[y,q]),e.useEffect(()=>{if(!R)return;let t;const u=s[r],p=D?u.split("").reverse().join(""):u,W=()=>{if(f)if(c===""){if(N(!1),r===s.length-1&&!h)return;T&&T(s[r],r),G(a=>(a+1)%s.length),E(0),t=setTimeout(()=>{},x)}else t=setTimeout(()=>{I(a=>a.slice(0,-1))},V);else if(n<p.length)t=setTimeout(()=>{I(a=>a+p[n]),E(a=>a+1)},l?K():i);else if(s.length>=1){if(!h&&r===s.length-1)return;t=setTimeout(()=>{N(!0)},x)}};return n===0&&!f&&c===""?t=setTimeout(W,C):W(),()=>clearTimeout(t)},[n,c,f,i,V,x,s,r,h,C,R,D,l,T]);const P=B&&(n<s[r].length||f);return e.createElement(k,{ref:v,className:`text-type ${w}`,...F},j.jsx("span",{className:"text-type__content",style:{color:L()||"inherit"},children:c}),y&&j.jsx("span",{ref:d,className:`${S["text-type__cursor"]} ${z} ${P?S["text-type__cursor--hidden"]:""}`,children:H}))};b.__docgenInfo={description:"",methods:[],displayName:"TextType",props:{as:{defaultValue:{value:"'div'",computed:!1},required:!1},typingSpeed:{defaultValue:{value:"50",computed:!1},required:!1},initialDelay:{defaultValue:{value:"0",computed:!1},required:!1},pauseDuration:{defaultValue:{value:"2000",computed:!1},required:!1},deletingSpeed:{defaultValue:{value:"30",computed:!1},required:!1},loop:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showCursor:{defaultValue:{value:"true",computed:!1},required:!1},hideCursorWhileTyping:{defaultValue:{value:"false",computed:!1},required:!1},cursorCharacter:{defaultValue:{value:"'|'",computed:!1},required:!1},cursorClassName:{defaultValue:{value:"''",computed:!1},required:!1},cursorBlinkDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},textColors:{defaultValue:{value:"[]",computed:!1},required:!1},startOnVisible:{defaultValue:{value:"false",computed:!1},required:!1},reverseMode:{defaultValue:{value:"false",computed:!1},required:!1}}};const Y={title:"ReactBits/TextAnimations/TextType",component:b,parameters:{layout:"fullscreen"}},m={args:{text:"Hello World",as:"div",typingSpeed:50,initialDelay:0,pauseDuration:2e3,deletingSpeed:30,loop:!0,showCursor:!0,hideCursorWhileTyping:!1,cursorCharacter:"|",cursorClassName:"",cursorBlinkDuration:.5,textColors:[],startOnVisible:!1,reverseMode:!1}};var M,O,$;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: 'Hello World',
4
4
  as: 'div',
@@ -1,4 +1,4 @@
1
- import{r as p,j as e}from"./iframe-BINQyIZA.js";import{m as s}from"./proxy-D7-_CcFt.js";import{M as _,S as y}from"./sun-BmNvNR00.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Cl-Ye_B1.js";import"./createLucideIcon-BGbQGOSA.js";const E=p.createContext(void 0),R=()=>p.useContext(E)??null,O=({children:o,defaultTheme:m="light",storageKey:l="app-theme"})=>{const[i,g]=p.useState(()=>{const a=localStorage.getItem(l);return a&&["light","dark","lossito","lossito-dark","dao","dao-dark","crt"].includes(a)?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":m}),v=a=>{g(a),localStorage.setItem(l,a)},n=()=>{const a=["light","dark","lossito","lossito-dark","dao","dao-dark","crt"],x=(a.indexOf(i)+1)%a.length;v(a[x])};return p.useEffect(()=>{const a=document.documentElement;a.setAttribute("data-theme",i),i.includes("dark")?a.classList.add("dark"):a.classList.remove("dark")},[i]),p.useEffect(()=>{const a=window.matchMedia("(prefers-color-scheme: dark)"),d=x=>{localStorage.getItem(l)||g(x.matches?"dark":"light")};return a.addEventListener("change",d),()=>a.removeEventListener("change",d)},[l]),e.jsx(E.Provider,{value:{theme:i,setTheme:v,toggleTheme:n},children:o})};O.__docgenInfo={description:"",methods:[],displayName:"ThemeProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:"",defaultValue:{value:"'light'",computed:!1}},storageKey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'app-theme'",computed:!1}}}};const W="_button_2917u_1",P="_iconWrapper_2917u_20",z="_label_2917u_28",A="_toggle_2917u_33",H="_toggleTrack_2917u_43",Q="_toggleThumb_2917u_53",F="_dropdown_2917u_65",G="_dropdownTrigger_2917u_69",J="_dropdownMenu_2917u_87",U="_dropdownItem_2917u_106",X="_active_2917u_124",Y="_icon_2917u_20",Z="_text_2917u_144",r={button:W,iconWrapper:P,label:z,toggle:A,toggleTrack:H,toggleThumb:Q,dropdown:F,dropdownTrigger:G,dropdownMenu:J,dropdownItem:U,active:X,icon:Y,text:Z},h=({variant:o="button",showLabel:m=!1,className:l="",currentTheme:i,onThemeChange:g,themes:v})=>{const n=R(),a=i??(n==null?void 0:n.theme)??"light",d=g??(n==null?void 0:n.setTheme)??(()=>{}),c=v??[{value:"light",label:"Light",icon:e.jsx(y,{})},{value:"dark",label:"Dark",icon:e.jsx(_,{})},{value:"lossito",label:"Lossito Light",icon:"✨"},{value:"lossito-dark",label:"Lossito Dark",icon:"🌑"},{value:"dao",label:"Dao Light",icon:"⬜"},{value:"dao-dark",label:"Dao Dark",icon:"⬛"}],k=c.findIndex(t=>t.value===a),u=c[k]??c[0];if(o==="toggle"){const t=a.includes("dark");return e.jsxs(s.button,{className:`${r.toggle} ${l}`,onClick:()=>d(t?"light":"dark"),whileTap:{scale:.95},"aria-label":"Toggle theme",children:[e.jsx(s.div,{className:r.toggleTrack,animate:{backgroundColor:t?"var(--color-primary)":"var(--color-border)"},children:e.jsx(s.div,{className:r.toggleThumb,animate:{x:t?24:0},transition:{type:"spring",stiffness:500,damping:30},children:t?e.jsx(_,{size:14}):e.jsx(y,{size:14})})}),m&&e.jsx("span",{className:r.label,children:t?"Dark":"Light"})]})}return o==="dropdown"?e.jsxs("div",{className:`${r.dropdown} ${l}`,children:[e.jsxs(s.button,{className:r.dropdownTrigger,whileTap:{scale:.98},children:[u.icon,m&&e.jsx("span",{className:r.label,children:u.label})]}),e.jsx(s.div,{className:r.dropdownMenu,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},children:c.map(t=>e.jsxs(s.button,{className:`${r.dropdownItem} ${a===t.value?r.active:""}`,onClick:()=>d(t.value),whileHover:{x:4},whileTap:{scale:.98},children:[e.jsx("span",{className:r.icon,children:t.icon}),e.jsx("span",{className:r.text,children:t.label})]},t.value))})]}):e.jsxs(s.button,{className:`${r.button} ${l}`,onClick:()=>{const t=(k+1)%c.length;d(c[t].value)},whileTap:{scale:.95},whileHover:{scale:1.05},"aria-label":`Current theme: ${u.label}. Click to change.`,children:[e.jsx(s.div,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:180,opacity:0},transition:{duration:.3},className:r.iconWrapper,children:u.icon},a),m&&e.jsx("span",{className:r.label,children:u.label})]})};h.__docgenInfo={description:"",methods:[],displayName:"ThemeSwitcher",props:{variant:{required:!1,tsType:{name:"union",raw:"'button' | 'dropdown' | 'toggle'",elements:[{name:"literal",value:"'button'"},{name:"literal",value:"'dropdown'"},{name:"literal",value:"'toggle'"}]},description:"",defaultValue:{value:"'button'",computed:!1}},showLabel:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},currentTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:""},onThemeChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(theme: Theme) => void",signature:{arguments:[{type:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},name:"theme"}],return:{name:"void"}}},description:""},themes:{required:!1,tsType:{name:"Array",elements:[{name:"ThemeOption"}],raw:"ThemeOption[]"},description:""}}};const K=({children:o})=>e.jsx(O,{defaultTheme:"light",children:o}),ne={title:"Molecules/ThemeSwitcher",component:h,decorators:[o=>e.jsx(K,{children:e.jsx("div",{style:{padding:"2rem"},children:e.jsx(o,{})})})],parameters:{layout:"centered"},argTypes:{variant:{control:{type:"select"},options:["button","dropdown","toggle"]},showLabel:{control:{type:"boolean"}}}},w={args:{variant:"button",showLabel:!0}},b={args:{variant:"toggle",showLabel:!0}},T={args:{variant:"dropdown",showLabel:!0}},f={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",alignItems:"center"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Button Variant"}),e.jsx(h,{variant:"button",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Toggle Variant"}),e.jsx(h,{variant:"toggle",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Dropdown Variant"}),e.jsx(h,{variant:"dropdown",showLabel:!0})]})]})};var j,L,S;w.parameters={...w.parameters,docs:{...(j=w.parameters)==null?void 0:j.docs,source:{originalSource:`{
1
+ import{r as p,j as e}from"./iframe-BVoBDGkl.js";import{m as s}from"./proxy-DTYfJ2to.js";import{M as _,S as y}from"./sun-CEL81Yx2.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.js";import"./createLucideIcon-DaHCgKFX.js";const E=p.createContext(void 0),R=()=>p.useContext(E)??null,O=({children:o,defaultTheme:m="light",storageKey:l="app-theme"})=>{const[i,g]=p.useState(()=>{const a=localStorage.getItem(l);return a&&["light","dark","lossito","lossito-dark","dao","dao-dark","crt"].includes(a)?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":m}),v=a=>{g(a),localStorage.setItem(l,a)},n=()=>{const a=["light","dark","lossito","lossito-dark","dao","dao-dark","crt"],x=(a.indexOf(i)+1)%a.length;v(a[x])};return p.useEffect(()=>{const a=document.documentElement;a.setAttribute("data-theme",i),i.includes("dark")?a.classList.add("dark"):a.classList.remove("dark")},[i]),p.useEffect(()=>{const a=window.matchMedia("(prefers-color-scheme: dark)"),d=x=>{localStorage.getItem(l)||g(x.matches?"dark":"light")};return a.addEventListener("change",d),()=>a.removeEventListener("change",d)},[l]),e.jsx(E.Provider,{value:{theme:i,setTheme:v,toggleTheme:n},children:o})};O.__docgenInfo={description:"",methods:[],displayName:"ThemeProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:"",defaultValue:{value:"'light'",computed:!1}},storageKey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'app-theme'",computed:!1}}}};const W="_button_2917u_1",P="_iconWrapper_2917u_20",z="_label_2917u_28",A="_toggle_2917u_33",H="_toggleTrack_2917u_43",Q="_toggleThumb_2917u_53",F="_dropdown_2917u_65",G="_dropdownTrigger_2917u_69",J="_dropdownMenu_2917u_87",U="_dropdownItem_2917u_106",X="_active_2917u_124",Y="_icon_2917u_20",Z="_text_2917u_144",r={button:W,iconWrapper:P,label:z,toggle:A,toggleTrack:H,toggleThumb:Q,dropdown:F,dropdownTrigger:G,dropdownMenu:J,dropdownItem:U,active:X,icon:Y,text:Z},h=({variant:o="button",showLabel:m=!1,className:l="",currentTheme:i,onThemeChange:g,themes:v})=>{const n=R(),a=i??(n==null?void 0:n.theme)??"light",d=g??(n==null?void 0:n.setTheme)??(()=>{}),c=v??[{value:"light",label:"Light",icon:e.jsx(y,{})},{value:"dark",label:"Dark",icon:e.jsx(_,{})},{value:"lossito",label:"Lossito Light",icon:"✨"},{value:"lossito-dark",label:"Lossito Dark",icon:"🌑"},{value:"dao",label:"Dao Light",icon:"⬜"},{value:"dao-dark",label:"Dao Dark",icon:"⬛"}],k=c.findIndex(t=>t.value===a),u=c[k]??c[0];if(o==="toggle"){const t=a.includes("dark");return e.jsxs(s.button,{className:`${r.toggle} ${l}`,onClick:()=>d(t?"light":"dark"),whileTap:{scale:.95},"aria-label":"Toggle theme",children:[e.jsx(s.div,{className:r.toggleTrack,animate:{backgroundColor:t?"var(--color-primary)":"var(--color-border)"},children:e.jsx(s.div,{className:r.toggleThumb,animate:{x:t?24:0},transition:{type:"spring",stiffness:500,damping:30},children:t?e.jsx(_,{size:14}):e.jsx(y,{size:14})})}),m&&e.jsx("span",{className:r.label,children:t?"Dark":"Light"})]})}return o==="dropdown"?e.jsxs("div",{className:`${r.dropdown} ${l}`,children:[e.jsxs(s.button,{className:r.dropdownTrigger,whileTap:{scale:.98},children:[u.icon,m&&e.jsx("span",{className:r.label,children:u.label})]}),e.jsx(s.div,{className:r.dropdownMenu,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},children:c.map(t=>e.jsxs(s.button,{className:`${r.dropdownItem} ${a===t.value?r.active:""}`,onClick:()=>d(t.value),whileHover:{x:4},whileTap:{scale:.98},children:[e.jsx("span",{className:r.icon,children:t.icon}),e.jsx("span",{className:r.text,children:t.label})]},t.value))})]}):e.jsxs(s.button,{className:`${r.button} ${l}`,onClick:()=>{const t=(k+1)%c.length;d(c[t].value)},whileTap:{scale:.95},whileHover:{scale:1.05},"aria-label":`Current theme: ${u.label}. Click to change.`,children:[e.jsx(s.div,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:180,opacity:0},transition:{duration:.3},className:r.iconWrapper,children:u.icon},a),m&&e.jsx("span",{className:r.label,children:u.label})]})};h.__docgenInfo={description:"",methods:[],displayName:"ThemeSwitcher",props:{variant:{required:!1,tsType:{name:"union",raw:"'button' | 'dropdown' | 'toggle'",elements:[{name:"literal",value:"'button'"},{name:"literal",value:"'dropdown'"},{name:"literal",value:"'toggle'"}]},description:"",defaultValue:{value:"'button'",computed:!1}},showLabel:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},currentTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:""},onThemeChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(theme: Theme) => void",signature:{arguments:[{type:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},name:"theme"}],return:{name:"void"}}},description:""},themes:{required:!1,tsType:{name:"Array",elements:[{name:"ThemeOption"}],raw:"ThemeOption[]"},description:""}}};const K=({children:o})=>e.jsx(O,{defaultTheme:"light",children:o}),ne={title:"Molecules/ThemeSwitcher",component:h,decorators:[o=>e.jsx(K,{children:e.jsx("div",{style:{padding:"2rem"},children:e.jsx(o,{})})})],parameters:{layout:"centered"},argTypes:{variant:{control:{type:"select"},options:["button","dropdown","toggle"]},showLabel:{control:{type:"boolean"}}}},w={args:{variant:"button",showLabel:!0}},b={args:{variant:"toggle",showLabel:!0}},T={args:{variant:"dropdown",showLabel:!0}},f={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",alignItems:"center"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Button Variant"}),e.jsx(h,{variant:"button",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Toggle Variant"}),e.jsx(h,{variant:"toggle",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Dropdown Variant"}),e.jsx(h,{variant:"dropdown",showLabel:!0})]})]})};var j,L,S;w.parameters={...w.parameters,docs:{...(j=w.parameters)==null?void 0:j.docs,source:{originalSource:`{
2
2
  args: {
3
3
  variant: 'button',
4
4
  showLabel: true
@@ -1,4 +1,4 @@
1
- import{r as d,j as z}from"./iframe-BINQyIZA.js";import{R as F,P as D,M as T}from"./Mesh-CwXV3WjE.js";import{T as q}from"./Triangle-64ffRKNB.js";import{C as P}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const I={"threads-container":"_threads-container_1ao30_1"},S=`
1
+ import{r as d,j as z}from"./iframe-BVoBDGkl.js";import{R as F,P as D,M as T}from"./Mesh-CwXV3WjE.js";import{T as q}from"./Triangle-64ffRKNB.js";import{C as P}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const I={"threads-container":"_threads-container_1ao30_1"},S=`
2
2
  attribute vec2 position;
3
3
  attribute vec2 uv;
4
4
  varying vec2 vUv;