@backstage/ui 0.9.0-next.2 → 0.9.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 (170) hide show
  1. package/CHANGELOG.md +229 -0
  2. package/README.md +23 -0
  3. package/dist/components/Accordion/Accordion.esm.js +110 -0
  4. package/dist/components/Accordion/Accordion.esm.js.map +1 -0
  5. package/dist/components/Accordion/Accordion.module.css.esm.js +8 -0
  6. package/dist/components/Accordion/Accordion.module.css.esm.js.map +1 -0
  7. package/dist/components/Accordion/definition.esm.js +15 -0
  8. package/dist/components/Accordion/definition.esm.js.map +1 -0
  9. package/dist/components/Avatar/Avatar.esm.js +9 -5
  10. package/dist/components/Avatar/Avatar.esm.js.map +1 -1
  11. package/dist/components/Avatar/definition.esm.js +13 -0
  12. package/dist/components/Avatar/definition.esm.js.map +1 -0
  13. package/dist/components/Box/Box.esm.js +2 -1
  14. package/dist/components/Box/Box.esm.js.map +1 -1
  15. package/dist/components/Box/definition.esm.js +32 -0
  16. package/dist/components/Box/definition.esm.js.map +1 -0
  17. package/dist/components/Button/Button.esm.js +37 -14
  18. package/dist/components/Button/Button.esm.js.map +1 -1
  19. package/dist/components/Button/Button.module.css.esm.js +2 -2
  20. package/dist/components/Button/definition.esm.js +15 -0
  21. package/dist/components/Button/definition.esm.js.map +1 -0
  22. package/dist/components/ButtonIcon/ButtonIcon.esm.js +46 -10
  23. package/dist/components/ButtonIcon/ButtonIcon.esm.js.map +1 -1
  24. package/dist/components/ButtonIcon/definition.esm.js +10 -0
  25. package/dist/components/ButtonIcon/definition.esm.js.map +1 -0
  26. package/dist/components/ButtonLink/ButtonLink.esm.js +29 -36
  27. package/dist/components/ButtonLink/ButtonLink.esm.js.map +1 -1
  28. package/dist/components/ButtonLink/definition.esm.js +8 -0
  29. package/dist/components/ButtonLink/definition.esm.js.map +1 -0
  30. package/dist/components/Card/Card.esm.js +5 -4
  31. package/dist/components/Card/Card.esm.js.map +1 -1
  32. package/dist/components/Card/definition.esm.js +11 -0
  33. package/dist/components/Card/definition.esm.js.map +1 -0
  34. package/dist/components/Checkbox/Checkbox.esm.js +2 -1
  35. package/dist/components/Checkbox/Checkbox.esm.js.map +1 -1
  36. package/dist/components/Checkbox/definition.esm.js +12 -0
  37. package/dist/components/Checkbox/definition.esm.js.map +1 -0
  38. package/dist/components/Container/Container.esm.js +2 -1
  39. package/dist/components/Container/Container.esm.js.map +1 -1
  40. package/dist/components/Container/definition.esm.js +9 -0
  41. package/dist/components/Container/definition.esm.js.map +1 -0
  42. package/dist/components/Dialog/Dialog.esm.js +5 -4
  43. package/dist/components/Dialog/Dialog.esm.js.map +1 -1
  44. package/dist/components/Dialog/Dialog.module.css.esm.js +1 -1
  45. package/dist/components/Dialog/definition.esm.js +13 -0
  46. package/dist/components/Dialog/definition.esm.js.map +1 -0
  47. package/dist/components/FieldError/FieldError.esm.js +2 -1
  48. package/dist/components/FieldError/FieldError.esm.js.map +1 -1
  49. package/dist/components/FieldError/definition.esm.js +8 -0
  50. package/dist/components/FieldError/definition.esm.js.map +1 -0
  51. package/dist/components/FieldLabel/FieldLabel.esm.js +2 -1
  52. package/dist/components/FieldLabel/FieldLabel.esm.js.map +1 -1
  53. package/dist/components/FieldLabel/definition.esm.js +11 -0
  54. package/dist/components/FieldLabel/definition.esm.js.map +1 -0
  55. package/dist/components/Flex/Flex.esm.js +2 -1
  56. package/dist/components/Flex/Flex.esm.js.map +1 -1
  57. package/dist/components/Flex/definition.esm.js +28 -0
  58. package/dist/components/Flex/definition.esm.js.map +1 -0
  59. package/dist/components/Grid/Grid.esm.js +3 -2
  60. package/dist/components/Grid/Grid.esm.js.map +1 -1
  61. package/dist/components/Grid/definition.esm.js +32 -0
  62. package/dist/components/Grid/definition.esm.js.map +1 -0
  63. package/dist/components/Header/Header.esm.js +2 -1
  64. package/dist/components/Header/Header.esm.js.map +1 -1
  65. package/dist/components/Header/HeaderToolbar.esm.js +2 -1
  66. package/dist/components/Header/HeaderToolbar.esm.js.map +1 -1
  67. package/dist/components/Header/definition.esm.js +14 -0
  68. package/dist/components/Header/definition.esm.js.map +1 -0
  69. package/dist/components/HeaderPage/HeaderPage.esm.js +2 -1
  70. package/dist/components/HeaderPage/HeaderPage.esm.js.map +1 -1
  71. package/dist/components/HeaderPage/definition.esm.js +12 -0
  72. package/dist/components/HeaderPage/definition.esm.js.map +1 -0
  73. package/dist/components/Link/Link.esm.js +10 -6
  74. package/dist/components/Link/Link.esm.js.map +1 -1
  75. package/dist/components/Link/definition.esm.js +14 -0
  76. package/dist/components/Link/definition.esm.js.map +1 -0
  77. package/dist/components/Menu/Menu.esm.js +10 -9
  78. package/dist/components/Menu/Menu.esm.js.map +1 -1
  79. package/dist/components/Menu/Menu.module.css.esm.js +1 -1
  80. package/dist/components/Menu/definition.esm.js +23 -0
  81. package/dist/components/Menu/definition.esm.js.map +1 -0
  82. package/dist/components/Popover/Popover.module.css.esm.js +1 -1
  83. package/dist/components/Popover/definition.esm.js +8 -0
  84. package/dist/components/Popover/definition.esm.js.map +1 -0
  85. package/dist/components/RadioGroup/RadioGroup.esm.js +3 -2
  86. package/dist/components/RadioGroup/RadioGroup.esm.js.map +1 -1
  87. package/dist/components/RadioGroup/definition.esm.js +10 -0
  88. package/dist/components/RadioGroup/definition.esm.js.map +1 -0
  89. package/dist/components/SearchField/SearchField.esm.js +2 -1
  90. package/dist/components/SearchField/SearchField.esm.js.map +1 -1
  91. package/dist/components/SearchField/SearchField.module.css.esm.js +2 -2
  92. package/dist/components/SearchField/definition.esm.js +16 -0
  93. package/dist/components/SearchField/definition.esm.js.map +1 -0
  94. package/dist/components/Select/Select.esm.js +28 -59
  95. package/dist/components/Select/Select.esm.js.map +1 -1
  96. package/dist/components/Select/Select.module.css.esm.js +2 -2
  97. package/dist/components/Select/SelectContent.esm.js +56 -0
  98. package/dist/components/Select/SelectContent.esm.js.map +1 -0
  99. package/dist/components/Select/SelectListBox.esm.js +55 -0
  100. package/dist/components/Select/SelectListBox.esm.js.map +1 -0
  101. package/dist/components/Select/SelectTrigger.esm.js +24 -0
  102. package/dist/components/Select/SelectTrigger.esm.js.map +1 -0
  103. package/dist/components/Select/definition.esm.js +23 -0
  104. package/dist/components/Select/definition.esm.js.map +1 -0
  105. package/dist/components/Skeleton/Skeleton.esm.js +2 -1
  106. package/dist/components/Skeleton/Skeleton.esm.js.map +1 -1
  107. package/dist/components/Skeleton/definition.esm.js +8 -0
  108. package/dist/components/Skeleton/definition.esm.js.map +1 -0
  109. package/dist/components/Switch/Switch.esm.js +2 -1
  110. package/dist/components/Switch/Switch.esm.js.map +1 -1
  111. package/dist/components/Switch/definition.esm.js +9 -0
  112. package/dist/components/Switch/definition.esm.js.map +1 -0
  113. package/dist/components/Table/components/Cell.esm.js +2 -1
  114. package/dist/components/Table/components/Cell.esm.js.map +1 -1
  115. package/dist/components/Table/components/CellProfile.esm.js +5 -7
  116. package/dist/components/Table/components/CellProfile.esm.js.map +1 -1
  117. package/dist/components/Table/components/Column.esm.js +2 -4
  118. package/dist/components/Table/components/Column.esm.js.map +1 -1
  119. package/dist/components/Table/components/Row.esm.js +4 -4
  120. package/dist/components/Table/components/Row.esm.js.map +1 -1
  121. package/dist/components/Table/components/Table.esm.js +2 -4
  122. package/dist/components/Table/components/Table.esm.js.map +1 -1
  123. package/dist/components/Table/components/TableBody.esm.js +2 -4
  124. package/dist/components/Table/components/TableBody.esm.js.map +1 -1
  125. package/dist/components/Table/components/TableHeader.esm.js +2 -4
  126. package/dist/components/Table/components/TableHeader.esm.js.map +1 -1
  127. package/dist/components/Table/definition.esm.js +24 -0
  128. package/dist/components/Table/definition.esm.js.map +1 -0
  129. package/dist/components/TablePagination/TablePagination.esm.js +2 -1
  130. package/dist/components/TablePagination/TablePagination.esm.js.map +1 -1
  131. package/dist/components/TablePagination/definition.esm.js +11 -0
  132. package/dist/components/TablePagination/definition.esm.js.map +1 -0
  133. package/dist/components/Tabs/Tabs.esm.js +5 -4
  134. package/dist/components/Tabs/Tabs.esm.js.map +1 -1
  135. package/dist/components/Tabs/TabsIndicators.esm.js +2 -1
  136. package/dist/components/Tabs/TabsIndicators.esm.js.map +1 -1
  137. package/dist/components/Tabs/definition.esm.js +14 -0
  138. package/dist/components/Tabs/definition.esm.js.map +1 -0
  139. package/dist/components/TagGroup/TagGroup.esm.js +3 -2
  140. package/dist/components/TagGroup/TagGroup.esm.js.map +1 -1
  141. package/dist/components/TagGroup/definition.esm.js +12 -0
  142. package/dist/components/TagGroup/definition.esm.js.map +1 -0
  143. package/dist/components/Text/Text.esm.js +10 -6
  144. package/dist/components/Text/Text.esm.js.map +1 -1
  145. package/dist/components/Text/definition.esm.js +14 -0
  146. package/dist/components/Text/definition.esm.js.map +1 -0
  147. package/dist/components/TextField/TextField.esm.js +2 -1
  148. package/dist/components/TextField/TextField.esm.js.map +1 -1
  149. package/dist/components/TextField/definition.esm.js +17 -0
  150. package/dist/components/TextField/definition.esm.js.map +1 -0
  151. package/dist/components/Tooltip/Tooltip.esm.js +2 -1
  152. package/dist/components/Tooltip/Tooltip.esm.js.map +1 -1
  153. package/dist/components/Tooltip/definition.esm.js +9 -0
  154. package/dist/components/Tooltip/definition.esm.js.map +1 -0
  155. package/dist/components/VisuallyHidden/VisuallyHidden.esm.js +5 -1
  156. package/dist/components/VisuallyHidden/VisuallyHidden.esm.js.map +1 -1
  157. package/dist/components/VisuallyHidden/definition.esm.js +8 -0
  158. package/dist/components/VisuallyHidden/definition.esm.js.map +1 -0
  159. package/dist/hooks/useStyles.esm.js +1 -3
  160. package/dist/hooks/useStyles.esm.js.map +1 -1
  161. package/dist/index.d.ts +524 -363
  162. package/dist/index.esm.js +31 -2
  163. package/dist/index.esm.js.map +1 -1
  164. package/package.json +2 -3
  165. package/dist/components/Collapsible/Collapsible.esm.js +0 -55
  166. package/dist/components/Collapsible/Collapsible.esm.js.map +0 -1
  167. package/dist/components/Collapsible/Collapsible.module.css.esm.js +0 -8
  168. package/dist/components/Collapsible/Collapsible.module.css.esm.js.map +0 -1
  169. package/dist/utils/componentDefinitions.esm.js +0 -388
  170. package/dist/utils/componentDefinitions.esm.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,340 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ComponentProps } from 'react';
