@accelint/design-system 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/dist/chunk-4CPMP3H7.js +418 -0
  2. package/dist/chunk-4CPMP3H7.js.map +1 -0
  3. package/dist/{styles.css → index.css} +1163 -1057
  4. package/dist/index.css.map +1 -0
  5. package/dist/index.d.ts +871 -8
  6. package/dist/index.js +5278 -66
  7. package/dist/index.js.map +1 -1
  8. package/dist/vanilla-DUNpoS8t.d.ts +2514 -0
  9. package/dist/vanilla.d.ts +9 -30
  10. package/dist/vanilla.js +3 -27
  11. package/dist/vanilla.js.map +1 -0
  12. package/package.json +10 -13
  13. package/dist/assets/components/button/button.css +0 -55
  14. package/dist/assets/components/checkbox/checkbox.css +0 -73
  15. package/dist/assets/components/chip/chip.css +0 -62
  16. package/dist/assets/components/combo-box/combo-box.css +0 -66
  17. package/dist/assets/components/dialog/dialog.css +0 -51
  18. package/dist/assets/components/drawer/drawer.css +0 -135
  19. package/dist/assets/components/group/group.css +0 -33
  20. package/dist/assets/components/icon/icon.css +0 -19
  21. package/dist/assets/components/input/input.css +0 -29
  22. package/dist/assets/components/menu/menu.css +0 -85
  23. package/dist/assets/components/options/options.css +0 -82
  24. package/dist/assets/components/picker/picker.css +0 -47
  25. package/dist/assets/components/popover/popover.css +0 -26
  26. package/dist/assets/components/query-builder/query-builder.css +0 -129
  27. package/dist/assets/components/radio/radio.css +0 -67
  28. package/dist/assets/components/search-field/search-field.css +0 -62
  29. package/dist/assets/components/select/select.css +0 -33
  30. package/dist/assets/components/switch/switch.css +0 -62
  31. package/dist/assets/components/tabs/tabs.css +0 -144
  32. package/dist/assets/components/textarea/textarea.css +0 -32
  33. package/dist/assets/components/tooltip/tooltip.css +0 -54
  34. package/dist/assets/components/tree/tree.css +0 -157
  35. package/dist/assets/hooks/use-theme/use-theme.css +0 -6
  36. package/dist/assets/src/components/button/button.css.ts.vanilla-9uttMYGm.css +0 -55
  37. package/dist/assets/src/components/checkbox/checkbox.css.ts.vanilla-Bewmypyn.css +0 -73
  38. package/dist/assets/src/components/chip/chip.css.ts.vanilla-CsGhxrlu.css +0 -62
  39. package/dist/assets/src/components/combo-box/combo-box.css.ts.vanilla-BNEPKjPm.css +0 -66
  40. package/dist/assets/src/components/dialog/dialog.css.ts.vanilla-CG0m-NJD.css +0 -51
  41. package/dist/assets/src/components/drawer/drawer.css.ts.vanilla-DEfHnoNS.css +0 -135
  42. package/dist/assets/src/components/group/group.css.ts.vanilla-DR69xgQy.css +0 -33
  43. package/dist/assets/src/components/icon/icon.css.ts.vanilla-CoUAfp2F.css +0 -19
  44. package/dist/assets/src/components/input/input.css.ts.vanilla-DoK5h9SX.css +0 -29
  45. package/dist/assets/src/components/menu/menu.css.ts.vanilla-LoWLg-jE.css +0 -85
  46. package/dist/assets/src/components/options/options.css.ts.vanilla-CWWFBTou.css +0 -82
  47. package/dist/assets/src/components/picker/picker.css.ts.vanilla-Fe0YXv-c.css +0 -47
  48. package/dist/assets/src/components/popover/popover.css.ts.vanilla-C5YGwwVD.css +0 -26
  49. package/dist/assets/src/components/query-builder/query-builder.css.ts.vanilla-B3P9cbCv.css +0 -129
  50. package/dist/assets/src/components/radio/radio.css.ts.vanilla-gi-KedQc.css +0 -67
  51. package/dist/assets/src/components/search-field/search-field.css.ts.vanilla-B_JL53f8.css +0 -62
  52. package/dist/assets/src/components/select/select.css.ts.vanilla-C94A60jf.css +0 -33
  53. package/dist/assets/src/components/switch/switch.css.ts.vanilla-DkQwtRa6.css +0 -62
  54. package/dist/assets/src/components/tabs/tabs.css.ts.vanilla-BygIflpl.css +0 -144
  55. package/dist/assets/src/components/textarea/textarea.css.ts.vanilla-Ba6E5HFc.css +0 -32
  56. package/dist/assets/src/components/tooltip/tooltip.css.ts.vanilla-BntxAlwN.css +0 -54
  57. package/dist/assets/src/components/tree/tree.css.ts.vanilla-SLmhk0zZ.css +0 -157
  58. package/dist/assets/src/hooks/use-theme/use-theme.css.ts.vanilla-zkVHnGkP.css +0 -6
  59. package/dist/assets/src/styles/layers.css.ts.vanilla-B2GUgnOF.css +0 -21
  60. package/dist/assets/src/styles/reset.css.ts.vanilla-C8PShXm0.css +0 -31
  61. package/dist/assets/src/styles/space.css.ts.vanilla-Md6Whc4G.css +0 -18
  62. package/dist/assets/src/styles/surfaces.css.ts.vanilla-Ckztx7VT.css +0 -24
  63. package/dist/assets/src/styles/theme.css.ts.vanilla-aDPSIzBK.css +0 -208
  64. package/dist/assets/src/styles/typography.css.ts.vanilla-DRT9H7rd.css +0 -150
  65. package/dist/assets/styles/layers.css +0 -21
  66. package/dist/assets/styles/reset.css +0 -31
  67. package/dist/assets/styles/space.css +0 -18
  68. package/dist/assets/styles/surfaces.css +0 -24
  69. package/dist/assets/styles/theme.css +0 -208
  70. package/dist/assets/styles/typography.css +0 -150
  71. package/dist/components/aria/aria.d.ts +0 -19
  72. package/dist/components/aria/aria.js +0 -36
  73. package/dist/components/aria/aria.js.map +0 -1
  74. package/dist/components/aria/index.d.ts +0 -1
  75. package/dist/components/button/button.css.d.ts +0 -33
  76. package/dist/components/button/button.d.ts +0 -39
  77. package/dist/components/button/button.js +0 -71
  78. package/dist/components/button/button.js.map +0 -1
  79. package/dist/components/button/button.vanilla.js +0 -8
  80. package/dist/components/button/button.vanilla.js.map +0 -1
  81. package/dist/components/button/index.d.ts +0 -3
  82. package/dist/components/button/types.d.ts +0 -28
  83. package/dist/components/checkbox/checkbox.css.d.ts +0 -35
  84. package/dist/components/checkbox/checkbox.d.ts +0 -21
  85. package/dist/components/checkbox/checkbox.js +0 -68
  86. package/dist/components/checkbox/checkbox.js.map +0 -1
  87. package/dist/components/checkbox/checkbox.vanilla.js +0 -9
  88. package/dist/components/checkbox/checkbox.vanilla.js.map +0 -1
  89. package/dist/components/checkbox/index.d.ts +0 -3
  90. package/dist/components/checkbox/types.d.ts +0 -38
  91. package/dist/components/chip/chip.css.d.ts +0 -31
  92. package/dist/components/chip/chip.d.ts +0 -30
  93. package/dist/components/chip/chip.js +0 -106
  94. package/dist/components/chip/chip.js.map +0 -1
  95. package/dist/components/chip/chip.vanilla.js +0 -8
  96. package/dist/components/chip/chip.vanilla.js.map +0 -1
  97. package/dist/components/chip/index.d.ts +0 -3
  98. package/dist/components/chip/types.d.ts +0 -31
  99. package/dist/components/collection/collection.d.ts +0 -13
  100. package/dist/components/collection/collection.js +0 -15
  101. package/dist/components/collection/collection.js.map +0 -1
  102. package/dist/components/collection/index.d.ts +0 -1
  103. package/dist/components/combo-box/combo-box.css.d.ts +0 -22
  104. package/dist/components/combo-box/combo-box.d.ts +0 -8
  105. package/dist/components/combo-box/combo-box.js +0 -87
  106. package/dist/components/combo-box/combo-box.js.map +0 -1
  107. package/dist/components/combo-box/combo-box.vanilla.js +0 -8
  108. package/dist/components/combo-box/combo-box.vanilla.js.map +0 -1
  109. package/dist/components/combo-box/index.d.ts +0 -3
  110. package/dist/components/combo-box/types.d.ts +0 -32
  111. package/dist/components/dialog/dialog.css.d.ts +0 -34
  112. package/dist/components/dialog/dialog.d.ts +0 -18
  113. package/dist/components/dialog/dialog.js +0 -146
  114. package/dist/components/dialog/dialog.js.map +0 -1
  115. package/dist/components/dialog/dialog.vanilla.js +0 -8
  116. package/dist/components/dialog/dialog.vanilla.js.map +0 -1
  117. package/dist/components/dialog/index.d.ts +0 -3
  118. package/dist/components/dialog/types.d.ts +0 -48
  119. package/dist/components/drawer/drawer.css.d.ts +0 -33
  120. package/dist/components/drawer/drawer.d.ts +0 -13
  121. package/dist/components/drawer/drawer.js +0 -199
  122. package/dist/components/drawer/drawer.js.map +0 -1
  123. package/dist/components/drawer/drawer.vanilla.js +0 -10
  124. package/dist/components/drawer/drawer.vanilla.js.map +0 -1
  125. package/dist/components/drawer/index.d.ts +0 -3
  126. package/dist/components/drawer/types.d.ts +0 -71
  127. package/dist/components/element/element.d.ts +0 -11
  128. package/dist/components/element/element.js +0 -21
  129. package/dist/components/element/element.js.map +0 -1
  130. package/dist/components/element/index.d.ts +0 -2
  131. package/dist/components/element/types.d.ts +0 -21
  132. package/dist/components/group/group.css.d.ts +0 -14
  133. package/dist/components/group/group.d.ts +0 -10
  134. package/dist/components/group/group.js +0 -44
  135. package/dist/components/group/group.js.map +0 -1
  136. package/dist/components/group/group.vanilla.js +0 -7
  137. package/dist/components/group/group.vanilla.js.map +0 -1
  138. package/dist/components/group/index.d.ts +0 -3
  139. package/dist/components/group/types.d.ts +0 -35
  140. package/dist/components/icon/icon.css.d.ts +0 -18
  141. package/dist/components/icon/icon.d.ts +0 -12
  142. package/dist/components/icon/icon.js +0 -26
  143. package/dist/components/icon/icon.js.map +0 -1
  144. package/dist/components/icon/icon.vanilla.js +0 -8
  145. package/dist/components/icon/icon.vanilla.js.map +0 -1
  146. package/dist/components/icon/index.d.ts +0 -3
  147. package/dist/components/icon/types.d.ts +0 -13
  148. package/dist/components/index.d.ts +0 -26
  149. package/dist/components/input/index.d.ts +0 -3
  150. package/dist/components/input/input.css.d.ts +0 -29
  151. package/dist/components/input/input.d.ts +0 -8
  152. package/dist/components/input/input.js +0 -93
  153. package/dist/components/input/input.js.map +0 -1
  154. package/dist/components/input/input.vanilla.js +0 -8
  155. package/dist/components/input/input.vanilla.js.map +0 -1
  156. package/dist/components/input/types.d.ts +0 -44
  157. package/dist/components/menu/index.d.ts +0 -3
  158. package/dist/components/menu/menu.css.d.ts +0 -75
  159. package/dist/components/menu/menu.d.ts +0 -24
  160. package/dist/components/menu/menu.js +0 -155
  161. package/dist/components/menu/menu.js.map +0 -1
  162. package/dist/components/menu/menu.vanilla.js +0 -8
  163. package/dist/components/menu/menu.vanilla.js.map +0 -1
  164. package/dist/components/menu/types.d.ts +0 -48
  165. package/dist/components/merge-provider/index.d.ts +0 -2
  166. package/dist/components/merge-provider/merge-provider.d.ts +0 -14
  167. package/dist/components/merge-provider/merge-provider.js +0 -40
  168. package/dist/components/merge-provider/merge-provider.js.map +0 -1
  169. package/dist/components/merge-provider/types.d.ts +0 -5
  170. package/dist/components/options/index.d.ts +0 -3
  171. package/dist/components/options/options.css.d.ts +0 -79
  172. package/dist/components/options/options.d.ts +0 -20
  173. package/dist/components/options/options.js +0 -152
  174. package/dist/components/options/options.js.map +0 -1
  175. package/dist/components/options/options.vanilla.js +0 -10
  176. package/dist/components/options/options.vanilla.js.map +0 -1
  177. package/dist/components/options/types.d.ts +0 -49
  178. package/dist/components/picker/index.d.ts +0 -3
  179. package/dist/components/picker/picker.css.d.ts +0 -32
  180. package/dist/components/picker/picker.d.ts +0 -18
  181. package/dist/components/picker/picker.js +0 -46
  182. package/dist/components/picker/picker.js.map +0 -1
  183. package/dist/components/picker/picker.stories.css.d.ts +0 -3
  184. package/dist/components/picker/picker.vanilla.js +0 -9
  185. package/dist/components/picker/picker.vanilla.js.map +0 -1
  186. package/dist/components/picker/types.d.ts +0 -28
  187. package/dist/components/popover/index.d.ts +0 -3
  188. package/dist/components/popover/popover.css.d.ts +0 -31
  189. package/dist/components/popover/popover.d.ts +0 -8
  190. package/dist/components/popover/popover.js +0 -110
  191. package/dist/components/popover/popover.js.map +0 -1
  192. package/dist/components/popover/popover.vanilla.js +0 -7
  193. package/dist/components/popover/popover.vanilla.js.map +0 -1
  194. package/dist/components/popover/types.d.ts +0 -32
  195. package/dist/components/query-builder/action-element.d.ts +0 -2
  196. package/dist/components/query-builder/action-element.js +0 -12
  197. package/dist/components/query-builder/action-element.js.map +0 -1
  198. package/dist/components/query-builder/constants.d.ts +0 -4
  199. package/dist/components/query-builder/constants.js +0 -20
  200. package/dist/components/query-builder/constants.js.map +0 -1
  201. package/dist/components/query-builder/dataset-sample.d.ts +0 -91
  202. package/dist/components/query-builder/group.d.ts +0 -5
  203. package/dist/components/query-builder/group.js +0 -87
  204. package/dist/components/query-builder/group.js.map +0 -1
  205. package/dist/components/query-builder/index.d.ts +0 -5
  206. package/dist/components/query-builder/query-builder.css.d.ts +0 -91
  207. package/dist/components/query-builder/query-builder.d.ts +0 -2
  208. package/dist/components/query-builder/query-builder.js +0 -129
  209. package/dist/components/query-builder/query-builder.js.map +0 -1
  210. package/dist/components/query-builder/query-builder.vanilla.js +0 -10
  211. package/dist/components/query-builder/query-builder.vanilla.js.map +0 -1
  212. package/dist/components/query-builder/rule.d.ts +0 -3
  213. package/dist/components/query-builder/rule.js +0 -112
  214. package/dist/components/query-builder/rule.js.map +0 -1
  215. package/dist/components/query-builder/types.d.ts +0 -128
  216. package/dist/components/query-builder/utils.d.ts +0 -29
  217. package/dist/components/query-builder/utils.js +0 -22
  218. package/dist/components/query-builder/utils.js.map +0 -1
  219. package/dist/components/query-builder/value-editor.d.ts +0 -4
  220. package/dist/components/query-builder/value-editor.js +0 -74
  221. package/dist/components/query-builder/value-editor.js.map +0 -1
  222. package/dist/components/query-builder/value-selector.d.ts +0 -2
  223. package/dist/components/query-builder/value-selector.js +0 -28
  224. package/dist/components/query-builder/value-selector.js.map +0 -1
  225. package/dist/components/radio/index.d.ts +0 -3
  226. package/dist/components/radio/radio.css.d.ts +0 -34
  227. package/dist/components/radio/radio.d.ts +0 -16
  228. package/dist/components/radio/radio.js +0 -63
  229. package/dist/components/radio/radio.js.map +0 -1
  230. package/dist/components/radio/radio.vanilla.js +0 -8
  231. package/dist/components/radio/radio.vanilla.js.map +0 -1
  232. package/dist/components/radio/types.d.ts +0 -29
  233. package/dist/components/search-field/index.d.ts +0 -3
  234. package/dist/components/search-field/search-field.css.d.ts +0 -16
  235. package/dist/components/search-field/search-field.d.ts +0 -9
  236. package/dist/components/search-field/search-field.js +0 -60
  237. package/dist/components/search-field/search-field.js.map +0 -1
  238. package/dist/components/search-field/search-field.vanilla.js +0 -7
  239. package/dist/components/search-field/search-field.vanilla.js.map +0 -1
  240. package/dist/components/search-field/types.d.ts +0 -29
  241. package/dist/components/select/index.d.ts +0 -3
  242. package/dist/components/select/select.css.d.ts +0 -25
  243. package/dist/components/select/select.d.ts +0 -8
  244. package/dist/components/select/select.js +0 -80
  245. package/dist/components/select/select.js.map +0 -1
  246. package/dist/components/select/select.vanilla.js +0 -8
  247. package/dist/components/select/select.vanilla.js.map +0 -1
  248. package/dist/components/select/types.d.ts +0 -30
  249. package/dist/components/switch/index.d.ts +0 -3
  250. package/dist/components/switch/switch.css.d.ts +0 -25
  251. package/dist/components/switch/switch.d.ts +0 -4
  252. package/dist/components/switch/switch.js +0 -34
  253. package/dist/components/switch/switch.js.map +0 -1
  254. package/dist/components/switch/switch.vanilla.js +0 -8
  255. package/dist/components/switch/switch.vanilla.js.map +0 -1
  256. package/dist/components/switch/types.d.ts +0 -17
  257. package/dist/components/tabs/index.d.ts +0 -3
  258. package/dist/components/tabs/tabs.css.d.ts +0 -49
  259. package/dist/components/tabs/tabs.d.ts +0 -68
  260. package/dist/components/tabs/tabs.js +0 -108
  261. package/dist/components/tabs/tabs.js.map +0 -1
  262. package/dist/components/tabs/tabs.vanilla.js +0 -11
  263. package/dist/components/tabs/tabs.vanilla.js.map +0 -1
  264. package/dist/components/tabs/types.d.ts +0 -82
  265. package/dist/components/textarea/index.d.ts +0 -3
  266. package/dist/components/textarea/textarea.css.d.ts +0 -31
  267. package/dist/components/textarea/textarea.d.ts +0 -14
  268. package/dist/components/textarea/textarea.js +0 -86
  269. package/dist/components/textarea/textarea.js.map +0 -1
  270. package/dist/components/textarea/textarea.vanilla.js +0 -8
  271. package/dist/components/textarea/textarea.vanilla.js.map +0 -1
  272. package/dist/components/textarea/types.d.ts +0 -39
  273. package/dist/components/tooltip/index.d.ts +0 -3
  274. package/dist/components/tooltip/tooltip.css.d.ts +0 -23
  275. package/dist/components/tooltip/tooltip.d.ts +0 -23
  276. package/dist/components/tooltip/tooltip.js +0 -69
  277. package/dist/components/tooltip/tooltip.js.map +0 -1
  278. package/dist/components/tooltip/tooltip.vanilla.js +0 -8
  279. package/dist/components/tooltip/tooltip.vanilla.js.map +0 -1
  280. package/dist/components/tooltip/types.d.ts +0 -39
  281. package/dist/components/tree/index.d.ts +0 -3
  282. package/dist/components/tree/tree.css.d.ts +0 -73
  283. package/dist/components/tree/tree.d.ts +0 -5
  284. package/dist/components/tree/tree.js +0 -337
  285. package/dist/components/tree/tree.js.map +0 -1
  286. package/dist/components/tree/tree.vanilla.js +0 -11
  287. package/dist/components/tree/tree.vanilla.js.map +0 -1
  288. package/dist/components/tree/types.d.ts +0 -114
  289. package/dist/components/tree/utils.d.ts +0 -8
  290. package/dist/components/tree/utils.js +0 -75
  291. package/dist/components/tree/utils.js.map +0 -1
  292. package/dist/hooks/index.d.ts +0 -8
  293. package/dist/hooks/use-collection-render/index.d.ts +0 -1
  294. package/dist/hooks/use-collection-render/use-collection-render.d.ts +0 -9
  295. package/dist/hooks/use-collection-render/use-collection-render.js +0 -20
  296. package/dist/hooks/use-collection-render/use-collection-render.js.map +0 -1
  297. package/dist/hooks/use-context-props/index.d.ts +0 -1
  298. package/dist/hooks/use-context-props/use-context-props.d.ts +0 -7
  299. package/dist/hooks/use-context-props/use-context-props.js +0 -15
  300. package/dist/hooks/use-context-props/use-context-props.js.map +0 -1
  301. package/dist/hooks/use-defaults/index.d.ts +0 -2
  302. package/dist/hooks/use-defaults/types.d.ts +0 -67
  303. package/dist/hooks/use-defaults/use-defaults.d.ts +0 -56
  304. package/dist/hooks/use-defaults/use-defaults.js +0 -21
  305. package/dist/hooks/use-defaults/use-defaults.js.map +0 -1
  306. package/dist/hooks/use-propagating-press/index.d.ts +0 -1
  307. package/dist/hooks/use-propagating-press/use-propagating-press.d.ts +0 -9
  308. package/dist/hooks/use-propagating-press/use-propagating-press.js +0 -14
  309. package/dist/hooks/use-propagating-press/use-propagating-press.js.map +0 -1
  310. package/dist/hooks/use-slot/index.d.ts +0 -1
  311. package/dist/hooks/use-slot/use-slot.d.ts +0 -13
  312. package/dist/hooks/use-slot/use-slot.js +0 -18
  313. package/dist/hooks/use-slot/use-slot.js.map +0 -1
  314. package/dist/hooks/use-theme/index.d.ts +0 -2
  315. package/dist/hooks/use-theme/types.d.ts +0 -86
  316. package/dist/hooks/use-theme/use-theme.css.d.ts +0 -1
  317. package/dist/hooks/use-theme/use-theme.d.ts +0 -13
  318. package/dist/hooks/use-theme/use-theme.js +0 -64
  319. package/dist/hooks/use-theme/use-theme.js.map +0 -1
  320. package/dist/hooks/use-theme/use-theme.vanilla.js +0 -4
  321. package/dist/hooks/use-theme/use-theme.vanilla.js.map +0 -1
  322. package/dist/hooks/use-tree/index.d.ts +0 -1
  323. package/dist/hooks/use-tree/use-tree.d.ts +0 -2
  324. package/dist/hooks/use-tree/use-tree.js +0 -217
  325. package/dist/hooks/use-tree/use-tree.js.map +0 -1
  326. package/dist/hooks/use-tree/utils.d.ts +0 -6
  327. package/dist/hooks/use-tree/utils.js +0 -77
  328. package/dist/hooks/use-tree/utils.js.map +0 -1
  329. package/dist/hooks/use-update-effect/index.d.ts +0 -1
  330. package/dist/hooks/use-update-effect/use-update-effect.d.ts +0 -1
  331. package/dist/hooks/use-update-effect/use-update-effect.js +0 -20
  332. package/dist/hooks/use-update-effect/use-update-effect.js.map +0 -1
  333. package/dist/ladle/actions.d.ts +0 -1
  334. package/dist/ladle/index.d.ts +0 -1
  335. package/dist/styles/index.d.ts +0 -6
  336. package/dist/styles/layers.css.d.ts +0 -16
  337. package/dist/styles/layers.vanilla.js +0 -4
  338. package/dist/styles/layers.vanilla.js.map +0 -1
  339. package/dist/styles/reset.css.d.ts +0 -1
  340. package/dist/styles/space.css.d.ts +0 -1
  341. package/dist/styles/surfaces.css.d.ts +0 -4
  342. package/dist/styles/surfaces.vanilla.js +0 -4
  343. package/dist/styles/surfaces.vanilla.js.map +0 -1
  344. package/dist/styles/theme.css.d.ts +0 -334
  345. package/dist/styles/theme.vanilla.js +0 -31
  346. package/dist/styles/theme.vanilla.js.map +0 -1
  347. package/dist/styles/typography.css.d.ts +0 -17
  348. package/dist/styles/typography.vanilla.js +0 -8
  349. package/dist/styles/typography.vanilla.js.map +0 -1
  350. package/dist/test/setup.d.ts +0 -1
  351. package/dist/types/deckgl.d.ts +0 -1
  352. package/dist/types/generic.d.ts +0 -3
  353. package/dist/types/index.d.ts +0 -6
  354. package/dist/types/props.d.ts +0 -4
  355. package/dist/types/react-aria.d.ts +0 -91
  356. package/dist/types/use-tree.d.ts +0 -52
  357. package/dist/types/vanilla-extract.d.ts +0 -15
  358. package/dist/utils/css.d.ts +0 -139
  359. package/dist/utils/css.js +0 -145
  360. package/dist/utils/css.js.map +0 -1
  361. package/dist/utils/events.d.ts +0 -10
  362. package/dist/utils/events.js +0 -5
  363. package/dist/utils/events.js.map +0 -1
  364. package/dist/utils/index.d.ts +0 -4
  365. package/dist/utils/props.d.ts +0 -29
  366. package/dist/utils/props.js +0 -108
  367. package/dist/utils/props.js.map +0 -1
  368. package/dist/utils/validators.d.ts +0 -49
  369. package/dist/utils/validators.js +0 -37
  370. package/dist/utils/validators.js.map +0 -1
