@42-central/ui-react 0.17.1 → 0.18.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 (311) hide show
  1. package/dist/{chunk-FD6P6PLQ.js → chunk-5JHDSVEZ.js} +3 -3
  2. package/dist/{chunk-FD6P6PLQ.js.map → chunk-5JHDSVEZ.js.map} +1 -1
  3. package/dist/{chunk-QMW7D5GU.js → chunk-5OQLFX47.js} +4 -3
  4. package/dist/chunk-5OQLFX47.js.map +1 -0
  5. package/dist/{chunk-VZ2TPU4B.js → chunk-6GDMSENK.js} +3 -2
  6. package/dist/chunk-6GDMSENK.js.map +1 -0
  7. package/dist/{chunk-TNNH3FVQ.js → chunk-6OLTJYSX.js} +24 -8
  8. package/dist/chunk-6OLTJYSX.js.map +1 -0
  9. package/dist/{chunk-POKDSVQT.js → chunk-AE7QTLJ5.js} +5 -4
  10. package/dist/chunk-AE7QTLJ5.js.map +1 -0
  11. package/dist/{chunk-44OV3PNH.js → chunk-B2YJKRNQ.js} +3 -3
  12. package/dist/{chunk-44OV3PNH.js.map → chunk-B2YJKRNQ.js.map} +1 -1
  13. package/dist/{chunk-YIQI2CF3.js → chunk-CTSO6V72.js} +3 -2
  14. package/dist/chunk-CTSO6V72.js.map +1 -0
  15. package/dist/{chunk-EVVMHTCL.js → chunk-EBREIC3L.js} +4 -3
  16. package/dist/chunk-EBREIC3L.js.map +1 -0
  17. package/dist/{chunk-UNSAA7YG.js → chunk-FHG54IT5.js} +3 -2
  18. package/dist/chunk-FHG54IT5.js.map +1 -0
  19. package/dist/{chunk-3GYOIQW7.js → chunk-FZIHZT5R.js} +5 -5
  20. package/dist/{chunk-3GYOIQW7.js.map → chunk-FZIHZT5R.js.map} +1 -1
  21. package/dist/{chunk-2H46IXW4.js → chunk-HAQJQFE6.js} +28 -8
  22. package/dist/chunk-HAQJQFE6.js.map +1 -0
  23. package/dist/{chunk-IHYFYMHJ.js → chunk-HT5JAHR3.js} +6 -6
  24. package/dist/{chunk-IHYFYMHJ.js.map → chunk-HT5JAHR3.js.map} +1 -1
  25. package/dist/chunk-I4SQQIP5.js +12 -0
  26. package/dist/chunk-I4SQQIP5.js.map +1 -0
  27. package/dist/{chunk-J3PELDH3.js → chunk-JITF6I7N.js} +22 -6
  28. package/dist/chunk-JITF6I7N.js.map +1 -0
  29. package/dist/{chunk-IFWCCAQV.js → chunk-KHMFNH3X.js} +3 -2
  30. package/dist/chunk-KHMFNH3X.js.map +1 -0
  31. package/dist/{chunk-SIG4DMNZ.js → chunk-MI2WZRK3.js} +4 -4
  32. package/dist/{chunk-SIG4DMNZ.js.map → chunk-MI2WZRK3.js.map} +1 -1
  33. package/dist/{chunk-YON5Y336.js → chunk-O23Y5ML4.js} +8 -8
  34. package/dist/{chunk-YON5Y336.js.map → chunk-O23Y5ML4.js.map} +1 -1
  35. package/dist/{chunk-P7A3BCAC.js → chunk-OWG4BCQR.js} +3 -3
  36. package/dist/{chunk-P7A3BCAC.js.map → chunk-OWG4BCQR.js.map} +1 -1
  37. package/dist/{chunk-FUWSTUDM.js → chunk-PH354ECN.js} +4 -4
  38. package/dist/{chunk-FUWSTUDM.js.map → chunk-PH354ECN.js.map} +1 -1
  39. package/dist/{chunk-U5GW5EBR.js → chunk-RAUOFTUH.js} +12 -20
  40. package/dist/chunk-RAUOFTUH.js.map +1 -0
  41. package/dist/{chunk-2762HZYX.js → chunk-S2HWWR2H.js} +47 -25
  42. package/dist/chunk-S2HWWR2H.js.map +1 -0
  43. package/dist/{chunk-VLUKI3HL.js → chunk-S7N4LGLZ.js} +6 -13
  44. package/dist/chunk-S7N4LGLZ.js.map +1 -0
  45. package/dist/{chunk-NSOA3GMZ.js → chunk-UHNRAI6V.js} +3 -3
  46. package/dist/{chunk-NSOA3GMZ.js.map → chunk-UHNRAI6V.js.map} +1 -1
  47. package/dist/{chunk-3NZXWCGF.js → chunk-WHKKN3ZK.js} +6 -6
  48. package/dist/{chunk-3NZXWCGF.js.map → chunk-WHKKN3ZK.js.map} +1 -1
  49. package/dist/{chunk-MOI7B3KH.js → chunk-WQN64ZHG.js} +5 -5
  50. package/dist/{chunk-MOI7B3KH.js.map → chunk-WQN64ZHG.js.map} +1 -1
  51. package/dist/chunk-WSIVRDRB.js +34 -0
  52. package/dist/chunk-WSIVRDRB.js.map +1 -0
  53. package/dist/{chunk-6SWK4XG5.js → chunk-YXE4B6X3.js} +2 -2
  54. package/dist/chunk-YXE4B6X3.js.map +1 -0
  55. package/dist/{chunk-NGAQITWP.js → chunk-Z2Z5EXVT.js} +10 -7
  56. package/dist/chunk-Z2Z5EXVT.js.map +1 -0
  57. package/dist/{chunk-IXKELBJA.js → chunk-ZDXQ64A7.js} +63 -44
  58. package/dist/chunk-ZDXQ64A7.js.map +1 -0
  59. package/dist/components/accordion/accordion-data.d.ts +3 -2
  60. package/dist/components/accordion/accordion-data.d.ts.map +1 -1
  61. package/dist/components/accordion/accordion.d.ts +2 -2
  62. package/dist/components/accordion/accordion.d.ts.map +1 -1
  63. package/dist/components/accordion/index.js +20 -8
  64. package/dist/components/accordion/index.js.map +1 -1
  65. package/dist/components/action-icon/action-icon.d.ts +3 -4
  66. package/dist/components/action-icon/action-icon.d.ts.map +1 -1
  67. package/dist/components/action-icon/index.js +2 -1
  68. package/dist/components/alert/alert.d.ts +1 -1
  69. package/dist/components/alert/alert.d.ts.map +1 -1
  70. package/dist/components/alert/index.js +16 -4
  71. package/dist/components/alert/index.js.map +1 -1
  72. package/dist/components/app-shell/app-shell.d.ts +3 -2
  73. package/dist/components/app-shell/app-shell.d.ts.map +1 -1
  74. package/dist/components/app-shell/index.js +4 -2
  75. package/dist/components/app-shell/index.js.map +1 -1
  76. package/dist/components/autocomplete/index.js +5 -4
  77. package/dist/components/autocomplete/index.js.map +1 -1
  78. package/dist/components/breadcrumb/breadcrumb.d.ts +3 -2
  79. package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  80. package/dist/components/breadcrumb/index.js +11 -5
  81. package/dist/components/breadcrumb/index.js.map +1 -1
  82. package/dist/components/button/button.d.ts +4 -4
  83. package/dist/components/button/button.d.ts.map +1 -1
  84. package/dist/components/button/index.js +2 -1
  85. package/dist/components/button-multi-select/index.js +4 -3
  86. package/dist/components/button-multi-select/index.js.map +1 -1
  87. package/dist/components/button-select/index.js +4 -3
  88. package/dist/components/button-select/index.js.map +1 -1
  89. package/dist/components/calendar/index.js +3 -2
  90. package/dist/components/checkbox/index.js +2 -2
  91. package/dist/components/choice-card-group/index.js +1 -1
  92. package/dist/components/circular-progress/circular-progress.d.ts +3 -2
  93. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  94. package/dist/components/circular-progress/index.js +1 -0
  95. package/dist/components/circular-progress/index.js.map +1 -1
  96. package/dist/components/clipboard/clipboard.d.ts +1 -1
  97. package/dist/components/clipboard/clipboard.d.ts.map +1 -1
  98. package/dist/components/clipboard/index.js +9 -5
  99. package/dist/components/clipboard/index.js.map +1 -1
  100. package/dist/components/code-block/chrome.d.ts +4 -1
  101. package/dist/components/code-block/chrome.d.ts.map +1 -1
  102. package/dist/components/code-block/chrome.js +5 -4
  103. package/dist/components/code-block/code-block.d.ts +7 -1
  104. package/dist/components/code-block/code-block.d.ts.map +1 -1
  105. package/dist/components/code-block/index.d.ts +1 -1
  106. package/dist/components/code-block/index.js +12 -10
  107. package/dist/components/code-block/index.js.map +1 -1
  108. package/dist/components/code-block/notation.d.ts +5 -2
  109. package/dist/components/code-block/notation.d.ts.map +1 -1
  110. package/dist/components/code-block/static.d.ts +4 -1
  111. package/dist/components/code-block/static.d.ts.map +1 -1
  112. package/dist/components/code-block/static.js +5 -4
  113. package/dist/components/code-block/static.js.map +1 -1
  114. package/dist/components/collapse/collapse.d.ts +7 -3
  115. package/dist/components/collapse/collapse.d.ts.map +1 -1
  116. package/dist/components/collapse/index.js +2 -1
  117. package/dist/components/combobox/combobox.d.ts +11 -10
  118. package/dist/components/combobox/combobox.d.ts.map +1 -1
  119. package/dist/components/combobox/index.js +5 -4
  120. package/dist/components/combobox-list/index.js +6 -5
  121. package/dist/components/data-table/index.js +20 -19
  122. package/dist/components/data-table/index.js.map +1 -1
  123. package/dist/components/date-picker/index.js +12 -11
  124. package/dist/components/date-picker/index.js.map +1 -1
  125. package/dist/components/divider/divider.d.ts +3 -2
  126. package/dist/components/divider/divider.d.ts.map +1 -1
  127. package/dist/components/divider/index.js +1 -1
  128. package/dist/components/drawer/drawer.d.ts +6 -5
  129. package/dist/components/drawer/drawer.d.ts.map +1 -1
  130. package/dist/components/drawer/index.js +3 -2
  131. package/dist/components/field/field.d.ts +7 -4
  132. package/dist/components/field/field.d.ts.map +1 -1
  133. package/dist/components/field/index.js +1 -1
  134. package/dist/components/file-upload/index.js +3 -2
  135. package/dist/components/file-upload/index.js.map +1 -1
  136. package/dist/components/hover-card/index.js +1 -1
  137. package/dist/components/input/index.js +2 -2
  138. package/dist/components/input/input.d.ts +3 -2
  139. package/dist/components/input/input.d.ts.map +1 -1
  140. package/dist/components/menu/index.js +3 -2
  141. package/dist/components/menu/index.js.map +1 -1
  142. package/dist/components/menu/menu-data.d.ts +6 -1
  143. package/dist/components/menu/menu-data.d.ts.map +1 -1
  144. package/dist/components/menu/menu.d.ts +5 -5
  145. package/dist/components/menu/menu.d.ts.map +1 -1
  146. package/dist/components/modal/index.js +3 -2
  147. package/dist/components/modal/modal.d.ts +4 -3
  148. package/dist/components/modal/modal.d.ts.map +1 -1
  149. package/dist/components/multi-combobox-list/index.js +6 -5
  150. package/dist/components/multi-select/index.js +7 -6
  151. package/dist/components/multi-select/index.js.map +1 -1
  152. package/dist/components/nav-link/index.js +3 -2
  153. package/dist/components/nav-link/tanstack.js +3 -2
  154. package/dist/components/nav-link/tanstack.js.map +1 -1
  155. package/dist/components/notification/index.js +4 -3
  156. package/dist/components/notification/index.js.map +1 -1
  157. package/dist/components/notification/notification.d.ts +3 -2
  158. package/dist/components/notification/notification.d.ts.map +1 -1
  159. package/dist/components/number-input/index.js +4 -4
  160. package/dist/components/overlays/index.js +5 -4
  161. package/dist/components/overlays/index.js.map +1 -1
  162. package/dist/components/password-input/index.js +2 -2
  163. package/dist/components/pill/index.js +2 -1
  164. package/dist/components/pill/pill.d.ts +4 -2
  165. package/dist/components/pill/pill.d.ts.map +1 -1
  166. package/dist/components/pills-input/index.js +5 -4
  167. package/dist/components/pills-input/pills-input.d.ts +3 -2
  168. package/dist/components/pills-input/pills-input.d.ts.map +1 -1
  169. package/dist/components/pin-input/index.js +2 -2
  170. package/dist/components/popover/index.js +1 -1
  171. package/dist/components/popover/popover.d.ts +3 -2
  172. package/dist/components/popover/popover.d.ts.map +1 -1
  173. package/dist/components/progress/index.js +1 -0
  174. package/dist/components/progress/index.js.map +1 -1
  175. package/dist/components/progress/progress.d.ts +3 -2
  176. package/dist/components/progress/progress.d.ts.map +1 -1
  177. package/dist/components/radio-group/index.js +1 -1
  178. package/dist/components/rating/index.js +2 -1
  179. package/dist/components/rating/index.js.map +1 -1
  180. package/dist/components/rating/rating.d.ts +3 -2
  181. package/dist/components/rating/rating.d.ts.map +1 -1
  182. package/dist/components/schedule/index.d.ts +2 -2
  183. package/dist/components/schedule/index.js +50 -23
  184. package/dist/components/schedule/index.js.map +1 -1
  185. package/dist/components/schedule/schedule-agenda-list.d.ts +6 -7
  186. package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -1
  187. package/dist/components/schedule/schedule-agenda-view.d.ts +19 -16
  188. package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -1
  189. package/dist/components/schedule/schedule-dates.d.ts.map +1 -1
  190. package/dist/components/schedule/schedule-days-view.d.ts +3 -2
  191. package/dist/components/schedule/schedule-days-view.d.ts.map +1 -1
  192. package/dist/components/schedule/schedule-month-view.d.ts +3 -2
  193. package/dist/components/schedule/schedule-month-view.d.ts.map +1 -1
  194. package/dist/components/schedule/schedule-next-up.d.ts +4 -3
  195. package/dist/components/schedule/schedule-next-up.d.ts.map +1 -1
  196. package/dist/components/schedule/schedule-toolbar.d.ts +1 -1
  197. package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -1
  198. package/dist/components/schedule/schedule-types.d.ts +5 -3
  199. package/dist/components/schedule/schedule-types.d.ts.map +1 -1
  200. package/dist/components/schedule/schedule-views.d.ts +2 -2
  201. package/dist/components/schedule/schedule-views.d.ts.map +1 -1
  202. package/dist/components/schedule/schedule-year-view.d.ts +3 -2
  203. package/dist/components/schedule/schedule-year-view.d.ts.map +1 -1
  204. package/dist/components/schedule/schedule.d.ts +9 -6
  205. package/dist/components/schedule/schedule.d.ts.map +1 -1
  206. package/dist/components/segment-group/index.js +2 -2
  207. package/dist/components/select/index.js +4 -4
  208. package/dist/components/slider/index.js +2 -1
  209. package/dist/components/slider/index.js.map +1 -1
  210. package/dist/components/slider/slider.d.ts +3 -2
  211. package/dist/components/slider/slider.d.ts.map +1 -1
  212. package/dist/components/switch/index.js +1 -1
  213. package/dist/components/tabs/index.js +1 -1
  214. package/dist/components/tabs/tabs-data.d.ts +3 -2
  215. package/dist/components/tabs/tabs-data.d.ts.map +1 -1
  216. package/dist/components/tags-input/index.js +6 -5
  217. package/dist/components/tags-input/index.js.map +1 -1
  218. package/dist/components/text-input/index.js +2 -2
  219. package/dist/components/textarea/index.js +2 -2
  220. package/dist/components/time-input/index.js +6 -6
  221. package/dist/components/timeline/index.js +8 -5
  222. package/dist/components/timeline/index.js.map +1 -1
  223. package/dist/components/timeline/timeline.d.ts +1 -1
  224. package/dist/components/timeline/timeline.d.ts.map +1 -1
  225. package/dist/components/tooltip/index.js +1 -1
  226. package/dist/components/tooltip/tooltip.d.ts +2 -1
  227. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  228. package/dist/components/tree-multi-select/index.js +6 -5
  229. package/dist/components/tree-multi-select/index.js.map +1 -1
  230. package/dist/components/tree-select/index.js +3 -3
  231. package/dist/lib/as-child.d.ts +104 -0
  232. package/dist/lib/as-child.d.ts.map +1 -0
  233. package/package.json +1 -1
  234. package/src/as-child.contract.test.tsx +809 -0
  235. package/src/components/accordion/accordion-data.tsx +8 -5
  236. package/src/components/accordion/accordion.test.tsx +40 -0
  237. package/src/components/accordion/accordion.tsx +23 -6
  238. package/src/components/action-icon/action-icon.tsx +9 -24
  239. package/src/components/alert/alert.test.tsx +17 -0
  240. package/src/components/alert/alert.tsx +21 -2
  241. package/src/components/app-shell/app-shell.tsx +3 -1
  242. package/src/components/breadcrumb/breadcrumb.test.tsx +30 -0
  243. package/src/components/breadcrumb/breadcrumb.tsx +21 -12
  244. package/src/components/button/button.tsx +21 -50
  245. package/src/components/circular-progress/circular-progress.tsx +4 -1
  246. package/src/components/clipboard/clipboard.test.tsx +18 -0
  247. package/src/components/clipboard/clipboard.tsx +8 -2
  248. package/src/components/code-block/chrome.tsx +60 -36
  249. package/src/components/code-block/code-block.test.tsx +27 -0
  250. package/src/components/code-block/code-block.tsx +13 -3
  251. package/src/components/code-block/notation.test.ts +8 -0
  252. package/src/components/code-block/notation.ts +6 -3
  253. package/src/components/code-block/static.tsx +8 -2
  254. package/src/components/collapse/collapse.tsx +33 -15
  255. package/src/components/combobox/combobox.test.tsx +38 -0
  256. package/src/components/combobox/combobox.tsx +24 -10
  257. package/src/components/divider/divider.tsx +3 -1
  258. package/src/components/drawer/drawer.tsx +37 -16
  259. package/src/components/field/field.tsx +7 -3
  260. package/src/components/input/input.tsx +3 -1
  261. package/src/components/menu/menu-data.tsx +8 -1
  262. package/src/components/menu/menu.test.tsx +52 -0
  263. package/src/components/menu/menu.tsx +83 -35
  264. package/src/components/modal/close-trigger.test.tsx +38 -0
  265. package/src/components/modal/modal.tsx +29 -13
  266. package/src/components/notification/notification.tsx +4 -1
  267. package/src/components/pill/pill.tsx +29 -20
  268. package/src/components/pills-input/pills-input.tsx +3 -1
  269. package/src/components/popover/popover.tsx +3 -1
  270. package/src/components/progress/progress.tsx +4 -1
  271. package/src/components/rating/rating.tsx +27 -23
  272. package/src/components/schedule/index.ts +1 -1
  273. package/src/components/schedule/schedule-agenda-list.tsx +6 -7
  274. package/src/components/schedule/schedule-agenda-view.test.tsx +105 -28
  275. package/src/components/schedule/schedule-agenda-view.tsx +41 -28
  276. package/src/components/schedule/schedule-dates.test.ts +37 -52
  277. package/src/components/schedule/schedule-dates.ts +22 -25
  278. package/src/components/schedule/schedule-days-view.tsx +3 -1
  279. package/src/components/schedule/schedule-month-view.tsx +3 -1
  280. package/src/components/schedule/schedule-next-up.tsx +6 -2
  281. package/src/components/schedule/schedule-toolbar.test.tsx +26 -0
  282. package/src/components/schedule/schedule-toolbar.tsx +13 -1
  283. package/src/components/schedule/schedule-types.ts +5 -3
  284. package/src/components/schedule/schedule-views.ts +4 -5
  285. package/src/components/schedule/schedule-year-view.tsx +3 -1
  286. package/src/components/schedule/schedule.test.tsx +66 -22
  287. package/src/components/schedule/schedule.tsx +22 -13
  288. package/src/components/slider/slider.tsx +4 -0
  289. package/src/components/tabs/tabs-data.tsx +17 -14
  290. package/src/components/timeline/timeline.tsx +102 -95
  291. package/src/components/tooltip/tooltip.tsx +2 -1
  292. package/src/lib/as-child.test.tsx +70 -0
  293. package/src/lib/as-child.ts +119 -0
  294. package/dist/chunk-2762HZYX.js.map +0 -1
  295. package/dist/chunk-2H46IXW4.js.map +0 -1
  296. package/dist/chunk-6SWK4XG5.js.map +0 -1
  297. package/dist/chunk-EVVMHTCL.js.map +0 -1
  298. package/dist/chunk-HWNPXAEN.js +0 -31
  299. package/dist/chunk-HWNPXAEN.js.map +0 -1
  300. package/dist/chunk-IFWCCAQV.js.map +0 -1
  301. package/dist/chunk-IXKELBJA.js.map +0 -1
  302. package/dist/chunk-J3PELDH3.js.map +0 -1
  303. package/dist/chunk-NGAQITWP.js.map +0 -1
  304. package/dist/chunk-POKDSVQT.js.map +0 -1
  305. package/dist/chunk-QMW7D5GU.js.map +0 -1
  306. package/dist/chunk-TNNH3FVQ.js.map +0 -1
  307. package/dist/chunk-U5GW5EBR.js.map +0 -1
  308. package/dist/chunk-UNSAA7YG.js.map +0 -1
  309. package/dist/chunk-VLUKI3HL.js.map +0 -1
  310. package/dist/chunk-VZ2TPU4B.js.map +0 -1
  311. package/dist/chunk-YIQI2CF3.js.map +0 -1