3
- import { ButtonProps as ButtonProps$1, DialogTriggerProps as DialogTriggerProps$1, ModalOverlayProps, HeadingProps, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, TabPanelProps as TabPanelProps$1, LinkProps as LinkProps$1, CheckboxProps as CheckboxProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, TableProps, TableHeaderProps, TableBodyProps, ColumnProps as ColumnProps$1, CellProps as CellProps$1, RowProps, TagGroupProps as TagGroupProps$1, TagListProps, TagProps as TagProps$1, TextFieldProps as TextFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps, MenuTriggerProps as MenuTriggerProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, MenuProps as MenuProps$1, PopoverProps, ListBoxProps, MenuItemProps as MenuItemProps$1, ListBoxItemProps, MenuSectionProps as MenuSectionProps$1, SeparatorProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1 } from 'react-aria-components';
3
+ import { ButtonProps as ButtonProps$1, DisclosureProps, HeadingProps, DisclosurePanelProps, DisclosureGroupProps, DialogTriggerProps as DialogTriggerProps$1, ModalOverlayProps, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, TabPanelProps as TabPanelProps$1, LinkProps as LinkProps$1, CheckboxProps as CheckboxProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, TableProps, TableHeaderProps, TableBodyProps, ColumnProps as ColumnProps$1, CellProps as CellProps$1, RowProps, TagGroupProps as TagGroupProps$1, TagListProps, TagProps as TagProps$1, TextFieldProps as TextFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps, MenuTriggerProps as MenuTriggerProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, MenuProps as MenuProps$1, PopoverProps, ListBoxProps, MenuItemProps as MenuItemProps$1, ListBoxItemProps, MenuSectionProps as MenuSectionProps$1, SeparatorProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1 } from 'react-aria-components';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { NavigateOptions } from 'react-router-dom';
6
- import { Collapsible as Collapsible$1 } from '@base-ui-components/react/collapsible';
7
-
8
- /**
9
- * Component definitions for the Backstage UI library
10
- * @public
11
- */
12
- declare const componentDefinitions: {
13
- readonly Avatar: {
14
- readonly classNames: {
15
- readonly root: "bui-AvatarRoot";
16
- readonly image: "bui-AvatarImage";
17
- readonly fallback: "bui-AvatarFallback";
18
- };
19
- readonly dataAttributes: {
20
- readonly size: readonly ["small", "medium", "large"];
21
- };
22
- };
23
- readonly Box: {
24
- readonly classNames: {
25
- readonly root: "bui-Box";
26
- };
27
- readonly utilityProps: ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "position", "display", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight"];
28
- };
29
- readonly Button: {
30
- readonly classNames: {
31
- readonly root: "bui-Button";
32
- };
33
- readonly dataAttributes: {
34
- readonly size: readonly ["small", "medium", "large"];
35
- readonly variant: readonly ["primary", "secondary", "tertiary"];
36
- };
37
- };
38
- readonly ButtonIcon: {
39
- readonly classNames: {
40
- readonly root: "bui-ButtonIcon";
41
- };
42
- };
43
- readonly ButtonLink: {
44
- readonly classNames: {
45
- readonly root: "bui-ButtonLink";
46
- };
47
- };
48
- readonly Card: {
49
- readonly classNames: {
50
- readonly root: "bui-Card";
51
- readonly header: "bui-CardHeader";
52
- readonly body: "bui-CardBody";
53
- readonly footer: "bui-CardFooter";
54
- };
55
- };
56
- readonly Checkbox: {
57
- readonly classNames: {
58
- readonly root: "bui-Checkbox";
59
- readonly indicator: "bui-CheckboxIndicator";
60
- };
61
- readonly dataAttributes: {
62
- readonly selected: readonly [true, false];
63
- };
64
- };
65
- readonly Collapsible: {
66
- readonly classNames: {
67
- readonly root: "bui-CollapsibleRoot";
68
- readonly trigger: "bui-CollapsibleTrigger";
69
- readonly panel: "bui-CollapsiblePanel";
70
- };
71
- };
72
- readonly Container: {
73
- readonly classNames: {
74
- readonly root: "bui-Container";
75
- };
76
- readonly utilityProps: ["my", "mt", "mb", "py", "pt", "pb", "display"];
77
- };
78
- readonly Dialog: {
79
- readonly classNames: {
80
- readonly overlay: "bui-DialogOverlay";
81
- readonly dialog: "bui-Dialog";
82
- readonly header: "bui-DialogHeader";
83
- readonly headerTitle: "bui-DialogHeaderTitle";
84
- readonly body: "bui-DialogBody";
85
- readonly footer: "bui-DialogFooter";
86
- };
87
- };
88
- readonly FieldError: {
89
- readonly classNames: {
90
- readonly root: "bui-FieldError";
91
- };
92
- };
93
- readonly FieldLabel: {
94
- readonly classNames: {
95
- readonly root: "bui-FieldLabelWrapper";
96
- readonly label: "bui-FieldLabel";
97
- readonly secondaryLabel: "bui-FieldSecondaryLabel";
98
- readonly description: "bui-FieldDescription";
99
- };
100
- };
101
- readonly Flex: {
102
- readonly classNames: {
103
- readonly root: "bui-Flex";
104
- };
105
- readonly utilityProps: ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "gap", "align", "justify", "direction"];
106
- };
107
- readonly Grid: {
108
- readonly classNames: {
109
- readonly root: "bui-Grid";
110
- };
111
- readonly utilityProps: ["columns", "gap", "m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py"];
112
- };
113
- readonly GridItem: {
114
- readonly classNames: {
115
- readonly root: "bui-GridItem";
116
- };
117
- readonly utilityProps: ["colSpan", "colEnd", "colStart", "rowSpan"];
118
- };
119
- readonly Header: {
120
- readonly classNames: {
121
- readonly toolbar: "bui-HeaderToolbar";
122
- readonly toolbarWrapper: "bui-HeaderToolbarWrapper";
123
- readonly toolbarContent: "bui-HeaderToolbarContent";
124
- readonly toolbarControls: "bui-HeaderToolbarControls";
125
- readonly toolbarIcon: "bui-HeaderToolbarIcon";
126
- readonly toolbarName: "bui-HeaderToolbarName";
127
- readonly tabsWrapper: "bui-HeaderTabsWrapper";
128
- };
129
- };
130
- readonly HeaderPage: {
131
- readonly classNames: {
132
- readonly root: "bui-HeaderPage";
133
- readonly content: "bui-HeaderPageContent";
134
- readonly breadcrumbs: "bui-HeaderPageBreadcrumbs";
135
- readonly tabsWrapper: "bui-HeaderPageTabsWrapper";
136
- readonly controls: "bui-HeaderPageControls";
137
- };
138
- };
139
- readonly Heading: {
140
- readonly classNames: {
141
- readonly root: "bui-Heading";
142
- };
143
- readonly dataAttributes: {
144
- readonly variant: readonly ["title1", "title2", "title3", "subtitle"];
145
- readonly color: readonly ["primary", "secondary", "muted"];
146
- readonly truncate: readonly [true, false];
147
- };
148
- };
149
- readonly Icon: {
150
- readonly classNames: {
151
- readonly root: "bui-Icon";
152
- };
153
- };
154
- readonly Link: {
155
- readonly classNames: {
156
- readonly root: "bui-Link";
157
- };
158
- readonly dataAttributes: {
159
- readonly variant: readonly ["subtitle", "body", "caption", "label"];
160
- readonly weight: readonly ["regular", "bold"];
161
- readonly color: readonly ["primary", "secondary", "danger", "warning", "success"];
162
- readonly truncate: readonly [true, false];
163
- };
164
- };
165
- readonly List: {
166
- readonly classNames: {
167
- readonly root: "bui-List";
168
- readonly row: "bui-ListRow";
169
- readonly label: "bui-ListLabel";
170
- };
171
- };
172
- readonly Menu: {
173
- readonly classNames: {
174
- readonly root: "bui-Menu";
175
- readonly popover: "bui-MenuPopover";
176
- readonly content: "bui-MenuContent";
177
- readonly section: "bui-MenuSection";
178
- readonly sectionHeader: "bui-MenuSectionHeader";
179
- readonly item: "bui-MenuItem";
180
- readonly itemListBox: "bui-MenuItemListBox";
181
- readonly itemListBoxCheck: "bui-MenuItemListBoxCheck";
182
- readonly itemWrapper: "bui-MenuItemWrapper";
183
- readonly itemContent: "bui-MenuItemContent";
184
- readonly itemArrow: "bui-MenuItemArrow";
185
- readonly separator: "bui-MenuSeparator";
186
- readonly searchField: "bui-MenuSearchField";
187
- readonly searchFieldInput: "bui-MenuSearchFieldInput";
188
- readonly searchFieldClear: "bui-MenuSearchFieldClear";
189
- readonly emptyState: "bui-MenuEmptyState";
190
- };
191
- };
192
- readonly PasswordField: {
193
- readonly classNames: {
194
- readonly root: "bui-PasswordField";
195
- readonly inputVisibility: "bui-InputVisibility";
196
- };
197
- readonly dataAttributes: {
198
- readonly size: readonly ["small", "medium"];
199
- };
200
- };
201
- readonly Popover: {
202
- readonly classNames: {
203
- readonly root: "bui-Popover";
204
- };
205
- };
206
- readonly RadioGroup: {
207
- readonly classNames: {
208
- readonly root: "bui-RadioGroup";
209
- readonly content: "bui-RadioGroupContent";
210
- readonly radio: "bui-Radio";
211
- };
212
- };
213
- readonly SearchField: {
214
- readonly classNames: {
215
- readonly root: "bui-SearchField";
216
- readonly clear: "bui-SearchFieldClear";
217
- readonly inputWrapper: "bui-SearchFieldWrapper";
218
- readonly input: "bui-SearchFieldInput";
219
- readonly inputIcon: "bui-SearchFieldInputIcon";
220
- };
221
- readonly dataAttributes: {
222
- readonly startCollapsed: readonly [true, false];
223
- readonly size: readonly ["small", "medium"];
224
- };
225
- };
226
- readonly Select: {
227
- readonly classNames: {
228
- readonly root: "bui-Select";
229
- readonly trigger: "bui-SelectTrigger";
230
- readonly value: "bui-SelectValue";
231
- readonly icon: "bui-SelectIcon";
232
- readonly list: "bui-SelectList";
233
- readonly item: "bui-SelectItem";
234
- readonly itemIndicator: "bui-SelectItemIndicator";
235
- readonly itemLabel: "bui-SelectItemLabel";
236
- };
237
- readonly dataAttributes: {
238
- readonly size: readonly ["small", "medium"];
239
- };
240
- };
241
- readonly Skeleton: {
242
- readonly classNames: {
243
- readonly root: "bui-Skeleton";
244
- };
245
- };
246
- readonly Switch: {
247
- readonly classNames: {
248
- readonly root: "bui-Switch";
249
- readonly indicator: "bui-SwitchIndicator";
250
- };
251
- };
252
- readonly Table: {
253
- readonly classNames: {
254
- readonly table: "bui-Table";
255
- readonly header: "bui-TableHeader";
256
- readonly body: "bui-TableBody";
257
- readonly row: "bui-TableRow";
258
- readonly head: "bui-TableHead";
259
- readonly headContent: "bui-TableHeadContent";
260
- readonly headSortButton: "bui-TableHeadSortButton";
261
- readonly caption: "bui-TableCaption";
262
- readonly cell: "bui-TableCell";
263
- readonly cellContentWrapper: "bui-TableCellContentWrapper";
264
- readonly cellContent: "bui-TableCellContent";
265
- readonly cellIcon: "bui-TableCellIcon";
266
- readonly cellProfileAvatar: "bui-TableCellProfileAvatar";
267
- readonly cellProfileAvatarImage: "bui-TableCellProfileAvatarImage";
268
- readonly cellProfileAvatarFallback: "bui-TableCellProfileAvatarFallback";
269
- readonly cellProfileName: "bui-TableCellProfileName";
270
- readonly cellProfileLink: "bui-TableCellProfileLink";
271
- };
272
- };
273
- readonly TablePagination: {
274
- readonly classNames: {
275
- readonly root: "bui-TablePagination";
276
- readonly left: "bui-TablePaginationLeft";
277
- readonly right: "bui-TablePaginationRight";
278
- readonly select: "bui-TablePaginationSelect";
279
- };
280
- };
281
- readonly Tabs: {
282
- readonly classNames: {
283
- readonly tabs: "bui-Tabs";
284
- readonly tabList: "bui-TabList";
285
- readonly tabListWrapper: "bui-TabListWrapper";
286
- readonly tab: "bui-Tab";
287
- readonly tabActive: "bui-TabActive";
288
- readonly tabHovered: "bui-TabHovered";
289
- readonly panel: "bui-TabPanel";
290
- };
291
- };
292
- readonly TagGroup: {
293
- readonly classNames: {
294
- readonly group: "bui-TagGroup";
295
- readonly list: "bui-TagList";
296
- readonly tag: "bui-Tag";
297
- readonly tagIcon: "bui-TagIcon";
298
- readonly tagRemoveButton: "bui-TagRemoveButton";
299
- };
300
- };
301
- readonly Text: {
302
- readonly classNames: {
303
- readonly root: "bui-Text";
304
- };
305
- readonly dataAttributes: {
306
- readonly variant: readonly ["subtitle", "body", "caption", "label"];
307
- readonly weight: readonly ["regular", "bold"];
308
- readonly color: readonly ["primary", "secondary", "danger", "warning", "success"];
309
- readonly truncate: readonly [true, false];
310
- };
311
- };
312
- readonly TextField: {
313
- readonly classNames: {
314
- readonly root: "bui-TextField";
315
- readonly inputWrapper: "bui-InputWrapper";
316
- readonly input: "bui-Input";
317
- readonly inputIcon: "bui-InputIcon";
318
- readonly inputAction: "bui-InputAction";
319
- };
320
- readonly dataAttributes: {
321
- readonly invalid: readonly [true, false];
322
- readonly disabled: readonly [true, false];
323
- readonly size: readonly ["small", "medium"];
324
- };
325
- };
326
- readonly Tooltip: {
327
- readonly classNames: {
328
- readonly tooltip: "bui-Tooltip";
329
- readonly arrow: "bui-TooltipArrow";
330
- };
331
- };
332
- readonly VisuallyHidden: {
333
- readonly classNames: {
334
- readonly root: "bui-VisuallyHidden";
335
- };
336
- };
337
- };
338
6
 
