motion-brew 0.0.0-stage → 0.1.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 (663) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -2
  3. package/dist/account-menu.d.ts +1 -0
  4. package/dist/account-menu.js +16 -0
  5. package/dist/action-menu.d.ts +1 -0
  6. package/dist/action-menu.js +10 -0
  7. package/dist/activity-grid.d.ts +1 -0
  8. package/dist/activity-grid.js +14 -0
  9. package/dist/add-card.d.ts +1 -0
  10. package/dist/add-card.js +11 -0
  11. package/dist/amount-slider.d.ts +1 -0
  12. package/dist/amount-slider.js +10 -0
  13. package/dist/annotation-text.d.ts +1 -0
  14. package/dist/annotation-text.js +8 -0
  15. package/dist/aura-card.d.ts +1 -0
  16. package/dist/aura-card.js +19 -0
  17. package/dist/auth-card.d.ts +1 -0
  18. package/dist/auth-card.js +15 -0
  19. package/dist/avatar-testimonial.d.ts +1 -0
  20. package/dist/avatar-testimonial.js +8 -0
  21. package/dist/backspace-text.d.ts +1 -0
  22. package/dist/backspace-text.js +8 -0
  23. package/dist/bell-toggle.d.ts +1 -0
  24. package/dist/bell-toggle.js +8 -0
  25. package/dist/bill-list.d.ts +1 -0
  26. package/dist/bill-list.js +15 -0
  27. package/dist/binary-text.d.ts +1 -0
  28. package/dist/binary-text.js +8 -0
  29. package/dist/blur-accordion.d.ts +1 -0
  30. package/dist/blur-accordion.js +8 -0
  31. package/dist/blur-text.d.ts +1 -0
  32. package/dist/blur-text.js +8 -0
  33. package/dist/booking-card.d.ts +1 -0
  34. package/dist/booking-card.js +11 -0
  35. package/dist/brand-bridge.d.ts +1 -0
  36. package/dist/brand-bridge.js +12 -0
  37. package/dist/calendar-agenda.d.ts +1 -0
  38. package/dist/calendar-agenda.js +12 -0
  39. package/dist/channel-mix.d.ts +1 -0
  40. package/dist/channel-mix.js +11 -0
  41. package/dist/chunk-25254AZA.js +141 -0
  42. package/dist/chunk-2CIJ5TVW.js +59 -0
  43. package/dist/chunk-2GXY54MP.js +247 -0
  44. package/dist/chunk-2IMPUH4H.js +135 -0
  45. package/dist/chunk-2NRXP4HM.js +371 -0
  46. package/dist/chunk-2QCWELWT.js +120 -0
  47. package/dist/chunk-2TQSHVXA.js +12 -0
  48. package/dist/chunk-327TGRS5.js +75 -0
  49. package/dist/chunk-3B2RYSTL.js +867 -0
  50. package/dist/chunk-3RKCLFY5.js +634 -0
  51. package/dist/chunk-4BVCRIR4.js +51 -0
  52. package/dist/chunk-4CKKTOJK.js +366 -0
  53. package/dist/chunk-4IGMH34C.js +319 -0
  54. package/dist/chunk-4PI6UNIZ.js +464 -0
  55. package/dist/chunk-4RHQKP2P.js +664 -0
  56. package/dist/chunk-5MP5QNFG.js +560 -0
  57. package/dist/chunk-62RBYLIN.js +128 -0
  58. package/dist/chunk-6GAKTS3D.js +329 -0
  59. package/dist/chunk-6GRDT3OE.js +124 -0
  60. package/dist/chunk-6JQY7AX5.js +307 -0
  61. package/dist/chunk-6LOUA6XB.js +237 -0
  62. package/dist/chunk-6V6OTHNE.js +299 -0
  63. package/dist/chunk-6VZIT62Q.js +142 -0
  64. package/dist/chunk-6WSY725U.js +387 -0
  65. package/dist/chunk-6XSJC7M7.js +764 -0
  66. package/dist/chunk-75DEIDBX.js +129 -0
  67. package/dist/chunk-7FQ4XU7E.js +127 -0
  68. package/dist/chunk-7IL5WRJR.js +615 -0
  69. package/dist/chunk-7MPC3RUE.js +1462 -0
  70. package/dist/chunk-7PS2W7PU.js +112 -0
  71. package/dist/chunk-AATJOPNH.js +86 -0
  72. package/dist/chunk-ADXWPWJR.js +209 -0
  73. package/dist/chunk-ANNDITUM.js +47 -0
  74. package/dist/chunk-AQN6BHWC.js +325 -0
  75. package/dist/chunk-AVOS73MR.js +537 -0
  76. package/dist/chunk-B4LNE6YK.js +473 -0
  77. package/dist/chunk-BHUNLG6S.js +142 -0
  78. package/dist/chunk-BN4MA5UY.js +127 -0
  79. package/dist/chunk-BPE43MTT.js +183 -0
  80. package/dist/chunk-BPF3FQRS.js +590 -0
  81. package/dist/chunk-BRTZFUFR.js +503 -0
  82. package/dist/chunk-BS4ZFJKW.js +121 -0
  83. package/dist/chunk-BXAKCY6X.js +86 -0
  84. package/dist/chunk-CEQ56RF6.js +129 -0
  85. package/dist/chunk-CGDKH6BB.js +902 -0
  86. package/dist/chunk-CMTGYFT7.js +395 -0
  87. package/dist/chunk-COKBF5PG.js +3291 -0
  88. package/dist/chunk-DD55JZOI.js +257 -0
  89. package/dist/chunk-DQUXBNSH.js +412 -0
  90. package/dist/chunk-DR4DUSNF.js +265 -0
  91. package/dist/chunk-EDPCK6VU.js +419 -0
  92. package/dist/chunk-EEQ2WHTN.js +142 -0
  93. package/dist/chunk-ERVE5RSN.js +793 -0
  94. package/dist/chunk-FFUBTMDC.js +303 -0
  95. package/dist/chunk-FK4TZ5OW.js +29 -0
  96. package/dist/chunk-FXI6NHNR.js +1033 -0
  97. package/dist/chunk-G3XH7YT2.js +122 -0
  98. package/dist/chunk-G7KDH7ME.js +559 -0
  99. package/dist/chunk-GRUDTDLX.js +534 -0
  100. package/dist/chunk-GUQINNWS.js +770 -0
  101. package/dist/chunk-GV3Q4D2N.js +320 -0
  102. package/dist/chunk-GVWOJJ3T.js +129 -0
  103. package/dist/chunk-GYDTIVOY.js +934 -0
  104. package/dist/chunk-H2JOCJWM.js +125 -0
  105. package/dist/chunk-H7XKIWHA.js +135 -0
  106. package/dist/chunk-HHXK3NAH.js +1382 -0
  107. package/dist/chunk-HK34LPY6.js +112 -0
  108. package/dist/chunk-HLJXNSMM.js +320 -0
  109. package/dist/chunk-HPJJAQ5L.js +406 -0
  110. package/dist/chunk-HYSXVKZB.js +213 -0
  111. package/dist/chunk-I45D4XV4.js +124 -0
  112. package/dist/chunk-I7KTTOOJ.js +113 -0
  113. package/dist/chunk-IDJOKV6S.js +67 -0
  114. package/dist/chunk-IGI6OLRX.js +138 -0
  115. package/dist/chunk-IKM7EEYN.js +117 -0
  116. package/dist/chunk-INV5FI6O.js +394 -0
  117. package/dist/chunk-IUBUAIQZ.js +321 -0
  118. package/dist/chunk-IYZOANPX.js +159 -0
  119. package/dist/chunk-JFTD3YAL.js +163 -0
  120. package/dist/chunk-JGEV462J.js +235 -0
  121. package/dist/chunk-JHT6RCGY.js +127 -0
  122. package/dist/chunk-JJEWOQYQ.js +141 -0
  123. package/dist/chunk-JT2EIO5M.js +129 -0
  124. package/dist/chunk-K3HQEHJ6.js +663 -0
  125. package/dist/chunk-K6ET254T.js +398 -0
  126. package/dist/chunk-KE563QS4.js +425 -0
  127. package/dist/chunk-LBRMNY72.js +159 -0
  128. package/dist/chunk-LNBTWX4J.js +114 -0
  129. package/dist/chunk-LS4FP6SI.js +37 -0
  130. package/dist/chunk-M22UY764.js +135 -0
  131. package/dist/chunk-M4YMNHPI.js +204 -0
  132. package/dist/chunk-MGBS5LRY.js +412 -0
  133. package/dist/chunk-MKJOBHPQ.js +215 -0
  134. package/dist/chunk-MQDOFNKI.js +818 -0
  135. package/dist/chunk-MUDKP3LK.js +120 -0
  136. package/dist/chunk-N4ZNBWKO.js +118 -0
  137. package/dist/chunk-NB5CB65C.js +137 -0
  138. package/dist/chunk-NCEAUODT.js +172 -0
  139. package/dist/chunk-NGX34WJO.js +335 -0
  140. package/dist/chunk-NIQFSLPC.js +114 -0
  141. package/dist/chunk-NJWTPRGJ.js +806 -0
  142. package/dist/chunk-NNKC6NEH.js +128 -0
  143. package/dist/chunk-NY7M42KC.js +112 -0
  144. package/dist/chunk-O7G4ISAC.js +277 -0
  145. package/dist/chunk-O7QYPA6X.js +700 -0
  146. package/dist/chunk-OEDHLZ4T.js +651 -0
  147. package/dist/chunk-OGQQ2FZZ.js +114 -0
  148. package/dist/chunk-OINRQUYT.js +186 -0
  149. package/dist/chunk-OMJBDFEW.js +506 -0
  150. package/dist/chunk-ONUWTWKP.js +345 -0
  151. package/dist/chunk-OS6REIBR.js +154 -0
  152. package/dist/chunk-OUVP5VKH.js +702 -0
  153. package/dist/chunk-OVEBMZHA.js +573 -0
  154. package/dist/chunk-PFEHD3A2.js +409 -0
  155. package/dist/chunk-PJ5EVDNN.js +157 -0
  156. package/dist/chunk-PKM6B4JJ.js +108 -0
  157. package/dist/chunk-PV3OYTMT.js +596 -0
  158. package/dist/chunk-RBSLSNMW.js +444 -0
  159. package/dist/chunk-RE74K7KI.js +370 -0
  160. package/dist/chunk-RP22J4NX.js +247 -0
  161. package/dist/chunk-RU2Q2XVP.js +287 -0
  162. package/dist/chunk-RWUARRFZ.js +267 -0
  163. package/dist/chunk-RZ2UCZ3C.js +212 -0
  164. package/dist/chunk-SBDTC4UY.js +367 -0
  165. package/dist/chunk-SKEE23KW.js +137 -0
  166. package/dist/chunk-SOW7S7ET.js +1103 -0
  167. package/dist/chunk-SQ7F3VBU.js +1069 -0
  168. package/dist/chunk-SSWKGVRI.js +172 -0
  169. package/dist/chunk-T2TSMDP3.js +1022 -0
  170. package/dist/chunk-TAFVHTWV.js +607 -0
  171. package/dist/chunk-TNLY4CSA.js +523 -0
  172. package/dist/chunk-TP3XIHL5.js +787 -0
  173. package/dist/chunk-TQ6KSDDE.js +682 -0
  174. package/dist/chunk-TRWXLGL7.js +885 -0
  175. package/dist/chunk-TTNORJF5.js +908 -0
  176. package/dist/chunk-UD5OQ2T3.js +117 -0
  177. package/dist/chunk-UDFBQWUH.js +333 -0
  178. package/dist/chunk-USRMXCZD.js +625 -0
  179. package/dist/chunk-VAPHE4G4.js +442 -0
  180. package/dist/chunk-VEC5QAOY.js +104 -0
  181. package/dist/chunk-VIR5NV5W.js +118 -0
  182. package/dist/chunk-VT2FNWQF.js +240 -0
  183. package/dist/chunk-VX4XEYQN.js +837 -0
  184. package/dist/chunk-WE7VCUOA.js +130 -0
  185. package/dist/chunk-WFWO2EIW.js +120 -0
  186. package/dist/chunk-WGIT4MMH.js +350 -0
  187. package/dist/chunk-WOR2GMMN.js +114 -0
  188. package/dist/chunk-WTTDB475.js +54 -0
  189. package/dist/chunk-WWWKMU4Y.js +184 -0
  190. package/dist/chunk-XDR4FO6Q.js +124 -0
  191. package/dist/chunk-XH6YNONO.js +112 -0
  192. package/dist/chunk-XL4L2J6N.js +129 -0
  193. package/dist/chunk-Y6MTC46Q.js +684 -0
  194. package/dist/chunk-YFLQ4HPJ.js +119 -0
  195. package/dist/chunk-YGONLKWH.js +180 -0
  196. package/dist/chunk-YLSWBUDC.js +373 -0
  197. package/dist/chunk-YU6B7YRO.js +128 -0
  198. package/dist/chunk-YURGXJSP.js +102 -0
  199. package/dist/chunk-YVYYDPE2.js +124 -0
  200. package/dist/chunk-ZPGAMYOQ.js +1 -0
  201. package/dist/chunk-ZWGOAY27.js +234 -0
  202. package/dist/column-card.d.ts +1 -0
  203. package/dist/column-card.js +8 -0
  204. package/dist/components/account-menu/account-menu.d.ts +56 -0
  205. package/dist/components/account-menu/index.d.ts +1 -0
  206. package/dist/components/action-menu/action-menu.d.ts +45 -0
  207. package/dist/components/action-menu/index.d.ts +1 -0
  208. package/dist/components/activity-grid/activity-grid.d.ts +54 -0
  209. package/dist/components/activity-grid/index.d.ts +1 -0
  210. package/dist/components/add-card/add-card.d.ts +41 -0
  211. package/dist/components/add-card/index.d.ts +1 -0
  212. package/dist/components/amount-slider/amount-slider.d.ts +43 -0
  213. package/dist/components/amount-slider/index.d.ts +1 -0
  214. package/dist/components/annotation-text/annotation-text.d.ts +27 -0
  215. package/dist/components/annotation-text/index.d.ts +1 -0
  216. package/dist/components/aura-card/aura-card.d.ts +63 -0
  217. package/dist/components/aura-card/index.d.ts +1 -0
  218. package/dist/components/auth-card/auth-card.d.ts +51 -0
  219. package/dist/components/auth-card/index.d.ts +1 -0
  220. package/dist/components/avatar-testimonial/avatar-testimonial.d.ts +39 -0
  221. package/dist/components/avatar-testimonial/index.d.ts +1 -0
  222. package/dist/components/backspace-text/backspace-text.d.ts +27 -0
  223. package/dist/components/backspace-text/index.d.ts +1 -0
  224. package/dist/components/bell-toggle/bell-toggle.d.ts +33 -0
  225. package/dist/components/bell-toggle/index.d.ts +1 -0
  226. package/dist/components/bill-list/bill-list.d.ts +49 -0
  227. package/dist/components/bill-list/index.d.ts +1 -0
  228. package/dist/components/binary-text/binary-text.d.ts +24 -0
  229. package/dist/components/binary-text/index.d.ts +1 -0
  230. package/dist/components/blur-accordion/blur-accordion.d.ts +35 -0
  231. package/dist/components/blur-accordion/index.d.ts +1 -0
  232. package/dist/components/blur-text/blur-text.d.ts +33 -0
  233. package/dist/components/blur-text/index.d.ts +1 -0
  234. package/dist/components/booking-card/booking-card.d.ts +56 -0
  235. package/dist/components/booking-card/index.d.ts +1 -0
  236. package/dist/components/brand-bridge/brand-bridge.d.ts +63 -0
  237. package/dist/components/brand-bridge/index.d.ts +1 -0
  238. package/dist/components/calendar-agenda/calendar-agenda.d.ts +64 -0
  239. package/dist/components/calendar-agenda/index.d.ts +1 -0
  240. package/dist/components/channel-mix/channel-mix.d.ts +63 -0
  241. package/dist/components/channel-mix/index.d.ts +1 -0
  242. package/dist/components/column-card/column-card.d.ts +39 -0
  243. package/dist/components/column-card/index.d.ts +1 -0
  244. package/dist/components/contact-card/contact-card.d.ts +44 -0
  245. package/dist/components/contact-card/index.d.ts +1 -0
  246. package/dist/components/context-menu/context-menu.d.ts +59 -0
  247. package/dist/components/context-menu/index.d.ts +1 -0
  248. package/dist/components/contour-feature-card/contour-feature-card.d.ts +36 -0
  249. package/dist/components/contour-feature-card/index.d.ts +1 -0
  250. package/dist/components/contour-lines/contour-lines.d.ts +34 -0
  251. package/dist/components/contour-lines/index.d.ts +1 -0
  252. package/dist/components/decay-card/decay-card.d.ts +44 -0
  253. package/dist/components/decay-card/index.d.ts +1 -0
  254. package/dist/components/deploy-streak/deploy-streak.d.ts +30 -0
  255. package/dist/components/deploy-streak/index.d.ts +1 -0
  256. package/dist/components/depth-carousel/depth-carousel.d.ts +42 -0
  257. package/dist/components/depth-carousel/index.d.ts +1 -0
  258. package/dist/components/device-traffic/device-traffic.d.ts +59 -0
  259. package/dist/components/device-traffic/index.d.ts +1 -0
  260. package/dist/components/download-button/download-button.d.ts +36 -0
  261. package/dist/components/download-button/index.d.ts +1 -0
  262. package/dist/components/event-card/event-card.d.ts +55 -0
  263. package/dist/components/event-card/index.d.ts +1 -0
  264. package/dist/components/file-drop/file-drop.d.ts +46 -0
  265. package/dist/components/file-drop/index.d.ts +1 -0
  266. package/dist/components/flip-words/flip-words.d.ts +26 -0
  267. package/dist/components/flip-words/index.d.ts +1 -0
  268. package/dist/components/flux-card/flux-card.d.ts +56 -0
  269. package/dist/components/flux-card/index.d.ts +1 -0
  270. package/dist/components/fuse-button/fuse-button.d.ts +75 -0
  271. package/dist/components/fuse-button/index.d.ts +1 -0
  272. package/dist/components/globe-card/globe-card.d.ts +46 -0
  273. package/dist/components/globe-card/index.d.ts +1 -0
  274. package/dist/components/goal-gauge/goal-gauge.d.ts +47 -0
  275. package/dist/components/goal-gauge/index.d.ts +1 -0
  276. package/dist/components/gradient-card/gradient-card.d.ts +56 -0
  277. package/dist/components/gradient-card/index.d.ts +1 -0
  278. package/dist/components/gradient-text/gradient-text.d.ts +22 -0
  279. package/dist/components/gradient-text/index.d.ts +1 -0
  280. package/dist/components/gravity-tag-pile/gravity-tag-pile.d.ts +69 -0
  281. package/dist/components/gravity-tag-pile/index.d.ts +1 -0
  282. package/dist/components/growth-stream/growth-stream.d.ts +47 -0
  283. package/dist/components/growth-stream/index.d.ts +1 -0
  284. package/dist/components/highlight-text/highlight-text.d.ts +22 -0
  285. package/dist/components/highlight-text/index.d.ts +1 -0
  286. package/dist/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
  287. package/dist/components/hold-to-confirm/index.d.ts +1 -0
  288. package/dist/components/infinite-gallery/index.d.ts +1 -0
  289. package/dist/components/infinite-gallery/infinite-gallery.d.ts +73 -0
  290. package/dist/components/integration-hub/index.d.ts +1 -0
  291. package/dist/components/integration-hub/integration-hub.d.ts +40 -0
  292. package/dist/components/liquid-card/index.d.ts +1 -0
  293. package/dist/components/liquid-card/liquid-card.d.ts +66 -0
  294. package/dist/components/liquid-metal-card/index.d.ts +1 -0
  295. package/dist/components/liquid-metal-card/liquid-metal-card.d.ts +45 -0
  296. package/dist/components/liquid-tabs/index.d.ts +1 -0
  297. package/dist/components/liquid-tabs/liquid-tabs.d.ts +47 -0
  298. package/dist/components/magnetic-button/index.d.ts +1 -0
  299. package/dist/components/magnetic-button/magnetic-button.d.ts +46 -0
  300. package/dist/components/magnetic-flow/index.d.ts +1 -0
  301. package/dist/components/magnetic-flow/magnetic-flow.d.ts +35 -0
  302. package/dist/components/message-composer/index.d.ts +1 -0
  303. package/dist/components/message-composer/message-composer.d.ts +79 -0
  304. package/dist/components/metal-card-stack/index.d.ts +1 -0
  305. package/dist/components/metal-card-stack/metal-card-stack.d.ts +49 -0
  306. package/dist/components/metric-split/index.d.ts +1 -0
  307. package/dist/components/metric-split/metric-split.d.ts +45 -0
  308. package/dist/components/mix-chart/index.d.ts +1 -0
  309. package/dist/components/mix-chart/mix-chart.d.ts +59 -0
  310. package/dist/components/month-calendar/index.d.ts +1 -0
  311. package/dist/components/month-calendar/month-calendar.d.ts +34 -0
  312. package/dist/components/morph-search/index.d.ts +1 -0
  313. package/dist/components/morph-search/morph-search.d.ts +33 -0
  314. package/dist/components/orbit-card/index.d.ts +1 -0
  315. package/dist/components/orbit-card/orbit-card.d.ts +50 -0
  316. package/dist/components/otp-code/index.d.ts +1 -0
  317. package/dist/components/otp-code/otp-code.d.ts +61 -0
  318. package/dist/components/particle-card/index.d.ts +1 -0
  319. package/dist/components/particle-card/particle-card.d.ts +57 -0
  320. package/dist/components/payment-form/index.d.ts +1 -0
  321. package/dist/components/payment-form/payment-form.d.ts +54 -0
  322. package/dist/components/pill-tabs/index.d.ts +1 -0
  323. package/dist/components/pill-tabs/pill-tabs.d.ts +39 -0
  324. package/dist/components/pixel-blast/index.d.ts +1 -0
  325. package/dist/components/pixel-blast/pixel-blast.d.ts +41 -0
  326. package/dist/components/pixel-feature-card/index.d.ts +1 -0
  327. package/dist/components/pixel-feature-card/pixel-feature-card.d.ts +43 -0
  328. package/dist/components/pixel-scroll/index.d.ts +1 -0
  329. package/dist/components/pixel-scroll/pixel-scroll.d.ts +64 -0
  330. package/dist/components/pricing-card/index.d.ts +1 -0
  331. package/dist/components/pricing-card/pricing-card.d.ts +60 -0
  332. package/dist/components/prism-carousel/index.d.ts +1 -0
  333. package/dist/components/prism-carousel/prism-carousel.d.ts +54 -0
  334. package/dist/components/prism-flow/index.d.ts +1 -0
  335. package/dist/components/prism-flow/prism-flow.d.ts +41 -0
  336. package/dist/components/privacy-banner/index.d.ts +1 -0
  337. package/dist/components/privacy-banner/privacy-banner.d.ts +41 -0
  338. package/dist/components/profile-card/index.d.ts +1 -0
  339. package/dist/components/profile-card/profile-card.d.ts +52 -0
  340. package/dist/components/profile-menu/index.d.ts +1 -0
  341. package/dist/components/profile-menu/profile-menu.d.ts +43 -0
  342. package/dist/components/project-index/index.d.ts +1 -0
  343. package/dist/components/project-index/project-index.d.ts +65 -0
  344. package/dist/components/prompt-input/index.d.ts +1 -0
  345. package/dist/components/prompt-input/prompt-input.d.ts +49 -0
  346. package/dist/components/quota-gauge/index.d.ts +1 -0
  347. package/dist/components/quota-gauge/quota-gauge.d.ts +30 -0
  348. package/dist/components/range-chart/index.d.ts +1 -0
  349. package/dist/components/range-chart/range-chart.d.ts +47 -0
  350. package/dist/components/reaction-card/index.d.ts +1 -0
  351. package/dist/components/reaction-card/reaction-card.d.ts +60 -0
  352. package/dist/components/recap-card/index.d.ts +1 -0
  353. package/dist/components/recap-card/recap-card.d.ts +61 -0
  354. package/dist/components/receipt-button/index.d.ts +1 -0
  355. package/dist/components/receipt-button/receipt-button.d.ts +53 -0
  356. package/dist/components/ribbon-gallery/index.d.ts +1 -0
  357. package/dist/components/ribbon-gallery/ribbon-gallery.d.ts +61 -0
  358. package/dist/components/roadmap-card/index.d.ts +1 -0
  359. package/dist/components/roadmap-card/roadmap-card.d.ts +38 -0
  360. package/dist/components/rolling-card-stack/index.d.ts +1 -0
  361. package/dist/components/rolling-card-stack/rolling-card-stack.d.ts +53 -0
  362. package/dist/components/rolling-stepper/index.d.ts +1 -0
  363. package/dist/components/rolling-stepper/rolling-stepper.d.ts +33 -0
  364. package/dist/components/rotating-text/index.d.ts +1 -0
  365. package/dist/components/rotating-text/rotating-text.d.ts +25 -0
  366. package/dist/components/score-card/index.d.ts +1 -0
  367. package/dist/components/score-card/score-card.d.ts +40 -0
  368. package/dist/components/search-modal/index.d.ts +1 -0
  369. package/dist/components/search-modal/search-modal.d.ts +62 -0
  370. package/dist/components/shimmer-text/index.d.ts +1 -0
  371. package/dist/components/shimmer-text/shimmer-text.d.ts +22 -0
  372. package/dist/components/sidebar-nav/index.d.ts +1 -0
  373. package/dist/components/sidebar-nav/sidebar-nav.d.ts +71 -0
  374. package/dist/components/slide-commit/index.d.ts +1 -0
  375. package/dist/components/slide-commit/slide-commit.d.ts +39 -0
  376. package/dist/components/spatial-gallery/index.d.ts +1 -0
  377. package/dist/components/spatial-gallery/spatial-gallery.d.ts +88 -0
  378. package/dist/components/spending-meter/index.d.ts +1 -0
  379. package/dist/components/spending-meter/spending-meter.d.ts +41 -0
  380. package/dist/components/tab-bar/index.d.ts +1 -0
  381. package/dist/components/tab-bar/tab-bar.d.ts +44 -0
  382. package/dist/components/team-member-card/index.d.ts +1 -0
  383. package/dist/components/team-member-card/team-member-card.d.ts +66 -0
  384. package/dist/components/team-morph/index.d.ts +1 -0
  385. package/dist/components/team-morph/team-morph.d.ts +38 -0
  386. package/dist/components/tilt-card/index.d.ts +1 -0
  387. package/dist/components/tilt-card/tilt-card.d.ts +27 -0
  388. package/dist/components/tilt-carousel/index.d.ts +1 -0
  389. package/dist/components/tilt-carousel/tilt-carousel.d.ts +43 -0
  390. package/dist/components/toast-stack/index.d.ts +1 -0
  391. package/dist/components/toast-stack/toast-stack.d.ts +57 -0
  392. package/dist/components/usage-ring/index.d.ts +1 -0
  393. package/dist/components/usage-ring/usage-ring.d.ts +40 -0
  394. package/dist/components/verify-flow/index.d.ts +1 -0
  395. package/dist/components/verify-flow/verify-flow.d.ts +49 -0
  396. package/dist/components/voice-prompt/index.d.ts +1 -0
  397. package/dist/components/voice-prompt/voice-prompt.d.ts +55 -0
  398. package/dist/components/wallet-card/index.d.ts +1 -0
  399. package/dist/components/wallet-card/wallet-card.d.ts +54 -0
  400. package/dist/components/wave-text/index.d.ts +1 -0
  401. package/dist/components/wave-text/wave-text.d.ts +27 -0
  402. package/dist/contact-card.d.ts +1 -0
  403. package/dist/contact-card.js +12 -0
  404. package/dist/context-menu.d.ts +1 -0
  405. package/dist/context-menu.js +17 -0
  406. package/dist/contour-feature-card.d.ts +1 -0
  407. package/dist/contour-feature-card.js +9 -0
  408. package/dist/contour-lines.d.ts +1 -0
  409. package/dist/contour-lines.js +8 -0
  410. package/dist/decay-card.d.ts +1 -0
  411. package/dist/decay-card.js +8 -0
  412. package/dist/deploy-streak.d.ts +1 -0
  413. package/dist/deploy-streak.js +9 -0
  414. package/dist/depth-carousel.d.ts +1 -0
  415. package/dist/depth-carousel.js +8 -0
  416. package/dist/device-traffic.d.ts +1 -0
  417. package/dist/device-traffic.js +12 -0
  418. package/dist/download-button.d.ts +1 -0
  419. package/dist/download-button.js +8 -0
  420. package/dist/event-card.d.ts +1 -0
  421. package/dist/event-card.js +12 -0
  422. package/dist/file-drop.d.ts +1 -0
  423. package/dist/file-drop.js +12 -0
  424. package/dist/flip-words.d.ts +1 -0
  425. package/dist/flip-words.js +8 -0
  426. package/dist/flux-card.d.ts +1 -0
  427. package/dist/flux-card.js +13 -0
  428. package/dist/fuse-button.d.ts +1 -0
  429. package/dist/fuse-button.js +9 -0
  430. package/dist/globe-card.d.ts +1 -0
  431. package/dist/globe-card.js +8 -0
  432. package/dist/goal-gauge.d.ts +1 -0
  433. package/dist/goal-gauge.js +9 -0
  434. package/dist/gradient-card.d.ts +1 -0
  435. package/dist/gradient-card.js +8 -0
  436. package/dist/gradient-text.d.ts +1 -0
  437. package/dist/gradient-text.js +8 -0
  438. package/dist/gravity-tag-pile.d.ts +1 -0
  439. package/dist/gravity-tag-pile.js +9 -0
  440. package/dist/growth-stream.d.ts +1 -0
  441. package/dist/growth-stream.js +10 -0
  442. package/dist/highlight-text.d.ts +1 -0
  443. package/dist/highlight-text.js +8 -0
  444. package/dist/hold-to-confirm.d.ts +1 -0
  445. package/dist/hold-to-confirm.js +8 -0
  446. package/dist/icons/activity.d.ts +15 -0
  447. package/dist/icons/archive.d.ts +15 -0
  448. package/dist/icons/arrow-down-right.d.ts +15 -0
  449. package/dist/icons/arrow-down.d.ts +15 -0
  450. package/dist/icons/arrow-right.d.ts +15 -0
  451. package/dist/icons/arrow-up-right.d.ts +15 -0
  452. package/dist/icons/arrow-up.d.ts +15 -0
  453. package/dist/icons/at-sign.d.ts +15 -0
  454. package/dist/icons/attach-file.d.ts +15 -0
  455. package/dist/icons/badge-alert.d.ts +15 -0
  456. package/dist/icons/bell.d.ts +15 -0
  457. package/dist/icons/bold.d.ts +15 -0
  458. package/dist/icons/bookmark.d.ts +15 -0
  459. package/dist/icons/bot.d.ts +15 -0
  460. package/dist/icons/calendar-check-2.d.ts +15 -0
  461. package/dist/icons/calendar-check.d.ts +15 -0
  462. package/dist/icons/calendar-days.d.ts +15 -0
  463. package/dist/icons/chart-line.d.ts +15 -0
  464. package/dist/icons/chart-pie.d.ts +15 -0
  465. package/dist/icons/check.d.ts +15 -0
  466. package/dist/icons/chevron-down.d.ts +15 -0
  467. package/dist/icons/chevron-left.d.ts +15 -0
  468. package/dist/icons/chevron-right.d.ts +15 -0
  469. package/dist/icons/circle-check.d.ts +15 -0
  470. package/dist/icons/circle-dollar-sign.d.ts +15 -0
  471. package/dist/icons/clipboard-check.d.ts +15 -0
  472. package/dist/icons/clock.d.ts +15 -0
  473. package/dist/icons/cloud-upload.d.ts +15 -0
  474. package/dist/icons/compass.d.ts +15 -0
  475. package/dist/icons/contrast.d.ts +15 -0
  476. package/dist/icons/copy.d.ts +15 -0
  477. package/dist/icons/credit-card.d.ts +15 -0
  478. package/dist/icons/delete.d.ts +15 -0
  479. package/dist/icons/download.d.ts +15 -0
  480. package/dist/icons/dribbble.d.ts +15 -0
  481. package/dist/icons/earth.d.ts +15 -0
  482. package/dist/icons/eye-off.d.ts +15 -0
  483. package/dist/icons/eye.d.ts +15 -0
  484. package/dist/icons/feather.d.ts +15 -0
  485. package/dist/icons/figma.d.ts +15 -0
  486. package/dist/icons/file-text.d.ts +16 -0
  487. package/dist/icons/flame.d.ts +15 -0
  488. package/dist/icons/folder-input.d.ts +15 -0
  489. package/dist/icons/folder-open.d.ts +15 -0
  490. package/dist/icons/folders.d.ts +15 -0
  491. package/dist/icons/github.d.ts +15 -0
  492. package/dist/icons/hand-coins.d.ts +15 -0
  493. package/dist/icons/heart.d.ts +15 -0
  494. package/dist/icons/history.d.ts +15 -0
  495. package/dist/icons/home.d.ts +15 -0
  496. package/dist/icons/hourglass.d.ts +15 -0
  497. package/dist/icons/instagram.d.ts +15 -0
  498. package/dist/icons/italic.d.ts +15 -0
  499. package/dist/icons/layout-grid.d.ts +15 -0
  500. package/dist/icons/link.d.ts +15 -0
  501. package/dist/icons/linkedin.d.ts +15 -0
  502. package/dist/icons/loader-circle.d.ts +15 -0
  503. package/dist/icons/lock-keyhole-open.d.ts +15 -0
  504. package/dist/icons/lock-keyhole.d.ts +15 -0
  505. package/dist/icons/lock.d.ts +15 -0
  506. package/dist/icons/logout.d.ts +15 -0
  507. package/dist/icons/mail-check.d.ts +15 -0
  508. package/dist/icons/map-pin.d.ts +15 -0
  509. package/dist/icons/message-circle.d.ts +15 -0
  510. package/dist/icons/mic.d.ts +15 -0
  511. package/dist/icons/monitor-check.d.ts +15 -0
  512. package/dist/icons/moon.d.ts +15 -0
  513. package/dist/icons/palette.d.ts +15 -0
  514. package/dist/icons/panel-left-close.d.ts +15 -0
  515. package/dist/icons/panel-left-open.d.ts +15 -0
  516. package/dist/icons/plug-zap.d.ts +15 -0
  517. package/dist/icons/plus.d.ts +15 -0
  518. package/dist/icons/radio.d.ts +15 -0
  519. package/dist/icons/receipt.d.ts +15 -0
  520. package/dist/icons/refresh-cw.d.ts +15 -0
  521. package/dist/icons/rotate-ccw.d.ts +15 -0
  522. package/dist/icons/search.d.ts +15 -0
  523. package/dist/icons/send.d.ts +15 -0
  524. package/dist/icons/settings.d.ts +15 -0
  525. package/dist/icons/shield-check.d.ts +15 -0
  526. package/dist/icons/smartphone-nfc.d.ts +15 -0
  527. package/dist/icons/smile.d.ts +15 -0
  528. package/dist/icons/sparkles.d.ts +15 -0
  529. package/dist/icons/square-pen.d.ts +15 -0
  530. package/dist/icons/sun.d.ts +15 -0
  531. package/dist/icons/terminal.d.ts +15 -0
  532. package/dist/icons/timer.d.ts +15 -0
  533. package/dist/icons/trending-up.d.ts +15 -0
  534. package/dist/icons/twitter.d.ts +15 -0
  535. package/dist/icons/underline.d.ts +15 -0
  536. package/dist/icons/undo.d.ts +15 -0
  537. package/dist/icons/user-check.d.ts +15 -0
  538. package/dist/icons/user-plus.d.ts +15 -0
  539. package/dist/icons/user-round-plus.d.ts +15 -0
  540. package/dist/icons/user.d.ts +15 -0
  541. package/dist/icons/users.d.ts +15 -0
  542. package/dist/icons/wifi.d.ts +15 -0
  543. package/dist/icons/workflow.d.ts +15 -0
  544. package/dist/icons/x.d.ts +15 -0
  545. package/dist/icons/zap.d.ts +15 -0
  546. package/dist/index.d.ts +100 -0
  547. package/dist/index.js +472 -0
  548. package/dist/infinite-gallery.d.ts +1 -0
  549. package/dist/infinite-gallery.js +9 -0
  550. package/dist/integration-hub.d.ts +1 -0
  551. package/dist/integration-hub.js +8 -0
  552. package/dist/lib/cn.d.ts +3 -0
  553. package/dist/liquid-card.d.ts +1 -0
  554. package/dist/liquid-card.js +10 -0
  555. package/dist/liquid-metal-card.d.ts +1 -0
  556. package/dist/liquid-metal-card.js +8 -0
  557. package/dist/liquid-tabs.d.ts +1 -0
  558. package/dist/liquid-tabs.js +14 -0
  559. package/dist/magnetic-button.d.ts +1 -0
  560. package/dist/magnetic-button.js +8 -0
  561. package/dist/magnetic-flow.d.ts +1 -0
  562. package/dist/magnetic-flow.js +8 -0
  563. package/dist/message-composer.d.ts +1 -0
  564. package/dist/message-composer.js +20 -0
  565. package/dist/metal-card-stack.d.ts +1 -0
  566. package/dist/metal-card-stack.js +8 -0
  567. package/dist/metric-split.d.ts +1 -0
  568. package/dist/metric-split.js +9 -0
  569. package/dist/mix-chart.d.ts +1 -0
  570. package/dist/mix-chart.js +9 -0
  571. package/dist/month-calendar.d.ts +1 -0
  572. package/dist/month-calendar.js +10 -0
  573. package/dist/morph-search.d.ts +1 -0
  574. package/dist/morph-search.js +10 -0
  575. package/dist/orbit-card.d.ts +1 -0
  576. package/dist/orbit-card.js +8 -0
  577. package/dist/otp-code.d.ts +1 -0
  578. package/dist/otp-code.js +17 -0
  579. package/dist/particle-card.d.ts +1 -0
  580. package/dist/particle-card.js +8 -0
  581. package/dist/payment-form.d.ts +1 -0
  582. package/dist/payment-form.js +8 -0
  583. package/dist/pill-tabs.d.ts +1 -0
  584. package/dist/pill-tabs.js +9 -0
  585. package/dist/pixel-blast.d.ts +1 -0
  586. package/dist/pixel-blast.js +8 -0
  587. package/dist/pixel-feature-card.d.ts +1 -0
  588. package/dist/pixel-feature-card.js +9 -0
  589. package/dist/pixel-scroll.d.ts +1 -0
  590. package/dist/pixel-scroll.js +8 -0
  591. package/dist/pricing-card.d.ts +1 -0
  592. package/dist/pricing-card.js +14 -0
  593. package/dist/prism-carousel.d.ts +1 -0
  594. package/dist/prism-carousel.js +8 -0
  595. package/dist/prism-flow.d.ts +1 -0
  596. package/dist/prism-flow.js +8 -0
  597. package/dist/privacy-banner.d.ts +1 -0
  598. package/dist/privacy-banner.js +8 -0
  599. package/dist/profile-card.d.ts +1 -0
  600. package/dist/profile-card.js +13 -0
  601. package/dist/profile-menu.d.ts +1 -0
  602. package/dist/profile-menu.js +21 -0
  603. package/dist/project-index.d.ts +1 -0
  604. package/dist/project-index.js +9 -0
  605. package/dist/prompt-input.d.ts +1 -0
  606. package/dist/prompt-input.js +14 -0
  607. package/dist/quota-gauge.d.ts +1 -0
  608. package/dist/quota-gauge.js +9 -0
  609. package/dist/range-chart.d.ts +1 -0
  610. package/dist/range-chart.js +8 -0
  611. package/dist/reaction-card.d.ts +1 -0
  612. package/dist/reaction-card.js +8 -0
  613. package/dist/recap-card.d.ts +1 -0
  614. package/dist/recap-card.js +15 -0
  615. package/dist/receipt-button.d.ts +1 -0
  616. package/dist/receipt-button.js +8 -0
  617. package/dist/ribbon-gallery.d.ts +1 -0
  618. package/dist/ribbon-gallery.js +8 -0
  619. package/dist/roadmap-card.d.ts +1 -0
  620. package/dist/roadmap-card.js +11 -0
  621. package/dist/rolling-card-stack.d.ts +1 -0
  622. package/dist/rolling-card-stack.js +8 -0
  623. package/dist/rolling-stepper.d.ts +1 -0
  624. package/dist/rolling-stepper.js +8 -0
  625. package/dist/rotating-text.d.ts +1 -0
  626. package/dist/rotating-text.js +9 -0
  627. package/dist/score-card.d.ts +1 -0
  628. package/dist/score-card.js +10 -0
  629. package/dist/search-modal.d.ts +1 -0
  630. package/dist/search-modal.js +16 -0
  631. package/dist/shimmer-text.d.ts +1 -0
  632. package/dist/shimmer-text.js +8 -0
  633. package/dist/sidebar-nav.d.ts +1 -0
  634. package/dist/sidebar-nav.js +19 -0
  635. package/dist/slide-commit.d.ts +1 -0
  636. package/dist/slide-commit.js +9 -0
  637. package/dist/spatial-gallery.d.ts +1 -0
  638. package/dist/spatial-gallery.js +8 -0
  639. package/dist/spending-meter.d.ts +1 -0
  640. package/dist/spending-meter.js +9 -0
  641. package/dist/tab-bar.d.ts +1 -0
  642. package/dist/tab-bar.js +18 -0
  643. package/dist/team-member-card.d.ts +1 -0
  644. package/dist/team-member-card.js +14 -0
  645. package/dist/team-morph.d.ts +1 -0
  646. package/dist/team-morph.js +11 -0
  647. package/dist/tilt-card.d.ts +1 -0
  648. package/dist/tilt-card.js +8 -0
  649. package/dist/tilt-carousel.d.ts +1 -0
  650. package/dist/tilt-carousel.js +8 -0
  651. package/dist/toast-stack.d.ts +1 -0
  652. package/dist/toast-stack.js +13 -0
  653. package/dist/usage-ring.d.ts +1 -0
  654. package/dist/usage-ring.js +9 -0
  655. package/dist/verify-flow.d.ts +1 -0
  656. package/dist/verify-flow.js +10 -0
  657. package/dist/voice-prompt.d.ts +1 -0
  658. package/dist/voice-prompt.js +14 -0
  659. package/dist/wallet-card.d.ts +1 -0
  660. package/dist/wallet-card.js +15 -0
  661. package/dist/wave-text.d.ts +1 -0
  662. package/dist/wave-text.js +8 -0
  663. package/package.json +111 -4
