@maxio-com/react-ui-components 9.31.0 → 9.33.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 +3 -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-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 +45 -0
- package/dist/skills/maxio-react/references/components-drawer.md +7 -1
- package/dist/skills/maxio-react/references/components-flex.md +4 -4
- 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-modal.md +507 -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-popover.md +1 -1
- package/dist/skills/maxio-react/references/components-progressbar.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 +5 -0
- package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Dialog/index.d.ts +3 -0
- package/dist/temporary-typings/src/components/Dialog/index.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Dialog/types.d.ts +15 -0
- package/dist/temporary-typings/src/components/Dialog/types.d.ts.map +1 -0
- 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 +2 -1
- 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/Modal/Modal.d.ts +5 -0
- package/dist/temporary-typings/src/components/Modal/Modal.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Modal/index.d.ts +3 -0
- package/dist/temporary-typings/src/components/Modal/index.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Modal/types.d.ts +10 -0
- package/dist/temporary-typings/src/components/Modal/types.d.ts.map +1 -0
- 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/components/index.d.ts +5 -1
- package/dist/temporary-typings/src/components/index.d.ts.map +1 -1
- package/dist/temporary-typings/src/hooks/useIsOverflowing/index.d.ts +2 -0
- package/dist/temporary-typings/src/hooks/useIsOverflowing/index.d.ts.map +1 -0
- package/dist/temporary-typings/src/hooks/useIsOverflowing/useIsOverflowing.d.ts +3 -0
- package/dist/temporary-typings/src/hooks/useIsOverflowing/useIsOverflowing.d.ts.map +1 -0
- 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 +76 -40
package/typings/index.d.ts
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
|
|
1
|
+
import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, CSSProperties, 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
|
-
import { 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';
|
|
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';
|
|
5
5
|
export { DialogTrigger, Pressable } from 'react-aria-components';
|
|
6
6
|
import * as _floating_ui_react_dom_interactions from '@floating-ui/react-dom-interactions';
|
|
7
7
|
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,12 +239,27 @@ 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;
|
|
243
|
+
|
|
244
|
+
interface DialogProps extends Omit<DialogProps$1, 'children' | 'className'> {
|
|
245
|
+
title: ReactNode;
|
|
246
|
+
description?: ReactNode;
|
|
247
|
+
children: ReactNode | ((opts: {
|
|
248
|
+
close: () => void;
|
|
249
|
+
}) => ReactNode);
|
|
250
|
+
footer?: ReactNode | ((opts: {
|
|
251
|
+
close: () => void;
|
|
252
|
+
}) => ReactNode);
|
|
253
|
+
showCloseButton?: boolean;
|
|
254
|
+
className?: string;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
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;
|
|
239
258
|
|
|
240
259
|
type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
241
260
|
type DrawerBackdrop = 'dim' | 'none';
|
|
242
261
|
type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
243
|
-
interface DrawerProps {
|
|
262
|
+
interface DrawerProps extends TestIdProps {
|
|
244
263
|
title: string;
|
|
245
264
|
description?: string;
|
|
246
265
|
children: React$1.ReactNode;
|
|
@@ -253,7 +272,7 @@ interface DrawerProps {
|
|
|
253
272
|
className?: string;
|
|
254
273
|
}
|
|
255
274
|
|
|
256
|
-
declare const Drawer: ({ open, onOpenChange, placement, backdrop, size, className, title, description, children, footer, }: DrawerProps) => React$1.JSX.Element;
|
|
275
|
+
declare const Drawer: ({ open, onOpenChange, placement, backdrop, size, className, title, description, children, footer, "data-testid": testId, }: DrawerProps) => React$1.JSX.Element;
|
|
257
276
|
|
|
258
277
|
type EmptyStateHeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
259
278
|
type EmptyStateProps = {
|
|
@@ -282,13 +301,23 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
282
301
|
declare const Link: React$1.FC<LinkProps>;
|
|
283
302
|
|
|
284
303
|
type LoadingSpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
285
|
-
type LoadingSpinnerProps = {
|
|
304
|
+
type LoadingSpinnerProps = TestIdProps & {
|
|
286
305
|
size?: LoadingSpinnerSize;
|
|
287
306
|
white?: boolean;
|
|
288
307
|
className?: string;
|
|
289
308
|
};
|
|
290
309
|
|
|
291
|
-
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;
|
|
311
|
+
|
|
312
|
+
type ModalSize = 'sm' | 'md' | 'lg';
|
|
313
|
+
interface ModalProps extends Omit<ModalOverlayProps, 'children' | 'className' | 'style'> {
|
|
314
|
+
children: ReactNode;
|
|
315
|
+
size?: ModalSize;
|
|
316
|
+
className?: string;
|
|
317
|
+
style?: CSSProperties;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
declare const Modal: ({ size, isDismissable, className, style, children, ...props }: ModalProps) => React$1.JSX.Element;
|
|
292
321
|
|
|
293
322
|
type OverlayTriggerSettings = {
|
|
294
323
|
placement?: Placement;
|
|
@@ -337,6 +366,7 @@ type OverlayTriggerProps = {
|
|
|
337
366
|
motionSettings?: MotionProps;
|
|
338
367
|
autoHideMs?: number;
|
|
339
368
|
className?: string;
|
|
369
|
+
'data-testid'?: string;
|
|
340
370
|
};
|
|
341
371
|
declare const OverlayTrigger: FC<OverlayTriggerProps>;
|
|
342
372
|
|
|
@@ -344,7 +374,8 @@ type PageInfo = {
|
|
|
344
374
|
currentPage: number;
|
|
345
375
|
itemsPerPage: number;
|
|
346
376
|
};
|
|
347
|
-
|
|
377
|
+
|
|
378
|
+
type PaginationProps = TestIdProps & {
|
|
348
379
|
totalItems?: number;
|
|
349
380
|
currentPage?: number;
|
|
350
381
|
itemsPerPage?: number;
|
|
@@ -354,7 +385,7 @@ type PaginationProps = {
|
|
|
354
385
|
manualPageInput?: boolean;
|
|
355
386
|
};
|
|
356
387
|
|
|
357
|
-
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;
|
|
358
389
|
|
|
359
390
|
interface PopoverProps extends Omit<PopoverProps$1, 'children'> {
|
|
360
391
|
children: ReactNode;
|
|
@@ -363,7 +394,7 @@ interface PopoverProps extends Omit<PopoverProps$1, 'children'> {
|
|
|
363
394
|
|
|
364
395
|
declare const Popover: ({ className, hideArrow, children, offset, ...props }: PopoverProps) => React$1.JSX.Element;
|
|
365
396
|
|
|
366
|
-
interface ProgressBarProps {
|
|
397
|
+
interface ProgressBarProps extends TestIdProps {
|
|
367
398
|
label: string;
|
|
368
399
|
helperText?: string;
|
|
369
400
|
size?: 'md' | 'lg';
|
|
@@ -372,7 +403,7 @@ interface ProgressBarProps {
|
|
|
372
403
|
value?: number;
|
|
373
404
|
maxValue?: number;
|
|
374
405
|
}
|
|
375
|
-
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;
|
|
376
407
|
|
|
377
408
|
type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
378
409
|
interface SegmentedControlProps extends ToggleButtonGroupProps {
|
|
@@ -399,6 +430,7 @@ interface SingleSection {
|
|
|
399
430
|
key: string;
|
|
400
431
|
isCurrent?: boolean;
|
|
401
432
|
type?: 'regular';
|
|
433
|
+
testId?: string;
|
|
402
434
|
render?: LinkProps$1['render'];
|
|
403
435
|
}
|
|
404
436
|
interface SingleSectionWithItems extends SingleSection {
|
|
@@ -443,7 +475,7 @@ interface SideNavTopDropdownItem extends AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
443
475
|
type SideNavWrapperProps = Omit<SideNavProviderProps, 'children'>;
|
|
444
476
|
declare const SideNavWrapper: ({ withIcons, shouldToggleSidebar, topDropdownItems, sections, collapseBreakpoint, isOpen, onChange, }: SideNavWrapperProps) => React$1.JSX.Element;
|
|
445
477
|
|
|
446
|
-
type CommonTabProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'id'> & {
|
|
478
|
+
type CommonTabProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'id'> & TestIdProps & {
|
|
447
479
|
disabled?: boolean;
|
|
448
480
|
value?: number;
|
|
449
481
|
id?: string;
|
|
@@ -469,6 +501,7 @@ interface TabsContext {
|
|
|
469
501
|
withDivider: boolean;
|
|
470
502
|
}
|
|
471
503
|
type TabsProviderProps = Partial<TabsContext> & {
|
|
504
|
+
'data-testid'?: string;
|
|
472
505
|
children: ReactNode;
|
|
473
506
|
defaultIndex?: number;
|
|
474
507
|
index?: number;
|
|
@@ -476,9 +509,9 @@ type TabsProviderProps = Partial<TabsContext> & {
|
|
|
476
509
|
};
|
|
477
510
|
|
|
478
511
|
type TabsProps = TabsProviderProps;
|
|
479
|
-
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;
|
|
480
513
|
|
|
481
|
-
interface TabPanelProps extends Omit<React$1.HtmlHTMLAttributes<HTMLDivElement>, 'children' | 'id'
|
|
514
|
+
interface TabPanelProps extends Omit<React$1.HtmlHTMLAttributes<HTMLDivElement>, 'children' | 'id'>, TestIdProps {
|
|
482
515
|
children: ReactNode;
|
|
483
516
|
value?: number;
|
|
484
517
|
id?: string;
|
|
@@ -501,7 +534,7 @@ declare const TabList: ({ children, className, ariaLabel, overflow, moreLabel, .
|
|
|
501
534
|
type TagSize = 'sm';
|
|
502
535
|
type TagKind = 'primary' | 'secondary' | 'tertiary';
|
|
503
536
|
type TagSentiment = 'info' | 'success' | 'warning' | 'danger' | 'highlight';
|
|
504
|
-
type TagProps = {
|
|
537
|
+
type TagProps = TestIdProps & {
|
|
505
538
|
children: React.ReactNode;
|
|
506
539
|
leadingIcon?: IconVariant;
|
|
507
540
|
trailingIcon?: IconVariant;
|
|
@@ -510,7 +543,7 @@ type TagProps = {
|
|
|
510
543
|
kind?: TagKind;
|
|
511
544
|
};
|
|
512
545
|
|
|
513
|
-
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;
|
|
514
547
|
|
|
515
548
|
type CardVariant = 'primary' | 'secondary';
|
|
516
549
|
type CardProps = {
|
|
@@ -545,10 +578,10 @@ type TileProps = {
|
|
|
545
578
|
href?: string;
|
|
546
579
|
target?: 'string';
|
|
547
580
|
onClick?: () => void;
|
|
548
|
-
} & React$1.HTMLAttributes<HTMLDivElement
|
|
549
|
-
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;
|
|
550
583
|
|
|
551
|
-
type LogoProps = {
|
|
584
|
+
type LogoProps = TestIdProps & {
|
|
552
585
|
className?: string;
|
|
553
586
|
variant?: 'lockup' | 'mark';
|
|
554
587
|
alt?: string;
|
|
@@ -567,6 +600,7 @@ interface ToastContent extends Omit<LinkProps, 'children'> {
|
|
|
567
600
|
};
|
|
568
601
|
sentiment?: Sentiment$1;
|
|
569
602
|
closable?: boolean;
|
|
603
|
+
testId?: string;
|
|
570
604
|
}
|
|
571
605
|
|
|
572
606
|
type ToastProviderProps = {
|
|
@@ -605,8 +639,9 @@ type ToggleProps = {
|
|
|
605
639
|
className?: string;
|
|
606
640
|
id?: string;
|
|
607
641
|
'aria-label'?: string;
|
|
642
|
+
'data-testid'?: string;
|
|
608
643
|
};
|
|
609
|
-
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;
|
|
610
645
|
|
|
611
646
|
type ArrowPosition = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom' | 'right' | 'right-top' | 'right-bottom';
|
|
612
647
|
|
|
@@ -615,6 +650,7 @@ type TooltipProps = {
|
|
|
615
650
|
size?: 'regular' | 'small';
|
|
616
651
|
arrowPosition?: ArrowPosition;
|
|
617
652
|
maxWidth?: number | 'none';
|
|
653
|
+
'data-testid'?: string;
|
|
618
654
|
};
|
|
619
655
|
declare const Tooltip: FC<TooltipProps>;
|
|
620
656
|
|
|
@@ -624,17 +660,17 @@ type TooltipTriggerProps = {
|
|
|
624
660
|
onVisibilityUpdate?: (isVisible: boolean) => void;
|
|
625
661
|
renderContent: () => React$1.ReactNode;
|
|
626
662
|
floatingElementOffset?: number;
|
|
627
|
-
} & 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'>;
|
|
628
664
|
declare const TooltipTrigger: FC<TooltipTriggerProps>;
|
|
629
665
|
|
|
630
|
-
type TopBarProps = {
|
|
666
|
+
type TopBarProps = TestIdProps & {
|
|
631
667
|
actions: React$1.ReactNode;
|
|
632
668
|
children?: React$1.ReactNode;
|
|
633
669
|
sideNavIsClosed?: boolean;
|
|
634
670
|
openSideNav?: () => void;
|
|
635
671
|
};
|
|
636
672
|
|
|
637
|
-
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;
|
|
638
674
|
|
|
639
675
|
type BaseTypographyProps = {
|
|
640
676
|
id?: string;
|
|
@@ -1000,5 +1036,5 @@ type AuthLayoutProps = {
|
|
|
1000
1036
|
|
|
1001
1037
|
declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, topAddon, footer, }: AuthLayoutProps) => React$1.JSX.Element;
|
|
1002
1038
|
|
|
1003
|
-
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, DateField, DatePicker, DateRangePicker, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, NumberField, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SearchField, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
1004
|
-
export type { CalendarNavigation, CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DateFieldProps, DatePickerProps, DatePreset, DateRangePickerProps, DateRangePreset, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, NumberFieldProps, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SearchFieldProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
|
|
1039
|
+
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, DateField, DatePicker, DateRangePicker, Dialog, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, Modal, NumberField, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SearchField, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
1040
|
+
export type { CalendarNavigation, CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DateFieldProps, DatePickerProps, DatePreset, DateRangePickerProps, DateRangePreset, DialogProps, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, ModalProps, ModalSize, NumberFieldProps, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SearchFieldProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
|