@stfrigerio/sito-template 0.1.56 → 0.1.57

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 (198) hide show
  1. package/dist/components/molecules/Tabs/Tabs.stories.d.ts +1 -3
  2. package/dist/components/molecules/Tabs/Tabs.stories.d.ts.map +1 -1
  3. package/dist/components/organisms/Calendar/Calendar.d.ts.map +1 -1
  4. package/dist/components/organisms/Calendar/Calendar.stories.d.ts +16 -16
  5. package/dist/components/organisms/Calendar/Calendar.stories.d.ts.map +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/styles.css +1 -1
  11. package/dist/styles.css.map +1 -1
  12. package/package.json +1 -1
  13. package/storybook-static/assets/{ASCIIText.stories-Cb8HvABR.js → ASCIIText.stories-LbmvFzzv.js} +1 -1
  14. package/storybook-static/assets/{AllAtoms.stories-Disxvghm.js → AllAtoms.stories-CLunFOjI.js} +1 -1
  15. package/storybook-static/assets/{AnimatedContent.stories-jVAgBFE2.js → AnimatedContent.stories-B8hBaVkK.js} +1 -1
  16. package/storybook-static/assets/{AnimatedList.stories-Di-vE601.js → AnimatedList.stories-D8a9eYqH.js} +1 -1
  17. package/storybook-static/assets/{Antigravity.stories-CE90HCpY.js → Antigravity.stories-D_mJbWK0.js} +1 -1
  18. package/storybook-static/assets/{ArrayInput.stories-DgSsXJly.js → ArrayInput.stories-Cshz2s-a.js} +1 -1
  19. package/storybook-static/assets/{Aurora.stories-DrVAkdjt.js → Aurora.stories-BN4MataE.js} +1 -1
  20. package/storybook-static/assets/{Beams.stories-BSVIpqQ0.js → Beams.stories-CCtZOw8G.js} +1 -1
  21. package/storybook-static/assets/{BlobCursor.stories-C3EgjAh2.js → BlobCursor.stories-CdB55R5G.js} +1 -1
  22. package/storybook-static/assets/{BlurText.stories-DJVDRdFo.js → BlurText.stories-Bg2Ih2Je.js} +1 -1
  23. package/storybook-static/assets/{BooleansHeatmap.stories-B_9cPYMM.js → BooleansHeatmap.stories-CpNxqSED.js} +1 -1
  24. package/storybook-static/assets/{BorderGlow.stories-B_wdQUgw.js → BorderGlow.stories-CUxbrsvW.js} +1 -1
  25. package/storybook-static/assets/{BubbleMenu.stories-DpLYYw_z.js → BubbleMenu.stories-DuVDLBsV.js} +1 -1
  26. package/storybook-static/assets/{Button-DK4vPDdE.js → Button-CQGdvhpN.js} +1 -1
  27. package/storybook-static/assets/Button.stories-D8Xx3I9p.js +88 -0
  28. package/storybook-static/assets/Calendar-tbpzwSIm.css +1 -0
  29. package/storybook-static/assets/Calendar.stories-Cx2JEddO.js +229 -0
  30. package/storybook-static/assets/{Card--7bShmQv.js → Card-DNp-cUnt.js} +1 -1
  31. package/storybook-static/assets/{Card.stories-C9cPoCVI.js → Card.stories-D1f1NTVU.js} +1 -1
  32. package/storybook-static/assets/{CardNav.stories-1WFeombk.js → CardNav.stories-Cd4zEw8p.js} +1 -1
  33. package/storybook-static/assets/{Carousel.stories-CPp1bcnx.js → Carousel.stories-BxbGwXE5.js} +1 -1
  34. package/storybook-static/assets/{Checkbox-BZ4OK19r.js → Checkbox-Dw8W2w74.js} +1 -1
  35. package/storybook-static/assets/{Checkbox.stories-pzFmZn7E.js → Checkbox.stories-BwsnN3CP.js} +1 -1
  36. package/storybook-static/assets/{ChromaGrid.stories-Nunq8QCK.js → ChromaGrid.stories-DBHYiDPV.js} +1 -1
  37. package/storybook-static/assets/{CircularGallery.stories-C6B3QdGe.js → CircularGallery.stories-TJN6o_RG.js} +1 -1
  38. package/storybook-static/assets/{CircularText.stories-x-CZkrWE.js → CircularText.stories-rNjRUNn2.js} +1 -1
  39. package/storybook-static/assets/{ClickSpark.stories-BgEy72nd.js → ClickSpark.stories-BfqByoGe.js} +1 -1
  40. package/storybook-static/assets/{Color-AVL7NMMY-BH2T5gYv.js → Color-AVL7NMMY-CoWQkAiP.js} +1 -1
  41. package/storybook-static/assets/{ColorBends.stories-l5hP9mw3.js → ColorBends.stories-IEMOWAyf.js} +1 -1
  42. package/storybook-static/assets/{CountUp.stories-f4Xo5-1D.js → CountUp.stories-DXPrKAQb.js} +1 -1
  43. package/storybook-static/assets/{Counter.stories-Cq0esRYp.js → Counter.stories-DMdecsw_.js} +1 -1
  44. package/storybook-static/assets/{Crosshair.stories-cmjX8jB1.js → Crosshair.stories-CYzDxRSn.js} +1 -1
  45. package/storybook-static/assets/{Cubes.stories-Deum-zPK.js → Cubes.stories-Drq4ULo3.js} +1 -1
  46. package/storybook-static/assets/{CurvedLoop.stories-CaRb6vtE.js → CurvedLoop.stories-C9GMKnIw.js} +1 -1
  47. package/storybook-static/assets/{DarkVeil.stories-DtKNrEKT.js → DarkVeil.stories-BtLNfEH8.js} +1 -1
  48. package/storybook-static/assets/{DateInput-Dhe5jlzS.js → DateInput-CW4PsZAQ.js} +1 -1
  49. package/storybook-static/assets/{DateInput.stories-tMfHI-jT.js → DateInput.stories-d46zYiZA.js} +1 -1
  50. package/storybook-static/assets/{DecayCard.stories-DOejb79q.js → DecayCard.stories-CAU_wTc7.js} +1 -1
  51. package/storybook-static/assets/{DecryptedText.stories-ZJFOqvcs.js → DecryptedText.stories-Dvba9C1V.js} +1 -1
  52. package/storybook-static/assets/{Dither.stories-BteQ8qaz.js → Dither.stories-B5KfMprl.js} +1 -1
  53. package/storybook-static/assets/{Dock.stories-CjgGmbrT.js → Dock.stories-oyQGRzlM.js} +1 -1
  54. package/storybook-static/assets/{DocsRenderer-PQXLIZUC-CDqlUQhE.js → DocsRenderer-PQXLIZUC-C2AYT361.js} +4 -4
  55. package/storybook-static/assets/{EditFAB.stories-HiEYPWDM.js → EditFAB.stories-DvtpW34v.js} +1 -1
  56. package/storybook-static/assets/{EvilEye.stories-Dh40voJH.js → EvilEye.stories-C1820-DG.js} +1 -1
  57. package/storybook-static/assets/{FadeContent.stories-APJ9w9po.js → FadeContent.stories-B4z_JRy9.js} +1 -1
  58. package/storybook-static/assets/{FaultyTerminal.stories-B1QU0me7.js → FaultyTerminal.stories-DmkguJql.js} +1 -1
  59. package/storybook-static/assets/{Fbo-C7_12zi1.js → Fbo-CTQm-4Bw.js} +1 -1
  60. package/storybook-static/assets/{FloatingLines.stories-BoZu0Eil.js → FloatingLines.stories-CQvqKSpH.js} +1 -1
  61. package/storybook-static/assets/{FlowingMenu.stories-CIsIyO9J.js → FlowingMenu.stories-DmOspv0B.js} +1 -1
  62. package/storybook-static/assets/{FluidGlass.stories-vH3qnmEk.js → FluidGlass.stories-CZSqxrNt.js} +1 -1
  63. package/storybook-static/assets/{Folder.stories-HkOOEOjb.js → Folder.stories-7vb52Lfi.js} +1 -1
  64. package/storybook-static/assets/{FuzzyText.stories-By8q6YQt.js → FuzzyText.stories-BdXN4VK1.js} +1 -1
  65. package/storybook-static/assets/{Galaxy.stories-07G7jp_6.js → Galaxy.stories-BhT1GZh5.js} +1 -1
  66. package/storybook-static/assets/{GhostCursor.stories-BC-trpJu.js → GhostCursor.stories-DkXqCjE9.js} +1 -1
  67. package/storybook-static/assets/{GlareHover.stories-B_MjE5aX.js → GlareHover.stories-CznX3yTV.js} +1 -1
  68. package/storybook-static/assets/{GlassSurface.stories-rPXwGZOW.js → GlassSurface.stories-BnwwYK95.js} +1 -1
  69. package/storybook-static/assets/{GlitchText.stories-BN308waP.js → GlitchText.stories-CVcTBUVS.js} +1 -1
  70. package/storybook-static/assets/{GooeyNav.stories-C5lqZx3I.js → GooeyNav.stories-C0abTHBc.js} +1 -1
  71. package/storybook-static/assets/{GradientBlinds.stories-D9l7Ayxs.js → GradientBlinds.stories-CpSguKtv.js} +1 -1
  72. package/storybook-static/assets/{GradientText.stories-BiDAn88F.js → GradientText.stories-B4hMx13h.js} +1 -1
  73. package/storybook-static/assets/{Grainient.stories-CSCcWH0M.js → Grainient.stories-5EakpvU2.js} +1 -1
  74. package/storybook-static/assets/{GridMotion.stories-heG3R9uG.js → GridMotion.stories-Bm3DD7cb.js} +1 -1
  75. package/storybook-static/assets/{ImageSlideshow.stories-RDcrjCte.js → ImageSlideshow.stories-BasuECRV.js} +1 -1
  76. package/storybook-static/assets/{Iridescence.stories-iJ26He9j.js → Iridescence.stories-Cykk3hHZ.js} +1 -1
  77. package/storybook-static/assets/{LaserFlow.stories-H_kwxAaY.js → LaserFlow.stories-CfiM4ZZ5.js} +1 -1
  78. package/storybook-static/assets/{LetterGlitch.stories-BY9P1wPN.js → LetterGlitch.stories-BXb7iSeX.js} +1 -1
  79. package/storybook-static/assets/{LightPillar.stories-Bb4DN5XV.js → LightPillar.stories-CwI-8_BF.js} +1 -1
  80. package/storybook-static/assets/{LightRays.stories-Cc6Y1X_k.js → LightRays.stories-BIIfv6Ky.js} +1 -1
  81. package/storybook-static/assets/{Lightning.stories-CpSHxlp7.js → Lightning.stories-B8GNkzSN.js} +1 -1
  82. package/storybook-static/assets/{LineWaves.stories-COm5OuGf.js → LineWaves.stories-CjxdD_yt.js} +1 -1
  83. package/storybook-static/assets/{LiquidChrome.stories-C88ONVOT.js → LiquidChrome.stories-G7bVFJM9.js} +1 -1
  84. package/storybook-static/assets/{LiquidEther.stories-CPSMWSN9.js → LiquidEther.stories-C8n27zuA.js} +1 -1
  85. package/storybook-static/assets/{LoadingSpinner-C4MXlRnC.js → LoadingSpinner-Br8TYFlF.js} +1 -1
  86. package/storybook-static/assets/{LoadingSpinner.stories-CCyN9n1T.js → LoadingSpinner.stories-Dj0bMFhR.js} +1 -1
  87. package/storybook-static/assets/{MagicRings.stories-NQSwG8Yn.js → MagicRings.stories-D50m_2UF.js} +1 -1
  88. package/storybook-static/assets/{Magnet.stories-BAwXSJEW.js → Magnet.stories-BP9fjpzP.js} +1 -1
  89. package/storybook-static/assets/{MagnetLines.stories-CJqMXg51.js → MagnetLines.stories-DvbytV0Y.js} +1 -1
  90. package/storybook-static/assets/{Masonry.stories-DAl8CRm6.js → Masonry.stories-xXYQw2uD.js} +1 -1
  91. package/storybook-static/assets/{MetaBalls.stories-BY7Ilvw5.js → MetaBalls.stories-DKD3gVUH.js} +1 -1
  92. package/storybook-static/assets/{MetallicPaint.stories-iuclFGy4.js → MetallicPaint.stories-Bz-uS-L_.js} +1 -1
  93. package/storybook-static/assets/{MoodChart.stories-T8Td91vu.js → MoodChart.stories-Bk0jtB4g.js} +1 -1
  94. package/storybook-static/assets/{MotionConfigContext-D_4LMwJ5.js → MotionConfigContext-D5hZdVGx.js} +1 -1
  95. package/storybook-static/assets/{Navbar.stories-SRGoJhYx.js → Navbar.stories-Dos3kovt.js} +14 -19
  96. package/storybook-static/assets/{Noise.stories-B5_Jt1t3.js → Noise.stories-D6C6-k8-.js} +1 -1
  97. package/storybook-static/assets/{NumberStepper-BaK5ZScA.js → NumberStepper--0cJcLNZ.js} +1 -1
  98. package/storybook-static/assets/{NumberStepper.stories-BZIrFbrQ.js → NumberStepper.stories-BvFwBEjt.js} +1 -1
  99. package/storybook-static/assets/{Orb.stories-Ci1HMLUW.js → Orb.stories-CS__2PJW.js} +1 -1
  100. package/storybook-static/assets/OrbitImages.stories-CcaelcY5.js +26 -0
  101. package/storybook-static/assets/{PieChart.stories-ByRTgKp3.js → PieChart.stories-XZqxh_GW.js} +1 -1
  102. package/storybook-static/assets/{PixelBlast.stories-C83D_GSk.js → PixelBlast.stories-CyK8BxPq.js} +1 -1
  103. package/storybook-static/assets/{PixelCard.stories-B8DdUCQe.js → PixelCard.stories-D_Og1Eve.js} +1 -1
  104. package/storybook-static/assets/{PixelSnow.stories-BOHNVU80.js → PixelSnow.stories-CoCZucVV.js} +1 -1
  105. package/storybook-static/assets/{PixelTransition.stories-D8VH3ukb.js → PixelTransition.stories-DmVJ4jdu.js} +1 -1
  106. package/storybook-static/assets/{Plasma.stories-CatIdRAD.js → Plasma.stories-DUqrW-qq.js} +1 -1
  107. package/storybook-static/assets/{Prism.stories-Bg6GLExD.js → Prism.stories-DWdVDcBG.js} +1 -1
  108. package/storybook-static/assets/{PrismaticBurst.stories-BNdrAv89.js → PrismaticBurst.stories-BEVYTjXo.js} +1 -1
  109. package/storybook-static/assets/{ProfileCard.stories-CyaTrCeK.js → ProfileCard.stories-CAoKQpAZ.js} +1 -1
  110. package/storybook-static/assets/{QuantifiableHabitsChart.stories-C86yjHJm.js → QuantifiableHabitsChart.stories-CMexb5Ij.js} +1 -1
  111. package/storybook-static/assets/{Radar.stories-CvzRcw-C.js → Radar.stories-Dcjnm9Bu.js} +1 -1
  112. package/storybook-static/assets/{Ribbons.stories-BRX9ZoeY.js → Ribbons.stories-Cs3Eg2Gz.js} +1 -1
  113. package/storybook-static/assets/{RippleGrid.stories-vnV8CCtp.js → RippleGrid.stories-QV9Doq9P.js} +1 -1
  114. package/storybook-static/assets/{RotatingText.stories-B8GsJWaC.js → RotatingText.stories-DkntoAXJ.js} +1 -1
  115. package/storybook-static/assets/{ScrollFloat.stories-DOlmhv7e.js → ScrollFloat.stories-BaX43Ike.js} +1 -1
  116. package/storybook-static/assets/{ScrollReveal.stories-Bm9KxbWm.js → ScrollReveal.stories-C2IWpLpI.js} +1 -1
  117. package/storybook-static/assets/ScrollVelocity.stories-LaYJ5WQN.js +9 -0
  118. package/storybook-static/assets/{SearchBar.stories-CfIOeCyX.js → SearchBar.stories-CGaj__zF.js} +1 -1
  119. package/storybook-static/assets/{SearchableDropdown--EWJF18v.js → SearchableDropdown-4HgWY0Ck.js} +1 -1
  120. package/storybook-static/assets/{SearchableDropdown.stories-B9KNxfZm.js → SearchableDropdown.stories-CfeFR5Rk.js} +1 -1
  121. package/storybook-static/assets/{SelectInput-CFM_N8VG.js → SelectInput-DvSeeIw5.js} +1 -1
  122. package/storybook-static/assets/{SelectInput.stories-D_5G5-0N.js → SelectInput.stories-DByYKCGI.js} +1 -1
  123. package/storybook-static/assets/{ShapeBlur.stories-DNg_BI9n.js → ShapeBlur.stories-ZQV0yHkn.js} +1 -1
  124. package/storybook-static/assets/{ShapeGrid.stories-D6mhsKbm.js → ShapeGrid.stories-G_tZAcp9.js} +1 -1
  125. package/storybook-static/assets/{ShinyText.stories-NtVkUqNB.js → ShinyText.stories-C6BrLI0x.js} +1 -1
  126. package/storybook-static/assets/{Silk.stories-BACMGa6I.js → Silk.stories-BpsR4txJ.js} +1 -1
  127. package/storybook-static/assets/{SleepChart.stories-S6pSldWo.js → SleepChart.stories-DcoBwiEm.js} +1 -1
  128. package/storybook-static/assets/{Slider-dqb2UNTZ.js → Slider-3iog5_du.js} +1 -1
  129. package/storybook-static/assets/{Slider.stories-4UkeTwoz.js → Slider.stories-C8eUZ7Ne.js} +1 -1
  130. package/storybook-static/assets/{SoftAurora.stories-DH8d39VG.js → SoftAurora.stories--Rcyqxiu.js} +1 -1
  131. package/storybook-static/assets/{SoundDemo.stories-Ci_Q1qDO.js → SoundDemo.stories-DvhKS2Fi.js} +1 -1
  132. package/storybook-static/assets/{SplashCursor.stories-BMBbSrDn.js → SplashCursor.stories-FzRIUaX9.js} +1 -1
  133. package/storybook-static/assets/{SpotlightCard.stories-Cy3mgAFZ.js → SpotlightCard.stories-CifqsSUc.js} +1 -1
  134. package/storybook-static/assets/{Stack.stories-C_qFRAvS.js → Stack.stories-Dq82x0TG.js} +1 -1
  135. package/storybook-static/assets/{StaggeredMenu.stories-BeqjTXCs.js → StaggeredMenu.stories-CsiTDJGG.js} +1 -1
  136. package/storybook-static/assets/{StarBorder.stories-BeLKjLZu.js → StarBorder.stories-Ba14_TPk.js} +1 -1
  137. package/storybook-static/assets/{SunburstChart.stories-DN8EQLMh.js → SunburstChart.stories-fREzDXM9.js} +1 -1
  138. package/storybook-static/assets/{Table.stories-BJ6FcfdD.js → Table.stories-CXsQAQrR.js} +1 -1
  139. package/storybook-static/assets/Tabs-D5ZPN7MM.css +1 -0
  140. package/storybook-static/assets/Tabs.stories-HeiG8gYN.js +37 -0
  141. package/storybook-static/assets/{TargetCursor.stories-CfxWRalc.js → TargetCursor.stories-B16pWZaP.js} +1 -1
  142. package/storybook-static/assets/{TextArea-DGywTJLt.js → TextArea-DKx3k6hV.js} +1 -1
  143. package/storybook-static/assets/{TextArea.stories-B-uYOZs4.js → TextArea.stories-Bpqlv7j5.js} +1 -1
  144. package/storybook-static/assets/{TextCursor.stories-61sj2bl9.js → TextCursor.stories-CY2eIn6Z.js} +1 -1
  145. package/storybook-static/assets/{TextInput-CiI38oLt.js → TextInput-CLyTHgK9.js} +1 -1
  146. package/storybook-static/assets/{TextInput.stories-DtG6MQod.js → TextInput.stories-BP1LSkLG.js} +1 -1
  147. package/storybook-static/assets/{TextPressure.stories-C1h8GiS8.js → TextPressure.stories-sH-cgdL2.js} +1 -1
  148. package/storybook-static/assets/{TextType.stories-BfUDVoY_.js → TextType.stories-B7Oy3P9u.js} +1 -1
  149. package/storybook-static/assets/{ThemeSwitcher.stories-gBLrYosz.js → ThemeSwitcher.stories-Bj0YQKM5.js} +1 -1
  150. package/storybook-static/assets/{Threads.stories-sZxNqPXX.js → Threads.stories-e52ErKbM.js} +1 -1
  151. package/storybook-static/assets/{TimeInput.stories-CjvGCAgd.js → TimeInput.stories-Cd28zwwR.js} +1 -1
  152. package/storybook-static/assets/{Toggle-DwTHl9Fm.js → Toggle-BntWdyUe.js} +1 -1
  153. package/storybook-static/assets/{Toggle.stories-DU0Scugu.js → Toggle.stories-DtqFmh3E.js} +1 -1
  154. package/storybook-static/assets/{ToggleButton-s2aFLlgS.js → ToggleButton-BQqJdlB_.js} +1 -1
  155. package/storybook-static/assets/{ToggleButton.stories-DgSqo96g.js → ToggleButton.stories-DkN_4qpp.js} +1 -1
  156. package/storybook-static/assets/{TrueFocus.stories-CuqOvqGj.js → TrueFocus.stories-wm4VXWCk.js} +1 -1
  157. package/storybook-static/assets/{VariableProximity.stories-CWLeFmxb.js → VariableProximity.stories-BNSYs_rC.js} +1 -1
  158. package/storybook-static/assets/{Waves.stories-zeyoHm5S.js → Waves.stories-Ce2ZJFsV.js} +1 -1
  159. package/storybook-static/assets/{check-7O6ar4SG.js → check-Cty-Z1Ib.js} +1 -1
  160. package/storybook-static/assets/{chevron-down-BC5Z9HYA.js → chevron-down-OhqRl4eJ.js} +1 -1
  161. package/storybook-static/assets/{chevron-right-CDwij0IV.js → chevron-right-CZm4bArI.js} +1 -1
  162. package/storybook-static/assets/client-0pKYCVHx.js +1 -0
  163. package/storybook-static/assets/{createLucideIcon-yjHXhSOm.js → createLucideIcon-BNUG5osq.js} +1 -1
  164. package/storybook-static/assets/{folder-CATSGh42.js → folder-BjriMpXc.js} +1 -1
  165. package/storybook-static/assets/{iconBase-D_x0Veg_.js → iconBase-DmcmY1l-.js} +1 -1
  166. package/storybook-static/assets/{iframe-LZvJb0BS.js → iframe-B8pH-Lvr.js} +5 -5
  167. package/storybook-static/assets/index-BN99WpBo.js +1 -0
  168. package/storybook-static/assets/{index-vc18hLoj.js → index-DBfrIdYd.js} +1 -1
  169. package/storybook-static/assets/{index-D9mC-cEf.js → index-PY_vM88c.js} +1 -1
  170. package/storybook-static/assets/{index-DSYnL-zq.js → index-bi5z6E3I.js} +1 -1
  171. package/storybook-static/assets/{layout-grid-Dyvnjtf9.js → layout-grid-TssXYNzv.js} +1 -1
  172. package/storybook-static/assets/{proxy-94dt0K2Y.js → proxy-BA3VZtN5.js} +1 -1
  173. package/storybook-static/assets/{react-18-C-ERT8YQ.js → react-18-7dGub68c.js} +1 -1
  174. package/storybook-static/assets/{react-three-fiber.esm-D_o7ZgN9.js → react-three-fiber.esm-DI-wNJmP.js} +1 -1
  175. package/storybook-static/assets/{search-BVmOcKZi.js → search-2YqBkJlG.js} +1 -1
  176. package/storybook-static/assets/settings-DvzICcFU.js +6 -0
  177. package/storybook-static/assets/{sun-s1P_-p6e.js → sun-DgDhCM_S.js} +1 -1
  178. package/storybook-static/assets/trash-2-BwI5jvsn.js +6 -0
  179. package/storybook-static/assets/{use-animation-frame-04H3dRpD.js → use-animation-frame-CF42h0i5.js} +1 -1
  180. package/storybook-static/assets/{use-in-view--MCxH20O.js → use-in-view-Zn8evg3J.js} +1 -1
  181. package/storybook-static/assets/{use-motion-value-Cic9xvrL.js → use-motion-value--XhiA2Gt.js} +1 -1
  182. package/storybook-static/assets/{use-spring-D4LsSJyy.js → use-spring-CrWzlBMd.js} +1 -1
  183. package/storybook-static/assets/use-transform-vyDqMhf-.js +1 -0
  184. package/storybook-static/assets/{useSound-Dc8S51xy.js → useSound-Bk2W5gkV.js} +1 -1
  185. package/storybook-static/assets/{users-DmRtN79P.js → users-aNPxMiig.js} +1 -1
  186. package/storybook-static/assets/{x-C7Ulr4p2.js → x-BC8LCdn9.js} +1 -1
  187. package/storybook-static/iframe.html +1 -1
  188. package/storybook-static/index.json +1 -1
  189. package/storybook-static/project.json +1 -1
  190. package/storybook-static/assets/Button.stories-dpSafIdz.js +0 -93
  191. package/storybook-static/assets/Calendar-CreieAui.css +0 -1
  192. package/storybook-static/assets/Calendar.stories-lRbXwh4f.js +0 -470
  193. package/storybook-static/assets/OrbitImages.stories-Bzf1HUks.js +0 -26
  194. package/storybook-static/assets/ScrollVelocity.stories-De4s_pOX.js +0 -9
  195. package/storybook-static/assets/Tabs-CLXu7F99.css +0 -1
  196. package/storybook-static/assets/Tabs.stories-7-b1PtWp.js +0 -64
  197. package/storybook-static/assets/client-C--dgtnn.js +0 -1
  198. package/storybook-static/assets/use-transform-D1fwdMmS.js +0 -1