@@ -0,0 +1,615 @@
1
+ "use client";
2
+ import {
3
+ cn
4
+ } from "./chunk-2TQSHVXA.js";
5
+
6
+ // src/components/prism-carousel/prism-carousel.tsx
7
+ import * as React from "react";
8
+ import {
9
+ animate,
10
+ motion,
11
+ useAnimationFrame,
12
+ useMotionValue,
13
+ useMotionValueEvent,
14
+ useReducedMotion,
15
+ useTransform
16
+ } from "motion/react";
17
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
+ var CARD_W = 216;
19
+ var CARD_H = 304;
20
+ var GAP = 28;
21
+ var STEP = CARD_W + GAP;
22
+ var FLIP_PX = 150;
23
+ var GLASS_PX = 230;
24
+ var SPRING = {
25
+ type: "spring",
26
+ stiffness: 260,
27
+ damping: 32,
28
+ mass: 0.9
29
+ };
30
+ var DEFAULT_CARDS = [
31
+ {
32
+ label: "Uptime",
33
+ value: 99.98,
34
+ decimals: 2,
35
+ suffix: "%",
36
+ caption: "No incidents in the last 30 days.",
37
+ hues: ["#5ee7c4", "#3b82f6"]
38
+ },
39
+ {
40
+ label: "Health score",
41
+ value: 853,
42
+ caption: "Up 41 points since you turned on alerts.",
43
+ hues: ["#c084fc", "#fb7185"]
44
+ },
45
+ {
46
+ label: "Conversion",
47
+ value: 6.4,
48
+ decimals: 1,
49
+ suffix: "%",
50
+ caption: "Checkout changes are paying off.",
51
+ hues: ["#a3e635", "#14b8a6"]
52
+ },
53
+ {
54
+ label: "Latency",
55
+ value: 38,
56
+ suffix: " ms",
57
+ caption: "p95 across all regions this week.",
58
+ hues: ["#60a5fa", "#818cf8"]
59
+ },
60
+ {
61
+ label: "New signups",
62
+ value: 1204,
63
+ caption: "Best week since launch, mostly organic.",
64
+ hues: ["#fbbf24", "#f472b6"]
65
+ },
66
+ {
67
+ label: "NPS",
68
+ value: 72,
69
+ caption: "Teams love the new dashboard.",
70
+ hues: ["#f472b6", "#8b5cf6"]
71
+ }
72
+ ];
73
+ var wrap = (k, n) => (k % n + n) % n;
74
+ var format = (n, decimals = 0) => n.toLocaleString("en-US", {
75
+ minimumFractionDigits: decimals,
76
+ maximumFractionDigits: decimals
77
+ });
78
+ function Card({
79
+ card,
80
+ i,
81
+ slot,
82
+ boost,
83
+ flip,
84
+ x,
85
+ half,
86
+ active,
87
+ still,
88
+ onPick
89
+ }) {
90
+ const n = useTransform(
91
+ x,
92
+ (v) => (slot * STEP + CARD_W / 2 + v - half) / Math.max(1, half)
93
+ );
94
+ const depth = useTransform(n, (v) => {
95
+ const fromEdge = half * (1 - Math.abs(v));
96
+ const t = Math.max(0, Math.min(1, (GLASS_PX - fromEdge) / (GLASS_PX - 40)));
97
+ return still ? 0 : t * t * (3 - 2 * t);
98
+ });
99
+ const spin = useMotionValue(0);
100
+ const spinning = React.useRef(false);
101
+ const lastN = React.useRef(null);
102
+ useMotionValueEvent(n, "change", (v) => {
103
+ const was = lastN.current;
104
+ lastN.current = v;
105
+ if (!flip || still || spinning.current || was === null) return;
106
+ const at = Math.max(0.2, 1 - FLIP_PX / Math.max(1, half));
107
+ const crossed = (line) => (was - line) * (v - line) < 0;
108
+ if (crossed(at) || crossed(-at)) {
109
+ spinning.current = true;
110
+ const dir = v < was ? 1 : -1;
111
+ void animate(spin, spin.get() + 180 * dir, {
112
+ duration: 0.9,
113
+ ease: [0.65, 0, 0.35, 1]
114
+ }).then(() => {
115
+ spinning.current = false;
116
+ });
117
+ }
118
+ });
119
+ const rotateY = useTransform(
120
+ [n, depth, spin],
121
+ ([v, d, t]) => -Math.sign(v) * d * 38 + t
122
+ );
123
+ const origin = useTransform(n, (v) => v >= 0 ? "0% 50%" : "100% 50%");
124
+ const back = useTransform(
125
+ rotateY,
126
+ (r) => Math.cos(r * Math.PI / 180) < 0 ? 1 : 0
127
+ );
128
+ const lift = useTransform(
129
+ spin,
130
+ (t) => 1 + 0.08 * Math.abs(Math.sin(Math.PI * t / 180))
131
+ );
132
+ const scaleY = useTransform(depth, (d) => 1 + 0.16 * d);
133
+ const pull = useTransform(
134
+ [n, depth],
135
+ ([v, d]) => Math.sign(v) * d * 14
136
+ );
137
+ const scale = lift;
138
+ const scaleX = useTransform(depth, (d) => 1 + 0.04 * d);
139
+ const filter = useTransform(
140
+ depth,
141
+ (d) => still || d <= 0 ? "none" : `saturate(${(1 + d * boost).toFixed(2)}) brightness(${(1 + d * 0.06).toFixed(3)}) blur(${(d * 2.5).toFixed(2)}px)`
142
+ );
143
+ const a = depth;
144
+ const face = useTransform(a, (d) => 1 - d * 0.45);
145
+ const value = card.value ?? 0;
146
+ const count = useMotionValue(value);
147
+ const shown = useTransform(count, (v) => format(v, card.decimals));
148
+ React.useEffect(() => {
149
+ if (!active || card.image) return;
150
+ if (still) {
151
+ count.set(value);
152
+ return;
153
+ }
154
+ count.set(value * 0.6);
155
+ const c = animate(count, value, {
156
+ duration: 1.1,
157
+ ease: [0.16, 1, 0.3, 1]
158
+ });
159
+ return () => c.stop();
160
+ }, [active, value, card.image, count, still]);
161
+ return /* @__PURE__ */ jsxs(
162
+ motion.button,
163
+ {
164
+ type: "button",
165
+ "aria-label": card.image ? card.label : `${card.label}: ${format(value, card.decimals)}${card.suffix ?? ""}`,
166
+ "aria-current": active || void 0,
167
+ tabIndex: -1,
168
+ onClick: onPick,
169
+ style: {
170
+ width: CARD_W,
171
+ height: CARD_H,
172
+ rotateY,
173
+ x: pull,
174
+ scale,
175
+ scaleX,
176
+ scaleY,
177
+ filter,
178
+ transformPerspective: 760,
179
+ transformOrigin: origin
180
+ },
181
+ className: "relative shrink-0 cursor-pointer overflow-hidden rounded-[18px] bg-white text-left text-[#242423] outline-none shadow-[0_1px_2px_rgba(0,0,0,0.04),0_18px_40px_-20px_rgba(0,0,0,0.28)]",
182
+ children: [
183
+ card.image ? /* @__PURE__ */ jsxs(Fragment, { children: [
184
+ /* @__PURE__ */ jsx(
185
+ "img",
186
+ {
187
+ src: card.image,
188
+ alt: card.label,
189
+ draggable: false,
190
+ className: "absolute inset-0 size-full object-cover"
191
+ }
192
+ ),
193
+ /* @__PURE__ */ jsx(
194
+ "span",
195
+ {
196
+ "aria-hidden": true,
197
+ className: "pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-white/25"
198
+ }
199
+ ),
200
+ /* @__PURE__ */ jsxs(
201
+ motion.div,
202
+ {
203
+ style: { opacity: face },
204
+ className: "absolute inset-x-2.5 bottom-2.5 rounded-xl bg-white/70 px-3 py-2 shadow-[0_4px_16px_-8px_rgba(0,0,0,0.3)] ring-1 ring-white/60 backdrop-blur-md",
205
+ children: [
206
+ /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-semibold tracking-tight", children: card.label }),
207
+ card.caption && /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-zinc-600", children: card.caption })
208
+ ]
209
+ }
210
+ )
211
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
212
+ /* @__PURE__ */ jsx(
213
+ motion.div,
214
+ {
215
+ "aria-hidden": true,
216
+ className: "absolute left-1/2 top-[44%] size-40 -translate-x-1/2 -translate-y-1/2 rounded-full blur-[22px]",
217
+ style: {
218
+ background: `radial-gradient(circle at 35% 35%, ${card.hues?.[0] ?? "#c084fc"}, ${card.hues?.[1] ?? "#60a5fa"} 70%)`
219
+ },
220
+ animate: still ? void 0 : { scale: [1, 1.12, 1], rotate: [0, 40, 0] },
221
+ transition: {
222
+ duration: 6 + i,
223
+ repeat: Infinity,
224
+ ease: "easeInOut"
225
+ }
226
+ }
227
+ ),
228
+ /* @__PURE__ */ jsx(
229
+ "div",
230
+ {
231
+ "aria-hidden": true,
232
+ className: "absolute left-1/2 top-[44%] size-32 -translate-x-1/2 -translate-y-1/2 rounded-full border border-white/70",
233
+ style: {
234
+ transform: "translate(-50%, -50%) rotateX(62deg) rotateZ(-18deg)"
235
+ }
236
+ }
237
+ ),
238
+ /* @__PURE__ */ jsxs(
239
+ motion.div,
240
+ {
241
+ style: { opacity: face },
242
+ className: "relative flex h-full flex-col p-4",
243
+ children: [
244
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
245
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold tracking-tight", children: card.label }),
246
+ /* @__PURE__ */ jsx("span", { className: "rounded-full bg-white/80 px-2 py-0.5 text-xs font-medium text-zinc-500 ring-1 ring-[#242423]/[0.06]", children: "Weekly" })
247
+ ] }),
248
+ /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center justify-center pb-2", children: /* @__PURE__ */ jsxs("span", { className: "flex items-baseline text-[32px] font-semibold leading-none tracking-tight text-white drop-shadow-[0_1px_8px_rgba(0,0,0,0.18)]", children: [
249
+ /* @__PURE__ */ jsx(motion.span, { className: "tabular-nums", children: shown }),
250
+ card.suffix && /* @__PURE__ */ jsx("span", { className: "ml-0.5 text-lg", children: card.suffix.trim() })
251
+ ] }) }),
252
+ /* @__PURE__ */ jsx("p", { className: "text-center text-xs leading-4 text-zinc-500", children: card.caption })
253
+ ]
254
+ }
255
+ )
256
+ ] }),
257
+ /* @__PURE__ */ jsx(
258
+ motion.span,
259
+ {
260
+ "aria-hidden": true,
261
+ style: { opacity: back },
262
+ className: "pointer-events-none absolute inset-0 overflow-hidden rounded-[inherit] bg-white",
263
+ children: /* @__PURE__ */ jsx("span", { className: "absolute inset-0 block -scale-x-100", children: card.image ? /* @__PURE__ */ jsxs(Fragment, { children: [
264
+ /* @__PURE__ */ jsx(
265
+ "img",
266
+ {
267
+ src: card.image,
268
+ alt: "",
269
+ draggable: false,
270
+ className: "absolute inset-0 size-full object-cover"
271
+ }
272
+ ),
273
+ /* @__PURE__ */ jsxs("span", { className: "absolute inset-x-2.5 bottom-2.5 rounded-xl bg-white/70 px-3 py-2 ring-1 ring-white/60 backdrop-blur-md", children: [
274
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-semibold tracking-tight", children: card.label }),
275
+ card.caption && /* @__PURE__ */ jsx("span", { className: "block truncate text-xs text-zinc-600", children: card.caption })
276
+ ] })
277
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
278
+ /* @__PURE__ */ jsx(
279
+ "span",
280
+ {
281
+ className: "absolute left-1/2 top-[44%] size-40 -translate-x-1/2 -translate-y-1/2 rounded-full blur-[22px]",
282
+ style: {
283
+ background: `radial-gradient(circle at 35% 35%, ${card.hues?.[0] ?? "#c084fc"}, ${card.hues?.[1] ?? "#60a5fa"} 70%)`
284
+ }
285
+ }
286
+ ),
287
+ /* @__PURE__ */ jsx("span", { className: "absolute left-4 top-4 text-sm font-semibold tracking-tight", children: card.label }),
288
+ /* @__PURE__ */ jsxs("span", { className: "absolute inset-x-0 top-1/2 -translate-y-1/2 text-center text-[32px] font-semibold leading-none tracking-tight text-white", children: [
289
+ format(value, card.decimals),
290
+ card.suffix?.trim()
291
+ ] })
292
+ ] }) })
293
+ }
294
+ )
295
+ ]
296
+ }
297
+ );
298
+ }
299
+ var FADE = "#000 0%, rgba(0,0,0,0.94) 18%, rgba(0,0,0,0.8) 34%, rgba(0,0,0,0.6) 48%, rgba(0,0,0,0.4) 61%, rgba(0,0,0,0.22) 73%, rgba(0,0,0,0.1) 84%, rgba(0,0,0,0.03) 93%, transparent 100%";
300
+ function Lens({
301
+ side,
302
+ x,
303
+ slots,
304
+ width,
305
+ blur,
306
+ saturation,
307
+ still
308
+ }) {
309
+ const near = useTransform(x, (v) => {
310
+ let best = 0;
311
+ for (const k of slots) {
312
+ const c = k * STEP + CARD_W / 2 + v;
313
+ const d = side === "left" ? c - 40 : width - 40 - c;
314
+ best = Math.max(best, Math.exp(-((d / 150) ** 2)));
315
+ }
316
+ return still ? 0.3 : best;
317
+ });
318
+ const reach = useTransform(near, (p) => 130 + p * 110);
319
+ const tall = useTransform(near, (p) => 120 + p * 30);
320
+ const at = side === "left" ? "0%" : "100%";
321
+ const mask = useTransform(
322
+ [reach, tall],
323
+ ([r, t]) => `radial-gradient(ellipse ${r}px ${t}% at ${at} 50%, ${FADE})`
324
+ );
325
+ const soft = useTransform(
326
+ [reach, tall],
327
+ ([r, t]) => `radial-gradient(ellipse ${r * 1.3}px ${t + 14}% at ${at} 50%, ${FADE})`
328
+ );
329
+ const sat = saturation;
330
+ const softBlur = blur * 0.35;
331
+ const softSat = 1 + (saturation - 1) * 0.4;
332
+ const dir = side === "left" ? "90deg" : "270deg";
333
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
334
+ /* @__PURE__ */ jsx(
335
+ motion.div,
336
+ {
337
+ "aria-hidden": true,
338
+ className: "pointer-events-none absolute inset-y-0 z-10",
339
+ style: {
340
+ [side]: 0,
341
+ width: 420,
342
+ WebkitMaskImage: soft,
343
+ maskImage: soft,
344
+ backdropFilter: `blur(${softBlur}px) saturate(${softSat})`,
345
+ WebkitBackdropFilter: `blur(${softBlur}px) saturate(${softSat})`
346
+ }
347
+ }
348
+ ),
349
+ /* @__PURE__ */ jsx(
350
+ motion.div,
351
+ {
352
+ "aria-hidden": true,
353
+ className: "pointer-events-none absolute inset-y-0 z-10",
354
+ style: {
355
+ [side]: 0,
356
+ width: 340,
357
+ WebkitMaskImage: mask,
358
+ maskImage: mask,
359
+ backdropFilter: `blur(${blur}px) saturate(${sat}) brightness(1.05) contrast(1.04)`,
360
+ WebkitBackdropFilter: `blur(${blur}px) saturate(${sat}) brightness(1.05) contrast(1.04)`,
361
+ // A sheen across the glass, brightest at the edge.
362
+ background: `linear-gradient(${dir}, rgba(255,255,255,0.42), rgba(255,255,255,0.12) 38%, rgba(255,255,255,0) 70%)`
363
+ }
364
+ }
365
+ )
366
+ ] });
367
+ }
368
+ var PrismCarousel = React.forwardRef(function PrismCarousel2({
369
+ cards = DEFAULT_CARDS,
370
+ defaultIndex = 1,
371
+ autoplay = true,
372
+ speed = 80,
373
+ flip = false,
374
+ blur = 26,
375
+ saturation = 2.9,
376
+ className
377
+ }, ref) {
378
+ const still = !!useReducedMotion();
379
+ const stage = React.useRef(null);
380
+ const [width, setWidth] = React.useState(720);
381
+ const n = cards.length;
382
+ const [pos, setPos] = React.useState(wrap(defaultIndex, n));
383
+ const index = wrap(pos, n);
384
+ const [touched, setTouched] = React.useState(false);
385
+ const [hover, setHover] = React.useState(false);
386
+ const dragged = React.useRef(false);
387
+ const half = width / 2;
388
+ const target = (k) => half - (k * STEP + CARD_W / 2);
389
+ const x = useMotionValue(target(pos));
390
+ const wheel = React.useRef(0);
391
+ React.useImperativeHandle(ref, () => stage.current);
392
+ React.useLayoutEffect(() => {
393
+ const el = stage.current;
394
+ if (!el) return;
395
+ const ro = new ResizeObserver(() => setWidth(el.clientWidth));
396
+ ro.observe(el);
397
+ setWidth(el.clientWidth);
398
+ return () => ro.disconnect();
399
+ }, []);
400
+ const posRef = React.useRef(pos);
401
+ posRef.current = pos;
402
+ useMotionValueEvent(x, "change", (v) => {
403
+ const k = Math.round((half - CARD_W / 2 - v) / STEP);
404
+ if (k !== posRef.current) setPos(k);
405
+ });
406
+ const lastHalf = React.useRef(half);
407
+ React.useEffect(() => {
408
+ x.set(x.get() + (half - lastHalf.current));
409
+ lastHalf.current = half;
410
+ }, [half, x]);
411
+ const glide = React.useRef(null);
412
+ const snap = (k) => {
413
+ glide.current?.stop();
414
+ if (still) {
415
+ x.set(target(k));
416
+ return Promise.resolve();
417
+ }
418
+ glide.current = animate(x, target(k), SPRING);
419
+ return glide.current.then(() => {
420
+ });
421
+ };
422
+ const flow = useMotionValue(0);
423
+ const pace = !autoplay || still || touched ? 0 : hover ? 0.3 : 1;
424
+ React.useEffect(() => {
425
+ const c = animate(flow, pace, { duration: 0.6, ease: "easeOut" });
426
+ return () => c.stop();
427
+ }, [pace, flow]);
428
+ const fling = React.useRef(0);
429
+ useAnimationFrame((_, delta) => {
430
+ if (dragged.current) return;
431
+ const dt = Math.min(delta, 100) / 1e3;
432
+ const f = flow.get();
433
+ fling.current *= Math.exp(-dt / 0.35);
434
+ if (Math.abs(fling.current) < 1) fling.current = 0;
435
+ const move = fling.current - speed * f;
436
+ if (move !== 0) x.set(x.get() + move * dt);
437
+ });
438
+ const turn = React.useRef(0);
439
+ const go = (k) => {
440
+ const me = ++turn.current;
441
+ fling.current = 0;
442
+ flow.set(0);
443
+ setTouched(true);
444
+ setPos(k);
445
+ void snap(k).then(() => {
446
+ if (turn.current === me) setTouched(false);
447
+ });
448
+ };
449
+ const show = (i) => {
450
+ let d = wrap(i - index, n);
451
+ if (d > n / 2) d -= n;
452
+ go(pos + d);
453
+ };
454
+ const reachSlots = Math.ceil(half / STEP) + 2;
455
+ const slots = Array.from(
456
+ { length: reachSlots * 2 + 1 },
457
+ (_, j) => pos - reachSlots + j
458
+ );
459
+ return /* @__PURE__ */ jsxs(
460
+ "div",
461
+ {
462
+ ref: stage,
463
+ role: "region",
464
+ "aria-roledescription": "carousel",
465
+ "aria-label": "Cards",
466
+ tabIndex: 0,
467
+ onPointerEnter: (e) => e.pointerType === "mouse" && setHover(true),
468
+ onPointerLeave: (e) => e.pointerType === "mouse" && setHover(false),
469
+ onKeyDown: (e) => {
470
+ if (e.key === "ArrowRight") {
471
+ e.preventDefault();
472
+ go(pos + 1);
473
+ } else if (e.key === "ArrowLeft") {
474
+ e.preventDefault();
475
+ go(pos - 1);
476
+ }
477
+ },
478
+ onWheel: (e) => {
479
+ if (Math.abs(e.deltaX) <= Math.abs(e.deltaY)) return;
480
+ wheel.current += e.deltaX;
481
+ if (Math.abs(wheel.current) > 60) {
482
+ go(pos + Math.sign(wheel.current));
483
+ wheel.current = 0;
484
+ }
485
+ },
486
+ className: cn(
487
+ "relative isolate h-full min-h-[400px] w-full select-none overflow-hidden outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-zinc-400",
488
+ "bg-[linear-gradient(180deg,#f3f3f1_0%,#ececea_55%,#e4e4e1_100%)]",
489
+ className
490
+ ),
491
+ children: [
492
+ /* @__PURE__ */ jsx(
493
+ "div",
494
+ {
495
+ "aria-hidden": true,
496
+ className: "pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-[linear-gradient(180deg,transparent,rgba(255,255,255,0.65))]"
497
+ }
498
+ ),
499
+ /* @__PURE__ */ jsx(
500
+ motion.div,
501
+ {
502
+ drag: still ? false : "x",
503
+ dragElastic: 0.14,
504
+ dragMomentum: false,
505
+ onDragStart: () => {
506
+ dragged.current = true;
507
+ turn.current++;
508
+ glide.current?.stop();
509
+ fling.current = 0;
510
+ flow.set(0);
511
+ setTouched(true);
512
+ },
513
+ onDragEnd: (_, info) => {
514
+ window.setTimeout(() => dragged.current = false, 0);
515
+ requestAnimationFrame(
516
+ () => setHover(!!stage.current?.matches(":hover"))
517
+ );
518
+ if (autoplay && !still) {
519
+ fling.current = Math.max(-2400, Math.min(2400, info.velocity.x));
520
+ setTouched(false);
521
+ return;
522
+ }
523
+ const projected = x.get() + info.velocity.x * 0.22;
524
+ go(Math.round((half - CARD_W / 2 - projected) / STEP));
525
+ },
526
+ style: { x },
527
+ className: "absolute inset-y-0 left-0 w-full cursor-grab active:cursor-grabbing",
528
+ children: slots.map((k) => /* @__PURE__ */ jsx(
529
+ "div",
530
+ {
531
+ className: "absolute top-1/2",
532
+ style: { left: k * STEP, marginTop: -CARD_H / 2 },
533
+ children: /* @__PURE__ */ jsx(
534
+ Card,
535
+ {
536
+ card: cards[wrap(k, n)],
537
+ i: wrap(k, n),
538
+ slot: k,
539
+ boost: (saturation - 1) * 0.85,
540
+ flip,
541
+ x,
542
+ half,
543
+ active: k === pos,
544
+ still,
545
+ onPick: () => {
546
+ if (!dragged.current && k !== pos) go(k);
547
+ }
548
+ }
549
+ )
550
+ },
551
+ k
552
+ ))
553
+ }
554
+ ),
555
+ /* @__PURE__ */ jsx(
556
+ Lens,
557
+ {
558
+ side: "left",
559
+ x,
560
+ slots,
561
+ width,
562
+ blur,
563
+ saturation,
564
+ still
565
+ }
566
+ ),
567
+ /* @__PURE__ */ jsx(
568
+ Lens,
569
+ {
570
+ side: "right",
571
+ x,
572
+ slots,
573
+ width,
574
+ blur,
575
+ saturation,
576
+ still
577
+ }
578
+ ),
579
+ /* @__PURE__ */ jsx("div", { className: "absolute bottom-4 left-1/2 z-20 flex -translate-x-1/2 items-center gap-1.5 rounded-full bg-white/50 px-2.5 py-2 ring-1 ring-white/70 backdrop-blur-md", children: cards.map((c, i) => /* @__PURE__ */ jsx(
580
+ "button",
581
+ {
582
+ type: "button",
583
+ "aria-label": `Show ${c.label}`,
584
+ "aria-current": i === index || void 0,
585
+ onClick: () => show(i),
586
+ className: "relative grid h-2 cursor-pointer place-items-center outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",
587
+ children: /* @__PURE__ */ jsx(
588
+ motion.span,
589
+ {
590
+ className: "block h-1.5 rounded-full bg-[#242423]",
591
+ animate: {
592
+ width: i === index ? 18 : 6,
593
+ opacity: i === index ? 0.9 : 0.25
594
+ },
595
+ transition: still ? { duration: 0 } : SPRING
596
+ }
597
+ )
598
+ },
599
+ c.label + i
600
+ )) }),
601
+ /* @__PURE__ */ jsxs("p", { className: "sr-only", "aria-live": "polite", children: [
602
+ cards[index].label,
603
+ ", ",
604
+ index + 1,
605
+ " of ",
606
+ cards.length
607
+ ] })
608
+ ]
609
+ }
610
+ );
611
+ });
612
+
613
+ export {
614
+ PrismCarousel
615
+ };