@stfrigerio/sito-template 0.1.57 → 0.1.59

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 (297) hide show
  1. package/dist/components/atoms/Button/Button.stories.d.ts +0 -1
  2. package/dist/components/atoms/Button/Button.stories.d.ts.map +1 -1
  3. package/dist/components/atoms/Card/Card.stories.d.ts +0 -1
  4. package/dist/components/atoms/Card/Card.stories.d.ts.map +1 -1
  5. package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +0 -7
  6. package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts.map +1 -1
  7. package/dist/components/atoms/DateInput/DateInput.stories.d.ts +0 -7
  8. package/dist/components/atoms/DateInput/DateInput.stories.d.ts.map +1 -1
  9. package/dist/components/atoms/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -15
  10. package/dist/components/atoms/LoadingSpinner/LoadingSpinner.stories.d.ts.map +1 -1
  11. package/dist/components/atoms/NumberStepper/NumberStepper.stories.d.ts +0 -16
  12. package/dist/components/atoms/NumberStepper/NumberStepper.stories.d.ts.map +1 -1
  13. package/dist/components/atoms/SearchableDropdown/SearchableDropdown.stories.d.ts +0 -9
  14. package/dist/components/atoms/SearchableDropdown/SearchableDropdown.stories.d.ts.map +1 -1
  15. package/dist/components/atoms/SelectInput/SelectInput.stories.d.ts +0 -6
  16. package/dist/components/atoms/SelectInput/SelectInput.stories.d.ts.map +1 -1
  17. package/dist/components/atoms/Slider/Slider.stories.d.ts.map +1 -1
  18. package/dist/components/atoms/TextArea/TextArea.stories.d.ts +0 -10
  19. package/dist/components/atoms/TextArea/TextArea.stories.d.ts.map +1 -1
  20. package/dist/components/atoms/TextInput/TextInput.stories.d.ts +0 -14
  21. package/dist/components/atoms/TextInput/TextInput.stories.d.ts.map +1 -1
  22. package/dist/components/atoms/Toggle/Toggle.stories.d.ts +0 -8
  23. package/dist/components/atoms/Toggle/Toggle.stories.d.ts.map +1 -1
  24. package/dist/components/atoms/ToggleButton/ToggleButton.stories.d.ts +0 -7
  25. package/dist/components/atoms/ToggleButton/ToggleButton.stories.d.ts.map +1 -1
  26. package/dist/components/molecules/ArrayInput/ArrayInput.stories.d.ts +0 -9
  27. package/dist/components/molecules/ArrayInput/ArrayInput.stories.d.ts.map +1 -1
  28. package/dist/components/molecules/EditFAB/EditFAB.stories.d.ts +1 -12
  29. package/dist/components/molecules/EditFAB/EditFAB.stories.d.ts.map +1 -1
  30. package/dist/components/molecules/SearchBar/SearchBar.stories.d.ts +0 -8
  31. package/dist/components/molecules/SearchBar/SearchBar.stories.d.ts.map +1 -1
  32. package/dist/components/molecules/Tabs/Tabs.stories.d.ts.map +1 -1
  33. package/dist/components/molecules/ThemeSwitcher/ThemeSwitcher.stories.d.ts +0 -3
  34. package/dist/components/molecules/ThemeSwitcher/ThemeSwitcher.stories.d.ts.map +1 -1
  35. package/dist/components/molecules/TimeInput/TimeInput.stories.d.ts +0 -6
  36. package/dist/components/molecules/TimeInput/TimeInput.stories.d.ts.map +1 -1
  37. package/dist/components/organisms/Calendar/Calendar.d.ts +21 -1
  38. package/dist/components/organisms/Calendar/Calendar.d.ts.map +1 -1
  39. package/dist/components/organisms/Calendar/Calendar.stories.d.ts +1 -1
  40. package/dist/components/organisms/Calendar/Calendar.stories.d.ts.map +1 -1
  41. package/dist/components/organisms/Calendar/DayEventCard.d.ts +1 -1
  42. package/dist/components/organisms/Calendar/DayEventCard.d.ts.map +1 -1
  43. package/dist/components/organisms/ImageSlideshow/ImageSlideshow.stories.d.ts +0 -23
  44. package/dist/components/organisms/ImageSlideshow/ImageSlideshow.stories.d.ts.map +1 -1
  45. package/dist/components/organisms/Navbar/Navbar.d.ts +1 -0
  46. package/dist/components/organisms/Navbar/Navbar.d.ts.map +1 -1
  47. package/dist/components/organisms/Navbar/Navbar.stories.d.ts +1 -7
  48. package/dist/components/organisms/Navbar/Navbar.stories.d.ts.map +1 -1
  49. package/dist/components/organisms/charts/BooleansHeatmap/BooleansHeatmap.stories.d.ts +1 -4
  50. package/dist/components/organisms/charts/BooleansHeatmap/BooleansHeatmap.stories.d.ts.map +1 -1
  51. package/dist/components/organisms/charts/PieChart/PieChart.stories.d.ts +1 -5
  52. package/dist/components/organisms/charts/PieChart/PieChart.stories.d.ts.map +1 -1
  53. package/dist/index.esm.js +148 -60
  54. package/dist/index.esm.js.map +1 -1
  55. package/dist/index.js +147 -59
  56. package/dist/index.js.map +1 -1
  57. package/dist/stories/utils.d.ts.map +1 -1
  58. package/dist/styles.css +1 -1
  59. package/dist/styles.css.map +1 -1
  60. package/dist/themes/dao.css +16 -1
  61. package/dist/themes/globals.css +2 -5
  62. package/package.json +1 -1
  63. package/storybook-static/assets/{ASCIIText.stories-LbmvFzzv.js → ASCIIText.stories-CsG3yKr5.js} +4 -4
  64. package/storybook-static/assets/{AllAtoms.stories-CLunFOjI.js → AllAtoms.stories-D2Pzz8c7.js} +1 -1
  65. package/storybook-static/assets/{AnimatedContent.stories-B8hBaVkK.js → AnimatedContent.stories-BP9feFGz.js} +1 -1
  66. package/storybook-static/assets/{AnimatedList.stories-D8a9eYqH.js → AnimatedList.stories-DQ8jdk44.js} +2 -2
  67. package/storybook-static/assets/{Antigravity.stories-D_mJbWK0.js → Antigravity.stories-BTIHyYKU.js} +1 -1
  68. package/storybook-static/assets/ArrayInput.stories-d5_OJJMu.js +138 -0
  69. package/storybook-static/assets/{Aurora.stories-BN4MataE.js → Aurora.stories-D_eQNPaB.js} +2 -2
  70. package/storybook-static/assets/{Beams.stories-CCtZOw8G.js → Beams.stories-VLKuYE0_.js} +6 -6
  71. package/storybook-static/assets/{BlobCursor.stories-CdB55R5G.js → BlobCursor.stories-BQJgTsuD.js} +1 -1
  72. package/storybook-static/assets/{BlurText.stories-Bg2Ih2Je.js → BlurText.stories-oSn5_w7h.js} +2 -2
  73. package/storybook-static/assets/BooleansHeatmap-C8cFXa7K.css +1 -0
  74. package/storybook-static/assets/BooleansHeatmap.stories-CHoCYK4N.js +63 -0
  75. package/storybook-static/assets/{BorderGlow.stories-CUxbrsvW.js → BorderGlow.stories-D-vgIU3S.js} +1 -1
  76. package/storybook-static/assets/{BubbleMenu.stories-DuVDLBsV.js → BubbleMenu.stories-DcWoqA7_.js} +1 -1
  77. package/storybook-static/assets/{Button-CQGdvhpN.js → Button-DgpqJWgD.js} +1 -1
  78. package/storybook-static/assets/{Button.stories-D8Xx3I9p.js → Button.stories-TQXKQagp.js} +2 -2
  79. package/storybook-static/assets/Calendar-BZCyXxvF.css +1 -0
  80. package/storybook-static/assets/Calendar.stories-D5CKBagI.js +321 -0
  81. package/storybook-static/assets/{Card-DNp-cUnt.js → Card-Bu54h8gN.js} +1 -1
  82. package/storybook-static/assets/{Card.stories-D1f1NTVU.js → Card.stories-Dw2bPvLo.js} +1 -1
  83. package/storybook-static/assets/{CardNav.stories-Cd4zEw8p.js → CardNav.stories-CnbwwAde.js} +1 -1
  84. package/storybook-static/assets/{Carousel.stories-BxbGwXE5.js → Carousel.stories-ChBLLqBg.js} +2 -2
  85. package/storybook-static/assets/{Checkbox-Dw8W2w74.js → Checkbox-Duyafa-Y.js} +1 -1
  86. package/storybook-static/assets/Checkbox.stories-Co7IxmK1.js +55 -0
  87. package/storybook-static/assets/{ChromaGrid.stories-DBHYiDPV.js → ChromaGrid.stories-68ukohGs.js} +1 -1
  88. package/storybook-static/assets/{CircularGallery.stories-TJN6o_RG.js → CircularGallery.stories-CV4iXVIX.js} +2 -2
  89. package/storybook-static/assets/{CircularText.stories-rNjRUNn2.js → CircularText.stories-DqYHtbPW.js} +1 -1
  90. package/storybook-static/assets/{ClickSpark.stories-BfqByoGe.js → ClickSpark.stories-DvAOxLjs.js} +1 -1
  91. package/storybook-static/assets/{ColorBends.stories-IEMOWAyf.js → ColorBends.stories-Dm4nxTTN.js} +2 -2
  92. package/storybook-static/assets/{CountUp.stories-DXPrKAQb.js → CountUp.stories-DTaL8Yfy.js} +1 -1
  93. package/storybook-static/assets/{Counter.stories-DMdecsw_.js → Counter.stories-Bf_2Js0l.js} +2 -2
  94. package/storybook-static/assets/{Crosshair.stories-CYzDxRSn.js → Crosshair.stories-DJjjCcED.js} +2 -2
  95. package/storybook-static/assets/{Cubes.stories-Drq4ULo3.js → Cubes.stories-Qh3JqlQW.js} +1 -1
  96. package/storybook-static/assets/{CurvedLoop.stories-C9GMKnIw.js → CurvedLoop.stories-BvyrCuM7.js} +1 -1
  97. package/storybook-static/assets/{DarkVeil.stories-BtLNfEH8.js → DarkVeil.stories-BVY870pm.js} +2 -2
  98. package/storybook-static/assets/{DateInput-CW4PsZAQ.js → DateInput-DfGES3te.js} +2 -2
  99. package/storybook-static/assets/DateInput-Dhcb9x13.css +1 -0
  100. package/storybook-static/assets/DateInput.stories-BXF8Ttde.js +51 -0
  101. package/storybook-static/assets/{DecayCard.stories-CAU_wTc7.js → DecayCard.stories-B0g2xWqX.js} +1 -1
  102. package/storybook-static/assets/{DecryptedText.stories-Dvba9C1V.js → DecryptedText.stories-fqDZfjv8.js} +1 -1
  103. package/storybook-static/assets/{Dither.stories-B5KfMprl.js → Dither.stories-B4N3Z5sW.js} +2 -2
  104. package/storybook-static/assets/{Dock.stories-oyQGRzlM.js → Dock.stories-f_YKz-pl.js} +1 -1
  105. package/storybook-static/assets/EditFAB.stories-LhVUDgtx.js +233 -0
  106. package/storybook-static/assets/{EvilEye.stories-C1820-DG.js → EvilEye.stories-BtBvvs31.js} +2 -2
  107. package/storybook-static/assets/{FadeContent.stories-B4z_JRy9.js → FadeContent.stories-oNqKrfSe.js} +1 -1
  108. package/storybook-static/assets/{FaultyTerminal.stories-DmkguJql.js → FaultyTerminal.stories-7nV4DvrW.js} +2 -2
  109. package/storybook-static/assets/{Fbo-CTQm-4Bw.js → Fbo-Clk04E0N.js} +1 -1
  110. package/storybook-static/assets/{FloatingLines.stories-CQvqKSpH.js → FloatingLines.stories-DgxhGl_b.js} +2 -2
  111. package/storybook-static/assets/{FlowingMenu.stories-DmOspv0B.js → FlowingMenu.stories-C5dfG25U.js} +1 -1
  112. package/storybook-static/assets/{FluidGlass.stories-CZSqxrNt.js → FluidGlass.stories-DGLlp1x1.js} +2 -2
  113. package/storybook-static/assets/{Folder.stories-7vb52Lfi.js → Folder.stories-BJGdA6Qb.js} +1 -1
  114. package/storybook-static/assets/{FuzzyText.stories-BdXN4VK1.js → FuzzyText.stories-DygRT6bB.js} +1 -1
  115. package/storybook-static/assets/{Galaxy.stories-BhT1GZh5.js → Galaxy.stories-BU6XCHeu.js} +2 -2
  116. package/storybook-static/assets/{GhostCursor.stories-DkXqCjE9.js → GhostCursor.stories-D_HIFPUl.js} +2 -2
  117. package/storybook-static/assets/{GlareHover.stories-CznX3yTV.js → GlareHover.stories-D5_-xnyP.js} +1 -1
  118. package/storybook-static/assets/{GlassSurface.stories-BnwwYK95.js → GlassSurface.stories-CrZqAGRq.js} +2 -2
  119. package/storybook-static/assets/{GlitchText.stories-CVcTBUVS.js → GlitchText.stories-BRqI-kBX.js} +2 -2
  120. package/storybook-static/assets/{GooeyNav.stories-C0abTHBc.js → GooeyNav.stories-DjR0-Th2.js} +1 -1
  121. package/storybook-static/assets/{GradientBlinds.stories-CpSguKtv.js → GradientBlinds.stories-CiIDtPz3.js} +2 -2
  122. package/storybook-static/assets/{GradientText.stories-B4hMx13h.js → GradientText.stories-pLA_An71.js} +1 -1
  123. package/storybook-static/assets/{Grainient.stories-5EakpvU2.js → Grainient.stories-BthRrRMd.js} +2 -2
  124. package/storybook-static/assets/{GridMotion.stories-Bm3DD7cb.js → GridMotion.stories-BSwjL8IE.js} +1 -1
  125. package/storybook-static/assets/ImageSlideshow.stories-BYAQMHlZ.js +108 -0
  126. package/storybook-static/assets/{Iridescence.stories-Cykk3hHZ.js → Iridescence.stories-ChHTH2TM.js} +2 -2
  127. package/storybook-static/assets/{LaserFlow.stories-CfiM4ZZ5.js → LaserFlow.stories-DlDx8Vr8.js} +2 -2
  128. package/storybook-static/assets/{LetterGlitch.stories-BXb7iSeX.js → LetterGlitch.stories-C-S2SRjU.js} +1 -1
  129. package/storybook-static/assets/{LightPillar.stories-CwI-8_BF.js → LightPillar.stories-D0PF-h7T.js} +3 -3
  130. package/storybook-static/assets/{LightRays.stories-BIIfv6Ky.js → LightRays.stories-Cbkl7wuP.js} +2 -2
  131. package/storybook-static/assets/{Lightning.stories-B8GNkzSN.js → Lightning.stories-BUs-gwYj.js} +2 -2
  132. package/storybook-static/assets/{LineWaves.stories-CjxdD_yt.js → LineWaves.stories-D2GXzteP.js} +2 -2
  133. package/storybook-static/assets/{LiquidChrome.stories-G7bVFJM9.js → LiquidChrome.stories-CtDp7th1.js} +2 -2
  134. package/storybook-static/assets/{LiquidEther.stories-C8n27zuA.js → LiquidEther.stories-DM2n5oEm.js} +2 -2
  135. package/storybook-static/assets/{LoadingSpinner-Br8TYFlF.js → LoadingSpinner-DaUSIVPY.js} +1 -1
  136. package/storybook-static/assets/LoadingSpinner.stories-Cx4_nNAf.js +21 -0
  137. package/storybook-static/assets/{MagicRings.stories-D50m_2UF.js → MagicRings.stories-CZt-cHcL.js} +2 -2
  138. package/storybook-static/assets/{Magnet.stories-BP9fjpzP.js → Magnet.stories-B6js1VeO.js} +1 -1
  139. package/storybook-static/assets/{MagnetLines.stories-DvbytV0Y.js → MagnetLines.stories-BKQ9YC_E.js} +1 -1
  140. package/storybook-static/assets/{Masonry.stories-xXYQw2uD.js → Masonry.stories-BGkTkNUa.js} +1 -1
  141. package/storybook-static/assets/{MetaBalls.stories-DKD3gVUH.js → MetaBalls.stories-Cao6Tqjg.js} +2 -2
  142. package/storybook-static/assets/{MetallicPaint.stories-Bz-uS-L_.js → MetallicPaint.stories-DF9qb3W_.js} +2 -2
  143. package/storybook-static/assets/MoodChart-ba3aY_qF.css +1 -0
  144. package/storybook-static/assets/MoodChart.stories-AGxwnR6s.js +40 -0
  145. package/storybook-static/assets/{MotionConfigContext-D5hZdVGx.js → MotionConfigContext-BCa1jVYq.js} +1 -1
  146. package/storybook-static/assets/Navbar-CH6O1IzY.css +1 -0
  147. package/storybook-static/assets/Navbar.stories-CFHb1c22.js +186 -0
  148. package/storybook-static/assets/{Noise.stories-D6C6-k8-.js → Noise.stories-ConXbyqm.js} +2 -2
  149. package/storybook-static/assets/{NumberStepper--0cJcLNZ.js → NumberStepper-DH9y3k8b.js} +1 -1
  150. package/storybook-static/assets/NumberStepper.stories-PMwPqbsn.js +88 -0
  151. package/storybook-static/assets/{Orb.stories-CS__2PJW.js → Orb.stories-DcXSWhV1.js} +2 -2
  152. package/storybook-static/assets/{OrbitImages.stories-CcaelcY5.js → OrbitImages.stories-Dk417qKA.js} +1 -1
  153. package/storybook-static/assets/PieChart-DXPBsaZR.css +1 -0
  154. package/storybook-static/assets/PieChart.stories-6sgfe6Xk.js +91 -0
  155. package/storybook-static/assets/{PixelBlast.stories-CyK8BxPq.js → PixelBlast.stories-_cBuognT.js} +2 -2
  156. package/storybook-static/assets/{PixelCard.stories-D_Og1Eve.js → PixelCard.stories-D_EZOUox.js} +1 -1
  157. package/storybook-static/assets/{PixelSnow.stories-CoCZucVV.js → PixelSnow.stories-DcD7737G.js} +2 -2
  158. package/storybook-static/assets/{PixelTransition.stories-DmVJ4jdu.js → PixelTransition.stories-BwNcUv5J.js} +1 -1
  159. package/storybook-static/assets/{Plasma.stories-DUqrW-qq.js → Plasma.stories-BLolMCfR.js} +2 -2
  160. package/storybook-static/assets/{Prism.stories-DWdVDcBG.js → Prism.stories-CG2_KGsq.js} +2 -2
  161. package/storybook-static/assets/{PrismaticBurst.stories-BEVYTjXo.js → PrismaticBurst.stories-DzS--Ffu.js} +2 -2
  162. package/storybook-static/assets/{ProfileCard.stories-CAoKQpAZ.js → ProfileCard.stories-vI_ispYe.js} +1 -1
  163. package/storybook-static/assets/QuantifiableHabitsChart-BiMp7Kkq.css +1 -0
  164. package/storybook-static/assets/{QuantifiableHabitsChart.stories-CMexb5Ij.js → QuantifiableHabitsChart.stories-D5yeGCZ5.js} +2 -2
  165. package/storybook-static/assets/{Radar.stories-Dcjnm9Bu.js → Radar.stories-DLv_hY9T.js} +2 -2
  166. package/storybook-static/assets/{Ribbons.stories-Cs3Eg2Gz.js → Ribbons.stories-4BbVINtW.js} +4 -4
  167. package/storybook-static/assets/{RippleGrid.stories-QV9Doq9P.js → RippleGrid.stories-CFh8tigy.js} +2 -2
  168. package/storybook-static/assets/{RotatingText.stories-DkntoAXJ.js → RotatingText.stories-AM4GcpU2.js} +2 -2
  169. package/storybook-static/assets/{ScrollFloat.stories-BaX43Ike.js → ScrollFloat.stories-Ct_ZkL7k.js} +1 -1
  170. package/storybook-static/assets/{ScrollReveal.stories-C2IWpLpI.js → ScrollReveal.stories-B7fcgLZ3.js} +1 -1
  171. package/storybook-static/assets/{ScrollVelocity.stories-LaYJ5WQN.js → ScrollVelocity.stories-BRDv3Fdk.js} +1 -1
  172. package/storybook-static/assets/SearchBar.stories-Dnmegbak.js +64 -0
  173. package/storybook-static/assets/{SearchableDropdown-4HgWY0Ck.js → SearchableDropdown-BtIsuxmT.js} +1 -1
  174. package/storybook-static/assets/SearchableDropdown.stories-DVub17TN.js +44 -0
  175. package/storybook-static/assets/{SelectInput-DvSeeIw5.js → SelectInput-C0kBLYgX.js} +1 -1
  176. package/storybook-static/assets/SelectInput.stories-HoF32-Km.js +94 -0
  177. package/storybook-static/assets/{ShapeBlur.stories-ZQV0yHkn.js → ShapeBlur.stories-C3RyLvBh.js} +2 -2
  178. package/storybook-static/assets/{ShapeGrid.stories-G_tZAcp9.js → ShapeGrid.stories-ltmu466o.js} +1 -1
  179. package/storybook-static/assets/{ShinyText.stories-C6BrLI0x.js → ShinyText.stories-JO2F4CpJ.js} +1 -1
  180. package/storybook-static/assets/{Silk.stories-BpsR4txJ.js → Silk.stories-CUzWiwqP.js} +2 -2
  181. package/storybook-static/assets/SleepChart-CjpdWR_T.css +1 -0
  182. package/storybook-static/assets/SleepChart.stories-YvCzf0BI.js +58 -0
  183. package/storybook-static/assets/Slider-BaDHm9m3.css +1 -0
  184. package/storybook-static/assets/{Slider-3iog5_du.js → Slider-CI9mXQSu.js} +1 -1
  185. package/storybook-static/assets/{Slider.stories-C8eUZ7Ne.js → Slider.stories-DQYlBjGq.js} +1 -1
  186. package/storybook-static/assets/{SoftAurora.stories--Rcyqxiu.js → SoftAurora.stories-ubq_KV8Q.js} +2 -2
  187. package/storybook-static/assets/{SoundDemo.stories-DvhKS2Fi.js → SoundDemo.stories-Cie-leKw.js} +1 -1
  188. package/storybook-static/assets/{SplashCursor.stories-FzRIUaX9.js → SplashCursor.stories-Clea3dMy.js} +2 -2
  189. package/storybook-static/assets/{SpotlightCard.stories-CifqsSUc.js → SpotlightCard.stories-BWv0AuTI.js} +1 -1
  190. package/storybook-static/assets/{Stack.stories-Dq82x0TG.js → Stack.stories-DxVGTJ6l.js} +1 -1
  191. package/storybook-static/assets/{StaggeredMenu.stories-CsiTDJGG.js → StaggeredMenu.stories-1UB8ravq.js} +1 -1
  192. package/storybook-static/assets/{StarBorder.stories-Ba14_TPk.js → StarBorder.stories-DiSAqN3r.js} +2 -2
  193. package/storybook-static/assets/{SunburstChart.stories-fREzDXM9.js → SunburstChart.stories-DLjQA_I1.js} +1 -1
  194. package/storybook-static/assets/Table-BFjXRRk3.css +1 -0
  195. package/storybook-static/assets/{Table.stories-CXsQAQrR.js → Table.stories-wQGb96WC.js} +6 -6
  196. package/storybook-static/assets/Tabs-CDVjuS9_.css +1 -0
  197. package/storybook-static/assets/{Tabs.stories-HeiG8gYN.js → Tabs.stories-jkioQ4xt.js} +4 -4
  198. package/storybook-static/assets/{TargetCursor.stories-B16pWZaP.js → TargetCursor.stories-B4ACbrmW.js} +1 -1
  199. package/storybook-static/assets/{TextArea-DKx3k6hV.js → TextArea-DN6IYITs.js} +1 -1
  200. package/storybook-static/assets/TextArea.stories-CwLLZFoD.js +118 -0
  201. package/storybook-static/assets/{TextCursor.stories-CY2eIn6Z.js → TextCursor.stories-NORQhkfy.js} +1 -1
  202. package/storybook-static/assets/TextInput-6V0mlIuS.css +1 -0
  203. package/storybook-static/assets/TextInput-CLgIGUn3.js +28 -0
  204. package/storybook-static/assets/TextInput.stories-BNooOWA2.js +89 -0
  205. package/storybook-static/assets/{TextPressure.stories-sH-cgdL2.js → TextPressure.stories-BaCAyBD4.js} +2 -2
  206. package/storybook-static/assets/{TextType.stories-B7Oy3P9u.js → TextType.stories-DG4mQ3HF.js} +1 -1
  207. package/storybook-static/assets/ThemeSwitcher.stories-slxIamHU.js +47 -0
  208. package/storybook-static/assets/{Threads.stories-e52ErKbM.js → Threads.stories-Rsg8lRsX.js} +2 -2
  209. package/storybook-static/assets/TimeInput-BT44V2P0.css +1 -0
  210. package/storybook-static/assets/TimeInput.stories-CaO8_PY2.js +13 -0
  211. package/storybook-static/assets/{Toggle-BntWdyUe.js → Toggle-CTTN-13k.js} +1 -1
  212. package/storybook-static/assets/Toggle.stories-DrNYDjFB.js +163 -0
  213. package/storybook-static/assets/{ToggleButton-BQqJdlB_.js → ToggleButton-CXK855yx.js} +1 -1
  214. package/storybook-static/assets/ToggleButton.stories-DNsNH9vH.js +103 -0
  215. package/storybook-static/assets/{TrueFocus.stories-wm4VXWCk.js → TrueFocus.stories-zG6Ml8RP.js} +1 -1
  216. package/storybook-static/assets/{VariableProximity.stories-BNSYs_rC.js → VariableProximity.stories-CMZW-Tov.js} +1 -1
  217. package/storybook-static/assets/{Waves.stories-Ce2ZJFsV.js → Waves.stories-CscXTp_S.js} +1 -1
  218. package/storybook-static/assets/{check-Cty-Z1Ib.js → check-DLeHG_Da.js} +1 -1
  219. package/storybook-static/assets/{chevron-down-OhqRl4eJ.js → chevron-down-Ciks5pXx.js} +1 -1
  220. package/storybook-static/assets/{chevron-right-CZm4bArI.js → chevron-right-DjeluSA0.js} +1 -1
  221. package/storybook-static/assets/client-D1KVnN68.js +1 -0
  222. package/storybook-static/assets/{createLucideIcon-BNUG5osq.js → createLucideIcon-dvowvj4F.js} +1 -1
  223. package/storybook-static/assets/{folder-BjriMpXc.js → folder-CCqkDvFG.js} +1 -1
  224. package/storybook-static/assets/{iconBase-DmcmY1l-.js → iconBase-nrk1zV8Q.js} +1 -1
  225. package/storybook-static/assets/iframe-CU5nRRrn.css +1 -0
  226. package/storybook-static/assets/{iframe-B8pH-Lvr.js → iframe-Cw8dCV4Z.js} +180 -181
  227. package/storybook-static/assets/{index-PY_vM88c.js → index-A7l1uA6_.js} +6 -6
  228. package/storybook-static/assets/{index-BN99WpBo.js → index-Bm5msOcI.js} +1 -1
  229. package/storybook-static/assets/{index-DBfrIdYd.js → index-CzApopWo.js} +1 -1
  230. package/storybook-static/assets/{proxy-BA3VZtN5.js → proxy-p8L3T_Zy.js} +1 -1
  231. package/storybook-static/assets/{react-18-7dGub68c.js → react-18-D7YhBYbX.js} +1 -1
  232. package/storybook-static/assets/{react-three-fiber.esm-DI-wNJmP.js → react-three-fiber.esm-BnMrba87.js} +1 -1
  233. package/storybook-static/assets/{search-2YqBkJlG.js → search-7V6DOf2z.js} +1 -1
  234. package/storybook-static/assets/{settings-DvzICcFU.js → settings-B8s5hJGs.js} +1 -1
  235. package/storybook-static/assets/{sun-DgDhCM_S.js → sun-5V6ee2LJ.js} +1 -1
  236. package/storybook-static/assets/{trash-2-BwI5jvsn.js → trash-2-DeQvYdO7.js} +1 -1
  237. package/storybook-static/assets/{use-animation-frame-CF42h0i5.js → use-animation-frame-DovyG_Es.js} +1 -1
  238. package/storybook-static/assets/{use-in-view-Zn8evg3J.js → use-in-view-Dv3LTdsl.js} +1 -1
  239. package/storybook-static/assets/{use-motion-value--XhiA2Gt.js → use-motion-value-BVm7csqA.js} +1 -1
  240. package/storybook-static/assets/{use-spring-CrWzlBMd.js → use-spring-BkrdNVnG.js} +1 -1
  241. package/storybook-static/assets/{use-transform-vyDqMhf-.js → use-transform-CQNghMvr.js} +1 -1
  242. package/storybook-static/assets/{useSound-Bk2W5gkV.js → useSound-D23BsIr4.js} +1 -1
  243. package/storybook-static/assets/{users-aNPxMiig.js → users-R6T-yLyH.js} +1 -1
  244. package/storybook-static/assets/{x-BC8LCdn9.js → x-CypMgsiv.js} +1 -1
  245. package/storybook-static/iframe.html +3 -3
  246. package/storybook-static/index.html +5 -19
  247. package/storybook-static/index.json +1 -1
  248. package/storybook-static/project.json +1 -1
  249. package/storybook-static/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
  250. package/storybook-static/assets/ArrayInput.stories-Cshz2s-a.js +0 -232
  251. package/storybook-static/assets/BooleansHeatmap-BV4VTyo6.css +0 -1
  252. package/storybook-static/assets/BooleansHeatmap.stories-CpNxqSED.js +0 -123
  253. package/storybook-static/assets/Calendar-tbpzwSIm.css +0 -1
  254. package/storybook-static/assets/Calendar.stories-Cx2JEddO.js +0 -229
  255. package/storybook-static/assets/Checkbox.stories-BwsnN3CP.js +0 -83
  256. package/storybook-static/assets/Color-AVL7NMMY-CoWQkAiP.js +0 -1
  257. package/storybook-static/assets/DateInput-C4-Rlnpy.css +0 -1
  258. package/storybook-static/assets/DateInput.stories-d46zYiZA.js +0 -119
  259. package/storybook-static/assets/DocsRenderer-PQXLIZUC-C2AYT361.js +0 -1243
  260. package/storybook-static/assets/EditFAB.stories-DvtpW34v.js +0 -378
  261. package/storybook-static/assets/ImageSlideshow.stories-BasuECRV.js +0 -385
  262. package/storybook-static/assets/LoadingSpinner.stories-Dj0bMFhR.js +0 -169
  263. package/storybook-static/assets/MoodChart-2hr_Y2GI.css +0 -1
  264. package/storybook-static/assets/MoodChart.stories-Bk0jtB4g.js +0 -40
  265. package/storybook-static/assets/Navbar-BPWxCB-U.css +0 -1
  266. package/storybook-static/assets/Navbar.stories-Dos3kovt.js +0 -320
  267. package/storybook-static/assets/NumberStepper.stories-BvFwBEjt.js +0 -436
  268. package/storybook-static/assets/PieChart-OfDGlJ4g.css +0 -1
  269. package/storybook-static/assets/PieChart.stories-XZqxh_GW.js +0 -199
  270. package/storybook-static/assets/QuantifiableHabitsChart-Bam6n9X_.css +0 -1
  271. package/storybook-static/assets/SearchBar.stories-CGaj__zF.js +0 -169
  272. package/storybook-static/assets/SearchableDropdown.stories-CfeFR5Rk.js +0 -282
  273. package/storybook-static/assets/SelectInput.stories-DByYKCGI.js +0 -129
  274. package/storybook-static/assets/SleepChart-DBRb08s_.css +0 -1
  275. package/storybook-static/assets/SleepChart.stories-DcoBwiEm.js +0 -58
  276. package/storybook-static/assets/Slider-Bq7zObwV.css +0 -1
  277. package/storybook-static/assets/Table-DnhtoClE.css +0 -1
  278. package/storybook-static/assets/Tabs-D5ZPN7MM.css +0 -1
  279. package/storybook-static/assets/TextArea.stories-Bpqlv7j5.js +0 -155
  280. package/storybook-static/assets/TextInput-BjVJQEYN.css +0 -1
  281. package/storybook-static/assets/TextInput-CLyTHgK9.js +0 -28
  282. package/storybook-static/assets/TextInput.stories-BP1LSkLG.js +0 -203
  283. package/storybook-static/assets/ThemeSwitcher.stories-Bj0YQKM5.js +0 -62
  284. package/storybook-static/assets/TimeInput-C3enPYoV.css +0 -1
  285. package/storybook-static/assets/TimeInput.stories-Cd28zwwR.js +0 -55
  286. package/storybook-static/assets/Toggle.stories-DtqFmh3E.js +0 -199
  287. package/storybook-static/assets/ToggleButton.stories-DkN_4qpp.js +0 -163
  288. package/storybook-static/assets/client-0pKYCVHx.js +0 -1
  289. package/storybook-static/assets/iframe-B7RIyArP.css +0 -1
  290. package/storybook-static/assets/index-bi5z6E3I.js +0 -1
  291. package/storybook-static/assets/layout-grid-TssXYNzv.js +0 -6
  292. package/storybook-static/sb-addons/chromatic-com-storybook-4/manager-bundle.js +0 -356
  293. package/storybook-static/sb-addons/chromatic-com-storybook-4/manager-bundle.js.LEGAL.txt +0 -40
  294. package/storybook-static/sb-addons/docs-2/manager-bundle.js +0 -151
  295. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +0 -127
  296. /package/storybook-static/sb-addons/{links-3 → links-1}/manager-bundle.js +0 -0
  297. /package/storybook-static/sb-addons/{storybook-5 → storybook-2}/manager-bundle.js +0 -0