@@ -0,0 +1,229 @@
1
+ import{r as S,j as e}from"./iframe-B8pH-Lvr.js";import{u as Pe}from"./use-motion-value--XhiA2Gt.js";import{u as Et}from"./use-transform-vyDqMhf-.js";import{m as de}from"./proxy-BA3VZtN5.js";import{T as Tt}from"./trash-2-BwI5jvsn.js";import{c as lt}from"./createLucideIcon-BNUG5osq.js";import{C as Nt}from"./check-Cty-Z1Ib.js";import{a as _e}from"./index-BN99WpBo.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-D5hZdVGx.js";/**
2
+ * @license lucide-react v0.539.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Mt=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],bt=lt("grip-vertical",Mt);/**
7
+ * @license lucide-react v0.539.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const jt=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Ht=lt("pencil",jt),$t="_calendar_90omi_2",Pt="_loading_90omi_14",Lt="_loadingSpinner_90omi_21",Bt="_header_90omi_27",Vt="_navigation_90omi_35",Ft="_navButton_90omi_41",It="_title_90omi_60",qt="_controls_90omi_70",zt="_todayButton_90omi_76",Rt="_viewToggle_90omi_92",At="_viewButton_90omi_99",Wt="_active_90omi_113",Gt="_weekDays_90omi_123",Ot="_weekNumberHeader_90omi_134",Yt="_weekDay_90omi_123",Ut="_daysGrid_90omi_151",Qt="_weekView_90omi_163",Jt="_dayCell_90omi_167",Kt="_dayNumber_90omi_196",Xt="_today_90omi_76",Zt="_events_90omi_215",en="_event_90omi_215",tn="_eventTitle_90omi_242",nn="_eventTime_90omi_251",an="_otherMonth_90omi_296",on="_selected_90omi_301",rn="_compact_90omi_312",sn="_dots_90omi_324",ln="_dot_90omi_324",cn="_dotMore_90omi_339",dn="_weekNumber_90omi_134",mn="_completed_90omi_389",un="_completedIcon_90omi_410",pn="_moreEvents_90omi_417",vn="_emptyState_90omi_427",yn="_dayView_90omi_437",gn="_dayViewHeader_90omi_446",hn="_timeColumnHeader_90omi_456",fn="_dayColumnHeader_90omi_463",wn="_allDayStrip_90omi_473",Dn="_allDayLabel_90omi_481",_n="_allDayList_90omi_492",Sn="_dayViewScrollContainer_90omi_515",xn="_dayTimelineGrid_90omi_524",Cn="_hourRow_90omi_529",kn="_hourLabel_90omi_535",En="_hourSlots_90omi_546",Tn="_halfHourSlot_90omi_553",Nn="_halfHourSlotBottom_90omi_563",Mn="_dayEventAnchor_90omi_568",bn="_currentTimeIndicator_90omi_576",n={calendar:$t,loading:Pt,loadingSpinner:Lt,header:Bt,navigation:Vt,navButton:Ft,title:It,controls:qt,todayButton:zt,viewToggle:Rt,viewButton:At,active:Wt,weekDays:Gt,weekNumberHeader:Ot,weekDay:Yt,daysGrid:Ut,weekView:Qt,dayCell:Jt,dayNumber:Kt,today:Xt,events:Zt,event:en,eventTitle:tn,eventTime:nn,otherMonth:an,selected:on,compact:rn,dots:sn,dot:ln,dotMore:cn,weekNumber:dn,completed:mn,completedIcon:un,moreEvents:pn,emptyState:vn,dayView:yn,dayViewHeader:gn,timeColumnHeader:hn,dayColumnHeader:fn,allDayStrip:wn,allDayLabel:Dn,allDayList:_n,dayViewScrollContainer:Sn,dayTimelineGrid:xn,hourRow:Cn,hourLabel:kn,hourSlots:En,halfHourSlot:Tn,halfHourSlotBottom:Nn,dayEventAnchor:Mn,currentTimeIndicator:bn},jn="_wrapper_15z7w_1",Hn="_deleteUnderlay_15z7w_7",$n="_card_15z7w_23",Pn="_dragging_15z7w_43",Ln="_completed_15z7w_49",Bn="_text_15z7w_53",Vn="_grip_15z7w_57",Fn="_checkIcon_15z7w_73",In="_time_15z7w_85",qn="_editButton_15z7w_92",E={wrapper:jn,deleteUnderlay:Hn,card:$n,dragging:Pn,completed:Ln,text:Bn,grip:Vn,checkIcon:Fn,time:In,editButton:qn},zn=-80,Se=({event:d,color:a,textColor:s,onComplete:m,onEdit:c,onDelete:u,onDragEnd:p,draggable:_=!0})=>{const T=Pe(0),H=Pe(0),q=Et(T,[-80,0],[1,0]),[N,w]=S.useState(!1),M=S.useRef(!1),b=S.useRef(null),K=d.status==="completed",X=(h,x)=>{u&&x.offset.x<zn?_e(T,-1e3,{duration:.2,onComplete:()=>u(d)}):_e(T,0,{type:"spring",stiffness:400,damping:30})},ve=()=>{if(M.current){M.current=!1;return}N||m==null||m(d)},z=h=>{!_||!p||(h.stopPropagation(),h.preventDefault(),b.current={y:h.clientY,pointerId:h.pointerId},h.currentTarget.setPointerCapture(h.pointerId),w(!0))},Z=h=>{if(!b.current)return;const x=h.clientY-b.current.y;H.set(x)},g=h=>{if(!b.current)return;const x=h.clientY;try{h.currentTarget.releasePointerCapture(b.current.pointerId)}catch{}b.current=null,w(!1),_e(H,0,{type:"spring",stiffness:400,damping:30}),p==null||p(x)},B=!!u,v=_&&!!p;return e.jsxs("div",{className:E.wrapper,children:[B&&e.jsxs(de.div,{className:E.deleteUnderlay,style:{opacity:q},children:[e.jsx(Tt,{size:16}),e.jsx("span",{children:"Delete"})]}),e.jsxs(de.div,{className:`${E.card} ${K?E.completed:""} ${N?E.dragging:""}`,style:{x:T,y:H,background:a,color:s,borderLeftColor:a},drag:B&&!N?"x":!1,dragConstraints:B?{left:-200,right:0}:void 0,dragElastic:.15,dragDirectionLock:!0,onDragStart:()=>{M.current=!0},onDragEnd:X,whileTap:N?void 0:{scale:.98},animate:N?{scale:1.03}:{scale:1},onClick:ve,children:[v&&e.jsx("div",{className:E.grip,onPointerDown:z,onPointerMove:Z,onPointerUp:g,onPointerCancel:g,onClick:h=>h.stopPropagation(),children:e.jsx(bt,{size:14})}),K&&e.jsx(Nt,{size:14,className:E.checkIcon,strokeWidth:3}),e.jsx("span",{className:E.text,children:d.title}),d.time&&e.jsx("span",{className:E.time,children:d.time}),c&&e.jsx("button",{className:E.editButton,onClick:h=>{h.stopPropagation(),c(d)},"aria-label":"Edit event",children:e.jsx(Ht,{size:13})})]})]})};Se.__docgenInfo={description:"",methods:[],displayName:"DayEventCard",props:{draggable:{defaultValue:{value:"true",computed:!1},required:!1}}};function Q({events:d,onEventClick:a,onDateClick:s,onEventClickByView:m,onDateClickByView:c,onTimeSlotClick:u,onEventDrop:p,onEventComplete:_,onEventDelete:T,onEventEdit:H,viewMode:q="month",initialDate:N=new Date,config:w={},className:M="",style:b={},loading:K=!1,emptyState:X,hideHeader:ve=!1,compact:z=!1,selectedDate:Z}){const[g,B]=S.useState(N),[v,h]=S.useState(q),x=S.useRef(null),{eventColors:xe={},iconRenderer:Ce,maxEventsPerDay:V=3,mondayStart:R=!1,showWeekNumbers:ke=!1,dateFormat:Ee={month:"long",year:"numeric"},locale:I="en-US",dayLabels:dt,monthNames:ee,startHour:A=0,endHour:mt=24,hourHeight:$=60,halfHourSlots:W=!1}=w,ut=dt||(R?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),Te=(w==null?void 0:w.hourHeight)??60,Ne=(w==null?void 0:w.startHour)??0;S.useEffect(()=>{if(v==="day"&&x.current){const t=new Date;if(g.toDateString()===t.toDateString()){const i=((t.getHours()-Ne)*60+t.getMinutes())/60*Te-100;setTimeout(()=>{x.current&&(x.current.scrollTop=Math.max(0,i))},0)}}},[v,g,Ne,Te]);const Me=S.useMemo(()=>{const t=g.getFullYear(),r=g.getMonth();let l,i,f;if(v==="week"){l=new Date(g);const k=l.getDay(),y=R?l.getDate()-k+(k===0?-6:1):l.getDate()-k;l=new Date(l.setDate(y)),l.setHours(0,0,0,0),i=new Date(l),i.setDate(i.getDate()+6);const F=l.toLocaleDateString(I,{day:"numeric",month:"short"}),L=i.toLocaleDateString(I,{day:"numeric",month:"short"});f=`${F} - ${L}`}else if(v==="day")l=new Date(g),l.setHours(0,0,0,0),i=new Date(g),i.setHours(23,59,59,999),f=g.toLocaleDateString(I,{weekday:"long",year:"numeric",month:"long",day:"numeric"});else{const k=new Date(t,r,1),y=new Date(t,r+1,0);l=new Date(k);const F=R?(k.getDay()+6)%7:k.getDay();l.setDate(l.getDate()-F),i=new Date(y);const L=R?(y.getDay()+6)%7:y.getDay();i.setDate(i.getDate()+(6-L)),ee&&ee[r]?f=`${ee[r]} ${t}`:f=g.toLocaleDateString(I,Ee)}const C=[],P=new Date(l);for(;P<=i;)C.push(new Date(P)),P.setDate(P.getDate()+1);return{days:C,displayTitle:f}},[g,v,R,I,Ee,ee]),be=t=>{const r=d.filter(l=>new Date(l.date).toDateString()===t.toDateString());return v==="week"?r.sort((l,i)=>{const f=l.time?je(l.time):999999,C=i.time?je(i.time):999999;return f-C}):r},je=t=>{const[r,l]=t.split(":").map(Number);return r*60+l},pt=()=>{const t=new Date(g);v==="week"?t.setDate(t.getDate()-7):v==="day"?t.setDate(t.getDate()-1):t.setMonth(t.getMonth()-1),B(t)},vt=()=>{const t=new Date(g);v==="week"?t.setDate(t.getDate()+7):v==="day"?t.setDate(t.getDate()+1):t.setMonth(t.getMonth()+1),B(t)},yt=()=>{B(new Date)},G=t=>{if(t.color)return t.color;if(t.type&&xe[t.type])return xe[t.type];const r={high:"#FF4444",medium:"#FFA500",low:"#4A90E2"};return t.priority&&r[t.priority]?r[t.priority]:"#4A90E2"},gt=t=>{const r=t.replace("#",""),l=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),f=parseInt(r.substring(4,6),16);return(.299*l+.587*i+.114*f)/255>.5?"#000000":"#FFFFFF"},ye=t=>{if(t.textColor)return t.textColor;const r=G(t);return gt(r)},ge=t=>{m&&m[v]?m[v](t):a&&a(t)},ht=t=>{c&&c[v]?c[v](t):s&&s(t)},ft=t=>{const r=new Date;return t.toDateString()===r.toDateString()},wt=t=>t.getMonth()===g.getMonth(),Dt=t=>{const r=new Date(t.getFullYear(),0,1),l=t.getTime()-r.getTime(),i=1e3*60*60*24*7;return Math.floor(l/i)+1};return K?e.jsx("div",{className:`${n.calendar} ${n.loading} ${M}`,style:b,children:e.jsx("div",{className:n.loadingSpinner,children:"Loading..."})}):e.jsxs("div",{className:`${n.calendar} ${z?n.compact:""} ${M}`,style:b,children:[!ve&&e.jsxs("div",{className:n.header,children:[e.jsxs("div",{className:n.navigation,children:[e.jsx("button",{onClick:pt,className:n.navButton,"aria-label":"Previous",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:e.jsx("polyline",{points:"15,18 9,12 15,6"})})}),e.jsx("h3",{className:n.title,children:Me.displayTitle}),e.jsx("button",{onClick:vt,className:n.navButton,"aria-label":"Next",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:e.jsx("polyline",{points:"9,6 15,12 9,18"})})})]}),e.jsxs("div",{className:n.controls,children:[e.jsx("button",{onClick:yt,className:n.todayButton,children:"Today"}),e.jsxs("div",{className:n.viewToggle,children:[e.jsx("button",{className:`${n.viewButton} ${v==="month"?n.active:""}`,onClick:()=>h("month"),children:"Month"}),e.jsx("button",{className:`${n.viewButton} ${v==="week"?n.active:""}`,onClick:()=>h("week"),children:"Week"}),e.jsx("button",{className:`${n.viewButton} ${v==="day"?n.active:""}`,onClick:()=>h("day"),children:"Day"})]})]})]}),v!=="day"&&e.jsxs("div",{className:n.weekDays,children:[ke&&e.jsx("div",{className:n.weekNumberHeader,children:"Week"}),ut.map(t=>e.jsx("div",{className:n.weekDay,children:t},t))]}),v==="day"?(()=>{const t=be(g),r=t.filter(o=>!o.allDay&&o.time),l=t.filter(o=>o.allDay||!o.time),i=Array.from({length:mt-A},(o,D)=>A+D),f=i.length*$,C=new Date,P=g.toDateString()===C.toDateString(),y=((C.getHours()-A)*60+C.getMinutes())/60*$,F=P&&y>=0&&y<=f,L=o=>{const[D,j]=o.split(":").map(Number);return D*60+j},_t=o=>{if(!o.time||!o.endTime)return 30;const D=L(o.endTime)-L(o.time);return D>0?D:30},he=(o,D)=>{if(u){const j=new Date(g);j.setHours(o,D,0,0);const O=`${o.toString().padStart(2,"0")}:${D.toString().padStart(2,"0")}`;u(j,o,O)}},St=(o,D)=>{var $e;if(!p)return;const j=($e=x.current)==null?void 0:$e.querySelector(`.${n.dayTimelineGrid}`);if(!j)return;const O=j.getBoundingClientRect(),fe=D-O.top,we=W?$/2:$,Y=Math.max(0,Math.floor(fe/we)),xt=W?i.length*2:i.length,De=Math.min(xt-1,Y),Ct=A+Math.floor(W?De/2:De),kt=W&&De%2===1?30:0,He=new Date(g);He.setHours(Ct,kt,0,0),p(o,He)};return e.jsxs("div",{className:n.dayView,children:[e.jsxs("div",{className:n.dayViewHeader,children:[e.jsx("div",{className:n.timeColumnHeader}),e.jsx("div",{className:n.dayColumnHeader,children:g.toLocaleDateString(I,{weekday:"short",day:"numeric"})})]}),l.length>0&&e.jsxs("div",{className:n.allDayStrip,children:[e.jsx("span",{className:n.allDayLabel,children:"All day"}),e.jsx("div",{className:n.allDayList,children:l.map(o=>e.jsx(Se,{event:o,color:G(o),textColor:ye(o),onComplete:_??(a?ge:void 0),onEdit:H,onDelete:T,draggable:!1},o.id))})]}),e.jsx("div",{className:n.dayViewScrollContainer,ref:x,children:e.jsxs("div",{className:n.dayTimelineGrid,style:{height:f},children:[i.map(o=>e.jsxs("div",{className:n.hourRow,style:{height:$},children:[e.jsxs("span",{className:n.hourLabel,children:[o.toString().padStart(2,"0"),":00"]}),e.jsx("div",{className:n.hourSlots,children:W?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:n.halfHourSlot,onClick:()=>he(o,0)}),e.jsx("div",{className:`${n.halfHourSlot} ${n.halfHourSlotBottom}`,onClick:()=>he(o,30)})]}):e.jsx("div",{className:n.halfHourSlot,onClick:()=>he(o,0)})})]},o)),r.map(o=>{const[D,j]=o.time.split(":").map(Number),O=(D-A)*$+j/60*$,fe=_t(o),we=Math.max(24,fe/60*$-2);return e.jsx("div",{className:n.dayEventAnchor,style:{top:O,height:we},onClick:Y=>Y.stopPropagation(),children:e.jsx(Se,{event:o,color:G(o),textColor:ye(o),onComplete:_??(a?ge:void 0),onEdit:H,onDelete:T,onDragEnd:p?Y=>St(o,Y):void 0})},o.id)}),F&&e.jsx("div",{className:n.currentTimeIndicator,style:{top:`${y}px`}})]})})]})})():(()=>{const t=v==="month"&&!z?40+V*24:void 0;return e.jsx("div",{className:`${n.daysGrid} ${v==="week"?n.weekView:""}`,children:Me.days.map((r,l)=>{const i=be(r),f=ft(r),C=v==="week"||wt(r),P=ke&&l%7===0,k=Z&&r.toDateString()===Z.toDateString();return e.jsxs(de.div,{className:`${n.dayCell} ${f?n.today:""} ${C?"":n.otherMonth} ${k?n.selected:""}`,style:t!==void 0?{height:t,minHeight:t}:void 0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:l*.02,ease:"easeOut"},onClick:()=>ht(r),children:[P&&e.jsx("div",{className:n.weekNumber,children:Dt(r)}),e.jsx("div",{className:n.dayNumber,children:r.getDate()}),i.length>0&&z&&v==="month"?e.jsxs("div",{className:n.dots,children:[i.slice(0,V).map(y=>e.jsx("span",{className:n.dot,style:{backgroundColor:G(y)}},y.id)),i.length>V&&e.jsxs("span",{className:n.dotMore,children:["+",i.length-V]})]}):i.length>0?e.jsxs("div",{className:n.events,children:[i.slice(0,V).map((y,F)=>e.jsxs(de.div,{className:`${n.event} ${y.status==="completed"?n.completed:""}`,style:{backgroundColor:G(y),color:ye(y),opacity:y.status==="completed"?.7:1},onClick:L=>{L.stopPropagation(),ge(y)},initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:F*.05,ease:"easeOut"},whileHover:{scale:1.02,y:-1,transition:{duration:.1}},whileTap:{scale:.98,transition:{duration:.1}},children:[Ce&&Ce(y),e.jsxs("span",{className:n.eventTitle,children:[y.time&&e.jsx("span",{className:n.eventTime,children:y.time}),y.title]}),y.status==="completed"&&e.jsx("svg",{className:n.completedIcon,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:e.jsx("polyline",{points:"20,6 9,17 4,12"})})]},y.id)),i.length>V&&e.jsxs("div",{className:n.moreEvents,children:["+",i.length-V," more"]})]}):X?e.jsx("div",{className:n.emptyState,children:X}):null]},`${r.getFullYear()}-${r.getMonth()}-${r.getDate()}`)})})})()]})}Q.__docgenInfo={description:`Calendar component - A flexible, reusable calendar for displaying events
12
+
13
+ @component
14
+ @description
15
+ A highly customizable calendar component that can display events in month or week view.
16
+ Supports custom event types, colors, icons, and localization. Perfect for scheduling,
17
+ project management, habit tracking, or any date-based data visualization.
18
+
19
+ @example
20
+ // Basic usage
21
+ <Calendar
22
+ events={myEvents}
23
+ onEventClick={handleEventClick}
24
+ viewMode="month"
25
+ />
26
+
27
+ @example
28
+ // With custom configuration
29
+ <Calendar
30
+ events={projectEvents}
31
+ config={{
32
+ eventColors: { task: '#4A90E2', meeting: '#7ED321' },
33
+ maxEventsPerDay: 5,
34
+ mondayStart: true
35
+ }}
36
+ onEventClick={handleEventClick}
37
+ />`,methods:[],displayName:"Calendar",props:{events:{required:!0,tsType:{name:"Array",elements:[{name:"CalendarEvent"}],raw:"CalendarEvent[]"},description:"Array of events to display"},onEventClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Callback when an event is clicked"},onDateClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}}},description:"Callback when a date is clicked"},onEventClickByView:{required:!1,tsType:{name:"signature",type:"object",raw:`{
38
+ month?: (event: CalendarEvent) => void;
39
+ week?: (event: CalendarEvent) => void;
40
+ day?: (event: CalendarEvent) => void;
41
+ }`,signature:{properties:[{key:"month",value:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}},required:!1}},{key:"week",value:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}},required:!1}},{key:"day",value:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}},required:!1}}]}},description:"View-specific event click handlers"},onDateClickByView:{required:!1,tsType:{name:"signature",type:"object",raw:`{
42
+ month?: (date: Date) => void;
43
+ week?: (date: Date) => void;
44
+ day?: (date: Date) => void;
45
+ }`,signature:{properties:[{key:"month",value:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}},required:!1}},{key:"week",value:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}},required:!1}},{key:"day",value:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}},required:!1}}]}},description:"View-specific date click handlers"},onTimeSlotClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(date: Date, hour: number, time: string) => void",signature:{arguments:[{type:{name:"Date"},name:"date"},{type:{name:"number"},name:"hour"},{type:{name:"string"},name:"time"}],return:{name:"void"}}},description:"Callback when a time slot is clicked in day view"},onEventDrop:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent, newDate: Date) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"},{type:{name:"Date"},name:"newDate"}],return:{name:"void"}}},description:"Callback when an event is dropped (drag-rescheduled) in day view"},onEventComplete:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Day view: callback when an event body is tapped to toggle complete"},onEventDelete:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Day view: callback when an event is swiped left to delete"},onEventEdit:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: CalendarEvent) => void",signature:{arguments:[{type:{name:"CalendarEvent"},name:"event"}],return:{name:"void"}}},description:"Day view: callback when an event's edit button is clicked"},viewMode:{required:!1,tsType:{name:"union",raw:"'month' | 'week' | 'day'",elements:[{name:"literal",value:"'month'"},{name:"literal",value:"'week'"},{name:"literal",value:"'day'"}]},description:"Initial view mode",defaultValue:{value:"'month'",computed:!1}},initialDate:{required:!1,tsType:{name:"Date"},description:"Initial date to display",defaultValue:{value:"new Date()",computed:!1}},config:{required:!1,tsType:{name:"CalendarConfig"},description:"Configuration options",defaultValue:{value:"{}",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}},emptyState:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:"Custom empty state component"},hideHeader:{required:!1,tsType:{name:"boolean"},description:"Hide the calendar header (navigation, title, view controls)",defaultValue:{value:"false",computed:!1}},compact:{required:!1,tsType:{name:"boolean"},description:"Compact mode - renders colored dots instead of event blocks in month view",defaultValue:{value:"false",computed:!1}},selectedDate:{required:!1,tsType:{name:"Date"},description:"Externally controlled selected date highlight (distinct from initialDate which controls navigation)"}}};const ta={title:"Organisms/Calendar",component:Q,parameters:{layout:"padded"},tags:["autodocs"],argTypes:{viewMode:{control:"radio",options:["month","week","day"]},compact:{control:"boolean"},config:{control:"object"},onEventClick:{action:"event-clicked"},onDateClick:{action:"date-clicked"},onTimeSlotClick:{action:"slot-clicked"}}},me=["#4A90E2","#7ED321","#BD10E0","#F5B829","#FF6B6B","#4ECDC4","#7C6FBF"],ue=["Morning standup","Sprint planning","Code review","1:1 with manager","Design critique","Client demo","Deep work","Lunch with Ava","Architecture review","Release sign-off","Interview (FE)","Write weekly summary","Bug triage","Pairing session","Retro","Security debrief"],pe=["meeting","task","review","deadline"],U=(d,a=0)=>`${d.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`,Rn=d=>{let a=d;return()=>{a|=0,a=a+1831565813|0;let s=Math.imul(a^a>>>15,1|a);return s=s+Math.imul(s^s>>>7,61|s)^s,((s^s>>>14)>>>0)/4294967296}},J=(d=42)=>{const a=Rn(d),s=new Date,m=[];for(let c=0;c<28;c++){const u=new Date(s);u.setDate(s.getDate()+Math.floor(a()*30)-15);const p=8+Math.floor(a()*10),_=a()>.5?0:30;m.push({id:`m-${c}`,title:ue[c%ue.length],date:u,time:a()>.35?U(p,_):void 0,type:pe[Math.floor(a()*pe.length)],status:a()>.75?"completed":"pending",color:me[c%me.length],textColor:"#ffffff"})}return m},An=()=>{const d=new Date,a=(s,m=0)=>{const c=new Date(d);return c.setHours(s,m,0,0),c};return[{id:"ad-1",title:"Offsite — Q2 planning",date:a(0),allDay:!0,color:"#7C6FBF",textColor:"#ffffff"},{id:"d-1",title:"Morning standup",date:a(9),time:"09:00",endTime:"09:30",status:"completed",color:"#4A90E2",textColor:"#ffffff"},{id:"d-2",title:"Deep work: refactor auth",date:a(10),time:"10:00",endTime:"12:00",color:"#F5B829",textColor:"#1a1a1a"},{id:"d-3",title:"Lunch with Ava",date:a(12,30),time:"12:30",endTime:"13:30",color:"#4ECDC4",textColor:"#1a1a1a"},{id:"d-4",title:"1:1 with manager",date:a(14),time:"14:00",endTime:"14:30",color:"#BD10E0",textColor:"#ffffff"},{id:"d-5",title:"Design review",date:a(15),time:"15:00",endTime:"16:30",color:"#FF6B6B",textColor:"#ffffff"},{id:"d-6",title:"Write weekly summary",date:a(17,30),time:"17:30",endTime:"18:00",color:"#10b981",textColor:"#ffffff"}]},ct=d=>{const a={meeting:"👥",task:"✓",review:"👀",deadline:"⏰"};return e.jsx("span",{style:{fontSize:11},children:a[d.type??""]??"📅"})},te={args:{events:J(),viewMode:"month",config:{mondayStart:!0,maxEventsPerDay:3,iconRenderer:ct}},render:d=>{const[a,s]=S.useState(d.events??[]);return e.jsx(Q,{...d,events:a,onEventClick:m=>{s(c=>c.map(u=>u.id===m.id?{...u,status:u.status==="completed"?"pending":"completed"}:u))},onDateClick:m=>{s(c=>[...c,{id:`new-${Date.now()}`,title:"New event",date:m,time:"15:00",type:"task",status:"pending",color:"#6366f1",textColor:"#ffffff"}])}})}},ne={args:{events:J(7),viewMode:"week",config:{mondayStart:!0,maxEventsPerDay:6,iconRenderer:ct}}},ae={args:{events:[],viewMode:"day",config:{startHour:6,endHour:24,hourHeight:72,halfHourSlots:!0,mondayStart:!0}},render:d=>{const[a,s]=S.useState(An());return e.jsx(Q,{...d,events:a,onTimeSlotClick:(m,c,u)=>{const p=Math.min(23,m.getHours()+1);s(_=>[..._,{id:`new-${Date.now()}`,title:`New @ ${u}`,date:m,time:u,endTime:U(p,m.getMinutes()),color:"#6366f1",textColor:"#ffffff"}])},onEventComplete:m=>s(c=>c.map(u=>u.id===m.id?{...u,status:u.status==="completed"?"pending":"completed"}:u)),onEventDelete:m=>s(c=>c.filter(u=>u.id!==m.id)),onEventEdit:m=>{const c=window.prompt("Rename event",m.title);c&&s(u=>u.map(p=>p.id===m.id?{...p,title:c}:p))},onEventDrop:(m,c)=>{s(u=>u.map(p=>{if(p.id!==m.id)return p;const _=new Date(p.date),T=c.getTime()-_.getTime(),H=(()=>{if(!p.endTime||!p.time)return p.endTime;const[q,N]=p.endTime.split(":").map(Number),w=new Date(_);w.setHours(q,N,0,0);const M=new Date(w.getTime()+T);return U(M.getHours(),M.getMinutes())})();return{...p,date:c,time:U(c.getHours(),c.getMinutes()),endTime:H}}))}})}},oe={args:{events:J(1),viewMode:"month",compact:!0,config:{mondayStart:!0,maxEventsPerDay:4},style:{maxWidth:420}}},re={args:{events:J(3),viewMode:"month",config:{mondayStart:!0,showWeekNumbers:!0,maxEventsPerDay:3}}},se={args:{events:(()=>{const d=new Date;return Array.from({length:9},(a,s)=>({id:`over-${s}`,title:ue[s%ue.length],date:new Date(d),time:U(8+s),type:pe[s%pe.length],color:me[s%me.length],textColor:"#ffffff"}))})(),viewMode:"month",config:{mondayStart:!0,maxEventsPerDay:3}}},ie={args:{events:[],loading:!0}},le={args:{events:[],viewMode:"month",config:{mondayStart:!0},emptyState:e.jsx("span",{style:{color:"var(--color-text-tertiary)",fontSize:11},children:"No events"})}},ce={args:{events:[]},render:()=>{const[d,a]=S.useState(new Date),s=S.useMemo(()=>J(9),[]);return e.jsxs("div",{style:{display:"grid",gap:"var(--spacing-md)"},children:[e.jsxs("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-text-secondary)"},children:["Selected: ",e.jsx("strong",{children:d.toLocaleDateString()})]}),e.jsx(Q,{events:s,viewMode:"month",selectedDate:d,onDateClick:a,config:{mondayStart:!0,maxEventsPerDay:3}})]})}};var Le,Be,Ve;te.parameters={...te.parameters,docs:{...(Le=te.parameters)==null?void 0:Le.docs,source:{originalSource:`{
46
+ args: {
47
+ events: buildMonthEvents(),
48
+ viewMode: 'month',
49
+ config: {
50
+ mondayStart: true,
51
+ maxEventsPerDay: 3,
52
+ iconRenderer: iconForType
53
+ }
54
+ },
55
+ render: args => {
56
+ const [events, setEvents] = useState<CalendarEvent[]>(args.events ?? []);
57
+ return <Calendar {...args} events={events} onEventClick={e => {
58
+ setEvents(prev => prev.map(ev => ev.id === e.id ? {
59
+ ...ev,
60
+ status: ev.status === 'completed' ? 'pending' : 'completed'
61
+ } : ev));
62
+ }} onDateClick={date => {
63
+ setEvents(prev => [...prev, {
64
+ id: \`new-\${Date.now()}\`,
65
+ title: 'New event',
66
+ date,
67
+ time: '15:00',
68
+ type: 'task',
69
+ status: 'pending',
70
+ color: '#6366f1',
71
+ textColor: '#ffffff'
72
+ }]);
73
+ }} />;
74
+ }
75
+ }`,...(Ve=(Be=te.parameters)==null?void 0:Be.docs)==null?void 0:Ve.source}}};var Fe,Ie,qe;ne.parameters={...ne.parameters,docs:{...(Fe=ne.parameters)==null?void 0:Fe.docs,source:{originalSource:`{
76
+ args: {
77
+ events: buildMonthEvents(7),
78
+ viewMode: 'week',
79
+ config: {
80
+ mondayStart: true,
81
+ maxEventsPerDay: 6,
82
+ iconRenderer: iconForType
83
+ }
84
+ }
85
+ }`,...(qe=(Ie=ne.parameters)==null?void 0:Ie.docs)==null?void 0:qe.source}}};var ze,Re,Ae;ae.parameters={...ae.parameters,docs:{...(ze=ae.parameters)==null?void 0:ze.docs,source:{originalSource:`{
86
+ args: {
87
+ events: [],
88
+ viewMode: 'day',
89
+ config: {
90
+ startHour: 6,
91
+ endHour: 24,
92
+ hourHeight: 72,
93
+ halfHourSlots: true,
94
+ mondayStart: true
95
+ }
96
+ },
97
+ render: args => {
98
+ const [events, setEvents] = useState<CalendarEvent[]>(buildDayEvents());
99
+ return <Calendar {...args} events={events} onTimeSlotClick={(date, _h, time) => {
100
+ const endH = Math.min(23, date.getHours() + 1);
101
+ setEvents(prev => [...prev, {
102
+ id: \`new-\${Date.now()}\`,
103
+ title: \`New @ \${time}\`,
104
+ date,
105
+ time,
106
+ endTime: hhmm(endH, date.getMinutes()),
107
+ color: '#6366f1',
108
+ textColor: '#ffffff'
109
+ }]);
110
+ }} onEventComplete={e => setEvents(prev => prev.map(ev => ev.id === e.id ? {
111
+ ...ev,
112
+ status: ev.status === 'completed' ? 'pending' : 'completed'
113
+ } : ev))} onEventDelete={e => setEvents(prev => prev.filter(ev => ev.id !== e.id))} onEventEdit={e => {
114
+ const next = window.prompt('Rename event', e.title);
115
+ if (!next) return;
116
+ setEvents(prev => prev.map(ev => ev.id === e.id ? {
117
+ ...ev,
118
+ title: next
119
+ } : ev));
120
+ }} onEventDrop={(e, newDate) => {
121
+ setEvents(prev => prev.map(ev => {
122
+ if (ev.id !== e.id) return ev;
123
+ const oldStart = new Date(ev.date);
124
+ const deltaMs = newDate.getTime() - oldStart.getTime();
125
+ const nextEndTime = (() => {
126
+ if (!ev.endTime || !ev.time) return ev.endTime;
127
+ const [oh, om] = ev.endTime.split(':').map(Number);
128
+ const endOld = new Date(oldStart);
129
+ endOld.setHours(oh, om, 0, 0);
130
+ const endNew = new Date(endOld.getTime() + deltaMs);
131
+ return hhmm(endNew.getHours(), endNew.getMinutes());
132
+ })();
133
+ return {
134
+ ...ev,
135
+ date: newDate,
136
+ time: hhmm(newDate.getHours(), newDate.getMinutes()),
137
+ endTime: nextEndTime
138
+ };
139
+ }));
140
+ }} />;
141
+ }
142
+ }`,...(Ae=(Re=ae.parameters)==null?void 0:Re.docs)==null?void 0:Ae.source}}};var We,Ge,Oe;oe.parameters={...oe.parameters,docs:{...(We=oe.parameters)==null?void 0:We.docs,source:{originalSource:`{
143
+ args: {
144
+ events: buildMonthEvents(1),
145
+ viewMode: 'month',
146
+ compact: true,
147
+ config: {
148
+ mondayStart: true,
149
+ maxEventsPerDay: 4
150
+ },
151
+ style: {
152
+ maxWidth: 420
153
+ }
154
+ }
155
+ }`,...(Oe=(Ge=oe.parameters)==null?void 0:Ge.docs)==null?void 0:Oe.source}}};var Ye,Ue,Qe;re.parameters={...re.parameters,docs:{...(Ye=re.parameters)==null?void 0:Ye.docs,source:{originalSource:`{
156
+ args: {
157
+ events: buildMonthEvents(3),
158
+ viewMode: 'month',
159
+ config: {
160
+ mondayStart: true,
161
+ showWeekNumbers: true,
162
+ maxEventsPerDay: 3
163
+ }
164
+ }
165
+ }`,...(Qe=(Ue=re.parameters)==null?void 0:Ue.docs)==null?void 0:Qe.source}}};var Je,Ke,Xe;se.parameters={...se.parameters,docs:{...(Je=se.parameters)==null?void 0:Je.docs,source:{originalSource:`{
166
+ args: {
167
+ events: (() => {
168
+ const today = new Date();
169
+ return Array.from({
170
+ length: 9
171
+ }, (_, i) => ({
172
+ id: \`over-\${i}\`,
173
+ title: TITLES[i % TITLES.length],
174
+ date: new Date(today),
175
+ time: hhmm(8 + i),
176
+ type: TYPES[i % TYPES.length],
177
+ color: PALETTE[i % PALETTE.length],
178
+ textColor: '#ffffff'
179
+ }));
180
+ })(),
181
+ viewMode: 'month',
182
+ config: {
183
+ mondayStart: true,
184
+ maxEventsPerDay: 3
185
+ }
186
+ }
187
+ }`,...(Xe=(Ke=se.parameters)==null?void 0:Ke.docs)==null?void 0:Xe.source}}};var Ze,et,tt;ie.parameters={...ie.parameters,docs:{...(Ze=ie.parameters)==null?void 0:Ze.docs,source:{originalSource:`{
188
+ args: {
189
+ events: [],
190
+ loading: true
191
+ }
192
+ }`,...(tt=(et=ie.parameters)==null?void 0:et.docs)==null?void 0:tt.source}}};var nt,at,ot;le.parameters={...le.parameters,docs:{...(nt=le.parameters)==null?void 0:nt.docs,source:{originalSource:`{
193
+ args: {
194
+ events: [],
195
+ viewMode: 'month',
196
+ config: {
197
+ mondayStart: true
198
+ },
199
+ emptyState: <span style={{
200
+ color: 'var(--color-text-tertiary)',
201
+ fontSize: 11
202
+ }}>
203
+ No events
204
+ </span>
205
+ }
206
+ }`,...(ot=(at=le.parameters)==null?void 0:at.docs)==null?void 0:ot.source}}};var rt,st,it;ce.parameters={...ce.parameters,docs:{...(rt=ce.parameters)==null?void 0:rt.docs,source:{originalSource:`{
207
+ args: {
208
+ events: []
209
+ },
210
+ render: () => {
211
+ const [selected, setSelected] = useState(new Date());
212
+ const events = useMemo(() => buildMonthEvents(9), []);
213
+ return <div style={{
214
+ display: 'grid',
215
+ gap: 'var(--spacing-md)'
216
+ }}>
217
+ <div style={{
218
+ fontSize: 'var(--font-size-sm)',
219
+ color: 'var(--color-text-secondary)'
220
+ }}>
221
+ Selected: <strong>{selected.toLocaleDateString()}</strong>
222
+ </div>
223
+ <Calendar events={events} viewMode="month" selectedDate={selected} onDateClick={setSelected} config={{
224
+ mondayStart: true,
225
+ maxEventsPerDay: 3
226
+ }} />
227
+ </div>;
228
+ }
229
+ }`,...(it=(st=ce.parameters)==null?void 0:st.docs)==null?void 0:it.source}}};const na=["Default","WeekView","DayView","CompactMonth","WithWeekNumbers","OverflowDay","Loading","Empty","ControlledSelection"];export{oe as CompactMonth,ce as ControlledSelection,ae as DayView,te as Default,le as Empty,ie as Loading,se as OverflowDay,ne as WeekView,re as WithWeekNumbers,na as __namedExportsOrder,ta as default};
@@ -1,4 +1,4 @@
1
- import{r as I,j as e}from"./iframe-LZvJb0BS.js";import{A as M}from"./index-vc18hLoj.js";import{m as _}from"./proxy-94dt0K2Y.js";const B="_card_k0xft_1",V="_hoverable_k0xft_50",A="_elevated_k0xft_65",L="_outlined_k0xft_78",S="_flat_k0xft_111",E="_glass_k0xft_156",W="_imageContainer_k0xft_187",F="_image_k0xft_187",H="_header_k0xft_233",R="_headerContent_k0xft_248",O="_expandButton_k0xft_254",D="_expandIcon_k0xft_285",J="_expandableContent_k0xft_289",U="_expandable_k0xft_289",X="_body_k0xft_313",z="_footer_k0xft_319",G="_title_k0xft_350",K="_subtitle_k0xft_366",Q="_clickable_k0xft_380",Y="_padding_k0xft_394",Z="_noPadding_k0xft_398",$="_loading_k0xft_403",ee="_loadingShimmer_k0xft_1",ae="_loadingPulse_k0xft_1",a={card:B,hoverable:V,elevated:A,outlined:L,flat:S,glass:E,imageContainer:W,image:F,header:H,headerContent:R,expandButton:O,expandIcon:D,expandableContent:J,expandable:U,body:X,footer:z,title:G,subtitle:K,clickable:Q,padding:Y,noPadding:Z,loading:$,loadingShimmer:ee,loadingPulse:ae},te=({variant:g="elevated",hoverable:d=!1,clickable:l=!1,padding:c=!0,image:p,imageAlt:v="",title:o,subtitle:s,header:u,footer:m,children:f,expandable:t=!1,defaultExpanded:C=!1,expanded:i,onExpandChange:r,className:b="",onClick:k,motionProps:y,...j})=>{const[T,N]=I.useState(C),n=i!==void 0?i:T,h=()=>{const x=!n;i===void 0&&N(x),r==null||r(x)},q=[a.card,a[g],d&&a.hoverable,l&&a.clickable,!c&&a.noPadding,t&&a.expandable,b].filter(Boolean).join(" "),w=()=>u?e.jsxs("div",{className:a.header,children:[e.jsx("div",{className:a.headerContent,children:u}),t&&e.jsx("button",{className:a.expandButton,onClick:h,"aria-label":n?"Collapse card":"Expand card",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a.expandIcon,style:{transform:n?"rotate(180deg)":"rotate(0deg)"},children:e.jsx("path",{d:"M6 9l6 6 6-6"})})})]}):o||s?e.jsxs("div",{className:a.header,children:[e.jsxs("div",{className:a.headerContent,children:[o&&e.jsx("h3",{className:a.title,children:o}),s&&e.jsx("p",{className:a.subtitle,children:s})]}),t&&e.jsx("button",{className:a.expandButton,onClick:h,"aria-label":n?"Collapse card":"Expand card",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a.expandIcon,style:{transform:n?"rotate(180deg)":"rotate(0deg)"},children:e.jsx("path",{d:"M6 9l6 6 6-6"})})})]}):null,P=e.jsxs(e.Fragment,{children:[p&&e.jsx("div",{className:a.imageContainer,children:e.jsx("img",{src:p,alt:v,className:a.image})}),w(),e.jsx(M,{initial:!1,children:(!t||n)&&e.jsxs(_.div,{initial:t?{height:0,opacity:0}:void 0,animate:t?{height:"auto",opacity:1}:void 0,exit:t?{height:0,opacity:0}:void 0,transition:{duration:.3,ease:"easeInOut"},className:a.expandableContent,children:[f&&e.jsx("div",{className:c?a.body:void 0,children:f}),m&&e.jsx("div",{className:a.footer,children:m})]},"content")})]});return e.jsx(_.div,{className:q,onClick:l?k:void 0,whileHover:d?{y:-4}:void 0,transition:{type:"spring",stiffness:400,damping:17},...y,...j,children:P})};te.__docgenInfo={description:`Card Component
1
+ import{r as I,j as e}from"./iframe-B8pH-Lvr.js";import{A as M}from"./index-DBfrIdYd.js";import{m as _}from"./proxy-BA3VZtN5.js";const B="_card_k0xft_1",V="_hoverable_k0xft_50",A="_elevated_k0xft_65",L="_outlined_k0xft_78",S="_flat_k0xft_111",E="_glass_k0xft_156",W="_imageContainer_k0xft_187",F="_image_k0xft_187",H="_header_k0xft_233",R="_headerContent_k0xft_248",O="_expandButton_k0xft_254",D="_expandIcon_k0xft_285",J="_expandableContent_k0xft_289",U="_expandable_k0xft_289",X="_body_k0xft_313",z="_footer_k0xft_319",G="_title_k0xft_350",K="_subtitle_k0xft_366",Q="_clickable_k0xft_380",Y="_padding_k0xft_394",Z="_noPadding_k0xft_398",$="_loading_k0xft_403",ee="_loadingShimmer_k0xft_1",ae="_loadingPulse_k0xft_1",a={card:B,hoverable:V,elevated:A,outlined:L,flat:S,glass:E,imageContainer:W,image:F,header:H,headerContent:R,expandButton:O,expandIcon:D,expandableContent:J,expandable:U,body:X,footer:z,title:G,subtitle:K,clickable:Q,padding:Y,noPadding:Z,loading:$,loadingShimmer:ee,loadingPulse:ae},te=({variant:g="elevated",hoverable:d=!1,clickable:l=!1,padding:c=!0,image:p,imageAlt:v="",title:o,subtitle:s,header:u,footer:m,children:f,expandable:t=!1,defaultExpanded:C=!1,expanded:i,onExpandChange:r,className:b="",onClick:k,motionProps:y,...j})=>{const[T,N]=I.useState(C),n=i!==void 0?i:T,h=()=>{const x=!n;i===void 0&&N(x),r==null||r(x)},q=[a.card,a[g],d&&a.hoverable,l&&a.clickable,!c&&a.noPadding,t&&a.expandable,b].filter(Boolean).join(" "),w=()=>u?e.jsxs("div",{className:a.header,children:[e.jsx("div",{className:a.headerContent,children:u}),t&&e.jsx("button",{className:a.expandButton,onClick:h,"aria-label":n?"Collapse card":"Expand card",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a.expandIcon,style:{transform:n?"rotate(180deg)":"rotate(0deg)"},children:e.jsx("path",{d:"M6 9l6 6 6-6"})})})]}):o||s?e.jsxs("div",{className:a.header,children:[e.jsxs("div",{className:a.headerContent,children:[o&&e.jsx("h3",{className:a.title,children:o}),s&&e.jsx("p",{className:a.subtitle,children:s})]}),t&&e.jsx("button",{className:a.expandButton,onClick:h,"aria-label":n?"Collapse card":"Expand card",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a.expandIcon,style:{transform:n?"rotate(180deg)":"rotate(0deg)"},children:e.jsx("path",{d:"M6 9l6 6 6-6"})})})]}):null,P=e.jsxs(e.Fragment,{children:[p&&e.jsx("div",{className:a.imageContainer,children:e.jsx("img",{src:p,alt:v,className:a.image})}),w(),e.jsx(M,{initial:!1,children:(!t||n)&&e.jsxs(_.div,{initial:t?{height:0,opacity:0}:void 0,animate:t?{height:"auto",opacity:1}:void 0,exit:t?{height:0,opacity:0}:void 0,transition:{duration:.3,ease:"easeInOut"},className:a.expandableContent,children:[f&&e.jsx("div",{className:c?a.body:void 0,children:f}),m&&e.jsx("div",{className:a.footer,children:m})]},"content")})]});return e.jsx(_.div,{className:q,onClick:l?k:void 0,whileHover:d?{y:-4}:void 0,transition:{type:"spring",stiffness:400,damping:17},...y,...j,children:P})};te.__docgenInfo={description:`Card Component
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{j as e,r as T}from"./iframe-LZvJb0BS.js";import{C as a}from"./Card--7bShmQv.js";import{B as t}from"./Button-DK4vPDdE.js";import"./preload-helper-C1FmrZbK.js";import"./index-vc18hLoj.js";import"./proxy-94dt0K2Y.js";import"./MotionConfigContext-D_4LMwJ5.js";import"./useSound-Dc8S51xy.js";const D={title:"Atoms/Card",component:a,parameters:{layout:"centered",docs:{description:{component:"A flexible container component with various styling options and animation support."}}},tags:["autodocs"],argTypes:{variant:{control:"select",options:["elevated","outlined","flat","glass"],description:"Visual style variant of the card"},padding:{control:"boolean"},hoverable:{control:"boolean"},clickable:{control:"boolean"},expandable:{control:"boolean"},defaultExpanded:{control:"boolean"},title:{control:"text"},subtitle:{control:"text"},onClick:{action:"clicked"},onExpandChange:{action:"expand-changed"}}},r={args:{title:"Card Title",subtitle:"Optional subtitle",hoverable:!0,children:e.jsx("p",{children:"Card content goes here. Use controls to switch between elevated, outlined, flat, and glass variants."})}},n={args:{variant:"elevated",hoverable:!0,image:"https://via.placeholder.com/350x200",imageAlt:"Feature image",children:e.jsxs("div",{style:{maxWidth:"350px"},children:[e.jsx("h2",{style:{marginBottom:"0.5rem"},children:"Feature Card"}),e.jsx("p",{style:{marginBottom:"1rem",color:"#666"},children:"Image, title, description, and action buttons composed together."}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[e.jsx(t,{variant:"primary",size:"small",children:"Learn More"}),e.jsx(t,{variant:"outline",size:"small",children:"Share"})]})]})}},l={render:()=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"1rem",maxWidth:"800px"},children:[e.jsxs(a,{variant:"elevated",hoverable:!0,children:[e.jsx("h4",{children:"Elevated"}),e.jsx("p",{children:"With shadow"})]}),e.jsxs(a,{variant:"outlined",hoverable:!0,children:[e.jsx("h4",{children:"Outlined"}),e.jsx("p",{children:"With border"})]}),e.jsxs(a,{variant:"glass",hoverable:!0,children:[e.jsx("h4",{children:"Glass"}),e.jsx("p",{children:"Glassmorphism"})]})]}),parameters:{controls:{disable:!0},layout:"padded"}},s={args:{title:"Expandable Card",subtitle:"Click the arrow to expand",expandable:!0,variant:"outlined",children:e.jsxs("div",{children:[e.jsx("p",{children:"This content is collapsible. Useful for FAQ sections, settings panels, or progressive disclosure."}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem",marginTop:"1rem"},children:[e.jsx(t,{variant:"primary",size:"small",children:"Action"}),e.jsx(t,{variant:"outline",size:"small",children:"Secondary"})]})]})}},i={render:()=>{const[d,p]=T.useState(!1);return e.jsxs("div",{style:{width:"400px"},children:[e.jsxs(a,{title:"Controlled Expandable",subtitle:"State managed externally",expandable:!0,expanded:d,onExpandChange:p,variant:"glass",hoverable:!0,children:[e.jsx("p",{children:"Expanded state is controlled via props."}),e.jsxs("p",{children:["Current: ",e.jsx("strong",{children:d?"Expanded":"Collapsed"})]})]}),e.jsx("div",{style:{marginTop:"1rem",textAlign:"center"},children:e.jsx(t,{variant:"primary",onClick:()=>p(!d),children:"External Toggle"})})]})},parameters:{controls:{disable:!0}}},o={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",maxWidth:"600px"},children:[e.jsx(a,{title:"Getting Started",expandable:!0,variant:"outlined",children:e.jsx("p",{children:"Create an account and follow the onboarding tutorial to get started."})}),e.jsx(a,{title:"Account Management",expandable:!0,variant:"outlined",children:e.jsx("p",{children:"Manage settings from the profile page: personal info, password, notifications."})}),e.jsx(a,{title:"Billing & Payments",expandable:!0,defaultExpanded:!0,variant:"outlined",children:e.jsx("p",{children:"We accept all major credit cards and PayPal. Billing is monthly or annual."})})]}),parameters:{controls:{disable:!0},layout:"padded"}};var c,m,u;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`{
1
+ import{j as e,r as T}from"./iframe-B8pH-Lvr.js";import{C as a}from"./Card-DNp-cUnt.js";import{B as t}from"./Button-CQGdvhpN.js";import"./preload-helper-C1FmrZbK.js";import"./index-DBfrIdYd.js";import"./proxy-BA3VZtN5.js";import"./MotionConfigContext-D5hZdVGx.js";import"./useSound-Bk2W5gkV.js";const D={title:"Atoms/Card",component:a,parameters:{layout:"centered",docs:{description:{component:"A flexible container component with various styling options and animation support."}}},tags:["autodocs"],argTypes:{variant:{control:"select",options:["elevated","outlined","flat","glass"],description:"Visual style variant of the card"},padding:{control:"boolean"},hoverable:{control:"boolean"},clickable:{control:"boolean"},expandable:{control:"boolean"},defaultExpanded:{control:"boolean"},title:{control:"text"},subtitle:{control:"text"},onClick:{action:"clicked"},onExpandChange:{action:"expand-changed"}}},r={args:{title:"Card Title",subtitle:"Optional subtitle",hoverable:!0,children:e.jsx("p",{children:"Card content goes here. Use controls to switch between elevated, outlined, flat, and glass variants."})}},n={args:{variant:"elevated",hoverable:!0,image:"https://via.placeholder.com/350x200",imageAlt:"Feature image",children:e.jsxs("div",{style:{maxWidth:"350px"},children:[e.jsx("h2",{style:{marginBottom:"0.5rem"},children:"Feature Card"}),e.jsx("p",{style:{marginBottom:"1rem",color:"#666"},children:"Image, title, description, and action buttons composed together."}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[e.jsx(t,{variant:"primary",size:"small",children:"Learn More"}),e.jsx(t,{variant:"outline",size:"small",children:"Share"})]})]})}},l={render:()=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"1rem",maxWidth:"800px"},children:[e.jsxs(a,{variant:"elevated",hoverable:!0,children:[e.jsx("h4",{children:"Elevated"}),e.jsx("p",{children:"With shadow"})]}),e.jsxs(a,{variant:"outlined",hoverable:!0,children:[e.jsx("h4",{children:"Outlined"}),e.jsx("p",{children:"With border"})]}),e.jsxs(a,{variant:"glass",hoverable:!0,children:[e.jsx("h4",{children:"Glass"}),e.jsx("p",{children:"Glassmorphism"})]})]}),parameters:{controls:{disable:!0},layout:"padded"}},s={args:{title:"Expandable Card",subtitle:"Click the arrow to expand",expandable:!0,variant:"outlined",children:e.jsxs("div",{children:[e.jsx("p",{children:"This content is collapsible. Useful for FAQ sections, settings panels, or progressive disclosure."}),e.jsxs("div",{style:{display:"flex",gap:"0.5rem",marginTop:"1rem"},children:[e.jsx(t,{variant:"primary",size:"small",children:"Action"}),e.jsx(t,{variant:"outline",size:"small",children:"Secondary"})]})]})}},i={render:()=>{const[d,p]=T.useState(!1);return e.jsxs("div",{style:{width:"400px"},children:[e.jsxs(a,{title:"Controlled Expandable",subtitle:"State managed externally",expandable:!0,expanded:d,onExpandChange:p,variant:"glass",hoverable:!0,children:[e.jsx("p",{children:"Expanded state is controlled via props."}),e.jsxs("p",{children:["Current: ",e.jsx("strong",{children:d?"Expanded":"Collapsed"})]})]}),e.jsx("div",{style:{marginTop:"1rem",textAlign:"center"},children:e.jsx(t,{variant:"primary",onClick:()=>p(!d),children:"External Toggle"})})]})},parameters:{controls:{disable:!0}}},o={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",maxWidth:"600px"},children:[e.jsx(a,{title:"Getting Started",expandable:!0,variant:"outlined",children:e.jsx("p",{children:"Create an account and follow the onboarding tutorial to get started."})}),e.jsx(a,{title:"Account Management",expandable:!0,variant:"outlined",children:e.jsx("p",{children:"Manage settings from the profile page: personal info, password, notifications."})}),e.jsx(a,{title:"Billing & Payments",expandable:!0,defaultExpanded:!0,variant:"outlined",children:e.jsx("p",{children:"We accept all major credit cards and PayPal. Billing is monthly or annual."})})]}),parameters:{controls:{disable:!0},layout:"padded"}};var c,m,u;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`{
2
2
  args: {
3
3
  title: 'Card Title',
4
4
  subtitle: 'Optional subtitle',
@@ -1,4 +1,4 @@
1
- import{r as o,j as r}from"./iframe-LZvJb0BS.js";import{g as u}from"./index-C8pce-KX.js";import{G as M}from"./iconBase-D_x0Veg_.js";import"./preload-helper-C1FmrZbK.js";function U(f){return M({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z"},child:[]}]})(f)}const G="_open_87iwp_63",O="_logo_87iwp_71",n={"card-nav-container":"_card-nav-container_87iwp_1","card-nav":"_card-nav_87iwp_1","card-nav-top":"_card-nav-top_87iwp_25","hamburger-menu":"_hamburger-menu_87iwp_38","hamburger-line":"_hamburger-line_87iwp_48",open:G,"logo-container":"_logo-container_87iwp_71",logo:O,"card-nav-cta-button":"_card-nav-cta-button_87iwp_84","card-nav-content":"_card-nav-content_87iwp_101","nav-card":"_nav-card_87iwp_121","nav-card-label":"_nav-card-label_87iwp_134","nav-card-links":"_nav-card-links_87iwp_140","nav-card-link":"_nav-card-link_87iwp_140"},L=({logo:f,logoAlt:$="Logo",items:m,className:N="",ease:b="power3.out",baseColor:k="#fff",menuColor:R,buttonBgColor:j,buttonTextColor:E})=>{const[A,g]=o.useState(!1),[s,_]=o.useState(!1),c=o.useRef(null),p=o.useRef([]),l=o.useRef(null),C=()=>{const e=c.current;if(!e)return 260;if(window.matchMedia("(max-width: 768px)").matches){const a=e.querySelector(".card-nav-content");if(a){const i=a.style.visibility,v=a.style.pointerEvents,S=a.style.position,T=a.style.height;a.style.visibility="visible",a.style.pointerEvents="auto",a.style.position="static",a.style.height="auto",a.offsetHeight;const V=60,q=16,I=a.scrollHeight;return a.style.visibility=i,a.style.pointerEvents=v,a.style.position=S,a.style.height=T,V+I+q}}return 260},h=()=>{const e=c.current;if(!e)return null;u.set(e,{height:60,overflow:"hidden"}),u.set(p.current,{y:50,opacity:0});const t=u.timeline({paused:!0});return t.to(e,{height:C,duration:.4,ease:b}),t.to(p.current,{y:0,opacity:1,duration:.4,ease:b,stagger:.08},"-=0.1"),t};o.useLayoutEffect(()=>{const e=h();return l.current=e,()=>{e==null||e.kill(),l.current=null}},[b,m]),o.useLayoutEffect(()=>{const e=()=>{if(l.current)if(s){const t=C();u.set(c.current,{height:t}),l.current.kill();const a=h();a&&(a.progress(1),l.current=a)}else{l.current.kill();const t=h();t&&(l.current=t)}};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[s]);const D=()=>{const e=l.current;e&&(s?(g(!1),e.eventCallback("onReverseComplete",()=>_(!1)),e.reverse()):(g(!0),_(!0),e.play(0)))},H=e=>t=>{t&&(p.current[e]=t)};return r.jsx("div",{className:`${n["card-nav-container"]} ${N}`,children:r.jsxs("nav",{ref:c,className:`${n["card-nav"]} ${s?n.open:""}`,style:{backgroundColor:k},children:[r.jsxs("div",{className:`${n["card-nav-top"]}`,children:[r.jsxs("div",{className:`${n["hamburger-menu"]} ${A?n.open:""}`,onClick:D,role:"button","aria-label":s?"Close menu":"Open menu",tabIndex:0,style:{color:R||"#000"},children:[r.jsx("div",{className:`${n["hamburger-line"]}`}),r.jsx("div",{className:`${n["hamburger-line"]}`})]}),r.jsx("div",{className:`${n["logo-container"]}`,children:r.jsx("img",{src:f,alt:$,className:`${n.logo}`})}),r.jsx("button",{type:"button",className:`${n["card-nav-cta-button"]}`,style:{backgroundColor:j,color:E},children:"Get Started"})]}),r.jsx("div",{className:`${n["card-nav-content"]}`,"aria-hidden":!s,children:(m||[]).slice(0,3).map((e,t)=>{var a;return r.jsxs("div",{className:`${n["nav-card"]}`,ref:H(t),style:{backgroundColor:e.bgColor,color:e.textColor},children:[r.jsx("div",{className:`${n["nav-card-label"]}`,children:e.label}),r.jsx("div",{className:`${n["nav-card-links"]}`,children:(a=e.links)==null?void 0:a.map((i,v)=>r.jsxs("a",{className:`${n["nav-card-link"]}`,href:i.href,"aria-label":i.ariaLabel,children:[r.jsx(U,{className:"nav-card-link-icon","aria-hidden":"true"}),i.label]},`${i.label}-${v}`))})]},`${e.label}-${t}`)})})]})})};L.__docgenInfo={description:"",methods:[],displayName:"CardNav",props:{logoAlt:{defaultValue:{value:"'Logo'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},ease:{defaultValue:{value:"'power3.out'",computed:!1},required:!1},baseColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1}}};const Z={title:"ReactBits/Components/CardNav",component:L,parameters:{layout:"fullscreen"},tags:["autodocs"]},d={args:{logoAlt:"Logo",items:[{label:"Products",bgColor:"#1a1a2e",textColor:"#fff",links:[{label:"Analytics",href:"#",ariaLabel:"Analytics"},{label:"Dashboard",href:"#",ariaLabel:"Dashboard"},{label:"Reports",href:"#",ariaLabel:"Reports"}]},{label:"Resources",bgColor:"#16213e",textColor:"#fff",links:[{label:"Documentation",href:"#",ariaLabel:"Documentation"},{label:"Tutorials",href:"#",ariaLabel:"Tutorials"}]},{label:"Company",bgColor:"#0f3460",textColor:"#fff",links:[{label:"About Us",href:"#",ariaLabel:"About Us"},{label:"Careers",href:"#",ariaLabel:"Careers"},{label:"Contact",href:"#",ariaLabel:"Contact"}]}],ease:"power3.out",baseColor:"#fff"}};var y,w,x;d.parameters={...d.parameters,docs:{...(y=d.parameters)==null?void 0:y.docs,source:{originalSource:`{
1
+ import{r as o,j as r}from"./iframe-B8pH-Lvr.js";import{g as u}from"./index-C8pce-KX.js";import{G as M}from"./iconBase-DmcmY1l-.js";import"./preload-helper-C1FmrZbK.js";function U(f){return M({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z"},child:[]}]})(f)}const G="_open_87iwp_63",O="_logo_87iwp_71",n={"card-nav-container":"_card-nav-container_87iwp_1","card-nav":"_card-nav_87iwp_1","card-nav-top":"_card-nav-top_87iwp_25","hamburger-menu":"_hamburger-menu_87iwp_38","hamburger-line":"_hamburger-line_87iwp_48",open:G,"logo-container":"_logo-container_87iwp_71",logo:O,"card-nav-cta-button":"_card-nav-cta-button_87iwp_84","card-nav-content":"_card-nav-content_87iwp_101","nav-card":"_nav-card_87iwp_121","nav-card-label":"_nav-card-label_87iwp_134","nav-card-links":"_nav-card-links_87iwp_140","nav-card-link":"_nav-card-link_87iwp_140"},L=({logo:f,logoAlt:$="Logo",items:m,className:N="",ease:b="power3.out",baseColor:k="#fff",menuColor:R,buttonBgColor:j,buttonTextColor:E})=>{const[A,g]=o.useState(!1),[s,_]=o.useState(!1),c=o.useRef(null),p=o.useRef([]),l=o.useRef(null),C=()=>{const e=c.current;if(!e)return 260;if(window.matchMedia("(max-width: 768px)").matches){const a=e.querySelector(".card-nav-content");if(a){const i=a.style.visibility,v=a.style.pointerEvents,S=a.style.position,T=a.style.height;a.style.visibility="visible",a.style.pointerEvents="auto",a.style.position="static",a.style.height="auto",a.offsetHeight;const V=60,q=16,I=a.scrollHeight;return a.style.visibility=i,a.style.pointerEvents=v,a.style.position=S,a.style.height=T,V+I+q}}return 260},h=()=>{const e=c.current;if(!e)return null;u.set(e,{height:60,overflow:"hidden"}),u.set(p.current,{y:50,opacity:0});const t=u.timeline({paused:!0});return t.to(e,{height:C,duration:.4,ease:b}),t.to(p.current,{y:0,opacity:1,duration:.4,ease:b,stagger:.08},"-=0.1"),t};o.useLayoutEffect(()=>{const e=h();return l.current=e,()=>{e==null||e.kill(),l.current=null}},[b,m]),o.useLayoutEffect(()=>{const e=()=>{if(l.current)if(s){const t=C();u.set(c.current,{height:t}),l.current.kill();const a=h();a&&(a.progress(1),l.current=a)}else{l.current.kill();const t=h();t&&(l.current=t)}};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[s]);const D=()=>{const e=l.current;e&&(s?(g(!1),e.eventCallback("onReverseComplete",()=>_(!1)),e.reverse()):(g(!0),_(!0),e.play(0)))},H=e=>t=>{t&&(p.current[e]=t)};return r.jsx("div",{className:`${n["card-nav-container"]} ${N}`,children:r.jsxs("nav",{ref:c,className:`${n["card-nav"]} ${s?n.open:""}`,style:{backgroundColor:k},children:[r.jsxs("div",{className:`${n["card-nav-top"]}`,children:[r.jsxs("div",{className:`${n["hamburger-menu"]} ${A?n.open:""}`,onClick:D,role:"button","aria-label":s?"Close menu":"Open menu",tabIndex:0,style:{color:R||"#000"},children:[r.jsx("div",{className:`${n["hamburger-line"]}`}),r.jsx("div",{className:`${n["hamburger-line"]}`})]}),r.jsx("div",{className:`${n["logo-container"]}`,children:r.jsx("img",{src:f,alt:$,className:`${n.logo}`})}),r.jsx("button",{type:"button",className:`${n["card-nav-cta-button"]}`,style:{backgroundColor:j,color:E},children:"Get Started"})]}),r.jsx("div",{className:`${n["card-nav-content"]}`,"aria-hidden":!s,children:(m||[]).slice(0,3).map((e,t)=>{var a;return r.jsxs("div",{className:`${n["nav-card"]}`,ref:H(t),style:{backgroundColor:e.bgColor,color:e.textColor},children:[r.jsx("div",{className:`${n["nav-card-label"]}`,children:e.label}),r.jsx("div",{className:`${n["nav-card-links"]}`,children:(a=e.links)==null?void 0:a.map((i,v)=>r.jsxs("a",{className:`${n["nav-card-link"]}`,href:i.href,"aria-label":i.ariaLabel,children:[r.jsx(U,{className:"nav-card-link-icon","aria-hidden":"true"}),i.label]},`${i.label}-${v}`))})]},`${e.label}-${t}`)})})]})})};L.__docgenInfo={description:"",methods:[],displayName:"CardNav",props:{logoAlt:{defaultValue:{value:"'Logo'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},ease:{defaultValue:{value:"'power3.out'",computed:!1},required:!1},baseColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1}}};const Z={title:"ReactBits/Components/CardNav",component:L,parameters:{layout:"fullscreen"},tags:["autodocs"]},d={args:{logoAlt:"Logo",items:[{label:"Products",bgColor:"#1a1a2e",textColor:"#fff",links:[{label:"Analytics",href:"#",ariaLabel:"Analytics"},{label:"Dashboard",href:"#",ariaLabel:"Dashboard"},{label:"Reports",href:"#",ariaLabel:"Reports"}]},{label:"Resources",bgColor:"#16213e",textColor:"#fff",links:[{label:"Documentation",href:"#",ariaLabel:"Documentation"},{label:"Tutorials",href:"#",ariaLabel:"Tutorials"}]},{label:"Company",bgColor:"#0f3460",textColor:"#fff",links:[{label:"About Us",href:"#",ariaLabel:"About Us"},{label:"Careers",href:"#",ariaLabel:"Careers"},{label:"Contact",href:"#",ariaLabel:"Contact"}]}],ease:"power3.out",baseColor:"#fff"}};var y,w,x;d.parameters={...d.parameters,docs:{...(y=d.parameters)==null?void 0:y.docs,source:{originalSource:`{
2
2
  args: {
3
3
  logoAlt: 'Logo',
4
4
  items: [{
@@ -1,4 +1,4 @@
1
- import{r as c,j as i}from"./iframe-LZvJb0BS.js";import{G as v}from"./iconBase-D_x0Veg_.js";import{u as Y}from"./use-motion-value-Cic9xvrL.js";import{m as k}from"./proxy-94dt0K2Y.js";import{u as z}from"./use-transform-D1fwdMmS.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-D_4LMwJ5.js";function K(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"3",y1:"9",x2:"21",y2:"9"},child:[]},{tag:"line",attr:{x1:"9",y1:"21",x2:"9",y2:"9"},child:[]}]})(e)}function Q(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 2 7 12 12 22 7 12 2"},child:[]},{tag:"polyline",attr:{points:"2 17 12 22 22 17"},child:[]},{tag:"polyline",attr:{points:"2 12 12 17 22 12"},child:[]}]})(e)}function X(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"},child:[]},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"},child:[]},{tag:"polyline",attr:{points:"10 9 9 9 8 9"},child:[]}]})(e)}function Z(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 18 22 12 16 6"},child:[]},{tag:"polyline",attr:{points:"8 6 2 12 8 18"},child:[]}]})(e)}function ee(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(e)}const te="_round_14jni_33",ne="_active_14jni_60",oe="_inactive_14jni_64",n={"carousel-container":"_carousel-container_14jni_1","carousel-track":"_carousel-track_14jni_11","carousel-item":"_carousel-item_14jni_15",round:te,"carousel-item-header":"_carousel-item-header_14jni_47","carousel-indicators-container":"_carousel-indicators-container_14jni_52","carousel-indicator":"_carousel-indicator_14jni_52",active:ne,inactive:oe,"carousel-icon-container":"_carousel-icon-container_14jni_74","carousel-icon":"_carousel-icon_14jni_74","carousel-item-content":"_carousel-item-content_14jni_90","carousel-item-title":"_carousel-item-title_14jni_95","carousel-item-description":"_carousel-item-description_14jni_102","carousel-indicators":"_carousel-indicators_14jni_52"},ie=[{title:"Text Animations",description:"Cool text animations for your projects.",id:1,icon:i.jsx(X,{className:`${n["carousel-icon"]}`})},{title:"Animations",description:"Smooth animations for your projects.",id:2,icon:i.jsx(ee,{className:`${n["carousel-icon"]}`})},{title:"Components",description:"Reusable components for your projects.",id:3,icon:i.jsx(Q,{className:`${n["carousel-icon"]}`})},{title:"Backgrounds",description:"Beautiful backgrounds and patterns for your projects.",id:4,icon:i.jsx(K,{className:`${n["carousel-icon"]}`})},{title:"Common UI",description:"Common UI components are coming soon!",id:5,icon:i.jsx(Z,{className:`${n["carousel-icon"]}`})}],S=0,B=500,T=16,se={type:"spring",stiffness:300,damping:30};function ae({item:e,index:l,itemWidth:g,round:m,trackItemOffset:u,x:s,transition:f}){const N=[-(l+1)*u,-l*u,-(l-1)*u],r=z(s,N,[90,0,-90],{clamp:!1});return i.jsxs(k.div,{className:`${n["carousel-item"]} ${m?n.round:""}`,style:{width:g,height:m?g:"100%",rotateY:r,...m&&{borderRadius:"50%"}},transition:f,children:[i.jsx("div",{className:`${n["carousel-item-header"]} ${m?n.round:""}`,children:i.jsx("span",{className:`${n["carousel-icon-container"]}`,children:e.icon})}),i.jsxs("div",{className:`${n["carousel-item-content"]}`,children:[i.jsx("div",{className:`${n["carousel-item-title"]}`,children:e.title}),i.jsx("p",{className:`${n["carousel-item-description"]}`,children:e.description})]})]},`${(e==null?void 0:e.id)??l}-${l}`)}function V({items:e=ie,baseWidth:l=300,autoplay:g=!1,autoplayDelay:m=3e3,pauseOnHover:u=!1,loop:s=!1,round:f=!1}){const x=l-32,r=x+T,a=c.useMemo(()=>s?e.length===0?[]:[e[e.length-1],...e,e[0]]:e,[e,s]),[d,p]=c.useState(s?1:0),h=Y(0),[L,A]=c.useState(!1),[q,j]=c.useState(!1),[w,_]=c.useState(!1),C=c.useRef(null);c.useEffect(()=>{if(u&&C.current){const o=C.current,t=()=>A(!0),y=()=>A(!1);return o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",y),()=>{o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",y)}}},[u]),c.useEffect(()=>{if(!g||a.length<=1||u&&L)return;const o=setInterval(()=>{p(t=>Math.min(t+1,a.length-1))},m);return()=>clearInterval(o)},[g,m,L,u,a.length]),c.useEffect(()=>{const o=s?1:0;p(o),h.set(-o*r)},[e.length,s,r,h]),c.useEffect(()=>{!s&&d>a.length-1&&p(Math.max(0,a.length-1))},[a.length,s,d]);const E=q?{duration:0}:se,P=()=>{_(!0)},U=()=>{if(!s||a.length<=1){_(!1);return}const o=a.length-1;if(d===o){j(!0);const t=1;p(t),h.set(-t*r),requestAnimationFrame(()=>{j(!1),_(!1)});return}if(d===0){j(!0);const t=e.length;p(t),h.set(-t*r),requestAnimationFrame(()=>{j(!1),_(!1)});return}_(!1)},W=(o,t)=>{const{offset:y,velocity:I}=t,R=y.x<-S||I.x<-B?1:y.x>S||I.x>B?-1:0;R!==0&&p(H=>{const O=H+R,J=a.length-1;return Math.max(0,Math.min(O,J))})},G=s?{}:{dragConstraints:{left:-r*Math.max(a.length-1,0),right:0}},F=e.length===0?0:s?(d-1+e.length)%e.length:Math.min(d,e.length-1);return i.jsxs("div",{ref:C,className:`${n["carousel-container"]} ${f?n.round:""}`,style:{width:`${l}px`,...f&&{height:`${l}px`,borderRadius:"50%"}},children:[i.jsx(k.div,{className:`${n["carousel-track"]}`,drag:w?!1:"x",...G,style:{width:x,gap:`${T}px`,perspective:1e3,perspectiveOrigin:`${d*r+x/2}px 50%`,x:h},onDragEnd:W,animate:{x:-(d*r)},transition:E,onAnimationStart:P,onAnimationComplete:U,children:a.map((o,t)=>i.jsx(ae,{item:o,index:t,itemWidth:x,round:f,trackItemOffset:r,x:h,transition:E},`${(o==null?void 0:o.id)??t}-${t}`))}),i.jsx("div",{className:`${n["carousel-indicators-container"]} ${f?n.round:""}`,children:i.jsx("div",{className:`${n["carousel-indicators"]}`,children:e.map((o,t)=>i.jsx(k.div,{className:`${n["carousel-indicator"]} ${F===t?n.active:n.inactive}`,animate:{scale:F===t?1.2:1},onClick:()=>p(s?t+1:t),transition:{duration:.15}},t))})})]})}V.__docgenInfo={description:"",methods:[],displayName:"Carousel",props:{items:{defaultValue:{value:`[
1
+ import{r as c,j as i}from"./iframe-B8pH-Lvr.js";import{G as v}from"./iconBase-DmcmY1l-.js";import{u as Y}from"./use-motion-value--XhiA2Gt.js";import{m as k}from"./proxy-BA3VZtN5.js";import{u as z}from"./use-transform-vyDqMhf-.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-D5hZdVGx.js";function K(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"3",y1:"9",x2:"21",y2:"9"},child:[]},{tag:"line",attr:{x1:"9",y1:"21",x2:"9",y2:"9"},child:[]}]})(e)}function Q(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 2 7 12 12 22 7 12 2"},child:[]},{tag:"polyline",attr:{points:"2 17 12 22 22 17"},child:[]},{tag:"polyline",attr:{points:"2 12 12 17 22 12"},child:[]}]})(e)}function X(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"},child:[]},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"},child:[]},{tag:"polyline",attr:{points:"10 9 9 9 8 9"},child:[]}]})(e)}function Z(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 18 22 12 16 6"},child:[]},{tag:"polyline",attr:{points:"8 6 2 12 8 18"},child:[]}]})(e)}function ee(e){return v({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(e)}const te="_round_14jni_33",ne="_active_14jni_60",oe="_inactive_14jni_64",n={"carousel-container":"_carousel-container_14jni_1","carousel-track":"_carousel-track_14jni_11","carousel-item":"_carousel-item_14jni_15",round:te,"carousel-item-header":"_carousel-item-header_14jni_47","carousel-indicators-container":"_carousel-indicators-container_14jni_52","carousel-indicator":"_carousel-indicator_14jni_52",active:ne,inactive:oe,"carousel-icon-container":"_carousel-icon-container_14jni_74","carousel-icon":"_carousel-icon_14jni_74","carousel-item-content":"_carousel-item-content_14jni_90","carousel-item-title":"_carousel-item-title_14jni_95","carousel-item-description":"_carousel-item-description_14jni_102","carousel-indicators":"_carousel-indicators_14jni_52"},ie=[{title:"Text Animations",description:"Cool text animations for your projects.",id:1,icon:i.jsx(X,{className:`${n["carousel-icon"]}`})},{title:"Animations",description:"Smooth animations for your projects.",id:2,icon:i.jsx(ee,{className:`${n["carousel-icon"]}`})},{title:"Components",description:"Reusable components for your projects.",id:3,icon:i.jsx(Q,{className:`${n["carousel-icon"]}`})},{title:"Backgrounds",description:"Beautiful backgrounds and patterns for your projects.",id:4,icon:i.jsx(K,{className:`${n["carousel-icon"]}`})},{title:"Common UI",description:"Common UI components are coming soon!",id:5,icon:i.jsx(Z,{className:`${n["carousel-icon"]}`})}],S=0,B=500,T=16,se={type:"spring",stiffness:300,damping:30};function ae({item:e,index:l,itemWidth:g,round:m,trackItemOffset:u,x:s,transition:f}){const N=[-(l+1)*u,-l*u,-(l-1)*u],r=z(s,N,[90,0,-90],{clamp:!1});return i.jsxs(k.div,{className:`${n["carousel-item"]} ${m?n.round:""}`,style:{width:g,height:m?g:"100%",rotateY:r,...m&&{borderRadius:"50%"}},transition:f,children:[i.jsx("div",{className:`${n["carousel-item-header"]} ${m?n.round:""}`,children:i.jsx("span",{className:`${n["carousel-icon-container"]}`,children:e.icon})}),i.jsxs("div",{className:`${n["carousel-item-content"]}`,children:[i.jsx("div",{className:`${n["carousel-item-title"]}`,children:e.title}),i.jsx("p",{className:`${n["carousel-item-description"]}`,children:e.description})]})]},`${(e==null?void 0:e.id)??l}-${l}`)}function V({items:e=ie,baseWidth:l=300,autoplay:g=!1,autoplayDelay:m=3e3,pauseOnHover:u=!1,loop:s=!1,round:f=!1}){const x=l-32,r=x+T,a=c.useMemo(()=>s?e.length===0?[]:[e[e.length-1],...e,e[0]]:e,[e,s]),[d,p]=c.useState(s?1:0),h=Y(0),[L,A]=c.useState(!1),[q,j]=c.useState(!1),[w,_]=c.useState(!1),C=c.useRef(null);c.useEffect(()=>{if(u&&C.current){const o=C.current,t=()=>A(!0),y=()=>A(!1);return o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",y),()=>{o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",y)}}},[u]),c.useEffect(()=>{if(!g||a.length<=1||u&&L)return;const o=setInterval(()=>{p(t=>Math.min(t+1,a.length-1))},m);return()=>clearInterval(o)},[g,m,L,u,a.length]),c.useEffect(()=>{const o=s?1:0;p(o),h.set(-o*r)},[e.length,s,r,h]),c.useEffect(()=>{!s&&d>a.length-1&&p(Math.max(0,a.length-1))},[a.length,s,d]);const E=q?{duration:0}:se,P=()=>{_(!0)},U=()=>{if(!s||a.length<=1){_(!1);return}const o=a.length-1;if(d===o){j(!0);const t=1;p(t),h.set(-t*r),requestAnimationFrame(()=>{j(!1),_(!1)});return}if(d===0){j(!0);const t=e.length;p(t),h.set(-t*r),requestAnimationFrame(()=>{j(!1),_(!1)});return}_(!1)},W=(o,t)=>{const{offset:y,velocity:I}=t,R=y.x<-S||I.x<-B?1:y.x>S||I.x>B?-1:0;R!==0&&p(H=>{const O=H+R,J=a.length-1;return Math.max(0,Math.min(O,J))})},G=s?{}:{dragConstraints:{left:-r*Math.max(a.length-1,0),right:0}},F=e.length===0?0:s?(d-1+e.length)%e.length:Math.min(d,e.length-1);return i.jsxs("div",{ref:C,className:`${n["carousel-container"]} ${f?n.round:""}`,style:{width:`${l}px`,...f&&{height:`${l}px`,borderRadius:"50%"}},children:[i.jsx(k.div,{className:`${n["carousel-track"]}`,drag:w?!1:"x",...G,style:{width:x,gap:`${T}px`,perspective:1e3,perspectiveOrigin:`${d*r+x/2}px 50%`,x:h},onDragEnd:W,animate:{x:-(d*r)},transition:E,onAnimationStart:P,onAnimationComplete:U,children:a.map((o,t)=>i.jsx(ae,{item:o,index:t,itemWidth:x,round:f,trackItemOffset:r,x:h,transition:E},`${(o==null?void 0:o.id)??t}-${t}`))}),i.jsx("div",{className:`${n["carousel-indicators-container"]} ${f?n.round:""}`,children:i.jsx("div",{className:`${n["carousel-indicators"]}`,children:e.map((o,t)=>i.jsx(k.div,{className:`${n["carousel-indicator"]} ${F===t?n.active:n.inactive}`,animate:{scale:F===t?1.2:1},onClick:()=>p(s?t+1:t),transition:{duration:.15}},t))})})]})}V.__docgenInfo={description:"",methods:[],displayName:"Carousel",props:{items:{defaultValue:{value:`[
2
2
  {
3
3
  title: 'Text Animations',
4
4
  description: 'Cool text animations for your projects.',
@@ -1,4 +1,4 @@
1
- import{r as i,j as a}from"./iframe-LZvJb0BS.js";import{u as k}from"./useSound-Dc8S51xy.js";const x="_checkboxLabel_kh8g9_1",f="_checkbox_kh8g9_1",g="_checkboxText_kh8g9_92",c={checkboxLabel:x,checkbox:f,checkboxText:g},C=({checked:o,onChange:r,label:s,disabled:h=!1,indeterminate:n=!1,id:l,name:d,value:b,soundConfig:e})=>{const t=i.useRef(null),{playSound:u}=k(e);return i.useEffect(()=>{t.current&&(t.current.indeterminate=n)},[n]),a.jsxs("label",{className:c.checkboxLabel,children:[a.jsx("input",{ref:t,type:"checkbox",checked:o,onChange:m=>{const p=m.target.checked;r(p),(e==null?void 0:e.onClick)!==!1&&u("toggle")},className:c.checkbox,disabled:h,id:l,name:d,value:b,"aria-checked":n?"mixed":o}),s&&a.jsx("span",{className:c.checkboxText,children:s})]})};C.__docgenInfo={description:`Checkbox component - Modern interactive checkbox with animations
1
+ import{r as i,j as a}from"./iframe-B8pH-Lvr.js";import{u as k}from"./useSound-Bk2W5gkV.js";const x="_checkboxLabel_kh8g9_1",f="_checkbox_kh8g9_1",g="_checkboxText_kh8g9_92",c={checkboxLabel:x,checkbox:f,checkboxText:g},C=({checked:o,onChange:r,label:s,disabled:h=!1,indeterminate:n=!1,id:l,name:d,value:b,soundConfig:e})=>{const t=i.useRef(null),{playSound:u}=k(e);return i.useEffect(()=>{t.current&&(t.current.indeterminate=n)},[n]),a.jsxs("label",{className:c.checkboxLabel,children:[a.jsx("input",{ref:t,type:"checkbox",checked:o,onChange:m=>{const p=m.target.checked;r(p),(e==null?void 0:e.onClick)!==!1&&u("toggle")},className:c.checkbox,disabled:h,id:l,name:d,value:b,"aria-checked":n?"mixed":o}),s&&a.jsx("span",{className:c.checkboxText,children:s})]})};C.__docgenInfo={description:`Checkbox component - Modern interactive checkbox with animations
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{r as w,j as s}from"./iframe-LZvJb0BS.js";import{C as c}from"./Checkbox-BZ4OK19r.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-Dc8S51xy.js";const q={title:"Atoms/Checkbox",component:c,parameters:{layout:"centered",docs:{description:{component:"A simple checkbox component with optional label."}}},tags:["autodocs"],argTypes:{checked:{control:"boolean",description:"Whether the checkbox is checked"},label:{control:"text",description:"Optional label text"},disabled:{control:"boolean",description:"Whether the checkbox is disabled"},onChange:{action:"changed"}}},n={args:{checked:!1,label:"Accept terms and conditions",onChange:()=>{}}},t={args:{checked:!0,label:"Subscribe to newsletter",onChange:()=>{}}},r={args:{checked:!1,onChange:()=>{}}},i={args:{checked:!1,label:"This option is disabled",disabled:!0,onChange:()=>{}}},l={args:{checked:!0,label:"This option is disabled and checked",disabled:!0,onChange:()=>{}}},d={args:{checked:!1,label:"Interactive checkbox",onChange:()=>{}},render:()=>{const[e,a]=w.useState(!1);return s.jsx(c,{checked:e,onChange:a,label:e?"Checked! Click to uncheck":"Unchecked! Click to check"})}},h={args:{checked:!1,label:"Multiple checkboxes example",onChange:()=>{}},render:()=>{const[e,a]=w.useState({option1:!1,option2:!0,option3:!1,option4:!1});return s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[s.jsx(c,{checked:e.option1,onChange:o=>a({...e,option1:o}),label:"Enable notifications"}),s.jsx(c,{checked:e.option2,onChange:o=>a({...e,option2:o}),label:"Receive marketing emails"}),s.jsx(c,{checked:e.option3,onChange:o=>a({...e,option3:o}),label:"Share usage statistics"}),s.jsx(c,{checked:e.option4,onChange:o=>a({...e,option4:o}),label:"Enable dark mode",disabled:!0})]})},parameters:{controls:{disable:!0}}};var p,k,b;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`{
1
+ import{r as w,j as s}from"./iframe-B8pH-Lvr.js";import{C as c}from"./Checkbox-Dw8W2w74.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-Bk2W5gkV.js";const q={title:"Atoms/Checkbox",component:c,parameters:{layout:"centered",docs:{description:{component:"A simple checkbox component with optional label."}}},tags:["autodocs"],argTypes:{checked:{control:"boolean",description:"Whether the checkbox is checked"},label:{control:"text",description:"Optional label text"},disabled:{control:"boolean",description:"Whether the checkbox is disabled"},onChange:{action:"changed"}}},n={args:{checked:!1,label:"Accept terms and conditions",onChange:()=>{}}},t={args:{checked:!0,label:"Subscribe to newsletter",onChange:()=>{}}},r={args:{checked:!1,onChange:()=>{}}},i={args:{checked:!1,label:"This option is disabled",disabled:!0,onChange:()=>{}}},l={args:{checked:!0,label:"This option is disabled and checked",disabled:!0,onChange:()=>{}}},d={args:{checked:!1,label:"Interactive checkbox",onChange:()=>{}},render:()=>{const[e,a]=w.useState(!1);return s.jsx(c,{checked:e,onChange:a,label:e?"Checked! Click to uncheck":"Unchecked! Click to check"})}},h={args:{checked:!1,label:"Multiple checkboxes example",onChange:()=>{}},render:()=>{const[e,a]=w.useState({option1:!1,option2:!0,option3:!1,option4:!1});return s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[s.jsx(c,{checked:e.option1,onChange:o=>a({...e,option1:o}),label:"Enable notifications"}),s.jsx(c,{checked:e.option2,onChange:o=>a({...e,option2:o}),label:"Receive marketing emails"}),s.jsx(c,{checked:e.option3,onChange:o=>a({...e,option3:o}),label:"Share usage statistics"}),s.jsx(c,{checked:e.option4,onChange:o=>a({...e,option4:o}),label:"Enable dark mode",disabled:!0})]})},parameters:{controls:{disable:!0}}};var p,k,b;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`{
2
2
  args: {
3
3
  checked: false,
4
4
  label: 'Accept terms and conditions',
@@ -1,4 +1,4 @@
1
- import{r as l,j as a}from"./iframe-LZvJb0BS.js";import{g as d}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const M="_role_1xucs_102",q="_handle_1xucs_103",t={"chroma-grid":"_chroma-grid_1xucs_1","chroma-card":"_chroma-card_1xucs_36","chroma-img-wrapper":"_chroma-img-wrapper_1xucs_72","chroma-info":"_chroma-info_1xucs_90",role:M,handle:q,"chroma-overlay":"_chroma-overlay_1xucs_107","chroma-fade":"_chroma-fade_1xucs_140"},b=({items:c,className:C="",radius:x=300,columns:y=3,rows:B=2,damping:_=.45,fadeOut:F=.6,ease:k="power3.out"})=>{const m=l.useRef(null),p=l.useRef(null),o=l.useRef(null),s=l.useRef(null),i=l.useRef({x:0,y:0}),E=[{image:"https://i.pravatar.cc/300?img=8",title:"Alex Rivera",subtitle:"Full Stack Developer",handle:"@alexrivera",borderColor:"#4F46E5",gradient:"linear-gradient(145deg, #4F46E5, #000)",url:"https://github.com/"},{image:"https://i.pravatar.cc/300?img=11",title:"Jordan Chen",subtitle:"DevOps Engineer",handle:"@jordanchen",borderColor:"#10B981",gradient:"linear-gradient(210deg, #10B981, #000)",url:"https://linkedin.com/in/"},{image:"https://i.pravatar.cc/300?img=3",title:"Morgan Blake",subtitle:"UI/UX Designer",handle:"@morganblake",borderColor:"#F59E0B",gradient:"linear-gradient(165deg, #F59E0B, #000)",url:"https://dribbble.com/"},{image:"https://i.pravatar.cc/300?img=16",title:"Casey Park",subtitle:"Data Scientist",handle:"@caseypark",borderColor:"#EF4444",gradient:"linear-gradient(195deg, #EF4444, #000)",url:"https://kaggle.com/"},{image:"https://i.pravatar.cc/300?img=25",title:"Sam Kim",subtitle:"Mobile Developer",handle:"@thesamkim",borderColor:"#8B5CF6",gradient:"linear-gradient(225deg, #8B5CF6, #000)",url:"https://github.com/"},{image:"https://i.pravatar.cc/300?img=60",title:"Tyler Rodriguez",subtitle:"Cloud Architect",handle:"@tylerrod",borderColor:"#06B6D4",gradient:"linear-gradient(135deg, #06B6D4, #000)",url:"https://aws.amazon.com/"}],D=c!=null&&c.length?c:E;l.useEffect(()=>{const e=m.current;if(!e)return;o.current=d.quickSetter(e,"--x","px"),s.current=d.quickSetter(e,"--y","px");const{width:r,height:n}=e.getBoundingClientRect();i.current={x:r/2,y:n/2},o.current(i.current.x),s.current(i.current.y)},[]);const w=(e,r)=>{d.to(i.current,{x:e,y:r,duration:_,ease:k,onUpdate:()=>{var n,u;(n=o.current)==null||n.call(o,i.current.x),(u=s.current)==null||u.call(s,i.current.y)},overwrite:!0})},R=e=>{const r=m.current.getBoundingClientRect();w(e.clientX-r.left,e.clientY-r.top),d.to(p.current,{opacity:0,duration:.25,overwrite:!0})},j=()=>{d.to(p.current,{opacity:1,duration:F,overwrite:!0})},S=e=>{e&&window.open(e,"_blank","noopener,noreferrer")},N=e=>{const r=e.currentTarget,n=r.getBoundingClientRect(),u=e.clientX-n.left,$=e.clientY-n.top;r.style.setProperty("--mouse-x",`${u}px`),r.style.setProperty("--mouse-y",`${$}px`)};return a.jsxs("div",{ref:m,className:`${t["chroma-grid"]} ${C}`,style:{"--r":`${x}px`,"--cols":y,"--rows":B},onPointerMove:R,onPointerLeave:j,children:[D.map((e,r)=>a.jsxs("article",{className:`${t["chroma-card"]}`,onMouseMove:N,onClick:()=>S(e.url),style:{"--card-border":e.borderColor||"transparent","--card-gradient":e.gradient,cursor:e.url?"pointer":"default"},children:[a.jsx("div",{className:`${t["chroma-img-wrapper"]}`,children:a.jsx("img",{src:e.image,alt:e.title,loading:"lazy"})}),a.jsxs("footer",{className:`${t["chroma-info"]}`,children:[a.jsx("h3",{className:"name",children:e.title}),e.handle&&a.jsx("span",{className:`${t.handle}`,children:e.handle}),a.jsx("p",{className:`${t.role}`,children:e.subtitle}),e.location&&a.jsx("span",{className:"location",children:e.location})]})]},r)),a.jsx("div",{className:`${t["chroma-overlay"]}`}),a.jsx("div",{ref:p,className:`${t["chroma-fade"]}`})]})};b.__docgenInfo={description:"",methods:[],displayName:"ChromaGrid",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},radius:{defaultValue:{value:"300",computed:!1},required:!1},columns:{defaultValue:{value:"3",computed:!1},required:!1},rows:{defaultValue:{value:"2",computed:!1},required:!1},damping:{defaultValue:{value:"0.45",computed:!1},required:!1},fadeOut:{defaultValue:{value:"0.6",computed:!1},required:!1},ease:{defaultValue:{value:"'power3.out'",computed:!1},required:!1}}};const V={title:"ReactBits/Components/ChromaGrid",component:b,parameters:{layout:"fullscreen"},tags:["autodocs"]},g={args:{items:[{image:"https://i.pravatar.cc/300?img=8",title:"Alex Rivera",subtitle:"Full Stack Developer",handle:"@alexrivera",borderColor:"#4F46E5",gradient:"linear-gradient(145deg, #4F46E5, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=11",title:"Jordan Chen",subtitle:"DevOps Engineer",handle:"@jordanchen",borderColor:"#10B981",gradient:"linear-gradient(210deg, #10B981, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=3",title:"Morgan Blake",subtitle:"UI/UX Designer",handle:"@morganblake",borderColor:"#F59E0B",gradient:"linear-gradient(165deg, #F59E0B, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=16",title:"Casey Park",subtitle:"Data Scientist",handle:"@caseypark",borderColor:"#EF4444",gradient:"linear-gradient(195deg, #EF4444, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=25",title:"Sam Kim",subtitle:"Mobile Developer",handle:"@thesamkim",borderColor:"#8B5CF6",gradient:"linear-gradient(225deg, #8B5CF6, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=60",title:"Tyler Rodriguez",subtitle:"Cloud Architect",handle:"@tylerrod",borderColor:"#06B6D4",gradient:"linear-gradient(135deg, #06B6D4, #000)",url:"#"}],radius:300,columns:3,rows:2,damping:.45,fadeOut:.6,ease:"power3.out"}};var h,v,f;g.parameters={...g.parameters,docs:{...(h=g.parameters)==null?void 0:h.docs,source:{originalSource:`{
1
+ import{r as l,j as a}from"./iframe-B8pH-Lvr.js";import{g as d}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const M="_role_1xucs_102",q="_handle_1xucs_103",t={"chroma-grid":"_chroma-grid_1xucs_1","chroma-card":"_chroma-card_1xucs_36","chroma-img-wrapper":"_chroma-img-wrapper_1xucs_72","chroma-info":"_chroma-info_1xucs_90",role:M,handle:q,"chroma-overlay":"_chroma-overlay_1xucs_107","chroma-fade":"_chroma-fade_1xucs_140"},b=({items:c,className:C="",radius:x=300,columns:y=3,rows:B=2,damping:_=.45,fadeOut:F=.6,ease:k="power3.out"})=>{const m=l.useRef(null),p=l.useRef(null),o=l.useRef(null),s=l.useRef(null),i=l.useRef({x:0,y:0}),E=[{image:"https://i.pravatar.cc/300?img=8",title:"Alex Rivera",subtitle:"Full Stack Developer",handle:"@alexrivera",borderColor:"#4F46E5",gradient:"linear-gradient(145deg, #4F46E5, #000)",url:"https://github.com/"},{image:"https://i.pravatar.cc/300?img=11",title:"Jordan Chen",subtitle:"DevOps Engineer",handle:"@jordanchen",borderColor:"#10B981",gradient:"linear-gradient(210deg, #10B981, #000)",url:"https://linkedin.com/in/"},{image:"https://i.pravatar.cc/300?img=3",title:"Morgan Blake",subtitle:"UI/UX Designer",handle:"@morganblake",borderColor:"#F59E0B",gradient:"linear-gradient(165deg, #F59E0B, #000)",url:"https://dribbble.com/"},{image:"https://i.pravatar.cc/300?img=16",title:"Casey Park",subtitle:"Data Scientist",handle:"@caseypark",borderColor:"#EF4444",gradient:"linear-gradient(195deg, #EF4444, #000)",url:"https://kaggle.com/"},{image:"https://i.pravatar.cc/300?img=25",title:"Sam Kim",subtitle:"Mobile Developer",handle:"@thesamkim",borderColor:"#8B5CF6",gradient:"linear-gradient(225deg, #8B5CF6, #000)",url:"https://github.com/"},{image:"https://i.pravatar.cc/300?img=60",title:"Tyler Rodriguez",subtitle:"Cloud Architect",handle:"@tylerrod",borderColor:"#06B6D4",gradient:"linear-gradient(135deg, #06B6D4, #000)",url:"https://aws.amazon.com/"}],D=c!=null&&c.length?c:E;l.useEffect(()=>{const e=m.current;if(!e)return;o.current=d.quickSetter(e,"--x","px"),s.current=d.quickSetter(e,"--y","px");const{width:r,height:n}=e.getBoundingClientRect();i.current={x:r/2,y:n/2},o.current(i.current.x),s.current(i.current.y)},[]);const w=(e,r)=>{d.to(i.current,{x:e,y:r,duration:_,ease:k,onUpdate:()=>{var n,u;(n=o.current)==null||n.call(o,i.current.x),(u=s.current)==null||u.call(s,i.current.y)},overwrite:!0})},R=e=>{const r=m.current.getBoundingClientRect();w(e.clientX-r.left,e.clientY-r.top),d.to(p.current,{opacity:0,duration:.25,overwrite:!0})},j=()=>{d.to(p.current,{opacity:1,duration:F,overwrite:!0})},S=e=>{e&&window.open(e,"_blank","noopener,noreferrer")},N=e=>{const r=e.currentTarget,n=r.getBoundingClientRect(),u=e.clientX-n.left,$=e.clientY-n.top;r.style.setProperty("--mouse-x",`${u}px`),r.style.setProperty("--mouse-y",`${$}px`)};return a.jsxs("div",{ref:m,className:`${t["chroma-grid"]} ${C}`,style:{"--r":`${x}px`,"--cols":y,"--rows":B},onPointerMove:R,onPointerLeave:j,children:[D.map((e,r)=>a.jsxs("article",{className:`${t["chroma-card"]}`,onMouseMove:N,onClick:()=>S(e.url),style:{"--card-border":e.borderColor||"transparent","--card-gradient":e.gradient,cursor:e.url?"pointer":"default"},children:[a.jsx("div",{className:`${t["chroma-img-wrapper"]}`,children:a.jsx("img",{src:e.image,alt:e.title,loading:"lazy"})}),a.jsxs("footer",{className:`${t["chroma-info"]}`,children:[a.jsx("h3",{className:"name",children:e.title}),e.handle&&a.jsx("span",{className:`${t.handle}`,children:e.handle}),a.jsx("p",{className:`${t.role}`,children:e.subtitle}),e.location&&a.jsx("span",{className:"location",children:e.location})]})]},r)),a.jsx("div",{className:`${t["chroma-overlay"]}`}),a.jsx("div",{ref:p,className:`${t["chroma-fade"]}`})]})};b.__docgenInfo={description:"",methods:[],displayName:"ChromaGrid",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},radius:{defaultValue:{value:"300",computed:!1},required:!1},columns:{defaultValue:{value:"3",computed:!1},required:!1},rows:{defaultValue:{value:"2",computed:!1},required:!1},damping:{defaultValue:{value:"0.45",computed:!1},required:!1},fadeOut:{defaultValue:{value:"0.6",computed:!1},required:!1},ease:{defaultValue:{value:"'power3.out'",computed:!1},required:!1}}};const V={title:"ReactBits/Components/ChromaGrid",component:b,parameters:{layout:"fullscreen"},tags:["autodocs"]},g={args:{items:[{image:"https://i.pravatar.cc/300?img=8",title:"Alex Rivera",subtitle:"Full Stack Developer",handle:"@alexrivera",borderColor:"#4F46E5",gradient:"linear-gradient(145deg, #4F46E5, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=11",title:"Jordan Chen",subtitle:"DevOps Engineer",handle:"@jordanchen",borderColor:"#10B981",gradient:"linear-gradient(210deg, #10B981, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=3",title:"Morgan Blake",subtitle:"UI/UX Designer",handle:"@morganblake",borderColor:"#F59E0B",gradient:"linear-gradient(165deg, #F59E0B, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=16",title:"Casey Park",subtitle:"Data Scientist",handle:"@caseypark",borderColor:"#EF4444",gradient:"linear-gradient(195deg, #EF4444, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=25",title:"Sam Kim",subtitle:"Mobile Developer",handle:"@thesamkim",borderColor:"#8B5CF6",gradient:"linear-gradient(225deg, #8B5CF6, #000)",url:"#"},{image:"https://i.pravatar.cc/300?img=60",title:"Tyler Rodriguez",subtitle:"Cloud Architect",handle:"@tylerrod",borderColor:"#06B6D4",gradient:"linear-gradient(135deg, #06B6D4, #000)",url:"#"}],radius:300,columns:3,rows:2,damping:.45,fadeOut:.6,ease:"power3.out"}};var h,v,f;g.parameters={...g.parameters,docs:{...(h=g.parameters)==null?void 0:h.docs,source:{originalSource:`{
2
2
  args: {
3
3
  items: [{
4
4
  image: 'https://i.pravatar.cc/300?img=8',
@@ -1,4 +1,4 @@
1
- import{r as S,j as A}from"./iframe-LZvJb0BS.js";import{G as V,R as j,T as _,P as C,M as R}from"./Mesh-CwXV3WjE.js";import{C as G}from"./Camera-BM3HOhP6.js";import{T as D}from"./Texture-BkQWYNP2.js";import"./preload-helper-C1FmrZbK.js";class b extends V{constructor(e,{width:t=1,height:i=1,widthSegments:s=1,heightSegments:n=1,attributes:a={}}={}){const r=s,o=n,h=(r+1)*(o+1),l=r*o*6,m=new Float32Array(h*3),g=new Float32Array(h*3),v=new Float32Array(h*2),w=l>65536?new Uint32Array(l):new Uint16Array(l);b.buildPlane(m,g,v,w,t,i,0,r,o),Object.assign(a,{position:{size:3,data:m},normal:{size:3,data:g},uv:{size:2,data:v},index:{data:w}}),super(e,a)}static buildPlane(e,t,i,s,n,a,r,o,h,l=0,m=1,g=2,v=1,w=-1,d=0,f=0){const x=d,P=n/o,U=a/h;for(let u=0;u<=h;u++){let I=u*U-a/2;for(let p=0;p<=o;p++,d++){let B=p*P-n/2;if(e[d*3+l]=B*v,e[d*3+m]=I*w,e[d*3+g]=r/2,t[d*3+l]=0,t[d*3+m]=0,t[d*3+g]=r>=0?1:-1,i[d*2]=p/o,i[d*2+1]=1-u/h,u===h||p===o)continue;let F=x+p+u*(o+1),M=x+p+(u+1)*(o+1),W=x+p+(u+1)*(o+1)+1,T=x+p+u*(o+1)+1;s[f*6]=F,s[f*6+1]=M,s[f*6+2]=T,s[f*6+3]=M,s[f*6+4]=W,s[f*6+5]=T,f++}}}}const q={"circular-gallery":"_circular-gallery_p9017_1"};function k(c,e){let t;return function(...i){clearTimeout(t),t=setTimeout(()=>c.apply(this,i),e)}}function H(c,e,t){return c+(e-c)*t}function N(c){const e=Object.getPrototypeOf(c);Object.getOwnPropertyNames(e).forEach(t=>{t!=="constructor"&&typeof c[t]=="function"&&(c[t]=c[t].bind(c))})}function X(c,e,t="bold 30px monospace",i="black"){const s=document.createElement("canvas"),n=s.getContext("2d");n.font=t;const a=n.measureText(e),r=Math.ceil(a.width),o=Math.ceil(parseInt(t,10)*1.2);s.width=r+20,s.height=o+20,n.font=t,n.fillStyle=i,n.textBaseline="middle",n.textAlign="center",n.clearRect(0,0,s.width,s.height),n.fillText(e,s.width/2,s.height/2);const h=new D(c,{generateMipmaps:!1});return h.image=s,{texture:h,width:s.width,height:s.height}}class Y{constructor({gl:e,plane:t,renderer:i,text:s,textColor:n="#545050",font:a="30px sans-serif"}){N(this),this.gl=e,this.plane=t,this.renderer=i,this.text=s,this.textColor=n,this.font=a,this.createMesh()}createMesh(){const{texture:e,width:t,height:i}=X(this.gl,this.text,this.font,this.textColor),s=new b(this.gl),n=new C(this.gl,{vertex:`
1
+ import{r as S,j as A}from"./iframe-B8pH-Lvr.js";import{G as V,R as j,T as _,P as C,M as R}from"./Mesh-CwXV3WjE.js";import{C as G}from"./Camera-BM3HOhP6.js";import{T as D}from"./Texture-BkQWYNP2.js";import"./preload-helper-C1FmrZbK.js";class b extends V{constructor(e,{width:t=1,height:i=1,widthSegments:s=1,heightSegments:n=1,attributes:a={}}={}){const r=s,o=n,h=(r+1)*(o+1),l=r*o*6,m=new Float32Array(h*3),g=new Float32Array(h*3),v=new Float32Array(h*2),w=l>65536?new Uint32Array(l):new Uint16Array(l);b.buildPlane(m,g,v,w,t,i,0,r,o),Object.assign(a,{position:{size:3,data:m},normal:{size:3,data:g},uv:{size:2,data:v},index:{data:w}}),super(e,a)}static buildPlane(e,t,i,s,n,a,r,o,h,l=0,m=1,g=2,v=1,w=-1,d=0,f=0){const x=d,P=n/o,U=a/h;for(let u=0;u<=h;u++){let I=u*U-a/2;for(let p=0;p<=o;p++,d++){let B=p*P-n/2;if(e[d*3+l]=B*v,e[d*3+m]=I*w,e[d*3+g]=r/2,t[d*3+l]=0,t[d*3+m]=0,t[d*3+g]=r>=0?1:-1,i[d*2]=p/o,i[d*2+1]=1-u/h,u===h||p===o)continue;let F=x+p+u*(o+1),M=x+p+(u+1)*(o+1),W=x+p+(u+1)*(o+1)+1,T=x+p+u*(o+1)+1;s[f*6]=F,s[f*6+1]=M,s[f*6+2]=T,s[f*6+3]=M,s[f*6+4]=W,s[f*6+5]=T,f++}}}}const q={"circular-gallery":"_circular-gallery_p9017_1"};function k(c,e){let t;return function(...i){clearTimeout(t),t=setTimeout(()=>c.apply(this,i),e)}}function H(c,e,t){return c+(e-c)*t}function N(c){const e=Object.getPrototypeOf(c);Object.getOwnPropertyNames(e).forEach(t=>{t!=="constructor"&&typeof c[t]=="function"&&(c[t]=c[t].bind(c))})}function X(c,e,t="bold 30px monospace",i="black"){const s=document.createElement("canvas"),n=s.getContext("2d");n.font=t;const a=n.measureText(e),r=Math.ceil(a.width),o=Math.ceil(parseInt(t,10)*1.2);s.width=r+20,s.height=o+20,n.font=t,n.fillStyle=i,n.textBaseline="middle",n.textAlign="center",n.clearRect(0,0,s.width,s.height),n.fillText(e,s.width/2,s.height/2);const h=new D(c,{generateMipmaps:!1});return h.image=s,{texture:h,width:s.width,height:s.height}}class Y{constructor({gl:e,plane:t,renderer:i,text:s,textColor:n="#545050",font:a="30px sans-serif"}){N(this),this.gl=e,this.plane=t,this.renderer=i,this.text=s,this.textColor=n,this.font=a,this.createMesh()}createMesh(){const{texture:e,width:t,height:i}=X(this.gl,this.text,this.font,this.textColor),s=new b(this.gl),n=new C(this.gl,{vertex:`
2
2
  attribute vec3 position;
3
3
  attribute vec2 uv;
4
4
  uniform mat4 modelViewMatrix;
@@ -1,4 +1,4 @@
1
- import{r as A,j as g}from"./iframe-LZvJb0BS.js";import{U as _,u as k}from"./MotionConfigContext-D_4LMwJ5.js";import{g as w,s as b,m as U}from"./proxy-94dt0K2Y.js";import{u as H}from"./use-motion-value-Cic9xvrL.js";import"./preload-helper-C1FmrZbK.js";function $(t){t.values.forEach(e=>e.stop())}function f(t,e){[...e].reverse().forEach(c=>{const o=t.getVariant(c);o&&b(t,o),t.variantChildren&&t.variantChildren.forEach(n=>{f(n,e)})})}function j(t,e){if(Array.isArray(e))return f(t,e);if(typeof e=="string")return f(t,[e]);b(t,e)}function I(){const t=new Set,e={subscribe(s){return t.add(s),()=>void t.delete(s)},start(s,c){const o=[];return t.forEach(n=>{o.push(w(n,s,{transitionOverride:c}))}),Promise.all(o)},set(s){return t.forEach(c=>{j(c,s)})},stop(){t.forEach(s=>{$(s)})},mount(){return()=>{e.stop()}}};return e}function M(){const t=_(I);return k(t.mount,[]),t}const q=M,L={"circular-text":"_circular-text_2sef0_1"},N=(t,e,s=!0)=>({from:e,to:e+360,ease:"linear",duration:t,type:"tween",repeat:s?1/0:0}),i=(t,e)=>({rotate:N(t,e),scale:{type:"spring",damping:20,stiffness:300}}),C=({text:t,spinDuration:e=20,onHover:s="speedUp",className:c=""})=>{const o=Array.from(t),n=q(),l=H(0);A.useEffect(()=>{const r=l.get();n.start({rotate:r+360,scale:1,transition:i(e,r)})},[e,t,s,n,l]);const v=()=>{const r=l.get();if(console.log("CircularText mounted with text:",t),!s)return;let a,u=1;switch(s){case"slowDown":a=i(e*2,r);break;case"speedUp":a=i(e/4,r);break;case"pause":a={rotate:{type:"spring",damping:20,stiffness:300},scale:{type:"spring",damping:20,stiffness:300}},u=1;break;case"goBonkers":a=i(e/20,r),u=.8;break;default:a=i(e,r)}n.start({rotate:r+360,scale:u,transition:a})},T=()=>{const r=l.get();n.start({rotate:r+360,scale:1,transition:i(e,r)})};return g.jsx(U.div,{className:`${L["circular-text"]} ${c}`,style:{rotate:l},initial:{rotate:0},animate:n,onMouseEnter:v,onMouseLeave:T,children:o.map((r,a)=>{const u=360/o.length*a,d=Math.PI/o.length,V=d*a,E=d*a,m=`rotateZ(${u}deg) translate3d(${V}px, ${E}px, 0)`;return g.jsx("span",{style:{transform:m,WebkitTransform:m},children:r},a)})})};C.__docgenInfo={description:"",methods:[],displayName:"CircularText",props:{spinDuration:{defaultValue:{value:"20",computed:!1},required:!1},onHover:{defaultValue:{value:"'speedUp'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const D={title:"ReactBits/TextAnimations/CircularText",component:C,parameters:{layout:"fullscreen"},tags:["autodocs"]},p={args:{text:"Hello World",spinDuration:20,onHover:"speedUp"}};var h,x,y;p.parameters={...p.parameters,docs:{...(h=p.parameters)==null?void 0:h.docs,source:{originalSource:`{
1
+ import{r as A,j as g}from"./iframe-B8pH-Lvr.js";import{U as _,u as k}from"./MotionConfigContext-D5hZdVGx.js";import{g as w,s as b,m as U}from"./proxy-BA3VZtN5.js";import{u as H}from"./use-motion-value--XhiA2Gt.js";import"./preload-helper-C1FmrZbK.js";function $(t){t.values.forEach(e=>e.stop())}function f(t,e){[...e].reverse().forEach(c=>{const o=t.getVariant(c);o&&b(t,o),t.variantChildren&&t.variantChildren.forEach(n=>{f(n,e)})})}function j(t,e){if(Array.isArray(e))return f(t,e);if(typeof e=="string")return f(t,[e]);b(t,e)}function I(){const t=new Set,e={subscribe(s){return t.add(s),()=>void t.delete(s)},start(s,c){const o=[];return t.forEach(n=>{o.push(w(n,s,{transitionOverride:c}))}),Promise.all(o)},set(s){return t.forEach(c=>{j(c,s)})},stop(){t.forEach(s=>{$(s)})},mount(){return()=>{e.stop()}}};return e}function M(){const t=_(I);return k(t.mount,[]),t}const q=M,L={"circular-text":"_circular-text_2sef0_1"},N=(t,e,s=!0)=>({from:e,to:e+360,ease:"linear",duration:t,type:"tween",repeat:s?1/0:0}),i=(t,e)=>({rotate:N(t,e),scale:{type:"spring",damping:20,stiffness:300}}),C=({text:t,spinDuration:e=20,onHover:s="speedUp",className:c=""})=>{const o=Array.from(t),n=q(),l=H(0);A.useEffect(()=>{const r=l.get();n.start({rotate:r+360,scale:1,transition:i(e,r)})},[e,t,s,n,l]);const v=()=>{const r=l.get();if(console.log("CircularText mounted with text:",t),!s)return;let a,u=1;switch(s){case"slowDown":a=i(e*2,r);break;case"speedUp":a=i(e/4,r);break;case"pause":a={rotate:{type:"spring",damping:20,stiffness:300},scale:{type:"spring",damping:20,stiffness:300}},u=1;break;case"goBonkers":a=i(e/20,r),u=.8;break;default:a=i(e,r)}n.start({rotate:r+360,scale:u,transition:a})},T=()=>{const r=l.get();n.start({rotate:r+360,scale:1,transition:i(e,r)})};return g.jsx(U.div,{className:`${L["circular-text"]} ${c}`,style:{rotate:l},initial:{rotate:0},animate:n,onMouseEnter:v,onMouseLeave:T,children:o.map((r,a)=>{const u=360/o.length*a,d=Math.PI/o.length,V=d*a,E=d*a,m=`rotateZ(${u}deg) translate3d(${V}px, ${E}px, 0)`;return g.jsx("span",{style:{transform:m,WebkitTransform:m},children:r},a)})})};C.__docgenInfo={description:"",methods:[],displayName:"CircularText",props:{spinDuration:{defaultValue:{value:"20",computed:!1},required:!1},onHover:{defaultValue:{value:"'speedUp'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const D={title:"ReactBits/TextAnimations/CircularText",component:C,parameters:{layout:"fullscreen"},tags:["autodocs"]},p={args:{text:"Hello World",spinDuration:20,onHover:"speedUp"}};var h,x,y;p.parameters={...p.parameters,docs:{...(h=p.parameters)==null?void 0:h.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: 'Hello World',
4
4
  spinDuration: 20,
@@ -1,4 +1,4 @@
1
- import{r as l,j as S}from"./iframe-LZvJb0BS.js";import"./preload-helper-C1FmrZbK.js";const V=({sparkColor:g="#fff",sparkSize:v=10,sparkRadius:x=15,sparkCount:m=8,duration:p=400,easing:R="ease-out",extraScale:k=1,children:b})=>{const i=l.useRef(null),h=l.useRef([]),C=l.useRef(null);l.useEffect(()=>{const e=i.current;if(!e)return;const t=e.parentElement;if(!t)return;let a;const s=()=>{const{width:r,height:c}=t.getBoundingClientRect();(e.width!==r||e.height!==c)&&(e.width=r,e.height=c)},o=()=>{clearTimeout(a),a=setTimeout(s,100)},n=new ResizeObserver(o);return n.observe(t),s(),()=>{n.disconnect(),clearTimeout(a)}},[]);const w=l.useCallback(e=>{switch(R){case"linear":return e;case"ease-in":return e*e;case"ease-in-out":return e<.5?2*e*e:-1+(4-2*e)*e;default:return e*(2-e)}},[R]);l.useEffect(()=>{const e=i.current;if(!e)return;const t=e.getContext("2d");let a;const s=o=>{C.current||(C.current=o),t.clearRect(0,0,e.width,e.height),h.current=h.current.filter(n=>{const r=o-n.startTime;if(r>=p)return!1;const c=r/p,u=w(c),f=u*x*k,y=v*(1-u),A=n.x+f*Math.cos(n.angle),M=n.y+f*Math.sin(n.angle),_=n.x+(f+y)*Math.cos(n.angle),j=n.y+(f+y)*Math.sin(n.angle);return t.strokeStyle=g,t.lineWidth=2,t.beginPath(),t.moveTo(A,M),t.lineTo(_,j),t.stroke(),!0}),a=requestAnimationFrame(s)};return a=requestAnimationFrame(s),()=>{cancelAnimationFrame(a)}},[g,v,x,m,p,w,k]);const z=e=>{const t=i.current;if(!t)return;const a=t.getBoundingClientRect(),s=e.clientX-a.left,o=e.clientY-a.top,n=performance.now(),r=Array.from({length:m},(c,u)=>({x:s,y:o,angle:2*Math.PI*u/m,startTime:n}));h.current.push(...r)};return S.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},onClick:z,children:[S.jsx("canvas",{ref:i,style:{width:"100%",height:"100%",display:"block",userSelect:"none",position:"absolute",top:0,left:0,pointerEvents:"none"}}),b]})};V.__docgenInfo={description:"",methods:[],displayName:"ClickSpark",props:{sparkColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},sparkSize:{defaultValue:{value:"10",computed:!1},required:!1},sparkRadius:{defaultValue:{value:"15",computed:!1},required:!1},sparkCount:{defaultValue:{value:"8",computed:!1},required:!1},duration:{defaultValue:{value:"400",computed:!1},required:!1},easing:{defaultValue:{value:"'ease-out'",computed:!1},required:!1},extraScale:{defaultValue:{value:"1.0",computed:!1},required:!1}}};const I={title:"ReactBits/Animations/ClickSpark",component:V,parameters:{layout:"fullscreen"},tags:["autodocs"]},d={args:{sparkColor:"#fff",sparkSize:10,sparkRadius:15,sparkCount:8,duration:400,easing:"ease-out",extraScale:1,children:"Hello World"}};var q,T,E;d.parameters={...d.parameters,docs:{...(q=d.parameters)==null?void 0:q.docs,source:{originalSource:`{
1
+ import{r as l,j as S}from"./iframe-B8pH-Lvr.js";import"./preload-helper-C1FmrZbK.js";const V=({sparkColor:g="#fff",sparkSize:v=10,sparkRadius:x=15,sparkCount:m=8,duration:p=400,easing:R="ease-out",extraScale:k=1,children:b})=>{const i=l.useRef(null),h=l.useRef([]),C=l.useRef(null);l.useEffect(()=>{const e=i.current;if(!e)return;const t=e.parentElement;if(!t)return;let a;const s=()=>{const{width:r,height:c}=t.getBoundingClientRect();(e.width!==r||e.height!==c)&&(e.width=r,e.height=c)},o=()=>{clearTimeout(a),a=setTimeout(s,100)},n=new ResizeObserver(o);return n.observe(t),s(),()=>{n.disconnect(),clearTimeout(a)}},[]);const w=l.useCallback(e=>{switch(R){case"linear":return e;case"ease-in":return e*e;case"ease-in-out":return e<.5?2*e*e:-1+(4-2*e)*e;default:return e*(2-e)}},[R]);l.useEffect(()=>{const e=i.current;if(!e)return;const t=e.getContext("2d");let a;const s=o=>{C.current||(C.current=o),t.clearRect(0,0,e.width,e.height),h.current=h.current.filter(n=>{const r=o-n.startTime;if(r>=p)return!1;const c=r/p,u=w(c),f=u*x*k,y=v*(1-u),A=n.x+f*Math.cos(n.angle),M=n.y+f*Math.sin(n.angle),_=n.x+(f+y)*Math.cos(n.angle),j=n.y+(f+y)*Math.sin(n.angle);return t.strokeStyle=g,t.lineWidth=2,t.beginPath(),t.moveTo(A,M),t.lineTo(_,j),t.stroke(),!0}),a=requestAnimationFrame(s)};return a=requestAnimationFrame(s),()=>{cancelAnimationFrame(a)}},[g,v,x,m,p,w,k]);const z=e=>{const t=i.current;if(!t)return;const a=t.getBoundingClientRect(),s=e.clientX-a.left,o=e.clientY-a.top,n=performance.now(),r=Array.from({length:m},(c,u)=>({x:s,y:o,angle:2*Math.PI*u/m,startTime:n}));h.current.push(...r)};return S.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},onClick:z,children:[S.jsx("canvas",{ref:i,style:{width:"100%",height:"100%",display:"block",userSelect:"none",position:"absolute",top:0,left:0,pointerEvents:"none"}}),b]})};V.__docgenInfo={description:"",methods:[],displayName:"ClickSpark",props:{sparkColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},sparkSize:{defaultValue:{value:"10",computed:!1},required:!1},sparkRadius:{defaultValue:{value:"15",computed:!1},required:!1},sparkCount:{defaultValue:{value:"8",computed:!1},required:!1},duration:{defaultValue:{value:"400",computed:!1},required:!1},easing:{defaultValue:{value:"'ease-out'",computed:!1},required:!1},extraScale:{defaultValue:{value:"1.0",computed:!1},required:!1}}};const I={title:"ReactBits/Animations/ClickSpark",component:V,parameters:{layout:"fullscreen"},tags:["autodocs"]},d={args:{sparkColor:"#fff",sparkSize:10,sparkRadius:15,sparkCount:8,duration:400,easing:"ease-out",extraScale:1,children:"Hello World"}};var q,T,E;d.parameters={...d.parameters,docs:{...(q=d.parameters)==null?void 0:q.docs,source:{originalSource:`{
2
2
  args: {
3
3
  sparkColor: '#fff',
4
4
  sparkSize: 10,