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