@backstage/ui 0.9.0-next.1 → 0.9.0-next.3
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.
- package/CHANGELOG.md +95 -0
- package/css/styles.css +8 -0
- package/dist/components/Accordion/Accordion.esm.js +109 -0
- package/dist/components/Accordion/Accordion.esm.js.map +1 -0
- package/dist/components/Accordion/Accordion.module.css.esm.js +8 -0
- package/dist/components/Accordion/Accordion.module.css.esm.js.map +1 -0
- package/dist/components/Avatar/Avatar.esm.js +39 -23
- package/dist/components/Avatar/Avatar.esm.js.map +1 -1
- package/dist/components/Avatar/Avatar.module.css.esm.js +1 -1
- package/dist/components/Button/Button.esm.js +28 -9
- package/dist/components/Button/Button.esm.js.map +1 -1
- package/dist/components/Button/Button.module.css.esm.js +2 -2
- package/dist/components/ButtonIcon/ButtonIcon.esm.js +35 -4
- package/dist/components/ButtonIcon/ButtonIcon.esm.js.map +1 -1
- package/dist/components/ButtonLink/ButtonLink.esm.js +18 -30
- package/dist/components/ButtonLink/ButtonLink.esm.js.map +1 -1
- package/dist/components/Dialog/Dialog.module.css.esm.js +1 -1
- package/dist/components/Header/HeaderToolbar.esm.js +3 -5
- package/dist/components/Header/HeaderToolbar.esm.js.map +1 -1
- package/dist/components/Link/Link.esm.js +11 -39
- package/dist/components/Link/Link.esm.js.map +1 -1
- package/dist/components/Link/Link.module.css.esm.js +3 -3
- package/dist/components/Menu/Menu.module.css.esm.js +1 -1
- package/dist/components/Popover/Popover.module.css.esm.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.module.css.esm.js +1 -1
- package/dist/components/SearchField/SearchField.esm.js +17 -33
- package/dist/components/SearchField/SearchField.esm.js.map +1 -1
- package/dist/components/SearchField/SearchField.module.css.esm.js +3 -3
- package/dist/components/Select/Select.esm.js +17 -53
- package/dist/components/Select/Select.esm.js.map +1 -1
- package/dist/components/Select/Select.module.css.esm.js +2 -2
- package/dist/components/Select/SelectContent.esm.js +55 -0
- package/dist/components/Select/SelectContent.esm.js.map +1 -0
- package/dist/components/Select/SelectListBox.esm.js +54 -0
- package/dist/components/Select/SelectListBox.esm.js.map +1 -0
- package/dist/components/Select/SelectTrigger.esm.js +23 -0
- package/dist/components/Select/SelectTrigger.esm.js.map +1 -0
- package/dist/components/Table/Table.module.css.esm.js +2 -2
- package/dist/components/Table/components/CellProfile.esm.js +2 -34
- package/dist/components/Table/components/CellProfile.esm.js.map +1 -1
- package/dist/components/Table/components/Row.esm.js +2 -0
- package/dist/components/Table/components/Row.esm.js.map +1 -1
- package/dist/components/Text/Text.esm.js +3 -3
- package/dist/components/Text/Text.esm.js.map +1 -1
- package/dist/components/Text/Text.module.css.esm.js +2 -2
- package/dist/components/TextField/TextField.esm.js +5 -5
- package/dist/components/TextField/TextField.esm.js.map +1 -1
- package/dist/components/TextField/TextField.module.css.esm.js +2 -2
- package/dist/index.d.ts +124 -35
- package/dist/index.esm.js +1 -1
- package/dist/utils/componentDefinitions.esm.js +38 -15
- package/dist/utils/componentDefinitions.esm.js.map +1 -1
- package/package.json +2 -3
- package/dist/components/Collapsible/Collapsible.esm.js +0 -55
- package/dist/components/Collapsible/Collapsible.esm.js.map +0 -1
- package/dist/components/Collapsible/Collapsible.module.css.esm.js +0 -8
- package/dist/components/Collapsible/Collapsible.module.css.esm.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ComponentProps } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
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';
|
|
5
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
5
|
import { NavigateOptions } from 'react-router-dom';
|
|
7
|
-
import { Collapsible as Collapsible$1 } from '@base-ui-components/react/collapsible';
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* Component definitions for the Backstage UI library
|
|
@@ -30,15 +28,20 @@ declare const componentDefinitions: {
|
|
|
30
28
|
readonly Button: {
|
|
31
29
|
readonly classNames: {
|
|
32
30
|
readonly root: "bui-Button";
|
|
31
|
+
readonly content: "bui-ButtonContent";
|
|
32
|
+
readonly spinner: "bui-ButtonSpinner";
|
|
33
33
|
};
|
|
34
34
|
readonly dataAttributes: {
|
|
35
35
|
readonly size: readonly ["small", "medium", "large"];
|
|
36
36
|
readonly variant: readonly ["primary", "secondary", "tertiary"];
|
|
37
|
+
readonly loading: readonly [true, false];
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
readonly ButtonIcon: {
|
|
40
41
|
readonly classNames: {
|
|
41
42
|
readonly root: "bui-ButtonIcon";
|
|
43
|
+
readonly content: "bui-ButtonIconContent";
|
|
44
|
+
readonly spinner: "bui-ButtonIconSpinner";
|
|
42
45
|
};
|
|
43
46
|
};
|
|
44
47
|
readonly ButtonLink: {
|
|
@@ -63,13 +66,6 @@ declare const componentDefinitions: {
|
|
|
63
66
|
readonly selected: readonly [true, false];
|
|
64
67
|
};
|
|
65
68
|
};
|
|
66
|
-
readonly Collapsible: {
|
|
67
|
-
readonly classNames: {
|
|
68
|
-
readonly root: "bui-CollapsibleRoot";
|
|
69
|
-
readonly trigger: "bui-CollapsibleTrigger";
|
|
70
|
-
readonly panel: "bui-CollapsiblePanel";
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
69
|
readonly Container: {
|
|
74
70
|
readonly classNames: {
|
|
75
71
|
readonly root: "bui-Container";
|
|
@@ -86,6 +82,18 @@ declare const componentDefinitions: {
|
|
|
86
82
|
readonly footer: "bui-DialogFooter";
|
|
87
83
|
};
|
|
88
84
|
};
|
|
85
|
+
readonly Accordion: {
|
|
86
|
+
readonly classNames: {
|
|
87
|
+
readonly root: "bui-Accordion";
|
|
88
|
+
readonly trigger: "bui-AccordionTrigger";
|
|
89
|
+
readonly triggerButton: "bui-AccordionTriggerButton";
|
|
90
|
+
readonly triggerTitle: "bui-AccordionTriggerTitle";
|
|
91
|
+
readonly triggerSubtitle: "bui-AccordionTriggerSubtitle";
|
|
92
|
+
readonly triggerIcon: "bui-AccordionTriggerIcon";
|
|
93
|
+
readonly panel: "bui-AccordionPanel";
|
|
94
|
+
readonly group: "bui-AccordionGroup";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
89
97
|
readonly FieldError: {
|
|
90
98
|
readonly classNames: {
|
|
91
99
|
readonly root: "bui-FieldError";
|
|
@@ -159,6 +167,8 @@ declare const componentDefinitions: {
|
|
|
159
167
|
readonly dataAttributes: {
|
|
160
168
|
readonly variant: readonly ["subtitle", "body", "caption", "label"];
|
|
161
169
|
readonly weight: readonly ["regular", "bold"];
|
|
170
|
+
readonly color: readonly ["primary", "secondary", "danger", "warning", "success"];
|
|
171
|
+
readonly truncate: readonly [true, false];
|
|
162
172
|
};
|
|
163
173
|
};
|
|
164
174
|
readonly List: {
|
|
@@ -191,7 +201,10 @@ declare const componentDefinitions: {
|
|
|
191
201
|
readonly PasswordField: {
|
|
192
202
|
readonly classNames: {
|
|
193
203
|
readonly root: "bui-PasswordField";
|
|
194
|
-
readonly
|
|
204
|
+
readonly inputWrapper: "bui-PasswordFieldInputWrapper";
|
|
205
|
+
readonly input: "bui-PasswordFieldInput";
|
|
206
|
+
readonly inputIcon: "bui-PasswordFieldIcon";
|
|
207
|
+
readonly inputVisibility: "bui-PasswordFieldVisibility";
|
|
195
208
|
};
|
|
196
209
|
readonly dataAttributes: {
|
|
197
210
|
readonly size: readonly ["small", "medium"];
|
|
@@ -212,7 +225,10 @@ declare const componentDefinitions: {
|
|
|
212
225
|
readonly SearchField: {
|
|
213
226
|
readonly classNames: {
|
|
214
227
|
readonly root: "bui-SearchField";
|
|
215
|
-
readonly clear: "bui-
|
|
228
|
+
readonly clear: "bui-SearchFieldClear";
|
|
229
|
+
readonly inputWrapper: "bui-SearchFieldInputWrapper";
|
|
230
|
+
readonly input: "bui-SearchFieldInput";
|
|
231
|
+
readonly inputIcon: "bui-SearchFieldInputIcon";
|
|
216
232
|
};
|
|
217
233
|
readonly dataAttributes: {
|
|
218
234
|
readonly startCollapsed: readonly [true, false];
|
|
@@ -222,13 +238,18 @@ declare const componentDefinitions: {
|
|
|
222
238
|
readonly Select: {
|
|
223
239
|
readonly classNames: {
|
|
224
240
|
readonly root: "bui-Select";
|
|
241
|
+
readonly popover: "bui-SelectPopover";
|
|
225
242
|
readonly trigger: "bui-SelectTrigger";
|
|
243
|
+
readonly chevron: "bui-SelectTriggerChevron";
|
|
226
244
|
readonly value: "bui-SelectValue";
|
|
227
|
-
readonly icon: "bui-SelectIcon";
|
|
228
245
|
readonly list: "bui-SelectList";
|
|
229
246
|
readonly item: "bui-SelectItem";
|
|
230
247
|
readonly itemIndicator: "bui-SelectItemIndicator";
|
|
231
248
|
readonly itemLabel: "bui-SelectItemLabel";
|
|
249
|
+
readonly searchWrapper: "bui-SelectSearchWrapper";
|
|
250
|
+
readonly search: "bui-SelectSearch";
|
|
251
|
+
readonly searchClear: "bui-SelectSearchClear";
|
|
252
|
+
readonly noResults: "bui-SelectNoResults";
|
|
232
253
|
};
|
|
233
254
|
readonly dataAttributes: {
|
|
234
255
|
readonly size: readonly ["small", "medium"];
|
|
@@ -505,14 +526,31 @@ interface ContainerProps {
|
|
|
505
526
|
declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
506
527
|
|
|
507
528
|
/** @public */
|
|
508
|
-
interface AvatarProps extends React.ComponentPropsWithoutRef<
|
|
529
|
+
interface AvatarProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
530
|
+
/**
|
|
531
|
+
* URL of the image to display
|
|
532
|
+
*/
|
|
509
533
|
src: string;
|
|
534
|
+
/**
|
|
535
|
+
* Name of the person - used for generating initials and accessibility labels
|
|
536
|
+
*/
|
|
510
537
|
name: string;
|
|
511
|
-
|
|
538
|
+
/**
|
|
539
|
+
* Size of the avatar
|
|
540
|
+
* @defaultValue 'medium'
|
|
541
|
+
*/
|
|
542
|
+
size?: 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
543
|
+
/**
|
|
544
|
+
* Determines how the avatar is presented to assistive technologies.
|
|
545
|
+
* - 'informative': Avatar is announced as "\{name\}" to screen readers
|
|
546
|
+
* - 'decoration': Avatar is hidden from screen readers (use when name appears in adjacent text)
|
|
547
|
+
* @defaultValue 'informative'
|
|
548
|
+
*/
|
|
549
|
+
purpose?: 'decoration' | 'informative';
|
|
512
550
|
}
|
|
513
551
|
|
|
514
552
|
/** @public */
|
|
515
|
-
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<
|
|
553
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
516
554
|
|
|
517
555
|
/**
|
|
518
556
|
* Properties for {@link Button}
|
|
@@ -525,6 +563,7 @@ interface ButtonProps extends ButtonProps$1 {
|
|
|
525
563
|
iconStart?: ReactElement;
|
|
526
564
|
iconEnd?: ReactElement;
|
|
527
565
|
children?: ReactNode;
|
|
566
|
+
loading?: boolean;
|
|
528
567
|
}
|
|
529
568
|
|
|
530
569
|
/** @public */
|
|
@@ -589,16 +628,50 @@ declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.Re
|
|
|
589
628
|
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
590
629
|
|
|
591
630
|
/**
|
|
592
|
-
*
|
|
593
|
-
* It is a wrapper around the CollapsiblePrimitive component from base-ui-components.
|
|
594
|
-
*
|
|
631
|
+
* Props for the Accordion component.
|
|
595
632
|
* @public
|
|
596
633
|
*/
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
634
|
+
interface AccordionProps extends DisclosureProps {
|
|
635
|
+
className?: string;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Props for the AccordionTrigger component.
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
641
|
+
interface AccordionTriggerProps extends HeadingProps {
|
|
642
|
+
className?: string;
|
|
643
|
+
title?: string;
|
|
644
|
+
subtitle?: string;
|
|
645
|
+
children?: React.ReactNode;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Props for the AccordionPanel component.
|
|
649
|
+
* @public
|
|
650
|
+
*/
|
|
651
|
+
interface AccordionPanelProps extends DisclosurePanelProps {
|
|
652
|
+
className?: string;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Props for the AccordionGroup component.
|
|
656
|
+
* @public
|
|
657
|
+
*/
|
|
658
|
+
interface AccordionGroupProps extends DisclosureGroupProps {
|
|
659
|
+
className?: string;
|
|
660
|
+
/**
|
|
661
|
+
* Whether multiple accordions can be expanded at the same time.
|
|
662
|
+
* @defaultValue false
|
|
663
|
+
*/
|
|
664
|
+
allowsMultiple?: boolean;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/** @public */
|
|
668
|
+
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
669
|
+
/** @public */
|
|
670
|
+
declare const AccordionTrigger: react.ForwardRefExoticComponent<AccordionTriggerProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
671
|
+
/** @public */
|
|
672
|
+
declare const AccordionPanel: react.ForwardRefExoticComponent<AccordionPanelProps & react.RefAttributes<HTMLDivElement>>;
|
|
673
|
+
/** @public */
|
|
674
|
+
declare const AccordionGroup: react.ForwardRefExoticComponent<AccordionGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
602
675
|
|
|
603
676
|
/**
|
|
604
677
|
* Props for the DialogTrigger component.
|
|
@@ -818,6 +891,7 @@ interface ButtonIconProps extends ButtonProps$1 {
|
|
|
818
891
|
size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
|
|
819
892
|
variant?: 'primary' | 'secondary' | 'tertiary' | Partial<Record<Breakpoint, 'primary' | 'secondary' | 'tertiary'>>;
|
|
820
893
|
icon?: ReactElement;
|
|
894
|
+
loading?: boolean;
|
|
821
895
|
}
|
|
822
896
|
|
|
823
897
|
/** @public */
|
|
@@ -1197,31 +1271,46 @@ interface LinkProps extends LinkProps$1 {
|
|
|
1197
1271
|
declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
1198
1272
|
|
|
1199
1273
|
/** @public */
|
|
1200
|
-
|
|
1201
|
-
name: string;
|
|
1274
|
+
type Option = {
|
|
1202
1275
|
value: string;
|
|
1203
|
-
|
|
1276
|
+
label: string;
|
|
1277
|
+
disabled?: boolean;
|
|
1278
|
+
};
|
|
1279
|
+
/** @public */
|
|
1280
|
+
interface SelectProps<T extends 'single' | 'multiple'> extends SelectProps$1<Option, T>, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> {
|
|
1204
1281
|
/**
|
|
1205
1282
|
* An icon to render before the input
|
|
1206
1283
|
*/
|
|
1207
1284
|
icon?: ReactNode;
|
|
1208
1285
|
/**
|
|
1209
1286
|
* The size of the select field
|
|
1210
|
-
* @defaultValue '
|
|
1287
|
+
* @defaultValue 'small'
|
|
1211
1288
|
*/
|
|
1212
1289
|
size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
|
|
1213
1290
|
/**
|
|
1214
1291
|
* The options of the select field
|
|
1215
1292
|
*/
|
|
1216
|
-
options?: Array<
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1293
|
+
options?: Array<Option>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Enable search/filter functionality in the dropdown
|
|
1296
|
+
* @defaultValue false
|
|
1297
|
+
*/
|
|
1298
|
+
searchable?: boolean;
|
|
1299
|
+
/**
|
|
1300
|
+
* placeholder text for the search input
|
|
1301
|
+
* only used when searchable is true
|
|
1302
|
+
* @defaultvalue 'search...'
|
|
1303
|
+
*/
|
|
1304
|
+
searchPlaceholder?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* Selection mode, single or multiple
|
|
1307
|
+
* @defaultvalue 'single'
|
|
1308
|
+
*/
|
|
1309
|
+
selectionMode?: T;
|
|
1221
1310
|
}
|
|
1222
1311
|
|
|
1223
1312
|
/** @public */
|
|
1224
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLDivElement>>;
|
|
1313
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps<"multiple" | "single"> & react.RefAttributes<HTMLDivElement>>;
|
|
1225
1314
|
|
|
1226
1315
|
/** @public */
|
|
1227
1316
|
interface SkeletonProps extends ComponentProps<'div'> {
|
|
@@ -1271,4 +1360,4 @@ declare const useBreakpoint: () => {
|
|
|
1271
1360
|
down: (key: Breakpoint) => boolean;
|
|
1272
1361
|
};
|
|
1273
1362
|
|
|
1274
|
-
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,
|
|
1363
|
+
export { Accordion, AccordionGroup, type AccordionGroupProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, 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, 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, type Option, 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 };
|
package/dist/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ export { Container } from './components/Container/Container.esm.js';
|
|
|
5
5
|
export { Avatar } from './components/Avatar/Avatar.esm.js';
|
|
6
6
|
export { Button } from './components/Button/Button.esm.js';
|
|
7
7
|
export { Card, CardBody, CardFooter, CardHeader } from './components/Card/Card.esm.js';
|
|
8
|
-
export {
|
|
8
|
+
export { Accordion, AccordionGroup, AccordionPanel, AccordionTrigger } from './components/Accordion/Accordion.esm.js';
|
|
9
9
|
export { Dialog, DialogBody, DialogFooter, DialogHeader, DialogTrigger } from './components/Dialog/Dialog.esm.js';
|
|
10
10
|
export { FieldLabel } from './components/FieldLabel/FieldLabel.esm.js';
|
|
11
11
|
export { Header } from './components/Header/Header.esm.js';
|
|
@@ -40,16 +40,21 @@ const componentDefinitions = {
|
|
|
40
40
|
},
|
|
41
41
|
Button: {
|
|
42
42
|
classNames: {
|
|
43
|
-
root: "bui-Button"
|
|
43
|
+
root: "bui-Button",
|
|
44
|
+
content: "bui-ButtonContent",
|
|
45
|
+
spinner: "bui-ButtonSpinner"
|
|
44
46
|
},
|
|
45
47
|
dataAttributes: {
|
|
46
48
|
size: ["small", "medium", "large"],
|
|
47
|
-
variant: ["primary", "secondary", "tertiary"]
|
|
49
|
+
variant: ["primary", "secondary", "tertiary"],
|
|
50
|
+
loading: [true, false]
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
ButtonIcon: {
|
|
51
54
|
classNames: {
|
|
52
|
-
root: "bui-ButtonIcon"
|
|
55
|
+
root: "bui-ButtonIcon",
|
|
56
|
+
content: "bui-ButtonIconContent",
|
|
57
|
+
spinner: "bui-ButtonIconSpinner"
|
|
53
58
|
}
|
|
54
59
|
},
|
|
55
60
|
ButtonLink: {
|
|
@@ -74,13 +79,6 @@ const componentDefinitions = {
|
|
|
74
79
|
selected: [true, false]
|
|
75
80
|
}
|
|
76
81
|
},
|
|
77
|
-
Collapsible: {
|
|
78
|
-
classNames: {
|
|
79
|
-
root: "bui-CollapsibleRoot",
|
|
80
|
-
trigger: "bui-CollapsibleTrigger",
|
|
81
|
-
panel: "bui-CollapsiblePanel"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
82
|
Container: {
|
|
85
83
|
classNames: {
|
|
86
84
|
root: "bui-Container"
|
|
@@ -97,6 +95,18 @@ const componentDefinitions = {
|
|
|
97
95
|
footer: "bui-DialogFooter"
|
|
98
96
|
}
|
|
99
97
|
},
|
|
98
|
+
Accordion: {
|
|
99
|
+
classNames: {
|
|
100
|
+
root: "bui-Accordion",
|
|
101
|
+
trigger: "bui-AccordionTrigger",
|
|
102
|
+
triggerButton: "bui-AccordionTriggerButton",
|
|
103
|
+
triggerTitle: "bui-AccordionTriggerTitle",
|
|
104
|
+
triggerSubtitle: "bui-AccordionTriggerSubtitle",
|
|
105
|
+
triggerIcon: "bui-AccordionTriggerIcon",
|
|
106
|
+
panel: "bui-AccordionPanel",
|
|
107
|
+
group: "bui-AccordionGroup"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
100
110
|
FieldError: {
|
|
101
111
|
classNames: {
|
|
102
112
|
root: "bui-FieldError"
|
|
@@ -205,7 +215,9 @@ const componentDefinitions = {
|
|
|
205
215
|
},
|
|
206
216
|
dataAttributes: {
|
|
207
217
|
variant: ["subtitle", "body", "caption", "label"],
|
|
208
|
-
weight: ["regular", "bold"]
|
|
218
|
+
weight: ["regular", "bold"],
|
|
219
|
+
color: ["primary", "secondary", "danger", "warning", "success"],
|
|
220
|
+
truncate: [true, false]
|
|
209
221
|
}
|
|
210
222
|
},
|
|
211
223
|
List: {
|
|
@@ -238,7 +250,10 @@ const componentDefinitions = {
|
|
|
238
250
|
PasswordField: {
|
|
239
251
|
classNames: {
|
|
240
252
|
root: "bui-PasswordField",
|
|
241
|
-
|
|
253
|
+
inputWrapper: "bui-PasswordFieldInputWrapper",
|
|
254
|
+
input: "bui-PasswordFieldInput",
|
|
255
|
+
inputIcon: "bui-PasswordFieldIcon",
|
|
256
|
+
inputVisibility: "bui-PasswordFieldVisibility"
|
|
242
257
|
},
|
|
243
258
|
dataAttributes: {
|
|
244
259
|
size: ["small", "medium"]
|
|
@@ -259,7 +274,10 @@ const componentDefinitions = {
|
|
|
259
274
|
SearchField: {
|
|
260
275
|
classNames: {
|
|
261
276
|
root: "bui-SearchField",
|
|
262
|
-
clear: "bui-
|
|
277
|
+
clear: "bui-SearchFieldClear",
|
|
278
|
+
inputWrapper: "bui-SearchFieldInputWrapper",
|
|
279
|
+
input: "bui-SearchFieldInput",
|
|
280
|
+
inputIcon: "bui-SearchFieldInputIcon"
|
|
263
281
|
},
|
|
264
282
|
dataAttributes: {
|
|
265
283
|
startCollapsed: [true, false],
|
|
@@ -269,13 +287,18 @@ const componentDefinitions = {
|
|
|
269
287
|
Select: {
|
|
270
288
|
classNames: {
|
|
271
289
|
root: "bui-Select",
|
|
290
|
+
popover: "bui-SelectPopover",
|
|
272
291
|
trigger: "bui-SelectTrigger",
|
|
292
|
+
chevron: "bui-SelectTriggerChevron",
|
|
273
293
|
value: "bui-SelectValue",
|
|
274
|
-
icon: "bui-SelectIcon",
|
|
275
294
|
list: "bui-SelectList",
|
|
276
295
|
item: "bui-SelectItem",
|
|
277
296
|
itemIndicator: "bui-SelectItemIndicator",
|
|
278
|
-
itemLabel: "bui-SelectItemLabel"
|
|
297
|
+
itemLabel: "bui-SelectItemLabel",
|
|
298
|
+
searchWrapper: "bui-SelectSearchWrapper",
|
|
299
|
+
search: "bui-SelectSearch",
|
|
300
|
+
searchClear: "bui-SelectSearchClear",
|
|
301
|
+
noResults: "bui-SelectNoResults"
|
|
279
302
|
},
|
|
280
303
|
dataAttributes: {
|
|
281
304
|
size: ["small", "medium"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentDefinitions.esm.js","sources":["../../src/utils/componentDefinitions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ComponentDefinition } from '../types';\n\n/**\n * Component definitions for the Backstage UI library\n * @public\n */\nexport const componentDefinitions = {\n Avatar: {\n classNames: {\n root: 'bui-AvatarRoot',\n image: 'bui-AvatarImage',\n fallback: 'bui-AvatarFallback',\n },\n dataAttributes: {\n size: ['small', 'medium', 'large'] as const,\n },\n },\n Box: {\n classNames: {\n root: 'bui-Box',\n },\n utilityProps: [\n 'm',\n 'mb',\n 'ml',\n 'mr',\n 'mt',\n 'mx',\n 'my',\n 'p',\n 'pb',\n 'pl',\n 'pr',\n 'pt',\n 'px',\n 'py',\n 'position',\n 'display',\n 'width',\n 'minWidth',\n 'maxWidth',\n 'height',\n 'minHeight',\n 'maxHeight',\n ],\n },\n Button: {\n classNames: {\n root: 'bui-Button',\n },\n dataAttributes: {\n size: ['small', 'medium', 'large'] as const,\n variant: ['primary', 'secondary', 'tertiary'] as const,\n },\n },\n ButtonIcon: {\n classNames: {\n root: 'bui-ButtonIcon',\n },\n },\n ButtonLink: {\n classNames: {\n root: 'bui-ButtonLink',\n },\n },\n Card: {\n classNames: {\n root: 'bui-Card',\n header: 'bui-CardHeader',\n body: 'bui-CardBody',\n footer: 'bui-CardFooter',\n },\n },\n Checkbox: {\n classNames: {\n root: 'bui-Checkbox',\n indicator: 'bui-CheckboxIndicator',\n },\n dataAttributes: {\n selected: [true, false] as const,\n },\n },\n Collapsible: {\n classNames: {\n root: 'bui-CollapsibleRoot',\n trigger: 'bui-CollapsibleTrigger',\n panel: 'bui-CollapsiblePanel',\n },\n },\n Container: {\n classNames: {\n root: 'bui-Container',\n },\n utilityProps: ['my', 'mt', 'mb', 'py', 'pt', 'pb', 'display'],\n },\n Dialog: {\n classNames: {\n overlay: 'bui-DialogOverlay',\n dialog: 'bui-Dialog',\n header: 'bui-DialogHeader',\n headerTitle: 'bui-DialogHeaderTitle',\n body: 'bui-DialogBody',\n footer: 'bui-DialogFooter',\n },\n },\n FieldError: {\n classNames: {\n root: 'bui-FieldError',\n },\n },\n FieldLabel: {\n classNames: {\n root: 'bui-FieldLabelWrapper',\n label: 'bui-FieldLabel',\n secondaryLabel: 'bui-FieldSecondaryLabel',\n description: 'bui-FieldDescription',\n },\n },\n Flex: {\n classNames: {\n root: 'bui-Flex',\n },\n utilityProps: [\n 'm',\n 'mb',\n 'ml',\n 'mr',\n 'mt',\n 'mx',\n 'my',\n 'p',\n 'pb',\n 'pl',\n 'pr',\n 'pt',\n 'px',\n 'py',\n 'gap',\n 'align',\n 'justify',\n 'direction',\n ],\n },\n Grid: {\n classNames: {\n root: 'bui-Grid',\n },\n utilityProps: [\n 'columns',\n 'gap',\n 'm',\n 'mb',\n 'ml',\n 'mr',\n 'mt',\n 'mx',\n 'my',\n 'p',\n 'pb',\n 'pl',\n 'pr',\n 'pt',\n 'px',\n 'py',\n ],\n },\n GridItem: {\n classNames: {\n root: 'bui-GridItem',\n },\n utilityProps: ['colSpan', 'colEnd', 'colStart', 'rowSpan'],\n },\n Header: {\n classNames: {\n toolbar: 'bui-HeaderToolbar',\n toolbarWrapper: 'bui-HeaderToolbarWrapper',\n toolbarContent: 'bui-HeaderToolbarContent',\n toolbarControls: 'bui-HeaderToolbarControls',\n toolbarIcon: 'bui-HeaderToolbarIcon',\n toolbarName: 'bui-HeaderToolbarName',\n tabsWrapper: 'bui-HeaderTabsWrapper',\n },\n },\n HeaderPage: {\n classNames: {\n root: 'bui-HeaderPage',\n content: 'bui-HeaderPageContent',\n breadcrumbs: 'bui-HeaderPageBreadcrumbs',\n tabsWrapper: 'bui-HeaderPageTabsWrapper',\n controls: 'bui-HeaderPageControls',\n },\n },\n Heading: {\n classNames: {\n root: 'bui-Heading',\n },\n dataAttributes: {\n variant: ['title1', 'title2', 'title3', 'subtitle'] as const,\n color: ['primary', 'secondary', 'muted'] as const,\n truncate: [true, false] as const,\n },\n },\n Icon: {\n classNames: {\n root: 'bui-Icon',\n },\n },\n Link: {\n classNames: {\n root: 'bui-Link',\n },\n dataAttributes: {\n variant: ['subtitle', 'body', 'caption', 'label'] as const,\n weight: ['regular', 'bold'] as const,\n },\n },\n List: {\n classNames: {\n root: 'bui-List',\n row: 'bui-ListRow',\n label: 'bui-ListLabel',\n },\n },\n Menu: {\n classNames: {\n root: 'bui-Menu',\n popover: 'bui-MenuPopover',\n content: 'bui-MenuContent',\n section: 'bui-MenuSection',\n sectionHeader: 'bui-MenuSectionHeader',\n item: 'bui-MenuItem',\n itemListBox: 'bui-MenuItemListBox',\n itemListBoxCheck: 'bui-MenuItemListBoxCheck',\n itemWrapper: 'bui-MenuItemWrapper',\n itemContent: 'bui-MenuItemContent',\n itemArrow: 'bui-MenuItemArrow',\n separator: 'bui-MenuSeparator',\n searchField: 'bui-MenuSearchField',\n searchFieldInput: 'bui-MenuSearchFieldInput',\n searchFieldClear: 'bui-MenuSearchFieldClear',\n emptyState: 'bui-MenuEmptyState',\n },\n },\n PasswordField: {\n classNames: {\n root: 'bui-PasswordField',\n inputVisibility: 'bui-InputVisibility',\n },\n dataAttributes: {\n size: ['small', 'medium'] as const,\n },\n },\n Popover: {\n classNames: {\n root: 'bui-Popover',\n },\n },\n RadioGroup: {\n classNames: {\n root: 'bui-RadioGroup',\n content: 'bui-RadioGroupContent',\n radio: 'bui-Radio',\n },\n },\n SearchField: {\n classNames: {\n root: 'bui-SearchField',\n clear: 'bui-InputClear',\n },\n dataAttributes: {\n startCollapsed: [true, false] as const,\n size: ['small', 'medium'] as const,\n },\n },\n Select: {\n classNames: {\n root: 'bui-Select',\n trigger: 'bui-SelectTrigger',\n value: 'bui-SelectValue',\n icon: 'bui-SelectIcon',\n list: 'bui-SelectList',\n item: 'bui-SelectItem',\n itemIndicator: 'bui-SelectItemIndicator',\n itemLabel: 'bui-SelectItemLabel',\n },\n dataAttributes: {\n size: ['small', 'medium'] as const,\n },\n },\n Skeleton: {\n classNames: {\n root: 'bui-Skeleton',\n },\n },\n Switch: {\n classNames: {\n root: 'bui-Switch',\n indicator: 'bui-SwitchIndicator',\n },\n },\n Table: {\n classNames: {\n table: 'bui-Table',\n header: 'bui-TableHeader',\n body: 'bui-TableBody',\n row: 'bui-TableRow',\n head: 'bui-TableHead',\n headContent: 'bui-TableHeadContent',\n headSortButton: 'bui-TableHeadSortButton',\n caption: 'bui-TableCaption',\n cell: 'bui-TableCell',\n cellContentWrapper: 'bui-TableCellContentWrapper',\n cellContent: 'bui-TableCellContent',\n cellIcon: 'bui-TableCellIcon',\n cellProfileAvatar: 'bui-TableCellProfileAvatar',\n cellProfileAvatarImage: 'bui-TableCellProfileAvatarImage',\n cellProfileAvatarFallback: 'bui-TableCellProfileAvatarFallback',\n cellProfileName: 'bui-TableCellProfileName',\n cellProfileLink: 'bui-TableCellProfileLink',\n },\n },\n TablePagination: {\n classNames: {\n root: 'bui-TablePagination',\n left: 'bui-TablePaginationLeft',\n right: 'bui-TablePaginationRight',\n select: 'bui-TablePaginationSelect',\n },\n },\n Tabs: {\n classNames: {\n tabs: 'bui-Tabs',\n tabList: 'bui-TabList',\n tabListWrapper: 'bui-TabListWrapper',\n tab: 'bui-Tab',\n tabActive: 'bui-TabActive',\n tabHovered: 'bui-TabHovered',\n panel: 'bui-TabPanel',\n },\n },\n TagGroup: {\n classNames: {\n group: 'bui-TagGroup',\n list: 'bui-TagList',\n tag: 'bui-Tag',\n tagIcon: 'bui-TagIcon',\n tagRemoveButton: 'bui-TagRemoveButton',\n },\n },\n Text: {\n classNames: {\n root: 'bui-Text',\n },\n dataAttributes: {\n variant: ['subtitle', 'body', 'caption', 'label'] as const,\n weight: ['regular', 'bold'] as const,\n color: ['primary', 'secondary', 'danger', 'warning', 'success'] as const,\n truncate: [true, false] as const,\n },\n },\n TextField: {\n classNames: {\n root: 'bui-TextField',\n inputWrapper: 'bui-InputWrapper',\n input: 'bui-Input',\n inputIcon: 'bui-InputIcon',\n inputAction: 'bui-InputAction',\n },\n dataAttributes: {\n invalid: [true, false] as const,\n disabled: [true, false] as const,\n size: ['small', 'medium'] as const,\n },\n },\n Tooltip: {\n classNames: {\n tooltip: 'bui-Tooltip',\n arrow: 'bui-TooltipArrow',\n },\n },\n VisuallyHidden: {\n classNames: {\n root: 'bui-VisuallyHidden',\n },\n },\n} as const satisfies Record<string, ComponentDefinition>;\n"],"names":[],"mappings":"AAsBO,MAAM,oBAAA,GAAuB;AAAA,EAClC,MAAA,EAAQ;AAAA,IACN,UAAA,EAAY;AAAA,MACV,IAAA,EAAM,gBAAA;AAAA,MACN,KAAA,EAAO,iBAAA;AAAA,MACP,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,CAAC,OAAA,EAAS,QAAA,EAAU,OAAO;AAAA;AACnC,GACF;AAAA,EACA,GAAA,EAAK;AAAA,IACH,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,KACR;AAAA,IACA,YAAA,EAAc;AAAA,MACZ,GAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,GAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,UAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA;AAAA;AACF,GACF;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,KACR;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,CAAC,OAAA,EAAS,QAAA,EAAU,OAAO,CAAA;AAAA,MACjC,OAAA,EAAS,CAAC,SAAA,EAAW,WAAA,EAAa,UAAU;AAAA;AAC9C,GACF;AAAA,EACA,UAAA,EAAY;AAAA,IACV,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA;AACR,GACF;AAAA,EACA,UAAA,EAAY;AAAA,IACV,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA;A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EAAY;AAAA,MACV,IAAA,EAAM;AAAA;AACR;AAEJ;;;;"}
|
|
1
|
+
{"version":3,"file":"componentDefinitions.esm.js","sources":["../../src/utils/componentDefinitions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ComponentDefinition } from '../types';\n\n/**\n * Component definitions for the Backstage UI library\n * @public\n */\nexport const componentDefinitions = {\n Avatar: {\n classNames: {\n root: 'bui-AvatarRoot',\n image: 'bui-AvatarImage',\n fallback: 'bui-AvatarFallback',\n },\n dataAttributes: {\n size: ['small', 'medium', 'large'] as const,\n },\n },\n Box: {\n classNames: {\n root: 'bui-Box',\n },\n utilityProps: [\n 'm',\n 'mb',\n 'ml',\n 'mr',\n 'mt',\n 'mx',\n 'my',\n 'p',\n 'pb',\n 'pl',\n 'pr',\n 'pt',\n 'px',\n 'py',\n 'position',\n 'display',\n 'width',\n 'minWidth',\n 'maxWidth',\n 'height',\n 'minHeight',\n 'maxHeight',\n ],\n },\n Button: {\n classNames: {\n root: 'bui-Button',\n content: 'bui-ButtonContent',\n spinner: 'bui-ButtonSpinner',\n },\n dataAttributes: {\n size: ['small', 'medium', 'large'] as const,\n variant: ['primary', 'secondary', 'tertiary'] as const,\n loading: [true, false] as const,\n },\n },\n ButtonIcon: {\n classNames: {\n root: 'bui-ButtonIcon',\n content: 'bui-ButtonIconContent',\n spinner: 'bui-ButtonIconSpinner',\n },\n },\n ButtonLink: {\n classNames: {\n root: 'bui-ButtonLink',\n },\n },\n Card: {\n classNames: {\n root: 'bui-Card',\n header: 'bui-CardHeader',\n body: 'bui-CardBody',\n footer: 'bui-CardFooter',\n },\n },\n Checkbox: {\n classNames: {\n root: 'bui-Checkbox',\n indicator: 'bui-CheckboxIndicator',\n },\n dataAttributes: {\n selected: [true, false] as const,\n },\n },\n Container: {\n classNames: {\n root: 'bui-Container',\n },\n utilityProps: ['my', 'mt', 'mb', 'py', 'pt', 'pb', 'display'],\n },\n Dialog: {\n classNames: {\n overlay: 'bui-DialogOverlay',\n dialog: 'bui-Dialog',\n header: 'bui-DialogHeader',\n headerTitle: 'bui-DialogHeaderTitle',\n body: 'bui-DialogBody',\n footer: 'bui-DialogFooter',\n },\n },\n Accordion: {\n classNames: {\n root: 'bui-Accordion',\n trigger: 'bui-AccordionTrigger',\n triggerButton: 'bui-AccordionTriggerButton',\n triggerTitle: 'bui-AccordionTriggerTitle',\n triggerSubtitle: 'bui-AccordionTriggerSubtitle',\n triggerIcon: 'bui-AccordionTriggerIcon',\n panel: 'bui-AccordionPanel',\n group: 'bui-AccordionGroup',\n },\n },\n FieldError: {\n classNames: {\n root: 'bui-FieldError',\n },\n },\n FieldLabel: {\n classNames: {\n root: 'bui-FieldLabelWrapper',\n label: 'bui-FieldLabel',\n secondaryLabel: 'bui-FieldSecondaryLabel',\n description: 'bui-FieldDescription',\n },\n },\n Flex: {\n classNames: {\n root: 'bui-Flex',\n },\n utilityProps: [\n 'm',\n 'mb',\n 'ml',\n 'mr',\n 'mt',\n 'mx',\n 'my',\n 'p',\n 'pb',\n 'pl',\n 'pr',\n 'pt',\n 'px',\n 'py',\n 'gap',\n 'align',\n 'justify',\n 'direction',\n ],\n },\n Grid: {\n classNames: {\n root: 'bui-Grid',\n },\n utilityProps: [\n 'columns',\n 'gap',\n 'm',\n 'mb',\n 'ml',\n 'mr',\n 'mt',\n 'mx',\n 'my',\n 'p',\n 'pb',\n 'pl',\n 'pr',\n 'pt',\n 'px',\n 'py',\n ],\n },\n GridItem: {\n classNames: {\n root: 'bui-GridItem',\n },\n utilityProps: ['colSpan', 'colEnd', 'colStart', 'rowSpan'],\n },\n Header: {\n classNames: {\n toolbar: 'bui-HeaderToolbar',\n toolbarWrapper: 'bui-HeaderToolbarWrapper',\n toolbarContent: 'bui-HeaderToolbarContent',\n toolbarControls: 'bui-HeaderToolbarControls',\n toolbarIcon: 'bui-HeaderToolbarIcon',\n toolbarName: 'bui-HeaderToolbarName',\n tabsWrapper: 'bui-HeaderTabsWrapper',\n },\n },\n HeaderPage: {\n classNames: {\n root: 'bui-HeaderPage',\n content: 'bui-HeaderPageContent',\n breadcrumbs: 'bui-HeaderPageBreadcrumbs',\n tabsWrapper: 'bui-HeaderPageTabsWrapper',\n controls: 'bui-HeaderPageControls',\n },\n },\n Heading: {\n classNames: {\n root: 'bui-Heading',\n },\n dataAttributes: {\n variant: ['title1', 'title2', 'title3', 'subtitle'] as const,\n color: ['primary', 'secondary', 'muted'] as const,\n truncate: [true, false] as const,\n },\n },\n Icon: {\n classNames: {\n root: 'bui-Icon',\n },\n },\n Link: {\n classNames: {\n root: 'bui-Link',\n },\n dataAttributes: {\n variant: ['subtitle', 'body', 'caption', 'label'] as const,\n weight: ['regular', 'bold'] as const,\n color: ['primary', 'secondary', 'danger', 'warning', 'success'] as const,\n truncate: [true, false] as const,\n },\n },\n List: {\n classNames: {\n root: 'bui-List',\n row: 'bui-ListRow',\n label: 'bui-ListLabel',\n },\n },\n Menu: {\n classNames: {\n root: 'bui-Menu',\n popover: 'bui-MenuPopover',\n content: 'bui-MenuContent',\n section: 'bui-MenuSection',\n sectionHeader: 'bui-MenuSectionHeader',\n item: 'bui-MenuItem',\n itemListBox: 'bui-MenuItemListBox',\n itemListBoxCheck: 'bui-MenuItemListBoxCheck',\n itemWrapper: 'bui-MenuItemWrapper',\n itemContent: 'bui-MenuItemContent',\n itemArrow: 'bui-MenuItemArrow',\n separator: 'bui-MenuSeparator',\n searchField: 'bui-MenuSearchField',\n searchFieldInput: 'bui-MenuSearchFieldInput',\n searchFieldClear: 'bui-MenuSearchFieldClear',\n emptyState: 'bui-MenuEmptyState',\n },\n },\n PasswordField: {\n classNames: {\n root: 'bui-PasswordField',\n inputWrapper: 'bui-PasswordFieldInputWrapper',\n input: 'bui-PasswordFieldInput',\n inputIcon: 'bui-PasswordFieldIcon',\n inputVisibility: 'bui-PasswordFieldVisibility',\n },\n dataAttributes: {\n size: ['small', 'medium'] as const,\n },\n },\n Popover: {\n classNames: {\n root: 'bui-Popover',\n },\n },\n RadioGroup: {\n classNames: {\n root: 'bui-RadioGroup',\n content: 'bui-RadioGroupContent',\n radio: 'bui-Radio',\n },\n },\n SearchField: {\n classNames: {\n root: 'bui-SearchField',\n clear: 'bui-SearchFieldClear',\n inputWrapper: 'bui-SearchFieldInputWrapper',\n input: 'bui-SearchFieldInput',\n inputIcon: 'bui-SearchFieldInputIcon',\n },\n dataAttributes: {\n startCollapsed: [true, false] as const,\n size: ['small', 'medium'] as const,\n },\n },\n Select: {\n classNames: {\n root: 'bui-Select',\n popover: 'bui-SelectPopover',\n trigger: 'bui-SelectTrigger',\n chevron: 'bui-SelectTriggerChevron',\n value: 'bui-SelectValue',\n list: 'bui-SelectList',\n item: 'bui-SelectItem',\n itemIndicator: 'bui-SelectItemIndicator',\n itemLabel: 'bui-SelectItemLabel',\n searchWrapper: 'bui-SelectSearchWrapper',\n search: 'bui-SelectSearch',\n searchClear: 'bui-SelectSearchClear',\n noResults: 'bui-SelectNoResults',\n },\n dataAttributes: {\n size: ['small', 'medium'] as const,\n },\n },\n Skeleton: {\n classNames: {\n root: 'bui-Skeleton',\n },\n },\n Switch: {\n classNames: {\n root: 'bui-Switch',\n indicator: 'bui-SwitchIndicator',\n },\n },\n Table: {\n classNames: {\n table: 'bui-Table',\n header: 'bui-TableHeader',\n body: 'bui-TableBody',\n row: 'bui-TableRow',\n head: 'bui-TableHead',\n headContent: 'bui-TableHeadContent',\n headSortButton: 'bui-TableHeadSortButton',\n caption: 'bui-TableCaption',\n cell: 'bui-TableCell',\n cellContentWrapper: 'bui-TableCellContentWrapper',\n cellContent: 'bui-TableCellContent',\n cellIcon: 'bui-TableCellIcon',\n cellProfileAvatar: 'bui-TableCellProfileAvatar',\n cellProfileAvatarImage: 'bui-TableCellProfileAvatarImage',\n cellProfileAvatarFallback: 'bui-TableCellProfileAvatarFallback',\n cellProfileName: 'bui-TableCellProfileName',\n cellProfileLink: 'bui-TableCellProfileLink',\n },\n },\n TablePagination: {\n classNames: {\n root: 'bui-TablePagination',\n left: 'bui-TablePaginationLeft',\n right: 'bui-TablePaginationRight',\n select: 'bui-TablePaginationSelect',\n },\n },\n Tabs: {\n classNames: {\n tabs: 'bui-Tabs',\n tabList: 'bui-TabList',\n tabListWrapper: 'bui-TabListWrapper',\n tab: 'bui-Tab',\n tabActive: 'bui-TabActive',\n tabHovered: 'bui-TabHovered',\n panel: 'bui-TabPanel',\n },\n },\n TagGroup: {\n classNames: {\n group: 'bui-TagGroup',\n list: 'bui-TagList',\n tag: 'bui-Tag',\n tagIcon: 'bui-TagIcon',\n tagRemoveButton: 'bui-TagRemoveButton',\n },\n },\n Text: {\n classNames: {\n root: 'bui-Text',\n },\n dataAttributes: {\n variant: ['subtitle', 'body', 'caption', 'label'] as const,\n weight: ['regular', 'bold'] as const,\n color: ['primary', 'secondary', 'danger', 'warning', 'success'] as const,\n truncate: [true, false] as const,\n },\n },\n TextField: {\n classNames: {\n root: 'bui-TextField',\n inputWrapper: 'bui-InputWrapper',\n input: 'bui-Input',\n inputIcon: 'bui-InputIcon',\n inputAction: 'bui-InputAction',\n },\n dataAttributes: {\n invalid: [true, false] as const,\n disabled: [true, false] as const,\n size: ['small', 'medium'] as const,\n },\n },\n Tooltip: {\n classNames: {\n tooltip: 'bui-Tooltip',\n arrow: 'bui-TooltipArrow',\n },\n },\n VisuallyHidden: {\n classNames: {\n root: 'bui-VisuallyHidden',\n },\n },\n} as const satisfies Record<string, ComponentDefinition>;\n"],"names":[],"mappings":"AAsBO,MAAM,oBAAA,GAAuB;AAAA,EAClC,MAAA,EAAQ;AAAA,IACN,UAAA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,EAAa,QAAA,EAAU,WAAW,SAAS,CAAA;AAAA,MAC9D,QAAA,EAAU,CAAC,IAAA,EAAM,KAAK;AAAA;AACxB,GACF;AAAA,EACA,SAAA,EAAW;AAAA,IACT,UAAA,EAAY;AAAA,MACV,IAAA,EAAM,eAAA;AAAA,MACN,YAAA,EAAc,kBAAA;AAAA,MACd,KAAA,EAAO,WAAA;AAAA,MACP,SAAA,EAAW,eAAA;AAAA,MACX,WAAA,EAAa;AAAA,KACf;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,OAAA,EAAS,CAAC,IAAA,EAAM,KAAK,CAAA;AAAA,MACrB,QAAA,EAAU,CAAC,IAAA,EAAM,KAAK,CAAA;AAAA,MACtB,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA;AAC1B,GACF;AAAA,EACA,OAAA,EAAS;AAAA,IACP,UAAA,EAAY;AAAA,MACV,OAAA,EAAS,aAAA;AAAA,MACT,KAAA,EAAO;AAAA;AACT,GACF;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA;AACR;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/ui",
|
|
3
|
-
"version": "0.9.0-next.
|
|
3
|
+
"version": "0.9.0-next.3",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "web-library"
|
|
6
6
|
},
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
"test": "backstage-cli package test"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@base-ui-components/react": "1.0.0-alpha.7",
|
|
44
43
|
"@remixicon/react": "^4.6.0",
|
|
45
44
|
"@tanstack/react-table": "^8.21.3",
|
|
46
45
|
"clsx": "^2.1.1",
|
|
47
46
|
"react-aria-components": "^1.13.0"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@backstage/cli": "0.34.5-next.
|
|
49
|
+
"@backstage/cli": "0.34.5-next.1",
|
|
51
50
|
"@types/react": "^18.0.0",
|
|
52
51
|
"@types/react-dom": "^18.0.0",
|
|
53
52
|
"chalk": "^5.4.1",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { Collapsible as Collapsible$1 } from '@base-ui-components/react/collapsible';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { useStyles } from '../../hooks/useStyles.esm.js';
|
|
6
|
-
import styles from './Collapsible.module.css.esm.js';
|
|
7
|
-
|
|
8
|
-
const CollapsibleRoot = forwardRef(({ className, ...props }, ref) => {
|
|
9
|
-
const { classNames, cleanedProps } = useStyles("Collapsible", props);
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
Collapsible$1.Root,
|
|
12
|
-
{
|
|
13
|
-
ref,
|
|
14
|
-
className: clsx(classNames.root, styles[classNames.root], className),
|
|
15
|
-
...cleanedProps
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
CollapsibleRoot.displayName = Collapsible$1.Root.displayName;
|
|
20
|
-
const CollapsibleTrigger = forwardRef(({ className, ...props }, ref) => {
|
|
21
|
-
const { classNames, cleanedProps } = useStyles("Collapsible", props);
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
Collapsible$1.Trigger,
|
|
24
|
-
{
|
|
25
|
-
ref,
|
|
26
|
-
className: clsx(
|
|
27
|
-
classNames.trigger,
|
|
28
|
-
styles[classNames.trigger],
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
...cleanedProps
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
});
|
|
35
|
-
CollapsibleTrigger.displayName = Collapsible$1.Trigger.displayName;
|
|
36
|
-
const CollapsiblePanel = forwardRef(({ className, ...props }, ref) => {
|
|
37
|
-
const { classNames, cleanedProps } = useStyles("Collapsible", props);
|
|
38
|
-
return /* @__PURE__ */ jsx(
|
|
39
|
-
Collapsible$1.Panel,
|
|
40
|
-
{
|
|
41
|
-
ref,
|
|
42
|
-
className: clsx(classNames.panel, styles[classNames.panel], className),
|
|
43
|
-
...cleanedProps
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
});
|
|
47
|
-
CollapsiblePanel.displayName = Collapsible$1.Panel.displayName;
|
|
48
|
-
const Collapsible = {
|
|
49
|
-
Root: CollapsibleRoot,
|
|
50
|
-
Trigger: CollapsibleTrigger,
|
|
51
|
-
Panel: CollapsiblePanel
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export { Collapsible };
|
|
55
|
-
//# sourceMappingURL=Collapsible.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.esm.js","sources":["../../../src/components/Collapsible/Collapsible.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport { Collapsible as CollapsiblePrimitive } from '@base-ui-components/react/collapsible';\nimport clsx from 'clsx';\nimport { useStyles } from '../../hooks/useStyles';\nimport styles from './Collapsible.module.css';\n\nconst CollapsibleRoot = forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { classNames, cleanedProps } = useStyles('Collapsible', props);\n\n return (\n <CollapsiblePrimitive.Root\n ref={ref}\n className={clsx(classNames.root, styles[classNames.root], className)}\n {...cleanedProps}\n />\n );\n});\nCollapsibleRoot.displayName = CollapsiblePrimitive.Root.displayName;\n\nconst CollapsibleTrigger = forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>\n>(({ className, ...props }, ref) => {\n const { classNames, cleanedProps } = useStyles('Collapsible', props);\n\n return (\n <CollapsiblePrimitive.Trigger\n ref={ref}\n className={clsx(\n classNames.trigger,\n styles[classNames.trigger],\n className,\n )}\n {...cleanedProps}\n />\n );\n});\nCollapsibleTrigger.displayName = CollapsiblePrimitive.Trigger.displayName;\n\nconst CollapsiblePanel = forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Panel>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Panel>\n>(({ className, ...props }, ref) => {\n const { classNames, cleanedProps } = useStyles('Collapsible', props);\n\n return (\n <CollapsiblePrimitive.Panel\n ref={ref}\n className={clsx(classNames.panel, styles[classNames.panel], className)}\n {...cleanedProps}\n />\n );\n});\nCollapsiblePanel.displayName = CollapsiblePrimitive.Panel.displayName;\n\n/**\n * Collapsible is a component that allows you to collapse and expand content.\n * It is a wrapper around the CollapsiblePrimitive component from base-ui-components.\n *\n * @public\n */\nexport const Collapsible = {\n Root: CollapsibleRoot,\n Trigger: CollapsibleTrigger,\n Panel: CollapsiblePanel,\n};\n"],"names":["CollapsiblePrimitive"],"mappings":";;;;;;;AAsBA,MAAM,eAAA,GAAkB,WAGtB,CAAC,EAAE,WAAW,GAAG,KAAA,IAAS,GAAA,KAAQ;AAClC,EAAA,MAAM,EAAE,UAAA,EAAY,YAAA,EAAa,GAAI,SAAA,CAAU,eAAe,KAAK,CAAA;AAEnE,EAAA,uBACE,GAAA;AAAA,IAACA,aAAA,CAAqB,IAAA;AAAA,IAArB;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,KAAK,UAAA,CAAW,IAAA,EAAM,OAAO,UAAA,CAAW,IAAI,GAAG,SAAS,CA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_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = "/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n@layer tokens, base, components, utilities;\n\n@layer components {\n .Collapsible-module_bui-CollapsiblePanel__2C0cr {\n display: flex;\n height: var(--collapsible-panel-height);\n overflow: hidden;\n transition: all 150ms ease-out;\n\n &[data-starting-style],\n &[data-ending-style] {\n height: 0;\n }\n }\n}\n";
|
|
4
|
-
var styles = {"bui-CollapsiblePanel":"Collapsible-module_bui-CollapsiblePanel__2C0cr"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { styles as default };
|
|
8
|
-
//# sourceMappingURL=Collapsible.module.css.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|