@@ -4,6 +4,7 @@ import { ark, type HTMLArkProps } from "@ark-ui/react"
4
4
  import { useFieldContext } from "@ark-ui/react/field"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
  import type { ReactNode, Ref } from "react"
7
+ import type { NoAsChild } from "../../lib/as-child"
7
8
  import { cn } from "../../lib/cn"
8
9
  import { props } from "../../lib/props"
9
10
  import type { WithTestId } from "../../lib/test-id"
@@ -196,7 +197,7 @@ type ShellOwnProps = VariantProps<typeof inputShell> & {
196
197
  endSlot?: ReactNode
197
198
  }
198
199
 
199
- export type InputBaseProps = Omit<HTMLArkProps<"div">, "color"> &
200
+ export type InputBaseProps = NoAsChild<Omit<HTMLArkProps<"div">, "color">> &
200
201
  ShellOwnProps &
201
202
  WithTestId & {
202
203
  classNames?: ShellClassNames
@@ -215,6 +216,7 @@ export const InputBase = ({
215
216
  className,
216
217
  classNames,
217
218
  testId,
219
+ asChild: _asChild,
218
220
  ...rest
219
221
  }: InputBaseProps) => (
220
222
  <ark.div
@@ -98,8 +98,15 @@ export type MenuItemsData = ReadonlyArray<MenuEntry>
98
98
  * dividers and value-less actions contribute `never`. Checked structurally by
99
99
  * key (submenu / group carry `items`, so they must be matched before the action
100
100
  * branch, which any labelled object would otherwise satisfy).
101
+ *
102
+ * The un-narrowed `MenuItemsData` itself resolves to `string` up front:
103
+ * `MenuSubItem.items` is `MenuItemsData` again, so recursing into the wide
104
+ * type never bottoms out. tsc gave up and typed the value `any`, and any
105
+ * type-level probe of `MenuProps` hit "excessively deep".
101
106
  */
102
- export type MenuValue<Data extends MenuItemsData> = ExtractValue<Data[number]>
107
+ export type MenuValue<Data extends MenuItemsData> = MenuItemsData extends Data
108
+ ? string
109
+ : ExtractValue<Data[number]>
103
110
 
104
111
  type ExtractValue<E> = E extends string
105
112
  ? E
@@ -346,6 +346,58 @@ describe("Menu (interaction)", () => {
346
346
  })
347
347
  })