339
7
  /** @public */
340
8
  type Breakpoint = 'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -423,16 +91,6 @@ interface ComponentDefinition {
423
91
  dataAttributes?: DataAttributesMap;
424
92
  utilityProps?: string[];
425
93
  }
426
- /**
427
- * Type utilities for extracting information from the component styles
428
- * @public
429
- */
430
- type ComponentDefinitionName = keyof typeof componentDefinitions;
431
- /**
432
- * Helper type to extract class names for a component
433
- * @public
434
- */
435
- type ComponentClassNames<T extends ComponentDefinitionName> = (typeof componentDefinitions)[T]['classNames'];
436
94
 
437
95
  /** @public */
438
96
  interface BoxProps extends SpaceProps {
@@ -453,6 +111,17 @@ interface BoxProps extends SpaceProps {
453
111
  /** @public */
454
112
  declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
455
113
 
114
+ /**
115
+ * Component definition for Box
116
+ * @public
117
+ */
118
+ declare const BoxDefinition: {
119
+ readonly classNames: {
120
+ readonly root: "bui-Box";
121
+ };
122
+ readonly utilityProps: ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "position", "display", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight"];
123
+ };
124
+
456
125
  /** @public */
457
126
  interface GridProps extends SpaceProps {
458
127
  children?: React.ReactNode;
@@ -478,6 +147,27 @@ declare const Grid: {
478
147
  Item: react.ForwardRefExoticComponent<GridItemProps & react.RefAttributes<HTMLDivElement>>;
479
148
  };
480
149
 
150
+ /**
151
+ * Component definition for Grid
152
+ * @public
153
+ */
154
+ declare const GridDefinition: {
155
+ readonly classNames: {
156
+ readonly root: "bui-Grid";
157
+ };
158
+ readonly utilityProps: ["columns", "gap", "m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py"];
159
+ };
160
+ /**
161
+ * Component definition for GridItem
162
+ * @public
163
+ */
164
+ declare const GridItemDefinition: {
165
+ readonly classNames: {
166
+ readonly root: "bui-GridItem";
167
+ };
168
+ readonly utilityProps: ["colSpan", "colEnd", "colStart", "rowSpan"];
169
+ };
170
+
481
171
  /** @public */
482
172
  interface FlexProps extends SpaceProps {
483
173
  children?: React.ReactNode;
@@ -492,6 +182,17 @@ interface FlexProps extends SpaceProps {
492
182
  /** @public */
493
183
  declare const Flex: react.ForwardRefExoticComponent<FlexProps & react.RefAttributes<HTMLDivElement>>;
494
184
 
185
+ /**
186
+ * Component definition for Flex
187
+ * @public
188
+ */
189
+ declare const FlexDefinition: {
190
+ readonly classNames: {
191
+ readonly root: "bui-Flex";
192
+ };
193
+ readonly utilityProps: ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "gap", "align", "justify", "direction"];
194
+ };
195
+
495
196
  /** @public */
496
197
  interface ContainerProps {
497
198
  children?: React.ReactNode;
@@ -508,6 +209,17 @@ interface ContainerProps {
508
209
  /** @public */
509
210
  declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLDivElement>>;
510
211
 
212
+ /**
213
+ * Component definition for Container
214
+ * @public
215
+ */
216
+ declare const ContainerDefinition: {
217
+ readonly classNames: {
218
+ readonly root: "bui-Container";
219
+ };
220
+ readonly utilityProps: ["my", "mt", "mb", "py", "pt", "pb", "display"];
221
+ };
222
+
511
223
  /** @public */
512
224
  interface AvatarProps extends React.ComponentPropsWithoutRef<'div'> {
513
225
  /**
@@ -535,6 +247,21 @@ interface AvatarProps extends React.ComponentPropsWithoutRef<'div'> {
535
247
  /** @public */
536
248
  declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLDivElement>>;
537
249
 
250
+ /**
251
+ * Component definition for Avatar
252
+ * @public
253
+ */
254
+ declare const AvatarDefinition: {
255
+ readonly classNames: {
256
+ readonly root: "bui-AvatarRoot";
257
+ readonly image: "bui-AvatarImage";
258
+ readonly fallback: "bui-AvatarFallback";
259
+ };
260
+ readonly dataAttributes: {
261
+ readonly size: readonly ["small", "medium", "large"];
262
+ };
263
+ };
264
+
538
265
  /**
539
266
  * Properties for {@link Button}
540
267
  *
@@ -546,11 +273,29 @@ interface ButtonProps extends ButtonProps$1 {
546
273
  iconStart?: ReactElement;
547
274
  iconEnd?: ReactElement;
548
275
  children?: ReactNode;
276
+ loading?: boolean;
549
277
  }
550
278
 
551
279
  /** @public */
552
280
  declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
553
281
 
282
+ /**
283
+ * Component definition for Button
284
+ * @public
285
+ */
286
+ declare const ButtonDefinition: {
287
+ readonly classNames: {
288
+ readonly root: "bui-Button";
289
+ readonly content: "bui-ButtonContent";
290
+ readonly spinner: "bui-ButtonSpinner";
291
+ };
292
+ readonly dataAttributes: {
293
+ readonly size: readonly ["small", "medium", "large"];
294
+ readonly variant: readonly ["primary", "secondary", "tertiary"];
295
+ readonly loading: readonly [true, false];
296
+ };
297
+ };
298
+
554
299
  /**
555
300
  * Props for the Card component.
556
301
  *
@@ -610,15 +355,79 @@ declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.Re
610
355
  declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
611
356
 
612
357
  /**
613
- * Collapsible is a component that allows you to collapse and expand content.
614
- * It is a wrapper around the CollapsiblePrimitive component from base-ui-components.
615
- *
358
+ * Component definition for Card
616
359
  * @public
617
360
  */
618
- declare const Collapsible: {
619
- Root: react.ForwardRefExoticComponent<Omit<Collapsible$1.Root.Props & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
620
- Trigger: react.ForwardRefExoticComponent<Omit<Collapsible$1.Trigger.Props & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
621
- Panel: react.ForwardRefExoticComponent<Omit<Collapsible$1.Panel.Props & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
361
+ declare const CardDefinition: {
362
+ readonly classNames: {
363
+ readonly root: "bui-Card";
364
+ readonly header: "bui-CardHeader";
365
+ readonly body: "bui-CardBody";
366
+ readonly footer: "bui-CardFooter";
367
+ };
368
+ };
369
+
370
+ /**
371
+ * Props for the Accordion component.
372
+ * @public
373
+ */
374
+ interface AccordionProps extends DisclosureProps {
375
+ className?: string;
376
+ }
377
+ /**
378
+ * Props for the AccordionTrigger component.
379
+ * @public
380
+ */
381
+ interface AccordionTriggerProps extends HeadingProps {
382
+ className?: string;
383
+ title?: string;
384
+ subtitle?: string;
385
+ children?: React.ReactNode;
386
+ }
387
+ /**
388
+ * Props for the AccordionPanel component.
389
+ * @public
390
+ */
391
+ interface AccordionPanelProps extends DisclosurePanelProps {
392
+ className?: string;
393
+ }
394
+ /**
395
+ * Props for the AccordionGroup component.
396
+ * @public
397
+ */
398
+ interface AccordionGroupProps extends DisclosureGroupProps {
399
+ className?: string;
400
+ /**
401
+ * Whether multiple accordions can be expanded at the same time.
402
+ * @defaultValue false
403
+ */
404
+ allowsMultiple?: boolean;
405
+ }
406
+
407
+ /** @public */
408
+ declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
409
+ /** @public */
410
+ declare const AccordionTrigger: react.ForwardRefExoticComponent<AccordionTriggerProps & react.RefAttributes<HTMLHeadingElement>>;
411
+ /** @public */
412
+ declare const AccordionPanel: react.ForwardRefExoticComponent<AccordionPanelProps & react.RefAttributes<HTMLDivElement>>;
413
+ /** @public */
414
+ declare const AccordionGroup: react.ForwardRefExoticComponent<AccordionGroupProps & react.RefAttributes<HTMLDivElement>>;
415
+
416
+ /**
417
+ * Component definition for Accordion
418
+ * @public
419
+ */
420
+ declare const AccordionDefinition: {
421
+ readonly classNames: {
422
+ readonly root: "bui-Accordion";
423
+ readonly trigger: "bui-AccordionTrigger";
424
+ readonly triggerButton: "bui-AccordionTriggerButton";
425
+ readonly triggerTitle: "bui-AccordionTriggerTitle";
426
+ readonly triggerSubtitle: "bui-AccordionTriggerSubtitle";
427
+ readonly triggerIcon: "bui-AccordionTriggerIcon";
428
+ readonly panel: "bui-AccordionPanel";
429
+ readonly group: "bui-AccordionGroup";
430
+ };
622
431
  };
623
432
 
624
433
  /**
@@ -665,6 +474,21 @@ declare const DialogBody: react.ForwardRefExoticComponent<DialogBodyProps & reac
665
474
  /** @public */
666
475
  declare const DialogFooter: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
667
476
 
477
+ /**
478
+ * Component definition for Dialog
479
+ * @public
480
+ */
481
+ declare const DialogDefinition: {
482
+ readonly classNames: {
483
+ readonly overlay: "bui-DialogOverlay";
484
+ readonly dialog: "bui-Dialog";
485
+ readonly header: "bui-DialogHeader";
486
+ readonly headerTitle: "bui-DialogHeaderTitle";
487
+ readonly body: "bui-DialogBody";
488
+ readonly footer: "bui-DialogFooter";
489
+ };
490
+ };
491
+
668
492
  /** @public */
669
493
  interface FieldLabelProps extends Pick<React.HTMLAttributes<HTMLDivElement>, 'className'> {
670
494
  /**
@@ -692,6 +516,19 @@ interface FieldLabelProps extends Pick<React.HTMLAttributes<HTMLDivElement>, 'cl
692
516
  /** @public */
693
517
  declare const FieldLabel: react.ForwardRefExoticComponent<FieldLabelProps & react.RefAttributes<HTMLDivElement>>;
694
518
 
519
+ /**
520
+ * Component definition for FieldLabel
521
+ * @public
522
+ */
523
+ declare const FieldLabelDefinition: {
524
+ readonly classNames: {
525
+ readonly root: "bui-FieldLabelWrapper";
526
+ readonly label: "bui-FieldLabel";
527
+ readonly secondaryLabel: "bui-FieldSecondaryLabel";
528
+ readonly description: "bui-FieldDescription";
529
+ };
530
+ };
531
+
695
532
  /**
696
533
  * Strategies for matching the current route to determine which tab should be active.
697
534
  *
@@ -758,6 +595,22 @@ declare const Tab: (props: TabProps) => react_jsx_runtime.JSX.Element;
758
595
  */
759
596
  declare const TabPanel: (props: TabPanelProps) => react_jsx_runtime.JSX.Element;
760
597
 
598
+ /**
599
+ * Component definition for Tabs
600
+ * @public
601
+ */
602
+ declare const TabsDefinition: {
603
+ readonly classNames: {
604
+ readonly tabs: "bui-Tabs";
605
+ readonly tabList: "bui-TabList";
606
+ readonly tabListWrapper: "bui-TabListWrapper";
607
+ readonly tab: "bui-Tab";
608
+ readonly tabActive: "bui-TabActive";
609
+ readonly tabHovered: "bui-TabHovered";
610
+ readonly panel: "bui-TabPanel";
611
+ };
612
+ };
613
+
761
614
  /**
762
615
  * Props for the main Header component.
763
616
  *
@@ -801,6 +654,22 @@ declare module 'react-aria-components' {
801
654
  */
802
655
  declare const Header: (props: HeaderProps) => react_jsx_runtime.JSX.Element;
803
656
 
657
+ /**
658
+ * Component definition for Header
659
+ * @public
660
+ */
661
+ declare const HeaderDefinition: {
662
+ readonly classNames: {
663
+ readonly toolbar: "bui-HeaderToolbar";
664
+ readonly toolbarWrapper: "bui-HeaderToolbarWrapper";
665
+ readonly toolbarContent: "bui-HeaderToolbarContent";
666
+ readonly toolbarControls: "bui-HeaderToolbarControls";
667
+ readonly toolbarIcon: "bui-HeaderToolbarIcon";
668
+ readonly toolbarName: "bui-HeaderToolbarName";
669
+ readonly tabsWrapper: "bui-HeaderTabsWrapper";
670
+ };
671
+ };
672
+
804
673
  /**
805
674
  * Props for the main HeaderPage component.
806
675
  *
@@ -830,6 +699,20 @@ interface HeaderPageBreadcrumb {
830
699
  */
831
700
  declare const HeaderPage: (props: HeaderPageProps) => react_jsx_runtime.JSX.Element;
832
701
 
702
+ /**
703
+ * Component definition for HeaderPage
704
+ * @public
705
+ */
706
+ declare const HeaderPageDefinition: {
707
+ readonly classNames: {
708
+ readonly root: "bui-HeaderPage";
709
+ readonly content: "bui-HeaderPageContent";
710
+ readonly breadcrumbs: "bui-HeaderPageBreadcrumbs";
711
+ readonly tabsWrapper: "bui-HeaderPageTabsWrapper";
712
+ readonly controls: "bui-HeaderPageControls";
713
+ };
714
+ };
715
+
833
716
  /**
834
717
  * Properties for {@link ButtonIcon}
835
718
  *
@@ -839,11 +722,24 @@ interface ButtonIconProps extends ButtonProps$1 {
839
722
  size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
840
723
  variant?: 'primary' | 'secondary' | 'tertiary' | Partial<Record<Breakpoint, 'primary' | 'secondary' | 'tertiary'>>;
841
724
  icon?: ReactElement;
725
+ loading?: boolean;
842
726
  }
843
727
 
844
728
  /** @public */
845
729
  declare const ButtonIcon: react.ForwardRefExoticComponent<ButtonIconProps & react.RefAttributes<HTMLButtonElement>>;
846
730
 
731
+ /**
732
+ * Component definition for ButtonIcon
733
+ * @public
734
+ */
735
+ declare const ButtonIconDefinition: {
736
+ readonly classNames: {
737
+ readonly root: "bui-ButtonIcon";
738
+ readonly content: "bui-ButtonIconContent";
739
+ readonly spinner: "bui-ButtonIconSpinner";
740
+ };
741
+ };
742
+
847
743
  /**
848
744
  * Properties for {@link ButtonLink}
849
745
  *
@@ -860,6 +756,16 @@ interface ButtonLinkProps extends LinkProps$1 {
860
756
  /** @public */
861
757
  declare const ButtonLink: react.ForwardRefExoticComponent<ButtonLinkProps & react.RefAttributes<HTMLAnchorElement>>;
862
758
 
759
+ /**
760
+ * Component definition for ButtonLink
761
+ * @public
762
+ */
763
+ declare const ButtonLinkDefinition: {
764
+ readonly classNames: {
765
+ readonly root: "bui-ButtonLink";
766
+ };
767
+ };
768
+
863
769
  /** @public */
864
770
  interface CheckboxProps extends CheckboxProps$1 {
865
771
  children: React.ReactNode;
@@ -868,6 +774,20 @@ interface CheckboxProps extends CheckboxProps$1 {
868
774
  /** @public */
869
775
  declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLLabelElement>>;
870
776
 
777
+ /**
778
+ * Component definition for Checkbox
779
+ * @public
780
+ */
781
+ declare const CheckboxDefinition: {
782
+ readonly classNames: {
783
+ readonly root: "bui-Checkbox";
784
+ readonly indicator: "bui-CheckboxIndicator";
785
+ };
786
+ readonly dataAttributes: {
787
+ readonly selected: readonly [true, false];
788
+ };
789
+ };
790
+
871
791
  /** @public */
872
792
  interface RadioGroupProps extends Omit<RadioGroupProps$1, 'children'>, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> {
873
793
  children?: ReactNode;
@@ -881,6 +801,18 @@ declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & reac
881
801
  /** @public */
882
802
  declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLLabelElement>>;
883
803
 
804
+ /**
805
+ * Component definition for RadioGroup
806
+ * @public
807
+ */
808
+ declare const RadioGroupDefinition: {
809
+ readonly classNames: {
810
+ readonly root: "bui-RadioGroup";
811
+ readonly content: "bui-RadioGroupContent";
812
+ readonly radio: "bui-Radio";
813
+ };
814
+ };
815
+
884
816
  /** @public */
885
817
  declare const Table: (props: TableProps) => react_jsx_runtime.JSX.Element;
886
818
 
@@ -894,7 +826,7 @@ declare const TableBody: <T extends object>(props: TableBodyProps<T>) => react_j
894
826
  interface CellProps extends CellProps$1 {
895
827
  title: string;
896
828
  description?: string;
897
- color?: 'primary' | 'secondary';
829
+ color?: TextColors;
898
830
  leadingIcon?: React.ReactNode | null;
899
831
  href?: string;
900
832
  }
@@ -904,7 +836,7 @@ interface CellProfileProps extends CellProps$1 {
904
836
  name?: string;
905
837
  href?: string;
906
838
  description?: string;
907
- color?: 'primary' | 'secondary';
839
+ color?: TextColors;
908
840
  }
909
841
  /** @public */
910
842
  interface ColumnProps extends Omit<ColumnProps$1, 'children'> {
@@ -1006,6 +938,32 @@ interface UseTableResult<T = any> {
1006
938
  */
1007
939
  declare function useTable<T = any>(config?: UseTableConfig<T>): UseTableResult<T>;
1008
940
 
941
+ /**
942
+ * Component definition for Table
943
+ * @public
944
+ */
945
+ declare const TableDefinition: {
946
+ readonly classNames: {
947
+ readonly table: "bui-Table";
948
+ readonly header: "bui-TableHeader";
949
+ readonly body: "bui-TableBody";
950
+ readonly row: "bui-TableRow";
951
+ readonly head: "bui-TableHead";
952
+ readonly headContent: "bui-TableHeadContent";
953
+ readonly headSortButton: "bui-TableHeadSortButton";
954
+ readonly caption: "bui-TableCaption";
955
+ readonly cell: "bui-TableCell";
956
+ readonly cellContentWrapper: "bui-TableCellContentWrapper";
957
+ readonly cellContent: "bui-TableCellContent";
958
+ readonly cellIcon: "bui-TableCellIcon";
959
+ readonly cellProfileAvatar: "bui-TableCellProfileAvatar";
960
+ readonly cellProfileAvatarImage: "bui-TableCellProfileAvatarImage";
961
+ readonly cellProfileAvatarFallback: "bui-TableCellProfileAvatarFallback";
962
+ readonly cellProfileName: "bui-TableCellProfileName";
963
+ readonly cellProfileLink: "bui-TableCellProfileLink";
964
+ };
965
+ };
966
+
1009
967
  /**
1010
968
  * Pagination controls for Table components with page navigation and size selection.
1011
969
  *
@@ -1013,6 +971,19 @@ declare function useTable<T = any>(config?: UseTableConfig<T>): UseTableResult<T
1013
971
  */
1014
972
  declare function TablePagination(props: TablePaginationProps): react_jsx_runtime.JSX.Element;
1015
973
 
974
+ /**
975
+ * Component definition for TablePagination
976
+ * @public
977
+ */
978
+ declare const TablePaginationDefinition: {
979
+ readonly classNames: {
980
+ readonly root: "bui-TablePagination";
981
+ readonly left: "bui-TablePaginationLeft";
982
+ readonly right: "bui-TablePaginationRight";
983
+ readonly select: "bui-TablePaginationSelect";
984
+ };
985
+ };
986
+
1016
987
  /**
1017
988
  * Props for the TagGroup component.
1018
989
  *
@@ -1049,6 +1020,20 @@ declare const TagGroup: <T extends object>(props: TagGroupProps<T>) => react_jsx
1049
1020
  */
1050
1021
  declare const Tag: (props: TagProps) => react_jsx_runtime.JSX.Element;
1051
1022
 
1023
+ /**
1024
+ * Component definition for TagGroup
1025
+ * @public
1026
+ */
1027
+ declare const TagGroupDefinition: {
1028
+ readonly classNames: {
1029
+ readonly group: "bui-TagGroup";
1030
+ readonly list: "bui-TagList";
1031
+ readonly tag: "bui-Tag";
1032
+ readonly tagIcon: "bui-TagIcon";
1033
+ readonly tagRemoveButton: "bui-TagRemoveButton";
1034
+ };
1035
+ };
1036
+
1052
1037
  /** @public */
1053
1038
  type TextOwnProps = {
1054
1039
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'div' | 'strong' | 'em' | 'small' | 'legend';
@@ -1068,6 +1053,22 @@ declare const Text: {
1068
1053
  displayName: string;
1069
1054
  };
1070
1055
 
1056
+ /**
1057
+ * Component definition for Text
1058
+ * @public
1059
+ */
1060
+ declare const TextDefinition: {
1061
+ readonly classNames: {
1062
+ readonly root: "bui-Text";
1063
+ };
1064
+ readonly dataAttributes: {
1065
+ readonly variant: readonly ["subtitle", "body", "caption", "label"];
1066
+ readonly weight: readonly ["regular", "bold"];
1067
+ readonly color: readonly ["primary", "secondary", "danger", "warning", "success"];
1068
+ readonly truncate: readonly [true, false];
1069
+ };
1070
+ };
1071
+
1071
1072
  /** @public */
1072
1073
  interface TextFieldProps extends TextFieldProps$1, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> {
1073
1074
  /**
@@ -1096,6 +1097,25 @@ interface TextFieldProps extends TextFieldProps$1, Omit<FieldLabelProps, 'htmlFo
1096
1097
  /** @public */
1097
1098
  declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLDivElement>>;
1098
1099
 
1100
+ /**
1101
+ * Component definition for TextField
1102
+ * @public
1103
+ */
1104
+ declare const TextFieldDefinition: {
1105
+ readonly classNames: {
1106
+ readonly root: "bui-TextField";
1107
+ readonly inputWrapper: "bui-InputWrapper";
1108
+ readonly input: "bui-Input";
1109
+ readonly inputIcon: "bui-InputIcon";
1110
+ readonly inputAction: "bui-InputAction";
1111
+ };
1112
+ readonly dataAttributes: {
1113
+ readonly invalid: readonly [true, false];
1114
+ readonly disabled: readonly [true, false];
1115
+ readonly size: readonly ["small", "medium"];
1116
+ };
1117
+ };
1118
+
1099
1119
  /** @public */
1100
1120
  interface TooltipProps extends Omit<TooltipProps$1, 'children'> {
1101
1121
  children: React.ReactNode;
@@ -1106,6 +1126,17 @@ declare const TooltipTrigger: (props: TooltipTriggerComponentProps) => react_jsx
1106
1126
  /** @public */
1107
1127
  declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
1108
1128
 
1129
+ /**
1130
+ * Component definition for Tooltip
1131
+ * @public
1132
+ */
1133
+ declare const TooltipDefinition: {
1134
+ readonly classNames: {
1135
+ readonly tooltip: "bui-Tooltip";
1136
+ readonly arrow: "bui-TooltipArrow";
1137
+ };
1138
+ };
1139
+
1109
1140
  /** @public */
1110
1141
  interface MenuTriggerProps extends MenuTriggerProps$1 {
1111
1142
  }
@@ -1182,6 +1213,31 @@ declare const MenuSection: (props: MenuSectionProps<object>) => react_jsx_runtim
1182
1213
  /** @public */
1183
1214
  declare const MenuSeparator: (props: MenuSeparatorProps) => react_jsx_runtime.JSX.Element;
1184
1215
 
1216
+ /**
1217
+ * Component definition for Menu
1218
+ * @public
1219
+ */
1220
+ declare const MenuDefinition: {
1221
+ readonly classNames: {
1222
+ readonly root: "bui-Menu";
1223
+ readonly popover: "bui-MenuPopover";
1224
+ readonly content: "bui-MenuContent";
1225
+ readonly section: "bui-MenuSection";
1226
+ readonly sectionHeader: "bui-MenuSectionHeader";
1227
+ readonly item: "bui-MenuItem";
1228
+ readonly itemListBox: "bui-MenuItemListBox";
1229
+ readonly itemListBoxCheck: "bui-MenuItemListBoxCheck";
1230
+ readonly itemWrapper: "bui-MenuItemWrapper";
1231
+ readonly itemContent: "bui-MenuItemContent";
1232
+ readonly itemArrow: "bui-MenuItemArrow";
1233
+ readonly separator: "bui-MenuSeparator";
1234
+ readonly searchField: "bui-MenuSearchField";
1235
+ readonly searchFieldInput: "bui-MenuSearchFieldInput";
1236
+ readonly searchFieldClear: "bui-MenuSearchFieldClear";
1237
+ readonly emptyState: "bui-MenuEmptyState";
1238
+ };
1239
+ };
1240
+
1185
1241
  /** @public */
1186
1242
  interface SearchFieldProps extends SearchFieldProps$1, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> {
1187
1243
  /**
@@ -1206,6 +1262,24 @@ interface SearchFieldProps extends SearchFieldProps$1, Omit<FieldLabelProps, 'ht
1206
1262
  /** @public */
1207
1263
  declare const SearchField: react.ForwardRefExoticComponent<SearchFieldProps & react.RefAttributes<HTMLDivElement>>;
1208
1264
 
1265
+ /**
1266
+ * Component definition for SearchField
1267
+ * @public
1268
+ */
1269
+ declare const SearchFieldDefinition: {
1270
+ readonly classNames: {
1271
+ readonly root: "bui-SearchField";
1272
+ readonly clear: "bui-SearchFieldClear";
1273
+ readonly inputWrapper: "bui-SearchFieldInputWrapper";
1274
+ readonly input: "bui-SearchFieldInput";
1275
+ readonly inputIcon: "bui-SearchFieldInputIcon";
1276
+ };
1277
+ readonly dataAttributes: {
1278
+ readonly startCollapsed: readonly [true, false];
1279
+ readonly size: readonly ["small", "medium"];
1280
+ };
1281
+ };
1282
+
1209
1283
  /** @public */
1210
1284
  interface LinkProps extends LinkProps$1 {
1211
1285
  variant?: TextVariants | Partial<Record<Breakpoint, TextVariants>>;
@@ -1217,32 +1291,88 @@ interface LinkProps extends LinkProps$1 {
1217
1291
  /** @public */
1218
1292
  declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
1219
1293
 
1294
+ /**
1295
+ * Component definition for Link
1296
+ * @public
1297
+ */
1298
+ declare const LinkDefinition: {
1299
+ readonly classNames: {
1300
+ readonly root: "bui-Link";
1301
+ };
1302
+ readonly dataAttributes: {
1303
+ readonly variant: readonly ["subtitle", "body", "caption", "label"];
1304
+ readonly weight: readonly ["regular", "bold"];
1305
+ readonly color: readonly ["primary", "secondary", "danger", "warning", "success"];
1306
+ readonly truncate: readonly [true, false];
1307
+ };
1308
+ };
1309
+
1220
1310
  /** @public */
1221
- interface SelectProps extends SelectProps$1<{
1222
- name: string;
1311
+ type Option = {
1223
1312
  value: string;
1224
- }>, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> {
1313
+ label: string;
1314
+ disabled?: boolean;
1315
+ };
1316
+ /** @public */
1317
+ interface SelectProps<T extends 'single' | 'multiple'> extends SelectProps$1<Option, T>, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> {
1225
1318
  /**
1226
1319
  * An icon to render before the input
1227
1320
  */
1228
1321
  icon?: ReactNode;
1229
1322
  /**
1230
1323
  * The size of the select field
1231
- * @defaultValue 'medium'
1324
+ * @defaultValue 'small'
1232
1325
  */
1233
1326
  size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
1234
1327
  /**
1235
1328
  * The options of the select field
1236
1329
  */
1237
- options?: Array<{
1238
- value: string;
1239
- label: string;
1240
- disabled?: boolean;
1241
- }>;
1330
+ options?: Array<Option>;
1331
+ /**
1332
+ * Enable search/filter functionality in the dropdown
1333
+ * @defaultValue false
1334
+ */
1335
+ searchable?: boolean;
1336
+ /**
1337
+ * placeholder text for the search input
1338
+ * only used when searchable is true
1339
+ * @defaultvalue 'search...'
1340
+ */
1341
+ searchPlaceholder?: string;
1342
+ /**
1343
+ * Selection mode, single or multiple
1344
+ * @defaultvalue 'single'
1345
+ */
1346
+ selectionMode?: T;
1242
1347
  }
1243
1348
 
1244
1349
  /** @public */
1245
- declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLDivElement>>;
1350
+ declare const Select: react.ForwardRefExoticComponent<SelectProps<"multiple" | "single"> & react.RefAttributes<HTMLDivElement>>;
1351
+
1352
+ /**
1353
+ * Component definition for Select
1354
+ * @public
1355
+ */
1356
+ declare const SelectDefinition: {
1357
+ readonly classNames: {
1358
+ readonly root: "bui-Select";
1359
+ readonly popover: "bui-SelectPopover";
1360
+ readonly trigger: "bui-SelectTrigger";
1361
+ readonly chevron: "bui-SelectTriggerChevron";
1362
+ readonly value: "bui-SelectValue";
1363
+ readonly list: "bui-SelectList";
1364
+ readonly item: "bui-SelectItem";
1365
+ readonly itemIndicator: "bui-SelectItemIndicator";
1366
+ readonly itemLabel: "bui-SelectItemLabel";
1367
+ readonly searchWrapper: "bui-SelectSearchWrapper";
1368
+ readonly search: "bui-SelectSearch";
1369
+ readonly searchClear: "bui-SelectSearchClear";
1370
+ readonly noResults: "bui-SelectNoResults";
1371
+ };
1372
+ readonly dataAttributes: {
1373
+ readonly size: readonly ["small", "medium"];
1374
+ };
1375
+ };
1246
1376
 
1247
1377
  /** @public */
1248
1378
  interface SkeletonProps extends ComponentProps<'div'> {
@@ -1254,6 +1384,16 @@ interface SkeletonProps extends ComponentProps<'div'> {
1254
1384
  /** @public */
1255
1385
  declare const Skeleton: (props: SkeletonProps) => react_jsx_runtime.JSX.Element;
1256
1386
 
1387
+ /**
1388
+ * Component definition for Skeleton
1389
+ * @public
1390
+ */
1391
+ declare const SkeletonDefinition: {
1392
+ readonly classNames: {
1393
+ readonly root: "bui-Skeleton";
1394
+ };
1395
+ };
1396
+
1257
1397
  /** @public */
1258
1398
  interface SwitchProps extends SwitchProps$1 {
1259
1399
  /**
@@ -1265,6 +1405,17 @@ interface SwitchProps extends SwitchProps$1 {
1265
1405
  /** @public */
1266
1406
  declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLLabelElement>>;
1267
1407
 
1408
+ /**
1409
+ * Component definition for Switch
1410
+ * @public
1411
+ */
1412
+ declare const SwitchDefinition: {
1413
+ readonly classNames: {
1414
+ readonly root: "bui-Switch";
1415
+ readonly indicator: "bui-SwitchIndicator";
1416
+ };
1417
+ };
1418
+
1268
1419
  /**
1269
1420
  * Properties for {@link VisuallyHidden}
1270
1421
  *
@@ -1285,6 +1436,16 @@ interface VisuallyHiddenProps extends ComponentProps<'div'> {
1285
1436
  */
1286
1437
  declare const VisuallyHidden: (props: VisuallyHiddenProps) => react_jsx_runtime.JSX.Element;
1287
1438
 
1439
+ /**
1440
+ * Component definition for VisuallyHidden
1441
+ * @public
1442
+ */
1443
+ declare const VisuallyHiddenDefinition: {
1444
+ readonly classNames: {
1445
+ readonly root: "bui-VisuallyHidden";
1446
+ };
1447
+ };
1448
+
1288
1449
  /** @public */
1289
1450
  declare const useBreakpoint: () => {
1290
1451
  breakpoint: Breakpoint;
@@ -1292,4 +1453,4 @@ declare const useBreakpoint: () => {
1292
1453
  down: (key: Breakpoint) => boolean;
1293
1454
  };
1294
1455
 
1295
- export { type AlignItems, Avatar, type AvatarProps, type Border, type BorderRadius, Box, type BoxProps, type Breakpoint, Button, ButtonIcon, type ButtonIconProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Cell, CellProfile, type CellProfileProps, type CellProps, Checkbox, type CheckboxProps, type ClassNamesMap, Collapsible, Column, type ColumnProps, type Columns, type ComponentClassNames, type ComponentDefinition, type ComponentDefinitionName, Container, type ContainerProps, type DataAttributeValues, type DataAttributesMap, Dialog, DialogBody, type DialogBodyProps, DialogFooter, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTrigger, type DialogTriggerProps, type Display, FieldLabel, type FieldLabelProps, Flex, type FlexDirection, type FlexProps, type FlexWrap, Grid, type GridItemProps, type GridProps, Header, HeaderPage, type HeaderPageBreadcrumb, type HeaderPageProps, type HeaderProps, type HeaderTab, type JustifyContent, Link, type LinkProps, Menu, MenuAutocomplete, type MenuAutocompleteListBoxProps, MenuAutocompleteListbox, type MenuAutocompleteProps, MenuItem, type MenuItemProps, MenuListBox, MenuListBoxItem, type MenuListBoxItemProps, type MenuListBoxProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, type MenuTriggerProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type Responsive, Row, SearchField, type SearchFieldProps, Select, type SelectProps, Skeleton, type SkeletonProps, type Space, type SpaceProps, SubmenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, type TabMatchStrategy, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableHeader, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, TagGroup, type TagGroupProps, type TagProps, Text, type TextColorStatus, type TextColors, TextField, type TextFieldProps, type TextOwnProps, type TextProps, type TextVariants, type TextWeights, Tooltip, type TooltipProps, TooltipTrigger, type UseTableConfig, type UseTablePagination, type UseTablePaginationConfig, type UseTableResult, type UtilityProps, VisuallyHidden, type VisuallyHiddenProps, componentDefinitions, useBreakpoint, useTable };
1456
+ export { Accordion, AccordionDefinition, AccordionGroup, type AccordionGroupProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AlignItems, Avatar, AvatarDefinition, type AvatarProps, type Border, type BorderRadius, Box, BoxDefinition, type BoxProps, type Breakpoint, Button, ButtonDefinition, ButtonIcon, ButtonIconDefinition, type ButtonIconProps, ButtonLink, ButtonLinkDefinition, type ButtonLinkProps, type ButtonProps, Card, CardBody, type CardBodyProps, CardDefinition, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Cell, CellProfile, type CellProfileProps, type CellProps, Checkbox, CheckboxDefinition, type CheckboxProps, type ClassNamesMap, Column, type ColumnProps, type Columns, type ComponentDefinition, Container, ContainerDefinition, type ContainerProps, type DataAttributeValues, type DataAttributesMap, Dialog, DialogBody, type DialogBodyProps, DialogDefinition, DialogFooter, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTrigger, type DialogTriggerProps, type Display, FieldLabel, FieldLabelDefinition, type FieldLabelProps, Flex, FlexDefinition, type FlexDirection, type FlexProps, type FlexWrap, Grid, GridDefinition, GridItemDefinition, type GridItemProps, type GridProps, Header, HeaderDefinition, HeaderPage, type HeaderPageBreadcrumb, HeaderPageDefinition, type HeaderPageProps, type HeaderProps, type HeaderTab, type JustifyContent, Link, LinkDefinition, type LinkProps, Menu, MenuAutocomplete, type MenuAutocompleteListBoxProps, MenuAutocompleteListbox, type MenuAutocompleteProps, MenuDefinition, MenuItem, type MenuItemProps, MenuListBox, MenuListBoxItem, type MenuListBoxItemProps, type MenuListBoxProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, type MenuTriggerProps, type Option, Radio, RadioGroup, RadioGroupDefinition, type RadioGroupProps, type RadioProps, type Responsive, Row, SearchField, SearchFieldDefinition, type SearchFieldProps, Select, SelectDefinition, type SelectProps, Skeleton, SkeletonDefinition, type SkeletonProps, type Space, type SpaceProps, SubmenuTrigger, type SubmenuTriggerProps, Switch, SwitchDefinition, type SwitchProps, Tab, TabList, type TabListProps, type TabMatchStrategy, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableDefinition, TableHeader, TablePagination, TablePaginationDefinition, type TablePaginationProps, Tabs, TabsDefinition, type TabsProps, Tag, TagGroup, TagGroupDefinition, type TagGroupProps, type TagProps, Text, type TextColorStatus, type TextColors, TextDefinition, TextField, TextFieldDefinition, type TextFieldProps, type TextOwnProps, type TextProps, type TextVariants, type TextWeights, Tooltip, TooltipDefinition, type TooltipProps, TooltipTrigger, type UseTableConfig, type UseTablePagination, type UseTablePaginationConfig, type UseTableResult, type UtilityProps, VisuallyHidden, VisuallyHiddenDefinition, type VisuallyHiddenProps, useBreakpoint, useTable };