@libreapps/ui 5.4.1

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 (921) hide show
  1. package/README.md +229 -0
  2. package/bin/cli.js +100 -0
  3. package/bin/create-registry.js +108 -0
  4. package/bin/mcp.js +403 -0
  5. package/bin/npx-registry-mcp.js +15 -0
  6. package/bin/registry-mcp-wrapper.sh +19 -0
  7. package/bin/registry-mcp.js +100 -0
  8. package/bin/start-mcp-server.sh +22 -0
  9. package/bin/test-mcp.sh +52 -0
  10. package/bin/update-registry.js +196 -0
  11. package/content/index.ts +26 -0
  12. package/dist/3d/button.js +298 -0
  13. package/dist/3d/button.mjs +273 -0
  14. package/dist/3d/card.js +234 -0
  15. package/dist/3d/card.mjs +207 -0
  16. package/dist/3d/carousel.js +371 -0
  17. package/dist/3d/carousel.mjs +344 -0
  18. package/dist/3d/grid.js +362 -0
  19. package/dist/3d/grid.mjs +337 -0
  20. package/dist/3d/index.js +1518 -0
  21. package/dist/3d/index.mjs +1472 -0
  22. package/dist/3d/marquee.js +352 -0
  23. package/dist/3d/marquee.mjs +327 -0
  24. package/dist/3d/pin.js +46 -0
  25. package/dist/3d/pin.mjs +24 -0
  26. package/dist/accordion.js +80 -0
  27. package/dist/accordion.mjs +55 -0
  28. package/dist/alert-dialog.js +225 -0
  29. package/dist/alert-dialog.mjs +192 -0
  30. package/dist/alert.js +98 -0
  31. package/dist/alert.mjs +92 -0
  32. package/dist/animation/animated-background.js +424 -0
  33. package/dist/animation/animated-background.mjs +418 -0
  34. package/dist/animation/animated-beam.js +119 -0
  35. package/dist/animation/animated-beam.mjs +97 -0
  36. package/dist/animation/animated-cursor.js +275 -0
  37. package/dist/animation/animated-cursor.mjs +270 -0
  38. package/dist/animation/animated-icon.js +357 -0
  39. package/dist/animation/animated-icon.mjs +351 -0
  40. package/dist/animation/animated-list.js +339 -0
  41. package/dist/animation/animated-list.mjs +333 -0
  42. package/dist/animation/animated-number.js +283 -0
  43. package/dist/animation/animated-number.mjs +277 -0
  44. package/dist/animation/animated-testimonials.js +97 -0
  45. package/dist/animation/animated-testimonials.mjs +75 -0
  46. package/dist/animation/animated-tooltip.js +67 -0
  47. package/dist/animation/animated-tooltip.mjs +45 -0
  48. package/dist/animation/apple-cards-carousel.js +308 -0
  49. package/dist/animation/apple-cards-carousel.mjs +285 -0
  50. package/dist/animation/apple-hello-effect.js +60 -0
  51. package/dist/animation/apple-hello-effect.mjs +38 -0
  52. package/dist/animation/index.js +1952 -0
  53. package/dist/animation/index.mjs +1921 -0
  54. package/dist/assets/ai-icons.d.ts +27 -0
  55. package/dist/assets/crypto.d.ts +6 -0
  56. package/dist/assets/file-type-icon.d.ts +6 -0
  57. package/dist/assets/file.d.ts +4 -0
  58. package/dist/assets/general.d.ts +219 -0
  59. package/dist/assets/index.d.ts +6 -0
  60. package/dist/assets/libreapps-logo.d.ts +3 -0
  61. package/dist/assets/llm-provider.d.ts +63 -0
  62. package/dist/avatar.js +71 -0
  63. package/dist/avatar.mjs +47 -0
  64. package/dist/badge.js +61 -0
  65. package/dist/badge.mjs +55 -0
  66. package/dist/blocks/auth/__tests__/forms.test.d.ts +12 -0
  67. package/dist/blocks/auth/index.d.ts +3 -0
  68. package/dist/blocks/auth/login/index.d.ts +5 -0
  69. package/dist/blocks/auth/login/login-01/components/login-form.d.ts +1 -0
  70. package/dist/blocks/auth/login/login-01/page.d.ts +1 -0
  71. package/dist/blocks/auth/login/login-02/components/login-form.d.ts +1 -0
  72. package/dist/blocks/auth/login/login-02/page.d.ts +1 -0
  73. package/dist/blocks/auth/login/login-03/components/login-form.d.ts +1 -0
  74. package/dist/blocks/auth/login/login-03/page.d.ts +1 -0
  75. package/dist/blocks/auth/login/login-04/components/login-form.d.ts +1 -0
  76. package/dist/blocks/auth/login/login-04/page.d.ts +1 -0
  77. package/dist/blocks/auth/login/login-05/components/login-form.d.ts +1 -0
  78. package/dist/blocks/auth/login/login-05/page.d.ts +1 -0
  79. package/dist/blocks/auth/otp/index.d.ts +5 -0
  80. package/dist/blocks/auth/otp/otp-01/components/otp-form.d.ts +2 -0
  81. package/dist/blocks/auth/otp/otp-01/page.d.ts +1 -0
  82. package/dist/blocks/auth/otp/otp-02/components/otp-form.d.ts +1 -0
  83. package/dist/blocks/auth/otp/otp-02/page.d.ts +1 -0
  84. package/dist/blocks/auth/otp/otp-03/components/otp-form.d.ts +2 -0
  85. package/dist/blocks/auth/otp/otp-03/page.d.ts +1 -0
  86. package/dist/blocks/auth/otp/otp-04/components/otp-form.d.ts +1 -0
  87. package/dist/blocks/auth/otp/otp-04/page.d.ts +1 -0
  88. package/dist/blocks/auth/otp/otp-05/components/otp-form.d.ts +1 -0
  89. package/dist/blocks/auth/otp/otp-05/page.d.ts +1 -0
  90. package/dist/blocks/auth/signup/index.d.ts +5 -0
  91. package/dist/blocks/auth/signup/signup-01/components/signup-form.d.ts +2 -0
  92. package/dist/blocks/auth/signup/signup-01/page.d.ts +1 -0
  93. package/dist/blocks/auth/signup/signup-02/components/signup-form.d.ts +1 -0
  94. package/dist/blocks/auth/signup/signup-02/page.d.ts +1 -0
  95. package/dist/blocks/auth/signup/signup-03/components/signup-form.d.ts +1 -0
  96. package/dist/blocks/auth/signup/signup-03/page.d.ts +1 -0
  97. package/dist/blocks/auth/signup/signup-04/components/signup-form.d.ts +1 -0
  98. package/dist/blocks/auth/signup/signup-04/page.d.ts +1 -0
  99. package/dist/blocks/auth/signup/signup-05/components/signup-form.d.ts +1 -0
  100. package/dist/blocks/auth/signup/signup-05/page.d.ts +1 -0
  101. package/dist/blocks/calendar/calendar-01.d.ts +1 -0
  102. package/dist/blocks/calendar/calendar-02.d.ts +1 -0
  103. package/dist/blocks/calendar/calendar-03.d.ts +1 -0
  104. package/dist/blocks/calendar/calendar-04.d.ts +1 -0
  105. package/dist/blocks/calendar/calendar-05.d.ts +1 -0
  106. package/dist/blocks/calendar/calendar-06.d.ts +1 -0
  107. package/dist/blocks/calendar/calendar-07.d.ts +1 -0
  108. package/dist/blocks/calendar/calendar-08.d.ts +1 -0
  109. package/dist/blocks/calendar/calendar-09.d.ts +1 -0
  110. package/dist/blocks/calendar/calendar-10.d.ts +1 -0
  111. package/dist/blocks/calendar/calendar-11.d.ts +1 -0
  112. package/dist/blocks/calendar/calendar-12.d.ts +1 -0
  113. package/dist/blocks/calendar/calendar-13.d.ts +1 -0
  114. package/dist/blocks/calendar/calendar-14.d.ts +1 -0
  115. package/dist/blocks/calendar/calendar-15.d.ts +1 -0
  116. package/dist/blocks/calendar/calendar-16.d.ts +1 -0
  117. package/dist/blocks/calendar/calendar-17.d.ts +1 -0
  118. package/dist/blocks/calendar/calendar-18.d.ts +1 -0
  119. package/dist/blocks/calendar/calendar-19.d.ts +1 -0
  120. package/dist/blocks/calendar/calendar-20.d.ts +1 -0
  121. package/dist/blocks/calendar/calendar-21.d.ts +1 -0
  122. package/dist/blocks/calendar/calendar-22.d.ts +1 -0
  123. package/dist/blocks/calendar/calendar-23.d.ts +1 -0
  124. package/dist/blocks/calendar/calendar-24.d.ts +1 -0
  125. package/dist/blocks/calendar/calendar-25.d.ts +1 -0
  126. package/dist/blocks/calendar/calendar-26.d.ts +1 -0
  127. package/dist/blocks/calendar/calendar-27.d.ts +1 -0
  128. package/dist/blocks/calendar/calendar-28.d.ts +1 -0
  129. package/dist/blocks/calendar/calendar-29.d.ts +1 -0
  130. package/dist/blocks/calendar/calendar-30.d.ts +1 -0
  131. package/dist/blocks/calendar/calendar-31.d.ts +1 -0
  132. package/dist/blocks/calendar/calendar-32.d.ts +1 -0
  133. package/dist/blocks/calendar/index.d.ts +32 -0
  134. package/dist/blocks/components/accordian-block.d.ts +4 -0
  135. package/dist/blocks/components/block-component-props.d.ts +7 -0
  136. package/dist/blocks/components/bullet-cards-block.d.ts +4 -0
  137. package/dist/blocks/components/card-block/index.d.ts +6 -0
  138. package/dist/blocks/components/card-block/link-out-button.d.ts +6 -0
  139. package/dist/blocks/components/card-block/util.d.ts +4 -0
  140. package/dist/blocks/components/carte-blanche-block/index.d.ts +4 -0
  141. package/dist/blocks/components/carte-blanche-block/variant-content-left.d.ts +10 -0
  142. package/dist/blocks/components/content.d.ts +10 -0
  143. package/dist/blocks/components/cta-block.d.ts +12 -0
  144. package/dist/blocks/components/enh-heading-block.d.ts +7 -0
  145. package/dist/blocks/components/grid-block/grid-block-mutator.d.ts +5 -0
  146. package/dist/blocks/components/grid-block/index.d.ts +9 -0
  147. package/dist/blocks/components/grid-block/mutator-registry.d.ts +3 -0
  148. package/dist/blocks/components/grid-block/table-borders.mutator.d.ts +3 -0
  149. package/dist/blocks/components/group-block.d.ts +7 -0
  150. package/dist/blocks/components/heading-block.d.ts +4 -0
  151. package/dist/blocks/components/image-block.d.ts +7 -0
  152. package/dist/blocks/components/index.d.ts +14 -0
  153. package/dist/blocks/components/screenful-block/content.d.ts +8 -0
  154. package/dist/blocks/components/screenful-block/index.d.ts +12 -0
  155. package/dist/blocks/components/screenful-block/poster-background.d.ts +7 -0
  156. package/dist/blocks/components/screenful-block/video-background.d.ts +8 -0
  157. package/dist/blocks/components/space-block.d.ts +4 -0
  158. package/dist/blocks/components/video-block.d.ts +9 -0
  159. package/dist/blocks/dashboard/dashboard-01/components/app-sidebar.d.ts +3 -0
  160. package/dist/blocks/dashboard/dashboard-01/components/chart-area-interactive.d.ts +2 -0
  161. package/dist/blocks/dashboard/dashboard-01/components/data-table.d.ts +13 -0
  162. package/dist/blocks/dashboard/dashboard-01/components/nav-documents.d.ts +8 -0
  163. package/dist/blocks/dashboard/dashboard-01/components/nav-main.d.ts +8 -0
  164. package/dist/blocks/dashboard/dashboard-01/components/nav-secondary.d.ts +10 -0
  165. package/dist/blocks/dashboard/dashboard-01/components/nav-user.d.ts +7 -0
  166. package/dist/blocks/dashboard/dashboard-01/components/section-cards.d.ts +1 -0
  167. package/dist/blocks/dashboard/dashboard-01/components/site-header.d.ts +1 -0
  168. package/dist/blocks/dashboard/dashboard-01/page.d.ts +1 -0
  169. package/dist/blocks/dashboard/index.d.ts +1 -0
  170. package/dist/blocks/def/accordian-block.d.ts +10 -0
  171. package/dist/blocks/def/block.d.ts +4 -0
  172. package/dist/blocks/def/bullet-cards-block.d.ts +17 -0
  173. package/dist/blocks/def/card-block.d.ts +17 -0
  174. package/dist/blocks/def/carte-blanche-block.d.ts +12 -0
  175. package/dist/blocks/def/cta-block.d.ts +8 -0
  176. package/dist/blocks/def/element-block.d.ts +7 -0
  177. package/dist/blocks/def/enh-heading-block.d.ts +22 -0
  178. package/dist/blocks/def/grid-block.d.ts +12 -0
  179. package/dist/blocks/def/group-block.d.ts +7 -0
  180. package/dist/blocks/def/heading-block.d.ts +11 -0
  181. package/dist/blocks/def/image-block.d.ts +26 -0
  182. package/dist/blocks/def/index.d.ts +17 -0
  183. package/dist/blocks/def/screenful-block.d.ts +41 -0
  184. package/dist/blocks/def/space-block.d.ts +47 -0
  185. package/dist/blocks/def/video-block.d.ts +5 -0
  186. package/dist/blocks/index-core.d.ts +2 -0
  187. package/dist/blocks/index.d.ts +6 -0
  188. package/dist/blocks/index.js +1685 -0
  189. package/dist/blocks/index.mjs +1646 -0
  190. package/dist/blocks/sidebar/index.d.ts +16 -0
  191. package/dist/blocks/sidebar/sidebar-01/components/app-sidebar.d.ts +3 -0
  192. package/dist/blocks/sidebar/sidebar-01/components/search-form.d.ts +1 -0
  193. package/dist/blocks/sidebar/sidebar-01/components/version-switcher.d.ts +4 -0
  194. package/dist/blocks/sidebar/sidebar-01/page.d.ts +1 -0
  195. package/dist/blocks/sidebar/sidebar-02/components/app-sidebar.d.ts +3 -0
  196. package/dist/blocks/sidebar/sidebar-02/components/search-form.d.ts +1 -0
  197. package/dist/blocks/sidebar/sidebar-02/components/version-switcher.d.ts +4 -0
  198. package/dist/blocks/sidebar/sidebar-02/page.d.ts +1 -0
  199. package/dist/blocks/sidebar/sidebar-03/components/app-sidebar.d.ts +3 -0
  200. package/dist/blocks/sidebar/sidebar-03/page.d.ts +1 -0
  201. package/dist/blocks/sidebar/sidebar-04/components/app-sidebar.d.ts +3 -0
  202. package/dist/blocks/sidebar/sidebar-04/page.d.ts +1 -0
  203. package/dist/blocks/sidebar/sidebar-05/components/app-sidebar.d.ts +3 -0
  204. package/dist/blocks/sidebar/sidebar-05/components/search-form.d.ts +1 -0
  205. package/dist/blocks/sidebar/sidebar-05/page.d.ts +1 -0
  206. package/dist/blocks/sidebar/sidebar-06/components/app-sidebar.d.ts +3 -0
  207. package/dist/blocks/sidebar/sidebar-06/components/nav-main.d.ts +13 -0
  208. package/dist/blocks/sidebar/sidebar-06/components/sidebar-opt-in-form.d.ts +1 -0
  209. package/dist/blocks/sidebar/sidebar-06/page.d.ts +1 -0
  210. package/dist/blocks/sidebar/sidebar-07/components/app-sidebar.d.ts +3 -0
  211. package/dist/blocks/sidebar/sidebar-07/components/nav-main.d.ts +13 -0
  212. package/dist/blocks/sidebar/sidebar-07/components/nav-projects.d.ts +8 -0
  213. package/dist/blocks/sidebar/sidebar-07/components/nav-user.d.ts +7 -0
  214. package/dist/blocks/sidebar/sidebar-07/components/team-switcher.d.ts +8 -0
  215. package/dist/blocks/sidebar/sidebar-07/page.d.ts +1 -0
  216. package/dist/blocks/sidebar/sidebar-08/components/app-sidebar.d.ts +3 -0
  217. package/dist/blocks/sidebar/sidebar-08/components/nav-main.d.ts +13 -0
  218. package/dist/blocks/sidebar/sidebar-08/components/nav-projects.d.ts +8 -0
  219. package/dist/blocks/sidebar/sidebar-08/components/nav-secondary.d.ts +10 -0
  220. package/dist/blocks/sidebar/sidebar-08/components/nav-user.d.ts +7 -0
  221. package/dist/blocks/sidebar/sidebar-08/page.d.ts +1 -0
  222. package/dist/blocks/sidebar/sidebar-09/components/app-sidebar.d.ts +3 -0
  223. package/dist/blocks/sidebar/sidebar-09/components/nav-user.d.ts +7 -0
  224. package/dist/blocks/sidebar/sidebar-09/page.d.ts +1 -0
  225. package/dist/blocks/sidebar/sidebar-10/components/app-sidebar.d.ts +3 -0
  226. package/dist/blocks/sidebar/sidebar-10/components/nav-actions.d.ts +1 -0
  227. package/dist/blocks/sidebar/sidebar-10/components/nav-favorites.d.ts +7 -0
  228. package/dist/blocks/sidebar/sidebar-10/components/nav-main.d.ts +9 -0
  229. package/dist/blocks/sidebar/sidebar-10/components/nav-secondary.d.ts +11 -0
  230. package/dist/blocks/sidebar/sidebar-10/components/nav-workspaces.d.ts +10 -0
  231. package/dist/blocks/sidebar/sidebar-10/components/team-switcher.d.ts +8 -0
  232. package/dist/blocks/sidebar/sidebar-10/page.d.ts +1 -0
  233. package/dist/blocks/sidebar/sidebar-11/components/app-sidebar.d.ts +3 -0
  234. package/dist/blocks/sidebar/sidebar-11/page.d.ts +1 -0
  235. package/dist/blocks/sidebar/sidebar-12/components/app-sidebar.d.ts +3 -0
  236. package/dist/blocks/sidebar/sidebar-12/components/calendars.d.ts +6 -0
  237. package/dist/blocks/sidebar/sidebar-12/components/date-picker.d.ts +1 -0
  238. package/dist/blocks/sidebar/sidebar-12/components/nav-user.d.ts +7 -0
  239. package/dist/blocks/sidebar/sidebar-12/page.d.ts +1 -0
  240. package/dist/blocks/sidebar/sidebar-13/components/settings-dialog.d.ts +1 -0
  241. package/dist/blocks/sidebar/sidebar-13/page.d.ts +1 -0
  242. package/dist/blocks/sidebar/sidebar-14/components/app-sidebar.d.ts +3 -0
  243. package/dist/blocks/sidebar/sidebar-14/page.d.ts +1 -0
  244. package/dist/blocks/sidebar/sidebar-15/components/calendars.d.ts +6 -0
  245. package/dist/blocks/sidebar/sidebar-15/components/date-picker.d.ts +1 -0
  246. package/dist/blocks/sidebar/sidebar-15/components/nav-favorites.d.ts +7 -0
  247. package/dist/blocks/sidebar/sidebar-15/components/nav-main.d.ts +9 -0
  248. package/dist/blocks/sidebar/sidebar-15/components/nav-secondary.d.ts +11 -0
  249. package/dist/blocks/sidebar/sidebar-15/components/nav-user.d.ts +7 -0
  250. package/dist/blocks/sidebar/sidebar-15/components/nav-workspaces.d.ts +10 -0
  251. package/dist/blocks/sidebar/sidebar-15/components/sidebar-left.d.ts +3 -0
  252. package/dist/blocks/sidebar/sidebar-15/components/sidebar-right.d.ts +3 -0
  253. package/dist/blocks/sidebar/sidebar-15/components/team-switcher.d.ts +8 -0
  254. package/dist/blocks/sidebar/sidebar-15/page.d.ts +1 -0
  255. package/dist/blocks/sidebar/sidebar-16/components/app-sidebar.d.ts +3 -0
  256. package/dist/blocks/sidebar/sidebar-16/components/nav-main.d.ts +13 -0
  257. package/dist/blocks/sidebar/sidebar-16/components/nav-projects.d.ts +8 -0
  258. package/dist/blocks/sidebar/sidebar-16/components/nav-secondary.d.ts +10 -0
  259. package/dist/blocks/sidebar/sidebar-16/components/nav-user.d.ts +7 -0
  260. package/dist/blocks/sidebar/sidebar-16/components/search-form.d.ts +1 -0
  261. package/dist/blocks/sidebar/sidebar-16/components/site-header.d.ts +1 -0
  262. package/dist/blocks/sidebar/sidebar-16/page.d.ts +3 -0
  263. package/dist/breadcrumb.js +107 -0
  264. package/dist/breadcrumb.mjs +99 -0
  265. package/dist/calendar-ext/index.js +208 -0
  266. package/dist/calendar-ext/index.mjs +170 -0
  267. package/dist/calendar.js +194 -0
  268. package/dist/calendar.mjs +169 -0
  269. package/dist/carousel.js +283 -0
  270. package/dist/carousel.mjs +254 -0
  271. package/dist/charts/index.js +5842 -0
  272. package/dist/charts/index.mjs +5751 -0
  273. package/dist/checkbox.js +60 -0
  274. package/dist/checkbox.mjs +35 -0
  275. package/dist/code/block.js +226 -0
  276. package/dist/code/block.mjs +203 -0
  277. package/dist/code/compare.js +446 -0
  278. package/dist/code/compare.mjs +423 -0
  279. package/dist/code/diff.js +430 -0
  280. package/dist/code/diff.mjs +407 -0
  281. package/dist/code/editor.js +243 -0
  282. package/dist/code/editor.mjs +218 -0
  283. package/dist/code/explorer.js +291 -0
  284. package/dist/code/explorer.mjs +268 -0
  285. package/dist/code/index.js +2551 -0
  286. package/dist/code/index.mjs +2510 -0
  287. package/dist/code/preview.js +400 -0
  288. package/dist/code/preview.mjs +377 -0
  289. package/dist/code/snippet.js +274 -0
  290. package/dist/code/snippet.mjs +250 -0
  291. package/dist/code/tabs.js +75 -0
  292. package/dist/code/tabs.mjs +53 -0
  293. package/dist/code/terminal.js +437 -0
  294. package/dist/code/terminal.mjs +414 -0
  295. package/dist/collapsible.js +33 -0
  296. package/dist/collapsible.mjs +9 -0
  297. package/dist/command.js +283 -0
  298. package/dist/command.mjs +252 -0
  299. package/dist/components/cal-embed.d.ts +10 -0
  300. package/dist/components/index.d.ts +2 -0
  301. package/dist/context-menu.js +207 -0
  302. package/dist/context-menu.mjs +171 -0
  303. package/dist/desktop/hooks.js +224 -0
  304. package/dist/desktop/hooks.mjs +199 -0
  305. package/dist/desktop/index.js +686 -0
  306. package/dist/desktop/index.mjs +658 -0
  307. package/dist/desktop/spotlight.js +261 -0
  308. package/dist/desktop/spotlight.mjs +236 -0
  309. package/dist/desktop/window.js +274 -0
  310. package/dist/desktop/window.mjs +248 -0
  311. package/dist/device/index.js +3 -0
  312. package/dist/device/index.mjs +2 -0
  313. package/dist/dialog.js +246 -0
  314. package/dist/dialog.mjs +214 -0
  315. package/dist/dock/basic.js +174 -0
  316. package/dist/dock/basic.mjs +151 -0
  317. package/dist/dock/index.js +648 -0
  318. package/dist/dock/index.mjs +621 -0
  319. package/dist/dock/limelight-nav.js +315 -0
  320. package/dist/dock/limelight-nav.mjs +294 -0
  321. package/dist/dock/macos.js +141 -0
  322. package/dist/dock/macos.mjs +118 -0
  323. package/dist/dock/menu.js +70 -0
  324. package/dist/dock/menu.mjs +48 -0
  325. package/dist/dock/message.js +149 -0
  326. package/dist/dock/message.mjs +127 -0
  327. package/dist/drawer.js +115 -0
  328. package/dist/drawer.mjs +103 -0
  329. package/dist/dropdown-menu.js +202 -0
  330. package/dist/dropdown-menu.mjs +166 -0
  331. package/dist/finance/AdvancedChart.js +48 -0
  332. package/dist/finance/AdvancedChart.mjs +46 -0
  333. package/dist/finance/CompanyProfile.js +48 -0
  334. package/dist/finance/CompanyProfile.mjs +46 -0
  335. package/dist/finance/CryptoScreener.js +45 -0
  336. package/dist/finance/CryptoScreener.mjs +43 -0
  337. package/dist/finance/Financials.js +52 -0
  338. package/dist/finance/Financials.mjs +50 -0
  339. package/dist/finance/ForexScreener.js +46 -0
  340. package/dist/finance/ForexScreener.mjs +44 -0
  341. package/dist/finance/MarketOverview.js +104 -0
  342. package/dist/finance/MarketOverview.mjs +102 -0
  343. package/dist/finance/NewsTimeline.js +44 -0
  344. package/dist/finance/NewsTimeline.mjs +42 -0
  345. package/dist/finance/OrderEntry.js +131 -0
  346. package/dist/finance/OrderEntry.mjs +129 -0
  347. package/dist/finance/OrdersHistory.js +64 -0
  348. package/dist/finance/OrdersHistory.mjs +62 -0
  349. package/dist/finance/PositionsList.js +80 -0
  350. package/dist/finance/PositionsList.mjs +78 -0
  351. package/dist/finance/StockScreener.js +46 -0
  352. package/dist/finance/StockScreener.mjs +44 -0
  353. package/dist/finance/SymbolInfo.js +46 -0
  354. package/dist/finance/SymbolInfo.mjs +44 -0
  355. package/dist/finance/TechnicalAnalysis.js +54 -0
  356. package/dist/finance/TechnicalAnalysis.mjs +52 -0
  357. package/dist/finance/TickerTape.js +56 -0
  358. package/dist/finance/TickerTape.mjs +54 -0
  359. package/dist/finance/TradingPanel.js +191 -0
  360. package/dist/finance/TradingPanel.mjs +189 -0
  361. package/dist/finance/index.js +930 -0
  362. package/dist/finance/index.mjs +914 -0
  363. package/dist/form/index.js +155 -0
  364. package/dist/form/index.mjs +125 -0
  365. package/dist/form.js +172 -0
  366. package/dist/form.mjs +142 -0
  367. package/dist/helpers/file.d.ts +6 -0
  368. package/dist/helpers/memoization.d.ts +8 -0
  369. package/dist/hover-card.js +58 -0
  370. package/dist/hover-card.mjs +34 -0
  371. package/dist/index.js +9650 -0
  372. package/dist/index.mjs +9234 -0
  373. package/dist/input-otp.js +79 -0
  374. package/dist/input-otp.mjs +54 -0
  375. package/dist/kanban/index.js +594 -0
  376. package/dist/kanban/index.mjs +572 -0
  377. package/dist/lib/utils.js +28 -0
  378. package/dist/lib/utils.mjs +24 -0
  379. package/dist/mermaid/index.js +281 -0
  380. package/dist/mermaid/index.mjs +254 -0
  381. package/dist/navigation/index.js +98 -0
  382. package/dist/navigation/index.mjs +79 -0
  383. package/dist/navigation-menu.js +149 -0
  384. package/dist/navigation-menu.mjs +116 -0
  385. package/dist/pattern/grid-pattern.js +333 -0
  386. package/dist/pattern/grid-pattern.mjs +310 -0
  387. package/dist/pattern/index.js +333 -0
  388. package/dist/pattern/index.mjs +310 -0
  389. package/dist/popover.js +63 -0
  390. package/dist/popover.mjs +37 -0
  391. package/dist/primitives/__tests__/core-primitives.test.d.ts +1 -0
  392. package/dist/primitives/accordion.d.ts +26 -0
  393. package/dist/primitives/action-button.d.ts +9 -0
  394. package/dist/primitives/alert-dialog.d.ts +56 -0
  395. package/dist/primitives/alert.d.ts +10 -0
  396. package/dist/primitives/apply-typography.d.ts +7 -0
  397. package/dist/primitives/aspect-ratio.d.ts +3 -0
  398. package/dist/primitives/avatar.d.ts +24 -0
  399. package/dist/primitives/background-beams.d.ts +4 -0
  400. package/dist/primitives/badge.d.ts +10 -0
  401. package/dist/primitives/breadcrumb.d.ts +50 -0
  402. package/dist/primitives/breakpoint-indicator.d.ts +3 -0
  403. package/dist/primitives/button-group.d.ts +11 -0
  404. package/dist/primitives/button.d.ts +13 -0
  405. package/dist/primitives/cal-embed.d.ts +10 -0
  406. package/dist/primitives/calendar.d.ts +10 -0
  407. package/dist/primitives/card.d.ts +9 -0
  408. package/dist/primitives/carousel.d.ts +18 -0
  409. package/dist/primitives/chart.d.ts +40 -0
  410. package/dist/primitives/charts/__tests__/charts.test.d.ts +9 -0
  411. package/dist/primitives/charts/area/chart-area-axes.d.ts +2 -0
  412. package/dist/primitives/charts/area/chart-area-default.d.ts +2 -0
  413. package/dist/primitives/charts/area/chart-area-gradient.d.ts +2 -0
  414. package/dist/primitives/charts/area/chart-area-icons.d.ts +2 -0
  415. package/dist/primitives/charts/area/chart-area-interactive.d.ts +2 -0
  416. package/dist/primitives/charts/area/chart-area-legend.d.ts +2 -0
  417. package/dist/primitives/charts/area/chart-area-linear.d.ts +2 -0
  418. package/dist/primitives/charts/area/chart-area-stacked-expand.d.ts +2 -0
  419. package/dist/primitives/charts/area/chart-area-stacked.d.ts +2 -0
  420. package/dist/primitives/charts/area/chart-area-step.d.ts +2 -0
  421. package/dist/primitives/charts/area/index.d.ts +10 -0
  422. package/dist/primitives/charts/bar/chart-bar-active.d.ts +2 -0
  423. package/dist/primitives/charts/bar/chart-bar-default.d.ts +2 -0
  424. package/dist/primitives/charts/bar/chart-bar-horizontal.d.ts +2 -0
  425. package/dist/primitives/charts/bar/chart-bar-interactive.d.ts +2 -0
  426. package/dist/primitives/charts/bar/chart-bar-label-custom.d.ts +2 -0
  427. package/dist/primitives/charts/bar/chart-bar-label.d.ts +2 -0
  428. package/dist/primitives/charts/bar/chart-bar-mixed.d.ts +2 -0
  429. package/dist/primitives/charts/bar/chart-bar-multiple.d.ts +2 -0
  430. package/dist/primitives/charts/bar/chart-bar-negative.d.ts +2 -0
  431. package/dist/primitives/charts/bar/chart-bar-stacked.d.ts +2 -0
  432. package/dist/primitives/charts/bar/index.d.ts +10 -0
  433. package/dist/primitives/charts/index.d.ts +7 -0
  434. package/dist/primitives/charts/line/chart-line-default.d.ts +2 -0
  435. package/dist/primitives/charts/line/chart-line-dots-colors.d.ts +2 -0
  436. package/dist/primitives/charts/line/chart-line-dots-custom.d.ts +2 -0
  437. package/dist/primitives/charts/line/chart-line-dots.d.ts +2 -0
  438. package/dist/primitives/charts/line/chart-line-interactive.d.ts +2 -0
  439. package/dist/primitives/charts/line/chart-line-label-custom.d.ts +2 -0
  440. package/dist/primitives/charts/line/chart-line-label.d.ts +2 -0
  441. package/dist/primitives/charts/line/chart-line-linear.d.ts +2 -0
  442. package/dist/primitives/charts/line/chart-line-multiple.d.ts +2 -0
  443. package/dist/primitives/charts/line/chart-line-step.d.ts +2 -0
  444. package/dist/primitives/charts/line/index.d.ts +10 -0
  445. package/dist/primitives/charts/pie/chart-pie-donut-active.d.ts +2 -0
  446. package/dist/primitives/charts/pie/chart-pie-donut-text.d.ts +2 -0
  447. package/dist/primitives/charts/pie/chart-pie-donut.d.ts +2 -0
  448. package/dist/primitives/charts/pie/chart-pie-interactive.d.ts +2 -0
  449. package/dist/primitives/charts/pie/chart-pie-label-custom.d.ts +2 -0
  450. package/dist/primitives/charts/pie/chart-pie-label-list.d.ts +2 -0
  451. package/dist/primitives/charts/pie/chart-pie-label.d.ts +2 -0
  452. package/dist/primitives/charts/pie/chart-pie-legend.d.ts +2 -0
  453. package/dist/primitives/charts/pie/chart-pie-separator-none.d.ts +2 -0
  454. package/dist/primitives/charts/pie/index.d.ts +9 -0
  455. package/dist/primitives/charts/radar/chart-radar-default.d.ts +2 -0
  456. package/dist/primitives/charts/radar/chart-radar-dots.d.ts +2 -0
  457. package/dist/primitives/charts/radar/chart-radar-grid-circle-fill.d.ts +2 -0
  458. package/dist/primitives/charts/radar/chart-radar-grid-circle-no-lines.d.ts +2 -0
  459. package/dist/primitives/charts/radar/chart-radar-grid-circle.d.ts +2 -0
  460. package/dist/primitives/charts/radar/chart-radar-grid-custom.d.ts +2 -0
  461. package/dist/primitives/charts/radar/chart-radar-grid-fill.d.ts +2 -0
  462. package/dist/primitives/charts/radar/chart-radar-grid-none.d.ts +2 -0
  463. package/dist/primitives/charts/radar/chart-radar-icons.d.ts +2 -0
  464. package/dist/primitives/charts/radar/index.d.ts +9 -0
  465. package/dist/primitives/charts/radial/chart-radial-grid.d.ts +2 -0
  466. package/dist/primitives/charts/radial/chart-radial-label.d.ts +2 -0
  467. package/dist/primitives/charts/radial/chart-radial-shape.d.ts +2 -0
  468. package/dist/primitives/charts/radial/chart-radial-simple.d.ts +2 -0
  469. package/dist/primitives/charts/radial/chart-radial-stacked.d.ts +2 -0
  470. package/dist/primitives/charts/radial/chart-radial-text.d.ts +2 -0
  471. package/dist/primitives/charts/radial/index.d.ts +6 -0
  472. package/dist/primitives/charts/tooltip/chart-tooltip-advanced.d.ts +2 -0
  473. package/dist/primitives/charts/tooltip/chart-tooltip-default.d.ts +4 -0
  474. package/dist/primitives/charts/tooltip/chart-tooltip-formatter.d.ts +2 -0
  475. package/dist/primitives/charts/tooltip/chart-tooltip-icons.d.ts +2 -0
  476. package/dist/primitives/charts/tooltip/chart-tooltip-indicator-line.d.ts +4 -0
  477. package/dist/primitives/charts/tooltip/chart-tooltip-indicator-none.d.ts +2 -0
  478. package/dist/primitives/charts/tooltip/chart-tooltip-label-custom.d.ts +2 -0
  479. package/dist/primitives/charts/tooltip/chart-tooltip-label-formatter.d.ts +2 -0
  480. package/dist/primitives/charts/tooltip/chart-tooltip-label-none.d.ts +2 -0
  481. package/dist/primitives/charts/tooltip/index.d.ts +9 -0
  482. package/dist/primitives/chat/chat-input-area.d.ts +23 -0
  483. package/dist/primitives/chat/chat-input.d.ts +12 -0
  484. package/dist/primitives/chat/files-preview.d.ts +12 -0
  485. package/dist/primitives/chat/index.d.ts +6 -0
  486. package/dist/primitives/chat/json-form.d.ts +3 -0
  487. package/dist/primitives/chat/message-list.d.ts +19 -0
  488. package/dist/primitives/chat/message.d.ts +29 -0
  489. package/dist/primitives/chat/sqlite-preview.d.ts +5 -0
  490. package/dist/primitives/checkbox.d.ts +11 -0
  491. package/dist/primitives/collapsible.d.ts +5 -0
  492. package/dist/primitives/combobox.d.ts +41 -0
  493. package/dist/primitives/command.d.ts +38 -0
  494. package/dist/primitives/context-menu.d.ts +53 -0
  495. package/dist/primitives/copy-to-clipboard-icon.d.ts +14 -0
  496. package/dist/primitives/dialog-video-controller.d.ts +3 -0
  497. package/dist/primitives/dialog.d.ts +17 -0
  498. package/dist/primitives/dot-pattern.d.ts +13 -0
  499. package/dist/primitives/dots-loader.d.ts +4 -0
  500. package/dist/primitives/drawer.d.ts +37 -0
  501. package/dist/primitives/dropdown-menu.d.ts +51 -0
  502. package/dist/primitives/empty.d.ts +11 -0
  503. package/dist/primitives/error-message.d.ts +6 -0
  504. package/dist/primitives/field.d.ts +9 -0
  505. package/dist/primitives/file-uploader.d.ts +19 -0
  506. package/dist/primitives/form.d.ts +39 -0
  507. package/dist/primitives/hover-card.d.ts +9 -0
  508. package/dist/primitives/icons/github.d.ts +4 -0
  509. package/dist/primitives/icons/index.d.ts +4 -0
  510. package/dist/primitives/icons/youtube-logo.d.ts +4 -0
  511. package/dist/primitives/index-blocks.d.ts +4 -0
  512. package/dist/primitives/index-common.d.ts +74 -0
  513. package/dist/primitives/index-core.d.ts +28 -0
  514. package/dist/primitives/index-next.d.ts +2 -0
  515. package/dist/primitives/index-selective.d.ts +51 -0
  516. package/dist/primitives/index-standard.d.ts +78 -0
  517. package/dist/primitives/index.d.ts +1 -0
  518. package/dist/primitives/index.js +9650 -0
  519. package/dist/primitives/index.mjs +9234 -0
  520. package/dist/primitives/input-group.d.ts +16 -0
  521. package/dist/primitives/input-otp.d.ts +34 -0
  522. package/dist/primitives/input.d.ts +14 -0
  523. package/dist/primitives/item.d.ts +23 -0
  524. package/dist/primitives/kbd.d.ts +4 -0
  525. package/dist/primitives/label.d.ts +10 -0
  526. package/dist/primitives/list-adaptor.d.ts +9 -0
  527. package/dist/primitives/list-box.d.ts +11 -0
  528. package/dist/primitives/loading-spinner.d.ts +5 -0
  529. package/dist/primitives/markdown-preview.d.ts +128 -0
  530. package/dist/primitives/menubar.d.ts +28 -0
  531. package/dist/primitives/mermaid.d.ts +7 -0
  532. package/dist/primitives/native-select.d.ts +8 -0
  533. package/dist/primitives/navigation-menu.d.ts +12 -0
  534. package/dist/primitives/next/image.d.ts +11 -0
  535. package/dist/primitives/next/index.d.ts +7 -0
  536. package/dist/primitives/next/inline-icon.d.ts +13 -0
  537. package/dist/primitives/next/link-element.d.ts +23 -0
  538. package/dist/primitives/next/mdx-link.d.ts +3 -0
  539. package/dist/primitives/next/media-stack.d.ts +8 -0
  540. package/dist/primitives/next/nav-items.d.ts +10 -0
  541. package/dist/primitives/next/youtube-embed.d.ts +11 -0
  542. package/dist/primitives/pagination.d.ts +34 -0
  543. package/dist/primitives/popover.d.ts +11 -0
  544. package/dist/primitives/pretty-json-print.d.ts +4 -0
  545. package/dist/primitives/progress.d.ts +8 -0
  546. package/dist/primitives/prompt-textarea.d.ts +18 -0
  547. package/dist/primitives/qr-code.d.ts +16 -0
  548. package/dist/primitives/radio-group.d.ts +11 -0
  549. package/dist/primitives/resizable.d.ts +23 -0
  550. package/dist/primitives/scroll-area.d.ts +13 -0
  551. package/dist/primitives/search-input.d.ts +13 -0
  552. package/dist/primitives/select.d.ts +26 -0
  553. package/dist/primitives/separator.d.ts +8 -0
  554. package/dist/primitives/sheet.d.ts +40 -0
  555. package/dist/primitives/sidebar.d.ts +69 -0
  556. package/dist/primitives/skeleton.d.ts +4 -0
  557. package/dist/primitives/slider.d.ts +5 -0
  558. package/dist/primitives/sonner.d.ts +5 -0
  559. package/dist/primitives/spinner.d.ts +2 -0
  560. package/dist/primitives/step-indicator.d.ts +9 -0
  561. package/dist/primitives/stepper.d.ts +48 -0
  562. package/dist/primitives/switch.d.ts +8 -0
  563. package/dist/primitives/table.d.ts +34 -0
  564. package/dist/primitives/tabs.d.ts +11 -0
  565. package/dist/primitives/text-area.d.ts +5 -0
  566. package/dist/primitives/text-link.d.ts +5 -0
  567. package/dist/primitives/textarea.d.ts +12 -0
  568. package/dist/primitives/textfield.d.ts +32 -0
  569. package/dist/primitives/toast.d.ts +5 -0
  570. package/dist/primitives/toggle-group.d.ts +13 -0
  571. package/dist/primitives/toggle.d.ts +12 -0
  572. package/dist/primitives/tooltip.d.ts +14 -0
  573. package/dist/primitives/video-player.d.ts +6 -0
  574. package/dist/primitives/youtube-pip-player.d.ts +32 -0
  575. package/dist/primitives-export.js +9650 -0
  576. package/dist/primitives-export.mjs +9234 -0
  577. package/dist/progress.js +62 -0
  578. package/dist/progress.mjs +37 -0
  579. package/dist/project/gantt.js +65 -0
  580. package/dist/project/gantt.mjs +43 -0
  581. package/dist/project/index.js +636 -0
  582. package/dist/project/index.mjs +611 -0
  583. package/dist/project/kanban.js +597 -0
  584. package/dist/project/kanban.mjs +572 -0
  585. package/dist/project/list.js +35 -0
  586. package/dist/project/list.mjs +12 -0
  587. package/dist/radio-group.js +68 -0
  588. package/dist/radio-group.mjs +45 -0
  589. package/dist/resizable.js +72 -0
  590. package/dist/resizable.mjs +48 -0
  591. package/dist/scroll-area.js +89 -0
  592. package/dist/scroll-area.mjs +66 -0
  593. package/dist/select.js +140 -0
  594. package/dist/select.mjs +111 -0
  595. package/dist/separator.js +59 -0
  596. package/dist/separator.mjs +34 -0
  597. package/dist/sheet.js +148 -0
  598. package/dist/sheet.mjs +117 -0
  599. package/dist/skeleton.js +32 -0
  600. package/dist/skeleton.mjs +27 -0
  601. package/dist/slider.js +99 -0
  602. package/dist/slider.mjs +73 -0
  603. package/dist/sonner.js +34 -0
  604. package/dist/sonner.mjs +29 -0
  605. package/dist/spline/index.js +211 -0
  606. package/dist/spline/index.mjs +202 -0
  607. package/dist/spline/media-stack.js +193 -0
  608. package/dist/spline/media-stack.mjs +185 -0
  609. package/dist/spline/player.js +37 -0
  610. package/dist/spline/player.mjs +31 -0
  611. package/dist/src/3d/button.d.ts +26 -0
  612. package/dist/src/3d/card.d.ts +28 -0
  613. package/dist/src/3d/carousel.d.ts +25 -0
  614. package/dist/src/3d/grid.d.ts +48 -0
  615. package/dist/src/3d/index.d.ts +6 -0
  616. package/dist/src/3d/marquee.d.ts +36 -0
  617. package/dist/src/3d/pin.d.ts +7 -0
  618. package/dist/src/animation/apple-cards-carousel.d.ts +35 -0
  619. package/dist/src/animation/apple-hello-effect.d.ts +7 -0
  620. package/dist/src/animation/background.d.ts +102 -0
  621. package/dist/src/animation/beam.d.ts +14 -0
  622. package/dist/src/animation/cursor.d.ts +69 -0
  623. package/dist/src/animation/icon.d.ts +118 -0
  624. package/dist/src/animation/index.d.ts +14 -0
  625. package/dist/src/animation/list.d.ts +125 -0
  626. package/dist/src/animation/number.d.ts +126 -0
  627. package/dist/src/animation/testimonials.d.ts +16 -0
  628. package/dist/src/animation/tooltip.d.ts +8 -0
  629. package/dist/src/avatar.d.ts +1 -0
  630. package/dist/src/badge.d.ts +1 -0
  631. package/dist/src/billing/components/index.d.ts +6 -0
  632. package/dist/src/billing/components/invoice-manager.d.ts +9 -0
  633. package/dist/src/billing/components/payment-manager.d.ts +12 -0
  634. package/dist/src/billing/components/subscription-portal.d.ts +14 -0
  635. package/dist/src/billing/index.d.ts +6 -0
  636. package/dist/src/billing/types/index.d.ts +99 -0
  637. package/dist/src/button.d.ts +1 -0
  638. package/dist/src/calendar-ext/index.d.ts +3 -0
  639. package/dist/src/charts/index.d.ts +64 -0
  640. package/dist/src/code/block.d.ts +21 -0
  641. package/dist/src/code/compare.d.ts +35 -0
  642. package/dist/src/code/diff.d.ts +29 -0
  643. package/dist/src/code/editor.d.ts +22 -0
  644. package/dist/src/code/explorer.d.ts +33 -0
  645. package/dist/src/code/index.d.ts +9 -0
  646. package/dist/src/code/preview.d.ts +30 -0
  647. package/dist/src/code/snippet.d.ts +28 -0
  648. package/dist/src/code/tabs.d.ts +11 -0
  649. package/dist/src/code/terminal.d.ts +33 -0
  650. package/dist/src/desktop/hooks.d.ts +74 -0
  651. package/dist/src/desktop/index.d.ts +6 -0
  652. package/dist/src/desktop/spotlight.d.ts +23 -0
  653. package/dist/src/desktop/window.d.ts +33 -0
  654. package/dist/src/device/index.d.ts +1 -0
  655. package/dist/src/dock/basic.d.ts +19 -0
  656. package/dist/src/dock/index.d.ts +5 -0
  657. package/dist/src/dock/limelight-nav.d.ts +9 -0
  658. package/dist/src/dock/macos.d.ts +16 -0
  659. package/dist/src/dock/menu.d.ts +13 -0
  660. package/dist/src/dock/message.d.ts +14 -0
  661. package/dist/src/form/form.d.ts +23 -0
  662. package/dist/src/form/index.d.ts +1 -0
  663. package/dist/src/hooks/index.d.ts +7 -0
  664. package/dist/src/hooks/use-click-away.d.ts +2 -0
  665. package/dist/src/hooks/use-combined-refs.d.ts +3 -0
  666. package/dist/src/hooks/use-copy-clipboard.d.ts +9 -0
  667. package/dist/src/hooks/use-debounce.d.ts +1 -0
  668. package/dist/src/hooks/use-fill-ids.d.ts +8 -0
  669. package/dist/src/hooks/use-map.d.ts +1 -0
  670. package/dist/src/hooks/use-measure.d.ts +8 -0
  671. package/dist/src/hooks/use-reverse-video-playback.d.ts +1 -0
  672. package/dist/src/hooks/use-scroll-restoration.d.ts +8 -0
  673. package/dist/src/kanban/index.d.ts +2 -0
  674. package/dist/src/mcp/enhanced-server.d.ts +7 -0
  675. package/dist/src/mcp/index.d.ts +6 -0
  676. package/dist/src/mermaid/index.d.ts +2 -0
  677. package/dist/src/navigation/advanced-navigation-bar.d.ts +1 -0
  678. package/dist/src/navigation/ai-model-selector-navigation-bar.d.ts +1 -0
  679. package/dist/src/navigation/app-switcher-navigation-bar.d.ts +1 -0
  680. package/dist/src/navigation/breadcrumb-and-filters-navigation-bar.d.ts +1 -0
  681. package/dist/src/navigation/breadcrumb-navigation-bar.d.ts +1 -0
  682. package/dist/src/navigation/centered-logo-navigation-bar.d.ts +1 -0
  683. package/dist/src/navigation/collaboration-navigation-bar.d.ts +1 -0
  684. package/dist/src/navigation/communication-navigation-bar.d.ts +1 -0
  685. package/dist/src/navigation/context-switcher-navigation-bar.d.ts +1 -0
  686. package/dist/src/navigation/dashboard-navigation-bar.d.ts +1 -0
  687. package/dist/src/navigation/e-commerce-navigation-bar.d.ts +1 -0
  688. package/dist/src/navigation/icon-navigation-bar.d.ts +1 -0
  689. package/dist/src/navigation/index.d.ts +18 -0
  690. package/dist/src/navigation/search-and-toggle-navigation-bar.d.ts +1 -0
  691. package/dist/src/navigation/simple-navigation-bar.d.ts +1 -0
  692. package/dist/src/navigation/status-dashboard-navigation-bar.d.ts +1 -0
  693. package/dist/src/navigation/team-switcher-navigation-bar.d.ts +1 -0
  694. package/dist/src/navigation/two-tier-navigation-bar.d.ts +1 -0
  695. package/dist/src/navigation/underline-navigation-bar.d.ts +1 -0
  696. package/dist/src/pattern/grid.d.ts +110 -0
  697. package/dist/src/pattern/index.d.ts +2 -0
  698. package/dist/src/primitives-export.d.ts +8 -0
  699. package/dist/src/project/gantt.d.ts +12 -0
  700. package/dist/src/project/index.d.ts +3 -0
  701. package/dist/src/project/kanban.d.ts +35 -0
  702. package/dist/src/project/list.d.ts +4 -0
  703. package/dist/src/registry/api.d.ts +37 -0
  704. package/dist/src/registry/index.d.ts +86 -0
  705. package/dist/src/spline/index.d.ts +2 -0
  706. package/dist/src/spline/media-stack.d.ts +14 -0
  707. package/dist/src/spline/player.d.ts +14 -0
  708. package/dist/src/ui/announcement.d.ts +8 -0
  709. package/dist/src/ui/avatar-group.d.ts +11 -0
  710. package/dist/src/ui/banner.d.ts +10 -0
  711. package/dist/src/ui/cursor.d.ts +8 -0
  712. package/dist/src/ui/index.d.ts +17 -0
  713. package/dist/src/ui/marquee.d.ts +9 -0
  714. package/dist/src/ui/pill.d.ts +10 -0
  715. package/dist/src/ui/spinner.d.ts +2 -0
  716. package/dist/src/ui/tags.d.ts +12 -0
  717. package/dist/src/ui/ticker.d.ts +9 -0
  718. package/dist/src/utils.d.ts +4 -0
  719. package/dist/style/theme-provider.d.ts +4 -0
  720. package/dist/switch.js +62 -0
  721. package/dist/switch.mjs +37 -0
  722. package/dist/table.js +110 -0
  723. package/dist/table.mjs +101 -0
  724. package/dist/tabs.js +128 -0
  725. package/dist/tabs.mjs +102 -0
  726. package/dist/tailwind/fontFamily.tailwind.d.ts +8 -0
  727. package/dist/tailwind/fontSize.tailwind.d.ts +36 -0
  728. package/dist/tailwind/index.d.ts +3 -0
  729. package/dist/tailwind/index.js +2023 -0
  730. package/dist/tailwind/index.mjs +2011 -0
  731. package/dist/tailwind/screens.tailwind.d.ts +9 -0
  732. package/dist/tailwind/tw-font-desc.d.ts +6 -0
  733. package/dist/textarea.js +78 -0
  734. package/dist/textarea.mjs +56 -0
  735. package/dist/toggle-group.js +118 -0
  736. package/dist/toggle-group.mjs +93 -0
  737. package/dist/toggle.js +71 -0
  738. package/dist/toggle.mjs +48 -0
  739. package/dist/tooltip.js +67 -0
  740. package/dist/tooltip.mjs +40 -0
  741. package/dist/types/animation-def.d.ts +2 -0
  742. package/dist/types/breakpoints.d.ts +4 -0
  743. package/dist/types/bullet-item.d.ts +6 -0
  744. package/dist/types/button-def.d.ts +29 -0
  745. package/dist/types/dimensions.d.ts +5 -0
  746. package/dist/types/grid-def.d.ts +36 -0
  747. package/dist/types/image-def.d.ts +27 -0
  748. package/dist/types/index.d.ts +14 -0
  749. package/dist/types/index.js +57 -0
  750. package/dist/types/index.mjs +51 -0
  751. package/dist/types/link-def.d.ts +44 -0
  752. package/dist/types/media-stack-def.d.ts +25 -0
  753. package/dist/types/t-shirt-size.d.ts +2 -0
  754. package/dist/types/tshirt-dimensions.d.ts +12 -0
  755. package/dist/types/video-def.d.ts +9 -0
  756. package/dist/ui/announcement.js +134 -0
  757. package/dist/ui/announcement.mjs +112 -0
  758. package/dist/ui/avatar-group.js +88 -0
  759. package/dist/ui/avatar-group.mjs +65 -0
  760. package/dist/ui/banner.js +85 -0
  761. package/dist/ui/banner.mjs +62 -0
  762. package/dist/ui/cursor.js +78 -0
  763. package/dist/ui/cursor.mjs +56 -0
  764. package/dist/ui/index.js +495 -0
  765. package/dist/ui/index.mjs +462 -0
  766. package/dist/ui/marquee.js +74 -0
  767. package/dist/ui/marquee.mjs +52 -0
  768. package/dist/ui/pill.js +85 -0
  769. package/dist/ui/pill.mjs +62 -0
  770. package/dist/ui/spinner.js +28 -0
  771. package/dist/ui/spinner.mjs +26 -0
  772. package/dist/ui/tags.js +117 -0
  773. package/dist/ui/tags.mjs +95 -0
  774. package/dist/ui/ticker.js +73 -0
  775. package/dist/ui/ticker.mjs +51 -0
  776. package/dist/util/blob.d.ts +2 -0
  777. package/dist/util/copy-to-clipboard.d.ts +1 -0
  778. package/dist/util/create-shadow-root.d.ts +7 -0
  779. package/dist/util/date.d.ts +28 -0
  780. package/dist/util/debounce.d.ts +1 -0
  781. package/dist/util/file.d.ts +3 -0
  782. package/dist/util/format-and-abbreviate-as-currency.d.ts +11 -0
  783. package/dist/util/format-text.d.ts +7 -0
  784. package/dist/util/format-to-max-char.d.ts +5 -0
  785. package/dist/util/index-client.d.ts +2 -0
  786. package/dist/util/index.d.ts +36 -0
  787. package/dist/util/index.js +463 -0
  788. package/dist/util/index.mjs +404 -0
  789. package/dist/util/number-abbreviate.d.ts +9 -0
  790. package/dist/util/specifier.d.ts +7 -0
  791. package/dist/util/spread-to-transform.d.ts +7 -0
  792. package/dist/util/step-animation.d.ts +5 -0
  793. package/dist/util/timing.d.ts +1 -0
  794. package/dist/util/toasts.d.ts +2 -0
  795. package/dist/util/two-way-map.d.ts +8 -0
  796. package/dist/util/use-mobile.d.ts +1 -0
  797. package/dist/utils.d.ts +3 -0
  798. package/docs/_registry/index.ts +426 -0
  799. package/docs/_registry/layout/docs-min.tsx +197 -0
  800. package/docs/_registry/layout/page-min.tsx +128 -0
  801. package/docs/components/accordion.tsx +118 -0
  802. package/docs/components/banner.tsx +144 -0
  803. package/docs/components/callout.tsx +112 -0
  804. package/docs/components/card.tsx +52 -0
  805. package/docs/components/codeblock.tsx +258 -0
  806. package/docs/components/dialog/search-algolia.tsx +132 -0
  807. package/docs/components/dialog/search-default.tsx +131 -0
  808. package/docs/components/dialog/search-orama.tsx +143 -0
  809. package/docs/components/dialog/search.tsx +529 -0
  810. package/docs/components/dynamic-codeblock.tsx +129 -0
  811. package/docs/components/files.tsx +81 -0
  812. package/docs/components/github-info.tsx +107 -0
  813. package/docs/components/heading.tsx +33 -0
  814. package/docs/components/image-zoom.css +77 -0
  815. package/docs/components/image-zoom.tsx +58 -0
  816. package/docs/components/index.ts +7 -0
  817. package/docs/components/inline-toc.tsx +48 -0
  818. package/docs/components/sidebar/base.tsx +451 -0
  819. package/docs/components/sidebar/link-item.tsx +65 -0
  820. package/docs/components/sidebar/page-tree.tsx +113 -0
  821. package/docs/components/sidebar/tabs/dropdown.tsx +109 -0
  822. package/docs/components/sidebar/tabs/index.tsx +89 -0
  823. package/docs/components/steps.tsx +9 -0
  824. package/docs/components/tabs.tsx +203 -0
  825. package/docs/components/toc/clerk.tsx +173 -0
  826. package/docs/components/toc/default.tsx +57 -0
  827. package/docs/components/toc/index.tsx +136 -0
  828. package/docs/components/type-table.tsx +174 -0
  829. package/docs/components/ui/accordion.tsx +88 -0
  830. package/docs/components/ui/button.tsx +28 -0
  831. package/docs/components/ui/collapsible.tsx +42 -0
  832. package/docs/components/ui/navigation-menu.tsx +83 -0
  833. package/docs/components/ui/popover.tsx +32 -0
  834. package/docs/components/ui/scroll-area.tsx +59 -0
  835. package/docs/components/ui/tabs.tsx +145 -0
  836. package/docs/contexts/i18n.tsx +56 -0
  837. package/docs/contexts/search.tsx +165 -0
  838. package/docs/contexts/tree.tsx +65 -0
  839. package/docs/css/aspen.css +39 -0
  840. package/docs/css/black.css +39 -0
  841. package/docs/css/catppuccin.css +49 -0
  842. package/docs/css/colors/index.css +51 -0
  843. package/docs/css/dusk.css +47 -0
  844. package/docs/css/emerald.css +39 -0
  845. package/docs/css/layouts/docs.css +1 -0
  846. package/docs/css/layouts/home.css +1 -0
  847. package/docs/css/layouts/notebook.css +1 -0
  848. package/docs/css/neutral.css +7 -0
  849. package/docs/css/ocean.css +48 -0
  850. package/docs/css/preset.css +305 -0
  851. package/docs/css/purple.css +39 -0
  852. package/docs/css/ruby.css +39 -0
  853. package/docs/css/shadcn.css +36 -0
  854. package/docs/css/shiki.css +90 -0
  855. package/docs/css/solar.css +75 -0
  856. package/docs/css/style.css +9 -0
  857. package/docs/css/vitepress.css +77 -0
  858. package/docs/i18n.tsx +30 -0
  859. package/docs/icons.tsx +354 -0
  860. package/docs/layouts/docs/client.tsx +129 -0
  861. package/docs/layouts/docs/index.tsx +321 -0
  862. package/docs/layouts/docs/page/client.tsx +376 -0
  863. package/docs/layouts/docs/page/index.tsx +251 -0
  864. package/docs/layouts/docs/sidebar.tsx +265 -0
  865. package/docs/layouts/home/client.tsx +375 -0
  866. package/docs/layouts/home/index.tsx +51 -0
  867. package/docs/layouts/home/navbar.tsx +55 -0
  868. package/docs/layouts/notebook/client.tsx +281 -0
  869. package/docs/layouts/notebook/index.tsx +461 -0
  870. package/docs/layouts/notebook/page/client.tsx +375 -0
  871. package/docs/layouts/notebook/page/index.tsx +251 -0
  872. package/docs/layouts/notebook/sidebar.tsx +248 -0
  873. package/docs/layouts/shared/index.tsx +89 -0
  874. package/docs/layouts/shared/language-toggle.tsx +66 -0
  875. package/docs/layouts/shared/link-item.tsx +119 -0
  876. package/docs/layouts/shared/search-toggle.tsx +78 -0
  877. package/docs/layouts/shared/theme-toggle.tsx +86 -0
  878. package/docs/mdx.server.tsx +37 -0
  879. package/docs/mdx.tsx +97 -0
  880. package/docs/og.tsx +101 -0
  881. package/docs/page.tsx +85 -0
  882. package/docs/provider/base.tsx +173 -0
  883. package/docs/provider/next.tsx +23 -0
  884. package/docs/provider/react-router.tsx +23 -0
  885. package/docs/provider/tanstack.tsx +23 -0
  886. package/docs/provider/waku.tsx +23 -0
  887. package/docs/source.ts +3 -0
  888. package/docs/theme/typography/LICENSE +21 -0
  889. package/docs/theme/typography/index.ts +201 -0
  890. package/docs/theme/typography/styles.ts +449 -0
  891. package/docs/utils/cn.ts +1 -0
  892. package/docs/utils/is-active.ts +23 -0
  893. package/docs/utils/merge-refs.ts +15 -0
  894. package/docs/utils/use-copy-button.ts +39 -0
  895. package/docs/utils/use-footer-items.ts +27 -0
  896. package/docs/utils/use-is-scroll-top.ts +21 -0
  897. package/finance/README.md +164 -0
  898. package/finance/components/AdvancedChart.tsx +58 -0
  899. package/finance/components/CompanyProfile.tsx +65 -0
  900. package/finance/components/CryptoScreener.tsx +55 -0
  901. package/finance/components/Financials.tsx +71 -0
  902. package/finance/components/ForexScreener.tsx +56 -0
  903. package/finance/components/MarketOverview.tsx +114 -0
  904. package/finance/components/NewsTimeline.tsx +54 -0
  905. package/finance/components/OrderEntry.tsx +157 -0
  906. package/finance/components/OrdersHistory.tsx +103 -0
  907. package/finance/components/PositionsList.tsx +85 -0
  908. package/finance/components/StockScreener.tsx +56 -0
  909. package/finance/components/SymbolInfo.tsx +62 -0
  910. package/finance/components/TechnicalAnalysis.tsx +74 -0
  911. package/finance/components/TickerTape.tsx +66 -0
  912. package/finance/components/TradingPanel.tsx +238 -0
  913. package/finance/components/index.ts +40 -0
  914. package/finance/index.ts +23 -0
  915. package/package.json +803 -0
  916. package/style/drawer.css +163 -0
  917. package/style/globals.css +146 -0
  918. package/style/libreapps-common.css +31 -0
  919. package/style/libreapps-default-colors.css +147 -0
  920. package/style/tailwind.css +200 -0
  921. package/style/theme-provider.tsx +20 -0
