@gild-ui/react 0.0.0 → 0.1.0-alpha.1

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 (406) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +399 -1
  3. package/dist/Accordion.cjs +338 -0
  4. package/dist/Accordion.d.cts +110 -0
  5. package/dist/Accordion.d.mts +110 -0
  6. package/dist/Accordion.mjs +334 -0
  7. package/dist/Accordion.types-DxvwAfZc.d.mts +1299 -0
  8. package/dist/Alert.cjs +187 -0
  9. package/dist/Alert.d.cts +51 -0
  10. package/dist/Alert.d.mts +51 -0
  11. package/dist/Alert.mjs +186 -0
  12. package/dist/AppBar.cjs +76 -0
  13. package/dist/AppBar.d.cts +22 -0
  14. package/dist/AppBar.d.mts +22 -0
  15. package/dist/AppBar.mjs +76 -0
  16. package/dist/Autocomplete.cjs +685 -0
  17. package/dist/Autocomplete.d.cts +97 -0
  18. package/dist/Autocomplete.d.mts +97 -0
  19. package/dist/Autocomplete.mjs +685 -0
  20. package/dist/Avatar.cjs +113 -0
  21. package/dist/Avatar.d.cts +27 -0
  22. package/dist/Avatar.d.mts +27 -0
  23. package/dist/Avatar.mjs +113 -0
  24. package/dist/Backdrop.cjs +30 -0
  25. package/dist/Backdrop.d.cts +11 -0
  26. package/dist/Backdrop.d.mts +11 -0
  27. package/dist/Backdrop.mjs +29 -0
  28. package/dist/Badge.cjs +136 -0
  29. package/dist/Badge.d.cts +47 -0
  30. package/dist/Badge.d.mts +47 -0
  31. package/dist/Badge.mjs +136 -0
  32. package/dist/Breadcrumbs.cjs +150 -0
  33. package/dist/Breadcrumbs.d.cts +33 -0
  34. package/dist/Breadcrumbs.d.mts +33 -0
  35. package/dist/Breadcrumbs.mjs +149 -0
  36. package/dist/Button.cjs +194 -0
  37. package/dist/Button.d.cts +3 -0
  38. package/dist/Button.d.mts +3 -0
  39. package/dist/Button.mjs +194 -0
  40. package/dist/ButtonGroup.cjs +116 -0
  41. package/dist/ButtonGroup.d.cts +43 -0
  42. package/dist/ButtonGroup.d.mts +3 -0
  43. package/dist/ButtonGroup.mjs +115 -0
  44. package/dist/ButtonGroupContext-D5Fg5Slq.mjs +5 -0
  45. package/dist/ButtonGroupContext-W4VkHwoR.cjs +9 -0
  46. package/dist/CacheProvider.cjs +9 -0
  47. package/dist/CacheProvider.d.cts +4 -0
  48. package/dist/CacheProvider.d.mts +4 -0
  49. package/dist/CacheProvider.mjs +9 -0
  50. package/dist/Card.cjs +105 -0
  51. package/dist/Card.d.cts +19 -0
  52. package/dist/Card.d.mts +19 -0
  53. package/dist/Card.mjs +105 -0
  54. package/dist/Checkbox.cjs +210 -0
  55. package/dist/Checkbox.d.cts +48 -0
  56. package/dist/Checkbox.d.mts +48 -0
  57. package/dist/Checkbox.mjs +210 -0
  58. package/dist/Chip.cjs +210 -0
  59. package/dist/Chip.d.cts +51 -0
  60. package/dist/Chip.d.mts +51 -0
  61. package/dist/Chip.mjs +210 -0
  62. package/dist/CircularProgress.cjs +151 -0
  63. package/dist/CircularProgress.d.cts +37 -0
  64. package/dist/CircularProgress.d.mts +37 -0
  65. package/dist/CircularProgress.mjs +151 -0
  66. package/dist/Collapse.cjs +133 -0
  67. package/dist/Collapse.d.cts +38 -0
  68. package/dist/Collapse.d.mts +3 -0
  69. package/dist/Collapse.mjs +133 -0
  70. package/dist/Drawer.cjs +168 -0
  71. package/dist/Drawer.d.cts +60 -0
  72. package/dist/Drawer.d.mts +60 -0
  73. package/dist/Drawer.mjs +166 -0
  74. package/dist/Fab.cjs +123 -0
  75. package/dist/Fab.d.cts +33 -0
  76. package/dist/Fab.d.mts +3 -0
  77. package/dist/Fab.mjs +122 -0
  78. package/dist/FabMenu.cjs +312 -0
  79. package/dist/FabMenu.d.cts +70 -0
  80. package/dist/FabMenu.d.mts +70 -0
  81. package/dist/FabMenu.mjs +311 -0
  82. package/dist/Fade.cjs +17 -0
  83. package/dist/Fade.d.cts +8 -0
  84. package/dist/Fade.d.mts +8 -0
  85. package/dist/Fade.mjs +16 -0
  86. package/dist/Flex.cjs +18 -0
  87. package/dist/Flex.d.cts +2 -0
  88. package/dist/Flex.d.mts +2 -0
  89. package/dist/Flex.mjs +17 -0
  90. package/dist/FocusTrap.cjs +87 -0
  91. package/dist/FocusTrap.d.cts +28 -0
  92. package/dist/FocusTrap.d.mts +28 -0
  93. package/dist/FocusTrap.mjs +86 -0
  94. package/dist/Form.cjs +47 -0
  95. package/dist/Form.d.cts +41 -0
  96. package/dist/Form.d.mts +41 -0
  97. package/dist/Form.mjs +46 -0
  98. package/dist/FormContext-DfpxiqRO.cjs +9 -0
  99. package/dist/FormContext-fZHQHKUU.mjs +6 -0
  100. package/dist/FormControl.cjs +98 -0
  101. package/dist/FormControl.d.cts +81 -0
  102. package/dist/FormControl.d.mts +81 -0
  103. package/dist/FormControl.mjs +96 -0
  104. package/dist/FormControlContext-Btvm04Sj.cjs +9 -0
  105. package/dist/FormControlContext-CaQLS_sK.mjs +6 -0
  106. package/dist/FormHelperText.cjs +40 -0
  107. package/dist/FormHelperText.d.cts +15 -0
  108. package/dist/FormHelperText.d.mts +15 -0
  109. package/dist/FormHelperText.mjs +39 -0
  110. package/dist/FormLabel.cjs +45 -0
  111. package/dist/FormLabel.d.cts +17 -0
  112. package/dist/FormLabel.d.mts +17 -0
  113. package/dist/FormLabel.mjs +44 -0
  114. package/dist/Global.cjs +8 -0
  115. package/dist/Global.d.cts +2 -0
  116. package/dist/Global.d.mts +2 -0
  117. package/dist/Global.mjs +1 -0
  118. package/dist/Grid.cjs +20 -0
  119. package/dist/Grid.d.cts +25 -0
  120. package/dist/Grid.d.mts +25 -0
  121. package/dist/Grid.mjs +20 -0
  122. package/dist/Grow.cjs +21 -0
  123. package/dist/Grow.d.cts +8 -0
  124. package/dist/Grow.d.mts +8 -0
  125. package/dist/Grow.mjs +20 -0
  126. package/dist/Icon-DBgqmUb3.mjs +916 -0
  127. package/dist/Icon-DPIqGixm.cjs +927 -0
  128. package/dist/Icon.cjs +4 -0
  129. package/dist/Icon.d.cts +3 -0
  130. package/dist/Icon.d.mts +3 -0
  131. package/dist/Icon.mjs +1 -0
  132. package/dist/Image.cjs +89 -0
  133. package/dist/Image.d.cts +19 -0
  134. package/dist/Image.d.mts +19 -0
  135. package/dist/Image.mjs +89 -0
  136. package/dist/LayoutProvider-DFwC1-h0.d.cts +19 -0
  137. package/dist/LayoutProvider-DFwC1-h0.d.mts +19 -0
  138. package/dist/LayoutProvider-Eb5Vp2BZ.mjs +36 -0
  139. package/dist/LayoutProvider-nB0hiaCR.cjs +41 -0
  140. package/dist/LayoutProvider.cjs +3 -0
  141. package/dist/LayoutProvider.d.cts +2 -0
  142. package/dist/LayoutProvider.d.mts +2 -0
  143. package/dist/LayoutProvider.mjs +1 -0
  144. package/dist/LinearProgress.cjs +232 -0
  145. package/dist/LinearProgress.d.cts +39 -0
  146. package/dist/LinearProgress.d.mts +39 -0
  147. package/dist/LinearProgress.mjs +232 -0
  148. package/dist/Link.cjs +59 -0
  149. package/dist/Link.d.cts +9 -0
  150. package/dist/Link.d.mts +9 -0
  151. package/dist/Link.mjs +59 -0
  152. package/dist/Menu-Ca7aUnLg.mjs +229 -0
  153. package/dist/Menu-DlPDdIAu.cjs +245 -0
  154. package/dist/Menu.cjs +174 -0
  155. package/dist/Menu.d.cts +209 -0
  156. package/dist/Menu.d.mts +209 -0
  157. package/dist/Menu.mjs +168 -0
  158. package/dist/MenuItem-2UwOFsM6.cjs +859 -0
  159. package/dist/MenuItem-w7D1-AYW.mjs +807 -0
  160. package/dist/MenuItem.cjs +4 -0
  161. package/dist/MenuItem.d.cts +3 -0
  162. package/dist/MenuItem.d.mts +3 -0
  163. package/dist/MenuItem.mjs +2 -0
  164. package/dist/Modal-B6_1ugIW.cjs +328 -0
  165. package/dist/Modal-Ouz9KdOG.mjs +300 -0
  166. package/dist/Modal.cjs +8 -0
  167. package/dist/Modal.d.cts +57 -0
  168. package/dist/Modal.d.mts +3 -0
  169. package/dist/Modal.mjs +2 -0
  170. package/dist/NativeSelect.cjs +197 -0
  171. package/dist/NativeSelect.d.cts +65 -0
  172. package/dist/NativeSelect.d.mts +65 -0
  173. package/dist/NativeSelect.mjs +197 -0
  174. package/dist/NavTree.cjs +225 -0
  175. package/dist/NavTree.d.cts +65 -0
  176. package/dist/NavTree.d.mts +65 -0
  177. package/dist/NavTree.mjs +223 -0
  178. package/dist/NumberInput.cjs +513 -0
  179. package/dist/NumberInput.d.cts +96 -0
  180. package/dist/NumberInput.d.mts +96 -0
  181. package/dist/NumberInput.mjs +512 -0
  182. package/dist/Pagination.cjs +258 -0
  183. package/dist/Pagination.d.cts +90 -0
  184. package/dist/Pagination.d.mts +3 -0
  185. package/dist/Pagination.mjs +256 -0
  186. package/dist/Paper.cjs +54 -0
  187. package/dist/Paper.d.cts +2 -0
  188. package/dist/Paper.d.mts +3 -0
  189. package/dist/Paper.mjs +54 -0
  190. package/dist/Popover-ZsN1txGi.mjs +139 -0
  191. package/dist/Popover-d5fip8Fi.cjs +143 -0
  192. package/dist/Popover.cjs +4 -0
  193. package/dist/Popover.d.cts +67 -0
  194. package/dist/Popover.d.mts +67 -0
  195. package/dist/Popover.mjs +2 -0
  196. package/dist/Portal.cjs +22 -0
  197. package/dist/Portal.d.cts +15 -0
  198. package/dist/Portal.d.mts +2 -0
  199. package/dist/Portal.mjs +21 -0
  200. package/dist/Pressable.cjs +134 -0
  201. package/dist/Pressable.d.cts +52 -0
  202. package/dist/Pressable.d.mts +3 -0
  203. package/dist/Pressable.mjs +134 -0
  204. package/dist/Quote.cjs +11 -0
  205. package/dist/Quote.d.cts +15 -0
  206. package/dist/Quote.d.mts +15 -0
  207. package/dist/Quote.mjs +10 -0
  208. package/dist/Radio.cjs +161 -0
  209. package/dist/Radio.d.cts +43 -0
  210. package/dist/Radio.d.mts +43 -0
  211. package/dist/Radio.mjs +161 -0
  212. package/dist/RangeInput.cjs +705 -0
  213. package/dist/RangeInput.d.cts +77 -0
  214. package/dist/RangeInput.d.mts +77 -0
  215. package/dist/RangeInput.mjs +705 -0
  216. package/dist/Rating.cjs +390 -0
  217. package/dist/Rating.d.cts +59 -0
  218. package/dist/Rating.d.mts +59 -0
  219. package/dist/Rating.mjs +390 -0
  220. package/dist/ScrollArea.cjs +282 -0
  221. package/dist/ScrollArea.d.cts +40 -0
  222. package/dist/ScrollArea.d.mts +40 -0
  223. package/dist/ScrollArea.mjs +281 -0
  224. package/dist/Select.cjs +528 -0
  225. package/dist/Select.d.cts +69 -0
  226. package/dist/Select.d.mts +69 -0
  227. package/dist/Select.mjs +528 -0
  228. package/dist/Sidebar.cjs +332 -0
  229. package/dist/Sidebar.d.cts +156 -0
  230. package/dist/Sidebar.d.mts +156 -0
  231. package/dist/Sidebar.mjs +330 -0
  232. package/dist/Skeleton.cjs +90 -0
  233. package/dist/Skeleton.d.cts +24 -0
  234. package/dist/Skeleton.d.mts +24 -0
  235. package/dist/Skeleton.mjs +90 -0
  236. package/dist/Slide.cjs +57 -0
  237. package/dist/Slide.d.cts +14 -0
  238. package/dist/Slide.d.mts +14 -0
  239. package/dist/Slide.mjs +56 -0
  240. package/dist/Snackbar.cjs +216 -0
  241. package/dist/Snackbar.d.cts +81 -0
  242. package/dist/Snackbar.d.mts +81 -0
  243. package/dist/Snackbar.mjs +215 -0
  244. package/dist/StyleSheet.cjs +8 -0
  245. package/dist/StyleSheet.d.cts +2 -0
  246. package/dist/StyleSheet.d.mts +2 -0
  247. package/dist/StyleSheet.mjs +1 -0
  248. package/dist/Switch.cjs +355 -0
  249. package/dist/Switch.d.cts +45 -0
  250. package/dist/Switch.d.mts +45 -0
  251. package/dist/Switch.mjs +355 -0
  252. package/dist/Table.cjs +722 -0
  253. package/dist/Table.d.cts +404 -0
  254. package/dist/Table.d.mts +404 -0
  255. package/dist/Table.mjs +707 -0
  256. package/dist/Tabs.cjs +1227 -0
  257. package/dist/Tabs.d.cts +245 -0
  258. package/dist/Tabs.d.mts +245 -0
  259. package/dist/Tabs.mjs +1222 -0
  260. package/dist/TextInput.cjs +236 -0
  261. package/dist/TextInput.d.cts +3 -0
  262. package/dist/TextInput.d.mts +3 -0
  263. package/dist/TextInput.mjs +236 -0
  264. package/dist/ThemeProvider-DS6pBgE-.cjs +68 -0
  265. package/dist/ThemeProvider-DuhfCo2F.mjs +63 -0
  266. package/dist/ThemeProvider.cjs +4 -0
  267. package/dist/ThemeProvider.d.cts +2 -0
  268. package/dist/ThemeProvider.d.mts +2 -0
  269. package/dist/ThemeProvider.mjs +2 -0
  270. package/dist/ToggleButton.cjs +115 -0
  271. package/dist/ToggleButton.d.cts +51 -0
  272. package/dist/ToggleButton.d.mts +51 -0
  273. package/dist/ToggleButton.mjs +113 -0
  274. package/dist/Tooltip-Bt5lr52c.mjs +485 -0
  275. package/dist/Tooltip-CUpZpoC9.cjs +495 -0
  276. package/dist/Tooltip.cjs +5 -0
  277. package/dist/Tooltip.d.cts +122 -0
  278. package/dist/Tooltip.d.mts +122 -0
  279. package/dist/Tooltip.mjs +2 -0
  280. package/dist/TransferList.cjs +394 -0
  281. package/dist/TransferList.d.cts +69 -0
  282. package/dist/TransferList.d.mts +69 -0
  283. package/dist/TransferList.mjs +394 -0
  284. package/dist/Typography.cjs +69 -0
  285. package/dist/Typography.d.cts +3 -0
  286. package/dist/Typography.d.mts +3 -0
  287. package/dist/Typography.mjs +69 -0
  288. package/dist/View-DFnZ41Xe.cjs +77 -0
  289. package/dist/View-zuvgW6DP.mjs +66 -0
  290. package/dist/View.cjs +3 -0
  291. package/dist/View.d.cts +2 -0
  292. package/dist/View.d.mts +2 -0
  293. package/dist/View.mjs +1 -0
  294. package/dist/Zoom.cjs +16 -0
  295. package/dist/Zoom.d.cts +7 -0
  296. package/dist/Zoom.d.mts +7 -0
  297. package/dist/Zoom.mjs +15 -0
  298. package/dist/catalog.cjs +22 -0
  299. package/dist/catalog.d.cts +28 -0
  300. package/dist/catalog.d.mts +28 -0
  301. package/dist/catalog.mjs +21 -0
  302. package/dist/computePopoverPosition-C6qSQ1QD.cjs +126 -0
  303. package/dist/computePopoverPosition-DHV1wQgJ.mjs +121 -0
  304. package/dist/computePopoverPosition-JgOwCM7k.d.cts +12 -0
  305. package/dist/computePopoverPosition-JgOwCM7k.d.mts +12 -0
  306. package/dist/css.cjs +20 -0
  307. package/dist/css.d.cts +2 -0
  308. package/dist/css.d.mts +2 -0
  309. package/dist/css.mjs +1 -0
  310. package/dist/derivedTheme-B0cxTzAq.cjs +29 -0
  311. package/dist/derivedTheme-BB9VVZ08.mjs +24 -0
  312. package/dist/engine.cjs +146 -0
  313. package/dist/engine.d.cts +59 -0
  314. package/dist/engine.d.mts +59 -0
  315. package/dist/engine.mjs +101 -0
  316. package/dist/getElementRef-4m6-x2FS.cjs +18 -0
  317. package/dist/getElementRef-SBx9_7pp.mjs +13 -0
  318. package/dist/index-B3jHcw5h.d.cts +175 -0
  319. package/dist/index-Bf-ZHQLG.d.mts +33 -0
  320. package/dist/index-CAMwJg71.d.mts +92 -0
  321. package/dist/index-CLQt_mOa.d.mts +3 -0
  322. package/dist/index-Cqse4F32.d.mts +38 -0
  323. package/dist/index-CsYK-ukA.d.mts +3 -0
  324. package/dist/index-D9Gg2NWm.d.mts +90 -0
  325. package/dist/index-DPQxIeZF.d.cts +1299 -0
  326. package/dist/index-Dc7XiT_v.d.cts +92 -0
  327. package/dist/index-Djum1XiO.d.mts +52 -0
  328. package/dist/index-DtfH-dhY.d.mts +43 -0
  329. package/dist/index-IB1nBqEO.d.mts +175 -0
  330. package/dist/index-UloRwym_.d.mts +16 -0
  331. package/dist/index-phuw9VpI.d.mts +57 -0
  332. package/dist/index-yCzwpbBP.d.mts +1 -0
  333. package/dist/index.cjs +93 -0
  334. package/dist/index.d.cts +3 -0
  335. package/dist/index.d.mts +3 -0
  336. package/dist/index.mjs +17 -0
  337. package/dist/inputVariantStyles-B-4lHxUZ.mjs +41 -0
  338. package/dist/inputVariantStyles-CqCQatKb.cjs +58 -0
  339. package/dist/isRtl-DN-EdUlg.mjs +6 -0
  340. package/dist/isRtl-Dl6QQWib.cjs +11 -0
  341. package/dist/keyframes.cjs +8 -0
  342. package/dist/keyframes.d.cts +2 -0
  343. package/dist/keyframes.d.mts +2 -0
  344. package/dist/keyframes.mjs +1 -0
  345. package/dist/next.cjs +8 -0
  346. package/dist/next.d.cts +2 -0
  347. package/dist/next.d.mts +2 -0
  348. package/dist/next.mjs +1 -0
  349. package/dist/overrides-DeXScOFK.cjs +21 -0
  350. package/dist/overrides-Ds6QZL5Q.mjs +16 -0
  351. package/dist/server.cjs +19 -0
  352. package/dist/server.d.cts +10 -0
  353. package/dist/server.d.mts +10 -0
  354. package/dist/server.mjs +18 -0
  355. package/dist/styleEngine-CLid4cmR.mjs +1 -0
  356. package/dist/styled-Dr3_OY1-.cjs +48 -0
  357. package/dist/styled-tLHNvicL.mjs +43 -0
  358. package/dist/styled.cjs +3 -0
  359. package/dist/styled.d.cts +2 -0
  360. package/dist/styled.d.mts +2 -0
  361. package/dist/styled.mjs +1 -0
  362. package/dist/testing.cjs +60 -0
  363. package/dist/testing.d.cts +6 -0
  364. package/dist/testing.d.mts +6 -0
  365. package/dist/testing.mjs +59 -0
  366. package/dist/themes-BtfQPcbo.mjs +8 -0
  367. package/dist/themes-k-PEE5O9.cjs +12 -0
  368. package/dist/useAnchoredPlacement-CSotv28V.cjs +116 -0
  369. package/dist/useAnchoredPlacement-VwHtXnAx.mjs +111 -0
  370. package/dist/useDefaultProps-BTQGhvfY.mjs +13 -0
  371. package/dist/useDefaultProps-DratGGIL.cjs +18 -0
  372. package/dist/useDefaultProps.cjs +3 -0
  373. package/dist/useDefaultProps.d.cts +2 -0
  374. package/dist/useDefaultProps.d.mts +2 -0
  375. package/dist/useDefaultProps.mjs +1 -0
  376. package/dist/useLiveValue-CN2SUG2B.cjs +20 -0
  377. package/dist/useLiveValue-CqiwCr56.mjs +15 -0
  378. package/dist/useMediaQuery-acJak9M3.mjs +2 -0
  379. package/dist/useMediaQuery.cjs +9 -0
  380. package/dist/useMediaQuery.d.cts +2 -0
  381. package/dist/useMediaQuery.d.mts +2 -0
  382. package/dist/useMediaQuery.mjs +2 -0
  383. package/dist/useStyle.cjs +14 -0
  384. package/dist/useStyle.d.cts +2 -0
  385. package/dist/useStyle.d.mts +2 -0
  386. package/dist/useStyle.mjs +1 -0
  387. package/dist/useTheme.cjs +8 -0
  388. package/dist/useTheme.d.cts +2 -0
  389. package/dist/useTheme.d.mts +2 -0
  390. package/dist/useTheme.mjs +1 -0
  391. package/dist/useTransition-BKBtk0Mb.mjs +78 -0
  392. package/dist/useTransition-BzwifRXe.d.mts +40 -0
  393. package/dist/useTransition-gHFCJwqF.cjs +83 -0
  394. package/dist/useTransition-lt8_WKk-.d.cts +40 -0
  395. package/dist/useTransitionChild-C18w474Q.mjs +52 -0
  396. package/dist/useTransitionChild-DD3f44AQ.cjs +57 -0
  397. package/dist/utils-ChXrUitU.mjs +1 -0
  398. package/dist/withStyle.cjs +8 -0
  399. package/dist/withStyle.d.cts +2 -0
  400. package/dist/withStyle.d.mts +2 -0
  401. package/dist/withStyle.mjs +1 -0
  402. package/dist/withTheme.cjs +8 -0
  403. package/dist/withTheme.d.cts +2 -0
  404. package/dist/withTheme.d.mts +2 -0
  405. package/dist/withTheme.mjs +1 -0
  406. package/package.json +911 -3
