@justanarthur/modo-ui 0.5.0 → 0.6.0-canary.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 (461) hide show
  1. package/DESIGN.md +608 -0
  2. package/README.md +61 -39
  3. package/blocks/sidebar-app/examples.mdx +33 -0
  4. package/blocks/sidebar-app/index.tsx +218 -0
  5. package/blocks/sidebar-app/inset-topbar.tsx +25 -0
  6. package/blocks/sidebar-app/menu-grid.ts +26 -0
  7. package/blocks/sidebar-app/nav-data.ts +36 -0
  8. package/blocks/sidebar-app/search-field.tsx +48 -0
  9. package/blocks/sidebar-app/user-footer.tsx +67 -0
  10. package/blocks/sidebar-app/workspace-header.tsx +129 -0
  11. package/components/AI/input-message/examples.mdx +124 -0
  12. package/components/AI/input-message/file-thumbnail.tsx +173 -0
  13. package/components/AI/input-message/index.tsx +1383 -0
  14. package/components/AI/thinking-indicator/examples.mdx +27 -0
  15. package/components/AI/thinking-indicator/index.tsx +210 -0
  16. package/components/accordion/examples.mdx +148 -0
  17. package/components/accordion/index.tsx +1034 -0
  18. package/components/avatar/examples.mdx +95 -0
  19. package/components/avatar/index.tsx +129 -0
  20. package/components/badge/change-demo.tsx +29 -0
  21. package/components/badge/examples.mdx +120 -0
  22. package/components/badge/index.tsx +225 -0
  23. package/components/badge/variants.ts +73 -0
  24. package/components/button/examples.mdx +164 -0
  25. package/components/button/index.tsx +416 -0
  26. package/components/button/loading-demo.tsx +25 -0
  27. package/components/button/variants.ts +166 -0
  28. package/components/card/examples.mdx +212 -0
  29. package/components/card/index.tsx +1037 -0
  30. package/components/copy/examples.mdx +87 -0
  31. package/components/copy/index.tsx +482 -0
  32. package/components/inputs/checkbox/examples.mdx +83 -0
  33. package/components/inputs/checkbox/index.tsx +611 -0
  34. package/components/inputs/checkbox/select-all-demo.tsx +48 -0
  35. package/components/inputs/color-picker/examples.mdx +72 -0
  36. package/components/inputs/color-picker/index.tsx +1955 -0
  37. package/components/inputs/color-picker/variants.ts +401 -0
  38. package/components/inputs/combobox/examples.mdx +273 -0
  39. package/components/inputs/combobox/index.tsx +1436 -0
  40. package/components/inputs/combobox/remote-demo.tsx +101 -0
  41. package/components/inputs/date-time/calendar/examples.mdx +34 -0
  42. package/components/inputs/date-time/calendar/index.tsx +351 -0
  43. package/components/inputs/date-time/calendar/use-month-window.ts +163 -0
  44. package/components/inputs/date-time/date-picker/examples.mdx +166 -0
  45. package/components/inputs/date-time/date-picker/index.tsx +385 -0
  46. package/components/inputs/date-time/date-picker/masked-date-input.tsx +336 -0
  47. package/components/inputs/date-time/date-range-picker/examples.mdx +29 -0
  48. package/components/inputs/date-time/date-range-picker/index.tsx +217 -0
  49. package/components/inputs/date-time/duration-picker/examples.mdx +16 -0
  50. package/components/inputs/date-time/duration-picker/index.tsx +189 -0
  51. package/components/inputs/date-time/month-picker/examples.mdx +16 -0
  52. package/components/inputs/date-time/month-picker/index.tsx +190 -0
  53. package/components/inputs/date-time/picker-shell.tsx +395 -0
  54. package/components/inputs/date-time/time-columns.tsx +91 -0
  55. package/components/inputs/date-time/time-picker/examples.mdx +26 -0
  56. package/components/inputs/date-time/time-picker/index.tsx +166 -0
  57. package/components/inputs/field/examples.mdx +113 -0
  58. package/components/inputs/field/index.tsx +267 -0
  59. package/components/inputs/file-dropzone/examples.mdx +73 -0
  60. package/components/inputs/file-dropzone/file-row.tsx +201 -0
  61. package/components/inputs/file-dropzone/index.tsx +296 -0
  62. package/components/inputs/file-dropzone/upload-demo.tsx +67 -0
  63. package/components/inputs/file-dropzone/variants.ts +94 -0
  64. package/components/inputs/input/examples.mdx +135 -0
  65. package/components/inputs/input/index.tsx +494 -0
  66. package/components/inputs/input/password-demo.tsx +30 -0
  67. package/components/inputs/label/examples.mdx +67 -0
  68. package/components/inputs/label/index.tsx +85 -0
  69. package/components/inputs/number-input/examples.mdx +56 -0
  70. package/components/inputs/number-input/index.tsx +214 -0
  71. package/components/inputs/radio/examples.mdx +77 -0
  72. package/components/inputs/radio/index.tsx +636 -0
  73. package/components/inputs/search/examples.mdx +74 -0
  74. package/components/inputs/search/index.tsx +333 -0
  75. package/components/inputs/select/examples.mdx +218 -0
  76. package/components/inputs/select/index.tsx +862 -0
  77. package/components/inputs/select/variants.ts +32 -0
  78. package/components/inputs/slider/examples.mdx +127 -0
  79. package/components/inputs/slider/index.tsx +1725 -0
  80. package/components/inputs/switch/examples.mdx +94 -0
  81. package/components/inputs/switch/index.tsx +504 -0
  82. package/components/inputs/textarea/examples.mdx +88 -0
  83. package/components/inputs/textarea/index.tsx +161 -0
  84. package/components/navigation/navigation-menu/examples.mdx +109 -0
  85. package/components/navigation/navigation-menu/index.tsx +613 -0
  86. package/components/navigation/pagination/examples.mdx +64 -0
  87. package/components/navigation/pagination/index.tsx +395 -0
  88. package/components/navigation/sidebar/examples.mdx +319 -0
  89. package/components/navigation/sidebar/index.tsx +453 -0
  90. package/components/navigation/sidebar/sidebar-core.tsx +1408 -0
  91. package/components/navigation/sidebar/sidebar-menu.tsx +1495 -0
  92. package/components/navigation/sidebar/sidebar.css +74 -0
  93. package/components/navigation/sidebar/variants.ts +55 -0
  94. package/components/navigation/tabs/examples.mdx +89 -0
  95. package/components/navigation/tabs/index.tsx +494 -0
  96. package/components/navigation/tabs-subtle/examples.mdx +49 -0
  97. package/components/navigation/tabs-subtle/index.tsx +512 -0
  98. package/components/overlays/alert-dialog/examples.mdx +123 -0
  99. package/components/overlays/alert-dialog/index.tsx +258 -0
  100. package/components/overlays/alert-dialog/pending-demo.tsx +36 -0
  101. package/components/overlays/command/examples.mdx +113 -0
  102. package/components/overlays/command/index.tsx +416 -0
  103. package/components/overlays/context-menu/examples.mdx +56 -0
  104. package/components/overlays/context-menu/index.tsx +279 -0
  105. package/components/overlays/dialog/examples.mdx +144 -0
  106. package/components/overlays/dialog/index.tsx +366 -0
  107. package/components/overlays/dropdown/dropdown-search.tsx +395 -0
  108. package/components/overlays/dropdown/examples.mdx +294 -0
  109. package/components/overlays/dropdown/index.tsx +1168 -0
  110. package/components/overlays/dropdown/menu-item.tsx +464 -0
  111. package/components/overlays/dropdown/menu-parts.tsx +660 -0
  112. package/components/overlays/popover/anchored-demo.tsx +59 -0
  113. package/components/overlays/popover/examples.mdx +180 -0
  114. package/components/overlays/popover/index.tsx +315 -0
  115. package/components/overlays/preview-card/examples.mdx +61 -0
  116. package/components/overlays/preview-card/index.tsx +204 -0
  117. package/components/overlays/sheet/examples.mdx +89 -0
  118. package/components/overlays/sheet/index.tsx +247 -0
  119. package/components/overlays/toast/examples.mdx +68 -0
  120. package/components/overlays/toast/global-demo.tsx +72 -0
  121. package/components/overlays/toast/index.tsx +474 -0
  122. package/components/overlays/toast/manager.ts +193 -0
  123. package/components/overlays/tooltip/examples.mdx +106 -0
  124. package/components/overlays/tooltip/index.tsx +519 -0
  125. package/components/progress/examples.mdx +59 -0
  126. package/components/progress/index.tsx +174 -0
  127. package/components/progress/progress.css +49 -0
  128. package/components/progress/step-demo.tsx +27 -0
  129. package/components/table/examples.mdx +184 -0
  130. package/components/table/index.tsx +510 -0
  131. package/components/table/sort-demo.tsx +61 -0
  132. package/dist/base.css +100 -0
  133. package/dist/blocks/sidebar-app/index.js +39 -26
  134. package/dist/components/AI/input-message/index.js +22 -16
  135. package/dist/components/AI/thinking-indicator/index.js +9 -6
  136. package/dist/components/accordion/index.js +16 -13
  137. package/dist/components/avatar/index.d.ts +46 -0
  138. package/dist/components/avatar/index.js +18 -0
  139. package/dist/components/badge/index.d.ts +18 -11
  140. package/dist/components/badge/index.js +11 -7
  141. package/dist/components/badge/variants.d.ts +33 -0
  142. package/dist/components/badge/variants.js +10 -0
  143. package/dist/components/button/index.d.ts +53 -17
  144. package/dist/components/button/index.js +10 -6
  145. package/dist/components/button/variants.d.ts +39 -0
  146. package/dist/components/button/variants.js +8 -0
  147. package/dist/components/card/index.d.ts +16 -3
  148. package/dist/components/card/index.js +16 -11
  149. package/dist/components/copy/index.js +13 -9
  150. package/dist/components/inputs/checkbox/index.d.ts +28 -9
  151. package/dist/components/inputs/checkbox/index.js +17 -13
  152. package/dist/components/inputs/color-picker/index.d.ts +13 -13
  153. package/dist/components/inputs/color-picker/index.js +25 -18
  154. package/dist/components/inputs/color-picker/variants.d.ts +61 -0
  155. package/dist/components/inputs/color-picker/variants.js +28 -0
  156. package/dist/components/inputs/combobox/index.d.ts +60 -17
  157. package/dist/components/inputs/combobox/index.js +26 -18
  158. package/dist/components/inputs/date-time/calendar/index.js +14 -11
  159. package/dist/components/inputs/date-time/date-picker/index.d.ts +53 -11
  160. package/dist/components/inputs/date-time/date-picker/index.js +33 -25
  161. package/dist/components/inputs/date-time/date-range-picker/index.d.ts +3 -3
  162. package/dist/components/inputs/date-time/date-range-picker/index.js +32 -24
  163. package/dist/components/inputs/date-time/duration-picker/index.d.ts +3 -3
  164. package/dist/components/inputs/date-time/duration-picker/index.js +32 -24
  165. package/dist/components/inputs/date-time/month-picker/index.d.ts +3 -3
  166. package/dist/components/inputs/date-time/month-picker/index.js +31 -23
  167. package/dist/components/inputs/date-time/time-picker/index.d.ts +3 -3
  168. package/dist/components/inputs/date-time/time-picker/index.js +32 -24
  169. package/dist/components/inputs/field/index.d.ts +116 -0
  170. package/dist/components/inputs/field/index.js +28 -0
  171. package/dist/components/inputs/file-dropzone/index.d.ts +165 -0
  172. package/dist/components/inputs/file-dropzone/index.js +32 -0
  173. package/dist/components/inputs/file-dropzone/variants.d.ts +35 -0
  174. package/dist/components/inputs/file-dropzone/variants.js +12 -0
  175. package/dist/components/inputs/input/index.d.ts +95 -13
  176. package/dist/components/inputs/input/index.js +17 -9
  177. package/dist/components/inputs/label/index.d.ts +32 -0
  178. package/dist/components/inputs/label/index.js +11 -0
  179. package/dist/components/inputs/number-input/index.d.ts +84 -0
  180. package/dist/components/inputs/number-input/index.js +20 -0
  181. package/dist/components/inputs/radio/index.d.ts +20 -5
  182. package/dist/components/inputs/radio/index.js +15 -12
  183. package/dist/components/inputs/search/index.js +25 -18
  184. package/dist/components/inputs/select/index.d.ts +41 -11
  185. package/dist/components/inputs/select/index.js +27 -14
  186. package/dist/components/inputs/select/variants.d.ts +5 -0
  187. package/dist/components/inputs/select/variants.js +6 -0
  188. package/dist/components/inputs/slider/index.js +7 -5
  189. package/dist/components/inputs/switch/index.d.ts +8 -2
  190. package/dist/components/inputs/switch/index.js +14 -12
  191. package/dist/components/inputs/textarea/index.d.ts +4 -0
  192. package/dist/components/inputs/textarea/index.js +8 -6
  193. package/dist/components/navigation/navigation-menu/index.d.ts +114 -0
  194. package/dist/components/navigation/navigation-menu/index.js +40 -0
  195. package/dist/components/navigation/pagination/index.d.ts +73 -0
  196. package/dist/components/navigation/pagination/index.js +39 -0
  197. package/dist/components/navigation/sidebar/index.d.ts +44 -21
  198. package/dist/components/navigation/sidebar/index.js +41 -31
  199. package/dist/components/navigation/sidebar/variants.d.ts +25 -0
  200. package/dist/components/navigation/sidebar/variants.js +28 -0
  201. package/dist/components/navigation/tabs/index.d.ts +8 -2
  202. package/dist/components/navigation/tabs/index.js +14 -10
  203. package/dist/components/navigation/tabs-subtle/index.js +12 -10
  204. package/dist/components/overlays/alert-dialog/index.d.ts +121 -15
  205. package/dist/components/overlays/alert-dialog/index.js +22 -13
  206. package/dist/components/overlays/command/index.js +24 -17
  207. package/dist/components/overlays/context-menu/index.d.ts +33 -17
  208. package/dist/components/overlays/context-menu/index.js +27 -18
  209. package/dist/components/overlays/dialog/index.js +17 -12
  210. package/dist/components/overlays/dropdown/index.d.ts +257 -31
  211. package/dist/components/overlays/dropdown/index.js +42 -17
  212. package/dist/components/overlays/popover/index.d.ts +31 -9
  213. package/dist/components/overlays/popover/index.js +12 -9
  214. package/dist/components/overlays/preview-card/index.js +11 -8
  215. package/dist/components/overlays/sheet/index.js +18 -13
  216. package/dist/components/overlays/toast/index.d.ts +123 -47
  217. package/dist/components/overlays/toast/index.js +18 -10
  218. package/dist/components/overlays/tooltip/index.d.ts +113 -21
  219. package/dist/components/overlays/tooltip/index.js +15 -6
  220. package/dist/components/progress/index.d.ts +56 -0
  221. package/dist/components/progress/index.js +15 -0
  222. package/dist/components/table/index.d.ts +63 -8
  223. package/dist/components/table/index.js +19 -9
  224. package/dist/index.d.ts +2201 -736
  225. package/dist/index.js +223 -82
  226. package/dist/lib/date-locale.d.ts +14 -0
  227. package/dist/lib/date-locale.js +16 -0
  228. package/dist/lib/field-classes.d.ts +144 -0
  229. package/dist/lib/field-classes.js +40 -0
  230. package/dist/lib/field-variants.d.ts +47 -0
  231. package/dist/lib/field-variants.js +26 -0
  232. package/dist/lib/fluid-hover-highlight.d.ts +112 -0
  233. package/dist/lib/fluid-hover-highlight.js +17 -0
  234. package/dist/lib/focus-ring.d.ts +18 -0
  235. package/dist/lib/focus-ring.js +10 -0
  236. package/dist/lib/goo-indicator.d.ts +46 -0
  237. package/dist/lib/goo-indicator.js +14 -0
  238. package/dist/lib/icon-context.d.ts +30 -0
  239. package/dist/lib/icon-context.js +12 -0
  240. package/dist/lib/inert.d.ts +9 -0
  241. package/dist/lib/inert.js +8 -0
  242. package/dist/lib/morph-layers.d.ts +93 -0
  243. package/dist/lib/morph-layers.js +13 -0
  244. package/dist/lib/morph-part.d.ts +21 -0
  245. package/dist/lib/morph-part.js +12 -0
  246. package/dist/lib/popup.d.ts +20 -0
  247. package/dist/lib/popup.js +12 -0
  248. package/dist/lib/reduced-motion.d.ts +9 -0
  249. package/dist/lib/reduced-motion.js +6 -0
  250. package/dist/lib/row-index.d.ts +10 -0
  251. package/dist/lib/row-index.js +8 -0
  252. package/dist/lib/row-order.d.ts +28 -0
  253. package/dist/lib/row-order.js +10 -0
  254. package/dist/lib/scroll-column.d.ts +27 -0
  255. package/dist/lib/scroll-column.js +18 -0
  256. package/dist/lib/shape-context.d.ts +30 -0
  257. package/dist/lib/shape-context.js +12 -0
  258. package/dist/lib/size-context.d.ts +94 -0
  259. package/dist/lib/size-context.js +20 -0
  260. package/dist/lib/size-scale.d.ts +79 -0
  261. package/dist/lib/size-scale.js +8 -0
  262. package/dist/lib/slot.d.ts +12 -0
  263. package/dist/lib/slot.js +6 -0
  264. package/dist/lib/springs.d.ts +44 -0
  265. package/dist/lib/springs.js +8 -0
  266. package/dist/lib/surface-classes.d.ts +19 -0
  267. package/dist/lib/surface-classes.js +10 -0
  268. package/dist/lib/surface-context.d.ts +9 -0
  269. package/dist/lib/surface-context.js +8 -0
  270. package/dist/lib/use-controllable-state.d.ts +2 -0
  271. package/dist/lib/use-controllable-state.js +6 -0
  272. package/dist/lib/use-fluid-hover.d.ts +138 -0
  273. package/dist/lib/use-fluid-hover.js +14 -0
  274. package/dist/lib/use-is-mobile.d.ts +2 -0
  275. package/dist/lib/use-is-mobile.js +6 -0
  276. package/dist/lib/use-keyboard-nav-gate.d.ts +20 -0
  277. package/dist/lib/use-keyboard-nav-gate.js +7 -0
  278. package/dist/lib/use-merge-split.d.ts +47 -0
  279. package/dist/lib/use-merge-split.js +15 -0
  280. package/dist/lib/use-morph.d.ts +101 -0
  281. package/dist/lib/use-morph.js +20 -0
  282. package/dist/lib/use-touch-primary.d.ts +2 -0
  283. package/dist/lib/use-touch-primary.js +6 -0
  284. package/dist/lib/utils.d.ts +3 -0
  285. package/dist/lib/utils.js +6 -0
  286. package/dist/preset.d.ts +17 -0
  287. package/dist/preset.js +22 -2
  288. package/dist/primitives/code/index.js +7 -5
  289. package/dist/primitives/craft/index.js +9 -6
  290. package/dist/primitives/fluid-hover/index.js +9 -8
  291. package/dist/primitives/morph/index.js +15 -10
  292. package/dist/primitives/motion/index.js +10 -8
  293. package/dist/primitives/scroll-area/index.js +4 -3
  294. package/dist/primitives/separator/index.d.ts +25 -0
  295. package/dist/primitives/separator/index.js +9 -0
  296. package/dist/primitives/sizes/index.js +6 -4
  297. package/dist/primitives/skeleton/index.d.ts +35 -0
  298. package/dist/primitives/skeleton/index.js +12 -0
  299. package/dist/primitives/surface/index.js +6 -4
  300. package/dist/shared/{components-3mkepka5.js → components-0jmqhx2k.js} +28 -25
  301. package/dist/shared/components-124epb7f.js +53 -0
  302. package/dist/shared/{components-gz8zf3ec.js → components-1k0wv53d.js} +15 -43
  303. package/dist/shared/components-26snnbs9.js +322 -0
  304. package/dist/shared/{components-2dxkv6zm.js → components-2c0qcfx4.js} +8 -7
  305. package/dist/shared/{components-473g814w.js → components-2mt9te6d.js} +243 -137
  306. package/dist/shared/{components-hawvy2qz.js → components-2z48g4fp.js} +9 -30
  307. package/dist/shared/components-34txk9rj.js +35 -0
  308. package/dist/shared/components-3h92d94m.js +23 -0
  309. package/dist/shared/{components-zfnmn5d4.js → components-3sp623ae.js} +36 -31
  310. package/dist/shared/{components-jwst3vtj.js → components-3wxkjgqn.js} +186 -76
  311. package/dist/shared/{components-s2bz1xpk.js → components-49bsynbw.js} +8 -5
  312. package/dist/shared/components-4bwsd46w.js +71 -0
  313. package/dist/shared/components-4n4f5m3e.js +297 -0
  314. package/dist/shared/{components-0q0sqfh4.js → components-4y816hwp.js} +27 -49
  315. package/dist/shared/components-52ngsgca.js +399 -0
  316. package/dist/shared/{components-y9y0g8er.js → components-52r5763g.js} +22 -19
  317. package/dist/shared/components-559tf7yb.js +28 -0
  318. package/dist/shared/components-5mkga9hj.js +440 -0
  319. package/dist/shared/{components-kwa6mrf9.js → components-5s0nfqvw.js} +14 -9
  320. package/dist/shared/{components-dk0gjr5a.js → components-60atskhp.js} +19 -18
  321. package/dist/shared/{components-rr7a6ja9.js → components-658b26nb.js} +21 -18
  322. package/dist/shared/{components-xxvdw7k1.js → components-65vwfjs6.js} +37 -34
  323. package/dist/shared/{components-frw34b65.js → components-6j2fh74k.js} +114 -123
  324. package/dist/shared/components-6zg1yft7.js +167 -0
  325. package/dist/shared/components-6zng858q.js +53 -0
  326. package/dist/shared/components-72w4ge68.js +64 -0
  327. package/dist/shared/{components-cv16mryv.js → components-78x40gee.js} +13 -7
  328. package/dist/shared/{components-b2wyq2cq.js → components-7d4r7hh1.js} +39 -57
  329. package/dist/shared/components-7ntvvegr.js +316 -0
  330. package/dist/shared/components-8nwsqjn8.js +34 -0
  331. package/dist/shared/{components-5xc2j8jz.js → components-8tt3xbb5.js} +19 -18
  332. package/dist/shared/{components-vc7vq5nz.js → components-9as3rf68.js} +6 -3
  333. package/dist/shared/components-9mys9jna.js +255 -0
  334. package/dist/shared/components-adkarj8n.js +35 -0
  335. package/dist/shared/{components-b3c5et5b.js → components-ae9fncz4.js} +32 -31
  336. package/dist/shared/{components-hqeq3w9q.js → components-awra5sff.js} +24 -16
  337. package/dist/shared/components-b1e239g3.js +28 -0
  338. package/dist/shared/{components-q5xj5c16.js → components-b1f2bjf1.js} +9 -8
  339. package/dist/shared/{components-qmmjx1qw.js → components-bn42vq6d.js} +71 -72
  340. package/dist/shared/components-c96g82th.js +1444 -0
  341. package/dist/shared/components-c9yr4ed1.js +44 -0
  342. package/dist/shared/components-d3shbwqq.js +95 -0
  343. package/dist/shared/{components-jjw69c4c.js → components-dcc02hs2.js} +7 -4
  344. package/dist/shared/{components-men63rwj.js → components-de99ykt7.js} +3 -2
  345. package/dist/shared/components-dhgk6mbt.js +16 -0
  346. package/dist/shared/components-drxrtnp2.js +25 -0
  347. package/dist/shared/{components-6p8tfcd6.js → components-ds9fqat9.js} +21 -18
  348. package/dist/shared/{components-mjthm1kf.js → components-egy4tyjt.js} +11 -8
  349. package/dist/shared/components-f0xfpkhh.js +82 -0
  350. package/dist/shared/components-f7h57m6t.js +59 -0
  351. package/dist/shared/{components-d6xtjht3.js → components-fjkpbg6n.js} +33 -30
  352. package/dist/shared/{components-gc5vtq2f.js → components-gh0qeey3.js} +63 -29
  353. package/dist/shared/{components-39jq9va1.js → components-gvbapfen.js} +29 -24
  354. package/dist/shared/{components-5vgpnxgy.js → components-gzesg7hy.js} +19 -16
  355. package/dist/shared/components-h6p86be3.js +19 -0
  356. package/dist/shared/components-h83az0bz.js +33 -0
  357. package/dist/shared/components-jjrj6ymn.js +104 -0
  358. package/dist/shared/{components-wvp1m52g.js → components-jp5v0m0f.js} +15 -14
  359. package/dist/shared/{components-zrkzcayz.js → components-jqpefjsn.js} +54 -6
  360. package/dist/shared/{components-1z6tdadk.js → components-k74j4hwh.js} +20 -17
  361. package/dist/shared/components-kswxnm3h.js +24 -0
  362. package/dist/shared/{components-jbbmdr74.js → components-mkkbbgb7.js} +36 -17
  363. package/dist/shared/{components-pbmqctfa.js → components-mpw667rb.js} +169 -65
  364. package/dist/shared/{components-s5ngg32c.js → components-paa08427.js} +121 -47
  365. package/dist/shared/{components-vfbhxf5r.js → components-pd42emw3.js} +6 -5
  366. package/dist/shared/{components-hw9yk32z.js → components-pmfszv7a.js} +35 -23
  367. package/dist/shared/{components-chacnk61.js → components-pw06rbxq.js} +19 -19
  368. package/dist/shared/components-q03cktx8.js +246 -0
  369. package/dist/shared/{components-kvr7f9hy.js → components-qdm3yh26.js} +19 -10
  370. package/dist/shared/{components-27nnvrwe.js → components-qs4rkqsj.js} +15 -14
  371. package/dist/shared/{components-s083f38z.js → components-r6gbmkew.js} +22 -21
  372. package/dist/shared/{components-ta7shw28.js → components-r8eqs7gz.js} +4 -4
  373. package/dist/shared/{components-sn1rxx1d.js → components-rm02h9nt.js} +12 -11
  374. package/dist/shared/{components-c6s6b43g.js → components-rrbpmfx4.js} +3 -2
  375. package/dist/shared/{components-n7mjr357.js → components-tz1fv35x.js} +3 -2
  376. package/dist/shared/components-tz4gaf1v.js +23 -0
  377. package/dist/shared/{components-zx6b6yby.js → components-vf45j12c.js} +4 -18
  378. package/dist/shared/{components-3ky44908.js → components-vfjc9jzz.js} +2 -3
  379. package/dist/shared/{components-39vmfq9s.js → components-vsa625vk.js} +21 -20
  380. package/dist/shared/components-wawnmkph.js +500 -0
  381. package/dist/shared/components-wktrrb4m.js +38 -0
  382. package/dist/shared/{components-8snj490h.js → components-wwd363me.js} +78 -32
  383. package/dist/shared/{components-5pnw8183.js → components-xcwvgcrd.js} +23 -22
  384. package/dist/shared/components-xdqmt6ed.js +20 -0
  385. package/dist/shared/{components-h2ajmhwn.js → components-y1w3a6wx.js} +107 -35
  386. package/dist/shared/{components-ar66gnt0.js → components-y6578b8h.js} +37 -34
  387. package/dist/shared/{components-59efxjd9.js → components-yhgq0qxx.js} +13 -12
  388. package/dist/shared/{components-jthe1pwb.js → components-yz84gpkq.js} +101 -404
  389. package/dist/shared/components-z3v0n0de.js +11 -0
  390. package/dist/shared/{components-7r3etddy.js → components-z9n19fyk.js} +19 -54
  391. package/dist/shared/components-zbvjzh1p.js +141 -0
  392. package/dist/styles.css +241 -16
  393. package/dist/tailwind.css +13 -0
  394. package/dist/tokens.css +34 -0
  395. package/index.ts +60 -0
  396. package/lib/date-locale.ts +50 -0
  397. package/lib/field-classes.ts +115 -0
  398. package/lib/field-variants.ts +117 -0
  399. package/lib/fluid-hover-highlight.tsx +139 -0
  400. package/lib/focus-ring.tsx +46 -0
  401. package/lib/goo-indicator.tsx +261 -0
  402. package/lib/icon-context.tsx +310 -0
  403. package/lib/inert.ts +22 -0
  404. package/lib/morph-layers.tsx +102 -0
  405. package/lib/morph-part.tsx +49 -0
  406. package/lib/popup.ts +52 -0
  407. package/lib/reduced-motion.ts +19 -0
  408. package/lib/row-index.tsx +29 -0
  409. package/lib/row-order.tsx +115 -0
  410. package/lib/scroll-column.tsx +244 -0
  411. package/lib/shape-context.tsx +124 -0
  412. package/lib/size-context.tsx +66 -0
  413. package/lib/size-scale.ts +115 -0
  414. package/lib/slot.ts +25 -0
  415. package/lib/springs.ts +62 -0
  416. package/lib/surface-classes.ts +58 -0
  417. package/lib/surface-context.tsx +21 -0
  418. package/lib/use-controllable-state.ts +44 -0
  419. package/lib/use-fluid-hover.ts +541 -0
  420. package/lib/use-is-mobile.ts +25 -0
  421. package/lib/use-keyboard-nav-gate.ts +45 -0
  422. package/lib/use-merge-split.tsx +209 -0
  423. package/lib/use-morph.ts +557 -0
  424. package/lib/use-touch-primary.tsx +43 -0
  425. package/lib/utils.ts +37 -0
  426. package/package.json +177 -4
  427. package/preset.ts +196 -0
  428. package/primitives/code/examples.mdx +27 -0
  429. package/primitives/code/index.tsx +80 -0
  430. package/primitives/craft/demos.tsx +173 -0
  431. package/primitives/craft/examples.mdx +138 -0
  432. package/primitives/craft/index.tsx +76 -0
  433. package/primitives/fluid-hover/examples.mdx +84 -0
  434. package/primitives/fluid-hover/index.tsx +316 -0
  435. package/primitives/morph/examples.mdx +135 -0
  436. package/primitives/morph/index.tsx +192 -0
  437. package/primitives/motion/examples.mdx +100 -0
  438. package/primitives/motion/index.tsx +160 -0
  439. package/primitives/scroll-area/examples.mdx +58 -0
  440. package/primitives/scroll-area/index.tsx +200 -0
  441. package/primitives/separator/examples.mdx +30 -0
  442. package/primitives/separator/index.tsx +53 -0
  443. package/primitives/sizes/examples.mdx +167 -0
  444. package/primitives/sizes/index.tsx +89 -0
  445. package/primitives/skeleton/examples.mdx +51 -0
  446. package/primitives/skeleton/index.tsx +72 -0
  447. package/primitives/skeleton/skeleton.css +15 -0
  448. package/primitives/surface/examples.mdx +173 -0
  449. package/primitives/surface/index.tsx +109 -0
  450. package/primitives/surface/surface.css +176 -0
  451. package/dist/shared/components-0sn7ypjw.js +0 -61
  452. package/dist/shared/components-1434p1mh.js +0 -123
  453. package/dist/shared/components-a86dytt0.js +0 -986
  454. package/dist/shared/components-gf5s6ap9.js +0 -42
  455. package/dist/shared/components-hyq23phv.js +0 -310
  456. package/dist/shared/components-ng72k97e.js +0 -128
  457. package/dist/shared/components-raknhppb.js +0 -64
  458. package/dist/shared/components-vynjtrk6.js +0 -19
  459. package/dist/shared/components-wy9jpqny.js +0 -146
  460. /package/dist/shared/{components-1v7rxytx.js → components-3ey0hzpb.js} +0 -0
  461. /package/dist/shared/{components-ezxhrmer.js → components-jcnjay5g.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -390,11 +390,53 @@ interface AccordionContentProps extends HTMLAttributes3<HTMLDivElement> {
390
390
  tier?: "moderate" | "slow";
391
391
  }
392
392
  declare const AccordionContent: ForwardRefExoticComponent<AccordionContentProps & RefAttributes<HTMLDivElement>>;
393
+ import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
394
+ import { ComponentPropsWithoutRef, ForwardRefExoticComponent as ForwardRefExoticComponent2, ReactNode as ReactNode3, RefAttributes as RefAttributes2 } from "react";
395
+ import { AvatarImageProps as AvatarImageProps_lpttqq } from "@base-ui/react";
396
+ import { AvatarFallbackProps as AvatarFallbackProps_weg9cb } from "@base-ui/react";
397
+ type AvatarImageProps = ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
398
+ /** The picture. It fades in once loaded; until then, or if it fails, the fallback shows. */
399
+ declare const AvatarImage: ForwardRefExoticComponent2<Omit<Omit<AvatarImageProps_lpttqq, "ref"> & RefAttributes2<HTMLImageElement>, "ref"> & RefAttributes2<HTMLImageElement>>;
400
+ type AvatarFallbackProps = ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
401
+ /** Initials or an icon, shown while the image loads or when there is none. Empty, it shows a person glyph. */
402
+ declare const AvatarFallback: ForwardRefExoticComponent2<Omit<Omit<AvatarFallbackProps_weg9cb, "ref"> & RefAttributes2<HTMLSpanElement>, "ref"> & RefAttributes2<HTMLSpanElement>>;
403
+ interface AvatarProps extends ComponentPropsWithoutRef<"span"> {
404
+ /** Pins the avatar to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
405
+ size?: SizeVariant;
406
+ /** A circle for people; a square for teams, organizations and things, which takes the shape's item radius (rounded or pill). Defaults to `"circle"`. */
407
+ shape?: "circle" | "square";
408
+ /** Classes for the root: a size off the ladder (`size-5` in a dense row), a ground. */
409
+ className?: string;
410
+ /** `Avatar.Image` and `Avatar.Fallback`. */
411
+ children?: ReactNode3;
412
+ }
413
+ type AvatarComponent = ForwardRefExoticComponent2<AvatarProps & RefAttributes2<HTMLSpanElement>> & {
414
+ Image: typeof AvatarImage;
415
+ Fallback: typeof AvatarFallback;
416
+ };
417
+ /**
418
+ * A picture of a person or a team, with initials or an icon when there is
419
+ * none.
420
+ *
421
+ * The avatar is one control tall (36px, 28px compact), so it lines up with
422
+ * the rows and buttons beside it, and follows the surrounding SizeProvider.
423
+ * Base UI's Avatar tracks the image: until it has loaded, or when it fails,
424
+ * the fallback shows on a neutral ground (the gray badge's accent); once it
425
+ * lands it fades in over the fallback. A 1px inset edge keeps a pale picture from dissolving into the
426
+ * surface. People are circles; `shape="square"` takes the shape context's
427
+ * item radius for teams and things.
428
+ *
429
+ * Statics:
430
+ * - `Avatar.Image` — the picture: `src`, `alt`, `onLoadingStatusChange`.
431
+ * - `Avatar.Fallback` — initials or an icon; empty, a person glyph. `delay`
432
+ * (ms) holds it back so a fast image never flashes it.
433
+ *
434
+ * @example {@include ./examples.mdx}
435
+ */
436
+ declare const Avatar: AvatarComponent;
393
437
  import { VariantProps } from "class-variance-authority";
394
438
  import { HTMLAttributes as HTMLAttributes4 } from "react";
395
439
  import { ClassProp as ClassProp_wz9o0r } from "class-variance-authority/types";
396
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn3 } from "react";
397
- import { RefAttributes as RefAttributes_miuf563 } from "react";
398
440
  declare const badgeColors: {
399
441
  readonly gray: "var(--badge-gray)";
400
442
  readonly red: "var(--badge-red)";
@@ -415,8 +457,9 @@ declare const badgeColors: {
415
457
  readonly rose: "var(--badge-rose)";
416
458
  };
417
459
  type BadgeColor = keyof typeof badgeColors;
460
+ type BadgeVariant = "solid" | "dot" | "outline";
418
461
  declare const badgeVariants: (props?: ({
419
- variant?: "dot" | "solid" | null | undefined;
462
+ variant?: "dot" | "outline" | "solid" | null | undefined;
420
463
  size?: "default" | "compact" | null | undefined;
421
464
  } & ClassProp_wz9o0r) | undefined) => string;
422
465
  type BadgeSizeCanonical = "default" | "compact";
@@ -424,33 +467,41 @@ type BadgeSizeCanonical = "default" | "compact";
424
467
  * aliases, kept so existing call sites keep compiling. Aliases resolve onto
425
468
  * the canonical ladder (sm → compact; md/lg → default). */
426
469
  type BadgeSize = BadgeSizeCanonical | "sm" | "md" | "lg";
470
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn3 } from "react";
471
+ import { RefAttributes as RefAttributes_miuf563 } from "react";
427
472
  interface BadgeProps extends Omit<HTMLAttributes4<HTMLSpanElement>, "color">, Omit<VariantProps<typeof badgeVariants>, "size"> {
428
- /** Visual style. Solid uses a tinted background; dot shows a colored indicator. Defaults to `"solid"`. */
429
- variant?: "solid" | "dot";
473
+ /** Visual style. Solid uses a tinted background; dot shows a colored indicator; outline is the dot badge's neutral hairline frame without the dot (it ignores `color`). Defaults to `"solid"`. */
474
+ variant?: "solid" | "dot" | "outline";
430
475
  /** Step on the size ladder (see Sizes). Legacy sm/md/lg values resolve as aliases (sm → compact; md/lg → default). Defaults to the surrounding SizeProvider, else `"default"`. */
431
- size?: BadgeSize;
476
+ size?: "default" | "compact" | "sm" | "md" | "lg";
432
477
  /** Color from the Tailwind palette: gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, blue, indigo, violet, purple, fuchsia, pink, rose. Defaults to `"gray"`. */
433
478
  color?: BadgeColor;
434
479
  }
435
480
  /**
436
- * Compact label for status, category, or metadata. Supports solid and dot
437
- * variants with Tailwind colors.
481
+ * Compact label for status, category, or metadata. Supports solid, dot and
482
+ * outline variants with Tailwind colors.
438
483
  *
439
484
  * Solid badges tint their background with the chosen color mixed into the
440
485
  * page background (gray uses the accent token); dot badges keep a neutral
441
- * border and show the color as a small indicator. The badge rides the size
486
+ * border and show the color as a small indicator; outline badges are the
487
+ * neutral frame alone, for a label that carries no status. The badge rides the size
442
488
  * ladder — `size` pins it, otherwise it follows the surrounding SizeProvider
443
489
  * — and takes its corner radius from the shape context. Changes animate: a
444
490
  * new label or variant springs the width while the label crossfades, and a
445
491
  * new color fades in. The palette is also exported as `badgeColors`, the class
446
- * recipe as `badgeVariants`.
492
+ * recipe as `badgeVariants` (both callable on the server).
493
+ *
494
+ * Status labels pick a hue rather than a fill of their own: a destructive or
495
+ * error label is `color="red"`, a success label `color="green"`, a secondary
496
+ * or default one `color="gray"`, and a neutral outlined one
497
+ * `variant="outline"` (see the Status mapping example).
447
498
  *
448
499
  * @example {@include ./examples.mdx}
449
500
  */
450
501
  declare const Badge: ForwardRefExoticComponent_tcubfn3<BadgeProps & RefAttributes_miuf563<HTMLSpanElement>>;
451
- import { VariantProps as VariantProps2 } from "class-variance-authority";
452
- import { ButtonHTMLAttributes, ReactNode as ReactNode4 } from "react";
453
- import { ComponentType, ReactNode as ReactNode3 } from "react";
502
+ import { VariantProps as VariantProps3 } from "class-variance-authority";
503
+ import { ButtonHTMLAttributes, ReactNode as ReactNode5 } from "react";
504
+ import { ComponentType, ReactNode as ReactNode4 } from "react";
454
505
  import { JSX as JSX_1kxb3 } from "react";
455
506
  interface IconComponentProps {
456
507
  size?: number | string;
@@ -458,38 +509,61 @@ interface IconComponentProps {
458
509
  className?: string;
459
510
  }
460
511
  type IconComponent = ComponentType<IconComponentProps>;
461
- type IconName = "chevron-right" | "chevron-down" | "x" | "copy" | "menu" | "dot" | "monitor" | "sun" | "moon" | "rectangle-horizontal" | "circle" | "square-library" | "clock" | "star" | "settings" | "plus" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "search" | "loader" | "users" | "lock" | "mail" | "bell" | "shield" | "palette" | "lightbulb" | "rocket" | "heart" | "paintbrush" | "brain" | "globe" | "user" | "image" | "link" | "check" | "rotate-ccw" | "play" | "pause" | "pipette" | "home" | "message-circle" | "inbox" | "pencil" | "scaling" | "skip-forward" | "corner-down-right" | "corner-down-left" | "panel-left" | "panel-left-dashed" | "panel-right" | "panel-right-dashed" | "chevrons-up-down" | "more-horizontal" | "more-vertical" | "calendar" | "folder" | "sliders-horizontal";
512
+ type IconName = "chevron-right" | "chevron-down" | "x" | "copy" | "menu" | "dot" | "monitor" | "sun" | "moon" | "rectangle-horizontal" | "circle" | "square-library" | "clock" | "star" | "settings" | "plus" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "search" | "loader" | "users" | "lock" | "mail" | "bell" | "shield" | "palette" | "lightbulb" | "rocket" | "heart" | "paintbrush" | "brain" | "globe" | "user" | "image" | "link" | "check" | "rotate-ccw" | "play" | "pause" | "pipette" | "home" | "message-circle" | "inbox" | "pencil" | "scaling" | "skip-forward" | "corner-down-right" | "corner-down-left" | "panel-left" | "panel-left-dashed" | "panel-right" | "panel-right-dashed" | "chevrons-up-down" | "more-horizontal" | "more-vertical" | "calendar" | "folder" | "sliders-horizontal" | "chevron-left" | "chevron-up" | "chevrons-left" | "chevrons-right" | "arrow-up-down" | "circle-alert" | "triangle-alert" | "circle-check" | "info" | "circle-question-mark" | "trash" | "eye" | "eye-off" | "timer" | "arrow-right-from-line" | "arrow-right-to-line" | "funnel-x" | "flag" | "loader-circle" | "minus" | "upload" | "file";
462
513
  type Element_12xgc3 = JSX_1kxb3["Element"];
463
514
  /**
464
515
  * Swap some or all icons for components from another library.
465
516
  * Names left out of `icons` keep their default (Lucide) component.
466
517
  */
467
518
  declare function IconProvider({ children, icons }: {
468
- children: ReactNode3;
519
+ children: ReactNode4;
469
520
  icons?: Partial<Record<IconName, IconComponent>>;
470
521
  }): Element_12xgc3;
471
522
  import { ClassProp as ClassProp_wz9o0r2 } from "class-variance-authority/types";
472
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn4 } from "react";
473
- import { RefAttributes as RefAttributes_miuf564 } from "react";
474
- declare const buttonVariants: (props?: ({
475
- variant?: "primary" | "secondary" | "tertiary" | "ghost" | null | undefined;
523
+ type ButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | "link";
524
+ declare const buttonRecipe: (props?: ({
525
+ variant?: "link" | "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | null | undefined;
476
526
  size?: "default" | "compact" | "icon" | "icon-compact" | null | undefined;
477
527
  iconLeft?: boolean | null | undefined;
478
528
  iconRight?: boolean | null | undefined;
529
+ surface?: boolean | null | undefined;
479
530
  } & ClassProp_wz9o0r2) | undefined) => string;
480
531
  type ButtonSizeCanonical = "default" | "compact" | "icon" | "icon-compact";
481
- /** Public size values: the canonical two-size scale plus the pre-sizes-system
482
- * aliases, kept so existing call sites keep compiling. Aliases resolve onto
483
- * the canonical ladder (sm → compact; md/lg → default). */
484
- type ButtonSize = ButtonSizeCanonical | "sm" | "md" | "lg" | "icon-sm" | "icon-lg";
485
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps2<typeof buttonVariants>, "size"> {
486
- /** Visual style of the button. Defaults to `"primary"`. */
487
- variant?: "primary" | "secondary" | "tertiary" | "ghost";
488
- /** Step on the size ladder (36px default, 28px compact — see Sizes): `"default"` | `"compact"` | `"icon"` | `"icon-compact"`. Omitted, the button follows the surrounding SizeProvider. Legacy sm/md/lg values resolve as aliases (sm → compact; md/lg → default; icon-sm → icon-compact; icon-lg → icon). */
489
- size?: ButtonSize;
532
+ /** Public size values: the canonical two-size scale plus aliases, kept so
533
+ * existing call sites keep compiling. Aliases resolve onto the canonical
534
+ * ladder (sm, xs → compact; md/lg → default). The ladder has two steps, so
535
+ * `xs` is compact rather than a third height. */
536
+ type ButtonSize = ButtonSizeCanonical | "xs" | "sm" | "md" | "lg" | "icon-sm" | "icon-lg";
537
+ type ButtonRecipeOptions = NonNullable<Parameters<typeof buttonRecipe>[0]>;
538
+ /** Options of `buttonVariants`: the Button's look, picked without rendering one. */
539
+ interface ButtonVariantsOptions extends Omit<ButtonRecipeOptions, "size"> {
540
+ /** Visual style. Defaults to `"primary"`. */
541
+ variant?: ButtonVariant | null;
542
+ /** Step on the size ladder; the aliases resolve as on the Button (xs, sm → compact; md, lg → default; icon-sm → icon-compact; icon-lg → icon). Defaults to `"default"`. */
543
+ size?: ButtonSize | null;
544
+ /** Draw the fill, ring, hover, press and disabled (`aria-disabled`) look on the element itself, for a host that is not a Button, such as an `<a>`. Static: no press shrink or loading morph — prefer `<Button asChild>` when you can render a component. Defaults to `false`. */
545
+ surface?: boolean | null;
546
+ }
547
+ /**
548
+ * The Button's class recipe, callable from server code (no JSX, hooks or
549
+ * context). Without `surface` it returns the root classes the Button builds
550
+ * on: layout, label color, size, focus ring — the fill lives on the Button's
551
+ * inner layer, so on its own it reads as a bare label. With `surface: true`
552
+ * the fill and ring go on the element itself, for an anchor styled as a
553
+ * button. Size aliases resolve onto the ladder; the radius is the rounded
554
+ * shape's (pass `rounded-[20px]` or read `useShape().button` for pill).
555
+ */
556
+ declare function buttonVariants({ size,...options }?: ButtonVariantsOptions): string;
557
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn4 } from "react";
558
+ import { RefAttributes as RefAttributes_miuf564 } from "react";
559
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps3<typeof buttonVariants>, "size" | "surface"> {
560
+ /** Visual style of the button. `outline` is `tertiary` under its shadcn name; `destructive` and `success` tint the label and a wash of their hue; `link` is underlined text on the control height. Defaults to `"primary"`. */
561
+ variant?: "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | "link";
562
+ /** Step on the size ladder (36px default, 28px compact — see Sizes): `"default"` | `"compact"` | `"icon"` | `"icon-compact"`. Omitted, the button follows the surrounding SizeProvider. Aliases resolve onto the ladder (xs, sm → compact; md/lg → default; icon-sm → icon-compact; icon-lg → icon). */
563
+ size?: "default" | "compact" | "icon" | "icon-compact" | "xs" | "sm" | "md" | "lg" | "icon-sm" | "icon-lg";
490
564
  /** Merge props onto the child element instead of rendering a `<button>` — the single React-element child becomes the rendered element (slot-style). Defaults to `false`. */
491
565
  asChild?: boolean;
492
- /** Folds the button into a circle around a spinner and disables it; the button keeps its box, so nothing around it moves. Defaults to `false`. */
566
+ /** Folds the button into a circle around a spinner and blocks presses; the button keeps its box, so nothing around it moves, and keeps focus (`aria-disabled`, not `disabled`). Defaults to `false`. */
493
567
  loading?: boolean;
494
568
  /** Icon displayed before the label. */
495
569
  leadingIcon?: IconComponent;
@@ -500,24 +574,61 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Omit<Vari
500
574
  /** Disables the button. Defaults to `false`. */
501
575
  disabled?: boolean;
502
576
  /** The label. With `size="icon"` / `"icon-compact"`, the icon itself (give the button an `aria-label`). */
503
- children?: ReactNode4;
577
+ children?: ReactNode5;
504
578
  }
505
579
  /**
506
580
  * Versatile button with variants, sizes, loading state, and icon support.
507
581
  *
508
582
  * Four variants (primary, secondary, tertiary, ghost) on the two-step size
509
583
  * ladder: 36px by default, 28px compact — an explicit `size` wins, otherwise
510
- * the button follows the surrounding SizeProvider. The press effect shrinks
584
+ * the button follows the surrounding SizeProvider. For hosts with a
585
+ * shadcn-style API there are four more: `outline` (tertiary by its other
586
+ * name), `destructive` and `success` (the hue as the label on a wash of
587
+ * itself, never a solid fill, so a view keeps one primary) and `link`
588
+ * (underlined text on the control height). The press effect shrinks
511
589
  * the fill by exactly 1px per side at any width, icons thicken their stroke
512
590
  * on hover, and `loading` folds the surface into a circle around a spinner
513
591
  * (and back when it ends) while the button keeps its box, so nothing around
514
592
  * it moves. Built on Base UI's Button; `asChild` renders your own
515
593
  * element (e.g. a link) with the button's styling instead.
516
594
  *
595
+ * Also exported from this item:
596
+ * - `buttonVariants` — the class recipe (also from `button/variants`, safe in
597
+ * server code): `variant`, `size` (aliases included), `iconLeft`,
598
+ * `iconRight`, `surface`. On its own it gives the root classes, and the fill
599
+ * lives on the Button's inner layer; `surface: true` puts the fill, ring,
600
+ * hover, press and `aria-disabled` look on the element itself, for an
601
+ * anchor you can't render through `asChild`. Prefer `<Button asChild>`
602
+ * where you can: it keeps the press shrink, the icon stroke and `loading`.
603
+ *
517
604
  * @example {@include ./examples.mdx}
518
605
  */
519
606
  declare const Button2: ForwardRefExoticComponent_tcubfn4<ButtonProps & RefAttributes_miuf564<HTMLButtonElement>>;
520
- import { ForwardRefExoticComponent as ForwardRefExoticComponent2, HTMLAttributes as HTMLAttributes5, ReactNode as ReactNode5, RefAttributes as RefAttributes2 } from "react";
607
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent3, HTMLAttributes as HTMLAttributes5, ReactNode as ReactNode6, RefAttributes as RefAttributes3 } from "react";
608
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef2 } from "react";
609
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn5 } from "react";
610
+ import { RefAttributes as RefAttributes_miuf565 } from "react";
611
+ interface SeparatorProps extends Omit<ComponentPropsWithoutRef2<"div">, "children"> {
612
+ /** Which way the line runs: across a stack, or down between items of a row. A vertical line stretches to its row's height. Defaults to `"horizontal"`. */
613
+ orientation?: "horizontal" | "vertical";
614
+ /** Classes for the line: margins, or a length that isn't the full run. */
615
+ className?: string;
616
+ }
617
+ /**
618
+ * A 1px hairline between groups of content: stacked sections, a toolbar's
619
+ * clusters, a card's body and its actions.
620
+ *
621
+ * It is the system's only line: `border`, 12% of the foreground, so it tracks
622
+ * light and dark and any forced scheme on a subtree, and it never thickens or
623
+ * takes a color. Base UI's Separator gives it the `separator` role and its
624
+ * orientation for screen readers. Horizontal lines fill their container's
625
+ * width; vertical ones stretch to the height of the row they sit in. Spacing
626
+ * around it is the layout's: pass margins through `className`. Other props
627
+ * go to the `div`.
628
+ *
629
+ * @example {@include ./examples.mdx}
630
+ */
631
+ declare const Separator2: ForwardRefExoticComponent_tcubfn5<SeparatorProps & RefAttributes_miuf565<HTMLDivElement>>;
521
632
  import { JSX as JSX_1kxb4 } from "react";
522
633
  type CardOrientation = "card" | "inline";
523
634
  type CardBorder = "none" | "outlined";
@@ -540,10 +651,10 @@ interface CardGroupProps extends Omit<HTMLAttributes5<HTMLDivElement>, "onDrag">
540
651
  /** Enable the magnetic fluid-hover highlight. @default true */
541
652
  fluidHover?: boolean;
542
653
  }
543
- declare const CardGroup: ForwardRefExoticComponent2<CardGroupProps & RefAttributes2<HTMLDivElement>>;
654
+ declare const CardGroup: ForwardRefExoticComponent3<CardGroupProps & RefAttributes3<HTMLDivElement>>;
544
655
  interface CardProps extends Omit<HTMLAttributes5<HTMLDivElement>, "onClick"> {
545
656
  /** Compositional parts: Card.Image, Card.Media, Card.Header, Card.Content, Card.Footer. */
546
- children?: ReactNode5;
657
+ children?: ReactNode6;
547
658
  /** Makes the whole card a clickable target (stretched button); fluid hover previews it. */
548
659
  onClick?: () => void;
549
660
  /** Makes the whole card a link (stretched anchor). */
@@ -564,10 +675,12 @@ interface CardProps extends Omit<HTMLAttributes5<HTMLDivElement>, "onClick"> {
564
675
  onDismiss?: () => void;
565
676
  /** Pins the card to one step of the size ladder — compact tightens type and padding. Omitted, it follows the surrounding SizeProvider. */
566
677
  size?: SizeVariant;
678
+ /** Frame of a standalone card: `"outlined"` draws a hairline around it, like an outlined group's tiles. Inside a Card.Group the group's `border` decides. Defaults to `"none"`. */
679
+ border?: CardBorder;
567
680
  /** Injected by Card.Group — do not set by hand. */
568
681
  index?: number;
569
682
  }
570
- type CardComponent = ForwardRefExoticComponent2<CardProps & RefAttributes2<HTMLDivElement>> & {
683
+ type CardComponent = ForwardRefExoticComponent3<CardProps & RefAttributes3<HTMLDivElement>> & {
571
684
  Group: typeof CardGroup;
572
685
  Header: typeof CardHeader;
573
686
  Title: typeof CardTitle;
@@ -575,6 +688,7 @@ type CardComponent = ForwardRefExoticComponent2<CardProps & RefAttributes2<HTMLD
575
688
  Action: typeof CardAction;
576
689
  Content: typeof CardContent;
577
690
  Footer: typeof CardFooter;
691
+ Divider: typeof CardDivider;
578
692
  Media: typeof CardMedia;
579
693
  Image: typeof CardImage;
580
694
  Eyebrow: typeof CardEyebrow;
@@ -588,7 +702,8 @@ type CardComponent = ForwardRefExoticComponent2<CardProps & RefAttributes2<HTMLD
588
702
  *
589
703
  * The same parts and data-slot contract as shadcn's Card, on a transparent,
590
704
  * borderless surface: a card inherits its parent's substrate and leans on
591
- * hairline dividers rather than a drawn frame. Card.Group owns the layout (a
705
+ * hairline dividers rather than a drawn frame (a standalone card opts into
706
+ * one with `border="outlined"`). Card.Group owns the layout (a
592
707
  * stacked list, inline rows or a grid) and assigns every child its fluid
593
708
  * hover index; only a clickable card (`onClick` or `href`) joins the magnetic
594
709
  * highlight. A clickable card is one stretched button or link, while footer
@@ -598,7 +713,8 @@ type CardComponent = ForwardRefExoticComponent2<CardProps & RefAttributes2<HTMLD
598
713
  * | "outlined", separated, fluidHover), Card.Header (title + description
599
714
  * grid, pins Card.Action top-right), Card.Title (weight-animates when the card
600
715
  * is selected), Card.Description, Card.Action, Card.Content, Card.Footer (the
601
- * actions row), Card.Media (an icon tile, a logo or a [logoA, logoB] pair),
716
+ * actions row; it wraps), Card.Divider (a hairline across the card between
717
+ * its parts, vertical in an inline card), Card.Media (an icon tile, a logo or a [logoA, logoB] pair),
602
718
  * Card.Image (full-bleed banner, or a leading image when inline),
603
719
  * Card.Eyebrow (small uppercase label), Card.Feature (icon + title +
604
720
  * description row) and Card.Button (primary | secondary | ghost | link
@@ -607,12 +723,13 @@ type CardComponent = ForwardRefExoticComponent2<CardProps & RefAttributes2<HTMLD
607
723
  * @example {@include ./examples.mdx}
608
724
  */
609
725
  declare const Card: CardComponent;
610
- declare const CardHeader: ForwardRefExoticComponent2<HTMLAttributes5<HTMLDivElement> & RefAttributes2<HTMLDivElement>>;
611
- declare const CardTitle: ForwardRefExoticComponent2<HTMLAttributes5<HTMLSpanElement> & RefAttributes2<HTMLSpanElement>>;
612
- declare const CardDescription: ForwardRefExoticComponent2<HTMLAttributes5<HTMLParagraphElement> & RefAttributes2<HTMLParagraphElement>>;
613
- declare const CardAction: ForwardRefExoticComponent2<HTMLAttributes5<HTMLDivElement> & RefAttributes2<HTMLDivElement>>;
614
- declare const CardContent: ForwardRefExoticComponent2<HTMLAttributes5<HTMLDivElement> & RefAttributes2<HTMLDivElement>>;
615
- declare const CardFooter: ForwardRefExoticComponent2<HTMLAttributes5<HTMLDivElement> & RefAttributes2<HTMLDivElement>>;
726
+ declare const CardHeader: ForwardRefExoticComponent3<HTMLAttributes5<HTMLDivElement> & RefAttributes3<HTMLDivElement>>;
727
+ declare const CardTitle: ForwardRefExoticComponent3<HTMLAttributes5<HTMLSpanElement> & RefAttributes3<HTMLSpanElement>>;
728
+ declare const CardDescription: ForwardRefExoticComponent3<HTMLAttributes5<HTMLParagraphElement> & RefAttributes3<HTMLParagraphElement>>;
729
+ declare const CardAction: ForwardRefExoticComponent3<HTMLAttributes5<HTMLDivElement> & RefAttributes3<HTMLDivElement>>;
730
+ declare const CardContent: ForwardRefExoticComponent3<HTMLAttributes5<HTMLDivElement> & RefAttributes3<HTMLDivElement>>;
731
+ declare const CardFooter: ForwardRefExoticComponent3<HTMLAttributes5<HTMLDivElement> & RefAttributes3<HTMLDivElement>>;
732
+ declare const CardDivider: ForwardRefExoticComponent3<SeparatorProps & RefAttributes3<HTMLDivElement>>;
616
733
  type CardLogo = string | [string, string];
617
734
  interface CardMediaProps {
618
735
  logo?: CardLogo;
@@ -629,7 +746,7 @@ interface CardImageProps {
629
746
  className?: string;
630
747
  }
631
748
  declare function CardImage({ src, alt, className }: CardImageProps): Element_12xgc4;
632
- declare const CardEyebrow: ForwardRefExoticComponent2<HTMLAttributes5<HTMLSpanElement> & RefAttributes2<HTMLSpanElement>>;
749
+ declare const CardEyebrow: ForwardRefExoticComponent3<HTMLAttributes5<HTMLSpanElement> & RefAttributes3<HTMLSpanElement>>;
633
750
  interface CardFeatureProps {
634
751
  icon?: IconComponent;
635
752
  title: string;
@@ -638,7 +755,7 @@ interface CardFeatureProps {
638
755
  declare function CardFeature({ icon: Icon, title, description }: CardFeatureProps): Element_12xgc4;
639
756
  type CardButtonVariant = "primary" | "secondary" | "ghost" | "link";
640
757
  interface CardButtonProps {
641
- children: React.ReactNode5;
758
+ children: React.ReactNode6;
642
759
  onClick?: () => void;
643
760
  href?: string;
644
761
  variant?: CardButtonVariant;
@@ -650,8 +767,8 @@ interface CardButtonProps {
650
767
  }
651
768
  declare function CardButton({ children, onClick, href, variant, icon: Icon, iconPosition, external, disabled }: CardButtonProps): Element_12xgc4;
652
769
  import { HTMLAttributes as HTMLAttributes6 } from "react";
653
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn5 } from "react";
654
- import { RefAttributes as RefAttributes_miuf565 } from "react";
770
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn6 } from "react";
771
+ import { RefAttributes as RefAttributes_miuf566 } from "react";
655
772
  type CopyVariant = "icon" | "button";
656
773
  type CopyAlign = "right" | "left";
657
774
  interface CopyProps extends Omit<HTMLAttributes6<HTMLDivElement>, "children"> {
@@ -690,11 +807,11 @@ interface CopyProps extends Omit<HTMLAttributes6<HTMLDivElement>, "children"> {
690
807
  *
691
808
  * @example {@include ./examples.mdx}
692
809
  */
693
- declare const Copy: ForwardRefExoticComponent_tcubfn5<CopyProps & RefAttributes_miuf565<HTMLDivElement>>;
694
- import { ForwardRefExoticComponent as ForwardRefExoticComponent3, HTMLAttributes as HTMLAttributes7, ReactNode as ReactNode6, RefAttributes as RefAttributes3 } from "react";
810
+ declare const Copy: ForwardRefExoticComponent_tcubfn6<CopyProps & RefAttributes_miuf566<HTMLDivElement>>;
811
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent4, HTMLAttributes as HTMLAttributes7, ReactNode as ReactNode7, RefAttributes as RefAttributes4 } from "react";
695
812
  interface CheckboxGroupProps extends HTMLAttributes7<HTMLDivElement> {
696
813
  /** `Checkbox` rows. */
697
- children: ReactNode6;
814
+ children: ReactNode7;
698
815
  /** Set of checked item indices; drives the merged background across contiguous picks. Controlled — pair it with `onCheckedIndicesChange` (or per-item `onToggle`). */
699
816
  checkedIndices?: Set<number>;
700
817
  /** Checked indices on first render when uncontrolled (a Set or an array). Defaults to none. */
@@ -704,42 +821,61 @@ interface CheckboxGroupProps extends HTMLAttributes7<HTMLDivElement> {
704
821
  /** Pins the group's rows to one step of the size ladder (default 36px, compact 28px). Defaults to the surrounding SizeProvider. */
705
822
  size?: SizeVariant;
706
823
  }
707
- declare const CheckboxGroup: ForwardRefExoticComponent3<CheckboxGroupProps & RefAttributes3<HTMLDivElement>>;
824
+ declare const CheckboxGroup: ForwardRefExoticComponent4<CheckboxGroupProps & RefAttributes4<HTMLDivElement>>;
825
+ /** A checkbox's state: on, off, or `'indeterminate'` (partly on), as Radix and shadcn spell it. */
826
+ type CheckboxCheckedState = boolean | "indeterminate";
708
827
  interface CheckboxProps extends HTMLAttributes7<HTMLDivElement> {
709
- /** Text label for the checkbox. */
710
- label: string;
711
- /** Whether the checkbox is checked (controlled). Defaults to the group's checked set inside a `Checkbox.Group`, else its own state. */
712
- checked?: boolean;
828
+ /** Label beside the box, any node. Omit it, outside a group, for a bare box (see Bare): name it with `aria-label`, `aria-labelledby` or a `<label htmlFor>` pointing at its `id`. */
829
+ label?: ReactNode7;
830
+ /** Whether the checkbox is checked (controlled); `'indeterminate'` shows the dash, as `indeterminate` does. Defaults to the group's checked set inside a `Checkbox.Group`, else its own state. */
831
+ checked?: CheckboxCheckedState;
713
832
  /** Whether a standalone checkbox starts checked (uncontrolled). Defaults to `false`. */
714
833
  defaultChecked?: boolean;
834
+ /** Shows a dash instead of the check: some, not all, of what it stands for is on. A press checks it. Defaults to `false`. */
835
+ indeterminate?: boolean;
715
836
  /** Called with the new state whenever the checkbox is toggled, in a group or not. */
716
837
  onCheckedChange?: (checked: boolean) => void;
717
838
  /** Called when the checkbox is toggled (a group's `onCheckedIndicesChange` fires too). */
718
839
  onToggle?: () => void;
840
+ /** Dims the checkbox and ignores presses; in a group the hover and the arrow keys skip it. Defaults to `false`. */
841
+ disabled?: boolean;
842
+ /** Form field name: a hidden checkbox input submits `value` while checked. */
843
+ name?: string;
844
+ /** Value submitted with `name` while checked. Defaults to `"on"`. */
845
+ value?: string;
846
+ /** Marks the hidden form input required. Defaults to `false`. */
847
+ required?: boolean;
719
848
  /** Position within a `Checkbox.Group`: the row's key in `checkedIndices`. Defaults to its order among the group's rows. */
720
849
  index?: number;
721
850
  /** Pins the checkbox to one step of the size ladder (see Sizes). Defaults to the surrounding SizeProvider (a group's `size`). */
722
851
  size?: SizeVariant;
723
852
  }
724
- type CheckboxComponent = ForwardRefExoticComponent3<CheckboxProps & RefAttributes3<HTMLDivElement>> & {
853
+ type CheckboxComponent = ForwardRefExoticComponent4<CheckboxProps & RefAttributes4<HTMLDivElement>> & {
725
854
  Group: typeof CheckboxGroup;
726
855
  };
727
856
  /**
728
- * Checkbox with a self-drawing check, alone or in a group with merged
857
+ * Checkbox with a self-drawing check, alone, bare, or in a group with merged
729
858
  * backgrounds for contiguous picks.
730
859
  *
731
860
  * The whole row is the hit target; Space or Enter toggles it, the check mark
732
861
  * draws itself in, and the checked label animates to semibold without
733
862
  * shifting its width. A standalone checkbox keeps its own state from
734
863
  * `defaultChecked`, or is controlled with `checked`; `onCheckedChange`
735
- * reports every toggle.
864
+ * reports every toggle. `indeterminate` (or `checked="indeterminate"`) shows
865
+ * a dash, which blurs into the check when it is pressed, and back.
866
+ *
867
+ * Without a `label` the checkbox is just the box: Base UI's checkbox, so a
868
+ * `<label htmlFor>` pointing at its `id` toggles it, `aria-label` names it,
869
+ * and `name` / `value` / `required` take part in a form. It sits on its own
870
+ * in a table cell or beside a label you lay out yourself.
736
871
  *
737
872
  * In a `Checkbox.Group`, contiguous checked rows share one background: a
738
873
  * checked row's background grows out of its center and melts into its
739
874
  * neighbours, an unchecked one pinches off and shrinks away (the liquid
740
875
  * indicators in Morph). A fluid hover highlight melts from row to row, and
741
- * Arrow Up/Down, Home and End move focus. The group numbers its rows in
742
- * order, so they need no `index`; pass one to key a row explicitly.
876
+ * Arrow Up/Down, Home and End move focus, skipping disabled rows. The group
877
+ * numbers its rows in order, so they need no `index`; pass one to key a row
878
+ * explicitly.
743
879
  *
744
880
  * Statics:
745
881
  * - `Checkbox.Group` — the list: uncontrolled with `defaultCheckedIndices`
@@ -751,14 +887,8 @@ type CheckboxComponent = ForwardRefExoticComponent3<CheckboxProps & RefAttribute
751
887
  * @example {@include ./examples.mdx}
752
888
  */
753
889
  declare const Checkbox: CheckboxComponent;
754
- import { CSSProperties, ForwardRefExoticComponent as ForwardRefExoticComponent4, HTMLAttributes as HTMLAttributes8, ReactNode as ReactNode7, RefAttributes as RefAttributes4, RefObject as RefObject2 } from "react";
755
- import { JSX as JSX_1kxb5 } from "react";
890
+ import { CSSProperties, ForwardRefExoticComponent as ForwardRefExoticComponent5, HTMLAttributes as HTMLAttributes8, ReactNode as ReactNode8, RefAttributes as RefAttributes5, RefObject as RefObject2 } from "react";
756
891
  type ColorFormat = "hex" | "rgb" | "hsl" | "oklch";
757
- type Element_12xgc5 = JSX_1kxb5["Element"];
758
- declare function ColorPickerPortalContainer({ value, children }: {
759
- value: HTMLElement | null;
760
- children: ReactNode7;
761
- }): Element_12xgc5;
762
892
  interface ParsedColor {
763
893
  h: number;
764
894
  s: number;
@@ -772,6 +902,19 @@ interface ParsedColor {
772
902
  hsl: string;
773
903
  oklch: string;
774
904
  }
905
+ declare function parseColor(input: string): {
906
+ r: number;
907
+ g: number;
908
+ b: number;
909
+ a: number;
910
+ } | null;
911
+ declare function buildParsed(h: number, s: number, v: number, a: number): ParsedColor;
912
+ import { JSX as JSX_1kxb5 } from "react";
913
+ type Element_12xgc5 = JSX_1kxb5["Element"];
914
+ declare function ColorPickerPortalContainer({ value, children }: {
915
+ value: HTMLElement | null;
916
+ children: ReactNode8;
917
+ }): Element_12xgc5;
775
918
  interface ColorPickerProps extends Omit<HTMLAttributes8<HTMLDivElement>, "onChange" | "defaultValue"> {
776
919
  /** Controlled color value, in any of the supported formats. Omit it to let the picker keep its own state, seeded from `defaultValue`. */
777
920
  value?: string;
@@ -835,13 +978,6 @@ interface ColorSwatchProps extends Omit<HTMLAttributes8<HTMLButtonElement>, "col
835
978
  /** Draws the selection ring. */
836
979
  selected?: boolean;
837
980
  }
838
- declare function parseColor(input: string): {
839
- r: number;
840
- g: number;
841
- b: number;
842
- a: number;
843
- } | null;
844
- declare function buildParsed(h: number, s: number, v: number, a: number): ParsedColor;
845
981
  interface ColorTileProps {
846
982
  color: string;
847
983
  size?: number;
@@ -849,8 +985,8 @@ interface ColorTileProps {
849
985
  style?: CSSProperties;
850
986
  }
851
987
  declare function ColorTile({ color, size, className, style }: ColorTileProps): Element_12xgc5;
852
- declare const ColorSwatch: ForwardRefExoticComponent4<ColorSwatchProps & RefAttributes4<HTMLButtonElement>>;
853
- type ColorPickerComponent = ForwardRefExoticComponent4<ColorPickerProps & RefAttributes4<HTMLDivElement>> & {
988
+ declare const ColorSwatch: ForwardRefExoticComponent5<ColorSwatchProps & RefAttributes5<HTMLButtonElement>>;
989
+ type ColorPickerComponent = ForwardRefExoticComponent5<ColorPickerProps & RefAttributes5<HTMLDivElement>> & {
854
990
  /** `ColorPickerPopover` — the same panel behind a trigger button. */
855
991
  Popover: typeof ColorPickerPopover;
856
992
  };
@@ -885,14 +1021,23 @@ type ColorPickerComponent = ForwardRefExoticComponent4<ColorPickerProps & RefAtt
885
1021
  * @example {@include ./examples.mdx}
886
1022
  */
887
1023
  declare const ColorPicker: ColorPickerComponent;
888
- declare const ColorPickerPopover: ForwardRefExoticComponent4<ColorPickerPopoverProps & RefAttributes4<HTMLDivElement>>;
889
- import { HTMLAttributes as HTMLAttributes9, InputHTMLAttributes as InputHTMLAttributes2, ReactNode as ReactNode8, RefObject as RefObject4 } from "react";
1024
+ declare const ColorPickerPopover: ForwardRefExoticComponent5<ColorPickerPopoverProps & RefAttributes5<HTMLDivElement>>;
1025
+ import { HTMLAttributes as HTMLAttributes9, InputHTMLAttributes as InputHTMLAttributes2, ReactNode as ReactNode10, RefObject as RefObject4 } from "react";
1026
+ import { ReactNode as ReactNode9 } from "react";
1027
+ import { JSX as JSX_1kxb6 } from "react";
1028
+ type ShapeVariant = "pill" | "rounded";
1029
+ type Element_12xgc6 = JSX_1kxb6["Element"];
1030
+ declare function ShapeProvider({ children, defaultShape }: {
1031
+ children: ReactNode9;
1032
+ defaultShape?: ShapeVariant;
1033
+ }): Element_12xgc6;
890
1034
  import { ClassProp as ClassProp_wz9o0r3 } from "class-variance-authority/types";
891
1035
  /**
892
1036
  * The ringed box of a text field. It steps from rest to a muted fill when lit
893
1037
  * (hovered, or `data-active` from a group's fluid hover) to the card fill
894
1038
  * when focused. `data-invalid` keeps a destructive ring in every state and
895
- * tints the lit fill; `data-disabled` frames and dims it. Put it on the
1039
+ * tints the lit fill; `data-disabled` frames and dims it; `data-readonly`
1040
+ * shows the ring when lit or focused but never lifts the fill. Put it on the
896
1041
  * element around the control and stamp the data attributes; Base UI parts
897
1042
  * stamp `data-invalid` / `data-disabled` themselves.
898
1043
  */
@@ -901,20 +1046,32 @@ declare const fieldVariants: (props?: ({
901
1046
  } & ClassProp_wz9o0r3) | undefined) => string;
902
1047
  /** Framed at rest (`bordered`), or invisible until hovered or focused (`borderless`). */
903
1048
  type FieldVariant = "bordered" | "borderless";
904
- import { JSX as JSX_1kxb6 } from "react";
905
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn6 } from "react";
906
- import { RefAttributes as RefAttributes_miuf566 } from "react";
1049
+ import { JSX as JSX_1kxb7 } from "react";
1050
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn7 } from "react";
1051
+ import { RefAttributes as RefAttributes_miuf567 } from "react";
907
1052
  /** An object item: `value` and `label`, plus whatever the rows need. */
908
1053
  interface ComboboxItemObject {
909
1054
  value: string;
910
- label: string;
1055
+ /** What the row and the chip show: text, or any node with a `textValue`. */
1056
+ label: ReactNode10;
1057
+ /** The item as text: what the query filters and the field shows. Defaults to `label` when it is a string, else `value`. */
1058
+ textValue?: string;
911
1059
  [key: string]: unknown;
912
1060
  }
913
1061
  type ComboboxItemData = string | ComboboxItemObject;
1062
+ /** What `Combobox.Content`'s footer gets when it is a function. */
1063
+ interface ComboboxFooterContext {
1064
+ /** Closes the popup. */
1065
+ close: () => void;
1066
+ /** The trimmed query. */
1067
+ query: string;
1068
+ }
1069
+ /** A node, or a function of the popup's state, rendered under the list. */
1070
+ type ComboboxFooter = ReactNode10 | ((context: ComboboxFooterContext) => ReactNode10);
914
1071
  type ComboboxValue<Multiple extends boolean> = Multiple extends true ? string[] : string;
915
1072
  interface ComboboxProps {
916
1073
  /** `Combobox.Input` or `Combobox.Chips`, plus `Combobox.Content`. */
917
- children: ReactNode8;
1074
+ children: ReactNode10;
918
1075
  /** The options. A string is its own value and label; an object carries `value`, `label`, and whatever your rows need. */
919
1076
  items: readonly ComboboxItemData[];
920
1077
  /** Any number of picks. Values become `string[]`; use `Combobox.Chips` for the field. Defaults to `false`. */
@@ -925,12 +1082,30 @@ interface ComboboxProps {
925
1082
  defaultValue?: string | string[];
926
1083
  /** Called with the pick, `""` when cleared, or the array when `multiple`. */
927
1084
  onValueChange?: ((value: string) => void) | ((value: string[]) => void);
928
- /** Match an item against the query. Defaults to a case-insensitive "contains" on the label. */
929
- filter?: (item: ComboboxItemData, query: string) => boolean;
1085
+ /** Match an item against the query, or `null` to show every item as given (filtered elsewhere, e.g. on a server). Defaults to a case-insensitive "contains" on the item's text. */
1086
+ filter?: ((item: ComboboxItemData, query: string) => boolean) | null;
1087
+ /** Controlled query, the field's text. Pair it with `onInputValueChange`. */
1088
+ inputValue?: string;
1089
+ /** Initial query, for an uncontrolled field. Defaults to the picked item's text in single mode, else `""`. */
1090
+ defaultInputValue?: string;
1091
+ /** Called with the field's text on every keystroke, and when a pick or a close rewrites it. */
1092
+ onInputValueChange?: (inputValue: string) => void;
1093
+ /** Items are loading: the chevron turns into a spinner, a status row sits under the list and the empty message waits. Defaults to `false`. */
1094
+ loading?: boolean;
1095
+ /** The loading row's text. Defaults to `"Loading…"`. */
1096
+ loadingLabel?: ReactNode10;
1097
+ /** Shows the picks but takes no input: the popup stays shut and the clear ✕ and chip ✕ go. Defaults to `false`. */
1098
+ readOnly?: boolean;
1099
+ /** Controlled open state of the popup. Pair it with `onOpenChange`. */
1100
+ open?: boolean;
1101
+ /** Initial open state, for an uncontrolled popup. Defaults to `false`. */
1102
+ defaultOpen?: boolean;
1103
+ /** Called when the popup opens or closes. */
1104
+ onOpenChange?: (open: boolean) => void;
930
1105
  /** Adds a last row that creates the trimmed query whenever no label matches it exactly. Add the item to `items` and return it to select it. */
931
1106
  onCreate?: (query: string) => ComboboxItemData | void;
932
1107
  /** The create row's label. Defaults to ``(query) => `Create “${query}”` ``. */
933
- createLabel?: (query: string) => ReactNode8;
1108
+ createLabel?: (query: string) => ReactNode10;
934
1109
  /** Local addition: offer the create row with no callback — the component keeps the items it makes, so nothing outside has to hold the list. Defaults to `false`. */
935
1110
  creatable?: boolean;
936
1111
  /** Multiple only. Picked items leave the list, so it reads as what is left to add. Deselect from the chips. Defaults to `false`. */
@@ -944,7 +1119,7 @@ interface ComboboxProps {
944
1119
  /** Pins field and popup to one step of the size ladder (default 36px, compact 28px — see the Sizes primitive). Omitted, both follow the surrounding SizeProvider. */
945
1120
  size?: SizeVariant;
946
1121
  }
947
- type Element_12xgc6 = JSX_1kxb6["Element"];
1122
+ type Element_12xgc7 = JSX_1kxb7["Element"];
948
1123
  /**
949
1124
  * Type to filter a list. 1 pick, or chips.
950
1125
  *
@@ -960,18 +1135,28 @@ type Element_12xgc6 = JSX_1kxb6["Element"];
960
1135
  * an empty field drops the last one. Uncontrolled with `defaultValue`, or
961
1136
  * controlled with `value` plus `onValueChange`.
962
1137
  *
1138
+ * For items that come from elsewhere (a server, a paged API), own the query
1139
+ * with `inputValue` + `onInputValueChange`, pass `filter={null}` so the list
1140
+ * shows exactly the items you hand it, and set `loading` while they are on
1141
+ * their way: the chevron blurs into a spinner and a status row sits under
1142
+ * the list instead of the empty message. `Combobox.Content`'s `footer` pins
1143
+ * an action under the list ("Load more", "Add new…"). An object item's
1144
+ * `label` may be any node; its `textValue` is what filters, fills the field
1145
+ * and names its chip. `readOnly` shows the picks and takes no input.
1146
+ *
963
1147
  * Statics:
964
1148
  * - `Combobox.Input` — the single-pick field: icon, text input, clear ✕, chevron.
965
1149
  * - `Combobox.Chips` — the multiple field: one chip per pick ahead of the input.
966
1150
  * - `Combobox.Content` — the popup surface, holding `Combobox.Empty` and `Combobox.List`:
967
- * `side`, `align`, `sideOffset` and the morph options `from`, `effect`, `hideSource`, `tier`.
1151
+ * `side`, `align`, `sideOffset`, a `footer` under the list, and the morph options
1152
+ * `from`, `effect`, `hideSource`, `tier`.
968
1153
  * - `Combobox.List` — a row per match, from a `(item, index) => ReactNode` child.
969
1154
  * - `Combobox.Item` — one row: `value`, optional `icon` and `disabled`.
970
1155
  * - `Combobox.Empty` — what shows when nothing matches.
971
1156
  *
972
1157
  * @example {@include ./examples.mdx}
973
1158
  */
974
- declare function Combobox({ children, items, multiple, value, defaultValue, onValueChange, filter, onCreate, createLabel, creatable, hideSelected, disabled, name, required, size }: ComboboxProps): Element_12xgc6;
1159
+ declare function Combobox({ children, items, multiple, value, defaultValue, onValueChange, filter, onCreate, createLabel, creatable, hideSelected, disabled, name, required, inputValue: inputValueProp, defaultInputValue, onInputValueChange, loading, loadingLabel, readOnly, open: openProp, defaultOpen, onOpenChange, size }: ComboboxProps): Element_12xgc7;
975
1160
  interface ComboboxFieldProps extends Omit<InputHTMLAttributes2<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange"> {
976
1161
  /** Framed at rest, or invisible until hovered or focused. Defaults to `"bordered"`. */
977
1162
  variant?: FieldVariant;
@@ -989,14 +1174,14 @@ interface ComboboxFieldProps extends Omit<InputHTMLAttributes2<HTMLInputElement>
989
1174
  size?: SizeVariant;
990
1175
  }
991
1176
  type ComboboxInputProps = ComboboxFieldProps;
992
- declare const ComboboxInput: ForwardRefExoticComponent_tcubfn6<ComboboxFieldProps & RefAttributes_miuf566<HTMLInputElement>>;
1177
+ declare const ComboboxInput: ForwardRefExoticComponent_tcubfn7<ComboboxFieldProps & RefAttributes_miuf567<HTMLInputElement>>;
993
1178
  type ComboboxChipsProps = ComboboxFieldProps;
994
- declare const ComboboxChips: ForwardRefExoticComponent_tcubfn6<ComboboxFieldProps & RefAttributes_miuf566<HTMLInputElement>>;
1179
+ declare const ComboboxChips: ForwardRefExoticComponent_tcubfn7<ComboboxFieldProps & RefAttributes_miuf567<HTMLInputElement>>;
995
1180
  interface ComboboxContentProps {
996
1181
  /** Classes for the popup surface — merged after the radius and max-height. */
997
1182
  className?: string;
998
1183
  /** `Combobox.Empty` and `Combobox.List`. */
999
- children: ReactNode8;
1184
+ children: ReactNode10;
1000
1185
  /** Side of the field the popup prefers. Defaults to `"bottom"`. */
1001
1186
  side?: "top" | "bottom" | "left" | "right";
1002
1187
  /** Alignment against the field. Defaults to `"start"`. */
@@ -1011,15 +1196,17 @@ interface ComboboxContentProps {
1011
1196
  hideSource?: boolean;
1012
1197
  /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
1013
1198
  tier?: "moderate" | "slow";
1199
+ /** Pinned under the list, past a hairline: a "load more" or "add new" action. A function gets `{ close, query }`. */
1200
+ footer?: ComboboxFooter;
1014
1201
  }
1015
- declare const ComboboxContent: ForwardRefExoticComponent_tcubfn6<ComboboxContentProps & RefAttributes_miuf566<HTMLDivElement>>;
1202
+ declare const ComboboxContent: ForwardRefExoticComponent_tcubfn7<ComboboxContentProps & RefAttributes_miuf567<HTMLDivElement>>;
1016
1203
  interface ComboboxListProps {
1017
1204
  /** Classes for the rows' container. */
1018
1205
  className?: string;
1019
1206
  /** Render one row per matching item: `(item, index) => <Combobox.Item …/>`. Rows get their index from the list. */
1020
- children: (item: ComboboxItemData, index: number) => ReactNode8;
1207
+ children: (item: ComboboxItemData, index: number) => ReactNode10;
1021
1208
  }
1022
- declare const ComboboxList: ForwardRefExoticComponent_tcubfn6<ComboboxListProps & RefAttributes_miuf566<HTMLDivElement>>;
1209
+ declare const ComboboxList: ForwardRefExoticComponent_tcubfn7<ComboboxListProps & RefAttributes_miuf567<HTMLDivElement>>;
1023
1210
  interface ComboboxItemProps extends HTMLAttributes9<HTMLDivElement> {
1024
1211
  /** Leading icon in the row. */
1025
1212
  icon?: IconComponent;
@@ -1028,22 +1215,22 @@ interface ComboboxItemProps extends HTMLAttributes9<HTMLDivElement> {
1028
1215
  /** Disables the row. Defaults to `false`. */
1029
1216
  disabled?: boolean;
1030
1217
  /** The row label. */
1031
- children?: ReactNode8;
1218
+ children?: ReactNode10;
1032
1219
  }
1033
- declare const ComboboxItem: ForwardRefExoticComponent_tcubfn6<ComboboxItemProps & RefAttributes_miuf566<HTMLDivElement>>;
1220
+ declare const ComboboxItem: ForwardRefExoticComponent_tcubfn7<ComboboxItemProps & RefAttributes_miuf567<HTMLDivElement>>;
1034
1221
  interface ComboboxEmptyProps extends HTMLAttributes9<HTMLDivElement> {
1035
1222
  /** Shown instead of the children when `hideSelected` has emptied the
1036
1223
  * list with nothing typed: every item is a chip already. */
1037
- allSelected?: ReactNode8;
1224
+ allSelected?: ReactNode10;
1038
1225
  /** Shown when nothing matches the query. */
1039
- children?: ReactNode8;
1226
+ children?: ReactNode10;
1040
1227
  }
1041
- declare const ComboboxEmpty: ForwardRefExoticComponent_tcubfn6<ComboboxEmptyProps & RefAttributes_miuf566<HTMLDivElement>>;
1228
+ declare const ComboboxEmpty: ForwardRefExoticComponent_tcubfn7<ComboboxEmptyProps & RefAttributes_miuf567<HTMLDivElement>>;
1042
1229
  import { Locale } from "date-fns";
1043
- import { ReactNode as ReactNode9 } from "react";
1230
+ import { ReactNode as ReactNode11 } from "react";
1044
1231
  import { DayPickerProps } from "react-day-picker";
1045
- import { JSX as JSX_1kxb7 } from "react";
1046
- type Element_12xgc7 = JSX_1kxb7["Element"];
1232
+ import { JSX as JSX_1kxb8 } from "react";
1233
+ type Element_12xgc8 = JSX_1kxb8["Element"];
1047
1234
  /**
1048
1235
  * A calendar that scrolls through the months instead of paging, with month
1049
1236
  * and year columns to jump by.
@@ -1075,25 +1262,52 @@ declare function Calendar({ locale, size, columnsSide, extraColumns, extraColumn
1075
1262
  /** Which side of the days the month and year columns stand on; the month column keeps next to the days. Defaults to `'end'`. */
1076
1263
  columnsSide?: "start" | "end";
1077
1264
  /** More columns, given the layout's orientation — the date picker's hours and minutes. */
1078
- extraColumns?: (orientation: "vertical" | "horizontal") => ReactNode9;
1265
+ extraColumns?: (orientation: "vertical" | "horizontal") => ReactNode11;
1079
1266
  /** Which side of the days the extra columns stand on, outside the month and year columns when they share it. Defaults to `'end'`. */
1080
1267
  extraColumnsSide?: "start" | "end";
1081
1268
  /** Classes for the calendar's box. */
1082
1269
  className?: string;
1083
- }): Element_12xgc7;
1270
+ }): Element_12xgc8;
1084
1271
  type CalendarProps = Parameters<typeof Calendar>[0];
1085
1272
  import { Locale as Locale3 } from "date-fns";
1086
- import { RefObject as RefObject5 } from "react";
1273
+ import { ReactNode as ReactNode12, RefObject as RefObject5 } from "react";
1087
1274
  import { Matcher } from "react-day-picker";
1088
1275
  type HourCycle = "h11" | "h12" | "h23" | "h24";
1089
- import { JSX as JSX_1kxb8 } from "react";
1276
+ import { JSX as JSX_1kxb9 } from "react";
1277
+ /** Every word the picker shows or announces, for translating it. */
1278
+ interface DatePickerLabels {
1279
+ /** Names the date field (and the panel's date input). Defaults to the `placeholder`, else `"Date"`. */
1280
+ date?: string;
1281
+ /** Names the panel's time input. Defaults to `"Time"`. */
1282
+ time?: string;
1283
+ /** Names the calendar button of an `editable` field. Defaults to `"Open calendar"`. */
1284
+ calendar?: string;
1285
+ /** Names the panel's close button. Defaults to `"Close"`. */
1286
+ close?: string;
1287
+ /** The `actions` row's button that picks today. Defaults to `"Today"`. */
1288
+ today?: string;
1289
+ /** The `actions` row's button that empties the field. Defaults to `"Clear"`. */
1290
+ clear?: string;
1291
+ /** Caption under a field holding no real date, rendered as the field's next sibling; `null` keeps only the destructive ring. Defaults to `"Invalid date"`. */
1292
+ invalid?: ReactNode12;
1293
+ }
1090
1294
  interface DatePickerProps {
1091
- /** The picked date (and time, with `withTime`); `null` when empty. */
1092
- value?: Date | null;
1093
- /** Initial date, for an uncontrolled picker. Defaults to `null`. */
1094
- defaultValue?: Date | null;
1095
- /** Called with the new date, or `null` when the field is cleared. */
1295
+ /** The picked date (and time, with `withTime`); `null` when empty. A string is read as a date: a bare `"2026-10-09"` as that day at local midnight, a full timestamp as written; one that reads as none shows the invalid state. */
1296
+ value?: Date | string | null;
1297
+ /** Initial date, for an uncontrolled picker; a string reads as `value`'s does. Defaults to `null`. */
1298
+ defaultValue?: Date | string | null;
1299
+ /** Called with the new date, or `null` when the field is cleared. An `editable` field left with an incomplete or impossible date reports an Invalid Date (`isNaN(date.getTime())`), so a form can reject it. */
1096
1300
  onValueChange?: (value: Date | null) => void;
1301
+ /** The field is a text input to type the date into, in the locale's numeric order ("09.10.2026", "10/09/2026"); its calendar icon opens the panel. Defaults to `false`. */
1302
+ editable?: boolean;
1303
+ /** The field's text for a date, in place of the locale's medium format: `(date) => …`. */
1304
+ formatDate?: (date: Date) => ReactNode12;
1305
+ /** Every word the picker shows or announces (`date`, `time`, `calendar`, `close`, `today`, `clear`, `invalid`), for translating it. Defaults to English. */
1306
+ labels?: DatePickerLabels;
1307
+ /** Adds a row under the calendar with Today and Clear. Defaults to `false`. */
1308
+ actions?: boolean;
1309
+ /** Shows the value but never opens or takes typing. Defaults to `false`. */
1310
+ readOnly?: boolean;
1097
1311
  /** Adds hour and minute columns, and the time to the field. Defaults to `false`. */
1098
1312
  withTime?: boolean;
1099
1313
  /** The clock for the time: on `'h12'` / `'h11'` the hours read with AM/PM. Defaults to the locale's. */
@@ -1141,7 +1355,7 @@ interface DatePickerProps {
1141
1355
  /** Classes for the field. */
1142
1356
  className?: string;
1143
1357
  }
1144
- type Element_12xgc8 = JSX_1kxb8["Element"];
1358
+ type Element_12xgc9 = JSX_1kxb9["Element"];
1145
1359
  /**
1146
1360
  * A date field that opens a scrolling calendar, with an optional time.
1147
1361
  *
@@ -1157,17 +1371,32 @@ type Element_12xgc8 = JSX_1kxb8["Element"];
1157
1371
  * either set of columns before or after the days. On a phone the panel is a
1158
1372
  * bottom sheet, its columns turned into strips above the days.
1159
1373
  *
1374
+ * `editable` turns the field into a text input: type the digits and the
1375
+ * locale's separators fall into place ("09.10.2026" in German,
1376
+ * "10/09/2026" in English), with the rest of the mask muted after the caret;
1377
+ * the calendar icon opens the panel. A date that can't exist, or one left
1378
+ * half typed, turns the field destructive with a caption under it, and so
1379
+ * does a `value` that reads as no date. `actions` adds Today and Clear under
1380
+ * the calendar.
1381
+ *
1160
1382
  * Localized through `locale`, a react-day-picker locale: month and weekday
1161
1383
  * names, the formats shown and read, the week's first day and the clock all
1162
- * follow it, and `dir="rtl"` mirrors the panel.
1384
+ * follow it, and `dir="rtl"` mirrors the panel. Every word it shows or
1385
+ * announces comes from `labels`, and `formatDate` writes the field's text.
1386
+ *
1387
+ * The invalid caption renders as the field's next sibling rather than inside
1388
+ * a wrapper, so the field keeps its place in a flex row or grid exactly as
1389
+ * before and an input being typed into never remounts when the caption comes
1390
+ * and goes. Lay the picker in a column (or wrap it) where the caption should
1391
+ * sit under the field.
1163
1392
  *
1164
1393
  * @example {@include ./examples.mdx}
1165
1394
  */
1166
- declare function DatePicker({ value: valueProp, defaultValue, onValueChange, withTime, hourCycle, minuteStep, locale, placeholder, disabled, startMonth, endMonth, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, dir, columnsSide, timeColumnsSide, id, from, effect, hideSource, tier, className }: DatePickerProps): Element_12xgc8;
1395
+ declare function DatePicker({ value: valueProp, defaultValue, onValueChange, editable, formatDate, labels, actions, readOnly, withTime, hourCycle, minuteStep, locale, placeholder, disabled, startMonth, endMonth, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, dir, columnsSide, timeColumnsSide, id, from, effect, hideSource, tier, className }: DatePickerProps): Element_12xgc9;
1167
1396
  import { Locale as Locale4 } from "date-fns";
1168
1397
  import { RefObject as RefObject6 } from "react";
1169
1398
  import { DateRange, Matcher as Matcher2 } from "react-day-picker";
1170
- import { JSX as JSX_1kxb9 } from "react";
1399
+ import { JSX as JSX_1kxb10 } from "react";
1171
1400
  interface DateRangePickerProps {
1172
1401
  /** The picked range, react-day-picker's `{ from, to }`; `null` when empty. */
1173
1402
  value?: DateRange | null;
@@ -1214,7 +1443,7 @@ interface DateRangePickerProps {
1214
1443
  /** Classes for the field. */
1215
1444
  className?: string;
1216
1445
  }
1217
- type Element_12xgc9 = JSX_1kxb9["Element"];
1446
+ type Element_12xgc10 = JSX_1kxb10["Element"];
1218
1447
  /**
1219
1448
  * A field for a span of days, picked with two clicks on a scrolling calendar.
1220
1449
  *
@@ -1227,10 +1456,10 @@ type Element_12xgc9 = JSX_1kxb9["Element"];
1227
1456
  *
1228
1457
  * @example {@include ./examples.mdx}
1229
1458
  */
1230
- declare function DateRangePicker({ value: valueProp, defaultValue, onValueChange, locale, placeholder, disabled, startMonth, endMonth, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, dir, columnsSide, id, from: growFrom, effect, hideSource, tier, className }: DateRangePickerProps): Element_12xgc9;
1459
+ declare function DateRangePicker({ value: valueProp, defaultValue, onValueChange, locale, placeholder, disabled, startMonth, endMonth, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, dir, columnsSide, id, from: growFrom, effect, hideSource, tier, className }: DateRangePickerProps): Element_12xgc10;
1231
1460
  import { Duration, Locale as Locale5 } from "date-fns";
1232
1461
  import { RefObject as RefObject7 } from "react";
1233
- import { JSX as JSX_1kxb10 } from "react";
1462
+ import { JSX as JSX_1kxb11 } from "react";
1234
1463
  interface DurationPickerProps {
1235
1464
  /** The picked duration, a date-fns `Duration` (`{ hours, minutes }`); `null` when empty. */
1236
1465
  value?: Duration | null;
@@ -1273,7 +1502,7 @@ interface DurationPickerProps {
1273
1502
  /** Classes for the field. */
1274
1503
  className?: string;
1275
1504
  }
1276
- type Element_12xgc10 = JSX_1kxb10["Element"];
1505
+ type Element_12xgc11 = JSX_1kxb11["Element"];
1277
1506
  /**
1278
1507
  * A field for a length of time, in hours and minutes.
1279
1508
  *
@@ -1284,10 +1513,10 @@ type Element_12xgc10 = JSX_1kxb10["Element"];
1284
1513
  *
1285
1514
  * @example {@include ./examples.mdx}
1286
1515
  */
1287
- declare function DurationPicker({ value: valueProp, defaultValue, onValueChange, maxHours, minuteStep, locale, placeholder, disabled, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, id, from, effect, hideSource, tier, className }: DurationPickerProps): Element_12xgc10;
1516
+ declare function DurationPicker({ value: valueProp, defaultValue, onValueChange, maxHours, minuteStep, locale, placeholder, disabled, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, id, from, effect, hideSource, tier, className }: DurationPickerProps): Element_12xgc11;
1288
1517
  import { Locale as Locale6 } from "date-fns";
1289
1518
  import { RefObject as RefObject8 } from "react";
1290
- import { JSX as JSX_1kxb11 } from "react";
1519
+ import { JSX as JSX_1kxb12 } from "react";
1291
1520
  interface MonthPickerProps {
1292
1521
  /** The picked month as its first day; `null` when empty. */
1293
1522
  value?: Date | null;
@@ -1330,7 +1559,7 @@ interface MonthPickerProps {
1330
1559
  /** Classes for the field. */
1331
1560
  className?: string;
1332
1561
  }
1333
- type Element_12xgc11 = JSX_1kxb11["Element"];
1562
+ type Element_12xgc12 = JSX_1kxb12["Element"];
1334
1563
  /**
1335
1564
  * A field for a month of a year: a billing period, a card's expiry.
1336
1565
  *
@@ -1341,10 +1570,10 @@ type Element_12xgc11 = JSX_1kxb11["Element"];
1341
1570
  *
1342
1571
  * @example {@include ./examples.mdx}
1343
1572
  */
1344
- declare function MonthPicker({ value: valueProp, defaultValue, onValueChange, locale, placeholder, startMonth, endMonth, disabled, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, id, from, effect, hideSource, tier, className }: MonthPickerProps): Element_12xgc11;
1573
+ declare function MonthPicker({ value: valueProp, defaultValue, onValueChange, locale, placeholder, startMonth, endMonth, disabled, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, id, from, effect, hideSource, tier, className }: MonthPickerProps): Element_12xgc12;
1345
1574
  import { Locale as Locale7 } from "date-fns";
1346
1575
  import { RefObject as RefObject9 } from "react";
1347
- import { JSX as JSX_1kxb12 } from "react";
1576
+ import { JSX as JSX_1kxb13 } from "react";
1348
1577
  interface TimePickerProps {
1349
1578
  /** The picked time as `"HH:mm"` on a 24-hour clock (an `<input type="time">`'s value); `null` when empty. */
1350
1579
  value?: string | null;
@@ -1387,7 +1616,7 @@ interface TimePickerProps {
1387
1616
  /** Classes for the field. */
1388
1617
  className?: string;
1389
1618
  }
1390
- type Element_12xgc12 = JSX_1kxb12["Element"];
1619
+ type Element_12xgc13 = JSX_1kxb13["Element"];
1391
1620
  /**
1392
1621
  * A time-of-day field with scrolling hour and minute columns.
1393
1622
  *
@@ -1399,13 +1628,318 @@ type Element_12xgc12 = JSX_1kxb12["Element"];
1399
1628
  *
1400
1629
  * @example {@include ./examples.mdx}
1401
1630
  */
1402
- declare function TimePicker({ value: valueProp, defaultValue, onValueChange, hourCycle, minuteStep, locale, placeholder, disabled, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, id, from, effect, hideSource, tier, className }: TimePickerProps): Element_12xgc12;
1403
- import { ForwardRefExoticComponent as ForwardRefExoticComponent5, HTMLAttributes as HTMLAttributes10, InputHTMLAttributes as InputHTMLAttributes3, LabelHTMLAttributes, ReactNode as ReactNode10, RefAttributes as RefAttributes5 } from "react";
1631
+ declare function TimePicker({ value: valueProp, defaultValue, onValueChange, hourCycle, minuteStep, locale, placeholder, disabled, variant, invalid, size, open: openProp, defaultOpen, onOpenChange, id, from, effect, hideSource, tier, className }: TimePickerProps): Element_12xgc13;
1632
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent6, HTMLAttributes as HTMLAttributes10, ReactElement, ReactNode as ReactNode13, RefAttributes as RefAttributes6 } from "react";
1633
+ import { JSX as JSX_1kxb14 } from "react";
1634
+ /** When native validity is checked. */
1635
+ type FieldValidationMode = "onSubmit" | "onBlur" | "onChange";
1636
+ interface FieldProps extends Omit<HTMLAttributes10<HTMLDivElement>, "children"> {
1637
+ /** The field's parts: `Field.Label`, a control, `Field.Description`, `Field.Error`. */
1638
+ children?: ReactNode13;
1639
+ /** Marks the value invalid: the label and the control turn destructive and the control sets `aria-invalid`. Set it from your validation (a form library's field state). Defaults to `false`. */
1640
+ invalid?: boolean;
1641
+ /** Disables the control and dims the field. Defaults to `false`. */
1642
+ disabled?: boolean;
1643
+ /** Shows the value without letting it change (Input, NumberInput and FileDropzone read it). Defaults to `false`. */
1644
+ readOnly?: boolean;
1645
+ /** Marks the control required and the label with an asterisk. Defaults to `false`. */
1646
+ required?: boolean;
1647
+ /** Names the value when the form is submitted; wins over the control's own `name`. */
1648
+ name?: string;
1649
+ /** Whether the value differs from its initial one, for a form library that tracks it (sets `data-dirty`). */
1650
+ dirty?: boolean;
1651
+ /** Whether the control has been visited, for a form library that tracks it (sets `data-touched`). */
1652
+ touched?: boolean;
1653
+ /** When Base UI checks the control's native validity (`required`, `pattern`, `type`): on form submit, on blur, or on every change. A failure turns the field destructive and an empty `Field.Error` shows the browser's message. Defaults to `"onSubmit"`. */
1654
+ validationMode?: FieldValidationMode;
1655
+ /** Pins the field and its control to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
1656
+ size?: SizeVariant;
1657
+ /** Classes for the root. */
1658
+ className?: string;
1659
+ }
1660
+ interface FieldLabelProps {
1661
+ /** Label text. */
1662
+ children: ReactNode13;
1663
+ /** Keep the label for assistive tech but don't render it, for a field whose placeholder or context carries the meaning. Defaults to `false`. */
1664
+ visuallyHidden?: boolean;
1665
+ /** Classes for the label. */
1666
+ className?: string;
1667
+ }
1668
+ type Element_12xgc14 = JSX_1kxb14["Element"];
1669
+ declare function FieldLabel({ children, visuallyHidden, className }: FieldLabelProps): Element_12xgc14;
1670
+ interface FieldDescriptionProps {
1671
+ /** Help text under the control: a format, a limit, what the value is for. */
1672
+ children: ReactNode13;
1673
+ /** Classes for the description. */
1674
+ className?: string;
1675
+ }
1676
+ declare function FieldDescription({ children, className }: FieldDescriptionProps): Element_12xgc14;
1677
+ /** Which native validity state shows the message (`"valueMissing"`, `"typeMismatch"`, …). */
1678
+ type FieldErrorMatch = boolean | keyof ValidityState;
1679
+ interface FieldErrorProps {
1680
+ /** The message. While it has one, it shows; empty, it hides. */
1681
+ children?: ReactNode13;
1682
+ /** Overrides when it shows: `true` always, `false` never, or a native validity state such as `"valueMissing"`. Defaults to showing while it has a message. */
1683
+ match?: FieldErrorMatch;
1684
+ /** Classes for the message. */
1685
+ className?: string;
1686
+ }
1687
+ declare function FieldError({ children, match, className }: FieldErrorProps): Element_12xgc14;
1688
+ interface FieldControlProps {
1689
+ /** The element that becomes the control, e.g. a native `<select>` or a third-party input. */
1690
+ render?: ReactElement;
1691
+ /** Compose onto the single child instead. Defaults to `false`. */
1692
+ asChild?: boolean;
1693
+ /** The control, with `asChild`. */
1694
+ children?: ReactNode13;
1695
+ }
1696
+ declare function FieldControl({ render, asChild, children }: FieldControlProps): Element_12xgc14;
1697
+ type FieldComponent = ForwardRefExoticComponent6<FieldProps & RefAttributes6<HTMLDivElement>> & {
1698
+ Label: typeof FieldLabel;
1699
+ Description: typeof FieldDescription;
1700
+ Error: typeof FieldError;
1701
+ Control: typeof FieldControl;
1702
+ };
1703
+ /**
1704
+ * A labelled form field: a label above the control, help text and an error
1705
+ * message below it, all linked for assistive tech.
1706
+ *
1707
+ * Put an Input, Textarea, NumberInput, FileDropzone, Select or any other
1708
+ * field control inside and it joins on its own: the label targets it, the
1709
+ * description and error are read with it, and the field hands it its
1710
+ * `invalid`, `disabled`, `readOnly` and `required` state, so the box turns
1711
+ * destructive with the label. The label and messages sit inset to line up
1712
+ * with the text in the box. The field holds no validation of its own:
1713
+ * `invalid` and the error's message come from yours (a form library's field
1714
+ * state, a server response), and `Field.Error` shows while it has a message.
1715
+ * A native failure (`required`, `pattern`, `type="email"`) caught by Base UI's
1716
+ * validation turns it destructive too, and an empty `Field.Error` then shows
1717
+ * the browser's message.
1718
+ * Behavior comes from Base UI's Field.
1719
+ *
1720
+ * `size` pins the field and its control to one step of the size ladder;
1721
+ * without it they follow the surrounding SizeProvider, which is how to set a
1722
+ * form's density when a control's own props keep the native `<input size>`
1723
+ * attribute (a character width, not a height). `Field.Control` passes a
1724
+ * native `size` through to the element untouched.
1725
+ *
1726
+ * InputGroup.Field is the preset for a group of text fields: a label and an
1727
+ * error string, and the group's hover gliding from field to field. Reach for
1728
+ * Field when a field stands alone, needs a description, or holds a control
1729
+ * other than a text input.
1730
+ *
1731
+ * Statics:
1732
+ * - `Field.Label` — the label, weight-stable and muted; destructive while
1733
+ * the field is invalid, with an asterisk while it is required:
1734
+ * `visuallyHidden`.
1735
+ * - `Field.Description` — muted help text under the control.
1736
+ * - `Field.Error` — the destructive message; it fades in while it has
1737
+ * children: `match` (`true`, `false`, or a native validity state).
1738
+ * - `Field.Control` — wires a control that isn't a field control (a native
1739
+ * element, a third-party input) with the field's id, `aria-describedby`
1740
+ * and `aria-invalid`: `render={<select/>}` or `asChild`. Field controls
1741
+ * (Input, NumberInput, …) need no wrapper.
1742
+ *
1743
+ * @example {@include ./examples.mdx}
1744
+ */
1745
+ declare const Field2: FieldComponent;
1746
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent7, ReactNode as ReactNode15, RefAttributes as RefAttributes7 } from "react";
1747
+ import { ReactNode as ReactNode14 } from "react";
1748
+ import { JSX as JSX_1kxb15 } from "react";
1749
+ /** Where a file is in its upload: `idle` (picked), `uploading`, `done` or `error`. */
1750
+ type FileRowStatus = "idle" | "uploading" | "done" | "error";
1751
+ interface FileRowProps {
1752
+ /** The picked file: its name, size and type fill the row. */
1753
+ file?: File;
1754
+ /** File name, for a file you only know by its metadata (one already uploaded). Wins over `file`. */
1755
+ name?: string;
1756
+ /** File size in bytes. Wins over `file`. */
1757
+ fileSize?: number;
1758
+ /** MIME type; an image shows the image glyph. Wins over `file`. */
1759
+ type?: string;
1760
+ /** Image URL shown in place of the glyph, e.g. an object URL of the file or the server's preview. */
1761
+ thumbnail?: string;
1762
+ /** Glyph in place of the file or image one. */
1763
+ icon?: IconComponent;
1764
+ /** Where the file is in its upload; sets the status glyph and the progress bar. Defaults to `"idle"`. */
1765
+ status?: FileRowStatus;
1766
+ /** Upload progress from 0 to 100, shown as a bar while `status` is `"uploading"` (see Progress). Omitted, the bar sweeps. */
1767
+ progress?: number;
1768
+ /** Accessible name of the upload's bar. Defaults to `"Uploading"`. */
1769
+ uploadingLabel?: string;
1770
+ /** The line under the name in place of the size, e.g. "Uploaded 2 min ago". */
1771
+ description?: ReactNode14;
1772
+ /** An error message in place of the size line; the row reads as failed. */
1773
+ error?: ReactNode14;
1774
+ /** Shows a remove button and is called when it is pressed. */
1775
+ onRemove?: () => void;
1776
+ /** Accessible name of the remove button. Defaults to `"Remove file"`. */
1777
+ removeLabel?: string;
1778
+ /** More controls before the remove button, e.g. a download link or a menu. */
1779
+ actions?: ReactNode14;
1780
+ /** Locale for the size (`1,5 MB` in `"sk-SK"`). Defaults to the browser's. */
1781
+ locale?: Intl.LocalesArgument;
1782
+ /** Dims the row and its actions. Defaults to `false`. */
1783
+ disabled?: boolean;
1784
+ /** Pins the row to one step of the size ladder. Defaults to the surrounding SizeProvider. */
1785
+ size?: SizeVariant;
1786
+ /** Classes for the row. */
1787
+ className?: string;
1788
+ }
1789
+ type Element_12xgc15 = JSX_1kxb15["Element"];
1790
+ /** One file in a list: its glyph or thumbnail, name, size or status, and a remove button. */
1791
+ declare function FileRow({ file, name: nameProp, fileSize: fileSizeProp, type: typeProp, thumbnail, icon, status, progress, description, error, onRemove, removeLabel, uploadingLabel, actions, locale, disabled, size: sizeProp, className }: FileRowProps): Element_12xgc15;
1792
+ /** A byte count as a short localized size: `512 B`, `1.5 MB` (decimal units, as file managers show them). */
1793
+ declare function formatFileSize(bytes: number, locale?: Intl.LocalesArgument): string;
1794
+ /** Why a file was turned away: its `type` is not in `accept`, its `size` is over `maxSize`, or it is past the `count` of `maxFiles`. */
1795
+ type FileRejectionReason = "type" | "size" | "count";
1796
+ /** A file the dropzone turned away, and why. */
1797
+ interface FileRejection {
1798
+ file: File;
1799
+ reason: FileRejectionReason;
1800
+ }
1801
+ /** Whether a file passes an `accept` list (`.pdf,image/*`), as the native file input reads it. */
1802
+ declare function acceptsFile(file: {
1803
+ name: string;
1804
+ type: string;
1805
+ }, accept?: string): boolean;
1806
+ /** What a drag over the zone will come to: every file taken, some taken and some turned away, or none taken. */
1807
+ type DragVerdict = "accept" | "partial" | "reject";
1808
+ /**
1809
+ * Judges dragged files while they are still in the air. A drag shows MIME
1810
+ * types but no names, so a type the drag leaves empty, or an `accept` list
1811
+ * with extensions, counts as passing until the drop sorts the files. `limit`
1812
+ * is how many one drop may add.
1813
+ */
1814
+ declare function dragVerdict(types: string[], accept: string | undefined, limit: number): DragVerdict;
1815
+ interface SortOptions {
1816
+ accept?: string;
1817
+ maxSize?: number;
1818
+ maxFiles?: number;
1819
+ multiple?: boolean;
1820
+ }
1821
+ /** Splits picked or dropped files into the ones that pass `accept`, `maxSize` and the count, and the rest with a reason. */
1822
+ declare function sortFiles(files: File[], { accept, maxSize, maxFiles, multiple }: SortOptions): {
1823
+ accepted: File[];
1824
+ rejected: FileRejection[];
1825
+ };
1826
+ interface FileDropzoneProps {
1827
+ /** Called with the files that pass `accept`, `maxSize` and the count, after a pick or a drop. */
1828
+ onFilesChange?: (files: File[]) => void;
1829
+ /** Called with the files turned away and why (`type`, `size`, `count`), after a pick or a drop. */
1830
+ onFilesRejected?: (rejections: FileRejection[]) => void;
1831
+ /** File types the zone takes, as the file input reads them: `.pdf,image/*`. Defaults to any. */
1832
+ accept?: string;
1833
+ /** Takes several files at once. Defaults to `false`. */
1834
+ multiple?: boolean;
1835
+ /** Most files one pick or drop may add; the rest are rejected as `count`. Pass what is left when you keep a list. */
1836
+ maxFiles?: number;
1837
+ /** Largest file in bytes; bigger ones are rejected as `size`. */
1838
+ maxSize?: number;
1839
+ /** The main line. Defaults to `"Drop a file here or click to browse"` (`"files"` with `multiple`). */
1840
+ label?: ReactNode15;
1841
+ /** The line under it: the types and sizes the zone takes, e.g. "PDF or PNG, up to 10 MB". */
1842
+ description?: ReactNode15;
1843
+ /** The main line while files the zone takes are dragged over it. Defaults to `"Drop to add"`. */
1844
+ activeLabel?: ReactNode15;
1845
+ /** The main line while some of the dragged files will be taken and the rest turned away (a wrong type, past `maxFiles`). Defaults to `"Some files will be skipped"`. */
1846
+ partialLabel?: ReactNode15;
1847
+ /** The main line while none of the dragged files can be taken; the drop is refused. Defaults to `"These files can't be added"`. */
1848
+ rejectLabel?: ReactNode15;
1849
+ /** Glyph above the labels. Defaults to the `upload` icon. */
1850
+ icon?: IconComponent;
1851
+ /** Content in place of the glyph and labels. */
1852
+ children?: ReactNode15;
1853
+ /** Id of the file input, for a `Label`'s `htmlFor`. Inside a Field it is wired for you. */
1854
+ id?: string;
1855
+ /** Tells assistive tech a file is required (`aria-required`). The zone keeps no files, so native validation never blocks a submit: check your own list. Defaults to the surrounding Field's `required`. */
1856
+ required?: boolean;
1857
+ /** Turns the zone destructive. Defaults to the surrounding Field's `invalid`. */
1858
+ invalid?: boolean;
1859
+ /** Dims the zone and turns files away. Defaults to the surrounding Field's `disabled`. */
1860
+ disabled?: boolean;
1861
+ /** Shows the zone without taking files: no browse, no drop, no hover. Defaults to the surrounding Field's `readOnly`. */
1862
+ readOnly?: boolean;
1863
+ /** Pins the zone to one step of the size ladder: compact tightens the padding and steps the text down. Defaults to the surrounding SizeProvider. */
1864
+ size?: SizeVariant;
1865
+ /** Classes for the zone. */
1866
+ className?: string;
1867
+ }
1868
+ type FileDropzoneComponent = ForwardRefExoticComponent7<FileDropzoneProps & RefAttributes7<HTMLInputElement>> & {
1869
+ Row: typeof FileRow;
1870
+ };
1871
+ /**
1872
+ * A zone to drop files on, or click to pick them.
1873
+ *
1874
+ * Drag files over it and it lights up; the line changes to say whether it
1875
+ * will take them, reading their types while they are still in the air: all
1876
+ * of them, some (the rest will be skipped), or none, when it turns
1877
+ * destructive and refuses the drop. Dropped or picked files are sorted
1878
+ * against `accept`, `maxSize` and `maxFiles`: the ones that pass go to
1879
+ * `onFilesChange`, the rest to `onFilesRejected` with a reason. The zone
1880
+ * keeps none (its input is cleared after every pick, so nothing submits with
1881
+ * a native form and `required` is only announced), so the list, the upload
1882
+ * and its errors stay yours. Show each
1883
+ * file in a `FileDropzone.Row`. Every line is a prop, for translation. The
1884
+ * zone is a label around a hidden file input, so a click or Enter opens the
1885
+ * picker, and inside a Field it is labelled and takes the field's state. The
1886
+ * ref reaches the input: `ref.current.click()` reopens the picker, e.g. to
1887
+ * replace a file.
1888
+ *
1889
+ * Statics:
1890
+ * - `FileDropzone.Row` (also `FileRow`) — one file: its glyph or
1891
+ * `thumbnail`, name, size, and a remove button with `onRemove`: `file` (or
1892
+ * `name` / `fileSize` / `type`), `status` (`idle`, `uploading`, `done`,
1893
+ * `error`), `progress` (0–100), `error`, `description`, `actions`,
1894
+ * `removeLabel`, `locale`.
1895
+ *
1896
+ * Also exported from this item: `formatFileSize(bytes, locale)`, `sortFiles`
1897
+ * and `acceptsFile`, plain functions a server can call too.
1898
+ *
1899
+ * @example {@include ./examples.mdx}
1900
+ */
1901
+ declare const FileDropzone: FileDropzoneComponent;
1902
+ import { ButtonHTMLAttributes as ButtonHTMLAttributes2, ForwardRefExoticComponent as ForwardRefExoticComponent8, HTMLAttributes as HTMLAttributes11, InputHTMLAttributes as InputHTMLAttributes3, ReactNode as ReactNode17, RefAttributes as RefAttributes8 } from "react";
1903
+ import { LabelHTMLAttributes, ReactNode as ReactNode16 } from "react";
1904
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn8 } from "react";
1905
+ import { RefAttributes as RefAttributes_miuf568 } from "react";
1906
+ interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
1907
+ /** Label text. */
1908
+ children: ReactNode16;
1909
+ /** The id of the control it names; a click on the label focuses or toggles that control. */
1910
+ htmlFor?: string;
1911
+ /** Turns the label destructive, matching an invalid Input. Defaults to `false`. */
1912
+ invalid?: boolean;
1913
+ /** Pins the label to one step of the size ladder (body text at default, compact body at compact). Defaults to the surrounding SizeProvider. */
1914
+ size?: SizeVariant;
1915
+ /** Classes for the `<label>`. */
1916
+ className?: string;
1917
+ }
1918
+ /**
1919
+ * The label above or beside a field control.
1920
+ *
1921
+ * Muted body text inset to line up with the text inside a field box, so a
1922
+ * label over an Input starts where its value does. It reserves the width of
1923
+ * its semibold weight, so nothing moves if a wrapper restyles it. Pair it
1924
+ * with a control through `htmlFor` and the control's `id`; inside a Field,
1925
+ * `Field.Label` renders it for you and links it. `invalid` turns it
1926
+ * destructive with the field; a disabled Field dims it. It follows the size
1927
+ * ladder (see Sizes): `size` pins it, otherwise it reads the surrounding
1928
+ * SizeProvider. Also exported from `inputs/input`.
1929
+ *
1930
+ * @example {@include ./examples.mdx}
1931
+ */
1932
+ declare const Label2: ForwardRefExoticComponent_tcubfn8<LabelProps & RefAttributes_miuf568<HTMLLabelElement>>;
1933
+ import { JSX as JSX_1kxb16 } from "react";
1404
1934
  interface InputProps extends Omit<InputHTMLAttributes3<HTMLInputElement>, "onChange" | "value" | "defaultValue" | "size"> {
1405
1935
  /** Placeholder text. */
1406
1936
  placeholder?: string;
1407
1937
  /** Leading icon inside the input. */
1408
1938
  icon?: IconComponent;
1939
+ /** Content before the text, after `icon`: a prefix (`"https://"`), an icon element, an `InputAction`. Strings read as muted text; icons take the ladder's glyph size. */
1940
+ startAdornment?: ReactNode17;
1941
+ /** Content after the text: a unit (`"kg"`), a status icon, an `InputAction` such as a password reveal or a clear. */
1942
+ endAdornment?: ReactNode17;
1409
1943
  /** Controlled input value. */
1410
1944
  value?: string;
1411
1945
  /** Initial value when uncontrolled. Defaults to `''`. */
@@ -1418,6 +1952,12 @@ interface InputProps extends Omit<InputHTMLAttributes3<HTMLInputElement>, "onCha
1418
1952
  invalid?: boolean;
1419
1953
  /** Disables the input. Defaults to `false`. */
1420
1954
  disabled?: boolean;
1955
+ /** Shows the value without letting it change: it can be selected and copied, the ring answers hover and focus, the fill never lifts. Defaults to `false`. */
1956
+ readOnly?: boolean;
1957
+ /** Marks the input required. Defaults to the surrounding Field's `required`. */
1958
+ required?: boolean;
1959
+ /** The input's type. Swapping it (a password reveal) keeps the caret and the selection where they were. Defaults to `"text"`. */
1960
+ type?: string;
1421
1961
  /** Pins the input to one step of the size ladder (default 36px, compact 28px). Defaults to the surrounding SizeProvider. */
1422
1962
  size?: SizeVariant;
1423
1963
  /** Classes for the ringed box around the input. */
@@ -1430,11 +1970,34 @@ interface InputProps extends Omit<InputHTMLAttributes3<HTMLInputElement>, "onCha
1430
1970
  * ground with a hairline ring, focus onto the card ground, and its leading
1431
1971
  * icon thickens. `invalid` turns it destructive. It is uncontrolled with
1432
1972
  * `defaultValue`, or controlled with `value` + `onChange`, and fills the width
1433
- * of its container. Pair it with a `Label` through `htmlFor` / `id`.
1973
+ * of its container. Pair it with a `Label` through `htmlFor` / `id`, or put
1974
+ * it in a Field, which labels it and hands it its error, disabled,
1975
+ * read-only and required state.
1976
+ *
1977
+ * `startAdornment` and `endAdornment` hold what sits beside the text: a
1978
+ * prefix or a unit, an icon, or an `InputAction` (a password reveal, a
1979
+ * clear). They light with the field like its leading icon, and icons in
1980
+ * them take the ladder's glyph size. Swapping `type` keeps the caret and the
1981
+ * selection where they were, so a password reveal is just an `InputAction`
1982
+ * that flips `type` between `"password"` and `"text"`. `readOnly` keeps the
1983
+ * value selectable while the fill stays down.
1984
+ *
1985
+ * Its height is a step of the size ladder (see Sizes). `size` is that step
1986
+ * (`"default"` 36px, `"compact"` 28px), not the native `<input size>`
1987
+ * character width, which the Input doesn't take: its width comes from its
1988
+ * container. With no `size`, the surrounding SizeProvider sets the height,
1989
+ * so a host whose props keep the native `size` attribute strips it before
1990
+ * spreading them onto the Input and sets density with a SizeProvider (or a
1991
+ * Field's `size`) around the form instead.
1434
1992
  *
1435
1993
  * Also exported from this item:
1994
+ * - `InputAction` — a small icon button inside the field, 4px inside its
1995
+ * ring: `label` (its accessible name), `icon`, `size`, plus button props.
1996
+ * A press keeps the caret in the field.
1997
+ * - `InputAdornment` — the wrapper the adornments render in, for a field of
1998
+ * your own built on the field box: `size`.
1436
1999
  * - `Label` — the field label, weight-stable and inset to line up with the
1437
- * input's text: `htmlFor`, `invalid`, `size`.
2000
+ * input's text: `htmlFor`, `invalid`, `size` (see Label, its own page).
1438
2001
  * - `InputGroup` — stacks labelled fields and tracks the pointer across them,
1439
2002
  * so the hover glides from field to field: `size` pins every field to one
1440
2003
  * step of the ladder.
@@ -1447,23 +2010,41 @@ interface InputProps extends Omit<InputHTMLAttributes3<HTMLInputElement>, "onCha
1447
2010
  *
1448
2011
  * @example {@include ./examples.mdx}
1449
2012
  */
1450
- declare const Input2: ForwardRefExoticComponent5<InputProps & RefAttributes5<HTMLInputElement>>;
1451
- interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
1452
- /** Label text. */
1453
- children: ReactNode10;
1454
- /** Turns the label destructive, matching an invalid Input. Defaults to `false`. */
1455
- invalid?: boolean;
1456
- /** Pins the label to one step of the size ladder. Defaults to the surrounding SizeProvider. */
2013
+ declare const Input2: ForwardRefExoticComponent8<InputProps & RefAttributes8<HTMLInputElement>>;
2014
+ interface InputAdornmentProps {
2015
+ /** What sits beside the text. Nothing renders when it is empty. */
2016
+ children?: ReactNode17;
2017
+ /** Pins the adornment, and an `InputAction` inside it, to one step of the size ladder. Defaults to the surrounding SizeProvider. */
2018
+ size?: SizeVariant;
2019
+ /** Classes for the wrapper. */
2020
+ className?: string;
2021
+ }
2022
+ type Element_12xgc16 = JSX_1kxb16["Element"];
2023
+ /** Content beside a field's text, lit with the field: what `startAdornment` / `endAdornment` render in, for a field of your own on `useFieldBox`. */
2024
+ declare function InputAdornment({ children, size, className }: InputAdornmentProps): Element_12xgc16 | null;
2025
+ interface InputActionProps extends Omit<ButtonHTMLAttributes2<HTMLButtonElement>, "children"> {
2026
+ /** Names the action for assistive tech (its `aria-label`), e.g. "Show password". */
2027
+ label: string;
2028
+ /** The glyph. Pass an icon component, or an icon element as `children`. */
2029
+ icon?: IconComponent;
2030
+ /** An icon element, in place of `icon`. */
2031
+ children?: ReactNode17;
2032
+ /** Disables the action. Defaults to `false`. */
2033
+ disabled?: boolean;
2034
+ /** Pins the action to one step of the size ladder (28px in a default field, 20px in a compact one). Defaults to the surrounding SizeProvider. */
1457
2035
  size?: SizeVariant;
2036
+ /** Classes for the button. */
2037
+ className?: string;
1458
2038
  }
1459
- declare const Label2: ForwardRefExoticComponent5<LabelProps & RefAttributes5<HTMLLabelElement>>;
1460
- interface InputGroupProps extends HTMLAttributes10<HTMLDivElement> {
2039
+ /** A small icon button inside a field box: a password reveal, a clear, a copy. */
2040
+ declare const InputAction: ForwardRefExoticComponent8<InputActionProps & RefAttributes8<HTMLButtonElement>>;
2041
+ interface InputGroupProps extends HTMLAttributes11<HTMLDivElement> {
1461
2042
  /** One or more InputGroup.Field children. */
1462
- children: ReactNode10;
2043
+ children: ReactNode17;
1463
2044
  /** Pins the group's fields to one step of the size ladder (default 36px, compact 28px). Defaults to the surrounding SizeProvider. */
1464
2045
  size?: SizeVariant;
1465
2046
  }
1466
- type InputGroupComponent = ForwardRefExoticComponent5<InputGroupProps & RefAttributes5<HTMLDivElement>> & {
2047
+ type InputGroupComponent = ForwardRefExoticComponent8<InputGroupProps & RefAttributes8<HTMLDivElement>> & {
1467
2048
  Field: typeof InputField;
1468
2049
  };
1469
2050
  declare const InputGroup: InputGroupComponent;
@@ -1477,14 +2058,94 @@ interface InputFieldProps extends Omit<InputProps, "invalid" | "size" | "classNa
1477
2058
  /** Error message shown below the input. */
1478
2059
  error?: string;
1479
2060
  /** A control in place of the built-in Input, e.g. a Textarea: it joins the group's hover and takes the field's error and disabled state. Input's props then go on it, not on the field. */
1480
- children?: ReactNode10;
2061
+ children?: ReactNode17;
2062
+ className?: string;
2063
+ }
2064
+ declare const InputField: ForwardRefExoticComponent8<InputFieldProps & RefAttributes8<HTMLDivElement>>;
2065
+ import { ReactNode as ReactNode18 } from "react";
2066
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn9 } from "react";
2067
+ import { RefAttributes as RefAttributes_miuf569 } from "react";
2068
+ interface NumberInputProps {
2069
+ /** Controlled value; `null` while the field is empty. Pair with `onValueChange`. */
2070
+ value?: number | null;
2071
+ /** Initial value when uncontrolled. Empty when unset. */
2072
+ defaultValue?: number;
2073
+ /** Called with the new value as it changes (typing, steppers, arrow keys, scrubbing); `null` when cleared. */
2074
+ onValueChange?: (value: number | null) => void;
2075
+ /** Called once a change is done: on blur after typing, on release after a stepper press or a scrub. */
2076
+ onValueCommitted?: (value: number | null) => void;
2077
+ /** Lowest value the steppers, arrow keys and blur clamp to. */
2078
+ min?: number;
2079
+ /** Highest value the steppers, arrow keys and blur clamp to. */
2080
+ max?: number;
2081
+ /** Amount a stepper press or an arrow key adds. Defaults to `1`. */
2082
+ step?: number;
2083
+ /** Amount with Alt held. Defaults to `0.1`. */
2084
+ smallStep?: number;
2085
+ /** Amount with Shift held. Defaults to `10`. */
2086
+ largeStep?: number;
2087
+ /** How the value is shown and read back: `Intl.NumberFormat` options, e.g. `{ style: 'currency', currency: 'EUR' }` or `{ style: 'percent' }`. */
2088
+ format?: Intl.NumberFormatOptions;
2089
+ /** Locale for formatting and parsing (`"sk-SK"` writes `1 234,5`). Defaults to the browser's. */
2090
+ locale?: Intl.LocalesArgument;
2091
+ /** Placeholder text while empty. */
2092
+ placeholder?: string;
2093
+ /** Shows the minus and plus buttons. Defaults to `true`. */
2094
+ stepper?: boolean;
2095
+ /** Turns `startAdornment` into a scrub handle: drag it sideways to change the value. Defaults to `false`. */
2096
+ scrub?: boolean;
2097
+ /** Lets the mouse wheel change the value while the field is focused and hovered. Defaults to `false`. */
2098
+ wheel?: boolean;
2099
+ /** Content before the number: a label such as `"W"` (a scrub handle with `scrub`), a currency sign, an icon. */
2100
+ startAdornment?: ReactNode18;
2101
+ /** Content after the number, before the steppers: a unit such as `"kg"`. */
2102
+ endAdornment?: ReactNode18;
2103
+ /** Accessible name of the minus button. Defaults to `"Decrease"`. */
2104
+ decrementLabel?: string;
2105
+ /** Accessible name of the plus button. Defaults to `"Increase"`. */
2106
+ incrementLabel?: string;
2107
+ /** Names the value when the form is submitted. */
2108
+ name?: string;
2109
+ /** Id of the input, for a `Label`'s `htmlFor`. Inside a Field it is wired for you. */
2110
+ id?: string;
2111
+ /** Marks the value required. Defaults to the surrounding Field's `required`. */
2112
+ required?: boolean;
2113
+ /** Framed at rest, or invisible until hovered or focused. Defaults to `"borderless"`. */
2114
+ variant?: FieldVariant;
2115
+ /** Marks the value invalid: the field turns destructive and sets `aria-invalid`. Defaults to `false`. */
2116
+ invalid?: boolean;
2117
+ /** Disables the field and its steppers. Defaults to `false`. */
2118
+ disabled?: boolean;
2119
+ /** Shows the value without letting it change; the steppers hide. Defaults to `false`. */
2120
+ readOnly?: boolean;
2121
+ /** Pins the field to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
2122
+ size?: SizeVariant;
2123
+ /** Classes for the ringed box. */
1481
2124
  className?: string;
1482
2125
  }
1483
- declare const InputField: ForwardRefExoticComponent5<InputFieldProps & RefAttributes5<HTMLDivElement>>;
1484
- import { ForwardRefExoticComponent as ForwardRefExoticComponent6, HTMLAttributes as HTMLAttributes11, ReactNode as ReactNode11, RefAttributes as RefAttributes6 } from "react";
1485
- interface RadioGroupProps extends Omit<HTMLAttributes11<HTMLDivElement>, "onSelect" | "defaultValue"> {
1486
- /** `Radio` rows. */
1487
- children: ReactNode11;
2126
+ /**
2127
+ * Number field with steppers, formatting and an optional scrub handle.
2128
+ *
2129
+ * It sits on the same ground as Input: bare at rest (or framed with
2130
+ * `variant="bordered"`), a muted wash on hover, the card on focus, a
2131
+ * destructive ring when `invalid`. Minus and plus sit inside the ring at the
2132
+ * end; holding one repeats, the arrow keys step (Shift for `largeStep`, Alt
2133
+ * for `smallStep`), and both stop at `min` / `max`. `format` takes
2134
+ * `Intl.NumberFormat` options and `locale` the locale, so a value reads
2135
+ * `€1,234.50` or `1 234,5 %` and typing in that form parses back. With
2136
+ * `scrub`, the start adornment becomes a handle: drag it sideways to change
2137
+ * the value, as in a design tool. The value is a number, or `null` while
2138
+ * empty: uncontrolled with `defaultValue`, controlled with `value` +
2139
+ * `onValueChange`. Behavior comes from Base UI's NumberField; inside a Field
2140
+ * it is labelled and takes the field's state.
2141
+ *
2142
+ * @example {@include ./examples.mdx}
2143
+ */
2144
+ declare const NumberInput: ForwardRefExoticComponent_tcubfn9<NumberInputProps & RefAttributes_miuf569<HTMLInputElement>>;
2145
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent9, HTMLAttributes as HTMLAttributes12, ReactNode as ReactNode19, RefAttributes as RefAttributes9 } from "react";
2146
+ interface RadioGroupProps extends Omit<HTMLAttributes12<HTMLDivElement>, "onSelect" | "defaultValue"> {
2147
+ /** `Radio` rows, or bare radios (no `label`) in a layout of your own (see Bare). */
2148
+ children: ReactNode19;
1488
2149
  /** Index of the currently selected item. Controlled — pair it with `onSelectedIndexChange` (or per-item `onSelect`). */
1489
2150
  selectedIndex?: number;
1490
2151
  /** Selected index on first render when uncontrolled. Defaults to no selection. */
@@ -1497,24 +2158,32 @@ interface RadioGroupProps extends Omit<HTMLAttributes11<HTMLDivElement>, "onSele
1497
2158
  defaultValue?: string;
1498
2159
  /** Called with the selected item's `value` when it changes (value mode). */
1499
2160
  onValueChange?: (value: string) => void;
2161
+ /** Disables every radio in the group. Defaults to `false`. */
2162
+ disabled?: boolean;
2163
+ /** Form field name for the selected `value` (value mode): a hidden input carries it. */
2164
+ name?: string;
2165
+ /** Marks the group required in a form (value mode). Defaults to `false`. */
2166
+ required?: boolean;
1500
2167
  /** Pins the group's rows to one step of the size ladder (default 36px, compact 28px). Defaults to the surrounding SizeProvider. */
1501
2168
  size?: SizeVariant;
1502
2169
  }
1503
- declare const RadioGroup: ForwardRefExoticComponent6<RadioGroupProps & RefAttributes6<HTMLDivElement>>;
1504
- interface RadioProps extends HTMLAttributes11<HTMLDivElement> {
1505
- /** Text label for the radio item. */
1506
- label: string;
2170
+ declare const RadioGroup2: ForwardRefExoticComponent9<RadioGroupProps & RefAttributes9<HTMLDivElement>>;
2171
+ interface RadioProps extends HTMLAttributes12<HTMLDivElement> {
2172
+ /** Label beside the circle, any node. Omit it for a bare circle in a layout of your own (see Bare): it then needs a `value`, and a name from `aria-label`, `aria-labelledby` or a `<label htmlFor>` pointing at its `id`. */
2173
+ label?: ReactNode19;
1507
2174
  /** Position within the `Radio.Group`: the row's `selectedIndex`. Defaults to its order among the group's rows. */
1508
2175
  index?: number;
1509
2176
  /** Whether this item is selected. Defaults to the group's selection. */
1510
2177
  selected?: boolean;
1511
2178
  /** Called when this item is selected (the group's change callbacks fire too). */
1512
2179
  onSelect?: () => void;
1513
- /** Optional value forwarded to the underlying Base UI primitive for form integration. */
2180
+ /** The item's value in a value-mode group, forwarded to the underlying Base UI radio for forms. A bare radio needs one. */
1514
2181
  value?: string;
2182
+ /** Dims the radio and ignores presses; the hover and the arrow keys skip it. Defaults to the group's `disabled`. */
2183
+ disabled?: boolean;
1515
2184
  }
1516
- type RadioComponent = ForwardRefExoticComponent6<RadioProps & RefAttributes6<HTMLDivElement>> & {
1517
- Group: typeof RadioGroup;
2185
+ type RadioComponent = ForwardRefExoticComponent9<RadioProps & RefAttributes9<HTMLDivElement>> & {
2186
+ Group: typeof RadioGroup2;
1518
2187
  };
1519
2188
  /**
1520
2189
  * Radio buttons with fluid hover and animated selection.
@@ -1527,30 +2196,37 @@ type RadioComponent = ForwardRefExoticComponent6<RadioProps & RefAttributes6<HTM
1527
2196
  * its rows in order, so they need no `index`. FF's per-row `selected` /
1528
2197
  * `onSelect` still work and override the group for their row.
1529
2198
  *
2199
+ * Without a `label` a radio is just the circle: Base UI's radio, picked by
2200
+ * its `value`, named by a `<label htmlFor>` pointing at its `id` or by
2201
+ * `aria-label`. Lay bare radios out however you like inside the group (a
2202
+ * row with a description, a grid of cards); the group then draws no rows of
2203
+ * its own and Base UI moves focus and selection with the arrow keys.
2204
+ *
1530
2205
  * Statics:
1531
2206
  * - `Radio.Group` — the list. Select by index — uncontrolled with
1532
2207
  * `defaultSelectedIndex`, controlled with `selectedIndex` +
1533
2208
  * `onSelectedIndexChange` — or by row `value` (`defaultValue` / `value` +
1534
2209
  * `onValueChange`), which also renders Base UI radios for form
1535
- * integration; `size` pins every row to one step of the size ladder.
2210
+ * integration (`name`, `required`); `disabled` turns every radio off;
2211
+ * `size` pins every row to one step of the size ladder.
1536
2212
  *
1537
2213
  * @example {@include ./examples.mdx}
1538
2214
  */
1539
2215
  declare const Radio: RadioComponent;
1540
2216
  import { Autocomplete } from "@base-ui/react/autocomplete";
1541
- import { HTMLAttributes as HTMLAttributes12, ReactNode as ReactNode13, RefObject as RefObject10 } from "react";
1542
- import { ButtonHTMLAttributes as ButtonHTMLAttributes2, ReactElement as ReactElement2, ReactNode as ReactNode12 } from "react";
1543
- interface SlotProps extends ButtonHTMLAttributes2<HTMLButtonElement> {
2217
+ import { HTMLAttributes as HTMLAttributes13, ReactNode as ReactNode21, RefObject as RefObject10 } from "react";
2218
+ import { ButtonHTMLAttributes as ButtonHTMLAttributes3, ReactElement as ReactElement2, ReactNode as ReactNode20 } from "react";
2219
+ interface SlotProps extends ButtonHTMLAttributes3<HTMLButtonElement> {
1544
2220
  /** The element that becomes the control, e.g. a Button. */
1545
2221
  render?: ReactElement2;
1546
2222
  /** Compose onto the single child instead. Both spellings work in both flavors. Defaults to `false`. */
1547
2223
  asChild?: boolean;
1548
2224
  /** Control content when there is no render element. */
1549
- children?: ReactNode12;
2225
+ children?: ReactNode20;
1550
2226
  }
1551
- import { JSX as JSX_1kxb13 } from "react";
1552
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn7 } from "react";
1553
- import { RefAttributes as RefAttributes_miuf567 } from "react";
2227
+ import { JSX as JSX_1kxb17 } from "react";
2228
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn10 } from "react";
2229
+ import { RefAttributes as RefAttributes_miuf5610 } from "react";
1554
2230
  /** One command: the label the query matches, plus what the row shows and does. */
1555
2231
  interface CommandItem {
1556
2232
  label: string;
@@ -1570,29 +2246,29 @@ type CommandItems = CommandItem[] | CommandGroup[];
1570
2246
  type CommandListRootProps = Omit<Autocomplete.Root.Props<CommandItem>, "items" | "filter" | "itemToStringValue" | "onItemHighlighted"> & {
1571
2247
  items: CommandItems;
1572
2248
  };
1573
- type Element_12xgc13 = JSX_1kxb13["Element"];
2249
+ type Element_12xgc17 = JSX_1kxb17["Element"];
1574
2250
  /** Base UI's Autocomplete set up for command rows: it matches labels and keywords and hands its highlight to `CommandList`. */
1575
- declare function CommandListRoot({ items,...props }: CommandListRootProps): Element_12xgc13;
1576
- declare function CommandShortcut({ className,...props }: HTMLAttributes12<HTMLElement>): Element_12xgc13;
2251
+ declare function CommandListRoot({ items,...props }: CommandListRootProps): Element_12xgc17;
2252
+ declare function CommandShortcut({ className,...props }: HTMLAttributes13<HTMLElement>): Element_12xgc17;
1577
2253
  interface CommandListProps {
1578
2254
  onPick: (item: CommandItem) => void;
1579
- emptyMessage: ReactNode13;
2255
+ emptyMessage: ReactNode21;
1580
2256
  className?: string;
1581
2257
  }
1582
2258
  /** The filtered rows (grouped or flat) under one fluid highlight, inside a ScrollArea. Goes inside `CommandListRoot`. */
1583
- declare function CommandList({ onPick, emptyMessage, className }: CommandListProps): Element_12xgc13;
2259
+ declare function CommandList({ onPick, emptyMessage, className }: CommandListProps): Element_12xgc17;
1584
2260
  interface CommandPaletteProps {
1585
2261
  /** The commands, flat or in labelled groups. */
1586
2262
  items: CommandItems;
1587
2263
  /** The search field's placeholder. Defaults to `'Type a command or search…'`. */
1588
2264
  placeholder?: string;
1589
2265
  /** Shown when nothing matches the query. Defaults to `'No results found.'`. */
1590
- emptyMessage?: ReactNode13;
2266
+ emptyMessage?: ReactNode21;
1591
2267
  /** Classes for the palette's box. */
1592
2268
  className?: string;
1593
2269
  }
1594
- declare function CommandPalette({ items, placeholder, emptyMessage, className }: CommandPaletteProps): Element_12xgc13;
1595
- declare const CommandTrigger: ForwardRefExoticComponent_tcubfn7<SlotProps & RefAttributes_miuf567<HTMLButtonElement>>;
2270
+ declare function CommandPalette({ items, placeholder, emptyMessage, className }: CommandPaletteProps): Element_12xgc17;
2271
+ declare const CommandTrigger: ForwardRefExoticComponent_tcubfn10<SlotProps & RefAttributes_miuf5610<HTMLButtonElement>>;
1596
2272
  interface CommandContentProps extends CommandPaletteProps {
1597
2273
  /** Accessible name of the panel. Defaults to `'Command menu'`. */
1598
2274
  label?: string;
@@ -1605,7 +2281,7 @@ interface CommandContentProps extends CommandPaletteProps {
1605
2281
  /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'slow'`. */
1606
2282
  tier?: "moderate" | "slow";
1607
2283
  }
1608
- declare const CommandContent: ForwardRefExoticComponent_tcubfn7<CommandContentProps & RefAttributes_miuf567<HTMLDivElement>>;
2284
+ declare const CommandContent: ForwardRefExoticComponent_tcubfn10<CommandContentProps & RefAttributes_miuf5610<HTMLDivElement>>;
1609
2285
  interface CommandProps {
1610
2286
  /** Controlled open state. */
1611
2287
  open?: boolean;
@@ -1616,7 +2292,7 @@ interface CommandProps {
1616
2292
  /** The key that toggles the palette with ⌘ (Ctrl elsewhere); `false` leaves the keyboard alone. Defaults to `'k'`. */
1617
2293
  hotkey?: string | false;
1618
2294
  /** The trigger and the panel: `Command.Trigger` plus a `Command.Content`. */
1619
- children?: ReactNode13;
2295
+ children?: ReactNode21;
1620
2296
  }
1621
2297
  /**
1622
2298
  * A ⌘K command menu: a search field over grouped commands, grown out of
@@ -1649,8 +2325,8 @@ interface CommandProps {
1649
2325
  *
1650
2326
  * @example {@include ./examples.mdx}
1651
2327
  */
1652
- declare function Command({ open, defaultOpen, onOpenChange, hotkey, children }: CommandProps): Element_12xgc13;
1653
- import { JSX as JSX_1kxb14 } from "react";
2328
+ declare function Command({ open, defaultOpen, onOpenChange, hotkey, children }: CommandProps): Element_12xgc17;
2329
+ import { JSX as JSX_1kxb18 } from "react";
1654
2330
  interface SearchProps {
1655
2331
  /** How it rests: a pill showing the placeholder (and the shortcut), or a lone search icon. Defaults to `'pill'`. */
1656
2332
  variant?: "pill" | "icon";
@@ -1687,7 +2363,7 @@ interface SearchProps {
1687
2363
  /** Classes for the root, the box the resting button keeps in the layout. */
1688
2364
  className?: string;
1689
2365
  }
1690
- type Element_12xgc14 = JSX_1kxb14["Element"];
2366
+ type Element_12xgc18 = JSX_1kxb18["Element"];
1691
2367
  /**
1692
2368
  * A search button that grows into the field in place, with suggestions that
1693
2369
  * ooze out below it.
@@ -1713,16 +2389,19 @@ type Element_12xgc14 = JSX_1kxb14["Element"];
1713
2389
  *
1714
2390
  * @example {@include ./examples.mdx}
1715
2391
  */
1716
- declare function Search2({ variant, placeholder, items, value, defaultValue, onValueChange, onSubmit, expanded, defaultExpanded, onExpandedChange, width, align, shortcut, emptyMessage, effect, tier, className }: SearchProps): Element_12xgc14;
1717
- import { VariantProps as VariantProps3 } from "class-variance-authority";
1718
- import { HTMLAttributes as HTMLAttributes13, ReactNode as ReactNode14 } from "react";
1719
- import { JSX as JSX_1kxb15 } from "react";
1720
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn8 } from "react";
1721
- import { RefAttributes as RefAttributes_miuf568 } from "react";
2392
+ declare function Search2({ variant, placeholder, items, value, defaultValue, onValueChange, onSubmit, expanded, defaultExpanded, onExpandedChange, width, align, shortcut, emptyMessage, effect, tier, className }: SearchProps): Element_12xgc18;
2393
+ import { VariantProps as VariantProps4 } from "class-variance-authority";
2394
+ import { HTMLAttributes as HTMLAttributes14, ReactNode as ReactNode22 } from "react";
1722
2395
  import { ClassProp as ClassProp_wz9o0r4 } from "class-variance-authority/types";
2396
+ declare const triggerVariants: (props?: ({
2397
+ variant?: "borderless" | "bordered" | null | undefined;
2398
+ } & ClassProp_wz9o0r4) | undefined) => string;
2399
+ import { JSX as JSX_1kxb19 } from "react";
2400
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn11 } from "react";
2401
+ import { RefAttributes as RefAttributes_miuf5611 } from "react";
1723
2402
  interface SelectProps {
1724
2403
  /** `Select.Trigger` and `Select.Content`. */
1725
- children: ReactNode14;
2404
+ children: ReactNode22;
1726
2405
  /** Controlled selected value. Pair with `onValueChange`. */
1727
2406
  value?: string;
1728
2407
  /** Uncontrolled default value — the select then keeps the selection itself. */
@@ -1738,7 +2417,7 @@ interface SelectProps {
1738
2417
  /** Pins trigger and popup to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, both follow the surrounding SizeProvider. */
1739
2418
  size?: SizeVariant;
1740
2419
  }
1741
- type Element_12xgc15 = JSX_1kxb15["Element"];
2420
+ type Element_12xgc19 = JSX_1kxb19["Element"];
1742
2421
  /**
1743
2422
  * An animated select menu: fluid hover on the rows, a popup that oozes out of
1744
2423
  * its trigger, and a checkmark that draws itself as the selection lands.
@@ -1753,18 +2432,37 @@ type Element_12xgc15 = JSX_1kxb15["Element"];
1753
2432
  * seen; Escape and outside presses close at once. Uncontrolled through
1754
2433
  * `defaultValue`, controlled through `value` + `onValueChange`.
1755
2434
  *
1756
- * Statics: Select.Trigger (variant, icon, placeholder, error),
1757
- * Select.Content (the popup: the morph options from, effect, hideSource,
1758
- * tier), Select.Item (index, value, icon, disabled), Select.Group,
1759
- * Select.Label and Select.Separator.
2435
+ * Rows need no `index`: they take their place in document order, inside a
2436
+ * `Select.Group` or out of a `map`. The trigger shows the picked row's
2437
+ * label, whatever node it is (an icon and text, a badge), and a row's
2438
+ * `textValue` is what typeahead matches when its children aren't plain text.
2439
+ *
2440
+ * Statics:
2441
+ * - `Select.Trigger` — the field: `variant`, `icon`, `placeholder`, `error`;
2442
+ * children replace its value slot (a `Select.Value`).
2443
+ * - `Select.Value` — the value slot: the picked row's label, else the muted
2444
+ * `placeholder`.
2445
+ * - `Select.Content` — the popup: `side`, `align`, `sideOffset` and the morph
2446
+ * options `from`, `effect`, `hideSource`, `tier`.
2447
+ * - `Select.Item` — one row: `value`, optional `index`, `textValue`, `icon`,
2448
+ * `disabled`; its children are the label.
2449
+ * - `Select.Group`, `Select.Label`, `Select.Separator` — sections, their
2450
+ * captions and hairlines between them.
1760
2451
  *
1761
2452
  * @example {@include ./examples.mdx}
1762
2453
  */
1763
- declare function Select({ children, value, defaultValue, onValueChange, disabled, name, required, size }: SelectProps): Element_12xgc15;
1764
- declare const triggerVariants: (props?: ({
1765
- variant?: "borderless" | "bordered" | null | undefined;
1766
- } & ClassProp_wz9o0r4) | undefined) => string;
1767
- interface SelectTriggerProps extends Omit<HTMLAttributes13<HTMLButtonElement>, "children">, VariantProps3<typeof triggerVariants> {
2454
+ declare function Select({ children, value, defaultValue, onValueChange, disabled, name, required, size }: SelectProps): Element_12xgc19;
2455
+ interface SelectValueProps {
2456
+ /** Shown, muted, while nothing is selected. Defaults to `"Select…"`. */
2457
+ placeholder?: ReactNode22;
2458
+ /** Extra classes for the value text. */
2459
+ className?: string;
2460
+ }
2461
+ /** The trigger's value slot: the picked row's label (its children), else the muted placeholder. */
2462
+ declare function SelectValue({ placeholder, className }: SelectValueProps): Element_12xgc19;
2463
+ interface SelectTriggerProps extends Omit<HTMLAttributes14<HTMLButtonElement>, "children">, VariantProps4<typeof triggerVariants> {
2464
+ /** Replaces the built-in value slot, typically with a `Select.Value` (shadcn's `<SelectValue placeholder>`). The icon and chevron stay. */
2465
+ children?: ReactNode22;
1768
2466
  /** Visual style of the trigger. Defaults to `"bordered"`. */
1769
2467
  variant?: "bordered" | "borderless";
1770
2468
  /** Optional icon displayed before the value. */
@@ -1778,7 +2476,7 @@ interface SelectTriggerProps extends Omit<HTMLAttributes13<HTMLButtonElement>, "
1778
2476
  /** Extra classes for the trigger button. */
1779
2477
  className?: string;
1780
2478
  }
1781
- declare const SelectTrigger: ForwardRefExoticComponent_tcubfn8<SelectTriggerProps & RefAttributes_miuf568<HTMLButtonElement>>;
2479
+ declare const SelectTrigger: ForwardRefExoticComponent_tcubfn11<SelectTriggerProps & RefAttributes_miuf5611<HTMLButtonElement>>;
1782
2480
  interface SelectContentProps {
1783
2481
  /** Where the menu grows from (see Morph): the trigger, the pointer, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
1784
2482
  from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | React.RefObject<HTMLElement | null>;
@@ -1788,37 +2486,45 @@ interface SelectContentProps {
1788
2486
  hideSource?: boolean;
1789
2487
  /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
1790
2488
  tier?: "moderate" | "slow";
2489
+ /** Side of the trigger the menu prefers; it flips when there is no room. Defaults to `"bottom"`. */
2490
+ side?: "top" | "bottom" | "left" | "right";
2491
+ /** Alignment against the trigger. Defaults to `"start"`. */
2492
+ align?: "start" | "center" | "end";
2493
+ /** Gap to the trigger, in px. Ignored when the menu opens in place over the trigger (`effect="morph"` with `hideSource`). Defaults to `6`. */
2494
+ sideOffset?: number;
1791
2495
  /** Additional classes for the menu container. */
1792
2496
  className?: string;
1793
2497
  /** `Select.Item`, `Select.Group`, `Select.Label`, `Select.Separator`. */
1794
- children: ReactNode14;
2498
+ children: ReactNode22;
1795
2499
  }
1796
- declare const SelectContent: ForwardRefExoticComponent_tcubfn8<SelectContentProps & RefAttributes_miuf568<HTMLDivElement>>;
1797
- interface SelectItemProps extends HTMLAttributes13<HTMLDivElement> {
2500
+ declare const SelectContent: ForwardRefExoticComponent_tcubfn11<SelectContentProps & RefAttributes_miuf5611<HTMLDivElement>>;
2501
+ interface SelectItemProps extends HTMLAttributes14<HTMLDivElement> {
1798
2502
  /** Optional icon displayed before the label. */
1799
2503
  icon?: IconComponent;
1800
- /** Position index within the content — what fluid hover measures rows by. */
1801
- index: number;
2504
+ /** Position among the menu's rows — what fluid hover measures rows by. Defaults to the row's place in document order. */
2505
+ index?: number;
1802
2506
  /** Unique value for this option. */
1803
2507
  value: string;
2508
+ /** The row's text for typeahead, when its children are not a plain string. */
2509
+ textValue?: string;
1804
2510
  /** Disables this individual item. Defaults to `false`. */
1805
2511
  disabled?: boolean;
1806
2512
  /** The row label. A string label is also what the trigger shows for this value. */
1807
- children?: ReactNode14;
2513
+ children?: ReactNode22;
1808
2514
  }
1809
- declare const SelectItem: ForwardRefExoticComponent_tcubfn8<SelectItemProps & RefAttributes_miuf568<HTMLDivElement>>;
1810
- declare function SelectGroup({ children, className,...props }: HTMLAttributes13<HTMLDivElement>): Element_12xgc15;
1811
- declare const SelectLabel: ForwardRefExoticComponent_tcubfn8<HTMLAttributes13<HTMLDivElement> & RefAttributes_miuf568<HTMLDivElement>>;
1812
- declare const SelectSeparator: ForwardRefExoticComponent_tcubfn8<HTMLAttributes13<HTMLDivElement> & RefAttributes_miuf568<HTMLDivElement>>;
1813
- import { CSSProperties as CSSProperties2, HTMLAttributes as HTMLAttributes14 } from "react";
1814
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn9 } from "react";
1815
- import { RefAttributes as RefAttributes_miuf569 } from "react";
2515
+ declare const SelectItem: ForwardRefExoticComponent_tcubfn11<SelectItemProps & RefAttributes_miuf5611<HTMLDivElement>>;
2516
+ declare function SelectGroup({ children, className,...props }: HTMLAttributes14<HTMLDivElement>): Element_12xgc19;
2517
+ declare const SelectLabel: ForwardRefExoticComponent_tcubfn11<HTMLAttributes14<HTMLDivElement> & RefAttributes_miuf5611<HTMLDivElement>>;
2518
+ declare const SelectSeparator: ForwardRefExoticComponent_tcubfn11<HTMLAttributes14<HTMLDivElement> & RefAttributes_miuf5611<HTMLDivElement>>;
2519
+ import { CSSProperties as CSSProperties2, HTMLAttributes as HTMLAttributes15 } from "react";
2520
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn12 } from "react";
2521
+ import { RefAttributes as RefAttributes_miuf5612 } from "react";
1816
2522
  type SliderValue = number | [number, number];
1817
2523
  type ValuePosition = "left" | "right" | "top" | "bottom" | "tooltip";
1818
2524
  /** Props of the compact engine — the feature-rich design (ranges, discrete
1819
2525
  * step lists, value display) that renders the ladder's compact step. The
1820
2526
  * public <Slider> accepts these plus `variant` and `size`. */
1821
- interface SliderEngineProps extends Omit<HTMLAttributes14<HTMLDivElement>, "onChange" | "defaultValue"> {
2527
+ interface SliderEngineProps extends Omit<HTMLAttributes15<HTMLDivElement>, "onChange" | "defaultValue"> {
1822
2528
  value: SliderValue;
1823
2529
  onChange: (value: SliderValue) => void;
1824
2530
  min?: number;
@@ -1846,7 +2552,7 @@ interface SliderEngineProps extends Omit<HTMLAttributes14<HTMLDivElement>, "onCh
1846
2552
  thumbColor?: string;
1847
2553
  thumbBorderColor?: string;
1848
2554
  }
1849
- interface SliderComfortableProps extends Omit<HTMLAttributes14<HTMLDivElement>, "onChange" | "defaultValue" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragOver" | "onAnimationStart"> {
2555
+ interface SliderComfortableProps extends Omit<HTMLAttributes15<HTMLDivElement>, "onChange" | "defaultValue" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragOver" | "onAnimationStart"> {
1850
2556
  value: number;
1851
2557
  onChange: (value: number) => void;
1852
2558
  min?: number;
@@ -1912,17 +2618,17 @@ interface SliderProps extends Omit<SliderEngineProps, "value" | "onChange"> {
1912
2618
  *
1913
2619
  * @example {@include ./examples.mdx}
1914
2620
  */
1915
- declare const Slider: ForwardRefExoticComponent_tcubfn9<SliderProps & RefAttributes_miuf569<HTMLDivElement>>;
2621
+ declare const Slider: ForwardRefExoticComponent_tcubfn12<SliderProps & RefAttributes_miuf5612<HTMLDivElement>>;
1916
2622
  /** @deprecated The comfortable design is now the ladder's default step —
1917
2623
  * render <Slider> (optionally with `variant`) instead. */
1918
- declare const SliderComfortable: ForwardRefExoticComponent_tcubfn9<SliderComfortableProps & RefAttributes_miuf569<HTMLDivElement>>;
2624
+ declare const SliderComfortable: ForwardRefExoticComponent_tcubfn12<SliderComfortableProps & RefAttributes_miuf5612<HTMLDivElement>>;
1919
2625
  import { Transition } from "motion/react";
1920
- import { ForwardRefExoticComponent as ForwardRefExoticComponent7, HTMLAttributes as HTMLAttributes15, ReactNode as ReactNode15, RefAttributes as RefAttributes7 } from "react";
1921
- interface SwitchProps extends HTMLAttributes15<HTMLDivElement> {
1922
- /** Text label displayed next to the switch. */
1923
- label: string;
2626
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent10, HTMLAttributes as HTMLAttributes16, ReactNode as ReactNode23, RefAttributes as RefAttributes10 } from "react";
2627
+ interface SwitchProps extends HTMLAttributes16<HTMLDivElement> {
2628
+ /** Label displayed next to the switch, any node. Omit it, outside a group, for the bare track (see Bare): name it with `aria-label`, `aria-labelledby` or a `<label htmlFor>` pointing at its `id`. */
2629
+ label?: ReactNode23;
1924
2630
  /** Secondary text under the label: what turning the switch on does. With one, the label stays at full contrast. */
1925
- description?: ReactNode15;
2631
+ description?: ReactNode23;
1926
2632
  /** The side of the label the track sits on; `"end"` pushes it to the row's far edge, as in a settings list (always, inside a `Switch.Group`). Defaults to `"start"`. */
1927
2633
  trackSide?: "start" | "end";
1928
2634
  /** Whether the switch is on (controlled). Omit it to let the switch keep its own state, seeded from `defaultChecked`. */
@@ -1935,12 +2641,18 @@ interface SwitchProps extends HTMLAttributes15<HTMLDivElement> {
1935
2641
  onCheckedChange?: (checked: boolean) => void;
1936
2642
  /** Disables the switch. Defaults to `false`. */
1937
2643
  disabled?: boolean;
2644
+ /** Form field name: a hidden checkbox input submits `value` while on. */
2645
+ name?: string;
2646
+ /** Value submitted with `name` while on. Defaults to `"on"`. */
2647
+ value?: string;
2648
+ /** Marks the hidden form input required. Defaults to `false`. */
2649
+ required?: boolean;
1938
2650
  /** Transition for the thumb's slide and hover/press stretch. Defaults to the `spring.moderate` motion token. */
1939
2651
  thumbTransition?: Transition;
1940
2652
  /** Pins the switch to one step of the size ladder (see Sizes). Defaults to the surrounding SizeProvider, else `"default"`. */
1941
2653
  size?: SizeVariant;
1942
2654
  }
1943
- type SwitchComponent = ForwardRefExoticComponent7<SwitchProps & RefAttributes7<HTMLDivElement>> & {
2655
+ type SwitchComponent = ForwardRefExoticComponent10<SwitchProps & RefAttributes10<HTMLDivElement>> & {
1944
2656
  Group: typeof SwitchGroup;
1945
2657
  };
1946
2658
  /**
@@ -1971,16 +2683,16 @@ type SwitchComponent = ForwardRefExoticComponent7<SwitchProps & RefAttributes7<H
1971
2683
  * @example {@include ./examples.mdx}
1972
2684
  */
1973
2685
  declare const Switch: SwitchComponent;
1974
- interface SwitchGroupProps extends HTMLAttributes15<HTMLFieldSetElement> {
2686
+ interface SwitchGroupProps extends HTMLAttributes16<HTMLFieldSetElement> {
1975
2687
  /** `Switch` rows. */
1976
- children: ReactNode15;
2688
+ children: ReactNode23;
1977
2689
  /** Pins every row to one step of the size ladder (see Sizes). Defaults to the surrounding SizeProvider. */
1978
2690
  size?: SizeVariant;
1979
2691
  }
1980
- declare const SwitchGroup: ForwardRefExoticComponent7<SwitchGroupProps & RefAttributes7<HTMLFieldSetElement>>;
2692
+ declare const SwitchGroup: ForwardRefExoticComponent10<SwitchGroupProps & RefAttributes10<HTMLFieldSetElement>>;
1981
2693
  import { TextareaHTMLAttributes as TextareaHTMLAttributes2 } from "react";
1982
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn10 } from "react";
1983
- import { RefAttributes as RefAttributes_miuf5610 } from "react";
2694
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn13 } from "react";
2695
+ import { RefAttributes as RefAttributes_miuf5613 } from "react";
1984
2696
  interface TextareaProps extends Omit<TextareaHTMLAttributes2<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue" | "rows"> {
1985
2697
  /** Placeholder text. */
1986
2698
  placeholder?: string;
@@ -2000,6 +2712,10 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes2<HTMLTextAreaElement
2000
2712
  invalid?: boolean;
2001
2713
  /** Disables the textarea. Defaults to `false`. */
2002
2714
  disabled?: boolean;
2715
+ /** Keeps the value selectable but not editable, with the field's read-only look. Defaults to the surrounding Field's `readOnly`. */
2716
+ readOnly?: boolean;
2717
+ /** Marks the textarea required. Defaults to the surrounding Field's `required`. */
2718
+ required?: boolean;
2003
2719
  /** Pins the textarea to one step of the size ladder (36px default, 28px compact): its text and padding follow, so one row matches an Input. Defaults to the surrounding SizeProvider. */
2004
2720
  size?: SizeVariant;
2005
2721
  /** Classes for the ringed box around the textarea. */
@@ -2021,11 +2737,189 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes2<HTMLTextAreaElement
2021
2737
  *
2022
2738
  * @example {@include ./examples.mdx}
2023
2739
  */
2024
- declare const Textarea: ForwardRefExoticComponent_tcubfn10<TextareaProps & RefAttributes_miuf5610<HTMLTextAreaElement>>;
2025
- import { ForwardRefExoticComponent as ForwardRefExoticComponent8, HTMLAttributes as HTMLAttributes18, ReactNode as ReactNode17, RefAttributes as RefAttributes8 } from "react";
2026
- import { HTMLAttributes as HTMLAttributes16, MutableRefObject, ReactElement as ReactElement3 } from "react";
2027
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn11 } from "react";
2028
- import { RefAttributes as RefAttributes_miuf5611 } from "react";
2740
+ declare const Textarea: ForwardRefExoticComponent_tcubfn13<TextareaProps & RefAttributes_miuf5613<HTMLTextAreaElement>>;
2741
+ import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
2742
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef3, ReactNode as ReactNode24, RefObject as RefObject11 } from "react";
2743
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn14 } from "react";
2744
+ import { RefAttributes as RefAttributes_miuf5614 } from "react";
2745
+ import { JSX as JSX_1kxb20 } from "react";
2746
+ interface NavigationMenuListProps extends ComponentPropsWithoutRef3<typeof NavigationMenuPrimitive.List2> {
2747
+ /** `NavigationMenu.Item`s, and optionally a `NavigationMenu.Indicator`. */
2748
+ children?: ReactNode24;
2749
+ }
2750
+ declare const NavigationMenuList: ForwardRefExoticComponent_tcubfn14<NavigationMenuListProps & RefAttributes_miuf5614<HTMLUListElement>>;
2751
+ interface NavigationMenuIndicatorProps {
2752
+ /** Classes for the marker: its fill. Defaults to the `bg-active` overlay. */
2753
+ className?: string;
2754
+ }
2755
+ type Element_12xgc20 = JSX_1kxb20["Element"];
2756
+ /** A liquid marker under the open item, or the current page's item when nothing is open. */
2757
+ declare function NavigationMenuIndicator({ className }: NavigationMenuIndicatorProps): Element_12xgc20;
2758
+ interface NavigationMenuItemProps extends ComponentPropsWithoutRef3<typeof NavigationMenuPrimitive.Item2> {
2759
+ /** Identifies the item for a controlled `value`. Defaults to a generated id. */
2760
+ value?: string;
2761
+ }
2762
+ declare const NavigationMenuItem: ForwardRefExoticComponent_tcubfn14<NavigationMenuItemProps & RefAttributes_miuf5614<HTMLLIElement>>;
2763
+ interface NavigationMenuTriggerProps extends ComponentPropsWithoutRef3<typeof NavigationMenuPrimitive.Trigger2> {
2764
+ /** The trigger's label. */
2765
+ children?: ReactNode24;
2766
+ }
2767
+ declare const NavigationMenuTrigger: ForwardRefExoticComponent_tcubfn14<NavigationMenuTriggerProps & RefAttributes_miuf5614<HTMLButtonElement>>;
2768
+ interface NavigationMenuContentProps extends ComponentPropsWithoutRef3<typeof NavigationMenuPrimitive.Content2> {
2769
+ /** Classes for the panel's content: its width and layout (a grid of links, a feature column). */
2770
+ className?: string;
2771
+ /** The panel: `NavigationMenu.Link`s and anything else. */
2772
+ children?: ReactNode24;
2773
+ }
2774
+ declare const NavigationMenuContent: ForwardRefExoticComponent_tcubfn14<NavigationMenuContentProps & RefAttributes_miuf5614<HTMLDivElement>>;
2775
+ interface NavigationMenuLinkProps extends ComponentPropsWithoutRef3<typeof NavigationMenuPrimitive.Link> {
2776
+ /** Marks the link as the current page (`aria-current`); in the strip, the indicator rests under it. Defaults to `false`. */
2777
+ active?: boolean;
2778
+ /** Leading icon of a link inside a panel. */
2779
+ icon?: IconComponent;
2780
+ /** A muted line under the title of a link inside a panel. */
2781
+ description?: ReactNode24;
2782
+ /** Close the panel when the link is pressed. Defaults to `false`. */
2783
+ closeOnClick?: boolean;
2784
+ /** The link's title. */
2785
+ children?: ReactNode24;
2786
+ }
2787
+ declare const NavigationMenuLink: ForwardRefExoticComponent_tcubfn14<NavigationMenuLinkProps & RefAttributes_miuf5614<HTMLAnchorElement>>;
2788
+ interface NavigationMenuProps {
2789
+ /** Controlled open item (its `value`), or `null` when closed. Pair with `onValueChange`. */
2790
+ value?: string | null;
2791
+ /** Initially open item, for an uncontrolled menu. Defaults to `null`. */
2792
+ defaultValue?: string | null;
2793
+ /** Called with the open item's value, or `null` as the menu closes. */
2794
+ onValueChange?: (value: string | null) => void;
2795
+ /** Hover delay before a panel opens, in ms. Defaults to `50`. */
2796
+ delay?: number;
2797
+ /** Delay before the panel closes once the pointer leaves, in ms. Defaults to `50`. */
2798
+ closeDelay?: number;
2799
+ /** Alignment of the panel along the strip. Defaults to `'start'`. */
2800
+ align?: "start" | "center" | "end";
2801
+ /** Gap between strip and panel in px — the length of the goo neck. Defaults to `12`. */
2802
+ sideOffset?: number;
2803
+ /** Where the panel grows from (see Morph): the pressed trigger, the press point, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
2804
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject11<HTMLElement | null>;
2805
+ /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
2806
+ effect?: "goo" | "morph" | "slide" | "fade";
2807
+ /** Hide the trigger while open, so it reads as turning into the panel. Defaults to `false`. */
2808
+ hideSource?: boolean;
2809
+ /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'slow'`. */
2810
+ tier?: "moderate" | "slow";
2811
+ /** Pins the strip and its panels to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
2812
+ size?: SizeVariant;
2813
+ /** Classes for the `nav` root. */
2814
+ className?: string;
2815
+ /** A `NavigationMenu.List`. */
2816
+ children?: ReactNode24;
2817
+ }
2818
+ /**
2819
+ * A site navigation bar whose items open flyout panels of links.
2820
+ *
2821
+ * The panel grows out of the trigger that opened it (see Morph) and closes
2822
+ * back into it. Moving to another trigger keeps the one panel open: it
2823
+ * springs to the new content's size while the content slides in from the
2824
+ * side the pointer came from. One fluid hover highlight runs along the
2825
+ * strip and another inside each panel, and `NavigationMenu.Indicator` melts
2826
+ * from item to item under the open one, or under the current page's link.
2827
+ * The panel lifts 2 surface levels off its substrate. Built on Base UI's
2828
+ * NavigationMenu: panels open on hover or press, arrow keys move between
2829
+ * items, Escape closes; controlled with `value` + `onValueChange`.
2830
+ *
2831
+ * Statics:
2832
+ * - `NavigationMenu.List` — the strip.
2833
+ * - `NavigationMenu.Item` — one entry: a Trigger + Content pair, or a Link;
2834
+ * `value`.
2835
+ * - `NavigationMenu.Trigger` — opens its item's panel; the chevron turns and
2836
+ * the label turns semibold while open.
2837
+ * - `NavigationMenu.Content` — the item's panel; size it with `className`.
2838
+ * - `NavigationMenu.Link` — a link: in the strip, a top-level item; in a
2839
+ * panel, a row with `icon` and `description`. `active` marks the current
2840
+ * page; `closeOnClick`.
2841
+ * - `NavigationMenu.Indicator` — the liquid marker; put it in the List.
2842
+ *
2843
+ * @example {@include ./examples.mdx}
2844
+ */
2845
+ declare function NavigationMenu({ value, defaultValue, onValueChange, delay, closeDelay, align, sideOffset, from, effect, hideSource, tier, size, className, children }: NavigationMenuProps): Element_12xgc20;
2846
+ import { JSX as JSX_1kxb21 } from "react";
2847
+ type PaginationVariant = "pages" | "input";
2848
+ interface PaginationProps {
2849
+ /** Number of pages. Below 1 it counts as 1. */
2850
+ pageCount: number;
2851
+ /** Controlled current page, counted from 1. Pair with `onPageChange`. */
2852
+ page?: number;
2853
+ /** Initial page, for an uncontrolled pagination. Defaults to `1`. */
2854
+ defaultPage?: number;
2855
+ /** Called with the new page whenever it changes. */
2856
+ onPageChange?: (page: number) => void;
2857
+ /** Page buttons along a strip, or a field to type the page into (the dense layout data tables use). Defaults to `'pages'`. */
2858
+ variant?: PaginationVariant;
2859
+ /** Pages shown on each side of the current one before a gap, with `variant="pages"`. Defaults to `1`. */
2860
+ siblings?: number;
2861
+ /** Show the first and last page buttons. Defaults to on with `variant="input"` and off with `variant="pages"`. */
2862
+ edges?: boolean;
2863
+ /** Controlled page size: shows the page-size Select. Pair with `onPageSizeChange`. */
2864
+ pageSize?: number;
2865
+ /** Initial page size, for an uncontrolled page-size Select; setting it shows the Select. */
2866
+ defaultPageSize?: number;
2867
+ /** The page sizes the Select offers. Defaults to `[10, 20, 30, 40, 50]`. */
2868
+ pageSizes?: number[];
2869
+ /** Called with the new page size whenever it changes. */
2870
+ onPageSizeChange?: (pageSize: number) => void;
2871
+ /** Disables every control, e.g. while a page loads. Defaults to `false`. */
2872
+ disabled?: boolean;
2873
+ /** Accessible name of the `nav`. Defaults to `'Pagination'`. */
2874
+ label?: string;
2875
+ /** Accessible name of the first page button. Defaults to `'First page'`. */
2876
+ firstLabel?: string;
2877
+ /** Accessible name of the previous page button. Defaults to `'Previous page'`. */
2878
+ previousLabel?: string;
2879
+ /** Accessible name of the next page button. Defaults to `'Next page'`. */
2880
+ nextLabel?: string;
2881
+ /** Accessible name of the last page button. Defaults to `'Last page'`. */
2882
+ lastLabel?: string;
2883
+ /** Accessible name of the page field, with `variant="input"`. Defaults to `'Page'`. */
2884
+ pageLabel?: string;
2885
+ /** Text before the page-size Select, also its accessible name; an empty string shows none. Defaults to `'Rows per page'`. */
2886
+ pageSizeLabel?: string;
2887
+ /** Pins the strip to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
2888
+ size?: SizeVariant;
2889
+ /** Classes for the `nav` root. */
2890
+ className?: string;
2891
+ }
2892
+ type Element_12xgc21 = JSX_1kxb21["Element"];
2893
+ /**
2894
+ * Page navigation: first, previous, the pages or a field to jump to one,
2895
+ * next and last, with an optional page-size Select for data tables.
2896
+ *
2897
+ * With the default `variant="pages"` the strip shows the first and last
2898
+ * pages and the current page's neighbours, with a gap wherever pages are
2899
+ * skipped. The current page is a liquid indicator: picking another page melts
2900
+ * it across the strip (see the liquid indicators in Morph), and its number
2901
+ * turns semibold without moving the others. One fluid hover highlight runs
2902
+ * along the page buttons, so a click between two pages lands on the lit one.
2903
+ *
2904
+ * `variant="input"` swaps the strip for a field showing the current page and
2905
+ * the page count (`3 / 12`): type a page and press Enter, or leave the field,
2906
+ * to go there; Escape puts the current page back. It brings first and last
2907
+ * buttons with it (`edges`).
2908
+ *
2909
+ * Setting `pageSize` or `defaultPageSize` adds a Select of `pageSizes`. Every
2910
+ * label is a prop, so a translated app passes its own strings. Works
2911
+ * controlled (`page` + `onPageChange`, `pageSize` + `onPageSizeChange`) or
2912
+ * uncontrolled (`defaultPage`, `defaultPageSize`).
2913
+ *
2914
+ * @example {@include ./examples.mdx}
2915
+ */
2916
+ declare function Pagination({ pageCount, page, defaultPage, onPageChange, variant, siblings, edges: edgesProp, pageSize, defaultPageSize, pageSizes, onPageSizeChange, disabled, label, firstLabel, previousLabel, nextLabel, lastLabel, pageLabel, pageSizeLabel, size: sizeProp, className }: PaginationProps): Element_12xgc21;
2917
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent11, HTMLAttributes as HTMLAttributes19, ReactNode as ReactNode26, RefAttributes as RefAttributes11 } from "react";
2918
+ import { HTMLAttributes as HTMLAttributes17, MutableRefObject, ReactElement as ReactElement3 } from "react";
2919
+ import { ClassProp as ClassProp_wz9o0r5 } from "class-variance-authority/types";
2920
+ declare const sidebarMenuButtonVariants: (props?: ({
2921
+ variant?: "default" | "outline" | null | undefined;
2922
+ } & ClassProp_wz9o0r5) | undefined) => string;
2029
2923
  declare const SIDEBAR_COOKIE_NAME = "sidebar_state";
2030
2924
  declare const SIDEBAR_COOKIE_MAX_AGE: number;
2031
2925
  declare const SIDEBAR_WIDTH = "16rem";
@@ -2037,6 +2931,8 @@ declare const SIDEBAR_KEYBOARD_SHORTCUT_RIGHT = "]";
2037
2931
  /** Drag-resize clamp for the built-in rail handle (px). */
2038
2932
  declare const SIDEBAR_MIN_WIDTH = 160;
2039
2933
  declare const SIDEBAR_MAX_WIDTH = 360;
2934
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn15 } from "react";
2935
+ import { RefAttributes as RefAttributes_miuf5615 } from "react";
2040
2936
  type SidebarSide = "left" | "right";
2041
2937
  type SidebarVariant = "sidebar" | "floating" | "inset";
2042
2938
  type SidebarCollapsible = "offcanvas" | "none";
@@ -2077,7 +2973,7 @@ interface SidebarContextValue {
2077
2973
  setIsResizing: React.Dispatch<React.SetStateAction<boolean>>;
2078
2974
  }
2079
2975
  declare function useSidebar(): SidebarContextValue;
2080
- interface SidebarProviderProps extends HTMLAttributes16<HTMLDivElement> {
2976
+ interface SidebarProviderProps extends HTMLAttributes17<HTMLDivElement> {
2081
2977
  defaultOpen?: boolean;
2082
2978
  open?: boolean;
2083
2979
  onOpenChange?: (open: boolean) => void;
@@ -2097,15 +2993,15 @@ interface SidebarProviderProps extends HTMLAttributes16<HTMLDivElement> {
2097
2993
  width?: string;
2098
2994
  widthMobile?: string;
2099
2995
  }
2100
- declare const SidebarProvider: ForwardRefExoticComponent_tcubfn11<SidebarProviderProps & RefAttributes_miuf5611<HTMLDivElement>>;
2996
+ declare const SidebarProvider: ForwardRefExoticComponent_tcubfn15<SidebarProviderProps & RefAttributes_miuf5615<HTMLDivElement>>;
2101
2997
  type SidebarTriggerProps = ButtonProps;
2102
2998
  /** Ghost icon button calling toggleSidebar(). The icon mirrors the
2103
2999
  * sidebar's side, and its tooltip names the action with the toggle
2104
3000
  * keystroke by default. With `openOnHover` it switches between open and on
2105
3001
  * hover (a dashed glyph), and the hover zone reaches its far side when it
2106
3002
  * sits beside the sidebar's edge. */
2107
- declare const SidebarTrigger: ForwardRefExoticComponent_tcubfn11<ButtonProps & RefAttributes_miuf5611<HTMLButtonElement>>;
2108
- interface SidebarRailProps extends HTMLAttributes16<HTMLButtonElement> {
3003
+ declare const SidebarTrigger: ForwardRefExoticComponent_tcubfn15<ButtonProps & RefAttributes_miuf5615<HTMLButtonElement>>;
3004
+ interface SidebarRailProps extends HTMLAttributes17<HTMLButtonElement> {
2109
3005
  /** Pin the tooltip open/closed; `undefined` leaves it on hover. */
2110
3006
  tooltipOpen?: boolean;
2111
3007
  }
@@ -2113,15 +3009,15 @@ interface SidebarRailProps extends HTMLAttributes16<HTMLButtonElement> {
2113
3009
  * the desktop shell: drag it to resize (clamped), click it to collapse, and
2114
3010
  * its tooltip explains both with the toggle keystroke. Hovering it
2115
3011
  * brightens the edge border. */
2116
- declare const SidebarRail: ForwardRefExoticComponent_tcubfn11<SidebarRailProps & RefAttributes_miuf5611<HTMLButtonElement>>;
2117
- type SidebarInsetProps = HTMLAttributes16<HTMLElement>;
2118
- declare const SidebarInset: ForwardRefExoticComponent_tcubfn11<SidebarInsetProps & RefAttributes_miuf5611<HTMLElement>>;
3012
+ declare const SidebarRail: ForwardRefExoticComponent_tcubfn15<SidebarRailProps & RefAttributes_miuf5615<HTMLButtonElement>>;
3013
+ type SidebarInsetProps = HTMLAttributes17<HTMLElement>;
3014
+ declare const SidebarInset: ForwardRefExoticComponent_tcubfn15<SidebarInsetProps & RefAttributes_miuf5615<HTMLElement>>;
2119
3015
  type SidebarInputProps = React.InputHTMLAttributes<HTMLInputElement>;
2120
- declare const SidebarInput: ForwardRefExoticComponent_tcubfn11<SidebarInputProps & RefAttributes_miuf5611<HTMLInputElement>>;
2121
- type SidebarSectionProps = HTMLAttributes16<HTMLDivElement>;
2122
- declare const SidebarHeader: ForwardRefExoticComponent_tcubfn11<SidebarSectionProps & RefAttributes_miuf5611<HTMLDivElement>>;
2123
- declare const SidebarFooter: ForwardRefExoticComponent_tcubfn11<SidebarSectionProps & RefAttributes_miuf5611<HTMLDivElement>>;
2124
- declare const SidebarSeparator: ForwardRefExoticComponent_tcubfn11<SidebarSectionProps & RefAttributes_miuf5611<HTMLDivElement>>;
3016
+ declare const SidebarInput: ForwardRefExoticComponent_tcubfn15<SidebarInputProps & RefAttributes_miuf5615<HTMLInputElement>>;
3017
+ type SidebarSectionProps = HTMLAttributes17<HTMLDivElement>;
3018
+ declare const SidebarHeader: ForwardRefExoticComponent_tcubfn15<SidebarSectionProps & RefAttributes_miuf5615<HTMLDivElement>>;
3019
+ declare const SidebarFooter: ForwardRefExoticComponent_tcubfn15<SidebarSectionProps & RefAttributes_miuf5615<HTMLDivElement>>;
3020
+ declare const SidebarSeparator: ForwardRefExoticComponent_tcubfn15<SidebarSectionProps & RefAttributes_miuf5615<HTMLDivElement>>;
2125
3021
  interface SidebarGroupProps extends SidebarSectionProps {
2126
3022
  /** Makes the group's SidebarGroupLabel a toggle that collapses everything
2127
3023
  * rendered after it — a group-level accordion. Uncontrolled by default;
@@ -2131,36 +3027,35 @@ interface SidebarGroupProps extends SidebarSectionProps {
2131
3027
  defaultOpen?: boolean;
2132
3028
  onOpenChange?: (open: boolean) => void;
2133
3029
  }
2134
- declare const SidebarGroup: ForwardRefExoticComponent_tcubfn11<SidebarGroupProps & RefAttributes_miuf5611<HTMLDivElement>>;
2135
- interface SidebarGroupLabelProps extends HTMLAttributes16<HTMLDivElement> {
3030
+ declare const SidebarGroup: ForwardRefExoticComponent_tcubfn15<SidebarGroupProps & RefAttributes_miuf5615<HTMLDivElement>>;
3031
+ interface SidebarGroupLabelProps extends HTMLAttributes17<HTMLDivElement> {
2136
3032
  render?: ReactElement3;
2137
3033
  asChild?: boolean;
2138
3034
  }
2139
- declare const SidebarGroupLabel: ForwardRefExoticComponent_tcubfn11<SidebarGroupLabelProps & RefAttributes_miuf5611<HTMLDivElement>>;
2140
- interface SidebarGroupActionProps extends HTMLAttributes16<HTMLButtonElement> {
3035
+ declare const SidebarGroupLabel: ForwardRefExoticComponent_tcubfn15<SidebarGroupLabelProps & RefAttributes_miuf5615<HTMLDivElement>>;
3036
+ interface SidebarGroupActionProps extends HTMLAttributes17<HTMLButtonElement> {
2141
3037
  render?: ReactElement3;
2142
3038
  asChild?: boolean;
2143
3039
  }
2144
- declare const SidebarGroupAction: ForwardRefExoticComponent_tcubfn11<SidebarGroupActionProps & RefAttributes_miuf5611<HTMLButtonElement>>;
3040
+ declare const SidebarGroupAction: ForwardRefExoticComponent_tcubfn15<SidebarGroupActionProps & RefAttributes_miuf5615<HTMLButtonElement>>;
2145
3041
  /** Header action cluster: 1–3 SidebarGroupActions laid out in a row over the
2146
3042
  * group label's right edge. Use instead of a lone SidebarGroupAction when a
2147
3043
  * section needs several controls. */
2148
- type SidebarGroupActionsProps = HTMLAttributes16<HTMLDivElement>;
2149
- declare const SidebarGroupActions: ForwardRefExoticComponent_tcubfn11<SidebarGroupActionsProps & RefAttributes_miuf5611<HTMLDivElement>>;
2150
- declare const SidebarGroupContent: ForwardRefExoticComponent_tcubfn11<SidebarSectionProps & RefAttributes_miuf5611<HTMLDivElement>>;
2151
- import { VariantProps as VariantProps4 } from "class-variance-authority";
2152
- import { AnchorHTMLAttributes, ButtonHTMLAttributes as ButtonHTMLAttributes3, HTMLAttributes as HTMLAttributes17, LiHTMLAttributes, ReactElement as ReactElement4 } from "react";
3044
+ type SidebarGroupActionsProps = HTMLAttributes17<HTMLDivElement>;
3045
+ declare const SidebarGroupActions: ForwardRefExoticComponent_tcubfn15<SidebarGroupActionsProps & RefAttributes_miuf5615<HTMLDivElement>>;
3046
+ declare const SidebarGroupContent: ForwardRefExoticComponent_tcubfn15<SidebarSectionProps & RefAttributes_miuf5615<HTMLDivElement>>;
3047
+ import { VariantProps as VariantProps5 } from "class-variance-authority";
3048
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes as ButtonHTMLAttributes4, HTMLAttributes as HTMLAttributes18, LiHTMLAttributes, ReactElement as ReactElement4 } from "react";
2153
3049
  import { Context as Context_rri5bl3 } from "react";
2154
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn12 } from "react";
2155
- import { RefAttributes as RefAttributes_miuf5612 } from "react";
2156
- import { ClassProp as ClassProp_wz9o0r5 } from "class-variance-authority/types";
3050
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn16 } from "react";
3051
+ import { RefAttributes as RefAttributes_miuf5616 } from "react";
2157
3052
  /** The selection a `Sidebar` holds for buttons that carry a `value`. */
2158
3053
  interface SidebarSelectionValue {
2159
3054
  value: string | undefined;
2160
3055
  select: (value: string) => void;
2161
3056
  }
2162
3057
  declare const SidebarSelection: Context_rri5bl3<SidebarSelectionValue | null>;
2163
- interface SidebarMenuProps extends HTMLAttributes17<HTMLUListElement> {
3058
+ interface SidebarMenuProps extends HTMLAttributes18<HTMLUListElement> {
2164
3059
  /** Pins the menu's rows to one step of the size ladder. Omitted, they
2165
3060
  * follow the surrounding SizeProvider. */
2166
3061
  size?: SizeVariant;
@@ -2168,7 +3063,7 @@ interface SidebarMenuProps extends HTMLAttributes17<HTMLUListElement> {
2168
3063
  * hover background only. @default true */
2169
3064
  focusRing?: boolean;
2170
3065
  }
2171
- declare const SidebarMenu: ForwardRefExoticComponent_tcubfn12<SidebarMenuProps & RefAttributes_miuf5612<HTMLUListElement>>;
3066
+ declare const SidebarMenu: ForwardRefExoticComponent_tcubfn16<SidebarMenuProps & RefAttributes_miuf5616<HTMLUListElement>>;
2172
3067
  interface SidebarMenuItemProps extends LiHTMLAttributes<HTMLLIElement> {
2173
3068
  /** The row folds a `SidebarMenuSub` under it: its button toggles the sub-menu and shows a chevron. */
2174
3069
  collapsible?: boolean;
@@ -2179,13 +3074,10 @@ interface SidebarMenuItemProps extends LiHTMLAttributes<HTMLLIElement> {
2179
3074
  /** Called when a collapsible row opens or closes. */
2180
3075
  onOpenChange?: (open: boolean) => void;
2181
3076
  }
2182
- declare const SidebarMenuItem: ForwardRefExoticComponent_tcubfn12<SidebarMenuItemProps & RefAttributes_miuf5612<HTMLLIElement>>;
3077
+ declare const SidebarMenuItem: ForwardRefExoticComponent_tcubfn16<SidebarMenuItemProps & RefAttributes_miuf5616<HTMLLIElement>>;
2183
3078
  type SidebarMenuSubItemProps = LiHTMLAttributes<HTMLLIElement>;
2184
- declare const SidebarMenuSubItem: ForwardRefExoticComponent_tcubfn12<SidebarMenuSubItemProps & RefAttributes_miuf5612<HTMLLIElement>>;
2185
- declare const sidebarMenuButtonVariants: (props?: ({
2186
- variant?: "default" | "outline" | null | undefined;
2187
- } & ClassProp_wz9o0r5) | undefined) => string;
2188
- interface SidebarMenuButtonProps extends ButtonHTMLAttributes3<HTMLButtonElement>, VariantProps4<typeof sidebarMenuButtonVariants> {
3079
+ declare const SidebarMenuSubItem: ForwardRefExoticComponent_tcubfn16<SidebarMenuSubItemProps & RefAttributes_miuf5616<HTMLLIElement>>;
3080
+ interface SidebarMenuButtonProps extends ButtonHTMLAttributes4<HTMLButtonElement>, VariantProps5<typeof sidebarMenuButtonVariants> {
2189
3081
  isActive?: boolean;
2190
3082
  size?: "default" | "sm" | "lg";
2191
3083
  icon?: IconComponent;
@@ -2205,33 +3097,33 @@ interface SidebarMenuButtonProps extends ButtonHTMLAttributes3<HTMLButtonElement
2205
3097
  render?: ReactElement4;
2206
3098
  asChild?: boolean;
2207
3099
  }
2208
- declare const SidebarMenuButton: ForwardRefExoticComponent_tcubfn12<SidebarMenuButtonProps & RefAttributes_miuf5612<HTMLButtonElement>>;
2209
- interface SidebarMenuActionProps extends ButtonHTMLAttributes3<HTMLButtonElement> {
3100
+ declare const SidebarMenuButton: ForwardRefExoticComponent_tcubfn16<SidebarMenuButtonProps & RefAttributes_miuf5616<HTMLButtonElement>>;
3101
+ interface SidebarMenuActionProps extends ButtonHTMLAttributes4<HTMLButtonElement> {
2210
3102
  showOnHover?: boolean;
2211
3103
  render?: ReactElement4;
2212
3104
  asChild?: boolean;
2213
3105
  }
2214
- declare const SidebarMenuAction: ForwardRefExoticComponent_tcubfn12<SidebarMenuActionProps & RefAttributes_miuf5612<HTMLButtonElement>>;
2215
- interface SidebarMenuActionsProps extends HTMLAttributes17<HTMLDivElement> {
3106
+ declare const SidebarMenuAction: ForwardRefExoticComponent_tcubfn16<SidebarMenuActionProps & RefAttributes_miuf5616<HTMLButtonElement>>;
3107
+ interface SidebarMenuActionsProps extends HTMLAttributes18<HTMLDivElement> {
2216
3108
  /** Hide the cluster until the row is hovered or focused. */
2217
3109
  showOnHover?: boolean;
2218
3110
  }
2219
3111
  /** Row-level cluster for more than one SidebarMenuAction. It owns the
2220
3112
  * positioning and publishes the whole count to the row, so the button
2221
3113
  * reserves the exact gutter the cluster occupies. */
2222
- declare const SidebarMenuActions: ForwardRefExoticComponent_tcubfn12<SidebarMenuActionsProps & RefAttributes_miuf5612<HTMLDivElement>>;
2223
- type SidebarMenuBadgeProps = HTMLAttributes17<HTMLDivElement>;
2224
- declare const SidebarMenuBadge: ForwardRefExoticComponent_tcubfn12<SidebarMenuBadgeProps & RefAttributes_miuf5612<HTMLDivElement>>;
2225
- interface SidebarMenuSkeletonProps extends HTMLAttributes17<HTMLDivElement> {
3114
+ declare const SidebarMenuActions: ForwardRefExoticComponent_tcubfn16<SidebarMenuActionsProps & RefAttributes_miuf5616<HTMLDivElement>>;
3115
+ type SidebarMenuBadgeProps = HTMLAttributes18<HTMLDivElement>;
3116
+ declare const SidebarMenuBadge: ForwardRefExoticComponent_tcubfn16<SidebarMenuBadgeProps & RefAttributes_miuf5616<HTMLDivElement>>;
3117
+ interface SidebarMenuSkeletonProps extends HTMLAttributes18<HTMLDivElement> {
2226
3118
  showIcon?: boolean;
2227
3119
  }
2228
- declare const SidebarMenuSkeleton: ForwardRefExoticComponent_tcubfn12<SidebarMenuSkeletonProps & RefAttributes_miuf5612<HTMLDivElement>>;
2229
- interface SidebarMenuSubProps extends HTMLAttributes17<HTMLUListElement> {
3120
+ declare const SidebarMenuSkeleton: ForwardRefExoticComponent_tcubfn16<SidebarMenuSkeletonProps & RefAttributes_miuf5616<HTMLDivElement>>;
3121
+ interface SidebarMenuSubProps extends HTMLAttributes18<HTMLUListElement> {
2230
3122
  /** Built-in measured-height collapse. Omitted, the sub-menu follows its
2231
3123
  * `collapsible` row's state, or stays visible without one. */
2232
3124
  open?: boolean;
2233
3125
  }
2234
- declare const SidebarMenuSub: ForwardRefExoticComponent_tcubfn12<SidebarMenuSubProps & RefAttributes_miuf5612<HTMLUListElement>>;
3126
+ declare const SidebarMenuSub: ForwardRefExoticComponent_tcubfn16<SidebarMenuSubProps & RefAttributes_miuf5616<HTMLUListElement>>;
2235
3127
  interface SidebarMenuSubButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
2236
3128
  isActive?: boolean;
2237
3129
  size?: "sm" | "md";
@@ -2241,8 +3133,8 @@ interface SidebarMenuSubButtonProps extends AnchorHTMLAttributes<HTMLAnchorEleme
2241
3133
  render?: ReactElement4;
2242
3134
  asChild?: boolean;
2243
3135
  }
2244
- declare const SidebarMenuSubButton: ForwardRefExoticComponent_tcubfn12<SidebarMenuSubButtonProps & RefAttributes_miuf5612<HTMLAnchorElement>>;
2245
- interface SidebarProps extends Omit<HTMLAttributes18<HTMLDivElement>, "defaultValue" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd" | "onAnimationIteration"> {
3136
+ declare const SidebarMenuSubButton: ForwardRefExoticComponent_tcubfn16<SidebarMenuSubButtonProps & RefAttributes_miuf5616<HTMLAnchorElement>>;
3137
+ interface SidebarProps extends Omit<HTMLAttributes19<HTMLDivElement>, "defaultValue" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd" | "onAnimationIteration"> {
2246
3138
  /** The edge it sits on; the shortcut key and the rail mirror it. Defaults to `'left'`. */
2247
3139
  side?: "left" | "right";
2248
3140
  /** `'sidebar'` sits flush with an inner border, `'floating'` lifts it onto its own card one surface level up, `'inset'` makes the main region the card. Defaults to `'sidebar'`. */
@@ -2264,9 +3156,9 @@ interface SidebarProps extends Omit<HTMLAttributes18<HTMLDivElement>, "defaultVa
2264
3156
  /** Extra classes for the sidebar column (`h-full` pins it to a bounded frame). */
2265
3157
  className?: string;
2266
3158
  /** The sidebar's parts: `Sidebar.Header`, `Sidebar.Content`, `Sidebar.Footer`. */
2267
- children?: ReactNode17;
3159
+ children?: ReactNode26;
2268
3160
  }
2269
- type SidebarComponent = ForwardRefExoticComponent8<SidebarProps & RefAttributes8<HTMLDivElement>> & {
3161
+ type SidebarComponent = ForwardRefExoticComponent11<SidebarProps & RefAttributes11<HTMLDivElement>> & {
2270
3162
  Provider: typeof SidebarProvider;
2271
3163
  Trigger: typeof SidebarTrigger;
2272
3164
  Rail: typeof SidebarRail;
@@ -2363,14 +3255,14 @@ type SidebarComponent = ForwardRefExoticComponent8<SidebarProps & RefAttributes8
2363
3255
  * @example {@include ./examples.mdx}
2364
3256
  */
2365
3257
  declare const Sidebar: SidebarComponent;
2366
- interface SidebarContentProps extends HTMLAttributes18<HTMLDivElement> {
3258
+ interface SidebarContentProps extends HTMLAttributes19<HTMLDivElement> {
2367
3259
  viewportClassName?: string;
2368
3260
  }
2369
- declare const SidebarContent: ForwardRefExoticComponent8<SidebarContentProps & RefAttributes8<HTMLDivElement>>;
3261
+ declare const SidebarContent: ForwardRefExoticComponent11<SidebarContentProps & RefAttributes11<HTMLDivElement>>;
2370
3262
  import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
2371
- import { ComponentPropsWithoutRef, ForwardRefExoticComponent as ForwardRefExoticComponent9, ReactNode as ReactNode18, RefAttributes as RefAttributes9 } from "react";
3263
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef4, ForwardRefExoticComponent as ForwardRefExoticComponent12, ReactNode as ReactNode27, RefAttributes as RefAttributes12 } from "react";
2372
3264
  import { TabsListProps as TabsListProps_6iqhkk } from "@base-ui/react";
2373
- interface TabsProps extends Omit<ComponentPropsWithoutRef<typeof TabsPrimitive.Root>, "onValueChange" | "value" | "defaultValue" | "onSelect"> {
3265
+ interface TabsProps extends Omit<ComponentPropsWithoutRef4<typeof TabsPrimitive.Root>, "onValueChange" | "value" | "defaultValue" | "onSelect"> {
2374
3266
  /** Controlled active tab value. Takes precedence over selectedIndex. */
2375
3267
  value?: string;
2376
3268
  /** Called when the active tab changes. */
@@ -2386,9 +3278,9 @@ interface TabsProps extends Omit<ComponentPropsWithoutRef<typeof TabsPrimitive.R
2386
3278
  /** Pins the segmented control to one step of the size ladder (default 36px outer, compact 28px). Defaults to the surrounding SizeProvider. */
2387
3279
  size?: SizeVariant;
2388
3280
  /** Tabs.List and Tabs.Panel children. */
2389
- children?: ReactNode18;
3281
+ children?: ReactNode27;
2390
3282
  }
2391
- type TabsComponent = ForwardRefExoticComponent9<TabsProps & RefAttributes9<HTMLDivElement>> & {
3283
+ type TabsComponent = ForwardRefExoticComponent12<TabsProps & RefAttributes12<HTMLDivElement>> & {
2392
3284
  List: typeof TabsList;
2393
3285
  Item: typeof TabItem;
2394
3286
  Panel: typeof TabPanel;
@@ -2408,30 +3300,36 @@ type TabsComponent = ForwardRefExoticComponent9<TabsProps & RefAttributes9<HTMLD
2408
3300
  *
2409
3301
  * Statics:
2410
3302
  * - `Tabs.List` — the segmented track holding the tabs.
2411
- * - `Tabs.Item` — one tab: `value`, `label`, optional `icon`.
3303
+ * - `Tabs.Item` — one tab: `value`, `label` (text, or a node such as a
3304
+ * label with a counter), optional `icon`, and `href` to render it as a link.
2412
3305
  * - `Tabs.Panel` — content shown while the tab with the same `value` is active.
2413
3306
  *
2414
3307
  * @example {@include ./examples.mdx}
2415
3308
  */
2416
3309
  declare const Tabs: TabsComponent;
2417
- type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;
2418
- declare const TabsList: ForwardRefExoticComponent9<Omit<Omit<TabsListProps_6iqhkk, "ref"> & RefAttributes9<HTMLDivElement>, "ref"> & RefAttributes9<HTMLDivElement>>;
2419
- interface TabItemProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Tab> {
3310
+ type TabsListProps = ComponentPropsWithoutRef4<typeof TabsPrimitive.List>;
3311
+ declare const TabsList: ForwardRefExoticComponent12<Omit<Omit<TabsListProps_6iqhkk, "ref"> & RefAttributes12<HTMLDivElement>, "ref"> & RefAttributes12<HTMLDivElement>>;
3312
+ interface TabItemProps extends ComponentPropsWithoutRef4<typeof TabsPrimitive.Tab> {
3313
+ /** The tab's value, matched by `Tabs.Panel` and the root's `value`. */
2420
3314
  value: string;
3315
+ /** Leading icon; its stroke thickens while the tab is hovered or active. */
2421
3316
  icon?: IconComponent;
2422
- label: string;
3317
+ /** The label: text, or a node such as text with a counter or a badge. */
3318
+ label: ReactNode27;
3319
+ /** Render the tab as an anchor to this URL (link tabs): pressing it follows the link and selects the tab. */
3320
+ href?: string;
2423
3321
  /** @internal Auto-assigned by TabsList. */
2424
3322
  _index?: number;
2425
3323
  }
2426
- declare const TabItem: ForwardRefExoticComponent9<TabItemProps & RefAttributes9<HTMLButtonElement>>;
2427
- interface TabPanelProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Panel> {
3324
+ declare const TabItem: ForwardRefExoticComponent12<TabItemProps & RefAttributes12<HTMLButtonElement>>;
3325
+ interface TabPanelProps extends ComponentPropsWithoutRef4<typeof TabsPrimitive.Panel> {
2428
3326
  value: string;
2429
3327
  }
2430
- declare const TabPanel: ForwardRefExoticComponent9<TabPanelProps & RefAttributes9<HTMLDivElement>>;
2431
- import { ForwardRefExoticComponent as ForwardRefExoticComponent10, HTMLAttributes as HTMLAttributes19, ReactNode as ReactNode19, RefAttributes as RefAttributes10 } from "react";
2432
- interface TabsSubtleProps extends Omit<HTMLAttributes19<HTMLDivElement>, "onSelect"> {
3328
+ declare const TabPanel: ForwardRefExoticComponent12<TabPanelProps & RefAttributes12<HTMLDivElement>>;
3329
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent13, HTMLAttributes as HTMLAttributes20, ReactNode as ReactNode28, RefAttributes as RefAttributes13 } from "react";
3330
+ interface TabsSubtleProps extends Omit<HTMLAttributes20<HTMLDivElement>, "onSelect"> {
2433
3331
  /** TabsSubtle.Item children, and optionally the TabsSubtle.Panel children they select. */
2434
- children: ReactNode19;
3332
+ children: ReactNode28;
2435
3333
  /** Index of the currently selected tab. Controlled — pair it with `onSelect`. */
2436
3334
  selectedIndex?: number;
2437
3335
  /** Selected tab on first render when uncontrolled. Defaults to `0`. */
@@ -2445,7 +3343,7 @@ interface TabsSubtleProps extends Omit<HTMLAttributes19<HTMLDivElement>, "onSele
2445
3343
  /** Pins the tabs to one step of the size ladder (default 36px, compact 28px). Defaults to the surrounding SizeProvider. */
2446
3344
  size?: SizeVariant;
2447
3345
  }
2448
- type TabsSubtleComponent = ForwardRefExoticComponent10<TabsSubtleProps & RefAttributes10<HTMLDivElement>> & {
3346
+ type TabsSubtleComponent = ForwardRefExoticComponent13<TabsSubtleProps & RefAttributes13<HTMLDivElement>> & {
2449
3347
  Item: typeof TabsSubtleItem;
2450
3348
  Panel: typeof TabsSubtlePanel;
2451
3349
  };
@@ -2472,7 +3370,7 @@ type TabsSubtleComponent = ForwardRefExoticComponent10<TabsSubtleProps & RefAttr
2472
3370
  * @example {@include ./examples.mdx}
2473
3371
  */
2474
3372
  declare const TabsSubtle: TabsSubtleComponent;
2475
- interface TabsSubtleItemProps extends HTMLAttributes19<HTMLButtonElement> {
3373
+ interface TabsSubtleItemProps extends HTMLAttributes20<HTMLButtonElement> {
2476
3374
  /** Icon displayed in the tab. */
2477
3375
  icon?: IconComponent;
2478
3376
  /** Text label for the tab. */
@@ -2480,8 +3378,8 @@ interface TabsSubtleItemProps extends HTMLAttributes19<HTMLButtonElement> {
2480
3378
  /** Position index within the tab list. */
2481
3379
  index: number;
2482
3380
  }
2483
- declare const TabsSubtleItem: ForwardRefExoticComponent10<TabsSubtleItemProps & RefAttributes10<HTMLButtonElement>>;
2484
- interface TabsSubtlePanelProps extends HTMLAttributes19<HTMLDivElement> {
3381
+ declare const TabsSubtleItem: ForwardRefExoticComponent13<TabsSubtleItemProps & RefAttributes13<HTMLButtonElement>>;
3382
+ interface TabsSubtlePanelProps extends HTMLAttributes20<HTMLDivElement> {
2485
3383
  /** Index of this panel; rendered only when it matches the selected tab. */
2486
3384
  index: number;
2487
3385
  /** Currently selected tab index. Defaults to the enclosing TabsSubtle's selection. */
@@ -2489,11 +3387,11 @@ interface TabsSubtlePanelProps extends HTMLAttributes19<HTMLDivElement> {
2489
3387
  /** Must match the TabsSubtle idPrefix. Defaults to the enclosing TabsSubtle's prefix. */
2490
3388
  idPrefix?: string;
2491
3389
  /** Panel content, only rendered when selected. */
2492
- children: ReactNode19;
3390
+ children: ReactNode28;
2493
3391
  }
2494
- declare const TabsSubtlePanel: ForwardRefExoticComponent10<TabsSubtlePanelProps & RefAttributes10<HTMLDivElement>>;
2495
- import { ReactNode as ReactNode21 } from "react";
2496
- import { HTMLAttributes as HTMLAttributes20, ReactNode as ReactNode20, RefObject as RefObject12 } from "react";
3392
+ declare const TabsSubtlePanel: ForwardRefExoticComponent13<TabsSubtlePanelProps & RefAttributes13<HTMLDivElement>>;
3393
+ import { MouseEvent as MouseEvent3, ReactNode as ReactNode30 } from "react";
3394
+ import { HTMLAttributes as HTMLAttributes21, ReactNode as ReactNode29, RefObject as RefObject13 } from "react";
2497
3395
  /** What opened the overlay: the pressed trigger and the press point. */
2498
3396
  interface MorphOrigin {
2499
3397
  trigger?: HTMLElement;
@@ -2502,18 +3400,18 @@ interface MorphOrigin {
2502
3400
  y: number;
2503
3401
  };
2504
3402
  }
2505
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn13 } from "react";
2506
- import { RefAttributes as RefAttributes_miuf5613 } from "react";
2507
- import { JSX as JSX_1kxb16 } from "react";
3403
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn17 } from "react";
3404
+ import { RefAttributes as RefAttributes_miuf5617 } from "react";
3405
+ import { JSX as JSX_1kxb22 } from "react";
2508
3406
  type DialogSlotProps = SlotProps;
2509
3407
  /** The open state and origin `DialogState` provides, for content built on another Base UI popup (Sheet). */
2510
3408
  declare const useDialogState: () => {
2511
3409
  open: boolean;
2512
- origin: RefObject12<MorphOrigin>;
3410
+ origin: RefObject13<MorphOrigin>;
2513
3411
  };
2514
- declare const DialogTrigger: ForwardRefExoticComponent_tcubfn13<SlotProps & RefAttributes_miuf5613<HTMLButtonElement>>;
2515
- declare const DialogClose: ForwardRefExoticComponent_tcubfn13<SlotProps & RefAttributes_miuf5613<HTMLButtonElement>>;
2516
- interface DialogContentProps extends HTMLAttributes20<HTMLDivElement> {
3412
+ declare const DialogTrigger: ForwardRefExoticComponent_tcubfn17<SlotProps & RefAttributes_miuf5617<HTMLButtonElement>>;
3413
+ declare const DialogClose: ForwardRefExoticComponent_tcubfn17<SlotProps & RefAttributes_miuf5617<HTMLButtonElement>>;
3414
+ interface DialogContentProps extends HTMLAttributes21<HTMLDivElement> {
2517
3415
  /** Width: 400, 540, or 880. Compact regions narrow each by 1 notch: 360,
2518
3416
  * 480, 800. `xl` is the canvas for composed layouts — a sidebar beside a
2519
3417
  * panel — which usually pair it with `className="p-0"` and a fixed
@@ -2534,7 +3432,7 @@ interface DialogContentProps extends HTMLAttributes20<HTMLDivElement> {
2534
3432
  * edge still. Defaults to `"center"`. */
2535
3433
  position?: "center" | "top";
2536
3434
  /** Where the panel grows from (see Morph): the pressed trigger (its center when none), the press point, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
2537
- from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject12<HTMLElement | null>;
3435
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject13<HTMLElement | null>;
2538
3436
  /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
2539
3437
  effect?: "goo" | "morph" | "slide" | "fade";
2540
3438
  /** Hide the trigger while open, so it reads as turning into the panel. Defaults to `false`. */
@@ -2542,14 +3440,14 @@ interface DialogContentProps extends HTMLAttributes20<HTMLDivElement> {
2542
3440
  /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'slow'`. */
2543
3441
  tier?: "moderate" | "slow";
2544
3442
  /** Dialog content. Everything inside reads the dialog's surface level as its substrate. */
2545
- children?: ReactNode20;
3443
+ children?: ReactNode29;
2546
3444
  }
2547
- declare const DialogContent: ForwardRefExoticComponent_tcubfn13<DialogContentProps & RefAttributes_miuf5613<HTMLDivElement>>;
2548
- type Element_12xgc16 = JSX_1kxb16["Element"];
2549
- declare function DialogHeader({ className,...props }: HTMLAttributes20<HTMLDivElement>): Element_12xgc16;
2550
- declare function DialogFooter({ className,...props }: HTMLAttributes20<HTMLDivElement>): Element_12xgc16;
2551
- declare const DialogTitle: ForwardRefExoticComponent_tcubfn13<HTMLAttributes20<HTMLHeadingElement> & RefAttributes_miuf5613<HTMLHeadingElement>>;
2552
- declare const DialogDescription: ForwardRefExoticComponent_tcubfn13<HTMLAttributes20<HTMLParagraphElement> & RefAttributes_miuf5613<HTMLParagraphElement>>;
3445
+ declare const DialogContent: ForwardRefExoticComponent_tcubfn17<DialogContentProps & RefAttributes_miuf5617<HTMLDivElement>>;
3446
+ type Element_12xgc22 = JSX_1kxb22["Element"];
3447
+ declare function DialogHeader({ className,...props }: HTMLAttributes21<HTMLDivElement>): Element_12xgc22;
3448
+ declare function DialogFooter({ className,...props }: HTMLAttributes21<HTMLDivElement>): Element_12xgc22;
3449
+ declare const DialogTitle: ForwardRefExoticComponent_tcubfn17<HTMLAttributes21<HTMLHeadingElement> & RefAttributes_miuf5617<HTMLHeadingElement>>;
3450
+ declare const DialogDescription: ForwardRefExoticComponent_tcubfn17<HTMLAttributes21<HTMLParagraphElement> & RefAttributes_miuf5617<HTMLParagraphElement>>;
2553
3451
  interface DialogStateProps {
2554
3452
  open?: boolean;
2555
3453
  defaultOpen?: boolean;
@@ -2560,14 +3458,14 @@ interface DialogStateProps {
2560
3458
  trigger?: Element;
2561
3459
  event?: Event;
2562
3460
  }) => void;
2563
- }) => ReactNode20;
3461
+ }) => ReactNode29;
2564
3462
  }
2565
3463
  /**
2566
3464
  * A dialog's open state, held here (not in Base UI's Root) because the morph
2567
3465
  * reads it, and the open event tells it which trigger was pressed. Also
2568
3466
  * scopes `Morph.Part` pairs. AlertDialog shares it.
2569
3467
  */
2570
- declare function DialogState({ open, defaultOpen, onOpenChange, children }: DialogStateProps): Element_12xgc16;
3468
+ declare function DialogState({ open, defaultOpen, onOpenChange, children }: DialogStateProps): Element_12xgc22;
2571
3469
  interface DialogProps {
2572
3470
  /** Controlled open state. */
2573
3471
  open?: boolean;
@@ -2578,7 +3476,7 @@ interface DialogProps {
2578
3476
  /** Traps focus and locks page scroll while open. Defaults to `true`. */
2579
3477
  modal?: boolean;
2580
3478
  /** The trigger and the content — `Dialog.Trigger` plus a `Dialog.Content`. */
2581
- children?: ReactNode20;
3479
+ children?: ReactNode29;
2582
3480
  }
2583
3481
  /**
2584
3482
  * 3 widths, grown out of whatever opened them.
@@ -2612,22 +3510,41 @@ interface DialogProps {
2612
3510
  *
2613
3511
  * @example {@include ./examples.mdx}
2614
3512
  */
2615
- declare function Dialog({ children, open, defaultOpen, onOpenChange, modal }: DialogProps): Element_12xgc16;
2616
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn14 } from "react";
2617
- import { RefAttributes as RefAttributes_miuf5614 } from "react";
2618
- import { JSX as JSX_1kxb17 } from "react";
2619
- declare const AlertDialogContent: ForwardRefExoticComponent_tcubfn14<DialogContentProps & RefAttributes_miuf5614<HTMLDivElement>>;
3513
+ declare function Dialog({ children, open, defaultOpen, onOpenChange, modal }: DialogProps): Element_12xgc22;
3514
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn18 } from "react";
3515
+ import { RefAttributes as RefAttributes_miuf5618 } from "react";
3516
+ import { JSX as JSX_1kxb23 } from "react";
3517
+ type ButtonVariant2 = NonNullable<ButtonProps["variant"]>;
3518
+ declare const AlertDialogContent: ForwardRefExoticComponent_tcubfn18<DialogContentProps & RefAttributes_miuf5618<HTMLDivElement>>;
3519
+ interface AlertDialogActionProps extends Omit<SlotProps, "onClick"> {
3520
+ /** The confirm. Return a promise to keep the dialog open, the button loading and every way out locked until it settles: it closes on resolve and stays open on reject. A plain return closes it at once, or, with `pending` set, once `pending` turns true and back to false. Call `event.preventDefault()` to keep it open after a plain return. */
3521
+ onClick?: (event: MouseEvent3<HTMLButtonElement>) => unknown;
3522
+ /** Called with the reason when the promise `onClick` returned rejects; the dialog stays open. */
3523
+ onError?: (error: unknown) => void;
3524
+ /** Holds the pending state from outside (a mutation's `isPending`): loading, and the dialog locked, while true. Once set, a plain `onClick` (`() => mutate()`) leaves the dialog open until `pending` goes true and back to false, then closes it — on failure too; return the promise (`mutateAsync`) to stay open when it rejects. */
3525
+ pending?: boolean;
3526
+ /** The Button's variant when there is no `render` element. Defaults to `"primary"`. */
3527
+ variant?: ButtonVariant2;
3528
+ }
3529
+ /** The confirm button: runs `onClick`, waits on the promise it returns, then closes. */
3530
+ declare const AlertDialogAction: ForwardRefExoticComponent_tcubfn18<AlertDialogActionProps & RefAttributes_miuf5618<HTMLButtonElement>>;
3531
+ interface AlertDialogCancelProps extends SlotProps {
3532
+ /** The Button's variant when there is no `render` element. Defaults to `"ghost"`. */
3533
+ variant?: ButtonVariant2;
3534
+ }
3535
+ /** Closes without confirming; disabled while the action runs. */
3536
+ declare const AlertDialogCancel: ForwardRefExoticComponent_tcubfn18<AlertDialogCancelProps & RefAttributes_miuf5618<HTMLButtonElement>>;
2620
3537
  interface AlertDialogProps {
2621
3538
  /** Controlled open state. */
2622
3539
  open?: boolean;
2623
3540
  /** Initial open state, for an uncontrolled alert dialog. Defaults to `false`. */
2624
3541
  defaultOpen?: boolean;
2625
- /** Called when the dialog opens or closes. */
3542
+ /** Called when the dialog opens or closes. Not called for a dismissal blocked while an action runs. */
2626
3543
  onOpenChange?: (open: boolean) => void;
2627
3544
  /** The trigger and the content — `AlertDialog.Trigger` plus an `AlertDialog.Content`. */
2628
- children?: ReactNode21;
3545
+ children?: ReactNode30;
2629
3546
  }
2630
- type Element_12xgc17 = JSX_1kxb17["Element"];
3547
+ type Element_12xgc23 = JSX_1kxb23["Element"];
2631
3548
  /**
2632
3549
  * A dialog that asks before something happens and waits for an answer.
2633
3550
  *
@@ -2639,17 +3556,31 @@ type Element_12xgc17 = JSX_1kxb17["Element"];
2639
3556
  * and lifts 4 surface levels. Unlike Dialog it has no ✕ unless
2640
3557
  * `showCloseButton` asks for one.
2641
3558
  *
2642
- * Statics: the same parts as Dialog — `AlertDialog.Trigger`,
2643
- * `AlertDialog.Content`, `AlertDialog.Header`, `AlertDialog.Footer`,
2644
- * `AlertDialog.Title`, `AlertDialog.Description` and `AlertDialog.Close`.
3559
+ * `AlertDialog.Action` is the confirm. When its `onClick` returns a promise,
3560
+ * the button folds into a spinner and the dialog holds still: Cancel greys
3561
+ * out, and Escape and every close are ignored until the promise settles. It
3562
+ * closes when the promise resolves and stays open when it rejects, handing
3563
+ * the reason to `onError`, so the person can try again or cancel. With a
3564
+ * mutation's state in `pending` instead, a plain `onClick={() => mutate()}`
3565
+ * keeps the dialog open, locked while `pending` is true, and closes it once
3566
+ * `pending` falls back to false.
3567
+ *
3568
+ * Statics:
3569
+ * - `AlertDialog.Action` — the confirm button: `onClick` (may return a
3570
+ * promise), `onError`, `pending`, `variant`, or `render` / `asChild`.
3571
+ * - `AlertDialog.Cancel` — closes without confirming, disabled while the
3572
+ * action runs: `variant` (ghost), or `render` / `asChild`.
3573
+ * - The same parts as Dialog — `AlertDialog.Trigger`, `AlertDialog.Content`,
3574
+ * `AlertDialog.Header`, `AlertDialog.Footer`, `AlertDialog.Title`,
3575
+ * `AlertDialog.Description` and `AlertDialog.Close`.
2645
3576
  *
2646
3577
  * @example {@include ./examples.mdx}
2647
3578
  */
2648
- declare function AlertDialog({ children, open, defaultOpen, onOpenChange }: AlertDialogProps): Element_12xgc17;
2649
- import { ReactNode as ReactNode23, RefObject as RefObject13 } from "react";
2650
- import { HTMLAttributes as HTMLAttributes21, ReactElement as ReactElement5, ReactNode as ReactNode22 } from "react";
2651
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn15 } from "react";
2652
- import { RefAttributes as RefAttributes_miuf5615 } from "react";
3579
+ declare function AlertDialog({ children, open, defaultOpen, onOpenChange }: AlertDialogProps): Element_12xgc23;
3580
+ import { ReactNode as ReactNode34, RefObject as RefObject19 } from "react";
3581
+ import { HTMLAttributes as HTMLAttributes22, ReactElement as ReactElement5, ReactNode as ReactNode31 } from "react";
3582
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn19 } from "react";
3583
+ import { RefAttributes as RefAttributes_miuf5619 } from "react";
2653
3584
  /** What MenuItem hands to the popup's primitive wrapper. `element` is the
2654
3585
  * styled row div (visuals + fluid hover registration, no children); `children`
2655
3586
  * is the row content (icon, label, check). The dropdown wraps them in its
@@ -2662,17 +3593,18 @@ interface MenuItemRenderOptions {
2662
3593
  checkbox: boolean;
2663
3594
  /** The item's checked state (radio and checkbox items). */
2664
3595
  checked?: boolean;
2665
- /** The item's index — doubles as the radio value. */
2666
- value: number;
3596
+ /** The radio value: the item's index, or a `Dropdown.RadioItem`'s own value. */
3597
+ value: unknown;
2667
3598
  disabled?: boolean;
2668
- label: string;
3599
+ /** Typeahead text. Undefined for a children-based row: the primitive reads its text content. */
3600
+ label?: string;
2669
3601
  closeOnClick: boolean;
2670
3602
  /** The row's activation. It goes on the primitive, not on `element`: Base
2671
3603
  * UI's Enter/Space activation calls the primitive's own `onClick` prop and
2672
3604
  * never sees a handler on the render element. */
2673
3605
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
2674
3606
  element: ReactElement5;
2675
- children: ReactNode22;
3607
+ children: ReactNode31;
2676
3608
  }
2677
3609
  interface DropdownContextValue {
2678
3610
  registerItem: (index: number, element: HTMLElement | null) => void;
@@ -2698,103 +3630,69 @@ interface DropdownContextValue {
2698
3630
  /** Local addition. Toggles the row at an AUTHORED index (see
2699
3631
  * `sourceIndex`). Present with `selfManaged`. */
2700
3632
  toggleIndex?: (sourceIndex: number) => void;
3633
+ /** Local addition. Keeps the highlight on a row while its submenu is open. */
3634
+ pin?: (index: number, on: boolean) => void;
3635
+ /** Local addition. A value-checked row (`Dropdown.CheckboxItem`,
3636
+ * `Dropdown.RadioItem`) reports itself for the merged selection background. */
3637
+ reportChecked?: (index: number, on: boolean) => void;
2701
3638
  }
2702
3639
  declare function useDropdown(): DropdownContextValue;
2703
3640
  /** Null-safe context read for callers that render outside a provider. */
2704
3641
  declare function useDropdownMaybe(): DropdownContextValue | null;
2705
- interface MenuItemProps extends HTMLAttributes21<HTMLDivElement> {
3642
+ interface MenuItemProps extends Omit<HTMLAttributes22<HTMLDivElement>, "onSelect"> {
2706
3643
  /** Optional leading icon. When omitted, the row renders text-only with no
2707
3644
  * reserved icon column. */
2708
3645
  icon?: IconComponent;
2709
- label: string;
2710
- index: number;
3646
+ /** The row text, also its typeahead text and what a `Dropdown.Search filter` matches. Omit it to pass the row's content as `children`. */
3647
+ label?: string;
3648
+ /** Position among the panel's rows, for the index-based selection (`checkedIndex`). Omitted, the row takes its place in document order. */
3649
+ index?: number;
3650
+ /** The row's content when there is no `label`: text, or any nodes (an svg among them takes the icon size). */
3651
+ children?: ReactNode31;
2711
3652
  /** When a boolean, the item is a radio-style option (role="menuitemradio"
2712
3653
  * with aria-checked). When undefined, it is a plain action item
2713
3654
  * (role="menuitem"), unless the panel owns the selection — then the row
2714
3655
  * reads its checked state off the panel and toggles it on activation. */
2715
3656
  checked?: boolean;
2716
- onSelect?: () => void;
3657
+ /** Called when the row is picked, by pointer or keyboard. Call `event.preventDefault()` to keep the menu open. */
3658
+ onSelect?: (event: Event) => void;
3659
+ /** Dims the row; the pointer and the keyboard skip it. Defaults to `false`. */
2717
3660
  disabled?: boolean;
2718
3661
  /** Popup-only (inside DropdownContent): whether activating the item closes
2719
- * the menu. Ignored in the inline Dropdown panel. @default true */
3662
+ * the menu. Ignored in the inline Dropdown panel. Defaults to `true` (`false` in multiple selection). */
2720
3663
  closeOnClick?: boolean;
3664
+ /** Indents the row to the label column of rows with an icon. Defaults to `false`. */
3665
+ inset?: boolean;
3666
+ /** A keyboard shortcut shown muted at the row's end, e.g. `⌘K` (see Dropdown.Shortcut). */
3667
+ shortcut?: ReactNode31;
2721
3668
  /** Internal: the row's authored index, stamped by a filtering panel that
2722
3669
  * re-indexed the visible rows. Selection is keyed on it. */
2723
3670
  sourceIndex?: number;
2724
- }
2725
- declare const MenuItem2: ForwardRefExoticComponent_tcubfn15<MenuItemProps & RefAttributes_miuf5615<HTMLDivElement>>;
2726
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn16 } from "react";
2727
- import { RefAttributes as RefAttributes_miuf5616 } from "react";
2728
- import { JSX as JSX_1kxb18 } from "react";
2729
- interface ContextMenuItemProps extends MenuItemProps {
2730
- /** Keyboard shortcut shown at the row's end, e.g. `⌘C`. */
2731
- shortcut?: string;
2732
- }
2733
- declare const ContextMenuItem: ForwardRefExoticComponent_tcubfn16<ContextMenuItemProps & RefAttributes_miuf5616<HTMLDivElement>>;
2734
- interface ContextMenuContentProps {
2735
- /** Where the menu grows from (see Morph): the press point, its own center, a viewport edge, or a ref to any element. Defaults to `'pointer'`. */
2736
- from?: "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject13<HTMLElement | null>;
2737
- /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
2738
- effect?: "goo" | "morph" | "slide" | "fade";
2739
- /** Hide the `from` element while open, so it reads as turning into the menu. Defaults to `false`. */
2740
- hideSource?: boolean;
2741
- /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
2742
- tier?: "moderate" | "slow";
2743
- /** Portal target. Defaults to the document body. */
2744
- container?: HTMLElement | null;
2745
- /** Extra classes for the menu surface — it is 14rem wide by default. */
3671
+ /** Internal: the selection primitive a `Dropdown.CheckboxItem` / `Dropdown.RadioItem` forces. */
3672
+ kind?: "checkbox" | "radio";
3673
+ /** Internal: a `Dropdown.RadioItem`'s value. */
3674
+ value?: unknown;
3675
+ /** Internal: keeps the panel's highlight on the row (a `Dropdown.SubTrigger` whose submenu is open). */
3676
+ pinned?: boolean;
3677
+ }
3678
+ interface DropdownShortcutProps extends HTMLAttributes22<HTMLElement> {
3679
+ /** The keys, e.g. `⇧⌘P`. */
3680
+ children?: ReactNode31;
3681
+ /** Extra classes. */
2746
3682
  className?: string;
2747
- /** `ContextMenu.Item` rows, plus `ContextMenu.Label` and `ContextMenu.Separator`. */
2748
- children?: ReactNode23;
2749
- }
2750
- declare const ContextMenuContent: ForwardRefExoticComponent_tcubfn16<ContextMenuContentProps & RefAttributes_miuf5616<HTMLDivElement>>;
2751
- interface ContextMenuProps {
2752
- /** Controlled open state. Pair with `onOpenChange`. */
2753
- open?: boolean;
2754
- /** Initial open state, for an uncontrolled menu. Defaults to `false`. */
2755
- defaultOpen?: boolean;
2756
- /** Called when the menu opens or closes. */
2757
- onOpenChange?: (open: boolean) => void;
2758
- /** Turns the trigger area back into a plain one: no menu on right click or long press. Defaults to `false`. */
2759
- disabled?: boolean;
2760
- /** Pins the rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, they follow the surrounding SizeProvider. */
2761
- size?: SizeVariant;
2762
- /** The area and the menu — `ContextMenu.Trigger` plus a `ContextMenu.Content`. */
2763
- children?: ReactNode23;
2764
3683
  }
2765
- type Element_12xgc18 = JSX_1kxb18["Element"];
2766
- /**
2767
- * A menu that grows out of the pointer on right click, or on a long press on
2768
- * touch: the surface swells from the exact point you pressed into the menu.
2769
- *
2770
- * The morph comes from the shared engine (see Morph): from the press point
2771
- * by default, or from its own center, a viewport edge or any element, with
2772
- * the goo, a plain morph, a slide or a fade. The rows are Dropdown's — the
2773
- * fluid hover background gliding between them, icons that firm up under it,
2774
- * dimmed disabled rows the pointer skips — plus a keyboard shortcut at the
2775
- * end of a row. The menu lifts 2 surface levels off its substrate. Built on
2776
- * Base UI's ContextMenu: it opens at the pointer and flips or shifts to stay
2777
- * on screen, arrow keys and typeahead move between rows, and picking a row,
2778
- * Escape or an outside press closes it.
2779
- *
2780
- * Statics:
2781
- * - `ContextMenu.Trigger` — the area that opens it (a `div`).
2782
- * - `ContextMenu.Content` — the menu: the morph options `from`, `effect`,
2783
- * `hideSource`, `tier`.
2784
- * - `ContextMenu.Item` — a row: `index`, `label`, `icon`, `shortcut`,
2785
- * `onSelect`, `disabled`.
2786
- * - `ContextMenu.Label` / `ContextMenu.Separator` — a caption over a run of
2787
- * rows and a rule between runs (Dropdown's).
2788
- *
2789
- * @example {@include ./examples.mdx}
2790
- */
2791
- declare function ContextMenu({ open, defaultOpen, onOpenChange, disabled, size, children }: ContextMenuProps): Element_12xgc18;
3684
+ /** A muted caption at the end of a row: the row's keyboard shortcut. */
3685
+ declare const DropdownShortcut: ForwardRefExoticComponent_tcubfn19<DropdownShortcutProps & RefAttributes_miuf5619<HTMLElement>>;
3686
+ declare const MenuItem2: ForwardRefExoticComponent_tcubfn19<MenuItemProps & RefAttributes_miuf5619<HTMLDivElement>>;
3687
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn22 } from "react";
3688
+ import { RefAttributes as RefAttributes_miuf5622 } from "react";
3689
+ import { JSX as JSX_1kxb26 } from "react";
2792
3690
  import { MenuTriggerProps } from "@base-ui/react/menu";
2793
- import { Menu as Menu2 } from "@base-ui/react/menu";
2794
- import { ComponentProps, ForwardRefExoticComponent as ForwardRefExoticComponent11, HTMLAttributes as HTMLAttributes23, ReactNode as ReactNode24, RefAttributes as RefAttributes11, RefObject as RefObject15 } from "react";
2795
- import { HTMLAttributes as HTMLAttributes22, InputHTMLAttributes as InputHTMLAttributes4 } from "react";
2796
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn17 } from "react";
2797
- import { RefAttributes as RefAttributes_miuf5617 } from "react";
3691
+ import { Menu as Menu3 } from "@base-ui/react/menu";
3692
+ import { ComponentProps as ComponentProps2, ForwardRefExoticComponent as ForwardRefExoticComponent14, HTMLAttributes as HTMLAttributes25, ReactNode as ReactNode33, RefAttributes as RefAttributes14, RefObject as RefObject18 } from "react";
3693
+ import { HTMLAttributes as HTMLAttributes23, InputHTMLAttributes as InputHTMLAttributes4 } from "react";
3694
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn20 } from "react";
3695
+ import { RefAttributes as RefAttributes_miuf5620 } from "react";
2798
3696
  interface DropdownSearchProps extends Omit<InputHTMLAttributes4<HTMLInputElement>, "value" | "onChange" | "size" | "defaultValue"> {
2799
3697
  /** The query. Filter the MenuItems you render against it. Optional under `filter`, where the panel holds the query. */
2800
3698
  value?: string;
@@ -2810,31 +3708,271 @@ interface DropdownSearchProps extends Omit<InputHTMLAttributes4<HTMLInputElement
2810
3708
  /** Take focus when the popup opens. @default true */
2811
3709
  autoFocus?: boolean;
2812
3710
  }
2813
- declare const DropdownSearch: ForwardRefExoticComponent_tcubfn17<DropdownSearchProps & RefAttributes_miuf5617<HTMLInputElement>>;
2814
- declare const DropdownEmpty: ForwardRefExoticComponent_tcubfn17<HTMLAttributes22<HTMLDivElement> & RefAttributes_miuf5617<HTMLDivElement>>;
2815
- import { JSX as JSX_1kxb19 } from "react";
2816
- interface DropdownProps extends HTMLAttributes23<HTMLDivElement> {
2817
- /** `Dropdown.Item` rows, plus `Dropdown.Label` and `Dropdown.Separator`. */
2818
- children: ReactNode24;
2819
- /** The checked row: drives the animated selected background and the rows' radio semantics. */
2820
- checkedIndex?: number;
2821
- /** Uncontrolled twin of `checkedIndex`: the panel owns the selection, so rows need no `checked` or `onSelect` of their own. */
2822
- defaultCheckedIndex?: number;
2823
- /** Called with the newly checked row, or `undefined` when nothing is checked. */
2824
- onCheckedIndexChange?: (index: number | undefined) => void;
2825
- /** Multiple selection: the checked rows. Rows become checkbox items and contiguous runs share one merged background (see Checkbox.Group). */
2826
- checkedIndices?: number[];
2827
- /** Uncontrolled twin of `checkedIndices`: the panel toggles rows itself. */
2828
- defaultCheckedIndices?: number[];
2829
- /** Called with every checked row after a toggle. */
2830
- onCheckedIndicesChange?: (indices: number[]) => void;
2831
- /** Pins the panel's rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, they follow the surrounding SizeProvider. */
2832
- size?: SizeVariant;
2833
- /** Extra classes for the panel surface — it is 18rem wide by default. */
2834
- className?: string;
3711
+ declare const DropdownSearch: ForwardRefExoticComponent_tcubfn20<DropdownSearchProps & RefAttributes_miuf5620<HTMLInputElement>>;
3712
+ declare const DropdownEmpty: ForwardRefExoticComponent_tcubfn20<HTMLAttributes23<HTMLDivElement> & RefAttributes_miuf5620<HTMLDivElement>>;
3713
+ import { Menu as Menu2 } from "@base-ui/react/menu";
3714
+ import { ComponentProps, HTMLAttributes as HTMLAttributes24, ReactNode as ReactNode32, RefObject as RefObject17 } from "react";
3715
+ import { Dispatch as Dispatch2, MutableRefObject as MutableRefObject2, RefObject as RefObject15, SetStateAction as SetStateAction2 } from "react";
3716
+ interface ItemRect {
3717
+ top: number;
3718
+ height: number;
3719
+ left: number;
3720
+ width: number;
3721
+ }
3722
+ interface UseFluidHoverOptions {
3723
+ /**
3724
+ * Which direction to resolve the nearest item along.
3725
+ * "y" — vertical lists (default): closest by top/height
3726
+ * "x" — horizontal strips: closest by left/width
3727
+ * "xy" — 2-D grids: closest card across both rows AND columns,
3728
+ * measured by Euclidean distance to each item's center
3729
+ */
3730
+ axis?: "x" | "y" | "xy";
3731
+ /**
3732
+ * Makes an item invisible to hit-testing without unregistering it — for
3733
+ * rows that stay mounted while clipped away (a collapsed sub-tree).
3734
+ * Unregistering would invalidate every measurement; a skipped item keeps
3735
+ * the set stable. Consulted per mouse move, so keep it cheap.
3736
+ */
3737
+ isItemDisabled?: (element: HTMLElement) => boolean;
3738
+ /**
3739
+ * Whether a click that lands between items (a gap, the padding, past the
3740
+ * last row) is routed to the highlighted item, so what is lit is what a
3741
+ * click hits. On by default: in a menu or a list the highlight is a
3742
+ * promise about the click. Pass `false` where empty space should stay
3743
+ * inert (rows with destructive actions, generous whitespace), or
3744
+ * `{ maxDistance }` to route only clicks within that many pixels of the
3745
+ * highlighted item's edge.
3746
+ */
3747
+ gapClick?: boolean | {
3748
+ maxDistance?: number;
3749
+ };
3750
+ }
3751
+ interface UseFluidHoverReturn {
3752
+ activeIndex: number | null;
3753
+ setActiveIndex: Dispatch2<SetStateAction2<number | null>>;
3754
+ itemRects: ItemRect[];
3755
+ /**
3756
+ * True once every registered item has been measured and no remeasure is
3757
+ * pending, i.e. `itemRects` describes the current item set. Gate absolutely
3758
+ * positioned overlays on it: an overlay that mounts against a rect a later
3759
+ * pass still corrects animates from the wrong place to the right one, which
3760
+ * reads as the highlight sliding in from another row.
3761
+ */
3762
+ isMeasured: boolean;
3763
+ sessionRef: MutableRefObject2<number>;
3764
+ handlers: {
3765
+ onMouseMove: (e: React.MouseEvent) => void;
3766
+ onMouseEnter: () => void;
3767
+ onMouseLeave: () => void;
3768
+ /**
3769
+ * Routes a click that lands between items (a gap, the padding, past the
3770
+ * last row) to the highlighted item, so the highlight and the click agree:
3771
+ * what is lit is what a click hits. A click inside an item is left to the
3772
+ * item. Disabled items (`isItemDisabled`) are never activated.
3773
+ */
3774
+ onClick: (e: React.MouseEvent) => void;
3775
+ };
3776
+ registerItem: (index: number, element: HTMLElement | null) => void;
3777
+ /**
3778
+ * Invalidates the published rects and runs the hook's coalesced measurement
3779
+ * pass again, holding `isMeasured` false until it settles. Reach for it when
3780
+ * the rects may be wrong and showing an overlay against them would misplace
3781
+ * it: a popup that stays mounted between opens keeps its items registered,
3782
+ * so nothing else would notice that its rects were taken while it was
3783
+ * hidden. Registration, item resize, and container resize already trigger
3784
+ * a pass; do not call this on `children` changes.
3785
+ */
3786
+ remeasure: () => void;
3787
+ /**
3788
+ * Re-reads the rects synchronously, keeping `isMeasured` as it is. Only for
3789
+ * layout that moves the rows under a visible overlay frame by frame (the
3790
+ * accordion re-measures inside its height animation). Everything else
3791
+ * wants `remeasure`, or nothing.
3792
+ */
3793
+ measureItems: () => void;
3794
+ }
3795
+ declare function useFluidHover<T extends HTMLElement>(containerRef: RefObject15<T | null>, options?: UseFluidHoverOptions): UseFluidHoverReturn;
3796
+ /**
3797
+ * Registers an item's element with its list for as long as it is mounted.
3798
+ * The one way rows join a list: pass the hook's `registerItem` (or the copy
3799
+ * a context hands down), the row's index, and its ref. Either may be
3800
+ * missing for a row rendered outside a list (a standalone card, an accordion
3801
+ * item that is not grouped); then nothing is registered.
3802
+ */
3803
+ declare function useRegisterFluidHoverItem(registerItem: ((index: number, element: HTMLElement | null) => void) | undefined, index: number | undefined, ref: RefObject15<HTMLElement | null>): void;
3804
+ import { JSX as JSX_1kxb24 } from "react";
3805
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn21 } from "react";
3806
+ import { RefAttributes as RefAttributes_miuf5621 } from "react";
3807
+ type MenuPositionerProps = ComponentProps<typeof Menu2.Positioner>;
3808
+ type Element_12xgc24 = JSX_1kxb24["Element"];
3809
+ interface DropdownGroupProps extends HTMLAttributes24<HTMLDivElement> {
3810
+ /** Rows, with an optional `Dropdown.Label` first: it becomes the group's accessible name. */
3811
+ children?: ReactNode32;
3812
+ /** Extra classes. */
3813
+ className?: string;
3814
+ }
3815
+ /** A run of related rows (role="group"), named by the `Dropdown.Label` inside it. */
3816
+ declare const DropdownGroup: ForwardRefExoticComponent_tcubfn21<DropdownGroupProps & RefAttributes_miuf5621<HTMLDivElement>>;
3817
+ interface DropdownCheckboxItemProps extends Omit<HTMLAttributes24<HTMLDivElement>, "onSelect" | "defaultChecked"> {
3818
+ /** Whether the row is checked. Pair with `onCheckedChange`. */
3819
+ checked?: boolean;
3820
+ /** Initial checked state, for an uncontrolled row. Defaults to `false`. */
3821
+ defaultChecked?: boolean;
3822
+ /** Called with the new state when the row is toggled. */
3823
+ onCheckedChange?: (checked: boolean) => void;
3824
+ /** Optional leading icon. */
3825
+ icon?: IconComponent;
3826
+ /** The row text. Omit it to pass the row's content as `children`. */
3827
+ label?: string;
3828
+ /** The row's content when there is no `label`. */
3829
+ children?: ReactNode32;
3830
+ /** Position among the panel's rows. Omitted, the row takes its place in document order. */
3831
+ index?: number;
3832
+ /** Called when the row is picked, before it toggles. With `closeOnClick`, `event.preventDefault()` keeps the menu open. */
3833
+ onSelect?: (event: Event) => void;
3834
+ /** Dims the row; the pointer and the keyboard skip it. Defaults to `false`. */
3835
+ disabled?: boolean;
3836
+ /** Whether toggling closes the menu. Defaults to `false`. */
3837
+ closeOnClick?: boolean;
3838
+ /** Indents the row to the label column of rows with an icon. Defaults to `false`. */
3839
+ inset?: boolean;
3840
+ /** A keyboard shortcut shown muted at the row's end. */
3841
+ shortcut?: ReactNode32;
3842
+ /** Extra classes for the row. */
3843
+ className?: string;
3844
+ }
3845
+ /** A row that toggles on and off by itself (role="menuitemcheckbox"), keyed on its own state rather than an index. */
3846
+ declare const DropdownCheckboxItem: ForwardRefExoticComponent_tcubfn21<DropdownCheckboxItemProps & RefAttributes_miuf5621<HTMLDivElement>>;
3847
+ interface DropdownRadioGroupProps extends Omit<HTMLAttributes24<HTMLDivElement>, "defaultValue" | "onChange"> {
3848
+ /** The picked row's value. Pair with `onValueChange`. */
3849
+ value?: string;
3850
+ /** Initial value, for an uncontrolled group. */
3851
+ defaultValue?: string;
3852
+ /** Called with the picked row's value. */
3853
+ onValueChange?: (value: string) => void;
3854
+ /** `Dropdown.RadioItem` rows, plus an optional `Dropdown.Label`. */
3855
+ children?: ReactNode32;
3856
+ /** Extra classes. */
3857
+ className?: string;
3858
+ }
3859
+ /** One choice among its `Dropdown.RadioItem` rows, keyed on their `value`. */
3860
+ declare const DropdownRadioGroup: ForwardRefExoticComponent_tcubfn21<DropdownRadioGroupProps & RefAttributes_miuf5621<HTMLDivElement>>;
3861
+ interface DropdownRadioItemProps extends Omit<HTMLAttributes24<HTMLDivElement>, "onSelect"> {
3862
+ /** The value this row stands for in its `Dropdown.RadioGroup`. */
3863
+ value: string;
3864
+ /** Optional leading icon. */
3865
+ icon?: IconComponent;
3866
+ /** The row text. Omit it to pass the row's content as `children`. */
3867
+ label?: string;
3868
+ /** The row's content when there is no `label`. */
3869
+ children?: ReactNode32;
3870
+ /** Position among the panel's rows. Omitted, the row takes its place in document order. */
3871
+ index?: number;
3872
+ /** Called when the row is picked, before the group's value changes. Call `event.preventDefault()` to keep the menu open. */
3873
+ onSelect?: (event: Event) => void;
3874
+ /** Dims the row; the pointer and the keyboard skip it. Defaults to `false`. */
3875
+ disabled?: boolean;
3876
+ /** Whether picking the row closes the menu. Defaults to `true`. */
3877
+ closeOnClick?: boolean;
3878
+ /** Indents the row to the label column of rows with an icon. Defaults to `false`. */
3879
+ inset?: boolean;
3880
+ /** A keyboard shortcut shown muted at the row's end. */
3881
+ shortcut?: ReactNode32;
3882
+ /** Extra classes for the row. */
3883
+ className?: string;
3884
+ }
3885
+ /** A row of a `Dropdown.RadioGroup` (role="menuitemradio"), checked while the group's value is its `value`. */
3886
+ declare const DropdownRadioItem: ForwardRefExoticComponent_tcubfn21<DropdownRadioItemProps & RefAttributes_miuf5621<HTMLDivElement>>;
3887
+ interface DropdownSubProps {
3888
+ /** `Dropdown.SubTrigger` and `Dropdown.SubContent`. */
3889
+ children: ReactNode32;
3890
+ /** Controlled open state. Pair with `onOpenChange`. */
3891
+ open?: boolean;
3892
+ /** Initial open state, for an uncontrolled submenu. Defaults to `false`. */
3893
+ defaultOpen?: boolean;
3894
+ /** Called when the submenu opens or closes. */
3895
+ onOpenChange?: (open: boolean) => void;
3896
+ /** Disables the submenu. Defaults to `false`. */
3897
+ disabled?: boolean;
3898
+ }
3899
+ /** A submenu: its trigger row and its panel. Lives inside `Dropdown.Content` (or another submenu). */
3900
+ declare function DropdownSub({ children, open, defaultOpen, onOpenChange, disabled }: DropdownSubProps): Element_12xgc24;
3901
+ interface DropdownSubTriggerProps extends Omit<HTMLAttributes24<HTMLDivElement>, "onSelect"> {
3902
+ /** Optional leading icon. */
3903
+ icon?: IconComponent;
3904
+ /** The row text. Omit it to pass the row's content as `children`. */
3905
+ label?: string;
3906
+ /** The row's content when there is no `label`. */
3907
+ children?: ReactNode32;
3908
+ /** Position among the panel's rows. Omitted, the row takes its place in document order. */
3909
+ index?: number;
3910
+ /** Dims the row; the pointer and the keyboard skip it. Defaults to `false`. */
3911
+ disabled?: boolean;
3912
+ /** Indents the row to the label column of rows with an icon. Defaults to `false`. */
3913
+ inset?: boolean;
3914
+ /** Open the submenu when the pointer rests on the row. Defaults to `true`. */
3915
+ openOnHover?: boolean;
3916
+ /** How long the pointer rests before it opens, in ms. Defaults to `100`. */
3917
+ delay?: number;
3918
+ /** How long before a hover-opened submenu closes once the pointer leaves, in ms. Defaults to `0`. */
3919
+ closeDelay?: number;
3920
+ /** Extra classes for the row. */
3921
+ className?: string;
3922
+ }
3923
+ /**
3924
+ * The row that opens a submenu, with a trailing chevron: ArrowRight, a press
3925
+ * or a resting pointer opens it, ArrowLeft closes it. Its row stays lit while
3926
+ * the submenu is open.
3927
+ */
3928
+ declare const DropdownSubTrigger: ForwardRefExoticComponent_tcubfn21<DropdownSubTriggerProps & RefAttributes_miuf5621<HTMLDivElement>>;
3929
+ interface DropdownSubContentProps {
3930
+ /** Rows: `Dropdown.Item`, `Dropdown.CheckboxItem`, `Dropdown.RadioGroup`, `Dropdown.Group`, `Dropdown.Label`, `Dropdown.Separator`, another `Dropdown.Sub`. */
3931
+ children: ReactNode32;
3932
+ /** Extra classes for the submenu surface — it is 14rem wide by default. */
3933
+ className?: string;
3934
+ /** Side of the trigger row the submenu prefers. Defaults to `"inline-end"`. */
3935
+ side?: MenuPositionerProps["side"];
3936
+ /** Alignment against the trigger row. Defaults to `"start"`. */
3937
+ align?: MenuPositionerProps["align"];
3938
+ /** Gap to the parent menu, in px: the goo neck's length. Defaults to `8`. */
3939
+ sideOffset?: number;
3940
+ /** Shift along the trigger row, in px; `-4` lines the first row up with the trigger. Defaults to `-4`. */
3941
+ alignOffset?: number;
3942
+ /** Where the submenu grows from (see Morph): its trigger row, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
3943
+ from?: "trigger" | "center" | "top" | "right" | "bottom" | "left" | RefObject17<HTMLElement | null>;
3944
+ /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
3945
+ effect?: "goo" | "morph" | "slide" | "fade";
3946
+ /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
3947
+ tier?: "moderate" | "slow";
3948
+ /** Keep the rows mounted (hidden) while the submenu is closed, so rows that run their own state keep it across opens. Defaults to `false`. */
3949
+ keepMounted?: boolean;
2835
3950
  }
2836
- type DropdownComponent = ForwardRefExoticComponent11<DropdownProps & RefAttributes11<HTMLDivElement>> & {
2837
- Menu2: typeof DropdownMenu;
3951
+ /** The submenu's panel: the same rows and systems as `Dropdown.Content`, lifted 2 levels above the menu it came from. */
3952
+ declare const DropdownSubContent: ForwardRefExoticComponent_tcubfn21<DropdownSubContentProps & RefAttributes_miuf5621<HTMLDivElement>>;
3953
+ import { JSX as JSX_1kxb25 } from "react";
3954
+ interface DropdownProps extends HTMLAttributes25<HTMLDivElement> {
3955
+ /** `Dropdown.Item` rows, plus `Dropdown.Label` and `Dropdown.Separator`. */
3956
+ children: ReactNode33;
3957
+ /** The checked row: drives the animated selected background and the rows' radio semantics. */
3958
+ checkedIndex?: number;
3959
+ /** Uncontrolled twin of `checkedIndex`: the panel owns the selection, so rows need no `checked` or `onSelect` of their own. */
3960
+ defaultCheckedIndex?: number;
3961
+ /** Called with the newly checked row, or `undefined` when nothing is checked. */
3962
+ onCheckedIndexChange?: (index: number | undefined) => void;
3963
+ /** Multiple selection: the checked rows. Rows become checkbox items and contiguous runs share one merged background (see Checkbox.Group). */
3964
+ checkedIndices?: number[];
3965
+ /** Uncontrolled twin of `checkedIndices`: the panel toggles rows itself. */
3966
+ defaultCheckedIndices?: number[];
3967
+ /** Called with every checked row after a toggle. */
3968
+ onCheckedIndicesChange?: (indices: number[]) => void;
3969
+ /** Pins the panel's rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, they follow the surrounding SizeProvider. */
3970
+ size?: SizeVariant;
3971
+ /** Extra classes for the panel surface — it is 18rem wide by default. */
3972
+ className?: string;
3973
+ }
3974
+ type DropdownComponent = ForwardRefExoticComponent14<DropdownProps & RefAttributes14<HTMLDivElement>> & {
3975
+ Menu3: typeof DropdownMenu;
2838
3976
  Trigger: typeof DropdownTrigger;
2839
3977
  Content: typeof DropdownContent;
2840
3978
  Item: typeof MenuItem2;
@@ -2842,6 +3980,14 @@ type DropdownComponent = ForwardRefExoticComponent11<DropdownProps & RefAttribut
2842
3980
  Separator: typeof DropdownSeparator;
2843
3981
  Search: typeof DropdownSearch;
2844
3982
  Empty: typeof DropdownEmpty;
3983
+ Group: typeof DropdownGroup;
3984
+ Shortcut: typeof DropdownShortcut;
3985
+ CheckboxItem: typeof DropdownCheckboxItem;
3986
+ RadioGroup: typeof DropdownRadioGroup;
3987
+ RadioItem: typeof DropdownRadioItem;
3988
+ Sub: typeof DropdownSub;
3989
+ SubTrigger: typeof DropdownSubTrigger;
3990
+ SubContent: typeof DropdownSubContent;
2845
3991
  };
2846
3992
  /**
2847
3993
  * A menu in two forms: an inline panel that sits in the page, or a popup on
@@ -2860,18 +4006,42 @@ type DropdownComponent = ForwardRefExoticComponent11<DropdownProps & RefAttribut
2860
4006
  * the query too, keeping only the rows whose `label` matches and showing
2861
4007
  * `Dropdown.Empty` when none do.
2862
4008
  *
2863
- * Statics: Dropdown.Menu (the popup root: open, defaultOpen, onOpenChange,
2864
- * disabled), Dropdown.Trigger (render), Dropdown.Content (the popup panel:
2865
- * side, align, sideOffset and the morph options from, effect, hideSource, tier),
2866
- * Dropdown.Item (a row: index, label, icon, checked, onSelect, disabled),
2867
- * Dropdown.Label, Dropdown.Separator, Dropdown.Search and Dropdown.Empty.
4009
+ * Rows also come shadcn-style: children instead of a `label`, no `index` (a
4010
+ * row takes its place in document order, so the hover, the keyboard ring and
4011
+ * the selection backgrounds still find it, inside groups and behind
4012
+ * conditions alike), `inset` to line up with rows that have an icon and a
4013
+ * trailing `shortcut`. `Dropdown.CheckboxItem` and `Dropdown.RadioGroup` /
4014
+ * `Dropdown.RadioItem` select by their own state and value instead of by
4015
+ * index, their checked rows melting into one background like a multiple
4016
+ * selection. A `Dropdown.Sub` opens a submenu from its trigger row (ArrowRight,
4017
+ * a press, or a resting pointer) that grows out of that row and lifts above
4018
+ * the menu, with a highlight and a keyboard ring of its own. Every popup
4019
+ * lifts 2 surface levels off whatever it opens over, a Dialog included.
4020
+ *
4021
+ * Statics:
4022
+ * - `Dropdown.Menu` — the popup root: `open`, `defaultOpen`, `onOpenChange`, `disabled`, `size`.
4023
+ * - `Dropdown.Trigger` — the trigger: `render` or `asChild`.
4024
+ * - `Dropdown.Content` — the popup panel: `side`, `align`, `sideOffset`, the
4025
+ * index selection, and the morph options `from`, `effect`, `hideSource`, `tier`.
4026
+ * - `Dropdown.Item` — a row: `label` or `children`, `index`, `icon`, `inset`,
4027
+ * `shortcut`, `checked`, `onSelect`, `closeOnClick`, `disabled`.
4028
+ * - `Dropdown.CheckboxItem` — a row toggling itself: `checked`, `defaultChecked`, `onCheckedChange`.
4029
+ * - `Dropdown.RadioGroup` / `Dropdown.RadioItem` — one choice by value: `value`,
4030
+ * `defaultValue`, `onValueChange` on the group, `value` on each row.
4031
+ * - `Dropdown.Group` / `Dropdown.Label` — a named run of rows and its caption (`inset`).
4032
+ * - `Dropdown.Separator` — a rule between runs.
4033
+ * - `Dropdown.Shortcut` — a muted caption at a row's end.
4034
+ * - `Dropdown.Sub` / `Dropdown.SubTrigger` / `Dropdown.SubContent` — a submenu:
4035
+ * its state, its trigger row (`openOnHover`, `delay`), its panel (`side`,
4036
+ * `align`, `sideOffset`, `alignOffset`, `from`, `effect`, `tier`).
4037
+ * - `Dropdown.Search` / `Dropdown.Empty` — a filter field and its no-match row.
2868
4038
  *
2869
4039
  * @example {@include ./examples.mdx}
2870
4040
  */
2871
4041
  declare const Dropdown: DropdownComponent;
2872
4042
  interface DropdownMenuProps {
2873
4043
  /** `Dropdown.Trigger` and `Dropdown.Content`. */
2874
- children: ReactNode24;
4044
+ children: ReactNode33;
2875
4045
  /** Controlled open state. Pair with `onOpenChange`. */
2876
4046
  open?: boolean;
2877
4047
  /** Initial open state — uncontrolled. Defaults to `false`. */
@@ -2883,14 +4053,17 @@ interface DropdownMenuProps {
2883
4053
  /** Pins trigger-side content and the portalled popup rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, they follow the surrounding SizeProvider. */
2884
4054
  size?: SizeVariant;
2885
4055
  }
2886
- type Element_12xgc19 = JSX_1kxb19["Element"];
2887
- declare function DropdownMenu({ children, open: openProp, defaultOpen, onOpenChange, disabled, size }: DropdownMenuProps): Element_12xgc19;
2888
- type DropdownTriggerProps = MenuTriggerProps;
2889
- declare const DropdownTrigger: Menu2.Trigger;
2890
- type MenuPositionerProps = ComponentProps<typeof Menu2.Positioner>;
4056
+ type Element_12xgc25 = JSX_1kxb25["Element"];
4057
+ declare function DropdownMenu({ children, open: openProp, defaultOpen, onOpenChange, disabled, size }: DropdownMenuProps): Element_12xgc25;
4058
+ type DropdownTriggerProps = MenuTriggerProps & {
4059
+ /** Compose onto the single child instead of `render`. Defaults to `false`. */
4060
+ asChild?: boolean;
4061
+ };
4062
+ declare const DropdownTrigger: ForwardRefExoticComponent14<Omit<DropdownTriggerProps, "ref"> & RefAttributes14<HTMLButtonElement>>;
4063
+ type MenuPositionerProps2 = ComponentProps2<typeof Menu3.Positioner>;
2891
4064
  interface DropdownContentProps {
2892
4065
  /** `Dropdown.Item` rows, plus `Dropdown.Label`, `Dropdown.Separator`, `Dropdown.Search`, `Dropdown.Empty`. */
2893
- children: ReactNode24;
4066
+ children: ReactNode33;
2894
4067
  /** Extra classes for the popup surface. */
2895
4068
  className?: string;
2896
4069
  /** Index of the checked item. Drives the animated selected background and
@@ -2909,27 +4082,101 @@ interface DropdownContentProps {
2909
4082
  /** Called with every checked row after a toggle. */
2910
4083
  onCheckedIndicesChange?: (indices: number[]) => void;
2911
4084
  /** Side of the trigger the popup prefers. Defaults to `"bottom"`. */
2912
- side?: MenuPositionerProps["side"];
4085
+ side?: MenuPositionerProps2["side"];
2913
4086
  /** Alignment against the trigger. Defaults to `"start"`. */
2914
- align?: MenuPositionerProps["align"];
4087
+ align?: MenuPositionerProps2["align"];
2915
4088
  /** Gap to the trigger, in px. Ignored when the menu opens in place over its trigger (`effect="morph"` with `hideSource`). Defaults to `6`. */
2916
4089
  sideOffset?: number;
2917
4090
  /** Where the menu grows from (see Morph): the trigger, the pointer, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
2918
- from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject15<HTMLElement | null>;
4091
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject18<HTMLElement | null>;
2919
4092
  /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
2920
4093
  effect?: "goo" | "morph" | "slide" | "fade";
2921
4094
  /** Hide the trigger while open, so it reads as turning into the menu. Defaults to `false`. */
2922
4095
  hideSource?: boolean;
2923
4096
  /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
2924
4097
  tier?: "moderate" | "slow";
4098
+ /** Keep the rows mounted (hidden) while the menu is closed, so rows that run their own state — `Dropdown.CheckboxItem defaultChecked`, `Dropdown.RadioGroup defaultValue`, an uncontrolled `Dropdown.Sub` — keep it across opens. Defaults to `false`. */
4099
+ keepMounted?: boolean;
2925
4100
  }
2926
- declare const DropdownContent: ForwardRefExoticComponent11<DropdownContentProps & RefAttributes11<HTMLDivElement>>;
2927
- declare const DropdownLabel: ForwardRefExoticComponent11<HTMLAttributes23<HTMLDivElement> & RefAttributes11<HTMLDivElement>>;
2928
- declare const DropdownSeparator: ForwardRefExoticComponent11<HTMLAttributes23<HTMLDivElement> & RefAttributes11<HTMLDivElement>>;
2929
- import { HTMLAttributes as HTMLAttributes24, ReactNode as ReactNode25, RefObject as RefObject16 } from "react";
2930
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn18 } from "react";
2931
- import { RefAttributes as RefAttributes_miuf5618 } from "react";
2932
- import { JSX as JSX_1kxb20 } from "react";
4101
+ declare const DropdownContent: ForwardRefExoticComponent14<DropdownContentProps & RefAttributes14<HTMLDivElement>>;
4102
+ interface DropdownLabelProps extends HTMLAttributes25<HTMLDivElement> {
4103
+ /** The caption. */
4104
+ children?: ReactNode33;
4105
+ /** Indents the caption to the label column of rows with an icon. Defaults to `false`. */
4106
+ inset?: boolean;
4107
+ /** Extra classes. */
4108
+ className?: string;
4109
+ }
4110
+ declare const DropdownLabel: ForwardRefExoticComponent14<DropdownLabelProps & RefAttributes14<HTMLDivElement>>;
4111
+ declare const DropdownSeparator: ForwardRefExoticComponent14<HTMLAttributes25<HTMLDivElement> & RefAttributes14<HTMLDivElement>>;
4112
+ interface ContextMenuItemProps extends MenuItemProps {
4113
+ /** Keyboard shortcut shown at the row's end, e.g. `⌘C`. */
4114
+ shortcut?: string;
4115
+ }
4116
+ declare const ContextMenuItem: ForwardRefExoticComponent_tcubfn22<ContextMenuItemProps & RefAttributes_miuf5622<HTMLDivElement>>;
4117
+ interface ContextMenuContentProps {
4118
+ /** Where the menu grows from (see Morph): the press point, its own center, a viewport edge, or a ref to any element. Defaults to `'pointer'`. */
4119
+ from?: "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject19<HTMLElement | null>;
4120
+ /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
4121
+ effect?: "goo" | "morph" | "slide" | "fade";
4122
+ /** Hide the `from` element while open, so it reads as turning into the menu. Defaults to `false`. */
4123
+ hideSource?: boolean;
4124
+ /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
4125
+ tier?: "moderate" | "slow";
4126
+ /** Portal target. Defaults to the document body. */
4127
+ container?: HTMLElement | null;
4128
+ /** Extra classes for the menu surface — it is 14rem wide by default. */
4129
+ className?: string;
4130
+ /** `ContextMenu.Item` rows, plus `ContextMenu.Label` and `ContextMenu.Separator`. */
4131
+ children?: ReactNode34;
4132
+ }
4133
+ declare const ContextMenuContent: ForwardRefExoticComponent_tcubfn22<ContextMenuContentProps & RefAttributes_miuf5622<HTMLDivElement>>;
4134
+ interface ContextMenuProps {
4135
+ /** Controlled open state. Pair with `onOpenChange`. */
4136
+ open?: boolean;
4137
+ /** Initial open state, for an uncontrolled menu. Defaults to `false`. */
4138
+ defaultOpen?: boolean;
4139
+ /** Called when the menu opens or closes. */
4140
+ onOpenChange?: (open: boolean) => void;
4141
+ /** Turns the trigger area back into a plain one: no menu on right click or long press. Defaults to `false`. */
4142
+ disabled?: boolean;
4143
+ /** Pins the rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, they follow the surrounding SizeProvider. */
4144
+ size?: SizeVariant;
4145
+ /** The area and the menu — `ContextMenu.Trigger` plus a `ContextMenu.Content`. */
4146
+ children?: ReactNode34;
4147
+ }
4148
+ type Element_12xgc26 = JSX_1kxb26["Element"];
4149
+ /**
4150
+ * A menu that grows out of the pointer on right click, or on a long press on
4151
+ * touch: the surface swells from the exact point you pressed into the menu.
4152
+ *
4153
+ * The morph comes from the shared engine (see Morph): from the press point
4154
+ * by default, or from its own center, a viewport edge or any element, with
4155
+ * the goo, a plain morph, a slide or a fade. The rows are Dropdown's — the
4156
+ * fluid hover background gliding between them, icons that firm up under it,
4157
+ * dimmed disabled rows the pointer skips — plus a keyboard shortcut at the
4158
+ * end of a row. The menu lifts 2 surface levels off its substrate. Built on
4159
+ * Base UI's ContextMenu: it opens at the pointer and flips or shifts to stay
4160
+ * on screen, arrow keys and typeahead move between rows, and picking a row,
4161
+ * Escape or an outside press closes it.
4162
+ *
4163
+ * Statics:
4164
+ * - `ContextMenu.Trigger` — the area that opens it (a `div`).
4165
+ * - `ContextMenu.Content` — the menu: the morph options `from`, `effect`,
4166
+ * `hideSource`, `tier`.
4167
+ * - `ContextMenu.Item` — a row: `index`, `label`, `icon`, `shortcut`,
4168
+ * `onSelect`, `disabled`.
4169
+ * - `ContextMenu.Label` / `ContextMenu.Separator` — a caption over a run of
4170
+ * rows and a rule between runs (Dropdown's).
4171
+ *
4172
+ * @example {@include ./examples.mdx}
4173
+ */
4174
+ declare function ContextMenu({ open, defaultOpen, onOpenChange, disabled, size, children }: ContextMenuProps): Element_12xgc26;
4175
+ import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
4176
+ import { ComponentProps as ComponentProps3, HTMLAttributes as HTMLAttributes26, ReactNode as ReactNode35, RefObject as RefObject20 } from "react";
4177
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn23 } from "react";
4178
+ import { RefAttributes as RefAttributes_miuf5623 } from "react";
4179
+ import { JSX as JSX_1kxb27 } from "react";
2933
4180
  interface PopoverTriggerProps extends SlotProps {
2934
4181
  /** Open on hover as well as on press (a tap still toggles it on touch). Defaults to `false`. */
2935
4182
  openOnHover?: boolean;
@@ -2938,17 +4185,33 @@ interface PopoverTriggerProps extends SlotProps {
2938
4185
  /** Delay before closing once the pointer leaves, in ms. Needs `openOnHover`. Defaults to `0`. */
2939
4186
  closeDelay?: number;
2940
4187
  }
2941
- declare const PopoverTrigger: ForwardRefExoticComponent_tcubfn18<PopoverTriggerProps & RefAttributes_miuf5618<HTMLButtonElement>>;
2942
- declare const PopoverClose: ForwardRefExoticComponent_tcubfn18<SlotProps & RefAttributes_miuf5618<HTMLButtonElement>>;
2943
- interface PopoverContentProps extends HTMLAttributes24<HTMLDivElement> {
2944
- /** Side of the trigger the panel opens on; it flips when there is no room. Defaults to `'bottom'`. */
4188
+ declare const PopoverTrigger: ForwardRefExoticComponent_tcubfn23<PopoverTriggerProps & RefAttributes_miuf5623<HTMLButtonElement>>;
4189
+ declare const PopoverClose: ForwardRefExoticComponent_tcubfn23<SlotProps & RefAttributes_miuf5623<HTMLButtonElement>>;
4190
+ type PositionerProps = ComponentProps3<typeof PopoverPrimitive.Positioner>;
4191
+ type PopupProps = ComponentProps3<typeof PopoverPrimitive.Popup>;
4192
+ /** What the panel is positioned against: an element, a ref to one, a virtual element (`{ getBoundingClientRect }`), or a function returning either. */
4193
+ type PopoverAnchor = PositionerProps["anchor"];
4194
+ interface PopoverContentProps extends HTMLAttributes26<HTMLDivElement> {
4195
+ /** Side of the anchor the panel opens on; it flips when there is no room. Defaults to `'bottom'`. */
2945
4196
  side?: "top" | "right" | "bottom" | "left";
2946
4197
  /** Alignment along that side. Defaults to `'center'`, or `'start'` when the panel opens in place (`effect="morph"` with `hideSource`). */
2947
4198
  align?: "start" | "center" | "end";
2948
- /** Gap between trigger and panel in px — the length of the goo neck. Ignored when the panel opens in place over its trigger (`effect="morph"` with `hideSource`). Defaults to `12`. */
4199
+ /** Gap between anchor and panel in px — the length of the goo neck. Ignored when the panel opens in place over its trigger (`effect="morph"` with `hideSource`). Defaults to `12`. */
2949
4200
  sideOffset?: number;
2950
- /** Where the panel grows from (see Morph): the pressed trigger, the press point, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
2951
- from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject16<HTMLElement | null>;
4201
+ /** Shift along the aligned edge in px, after `align` (a number, or Base UI's function of side, align and sizes). Defaults to `0`. */
4202
+ alignOffset?: PositionerProps["alignOffset"];
4203
+ /** What the panel is positioned against instead of the trigger: an element, a ref to one, a virtual element (`{ getBoundingClientRect }`) or a function returning either. An element anchor is also where the panel grows from, and sets `--anchor-width` / `--anchor-height` for sizing the panel to it. Defaults to the trigger. */
4204
+ anchor?: PopoverAnchor;
4205
+ /** Space kept between the panel and the edge of its collision boundary, in px or per side. Defaults to `5`. */
4206
+ collisionPadding?: PositionerProps["collisionPadding"];
4207
+ /** The area the panel must stay inside: an element, several, or a rect. Defaults to `'clipping-ancestors'`. */
4208
+ collisionBoundary?: PositionerProps["collisionBoundary"];
4209
+ /** Where focus goes when the panel opens: a ref, `false` to leave it, `true` for the default, or a function of how it opened (`'mouse'`, `'touch'`, `'pen'`, `'keyboard'`). Defaults to the panel itself. */
4210
+ initialFocus?: PopupProps["initialFocus"];
4211
+ /** Where focus goes when the panel closes: a ref, `false` to leave it, `true` for the default, or a function of how it closed. Defaults to the trigger. */
4212
+ finalFocus?: PopupProps["finalFocus"];
4213
+ /** Where the panel grows from (see Morph): the pressed trigger, the press point, its own center, a viewport edge, or a ref to any element. Defaults to the `anchor` when it is an element, otherwise `'trigger'`. */
4214
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject20<HTMLElement | null>;
2952
4215
  /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
2953
4216
  effect?: "goo" | "morph" | "slide" | "fade";
2954
4217
  /** Hide the trigger while open, so it reads as turning into the panel. Defaults to `false`. */
@@ -2960,24 +4223,26 @@ interface PopoverContentProps extends HTMLAttributes24<HTMLDivElement> {
2960
4223
  /** Classes for the panel's content box: padding, width, layout. */
2961
4224
  className?: string;
2962
4225
  /** The panel's content. Everything inside reads the popover's surface level as its substrate. */
2963
- children?: ReactNode25;
4226
+ children?: ReactNode35;
2964
4227
  }
2965
- declare const PopoverContent: ForwardRefExoticComponent_tcubfn18<PopoverContentProps & RefAttributes_miuf5618<HTMLDivElement>>;
2966
- declare const PopoverTitle: ForwardRefExoticComponent_tcubfn18<HTMLAttributes24<HTMLHeadingElement> & RefAttributes_miuf5618<HTMLHeadingElement>>;
2967
- declare const PopoverDescription: ForwardRefExoticComponent_tcubfn18<HTMLAttributes24<HTMLParagraphElement> & RefAttributes_miuf5618<HTMLParagraphElement>>;
4228
+ declare const PopoverContent: ForwardRefExoticComponent_tcubfn23<PopoverContentProps & RefAttributes_miuf5623<HTMLDivElement>>;
4229
+ declare const PopoverTitle: ForwardRefExoticComponent_tcubfn23<HTMLAttributes26<HTMLHeadingElement> & RefAttributes_miuf5623<HTMLHeadingElement>>;
4230
+ declare const PopoverDescription: ForwardRefExoticComponent_tcubfn23<HTMLAttributes26<HTMLParagraphElement> & RefAttributes_miuf5623<HTMLParagraphElement>>;
4231
+ /** What `onOpenChange` receives besides the open state: Base UI's Popover change details. */
4232
+ type PopoverOpenChangeDetails = PopoverPrimitive.Root.ChangeEventDetails;
2968
4233
  interface PopoverProps {
2969
4234
  /** Controlled open state. Pair with `onOpenChange`. */
2970
4235
  open?: boolean;
2971
4236
  /** Initial open state, for an uncontrolled popover. Defaults to `false`. */
2972
4237
  defaultOpen?: boolean;
2973
- /** Called when the popover opens or closes. */
2974
- onOpenChange?: (open: boolean) => void;
4238
+ /** Called when the popover opens or closes, with Base UI's change details: `reason` (`'escape-key'`, `'outside-press'`, `'trigger-press'`, …), the `event`, and `cancel()` to keep it as it is. */
4239
+ onOpenChange?: (open: boolean, details: PopoverOpenChangeDetails) => void;
2975
4240
  /** Trap focus and block page interaction while open. Defaults to `false`. */
2976
4241
  modal?: boolean;
2977
4242
  /** The trigger and the panel — `Popover.Trigger` plus a `Popover.Content`. */
2978
- children?: ReactNode25;
4243
+ children?: ReactNode35;
2979
4244
  }
2980
- type Element_12xgc20 = JSX_1kxb20["Element"];
4245
+ type Element_12xgc27 = JSX_1kxb27["Element"];
2981
4246
  /**
2982
4247
  * A panel that oozes out of its trigger: the surface melts out of the button
2983
4248
  * through a liquid neck, then lets go and settles beside it.
@@ -2989,24 +4254,27 @@ type Element_12xgc20 = JSX_1kxb20["Element"];
2989
4254
  * off its substrate and re-provides that level. Built on Base UI's Popover:
2990
4255
  * it opens on press, or on hover too with `openOnHover`; it flips to the
2991
4256
  * other side when there is no room; Escape and an outside press close it.
4257
+ * `onOpenChange` hears why (`details.reason`) and can `details.cancel()` it.
2992
4258
  *
2993
4259
  * Statics:
2994
4260
  * - `Popover.Trigger` — the control that opens it: `render={<Button/>}` or
2995
4261
  * `asChild`; `openOnHover`, `delay`, `closeDelay`.
2996
4262
  * - `Popover.Content` — the panel: `side`, `align` (the trigger's `start`,
2997
- * `center` or `end`), `sideOffset` and the morph options `from`,
2998
- * `effect`, `hideSource`, `tier`.
4263
+ * `center` or `end`), `sideOffset`, `alignOffset`, `anchor` (position it
4264
+ * against another element than the trigger, which it then grows from),
4265
+ * `collisionPadding`, `collisionBoundary`, `initialFocus`, `finalFocus`
4266
+ * and the morph options `from`, `effect`, `hideSource`, `tier`.
2999
4267
  * - `Popover.Title` / `Popover.Description` — its labelled heading and
3000
4268
  * supporting line, wired for screen readers.
3001
4269
  * - `Popover.Close` — closes it; same `render` / `asChild` shape.
3002
4270
  *
3003
4271
  * @example {@include ./examples.mdx}
3004
4272
  */
3005
- declare function Popover2({ open, defaultOpen, onOpenChange, modal, children }: PopoverProps): Element_12xgc20;
3006
- import { AnchorHTMLAttributes as AnchorHTMLAttributes2, HTMLAttributes as HTMLAttributes25, ReactElement as ReactElement6, ReactNode as ReactNode26, RefObject as RefObject17 } from "react";
3007
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn19 } from "react";
3008
- import { RefAttributes as RefAttributes_miuf5619 } from "react";
3009
- import { JSX as JSX_1kxb21 } from "react";
4273
+ declare function Popover2({ open, defaultOpen, onOpenChange, modal, children }: PopoverProps): Element_12xgc27;
4274
+ import { AnchorHTMLAttributes as AnchorHTMLAttributes2, HTMLAttributes as HTMLAttributes27, ReactElement as ReactElement6, ReactNode as ReactNode36, RefObject as RefObject21 } from "react";
4275
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn24 } from "react";
4276
+ import { RefAttributes as RefAttributes_miuf5624 } from "react";
4277
+ import { JSX as JSX_1kxb28 } from "react";
3010
4278
  interface PreviewCardTriggerProps extends AnchorHTMLAttributes2<HTMLAnchorElement> {
3011
4279
  /** Hover delay before the card opens, in ms. Defaults to `600`. */
3012
4280
  delay?: number;
@@ -3017,10 +4285,10 @@ interface PreviewCardTriggerProps extends AnchorHTMLAttributes2<HTMLAnchorElemen
3017
4285
  /** Extra classes for the link. */
3018
4286
  className?: string;
3019
4287
  /** The link's content. */
3020
- children?: ReactNode26;
4288
+ children?: ReactNode36;
3021
4289
  }
3022
- declare const PreviewCardTrigger: ForwardRefExoticComponent_tcubfn19<PreviewCardTriggerProps & RefAttributes_miuf5619<HTMLAnchorElement>>;
3023
- interface PreviewCardContentProps extends HTMLAttributes25<HTMLDivElement> {
4290
+ declare const PreviewCardTrigger: ForwardRefExoticComponent_tcubfn24<PreviewCardTriggerProps & RefAttributes_miuf5624<HTMLAnchorElement>>;
4291
+ interface PreviewCardContentProps extends HTMLAttributes27<HTMLDivElement> {
3024
4292
  /** Side of the link the card opens on; it flips when there is no room. Defaults to `'bottom'`. */
3025
4293
  side?: "top" | "right" | "bottom" | "left";
3026
4294
  /** Alignment along that side. Defaults to `'center'`, or `'start'` when the card opens in place (`effect="morph"` with `hideSource`). */
@@ -3028,7 +4296,7 @@ interface PreviewCardContentProps extends HTMLAttributes25<HTMLDivElement> {
3028
4296
  /** Gap between link and card in px — the length of the goo neck. Ignored when the card opens in place over its link (`effect="morph"` with `hideSource`). Defaults to `12`. */
3029
4297
  sideOffset?: number;
3030
4298
  /** Where the card grows from (see Morph): the hovered link, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
3031
- from?: "trigger" | "center" | "top" | "right" | "bottom" | "left" | RefObject17<HTMLElement | null>;
4299
+ from?: "trigger" | "center" | "top" | "right" | "bottom" | "left" | RefObject21<HTMLElement | null>;
3032
4300
  /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
3033
4301
  effect?: "goo" | "morph" | "slide" | "fade";
3034
4302
  /** Hide the link while open, so it reads as turning into the card. Defaults to `false`. */
@@ -3040,9 +4308,9 @@ interface PreviewCardContentProps extends HTMLAttributes25<HTMLDivElement> {
3040
4308
  /** Classes for the card's content box: padding, width, layout. */
3041
4309
  className?: string;
3042
4310
  /** The card's content. Everything inside reads the card's surface level as its substrate. */
3043
- children?: ReactNode26;
4311
+ children?: ReactNode36;
3044
4312
  }
3045
- declare const PreviewCardContent: ForwardRefExoticComponent_tcubfn19<PreviewCardContentProps & RefAttributes_miuf5619<HTMLDivElement>>;
4313
+ declare const PreviewCardContent: ForwardRefExoticComponent_tcubfn24<PreviewCardContentProps & RefAttributes_miuf5624<HTMLDivElement>>;
3046
4314
  interface PreviewCardProps {
3047
4315
  /** Controlled open state. Pair with `onOpenChange`. */
3048
4316
  open?: boolean;
@@ -3051,9 +4319,9 @@ interface PreviewCardProps {
3051
4319
  /** Called when the card opens or closes. */
3052
4320
  onOpenChange?: (open: boolean) => void;
3053
4321
  /** The link and the card — `PreviewCard.Trigger` plus a `PreviewCard.Content`. */
3054
- children?: ReactNode26;
4322
+ children?: ReactNode36;
3055
4323
  }
3056
- type Element_12xgc21 = JSX_1kxb21["Element"];
4324
+ type Element_12xgc28 = JSX_1kxb28["Element"];
3057
4325
  /**
3058
4326
  * A card that oozes out of a link on hover: a preview of what is behind it,
3059
4327
  * melting out of the link through a liquid neck.
@@ -3076,15 +4344,15 @@ type Element_12xgc21 = JSX_1kxb21["Element"];
3076
4344
  *
3077
4345
  * @example {@include ./examples.mdx}
3078
4346
  */
3079
- declare function PreviewCard({ open, defaultOpen, onOpenChange, children }: PreviewCardProps): Element_12xgc21;
3080
- import { HTMLAttributes as HTMLAttributes26, ReactNode as ReactNode27, RefObject as RefObject18 } from "react";
3081
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn20 } from "react";
3082
- import { RefAttributes as RefAttributes_miuf5620 } from "react";
3083
- import { JSX as JSX_1kxb22 } from "react";
4347
+ declare function PreviewCard({ open, defaultOpen, onOpenChange, children }: PreviewCardProps): Element_12xgc28;
4348
+ import { HTMLAttributes as HTMLAttributes28, ReactNode as ReactNode37, RefObject as RefObject22 } from "react";
4349
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn25 } from "react";
4350
+ import { RefAttributes as RefAttributes_miuf5625 } from "react";
4351
+ import { JSX as JSX_1kxb29 } from "react";
3084
4352
  type SheetSide = "top" | "right" | "bottom" | "left";
3085
- interface SheetContentProps extends HTMLAttributes26<HTMLDivElement> {
4353
+ interface SheetContentProps extends HTMLAttributes28<HTMLDivElement> {
3086
4354
  /** Where the sheet grows from (see Morph): its own edge, the pressed trigger, the press point, its center, another edge, or a ref to any element. Defaults to the sheet's `side`. */
3087
- from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject18<HTMLElement | null>;
4355
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject22<HTMLElement | null>;
3088
4356
  /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. Defaults to `'goo'`. */
3089
4357
  effect?: "goo" | "morph" | "slide" | "fade";
3090
4358
  /** Hide the trigger while open, so it reads as turning into the sheet. Defaults to `false`. */
@@ -3096,10 +4364,10 @@ interface SheetContentProps extends HTMLAttributes26<HTMLDivElement> {
3096
4364
  /** Classes for the sheet's content box: padding, layout. */
3097
4365
  className?: string;
3098
4366
  /** The sheet's content. Everything inside reads the sheet's surface level as its substrate. */
3099
- children?: ReactNode27;
4367
+ children?: ReactNode37;
3100
4368
  }
3101
- declare const SheetContent: ForwardRefExoticComponent_tcubfn20<SheetContentProps & RefAttributes_miuf5620<HTMLDivElement>>;
3102
- declare const SheetIndent: ForwardRefExoticComponent_tcubfn20<HTMLAttributes26<HTMLDivElement> & RefAttributes_miuf5620<HTMLDivElement>>;
4369
+ declare const SheetContent: ForwardRefExoticComponent_tcubfn25<SheetContentProps & RefAttributes_miuf5625<HTMLDivElement>>;
4370
+ declare const SheetIndent: ForwardRefExoticComponent_tcubfn25<HTMLAttributes28<HTMLDivElement> & RefAttributes_miuf5625<HTMLDivElement>>;
3103
4371
  interface SheetProps {
3104
4372
  /** Controlled open state. */
3105
4373
  open?: boolean;
@@ -3116,9 +4384,9 @@ interface SheetProps {
3116
4384
  /** Traps focus and locks page scroll while open. Defaults to `true`. */
3117
4385
  modal?: boolean;
3118
4386
  /** The trigger and the content — `Sheet.Trigger` plus a `Sheet.Content`. */
3119
- children?: ReactNode27;
4387
+ children?: ReactNode37;
3120
4388
  }
3121
- type Element_12xgc22 = JSX_1kxb22["Element"];
4389
+ type Element_12xgc29 = JSX_1kxb29["Element"];
3122
4390
  /**
3123
4391
  * A panel attached to an edge of the window, swiped away to dismiss.
3124
4392
  *
@@ -3142,66 +4410,124 @@ type Element_12xgc22 = JSX_1kxb22["Element"];
3142
4410
  *
3143
4411
  * @example {@include ./examples.mdx}
3144
4412
  */
3145
- declare function Sheet({ children, open, defaultOpen, onOpenChange, side, snapPoints, defaultSnapPoint, modal }: SheetProps): Element_12xgc22;
3146
- import { ReactNode as ReactNode28 } from "react";
3147
- import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn21 } from "react";
3148
- import { RefAttributes as RefAttributes_miuf5621 } from "react";
3149
- import { JSX as JSX_1kxb23 } from "react";
4413
+ declare function Sheet({ children, open, defaultOpen, onOpenChange, side, snapPoints, defaultSnapPoint, modal }: SheetProps): Element_12xgc29;
4414
+ import { ReactNode as ReactNode39 } from "react";
4415
+ import { ToastManager } from "@base-ui/react/toast";
4416
+ import { ReactNode as ReactNode38 } from "react";
4417
+ import { ToastManagerEvent as ToastManagerEvent_co995g } from "@base-ui/react";
3150
4418
  type ToastType = "success" | "loading" | "error" | "warning" | "info" | "action";
3151
- type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
4419
+ /** A button in the toast's body. */
4420
+ interface ToastActionOptions {
4421
+ label: ReactNode38;
4422
+ onClick?: () => void;
4423
+ }
3152
4424
  interface ToastOptions {
3153
- title?: string;
3154
- description?: string;
4425
+ /** Reuse an id to replace a toast that is still showing. */
4426
+ id?: string;
4427
+ title?: ReactNode38;
4428
+ description?: ReactNode38;
3155
4429
  type?: ToastType;
3156
4430
  /** Ms before it leaves; 0 keeps it until dismissed. */
3157
4431
  timeout?: number;
3158
- action?: {
3159
- label: string;
3160
- onClick?: () => void;
3161
- };
4432
+ /** Same as `timeout`; `timeout` wins when both are set. */
4433
+ duration?: number;
4434
+ /** Replaces the state's icon in the pill: an icon component, or any node. */
4435
+ icon?: IconComponent | ReactNode38;
4436
+ /** A button in the body (`{ label, onClick }`), or any node. */
4437
+ action?: ToastActionOptions | ReactNode38;
4438
+ /** Runs once the toast starts to leave, however it was closed. */
4439
+ onClose?: () => void;
4440
+ /** `high` is announced at once by screen readers; `low` waits its turn. */
4441
+ priority?: "low" | "high";
4442
+ }
4443
+ /** What a toast keeps beside Base UI's own fields. */
4444
+ interface ToastData {
4445
+ icon?: IconComponent | ReactNode38;
4446
+ action?: ReactNode38;
4447
+ }
4448
+ type ToastInput = string | ToastOptions;
4449
+ type ToastResult<T> = ToastInput | ((value: T) => ToastInput);
4450
+ interface ToastPromiseOptions<T> {
4451
+ loading: ToastInput;
4452
+ success: ToastResult<T>;
4453
+ error: ToastResult<unknown>;
4454
+ }
4455
+ /** A shown toast: its id, and updating or dismissing it. */
4456
+ interface ToastHandle {
4457
+ id: string;
4458
+ update: (options: ToastInput) => void;
4459
+ dismiss: () => void;
3162
4460
  }
3163
- /** Shows toasts from inside a `Toast`: `show`, the per-state shortcuts, `promise` and `close`. */
4461
+ /**
4462
+ * Shows a toast from anywhere — an event handler, a fetch wrapper, code
4463
+ * outside React — in the `Toast` mounted with `manager={toast}`. Returns a
4464
+ * handle with the id, `update` and `dismiss`.
4465
+ */
4466
+ declare const toast: ((input: ToastInput) => ToastHandle) & {
4467
+ /** A `success` toast. */
4468
+ success: (input: ToastInput) => ToastHandle;
4469
+ /** An `error` toast. */
4470
+ error: (input: ToastInput) => ToastHandle;
4471
+ /** A `warning` toast. */
4472
+ warning: (input: ToastInput) => ToastHandle;
4473
+ /** An `info` toast. */
4474
+ info: (input: ToastInput) => ToastHandle;
4475
+ /** A spinning `loading` toast. It stays while its type is `loading`; once updated to another type it leaves on its own `timeout` or the `Toast`'s. */
4476
+ loading: (input: ToastInput) => ToastHandle;
4477
+ /** Runs `promise` behind a `loading` toast that turns into its `success` or `error` toast. Returns the promise. */
4478
+ promise: <T>(promise: Promise<T>, options: ToastPromiseOptions<T>) => Promise<T>;
4479
+ /** Changes a toast that is showing. */
4480
+ update: (id: string, input: ToastInput) => void;
4481
+ /** Closes one toast, or every toast without an id. */
4482
+ dismiss: (id?: string) => void;
4483
+ " subscribe": (listener: (data: ToastManagerEvent_co995g) => void) => () => void;
4484
+ };
4485
+ /** What `<Toast manager>` takes: the global `toast`, or a manager from Base UI's `Toast.createToastManager()`. */
4486
+ type ToastSource = Pick<ToastManager, " subscribe">;
4487
+ import { ToastObject as ToastObject_9whgyu } from "@base-ui/react";
4488
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn26 } from "react";
4489
+ import { RefAttributes as RefAttributes_miuf5626 } from "react";
4490
+ import { JSX as JSX_1kxb30 } from "react";
4491
+ type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
4492
+ /**
4493
+ * Shows toasts from inside a `Toast`: `show`, the per-state shortcuts,
4494
+ * `promise`, `update` and `close` (alias `dismiss`), plus the `toasts` showing.
4495
+ * Under a `Toast` with `manager={toast}` it works on the same stack as the
4496
+ * global `toast()`.
4497
+ */
3164
4498
  declare function useToast(): {
3165
- show: (o: ToastOptions) => string;
3166
- success: (o: ToastOptions) => string;
3167
- error: (o: ToastOptions) => string;
3168
- warning: (o: ToastOptions) => string;
3169
- info: (o: ToastOptions) => string;
3170
- promise: <T>(promise: Promise<T>, o: {
3171
- loading: ToastOptions;
3172
- success: ToastOptions;
3173
- error: ToastOptions;
3174
- }) => Promise<T>;
4499
+ toasts: ToastObject_9whgyu<ToastData>[];
4500
+ show: (o: ToastInput) => string;
4501
+ success: (o: ToastInput) => string;
4502
+ error: (o: ToastInput) => string;
4503
+ warning: (o: ToastInput) => string;
4504
+ info: (o: ToastInput) => string;
4505
+ promise: <T>(promise: Promise<T>, o: ToastPromiseOptions<T>) => Promise<T>;
4506
+ update: (id: string, o: ToastInput) => void;
3175
4507
  close: (toastId?: string) => void;
4508
+ dismiss: (toastId?: string) => void;
3176
4509
  };
3177
- interface ToastTriggerProps extends Omit<SlotProps, "type"> {
4510
+ interface ToastTriggerProps extends Omit<SlotProps, "type" | "title"> {
3178
4511
  /** The toast's title, in the pill. */
3179
- title?: string;
4512
+ title?: ReactNode39;
3180
4513
  /** Text for the body the pill melts into. */
3181
- description?: string;
4514
+ description?: ReactNode39;
3182
4515
  /** State: sets the icon and its color. Defaults to `'info'`. */
3183
4516
  type?: "success" | "loading" | "error" | "warning" | "info" | "action";
3184
4517
  /** Ms before it leaves; 0 keeps it until dismissed. Defaults to the `Toast`'s `timeout`. */
3185
4518
  timeout?: number;
3186
- /** A button in the body. */
3187
- action?: {
3188
- label: string;
3189
- onClick?: () => void;
3190
- };
4519
+ /** Replaces the state's icon in the pill: an icon component, or any node. */
4520
+ icon?: IconComponent | ReactNode39;
4521
+ /** A button in the body (`{ label, onClick }`), or any node. */
4522
+ action?: ToastActionOptions | ReactNode39;
3191
4523
  /** Runs a task: the toast shows `title` while it is pending, then `success` or `error`. */
3192
4524
  promise?: () => Promise<unknown>;
3193
4525
  /** The toast once `promise` resolves. */
3194
- success?: {
3195
- title?: string;
3196
- description?: string;
3197
- };
4526
+ success?: ToastOptions;
3198
4527
  /** The toast if `promise` rejects. */
3199
- error?: {
3200
- title?: string;
3201
- description?: string;
3202
- };
4528
+ error?: ToastOptions;
3203
4529
  }
3204
- declare const ToastTrigger: ForwardRefExoticComponent_tcubfn21<ToastTriggerProps & RefAttributes_miuf5621<HTMLButtonElement>>;
4530
+ declare const ToastTrigger: ForwardRefExoticComponent_tcubfn26<ToastTriggerProps & RefAttributes_miuf5626<HTMLButtonElement>>;
3205
4531
  interface ToastProps {
3206
4532
  /** Where toasts stack; the pill sits on that side and the body opens away from the edge. Defaults to `'top-right'`. */
3207
4533
  position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
@@ -3209,10 +4535,12 @@ interface ToastProps {
3209
4535
  limit?: number;
3210
4536
  /** Ms a toast stays; hovering pauses it. Defaults to `6000`. */
3211
4537
  timeout?: number;
3212
- /** The part of the app that can show toasts, with `Toast.Trigger`s or `useToast()`. */
3213
- children?: ReactNode28;
4538
+ /** Also renders the toasts this manager shows: pass the global `toast` so `toast()` calls from anywhere land here (mount one such `Toast` per app), or a manager from Base UI's `Toast.createToastManager()`. */
4539
+ manager?: ToastSource;
4540
+ /** The part of the app that can show toasts, with `Toast.Trigger`s or `useToast()`. Optional: a `Toast` with a `manager` can stand alone. */
4541
+ children?: ReactNode39;
3214
4542
  }
3215
- type Element_12xgc23 = JSX_1kxb23["Element"];
4543
+ type Element_12xgc30 = JSX_1kxb30["Element"];
3216
4544
  /**
3217
4545
  * Gooey toasts: a pill with the state's icon and title that melts into a body
3218
4546
  * with the details.
@@ -3228,8 +4556,17 @@ type Element_12xgc23 = JSX_1kxb23["Element"];
3228
4556
  *
3229
4557
  * `Toast` wraps the part of the app that shows toasts and renders them at
3230
4558
  * its `position`. Show one with `Toast.Trigger`, or call `useToast()`
3231
- * inside it: `show`, `success`, `error`, `warning`, `info`, `promise` and
3232
- * `close`.
4559
+ * inside it: `show`, `success`, `error`, `warning`, `info`, `promise`,
4560
+ * `update` and `close`.
4561
+ *
4562
+ * Or mount one `<Toast manager={toast} />` near the root and call the global
4563
+ * `toast()` from anywhere, inside React or not: `toast({ title, description,
4564
+ * type, timeout, icon, action, onClose })`, `toast.success`, `.error`,
4565
+ * `.warning`, `.info`, `.loading`, `.promise`, `.update(id, …)` and
4566
+ * `.dismiss(id?)`. Each call returns a handle with the toast's `id`,
4567
+ * `update` and `dismiss`; calls made before the `Toast` mounts wait for it.
4568
+ * Titles and descriptions take any node, `icon` replaces the state's glyph,
4569
+ * and `action` is a button (`{ label, onClick }`) or any node.
3233
4570
  *
3234
4571
  * Statics:
3235
4572
  * - `Toast.Trigger` — a control that shows a toast when pressed:
@@ -3239,55 +4576,124 @@ type Element_12xgc23 = JSX_1kxb23["Element"];
3239
4576
  *
3240
4577
  * @example {@include ./examples.mdx}
3241
4578
  */
3242
- declare function Toast({ position, limit, timeout, children }: ToastProps): Element_12xgc23;
3243
- import { ReactNode as ReactNode29, RefObject as RefObject19 } from "react";
3244
- import { JSX as JSX_1kxb24 } from "react";
3245
- type Element_12xgc24 = JSX_1kxb24["Element"];
4579
+ declare function Toast({ position, limit, timeout, manager, children }: ToastProps): Element_12xgc30;
4580
+ import { HTMLAttributes as HTMLAttributes29, ReactElement as ReactElement7, ReactNode as ReactNode40, RefObject as RefObject23 } from "react";
4581
+ import { JSX as JSX_1kxb31 } from "react";
4582
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn27 } from "react";
4583
+ import { RefAttributes as RefAttributes_miuf5627 } from "react";
4584
+ type Element_12xgc31 = JSX_1kxb31["Element"];
3246
4585
  declare function TooltipPortalContainer({ value, children }: {
3247
4586
  value: HTMLElement | null;
3248
- children: ReactNode29;
3249
- }): Element_12xgc24;
4587
+ children: ReactNode40;
4588
+ }): Element_12xgc31;
3250
4589
  interface TooltipProviderProps {
3251
- children: ReactNode29;
4590
+ children: ReactNode40;
3252
4591
  /** Hover delay before tooltips open, in ms. Defaults to 200. */
3253
- delayDuration?: number;
4592
+ delay?: number;
4593
+ /** Delay before a tooltip closes once the pointer leaves, in ms. Defaults to 0. */
4594
+ closeDelay?: number;
3254
4595
  /** After a tooltip closes, adjacent tooltips opened within this window
3255
4596
  * skip the hover delay, in ms. Defaults to 300. */
4597
+ timeout?: number;
4598
+ /** Radix name for `delay`; `delay` wins when both are set. */
4599
+ delayDuration?: number;
4600
+ /** Radix name for `timeout`; `timeout` wins when both are set. A negative
4601
+ * value, as some Radix configs use to turn the skip off, counts as 0. */
3256
4602
  skipDelayDuration?: number;
3257
4603
  }
3258
4604
  /** Groups descendant Tooltips so that once one opens, moving to an adjacent
3259
4605
  * trigger shows its tooltip instantly instead of re-waiting the full delay.
3260
4606
  * Wrap once at the app (or section) level; bare Tooltips still work without
3261
- * it via a per-instance fallback. */
3262
- declare function TooltipProvider({ children, delayDuration, skipDelayDuration }: TooltipProviderProps): Element_12xgc24;
4607
+ * it via a per-instance fallback. Takes Base UI's `delay` / `closeDelay` /
4608
+ * `timeout`, or Radix's `delayDuration` / `skipDelayDuration`, so a Radix
4609
+ * provider config can be spread into it. */
4610
+ declare function TooltipProvider({ children, delay, closeDelay, timeout, delayDuration, skipDelayDuration }: TooltipProviderProps): Element_12xgc31;
3263
4611
  type TooltipSide = "top" | "right" | "bottom" | "left";
4612
+ type TooltipAlign = "start" | "center" | "end";
4613
+ interface TooltipRootProps {
4614
+ /** Controlled open state. While set, hover and focus only report through `onOpenChange`. */
4615
+ open?: boolean;
4616
+ /** Initial open state, for an uncontrolled tooltip. Defaults to `false`. */
4617
+ defaultOpen?: boolean;
4618
+ /** Called when hover, focus or Escape would open or close the tooltip. */
4619
+ onOpenChange?: (open: boolean) => void;
4620
+ /** Hover delay before this tooltip opens, in ms. Defaults to the surrounding TooltipProvider's, else 200. */
4621
+ delay?: number;
4622
+ /** Radix name for `delay`. */
4623
+ delayDuration?: number;
4624
+ /** Delay before it closes once the pointer leaves, in ms. Defaults to the surrounding TooltipProvider's, else 0. */
4625
+ closeDelay?: number;
4626
+ /** Follow the cursor along one axis while hovering the trigger (see Tooltip's `followCursor`). */
4627
+ followCursor?: "x" | "y";
4628
+ /** A `Tooltip.Trigger` and a `Tooltip.Content`. */
4629
+ children?: ReactNode40;
4630
+ }
4631
+ /** The state of one compound tooltip: open state, what opened it, the delays and the cursor axis. */
4632
+ declare function TooltipRoot({ open: openProp, defaultOpen, onOpenChange, delay: delayProp, delayDuration, closeDelay, followCursor, children }: TooltipRootProps): Element_12xgc31;
4633
+ type TooltipTriggerProps = SlotProps;
4634
+ /** The element the tooltip describes: `render={<Button/>}`, Radix-style `asChild`, or a plain button around `children`. */
4635
+ declare const TooltipTrigger: ForwardRefExoticComponent_tcubfn27<SlotProps & RefAttributes_miuf5627<HTMLButtonElement>>;
4636
+ interface TooltipContentProps extends Omit<HTMLAttributes29<HTMLDivElement>, "children" | "className"> {
4637
+ /** The label. */
4638
+ children?: ReactNode40;
4639
+ /** An element to render the label as, inside the inverted surface; the label goes inside it. */
4640
+ render?: ReactElement7;
4641
+ /** Radix-style: the single child element is the label, rendered as-is inside the surface. Defaults to `false`. */
4642
+ asChild?: boolean;
4643
+ /** Preferred side of the trigger; flips when it would collide with the viewport edge. Defaults to `"top"`. */
4644
+ side?: TooltipSide;
4645
+ /** Alignment against the trigger along that side. Defaults to `"center"`. */
4646
+ align?: TooltipAlign;
4647
+ /** Distance in pixels between the tooltip and the trigger. Defaults to `8`. */
4648
+ sideOffset?: number;
4649
+ /** Shift in pixels along the alignment axis. Defaults to `0`. */
4650
+ alignOffset?: number;
4651
+ /** Classes for the label's surface. */
4652
+ className?: string;
4653
+ /** Classes for the portalled positioner — a z utility here lifts the tooltip above other fixed layers (default z-50). */
4654
+ positionerClassName?: string;
4655
+ /** Where the label grows from (see Morph): the trigger, the pointer, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
4656
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject23<HTMLElement | null>;
4657
+ /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. `followCursor` tooltips always fade. Defaults to `'goo'`. */
4658
+ effect?: "goo" | "morph" | "slide" | "fade";
4659
+ /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
4660
+ tier?: "moderate" | "slow";
4661
+ }
4662
+ /** The inverted label, portalled and positioned next to the trigger, grown out of it through the morph. */
4663
+ declare const TooltipContent: ForwardRefExoticComponent_tcubfn27<TooltipContentProps & RefAttributes_miuf5627<HTMLDivElement>>;
3264
4664
  interface TooltipProps {
3265
- /** The content displayed inside the tooltip. */
3266
- content: ReactNode29;
3267
- /** The trigger element. Must accept a ref. */
3268
- children: React.ReactElement;
4665
+ /** The content displayed inside the tooltip. Leave it out to use `Tooltip` as the root of a compound tooltip (`Tooltip.Trigger` + `Tooltip.Content` inside). */
4666
+ content?: ReactNode40;
4667
+ /** The trigger element, which must accept a ref; or, without `content`, the compound parts. */
4668
+ children?: ReactNode40;
3269
4669
  /** Preferred side of the trigger to render the tooltip on. Defaults to `"top"`. */
3270
4670
  side?: TooltipSide;
3271
- /** Distance in pixels between the tooltip and the trigger. Defaults to 8. */
4671
+ /** Alignment against the trigger along that side. Defaults to `"center"`. */
4672
+ align?: TooltipAlign;
4673
+ /** Distance in pixels between the tooltip and the trigger. Defaults to `8`. */
3272
4674
  sideOffset?: number;
3273
- /** Hover delay before this tooltip opens, in ms. Defaults to 200, or to the
3274
- * ambient TooltipProvider's delayDuration when one is present. */
4675
+ /** Hover delay before this tooltip opens, in ms. Defaults to 200, or to the ambient TooltipProvider's delay when one is present. */
3275
4676
  delayDuration?: number;
4677
+ /** Base UI name for `delayDuration`. */
4678
+ delay?: number;
4679
+ /** Delay before it closes once the pointer leaves, in ms. Defaults to the ambient TooltipProvider's, else 0. */
4680
+ closeDelay?: number;
3276
4681
  /** Additional classes applied to the tooltip content container. */
3277
4682
  className?: string;
3278
- /** Extra classes for the portalled positioner element — pass a z utility
3279
- * here to lift the whole tooltip above other fixed layers (default z-50). */
4683
+ /** Extra classes for the portalled positioner element — pass a z utility here to lift the whole tooltip above other fixed layers (default z-50). */
3280
4684
  contentClassName?: string;
3281
4685
  /** When true, forces the tooltip open. When false, forces it closed. When undefined, uses default hover/focus behavior. */
3282
4686
  forceOpen?: boolean;
3283
- /** Follow the cursor along one axis while hovering the trigger — for tall
3284
- * or wide triggers (the Sidebar rail) where a centered tooltip sits far
3285
- * from the pointer. The other axis stays anchored by `side`. */
4687
+ /** Controlled open state, the Radix spelling of `forceOpen`. */
4688
+ open?: boolean;
4689
+ /** Initial open state, for an uncontrolled tooltip. Defaults to `false`. */
4690
+ defaultOpen?: boolean;
4691
+ /** Follow the cursor along one axis while hovering the trigger — for tall or wide triggers (the Sidebar rail) where a centered tooltip sits far from the pointer. The other axis stays anchored by `side`. */
3286
4692
  followCursor?: "x" | "y";
3287
4693
  /** Called when the tooltip's internal open state changes (before forceOpen is applied). */
3288
4694
  onOpenChange?: (open: boolean) => void;
3289
4695
  /** Where the label grows from (see Morph): the trigger, the pointer, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
3290
- from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject19<HTMLElement | null>;
4696
+ from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left" | RefObject23<HTMLElement | null>;
3291
4697
  /** How it grows (see Morph): with the liquid goo neck, a plain morph, a slide or a fade. `followCursor` tooltips always fade. Defaults to `'goo'`. */
3292
4698
  effect?: "goo" | "morph" | "slide" | "fade";
3293
4699
  /** Spring tier of a plain morph, slide or fade; goo runs on its own `spring.goo`. Defaults to `'moderate'`. */
@@ -3304,30 +4710,105 @@ interface TooltipProps {
3304
4710
  * `followCursor` tracks the pointer along one axis for tall or wide triggers,
3305
4711
  * while the other stays anchored by `side`. Built on Base UI's Tooltip.
3306
4712
  *
4713
+ * Leave `content` out and `Tooltip` becomes the root of a compound tooltip:
4714
+ * a `Tooltip.Trigger` and a `Tooltip.Content` inside it, the shape Radix
4715
+ * code is written in. The label looks and moves the same either way.
4716
+ *
3307
4717
  * Statics:
4718
+ * - `Tooltip.Root` — `TooltipRoot`: the compound root on its own: `open`,
4719
+ * `defaultOpen`, `onOpenChange`, `delay` (or `delayDuration`),
4720
+ * `closeDelay`, `followCursor`.
4721
+ * - `Tooltip.Trigger` — `TooltipTrigger`: the described element,
4722
+ * `render={<Button/>}` or Radix-style `asChild`.
4723
+ * - `Tooltip.Content` — `TooltipContent`: the label: `side`, `align`,
4724
+ * `sideOffset`, `alignOffset`, `positionerClassName`, the morph options
4725
+ * `from`, `effect`, `tier`, and `render` or Radix-style `asChild` for the
4726
+ * label's own element; other props land on the popup.
3308
4727
  * - `Tooltip.Provider` — `TooltipProvider`: groups tooltips so moving from
3309
4728
  * one trigger to an adjacent one skips the hover delay, and the morph: the
3310
- * next label shows in place.
4729
+ * next label shows in place. `delay`, `closeDelay`, `timeout`, or Radix's
4730
+ * `delayDuration` and `skipDelayDuration`.
3311
4731
  * - `Tooltip.PortalContainer` — `TooltipPortalContainer`: portal every
3312
4732
  * descendant tooltip into a given element instead of the body.
3313
4733
  *
3314
4734
  * @example {@include ./examples.mdx}
3315
4735
  */
3316
- declare function Tooltip({ content, children, side, sideOffset, delayDuration, className, contentClassName, forceOpen, onOpenChange: onOpenChangeProp, followCursor, from, effect, tier }: TooltipProps): Element_12xgc24;
3317
- import { ForwardRefExoticComponent as ForwardRefExoticComponent12, HTMLAttributes as HTMLAttributes27, ReactNode as ReactNode30, RefAttributes as RefAttributes12, TdHTMLAttributes, ThHTMLAttributes } from "react";
3318
- interface TableProps extends HTMLAttributes27<HTMLTableElement> {
4736
+ declare function Tooltip({ content, children, side, align, sideOffset, delayDuration, delay, closeDelay, className, contentClassName, forceOpen, open, defaultOpen, onOpenChange, followCursor, from, effect, tier }: TooltipProps): Element_12xgc31;
4737
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef5, ForwardRefExoticComponent as ForwardRefExoticComponent15, ReactNode as ReactNode41, RefAttributes as RefAttributes15 } from "react";
4738
+ interface SpinnerProps extends Omit<ComponentPropsWithoutRef5<"span">, "children"> {
4739
+ /** Pins the spinner to one step of the size ladder: one control tall (36px default, 28px compact), like a loading Button's. Defaults to the surrounding SizeProvider. */
4740
+ size?: SizeVariant;
4741
+ /** What is loading, read to assistive tech. Defaults to `"Loading"`. */
4742
+ label?: string;
4743
+ /** Classes for the box: a size off the ladder (`size-5` inline in text), a color. */
4744
+ className?: string;
4745
+ }
4746
+ /** An indeterminate wait in a small space: Button's loading glyph on its own. */
4747
+ declare const Spinner: ForwardRefExoticComponent15<SpinnerProps & RefAttributes15<HTMLSpanElement>>;
4748
+ interface ProgressProps extends Omit<ComponentPropsWithoutRef5<"div">, "children"> {
4749
+ /** How far along the task is, between `min` and `max`. `null` is an indeterminate bar: a segment sweeping the track while the amount is unknown. Defaults to `null`. */
4750
+ value?: number | null;
4751
+ /** The value of an empty bar. Defaults to `0`. */
4752
+ min?: number;
4753
+ /** The value of a full bar. Defaults to `100`. */
4754
+ max?: number;
4755
+ /** A label above the bar, also its accessible name. Without one, give the bar an `aria-label`. */
4756
+ label?: ReactNode41;
4757
+ /** Shows the value, formatted as a percentage, at the end of the label row. Defaults to `false`. */
4758
+ showValue?: boolean;
4759
+ /** Number format for the shown value and for assistive tech, as `Intl.NumberFormat` options. Defaults to a percentage. */
4760
+ format?: Intl.NumberFormatOptions;
4761
+ /** Pins the label row to one step of the size ladder. Defaults to the surrounding SizeProvider. */
4762
+ size?: SizeVariant;
4763
+ /** Classes for the root: a width, or `absolute inset-x-0 top-0` for a loading line along a region's top edge. */
4764
+ className?: string;
4765
+ }
4766
+ type ProgressComponent = ForwardRefExoticComponent15<ProgressProps & RefAttributes15<HTMLDivElement>> & {
4767
+ Spinner: typeof Spinner;
4768
+ };
4769
+ /**
4770
+ * Shows how far along a task is, or that something is still working when
4771
+ * nobody knows how far.
4772
+ *
4773
+ * A determinate bar (`value`) slides its fill to the new amount on the
4774
+ * indicator spring, never stretching it, so the rounded end keeps its shape;
4775
+ * an indeterminate one (`value={null}`) sweeps an ink segment along a recessed
4776
+ * track. The fill is ink, not the brand blue: progress is information, not a
4777
+ * selection. Base UI's Progress gives the bar its `progressbar` role, its
4778
+ * values and their text for assistive tech; `label` names it and `showValue`
4779
+ * prints the formatted value beside the label. Under reduced motion the fill
4780
+ * jumps to its amount and the indeterminate bar breathes in place instead of
4781
+ * travelling.
4782
+ *
4783
+ * Statics:
4784
+ * - `Progress.Spinner` — the same wait in a small space: Button's loading
4785
+ * glyph on its own, one control tall (`size`), `label` for assistive tech.
4786
+ * Also exported as `Spinner`.
4787
+ *
4788
+ * @example {@include ./examples.mdx}
4789
+ */
4790
+ declare const Progress: ProgressComponent;
4791
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent16, HTMLAttributes as HTMLAttributes30, ReactNode as ReactNode42, RefAttributes as RefAttributes16, TdHTMLAttributes, ThHTMLAttributes } from "react";
4792
+ interface TableProps extends HTMLAttributes30<HTMLTableElement> {
3319
4793
  /** `Table.Header` and `Table.Body` children. */
3320
- children: ReactNode30;
4794
+ children: ReactNode42;
3321
4795
  /** Pins the table's rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Defaults to the surrounding SizeProvider, else `"default"`. */
3322
4796
  size?: SizeVariant;
4797
+ /** Below the `md` breakpoint, hide the header and lay each row out as a two-column grid of its cells, each led by its `label`. `stacked={false}` on a `Table.Header` or `Table.Row` keeps that part tabular. Defaults to `false`. */
4798
+ stacked?: boolean;
4799
+ /** Classes for the hover container around the `<table>`, e.g. `overflow-x-auto` for wide tables. */
4800
+ containerClassName?: string;
3323
4801
  }
3324
4802
  /** The root plus its compound parts, typed so `<Table.Row>` type-checks. */
3325
- type TableComponent = ForwardRefExoticComponent12<TableProps & RefAttributes12<HTMLTableElement>> & {
4803
+ type TableComponent = ForwardRefExoticComponent16<TableProps & RefAttributes16<HTMLTableElement>> & {
3326
4804
  Header: typeof TableHeader;
3327
4805
  Body: typeof TableBody;
3328
4806
  Row: typeof TableRow;
3329
4807
  Head: typeof TableHead;
3330
4808
  Cell: typeof TableCell;
4809
+ Footer: typeof TableFooter;
4810
+ Caption: typeof TableCaption;
4811
+ Empty: typeof TableEmpty;
3331
4812
  };
3332
4813
  /**
3333
4814
  * Data table with row hover effects and semantic markup.
@@ -3340,34 +4821,74 @@ type TableComponent = ForwardRefExoticComponent12<TableProps & RefAttributes12<H
3340
4821
  * row to one step of the size ladder; otherwise the table follows the
3341
4822
  * surrounding SizeProvider.
3342
4823
  *
3343
- * Parts: `Table.Header` (`<thead>`), `Table.Body` (`<tbody>`), `Table.Row`
3344
- * (`<tr>` — give body rows an `index`, starting at 0, so they join the hover
3345
- * highlight; omit it on header rows), `Table.Head` (`<th>`) and `Table.Cell`
3346
- * (`<td>`). Each forwards its ref and native attributes.
4824
+ * A head with `sortDirection` (or `defaultSortDirection`, or `onSort`)
4825
+ * becomes a sort button: a press cycles ascending, descending and unsorted,
4826
+ * reporting the next direction through `onSort`, and its arrow crossfades
4827
+ * into the new one. `stacked` turns rows into two-column cards on small
4828
+ * screens, each cell led by its `label`.
4829
+ *
4830
+ * Statics:
4831
+ * - `Table.Header` — `<thead>`; `stacked={false}` keeps it visible on small
4832
+ * screens.
4833
+ * - `Table.Body` — `<tbody>`.
4834
+ * - `Table.Footer` — `<tfoot>`, for totals: its rows render semibold and stay
4835
+ * out of the hover.
4836
+ * - `Table.Row` — `<tr>`: give body rows an `index`, starting at 0, so they
4837
+ * join the hover highlight; omit it on header and footer rows.
4838
+ * `stacked={false}` keeps the row tabular.
4839
+ * - `Table.Head` — `<th>`: `sortDirection` (`'asc'`, `'desc'` or `false`),
4840
+ * `defaultSortDirection`, `onSort`.
4841
+ * - `Table.Cell` — `<td>`: `label`, shown above the value while stacked.
4842
+ * - `Table.Caption` — `<caption>`, a muted line below the table.
4843
+ * - `Table.Empty` — one row across `colSpan` columns, for an empty or loading
4844
+ * state.
4845
+ *
4846
+ * Each forwards its ref and native attributes.
3347
4847
  *
3348
4848
  * @example {@include ./examples.mdx}
3349
4849
  */
3350
4850
  declare const Table: TableComponent;
3351
- declare const TableHeader: ForwardRefExoticComponent12<HTMLAttributes27<HTMLTableSectionElement> & RefAttributes12<HTMLTableSectionElement>>;
3352
- declare const TableBody: ForwardRefExoticComponent12<HTMLAttributes27<HTMLTableSectionElement> & RefAttributes12<HTMLTableSectionElement>>;
3353
- interface TableRowProps extends HTMLAttributes27<HTMLTableRowElement> {
4851
+ interface TableHeaderProps extends HTMLAttributes30<HTMLTableSectionElement> {
4852
+ /** `false` keeps the header showing on small screens in a `stacked` table. Defaults to the table's `stacked`. */
4853
+ stacked?: boolean;
4854
+ }
4855
+ declare const TableHeader: ForwardRefExoticComponent16<TableHeaderProps & RefAttributes16<HTMLTableSectionElement>>;
4856
+ declare const TableBody: ForwardRefExoticComponent16<HTMLAttributes30<HTMLTableSectionElement> & RefAttributes16<HTMLTableSectionElement>>;
4857
+ declare const TableFooter: ForwardRefExoticComponent16<HTMLAttributes30<HTMLTableSectionElement> & RefAttributes16<HTMLTableSectionElement>>;
4858
+ declare const TableCaption: ForwardRefExoticComponent16<HTMLAttributes30<HTMLTableCaptionElement> & RefAttributes16<HTMLTableCaptionElement>>;
4859
+ interface TableRowProps extends HTMLAttributes30<HTMLTableRowElement> {
4860
+ /** Position among the body rows, from 0: joins the row to the hover highlight. Omit it on header and footer rows. */
3354
4861
  index?: number;
3355
- }
3356
- declare const TableRow: ForwardRefExoticComponent12<TableRowProps & RefAttributes12<HTMLTableRowElement>>;
3357
- declare const TableHead: ForwardRefExoticComponent12<ThHTMLAttributes<HTMLTableCellElement> & RefAttributes12<HTMLTableCellElement>>;
3358
- declare const TableCell: ForwardRefExoticComponent12<TdHTMLAttributes<HTMLTableCellElement> & RefAttributes12<HTMLTableCellElement>>;
3359
- import { ReactNode as ReactNode31 } from "react";
3360
- import { JSX as JSX_1kxb25 } from "react";
3361
- type ShapeVariant = "pill" | "rounded";
3362
- type Element_12xgc25 = JSX_1kxb25["Element"];
3363
- declare function ShapeProvider({ children, defaultShape }: {
3364
- children: ReactNode31;
3365
- defaultShape?: ShapeVariant;
3366
- }): Element_12xgc25;
4862
+ /** `false` keeps this row tabular on small screens in a `stacked` table. Defaults to the table's `stacked`. */
4863
+ stacked?: boolean;
4864
+ }
4865
+ declare const TableRow: ForwardRefExoticComponent16<TableRowProps & RefAttributes16<HTMLTableRowElement>>;
4866
+ type SortDirection = "asc" | "desc" | false;
4867
+ interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement> {
4868
+ /** Controlled sort direction of this column: `'asc'`, `'desc'` or `false` (unsorted). Setting it makes the head a sort button. Pair with `onSort`. */
4869
+ sortDirection?: SortDirection;
4870
+ /** Initial sort direction, for a head that keeps its own; setting it makes the head a sort button. */
4871
+ defaultSortDirection?: SortDirection;
4872
+ /** Called with the next direction when the head is pressed: unsorted → `'asc'` → `'desc'` → `false`. Setting it makes the head a sort button. */
4873
+ onSort?: (direction: SortDirection) => void;
4874
+ }
4875
+ declare const TableHead: ForwardRefExoticComponent16<TableHeadProps & RefAttributes16<HTMLTableCellElement>>;
4876
+ interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
4877
+ /** The column's name, shown above the value while a `stacked` table lays its rows out as cards. */
4878
+ label?: ReactNode42;
4879
+ }
4880
+ declare const TableCell: ForwardRefExoticComponent16<TableCellProps & RefAttributes16<HTMLTableCellElement>>;
4881
+ interface TableEmptyProps extends HTMLAttributes30<HTMLTableRowElement> {
4882
+ /** Number of columns the row spans: the table's column count. */
4883
+ colSpan: number;
4884
+ /** What to say, or a loading indicator. */
4885
+ children?: ReactNode42;
4886
+ }
4887
+ declare const TableEmpty: ForwardRefExoticComponent16<TableEmptyProps & RefAttributes16<HTMLTableRowElement>>;
3367
4888
  import { CnFunction } from "cn";
3368
4889
  declare const cn: CnFunction;
3369
- import { JSX as JSX_1kxb26 } from "react";
3370
- type Element_12xgc26 = JSX_1kxb26["Element"];
4890
+ import { JSX as JSX_1kxb32 } from "react";
4891
+ type Element_12xgc32 = JSX_1kxb32["Element"];
3371
4892
  /**
3372
4893
  * Source code in the theme's syntax colors, one surface step above whatever
3373
4894
  * it sits on.
@@ -3387,13 +4908,13 @@ declare function Code({ children, language, className }: {
3387
4908
  language?: string;
3388
4909
  /** Extra classes for the frame. */
3389
4910
  className?: string;
3390
- }): Element_12xgc26;
3391
- import { ReactNode as ReactNode32 } from "react";
4911
+ }): Element_12xgc32;
4912
+ import { ReactNode as ReactNode43 } from "react";
3392
4913
  interface CraftProps {
3393
4914
  /** The naive version: the same interface with the detail missing. */
3394
- bad: ReactNode32;
4915
+ bad: ReactNode43;
3395
4916
  /** The system's version, with the detail in place. */
3396
- good: ReactNode32;
4917
+ good: ReactNode43;
3397
4918
  /** What goes wrong on the bad side, in one line. */
3398
4919
  badNote?: string;
3399
4920
  /** What the good side does instead, in one line. */
@@ -3401,98 +4922,9 @@ interface CraftProps {
3401
4922
  /** Classes for the root grid. */
3402
4923
  className?: string;
3403
4924
  }
3404
- import { ForwardRefExoticComponent as ForwardRefExoticComponent13, HTMLAttributes as HTMLAttributes28, ReactNode as ReactNode33, RefAttributes as RefAttributes13 } from "react";
4925
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent17, HTMLAttributes as HTMLAttributes31, ReactNode as ReactNode44, RefAttributes as RefAttributes17 } from "react";
3405
4926
  import { Transition as Transition2 } from "motion/react";
3406
- import { Dispatch as Dispatch2, MutableRefObject as MutableRefObject2, RefObject as RefObject20, SetStateAction as SetStateAction2 } from "react";
3407
- interface ItemRect {
3408
- top: number;
3409
- height: number;
3410
- left: number;
3411
- width: number;
3412
- }
3413
- interface UseFluidHoverOptions {
3414
- /**
3415
- * Which direction to resolve the nearest item along.
3416
- * "y" — vertical lists (default): closest by top/height
3417
- * "x" — horizontal strips: closest by left/width
3418
- * "xy" — 2-D grids: closest card across both rows AND columns,
3419
- * measured by Euclidean distance to each item's center
3420
- */
3421
- axis?: "x" | "y" | "xy";
3422
- /**
3423
- * Makes an item invisible to hit-testing without unregistering it — for
3424
- * rows that stay mounted while clipped away (a collapsed sub-tree).
3425
- * Unregistering would invalidate every measurement; a skipped item keeps
3426
- * the set stable. Consulted per mouse move, so keep it cheap.
3427
- */
3428
- isItemDisabled?: (element: HTMLElement) => boolean;
3429
- /**
3430
- * Whether a click that lands between items (a gap, the padding, past the
3431
- * last row) is routed to the highlighted item, so what is lit is what a
3432
- * click hits. On by default: in a menu or a list the highlight is a
3433
- * promise about the click. Pass `false` where empty space should stay
3434
- * inert (rows with destructive actions, generous whitespace), or
3435
- * `{ maxDistance }` to route only clicks within that many pixels of the
3436
- * highlighted item's edge.
3437
- */
3438
- gapClick?: boolean | {
3439
- maxDistance?: number;
3440
- };
3441
- }
3442
- interface UseFluidHoverReturn {
3443
- activeIndex: number | null;
3444
- setActiveIndex: Dispatch2<SetStateAction2<number | null>>;
3445
- itemRects: ItemRect[];
3446
- /**
3447
- * True once every registered item has been measured and no remeasure is
3448
- * pending, i.e. `itemRects` describes the current item set. Gate absolutely
3449
- * positioned overlays on it: an overlay that mounts against a rect a later
3450
- * pass still corrects animates from the wrong place to the right one, which
3451
- * reads as the highlight sliding in from another row.
3452
- */
3453
- isMeasured: boolean;
3454
- sessionRef: MutableRefObject2<number>;
3455
- handlers: {
3456
- onMouseMove: (e: React.MouseEvent) => void;
3457
- onMouseEnter: () => void;
3458
- onMouseLeave: () => void;
3459
- /**
3460
- * Routes a click that lands between items (a gap, the padding, past the
3461
- * last row) to the highlighted item, so the highlight and the click agree:
3462
- * what is lit is what a click hits. A click inside an item is left to the
3463
- * item. Disabled items (`isItemDisabled`) are never activated.
3464
- */
3465
- onClick: (e: React.MouseEvent) => void;
3466
- };
3467
- registerItem: (index: number, element: HTMLElement | null) => void;
3468
- /**
3469
- * Invalidates the published rects and runs the hook's coalesced measurement
3470
- * pass again, holding `isMeasured` false until it settles. Reach for it when
3471
- * the rects may be wrong and showing an overlay against them would misplace
3472
- * it: a popup that stays mounted between opens keeps its items registered,
3473
- * so nothing else would notice that its rects were taken while it was
3474
- * hidden. Registration, item resize, and container resize already trigger
3475
- * a pass; do not call this on `children` changes.
3476
- */
3477
- remeasure: () => void;
3478
- /**
3479
- * Re-reads the rects synchronously, keeping `isMeasured` as it is. Only for
3480
- * layout that moves the rows under a visible overlay frame by frame (the
3481
- * accordion re-measures inside its height animation). Everything else
3482
- * wants `remeasure`, or nothing.
3483
- */
3484
- measureItems: () => void;
3485
- }
3486
- declare function useFluidHover<T extends HTMLElement>(containerRef: RefObject20<T | null>, options?: UseFluidHoverOptions): UseFluidHoverReturn;
3487
- /**
3488
- * Registers an item's element with its list for as long as it is mounted.
3489
- * The one way rows join a list: pass the hook's `registerItem` (or the copy
3490
- * a context hands down), the row's index, and its ref. Either may be
3491
- * missing for a row rendered outside a list (a standalone card, an accordion
3492
- * item that is not grouped); then nothing is registered.
3493
- */
3494
- declare function useRegisterFluidHoverItem(registerItem: ((index: number, element: HTMLElement | null) => void) | undefined, index: number | undefined, ref: RefObject20<HTMLElement | null>): void;
3495
- import { JSX as JSX_1kxb28 } from "react";
4927
+ import { JSX as JSX_1kxb34 } from "react";
3496
4928
  /** What the highlight reads off the hook: the highlighted index, the
3497
4929
  * measured rects, whether they are current, and the pointer session. */
3498
4930
  type FluidHoverSource = Pick<UseFluidHoverReturn, "activeIndex" | "itemRects" | "isMeasured" | "sessionRef">;
@@ -3530,16 +4962,16 @@ type FluidHoverHighlightProps = (HighlightFromHook | HighlightFromRect) & {
3530
4962
  * underneath, not a hover change). The opacity fade is always 0.08s. */
3531
4963
  transition?: Transition2 | false;
3532
4964
  };
3533
- type Element_12xgc28 = JSX_1kxb28["Element"];
3534
- declare function FluidHoverHighlight(props: FluidHoverHighlightProps): Element_12xgc28;
4965
+ type Element_12xgc34 = JSX_1kxb34["Element"];
4966
+ declare function FluidHoverHighlight(props: FluidHoverHighlightProps): Element_12xgc34;
3535
4967
  type FluidHoverAxis = "x" | "y" | "xy";
3536
- interface FluidHoverItemProps extends HTMLAttributes28<HTMLButtonElement> {
4968
+ interface FluidHoverItemProps extends HTMLAttributes31<HTMLButtonElement> {
3537
4969
  /** Position in the list. Assigned automatically to direct children of `FluidHover`; pass it by hand for rows rendered inside a wrapper of your own. */
3538
4970
  index?: number;
3539
4971
  /** Skips the row: never lit, never the target of a gap click. It stays registered, so its neighbours keep their indices. Defaults to `false`. */
3540
4972
  disabled?: boolean;
3541
4973
  /** The row's content — a label, or an icon plus text, or (on `xy`) a title over a description. */
3542
- children?: ReactNode33;
4974
+ children?: ReactNode44;
3543
4975
  /** Classes for the row, merged over the per-axis defaults. */
3544
4976
  className?: string;
3545
4977
  }
@@ -3549,8 +4981,8 @@ interface FluidHoverItemProps extends HTMLAttributes28<HTMLButtonElement> {
3549
4981
  * surrounding `FluidHover` for as long as it is mounted; outside one it is
3550
4982
  * just a button.
3551
4983
  */
3552
- declare const FluidHoverItem: ForwardRefExoticComponent13<FluidHoverItemProps & RefAttributes13<HTMLButtonElement>>;
3553
- interface FluidHoverProps extends HTMLAttributes28<HTMLDivElement> {
4984
+ declare const FluidHoverItem: ForwardRefExoticComponent17<FluidHoverItemProps & RefAttributes17<HTMLButtonElement>>;
4985
+ interface FluidHoverProps extends HTMLAttributes31<HTMLDivElement> {
3554
4986
  /** Which way the list runs: `'y'` for lists, `'x'` for strips, `'xy'` for grids. Defaults to `'y'`, or `'xy'` when `columns` is above 1. */
3555
4987
  axis?: FluidHoverAxis;
3556
4988
  /** Grid columns. Above 1 the container becomes a grid and resolves the nearest item across rows and columns. Defaults to `1`, or `2` when `axis` is `'xy'`. */
@@ -3558,7 +4990,7 @@ interface FluidHoverProps extends HTMLAttributes28<HTMLDivElement> {
3558
4990
  /** Shorthand rows: one `FluidHover.Item` per string, indexed in order. Omit it and pass `FluidHover.Item` children instead. */
3559
4991
  items?: string[];
3560
4992
  /** Renders the content of a shorthand row. Defaults to the string itself. */
3561
- renderItem?: (item: string, index: number) => ReactNode33;
4993
+ renderItem?: (item: string, index: number) => ReactNode44;
3562
4994
  /** Rows to skip: never lit, never the target of a gap click. They stay registered, so their neighbours keep their indices. */
3563
4995
  disabledIndices?: number[];
3564
4996
  /** Whether a click that lands between rows goes to the lit one, so what is lit is what a click hits. `false` leaves empty space inert; `{ maxDistance }` routes only clicks within that many pixels of the lit row. Defaults to `true`. */
@@ -3570,9 +5002,9 @@ interface FluidHoverProps extends HTMLAttributes28<HTMLDivElement> {
3570
5002
  /** Classes for the list container. Padding here is part of the list: a click in it still lands on the lit row. */
3571
5003
  className?: string;
3572
5004
  /** `FluidHover.Item` rows, when `items` is not enough. Direct Item children are indexed in order. */
3573
- children?: ReactNode33;
5005
+ children?: ReactNode44;
3574
5006
  }
3575
- type FluidHoverComponent = ForwardRefExoticComponent13<FluidHoverProps & RefAttributes13<HTMLDivElement>> & {
5007
+ type FluidHoverComponent = ForwardRefExoticComponent17<FluidHoverProps & RefAttributes17<HTMLDivElement>> & {
3576
5008
  Item: typeof FluidHoverItem;
3577
5009
  };
3578
5010
  /**
@@ -3633,20 +5065,20 @@ type FluidHoverComponent = ForwardRefExoticComponent13<FluidHoverProps & RefAttr
3633
5065
  * @example {@include ./examples.mdx}
3634
5066
  */
3635
5067
  declare const FluidHover: FluidHoverComponent;
3636
- import { ReactNode as ReactNode35 } from "react";
3637
- import { ReactNode as ReactNode34 } from "react";
3638
- import { JSX as JSX_1kxb29 } from "react";
5068
+ import { ReactNode as ReactNode46 } from "react";
5069
+ import { ReactNode as ReactNode45 } from "react";
5070
+ import { JSX as JSX_1kxb35 } from "react";
3639
5071
  interface MorphPartProps {
3640
5072
  /** Pairs the part in the trigger with its twin in the overlay; unique within one overlay. */
3641
5073
  id: string;
3642
5074
  /** Classes for the part's box. */
3643
5075
  className?: string;
3644
5076
  /** The part's content: an image, a title. */
3645
- children?: ReactNode34;
5077
+ children?: ReactNode45;
3646
5078
  }
3647
- type Element_12xgc29 = JSX_1kxb29["Element"];
3648
- declare function MorphPart({ id, className, children }: MorphPartProps): Element_12xgc29;
3649
- import { JSX as JSX_1kxb30 } from "react";
5079
+ type Element_12xgc35 = JSX_1kxb35["Element"];
5080
+ declare function MorphPart({ id, className, children }: MorphPartProps): Element_12xgc35;
5081
+ import { JSX as JSX_1kxb36 } from "react";
3650
5082
  interface MorphProps {
3651
5083
  /** Where the panel grows from: the pressed `'trigger'`, the press `'pointer'` (a circle; keyboard opens use the trigger's center), the panel's own `'center'`, or a viewport edge (`'top'`, `'right'`, `'bottom'`, `'left'`). Defaults to `'trigger'`. */
3652
5084
  from?: "trigger" | "pointer" | "center" | "top" | "right" | "bottom" | "left";
@@ -3667,9 +5099,9 @@ interface MorphProps {
3667
5099
  /** Extra classes for the stage (trigger + panel). */
3668
5100
  className?: string;
3669
5101
  /** The panel's content. */
3670
- children?: ReactNode35;
5102
+ children?: ReactNode46;
3671
5103
  }
3672
- type Element_12xgc30 = JSX_1kxb30["Element"];
5104
+ type Element_12xgc36 = JSX_1kxb36["Element"];
3673
5105
  /**
3674
5106
  * Overlays grow out of whatever opened them. One progress value on a spring
3675
5107
  * tier carries the surface from its source to its own box, and every
@@ -3758,8 +5190,8 @@ type Element_12xgc30 = JSX_1kxb30["Element"];
3758
5190
  *
3759
5191
  * @example {@include ./examples.mdx}
3760
5192
  */
3761
- declare function Morph2({ from, effect, tier, hideSource, open, defaultOpen, onOpenChange, label, className, children }: MorphProps): Element_12xgc30;
3762
- import { ReactNode as ReactNode36 } from "react";
5193
+ declare function Morph2({ from, effect, tier, hideSource, open, defaultOpen, onOpenChange, label, className, children }: MorphProps): Element_12xgc36;
5194
+ import { ReactNode as ReactNode47 } from "react";
3763
5195
  declare const spring: {
3764
5196
  readonly fast: {
3765
5197
  readonly type: "spring";
@@ -3803,7 +5235,7 @@ declare const exitFallbackMs: (tier: {
3803
5235
  visualDuration: number;
3804
5236
  };
3805
5237
  }) => number;
3806
- import { JSX as JSX_1kxb31 } from "react";
5238
+ import { JSX as JSX_1kxb37 } from "react";
3807
5239
  type SpringTier = keyof typeof spring;
3808
5240
  interface MotionProps {
3809
5241
  /** Spring tier the children enter on (`spring.<tier>`); they leave on its `.exit` tween. `fast` for hover, fades and small toggles, `moderate` for dropdowns and tabs, `slow` for dialogs and large surfaces. Defaults to `'moderate'`. */
@@ -3821,9 +5253,9 @@ interface MotionProps {
3821
5253
  /** Extra classes for the wrapper (stage + trigger column). */
3822
5254
  className?: string;
3823
5255
  /** The content that animates in and out. */
3824
- children: ReactNode36;
5256
+ children: ReactNode47;
3825
5257
  }
3826
- type Element_12xgc31 = JSX_1kxb31["Element"];
5258
+ type Element_12xgc37 = JSX_1kxb37["Element"];
3827
5259
  /**
3828
5260
  * Three spring speeds, exits a little faster than entrances, and one fluid
3829
5261
  * hover shared by every list. Pick a speed, wire it in — every component
@@ -3872,11 +5304,11 @@ type Element_12xgc31 = JSX_1kxb31["Element"];
3872
5304
  *
3873
5305
  * @example {@include ./examples.mdx}
3874
5306
  */
3875
- declare function Motion({ tier, show, defaultShow, onShowChange, sameExit, reducedMotion, className, children }: MotionProps): Element_12xgc31;
3876
- import { ComponentPropsWithoutRef as ComponentPropsWithoutRef2, ForwardRefExoticComponent as ForwardRefExoticComponent14, ReactNode as ReactNode37, RefAttributes as RefAttributes14 } from "react";
5307
+ declare function Motion({ tier, show, defaultShow, onShowChange, sameExit, reducedMotion, className, children }: MotionProps): Element_12xgc37;
5308
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef6, ForwardRefExoticComponent as ForwardRefExoticComponent18, ReactNode as ReactNode48, RefAttributes as RefAttributes18 } from "react";
3877
5309
  import { ScrollAreaScrollbarProps as ScrollAreaScrollbarProps_g9nf4s } from "@base-ui/react";
3878
5310
  type Orientation = "vertical" | "horizontal" | "both";
3879
- interface ScrollAreaProps extends ComponentPropsWithoutRef2<"div"> {
5311
+ interface ScrollAreaProps extends ComponentPropsWithoutRef6<"div"> {
3880
5312
  /** Classes for the inner scrolling viewport — where the `scroll-fade` / `scroll-fade-x` utility goes. */
3881
5313
  viewportClassName?: string;
3882
5314
  /** Which axes get scrollbars. Defaults to `"vertical"`. */
@@ -3884,7 +5316,7 @@ interface ScrollAreaProps extends ComponentPropsWithoutRef2<"div"> {
3884
5316
  /** Classes for the outer container — set the height/width constraint here. */
3885
5317
  className?: string;
3886
5318
  /** The scrolling content. Give it an intrinsic size (`w-max`, `whitespace-nowrap`) to overflow horizontally. */
3887
- children?: ReactNode37;
5319
+ children?: ReactNode48;
3888
5320
  }
3889
5321
  interface ScrollAreaStatics {
3890
5322
  /** `ScrollBar` — one scrollbar, for composing a Base UI scroll area by hand. */
@@ -3911,11 +5343,11 @@ interface ScrollAreaStatics {
3911
5343
  *
3912
5344
  * @example {@include ./examples.mdx}
3913
5345
  */
3914
- declare const ScrollArea: ForwardRefExoticComponent14<ScrollAreaProps & RefAttributes14<HTMLDivElement>> & ScrollAreaStatics;
3915
- declare const ScrollBar: ForwardRefExoticComponent14<Omit<Omit<ScrollAreaScrollbarProps_g9nf4s, "ref"> & RefAttributes14<HTMLDivElement>, "ref"> & RefAttributes14<HTMLDivElement>>;
3916
- import { ReactNode as ReactNode38 } from "react";
3917
- import { JSX as JSX_1kxb32 } from "react";
3918
- type Element_12xgc32 = JSX_1kxb32["Element"];
5346
+ declare const ScrollArea: ForwardRefExoticComponent18<ScrollAreaProps & RefAttributes18<HTMLDivElement>> & ScrollAreaStatics;
5347
+ declare const ScrollBar: ForwardRefExoticComponent18<Omit<Omit<ScrollAreaScrollbarProps_g9nf4s, "ref"> & RefAttributes18<HTMLDivElement>, "ref"> & RefAttributes18<HTMLDivElement>>;
5348
+ import { ReactNode as ReactNode49 } from "react";
5349
+ import { JSX as JSX_1kxb38 } from "react";
5350
+ type Element_12xgc38 = JSX_1kxb38["Element"];
3919
5351
  /**
3920
5352
  * Two component sizes: a 36px default and a 28px compact. An interface reads
3921
5353
  * as one product when its controls share a sizing rhythm — a button next to a
@@ -3943,23 +5375,56 @@ type Element_12xgc32 = JSX_1kxb32["Element"];
3943
5375
  */
3944
5376
  declare function SizeProvider({ children, size, defaultSize }: {
3945
5377
  /** The region whose controls follow the step — popups opened from inside it included. */
3946
- children: ReactNode38;
5378
+ children: ReactNode49;
3947
5379
  /** Controlled variant — pins every control in the subtree to one step, overriding internal state. `'default'` is 36px controls, `'compact'` is 28px. */
3948
5380
  size?: "default" | "compact";
3949
5381
  /** Uncontrolled initial variant, switchable via `useSizeContext().setSize`. Defaults to `'default'`. */
3950
5382
  defaultSize?: "default" | "compact";
3951
- }): Element_12xgc32;
3952
- import { ComponentPropsWithoutRef as ComponentPropsWithoutRef3, ForwardRefExoticComponent as ForwardRefExoticComponent15, ReactNode as ReactNode40, RefAttributes as RefAttributes15 } from "react";
5383
+ }): Element_12xgc38;
5384
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef7 } from "react";
5385
+ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn28 } from "react";
5386
+ import { RefAttributes as RefAttributes_miuf5628 } from "react";
5387
+ interface SkeletonProps extends Omit<ComponentPropsWithoutRef7<"div">, "children"> {
5388
+ /** Renders a stack of this many row placeholders, each one control tall and 4px apart, for a list or table still loading. Omitted, the skeleton is one block you size with `className`. */
5389
+ rows?: number;
5390
+ /** Frames the rows in a hairline container, like an outlined Card.Group. Only with `rows`. Defaults to `false`. */
5391
+ bordered?: boolean;
5392
+ /** Pins the rows to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
5393
+ size?: SizeVariant;
5394
+ /** Classes for the block (its width, height and radius) or, with `rows`, for the stack. */
5395
+ className?: string;
5396
+ }
5397
+ /**
5398
+ * A placeholder that holds the place of content still loading, so nothing
5399
+ * jumps when it arrives.
5400
+ *
5401
+ * One block by default: give it the size of what it stands for through
5402
+ * `className` (`h-4 w-40` for a line of text, `size-9 rounded-full` for an
5403
+ * avatar). With `rows` it becomes a stack of rows one control tall (36px,
5404
+ * 28px compact), the height of a list or menu row, 4px apart; `bordered`
5405
+ * frames them like an outlined group (the row corners nest inside the
5406
+ * frame's). It stands in for a table too, though a table's rows sit at their
5407
+ * own pitch (a control plus a 1px hairline), so the stack is a close match,
5408
+ * not a line-for-line one. The fill is a light mix of the foreground, so it
5409
+ * reads on any surface level in light and dark, and every placeholder pulses
5410
+ * in step, in opacity only: a fade, so it stays under reduced motion too.
5411
+ * Placeholders are hidden from assistive tech: mark the region that is
5412
+ * loading with `aria-busy`.
5413
+ *
5414
+ * @example {@include ./examples.mdx}
5415
+ */
5416
+ declare const Skeleton: ForwardRefExoticComponent_tcubfn28<SkeletonProps & RefAttributes_miuf5628<HTMLDivElement>>;
5417
+ import { ComponentPropsWithoutRef as ComponentPropsWithoutRef8, ForwardRefExoticComponent as ForwardRefExoticComponent19, ReactNode as ReactNode51, RefAttributes as RefAttributes19 } from "react";
3953
5418
  declare function surfaceClasses(bgLevel: number, shadowLevel?: number): string;
3954
- import { ReactNode as ReactNode39 } from "react";
3955
- import { JSX as JSX_1kxb33 } from "react";
5419
+ import { ReactNode as ReactNode50 } from "react";
5420
+ import { JSX as JSX_1kxb39 } from "react";
3956
5421
  declare function useSurface(): number;
3957
- type Element_12xgc33 = JSX_1kxb33["Element"];
5422
+ type Element_12xgc39 = JSX_1kxb39["Element"];
3958
5423
  declare function SurfaceProvider({ value, children }: {
3959
5424
  value: number;
3960
- children: ReactNode39;
3961
- }): Element_12xgc33;
3962
- interface ElevatedProps extends ComponentPropsWithoutRef3<"div"> {
5425
+ children: ReactNode50;
5426
+ }): Element_12xgc39;
5427
+ interface ElevatedProps extends ComponentPropsWithoutRef8<"div"> {
3963
5428
  /**
3964
5429
  * Steps above the current substrate.
3965
5430
  *
@@ -3984,7 +5449,7 @@ interface ElevatedProps extends ComponentPropsWithoutRef3<"div"> {
3984
5449
  /** Merged after the surface classes; radius and padding go here. */
3985
5450
  className?: string;
3986
5451
  /** Content of the surface. Everything inside reads this surface's level as its substrate. */
3987
- children?: ReactNode40;
5452
+ children?: ReactNode51;
3988
5453
  }
3989
5454
  interface ElevatedStatics {
3990
5455
  /** `SurfaceProvider` — set the substrate for a subtree by hand. */
@@ -4016,5 +5481,5 @@ interface ElevatedStatics {
4016
5481
  *
4017
5482
  * @example {@include ./examples.mdx}
4018
5483
  */
4019
- declare const Elevated: ForwardRefExoticComponent15<ElevatedProps & RefAttributes15<HTMLDivElement>> & ElevatedStatics;
4020
- export { Accordion, AccordionContent, AccordionGroup, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogContent, AlertDialogProps, Badge, BadgeColor, BadgeProps, BadgeSize, Button2 as Button, ButtonProps, ButtonSize, Calendar, CalendarProps, Card, CardAction, CardButton, CardButtonProps, CardButtonVariant, CardContent, CardDescription, CardEyebrow, CardFeature, CardFooter, CardGroup, CardGroupProps, CardHeader, CardImage, CardLogo, CardMedia, CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, Code, ColorFormat, ColorPicker, ColorPickerPopover, ColorPickerPopoverProps, ColorPickerPortalContainer, ColorPickerProps, ColorSwatch, ColorSwatchProps, ColorTile, Combobox, ComboboxChips, ComboboxChipsProps, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemData, ComboboxItemObject, ComboboxItemProps, ComboboxList, ComboboxListProps, ComboboxProps, ComboboxValue, Command, CommandContent, CommandContentProps, CommandGroup, CommandItem, CommandItems, CommandList, CommandListRoot, CommandPalette, CommandPaletteProps, CommandProps, CommandShortcut, CommandTrigger, ContextMenu, ContextMenuContent, ContextMenuContentProps, ContextMenuItem, ContextMenuItemProps, ContextMenuProps, Copy, CopyAlign, CopyProps, CopyVariant, CraftProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogClose, DialogSlotProps as DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogProps, DialogState, DialogTitle, DialogTrigger, DialogSlotProps as DialogTriggerProps, Dropdown, DropdownContent, DropdownContentProps, DropdownContextValue, DropdownEmpty, DropdownLabel, DropdownMenu, DropdownMenuProps, DropdownProps, DropdownSearch, DropdownSearchProps, DropdownSeparator, DropdownTrigger, DropdownTriggerProps, DurationPicker, DurationPickerProps, Elevated, ElevatedProps, FileThumbnail, FluidHover, FluidHoverAxis, FluidHoverHighlight, FluidHoverHighlightProps, FluidHoverItem, FluidHoverItemProps, FluidHoverProps, IconProvider, Input2 as Input, InputFieldProps, InputGroup, InputGroupProps, InputMessage, InputMessageProps, InputMessageSlotContext, InputMessageStatus, InputProps, ItemRect, Label2 as Label, LabelProps, MenuItem2 as MenuItem, MenuItemRenderOptions, MonthPicker, MonthPickerProps, Morph2 as Morph, MorphPart, MorphProps, Motion, MotionProps, ParsedColor, Popover2 as Popover, PopoverClose, PopoverContent, PopoverContentProps, PopoverDescription, PopoverProps, PopoverTitle, PopoverTrigger, PopoverTriggerProps, PreviewCard, PreviewCardContent, PreviewCardContentProps, PreviewCardProps, PreviewCardTrigger, PreviewCardTriggerProps, QueuedMessage, Radio, RadioGroup, RadioGroupProps, RadioProps, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_KEYBOARD_SHORTCUT_RIGHT, SIDEBAR_MAX_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_WIDTH, SIDEBAR_WIDTH_MOBILE, ScrollArea, ScrollAreaProps, ScrollBar, Search2 as Search, SearchProps, Select, SelectContent, SelectContentProps, SelectGroup, SelectItem, SelectItemProps, SelectLabel, SelectProps, SelectSeparator, SelectTrigger, SelectTriggerProps, ShapeProvider, Sheet, SheetContent, SheetContentProps, SheetIndent, SheetProps, SheetSide, Sidebar, SidebarApp, SidebarAppProps, SidebarCollapsible, SidebarContent, SidebarContentProps, SidebarContextValue, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupActionProps, SidebarGroupActions, SidebarGroupContent, SidebarGroupLabel, SidebarGroupLabelProps, SidebarHeader, SidebarInput, SidebarInputProps, SidebarInset, SidebarInsetProps, SidebarMenu, SidebarMenuAction, SidebarMenuActionProps, SidebarMenuActions, SidebarMenuBadge, SidebarMenuBadgeProps, SidebarMenuButton, SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeleton, SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarRail, SidebarRailProps, SidebarSectionProps, SidebarSelection, SidebarSelectionValue, SidebarSeparator, SidebarSide, SidebarTrigger, SidebarTriggerProps, SidebarVariant, SizeClasses, SizeProvider, SizeVariant, Slider, SliderComfortable, SliderComfortableProps, SliderProps, SliderValue, SpringTier, SurfaceProvider, Switch, SwitchGroup, SwitchGroupProps, SwitchProps, TabItem, TabItemProps, TabPanel, TabPanelProps, Table, TableBody, TableCell, TableHead, TableHeader, TableProps, TableRow, TableRowProps, Tabs, TabsList, TabsListProps, TabsProps, TabsSubtle, TabsSubtleItem, TabsSubtleItemProps, TabsSubtlePanel, TabsSubtlePanelProps, TabsSubtleProps, Textarea, TextareaProps, ThinkingIndicator, ThinkingIndicatorProps, TimePicker, TimePickerProps, Toast, ToastOptions, ToastPosition, ToastProps, ToastTrigger, ToastTriggerProps, ToastType, Tooltip, TooltipPortalContainer, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipSide, TypeScaleRole, TypeScaleStep, UseFluidHoverOptions, UseFluidHoverReturn, ValuePosition, badgeColors, badgeVariants, buildParsed, buttonVariants, cn, fieldVariants as comboboxFieldVariants, exitFallbackMs, parseColor, sidebarMenuButtonVariants, sizeMap, spring, surfaceClasses, triggerVariants, typeScale, useDialogState, useDropdown, useDropdownMaybe, useFluidHover, useRegisterFluidHoverItem, useSidebar, useSize, useSizeContext, useSizeVariant, useSurface, useToast, useTypeScale };
5484
+ declare const Elevated: ForwardRefExoticComponent19<ElevatedProps & RefAttributes19<HTMLDivElement>> & ElevatedStatics;
5485
+ export { Accordion, AccordionContent, AccordionGroup, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelProps, AlertDialogContent, AlertDialogProps, Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarProps, Badge, BadgeColor, BadgeProps, BadgeSize, BadgeVariant, Button2 as Button, ButtonProps, ButtonSize, ButtonSizeCanonical, ButtonVariant, ButtonVariantsOptions, Calendar, CalendarProps, Card, CardAction, CardBorder, CardButton, CardButtonProps, CardButtonVariant, CardContent, CardDescription, CardDivider, CardEyebrow, CardFeature, CardFooter, CardGroup, CardGroupProps, CardHeader, CardImage, CardLogo, CardMedia, CardProps, CardTitle, Checkbox, CheckboxCheckedState, CheckboxGroup, CheckboxGroupProps, CheckboxProps, Code, ColorFormat, ColorPicker, ColorPickerPopover, ColorPickerPopoverProps, ColorPickerPortalContainer, ColorPickerProps, ColorSwatch, ColorSwatchProps, ColorTile, Combobox, ComboboxChips, ComboboxChipsProps, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxFooter, ComboboxFooterContext, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemData, ComboboxItemObject, ComboboxItemProps, ComboboxList, ComboboxListProps, ComboboxProps, ComboboxValue, Command, CommandContent, CommandContentProps, CommandGroup, CommandItem, CommandItems, CommandList, CommandListRoot, CommandPalette, CommandPaletteProps, CommandProps, CommandShortcut, CommandTrigger, ContextMenu, ContextMenuContent, ContextMenuContentProps, ContextMenuItem, ContextMenuItemProps, ContextMenuProps, Copy, CopyAlign, CopyProps, CopyVariant, CraftProps, DatePicker, DatePickerLabels, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogClose, DialogSlotProps as DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogProps, DialogState, DialogTitle, DialogTrigger, DialogSlotProps as DialogTriggerProps, DragVerdict, Dropdown, DropdownCheckboxItem, DropdownCheckboxItemProps, DropdownContent, DropdownContentProps, DropdownContextValue, DropdownEmpty, DropdownGroup, DropdownGroupProps, DropdownLabel, DropdownLabelProps, DropdownMenu, DropdownMenuProps, DropdownProps, DropdownRadioGroup, DropdownRadioGroupProps, DropdownRadioItem, DropdownRadioItemProps, DropdownSearch, DropdownSearchProps, DropdownSeparator, DropdownShortcut, DropdownShortcutProps, DropdownSub, DropdownSubContent, DropdownSubContentProps, DropdownSubProps, DropdownSubTrigger, DropdownSubTriggerProps, DropdownTrigger, DropdownTriggerProps, DurationPicker, DurationPickerProps, Elevated, ElevatedProps, Field2 as Field, FieldControl, FieldControlProps, FieldDescription, FieldDescriptionProps, FieldError, FieldErrorMatch, FieldErrorProps, FieldLabel, FieldLabelProps, FieldProps, FieldValidationMode, FileDropzone, FileDropzoneProps, FileRejection, FileRejectionReason, FileRow, FileRowProps, FileRowStatus, FileThumbnail, FluidHover, FluidHoverAxis, FluidHoverHighlight, FluidHoverHighlightProps, FluidHoverItem, FluidHoverItemProps, FluidHoverProps, IconProvider, Input2 as Input, InputAction, InputActionProps, InputAdornment, InputAdornmentProps, InputFieldProps, InputGroup, InputGroupProps, InputMessage, InputMessageProps, InputMessageSlotContext, InputMessageStatus, InputProps, ItemRect, Label2 as Label, LabelProps, MenuItem2 as MenuItem, MenuItemProps, MenuItemRenderOptions, MonthPicker, MonthPickerProps, Morph2 as Morph, MorphPart, MorphProps, Motion, MotionProps, NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuIndicator, NavigationMenuIndicatorProps, NavigationMenuItem, NavigationMenuItemProps, NavigationMenuLink, NavigationMenuLinkProps, NavigationMenuList, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTrigger, NavigationMenuTriggerProps, NumberInput, NumberInputProps, Pagination, PaginationProps, PaginationVariant, ParsedColor, Popover2 as Popover, PopoverClose, PopoverContent, PopoverContentProps, PopoverDescription, PopoverOpenChangeDetails, PopoverProps, PopoverTitle, PopoverTrigger, PopoverTriggerProps, PreviewCard, PreviewCardContent, PreviewCardContentProps, PreviewCardProps, PreviewCardTrigger, PreviewCardTriggerProps, Progress, ProgressProps, QueuedMessage, Radio, RadioGroup2 as RadioGroup, RadioGroupProps, RadioProps, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_KEYBOARD_SHORTCUT_RIGHT, SIDEBAR_MAX_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_WIDTH, SIDEBAR_WIDTH_MOBILE, ScrollArea, ScrollAreaProps, ScrollBar, Search2 as Search, SearchProps, Select, SelectContent, SelectContentProps, SelectGroup, SelectItem, SelectItemProps, SelectLabel, SelectProps, SelectSeparator, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Separator2 as Separator, SeparatorProps, ShapeProvider, Sheet, SheetContent, SheetContentProps, SheetIndent, SheetProps, SheetSide, Sidebar, SidebarApp, SidebarAppProps, SidebarCollapsible, SidebarContent, SidebarContentProps, SidebarContextValue, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupActionProps, SidebarGroupActions, SidebarGroupContent, SidebarGroupLabel, SidebarGroupLabelProps, SidebarHeader, SidebarInput, SidebarInputProps, SidebarInset, SidebarInsetProps, SidebarMenu, SidebarMenuAction, SidebarMenuActionProps, SidebarMenuActions, SidebarMenuBadge, SidebarMenuBadgeProps, SidebarMenuButton, SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeleton, SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarRail, SidebarRailProps, SidebarSectionProps, SidebarSelection, SidebarSelectionValue, SidebarSeparator, SidebarSide, SidebarTrigger, SidebarTriggerProps, SidebarVariant, SizeClasses, SizeProvider, SizeVariant, Skeleton, SkeletonProps, Slider, SliderComfortable, SliderComfortableProps, SliderProps, SliderValue, SortDirection, Spinner, SpinnerProps, SpringTier, SurfaceProvider, Switch, SwitchGroup, SwitchGroupProps, SwitchProps, TabItem, TabItemProps, TabPanel, TabPanelProps, Table, TableBody, TableCaption, TableCell, TableCellProps, TableEmpty, TableEmptyProps, TableFooter, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Tabs, TabsList, TabsListProps, TabsProps, TabsSubtle, TabsSubtleItem, TabsSubtleItemProps, TabsSubtlePanel, TabsSubtlePanelProps, TabsSubtleProps, Textarea, TextareaProps, ThinkingIndicator, ThinkingIndicatorProps, TimePicker, TimePickerProps, Toast, ToastActionOptions, ToastHandle, ToastInput, ToastOptions, ToastPosition, ToastPromiseOptions, ToastProps, ToastSource, ToastTrigger, ToastTriggerProps, ToastType, Tooltip, TooltipAlign, TooltipContent, TooltipContentProps, TooltipPortalContainer, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipRoot, TooltipRootProps, TooltipSide, TooltipTrigger, TooltipTriggerProps, TypeScaleRole, TypeScaleStep, UseFluidHoverOptions, UseFluidHoverReturn, ValuePosition, acceptsFile, badgeColors, badgeVariants, buildParsed, buttonVariants, cn, fieldVariants as comboboxFieldVariants, dragVerdict, exitFallbackMs, formatFileSize, parseColor, sidebarMenuButtonVariants, sizeMap, sortFiles, spring, surfaceClasses, toast, triggerVariants, typeScale, useDialogState, useDropdown, useDropdownMaybe, useFluidHover, useRegisterFluidHoverItem, useSidebar, useSize, useSizeContext, useSizeVariant, useSurface, useToast, useTypeScale };