@backstage/ui 0.14.3 → 0.15.0-next.1
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 +55 -9
- package/dist/components/Alert/Alert.esm.js +8 -3
- package/dist/components/Alert/Alert.esm.js.map +1 -1
- package/dist/components/Alert/definition.esm.js +1 -0
- package/dist/components/Alert/definition.esm.js.map +1 -1
- package/dist/components/Box/Box.esm.js +1 -1
- package/dist/components/Box/Box.esm.js.map +1 -1
- package/dist/components/Box/definition.esm.js +3 -0
- package/dist/components/Box/definition.esm.js.map +1 -1
- package/dist/components/Button/Button.esm.js +10 -5
- package/dist/components/Button/Button.esm.js.map +1 -1
- package/dist/components/Button/Button.module.css.esm.js +2 -2
- package/dist/components/Button/definition.esm.js +1 -0
- package/dist/components/Button/definition.esm.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.esm.js +10 -5
- package/dist/components/ButtonIcon/ButtonIcon.esm.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.module.css.esm.js +2 -2
- package/dist/components/ButtonIcon/definition.esm.js +1 -0
- package/dist/components/ButtonIcon/definition.esm.js.map +1 -1
- package/dist/components/Card/Card.esm.js +2 -1
- package/dist/components/Card/Card.esm.js.map +1 -1
- package/dist/components/Card/Card.module.css.esm.js +2 -2
- package/dist/components/Card/definition.esm.js +4 -2
- package/dist/components/Card/definition.esm.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.module.css.esm.js +2 -2
- package/dist/components/Container/Container.module.css.esm.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.esm.js +60 -0
- package/dist/components/DateRangePicker/DateRangePicker.esm.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.module.css.esm.js +8 -0
- package/dist/components/DateRangePicker/DateRangePicker.module.css.esm.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePickerCalendar.esm.js +24 -0
- package/dist/components/DateRangePicker/DateRangePickerCalendar.esm.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePickerGroup.esm.js +32 -0
- package/dist/components/DateRangePicker/DateRangePickerGroup.esm.js.map +1 -0
- package/dist/components/DateRangePicker/definition.esm.js +54 -0
- package/dist/components/DateRangePicker/definition.esm.js.map +1 -0
- package/dist/components/Dialog/Dialog.module.css.esm.js +2 -2
- package/dist/components/Flex/definition.esm.js +4 -1
- package/dist/components/Flex/definition.esm.js.map +1 -1
- package/dist/components/Grid/definition.esm.js +4 -1
- package/dist/components/Grid/definition.esm.js.map +1 -1
- package/dist/components/Header/Header.esm.js +187 -28
- package/dist/components/Header/Header.esm.js.map +1 -1
- package/dist/components/Header/Header.module.css.esm.js +2 -2
- package/dist/components/Header/HeaderMetadataStatus.esm.js +32 -0
- package/dist/components/Header/HeaderMetadataStatus.esm.js.map +1 -0
- package/dist/components/Header/HeaderMetadataStatus.module.css.esm.js +8 -0
- package/dist/components/Header/HeaderMetadataStatus.module.css.esm.js.map +1 -0
- package/dist/components/Header/HeaderMetadataUsers.esm.js +92 -0
- package/dist/components/Header/HeaderMetadataUsers.esm.js.map +1 -0
- package/dist/components/Header/HeaderMetadataUsers.module.css.esm.js +8 -0
- package/dist/components/Header/HeaderMetadataUsers.module.css.esm.js.map +1 -0
- package/dist/components/Header/definition.esm.js +22 -3
- package/dist/components/Header/definition.esm.js.map +1 -1
- package/dist/components/Select/Select.module.css.esm.js +2 -2
- package/dist/components/Select/SelectContent.esm.js.map +1 -1
- package/dist/components/Select/SelectListBox.esm.js +26 -12
- package/dist/components/Select/SelectListBox.esm.js.map +1 -1
- package/dist/components/Select/definition.esm.js +20 -4
- package/dist/components/Select/definition.esm.js.map +1 -1
- package/dist/components/Table/Table.module.css.esm.js +2 -2
- package/dist/components/Table/components/Table.esm.js +4 -2
- package/dist/components/Table/components/Table.esm.js.map +1 -1
- package/dist/components/Table/components/TableRoot.esm.js +7 -2
- package/dist/components/Table/components/TableRoot.esm.js.map +1 -1
- package/dist/components/Table/definition.esm.js +1 -0
- package/dist/components/Table/definition.esm.js.map +1 -1
- package/dist/components/Table/hooks/useCompletePagination.esm.js +6 -6
- package/dist/components/Table/hooks/useCompletePagination.esm.js.map +1 -1
- package/dist/components/Table/hooks/useCursorPagination.esm.js +1 -1
- package/dist/components/Table/hooks/useCursorPagination.esm.js.map +1 -1
- package/dist/components/Table/hooks/useOffsetPagination.esm.js +1 -1
- package/dist/components/Table/hooks/useOffsetPagination.esm.js.map +1 -1
- package/dist/components/Table/hooks/usePageCache.esm.js +9 -9
- package/dist/components/Table/hooks/usePageCache.esm.js.map +1 -1
- package/dist/components/Table/hooks/useTable.esm.js +4 -3
- package/dist/components/Table/hooks/useTable.esm.js.map +1 -1
- package/dist/components/Tabs/TabsIndicators.esm.js +1 -0
- package/dist/components/Tabs/TabsIndicators.esm.js.map +1 -1
- package/dist/css/styles.css +72 -0
- package/dist/hooks/useDefinition/helpers.esm.js +2 -1
- package/dist/hooks/useDefinition/helpers.esm.js.map +1 -1
- package/dist/hooks/useDefinition/useDefinition.esm.js +5 -10
- package/dist/hooks/useDefinition/useDefinition.esm.js.map +1 -1
- package/dist/index.d.ts +261 -57
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/utilityClassMap.esm.js +18 -0
- package/dist/utils/utilityClassMap.esm.js.map +1 -1
- package/package.json +10 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { DisclosureProps, DisclosureGroupProps, DisclosurePanelProps, HeadingProps, ButtonProps as ButtonProps$1, ModalOverlayProps, DialogTriggerProps as DialogTriggerProps$1, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps as TabPanelProps$1, TabsProps as TabsProps$1, LinkProps as LinkProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SliderProps as SliderProps$1, CellProps as CellProps$1, ColumnProps as ColumnProps$1, RowProps as RowProps$1, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, TableHeaderProps as TableHeaderProps$1, TagProps as TagProps$1, TagListProps, TagGroupProps as TagGroupProps$1, TextFieldProps as TextFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps, PopoverProps as PopoverProps$1, MenuProps as MenuProps$1, ListBoxProps, MenuItemProps as MenuItemProps$1, ListBoxItemProps, MenuSectionProps as MenuSectionProps$1, SeparatorProps, MenuTriggerProps as MenuTriggerProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, SearchFieldProps as SearchFieldProps$1, GridListProps, GridListItemProps, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1 } from 'react-aria-components';
|
|
2
|
+
import { CSSProperties, ReactNode, HTMLAttributes, ComponentPropsWithoutRef, ReactElement, ElementType, ComponentPropsWithRef, ComponentProps } from 'react';
|
|
3
|
+
import { DisclosureProps, DisclosureGroupProps, DisclosurePanelProps, HeadingProps, ButtonProps as ButtonProps$1, DateRangePickerProps as DateRangePickerProps$1, ModalOverlayProps, DialogTriggerProps as DialogTriggerProps$1, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps as TabPanelProps$1, TabsProps as TabsProps$1, LinkProps as LinkProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SliderProps as SliderProps$1, CellProps as CellProps$1, ColumnProps as ColumnProps$1, RowProps as RowProps$1, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, TableHeaderProps as TableHeaderProps$1, TagProps as TagProps$1, TagListProps, TagGroupProps as TagGroupProps$1, TextFieldProps as TextFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps, PopoverProps as PopoverProps$1, MenuProps as MenuProps$1, ListBoxProps, MenuItemProps as MenuItemProps$1, ListBoxItemProps, MenuSectionProps as MenuSectionProps$1, SeparatorProps, MenuTriggerProps as MenuTriggerProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, SearchFieldProps as SearchFieldProps$1, GridListProps, GridListItemProps, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1 } from 'react-aria-components';
|
|
4
|
+
import { DateValue } from '@internationalized/date';
|
|
4
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
6
|
import { NavigateOptions } from 'react-router-dom';
|
|
6
7
|
import { ColumnSize, ColumnStaticSize, SortDescriptor as SortDescriptor$1 } from 'react-stately';
|
|
@@ -54,6 +55,19 @@ interface PaddingProps {
|
|
|
54
55
|
/** @public */
|
|
55
56
|
interface SpaceProps extends MarginProps, PaddingProps {
|
|
56
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Flex item properties.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
interface FlexItemProps {
|
|
64
|
+
/** Controls the flex-grow property. Values of `true` or `false` are converted to `1` or `0` respectively. */
|
|
65
|
+
grow?: Responsive<number | boolean>;
|
|
66
|
+
/** Controls the flex-shrink property. Values of `true` or `false` are converted to `1` or `0` respectively. */
|
|
67
|
+
shrink?: Responsive<number | boolean>;
|
|
68
|
+
/** Controls the flex-basis property. */
|
|
69
|
+
basis?: Responsive<CSSProperties['flexBasis']>;
|
|
70
|
+
}
|
|
57
71
|
/** @public */
|
|
58
72
|
type TextVariants = 'title-large' | 'title-medium' | 'title-small' | 'title-x-small' | 'body-large' | 'body-medium' | 'body-small' | 'body-x-small';
|
|
59
73
|
/** @public */
|
|
@@ -143,7 +157,7 @@ type BoxUtilityProps = {
|
|
|
143
157
|
maxHeight?: Responsive<string>;
|
|
144
158
|
};
|
|
145
159
|
/** @public */
|
|
146
|
-
interface BoxProps extends SpaceProps, BoxOwnProps, BoxUtilityProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
160
|
+
interface BoxProps extends SpaceProps, FlexItemProps, BoxOwnProps, BoxUtilityProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
147
161
|
}
|
|
148
162
|
|
|
149
163
|
/**
|
|
@@ -176,7 +190,7 @@ declare const BoxDefinition: {
|
|
|
176
190
|
readonly className: {};
|
|
177
191
|
readonly style: {};
|
|
178
192
|
};
|
|
179
|
-
readonly utilityProps: readonly ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "position", "display", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight"];
|
|
193
|
+
readonly utilityProps: readonly ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "position", "display", "grow", "shrink", "basis", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight"];
|
|
180
194
|
};
|
|
181
195
|
|
|
182
196
|
/** @public */
|
|
@@ -187,7 +201,7 @@ type GridOwnProps = {
|
|
|
187
201
|
bg?: Responsive<ProviderBg>;
|
|
188
202
|
};
|
|
189
203
|
/** @public */
|
|
190
|
-
interface GridProps extends SpaceProps, GridOwnProps, Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
204
|
+
interface GridProps extends SpaceProps, FlexItemProps, GridOwnProps, Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
191
205
|
columns?: Responsive<Columns>;
|
|
192
206
|
gap?: Responsive<Space>;
|
|
193
207
|
}
|
|
@@ -232,7 +246,7 @@ declare const GridDefinition: {
|
|
|
232
246
|
readonly className: {};
|
|
233
247
|
readonly style: {};
|
|
234
248
|
};
|
|
235
|
-
readonly utilityProps: readonly ["columns", "gap", "m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py"];
|
|
249
|
+
readonly utilityProps: readonly ["columns", "gap", "m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "grow", "shrink", "basis"];
|
|
236
250
|
};
|
|
237
251
|
/**
|
|
238
252
|
* Component definition for GridItem
|
|
@@ -265,7 +279,7 @@ type FlexOwnProps = {
|
|
|
265
279
|
bg?: Responsive<ProviderBg>;
|
|
266
280
|
};
|
|
267
281
|
/** @public */
|
|
268
|
-
interface FlexProps extends SpaceProps, FlexOwnProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
282
|
+
interface FlexProps extends SpaceProps, FlexItemProps, FlexOwnProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
269
283
|
gap?: Responsive<Space>;
|
|
270
284
|
align?: Responsive<'start' | 'center' | 'end' | 'baseline' | 'stretch'>;
|
|
271
285
|
justify?: Responsive<'start' | 'center' | 'end' | 'between'>;
|
|
@@ -299,7 +313,7 @@ declare const FlexDefinition: {
|
|
|
299
313
|
readonly className: {};
|
|
300
314
|
readonly style: {};
|
|
301
315
|
};
|
|
302
|
-
readonly utilityProps: readonly ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "gap", "align", "justify", "direction"];
|
|
316
|
+
readonly utilityProps: readonly ["m", "mb", "ml", "mr", "mt", "mx", "my", "p", "pb", "pl", "pr", "pt", "px", "py", "gap", "align", "justify", "direction", "grow", "shrink", "basis"];
|
|
303
317
|
};
|
|
304
318
|
|
|
305
319
|
/** @public */
|
|
@@ -553,6 +567,8 @@ declare const AccordionGroupDefinition: {
|
|
|
553
567
|
type AlertOwnProps = {
|
|
554
568
|
status?: Responsive<'info' | 'success' | 'warning' | 'danger'>;
|
|
555
569
|
icon?: boolean | ReactElement;
|
|
570
|
+
isPending?: boolean;
|
|
571
|
+
/** @deprecated Use `isPending` instead. */
|
|
556
572
|
loading?: boolean;
|
|
557
573
|
customActions?: ReactNode;
|
|
558
574
|
title?: ReactNode;
|
|
@@ -573,7 +589,7 @@ interface AlertProps extends MarginProps, AlertOwnProps, Omit<React.ComponentPro
|
|
|
573
589
|
*
|
|
574
590
|
* @remarks
|
|
575
591
|
* The Alert component supports multiple status variants (info, success, warning, danger)
|
|
576
|
-
* and can display icons,
|
|
592
|
+
* and can display icons, pending states, and custom actions. It automatically handles
|
|
577
593
|
* icon selection based on status when the icon prop is set to true.
|
|
578
594
|
*
|
|
579
595
|
* @example
|
|
@@ -594,14 +610,14 @@ interface AlertProps extends MarginProps, AlertOwnProps, Omit<React.ComponentPro
|
|
|
594
610
|
* ```
|
|
595
611
|
*
|
|
596
612
|
* @example
|
|
597
|
-
* With custom actions and
|
|
613
|
+
* With custom actions and pending state:
|
|
598
614
|
* ```tsx
|
|
599
615
|
* <Alert
|
|
600
616
|
* status="success"
|
|
601
617
|
* icon={true}
|
|
602
618
|
* title="Operation completed"
|
|
603
619
|
* description="Your changes have been saved successfully."
|
|
604
|
-
*
|
|
620
|
+
* isPending={isProcessing}
|
|
605
621
|
* customActions={
|
|
606
622
|
* <>
|
|
607
623
|
* <Button size="small" variant="tertiary">Dismiss</Button>
|
|
@@ -638,6 +654,9 @@ declare const AlertDefinition: {
|
|
|
638
654
|
readonly dataAttribute: true;
|
|
639
655
|
readonly default: "info";
|
|
640
656
|
};
|
|
657
|
+
readonly isPending: {
|
|
658
|
+
readonly dataAttribute: true;
|
|
659
|
+
};
|
|
641
660
|
readonly loading: {
|
|
642
661
|
readonly dataAttribute: true;
|
|
643
662
|
};
|
|
@@ -776,6 +795,8 @@ type ButtonOwnProps = {
|
|
|
776
795
|
destructive?: boolean;
|
|
777
796
|
iconStart?: ReactElement;
|
|
778
797
|
iconEnd?: ReactElement;
|
|
798
|
+
isPending?: boolean;
|
|
799
|
+
/** @deprecated Use `isPending` instead. */
|
|
779
800
|
loading?: boolean;
|
|
780
801
|
children?: ReactNode;
|
|
781
802
|
className?: string;
|
|
@@ -810,7 +831,7 @@ interface ButtonProps extends Omit<ButtonProps$1, keyof ButtonOwnProps>, ButtonO
|
|
|
810
831
|
* variant="primary"
|
|
811
832
|
* size="medium"
|
|
812
833
|
* iconStart={<IconComponent />}
|
|
813
|
-
*
|
|
834
|
+
* isPending={isSubmitting}
|
|
814
835
|
* >
|
|
815
836
|
* Submit
|
|
816
837
|
* </Button>
|
|
@@ -846,6 +867,9 @@ declare const ButtonDefinition: {
|
|
|
846
867
|
readonly destructive: {
|
|
847
868
|
readonly dataAttribute: true;
|
|
848
869
|
};
|
|
870
|
+
readonly isPending: {
|
|
871
|
+
readonly dataAttribute: true;
|
|
872
|
+
};
|
|
849
873
|
readonly loading: {
|
|
850
874
|
readonly dataAttribute: true;
|
|
851
875
|
};
|
|
@@ -860,6 +884,7 @@ declare const ButtonDefinition: {
|
|
|
860
884
|
type CardBaseProps = {
|
|
861
885
|
children?: ReactNode;
|
|
862
886
|
className?: string;
|
|
887
|
+
style?: CSSProperties;
|
|
863
888
|
};
|
|
864
889
|
/** @public */
|
|
865
890
|
type CardButtonVariant = {
|
|
@@ -900,13 +925,13 @@ type CardStaticVariant = {
|
|
|
900
925
|
*
|
|
901
926
|
* @public
|
|
902
927
|
*/
|
|
903
|
-
type CardProps = CardBaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> & (CardButtonVariant | CardLinkVariant | CardStaticVariant);
|
|
928
|
+
type CardProps = CardBaseProps & FlexItemProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> & (CardButtonVariant | CardLinkVariant | CardStaticVariant);
|
|
904
929
|
/**
|
|
905
930
|
* Flat own-props shape used by the component definition system.
|
|
906
931
|
* Derived from the Card variant types so it automatically stays in sync with CardProps.
|
|
907
932
|
* @public
|
|
908
933
|
*/
|
|
909
|
-
type CardOwnProps = Pick<CardBaseProps & (CardButtonVariant | CardLinkVariant | CardStaticVariant), 'children' | 'className' | 'onPress' | 'href' | 'label' | 'target' | 'rel' | 'download'>;
|
|
934
|
+
type CardOwnProps = Pick<CardBaseProps & (CardButtonVariant | CardLinkVariant | CardStaticVariant), 'children' | 'className' | 'onPress' | 'href' | 'label' | 'target' | 'rel' | 'download' | 'style'>;
|
|
910
935
|
/** @public */
|
|
911
936
|
type CardHeaderOwnProps = {
|
|
912
937
|
children?: ReactNode;
|
|
@@ -990,7 +1015,9 @@ declare const CardDefinition: {
|
|
|
990
1015
|
readonly target: {};
|
|
991
1016
|
readonly rel: {};
|
|
992
1017
|
readonly download: {};
|
|
1018
|
+
readonly style: {};
|
|
993
1019
|
};
|
|
1020
|
+
readonly utilityProps: readonly ["grow", "shrink", "basis"];
|
|
994
1021
|
};
|
|
995
1022
|
/**
|
|
996
1023
|
* Component definition for CardHeader
|
|
@@ -1041,6 +1068,90 @@ declare const CardFooterDefinition: {
|
|
|
1041
1068
|
};
|
|
1042
1069
|
};
|
|
1043
1070
|
|
|
1071
|
+
/** @public */
|
|
1072
|
+
type FieldLabelOwnProps = {
|
|
1073
|
+
/**
|
|
1074
|
+
* The label of the text field
|
|
1075
|
+
*/
|
|
1076
|
+
label?: string | null;
|
|
1077
|
+
/**
|
|
1078
|
+
* The secondary label of the text field
|
|
1079
|
+
*/
|
|
1080
|
+
secondaryLabel?: string | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* The description of the text field
|
|
1083
|
+
*/
|
|
1084
|
+
description?: string | null;
|
|
1085
|
+
/**
|
|
1086
|
+
* The HTML for attribute of the text field
|
|
1087
|
+
*/
|
|
1088
|
+
htmlFor?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* The id of the text field
|
|
1091
|
+
*/
|
|
1092
|
+
id?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* The id to apply to the description element for aria-describedby
|
|
1095
|
+
*/
|
|
1096
|
+
descriptionId?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* The slot name to set on the description's React Aria `<Text>` element.
|
|
1099
|
+
*/
|
|
1100
|
+
descriptionSlot?: string;
|
|
1101
|
+
className?: string;
|
|
1102
|
+
};
|
|
1103
|
+
/** @public */
|
|
1104
|
+
interface FieldLabelProps extends FieldLabelOwnProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof FieldLabelOwnProps> {
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/** @public */
|
|
1108
|
+
type DateRangePickerOwnProps = {
|
|
1109
|
+
/**
|
|
1110
|
+
* The size of the date range picker
|
|
1111
|
+
* @defaultValue 'small'
|
|
1112
|
+
*/
|
|
1113
|
+
size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
|
|
1114
|
+
className?: string;
|
|
1115
|
+
label?: FieldLabelProps['label'];
|
|
1116
|
+
description?: FieldLabelProps['description'];
|
|
1117
|
+
secondaryLabel?: FieldLabelProps['secondaryLabel'];
|
|
1118
|
+
};
|
|
1119
|
+
/** @public */
|
|
1120
|
+
interface DateRangePickerProps extends Omit<DateRangePickerProps$1<DateValue>, 'className' | 'children'>, DateRangePickerOwnProps {
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* A date range picker that combines two date fields and a calendar popover,
|
|
1125
|
+
* allowing users to enter or select a date range with full keyboard and
|
|
1126
|
+
* screen reader accessibility.
|
|
1127
|
+
*
|
|
1128
|
+
* @public
|
|
1129
|
+
*/
|
|
1130
|
+
declare const DateRangePicker: react.ForwardRefExoticComponent<DateRangePickerProps & react.RefAttributes<HTMLDivElement>>;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Component definition for DateRangePicker
|
|
1134
|
+
* @public
|
|
1135
|
+
*/
|
|
1136
|
+
declare const DateRangePickerDefinition: {
|
|
1137
|
+
readonly styles: {
|
|
1138
|
+
readonly [key: string]: string;
|
|
1139
|
+
};
|
|
1140
|
+
readonly classNames: {
|
|
1141
|
+
readonly root: "bui-DateRangePicker";
|
|
1142
|
+
};
|
|
1143
|
+
readonly propDefs: {
|
|
1144
|
+
readonly size: {
|
|
1145
|
+
readonly dataAttribute: true;
|
|
1146
|
+
readonly default: "small";
|
|
1147
|
+
};
|
|
1148
|
+
readonly className: {};
|
|
1149
|
+
readonly label: {};
|
|
1150
|
+
readonly description: {};
|
|
1151
|
+
readonly secondaryLabel: {};
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1044
1155
|
/**
|
|
1045
1156
|
* Props for the DialogTrigger component.
|
|
1046
1157
|
* @public
|
|
@@ -1198,42 +1309,6 @@ declare const DialogFooterDefinition: {
|
|
|
1198
1309
|
};
|
|
1199
1310
|
};
|
|
1200
1311
|
|
|
1201
|
-
/** @public */
|
|
1202
|
-
type FieldLabelOwnProps = {
|
|
1203
|
-
/**
|
|
1204
|
-
* The label of the text field
|
|
1205
|
-
*/
|
|
1206
|
-
label?: string | null;
|
|
1207
|
-
/**
|
|
1208
|
-
* The secondary label of the text field
|
|
1209
|
-
*/
|
|
1210
|
-
secondaryLabel?: string | null;
|
|
1211
|
-
/**
|
|
1212
|
-
* The description of the text field
|
|
1213
|
-
*/
|
|
1214
|
-
description?: string | null;
|
|
1215
|
-
/**
|
|
1216
|
-
* The HTML for attribute of the text field
|
|
1217
|
-
*/
|
|
1218
|
-
htmlFor?: string;
|
|
1219
|
-
/**
|
|
1220
|
-
* The id of the text field
|
|
1221
|
-
*/
|
|
1222
|
-
id?: string;
|
|
1223
|
-
/**
|
|
1224
|
-
* The id to apply to the description element for aria-describedby
|
|
1225
|
-
*/
|
|
1226
|
-
descriptionId?: string;
|
|
1227
|
-
/**
|
|
1228
|
-
* The slot name to set on the description's React Aria `<Text>` element.
|
|
1229
|
-
*/
|
|
1230
|
-
descriptionSlot?: string;
|
|
1231
|
-
className?: string;
|
|
1232
|
-
};
|
|
1233
|
-
/** @public */
|
|
1234
|
-
interface FieldLabelProps extends FieldLabelOwnProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof FieldLabelOwnProps> {
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
1312
|
/**
|
|
1238
1313
|
* Renders a label for a form field with optional secondary label and description text.
|
|
1239
1314
|
*
|
|
@@ -1493,6 +1568,44 @@ interface HeaderNavTabGroup {
|
|
|
1493
1568
|
* @public
|
|
1494
1569
|
*/
|
|
1495
1570
|
type HeaderNavTabItem = HeaderNavTab | HeaderNavTabGroup;
|
|
1571
|
+
/**
|
|
1572
|
+
* Represents a tag item in the header.
|
|
1573
|
+
*
|
|
1574
|
+
* @public
|
|
1575
|
+
*/
|
|
1576
|
+
interface HeaderTag {
|
|
1577
|
+
label: string;
|
|
1578
|
+
href?: string;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Represents a metadata key-value pair in the header.
|
|
1582
|
+
*
|
|
1583
|
+
* @public
|
|
1584
|
+
*/
|
|
1585
|
+
interface HeaderMetadataItem {
|
|
1586
|
+
label: string;
|
|
1587
|
+
value: React.ReactNode;
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* Represents a user in the HeaderMetadataUsers component.
|
|
1591
|
+
*
|
|
1592
|
+
* @public
|
|
1593
|
+
*/
|
|
1594
|
+
interface HeaderMetadataUser {
|
|
1595
|
+
name: string;
|
|
1596
|
+
src?: string;
|
|
1597
|
+
href?: string;
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Represents a status item in the HeaderMetadataStatus component.
|
|
1601
|
+
*
|
|
1602
|
+
* @public
|
|
1603
|
+
*/
|
|
1604
|
+
interface HeaderMetadataStatusProps {
|
|
1605
|
+
label: string;
|
|
1606
|
+
color: 'danger' | 'warning' | 'success' | 'info';
|
|
1607
|
+
href?: string;
|
|
1608
|
+
}
|
|
1496
1609
|
/**
|
|
1497
1610
|
* Own props for the Header component.
|
|
1498
1611
|
*
|
|
@@ -1503,8 +1616,23 @@ interface HeaderOwnProps {
|
|
|
1503
1616
|
customActions?: React.ReactNode;
|
|
1504
1617
|
tabs?: HeaderNavTabItem[];
|
|
1505
1618
|
activeTabId?: string | null;
|
|
1619
|
+
/**
|
|
1620
|
+
* @deprecated The breadcrumbs prop will be removed in a future release.
|
|
1621
|
+
*/
|
|
1506
1622
|
breadcrumbs?: HeaderBreadcrumb[];
|
|
1623
|
+
/**
|
|
1624
|
+
* Markdown string rendered below the title. Only inline links are supported.
|
|
1625
|
+
* Bold, italic, and block-level markdown are not rendered.
|
|
1626
|
+
*/
|
|
1627
|
+
description?: string;
|
|
1628
|
+
tags?: HeaderTag[];
|
|
1629
|
+
metadata?: HeaderMetadataItem[];
|
|
1507
1630
|
className?: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* Makes the title-and-actions row stick to the top of its nearest scroll
|
|
1633
|
+
* container while the rest of the header content scrolls away.
|
|
1634
|
+
*/
|
|
1635
|
+
sticky?: boolean;
|
|
1508
1636
|
}
|
|
1509
1637
|
/**
|
|
1510
1638
|
* Props for the Header component.
|
|
@@ -1558,12 +1686,27 @@ declare const HeaderDefinition: {
|
|
|
1558
1686
|
readonly styles: {
|
|
1559
1687
|
readonly [key: string]: string;
|
|
1560
1688
|
};
|
|
1689
|
+
readonly bg: "consumer";
|
|
1561
1690
|
readonly classNames: {
|
|
1562
|
-
readonly
|
|
1691
|
+
readonly headerTop: "bui-HeaderTop";
|
|
1692
|
+
readonly stickySentinel: "bui-HeaderStickySentinel";
|
|
1563
1693
|
readonly content: "bui-HeaderContent";
|
|
1694
|
+
readonly headerBottom: "bui-HeaderBottom";
|
|
1564
1695
|
readonly breadcrumbs: "bui-HeaderBreadcrumbs";
|
|
1696
|
+
readonly breadcrumbsSmall: "bui-HeaderBreadcrumbsSmall";
|
|
1697
|
+
readonly breadcrumbLink: "bui-HeaderBreadcrumbLink";
|
|
1698
|
+
readonly breadcrumbLinkSmall: "bui-HeaderBreadcrumbLinkSmall";
|
|
1699
|
+
readonly breadcrumbSeparator: "bui-HeaderBreadcrumbSeparator";
|
|
1700
|
+
readonly titleStack: "bui-HeaderTitleStack";
|
|
1701
|
+
readonly title: "bui-HeaderTitle";
|
|
1702
|
+
readonly titleSmall: "bui-HeaderTitleSmall";
|
|
1565
1703
|
readonly tabsWrapper: "bui-HeaderTabsWrapper";
|
|
1566
1704
|
readonly controls: "bui-HeaderControls";
|
|
1705
|
+
readonly tags: "bui-HeaderTags";
|
|
1706
|
+
readonly tag: "bui-HeaderTag";
|
|
1707
|
+
readonly description: "bui-HeaderDescription";
|
|
1708
|
+
readonly metaRow: "bui-HeaderMetaRow";
|
|
1709
|
+
readonly metaItem: "bui-HeaderMetaItem";
|
|
1567
1710
|
};
|
|
1568
1711
|
readonly propDefs: {
|
|
1569
1712
|
readonly title: {};
|
|
@@ -1571,7 +1714,11 @@ declare const HeaderDefinition: {
|
|
|
1571
1714
|
readonly tabs: {};
|
|
1572
1715
|
readonly activeTabId: {};
|
|
1573
1716
|
readonly breadcrumbs: {};
|
|
1717
|
+
readonly description: {};
|
|
1718
|
+
readonly tags: {};
|
|
1719
|
+
readonly metadata: {};
|
|
1574
1720
|
readonly className: {};
|
|
1721
|
+
readonly sticky: {};
|
|
1575
1722
|
};
|
|
1576
1723
|
};
|
|
1577
1724
|
/**
|
|
@@ -1582,12 +1729,27 @@ declare const HeaderPageDefinition: {
|
|
|
1582
1729
|
readonly styles: {
|
|
1583
1730
|
readonly [key: string]: string;
|
|
1584
1731
|
};
|
|
1732
|
+
readonly bg: "consumer";
|
|
1585
1733
|
readonly classNames: {
|
|
1586
|
-
readonly
|
|
1734
|
+
readonly headerTop: "bui-HeaderTop";
|
|
1735
|
+
readonly stickySentinel: "bui-HeaderStickySentinel";
|
|
1587
1736
|
readonly content: "bui-HeaderContent";
|
|
1737
|
+
readonly headerBottom: "bui-HeaderBottom";
|
|
1588
1738
|
readonly breadcrumbs: "bui-HeaderBreadcrumbs";
|
|
1739
|
+
readonly breadcrumbsSmall: "bui-HeaderBreadcrumbsSmall";
|
|
1740
|
+
readonly breadcrumbLink: "bui-HeaderBreadcrumbLink";
|
|
1741
|
+
readonly breadcrumbLinkSmall: "bui-HeaderBreadcrumbLinkSmall";
|
|
1742
|
+
readonly breadcrumbSeparator: "bui-HeaderBreadcrumbSeparator";
|
|
1743
|
+
readonly titleStack: "bui-HeaderTitleStack";
|
|
1744
|
+
readonly title: "bui-HeaderTitle";
|
|
1745
|
+
readonly titleSmall: "bui-HeaderTitleSmall";
|
|
1589
1746
|
readonly tabsWrapper: "bui-HeaderTabsWrapper";
|
|
1590
1747
|
readonly controls: "bui-HeaderControls";
|
|
1748
|
+
readonly tags: "bui-HeaderTags";
|
|
1749
|
+
readonly tag: "bui-HeaderTag";
|
|
1750
|
+
readonly description: "bui-HeaderDescription";
|
|
1751
|
+
readonly metaRow: "bui-HeaderMetaRow";
|
|
1752
|
+
readonly metaItem: "bui-HeaderMetaItem";
|
|
1591
1753
|
};
|
|
1592
1754
|
readonly propDefs: {
|
|
1593
1755
|
readonly title: {};
|
|
@@ -1595,7 +1757,11 @@ declare const HeaderPageDefinition: {
|
|
|
1595
1757
|
readonly tabs: {};
|
|
1596
1758
|
readonly activeTabId: {};
|
|
1597
1759
|
readonly breadcrumbs: {};
|
|
1760
|
+
readonly description: {};
|
|
1761
|
+
readonly tags: {};
|
|
1762
|
+
readonly metadata: {};
|
|
1598
1763
|
readonly className: {};
|
|
1764
|
+
readonly sticky: {};
|
|
1599
1765
|
};
|
|
1600
1766
|
};
|
|
1601
1767
|
|
|
@@ -1650,11 +1816,33 @@ declare const HeaderNavGroupDefinition: {
|
|
|
1650
1816
|
};
|
|
1651
1817
|
};
|
|
1652
1818
|
|
|
1819
|
+
/**
|
|
1820
|
+
* Displays a list of users as avatars inside a Header metadata value.
|
|
1821
|
+
* A single user shows the avatar with their name beside it.
|
|
1822
|
+
* Multiple users show avatars in a row with the name revealed on hover via tooltip.
|
|
1823
|
+
* When a user has an `href`, the avatar and name become links.
|
|
1824
|
+
*
|
|
1825
|
+
* @public
|
|
1826
|
+
*/
|
|
1827
|
+
declare const HeaderMetadataUsers: ({ users, }: {
|
|
1828
|
+
users: HeaderMetadataUser[];
|
|
1829
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Displays a single status indicator as a coloured dot with a label inside a
|
|
1833
|
+
* Header metadata value. Optionally renders the label as a link when href is provided.
|
|
1834
|
+
*
|
|
1835
|
+
* @public
|
|
1836
|
+
*/
|
|
1837
|
+
declare const HeaderMetadataStatus: ({ label, color, href, }: HeaderMetadataStatusProps) => react_jsx_runtime.JSX.Element;
|
|
1838
|
+
|
|
1653
1839
|
/** @public */
|
|
1654
1840
|
type ButtonIconOwnProps = {
|
|
1655
1841
|
size?: Responsive<'small' | 'medium'>;
|
|
1656
1842
|
variant?: Responsive<'primary' | 'secondary' | 'tertiary'>;
|
|
1657
1843
|
icon?: ReactElement;
|
|
1844
|
+
isPending?: boolean;
|
|
1845
|
+
/** @deprecated Use `isPending` instead. */
|
|
1658
1846
|
loading?: boolean;
|
|
1659
1847
|
className?: string;
|
|
1660
1848
|
};
|
|
@@ -1696,6 +1884,9 @@ declare const ButtonIconDefinition: {
|
|
|
1696
1884
|
readonly dataAttribute: true;
|
|
1697
1885
|
readonly default: "primary";
|
|
1698
1886
|
};
|
|
1887
|
+
readonly isPending: {
|
|
1888
|
+
readonly dataAttribute: true;
|
|
1889
|
+
};
|
|
1699
1890
|
readonly loading: {
|
|
1700
1891
|
readonly dataAttribute: true;
|
|
1701
1892
|
};
|
|
@@ -2044,6 +2235,8 @@ interface SortState {
|
|
|
2044
2235
|
/** @public */
|
|
2045
2236
|
type TableRootOwnProps = {
|
|
2046
2237
|
stale?: boolean;
|
|
2238
|
+
isPending?: boolean;
|
|
2239
|
+
/** @deprecated Use `isPending` instead. */
|
|
2047
2240
|
loading?: boolean;
|
|
2048
2241
|
};
|
|
2049
2242
|
/** @public */
|
|
@@ -2233,6 +2426,8 @@ type VirtualizedProp = boolean | {
|
|
|
2233
2426
|
interface TableProps<T extends TableItem> {
|
|
2234
2427
|
columnConfig: readonly ColumnConfig<T>[];
|
|
2235
2428
|
data: T[] | undefined;
|
|
2429
|
+
isPending?: boolean;
|
|
2430
|
+
/** @deprecated Use `isPending` instead. */
|
|
2236
2431
|
loading?: boolean;
|
|
2237
2432
|
isStale?: boolean;
|
|
2238
2433
|
error?: Error;
|
|
@@ -2252,7 +2447,7 @@ interface TableProps<T extends TableItem> {
|
|
|
2252
2447
|
*
|
|
2253
2448
|
* @public
|
|
2254
2449
|
*/
|
|
2255
|
-
declare function Table<T extends TableItem>({ columnConfig, data, loading, isStale, error, pagination, sort, rowConfig, selection, emptyState, className, style, virtualized, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2450
|
+
declare function Table<T extends TableItem>({ columnConfig, data, isPending, loading, isStale, error, pagination, sort, rowConfig, selection, emptyState, className, style, virtualized, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2256
2451
|
|
|
2257
2452
|
/**
|
|
2258
2453
|
* The low-level table root element for building custom table layouts from atomic components.
|
|
@@ -2456,6 +2651,9 @@ declare const TableDefinition: {
|
|
|
2456
2651
|
readonly stale: {
|
|
2457
2652
|
readonly dataAttribute: true;
|
|
2458
2653
|
};
|
|
2654
|
+
readonly isPending: {
|
|
2655
|
+
readonly dataAttribute: true;
|
|
2656
|
+
};
|
|
2459
2657
|
readonly loading: {
|
|
2460
2658
|
readonly dataAttribute: true;
|
|
2461
2659
|
};
|
|
@@ -3359,6 +3557,11 @@ type Option = {
|
|
|
3359
3557
|
disabled?: boolean;
|
|
3360
3558
|
};
|
|
3361
3559
|
/** @public */
|
|
3560
|
+
type OptionSection = {
|
|
3561
|
+
title: string;
|
|
3562
|
+
options: Option[];
|
|
3563
|
+
};
|
|
3564
|
+
/** @public */
|
|
3362
3565
|
type SelectOwnProps = {
|
|
3363
3566
|
/**
|
|
3364
3567
|
* An icon to render before the input
|
|
@@ -3370,9 +3573,10 @@ type SelectOwnProps = {
|
|
|
3370
3573
|
*/
|
|
3371
3574
|
size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
|
|
3372
3575
|
/**
|
|
3373
|
-
* The options of the select field
|
|
3576
|
+
* The options of the select field. Pass flat options, option sections for
|
|
3577
|
+
* grouped display, or a mix of both in the same array.
|
|
3374
3578
|
*/
|
|
3375
|
-
options?: Array<Option>;
|
|
3579
|
+
options?: Array<Option | OptionSection>;
|
|
3376
3580
|
/**
|
|
3377
3581
|
* Enable search/filter functionality in the dropdown
|
|
3378
3582
|
* @defaultValue false
|
|
@@ -3771,5 +3975,5 @@ declare function useAnalytics(): AnalyticsTracker;
|
|
|
3771
3975
|
*/
|
|
3772
3976
|
declare function getNodeText(node: ReactNode | ((...args: any[]) => ReactNode)): string | undefined;
|
|
3773
3977
|
|
|
3774
|
-
export { Accordion, AccordionDefinition, AccordionGroup, AccordionGroupDefinition, AccordionPanel, AccordionPanelDefinition, AccordionTrigger, AccordionTriggerDefinition, Alert, AlertDefinition, Avatar, AvatarDefinition, BUIProvider, Badge, BadgeDefinition, BgProvider, Box, BoxDefinition, Button, ButtonDefinition, ButtonIcon, ButtonIconDefinition, ButtonLink, ButtonLinkDefinition, Card, CardBody, CardBodyDefinition, CardDefinition, CardFooter, CardFooterDefinition, CardHeader, CardHeaderDefinition, Cell, CellProfile, CellText, Checkbox, CheckboxDefinition, CheckboxGroup, CheckboxGroupDefinition, Column, Container, ContainerDefinition, Dialog, DialogBody, DialogBodyDefinition, DialogDefinition, DialogFooter, DialogFooterDefinition, DialogHeader, DialogHeaderDefinition, DialogTrigger, FieldLabel, FieldLabelDefinition, Flex, FlexDefinition, FullPage, FullPageDefinition, Grid, GridDefinition, GridItemDefinition, Header, HeaderDefinition, HeaderNavDefinition, HeaderNavGroupDefinition, HeaderNavItemDefinition, HeaderPage, HeaderPageDefinition, Link, LinkDefinition, List, ListDefinition, ListRow, ListRowDefinition, Menu, MenuAutocomplete, MenuAutocompleteListbox, MenuDefinition, MenuItem, MenuListBox, MenuListBoxItem, MenuSection, MenuSeparator, MenuTrigger, PasswordField, PasswordFieldDefinition, PluginHeader, PluginHeaderDefinition, Popover, PopoverDefinition, Radio, RadioDefinition, RadioGroup, RadioGroupDefinition, Row, SearchAutocomplete, SearchAutocompleteDefinition, SearchAutocompleteItem, SearchField, SearchFieldDefinition, Select, SelectDefinition, Skeleton, SkeletonDefinition, Slider, SliderDefinition, SubmenuTrigger, Switch, SwitchDefinition, Tab, TabList, TabPanel, Table, TableBody, TableBodySkeleton, TableDefinition, TableHeader, TablePagination, TablePaginationDefinition, TableRoot, Tabs, TabsDefinition, Tag, TagGroup, TagGroupDefinition, Text, TextDefinition, TextField, TextFieldDefinition, ToggleButton, ToggleButtonDefinition, ToggleButtonGroup, ToggleButtonGroupDefinition, Tooltip, TooltipDefinition, TooltipTrigger, VisuallyHidden, VisuallyHiddenDefinition, getNodeText, useAnalytics, useBgConsumer, useBgProvider, useBreakpoint, useTable };
|
|
3775
|
-
export type { AccordionGroupOwnProps, AccordionGroupProps, AccordionOwnProps, AccordionPanelOwnProps, AccordionPanelProps, AccordionProps, AccordionTriggerOwnProps, AccordionTriggerProps, AlertOwnProps, AlertProps, AlignItems, AnalyticsEventAttributes, AnalyticsTracker, AvatarOwnProps, AvatarProps, BUIProviderProps, BadgeOwnProps, BadgeProps, BgContextValue, BgProviderProps, Border, BorderRadius, BoxOwnProps, BoxProps, BoxUtilityProps, Breakpoint, ButtonIconOwnProps, ButtonIconProps, ButtonLinkOwnProps, ButtonLinkProps, ButtonOwnProps, ButtonProps, CardBaseProps, CardBodyOwnProps, CardBodyProps, CardButtonVariant, CardFooterOwnProps, CardFooterProps, CardHeaderOwnProps, CardHeaderProps, CardLinkVariant, CardOwnProps, CardProps, CardStaticVariant, CellOwnProps, CellProfileOwnProps, CellProfileProps, CellProps, CellTextOwnProps, CellTextProps, CheckboxGroupOwnProps, CheckboxGroupProps, CheckboxOwnProps, CheckboxProps, ColumnConfig, ColumnOwnProps, ColumnProps, Columns, CompletePaginationOptions, ContainerBg, ContainerOwnProps, ContainerProps, CursorParams, CursorResponse, DialogBodyOwnProps, DialogBodyProps, DialogFooterOwnProps, DialogFooterProps, DialogHeaderOwnProps, DialogHeaderProps, DialogOwnProps, DialogProps, DialogTriggerProps, Display, FieldLabelOwnProps, FieldLabelProps, FilterState, FlexDirection, FlexOwnProps, FlexProps, FlexWrap, FullPageOwnProps, FullPageProps, GridItemOwnProps, GridItemProps, GridOwnProps, GridProps, HeaderBreadcrumb, HeaderNavTab, HeaderNavTabGroup, HeaderNavTabItem, HeaderOwnProps, HeaderPageBreadcrumb, HeaderPageOwnProps, HeaderPageProps, HeaderProps, HeaderTab, JustifyContent, LinkOwnProps, LinkProps, ListOwnProps, ListProps, ListRowOwnProps, ListRowProps, MarginProps, MenuAutocompleteListBoxOwnProps, MenuAutocompleteListBoxProps, MenuAutocompleteOwnProps, MenuAutocompleteProps, MenuItemOwnProps, MenuItemProps, MenuListBoxItemOwnProps, MenuListBoxItemProps, MenuListBoxOwnProps, MenuListBoxProps, MenuOwnProps, MenuPopoverOwnProps, MenuProps, MenuSectionOwnProps, MenuSectionProps, MenuSeparatorOwnProps, MenuSeparatorProps, MenuTriggerProps, NoPagination, OffsetParams, OffsetResponse, Option, PaddingProps, PagePagination, PageSizeOption, PaginationOptions, PasswordFieldOwnProps, PasswordFieldProps, PluginHeaderOwnProps, PluginHeaderProps, PopoverOwnProps, PopoverProps, ProviderBg, QueryOptions, RadioGroupOwnProps, RadioGroupProps, RadioOwnProps, RadioProps, Responsive, RowConfig, RowOwnProps, RowProps, RowRenderFn, SearchAutocompleteItemOwnProps, SearchAutocompleteItemProps, SearchAutocompleteOwnProps, SearchAutocompleteProps, SearchFieldOwnProps, SearchFieldProps, SearchState, SelectOwnProps, SelectProps, SkeletonOwnProps, SkeletonProps, SliderOwnProps, SliderProps, SortDescriptor, SortState, Space, SpaceProps, SubmenuTriggerProps, SwitchOwnProps, SwitchProps, TabListOwnProps, TabListProps, TabMatchStrategy, TabOwnProps, TabPanelOwnProps, TabPanelProps, TabProps, TableBodyOwnProps, TableBodyProps, TableHeaderOwnProps, TableHeaderProps, TableItem, TablePaginationOwnProps, TablePaginationProps, TablePaginationType, TableProps, TableRootOwnProps, TableRootProps, TableSelection, TabsOwnProps, TabsProps, TagGroupOwnProps, TagGroupProps, TagOwnProps, TagProps, TextColorStatus, TextColors, TextFieldOwnProps, TextFieldProps, TextOwnProps, TextProps, TextVariants, TextWeights, ToggleButtonGroupOwnProps, ToggleButtonGroupProps, ToggleButtonOwnProps, ToggleButtonProps, TooltipOwnProps, TooltipProps, UseAnalyticsFn, UseTableCompleteOptions, UseTableCursorOptions, UseTableOffsetOptions, UseTableOptions, UseTableResult, UtilityProps, VirtualizedProp, VisuallyHiddenOwnProps, VisuallyHiddenProps };
|
|
3978
|
+
export { Accordion, AccordionDefinition, AccordionGroup, AccordionGroupDefinition, AccordionPanel, AccordionPanelDefinition, AccordionTrigger, AccordionTriggerDefinition, Alert, AlertDefinition, Avatar, AvatarDefinition, BUIProvider, Badge, BadgeDefinition, BgProvider, Box, BoxDefinition, Button, ButtonDefinition, ButtonIcon, ButtonIconDefinition, ButtonLink, ButtonLinkDefinition, Card, CardBody, CardBodyDefinition, CardDefinition, CardFooter, CardFooterDefinition, CardHeader, CardHeaderDefinition, Cell, CellProfile, CellText, Checkbox, CheckboxDefinition, CheckboxGroup, CheckboxGroupDefinition, Column, Container, ContainerDefinition, DateRangePicker, DateRangePickerDefinition, Dialog, DialogBody, DialogBodyDefinition, DialogDefinition, DialogFooter, DialogFooterDefinition, DialogHeader, DialogHeaderDefinition, DialogTrigger, FieldLabel, FieldLabelDefinition, Flex, FlexDefinition, FullPage, FullPageDefinition, Grid, GridDefinition, GridItemDefinition, Header, HeaderDefinition, HeaderMetadataStatus, HeaderMetadataUsers, HeaderNavDefinition, HeaderNavGroupDefinition, HeaderNavItemDefinition, HeaderPage, HeaderPageDefinition, Link, LinkDefinition, List, ListDefinition, ListRow, ListRowDefinition, Menu, MenuAutocomplete, MenuAutocompleteListbox, MenuDefinition, MenuItem, MenuListBox, MenuListBoxItem, MenuSection, MenuSeparator, MenuTrigger, PasswordField, PasswordFieldDefinition, PluginHeader, PluginHeaderDefinition, Popover, PopoverDefinition, Radio, RadioDefinition, RadioGroup, RadioGroupDefinition, Row, SearchAutocomplete, SearchAutocompleteDefinition, SearchAutocompleteItem, SearchField, SearchFieldDefinition, Select, SelectDefinition, Skeleton, SkeletonDefinition, Slider, SliderDefinition, SubmenuTrigger, Switch, SwitchDefinition, Tab, TabList, TabPanel, Table, TableBody, TableBodySkeleton, TableDefinition, TableHeader, TablePagination, TablePaginationDefinition, TableRoot, Tabs, TabsDefinition, Tag, TagGroup, TagGroupDefinition, Text, TextDefinition, TextField, TextFieldDefinition, ToggleButton, ToggleButtonDefinition, ToggleButtonGroup, ToggleButtonGroupDefinition, Tooltip, TooltipDefinition, TooltipTrigger, VisuallyHidden, VisuallyHiddenDefinition, getNodeText, useAnalytics, useBgConsumer, useBgProvider, useBreakpoint, useTable };
|
|
3979
|
+
export type { AccordionGroupOwnProps, AccordionGroupProps, AccordionOwnProps, AccordionPanelOwnProps, AccordionPanelProps, AccordionProps, AccordionTriggerOwnProps, AccordionTriggerProps, AlertOwnProps, AlertProps, AlignItems, AnalyticsEventAttributes, AnalyticsTracker, AvatarOwnProps, AvatarProps, BUIProviderProps, BadgeOwnProps, BadgeProps, BgContextValue, BgProviderProps, Border, BorderRadius, BoxOwnProps, BoxProps, BoxUtilityProps, Breakpoint, ButtonIconOwnProps, ButtonIconProps, ButtonLinkOwnProps, ButtonLinkProps, ButtonOwnProps, ButtonProps, CardBaseProps, CardBodyOwnProps, CardBodyProps, CardButtonVariant, CardFooterOwnProps, CardFooterProps, CardHeaderOwnProps, CardHeaderProps, CardLinkVariant, CardOwnProps, CardProps, CardStaticVariant, CellOwnProps, CellProfileOwnProps, CellProfileProps, CellProps, CellTextOwnProps, CellTextProps, CheckboxGroupOwnProps, CheckboxGroupProps, CheckboxOwnProps, CheckboxProps, ColumnConfig, ColumnOwnProps, ColumnProps, Columns, CompletePaginationOptions, ContainerBg, ContainerOwnProps, ContainerProps, CursorParams, CursorResponse, DateRangePickerOwnProps, DateRangePickerProps, DialogBodyOwnProps, DialogBodyProps, DialogFooterOwnProps, DialogFooterProps, DialogHeaderOwnProps, DialogHeaderProps, DialogOwnProps, DialogProps, DialogTriggerProps, Display, FieldLabelOwnProps, FieldLabelProps, FilterState, FlexDirection, FlexItemProps, FlexOwnProps, FlexProps, FlexWrap, FullPageOwnProps, FullPageProps, GridItemOwnProps, GridItemProps, GridOwnProps, GridProps, HeaderBreadcrumb, HeaderMetadataItem, HeaderMetadataStatusProps, HeaderMetadataUser, HeaderNavTab, HeaderNavTabGroup, HeaderNavTabItem, HeaderOwnProps, HeaderPageBreadcrumb, HeaderPageOwnProps, HeaderPageProps, HeaderProps, HeaderTab, HeaderTag, JustifyContent, LinkOwnProps, LinkProps, ListOwnProps, ListProps, ListRowOwnProps, ListRowProps, MarginProps, MenuAutocompleteListBoxOwnProps, MenuAutocompleteListBoxProps, MenuAutocompleteOwnProps, MenuAutocompleteProps, MenuItemOwnProps, MenuItemProps, MenuListBoxItemOwnProps, MenuListBoxItemProps, MenuListBoxOwnProps, MenuListBoxProps, MenuOwnProps, MenuPopoverOwnProps, MenuProps, MenuSectionOwnProps, MenuSectionProps, MenuSeparatorOwnProps, MenuSeparatorProps, MenuTriggerProps, NoPagination, OffsetParams, OffsetResponse, Option, OptionSection, PaddingProps, PagePagination, PageSizeOption, PaginationOptions, PasswordFieldOwnProps, PasswordFieldProps, PluginHeaderOwnProps, PluginHeaderProps, PopoverOwnProps, PopoverProps, ProviderBg, QueryOptions, RadioGroupOwnProps, RadioGroupProps, RadioOwnProps, RadioProps, Responsive, RowConfig, RowOwnProps, RowProps, RowRenderFn, SearchAutocompleteItemOwnProps, SearchAutocompleteItemProps, SearchAutocompleteOwnProps, SearchAutocompleteProps, SearchFieldOwnProps, SearchFieldProps, SearchState, SelectOwnProps, SelectProps, SkeletonOwnProps, SkeletonProps, SliderOwnProps, SliderProps, SortDescriptor, SortState, Space, SpaceProps, SubmenuTriggerProps, SwitchOwnProps, SwitchProps, TabListOwnProps, TabListProps, TabMatchStrategy, TabOwnProps, TabPanelOwnProps, TabPanelProps, TabProps, TableBodyOwnProps, TableBodyProps, TableHeaderOwnProps, TableHeaderProps, TableItem, TablePaginationOwnProps, TablePaginationProps, TablePaginationType, TableProps, TableRootOwnProps, TableRootProps, TableSelection, TabsOwnProps, TabsProps, TagGroupOwnProps, TagGroupProps, TagOwnProps, TagProps, TextColorStatus, TextColors, TextFieldOwnProps, TextFieldProps, TextOwnProps, TextProps, TextVariants, TextWeights, ToggleButtonGroupOwnProps, ToggleButtonGroupProps, ToggleButtonOwnProps, ToggleButtonProps, TooltipOwnProps, TooltipProps, UseAnalyticsFn, UseTableCompleteOptions, UseTableCursorOptions, UseTableOffsetOptions, UseTableOptions, UseTableResult, UtilityProps, VirtualizedProp, VisuallyHiddenOwnProps, VisuallyHiddenProps };
|
package/dist/index.esm.js
CHANGED
|
@@ -20,6 +20,8 @@ export { Button } from './components/Button/Button.esm.js';
|
|
|
20
20
|
export { ButtonDefinition } from './components/Button/definition.esm.js';
|
|
21
21
|
export { Card, CardBody, CardFooter, CardHeader } from './components/Card/Card.esm.js';
|
|
22
22
|
export { CardBodyDefinition, CardDefinition, CardFooterDefinition, CardHeaderDefinition } from './components/Card/definition.esm.js';
|
|
23
|
+
export { DateRangePicker } from './components/DateRangePicker/DateRangePicker.esm.js';
|
|
24
|
+
export { DateRangePickerDefinition } from './components/DateRangePicker/definition.esm.js';
|
|
23
25
|
export { Dialog, DialogBody, DialogFooter, DialogHeader, DialogTrigger } from './components/Dialog/Dialog.esm.js';
|
|
24
26
|
export { DialogBodyDefinition, DialogDefinition, DialogFooterDefinition, DialogHeaderDefinition } from './components/Dialog/definition.esm.js';
|
|
25
27
|
export { FieldLabel } from './components/FieldLabel/FieldLabel.esm.js';
|
|
@@ -29,6 +31,8 @@ export { PluginHeaderDefinition } from './components/PluginHeader/definition.esm
|
|
|
29
31
|
export { Header, HeaderPage } from './components/Header/Header.esm.js';
|
|
30
32
|
export { HeaderDefinition, HeaderPageDefinition } from './components/Header/definition.esm.js';
|
|
31
33
|
export { HeaderNavDefinition, HeaderNavGroupDefinition, HeaderNavItemDefinition } from './components/Header/HeaderNavDefinition.esm.js';
|
|
34
|
+
export { HeaderMetadataUsers } from './components/Header/HeaderMetadataUsers.esm.js';
|
|
35
|
+
export { HeaderMetadataStatus } from './components/Header/HeaderMetadataStatus.esm.js';
|
|
32
36
|
export { ButtonIcon } from './components/ButtonIcon/ButtonIcon.esm.js';
|
|
33
37
|
export { ButtonIconDefinition } from './components/ButtonIcon/definition.esm.js';
|
|
34
38
|
export { ButtonLink } from './components/ButtonLink/ButtonLink.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -182,6 +182,24 @@ const utilityClassMap = {
|
|
|
182
182
|
rowSpan: {
|
|
183
183
|
class: "bui-row-span",
|
|
184
184
|
values: columnsValues
|
|
185
|
+
},
|
|
186
|
+
grow: {
|
|
187
|
+
class: "bui-grow",
|
|
188
|
+
cssVar: "--grow",
|
|
189
|
+
values: [],
|
|
190
|
+
transform: (input) => typeof input === "boolean" ? Number(input) : input
|
|
191
|
+
},
|
|
192
|
+
shrink: {
|
|
193
|
+
class: "bui-shrink",
|
|
194
|
+
cssVar: "--shrink",
|
|
195
|
+
values: [],
|
|
196
|
+
transform: (input) => typeof input === "boolean" ? Number(input) : input
|
|
197
|
+
},
|
|
198
|
+
basis: {
|
|
199
|
+
class: "bui-basis",
|
|
200
|
+
cssVar: "--basis",
|
|
201
|
+
values: [],
|
|
202
|
+
transform: (input) => typeof input === "number" ? `${input}px` : input
|
|
185
203
|
}
|
|
186
204
|
};
|
|
187
205
|
|