@maxio-com/react-ui-components 9.0.0 → 9.0.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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +30 -30
- package/typings/index.d.ts +575 -576
package/typings/index.d.ts
CHANGED
|
@@ -1,712 +1,711 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, HTMLAttributes, LiHTMLAttributes, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
|
|
1
|
+
import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
|
|
4
2
|
import { RowData, Row, Table, ExpandedState, RowSelectionState, SortingState, TableOptions } from '@tanstack/react-table';
|
|
5
3
|
export { createColumnHelper } from '@tanstack/react-table';
|
|
6
4
|
import * as _floating_ui_react_dom_interactions from '@floating-ui/react-dom-interactions';
|
|
7
|
-
import {
|
|
5
|
+
import { MotionProps } from 'framer-motion';
|
|
8
6
|
import { ToastState, ToastQueue as ToastQueue$1 } from '@react-stately/toast';
|
|
9
7
|
import { AriaCheckboxGroupProps, AriaRadioGroupProps, AriaToggleButtonProps } from 'react-aria';
|
|
10
8
|
|
|
11
9
|
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", "dropbox", "hubspot", "sage", "oracle", "quotapath", "avalara", "pipedrive", "quickbooks", "salesforce", "xero"];
|
|
12
10
|
|
|
13
|
-
type IconVariant = (typeof ICONS)[number] | string;
|
|
14
|
-
type IconProps = {
|
|
15
|
-
className?: string;
|
|
16
|
-
size?: 'xs' | 'md' | 'lg';
|
|
17
|
-
variant: IconVariant;
|
|
18
|
-
color?: string;
|
|
11
|
+
type IconVariant = (typeof ICONS)[number] | string;
|
|
12
|
+
type IconProps = {
|
|
13
|
+
className?: string;
|
|
14
|
+
size?: 'xs' | 'md' | 'lg';
|
|
15
|
+
variant: IconVariant;
|
|
16
|
+
color?: string;
|
|
19
17
|
};
|
|
20
18
|
|
|
21
|
-
declare const Icon: ({ variant, color, className, size }: IconProps) =>
|
|
19
|
+
declare const Icon: ({ variant, color, className, size }: IconProps) => React$1.JSX.Element;
|
|
22
20
|
//# sourceMappingURL=Icon.d.ts.map
|
|
23
21
|
|
|
24
|
-
interface DividerListItem {
|
|
25
|
-
id: string | number;
|
|
26
|
-
type: 'divider';
|
|
27
|
-
}
|
|
28
|
-
interface ListItem {
|
|
29
|
-
type?: 'default';
|
|
30
|
-
id: string | number;
|
|
31
|
-
label: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
leadingIconName?: IconVariant;
|
|
34
|
-
leadingIconClassName?: string;
|
|
35
|
-
trailingIconName?: IconVariant;
|
|
36
|
-
link: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
37
|
-
}
|
|
38
|
-
interface ActionItemProps extends React.HTMLAttributes<HTMLAnchorElement | HTMLDivElement> {
|
|
39
|
-
item: ActionListItem;
|
|
40
|
-
isSelected: boolean;
|
|
41
|
-
truncateLabel?: boolean;
|
|
42
|
-
small?: boolean;
|
|
43
|
-
}
|
|
44
|
-
type ActionListItem = ListItem | DividerListItem;
|
|
45
|
-
interface ActionListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
46
|
-
items: ActionListItem[];
|
|
47
|
-
isShadowed?: boolean;
|
|
48
|
-
itemProps?: Omit<ActionItemProps, 'item' | 'isSelected'>;
|
|
49
|
-
truncateLabels?: boolean;
|
|
50
|
-
small?: boolean;
|
|
22
|
+
interface DividerListItem {
|
|
23
|
+
id: string | number;
|
|
24
|
+
type: 'divider';
|
|
25
|
+
}
|
|
26
|
+
interface ListItem {
|
|
27
|
+
type?: 'default';
|
|
28
|
+
id: string | number;
|
|
29
|
+
label: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
leadingIconName?: IconVariant;
|
|
32
|
+
leadingIconClassName?: string;
|
|
33
|
+
trailingIconName?: IconVariant;
|
|
34
|
+
link: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
35
|
+
}
|
|
36
|
+
interface ActionItemProps extends React.HTMLAttributes<HTMLAnchorElement | HTMLDivElement> {
|
|
37
|
+
item: ActionListItem;
|
|
38
|
+
isSelected: boolean;
|
|
39
|
+
truncateLabel?: boolean;
|
|
40
|
+
small?: boolean;
|
|
41
|
+
}
|
|
42
|
+
type ActionListItem = ListItem | DividerListItem;
|
|
43
|
+
interface ActionListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
44
|
+
items: ActionListItem[];
|
|
45
|
+
isShadowed?: boolean;
|
|
46
|
+
itemProps?: Omit<ActionItemProps, 'item' | 'isSelected'>;
|
|
47
|
+
truncateLabels?: boolean;
|
|
48
|
+
small?: boolean;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
declare const ActionList: ({ items, isShadowed, itemProps, className, truncateLabels, small, ...props }: ActionListProps) =>
|
|
51
|
+
declare const ActionList: ({ items, isShadowed, itemProps, className, truncateLabels, small, ...props }: ActionListProps) => React$1.JSX.Element | null;
|
|
54
52
|
//# sourceMappingURL=ActionList.d.ts.map
|
|
55
53
|
|
|
56
|
-
type Sentiment$3 = 'info' | 'success' | 'warning' | 'danger';
|
|
57
|
-
type AlertProps = {
|
|
58
|
-
title?: string;
|
|
59
|
-
children?: string;
|
|
60
|
-
onDismiss?: () => void;
|
|
61
|
-
linkText?: string;
|
|
62
|
-
linkExternal?: boolean;
|
|
63
|
-
href?: string;
|
|
64
|
-
sentiment?: Sentiment$3;
|
|
65
|
-
className?: string;
|
|
66
|
-
display?: 'inline' | 'block';
|
|
54
|
+
type Sentiment$3 = 'info' | 'success' | 'warning' | 'danger';
|
|
55
|
+
type AlertProps = {
|
|
56
|
+
title?: string;
|
|
57
|
+
children?: string;
|
|
58
|
+
onDismiss?: () => void;
|
|
59
|
+
linkText?: string;
|
|
60
|
+
linkExternal?: boolean;
|
|
61
|
+
href?: string;
|
|
62
|
+
sentiment?: Sentiment$3;
|
|
63
|
+
className?: string;
|
|
64
|
+
display?: 'inline' | 'block';
|
|
67
65
|
};
|
|
68
66
|
|
|
69
|
-
declare const Alert: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, }: AlertProps) =>
|
|
67
|
+
declare const Alert: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, }: AlertProps) => React$1.JSX.Element | null;
|
|
70
68
|
//# sourceMappingURL=Alert.d.ts.map
|
|
71
69
|
|
|
72
|
-
interface MenuProps {
|
|
73
|
-
children: ReactNode | (({ isOpen, onClose, }: {
|
|
74
|
-
isOpen: boolean;
|
|
75
|
-
onClose: () => void;
|
|
76
|
-
}) => ReactNode);
|
|
77
|
-
}
|
|
78
|
-
declare const Menu: ({ children }: MenuProps) =>
|
|
79
|
-
|
|
80
|
-
interface MenuListProps {
|
|
81
|
-
items: ActionListItem[];
|
|
82
|
-
alignItemsEnd?: boolean;
|
|
83
|
-
}
|
|
84
|
-
declare const MenuList: ({ items, alignItemsEnd }: MenuListProps) =>
|
|
70
|
+
interface MenuProps {
|
|
71
|
+
children: ReactNode | (({ isOpen, onClose, }: {
|
|
72
|
+
isOpen: boolean;
|
|
73
|
+
onClose: () => void;
|
|
74
|
+
}) => ReactNode);
|
|
75
|
+
}
|
|
76
|
+
declare const Menu: ({ children }: MenuProps) => React$1.JSX.Element;
|
|
77
|
+
|
|
78
|
+
interface MenuListProps {
|
|
79
|
+
items: ActionListItem[];
|
|
80
|
+
alignItemsEnd?: boolean;
|
|
81
|
+
}
|
|
82
|
+
declare const MenuList: ({ items, alignItemsEnd }: MenuListProps) => React$1.JSX.Element;
|
|
85
83
|
//# sourceMappingURL=MenuList.d.ts.map
|
|
86
84
|
|
|
87
|
-
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger' | 'skeleton';
|
|
88
|
-
type ButtonSize$1 = 'sm' | 'md' | 'lg' | 'xl';
|
|
89
|
-
interface CommonButtonProps {
|
|
90
|
-
variant?: ButtonVariant;
|
|
91
|
-
size?: ButtonSize$1;
|
|
92
|
-
fullWidth?: boolean;
|
|
93
|
-
leadingElement?: React.ReactNode;
|
|
94
|
-
trailingElement?: React.ReactNode;
|
|
95
|
-
icon?: React.ReactNode;
|
|
96
|
-
}
|
|
97
|
-
interface InternalButtonProps extends CommonButtonProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
98
|
-
disabled?: boolean;
|
|
99
|
-
loading?: boolean;
|
|
100
|
-
href?: never;
|
|
101
|
-
value?: string;
|
|
102
|
-
}
|
|
103
|
-
interface InternalLinkProps extends CommonButtonProps, React.HTMLAttributes<HTMLAnchorElement> {
|
|
104
|
-
href?: string;
|
|
105
|
-
}
|
|
85
|
+
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger' | 'skeleton';
|
|
86
|
+
type ButtonSize$1 = 'sm' | 'md' | 'lg' | 'xl';
|
|
87
|
+
interface CommonButtonProps {
|
|
88
|
+
variant?: ButtonVariant;
|
|
89
|
+
size?: ButtonSize$1;
|
|
90
|
+
fullWidth?: boolean;
|
|
91
|
+
leadingElement?: React.ReactNode;
|
|
92
|
+
trailingElement?: React.ReactNode;
|
|
93
|
+
icon?: React.ReactNode;
|
|
94
|
+
}
|
|
95
|
+
interface InternalButtonProps extends CommonButtonProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
loading?: boolean;
|
|
98
|
+
href?: never;
|
|
99
|
+
value?: string;
|
|
100
|
+
}
|
|
101
|
+
interface InternalLinkProps extends CommonButtonProps, React.HTMLAttributes<HTMLAnchorElement> {
|
|
102
|
+
href?: string;
|
|
103
|
+
}
|
|
106
104
|
type ButtonProps = InternalButtonProps | InternalLinkProps;
|
|
107
105
|
|
|
108
|
-
type MenuButtonProps = Omit<ButtonProps, 'onClick' | 'children' | 'disabled' | 'loading' | 'icon'> & {
|
|
109
|
-
children?: React.ReactNode;
|
|
110
|
-
iconName?: IconVariant | null;
|
|
106
|
+
type MenuButtonProps = Omit<ButtonProps, 'onClick' | 'children' | 'disabled' | 'loading' | 'icon'> & {
|
|
107
|
+
children?: React.ReactNode;
|
|
108
|
+
iconName?: IconVariant | null;
|
|
111
109
|
};
|
|
112
110
|
|
|
113
|
-
declare const MenuButton: ({ children, iconName, "aria-label": ariaLabel, size, variant, }: MenuButtonProps) =>
|
|
111
|
+
declare const MenuButton: ({ children, iconName, "aria-label": ariaLabel, size, variant, }: MenuButtonProps) => React$1.JSX.Element;
|
|
114
112
|
//# sourceMappingURL=MenuButton.d.ts.map
|
|
115
113
|
|
|
116
|
-
type AvatarProps = {
|
|
117
|
-
className?: string;
|
|
118
|
-
src: string;
|
|
119
|
-
alt?: string;
|
|
114
|
+
type AvatarProps = {
|
|
115
|
+
className?: string;
|
|
116
|
+
src: string;
|
|
117
|
+
alt?: string;
|
|
120
118
|
};
|
|
121
119
|
|
|
122
|
-
declare const Avatar: ({ className, src, alt }: AvatarProps) =>
|
|
120
|
+
declare const Avatar: ({ className, src, alt }: AvatarProps) => React$1.JSX.Element;
|
|
123
121
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
124
122
|
|
|
125
|
-
type Sentiment$2 = 'info' | 'success' | 'warning' | 'danger';
|
|
126
|
-
type BannerProps = {
|
|
127
|
-
title?: string;
|
|
128
|
-
children: string;
|
|
129
|
-
onDismiss?: () => void;
|
|
130
|
-
linkText?: string;
|
|
131
|
-
linkExternal?: boolean;
|
|
132
|
-
href?: string;
|
|
133
|
-
sentiment?: Sentiment$2;
|
|
134
|
-
className?: string;
|
|
135
|
-
display?: 'inline' | 'block';
|
|
123
|
+
type Sentiment$2 = 'info' | 'success' | 'warning' | 'danger';
|
|
124
|
+
type BannerProps = {
|
|
125
|
+
title?: string;
|
|
126
|
+
children: string;
|
|
127
|
+
onDismiss?: () => void;
|
|
128
|
+
linkText?: string;
|
|
129
|
+
linkExternal?: boolean;
|
|
130
|
+
href?: string;
|
|
131
|
+
sentiment?: Sentiment$2;
|
|
132
|
+
className?: string;
|
|
133
|
+
display?: 'inline' | 'block';
|
|
136
134
|
};
|
|
137
135
|
|
|
138
|
-
declare const Banner: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, }: BannerProps) =>
|
|
136
|
+
declare const Banner: ({ children, title, linkText, linkExternal, href, display, sentiment, onDismiss, className, }: BannerProps) => React$1.JSX.Element | null;
|
|
139
137
|
//# sourceMappingURL=Banner.d.ts.map
|
|
140
138
|
|
|
141
|
-
type BreadcrumbsProps = HTMLAttributes<HTMLElement>;
|
|
142
|
-
type BreadcrumbsItemProps = {
|
|
143
|
-
href?: string;
|
|
139
|
+
type BreadcrumbsProps = HTMLAttributes<HTMLElement>;
|
|
140
|
+
type BreadcrumbsItemProps = {
|
|
141
|
+
href?: string;
|
|
144
142
|
} & LiHTMLAttributes<HTMLLIElement>;
|
|
145
143
|
|
|
146
|
-
declare const Breadcrumbs:
|
|
144
|
+
declare const Breadcrumbs: React$1.FC<BreadcrumbsProps>;
|
|
147
145
|
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
148
146
|
|
|
149
|
-
declare const BreadcrumbsItem:
|
|
147
|
+
declare const BreadcrumbsItem: React$1.FC<BreadcrumbsItemProps>;
|
|
150
148
|
//# sourceMappingURL=BreadcrumbsItem.d.ts.map
|
|
151
149
|
|
|
152
|
-
declare const Button: (props: ButtonProps) =>
|
|
150
|
+
declare const Button: (props: ButtonProps) => React$1.JSX.Element;
|
|
153
151
|
//# sourceMappingURL=Button.d.ts.map
|
|
154
152
|
|
|
155
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
156
|
-
type IconButtonProps = (Omit<InternalButtonProps, 'fullWidth' | 'children'> | Omit<InternalLinkProps, 'fullWidth' | 'children'>) & {
|
|
157
|
-
'aria-label': string;
|
|
158
|
-
size?: ButtonSize;
|
|
153
|
+
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
154
|
+
type IconButtonProps = (Omit<InternalButtonProps, 'fullWidth' | 'children'> | Omit<InternalLinkProps, 'fullWidth' | 'children'>) & {
|
|
155
|
+
'aria-label': string;
|
|
156
|
+
size?: ButtonSize;
|
|
159
157
|
};
|
|
160
158
|
|
|
161
|
-
declare const IconButton: ({ "aria-label": ariaLabel, className, ...props }: IconButtonProps) =>
|
|
159
|
+
declare const IconButton: ({ "aria-label": ariaLabel, className, ...props }: IconButtonProps) => React$1.JSX.Element;
|
|
162
160
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
163
161
|
|
|
164
|
-
type TableSize = 'sm' | 'md' | 'lg';
|
|
165
|
-
type ColumnAlign = 'left' | 'right';
|
|
166
|
-
type RequiredTableOptions<TData extends RowData> = Pick<TableOptions<TData>, 'data' | 'columns'>;
|
|
167
|
-
type OptionalTableOptions<TData extends RowData> = Partial<Omit<TableOptions<TData>, 'getCoreRowModel'>>;
|
|
168
|
-
type DataTableProps<TData extends RowData = unknown> = {
|
|
169
|
-
size?: TableSize;
|
|
170
|
-
pattern?: boolean;
|
|
171
|
-
align?: ColumnAlign;
|
|
172
|
-
SubRowComponent?: (row: Row<TData>) => React.ReactNode;
|
|
173
|
-
isLoading?: boolean;
|
|
174
|
-
actions?: (row: Row<TData>, table: Table<TData>) => React.ReactNode;
|
|
175
|
-
onExpand?: (expanded: ExpandedState) => void;
|
|
176
|
-
onSelect?: (selected: RowSelectionState) => void;
|
|
177
|
-
onSort?: (selected: SortingState) => void;
|
|
178
|
-
} & RequiredTableOptions<TData> & OptionalTableOptions<TData>;
|
|
179
|
-
declare module '@tanstack/react-table' {
|
|
180
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
181
|
-
align?: ColumnAlign;
|
|
182
|
-
width?: string;
|
|
183
|
-
controls?: boolean;
|
|
184
|
-
actions?: boolean;
|
|
185
|
-
}
|
|
162
|
+
type TableSize = 'sm' | 'md' | 'lg';
|
|
163
|
+
type ColumnAlign = 'left' | 'right';
|
|
164
|
+
type RequiredTableOptions<TData extends RowData> = Pick<TableOptions<TData>, 'data' | 'columns'>;
|
|
165
|
+
type OptionalTableOptions<TData extends RowData> = Partial<Omit<TableOptions<TData>, 'getCoreRowModel'>>;
|
|
166
|
+
type DataTableProps<TData extends RowData = unknown> = {
|
|
167
|
+
size?: TableSize;
|
|
168
|
+
pattern?: boolean;
|
|
169
|
+
align?: ColumnAlign;
|
|
170
|
+
SubRowComponent?: (row: Row<TData>) => React.ReactNode;
|
|
171
|
+
isLoading?: boolean;
|
|
172
|
+
actions?: (row: Row<TData>, table: Table<TData>) => React.ReactNode;
|
|
173
|
+
onExpand?: (expanded: ExpandedState) => void;
|
|
174
|
+
onSelect?: (selected: RowSelectionState) => void;
|
|
175
|
+
onSort?: (selected: SortingState) => void;
|
|
176
|
+
} & RequiredTableOptions<TData> & OptionalTableOptions<TData>;
|
|
177
|
+
declare module '@tanstack/react-table' {
|
|
178
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
179
|
+
align?: ColumnAlign;
|
|
180
|
+
width?: string;
|
|
181
|
+
controls?: boolean;
|
|
182
|
+
actions?: boolean;
|
|
183
|
+
}
|
|
186
184
|
}
|
|
187
185
|
|
|
188
|
-
declare const DataTable: <TData extends
|
|
186
|
+
declare const DataTable: <TData extends RowData>({ pattern, size, SubRowComponent, onExpand, onSelect, onSort, enableSorting, enableRowSelection, enableExpanding, columns: originalColumns, actions, ...props }: DataTableProps<TData>) => React$1.JSX.Element;
|
|
189
187
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
190
188
|
|
|
191
|
-
type Variant = 'primary' | 'secondary' | 'tertiary' | 'high-contrast' | 'inverse';
|
|
192
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
193
|
-
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
194
|
-
className?: string;
|
|
195
|
-
children: ReactNode;
|
|
196
|
-
size?: Size;
|
|
197
|
-
disabled?: boolean;
|
|
198
|
-
icon?: IconVariant;
|
|
199
|
-
external?: boolean;
|
|
200
|
-
variant?: Variant;
|
|
201
|
-
underline?: boolean;
|
|
189
|
+
type Variant = 'primary' | 'secondary' | 'tertiary' | 'high-contrast' | 'inverse';
|
|
190
|
+
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
191
|
+
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
192
|
+
className?: string;
|
|
193
|
+
children: ReactNode;
|
|
194
|
+
size?: Size;
|
|
195
|
+
disabled?: boolean;
|
|
196
|
+
icon?: IconVariant;
|
|
197
|
+
external?: boolean;
|
|
198
|
+
variant?: Variant;
|
|
199
|
+
underline?: boolean;
|
|
202
200
|
}
|
|
203
201
|
|
|
204
|
-
declare const Link:
|
|
202
|
+
declare const Link: React$1.FC<LinkProps>;
|
|
205
203
|
//# sourceMappingURL=Link.d.ts.map
|
|
206
204
|
|
|
207
|
-
type LoadingSpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
208
|
-
type LoadingSpinnerProps = {
|
|
209
|
-
size?: LoadingSpinnerSize;
|
|
210
|
-
white?: boolean;
|
|
211
|
-
className?: string;
|
|
205
|
+
type LoadingSpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
206
|
+
type LoadingSpinnerProps = {
|
|
207
|
+
size?: LoadingSpinnerSize;
|
|
208
|
+
white?: boolean;
|
|
209
|
+
className?: string;
|
|
212
210
|
};
|
|
213
211
|
|
|
214
|
-
declare const LoadingSpinner: ({ size, white, className, }: LoadingSpinnerProps) =>
|
|
212
|
+
declare const LoadingSpinner: ({ size, white, className, }: LoadingSpinnerProps) => React$1.JSX.Element;
|
|
215
213
|
//# sourceMappingURL=LoadingSpinner.d.ts.map
|
|
216
214
|
|
|
217
|
-
type Alignment = 'start' | 'end';
|
|
218
|
-
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
219
|
-
type AlignedPlacement = `${Side}-${Alignment}`;
|
|
220
|
-
type Placement = Side | AlignedPlacement;
|
|
221
|
-
type Interactions = 'click' | 'hover' | 'focus' | 'dismiss';
|
|
215
|
+
type Alignment = 'start' | 'end';
|
|
216
|
+
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
217
|
+
type AlignedPlacement = `${Side}-${Alignment}`;
|
|
218
|
+
type Placement = Side | AlignedPlacement;
|
|
219
|
+
type Interactions = 'click' | 'hover' | 'focus' | 'dismiss';
|
|
222
220
|
type OverlayAriaRole = 'tooltip' | 'dialog' | 'alertdialog' | 'menu' | 'listbox' | 'grid' | 'tree';
|
|
223
221
|
|
|
224
|
-
type OverlayTriggerSettings = {
|
|
225
|
-
placement?: Placement;
|
|
226
|
-
isInitiallyActive?: boolean;
|
|
227
|
-
interactions?: Interactions[];
|
|
228
|
-
floatingElementOffset?: number;
|
|
229
|
-
role: OverlayAriaRole;
|
|
230
|
-
isActive?: boolean;
|
|
231
|
-
onOverlayUpdate: (isActive: boolean) => void;
|
|
232
|
-
autoHideMs?: number;
|
|
233
|
-
};
|
|
234
|
-
declare const useOverlayTrigger: ({ placement, isActive, interactions, floatingElementOffset, onOverlayUpdate, autoHideMs, }: OverlayTriggerSettings) => {
|
|
235
|
-
isActive: boolean;
|
|
236
|
-
refs: {
|
|
237
|
-
floating: (node: HTMLElement | null) => void;
|
|
238
|
-
reference: (node: _floating_ui_react_dom_interactions.ReferenceType | null) => void;
|
|
239
|
-
};
|
|
240
|
-
floatingElementCSSPosition: {
|
|
241
|
-
position: _floating_ui_react_dom_interactions.Strategy;
|
|
242
|
-
top: number;
|
|
243
|
-
left: number;
|
|
244
|
-
};
|
|
245
|
-
getReferenceProps: (userProps?: React
|
|
246
|
-
getFloatingProps: (userProps?: React
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
declare function useHover<T extends HTMLElement = HTMLElement>(ref: RefObject<T>, mouseLeaveDelay?: number): boolean;
|
|
250
|
-
|
|
251
|
-
declare function useWindowSize(debounce?: number): {
|
|
252
|
-
windowWitdh: number;
|
|
253
|
-
windowHeight: number;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
type OverlayTriggerProps = {
|
|
257
|
-
children:
|
|
258
|
-
placement?: Placement;
|
|
259
|
-
usePortal?: boolean;
|
|
260
|
-
interactions?: Interactions[];
|
|
261
|
-
renderOverlay: () =>
|
|
262
|
-
role?: OverlayAriaRole;
|
|
263
|
-
floatingElementOffset?: number;
|
|
264
|
-
isActive?: boolean;
|
|
265
|
-
onOverlayUpdate: (isActive: boolean) => void;
|
|
266
|
-
motionSettings?:
|
|
267
|
-
autoHideMs?: number;
|
|
268
|
-
className?: string;
|
|
269
|
-
};
|
|
222
|
+
type OverlayTriggerSettings = {
|
|
223
|
+
placement?: Placement;
|
|
224
|
+
isInitiallyActive?: boolean;
|
|
225
|
+
interactions?: Interactions[];
|
|
226
|
+
floatingElementOffset?: number;
|
|
227
|
+
role: OverlayAriaRole;
|
|
228
|
+
isActive?: boolean;
|
|
229
|
+
onOverlayUpdate: (isActive: boolean) => void;
|
|
230
|
+
autoHideMs?: number;
|
|
231
|
+
};
|
|
232
|
+
declare const useOverlayTrigger: ({ placement, isActive, interactions, floatingElementOffset, onOverlayUpdate, autoHideMs, }: OverlayTriggerSettings) => {
|
|
233
|
+
isActive: boolean;
|
|
234
|
+
refs: {
|
|
235
|
+
floating: (node: HTMLElement | null) => void;
|
|
236
|
+
reference: (node: _floating_ui_react_dom_interactions.ReferenceType | null) => void;
|
|
237
|
+
};
|
|
238
|
+
floatingElementCSSPosition: {
|
|
239
|
+
position: _floating_ui_react_dom_interactions.Strategy;
|
|
240
|
+
top: number;
|
|
241
|
+
left: number;
|
|
242
|
+
};
|
|
243
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
244
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
declare function useHover<T extends HTMLElement = HTMLElement>(ref: RefObject<T | null>, mouseLeaveDelay?: number): boolean;
|
|
248
|
+
|
|
249
|
+
declare function useWindowSize(debounce?: number): {
|
|
250
|
+
windowWitdh: number;
|
|
251
|
+
windowHeight: number;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
type OverlayTriggerProps = {
|
|
255
|
+
children: React$1.ReactNode;
|
|
256
|
+
placement?: Placement;
|
|
257
|
+
usePortal?: boolean;
|
|
258
|
+
interactions?: Interactions[];
|
|
259
|
+
renderOverlay: () => React$1.ReactNode;
|
|
260
|
+
role?: OverlayAriaRole;
|
|
261
|
+
floatingElementOffset?: number;
|
|
262
|
+
isActive?: boolean;
|
|
263
|
+
onOverlayUpdate: (isActive: boolean) => void;
|
|
264
|
+
motionSettings?: MotionProps;
|
|
265
|
+
autoHideMs?: number;
|
|
266
|
+
className?: string;
|
|
267
|
+
};
|
|
270
268
|
declare const OverlayTrigger: FC<OverlayTriggerProps>;
|
|
271
269
|
|
|
272
|
-
type PageInfo = {
|
|
273
|
-
currentPage: number;
|
|
274
|
-
itemsPerPage: number;
|
|
275
|
-
};
|
|
276
|
-
type PaginationProps = {
|
|
277
|
-
totalItems?: number;
|
|
278
|
-
currentPage?: number;
|
|
279
|
-
itemsPerPage?: number;
|
|
280
|
-
pageSizeOptions: number[];
|
|
281
|
-
size?: 'sm' | 'md' | 'lg';
|
|
282
|
-
onChange?: (pageInfo: PageInfo) => void;
|
|
283
|
-
manualPageInput?: boolean;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
declare const Pagination: ({ size, onChange, totalItems, itemsPerPage: itemsPerPageProp, currentPage: currentPageProp, pageSizeOptions, manualPageInput, }: PaginationProps) =>
|
|
270
|
+
type PageInfo = {
|
|
271
|
+
currentPage: number;
|
|
272
|
+
itemsPerPage: number;
|
|
273
|
+
};
|
|
274
|
+
type PaginationProps = {
|
|
275
|
+
totalItems?: number;
|
|
276
|
+
currentPage?: number;
|
|
277
|
+
itemsPerPage?: number;
|
|
278
|
+
pageSizeOptions: number[];
|
|
279
|
+
size?: 'sm' | 'md' | 'lg';
|
|
280
|
+
onChange?: (pageInfo: PageInfo) => void;
|
|
281
|
+
manualPageInput?: boolean;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
declare const Pagination: ({ size, onChange, totalItems, itemsPerPage: itemsPerPageProp, currentPage: currentPageProp, pageSizeOptions, manualPageInput, }: PaginationProps) => React$1.JSX.Element;
|
|
287
285
|
//# sourceMappingURL=Pagination.d.ts.map
|
|
288
286
|
|
|
289
|
-
interface ProgressBarProps {
|
|
290
|
-
label: string;
|
|
291
|
-
helperText?: string;
|
|
292
|
-
size?: 'md' | 'lg';
|
|
293
|
-
status?: 'success' | 'error';
|
|
294
|
-
variant?: 'default' | 'inline' | 'indent';
|
|
295
|
-
value?: number;
|
|
296
|
-
maxValue?: number;
|
|
297
|
-
}
|
|
298
|
-
declare const ProgressBar: ({ label, helperText, size, variant, status, value, maxValue, }: ProgressBarProps) =>
|
|
299
|
-
|
|
300
|
-
interface SingleSection {
|
|
301
|
-
href?: string;
|
|
302
|
-
icon: IconVariant | null;
|
|
303
|
-
name: string;
|
|
304
|
-
key: string;
|
|
305
|
-
isCurrent?: boolean;
|
|
306
|
-
type?: 'regular';
|
|
307
|
-
}
|
|
308
|
-
interface SingleSectionWithItems extends SingleSection {
|
|
309
|
-
isOpen?: boolean;
|
|
310
|
-
items?: SingleSection[];
|
|
311
|
-
}
|
|
312
|
-
type SectionComponent = React.FC<{
|
|
313
|
-
section: SingleSectionWithItems;
|
|
314
|
-
}>;
|
|
315
|
-
interface Section extends SingleSectionWithItems {
|
|
316
|
-
Component?: SectionComponent;
|
|
317
|
-
}
|
|
318
|
-
interface SectionHeading {
|
|
319
|
-
title: string;
|
|
320
|
-
type?: 'heading';
|
|
321
|
-
}
|
|
322
|
-
type SectionGroup = (Section | SectionHeading)[];
|
|
323
|
-
interface SideNavProviderProps {
|
|
324
|
-
children: ReactNode;
|
|
325
|
-
withIcons?: boolean;
|
|
326
|
-
shouldToggleSidebar?: boolean;
|
|
327
|
-
sections: SectionGroup[];
|
|
328
|
-
collapseBreakpoint?: number;
|
|
329
|
-
topDropdownItems: SideNavTopDropdown;
|
|
330
|
-
isOpen?: boolean;
|
|
331
|
-
onChange?: (isOpen: boolean) => void;
|
|
332
|
-
}
|
|
333
|
-
interface SideNavTopDropdown {
|
|
334
|
-
mainItem: SideNavTopDropdownItem;
|
|
335
|
-
otherItems: SideNavTopDropdownItem[];
|
|
336
|
-
actions: SideNavTopDropdownItem[];
|
|
337
|
-
}
|
|
338
|
-
interface SideNavTopDropdownItem extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
339
|
-
id: string;
|
|
340
|
-
title: string;
|
|
341
|
-
icon: IconVariant;
|
|
342
|
-
iconClass?: string;
|
|
343
|
-
url: string;
|
|
344
|
-
rel?: string;
|
|
287
|
+
interface ProgressBarProps {
|
|
288
|
+
label: string;
|
|
289
|
+
helperText?: string;
|
|
290
|
+
size?: 'md' | 'lg';
|
|
291
|
+
status?: 'success' | 'error';
|
|
292
|
+
variant?: 'default' | 'inline' | 'indent';
|
|
293
|
+
value?: number;
|
|
294
|
+
maxValue?: number;
|
|
295
|
+
}
|
|
296
|
+
declare const ProgressBar: ({ label, helperText, size, variant, status, value, maxValue, }: ProgressBarProps) => React$1.JSX.Element;
|
|
297
|
+
|
|
298
|
+
interface SingleSection {
|
|
299
|
+
href?: string;
|
|
300
|
+
icon: IconVariant | null;
|
|
301
|
+
name: string;
|
|
302
|
+
key: string;
|
|
303
|
+
isCurrent?: boolean;
|
|
304
|
+
type?: 'regular';
|
|
305
|
+
}
|
|
306
|
+
interface SingleSectionWithItems extends SingleSection {
|
|
307
|
+
isOpen?: boolean;
|
|
308
|
+
items?: SingleSection[];
|
|
309
|
+
}
|
|
310
|
+
type SectionComponent = React.FC<{
|
|
311
|
+
section: SingleSectionWithItems;
|
|
312
|
+
}>;
|
|
313
|
+
interface Section extends SingleSectionWithItems {
|
|
314
|
+
Component?: SectionComponent;
|
|
315
|
+
}
|
|
316
|
+
interface SectionHeading {
|
|
317
|
+
title: string;
|
|
318
|
+
type?: 'heading';
|
|
345
319
|
}
|
|
320
|
+
type SectionGroup = (Section | SectionHeading)[];
|
|
321
|
+
interface SideNavProviderProps {
|
|
322
|
+
children: ReactNode;
|
|
323
|
+
withIcons?: boolean;
|
|
324
|
+
shouldToggleSidebar?: boolean;
|
|
325
|
+
sections: SectionGroup[];
|
|
326
|
+
collapseBreakpoint?: number;
|
|
327
|
+
topDropdownItems: SideNavTopDropdown;
|
|
328
|
+
isOpen?: boolean;
|
|
329
|
+
onChange?: (isOpen: boolean) => void;
|
|
330
|
+
}
|
|
331
|
+
interface SideNavTopDropdown {
|
|
332
|
+
mainItem: SideNavTopDropdownItem;
|
|
333
|
+
otherItems: SideNavTopDropdownItem[];
|
|
334
|
+
actions: SideNavTopDropdownItem[];
|
|
335
|
+
}
|
|
336
|
+
interface SideNavTopDropdownItem extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
337
|
+
id: string;
|
|
338
|
+
title: string;
|
|
339
|
+
icon: IconVariant;
|
|
340
|
+
iconClass?: string;
|
|
341
|
+
url: string;
|
|
342
|
+
rel?: string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
type SideNavWrapperProps = Omit<SideNavProviderProps, 'children'>;
|
|
346
|
+
declare const SideNavWrapper: ({ withIcons, shouldToggleSidebar, topDropdownItems, sections, collapseBreakpoint, isOpen, onChange, }: SideNavWrapperProps) => React$1.JSX.Element;
|
|
346
347
|
|
|
347
|
-
type
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
children: ReactNode;
|
|
362
|
-
rightIcon?: ReactNode;
|
|
363
|
-
};
|
|
348
|
+
type CommonTabProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
349
|
+
disabled?: boolean;
|
|
350
|
+
value?: number;
|
|
351
|
+
isCurrent?: boolean;
|
|
352
|
+
};
|
|
353
|
+
type IconTab = {
|
|
354
|
+
type: 'icon';
|
|
355
|
+
icon: ReactNode;
|
|
356
|
+
};
|
|
357
|
+
type DefaultTab = {
|
|
358
|
+
type?: 'default';
|
|
359
|
+
children: ReactNode;
|
|
360
|
+
rightIcon?: ReactNode;
|
|
361
|
+
};
|
|
364
362
|
type TabProps = CommonTabProps & (DefaultTab | IconTab);
|
|
365
363
|
|
|
366
|
-
declare const Tab: ({ disabled, value, isCurrent, ...props }: TabProps) =>
|
|
364
|
+
declare const Tab: ({ disabled, value, isCurrent, ...props }: TabProps) => React$1.JSX.Element;
|
|
367
365
|
//# sourceMappingURL=Tab.d.ts.map
|
|
368
366
|
|
|
369
|
-
type TabsVariant = 'line' | 'contained';
|
|
370
|
-
interface TabsContext {
|
|
371
|
-
variant: TabsVariant;
|
|
372
|
-
withDivider: boolean;
|
|
373
|
-
onChange: (idx: number | ((prevIdx: number) => number)) => void;
|
|
374
|
-
currentIndex: number;
|
|
375
|
-
}
|
|
376
|
-
type TabsProviderProps = Omit<Partial<TabsContext>, 'currentIndex'> & {
|
|
377
|
-
children: ReactNode;
|
|
378
|
-
defaultIndex?: number;
|
|
379
|
-
index?: number;
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
type TabsProps = TabsProviderProps;
|
|
383
|
-
declare const Tabs: ({ children, variant, withDivider, defaultIndex, index, onChange, }: TabsProps) =>
|
|
367
|
+
type TabsVariant = 'line' | 'contained';
|
|
368
|
+
interface TabsContext {
|
|
369
|
+
variant: TabsVariant;
|
|
370
|
+
withDivider: boolean;
|
|
371
|
+
onChange: (idx: number | ((prevIdx: number) => number)) => void;
|
|
372
|
+
currentIndex: number;
|
|
373
|
+
}
|
|
374
|
+
type TabsProviderProps = Omit<Partial<TabsContext>, 'currentIndex'> & {
|
|
375
|
+
children: ReactNode;
|
|
376
|
+
defaultIndex?: number;
|
|
377
|
+
index?: number;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
type TabsProps = TabsProviderProps;
|
|
381
|
+
declare const Tabs: ({ children, variant, withDivider, defaultIndex, index, onChange, }: TabsProps) => React$1.JSX.Element;
|
|
384
382
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
385
383
|
|
|
386
|
-
interface TabPanelProps extends
|
|
387
|
-
children: ReactNode;
|
|
388
|
-
value?: number;
|
|
389
|
-
}
|
|
390
|
-
declare const TabPanel: ({ children, value, ...props }: TabPanelProps) =>
|
|
384
|
+
interface TabPanelProps extends React$1.HtmlHTMLAttributes<HTMLDivElement> {
|
|
385
|
+
children: ReactNode;
|
|
386
|
+
value?: number;
|
|
387
|
+
}
|
|
388
|
+
declare const TabPanel: ({ children, value, ...props }: TabPanelProps) => React$1.JSX.Element;
|
|
391
389
|
|
|
392
|
-
interface TabPanelsProps {
|
|
393
|
-
children:
|
|
394
|
-
}
|
|
395
|
-
declare const TabPanels: ({ children }: TabPanelsProps) =>
|
|
390
|
+
interface TabPanelsProps {
|
|
391
|
+
children: React$1.ReactNode;
|
|
392
|
+
}
|
|
393
|
+
declare const TabPanels: ({ children }: TabPanelsProps) => React$1.JSX.Element;
|
|
396
394
|
//# sourceMappingURL=TabPanels.d.ts.map
|
|
397
395
|
|
|
398
|
-
interface TabListProps extends
|
|
399
|
-
ariaLabel: string;
|
|
400
|
-
children: ReactNode;
|
|
401
|
-
}
|
|
402
|
-
declare const TabList: ({ children, className, ariaLabel, ...props }: TabListProps) =>
|
|
396
|
+
interface TabListProps extends React$1.HtmlHTMLAttributes<HTMLDivElement> {
|
|
397
|
+
ariaLabel: string;
|
|
398
|
+
children: ReactNode;
|
|
399
|
+
}
|
|
400
|
+
declare const TabList: ({ children, className, ariaLabel, ...props }: TabListProps) => React$1.JSX.Element;
|
|
403
401
|
//# sourceMappingURL=TabList.d.ts.map
|
|
404
402
|
|
|
405
|
-
type TagSize = 'sm';
|
|
406
|
-
type TagKind = 'primary' | 'secondary' | 'tertiary';
|
|
407
|
-
type TagSentiment = 'info' | 'success' | 'warning' | 'danger' | 'highlight';
|
|
408
|
-
type TagProps = {
|
|
409
|
-
children: React.ReactNode;
|
|
410
|
-
leadingIcon?: IconVariant;
|
|
411
|
-
trailingIcon?: IconVariant;
|
|
412
|
-
size?: TagSize;
|
|
413
|
-
sentiment?: TagSentiment;
|
|
414
|
-
kind?: TagKind;
|
|
403
|
+
type TagSize = 'sm';
|
|
404
|
+
type TagKind = 'primary' | 'secondary' | 'tertiary';
|
|
405
|
+
type TagSentiment = 'info' | 'success' | 'warning' | 'danger' | 'highlight';
|
|
406
|
+
type TagProps = {
|
|
407
|
+
children: React.ReactNode;
|
|
408
|
+
leadingIcon?: IconVariant;
|
|
409
|
+
trailingIcon?: IconVariant;
|
|
410
|
+
size?: TagSize;
|
|
411
|
+
sentiment?: TagSentiment;
|
|
412
|
+
kind?: TagKind;
|
|
415
413
|
};
|
|
416
414
|
|
|
417
|
-
declare const Tag: ({ children, size, sentiment, kind, leadingIcon, trailingIcon, }: TagProps) =>
|
|
415
|
+
declare const Tag: ({ children, size, sentiment, kind, leadingIcon, trailingIcon, }: TagProps) => React$1.JSX.Element;
|
|
418
416
|
//# sourceMappingURL=Tag.d.ts.map
|
|
419
417
|
|
|
420
|
-
type TileProps = {
|
|
421
|
-
disabled?: boolean;
|
|
422
|
-
href?: string;
|
|
423
|
-
target?: 'string';
|
|
424
|
-
onClick?: () => void;
|
|
425
|
-
} &
|
|
426
|
-
declare const Tile: ({ children, className, href, onClick, target, disabled, }: TileProps) =>
|
|
418
|
+
type TileProps = {
|
|
419
|
+
disabled?: boolean;
|
|
420
|
+
href?: string;
|
|
421
|
+
target?: 'string';
|
|
422
|
+
onClick?: () => void;
|
|
423
|
+
} & React$1.HTMLAttributes<HTMLDivElement>;
|
|
424
|
+
declare const Tile: ({ children, className, href, onClick, target, disabled, }: TileProps) => React$1.JSX.Element;
|
|
427
425
|
//# sourceMappingURL=Tile.d.ts.map
|
|
428
426
|
|
|
429
|
-
type Sentiment$1 = 'info' | 'success' | 'warning' | 'danger';
|
|
430
|
-
interface ToastContent extends Omit<LinkProps, 'children'> {
|
|
431
|
-
title?: string;
|
|
432
|
-
message?: string | ReactNode;
|
|
433
|
-
link?: {
|
|
434
|
-
text: string;
|
|
435
|
-
href: string;
|
|
436
|
-
};
|
|
437
|
-
sentiment?: Sentiment$1;
|
|
438
|
-
closable?: boolean;
|
|
427
|
+
type Sentiment$1 = 'info' | 'success' | 'warning' | 'danger';
|
|
428
|
+
interface ToastContent extends Omit<LinkProps, 'children'> {
|
|
429
|
+
title?: string;
|
|
430
|
+
message?: string | ReactNode;
|
|
431
|
+
link?: {
|
|
432
|
+
text: string;
|
|
433
|
+
href: string;
|
|
434
|
+
};
|
|
435
|
+
sentiment?: Sentiment$1;
|
|
436
|
+
closable?: boolean;
|
|
439
437
|
}
|
|
440
438
|
|
|
441
|
-
type ToastProviderProps = {
|
|
442
|
-
children: (state: ToastState<ToastContent>) => any;
|
|
443
|
-
className?: string;
|
|
444
|
-
maxVisibleToasts?: number;
|
|
439
|
+
type ToastProviderProps = {
|
|
440
|
+
children: (state: ToastState<ToastContent>) => any;
|
|
441
|
+
className?: string;
|
|
442
|
+
maxVisibleToasts?: number;
|
|
445
443
|
};
|
|
446
444
|
|
|
447
|
-
declare const ToastProvider: ({ children, ...props }: ToastProviderProps) =>
|
|
445
|
+
declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => React$1.JSX.Element;
|
|
448
446
|
//# sourceMappingURL=ToastProvider.d.ts.map
|
|
449
447
|
|
|
450
|
-
type GlobalToastProviderProps = {
|
|
451
|
-
children: React.ReactNode;
|
|
452
|
-
className?: string;
|
|
453
|
-
toastQueue: ToastQueue;
|
|
454
|
-
};
|
|
455
|
-
interface ToastContextValue {
|
|
456
|
-
addToast: (toast: Omit<ToastContent, 'id'>) => string;
|
|
457
|
-
removeToast: (id: string) => void;
|
|
458
|
-
removeAllToasts: () => void;
|
|
459
|
-
state: ToastState<ToastContent>;
|
|
448
|
+
type GlobalToastProviderProps = {
|
|
449
|
+
children: React.ReactNode;
|
|
450
|
+
className?: string;
|
|
451
|
+
toastQueue: ToastQueue;
|
|
452
|
+
};
|
|
453
|
+
interface ToastContextValue {
|
|
454
|
+
addToast: (toast: Omit<ToastContent, 'id'>) => string;
|
|
455
|
+
removeToast: (id: string) => void;
|
|
456
|
+
removeAllToasts: () => void;
|
|
457
|
+
state: ToastState<ToastContent>;
|
|
460
458
|
}
|
|
461
459
|
|
|
462
|
-
declare const GlobalToastProvider: ({ children, toastQueue, ...props }: GlobalToastProviderProps) =>
|
|
463
|
-
declare const useToast: () => ToastContextValue;
|
|
464
|
-
declare class ToastQueue extends ToastQueue$1<ToastContent> {
|
|
460
|
+
declare const GlobalToastProvider: ({ children, toastQueue, ...props }: GlobalToastProviderProps) => React$1.JSX.Element;
|
|
461
|
+
declare const useToast: () => ToastContextValue;
|
|
462
|
+
declare class ToastQueue extends ToastQueue$1<ToastContent> {
|
|
465
463
|
}
|
|
466
464
|
|
|
467
|
-
type ToggleProps = {
|
|
468
|
-
checked?: boolean;
|
|
469
|
-
defaultChecked?: boolean;
|
|
470
|
-
onChange?: (value: boolean, event?:
|
|
471
|
-
disabled?: boolean;
|
|
472
|
-
name?: string;
|
|
473
|
-
valueDescription?: string;
|
|
474
|
-
valueDescriptionPosition?: 'left' | 'right';
|
|
475
|
-
className?: string;
|
|
476
|
-
id?: string;
|
|
477
|
-
'aria-label'?: string;
|
|
478
|
-
};
|
|
479
|
-
declare const Toggle: ({ defaultChecked, checked, onChange, disabled, valueDescription, valueDescriptionPosition, className, name, id, ...props }: ToggleProps) =>
|
|
465
|
+
type ToggleProps = {
|
|
466
|
+
checked?: boolean;
|
|
467
|
+
defaultChecked?: boolean;
|
|
468
|
+
onChange?: (value: boolean, event?: React$1.ChangeEvent<HTMLInputElement> | React$1.KeyboardEvent<HTMLInputElement>) => void;
|
|
469
|
+
disabled?: boolean;
|
|
470
|
+
name?: string;
|
|
471
|
+
valueDescription?: string;
|
|
472
|
+
valueDescriptionPosition?: 'left' | 'right';
|
|
473
|
+
className?: string;
|
|
474
|
+
id?: string;
|
|
475
|
+
'aria-label'?: string;
|
|
476
|
+
};
|
|
477
|
+
declare const Toggle: ({ defaultChecked, checked, onChange, disabled, valueDescription, valueDescriptionPosition, className, name, id, ...props }: ToggleProps) => React$1.JSX.Element;
|
|
480
478
|
|
|
481
479
|
type ArrowPosition = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom' | 'right' | 'right-top' | 'right-bottom';
|
|
482
480
|
|
|
483
|
-
type TooltipProps = {
|
|
484
|
-
children:
|
|
485
|
-
size?: 'regular' | 'small';
|
|
486
|
-
arrowPosition?: ArrowPosition;
|
|
487
|
-
maxWidth?: number | 'none';
|
|
488
|
-
};
|
|
481
|
+
type TooltipProps = {
|
|
482
|
+
children: React$1.ReactNode;
|
|
483
|
+
size?: 'regular' | 'small';
|
|
484
|
+
arrowPosition?: ArrowPosition;
|
|
485
|
+
maxWidth?: number | 'none';
|
|
486
|
+
};
|
|
489
487
|
declare const Tooltip: FC<TooltipProps>;
|
|
490
488
|
|
|
491
|
-
type TooltipTriggerProps = {
|
|
492
|
-
children:
|
|
493
|
-
isVisible?: boolean;
|
|
494
|
-
onVisibilityUpdate?: (isVisible: boolean) => void;
|
|
495
|
-
renderContent: () =>
|
|
496
|
-
floatingElementOffset?: number;
|
|
497
|
-
} & Pick<OverlayTriggerProps, 'placement' | 'interactions' | 'usePortal' | 'autoHideMs' | 'className'> & Pick<TooltipProps, 'size' | 'maxWidth'>;
|
|
489
|
+
type TooltipTriggerProps = {
|
|
490
|
+
children: React$1.ReactNode;
|
|
491
|
+
isVisible?: boolean;
|
|
492
|
+
onVisibilityUpdate?: (isVisible: boolean) => void;
|
|
493
|
+
renderContent: () => React$1.ReactNode;
|
|
494
|
+
floatingElementOffset?: number;
|
|
495
|
+
} & Pick<OverlayTriggerProps, 'placement' | 'interactions' | 'usePortal' | 'autoHideMs' | 'className'> & Pick<TooltipProps, 'size' | 'maxWidth'>;
|
|
498
496
|
declare const TooltipTrigger: FC<TooltipTriggerProps>;
|
|
499
497
|
|
|
500
|
-
type TopBarProps = {
|
|
501
|
-
actions:
|
|
502
|
-
children?:
|
|
503
|
-
sideNavIsClosed?: boolean;
|
|
504
|
-
openSideNav?: () => void;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
declare const TopBar: ({ children, actions, sideNavIsClosed, openSideNav, }: TopBarProps) =>
|
|
508
|
-
|
|
509
|
-
type BaseTypographyProps = {
|
|
510
|
-
className?: string;
|
|
511
|
-
children: ReactNode;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
type BodyProps = BaseTypographyProps & {
|
|
515
|
-
as?: ElementType;
|
|
516
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
517
|
-
compact?: boolean;
|
|
518
|
-
};
|
|
519
|
-
declare const Body: ({ as, children, compact, size, className, ...rest }: BodyProps) =>
|
|
520
|
-
|
|
521
|
-
type HeadingProps = BaseTypographyProps & {
|
|
522
|
-
size?: 'sm' | 'md' | 'lg';
|
|
523
|
-
};
|
|
524
|
-
declare const Heading: ({ children, size, className, ...rest }: HeadingProps) =>
|
|
525
|
-
|
|
526
|
-
type DisplayProps = BaseTypographyProps & {
|
|
527
|
-
as?: ElementType;
|
|
528
|
-
size?: 'sm' | 'md' | 'lg';
|
|
529
|
-
};
|
|
530
|
-
declare const Display: ({ as, children, size, className, ...rest }: DisplayProps) =>
|
|
531
|
-
|
|
532
|
-
type CodeProps = BaseTypographyProps & {
|
|
533
|
-
as?: ElementType;
|
|
534
|
-
};
|
|
535
|
-
declare const Code: ({ as, children, className, ...rest }: CodeProps) =>
|
|
536
|
-
|
|
537
|
-
type LabelProps = BaseTypographyProps & {
|
|
538
|
-
as?: ElementType;
|
|
539
|
-
size?: 'xs' | 'sm';
|
|
540
|
-
};
|
|
541
|
-
declare const Label: ({ as, children, size, className, ...rest }: LabelProps) =>
|
|
542
|
-
|
|
543
|
-
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
544
|
-
indeterminate?: boolean;
|
|
545
|
-
error?: boolean;
|
|
546
|
-
label?: string;
|
|
547
|
-
value?: string;
|
|
548
|
-
disabled?: boolean;
|
|
549
|
-
onChange?: (selected: boolean) => void;
|
|
498
|
+
type TopBarProps = {
|
|
499
|
+
actions: React$1.ReactNode;
|
|
500
|
+
children?: React$1.ReactNode;
|
|
501
|
+
sideNavIsClosed?: boolean;
|
|
502
|
+
openSideNav?: () => void;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
declare const TopBar: ({ children, actions, sideNavIsClosed, openSideNav, }: TopBarProps) => React$1.JSX.Element;
|
|
506
|
+
|
|
507
|
+
type BaseTypographyProps = {
|
|
508
|
+
className?: string;
|
|
509
|
+
children: ReactNode;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
type BodyProps = BaseTypographyProps & {
|
|
513
|
+
as?: ElementType;
|
|
514
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
515
|
+
compact?: boolean;
|
|
516
|
+
};
|
|
517
|
+
declare const Body: ({ as, children, compact, size, className, ...rest }: BodyProps) => React$1.JSX.Element;
|
|
518
|
+
|
|
519
|
+
type HeadingProps = BaseTypographyProps & {
|
|
520
|
+
size?: 'sm' | 'md' | 'lg';
|
|
521
|
+
};
|
|
522
|
+
declare const Heading: ({ children, size, className, ...rest }: HeadingProps) => React$1.JSX.Element;
|
|
523
|
+
|
|
524
|
+
type DisplayProps = BaseTypographyProps & {
|
|
525
|
+
as?: ElementType;
|
|
526
|
+
size?: 'sm' | 'md' | 'lg';
|
|
527
|
+
};
|
|
528
|
+
declare const Display: ({ as, children, size, className, ...rest }: DisplayProps) => React$1.JSX.Element;
|
|
529
|
+
|
|
530
|
+
type CodeProps = BaseTypographyProps & {
|
|
531
|
+
as?: ElementType;
|
|
532
|
+
};
|
|
533
|
+
declare const Code: ({ as, children, className, ...rest }: CodeProps) => React$1.JSX.Element;
|
|
534
|
+
|
|
535
|
+
type LabelProps = BaseTypographyProps & {
|
|
536
|
+
as?: ElementType;
|
|
537
|
+
size?: 'xs' | 'sm';
|
|
538
|
+
};
|
|
539
|
+
declare const Label: ({ as, children, size, className, ...rest }: LabelProps) => React$1.JSX.Element;
|
|
540
|
+
|
|
541
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
542
|
+
indeterminate?: boolean;
|
|
543
|
+
error?: boolean;
|
|
544
|
+
label?: string;
|
|
545
|
+
value?: string;
|
|
546
|
+
disabled?: boolean;
|
|
547
|
+
onChange?: (selected: boolean) => void;
|
|
550
548
|
}
|
|
551
549
|
|
|
552
|
-
declare const Checkbox: ({ label, error, className, indeterminate, value, disabled, readOnly, defaultChecked, checked, ...props }: CheckboxProps) =>
|
|
550
|
+
declare const Checkbox: ({ label, error, className, indeterminate, value, disabled, readOnly, defaultChecked, checked, ...props }: CheckboxProps) => React$1.JSX.Element;
|
|
553
551
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
554
552
|
|
|
555
|
-
interface CheckboxGroupProps extends Pick<AriaCheckboxGroupProps, 'aria-describedby' | 'aria-details' | 'aria-errormessage' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onChange' | 'onFocusChange' | 'value' | 'defaultValue' | 'label'> {
|
|
556
|
-
children: ReactNode;
|
|
557
|
-
className?: string;
|
|
558
|
-
disabled?: boolean;
|
|
559
|
-
errorMessage?: string;
|
|
560
|
-
helperText?: string;
|
|
561
|
-
name: string;
|
|
562
|
-
}
|
|
563
|
-
declare const CheckboxGroup: ({ helperText, className, errorMessage, children, disabled, label, defaultValue, name, ...props }: CheckboxGroupProps) =>
|
|
564
|
-
|
|
565
|
-
interface RadioProps extends
|
|
566
|
-
label: string;
|
|
567
|
-
indent?: boolean;
|
|
568
|
-
disabled?: boolean;
|
|
569
|
-
invalid?: boolean;
|
|
570
|
-
}
|
|
571
|
-
declare const Radio: ({ indent, disabled, invalid, label, ...props }: RadioProps) =>
|
|
553
|
+
interface CheckboxGroupProps extends Pick<AriaCheckboxGroupProps, 'aria-describedby' | 'aria-details' | 'aria-errormessage' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onChange' | 'onFocusChange' | 'value' | 'defaultValue' | 'label'> {
|
|
554
|
+
children: ReactNode;
|
|
555
|
+
className?: string;
|
|
556
|
+
disabled?: boolean;
|
|
557
|
+
errorMessage?: string;
|
|
558
|
+
helperText?: string;
|
|
559
|
+
name: string;
|
|
560
|
+
}
|
|
561
|
+
declare const CheckboxGroup: ({ helperText, className, errorMessage, children, disabled, label, defaultValue, name, ...props }: CheckboxGroupProps) => React$1.JSX.Element;
|
|
562
|
+
|
|
563
|
+
interface RadioProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
564
|
+
label: string;
|
|
565
|
+
indent?: boolean;
|
|
566
|
+
disabled?: boolean;
|
|
567
|
+
invalid?: boolean;
|
|
568
|
+
}
|
|
569
|
+
declare const Radio: ({ indent, disabled, invalid, label, ...props }: RadioProps) => React$1.JSX.Element;
|
|
572
570
|
//# sourceMappingURL=Radio.d.ts.map
|
|
573
571
|
|
|
574
|
-
type RadioGroupProps = Pick<AriaRadioGroupProps, 'aria-describedby' | 'aria-details' | 'aria-errormessage' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onChange' | 'onFocusChange' | 'value' | 'defaultValue'> & {
|
|
575
|
-
label?: string;
|
|
576
|
-
name: string;
|
|
577
|
-
errorMessage?: string;
|
|
578
|
-
helperText?: string;
|
|
579
|
-
children:
|
|
580
|
-
disabled?: boolean;
|
|
581
|
-
invalid?: boolean;
|
|
582
|
-
defaultValue?: string;
|
|
583
|
-
};
|
|
584
|
-
declare const RadioGroup: ({ children, label, errorMessage, helperText, disabled, invalid, name, defaultValue, ...props }: RadioGroupProps) =>
|
|
572
|
+
type RadioGroupProps = Pick<AriaRadioGroupProps, 'aria-describedby' | 'aria-details' | 'aria-errormessage' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onChange' | 'onFocusChange' | 'value' | 'defaultValue'> & {
|
|
573
|
+
label?: string;
|
|
574
|
+
name: string;
|
|
575
|
+
errorMessage?: string;
|
|
576
|
+
helperText?: string;
|
|
577
|
+
children: React$1.ReactNode;
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
invalid?: boolean;
|
|
580
|
+
defaultValue?: string;
|
|
581
|
+
};
|
|
582
|
+
declare const RadioGroup: ({ children, label, errorMessage, helperText, disabled, invalid, name, defaultValue, ...props }: RadioGroupProps) => React$1.JSX.Element;
|
|
585
583
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
586
584
|
|
|
587
|
-
interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'autoCapitalize' | 'onChange'> {
|
|
588
|
-
label?: string;
|
|
589
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
590
|
-
fullWidth?: boolean;
|
|
591
|
-
disabled?: boolean;
|
|
592
|
-
invalid?: boolean;
|
|
593
|
-
readOnly?: boolean;
|
|
594
|
-
helperText?: string;
|
|
595
|
-
errorMessage?: string;
|
|
596
|
-
leadingElement?: ReactNode;
|
|
597
|
-
trailingElement?: ReactNode;
|
|
598
|
-
onChange: (value: string) => void;
|
|
599
|
-
showErrorMessage?: boolean;
|
|
600
|
-
}
|
|
601
|
-
declare const TextInput:
|
|
585
|
+
interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'autoCapitalize' | 'onChange'> {
|
|
586
|
+
label?: string;
|
|
587
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
588
|
+
fullWidth?: boolean;
|
|
589
|
+
disabled?: boolean;
|
|
590
|
+
invalid?: boolean;
|
|
591
|
+
readOnly?: boolean;
|
|
592
|
+
helperText?: string;
|
|
593
|
+
errorMessage?: string;
|
|
594
|
+
leadingElement?: ReactNode;
|
|
595
|
+
trailingElement?: ReactNode;
|
|
596
|
+
onChange: (value: string) => void;
|
|
597
|
+
showErrorMessage?: boolean;
|
|
598
|
+
}
|
|
599
|
+
declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<unknown>>;
|
|
602
600
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
603
601
|
|
|
604
|
-
type Option = {
|
|
605
|
-
value: string;
|
|
606
|
-
label: string;
|
|
607
|
-
};
|
|
608
|
-
interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
609
|
-
label?: string;
|
|
610
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
611
|
-
disabled?: boolean;
|
|
612
|
-
inline?: boolean;
|
|
613
|
-
helperText?: string;
|
|
614
|
-
errorMessage?: string;
|
|
615
|
-
options: Option[];
|
|
602
|
+
type Option = {
|
|
603
|
+
value: string;
|
|
604
|
+
label: string;
|
|
605
|
+
};
|
|
606
|
+
interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
607
|
+
label?: string;
|
|
608
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
609
|
+
disabled?: boolean;
|
|
610
|
+
inline?: boolean;
|
|
611
|
+
helperText?: string;
|
|
612
|
+
errorMessage?: string;
|
|
613
|
+
options: Option[];
|
|
616
614
|
}
|
|
617
615
|
|
|
618
|
-
declare const Select: ({ options, label, size, inline, disabled, helperText, errorMessage, ...props }: SelectProps) =>
|
|
616
|
+
declare const Select: ({ options, label, size, inline, disabled, helperText, errorMessage, ...props }: SelectProps) => React$1.JSX.Element;
|
|
619
617
|
//# sourceMappingURL=Select.d.ts.map
|
|
620
618
|
|
|
621
|
-
type FormErrorMessageProps =
|
|
622
|
-
declare const FormErrorMessage: ({ children, className, ...props }: FormErrorMessageProps) =>
|
|
619
|
+
type FormErrorMessageProps = React$1.HtmlHTMLAttributes<HTMLDivElement>;
|
|
620
|
+
declare const FormErrorMessage: ({ children, className, ...props }: FormErrorMessageProps) => React$1.JSX.Element;
|
|
623
621
|
//# sourceMappingURL=FormErrorMessage.d.ts.map
|
|
624
622
|
|
|
625
|
-
declare const FormHelperText: ({ children, className, ...props }:
|
|
623
|
+
declare const FormHelperText: ({ children, className, ...props }: React$1.HtmlHTMLAttributes<HTMLDivElement>) => React$1.JSX.Element;
|
|
626
624
|
//# sourceMappingURL=FormHelperText.d.ts.map
|
|
627
625
|
|
|
628
|
-
type ChipProps = AriaToggleButtonProps & {
|
|
629
|
-
label: string;
|
|
630
|
-
title?: string;
|
|
631
|
-
onDismiss?: () => void;
|
|
632
|
-
dismissLabel?: string;
|
|
633
|
-
leadingIcon?: IconVariant;
|
|
634
|
-
trailingIcon?: IconVariant;
|
|
626
|
+
type ChipProps = AriaToggleButtonProps & {
|
|
627
|
+
label: string;
|
|
628
|
+
title?: string;
|
|
629
|
+
onDismiss?: () => void;
|
|
630
|
+
dismissLabel?: string;
|
|
631
|
+
leadingIcon?: IconVariant;
|
|
632
|
+
trailingIcon?: IconVariant;
|
|
635
633
|
};
|
|
636
634
|
|
|
637
|
-
declare const Chip: ({ label, onDismiss, dismissLabel, leadingIcon, trailingIcon, title, ...props }: ChipProps) =>
|
|
635
|
+
declare const Chip: ({ label, onDismiss, dismissLabel, leadingIcon, trailingIcon, title, ...props }: ChipProps) => React$1.JSX.Element;
|
|
638
636
|
//# sourceMappingURL=Chip.d.ts.map
|
|
639
637
|
|
|
640
|
-
type FlexBasisValue = 'auto' | '1/2' | '1/3' | '2/3' | '1/4' | '2/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5' | '1/6' | '2/6' | '3/6' | '4/6' | '5/6' | '1/12' | '2/12' | '3/12' | '4/12' | '5/12' | '6/12' | '7/12' | '8/12' | '9/12' | '10/12' | '11/12' | 'full';
|
|
641
|
-
type GapValue = 0 | 'px' | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
642
|
-
type FlexProps = {
|
|
643
|
-
children?: React.ReactNode;
|
|
644
|
-
flexDirection?: 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
645
|
-
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
646
|
-
alignItems?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
647
|
-
justifyContent?: 'normal' | 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
648
|
-
basis?: FlexBasisValue;
|
|
649
|
-
flex?: 'initial' | 'none' | 'auto' | 1;
|
|
650
|
-
grow?: boolean;
|
|
651
|
-
shrink?: boolean;
|
|
652
|
-
gap?: GapValue;
|
|
653
|
-
gapX?: GapValue;
|
|
654
|
-
gapY?: GapValue;
|
|
655
|
-
className?: string;
|
|
638
|
+
type FlexBasisValue = 'auto' | '1/2' | '1/3' | '2/3' | '1/4' | '2/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5' | '1/6' | '2/6' | '3/6' | '4/6' | '5/6' | '1/12' | '2/12' | '3/12' | '4/12' | '5/12' | '6/12' | '7/12' | '8/12' | '9/12' | '10/12' | '11/12' | 'full';
|
|
639
|
+
type GapValue = 0 | 'px' | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
640
|
+
type FlexProps = {
|
|
641
|
+
children?: React.ReactNode;
|
|
642
|
+
flexDirection?: 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
643
|
+
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
644
|
+
alignItems?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
645
|
+
justifyContent?: 'normal' | 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
646
|
+
basis?: FlexBasisValue;
|
|
647
|
+
flex?: 'initial' | 'none' | 'auto' | 1;
|
|
648
|
+
grow?: boolean;
|
|
649
|
+
shrink?: boolean;
|
|
650
|
+
gap?: GapValue;
|
|
651
|
+
gapX?: GapValue;
|
|
652
|
+
gapY?: GapValue;
|
|
653
|
+
className?: string;
|
|
656
654
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
657
655
|
|
|
658
|
-
declare const Flex: ({ basis, flex, flexDirection, wrap, grow, shrink, gap, gapX, gapY, className, children, alignItems, justifyContent, ...props }: FlexProps) =>
|
|
656
|
+
declare const Flex: ({ basis, flex, flexDirection, wrap, grow, shrink, gap, gapX, gapY, className, children, alignItems, justifyContent, ...props }: FlexProps) => React$1.JSX.Element;
|
|
659
657
|
//# sourceMappingURL=Flex.d.ts.map
|
|
660
658
|
|
|
661
|
-
type TemplateColRowValues = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'none' | 'subgrid';
|
|
662
|
-
type GridColVariant = TemplateColRowValues;
|
|
663
|
-
type GridRowVariant = TemplateColRowValues;
|
|
664
|
-
type AutoColRowVariant = 'auto' | 'min' | 'max' | 'fr';
|
|
665
|
-
type GridColRowStartEndSizes = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
|
|
666
|
-
type GridColumnRowVariant = 'auto' | 'full' | GridColRowStartEndSizes;
|
|
667
|
-
type GridColumnRowStartEndVariant = 'auto' | GridColRowStartEndSizes;
|
|
668
|
-
type GapSize = 0 | 'px' | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
669
|
-
type GapVariant = GapSize;
|
|
670
|
-
type BaseContentValues = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
671
|
-
type JustifyContentVariant = BaseContentValues | 'normal';
|
|
672
|
-
type BaseItemsValues = 'start' | 'end' | 'center' | 'stretch';
|
|
673
|
-
type AlignItemsVariant = BaseItemsValues | 'baseline';
|
|
674
|
-
type GridProps = {
|
|
675
|
-
children: ReactNode;
|
|
676
|
-
inline?: boolean;
|
|
677
|
-
templateColumns?: GridColVariant;
|
|
678
|
-
templateRows?: GridRowVariant;
|
|
679
|
-
column?: GridColumnRowVariant;
|
|
680
|
-
columnStart?: GridColumnRowStartEndVariant;
|
|
681
|
-
columnEnd?: GridColumnRowStartEndVariant;
|
|
682
|
-
row?: GridColumnRowVariant;
|
|
683
|
-
rowStart?: GridColumnRowStartEndVariant;
|
|
684
|
-
rowEnd?: GridColumnRowStartEndVariant;
|
|
685
|
-
autoColumns?: AutoColRowVariant;
|
|
686
|
-
autoRows?: AutoColRowVariant;
|
|
687
|
-
gap?: GapVariant;
|
|
688
|
-
gapX?: GapVariant;
|
|
689
|
-
gapY?: GapVariant;
|
|
690
|
-
justifyContent?: JustifyContentVariant;
|
|
691
|
-
alignItems?: AlignItemsVariant;
|
|
692
|
-
} & React.HTMLAttributes<HTMLDivElement>;
|
|
659
|
+
type TemplateColRowValues = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'none' | 'subgrid';
|
|
660
|
+
type GridColVariant = TemplateColRowValues;
|
|
661
|
+
type GridRowVariant = TemplateColRowValues;
|
|
662
|
+
type AutoColRowVariant = 'auto' | 'min' | 'max' | 'fr';
|
|
663
|
+
type GridColRowStartEndSizes = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
|
|
664
|
+
type GridColumnRowVariant = 'auto' | 'full' | GridColRowStartEndSizes;
|
|
665
|
+
type GridColumnRowStartEndVariant = 'auto' | GridColRowStartEndSizes;
|
|
666
|
+
type GapSize = 0 | 'px' | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
667
|
+
type GapVariant = GapSize;
|
|
668
|
+
type BaseContentValues = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
669
|
+
type JustifyContentVariant = BaseContentValues | 'normal';
|
|
670
|
+
type BaseItemsValues = 'start' | 'end' | 'center' | 'stretch';
|
|
671
|
+
type AlignItemsVariant = BaseItemsValues | 'baseline';
|
|
672
|
+
type GridProps = {
|
|
673
|
+
children: ReactNode;
|
|
674
|
+
inline?: boolean;
|
|
675
|
+
templateColumns?: GridColVariant;
|
|
676
|
+
templateRows?: GridRowVariant;
|
|
677
|
+
column?: GridColumnRowVariant;
|
|
678
|
+
columnStart?: GridColumnRowStartEndVariant;
|
|
679
|
+
columnEnd?: GridColumnRowStartEndVariant;
|
|
680
|
+
row?: GridColumnRowVariant;
|
|
681
|
+
rowStart?: GridColumnRowStartEndVariant;
|
|
682
|
+
rowEnd?: GridColumnRowStartEndVariant;
|
|
683
|
+
autoColumns?: AutoColRowVariant;
|
|
684
|
+
autoRows?: AutoColRowVariant;
|
|
685
|
+
gap?: GapVariant;
|
|
686
|
+
gapX?: GapVariant;
|
|
687
|
+
gapY?: GapVariant;
|
|
688
|
+
justifyContent?: JustifyContentVariant;
|
|
689
|
+
alignItems?: AlignItemsVariant;
|
|
690
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
693
691
|
//# sourceMappingURL=types.d.ts.map
|
|
694
692
|
|
|
695
|
-
declare const Grid: ({ children, templateColumns, templateRows, autoColumns, autoRows, inline, column, columnStart, columnEnd, row, rowStart, rowEnd, gap, gapX, gapY, className, justifyContent, alignItems, ...props }: GridProps) =>
|
|
693
|
+
declare const Grid: ({ children, templateColumns, templateRows, autoColumns, autoRows, inline, column, columnStart, columnEnd, row, rowStart, rowEnd, gap, gapX, gapY, className, justifyContent, alignItems, ...props }: GridProps) => React$1.JSX.Element;
|
|
696
694
|
//# sourceMappingURL=Grid.d.ts.map
|
|
697
695
|
|
|
698
|
-
type Sentiment = 'success' | 'danger';
|
|
699
|
-
type AuthLayoutProps = {
|
|
700
|
-
children: React.ReactNode;
|
|
701
|
-
heading: string;
|
|
702
|
-
description?: string | React.ReactNode;
|
|
703
|
-
sentiment?: Sentiment;
|
|
704
|
-
leadingElement?: React.ReactNode;
|
|
705
|
-
alert?: AlertProps;
|
|
706
|
-
footer?: React.ReactNode;
|
|
696
|
+
type Sentiment = 'success' | 'danger';
|
|
697
|
+
type AuthLayoutProps = {
|
|
698
|
+
children: React.ReactNode;
|
|
699
|
+
heading: string;
|
|
700
|
+
description?: string | React.ReactNode;
|
|
701
|
+
sentiment?: Sentiment;
|
|
702
|
+
leadingElement?: React.ReactNode;
|
|
703
|
+
alert?: AlertProps;
|
|
704
|
+
footer?: React.ReactNode;
|
|
707
705
|
};
|
|
708
706
|
|
|
709
|
-
declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, footer, }: AuthLayoutProps) =>
|
|
707
|
+
declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, footer, }: AuthLayoutProps) => React$1.JSX.Element;
|
|
710
708
|
//# sourceMappingURL=AuthLayout.d.ts.map
|
|
711
709
|
|
|
712
|
-
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Checkbox, CheckboxGroup, Chip, Code, DataTable, Display, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton,
|
|
710
|
+
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Checkbox, CheckboxGroup, Chip, Code, DataTable, Display, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, LoadingSpinner, Menu, MenuButton, MenuList, OverlayTrigger, Pagination, ProgressBar, Radio, RadioGroup, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
711
|
+
export type { Interactions, OverlayAriaRole, Placement };
|