@backstage/ui 0.7.0-next.2 → 0.7.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.
- package/CHANGELOG.md +35 -0
- package/css/styles.css +393 -196
- package/dist/components/Avatar/Avatar.esm.js.map +1 -1
- package/dist/components/Box/Box.esm.js.map +1 -1
- package/dist/components/Box/Box.props.esm.js.map +1 -1
- package/dist/components/Button/Button.esm.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.esm.js.map +1 -1
- package/dist/components/ButtonLink/ButtonLink.esm.js.map +1 -1
- package/dist/components/Card/Card.esm.js +4 -4
- package/dist/components/Card/Card.esm.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.esm.js +9 -9
- package/dist/components/Checkbox/Checkbox.esm.js.map +1 -1
- package/dist/components/Collapsible/Collapsible.esm.js.map +1 -1
- package/dist/components/Container/Container.esm.js.map +1 -1
- package/dist/components/FieldError/FieldError.esm.js.map +1 -1
- package/dist/components/FieldLabel/FieldLabel.esm.js.map +1 -1
- package/dist/components/Flex/Flex.esm.js.map +1 -1
- package/dist/components/Flex/Flex.props.esm.js.map +1 -1
- package/dist/components/Grid/Grid.esm.js.map +1 -1
- package/dist/components/Grid/Grid.props.esm.js.map +1 -1
- package/dist/components/Header/Header.esm.js +1 -12
- package/dist/components/Header/Header.esm.js.map +1 -1
- package/dist/components/Header/HeaderToolbar.esm.js +5 -125
- package/dist/components/Header/HeaderToolbar.esm.js.map +1 -1
- package/dist/components/HeaderPage/HeaderPage.esm.js +21 -30
- package/dist/components/HeaderPage/HeaderPage.esm.js.map +1 -1
- package/dist/components/Icon/Icon.esm.js.map +1 -1
- package/dist/components/Icon/context.esm.js.map +1 -1
- package/dist/components/Icon/icons.esm.js +1 -1
- package/dist/components/Icon/icons.esm.js.map +1 -1
- package/dist/components/Icon/provider.esm.js.map +1 -1
- package/dist/components/Link/Link.esm.js +1 -13
- package/dist/components/Link/Link.esm.js.map +1 -1
- package/dist/components/Menu/Menu.esm.js +144 -202
- package/dist/components/Menu/Menu.esm.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.esm.js.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.esm.js.map +1 -1
- package/dist/components/SearchField/SearchField.esm.js +27 -4
- package/dist/components/SearchField/SearchField.esm.js.map +1 -1
- package/dist/components/Select/Select.esm.js +0 -1
- package/dist/components/Select/Select.esm.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.esm.js.map +1 -1
- package/dist/components/Switch/Switch.esm.js.map +1 -1
- package/dist/components/Table/components/Cell.esm.js +30 -0
- package/dist/components/Table/components/Cell.esm.js.map +1 -0
- package/dist/components/Table/components/CellProfile.esm.js +41 -0
- package/dist/components/Table/components/CellProfile.esm.js.map +1 -0
- package/dist/components/Table/components/Column.esm.js +17 -0
- package/dist/components/Table/components/Column.esm.js.map +1 -0
- package/dist/components/Table/components/Row.esm.js +38 -0
- package/dist/components/Table/components/Row.esm.js.map +1 -0
- package/dist/components/Table/components/Table.esm.js +18 -0
- package/dist/components/Table/components/Table.esm.js.map +1 -0
- package/dist/components/Table/components/TableBody.esm.js +11 -0
- package/dist/components/Table/components/TableBody.esm.js.map +1 -0
- package/dist/components/Table/components/TableHeader.esm.js +20 -0
- package/dist/components/Table/components/TableHeader.esm.js.map +1 -0
- package/dist/components/Table/hooks/useTable.esm.js +116 -0
- package/dist/components/Table/hooks/useTable.esm.js.map +1 -0
- package/dist/components/TablePagination/TablePagination.esm.js +127 -0
- package/dist/components/TablePagination/TablePagination.esm.js.map +1 -0
- package/dist/components/Tabs/Tabs.esm.js.map +1 -1
- package/dist/components/Tabs/TabsIndicators.esm.js.map +1 -1
- package/dist/components/TagGroup/TagGroup.esm.js +62 -0
- package/dist/components/TagGroup/TagGroup.esm.js.map +1 -0
- package/dist/components/Text/Text.esm.js.map +1 -1
- package/dist/components/TextField/TextField.esm.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.esm.js.map +1 -1
- package/dist/hooks/useBreakpoint.esm.js.map +1 -1
- package/dist/hooks/useIsomorphicLayoutEffect.esm.js.map +1 -1
- package/dist/hooks/useMediaQuery.esm.js.map +1 -1
- package/dist/hooks/useStyles.esm.js.map +1 -1
- package/dist/index.d.ts +289 -157
- package/dist/index.esm.js +12 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/props/display.props.esm.js.map +1 -1
- package/dist/props/gap-props.esm.js.map +1 -1
- package/dist/props/height.props.esm.js.map +1 -1
- package/dist/props/margin.props.esm.js.map +1 -1
- package/dist/props/padding.props.esm.js.map +1 -1
- package/dist/props/position.props.esm.js.map +1 -1
- package/dist/props/prop-def.esm.js.map +1 -1
- package/dist/props/spacing.props.esm.js.map +1 -1
- package/dist/props/width.props.esm.js.map +1 -1
- package/dist/utils/componentDefinitions.esm.js +32 -22
- package/dist/utils/componentDefinitions.esm.js.map +1 -1
- package/dist/utils/extractProps.esm.js.map +1 -1
- package/dist/utils/isExternalLink.esm.js +16 -0
- package/dist/utils/isExternalLink.esm.js.map +1 -0
- package/package.json +3 -15
- package/dist/components/DataTable/DataTable.esm.js +0 -26
- package/dist/components/DataTable/DataTable.esm.js.map +0 -1
- package/dist/components/DataTable/Pagination/DataTablePagination.esm.js +0 -84
- package/dist/components/DataTable/Pagination/DataTablePagination.esm.js.map +0 -1
- package/dist/components/DataTable/Root/DataTableRoot.esm.js +0 -24
- package/dist/components/DataTable/Root/DataTableRoot.esm.js.map +0 -1
- package/dist/components/DataTable/Table/DataTableTable.esm.js +0 -64
- package/dist/components/DataTable/Table/DataTableTable.esm.js.map +0 -1
- package/dist/components/Menu/Combobox.esm.js +0 -211
- package/dist/components/Menu/Combobox.esm.js.map +0 -1
- package/dist/components/Select/Select.styles.css.esm.js +0 -7
- package/dist/components/Select/Select.styles.css.esm.js.map +0 -1
- package/dist/components/Table/Table.esm.js +0 -68
- package/dist/components/Table/Table.esm.js.map +0 -1
- package/dist/components/Table/TableCell/TableCell.esm.js +0 -13
- package/dist/components/Table/TableCell/TableCell.esm.js.map +0 -1
- package/dist/components/Table/TableCellLink/TableCellLink.esm.js +0 -28
- package/dist/components/Table/TableCellLink/TableCellLink.esm.js.map +0 -1
- package/dist/components/Table/TableCellProfile/TableCellProfile.esm.js +0 -40
- package/dist/components/Table/TableCellProfile/TableCellProfile.esm.js.map +0 -1
- package/dist/components/Table/TableCellText/TableCellText.esm.js +0 -27
- package/dist/components/Table/TableCellText/TableCellText.esm.js.map +0 -1
- package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js +0 -29
- package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ComponentProps
|
|
2
|
+
import { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ComponentProps } from 'react';
|
|
3
3
|
import { RemixiconComponentType } from '@remixicon/react';
|
|
4
4
|
import { Avatar as Avatar$1 } from '@base-ui-components/react/avatar';
|
|
5
|
-
import { ButtonProps as ButtonProps$1, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, TabPanelProps as TabPanelProps$1, LinkProps as LinkProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, TextFieldProps as TextFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1 } from 'react-aria-components';
|
|
5
|
+
import { ButtonProps as ButtonProps$1, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, TabPanelProps as TabPanelProps$1, LinkProps as LinkProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, TableProps, TableHeaderProps, TableBodyProps, ColumnProps, RowProps, CellProps as CellProps$1, 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';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { NavigateOptions } from 'react-router-dom';
|
|
8
8
|
import { Collapsible as Collapsible$1 } from '@base-ui-components/react/collapsible';
|
|
9
|
-
import { useRender } from '@base-ui-components/react/use-render';
|
|
10
|
-
import { Table as Table$1 } from '@tanstack/react-table';
|
|
11
|
-
import { Menu as Menu$1 } from '@base-ui-components/react/menu';
|
|
12
9
|
import { ScrollArea as ScrollArea$1 } from '@base-ui-components/react/scroll-area';
|
|
13
10
|
|
|
14
11
|
/** @public */
|
|
@@ -133,10 +130,6 @@ declare const componentDefinitions: {
|
|
|
133
130
|
readonly toolbarControls: "bui-HeaderToolbarControls";
|
|
134
131
|
readonly toolbarIcon: "bui-HeaderToolbarIcon";
|
|
135
132
|
readonly toolbarName: "bui-HeaderToolbarName";
|
|
136
|
-
readonly breadcrumbs: "bui-HeaderBreadcrumbs";
|
|
137
|
-
readonly breadcrumb: "bui-HeaderBreadcrumb";
|
|
138
|
-
readonly breadcrumbLink: "bui-HeaderBreadcrumbLink";
|
|
139
|
-
readonly breadcrumbSeparator: "bui-HeaderBreadcrumbSeparator";
|
|
140
133
|
readonly tabsWrapper: "bui-HeaderTabsWrapper";
|
|
141
134
|
};
|
|
142
135
|
};
|
|
@@ -144,6 +137,7 @@ declare const componentDefinitions: {
|
|
|
144
137
|
readonly classNames: {
|
|
145
138
|
readonly root: "bui-HeaderPage";
|
|
146
139
|
readonly content: "bui-HeaderPageContent";
|
|
140
|
+
readonly breadcrumbs: "bui-HeaderPageBreadcrumbs";
|
|
147
141
|
readonly tabsWrapper: "bui-HeaderPageTabsWrapper";
|
|
148
142
|
readonly controls: "bui-HeaderPageControls";
|
|
149
143
|
};
|
|
@@ -181,21 +175,21 @@ declare const componentDefinitions: {
|
|
|
181
175
|
};
|
|
182
176
|
readonly Menu: {
|
|
183
177
|
readonly classNames: {
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
178
|
+
readonly root: "bui-Menu";
|
|
179
|
+
readonly popover: "bui-MenuPopover";
|
|
180
|
+
readonly content: "bui-MenuContent";
|
|
181
|
+
readonly section: "bui-MenuSection";
|
|
182
|
+
readonly sectionHeader: "bui-MenuSectionHeader";
|
|
189
183
|
readonly item: "bui-MenuItem";
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
readonly radioItemIndicator: "bui-MenuRadioItemIndicator";
|
|
195
|
-
readonly checkboxItem: "bui-MenuCheckboxItem";
|
|
196
|
-
readonly checkboxItemIndicator: "bui-MenuCheckboxItemIndicator";
|
|
197
|
-
readonly submenuTrigger: "bui-MenuSubmenuTrigger";
|
|
184
|
+
readonly itemListBox: "bui-MenuItemListBox";
|
|
185
|
+
readonly itemListBoxCheck: "bui-MenuItemListBoxCheck";
|
|
186
|
+
readonly itemContent: "bui-MenuItemContent";
|
|
187
|
+
readonly itemArrow: "bui-MenuItemArrow";
|
|
198
188
|
readonly separator: "bui-MenuSeparator";
|
|
189
|
+
readonly searchField: "bui-MenuSearchField";
|
|
190
|
+
readonly searchFieldInput: "bui-MenuSearchFieldInput";
|
|
191
|
+
readonly searchFieldClear: "bui-MenuSearchFieldClear";
|
|
192
|
+
readonly emptyState: "bui-MenuEmptyState";
|
|
199
193
|
};
|
|
200
194
|
};
|
|
201
195
|
readonly Popover: {
|
|
@@ -223,6 +217,9 @@ declare const componentDefinitions: {
|
|
|
223
217
|
readonly root: "bui-SearchField";
|
|
224
218
|
readonly clear: "bui-InputClear";
|
|
225
219
|
};
|
|
220
|
+
readonly dataAttributes: {
|
|
221
|
+
readonly startCollapsed: readonly [true, false];
|
|
222
|
+
};
|
|
226
223
|
};
|
|
227
224
|
readonly Select: {
|
|
228
225
|
readonly classNames: {
|
|
@@ -252,16 +249,17 @@ declare const componentDefinitions: {
|
|
|
252
249
|
};
|
|
253
250
|
readonly Table: {
|
|
254
251
|
readonly classNames: {
|
|
255
|
-
readonly
|
|
252
|
+
readonly table: "bui-Table";
|
|
256
253
|
readonly header: "bui-TableHeader";
|
|
257
254
|
readonly body: "bui-TableBody";
|
|
258
255
|
readonly row: "bui-TableRow";
|
|
259
256
|
readonly head: "bui-TableHead";
|
|
257
|
+
readonly headSortButton: "bui-TableHeadSortButton";
|
|
260
258
|
readonly caption: "bui-TableCaption";
|
|
261
259
|
readonly cell: "bui-TableCell";
|
|
262
|
-
readonly
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
260
|
+
readonly cellContentWrapper: "bui-TableCellContentWrapper";
|
|
261
|
+
readonly cellContent: "bui-TableCellContent";
|
|
262
|
+
readonly cellIcon: "bui-TableCellIcon";
|
|
265
263
|
readonly cellProfileAvatar: "bui-TableCellProfileAvatar";
|
|
266
264
|
readonly cellProfileAvatarImage: "bui-TableCellProfileAvatarImage";
|
|
267
265
|
readonly cellProfileAvatarFallback: "bui-TableCellProfileAvatarFallback";
|
|
@@ -280,6 +278,15 @@ declare const componentDefinitions: {
|
|
|
280
278
|
readonly panel: "bui-TabPanel";
|
|
281
279
|
};
|
|
282
280
|
};
|
|
281
|
+
readonly TagGroup: {
|
|
282
|
+
readonly classNames: {
|
|
283
|
+
readonly group: "bui-TagGroup";
|
|
284
|
+
readonly list: "bui-TagList";
|
|
285
|
+
readonly tag: "bui-Tag";
|
|
286
|
+
readonly tagIcon: "bui-TagIcon";
|
|
287
|
+
readonly tagRemoveButton: "bui-TagRemoveButton";
|
|
288
|
+
};
|
|
289
|
+
};
|
|
283
290
|
readonly Text: {
|
|
284
291
|
readonly classNames: {
|
|
285
292
|
readonly root: "bui-Text";
|
|
@@ -782,95 +789,37 @@ interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
782
789
|
* @public
|
|
783
790
|
*/
|
|
784
791
|
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
785
|
-
|
|
786
792
|
/**
|
|
787
|
-
*
|
|
788
|
-
* It is a wrapper around the CollapsiblePrimitive component from base-ui-components.
|
|
793
|
+
* CardHeader component.
|
|
789
794
|
*
|
|
790
795
|
* @public
|
|
791
796
|
*/
|
|
792
|
-
declare const
|
|
793
|
-
Root: react.ForwardRefExoticComponent<Omit<Collapsible$1.Root.Props & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
794
|
-
Trigger: react.ForwardRefExoticComponent<Omit<Collapsible$1.Trigger.Props & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
795
|
-
Panel: react.ForwardRefExoticComponent<Omit<Collapsible$1.Panel.Props & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
796
|
-
};
|
|
797
|
-
|
|
797
|
+
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
798
798
|
/**
|
|
799
|
-
*
|
|
799
|
+
* CardBody component.
|
|
800
|
+
*
|
|
800
801
|
* @public
|
|
801
802
|
*/
|
|
802
|
-
declare const
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
CellText: react.ForwardRefExoticComponent<TableCellTextProps & react.RefAttributes<HTMLDivElement>>;
|
|
810
|
-
CellLink: react.ForwardRefExoticComponent<TableCellLinkProps & react.RefAttributes<HTMLDivElement>>;
|
|
811
|
-
CellProfile: react.ForwardRefExoticComponent<TableCellProfileProps & react.RefAttributes<HTMLDivElement>>;
|
|
812
|
-
Caption: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
/** @public */
|
|
816
|
-
interface TableCellTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
817
|
-
title: string;
|
|
818
|
-
description?: string;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
/** @public */
|
|
822
|
-
interface TableCellLinkProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
823
|
-
title: string;
|
|
824
|
-
description?: string;
|
|
825
|
-
href: string;
|
|
826
|
-
render?: useRender.ComponentProps<'a'>['render'];
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
/** @public */
|
|
830
|
-
interface TableCellProfileProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
831
|
-
src?: string;
|
|
832
|
-
name?: string;
|
|
833
|
-
to?: string;
|
|
834
|
-
withImage?: boolean;
|
|
835
|
-
}
|
|
803
|
+
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
804
|
+
/**
|
|
805
|
+
* CardFooter component.
|
|
806
|
+
*
|
|
807
|
+
* @public
|
|
808
|
+
*/
|
|
809
|
+
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
836
810
|
|
|
837
811
|
/**
|
|
838
|
-
*
|
|
812
|
+
* Collapsible is a component that allows you to collapse and expand content.
|
|
813
|
+
* It is a wrapper around the CollapsiblePrimitive component from base-ui-components.
|
|
814
|
+
*
|
|
839
815
|
* @public
|
|
840
816
|
*/
|
|
841
|
-
declare const
|
|
842
|
-
Root: <
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
Pagination: react.ForwardRefExoticComponent<DataTablePaginationProps & react.RefAttributes<HTMLDivElement>>;
|
|
846
|
-
Table: react.ForwardRefExoticComponent<DataTableTableProps & react.RefAttributes<HTMLTableElement>>;
|
|
847
|
-
TableRoot: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>, "ref"> & react.RefAttributes<HTMLTableElement>>;
|
|
848
|
-
TableHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
849
|
-
TableBody: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
850
|
-
TableRow: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
|
|
851
|
-
TableCell: react.ForwardRefExoticComponent<react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
|
|
852
|
-
TableCellText: react.ForwardRefExoticComponent<TableCellTextProps & react.RefAttributes<HTMLDivElement>>;
|
|
853
|
-
TableCellLink: react.ForwardRefExoticComponent<TableCellLinkProps & react.RefAttributes<HTMLDivElement>>;
|
|
854
|
-
TableCellProfile: react.ForwardRefExoticComponent<TableCellProfileProps & react.RefAttributes<HTMLDivElement>>;
|
|
855
|
-
TableHead: react.ForwardRefExoticComponent<react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
|
|
817
|
+
declare const Collapsible: {
|
|
818
|
+
Root: react.ForwardRefExoticComponent<Omit<Collapsible$1.Root.Props & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
819
|
+
Trigger: react.ForwardRefExoticComponent<Omit<Collapsible$1.Trigger.Props & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
820
|
+
Panel: react.ForwardRefExoticComponent<Omit<Collapsible$1.Panel.Props & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
856
821
|
};
|
|
857
822
|
|
|
858
|
-
/** @public */
|
|
859
|
-
interface DataTableRootProps<TData> extends React.HTMLAttributes<HTMLDivElement> {
|
|
860
|
-
/**
|
|
861
|
-
* The table instance.
|
|
862
|
-
*/
|
|
863
|
-
table: Table$1<TData>;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
/** @public */
|
|
867
|
-
interface DataTablePaginationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
/** @public */
|
|
871
|
-
interface DataTableTableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
872
|
-
}
|
|
873
|
-
|
|
874
823
|
/** @public */
|
|
875
824
|
interface FieldLabelProps {
|
|
876
825
|
/**
|
|
@@ -973,9 +922,7 @@ interface HeaderProps {
|
|
|
973
922
|
icon?: React.ReactNode;
|
|
974
923
|
title?: string;
|
|
975
924
|
titleLink?: string;
|
|
976
|
-
breadcrumbs?: HeaderBreadcrumb[];
|
|
977
925
|
customActions?: React.ReactNode;
|
|
978
|
-
menuItems?: HeaderMenuItem[];
|
|
979
926
|
tabs?: HeaderTab[];
|
|
980
927
|
onTabSelectionChange?: TabsProps$1['onSelectionChange'];
|
|
981
928
|
}
|
|
@@ -995,25 +942,6 @@ interface HeaderTab {
|
|
|
995
942
|
*/
|
|
996
943
|
matchStrategy?: TabMatchStrategy;
|
|
997
944
|
}
|
|
998
|
-
/**
|
|
999
|
-
* Represents an option item in the header dropdown menu.
|
|
1000
|
-
*
|
|
1001
|
-
* @public
|
|
1002
|
-
*/
|
|
1003
|
-
interface HeaderMenuItem {
|
|
1004
|
-
label: string;
|
|
1005
|
-
value: string;
|
|
1006
|
-
onClick?: () => void;
|
|
1007
|
-
}
|
|
1008
|
-
/**
|
|
1009
|
-
* Represents a breadcrumb item in the header.
|
|
1010
|
-
*
|
|
1011
|
-
* @public
|
|
1012
|
-
*/
|
|
1013
|
-
interface HeaderBreadcrumb {
|
|
1014
|
-
label: string;
|
|
1015
|
-
href: string;
|
|
1016
|
-
}
|
|
1017
945
|
|
|
1018
946
|
declare module 'react-aria-components' {
|
|
1019
947
|
interface RouterConfig {
|
|
@@ -1035,8 +963,17 @@ declare const Header: (props: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
|
1035
963
|
interface HeaderPageProps {
|
|
1036
964
|
title?: string;
|
|
1037
965
|
customActions?: React.ReactNode;
|
|
1038
|
-
menuItems?: HeaderMenuItem[];
|
|
1039
966
|
tabs?: HeaderTab[];
|
|
967
|
+
breadcrumbs?: HeaderPageBreadcrumb[];
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Represents a breadcrumb item in the header.
|
|
971
|
+
*
|
|
972
|
+
* @public
|
|
973
|
+
*/
|
|
974
|
+
interface HeaderPageBreadcrumb {
|
|
975
|
+
label: string;
|
|
976
|
+
href: string;
|
|
1040
977
|
}
|
|
1041
978
|
|
|
1042
979
|
/**
|
|
@@ -1115,6 +1052,172 @@ declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & reac
|
|
|
1115
1052
|
/** @public */
|
|
1116
1053
|
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLLabelElement>>;
|
|
1117
1054
|
|
|
1055
|
+
/** @public */
|
|
1056
|
+
declare const Table: (props: TableProps) => react_jsx_runtime.JSX.Element;
|
|
1057
|
+
|
|
1058
|
+
/** @public */
|
|
1059
|
+
declare const TableHeader: <T extends object>({ columns, children, }: TableHeaderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1060
|
+
|
|
1061
|
+
/** @public */
|
|
1062
|
+
declare const TableBody: <T extends object>(props: TableBodyProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1063
|
+
|
|
1064
|
+
/** @public */
|
|
1065
|
+
declare const Column: (props: Omit<ColumnProps, "children"> & {
|
|
1066
|
+
children?: React.ReactNode;
|
|
1067
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1068
|
+
|
|
1069
|
+
/** @public */
|
|
1070
|
+
declare function Row<T extends object>({ id, columns, children, href, ...otherProps }: RowProps<T>): react_jsx_runtime.JSX.Element;
|
|
1071
|
+
|
|
1072
|
+
/** @public */
|
|
1073
|
+
interface CellProps extends CellProps$1 {
|
|
1074
|
+
title: string;
|
|
1075
|
+
description?: string;
|
|
1076
|
+
color?: 'primary' | 'secondary';
|
|
1077
|
+
leadingIcon?: React.ReactNode | null;
|
|
1078
|
+
href?: string;
|
|
1079
|
+
}
|
|
1080
|
+
/** @public */
|
|
1081
|
+
interface CellProfileProps extends CellProps$1 {
|
|
1082
|
+
src?: string;
|
|
1083
|
+
name?: string;
|
|
1084
|
+
href?: string;
|
|
1085
|
+
description?: string;
|
|
1086
|
+
color?: 'primary' | 'secondary';
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/** @public */
|
|
1090
|
+
declare const Cell: {
|
|
1091
|
+
(props: CellProps): react_jsx_runtime.JSX.Element;
|
|
1092
|
+
displayName: string;
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
/** @public */
|
|
1096
|
+
declare const CellProfile: (props: CellProfileProps) => react_jsx_runtime.JSX.Element;
|
|
1097
|
+
|
|
1098
|
+
/** @public */
|
|
1099
|
+
interface TablePaginationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1100
|
+
offset?: number;
|
|
1101
|
+
pageSize?: number;
|
|
1102
|
+
setPageSize?: (pageSize: number) => void;
|
|
1103
|
+
setOffset?: (offset: number) => void;
|
|
1104
|
+
rowCount?: number;
|
|
1105
|
+
onNextPage?: () => void;
|
|
1106
|
+
onPreviousPage?: () => void;
|
|
1107
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
1108
|
+
showPageSizeOptions?: boolean;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/** @public */
|
|
1112
|
+
interface UseTablePaginationConfig {
|
|
1113
|
+
/** Total number of rows in the dataset - only needed when data is not provided at the top level */
|
|
1114
|
+
rowCount?: number;
|
|
1115
|
+
/** Current offset. When provided, pagination is controlled */
|
|
1116
|
+
offset?: number;
|
|
1117
|
+
/** Current page size. When provided, pagination is controlled */
|
|
1118
|
+
pageSize?: number;
|
|
1119
|
+
/** Callback when offset changes */
|
|
1120
|
+
onOffsetChange?: (offset: number) => void;
|
|
1121
|
+
/** Callback when page size changes */
|
|
1122
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
1123
|
+
/** Default page size for uncontrolled mode */
|
|
1124
|
+
defaultPageSize?: number;
|
|
1125
|
+
/** Default offset for uncontrolled mode */
|
|
1126
|
+
defaultOffset?: number;
|
|
1127
|
+
/** Callback when next page is clicked */
|
|
1128
|
+
onNextPage?: () => void;
|
|
1129
|
+
/** Callback when previous page is clicked */
|
|
1130
|
+
onPreviousPage?: () => void;
|
|
1131
|
+
/** Whether to show page size options */
|
|
1132
|
+
showPageSizeOptions?: boolean;
|
|
1133
|
+
}
|
|
1134
|
+
/** @public */
|
|
1135
|
+
interface UseTablePagination<T = any> {
|
|
1136
|
+
/** Props to pass to TablePagination component */
|
|
1137
|
+
paginationProps: TablePaginationProps;
|
|
1138
|
+
/** Current offset */
|
|
1139
|
+
offset: number;
|
|
1140
|
+
/** Current page size */
|
|
1141
|
+
pageSize: number;
|
|
1142
|
+
/** Sliced data for current page - only available when data is provided to useTable */
|
|
1143
|
+
data?: T[];
|
|
1144
|
+
/** Go to next page */
|
|
1145
|
+
nextPage: () => void;
|
|
1146
|
+
/** Go to previous page */
|
|
1147
|
+
previousPage: () => void;
|
|
1148
|
+
/** Set specific offset */
|
|
1149
|
+
setOffset: (offset: number) => void;
|
|
1150
|
+
/** Set page size */
|
|
1151
|
+
setPageSize: (pageSize: number) => void;
|
|
1152
|
+
}
|
|
1153
|
+
/** @public */
|
|
1154
|
+
interface UseTableConfig<T = any> {
|
|
1155
|
+
/** Full dataset - when provided, rowCount is calculated automatically and sliced data is returned */
|
|
1156
|
+
data?: T[];
|
|
1157
|
+
/** Pagination configuration */
|
|
1158
|
+
pagination?: UseTablePaginationConfig;
|
|
1159
|
+
}
|
|
1160
|
+
/** @public */
|
|
1161
|
+
interface UseTableResult<T = any> {
|
|
1162
|
+
/** Sliced data for current page */
|
|
1163
|
+
data?: T[];
|
|
1164
|
+
/** Props to pass to TablePagination component */
|
|
1165
|
+
paginationProps: TablePaginationProps;
|
|
1166
|
+
/** Pagination utilities */
|
|
1167
|
+
pagination: UseTablePagination<T>;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* Hook for managing table state including pagination and future features like sorting.
|
|
1172
|
+
* Supports both controlled and uncontrolled modes using offset/pageSize pattern (Backstage style).
|
|
1173
|
+
*
|
|
1174
|
+
* @public
|
|
1175
|
+
*/
|
|
1176
|
+
declare function useTable<T = any>(config?: UseTableConfig<T>): UseTableResult<T>;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Pagination controls for Table components with page navigation and size selection.
|
|
1180
|
+
*
|
|
1181
|
+
* @public
|
|
1182
|
+
*/
|
|
1183
|
+
declare function TablePagination(props: TablePaginationProps): react_jsx_runtime.JSX.Element;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Props for the TagGroup component.
|
|
1187
|
+
*
|
|
1188
|
+
* @public
|
|
1189
|
+
*/
|
|
1190
|
+
interface TagGroupProps<T> extends Omit<TagGroupProps$1, 'children'>, Pick<TagListProps<T>, 'items' | 'children' | 'renderEmptyState'> {
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Props for the Tag component.
|
|
1194
|
+
*
|
|
1195
|
+
* @public
|
|
1196
|
+
*/
|
|
1197
|
+
interface TagProps extends TagProps$1 {
|
|
1198
|
+
/**
|
|
1199
|
+
* The icon to display in the chip.
|
|
1200
|
+
*/
|
|
1201
|
+
icon?: React.ReactNode;
|
|
1202
|
+
/**
|
|
1203
|
+
* The size of the chip.
|
|
1204
|
+
*/
|
|
1205
|
+
size?: 'small' | 'medium';
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* A component that renders a list of tags.
|
|
1210
|
+
*
|
|
1211
|
+
* @public
|
|
1212
|
+
*/
|
|
1213
|
+
declare const TagGroup: <T extends object>({ items, children, renderEmptyState, ...props }: TagGroupProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1214
|
+
/**
|
|
1215
|
+
* A component that renders a tag.
|
|
1216
|
+
*
|
|
1217
|
+
* @public
|
|
1218
|
+
*/
|
|
1219
|
+
declare const Tag: (props: TagProps) => react_jsx_runtime.JSX.Element;
|
|
1220
|
+
|
|
1118
1221
|
/** @public */
|
|
1119
1222
|
type TextOwnProps = {
|
|
1120
1223
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'div' | 'strong' | 'em' | 'small' | 'legend';
|
|
@@ -1165,43 +1268,68 @@ declare const TooltipTrigger: (props: TooltipTriggerComponentProps) => react_jsx
|
|
|
1165
1268
|
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
1166
1269
|
|
|
1167
1270
|
/** @public */
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
value: string;
|
|
1171
|
-
disabled?: boolean;
|
|
1172
|
-
};
|
|
1271
|
+
interface MenuTriggerProps extends MenuTriggerProps$1 {
|
|
1272
|
+
}
|
|
1173
1273
|
/** @public */
|
|
1174
|
-
interface
|
|
1175
|
-
options: MenuComboboxOption[];
|
|
1176
|
-
value?: string[];
|
|
1177
|
-
onValueChange?: (value: string[]) => void;
|
|
1178
|
-
multiselect?: boolean;
|
|
1179
|
-
closeParentOnEsc?: boolean;
|
|
1274
|
+
interface SubmenuTriggerProps extends SubmenuTriggerProps$1 {
|
|
1180
1275
|
}
|
|
1181
1276
|
/** @public */
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1277
|
+
interface MenuProps<T> extends MenuProps$1<T>, Omit<MenuProps$1<T>, 'children'> {
|
|
1278
|
+
placement?: PopoverProps['placement'];
|
|
1279
|
+
}
|
|
1280
|
+
/** @public */
|
|
1281
|
+
interface MenuListBoxProps<T> extends ListBoxProps<T>, Omit<ListBoxProps<T>, 'children'> {
|
|
1282
|
+
placement?: PopoverProps['placement'];
|
|
1283
|
+
}
|
|
1284
|
+
/** @public */
|
|
1285
|
+
interface MenuAutocompleteProps<T> extends MenuProps$1<T>, Omit<MenuProps$1<T>, 'children'> {
|
|
1286
|
+
placeholder?: string;
|
|
1287
|
+
placement?: PopoverProps['placement'];
|
|
1288
|
+
}
|
|
1289
|
+
/** @public */
|
|
1290
|
+
interface MenuAutocompleteListBoxProps<T> extends ListBoxProps<T>, Omit<ListBoxProps<T>, 'children'> {
|
|
1291
|
+
placeholder?: string;
|
|
1292
|
+
placement?: PopoverProps['placement'];
|
|
1293
|
+
}
|
|
1294
|
+
/** @public */
|
|
1295
|
+
interface MenuItemProps extends MenuItemProps$1, Omit<MenuItemProps$1, 'children'> {
|
|
1296
|
+
iconStart?: React.ReactNode;
|
|
1297
|
+
children: React.ReactNode;
|
|
1298
|
+
color?: 'primary' | 'danger';
|
|
1299
|
+
}
|
|
1300
|
+
/** @public */
|
|
1301
|
+
interface MenuListBoxItemProps extends ListBoxItemProps, Omit<ListBoxItemProps, 'children'> {
|
|
1302
|
+
children: React.ReactNode;
|
|
1303
|
+
}
|
|
1304
|
+
/** @public */
|
|
1305
|
+
interface MenuSectionProps<T> extends MenuSectionProps$1<T>, Omit<MenuSectionProps$1<T>, 'children'> {
|
|
1306
|
+
title: string;
|
|
1307
|
+
children: React.ReactNode;
|
|
1308
|
+
}
|
|
1309
|
+
/** @public */
|
|
1310
|
+
interface MenuSeparatorProps extends SeparatorProps {
|
|
1311
|
+
}
|
|
1202
1312
|
|
|
1203
1313
|
/** @public */
|
|
1204
|
-
declare const
|
|
1314
|
+
declare const MenuTrigger: (props: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1315
|
+
/** @public */
|
|
1316
|
+
declare const SubmenuTrigger: (props: SubmenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1317
|
+
/** @public */
|
|
1318
|
+
declare const Menu: (props: MenuProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1319
|
+
/** @public */
|
|
1320
|
+
declare const MenuListBox: (props: MenuListBoxProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1321
|
+
/** @public */
|
|
1322
|
+
declare const MenuAutocomplete: (props: MenuAutocompleteProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1323
|
+
/** @public */
|
|
1324
|
+
declare const MenuAutocompleteListbox: (props: MenuAutocompleteListBoxProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1325
|
+
/** @public */
|
|
1326
|
+
declare const MenuItem: (props: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1327
|
+
/** @public */
|
|
1328
|
+
declare const MenuListBoxItem: (props: MenuListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
1329
|
+
/** @public */
|
|
1330
|
+
declare const MenuSection: (props: MenuSectionProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1331
|
+
/** @public */
|
|
1332
|
+
declare const MenuSeparator: (props: MenuSeparatorProps) => react_jsx_runtime.JSX.Element;
|
|
1205
1333
|
|
|
1206
1334
|
/** @public */
|
|
1207
1335
|
declare const ScrollArea: {
|
|
@@ -1226,6 +1354,10 @@ interface SearchFieldProps extends SearchFieldProps$1, Omit<FieldLabelProps, 'ht
|
|
|
1226
1354
|
* The placeholder text for the input
|
|
1227
1355
|
*/
|
|
1228
1356
|
placeholder?: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* Controls whether the SearchField starts in a collapsed state.
|
|
1359
|
+
*/
|
|
1360
|
+
startCollapsed?: boolean;
|
|
1229
1361
|
}
|
|
1230
1362
|
|
|
1231
1363
|
/** @public */
|
|
@@ -1407,4 +1539,4 @@ declare const useBreakpoint: () => {
|
|
|
1407
1539
|
down: (key: Breakpoint) => boolean;
|
|
1408
1540
|
};
|
|
1409
1541
|
|
|
1410
|
-
export { type AlignItems, type ArbitraryStylingPropDef, Avatar, type AvatarProps, type BooleanPropDef, type Border, type BorderRadius, Box, type BoxOwnProps, type BoxProps, type Breakpoint, Button, ButtonIcon, type ButtonIconProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ClassNamesMap, Collapsible, type Columns, type ComponentClassNames, type ComponentDefinition, type ComponentDefinitionName, Container, type ContainerProps, type DataAttributeValues, type DataAttributesMap,
|
|
1542
|
+
export { type AlignItems, type ArbitraryStylingPropDef, Avatar, type AvatarProps, type BooleanPropDef, type Border, type BorderRadius, Box, type BoxOwnProps, 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 Columns, type ComponentClassNames, type ComponentDefinition, type ComponentDefinitionName, Container, type ContainerProps, type DataAttributeValues, type DataAttributesMap, type Display, type DisplayProps, type EnumOrStringPropDef, type EnumPropDef, FieldLabel, type FieldLabelProps, Flex, type FlexDirection, type FlexOwnProps, type FlexProps, type FlexWrap, type GapProps, type GetPropDefType, type GetPropDefTypes, Grid, type GridItemOwnProps, type GridItemProps, type GridOwnProps, type GridProps, Header, HeaderPage, type HeaderPageBreadcrumb, type HeaderPageProps, type HeaderProps, type HeaderTab, type HeightProps, Icon, IconContext, type IconContextProps, type IconMap, type IconNames, type IconProps, IconProvider, type IconProviderProps, type JustifyContent, Link, type LinkProps, type MarginProps, 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 NonStylingPropDef, type PaddingProps, type PositionProps, type PropDef, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type ReactNodePropDef, type RegularPropDef, type Responsive, type ResponsivePropDef, Row, ScrollArea, SearchField, type SearchFieldProps, Select, type SelectProps, Skeleton, type SkeletonProps, type Space, type SpaceProps, type StringPropDef, type StylingPropDef, 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, type WidthProps, boxPropDefs, breakpoints, componentDefinitions, displayPropDefs, flexPropDefs, gapPropDefs, gridItemPropDefs, gridPropDefs, heightPropDefs, icons, marginPropDefs, paddingPropDefs, positionPropDefs, useBreakpoint, useIcons, useTable, widthPropDefs };
|
package/dist/index.esm.js
CHANGED
|
@@ -8,9 +8,8 @@ export { flexPropDefs } from './components/Flex/Flex.props.esm.js';
|
|
|
8
8
|
export { Container } from './components/Container/Container.esm.js';
|
|
9
9
|
export { Avatar } from './components/Avatar/Avatar.esm.js';
|
|
10
10
|
export { Button } from './components/Button/Button.esm.js';
|
|
11
|
-
export { Card } from './components/Card/Card.esm.js';
|
|
11
|
+
export { Card, CardBody, CardFooter, CardHeader } from './components/Card/Card.esm.js';
|
|
12
12
|
export { Collapsible } from './components/Collapsible/Collapsible.esm.js';
|
|
13
|
-
export { DataTable } from './components/DataTable/DataTable.esm.js';
|
|
14
13
|
export { FieldLabel } from './components/FieldLabel/FieldLabel.esm.js';
|
|
15
14
|
export { Header } from './components/Header/Header.esm.js';
|
|
16
15
|
export { HeaderPage } from './components/HeaderPage/HeaderPage.esm.js';
|
|
@@ -21,12 +20,21 @@ export { ButtonIcon } from './components/ButtonIcon/ButtonIcon.esm.js';
|
|
|
21
20
|
export { ButtonLink } from './components/ButtonLink/ButtonLink.esm.js';
|
|
22
21
|
export { Checkbox } from './components/Checkbox/Checkbox.esm.js';
|
|
23
22
|
export { Radio, RadioGroup } from './components/RadioGroup/RadioGroup.esm.js';
|
|
24
|
-
export { Table } from './components/Table/Table.esm.js';
|
|
23
|
+
export { Table } from './components/Table/components/Table.esm.js';
|
|
24
|
+
export { TableHeader } from './components/Table/components/TableHeader.esm.js';
|
|
25
|
+
export { TableBody } from './components/Table/components/TableBody.esm.js';
|
|
26
|
+
export { Column } from './components/Table/components/Column.esm.js';
|
|
27
|
+
export { Row } from './components/Table/components/Row.esm.js';
|
|
28
|
+
export { Cell } from './components/Table/components/Cell.esm.js';
|
|
29
|
+
export { CellProfile } from './components/Table/components/CellProfile.esm.js';
|
|
30
|
+
export { useTable } from './components/Table/hooks/useTable.esm.js';
|
|
31
|
+
export { TablePagination } from './components/TablePagination/TablePagination.esm.js';
|
|
25
32
|
export { Tab, TabList, TabPanel, Tabs } from './components/Tabs/Tabs.esm.js';
|
|
33
|
+
export { Tag, TagGroup } from './components/TagGroup/TagGroup.esm.js';
|
|
26
34
|
export { Text } from './components/Text/Text.esm.js';
|
|
27
35
|
export { TextField } from './components/TextField/TextField.esm.js';
|
|
28
36
|
export { Tooltip, TooltipTrigger } from './components/Tooltip/Tooltip.esm.js';
|
|
29
|
-
export { Menu } from './components/Menu/Menu.esm.js';
|
|
37
|
+
export { Menu, MenuAutocomplete, MenuAutocompleteListbox, MenuItem, MenuListBox, MenuListBoxItem, MenuSection, MenuSeparator, MenuTrigger, SubmenuTrigger } from './components/Menu/Menu.esm.js';
|
|
30
38
|
export { ScrollArea } from './components/ScrollArea/ScrollArea.esm.js';
|
|
31
39
|
export { SearchField } from './components/SearchField/SearchField.esm.js';
|
|
32
40
|
export { Link } from './components/Link/Link.esm.js';
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.props.esm.js","sources":["../../src/props/display.props.ts"],"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 type { PropDef, GetPropDefTypes } from './prop-def';\n\nconst displayValues = ['none', 'inline', 'inline-block', 'block'] as const;\n\n/** @public */\nconst displayPropDefs = {\n display: {\n type: 'enum',\n className: 'bui-display',\n values: displayValues,\n responsive: true,\n },\n} satisfies {\n display: PropDef<(typeof displayValues)[number]>;\n};\n\n/** @public */\ntype DisplayProps = GetPropDefTypes<typeof displayPropDefs>;\n\nexport { displayPropDefs };\nexport type { DisplayProps };\n"],"names":[],"mappings":"AAkBA,MAAM,
|
|
1
|
+
{"version":3,"file":"display.props.esm.js","sources":["../../src/props/display.props.ts"],"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 type { PropDef, GetPropDefTypes } from './prop-def';\n\nconst displayValues = ['none', 'inline', 'inline-block', 'block'] as const;\n\n/** @public */\nconst displayPropDefs = {\n display: {\n type: 'enum',\n className: 'bui-display',\n values: displayValues,\n responsive: true,\n },\n} satisfies {\n display: PropDef<(typeof displayValues)[number]>;\n};\n\n/** @public */\ntype DisplayProps = GetPropDefTypes<typeof displayPropDefs>;\n\nexport { displayPropDefs };\nexport type { DisplayProps };\n"],"names":[],"mappings":"AAkBA,MAAM,aAAA,GAAgB,CAAC,MAAA,EAAQ,QAAA,EAAU,gBAAgB,OAAO,CAAA;AAGhE,MAAM,eAAA,GAAkB;AAAA,EACtB,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,SAAA,EAAW,aAAA;AAAA,IACX,MAAA,EAAQ,aAAA;AAAA,IACR,UAAA,EAAY;AAAA;AAEhB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gap-props.esm.js","sources":["../../src/props/gap-props.ts"],"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 */\nimport { PropDef } from './prop-def';\nimport { GetPropDefTypes } from './prop-def';\nimport { spacingValues } from './spacing.props';\n\n/** @public */\nconst gapPropDefs = {\n gap: {\n type: 'enum | string',\n className: 'bui-gap',\n customProperties: ['--gap'],\n values: spacingValues,\n responsive: true,\n default: '4',\n },\n} satisfies {\n gap: PropDef<(typeof spacingValues)[number]>;\n};\n\n/** @public */\ntype GapProps = GetPropDefTypes<typeof gapPropDefs>;\n\nexport { gapPropDefs };\nexport type { GapProps };\n"],"names":[],"mappings":";;AAoBA,MAAM,
|
|
1
|
+
{"version":3,"file":"gap-props.esm.js","sources":["../../src/props/gap-props.ts"],"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 */\nimport { PropDef } from './prop-def';\nimport { GetPropDefTypes } from './prop-def';\nimport { spacingValues } from './spacing.props';\n\n/** @public */\nconst gapPropDefs = {\n gap: {\n type: 'enum | string',\n className: 'bui-gap',\n customProperties: ['--gap'],\n values: spacingValues,\n responsive: true,\n default: '4',\n },\n} satisfies {\n gap: PropDef<(typeof spacingValues)[number]>;\n};\n\n/** @public */\ntype GapProps = GetPropDefTypes<typeof gapPropDefs>;\n\nexport { gapPropDefs };\nexport type { GapProps };\n"],"names":[],"mappings":";;AAoBA,MAAM,WAAA,GAAc;AAAA,EAClB,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,eAAA;AAAA,IACN,SAAA,EAAW,SAAA;AAAA,IACX,gBAAA,EAAkB,CAAC,OAAO,CAAA;AAAA,IAC1B,MAAA,EAAQ,aAAA;AAAA,IACR,UAAA,EAAY,IAAA;AAAA,IACZ,OAAA,EAAS;AAAA;AAEb;;;;"}
|