@@ -1,4 +1,4 @@
1
- import{j as e,R as m,r as T}from"./iframe-B8pH-Lvr.js";import{c as n}from"./createLucideIcon-BNUG5osq.js";import{m as u}from"./proxy-BA3VZtN5.js";import{F as k}from"./folder-BjriMpXc.js";import{S as N}from"./settings-DvzICcFU.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-D5hZdVGx.js";/**
1
+ import{j as e,R as m,r as T}from"./iframe-Cw8dCV4Z.js";import{c as n}from"./createLucideIcon-dvowvj4F.js";import{m as u}from"./proxy-p8L3T_Zy.js";import{F as k}from"./folder-CCqkDvFG.js";import{S as N}from"./settings-B8s5hJGs.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BCa1jVYq.js";/**
2
2
  * @license lucide-react v0.539.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,9 +18,9 @@ import{j as e,R as m,r as T}from"./iframe-B8pH-Lvr.js";import{c as n}from"./crea
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const w=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],A=n("user",w),E="_tabs_uhg6g_1",$="_tab_uhg6g_1",P="_tabIcon_uhg6g_87",a={tabs:E,tab:$,tabIcon:P},D=[{id:"details",icon:b,label:"Dettagli"},{id:"github",icon:M,label:"GitHub"},{id:"jira",icon:C,label:"Jira"},{id:"functional",icon:b,label:"Analisi funzionale"}],d=({activeTab:o,onTabChange:r,tabs:c,className:l=""})=>{const j=c??D;return e.jsx("div",{className:`${a.tabs} ${l}`,children:j.map(t=>{const p=o===t.id;return e.jsxs(u.button,{className:a.tab,"data-active":p,onClick:()=>r(t.id),style:{position:"relative"},children:[e.jsx(u.div,{animate:{rotate:p?[0,-10,10,-5,5,0]:0},transition:{rotate:{duration:.5,ease:"easeInOut"}},children:t.icon&&(m.isValidElement(t.icon)?e.jsx("span",{className:a.tabIcon,children:t.icon}):e.jsx("span",{className:a.tabIcon,children:m.createElement(t.icon)}))}),e.jsx("span",{children:t.label})]},t.id)})})};d.__docgenInfo={description:"",methods:[],displayName:"Tabs",props:{activeTab:{required:!0,tsType:{name:"string"},description:""},onTabChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(tab: string) => void",signature:{arguments:[{type:{name:"string"},name:"tab"}],return:{name:"void"}}},description:""},tabs:{required:!1,tsType:{name:"Array",elements:[{name:"Tab"}],raw:"Tab[]"},description:""},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}}}};const V={title:"Molecules/Tabs",component:d,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{activeTab:{control:"select",options:["details","github","jira","functional"]}}},_=({initial:o,tabs:r})=>{const[c,l]=T.useState(o);return e.jsx("div",{style:{width:"600px"},children:e.jsx(d,{activeTab:c,onTabChange:l,tabs:r})})},s={render:()=>e.jsx(_,{initial:"details"})},i={render:()=>e.jsx(_,{initial:"profile",tabs:[{id:"profile",label:"Profile",icon:A},{id:"projects",label:"Projects",icon:k},{id:"settings",label:"Settings",icon:N}]})};var g,h,y;s.parameters={...s.parameters,docs:{...(g=s.parameters)==null?void 0:g.docs,source:{originalSource:`{
21
+ */const w=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],A=n("user",w),E="_tabs_1ljnu_1",$="_tab_1ljnu_1",P="_tabIcon_1ljnu_87",a={tabs:E,tab:$,tabIcon:P},D=[{id:"details",icon:b,label:"Dettagli"},{id:"github",icon:M,label:"GitHub"},{id:"jira",icon:C,label:"Jira"},{id:"functional",icon:b,label:"Analisi funzionale"}],d=({activeTab:r,onTabChange:o,tabs:c,className:l=""})=>{const _=c??D;return e.jsx("div",{className:`${a.tabs} ${l}`,children:_.map(t=>{const p=r===t.id;return e.jsxs(u.button,{className:a.tab,"data-active":p,onClick:()=>o(t.id),style:{position:"relative"},children:[e.jsx(u.div,{animate:{rotate:p?[0,-10,10,-5,5,0]:0},transition:{rotate:{duration:.5,ease:"easeInOut"}},children:t.icon&&(m.isValidElement(t.icon)?e.jsx("span",{className:a.tabIcon,children:t.icon}):e.jsx("span",{className:a.tabIcon,children:m.createElement(t.icon)}))}),e.jsx("span",{children:t.label})]},t.id)})})};d.__docgenInfo={description:"",methods:[],displayName:"Tabs",props:{activeTab:{required:!0,tsType:{name:"string"},description:""},onTabChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(tab: string) => void",signature:{arguments:[{type:{name:"string"},name:"tab"}],return:{name:"void"}}},description:""},tabs:{required:!1,tsType:{name:"Array",elements:[{name:"Tab"}],raw:"Tab[]"},description:""},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}}}};const V={title:"Molecules/Tabs",component:d,parameters:{layout:"centered"},argTypes:{activeTab:{control:"select",options:["details","github","jira","functional"]}}},x=({initial:r,tabs:o})=>{const[c,l]=T.useState(r);return e.jsx("div",{style:{width:"600px"},children:e.jsx(d,{activeTab:c,onTabChange:l,tabs:o})})},s={render:()=>e.jsx(x,{initial:"details"})},i={render:()=>e.jsx(x,{initial:"profile",tabs:[{id:"profile",label:"Profile",icon:A},{id:"projects",label:"Projects",icon:k},{id:"settings",label:"Settings",icon:N}]})};var y,f,h;s.parameters={...s.parameters,docs:{...(y=s.parameters)==null?void 0:y.docs,source:{originalSource:`{
22
22
  render: () => <Wrapper initial="details" />
23
- }`,...(y=(h=s.parameters)==null?void 0:h.docs)==null?void 0:y.source}}};var f,v,x;i.parameters={...i.parameters,docs:{...(f=i.parameters)==null?void 0:f.docs,source:{originalSource:`{
23
+ }`,...(h=(f=s.parameters)==null?void 0:f.docs)==null?void 0:h.source}}};var g,j,v;i.parameters={...i.parameters,docs:{...(g=i.parameters)==null?void 0:g.docs,source:{originalSource:`{
24
24
  render: () => <Wrapper initial="profile" tabs={[{
25
25
  id: 'profile',
26
26
  label: 'Profile',
@@ -34,4 +34,4 @@ import{j as e,R as m,r as T}from"./iframe-B8pH-Lvr.js";import{c as n}from"./crea
34
34
  label: 'Settings',
35
35
  icon: Settings
36
36
  }]} />
37
- }`,...(x=(v=i.parameters)==null?void 0:v.docs)==null?void 0:x.source}}};const z=["Default","CustomTabs"];export{i as CustomTabs,s as Default,z as __namedExportsOrder,V as default};
37
+ }`,...(v=(j=i.parameters)==null?void 0:j.docs)==null?void 0:v.source}}};const z=["Default","CustomTabs"];export{i as CustomTabs,s as Default,z as __namedExportsOrder,V as default};
@@ -1,4 +1,4 @@
1
- import{r as c,j as _}from"./iframe-B8pH-Lvr.js";import{g as e}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const l={"target-cursor-wrapper":"_target-cursor-wrapper_11z20_1","target-cursor-dot":"_target-cursor-dot_11z20_13","target-cursor-corner":"_target-cursor-corner_11z20_25","corner-tl":"_corner-tl_11z20_35","corner-tr":"_corner-tr_11z20_41","corner-br":"_corner-br_11z20_47","corner-bl":"_corner-bl_11z20_53"},Q=({targetSelector:$=".cursor-target",spinDuration:x=2,hideDefaultCursor:Y=!0,hoverDuration:q=.2,parallaxOn:D=!0})=>{const r=c.useRef(null),p=c.useRef(null),o=c.useRef(null),b=c.useRef(null),j=c.useRef(!1),d=c.useRef(null),R=c.useRef(null),C=c.useRef(0),E=c.useMemo(()=>{if(typeof window>"u")return!1;const T="ontouchstart"in window||navigator.maxTouchPoints>0,g=window.innerWidth<=768,s=navigator.userAgent||navigator.vendor||window.opera,w=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(s.toLowerCase());return T&&g||w},[]),H=c.useMemo(()=>({borderWidth:3,cornerSize:12}),[]),M=c.useCallback((T,g)=>{r.current&&e.to(r.current,{x:T,y:g,duration:.1,ease:"power3.out"})},[]);return c.useEffect(()=>{if(E||!r.current)return;const T=document.body.style.cursor;Y&&(document.body.style.cursor="none");const g=r.current;p.current=g.querySelectorAll(".target-cursor-corner");let s=null,v=null,w=null;const O=t=>{v&&t.removeEventListener("mouseleave",v),v=null};e.set(g,{xPercent:-50,yPercent:-50,x:window.innerWidth/2,y:window.innerHeight/2}),(()=>{o.current&&o.current.kill(),o.current=e.timeline({repeat:-1}).to(g,{rotation:"+=360",duration:x,ease:"none"})})();const Z=()=>{if(!d.current||!r.current||!p.current)return;const t=C.current;if(t===0)return;const S=e.getProperty(r.current,"x"),f=e.getProperty(r.current,"y");Array.from(p.current).forEach((i,k)=>{const u=e.getProperty(i,"x"),a=e.getProperty(i,"y"),h=d.current[k].x-S,N=d.current[k].y-f,X=u+(h-u)*t,z=a+(N-a)*t,L=t>=.99?D?.2:0:.05;e.to(i,{x:X,y:z,duration:L,ease:L===0?"none":"power1.out",overwrite:"auto"})})};R.current=Z;const V=t=>M(t.clientX,t.clientY);window.addEventListener("mousemove",V);const W=()=>{if(!s||!r.current)return;const t=e.getProperty(r.current,"x"),S=e.getProperty(r.current,"y"),f=document.elementFromPoint(t,S);f&&(f===s||f.closest($)===s)||v&&v()};window.addEventListener("scroll",W,{passive:!0});const F=()=>{b.current&&(e.to(b.current,{scale:.7,duration:.3}),e.to(r.current,{scale:.9,duration:.2}))},U=()=>{b.current&&(e.to(b.current,{scale:1,duration:.3}),e.to(r.current,{scale:1,duration:.2}))};window.addEventListener("mousedown",F),window.addEventListener("mouseup",U);const B=t=>{var L;const S=t.target,f=[];let m=S;for(;m&&m!==document.body;)m.matches($)&&f.push(m),m=m.parentElement;const i=f[0]||null;if(!i||!r.current||!p.current||s===i)return;s&&O(s),w&&(clearTimeout(w),w=null),s=i;const k=Array.from(p.current);k.forEach(y=>e.killTweensOf(y)),e.killTweensOf(r.current,"rotation"),(L=o.current)==null||L.pause(),e.set(r.current,{rotation:0});const u=i.getBoundingClientRect(),{borderWidth:a,cornerSize:h}=H,N=e.getProperty(r.current,"x"),X=e.getProperty(r.current,"y");d.current=[{x:u.left-a,y:u.top-a},{x:u.right+a-h,y:u.top-a},{x:u.right+a-h,y:u.bottom+a-h},{x:u.left-a,y:u.bottom+a-h}],j.current=!0,e.ticker.add(R.current),e.to(C,{current:1,duration:q,ease:"power2.out"}),k.forEach((y,n)=>{e.to(y,{x:d.current[n].x-N,y:d.current[n].y-X,duration:.2,ease:"power2.out"})});const z=()=>{if(e.ticker.remove(R.current),j.current=!1,d.current=null,e.set(C,{current:0,overwrite:!0}),s=null,p.current){const y=Array.from(p.current);e.killTweensOf(y);const{cornerSize:n}=H,P=[{x:-n*1.5,y:-n*1.5},{x:n*.5,y:-n*1.5},{x:n*.5,y:n*.5},{x:-n*1.5,y:n*.5}],ee=e.timeline();y.forEach((re,I)=>{ee.to(re,{x:P[I].x,y:P[I].y,duration:.3,ease:"power3.out"},0)})}w=setTimeout(()=>{if(!s&&r.current&&o.current){const n=e.getProperty(r.current,"rotation")%360;o.current.kill(),o.current=e.timeline({repeat:-1}).to(r.current,{rotation:"+=360",duration:x,ease:"none"}),e.to(r.current,{rotation:n+360,duration:x*(1-n/360),ease:"none",onComplete:()=>{var P;(P=o.current)==null||P.restart()}})}w=null},50),O(i)};v=z,i.addEventListener("mouseleave",z)};return window.addEventListener("mouseover",B,{passive:!0}),()=>{var t;R.current&&e.ticker.remove(R.current),window.removeEventListener("mousemove",V),window.removeEventListener("mouseover",B),window.removeEventListener("scroll",W),window.removeEventListener("mousedown",F),window.removeEventListener("mouseup",U),s&&O(s),(t=o.current)==null||t.kill(),document.body.style.cursor=T,j.current=!1,d.current=null,C.current=0}},[$,x,M,H,Y,E,q,D]),c.useEffect(()=>{E||!r.current||!o.current||o.current.isActive()&&(o.current.kill(),o.current=e.timeline({repeat:-1}).to(r.current,{rotation:"+=360",duration:x,ease:"none"}))},[x,E]),E?null:_.jsxs("div",{ref:r,className:`${l["target-cursor-wrapper"]}`,children:[_.jsx("div",{ref:b,className:`${l["target-cursor-dot"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-tl"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-tr"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-br"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-bl"]}`})]})};Q.__docgenInfo={description:"",methods:[],displayName:"TargetCursor",props:{targetSelector:{defaultValue:{value:"'.cursor-target'",computed:!1},required:!1},spinDuration:{defaultValue:{value:"2",computed:!1},required:!1},hideDefaultCursor:{defaultValue:{value:"true",computed:!1},required:!1},hoverDuration:{defaultValue:{value:"0.2",computed:!1},required:!1},parallaxOn:{defaultValue:{value:"true",computed:!1},required:!1}}};const ce={title:"ReactBits/Animations/TargetCursor",component:Q,parameters:{layout:"fullscreen"},tags:["autodocs"]},A={args:{targetSelector:".cursor-target",spinDuration:2,hideDefaultCursor:!0,hoverDuration:.2,parallaxOn:!0}};var G,J,K;A.parameters={...A.parameters,docs:{...(G=A.parameters)==null?void 0:G.docs,source:{originalSource:`{
1
+ import{r as c,j as _}from"./iframe-Cw8dCV4Z.js";import{g as e}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const l={"target-cursor-wrapper":"_target-cursor-wrapper_11z20_1","target-cursor-dot":"_target-cursor-dot_11z20_13","target-cursor-corner":"_target-cursor-corner_11z20_25","corner-tl":"_corner-tl_11z20_35","corner-tr":"_corner-tr_11z20_41","corner-br":"_corner-br_11z20_47","corner-bl":"_corner-bl_11z20_53"},Q=({targetSelector:$=".cursor-target",spinDuration:x=2,hideDefaultCursor:Y=!0,hoverDuration:q=.2,parallaxOn:D=!0})=>{const r=c.useRef(null),p=c.useRef(null),o=c.useRef(null),b=c.useRef(null),j=c.useRef(!1),d=c.useRef(null),R=c.useRef(null),C=c.useRef(0),E=c.useMemo(()=>{if(typeof window>"u")return!1;const T="ontouchstart"in window||navigator.maxTouchPoints>0,g=window.innerWidth<=768,s=navigator.userAgent||navigator.vendor||window.opera,w=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(s.toLowerCase());return T&&g||w},[]),H=c.useMemo(()=>({borderWidth:3,cornerSize:12}),[]),M=c.useCallback((T,g)=>{r.current&&e.to(r.current,{x:T,y:g,duration:.1,ease:"power3.out"})},[]);return c.useEffect(()=>{if(E||!r.current)return;const T=document.body.style.cursor;Y&&(document.body.style.cursor="none");const g=r.current;p.current=g.querySelectorAll(".target-cursor-corner");let s=null,v=null,w=null;const O=t=>{v&&t.removeEventListener("mouseleave",v),v=null};e.set(g,{xPercent:-50,yPercent:-50,x:window.innerWidth/2,y:window.innerHeight/2}),(()=>{o.current&&o.current.kill(),o.current=e.timeline({repeat:-1}).to(g,{rotation:"+=360",duration:x,ease:"none"})})();const Z=()=>{if(!d.current||!r.current||!p.current)return;const t=C.current;if(t===0)return;const S=e.getProperty(r.current,"x"),f=e.getProperty(r.current,"y");Array.from(p.current).forEach((i,k)=>{const u=e.getProperty(i,"x"),a=e.getProperty(i,"y"),h=d.current[k].x-S,N=d.current[k].y-f,X=u+(h-u)*t,z=a+(N-a)*t,L=t>=.99?D?.2:0:.05;e.to(i,{x:X,y:z,duration:L,ease:L===0?"none":"power1.out",overwrite:"auto"})})};R.current=Z;const V=t=>M(t.clientX,t.clientY);window.addEventListener("mousemove",V);const W=()=>{if(!s||!r.current)return;const t=e.getProperty(r.current,"x"),S=e.getProperty(r.current,"y"),f=document.elementFromPoint(t,S);f&&(f===s||f.closest($)===s)||v&&v()};window.addEventListener("scroll",W,{passive:!0});const F=()=>{b.current&&(e.to(b.current,{scale:.7,duration:.3}),e.to(r.current,{scale:.9,duration:.2}))},U=()=>{b.current&&(e.to(b.current,{scale:1,duration:.3}),e.to(r.current,{scale:1,duration:.2}))};window.addEventListener("mousedown",F),window.addEventListener("mouseup",U);const B=t=>{var L;const S=t.target,f=[];let m=S;for(;m&&m!==document.body;)m.matches($)&&f.push(m),m=m.parentElement;const i=f[0]||null;if(!i||!r.current||!p.current||s===i)return;s&&O(s),w&&(clearTimeout(w),w=null),s=i;const k=Array.from(p.current);k.forEach(y=>e.killTweensOf(y)),e.killTweensOf(r.current,"rotation"),(L=o.current)==null||L.pause(),e.set(r.current,{rotation:0});const u=i.getBoundingClientRect(),{borderWidth:a,cornerSize:h}=H,N=e.getProperty(r.current,"x"),X=e.getProperty(r.current,"y");d.current=[{x:u.left-a,y:u.top-a},{x:u.right+a-h,y:u.top-a},{x:u.right+a-h,y:u.bottom+a-h},{x:u.left-a,y:u.bottom+a-h}],j.current=!0,e.ticker.add(R.current),e.to(C,{current:1,duration:q,ease:"power2.out"}),k.forEach((y,n)=>{e.to(y,{x:d.current[n].x-N,y:d.current[n].y-X,duration:.2,ease:"power2.out"})});const z=()=>{if(e.ticker.remove(R.current),j.current=!1,d.current=null,e.set(C,{current:0,overwrite:!0}),s=null,p.current){const y=Array.from(p.current);e.killTweensOf(y);const{cornerSize:n}=H,P=[{x:-n*1.5,y:-n*1.5},{x:n*.5,y:-n*1.5},{x:n*.5,y:n*.5},{x:-n*1.5,y:n*.5}],ee=e.timeline();y.forEach((re,I)=>{ee.to(re,{x:P[I].x,y:P[I].y,duration:.3,ease:"power3.out"},0)})}w=setTimeout(()=>{if(!s&&r.current&&o.current){const n=e.getProperty(r.current,"rotation")%360;o.current.kill(),o.current=e.timeline({repeat:-1}).to(r.current,{rotation:"+=360",duration:x,ease:"none"}),e.to(r.current,{rotation:n+360,duration:x*(1-n/360),ease:"none",onComplete:()=>{var P;(P=o.current)==null||P.restart()}})}w=null},50),O(i)};v=z,i.addEventListener("mouseleave",z)};return window.addEventListener("mouseover",B,{passive:!0}),()=>{var t;R.current&&e.ticker.remove(R.current),window.removeEventListener("mousemove",V),window.removeEventListener("mouseover",B),window.removeEventListener("scroll",W),window.removeEventListener("mousedown",F),window.removeEventListener("mouseup",U),s&&O(s),(t=o.current)==null||t.kill(),document.body.style.cursor=T,j.current=!1,d.current=null,C.current=0}},[$,x,M,H,Y,E,q,D]),c.useEffect(()=>{E||!r.current||!o.current||o.current.isActive()&&(o.current.kill(),o.current=e.timeline({repeat:-1}).to(r.current,{rotation:"+=360",duration:x,ease:"none"}))},[x,E]),E?null:_.jsxs("div",{ref:r,className:`${l["target-cursor-wrapper"]}`,children:[_.jsx("div",{ref:b,className:`${l["target-cursor-dot"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-tl"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-tr"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-br"]}`}),_.jsx("div",{className:`${l["target-cursor-corner"]} ${l["corner-bl"]}`})]})};Q.__docgenInfo={description:"",methods:[],displayName:"TargetCursor",props:{targetSelector:{defaultValue:{value:"'.cursor-target'",computed:!1},required:!1},spinDuration:{defaultValue:{value:"2",computed:!1},required:!1},hideDefaultCursor:{defaultValue:{value:"true",computed:!1},required:!1},hoverDuration:{defaultValue:{value:"0.2",computed:!1},required:!1},parallaxOn:{defaultValue:{value:"true",computed:!1},required:!1}}};const ce={title:"ReactBits/Animations/TargetCursor",component:Q,parameters:{layout:"fullscreen"}},A={args:{targetSelector:".cursor-target",spinDuration:2,hideDefaultCursor:!0,hoverDuration:.2,parallaxOn:!0}};var G,J,K;A.parameters={...A.parameters,docs:{...(G=A.parameters)==null?void 0:G.docs,source:{originalSource:`{
2
2
  args: {
3
3
  targetSelector: '.cursor-target',
4
4
  spinDuration: 2,
@@ -1,4 +1,4 @@
1
- import{j as t}from"./iframe-B8pH-Lvr.js";const v="_textareaContainer_1p1q8_1",b="_compact_1p1q8_6",j="_textareaLabel_1p1q8_10",I="_requiredIndicator_1p1q8_25",L="_textareaInput_1p1q8_31",V="_characterCount_1p1q8_90",N="_nearLimit_1p1q8_115",M="_atLimit_1p1q8_124",T="_error_1p1q8_180",w="_success_1p1q8_205",A="_loading_1p1q8_232",y="_focusMode_1p1q8_249",a={textareaContainer:v,compact:b,textareaLabel:j,requiredIndicator:I,textareaInput:L,characterCount:V,nearLimit:N,atLimit:M,error:T,success:w,loading:A,focusMode:y};function B({label:n,value:r,onChange:p,rows:f=5,placeholder:m="",required:o=!1,maxLength:s,disabled:h=!1,error:i=!1,success:_=!1,loading:l=!1,focusMode:x=!1,compact:q=!1,className:c=""}){const u=`textarea-${Math.random().toString(36).substr(2,9)}`,g=()=>{const e=[a.textareaContainer];return i&&e.push(a.error),_&&e.push(a.success),l&&e.push(a.loading),x&&e.push(a.focusMode),q&&e.push(a.compact),c&&e.push(c),e.join(" ")},C=()=>{if(!s)return a.characterCount;const e=[a.characterCount],d=r.length/s*100;return d>=100?e.push(a.atLimit):d>=80&&e.push(a.nearLimit),e.join(" ")};return t.jsxs("div",{className:g(),children:[n&&t.jsxs("label",{htmlFor:u,className:a.textareaLabel,children:[n,o&&t.jsx("span",{className:a.requiredIndicator,children:"*"})]}),t.jsx("textarea",{id:u,value:r,onChange:e=>p(e.target.value),rows:f,placeholder:m,maxLength:s,className:a.textareaInput,"aria-required":o,disabled:h||l,"aria-invalid":i}),s&&t.jsxs("div",{className:C(),children:[t.jsx("span",{children:r.length}),t.jsx("span",{style:{opacity:.7},children:" / "}),t.jsx("span",{children:s})]})]})}B.__docgenInfo={description:`TextArea component - Multi-line text input with character counting
1
+ import{j as t}from"./iframe-Cw8dCV4Z.js";const v="_textareaContainer_1p1q8_1",b="_compact_1p1q8_6",j="_textareaLabel_1p1q8_10",I="_requiredIndicator_1p1q8_25",L="_textareaInput_1p1q8_31",V="_characterCount_1p1q8_90",N="_nearLimit_1p1q8_115",M="_atLimit_1p1q8_124",T="_error_1p1q8_180",w="_success_1p1q8_205",A="_loading_1p1q8_232",y="_focusMode_1p1q8_249",a={textareaContainer:v,compact:b,textareaLabel:j,requiredIndicator:I,textareaInput:L,characterCount:V,nearLimit:N,atLimit:M,error:T,success:w,loading:A,focusMode:y};function B({label:n,value:r,onChange:p,rows:f=5,placeholder:m="",required:o=!1,maxLength:s,disabled:h=!1,error:i=!1,success:_=!1,loading:l=!1,focusMode:x=!1,compact:q=!1,className:c=""}){const u=`textarea-${Math.random().toString(36).substr(2,9)}`,g=()=>{const e=[a.textareaContainer];return i&&e.push(a.error),_&&e.push(a.success),l&&e.push(a.loading),x&&e.push(a.focusMode),q&&e.push(a.compact),c&&e.push(c),e.join(" ")},C=()=>{if(!s)return a.characterCount;const e=[a.characterCount],d=r.length/s*100;return d>=100?e.push(a.atLimit):d>=80&&e.push(a.nearLimit),e.join(" ")};return t.jsxs("div",{className:g(),children:[n&&t.jsxs("label",{htmlFor:u,className:a.textareaLabel,children:[n,o&&t.jsx("span",{className:a.requiredIndicator,children:"*"})]}),t.jsx("textarea",{id:u,value:r,onChange:e=>p(e.target.value),rows:f,placeholder:m,maxLength:s,className:a.textareaInput,"aria-required":o,disabled:h||l,"aria-invalid":i}),s&&t.jsxs("div",{className:C(),children:[t.jsx("span",{children:r.length}),t.jsx("span",{style:{opacity:.7},children:" / "}),t.jsx("span",{children:s})]})]})}B.__docgenInfo={description:`TextArea component - Multi-line text input with character counting
2
2
 
3
3
  @component
4
4
  @description
@@ -0,0 +1,118 @@
1
+ import{r as p,j as e}from"./iframe-Cw8dCV4Z.js";import{T as m}from"./TextArea-DN6IYITs.js";import"./preload-helper-C1FmrZbK.js";const R={title:"Atoms/TextArea",component:m,parameters:{layout:"centered",docs:{description:{component:"A multiline text input component with character counter support and compact mode for arrays."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},rows:{control:"number"},maxLength:{control:"number"},required:{control:"boolean"},compact:{control:"boolean"},onChange:{action:"changed"}}},s={args:{label:"Description",value:"",placeholder:"Enter your description here...",rows:4,onChange:()=>{}}},l={args:{label:"Bio",value:"Software developer passionate about creating great user experiences.",placeholder:"Tell us about yourself...",rows:4,maxLength:200,onChange:()=>{}}},i={args:{label:"Comparison",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(""),[d,n]=p.useState("");return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",width:"400px"},children:[e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Regular TextArea"}),e.jsx(m,{label:"Description",value:r,onChange:a,placeholder:"Regular size textarea...",rows:4,maxLength:200})]}),e.jsxs("div",{children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"Compact TextArea"}),e.jsx(m,{label:"Description",value:d,onChange:n,placeholder:"Compact size textarea...",rows:4,maxLength:200,compact:!0})]})]})},parameters:{controls:{disable:!0}}},c={args:{label:"Array Demo",value:"",onChange:()=>{}},render:()=>{const[r,a]=p.useState(["First item with some text",""]),d=(n,t)=>{const o=[...r];o[n]=t,a(o)};return e.jsxs("div",{style:{width:"400px"},children:[e.jsx("h4",{style:{marginBottom:"1rem"},children:"TextArea in Array Context (Compact Mode)"}),e.jsxs("div",{style:{background:"var(--color-background-secondary)",padding:"1rem",borderRadius:"var(--radius-md)"},children:[r.map((n,t)=>e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.5rem",marginBottom:t<r.length-1?"1rem":"0"},children:[e.jsx(m,{label:"",value:n,onChange:o=>d(t,o),placeholder:`Item ${t+1}...`,rows:2,compact:!0}),e.jsx("button",{onClick:()=>a(r.filter((o,I)=>I!==t)),style:{background:"var(--color-danger)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"4px 8px",cursor:"pointer",fontSize:"12px",marginTop:"2px"},children:"x"})]},t)),e.jsx("button",{onClick:()=>a([...r,""]),style:{background:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",padding:"8px 16px",cursor:"pointer",fontSize:"14px",marginTop:"1rem"},children:"+ Add Item"})]})]})},parameters:{controls:{disable:!0}}};var u,x,g;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
2
+ args: {
3
+ label: 'Description',
4
+ value: '',
5
+ placeholder: 'Enter your description here...',
6
+ rows: 4,
7
+ onChange: () => {}
8
+ }
9
+ }`,...(g=(x=s.parameters)==null?void 0:x.docs)==null?void 0:g.source}}};var h,b,v;l.parameters={...l.parameters,docs:{...(h=l.parameters)==null?void 0:h.docs,source:{originalSource:`{
10
+ args: {
11
+ label: 'Bio',
12
+ value: 'Software developer passionate about creating great user experiences.',
13
+ placeholder: 'Tell us about yourself...',
14
+ rows: 4,
15
+ maxLength: 200,
16
+ onChange: () => {}
17
+ }
18
+ }`,...(v=(b=l.parameters)==null?void 0:b.docs)==null?void 0:v.source}}};var C,y,T;i.parameters={...i.parameters,docs:{...(C=i.parameters)==null?void 0:C.docs,source:{originalSource:`{
19
+ args: {
20
+ label: 'Comparison',
21
+ value: '',
22
+ onChange: () => {}
23
+ },
24
+ render: () => {
25
+ const [regularText, setRegularText] = useState('');
26
+ const [compactText, setCompactText] = useState('');
27
+ return <div style={{
28
+ display: 'flex',
29
+ flexDirection: 'column',
30
+ gap: '2rem',
31
+ width: '400px'
32
+ }}>
33
+ <div>
34
+ <h4 style={{
35
+ marginBottom: '1rem'
36
+ }}>Regular TextArea</h4>
37
+ <TextArea label="Description" value={regularText} onChange={setRegularText} placeholder="Regular size textarea..." rows={4} maxLength={200} />
38
+ </div>
39
+ <div>
40
+ <h4 style={{
41
+ marginBottom: '1rem'
42
+ }}>Compact TextArea</h4>
43
+ <TextArea label="Description" value={compactText} onChange={setCompactText} placeholder="Compact size textarea..." rows={4} maxLength={200} compact />
44
+ </div>
45
+ </div>;
46
+ },
47
+ parameters: {
48
+ controls: {
49
+ disable: true
50
+ }
51
+ }
52
+ }`,...(T=(y=i.parameters)==null?void 0:y.docs)==null?void 0:T.source}}};var w,f,A;c.parameters={...c.parameters,docs:{...(w=c.parameters)==null?void 0:w.docs,source:{originalSource:`{
53
+ args: {
54
+ label: 'Array Demo',
55
+ value: '',
56
+ onChange: () => {}
57
+ },
58
+ render: () => {
59
+ const [items, setItems] = useState(['First item with some text', '']);
60
+ const handleItemChange = (index: number, value: string) => {
61
+ const newItems = [...items];
62
+ newItems[index] = value;
63
+ setItems(newItems);
64
+ };
65
+ return <div style={{
66
+ width: '400px'
67
+ }}>
68
+ <h4 style={{
69
+ marginBottom: '1rem'
70
+ }}>
71
+ TextArea in Array Context (Compact Mode)
72
+ </h4>
73
+ <div style={{
74
+ background: 'var(--color-background-secondary)',
75
+ padding: '1rem',
76
+ borderRadius: 'var(--radius-md)'
77
+ }}>
78
+ {items.map((item, index) => <div key={index} style={{
79
+ display: 'flex',
80
+ alignItems: 'flex-start',
81
+ gap: '0.5rem',
82
+ marginBottom: index < items.length - 1 ? '1rem' : '0'
83
+ }}>
84
+ <TextArea label="" value={item} onChange={value => handleItemChange(index, value)} placeholder={\`Item \${index + 1}...\`} rows={2} compact />
85
+ <button onClick={() => setItems(items.filter((_, i) => i !== index))} style={{
86
+ background: 'var(--color-danger)',
87
+ color: 'white',
88
+ border: 'none',
89
+ borderRadius: 'var(--radius-sm)',
90
+ padding: '4px 8px',
91
+ cursor: 'pointer',
92
+ fontSize: '12px',
93
+ marginTop: '2px'
94
+ }}>
95
+ x
96
+ </button>
97
+ </div>)}
98
+ <button onClick={() => setItems([...items, ''])} style={{
99
+ background: 'var(--color-primary)',
100
+ color: 'white',
101
+ border: 'none',
102
+ borderRadius: 'var(--radius-sm)',
103
+ padding: '8px 16px',
104
+ cursor: 'pointer',
105
+ fontSize: '14px',
106
+ marginTop: '1rem'
107
+ }}>
108
+ + Add Item
109
+ </button>
110
+ </div>
111
+ </div>;
112
+ },
113
+ parameters: {
114
+ controls: {
115
+ disable: true
116
+ }
117
+ }
118
+ }`,...(A=(f=c.parameters)==null?void 0:f.docs)==null?void 0:A.source}}};const k=["Default","WithCharacterLimit","CompactComparison","ArrayInputDemo"];export{c as ArrayInputDemo,i as CompactComparison,s as Default,l as WithCharacterLimit,k as __namedExportsOrder,R as default};
@@ -1,4 +1,4 @@
1
- import{r as a,j as c}from"./iframe-B8pH-Lvr.js";import{A as B}from"./index-DBfrIdYd.js";import{m as L}from"./proxy-BA3VZtN5.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-D5hZdVGx.js";const p={"text-cursor-container":"_text-cursor-container_uryua_1","text-cursor-inner":"_text-cursor-inner_uryua_7","text-cursor-item":"_text-cursor-item_uryua_16"},E=({text:V="⚛️",spacing:d=100,followMouseDirection:j=!0,randomFloat:n=!0,exitDuration:A=.5,removalInterval:x=30,maxPoints:y=5})=>{const[C,g]=a.useState([]),o=a.useRef(null),v=a.useRef(Date.now()),h=a.useRef(0),M=e=>{if(!o.current)return;const r=o.current.getBoundingClientRect(),_=e.clientX-r.left,D=e.clientY-r.top,I=()=>n?{randomX:Math.random()*10-5,randomY:Math.random()*10-5,randomRotate:Math.random()*10-5}:{};g(O=>{const t=[...O];if(t.length===0)t.push({id:h.current++,x:_,y:D,angle:0,...I()});else{const s=t[t.length-1],u=_-s.x,l=D-s.y,f=Math.sqrt(u*u+l*l);if(f>=d){let X=Math.atan2(l,u)*180/Math.PI;const Y=j?X:0,N=Math.floor(f/d);for(let m=1;m<=N;m++){const R=d*m/f,P=s.x+u*R,$=s.y+l*R;t.push({id:h.current++,x:P,y:$,angle:Y,...I()})}}}return t.length>y?t.slice(t.length-y):t}),v.current=Date.now()};return a.useEffect(()=>{const e=o.current;if(e)return e.addEventListener("mousemove",M),()=>e.removeEventListener("mousemove",M)},[]),a.useEffect(()=>{const e=setInterval(()=>{Date.now()-v.current>100&&g(r=>r.length>0?r.slice(1):r)},x);return()=>clearInterval(e)},[x]),c.jsx("div",{ref:o,className:`${p["text-cursor-container"]}`,children:c.jsx("div",{className:`${p["text-cursor-inner"]}`,children:c.jsx(B,{children:C.map(e=>c.jsx(L.div,{initial:{opacity:0,scale:1,rotate:e.angle},animate:{opacity:1,scale:1,x:n?[0,e.randomX||0,0]:0,y:n?[0,e.randomY||0,0]:0,rotate:n?[e.angle,e.angle+(e.randomRotate||0),e.angle]:e.angle},exit:{opacity:0,scale:0},transition:{opacity:{duration:A,ease:"easeOut"},...n&&{x:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},y:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},rotate:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"}}},className:`${p["text-cursor-item"]}`,style:{left:e.x,top:e.y},children:V},e.id))})})})};E.__docgenInfo={description:"",methods:[],displayName:"TextCursor",props:{text:{defaultValue:{value:"'⚛️'",computed:!1},required:!1},spacing:{defaultValue:{value:"100",computed:!1},required:!1},followMouseDirection:{defaultValue:{value:"true",computed:!1},required:!1},randomFloat:{defaultValue:{value:"true",computed:!1},required:!1},exitDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},removalInterval:{defaultValue:{value:"30",computed:!1},required:!1},maxPoints:{defaultValue:{value:"5",computed:!1},required:!1}}};const H={title:"ReactBits/TextAnimations/TextCursor",component:E,parameters:{layout:"fullscreen"},tags:["autodocs"]},i={args:{text:"⚛️",spacing:100,followMouseDirection:!0,randomFloat:!0,exitDuration:.5,removalInterval:30,maxPoints:5}};var w,T,q;i.parameters={...i.parameters,docs:{...(w=i.parameters)==null?void 0:w.docs,source:{originalSource:`{
1
+ import{r as a,j as c}from"./iframe-Cw8dCV4Z.js";import{A as B}from"./index-CzApopWo.js";import{m as L}from"./proxy-p8L3T_Zy.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BCa1jVYq.js";const p={"text-cursor-container":"_text-cursor-container_uryua_1","text-cursor-inner":"_text-cursor-inner_uryua_7","text-cursor-item":"_text-cursor-item_uryua_16"},E=({text:V="⚛️",spacing:d=100,followMouseDirection:j=!0,randomFloat:n=!0,exitDuration:A=.5,removalInterval:x=30,maxPoints:y=5})=>{const[C,v]=a.useState([]),o=a.useRef(null),g=a.useRef(Date.now()),h=a.useRef(0),M=e=>{if(!o.current)return;const r=o.current.getBoundingClientRect(),_=e.clientX-r.left,D=e.clientY-r.top,I=()=>n?{randomX:Math.random()*10-5,randomY:Math.random()*10-5,randomRotate:Math.random()*10-5}:{};v(O=>{const t=[...O];if(t.length===0)t.push({id:h.current++,x:_,y:D,angle:0,...I()});else{const s=t[t.length-1],u=_-s.x,l=D-s.y,f=Math.sqrt(u*u+l*l);if(f>=d){let X=Math.atan2(l,u)*180/Math.PI;const Y=j?X:0,N=Math.floor(f/d);for(let m=1;m<=N;m++){const R=d*m/f,P=s.x+u*R,$=s.y+l*R;t.push({id:h.current++,x:P,y:$,angle:Y,...I()})}}}return t.length>y?t.slice(t.length-y):t}),g.current=Date.now()};return a.useEffect(()=>{const e=o.current;if(e)return e.addEventListener("mousemove",M),()=>e.removeEventListener("mousemove",M)},[]),a.useEffect(()=>{const e=setInterval(()=>{Date.now()-g.current>100&&v(r=>r.length>0?r.slice(1):r)},x);return()=>clearInterval(e)},[x]),c.jsx("div",{ref:o,className:`${p["text-cursor-container"]}`,children:c.jsx("div",{className:`${p["text-cursor-inner"]}`,children:c.jsx(B,{children:C.map(e=>c.jsx(L.div,{initial:{opacity:0,scale:1,rotate:e.angle},animate:{opacity:1,scale:1,x:n?[0,e.randomX||0,0]:0,y:n?[0,e.randomY||0,0]:0,rotate:n?[e.angle,e.angle+(e.randomRotate||0),e.angle]:e.angle},exit:{opacity:0,scale:0},transition:{opacity:{duration:A,ease:"easeOut"},...n&&{x:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},y:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},rotate:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"}}},className:`${p["text-cursor-item"]}`,style:{left:e.x,top:e.y},children:V},e.id))})})})};E.__docgenInfo={description:"",methods:[],displayName:"TextCursor",props:{text:{defaultValue:{value:"'⚛️'",computed:!1},required:!1},spacing:{defaultValue:{value:"100",computed:!1},required:!1},followMouseDirection:{defaultValue:{value:"true",computed:!1},required:!1},randomFloat:{defaultValue:{value:"true",computed:!1},required:!1},exitDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},removalInterval:{defaultValue:{value:"30",computed:!1},required:!1},maxPoints:{defaultValue:{value:"5",computed:!1},required:!1}}};const H={title:"ReactBits/TextAnimations/TextCursor",component:E,parameters:{layout:"fullscreen"}},i={args:{text:"⚛️",spacing:100,followMouseDirection:!0,randomFloat:!0,exitDuration:.5,removalInterval:30,maxPoints:5}};var w,T,q;i.parameters={...i.parameters,docs:{...(w=i.parameters)==null?void 0:w.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: '⚛️',
4
4
  spacing: 100,
@@ -0,0 +1 @@
1
+ ._textInput_16mxa_1{margin-bottom:var(--spacing-lg);position:relative}._textInput_16mxa_1 label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-text);margin-bottom:var(--spacing-sm);letter-spacing:var(--letter-spacing-wide);transition:color var(--transition-base)}._textInput_16mxa_1 input{width:100%;padding:var(--spacing-sm) var(--spacing-md);border:2px solid var(--color-border);border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--color-background),var(--color-background-secondary));font-size:var(--font-size-base);font-weight:var(--font-weight-medium);color:var(--color-text);display:block;transition:all var(--transition-base);min-height:44px;-webkit-appearance:none;outline:none;box-sizing:border-box}._textInput_16mxa_1 input:hover:not(:focus):not(:disabled){border-color:var(--color-border-hover);background:var(--color-background);box-shadow:var(--shadow-sm);transform:translateY(-1px)}._textInput_16mxa_1 input:focus{border-color:var(--color-primary);background:var(--color-background);box-shadow:0 0 0 3px #7c3aed1a;transform:translateY(-2px)}._textInput_16mxa_1 input::placeholder{color:var(--color-text-secondary);opacity:.6}._textInput_16mxa_1 input:disabled{background:var(--color-background-tertiary);border-color:var(--color-border);color:var(--color-text-tertiary);cursor:not-allowed;opacity:.6;transform:none}._textInput_16mxa_1 input[type=password]{font-family:var(--font-family-mono);letter-spacing:.15em}._textInput_16mxa_1 input[type=number]::-webkit-inner-spin-button,._textInput_16mxa_1 input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._textInput_16mxa_1 input[type=number]{-moz-appearance:textfield}._required_16mxa_82{color:var(--color-error);font-weight:var(--font-weight-bold);margin-left:4px}._inputError_16mxa_89{border-color:var(--color-error)!important;background:linear-gradient(135deg,var(--color-error-bg),var(--color-background))!important;animation:_shake_16mxa_1 .3s cubic-bezier(.36,.07,.19,.97) both}._inputError_16mxa_89:focus{box-shadow:0 0 0 3px #f43f5e26!important}._errorMessage_16mxa_102{position:absolute;color:var(--color-error);font-size:var(--font-size-xs);margin-top:var(--spacing-xs);display:flex;align-items:center;gap:var(--spacing-xs);animation:_slideDown_16mxa_1 .3s ease-out;font-weight:var(--font-weight-medium)}._errorMessage_16mxa_102:before{content:"⚠";font-size:1.2em}@keyframes _shake_16mxa_1{10%,90%{transform:translate(-1px)}20%,80%{transform:translate(2px)}30%,50%,70%{transform:translate(-3px)}40%,60%{transform:translate(3px)}}@keyframes _slideDown_16mxa_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._success_16mxa_138 input{border-color:var(--color-success)!important}._success_16mxa_138:after{content:"✓";position:absolute;right:var(--spacing-md);top:50%;transform:translateY(-50%);color:var(--color-success);font-weight:700;font-size:var(--font-size-lg);animation:_checkIn_16mxa_1 .3s ease-out;pointer-events:none}@keyframes _checkIn_16mxa_1{0%{opacity:0;transform:translateY(-50%) scale(0) rotate(-45deg)}to{opacity:1;transform:translateY(-50%) scale(1) rotate(0)}}._loading_16mxa_167 input{background-image:linear-gradient(90deg,var(--color-background) 0%,rgba(124,58,237,.05) 50%,var(--color-background) 100%);background-size:200% 100%;animation:_loading_16mxa_167 2s ease-in-out infinite}@keyframes _loading_16mxa_167{0%{background-position:200% 0}to{background-position:-200% 0}}._withIcon_16mxa_184{position:relative}._withIcon_16mxa_184 input{padding-left:44px}._inputIcon_16mxa_192{position:absolute;left:var(--spacing-md);top:50%;transform:translateY(-50%);color:var(--color-text-secondary);width:20px;height:20px;pointer-events:none;transition:color var(--transition-base)}._textInput_16mxa_1 input:focus~._inputIcon_16mxa_192{color:var(--color-primary)}._withAction_16mxa_209 input{padding-right:100px}._actionButton_16mxa_213{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:6px 12px;background:linear-gradient(135deg,var(--color-primary),var(--color-primary-hover));color:var(--color-text-inverse);border:none;border-radius:var(--radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all var(--transition-base)}._actionButton_16mxa_213:hover{background:linear-gradient(135deg,var(--color-primary-hover),var(--color-primary-active));transform:translateY(-50%) scale(1.05)}._actionButton_16mxa_213:active{transform:translateY(-50%) scale(.95)}[data-theme=dark] ._textInput_16mxa_1 input{background:linear-gradient(135deg,var(--color-background-secondary),var(--color-background-tertiary));border-color:var(--color-border)}[data-theme=dark] ._textInput_16mxa_1 input:hover:not(:focus):not(:disabled){background:var(--color-background-secondary);border-color:var(--color-border-hover)}[data-theme=dark] ._textInput_16mxa_1 input:focus{background:var(--color-background-secondary);border-color:var(--color-primary-light);box-shadow:0 0 0 3px #a78bfa1a}[data-theme=dark] ._inputError_16mxa_89{background:linear-gradient(135deg,rgba(244,63,94,.1),var(--color-background-secondary))!important}[data-theme=dark] ._inputIcon_16mxa_192{color:var(--color-text-tertiary)}[data-theme=dark] ._textInput_16mxa_1 input:focus~._inputIcon_16mxa_192{color:var(--color-primary-light)}@media (max-width: 768px){._textInput_16mxa_1{margin-bottom:var(--spacing-md)}._textInput_16mxa_1 label{font-size:var(--font-size-base);margin-bottom:var(--spacing-xs)}._textInput_16mxa_1 input{min-height:48px;padding:var(--spacing-md);font-size:16px;border-radius:var(--radius-md)}._withIcon_16mxa_184 input{padding-left:48px}._inputIcon_16mxa_192{left:var(--spacing-md);width:24px;height:24px}._errorMessage_16mxa_102{font-size:var(--font-size-sm);position:static;margin-top:var(--spacing-sm)}}@media (prefers-contrast: high){._textInput_16mxa_1 input{border-width:3px}._textInput_16mxa_1 input:focus{outline:2px solid var(--color-primary);outline-offset:2px}}@media (prefers-reduced-motion: reduce){._textInput_16mxa_1 input,._inputIcon_16mxa_192,._errorMessage_16mxa_102{animation:none;transition:none}}._textInput_16mxa_1 input:-webkit-autofill,._textInput_16mxa_1 input:-webkit-autofill:hover,._textInput_16mxa_1 input:-webkit-autofill:focus{-webkit-text-fill-color:var(--color-text);-webkit-box-shadow:0 0 0px 1000px var(--color-background) inset;transition:background-color 5000s ease-in-out 0s;border:2px solid var(--color-primary)}._textInput_16mxa_1 input[type=search]::-webkit-search-decoration,._textInput_16mxa_1 input[type=search]::-webkit-search-cancel-button,._textInput_16mxa_1 input[type=search]::-webkit-search-results-button,._textInput_16mxa_1 input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}
@@ -0,0 +1,28 @@
1
+ import{R as f,j as a}from"./iframe-Cw8dCV4Z.js";import{u as T}from"./useSound-D23BsIr4.js";const V="_textInput_16mxa_1",A="_required_16mxa_82",k="_inputError_16mxa_89",M="_errorMessage_16mxa_102",R="_success_16mxa_138",S="_loading_16mxa_167",P="_withIcon_16mxa_184",$="_inputIcon_16mxa_192",B="_withAction_16mxa_209",F="_actionButton_16mxa_213",t={textInput:V,required:A,inputError:k,errorMessage:M,success:R,loading:S,withIcon:P,inputIcon:$,withAction:B,actionButton:F};function H({label:_,value:r,onChange:I,type:b="text",onBlur:v,placeholder:w,error:n,required:y,disabled:m=!1,success:g=!1,loading:o=!1,icon:c,actionButton:l,maxLength:E,autoComplete:j,soundConfig:s,enableTypingSounds:q=!1}){const i=`input-${Math.random().toString(36).substr(2,9)}`,{handlers:u,playSound:p}=T(s),h=f.useRef(r),N=()=>{const e=[t.textInput];return g&&e.push(t.success),o&&e.push(t.loading),c&&e.push(t.withIcon),l&&e.push(t.withAction),e.join(" ")};return f.useEffect(()=>{h.current=r},[r]),a.jsxs("div",{className:N(),children:[a.jsxs("label",{htmlFor:i,children:[_,y&&a.jsx("span",{className:t.required,children:"*"})]}),a.jsxs("div",{style:{position:"relative"},children:[c&&a.jsx("div",{className:t.inputIcon,children:c}),a.jsx("input",{id:i,type:b,value:r,onChange:e=>{const d=e.target.value,x=h.current;I(d),(q||s!=null&&s.onClick)&&(d.length>x.length?p("type"):d.length<x.length&&p("delete")),n&&(s!=null&&s.onError)&&p(typeof s.onError=="string"?s.onError:"error")},onBlur:v,placeholder:w,className:n?t.inputError:"","aria-invalid":!!n,"aria-describedby":n?`${i}-error`:void 0,disabled:m||o,maxLength:E,autoComplete:j}),l&&a.jsx("button",{type:"button",className:t.actionButton,onClick:()=>{var e;(e=u.onClick)==null||e.call(u),l.onClick()},disabled:m||o,children:l.label})]}),n&&a.jsx("span",{id:`${i}-error`,className:t.errorMessage,children:n})]})}H.__docgenInfo={description:`TextInput component - A versatile text input field with label and error handling
2
+
3
+ @component
4
+ @description
5
+ A foundational input component that provides a clean, accessible text field with
6
+ built-in support for labels, validation errors, and various HTML5 input types.
7
+ Follows design system tokens for consistent theming across light/dark modes.
8
+
9
+ @example
10
+ // Basic usage
11
+ <TextInput
12
+ label="Email Address"
13
+ value={email}
14
+ onChange={setEmail}
15
+ type="email"
16
+ placeholder="Enter your email"
17
+ />
18
+
19
+ @example
20
+ // With validation error
21
+ <TextInput
22
+ label="Password"
23
+ value={password}
24
+ onChange={setPassword}
25
+ type="password"
26
+ error="Password must be at least 8 characters"
27
+ required
28
+ />`,methods:[],displayName:"TextInput",props:{type:{defaultValue:{value:'"text"',computed:!1},required:!1},disabled:{defaultValue:{value:"false",computed:!1},required:!1},success:{defaultValue:{value:"false",computed:!1},required:!1},loading:{defaultValue:{value:"false",computed:!1},required:!1},enableTypingSounds:{defaultValue:{value:"false",computed:!1},required:!1}}};export{H as T};
@@ -0,0 +1,89 @@
1
+ import{r as i,j as e}from"./iframe-Cw8dCV4Z.js";import{T as u}from"./TextInput-CLgIGUn3.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-D23BsIr4.js";const U={title:"Atoms/TextInput",component:u,parameters:{layout:"centered",docs:{description:{component:"A simple wrapper around Input component for text input with controlled state management."}}},argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},error:{control:"text"},type:{control:"select",options:["text","email","password","tel","url"]},required:{control:"boolean"},onChange:{action:"changed"},onBlur:{action:"blurred"}}},s={args:{label:"Name",value:"",placeholder:"Enter your name",onChange:()=>{}}},o={args:{label:"Email",value:"invalid-email",type:"email",error:"Please enter a valid email address",onChange:()=>{}}},n={args:{label:"Username",value:"",placeholder:"Enter username",required:!0,onChange:()=>{}},render:()=>{const[m,y]=i.useState(""),[t,f]=i.useState(""),[a,d]=i.useState({}),C=()=>{const r={};m||(r.username="Username is required"),t?t.length<6&&(r.password="Password must be at least 6 characters"):r.password="Password is required",d(r)};return e.jsxs("div",{style:{padding:"2rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1.5rem"},children:"Login"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[e.jsx(u,{label:"Username",value:m,onChange:r=>{y(r),a.username&&d(l=>({...l,username:void 0}))},placeholder:"Enter username",error:a.username,required:!0}),e.jsx(u,{label:"Password",type:"password",value:t,onChange:r=>{f(r),a.password&&d(l=>({...l,password:void 0}))},placeholder:"Enter password",error:a.password,required:!0}),e.jsx("button",{type:"button",onClick:C,style:{padding:"0.75rem 1rem",backgroundColor:"var(--color-primary)",color:"white",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",marginTop:"0.5rem"},children:"Login"})]})]})},parameters:{controls:{disable:!0}}};var p,c,g;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:`{
2
+ args: {
3
+ label: 'Name',
4
+ value: '',
5
+ placeholder: 'Enter your name',
6
+ onChange: () => {}
7
+ }
8
+ }`,...(g=(c=s.parameters)==null?void 0:c.docs)==null?void 0:g.source}}};var h,b,v;o.parameters={...o.parameters,docs:{...(h=o.parameters)==null?void 0:h.docs,source:{originalSource:`{
9
+ args: {
10
+ label: 'Email',
11
+ value: 'invalid-email',
12
+ type: 'email',
13
+ error: 'Please enter a valid email address',
14
+ onChange: () => {}
15
+ }
16
+ }`,...(v=(b=o.parameters)==null?void 0:b.docs)==null?void 0:v.source}}};var w,x,E;n.parameters={...n.parameters,docs:{...(w=n.parameters)==null?void 0:w.docs,source:{originalSource:`{
17
+ args: {
18
+ label: 'Username',
19
+ value: '',
20
+ placeholder: 'Enter username',
21
+ required: true,
22
+ onChange: () => {}
23
+ },
24
+ render: () => {
25
+ const [username, setUsername] = useState('');
26
+ const [password, setPassword] = useState('');
27
+ const [errors, setErrors] = useState<{
28
+ username?: string;
29
+ password?: string;
30
+ }>({});
31
+ const handleSubmit = () => {
32
+ const newErrors: {
33
+ username?: string;
34
+ password?: string;
35
+ } = {};
36
+ if (!username) newErrors.username = 'Username is required';
37
+ if (!password) newErrors.password = 'Password is required';else if (password.length < 6) newErrors.password = 'Password must be at least 6 characters';
38
+ setErrors(newErrors);
39
+ };
40
+ return <div style={{
41
+ padding: '2rem',
42
+ background: 'var(--color-background)',
43
+ border: '1px solid var(--color-border)',
44
+ borderRadius: 'var(--radius-md)',
45
+ maxWidth: '400px'
46
+ }}>
47
+ <h3 style={{
48
+ marginTop: 0,
49
+ marginBottom: '1.5rem'
50
+ }}>Login</h3>
51
+ <div style={{
52
+ display: 'flex',
53
+ flexDirection: 'column',
54
+ gap: '1rem'
55
+ }}>
56
+ <TextInput label="Username" value={username} onChange={value => {
57
+ setUsername(value);
58
+ if (errors.username) setErrors(prev => ({
59
+ ...prev,
60
+ username: undefined
61
+ }));
62
+ }} placeholder="Enter username" error={errors.username} required />
63
+ <TextInput label="Password" type="password" value={password} onChange={value => {
64
+ setPassword(value);
65
+ if (errors.password) setErrors(prev => ({
66
+ ...prev,
67
+ password: undefined
68
+ }));
69
+ }} placeholder="Enter password" error={errors.password} required />
70
+ <button type="button" onClick={handleSubmit} style={{
71
+ padding: '0.75rem 1rem',
72
+ backgroundColor: 'var(--color-primary)',
73
+ color: 'white',
74
+ border: 'none',
75
+ borderRadius: 'var(--radius-sm)',
76
+ cursor: 'pointer',
77
+ marginTop: '0.5rem'
78
+ }}>
79
+ Login
80
+ </button>
81
+ </div>
82
+ </div>;
83
+ },
84
+ parameters: {
85
+ controls: {
86
+ disable: true
87
+ }
88
+ }
89
+ }`,...(E=(x=n.parameters)==null?void 0:x.docs)==null?void 0:E.source}}};const j=["Default","WithError","LoginForm"];export{s as Default,n as LoginForm,o as WithError,j as __namedExportsOrder,U as default};
@@ -1,4 +1,4 @@
1
- import{r,j as F}from"./iframe-B8pH-Lvr.js";import"./preload-helper-C1FmrZbK.js";const J=(i,o)=>{const a=o.x-i.x,l=o.y-i.y;return Math.sqrt(a*a+l*l)},v=(i,o,a,l)=>{const h=l-Math.abs(l*i/o);return Math.max(a,h+a)},K=(i,o)=>{let a;return(...l)=>{clearTimeout(a),a=setTimeout(()=>{i.apply(void 0,l)},o)}},P=({text:i="Compressa",fontFamily:o="Compressa VF",fontUrl:a="https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:l=!0,weight:h=!0,italic:V=!0,alpha:g=!1,flex:A=!0,stroke:q=!1,scale:S=!1,textColor:x="#FFFFFF",strokeColor:k="#FF0000",className:O="",minFontSize:R=24})=>{const p=r.useRef(null),d=r.useRef(null),E=r.useRef([]),c=r.useRef({x:0,y:0}),f=r.useRef({x:0,y:0}),[X,G]=r.useState(R),[N,b]=r.useState(1),[Y,M]=r.useState(1),C=i.split("");r.useEffect(()=>{const e=t=>{f.current.x=t.clientX,f.current.y=t.clientY},u=t=>{const s=t.touches[0];f.current.x=s.clientX,f.current.y=s.clientY};if(window.addEventListener("mousemove",e),window.addEventListener("touchmove",u,{passive:!0}),p.current){const{left:t,top:s,width:n,height:m}=p.current.getBoundingClientRect();c.current.x=t+n/2,c.current.y=s+m/2,f.current.x=c.current.x,f.current.y=c.current.y}return()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",u)}},[]);const $=r.useCallback(()=>{if(!p.current||!d.current)return;const{width:e,height:u}=p.current.getBoundingClientRect();let t=e/(C.length/2);t=Math.max(t,R),G(t),b(1),M(1),requestAnimationFrame(()=>{if(!d.current)return;const s=d.current.getBoundingClientRect();if(S&&s.height>0){const n=u/s.height;b(n),M(n)}})},[C.length,R,S]);r.useEffect(()=>{const e=K($,100);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[$]),r.useEffect(()=>{let e;const u=()=>{if(c.current.x+=(f.current.x-c.current.x)/15,c.current.y+=(f.current.y-c.current.y)/15,d.current){const s=d.current.getBoundingClientRect().width/2;E.current.forEach(n=>{if(!n)return;const m=n.getBoundingClientRect(),H={x:m.x+m.width/2,y:m.y+m.height/2},w=J(c.current,H),I=l?Math.floor(v(w,s,5,200)):100,U=h?Math.floor(v(w,s,100,900)):400,W=V?v(w,s,0,1).toFixed(2):0,z=g?v(w,s,0,1).toFixed(2):1,j=`'wght' ${U}, 'wdth' ${I}, 'ital' ${W}`;n.style.fontVariationSettings!==j&&(n.style.fontVariationSettings=j),g&&n.style.opacity!==z&&(n.style.opacity=z)})}e=requestAnimationFrame(u)};return u(),()=>cancelAnimationFrame(e)},[l,h,V,g]);const _=r.useMemo(()=>F.jsx("style",{children:`
1
+ import{r,j as F}from"./iframe-Cw8dCV4Z.js";import"./preload-helper-C1FmrZbK.js";const J=(i,o)=>{const a=o.x-i.x,l=o.y-i.y;return Math.sqrt(a*a+l*l)},v=(i,o,a,l)=>{const h=l-Math.abs(l*i/o);return Math.max(a,h+a)},K=(i,o)=>{let a;return(...l)=>{clearTimeout(a),a=setTimeout(()=>{i.apply(void 0,l)},o)}},P=({text:i="Compressa",fontFamily:o="Compressa VF",fontUrl:a="https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:l=!0,weight:h=!0,italic:V=!0,alpha:g=!1,flex:A=!0,stroke:q=!1,scale:S=!1,textColor:x="#FFFFFF",strokeColor:k="#FF0000",className:O="",minFontSize:R=24})=>{const p=r.useRef(null),d=r.useRef(null),E=r.useRef([]),c=r.useRef({x:0,y:0}),f=r.useRef({x:0,y:0}),[X,G]=r.useState(R),[N,b]=r.useState(1),[Y,M]=r.useState(1),C=i.split("");r.useEffect(()=>{const e=t=>{f.current.x=t.clientX,f.current.y=t.clientY},u=t=>{const s=t.touches[0];f.current.x=s.clientX,f.current.y=s.clientY};if(window.addEventListener("mousemove",e),window.addEventListener("touchmove",u,{passive:!0}),p.current){const{left:t,top:s,width:n,height:m}=p.current.getBoundingClientRect();c.current.x=t+n/2,c.current.y=s+m/2,f.current.x=c.current.x,f.current.y=c.current.y}return()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",u)}},[]);const $=r.useCallback(()=>{if(!p.current||!d.current)return;const{width:e,height:u}=p.current.getBoundingClientRect();let t=e/(C.length/2);t=Math.max(t,R),G(t),b(1),M(1),requestAnimationFrame(()=>{if(!d.current)return;const s=d.current.getBoundingClientRect();if(S&&s.height>0){const n=u/s.height;b(n),M(n)}})},[C.length,R,S]);r.useEffect(()=>{const e=K($,100);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[$]),r.useEffect(()=>{let e;const u=()=>{if(c.current.x+=(f.current.x-c.current.x)/15,c.current.y+=(f.current.y-c.current.y)/15,d.current){const s=d.current.getBoundingClientRect().width/2;E.current.forEach(n=>{if(!n)return;const m=n.getBoundingClientRect(),H={x:m.x+m.width/2,y:m.y+m.height/2},w=J(c.current,H),I=l?Math.floor(v(w,s,5,200)):100,U=h?Math.floor(v(w,s,100,900)):400,W=V?v(w,s,0,1).toFixed(2):0,z=g?v(w,s,0,1).toFixed(2):1,j=`'wght' ${U}, 'wdth' ${I}, 'ital' ${W}`;n.style.fontVariationSettings!==j&&(n.style.fontVariationSettings=j),g&&n.style.opacity!==z&&(n.style.opacity=z)})}e=requestAnimationFrame(u)};return u(),()=>cancelAnimationFrame(e)},[l,h,V,g]);const _=r.useMemo(()=>F.jsx("style",{children:`
2
2
  @font-face {
3
3
  font-family: '${o}';
4
4
  src: url('${a}');
@@ -28,7 +28,7 @@ import{r,j as F}from"./iframe-B8pH-Lvr.js";import"./preload-helper-C1FmrZbK.js";
28
28
  .text-pressure-title {
29
29
  color: ${x};
30
30
  }
31
- `}),[o,a,x,k]),D=[O,A?"flex":"",q?"stroke":""].filter(Boolean).join(" ");return F.jsxs("div",{ref:p,style:{position:"relative",width:"100%",height:"100%",background:"transparent"},children:[_,F.jsx("h1",{ref:d,className:`text-pressure-title ${D}`,style:{fontFamily:o,textTransform:"uppercase",fontSize:X,lineHeight:Y,transform:`scale(1, ${N})`,transformOrigin:"center top",margin:0,textAlign:"center",userSelect:"none",whiteSpace:"nowrap",fontWeight:100,width:"100%"},children:C.map((e,u)=>F.jsx("span",{ref:t=>E.current[u]=t,"data-char":e,style:{display:"inline-block",color:q?void 0:x},children:e},u))})]})};P.__docgenInfo={description:"",methods:[],displayName:"TextPressure",props:{text:{defaultValue:{value:"'Compressa'",computed:!1},required:!1},fontFamily:{defaultValue:{value:"'Compressa VF'",computed:!1},required:!1},fontUrl:{defaultValue:{value:"'https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2'",computed:!1},required:!1},width:{defaultValue:{value:"true",computed:!1},required:!1},weight:{defaultValue:{value:"true",computed:!1},required:!1},italic:{defaultValue:{value:"true",computed:!1},required:!1},alpha:{defaultValue:{value:"false",computed:!1},required:!1},flex:{defaultValue:{value:"true",computed:!1},required:!1},stroke:{defaultValue:{value:"false",computed:!1},required:!1},scale:{defaultValue:{value:"false",computed:!1},required:!1},textColor:{defaultValue:{value:"'#FFFFFF'",computed:!1},required:!1},strokeColor:{defaultValue:{value:"'#FF0000'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},minFontSize:{defaultValue:{value:"24",computed:!1},required:!1}}};const ee={title:"ReactBits/TextAnimations/TextPressure",component:P,parameters:{layout:"fullscreen"},tags:["autodocs"]},y={args:{text:"Compressa",fontFamily:"Compressa VF",fontUrl:"https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:!0,weight:!0,italic:!0,alpha:!1,flex:!0,stroke:!1,scale:!1,textColor:"#FFFFFF",strokeColor:"#FF0000",minFontSize:24}};var T,B,L;y.parameters={...y.parameters,docs:{...(T=y.parameters)==null?void 0:T.docs,source:{originalSource:`{
31
+ `}),[o,a,x,k]),D=[O,A?"flex":"",q?"stroke":""].filter(Boolean).join(" ");return F.jsxs("div",{ref:p,style:{position:"relative",width:"100%",height:"100%",background:"transparent"},children:[_,F.jsx("h1",{ref:d,className:`text-pressure-title ${D}`,style:{fontFamily:o,textTransform:"uppercase",fontSize:X,lineHeight:Y,transform:`scale(1, ${N})`,transformOrigin:"center top",margin:0,textAlign:"center",userSelect:"none",whiteSpace:"nowrap",fontWeight:100,width:"100%"},children:C.map((e,u)=>F.jsx("span",{ref:t=>E.current[u]=t,"data-char":e,style:{display:"inline-block",color:q?void 0:x},children:e},u))})]})};P.__docgenInfo={description:"",methods:[],displayName:"TextPressure",props:{text:{defaultValue:{value:"'Compressa'",computed:!1},required:!1},fontFamily:{defaultValue:{value:"'Compressa VF'",computed:!1},required:!1},fontUrl:{defaultValue:{value:"'https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2'",computed:!1},required:!1},width:{defaultValue:{value:"true",computed:!1},required:!1},weight:{defaultValue:{value:"true",computed:!1},required:!1},italic:{defaultValue:{value:"true",computed:!1},required:!1},alpha:{defaultValue:{value:"false",computed:!1},required:!1},flex:{defaultValue:{value:"true",computed:!1},required:!1},stroke:{defaultValue:{value:"false",computed:!1},required:!1},scale:{defaultValue:{value:"false",computed:!1},required:!1},textColor:{defaultValue:{value:"'#FFFFFF'",computed:!1},required:!1},strokeColor:{defaultValue:{value:"'#FF0000'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},minFontSize:{defaultValue:{value:"24",computed:!1},required:!1}}};const ee={title:"ReactBits/TextAnimations/TextPressure",component:P,parameters:{layout:"fullscreen"}},y={args:{text:"Compressa",fontFamily:"Compressa VF",fontUrl:"https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2",width:!0,weight:!0,italic:!0,alpha:!1,flex:!0,stroke:!1,scale:!1,textColor:"#FFFFFF",strokeColor:"#FF0000",minFontSize:24}};var T,B,L;y.parameters={...y.parameters,docs:{...(T=y.parameters)==null?void 0:T.docs,source:{originalSource:`{
32
32
  args: {
33
33
  text: 'Compressa',
34
34
  fontFamily: 'Compressa VF',
@@ -1,4 +1,4 @@
1
- import{r as e,j}from"./iframe-B8pH-Lvr.js";import{g as A}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const S={"text-type__cursor":"_text-type__cursor_i3t4x_6","text-type__cursor--hidden":"_text-type__cursor--hidden_i3t4x_12"},b=({text:n,as:k="div",typingSpeed:i=50,initialDelay:C=0,pauseDuration:x=2e3,deletingSpeed:V=30,loop:h=!0,className:w="",showCursor:y=!0,hideCursorWhileTyping:B=!1,cursorCharacter:H="|",cursorClassName:z="",cursorBlinkDuration:q=.5,textColors:g=[],variableSpeed:l,onSentenceComplete:T,startOnVisible:_=!1,reverseMode:D=!1,...F})=>{const[c,I]=e.useState(""),[o,E]=e.useState(0),[f,N]=e.useState(!1),[r,G]=e.useState(0),[R,J]=e.useState(!_),d=e.useRef(null),v=e.useRef(null),s=e.useMemo(()=>Array.isArray(n)?n:[n],[n]),K=e.useCallback(()=>{if(!l)return i;const{min:t,max:u}=l;return Math.random()*(u-t)+t},[l,i]),L=()=>g.length===0?"inherit":g[r%g.length];e.useEffect(()=>{if(!_||!v.current)return;const t=new IntersectionObserver(u=>{u.forEach(p=>{p.isIntersecting&&J(!0)})},{threshold:.1});return t.observe(v.current),()=>t.disconnect()},[_]),e.useEffect(()=>{y&&d.current&&(A.set(d.current,{opacity:1}),A.to(d.current,{opacity:0,duration:q,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[y,q]),e.useEffect(()=>{if(!R)return;let t;const u=s[r],p=D?u.split("").reverse().join(""):u,W=()=>{if(f)if(c===""){if(N(!1),r===s.length-1&&!h)return;T&&T(s[r],r),G(a=>(a+1)%s.length),E(0),t=setTimeout(()=>{},x)}else t=setTimeout(()=>{I(a=>a.slice(0,-1))},V);else if(o<p.length)t=setTimeout(()=>{I(a=>a+p[o]),E(a=>a+1)},l?K():i);else if(s.length>=1){if(!h&&r===s.length-1)return;t=setTimeout(()=>{N(!0)},x)}};return o===0&&!f&&c===""?t=setTimeout(W,C):W(),()=>clearTimeout(t)},[o,c,f,i,V,x,s,r,h,C,R,D,l,T]);const P=B&&(o<s[r].length||f);return e.createElement(k,{ref:v,className:`text-type ${w}`,...F},j.jsx("span",{className:"text-type__content",style:{color:L()||"inherit"},children:c}),y&&j.jsx("span",{ref:d,className:`${S["text-type__cursor"]} ${z} ${P?S["text-type__cursor--hidden"]:""}`,children:H}))};b.__docgenInfo={description:"",methods:[],displayName:"TextType",props:{as:{defaultValue:{value:"'div'",computed:!1},required:!1},typingSpeed:{defaultValue:{value:"50",computed:!1},required:!1},initialDelay:{defaultValue:{value:"0",computed:!1},required:!1},pauseDuration:{defaultValue:{value:"2000",computed:!1},required:!1},deletingSpeed:{defaultValue:{value:"30",computed:!1},required:!1},loop:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showCursor:{defaultValue:{value:"true",computed:!1},required:!1},hideCursorWhileTyping:{defaultValue:{value:"false",computed:!1},required:!1},cursorCharacter:{defaultValue:{value:"'|'",computed:!1},required:!1},cursorClassName:{defaultValue:{value:"''",computed:!1},required:!1},cursorBlinkDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},textColors:{defaultValue:{value:"[]",computed:!1},required:!1},startOnVisible:{defaultValue:{value:"false",computed:!1},required:!1},reverseMode:{defaultValue:{value:"false",computed:!1},required:!1}}};const Y={title:"ReactBits/TextAnimations/TextType",component:b,parameters:{layout:"fullscreen"},tags:["autodocs"]},m={args:{text:"Hello World",as:"div",typingSpeed:50,initialDelay:0,pauseDuration:2e3,deletingSpeed:30,loop:!0,showCursor:!0,hideCursorWhileTyping:!1,cursorCharacter:"|",cursorClassName:"",cursorBlinkDuration:.5,textColors:[],startOnVisible:!1,reverseMode:!1}};var M,O,$;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`{
1
+ import{r as e,j}from"./iframe-Cw8dCV4Z.js";import{g as A}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const S={"text-type__cursor":"_text-type__cursor_i3t4x_6","text-type__cursor--hidden":"_text-type__cursor--hidden_i3t4x_12"},b=({text:o,as:k="div",typingSpeed:i=50,initialDelay:C=0,pauseDuration:x=2e3,deletingSpeed:V=30,loop:h=!0,className:w="",showCursor:y=!0,hideCursorWhileTyping:B=!1,cursorCharacter:H="|",cursorClassName:z="",cursorBlinkDuration:q=.5,textColors:g=[],variableSpeed:l,onSentenceComplete:T,startOnVisible:_=!1,reverseMode:D=!1,...F})=>{const[c,I]=e.useState(""),[n,E]=e.useState(0),[f,N]=e.useState(!1),[r,G]=e.useState(0),[R,J]=e.useState(!_),d=e.useRef(null),v=e.useRef(null),s=e.useMemo(()=>Array.isArray(o)?o:[o],[o]),K=e.useCallback(()=>{if(!l)return i;const{min:t,max:u}=l;return Math.random()*(u-t)+t},[l,i]),L=()=>g.length===0?"inherit":g[r%g.length];e.useEffect(()=>{if(!_||!v.current)return;const t=new IntersectionObserver(u=>{u.forEach(p=>{p.isIntersecting&&J(!0)})},{threshold:.1});return t.observe(v.current),()=>t.disconnect()},[_]),e.useEffect(()=>{y&&d.current&&(A.set(d.current,{opacity:1}),A.to(d.current,{opacity:0,duration:q,repeat:-1,yoyo:!0,ease:"power2.inOut"}))},[y,q]),e.useEffect(()=>{if(!R)return;let t;const u=s[r],p=D?u.split("").reverse().join(""):u,W=()=>{if(f)if(c===""){if(N(!1),r===s.length-1&&!h)return;T&&T(s[r],r),G(a=>(a+1)%s.length),E(0),t=setTimeout(()=>{},x)}else t=setTimeout(()=>{I(a=>a.slice(0,-1))},V);else if(n<p.length)t=setTimeout(()=>{I(a=>a+p[n]),E(a=>a+1)},l?K():i);else if(s.length>=1){if(!h&&r===s.length-1)return;t=setTimeout(()=>{N(!0)},x)}};return n===0&&!f&&c===""?t=setTimeout(W,C):W(),()=>clearTimeout(t)},[n,c,f,i,V,x,s,r,h,C,R,D,l,T]);const P=B&&(n<s[r].length||f);return e.createElement(k,{ref:v,className:`text-type ${w}`,...F},j.jsx("span",{className:"text-type__content",style:{color:L()||"inherit"},children:c}),y&&j.jsx("span",{ref:d,className:`${S["text-type__cursor"]} ${z} ${P?S["text-type__cursor--hidden"]:""}`,children:H}))};b.__docgenInfo={description:"",methods:[],displayName:"TextType",props:{as:{defaultValue:{value:"'div'",computed:!1},required:!1},typingSpeed:{defaultValue:{value:"50",computed:!1},required:!1},initialDelay:{defaultValue:{value:"0",computed:!1},required:!1},pauseDuration:{defaultValue:{value:"2000",computed:!1},required:!1},deletingSpeed:{defaultValue:{value:"30",computed:!1},required:!1},loop:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},showCursor:{defaultValue:{value:"true",computed:!1},required:!1},hideCursorWhileTyping:{defaultValue:{value:"false",computed:!1},required:!1},cursorCharacter:{defaultValue:{value:"'|'",computed:!1},required:!1},cursorClassName:{defaultValue:{value:"''",computed:!1},required:!1},cursorBlinkDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},textColors:{defaultValue:{value:"[]",computed:!1},required:!1},startOnVisible:{defaultValue:{value:"false",computed:!1},required:!1},reverseMode:{defaultValue:{value:"false",computed:!1},required:!1}}};const Y={title:"ReactBits/TextAnimations/TextType",component:b,parameters:{layout:"fullscreen"}},m={args:{text:"Hello World",as:"div",typingSpeed:50,initialDelay:0,pauseDuration:2e3,deletingSpeed:30,loop:!0,showCursor:!0,hideCursorWhileTyping:!1,cursorCharacter:"|",cursorClassName:"",cursorBlinkDuration:.5,textColors:[],startOnVisible:!1,reverseMode:!1}};var M,O,$;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: 'Hello World',
4
4
  as: 'div',
@@ -0,0 +1,47 @@
1
+ import{r as p,j as e}from"./iframe-Cw8dCV4Z.js";import{m as s}from"./proxy-p8L3T_Zy.js";import{M as _,S as y}from"./sun-5V6ee2LJ.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BCa1jVYq.js";import"./createLucideIcon-dvowvj4F.js";const E=p.createContext(void 0),R=()=>p.useContext(E)??null,O=({children:o,defaultTheme:m="light",storageKey:l="app-theme"})=>{const[i,g]=p.useState(()=>{const a=localStorage.getItem(l);return a&&["light","dark","lossito","lossito-dark","dao","dao-dark","crt"].includes(a)?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":m}),v=a=>{g(a),localStorage.setItem(l,a)},n=()=>{const a=["light","dark","lossito","lossito-dark","dao","dao-dark","crt"],x=(a.indexOf(i)+1)%a.length;v(a[x])};return p.useEffect(()=>{const a=document.documentElement;a.setAttribute("data-theme",i),i.includes("dark")?a.classList.add("dark"):a.classList.remove("dark")},[i]),p.useEffect(()=>{const a=window.matchMedia("(prefers-color-scheme: dark)"),d=x=>{localStorage.getItem(l)||g(x.matches?"dark":"light")};return a.addEventListener("change",d),()=>a.removeEventListener("change",d)},[l]),e.jsx(E.Provider,{value:{theme:i,setTheme:v,toggleTheme:n},children:o})};O.__docgenInfo={description:"",methods:[],displayName:"ThemeProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:"",defaultValue:{value:"'light'",computed:!1}},storageKey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'app-theme'",computed:!1}}}};const W="_button_2917u_1",P="_iconWrapper_2917u_20",z="_label_2917u_28",A="_toggle_2917u_33",H="_toggleTrack_2917u_43",Q="_toggleThumb_2917u_53",F="_dropdown_2917u_65",G="_dropdownTrigger_2917u_69",J="_dropdownMenu_2917u_87",U="_dropdownItem_2917u_106",X="_active_2917u_124",Y="_icon_2917u_20",Z="_text_2917u_144",r={button:W,iconWrapper:P,label:z,toggle:A,toggleTrack:H,toggleThumb:Q,dropdown:F,dropdownTrigger:G,dropdownMenu:J,dropdownItem:U,active:X,icon:Y,text:Z},h=({variant:o="button",showLabel:m=!1,className:l="",currentTheme:i,onThemeChange:g,themes:v})=>{const n=R(),a=i??(n==null?void 0:n.theme)??"light",d=g??(n==null?void 0:n.setTheme)??(()=>{}),c=v??[{value:"light",label:"Light",icon:e.jsx(y,{})},{value:"dark",label:"Dark",icon:e.jsx(_,{})},{value:"lossito",label:"Lossito Light",icon:"✨"},{value:"lossito-dark",label:"Lossito Dark",icon:"🌑"},{value:"dao",label:"Dao Light",icon:"⬜"},{value:"dao-dark",label:"Dao Dark",icon:"⬛"}],k=c.findIndex(t=>t.value===a),u=c[k]??c[0];if(o==="toggle"){const t=a.includes("dark");return e.jsxs(s.button,{className:`${r.toggle} ${l}`,onClick:()=>d(t?"light":"dark"),whileTap:{scale:.95},"aria-label":"Toggle theme",children:[e.jsx(s.div,{className:r.toggleTrack,animate:{backgroundColor:t?"var(--color-primary)":"var(--color-border)"},children:e.jsx(s.div,{className:r.toggleThumb,animate:{x:t?24:0},transition:{type:"spring",stiffness:500,damping:30},children:t?e.jsx(_,{size:14}):e.jsx(y,{size:14})})}),m&&e.jsx("span",{className:r.label,children:t?"Dark":"Light"})]})}return o==="dropdown"?e.jsxs("div",{className:`${r.dropdown} ${l}`,children:[e.jsxs(s.button,{className:r.dropdownTrigger,whileTap:{scale:.98},children:[u.icon,m&&e.jsx("span",{className:r.label,children:u.label})]}),e.jsx(s.div,{className:r.dropdownMenu,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},children:c.map(t=>e.jsxs(s.button,{className:`${r.dropdownItem} ${a===t.value?r.active:""}`,onClick:()=>d(t.value),whileHover:{x:4},whileTap:{scale:.98},children:[e.jsx("span",{className:r.icon,children:t.icon}),e.jsx("span",{className:r.text,children:t.label})]},t.value))})]}):e.jsxs(s.button,{className:`${r.button} ${l}`,onClick:()=>{const t=(k+1)%c.length;d(c[t].value)},whileTap:{scale:.95},whileHover:{scale:1.05},"aria-label":`Current theme: ${u.label}. Click to change.`,children:[e.jsx(s.div,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:180,opacity:0},transition:{duration:.3},className:r.iconWrapper,children:u.icon},a),m&&e.jsx("span",{className:r.label,children:u.label})]})};h.__docgenInfo={description:"",methods:[],displayName:"ThemeSwitcher",props:{variant:{required:!1,tsType:{name:"union",raw:"'button' | 'dropdown' | 'toggle'",elements:[{name:"literal",value:"'button'"},{name:"literal",value:"'dropdown'"},{name:"literal",value:"'toggle'"}]},description:"",defaultValue:{value:"'button'",computed:!1}},showLabel:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},currentTheme:{required:!1,tsType:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},description:""},onThemeChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(theme: Theme) => void",signature:{arguments:[{type:{name:"union",raw:"'light' | 'dark' | 'lossito' | 'lossito-dark' | 'dao' | 'dao-dark' | 'crt'",elements:[{name:"literal",value:"'light'"},{name:"literal",value:"'dark'"},{name:"literal",value:"'lossito'"},{name:"literal",value:"'lossito-dark'"},{name:"literal",value:"'dao'"},{name:"literal",value:"'dao-dark'"},{name:"literal",value:"'crt'"}]},name:"theme"}],return:{name:"void"}}},description:""},themes:{required:!1,tsType:{name:"Array",elements:[{name:"ThemeOption"}],raw:"ThemeOption[]"},description:""}}};const K=({children:o})=>e.jsx(O,{defaultTheme:"light",children:o}),ne={title:"Molecules/ThemeSwitcher",component:h,decorators:[o=>e.jsx(K,{children:e.jsx("div",{style:{padding:"2rem"},children:e.jsx(o,{})})})],parameters:{layout:"centered"},argTypes:{variant:{control:{type:"select"},options:["button","dropdown","toggle"]},showLabel:{control:{type:"boolean"}}}},w={args:{variant:"button",showLabel:!0}},b={args:{variant:"toggle",showLabel:!0}},T={args:{variant:"dropdown",showLabel:!0}},f={render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",alignItems:"center"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Button Variant"}),e.jsx(h,{variant:"button",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Toggle Variant"}),e.jsx(h,{variant:"toggle",showLabel:!0})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"1rem",color:"var(--color-text)"},children:"Dropdown Variant"}),e.jsx(h,{variant:"dropdown",showLabel:!0})]})]})};var j,L,S;w.parameters={...w.parameters,docs:{...(j=w.parameters)==null?void 0:j.docs,source:{originalSource:`{
2
+ args: {
3
+ variant: 'button',
4
+ showLabel: true
5
+ }
6
+ }`,...(S=(L=w.parameters)==null?void 0:L.docs)==null?void 0:S.source}}};var I,N,D;b.parameters={...b.parameters,docs:{...(I=b.parameters)==null?void 0:I.docs,source:{originalSource:`{
7
+ args: {
8
+ variant: 'toggle',
9
+ showLabel: true
10
+ }
11
+ }`,...(D=(N=b.parameters)==null?void 0:N.docs)==null?void 0:D.source}}};var V,C,M;T.parameters={...T.parameters,docs:{...(V=T.parameters)==null?void 0:V.docs,source:{originalSource:`{
12
+ args: {
13
+ variant: 'dropdown',
14
+ showLabel: true
15
+ }
16
+ }`,...(M=(C=T.parameters)==null?void 0:C.docs)==null?void 0:M.source}}};var B,q,$;f.parameters={...f.parameters,docs:{...(B=f.parameters)==null?void 0:B.docs,source:{originalSource:`{
17
+ render: () => <div style={{
18
+ display: 'flex',
19
+ flexDirection: 'column',
20
+ gap: '2rem',
21
+ alignItems: 'center'
22
+ }}>
23
+ <div>
24
+ <h3 style={{
25
+ marginBottom: '1rem',
26
+ color: 'var(--color-text)'
27
+ }}>Button Variant</h3>
28
+ <ThemeSwitcher variant="button" showLabel />
29
+ </div>
30
+
31
+ <div>
32
+ <h3 style={{
33
+ marginBottom: '1rem',
34
+ color: 'var(--color-text)'
35
+ }}>Toggle Variant</h3>
36
+ <ThemeSwitcher variant="toggle" showLabel />
37
+ </div>
38
+
39
+ <div>
40
+ <h3 style={{
41
+ marginBottom: '1rem',
42
+ color: 'var(--color-text)'
43
+ }}>Dropdown Variant</h3>
44
+ <ThemeSwitcher variant="dropdown" showLabel />
45
+ </div>
46
+ </div>
47
+ }`,...($=(q=f.parameters)==null?void 0:q.docs)==null?void 0:$.source}}};const se=["Button","Toggle","Dropdown","MultipleVariants"];export{w as Button,T as Dropdown,f as MultipleVariants,b as Toggle,se as __namedExportsOrder,ne as default};
@@ -1,4 +1,4 @@
1
- import{r as d,j as z}from"./iframe-B8pH-Lvr.js";import{R as F,P as D,M as T}from"./Mesh-CwXV3WjE.js";import{T as q}from"./Triangle-64ffRKNB.js";import{C as P}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const I={"threads-container":"_threads-container_1ao30_1"},S=`
1
+ import{r as d,j as z}from"./iframe-Cw8dCV4Z.js";import{R as F,P as D,M as T}from"./Mesh-CwXV3WjE.js";import{T as q}from"./Triangle-64ffRKNB.js";import{C as P}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const I={"threads-container":"_threads-container_1ao30_1"},S=`
2
2
  attribute vec2 position;
3
3
  attribute vec2 uv;
4
4
  varying vec2 vUv;
@@ -111,7 +111,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
111
111
  void main() {
112
112
  mainImage(gl_FragColor, gl_FragCoord.xy);
113
113
  }
114
- `,C=({color:v=[1,1,1],amplitude:p=1,distance:_=0,enableMouseInteraction:r=!1,...b})=>{const c=d.useRef(null),s=d.useRef();return d.useEffect(()=>{if(!c.current)return;const o=c.current,f=new F({alpha:!0}),e=f.gl;e.clearColor(0,0,0,0),e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),o.appendChild(e.canvas);const M=new q(e),n=new D(e,{vertex:S,fragment:V,uniforms:{iTime:{value:0},iResolution:{value:new P(e.canvas.width,e.canvas.height,e.canvas.width/e.canvas.height)},uColor:{value:new P(...v)},uAmplitude:{value:p},uDistance:{value:_},uMouse:{value:new Float32Array([.5,.5])}}}),E=new T(e,{geometry:M,program:n});function m(){const{clientWidth:t,clientHeight:i}=o;f.setSize(t,i),n.uniforms.iResolution.value.r=t,n.uniforms.iResolution.value.g=i,n.uniforms.iResolution.value.b=t/i}window.addEventListener("resize",m),m();let a=[.5,.5],l=[.5,.5];function g(t){const i=o.getBoundingClientRect(),A=(t.clientX-i.left)/i.width,L=1-(t.clientY-i.top)/i.height;l=[A,L]}function h(){l=[.5,.5]}r&&(o.addEventListener("mousemove",g),o.addEventListener("mouseleave",h));function x(t){r?(a[0]+=.05*(l[0]-a[0]),a[1]+=.05*(l[1]-a[1]),n.uniforms.uMouse.value[0]=a[0],n.uniforms.uMouse.value[1]=a[1]):(n.uniforms.uMouse.value[0]=.5,n.uniforms.uMouse.value[1]=.5),n.uniforms.iTime.value=t*.001,f.render({scene:E}),s.current=requestAnimationFrame(x)}return s.current=requestAnimationFrame(x),()=>{var t;s.current&&cancelAnimationFrame(s.current),window.removeEventListener("resize",m),r&&(o.removeEventListener("mousemove",g),o.removeEventListener("mouseleave",h)),o.contains(e.canvas)&&o.removeChild(e.canvas),(t=e.getExtension("WEBGL_lose_context"))==null||t.loseContext()}},[v,p,_,r]),z.jsx("div",{ref:c,className:`${I["threads-container"]}`,...b})};C.__docgenInfo={description:"",methods:[],displayName:"Threads",props:{color:{defaultValue:{value:"[1, 1, 1]",computed:!1},required:!1},amplitude:{defaultValue:{value:"1",computed:!1},required:!1},distance:{defaultValue:{value:"0",computed:!1},required:!1},enableMouseInteraction:{defaultValue:{value:"false",computed:!1},required:!1}}};const O={title:"ReactBits/Backgrounds/Threads",component:C,parameters:{layout:"fullscreen"},tags:["autodocs"]},u={args:{color:[1,1,1],amplitude:1,distance:0,enableMouseInteraction:!1}};var y,w,R;u.parameters={...u.parameters,docs:{...(y=u.parameters)==null?void 0:y.docs,source:{originalSource:`{
114
+ `,C=({color:v=[1,1,1],amplitude:p=1,distance:_=0,enableMouseInteraction:r=!1,...b})=>{const c=d.useRef(null),s=d.useRef();return d.useEffect(()=>{if(!c.current)return;const o=c.current,f=new F({alpha:!0}),e=f.gl;e.clearColor(0,0,0,0),e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),o.appendChild(e.canvas);const M=new q(e),n=new D(e,{vertex:S,fragment:V,uniforms:{iTime:{value:0},iResolution:{value:new P(e.canvas.width,e.canvas.height,e.canvas.width/e.canvas.height)},uColor:{value:new P(...v)},uAmplitude:{value:p},uDistance:{value:_},uMouse:{value:new Float32Array([.5,.5])}}}),E=new T(e,{geometry:M,program:n});function m(){const{clientWidth:t,clientHeight:i}=o;f.setSize(t,i),n.uniforms.iResolution.value.r=t,n.uniforms.iResolution.value.g=i,n.uniforms.iResolution.value.b=t/i}window.addEventListener("resize",m),m();let a=[.5,.5],l=[.5,.5];function h(t){const i=o.getBoundingClientRect(),A=(t.clientX-i.left)/i.width,L=1-(t.clientY-i.top)/i.height;l=[A,L]}function x(){l=[.5,.5]}r&&(o.addEventListener("mousemove",h),o.addEventListener("mouseleave",x));function g(t){r?(a[0]+=.05*(l[0]-a[0]),a[1]+=.05*(l[1]-a[1]),n.uniforms.uMouse.value[0]=a[0],n.uniforms.uMouse.value[1]=a[1]):(n.uniforms.uMouse.value[0]=.5,n.uniforms.uMouse.value[1]=.5),n.uniforms.iTime.value=t*.001,f.render({scene:E}),s.current=requestAnimationFrame(g)}return s.current=requestAnimationFrame(g),()=>{var t;s.current&&cancelAnimationFrame(s.current),window.removeEventListener("resize",m),r&&(o.removeEventListener("mousemove",h),o.removeEventListener("mouseleave",x)),o.contains(e.canvas)&&o.removeChild(e.canvas),(t=e.getExtension("WEBGL_lose_context"))==null||t.loseContext()}},[v,p,_,r]),z.jsx("div",{ref:c,className:`${I["threads-container"]}`,...b})};C.__docgenInfo={description:"",methods:[],displayName:"Threads",props:{color:{defaultValue:{value:"[1, 1, 1]",computed:!1},required:!1},amplitude:{defaultValue:{value:"1",computed:!1},required:!1},distance:{defaultValue:{value:"0",computed:!1},required:!1},enableMouseInteraction:{defaultValue:{value:"false",computed:!1},required:!1}}};const O={title:"ReactBits/Backgrounds/Threads",component:C,parameters:{layout:"fullscreen"}},u={args:{color:[1,1,1],amplitude:1,distance:0,enableMouseInteraction:!1}};var y,w,R;u.parameters={...u.parameters,docs:{...(y=u.parameters)==null?void 0:y.docs,source:{originalSource:`{
115
115
  args: {
116
116
  color: [1, 1, 1],
117
117
  amplitude: 1,
@@ -0,0 +1 @@
1
+ ._modalOverlay_5gem4_2{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:_fadeIn_5gem4_1 .2s ease}@keyframes _fadeIn_5gem4_1{0%{opacity:0}to{opacity:1}}._modalContent_5gem4_22{background:var(--color-background);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);width:90%;max-width:400px;max-height:80vh;display:flex;flex-direction:column;animation:_slideUp_5gem4_1 .3s ease}@keyframes _slideUp_5gem4_1{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}._modalHeader_5gem4_45{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-lg);border-bottom:1px solid var(--color-border)}._modalHeader_5gem4_45 h3{margin:0;font-size:var(--font-size-lg);color:var(--color-text)}._closeButton_5gem4_59{background:none;border:none;color:var(--color-text-secondary);cursor:pointer;padding:var(--spacing-xs);display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);transition:all var(--transition-base)}._closeButton_5gem4_59:hover{background:var(--color-background-secondary);color:var(--color-text)}._timeDisplay_5gem4_77{text-align:center;font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);padding:var(--spacing-lg);color:var(--color-primary);font-family:var(--font-family-mono);letter-spacing:.1em}._pickerContainer_5gem4_87{display:flex;gap:var(--spacing-md);padding:0 var(--spacing-lg);justify-content:center;align-items:center}._pickerColumn_5gem4_95{flex:1;max-width:150px}._pickerLabel_5gem4_100{text-align:center;font-size:var(--font-size-sm);color:var(--color-text-secondary);margin-bottom:var(--spacing-sm);text-transform:uppercase;letter-spacing:.05em}._pickerScroll_5gem4_109{height:200px;overflow-y:auto;border:1px solid var(--color-border);border-radius:var(--radius-md);padding:var(--spacing-xs);background:var(--color-background-secondary)}._pickerScroll_5gem4_109::-webkit-scrollbar{width:6px}._pickerScroll_5gem4_109::-webkit-scrollbar-track{background:var(--color-background-tertiary);border-radius:3px}._pickerScroll_5gem4_109::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:3px}._pickerScroll_5gem4_109::-webkit-scrollbar-thumb:hover{background:var(--color-border-hover)}._pickerItem_5gem4_136{display:block;width:100%;padding:var(--spacing-sm);background:none;border:none;cursor:pointer;font-size:var(--font-size-base);color:var(--color-text);transition:all var(--transition-base);border-radius:var(--radius-sm)}._pickerItem_5gem4_136:hover{background:var(--color-background-tertiary)}._pickerItem_5gem4_136._selected_5gem4_153{background:var(--color-primary);color:#fff;font-weight:var(--font-weight-semibold)}._pickerDivider_5gem4_159{font-size:var(--font-size-2xl);color:var(--color-text-secondary);font-weight:var(--font-weight-bold);padding:0 var(--spacing-sm)}._modalActions_5gem4_166{display:flex;gap:var(--spacing-md);padding:var(--spacing-lg);border-top:1px solid var(--color-border)}._cancelButton_5gem4_173,._confirmButton_5gem4_174{flex:1;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--radius-md);font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);cursor:pointer;transition:all var(--transition-base);border:none}._cancelButton_5gem4_173{background:var(--color-background-secondary);color:var(--color-text)}._cancelButton_5gem4_173:hover{background:var(--color-background-tertiary)}._confirmButton_5gem4_174{background:var(--color-primary);color:#fff}._confirmButton_5gem4_174:hover{background:var(--color-primary-hover)}[data-theme=dark] ._modalContent_5gem4_22{background:var(--color-background-secondary)}@media (max-width: 768px){._modalContent_5gem4_22{width:95%;max-width:none}._pickerScroll_5gem4_109{height:150px}}._timeInput_1y65y_1{margin-bottom:var(--spacing-lg)}._label_1y65y_5{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-text);margin-bottom:var(--spacing-sm);letter-spacing:var(--letter-spacing-wide)}._required_1y65y_14{color:var(--color-error);margin-left:4px}._inputWrapper_1y65y_19{position:relative;display:flex;align-items:stretch;background:var(--color-background);border:2px solid var(--color-border);border-radius:var(--radius-lg);overflow:hidden;transition:all var(--transition-base);min-height:44px}._inputWrapper_1y65y_19:hover{border-color:var(--color-border-hover);box-shadow:var(--shadow-sm)}._inputWrapper_1y65y_19:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 3px #7c3aed1a}._textInput_1y65y_41{flex:1;padding:var(--spacing-sm) var(--spacing-md);border:none;background:transparent;font-size:var(--font-size-lg);font-family:var(--font-family-mono);color:var(--color-text);outline:none;min-height:44px}._textInput_1y65y_41::placeholder{color:var(--color-text-secondary);opacity:.6}._clockButton_1y65y_58{display:flex;align-items:center;justify-content:center;background:var(--color-primary);border:none;color:#fff;cursor:pointer;padding:0;min-width:44px;width:44px;height:auto;flex-shrink:0;transition:background var(--transition-base)}._clockButton_1y65y_58:hover:not(:disabled){background:var(--color-primary-hover)}._clockButton_1y65y_58:active:not(:disabled){transform:scale(.95)}._clockButton_1y65y_58:disabled{opacity:.5;cursor:not-allowed}._error_1y65y_88 ._inputWrapper_1y65y_19{border-color:var(--color-error)}._error_1y65y_88 ._label_1y65y_5{color:var(--color-error)}._success_1y65y_97 ._inputWrapper_1y65y_19{border-color:var(--color-success)}._loading_1y65y_102 ._inputWrapper_1y65y_19{position:relative;overflow:hidden}._loading_1y65y_102 ._inputWrapper_1y65y_19:after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(124,58,237,.1),transparent);animation:_shimmer_1y65y_1 2s infinite;pointer-events:none}@keyframes _shimmer_1y65y_1{to{left:100%}}._disabled_1y65y_131 ._inputWrapper_1y65y_19{background:var(--color-background-tertiary);cursor:not-allowed}._disabled_1y65y_131 ._textInput_1y65y_41{color:var(--color-text-tertiary);cursor:not-allowed}[data-theme=dark] ._inputWrapper_1y65y_19{background:var(--color-background-secondary);border-color:var(--color-border)}[data-theme=dark] ._inputWrapper_1y65y_19:focus-within{border-color:var(--color-primary-light);box-shadow:0 0 0 3px #a78bfa1a}@media (max-width: 768px){._textInput_1y65y_41{font-size:var(--font-size-xl)}._clockButton_1y65y_58{min-width:48px;height:48px}}
@@ -0,0 +1,13 @@
1
+ import{r as h,j as e}from"./iframe-Cw8dCV4Z.js";import{X as H}from"./x-CypMgsiv.js";import{c as A}from"./createLucideIcon-dvowvj4F.js";import"./preload-helper-C1FmrZbK.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 L=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],V=A("clock",L),$="_modalOverlay_5gem4_2",w="_modalContent_5gem4_22",P="_modalHeader_5gem4_45",E="_closeButton_5gem4_59",W="_timeDisplay_5gem4_77",F="_pickerContainer_5gem4_87",z="_pickerColumn_5gem4_95",R="_pickerLabel_5gem4_100",X="_pickerScroll_5gem4_109",G="_pickerItem_5gem4_136",J="_selected_5gem4_153",K="_pickerDivider_5gem4_159",Q="_modalActions_5gem4_166",U="_cancelButton_5gem4_173",Y="_confirmButton_5gem4_174",s={modalOverlay:$,modalContent:w,modalHeader:P,closeButton:E,timeDisplay:W,pickerContainer:F,pickerColumn:z,pickerLabel:R,pickerScroll:X,pickerItem:G,selected:J,pickerDivider:K,modalActions:Q,cancelButton:U,confirmButton:Y};function I({isOpen:k,onClose:i,value:l,onChange:y}){const[b,x]=l?l.split(":").map(Number):[12,0],[m,_]=h.useState(b),[c,u]=h.useState(x);h.useEffect(()=>{if(l){const[a,n]=l.split(":").map(Number);_(a),u(n)}},[l]);const f=()=>{const a=m.toString().padStart(2,"0"),n=c.toString().padStart(2,"0");y(`${a}:${n}`),i()};return k?e.jsx("div",{className:s.modalOverlay,onClick:i,children:e.jsxs("div",{className:s.modalContent,onClick:a=>a.stopPropagation(),children:[e.jsxs("div",{className:s.modalHeader,children:[e.jsx("h3",{children:"Select Time"}),e.jsx("button",{className:s.closeButton,onClick:i,"aria-label":"Close",children:e.jsx(H,{})})]}),e.jsxs("div",{className:s.timeDisplay,children:[m.toString().padStart(2,"0"),":",c.toString().padStart(2,"0")]}),e.jsxs("div",{className:s.pickerContainer,children:[e.jsxs("div",{className:s.pickerColumn,children:[e.jsx("div",{className:s.pickerLabel,children:"Hours"}),e.jsx("div",{className:s.pickerScroll,children:Array.from({length:24},(a,n)=>e.jsx("button",{className:`${s.pickerItem} ${m===n?s.selected:""}`,onClick:()=>_(n),children:n.toString().padStart(2,"0")},n))})]}),e.jsx("div",{className:s.pickerDivider,children:":"}),e.jsxs("div",{className:s.pickerColumn,children:[e.jsx("div",{className:s.pickerLabel,children:"Minutes"}),e.jsx("div",{className:s.pickerScroll,children:Array.from({length:60},(a,n)=>e.jsx("button",{className:`${s.pickerItem} ${c===n?s.selected:""}`,onClick:()=>u(n),children:n.toString().padStart(2,"0")},n))})]})]}),e.jsxs("div",{className:s.modalActions,children:[e.jsx("button",{className:s.cancelButton,onClick:i,children:"Cancel"}),e.jsx("button",{className:s.confirmButton,onClick:f,children:"Confirm"})]})]})}):null}I.__docgenInfo={description:"",methods:[],displayName:"TimePickerModal",props:{isOpen:{required:!0,tsType:{name:"boolean"},description:""},onClose:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(time: string) => void",signature:{arguments:[{type:{name:"string"},name:"time"}],return:{name:"void"}}},description:""}}};const Z="_timeInput_1y65y_1",ee="_label_1y65y_5",te="_required_1y65y_14",se="_inputWrapper_1y65y_19",ne="_textInput_1y65y_41",re="_clockButton_1y65y_58",ae="_error_1y65y_88",oe="_success_1y65y_97",le="_loading_1y65y_102",ce="_disabled_1y65y_131",o={timeInput:Z,label:ee,required:te,inputWrapper:se,textInput:ne,clockButton:re,error:ae,success:oe,loading:le,disabled:ce};function q({label:k,value:i,onChange:l,placeholder:y="14:30",onFocus:b,onBlur:x,error:m=!1,success:_=!1,loading:c=!1,disabled:u=!1,required:f=!1,className:a=""}){const[n,v]=h.useState(!1),B=r=>{if(!r)return"";let t=r.replace(/[^\d:]/g,"");if((t.match(/:/g)||[]).length>1&&(t=t.replace(/:/g,""),t.length>=3&&(t=t.substring(0,2)+":"+t.substring(2))),(t.length===3&&!t.includes(":")||t.length===4&&!t.includes(":"))&&(t=t.substring(0,2)+":"+t.substring(2)),t.includes(":")){const C=t.split(":");let p=C[0],d=C[1]||"";p=p.substring(0,2),p.length===2&&parseInt(p)>23&&(p="23"),d=d.substring(0,2),d.length===2&&parseInt(d)>59&&(d="59"),t=p+(d.length>0?":"+d:":")}return t.substring(0,5)},T=r=>{const t=B(r);l(t)},M=()=>{!u&&!c&&v(!0)},D=()=>{const r=[o.timeInput];return m&&r.push(o.error),_&&r.push(o.success),c&&r.push(o.loading),u&&r.push(o.disabled),a&&r.push(a),r.join(" ")};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:D(),children:[e.jsxs("label",{className:o.label,children:[k,f&&e.jsx("span",{className:o.required,children:"*"})]}),e.jsxs("div",{className:o.inputWrapper,children:[e.jsx("input",{type:"text",value:i,onChange:r=>T(r.target.value),onFocus:b,onBlur:x,placeholder:y,className:o.textInput,maxLength:5,disabled:u||c,"aria-invalid":m,"aria-required":f,inputMode:"numeric",pattern:"[0-9:]*"}),e.jsx("button",{type:"button",onClick:M,className:o.clockButton,title:"Open time picker",disabled:u||c,"aria-label":"Open time picker",children:e.jsx(V,{size:20})})]})]}),e.jsx(I,{isOpen:n,onClose:()=>v(!1),value:i,onChange:l})]})}q.__docgenInfo={description:"",methods:[],displayName:"TimeInput",props:{placeholder:{defaultValue:{value:'"14:30"',computed:!1},required:!1},error:{defaultValue:{value:"false",computed:!1},required:!1},success:{defaultValue:{value:"false",computed:!1},required:!1},loading:{defaultValue:{value:"false",computed:!1},required:!1},disabled:{defaultValue:{value:"false",computed:!1},required:!1},required:{defaultValue:{value:"false",computed:!1},required:!1},className:{defaultValue:{value:'""',computed:!1},required:!1}}};const _e={title:"Molecules/TimeInput",component:q,parameters:{layout:"centered",docs:{description:{component:"A time picker component with both manual text input and native time picker support. Formats time in 24-hour format."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},error:{control:"boolean"},success:{control:"boolean"},loading:{control:"boolean"},disabled:{control:"boolean"},required:{control:"boolean"},onChange:{action:"changed"},onFocus:{action:"focused"},onBlur:{action:"blurred"}}},g={args:{label:"Meeting Time",value:"14:30",placeholder:"14:30",onChange:()=>{}}};var N,j,S;g.parameters={...g.parameters,docs:{...(N=g.parameters)==null?void 0:N.docs,source:{originalSource:`{
7
+ args: {
8
+ label: 'Meeting Time',
9
+ value: '14:30',
10
+ placeholder: '14:30',
11
+ onChange: () => {}
12
+ }
13
+ }`,...(S=(j=g.parameters)==null?void 0:j.docs)==null?void 0:S.source}}};const fe=["Default"];export{g as Default,fe as __namedExportsOrder,_e as default};
@@ -1,4 +1,4 @@
1
- import{r as p,j as i}from"./iframe-B8pH-Lvr.js";import{u as w}from"./useSound-Bk2W5gkV.js";import{m as a}from"./proxy-BA3VZtN5.js";const x="_toggleContainer_y5eyt_1",L="_toggleButton_y5eyt_11",_="_active_y5eyt_27",l={toggleContainer:x,toggleButton:L,active:_};function C(f){const{isOn:e,onToggle:r,leftLabel:m,rightLabel:u,leftIcon:d,rightIcon:h,className:T,style:b,soundConfig:t,enableCelebration:g=!1}=f,y=p.useRef(null),v=p.useRef(null),{handlers:o,playSound:n}=w({...t,onClick:(t==null?void 0:t.onClick)??"toggle",onHover:(t==null?void 0:t.onHover)??"hover"}),c={display:"flex",alignItems:"center",justifyContent:"center",...b};return i.jsxs("div",{className:`${l.toggleContainer} ${T||""}`,children:[i.jsxs(a.button,{ref:y,className:`${l.toggleButton} ${e?"":l.active}`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},onClick:()=>{n(e?"toggle":g?"success":"click"),r(!1)},onMouseEnter:()=>{var s;return(s=o.onMouseEnter)==null?void 0:s.call(o)},style:c,children:[i.jsx(a.div,{animate:{scale:e?1:1.1,rotate:e?0:[0,-5,5,0]},transition:{duration:.3},children:d}),m]}),i.jsxs(a.button,{ref:v,className:`${l.toggleButton} ${e?l.active:""}`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},onClick:()=>{n(e?g?"success":"click":"success"),r(!0)},onMouseEnter:()=>{var s;return(s=o.onMouseEnter)==null?void 0:s.call(o)},style:c,children:[i.jsx(a.div,{animate:{scale:e?1.1:1,rotate:e?[0,5,-5,0]:0},transition:{duration:.3},children:h}),u]})]})}C.__docgenInfo={description:`Toggle Component
1
+ import{r as p,j as i}from"./iframe-Cw8dCV4Z.js";import{u as w}from"./useSound-D23BsIr4.js";import{m as a}from"./proxy-p8L3T_Zy.js";const x="_toggleContainer_y5eyt_1",L="_toggleButton_y5eyt_11",_="_active_y5eyt_27",l={toggleContainer:x,toggleButton:L,active:_};function C(f){const{isOn:e,onToggle:r,leftLabel:m,rightLabel:u,leftIcon:d,rightIcon:h,className:T,style:b,soundConfig:t,enableCelebration:g=!1}=f,y=p.useRef(null),v=p.useRef(null),{handlers:o,playSound:n}=w({...t,onClick:(t==null?void 0:t.onClick)??"toggle",onHover:(t==null?void 0:t.onHover)??"hover"}),c={display:"flex",alignItems:"center",justifyContent:"center",...b};return i.jsxs("div",{className:`${l.toggleContainer} ${T||""}`,children:[i.jsxs(a.button,{ref:y,className:`${l.toggleButton} ${e?"":l.active}`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},onClick:()=>{n(e?"toggle":g?"success":"click"),r(!1)},onMouseEnter:()=>{var s;return(s=o.onMouseEnter)==null?void 0:s.call(o)},style:c,children:[i.jsx(a.div,{animate:{scale:e?1:1.1,rotate:e?0:[0,-5,5,0]},transition:{duration:.3},children:d}),m]}),i.jsxs(a.button,{ref:v,className:`${l.toggleButton} ${e?l.active:""}`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},onClick:()=>{n(e?g?"success":"click":"success"),r(!0)},onMouseEnter:()=>{var s;return(s=o.onMouseEnter)==null?void 0:s.call(o)},style:c,children:[i.jsx(a.div,{animate:{scale:e?1.1:1,rotate:e?[0,5,-5,0]:0},transition:{duration:.3},children:h}),u]})]})}C.__docgenInfo={description:`Toggle Component
2
2
 
3
3
  @component
4
4
  @description