motion-brew 0.0.0-stage → 0.1.0

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-5IAO5YQA.js +373 -0
  57. package/dist/chunk-5MP5QNFG.js +560 -0
  58. package/dist/chunk-62RBYLIN.js +128 -0
  59. package/dist/chunk-6FTC5OQF.js +384 -0
  60. package/dist/chunk-6GAKTS3D.js +329 -0
  61. package/dist/chunk-6GRDT3OE.js +124 -0
  62. package/dist/chunk-6JQY7AX5.js +307 -0
  63. package/dist/chunk-6LOUA6XB.js +237 -0
  64. package/dist/chunk-6V6OTHNE.js +299 -0
  65. package/dist/chunk-6VZIT62Q.js +142 -0
  66. package/dist/chunk-6WSY725U.js +387 -0
  67. package/dist/chunk-6XSJC7M7.js +764 -0
  68. package/dist/chunk-75DEIDBX.js +129 -0
  69. package/dist/chunk-7FQ4XU7E.js +127 -0
  70. package/dist/chunk-7IL5WRJR.js +615 -0
  71. package/dist/chunk-7MPC3RUE.js +1462 -0
  72. package/dist/chunk-7PS2W7PU.js +112 -0
  73. package/dist/chunk-AATJOPNH.js +86 -0
  74. package/dist/chunk-ADXWPWJR.js +209 -0
  75. package/dist/chunk-ANNDITUM.js +47 -0
  76. package/dist/chunk-AQN6BHWC.js +325 -0
  77. package/dist/chunk-AVOS73MR.js +537 -0
  78. package/dist/chunk-B4LNE6YK.js +473 -0
  79. package/dist/chunk-BHUNLG6S.js +142 -0
  80. package/dist/chunk-BN4MA5UY.js +127 -0
  81. package/dist/chunk-BPE43MTT.js +183 -0
  82. package/dist/chunk-BPF3FQRS.js +590 -0
  83. package/dist/chunk-BRTZFUFR.js +503 -0
  84. package/dist/chunk-BS4ZFJKW.js +121 -0
  85. package/dist/chunk-BXAKCY6X.js +86 -0
  86. package/dist/chunk-CEQ56RF6.js +129 -0
  87. package/dist/chunk-CGDKH6BB.js +902 -0
  88. package/dist/chunk-CMTGYFT7.js +395 -0
  89. package/dist/chunk-DD55JZOI.js +257 -0
  90. package/dist/chunk-DQUXBNSH.js +412 -0
  91. package/dist/chunk-DR4DUSNF.js +265 -0
  92. package/dist/chunk-EDPCK6VU.js +419 -0
  93. package/dist/chunk-EEQ2WHTN.js +142 -0
  94. package/dist/chunk-ERVE5RSN.js +793 -0
  95. package/dist/chunk-FFUBTMDC.js +303 -0
  96. package/dist/chunk-FK4TZ5OW.js +29 -0
  97. package/dist/chunk-FXI6NHNR.js +1033 -0
  98. package/dist/chunk-G3XH7YT2.js +122 -0
  99. package/dist/chunk-G7KDH7ME.js +559 -0
  100. package/dist/chunk-GRUDTDLX.js +534 -0
  101. package/dist/chunk-GUQINNWS.js +770 -0
  102. package/dist/chunk-GV3Q4D2N.js +320 -0
  103. package/dist/chunk-GVWOJJ3T.js +129 -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-HJINEW5T.js +3289 -0
  108. package/dist/chunk-HK34LPY6.js +112 -0
  109. package/dist/chunk-HLJXNSMM.js +320 -0
  110. package/dist/chunk-HPJJAQ5L.js +406 -0
  111. package/dist/chunk-HYSXVKZB.js +213 -0
  112. package/dist/chunk-I45D4XV4.js +124 -0
  113. package/dist/chunk-I7KTTOOJ.js +113 -0
  114. package/dist/chunk-IDJOKV6S.js +67 -0
  115. package/dist/chunk-IGI6OLRX.js +138 -0
  116. package/dist/chunk-IKM7EEYN.js +117 -0
  117. package/dist/chunk-INV5FI6O.js +394 -0
  118. package/dist/chunk-IUBUAIQZ.js +321 -0
  119. package/dist/chunk-IYZOANPX.js +159 -0
  120. package/dist/chunk-JFTD3YAL.js +163 -0
  121. package/dist/chunk-JGEV462J.js +235 -0
  122. package/dist/chunk-JHT6RCGY.js +127 -0
  123. package/dist/chunk-JJEWOQYQ.js +141 -0
  124. package/dist/chunk-JT2EIO5M.js +129 -0
  125. package/dist/chunk-K3HQEHJ6.js +663 -0
  126. package/dist/chunk-K6ET254T.js +398 -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-PJ5EVDNN.js +157 -0
  155. package/dist/chunk-PKM6B4JJ.js +108 -0
  156. package/dist/chunk-PV3OYTMT.js +596 -0
  157. package/dist/chunk-RBSLSNMW.js +444 -0
  158. package/dist/chunk-RE74K7KI.js +370 -0
  159. package/dist/chunk-RP22J4NX.js +247 -0
  160. package/dist/chunk-RU2Q2XVP.js +287 -0
  161. package/dist/chunk-RZ2UCZ3C.js +212 -0
  162. package/dist/chunk-SBDTC4UY.js +367 -0
  163. package/dist/chunk-SKEE23KW.js +137 -0
  164. package/dist/chunk-SOW7S7ET.js +1103 -0
  165. package/dist/chunk-SQ7F3VBU.js +1069 -0
  166. package/dist/chunk-SSWKGVRI.js +172 -0
  167. package/dist/chunk-SVK4MQMV.js +267 -0
  168. package/dist/chunk-SZAHSOSQ.js +932 -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-W46CBUFX.js +425 -0
  185. package/dist/chunk-WE7VCUOA.js +130 -0
  186. package/dist/chunk-WFWO2EIW.js +120 -0
  187. package/dist/chunk-WGIT4MMH.js +350 -0
  188. package/dist/chunk-WOR2GMMN.js +114 -0
  189. package/dist/chunk-WTTDB475.js +54 -0
  190. package/dist/chunk-WWWKMU4Y.js +184 -0
  191. package/dist/chunk-XDR4FO6Q.js +124 -0
  192. package/dist/chunk-XH6YNONO.js +112 -0
  193. package/dist/chunk-XL4L2J6N.js +129 -0
  194. package/dist/chunk-Y6MTC46Q.js +684 -0
  195. package/dist/chunk-YFLQ4HPJ.js +119 -0
  196. package/dist/chunk-YGONLKWH.js +180 -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 +14 -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,908 @@
