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,1033 @@
1
+ "use client";
2
+ import {
3
+ ChevronDownIcon
4
+ } from "./chunk-NIQFSLPC.js";
5
+ import {
6
+ RotateCCWIcon
7
+ } from "./chunk-YURGXJSP.js";
8
+ import {
9
+ CheckIcon
10
+ } from "./chunk-JHT6RCGY.js";
11
+ import {
12
+ cn
13
+ } from "./chunk-2TQSHVXA.js";
14
+
15
+ // src/components/booking-card/booking-card.tsx
16
+ import * as React from "react";
17
+ import {
18
+ AnimatePresence,
19
+ LayoutGroup,
20
+ motion,
21
+ useReducedMotion
22
+ } from "motion/react";
23
+ import gsap from "gsap";
24
+ import { useGSAP } from "@gsap/react";
25
+ import { ArrowRight, CalendarPlus } from "lucide-react";
26
+ import { jsx, jsxs } from "react/jsx-runtime";
27
+ gsap.registerPlugin(useGSAP);
28
+ var PILL = { type: "spring", stiffness: 420, damping: 34 };
29
+ var GLIDE = [0.22, 1, 0.36, 1];
30
+ var DEFAULT_TIMES = ["09:00", "10:30", "13:00", "15:30", "18:00"];
31
+ var SUCCESS = "#269a5a";
32
+ var sameDay = (a, b) => a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
33
+ var fmt = (d, opts) => d.toLocaleDateString("en-US", opts);
34
+ function defaultTaken(date, times) {
35
+ const seed = date.getDate() * 7 + date.getMonth() * 3;
36
+ return times.filter(
37
+ (_, i) => (seed + i * 5) % 7 === 0 || (seed + i) % 5 === 0
38
+ );
39
+ }
40
+ function Rolling({ text, still }) {
41
+ return /* @__PURE__ */ jsx("span", { className: "relative inline-grid overflow-hidden", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
42
+ motion.span,
43
+ {
44
+ className: "whitespace-nowrap",
45
+ initial: still ? { opacity: 0 } : { opacity: 0, y: "70%", filter: "blur(4px)" },
46
+ animate: { opacity: 1, y: 0, filter: "blur(0px)" },
47
+ exit: still ? { opacity: 0 } : { opacity: 0, y: "-70%", filter: "blur(4px)" },
48
+ transition: { duration: 0.32, ease: GLIDE },
49
+ children: text
50
+ },
51
+ text
52
+ ) }) });
53
+ }
54
+ function roving(e, list, current, enabled, pick) {
55
+ const step = e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : e.key === "ArrowLeft" || e.key === "ArrowUp" ? -1 : 0;
56
+ if (!step) return;
57
+ e.preventDefault();
58
+ for (let i = current + step; i >= 0 && i < list.length; i += step)
59
+ if (enabled(list[i])) return pick(i);
60
+ }
61
+ function MonthMenu({
62
+ months,
63
+ current,
64
+ onPick,
65
+ still
66
+ }) {
67
+ const [open, setOpen] = React.useState(false);
68
+ const [hover, setHover] = React.useState(current);
69
+ const root = React.useRef(null);
70
+ const button = React.useRef(null);
71
+ const options = React.useRef([]);
72
+ const id = React.useId();
73
+ React.useEffect(() => {
74
+ if (!open) return;
75
+ setHover(current);
76
+ requestAnimationFrame(() => options.current[current]?.focus());
77
+ const away = (e) => {
78
+ if (!root.current?.contains(e.target)) setOpen(false);
79
+ };
80
+ document.addEventListener("pointerdown", away);
81
+ return () => document.removeEventListener("pointerdown", away);
82
+ }, [open, current]);
83
+ const choose = (i, keyboard) => {
84
+ onPick(i);
85
+ setOpen(false);
86
+ if (keyboard) button.current?.focus();
87
+ };
88
+ const onKey = (e) => {
89
+ if (e.key === "Escape") {
90
+ e.preventDefault();
91
+ setOpen(false);
92
+ button.current?.focus();
93
+ return;
94
+ }
95
+ const step = e.key === "ArrowDown" ? 1 : e.key === "ArrowUp" ? -1 : 0;
96
+ if (!step) return;
97
+ e.preventDefault();
98
+ const next = Math.max(0, Math.min(months.length - 1, hover + step));
99
+ setHover(next);
100
+ options.current[next]?.focus();
101
+ };
102
+ return /* @__PURE__ */ jsxs("div", { ref: root, className: "relative shrink-0", onKeyDown: onKey, children: [
103
+ /* @__PURE__ */ jsxs(
104
+ motion.button,
105
+ {
106
+ ref: button,
107
+ type: "button",
108
+ "aria-haspopup": "listbox",
109
+ "aria-expanded": open,
110
+ "aria-controls": `${id}-list`,
111
+ "aria-label": `Month, ${months[current]?.label}`,
112
+ onClick: () => setOpen((o) => !o),
113
+ whileTap: still ? void 0 : { scale: 0.96 },
114
+ className: "flex h-8 cursor-pointer items-center gap-1 rounded-full bg-zinc-100 pl-3 pr-2 text-xs font-medium outline-none transition-colors hover:bg-zinc-200/80 focus-visible:ring-2 focus-visible:ring-zinc-400 dark:bg-white/6 dark:hover:bg-white/10",
115
+ children: [
116
+ /* @__PURE__ */ jsx(Rolling, { text: months[current]?.label ?? "", still }),
117
+ /* @__PURE__ */ jsx(
118
+ motion.span,
119
+ {
120
+ "aria-hidden": true,
121
+ animate: { rotate: open ? 180 : 0 },
122
+ transition: still ? { duration: 0 } : PILL,
123
+ className: "grid",
124
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 text-zinc-500", strokeWidth: 2.25 })
125
+ }
126
+ )
127
+ ]
128
+ }
129
+ ),
130
+ /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsx(
131
+ motion.div,
132
+ {
133
+ id: `${id}-list`,
134
+ role: "listbox",
135
+ "aria-label": "Month",
136
+ initial: still ? { opacity: 0 } : { opacity: 0, scale: 0.92, y: -4, filter: "blur(4px)" },
137
+ animate: { opacity: 1, scale: 1, y: 0, filter: "blur(0px)" },
138
+ exit: still ? { opacity: 0 } : { opacity: 0, scale: 0.96, y: -4, filter: "blur(4px)" },
139
+ transition: { duration: 0.22, ease: GLIDE },
140
+ style: { transformOrigin: "top right" },
141
+ className: "absolute right-0 top-full z-20 mt-2 w-44 rounded-2xl bg-white p-1 shadow-[0_1px_2px_rgba(0,0,0,0.06),0_16px_40px_-12px_rgba(0,0,0,0.28)] ring-1 ring-black/5 dark:bg-zinc-800 dark:ring-white/10",
142
+ onPointerLeave: () => setHover(current),
143
+ children: months.map((m, i) => /* @__PURE__ */ jsxs(
144
+ "button",
145
+ {
146
+ ref: (el) => void (options.current[i] = el),
147
+ type: "button",
148
+ role: "option",
149
+ "aria-selected": i === current,
150
+ tabIndex: i === hover ? 0 : -1,
151
+ onPointerEnter: () => setHover(i),
152
+ onFocus: () => setHover(i),
153
+ onClick: (e) => choose(i, e.detail === 0),
154
+ className: "relative flex h-9 w-full cursor-pointer items-center justify-between rounded-xl px-3 text-left text-sm outline-none",
155
+ children: [
156
+ i === hover && /* @__PURE__ */ jsx(
157
+ motion.span,
158
+ {
159
+ layoutId: `${id}-hover`,
160
+ className: "absolute inset-0 rounded-xl bg-zinc-100 dark:bg-white/8",
161
+ transition: still ? { duration: 0 } : PILL
162
+ }
163
+ ),
164
+ /* @__PURE__ */ jsx("span", { className: "relative", children: m.label }),
165
+ i === current && /* @__PURE__ */ jsx(
166
+ CheckIcon,
167
+ {
168
+ className: "relative size-4",
169
+ strokeWidth: 2.25,
170
+ "aria-hidden": true
171
+ }
172
+ )
173
+ ]
174
+ },
175
+ m.key
176
+ ))
177
+ }
178
+ ) })
179
+ ] });
180
+ }
181
+ function sealPath(bumps = 9, depth = 0.085, r = 42) {
182
+ const pts = [];
183
+ for (let i = 0; i <= 180; i++) {
184
+ const t = i / 180 * Math.PI * 2;
185
+ const rr = r * (1 + depth * Math.cos(bumps * t));
186
+ pts.push(
187
+ `${(50 + Math.cos(t) * rr).toFixed(2)} ${(50 + Math.sin(t) * rr).toFixed(2)}`
188
+ );
189
+ }
190
+ return `M${pts.join(" L")}Z`;
191
+ }
192
+ var SEAL = sealPath();
193
+ function SuccessSeal({ accent, still }) {
194
+ const ref = React.useRef(null);
195
+ useGSAP(
196
+ () => {
197
+ const q = (sel) => ref.current.querySelectorAll(sel);
198
+ if (still) {
199
+ gsap.set(q(".seal-tick"), { strokeDashoffset: 0 });
200
+ return;
201
+ }
202
+ gsap.timeline({ delay: 0.6 }).from(q(".seal"), {
203
+ scale: 0,
204
+ rotation: -60,
205
+ svgOrigin: "60 60",
206
+ duration: 0.7,
207
+ ease: "back.out(1.9)"
208
+ }).to(
209
+ q(".seal-tick"),
210
+ { strokeDashoffset: 0, duration: 0.35, ease: "power2.out" },
211
+ 0.32
212
+ ).fromTo(
213
+ q(".spark"),
214
+ {
215
+ autoAlpha: 1,
216
+ attr: { "stroke-dashoffset": 1 },
217
+ scale: 0.6,
218
+ svgOrigin: "60 60"
219
+ },
220
+ {
221
+ attr: { "stroke-dashoffset": 0 },
222
+ scale: 1,
223
+ duration: 0.35,
224
+ ease: "power3.out",
225
+ stagger: 0.02
226
+ },
227
+ 0.28
228
+ ).to(
229
+ q(".spark"),
230
+ {
231
+ autoAlpha: 0,
232
+ scale: 1.18,
233
+ svgOrigin: "60 60",
234
+ duration: 0.45,
235
+ ease: "power2.in",
236
+ stagger: 0.02
237
+ },
238
+ 0.62
239
+ ).fromTo(
240
+ q(".dot"),
241
+ { autoAlpha: 1, scale: 0.3, svgOrigin: "60 60" },
242
+ {
243
+ scale: 1.35,
244
+ autoAlpha: 0,
245
+ duration: 0.9,
246
+ ease: "power2.out",
247
+ stagger: 0.03
248
+ },
249
+ 0.3
250
+ ).to(
251
+ q(".seal-wrap"),
252
+ { y: -3, duration: 1.6, ease: "sine.inOut", repeat: -1, yoyo: true },
253
+ 1.1
254
+ );
255
+ },
256
+ { scope: ref }
257
+ );
258
+ const sparks = Array.from({ length: 8 }, (_, i) => {
259
+ const a = i / 8 * Math.PI * 2 - Math.PI / 2 + 0.2;
260
+ return {
261
+ x1: 60 + Math.cos(a) * 48,
262
+ y1: 60 + Math.sin(a) * 48,
263
+ x2: 60 + Math.cos(a) * 58,
264
+ y2: 60 + Math.sin(a) * 58
265
+ };
266
+ });
267
+ const dots = Array.from({ length: 6 }, (_, i) => {
268
+ const a = i / 6 * Math.PI * 2 + 0.5;
269
+ return { cx: 60 + Math.cos(a) * 54, cy: 60 + Math.sin(a) * 54 };
270
+ });
271
+ return /* @__PURE__ */ jsxs(
272
+ "svg",
273
+ {
274
+ ref,
275
+ viewBox: "0 0 120 120",
276
+ className: "size-[104px] overflow-visible",
277
+ "aria-hidden": true,
278
+ children: [
279
+ sparks.map((p, i) => /* @__PURE__ */ jsx(
280
+ "line",
281
+ {
282
+ className: "spark",
283
+ ...p,
284
+ stroke: accent,
285
+ strokeWidth: "3",
286
+ strokeLinecap: "round",
287
+ pathLength: 1,
288
+ strokeDasharray: "1",
289
+ style: { visibility: "hidden" }
290
+ },
291
+ i
292
+ )),
293
+ dots.map((p, i) => /* @__PURE__ */ jsx(
294
+ "circle",
295
+ {
296
+ className: "dot",
297
+ ...p,
298
+ r: "2.4",
299
+ fill: i % 2 ? "#f5c542" : accent,
300
+ style: { visibility: "hidden" }
301
+ },
302
+ i
303
+ )),
304
+ /* @__PURE__ */ jsx("g", { className: "seal-wrap", children: /* @__PURE__ */ jsxs("g", { className: "seal", children: [
305
+ /* @__PURE__ */ jsx("path", { d: SEAL, transform: "translate(10 10)", fill: accent }),
306
+ /* @__PURE__ */ jsx(
307
+ "path",
308
+ {
309
+ className: "seal-tick",
310
+ d: "M44 61l11 11 22-23",
311
+ fill: "none",
312
+ stroke: "#fff",
313
+ strokeWidth: "7",
314
+ strokeLinecap: "round",
315
+ strokeLinejoin: "round",
316
+ pathLength: 1,
317
+ strokeDasharray: "1",
318
+ strokeDashoffset: "1"
319
+ }
320
+ )
321
+ ] }) })
322
+ ]
323
+ }
324
+ );
325
+ }
326
+ function MiniClock({ time, still }) {
327
+ const root = React.useRef(null);
328
+ const [h, m] = time.split(":").map(Number);
329
+ useGSAP(
330
+ () => {
331
+ const hour = (h % 12 + (m || 0) / 60) * 30;
332
+ const minute = (m || 0) * 6;
333
+ const o = {
334
+ svgOrigin: "12 12",
335
+ ease: "power3.out",
336
+ duration: still ? 0 : 1.2,
337
+ delay: still ? 0 : 1.2
338
+ };
339
+ gsap.fromTo("[data-hour]", { rotation: 0 }, { rotation: hour, ...o });
340
+ gsap.fromTo(
341
+ "[data-minute]",
342
+ { rotation: 0 },
343
+ { rotation: minute + (still ? 0 : 360), ...o }
344
+ );
345
+ },
346
+ { scope: root, dependencies: [time] }
347
+ );
348
+ return /* @__PURE__ */ jsxs(
349
+ "svg",
350
+ {
351
+ ref: root,
352
+ viewBox: "0 0 24 24",
353
+ className: "size-5",
354
+ fill: "none",
355
+ stroke: "currentColor",
356
+ strokeWidth: "2",
357
+ strokeLinecap: "round",
358
+ "aria-hidden": true,
359
+ children: [
360
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
361
+ /* @__PURE__ */ jsx("line", { "data-hour": true, x1: "12", y1: "12", x2: "12", y2: "7.5" }),
362
+ /* @__PURE__ */ jsx("line", { "data-minute": true, x1: "12", y1: "12", x2: "12", y2: "5.5" })
363
+ ]
364
+ }
365
+ );
366
+ }
367
+ function MiniCalendar({ still }) {
368
+ const root = React.useRef(null);
369
+ useGSAP(
370
+ () => {
371
+ if (still) return;
372
+ gsap.from("[data-page]", {
373
+ scaleY: 0,
374
+ svgOrigin: "12 5",
375
+ duration: 0.45,
376
+ delay: 1.1,
377
+ ease: "back.out(2)"
378
+ });
379
+ gsap.from("[data-dot]", {
380
+ scale: 0,
381
+ svgOrigin: "12 15",
382
+ duration: 0.35,
383
+ delay: 1.45,
384
+ ease: "back.out(4)"
385
+ });
386
+ },
387
+ { scope: root }
388
+ );
389
+ return /* @__PURE__ */ jsxs(
390
+ "svg",
391
+ {
392
+ ref: root,
393
+ viewBox: "0 0 24 24",
394
+ className: "size-5",
395
+ fill: "none",
396
+ stroke: "currentColor",
397
+ strokeWidth: "2",
398
+ strokeLinecap: "round",
399
+ strokeLinejoin: "round",
400
+ "aria-hidden": true,
401
+ children: [
402
+ /* @__PURE__ */ jsxs("g", { "data-page": true, children: [
403
+ /* @__PURE__ */ jsx("rect", { x: "3.5", y: "5", width: "17", height: "15.5", rx: "3" }),
404
+ /* @__PURE__ */ jsx("line", { x1: "3.5", y1: "10", x2: "20.5", y2: "10" })
405
+ ] }),
406
+ /* @__PURE__ */ jsx("line", { x1: "8.5", y1: "3", x2: "8.5", y2: "6.5" }),
407
+ /* @__PURE__ */ jsx("line", { x1: "15.5", y1: "3", x2: "15.5", y2: "6.5" }),
408
+ /* @__PURE__ */ jsx(
409
+ "circle",
410
+ {
411
+ "data-dot": true,
412
+ cx: "12",
413
+ cy: "15",
414
+ r: "1.75",
415
+ fill: "currentColor",
416
+ stroke: "none"
417
+ }
418
+ )
419
+ ]
420
+ }
421
+ );
422
+ }
423
+ var STAGGER = {
424
+ hidden: {},
425
+ shown: { transition: { staggerChildren: 0.07, delayChildren: 0.75 } }
426
+ };
427
+ var RISE = {
428
+ hidden: { opacity: 0, y: 12, filter: "blur(4px)" },
429
+ shown: {
430
+ opacity: 1,
431
+ y: 0,
432
+ filter: "blur(0px)",
433
+ transition: { duration: 0.45, ease: GLIDE }
434
+ }
435
+ };
436
+ function Confirmation({
437
+ date,
438
+ time,
439
+ title,
440
+ text,
441
+ onChange,
442
+ onAdd,
443
+ still
444
+ }) {
445
+ const [added, setAdded] = React.useState(false);
446
+ const focus = React.useRef(null);
447
+ React.useEffect(() => focus.current?.focus(), []);
448
+ return /* @__PURE__ */ jsxs(
449
+ motion.div,
450
+ {
451
+ className: "absolute inset-0 flex flex-col p-6",
452
+ initial: { opacity: 0 },
453
+ animate: { opacity: 1 },
454
+ exit: { opacity: 0, transition: { duration: 0.2 } },
455
+ transition: { duration: 0.3, delay: still ? 0 : 0.45 },
456
+ children: [
457
+ /* @__PURE__ */ jsxs(
458
+ motion.div,
459
+ {
460
+ variants: still ? void 0 : STAGGER,
461
+ initial: "hidden",
462
+ animate: "shown",
463
+ className: "flex flex-1 flex-col items-center justify-center text-center",
464
+ children: [
465
+ /* @__PURE__ */ jsx(SuccessSeal, { accent: SUCCESS, still }),
466
+ /* @__PURE__ */ jsx(
467
+ motion.h3,
468
+ {
469
+ ref: focus,
470
+ tabIndex: -1,
471
+ variants: still ? void 0 : RISE,
472
+ className: "mt-2 text-lg font-semibold tracking-tight outline-none",
473
+ children: title
474
+ }
475
+ ),
476
+ /* @__PURE__ */ jsx(
477
+ motion.p,
478
+ {
479
+ variants: still ? void 0 : RISE,
480
+ className: "mt-1 text-sm text-zinc-500 dark:text-zinc-400",
481
+ children: text
482
+ }
483
+ ),
484
+ /* @__PURE__ */ jsx(
485
+ motion.div,
486
+ {
487
+ variants: still ? void 0 : RISE,
488
+ className: "mt-5 grid w-full grid-cols-2 gap-2 text-left",
489
+ children: [
490
+ {
491
+ icon: /* @__PURE__ */ jsx(MiniCalendar, { still }),
492
+ label: "Date",
493
+ value: fmt(date, {
494
+ weekday: "short",
495
+ month: "short",
496
+ day: "numeric"
497
+ })
498
+ },
499
+ {
500
+ icon: /* @__PURE__ */ jsx(MiniClock, { time, still }),
501
+ label: "Time",
502
+ value: time
503
+ }
504
+ ].map((d) => /* @__PURE__ */ jsxs(
505
+ motion.div,
506
+ {
507
+ whileHover: still ? void 0 : { y: -2 },
508
+ transition: PILL,
509
+ className: "flex items-center gap-3 rounded-2xl bg-zinc-100 p-3 dark:bg-white/6",
510
+ children: [
511
+ /* @__PURE__ */ jsx("span", { className: "grid size-10 shrink-0 place-items-center rounded-full bg-white text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.06)] dark:bg-zinc-800 dark:text-zinc-100", children: d.icon }),
512
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
513
+ /* @__PURE__ */ jsx("span", { className: "block text-xs text-zinc-500 dark:text-zinc-400", children: d.label }),
514
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-medium tabular-nums", children: d.value })
515
+ ] })
516
+ ]
517
+ },
518
+ d.label
519
+ ))
520
+ }
521
+ )
522
+ ]
523
+ }
524
+ ),
525
+ /* @__PURE__ */ jsxs(
526
+ motion.div,
527
+ {
528
+ initial: still ? false : { opacity: 0, y: 12 },
529
+ animate: { opacity: 1, y: 0 },
530
+ transition: { duration: 0.45, ease: GLIDE, delay: still ? 0 : 1.05 },
531
+ className: "mt-5 flex gap-2",
532
+ children: [
533
+ /* @__PURE__ */ jsxs(
534
+ motion.button,
535
+ {
536
+ type: "button",
537
+ onClick: onChange,
538
+ whileTap: still ? void 0 : { scale: 0.96 },
539
+ className: "group flex h-12 cursor-pointer items-center gap-2 rounded-full bg-zinc-100 px-5 text-sm font-medium outline-none transition-colors hover:bg-zinc-200/80 focus-visible:ring-2 focus-visible:ring-zinc-400 dark:bg-white/6 dark:hover:bg-white/10",
540
+ children: [
541
+ /* @__PURE__ */ jsx(
542
+ RotateCCWIcon,
543
+ {
544
+ className: "size-4 transition-transform duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:-rotate-[200deg]",
545
+ strokeWidth: 2.25,
546
+ "aria-hidden": true
547
+ }
548
+ ),
549
+ "Change"
550
+ ]
551
+ }
552
+ ),
553
+ /* @__PURE__ */ jsxs(
554
+ motion.button,
555
+ {
556
+ type: "button",
557
+ onClick: () => {
558
+ if (added) return;
559
+ setAdded(true);
560
+ onAdd?.();
561
+ },
562
+ whileTap: still || added ? void 0 : { scale: 0.98 },
563
+ animate: { backgroundColor: added ? SUCCESS : "#242423" },
564
+ transition: { duration: still ? 0 : 0.3, ease: GLIDE },
565
+ className: "flex h-12 flex-1 cursor-pointer items-center justify-center gap-2 rounded-full text-sm font-medium text-white outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-zinc-900",
566
+ children: [
567
+ /* @__PURE__ */ jsx("span", { className: "relative grid size-4 place-items-center", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
568
+ motion.span,
569
+ {
570
+ className: "grid",
571
+ initial: still ? { opacity: 0 } : { opacity: 0, scale: 0.4, rotate: -90 },
572
+ animate: { opacity: 1, scale: 1, rotate: 0 },
573
+ exit: still ? { opacity: 0 } : { opacity: 0, scale: 0.4, rotate: 90 },
574
+ transition: { type: "spring", stiffness: 500, damping: 24 },
575
+ children: added ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-4", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx(
576
+ CalendarPlus,
577
+ {
578
+ className: "size-4",
579
+ strokeWidth: 2.25,
580
+ "aria-hidden": true
581
+ }
582
+ )
583
+ },
584
+ added ? "check" : "plus"
585
+ ) }) }),
586
+ /* @__PURE__ */ jsx(
587
+ Rolling,
588
+ {
589
+ text: added ? "Added to calendar" : "Add to calendar",
590
+ still
591
+ }
592
+ )
593
+ ]
594
+ }
595
+ )
596
+ ]
597
+ }
598
+ )
599
+ ]
600
+ }
601
+ );
602
+ }
603
+ var BookingCard = React.forwardRef(
604
+ function BookingCard2({
605
+ title = "Book a free trial",
606
+ subtitle = "Every new member gets one class on us. Pick a date below to get started.",
607
+ start,
608
+ days = 45,
609
+ times = DEFAULT_TIMES,
610
+ isUnavailable = (d) => d.getDay() === 0,
611
+ takenTimes,
612
+ cta = "Book a trial",
613
+ doneTitle = "You're booked",
614
+ doneText = "We sent the details to your inbox. See you soon.",
615
+ onAddToCalendar,
616
+ onBook,
617
+ className
618
+ }, ref) {
619
+ const still = !!useReducedMotion();
620
+ const id = React.useId();
621
+ const strip = React.useRef(null);
622
+ const dayRefs = React.useRef([]);
623
+ const timeRefs = React.useRef([]);
624
+ const dates = React.useMemo(() => {
625
+ const first = start ? new Date(start) : /* @__PURE__ */ new Date();
626
+ first.setHours(0, 0, 0, 0);
627
+ return Array.from({ length: Math.max(1, days) }, (_, i) => {
628
+ const d = new Date(first);
629
+ d.setDate(first.getDate() + i);
630
+ return d;
631
+ });
632
+ }, [start?.getTime(), days]);
633
+ const months = React.useMemo(() => {
634
+ const list = [];
635
+ dates.forEach((d, i) => {
636
+ const key = `${d.getFullYear()}-${d.getMonth()}`;
637
+ if (list[list.length - 1]?.key !== key)
638
+ list.push({
639
+ key,
640
+ label: fmt(d, { month: "long", year: "numeric" }),
641
+ first: i
642
+ });
643
+ });
644
+ return list;
645
+ }, [dates]);
646
+ const [view, setView] = React.useState(0);
647
+ const onStripScroll = () => {
648
+ const box = strip.current;
649
+ if (!box) return;
650
+ const edge = box.scrollLeft + 24;
651
+ let i = dayRefs.current.findIndex(
652
+ (el) => el && el.offsetLeft + el.offsetWidth / 2 >= edge
653
+ );
654
+ if (i < 0) i = dates.length - 1;
655
+ const key = `${dates[i].getFullYear()}-${dates[i].getMonth()}`;
656
+ const m = months.findIndex((x) => x.key === key);
657
+ if (m >= 0 && m !== view) setView(m);
658
+ };
659
+ const showMonth = (m) => {
660
+ setView(m);
661
+ const box = strip.current;
662
+ const el = dayRefs.current[months[m].first];
663
+ if (box && el)
664
+ box.scrollTo({
665
+ left: el.offsetLeft - 24,
666
+ behavior: still ? "auto" : "smooth"
667
+ });
668
+ };
669
+ const [day, setDay] = React.useState(null);
670
+ const [time, setTime] = React.useState(null);
671
+ const [phase, setPhase] = React.useState("idle");
672
+ const taken = React.useMemo(
673
+ () => day ? takenTimes?.(day) ?? defaultTaken(day, times) : [],
674
+ [day, takenTimes, times]
675
+ );
676
+ const ready = !!day && !!time;
677
+ const locked = phase !== "idle";
678
+ const pickDay = (i, focus = false) => {
679
+ const d = dates[i];
680
+ if (locked || isUnavailable(d)) return;
681
+ setDay(d);
682
+ setTime(null);
683
+ const el = dayRefs.current[i];
684
+ if (focus) el?.focus();
685
+ const box = strip.current;
686
+ if (el && box)
687
+ box.scrollTo({
688
+ left: el.offsetLeft - (box.clientWidth - el.offsetWidth) / 2,
689
+ behavior: still ? "auto" : "smooth"
690
+ });
691
+ };
692
+ const pickTime = (i, focus = false) => {
693
+ const t = times[i];
694
+ if (locked || taken.includes(t)) return;
695
+ setTime(t);
696
+ if (focus) timeRefs.current[i]?.focus();
697
+ };
698
+ const book = async () => {
699
+ if (!ready || locked) return;
700
+ setPhase("loading");
701
+ try {
702
+ await Promise.all([
703
+ onBook?.({ date: day, time }),
704
+ new Promise((r) => setTimeout(r, still ? 200 : 900))
705
+ ]);
706
+ setPhase("done");
707
+ } catch {
708
+ setPhase("idle");
709
+ }
710
+ };
711
+ const reset = () => setPhase("idle");
712
+ const picker = React.useRef(null);
713
+ React.useEffect(() => {
714
+ if (picker.current) picker.current.inert = phase === "done";
715
+ }, [phase]);
716
+ const slot = day ? `${fmt(day, { weekday: "short", month: "short", day: "numeric" })}${time ? `, ${time}` : ""}` : "";
717
+ const label = phase === "loading" ? "Booking" : phase === "done" ? "Booked" : ready ? `${cta} for ${slot}` : day ? "Pick a time" : cta;
718
+ const status = phase === "done" ? `Booked for ${slot}.` : phase === "loading" ? "Booking." : time ? `${slot} selected.` : day ? `${fmt(day, { weekday: "long", month: "long", day: "numeric" })} selected. Pick a time.` : "";
719
+ const dayIndex = day ? dates.findIndex((d) => sameDay(d, day)) : -1;
720
+ const timeIndex = time ? times.indexOf(time) : -1;
721
+ const firstOpenDay = dates.findIndex((d) => !isUnavailable(d));
722
+ const firstOpenTime = times.findIndex((t) => !taken.includes(t));
723
+ return /* @__PURE__ */ jsxs(
724
+ "div",
725
+ {
726
+ ref,
727
+ className: cn(
728
+ "relative w-[400px] max-w-full overflow-hidden rounded-3xl bg-white text-zinc-900 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)] dark:bg-zinc-900 dark:text-zinc-100",
729
+ className
730
+ ),
731
+ children: [
732
+ /* @__PURE__ */ jsxs(
733
+ motion.div,
734
+ {
735
+ ref: picker,
736
+ "aria-hidden": phase === "done",
737
+ animate: phase === "done" ? {
738
+ opacity: 0,
739
+ scale: still ? 1 : 0.97,
740
+ filter: still ? "blur(0px)" : "blur(6px)"
741
+ } : { opacity: 1, scale: 1, filter: "blur(0px)" },
742
+ transition: {
743
+ duration: still ? 0 : 0.35,
744
+ ease: GLIDE,
745
+ delay: phase === "done" && !still ? 0.35 : 0
746
+ },
747
+ className: "p-6",
748
+ children: [
749
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
750
+ /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold tracking-tight", children: title }),
751
+ months.length > 0 && /* @__PURE__ */ jsx(
752
+ MonthMenu,
753
+ {
754
+ months,
755
+ current: Math.min(view, months.length - 1),
756
+ onPick: showMonth,
757
+ still
758
+ }
759
+ )
760
+ ] }),
761
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-zinc-500 dark:text-zinc-400", children: subtitle }),
762
+ /* @__PURE__ */ jsxs(LayoutGroup, { id, children: [
763
+ /* @__PURE__ */ jsx(
764
+ "div",
765
+ {
766
+ ref: strip,
767
+ role: "radiogroup",
768
+ "aria-label": "Date",
769
+ onScroll: onStripScroll,
770
+ className: "relative -mx-6 mt-5 flex snap-x scroll-px-6 gap-2 overflow-x-auto px-6 py-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
771
+ style: {
772
+ maskImage: "linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent)",
773
+ WebkitMaskImage: "linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent)"
774
+ },
775
+ children: dates.map((d, i) => {
776
+ const off = isUnavailable(d);
777
+ const on = i === dayIndex;
778
+ return /* @__PURE__ */ jsxs(
779
+ motion.button,
780
+ {
781
+ ref: (el) => void (dayRefs.current[i] = el),
782
+ type: "button",
783
+ role: "radio",
784
+ "aria-checked": on,
785
+ "aria-disabled": off || locked,
786
+ "aria-label": `${fmt(d, { weekday: "long", month: "long", day: "numeric" })}${off ? ", unavailable" : ""}`,
787
+ tabIndex: on || dayIndex < 0 && i === firstOpenDay ? 0 : -1,
788
+ onClick: () => pickDay(i),
789
+ onKeyDown: (e) => roving(
790
+ e,
791
+ dates,
792
+ dayIndex < 0 ? i : dayIndex,
793
+ (x) => !isUnavailable(x),
794
+ (j) => pickDay(j, true)
795
+ ),
796
+ whileTap: off || locked || still ? void 0 : { scale: 0.94 },
797
+ className: cn(
798
+ "relative flex h-[72px] w-14 shrink-0 snap-start flex-col items-center justify-center rounded-2xl outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",
799
+ off ? "cursor-not-allowed text-zinc-300 dark:text-zinc-600" : "cursor-pointer",
800
+ !off && !on && "bg-zinc-100 transition-colors hover:bg-zinc-200/80 dark:bg-white/6 dark:hover:bg-white/10",
801
+ off && "bg-zinc-50 dark:bg-white/[0.03]"
802
+ ),
803
+ children: [
804
+ on && /* @__PURE__ */ jsx(
805
+ motion.span,
806
+ {
807
+ layoutId: "day-pill",
808
+ className: "absolute inset-0 rounded-2xl bg-[#242423] dark:bg-white",
809
+ transition: still ? { duration: 0 } : PILL
810
+ }
811
+ ),
812
+ /* @__PURE__ */ jsx(
813
+ "span",
814
+ {
815
+ className: cn(
816
+ "relative text-xs font-medium transition-colors duration-200",
817
+ on ? "text-white/70 dark:text-zinc-500" : !off && "text-zinc-500 dark:text-zinc-400"
818
+ ),
819
+ children: fmt(d, { weekday: "short" })
820
+ }
821
+ ),
822
+ /* @__PURE__ */ jsx(
823
+ "span",
824
+ {
825
+ className: cn(
826
+ "relative mt-0.5 text-xl font-semibold tabular-nums transition-colors duration-200",
827
+ on && "text-white dark:text-zinc-900",
828
+ off && "line-through decoration-1"
829
+ ),
830
+ children: d.getDate()
831
+ }
832
+ )
833
+ ]
834
+ },
835
+ d.toISOString()
836
+ );
837
+ })
838
+ }
839
+ ),
840
+ /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: day && /* @__PURE__ */ jsxs(
841
+ motion.div,
842
+ {
843
+ initial: { height: 0, opacity: 0 },
844
+ animate: { height: "auto", opacity: 1 },
845
+ exit: { height: 0, opacity: 0 },
846
+ transition: still ? { duration: 0 } : { duration: 0.4, ease: GLIDE },
847
+ className: "overflow-hidden",
848
+ children: [
849
+ /* @__PURE__ */ jsx("p", { id: `${id}-times`, className: "mt-5 text-sm font-medium", children: "Select a time" }),
850
+ /* @__PURE__ */ jsx(
851
+ "div",
852
+ {
853
+ role: "radiogroup",
854
+ "aria-labelledby": `${id}-times`,
855
+ className: "mt-3 grid grid-cols-5 gap-2 pb-1",
856
+ children: times.map((t, i) => {
857
+ const off = taken.includes(t);
858
+ const on = t === time;
859
+ return /* @__PURE__ */ jsxs(
860
+ motion.button,
861
+ {
862
+ ref: (el) => void (timeRefs.current[i] = el),
863
+ type: "button",
864
+ role: "radio",
865
+ "aria-checked": on,
866
+ "aria-disabled": off || locked,
867
+ "aria-label": `${t}${off ? ", taken" : ""}`,
868
+ tabIndex: on || timeIndex < 0 && i === firstOpenTime ? 0 : -1,
869
+ onClick: () => pickTime(i),
870
+ onKeyDown: (e) => roving(
871
+ e,
872
+ times,
873
+ timeIndex < 0 ? i : timeIndex,
874
+ (x) => !taken.includes(x),
875
+ (j) => pickTime(j, true)
876
+ ),
877
+ initial: still ? false : { opacity: 0, y: 8 },
878
+ animate: { opacity: 1, y: 0 },
879
+ transition: {
880
+ duration: 0.3,
881
+ ease: GLIDE,
882
+ delay: still ? 0 : 0.06 + i * 0.035
883
+ },
884
+ whileTap: off || locked || still ? void 0 : { scale: 0.94 },
885
+ className: cn(
886
+ "relative h-10 rounded-full text-sm font-medium tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",
887
+ off ? "cursor-not-allowed bg-zinc-50 text-zinc-300 line-through decoration-1 dark:bg-white/[0.03] dark:text-zinc-600" : "cursor-pointer",
888
+ !off && !on && "bg-zinc-100 transition-colors hover:bg-zinc-200/80 dark:bg-white/6 dark:hover:bg-white/10"
889
+ ),
890
+ children: [
891
+ on && /* @__PURE__ */ jsx(
892
+ motion.span,
893
+ {
894
+ layoutId: "time-pill",
895
+ className: "absolute inset-0 rounded-full bg-[#242423] dark:bg-white",
896
+ transition: still ? { duration: 0 } : PILL
897
+ }
898
+ ),
899
+ /* @__PURE__ */ jsx(
900
+ "span",
901
+ {
902
+ className: cn(
903
+ "relative transition-colors duration-200",
904
+ on && "text-white dark:text-zinc-900"
905
+ ),
906
+ children: t
907
+ }
908
+ )
909
+ ]
910
+ },
911
+ `${day.toDateString()}-${t}`
912
+ );
913
+ })
914
+ }
915
+ )
916
+ ]
917
+ },
918
+ "times"
919
+ ) })
920
+ ] }),
921
+ /* @__PURE__ */ jsxs(
922
+ motion.button,
923
+ {
924
+ type: "button",
925
+ onClick: book,
926
+ "aria-disabled": !ready && phase === "idle",
927
+ whileTap: ready && !still && phase === "idle" ? { scale: 0.98 } : void 0,
928
+ animate: {
929
+ backgroundColor: phase === "done" ? SUCCESS : ready || locked ? "#242423" : "#f4f4f5",
930
+ color: ready || locked ? "#ffffff" : "#a1a1aa"
931
+ },
932
+ transition: { duration: still ? 0 : 0.3, ease: GLIDE },
933
+ className: cn(
934
+ "group mt-6 flex h-12 w-full items-center justify-center gap-2 rounded-full text-sm font-medium outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-zinc-900",
935
+ ready || phase === "done" ? "cursor-pointer" : "cursor-default"
936
+ ),
937
+ children: [
938
+ /* @__PURE__ */ jsxs(AnimatePresence, { mode: "popLayout", initial: false, children: [
939
+ phase === "loading" && /* @__PURE__ */ jsx(
940
+ motion.span,
941
+ {
942
+ "aria-hidden": true,
943
+ initial: { opacity: 0, scale: 0.6 },
944
+ animate: { opacity: 1, scale: 1, rotate: still ? 0 : 360 },
945
+ exit: { opacity: 0, scale: 0.6 },
946
+ transition: {
947
+ rotate: { duration: 0.8, ease: "linear", repeat: Infinity },
948
+ default: { duration: 0.2 }
949
+ },
950
+ className: "size-4 rounded-full border-2 border-white/30 border-t-white"
951
+ },
952
+ "spin"
953
+ ),
954
+ phase === "done" && /* @__PURE__ */ jsx(
955
+ motion.svg,
956
+ {
957
+ "aria-hidden": true,
958
+ viewBox: "0 0 16 16",
959
+ className: "size-4",
960
+ initial: { opacity: 0, scale: 0.6 },
961
+ animate: { opacity: 1, scale: 1 },
962
+ exit: { opacity: 0 },
963
+ transition: { type: "spring", stiffness: 500, damping: 22 },
964
+ children: /* @__PURE__ */ jsx(
965
+ motion.path,
966
+ {
967
+ d: "M3.5 8.5 6.5 11.5 12.5 4.5",
968
+ fill: "none",
969
+ stroke: "currentColor",
970
+ strokeWidth: 2.25,
971
+ strokeLinecap: "round",
972
+ strokeLinejoin: "round",
973
+ initial: { pathLength: still ? 1 : 0 },
974
+ animate: { pathLength: 1 },
975
+ transition: { duration: 0.35, ease: GLIDE, delay: 0.08 }
976
+ }
977
+ )
978
+ },
979
+ "check"
980
+ )
981
+ ] }),
982
+ /* @__PURE__ */ jsx(Rolling, { text: label, still }),
983
+ phase === "idle" && /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative size-4 overflow-hidden", children: [
984
+ /* @__PURE__ */ jsx(
985
+ ArrowRight,
986
+ {
987
+ strokeWidth: 2.25,
988
+ className: cn(
989
+ "absolute inset-0 size-4 transition-transform duration-[420ms] ease-[cubic-bezier(0.22,1,0.36,1)]",
990
+ ready && !still && "group-hover:translate-x-[140%]"
991
+ )
992
+ }
993
+ ),
994
+ /* @__PURE__ */ jsx(
995
+ ArrowRight,
996
+ {
997
+ strokeWidth: 2.25,
998
+ className: cn(
999
+ "absolute inset-0 size-4 -translate-x-[140%] transition-transform duration-[420ms] ease-[cubic-bezier(0.22,1,0.36,1)]",
1000
+ ready && !still && "group-hover:translate-x-0 group-hover:delay-75"
1001
+ )
1002
+ }
1003
+ )
1004
+ ] })
1005
+ ]
1006
+ }
1007
+ )
1008
+ ]
1009
+ }
1010
+ ),
1011
+ /* @__PURE__ */ jsx(AnimatePresence, { children: phase === "done" && day && time && /* @__PURE__ */ jsx(
1012
+ Confirmation,
1013
+ {
1014
+ date: day,
1015
+ time,
1016
+ title: doneTitle,
1017
+ text: doneText,
1018
+ onChange: reset,
1019
+ onAdd: () => onAddToCalendar?.({ date: day, time }),
1020
+ still
1021
+ },
1022
+ "done"
1023
+ ) }),
1024
+ /* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: status })
1025
+ ]
1026
+ }
1027
+ );
1028
+ }
1029
+ );
1030
+
1031
+ export {
1032
+ BookingCard
1033
+ };