@@ -0,0 +1,1921 @@
1
+ "use client";
2
+ import * as React9 from 'react';
3
+ import { useMemo, useState, useEffect, useCallback, useRef } from 'react';
4
+ import { motion, AnimatePresence, Reorder, useMotionValue as useMotionValue$1, useTransform as useTransform$1, useSpring } from 'motion/react';
5
+ import { cn as cn$1 } from '@/lib/utils';
6
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
+ import { cn } from '@libreapps/ui/lib/utils';
8
+ import { Avatar, AvatarImage, AvatarFallback } from '@libreapps/ui/primitives/avatar';
9
+ import { Card, CardContent, Button } from '@libreapps/ui';
10
+ import { AnimatePresence as AnimatePresence$1, motion as motion$1, useMotionValue, useTransform } from 'framer-motion';
11
+ import { ChevronLeft, ChevronRight } from 'lucide-react';
12
+
13
+ var __defProp = Object.defineProperty;
14
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
15
+ function usePrefersReducedMotion() {
16
+ const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
17
+ useEffect(() => {
18
+ if (typeof window === "undefined") return;
19
+ const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
20
+ setPrefersReducedMotion(mediaQuery.matches);
21
+ const handleChange = /* @__PURE__ */ __name((event) => {
22
+ setPrefersReducedMotion(event.matches);
23
+ }, "handleChange");
24
+ mediaQuery.addEventListener("change", handleChange);
25
+ return () => mediaQuery.removeEventListener("change", handleChange);
26
+ }, []);
27
+ return prefersReducedMotion;
28
+ }
29
+ __name(usePrefersReducedMotion, "usePrefersReducedMotion");
30
+ function GradientBackground({
31
+ colors,
32
+ speed,
33
+ intensity,
34
+ paused
35
+ }) {
36
+ const gradientColors = colors.length >= 2 ? colors : ["#ff6b6b", "#4ecdc4", "#45b7d1", "#96ceb4"];
37
+ return /* @__PURE__ */ jsx(
38
+ motion.div,
39
+ {
40
+ className: "absolute inset-0",
41
+ style: {
42
+ background: `linear-gradient(-45deg, ${gradientColors.join(", ")})`,
43
+ backgroundSize: "400% 400%"
44
+ },
45
+ animate: paused ? {} : {
46
+ x: ["0%", "100%", "0%"]
47
+ },
48
+ transition: {
49
+ duration: 10 / speed,
50
+ repeat: Infinity,
51
+ ease: "linear"
52
+ }
53
+ }
54
+ );
55
+ }
56
+ __name(GradientBackground, "GradientBackground");
57
+ function BlobBackground({
58
+ colors,
59
+ speed,
60
+ elementCount,
61
+ intensity,
62
+ paused
63
+ }) {
64
+ const blobs = useMemo(
65
+ () => Array.from({ length: elementCount }, (_, i) => ({
66
+ id: i,
67
+ color: colors[i % colors.length],
68
+ size: Math.random() * 200 + 100,
69
+ x: Math.random() * 100,
70
+ y: Math.random() * 100,
71
+ duration: (Math.random() * 10 + 10) / speed
72
+ })),
73
+ [elementCount, colors, speed]
74
+ );
75
+ return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", children: blobs.map((blob) => /* @__PURE__ */ jsx(
76
+ motion.div,
77
+ {
78
+ className: "absolute rounded-full",
79
+ style: {
80
+ background: `radial-gradient(circle, ${blob.color}40, transparent)`,
81
+ width: blob.size * intensity,
82
+ height: blob.size * intensity,
83
+ filter: "blur(40px)"
84
+ },
85
+ initial: {
86
+ x: `${blob.x}%`,
87
+ y: `${blob.y}%`
88
+ },
89
+ animate: paused ? {} : {
90
+ x: [`${blob.x}%`, `${(blob.x + 50) % 100}%`, `${blob.x}%`],
91
+ y: [`${blob.y}%`, `${(blob.y + 30) % 100}%`, `${blob.y}%`],
92
+ scale: [1, 1.2, 1]
93
+ },
94
+ transition: {
95
+ duration: blob.duration,
96
+ repeat: Infinity,
97
+ ease: "easeInOut"
98
+ }
99
+ },
100
+ blob.id
101
+ )) });
102
+ }
103
+ __name(BlobBackground, "BlobBackground");
104
+ function WaveBackground({
105
+ colors,
106
+ speed,
107
+ intensity,
108
+ paused
109
+ }) {
110
+ const waveColor = colors[0] || "#4ecdc4";
111
+ return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx(
112
+ motion.div,
113
+ {
114
+ className: "absolute inset-0",
115
+ style: {
116
+ background: `radial-gradient(ellipse 100% 50% at center ${50 + index * 20}%, ${waveColor}${Math.round(
117
+ 30 * intensity
118
+ ).toString(16).padStart(2, "0")}, transparent)`
119
+ },
120
+ animate: paused ? {} : {
121
+ y: [index * 10, index * 10 + 20 * intensity, index * 10]
122
+ },
123
+ transition: {
124
+ duration: (3 + index) / speed,
125
+ repeat: Infinity,
126
+ ease: "easeInOut"
127
+ }
128
+ },
129
+ index
130
+ )) });
131
+ }
132
+ __name(WaveBackground, "WaveBackground");
133
+ function MeshBackground({
134
+ colors,
135
+ speed,
136
+ intensity,
137
+ paused
138
+ }) {
139
+ const meshColors = colors.length >= 4 ? colors.slice(0, 4) : ["#ff6b6b", "#4ecdc4", "#45b7d1", "#96ceb4"];
140
+ return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", children: meshColors.map((color, index) => /* @__PURE__ */ jsx(
141
+ motion.div,
142
+ {
143
+ className: "absolute rounded-full",
144
+ style: {
145
+ background: `radial-gradient(circle, ${color}60, transparent)`,
146
+ width: `${60 + index * 20}%`,
147
+ height: `${60 + index * 20}%`,
148
+ filter: "blur(60px)",
149
+ mixBlendMode: "multiply"
150
+ },
151
+ initial: {
152
+ x: `${25 + index * 15}%`,
153
+ y: `${25 + index * 15}%`
154
+ },
155
+ animate: paused ? {} : {
156
+ x: [
157
+ `${25 + index * 15}%`,
158
+ `${35 + index * 15}%`,
159
+ `${25 + index * 15}%`
160
+ ],
161
+ y: [
162
+ `${25 + index * 15}%`,
163
+ `${15 + index * 15}%`,
164
+ `${25 + index * 15}%`
165
+ ],
166
+ rotate: [0, 180, 360]
167
+ },
168
+ transition: {
169
+ duration: (8 + index * 2) / speed,
170
+ repeat: Infinity,
171
+ ease: "easeInOut"
172
+ }
173
+ },
174
+ index
175
+ )) });
176
+ }
177
+ __name(MeshBackground, "MeshBackground");
178
+ function ParallaxBackground({
179
+ layers,
180
+ speed,
181
+ paused
182
+ }) {
183
+ const mouseX = useMotionValue$1(0);
184
+ const mouseY = useMotionValue$1(0);
185
+ useEffect(() => {
186
+ const handleMouseMove = /* @__PURE__ */ __name((e) => {
187
+ const { clientX, clientY } = e;
188
+ const { innerWidth, innerHeight } = window;
189
+ mouseX.set((clientX / innerWidth - 0.5) * 100);
190
+ mouseY.set((clientY / innerHeight - 0.5) * 100);
191
+ }, "handleMouseMove");
192
+ window.addEventListener("mousemove", handleMouseMove);
193
+ return () => window.removeEventListener("mousemove", handleMouseMove);
194
+ }, [mouseX, mouseY]);
195
+ return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", children: layers.map((layer, index) => {
196
+ const x = useTransform$1(
197
+ mouseX,
198
+ [-50, 50],
199
+ [-layer.speed * 10, layer.speed * 10]
200
+ );
201
+ const y = useTransform$1(
202
+ mouseY,
203
+ [-50, 50],
204
+ [-layer.speed * 10, layer.speed * 10]
205
+ );
206
+ return /* @__PURE__ */ jsx(
207
+ motion.div,
208
+ {
209
+ className: "absolute inset-0",
210
+ style: {
211
+ background: `radial-gradient(circle, ${layer.color}, transparent)`,
212
+ opacity: layer.opacity,
213
+ x: paused ? 0 : x,
214
+ y: paused ? 0 : y
215
+ }
216
+ },
217
+ index
218
+ );
219
+ }) });
220
+ }
221
+ __name(ParallaxBackground, "ParallaxBackground");
222
+ function ParticlesBackground({
223
+ colors,
224
+ speed,
225
+ elementCount,
226
+ intensity,
227
+ paused
228
+ }) {
229
+ const particles = useMemo(
230
+ () => Array.from({ length: elementCount }, (_, i) => ({
231
+ id: i,
232
+ color: colors[i % colors.length],
233
+ size: Math.random() * 4 + 2,
234
+ x: Math.random() * 100,
235
+ y: Math.random() * 100,
236
+ duration: (Math.random() * 20 + 20) / speed,
237
+ delay: Math.random() * 5
238
+ })),
239
+ [elementCount, colors, speed]
240
+ );
241
+ return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", children: particles.map((particle) => /* @__PURE__ */ jsx(
242
+ motion.div,
243
+ {
244
+ className: "absolute rounded-full",
245
+ style: {
246
+ backgroundColor: particle.color,
247
+ width: particle.size * intensity,
248
+ height: particle.size * intensity,
249
+ opacity: 0.6
250
+ },
251
+ initial: {
252
+ x: `${particle.x}%`,
253
+ y: `${particle.y}%`
254
+ },
255
+ animate: paused ? {} : {
256
+ y: [`${particle.y}%`, `${particle.y - 100}%`],
257
+ opacity: [0, 0.6, 0]
258
+ },
259
+ transition: {
260
+ duration: particle.duration,
261
+ repeat: Infinity,
262
+ delay: particle.delay,
263
+ ease: "linear"
264
+ }
265
+ },
266
+ particle.id
267
+ )) });
268
+ }
269
+ __name(ParticlesBackground, "ParticlesBackground");
270
+ function AnimatedBackground({
271
+ animation = "gradient",
272
+ speed = 1,
273
+ colors = ["#ff6b6b", "#4ecdc4", "#45b7d1", "#96ceb4", "#ffeaa7"],
274
+ paused = false,
275
+ className,
276
+ style,
277
+ children,
278
+ intensity = 1,
279
+ blur = false,
280
+ blurAmount = 20,
281
+ opacity = 1,
282
+ elementCount = 5,
283
+ width = "100%",
284
+ height = "100%",
285
+ fullscreen = false,
286
+ parallaxLayers = [
287
+ { speed: 0.5, color: "#ff6b6b50", opacity: 0.3 },
288
+ { speed: 1, color: "#4ecdc450", opacity: 0.4 },
289
+ { speed: 1.5, color: "#45b7d150", opacity: 0.3 }
290
+ ]
291
+ }) {
292
+ const prefersReducedMotion = usePrefersReducedMotion();
293
+ const isAnimationPaused = paused || prefersReducedMotion;
294
+ const containerStyle = useMemo(
295
+ () => ({
296
+ width: fullscreen ? "100vw" : width,
297
+ height: fullscreen ? "100vh" : height,
298
+ opacity,
299
+ filter: blur ? `blur(${blurAmount}px)` : void 0,
300
+ ...style
301
+ }),
302
+ [fullscreen, width, height, opacity, blur, blurAmount, style]
303
+ );
304
+ const renderAnimation = /* @__PURE__ */ __name(() => {
305
+ const props = { colors, speed, intensity, paused: isAnimationPaused };
306
+ switch (animation) {
307
+ case "blob":
308
+ return /* @__PURE__ */ jsx(BlobBackground, { ...props, elementCount });
309
+ case "wave":
310
+ return /* @__PURE__ */ jsx(WaveBackground, { ...props });
311
+ case "mesh":
312
+ return /* @__PURE__ */ jsx(MeshBackground, { ...props });
313
+ case "parallax":
314
+ return /* @__PURE__ */ jsx(
315
+ ParallaxBackground,
316
+ {
317
+ layers: parallaxLayers,
318
+ speed,
319
+ paused: isAnimationPaused
320
+ }
321
+ );
322
+ case "particles":
323
+ return /* @__PURE__ */ jsx(ParticlesBackground, { ...props, elementCount });
324
+ default:
325
+ return /* @__PURE__ */ jsx(GradientBackground, { ...props });
326
+ }
327
+ }, "renderAnimation");
328
+ return /* @__PURE__ */ jsxs(
329
+ "div",
330
+ {
331
+ className: cn$1(
332
+ "relative overflow-hidden",
333
+ fullscreen && "fixed inset-0 z-0",
334
+ className
335
+ ),
336
+ style: containerStyle,
337
+ children: [
338
+ renderAnimation(),
339
+ children && /* @__PURE__ */ jsx("div", { className: "relative z-10 h-full w-full", children })
340
+ ]
341
+ }
342
+ );
343
+ }
344
+ __name(AnimatedBackground, "AnimatedBackground");
345
+ var AnimatedBeam = React9.forwardRef(
346
+ ({
347
+ className,
348
+ duration = 3,
349
+ delay = 0,
350
+ pathColor = "gray",
351
+ pathWidth = 2,
352
+ gradientStartColor = "#18CCFC",
353
+ gradientStopColor = "#6344F5",
354
+ containerRef,
355
+ fromRef,
356
+ toRef,
357
+ ...props
358
+ }, ref) => {
359
+ const [pathD, setPathD] = React9.useState("");
360
+ React9.useEffect(() => {
361
+ if (!containerRef?.current || !fromRef?.current || !toRef?.current) return;
362
+ const updatePath = /* @__PURE__ */ __name(() => {
363
+ const containerRect = containerRef.current.getBoundingClientRect();
364
+ const fromRect = fromRef.current.getBoundingClientRect();
365
+ const toRect = toRef.current.getBoundingClientRect();
366
+ const fromX = fromRect.left - containerRect.left + fromRect.width / 2;
367
+ const fromY = fromRect.top - containerRect.top + fromRect.height / 2;
368
+ const toX = toRect.left - containerRect.left + toRect.width / 2;
369
+ const toY = toRect.top - containerRect.top + toRect.height / 2;
370
+ const controlX = (fromX + toX) / 2;
371
+ const controlY = Math.min(fromY, toY) - 50;
372
+ setPathD(`M ${fromX} ${fromY} Q ${controlX} ${controlY} ${toX} ${toY}`);
373
+ }, "updatePath");
374
+ updatePath();
375
+ window.addEventListener("resize", updatePath);
376
+ return () => window.removeEventListener("resize", updatePath);
377
+ }, [containerRef, fromRef, toRef]);
378
+ return /* @__PURE__ */ jsxs(
379
+ "svg",
380
+ {
381
+ ref,
382
+ className: cn("pointer-events-none absolute inset-0", className),
383
+ ...props,
384
+ children: [
385
+ /* @__PURE__ */ jsx(
386
+ "path",
387
+ {
388
+ d: pathD,
389
+ stroke: pathColor,
390
+ strokeWidth: pathWidth,
391
+ fill: "none",
392
+ strokeOpacity: 0.2
393
+ }
394
+ ),
395
+ /* @__PURE__ */ jsx(
396
+ motion.path,
397
+ {
398
+ d: pathD,
399
+ stroke: `url(#gradient-${gradientStartColor}-${gradientStopColor})`,
400
+ strokeWidth: pathWidth,
401
+ fill: "none",
402
+ initial: { pathLength: 0 },
403
+ animate: { pathLength: 1 },
404
+ transition: {
405
+ duration,
406
+ delay,
407
+ ease: "easeInOut",
408
+ repeat: Infinity
409
+ }
410
+ }
411
+ ),
412
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
413
+ "linearGradient",
414
+ {
415
+ id: `gradient-${gradientStartColor}-${gradientStopColor}`,
416
+ x1: "0%",
417
+ y1: "0%",
418
+ x2: "100%",
419
+ y2: "0%",
420
+ children: [
421
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: gradientStartColor }),
422
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: gradientStopColor })
423
+ ]
424
+ }
425
+ ) })
426
+ ]
427
+ }
428
+ );
429
+ }
430
+ );
431
+ AnimatedBeam.displayName = "AnimatedBeam";
432
+ var INTERACTIVE_SELECTORS = [
433
+ "a",
434
+ "button",
435
+ "input",
436
+ "textarea",
437
+ "select",
438
+ '[role="button"]',
439
+ '[role="link"]',
440
+ '[tabindex]:not([tabindex="-1"])',
441
+ ".cursor-pointer",
442
+ '[data-cursor="pointer"]'
443
+ ].join(", ");
444
+ var TEXT_SELECTORS = [
445
+ 'input[type="text"]',
446
+ 'input[type="email"]',
447
+ 'input[type="password"]',
448
+ 'input[type="search"]',
449
+ "textarea",
450
+ '[contenteditable="true"]',
451
+ '[data-cursor="text"]'
452
+ ].join(", ");
453
+ var GRAB_SELECTORS = ['[data-cursor="grab"]', ".cursor-grab"].join(", ");
454
+ var GRABBING_SELECTORS = [
455
+ '[data-cursor="grabbing"]',
456
+ ".cursor-grabbing"
457
+ ].join(", ");
458
+ function isTouchDevice() {
459
+ if (typeof window === "undefined") return false;
460
+ return "ontouchstart" in window || navigator.maxTouchPoints > 0 || // @ts-ignore
461
+ navigator.msMaxTouchPoints > 0;
462
+ }
463
+ __name(isTouchDevice, "isTouchDevice");
464
+ function useCursorState() {
465
+ const [cursorState, setCursorState] = useState({
466
+ position: { x: 0, y: 0 },
467
+ isHovering: false,
468
+ isClicking: false,
469
+ cursorType: "default"
470
+ });
471
+ const updatePosition = useCallback((x, y) => {
472
+ setCursorState((prev) => ({
473
+ ...prev,
474
+ position: { x, y }
475
+ }));
476
+ }, []);
477
+ const updateHoverState = useCallback(
478
+ (isHovering, cursorType = "default") => {
479
+ setCursorState((prev) => ({
480
+ ...prev,
481
+ isHovering,
482
+ cursorType
483
+ }));
484
+ },
485
+ []
486
+ );
487
+ const updateClickState = useCallback((isClicking) => {
488
+ setCursorState((prev) => ({
489
+ ...prev,
490
+ isClicking
491
+ }));
492
+ }, []);
493
+ return {
494
+ cursorState,
495
+ updatePosition,
496
+ updateHoverState,
497
+ updateClickState
498
+ };
499
+ }
500
+ __name(useCursorState, "useCursorState");
501
+ function useCursorTrail(trailLength, position) {
502
+ const [trail, setTrail] = useState([]);
503
+ const trailRef = useRef([]);
504
+ useEffect(() => {
505
+ trailRef.current.push(position);
506
+ if (trailRef.current.length > trailLength) {
507
+ trailRef.current.shift();
508
+ }
509
+ setTrail([...trailRef.current]);
510
+ }, [position, trailLength]);
511
+ return trail;
512
+ }
513
+ __name(useCursorTrail, "useCursorTrail");
514
+ function AnimatedCursor({
515
+ isVisible = true,
516
+ size = 20,
517
+ color = "#000000",
518
+ trailColor = "#00000050",
519
+ animationDuration = 200,
520
+ showTrail = true,
521
+ trailLength = 8,
522
+ blendMode = "normal",
523
+ hoverScale = 1.5,
524
+ hideOnTouch = true,
525
+ className,
526
+ clickAnimationDuration = 100,
527
+ zIndex = 9999
528
+ }) {
529
+ const { cursorState, updatePosition, updateHoverState, updateClickState } = useCursorState();
530
+ const trail = useCursorTrail(trailLength, cursorState.position);
531
+ const [isTouch, setIsTouch] = useState(false);
532
+ const [mounted, setMounted] = useState(false);
533
+ useEffect(() => {
534
+ setIsTouch(isTouchDevice());
535
+ setMounted(true);
536
+ }, []);
537
+ useEffect(() => {
538
+ if (!mounted || hideOnTouch && isTouch) return;
539
+ const handleMouseMove = /* @__PURE__ */ __name((e) => {
540
+ try {
541
+ requestAnimationFrame(() => {
542
+ updatePosition(e.clientX, e.clientY);
543
+ });
544
+ } catch (error) {
545
+ console.warn("AnimatedCursor: Error updating position", error);
546
+ }
547
+ }, "handleMouseMove");
548
+ const handleMouseOver = /* @__PURE__ */ __name((e) => {
549
+ try {
550
+ const target = e.target;
551
+ if (target?.closest?.(INTERACTIVE_SELECTORS)) {
552
+ updateHoverState(true, "pointer");
553
+ } else if (target?.closest?.(TEXT_SELECTORS)) {
554
+ updateHoverState(true, "text");
555
+ } else if (target?.closest?.(GRAB_SELECTORS)) {
556
+ updateHoverState(true, "grab");
557
+ } else if (target?.closest?.(GRABBING_SELECTORS)) {
558
+ updateHoverState(true, "grabbing");
559
+ } else {
560
+ updateHoverState(false, "default");
561
+ }
562
+ } catch (error) {
563
+ console.warn("AnimatedCursor: Error handling mouse over", error);
564
+ updateHoverState(false, "default");
565
+ }
566
+ }, "handleMouseOver");
567
+ const handleMouseDown = /* @__PURE__ */ __name(() => {
568
+ updateClickState(true);
569
+ }, "handleMouseDown");
570
+ const handleMouseUp = /* @__PURE__ */ __name(() => {
571
+ updateClickState(false);
572
+ }, "handleMouseUp");
573
+ const handleMouseLeave = /* @__PURE__ */ __name(() => {
574
+ updateHoverState(false, "default");
575
+ }, "handleMouseLeave");
576
+ document.addEventListener("mousemove", handleMouseMove);
577
+ document.addEventListener("mouseover", handleMouseOver);
578
+ document.addEventListener("mousedown", handleMouseDown);
579
+ document.addEventListener("mouseup", handleMouseUp);
580
+ document.addEventListener("mouseleave", handleMouseLeave);
581
+ return () => {
582
+ document.removeEventListener("mousemove", handleMouseMove);
583
+ document.removeEventListener("mouseover", handleMouseOver);
584
+ document.removeEventListener("mousedown", handleMouseDown);
585
+ document.removeEventListener("mouseup", handleMouseUp);
586
+ document.removeEventListener("mouseleave", handleMouseLeave);
587
+ };
588
+ }, [
589
+ mounted,
590
+ hideOnTouch,
591
+ isTouch,
592
+ updatePosition,
593
+ updateHoverState,
594
+ updateClickState
595
+ ]);
596
+ useEffect(() => {
597
+ if (!mounted || hideOnTouch && isTouch) return;
598
+ try {
599
+ const originalCursor = document.body.style.cursor;
600
+ document.body.style.cursor = "none";
601
+ return () => {
602
+ try {
603
+ document.body.style.cursor = originalCursor;
604
+ } catch (error) {
605
+ console.warn("AnimatedCursor: Error restoring cursor style", error);
606
+ }
607
+ };
608
+ } catch (error) {
609
+ console.warn("AnimatedCursor: Error hiding cursor", error);
610
+ }
611
+ }, [mounted, hideOnTouch, isTouch]);
612
+ if (!mounted || !isVisible || hideOnTouch && isTouch) {
613
+ return null;
614
+ }
615
+ const currentScale = cursorState.isHovering ? hoverScale : 1;
616
+ const clickScale = cursorState.isClicking ? 0.8 : 1;
617
+ const finalScale = currentScale * clickScale;
618
+ const getCursorShape = /* @__PURE__ */ __name(() => {
619
+ switch (cursorState.cursorType) {
620
+ case "text":
621
+ return "h-6 w-0.5";
622
+ case "grab":
623
+ case "grabbing":
624
+ return "rounded-md";
625
+ default:
626
+ return "rounded-full";
627
+ }
628
+ }, "getCursorShape");
629
+ return /* @__PURE__ */ jsxs("div", { className: cn("pointer-events-none fixed inset-0", className), children: [
630
+ showTrail && trail.map((point, index) => {
631
+ const opacity = (index + 1) / trail.length * 0.5;
632
+ const scale = (index + 1) / trail.length * 0.8;
633
+ return /* @__PURE__ */ jsx(
634
+ "div",
635
+ {
636
+ className: "absolute",
637
+ style: {
638
+ left: point.x - size / 2,
639
+ top: point.y - size / 2,
640
+ width: size,
641
+ height: size,
642
+ backgroundColor: trailColor,
643
+ borderRadius: "50%",
644
+ opacity,
645
+ transform: `scale(${scale})`,
646
+ zIndex: zIndex - index - 1,
647
+ mixBlendMode: blendMode
648
+ }
649
+ },
650
+ index
651
+ );
652
+ }),
653
+ /* @__PURE__ */ jsx(
654
+ "div",
655
+ {
656
+ className: cn(
657
+ "absolute transition-transform duration-100 ease-out",
658
+ getCursorShape()
659
+ ),
660
+ style: {
661
+ left: cursorState.position.x - size / 2,
662
+ top: cursorState.position.y - size / 2,
663
+ width: cursorState.cursorType === "text" ? 2 : size,
664
+ height: cursorState.cursorType === "text" ? 24 : size,
665
+ backgroundColor: color,
666
+ transform: `scale(${finalScale})`,
667
+ transitionDuration: `${animationDuration}ms`,
668
+ zIndex,
669
+ mixBlendMode: blendMode
670
+ }
671
+ }
672
+ ),
673
+ cursorState.isHovering && cursorState.cursorType !== "text" && /* @__PURE__ */ jsx(
674
+ "div",
675
+ {
676
+ className: "absolute rounded-full border-2 transition-all duration-200 ease-out",
677
+ style: {
678
+ left: cursorState.position.x - size * hoverScale / 2,
679
+ top: cursorState.position.y - size * hoverScale / 2,
680
+ width: size * hoverScale,
681
+ height: size * hoverScale,
682
+ borderColor: color,
683
+ opacity: 0.3,
684
+ zIndex: zIndex - 1,
685
+ mixBlendMode: blendMode
686
+ }
687
+ }
688
+ )
689
+ ] });
690
+ }
691
+ __name(AnimatedCursor, "AnimatedCursor");
692
+ function usePrefersReducedMotion2() {
693
+ const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
694
+ useEffect(() => {
695
+ if (typeof window === "undefined") return;
696
+ const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
697
+ setPrefersReducedMotion(mediaQuery.matches);
698
+ const handleChange = /* @__PURE__ */ __name((event) => {
699
+ setPrefersReducedMotion(event.matches);
700
+ }, "handleChange");
701
+ mediaQuery.addEventListener("change", handleChange);
702
+ return () => mediaQuery.removeEventListener("change", handleChange);
703
+ }, []);
704
+ return prefersReducedMotion;
705
+ }
706
+ __name(usePrefersReducedMotion2, "usePrefersReducedMotion");
707
+ var iconPaths = {
708
+ loading: "M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",
709
+ heart: [
710
+ "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z",
711
+ "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"
712
+ ],
713
+ star: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z",
714
+ hamburger: ["M3 12h18M3 6h18M3 18h18", "m6 6 12 12M6 18 18 6"],
715
+ arrow: "M5 12l14 0m-7 -7l7 7l-7 7",
716
+ check: "m9 12 2 2 4-4",
717
+ x: "m18 6-12 12M6 6l12 12"
718
+ };
719
+ var animationVariants = {
720
+ spin: {
721
+ animate: {
722
+ rotate: 360,
723
+ transition: {
724
+ duration: 1,
725
+ repeat: Infinity,
726
+ ease: "linear"
727
+ }
728
+ }
729
+ },
730
+ pulse: {
731
+ animate: {
732
+ scale: [1, 1.2, 1],
733
+ transition: {
734
+ duration: 1,
735
+ repeat: Infinity,
736
+ ease: "easeInOut"
737
+ }
738
+ }
739
+ },
740
+ bounce: {
741
+ animate: {
742
+ y: [0, -10, 0],
743
+ transition: {
744
+ duration: 0.6,
745
+ repeat: Infinity,
746
+ ease: "easeInOut"
747
+ }
748
+ }
749
+ },
750
+ draw: {
751
+ initial: { pathLength: 0, opacity: 0 },
752
+ animate: {
753
+ pathLength: 1,
754
+ opacity: 1,
755
+ transition: { duration: 2, ease: "easeInOut" }
756
+ }
757
+ },
758
+ hover: {
759
+ whileHover: {
760
+ scale: 1.1,
761
+ transition: { duration: 0.2 }
762
+ }
763
+ }
764
+ };
765
+ var hoverVariants = {
766
+ scale: { scale: 1.2 },
767
+ rotate: { rotate: 15 },
768
+ glow: { filter: "drop-shadow(0 0 8px currentColor)" },
769
+ shake: { x: [-2, 2, -2, 2, 0] }
770
+ };
771
+ var clickVariants = {
772
+ scale: { scale: 0.9 },
773
+ rotate: { rotate: 180 },
774
+ ripple: { scale: [1, 1.3, 1] }
775
+ };
776
+ function MorphingPath({
777
+ paths,
778
+ duration,
779
+ strokeWidth = 2,
780
+ autoAnimate,
781
+ repeat,
782
+ onComplete
783
+ }) {
784
+ const [currentPathIndex, setCurrentPathIndex] = useState(0);
785
+ useEffect(() => {
786
+ if (!autoAnimate || paths.length < 2) return;
787
+ const interval = setInterval(() => {
788
+ setCurrentPathIndex((prev) => {
789
+ const next = (prev + 1) % paths.length;
790
+ if (next === 0 && !repeat) {
791
+ clearInterval(interval);
792
+ onComplete?.();
793
+ }
794
+ return next;
795
+ });
796
+ }, duration);
797
+ return () => clearInterval(interval);
798
+ }, [autoAnimate, paths.length, duration, repeat, onComplete]);
799
+ return /* @__PURE__ */ jsx(
800
+ motion.path,
801
+ {
802
+ d: paths[currentPathIndex],
803
+ fill: "none",
804
+ stroke: "currentColor",
805
+ strokeWidth,
806
+ strokeLinecap: "round",
807
+ strokeLinejoin: "round",
808
+ animate: { d: paths[currentPathIndex] },
809
+ transition: { duration: duration / 1e3, ease: "easeInOut" }
810
+ }
811
+ );
812
+ }
813
+ __name(MorphingPath, "MorphingPath");
814
+ function DrawingPath({
815
+ path,
816
+ duration,
817
+ strokeWidth = 2,
818
+ progress,
819
+ autoAnimate
820
+ }) {
821
+ const pathRef = useRef(null);
822
+ const [pathLength, setPathLength] = useState(0);
823
+ useEffect(() => {
824
+ if (pathRef.current) {
825
+ const length = pathRef.current.getTotalLength();
826
+ setPathLength(length);
827
+ }
828
+ }, [path]);
829
+ const animatedLength = progress !== void 0 ? pathLength * progress : pathLength;
830
+ return /* @__PURE__ */ jsx(
831
+ motion.path,
832
+ {
833
+ ref: pathRef,
834
+ d: path,
835
+ fill: "none",
836
+ stroke: "currentColor",
837
+ strokeWidth,
838
+ strokeLinecap: "round",
839
+ strokeLinejoin: "round",
840
+ initial: { pathLength: 0 },
841
+ animate: autoAnimate ? { pathLength: 1 } : { pathLength: animatedLength / pathLength },
842
+ transition: { duration: duration / 1e3, ease: "easeInOut" },
843
+ style: {
844
+ strokeDasharray: pathLength,
845
+ strokeDashoffset: pathLength - animatedLength
846
+ }
847
+ }
848
+ );
849
+ }
850
+ __name(DrawingPath, "DrawingPath");
851
+ function LoadingSpinner({
852
+ size,
853
+ strokeWidth = 2
854
+ }) {
855
+ return /* @__PURE__ */ jsx(
856
+ motion.div,
857
+ {
858
+ animate: { rotate: 360 },
859
+ transition: { duration: 1, repeat: Infinity, ease: "linear" },
860
+ style: { width: size, height: size },
861
+ children: /* @__PURE__ */ jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
862
+ "circle",
863
+ {
864
+ cx: "12",
865
+ cy: "12",
866
+ r: "10",
867
+ stroke: "currentColor",
868
+ strokeWidth,
869
+ strokeLinecap: "round",
870
+ strokeDasharray: "60 40",
871
+ opacity: "0.3"
872
+ }
873
+ ) })
874
+ }
875
+ );
876
+ }
877
+ __name(LoadingSpinner, "LoadingSpinner");
878
+ function AnimatedIcon({
879
+ icon = "loading",
880
+ paths,
881
+ animation = "spin",
882
+ size = 24,
883
+ color = "currentColor",
884
+ duration = 1e3,
885
+ autoAnimate = true,
886
+ repeat = true,
887
+ className,
888
+ style,
889
+ onAnimationComplete,
890
+ onClick,
891
+ interactive = true,
892
+ hoverAnimation = "scale",
893
+ clickAnimation = "scale",
894
+ customVariants,
895
+ viewBox = "0 0 24 24",
896
+ strokeWidth = 2,
897
+ loading = false,
898
+ progress
899
+ }) {
900
+ const [isHovered, setIsHovered] = useState(false);
901
+ const [isClicked, setIsClicked] = useState(false);
902
+ const prefersReducedMotion = usePrefersReducedMotion2();
903
+ const variants = customVariants || animationVariants[animation] || {};
904
+ const shouldAnimate = autoAnimate && !prefersReducedMotion;
905
+ const getIconPaths = /* @__PURE__ */ __name(() => {
906
+ if (paths) {
907
+ return Array.isArray(paths) ? paths : [paths];
908
+ }
909
+ const builtInPath = iconPaths[icon];
910
+ return Array.isArray(builtInPath) ? builtInPath : [builtInPath];
911
+ }, "getIconPaths");
912
+ const iconPathsArray = getIconPaths();
913
+ const handleClick = /* @__PURE__ */ __name(() => {
914
+ if (!interactive) return;
915
+ setIsClicked(true);
916
+ setTimeout(() => setIsClicked(false), 200);
917
+ onClick?.();
918
+ }, "handleClick");
919
+ const getHoverVariant = /* @__PURE__ */ __name(() => {
920
+ if (!interactive || !isHovered) return {};
921
+ return hoverVariants[hoverAnimation] || {};
922
+ }, "getHoverVariant");
923
+ const getClickVariant = /* @__PURE__ */ __name(() => {
924
+ if (!interactive || !isClicked) return {};
925
+ return clickVariants[clickAnimation] || {};
926
+ }, "getClickVariant");
927
+ if (loading) {
928
+ return /* @__PURE__ */ jsx(LoadingSpinner, { size, strokeWidth });
929
+ }
930
+ const renderIcon = /* @__PURE__ */ __name(() => {
931
+ if (animation === "morph" && iconPathsArray.length > 1) {
932
+ return /* @__PURE__ */ jsx(
933
+ MorphingPath,
934
+ {
935
+ paths: iconPathsArray,
936
+ duration,
937
+ strokeWidth,
938
+ autoAnimate: shouldAnimate,
939
+ repeat,
940
+ onComplete: onAnimationComplete
941
+ }
942
+ );
943
+ }
944
+ if (animation === "draw") {
945
+ return /* @__PURE__ */ jsx(
946
+ DrawingPath,
947
+ {
948
+ path: iconPathsArray[0],
949
+ duration,
950
+ strokeWidth,
951
+ progress,
952
+ autoAnimate: shouldAnimate
953
+ }
954
+ );
955
+ }
956
+ return iconPathsArray.map((path, index) => /* @__PURE__ */ jsx(
957
+ motion.path,
958
+ {
959
+ d: path,
960
+ fill: icon === "heart" ? "currentColor" : "none",
961
+ stroke: icon === "heart" ? "none" : "currentColor",
962
+ strokeWidth,
963
+ strokeLinecap: "round",
964
+ strokeLinejoin: "round"
965
+ },
966
+ index
967
+ ));
968
+ }, "renderIcon");
969
+ return /* @__PURE__ */ jsx(
970
+ motion.div,
971
+ {
972
+ className: cn$1(
973
+ "inline-flex items-center justify-center",
974
+ interactive && "cursor-pointer",
975
+ className
976
+ ),
977
+ style: {
978
+ width: size,
979
+ height: size,
980
+ color,
981
+ ...style
982
+ },
983
+ onClick: handleClick,
984
+ onMouseEnter: () => setIsHovered(true),
985
+ onMouseLeave: () => setIsHovered(false),
986
+ variants,
987
+ animate: shouldAnimate ? "animate" : "initial",
988
+ whileHover: !prefersReducedMotion ? getHoverVariant() : {},
989
+ whileTap: !prefersReducedMotion ? getClickVariant() : {},
990
+ onAnimationComplete,
991
+ children: /* @__PURE__ */ jsx(
992
+ "svg",
993
+ {
994
+ width: "100%",
995
+ height: "100%",
996
+ viewBox,
997
+ fill: "none",
998
+ xmlns: "http://www.w3.org/2000/svg",
999
+ children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: renderIcon() })
1000
+ }
1001
+ )
1002
+ }
1003
+ );
1004
+ }
1005
+ __name(AnimatedIcon, "AnimatedIcon");
1006
+ function usePrefersReducedMotion3() {
1007
+ const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
1008
+ useEffect(() => {
1009
+ if (typeof window === "undefined") return;
1010
+ const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
1011
+ setPrefersReducedMotion(mediaQuery.matches);
1012
+ const handleChange = /* @__PURE__ */ __name((event) => {
1013
+ setPrefersReducedMotion(event.matches);
1014
+ }, "handleChange");
1015
+ mediaQuery.addEventListener("change", handleChange);
1016
+ return () => mediaQuery.removeEventListener("change", handleChange);
1017
+ }, []);
1018
+ return prefersReducedMotion;
1019
+ }
1020
+ __name(usePrefersReducedMotion3, "usePrefersReducedMotion");
1021
+ var slideVariants = {
1022
+ hidden: { opacity: 0, x: -50 },
1023
+ visible: /* @__PURE__ */ __name((i) => ({
1024
+ opacity: 1,
1025
+ x: 0,
1026
+ transition: {
1027
+ delay: i * 0.1,
1028
+ duration: 0.5,
1029
+ ease: "easeOut"
1030
+ }
1031
+ }), "visible"),
1032
+ exit: { opacity: 0, x: 50, transition: { duration: 0.3 } }
1033
+ };
1034
+ var fadeVariants = {
1035
+ hidden: { opacity: 0 },
1036
+ visible: /* @__PURE__ */ __name((i) => ({
1037
+ opacity: 1,
1038
+ transition: {
1039
+ delay: i * 0.1,
1040
+ duration: 0.5,
1041
+ ease: "easeOut"
1042
+ }
1043
+ }), "visible"),
1044
+ exit: { opacity: 0, transition: { duration: 0.3 } }
1045
+ };
1046
+ var scaleVariants = {
1047
+ hidden: { opacity: 0, scale: 0.8 },
1048
+ visible: /* @__PURE__ */ __name((i) => ({
1049
+ opacity: 1,
1050
+ scale: 1,
1051
+ transition: {
1052
+ delay: i * 0.1,
1053
+ duration: 0.5,
1054
+ ease: "easeOut",
1055
+ type: "spring",
1056
+ stiffness: 100
1057
+ }
1058
+ }), "visible"),
1059
+ exit: { opacity: 0, scale: 0.8, transition: { duration: 0.3 } }
1060
+ };
1061
+ var slideUpVariants = {
1062
+ hidden: { opacity: 0, y: 50 },
1063
+ visible: /* @__PURE__ */ __name((i) => ({
1064
+ opacity: 1,
1065
+ y: 0,
1066
+ transition: {
1067
+ delay: i * 0.1,
1068
+ duration: 0.5,
1069
+ ease: "easeOut"
1070
+ }
1071
+ }), "visible"),
1072
+ exit: { opacity: 0, y: -50, transition: { duration: 0.3 } }
1073
+ };
1074
+ var slideDownVariants = {
1075
+ hidden: { opacity: 0, y: -50 },
1076
+ visible: /* @__PURE__ */ __name((i) => ({
1077
+ opacity: 1,
1078
+ y: 0,
1079
+ transition: {
1080
+ delay: i * 0.1,
1081
+ duration: 0.5,
1082
+ ease: "easeOut"
1083
+ }
1084
+ }), "visible"),
1085
+ exit: { opacity: 0, y: 50, transition: { duration: 0.3 } }
1086
+ };
1087
+ var slideLeftVariants = {
1088
+ hidden: { opacity: 0, x: 50 },
1089
+ visible: /* @__PURE__ */ __name((i) => ({
1090
+ opacity: 1,
1091
+ x: 0,
1092
+ transition: {
1093
+ delay: i * 0.1,
1094
+ duration: 0.5,
1095
+ ease: "easeOut"
1096
+ }
1097
+ }), "visible"),
1098
+ exit: { opacity: 0, x: -50, transition: { duration: 0.3 } }
1099
+ };
1100
+ var slideRightVariants = {
1101
+ hidden: { opacity: 0, x: -50 },
1102
+ visible: /* @__PURE__ */ __name((i) => ({
1103
+ opacity: 1,
1104
+ x: 0,
1105
+ transition: {
1106
+ delay: i * 0.1,
1107
+ duration: 0.5,
1108
+ ease: "easeOut"
1109
+ }
1110
+ }), "visible"),
1111
+ exit: { opacity: 0, x: 50, transition: { duration: 0.3 } }
1112
+ };
1113
+ var animationVariants2 = {
1114
+ slide: slideVariants,
1115
+ fade: fadeVariants,
1116
+ scale: scaleVariants,
1117
+ slideUp: slideUpVariants,
1118
+ slideDown: slideDownVariants,
1119
+ slideLeft: slideLeftVariants,
1120
+ slideRight: slideRightVariants
1121
+ };
1122
+ function useVirtualizedList(items, containerHeight, itemHeight, enabled) {
1123
+ const [scrollTop, setScrollTop] = useState(0);
1124
+ const visibleItems = useMemo(() => {
1125
+ if (!enabled) return items;
1126
+ const startIndex = Math.floor(scrollTop / itemHeight);
1127
+ const endIndex = Math.min(
1128
+ startIndex + Math.ceil(containerHeight / itemHeight) + 1,
1129
+ items.length
1130
+ );
1131
+ return items.slice(startIndex, endIndex).map((item, index) => ({
1132
+ ...item,
1133
+ virtualIndex: startIndex + index,
1134
+ style: {
1135
+ position: "absolute",
1136
+ top: (startIndex + index) * itemHeight,
1137
+ height: itemHeight,
1138
+ width: "100%"
1139
+ }
1140
+ }));
1141
+ }, [items, scrollTop, itemHeight, containerHeight, enabled]);
1142
+ const totalHeight = items.length * itemHeight;
1143
+ const handleScroll = useCallback((e) => {
1144
+ setScrollTop(e.currentTarget.scrollTop);
1145
+ }, []);
1146
+ return {
1147
+ visibleItems,
1148
+ totalHeight,
1149
+ handleScroll
1150
+ };
1151
+ }
1152
+ __name(useVirtualizedList, "useVirtualizedList");
1153
+ function AnimatedList({
1154
+ items,
1155
+ animation = "slideUp",
1156
+ staggerDelay = 100,
1157
+ duration = 500,
1158
+ reorderable = false,
1159
+ enableAddRemove = true,
1160
+ layout = "vertical",
1161
+ gridColumns = 3,
1162
+ className,
1163
+ itemClassName,
1164
+ style,
1165
+ onReorder,
1166
+ onItemClick,
1167
+ showHoverEffects = true,
1168
+ customVariants,
1169
+ virtualized = false,
1170
+ itemHeight = 60,
1171
+ containerHeight = 400,
1172
+ autoStart = true,
1173
+ onAnimationComplete
1174
+ }) {
1175
+ const [animatedItems, setAnimatedItems] = useState(items);
1176
+ const [animationKey, setAnimationKey] = useState(0);
1177
+ const prefersReducedMotion = usePrefersReducedMotion3();
1178
+ const variants = customVariants || animationVariants2[animation];
1179
+ const shouldAnimate = !prefersReducedMotion && autoStart;
1180
+ const { visibleItems, totalHeight, handleScroll } = useVirtualizedList(
1181
+ items,
1182
+ containerHeight,
1183
+ itemHeight,
1184
+ virtualized
1185
+ );
1186
+ useEffect(() => {
1187
+ setAnimatedItems(items);
1188
+ }, [items]);
1189
+ const updatedVariants = useMemo(() => {
1190
+ if (!variants.visible || typeof variants.visible !== "function")
1191
+ return variants;
1192
+ return {
1193
+ ...variants,
1194
+ visible: /* @__PURE__ */ __name((i) => {
1195
+ const original = variants.visible;
1196
+ const originalResult = original(i);
1197
+ return {
1198
+ ...originalResult,
1199
+ transition: {
1200
+ ...originalResult.transition,
1201
+ delay: i * (staggerDelay / 1e3),
1202
+ duration: duration / 1e3
1203
+ }
1204
+ };
1205
+ }, "visible")
1206
+ };
1207
+ }, [variants, staggerDelay, duration]);
1208
+ const getLayoutClassName = /* @__PURE__ */ __name(() => {
1209
+ switch (layout) {
1210
+ case "horizontal":
1211
+ return "flex flex-row gap-4 overflow-x-auto";
1212
+ case "grid":
1213
+ return `grid gap-4 grid-cols-${gridColumns}`;
1214
+ default:
1215
+ return "flex flex-col gap-4";
1216
+ }
1217
+ }, "getLayoutClassName");
1218
+ const renderListItem = /* @__PURE__ */ __name((item, index, virtualStyle) => {
1219
+ const itemContent = /* @__PURE__ */ jsx(
1220
+ motion.div,
1221
+ {
1222
+ custom: index,
1223
+ variants: updatedVariants,
1224
+ initial: shouldAnimate ? "hidden" : "visible",
1225
+ animate: "visible",
1226
+ exit: "exit",
1227
+ layout: enableAddRemove,
1228
+ className: cn$1(
1229
+ "cursor-pointer select-none",
1230
+ showHoverEffects && "hover:scale-105 transition-transform",
1231
+ itemClassName
1232
+ ),
1233
+ style: virtualStyle,
1234
+ onClick: () => onItemClick?.(item, index),
1235
+ whileHover: showHoverEffects ? { scale: 1.02 } : void 0,
1236
+ whileTap: showHoverEffects ? { scale: 0.98 } : void 0,
1237
+ onAnimationComplete: () => {
1238
+ if (index === animatedItems.length - 1) {
1239
+ onAnimationComplete?.();
1240
+ }
1241
+ },
1242
+ children: item.content
1243
+ },
1244
+ item.id
1245
+ );
1246
+ return itemContent;
1247
+ }, "renderListItem");
1248
+ if (reorderable && !virtualized) {
1249
+ return /* @__PURE__ */ jsx(
1250
+ Reorder.Group,
1251
+ {
1252
+ axis: layout === "horizontal" ? "x" : "y",
1253
+ values: animatedItems,
1254
+ onReorder: (newItems) => {
1255
+ setAnimatedItems(newItems);
1256
+ onReorder?.(newItems);
1257
+ },
1258
+ className: cn$1(getLayoutClassName(), className),
1259
+ style,
1260
+ children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", children: animatedItems.map((item, index) => /* @__PURE__ */ jsx(
1261
+ Reorder.Item,
1262
+ {
1263
+ value: item,
1264
+ className: cn$1(
1265
+ "cursor-grab active:cursor-grabbing",
1266
+ itemClassName
1267
+ ),
1268
+ whileDrag: { scale: 1.05, zIndex: 10 },
1269
+ children: item.content
1270
+ },
1271
+ item.id
1272
+ )) })
1273
+ }
1274
+ );
1275
+ }
1276
+ if (virtualized) {
1277
+ return /* @__PURE__ */ jsx(
1278
+ "div",
1279
+ {
1280
+ className: cn$1("overflow-auto", className),
1281
+ style: { height: containerHeight, ...style },
1282
+ onScroll: handleScroll,
1283
+ children: /* @__PURE__ */ jsx("div", { style: { height: totalHeight, position: "relative" }, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", children: visibleItems.map(
1284
+ (item, index) => renderListItem(item, item.virtualIndex || index, item.style)
1285
+ ) }) })
1286
+ }
1287
+ );
1288
+ }
1289
+ return /* @__PURE__ */ jsx(
1290
+ motion.div,
1291
+ {
1292
+ className: cn$1(getLayoutClassName(), className),
1293
+ style,
1294
+ initial: "hidden",
1295
+ animate: "visible",
1296
+ children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", children: animatedItems.map((item, index) => renderListItem(item, index)) })
1297
+ },
1298
+ animationKey
1299
+ );
1300
+ }
1301
+ __name(AnimatedList, "AnimatedList");
1302
+ function usePrefersReducedMotion4() {
1303
+ const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
1304
+ useEffect(() => {
1305
+ if (typeof window === "undefined") return;
1306
+ const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
1307
+ setPrefersReducedMotion(mediaQuery.matches);
1308
+ const handleChange = /* @__PURE__ */ __name((event) => {
1309
+ setPrefersReducedMotion(event.matches);
1310
+ }, "handleChange");
1311
+ mediaQuery.addEventListener("change", handleChange);
1312
+ return () => mediaQuery.removeEventListener("change", handleChange);
1313
+ }, []);
1314
+ return prefersReducedMotion;
1315
+ }
1316
+ __name(usePrefersReducedMotion4, "usePrefersReducedMotion");
1317
+ function useAnimatedNumber(targetValue, from, duration, decimals, format, currency, locale, easing, autoStart, useSpringAnim, springConfig, separator) {
1318
+ const [displayValue, setDisplayValue] = useState(from);
1319
+ const [isAnimating, setIsAnimating] = useState(false);
1320
+ const animationRef = useRef(null);
1321
+ const prefersReducedMotion = usePrefersReducedMotion4();
1322
+ const springValue = useSpring(from, {
1323
+ stiffness: springConfig.tension || 100,
1324
+ damping: springConfig.friction || 10,
1325
+ mass: springConfig.mass || 1
1326
+ });
1327
+ const [motionValue, setMotionValue] = useState(from);
1328
+ const startAnimation = useCallback(() => {
1329
+ if (prefersReducedMotion) {
1330
+ setDisplayValue(targetValue);
1331
+ return;
1332
+ }
1333
+ setIsAnimating(true);
1334
+ if (useSpringAnim) {
1335
+ springValue.set(targetValue);
1336
+ } else {
1337
+ const startTime = Date.now();
1338
+ const startValue = displayValue;
1339
+ const distance = targetValue - startValue;
1340
+ const animate = /* @__PURE__ */ __name(() => {
1341
+ const elapsed = Date.now() - startTime;
1342
+ const progress = Math.min(elapsed / duration, 1);
1343
+ const easedProgress = progress;
1344
+ const currentValue = startValue + distance * easedProgress;
1345
+ setDisplayValue(currentValue);
1346
+ setMotionValue(currentValue);
1347
+ if (progress < 1) {
1348
+ animationRef.current = requestAnimationFrame(animate);
1349
+ } else {
1350
+ setIsAnimating(false);
1351
+ animationRef.current = null;
1352
+ }
1353
+ }, "animate");
1354
+ animationRef.current = requestAnimationFrame(animate);
1355
+ }
1356
+ }, [
1357
+ targetValue,
1358
+ displayValue,
1359
+ duration,
1360
+ useSpringAnim,
1361
+ springValue,
1362
+ prefersReducedMotion
1363
+ ]);
1364
+ useEffect(() => {
1365
+ return () => {
1366
+ if (animationRef.current) {
1367
+ cancelAnimationFrame(animationRef.current);
1368
+ }
1369
+ };
1370
+ }, []);
1371
+ useEffect(() => {
1372
+ if (useSpringAnim) {
1373
+ const unsubscribe = springValue.onChange((latest) => {
1374
+ setDisplayValue(latest);
1375
+ if (Math.abs(latest - targetValue) < 0.01) {
1376
+ setIsAnimating(false);
1377
+ }
1378
+ });
1379
+ return () => {
1380
+ unsubscribe();
1381
+ };
1382
+ }
1383
+ }, [springValue, useSpringAnim, targetValue]);
1384
+ useEffect(() => {
1385
+ if (autoStart) {
1386
+ startAnimation();
1387
+ }
1388
+ }, [autoStart, startAnimation]);
1389
+ const formattedValue = useMemo(() => {
1390
+ const roundedValue = Math.round(displayValue * Math.pow(10, decimals)) / Math.pow(10, decimals);
1391
+ try {
1392
+ switch (format) {
1393
+ case "currency":
1394
+ return new Intl.NumberFormat(locale, {
1395
+ style: "currency",
1396
+ currency,
1397
+ minimumFractionDigits: decimals,
1398
+ maximumFractionDigits: decimals
1399
+ }).format(roundedValue);
1400
+ case "percent":
1401
+ return new Intl.NumberFormat(locale, {
1402
+ style: "percent",
1403
+ minimumFractionDigits: decimals,
1404
+ maximumFractionDigits: decimals
1405
+ }).format(roundedValue / 100);
1406
+ default:
1407
+ let formatted = new Intl.NumberFormat(locale, {
1408
+ minimumFractionDigits: decimals,
1409
+ maximumFractionDigits: decimals
1410
+ }).format(roundedValue);
1411
+ if (separator && separator !== ",") {
1412
+ formatted = formatted.replace(/,/g, separator);
1413
+ }
1414
+ return formatted;
1415
+ }
1416
+ } catch (error) {
1417
+ return roundedValue.toFixed(decimals);
1418
+ }
1419
+ }, [displayValue, decimals, format, currency, locale, separator]);
1420
+ return {
1421
+ formattedValue,
1422
+ displayValue,
1423
+ isAnimating,
1424
+ startAnimation
1425
+ };
1426
+ }
1427
+ __name(useAnimatedNumber, "useAnimatedNumber");
1428
+ function AnimatedNumber({
1429
+ value,
1430
+ from = 0,
1431
+ duration = 2e3,
1432
+ decimals = 0,
1433
+ format = "number",
1434
+ currency = "USD",
1435
+ locale = "en-US",
1436
+ easing = "easeOut",
1437
+ autoStart = true,
1438
+ onComplete,
1439
+ className,
1440
+ style,
1441
+ prefix = "",
1442
+ suffix = "",
1443
+ useSpring: useSpring2 = false,
1444
+ springConfig = {},
1445
+ separator,
1446
+ animateOnHover = false,
1447
+ hoverValue
1448
+ }) {
1449
+ const [isHovered, setIsHovered] = useState(false);
1450
+ const [animationKey, setAnimationKey] = useState(0);
1451
+ const currentValue = animateOnHover && isHovered && hoverValue !== void 0 ? hoverValue : value;
1452
+ const { formattedValue, displayValue, isAnimating, startAnimation } = useAnimatedNumber(
1453
+ currentValue,
1454
+ from,
1455
+ duration,
1456
+ decimals,
1457
+ format,
1458
+ currency,
1459
+ locale,
1460
+ easing,
1461
+ autoStart,
1462
+ useSpring2,
1463
+ springConfig,
1464
+ separator
1465
+ );
1466
+ useEffect(() => {
1467
+ if (!isAnimating && onComplete && Math.abs(displayValue - currentValue) < 1e-3) {
1468
+ onComplete(displayValue);
1469
+ }
1470
+ }, [isAnimating, displayValue, currentValue, onComplete]);
1471
+ useEffect(() => {
1472
+ if (animateOnHover && hoverValue !== void 0) {
1473
+ startAnimation();
1474
+ }
1475
+ }, [isHovered, animateOnHover, hoverValue, startAnimation]);
1476
+ const handleMouseEnter = /* @__PURE__ */ __name(() => {
1477
+ if (animateOnHover) {
1478
+ setIsHovered(true);
1479
+ }
1480
+ }, "handleMouseEnter");
1481
+ const handleMouseLeave = /* @__PURE__ */ __name(() => {
1482
+ if (animateOnHover) {
1483
+ setIsHovered(false);
1484
+ }
1485
+ }, "handleMouseLeave");
1486
+ const prefersReducedMotion = usePrefersReducedMotion4();
1487
+ return /* @__PURE__ */ jsxs(
1488
+ motion.span,
1489
+ {
1490
+ className: cn$1("inline-block tabular-nums", className),
1491
+ style,
1492
+ onMouseEnter: handleMouseEnter,
1493
+ onMouseLeave: handleMouseLeave,
1494
+ initial: { scale: 1 },
1495
+ animate: !prefersReducedMotion && isAnimating ? { scale: [1, 1.05, 1] } : { scale: 1 },
1496
+ transition: { duration: 0.3 },
1497
+ children: [
1498
+ prefix,
1499
+ /* @__PURE__ */ jsx(
1500
+ motion.span,
1501
+ {
1502
+ initial: { opacity: 0, y: 20 },
1503
+ animate: { opacity: 1, y: 0 },
1504
+ transition: { duration: 0.3 },
1505
+ children: formattedValue
1506
+ },
1507
+ animationKey
1508
+ ),
1509
+ suffix
1510
+ ]
1511
+ }
1512
+ );
1513
+ }
1514
+ __name(AnimatedNumber, "AnimatedNumber");
1515
+ var AnimatedTestimonials = React9.forwardRef(
1516
+ ({ className, testimonials, autoPlay = true, duration = 5e3, ...props }, ref) => {
1517
+ const [activeIndex, setActiveIndex] = React9.useState(0);
1518
+ React9.useEffect(() => {
1519
+ if (!autoPlay) return;
1520
+ const interval = setInterval(() => {
1521
+ setActiveIndex((prev) => (prev + 1) % testimonials.length);
1522
+ }, duration);
1523
+ return () => clearInterval(interval);
1524
+ }, [autoPlay, duration, testimonials.length]);
1525
+ return /* @__PURE__ */ jsxs(
1526
+ "div",
1527
+ {
1528
+ ref,
1529
+ className: cn("relative min-h-[200px]", className),
1530
+ ...props,
1531
+ children: [
1532
+ /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
1533
+ motion.div,
1534
+ {
1535
+ initial: { opacity: 0, y: 20 },
1536
+ animate: { opacity: 1, y: 0 },
1537
+ exit: { opacity: 0, y: -20 },
1538
+ transition: { duration: 0.5 },
1539
+ children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, { className: "pt-6", children: /* @__PURE__ */ jsxs("blockquote", { className: "space-y-4", children: [
1540
+ /* @__PURE__ */ jsxs("p", { className: "text-lg italic", children: [
1541
+ '"',
1542
+ testimonials[activeIndex].content,
1543
+ '"'
1544
+ ] }),
1545
+ /* @__PURE__ */ jsxs("footer", { className: "flex items-center gap-4", children: [
1546
+ /* @__PURE__ */ jsxs(Avatar, { children: [
1547
+ /* @__PURE__ */ jsx(AvatarImage, { src: testimonials[activeIndex].avatar }),
1548
+ /* @__PURE__ */ jsx(AvatarFallback, { children: testimonials[activeIndex].author.slice(0, 2).toUpperCase() })
1549
+ ] }),
1550
+ /* @__PURE__ */ jsxs("div", { children: [
1551
+ /* @__PURE__ */ jsx("cite", { className: "not-italic font-medium", children: testimonials[activeIndex].author }),
1552
+ testimonials[activeIndex].role && /* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
1553
+ testimonials[activeIndex].role,
1554
+ testimonials[activeIndex].company && `, ${testimonials[activeIndex].company}`
1555
+ ] })
1556
+ ] })
1557
+ ] })
1558
+ ] }) }) })
1559
+ },
1560
+ activeIndex
1561
+ ) }),
1562
+ /* @__PURE__ */ jsx("div", { className: "mt-4 flex justify-center gap-2", children: testimonials.map((_, index) => /* @__PURE__ */ jsx(
1563
+ "button",
1564
+ {
1565
+ onClick: () => setActiveIndex(index),
1566
+ className: cn(
1567
+ "h-2 w-2 rounded-full transition-all",
1568
+ index === activeIndex ? "w-8 bg-primary" : "bg-muted hover:bg-muted-foreground"
1569
+ ),
1570
+ "aria-label": `Go to testimonial ${index + 1}`
1571
+ },
1572
+ index
1573
+ )) })
1574
+ ]
1575
+ }
1576
+ );
1577
+ }
1578
+ );
1579
+ AnimatedTestimonials.displayName = "AnimatedTestimonials";
1580
+ var AnimatedTooltip = React9.forwardRef(
1581
+ ({ className, content, children, delay = 0, ...props }, ref) => {
1582
+ const [isVisible, setIsVisible] = React9.useState(false);
1583
+ return /* @__PURE__ */ jsxs(
1584
+ "div",
1585
+ {
1586
+ ref,
1587
+ className: cn("relative inline-block", className),
1588
+ onMouseEnter: () => setIsVisible(true),
1589
+ onMouseLeave: () => setIsVisible(false),
1590
+ ...props,
1591
+ children: [
1592
+ children,
1593
+ /* @__PURE__ */ jsx(AnimatePresence$1, { children: isVisible && /* @__PURE__ */ jsxs(
1594
+ motion$1.div,
1595
+ {
1596
+ initial: { opacity: 0, y: 10, scale: 0.95 },
1597
+ animate: { opacity: 1, y: 0, scale: 1 },
1598
+ exit: { opacity: 0, y: 10, scale: 0.95 },
1599
+ transition: {
1600
+ duration: 0.2,
1601
+ delay: delay / 1e3,
1602
+ ease: "easeOut"
1603
+ },
1604
+ className: "absolute left-1/2 -translate-x-1/2 bottom-full mb-2 px-3 py-1.5 bg-popover text-popover-foreground text-sm rounded-md shadow-md whitespace-nowrap z-50",
1605
+ children: [
1606
+ content,
1607
+ /* @__PURE__ */ jsx("div", { className: "absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-popover" })
1608
+ ]
1609
+ }
1610
+ ) })
1611
+ ]
1612
+ }
1613
+ );
1614
+ }
1615
+ );
1616
+ AnimatedTooltip.displayName = "AnimatedTooltip";
1617
+ function AppleCardsCarousel({
1618
+ cards,
1619
+ autoPlay = false,
1620
+ autoPlayInterval = 5e3,
1621
+ className,
1622
+ cardClassName,
1623
+ showArrows = true,
1624
+ showDots = true,
1625
+ parallaxOffset = 50,
1626
+ stackOffset = 10,
1627
+ stackScale = 0.95,
1628
+ swipeThreshold = 50
1629
+ }) {
1630
+ const [currentIndex, setCurrentIndex] = React9.useState(0);
1631
+ const [isAutoPlaying, setIsAutoPlaying] = React9.useState(autoPlay);
1632
+ const containerRef = React9.useRef(null);
1633
+ const dragX = useMotionValue(0);
1634
+ const getCardStyle = /* @__PURE__ */ __name((index) => {
1635
+ const offset = index - currentIndex;
1636
+ const absOffset = Math.abs(offset);
1637
+ if (absOffset > 2) {
1638
+ return {
1639
+ display: "none",
1640
+ x: 0,
1641
+ scale: 1,
1642
+ opacity: 0,
1643
+ zIndex: 0
1644
+ };
1645
+ }
1646
+ const baseX = offset * stackOffset;
1647
+ const scale = Math.pow(stackScale, absOffset);
1648
+ const opacity = Math.max(0, 1 - absOffset * 0.3);
1649
+ const zIndex = cards.length - absOffset;
1650
+ return {
1651
+ display: "block",
1652
+ x: baseX,
1653
+ scale,
1654
+ opacity,
1655
+ zIndex
1656
+ };
1657
+ }, "getCardStyle");
1658
+ const goToNext = React9.useCallback(() => {
1659
+ setCurrentIndex((prev) => (prev + 1) % cards.length);
1660
+ }, [cards.length]);
1661
+ const goToPrevious = React9.useCallback(() => {
1662
+ setCurrentIndex((prev) => (prev - 1 + cards.length) % cards.length);
1663
+ }, [cards.length]);
1664
+ const goToCard = React9.useCallback((index) => {
1665
+ setCurrentIndex(index);
1666
+ }, []);
1667
+ const handleDragEnd = React9.useCallback(
1668
+ (event, info) => {
1669
+ const { offset, velocity } = info;
1670
+ if (Math.abs(offset.x) > swipeThreshold || Math.abs(velocity.x) > 500) {
1671
+ if (offset.x > 0) {
1672
+ goToPrevious();
1673
+ } else {
1674
+ goToNext();
1675
+ }
1676
+ }
1677
+ },
1678
+ [goToNext, goToPrevious, swipeThreshold]
1679
+ );
1680
+ React9.useEffect(() => {
1681
+ if (!isAutoPlaying) return;
1682
+ const interval = setInterval(goToNext, autoPlayInterval);
1683
+ return () => clearInterval(interval);
1684
+ }, [isAutoPlaying, goToNext, autoPlayInterval]);
1685
+ const handleMouseEnter = React9.useCallback(() => {
1686
+ if (autoPlay) {
1687
+ setIsAutoPlaying(false);
1688
+ }
1689
+ }, [autoPlay]);
1690
+ const handleMouseLeave = React9.useCallback(() => {
1691
+ if (autoPlay) {
1692
+ setIsAutoPlaying(true);
1693
+ }
1694
+ }, [autoPlay]);
1695
+ React9.useEffect(() => {
1696
+ const handleKeyDown = /* @__PURE__ */ __name((e) => {
1697
+ if (e.key === "ArrowLeft") {
1698
+ goToPrevious();
1699
+ } else if (e.key === "ArrowRight") {
1700
+ goToNext();
1701
+ }
1702
+ }, "handleKeyDown");
1703
+ window.addEventListener("keydown", handleKeyDown);
1704
+ return () => window.removeEventListener("keydown", handleKeyDown);
1705
+ }, [goToNext, goToPrevious]);
1706
+ return /* @__PURE__ */ jsxs(
1707
+ "div",
1708
+ {
1709
+ ref: containerRef,
1710
+ className: cn("relative w-full max-w-6xl mx-auto px-4 py-8", className),
1711
+ onMouseEnter: handleMouseEnter,
1712
+ onMouseLeave: handleMouseLeave,
1713
+ children: [
1714
+ /* @__PURE__ */ jsx("div", { className: "relative h-[400px] md:h-[500px] lg:h-[600px] flex items-center justify-center", children: /* @__PURE__ */ jsx(AnimatePresence$1, { mode: "popLayout", children: cards.map((card, index) => {
1715
+ const style = getCardStyle(index);
1716
+ const isActive = index === currentIndex;
1717
+ return /* @__PURE__ */ jsx(
1718
+ motion$1.div,
1719
+ {
1720
+ className: cn(
1721
+ "absolute inset-0 w-full h-full",
1722
+ !isActive && "pointer-events-none"
1723
+ ),
1724
+ initial: false,
1725
+ animate: {
1726
+ x: style.x,
1727
+ scale: style.scale,
1728
+ opacity: style.opacity,
1729
+ zIndex: style.zIndex
1730
+ },
1731
+ transition: {
1732
+ type: "spring",
1733
+ stiffness: 300,
1734
+ damping: 30
1735
+ },
1736
+ drag: isActive ? "x" : false,
1737
+ dragSnapToOrigin: true,
1738
+ dragElastic: 0.2,
1739
+ onDragEnd: handleDragEnd,
1740
+ whileDrag: { cursor: "grabbing" },
1741
+ style: {
1742
+ x: dragX,
1743
+ display: style.display
1744
+ },
1745
+ children: /* @__PURE__ */ jsxs(
1746
+ Card,
1747
+ {
1748
+ className: cn(
1749
+ "relative w-full h-full overflow-hidden cursor-grab",
1750
+ "bg-gradient-to-br from-white to-gray-50 dark:from-gray-900 dark:to-gray-950",
1751
+ "shadow-2xl hover:shadow-3xl transition-shadow duration-300",
1752
+ cardClassName
1753
+ ),
1754
+ style: {
1755
+ background: card.gradient
1756
+ },
1757
+ children: [
1758
+ card.image && /* @__PURE__ */ jsxs(
1759
+ motion$1.div,
1760
+ {
1761
+ className: "absolute inset-0 w-full h-full",
1762
+ style: {
1763
+ x: useTransform(
1764
+ dragX,
1765
+ [-200, 0, 200],
1766
+ [parallaxOffset, 0, -parallaxOffset]
1767
+ )
1768
+ },
1769
+ children: [
1770
+ /* @__PURE__ */ jsx(
1771
+ "img",
1772
+ {
1773
+ src: card.image,
1774
+ alt: card.title,
1775
+ className: "w-full h-full object-cover"
1776
+ }
1777
+ ),
1778
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent" })
1779
+ ]
1780
+ }
1781
+ ),
1782
+ /* @__PURE__ */ jsx("div", { className: "relative z-10 flex flex-col justify-end h-full p-8 md:p-12", children: card.content ? card.content : /* @__PURE__ */ jsxs(Fragment, { children: [
1783
+ /* @__PURE__ */ jsx(
1784
+ motion$1.h3,
1785
+ {
1786
+ className: "text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-2",
1787
+ initial: { opacity: 0, y: 20 },
1788
+ animate: { opacity: isActive ? 1 : 0.7, y: 0 },
1789
+ transition: { delay: 0.1 },
1790
+ children: card.title
1791
+ }
1792
+ ),
1793
+ card.subtitle && /* @__PURE__ */ jsx(
1794
+ motion$1.p,
1795
+ {
1796
+ className: "text-xl md:text-2xl text-white/80 mb-4",
1797
+ initial: { opacity: 0, y: 20 },
1798
+ animate: { opacity: isActive ? 1 : 0.7, y: 0 },
1799
+ transition: { delay: 0.2 },
1800
+ children: card.subtitle
1801
+ }
1802
+ ),
1803
+ card.description && /* @__PURE__ */ jsx(
1804
+ motion$1.p,
1805
+ {
1806
+ className: "text-base md:text-lg text-white/70 max-w-2xl",
1807
+ initial: { opacity: 0, y: 20 },
1808
+ animate: { opacity: isActive ? 1 : 0.7, y: 0 },
1809
+ transition: { delay: 0.3 },
1810
+ children: card.description
1811
+ }
1812
+ )
1813
+ ] }) })
1814
+ ]
1815
+ }
1816
+ )
1817
+ },
1818
+ card.id
1819
+ );
1820
+ }) }) }),
1821
+ showArrows && /* @__PURE__ */ jsxs(Fragment, { children: [
1822
+ /* @__PURE__ */ jsxs(
1823
+ Button,
1824
+ {
1825
+ variant: "ghost",
1826
+ size: "icon",
1827
+ className: cn(
1828
+ "absolute left-4 top-1/2 -translate-y-1/2 z-20",
1829
+ "bg-white/10 backdrop-blur-md hover:bg-white/20",
1830
+ "text-white border border-white/20",
1831
+ "hidden md:flex"
1832
+ ),
1833
+ onClick: goToPrevious,
1834
+ children: [
1835
+ /* @__PURE__ */ jsx(ChevronLeft, { className: "h-6 w-6" }),
1836
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous card" })
1837
+ ]
1838
+ }
1839
+ ),
1840
+ /* @__PURE__ */ jsxs(
1841
+ Button,
1842
+ {
1843
+ variant: "ghost",
1844
+ size: "icon",
1845
+ className: cn(
1846
+ "absolute right-4 top-1/2 -translate-y-1/2 z-20",
1847
+ "bg-white/10 backdrop-blur-md hover:bg-white/20",
1848
+ "text-white border border-white/20",
1849
+ "hidden md:flex"
1850
+ ),
1851
+ onClick: goToNext,
1852
+ children: [
1853
+ /* @__PURE__ */ jsx(ChevronRight, { className: "h-6 w-6" }),
1854
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next card" })
1855
+ ]
1856
+ }
1857
+ )
1858
+ ] }),
1859
+ showDots && /* @__PURE__ */ jsx("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-2", children: cards.map((_, index) => /* @__PURE__ */ jsx(
1860
+ "button",
1861
+ {
1862
+ className: cn(
1863
+ "w-2 h-2 rounded-full transition-all duration-300",
1864
+ "bg-white/40 hover:bg-white/60",
1865
+ index === currentIndex && "w-8 bg-white"
1866
+ ),
1867
+ onClick: () => goToCard(index),
1868
+ children: /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
1869
+ "Go to card ",
1870
+ index + 1
1871
+ ] })
1872
+ },
1873
+ index
1874
+ )) })
1875
+ ]
1876
+ }
1877
+ );
1878
+ }
1879
+ __name(AppleCardsCarousel, "AppleCardsCarousel");
1880
+ var gradientPresets = {
1881
+ sunset: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
1882
+ ocean: "linear-gradient(135deg, #667eea 0%, #4ca1af 100%)",
1883
+ fire: "linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",
1884
+ forest: "linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",
1885
+ galaxy: "linear-gradient(135deg, #7303c0 0%, #ec38bc 50%, #fdeff9 100%)",
1886
+ aurora: "linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)",
1887
+ peach: "linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)",
1888
+ lavender: "linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"
1889
+ };
1890
+ var AppleHelloEffect = React9.forwardRef(({ className, text = "Hello", duration = 2, ...props }, ref) => {
1891
+ const letters = text.split("");
1892
+ return /* @__PURE__ */ jsx(
1893
+ "div",
1894
+ {
1895
+ ref,
1896
+ className: cn(
1897
+ "relative flex items-center justify-center text-6xl font-bold",
1898
+ className
1899
+ ),
1900
+ ...props,
1901
+ children: letters.map((letter, index) => /* @__PURE__ */ jsx(
1902
+ motion$1.span,
1903
+ {
1904
+ initial: { opacity: 0, y: 50 },
1905
+ animate: { opacity: 1, y: 0 },
1906
+ transition: {
1907
+ duration,
1908
+ delay: index * 0.1,
1909
+ ease: [0.215, 0.61, 0.355, 1]
1910
+ },
1911
+ className: "inline-block",
1912
+ children: letter
1913
+ },
1914
+ index
1915
+ ))
1916
+ }
1917
+ );
1918
+ });
1919
+ AppleHelloEffect.displayName = "AppleHelloEffect";
1920
+
1921
+ export { AnimatedBackground, AnimatedBeam, AnimatedCursor, AnimatedIcon, AnimatedList, AnimatedNumber, AnimatedTestimonials, AnimatedTooltip, AppleCardsCarousel, AppleHelloEffect, gradientPresets };