1
+ "use client";
2
+ import {
3
+ ChartPieIcon
4
+ } from "./chunk-YFLQ4HPJ.js";
5
+ import {
6
+ ArrowDownRightIcon
7
+ } from "./chunk-25254AZA.js";
8
+ import {
9
+ ArrowUpRightIcon
10
+ } from "./chunk-I7KTTOOJ.js";
11
+ import {
12
+ cn
13
+ } from "./chunk-2TQSHVXA.js";
14
+
15
+ // src/components/channel-mix/channel-mix.tsx
16
+ import * as React from "react";
17
+ import {
18
+ AnimatePresence,
19
+ motion as motion4,
20
+ useInView,
21
+ useReducedMotion as useReducedMotion4
22
+ } from "motion/react";
23
+ import { Info } from "lucide-react";
24
+
25
+ // src/icons/circle-dollar-sign.tsx
26
+ import { motion, useAnimation, useReducedMotion } from "motion/react";
27
+ import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
28
+ import { jsx, jsxs } from "react/jsx-runtime";
29
+ var DOLLAR_MAIN_VARIANTS = {
30
+ normal: {
31
+ opacity: 1,
32
+ pathLength: 1,
33
+ transition: {
34
+ duration: 0.4,
35
+ opacity: { duration: 0.1 }
36
+ }
37
+ },
38
+ animate: {
39
+ opacity: [0, 1],
40
+ pathLength: [0, 1],
41
+ transition: {
42
+ duration: 0.6,
43
+ opacity: { duration: 0.1 }
44
+ }
45
+ }
46
+ };
47
+ var DOLLAR_SECONDARY_VARIANTS = {
48
+ normal: {
49
+ opacity: 1,
50
+ pathLength: 1,
51
+ pathOffset: 0,
52
+ transition: {
53
+ delay: 0.3,
54
+ duration: 0.3,
55
+ opacity: { duration: 0.1, delay: 0.3 }
56
+ }
57
+ },
58
+ animate: {
59
+ opacity: [0, 1],
60
+ pathLength: [0, 1],
61
+ pathOffset: [1, 0],
62
+ transition: {
63
+ delay: 0.5,
64
+ duration: 0.4,
65
+ opacity: { duration: 0.1, delay: 0.5 }
66
+ }
67
+ }
68
+ };
69
+ var CircleDollarSignIcon = forwardRef(({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
70
+ const controls = useAnimation();
71
+ const isControlledRef = useRef(false);
72
+ useImperativeHandle(ref, () => {
73
+ isControlledRef.current = true;
74
+ return {
75
+ startAnimation: () => controls.start("animate"),
76
+ stopAnimation: () => controls.start("normal")
77
+ };
78
+ });
79
+ const handleMouseEnter = useCallback(
80
+ (e) => {
81
+ if (isControlledRef.current) {
82
+ onMouseEnter?.(e);
83
+ } else {
84
+ controls.start("animate");
85
+ }
86
+ },
87
+ [controls, onMouseEnter]
88
+ );
89
+ const handleMouseLeave = useCallback(
90
+ (e) => {
91
+ if (isControlledRef.current) {
92
+ onMouseLeave?.(e);
93
+ } else {
94
+ controls.start("normal");
95
+ }
96
+ },
97
+ [controls, onMouseLeave]
98
+ );
99
+ const wrap = useRef(null);
100
+ const reduced = useReducedMotion();
101
+ const [hosted, setHosted] = useState(false);
102
+ useEffect(() => {
103
+ const fake = {};
104
+ if (reduced) {
105
+ setHosted(true);
106
+ return;
107
+ }
108
+ if (active !== void 0) {
109
+ setHosted(true);
110
+ (active ? handleMouseEnter : handleMouseLeave)(fake);
111
+ return;
112
+ }
113
+ const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
114
+ setHosted(!!host);
115
+ if (!host) return;
116
+ const on = () => handleMouseEnter(fake);
117
+ const off = () => handleMouseLeave(fake);
118
+ host.addEventListener("pointerenter", on);
119
+ host.addEventListener("pointerleave", off);
120
+ return () => {
121
+ host.removeEventListener("pointerenter", on);
122
+ host.removeEventListener("pointerleave", off);
123
+ };
124
+ }, [active, reduced, handleMouseEnter, handleMouseLeave]);
125
+ return /* @__PURE__ */ jsx(
126
+ "span",
127
+ {
128
+ ref: wrap,
129
+ className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
130
+ style: size ? { width: size, height: size, ...style } : style,
131
+ onMouseEnter: hosted ? void 0 : handleMouseEnter,
132
+ onMouseLeave: hosted ? void 0 : handleMouseLeave,
133
+ ...props,
134
+ children: /* @__PURE__ */ jsxs(
135
+ "svg",
136
+ {
137
+ fill: "none",
138
+ height: size,
139
+ stroke: "currentColor",
140
+ strokeLinecap: "round",
141
+ strokeLinejoin: "round",
142
+ strokeWidth: strokeWidth ?? 2,
143
+ viewBox: "0 0 24 24",
144
+ width: size,
145
+ xmlns: "http://www.w3.org/2000/svg",
146
+ children: [
147
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
148
+ /* @__PURE__ */ jsx(
149
+ motion.path,
150
+ {
151
+ animate: controls,
152
+ d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",
153
+ initial: "normal",
154
+ variants: DOLLAR_MAIN_VARIANTS
155
+ }
156
+ ),
157
+ /* @__PURE__ */ jsx(
158
+ motion.path,
159
+ {
160
+ animate: controls,
161
+ d: "M12 18V6",
162
+ initial: "normal",
163
+ variants: DOLLAR_SECONDARY_VARIANTS
164
+ }
165
+ )
166
+ ]
167
+ }
168
+ )
169
+ }
170
+ );
171
+ });
172
+ CircleDollarSignIcon.displayName = "CircleDollarSignIcon";
173
+
174
+ // src/icons/hourglass.tsx
175
+ import { motion as motion2, useAnimation as useAnimation2, useReducedMotion as useReducedMotion2 } from "motion/react";
176
+ import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useImperativeHandle as useImperativeHandle2, useRef as useRef2, useState as useState2 } from "react";
177
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
178
+ var HourglassIcon = forwardRef2(
179
+ ({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
180
+ const controls = useAnimation2();
181
+ const isControlledRef = useRef2(false);
182
+ useImperativeHandle2(ref, () => {
183
+ isControlledRef.current = true;
184
+ return {
185
+ startAnimation: () => controls.start("animate"),
186
+ stopAnimation: () => controls.start("normal")
187
+ };
188
+ });
189
+ const handleMouseEnter = useCallback2(
190
+ (e) => {
191
+ if (isControlledRef.current) {
192
+ onMouseEnter?.(e);
193
+ } else {
194
+ controls.start("animate");
195
+ }
196
+ },
197
+ [controls, onMouseEnter]
198
+ );
199
+ const handleMouseLeave = useCallback2(
200
+ (e) => {
201
+ if (isControlledRef.current) {
202
+ onMouseLeave?.(e);
203
+ } else {
204
+ controls.start("normal");
205
+ }
206
+ },
207
+ [controls, onMouseLeave]
208
+ );
209
+ const wrap = useRef2(null);
210
+ const reduced = useReducedMotion2();
211
+ const [hosted, setHosted] = useState2(false);
212
+ useEffect2(() => {
213
+ const fake = {};
214
+ if (reduced) {
215
+ setHosted(true);
216
+ return;
217
+ }
218
+ if (active !== void 0) {
219
+ setHosted(true);
220
+ (active ? handleMouseEnter : handleMouseLeave)(fake);
221
+ return;
222
+ }
223
+ const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
224
+ setHosted(!!host);
225
+ if (!host) return;
226
+ const on = () => handleMouseEnter(fake);
227
+ const off = () => handleMouseLeave(fake);
228
+ host.addEventListener("pointerenter", on);
229
+ host.addEventListener("pointerleave", off);
230
+ return () => {
231
+ host.removeEventListener("pointerenter", on);
232
+ host.removeEventListener("pointerleave", off);
233
+ };
234
+ }, [active, reduced, handleMouseEnter, handleMouseLeave]);
235
+ return /* @__PURE__ */ jsx2(
236
+ "span",
237
+ {
238
+ ref: wrap,
239
+ className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
240
+ style: size ? { width: size, height: size, ...style } : style,
241
+ onMouseEnter: hosted ? void 0 : handleMouseEnter,
242
+ onMouseLeave: hosted ? void 0 : handleMouseLeave,
243
+ ...props,
244
+ children: /* @__PURE__ */ jsx2(
245
+ "svg",
246
+ {
247
+ fill: "none",
248
+ height: size,
249
+ stroke: "currentColor",
250
+ strokeLinecap: "round",
251
+ strokeLinejoin: "round",
252
+ strokeWidth: strokeWidth ?? 2,
253
+ viewBox: "0 0 24 24",
254
+ width: size,
255
+ xmlns: "http://www.w3.org/2000/svg",
256
+ children: /* @__PURE__ */ jsxs2(
257
+ motion2.g,
258
+ {
259
+ animate: controls,
260
+ style: {
261
+ transformOrigin: "12px 12px"
262
+ },
263
+ transition: {
264
+ type: "spring",
265
+ stiffness: 100,
266
+ damping: 15,
267
+ mass: 1
268
+ },
269
+ variants: {
270
+ normal: {
271
+ rotate: 0
272
+ },
273
+ animate: {
274
+ rotate: 180
275
+ }
276
+ },
277
+ children: [
278
+ /* @__PURE__ */ jsx2("path", { d: "M5 22h14" }),
279
+ /* @__PURE__ */ jsx2("path", { d: "M5 2h14" }),
280
+ /* @__PURE__ */ jsx2("path", { d: "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22" }),
281
+ /* @__PURE__ */ jsx2("path", { d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2" })
282
+ ]
283
+ }
284
+ )
285
+ }
286
+ )
287
+ }
288
+ );
289
+ }
290
+ );
291
+ HourglassIcon.displayName = "HourglassIcon";
292
+
293
+ // src/icons/user-round-plus.tsx
294
+ import { motion as motion3, useAnimation as useAnimation3, useReducedMotion as useReducedMotion3 } from "motion/react";
295
+ import { forwardRef as forwardRef3, useCallback as useCallback3, useEffect as useEffect3, useImperativeHandle as useImperativeHandle3, useRef as useRef3, useState as useState3 } from "react";
296
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
297
+ var VERTICAL_BAR_VARIANTS = {
298
+ normal: {
299
+ opacity: 1
300
+ },
301
+ animate: {
302
+ opacity: [0, 1],
303
+ pathLength: [0, 1],
304
+ transition: {
305
+ delay: 0.3,
306
+ duration: 0.2,
307
+ opacity: { duration: 0.1, delay: 0.3 }
308
+ }
309
+ }
310
+ };
311
+ var HORIZONTAL_BAR_VARIANTS = {
312
+ normal: {
313
+ opacity: 1
314
+ },
315
+ animate: {
316
+ opacity: [0, 1],
317
+ pathLength: [0, 1],
318
+ transition: {
319
+ delay: 0.6,
320
+ duration: 0.2,
321
+ opacity: { duration: 0.1, delay: 0.6 }
322
+ }
323
+ }
324
+ };
325
+ var UserRoundPlusIcon = forwardRef3(({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
326
+ const controls = useAnimation3();
327
+ const isControlledRef = useRef3(false);
328
+ useImperativeHandle3(ref, () => {
329
+ isControlledRef.current = true;
330
+ return {
331
+ startAnimation: () => controls.start("animate"),
332
+ stopAnimation: () => controls.start("normal")
333
+ };
334
+ });
335
+ const handleMouseEnter = useCallback3(
336
+ (e) => {
337
+ if (isControlledRef.current) {
338
+ onMouseEnter?.(e);
339
+ } else {
340
+ controls.start("animate");
341
+ }
342
+ },
343
+ [controls, onMouseEnter]
344
+ );
345
+ const handleMouseLeave = useCallback3(
346
+ (e) => {
347
+ if (isControlledRef.current) {
348
+ onMouseLeave?.(e);
349
+ } else {
350
+ controls.start("normal");
351
+ }
352
+ },
353
+ [controls, onMouseLeave]
354
+ );
355
+ const wrap = useRef3(null);
356
+ const reduced = useReducedMotion3();
357
+ const [hosted, setHosted] = useState3(false);
358
+ useEffect3(() => {
359
+ const fake = {};
360
+ if (reduced) {
361
+ setHosted(true);
362
+ return;
363
+ }
364
+ if (active !== void 0) {
365
+ setHosted(true);
366
+ (active ? handleMouseEnter : handleMouseLeave)(fake);
367
+ return;
368
+ }
369
+ const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
370
+ setHosted(!!host);
371
+ if (!host) return;
372
+ const on = () => handleMouseEnter(fake);
373
+ const off = () => handleMouseLeave(fake);
374
+ host.addEventListener("pointerenter", on);
375
+ host.addEventListener("pointerleave", off);
376
+ return () => {
377
+ host.removeEventListener("pointerenter", on);
378
+ host.removeEventListener("pointerleave", off);
379
+ };
380
+ }, [active, reduced, handleMouseEnter, handleMouseLeave]);
381
+ return /* @__PURE__ */ jsx3(
382
+ "span",
383
+ {
384
+ ref: wrap,
385
+ className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
386
+ style: size ? { width: size, height: size, ...style } : style,
387
+ onMouseEnter: hosted ? void 0 : handleMouseEnter,
388
+ onMouseLeave: hosted ? void 0 : handleMouseLeave,
389
+ ...props,
390
+ children: /* @__PURE__ */ jsxs3(
391
+ motion3.svg,
392
+ {
393
+ fill: "none",
394
+ height: size,
395
+ initial: "normal",
396
+ stroke: "currentColor",
397
+ strokeLinecap: "round",
398
+ strokeLinejoin: "round",
399
+ strokeWidth: strokeWidth ?? 2,
400
+ viewBox: "0 0 24 24",
401
+ width: size,
402
+ xmlns: "http://www.w3.org/2000/svg",
403
+ children: [
404
+ /* @__PURE__ */ jsx3("path", { d: "M2 21a8 8 0 0 1 13.292-6" }),
405
+ /* @__PURE__ */ jsx3("circle", { cx: "10", cy: "8", r: "5" }),
406
+ /* @__PURE__ */ jsx3(
407
+ motion3.path,
408
+ {
409
+ animate: controls,
410
+ d: "M19 16v6",
411
+ initial: "normal",
412
+ variants: VERTICAL_BAR_VARIANTS
413
+ }
414
+ ),
415
+ /* @__PURE__ */ jsx3(
416
+ motion3.path,
417
+ {
418
+ animate: controls,
419
+ d: "M22 19h-6",
420
+ initial: "normal",
421
+ variants: HORIZONTAL_BAR_VARIANTS
422
+ }
423
+ )
424
+ ]
425
+ }
426
+ )
427
+ }
428
+ );
429
+ });
430
+ UserRoundPlusIcon.displayName = "UserRoundPlusIcon";
431
+
432
+ // src/components/channel-mix/channel-mix.tsx
433
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
434
+ var PALETTE = ["#4f46e5", "#38bdf8", "#34d399", "#f59e0b", "#f472b6"];
435
+ var GOOD = "#269a5a";
436
+ var BAD = "#d64545";
437
+ var TICKS = 44;
438
+ var DEFAULT_CHANNELS = [
439
+ { name: "Organic search", sessions: 21480, change: 3.4 },
440
+ { name: "Social", sessions: 15920, change: 1.2 },
441
+ { name: "Direct", sessions: 10810, change: -0.8 }
442
+ ];
443
+ var DEFAULT_METRICS = [
444
+ {
445
+ label: "Cost per signup",
446
+ value: "$38.25",
447
+ change: -4.1,
448
+ higherIsBetter: false,
449
+ icon: "people"
450
+ },
451
+ {
452
+ label: "Days to convert",
453
+ value: "4.2 days",
454
+ change: 3.8,
455
+ higherIsBetter: false,
456
+ icon: "time"
457
+ },
458
+ { label: "Return on spend", value: "324%", change: 4.5, icon: "money" }
459
+ ];
460
+ var ICONS = {
461
+ people: UserRoundPlusIcon,
462
+ time: HourglassIcon,
463
+ money: CircleDollarSignIcon
464
+ };
465
+ var GLIDE = [0.22, 1, 0.36, 1];
466
+ var ROLL = { type: "spring", stiffness: 200, damping: 26 };
467
+ var PILL = { type: "spring", stiffness: 500, damping: 40 };
468
+ var DIGITS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
469
+ function Digit({ digit, still }) {
470
+ return /* @__PURE__ */ jsx4("span", { className: "relative inline-block h-[1em] w-[0.62em] overflow-hidden", children: /* @__PURE__ */ jsx4(
471
+ motion4.span,
472
+ {
473
+ className: "absolute inset-x-0 top-0 flex flex-col",
474
+ initial: false,
475
+ animate: { y: `${-digit * 10}%` },
476
+ transition: still ? { duration: 0 } : ROLL,
477
+ children: DIGITS.map((d) => /* @__PURE__ */ jsx4("span", { className: "flex h-[1em] items-center justify-center", children: d }, d))
478
+ }
479
+ ) });
480
+ }
481
+ function RollText({ text, still }) {
482
+ const chars = Array.from(text);
483
+ return /* @__PURE__ */ jsx4("span", { "aria-hidden": true, className: "inline-flex leading-none tabular-nums", children: chars.map((ch, i) => {
484
+ const key = chars.length - i;
485
+ return /\d/.test(ch) ? /* @__PURE__ */ jsx4(Digit, { digit: Number(ch), still }, key) : /* @__PURE__ */ jsx4("span", { className: "whitespace-pre", children: ch }, `${key}${ch}`);
486
+ }) });
487
+ }
488
+ var zeroed = (text) => text.replace(/\d/g, "0");
489
+ function Change({
490
+ change,
491
+ good,
492
+ nudge
493
+ }) {
494
+ const up = change >= 0;
495
+ const Arrow = up ? ArrowUpRightIcon : ArrowDownRightIcon;
496
+ return /* @__PURE__ */ jsxs4(
497
+ "span",
498
+ {
499
+ className: "inline-flex items-center gap-1 text-sm font-medium tabular-nums",
500
+ style: { color: good ? GOOD : BAD },
501
+ children: [
502
+ /* @__PURE__ */ jsx4(
503
+ motion4.span,
504
+ {
505
+ className: "grid",
506
+ animate: nudge ? { x: 2, y: up ? -2 : 2 } : { x: 0, y: 0 },
507
+ transition: { duration: 0.25, ease: GLIDE },
508
+ children: /* @__PURE__ */ jsx4(Arrow, { className: "size-3.5", strokeWidth: 2.5 })
509
+ }
510
+ ),
511
+ up ? "+" : "\u2212",
512
+ Math.abs(change).toFixed(1),
513
+ "%"
514
+ ]
515
+ }
516
+ );
517
+ }
518
+ var ChannelMix = React.forwardRef(
519
+ function ChannelMix2({
520
+ title = "Channel insights",
521
+ description = "See which channels bring people in, and what each one costs, as the week goes on.",
522
+ label = "Sessions this week",
523
+ info = "Visits to your site this week, split by where they came from.",
524
+ channels = DEFAULT_CHANNELS,
525
+ change = 2.1,
526
+ metrics = DEFAULT_METRICS,
527
+ onDetails,
528
+ locale = "en-US",
529
+ header = true,
530
+ className
531
+ }, ref) {
532
+ const still = !!useReducedMotion4();
533
+ const id = React.useId();
534
+ const root = React.useRef(null);
535
+ React.useImperativeHandle(ref, () => root.current);
536
+ const seen = useInView(root, { once: true, amount: 0.35 });
537
+ const shown = seen || still;
538
+ const [active, setActive] = React.useState(null);
539
+ const [row, setRow] = React.useState(null);
540
+ const [tip, setTip] = React.useState(false);
541
+ const [headHover, setHeadHover] = React.useState(false);
542
+ const [settled, setSettled] = React.useState(false);
543
+ const format = React.useMemo(() => new Intl.NumberFormat(locale), [locale]);
544
+ React.useEffect(() => {
545
+ if (!shown) return;
546
+ const t = window.setTimeout(() => setSettled(true), still ? 0 : 1400);
547
+ return () => window.clearTimeout(t);
548
+ }, [shown, still]);
549
+ const total = channels.reduce((s, c) => s + c.sessions, 0) || 1;
550
+ const colorOf = (i) => channels[i]?.color ?? PALETTE[i % PALETTE.length];
551
+ const owner = React.useMemo(() => {
552
+ const edges = [];
553
+ let run = 0;
554
+ for (const c of channels) edges.push(run += c.sessions / total);
555
+ return Array.from({ length: TICKS }, (_, i) => {
556
+ const at = (i + 0.5) / TICKS;
557
+ const k = edges.findIndex((e) => at <= e);
558
+ return k < 0 ? channels.length - 1 : k;
559
+ });
560
+ }, [channels, total]);
561
+ const focus = active === null ? null : channels[active];
562
+ const headline = focus ? format.format(focus.sessions) : format.format(total);
563
+ const headChange = focus ? focus.change : change;
564
+ const pickFromPointer = (e) => {
565
+ const r = e.currentTarget.getBoundingClientRect();
566
+ const i = Math.min(
567
+ TICKS - 1,
568
+ Math.max(0, Math.floor((e.clientX - r.left) / r.width * TICKS))
569
+ );
570
+ setActive(owner[i] ?? null);
571
+ };
572
+ return /* @__PURE__ */ jsxs4(
573
+ motion4.div,
574
+ {
575
+ ref: root,
576
+ initial: still ? false : { opacity: 0, y: 16, filter: "blur(8px)" },
577
+ animate: shown ? { opacity: 1, y: 0, filter: "blur(0px)" } : void 0,
578
+ transition: { duration: 0.6, ease: GLIDE },
579
+ className: cn(
580
+ "w-[400px] max-w-full overflow-hidden rounded-[32px] bg-white text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
581
+ className
582
+ ),
583
+ children: [
584
+ header && /* @__PURE__ */ jsxs4(
585
+ "div",
586
+ {
587
+ className: "bg-[#f1f1ef] px-6 pb-14 pt-6",
588
+ onPointerEnter: () => setHeadHover(true),
589
+ onPointerLeave: () => setHeadHover(false),
590
+ children: [
591
+ /* @__PURE__ */ jsx4("span", { className: "grid size-11 place-items-center rounded-2xl bg-white text-[#4f46e5] shadow-[0_1px_2px_rgba(0,0,0,0.06)]", children: /* @__PURE__ */ jsx4(
592
+ ChartPieIcon,
593
+ {
594
+ className: "size-5",
595
+ active: headHover || shown && !settled
596
+ }
597
+ ) }),
598
+ /* @__PURE__ */ jsx4("h3", { className: "mt-6 text-xl font-semibold tracking-tight", children: title }),
599
+ /* @__PURE__ */ jsx4("p", { className: "mt-1.5 text-pretty text-sm leading-relaxed text-zinc-500", children: description })
600
+ ]
601
+ }
602
+ ),
603
+ /* @__PURE__ */ jsxs4(
604
+ motion4.div,
605
+ {
606
+ initial: still ? false : { opacity: 0, y: 12 },
607
+ animate: shown ? { opacity: 1, y: 0 } : void 0,
608
+ transition: { duration: 0.55, ease: GLIDE, delay: still ? 0 : 0.12 },
609
+ className: cn(
610
+ "relative bg-white px-6 pb-6 pt-6",
611
+ header && "-mt-8 rounded-t-[28px]"
612
+ ),
613
+ children: [
614
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-start justify-between gap-3", children: [
615
+ /* @__PURE__ */ jsxs4("div", { className: "min-w-0", children: [
616
+ /* @__PURE__ */ jsxs4("div", { className: "relative flex h-5 items-center gap-1.5 text-sm text-zinc-500", children: [
617
+ /* @__PURE__ */ jsx4(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs4(
618
+ motion4.span,
619
+ {
620
+ initial: { opacity: 0, y: 6, filter: "blur(3px)" },
621
+ animate: { opacity: 1, y: 0, filter: "blur(0px)" },
622
+ exit: { opacity: 0, y: -6, filter: "blur(3px)" },
623
+ transition: { duration: still ? 0 : 0.22, ease: GLIDE },
624
+ className: "flex items-center gap-1.5 whitespace-nowrap",
625
+ children: [
626
+ focus && /* @__PURE__ */ jsx4(
627
+ "span",
628
+ {
629
+ className: "size-2 rounded-full",
630
+ style: { background: colorOf(active) }
631
+ }
632
+ ),
633
+ focus ? focus.name : label
634
+ ]
635
+ },
636
+ focus?.name ?? "all"
637
+ ) }),
638
+ /* @__PURE__ */ jsxs4("span", { className: "relative", children: [
639
+ /* @__PURE__ */ jsx4(
640
+ "button",
641
+ {
642
+ type: "button",
643
+ "aria-label": "About these numbers",
644
+ "aria-describedby": tip ? `${id}-tip` : void 0,
645
+ onPointerEnter: () => setTip(true),
646
+ onPointerLeave: () => setTip(false),
647
+ onFocus: () => setTip(true),
648
+ onBlur: () => setTip(false),
649
+ className: "grid size-5 cursor-help place-items-center rounded-full text-zinc-400 outline-none transition-colors hover:text-zinc-700 focus-visible:ring-2 focus-visible:ring-zinc-400",
650
+ children: /* @__PURE__ */ jsx4(Info, { className: "size-3.5" })
651
+ }
652
+ ),
653
+ /* @__PURE__ */ jsx4(AnimatePresence, { children: tip && /* @__PURE__ */ jsx4(
654
+ motion4.span,
655
+ {
656
+ id: `${id}-tip`,
657
+ role: "tooltip",
658
+ initial: { opacity: 0, y: -4, filter: "blur(4px)" },
659
+ animate: { opacity: 1, y: 0, filter: "blur(0px)" },
660
+ exit: { opacity: 0, y: -2, filter: "blur(4px)" },
661
+ transition: { duration: still ? 0 : 0.18, ease: GLIDE },
662
+ className: "pointer-events-none absolute left-1/2 top-7 z-10 w-56 -translate-x-1/2 rounded-xl bg-[#242423] px-3 py-2 text-xs leading-relaxed text-white shadow-[0_8px_24px_-8px_rgba(0,0,0,0.35)]",
663
+ children: info
664
+ }
665
+ ) })
666
+ ] })
667
+ ] }),
668
+ /* @__PURE__ */ jsxs4("div", { className: "mt-2 flex flex-wrap items-baseline gap-x-3 gap-y-1", children: [
669
+ /* @__PURE__ */ jsxs4(
670
+ "span",
671
+ {
672
+ className: "text-[32px] font-semibold leading-none tracking-tight",
673
+ "aria-live": "polite",
674
+ children: [
675
+ /* @__PURE__ */ jsx4("span", { className: "sr-only", children: headline }),
676
+ /* @__PURE__ */ jsx4(
677
+ RollText,
678
+ {
679
+ text: shown ? headline : zeroed(headline),
680
+ still
681
+ }
682
+ )
683
+ ]
684
+ }
685
+ ),
686
+ /* @__PURE__ */ jsxs4("span", { className: "flex items-center gap-1.5", children: [
687
+ /* @__PURE__ */ jsx4(
688
+ Change,
689
+ {
690
+ change: headChange,
691
+ good: headChange >= 0,
692
+ nudge: active !== null
693
+ }
694
+ ),
695
+ /* @__PURE__ */ jsx4("span", { className: "text-sm text-zinc-400", children: "vs last week" })
696
+ ] })
697
+ ] })
698
+ ] }),
699
+ onDetails && /* @__PURE__ */ jsxs4(
700
+ motion4.button,
701
+ {
702
+ type: "button",
703
+ onClick: onDetails,
704
+ whileTap: still ? void 0 : { scale: 0.95 },
705
+ className: "group/btn flex h-9 shrink-0 cursor-pointer items-center gap-1 overflow-hidden rounded-full bg-[#242423]/[0.05] pl-3.5 pr-2.5 text-sm font-medium outline-none transition-colors hover:bg-[#242423]/[0.09] focus-visible:ring-2 focus-visible:ring-zinc-400",
706
+ children: [
707
+ "Details",
708
+ /* @__PURE__ */ jsxs4("span", { className: "relative grid size-4 place-items-center overflow-hidden", children: [
709
+ /* @__PURE__ */ jsx4(
710
+ ArrowUpRightIcon,
711
+ {
712
+ className: "size-3.5 transition-transform duration-300 ease-out group-hover/btn:-translate-y-4 group-hover/btn:translate-x-4",
713
+ strokeWidth: 2.5
714
+ }
715
+ ),
716
+ /* @__PURE__ */ jsx4(
717
+ ArrowUpRightIcon,
718
+ {
719
+ className: "absolute size-3.5 -translate-x-4 translate-y-4 transition-transform duration-300 ease-out group-hover/btn:translate-x-0 group-hover/btn:translate-y-0",
720
+ strokeWidth: 2.5
721
+ }
722
+ )
723
+ ] })
724
+ ]
725
+ }
726
+ )
727
+ ] }),
728
+ /* @__PURE__ */ jsx4(
729
+ "div",
730
+ {
731
+ role: "img",
732
+ "aria-label": channels.map(
733
+ (c) => `${c.name} ${Math.round(c.sessions / total * 100)}%`
734
+ ).join(", "),
735
+ onPointerMove: pickFromPointer,
736
+ onPointerLeave: () => setActive(null),
737
+ className: "mt-6 flex h-10 cursor-crosshair items-end justify-between",
738
+ children: owner.map((k, i) => {
739
+ const lit = active === null || active === k;
740
+ return /* @__PURE__ */ jsx4(
741
+ motion4.span,
742
+ {
743
+ className: "h-full w-1 origin-bottom rounded-full",
744
+ style: { background: colorOf(k) },
745
+ initial: still ? false : { scaleY: 0.08, opacity: 0 },
746
+ animate: shown ? { scaleY: lit ? 1 : 0.55, opacity: lit ? 1 : 0.22 } : { scaleY: 0.08, opacity: 0 },
747
+ transition: still ? { duration: 0 } : settled ? {
748
+ type: "spring",
749
+ stiffness: 420,
750
+ damping: 30,
751
+ delay: active === null ? 0 : Math.abs(i - TICKS / 2) * 2e-3
752
+ } : {
753
+ duration: 0.6,
754
+ ease: GLIDE,
755
+ delay: 0.25 + i * 0.016
756
+ }
757
+ },
758
+ i
759
+ );
760
+ })
761
+ }
762
+ ),
763
+ /* @__PURE__ */ jsx4("div", { className: "mt-4 flex flex-wrap gap-1.5", children: channels.map((c, i) => {
764
+ const on = active === i;
765
+ return /* @__PURE__ */ jsxs4(
766
+ motion4.button,
767
+ {
768
+ type: "button",
769
+ "aria-pressed": on,
770
+ onPointerEnter: () => setActive(i),
771
+ onPointerLeave: () => setActive(null),
772
+ onFocus: () => setActive(i),
773
+ onBlur: () => setActive(null),
774
+ initial: still ? false : { opacity: 0, y: 6 },
775
+ animate: shown ? { opacity: active === null || on ? 1 : 0.5, y: 0 } : void 0,
776
+ transition: {
777
+ duration: 0.35,
778
+ ease: GLIDE,
779
+ delay: settled || still ? 0 : 0.6 + i * 0.06
780
+ },
781
+ className: "flex h-8 cursor-default items-center gap-2 rounded-full bg-[#242423]/[0.04] pl-2.5 pr-3 text-xs font-medium outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",
782
+ children: [
783
+ /* @__PURE__ */ jsx4(
784
+ motion4.span,
785
+ {
786
+ className: "size-2 rounded-full",
787
+ style: { background: colorOf(i) },
788
+ animate: { scale: on ? 1.5 : 1 },
789
+ transition: { type: "spring", stiffness: 500, damping: 20 }
790
+ }
791
+ ),
792
+ c.name,
793
+ /* @__PURE__ */ jsxs4("span", { className: "tabular-nums text-zinc-400", children: [
794
+ Math.round(c.sessions / total * 100),
795
+ "%"
796
+ ] })
797
+ ]
798
+ },
799
+ c.name
800
+ );
801
+ }) }),
802
+ /* @__PURE__ */ jsx4("div", { "aria-hidden": true, className: "-mx-6 my-5 h-px bg-[#242423]/[0.07]" }),
803
+ /* @__PURE__ */ jsxs4(
804
+ "div",
805
+ {
806
+ role: "table",
807
+ "aria-label": "Channel metrics",
808
+ onPointerLeave: () => setRow(null),
809
+ children: [
810
+ /* @__PURE__ */ jsxs4(
811
+ "div",
812
+ {
813
+ role: "row",
814
+ className: "grid grid-cols-[1fr_auto_80px] gap-3 px-2 pb-2 text-xs text-zinc-400",
815
+ children: [
816
+ /* @__PURE__ */ jsx4("span", { role: "columnheader", children: "Metric" }),
817
+ /* @__PURE__ */ jsx4("span", { role: "columnheader", className: "text-right", children: "Value" }),
818
+ /* @__PURE__ */ jsx4("span", { role: "columnheader", className: "text-right", children: "Change" })
819
+ ]
820
+ }
821
+ ),
822
+ metrics.map((m, i) => {
823
+ const Icon = ICONS[m.icon];
824
+ const good = m.change >= 0 === (m.higherIsBetter ?? true);
825
+ const on = row === i;
826
+ return /* @__PURE__ */ jsxs4(
827
+ motion4.div,
828
+ {
829
+ role: "row",
830
+ tabIndex: 0,
831
+ onPointerEnter: () => setRow(i),
832
+ onFocus: () => setRow(i),
833
+ onBlur: () => setRow(null),
834
+ initial: still ? false : { opacity: 0, y: 8 },
835
+ animate: shown ? { opacity: 1, y: 0 } : void 0,
836
+ transition: {
837
+ duration: 0.4,
838
+ ease: GLIDE,
839
+ delay: still ? 0 : 0.7 + i * 0.07
840
+ },
841
+ className: "relative grid h-11 grid-cols-[1fr_auto_80px] items-center gap-3 rounded-xl px-2 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-zinc-300",
842
+ children: [
843
+ on && /* @__PURE__ */ jsx4(
844
+ motion4.span,
845
+ {
846
+ layoutId: `${id}-row`,
847
+ className: "absolute inset-0 rounded-xl bg-[#242423]/[0.04]",
848
+ transition: still ? { duration: 0 } : PILL
849
+ }
850
+ ),
851
+ /* @__PURE__ */ jsxs4(
852
+ "span",
853
+ {
854
+ role: "cell",
855
+ className: "relative flex min-w-0 items-center gap-2.5 text-sm font-medium",
856
+ children: [
857
+ /* @__PURE__ */ jsx4(
858
+ "span",
859
+ {
860
+ className: cn(
861
+ "grid size-5 place-items-center transition-colors",
862
+ on ? "text-[#242423]" : "text-zinc-400"
863
+ ),
864
+ children: /* @__PURE__ */ jsx4(Icon, { className: "size-[18px]", active: on })
865
+ }
866
+ ),
867
+ /* @__PURE__ */ jsx4("span", { className: "truncate", children: m.label })
868
+ ]
869
+ }
870
+ ),
871
+ /* @__PURE__ */ jsxs4(
872
+ "span",
873
+ {
874
+ role: "cell",
875
+ className: "relative flex items-center justify-end text-sm tabular-nums text-zinc-600",
876
+ children: [
877
+ /* @__PURE__ */ jsx4("span", { className: "sr-only", children: m.value }),
878
+ /* @__PURE__ */ jsx4(
879
+ RollText,
880
+ {
881
+ text: shown ? m.value : zeroed(m.value),
882
+ still
883
+ }
884
+ )
885
+ ]
886
+ }
887
+ ),
888
+ /* @__PURE__ */ jsx4("span", { role: "cell", className: "relative flex justify-end", children: /* @__PURE__ */ jsx4(Change, { change: m.change, good, nudge: on }) })
889
+ ]
890
+ },
891
+ m.label
892
+ );
893
+ })
894
+ ]
895
+ }
896
+ )
897
+ ]
898
+ }
899
+ )
900
+ ]
901
+ }
902
+ );
903
+ }
904
+ );
905
+
906
+ export {
907
+ ChannelMix
908
+ };