asta-ui 0.0.0-stage → 0.2.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 (547) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -2
  3. package/bin/asta-ui.mjs +218 -0
  4. package/dist/accordion.d.ts +2 -0
  5. package/dist/accordion.js +9 -0
  6. package/dist/add-to-cart.d.ts +2 -0
  7. package/dist/add-to-cart.js +7 -0
  8. package/dist/avatar.d.ts +2 -0
  9. package/dist/avatar.js +13 -0
  10. package/dist/badge.d.ts +2 -0
  11. package/dist/badge.js +11 -0
  12. package/dist/base/accordion.d.ts +2 -0
  13. package/dist/base/accordion.js +9 -0
  14. package/dist/base/add-to-cart.d.ts +2 -0
  15. package/dist/base/add-to-cart.js +7 -0
  16. package/dist/base/avatar.d.ts +2 -0
  17. package/dist/base/avatar.js +13 -0
  18. package/dist/base/badge.d.ts +2 -0
  19. package/dist/base/badge.js +11 -0
  20. package/dist/base/bubble-wrap.d.ts +2 -0
  21. package/dist/base/bubble-wrap.js +7 -0
  22. package/dist/base/button.d.ts +2 -0
  23. package/dist/base/button.js +13 -0
  24. package/dist/base/candlestick.d.ts +2 -0
  25. package/dist/base/candlestick.js +7 -0
  26. package/dist/base/card-checkout.d.ts +2 -0
  27. package/dist/base/card-checkout.js +7 -0
  28. package/dist/base/cart-drawer.d.ts +2 -0
  29. package/dist/base/cart-drawer.js +7 -0
  30. package/dist/base/checkbox.d.ts +2 -0
  31. package/dist/base/checkbox.js +9 -0
  32. package/dist/base/combo-lock.d.ts +2 -0
  33. package/dist/base/combo-lock.js +7 -0
  34. package/dist/base/command-palette.d.ts +2 -0
  35. package/dist/base/command-palette.js +11 -0
  36. package/dist/base/dial-knob.d.ts +2 -0
  37. package/dist/base/dial-knob.js +7 -0
  38. package/dist/base/dialog.d.ts +2 -0
  39. package/dist/base/dialog.js +9 -0
  40. package/dist/base/dropdown-menu.d.ts +2 -0
  41. package/dist/base/dropdown-menu.js +10 -0
  42. package/dist/base/elastic-string.d.ts +2 -0
  43. package/dist/base/elastic-string.js +7 -0
  44. package/dist/base/field.d.ts +2 -0
  45. package/dist/base/field.js +11 -0
  46. package/dist/base/footer.d.ts +2 -0
  47. package/dist/base/footer.js +12 -0
  48. package/dist/base/gravity-pills.d.ts +2 -0
  49. package/dist/base/gravity-pills.js +7 -0
  50. package/dist/base/hold-to-confirm.d.ts +2 -0
  51. package/dist/base/hold-to-confirm.js +7 -0
  52. package/dist/base/ink-trail.d.ts +2 -0
  53. package/dist/base/ink-trail.js +7 -0
  54. package/dist/base/input.d.ts +2 -0
  55. package/dist/base/input.js +11 -0
  56. package/dist/base/kbd.d.ts +2 -0
  57. package/dist/base/kbd.js +11 -0
  58. package/dist/base/morse-tap.d.ts +2 -0
  59. package/dist/base/morse-tap.js +7 -0
  60. package/dist/base/motion-button.d.ts +2 -0
  61. package/dist/base/motion-button.js +23 -0
  62. package/dist/base/navbar.d.ts +2 -0
  63. package/dist/base/navbar.js +10 -0
  64. package/dist/base/needle-field.d.ts +2 -0
  65. package/dist/base/needle-field.js +7 -0
  66. package/dist/base/number-input.d.ts +2 -0
  67. package/dist/base/number-input.js +9 -0
  68. package/dist/base/order-book.d.ts +2 -0
  69. package/dist/base/order-book.js +7 -0
  70. package/dist/base/pay-methods.d.ts +2 -0
  71. package/dist/base/pay-methods.js +7 -0
  72. package/dist/base/payment-status.d.ts +2 -0
  73. package/dist/base/payment-status.js +7 -0
  74. package/dist/base/pixel-reveal.d.ts +2 -0
  75. package/dist/base/pixel-reveal.js +7 -0
  76. package/dist/base/price-chart.d.ts +2 -0
  77. package/dist/base/price-chart.js +7 -0
  78. package/dist/base/pricing.d.ts +2 -0
  79. package/dist/base/pricing.js +14 -0
  80. package/dist/base/radio-group.d.ts +2 -0
  81. package/dist/base/radio-group.js +11 -0
  82. package/dist/base/scramble-text.d.ts +2 -0
  83. package/dist/base/scramble-text.js +7 -0
  84. package/dist/base/segmented-control.d.ts +2 -0
  85. package/dist/base/segmented-control.js +9 -0
  86. package/dist/base/select.d.ts +2 -0
  87. package/dist/base/select.js +9 -0
  88. package/dist/base/settings-panel.d.ts +2 -0
  89. package/dist/base/settings-panel.js +10 -0
  90. package/dist/base/sign-in.d.ts +2 -0
  91. package/dist/base/sign-in.js +10 -0
  92. package/dist/base/skeleton.d.ts +2 -0
  93. package/dist/base/skeleton.js +13 -0
  94. package/dist/base/slider.d.ts +2 -0
  95. package/dist/base/slider.js +9 -0
  96. package/dist/base/snap-grid.d.ts +2 -0
  97. package/dist/base/snap-grid.js +7 -0
  98. package/dist/base/spinner.d.ts +2 -0
  99. package/dist/base/spinner.js +11 -0
  100. package/dist/base/split-flap.d.ts +2 -0
  101. package/dist/base/split-flap.js +7 -0
  102. package/dist/base/spotlight-grid.d.ts +2 -0
  103. package/dist/base/spotlight-grid.js +7 -0
  104. package/dist/base/switch.d.ts +2 -0
  105. package/dist/base/switch.js +9 -0
  106. package/dist/base/tabs.d.ts +2 -0
  107. package/dist/base/tabs.js +9 -0
  108. package/dist/base/tag-input.d.ts +2 -0
  109. package/dist/base/tag-input.js +9 -0
  110. package/dist/base/textarea-aui-001.d.ts +2 -0
  111. package/dist/base/textarea-aui-001.js +9 -0
  112. package/dist/base/textarea-aui-002.d.ts +2 -0
  113. package/dist/base/textarea-aui-002.js +9 -0
  114. package/dist/base/textarea-aui-003.d.ts +2 -0
  115. package/dist/base/textarea-aui-003.js +9 -0
  116. package/dist/base/textarea-aui-004.d.ts +2 -0
  117. package/dist/base/textarea-aui-004.js +9 -0
  118. package/dist/base/textarea-aui-005.d.ts +2 -0
  119. package/dist/base/textarea-aui-005.js +9 -0
  120. package/dist/base/textarea-aui-006.d.ts +2 -0
  121. package/dist/base/textarea-aui-006.js +9 -0
  122. package/dist/base/textarea-aui-007.d.ts +2 -0
  123. package/dist/base/textarea-aui-007.js +9 -0
  124. package/dist/base/textarea-aui-008.d.ts +2 -0
  125. package/dist/base/textarea-aui-008.js +9 -0
  126. package/dist/base/textarea.d.ts +2 -0
  127. package/dist/base/textarea.js +9 -0
  128. package/dist/base/toast.d.ts +2 -0
  129. package/dist/base/toast.js +11 -0
  130. package/dist/base/tooltip.d.ts +2 -0
  131. package/dist/base/tooltip.js +9 -0
  132. package/dist/base/trade-ticket.d.ts +2 -0
  133. package/dist/base/trade-ticket.js +7 -0
  134. package/dist/base/variant-picker.d.ts +2 -0
  135. package/dist/base/variant-picker.js +7 -0
  136. package/dist/base.d.ts +1 -0
  137. package/dist/base.js +315 -0
  138. package/dist/bubble-wrap.d.ts +2 -0
  139. package/dist/bubble-wrap.js +7 -0
  140. package/dist/button.d.ts +2 -0
  141. package/dist/button.js +13 -0
  142. package/dist/candlestick.d.ts +2 -0
  143. package/dist/candlestick.js +7 -0
  144. package/dist/card-checkout.d.ts +2 -0
  145. package/dist/card-checkout.js +7 -0
  146. package/dist/cart-drawer.d.ts +2 -0
  147. package/dist/cart-drawer.js +7 -0
  148. package/dist/checkbox.d.ts +2 -0
  149. package/dist/checkbox.js +9 -0
  150. package/dist/chunk-2KJNBHUV.js +137 -0
  151. package/dist/chunk-2OGTIQVU.js +237 -0
  152. package/dist/chunk-2Z5Z4YYZ.js +57 -0
  153. package/dist/chunk-37JQA6PI.js +98 -0
  154. package/dist/chunk-3JNUC3FU.js +92 -0
  155. package/dist/chunk-4L4EKC46.js +360 -0
  156. package/dist/chunk-4WK3F76T.js +57 -0
  157. package/dist/chunk-56BEMYK3.js +36 -0
  158. package/dist/chunk-5A36JYGI.js +71 -0
  159. package/dist/chunk-5RPJPL2V.js +102 -0
  160. package/dist/chunk-6322OCI4.js +189 -0
  161. package/dist/chunk-66OZ7CBK.js +153 -0
  162. package/dist/chunk-6AZKJUL4.js +67 -0
  163. package/dist/chunk-7L4YE6HM.js +56 -0
  164. package/dist/chunk-7MGB7FVD.js +221 -0
  165. package/dist/chunk-7RCBOTWL.js +138 -0
  166. package/dist/chunk-7TK42PS3.js +247 -0
  167. package/dist/chunk-7UMBKY3H.js +105 -0
  168. package/dist/chunk-AS6RA64I.js +53 -0
  169. package/dist/chunk-B7V4ZTKI.js +53 -0
  170. package/dist/chunk-BH2DLHFW.js +145 -0
  171. package/dist/chunk-BOJCW7Z7.js +131 -0
  172. package/dist/chunk-C2G5BUEG.js +197 -0
  173. package/dist/chunk-CLCP2GFW.js +93 -0
  174. package/dist/chunk-CNY76NHF.js +92 -0
  175. package/dist/chunk-CTO36MY2.js +87 -0
  176. package/dist/chunk-DK2BM32V.js +71 -0
  177. package/dist/chunk-DQWKBQBT.js +68 -0
  178. package/dist/chunk-DUGKLVQJ.js +89 -0
  179. package/dist/chunk-E4MX3E3B.js +66 -0
  180. package/dist/chunk-EG7NXGDD.js +109 -0
  181. package/dist/chunk-EVSTTLOT.js +141 -0
  182. package/dist/chunk-F5I6EK7F.js +55 -0
  183. package/dist/chunk-FATLQKRY.js +88 -0
  184. package/dist/chunk-FK2LKLRN.js +89 -0
  185. package/dist/chunk-FT7WZV3D.js +184 -0
  186. package/dist/chunk-FUNXYRSG.js +198 -0
  187. package/dist/chunk-H4URFOQC.js +69 -0
  188. package/dist/chunk-H5C7HOQJ.js +84 -0
  189. package/dist/chunk-JAQANAOP.js +247 -0
  190. package/dist/chunk-JIVLBHHE.js +266 -0
  191. package/dist/chunk-KEMMI76V.js +94 -0
  192. package/dist/chunk-N6FMS47F.js +225 -0
  193. package/dist/chunk-NDBLIYMX.js +62 -0
  194. package/dist/chunk-OBU2UOYI.js +96 -0
  195. package/dist/chunk-OLNMOTAD.js +141 -0
  196. package/dist/chunk-OQU6KGVR.js +70 -0
  197. package/dist/chunk-PIC5ZIR3.js +55 -0
  198. package/dist/chunk-PSTMF66E.js +79 -0
  199. package/dist/chunk-Q7OHWQP2.js +108 -0
  200. package/dist/chunk-QDRBMWRX.js +190 -0
  201. package/dist/chunk-R3LWG23K.js +138 -0
  202. package/dist/chunk-RS3XHHDE.js +77 -0
  203. package/dist/chunk-SAJ4D3Z2.js +206 -0
  204. package/dist/chunk-SATIWCJQ.js +141 -0
  205. package/dist/chunk-SRGDJSW7.js +107 -0
  206. package/dist/chunk-T4SOPNM5.js +107 -0
  207. package/dist/chunk-TCID6NNE.js +69 -0
  208. package/dist/chunk-TIAKMX7U.js +49 -0
  209. package/dist/chunk-TRIXMWR3.js +74 -0
  210. package/dist/chunk-TRR3J5NJ.js +28 -0
  211. package/dist/chunk-U7BYEW3Y.js +115 -0
  212. package/dist/chunk-U7VX6A6K.js +136 -0
  213. package/dist/chunk-UAP47MSR.js +230 -0
  214. package/dist/chunk-UXRTPEH7.js +57 -0
  215. package/dist/chunk-VGBP42IZ.js +84 -0
  216. package/dist/chunk-VWYX5IRP.js +92 -0
  217. package/dist/chunk-WRB66XD3.js +31 -0
  218. package/dist/chunk-WSL4JGEA.js +87 -0
  219. package/dist/chunk-WVIV4JBH.js +69 -0
  220. package/dist/chunk-WWQV7LE7.js +198 -0
  221. package/dist/chunk-XIU7K2YE.js +60 -0
  222. package/dist/chunk-XNL5BLUR.js +283 -0
  223. package/dist/chunk-XRVVZA2Y.js +360 -0
  224. package/dist/chunk-XYNJQGYX.js +107 -0
  225. package/dist/chunk-YON5SU2G.js +156 -0
  226. package/dist/chunk-Z6IAITZJ.js +214 -0
  227. package/dist/chunk-ZE7BT2K4.js +173 -0
  228. package/dist/chunk-ZN3W5PAI.js +107 -0
  229. package/dist/chunk-ZQV2GAWY.js +178 -0
  230. package/dist/chunk-ZRGPSYW6.js +237 -0
  231. package/dist/chunk-ZWBJUJTR.js +83 -0
  232. package/dist/combo-lock.d.ts +2 -0
  233. package/dist/combo-lock.js +7 -0
  234. package/dist/command-palette.d.ts +2 -0
  235. package/dist/command-palette.js +11 -0
  236. package/dist/dial-knob.d.ts +2 -0
  237. package/dist/dial-knob.js +7 -0
  238. package/dist/dialog.d.ts +2 -0
  239. package/dist/dialog.js +9 -0
  240. package/dist/dropdown-menu.d.ts +2 -0
  241. package/dist/dropdown-menu.js +10 -0
  242. package/dist/elastic-string.d.ts +2 -0
  243. package/dist/elastic-string.js +7 -0
  244. package/dist/field.d.ts +2 -0
  245. package/dist/field.js +11 -0
  246. package/dist/footer.d.ts +2 -0
  247. package/dist/footer.js +12 -0
  248. package/dist/gravity-pills.d.ts +2 -0
  249. package/dist/gravity-pills.js +7 -0
  250. package/dist/hold-to-confirm.d.ts +2 -0
  251. package/dist/hold-to-confirm.js +7 -0
  252. package/dist/index.d.ts +1 -0
  253. package/dist/index.js +315 -0
  254. package/dist/ink-trail.d.ts +2 -0
  255. package/dist/ink-trail.js +7 -0
  256. package/dist/input.d.ts +2 -0
  257. package/dist/input.js +11 -0
  258. package/dist/kbd.d.ts +2 -0
  259. package/dist/kbd.js +11 -0
  260. package/dist/morse-tap.d.ts +2 -0
  261. package/dist/morse-tap.js +7 -0
  262. package/dist/motion-button.d.ts +2 -0
  263. package/dist/motion-button.js +23 -0
  264. package/dist/navbar.d.ts +2 -0
  265. package/dist/navbar.js +10 -0
  266. package/dist/needle-field.d.ts +2 -0
  267. package/dist/needle-field.js +7 -0
  268. package/dist/number-input.d.ts +2 -0
  269. package/dist/number-input.js +9 -0
  270. package/dist/order-book.d.ts +2 -0
  271. package/dist/order-book.js +7 -0
  272. package/dist/pay-methods.d.ts +2 -0
  273. package/dist/pay-methods.js +7 -0
  274. package/dist/payment-status.d.ts +2 -0
  275. package/dist/payment-status.js +7 -0
  276. package/dist/pixel-reveal.d.ts +2 -0
  277. package/dist/pixel-reveal.js +7 -0
  278. package/dist/price-chart.d.ts +2 -0
  279. package/dist/price-chart.js +7 -0
  280. package/dist/pricing.d.ts +2 -0
  281. package/dist/pricing.js +14 -0
  282. package/dist/radio-group.d.ts +2 -0
  283. package/dist/radio-group.js +11 -0
  284. package/dist/scramble-text.d.ts +2 -0
  285. package/dist/scramble-text.js +7 -0
  286. package/dist/segmented-control.d.ts +2 -0
  287. package/dist/segmented-control.js +9 -0
  288. package/dist/select.d.ts +2 -0
  289. package/dist/select.js +9 -0
  290. package/dist/settings-panel.d.ts +2 -0
  291. package/dist/settings-panel.js +10 -0
  292. package/dist/sign-in.d.ts +2 -0
  293. package/dist/sign-in.js +10 -0
  294. package/dist/skeleton.d.ts +2 -0
  295. package/dist/skeleton.js +13 -0
  296. package/dist/slider.d.ts +2 -0
  297. package/dist/slider.js +9 -0
  298. package/dist/snap-grid.d.ts +2 -0
  299. package/dist/snap-grid.js +7 -0
  300. package/dist/spinner.d.ts +2 -0
  301. package/dist/spinner.js +11 -0
  302. package/dist/split-flap.d.ts +2 -0
  303. package/dist/split-flap.js +7 -0
  304. package/dist/spotlight-grid.d.ts +2 -0
  305. package/dist/spotlight-grid.js +7 -0
  306. package/dist/styles.css +46 -0
  307. package/dist/switch.d.ts +2 -0
  308. package/dist/switch.js +9 -0
  309. package/dist/tabs.d.ts +2 -0
  310. package/dist/tabs.js +9 -0
  311. package/dist/tag-input.d.ts +2 -0
  312. package/dist/tag-input.js +9 -0
  313. package/dist/textarea-aui-001.d.ts +2 -0
  314. package/dist/textarea-aui-001.js +9 -0
  315. package/dist/textarea-aui-002.d.ts +2 -0
  316. package/dist/textarea-aui-002.js +9 -0
  317. package/dist/textarea-aui-003.d.ts +2 -0
  318. package/dist/textarea-aui-003.js +9 -0
  319. package/dist/textarea-aui-004.d.ts +2 -0
  320. package/dist/textarea-aui-004.js +9 -0
  321. package/dist/textarea-aui-005.d.ts +2 -0
  322. package/dist/textarea-aui-005.js +9 -0
  323. package/dist/textarea-aui-006.d.ts +2 -0
  324. package/dist/textarea-aui-006.js +9 -0
  325. package/dist/textarea-aui-007.d.ts +2 -0
  326. package/dist/textarea-aui-007.js +9 -0
  327. package/dist/textarea-aui-008.d.ts +2 -0
  328. package/dist/textarea-aui-008.js +9 -0
  329. package/dist/textarea.d.ts +2 -0
  330. package/dist/textarea.js +9 -0
  331. package/dist/toast.d.ts +2 -0
  332. package/dist/toast.js +11 -0
  333. package/dist/tooltip.d.ts +2 -0
  334. package/dist/tooltip.js +9 -0
  335. package/dist/trade-ticket.d.ts +2 -0
  336. package/dist/trade-ticket.js +7 -0
  337. package/dist/types/components/kit/accordion.d.ts +19 -0
  338. package/dist/types/components/kit/avatar.d.ts +32 -0
  339. package/dist/types/components/kit/badge.d.ts +23 -0
  340. package/dist/types/components/kit/base/accordion.d.ts +19 -0
  341. package/dist/types/components/kit/base/avatar.d.ts +32 -0
  342. package/dist/types/components/kit/base/button.d.ts +38 -0
  343. package/dist/types/components/kit/base/checkbox.d.ts +19 -0
  344. package/dist/types/components/kit/base/command-palette.d.ts +38 -0
  345. package/dist/types/components/kit/base/dialog.d.ts +21 -0
  346. package/dist/types/components/kit/base/dropdown-menu.d.ts +32 -0
  347. package/dist/types/components/kit/base/footer.d.ts +29 -0
  348. package/dist/types/components/kit/base/navbar.d.ts +54 -0
  349. package/dist/types/components/kit/base/pricing.d.ts +39 -0
  350. package/dist/types/components/kit/base/radio-group.d.ts +29 -0
  351. package/dist/types/components/kit/base/segmented-control.d.ts +23 -0
  352. package/dist/types/components/kit/base/select.d.ts +29 -0
  353. package/dist/types/components/kit/base/settings-panel.d.ts +29 -0
  354. package/dist/types/components/kit/base/sign-in.d.ts +17 -0
  355. package/dist/types/components/kit/base/slider.d.ts +27 -0
  356. package/dist/types/components/kit/base/switch.d.ts +22 -0
  357. package/dist/types/components/kit/base/tabs.d.ts +23 -0
  358. package/dist/types/components/kit/base/tooltip.d.ts +20 -0
  359. package/dist/types/components/kit/base/variants/textarea-aui-008.d.ts +23 -0
  360. package/dist/types/components/kit/button.d.ts +38 -0
  361. package/dist/types/components/kit/checkbox.d.ts +19 -0
  362. package/dist/types/components/kit/command-palette.d.ts +38 -0
  363. package/dist/types/components/kit/dialog.d.ts +21 -0
  364. package/dist/types/components/kit/dropdown-menu.d.ts +32 -0
  365. package/dist/types/components/kit/field.d.ts +19 -0
  366. package/dist/types/components/kit/footer.d.ts +29 -0
  367. package/dist/types/components/kit/input.d.ts +19 -0
  368. package/dist/types/components/kit/kbd.d.ts +26 -0
  369. package/dist/types/components/kit/motion-button.d.ts +30 -0
  370. package/dist/types/components/kit/navbar.d.ts +54 -0
  371. package/dist/types/components/kit/number-input.d.ts +20 -0
  372. package/dist/types/components/kit/pricing.d.ts +39 -0
  373. package/dist/types/components/kit/radio-group.d.ts +29 -0
  374. package/dist/types/components/kit/segmented-control.d.ts +23 -0
  375. package/dist/types/components/kit/select.d.ts +29 -0
  376. package/dist/types/components/kit/settings-panel.d.ts +29 -0
  377. package/dist/types/components/kit/sign-in.d.ts +17 -0
  378. package/dist/types/components/kit/skeleton.d.ts +20 -0
  379. package/dist/types/components/kit/slider.d.ts +27 -0
  380. package/dist/types/components/kit/spinner.d.ts +18 -0
  381. package/dist/types/components/kit/switch.d.ts +22 -0
  382. package/dist/types/components/kit/tabs.d.ts +23 -0
  383. package/dist/types/components/kit/tag-input.d.ts +16 -0
  384. package/dist/types/components/kit/textarea.d.ts +11 -0
  385. package/dist/types/components/kit/toast.d.ts +32 -0
  386. package/dist/types/components/kit/tooltip.d.ts +20 -0
  387. package/dist/types/components/kit/variants/textarea-aui-001.d.ts +13 -0
  388. package/dist/types/components/kit/variants/textarea-aui-002.d.ts +13 -0
  389. package/dist/types/components/kit/variants/textarea-aui-003.d.ts +16 -0
  390. package/dist/types/components/kit/variants/textarea-aui-004.d.ts +7 -0
  391. package/dist/types/components/kit/variants/textarea-aui-005.d.ts +8 -0
  392. package/dist/types/components/kit/variants/textarea-aui-006.d.ts +21 -0
  393. package/dist/types/components/kit/variants/textarea-aui-007.d.ts +20 -0
  394. package/dist/types/components/kit/variants/textarea-aui-008.d.ts +23 -0
  395. package/dist/types/components/lab/blocks/AddToCart.d.ts +10 -0
  396. package/dist/types/components/lab/blocks/BubbleWrap.d.ts +2 -0
  397. package/dist/types/components/lab/blocks/Candlestick.d.ts +2 -0
  398. package/dist/types/components/lab/blocks/CardCheckout.d.ts +5 -0
  399. package/dist/types/components/lab/blocks/CartDrawer.d.ts +2 -0
  400. package/dist/types/components/lab/blocks/ComboLock.d.ts +2 -0
  401. package/dist/types/components/lab/blocks/DialKnob.d.ts +2 -0
  402. package/dist/types/components/lab/blocks/ElasticString.d.ts +2 -0
  403. package/dist/types/components/lab/blocks/GravityPills.d.ts +2 -0
  404. package/dist/types/components/lab/blocks/HoldToConfirm.d.ts +6 -0
  405. package/dist/types/components/lab/blocks/InkTrail.d.ts +2 -0
  406. package/dist/types/components/lab/blocks/MorseTap.d.ts +2 -0
  407. package/dist/types/components/lab/blocks/NeedleField.d.ts +2 -0
  408. package/dist/types/components/lab/blocks/OrderBook.d.ts +2 -0
  409. package/dist/types/components/lab/blocks/PayMethods.d.ts +2 -0
  410. package/dist/types/components/lab/blocks/PaymentStatus.d.ts +2 -0
  411. package/dist/types/components/lab/blocks/PixelReveal.d.ts +2 -0
  412. package/dist/types/components/lab/blocks/PriceChart.d.ts +2 -0
  413. package/dist/types/components/lab/blocks/ScrambleText.d.ts +1 -0
  414. package/dist/types/components/lab/blocks/SnapGrid.d.ts +2 -0
  415. package/dist/types/components/lab/blocks/SplitFlap.d.ts +2 -0
  416. package/dist/types/components/lab/blocks/SpotlightGrid.d.ts +1 -0
  417. package/dist/types/components/lab/blocks/TradeTicket.d.ts +2 -0
  418. package/dist/types/components/lab/blocks/VariantPicker.d.ts +2 -0
  419. package/dist/types/packages/asta-ui/src/accordion.d.ts +2 -0
  420. package/dist/types/packages/asta-ui/src/add-to-cart.d.ts +2 -0
  421. package/dist/types/packages/asta-ui/src/avatar.d.ts +2 -0
  422. package/dist/types/packages/asta-ui/src/badge.d.ts +2 -0
  423. package/dist/types/packages/asta-ui/src/base/accordion.d.ts +2 -0
  424. package/dist/types/packages/asta-ui/src/base/add-to-cart.d.ts +2 -0
  425. package/dist/types/packages/asta-ui/src/base/avatar.d.ts +2 -0
  426. package/dist/types/packages/asta-ui/src/base/badge.d.ts +2 -0
  427. package/dist/types/packages/asta-ui/src/base/bubble-wrap.d.ts +2 -0
  428. package/dist/types/packages/asta-ui/src/base/button.d.ts +2 -0
  429. package/dist/types/packages/asta-ui/src/base/candlestick.d.ts +2 -0
  430. package/dist/types/packages/asta-ui/src/base/card-checkout.d.ts +2 -0
  431. package/dist/types/packages/asta-ui/src/base/cart-drawer.d.ts +2 -0
  432. package/dist/types/packages/asta-ui/src/base/checkbox.d.ts +2 -0
  433. package/dist/types/packages/asta-ui/src/base/combo-lock.d.ts +2 -0
  434. package/dist/types/packages/asta-ui/src/base/command-palette.d.ts +2 -0
  435. package/dist/types/packages/asta-ui/src/base/dial-knob.d.ts +2 -0
  436. package/dist/types/packages/asta-ui/src/base/dialog.d.ts +2 -0
  437. package/dist/types/packages/asta-ui/src/base/dropdown-menu.d.ts +2 -0
  438. package/dist/types/packages/asta-ui/src/base/elastic-string.d.ts +2 -0
  439. package/dist/types/packages/asta-ui/src/base/field.d.ts +2 -0
  440. package/dist/types/packages/asta-ui/src/base/footer.d.ts +2 -0
  441. package/dist/types/packages/asta-ui/src/base/gravity-pills.d.ts +2 -0
  442. package/dist/types/packages/asta-ui/src/base/hold-to-confirm.d.ts +2 -0
  443. package/dist/types/packages/asta-ui/src/base/ink-trail.d.ts +2 -0
  444. package/dist/types/packages/asta-ui/src/base/input.d.ts +2 -0
  445. package/dist/types/packages/asta-ui/src/base/kbd.d.ts +2 -0
  446. package/dist/types/packages/asta-ui/src/base/morse-tap.d.ts +2 -0
  447. package/dist/types/packages/asta-ui/src/base/motion-button.d.ts +2 -0
  448. package/dist/types/packages/asta-ui/src/base/navbar.d.ts +2 -0
  449. package/dist/types/packages/asta-ui/src/base/needle-field.d.ts +2 -0
  450. package/dist/types/packages/asta-ui/src/base/number-input.d.ts +2 -0
  451. package/dist/types/packages/asta-ui/src/base/order-book.d.ts +2 -0
  452. package/dist/types/packages/asta-ui/src/base/pay-methods.d.ts +2 -0
  453. package/dist/types/packages/asta-ui/src/base/payment-status.d.ts +2 -0
  454. package/dist/types/packages/asta-ui/src/base/pixel-reveal.d.ts +2 -0
  455. package/dist/types/packages/asta-ui/src/base/price-chart.d.ts +2 -0
  456. package/dist/types/packages/asta-ui/src/base/pricing.d.ts +2 -0
  457. package/dist/types/packages/asta-ui/src/base/radio-group.d.ts +2 -0
  458. package/dist/types/packages/asta-ui/src/base/scramble-text.d.ts +2 -0
  459. package/dist/types/packages/asta-ui/src/base/segmented-control.d.ts +2 -0
  460. package/dist/types/packages/asta-ui/src/base/select.d.ts +2 -0
  461. package/dist/types/packages/asta-ui/src/base/settings-panel.d.ts +2 -0
  462. package/dist/types/packages/asta-ui/src/base/sign-in.d.ts +2 -0
  463. package/dist/types/packages/asta-ui/src/base/skeleton.d.ts +2 -0
  464. package/dist/types/packages/asta-ui/src/base/slider.d.ts +2 -0
  465. package/dist/types/packages/asta-ui/src/base/snap-grid.d.ts +2 -0
  466. package/dist/types/packages/asta-ui/src/base/spinner.d.ts +2 -0
  467. package/dist/types/packages/asta-ui/src/base/split-flap.d.ts +2 -0
  468. package/dist/types/packages/asta-ui/src/base/spotlight-grid.d.ts +2 -0
  469. package/dist/types/packages/asta-ui/src/base/switch.d.ts +2 -0
  470. package/dist/types/packages/asta-ui/src/base/tabs.d.ts +2 -0
  471. package/dist/types/packages/asta-ui/src/base/tag-input.d.ts +2 -0
  472. package/dist/types/packages/asta-ui/src/base/textarea-aui-001.d.ts +2 -0
  473. package/dist/types/packages/asta-ui/src/base/textarea-aui-002.d.ts +2 -0
  474. package/dist/types/packages/asta-ui/src/base/textarea-aui-003.d.ts +2 -0
  475. package/dist/types/packages/asta-ui/src/base/textarea-aui-004.d.ts +2 -0
  476. package/dist/types/packages/asta-ui/src/base/textarea-aui-005.d.ts +2 -0
  477. package/dist/types/packages/asta-ui/src/base/textarea-aui-006.d.ts +2 -0
  478. package/dist/types/packages/asta-ui/src/base/textarea-aui-007.d.ts +2 -0
  479. package/dist/types/packages/asta-ui/src/base/textarea-aui-008.d.ts +2 -0
  480. package/dist/types/packages/asta-ui/src/base/textarea.d.ts +2 -0
  481. package/dist/types/packages/asta-ui/src/base/toast.d.ts +2 -0
  482. package/dist/types/packages/asta-ui/src/base/tooltip.d.ts +2 -0
  483. package/dist/types/packages/asta-ui/src/base/trade-ticket.d.ts +2 -0
  484. package/dist/types/packages/asta-ui/src/base/variant-picker.d.ts +2 -0
  485. package/dist/types/packages/asta-ui/src/base.d.ts +100 -0
  486. package/dist/types/packages/asta-ui/src/bubble-wrap.d.ts +2 -0
  487. package/dist/types/packages/asta-ui/src/button.d.ts +2 -0
  488. package/dist/types/packages/asta-ui/src/candlestick.d.ts +2 -0
  489. package/dist/types/packages/asta-ui/src/card-checkout.d.ts +2 -0
  490. package/dist/types/packages/asta-ui/src/cart-drawer.d.ts +2 -0
  491. package/dist/types/packages/asta-ui/src/checkbox.d.ts +2 -0
  492. package/dist/types/packages/asta-ui/src/combo-lock.d.ts +2 -0
  493. package/dist/types/packages/asta-ui/src/command-palette.d.ts +2 -0
  494. package/dist/types/packages/asta-ui/src/dial-knob.d.ts +2 -0
  495. package/dist/types/packages/asta-ui/src/dialog.d.ts +2 -0
  496. package/dist/types/packages/asta-ui/src/dropdown-menu.d.ts +2 -0
  497. package/dist/types/packages/asta-ui/src/elastic-string.d.ts +2 -0
  498. package/dist/types/packages/asta-ui/src/field.d.ts +2 -0
  499. package/dist/types/packages/asta-ui/src/footer.d.ts +2 -0
  500. package/dist/types/packages/asta-ui/src/gravity-pills.d.ts +2 -0
  501. package/dist/types/packages/asta-ui/src/hold-to-confirm.d.ts +2 -0
  502. package/dist/types/packages/asta-ui/src/index.d.ts +100 -0
  503. package/dist/types/packages/asta-ui/src/ink-trail.d.ts +2 -0
  504. package/dist/types/packages/asta-ui/src/input.d.ts +2 -0
  505. package/dist/types/packages/asta-ui/src/kbd.d.ts +2 -0
  506. package/dist/types/packages/asta-ui/src/morse-tap.d.ts +2 -0
  507. package/dist/types/packages/asta-ui/src/motion-button.d.ts +2 -0
  508. package/dist/types/packages/asta-ui/src/navbar.d.ts +2 -0
  509. package/dist/types/packages/asta-ui/src/needle-field.d.ts +2 -0
  510. package/dist/types/packages/asta-ui/src/number-input.d.ts +2 -0
  511. package/dist/types/packages/asta-ui/src/order-book.d.ts +2 -0
  512. package/dist/types/packages/asta-ui/src/pay-methods.d.ts +2 -0
  513. package/dist/types/packages/asta-ui/src/payment-status.d.ts +2 -0
  514. package/dist/types/packages/asta-ui/src/pixel-reveal.d.ts +2 -0
  515. package/dist/types/packages/asta-ui/src/price-chart.d.ts +2 -0
  516. package/dist/types/packages/asta-ui/src/pricing.d.ts +2 -0
  517. package/dist/types/packages/asta-ui/src/radio-group.d.ts +2 -0
  518. package/dist/types/packages/asta-ui/src/scramble-text.d.ts +2 -0
  519. package/dist/types/packages/asta-ui/src/segmented-control.d.ts +2 -0
  520. package/dist/types/packages/asta-ui/src/select.d.ts +2 -0
  521. package/dist/types/packages/asta-ui/src/settings-panel.d.ts +2 -0
  522. package/dist/types/packages/asta-ui/src/sign-in.d.ts +2 -0
  523. package/dist/types/packages/asta-ui/src/skeleton.d.ts +2 -0
  524. package/dist/types/packages/asta-ui/src/slider.d.ts +2 -0
  525. package/dist/types/packages/asta-ui/src/snap-grid.d.ts +2 -0
  526. package/dist/types/packages/asta-ui/src/spinner.d.ts +2 -0
  527. package/dist/types/packages/asta-ui/src/split-flap.d.ts +2 -0
  528. package/dist/types/packages/asta-ui/src/spotlight-grid.d.ts +2 -0
  529. package/dist/types/packages/asta-ui/src/switch.d.ts +2 -0
  530. package/dist/types/packages/asta-ui/src/tabs.d.ts +2 -0
  531. package/dist/types/packages/asta-ui/src/tag-input.d.ts +2 -0
  532. package/dist/types/packages/asta-ui/src/textarea-aui-001.d.ts +2 -0
  533. package/dist/types/packages/asta-ui/src/textarea-aui-002.d.ts +2 -0
  534. package/dist/types/packages/asta-ui/src/textarea-aui-003.d.ts +2 -0
  535. package/dist/types/packages/asta-ui/src/textarea-aui-004.d.ts +2 -0
  536. package/dist/types/packages/asta-ui/src/textarea-aui-005.d.ts +2 -0
  537. package/dist/types/packages/asta-ui/src/textarea-aui-006.d.ts +2 -0
  538. package/dist/types/packages/asta-ui/src/textarea-aui-007.d.ts +2 -0
  539. package/dist/types/packages/asta-ui/src/textarea-aui-008.d.ts +2 -0
  540. package/dist/types/packages/asta-ui/src/textarea.d.ts +2 -0
  541. package/dist/types/packages/asta-ui/src/toast.d.ts +2 -0
  542. package/dist/types/packages/asta-ui/src/tooltip.d.ts +2 -0
  543. package/dist/types/packages/asta-ui/src/trade-ticket.d.ts +2 -0
  544. package/dist/types/packages/asta-ui/src/variant-picker.d.ts +2 -0
  545. package/dist/variant-picker.d.ts +2 -0
  546. package/dist/variant-picker.js +7 -0
  547. package/package.json +86 -4
