@stfrigerio/sito-template 0.1.83 → 0.1.84

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 (183) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/styles.css +1 -1
  6. package/dist/styles.css.map +1 -1
  7. package/package.json +1 -1
  8. package/storybook-static/assets/{ASCIIText.stories-CLcJ0Cbc.js → ASCIIText.stories-CTeBuFpi.js} +1 -1
  9. package/storybook-static/assets/{AllAtoms.stories-Bh5woUyT.js → AllAtoms.stories-DBrw1vFG.js} +1 -1
  10. package/storybook-static/assets/{AnimatedContent.stories-CwcCPuwn.js → AnimatedContent.stories-BD8sotzQ.js} +1 -1
  11. package/storybook-static/assets/{AnimatedList.stories-xyMLfpep.js → AnimatedList.stories-4Fus9UzP.js} +1 -1
  12. package/storybook-static/assets/{Antigravity.stories-CakFW85C.js → Antigravity.stories-Ch2wkEYn.js} +1 -1
  13. package/storybook-static/assets/{ArrayInput.stories-BhVN3W4U.js → ArrayInput.stories-wXGcLfH1.js} +1 -1
  14. package/storybook-static/assets/{Aurora.stories-Kktq_Cvd.js → Aurora.stories-99bMFNR4.js} +1 -1
  15. package/storybook-static/assets/{Beams.stories-CwnemFgk.js → Beams.stories-Brn1v9rc.js} +1 -1
  16. package/storybook-static/assets/{BlobCursor.stories-vKNpspTq.js → BlobCursor.stories-B02RPEDJ.js} +1 -1
  17. package/storybook-static/assets/{BlurText.stories-WlC0K1BH.js → BlurText.stories-Dyu9PAsX.js} +1 -1
  18. package/storybook-static/assets/{BooleansHeatmap.stories-DZMJ52hf.js → BooleansHeatmap.stories-BKTOmUhM.js} +1 -1
  19. package/storybook-static/assets/{BorderGlow.stories-Dr5OCnhs.js → BorderGlow.stories-B438NKZB.js} +1 -1
  20. package/storybook-static/assets/{BubbleMenu.stories-YQfp2AUw.js → BubbleMenu.stories-BMKJc9nd.js} +1 -1
  21. package/storybook-static/assets/{Button-DlJcIcuM.js → Button-C86OWbU2.js} +1 -1
  22. package/storybook-static/assets/{Button.stories-grOMKTZD.js → Button.stories-D2R-blTE.js} +1 -1
  23. package/storybook-static/assets/{Calendar.stories-BROrKR6q.js → Calendar.stories-p1kM4Ukn.js} +1 -1
  24. package/storybook-static/assets/{Card-D78PUWGF.js → Card-Dzg60jA1.js} +1 -1
  25. package/storybook-static/assets/{Card.stories-BrnxC9UA.js → Card.stories-D6UnB5vX.js} +1 -1
  26. package/storybook-static/assets/{CardNav.stories-BdJQX6kq.js → CardNav.stories-D4qTeIBs.js} +1 -1
  27. package/storybook-static/assets/{Carousel.stories-BzkTHxu8.js → Carousel.stories-CSCaUdy4.js} +1 -1
  28. package/storybook-static/assets/{Checkbox-B4u9vAxY.js → Checkbox-BxPYIg4Z.js} +1 -1
  29. package/storybook-static/assets/{Checkbox.stories-DaFjMoE1.js → Checkbox.stories-BBCZ0vbU.js} +1 -1
  30. package/storybook-static/assets/{ChromaGrid.stories-DjYokgO-.js → ChromaGrid.stories-B2ewNQ_-.js} +1 -1
  31. package/storybook-static/assets/{CircularGallery.stories-CJTnGkTd.js → CircularGallery.stories-B3RUMzH8.js} +1 -1
  32. package/storybook-static/assets/{CircularText.stories-CG9VlqoC.js → CircularText.stories-BuaO-8cf.js} +1 -1
  33. package/storybook-static/assets/{ClickSpark.stories-CqhCk3b1.js → ClickSpark.stories-BmQt8ytV.js} +1 -1
  34. package/storybook-static/assets/{ColorBends.stories-BENBc2ho.js → ColorBends.stories-CfVD5-pW.js} +1 -1
  35. package/storybook-static/assets/{CountUp.stories-DaXNNXIt.js → CountUp.stories-Bc00TeU8.js} +1 -1
  36. package/storybook-static/assets/{Counter.stories-Bwz8ckgc.js → Counter.stories-BiV7vgEY.js} +1 -1
  37. package/storybook-static/assets/{Crosshair.stories-Yi4ladGp.js → Crosshair.stories-BW-1vRqp.js} +1 -1
  38. package/storybook-static/assets/{Cubes.stories-hUkWxLfc.js → Cubes.stories-CDdBiwBs.js} +1 -1
  39. package/storybook-static/assets/{CurvedLoop.stories-WPDAk0t6.js → CurvedLoop.stories-JKn8n1mc.js} +1 -1
  40. package/storybook-static/assets/{DarkVeil.stories-D3LsctyY.js → DarkVeil.stories-Cs7Lakaw.js} +1 -1
  41. package/storybook-static/assets/{DateInput-gWafUQGd.js → DateInput-qz9YhRbQ.js} +1 -1
  42. package/storybook-static/assets/{DateInput.stories-BjYNYtSX.js → DateInput.stories-C_csQ8Q9.js} +1 -1
  43. package/storybook-static/assets/{DecayCard.stories-CtzHBFna.js → DecayCard.stories-BqYdNirE.js} +1 -1
  44. package/storybook-static/assets/{DecryptedText.stories-Ctj_SnZk.js → DecryptedText.stories-Dj2JsMxv.js} +1 -1
  45. package/storybook-static/assets/{Dither.stories-EkMZ--eC.js → Dither.stories-CNuiaoDI.js} +1 -1
  46. package/storybook-static/assets/{Dock.stories-8aWbZA8C.js → Dock.stories-D9BZPllx.js} +1 -1
  47. package/storybook-static/assets/{EditFAB.stories-CS53G9_g.js → EditFAB.stories-D2V_BfpY.js} +1 -1
  48. package/storybook-static/assets/{EvilEye.stories-9LkgySOv.js → EvilEye.stories-Bb4r5LRC.js} +1 -1
  49. package/storybook-static/assets/{FadeContent.stories-oZ__karI.js → FadeContent.stories-BOHh_Z3P.js} +1 -1
  50. package/storybook-static/assets/{FaultyTerminal.stories-DXMtEpFr.js → FaultyTerminal.stories-C2XEVQOR.js} +1 -1
  51. package/storybook-static/assets/{Fbo-DcGmvSkt.js → Fbo-DkQYMtXY.js} +1 -1
  52. package/storybook-static/assets/{FloatingLines.stories-BfYFty9B.js → FloatingLines.stories-BUp_bmIx.js} +1 -1
  53. package/storybook-static/assets/{FlowingMenu.stories-CIDR6uxs.js → FlowingMenu.stories-bATDbXg1.js} +1 -1
  54. package/storybook-static/assets/{FluidGlass.stories-Ck79ZTu2.js → FluidGlass.stories-BEBfn66X.js} +1 -1
  55. package/storybook-static/assets/{Folder.stories-CRPHDLCS.js → Folder.stories-DDva1YJc.js} +1 -1
  56. package/storybook-static/assets/{FuzzyText.stories-BxVlN6Qk.js → FuzzyText.stories-CbiEcoGW.js} +1 -1
  57. package/storybook-static/assets/{Galaxy.stories-DLRch_Uu.js → Galaxy.stories-nLTuYUyz.js} +1 -1
  58. package/storybook-static/assets/{GhostCursor.stories-BC5TPQae.js → GhostCursor.stories-Cr5oB_UX.js} +1 -1
  59. package/storybook-static/assets/{GlareHover.stories-CiTwY0Or.js → GlareHover.stories-CckrAQFV.js} +1 -1
  60. package/storybook-static/assets/{GlassSurface.stories-D8TDA2al.js → GlassSurface.stories-Bh6ll9Qg.js} +1 -1
  61. package/storybook-static/assets/{GlitchText.stories-ZUm-zbmR.js → GlitchText.stories-DrgRSYHL.js} +1 -1
  62. package/storybook-static/assets/{GooeyNav.stories-DJ1gzjRs.js → GooeyNav.stories-c8ENwyQ_.js} +1 -1
  63. package/storybook-static/assets/{GradientBlinds.stories-MxXs8DfX.js → GradientBlinds.stories-uL6nST_x.js} +1 -1
  64. package/storybook-static/assets/{GradientText.stories-BD_KLij2.js → GradientText.stories-CZjZQhMt.js} +1 -1
  65. package/storybook-static/assets/{Grainient.stories-8GW-MvA1.js → Grainient.stories-DQs4E66I.js} +1 -1
  66. package/storybook-static/assets/{GridMotion.stories-v9HWAiP2.js → GridMotion.stories-DH8IUQDL.js} +1 -1
  67. package/storybook-static/assets/{HabitTimeOfDayChart.stories-DNaCrMPI.js → HabitTimeOfDayChart.stories-C0KB2ufl.js} +1 -1
  68. package/storybook-static/assets/{ImageSlideshow.stories-CV_9pz7q.js → ImageSlideshow.stories-itGrJCYu.js} +1 -1
  69. package/storybook-static/assets/{Iridescence.stories-CrsfUwpq.js → Iridescence.stories-DhgFENKy.js} +1 -1
  70. package/storybook-static/assets/{LaserFlow.stories-UNmY1VdB.js → LaserFlow.stories-Kyl728kD.js} +1 -1
  71. package/storybook-static/assets/{LetterGlitch.stories-CsqbohgQ.js → LetterGlitch.stories-DXN3ZpQj.js} +1 -1
  72. package/storybook-static/assets/{LightPillar.stories-VUtx3YZD.js → LightPillar.stories-1tEyhH0h.js} +1 -1
  73. package/storybook-static/assets/{LightRays.stories-Cq7m0cqE.js → LightRays.stories-PmvJGOEc.js} +1 -1
  74. package/storybook-static/assets/{Lightning.stories-Dp6w5DHk.js → Lightning.stories-CXVJMlcL.js} +1 -1
  75. package/storybook-static/assets/{LineWaves.stories-DZwthEvR.js → LineWaves.stories-C9s92nI_.js} +1 -1
  76. package/storybook-static/assets/{LiquidChrome.stories-BjG1KCsN.js → LiquidChrome.stories-kvrDFKhW.js} +1 -1
  77. package/storybook-static/assets/{LiquidEther.stories-Bm21x4kh.js → LiquidEther.stories-CwoEV3ZM.js} +1 -1
  78. package/storybook-static/assets/{LoadingSpinner-BjxuokwC.js → LoadingSpinner-TO2k9dkR.js} +1 -1
  79. package/storybook-static/assets/{LoadingSpinner.stories-D3rXxzDB.js → LoadingSpinner.stories-CmlRIK6V.js} +1 -1
  80. package/storybook-static/assets/{MagicRings.stories-Qm__w6y6.js → MagicRings.stories-CwnBQw4l.js} +1 -1
  81. package/storybook-static/assets/{Magnet.stories-DVnKLbK0.js → Magnet.stories-wiYtHP3j.js} +1 -1
  82. package/storybook-static/assets/{MagnetLines.stories-DwSvh9tK.js → MagnetLines.stories-CP0C5rZu.js} +1 -1
  83. package/storybook-static/assets/{Masonry.stories-DgXyjVGW.js → Masonry.stories-2UGpchcm.js} +1 -1
  84. package/storybook-static/assets/{MetaBalls.stories-C9p7o47E.js → MetaBalls.stories-CLGRNeQS.js} +1 -1
  85. package/storybook-static/assets/{MetallicPaint.stories-CbvpeFpr.js → MetallicPaint.stories-IeKUeumy.js} +1 -1
  86. package/storybook-static/assets/{MoodChart.stories-Df2hRx7K.js → MoodChart.stories-PPkimNqj.js} +1 -1
  87. package/storybook-static/assets/{MotionConfigContext-78ZqsXO2.js → MotionConfigContext-DnBM5OK0.js} +1 -1
  88. package/storybook-static/assets/{Navbar.stories-IPAgz8A2.js → Navbar.stories-Dqv51P5D.js} +1 -1
  89. package/storybook-static/assets/{Noise.stories-B5w0WQgN.js → Noise.stories-CuwyLBOh.js} +1 -1
  90. package/storybook-static/assets/{NumberStepper-CUBwlK_a.js → NumberStepper-CM9sa3Al.js} +1 -1
  91. package/storybook-static/assets/{NumberStepper.stories-B5Y6LLfq.js → NumberStepper.stories-C60dGYaE.js} +1 -1
  92. package/storybook-static/assets/{Orb.stories-BYCKAzF3.js → Orb.stories-Pdv0-xsZ.js} +1 -1
  93. package/storybook-static/assets/{OrbitImages.stories-BNgUtvuC.js → OrbitImages.stories-XbHS1EdM.js} +1 -1
  94. package/storybook-static/assets/{PieChart.stories-XWtgAVCl.js → PieChart.stories-nfBoYIRi.js} +1 -1
  95. package/storybook-static/assets/{PixelBlast.stories-h_zXroTV.js → PixelBlast.stories-DsT_9E9W.js} +1 -1
  96. package/storybook-static/assets/{PixelCard.stories-DEMhUUCg.js → PixelCard.stories-BnzmWXOx.js} +1 -1
  97. package/storybook-static/assets/{PixelSnow.stories-kWLq5Onm.js → PixelSnow.stories-DN14D8Tl.js} +1 -1
  98. package/storybook-static/assets/{PixelTransition.stories-C2xfia8G.js → PixelTransition.stories-BKfvVSqC.js} +1 -1
  99. package/storybook-static/assets/{Plasma.stories-BP9Qd_Mg.js → Plasma.stories-DahXhatP.js} +1 -1
  100. package/storybook-static/assets/{Prism.stories-FjQDLOfi.js → Prism.stories-BccFvEeA.js} +1 -1
  101. package/storybook-static/assets/{PrismaticBurst.stories-CR7dLtth.js → PrismaticBurst.stories-CZbJKnTU.js} +1 -1
  102. package/storybook-static/assets/{ProfileCard.stories-KM8iEgpp.js → ProfileCard.stories-D84mbIPg.js} +1 -1
  103. package/storybook-static/assets/{QuantifiableHabitsChart.stories-Dd9rr2w1.js → QuantifiableHabitsChart.stories-CibKsvi_.js} +1 -1
  104. package/storybook-static/assets/{Radar.stories-Dkv2TX-N.js → Radar.stories-CK2Kzn_4.js} +1 -1
  105. package/storybook-static/assets/{Ribbons.stories-DoAOtDOM.js → Ribbons.stories-DZg5rVlE.js} +1 -1
  106. package/storybook-static/assets/{RippleGrid.stories-DLokM_BZ.js → RippleGrid.stories-BRHIhn23.js} +1 -1
  107. package/storybook-static/assets/{RotatingText.stories-CS-b_PRj.js → RotatingText.stories-CuZtfcND.js} +1 -1
  108. package/storybook-static/assets/{ScrollFloat.stories-FSTVLtEf.js → ScrollFloat.stories-6g6HD-fB.js} +1 -1
  109. package/storybook-static/assets/{ScrollReveal.stories-iHdh0ukP.js → ScrollReveal.stories-DA-cvRPd.js} +1 -1
  110. package/storybook-static/assets/{ScrollVelocity.stories-CcBhSXkQ.js → ScrollVelocity.stories-BjmlBuV3.js} +1 -1
  111. package/storybook-static/assets/{SearchBar.stories-CLvEmL36.js → SearchBar.stories-ZwmClfwJ.js} +1 -1
  112. package/storybook-static/assets/{SearchableDropdown-BDcLrfmb.js → SearchableDropdown-CwpEKLZE.js} +1 -1
  113. package/storybook-static/assets/{SearchableDropdown.stories-B5rPv59p.js → SearchableDropdown.stories-BvkN7hKU.js} +1 -1
  114. package/storybook-static/assets/{SelectInput-CKnov7hA.js → SelectInput-BOEJNJs8.js} +1 -1
  115. package/storybook-static/assets/{SelectInput.stories-DoXI57Go.js → SelectInput.stories-dWCyjn61.js} +1 -1
  116. package/storybook-static/assets/{ShapeBlur.stories-CuxN6Pzi.js → ShapeBlur.stories-B4-JvA2z.js} +1 -1
  117. package/storybook-static/assets/{ShapeGrid.stories-DB_nQCOT.js → ShapeGrid.stories-BoEMCax4.js} +1 -1
  118. package/storybook-static/assets/{ShinyText.stories-DygGT8Ue.js → ShinyText.stories-CDr7CBhI.js} +1 -1
  119. package/storybook-static/assets/{Silk.stories-DbiADaLM.js → Silk.stories-CEoU1Fq0.js} +1 -1
  120. package/storybook-static/assets/{SleepChart.stories-Cy8SLPV6.js → SleepChart.stories-DMUCOdOw.js} +1 -1
  121. package/storybook-static/assets/Slider-C--ylcyD.js +32 -0
  122. package/storybook-static/assets/Slider-CAC_Rru_.css +1 -0
  123. package/storybook-static/assets/{Slider.stories-BFbEBS3T.js → Slider.stories-rPmD-YV9.js} +1 -1
  124. package/storybook-static/assets/{SoftAurora.stories-CrAcI_i2.js → SoftAurora.stories-B1kmojaS.js} +1 -1
  125. package/storybook-static/assets/{SoundDemo.stories-CMAyhZl6.js → SoundDemo.stories-BoSFEnHi.js} +1 -1
  126. package/storybook-static/assets/{SplashCursor.stories-PZR3fOjb.js → SplashCursor.stories-B_zGIUaW.js} +1 -1
  127. package/storybook-static/assets/{SpotlightCard.stories-BjhoJegE.js → SpotlightCard.stories-762LCoel.js} +1 -1
  128. package/storybook-static/assets/{Stack.stories-DT_c0lN5.js → Stack.stories-DujL-Idp.js} +1 -1
  129. package/storybook-static/assets/{StaggeredMenu.stories-Dl8wex3f.js → StaggeredMenu.stories-ov3id3Wj.js} +1 -1
  130. package/storybook-static/assets/{StarBorder.stories-N_5DOf2w.js → StarBorder.stories-D-uEOvw6.js} +1 -1
  131. package/storybook-static/assets/{SunburstChart.stories-BH5YJCUR.js → SunburstChart.stories-EOjyADqF.js} +1 -1
  132. package/storybook-static/assets/{Table.stories-CAhdi7Eu.js → Table.stories-lMCUQyPU.js} +1 -1
  133. package/storybook-static/assets/{Tabs.stories-DK7bagu6.js → Tabs.stories-Dr-60dpt.js} +1 -1
  134. package/storybook-static/assets/{TargetCursor.stories-DNzUSRQM.js → TargetCursor.stories-BZ2Fi_e3.js} +1 -1
  135. package/storybook-static/assets/{TextArea-C15rOSzR.js → TextArea-C-c2e26u.js} +1 -1
  136. package/storybook-static/assets/{TextArea.stories-5Cmp4mxj.js → TextArea.stories-Gu4Jf_gB.js} +1 -1
  137. package/storybook-static/assets/{TextCursor.stories-ZB0-u0Yj.js → TextCursor.stories-DHGiuwwE.js} +1 -1
  138. package/storybook-static/assets/{TextInput-BKLyYXL6.js → TextInput-BKuNn34X.js} +1 -1
  139. package/storybook-static/assets/{TextInput.stories-CnH10Z39.js → TextInput.stories-BgDQw1RX.js} +1 -1
  140. package/storybook-static/assets/{TextPressure.stories-BJIw-Cwk.js → TextPressure.stories-9LaOuEz9.js} +1 -1
  141. package/storybook-static/assets/{TextType.stories-DA_CMsiN.js → TextType.stories-DSl9Foim.js} +1 -1
  142. package/storybook-static/assets/{ThemeSwitcher.stories-DX9peK5i.js → ThemeSwitcher.stories-8s89yuWr.js} +1 -1
  143. package/storybook-static/assets/{Threads.stories-NGvSY2xh.js → Threads.stories-BewW9wxv.js} +1 -1
  144. package/storybook-static/assets/{TimeInput.stories-CowCxz3J.js → TimeInput.stories-C7vbZKkq.js} +1 -1
  145. package/storybook-static/assets/{Toggle-Dft5398l.js → Toggle-B77gnVbq.js} +1 -1
  146. package/storybook-static/assets/{Toggle.stories-DLnygTp8.js → Toggle.stories-CICV6Dos.js} +1 -1
  147. package/storybook-static/assets/{ToggleButton-oUxtNYGc.js → ToggleButton-DfzY0w7z.js} +1 -1
  148. package/storybook-static/assets/{ToggleButton.stories-DdWoxZaY.js → ToggleButton.stories-B6aw7nUC.js} +1 -1
  149. package/storybook-static/assets/{TrueFocus.stories-AmwBQ1Wd.js → TrueFocus.stories-CDNyLqHV.js} +1 -1
  150. package/storybook-static/assets/{VariableProximity.stories-CBrR0DxY.js → VariableProximity.stories-D-eZNvIb.js} +1 -1
  151. package/storybook-static/assets/{Waves.stories-C7-88LJl.js → Waves.stories-BgquGfIy.js} +1 -1
  152. package/storybook-static/assets/{check-BwmeyKAV.js → check-DXM5njmV.js} +1 -1
  153. package/storybook-static/assets/{chevron-down-C-5r8S3R.js → chevron-down-BqEnhr0i.js} +1 -1
  154. package/storybook-static/assets/{chevron-right-BGU-92uy.js → chevron-right-CsaKmsqe.js} +1 -1
  155. package/storybook-static/assets/client-BCFLJVq6.js +1 -0
  156. package/storybook-static/assets/{createLucideIcon-DMu8KViE.js → createLucideIcon-DF2dqRZF.js} +1 -1
  157. package/storybook-static/assets/{download-Bd0rfKsF.js → download-I7JyljST.js} +1 -1
  158. package/storybook-static/assets/{folder-BJU9ETF_.js → folder-jqfoKfv0.js} +1 -1
  159. package/storybook-static/assets/{iconBase-w3hxgNsY.js → iconBase-CEH4v73G.js} +1 -1
  160. package/storybook-static/assets/{iframe-P7asu-Li.js → iframe-8g14XBDl.js} +3 -3
  161. package/storybook-static/assets/{index-CZwZeEI2.js → index-B_onaclE.js} +1 -1
  162. package/storybook-static/assets/{index-DbJ7Sa65.js → index-CYZOrNi9.js} +1 -1
  163. package/storybook-static/assets/{index-CUas0FsV.js → index-DOd88rlX.js} +1 -1
  164. package/storybook-static/assets/{proxy-CDAVFVqI.js → proxy-B2d_UmJi.js} +1 -1
  165. package/storybook-static/assets/{react-18-GLk-Gitd.js → react-18-COyYApA4.js} +1 -1
  166. package/storybook-static/assets/{react-three-fiber.esm-DNr3n575.js → react-three-fiber.esm-B8N96BIS.js} +1 -1
  167. package/storybook-static/assets/{search-Bx8bdUAl.js → search-C0KAlVwX.js} +1 -1
  168. package/storybook-static/assets/{settings-BrNCNuZ5.js → settings-DvSP9mPL.js} +1 -1
  169. package/storybook-static/assets/{sun-B2St002d.js → sun-BT1EGPgL.js} +1 -1
  170. package/storybook-static/assets/{trash-2-CE76Er1p.js → trash-2-D5d4Dvkn.js} +1 -1
  171. package/storybook-static/assets/{use-animation-frame-DmI_PhRU.js → use-animation-frame-698WQrz7.js} +1 -1
  172. package/storybook-static/assets/{use-in-view-DuMdrOWZ.js → use-in-view-xKGI5xuh.js} +1 -1
  173. package/storybook-static/assets/{use-motion-value-DmfqbQXL.js → use-motion-value-BWJfnGID.js} +1 -1
  174. package/storybook-static/assets/{use-spring-Bp7x7VGF.js → use-spring-DhaXuuuR.js} +1 -1
  175. package/storybook-static/assets/{use-transform-D9Pnt9FQ.js → use-transform-px_rlL4B.js} +1 -1
  176. package/storybook-static/assets/{useSound-BoKKqA87.js → useSound-DDw9oPnZ.js} +1 -1
  177. package/storybook-static/assets/{users-CiXGWJu_.js → users-_YmezGRA.js} +1 -1
  178. package/storybook-static/assets/{x-T0xDfj72.js → x-Dxu8qoCJ.js} +1 -1
  179. package/storybook-static/iframe.html +1 -1
  180. package/storybook-static/project.json +1 -1
  181. package/storybook-static/assets/Slider-BaDHm9m3.css +0 -1
  182. package/storybook-static/assets/Slider-BibMr8BG.js +0 -32
  183. package/storybook-static/assets/client-0lnMOQtD.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as le,j as Ne}from"./iframe-P7asu-Li.js";import{R as Ye,P as je,M as De}from"./Mesh-CwXV3WjE.js";import{T as Ge}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const Xe={"prism-container":"_prism-container_sjqpx_1"},ce=({height:T=3.5,baseWidth:z=5.5,animationType:h="rotate",glow:W=1,offset:s={x:0,y:0},noise:U=.5,transparent:E=!0,scale:N=3.6,hueShift:Y=0,colorFrequency:j=1,hoverStrength:D=2,inertia:G=.05,bloom:X=1,suspendWhenOffscreen:P=!1,timeScale:Z=.5})=>{const k=le.useRef(null);return le.useEffect(()=>{const r=k.current;if(!r)return;const b=Math.max(.001,T),H=Math.max(.001,z)*.5,fe=Math.max(0,W),Q=Math.max(0,U),me=(s==null?void 0:s.x)??0,de=(s==null?void 0:s.y)??0,ve=E?1.5:1,I=Math.max(.001,N),he=Y||0,pe=Math.max(0,j||1),xe=Math.max(0,X||1),we=1,Me=1,Se=1,R=Math.max(0,Z||1),$=Math.max(0,D||1),J=Math.max(0,Math.min(1,G||.12)),_=Math.min(2,window.devicePixelRatio||1),A=new Ye({dpr:_,alpha:E,antialias:!1}),a=A.gl;a.disable(a.DEPTH_TEST),a.disable(a.CULL_FACE),a.disable(a.BLEND),Object.assign(a.canvas.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block"}),r.appendChild(a.canvas);const ge=`
1
+ import{r as le,j as Ne}from"./iframe-8g14XBDl.js";import{R as Ye,P as je,M as De}from"./Mesh-CwXV3WjE.js";import{T as Ge}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const Xe={"prism-container":"_prism-container_sjqpx_1"},ce=({height:T=3.5,baseWidth:z=5.5,animationType:h="rotate",glow:W=1,offset:s={x:0,y:0},noise:U=.5,transparent:E=!0,scale:N=3.6,hueShift:Y=0,colorFrequency:j=1,hoverStrength:D=2,inertia:G=.05,bloom:X=1,suspendWhenOffscreen:P=!1,timeScale:Z=.5})=>{const k=le.useRef(null);return le.useEffect(()=>{const r=k.current;if(!r)return;const b=Math.max(.001,T),H=Math.max(.001,z)*.5,fe=Math.max(0,W),Q=Math.max(0,U),me=(s==null?void 0:s.x)??0,de=(s==null?void 0:s.y)??0,ve=E?1.5:1,I=Math.max(.001,N),he=Y||0,pe=Math.max(0,j||1),xe=Math.max(0,X||1),we=1,Me=1,Se=1,R=Math.max(0,Z||1),$=Math.max(0,D||1),J=Math.max(0,Math.min(1,G||.12)),_=Math.min(2,window.devicePixelRatio||1),A=new Ye({dpr:_,alpha:E,antialias:!1}),a=A.gl;a.disable(a.DEPTH_TEST),a.disable(a.CULL_FACE),a.disable(a.BLEND),Object.assign(a.canvas.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block"}),r.appendChild(a.canvas);const ge=`
2
2
  attribute vec2 position;
3
3
  void main() {
4
4
  gl_Position = vec4(position, 0.0, 1.0);
@@ -1,4 +1,4 @@
1
- import{r as n,j as te}from"./iframe-P7asu-Li.js";import{R as re,P as ae,M as ne}from"./Mesh-CwXV3WjE.js";import{T as oe}from"./Texture-BkQWYNP2.js";import{T as se}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const ue={"prismatic-burst-container":"_prismatic-burst-container_u2n5x_1"},ce=`#version 300 es
1
+ import{r as n,j as te}from"./iframe-8g14XBDl.js";import{R as re,P as ae,M as ne}from"./Mesh-CwXV3WjE.js";import{T as oe}from"./Texture-BkQWYNP2.js";import{T as se}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const ue={"prismatic-burst-container":"_prismatic-burst-container_u2n5x_1"},ce=`#version 300 es
2
2
  in vec2 position;
3
3
  in vec2 uv;
4
4
  out vec2 vUv;
@@ -1,4 +1,4 @@
1
- import{R as ve,r as o,j as r}from"./iframe-P7asu-Li.js";import"./preload-helper-C1FmrZbK.js";const he="_active_uxwt3_56",_e="_entering_uxwt3_84",xe="_avatar_uxwt3_252",n={"pc-behind":"_pc-behind_uxwt3_40",active:he,"pc-card":"_pc-card_uxwt3_33","pc-card-shell":"_pc-card-shell_uxwt3_84",entering:_e,"pc-inside":"_pc-inside_uxwt3_100","pc-shine":"_pc-shine_uxwt3_108","pc-glare":"_pc-glare_uxwt3_232","pc-avatar-content":"_pc-avatar-content_uxwt3_245",avatar:xe,"pc-user-info":"_pc-user-info_uxwt3_274","pc-user-details":"_pc-user-details_uxwt3_293","pc-mini-avatar":"_pc-mini-avatar_uxwt3_299","pc-user-text":"_pc-user-text_uxwt3_315","pc-handle":"_pc-handle_uxwt3_322","pc-status":"_pc-status_uxwt3_329","pc-contact-btn":"_pc-contact-btn_uxwt3_335","pc-content":"_pc-content_uxwt3_353","pc-details":"_pc-details_uxwt3_367"},ge="linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)",L={INITIAL_DURATION:1200,INITIAL_X_OFFSET:70,INITIAL_Y_OFFSET:60,DEVICE_BETA_OFFSET:20,ENTER_TRANSITION_MS:180},$=(p,d=0,v=100)=>Math.min(Math.max(p,d),v),C=(p,d=3)=>parseFloat(p.toFixed(d)),z=(p,d,v,x,O)=>C(x+(O-x)*(p-d)/(v-d)),Z=({avatarUrl:p="<Placeholder for avatar URL>",iconUrl:d="<Placeholder for icon URL>",grainUrl:v="<Placeholder for grain URL>",innerGradient:x,behindGlowEnabled:O=!0,behindGlowColor:S,behindGlowSize:U,className:ee="",enableTilt:A=!0,enableMobileTilt:V=!1,mobileTiltSensitivity:q=5,miniAvatarUrl:te,name:y="Javi A. Torres",title:ne="Software Engineer",handle:ae="javicodes",status:re="Online",contactText:se="Contact",showUserInfo:ce=!0,onContactClick:F})=>{const M=o.useRef(null),m=o.useRef(null),g=o.useRef(null),h=o.useRef(null),s=o.useMemo(()=>{if(!A)return null;let e=null,t=!1,a=0,c=0,i=0,u=0,f=0;const E=.14,T=.6;let j=0;const H=(l,_)=>{const w=m.current,I=M.current;if(!w||!I)return;const J=w.clientWidth||1,oe=w.clientHeight||1,N=$(100/J*l),b=$(100/oe*_),ue=N-50,de=b-50,pe={"--pointer-x":`${N}%`,"--pointer-y":`${b}%`,"--background-x":`${z(N,0,100,35,65)}%`,"--background-y":`${z(b,0,100,35,65)}%`,"--pointer-from-center":`${$(Math.hypot(b-50,N-50)/50,0,1)}`,"--pointer-from-top":`${b/100}`,"--pointer-from-left":`${N/100}`,"--rotate-x":`${C(-(ue/5))}deg`,"--rotate-y":`${C(de/4)}deg`};for(const[fe,me]of Object.entries(pe))I.style.setProperty(fe,me)},W=l=>{if(!t)return;a===0&&(a=l);const _=(l-a)/1e3;a=l;const w=l<j?T:E,I=1-Math.exp(-_/w);c+=(u-c)*I,i+=(f-i)*I,H(c,i),Math.abs(u-c)>.05||Math.abs(f-i)>.05||document.hasFocus()?e=requestAnimationFrame(W):(t=!1,a=0,e&&(cancelAnimationFrame(e),e=null))},B=()=>{t||(t=!0,a=0,e=requestAnimationFrame(W))};return{setImmediate(l,_){c=l,i=_,H(c,i)},setTarget(l,_){u=l,f=_,B()},toCenter(){const l=m.current;l&&this.setTarget(l.clientWidth/2,l.clientHeight/2)},beginInitial(l){j=performance.now()+l,B()},getCurrent(){return{x:c,y:i,tx:u,ty:f}},cancel(){e&&cancelAnimationFrame(e),e=null,t=!1,a=0}}},[A]),P=(e,t)=>{const a=t.getBoundingClientRect();return{x:e.clientX-a.left,y:e.clientY-a.top}},D=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),k=o.useCallback(e=>{const t=m.current;if(!t||!s)return;t.classList.add(n.active),t.classList.add(n.entering),g.current&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{t.classList.remove(n.entering)},L.ENTER_TRANSITION_MS);const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),X=o.useCallback(()=>{const e=m.current;if(!e||!s)return;s.toCenter();const t=()=>{const{x:a,y:c,tx:i,ty:u}=s.getCurrent();Math.hypot(i-a,u-c)<.6?(e.classList.remove(n.active),h.current=null):h.current=requestAnimationFrame(t)};h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(t)},[s]),Y=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{beta:a,gamma:c}=e;if(a==null||c==null)return;const i=t.clientWidth/2,u=t.clientHeight/2,f=$(i+c*q,0,t.clientWidth),E=$(u+(a-L.DEVICE_BETA_OFFSET)*q,0,t.clientHeight);s.setTarget(f,E)},[s,q]);o.useEffect(()=>{if(!A||!s)return;const e=m.current;if(!e)return;const t=D,a=k,c=X,i=Y;e.addEventListener("pointerenter",a),e.addEventListener("pointermove",t),e.addEventListener("pointerleave",c);const u=()=>{if(!V||location.protocol!=="https:")return;const T=window.DeviceMotionEvent;T&&typeof T.requestPermission=="function"?T.requestPermission().then(j=>{j==="granted"&&window.addEventListener("deviceorientation",i)}).catch(console.error):window.addEventListener("deviceorientation",i)};e.addEventListener("click",u);const f=(e.clientWidth||0)-L.INITIAL_X_OFFSET,E=L.INITIAL_Y_OFFSET;return s.setImmediate(f,E),s.toCenter(),s.beginInitial(L.INITIAL_DURATION),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointermove",t),e.removeEventListener("pointerleave",c),e.removeEventListener("click",u),window.removeEventListener("deviceorientation",i),g.current&&window.clearTimeout(g.current),h.current&&cancelAnimationFrame(h.current),s.cancel(),e.classList.remove(n.entering)}},[A,V,s,D,k,X,Y]);const le=o.useMemo(()=>({"--icon":d?`url(${d})`:"none","--grain":v?`url(${v})`:"none","--inner-gradient":x??ge,"--behind-glow-color":S??"rgba(125, 190, 255, 0.67)","--behind-glow-size":U??"50%"}),[d,v,x,S,U]),ie=o.useCallback(()=>{F==null||F()},[F]);return r.jsxs("div",{ref:M,className:`pc-card-wrapper ${ee}`.trim(),style:le,children:[O&&r.jsx("div",{className:`${n["pc-behind"]}`}),r.jsx("div",{ref:m,className:`${n["pc-card-shell"]}`,children:r.jsx("section",{className:`${n["pc-card"]}`,children:r.jsxs("div",{className:`${n["pc-inside"]}`,children:[r.jsx("div",{className:`${n["pc-shine"]}`}),r.jsx("div",{className:`${n["pc-glare"]}`}),r.jsxs("div",{className:`${n["pc-content"]} ${n["pc-avatar-content"]}`,children:[r.jsx("img",{className:`${n.avatar}`,src:p,alt:`${y||"User"} avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.display="none"}}),ce&&r.jsxs("div",{className:`${n["pc-user-info"]}`,children:[r.jsxs("div",{className:`${n["pc-user-details"]}`,children:[r.jsx("div",{className:`${n["pc-mini-avatar"]}`,children:r.jsx("img",{src:te||p,alt:`${y||"User"} mini avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.opacity="0.5",t.src=p}})}),r.jsxs("div",{className:`${n["pc-user-text"]}`,children:[r.jsxs("div",{className:`${n["pc-handle"]}`,children:["@",ae]}),r.jsx("div",{className:`${n["pc-status"]}`,children:re})]})]}),r.jsx("button",{className:`${n["pc-contact-btn"]}`,onClick:ie,style:{pointerEvents:"auto"},type:"button","aria-label":`Contact ${y||"user"}`,children:se})]})]}),r.jsx("div",{className:`${n["pc-content"]}`,children:r.jsxs("div",{className:`${n["pc-details"]}`,children:[r.jsx("h3",{children:y}),r.jsx("p",{children:ne})]})})]})})})]})},Ee=ve.memo(Z);Z.__docgenInfo={description:"",methods:[],displayName:"ProfileCardComponent",props:{avatarUrl:{defaultValue:{value:"'<Placeholder for avatar URL>'",computed:!1},required:!1},iconUrl:{defaultValue:{value:"'<Placeholder for icon URL>'",computed:!1},required:!1},grainUrl:{defaultValue:{value:"'<Placeholder for grain URL>'",computed:!1},required:!1},behindGlowEnabled:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},enableTilt:{defaultValue:{value:"true",computed:!1},required:!1},enableMobileTilt:{defaultValue:{value:"false",computed:!1},required:!1},mobileTiltSensitivity:{defaultValue:{value:"5",computed:!1},required:!1},name:{defaultValue:{value:"'Javi A. Torres'",computed:!1},required:!1},title:{defaultValue:{value:"'Software Engineer'",computed:!1},required:!1},handle:{defaultValue:{value:"'javicodes'",computed:!1},required:!1},status:{defaultValue:{value:"'Online'",computed:!1},required:!1},contactText:{defaultValue:{value:"'Contact'",computed:!1},required:!1},showUserInfo:{defaultValue:{value:"true",computed:!1},required:!1}}};const Ie={title:"ReactBits/Components/ProfileCard",component:Ee,parameters:{layout:"fullscreen"}},R={args:{avatarUrl:"https://i.pravatar.cc/300?img=12",behindGlowEnabled:!0,enableTilt:!0,enableMobileTilt:!1,mobileTiltSensitivity:5,name:"Javi A. Torres",title:"Software Engineer",handle:"javicodes",status:"Online",contactText:"Contact",showUserInfo:!0}};var G,K,Q;R.parameters={...R.parameters,docs:{...(G=R.parameters)==null?void 0:G.docs,source:{originalSource:`{
1
+ import{R as ve,r as o,j as r}from"./iframe-8g14XBDl.js";import"./preload-helper-C1FmrZbK.js";const he="_active_uxwt3_56",_e="_entering_uxwt3_84",xe="_avatar_uxwt3_252",n={"pc-behind":"_pc-behind_uxwt3_40",active:he,"pc-card":"_pc-card_uxwt3_33","pc-card-shell":"_pc-card-shell_uxwt3_84",entering:_e,"pc-inside":"_pc-inside_uxwt3_100","pc-shine":"_pc-shine_uxwt3_108","pc-glare":"_pc-glare_uxwt3_232","pc-avatar-content":"_pc-avatar-content_uxwt3_245",avatar:xe,"pc-user-info":"_pc-user-info_uxwt3_274","pc-user-details":"_pc-user-details_uxwt3_293","pc-mini-avatar":"_pc-mini-avatar_uxwt3_299","pc-user-text":"_pc-user-text_uxwt3_315","pc-handle":"_pc-handle_uxwt3_322","pc-status":"_pc-status_uxwt3_329","pc-contact-btn":"_pc-contact-btn_uxwt3_335","pc-content":"_pc-content_uxwt3_353","pc-details":"_pc-details_uxwt3_367"},ge="linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)",L={INITIAL_DURATION:1200,INITIAL_X_OFFSET:70,INITIAL_Y_OFFSET:60,DEVICE_BETA_OFFSET:20,ENTER_TRANSITION_MS:180},$=(p,d=0,v=100)=>Math.min(Math.max(p,d),v),C=(p,d=3)=>parseFloat(p.toFixed(d)),z=(p,d,v,x,O)=>C(x+(O-x)*(p-d)/(v-d)),Z=({avatarUrl:p="<Placeholder for avatar URL>",iconUrl:d="<Placeholder for icon URL>",grainUrl:v="<Placeholder for grain URL>",innerGradient:x,behindGlowEnabled:O=!0,behindGlowColor:S,behindGlowSize:U,className:ee="",enableTilt:A=!0,enableMobileTilt:V=!1,mobileTiltSensitivity:q=5,miniAvatarUrl:te,name:y="Javi A. Torres",title:ne="Software Engineer",handle:ae="javicodes",status:re="Online",contactText:se="Contact",showUserInfo:ce=!0,onContactClick:F})=>{const M=o.useRef(null),m=o.useRef(null),g=o.useRef(null),h=o.useRef(null),s=o.useMemo(()=>{if(!A)return null;let e=null,t=!1,a=0,c=0,i=0,u=0,f=0;const E=.14,T=.6;let j=0;const H=(l,_)=>{const w=m.current,I=M.current;if(!w||!I)return;const J=w.clientWidth||1,oe=w.clientHeight||1,N=$(100/J*l),b=$(100/oe*_),ue=N-50,de=b-50,pe={"--pointer-x":`${N}%`,"--pointer-y":`${b}%`,"--background-x":`${z(N,0,100,35,65)}%`,"--background-y":`${z(b,0,100,35,65)}%`,"--pointer-from-center":`${$(Math.hypot(b-50,N-50)/50,0,1)}`,"--pointer-from-top":`${b/100}`,"--pointer-from-left":`${N/100}`,"--rotate-x":`${C(-(ue/5))}deg`,"--rotate-y":`${C(de/4)}deg`};for(const[fe,me]of Object.entries(pe))I.style.setProperty(fe,me)},W=l=>{if(!t)return;a===0&&(a=l);const _=(l-a)/1e3;a=l;const w=l<j?T:E,I=1-Math.exp(-_/w);c+=(u-c)*I,i+=(f-i)*I,H(c,i),Math.abs(u-c)>.05||Math.abs(f-i)>.05||document.hasFocus()?e=requestAnimationFrame(W):(t=!1,a=0,e&&(cancelAnimationFrame(e),e=null))},B=()=>{t||(t=!0,a=0,e=requestAnimationFrame(W))};return{setImmediate(l,_){c=l,i=_,H(c,i)},setTarget(l,_){u=l,f=_,B()},toCenter(){const l=m.current;l&&this.setTarget(l.clientWidth/2,l.clientHeight/2)},beginInitial(l){j=performance.now()+l,B()},getCurrent(){return{x:c,y:i,tx:u,ty:f}},cancel(){e&&cancelAnimationFrame(e),e=null,t=!1,a=0}}},[A]),P=(e,t)=>{const a=t.getBoundingClientRect();return{x:e.clientX-a.left,y:e.clientY-a.top}},D=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),k=o.useCallback(e=>{const t=m.current;if(!t||!s)return;t.classList.add(n.active),t.classList.add(n.entering),g.current&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{t.classList.remove(n.entering)},L.ENTER_TRANSITION_MS);const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),X=o.useCallback(()=>{const e=m.current;if(!e||!s)return;s.toCenter();const t=()=>{const{x:a,y:c,tx:i,ty:u}=s.getCurrent();Math.hypot(i-a,u-c)<.6?(e.classList.remove(n.active),h.current=null):h.current=requestAnimationFrame(t)};h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(t)},[s]),Y=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{beta:a,gamma:c}=e;if(a==null||c==null)return;const i=t.clientWidth/2,u=t.clientHeight/2,f=$(i+c*q,0,t.clientWidth),E=$(u+(a-L.DEVICE_BETA_OFFSET)*q,0,t.clientHeight);s.setTarget(f,E)},[s,q]);o.useEffect(()=>{if(!A||!s)return;const e=m.current;if(!e)return;const t=D,a=k,c=X,i=Y;e.addEventListener("pointerenter",a),e.addEventListener("pointermove",t),e.addEventListener("pointerleave",c);const u=()=>{if(!V||location.protocol!=="https:")return;const T=window.DeviceMotionEvent;T&&typeof T.requestPermission=="function"?T.requestPermission().then(j=>{j==="granted"&&window.addEventListener("deviceorientation",i)}).catch(console.error):window.addEventListener("deviceorientation",i)};e.addEventListener("click",u);const f=(e.clientWidth||0)-L.INITIAL_X_OFFSET,E=L.INITIAL_Y_OFFSET;return s.setImmediate(f,E),s.toCenter(),s.beginInitial(L.INITIAL_DURATION),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointermove",t),e.removeEventListener("pointerleave",c),e.removeEventListener("click",u),window.removeEventListener("deviceorientation",i),g.current&&window.clearTimeout(g.current),h.current&&cancelAnimationFrame(h.current),s.cancel(),e.classList.remove(n.entering)}},[A,V,s,D,k,X,Y]);const le=o.useMemo(()=>({"--icon":d?`url(${d})`:"none","--grain":v?`url(${v})`:"none","--inner-gradient":x??ge,"--behind-glow-color":S??"rgba(125, 190, 255, 0.67)","--behind-glow-size":U??"50%"}),[d,v,x,S,U]),ie=o.useCallback(()=>{F==null||F()},[F]);return r.jsxs("div",{ref:M,className:`pc-card-wrapper ${ee}`.trim(),style:le,children:[O&&r.jsx("div",{className:`${n["pc-behind"]}`}),r.jsx("div",{ref:m,className:`${n["pc-card-shell"]}`,children:r.jsx("section",{className:`${n["pc-card"]}`,children:r.jsxs("div",{className:`${n["pc-inside"]}`,children:[r.jsx("div",{className:`${n["pc-shine"]}`}),r.jsx("div",{className:`${n["pc-glare"]}`}),r.jsxs("div",{className:`${n["pc-content"]} ${n["pc-avatar-content"]}`,children:[r.jsx("img",{className:`${n.avatar}`,src:p,alt:`${y||"User"} avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.display="none"}}),ce&&r.jsxs("div",{className:`${n["pc-user-info"]}`,children:[r.jsxs("div",{className:`${n["pc-user-details"]}`,children:[r.jsx("div",{className:`${n["pc-mini-avatar"]}`,children:r.jsx("img",{src:te||p,alt:`${y||"User"} mini avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.opacity="0.5",t.src=p}})}),r.jsxs("div",{className:`${n["pc-user-text"]}`,children:[r.jsxs("div",{className:`${n["pc-handle"]}`,children:["@",ae]}),r.jsx("div",{className:`${n["pc-status"]}`,children:re})]})]}),r.jsx("button",{className:`${n["pc-contact-btn"]}`,onClick:ie,style:{pointerEvents:"auto"},type:"button","aria-label":`Contact ${y||"user"}`,children:se})]})]}),r.jsx("div",{className:`${n["pc-content"]}`,children:r.jsxs("div",{className:`${n["pc-details"]}`,children:[r.jsx("h3",{children:y}),r.jsx("p",{children:ne})]})})]})})})]})},Ee=ve.memo(Z);Z.__docgenInfo={description:"",methods:[],displayName:"ProfileCardComponent",props:{avatarUrl:{defaultValue:{value:"'<Placeholder for avatar URL>'",computed:!1},required:!1},iconUrl:{defaultValue:{value:"'<Placeholder for icon URL>'",computed:!1},required:!1},grainUrl:{defaultValue:{value:"'<Placeholder for grain URL>'",computed:!1},required:!1},behindGlowEnabled:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},enableTilt:{defaultValue:{value:"true",computed:!1},required:!1},enableMobileTilt:{defaultValue:{value:"false",computed:!1},required:!1},mobileTiltSensitivity:{defaultValue:{value:"5",computed:!1},required:!1},name:{defaultValue:{value:"'Javi A. Torres'",computed:!1},required:!1},title:{defaultValue:{value:"'Software Engineer'",computed:!1},required:!1},handle:{defaultValue:{value:"'javicodes'",computed:!1},required:!1},status:{defaultValue:{value:"'Online'",computed:!1},required:!1},contactText:{defaultValue:{value:"'Contact'",computed:!1},required:!1},showUserInfo:{defaultValue:{value:"true",computed:!1},required:!1}}};const Ie={title:"ReactBits/Components/ProfileCard",component:Ee,parameters:{layout:"fullscreen"}},R={args:{avatarUrl:"https://i.pravatar.cc/300?img=12",behindGlowEnabled:!0,enableTilt:!0,enableMobileTilt:!1,mobileTiltSensitivity:5,name:"Javi A. Torres",title:"Software Engineer",handle:"javicodes",status:"Online",contactText:"Contact",showUserInfo:!0}};var G,K,Q;R.parameters={...R.parameters,docs:{...(G=R.parameters)==null?void 0:G.docs,source:{originalSource:`{
2
2
  args: {
3
3
  avatarUrl: 'https://i.pravatar.cc/300?img=12',
4
4
  behindGlowEnabled: true,
@@ -1,4 +1,4 @@
1
- import{r as d,j as n}from"./iframe-P7asu-Li.js";import{s as Y}from"./transform-QOf3tDlt.js";import{t as Me,e as Se,l as Te,m as ke}from"./monotone-DouxdRGd.js";import{l as je}from"./linear-DhrdWH9x.js";import{c as me}from"./createLucideIcon-DMu8KViE.js";import{t as Q}from"./defaultLocale-DJ2q5QjE.js";import{a as De,b as Ee}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";/**
1
+ import{r as d,j as n}from"./iframe-8g14XBDl.js";import{s as Y}from"./transform-QOf3tDlt.js";import{t as Me,e as Se,l as Te,m as ke}from"./monotone-DouxdRGd.js";import{l as je}from"./linear-DhrdWH9x.js";import{c as me}from"./createLucideIcon-DF2dqRZF.js";import{t as Q}from"./defaultLocale-DJ2q5QjE.js";import{a as De,b as Ee}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";/**
2
2
  * @license lucide-react v0.539.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{r as y,j as W}from"./iframe-P7asu-Li.js";import{R as D,P as G,M as U}from"./Mesh-CwXV3WjE.js";import{T as z}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const j={"radar-container":"_radar-container_51ksp_1"};function L(n){const o=n.replace("#","");return[parseInt(o.slice(0,2),16)/255,parseInt(o.slice(2,4),16)/255,parseInt(o.slice(4,6),16)/255]}const N=`
1
+ import{r as y,j as W}from"./iframe-8g14XBDl.js";import{R as D,P as G,M as U}from"./Mesh-CwXV3WjE.js";import{T as z}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const j={"radar-container":"_radar-container_51ksp_1"};function L(n){const o=n.replace("#","");return[parseInt(o.slice(0,2),16)/255,parseInt(o.slice(2,4),16)/255,parseInt(o.slice(4,6),16)/255]}const N=`
2
2
  attribute vec2 uv;
3
3
  attribute vec2 position;
4
4
  varying vec2 vUv;
@@ -1,4 +1,4 @@
1
- import{r as D,j as X}from"./iframe-P7asu-Li.js";import{G as Y,P as $,M as J,V as m,R as K,T as Q}from"./Mesh-CwXV3WjE.js";import{V as Z}from"./Vec2-Cf1C3GIc.js";import{C as j}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const v=new m;class ee{constructor(o,{points:t,vertex:w=te,fragment:E=oe,uniforms:r={},attributes:R={}}){this.gl=o,this.points=t,this.count=t.length,this.position=new Float32Array(this.count*3*2),this.prev=new Float32Array(this.count*3*2),this.next=new Float32Array(this.count*3*2);const h=new Float32Array(this.count*1*2),y=new Float32Array(this.count*2*2),p=new Uint16Array((this.count-1)*3*2);for(let l=0;l<this.count;l++){h.set([-1,1],l*2);const n=l/(this.count-1);if(y.set([0,n,1,n],l*4),l===this.count-1)continue;const s=l*2;p.set([s+0,s+1,s+2],(s+0)*3),p.set([s+2,s+1,s+3],(s+1)*3)}const A=this.geometry=new Y(o,Object.assign(R,{position:{size:3,data:this.position},prev:{size:3,data:this.prev},next:{size:3,data:this.next},side:{size:1,data:h},uv:{size:2,data:y},index:{size:1,data:p}}));this.updateGeometry(),r.uResolution||(this.resolution=r.uResolution={value:new Z}),r.uDPR||(this.dpr=r.uDPR={value:1}),r.uThickness||(this.thickness=r.uThickness={value:1}),r.uColor||(this.color=r.uColor={value:new j("#000")}),r.uMiter||(this.miter=r.uMiter={value:1}),this.resize();const u=this.program=new $(o,{vertex:w,fragment:E,uniforms:r});this.mesh=new J(o,{geometry:A,program:u})}updateGeometry(){this.points.forEach((o,t)=>{o.toArray(this.position,t*3*2),o.toArray(this.position,t*3*2+3),t?(o.toArray(this.next,(t-1)*3*2),o.toArray(this.next,(t-1)*3*2+3)):(v.copy(o).sub(this.points[t+1]).add(o),v.toArray(this.prev,t*3*2),v.toArray(this.prev,t*3*2+3)),t===this.points.length-1?(v.copy(o).sub(this.points[t-1]).add(o),v.toArray(this.next,t*3*2),v.toArray(this.next,t*3*2+3)):(o.toArray(this.prev,(t+1)*3*2),o.toArray(this.prev,(t+1)*3*2+3))}),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.prev.needsUpdate=!0,this.geometry.attributes.next.needsUpdate=!0}resize(){this.resolution&&this.resolution.value.set(this.gl.canvas.width,this.gl.canvas.height),this.dpr&&(this.dpr.value=this.gl.renderer.dpr)}}const te=`
1
+ import{r as D,j as X}from"./iframe-8g14XBDl.js";import{G as Y,P as $,M as J,V as m,R as K,T as Q}from"./Mesh-CwXV3WjE.js";import{V as Z}from"./Vec2-Cf1C3GIc.js";import{C as j}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const v=new m;class ee{constructor(o,{points:t,vertex:w=te,fragment:E=oe,uniforms:r={},attributes:R={}}){this.gl=o,this.points=t,this.count=t.length,this.position=new Float32Array(this.count*3*2),this.prev=new Float32Array(this.count*3*2),this.next=new Float32Array(this.count*3*2);const h=new Float32Array(this.count*1*2),y=new Float32Array(this.count*2*2),p=new Uint16Array((this.count-1)*3*2);for(let l=0;l<this.count;l++){h.set([-1,1],l*2);const n=l/(this.count-1);if(y.set([0,n,1,n],l*4),l===this.count-1)continue;const s=l*2;p.set([s+0,s+1,s+2],(s+0)*3),p.set([s+2,s+1,s+3],(s+1)*3)}const A=this.geometry=new Y(o,Object.assign(R,{position:{size:3,data:this.position},prev:{size:3,data:this.prev},next:{size:3,data:this.next},side:{size:1,data:h},uv:{size:2,data:y},index:{size:1,data:p}}));this.updateGeometry(),r.uResolution||(this.resolution=r.uResolution={value:new Z}),r.uDPR||(this.dpr=r.uDPR={value:1}),r.uThickness||(this.thickness=r.uThickness={value:1}),r.uColor||(this.color=r.uColor={value:new j("#000")}),r.uMiter||(this.miter=r.uMiter={value:1}),this.resize();const u=this.program=new $(o,{vertex:w,fragment:E,uniforms:r});this.mesh=new J(o,{geometry:A,program:u})}updateGeometry(){this.points.forEach((o,t)=>{o.toArray(this.position,t*3*2),o.toArray(this.position,t*3*2+3),t?(o.toArray(this.next,(t-1)*3*2),o.toArray(this.next,(t-1)*3*2+3)):(v.copy(o).sub(this.points[t+1]).add(o),v.toArray(this.prev,t*3*2),v.toArray(this.prev,t*3*2+3)),t===this.points.length-1?(v.copy(o).sub(this.points[t-1]).add(o),v.toArray(this.next,t*3*2),v.toArray(this.next,t*3*2+3)):(o.toArray(this.prev,(t+1)*3*2),o.toArray(this.prev,(t+1)*3*2+3))}),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.prev.needsUpdate=!0,this.geometry.attributes.next.needsUpdate=!0}resize(){this.resolution&&this.resolution.value.set(this.gl.canvas.width,this.gl.canvas.height),this.dpr&&(this.dpr.value=this.gl.renderer.dpr)}}const te=`
2
2
  precision highp float;
3
3
 
4
4
  attribute vec3 position;
@@ -1,4 +1,4 @@
1
- import{r as u,j as N}from"./iframe-P7asu-Li.js";import{R as G,P as j,M as H}from"./Mesh-CwXV3WjE.js";import{T as $}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const O={"ripple-grid-container":"_ripple-grid-container_1783h_1"},P=({enableRainbow:d=!1,gridColor:v="#ffffff",rippleIntensity:m=.05,gridSize:p=10,gridThickness:g=15,fadeDistance:h=1.5,vignetteStrength:R=2,glowIntensity:y=.1,opacity:x=1,gridRotation:I=0,mouseInteraction:i=!0,mouseInteractionRadius:w=1})=>{const r=u.useRef(null),l=u.useRef({x:.5,y:.5}),T=u.useRef({x:.5,y:.5}),b=u.useRef(0),n=u.useRef(null);return u.useEffect(()=>{if(!r.current)return;const E=o=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return t?[parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255]:[1,1,1]},c=new G({dpr:Math.min(window.devicePixelRatio,2),alpha:!0}),e=c.gl;e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),e.canvas.style.width="100%",e.canvas.style.height="100%",r.current.appendChild(e.canvas);const z=`
1
+ import{r as u,j as N}from"./iframe-8g14XBDl.js";import{R as G,P as j,M as H}from"./Mesh-CwXV3WjE.js";import{T as $}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const O={"ripple-grid-container":"_ripple-grid-container_1783h_1"},P=({enableRainbow:d=!1,gridColor:v="#ffffff",rippleIntensity:m=.05,gridSize:p=10,gridThickness:g=15,fadeDistance:h=1.5,vignetteStrength:R=2,glowIntensity:y=.1,opacity:x=1,gridRotation:I=0,mouseInteraction:i=!0,mouseInteractionRadius:w=1})=>{const r=u.useRef(null),l=u.useRef({x:.5,y:.5}),T=u.useRef({x:.5,y:.5}),b=u.useRef(0),n=u.useRef(null);return u.useEffect(()=>{if(!r.current)return;const E=o=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return t?[parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255]:[1,1,1]},c=new G({dpr:Math.min(window.devicePixelRatio,2),alpha:!0}),e=c.gl;e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),e.canvas.style.width="100%",e.canvas.style.height="100%",r.current.appendChild(e.canvas);const z=`
2
2
  attribute vec2 position;
3
3
  varying vec2 vUv;
4
4
  void main() {
@@ -1,4 +1,4 @@
1
- import{r as s,j as c}from"./iframe-P7asu-Li.js";import{m as C}from"./proxy-CDAVFVqI.js";import{A as Q}from"./index-CUas0FsV.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-78ZqsXO2.js";const i={"text-rotate":"_text-rotate_1n8cd_1","text-rotate-sr-only":"_text-rotate-sr-only_1n8cd_8","text-rotate-word":"_text-rotate-word_1n8cd_20","text-rotate-lines":"_text-rotate-lines_1n8cd_24","text-rotate-element":"_text-rotate-element_1n8cd_30","text-rotate-space":"_text-rotate-space_1n8cd_34"};function h(...y){return y.filter(Boolean).join(" ")}const v=s.forwardRef((y,D)=>{const{texts:o,transition:N={type:"spring",damping:25,stiffness:300},initial:w={y:"100%",opacity:0},animate:A={y:0,opacity:1},exit:E={y:"-120%",opacity:0},animatePresenceMode:F="wait",animatePresenceInitial:H=!1,rotationInterval:j=2e3,staggerDuration:m=0,staggerFrom:u="first",loop:d=!0,auto:M=!0,splitBy:p="characters",onNext:_,mainClassName:P,splitLevelClassName:L,elementLevelClassName:W,...$}=y,[e,q]=s.useState(0),z=t=>{if(typeof Intl<"u"&&Intl.Segmenter){const a=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(a.segment(t),r=>r.segment)}return Array.from(t)},G=s.useMemo(()=>{const t=o[e];if(p==="characters"){const a=t.split(" ");return a.map((r,n)=>({characters:z(r),needsSpace:n!==a.length-1}))}return p==="words"?t.split(" ").map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):p==="lines"?t.split(`
1
+ import{r as s,j as c}from"./iframe-8g14XBDl.js";import{m as C}from"./proxy-B2d_UmJi.js";import{A as Q}from"./index-DOd88rlX.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-DnBM5OK0.js";const i={"text-rotate":"_text-rotate_1n8cd_1","text-rotate-sr-only":"_text-rotate-sr-only_1n8cd_8","text-rotate-word":"_text-rotate-word_1n8cd_20","text-rotate-lines":"_text-rotate-lines_1n8cd_24","text-rotate-element":"_text-rotate-element_1n8cd_30","text-rotate-space":"_text-rotate-space_1n8cd_34"};function h(...y){return y.filter(Boolean).join(" ")}const v=s.forwardRef((y,D)=>{const{texts:o,transition:N={type:"spring",damping:25,stiffness:300},initial:w={y:"100%",opacity:0},animate:A={y:0,opacity:1},exit:E={y:"-120%",opacity:0},animatePresenceMode:F="wait",animatePresenceInitial:H=!1,rotationInterval:j=2e3,staggerDuration:m=0,staggerFrom:u="first",loop:d=!0,auto:M=!0,splitBy:p="characters",onNext:_,mainClassName:P,splitLevelClassName:L,elementLevelClassName:W,...$}=y,[e,q]=s.useState(0),z=t=>{if(typeof Intl<"u"&&Intl.Segmenter){const a=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(a.segment(t),r=>r.segment)}return Array.from(t)},G=s.useMemo(()=>{const t=o[e];if(p==="characters"){const a=t.split(" ");return a.map((r,n)=>({characters:z(r),needsSpace:n!==a.length-1}))}return p==="words"?t.split(" ").map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):p==="lines"?t.split(`
2
2
  `).map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):t.split(p).map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1}))},[o,e,p]),J=s.useCallback((t,a)=>{const r=a;if(u==="first")return t*m;if(u==="last")return(r-1-t)*m;if(u==="center"){const n=Math.floor(r/2);return Math.abs(n-t)*m}if(u==="random"){const n=Math.floor(Math.random()*r);return Math.abs(n-t)*m}return Math.abs(u-t)*m},[u,m]),l=s.useCallback(t=>{q(t),_&&_(t)},[_]),x=s.useCallback(()=>{const t=e===o.length-1?d?0:e:e+1;t!==e&&l(t)},[e,o.length,d,l]),S=s.useCallback(()=>{const t=e===0?d?o.length-1:e:e-1;t!==e&&l(t)},[e,o.length,d,l]),R=s.useCallback(t=>{const a=Math.max(0,Math.min(t,o.length-1));a!==e&&l(a)},[o.length,e,l]),T=s.useCallback(()=>{e!==0&&l(0)},[e,l]);return s.useImperativeHandle(D,()=>({next:x,previous:S,jumpTo:R,reset:T}),[x,S,R,T]),s.useEffect(()=>{if(!M)return;const t=setInterval(x,j);return()=>clearInterval(t)},[x,j,M]),c.jsxs(C.span,{className:h(i["text-rotate"],P),...$,layout:!0,transition:N,children:[c.jsx("span",{className:`${i["text-rotate-sr-only"]}`,children:o[e]}),c.jsx(Q,{mode:F,initial:H,children:c.jsx(C.span,{className:h(p==="lines"?i["text-rotate-lines"]:i["text-rotate"]),layout:!0,"aria-hidden":"true",children:G.map((t,a,r)=>{const n=r.slice(0,a).reduce((I,g)=>I+g.characters.length,0);return c.jsxs("span",{className:h(i["text-rotate-word"],L),children:[t.characters.map((I,g)=>c.jsx(C.span,{initial:w,animate:A,exit:E,transition:{...N,delay:J(n+g,r.reduce((K,O)=>K+O.characters.length,0))},className:h(i["text-rotate-element"],W),children:I},g)),t.needsSpace&&c.jsx("span",{className:`${i["text-rotate-space"]}`,children:" "})]},a)})},e)})]})});v.displayName="RotatingText";v.__docgenInfo={description:"",methods:[],displayName:"RotatingText"};const tt={title:"ReactBits/TextAnimations/RotatingText",component:v,parameters:{layout:"fullscreen"}},f={args:{texts:["Hello","World","React","Bits"],rotationInterval:2e3,loop:!0,auto:!0,splitBy:"characters",staggerDuration:0,staggerFrom:"first"}};var b,B,k;f.parameters={...f.parameters,docs:{...(b=f.parameters)==null?void 0:b.docs,source:{originalSource:`{
3
3
  args: {
4
4
  texts: ['Hello', 'World', 'React', 'Bits'],
@@ -1,4 +1,4 @@
1
- import{r as s,j as c}from"./iframe-P7asu-Li.js";import{g as _}from"./index-C8pce-KX.js";import{S as q}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const v="_char_46mmt_13",n={"scroll-float":"_scroll-float_46mmt_1","scroll-float-text":"_scroll-float-text_46mmt_5",char:v};_.registerPlugin(q);const h=({children:l,scrollContainerRef:e,containerClassName:S="",textClassName:y="",animationDuration:u=1,ease:m="back.inOut(2)",scrollStart:i="center bottom+=50%",scrollEnd:f="bottom bottom-=40%",stagger:d=.03})=>{const p=s.useRef(null),N=s.useMemo(()=>(typeof l=="string"?l:"").split("").map((a,o)=>c.jsx("span",{className:`${n.char}`,children:a===" "?" ":a},o)),[l]);return s.useEffect(()=>{const t=p.current;if(!t)return;const a=e&&e.current?e.current:window,o=t.querySelectorAll(".char");_.fromTo(o,{willChange:"opacity, transform",opacity:0,yPercent:120,scaleY:2.3,scaleX:.7,transformOrigin:"50% 0%"},{duration:u,ease:m,opacity:1,yPercent:0,scaleY:1,scaleX:1,stagger:d,scrollTrigger:{trigger:t,scroller:a,start:i,end:f,scrub:!0}})},[e,u,m,i,f,d]),c.jsx("h2",{ref:p,className:`${n["scroll-float"]} ${S}`,children:c.jsx("span",{className:`${n["scroll-float-text"]} ${y}`,children:N})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollFloat",props:{containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},animationDuration:{defaultValue:{value:"1",computed:!1},required:!1},ease:{defaultValue:{value:"'back.inOut(2)'",computed:!1},required:!1},scrollStart:{defaultValue:{value:"'center bottom+=50%'",computed:!1},required:!1},scrollEnd:{defaultValue:{value:"'bottom bottom-=40%'",computed:!1},required:!1},stagger:{defaultValue:{value:"0.03",computed:!1},required:!1}}};const C={title:"ReactBits/TextAnimations/ScrollFloat",component:h,parameters:{layout:"fullscreen"}},r={args:{children:"Hello World",containerClassName:"",textClassName:"",animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03}};var g,x,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
1
+ import{r as s,j as c}from"./iframe-8g14XBDl.js";import{g as _}from"./index-C8pce-KX.js";import{S as q}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const v="_char_46mmt_13",n={"scroll-float":"_scroll-float_46mmt_1","scroll-float-text":"_scroll-float-text_46mmt_5",char:v};_.registerPlugin(q);const h=({children:l,scrollContainerRef:e,containerClassName:S="",textClassName:y="",animationDuration:u=1,ease:m="back.inOut(2)",scrollStart:i="center bottom+=50%",scrollEnd:f="bottom bottom-=40%",stagger:d=.03})=>{const p=s.useRef(null),N=s.useMemo(()=>(typeof l=="string"?l:"").split("").map((a,o)=>c.jsx("span",{className:`${n.char}`,children:a===" "?" ":a},o)),[l]);return s.useEffect(()=>{const t=p.current;if(!t)return;const a=e&&e.current?e.current:window,o=t.querySelectorAll(".char");_.fromTo(o,{willChange:"opacity, transform",opacity:0,yPercent:120,scaleY:2.3,scaleX:.7,transformOrigin:"50% 0%"},{duration:u,ease:m,opacity:1,yPercent:0,scaleY:1,scaleX:1,stagger:d,scrollTrigger:{trigger:t,scroller:a,start:i,end:f,scrub:!0}})},[e,u,m,i,f,d]),c.jsx("h2",{ref:p,className:`${n["scroll-float"]} ${S}`,children:c.jsx("span",{className:`${n["scroll-float-text"]} ${y}`,children:N})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollFloat",props:{containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},animationDuration:{defaultValue:{value:"1",computed:!1},required:!1},ease:{defaultValue:{value:"'back.inOut(2)'",computed:!1},required:!1},scrollStart:{defaultValue:{value:"'center bottom+=50%'",computed:!1},required:!1},scrollEnd:{defaultValue:{value:"'bottom bottom-=40%'",computed:!1},required:!1},stagger:{defaultValue:{value:"0.03",computed:!1},required:!1}}};const C={title:"ReactBits/TextAnimations/ScrollFloat",component:h,parameters:{layout:"fullscreen"}},r={args:{children:"Hello World",containerClassName:"",textClassName:"",animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03}};var g,x,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
2
2
  args: {
3
3
  children: 'Hello World',
4
4
  containerClassName: '',
@@ -1,4 +1,4 @@
1
- import{r as u,j as c}from"./iframe-P7asu-Li.js";import{g as l}from"./index-C8pce-KX.js";import{S as _}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const T="_word_1yrz7_11",m={"scroll-reveal":"_scroll-reveal_1yrz7_1","scroll-reveal-text":"_scroll-reveal-text_1yrz7_5",word:T};l.registerPlugin(_);const h=({children:s,scrollContainerRef:r,enableBlur:i=!0,baseOpacity:d=.1,baseRotation:f=3,blurStrength:p=4,containerClassName:S="",textClassName:N="",rotationEnd:b="bottom bottom",wordAnimationEnd:n="bottom bottom"})=>{const g=u.useRef(null),q=u.useMemo(()=>(typeof s=="string"?s:"").split(/(\s+)/).map((t,o)=>t.match(/^\s+$/)?t:c.jsx("span",{className:`${m.word}`,children:t},o)),[s]);return u.useEffect(()=>{const e=g.current;if(!e)return;const t=r&&r.current?r.current:window;l.fromTo(e,{transformOrigin:"0% 50%",rotate:f},{ease:"none",rotate:0,scrollTrigger:{trigger:e,scroller:t,start:"top bottom",end:b,scrub:!0}});const o=e.querySelectorAll(".word");return l.fromTo(o,{opacity:d,willChange:"opacity"},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),i&&l.fromTo(o,{filter:`blur(${p}px)`},{ease:"none",filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),()=>{_.getAll().forEach(E=>E.kill())}},[r,i,f,d,b,n,p]),c.jsx("h2",{ref:g,className:`${m["scroll-reveal"]} ${S}`,children:c.jsx("p",{className:`${m["scroll-reveal-text"]} ${N}`,children:q})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollReveal",props:{enableBlur:{defaultValue:{value:"true",computed:!1},required:!1},baseOpacity:{defaultValue:{value:"0.1",computed:!1},required:!1},baseRotation:{defaultValue:{value:"3",computed:!1},required:!1},blurStrength:{defaultValue:{value:"4",computed:!1},required:!1},containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},rotationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1},wordAnimationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1}}};const j={title:"ReactBits/TextAnimations/ScrollReveal",component:h,parameters:{layout:"fullscreen"}},a={args:{children:"Hello World",enableBlur:!0,baseOpacity:.1,baseRotation:3,blurStrength:4,containerClassName:"",textClassName:"",rotationEnd:"bottom bottom",wordAnimationEnd:"bottom bottom"}};var x,v,y;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`{
1
+ import{r as u,j as c}from"./iframe-8g14XBDl.js";import{g as l}from"./index-C8pce-KX.js";import{S as _}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const T="_word_1yrz7_11",m={"scroll-reveal":"_scroll-reveal_1yrz7_1","scroll-reveal-text":"_scroll-reveal-text_1yrz7_5",word:T};l.registerPlugin(_);const h=({children:s,scrollContainerRef:r,enableBlur:i=!0,baseOpacity:d=.1,baseRotation:f=3,blurStrength:p=4,containerClassName:S="",textClassName:N="",rotationEnd:b="bottom bottom",wordAnimationEnd:n="bottom bottom"})=>{const g=u.useRef(null),q=u.useMemo(()=>(typeof s=="string"?s:"").split(/(\s+)/).map((t,o)=>t.match(/^\s+$/)?t:c.jsx("span",{className:`${m.word}`,children:t},o)),[s]);return u.useEffect(()=>{const e=g.current;if(!e)return;const t=r&&r.current?r.current:window;l.fromTo(e,{transformOrigin:"0% 50%",rotate:f},{ease:"none",rotate:0,scrollTrigger:{trigger:e,scroller:t,start:"top bottom",end:b,scrub:!0}});const o=e.querySelectorAll(".word");return l.fromTo(o,{opacity:d,willChange:"opacity"},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),i&&l.fromTo(o,{filter:`blur(${p}px)`},{ease:"none",filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),()=>{_.getAll().forEach(E=>E.kill())}},[r,i,f,d,b,n,p]),c.jsx("h2",{ref:g,className:`${m["scroll-reveal"]} ${S}`,children:c.jsx("p",{className:`${m["scroll-reveal-text"]} ${N}`,children:q})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollReveal",props:{enableBlur:{defaultValue:{value:"true",computed:!1},required:!1},baseOpacity:{defaultValue:{value:"0.1",computed:!1},required:!1},baseRotation:{defaultValue:{value:"3",computed:!1},required:!1},blurStrength:{defaultValue:{value:"4",computed:!1},required:!1},containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},rotationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1},wordAnimationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1}}};const j={title:"ReactBits/TextAnimations/ScrollReveal",component:h,parameters:{layout:"fullscreen"}},a={args:{children:"Hello World",enableBlur:!0,baseOpacity:.1,baseRotation:3,blurStrength:4,containerClassName:"",textClassName:"",rotationEnd:"bottom bottom",wordAnimationEnd:"bottom bottom"}};var x,v,y;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`{
2
2
  args: {
3
3
  children: 'Hello World',
4
4
  enableBlur: true,
@@ -1,4 +1,4 @@
1
- import{r as g,j as v}from"./iframe-P7asu-Li.js";import{u as re}from"./use-motion-value-DmfqbQXL.js";import{h as ne,j as le,i as Te,r as Ce,m as Oe}from"./proxy-CDAVFVqI.js";import{f as h,I as k,N as Ne,a3 as Pe,Y as He,$ as Be,j as Ae,c as oe,R as ke,U as Re,o as W,u as be,a as q}from"./MotionConfigContext-78ZqsXO2.js";import{u as ze}from"./use-spring-Bp7x7VGF.js";import{u as D}from"./use-transform-D9Pnt9FQ.js";import{u as je}from"./use-animation-frame-DmI_PhRU.js";import"./preload-helper-C1FmrZbK.js";function ce(e,t){let s;const r=()=>{const{currentTime:n}=t,o=(n===null?0:n.value)/100;s!==o&&e(o),s=o};return h.preUpdate(r,!0),()=>k(r)}function Ie(e,t,s){g.useInsertionEffect(()=>e.on(t,s),[e,t,s])}function O(e){return typeof window>"u"?!1:e?ne():le()}const _e=50,F=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),qe=()=>({time:0,x:F(),y:F()}),De={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $(e,t,s,r){const n=s[t],{length:l,position:o}=De[t],c=n.current,a=s.time;n.current=Math.abs(e[`scroll${o}`]),n.scrollLength=e[`scroll${l}`]-e[`client${l}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Ne(0,n.scrollLength,n.current);const i=r-a;n.velocity=i>_e?0:Pe(n.current-c,i)}function Fe(e,t,s){$(e,"x",t,s),$(e,"y",t,s),t.time=s}function $e(e,t){const s={x:0,y:0};let r=e;for(;r&&r!==t;)if(Te(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const n=r.getBoundingClientRect();r=r.parentElement;const l=r.getBoundingClientRect();s.x+=n.left-l.left,s.y+=n.top-l.top}else if(r instanceof SVGGraphicsElement){const{x:n,y:l}=r.getBBox();s.x+=n,s.y+=l;let o=null,c=r.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=r.parentNode;r=o}else break;return s}const R={start:0,center:.5,end:1};function Y(e,t,s=0){let r=0;if(e in R&&(e=R[e]),typeof e=="string"){const n=parseFloat(e);e.endsWith("px")?r=n:e.endsWith("%")?e=n/100:e.endsWith("vw")?r=n/100*document.documentElement.clientWidth:e.endsWith("vh")?r=n/100*document.documentElement.clientHeight:e=n}return typeof e=="number"&&(r=t*e),s+r}const Ye=[0,0];function Xe(e,t,s,r){let n=Array.isArray(e)?e:Ye,l=0,o=0;return typeof e=="number"?n=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?n=e.split(" "):n=[e,R[e]?e:"0"]),l=Y(n[0],s,r),o=Y(n[1],t),l-o}const E={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Me={x:0,y:0};function Ue(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Ge(e,t,s){const{offset:r=E.All}=s,{target:n=e,axis:l="y"}=s,o=l==="y"?"height":"width",c=n!==e?$e(n,e):Me,a=n===e?{width:e.scrollWidth,height:e.scrollHeight}:Ue(n),i={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate;const m=r.length;for(let f=0;f<m;f++){const p=Xe(r[f],i[o],a[o],c[l]);!u&&p!==t[l].interpolatorOffsets[f]&&(u=!0),t[l].offset[f]=p}u&&(t[l].interpolate=He(t[l].offset,Be(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Ae(0,1,t[l].interpolate(t[l].current))}function Ke(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function Je(e,t,s,r={}){return{measure:n=>{Ke(e,r.target,s),Fe(e,s,n),(r.offset||r.target)&&Ge(e,s,r)},notify:()=>t(s)}}const x=new WeakMap,X=new WeakMap,A=new WeakMap,M=new WeakMap,L=new WeakMap,U=e=>e===document.scrollingElement?window:e;function ie(e,{container:t=document.scrollingElement,trackContentSize:s=!1,...r}={}){if(!t)return oe;let n=A.get(t);n||(n=new Set,A.set(t,n));const l=qe(),o=Je(t,e,l,r);if(n.add(o),!x.has(t)){const a=()=>{for(const f of n)f.measure(ke.timestamp);h.preUpdate(i)},i=()=>{for(const f of n)f.notify()},u=()=>h.read(a);x.set(t,u);const m=U(t);window.addEventListener("resize",u),t!==document.documentElement&&X.set(t,Ce(t,u)),m.addEventListener("scroll",u),u()}if(s&&!L.has(t)){const a=x.get(t),i={width:t.scrollWidth,height:t.scrollHeight};M.set(t,i);const u=()=>{const f=t.scrollWidth,p=t.scrollHeight;(i.width!==f||i.height!==p)&&(a(),i.width=f,i.height=p)},m=h.read(u,!0);L.set(t,m)}const c=x.get(t);return h.read(c,!1,!0),()=>{var m;k(c);const a=A.get(t);if(!a||(a.delete(o),a.size))return;const i=x.get(t);x.delete(t),i&&(U(t).removeEventListener("scroll",i),(m=X.get(t))==null||m(),window.removeEventListener("resize",i));const u=L.get(t);u&&(k(u),L.delete(t)),M.delete(t)}}const Qe=[[E.Enter,"entry"],[E.Exit,"exit"],[E.Any,"cover"],[E.All,"contain"]],G={start:0,end:1};function Ze(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const s=G[t[0]],r=G[t[1]];if(!(s===void 0||r===void 0))return[s,r]}function et(e){if(e.length!==2)return;const t=[];for(const s of e)if(Array.isArray(s))t.push(s);else if(typeof s=="string"){const r=Ze(s);if(!r)return;t.push(r)}else return;return t}function tt(e,t){const s=et(e);if(!s)return!1;for(let r=0;r<2;r++){const n=s[r],l=t[r];if(n[0]!==l[0]||n[1]!==l[1])return!1}return!0}function b(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,s]of Qe)if(tt(e,t))return{rangeStart:`${s} 0%`,rangeEnd:`${s} 100%`}}const K=new Map;function J(e){const t={value:0},s=ie(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function ae({source:e,container:t,...s}){const{axis:r}=s;e&&(t=e);let n=K.get(t);n||(n=new Map,K.set(t,n));const l=s.target??"self";let o=n.get(l);o||(o={},n.set(l,o));const c=r+(s.offset??[]).join(",");return o[c]||(s.target&&O(s.target)?b(s.offset)?o[c]=new ViewTimeline({subject:s.target,axis:r}):o[c]=J({container:t,...s}):O()?o[c]=new ScrollTimeline({source:t,axis:r}):o[c]=J({container:t,...s})),o[c]}function st(e,t){const s=ae(t),r=t.target?b(t.offset):void 0,n=t.target?O(t.target)&&!!r:O();return e.attachTimeline({timeline:n?s:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:l=>(l.pause(),ce(o=>{l.time=l.iterationDuration*o},s))})}function rt(e){return e.length===2}function nt(e,t){return rt(e)?ie(s=>{e(s[t.axis].progress,s)},t):ce(e,ae(t))}function ue(e,{axis:t="y",container:s=document.scrollingElement,...r}={}){if(!s)return oe;const n={axis:t,container:s,...r};return typeof e=="function"?nt(e,n):st(e,n)}const lt=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),T=e=>e?!e.current:!1;function Q(e,t,s,r){return{factory:n=>ue(n,{...t,axis:e,container:(s==null?void 0:s.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function ot(e,t){return typeof window>"u"?!1:e?ne()&&!!b(t):le()}function ct({container:e,target:t,...s}={}){const r=Re(lt);ot(t,s.offset)&&(r.scrollXProgress.accelerate=Q("x",s,e,t),r.scrollYProgress.accelerate=Q("y",s,e,t));const n=g.useRef(null),l=g.useRef(!1),o=g.useCallback(()=>(n.current=ue((c,{x:a,y:i})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var c;(c=n.current)==null||c.call(n)}),[e,t,JSON.stringify(s.offset)]);return be(()=>{if(l.current=!1,T(e)||T(t)){l.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(l.current)return q(!T(e)),q(!T(t)),o()},[o]),r}function it(e){const t=re(e.getVelocity()),s=()=>{const r=e.getVelocity();t.set(r),r&&h.update(s)};return Ie(e,"change",()=>{h.update(s,!1,!0)}),t}const at="_parallax_1s8d6_1",ut="_scroller_1s8d6_6",Z={parallax:at,scroller:ut};function ft(e){const[t,s]=g.useState(0);return g.useLayoutEffect(()=>{function r(){e.current&&s(e.current.offsetWidth)}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t}const fe=({scrollContainerRef:e,texts:t=[],velocity:s=100,className:r="",damping:n=50,stiffness:l=400,numCopies:o=6,velocityMapping:c={input:[0,1e3],output:[0,5]},parallaxClassName:a=Z.parallax,scrollerClassName:i=Z.scroller,parallaxStyle:u,scrollerStyle:m})=>{function f({children:p,baseVelocity:S=s,scrollContainerRef:z,className:de="",damping:me,stiffness:pe,numCopies:ge,velocityMapping:y,parallaxClassName:he,scrollerClassName:ye,parallaxStyle:xe,scrollerStyle:we}){const N=re(0),ve=z?{container:z}:{},{scrollY:Ee}=ct(ve),Se=it(Ee),Ve=ze(Se,{damping:me??50,stiffness:pe??400}),P=D(Ve,(y==null?void 0:y.input)||[0,1e3],(y==null?void 0:y.output)||[0,5],{clamp:!1}),j=g.useRef(null),I=ft(j);function We(d,H,w){const B=H-d;return((w-d)%B+B)%B+d}const Le=D(N,d=>I===0?"0px":`${We(-I,0,d)}px`),V=g.useRef(1);je((d,H)=>{let w=V.current*S*(H/1e3);P.get()<0?V.current=-1:P.get()>0&&(V.current=1),w+=V.current*w*P.get(),N.set(N.get()+w)});const _=[];for(let d=0;d<ge;d++)_.push(v.jsxs("span",{className:de,ref:d===0?j:null,children:[p," "]},d));return v.jsx("div",{className:he,style:xe,children:v.jsx(Oe.div,{className:ye,style:{x:Le,...we},children:_})})}return v.jsx("section",{children:t.map((p,S)=>v.jsx(f,{className:r,baseVelocity:S%2!==0?-s:s,scrollContainerRef:e,damping:n,stiffness:l,numCopies:o,velocityMapping:c,parallaxClassName:a,scrollerClassName:i,parallaxStyle:u,scrollerStyle:m,children:p},S))})};fe.__docgenInfo={description:"",methods:[],displayName:"ScrollVelocity",props:{texts:{defaultValue:{value:"[]",computed:!1},required:!1},velocity:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},damping:{defaultValue:{value:"50",computed:!1},required:!1},stiffness:{defaultValue:{value:"400",computed:!1},required:!1},numCopies:{defaultValue:{value:"6",computed:!1},required:!1},velocityMapping:{defaultValue:{value:"{ input: [0, 1000], output: [0, 5] }",computed:!1},required:!1},parallaxClassName:{defaultValue:{value:"styles['parallax']",computed:!0},required:!1},scrollerClassName:{defaultValue:{value:"styles['scroller']",computed:!0},required:!1}}};const Et={title:"ReactBits/TextAnimations/ScrollVelocity",component:fe,parameters:{layout:"fullscreen"}},C={args:{texts:["React Bits","Scroll Velocity"],velocity:100,damping:50,stiffness:400,numCopies:6}};var ee,te,se;C.parameters={...C.parameters,docs:{...(ee=C.parameters)==null?void 0:ee.docs,source:{originalSource:`{
1
+ import{r as g,j as v}from"./iframe-8g14XBDl.js";import{u as re}from"./use-motion-value-BWJfnGID.js";import{h as ne,j as le,i as Te,r as Ce,m as Oe}from"./proxy-B2d_UmJi.js";import{f as h,I as k,N as Ne,a3 as Pe,Y as He,$ as Be,j as Ae,c as oe,R as ke,U as Re,o as W,u as be,a as q}from"./MotionConfigContext-DnBM5OK0.js";import{u as ze}from"./use-spring-DhaXuuuR.js";import{u as D}from"./use-transform-px_rlL4B.js";import{u as je}from"./use-animation-frame-698WQrz7.js";import"./preload-helper-C1FmrZbK.js";function ce(e,t){let s;const r=()=>{const{currentTime:n}=t,o=(n===null?0:n.value)/100;s!==o&&e(o),s=o};return h.preUpdate(r,!0),()=>k(r)}function Ie(e,t,s){g.useInsertionEffect(()=>e.on(t,s),[e,t,s])}function O(e){return typeof window>"u"?!1:e?ne():le()}const _e=50,F=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),qe=()=>({time:0,x:F(),y:F()}),De={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $(e,t,s,r){const n=s[t],{length:l,position:o}=De[t],c=n.current,a=s.time;n.current=Math.abs(e[`scroll${o}`]),n.scrollLength=e[`scroll${l}`]-e[`client${l}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Ne(0,n.scrollLength,n.current);const i=r-a;n.velocity=i>_e?0:Pe(n.current-c,i)}function Fe(e,t,s){$(e,"x",t,s),$(e,"y",t,s),t.time=s}function $e(e,t){const s={x:0,y:0};let r=e;for(;r&&r!==t;)if(Te(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const n=r.getBoundingClientRect();r=r.parentElement;const l=r.getBoundingClientRect();s.x+=n.left-l.left,s.y+=n.top-l.top}else if(r instanceof SVGGraphicsElement){const{x:n,y:l}=r.getBBox();s.x+=n,s.y+=l;let o=null,c=r.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=r.parentNode;r=o}else break;return s}const R={start:0,center:.5,end:1};function Y(e,t,s=0){let r=0;if(e in R&&(e=R[e]),typeof e=="string"){const n=parseFloat(e);e.endsWith("px")?r=n:e.endsWith("%")?e=n/100:e.endsWith("vw")?r=n/100*document.documentElement.clientWidth:e.endsWith("vh")?r=n/100*document.documentElement.clientHeight:e=n}return typeof e=="number"&&(r=t*e),s+r}const Ye=[0,0];function Xe(e,t,s,r){let n=Array.isArray(e)?e:Ye,l=0,o=0;return typeof e=="number"?n=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?n=e.split(" "):n=[e,R[e]?e:"0"]),l=Y(n[0],s,r),o=Y(n[1],t),l-o}const E={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Me={x:0,y:0};function Ue(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Ge(e,t,s){const{offset:r=E.All}=s,{target:n=e,axis:l="y"}=s,o=l==="y"?"height":"width",c=n!==e?$e(n,e):Me,a=n===e?{width:e.scrollWidth,height:e.scrollHeight}:Ue(n),i={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate;const m=r.length;for(let f=0;f<m;f++){const p=Xe(r[f],i[o],a[o],c[l]);!u&&p!==t[l].interpolatorOffsets[f]&&(u=!0),t[l].offset[f]=p}u&&(t[l].interpolate=He(t[l].offset,Be(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Ae(0,1,t[l].interpolate(t[l].current))}function Ke(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function Je(e,t,s,r={}){return{measure:n=>{Ke(e,r.target,s),Fe(e,s,n),(r.offset||r.target)&&Ge(e,s,r)},notify:()=>t(s)}}const x=new WeakMap,X=new WeakMap,A=new WeakMap,M=new WeakMap,L=new WeakMap,U=e=>e===document.scrollingElement?window:e;function ie(e,{container:t=document.scrollingElement,trackContentSize:s=!1,...r}={}){if(!t)return oe;let n=A.get(t);n||(n=new Set,A.set(t,n));const l=qe(),o=Je(t,e,l,r);if(n.add(o),!x.has(t)){const a=()=>{for(const f of n)f.measure(ke.timestamp);h.preUpdate(i)},i=()=>{for(const f of n)f.notify()},u=()=>h.read(a);x.set(t,u);const m=U(t);window.addEventListener("resize",u),t!==document.documentElement&&X.set(t,Ce(t,u)),m.addEventListener("scroll",u),u()}if(s&&!L.has(t)){const a=x.get(t),i={width:t.scrollWidth,height:t.scrollHeight};M.set(t,i);const u=()=>{const f=t.scrollWidth,p=t.scrollHeight;(i.width!==f||i.height!==p)&&(a(),i.width=f,i.height=p)},m=h.read(u,!0);L.set(t,m)}const c=x.get(t);return h.read(c,!1,!0),()=>{var m;k(c);const a=A.get(t);if(!a||(a.delete(o),a.size))return;const i=x.get(t);x.delete(t),i&&(U(t).removeEventListener("scroll",i),(m=X.get(t))==null||m(),window.removeEventListener("resize",i));const u=L.get(t);u&&(k(u),L.delete(t)),M.delete(t)}}const Qe=[[E.Enter,"entry"],[E.Exit,"exit"],[E.Any,"cover"],[E.All,"contain"]],G={start:0,end:1};function Ze(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const s=G[t[0]],r=G[t[1]];if(!(s===void 0||r===void 0))return[s,r]}function et(e){if(e.length!==2)return;const t=[];for(const s of e)if(Array.isArray(s))t.push(s);else if(typeof s=="string"){const r=Ze(s);if(!r)return;t.push(r)}else return;return t}function tt(e,t){const s=et(e);if(!s)return!1;for(let r=0;r<2;r++){const n=s[r],l=t[r];if(n[0]!==l[0]||n[1]!==l[1])return!1}return!0}function b(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,s]of Qe)if(tt(e,t))return{rangeStart:`${s} 0%`,rangeEnd:`${s} 100%`}}const K=new Map;function J(e){const t={value:0},s=ie(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function ae({source:e,container:t,...s}){const{axis:r}=s;e&&(t=e);let n=K.get(t);n||(n=new Map,K.set(t,n));const l=s.target??"self";let o=n.get(l);o||(o={},n.set(l,o));const c=r+(s.offset??[]).join(",");return o[c]||(s.target&&O(s.target)?b(s.offset)?o[c]=new ViewTimeline({subject:s.target,axis:r}):o[c]=J({container:t,...s}):O()?o[c]=new ScrollTimeline({source:t,axis:r}):o[c]=J({container:t,...s})),o[c]}function st(e,t){const s=ae(t),r=t.target?b(t.offset):void 0,n=t.target?O(t.target)&&!!r:O();return e.attachTimeline({timeline:n?s:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:l=>(l.pause(),ce(o=>{l.time=l.iterationDuration*o},s))})}function rt(e){return e.length===2}function nt(e,t){return rt(e)?ie(s=>{e(s[t.axis].progress,s)},t):ce(e,ae(t))}function ue(e,{axis:t="y",container:s=document.scrollingElement,...r}={}){if(!s)return oe;const n={axis:t,container:s,...r};return typeof e=="function"?nt(e,n):st(e,n)}const lt=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),T=e=>e?!e.current:!1;function Q(e,t,s,r){return{factory:n=>ue(n,{...t,axis:e,container:(s==null?void 0:s.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function ot(e,t){return typeof window>"u"?!1:e?ne()&&!!b(t):le()}function ct({container:e,target:t,...s}={}){const r=Re(lt);ot(t,s.offset)&&(r.scrollXProgress.accelerate=Q("x",s,e,t),r.scrollYProgress.accelerate=Q("y",s,e,t));const n=g.useRef(null),l=g.useRef(!1),o=g.useCallback(()=>(n.current=ue((c,{x:a,y:i})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var c;(c=n.current)==null||c.call(n)}),[e,t,JSON.stringify(s.offset)]);return be(()=>{if(l.current=!1,T(e)||T(t)){l.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(l.current)return q(!T(e)),q(!T(t)),o()},[o]),r}function it(e){const t=re(e.getVelocity()),s=()=>{const r=e.getVelocity();t.set(r),r&&h.update(s)};return Ie(e,"change",()=>{h.update(s,!1,!0)}),t}const at="_parallax_1s8d6_1",ut="_scroller_1s8d6_6",Z={parallax:at,scroller:ut};function ft(e){const[t,s]=g.useState(0);return g.useLayoutEffect(()=>{function r(){e.current&&s(e.current.offsetWidth)}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t}const fe=({scrollContainerRef:e,texts:t=[],velocity:s=100,className:r="",damping:n=50,stiffness:l=400,numCopies:o=6,velocityMapping:c={input:[0,1e3],output:[0,5]},parallaxClassName:a=Z.parallax,scrollerClassName:i=Z.scroller,parallaxStyle:u,scrollerStyle:m})=>{function f({children:p,baseVelocity:S=s,scrollContainerRef:z,className:de="",damping:me,stiffness:pe,numCopies:ge,velocityMapping:y,parallaxClassName:he,scrollerClassName:ye,parallaxStyle:xe,scrollerStyle:we}){const N=re(0),ve=z?{container:z}:{},{scrollY:Ee}=ct(ve),Se=it(Ee),Ve=ze(Se,{damping:me??50,stiffness:pe??400}),P=D(Ve,(y==null?void 0:y.input)||[0,1e3],(y==null?void 0:y.output)||[0,5],{clamp:!1}),j=g.useRef(null),I=ft(j);function We(d,H,w){const B=H-d;return((w-d)%B+B)%B+d}const Le=D(N,d=>I===0?"0px":`${We(-I,0,d)}px`),V=g.useRef(1);je((d,H)=>{let w=V.current*S*(H/1e3);P.get()<0?V.current=-1:P.get()>0&&(V.current=1),w+=V.current*w*P.get(),N.set(N.get()+w)});const _=[];for(let d=0;d<ge;d++)_.push(v.jsxs("span",{className:de,ref:d===0?j:null,children:[p," "]},d));return v.jsx("div",{className:he,style:xe,children:v.jsx(Oe.div,{className:ye,style:{x:Le,...we},children:_})})}return v.jsx("section",{children:t.map((p,S)=>v.jsx(f,{className:r,baseVelocity:S%2!==0?-s:s,scrollContainerRef:e,damping:n,stiffness:l,numCopies:o,velocityMapping:c,parallaxClassName:a,scrollerClassName:i,parallaxStyle:u,scrollerStyle:m,children:p},S))})};fe.__docgenInfo={description:"",methods:[],displayName:"ScrollVelocity",props:{texts:{defaultValue:{value:"[]",computed:!1},required:!1},velocity:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},damping:{defaultValue:{value:"50",computed:!1},required:!1},stiffness:{defaultValue:{value:"400",computed:!1},required:!1},numCopies:{defaultValue:{value:"6",computed:!1},required:!1},velocityMapping:{defaultValue:{value:"{ input: [0, 1000], output: [0, 5] }",computed:!1},required:!1},parallaxClassName:{defaultValue:{value:"styles['parallax']",computed:!0},required:!1},scrollerClassName:{defaultValue:{value:"styles['scroller']",computed:!0},required:!1}}};const Et={title:"ReactBits/TextAnimations/ScrollVelocity",component:fe,parameters:{layout:"fullscreen"}},C={args:{texts:["React Bits","Scroll Velocity"],velocity:100,damping:50,stiffness:400,numCopies:6}};var ee,te,se;C.parameters={...C.parameters,docs:{...(ee=C.parameters)==null?void 0:ee.docs,source:{originalSource:`{
2
2
  args: {
3
3
  texts: ['React Bits', 'Scroll Velocity'],
4
4
  velocity: 100,
@@ -1,4 +1,4 @@
1
- import{r as o,j as t}from"./iframe-P7asu-Li.js";import{S as ee}from"./search-Bx8bdUAl.js";import{F as te}from"./folder-BJU9ETF_.js";import{U as se}from"./users-CiXGWJu_.js";import{c as P}from"./createLucideIcon-DMu8KViE.js";import{m as $}from"./proxy-CDAVFVqI.js";import{X as ye}from"./x-T0xDfj72.js";import{A as fe}from"./index-CUas0FsV.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-78ZqsXO2.js";/**
1
+ import{r as o,j as t}from"./iframe-8g14XBDl.js";import{S as ee}from"./search-C0KAlVwX.js";import{F as te}from"./folder-jqfoKfv0.js";import{U as se}from"./users-_YmezGRA.js";import{c as P}from"./createLucideIcon-DF2dqRZF.js";import{m as $}from"./proxy-B2d_UmJi.js";import{X as ye}from"./x-Dxu8qoCJ.js";import{A as fe}from"./index-DOd88rlX.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-DnBM5OK0.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,j as n}from"./iframe-P7asu-Li.js";import{m as p}from"./proxy-CDAVFVqI.js";import{C as V}from"./chevron-down-C-5r8S3R.js";import{A as R}from"./index-CUas0FsV.js";import{S as A}from"./search-Bx8bdUAl.js";import{C as T}from"./check-BwmeyKAV.js";const q="_searchableDropdown_13fbr_1",M="_dropdownTrigger_13fbr_17",$="_open_13fbr_45",L="_dropdownValue_13fbr_52",F="_placeholder_13fbr_61",K="_dropdownArrow_13fbr_67",H="_dropdownMenu_13fbr_83",P="_dropdownSearch_13fbr_101",z="_searchInput_13fbr_111",B="_searchIcon_13fbr_136",U="_dropdownOptions_13fbr_152",W="_dropdownOption_13fbr_152",G="_selected_13fbr_221",J="_highlighted_13fbr_243",Q="_checkIcon_13fbr_256",X="_dropdownNoResults_13fbr_276",Y="_loading_13fbr_390",o={searchableDropdown:q,dropdownTrigger:M,open:$,dropdownValue:L,placeholder:F,dropdownArrow:K,dropdownMenu:H,dropdownSearch:P,searchInput:z,searchIcon:B,dropdownOptions:U,dropdownOption:W,selected:G,highlighted:J,checkIcon:Q,dropdownNoResults:X,loading:Y};function Z({label:C,value:m,onChange:k,options:w,placeholder:N="Select...",allowEmpty:j=!0,disabled:u=!1,loading:g=!1,error:D=!1}){const[t,i]=r.useState(!1),[_,d]=r.useState(""),[c,l]=r.useState(-1),h=r.useRef(null),f=r.useRef(null),b=w.find(e=>e.value===m),y=b?b.label:"",v=w.filter(e=>e.label.toLowerCase().includes(_.toLowerCase())),s=j?[{label:"(none)",value:""},...v]:v;r.useEffect(()=>{function e(a){h.current&&!h.current.contains(a.target)&&(i(!1),d(""))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),r.useEffect(()=>{t&&f.current&&f.current.focus()},[t]);const x=e=>{k(e),i(!1),d(""),l(-1)},I=e=>{if(t)switch(e.key){case"ArrowDown":e.preventDefault(),l(a=>a<s.length-1?a+1:0);break;case"ArrowUp":e.preventDefault(),l(a=>a>0?a-1:s.length-1);break;case"Enter":e.preventDefault(),c>=0&&c<s.length&&x(s[c].value);break;case"Escape":e.preventDefault(),i(!1),d(""),l(-1);break}},O=()=>{const e=[o.dropdownTrigger];return t&&e.push(o.open),g&&e.push(o.loading),D&&e.push(o.error),e.join(" ")};return n.jsxs("div",{className:o.searchableDropdown,ref:h,onKeyDown:I,children:[n.jsx("label",{children:C}),n.jsxs(p.button,{type:"button",className:O(),onClick:()=>!u&&!g&&i(!t),whileTap:{scale:u?1:.98},style:{willChange:"transform"},disabled:u,children:[n.jsx("span",{className:`${o.dropdownValue} ${y?"":o.placeholder}`,children:y||N}),n.jsx(V,{className:o.dropdownArrow})]}),n.jsx(R,{children:t&&n.jsxs(p.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2,ease:"easeOut"},children:[n.jsxs("div",{className:o.dropdownSearch,children:[n.jsx(A,{className:o.searchIcon}),n.jsx("input",{ref:f,type:"text",className:o.searchInput,placeholder:"Cerca...",value:_,onChange:e=>d(e.target.value),onClick:e=>e.stopPropagation()})]}),n.jsxs("div",{className:o.dropdownOptions,children:[s.map((e,a)=>{const S=m===e.value,E=c===a;return n.jsxs(p.button,{type:"button",className:`${o.dropdownOption} ${S?o.selected:""} ${E?o.highlighted:""}`,onClick:()=>x(e.value),onMouseEnter:()=>l(a),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:a*.02},whileTap:{scale:.98},style:{willChange:"transform"},children:[n.jsx("span",{children:e.label}),S&&n.jsx(T,{className:o.checkIcon})]},`${e.value}-${a}`)}),s.length===0&&n.jsx(p.div,{className:o.dropdownNoResults,initial:{opacity:0},animate:{opacity:1},children:"No results found"})]})]})})]})}Z.__docgenInfo={description:`SearchableDropdown component - Modern filterable dropdown with animations
1
+ import{r,j as n}from"./iframe-8g14XBDl.js";import{m as p}from"./proxy-B2d_UmJi.js";import{C as V}from"./chevron-down-BqEnhr0i.js";import{A as R}from"./index-DOd88rlX.js";import{S as A}from"./search-C0KAlVwX.js";import{C as T}from"./check-DXM5njmV.js";const q="_searchableDropdown_13fbr_1",M="_dropdownTrigger_13fbr_17",$="_open_13fbr_45",L="_dropdownValue_13fbr_52",F="_placeholder_13fbr_61",K="_dropdownArrow_13fbr_67",H="_dropdownMenu_13fbr_83",P="_dropdownSearch_13fbr_101",z="_searchInput_13fbr_111",B="_searchIcon_13fbr_136",U="_dropdownOptions_13fbr_152",W="_dropdownOption_13fbr_152",G="_selected_13fbr_221",J="_highlighted_13fbr_243",Q="_checkIcon_13fbr_256",X="_dropdownNoResults_13fbr_276",Y="_loading_13fbr_390",o={searchableDropdown:q,dropdownTrigger:M,open:$,dropdownValue:L,placeholder:F,dropdownArrow:K,dropdownMenu:H,dropdownSearch:P,searchInput:z,searchIcon:B,dropdownOptions:U,dropdownOption:W,selected:G,highlighted:J,checkIcon:Q,dropdownNoResults:X,loading:Y};function Z({label:C,value:m,onChange:k,options:w,placeholder:N="Select...",allowEmpty:j=!0,disabled:u=!1,loading:g=!1,error:D=!1}){const[t,i]=r.useState(!1),[_,d]=r.useState(""),[c,l]=r.useState(-1),h=r.useRef(null),f=r.useRef(null),b=w.find(e=>e.value===m),y=b?b.label:"",v=w.filter(e=>e.label.toLowerCase().includes(_.toLowerCase())),s=j?[{label:"(none)",value:""},...v]:v;r.useEffect(()=>{function e(a){h.current&&!h.current.contains(a.target)&&(i(!1),d(""))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),r.useEffect(()=>{t&&f.current&&f.current.focus()},[t]);const x=e=>{k(e),i(!1),d(""),l(-1)},I=e=>{if(t)switch(e.key){case"ArrowDown":e.preventDefault(),l(a=>a<s.length-1?a+1:0);break;case"ArrowUp":e.preventDefault(),l(a=>a>0?a-1:s.length-1);break;case"Enter":e.preventDefault(),c>=0&&c<s.length&&x(s[c].value);break;case"Escape":e.preventDefault(),i(!1),d(""),l(-1);break}},O=()=>{const e=[o.dropdownTrigger];return t&&e.push(o.open),g&&e.push(o.loading),D&&e.push(o.error),e.join(" ")};return n.jsxs("div",{className:o.searchableDropdown,ref:h,onKeyDown:I,children:[n.jsx("label",{children:C}),n.jsxs(p.button,{type:"button",className:O(),onClick:()=>!u&&!g&&i(!t),whileTap:{scale:u?1:.98},style:{willChange:"transform"},disabled:u,children:[n.jsx("span",{className:`${o.dropdownValue} ${y?"":o.placeholder}`,children:y||N}),n.jsx(V,{className:o.dropdownArrow})]}),n.jsx(R,{children:t&&n.jsxs(p.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2,ease:"easeOut"},children:[n.jsxs("div",{className:o.dropdownSearch,children:[n.jsx(A,{className:o.searchIcon}),n.jsx("input",{ref:f,type:"text",className:o.searchInput,placeholder:"Cerca...",value:_,onChange:e=>d(e.target.value),onClick:e=>e.stopPropagation()})]}),n.jsxs("div",{className:o.dropdownOptions,children:[s.map((e,a)=>{const S=m===e.value,E=c===a;return n.jsxs(p.button,{type:"button",className:`${o.dropdownOption} ${S?o.selected:""} ${E?o.highlighted:""}`,onClick:()=>x(e.value),onMouseEnter:()=>l(a),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:a*.02},whileTap:{scale:.98},style:{willChange:"transform"},children:[n.jsx("span",{children:e.label}),S&&n.jsx(T,{className:o.checkIcon})]},`${e.value}-${a}`)}),s.length===0&&n.jsx(p.div,{className:o.dropdownNoResults,initial:{opacity:0},animate:{opacity:1},children:"No results found"})]})]})})]})}Z.__docgenInfo={description:`SearchableDropdown component - Modern filterable dropdown with animations
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-P7asu-Li.js";import{S as a}from"./SearchableDropdown-BDcLrfmb.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-CDAVFVqI.js";import"./MotionConfigContext-78ZqsXO2.js";import"./chevron-down-C-5r8S3R.js";import"./createLucideIcon-DMu8KViE.js";import"./index-CUas0FsV.js";import"./search-Bx8bdUAl.js";import"./check-BwmeyKAV.js";const j={title:"Atoms/SearchableDropdown",component:a,parameters:{layout:"centered",docs:{description:{component:"A dropdown component with built-in search functionality and smooth animations."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},allowEmpty:{control:"boolean"},onChange:{action:"changed"}}},n=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"},{label:"Japan",value:"jp"},{label:"Australia",value:"au"},{label:"Brazil",value:"br"}],r=[{label:"React",value:"react"},{label:"Vue.js",value:"vue"},{label:"Angular",value:"angular"},{label:"Svelte",value:"svelte"},{label:"TypeScript",value:"typescript"},{label:"JavaScript",value:"javascript"},{label:"Node.js",value:"nodejs"},{label:"Python",value:"python"},{label:"Java",value:"java"},{label:"C#",value:"csharp"},{label:"Go",value:"go"},{label:"Rust",value:"rust"}],l={args:{label:"Select Country",value:"",options:n,placeholder:"Choose a country",allowEmpty:!0,onChange:()=>{}}},o={args:{label:"Technology Stack",value:"",options:r,placeholder:"Search technologies...",allowEmpty:!0,onChange:()=>{}}},t={args:{label:"With Empty Option",value:"",options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0,onChange:()=>{}},render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",width:"300px"},children:[e.jsx(a,{label:"With Empty Option",value:"",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"No Empty Option",value:"react",onChange:()=>{},options:r.slice(0,5),placeholder:"Choose...",allowEmpty:!1}),e.jsx(a,{label:"Pre-selected",value:"us",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"Long Options List",value:"",onChange:()=>{},options:r,placeholder:"Search technologies...",allowEmpty:!0})]}),parameters:{controls:{disable:!0}}};var s,p,c;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{
1
+ import{j as e}from"./iframe-8g14XBDl.js";import{S as a}from"./SearchableDropdown-CwpEKLZE.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-B2d_UmJi.js";import"./MotionConfigContext-DnBM5OK0.js";import"./chevron-down-BqEnhr0i.js";import"./createLucideIcon-DF2dqRZF.js";import"./index-DOd88rlX.js";import"./search-C0KAlVwX.js";import"./check-DXM5njmV.js";const j={title:"Atoms/SearchableDropdown",component:a,parameters:{layout:"centered",docs:{description:{component:"A dropdown component with built-in search functionality and smooth animations."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},allowEmpty:{control:"boolean"},onChange:{action:"changed"}}},n=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"},{label:"Japan",value:"jp"},{label:"Australia",value:"au"},{label:"Brazil",value:"br"}],r=[{label:"React",value:"react"},{label:"Vue.js",value:"vue"},{label:"Angular",value:"angular"},{label:"Svelte",value:"svelte"},{label:"TypeScript",value:"typescript"},{label:"JavaScript",value:"javascript"},{label:"Node.js",value:"nodejs"},{label:"Python",value:"python"},{label:"Java",value:"java"},{label:"C#",value:"csharp"},{label:"Go",value:"go"},{label:"Rust",value:"rust"}],l={args:{label:"Select Country",value:"",options:n,placeholder:"Choose a country",allowEmpty:!0,onChange:()=>{}}},o={args:{label:"Technology Stack",value:"",options:r,placeholder:"Search technologies...",allowEmpty:!0,onChange:()=>{}}},t={args:{label:"With Empty Option",value:"",options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0,onChange:()=>{}},render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",width:"300px"},children:[e.jsx(a,{label:"With Empty Option",value:"",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"No Empty Option",value:"react",onChange:()=>{},options:r.slice(0,5),placeholder:"Choose...",allowEmpty:!1}),e.jsx(a,{label:"Pre-selected",value:"us",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"Long Options List",value:"",onChange:()=>{},options:r,placeholder:"Search technologies...",allowEmpty:!0})]}),parameters:{controls:{disable:!0}}};var s,p,c;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Select Country',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{j as s}from"./iframe-P7asu-Li.js";import{u as y}from"./useSound-BoKKqA87.js";import{C as g}from"./chevron-down-C-5r8S3R.js";const I="_selectInput_qebnx_1",S="_selectWrapper_qebnx_16",j="_selectIcon_qebnx_68",q="_error_qebnx_134",C="_success_qebnx_163",V="_loading_qebnx_190",l={selectInput:I,selectWrapper:S,selectIcon:j,error:q,success:C,loading:V};function w({label:r,value:c,onChange:u,options:i,placeholder:p="Select...",disabled:d=!1,error:f=!1,success:m=!1,loading:a=!1,required:t=!1,soundConfig:v,className:n}){const{handlers:h,playSound:b}=y(v),x=()=>{const e=[l.selectInput];return f&&e.push(l.error),m&&e.push(l.success),a&&e.push(l.loading),e.join(" ")};return s.jsxs("div",{className:`${x()}${n?` ${n}`:""}`,children:[s.jsxs("label",{children:[r,t&&s.jsx("span",{style:{color:"var(--color-error)"},children:" *"})]}),s.jsxs("div",{className:l.selectWrapper,children:[s.jsxs("select",{value:c,onChange:e=>{b("click"),u(e.target.value)},disabled:d||a,required:t,...h,children:[s.jsx("option",{value:"",children:p}),i.map(e=>{const o=typeof e=="string"?e:e.value,_=typeof e=="string"?e:e.label;return s.jsx("option",{value:o,children:_},o)})]}),s.jsx(g,{className:l.selectIcon})]})]})}w.__docgenInfo={description:`SelectInput component - Styled dropdown selector with flexible option format
1
+ import{j as s}from"./iframe-8g14XBDl.js";import{u as y}from"./useSound-DDw9oPnZ.js";import{C as g}from"./chevron-down-BqEnhr0i.js";const I="_selectInput_qebnx_1",S="_selectWrapper_qebnx_16",j="_selectIcon_qebnx_68",q="_error_qebnx_134",C="_success_qebnx_163",V="_loading_qebnx_190",l={selectInput:I,selectWrapper:S,selectIcon:j,error:q,success:C,loading:V};function w({label:r,value:c,onChange:u,options:i,placeholder:p="Select...",disabled:d=!1,error:f=!1,success:m=!1,loading:a=!1,required:t=!1,soundConfig:v,className:n}){const{handlers:h,playSound:b}=y(v),x=()=>{const e=[l.selectInput];return f&&e.push(l.error),m&&e.push(l.success),a&&e.push(l.loading),e.join(" ")};return s.jsxs("div",{className:`${x()}${n?` ${n}`:""}`,children:[s.jsxs("label",{children:[r,t&&s.jsx("span",{style:{color:"var(--color-error)"},children:" *"})]}),s.jsxs("div",{className:l.selectWrapper,children:[s.jsxs("select",{value:c,onChange:e=>{b("click"),u(e.target.value)},disabled:d||a,required:t,...h,children:[s.jsx("option",{value:"",children:p}),i.map(e=>{const o=typeof e=="string"?e:e.value,_=typeof e=="string"?e:e.label;return s.jsx("option",{value:o,children:_},o)})]}),s.jsx(g,{className:l.selectIcon})]})]})}w.__docgenInfo={description:`SelectInput component - Styled dropdown selector with flexible option format
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{r as h,j as o}from"./iframe-P7asu-Li.js";import{S as t}from"./SelectInput-CKnov7hA.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-BoKKqA87.js";import"./chevron-down-C-5r8S3R.js";import"./createLucideIcon-DMu8KViE.js";const F={title:"Atoms/SelectInput",component:t,parameters:{layout:"centered",docs:{description:{component:"A simple dropdown select component with customizable options."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"}}},y=["Option 1","Option 2","Option 3","Option 4"],S=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Australia",value:"au"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"}],r={args:{label:"Select an option",value:"",onChange:()=>{},options:y,placeholder:"Choose..."}},n={args:{label:"Country",value:"uk",onChange:()=>{},options:S,placeholder:"Select a country"}},s={args:{label:"Form Example",value:"",onChange:()=>{},options:["Option 1","Option 2"]},render:()=>{const[e,l]=h.useState({title:"",category:"",priority:"",assignee:""});return o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",padding:"1.5rem",background:"var(--color-background-secondary)",borderRadius:"var(--radius-md)",minWidth:"300px"},children:[o.jsx("h3",{style:{marginTop:0},children:"Create Task"}),o.jsx(t,{label:"Title",value:e.title,onChange:a=>l({...e,title:a}),options:["Mr","Mrs","Ms","Dr","Prof"],placeholder:"Select title"}),o.jsx(t,{label:"Category",value:e.category,onChange:a=>l({...e,category:a}),options:[{label:"Bug",value:"bug"},{label:"Feature",value:"feature"},{label:"Documentation",value:"docs"},{label:"Testing",value:"test"}],placeholder:"Select category"}),o.jsx(t,{label:"Priority",value:e.priority,onChange:a=>l({...e,priority:a}),options:["Low","Medium","High","Critical"],placeholder:"Select priority"}),o.jsx(t,{label:"Assignee",value:e.assignee,onChange:a=>l({...e,assignee:a}),options:[{label:"John Doe",value:"john"},{label:"Jane Smith",value:"jane"},{label:"Bob Johnson",value:"bob"},{label:"Alice Brown",value:"alice"}],placeholder:"Select assignee"})]})},parameters:{controls:{disable:!0}}};var i,c,u;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
1
+ import{r as h,j as o}from"./iframe-8g14XBDl.js";import{S as t}from"./SelectInput-BOEJNJs8.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-DDw9oPnZ.js";import"./chevron-down-BqEnhr0i.js";import"./createLucideIcon-DF2dqRZF.js";const F={title:"Atoms/SelectInput",component:t,parameters:{layout:"centered",docs:{description:{component:"A simple dropdown select component with customizable options."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"}}},y=["Option 1","Option 2","Option 3","Option 4"],S=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Australia",value:"au"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"}],r={args:{label:"Select an option",value:"",onChange:()=>{},options:y,placeholder:"Choose..."}},n={args:{label:"Country",value:"uk",onChange:()=>{},options:S,placeholder:"Select a country"}},s={args:{label:"Form Example",value:"",onChange:()=>{},options:["Option 1","Option 2"]},render:()=>{const[e,l]=h.useState({title:"",category:"",priority:"",assignee:""});return o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",padding:"1.5rem",background:"var(--color-background-secondary)",borderRadius:"var(--radius-md)",minWidth:"300px"},children:[o.jsx("h3",{style:{marginTop:0},children:"Create Task"}),o.jsx(t,{label:"Title",value:e.title,onChange:a=>l({...e,title:a}),options:["Mr","Mrs","Ms","Dr","Prof"],placeholder:"Select title"}),o.jsx(t,{label:"Category",value:e.category,onChange:a=>l({...e,category:a}),options:[{label:"Bug",value:"bug"},{label:"Feature",value:"feature"},{label:"Documentation",value:"docs"},{label:"Testing",value:"test"}],placeholder:"Select category"}),o.jsx(t,{label:"Priority",value:e.priority,onChange:a=>l({...e,priority:a}),options:["Low","Medium","High","Critical"],placeholder:"Select priority"}),o.jsx(t,{label:"Assignee",value:e.assignee,onChange:a=>l({...e,assignee:a}),options:[{label:"John Doe",value:"john"},{label:"Jane Smith",value:"jane"},{label:"Bob Johnson",value:"bob"},{label:"Alice Brown",value:"alice"}],placeholder:"Select assignee"})]})},parameters:{controls:{disable:!0}}};var i,c,u;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Select an option',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{r as M,j}from"./iframe-P7asu-Li.js";import{d as m,S as B,a as D,W as N,q as T,i as k,M as G,r as H}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const U=`
1
+ import{r as M,j}from"./iframe-8g14XBDl.js";import{d as m,S as B,a as D,W as N,q as T,i as k,M as G,r as H}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const U=`
2
2
  varying vec2 v_texcoord;
3
3
  void main() {
4
4
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
@@ -1,4 +1,4 @@
1
- import{r as v,j as q}from"./iframe-P7asu-Li.js";import"./preload-helper-C1FmrZbK.js";const z={"shapegrid-canvas":"_shapegrid-canvas_ilyut_1"},J=({direction:P="right",speed:L=1,borderColor:k="#999",squareSize:t=40,hoverFillColor:b="#222",shape:X="square",hoverTrailAmount:y=0,className:Q=""})=>{const _=v.useRef(null),j=v.useRef(null),U=v.useRef(),Z=v.useRef(),r=v.useRef({x:0,y:0}),o=v.useRef(null),p=v.useRef([]),M=v.useRef(new Map);return v.useEffect(()=>{const s=_.current,n=s.getContext("2d"),Y=X==="hexagon",E=X==="triangle",w=t*1.5,m=t*Math.sqrt(3),V=()=>{s.width=s.offsetWidth,s.height=s.offsetHeight,U.current=Math.ceil(s.width/t)+1,Z.current=Math.ceil(s.height/t)+1};window.addEventListener("resize",V),V();const C=(l,e,c)=>{n.beginPath();for(let u=0;u<6;u++){const h=Math.PI/3*u,d=l+c*Math.cos(h),f=e+c*Math.sin(h);u===0?n.moveTo(d,f):n.lineTo(d,f)}n.closePath()},G=(l,e,c)=>{n.beginPath(),n.arc(l,e,c/2,0,Math.PI*2),n.closePath()},O=(l,e,c,u)=>{n.beginPath(),u?(n.moveTo(l,e+c/2),n.lineTo(l+c/2,e-c/2),n.lineTo(l-c/2,e-c/2)):(n.moveTo(l,e-c/2),n.lineTo(l+c/2,e+c/2),n.lineTo(l-c/2,e+c/2)),n.closePath()},A=()=>{if(n.clearRect(0,0,s.width,s.height),Y){const e=Math.floor(r.current.x/w),c=(r.current.x%w+w)%w,u=(r.current.y%m+m)%m,h=Math.ceil(s.width/w)+3,d=Math.ceil(s.height/m)+3;for(let f=-2;f<h;f++)for(let g=-2;g<d;g++){const i=f*w+c,a=g*m+((f+e)%2!==0?m/2:0)+u,x=`${f},${g}`,R=M.current.get(x);R&&(n.globalAlpha=R,C(i,a,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),C(i,a,t),n.strokeStyle=k,n.stroke()}}else if(E){const e=t/2,c=Math.floor(r.current.x/e),u=Math.floor(r.current.y/t),h=(r.current.x%e+e)%e,d=(r.current.y%t+t)%t,f=Math.ceil(s.width/e)+4,g=Math.ceil(s.height/t)+4;for(let i=-2;i<f;i++)for(let a=-2;a<g;a++){const x=i*e+h,R=a*t+t/2+d,I=((i+c+a+u)%2+2)%2!==0,S=`${i},${a}`,N=M.current.get(S);N&&(n.globalAlpha=N,O(x,R,t,I),n.fillStyle=b,n.fill(),n.globalAlpha=1),O(x,R,t,I),n.strokeStyle=k,n.stroke()}}else if(X==="circle"){const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+t/2+e,i=f*t+t/2+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,G(g,i,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),G(g,i,t),n.strokeStyle=k,n.stroke()}}else{const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+e,i=f*t+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,n.fillStyle=b,n.fillRect(g,i,t,t),n.globalAlpha=1),n.strokeStyle=k,n.strokeRect(g,i,t,t)}}const l=n.createRadialGradient(s.width/2,s.height/2,0,s.width/2,s.height/2,Math.sqrt(s.width**2+s.height**2)/2);l.addColorStop(0,"rgba(0, 0, 0, 0)"),n.fillStyle=l,n.fillRect(0,0,s.width,s.height)},H=()=>{const l=Math.max(L,.1),e=Y?w*2:t,c=Y?m:E?t*2:t;switch(P){case"right":r.current.x=(r.current.x-l+e)%e;break;case"left":r.current.x=(r.current.x+l+e)%e;break;case"up":r.current.y=(r.current.y+l+c)%c;break;case"down":r.current.y=(r.current.y-l+c)%c;break;case"diagonal":r.current.x=(r.current.x-l+e)%e,r.current.y=(r.current.y-l+c)%c;break}T(),A(),j.current=requestAnimationFrame(H)},T=()=>{const l=new Map;if(o.current&&l.set(`${o.current.x},${o.current.y}`,1),y>0)for(let e=0;e<p.current.length;e++){const c=p.current[e],u=`${c.x},${c.y}`;l.has(u)||l.set(u,(p.current.length-e)/(p.current.length+1))}for(const[e]of l)M.current.has(e)||M.current.set(e,0);for(const[e,c]of M.current){const u=l.get(e)||0,h=c+(u-c)*.15;h<.005?M.current.delete(e):M.current.set(e,h)}},K=l=>{const e=s.getBoundingClientRect(),c=l.clientX-e.left,u=l.clientY-e.top;if(Y){const h=Math.floor(r.current.x/w),d=(r.current.x%w+w)%w,f=(r.current.y%m+m)%m,g=c-d,i=u-f,a=Math.round(g/w),x=(a+h)%2!==0?m/2:0,R=Math.round((i-x)/m);(!o.current||o.current.x!==a||o.current.y!==R)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:R})}else if(E){const h=t/2,d=(r.current.x%h+h)%h,f=(r.current.y%t+t)%t,g=c-d,i=u-f,a=Math.round(g/h),x=Math.floor(i/t);(!o.current||o.current.x!==a||o.current.y!==x)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:x})}else if(X==="circle"){const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.round(f/t),a=Math.round(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}else{const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.floor(f/t),a=Math.floor(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}},B=()=>{o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current=null};return s.addEventListener("mousemove",K),s.addEventListener("mouseleave",B),j.current=requestAnimationFrame(H),()=>{window.removeEventListener("resize",V),cancelAnimationFrame(j.current),s.removeEventListener("mousemove",K),s.removeEventListener("mouseleave",B)}},[P,L,k,b,t,X,y]),q.jsx("canvas",{ref:_,className:`${z["shapegrid-canvas"]} ${Q}`})};J.__docgenInfo={description:"",methods:[],displayName:"ShapeGrid",props:{direction:{defaultValue:{value:"'right'",computed:!1},required:!1},speed:{defaultValue:{value:"1",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#999'",computed:!1},required:!1},squareSize:{defaultValue:{value:"40",computed:!1},required:!1},hoverFillColor:{defaultValue:{value:"'#222'",computed:!1},required:!1},shape:{defaultValue:{value:"'square'",computed:!1},required:!1},hoverTrailAmount:{defaultValue:{value:"0",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const nt={title:"ReactBits/Backgrounds/ShapeGrid",component:J,parameters:{layout:"fullscreen"}},$={args:{direction:"right",speed:1,borderColor:"#999",squareSize:40,hoverFillColor:"#222",shape:"square",hoverTrailAmount:0}};var W,D,F;$.parameters={...$.parameters,docs:{...(W=$.parameters)==null?void 0:W.docs,source:{originalSource:`{
1
+ import{r as v,j as q}from"./iframe-8g14XBDl.js";import"./preload-helper-C1FmrZbK.js";const z={"shapegrid-canvas":"_shapegrid-canvas_ilyut_1"},J=({direction:P="right",speed:L=1,borderColor:k="#999",squareSize:t=40,hoverFillColor:b="#222",shape:X="square",hoverTrailAmount:y=0,className:Q=""})=>{const _=v.useRef(null),j=v.useRef(null),U=v.useRef(),Z=v.useRef(),r=v.useRef({x:0,y:0}),o=v.useRef(null),p=v.useRef([]),M=v.useRef(new Map);return v.useEffect(()=>{const s=_.current,n=s.getContext("2d"),Y=X==="hexagon",E=X==="triangle",w=t*1.5,m=t*Math.sqrt(3),V=()=>{s.width=s.offsetWidth,s.height=s.offsetHeight,U.current=Math.ceil(s.width/t)+1,Z.current=Math.ceil(s.height/t)+1};window.addEventListener("resize",V),V();const C=(l,e,c)=>{n.beginPath();for(let u=0;u<6;u++){const h=Math.PI/3*u,d=l+c*Math.cos(h),f=e+c*Math.sin(h);u===0?n.moveTo(d,f):n.lineTo(d,f)}n.closePath()},G=(l,e,c)=>{n.beginPath(),n.arc(l,e,c/2,0,Math.PI*2),n.closePath()},O=(l,e,c,u)=>{n.beginPath(),u?(n.moveTo(l,e+c/2),n.lineTo(l+c/2,e-c/2),n.lineTo(l-c/2,e-c/2)):(n.moveTo(l,e-c/2),n.lineTo(l+c/2,e+c/2),n.lineTo(l-c/2,e+c/2)),n.closePath()},A=()=>{if(n.clearRect(0,0,s.width,s.height),Y){const e=Math.floor(r.current.x/w),c=(r.current.x%w+w)%w,u=(r.current.y%m+m)%m,h=Math.ceil(s.width/w)+3,d=Math.ceil(s.height/m)+3;for(let f=-2;f<h;f++)for(let g=-2;g<d;g++){const i=f*w+c,a=g*m+((f+e)%2!==0?m/2:0)+u,x=`${f},${g}`,R=M.current.get(x);R&&(n.globalAlpha=R,C(i,a,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),C(i,a,t),n.strokeStyle=k,n.stroke()}}else if(E){const e=t/2,c=Math.floor(r.current.x/e),u=Math.floor(r.current.y/t),h=(r.current.x%e+e)%e,d=(r.current.y%t+t)%t,f=Math.ceil(s.width/e)+4,g=Math.ceil(s.height/t)+4;for(let i=-2;i<f;i++)for(let a=-2;a<g;a++){const x=i*e+h,R=a*t+t/2+d,I=((i+c+a+u)%2+2)%2!==0,S=`${i},${a}`,N=M.current.get(S);N&&(n.globalAlpha=N,O(x,R,t,I),n.fillStyle=b,n.fill(),n.globalAlpha=1),O(x,R,t,I),n.strokeStyle=k,n.stroke()}}else if(X==="circle"){const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+t/2+e,i=f*t+t/2+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,G(g,i,t),n.fillStyle=b,n.fill(),n.globalAlpha=1),G(g,i,t),n.strokeStyle=k,n.stroke()}}else{const e=(r.current.x%t+t)%t,c=(r.current.y%t+t)%t,u=Math.ceil(s.width/t)+3,h=Math.ceil(s.height/t)+3;for(let d=-2;d<u;d++)for(let f=-2;f<h;f++){const g=d*t+e,i=f*t+c,a=`${d},${f}`,x=M.current.get(a);x&&(n.globalAlpha=x,n.fillStyle=b,n.fillRect(g,i,t,t),n.globalAlpha=1),n.strokeStyle=k,n.strokeRect(g,i,t,t)}}const l=n.createRadialGradient(s.width/2,s.height/2,0,s.width/2,s.height/2,Math.sqrt(s.width**2+s.height**2)/2);l.addColorStop(0,"rgba(0, 0, 0, 0)"),n.fillStyle=l,n.fillRect(0,0,s.width,s.height)},H=()=>{const l=Math.max(L,.1),e=Y?w*2:t,c=Y?m:E?t*2:t;switch(P){case"right":r.current.x=(r.current.x-l+e)%e;break;case"left":r.current.x=(r.current.x+l+e)%e;break;case"up":r.current.y=(r.current.y+l+c)%c;break;case"down":r.current.y=(r.current.y-l+c)%c;break;case"diagonal":r.current.x=(r.current.x-l+e)%e,r.current.y=(r.current.y-l+c)%c;break}T(),A(),j.current=requestAnimationFrame(H)},T=()=>{const l=new Map;if(o.current&&l.set(`${o.current.x},${o.current.y}`,1),y>0)for(let e=0;e<p.current.length;e++){const c=p.current[e],u=`${c.x},${c.y}`;l.has(u)||l.set(u,(p.current.length-e)/(p.current.length+1))}for(const[e]of l)M.current.has(e)||M.current.set(e,0);for(const[e,c]of M.current){const u=l.get(e)||0,h=c+(u-c)*.15;h<.005?M.current.delete(e):M.current.set(e,h)}},K=l=>{const e=s.getBoundingClientRect(),c=l.clientX-e.left,u=l.clientY-e.top;if(Y){const h=Math.floor(r.current.x/w),d=(r.current.x%w+w)%w,f=(r.current.y%m+m)%m,g=c-d,i=u-f,a=Math.round(g/w),x=(a+h)%2!==0?m/2:0,R=Math.round((i-x)/m);(!o.current||o.current.x!==a||o.current.y!==R)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:R})}else if(E){const h=t/2,d=(r.current.x%h+h)%h,f=(r.current.y%t+t)%t,g=c-d,i=u-f,a=Math.round(g/h),x=Math.floor(i/t);(!o.current||o.current.x!==a||o.current.y!==x)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:a,y:x})}else if(X==="circle"){const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.round(f/t),a=Math.round(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}else{const h=(r.current.x%t+t)%t,d=(r.current.y%t+t)%t,f=c-h,g=u-d,i=Math.floor(f/t),a=Math.floor(g/t);(!o.current||o.current.x!==i||o.current.y!==a)&&(o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current={x:i,y:a})}},B=()=>{o.current&&y>0&&(p.current.unshift({...o.current}),p.current.length>y&&(p.current.length=y)),o.current=null};return s.addEventListener("mousemove",K),s.addEventListener("mouseleave",B),j.current=requestAnimationFrame(H),()=>{window.removeEventListener("resize",V),cancelAnimationFrame(j.current),s.removeEventListener("mousemove",K),s.removeEventListener("mouseleave",B)}},[P,L,k,b,t,X,y]),q.jsx("canvas",{ref:_,className:`${z["shapegrid-canvas"]} ${Q}`})};J.__docgenInfo={description:"",methods:[],displayName:"ShapeGrid",props:{direction:{defaultValue:{value:"'right'",computed:!1},required:!1},speed:{defaultValue:{value:"1",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#999'",computed:!1},required:!1},squareSize:{defaultValue:{value:"40",computed:!1},required:!1},hoverFillColor:{defaultValue:{value:"'#222'",computed:!1},required:!1},shape:{defaultValue:{value:"'square'",computed:!1},required:!1},hoverTrailAmount:{defaultValue:{value:"0",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const nt={title:"ReactBits/Backgrounds/ShapeGrid",component:J,parameters:{layout:"fullscreen"}},$={args:{direction:"right",speed:1,borderColor:"#999",squareSize:40,hoverFillColor:"#222",shape:"square",hoverTrailAmount:0}};var W,D,F;$.parameters={...$.parameters,docs:{...(W=$.parameters)==null?void 0:W.docs,source:{originalSource:`{
2
2
  args: {
3
3
  direction: 'right',
4
4
  speed: 1,
@@ -1,4 +1,4 @@
1
- import{r,j as N}from"./iframe-P7asu-Li.js";import{u as P}from"./use-motion-value-DmfqbQXL.js";import{u as z}from"./use-animation-frame-DmI_PhRU.js";import{u as A}from"./use-transform-D9Pnt9FQ.js";import{m as B}from"./proxy-CDAVFVqI.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-78ZqsXO2.js";const F={"shiny-text":"_shiny-text_183zx_1"},T=({text:V,disabled:q=!1,speed:k=2,className:C="",color:u="#b5b5b5",shineColor:$="#ffffff",spread:R=120,yoyo:S=!1,pauseOnHover:f=!1,direction:m="left",delay:_=0})=>{const[D,y]=r.useState(!1),e=P(0),c=r.useRef(0),n=r.useRef(null),a=r.useRef(m==="left"?1:-1),t=k*1e3,b=_*1e3;z(o=>{if(q||D){n.current=null;return}if(n.current===null){n.current=o;return}const I=o-n.current;if(n.current=o,c.current+=I,S){const l=t+b,i=l*2,s=c.current%i;if(s<t){const p=s/t*100;e.set(a.current===1?p:100-p)}else if(s<l)e.set(a.current===1?100:0);else if(s<l+t){const x=100-(s-l)/t*100;e.set(a.current===1?x:100-x)}else e.set(a.current===1?0:100)}else{const l=t+b,i=c.current%l;if(i<t){const s=i/t*100;e.set(a.current===1?s:100-s)}else e.set(a.current===1?100:0)}}),r.useEffect(()=>{a.current=m==="left"?1:-1,c.current=0,e.set(0)},[m]);const E=A(e,o=>`${150-o*2}% center`),M=r.useCallback(()=>{f&&y(!0)},[f]),W=r.useCallback(()=>{f&&y(!1)},[f]),j={backgroundImage:`linear-gradient(${R}deg, ${u} 0%, ${u} 35%, ${$} 50%, ${u} 65%, ${u} 100%)`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"};return N.jsx(B.span,{className:`${F["shiny-text"]} ${C}`,style:{...j,backgroundPosition:E},onMouseEnter:M,onMouseLeave:W,children:V})};T.__docgenInfo={description:"",methods:[],displayName:"ShinyText",props:{disabled:{defaultValue:{value:"false",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'#b5b5b5'",computed:!1},required:!1},shineColor:{defaultValue:{value:"'#ffffff'",computed:!1},required:!1},spread:{defaultValue:{value:"120",computed:!1},required:!1},yoyo:{defaultValue:{value:"false",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/ShinyText",component:T,parameters:{layout:"fullscreen"}},d={args:{text:"Hello World",disabled:!1,speed:2,color:"#b5b5b5",shineColor:"#ffffff",spread:120,yoyo:!1,pauseOnHover:!1,direction:"left",delay:0}};var g,v,h;d.parameters={...d.parameters,docs:{...(g=d.parameters)==null?void 0:g.docs,source:{originalSource:`{
1
+ import{r,j as N}from"./iframe-8g14XBDl.js";import{u as P}from"./use-motion-value-BWJfnGID.js";import{u as z}from"./use-animation-frame-698WQrz7.js";import{u as A}from"./use-transform-px_rlL4B.js";import{m as B}from"./proxy-B2d_UmJi.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-DnBM5OK0.js";const F={"shiny-text":"_shiny-text_183zx_1"},T=({text:V,disabled:q=!1,speed:k=2,className:C="",color:u="#b5b5b5",shineColor:$="#ffffff",spread:R=120,yoyo:S=!1,pauseOnHover:f=!1,direction:m="left",delay:_=0})=>{const[D,y]=r.useState(!1),e=P(0),c=r.useRef(0),n=r.useRef(null),a=r.useRef(m==="left"?1:-1),t=k*1e3,b=_*1e3;z(o=>{if(q||D){n.current=null;return}if(n.current===null){n.current=o;return}const I=o-n.current;if(n.current=o,c.current+=I,S){const l=t+b,i=l*2,s=c.current%i;if(s<t){const p=s/t*100;e.set(a.current===1?p:100-p)}else if(s<l)e.set(a.current===1?100:0);else if(s<l+t){const x=100-(s-l)/t*100;e.set(a.current===1?x:100-x)}else e.set(a.current===1?0:100)}else{const l=t+b,i=c.current%l;if(i<t){const s=i/t*100;e.set(a.current===1?s:100-s)}else e.set(a.current===1?100:0)}}),r.useEffect(()=>{a.current=m==="left"?1:-1,c.current=0,e.set(0)},[m]);const E=A(e,o=>`${150-o*2}% center`),M=r.useCallback(()=>{f&&y(!0)},[f]),W=r.useCallback(()=>{f&&y(!1)},[f]),j={backgroundImage:`linear-gradient(${R}deg, ${u} 0%, ${u} 35%, ${$} 50%, ${u} 65%, ${u} 100%)`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"};return N.jsx(B.span,{className:`${F["shiny-text"]} ${C}`,style:{...j,backgroundPosition:E},onMouseEnter:M,onMouseLeave:W,children:V})};T.__docgenInfo={description:"",methods:[],displayName:"ShinyText",props:{disabled:{defaultValue:{value:"false",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},color:{defaultValue:{value:"'#b5b5b5'",computed:!1},required:!1},shineColor:{defaultValue:{value:"'#ffffff'",computed:!1},required:!1},spread:{defaultValue:{value:"120",computed:!1},required:!1},yoyo:{defaultValue:{value:"false",computed:!1},required:!1},pauseOnHover:{defaultValue:{value:"false",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/ShinyText",component:T,parameters:{layout:"fullscreen"}},d={args:{text:"Hello World",disabled:!1,speed:2,color:"#b5b5b5",shineColor:"#ffffff",spread:120,yoyo:!1,pauseOnHover:!1,direction:"left",delay:0}};var g,v,h;d.parameters={...d.parameters,docs:{...(g=d.parameters)==null?void 0:g.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: 'Hello World',
4
4
  disabled: false,
@@ -1,4 +1,4 @@
1
- import{r as n,j as a}from"./iframe-P7asu-Li.js";import{C as p,u as x,a as y}from"./react-three-fiber.esm-DNr3n575.js";import{n as g}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const S=e=>(e=e.replace("#",""),[parseInt(e.slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255]),C=`
1
+ import{r as n,j as a}from"./iframe-8g14XBDl.js";import{C as p,u as x,a as y}from"./react-three-fiber.esm-B8N96BIS.js";import{n as g}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const S=e=>(e=e.replace("#",""),[parseInt(e.slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255]),C=`
2
2
  varying vec2 vUv;
3
3
  varying vec3 vPosition;
4
4
 
@@ -1,4 +1,4 @@
1
- import{r as _,j as r}from"./iframe-P7asu-Li.js";import{s as w,e as nt}from"./transform-QOf3tDlt.js";import{l as st}from"./linear-DhrdWH9x.js";import{b as lt,r as L}from"./band-BYy0bT_S.js";import{a as it,b as dt}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";var T=1.70158;(function o(t){t=+t;function l(a){return(a=+a)*a*(t*(a-1)+a)}return l.overshoot=o,l})(T);var V=function o(t){t=+t;function l(a){return--a*a*((a+1)*t+a)+1}return l.overshoot=o,l}(T);(function o(t){t=+t;function l(a){return((a*=2)<1?a*a*((t+1)*a-t):(a-=2)*a*((t+1)*a+t)+2)/2}return l.overshoot=o,l})(T);const ct="_container_wk2zd_1",pt="_header_wk2zd_7",ht="_title_wk2zd_14",mt="_legend_wk2zd_20",ut="_legendItem_wk2zd_25",ft="_sleepDot_wk2zd_33",gt="_wakeDot_wk2zd_42",Mt="_chart_wk2zd_51",_t="_gridLine_wk2zd_55",wt="_sleepBar_wk2zd_60",xt="_xAxis_wk2zd_70",kt="_yAxis_wk2zd_71",St="_tooltip_wk2zd_96",yt="_visible_wk2zd_117",bt="_tooltipHeader_wk2zd_122",$t="_tooltipEmoji_wk2zd_133",vt="_tooltipInfo_wk2zd_138",Dt="_tooltipRow_wk2zd_144",jt="_tooltipLabel_wk2zd_152",At="_tooltipValue_wk2zd_158",zt="_tooltipDuration_wk2zd_163",s={container:ct,header:pt,title:ht,legend:mt,legendItem:ut,sleepDot:ft,wakeDot:gt,chart:Mt,gridLine:_t,sleepBar:wt,xAxis:xt,yAxis:kt,tooltip:St,visible:yt,tooltipHeader:bt,tooltipEmoji:$t,tooltipInfo:vt,tooltipRow:Dt,tooltipLabel:jt,tooltipValue:At,tooltipDuration:zt},O=o=>{const[t,l]=o.split(":").map(Number);return t+l/60},W=o=>{const t=Math.floor(o%24),l=t===0?12:t>12?t-12:t,a=t>=12?"PM":"AM",c=Math.round(o%1*60);return`${Math.floor(l)}:${c.toString().padStart(2,"0")} ${a}`},rt=({sleepData:o,width:t=800,height:l=400,onDateClick:a})=>{const c=_.useRef(null),[p,M]=_.useState(null),u=_.useMemo(()=>({top:30,right:30,bottom:50,left:80}),[]),I=t-u.left-u.right,x=l-u.top-u.bottom;return _.useEffect(()=>{const f=()=>{M(null)};return window.addEventListener("scroll",f,!0),()=>{window.removeEventListener("scroll",f,!0)}},[]),_.useEffect(()=>{if(!c.current||o.length===0)return;const f=w(c.current);f.selectAll("*").remove(),f.append("rect").attr("width",t).attr("height",l).attr("fill","transparent").style("pointer-events","all").on("mouseleave",()=>{M(null)});const k=f.append("g").attr("transform",`translate(${u.left},${u.top})`),h=st().domain([18,42]).range([0,I]),A=o.map(e=>e.date),z=lt().domain(A).range([0,x]).paddingInner(.2).paddingOuter(.1);k.selectAll(".grid-line-x").data(L(18,43,1)).enter().append("line").attr("class",s.gridLine).attr("x1",e=>h(e)).attr("y1",0).attr("x2",e=>h(e)).attr("y2",x).style("stroke",e=>{const n=e%24;return"var(--color-border)"}).style("stroke-opacity",e=>{const n=e%24;return n===0||n===12?.3:n%3===0?.15:.05}).style("stroke-width",e=>{const n=e%24;return n===0||n===12?2:1}),o.forEach(e=>{const n=z(e.date);if(n===void 0)return;const g=z.bandwidth(),S=k.append("g").attr("class",s.sleepBar).style("cursor","pointer").on("click",()=>a==null?void 0:a(e.date));let i=null,d=null;e.sleep_time&&(i=O(e.sleep_time),i<18&&(i+=24)),e.wake_hour&&(d=O(e.wake_hour),i!==null?(d<i||i>=18&&d<18)&&(d+=24):d<12&&(d+=24)),i!==null&&d!==null&&S.append("rect").attr("x",h(i)).attr("y",n).attr("width",0).attr("height",g).attr("rx",g/2).attr("fill","url(#sleepGradient)").attr("opacity",0).attr("stroke","rgba(255,255,255,0.3)").attr("stroke-width",1).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))").transition().duration(800).delay(Math.random()*200).ease(nt).attr("width",Math.max(0,h(d)-h(i))).attr("opacity",.85),i!==null&&S.append("circle").attr("cx",h(i)).attr("cy",n+g/2).attr("r",0).attr("fill","#9B59B6").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(155, 89, 182, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(300+Math.random()*100).ease(V).attr("r",6),d!==null&&S.append("circle").attr("cx",h(d)).attr("cy",n+g/2).attr("r",0).attr("fill","#3498DB").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(52, 152, 219, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(500+Math.random()*100).ease(V).attr("r",6),S.on("mouseenter",function(m){var R;if(w(this).select("rect").transition().duration(200).attr("opacity",1).style("filter","drop-shadow(0 4px 12px rgba(155, 89, 182, 0.5)) brightness(1.1)"),w(this).selectAll("circle").transition().duration(200).attr("r",8),(R=c.current)==null?void 0:R.getBoundingClientRect()){const B=i!==null&&d!==null?d-i:null;M({date:e.date,sleepTime:i!==null?W(i):null,wakeTime:d!==null?W(d):null,duration:B!==null?Math.round(B*100)/100:null,x:m.pageX,y:m.pageY-80})}}).on("mouseleave",function(){w(this).select("rect").transition().duration(200).attr("opacity",.85).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))"),w(this).selectAll("circle").transition().duration(200).attr("r",6),M(null)}).on("mousemove",function(m){M(H=>H?{...H,x:m.pageX,y:m.pageY-80}:null)})});const N=f.append("defs").append("linearGradient").attr("id","sleepGradient").attr("x1","0%").attr("x2","100%");N.append("stop").attr("offset","0%").attr("stop-color","#9B59B6").attr("stop-opacity",1),N.append("stop").attr("offset","50%").attr("stop-color","#7B68A6").attr("stop-opacity",1),N.append("stop").attr("offset","100%").attr("stop-color","#3498DB").attr("stop-opacity",1);const E=L(18,43,3).map(e=>({value:e,label:e===24?"12 AM":e===36?"12 PM":e%24===0?"12 AM":e%24<12?`${e%24} AM`:e%24===12?"12 PM":`${e%24-12} PM`}));k.append("g").attr("class",s.xAxis).attr("transform",`translate(0,${x})`).call(it(h).tickValues(E.map(e=>e.value)).tickFormat(e=>{const n=E.find(g=>g.value===e);return n?n.label:""}).tickSizeOuter(0)).selectAll("text").style("font-weight",e=>{const n=e%24;return n===0||n===12?"600":"400"});const ot=A.filter((e,n)=>n%Math.ceil(A.length/10)===0);k.append("g").attr("class",s.yAxis).call(dt(z).tickValues(ot).tickFormat(e=>{const n=new Date(e);return`${(n.getMonth()+1).toString().padStart(2,"0")}/${n.getDate().toString().padStart(2,"0")}`}))},[o,I,x,u,a,l,t]),r.jsxs("div",{className:s.container,children:[r.jsxs("div",{className:s.header,children:[r.jsx("h3",{className:s.title,children:"Sleep Pattern"}),r.jsxs("div",{className:s.legend,children:[r.jsxs("div",{className:s.legendItem,children:[r.jsx("span",{className:s.sleepDot}),r.jsx("span",{children:"Sleep Time"})]}),r.jsxs("div",{className:s.legendItem,children:[r.jsx("span",{className:s.wakeDot}),r.jsx("span",{children:"Wake Time"})]})]})]}),r.jsx("svg",{ref:c,width:t,height:l,className:s.chart}),p&&r.jsxs("div",{className:`${s.tooltip} ${p?s.visible:""}`,style:{left:`${p.x}px`,top:`${p.y}px`},children:[r.jsxs("div",{className:s.tooltipHeader,children:[r.jsx("span",{className:s.tooltipEmoji,children:"😴"}),r.jsx("span",{children:new Date(p.date).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})})]}),r.jsxs("div",{className:s.tooltipInfo,children:[p.sleepTime&&r.jsxs("div",{className:s.tooltipRow,children:[r.jsxs("span",{className:s.tooltipLabel,children:[r.jsx("span",{children:"🌙"}),r.jsx("span",{children:"Sleep:"})]}),r.jsx("span",{className:s.tooltipValue,children:p.sleepTime})]}),p.wakeTime&&r.jsxs("div",{className:s.tooltipRow,children:[r.jsxs("span",{className:s.tooltipLabel,children:[r.jsx("span",{children:"☀️"}),r.jsx("span",{children:"Wake:"})]}),r.jsx("span",{className:s.tooltipValue,children:p.wakeTime})]}),p.duration!==null&&r.jsxs("div",{className:s.tooltipDuration,children:[r.jsx("span",{children:"⏱️"}),r.jsxs("span",{children:[Math.floor(p.duration),"h ",Math.round(p.duration%1*60),"m"]})]})]})]})]})};rt.__docgenInfo={description:"",methods:[],displayName:"SleepChart",props:{sleepData:{required:!0,tsType:{name:"Array",elements:[{name:"SleepData"}],raw:"SleepData[]"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"800",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"400",computed:!1}},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""}}};const Vt={title:"Organisms/Charts/SleepChart",component:rt,parameters:{layout:"centered"},argTypes:{width:{control:{type:"number",min:400,max:1200,step:50}},height:{control:{type:"number",min:200,max:600,step:50}},onDateClick:{action:"dateClicked"}}},j=o=>{const t=[],l=new Date;for(let a=o-1;a>=0;a--){const c=new Date(l);c.setDate(c.getDate()-a),t.push(c.toISOString().split("T")[0])}return t},y={args:{sleepData:j(7).map(o=>{const t=Math.floor(Math.random()*3)+22,l=Math.floor(Math.random()*3)+6;return{date:o,sleep_time:`${t%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${l}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:800,height:400}},b={args:{sleepData:j(30).map(o=>({date:o,sleep_time:`${(Math.floor(Math.random()*3)+22)%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${Math.floor(Math.random()*2)+7}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`})),width:900,height:400}},$={args:{sleepData:j(14).map((o,t)=>{const l=t%7===5||t%7===6,a=l?Math.floor(Math.random()*4)+24:Math.floor(Math.random()*2)+22,c=l?Math.floor(Math.random()*3)+9:Math.floor(Math.random()*2)+6;return{date:o,sleep_time:`${a%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${c}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:850,height:400}},v={args:{sleepData:j(14).map((o,t)=>({date:o,sleep_time:t%3===0?null:`${(Math.floor(Math.random()*3)+22)%24}:30`,wake_hour:t%3===0?null:`${Math.floor(Math.random()*2)+7}:00`})),width:800,height:400}},D={args:{sleepData:[],width:800,height:400}};var P,q,G;y.parameters={...y.parameters,docs:{...(P=y.parameters)==null?void 0:P.docs,source:{originalSource:`{
1
+ import{r as _,j as r}from"./iframe-8g14XBDl.js";import{s as w,e as nt}from"./transform-QOf3tDlt.js";import{l as st}from"./linear-DhrdWH9x.js";import{b as lt,r as L}from"./band-BYy0bT_S.js";import{a as it,b as dt}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";var T=1.70158;(function o(t){t=+t;function l(a){return(a=+a)*a*(t*(a-1)+a)}return l.overshoot=o,l})(T);var V=function o(t){t=+t;function l(a){return--a*a*((a+1)*t+a)+1}return l.overshoot=o,l}(T);(function o(t){t=+t;function l(a){return((a*=2)<1?a*a*((t+1)*a-t):(a-=2)*a*((t+1)*a+t)+2)/2}return l.overshoot=o,l})(T);const ct="_container_wk2zd_1",pt="_header_wk2zd_7",ht="_title_wk2zd_14",mt="_legend_wk2zd_20",ut="_legendItem_wk2zd_25",ft="_sleepDot_wk2zd_33",gt="_wakeDot_wk2zd_42",Mt="_chart_wk2zd_51",_t="_gridLine_wk2zd_55",wt="_sleepBar_wk2zd_60",xt="_xAxis_wk2zd_70",kt="_yAxis_wk2zd_71",St="_tooltip_wk2zd_96",yt="_visible_wk2zd_117",bt="_tooltipHeader_wk2zd_122",$t="_tooltipEmoji_wk2zd_133",vt="_tooltipInfo_wk2zd_138",Dt="_tooltipRow_wk2zd_144",jt="_tooltipLabel_wk2zd_152",At="_tooltipValue_wk2zd_158",zt="_tooltipDuration_wk2zd_163",s={container:ct,header:pt,title:ht,legend:mt,legendItem:ut,sleepDot:ft,wakeDot:gt,chart:Mt,gridLine:_t,sleepBar:wt,xAxis:xt,yAxis:kt,tooltip:St,visible:yt,tooltipHeader:bt,tooltipEmoji:$t,tooltipInfo:vt,tooltipRow:Dt,tooltipLabel:jt,tooltipValue:At,tooltipDuration:zt},O=o=>{const[t,l]=o.split(":").map(Number);return t+l/60},W=o=>{const t=Math.floor(o%24),l=t===0?12:t>12?t-12:t,a=t>=12?"PM":"AM",c=Math.round(o%1*60);return`${Math.floor(l)}:${c.toString().padStart(2,"0")} ${a}`},rt=({sleepData:o,width:t=800,height:l=400,onDateClick:a})=>{const c=_.useRef(null),[p,M]=_.useState(null),u=_.useMemo(()=>({top:30,right:30,bottom:50,left:80}),[]),I=t-u.left-u.right,x=l-u.top-u.bottom;return _.useEffect(()=>{const f=()=>{M(null)};return window.addEventListener("scroll",f,!0),()=>{window.removeEventListener("scroll",f,!0)}},[]),_.useEffect(()=>{if(!c.current||o.length===0)return;const f=w(c.current);f.selectAll("*").remove(),f.append("rect").attr("width",t).attr("height",l).attr("fill","transparent").style("pointer-events","all").on("mouseleave",()=>{M(null)});const k=f.append("g").attr("transform",`translate(${u.left},${u.top})`),h=st().domain([18,42]).range([0,I]),A=o.map(e=>e.date),z=lt().domain(A).range([0,x]).paddingInner(.2).paddingOuter(.1);k.selectAll(".grid-line-x").data(L(18,43,1)).enter().append("line").attr("class",s.gridLine).attr("x1",e=>h(e)).attr("y1",0).attr("x2",e=>h(e)).attr("y2",x).style("stroke",e=>{const n=e%24;return"var(--color-border)"}).style("stroke-opacity",e=>{const n=e%24;return n===0||n===12?.3:n%3===0?.15:.05}).style("stroke-width",e=>{const n=e%24;return n===0||n===12?2:1}),o.forEach(e=>{const n=z(e.date);if(n===void 0)return;const g=z.bandwidth(),S=k.append("g").attr("class",s.sleepBar).style("cursor","pointer").on("click",()=>a==null?void 0:a(e.date));let i=null,d=null;e.sleep_time&&(i=O(e.sleep_time),i<18&&(i+=24)),e.wake_hour&&(d=O(e.wake_hour),i!==null?(d<i||i>=18&&d<18)&&(d+=24):d<12&&(d+=24)),i!==null&&d!==null&&S.append("rect").attr("x",h(i)).attr("y",n).attr("width",0).attr("height",g).attr("rx",g/2).attr("fill","url(#sleepGradient)").attr("opacity",0).attr("stroke","rgba(255,255,255,0.3)").attr("stroke-width",1).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))").transition().duration(800).delay(Math.random()*200).ease(nt).attr("width",Math.max(0,h(d)-h(i))).attr("opacity",.85),i!==null&&S.append("circle").attr("cx",h(i)).attr("cy",n+g/2).attr("r",0).attr("fill","#9B59B6").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(155, 89, 182, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(300+Math.random()*100).ease(V).attr("r",6),d!==null&&S.append("circle").attr("cx",h(d)).attr("cy",n+g/2).attr("r",0).attr("fill","#3498DB").attr("stroke","#ffffff").attr("stroke-width",2).style("filter","drop-shadow(0 3px 6px rgba(52, 152, 219, 0.4))").style("transition","all 0.3s ease").transition().duration(400).delay(500+Math.random()*100).ease(V).attr("r",6),S.on("mouseenter",function(m){var R;if(w(this).select("rect").transition().duration(200).attr("opacity",1).style("filter","drop-shadow(0 4px 12px rgba(155, 89, 182, 0.5)) brightness(1.1)"),w(this).selectAll("circle").transition().duration(200).attr("r",8),(R=c.current)==null?void 0:R.getBoundingClientRect()){const B=i!==null&&d!==null?d-i:null;M({date:e.date,sleepTime:i!==null?W(i):null,wakeTime:d!==null?W(d):null,duration:B!==null?Math.round(B*100)/100:null,x:m.pageX,y:m.pageY-80})}}).on("mouseleave",function(){w(this).select("rect").transition().duration(200).attr("opacity",.85).style("filter","drop-shadow(0 2px 8px rgba(155, 89, 182, 0.3))"),w(this).selectAll("circle").transition().duration(200).attr("r",6),M(null)}).on("mousemove",function(m){M(H=>H?{...H,x:m.pageX,y:m.pageY-80}:null)})});const N=f.append("defs").append("linearGradient").attr("id","sleepGradient").attr("x1","0%").attr("x2","100%");N.append("stop").attr("offset","0%").attr("stop-color","#9B59B6").attr("stop-opacity",1),N.append("stop").attr("offset","50%").attr("stop-color","#7B68A6").attr("stop-opacity",1),N.append("stop").attr("offset","100%").attr("stop-color","#3498DB").attr("stop-opacity",1);const E=L(18,43,3).map(e=>({value:e,label:e===24?"12 AM":e===36?"12 PM":e%24===0?"12 AM":e%24<12?`${e%24} AM`:e%24===12?"12 PM":`${e%24-12} PM`}));k.append("g").attr("class",s.xAxis).attr("transform",`translate(0,${x})`).call(it(h).tickValues(E.map(e=>e.value)).tickFormat(e=>{const n=E.find(g=>g.value===e);return n?n.label:""}).tickSizeOuter(0)).selectAll("text").style("font-weight",e=>{const n=e%24;return n===0||n===12?"600":"400"});const ot=A.filter((e,n)=>n%Math.ceil(A.length/10)===0);k.append("g").attr("class",s.yAxis).call(dt(z).tickValues(ot).tickFormat(e=>{const n=new Date(e);return`${(n.getMonth()+1).toString().padStart(2,"0")}/${n.getDate().toString().padStart(2,"0")}`}))},[o,I,x,u,a,l,t]),r.jsxs("div",{className:s.container,children:[r.jsxs("div",{className:s.header,children:[r.jsx("h3",{className:s.title,children:"Sleep Pattern"}),r.jsxs("div",{className:s.legend,children:[r.jsxs("div",{className:s.legendItem,children:[r.jsx("span",{className:s.sleepDot}),r.jsx("span",{children:"Sleep Time"})]}),r.jsxs("div",{className:s.legendItem,children:[r.jsx("span",{className:s.wakeDot}),r.jsx("span",{children:"Wake Time"})]})]})]}),r.jsx("svg",{ref:c,width:t,height:l,className:s.chart}),p&&r.jsxs("div",{className:`${s.tooltip} ${p?s.visible:""}`,style:{left:`${p.x}px`,top:`${p.y}px`},children:[r.jsxs("div",{className:s.tooltipHeader,children:[r.jsx("span",{className:s.tooltipEmoji,children:"😴"}),r.jsx("span",{children:new Date(p.date).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})})]}),r.jsxs("div",{className:s.tooltipInfo,children:[p.sleepTime&&r.jsxs("div",{className:s.tooltipRow,children:[r.jsxs("span",{className:s.tooltipLabel,children:[r.jsx("span",{children:"🌙"}),r.jsx("span",{children:"Sleep:"})]}),r.jsx("span",{className:s.tooltipValue,children:p.sleepTime})]}),p.wakeTime&&r.jsxs("div",{className:s.tooltipRow,children:[r.jsxs("span",{className:s.tooltipLabel,children:[r.jsx("span",{children:"☀️"}),r.jsx("span",{children:"Wake:"})]}),r.jsx("span",{className:s.tooltipValue,children:p.wakeTime})]}),p.duration!==null&&r.jsxs("div",{className:s.tooltipDuration,children:[r.jsx("span",{children:"⏱️"}),r.jsxs("span",{children:[Math.floor(p.duration),"h ",Math.round(p.duration%1*60),"m"]})]})]})]})]})};rt.__docgenInfo={description:"",methods:[],displayName:"SleepChart",props:{sleepData:{required:!0,tsType:{name:"Array",elements:[{name:"SleepData"}],raw:"SleepData[]"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"800",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"400",computed:!1}},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""}}};const Vt={title:"Organisms/Charts/SleepChart",component:rt,parameters:{layout:"centered"},argTypes:{width:{control:{type:"number",min:400,max:1200,step:50}},height:{control:{type:"number",min:200,max:600,step:50}},onDateClick:{action:"dateClicked"}}},j=o=>{const t=[],l=new Date;for(let a=o-1;a>=0;a--){const c=new Date(l);c.setDate(c.getDate()-a),t.push(c.toISOString().split("T")[0])}return t},y={args:{sleepData:j(7).map(o=>{const t=Math.floor(Math.random()*3)+22,l=Math.floor(Math.random()*3)+6;return{date:o,sleep_time:`${t%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${l}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:800,height:400}},b={args:{sleepData:j(30).map(o=>({date:o,sleep_time:`${(Math.floor(Math.random()*3)+22)%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${Math.floor(Math.random()*2)+7}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`})),width:900,height:400}},$={args:{sleepData:j(14).map((o,t)=>{const l=t%7===5||t%7===6,a=l?Math.floor(Math.random()*4)+24:Math.floor(Math.random()*2)+22,c=l?Math.floor(Math.random()*3)+9:Math.floor(Math.random()*2)+6;return{date:o,sleep_time:`${a%24}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`,wake_hour:`${c}:${Math.floor(Math.random()*60).toString().padStart(2,"0")}`}}),width:850,height:400}},v={args:{sleepData:j(14).map((o,t)=>({date:o,sleep_time:t%3===0?null:`${(Math.floor(Math.random()*3)+22)%24}:30`,wake_hour:t%3===0?null:`${Math.floor(Math.random()*2)+7}:00`})),width:800,height:400}},D={args:{sleepData:[],width:800,height:400}};var P,q,G;y.parameters={...y.parameters,docs:{...(P=y.parameters)==null?void 0:P.docs,source:{originalSource:`{
2
2
  args: {
3
3
  sleepData: generateDateRange(7).map(date => {
4
4
  const bedHour = Math.floor(Math.random() * 3) + 22;
@@ -0,0 +1,32 @@
1
+ import{r as h,j as n}from"./iframe-8g14XBDl.js";import{u as J}from"./useSound-DDw9oPnZ.js";import{m as t}from"./proxy-B2d_UmJi.js";import{A as K}from"./index-DOd88rlX.js";const Q="_slider_jm45y_2",W="_label_jm45y_11",X="_sliderContainer_jm45y_19",Y="_track_jm45y_29",Z="_fill_jm45y_41",ee="_shimmer_jm45y_1",ne="_input_jm45y_69",ae="_thumb_jm45y_96",te="_ripple_jm45y_122",ie="_tooltip_jm45y_135",se="_tooltipArrow_jm45y_152",oe="_valueDisplay_jm45y_165",re="_labelsContainer_jm45y_177",le="_labelItem_jm45y_184",ue="_size-sm_jm45y_199",me="_size-lg_jm45y_226",de="_disabled_jm45y_254",ce="_loading_jm45y_269",pe="_loadingTrack_jm45y_274",fe="_loadingIndicator_jm45y_283",e={slider:Q,label:W,sliderContainer:X,track:Y,fill:Z,shimmer:ee,input:ne,thumb:ae,ripple:te,tooltip:ie,tooltipArrow:se,valueDisplay:oe,labelsContainer:re,labelItem:le,"size-sm":"_size-sm_jm45y_199",sizeSm:ue,"size-lg":"_size-lg_jm45y_226",sizeLg:me,disabled:de,loading:ce,loadingTrack:pe,loadingIndicator:fe};function ye({value:s,onChange:N,min:y=0,max:r=100,step:q=1,label:o,showValue:V=!1,valueFormatter:b,labels:v=[],config:z={},disabled:l=!1,className:j="",style:C={},loading:g=!1,colorFunction:x,showTooltip:u=!1,tooltipContent:S,soundConfig:k}){const{handlers:I,playSound:M}=J(k),[m,w]=h.useState(!1),[D,d]=h.useState(!1),A=h.useRef(null),{colors:_={},size:L="md",animations:R={}}=z,{duration:H=.2}=R,c=(s-y)/(r-y)*100,E=()=>x?x(s):_.fill?_.fill:"var(--color-primary)",T=a=>b?b(a):`${a}${r<=10?`/${r}`:""}`,P=a=>{if(l||g)return;const p=Number(a.target.value);M("click"),N(p)},F=()=>{w(!0),u&&d(!0)},O=()=>{w(!1),u&&setTimeout(()=>d(!1),500)},U=()=>{u&&!l&&d(!0)},B=()=>{u&&!m&&d(!1)},i=E(),$=e[`size-${L}`],G=l?e.disabled:g?e.loading:"";return g?n.jsxs("div",{className:`${e.slider} ${$} ${e.loading} ${j}`,style:C,children:[o&&n.jsx("label",{className:e.label,children:o}),n.jsx("div",{className:e.loadingTrack,children:n.jsx(t.div,{className:e.loadingIndicator,animate:{x:["-100%","200%"]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"}})})]}):n.jsxs("div",{className:`${e.slider} ${$} ${G} ${j}`,style:C,children:[o&&n.jsx(t.label,{className:e.label,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},children:o}),n.jsxs(t.div,{className:e.sliderContainer,ref:A,onMouseEnter:U,onMouseLeave:B,whileHover:{scale:1.02},transition:{duration:.1},children:[n.jsx(t.div,{className:e.track,whileHover:{height:8,marginTop:-1},transition:{duration:.1},children:n.jsx(t.div,{className:e.fill,style:{width:`${c}%`,backgroundColor:i},initial:{width:0},animate:{width:`${c}%`},transition:{duration:H,type:"spring",stiffness:300,damping:30},whileHover:{boxShadow:"inset 0 0 0 1px rgba(255,255,255,0.2)"}})}),n.jsx("input",{type:"range",min:y,max:r,step:q,value:s,onChange:P,onMouseDown:F,onMouseUp:O,...I,className:e.input,disabled:l,"aria-label":o}),n.jsx(t.div,{className:e.thumb,style:{left:`${c}%`,backgroundColor:i,borderColor:_.thumb||i},animate:{scale:m?1.3:1,boxShadow:m?`0 0 20px ${i}40`:`0 2px 8px ${i}30`},transition:{duration:.1,type:"spring",stiffness:400,damping:25},whileHover:{scale:1.1,transition:{duration:.1}},children:m&&n.jsx(t.div,{className:e.ripple,initial:{scale:0,opacity:.6},animate:{scale:2,opacity:0},transition:{duration:.5}})}),n.jsx(K,{children:D&&n.jsxs(t.div,{className:e.tooltip,style:{left:`${c}%`,backgroundColor:i},initial:{opacity:0,y:10,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.8},transition:{duration:.2},children:[S?S(s):T(s),n.jsx("div",{className:e.tooltipArrow,style:{borderTopColor:i}})]})})]}),V&&n.jsx(t.div,{className:e.valueDisplay,style:{color:i},initial:{scale:.8},animate:{scale:1},transition:{duration:.2,type:"spring",stiffness:300},children:T(s)},s),v.length>0&&n.jsx("div",{className:e.labelsContainer,children:v.map((a,p)=>{let f=0;return a.position==="start"?f=0:a.position==="end"?f=100:typeof a.position=="number"&&(f=a.position),n.jsx(t.div,{className:e.labelItem,style:{left:`${f}%`,color:a.color},initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{duration:.3,delay:p*.1},whileHover:{scale:1.2,transition:{duration:.1}},children:a.label},p)})})]})}ye.__docgenInfo={description:`Slider component - A beautiful, animated range input
2
+
3
+ @component
4
+ @description
5
+ A highly customizable slider component with smooth Framer Motion animations,
6
+ dynamic coloring, custom labels, tooltips, and theme support. Perfect for
7
+ ratings, volume controls, progress indicators, or any numeric input.
8
+
9
+ @example
10
+ // Basic usage
11
+ <Slider
12
+ value={rating}
13
+ onChange={setRating}
14
+ min={1}
15
+ max={10}
16
+ showValue
17
+ />
18
+
19
+ @example
20
+ // Rating slider with emojis
21
+ <Slider
22
+ value={mood}
23
+ onChange={setMood}
24
+ min={1}
25
+ max={5}
26
+ labels={[
27
+ { label: '😢', position: 'start' },
28
+ { label: '😐', position: 50 },
29
+ { label: '😊', position: 'end' }
30
+ ]}
31
+ colorFunction={(val) => \`hsl(\${val * 24}, 70%, 50%)\`}
32
+ />`,methods:[],displayName:"Slider",props:{value:{required:!0,tsType:{name:"number"},description:"Current slider value"},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: number) => void",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"void"}}},description:"Callback when value changes"},min:{required:!1,tsType:{name:"number"},description:"Minimum value",defaultValue:{value:"0",computed:!1}},max:{required:!1,tsType:{name:"number"},description:"Maximum value",defaultValue:{value:"100",computed:!1}},step:{required:!1,tsType:{name:"number"},description:"Step increment",defaultValue:{value:"1",computed:!1}},label:{required:!1,tsType:{name:"string"},description:"Optional label"},showValue:{required:!1,tsType:{name:"boolean"},description:"Show value display",defaultValue:{value:"false",computed:!1}},valueFormatter:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number) => string",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"string"}}},description:"Custom value formatter"},labels:{required:!1,tsType:{name:"Array",elements:[{name:"SliderLabel"}],raw:"SliderLabel[]"},description:"Labels for slider endpoints or custom positions",defaultValue:{value:"[]",computed:!1}},config:{required:!1,tsType:{name:"SliderConfig"},description:"Custom styling configuration",defaultValue:{value:"{}",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"Disabled state",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"Custom CSS class",defaultValue:{value:"''",computed:!1}},style:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:"Custom styles",defaultValue:{value:"{}",computed:!1}},loading:{required:!1,tsType:{name:"boolean"},description:"Loading state",defaultValue:{value:"false",computed:!1}},colorFunction:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number) => string",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"string"}}},description:"Color function for dynamic coloring"},showTooltip:{required:!1,tsType:{name:"boolean"},description:"Tooltip configuration",defaultValue:{value:"false",computed:!1}},tooltipContent:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number) => string",signature:{arguments:[{type:{name:"number"},name:"value"}],return:{name:"string"}}},description:"Custom tooltip content"},soundConfig:{required:!1,tsType:{name:"ComponentSoundConfig"},description:"Sound configuration for interactions"}}};export{ye as S};
@@ -0,0 +1 @@
1
+ ._slider_jm45y_2{display:flex;flex-direction:column;gap:var(--spacing-xs);font-family:var(--font-family-primary);width:100%}._label_jm45y_11{font-size:var(--font-size-sm);font-weight:500;color:var(--color-text);margin:0}._sliderContainer_jm45y_19{position:relative;display:flex;align-items:center;width:100%;height:24px;cursor:pointer}._track_jm45y_29{position:absolute;width:100%;height:6px;background:var(--color-border);border-radius:3px;overflow:hidden}._fill_jm45y_41{height:100%;background:var(--color-primary);border-radius:3px;position:relative;overflow:hidden}._fill_jm45y_41:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,rgba(255,255,255,.2) 0%,transparent 50%,rgba(255,255,255,.2) 100%);animation:_shimmer_jm45y_1 2s infinite}@keyframes _shimmer_jm45y_1{0%{transform:translate(-100%)}to{transform:translate(100%)}}._input_jm45y_69{position:absolute;width:100%;height:100%;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;z-index:2}._input_jm45y_69::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:0;height:0;background:transparent}._input_jm45y_69::-moz-range-thumb{width:0;height:0;background:transparent;border:none;cursor:pointer}._thumb_jm45y_96{position:absolute;width:20px;height:20px;background:var(--color-primary);border:3px solid var(--color-background);border-radius:50%;transform:translate(-50%);cursor:pointer;z-index:3;box-shadow:0 2px 8px #0003}._thumb_jm45y_96:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:6px;background:var(--color-background);border-radius:50%;transform:translate(-50%,-50%)}._ripple_jm45y_122{position:absolute;top:50%;left:50%;width:40px;height:40px;border-radius:50%;background:currentColor;transform:translate(-50%,-50%);pointer-events:none}._tooltip_jm45y_135{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:12px;padding:var(--spacing-xs) var(--spacing-sm);background:var(--color-primary);color:var(--color-text-inverse);font-size:var(--font-size-xs);font-weight:600;border-radius:var(--radius-md);white-space:nowrap;z-index:10;box-shadow:var(--shadow-md)}._tooltipArrow_jm45y_152{position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--color-primary)}._valueDisplay_jm45y_165{font-size:var(--font-size-sm);font-weight:600;color:var(--color-primary);text-align:center;min-height:18px;display:flex;align-items:center;justify-content:center}._labelsContainer_jm45y_177{position:relative;width:100%;height:24px;margin-top:var(--spacing-xs)}._labelItem_jm45y_184{position:absolute;transform:translate(-50%);font-size:var(--font-size-sm);color:var(--color-text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px}._size-sm_jm45y_199{font-size:var(--font-size-xs)}._size-sm_jm45y_199 ._track_jm45y_29{height:4px}._size-sm_jm45y_199 ._sliderContainer_jm45y_19:hover ._track_jm45y_29{height:6px}._size-sm_jm45y_199 ._thumb_jm45y_96{width:16px;height:16px;border-width:2px}._size-sm_jm45y_199 ._thumb_jm45y_96:before{width:4px;height:4px}._size-sm_jm45y_199 ._sliderContainer_jm45y_19{height:20px}._size-lg_jm45y_226{font-size:var(--font-size-lg)}._size-lg_jm45y_226 ._track_jm45y_29{height:8px}._size-lg_jm45y_226 ._sliderContainer_jm45y_19:hover ._track_jm45y_29{height:10px}._size-lg_jm45y_226 ._thumb_jm45y_96{width:24px;height:24px;border-width:4px}._size-lg_jm45y_226 ._thumb_jm45y_96:before{width:8px;height:8px}._size-lg_jm45y_226 ._sliderContainer_jm45y_19{height:28px}._disabled_jm45y_254{opacity:.5;pointer-events:none;cursor:not-allowed}._disabled_jm45y_254 ._sliderContainer_jm45y_19,._disabled_jm45y_254 ._thumb_jm45y_96{cursor:not-allowed}._loading_jm45y_269{opacity:.7;pointer-events:none}._loadingTrack_jm45y_274{position:relative;width:100%;height:6px;background:var(--color-border);border-radius:3px;overflow:hidden}._loadingIndicator_jm45y_283{position:absolute;top:0;left:0;width:30%;height:100%;background:linear-gradient(90deg,transparent,var(--color-primary),transparent);border-radius:3px}._input_jm45y_69:focus-visible+._thumb_jm45y_96{outline:2px solid var(--color-primary);outline-offset:2px}@media (prefers-color-scheme: dark){._track_jm45y_29{background:var(--color-border);box-shadow:inset 0 1px 2px #0000004d}._thumb_jm45y_96{box-shadow:0 2px 8px #0006,0 0 0 1px #ffffff1a}._sliderContainer_jm45y_19:hover ._thumb_jm45y_96{box-shadow:0 4px 12px #00000080,0 0 0 1px #fff3}._fill_jm45y_41:after{background:linear-gradient(90deg,rgba(255,255,255,.1) 0%,transparent 50%,rgba(255,255,255,.1) 100%)}}@media (prefers-contrast: high){._track_jm45y_29{border:1px solid var(--color-text)}._thumb_jm45y_96{border-width:2px;border-color:var(--color-text)}._fill_jm45y_41{border:1px solid var(--color-text)}}@media (prefers-reduced-motion: reduce){._fill_jm45y_41:after{animation:none}}@media (max-width: 768px){._thumb_jm45y_96{width:22px;height:22px}._size-sm_jm45y_199 ._thumb_jm45y_96{width:18px;height:18px}._size-lg_jm45y_226 ._thumb_jm45y_96{width:26px;height:26px}._sliderContainer_jm45y_19{height:26px}._size-sm_jm45y_199 ._sliderContainer_jm45y_19{height:22px}._size-lg_jm45y_226 ._sliderContainer_jm45y_19{height:30px}._labelItem_jm45y_184{min-width:24px;height:24px;font-size:var(--font-size-sm)}}
@@ -1,4 +1,4 @@
1
- import{r as C,j as i}from"./iframe-P7asu-Li.js";import{S as F}from"./Slider-BibMr8BG.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-BoKKqA87.js";import"./proxy-CDAVFVqI.js";import"./MotionConfigContext-78ZqsXO2.js";import"./index-CUas0FsV.js";const D={title:"Atoms/Slider",component:F,parameters:{layout:"centered",docs:{description:{component:"An animated slider component with customizable styling, labels, and dynamic coloring."}}},argTypes:{value:{control:"number"},min:{control:"number"},max:{control:"number"},step:{control:"number"},label:{control:"text"},showValue:{control:"boolean"},showTooltip:{control:"boolean"},disabled:{control:"boolean"},loading:{control:"boolean"},config:{control:"object"}}},n=e=>{const[r,V]=C.useState(e.value||50);return i.jsx("div",{style:{width:"300px",padding:"20px"},children:i.jsx(F,{...e,value:r,onChange:V})})},o={render:n,args:{min:0,max:100,step:1,label:"Default Slider",showValue:!0}},a={render:n,args:{min:1,max:10,value:7,label:"Rating",showValue:!0,labels:[{label:":(",position:"start"},{label:":|",position:50},{label:":)",position:"end"}],colorFunction:e=>e<=3?"#ff4444":e<=6?"#ffa500":"#4caf50",valueFormatter:e=>`${e}/10`}},t={render:n,args:{min:-10,max:40,value:22,step:.5,label:"Temperature",showValue:!0,showTooltip:!0,colorFunction:e=>{const r=(e+10)/50;return r<.3?"#4fc3f7":r<.7?"#66bb6a":"#ff7043"},valueFormatter:e=>`${e} C`}},l={render:n,args:{min:1,max:5,value:3,label:"How are you feeling?",showValue:!0,labels:[{label:"Terrible",position:"start"},{label:"Okay",position:50},{label:"Great",position:"end"}],colorFunction:e=>{const r=["#f44336","#ff9800","#ffc107","#4caf50","#2196f3"];return r[e-1]||r[2]},valueFormatter:e=>["Terrible","Bad","Okay","Good","Great"][e-1]||"Okay",config:{size:"lg"}}},s={render:n,args:{min:0,max:100,value:30,label:"Custom Colors",showValue:!0,config:{colors:{fill:"#e91e63",thumb:"#e91e63",text:"#e91e63"}}}};var u,c,m;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`{
1
+ import{r as C,j as i}from"./iframe-8g14XBDl.js";import{S as F}from"./Slider-C--ylcyD.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-DDw9oPnZ.js";import"./proxy-B2d_UmJi.js";import"./MotionConfigContext-DnBM5OK0.js";import"./index-DOd88rlX.js";const D={title:"Atoms/Slider",component:F,parameters:{layout:"centered",docs:{description:{component:"An animated slider component with customizable styling, labels, and dynamic coloring."}}},argTypes:{value:{control:"number"},min:{control:"number"},max:{control:"number"},step:{control:"number"},label:{control:"text"},showValue:{control:"boolean"},showTooltip:{control:"boolean"},disabled:{control:"boolean"},loading:{control:"boolean"},config:{control:"object"}}},n=e=>{const[r,V]=C.useState(e.value||50);return i.jsx("div",{style:{width:"300px",padding:"20px"},children:i.jsx(F,{...e,value:r,onChange:V})})},o={render:n,args:{min:0,max:100,step:1,label:"Default Slider",showValue:!0}},a={render:n,args:{min:1,max:10,value:7,label:"Rating",showValue:!0,labels:[{label:":(",position:"start"},{label:":|",position:50},{label:":)",position:"end"}],colorFunction:e=>e<=3?"#ff4444":e<=6?"#ffa500":"#4caf50",valueFormatter:e=>`${e}/10`}},t={render:n,args:{min:-10,max:40,value:22,step:.5,label:"Temperature",showValue:!0,showTooltip:!0,colorFunction:e=>{const r=(e+10)/50;return r<.3?"#4fc3f7":r<.7?"#66bb6a":"#ff7043"},valueFormatter:e=>`${e} C`}},l={render:n,args:{min:1,max:5,value:3,label:"How are you feeling?",showValue:!0,labels:[{label:"Terrible",position:"start"},{label:"Okay",position:50},{label:"Great",position:"end"}],colorFunction:e=>{const r=["#f44336","#ff9800","#ffc107","#4caf50","#2196f3"];return r[e-1]||r[2]},valueFormatter:e=>["Terrible","Bad","Okay","Good","Great"][e-1]||"Okay",config:{size:"lg"}}},s={render:n,args:{min:0,max:100,value:30,label:"Custom Colors",showValue:!0,config:{colors:{fill:"#e91e63",thumb:"#e91e63",text:"#e91e63"}}}};var u,c,m;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`{
2
2
  render: InteractiveSlider,
3
3
  args: {
4
4
  min: 0,
@@ -1,4 +1,4 @@
1
- import{r as E,j as D}from"./iframe-P7asu-Li.js";import{R as I,P as O,M as N}from"./Mesh-CwXV3WjE.js";import{T as G}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const P={"soft-aurora-container":"_soft-aurora-container_c4lp8_1"};function H(r){const t=r.replace("#","");return[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255]}const U=`
1
+ import{r as E,j as D}from"./iframe-8g14XBDl.js";import{R as I,P as O,M as N}from"./Mesh-CwXV3WjE.js";import{T as G}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const P={"soft-aurora-container":"_soft-aurora-container_c4lp8_1"};function H(r){const t=r.replace("#","");return[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255]}const U=`
2
2
  attribute vec2 uv;
3
3
  attribute vec2 position;
4
4
  varying vec2 vUv;