@maxio-com/react-ui-components 9.32.0 → 9.34.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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/skills/maxio-react/SKILL.md +1 -0
- package/dist/skills/maxio-react/references/components-action-menu.md +9 -1
- package/dist/skills/maxio-react/references/components-avatar.md +1 -0
- package/dist/skills/maxio-react/references/components-calendar.md +2 -1
- package/dist/skills/maxio-react/references/components-copy-to-clipboard.md +1 -1
- package/dist/skills/maxio-react/references/components-data-table.md +9 -2
- package/dist/skills/maxio-react/references/components-dialog.md +1 -0
- package/dist/skills/maxio-react/references/components-drawer.md +146 -67
- package/dist/skills/maxio-react/references/components-flex.md +4 -4
- package/dist/skills/maxio-react/references/components-forms-datefield.md +2 -1
- package/dist/skills/maxio-react/references/components-forms-datepicker.md +2 -1
- package/dist/skills/maxio-react/references/components-forms-daterangepicker.md +2 -1
- package/dist/skills/maxio-react/references/components-grid.md +11 -11
- package/dist/skills/maxio-react/references/components-icon.md +1 -0
- package/dist/skills/maxio-react/references/components-loading-spinner.md +1 -0
- package/dist/skills/maxio-react/references/components-logo.md +1 -0
- package/dist/skills/maxio-react/references/components-notifications-alert.md +6 -0
- package/dist/skills/maxio-react/references/components-notifications-banner.md +6 -0
- package/dist/skills/maxio-react/references/components-notifications-toast.md +6 -0
- package/dist/skills/maxio-react/references/components-pagination.md +6 -0
- package/dist/skills/maxio-react/references/components-progressbar.md +2 -1
- package/dist/skills/maxio-react/references/components-rangecalendar.md +2 -1
- package/dist/skills/maxio-react/references/components-tabs.md +7 -0
- package/dist/skills/maxio-react/references/components-tag.md +1 -0
- package/dist/skills/maxio-react/references/components-tile.md +1 -0
- package/dist/skills/maxio-react/references/components-toggle.md +7 -1
- package/dist/skills/maxio-react/references/components-tooltip.md +8 -1
- package/dist/skills/maxio-react/references/foundations-testing.md +191 -0
- package/dist/skills/maxio-react/references/patterns-side-nav.md +6 -0
- package/dist/skills/maxio-react/references/patterns-top-bar.md +1 -0
- package/dist/temporary-typings/src/components/ActionMenu/components/Menu/Menu.d.ts +3 -2
- package/dist/temporary-typings/src/components/ActionMenu/components/Menu/Menu.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/MenuButton.d.ts +1 -1
- package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/types.d.ts +2 -1
- package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/ActionMenu/components/MenuList/MenuList.d.ts +3 -2
- package/dist/temporary-typings/src/components/ActionMenu/components/MenuList/MenuList.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/ActionMenu/contexts/MenuContext.d.ts +3 -1
- package/dist/temporary-typings/src/components/ActionMenu/contexts/MenuContext.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Avatar/Avatar.d.ts +1 -1
- package/dist/temporary-typings/src/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Avatar/Avatar.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Avatar/Avatar.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/DataTable/DataTable.d.ts +1 -1
- package/dist/temporary-typings/src/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/DataTable/DataTable.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/DataTable/DataTable.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/DataTable/components/RowRenderer/RowRenderer.d.ts +2 -1
- package/dist/temporary-typings/src/components/DataTable/components/RowRenderer/RowRenderer.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/DataTable/components/Table/Table.d.ts +1 -1
- package/dist/temporary-typings/src/components/DataTable/components/Table/Table.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/DataTable/components/Table/Table.types.d.ts +1 -0
- package/dist/temporary-typings/src/components/DataTable/components/Table/Table.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts +1 -1
- package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Dialog/closeTestIdContext.d.ts +2 -0
- package/dist/temporary-typings/src/components/Dialog/closeTestIdContext.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Dialog/types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Dialog/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Drawer/Drawer.d.ts +1 -1
- package/dist/temporary-typings/src/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Drawer/types.d.ts +10 -8
- package/dist/temporary-typings/src/components/Drawer/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Icon/Icon.d.ts +1 -1
- package/dist/temporary-typings/src/components/Icon/Icon.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Icon/Icon.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/temporary-typings/src/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/LoadingSpinner/types.d.ts +2 -1
- package/dist/temporary-typings/src/components/LoadingSpinner/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Logo/Logo.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Logo/Logo.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Logo/Logo.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Notifications/Alert/Alert.d.ts +1 -1
- package/dist/temporary-typings/src/components/Notifications/Alert/Alert.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Notifications/Alert/Alert.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Notifications/Alert/Alert.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Notifications/Banner/Banner.d.ts +1 -1
- package/dist/temporary-typings/src/components/Notifications/Banner/Banner.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Notifications/Banner/Banner.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Notifications/Banner/Banner.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.types.d.ts +1 -0
- package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/OverlayTrigger/OverlayTrigger.d.ts +1 -0
- package/dist/temporary-typings/src/components/OverlayTrigger/OverlayTrigger.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Pagination/Pagination.d.ts +1 -1
- package/dist/temporary-typings/src/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Pagination/Pagination.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Pagination/Pagination.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/ProgressBar/ProgressBar.d.ts +3 -2
- package/dist/temporary-typings/src/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/SideNav/contexts/types.d.ts +1 -0
- package/dist/temporary-typings/src/components/SideNav/contexts/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tabs/Tab/types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Tabs/Tab/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tabs/TabPanel/TabPanel.d.ts +2 -1
- package/dist/temporary-typings/src/components/Tabs/TabPanel/TabPanel.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tabs/Tabs/Tabs.d.ts +1 -1
- package/dist/temporary-typings/src/components/Tabs/Tabs/Tabs.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tabs/contexts/types.d.ts +1 -0
- package/dist/temporary-typings/src/components/Tabs/contexts/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tag/Tag.d.ts +1 -1
- package/dist/temporary-typings/src/components/Tag/Tag.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tag/Tag.types.d.ts +2 -1
- package/dist/temporary-typings/src/components/Tag/Tag.types.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tile/Tile.d.ts +3 -2
- package/dist/temporary-typings/src/components/Tile/Tile.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Toggle/Toggle.d.ts +2 -1
- package/dist/temporary-typings/src/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/temporary-typings/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/dist/temporary-typings/src/components/TooltipTrigger/TooltipTrigger.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/TopBar/TopBar.d.ts +1 -1
- package/dist/temporary-typings/src/components/TopBar/TopBar.d.ts.map +1 -1
- package/dist/temporary-typings/src/components/TopBar/types.d.ts +2 -1
- package/dist/temporary-typings/src/components/TopBar/types.d.ts.map +1 -1
- package/dist/temporary-typings/src/utils/index.d.ts +2 -0
- package/dist/temporary-typings/src/utils/index.d.ts.map +1 -1
- package/dist/temporary-typings/src/utils/testId.d.ts +5 -0
- package/dist/temporary-typings/src/utils/testId.d.ts.map +1 -0
- package/package.json +2 -2
- package/typings/index.d.ts +56 -45
package/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes,
|
|
1
|
+
import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, CSSProperties, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { RowData, Row, Table, ExpandedState, RowSelectionState, SortingState, TableOptions } from '@tanstack/react-table';
|
|
3
3
|
export { createColumnHelper } from '@tanstack/react-table';
|
|
4
4
|
import { DialogProps as DialogProps$1, ModalOverlayProps, PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, LinkProps as LinkProps$1, ListBoxProps as ListBoxProps$1, ListBoxLoadMoreItemProps, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, SearchFieldProps as SearchFieldProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, DateValue, DateFieldProps as DateFieldProps$1, CalendarProps as CalendarProps$1, DatePickerProps as DatePickerProps$1, DateRangePickerProps as DateRangePickerProps$1, RangeCalendarProps as RangeCalendarProps$1 } from 'react-aria-components';
|
|
@@ -8,17 +8,21 @@ import { MotionProps } from 'framer-motion';
|
|
|
8
8
|
import { ToastState, ToastQueue as ToastQueue$1 } from '@react-stately/toast';
|
|
9
9
|
import { AriaCheckboxGroupProps, AriaRadioGroupProps, AriaToggleButtonProps } from 'react-aria';
|
|
10
10
|
|
|
11
|
+
type TestIdProps = {
|
|
12
|
+
'data-testid'?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
11
15
|
declare const ICONS: readonly ["address-card", "arrow-down", "arrow-down-left", "arrow-down-left-long", "arrow-down-long", "arrow-down-right", "arrow-down-right-long", "arrow-down-up", "arrow-left", "arrow-left-long", "arrow-left-right", "arrow-right", "arrow-right-long", "arrow-turn-down-right", "arrow-up", "arrow-up-left", "arrow-up-left-long", "arrow-up-long", "arrow-up-right", "arrow-up-right-long", "bank", "bar-chart", "briefcase", "building", "business-intelligence", "calendar", "caret-down", "caret-left", "caret-right", "caret-up", "chat", "check", "check-box", "check-box-checked", "check-box-checked-fill", "check-box-indeterminate-fill", "check-circle", "check-circle-fill", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle", "circle-half-stroke-small", "circle-small-dash", "circle-small-fill", "circle-small-stroke", "clipboard", "cog", "copy-file", "credit-card", "cross", "cross-circle", "cross-circle-fill", "dashboard", "diamond-small-fill", "document", "document-blank", "dollar", "dot-circle-fill", "dot-fill", "error", "error-fill", "error-small-fill", "graph", "home", "info-circle", "info-circle-fill", "line-vertical", "list", "login", "logout", "megaphone", "menu", "menu-chevron-left", "menu-chevron-right", "notification", "notification-unread", "pen", "plus", "plus-circle", "plus-circle-fill", "question-circle", "question-circle-fill", "recently-viewed", "search", "square-small-fill", "trash", "triangle-small-fill", "user", "warning-circle", "warning-circle-fill"];
|
|
12
16
|
|
|
13
17
|
type IconVariant = (typeof ICONS)[number] | string;
|
|
14
|
-
type IconProps = {
|
|
18
|
+
type IconProps = TestIdProps & {
|
|
15
19
|
className?: string;
|
|
16
20
|
size?: 'xs' | 'md' | 'lg';
|
|
17
21
|
variant: IconVariant;
|
|
18
22
|
color?: string;
|
|
19
23
|
};
|
|
20
24
|
|
|
21
|
-
declare const Icon: ({ variant, color, className, size }: IconProps) => React$1.JSX.Element;
|
|
25
|
+
declare const Icon: ({ variant, color, className, size, "data-testid": testId, }: IconProps) => React$1.JSX.Element;
|
|
22
26
|
|
|
23
27
|
interface DividerListItem {
|
|
24
28
|
id: string | number;
|
|
@@ -52,7 +56,7 @@ interface ActionListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
52
56
|
declare const ActionList: ({ items, isShadowed, itemProps, className, truncateLabels, small, ...props }: ActionListProps) => React$1.JSX.Element | null;
|
|
53
57
|
|
|
54
58
|
type Sentiment$3 = 'info' | 'success' | 'warning' | 'danger';
|
|
55
|
-
type AlertProps = {
|
|
59
|
+
type AlertProps = TestIdProps & {
|
|
56
60
|
title?: string;
|
|
57
61
|
children?: string;
|
|
58
62
|
onDismiss?: () => void;
|
|
@@ -64,21 +68,21 @@ type AlertProps = {
|
|
|
64
68
|
display?: 'inline' | 'block';
|
|
65
69
|
};
|
|
66
70
|
|
|
67
|
-
declare const Alert: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, }: AlertProps) => React$1.JSX.Element | null;
|
|
71
|
+
declare const Alert: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, "data-testid": testId, }: AlertProps) => React$1.JSX.Element | null;
|
|
68
72
|
|
|
69
|
-
interface MenuProps {
|
|
73
|
+
interface MenuProps extends TestIdProps {
|
|
70
74
|
children: ReactNode | (({ isOpen, onClose, }: {
|
|
71
75
|
isOpen: boolean;
|
|
72
76
|
onClose: () => void;
|
|
73
77
|
}) => ReactNode);
|
|
74
78
|
}
|
|
75
|
-
declare const Menu: ({ children }: MenuProps) => React$1.JSX.Element;
|
|
79
|
+
declare const Menu: ({ children, "data-testid": testId }: MenuProps) => React$1.JSX.Element;
|
|
76
80
|
|
|
77
|
-
interface MenuListProps {
|
|
81
|
+
interface MenuListProps extends TestIdProps {
|
|
78
82
|
items: ActionListItem[];
|
|
79
83
|
alignItemsEnd?: boolean;
|
|
80
84
|
}
|
|
81
|
-
declare const MenuList: ({ items, alignItemsEnd }: MenuListProps) => React$1.JSX.Element;
|
|
85
|
+
declare const MenuList: ({ items, alignItemsEnd, "data-testid": ownTestId, }: MenuListProps) => React$1.JSX.Element;
|
|
82
86
|
|
|
83
87
|
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger' | 'skeleton';
|
|
84
88
|
type ButtonSize$1 = 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -101,23 +105,23 @@ interface InternalLinkProps extends CommonButtonProps, React.HTMLAttributes<HTML
|
|
|
101
105
|
}
|
|
102
106
|
type ButtonProps = InternalButtonProps | InternalLinkProps;
|
|
103
107
|
|
|
104
|
-
type MenuButtonProps = Omit<ButtonProps, 'onClick' | 'children' | 'disabled' | 'loading' | 'icon'> & {
|
|
108
|
+
type MenuButtonProps = Omit<ButtonProps, 'onClick' | 'children' | 'disabled' | 'loading' | 'icon'> & TestIdProps & {
|
|
105
109
|
children?: React.ReactNode;
|
|
106
110
|
iconName?: IconVariant | null;
|
|
107
111
|
};
|
|
108
112
|
|
|
109
|
-
declare const MenuButton: ({ children, iconName, "aria-label": ariaLabel, size, variant, }: MenuButtonProps) => React$1.JSX.Element;
|
|
113
|
+
declare const MenuButton: ({ children, iconName, "aria-label": ariaLabel, size, variant, "data-testid": ownTestId, }: MenuButtonProps) => React$1.JSX.Element;
|
|
110
114
|
|
|
111
|
-
type AvatarProps = {
|
|
115
|
+
type AvatarProps = TestIdProps & {
|
|
112
116
|
className?: string;
|
|
113
117
|
src: string;
|
|
114
118
|
alt?: string;
|
|
115
119
|
};
|
|
116
120
|
|
|
117
|
-
declare const Avatar: ({ className, src, alt }: AvatarProps) => React$1.JSX.Element;
|
|
121
|
+
declare const Avatar: ({ className, src, alt, "data-testid": testId, }: AvatarProps) => React$1.JSX.Element;
|
|
118
122
|
|
|
119
123
|
type Sentiment$2 = 'info' | 'success' | 'warning' | 'danger';
|
|
120
|
-
type BannerProps = {
|
|
124
|
+
type BannerProps = TestIdProps & {
|
|
121
125
|
title?: string;
|
|
122
126
|
children: string;
|
|
123
127
|
onDismiss?: () => void;
|
|
@@ -129,7 +133,7 @@ type BannerProps = {
|
|
|
129
133
|
display?: 'inline' | 'block';
|
|
130
134
|
};
|
|
131
135
|
|
|
132
|
-
declare const Banner: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, }: BannerProps) => React$1.JSX.Element | null;
|
|
136
|
+
declare const Banner: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, "data-testid": testId, }: BannerProps) => React$1.JSX.Element | null;
|
|
133
137
|
|
|
134
138
|
type BreadcrumbsProps = HTMLAttributes<HTMLElement>;
|
|
135
139
|
type BreadcrumbsItemProps = {
|
|
@@ -211,7 +215,7 @@ type RowReorderingOptions<TData extends RowData> = {
|
|
|
211
215
|
onRowReorder: (event: RowReorderEvent<TData>) => void;
|
|
212
216
|
rowReorderMode?: RowReorderMode;
|
|
213
217
|
};
|
|
214
|
-
type DataTableBaseProps<TData extends RowData> = {
|
|
218
|
+
type DataTableBaseProps<TData extends RowData> = TestIdProps & {
|
|
215
219
|
size?: TableSize;
|
|
216
220
|
pattern?: boolean;
|
|
217
221
|
align?: ColumnAlign;
|
|
@@ -235,9 +239,9 @@ declare module '@tanstack/react-table' {
|
|
|
235
239
|
}
|
|
236
240
|
}
|
|
237
241
|
|
|
238
|
-
declare const DataTable: <TData extends RowData>({ pattern, size, SubRowComponent, onExpand, onSelect, onSort, enableSorting, enableRowSelection, enableExpanding, columns: originalColumns, actions, actionsColumnSize, onRowAction, enableRowReordering, getRowReorderLabel, onRowReorder, rowReorderMode, getRowId, getSubRows, state: userState, ...props }: DataTableProps<TData>) => React$1.JSX.Element;
|
|
242
|
+
declare const DataTable: <TData extends RowData>({ pattern, size, SubRowComponent, onExpand, onSelect, onSort, enableSorting, enableRowSelection, enableExpanding, columns: originalColumns, actions, actionsColumnSize, onRowAction, enableRowReordering, getRowReorderLabel, onRowReorder, rowReorderMode, getRowId, getSubRows, state: userState, "data-testid": testId, ...props }: DataTableProps<TData>) => React$1.JSX.Element;
|
|
239
243
|
|
|
240
|
-
interface DialogProps extends Omit<DialogProps$1, 'children' | 'className'
|
|
244
|
+
interface DialogProps extends Omit<DialogProps$1, 'children' | 'className'>, TestIdProps {
|
|
241
245
|
title: ReactNode;
|
|
242
246
|
description?: ReactNode;
|
|
243
247
|
children: ReactNode | ((opts: {
|
|
@@ -250,25 +254,25 @@ interface DialogProps extends Omit<DialogProps$1, 'children' | 'className'> {
|
|
|
250
254
|
className?: string;
|
|
251
255
|
}
|
|
252
256
|
|
|
253
|
-
declare const Dialog: ({ title, description, children, footer, role, showCloseButton, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }: DialogProps) => React$1.JSX.Element;
|
|
257
|
+
declare const Dialog: ({ title, description, children, footer, role, showCloseButton, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "data-testid": testId, ...props }: DialogProps) => React$1.JSX.Element;
|
|
254
258
|
|
|
255
259
|
type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
256
260
|
type DrawerBackdrop = 'dim' | 'none';
|
|
257
261
|
type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
258
|
-
interface DrawerProps {
|
|
259
|
-
|
|
260
|
-
description?: string;
|
|
261
|
-
children: React$1.ReactNode;
|
|
262
|
-
footer?: React$1.ReactNode;
|
|
262
|
+
interface DrawerProps extends Omit<ModalOverlayProps, 'children' | 'className' | 'style'>, TestIdProps {
|
|
263
|
+
children: ReactNode;
|
|
263
264
|
placement?: DrawerPlacement;
|
|
264
265
|
size?: DrawerSize;
|
|
265
266
|
backdrop?: DrawerBackdrop;
|
|
266
|
-
open?: boolean;
|
|
267
|
-
onOpenChange?: (open: boolean) => void;
|
|
268
267
|
className?: string;
|
|
268
|
+
style?: CSSProperties;
|
|
269
|
+
title?: string;
|
|
270
|
+
description?: string;
|
|
271
|
+
footer?: ReactNode;
|
|
272
|
+
open?: boolean;
|
|
269
273
|
}
|
|
270
274
|
|
|
271
|
-
declare const Drawer: ({
|
|
275
|
+
declare const Drawer: ({ placement, backdrop, size, isDismissable, className, style, title, description, footer, open, isOpen, children, "data-testid": testId, ...props }: DrawerProps) => React$1.JSX.Element;
|
|
272
276
|
|
|
273
277
|
type EmptyStateHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
274
278
|
type EmptyStateProps = {
|
|
@@ -297,13 +301,13 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
297
301
|
declare const Link: React$1.FC<LinkProps>;
|
|
298
302
|
|
|
299
303
|
type LoadingSpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
300
|
-
type LoadingSpinnerProps = {
|
|
304
|
+
type LoadingSpinnerProps = TestIdProps & {
|
|
301
305
|
size?: LoadingSpinnerSize;
|
|
302
306
|
white?: boolean;
|
|
303
307
|
className?: string;
|
|
304
308
|
};
|
|
305
309
|
|
|
306
|
-
declare const LoadingSpinner: ({ size, white, className, }: LoadingSpinnerProps) => React$1.JSX.Element;
|
|
310
|
+
declare const LoadingSpinner: ({ size, white, className, "data-testid": testId, }: LoadingSpinnerProps) => React$1.JSX.Element;
|
|
307
311
|
|
|
308
312
|
type ModalSize = 'sm' | 'md' | 'lg';
|
|
309
313
|
interface ModalProps extends Omit<ModalOverlayProps, 'children' | 'className' | 'style'> {
|
|
@@ -362,6 +366,7 @@ type OverlayTriggerProps = {
|
|
|
362
366
|
motionSettings?: MotionProps;
|
|
363
367
|
autoHideMs?: number;
|
|
364
368
|
className?: string;
|
|
369
|
+
'data-testid'?: string;
|
|
365
370
|
};
|
|
366
371
|
declare const OverlayTrigger: FC<OverlayTriggerProps>;
|
|
367
372
|
|
|
@@ -369,7 +374,8 @@ type PageInfo = {
|
|
|
369
374
|
currentPage: number;
|
|
370
375
|
itemsPerPage: number;
|
|
371
376
|
};
|
|
372
|
-
|
|
377
|
+
|
|
378
|
+
type PaginationProps = TestIdProps & {
|
|
373
379
|
totalItems?: number;
|
|
374
380
|
currentPage?: number;
|
|
375
381
|
itemsPerPage?: number;
|
|
@@ -379,7 +385,7 @@ type PaginationProps = {
|
|
|
379
385
|
manualPageInput?: boolean;
|
|
380
386
|
};
|
|
381
387
|
|
|
382
|
-
declare const Pagination: ({ size, onChange, totalItems, itemsPerPage: itemsPerPageProp, currentPage: currentPageProp, pageSizeOptions, manualPageInput, }: PaginationProps) => React$1.JSX.Element;
|
|
388
|
+
declare const Pagination: ({ size, onChange, totalItems, itemsPerPage: itemsPerPageProp, currentPage: currentPageProp, pageSizeOptions, manualPageInput, "data-testid": testId, }: PaginationProps) => React$1.JSX.Element;
|
|
383
389
|
|
|
384
390
|
interface PopoverProps extends Omit<PopoverProps$1, 'children'> {
|
|
385
391
|
children: ReactNode;
|
|
@@ -388,7 +394,7 @@ interface PopoverProps extends Omit<PopoverProps$1, 'children'> {
|
|
|
388
394
|
|
|
389
395
|
declare const Popover: ({ className, hideArrow, children, offset, ...props }: PopoverProps) => React$1.JSX.Element;
|
|
390
396
|
|
|
391
|
-
interface ProgressBarProps {
|
|
397
|
+
interface ProgressBarProps extends TestIdProps {
|
|
392
398
|
label: string;
|
|
393
399
|
helperText?: string;
|
|
394
400
|
size?: 'md' | 'lg';
|
|
@@ -397,7 +403,7 @@ interface ProgressBarProps {
|
|
|
397
403
|
value?: number;
|
|
398
404
|
maxValue?: number;
|
|
399
405
|
}
|
|
400
|
-
declare const ProgressBar: ({ label, helperText, size, variant, status, value, maxValue, }: ProgressBarProps) => React$1.JSX.Element;
|
|
406
|
+
declare const ProgressBar: ({ label, helperText, size, variant, status, value, maxValue, "data-testid": testId, }: ProgressBarProps) => React$1.JSX.Element;
|
|
401
407
|
|
|
402
408
|
type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
403
409
|
interface SegmentedControlProps extends ToggleButtonGroupProps {
|
|
@@ -424,6 +430,7 @@ interface SingleSection {
|
|
|
424
430
|
key: string;
|
|
425
431
|
isCurrent?: boolean;
|
|
426
432
|
type?: 'regular';
|
|
433
|
+
testId?: string;
|
|
427
434
|
render?: LinkProps$1['render'];
|
|
428
435
|
}
|
|
429
436
|
interface SingleSectionWithItems extends SingleSection {
|
|
@@ -468,7 +475,7 @@ interface SideNavTopDropdownItem extends AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
468
475
|
type SideNavWrapperProps = Omit<SideNavProviderProps, 'children'>;
|
|
469
476
|
declare const SideNavWrapper: ({ withIcons, shouldToggleSidebar, topDropdownItems, sections, collapseBreakpoint, isOpen, onChange, }: SideNavWrapperProps) => React$1.JSX.Element;
|
|
470
477
|
|
|
471
|
-
type CommonTabProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'id'> & {
|
|
478
|
+
type CommonTabProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'id'> & TestIdProps & {
|
|
472
479
|
disabled?: boolean;
|
|
473
480
|
value?: number;
|
|
474
481
|
id?: string;
|
|
@@ -494,6 +501,7 @@ interface TabsContext {
|
|
|
494
501
|
withDivider: boolean;
|
|
495
502
|
}
|
|
496
503
|
type TabsProviderProps = Partial<TabsContext> & {
|
|
504
|
+
'data-testid'?: string;
|
|
497
505
|
children: ReactNode;
|
|
498
506
|
defaultIndex?: number;
|
|
499
507
|
index?: number;
|
|
@@ -501,9 +509,9 @@ type TabsProviderProps = Partial<TabsContext> & {
|
|
|
501
509
|
};
|
|
502
510
|
|
|
503
511
|
type TabsProps = TabsProviderProps;
|
|
504
|
-
declare const Tabs: ({ children, variant, withDivider, defaultIndex, index, onChange, }: TabsProps) => React$1.JSX.Element;
|
|
512
|
+
declare const Tabs: ({ children, variant, withDivider, defaultIndex, index, onChange, "data-testid": testId, }: TabsProps) => React$1.JSX.Element;
|
|
505
513
|
|
|
506
|
-
interface TabPanelProps extends Omit<React$1.HtmlHTMLAttributes<HTMLDivElement>, 'children' | 'id'
|
|
514
|
+
interface TabPanelProps extends Omit<React$1.HtmlHTMLAttributes<HTMLDivElement>, 'children' | 'id'>, TestIdProps {
|
|
507
515
|
children: ReactNode;
|
|
508
516
|
value?: number;
|
|
509
517
|
id?: string;
|
|
@@ -526,7 +534,7 @@ declare const TabList: ({ children, className, ariaLabel, overflow, moreLabel, .
|
|
|
526
534
|
type TagSize = 'sm';
|
|
527
535
|
type TagKind = 'primary' | 'secondary' | 'tertiary';
|
|
528
536
|
type TagSentiment = 'info' | 'success' | 'warning' | 'danger' | 'highlight';
|
|
529
|
-
type TagProps = {
|
|
537
|
+
type TagProps = TestIdProps & {
|
|
530
538
|
children: React.ReactNode;
|
|
531
539
|
leadingIcon?: IconVariant;
|
|
532
540
|
trailingIcon?: IconVariant;
|
|
@@ -535,7 +543,7 @@ type TagProps = {
|
|
|
535
543
|
kind?: TagKind;
|
|
536
544
|
};
|
|
537
545
|
|
|
538
|
-
declare const Tag: ({ children, size, sentiment, kind, leadingIcon, trailingIcon, }: TagProps) => React$1.JSX.Element;
|
|
546
|
+
declare const Tag: ({ children, size, sentiment, kind, leadingIcon, trailingIcon, "data-testid": testId, }: TagProps) => React$1.JSX.Element;
|
|
539
547
|
|
|
540
548
|
type CardVariant = 'primary' | 'secondary';
|
|
541
549
|
type CardProps = {
|
|
@@ -570,10 +578,10 @@ type TileProps = {
|
|
|
570
578
|
href?: string;
|
|
571
579
|
target?: 'string';
|
|
572
580
|
onClick?: () => void;
|
|
573
|
-
} & React$1.HTMLAttributes<HTMLDivElement
|
|
574
|
-
declare const Tile: ({ children, className, href, onClick, target, disabled, }: TileProps) => React$1.JSX.Element;
|
|
581
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & TestIdProps;
|
|
582
|
+
declare const Tile: ({ children, className, href, onClick, target, disabled, "data-testid": testId, }: TileProps) => React$1.JSX.Element;
|
|
575
583
|
|
|
576
|
-
type LogoProps = {
|
|
584
|
+
type LogoProps = TestIdProps & {
|
|
577
585
|
className?: string;
|
|
578
586
|
variant?: 'lockup' | 'mark';
|
|
579
587
|
alt?: string;
|
|
@@ -592,6 +600,7 @@ interface ToastContent extends Omit<LinkProps, 'children'> {
|
|
|
592
600
|
};
|
|
593
601
|
sentiment?: Sentiment$1;
|
|
594
602
|
closable?: boolean;
|
|
603
|
+
testId?: string;
|
|
595
604
|
}
|
|
596
605
|
|
|
597
606
|
type ToastProviderProps = {
|
|
@@ -630,8 +639,9 @@ type ToggleProps = {
|
|
|
630
639
|
className?: string;
|
|
631
640
|
id?: string;
|
|
632
641
|
'aria-label'?: string;
|
|
642
|
+
'data-testid'?: string;
|
|
633
643
|
};
|
|
634
|
-
declare const Toggle: ({ defaultChecked, checked, onChange, disabled, valueDescription, valueDescriptionPosition, className, name, id, ...props }: ToggleProps) => React$1.JSX.Element;
|
|
644
|
+
declare const Toggle: ({ defaultChecked, checked, onChange, disabled, valueDescription, valueDescriptionPosition, className, name, id, "data-testid": testId, ...props }: ToggleProps) => React$1.JSX.Element;
|
|
635
645
|
|
|
636
646
|
type ArrowPosition = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom' | 'right' | 'right-top' | 'right-bottom';
|
|
637
647
|
|
|
@@ -640,6 +650,7 @@ type TooltipProps = {
|
|
|
640
650
|
size?: 'regular' | 'small';
|
|
641
651
|
arrowPosition?: ArrowPosition;
|
|
642
652
|
maxWidth?: number | 'none';
|
|
653
|
+
'data-testid'?: string;
|
|
643
654
|
};
|
|
644
655
|
declare const Tooltip: FC<TooltipProps>;
|
|
645
656
|
|
|
@@ -649,17 +660,17 @@ type TooltipTriggerProps = {
|
|
|
649
660
|
onVisibilityUpdate?: (isVisible: boolean) => void;
|
|
650
661
|
renderContent: () => React$1.ReactNode;
|
|
651
662
|
floatingElementOffset?: number;
|
|
652
|
-
} & Pick<OverlayTriggerProps, 'placement' | 'interactions' | 'usePortal' | 'autoHideMs' | 'className'> & Pick<TooltipProps, 'size' | 'maxWidth'>;
|
|
663
|
+
} & Pick<OverlayTriggerProps, 'placement' | 'interactions' | 'usePortal' | 'autoHideMs' | 'className' | 'data-testid'> & Pick<TooltipProps, 'size' | 'maxWidth'>;
|
|
653
664
|
declare const TooltipTrigger: FC<TooltipTriggerProps>;
|
|
654
665
|
|
|
655
|
-
type TopBarProps = {
|
|
666
|
+
type TopBarProps = TestIdProps & {
|
|
656
667
|
actions: React$1.ReactNode;
|
|
657
668
|
children?: React$1.ReactNode;
|
|
658
669
|
sideNavIsClosed?: boolean;
|
|
659
670
|
openSideNav?: () => void;
|
|
660
671
|
};
|
|
661
672
|
|
|
662
|
-
declare const TopBar: ({ children, actions, sideNavIsClosed, openSideNav, }: TopBarProps) => React$1.JSX.Element;
|
|
673
|
+
declare const TopBar: ({ children, actions, sideNavIsClosed, openSideNav, "data-testid": testId, }: TopBarProps) => React$1.JSX.Element;
|
|
663
674
|
|
|
664
675
|
type BaseTypographyProps = {
|
|
665
676
|
id?: string;
|