348
348
 
349
+ /**
350
+ * #281 — an item that navigates renders as the consumer's own link (a plain
351
+ * `<a>` or a router `Link`) through `asChild`, so middle-click, "open in new
352
+ * tab" and the link role all work. The row's sections fold into the link.
353
+ */
354
+ describe("Menu (link items)", () => {
355
+ it("renders the asChild link as the menuitem, sections and row styling included", () => {
356
+ render(
357
+ <Menu.Root defaultOpen withinPortal={false}>
358
+ <Menu.Trigger>Open</Menu.Trigger>
359
+ <Menu.Content>
360
+ <Menu.Item
361
+ asChild
362
+ color="red"
363
+ startSection={<svg data-testid="start" aria-hidden="true" />}
364
+ endSection={<kbd>⌘O</kbd>}
365
+ >
366
+ <a href="/entities/libft">Open the entity page</a>
367
+ </Menu.Item>
368
+ </Menu.Content>
369
+ </Menu.Root>,
370
+ )
371
+ const link = screen.getByRole("menuitem", { name: /Open the entity page/ })
372
+ expect(link.tagName).toBe("A")
373
+ expect(link.getAttribute("href")).toBe("/entities/libft")
374
+ expect(link.getAttribute("data-color")).toBe("red")
375
+ expect(link.className).toContain("rounded-xs")
376
+ expect(link.contains(screen.getByTestId("start"))).toBe(true)
377
+ expect(link.textContent).toContain("⌘O")
378
+ })
379
+
380
+ // zag's own keyboard "click" doesn't bubble, so a React onClick (where a
381
+ // router Link does its client-side navigation) never ran.
382
+ it("reaches the link's React onClick when selected from the keyboard", async () => {
383
+ const onLinkClick = vi.fn((event: { preventDefault: () => void }) => event.preventDefault())
384
+ render(
385
+ <Menu.Root defaultOpen defaultHighlightedValue="open" withinPortal={false}>
386
+ <Menu.Trigger>Open</Menu.Trigger>
387
+ <Menu.Content>
388
+ <Menu.Item asChild value="open">
389
+ <a href="/entities/libft" onClick={onLinkClick}>
390
+ Open the entity page
391
+ </a>
392
+ </Menu.Item>
393
+ </Menu.Content>
394
+ </Menu.Root>,
395
+ )
396
+ fireEvent.keyDown(screen.getByRole("menu"), { key: "Enter" })
397
+ await waitFor(() => expect(onLinkClick).toHaveBeenCalledTimes(1))
398
+ })
399
+ })
400
+
349
401
  /**
350
402
  * #227 — Zag's trigger cancels `pointerdown`, which stops the browser from
351
403
  * focusing the button on a mouse press. Chromium then treats Zag's later
@@ -16,6 +16,7 @@ import {
16
16
  useContext,
17
17
  useId,
18
18
  } from "react"
19
+ import { composeChildren } from "../../lib/as-child"
19
20
  import { cn } from "../../lib/cn"
20
21
  import type { Color } from "../../lib/colors"
21
22
  import { useOverlayContainer } from "../../lib/overlay-container"
@@ -131,6 +132,19 @@ export type MenuRootProps = Omit<ArkMenu.RootProps, "positioning" | "onOpenChang
131
132
  onClose?: () => void
132
133
  }
133
134
 
135
+ /**
136
+ * Selects a link item (`<Menu.Item asChild><Link/></Menu.Item>`) from the
137
+ * keyboard. zag's default `navigate` dispatches `new MouseEvent("click")`,
138
+ * which doesn't bubble, so React's delegated `onClick` never sees it and a
139
+ * router `Link` falls back to a full page load. `node.click()` dispatches a
140
+ * bubbling click instead, which reaches the router. Deferred like zag's own,
141
+ * so the menu settles before the navigation starts. A `navigate` prop still
142
+ * overrides it.
143
+ */
144
+ const clickLink: NonNullable<ArkMenu.RootProps["navigate"]> = ({ node }) => {
145
+ queueMicrotask(() => node.click())
146
+ }
147
+
134
148
  const Root = ({
135
149
  position = "bottom",
136
150
  offset,
@@ -146,6 +160,7 @@ const Root = ({
146
160
  <MenuContext.Provider value={{ withinPortal, container }}>
147
161
  <ArkMenu.Root
148
162
  positioning={{ placement: resolveLogicalPlacement(position, dir), gutter: offset }}
163
+ navigate={clickLink}
149
164
  onOpenChange={({ open }) => {
150
165
  onOpenChange?.(open)
151
166
  if (!open) onClose?.()
@@ -225,11 +240,13 @@ const Item = ({
225
240
  className,
226
241
  children,
227
242
  testId,
243
+ asChild,
228
244
  ...rest
229
245
  }: MenuItemProps) => {
230
246
  const autoId = useId()
231
247
  return (
232
248
  <ArkMenu.Item
249
+ asChild={asChild}
233
250
  value={value ?? autoId}
234
251
  onSelect={onClick}
235
252
  data-color={color}
@@ -237,9 +254,13 @@ const Item = ({
237
254
  {...props({ "data-testid": testId })}
238
255
  {...rest}
239
256
  >
240
- {startSection != null && <StartSection>{startSection}</StartSection>}
241
- {children}
242
- {endSection != null && <EndSection>{endSection}</EndSection>}
257
+ {composeChildren(asChild, children, (own) => (
258
+ <>
259
+ {startSection != null && <StartSection>{startSection}</StartSection>}
260
+ {own}
261
+ {endSection != null && <EndSection>{endSection}</EndSection>}
262
+ </>
263
+ ))}
243
264
  </ArkMenu.Item>
244
265
  )
245
266
  }
@@ -282,15 +303,21 @@ const ItemGroupLabel = ({
282
303
  prefix,
283
304
  children,
284
305
  testId,
306
+ asChild,
285
307
  ...rest
286
308
  }: MenuItemGroupLabelProps) => (
287
309
  <ArkMenu.ItemGroupLabel
310
+ asChild={asChild}
288
311
  className={cn(popoverGroupLabel, className)}
289
312
  {...props({ "data-testid": testId })}
290
313
  {...rest}
291
314
  >
292
- <HeadingPrefix prefix={prefix} />
293
- {children}
315
+ {composeChildren(asChild, children, (own) => (
316
+ <>
317
+ <HeadingPrefix prefix={prefix} />
318
+ {own}
319
+ </>
320
+ ))}
294
321
  </ArkMenu.ItemGroupLabel>
295
322
  )
296
323
 
@@ -314,19 +341,25 @@ const CheckboxItem = ({
314
341
  className,
315
342
  children,
316
343
  testId,
344
+ asChild,
317
345
  ...rest
318
346
  }: MenuCheckboxItemProps) => (
319
347
  <ArkMenu.CheckboxItem
348
+ asChild={asChild}
320
349
  data-color={color}
321
350
  className={cn(menuItem({ colored: color != null }), className)}
322
351
  {...props({ "data-testid": testId })}
323
352
  {...rest}
324
353
  >
325
- {startSection != null && <StartSection>{startSection}</StartSection>}
326
- {children}
327
- <ArkMenu.ItemIndicator className={popoverIndicator}>
328
- <CheckIcon />
329
- </ArkMenu.ItemIndicator>
354
+ {composeChildren(asChild, children, (own) => (
355
+ <>
356
+ {startSection != null && <StartSection>{startSection}</StartSection>}
357
+ {own}
358
+ <ArkMenu.ItemIndicator className={popoverIndicator}>
359
+ <CheckIcon />
360
+ </ArkMenu.ItemIndicator>
361
+ </>
362
+ ))}
330
363
  </ArkMenu.CheckboxItem>
331
364
  )
332
365
 
@@ -357,34 +390,40 @@ const RadioItem = ({
357
390
  className,
358
391
  children,
359
392
  testId,
393
+ asChild,
360
394
  ...rest
361
395
  }: MenuRadioItemProps) => (
362
396
  <ArkMenu.RadioItem
397
+ asChild={asChild}
363
398
  data-color={color}
364
399
  className={cn(menuItem({ colored: color != null }), className)}
365
400
  {...props({ "data-testid": testId })}
366
401
  {...rest}
367
402
  >
368
- {startSection != null && <StartSection>{startSection}</StartSection>}
369
- {children}
370
- <ArkMenu.ItemIndicator className={popoverIndicator}>
371
- <svg
372
- xmlns="http://www.w3.org/2000/svg"
373
- width="24"
374
- height="24"
375
- viewBox="0 0 24 24"
376
- fill="currentColor"
377
- stroke="currentColor"
378
- strokeWidth="2"
379
- strokeLinecap="round"
380
- strokeLinejoin="round"
381
- className="lucide lucide-dot-big"
382
- aria-hidden="true"
383
- >
384
- <title>Dot big</title>
385
- <circle cx="12.1" cy="12.1" r="4"></circle>
386
- </svg>
387
- </ArkMenu.ItemIndicator>
403
+ {composeChildren(asChild, children, (own) => (
404
+ <>
405
+ {startSection != null && <StartSection>{startSection}</StartSection>}
406
+ {own}
407
+ <ArkMenu.ItemIndicator className={popoverIndicator}>
408
+ <svg
409
+ xmlns="http://www.w3.org/2000/svg"
410
+ width="24"
411
+ height="24"
412
+ viewBox="0 0 24 24"
413
+ fill="currentColor"
414
+ stroke="currentColor"
415
+ strokeWidth="2"
416
+ strokeLinecap="round"
417
+ strokeLinejoin="round"
418
+ className="lucide lucide-dot-big"
419
+ aria-hidden="true"
420
+ >
421
+ <title>Dot big</title>
422
+ <circle cx="12.1" cy="12.1" r="4"></circle>
423
+ </svg>
424
+ </ArkMenu.ItemIndicator>
425
+ </>
426
+ ))}
388
427
  </ArkMenu.RadioItem>
389
428
  )
390
429
 
@@ -414,6 +453,7 @@ const SUBMENU_ALIGN_OFFSET = -5
414
453
  const Sub = ({ offset = 10, children, ...rest }: MenuSubProps) => (
415
454
  <ArkMenu.Root
416
455
  positioning={{ offset: { mainAxis: offset, crossAxis: SUBMENU_ALIGN_OFFSET } }}
456
+ navigate={clickLink}
417
457
  {...rest}
418
458
  >
419
459
  {children}
@@ -432,19 +472,27 @@ const SubTrigger = ({
432
472
  className,
433
473
  children,
434
474
  testId,
475
+ asChild,
435
476
  ...rest
436
477
  }: MenuSubTriggerProps) => (
437
478
  <ArkMenu.TriggerItem
479
+ asChild={asChild}
438
480
  data-color={color}
439
481
  className={cn(menuItem({ colored: color != null }), className)}
440
482
  {...props({ "data-testid": testId })}
441
483
  {...rest}
442
484
  >
443
- {startSection != null && <StartSection>{startSection}</StartSection>}
444
- {children}
445
- <span className={cn(popoverChevron, "ms-auto -me-1 -rotate-90 rtl:rotate-90 [&_svg]:size-4")}>
446
- <ChevronIcon />
447
- </span>
485
+ {composeChildren(asChild, children, (own) => (
486
+ <>
487
+ {startSection != null && <StartSection>{startSection}</StartSection>}
488
+ {own}
489
+ <span
490
+ className={cn(popoverChevron, "ms-auto -me-1 -rotate-90 rtl:rotate-90 [&_svg]:size-4")}
491
+ >
492
+ <ChevronIcon />
493
+ </span>
494
+ </>
495
+ ))}
448
496
  </ArkMenu.TriggerItem>
449
497
  )
450
498
 
@@ -0,0 +1,38 @@
1
+ import { fireEvent, render, screen, waitFor } from "@testing-library/react"
2
+ import { describe, expect, it, vi } from "vitest"
3
+ import { Drawer } from "../drawer/drawer"
4
+ import { Modal } from "./modal"
5
+
6
+ /** Modal and Drawer share the close-trigger shape: a kit icon button by
7
+ * default, the consumer's own element under `asChild`. */
8
+ describe.each([
9
+ ["Modal", Modal.Root, Modal.CloseTrigger],
10
+ ["Drawer", Drawer.Root, Drawer.CloseTrigger],
11
+ ] as const)("%s.CloseTrigger", (_, Root, CloseTrigger) => {
12
+ it("renders the kit's labelled icon button by default", () => {
13
+ render(
14
+ <Root open>
15
+ <CloseTrigger />
16
+ </Root>,
17
+ )
18
+ expect(screen.getByRole("button", { name: "Close" }).querySelector("svg")).toBeTruthy()
19
+ })
20
+
21
+ // The consumer's button used to end up nested inside the kit's icon button.
22
+ it("replaces the icon button with the consumer's element under asChild", async () => {
23
+ const onOpenChange = vi.fn()
24
+ render(
25
+ <Root open onOpenChange={onOpenChange}>
26
+ <CloseTrigger asChild>
27
+ <button type="button">Cancel</button>
28
+ </CloseTrigger>
29
+ </Root>,
30
+ )
31
+ const buttons = screen.getAllByRole("button")
32
+ expect(buttons).toHaveLength(1)
33
+ const cancel = screen.getByRole("button", { name: "Cancel" })
34
+ expect(cancel.hasAttribute("aria-label")).toBe(false)
35
+ fireEvent.click(cancel)
36
+ await waitFor(() => expect(onOpenChange).toHaveBeenCalledWith({ open: false }))
37
+ })
38
+ })
@@ -5,6 +5,7 @@ import { Portal } from "@ark-ui/react/portal"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
  import { XIcon } from "lucide-react"
7
7
  import { type ComponentPropsWithoutRef, type ReactNode, useRef } from "react"
8
+ import type { NoAsChild } from "../../lib/as-child"
8
9
  import { cn } from "../../lib/cn"
9
10
  import { OverlayContainerProvider } from "../../lib/overlay-container"
10
11
  import { OverlayLayerProvider, useLayerGuard } from "../../lib/overlay-layer"
@@ -121,7 +122,7 @@ const ModalBackdrop = ({ className, testId, ...rest }: ModalBackdropProps) => (
121
122
  )
122
123
 
123
124
  export type ModalPosition = VariantProps<typeof modalPositioner>["position"]
124
- export type ModalPositionerProps = ComponentPropsWithoutRef<typeof Ark.Positioner> &
125
+ export type ModalPositionerProps = NoAsChild<ComponentPropsWithoutRef<typeof Ark.Positioner>> &
125
126
  WithTestId & {
126
127
  position?: ModalPosition
127
128
  }
@@ -131,6 +132,7 @@ const ModalPositioner = ({
131
132
  position,
132
133
  testId,
133
134
  children,
135
+ asChild: _asChild,
134
136
  ...rest
135
137
  }: ModalPositionerProps) => {
136
138
  // A ref, not state: overlays read it when they portal, so nothing has to
@@ -188,23 +190,37 @@ export type ModalCloseTriggerProps = ComponentPropsWithoutRef<typeof Ark.CloseTr
188
190
  const ModalCloseTrigger = ({
189
191
  children,
190
192
  className,
191
- "aria-label": ariaLabel = "Close",
193
+ "aria-label": ariaLabel,
192
194
  testId,
195
+ asChild,
193
196
  ...rest
194
- }: ModalCloseTriggerProps) => (
195
- <Ark.CloseTrigger asChild {...rest}>
196
- <ActionIcon
197
- variant="subtle"
198
- color="neutral"
199
- size="xs"
197
+ }: ModalCloseTriggerProps) =>
198
+ asChild ? (
199
+ // The consumer's element (a "Cancel" button, say) replaces the kit's icon
200
+ // button outright, rather than nesting inside it.
201
+ <Ark.CloseTrigger
202
+ asChild
200
203
  aria-label={ariaLabel}
201
204
  className={className}
202
- testId={testId}
205
+ {...props({ "data-testid": testId })}
206
+ {...rest}
203
207
  >
204
- {children ?? <XIcon />}
205
- </ActionIcon>
206
- </Ark.CloseTrigger>
207
- )
208
+ {children}
209
+ </Ark.CloseTrigger>
210
+ ) : (
211
+ <Ark.CloseTrigger asChild {...rest}>
212
+ <ActionIcon
213
+ variant="subtle"
214
+ color="neutral"
215
+ size="xs"
216
+ aria-label={ariaLabel ?? "Close"}
217
+ className={className}
218
+ testId={testId}
219
+ >
220
+ {children ?? <XIcon />}
221
+ </ActionIcon>
222
+ </Ark.CloseTrigger>
223
+ )
208
224
 
209
225
  export type ModalHeaderProps = ComponentPropsWithoutRef<"div"> & WithTestId
210
226
 
@@ -11,6 +11,7 @@ import {
11
11
  } from "lucide-react"
12
12
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref, useRef } from "react"
13
13
  import { match } from "ts-pattern"
14
+ import type { ForbidAsChild } from "../../lib/as-child"
14
15
  import { cn } from "../../lib/cn"
15
16
  import type { Color } from "../../lib/colors"
16
17
  import { focusStyles } from "../../lib/focus-styles"
@@ -236,7 +237,8 @@ export const CollapseTrigger = ({
236
237
  * the Notifier-managed plumbing (`id` / `status` / `duration`) is optional, so a
237
238
  * standalone card is just `<Notification type="success" title="Saved" />`.
238
239
  */
239
- export type NotificationProps = Omit<NotificationRootProps, "title" | "color"> &
240
+ export type NotificationProps = Omit<NotificationRootProps, "title" | "color" | "asChild"> &
241
+ ForbidAsChild &
240
242
  Omit<ToastFields, "id" | "status" | "duration"> &
241
243
  Partial<Pick<ToastFields, "id" | "status" | "duration">> &
242
244
  ToastHue & {
@@ -284,6 +286,7 @@ function NotificationComponent({
284
286
  // Notifier-managed plumbing — not rendered onto the card.
285
287
  status: _status,
286
288
  duration: _duration,
289
+ asChild: _asChild,
287
290
  ...rest
288
291
  }: NotificationProps) {
289
292
  const preset = type ? TOAST_STATUS[type] : undefined
@@ -3,6 +3,7 @@
3
3
  import { ark, type HTMLArkProps } from "@ark-ui/react"
4
4
  import { cva, type VariantProps } from "class-variance-authority"
5
5
  import { createContext, useContext } from "react"
6
+ import { composeChildren } from "../../lib/as-child"
6
7
  import { cn } from "../../lib/cn"
7
8
  import type { Color } from "../../lib/colors"
8
9
  import { focusStyles } from "../../lib/focus-styles"
@@ -21,7 +22,9 @@ import type { WithTestId } from "../../lib/test-id"
21
22
  * - `size` (and `disabled`) can be set per-pill or inherited once from a
22
23
  * wrapping `PillGroup` through context — explicit props win.
23
24
  *
24
- * `asChild` is inherited from the `ark.span` factory for polymorphism.
25
+ * `asChild` (from the `ark.span` factory) renders the pill as the consumer's
26
+ * element, a link for a clickable tag, with the label (and remove button)
27
+ * folded inside it.
25
28
  */
26
29
 
27
30
  type PillGroupContextValue = { size?: PillSize; disabled?: boolean }
@@ -143,6 +146,7 @@ export function Pill<const WithRemoveButton extends boolean = false>({
143
146
  className,
144
147
  classNames,
145
148
  testId,
149
+ asChild,
146
150
  ...rest
147
151
  }: PillProps<WithRemoveButton>) {
148
152
  const group = useContext(PillGroupContext)
@@ -151,6 +155,7 @@ export function Pill<const WithRemoveButton extends boolean = false>({
151
155
 
152
156
  return (
153
157
  <ark.span
158
+ asChild={asChild}
154
159
  data-color={color}
155
160
  data-disabled={disabled || undefined}
156
161
  className={cn(
@@ -161,25 +166,29 @@ export function Pill<const WithRemoveButton extends boolean = false>({
161
166
  {...props({ "data-testid": testId })}
162
167
  {...rest}
163
168
  >
164
- <span className={cn("truncate text-trim", classNames?.label)}>{children}</span>
165
- {withRemoveButton && (
166
- <button
167
- type="button"
168
- aria-label={removeLabel}
169
- disabled={disabled}
170
- // Keep focus on the host input (e.g. inside a PillsInput) and stop
171
- // the click from bubbling to an enclosing option / control.
172
- onMouseDown={(e) => e.preventDefault()}
173
- onClick={(e) => {
174
- e.stopPropagation()
175
- onRemove?.()
176
- }}
177
- className={cn(pillRemove({ size }), classNames?.remove)}
178
- {...props({ "data-testid": testId && `${testId}-remove` })}
179
- >
180
- <RemoveIcon />
181
- </button>
182
- )}
169
+ {composeChildren(asChild, children, (own) => (
170
+ <>
171
+ <span className={cn("truncate text-trim", classNames?.label)}>{own}</span>
172
+ {withRemoveButton && (
173
+ <button
174
+ type="button"
175
+ aria-label={removeLabel}
176
+ disabled={disabled}
177
+ // Keep focus on the host input (e.g. inside a PillsInput) and stop
178
+ // the click from bubbling to an enclosing option / control.
179
+ onMouseDown={(e) => e.preventDefault()}
180
+ onClick={(e) => {
181
+ e.stopPropagation()
182
+ onRemove?.()
183
+ }}
184
+ className={cn(pillRemove({ size }), classNames?.remove)}
185
+ {...props({ "data-testid": testId && `${testId}-remove` })}
186
+ >
187
+ <RemoveIcon />
188
+ </button>
189
+ )}
190
+ </>
191
+ ))}
183
192
  </ark.span>
184
193
  )
185
194
  }
@@ -15,6 +15,7 @@ import {
15
15
  useRef,
16
16
  useState,
17
17
  } from "react"
18
+ import type { NoAsChild } from "../../lib/as-child"
18
19
  import { cn } from "../../lib/cn"
19
20
  import type { Color } from "../../lib/colors"
20
21
  import { props } from "../../lib/props"
@@ -283,7 +284,7 @@ type PillsInputClassNames = {
283
284
  endSlot?: string
284
285
  }
285
286
 
286
- export type PillsInputProps = Omit<HTMLArkProps<"div">, "color"> &
287
+ export type PillsInputProps = NoAsChild<Omit<HTMLArkProps<"div">, "color">> &
287
288
  WithTestId & {
288
289
  size?: InputSize
289
290
  variant?: InputVariant
@@ -323,6 +324,7 @@ const PillsInputBase = ({
323
324
  classNames,
324
325
  children,
325
326
  testId,
327
+ asChild: _asChild,
326
328
  ...rest
327
329
  }: PillsInputProps) => {
328
330
  // Convention: pills first, the field last. Only the pills feed the line cap;
@@ -13,6 +13,7 @@ import {
13
13
  useRef,
14
14
  useState,
15
15
  } from "react"
16
+ import type { NoAsChild } from "../../lib/as-child"
16
17
  import type { UnavailableProps } from "../../lib/available-if"
17
18
  import { cn } from "../../lib/cn"
18
19
  import { useOverlayContainer } from "../../lib/overlay-container"
@@ -534,7 +535,7 @@ const Trigger = ({
534
535
  )
535
536
  }
536
537
 
537
- export type PopoverContentProps = ArkPopover.ContentProps & WithTestId
538
+ export type PopoverContentProps = NoAsChild<ArkPopover.ContentProps> & WithTestId
538
539
 
539
540
  const Content = ({
540
541
  className,
@@ -544,6 +545,7 @@ const Content = ({
544
545
  onPointerLeave,
545
546
  onPointerDown,
546
547
  onFocus,
548
+ asChild: _asChild,
547
549
  ...rest
548
550
  }: PopoverContentProps) => {
549
551
  const { width, withinPortal, container, layers, hover } = useContext(PopoverContext)
@@ -1,6 +1,7 @@
1
1
  import { Progress as Ark } from "@ark-ui/react/progress"
2
2
  import { cva, type VariantProps } from "class-variance-authority"
3
3
  import type { ComponentPropsWithoutRef, CSSProperties, Ref } from "react"
4
+ import type { ForbidAsChild } from "../../lib/as-child"
4
5
  import { cn } from "../../lib/cn"
5
6
  import type { Color } from "../../lib/colors"
6
7
  import {
@@ -89,8 +90,9 @@ type ArkRootProps = ComponentPropsWithoutRef<typeof Ark.Root>
89
90
 
90
91
  export type ProgressProps = Omit<
91
92
  ArkRootProps,
92
- "value" | "defaultValue" | "onValueChange" | "ref" | "className"
93
+ "value" | "defaultValue" | "onValueChange" | "ref" | "className" | "asChild"
93
94
  > &
95
+ ForbidAsChild &
94
96
  VariantProps<typeof progressRange> &
95
97
  WithTestId & {
96
98
  /**
@@ -134,6 +136,7 @@ export const Progress = ({
134
136
  classNames,
135
137
  style,
136
138
  testId,
139
+ asChild: _asChild,
137
140
  ...rest
138
141
  }: ProgressProps) => {
139
142
  const isGradient = variant === "gradient"