@@ -0,0 +1,49 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/textarea-aui-001.tsx
4
+ import { useId, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ function TextareaField({ label, hint, maxLength, optional, className, rows = 4, id, ...rest }) {
8
+ const auto = useId();
9
+ const fid = id ?? auto;
10
+ const controlled = rest.value !== void 0;
11
+ const [inner, setInner] = useState(String(rest.defaultValue ?? ""));
12
+ const value = controlled ? String(rest.value) : inner;
13
+ const near = maxLength !== void 0 && value.length >= maxLength * 0.9;
14
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex w-full flex-col gap-1.5", className), children: [
15
+ /* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-between gap-3", children: [
16
+ /* @__PURE__ */ jsx("label", { htmlFor: fid, className: "text-[13px] font-medium text-ink", children: label }),
17
+ optional && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: "Optional" })
18
+ ] }),
19
+ /* @__PURE__ */ jsx(
20
+ "textarea",
21
+ {
22
+ id: fid,
23
+ rows,
24
+ maxLength,
25
+ "aria-describedby": hint || maxLength ? `${fid}-meta` : void 0,
26
+ ...rest,
27
+ onChange: (e) => {
28
+ if (!controlled) setInner(e.target.value);
29
+ rest.onChange?.(e);
30
+ },
31
+ className: "block w-full resize-y rounded-xl bg-paper px-3.5 py-3 text-[14px] leading-[1.55] text-ink outline-none transition-shadow duration-200 placeholder:text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)] disabled:opacity-50 motion-reduce:transition-none"
32
+ }
33
+ ),
34
+ (hint || maxLength !== void 0) && /* @__PURE__ */ jsxs("div", { id: `${fid}-meta`, className: "flex items-start justify-between gap-3 text-[12.5px]", children: [
35
+ /* @__PURE__ */ jsx("span", { className: "text-mute", children: hint }),
36
+ maxLength !== void 0 && /* @__PURE__ */ jsxs("span", { className: cx("shrink-0 tabular-nums transition-colors duration-300", near ? "text-[#d97706]" : "text-mute"), "aria-live": "polite", children: [
37
+ value.length,
38
+ "/",
39
+ maxLength
40
+ ] })
41
+ ] })
42
+ ] });
43
+ }
44
+ var textarea_aui_001_default = TextareaField;
45
+
46
+ export {
47
+ TextareaField,
48
+ textarea_aui_001_default
49
+ };
@@ -0,0 +1,74 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/DialKnob.tsx
4
+ import { useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var TICKS = 31;
7
+ var MIN_A = -135;
8
+ var MAX_A = 135;
9
+ function DialKnob() {
10
+ const [v, setV] = useState(35);
11
+ const knob = useRef(null);
12
+ const last = useRef(35);
13
+ const set = (n) => {
14
+ const c = Math.max(0, Math.min(100, Math.round(n)));
15
+ if (Math.floor(c / 10) !== Math.floor(last.current / 10)) navigator.vibrate?.(5);
16
+ last.current = c;
17
+ setV(c);
18
+ };
19
+ const fromPointer = (e) => {
20
+ const r = knob.current.getBoundingClientRect();
21
+ let a = Math.atan2(e.clientX - (r.left + r.width / 2), -(e.clientY - (r.top + r.height / 2))) * 180 / Math.PI;
22
+ a = Math.max(MIN_A, Math.min(MAX_A, a));
23
+ set((a - MIN_A) / (MAX_A - MIN_A) * 100);
24
+ };
25
+ const angle = MIN_A + v / 100 * (MAX_A - MIN_A);
26
+ return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-3", children: [
27
+ /* @__PURE__ */ jsxs("div", { className: "relative h-44 w-44", children: [
28
+ Array.from({ length: TICKS }, (_, i) => {
29
+ const a = MIN_A + i / (TICKS - 1) * (MAX_A - MIN_A);
30
+ const on = i / (TICKS - 1) * 100 <= v;
31
+ return /* @__PURE__ */ jsx(
32
+ "span",
33
+ {
34
+ className: `absolute left-1/2 top-0 h-full w-px origin-center transition-colors duration-150`,
35
+ style: { transform: `translateX(-50%) rotate(${a}deg)` },
36
+ children: /* @__PURE__ */ jsx("span", { className: `block w-px ${i % 5 === 0 ? "h-3" : "h-2"} ${on ? "bg-signal" : "bg-line"}` })
37
+ },
38
+ i
39
+ );
40
+ }),
41
+ /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ ref: knob,
45
+ role: "slider",
46
+ tabIndex: 0,
47
+ "aria-label": "Gain",
48
+ "aria-valuemin": 0,
49
+ "aria-valuemax": 100,
50
+ "aria-valuenow": v,
51
+ onPointerDown: (e) => {
52
+ e.currentTarget.setPointerCapture(e.pointerId);
53
+ fromPointer(e);
54
+ },
55
+ onPointerMove: (e) => e.buttons && fromPointer(e),
56
+ onWheel: (e) => set(v - Math.sign(e.deltaY) * 3),
57
+ onKeyDown: (e) => {
58
+ if (e.key === "ArrowUp" || e.key === "ArrowRight") set(v + 2);
59
+ if (e.key === "ArrowDown" || e.key === "ArrowLeft") set(v - 2);
60
+ },
61
+ className: "absolute inset-6 cursor-grab rounded-full border border-line bg-paper-2 outline-none [touch-action:none] focus-visible:border-signal active:cursor-grabbing",
62
+ style: { transform: `rotate(${angle}deg)` },
63
+ children: /* @__PURE__ */ jsx("span", { className: "absolute left-1/2 top-2.5 h-5 w-[3px] -translate-x-1/2 bg-signal" })
64
+ }
65
+ ),
66
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em] pointer-events-none absolute inset-0 grid place-items-center tabular-nums text-ink", children: String(v).padStart(3, "0") })
67
+ ] }),
68
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em] text-mute", children: "Turn it \xB7 scroll \xB7 arrows" })
69
+ ] });
70
+ }
71
+
72
+ export {
73
+ DialKnob
74
+ };
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/SpotlightGrid.tsx
4
+ import { useRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var ITEMS = ["Brand", "Web", "Product", "Motion", "3D", "Systems", "Rust", "AI", "Docs"];
7
+ function SpotlightGrid() {
8
+ const ref = useRef(null);
9
+ const move = (e) => {
10
+ for (const tile of ref.current.children) {
11
+ const r = tile.getBoundingClientRect();
12
+ tile.style.setProperty("--x", `${e.clientX - r.left}px`);
13
+ tile.style.setProperty("--y", `${e.clientY - r.top}px`);
14
+ }
15
+ };
16
+ return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center p-6", children: /* @__PURE__ */ jsx("div", { ref, onPointerMove: move, className: "group grid w-full max-w-[300px] grid-cols-3 gap-1.5", children: ITEMS.map((t) => /* @__PURE__ */ jsx(
17
+ "div",
18
+ {
19
+ className: "relative aspect-square overflow-hidden rounded-xl bg-ink p-px [background-image:radial-gradient(140px_circle_at_var(--x,-200px)_var(--y,-200px),var(--signal),transparent_60%)]",
20
+ children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-end rounded-[11px] bg-ink p-2.5 [background-image:radial-gradient(160px_circle_at_var(--x,-200px)_var(--y,-200px),color-mix(in_srgb,var(--signal)_18%,transparent),transparent_60%)]", children: /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em] text-paper/70", children: t }) })
21
+ },
22
+ t
23
+ )) }) });
24
+ }
25
+
26
+ export {
27
+ SpotlightGrid
28
+ };
@@ -0,0 +1,115 @@
1
+ "use client";
2
+
3
+ // components/kit/input.tsx
4
+ import { useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var SIZE = {
8
+ sm: "h-8 rounded-md px-2.5 text-[13px] gap-2",
9
+ md: "h-10 rounded-lg px-3 text-[14px] gap-2.5",
10
+ lg: "h-12 rounded-[9px] px-4 text-[15px] gap-3"
11
+ };
12
+ var RING = {
13
+ default: "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)]",
14
+ error: "shadow-[inset_0_0_0_1px_#e5484d] focus-within:shadow-[inset_0_0_0_1px_#e5484d,0_0_0_4px_rgb(229_72_77/0.16)]",
15
+ success: "shadow-[inset_0_0_0_1px_#30a46c] focus-within:shadow-[inset_0_0_0_1px_#30a46c,0_0_0_4px_rgb(48_164_108/0.16)]"
16
+ };
17
+ var StateIcon = ({ state }) => state === "error" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-[#e5484d]", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: [
18
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
19
+ /* @__PURE__ */ jsx("path", { d: "M8 5v3.5M8 11h.01" })
20
+ ] }) : state === "success" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-[#30a46c]", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) }) : null;
21
+ function Input({ size = "md", state = "default", iconLeft, iconRight, clearable, className, inputClassName, ...rest }) {
22
+ const ref = useRef(null);
23
+ const controlled = rest.value !== void 0;
24
+ const [inner, setInner] = useState(String(rest.defaultValue ?? ""));
25
+ const value = controlled ? String(rest.value) : inner;
26
+ const clear = () => {
27
+ const el = ref.current;
28
+ Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set.call(el, "");
29
+ el.dispatchEvent(new Event("input", { bubbles: true }));
30
+ el.focus();
31
+ };
32
+ return /* @__PURE__ */ jsxs(
33
+ "div",
34
+ {
35
+ className: cx(
36
+ "group/in relative flex w-full items-center bg-paper text-ink transition-shadow duration-200",
37
+ SIZE[size],
38
+ RING[state],
39
+ rest.disabled && "pointer-events-none opacity-50",
40
+ className
41
+ ),
42
+ onPointerDown: (e) => {
43
+ if (e.target === e.currentTarget) {
44
+ e.preventDefault();
45
+ ref.current?.focus();
46
+ }
47
+ },
48
+ children: [
49
+ iconLeft && /* @__PURE__ */ jsx("span", { className: "flex shrink-0 text-mute transition-colors group-focus-within/in:text-ink [&_svg]:h-4 [&_svg]:w-4", children: iconLeft }),
50
+ /* @__PURE__ */ jsx(
51
+ "input",
52
+ {
53
+ ref,
54
+ "aria-invalid": state === "error" || void 0,
55
+ ...rest,
56
+ onChange: (e) => {
57
+ if (!controlled) setInner(e.target.value);
58
+ rest.onChange?.(e);
59
+ },
60
+ className: cx("h-full min-w-0 flex-1 bg-transparent outline-none placeholder:text-mute", inputClassName)
61
+ }
62
+ ),
63
+ clearable && /* @__PURE__ */ jsx(
64
+ "button",
65
+ {
66
+ type: "button",
67
+ tabIndex: value ? 0 : -1,
68
+ "aria-label": "Clear",
69
+ onClick: clear,
70
+ className: cx(
71
+ "grid h-5 w-5 shrink-0 place-items-center rounded-full bg-[color-mix(in_srgb,var(--ink)_9%,transparent)] text-ink-2 outline-none transition-[transform,opacity] duration-300 ease-[cubic-bezier(.16,1,.3,1)] hover:bg-[color-mix(in_srgb,var(--ink)_16%,transparent)] focus-visible:ring-2 focus-visible:ring-brand/50",
72
+ value ? "scale-100 opacity-100" : "pointer-events-none scale-50 opacity-0"
73
+ ),
74
+ children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 12 12", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3 3l6 6M9 3 3 9" }) })
75
+ }
76
+ ),
77
+ /* @__PURE__ */ jsx(StateIcon, { state }),
78
+ iconRight && /* @__PURE__ */ jsx("span", { className: "flex shrink-0 text-mute [&_svg]:h-4 [&_svg]:w-4", children: iconRight })
79
+ ]
80
+ }
81
+ );
82
+ }
83
+ function PasswordInput(props) {
84
+ const [show, setShow] = useState(false);
85
+ return /* @__PURE__ */ jsx(
86
+ Input,
87
+ {
88
+ ...props,
89
+ type: show ? "text" : "password",
90
+ inputClassName: cx(!show && "tracking-[0.12em]", props.inputClassName),
91
+ iconRight: /* @__PURE__ */ jsx(
92
+ "button",
93
+ {
94
+ type: "button",
95
+ onClick: () => setShow((v) => !v),
96
+ "aria-label": show ? "Hide password" : "Show password",
97
+ "aria-pressed": show,
98
+ className: "-mr-1 grid h-7 w-7 place-items-center rounded-lg text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
99
+ children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "!h-4 !w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
100
+ /* @__PURE__ */ jsx("path", { d: "M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z" }),
101
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "2", className: cx("origin-center transition-transform duration-300", show ? "scale-100" : "scale-0") }),
102
+ /* @__PURE__ */ jsx("path", { d: "M2.5 13.5l11-11", pathLength: 1, strokeDasharray: "1", className: "transition-[stroke-dashoffset] duration-300 ease-[cubic-bezier(.16,1,.3,1)]", style: { strokeDashoffset: show ? 1 : 0 } })
103
+ ] })
104
+ }
105
+ )
106
+ }
107
+ );
108
+ }
109
+ var input_default = Input;
110
+
111
+ export {
112
+ Input,
113
+ PasswordInput,
114
+ input_default
115
+ };
@@ -0,0 +1,136 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/PaymentStatus.tsx
4
+ import { useEffect, useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var EASE = "cubic-bezier(.16,1,.3,1)";
7
+ var OK = "var(--brand)";
8
+ var BAD = "var(--ink-2)";
9
+ var R = 44;
10
+ var C = 2 * Math.PI * R;
11
+ var WORD = { processing: "Processing\u2026", verifying: "Verifying\u2026", paid: "Paid", declined: "Declined" };
12
+ function PaymentStatus() {
13
+ const [run, setRun] = useState(0);
14
+ const [phase, setPhase] = useState("processing");
15
+ const [fading, setFading] = useState(false);
16
+ const spinner = useRef(null);
17
+ const spinning = useRef(true);
18
+ useEffect(() => {
19
+ spinning.current = phase === "processing";
20
+ }, [phase]);
21
+ useEffect(() => {
22
+ const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
23
+ let raf = 0;
24
+ let a = 0;
25
+ let v = 0;
26
+ let last = performance.now();
27
+ const step = (now) => {
28
+ const dt = Math.min(64, now - last) / 1e3;
29
+ last = now;
30
+ if (still) a = 0;
31
+ else if (spinning.current) {
32
+ v += (400 - v) * (1 - Math.exp(-dt / 0.25));
33
+ a += v * dt;
34
+ } else {
35
+ const rest = Math.ceil(a / 360) * 360;
36
+ a += (rest - a) * (1 - Math.exp(-dt / 0.18));
37
+ v = 0;
38
+ if (rest - a < 0.05) a = 0;
39
+ }
40
+ spinner.current?.setAttribute("transform", `rotate(${(a % 360).toFixed(2)} 50 50)`);
41
+ raf = requestAnimationFrame(step);
42
+ };
43
+ raf = requestAnimationFrame(step);
44
+ return () => cancelAnimationFrame(raf);
45
+ }, []);
46
+ useEffect(() => {
47
+ const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
48
+ const end = run % 3 === 2 ? "declined" : "paid";
49
+ const t = still ? [setTimeout(() => setPhase(end), 0)] : [
50
+ setTimeout(() => setPhase("verifying"), 1600),
51
+ setTimeout(() => setPhase(end), 3200),
52
+ setTimeout(() => setFading(true), 6e3),
53
+ setTimeout(() => {
54
+ setFading(false);
55
+ setPhase("processing");
56
+ setRun((r) => r + 1);
57
+ }, 6400)
58
+ ];
59
+ return () => t.forEach(clearTimeout);
60
+ }, [run]);
61
+ const done = phase === "paid" || phase === "declined";
62
+ const color = phase === "paid" ? OK : phase === "declined" ? BAD : "var(--ink)";
63
+ const dash = phase === "processing" ? C * 0.75 : 0;
64
+ const replay = () => {
65
+ setFading(false);
66
+ setPhase("processing");
67
+ setRun((r) => r + 1);
68
+ };
69
+ return /* @__PURE__ */ jsxs(
70
+ "button",
71
+ {
72
+ type: "button",
73
+ onClick: replay,
74
+ "aria-label": `Payment ${WORD[phase]}. Click to replay`,
75
+ className: "lab-ps flex h-full w-full cursor-pointer items-center justify-center px-6 pb-6 pt-12 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-brand/50",
76
+ style: { containerType: "size" },
77
+ children: [
78
+ /* @__PURE__ */ jsx("style", { href: "asta-paymentstatus", precedence: "asta", children: `
79
+ .lab-ps-body { display: flex; flex-direction: column; align-items: center; gap: min(5cqh, 18px); }
80
+ .lab-ps-ring { width: min(38cqh, 30cqw, 132px); }
81
+ .lab-ps-text { align-items: center; text-align: center; }
82
+ @container (aspect-ratio > 1.9) {
83
+ .lab-ps-body { flex-direction: row; gap: min(6cqw, 36px); }
84
+ .lab-ps-ring { width: min(58cqh, 22cqw, 132px); }
85
+ .lab-ps-text { align-items: flex-start; text-align: left; }
86
+ }
87
+ @keyframes lab-ps-draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
88
+ @keyframes lab-ps-pulse { from { transform: scale(1); opacity: .55 } to { transform: scale(1.5); opacity: 0 } }
89
+ @keyframes lab-ps-word { from { transform: translateY(40%); opacity: 0; filter: blur(3px) } to { transform: none; opacity: 1; filter: none } }
90
+ .lab-ps-draw { stroke-dasharray: 1; animation: lab-ps-draw .5s ${EASE} .15s both }
91
+ .lab-ps-pulse { animation: lab-ps-pulse 1.1s ${EASE} both; transform-origin: 50% 50% }
92
+ .lab-ps-word { animation: lab-ps-word .45s ${EASE} both }
93
+ @media (prefers-reduced-motion: reduce) { .lab-ps-draw, .lab-ps-pulse, .lab-ps-word { animation: none } }
94
+ ` }),
95
+ /* @__PURE__ */ jsxs("div", { className: "lab-ps-body", children: [
96
+ /* @__PURE__ */ jsxs("div", { className: "lab-ps-ring relative aspect-square shrink-0", children: [
97
+ done && /* @__PURE__ */ jsx("span", { className: "lab-ps-pulse absolute inset-0 rounded-full", style: { boxShadow: `0 0 0 2px ${color}` } }, `p${run}`),
98
+ /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 100 100", className: "h-full w-full", fill: "none", "aria-hidden": true, children: [
99
+ /* @__PURE__ */ jsx("circle", { cx: "50", cy: "50", r: R, stroke: "var(--ink)", strokeOpacity: "0.1", strokeWidth: "4" }),
100
+ /* @__PURE__ */ jsx("g", { ref: spinner, children: /* @__PURE__ */ jsx(
101
+ "circle",
102
+ {
103
+ cx: "50",
104
+ cy: "50",
105
+ r: R,
106
+ stroke: color,
107
+ strokeWidth: "4",
108
+ strokeLinecap: "round",
109
+ strokeDasharray: C,
110
+ strokeDashoffset: dash,
111
+ transform: "rotate(-90 50 50)",
112
+ style: {
113
+ transition: `stroke-dashoffset ${phase === "verifying" ? 1.5 : 0.7}s ${phase === "verifying" ? "cubic-bezier(.45,0,.2,1)" : EASE}, stroke .5s`
114
+ }
115
+ }
116
+ ) }),
117
+ /* @__PURE__ */ jsxs("g", { style: { opacity: fading ? 0 : 1, transition: `opacity .4s ${EASE}` }, children: [
118
+ done && /* @__PURE__ */ jsx("circle", { cx: "50", cy: "50", r: R - 9, fill: color, fillOpacity: "0.12", style: { transition: "fill .4s" } }),
119
+ phase === "paid" && /* @__PURE__ */ jsx("path", { className: "lab-ps-draw", pathLength: 1, d: "M34 51 45 62 67 39", stroke: OK, strokeWidth: "5", strokeLinecap: "round", strokeLinejoin: "round" }, `c${run}`),
120
+ phase === "declined" && /* @__PURE__ */ jsx("path", { className: "lab-ps-draw", pathLength: 1, d: "M38 38 62 62M62 38 38 62", stroke: BAD, strokeWidth: "5", strokeLinecap: "round" }, `x${run}`)
121
+ ] })
122
+ ] })
123
+ ] }),
124
+ /* @__PURE__ */ jsxs("div", { className: "lab-ps-text flex flex-col gap-1.5", children: [
125
+ /* @__PURE__ */ jsx("span", { className: "font-medium tabular-nums tracking-[-0.03em] text-ink", style: { fontSize: "clamp(26px, 11cqh, 44px)", lineHeight: 1 }, children: "$248.50" }),
126
+ /* @__PURE__ */ jsx("span", { className: "lab-ps-word text-[14px]", style: { color: done ? color : "var(--mute)", opacity: fading ? 0 : 1, transition: `opacity .4s ${EASE}` }, children: WORD[phase] }, phase)
127
+ ] })
128
+ ] })
129
+ ]
130
+ }
131
+ );
132
+ }
133
+
134
+ export {
135
+ PaymentStatus
136
+ };
@@ -0,0 +1,230 @@
1
+ "use client";
2
+
3
+ // components/kit/base/command-palette.tsx
4
+ import { Dialog as D } from "@base-ui/react/dialog";
5
+ import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ var cx = (...c) => c.filter(Boolean).join(" ");
8
+ function fuzzy(text, query) {
9
+ const t = text.toLowerCase();
10
+ const q = query.toLowerCase().replace(/\s+/g, "");
11
+ if (!q) return { score: 0, hits: [] };
12
+ const hits = [];
13
+ let score = 0;
14
+ let from = 0;
15
+ for (const ch of q) {
16
+ const at = t.indexOf(ch, from);
17
+ if (at < 0) return null;
18
+ if (hits.length && at === hits[hits.length - 1] + 1) score += 3;
19
+ if (at === 0 || t[at - 1] === " ") score += 2;
20
+ score -= (at - from) * 0.1;
21
+ hits.push(at);
22
+ from = at + 1;
23
+ }
24
+ return { score, hits };
25
+ }
26
+ function Highlight({ text, hits }) {
27
+ if (!hits.length) return /* @__PURE__ */ jsx(Fragment, { children: text });
28
+ const set = new Set(hits);
29
+ return /* @__PURE__ */ jsx(Fragment, { children: [...text].map(
30
+ (c, i) => set.has(i) ? /* @__PURE__ */ jsx("mark", { className: "bg-transparent font-semibold text-ink", children: c }, i) : /* @__PURE__ */ jsx("span", { children: c }, i)
31
+ ) });
32
+ }
33
+ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "Type a command or search\u2026", contained = false, className }) {
34
+ const [q, setQ] = useState("");
35
+ const [at, setAt] = useState(0);
36
+ const input = useRef(null);
37
+ const list = useRef(null);
38
+ const back = useRef(null);
39
+ const listId = useId();
40
+ const host = useRef(null);
41
+ const sections = useMemo(() => {
42
+ const scored = commands.map((c) => {
43
+ const m = fuzzy(c.label, q) ?? (c.keywords && q.trim() && c.keywords.toLowerCase().includes(q.trim().toLowerCase()) ? { score: -5, hits: [] } : null);
44
+ return m && { c, ...m };
45
+ }).filter((x) => !!x);
46
+ if (q) scored.sort((a, b) => b.score - a.score);
47
+ const order = [...groups ?? [], ...commands.map((c) => c.group)].filter((g, i, a) => a.indexOf(g) === i);
48
+ return order.map((g) => ({ group: g, items: scored.filter((s) => s.c.group === g) })).filter((s) => s.items.length);
49
+ }, [commands, groups, q]);
50
+ const flat = sections.flatMap((s) => s.items);
51
+ const active = Math.min(at, Math.max(0, flat.length - 1));
52
+ useEffect(() => {
53
+ list.current?.querySelector(`[data-index="${active}"]`)?.scrollIntoView({ block: "nearest" });
54
+ }, [active]);
55
+ useLayoutEffect(() => {
56
+ if (open && !list.current?.contains(document.activeElement)) back.current = document.activeElement;
57
+ }, [open]);
58
+ const close = () => onOpenChange(false);
59
+ const run = (c) => {
60
+ if (!c) return;
61
+ c.onSelect?.();
62
+ close();
63
+ };
64
+ let n = -1;
65
+ const pos = contained ? "absolute" : "fixed";
66
+ const overlay = /* @__PURE__ */ jsx(
67
+ D.Backdrop,
68
+ {
69
+ className: cx(
70
+ pos,
71
+ "inset-0 z-50 bg-[color-mix(in_srgb,var(--ink)_24%,transparent)] will-change-[opacity]",
72
+ "transition-opacity duration-200 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 motion-reduce:!transition-none",
73
+ contained && "rounded-[inherit]"
74
+ )
75
+ }
76
+ );
77
+ const content = /* @__PURE__ */ jsxs(
78
+ D.Popup,
79
+ {
80
+ initialFocus: () => {
81
+ setQ("");
82
+ setAt(0);
83
+ return input.current ?? true;
84
+ },
85
+ finalFocus: () => back.current?.isConnected ? back.current : true,
86
+ className: cx(
87
+ pos,
88
+ "left-1/2 top-[10%] z-50 flex will-change-[transform,opacity] max-h-[min(440px,calc(100%-2rem))] w-[calc(100%-1.5rem)] max-w-[560px] -translate-x-1/2 flex-col overflow-hidden rounded-xl bg-paper outline-none",
89
+ "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_24px_60px_-20px_rgb(0_0_0/0.4)]",
90
+ "transition-[opacity,transform] duration-[350ms] ease-[cubic-bezier(.16,1,.3,1)] data-[starting-style]:opacity-0 data-[starting-style]:[transform:translateY(-8px)_scale(.97)]",
91
+ "data-[ending-style]:opacity-0 data-[ending-style]:[transform:translateY(-4px)_scale(.98)] data-[ending-style]:duration-150 data-[ending-style]:ease-in motion-reduce:!transition-none",
92
+ className
93
+ ),
94
+ onKeyDown: (e) => {
95
+ if (e.key === "ArrowDown") setAt((active + 1) % Math.max(1, flat.length));
96
+ else if (e.key === "ArrowUp") setAt((active - 1 + flat.length) % Math.max(1, flat.length));
97
+ else if (e.key === "Home") setAt(0);
98
+ else if (e.key === "End") setAt(flat.length - 1);
99
+ else if (e.key === "Enter") run(flat[active]?.c);
100
+ else return;
101
+ e.preventDefault();
102
+ e.stopPropagation();
103
+ },
104
+ children: [
105
+ /* @__PURE__ */ jsx(D.Title, { className: "sr-only", children: "Command palette" }),
106
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 px-4 shadow-[inset_0_-1px_0_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: [
107
+ /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "1.6", "aria-hidden": true, children: [
108
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.5" }),
109
+ /* @__PURE__ */ jsx("path", { d: "m10.5 10.5 3 3", strokeLinecap: "round" })
110
+ ] }),
111
+ /* @__PURE__ */ jsx(
112
+ "input",
113
+ {
114
+ ref: input,
115
+ value: q,
116
+ onChange: (e) => {
117
+ setQ(e.target.value);
118
+ setAt(0);
119
+ },
120
+ placeholder,
121
+ role: "combobox",
122
+ "aria-expanded": "true",
123
+ "aria-controls": listId,
124
+ "aria-activedescendant": flat[active] ? `${listId}-${flat[active].c.id}` : void 0,
125
+ "aria-autocomplete": "list",
126
+ className: "h-12 min-w-0 flex-1 bg-transparent text-[15px] text-ink outline-none placeholder:text-mute"
127
+ }
128
+ ),
129
+ /* @__PURE__ */ jsx("kbd", { className: "rounded-md bg-paper-2 px-1.5 font-sans text-[11px] leading-5 text-mute", children: "Esc" })
130
+ ] }),
131
+ /* @__PURE__ */ jsxs("div", { ref: list, id: listId, role: "listbox", "aria-label": "Results", className: "min-h-0 flex-1 overflow-y-auto overscroll-contain p-1.5", children: [
132
+ sections.map((s) => /* @__PURE__ */ jsxs("div", { role: "group", "aria-label": s.group, className: "mb-1 last:mb-0", children: [
133
+ /* @__PURE__ */ jsx("p", { className: "px-2.5 pb-1 pt-2 text-[11.5px] font-medium text-mute", children: s.group }),
134
+ s.items.map(({ c, hits }) => {
135
+ n += 1;
136
+ const i = n;
137
+ const on = i === active;
138
+ return /* @__PURE__ */ jsxs(
139
+ "div",
140
+ {
141
+ id: `${listId}-${c.id}`,
142
+ role: "option",
143
+ "aria-selected": on,
144
+ "data-index": i,
145
+ onPointerMove: () => at !== i && setAt(i),
146
+ onClick: () => run(c),
147
+ className: cx(
148
+ "relative flex h-10 cursor-pointer items-center gap-3 rounded-[10px] px-2.5 text-[14px] transition-colors duration-150",
149
+ on ? "bg-paper-2 text-ink" : "text-ink-2"
150
+ ),
151
+ children: [
152
+ on && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-y-2.5 left-0 w-0.5 rounded-full bg-brand" }),
153
+ c.icon && /* @__PURE__ */ jsx(
154
+ "span",
155
+ {
156
+ className: cx(
157
+ "flex h-6 w-6 shrink-0 items-center justify-center rounded-md [&_svg]:h-3.5 [&_svg]:w-3.5",
158
+ on ? "bg-paper text-ink" : "bg-paper-2 text-mute"
159
+ ),
160
+ children: c.icon
161
+ }
162
+ ),
163
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: /* @__PURE__ */ jsx(Highlight, { text: c.label, hits }) }),
164
+ c.shortcut && /* @__PURE__ */ jsx("kbd", { className: "font-sans text-[11.5px] text-mute", children: c.shortcut }),
165
+ on && /* @__PURE__ */ jsx(
166
+ "svg",
167
+ {
168
+ viewBox: "0 0 16 16",
169
+ className: "h-3.5 w-3.5 text-mute",
170
+ fill: "none",
171
+ stroke: "currentColor",
172
+ strokeWidth: "1.6",
173
+ strokeLinecap: "round",
174
+ strokeLinejoin: "round",
175
+ "aria-hidden": true,
176
+ children: /* @__PURE__ */ jsx("path", { d: "M13 4v4.5a1.5 1.5 0 0 1-1.5 1.5H3.5M6 7l-2.5 3L6 13" })
177
+ }
178
+ )
179
+ ]
180
+ },
181
+ c.id
182
+ );
183
+ })
184
+ ] }, s.group)),
185
+ flat.length === 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center px-4 py-10 text-center", role: "status", children: [
186
+ /* @__PURE__ */ jsx("span", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-paper-2 text-mute", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: [
187
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.5" }),
188
+ /* @__PURE__ */ jsx("path", { d: "m10.5 10.5 3 3M5.5 7h3" })
189
+ ] }) }),
190
+ /* @__PURE__ */ jsxs("p", { className: "mt-3 text-[14px] text-ink", children: [
191
+ "No results for \u201C",
192
+ q,
193
+ "\u201D"
194
+ ] }),
195
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-[13px] text-mute", children: "Try a shorter word, or fewer letters." })
196
+ ] })
197
+ ] }),
198
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 px-4 py-2.5 text-[12px] text-mute shadow-[inset_0_1px_0_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: [
199
+ [
200
+ ["\u2191\u2193", "Navigate"],
201
+ ["\u21B5", "Open"],
202
+ ["Esc", "Close"]
203
+ ].map(([k, l]) => /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
204
+ /* @__PURE__ */ jsx("kbd", { className: "min-w-5 rounded-md bg-paper-2 px-1 text-center font-sans text-[11px] leading-5 text-ink-2", children: k }),
205
+ l
206
+ ] }, l)),
207
+ /* @__PURE__ */ jsxs("span", { className: "ml-auto hidden tabular-nums sm:inline", children: [
208
+ flat.length,
209
+ " ",
210
+ flat.length === 1 ? "result" : "results"
211
+ ] })
212
+ ] })
213
+ ]
214
+ }
215
+ );
216
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
217
+ contained && /* @__PURE__ */ jsx("span", { ref: host, className: "contents" }),
218
+ /* @__PURE__ */ jsx(D.Root, { open, onOpenChange: (next) => onOpenChange(next), children: /* @__PURE__ */ jsxs(D.Portal, { container: contained ? host : void 0, children: [
219
+ overlay,
220
+ content
221
+ ] }) })
222
+ ] });
223
+ }
224
+ var command_palette_default = CommandPalette;
225
+
226
+ export {
227
+ fuzzy,
228
+ CommandPalette,
229
+ command_palette_default
230
+ };