@@ -0,0 +1,1299 @@
1
+ import "./LayoutProvider-DFwC1-h0.mjs";
2
+ import { ButtonHTMLAttributes, CSSProperties, ChangeEventHandler, ComponentClass, ComponentProps, ComponentType, ElementType, FunctionComponent, HTMLAttributes, InputHTMLAttributes, JSX, ReactElement, ReactNode, Ref, TextareaHTMLAttributes } from "react";
3
+ import { CSSObject as CSSObject$1, Global, LiveValue, PropsOf, SheetStyleProp, StyleSheet, StyledStatics, alpha, asIs, configure as configureEngine, css, defineTheme, fallback, keyframes, negate, setNonceSource, useMediaQuery, useStyle, useStyleValue, useTheme, val, variable, withStyle, withTheme } from "@umber-style/react";
4
+ import * as GildCore from "@gild-ui/core/theme";
5
+ import { ButtonVariants, InputVariantKey, OpenScale, Register, RegisteredTheme, Theme as Theme$1, ThemeBackground, ThemeColor, ThemeDefaults, ThemeFonts, ThemeRadii, ThemeSize, ThemeSpaceKey, ThemeText, ThemeTransitionEasing, ThemeTypography, ThemeZOrder, TypographyVariant, VariantOf } from "@gild-ui/core/theme";
6
+ import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@umber-style/styled";
7
+ import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps as TypographyProps$1 } from "@soroush.tech/styled-system";
8
+ /**
9
+ * What the `style` prop of a component takes: the engine's `SheetStyleProp`, so an entry of
10
+ * `StyleSheet.create` (of an object, or a handle `sheet.card` of a sheet of the theme) or a list of
11
+ * them, with `false`, `null` and `undefined` for a condition that is off. A plain style object is not
12
+ * one: it is a type error.
13
+ */
14
+ type StyleOverride = SheetStyleProp;
15
+ /**
16
+ * What one slot of a component takes in `slotProps`: a `style` (as above), a `className`, and `data-*`
17
+ * and `aria-*` attributes. Nothing a component controls (its handlers, `ref`, `id`, `role`) is here.
18
+ */
19
+ type SlotOverride = {
20
+ style?: StyleOverride;
21
+ className?: string;
22
+ } & { [K in `data-${string}` | `aria-${string}`]?: string | number | boolean | undefined; };
23
+ /** The `slotProps` of a component: one `SlotOverride` for each slot it declares for the theme (`<Name>Slot`). */
24
+ type SlotProps<Slot extends string> = { [S in Slot]?: SlotOverride; };
25
+ /**
26
+ * A component made by `styled` with its `style` narrowed to `StyleOverride`, for one the library
27
+ * exports: `styled` itself takes any style on the element it makes.
28
+ */
29
+ type StrictStyled<C extends ElementType & StyledStatics> = FunctionComponent<Omit<ComponentProps<C>, 'style' | 'slotProps'> & {
30
+ style?: StyleOverride;
31
+ slotProps?: SlotProps<'root'>;
32
+ }> & StyledStatics;
33
+ /** The resolved props AccordionActions's styled elements receive - what `ownerState` exposes. */
34
+ type AccordionActionsOwnerState = Record<string, unknown>;
35
+ /** The slots of AccordionActions a theme can style with `styleOverrides`. */
36
+ type AccordionActionsSlot = 'root';
37
+ /** What `theme.components.AccordionActions` takes. */
38
+ type AccordionActionsThemeConfig = ComponentConfig<AccordionActionsOwnerState, AccordionActionsSlot>;
39
+ /** The resolved props AccordionDetails's styled elements receive - what `ownerState` exposes. */
40
+ type AccordionDetailsOwnerState = Record<string, unknown>;
41
+ /** The slots of AccordionDetails a theme can style with `styleOverrides`. */
42
+ type AccordionDetailsSlot = 'root';
43
+ /** What `theme.components.AccordionDetails` takes. */
44
+ type AccordionDetailsThemeConfig = ComponentConfig<AccordionDetailsOwnerState, AccordionDetailsSlot>;
45
+ /** The defaults a theme may set for every `AccordionGroup`. */
46
+ interface AccordionGroupOwnerState {
47
+ isExclusive?: boolean;
48
+ variant?: 'separated' | 'attached';
49
+ }
50
+ /** The slots of AccordionGroup a theme can style with `styleOverrides`. */
51
+ type AccordionGroupSlot = 'root';
52
+ /** What `theme.components.AccordionGroup` takes. */
53
+ type AccordionGroupThemeConfig = ComponentConfig<AccordionGroupOwnerState, AccordionGroupSlot>;
54
+ /** The defaults a theme may set for every `AccordionSummary`. */
55
+ interface AccordionSummaryOwnerState {
56
+ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
57
+ }
58
+ /** The slots of AccordionSummary a theme can style with `styleOverrides`. */
59
+ type AccordionSummarySlot = 'root' | 'button' | 'content' | 'icon';
60
+ /** What `theme.components.AccordionSummary` takes. */
61
+ type AccordionSummaryThemeConfig = ComponentConfig<AccordionSummaryOwnerState, AccordionSummarySlot>;
62
+ /** The defaults a theme may set for every `Alert` - its `closeLabel` gives it a language. */
63
+ interface AlertOwnerState {
64
+ severity?: 'success' | 'info' | 'warning' | 'error';
65
+ variant?: 'standard' | 'contained' | 'outlined';
66
+ closeLabel?: string;
67
+ role?: 'alert' | 'status';
68
+ borderRadius?: keyof ThemeRadii;
69
+ }
70
+ /** The slots of Alert a theme can style with `styleOverrides`. */
71
+ type AlertSlot = 'root' | 'icon' | 'message' | 'action' | 'closeButton';
72
+ /** What `theme.components.Alert` takes. */
73
+ type AlertThemeConfig = ComponentConfig<AlertOwnerState, AlertSlot>;
74
+ /** The resolved props AlertTitle's styled elements receive - what `ownerState` exposes. */
75
+ type AlertTitleOwnerState = Record<string, unknown>;
76
+ /** The slots of AlertTitle a theme can style with `styleOverrides`. */
77
+ type AlertTitleSlot = 'root';
78
+ /** What `theme.components.AlertTitle` takes. */
79
+ type AlertTitleThemeConfig = ComponentConfig<AlertTitleOwnerState, AlertTitleSlot>;
80
+ /** The resolved props AppBar's styled elements receive - what `ownerState` exposes. */
81
+ type AppBarOwnerState = Record<string, unknown>;
82
+ /** The slots of AppBar a theme can style with `styleOverrides`. */
83
+ type AppBarSlot = 'root';
84
+ /** What `theme.components.AppBar` takes. */
85
+ type AppBarThemeConfig = ComponentConfig<AppBarOwnerState, AppBarSlot>;
86
+ /** The defaults a theme may set for every `Autocomplete` - its labels give it a language. */
87
+ interface AutocompleteOwnerState {
88
+ borderRadius?: keyof ThemeRadii;
89
+ bg?: keyof ThemeBackground;
90
+ textColor?: keyof ThemeText;
91
+ variant?: InputVariantKey;
92
+ size?: ThemeSize;
93
+ color?: ThemeColor;
94
+ shouldAllowFreeText?: boolean;
95
+ layer?: keyof ThemeZOrder;
96
+ clearLabel?: string;
97
+ openLabel?: string;
98
+ closeLabel?: string;
99
+ loadingText?: string;
100
+ noOptionsText?: string;
101
+ }
102
+ /** The slots of Autocomplete a theme can style with `styleOverrides`. */
103
+ type AutocompleteSlot = 'root' | 'tags' | 'input' | 'clearIndicator' | 'popupIndicator' | 'popup' | 'listbox' | 'group' | 'groupLabel' | 'groupItems' | 'option' | 'status';
104
+ /** What `theme.components.Autocomplete` takes. */
105
+ type AutocompleteThemeConfig = ComponentConfig<AutocompleteOwnerState, AutocompleteSlot>;
106
+ /** The resolved props Avatar's styled elements receive - what `ownerState` exposes. */
107
+ type AvatarOwnerState = Record<string, unknown>;
108
+ /** The slots of Avatar a theme can style with `styleOverrides`. */
109
+ type AvatarSlot = 'root' | 'img';
110
+ /** What `theme.components.Avatar` takes. */
111
+ type AvatarThemeConfig = ComponentConfig<AvatarOwnerState, AvatarSlot>;
112
+ /** The resolved props Backdrop's styled elements receive - what `ownerState` exposes. */
113
+ type BackdropOwnerState = Record<string, unknown>;
114
+ /** The slots of Backdrop a theme can style with `styleOverrides`. */
115
+ type BackdropSlot = 'root';
116
+ /** What `theme.components.Backdrop` takes. */
117
+ type BackdropThemeConfig = ComponentConfig<BackdropOwnerState, BackdropSlot>;
118
+ /** The defaults a theme may set for every `Badge`. */
119
+ interface BadgeOwnerState {
120
+ max?: number;
121
+ variant?: 'standard' | 'dot';
122
+ color?: ThemeColor;
123
+ anchorOrigin?: {
124
+ vertical: 'top' | 'bottom';
125
+ horizontal: 'start' | 'end';
126
+ };
127
+ overlap?: 'rectangular' | 'circular';
128
+ }
129
+ /** The slots of Badge a theme can style with `styleOverrides`. */
130
+ type BadgeSlot = 'root' | 'badge' | 'label';
131
+ /** What `theme.components.Badge` takes. */
132
+ type BadgeThemeConfig = ComponentConfig<BadgeOwnerState, BadgeSlot>;
133
+ /** The defaults a theme may set for every `Breadcrumbs` - its `expandLabel` gives a trail its language. */
134
+ interface BreadcrumbsOwnerState {
135
+ separator?: ReactNode;
136
+ maxItems?: number;
137
+ itemsBeforeCollapse?: number;
138
+ itemsAfterCollapse?: number;
139
+ expandLabel?: string;
140
+ color?: keyof ThemeText;
141
+ }
142
+ /** The slots of Breadcrumbs a theme can style with `styleOverrides`. */
143
+ type BreadcrumbsSlot = 'root' | 'list' | 'item' | 'separator' | 'collapsed' | 'collapsedIcon';
144
+ /** What `theme.components.Breadcrumbs` takes. */
145
+ type BreadcrumbsThemeConfig = ComponentConfig<BreadcrumbsOwnerState, BreadcrumbsSlot>;
146
+ /** The corner shapes of a control or a surface. */
147
+ type ShapeKey$2 = 'square' | 'rounded' | 'pill';
148
+ /** The resolved props Button's styled roots receive - what `ownerState` exposes. */
149
+ interface ButtonOwnerState {
150
+ variant?: ButtonVariant;
151
+ color?: ThemeColor;
152
+ size?: ThemeSize;
153
+ shape?: ShapeKey$2;
154
+ fullWidth?: boolean;
155
+ disabled?: boolean;
156
+ }
157
+ /** Button's looks: the built-in ones, those added through `ButtonVariants`, and those a registered theme defines. */
158
+ type ButtonVariant = keyof ButtonVariants | VariantOf<'Button'>;
159
+ /** The slots of Button a theme can style with `styleOverrides`. */
160
+ type ButtonSlot = 'root' | 'label' | 'icon' | 'loader';
161
+ /** What `theme.components.Button` takes. */
162
+ type ButtonThemeConfig = ComponentConfig<ButtonOwnerState, ButtonSlot>;
163
+ /** Augmentable via the `ButtonVariants` interface, or defined by a registered theme - style new values through `theme.components.Button.variants`. */
164
+ type ButtonColor = ThemeColor;
165
+ type ButtonSize = keyof AppTheme['sizes'];
166
+ type ButtonShape = 'square' | 'rounded' | 'pill';
167
+ type ButtonLoadingPosition = 'start' | 'end' | 'center';
168
+ /** Valid values for the gap prop - resolves against theme.space. Default: `1` (8px). */
169
+ type GapToken$1 = keyof AppTheme['space'];
170
+ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'style'>, SpaceProps, LayoutProps, BorderProps, TypographyProps$1 {
171
+ /** Visual style - filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
172
+ variant?: ButtonVariant;
173
+ /** Color palette - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
174
+ color?: ButtonColor;
175
+ /** Size token - controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
176
+ size?: ButtonSize;
177
+ /** Gap between icon and label - resolves against theme.space. Default: `1` (8px). */
178
+ gap?: GapToken$1;
179
+ /** Icon rendered before the label. */
180
+ startIcon?: ReactNode;
181
+ /** Icon rendered after the label. */
182
+ endIcon?: ReactNode;
183
+ /** Stretch button to full container width. */
184
+ fullWidth?: boolean;
185
+ /** Shows loading indicator and disables the button. */
186
+ loading?: boolean;
187
+ /** Custom loading element. Default: animated spinner. */
188
+ loadingIndicator?: ReactNode;
189
+ /**
190
+ * Corner shape - sets the default `borderRadius`.
191
+ * `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
192
+ * The `borderRadius` prop always overrides this.
193
+ */
194
+ shape?: ButtonShape;
195
+ /** Where the loading indicator appears. Default: `"center"`. */
196
+ loadingPosition?: ButtonLoadingPosition;
197
+ /** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
198
+ href?: string;
199
+ /** Anchor `target` - only meaningful when `href` is set. */
200
+ target?: string;
201
+ /** Anchor `rel` - only meaningful when `href` is set. */
202
+ rel?: string;
203
+ /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
204
+ style?: StyleOverride;
205
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
206
+ slotProps?: SlotProps<ButtonSlot>;
207
+ }
208
+ /** The resolved props ButtonGroup's styled elements receive - what `ownerState` exposes. */
209
+ type ButtonGroupOwnerState = Record<string, unknown>;
210
+ /** The slots of ButtonGroup a theme can style with `styleOverrides`. */
211
+ type ButtonGroupSlot = 'root';
212
+ /** What `theme.components.ButtonGroup` takes. */
213
+ type ButtonGroupThemeConfig = ComponentConfig<ButtonGroupOwnerState, ButtonGroupSlot>;
214
+ /** Card's resolved props / theme-settable defaults. */
215
+ interface CardOwnerState {
216
+ variant?: 'paper' | 'bracketBox' | 'interactive';
217
+ /** Merged under any per-instance `titleProps` (instance wins). */
218
+ titleProps?: CardSlotTypographyProps;
219
+ /** Merged under any per-instance `captionProps` (instance wins). */
220
+ captionProps?: CardSlotTypographyProps;
221
+ /** Merged under any per-instance `iconProps` (instance wins). */
222
+ iconProps?: CardSlotIconProps;
223
+ }
224
+ /** Token-typed Typography props a theme may set for Card's title/caption slots. */
225
+ interface CardSlotTypographyProps {
226
+ variant?: ThemeTypography;
227
+ color?: keyof ThemeText;
228
+ fontFamily?: keyof ThemeFonts;
229
+ mb?: ThemeSpaceKey;
230
+ }
231
+ /** Token-typed Icon props a theme may set for Card's icon slot. */
232
+ interface CardSlotIconProps {
233
+ color?: keyof ThemeText;
234
+ size?: string | number;
235
+ }
236
+ /** The slots of Card a theme can style with `styleOverrides`. */
237
+ type CardSlot = 'root' | 'title' | 'caption' | 'icon';
238
+ /** What `theme.components.Card` takes. */
239
+ type CardThemeConfig = ComponentConfig<CardOwnerState, CardSlot>;
240
+ /** The resolved props Checkbox's styled elements receive - what `ownerState` exposes. */
241
+ type CheckboxOwnerState = Record<string, unknown>;
242
+ /** The slots of Checkbox a theme can style with `styleOverrides`. */
243
+ type CheckboxSlot = 'root' | 'input' | 'icon' | 'label';
244
+ /** What `theme.components.Checkbox` takes. */
245
+ type CheckboxThemeConfig = ComponentConfig<CheckboxOwnerState, CheckboxSlot>;
246
+ /** The corner shapes of a control or a surface. */
247
+ type ShapeKey$1 = 'square' | 'rounded' | 'pill';
248
+ /** The defaults a theme may set for every `Chip` - its `deleteLabel` gives it a language. */
249
+ interface ChipOwnerState {
250
+ variant?: 'contained' | 'outlined' | 'text';
251
+ color?: ThemeColor;
252
+ size?: ThemeSize;
253
+ shape?: ShapeKey$1;
254
+ borderRadius?: keyof ThemeRadii;
255
+ deleteLabel?: string;
256
+ }
257
+ /** The slots of Chip a theme can style with `styleOverrides`. */
258
+ type ChipSlot = 'root' | 'body' | 'label' | 'icon' | 'avatar' | 'deleteIcon';
259
+ /** What `theme.components.Chip` takes. */
260
+ type ChipThemeConfig = ComponentConfig<ChipOwnerState, ChipSlot>;
261
+ /** The resolved props CircularProgress's styled elements receive - what `ownerState` exposes. */
262
+ type CircularProgressOwnerState = Record<string, unknown>;
263
+ /** The slots of CircularProgress a theme can style with `styleOverrides`. */
264
+ type CircularProgressSlot = 'root' | 'track' | 'circle';
265
+ /** What `theme.components.CircularProgress` takes. */
266
+ type CircularProgressThemeConfig = ComponentConfig<CircularProgressOwnerState, CircularProgressSlot>;
267
+ /** The defaults a theme may set for every `Collapse`. */
268
+ interface CollapseOwnerState {
269
+ orientation?: 'vertical' | 'horizontal';
270
+ collapsedSize?: string | number;
271
+ timeout?: number | {
272
+ enter: number;
273
+ exit: number;
274
+ };
275
+ easing?: keyof ThemeTransitionEasing;
276
+ shouldAppear?: boolean;
277
+ }
278
+ /** The slots of Collapse a theme can style with `styleOverrides`. */
279
+ type CollapseSlot = 'root' | 'wrapper' | 'inner';
280
+ /** What `theme.components.Collapse` takes. */
281
+ type CollapseThemeConfig = ComponentConfig<CollapseOwnerState, CollapseSlot>;
282
+ /** The resolved props Paper's styled elements receive - what `ownerState` exposes. */
283
+ type PaperOwnerState = Record<string, unknown>;
284
+ /** The slots of Paper a theme can style with `styleOverrides`. */
285
+ type PaperSlot = 'root';
286
+ /** What `theme.components.Paper` takes. */
287
+ type PaperThemeConfig = ComponentConfig<PaperOwnerState, PaperSlot>;
288
+ /** Valid values for the color prop - derived from theme.text keys. */
289
+ type ViewColorToken = keyof Theme['text'];
290
+ /** Valid values for the bg prop - derived from theme.background keys. */
291
+ type ViewBackgroundToken = keyof Theme['background'];
292
+ /** Valid values for the borderColor prop - derived from theme.border keys. */
293
+ type ViewBorderColorToken = keyof Theme['border'];
294
+ /** Valid values for the borderWidth prop - derived from theme.borderWidths keys. */
295
+ type ViewBorderWidthToken = keyof Theme['borderWidths'];
296
+ /** Valid theme tokens for border-radius. Raw CSS pixel values (e.g. '6px', '9999px') are also accepted. */
297
+ type OrPixels<Token extends PropertyKey> = Token | `${number}px`;
298
+ type ViewBorderRadiusToken = OrPixels<keyof Theme['radii']>;
299
+ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps$1, Omit<BorderProps, 'borderColor' | 'borderWidth' | 'borderRadius'>, PositionProps, SpanProps, LayoutFrameProps {
300
+ /** Overrides the CSS of the element: an entry of `StyleSheet.create`, or a list of them. */
301
+ style?: StyleOverride;
302
+ /** Overrides for the slot a theme can style: `style`, `className`, `data-*` and `aria-*`. */
303
+ slotProps?: SlotProps<'root'>;
304
+ bg?: ViewBackgroundToken;
305
+ /** Resolves against theme.border - light · primary · dark */
306
+ borderColor?: ViewBorderColorToken;
307
+ /** Resolves against theme.borderWidths - none · thin · base · thick */
308
+ borderWidth?: ViewBorderWidthToken;
309
+ /** Theme tokens: sq · sm · md · lg. Also accepts raw CSS pixel values e.g. '6px', '9999px'. */
310
+ borderRadius?: ViewBorderRadiusToken;
311
+ opacity?: number;
312
+ cursor?: CSSProperties['cursor'];
313
+ /** CSS order for flex/grid item placement. Accepts responsive arrays. */
314
+ order?: FlexboxProps['order'];
315
+ }
316
+ /** The resolved props View's styled elements receive - what `ownerState` exposes. */
317
+ type ViewOwnerState = Record<string, unknown>;
318
+ /** The slots of View a theme can style with `styleOverrides`. */
319
+ type ViewSlot = 'root';
320
+ /** What `theme.components.View` takes. */
321
+ type ViewThemeConfig = ComponentConfig<ViewOwnerState, ViewSlot>;
322
+ declare const View: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, ViewProps, {
323
+ theme?: AppTheme;
324
+ as?: React.ElementType;
325
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object>>;
326
+ /**
327
+ * Once themes are registered, `T` may have no key the registered themes lack, at any depth: each
328
+ * extra key is typed `never`, so the error names it. `components` is the one shared value, which
329
+ * `defineThemes` already checked.
330
+ */
331
+ type Exact<T, Shape> = keyof Register extends never ? unknown : Same<T, Shape>;
332
+ type Same<T, Shape> = T extends readonly unknown[] | ((...args: never[]) => unknown) | string | number | boolean | null | undefined ? T : { [K in keyof T]: K extends 'components' ? T[K] : K extends keyof Shape ? Same<T[K], NonNullable<Shape[K]>> : never; };
333
+ interface ThemeProviderOwnProps<T> {
334
+ children?: ReactNode;
335
+ /**
336
+ * The active theme. Bring one theme, or as many as you like - switching
337
+ * between them is your state, not the provider's. Defaults to the built-in
338
+ * `baseTheme`.
339
+ */
340
+ theme?: T & Exact<T, AppTheme>;
341
+ /**
342
+ * Optional component default token/variant keys, merged into the theme
343
+ * (e.g. `{ size: 'compact' }` makes every sized component default to your key).
344
+ * Two objects with the same contents give the same theme, so an inline literal is fine.
345
+ */
346
+ defaults?: ThemeDefaults;
347
+ }
348
+ /** The props once the app registers its themes: it has no built-in theme to fall back to, so `theme` is required. */
349
+ interface RegisteredThemeProviderProps<T> {
350
+ children?: ReactNode;
351
+ /** The active theme: one of the registered themes. Switching between them is your state, not the provider's. */
352
+ theme: T & Exact<T, AppTheme>;
353
+ /**
354
+ * Optional component default token/variant keys, merged into the theme
355
+ * (e.g. `{ size: 'compact' }` makes every sized component default to your key).
356
+ * Two objects with the same contents give the same theme, so an inline literal is fine.
357
+ */
358
+ defaults?: ThemeDefaults;
359
+ }
360
+ type ThemeProviderProps<T = Theme> = Register extends {
361
+ themes: unknown;
362
+ } ? RegisteredThemeProviderProps<T> : ThemeProviderOwnProps<T>;
363
+ declare function ThemeProvider$1<T extends Theme = Theme>(props: Readonly<ThemeProviderProps<T>>): ReactElement;
364
+ type GildFallback = GildCore.Register extends {
365
+ themes: unknown;
366
+ } ? Record<never, never> : GildTheme;
367
+ declare module '@umber-style/react' {
368
+ interface Register extends GildCore.Register {}
369
+ interface Theme extends GildFallback {}
370
+ }
371
+ type GildStyleThemes = GildCore.Register extends {
372
+ themes: infer Themes;
373
+ } ? {
374
+ themes: Themes;
375
+ } : Record<never, never>;
376
+ interface GildStyleRegister extends GildStyleThemes {
377
+ defaultValues: {
378
+ space: 'strict';
379
+ sizes: 'wide';
380
+ colors: 'strict';
381
+ fontSizes: 'strict';
382
+ fontWeights: 'strict';
383
+ lineHeights: 'strict';
384
+ letterSpacings: 'strict';
385
+ fonts: 'strict';
386
+ borders: 'strict';
387
+ borderStyles: 'strict';
388
+ borderWidths: 'strict';
389
+ radii: 'strict';
390
+ shadows: 'strict';
391
+ zIndices: 'strict';
392
+ };
393
+ }
394
+ declare module '@soroush.tech/styled-system' {
395
+ interface Register extends GildStyleRegister {}
396
+ }
397
+ type DefaultPropsOf<N extends keyof ThemeComponents> = Partial<NonNullable<NonNullable<ThemeComponents[N]>['$owner']>>;
398
+ /**
399
+ * The theme-contributed default prop values for a component
400
+ * (`theme.components[name].defaultProps`), or an empty object.
401
+ *
402
+ * Components apply it as one step of the default-resolution chain:
403
+ * explicit prop → group context → `useDefaultProps` → `theme.defaults.*` → literal fallback.
404
+ */
405
+ declare function useDefaultProps<N extends keyof ThemeComponents>(name: N): DefaultPropsOf<N>;
406
+ /**
407
+ * Design-system additions to the engine's styled options. A styled root that passes
408
+ * `name` becomes theme-customizable: `theme.components[name]` may contribute
409
+ * `styleOverrides` (per `slot`) and `variants`, appended after the component's
410
+ * own styles so the theme wins the cascade. Roots without `name` are plain
411
+ * `styled` - zero behavior change, zero cost.
412
+ */
413
+ interface ThemeCustomizationOptions {
414
+ /** `theme.components` key enabling styleOverrides/variants for this root. */
415
+ name?: string;
416
+ /** The `styleOverrides` slot this root maps to. Default: `'root'`. */
417
+ slot?: string;
418
+ /**
419
+ * Styled-system prop parsers (`space`, `layout`, ...) appended AFTER the theme
420
+ * override resolver, so per-instance props (`m`, `p`, `width`, ...) always beat
421
+ * theme `styleOverrides`.
422
+ */
423
+ systemProps?: ReadonlyArray<Interpolation<never>>;
424
+ /**
425
+ * Custom mapping from render props to applied override styles - replaces the
426
+ * default `styleOverrides[slot]` lookup (for prop-keyed override keys).
427
+ */
428
+ overridesResolver?: (props: Record<string, unknown>, styleOverrides: Record<string, unknown>) => unknown;
429
+ }
430
+ /**
431
+ * The `styled.div`, `styled.span`, ... tag shorthands - mirrors the engine's own
432
+ * `StyledTags`, with the `theme` and `as` props a styled component takes.
433
+ */
434
+ type StyledTags = { [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
435
+ theme?: AppTheme;
436
+ as?: React.ElementType;
437
+ }, JSX.IntrinsicElements[Tag]>; };
438
+ /** Overloads mirroring the engine's, with the theme-customization options added. */
439
+ interface CreateThemedStyled extends StyledTags {
440
+ <C extends ComponentClass<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
441
+ theme?: AppTheme;
442
+ }, {}, {
443
+ ref?: Ref<InstanceType<C>>;
444
+ }>;
445
+ <C extends ComponentType<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
446
+ theme?: AppTheme;
447
+ }>;
448
+ <C extends ComponentType<ComponentProps<C>>>(component: C, options?: StyledOptions<ComponentProps<C>> & ThemeCustomizationOptions): CreateStyledComponent<PropsOf<C> & {
449
+ theme?: AppTheme;
450
+ }>;
451
+ <Tag extends keyof JSX.IntrinsicElements, ForwardedProps extends keyof JSX.IntrinsicElements[Tag] & string = keyof JSX.IntrinsicElements[Tag] & string>(tag: Tag, options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<{
452
+ theme?: AppTheme;
453
+ as?: React.ElementType;
454
+ }, Pick<JSX.IntrinsicElements[Tag], ForwardedProps>>;
455
+ <Tag extends keyof JSX.IntrinsicElements>(tag: Tag, options?: StyledOptions<JSX.IntrinsicElements[Tag]> & ThemeCustomizationOptions): CreateStyledComponent<{
456
+ theme?: AppTheme;
457
+ as?: React.ElementType;
458
+ }, JSX.IntrinsicElements[Tag]>;
459
+ }
460
+ /**
461
+ * The design system's `styled` - the engine's styled plus theme-level component
462
+ * customization (`theme.components[name].styleOverrides` / `.variants`).
463
+ */
464
+ declare const styled: CreateThemedStyled;
465
+ /** Valid values for the gap prop - derived from theme.space keys. */
466
+ type GapToken = keyof Theme['space'];
467
+ /**
468
+ * `layout` puts the flex container on the page frame, as on any View: the theme's margin and
469
+ * max width per breakpoint. The flexbox stays as set - a column by default, a row with
470
+ * `flexDirection="row"`. Columns are Grid's: content on the page columns uses `<Grid layout>`.
471
+ */
472
+ interface FlexProps extends ViewProps, FlexboxProps {}
473
+ /** The resolved props Flex's styled elements receive - what `ownerState` exposes. */
474
+ type FlexOwnerState = Record<string, unknown>;
475
+ /** The slots of Flex a theme can style with `styleOverrides`. */
476
+ type FlexSlot = 'root';
477
+ /** What `theme.components.Flex` takes. */
478
+ type FlexThemeConfig = ComponentConfig<FlexOwnerState, FlexSlot>;
479
+ declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, FlexProps, Omit<Omit<{
480
+ theme?: AppTheme;
481
+ as?: React.ElementType;
482
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object, "as" | keyof ViewProps> & Omit<ViewProps, "style"> & {
483
+ as?: "a" | "abbr" | "address" | "animate" | "animateMotion" | "animateTransform" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "circle" | "cite" | "clipPath" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "defs" | "del" | "desc" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "ellipse" | "em" | "embed" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "fieldset" | "figcaption" | "figure" | "filter" | "footer" | "foreignObject" | "form" | "g" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "image" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "line" | "linearGradient" | "link" | "main" | "map" | "mark" | "marker" | "mask" | "menu" | "menuitem" | "meta" | "metadata" | "meter" | "mpath" | "nav" | "noindex" | "noscript" | "object" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "path" | "pattern" | "picture" | "polygon" | "polyline" | "pre" | "progress" | "q" | "radialGradient" | "rect" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "search" | "section" | "select" | "set" | "slot" | "small" | "source" | "span" | "stop" | "strong" | "style" | "sub" | "summary" | "sup" | "svg" | "switch" | "symbol" | "table" | "tbody" | "td" | "template" | "text" | "textPath" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "tspan" | "u" | "ul" | "use" | "var" | "video" | "view" | "wbr" | "webview" | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
484
+ style?: import("@umber-style/react").StyleProp;
485
+ }, "slotProps" | "style"> & {
486
+ style?: StyleOverride;
487
+ slotProps?: SlotProps<'root'>;
488
+ } & {
489
+ theme?: AppTheme;
490
+ } & object>>;
491
+ type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
492
+ interface PaperProps extends FlexProps {
493
+ /** Shadow depth - 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
494
+ elevation?: PaperElevation;
495
+ /** CSS transition for surface animations (e.g. hover elevation change). */
496
+ transition?: CSSProperties['transition'];
497
+ /** Resolves against theme.border - light · primary · dark */
498
+ borderColor?: keyof Theme['border'];
499
+ /** Resolves against theme.borderWidths - none · thin · base · thick */
500
+ borderWidth?: keyof Theme['borderWidths'];
501
+ /** CSS border-style value (e.g. 'solid', 'dashed'). */
502
+ borderStyle?: CSSProperties['borderStyle'];
503
+ /** Renders the surface as a different element (e.g. 'section'). */
504
+ as?: ElementType;
505
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
506
+ slotProps?: SlotProps<PaperSlot>;
507
+ }
508
+ declare function Paper({ elevation, p, bg, borderRadius, style, className, slotProps, ...rest }: Readonly<PaperProps>): import("react").JSX.Element;
509
+ /** The defaults a theme may set for every `Menu`. */
510
+ interface MenuOwnerState {
511
+ align?: 'start' | 'end';
512
+ borderRadius?: keyof ThemeRadii;
513
+ marginThreshold?: ThemeSpaceKey;
514
+ elevation?: PaperElevation;
515
+ layer?: keyof ThemeZOrder;
516
+ color?: ThemeColor;
517
+ textColor?: keyof ThemeText;
518
+ size?: ThemeSize;
519
+ dense?: boolean;
520
+ }
521
+ /** The slots of Menu a theme can style with `styleOverrides`. */
522
+ type MenuSlot = 'root' | 'paper' | 'list';
523
+ /** What `theme.components.Menu` takes. */
524
+ type MenuThemeConfig = ComponentConfig<MenuOwnerState, MenuSlot>;
525
+ /** The defaults a theme may set for every `ContextMenu` - a `Menu`'s, placed at the pointer. */
526
+ type ContextMenuOwnerState = Omit<MenuOwnerState, 'align'>;
527
+ /** The slots of ContextMenu a theme can style with `styleOverrides`. */
528
+ type ContextMenuSlot = 'root' | 'paper' | 'list';
529
+ /** What `theme.components.ContextMenu` takes. */
530
+ type ContextMenuThemeConfig = ComponentConfig<ContextMenuOwnerState, ContextMenuSlot>;
531
+ /** The resolved props Drawer's styled elements receive - what `ownerState` exposes. */
532
+ type DrawerOwnerState = Record<string, unknown>;
533
+ /** The slots of Drawer a theme can style with `styleOverrides`. */
534
+ type DrawerSlot = 'root';
535
+ /** What `theme.components.Drawer` takes. */
536
+ type DrawerThemeConfig = ComponentConfig<DrawerOwnerState, DrawerSlot>;
537
+ /** The defaults a theme may set for every `Fab`. */
538
+ interface FabOwnerState {
539
+ variant?: 'circular' | 'extended';
540
+ color?: ThemeColor;
541
+ size?: ThemeSize;
542
+ }
543
+ /** The slots of Fab a theme can style with `styleOverrides`. */
544
+ type FabSlot = 'root' | 'label' | 'labelText';
545
+ /** What `theme.components.Fab` takes. */
546
+ type FabThemeConfig = ComponentConfig<FabOwnerState, FabSlot>;
547
+ /** The defaults a theme may set for every `FabMenu`. */
548
+ interface FabMenuOwnerState {
549
+ direction?: 'up' | 'down' | 'left' | 'right';
550
+ align?: 'start' | 'end';
551
+ color?: ThemeColor;
552
+ size?: ThemeSize;
553
+ }
554
+ /** The slots of FabMenu a theme can style with `styleOverrides`. */
555
+ type FabMenuSlot = 'root' | 'list';
556
+ /** What `theme.components.FabMenu` takes. */
557
+ type FabMenuThemeConfig = ComponentConfig<FabMenuOwnerState, FabMenuSlot>;
558
+ /** The resolved props FocusTrap's styled elements receive - what `ownerState` exposes. */
559
+ type FocusTrapOwnerState = Record<string, unknown>;
560
+ /** The slots of FocusTrap a theme can style with `styleOverrides`. */
561
+ type FocusTrapSlot = 'root';
562
+ /** What `theme.components.FocusTrap` takes. */
563
+ type FocusTrapThemeConfig = ComponentConfig<FocusTrapOwnerState, FocusTrapSlot>;
564
+ /** The resolved props Form's styled elements receive - what `ownerState` exposes. */
565
+ type FormOwnerState = Record<string, unknown>;
566
+ /** The slots of Form a theme can style with `styleOverrides`. */
567
+ type FormSlot = 'root';
568
+ /** What `theme.components.Form` takes. */
569
+ type FormThemeConfig = ComponentConfig<FormOwnerState, FormSlot>;
570
+ /** The resolved props FormControl's styled elements receive - what `ownerState` exposes. */
571
+ type FormControlOwnerState = Record<string, unknown>;
572
+ /** The slots of FormControl a theme can style with `styleOverrides`. */
573
+ type FormControlSlot = 'root';
574
+ /** What `theme.components.FormControl` takes. */
575
+ type FormControlThemeConfig = ComponentConfig<FormControlOwnerState, FormControlSlot>;
576
+ /** The resolved props FormHelperText's styled elements receive - what `ownerState` exposes. */
577
+ type FormHelperTextOwnerState = Record<string, unknown>;
578
+ /** The slots of FormHelperText a theme can style with `styleOverrides`. */
579
+ type FormHelperTextSlot = 'root';
580
+ /** What `theme.components.FormHelperText` takes. */
581
+ type FormHelperTextThemeConfig = ComponentConfig<FormHelperTextOwnerState, FormHelperTextSlot>;
582
+ /** The resolved props FormLabel's styled elements receive - what `ownerState` exposes. */
583
+ type FormLabelOwnerState = Record<string, unknown>;
584
+ /** The slots of FormLabel a theme can style with `styleOverrides`. */
585
+ type FormLabelSlot = 'root';
586
+ /** What `theme.components.FormLabel` takes. */
587
+ type FormLabelThemeConfig = ComponentConfig<FormLabelOwnerState, FormLabelSlot>;
588
+ /** The resolved props Grid's styled elements receive - what `ownerState` exposes. */
589
+ type GridOwnerState = Record<string, unknown>;
590
+ /** The slots of Grid a theme can style with `styleOverrides`. */
591
+ type GridSlot = 'root';
592
+ /** What `theme.components.Grid` takes. */
593
+ type GridThemeConfig = ComponentConfig<GridOwnerState, GridSlot>;
594
+ /** The resolved props Icon's styled elements receive - what `ownerState` exposes. */
595
+ type IconOwnerState = Record<string, unknown>;
596
+ /** The slots of Icon a theme can style with `styleOverrides`. */
597
+ type IconSlot = 'root';
598
+ /** What `theme.components.Icon` takes. */
599
+ type IconThemeConfig = ComponentConfig<IconOwnerState, IconSlot>;
600
+ /** The resolved props Image's styled elements receive - what `ownerState` exposes. */
601
+ type ImageOwnerState = Record<string, unknown>;
602
+ /** The slots of Image a theme can style with `styleOverrides`. */
603
+ type ImageSlot = 'root';
604
+ /** What `theme.components.Image` takes. */
605
+ type ImageThemeConfig = ComponentConfig<ImageOwnerState, ImageSlot>;
606
+ /** The resolved props LinearProgress's styled elements receive - what `ownerState` exposes. */
607
+ type LinearProgressOwnerState = Record<string, unknown>;
608
+ /** The slots of LinearProgress a theme can style with `styleOverrides`. */
609
+ type LinearProgressSlot = 'root' | 'track' | 'dash' | 'bar' | 'traveler' | 'segment' | 'secondaryBar';
610
+ /** What `theme.components.LinearProgress` takes. */
611
+ type LinearProgressThemeConfig = ComponentConfig<LinearProgressOwnerState, LinearProgressSlot>;
612
+ /** The resolved props Link's styled elements receive - what `ownerState` exposes. */
613
+ type LinkOwnerState = Record<string, unknown>;
614
+ /** The slots of Link a theme can style with `styleOverrides`. */
615
+ type LinkSlot = 'root';
616
+ /** What `theme.components.Link` takes. */
617
+ type LinkThemeConfig = ComponentConfig<LinkOwnerState, LinkSlot>;
618
+ /** The resolved props MenuDivider's styled elements receive - what `ownerState` exposes. */
619
+ type MenuDividerOwnerState = Record<string, unknown>;
620
+ /** The slots of MenuDivider a theme can style with `styleOverrides`. */
621
+ type MenuDividerSlot = 'root';
622
+ /** What `theme.components.MenuDivider` takes. */
623
+ type MenuDividerThemeConfig = ComponentConfig<MenuDividerOwnerState, MenuDividerSlot>;
624
+ /** The defaults a theme may set for every `MenuItem` - a list's own values win. */
625
+ interface MenuItemOwnerState {
626
+ color?: ThemeColor;
627
+ textColor?: keyof ThemeText;
628
+ size?: ThemeSize;
629
+ dense?: boolean;
630
+ }
631
+ /** The slots of MenuItem a theme can style with `styleOverrides`. */
632
+ type MenuItemSlot = 'root' | 'check' | 'startIcon' | 'label' | 'shortcut' | 'submenuIcon' | 'entry' | 'secondaryAction';
633
+ /** What `theme.components.MenuItem` takes. */
634
+ type MenuItemThemeConfig = ComponentConfig<MenuItemOwnerState, MenuItemSlot>;
635
+ /** The defaults a theme may set for every `MenuList` - and so for its rows. */
636
+ interface MenuListOwnerState {
637
+ color?: ThemeColor;
638
+ textColor?: keyof ThemeText;
639
+ size?: ThemeSize;
640
+ dense?: boolean;
641
+ shouldWrap?: boolean;
642
+ }
643
+ /** The slots of MenuList a theme can style with `styleOverrides`. */
644
+ type MenuListSlot = 'root';
645
+ /** What `theme.components.MenuList` takes. */
646
+ type MenuListThemeConfig = ComponentConfig<MenuListOwnerState, MenuListSlot>;
647
+ type ModalCloseReason = 'escapeKey' | 'backdropClick';
648
+ type ModalScroll = 'paper' | 'body';
649
+ interface ModalProps {
650
+ /** If true, the modal is shown. */
651
+ isOpen: boolean;
652
+ /** A single content element. */
653
+ children: ReactNode;
654
+ /** Fired on Escape (top modal only) or backdrop click. */
655
+ onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
656
+ /** Render the dimmed backdrop. Default: true. */
657
+ hasBackdrop?: boolean;
658
+ /** Keep the children mounted while closed. Default: false. */
659
+ shouldKeepMounted?: boolean;
660
+ /** Portal the modal into `portalContainer`. Default: true. */
661
+ shouldUsePortal?: boolean;
662
+ /** Portal target, or a function returning one. Defaults to the document body. */
663
+ portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
664
+ /** Lock body scroll while open. Default: true. */
665
+ shouldLockScroll?: boolean;
666
+ /** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
667
+ disableAriaHidden?: boolean;
668
+ /** Move focus into the modal on open. Default: true. */
669
+ shouldAutoFocus?: boolean;
670
+ /** Trap Tab focus within the modal. Default: true. */
671
+ shouldTrapFocus?: boolean;
672
+ /** Pull focus back into the modal whenever it escapes. Default: true. */
673
+ shouldEnforceFocus?: boolean;
674
+ /** Restore focus to the trigger on close. Default: true. */
675
+ shouldRestoreFocus?: boolean;
676
+ /** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
677
+ scroll?: ModalScroll;
678
+ /** Stacking layer from `theme.zOrder`. Default: 'modal'. */
679
+ layer?: keyof Theme['zOrder'];
680
+ /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
681
+ style?: StyleOverride;
682
+ className?: string;
683
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
684
+ slotProps?: SlotProps<ModalSlot>;
685
+ }
686
+ /** The resolved props Modal's styled elements receive - what `ownerState` exposes. */
687
+ type ModalOwnerState = Record<string, unknown>;
688
+ /** The slots of Modal a theme can style with `styleOverrides`. */
689
+ type ModalSlot = 'root';
690
+ /** What `theme.components.Modal` takes. */
691
+ type ModalThemeConfig = ComponentConfig<ModalOwnerState, ModalSlot>;
692
+ /** The resolved props NativeSelect's styled elements receive - what `ownerState` exposes. */
693
+ type NativeSelectOwnerState = Record<string, unknown>;
694
+ /** The slots of NativeSelect a theme can style with `styleOverrides`. */
695
+ type NativeSelectSlot = 'root' | 'select' | 'icon';
696
+ /** What `theme.components.NativeSelect` takes. */
697
+ type NativeSelectThemeConfig = ComponentConfig<NativeSelectOwnerState, NativeSelectSlot>;
698
+ /** The resolved props NavGroup's styled elements receive - what `ownerState` exposes. */
699
+ type NavGroupOwnerState = Record<string, unknown>;
700
+ /** The slots of NavGroup a theme can style with `styleOverrides`. */
701
+ type NavGroupSlot = 'root' | 'label' | 'list';
702
+ /** What `theme.components.NavGroup` takes. */
703
+ type NavGroupThemeConfig = ComponentConfig<NavGroupOwnerState, NavGroupSlot>;
704
+ /** The resolved props NavLink's styled elements receive - what `ownerState` exposes. */
705
+ type NavLinkOwnerState = Record<string, unknown>;
706
+ /** The slots of NavLink a theme can style with `styleOverrides`. */
707
+ type NavLinkSlot = 'root' | 'label' | 'note';
708
+ /** What `theme.components.NavLink` takes. */
709
+ type NavLinkThemeConfig = ComponentConfig<NavLinkOwnerState, NavLinkSlot>;
710
+ /** The resolved props NavTree's styled elements receive - what `ownerState` exposes. */
711
+ type NavTreeOwnerState = Record<string, unknown>;
712
+ /** The slots of NavTree a theme can style with `styleOverrides`. */
713
+ type NavTreeSlot = 'root';
714
+ /** What `theme.components.NavTree` takes. */
715
+ type NavTreeThemeConfig = ComponentConfig<NavTreeOwnerState, NavTreeSlot>;
716
+ /** The defaults a theme may set for every `NumberInput` - its button labels give it a language. */
717
+ interface NumberInputOwnerState {
718
+ variant?: InputVariantKey;
719
+ size?: ThemeSize;
720
+ color?: ThemeColor;
721
+ spinButtons?: 'stacked' | 'sides' | 'none';
722
+ step?: number;
723
+ smallStep?: number;
724
+ largeStep?: number;
725
+ shouldSnapOnStep?: boolean;
726
+ shouldScrubOnWheel?: boolean;
727
+ incrementLabel?: string;
728
+ decrementLabel?: string;
729
+ }
730
+ /** The slots of NumberInput a theme can style with `styleOverrides`. */
731
+ type NumberInputSlot = 'root' | 'input' | 'content' | 'spinButtons' | 'increment' | 'decrement';
732
+ /** What `theme.components.NumberInput` takes. */
733
+ type NumberInputThemeConfig = ComponentConfig<NumberInputOwnerState, NumberInputSlot>;
734
+ /** The resolved props Pagination's styled elements receive - what `ownerState` exposes. */
735
+ type PaginationOwnerState = Record<string, unknown>;
736
+ /** The slots of Pagination a theme can style with `styleOverrides`. */
737
+ type PaginationSlot = 'root' | 'list';
738
+ /** What `theme.components.Pagination` takes. */
739
+ type PaginationThemeConfig = ComponentConfig<PaginationOwnerState, PaginationSlot>;
740
+ /** The resolved props PaginationItem's styled elements receive - what `ownerState` exposes. */
741
+ type PaginationItemOwnerState = Record<string, unknown>;
742
+ /** The slots of PaginationItem a theme can style with `styleOverrides`. */
743
+ type PaginationItemSlot = 'root' | 'ellipsis';
744
+ /** What `theme.components.PaginationItem` takes. */
745
+ type PaginationItemThemeConfig = ComponentConfig<PaginationItemOwnerState, PaginationItemSlot>;
746
+ /** The resolved props Popover's styled elements receive - what `ownerState` exposes. */
747
+ type PopoverOwnerState = Record<string, unknown>;
748
+ /** The slots of Popover a theme can style with `styleOverrides`. */
749
+ type PopoverSlot = 'root' | 'positioner';
750
+ /** What `theme.components.Popover` takes. */
751
+ type PopoverThemeConfig = ComponentConfig<PopoverOwnerState, PopoverSlot>;
752
+ /**
753
+ * Pressable's resolved props / theme-settable defaults. Only the three keys it
754
+ * actually resolves through `useDefaultProps` - the disabled state reaches the
755
+ * styled root as `isDisabled` and is never read from here, so exposing it would
756
+ * promise theme authors an override that does nothing.
757
+ */
758
+ interface PressableOwnerState {
759
+ feedback?: 'none' | 'opacity' | 'highlight';
760
+ color?: ThemeColor;
761
+ /** Opacity held content fades to under `feedback: 'opacity'`. */
762
+ activeOpacity?: number;
763
+ }
764
+ /** The slots of Pressable a theme can style with `styleOverrides`. */
765
+ type PressableSlot = 'root';
766
+ /** What `theme.components.Pressable` takes. */
767
+ type PressableThemeConfig = ComponentConfig<PressableOwnerState, PressableSlot>;
768
+ /** The resolved props Quote's styled elements receive - what `ownerState` exposes. */
769
+ type QuoteOwnerState = Record<string, unknown>;
770
+ /** The slots of Quote a theme can style with `styleOverrides`. */
771
+ type QuoteSlot = 'root';
772
+ /** What `theme.components.Quote` takes. */
773
+ type QuoteThemeConfig = ComponentConfig<QuoteOwnerState, QuoteSlot>;
774
+ /** The resolved props Radio's styled elements receive - what `ownerState` exposes. */
775
+ type RadioOwnerState = Record<string, unknown>;
776
+ /** The slots of Radio a theme can style with `styleOverrides`. */
777
+ type RadioSlot = 'root' | 'input' | 'icon' | 'label';
778
+ /** What `theme.components.Radio` takes. */
779
+ type RadioThemeConfig = ComponentConfig<RadioOwnerState, RadioSlot>;
780
+ /** The defaults a theme may set for every `RangeInput`. */
781
+ interface RangeInputOwnerState {
782
+ size?: ThemeSize;
783
+ color?: ThemeColor;
784
+ orientation?: 'horizontal' | 'vertical';
785
+ track?: 'normal' | false | 'inverted';
786
+ step?: number | null;
787
+ shiftStep?: number;
788
+ valueLabel?: 'auto' | 'on' | 'off';
789
+ shouldSwapThumbs?: boolean;
790
+ }
791
+ /** The slots of RangeInput a theme can style with `styleOverrides`. */
792
+ type RangeInputSlot = 'root' | 'rail' | 'track' | 'thumb' | 'mark' | 'markLabel' | 'valueLabel' | 'input';
793
+ /** What `theme.components.RangeInput` takes. */
794
+ type RangeInputThemeConfig = ComponentConfig<RangeInputOwnerState, RangeInputSlot>;
795
+ /** The defaults a theme may set for every `Rating`. */
796
+ interface RatingOwnerState {
797
+ max?: number;
798
+ precision?: number;
799
+ highlightSelectedOnly?: boolean;
800
+ size?: ThemeSize;
801
+ color?: ThemeColor;
802
+ }
803
+ /** The slots of Rating a theme can style with `styleOverrides`. */
804
+ type RatingSlot = 'root' | 'item' | 'icon' | 'decimal' | 'input' | 'text' | 'emptyLabel';
805
+ /** What `theme.components.Rating` takes. */
806
+ type RatingThemeConfig = ComponentConfig<RatingOwnerState, RatingSlot>;
807
+ /** The defaults a theme may set for every `ScrollArea`. */
808
+ interface ScrollAreaOwnerState {
809
+ axes?: 'x' | 'y' | 'both';
810
+ }
811
+ /** The slots of ScrollArea a theme can style with `styleOverrides`. */
812
+ type ScrollAreaSlot = 'root' | 'viewport' | 'track' | 'thumb';
813
+ /** What `theme.components.ScrollArea` takes. */
814
+ type ScrollAreaThemeConfig = ComponentConfig<ScrollAreaOwnerState, ScrollAreaSlot>;
815
+ /** The resolved props Select's styled elements receive - what `ownerState` exposes. */
816
+ type SelectOwnerState = Record<string, unknown>;
817
+ /** The slots of Select a theme can style with `styleOverrides`. */
818
+ type SelectSlot = 'root' | 'value' | 'valueArea' | 'valueGhost' | 'listbox';
819
+ /** What `theme.components.Select` takes. */
820
+ type SelectThemeConfig = ComponentConfig<SelectOwnerState, SelectSlot>;
821
+ /** The resolved props Sidebar's styled elements receive - what `ownerState` exposes. */
822
+ type SidebarOwnerState = Record<string, unknown>;
823
+ /** The slots of Sidebar a theme can style with `styleOverrides`. */
824
+ type SidebarSlot = 'root' | 'rail' | 'panel';
825
+ /** What `theme.components.Sidebar` takes. */
826
+ type SidebarThemeConfig = ComponentConfig<SidebarOwnerState, SidebarSlot>;
827
+ /** The resolved props SidebarItem's styled elements receive - what `ownerState` exposes. */
828
+ type SidebarItemOwnerState = Record<string, unknown>;
829
+ /** The slots of SidebarItem a theme can style with `styleOverrides`. */
830
+ type SidebarItemSlot = 'root' | 'pill';
831
+ /** What `theme.components.SidebarItem` takes. */
832
+ type SidebarItemThemeConfig = ComponentConfig<SidebarItemOwnerState, SidebarItemSlot>;
833
+ /** The resolved props Skeleton's styled elements receive - what `ownerState` exposes. */
834
+ type SkeletonOwnerState = Record<string, unknown>;
835
+ /** The slots of Skeleton a theme can style with `styleOverrides`. */
836
+ type SkeletonSlot = 'root' | 'content';
837
+ /** What `theme.components.Skeleton` takes. */
838
+ type SkeletonThemeConfig = ComponentConfig<SkeletonOwnerState, SkeletonSlot>;
839
+ /** The corner shapes of a control or a surface. */
840
+ type ShapeKey = 'square' | 'rounded' | 'pill';
841
+ /** The defaults a theme may set for every `Snackbar`. */
842
+ interface SnackbarOwnerState {
843
+ anchorOrigin?: {
844
+ vertical: 'top' | 'bottom';
845
+ horizontal: 'start' | 'center' | 'end';
846
+ };
847
+ autoHideDuration?: number;
848
+ resumeHideDuration?: number;
849
+ layer?: keyof ThemeZOrder;
850
+ shape?: ShapeKey;
851
+ borderRadius?: keyof ThemeRadii;
852
+ bg?: keyof ThemeBackground;
853
+ textColor?: keyof ThemeText;
854
+ }
855
+ /** The slots of Snackbar a theme can style with `styleOverrides`. */
856
+ type SnackbarSlot = 'root' | 'content' | 'message' | 'action';
857
+ /** What `theme.components.Snackbar` takes. */
858
+ type SnackbarThemeConfig = ComponentConfig<SnackbarOwnerState, SnackbarSlot>;
859
+ /** The resolved props Switch's styled elements receive - what `ownerState` exposes. */
860
+ type SwitchOwnerState = Record<string, unknown>;
861
+ /** The slots of Switch a theme can style with `styleOverrides`. */
862
+ type SwitchSlot = 'root' | 'input' | 'track' | 'thumb' | 'label';
863
+ /** What `theme.components.Switch` takes. */
864
+ type SwitchThemeConfig = ComponentConfig<SwitchOwnerState, SwitchSlot>;
865
+ /** The defaults a theme may set for every `Tab`. */
866
+ interface TabOwnerState {
867
+ isWrapped?: boolean;
868
+ bg?: keyof ThemeBackground;
869
+ borderRadius?: keyof ThemeRadii;
870
+ color?: ThemeColor;
871
+ textColor?: keyof ThemeText;
872
+ size?: ThemeSize;
873
+ selectedBg?: keyof ThemeBackground;
874
+ }
875
+ /** The slots of Tab a theme can style with `styleOverrides`. */
876
+ type TabSlot = 'root' | 'label' | 'icon' | 'secondaryAction' | 'close';
877
+ /** What `theme.components.Tab` takes. */
878
+ type TabThemeConfig = ComponentConfig<TabOwnerState, TabSlot>;
879
+ /** The defaults a theme may set for every `TabPanel`. */
880
+ interface TabPanelOwnerState {
881
+ shouldKeepMounted?: boolean;
882
+ }
883
+ /** The slots of TabPanel a theme can style with `styleOverrides`. */
884
+ type TabPanelSlot = 'root';
885
+ /** What `theme.components.TabPanel` takes. */
886
+ type TabPanelThemeConfig = ComponentConfig<TabPanelOwnerState, TabPanelSlot>;
887
+ /** The defaults a theme may set for every `TabScrollButton`. */
888
+ interface TabScrollButtonOwnerState {
889
+ color?: ThemeColor;
890
+ textColor?: keyof ThemeText;
891
+ }
892
+ /** The slots of TabScrollButton a theme can style with `styleOverrides`. */
893
+ type TabScrollButtonSlot = 'root';
894
+ /** What `theme.components.TabScrollButton` takes. */
895
+ type TabScrollButtonThemeConfig = ComponentConfig<TabScrollButtonOwnerState, TabScrollButtonSlot>;
896
+ /** The resolved props Table's styled elements receive - what `ownerState` exposes. */
897
+ type TableOwnerState = Record<string, unknown>;
898
+ /** The slots of Table a theme can style with `styleOverrides`. */
899
+ type TableSlot = 'root';
900
+ /** What `theme.components.Table` takes. */
901
+ type TableThemeConfig = ComponentConfig<TableOwnerState, TableSlot>;
902
+ /** The resolved props TableBody's styled elements receive - what `ownerState` exposes. */
903
+ type TableBodyOwnerState = Record<string, unknown>;
904
+ /** The slots of TableBody a theme can style with `styleOverrides`. */
905
+ type TableBodySlot = 'root';
906
+ /** What `theme.components.TableBody` takes. */
907
+ type TableBodyThemeConfig = ComponentConfig<TableBodyOwnerState, TableBodySlot>;
908
+ /** The resolved props TableCell's styled elements receive - what `ownerState` exposes. */
909
+ type TableCellOwnerState = Record<string, unknown>;
910
+ /** The slots of TableCell a theme can style with `styleOverrides`. */
911
+ type TableCellSlot = 'root';
912
+ /** What `theme.components.TableCell` takes. */
913
+ type TableCellThemeConfig = ComponentConfig<TableCellOwnerState, TableCellSlot>;
914
+ /** The resolved props TableContainer's styled elements receive - what `ownerState` exposes. */
915
+ type TableContainerOwnerState = Record<string, unknown>;
916
+ /** The slots of TableContainer a theme can style with `styleOverrides`. */
917
+ type TableContainerSlot = 'root';
918
+ /** What `theme.components.TableContainer` takes. */
919
+ type TableContainerThemeConfig = ComponentConfig<TableContainerOwnerState, TableContainerSlot>;
920
+ /** The resolved props TableFooter's styled elements receive - what `ownerState` exposes. */
921
+ type TableFooterOwnerState = Record<string, unknown>;
922
+ /** The slots of TableFooter a theme can style with `styleOverrides`. */
923
+ type TableFooterSlot = 'root';
924
+ /** What `theme.components.TableFooter` takes. */
925
+ type TableFooterThemeConfig = ComponentConfig<TableFooterOwnerState, TableFooterSlot>;
926
+ /** The resolved props TableHead's styled elements receive - what `ownerState` exposes. */
927
+ type TableHeadOwnerState = Record<string, unknown>;
928
+ /** The slots of TableHead a theme can style with `styleOverrides`. */
929
+ type TableHeadSlot = 'root';
930
+ /** What `theme.components.TableHead` takes. */
931
+ type TableHeadThemeConfig = ComponentConfig<TableHeadOwnerState, TableHeadSlot>;
932
+ /** The resolved props TablePagination's styled elements receive - what `ownerState` exposes. */
933
+ type TablePaginationOwnerState = Record<string, unknown>;
934
+ /** The slots of TablePagination a theme can style with `styleOverrides`. */
935
+ type TablePaginationSlot = 'root';
936
+ /** What `theme.components.TablePagination` takes. */
937
+ type TablePaginationThemeConfig = ComponentConfig<TablePaginationOwnerState, TablePaginationSlot>;
938
+ /** The resolved props TablePaginationActions's styled elements receive - what `ownerState` exposes. */
939
+ type TablePaginationActionsOwnerState = Record<string, unknown>;
940
+ /** The slots of TablePaginationActions a theme can style with `styleOverrides`. */
941
+ type TablePaginationActionsSlot = 'root';
942
+ /** What `theme.components.TablePaginationActions` takes. */
943
+ type TablePaginationActionsThemeConfig = ComponentConfig<TablePaginationActionsOwnerState, TablePaginationActionsSlot>;
944
+ /** The resolved props TableRow's styled elements receive - what `ownerState` exposes. */
945
+ type TableRowOwnerState = Record<string, unknown>;
946
+ /** The slots of TableRow a theme can style with `styleOverrides`. */
947
+ type TableRowSlot = 'root';
948
+ /** What `theme.components.TableRow` takes. */
949
+ type TableRowThemeConfig = ComponentConfig<TableRowOwnerState, TableRowSlot>;
950
+ /** The resolved props TableSortLabel's styled elements receive - what `ownerState` exposes. */
951
+ type TableSortLabelOwnerState = Record<string, unknown>;
952
+ /** The slots of TableSortLabel a theme can style with `styleOverrides`. */
953
+ type TableSortLabelSlot = 'root' | 'icon';
954
+ /** What `theme.components.TableSortLabel` takes. */
955
+ type TableSortLabelThemeConfig = ComponentConfig<TableSortLabelOwnerState, TableSortLabelSlot>;
956
+ /** The resolved props Tabs' styled elements receive - what `ownerState` exposes. */
957
+ interface TabsOwnerState {
958
+ variant?: TabsVariant;
959
+ color?: ThemeColor;
960
+ size?: ThemeSize;
961
+ orientation?: 'horizontal' | 'vertical';
962
+ fullWidth?: boolean;
963
+ hasDivider?: boolean;
964
+ selectedBg?: keyof ThemeBackground;
965
+ }
966
+ /** Tabs' look values - augment to register new ones (then style them via `variants`). */
967
+ interface TabsVariants {
968
+ underline: true;
969
+ boxed: true;
970
+ enclosed: true;
971
+ tonal: true;
972
+ }
973
+ /** Tabs' looks: the built-in ones, those added through `TabsVariants`, and those a registered theme defines. */
974
+ type TabsVariant = keyof TabsVariants | VariantOf<'Tabs'>;
975
+ /** The slots of Tabs a theme can style with `styleOverrides`. */
976
+ type TabsSlot = 'root' | 'list' | 'indicator' | 'startContent' | 'endContent' | 'scrollButton' | 'overflowButton' | 'overflowClose';
977
+ /** What `theme.components.Tabs` takes. */
978
+ type TabsThemeConfig = ComponentConfig<TabsOwnerState, TabsSlot>;
979
+ type TextInputColor = keyof Theme['palette'];
980
+ type TextInputTextColor = keyof Theme['text'];
981
+ type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
982
+ type TextInputSize = keyof Theme['sizes'];
983
+ interface TextInputClasses {
984
+ root?: string;
985
+ input?: string;
986
+ }
987
+ interface TextInputProps extends SpaceProps, Pick<LayoutProps, 'width' | 'minWidth' | 'maxWidth'> {
988
+ /** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
989
+ borderRadius?: keyof Theme['radii'];
990
+ autoComplete?: string;
991
+ autoFocus?: boolean;
992
+ /** Class names applied to inner elements. `root` targets the wrapper; `input` targets the native element. */
993
+ classes?: TextInputClasses;
994
+ /** Override components for the Root and Input slots. */
995
+ components?: {
996
+ Input?: ElementType;
997
+ Root?: ElementType;
998
+ };
999
+ /** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
1000
+ color?: TextInputColor;
1001
+ /** Text color of the typed value - resolves against `theme.text`. Default: the accent `color`'s `main`. */
1002
+ textColor?: TextInputTextColor;
1003
+ /** Disables the input. */
1004
+ disabled?: boolean;
1005
+ /** Marks the field as invalid - applies error border color. */
1006
+ error?: boolean;
1007
+ /** Stretches the root to fill its container. */
1008
+ fullWidth?: boolean;
1009
+ id?: string;
1010
+ /** Custom component for the input element. Takes priority over `components.Input`. Default: `'input'`. */
1011
+ inputComponent?: ElementType;
1012
+ /** Native HTML `size` attribute - visible width in character widths. Has no effect with `multiline` or `resize`. */
1013
+ inputSize?: number;
1014
+ /** Extra props spread onto the native element. Explicit top-level props take priority. */
1015
+ inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, 'style'> & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'style'>;
1016
+ /** Maximum rows before the auto-grow textarea starts scrolling. Only applies when `resize` is set. */
1017
+ maxRows?: number | string;
1018
+ /** Minimum rows for the auto-grow textarea. Only applies when `resize` is set. */
1019
+ minRows?: number | string;
1020
+ /**
1021
+ * Renders a `<textarea>` that grows with its content.
1022
+ * Combine with `rows` to fix the height instead of auto-growing.
1023
+ */
1024
+ multiline?: boolean;
1025
+ name?: string;
1026
+ onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
1027
+ placeholder?: string;
1028
+ readOnly?: boolean;
1029
+ required?: boolean;
1030
+ /** Auto-grows the textarea as content increases. Requires `multiline`. */
1031
+ resize?: boolean;
1032
+ /** Controls padding and font size. Default: 'md', overridable via `theme.defaults.size`. */
1033
+ size?: TextInputSize;
1034
+ /**
1035
+ * Fixes the textarea height to this many rows. Also enables `multiline`
1036
+ * when value is greater than 1. Disables resize.
1037
+ */
1038
+ rows?: number | string;
1039
+ /** HTML input type. Ignored when multiline. Default: `'text'`. */
1040
+ type?: string;
1041
+ /**
1042
+ * Visual style of the input.
1043
+ * - `outlined` / `default` - full border box (default)
1044
+ * - `underline` - border on bottom only
1045
+ * - `text` - no border, transparent background
1046
+ */
1047
+ variant?: TextInputVariant;
1048
+ value?: string | number | readonly string[];
1049
+ className?: string;
1050
+ /** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
1051
+ style?: StyleOverride;
1052
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
1053
+ slotProps?: SlotProps<TextInputSlot>;
1054
+ 'data-testid'?: string;
1055
+ }
1056
+ /** The resolved props TextInput's styled elements receive - what `ownerState` exposes. */
1057
+ type TextInputOwnerState = Record<string, unknown>;
1058
+ /** The slots of TextInput a theme can style with `styleOverrides`. */
1059
+ type TextInputSlot = 'root' | 'input';
1060
+ /** What `theme.components.TextInput` takes. */
1061
+ type TextInputThemeConfig = ComponentConfig<TextInputOwnerState, TextInputSlot>;
1062
+ /** The resolved props ToggleButton's styled elements receive - what `ownerState` exposes. */
1063
+ type ToggleButtonOwnerState = Record<string, unknown>;
1064
+ /** The slots of ToggleButton a theme can style with `styleOverrides`. */
1065
+ type ToggleButtonSlot = 'root';
1066
+ /** What `theme.components.ToggleButton` takes. */
1067
+ type ToggleButtonThemeConfig = ComponentConfig<ToggleButtonOwnerState, ToggleButtonSlot>;
1068
+ /** The resolved props ToggleButtonGroup's styled elements receive - what `ownerState` exposes. */
1069
+ type ToggleButtonGroupOwnerState = Record<string, unknown>;
1070
+ /** The slots of ToggleButtonGroup a theme can style with `styleOverrides`. */
1071
+ type ToggleButtonGroupSlot = 'root';
1072
+ /** What `theme.components.ToggleButtonGroup` takes. */
1073
+ type ToggleButtonGroupThemeConfig = ComponentConfig<ToggleButtonGroupOwnerState, ToggleButtonGroupSlot>;
1074
+ /** The defaults a theme may set for every `Tooltip`. */
1075
+ interface TooltipOwnerState {
1076
+ borderRadius?: keyof ThemeRadii;
1077
+ bg?: keyof ThemeBackground;
1078
+ textColor?: keyof ThemeText;
1079
+ placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'auto' | 'auto-start' | 'auto-end';
1080
+ hasArrow?: boolean;
1081
+ enterDelay?: number;
1082
+ leaveDelay?: number;
1083
+ enterTouchDelay?: number;
1084
+ leaveTouchDelay?: number;
1085
+ shouldDescribeChild?: boolean;
1086
+ isDescriptionPersistent?: boolean;
1087
+ isInteractive?: boolean;
1088
+ shouldWrapDisabledChild?: boolean;
1089
+ /**
1090
+ * Theme only. With a value above 0, every tooltip under the theme shares one delay window, as in a
1091
+ * `TooltipGroup` of that duration: no enter delay while another is open or within this many
1092
+ * milliseconds of the last close. A `TooltipGroup` around a tooltip wins.
1093
+ */
1094
+ skipDelayDuration?: number;
1095
+ shouldOpenOnHover?: boolean;
1096
+ shouldOpenOnFocus?: boolean;
1097
+ shouldOpenOnTouch?: boolean;
1098
+ layer?: keyof ThemeZOrder;
1099
+ }
1100
+ /** The slots of Tooltip a theme can style with `styleOverrides`. */
1101
+ type TooltipSlot = 'root' | 'arrow';
1102
+ /** What `theme.components.Tooltip` takes. */
1103
+ type TooltipThemeConfig = ComponentConfig<TooltipOwnerState, TooltipSlot>;
1104
+ /** The defaults a theme may set for every `TransferList` - its button labels give it a language. */
1105
+ interface TransferListOwnerState {
1106
+ size?: ThemeSize;
1107
+ color?: ThemeColor;
1108
+ shouldShowMoveAll?: boolean;
1109
+ hasSelectAll?: boolean;
1110
+ moveAllRightLabel?: string;
1111
+ moveRightLabel?: string;
1112
+ moveLeftLabel?: string;
1113
+ moveAllLeftLabel?: string;
1114
+ }
1115
+ /** The slots of TransferList a theme can style with `styleOverrides`. */
1116
+ type TransferListSlot = 'root' | 'list' | 'header' | 'title' | 'count' | 'items' | 'item' | 'controls' | 'icon';
1117
+ /** What `theme.components.TransferList` takes. */
1118
+ type TransferListThemeConfig = ComponentConfig<TransferListOwnerState, TransferListSlot>;
1119
+ type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
1120
+ /** Valid values for the color prop - derived from theme.text keys. */
1121
+ type TextColorToken = keyof Theme['text'];
1122
+ /** Valid values for the bg prop - derived from theme.background keys. */
1123
+ type BackgroundToken = keyof Theme['background'];
1124
+ interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps$1, FlexboxProps, BorderProps, PositionProps {
1125
+ /** Resolves against theme.text - inherit · initial · primary · secondary · error · success */
1126
+ color?: TextColorToken;
1127
+ /** Resolves against theme.background */
1128
+ bg?: BackgroundToken;
1129
+ /** Overrides the CSS of the element: an entry of `StyleSheet.create`, or a list of them. */
1130
+ style?: StyleOverride;
1131
+ /** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
1132
+ slotProps?: SlotProps<TypographySlot>;
1133
+ opacity?: number;
1134
+ textTransform?: CSSProperties['textTransform'];
1135
+ variant?: TypographyVariant;
1136
+ align?: TypographyAlign;
1137
+ gutterBottom?: boolean;
1138
+ noWrap?: boolean;
1139
+ /** Machine-readable timestamp - forwarded when rendering as `<time>` (`as="time"`). */
1140
+ dateTime?: string;
1141
+ as?: ElementType;
1142
+ }
1143
+ /** The resolved props Typography's styled elements receive - what `ownerState` exposes. */
1144
+ type TypographyOwnerState = Record<string, unknown>;
1145
+ /** The slots of Typography a theme can style with `styleOverrides`. */
1146
+ type TypographySlot = 'root';
1147
+ /** What `theme.components.Typography` takes. */
1148
+ type TypographyThemeConfig = ComponentConfig<TypographyOwnerState, TypographySlot>;
1149
+ /**
1150
+ * Per-component theme customization, keyed by component name: each key takes the component's
1151
+ * `<Name>ThemeConfig` - its owner state, its slots, its default props and variants. An app checks
1152
+ * its looks against it with `satisfies ThemeComponents`.
1153
+ */
1154
+ interface ThemeComponents {
1155
+ Accordion?: AccordionThemeConfig;
1156
+ AccordionActions?: AccordionActionsThemeConfig;
1157
+ AccordionDetails?: AccordionDetailsThemeConfig;
1158
+ AccordionGroup?: AccordionGroupThemeConfig;
1159
+ AccordionSummary?: AccordionSummaryThemeConfig;
1160
+ Alert?: AlertThemeConfig;
1161
+ AlertTitle?: AlertTitleThemeConfig;
1162
+ AppBar?: AppBarThemeConfig;
1163
+ Autocomplete?: AutocompleteThemeConfig;
1164
+ Avatar?: AvatarThemeConfig;
1165
+ Backdrop?: BackdropThemeConfig;
1166
+ Badge?: BadgeThemeConfig;
1167
+ Breadcrumbs?: BreadcrumbsThemeConfig;
1168
+ Button?: ButtonThemeConfig;
1169
+ ButtonGroup?: ButtonGroupThemeConfig;
1170
+ Card?: CardThemeConfig;
1171
+ Checkbox?: CheckboxThemeConfig;
1172
+ Chip?: ChipThemeConfig;
1173
+ CircularProgress?: CircularProgressThemeConfig;
1174
+ Collapse?: CollapseThemeConfig;
1175
+ ContextMenu?: ContextMenuThemeConfig;
1176
+ Drawer?: DrawerThemeConfig;
1177
+ Fab?: FabThemeConfig;
1178
+ FabMenu?: FabMenuThemeConfig;
1179
+ Flex?: FlexThemeConfig;
1180
+ FocusTrap?: FocusTrapThemeConfig;
1181
+ Form?: FormThemeConfig;
1182
+ FormControl?: FormControlThemeConfig;
1183
+ FormHelperText?: FormHelperTextThemeConfig;
1184
+ FormLabel?: FormLabelThemeConfig;
1185
+ Grid?: GridThemeConfig;
1186
+ Icon?: IconThemeConfig;
1187
+ Image?: ImageThemeConfig;
1188
+ LinearProgress?: LinearProgressThemeConfig;
1189
+ Link?: LinkThemeConfig;
1190
+ Menu?: MenuThemeConfig;
1191
+ MenuDivider?: MenuDividerThemeConfig;
1192
+ MenuItem?: MenuItemThemeConfig;
1193
+ MenuList?: MenuListThemeConfig;
1194
+ Modal?: ModalThemeConfig;
1195
+ NativeSelect?: NativeSelectThemeConfig;
1196
+ NavGroup?: NavGroupThemeConfig;
1197
+ NavLink?: NavLinkThemeConfig;
1198
+ NavTree?: NavTreeThemeConfig;
1199
+ NumberInput?: NumberInputThemeConfig;
1200
+ Pagination?: PaginationThemeConfig;
1201
+ PaginationItem?: PaginationItemThemeConfig;
1202
+ Paper?: PaperThemeConfig;
1203
+ Popover?: PopoverThemeConfig;
1204
+ Pressable?: PressableThemeConfig;
1205
+ Quote?: QuoteThemeConfig;
1206
+ Radio?: RadioThemeConfig;
1207
+ RangeInput?: RangeInputThemeConfig;
1208
+ Rating?: RatingThemeConfig;
1209
+ ScrollArea?: ScrollAreaThemeConfig;
1210
+ Select?: SelectThemeConfig;
1211
+ Sidebar?: SidebarThemeConfig;
1212
+ SidebarItem?: SidebarItemThemeConfig;
1213
+ Skeleton?: SkeletonThemeConfig;
1214
+ Snackbar?: SnackbarThemeConfig;
1215
+ Switch?: SwitchThemeConfig;
1216
+ Tab?: TabThemeConfig;
1217
+ TabPanel?: TabPanelThemeConfig;
1218
+ TabScrollButton?: TabScrollButtonThemeConfig;
1219
+ Table?: TableThemeConfig;
1220
+ TableBody?: TableBodyThemeConfig;
1221
+ TableCell?: TableCellThemeConfig;
1222
+ TableContainer?: TableContainerThemeConfig;
1223
+ TableFooter?: TableFooterThemeConfig;
1224
+ TableHead?: TableHeadThemeConfig;
1225
+ TablePagination?: TablePaginationThemeConfig;
1226
+ TablePaginationActions?: TablePaginationActionsThemeConfig;
1227
+ TableRow?: TableRowThemeConfig;
1228
+ TableSortLabel?: TableSortLabelThemeConfig;
1229
+ Tabs?: TabsThemeConfig;
1230
+ TextInput?: TextInputThemeConfig;
1231
+ ToggleButton?: ToggleButtonThemeConfig;
1232
+ ToggleButtonGroup?: ToggleButtonGroupThemeConfig;
1233
+ Tooltip?: TooltipThemeConfig;
1234
+ TransferList?: TransferListThemeConfig;
1235
+ Typography?: TypographyThemeConfig;
1236
+ View?: ViewThemeConfig;
1237
+ }
1238
+ /** Design-system's own style-object shape - the engine stays an internal implementation detail. */
1239
+ type CSSObject = CSSObject$1;
1240
+ /**
1241
+ * A style contributed from `theme.components` - a plain CSS object, or a
1242
+ * callback receiving the theme and the styled root's resolved props
1243
+ * (`ownerState`) for conditional styling.
1244
+ */
1245
+ type ComponentStyle<OwnerState> = CSSObject | ((args: {
1246
+ theme: Theme;
1247
+ ownerState: OwnerState;
1248
+ }) => CSSObject);
1249
+ /**
1250
+ * The owner-state fields whose types the registered themes widen: the colors, sizes, spacing keys
1251
+ * and looks they add.
1252
+ */
1253
+ type DerivedFields = 'color' | 'size' | 'variant' | 'mb' | 'marginThreshold';
1254
+ type OpenValue = '' | (string & {}) | number | boolean | null | object;
1255
+ /**
1256
+ * The owner state as the theme's own `components` are checked against it. Once themes are
1257
+ * registered, the derived fields are left open: a type that reads the registered themes cannot be
1258
+ * checked while those themes are being written (it would read itself). A misspelt value is checked
1259
+ * where it is used (a component's props), and in development by the validator `ThemeProvider` runs.
1260
+ * Every other field keeps its type.
1261
+ */
1262
+ type OwnerKeys<OwnerState> = keyof Register extends never ? Partial<OwnerState> : { [K in keyof OwnerState]?: K extends DerivedFields ? OpenValue : OwnerState[K]; };
1263
+ /** One theme-contributed variant: applied when every key in `props` matches the render props. */
1264
+ interface ComponentVariant<OwnerState> {
1265
+ props: OwnerKeys<OwnerState>;
1266
+ style: ComponentStyle<OwnerState>;
1267
+ }
1268
+ /** Per-component customization: default prop values, per-slot CSS, extra variants. */
1269
+ interface ComponentConfig<OwnerState = Record<string, unknown>, Slot extends string = 'root'> {
1270
+ /** Default prop values - explicit props and group context always win. */
1271
+ defaultProps?: OwnerKeys<OwnerState>;
1272
+ /** Per-slot CSS merged after the component's own styles (theme wins). */
1273
+ styleOverrides?: Partial<Record<Slot, ComponentStyle<OwnerState>>>;
1274
+ /** Extra variants matched by props. */
1275
+ variants?: ReadonlyArray<ComponentVariant<OwnerState>>;
1276
+ /** Type only, never set: names the owner state, for `useDefaultProps` to type what it hands back. */
1277
+ readonly $owner?: OwnerState;
1278
+ }
1279
+ /** The core's theme, with the typing of `theme.components` that the libraries and the app add. */
1280
+ interface Theme extends Theme$1 {
1281
+ /** Optional per-component customization - see `ThemeComponents`. */
1282
+ components?: OpenScale<ThemeComponents>;
1283
+ }
1284
+ /** This package's `Theme` under a name no other interface of the engine's modules has: the bridge extends the engine's `Theme` from it. */
1285
+ type GildTheme = Theme;
1286
+ /** The theme the app registered (see `Register` in the core), or this package's `Theme` when it registered none. */
1287
+ type AppTheme = RegisteredTheme<Theme>;
1288
+ /** The defaults a theme may set for every `Accordion`. */
1289
+ interface AccordionOwnerState {
1290
+ hasGutters?: boolean;
1291
+ borderRadius?: keyof ThemeRadii;
1292
+ bg?: keyof ThemeBackground;
1293
+ textColor?: keyof ThemeText;
1294
+ }
1295
+ /** The slots of Accordion a theme can style with `styleOverrides`. */
1296
+ type AccordionSlot = 'root' | 'region';
1297
+ /** What `theme.components.Accordion` takes. */
1298
+ type AccordionThemeConfig = ComponentConfig<AccordionOwnerState, AccordionSlot>;
1299
+ export { TablePaginationThemeConfig as $, ButtonShape as $i, LinearProgressThemeConfig as $n, StyleSheet as $r, RangeInputThemeConfig as $t, TextInputColor as A, AccordionSummarySlot as Aa, PaperThemeConfig as Ai, NativeSelectOwnerState as An, DrawerOwnerState as Ar, SnackbarOwnerState as At, TabsThemeConfig as B, AccordionActionsThemeConfig as Ba, CheckboxOwnerState as Bi, MenuListSlot as Bn, PaperElevation as Br, SidebarSlot as Bt, ToggleButtonGroupOwnerState as C, AlertTitleOwnerState as Ca, ViewColorToken as Ci, NavTreeThemeConfig as Cn, FocusTrapThemeConfig as Cr, TabPanelThemeConfig as Ct, ToggleButtonSlot as D, AlertSlot as Da, ViewThemeConfig as Di, NavGroupOwnerState as Dn, FabOwnerState as Dr, SwitchOwnerState as Dt, ToggleButtonOwnerState as E, AlertOwnerState as Ea, ViewSlot as Ei, NavLinkThemeConfig as En, FabMenuThemeConfig as Er, TabThemeConfig as Et, TextInputTextColor as F, AccordionDetailsOwnerState as Fa, CircularProgressSlot as Fi, ModalProps as Fn, ContextMenuThemeConfig as Fr, SkeletonThemeConfig as Ft, TableRowOwnerState as G, CardThemeConfig as Gi, MenuDividerOwnerState as Gn, FlexSlot as Gr, ScrollAreaOwnerState as Gt, TableSortLabelOwnerState as H, SlotProps as Ha, CheckboxThemeConfig as Hi, MenuItemOwnerState as Hn, Flex as Hr, SelectOwnerState as Ht, TextInputThemeConfig as I, AccordionDetailsSlot as Ia, CircularProgressThemeConfig as Ii, ModalScroll as In, MenuOwnerState as Ir, SidebarItemOwnerState as It, TablePaginationActionsOwnerState as J, ButtonGroupThemeConfig as Ji, LinkOwnerState as Jn, styled as Jr, RatingOwnerState as Jt, TableRowSlot as K, ButtonGroupOwnerState as Ki, MenuDividerSlot as Kn, FlexThemeConfig as Kr, ScrollAreaSlot as Kt, TextInputVariant as L, AccordionDetailsThemeConfig as La, ChipOwnerState as Li, ModalSlot as Ln, MenuSlot as Lr, SidebarItemSlot as Lt, TextInputProps as M, AccordionGroupOwnerState as Ma, CollapseSlot as Mi, NativeSelectThemeConfig as Mn, DrawerThemeConfig as Mr, SnackbarThemeConfig as Mt, TextInputSize as N, AccordionGroupSlot as Na, CollapseThemeConfig as Ni, ModalCloseReason as Nn, ContextMenuOwnerState as Nr, SkeletonOwnerState as Nt, ToggleButtonThemeConfig as O, AlertThemeConfig as Oa, PaperOwnerState as Oi, NavGroupSlot as On, FabSlot as Or, SwitchSlot as Ot, TextInputSlot as P, AccordionGroupThemeConfig as Pa, CircularProgressOwnerState as Pi, ModalOwnerState as Pn, ContextMenuSlot as Pr, SkeletonSlot as Pt, TablePaginationSlot as Q, ButtonProps as Qi, LinearProgressSlot as Qn, LiveValue as Qr, RangeInputSlot as Qt, TabsOwnerState as R, AccordionActionsOwnerState as Ra, ChipSlot as Ri, ModalThemeConfig as Rn, MenuThemeConfig as Rr, SidebarItemThemeConfig as Rt, TooltipThemeConfig as S, AppBarThemeConfig as Sa, ViewBorderWidthToken as Si, NavTreeSlot as Sn, FocusTrapSlot as Sr, TabPanelSlot as St, ToggleButtonGroupThemeConfig as T, AlertTitleThemeConfig as Ta, ViewProps as Ti, NavLinkSlot as Tn, FabMenuSlot as Tr, TabSlot as Tt, TableSortLabelSlot as U, StrictStyled as Ua, CardOwnerState as Ui, MenuItemSlot as Un, FlexOwnerState as Ur, SelectSlot as Ut, TabsVariant as V, SlotOverride as Va, CheckboxSlot as Vi, MenuListThemeConfig as Vn, PaperProps as Vr, SidebarThemeConfig as Vt, TableSortLabelThemeConfig as W, StyleOverride as Wa, CardSlot as Wi, MenuItemThemeConfig as Wn, FlexProps as Wr, SelectThemeConfig as Wt, TablePaginationActionsThemeConfig as X, ButtonLoadingPosition as Xi, LinkThemeConfig as Xn, useDefaultProps as Xr, RatingThemeConfig as Xt, TablePaginationActionsSlot as Y, ButtonColor as Yi, LinkSlot as Yn, useMediaQuery as Yr, RatingSlot as Yt, TablePaginationOwnerState as Z, ButtonOwnerState as Zi, LinearProgressOwnerState as Zn, Global as Zr, RangeInputOwnerState as Zt, TransferListOwnerState as _, AutocompleteOwnerState as _a, Exact as _i, PaginationThemeConfig as _n, FormControlThemeConfig as _r, TableThemeConfig as _t, CSSObject as a, BreadcrumbsOwnerState as aa, fallback as ai, QuoteThemeConfig as an, IconThemeConfig as ar, TableFooterThemeConfig as at, TooltipOwnerState as b, AppBarOwnerState as ba, ViewBorderColorToken as bi, NumberInputThemeConfig as bn, FormThemeConfig as br, TabScrollButtonThemeConfig as bt, ThemeComponents as c, BadgeOwnerState as ca, setNonceSource as ci, PressableThemeConfig as cn, GridThemeConfig as cr, TableContainerThemeConfig as ct, TypographyAlign as d, BackdropOwnerState as da, useTheme as di, PopoverThemeConfig as dn, FormLabelThemeConfig as dr, TableCellThemeConfig as dt, ButtonSize as ea, alpha as ei, RadioOwnerState as en, ImageOwnerState as er, TableHeadOwnerState as et, TypographyOwnerState as f, BackdropSlot as fa, val as fi, PaginationItemOwnerState as fn, FormHelperTextOwnerState as fr, TableBodyOwnerState as ft, TypographyVariant as g, AvatarThemeConfig as ga, ThemeProvider$1 as gi, PaginationSlot as gn, FormControlSlot as gr, TableSlot as gt, TypographyThemeConfig as h, AvatarSlot as ha, withTheme as hi, PaginationOwnerState as hn, FormControlOwnerState as hr, TableOwnerState as ht, AppTheme as i, GapToken$1 as ia, defineTheme as ii, QuoteSlot as in, IconSlot as ir, TableFooterSlot as it, TextInputOwnerState as j, AccordionSummaryThemeConfig as ja, CollapseOwnerState as ji, NativeSelectSlot as jn, DrawerSlot as jr, SnackbarSlot as jt, TextInputClasses as k, AccordionSummaryOwnerState as ka, PaperSlot as ki, NavGroupThemeConfig as kn, FabThemeConfig as kr, SwitchThemeConfig as kt, BackgroundToken as l, BadgeSlot as la, useStyle as li, PopoverOwnerState as ln, FormLabelOwnerState as lr, TableCellOwnerState as lt, TypographySlot as m, AvatarOwnerState as ma, withStyle as mi, PaginationItemThemeConfig as mn, FormHelperTextThemeConfig as mr, TableBodyThemeConfig as mt, AccordionSlot as n, ButtonThemeConfig as na, configureEngine as ni, RadioThemeConfig as nn, ImageThemeConfig as nr, TableHeadThemeConfig as nt, ComponentConfig as o, BreadcrumbsSlot as oa, keyframes as oi, PressableOwnerState as on, GridOwnerState as or, TableContainerOwnerState as ot, TypographyProps as p, BackdropThemeConfig as pa, variable as pi, PaginationItemSlot as pn, FormHelperTextSlot as pr, TableBodySlot as pt, TableRowThemeConfig as q, ButtonGroupSlot as qi, MenuDividerThemeConfig as qn, GapToken as qr, ScrollAreaThemeConfig as qt, AccordionThemeConfig as r, ButtonVariant as ra, css as ri, QuoteOwnerState as rn, IconOwnerState as rr, TableFooterOwnerState as rt, Theme as s, BreadcrumbsThemeConfig as sa, negate as si, PressableSlot as sn, GridSlot as sr, TableContainerSlot as st, AccordionOwnerState as t, ButtonSlot as ta, asIs as ti, RadioSlot as tn, ImageSlot as tr, TableHeadSlot as tt, TextColorToken as u, BadgeThemeConfig as ua, useStyleValue as ui, PopoverSlot as un, FormLabelSlot as ur, TableCellSlot as ut, TransferListSlot as v, AutocompleteSlot as va, View as vi, NumberInputOwnerState as vn, FormOwnerState as vr, TabScrollButtonOwnerState as vt, ToggleButtonGroupSlot as w, AlertTitleSlot as wa, ViewOwnerState as wi, NavLinkOwnerState as wn, FabMenuOwnerState as wr, TabOwnerState as wt, TooltipSlot as x, AppBarSlot as xa, ViewBorderRadiusToken as xi, NavTreeOwnerState as xn, FocusTrapOwnerState as xr, TabPanelOwnerState as xt, TransferListThemeConfig as y, AutocompleteThemeConfig as ya, ViewBackgroundToken as yi, NumberInputSlot as yn, FormSlot as yr, TabScrollButtonSlot as yt, TabsSlot as z, AccordionActionsSlot as za, ChipThemeConfig as zi, MenuListOwnerState as zn, Paper as zr, SidebarOwnerState as zt };