@@ -0,0 +1,2514 @@
1
+ import { SlotProps, ButtonRenderProps as ButtonRenderProps$1, LinkRenderProps, ToggleButtonRenderProps, ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, LinkProps, CheckboxRenderProps as CheckboxRenderProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupRenderProps as CheckboxGroupRenderProps$1, CheckboxGroupProps as CheckboxGroupProps$1, TagRenderProps, TagProps, TagListProps, TagGroupProps, InputRenderProps as InputRenderProps$1, InputProps as InputProps$1, PopoverProps as PopoverProps$1, ListBoxProps, ListBoxItemProps, PopoverRenderProps as PopoverRenderProps$1, ListBoxRenderProps, ListBoxItemRenderProps, ComboBoxRenderProps as ComboBoxRenderProps$1, ComboBoxProps as ComboBoxProps$1, ContextValue, HeadingProps, ModalRenderProps, ModalOverlayProps, DialogProps as DialogProps$1, TabRenderProps as TabRenderProps$1, TabPanelRenderProps as TabPanelRenderProps$1, TabPanelProps as TabPanelProps$1, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuItemRenderProps as MenuItemRenderProps$1, NumberFieldProps as NumberFieldProps$1, NumberFieldRenderProps as NumberFieldRenderProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, RadioGroupRenderProps as RadioGroupRenderProps$1, RadioRenderProps as RadioRenderProps$1, SelectRenderProps as SelectRenderProps$1, SelectProps as SelectProps$1, SwitchRenderProps as SwitchRenderProps$1, SwitchProps as SwitchProps$1, TextAreaProps as TextAreaProps$1, SearchFieldRenderProps as SearchFieldRenderProps$1, SearchFieldProps as SearchFieldProps$1, TextFieldProps as TextFieldProps$1, TextFieldRenderProps as TextFieldRenderProps$1, TooltipRenderProps as TooltipRenderProps$1, TooltipProps as TooltipProps$1, GridListRenderProps, GridListItemRenderProps, DropPosition, GridListProps, GridListItemProps, DragAndDropOptions, Key as Key$1 } from 'react-aria-components';
2
+ import { CSSProperties, ReactNode, Context, PropsWithChildren, ReactElement, RefObject, FormEventHandler, ComponentType } from 'react';
3
+ import { Key, Orientation, PressEvents, AriaOverlayProps } from 'react-aria';
4
+ import { PartialDeep, LiteralUnion } from 'type-fest';
5
+ import { AriaLabelingProps } from '@react-types/shared';
6
+ import { TreeData, Selection, SelectionMode, OverlayTriggerState, OverlayTriggerProps } from 'react-stately';
7
+ import { ValueEditorProps, QueryBuilderProps as QueryBuilderProps$1, RuleGroupType, FullField, FullOperator, FullCombinator, RuleGroupProps, useRuleGroup } from 'react-querybuilder';
8
+ import { createVar, StyleRule, GlobalStyleRule, CSSProperties as CSSProperties$1 } from '@vanilla-extract/css';
9
+
10
+ type RGBA = [number, number, number, number] & number[];
11
+
12
+ type AsType<T> = T extends object ? {
13
+ [Key in keyof T]: T[Key];
14
+ } : T;
15
+
16
+ type ClassNames = {
17
+ [key: string]: string | ClassNames;
18
+ };
19
+ type OmitProtectedProps<T extends object> = Omit<Partial<T>, 'key' | 'ref' | 'id' | 'children' | 'className' | 'classNames' | 'style'>;
20
+
21
+ /**
22
+ * Re-export due to not being exported by library
23
+ */
24
+ type ClassNameRenderProps<T extends object> = T & {
25
+ defaultClassName?: string;
26
+ };
27
+ type RenderPropsClassName<T extends object> = string | ((values: ClassNameRenderProps<T>) => string);
28
+ type StylePropRenderProps<T extends object> = T & {
29
+ defaultStyle?: CSSProperties;
30
+ };
31
+ type RenderPropsStyle<T extends object> = CSSProperties | ((values: StylePropRenderProps<T>) => CSSProperties);
32
+ type ChildrenRenderProps<T extends object> = T & {
33
+ defaultChildren?: ReactNode;
34
+ };
35
+ type RenderPropsChildren<T extends object> = ReactNode | ((values: ChildrenRenderProps<T>) => ReactNode);
36
+ type StyleRenderProps<T extends object> = {
37
+ /** The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. */
38
+ className?: RenderPropsClassName<T>;
39
+ /** The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state. */
40
+ style?: RenderPropsStyle<T>;
41
+ };
42
+ type RenderProps<T extends object> = StyleRenderProps<T> & {
43
+ /** The children of the component. A function may be provided to alter the children based on component state. */
44
+ children?: RenderPropsChildren<T>;
45
+ };
46
+ type ProviderValue<T> = [Context<T>, T];
47
+ type ProviderValues<A, B, C, D, E, F, G, H, I, J, K> = [ProviderValue<A>] | [ProviderValue<A>, ProviderValue<B>] | [ProviderValue<A>, ProviderValue<B>, ProviderValue<C>] | [ProviderValue<A>, ProviderValue<B>, ProviderValue<C>, ProviderValue<D>] | [
48
+ ProviderValue<A>,
49
+ ProviderValue<B>,
50
+ ProviderValue<C>,
51
+ ProviderValue<D>,
52
+ ProviderValue<E>
53
+ ] | [
54
+ ProviderValue<A>,
55
+ ProviderValue<B>,
56
+ ProviderValue<C>,
57
+ ProviderValue<D>,
58
+ ProviderValue<E>,
59
+ ProviderValue<F>
60
+ ] | [
61
+ ProviderValue<A>,
62
+ ProviderValue<B>,
63
+ ProviderValue<C>,
64
+ ProviderValue<D>,
65
+ ProviderValue<E>,
66
+ ProviderValue<F>,
67
+ ProviderValue<G>
68
+ ] | [
69
+ ProviderValue<A>,
70
+ ProviderValue<B>,
71
+ ProviderValue<C>,
72
+ ProviderValue<D>,
73
+ ProviderValue<E>,
74
+ ProviderValue<F>,
75
+ ProviderValue<G>,
76
+ ProviderValue<H>
77
+ ] | [
78
+ ProviderValue<A>,
79
+ ProviderValue<B>,
80
+ ProviderValue<C>,
81
+ ProviderValue<D>,
82
+ ProviderValue<E>,
83
+ ProviderValue<F>,
84
+ ProviderValue<G>,
85
+ ProviderValue<H>,
86
+ ProviderValue<I>
87
+ ] | [
88
+ ProviderValue<A>,
89
+ ProviderValue<B>,
90
+ ProviderValue<C>,
91
+ ProviderValue<D>,
92
+ ProviderValue<E>,
93
+ ProviderValue<F>,
94
+ ProviderValue<G>,
95
+ ProviderValue<H>,
96
+ ProviderValue<I>,
97
+ ProviderValue<J>
98
+ ] | [
99
+ ProviderValue<A>,
100
+ ProviderValue<B>,
101
+ ProviderValue<C>,
102
+ ProviderValue<D>,
103
+ ProviderValue<E>,
104
+ ProviderValue<F>,
105
+ ProviderValue<G>,
106
+ ProviderValue<H>,
107
+ ProviderValue<I>,
108
+ ProviderValue<J>,
109
+ ProviderValue<K>
110
+ ];
111
+
112
+ type TreeItemNode<T> = {
113
+ id: Key;
114
+ label: string;
115
+ type?: string;
116
+ value?: T;
117
+ isViewable?: boolean;
118
+ isVisible?: boolean;
119
+ };
120
+ type TreeGroupNode<T> = TreeItemNode<T> & {
121
+ nodes: TreeNodes<T>[];
122
+ types?: string[];
123
+ isExpanded?: boolean;
124
+ };
125
+ type TreeNodes<T> = TreeGroupNode<T> | TreeItemNode<T>;
126
+ type TreeNode<T, N extends TreeNodes<T> = TreeNodes<T>> = {
127
+ key: Key;
128
+ parentKey: Key;
129
+ value: N;
130
+ children: TreeNode<T, N>[];
131
+ };
132
+ type TreeActions<T> = Omit<TreeData<TreeNodes<T>>, 'items' | 'selectedKeys' | 'update'> & {
133
+ revertIsExpanded: () => void;
134
+ toggleIsExpanded: (selection?: Selection, isExpanded?: boolean, isRevertable?: boolean) => void;
135
+ toggleIsSelected: (selection?: Selection, isSelected?: boolean) => void;
136
+ toggleIsViewable: (selection?: Selection, isViewable?: boolean) => void;
137
+ update: (key: Key, node: Partial<TreeNodes<T>>) => void;
138
+ };
139
+ type UseTreeOptions<T> = {
140
+ allowsExpansion?: boolean;
141
+ allowsVisibility?: boolean;
142
+ nodes: TreeNodes<T>[];
143
+ selectionMode?: SelectionMode;
144
+ onSelectionChange?: (keys: Selection) => void;
145
+ /**
146
+ * Due to being triggered during the render cycle, this event
147
+ * handler should not be tied to any state change updates
148
+ */
149
+ onUpdate?: (nodes: TreeNodes<T>[]) => void;
150
+ };
151
+ type UseTreeResult<T> = Required<Omit<UseTreeOptions<T>, 'nodes' | 'onSelectionChange' | 'onUpdate'>> & Pick<TreeData<TreeNodes<T>>, 'selectedKeys'> & {
152
+ lookup: Record<Key, TreeNode<T>>;
153
+ tree: TreeNode<T>;
154
+ /**
155
+ * DO NOT DESTRUCTURE THIS PROPERTY
156
+ *
157
+ * The underlying useTreeData hook relies on "this" within certain methods
158
+ * and destructuring the actions will cause errors to be thrown
159
+ */
160
+ actions: TreeActions<T>;
161
+ };
162
+
163
+ /**
164
+ * Re-export due to not being exported by library
165
+ */
166
+ type CssVarFunction = ReturnType<typeof createVar>;
167
+ type Contract = {
168
+ [key: string]: CssVarFunction | null | Contract;
169
+ };
170
+ type Primitive = string | boolean | number | null | undefined;
171
+ type MapLeafNodes<Obj, LeafType> = {
172
+ [Prop in keyof Obj]: Obj[Prop] extends Primitive ? LeafType : Obj[Prop] extends Record<string | number, unknown> ? MapLeafNodes<Obj[Prop], LeafType> : never;
173
+ };
174
+ type PartialMapLeafNodes<Obj, LeafType> = {
175
+ [Prop in keyof Obj]?: Obj[Prop] extends Primitive ? LeafType : Obj[Prop] extends Record<string | number, unknown> ? PartialMapLeafNodes<Obj[Prop], LeafType> : never;
176
+ };
177
+
178
+ type IconClassNames = Partial<{
179
+ container: string;
180
+ icon: string;
181
+ }>;
182
+ type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'relative';
183
+ type BaseIconProps = Pick<CSSProperties, 'color' | 'fill' | 'stroke'> & {
184
+ classNames?: IconClassNames;
185
+ size?: IconSizes;
186
+ };
187
+ type IconState = Required<Omit<BaseIconProps, 'classNames'>>;
188
+ type IconProps = PropsWithChildren<BaseIconProps & SlotProps>;
189
+
190
+ type ButtonClassNames = Partial<{
191
+ container: string;
192
+ button: string;
193
+ }>;
194
+ type ButtonColors = 'primary' | 'secondary' | 'tertiary' | 'advisory' | 'affirmative' | 'serious' | 'critical';
195
+ type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
196
+ type ButtonVariants = 'solid' | 'hollow' | 'bare' | 'icon' | 'floating';
197
+ type ButtonRenderProps = ButtonRenderProps$1 & LinkRenderProps & ToggleButtonRenderProps;
198
+ type ButtonMapping = {
199
+ font: Partial<Record<ButtonSizes, string>>;
200
+ icon: Partial<Record<ButtonSizes, OmitProtectedProps<IconProps>>>;
201
+ };
202
+ type BaseButtonProps = {
203
+ children?: RenderPropsChildren<ButtonRenderProps>;
204
+ classNames?: ButtonClassNames;
205
+ color?: ButtonColors;
206
+ mapping?: Partial<ButtonMapping>;
207
+ size?: ButtonSizes;
208
+ variant?: ButtonVariants;
209
+ };
210
+ type ButtonState = Omit<ButtonRenderProps, 'state'> & Required<Pick<BaseButtonProps, 'color' | 'size' | 'variant'>>;
211
+ type ButtonProps = Omit<ButtonProps$1, 'children' | 'className' | 'style'> & BaseButtonProps;
212
+ type ToggleButtonProps = Omit<ToggleButtonProps$1, 'children' | 'className' | 'style'> & BaseButtonProps;
213
+ type LinkButtonProps = Omit<LinkProps, 'children' | 'className' | 'style'> & BaseButtonProps;
214
+
215
+ declare const buttonContainer: string;
216
+ declare const buttonColorVars: {
217
+ nonSolidColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
218
+ bareBackground: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
219
+ hollowBorder: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
220
+ solidBackground: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
221
+ solidColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
222
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
223
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
224
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
225
+ };
226
+ declare const buttonSpaceVars: {
227
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
228
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
229
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
230
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
231
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
232
+ };
233
+ declare const buttonStateVars: {
234
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
235
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
236
+ variant: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
237
+ isCurrent: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
238
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
239
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
240
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
241
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
242
+ isPending: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
243
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
244
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
245
+ };
246
+ declare const buttonClassNames: ButtonClassNames;
247
+
248
+ type CheckboxClassNames = PartialDeep<{
249
+ group: {
250
+ container: string;
251
+ group: string;
252
+ label: string;
253
+ };
254
+ checkbox: {
255
+ container: string;
256
+ checkbox: string;
257
+ icon: IconClassNames;
258
+ label: string;
259
+ };
260
+ }>;
261
+ type CheckboxAlignment = 'start' | 'end';
262
+ type CheckboxRenderProps = CheckboxRenderProps$1;
263
+ type BaseCheckboxProps = {
264
+ children?: RenderPropsChildren<CheckboxRenderProps>;
265
+ label?: string;
266
+ classNames?: CheckboxClassNames;
267
+ alignInput?: CheckboxAlignment;
268
+ };
269
+ type CheckboxState = Omit<CheckboxRenderProps, 'state'> & Required<Pick<BaseCheckboxProps, 'alignInput'>>;
270
+ type CheckboxProps = Omit<CheckboxProps$1, 'children' | 'className' | 'style'> & BaseCheckboxProps;
271
+ type CheckboxGroupRenderProps = CheckboxGroupRenderProps$1;
272
+ type BaseCheckboxGroupProps = {
273
+ children?: RenderPropsChildren<CheckboxGroupRenderProps>;
274
+ classNames?: CheckboxClassNames;
275
+ label?: string;
276
+ orientation?: Orientation;
277
+ } & Pick<BaseCheckboxProps, 'alignInput'>;
278
+ type CheckboxGroupProps = Omit<CheckboxGroupProps$1, 'children' | 'className' | 'style'> & BaseCheckboxGroupProps;
279
+ type CheckboxGroupState = Omit<CheckboxGroupRenderProps, 'state'> & Pick<BaseCheckboxGroupProps, 'orientation'>;
280
+
281
+ declare const checkboxContainer: string;
282
+ declare const checkboxColorVars: {
283
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
284
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
285
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
286
+ indicator: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
287
+ };
288
+ declare const checkboxSpaceVars: {
289
+ dimension: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
290
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
291
+ elementGap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
292
+ };
293
+ declare const checkboxStateVars: {
294
+ alignInput: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
295
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
296
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
297
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
298
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
299
+ isIndeterminate: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
300
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
301
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
302
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
303
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
304
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
305
+ };
306
+ declare const checkboxGroupStateVars: {
307
+ orientation: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
308
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
309
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
310
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
311
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
312
+ };
313
+ declare const checkboxClassNames: CheckboxClassNames;
314
+
315
+ type ChipClassNames = Partial<{
316
+ group: string;
317
+ list: string;
318
+ container: string;
319
+ chip: string;
320
+ label: string;
321
+ remove: string;
322
+ }>;
323
+ type ChipColors = 'primary' | 'secondary' | 'tertiary' | 'info' | 'advisory' | 'affirmative' | 'serious' | 'critical';
324
+ type ChipSizes = 'sm' | 'lg';
325
+ type ChipRenderProps = AsType<TagRenderProps>;
326
+ type ChipMapping = {
327
+ font: Partial<Record<ChipSizes, string>>;
328
+ remove: Partial<Record<ChipSizes, OmitProtectedProps<ButtonProps>>>;
329
+ };
330
+ type BaseChipProps = {
331
+ children?: RenderPropsChildren<ChipRenderProps>;
332
+ classNames?: ChipClassNames;
333
+ color?: ChipColors;
334
+ mapping?: Partial<ChipMapping>;
335
+ size?: ChipSizes;
336
+ };
337
+ type ChipState = ChipRenderProps & Required<Pick<BaseChipProps, 'color' | 'size'>>;
338
+ type ChipProps = PropsWithChildren<Omit<BaseChipProps, 'children'>>;
339
+ type ChipItemProps = Omit<TagProps, 'children' | 'className' | 'style'> & BaseChipProps;
340
+ type ChipListProps<T> = Omit<TagListProps<T>, 'className' | 'style'> & Pick<BaseChipProps, 'classNames'>;
341
+ type ChipGroupProps = Omit<TagGroupProps, 'className' | 'style'> & Omit<BaseChipProps, 'children'>;
342
+
343
+ declare const chipContainer: string;
344
+ declare const chipColorVars: {
345
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
346
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
347
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
348
+ };
349
+ declare const chipSpaceVars: {
350
+ list: {
351
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
352
+ };
353
+ chip: {
354
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
355
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
356
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
357
+ };
358
+ };
359
+ declare const chipStateVars: {
360
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
361
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
362
+ allowsRemoving: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
363
+ selectionBehavior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
364
+ selectionMode: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
365
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
366
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
367
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
368
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
369
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
370
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
371
+ };
372
+ declare const chipClassNames: ChipClassNames;
373
+
374
+ type InputClassNames = Partial<{
375
+ container: string;
376
+ sizer: string;
377
+ input: string;
378
+ }>;
379
+ type InputRenderProps = AsType<InputRenderProps$1> & {
380
+ /**
381
+ * If value is undefined or empty
382
+ */
383
+ isEmpty: boolean;
384
+ /**
385
+ * If placeholder is provided and value is undefined or empty
386
+ */
387
+ isPlaceholder: boolean;
388
+ /**
389
+ * If read only
390
+ */
391
+ isReadOnly: boolean;
392
+ /**
393
+ * If required
394
+ */
395
+ isRequired: boolean;
396
+ };
397
+ type InputSize = 'sm' | 'lg';
398
+ type InputMapping = {
399
+ sizer: Partial<Record<InputSize, string>>;
400
+ input: Partial<Record<InputSize, string>>;
401
+ };
402
+ type InputType = 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url';
403
+ type BaseInputProps = {
404
+ classNames?: InputClassNames;
405
+ mapping?: Partial<InputMapping>;
406
+ size?: InputSize;
407
+ type?: InputType;
408
+ };
409
+ type InputState = InputRenderProps & Required<Pick<BaseInputProps, 'size' | 'type'>> & {
410
+ /**
411
+ * The length of the input value or placeholder (whichever is currently rendered)
412
+ */
413
+ length: string;
414
+ };
415
+ type InputProps = Omit<InputProps$1, 'children' | 'className' | 'size' | 'style' | 'type'> & BaseInputProps;
416
+
417
+ type OptionsClassNames = PartialDeep<{
418
+ options: {
419
+ container: string;
420
+ options: string;
421
+ };
422
+ list: {
423
+ container: string;
424
+ list: string;
425
+ section: string;
426
+ header: string;
427
+ separator: string;
428
+ };
429
+ item: {
430
+ container: string;
431
+ item: string;
432
+ icon: IconClassNames;
433
+ label: string;
434
+ description: string;
435
+ shortcut: string;
436
+ };
437
+ }>;
438
+ type OptionsSizes = 'sm' | 'lg';
439
+ type OptionsMapping = {
440
+ description: Partial<Record<OptionsSizes, string>>;
441
+ header: Partial<Record<OptionsSizes, string>>;
442
+ label: Partial<Record<OptionsSizes, string>>;
443
+ shortcut: Partial<Record<OptionsSizes, string>>;
444
+ };
445
+ type BaseOptionsProps = {
446
+ classNames?: OptionsClassNames;
447
+ mapping?: Partial<OptionsMapping>;
448
+ size?: OptionsSizes;
449
+ };
450
+ type OptionsProps = Omit<PopoverProps$1, 'className' | 'style'> & BaseOptionsProps;
451
+ type OptionsListProps<T extends object> = Omit<ListBoxProps<T>, 'className' | 'dragAndDropHooks' | 'orientation' | 'style'> & BaseOptionsProps;
452
+ type OptionsItemProps<T extends object> = Omit<ListBoxItemProps<T>, 'className' | 'style'> & BaseOptionsProps;
453
+ type OptionsRenderProps = AsType<PopoverRenderProps$1> & Required<Pick<BaseOptionsProps, 'size'>>;
454
+ type OptionsListRenderProps = AsType<ListBoxRenderProps> & Required<Pick<BaseOptionsProps, 'size'>>;
455
+ type OptionsItemRenderProps = AsType<ListBoxItemRenderProps> & Required<Pick<BaseOptionsProps, 'size'>>;
456
+ type OptionsState = Omit<OptionsRenderProps, 'trigger'>;
457
+ type OptionsListState = Omit<OptionsListRenderProps, 'layout' | 'state' | 'isDropTarget'>;
458
+ type OptionsItemState = Omit<OptionsItemRenderProps, 'allowsDragging' | 'isDragging' | 'isDropTarget'> & {
459
+ hasDescription: boolean;
460
+ };
461
+
462
+ type ComboBoxClassNames = PartialDeep<{
463
+ container: string;
464
+ comboBox: string;
465
+ label: string;
466
+ group: string;
467
+ input: InputClassNames;
468
+ toggle: ButtonClassNames;
469
+ description: string;
470
+ error: string;
471
+ options: OptionsClassNames;
472
+ }>;
473
+ type ComboBoxSizes = 'sm' | 'lg';
474
+ type ComboBoxMapping = {
475
+ description: Partial<Record<ComboBoxSizes, string>>;
476
+ error: Partial<Record<ComboBoxSizes, string>>;
477
+ toggle: Partial<Record<ComboBoxSizes, OmitProtectedProps<ButtonProps>>>;
478
+ };
479
+ type BaseComboBoxProps = {
480
+ classNames?: ComboBoxClassNames;
481
+ mapping?: Partial<ComboBoxMapping>;
482
+ size?: ComboBoxSizes;
483
+ };
484
+ type ComboBoxRenderProps = AsType<ComboBoxRenderProps$1>;
485
+ type ComboBoxState = ComboBoxRenderProps & Required<Pick<BaseComboBoxProps, 'size'>>;
486
+ type ComboBoxProps<T extends object> = Omit<ComboBoxProps$1<T>, 'className' | 'style'> & BaseComboBoxProps;
487
+
488
+ declare const comboBoxContainer: string;
489
+ declare const comboBoxColorVars: {
490
+ description: {
491
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
492
+ };
493
+ error: {
494
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
495
+ };
496
+ };
497
+ declare const comboBoxSpaceVars: {
498
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
499
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
500
+ };
501
+ declare const comboBoxStateVars: {
502
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
503
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
504
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
505
+ isOpen: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
506
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
507
+ };
508
+ declare const comboBoxClassNames: ComboBoxClassNames;
509
+
510
+ type GroupClassNames = Partial<{
511
+ container: string;
512
+ group: string;
513
+ }>;
514
+ type BaseGroupProps<T, E extends Element> = {
515
+ children?: (ReactElement | boolean | null)[];
516
+ classNames?: GroupClassNames;
517
+ context?: Context<ContextValue<T, E>>;
518
+ orientation?: Orientation;
519
+ reverse?: boolean;
520
+ values?: ContextValue<T, E>;
521
+ };
522
+ type GroupState = {
523
+ /**
524
+ * The number of children rendered
525
+ */
526
+ count: number;
527
+ orientation: Orientation;
528
+ /**
529
+ * Whether to flip the order of the children, visually
530
+ */
531
+ reverse: boolean;
532
+ /**
533
+ * This is based off of the children types
534
+ *
535
+ * Possible values: Empty, Mixed, {component type}
536
+ *
537
+ * @example If all children are <Button />, then "type" will be `Button`
538
+ */
539
+ type: string;
540
+ };
541
+ type GroupProps<T, E extends Element> = BaseGroupProps<T, E> & SlotProps;
542
+
543
+ type DialogClassNames = Partial<{
544
+ portal: string;
545
+ container: string;
546
+ modal: string;
547
+ dialog: string;
548
+ header: string;
549
+ content: string;
550
+ footer: string;
551
+ }>;
552
+ type DialogSizes = 'sm' | 'lg';
553
+ type DialogMapping = {
554
+ heading: Partial<Record<DialogSizes, HeadingProps>>;
555
+ actions: GroupProps<ButtonProps, HTMLButtonElement>;
556
+ primary: Partial<Record<DialogSizes, OmitProtectedProps<ButtonProps>>>;
557
+ secondary: Partial<Record<DialogSizes, OmitProtectedProps<ButtonProps>>>;
558
+ };
559
+ type DialogRenderProps = ModalRenderProps & {
560
+ /**
561
+ * If the dialog is relative to the viewport (vs a specified parent element)
562
+ */
563
+ isGlobal: boolean;
564
+ /**
565
+ * If the dialog is visible
566
+ */
567
+ isOpen: boolean;
568
+ };
569
+ type BaseDialogProps = Pick<DialogProps$1, 'role'> & {
570
+ children?: RenderPropsChildren<DialogRenderProps>;
571
+ classNames?: DialogClassNames;
572
+ mapping?: Partial<DialogMapping>;
573
+ /**
574
+ * Optionally provide a ref to a parent container that the dialog will be portaled into
575
+ * This will make it so the Dialog is not global in the DOM and will visually center it
576
+ * to the parent's area instead of the whole viewport
577
+ */
578
+ parentRef?: RefObject<HTMLElement>;
579
+ size?: DialogSizes;
580
+ };
581
+ type DialogState = Omit<DialogRenderProps, 'state'> & Required<Pick<BaseDialogProps, 'size'>> & {
582
+ hasHeader: boolean;
583
+ };
584
+ type DialogProps = Omit<ModalOverlayProps, 'children' | 'className' | 'style'> & BaseDialogProps;
585
+
586
+ declare const dialogContainer: string;
587
+ declare const dialogColorVars: {
588
+ overlay: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
589
+ content: {
590
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
591
+ };
592
+ };
593
+ declare const dialogSpaceVars: {
594
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
595
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
596
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
597
+ gap: {
598
+ default: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
599
+ header: {
600
+ after: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
601
+ };
602
+ content: {
603
+ before: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
604
+ };
605
+ footer: {
606
+ before: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
607
+ };
608
+ };
609
+ };
610
+ declare const dialogStateVars: {
611
+ hasHeader: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
612
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
613
+ isEntering: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
614
+ isExiting: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
615
+ isGlobal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
616
+ isOpen: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
617
+ };
618
+ declare const dialogClassNames: DialogClassNames;
619
+
620
+ type TabsClassNames = PartialDeep<{
621
+ tabs: string;
622
+ list: {
623
+ container: string;
624
+ list: string;
625
+ };
626
+ tab: {
627
+ container: string;
628
+ tab: string;
629
+ };
630
+ panels: {
631
+ container: string;
632
+ panels: string;
633
+ };
634
+ panel: {
635
+ container: string;
636
+ panel: string;
637
+ };
638
+ }>;
639
+ type TabListVariants = 'border' | 'fill';
640
+ type TabListAnchor = 'start' | 'end';
641
+ type TabListAlignment = 'start' | 'center' | 'end';
642
+ type TabListSizes = 'sm' | 'lg';
643
+ type TabRenderProps = AsType<TabRenderProps$1>;
644
+ type TabPanelRenderProps = AsType<TabPanelRenderProps$1>;
645
+ type BaseProps$4 = {
646
+ classNames?: TabsClassNames;
647
+ };
648
+ type BaseTabListProps = {
649
+ align?: TabListAlignment;
650
+ /**
651
+ * To be combined with orientation, where:
652
+ * orientation=horizontal + anchor=end = bottom
653
+ * orientation=horizontal + anchor=start = top
654
+ * orientation=vertical + anchor=end = right
655
+ * orientation=vertical + anchor=start = left
656
+ */
657
+ anchor?: TabListAnchor;
658
+ orientation?: Orientation;
659
+ size?: TabListSizes;
660
+ variant?: TabListVariants;
661
+ };
662
+ type BaseTabProps = {
663
+ /**
664
+ * Must match cooresponding TabPanel id, should be
665
+ * unique to all other ids
666
+ */
667
+ id: string;
668
+ } & PressEvents;
669
+ type BaseTabPanelsProps = PropsWithChildren<{
670
+ /**
671
+ * Setting this to true will apply to all panels and
672
+ * change the layout to a stacked approach that grows
673
+ * to the size of the largest panel content, no matter
674
+ * which panel is active
675
+ */
676
+ shouldForceMount?: boolean;
677
+ }>;
678
+ type BaseTabPanelProps = {
679
+ /**
680
+ * Must match cooresponding Tab id, should be unique
681
+ * to all other ids
682
+ */
683
+ id: string;
684
+ };
685
+ type TabListState = Required<BaseTabListProps> & {
686
+ count: number;
687
+ };
688
+ type TabState = AsType<TabRenderProps$1>;
689
+ type TabPanelsState = Required<Pick<BaseTabPanelsProps, 'shouldForceMount'>>;
690
+ type TabPanelState = Omit<TabPanelRenderProps, 'state'> & Required<Pick<TabPanelProps$1, 'shouldForceMount'>>;
691
+ type TabsProps = Omit<TabsProps$1, 'children' | 'className' | 'style'> & PropsWithChildren<BaseProps$4>;
692
+ type TabListProps<T> = Omit<TabListProps$1<T>, 'className' | 'style'> & BaseTabListProps & BaseProps$4;
693
+ type TabProps = Omit<TabProps$1, 'className' | 'style'> & BaseTabProps & BaseProps$4;
694
+ type TabPanelsProps = BaseTabPanelsProps & BaseProps$4;
695
+ type TabPanelProps = Omit<TabPanelProps$1, 'className' | 'style'> & BaseTabPanelProps & BaseProps$4;
696
+
697
+ type DrawerClassNames = PartialDeep<{
698
+ container: string;
699
+ tabs: TabsClassNames;
700
+ dialog: {
701
+ container: string;
702
+ dialog: string;
703
+ };
704
+ header: {
705
+ header: string;
706
+ back: ButtonClassNames;
707
+ title: string;
708
+ close: ButtonClassNames;
709
+ };
710
+ content: string;
711
+ footer: string;
712
+ }>;
713
+ type DrawerAnchor = 'left' | 'right';
714
+ type DrawerMapping = {
715
+ heading: {
716
+ child: string;
717
+ parent: string;
718
+ };
719
+ back: Partial<OmitProtectedProps<ButtonProps>>;
720
+ close: Partial<OmitProtectedProps<ButtonProps>>;
721
+ };
722
+ type DrawerRenderProps = OverlayTriggerState;
723
+ type DrawerTabRenderProps = TabRenderProps & {
724
+ isOpen: boolean;
725
+ };
726
+ type BaseProps$3 = {
727
+ classNames?: DrawerClassNames;
728
+ };
729
+ type BaseDrawerProps = Pick<AriaOverlayProps, 'shouldCloseOnBlur' | 'isDismissable' | 'isKeyboardDismissDisabled'> & {
730
+ children?: RenderPropsChildren<DrawerRenderProps>;
731
+ /**
732
+ * Which side of the viewport to originate from
733
+ */
734
+ anchor?: DrawerAnchor;
735
+ /**
736
+ * If true will push sibling DOM around, else act as an independent overlay
737
+ *
738
+ * NOTE: Layout shift animations are less performant
739
+ */
740
+ layoutShift?: boolean;
741
+ };
742
+ type BaseDrawerTabProps = {
743
+ children?: RenderPropsChildren<DrawerTabRenderProps>;
744
+ };
745
+ type DrawerState = Pick<DrawerRenderProps, 'isOpen'> & Required<Pick<BaseDrawerProps, 'anchor' | 'layoutShift'>>;
746
+ type DrawerDialogState = {
747
+ /**
748
+ * If back button is present
749
+ */
750
+ isChild: boolean;
751
+ };
752
+ type DrawerProps = OverlayTriggerProps & Omit<TabsProps, 'children' | 'classNames' | 'orientation'> & BaseProps$3 & BaseDrawerProps;
753
+ type DrawerTabListProps<T> = Omit<TabListProps<T>, 'classNames' | 'align' | 'anchor' | 'orientation'> & BaseProps$3;
754
+ type DrawerTabProps = Omit<TabProps, 'children'> & BaseDrawerTabProps & BaseProps$3;
755
+ type DrawerDialogProps = PropsWithChildren<AriaLabelingProps & BaseProps$3 & {
756
+ mapping?: DrawerMapping;
757
+ }>;
758
+
759
+ declare const drawerContainer: string;
760
+ declare const drawerAnimationVars: {
761
+ delay: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
762
+ duration: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
763
+ easing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
764
+ };
765
+ declare const drawerColorVars: {
766
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
767
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
768
+ };
769
+ declare const drawerSpaceVars: {
770
+ drawer: {
771
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
772
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
773
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
774
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
775
+ };
776
+ list: {
777
+ top: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
778
+ translateY: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
779
+ };
780
+ };
781
+ declare const drawerStateVars: {
782
+ anchor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
783
+ layoutShift: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
784
+ isChild: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
785
+ isOpen: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
786
+ };
787
+ declare const drawerDialogStateVars: {
788
+ isChild: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
789
+ };
790
+ declare const drawerClassNames: DrawerClassNames;
791
+
792
+ declare const groupContainer: string;
793
+ declare const groupSpaceVars: {
794
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
795
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
796
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
797
+ };
798
+ declare const groupStateVars: {
799
+ count: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
800
+ orientation: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
801
+ reverse: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
802
+ type: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
803
+ };
804
+ declare const groupClassNames: GroupClassNames;
805
+
806
+ declare const iconContainer: string;
807
+ declare const iconColorVars: {
808
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
809
+ fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
810
+ stroke: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
811
+ };
812
+ declare const iconSpaceVars: {
813
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
814
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
815
+ };
816
+ declare const iconStateVars: {
817
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
818
+ fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
819
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
820
+ stroke: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
821
+ };
822
+ declare const iconClassNames: IconClassNames;
823
+
824
+ declare const inputContainer: string;
825
+ declare const inputColorVars: {
826
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
827
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
828
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
829
+ };
830
+ declare const inputSpaceVars: {
831
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
832
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
833
+ maxWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
834
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
835
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
836
+ };
837
+ declare const inputStateVars: {
838
+ length: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
839
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
840
+ type: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
841
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
842
+ isEmpty: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
843
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
844
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
845
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
846
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
847
+ isPlaceholder: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
848
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
849
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
850
+ };
851
+ declare const inputClassNames: InputClassNames;
852
+
853
+ type MenuClassNames = PartialDeep<{
854
+ menu: {
855
+ container: string;
856
+ menu: string;
857
+ };
858
+ list: {
859
+ container: string;
860
+ list: string;
861
+ section: string;
862
+ header: string;
863
+ separator: string;
864
+ };
865
+ item: {
866
+ container: string;
867
+ item: string;
868
+ icon: IconClassNames;
869
+ label: string;
870
+ description: string;
871
+ more: IconClassNames;
872
+ shortcut: string;
873
+ };
874
+ }>;
875
+ type MenuSizes = 'sm' | 'lg';
876
+ type MenuMapping = {
877
+ description: Partial<Record<MenuSizes, string>>;
878
+ header: Partial<Record<MenuSizes, string>>;
879
+ label: Partial<Record<MenuSizes, string>>;
880
+ shortcut: Partial<Record<MenuSizes, string>>;
881
+ };
882
+ type BaseMenuProps = {
883
+ classNames?: MenuClassNames;
884
+ mapping?: Partial<MenuMapping>;
885
+ size?: MenuSizes;
886
+ };
887
+ type MenuProps = Omit<PopoverProps$1, 'className' | 'style'> & BaseMenuProps;
888
+ type MenuListProps<T> = Omit<MenuProps$1<T>, 'className' | 'style'> & BaseMenuProps;
889
+ type MenuItemProps<T> = Omit<MenuItemProps$1<T>, 'className' | 'style'> & BaseMenuProps;
890
+ type MenuRenderProps = AsType<PopoverRenderProps$1> & Required<Pick<BaseMenuProps, 'size'>>;
891
+ type MenuItemRenderProps = AsType<MenuItemRenderProps$1> & Required<Pick<BaseMenuProps, 'size'>>;
892
+ type MenuState = Omit<MenuRenderProps, 'trigger'>;
893
+ type MenuItemState = Omit<MenuItemRenderProps, 'allowsDragging' | 'isDragging' | 'isDropTarget'> & {
894
+ hasDescription: boolean;
895
+ };
896
+
897
+ declare const menuStateVars: {
898
+ placement: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
899
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
900
+ isExiting: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
901
+ isEntering: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
902
+ };
903
+ declare const menuItemStateVars: {
904
+ selectionMode: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
905
+ selectionBehavior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
906
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
907
+ hasDescription: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
908
+ hasSubmenu: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
909
+ isOpen: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
910
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
911
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
912
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
913
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
914
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
915
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
916
+ };
917
+ declare const menuColorVars: {
918
+ list: {
919
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
920
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
921
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
922
+ };
923
+ header: {
924
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
925
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
926
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
927
+ };
928
+ separator: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
929
+ item: {
930
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
931
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
932
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
933
+ };
934
+ label: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
935
+ description: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
936
+ };
937
+ declare const menuSpaceVars: {
938
+ menu: {
939
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
940
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
941
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
942
+ };
943
+ list: {
944
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
945
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
946
+ };
947
+ section: {
948
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
949
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
950
+ };
951
+ header: {
952
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
953
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
954
+ };
955
+ separator: {
956
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
957
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
958
+ };
959
+ item: {
960
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
961
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
962
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
963
+ };
964
+ };
965
+
966
+ type NumberFieldClassNames = PartialDeep<{
967
+ container: string;
968
+ decrement: ButtonClassNames;
969
+ description: string;
970
+ error: string;
971
+ group: string;
972
+ increment: ButtonClassNames;
973
+ input: InputClassNames;
974
+ label: string;
975
+ numberField: string;
976
+ }>;
977
+ type NumberFieldSizes = 'sm' | 'lg';
978
+ type NumberFieldMapping = {
979
+ description: Partial<Record<NumberFieldSizes, string>>;
980
+ error: Partial<Record<NumberFieldSizes, string>>;
981
+ increment: Partial<Record<NumberFieldSizes, OmitProtectedProps<ButtonProps>>>;
982
+ decrement: Partial<Record<NumberFieldSizes, OmitProtectedProps<ButtonProps>>>;
983
+ };
984
+ type BaseNumberFieldProps = {
985
+ classNames?: NumberFieldClassNames;
986
+ mapping?: Partial<NumberFieldMapping>;
987
+ size?: NumberFieldSizes;
988
+ };
989
+ type NumberFieldRenderProps = AsType<NumberFieldRenderProps$1>;
990
+ type NumberFieldProps = AsType<Omit<NumberFieldProps$1, 'className' | 'style'>> & BaseNumberFieldProps;
991
+ type NumberFieldState = NumberFieldRenderProps & Required<Pick<BaseNumberFieldProps, 'size'>>;
992
+
993
+ declare const numberFieldContainer: string;
994
+ declare const numberFieldColorVars: {
995
+ description: {
996
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
997
+ };
998
+ error: {
999
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1000
+ };
1001
+ };
1002
+ declare const numberFieldSpaceVars: {
1003
+ group: {
1004
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1005
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1006
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1007
+ };
1008
+ numberField: {
1009
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1010
+ };
1011
+ };
1012
+ declare const numberFieldStateVars: {
1013
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1014
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1015
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1016
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1017
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1018
+ };
1019
+ declare const numberFieldClassNames: NumberFieldClassNames;
1020
+
1021
+ declare const optionsContainers: {
1022
+ options: string;
1023
+ list: string;
1024
+ item: string;
1025
+ };
1026
+ declare const optionsStateVars: {
1027
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1028
+ isEntering: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1029
+ isExiting: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1030
+ placement: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1031
+ };
1032
+ declare const optionsListStateVars: {
1033
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1034
+ isEmpty: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1035
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1036
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1037
+ };
1038
+ declare const optionsItemStateVars: {
1039
+ selectionBehavior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1040
+ selectionMode: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1041
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1042
+ hasDescription: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1043
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1044
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1045
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1046
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1047
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1048
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1049
+ };
1050
+ declare const optionsColorVars: {
1051
+ list: {
1052
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1053
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1054
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1055
+ };
1056
+ header: {
1057
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1058
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1059
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1060
+ };
1061
+ separator: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1062
+ item: {
1063
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1064
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1065
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1066
+ };
1067
+ label: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1068
+ description: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1069
+ };
1070
+ declare const optionsSpaceVars: {
1071
+ options: {
1072
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1073
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1074
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1075
+ };
1076
+ list: {
1077
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1078
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1079
+ };
1080
+ section: {
1081
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1082
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1083
+ };
1084
+ header: {
1085
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1086
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1087
+ };
1088
+ separator: {
1089
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1090
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1091
+ };
1092
+ item: {
1093
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1094
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1095
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1096
+ };
1097
+ };
1098
+ declare const optionsClassNames: OptionsClassNames;
1099
+
1100
+ type PickerClassNames = PartialDeep<{
1101
+ list: {
1102
+ container: string;
1103
+ list: string;
1104
+ };
1105
+ item: {
1106
+ container: string;
1107
+ item: string;
1108
+ };
1109
+ }>;
1110
+ type BaseProps$2 = {
1111
+ classNames?: PickerClassNames;
1112
+ };
1113
+ type BasePickerProps = BaseProps$2 & {
1114
+ /**
1115
+ * Only applicable if layout='grid'
1116
+ */
1117
+ columns?: number;
1118
+ };
1119
+ type PickerState = Omit<ListBoxRenderProps, 'state' | 'isDropTarget'> & Required<Pick<PickerProps<unknown>, 'columns' | 'layout' | 'orientation'>>;
1120
+ type PickerProps<T> = Omit<ListBoxProps<T>, 'className' | 'dragAndDropHooks' | 'style'> & BasePickerProps;
1121
+ type BasePickerItemProps = BaseProps$2;
1122
+ type PickerItemRenderProps = Omit<ListBoxItemRenderProps, 'allowsDragging' | 'isDragging' | 'isDropTarget'>;
1123
+ type PickerItemState = PickerItemRenderProps;
1124
+ type PickerItemProps<T> = Omit<ListBoxItemProps<T>, 'className' | 'style'> & BasePickerItemProps;
1125
+
1126
+ declare const pickerContainers: {
1127
+ list: string;
1128
+ item: string;
1129
+ };
1130
+ declare const pickerSpaceVars: {
1131
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1132
+ };
1133
+ declare const pickerStateVars: {
1134
+ columns: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1135
+ layout: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1136
+ orientation: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1137
+ isEmpty: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1138
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1139
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1140
+ };
1141
+ declare const pickerItemColorVars: {
1142
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1143
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1144
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1145
+ };
1146
+ declare const pickerItemStateVars: {
1147
+ selectionMode: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1148
+ selectionBehavior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1149
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1150
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1151
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1152
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1153
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1154
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1155
+ };
1156
+ declare const pickerClassNames: PickerClassNames;
1157
+
1158
+ type PopoverClassNames = PartialDeep<{
1159
+ popover: {
1160
+ container: string;
1161
+ popover: string;
1162
+ };
1163
+ header: string;
1164
+ content: string;
1165
+ footer: string;
1166
+ }>;
1167
+ type PopoverMapping = {
1168
+ heading: string;
1169
+ actions: GroupProps<ButtonProps, HTMLButtonElement>;
1170
+ primary: Partial<OmitProtectedProps<ButtonProps>>;
1171
+ secondary: Partial<OmitProtectedProps<ButtonProps>>;
1172
+ };
1173
+ type PopoverRenderProps = AsType<PopoverRenderProps$1> & Pick<OverlayTriggerState, 'close'>;
1174
+ type BasePopoverProps = {
1175
+ children?: RenderPropsChildren<PopoverRenderProps>;
1176
+ classNames?: PopoverClassNames;
1177
+ mapping?: Partial<PopoverMapping>;
1178
+ };
1179
+ type PopoverProps = Omit<PopoverProps$1, 'children' | 'className' | 'style'> & BasePopoverProps;
1180
+ type PopoverState = Omit<PopoverRenderProps, 'trigger' | 'close'> & {
1181
+ hasHeader: boolean;
1182
+ };
1183
+
1184
+ declare const popoverColorVars: {
1185
+ content: {
1186
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1187
+ };
1188
+ };
1189
+ declare const popoverSpaceVars: {
1190
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1191
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1192
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1193
+ gap: {
1194
+ default: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1195
+ header: {
1196
+ after: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1197
+ };
1198
+ content: {
1199
+ before: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1200
+ };
1201
+ footer: {
1202
+ before: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1203
+ };
1204
+ };
1205
+ };
1206
+ declare const popoverStateVars: {
1207
+ hasHeader: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1208
+ placement: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1209
+ isEntering: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1210
+ isExiting: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1211
+ };
1212
+ declare const popoverClassNames: PopoverClassNames;
1213
+
1214
+ type RadioAlignment = 'start' | 'end';
1215
+ type RadioClassNames = PartialDeep<{
1216
+ group: {
1217
+ container: string;
1218
+ group: string;
1219
+ };
1220
+ radio: {
1221
+ container: string;
1222
+ radio: string;
1223
+ };
1224
+ label: string;
1225
+ }>;
1226
+ type RadioGroupRenderProps = RadioGroupRenderProps$1;
1227
+ type RadioGroupProps = Omit<RadioGroupProps$1, 'className' | 'style'> & Pick<BaseRadioProps, 'alignInput' | 'classNames' | 'label'>;
1228
+ type RadioGroupState = Omit<RadioGroupRenderProps, 'state'>;
1229
+ type RadioRenderProps = Omit<RadioRenderProps$1, 'state'>;
1230
+ type BaseRadioProps = {
1231
+ children?: RenderPropsChildren<RadioRenderProps>;
1232
+ label?: string;
1233
+ classNames?: RadioClassNames;
1234
+ alignInput?: RadioAlignment;
1235
+ };
1236
+ type RadioProps = Omit<RadioProps$1, 'children' | 'className' | 'style'> & BaseRadioProps;
1237
+ type RadioContextProps = Omit<RadioProps, 'value'>;
1238
+ type RadioState = RadioRenderProps & Pick<BaseRadioProps, 'alignInput'>;
1239
+
1240
+ type SelectClassNames = PartialDeep<{
1241
+ container: string;
1242
+ select: string;
1243
+ label: string;
1244
+ toggle: ButtonClassNames;
1245
+ value: string;
1246
+ description: string;
1247
+ error: string;
1248
+ options: OptionsClassNames;
1249
+ }>;
1250
+ type SelectSizes = 'sm' | 'lg';
1251
+ type SelectMapping = {
1252
+ description: Partial<Record<SelectSizes, string>>;
1253
+ error: Partial<Record<SelectSizes, string>>;
1254
+ toggle: Partial<Record<SelectSizes, OmitProtectedProps<ButtonProps>>>;
1255
+ };
1256
+ type BaseSelectProps = {
1257
+ classNames?: SelectClassNames;
1258
+ mapping?: Partial<SelectMapping>;
1259
+ size?: SelectSizes;
1260
+ };
1261
+ type SelectRenderProps = AsType<SelectRenderProps$1>;
1262
+ type SelectState = SelectRenderProps & Required<Pick<BaseSelectProps, 'size'>>;
1263
+ type SelectProps<T extends object> = Omit<SelectProps$1<T>, 'className' | 'style'> & BaseSelectProps;
1264
+
1265
+ type SwitchClassNames = Partial<{
1266
+ container: string;
1267
+ switch: string;
1268
+ label: string;
1269
+ indicator: string;
1270
+ }>;
1271
+ type SwitchAlignment = 'start' | 'end';
1272
+ type SwitchRenderProps = SwitchRenderProps$1;
1273
+ type BaseSwitchProps = {
1274
+ children?: RenderPropsChildren<SwitchRenderProps>;
1275
+ classNames?: SwitchClassNames;
1276
+ alignInput?: SwitchAlignment;
1277
+ };
1278
+ type SwitchState = Omit<SwitchRenderProps, 'state'> & Required<Pick<BaseSwitchProps, 'alignInput'>>;
1279
+ type SwitchProps = Omit<SwitchProps$1, 'children' | 'className' | 'style'> & BaseSwitchProps;
1280
+
1281
+ type TextAreaClassNames = Partial<{
1282
+ container: string;
1283
+ textarea: string;
1284
+ }>;
1285
+ type TextAreaSize = 'sm' | 'lg';
1286
+ type TextAreaMapping = {
1287
+ font: Partial<Record<TextAreaSize, string>>;
1288
+ };
1289
+ type TextAreaRenderProps = AsType<InputRenderProps$1> & {
1290
+ /**
1291
+ * If value is undefined or empty
1292
+ */
1293
+ isEmpty: boolean;
1294
+ /**
1295
+ * If placeholder is provided and value is undefined or empty
1296
+ */
1297
+ isPlaceholder: boolean;
1298
+ /**
1299
+ * If read only
1300
+ */
1301
+ isReadOnly: boolean;
1302
+ /**
1303
+ * If required
1304
+ */
1305
+ isRequired: boolean;
1306
+ };
1307
+ type TextAreaResize = 'both' | 'horizontal' | 'vertical' | 'none';
1308
+ type BaseTextAreaProps = {
1309
+ classNames?: TextAreaClassNames;
1310
+ mapping?: Partial<TextAreaMapping>;
1311
+ resize?: TextAreaResize;
1312
+ size?: TextAreaSize;
1313
+ onChange?: FormEventHandler<HTMLSpanElement>;
1314
+ };
1315
+ type TextAreaState = TextAreaRenderProps & Required<Pick<BaseTextAreaProps, 'resize' | 'size'>>;
1316
+ type TextAreaProps = Omit<TextAreaProps$1, 'children' | 'className' | 'cols' | 'rows' | 'style' | 'onChange'> & BaseTextAreaProps;
1317
+
1318
+ type DefaultRQBProps = QueryBuilderProps$1<RuleGroupType, FullField, FullOperator, FullCombinator>;
1319
+ type SupportedClassNames = Pick<Exclude<DefaultRQBProps['controlClassnames'], undefined>, 'addGroup' | 'addRule' | 'cloneGroup' | 'cloneRule' | 'dragHandle' | 'lockGroup' | 'lockRule' | 'removeGroup' | 'removeRule'>;
1320
+ type QueryBuilderClassNames = PartialDeep<{
1321
+ [K in keyof SupportedClassNames]: string;
1322
+ } & {
1323
+ queryBuilder: {
1324
+ container: string;
1325
+ queryBuilder: string;
1326
+ };
1327
+ group: {
1328
+ container: string;
1329
+ group: string;
1330
+ header: string;
1331
+ body: string;
1332
+ footer: string;
1333
+ add: string;
1334
+ clone: string;
1335
+ combinator: string;
1336
+ drag: string;
1337
+ lock: string;
1338
+ shift: string;
1339
+ remove: string;
1340
+ toggle: string;
1341
+ };
1342
+ rule: {
1343
+ container: string;
1344
+ rule: string;
1345
+ field: string;
1346
+ operator: string;
1347
+ source: string;
1348
+ values: string;
1349
+ value: string;
1350
+ add: string;
1351
+ clone: string;
1352
+ drag: string;
1353
+ lock: string;
1354
+ shift: string;
1355
+ remove: string;
1356
+ error: string;
1357
+ };
1358
+ button: ButtonClassNames;
1359
+ checkbox: CheckboxClassNames;
1360
+ input: InputClassNames;
1361
+ radio: RadioClassNames;
1362
+ select: SelectClassNames;
1363
+ switch: SwitchClassNames;
1364
+ textarea: TextAreaClassNames;
1365
+ }>;
1366
+ type QueryBuilderSizes = 'sm' | 'lg';
1367
+ type QueryBuilderMapping = Partial<{
1368
+ button: Record<QueryBuilderSizes, OmitProtectedProps<ButtonProps>>;
1369
+ error: Record<QueryBuilderSizes, string>;
1370
+ input: Record<QueryBuilderSizes, OmitProtectedProps<InputProps>>;
1371
+ select: Record<QueryBuilderSizes, OmitProtectedProps<SelectProps<object>>>;
1372
+ textarea: Record<QueryBuilderSizes, OmitProtectedProps<TextAreaProps>>;
1373
+ }>;
1374
+ type QueryBuilderValueEditors = Record<LiteralUnion<Exclude<ValueEditorProps['type'], null | undefined>, string>, (props: ValueEditorProps) => ReactElement>;
1375
+ type RuleGroupElementsProps = RuleGroupProps & ReturnType<typeof useRuleGroup>;
1376
+ type RuleGroupElements = {
1377
+ ruleGroupBodyElements: ComponentType<RuleGroupElementsProps>;
1378
+ ruleGroupFooterElements: ComponentType<RuleGroupElementsProps>;
1379
+ ruleGroupHeaderElements: ComponentType<RuleGroupElementsProps>;
1380
+ };
1381
+ type BaseQueryBuilderProps = {
1382
+ classNames?: QueryBuilderClassNames;
1383
+ consistentColumns?: boolean;
1384
+ controlElements?: DefaultRQBProps['controlElements'] & Partial<RuleGroupElements>;
1385
+ icons?: {
1386
+ checkbox?: RenderPropsChildren<CheckboxRenderProps>;
1387
+ select?: RenderPropsChildren<SelectRenderProps>;
1388
+ };
1389
+ mapping?: QueryBuilderMapping;
1390
+ size?: QueryBuilderSizes;
1391
+ valueEditors?: QueryBuilderValueEditors;
1392
+ };
1393
+ /**
1394
+ * Omitted props are currently unsupported functionality
1395
+ */
1396
+ type QueryBuilderProps = Partial<Omit<DefaultRQBProps, 'showCombinatorsBetweenRules' | 'listsAsArrays'> & BaseQueryBuilderProps>;
1397
+ type QueryBuilderContextValue = BaseQueryBuilderProps & Required<Pick<BaseQueryBuilderProps, 'size'>> & {
1398
+ controlElements: RuleGroupElements;
1399
+ };
1400
+ type QueryBuilderState = {
1401
+ isDisabled: boolean;
1402
+ };
1403
+ type QueryBuilderGroupState = {
1404
+ /**
1405
+ * Columns after the core 4 columns and before the remove rule column
1406
+ */
1407
+ after: number;
1408
+ /**
1409
+ * Columns before the core 4 columns
1410
+ */
1411
+ before: number;
1412
+ /**
1413
+ * Calculated based on enabled features
1414
+ */
1415
+ columns: number;
1416
+ /**
1417
+ * Represents whether the rule or any of its parents are disabled
1418
+ *
1419
+ * RQB also uses this property when a rule is locked
1420
+ */
1421
+ isDisabled: boolean;
1422
+ };
1423
+ type QueryBuilderRuleState = {
1424
+ /**
1425
+ * Represents whether the rule or any of its parents are disabled
1426
+ *
1427
+ * RQB also uses this property when a rule is locked
1428
+ */
1429
+ isDisabled: boolean;
1430
+ isDragging: boolean;
1431
+ isDropTarget: boolean;
1432
+ };
1433
+
1434
+ declare const queryBuilderContainers: {
1435
+ queryBuilder: string;
1436
+ group: string;
1437
+ rule: string;
1438
+ values: string;
1439
+ };
1440
+ declare const queryBuilderColorVars: {
1441
+ queryBuilder: {
1442
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1443
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1444
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1445
+ };
1446
+ group: {
1447
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1448
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1449
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1450
+ };
1451
+ rule: {
1452
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1453
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1454
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1455
+ };
1456
+ error: {
1457
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1458
+ };
1459
+ };
1460
+ declare const queryBuilderSpaceVars: {
1461
+ queryBuilder: {
1462
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1463
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1464
+ };
1465
+ group: {
1466
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1467
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1468
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1469
+ };
1470
+ header: {
1471
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1472
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1473
+ };
1474
+ body: {
1475
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1476
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1477
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1478
+ };
1479
+ rule: {
1480
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1481
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1482
+ };
1483
+ field: {
1484
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1485
+ maxWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1486
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1487
+ };
1488
+ operator: {
1489
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1490
+ maxWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1491
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1492
+ };
1493
+ values: {
1494
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1495
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1496
+ maxWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1497
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1498
+ };
1499
+ source: {
1500
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1501
+ maxWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1502
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1503
+ };
1504
+ footer: {
1505
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1506
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1507
+ };
1508
+ };
1509
+ declare const queryBuilderStateVars: {
1510
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1511
+ };
1512
+ declare const queryBuilderGroupStateVars: {
1513
+ after: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1514
+ before: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1515
+ columns: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1516
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1517
+ };
1518
+ declare const queryBuilderRuleStateVars: {
1519
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1520
+ isDragging: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1521
+ isDropTarget: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1522
+ };
1523
+ declare const queryBuilderClassNames: QueryBuilderClassNames;
1524
+
1525
+ declare const radioColorVars: {
1526
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1527
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1528
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1529
+ };
1530
+ declare const radioSpaceVars: {
1531
+ diameter: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1532
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1533
+ elementGap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1534
+ };
1535
+ declare const radioStateVars: {
1536
+ alignInput: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1537
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1538
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1539
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1540
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1541
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1542
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1543
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1544
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1545
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1546
+ };
1547
+ declare const radioGroupStateVars: {
1548
+ alignInput: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1549
+ orientation: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1550
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1551
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1552
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1553
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1554
+ };
1555
+ declare const radioClassNames: RadioClassNames;
1556
+
1557
+ type SearchFieldClassNames = PartialDeep<{
1558
+ container: string;
1559
+ group: string;
1560
+ icon: IconClassNames;
1561
+ input: InputClassNames;
1562
+ clear: ButtonClassNames;
1563
+ }>;
1564
+ type SearchFieldSizes = 'sm' | 'lg';
1565
+ type SearchFieldVariants = 'solid' | 'hollow';
1566
+ type SearchFieldMapping = {
1567
+ icon: Partial<Record<SearchFieldSizes, OmitProtectedProps<IconProps>>>;
1568
+ clear: Partial<Record<SearchFieldSizes, OmitProtectedProps<ButtonProps>>>;
1569
+ };
1570
+ type BaseSearchFieldProps = {
1571
+ classNames?: SearchFieldClassNames;
1572
+ mapping?: Partial<SearchFieldMapping>;
1573
+ size?: InputSize;
1574
+ variant?: SearchFieldVariants;
1575
+ };
1576
+ type SearchFieldRenderProps = AsType<SearchFieldRenderProps$1>;
1577
+ type SearchFieldState = Omit<SearchFieldRenderProps, 'state'> & Required<Pick<BaseSearchFieldProps, 'variant' | 'size'>>;
1578
+ type SearchFieldProps = Omit<SearchFieldProps$1, 'className' | 'style' | 'type'> & BaseSearchFieldProps;
1579
+
1580
+ declare const searchFieldContainer: string;
1581
+ declare const searchFieldSpaceVars: {
1582
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1583
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1584
+ };
1585
+ declare const searchFieldStateVars: {
1586
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1587
+ variant: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1588
+ isEmpty: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1589
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1590
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1591
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1592
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1593
+ };
1594
+ declare const searchFieldClassNames: SearchFieldClassNames;
1595
+
1596
+ declare const selectContainer: string;
1597
+ declare const selectColorVars: {
1598
+ description: {
1599
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1600
+ };
1601
+ error: {
1602
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1603
+ };
1604
+ };
1605
+ declare const selectSpaceVars: {
1606
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1607
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1608
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1609
+ };
1610
+ declare const selectStateVars: {
1611
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1612
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1613
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1614
+ isOpen: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1615
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1616
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1617
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1618
+ };
1619
+ declare const selectClassNames: SelectClassNames;
1620
+
1621
+ declare const switchContainer: string;
1622
+ declare const switchColorVars: {
1623
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1624
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1625
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1626
+ indicator: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1627
+ };
1628
+ declare const switchSpaceVars: {
1629
+ diameter: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1630
+ gutter: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1631
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1632
+ travel: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1633
+ };
1634
+ declare const switchStateVars: {
1635
+ alignInput: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1636
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1637
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1638
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1639
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1640
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1641
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1642
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1643
+ };
1644
+ declare const switchClassNames: SwitchClassNames;
1645
+
1646
+ declare const tabsContainers: {
1647
+ list: string;
1648
+ tab: string;
1649
+ panels: string;
1650
+ panel: string;
1651
+ };
1652
+ declare const tabColorVars: {
1653
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1654
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1655
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1656
+ };
1657
+ declare const tabSpaceVars: {
1658
+ list: {
1659
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1660
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1661
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1662
+ };
1663
+ tab: {
1664
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1665
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1666
+ };
1667
+ };
1668
+ declare const tabListStateVars: {
1669
+ align: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1670
+ anchor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1671
+ count: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1672
+ orientation: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1673
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1674
+ variant: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1675
+ };
1676
+ declare const tabStateVars: {
1677
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1678
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1679
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1680
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1681
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1682
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1683
+ };
1684
+ declare const tabPanelsStateVars: {
1685
+ shouldForceMount: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1686
+ };
1687
+ declare const tabPanelStateVars: {
1688
+ shouldForceMount: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1689
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1690
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1691
+ isInert: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1692
+ };
1693
+ declare const tabsClassNames: TabsClassNames;
1694
+
1695
+ declare const textAreaContainer: string;
1696
+ declare const textAreaColorVars: {
1697
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1698
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1699
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1700
+ };
1701
+ declare const textAreaSpaceVars: {
1702
+ minWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1703
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1704
+ maxWidth: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1705
+ minHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1706
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1707
+ maxHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1708
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1709
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1710
+ };
1711
+ declare const textAreaStateVars: {
1712
+ resize: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1713
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1714
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1715
+ isEmpty: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1716
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1717
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1718
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1719
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1720
+ isPlaceholder: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1721
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1722
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1723
+ };
1724
+ declare const textAreaClassNames: TextAreaClassNames;
1725
+
1726
+ type TextFieldClassNames = PartialDeep<{
1727
+ container: string;
1728
+ description: string;
1729
+ error: string;
1730
+ input: InputClassNames;
1731
+ label: string;
1732
+ textField: string;
1733
+ }>;
1734
+ type TextFieldSizes = 'sm' | 'lg';
1735
+ type TextFieldMapping = {
1736
+ description: Partial<Record<TextFieldSizes, string>>;
1737
+ error: Partial<Record<TextFieldSizes, string>>;
1738
+ };
1739
+ type BaseTextFieldProps = {
1740
+ classNames?: TextFieldClassNames;
1741
+ mapping?: Partial<TextFieldMapping>;
1742
+ size?: TextFieldSizes;
1743
+ };
1744
+ type TextFieldRenderProps = AsType<TextFieldRenderProps$1>;
1745
+ type TextFieldProps = AsType<Omit<TextFieldProps$1, 'className' | 'style'>> & BaseTextFieldProps;
1746
+ type TextFieldState = TextFieldRenderProps & Required<Pick<BaseTextFieldProps, 'size'>>;
1747
+
1748
+ declare const textFieldContainer: string;
1749
+ declare const textFieldColorVars: {
1750
+ description: {
1751
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1752
+ };
1753
+ error: {
1754
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1755
+ };
1756
+ };
1757
+ declare const textFieldSpaceVars: {
1758
+ gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1759
+ };
1760
+ declare const textFieldStateVars: {
1761
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1762
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1763
+ isInvalid: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1764
+ isReadOnly: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1765
+ isRequired: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1766
+ };
1767
+ declare const textFieldClassNames: TextFieldClassNames;
1768
+
1769
+ type TooltipClassNames = PartialDeep<{
1770
+ tooltip: {
1771
+ container: string;
1772
+ tooltip: string;
1773
+ };
1774
+ target: {
1775
+ container: string;
1776
+ target: string;
1777
+ };
1778
+ }>;
1779
+ type TooltipMapping = {
1780
+ font: string;
1781
+ };
1782
+ type TooltipRenderProps = TooltipRenderProps$1 & {
1783
+ /**
1784
+ * If the tooltip is visible
1785
+ */
1786
+ isOpen: boolean;
1787
+ };
1788
+ type BaseProps$1 = {
1789
+ classNames?: TooltipClassNames;
1790
+ mapping?: Partial<TooltipMapping>;
1791
+ };
1792
+ type BaseTooltipProps = BaseProps$1 & {
1793
+ children?: RenderPropsChildren<TooltipRenderProps>;
1794
+ };
1795
+ type BaseTooltipTargetProps = BaseProps$1 & {
1796
+ focusable?: boolean;
1797
+ relative?: 'parent' | 'self';
1798
+ };
1799
+ type TooltipState = Omit<TooltipRenderProps, 'state'> & Required<Pick<TooltipProps$1, 'containerPadding' | 'crossOffset' | 'offset'>>;
1800
+ type TooltipTargetState = Required<Pick<BaseTooltipTargetProps, 'focusable' | 'relative'>>;
1801
+ type TooltipProps = Omit<TooltipProps$1, 'className' | 'style' | 'UNSTABLE_portalContainer'> & BaseTooltipProps;
1802
+ type TooltipTargetProps = PropsWithChildren<BaseTooltipTargetProps>;
1803
+
1804
+ declare const tooltipContainers: {
1805
+ tooltip: string;
1806
+ target: string;
1807
+ };
1808
+ declare const tooltipSpaceVars: {
1809
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1810
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1811
+ };
1812
+ declare const tooltipStateVars: {
1813
+ containerPadding: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1814
+ crossOffset: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1815
+ offset: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1816
+ placement: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1817
+ isEntering: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1818
+ isExiting: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1819
+ isOpen: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1820
+ };
1821
+ declare const tooltipTargetStateVars: {
1822
+ focusable: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1823
+ relative: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1824
+ };
1825
+ declare const tooltipClassNames: TooltipClassNames;
1826
+
1827
+ type TreeClassNames = PartialDeep<{
1828
+ tree: {
1829
+ container: string;
1830
+ tree: string;
1831
+ };
1832
+ empty: string;
1833
+ group: string;
1834
+ indicator: {
1835
+ container: string;
1836
+ indicator: string;
1837
+ };
1838
+ item: {
1839
+ container: string;
1840
+ item: string;
1841
+ bar: string;
1842
+ lines: ButtonClassNames;
1843
+ visibility: ButtonClassNames;
1844
+ expansion: ButtonClassNames;
1845
+ description: string;
1846
+ actions: GroupClassNames;
1847
+ selection: CheckboxClassNames;
1848
+ drag: ButtonClassNames;
1849
+ };
1850
+ }>;
1851
+ type TreeSizes = 'sm' | 'lg';
1852
+ type TreeMapping = {
1853
+ actions: Partial<Record<TreeSizes, OmitProtectedProps<ButtonProps>>>;
1854
+ button: Partial<Record<TreeSizes, OmitProtectedProps<ButtonProps>>>;
1855
+ description: Partial<Record<TreeSizes, string>>;
1856
+ drag: Partial<Record<TreeSizes, OmitProtectedProps<ButtonProps>>>;
1857
+ expansion: Partial<Record<TreeSizes, OmitProtectedProps<ButtonProps>>>;
1858
+ visibility: Partial<Record<TreeSizes, OmitProtectedProps<ButtonProps>>>;
1859
+ };
1860
+ type TreeRenderProps<T> = UseTreeResult<T> & {
1861
+ treeGroupProps: Omit<TreeGroupProps<T>, 'children'>;
1862
+ };
1863
+ type TreeGroupRenderProps = Omit<GridListRenderProps, 'state'>;
1864
+ type TreeIndicatorRenderProps = {
1865
+ /**
1866
+ * Whether the drop indicator is currently the active drop target.
1867
+ * @selector [data-drop-target]
1868
+ */
1869
+ isDropTarget: boolean;
1870
+ };
1871
+ type TreeItemRenderProps<T> = AsType<GridListItemRenderProps> & {
1872
+ node: TreeNode<T>;
1873
+ };
1874
+ type BaseProps<T> = {
1875
+ children: RenderPropsChildren<TreeItemRenderProps<T>>;
1876
+ mapping?: TreeMapping;
1877
+ classNames?: TreeClassNames;
1878
+ };
1879
+ type BaseTreeProps<T> = Pick<DragAndDropOptions, 'renderDragPreview' | 'renderDropIndicator'> & ({
1880
+ /**
1881
+ * Tree defaults to automatically rendering the base TreeGroup, pass true
1882
+ * to switch rendering modes to enable renderProps children that provides
1883
+ * access to the internal state context and allows for customization of
1884
+ * layout, but requires that a TreeGroup be manually implemented
1885
+ */
1886
+ provider?: false;
1887
+ children: RenderPropsChildren<TreeItemRenderProps<T>>;
1888
+ } | {
1889
+ provider: true;
1890
+ children: Exclude<RenderPropsChildren<TreeRenderProps<T>>, ReactNode>;
1891
+ }) & {
1892
+ allowsDragging?: boolean;
1893
+ classNames?: TreeClassNames;
1894
+ mapping?: TreeMapping;
1895
+ showTreeLines?: boolean;
1896
+ size?: TreeSizes;
1897
+ };
1898
+ type BaseTreeGroupProps<T> = {
1899
+ id: Key$1;
1900
+ nodes: TreeNode<T>[];
1901
+ };
1902
+ type BaseTreeItemProps<T> = {
1903
+ index: number;
1904
+ node: TreeNode<T>;
1905
+ isFirstChild: boolean;
1906
+ isLastChild: boolean;
1907
+ };
1908
+ type TreeState = Required<Pick<TreeRenderProps<unknown>, 'allowsExpansion' | 'allowsVisibility'>> & Required<Pick<BaseTreeProps<unknown>, 'allowsDragging' | 'showTreeLines' | 'size'>>;
1909
+ type TreeGroupState = TreeGroupRenderProps & {
1910
+ /**
1911
+ * The number of items in group
1912
+ */
1913
+ count: number;
1914
+ };
1915
+ type TreeIndicatorState = TreeIndicatorRenderProps & {
1916
+ dropPosition: DropPosition | 'root';
1917
+ };
1918
+ type TreeItemState = Omit<TreeItemRenderProps<unknown>, 'node'> & Required<Pick<TreeGroupNode<unknown>, 'isExpanded' | 'isViewable' | 'isVisible'>> & Omit<BaseTreeItemProps<unknown>, 'node'> & {
1919
+ /**
1920
+ * The number of children
1921
+ */
1922
+ count: number;
1923
+ /**
1924
+ * If item has children
1925
+ */
1926
+ isGroup: boolean;
1927
+ };
1928
+ type TreeStateContextValue<T> = UseTreeResult<T> & Pick<TreeProps<T>, 'allowsDragging' | 'classNames' | 'disabledBehavior' | 'keyboardNavigationBehavior' | 'renderDragPreview' | 'renderEmptyState' | 'selectionBehavior' | 'selectionMode' | 'showTreeLines' | 'size' | 'onAction' | 'onScroll'>;
1929
+ type TreeProps<T> = AriaLabelingProps & Omit<GridListProps<T>, 'id' | 'children' | 'className' | 'dependencies' | 'disallowEmptySelection' | 'items' | 'renderDropIndicator' | 'style'> & UseTreeOptions<T> & BaseTreeProps<T>;
1930
+ type TreeGroupProps<T> = Omit<GridListProps<T>, 'id' | 'children' | 'className' | 'dependencies' | 'items' | 'style'> & Pick<TreeGroupNode<T>, 'types'> & BaseTreeGroupProps<T> & BaseProps<T>;
1931
+ type TreeItemProps<T> = SlotProps & Omit<GridListItemProps, 'children' | 'className' | 'style'> & BaseTreeItemProps<T> & BaseProps<T>;
1932
+
1933
+ declare const treeContainers: {
1934
+ tree: string;
1935
+ group: string;
1936
+ item: string;
1937
+ };
1938
+ declare const treeColorVars: {
1939
+ bar: {
1940
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1941
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1942
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1943
+ };
1944
+ indicator: {
1945
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1946
+ border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1947
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1948
+ };
1949
+ };
1950
+ declare const treeSpaceVars: {
1951
+ bar: {
1952
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1953
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1954
+ };
1955
+ description: {
1956
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1957
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1958
+ };
1959
+ empty: {
1960
+ x: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1961
+ y: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1962
+ };
1963
+ };
1964
+ declare const treeStateVars: {
1965
+ allowsDragging: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1966
+ allowsExpansion: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1967
+ allowsVisibility: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1968
+ showTreeLines: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1969
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1970
+ };
1971
+ declare const treeGroupStateVars: {
1972
+ count: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1973
+ layout: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1974
+ isDropTarget: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1975
+ isEmpty: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1976
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1977
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1978
+ };
1979
+ declare const treeIndicatorStateVars: {
1980
+ dropPosition: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1981
+ isDropTarget: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1982
+ };
1983
+ declare const treeItemStateVars: {
1984
+ allowsDragging: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1985
+ count: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1986
+ index: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1987
+ selectionMode: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1988
+ selectionBehavior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1989
+ isDisabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1990
+ isDragging: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1991
+ isDropTarget: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1992
+ isExpanded: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1993
+ isFirstChild: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1994
+ isFocused: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1995
+ isFocusVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1996
+ isGroup: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1997
+ isHovered: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1998
+ isLastChild: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1999
+ isPressed: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2000
+ isSelected: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2001
+ isViewable: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2002
+ isVisible: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2003
+ };
2004
+ declare const treeClassNames: TreeClassNames;
2005
+
2006
+ /**
2007
+ * Parse out CSS var name from CSS var implementation
2008
+ *
2009
+ * @example
2010
+ * unwrapCssVar('var(--foo)')
2011
+ * // returns '--foo'
2012
+ *
2013
+ * @example
2014
+ * unwrapCssVar('var(--foo, blue)')
2015
+ * // returns '--foo'
2016
+ *
2017
+ * @example
2018
+ * unwrapCssVar('var(--foo, var(--bar))')
2019
+ * // returns '--foo'
2020
+ */
2021
+ declare function unwrapCssVar(cssVar: string): string;
2022
+ type FulfilledContract<T> = MapLeafNodes<T, null | number | string | RGBA>;
2023
+ /**
2024
+ * Convert contract to nested object of identical shape with computed CSS values
2025
+ * Pixel values are converted to numbers
2026
+ * RGB(A) values are converted to DeckGL compatible tuples
2027
+ * All other values are left unconverted
2028
+ */
2029
+ declare function computeContract<T extends Contract>(contract: T, css: CSSStyleDeclaration): FulfilledContract<T>;
2030
+ /**
2031
+ * Convert potentially nested contract and values pair into flattened CSS var record
2032
+ * The contract provides a lookup for CSS vars
2033
+ * The values are expected to partially match the contract shapeForm
2034
+ */
2035
+ declare function reduceContract<T extends Contract, U>(contract: T, values: PartialMapLeafNodes<T, U>): Record<`var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`, U>;
2036
+ /**
2037
+ * Reduce contract and values into Vanilla Extract friendly CSS vars
2038
+ */
2039
+ declare function assignPartialVars<T extends Contract>(contract: T, values: PartialMapLeafNodes<T, Primitive>): {
2040
+ [k: string]: string;
2041
+ };
2042
+ type CssVarValues = {
2043
+ [key: string]: CssVarValues | Primitive;
2044
+ };
2045
+ type CssVarValueOptions<T extends object> = {
2046
+ [P in keyof T]?: T[P] extends object ? CssVarValueOptions<T[P]> : T[P] | T[P][];
2047
+ };
2048
+ type Operators = 'and' | 'or';
2049
+ type ContainerQueryOptions = {
2050
+ container?: string;
2051
+ operator?: Operators;
2052
+ maxHeight?: string;
2053
+ minHeight?: string;
2054
+ maxWidth?: string;
2055
+ minWidth?: string;
2056
+ };
2057
+ type ContainerQueryValues<T extends CssVarValues> = CssVarValueOptions<T> & ContainerQueryOptions;
2058
+ type MultiContainerQuery<T extends CssVarValues> = {
2059
+ operator?: Operators;
2060
+ groups: ContainerQueryValues<T>[];
2061
+ };
2062
+ /**
2063
+ * Create simple or complex container queries with and/or operators.
2064
+ *
2065
+ * To provide type safety and ease of use, this function accepts a generic and a contract
2066
+ * The generic type defines the possible values for the parameters defined within the contract
2067
+ *
2068
+ * Ex: containerQuery<{ foo: boolean }>({ foo: 'var(--foo)' }, { foo: true })
2069
+ *
2070
+ * By providing the type constraint and contract, the query parameters will have intellisense
2071
+ * on which parameters exist and what their possible values can be
2072
+ *
2073
+ * @example
2074
+ * containerQuery(contract, { a: true })
2075
+ * // returns (a: true)
2076
+ *
2077
+ * @example
2078
+ * containerQuery(contract, { a: true, b: true })
2079
+ * // returns (a: true) and (b: true)
2080
+ *
2081
+ * @example
2082
+ * containerQuery(contract, { operator: 'or', a: true, b: true })
2083
+ * // returns (a: true) or (b: true)
2084
+ *
2085
+ * @example
2086
+ * containerQuery(contract, { groups: [{ a: true }, { b: true }] })
2087
+ * // returns (a: true) or (b: true)
2088
+ *
2089
+ * @example
2090
+ * containerQuery(contract, { a: ['foo', 'bar'] })
2091
+ * // returns (a: 'foo') or (a: 'bar')
2092
+ *
2093
+ * @example
2094
+ * containerQuery(contract, { a: ['foo', 'bar'], b: true })
2095
+ * // returns ((a: 'foo') or (a: 'bar')) and (b: true)
2096
+ *
2097
+ * @example
2098
+ * containerQuery(contract, { operator: 'or', a: ['foo', 'bar'], b: true })
2099
+ * // returns ((a: 'foo') or (a: 'bar')) or (b: true)
2100
+ *
2101
+ * @example
2102
+ * containerQuery(contract, { groups: [{ a: true, b: true }, { c: true, d: true }] })
2103
+ * // returns ((a: true) and (b: true)) or ((c: true) and (d: true))
2104
+ *
2105
+ * @example
2106
+ * containerQuery(contract, { operator: 'and', groups: [{ operator: 'or', a: true, b: true }, { c: true, d: true }] })
2107
+ * // returns ((a: true) or (b: true)) and ((c: true) and (d: true))
2108
+ *
2109
+ * @example
2110
+ * containerQuery(contract, { operator: 'and', groups: [{ operator: 'or', a: true, b: true }, { operator: 'or', c: true, d: true }] })
2111
+ * // returns ((a: true) or (b: true)) and ((c: true) or (d: true))
2112
+ */
2113
+ declare function containerQuery<T extends CssVarValues = CssVarValues>(contract: MapLeafNodes<Omit<T, keyof ContainerQueryOptions>, CssVarFunction>, query: ContainerQueryValues<T> | MultiContainerQuery<T>): string;
2114
+ type ContainerStyle = Exclude<StyleRule['@container'], undefined>[string];
2115
+ type ContainerQuery<T extends CssVarValues> = {
2116
+ query: ContainerQueryValues<T> | MultiContainerQuery<T>;
2117
+ };
2118
+ type ContainerQueries<T extends CssVarValues> = ContainerStyle & ContainerQuery<T>;
2119
+ type GlobalContainerStyle = Exclude<GlobalStyleRule['@container'], undefined>[string];
2120
+ type GlobalContainerQueries<T extends CssVarValues> = GlobalContainerStyle & ContainerQuery<T>;
2121
+ /**
2122
+ * Bulk container query creation based on the same contract
2123
+ */
2124
+ declare function containerQueries<T extends CssVarValues = CssVarValues>(contract: MapLeafNodes<Omit<T, keyof ContainerQueryOptions>, CssVarFunction>, ...styles: ContainerQueries<T>[]): Record<string, ContainerStyle>;
2125
+ declare function containerQueries<T extends CssVarValues = CssVarValues>(contract: MapLeafNodes<Omit<T, keyof ContainerQueryOptions>, CssVarFunction>, ...styles: GlobalContainerQueries<T>[]): Record<string, GlobalContainerStyle>;
2126
+ type VarsOnlyContainerQuery<T extends CssVarValues> = Required<Pick<ContainerQueries<T>, 'query' | 'vars'>>;
2127
+ type QueryOptionalVarsOnlyContainerQuery<T extends CssVarValues> = Partial<Pick<VarsOnlyContainerQuery<T>, 'query'>> & Pick<VarsOnlyContainerQuery<T>, 'vars'>;
2128
+ /**
2129
+ * Helper for establishing global theme variables with the restriction that
2130
+ * only variables may be set (and are required). All other styles must be
2131
+ * established using alternative utils
2132
+ *
2133
+ * The first style rule has an optional query. If the query is missing, the vars
2134
+ * are set outside of a container query
2135
+ */
2136
+ declare function applyThemeVars<T extends CssVarValues = CssVarValues>(contract: MapLeafNodes<Omit<T, keyof ContainerQueryOptions>, CssVarFunction>, styles: [QueryOptionalVarsOnlyContainerQuery<T>, ...VarsOnlyContainerQuery<T>[]] | VarsOnlyContainerQuery<T>[], layer?: string): StyleRule;
2137
+ /**
2138
+ * Runtime creation of inline style CSS vars that enable CSS container queries
2139
+ */
2140
+ declare function inlineVars(vars: Record<string, Primitive>): Record<string, string>;
2141
+ declare function inlineVars<T extends Contract>(contract: T, values: PartialMapLeafNodes<T, Primitive>): Record<string, string>;
2142
+
2143
+ /**
2144
+ * Be aware that using parent layers overrides their children
2145
+ *
2146
+ * Example: "framework" overrides "components"
2147
+ *
2148
+ * Because of this, it is recommended to never directly use the
2149
+ * parent layers directly, only their children, which is why we
2150
+ * don't export them
2151
+ */
2152
+ declare const layers: {
2153
+ reset: string;
2154
+ variables: Record<"l1" | "l5" | "l4" | "l2" | "l3", string>;
2155
+ styles: string;
2156
+ components: Record<"l1" | "l5" | "l4" | "l2" | "l3", string>;
2157
+ overrides: Record<"l1" | "l5" | "l4" | "l2" | "l3", string>;
2158
+ };
2159
+
2160
+ declare const surfaces: Record<"default" | "raised" | "overlay", {
2161
+ flush: string;
2162
+ proud: string;
2163
+ }>;
2164
+
2165
+ /**
2166
+ * Values should be set as rgb(a) values to support sharing over to DeckGL
2167
+ */
2168
+ declare const genericColorVars: {
2169
+ neutral: {
2170
+ v01: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2171
+ v02: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2172
+ v03: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2173
+ v04: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2174
+ v05: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2175
+ v06: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2176
+ v07: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2177
+ v08: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2178
+ v09: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2179
+ v10: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2180
+ };
2181
+ highlight: {
2182
+ primary: {
2183
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2184
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2185
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2186
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2187
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2188
+ };
2189
+ secondary: {
2190
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2191
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2192
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2193
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2194
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2195
+ };
2196
+ tertiary: {
2197
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2198
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2199
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2200
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2201
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2202
+ };
2203
+ };
2204
+ condition: {
2205
+ base: {
2206
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2207
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2208
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2209
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2210
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2211
+ };
2212
+ advisory: {
2213
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2214
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2215
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2216
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2217
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2218
+ };
2219
+ affirmative: {
2220
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2221
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2222
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2223
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2224
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2225
+ };
2226
+ serious: {
2227
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2228
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2229
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2230
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2231
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2232
+ };
2233
+ critical: {
2234
+ v1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2235
+ v2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2236
+ v3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2237
+ v4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2238
+ v5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2239
+ };
2240
+ };
2241
+ };
2242
+ declare const defaultGenericColorVarValues: MapLeafNodes<typeof genericColorVars, string>;
2243
+ declare const defaultGenericColors: string;
2244
+ /**
2245
+ * Values should be set as rgb(a) values to support sharing over to DeckGL
2246
+ */
2247
+ declare const semanticColorVars: {
2248
+ background: {
2249
+ surface: {
2250
+ default: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2251
+ raised: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2252
+ overlay: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2253
+ };
2254
+ interactive: {
2255
+ default: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2256
+ disabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2257
+ active: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2258
+ };
2259
+ highlight: {
2260
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2261
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2262
+ };
2263
+ info: {
2264
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2265
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2266
+ };
2267
+ advisory: {
2268
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2269
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2270
+ };
2271
+ affirmative: {
2272
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2273
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2274
+ };
2275
+ serious: {
2276
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2277
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2278
+ };
2279
+ critical: {
2280
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2281
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2282
+ };
2283
+ };
2284
+ foreground: {
2285
+ interactive: {
2286
+ primary: {
2287
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2288
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2289
+ };
2290
+ secondary: {
2291
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2292
+ subtle: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2293
+ };
2294
+ disabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2295
+ highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2296
+ };
2297
+ info: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2298
+ advisory: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2299
+ affirmative: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2300
+ serious: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2301
+ critical: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2302
+ };
2303
+ border: {
2304
+ static: {
2305
+ exterior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2306
+ interior: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2307
+ };
2308
+ interactive: {
2309
+ default: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2310
+ hover: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2311
+ disabled: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2312
+ highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2313
+ };
2314
+ info: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2315
+ advisory: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2316
+ affirmative: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2317
+ serious: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2318
+ critical: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2319
+ };
2320
+ };
2321
+ declare const defaultSemanticColorVarValues: MapLeafNodes<typeof semanticColorVars, string>;
2322
+ declare const defaultSemanticColors: string;
2323
+ declare const elevationVars: {
2324
+ default: {
2325
+ surface: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2326
+ shadow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2327
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2328
+ };
2329
+ raised: {
2330
+ surface: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2331
+ shadow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2332
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2333
+ };
2334
+ overlay: {
2335
+ surface: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2336
+ shadow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2337
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2338
+ };
2339
+ };
2340
+ declare const defaultElevationVarValues: MapLeafNodes<typeof elevationVars, string>;
2341
+ declare const defaultElevations: string;
2342
+ /**
2343
+ * Values should be set as pixel values to support sharing over to DeckGL
2344
+ */
2345
+ declare const sizeVars: {
2346
+ none: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2347
+ v01: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2348
+ v02: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2349
+ v03: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2350
+ v04: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2351
+ v05: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2352
+ v06: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2353
+ v07: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2354
+ v08: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2355
+ v09: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2356
+ v10: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2357
+ };
2358
+ declare const defaultSizesVarValues: MapLeafNodes<typeof sizeVars, string>;
2359
+ declare const defaultSizes: string;
2360
+ declare const spaceVars: {
2361
+ heading: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2362
+ paragraph: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2363
+ list: {
2364
+ group: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2365
+ item: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2366
+ };
2367
+ lastChild: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2368
+ };
2369
+ declare const defaultSpaceVarValues: MapLeafNodes<typeof spaceVars, string>;
2370
+ declare const defaultSpace: string;
2371
+ declare const radiusVars: {
2372
+ none: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2373
+ sm: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2374
+ md: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2375
+ lg: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2376
+ round: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2377
+ };
2378
+ declare const defaultRadiusVarValues: MapLeafNodes<typeof radiusVars, string>;
2379
+ declare const defaultRadius: string;
2380
+ declare const typographyVars: {
2381
+ mono: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2382
+ sans: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2383
+ serif: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2384
+ heading: {
2385
+ v1: {
2386
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2387
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2388
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2389
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2390
+ };
2391
+ v2: {
2392
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2393
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2394
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2395
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2396
+ };
2397
+ v3: {
2398
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2399
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2400
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2401
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2402
+ };
2403
+ v4: {
2404
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2405
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2406
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2407
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2408
+ };
2409
+ v5: {
2410
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2411
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2412
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2413
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2414
+ };
2415
+ v6: {
2416
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2417
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2418
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2419
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2420
+ };
2421
+ };
2422
+ body: {
2423
+ xs: {
2424
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2425
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2426
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2427
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2428
+ };
2429
+ sm: {
2430
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2431
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2432
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2433
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2434
+ };
2435
+ md: {
2436
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2437
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2438
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2439
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2440
+ };
2441
+ lg: {
2442
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2443
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2444
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2445
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2446
+ };
2447
+ xl: {
2448
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2449
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2450
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2451
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2452
+ };
2453
+ };
2454
+ input: {
2455
+ sm: {
2456
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2457
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2458
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2459
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2460
+ };
2461
+ lg: {
2462
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2463
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2464
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2465
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2466
+ };
2467
+ };
2468
+ label: {
2469
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2470
+ size: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2471
+ spacing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2472
+ weight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2473
+ };
2474
+ };
2475
+ declare const defaultTypographyVarValues: MapLeafNodes<typeof typographyVars, string>;
2476
+ declare const defaultTypography: string;
2477
+ declare const zIndexVars: {
2478
+ popover: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2479
+ layout: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2480
+ drawer: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2481
+ modal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2482
+ dialog: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2483
+ popup: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2484
+ tooltip: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2485
+ };
2486
+ declare const defaultZIndexVarValues: MapLeafNodes<typeof zIndexVars, string>;
2487
+ declare const defaultZIndex: string;
2488
+ declare const focusVars: {
2489
+ offset: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2490
+ width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2491
+ style: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2492
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2493
+ };
2494
+ declare const defaultFocusVarValues: MapLeafNodes<typeof focusVars, string>;
2495
+ declare const defaultFocus: string;
2496
+ declare const focusOutlineStyle: CSSProperties$1;
2497
+
2498
+ declare const families: {
2499
+ mono: string;
2500
+ sans: string;
2501
+ serif: string;
2502
+ };
2503
+ type HeadingVariants = keyof typeof typographyVars.heading;
2504
+ type Headings = Record<HeadingVariants, string>;
2505
+ declare const headings: Headings;
2506
+ type BodyVariants = keyof typeof typographyVars.body;
2507
+ type Bodies = Record<BodyVariants, string>;
2508
+ declare const bodies: Bodies;
2509
+ type InputVariants = keyof typeof typographyVars.input;
2510
+ type Inputs = Record<InputVariants, string>;
2511
+ declare const inputs: Inputs;
2512
+ declare const label: string;
2513
+
2514
+ export { type OptionsSizes as $, type DrawerMapping as A, type ButtonProps as B, type CheckboxProps as C, type DialogProps as D, type BaseGroupProps as E, type IconSizes as F, type GroupProps as G, type InputProps as H, type IconProps as I, type BaseInputProps as J, type MenuClassNames as K, type LinkButtonProps as L, type MenuProps as M, type MenuMapping as N, type MenuSizes as O, type ProviderValues as P, type MenuListProps as Q, type RenderPropsChildren as R, type MenuItemProps as S, type ToggleButtonProps as T, type NumberFieldProps as U, type NumberFieldClassNames as V, type NumberFieldMapping as W, type NumberFieldSizes as X, type OptionsProps as Y, type OptionsClassNames as Z, type OptionsMapping as _, type ButtonRenderProps as a, type TreeClassNames as a$, type OptionsListProps as a0, type OptionsItemProps as a1, type PickerProps as a2, type PickerItemProps as a3, type PickerClassNames as a4, type PopoverProps as a5, type PopoverRenderProps as a6, type PopoverClassNames as a7, type PopoverMapping as a8, type QueryBuilderContextValue as a9, type TextAreaProps as aA, type BaseTextAreaProps as aB, type TextFieldProps as aC, type TextFieldClassNames as aD, type TextFieldMapping as aE, type TextFieldSizes as aF, type TooltipProps as aG, type TooltipClassNames as aH, type TooltipMapping as aI, type TooltipRenderProps as aJ, type TooltipTargetProps as aK, type TreeStateContextValue as aL, type TreeProps as aM, type TreeGroupProps as aN, type TreeItemProps as aO, type RadioProps as aP, type TabProps as aQ, type OmitProtectedProps as aR, type ButtonClassNames as aS, type ChipClassNames as aT, type DialogClassNames as aU, type GroupClassNames as aV, type IconClassNames as aW, type InputClassNames as aX, type QueryBuilderClassNames as aY, type SwitchClassNames as aZ, type TextAreaClassNames as a_, type QueryBuilderProps as aa, type RadioContextProps as ab, type RadioRenderProps as ac, type RadioClassNames as ad, type RadioAlignment as ae, type RadioGroupProps as af, type SearchFieldProps as ag, type SearchFieldClassNames as ah, type SearchFieldMapping as ai, type InputSize as aj, type SearchFieldVariants as ak, type SelectProps as al, type SelectClassNames as am, type SelectMapping as an, type SelectSizes as ao, type SwitchProps as ap, type BaseSwitchProps as aq, type TabsProps as ar, type TabsClassNames as as, type TabListProps as at, type TabListAlignment as au, type TabListAnchor as av, type TabListSizes as aw, type TabListVariants as ax, type TabPanelsProps as ay, type TabPanelProps as az, type ButtonColors as b, optionsClassNames as b$, type ClassNames as b0, type AsType as b1, type RGBA as b2, type Contract as b3, computeContract as b4, type UseTreeOptions as b5, type UseTreeResult as b6, buttonClassNames as b7, buttonColorVars as b8, buttonContainer as b9, drawerContainer as bA, drawerDialogStateVars as bB, drawerSpaceVars as bC, drawerStateVars as bD, groupClassNames as bE, groupContainer as bF, groupSpaceVars as bG, groupStateVars as bH, iconClassNames as bI, iconColorVars as bJ, iconContainer as bK, iconSpaceVars as bL, iconStateVars as bM, inputClassNames as bN, inputColorVars as bO, inputContainer as bP, inputSpaceVars as bQ, inputStateVars as bR, menuColorVars as bS, menuItemStateVars as bT, menuSpaceVars as bU, menuStateVars as bV, numberFieldClassNames as bW, numberFieldColorVars as bX, numberFieldContainer as bY, numberFieldSpaceVars as bZ, numberFieldStateVars as b_, buttonSpaceVars as ba, buttonStateVars as bb, checkboxClassNames as bc, checkboxColorVars as bd, checkboxContainer as be, checkboxGroupStateVars as bf, checkboxSpaceVars as bg, checkboxStateVars as bh, chipClassNames as bi, chipColorVars as bj, chipContainer as bk, chipSpaceVars as bl, chipStateVars as bm, comboBoxClassNames as bn, comboBoxColorVars as bo, comboBoxContainer as bp, comboBoxSpaceVars as bq, comboBoxStateVars as br, dialogClassNames as bs, dialogColorVars as bt, dialogContainer as bu, dialogSpaceVars as bv, dialogStateVars as bw, drawerAnimationVars as bx, drawerClassNames as by, drawerColorVars as bz, type ButtonMapping as c, tooltipStateVars as c$, optionsColorVars as c0, optionsContainers as c1, optionsItemStateVars as c2, optionsListStateVars as c3, optionsSpaceVars as c4, optionsStateVars as c5, pickerClassNames as c6, pickerContainers as c7, pickerItemColorVars as c8, pickerItemStateVars as c9, selectStateVars as cA, switchClassNames as cB, switchColorVars as cC, switchContainer as cD, switchSpaceVars as cE, switchStateVars as cF, tabColorVars as cG, tabListStateVars as cH, tabPanelStateVars as cI, tabPanelsStateVars as cJ, tabSpaceVars as cK, tabStateVars as cL, tabsClassNames as cM, tabsContainers as cN, textAreaClassNames as cO, textAreaColorVars as cP, textAreaContainer as cQ, textAreaSpaceVars as cR, textAreaStateVars as cS, textFieldClassNames as cT, textFieldColorVars as cU, textFieldContainer as cV, textFieldSpaceVars as cW, textFieldStateVars as cX, tooltipClassNames as cY, tooltipContainers as cZ, tooltipSpaceVars as c_, pickerSpaceVars as ca, pickerStateVars as cb, popoverClassNames as cc, popoverColorVars as cd, popoverSpaceVars as ce, popoverStateVars as cf, queryBuilderClassNames as cg, queryBuilderColorVars as ch, queryBuilderContainers as ci, queryBuilderGroupStateVars as cj, queryBuilderRuleStateVars as ck, queryBuilderSpaceVars as cl, queryBuilderStateVars as cm, radioClassNames as cn, radioColorVars as co, radioGroupStateVars as cp, radioSpaceVars as cq, radioStateVars as cr, searchFieldClassNames as cs, searchFieldContainer as ct, searchFieldSpaceVars as cu, searchFieldStateVars as cv, selectClassNames as cw, selectColorVars as cx, selectContainer as cy, selectSpaceVars as cz, type ButtonSizes as d, type TabRenderProps as d$, tooltipTargetStateVars as d0, treeClassNames as d1, treeColorVars as d2, treeContainers as d3, treeGroupStateVars as d4, treeIndicatorStateVars as d5, treeItemStateVars as d6, treeSpaceVars as d7, treeStateVars as d8, type ButtonState as d9, type NumberFieldState as dA, type OptionsItemState as dB, type OptionsListState as dC, type OptionsState as dD, type PickerItemRenderProps as dE, type PickerItemState as dF, type PickerState as dG, type PopoverState as dH, type QueryBuilderGroupState as dI, type QueryBuilderMapping as dJ, type QueryBuilderRuleState as dK, type QueryBuilderSizes as dL, type QueryBuilderState as dM, type QueryBuilderValueEditors as dN, type RadioGroupState as dO, type RadioState as dP, type SearchFieldRenderProps as dQ, type SearchFieldState as dR, type SelectRenderProps as dS, type SelectState as dT, type SwitchAlignment as dU, type SwitchRenderProps as dV, type SwitchState as dW, type TabListState as dX, type TabPanelRenderProps as dY, type TabPanelState as dZ, type TabPanelsState as d_, type CheckboxGroupState as da, type CheckboxState as db, type ChipColors as dc, type ChipMapping as dd, type ChipRenderProps as de, type ChipSizes as df, type ChipState as dg, type ComboBoxRenderProps as dh, type ComboBoxState as di, type DialogState as dj, type DrawerAnchor as dk, type DrawerDialogProps as dl, type DrawerDialogState as dm, type DrawerRenderProps as dn, type DrawerState as dp, type DrawerTabRenderProps as dq, type GroupState as dr, type IconState as ds, type InputMapping as dt, type InputRenderProps as du, type InputState as dv, type InputType as dw, type MenuItemRenderProps as dx, type MenuItemState as dy, type MenuState as dz, type ButtonVariants as e, type TreeActions as e$, type TabState as e0, type TextAreaRenderProps as e1, type TextAreaState as e2, type TextFieldState as e3, type TooltipState as e4, type TooltipTargetState as e5, type TreeGroupRenderProps as e6, type TreeGroupState as e7, type TreeIndicatorRenderProps as e8, type TreeIndicatorState as e9, families as eA, focusOutlineStyle as eB, focusVars as eC, genericColorVars as eD, headings as eE, inputs as eF, label as eG, layers as eH, radiusVars as eI, semanticColorVars as eJ, sizeVars as eK, spaceVars as eL, surfaces as eM, typographyVars as eN, zIndexVars as eO, type ChildrenRenderProps as eP, type ClassNameRenderProps as eQ, type CssVarFunction as eR, type MapLeafNodes as eS, type PartialMapLeafNodes as eT, type Primitive as eU, type ProviderValue as eV, type RenderProps as eW, type RenderPropsClassName as eX, type RenderPropsStyle as eY, type StylePropRenderProps as eZ, type StyleRenderProps as e_, type TreeItemRenderProps as ea, type TreeItemState as eb, type TreeMapping as ec, type TreeRenderProps as ed, type TreeSizes as ee, type TreeState as ef, bodies as eg, defaultElevationVarValues as eh, defaultElevations as ei, defaultFocus as ej, defaultFocusVarValues as ek, defaultGenericColorVarValues as el, defaultGenericColors as em, defaultRadius as en, defaultRadiusVarValues as eo, defaultSemanticColorVarValues as ep, defaultSemanticColors as eq, defaultSizes as er, defaultSizesVarValues as es, defaultSpace as et, defaultSpaceVarValues as eu, defaultTypography as ev, defaultTypographyVarValues as ew, defaultZIndex as ex, defaultZIndexVarValues as ey, elevationVars as ez, type CheckboxRenderProps as f, type TreeGroupNode as f0, type TreeItemNode as f1, type TreeNode as f2, type TreeNodes as f3, applyThemeVars as f4, assignPartialVars as f5, containerQueries as f6, containerQuery as f7, inlineVars as f8, unwrapCssVar as f9, reduceContract as fa, type CheckboxClassNames as g, type CheckboxAlignment as h, type CheckboxGroupProps as i, type CheckboxGroupRenderProps as j, type ChipProps as k, type ChipItemProps as l, type BaseChipProps as m, type ChipListProps as n, type ChipGroupProps as o, type ComboBoxProps as p, type ComboBoxClassNames as q, type ComboBoxMapping as r, type ComboBoxSizes as s, type DialogRenderProps as t, type DialogMapping as u, type DialogSizes as v, type DrawerProps as w, type DrawerTabListProps as x, type DrawerTabProps as y, type DrawerClassNames as z };