@superdispatch/ui 0.21.8 → 0.21.14
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-node/index.js +62 -14
- package/dist-node/index.js.map +1 -1
- package/dist-src/index.js +1 -0
- package/dist-src/info-tooltip/InfoTooltip.js +54 -0
- package/dist-types/index.d.ts +378 -366
- package/dist-web/index.js +64 -17
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps as ButtonProps$1, ToolbarProps, AvatarClassKey, AvatarTypeMap, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormControlProps, FormGroupProps, FormLabelProps, FormHelperTextProps, TypographyProps, TooltipProps, ListProps, ListTypeMap, MenuListProps, ButtonGroupProps, GridProps, CardClassKey, CardProps, CardContentProps, StandardTextFieldProps, InputProps, RadioProps, RadioGroupProps, SnackbarContentProps as SnackbarContentProps$1, SnackbarContentClassKey as SnackbarContentClassKey$1, SnackbarProps as SnackbarProps$1, Theme } from '@material-ui/core';
|
|
2
|
+
import { ButtonProps as ButtonProps$1, ToolbarProps, AvatarClassKey, AvatarTypeMap, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormControlProps, FormGroupProps, FormLabelProps, FormHelperTextProps, TypographyProps, TooltipProps, ListProps, ListTypeMap, MenuListProps, ButtonGroupProps, GridProps, CardClassKey, CardProps, CardContentProps, IconButtonProps, StandardTextFieldProps, InputProps, RadioProps, RadioGroupProps, SnackbarContentProps as SnackbarContentProps$1, SnackbarContentClassKey as SnackbarContentClassKey$1, SnackbarProps as SnackbarProps$1, Theme } from '@material-ui/core';
|
|
3
3
|
import { RefAttributes, ForwardRefExoticComponent, Key, ReactNode, MouseEvent, ReactElement, EventHandler, ButtonHTMLAttributes, Ref, ElementType, HTMLAttributes, InputHTMLAttributes, ConsumerProps } from 'react';
|
|
4
4
|
import { ClassNameMap } from '@material-ui/styles';
|
|
5
5
|
import { Property } from 'csstype';
|
|
@@ -7,435 +7,447 @@ import { CommonProps } from '@material-ui/core/OverridableComponent';
|
|
|
7
7
|
import { NumberFormatProps } from 'react-number-format';
|
|
8
8
|
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints';
|
|
9
9
|
|
|
10
|
-
interface ButtonProps extends RefAttributes<HTMLButtonElement>, Omit<ButtonProps$1, 'color'> {
|
|
11
|
-
rel?: string;
|
|
12
|
-
target?: string;
|
|
13
|
-
isActive?: boolean;
|
|
14
|
-
isLoading?: boolean;
|
|
15
|
-
color?: 'primary' | 'error' | 'success' | 'white';
|
|
16
|
-
}
|
|
10
|
+
interface ButtonProps extends RefAttributes<HTMLButtonElement>, Omit<ButtonProps$1, 'color'> {
|
|
11
|
+
rel?: string;
|
|
12
|
+
target?: string;
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
color?: 'primary' | 'error' | 'success' | 'white';
|
|
16
|
+
}
|
|
17
17
|
declare const Button: ForwardRefExoticComponent<ButtonProps>;
|
|
18
18
|
|
|
19
|
-
interface AdaptiveToolbarDropdownItem {
|
|
20
|
-
key: Key;
|
|
21
|
-
label: ReactNode;
|
|
22
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
23
|
-
}
|
|
24
|
-
interface AdaptiveToolbarItem {
|
|
25
|
-
key: Key;
|
|
26
|
-
groupKey?: Key;
|
|
27
|
-
label: ReactNode;
|
|
28
|
-
dropdown?: AdaptiveToolbarDropdownItem[];
|
|
29
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
30
|
-
ButtonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
|
|
31
|
-
}
|
|
32
|
-
interface AdaptiveToolbarProps extends RefAttributes<HTMLDivElement>, Omit<ToolbarProps, 'children'> {
|
|
33
|
-
items: AdaptiveToolbarItem[];
|
|
34
|
-
}
|
|
19
|
+
interface AdaptiveToolbarDropdownItem {
|
|
20
|
+
key: Key;
|
|
21
|
+
label: ReactNode;
|
|
22
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
23
|
+
}
|
|
24
|
+
interface AdaptiveToolbarItem {
|
|
25
|
+
key: Key;
|
|
26
|
+
groupKey?: Key;
|
|
27
|
+
label: ReactNode;
|
|
28
|
+
dropdown?: AdaptiveToolbarDropdownItem[];
|
|
29
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
30
|
+
ButtonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
|
|
31
|
+
}
|
|
32
|
+
interface AdaptiveToolbarProps extends RefAttributes<HTMLDivElement>, Omit<ToolbarProps, 'children'> {
|
|
33
|
+
items: AdaptiveToolbarItem[];
|
|
34
|
+
}
|
|
35
35
|
declare const AdaptiveToolbar: ForwardRefExoticComponent<AdaptiveToolbarProps>;
|
|
36
36
|
|
|
37
|
-
interface AdaptiveVerticalToolbarItem {
|
|
38
|
-
key: Key;
|
|
39
|
-
label: ReactNode;
|
|
40
|
-
menuGroupKey?: Key;
|
|
41
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
42
|
-
}
|
|
43
|
-
interface AdaptiveVerticalToolbarProps extends RefAttributes<HTMLDivElement> {
|
|
44
|
-
disableGutters?: boolean;
|
|
45
|
-
items: AdaptiveVerticalToolbarItem[];
|
|
46
|
-
renderItem?: (item: AdaptiveVerticalToolbarItem) => ReactNode;
|
|
47
|
-
renderMenuItem?: (item: AdaptiveVerticalToolbarItem) => ReactNode;
|
|
48
|
-
moreElement?: ReactElement<{
|
|
49
|
-
onClick: EventHandler<MouseEvent<HTMLElement>>;
|
|
50
|
-
}>;
|
|
51
|
-
}
|
|
37
|
+
interface AdaptiveVerticalToolbarItem {
|
|
38
|
+
key: Key;
|
|
39
|
+
label: ReactNode;
|
|
40
|
+
menuGroupKey?: Key;
|
|
41
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
42
|
+
}
|
|
43
|
+
interface AdaptiveVerticalToolbarProps extends RefAttributes<HTMLDivElement> {
|
|
44
|
+
disableGutters?: boolean;
|
|
45
|
+
items: AdaptiveVerticalToolbarItem[];
|
|
46
|
+
renderItem?: (item: AdaptiveVerticalToolbarItem) => ReactNode;
|
|
47
|
+
renderMenuItem?: (item: AdaptiveVerticalToolbarItem) => ReactNode;
|
|
48
|
+
moreElement?: ReactElement<{
|
|
49
|
+
onClick: EventHandler<MouseEvent<HTMLElement>>;
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
52
|
declare const AdaptiveVerticalToolbar: ForwardRefExoticComponent<AdaptiveVerticalToolbarProps>;
|
|
53
53
|
|
|
54
|
-
declare type AvatarButtonClassKey = 'button' | 'overlay' | 'progress' | 'withIcon' | 'sizeLarge' | Exclude<AvatarClassKey, 'circle'>;
|
|
55
|
-
interface AvatarButtonProps extends RefAttributes<HTMLButtonElement>, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
56
|
-
size?: 'small' | 'large';
|
|
57
|
-
icon?: ReactNode;
|
|
58
|
-
isLoading?: boolean;
|
|
59
|
-
avatarRef?: Ref<HTMLDivElement>;
|
|
60
|
-
classes?: Partial<ClassNameMap<AvatarButtonClassKey>>;
|
|
61
|
-
variant?: AvatarTypeMap['props']['variant'];
|
|
62
|
-
alt?: AvatarTypeMap['props']['alt'];
|
|
63
|
-
src?: AvatarTypeMap['props']['src'];
|
|
64
|
-
sizes?: AvatarTypeMap['props']['sizes'];
|
|
65
|
-
srcSet?: AvatarTypeMap['props']['srcSet'];
|
|
66
|
-
imgProps?: AvatarTypeMap['props']['imgProps'];
|
|
67
|
-
}
|
|
54
|
+
declare type AvatarButtonClassKey = 'button' | 'overlay' | 'progress' | 'withIcon' | 'sizeLarge' | Exclude<AvatarClassKey, 'circle'>;
|
|
55
|
+
interface AvatarButtonProps extends RefAttributes<HTMLButtonElement>, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
56
|
+
size?: 'small' | 'large';
|
|
57
|
+
icon?: ReactNode;
|
|
58
|
+
isLoading?: boolean;
|
|
59
|
+
avatarRef?: Ref<HTMLDivElement>;
|
|
60
|
+
classes?: Partial<ClassNameMap<AvatarButtonClassKey>>;
|
|
61
|
+
variant?: AvatarTypeMap['props']['variant'];
|
|
62
|
+
alt?: AvatarTypeMap['props']['alt'];
|
|
63
|
+
src?: AvatarTypeMap['props']['src'];
|
|
64
|
+
sizes?: AvatarTypeMap['props']['sizes'];
|
|
65
|
+
srcSet?: AvatarTypeMap['props']['srcSet'];
|
|
66
|
+
imgProps?: AvatarTypeMap['props']['imgProps'];
|
|
67
|
+
}
|
|
68
68
|
declare const AvatarButton: ForwardRefExoticComponent<AvatarButtonProps>;
|
|
69
69
|
|
|
70
|
-
declare type CardButtonClassKey = 'root' | 'label' | 'hint' | 'error' | 'primary' | 'disabled' | 'sizeSmall' | 'sizeLarge' | 'icon' | 'startIcon' | 'endIcon';
|
|
71
|
-
interface CardButtonProps extends RefAttributes<HTMLButtonElement>, ButtonBaseProps {
|
|
72
|
-
error?: ReactNode;
|
|
73
|
-
children?: ReactNode;
|
|
74
|
-
hint?: ReactNode;
|
|
75
|
-
startIcon?: ReactNode;
|
|
76
|
-
endIcon?: ReactNode;
|
|
77
|
-
size?: 'small' | 'medium' | 'large';
|
|
78
|
-
className?: string;
|
|
79
|
-
classes?: Partial<ClassNameMap<CardButtonClassKey>>;
|
|
80
|
-
}
|
|
70
|
+
declare type CardButtonClassKey = 'root' | 'label' | 'hint' | 'error' | 'primary' | 'disabled' | 'sizeSmall' | 'sizeLarge' | 'icon' | 'startIcon' | 'endIcon';
|
|
71
|
+
interface CardButtonProps extends RefAttributes<HTMLButtonElement>, ButtonBaseProps {
|
|
72
|
+
error?: ReactNode;
|
|
73
|
+
children?: ReactNode;
|
|
74
|
+
hint?: ReactNode;
|
|
75
|
+
startIcon?: ReactNode;
|
|
76
|
+
endIcon?: ReactNode;
|
|
77
|
+
size?: 'small' | 'medium' | 'large';
|
|
78
|
+
className?: string;
|
|
79
|
+
classes?: Partial<ClassNameMap<CardButtonClassKey>>;
|
|
80
|
+
}
|
|
81
81
|
declare const CardButton: ForwardRefExoticComponent<CardButtonProps>;
|
|
82
82
|
|
|
83
|
-
interface CheckboxFieldProps extends CheckboxProps, Pick<FormControlLabelProps, 'label'> {
|
|
84
|
-
error?: boolean;
|
|
85
|
-
helperText?: ReactNode;
|
|
86
|
-
FormControlLabelProps?: Omit<FormControlLabelProps, 'label' | 'checked' | 'onBlur' | 'onChange' | 'control'>;
|
|
87
|
-
}
|
|
83
|
+
interface CheckboxFieldProps extends CheckboxProps, Pick<FormControlLabelProps, 'label'> {
|
|
84
|
+
error?: boolean;
|
|
85
|
+
helperText?: ReactNode;
|
|
86
|
+
FormControlLabelProps?: Omit<FormControlLabelProps, 'label' | 'checked' | 'onBlur' | 'onChange' | 'control'>;
|
|
87
|
+
}
|
|
88
88
|
declare const CheckboxField: ForwardRefExoticComponent<CheckboxFieldProps>;
|
|
89
89
|
|
|
90
|
-
interface CheckboxGroupFieldProps extends Omit<FormControlProps, 'hiddenLabel' | 'onChange'> {
|
|
91
|
-
FormGroupProps?: Omit<FormGroupProps, 'children'>;
|
|
92
|
-
label?: ReactNode;
|
|
93
|
-
FormLabelProps?: Omit<FormLabelProps, 'children'>;
|
|
94
|
-
helperText?: ReactNode;
|
|
95
|
-
FormHelperTextProps?: Omit<FormHelperTextProps, 'children'>;
|
|
96
|
-
}
|
|
90
|
+
interface CheckboxGroupFieldProps extends Omit<FormControlProps, 'hiddenLabel' | 'onChange'> {
|
|
91
|
+
FormGroupProps?: Omit<FormGroupProps, 'children'>;
|
|
92
|
+
label?: ReactNode;
|
|
93
|
+
FormLabelProps?: Omit<FormLabelProps, 'children'>;
|
|
94
|
+
helperText?: ReactNode;
|
|
95
|
+
FormHelperTextProps?: Omit<FormHelperTextProps, 'children'>;
|
|
96
|
+
}
|
|
97
97
|
declare const CheckboxGroupField: ForwardRefExoticComponent<CheckboxGroupFieldProps>;
|
|
98
98
|
|
|
99
|
-
declare type ResponsivePropPrimitive = boolean | number | string;
|
|
100
|
-
declare type ResponsivePropTupleInit<T extends ResponsivePropPrimitive> = readonly [mobile: T, tablet?: T, desktop?: T];
|
|
101
|
-
declare type ResponsiveProp<T extends ResponsivePropPrimitive> = T | ResponsivePropTupleInit<T>;
|
|
102
|
-
declare type ResponsivePropTuple<T extends ResponsivePropPrimitive> = readonly [
|
|
103
|
-
mobile: T,
|
|
104
|
-
tablet: T,
|
|
105
|
-
desktop: T
|
|
106
|
-
];
|
|
107
|
-
declare function parseResponsiveProp<T extends ResponsivePropPrimitive>(prop: ResponsiveProp<T>): ResponsivePropTuple<T>;
|
|
108
|
-
declare function useResponsiveProp<T extends ResponsivePropPrimitive>(prop: ResponsiveProp<T>): ResponsivePropTuple<T>;
|
|
109
|
-
interface PartialResponsivePropRecord<T> {
|
|
110
|
-
xs: T;
|
|
111
|
-
sm?: T;
|
|
112
|
-
md?: T;
|
|
113
|
-
lg?: T;
|
|
114
|
-
xl?: T;
|
|
115
|
-
}
|
|
116
|
-
declare type ResponsivePropRecord<T extends ResponsivePropPrimitive> = T | PartialResponsivePropRecord<T>;
|
|
117
|
-
declare function useResponsiveValue<T>(xs: T, sm: T, md?: T, lg?: T, xl?: T): T;
|
|
99
|
+
declare type ResponsivePropPrimitive = boolean | number | string;
|
|
100
|
+
declare type ResponsivePropTupleInit<T extends ResponsivePropPrimitive> = readonly [mobile: T, tablet?: T, desktop?: T];
|
|
101
|
+
declare type ResponsiveProp<T extends ResponsivePropPrimitive> = T | ResponsivePropTupleInit<T>;
|
|
102
|
+
declare type ResponsivePropTuple<T extends ResponsivePropPrimitive> = readonly [
|
|
103
|
+
mobile: T,
|
|
104
|
+
tablet: T,
|
|
105
|
+
desktop: T
|
|
106
|
+
];
|
|
107
|
+
declare function parseResponsiveProp<T extends ResponsivePropPrimitive>(prop: ResponsiveProp<T>): ResponsivePropTuple<T>;
|
|
108
|
+
declare function useResponsiveProp<T extends ResponsivePropPrimitive>(prop: ResponsiveProp<T>): ResponsivePropTuple<T>;
|
|
109
|
+
interface PartialResponsivePropRecord<T> {
|
|
110
|
+
xs: T;
|
|
111
|
+
sm?: T;
|
|
112
|
+
md?: T;
|
|
113
|
+
lg?: T;
|
|
114
|
+
xl?: T;
|
|
115
|
+
}
|
|
116
|
+
declare type ResponsivePropRecord<T extends ResponsivePropPrimitive> = T | PartialResponsivePropRecord<T>;
|
|
117
|
+
declare function useResponsiveValue<T>(xs: T, sm: T, md?: T, lg?: T, xl?: T): T;
|
|
118
118
|
declare function useResponsivePropRecord<T extends ResponsivePropPrimitive>(prop: ResponsivePropRecord<T>): T;
|
|
119
119
|
|
|
120
|
-
declare type ColumnWidth = 'adaptive' | 'content' | 'fluid' | '1/2' | '1/3' | '2/3' | '1/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5';
|
|
121
|
-
interface ColumnProps {
|
|
122
|
-
children?: ReactNode;
|
|
123
|
-
'aria-label'?: string;
|
|
124
|
-
'aria-labelledby'?: string;
|
|
125
|
-
width?: ResponsiveProp<ColumnWidth>;
|
|
126
|
-
}
|
|
120
|
+
declare type ColumnWidth = 'adaptive' | 'content' | 'fluid' | '1/2' | '1/3' | '2/3' | '1/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5';
|
|
121
|
+
interface ColumnProps {
|
|
122
|
+
children?: ReactNode;
|
|
123
|
+
'aria-label'?: string;
|
|
124
|
+
'aria-labelledby'?: string;
|
|
125
|
+
width?: ResponsiveProp<ColumnWidth>;
|
|
126
|
+
}
|
|
127
127
|
declare const Column: ForwardRefExoticComponent<ColumnProps & RefAttributes<HTMLDivElement>>;
|
|
128
128
|
|
|
129
|
-
declare type VerticalAlign = 'top' | 'center' | 'bottom';
|
|
130
|
-
declare type HorizontalAlign = 'left' | 'center' | 'right';
|
|
129
|
+
declare type VerticalAlign = 'top' | 'center' | 'bottom';
|
|
130
|
+
declare type HorizontalAlign = 'left' | 'center' | 'right';
|
|
131
131
|
declare function parseAlignProp(align: VerticalAlign | HorizontalAlign): Property.AlignItems;
|
|
132
132
|
|
|
133
|
-
declare type CollapseProp = 'tablet' | 'desktop';
|
|
133
|
+
declare type CollapseProp = 'tablet' | 'desktop';
|
|
134
134
|
declare function parseCollapsedBelow(collapsedBelow: undefined | CollapseProp): ResponsivePropTuple<boolean>;
|
|
135
135
|
|
|
136
|
-
declare type SpaceProp = 'none' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
|
|
137
|
-
declare type NegativeSpaceProp = '-xxsmall' | '-xsmall' | '-small' | '-medium' | '-large' | '-xlarge' | '-xxlarge';
|
|
136
|
+
declare type SpaceProp = 'none' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
|
|
137
|
+
declare type NegativeSpaceProp = '-xxsmall' | '-xsmall' | '-small' | '-medium' | '-large' | '-xlarge' | '-xxlarge';
|
|
138
138
|
declare function parseSpaceProp(prop: SpaceProp): number;
|
|
139
139
|
|
|
140
|
-
interface ColumnsProps {
|
|
141
|
-
id?: string;
|
|
142
|
-
children?: ReactNode;
|
|
143
|
-
'aria-label'?: string;
|
|
144
|
-
'aria-labelledby'?: string;
|
|
145
|
-
ref?: Ref<HTMLDivElement>;
|
|
146
|
-
reverse?: ResponsiveProp<boolean>;
|
|
147
|
-
space?: ResponsiveProp<SpaceProp>;
|
|
148
|
-
align?: ResponsiveProp<VerticalAlign>;
|
|
149
|
-
collapseBelow?: CollapseProp;
|
|
150
|
-
}
|
|
140
|
+
interface ColumnsProps {
|
|
141
|
+
id?: string;
|
|
142
|
+
children?: ReactNode;
|
|
143
|
+
'aria-label'?: string;
|
|
144
|
+
'aria-labelledby'?: string;
|
|
145
|
+
ref?: Ref<HTMLDivElement>;
|
|
146
|
+
reverse?: ResponsiveProp<boolean>;
|
|
147
|
+
space?: ResponsiveProp<SpaceProp>;
|
|
148
|
+
align?: ResponsiveProp<VerticalAlign>;
|
|
149
|
+
collapseBelow?: CollapseProp;
|
|
150
|
+
}
|
|
151
151
|
declare const Columns: ForwardRefExoticComponent<ColumnsProps>;
|
|
152
152
|
|
|
153
|
-
interface OverflowTextProps extends Omit<TypographyProps, 'noWrap'> {
|
|
154
|
-
component?: ElementType;
|
|
155
|
-
disableUnderline?: boolean;
|
|
156
|
-
TooltipProps?: Omit<Partial<TooltipProps>, 'open' | 'children'>;
|
|
157
|
-
}
|
|
153
|
+
interface OverflowTextProps extends Omit<TypographyProps, 'noWrap'> {
|
|
154
|
+
component?: ElementType;
|
|
155
|
+
disableUnderline?: boolean;
|
|
156
|
+
TooltipProps?: Omit<Partial<TooltipProps>, 'open' | 'children'>;
|
|
157
|
+
}
|
|
158
158
|
declare const OverflowText: ForwardRefExoticComponent<OverflowTextProps>;
|
|
159
159
|
|
|
160
|
-
interface DescriptionListProps {
|
|
161
|
-
children?: ReactNode;
|
|
162
|
-
size?: 'small' | 'medium' | 'large';
|
|
163
|
-
}
|
|
164
|
-
declare const DescriptionList: ForwardRefExoticComponent<DescriptionListProps & RefAttributes<HTMLDivElement>>;
|
|
165
|
-
interface DescriptionListItemProps {
|
|
166
|
-
icon?: ReactNode;
|
|
167
|
-
inset?: boolean;
|
|
168
|
-
label?: ReactNode;
|
|
169
|
-
labelTypographyProps?: Omit<TypographyProps, 'noWrap' | 'variant' | 'component' | 'color'>;
|
|
170
|
-
content?: ReactNode;
|
|
171
|
-
contentTypographyProps?: Omit<OverflowTextProps, 'component' | 'color'>;
|
|
172
|
-
fallback?: ReactNode;
|
|
173
|
-
}
|
|
160
|
+
interface DescriptionListProps {
|
|
161
|
+
children?: ReactNode;
|
|
162
|
+
size?: 'small' | 'medium' | 'large';
|
|
163
|
+
}
|
|
164
|
+
declare const DescriptionList: ForwardRefExoticComponent<DescriptionListProps & RefAttributes<HTMLDivElement>>;
|
|
165
|
+
interface DescriptionListItemProps {
|
|
166
|
+
icon?: ReactNode;
|
|
167
|
+
inset?: boolean;
|
|
168
|
+
label?: ReactNode;
|
|
169
|
+
labelTypographyProps?: Omit<TypographyProps, 'noWrap' | 'variant' | 'component' | 'color'>;
|
|
170
|
+
content?: ReactNode;
|
|
171
|
+
contentTypographyProps?: Omit<OverflowTextProps, 'component' | 'color'>;
|
|
172
|
+
fallback?: ReactNode;
|
|
173
|
+
}
|
|
174
174
|
declare const DescriptionListItem: ForwardRefExoticComponent<DescriptionListItemProps & RefAttributes<HTMLDivElement>>;
|
|
175
175
|
|
|
176
|
-
declare type DrawerActionsProps = Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
176
|
+
declare type DrawerActionsProps = Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
177
177
|
declare const DrawerActions: ForwardRefExoticComponent<DrawerActionsProps & RefAttributes<HTMLDivElement>>;
|
|
178
178
|
|
|
179
|
-
declare type DrawerContentProps = HTMLAttributes<HTMLDivElement>;
|
|
179
|
+
declare type DrawerContentProps = HTMLAttributes<HTMLDivElement>;
|
|
180
180
|
declare const DrawerContent: ForwardRefExoticComponent<DrawerContentProps & RefAttributes<HTMLDivElement>>;
|
|
181
181
|
|
|
182
|
-
declare type DrawerListProps = Omit<ListProps<'div'>, 'component'>;
|
|
182
|
+
declare type DrawerListProps = Omit<ListProps<'div'>, 'component'>;
|
|
183
183
|
declare const DrawerList: ForwardRefExoticComponent<Pick<DrawerListProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "dense" | "subheader" | "disablePadding" | keyof CommonProps<ListTypeMap<{}, "div">>> & RefAttributes<HTMLDivElement>>;
|
|
184
184
|
|
|
185
|
-
interface DrawerTitleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color' | 'title'> {
|
|
186
|
-
children?: ReactNode;
|
|
187
|
-
title: ReactNode;
|
|
188
|
-
titleTypographyProps?: Omit<TypographyProps, 'children'>;
|
|
189
|
-
subtitle?: ReactNode;
|
|
190
|
-
subtitleTypographyProps?: Omit<TypographyProps, 'children'>;
|
|
191
|
-
startAction?: ReactNode;
|
|
192
|
-
endAction?: ReactNode;
|
|
193
|
-
}
|
|
185
|
+
interface DrawerTitleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color' | 'title'> {
|
|
186
|
+
children?: ReactNode;
|
|
187
|
+
title: ReactNode;
|
|
188
|
+
titleTypographyProps?: Omit<TypographyProps, 'children'>;
|
|
189
|
+
subtitle?: ReactNode;
|
|
190
|
+
subtitleTypographyProps?: Omit<TypographyProps, 'children'>;
|
|
191
|
+
startAction?: ReactNode;
|
|
192
|
+
endAction?: ReactNode;
|
|
193
|
+
}
|
|
194
194
|
declare const DrawerTitle: ForwardRefExoticComponent<DrawerTitleProps & RefAttributes<HTMLDivElement>>;
|
|
195
195
|
|
|
196
|
-
interface DropdownButtonProps extends Omit<ButtonProps, 'children'> {
|
|
197
|
-
label?: ReactNode;
|
|
198
|
-
children: ReactNode;
|
|
199
|
-
MenuListProps?: Omit<MenuListProps, 'id'>;
|
|
200
|
-
ButtonGroupProps?: ButtonGroupProps;
|
|
201
|
-
}
|
|
196
|
+
interface DropdownButtonProps extends Omit<ButtonProps, 'children'> {
|
|
197
|
+
label?: ReactNode;
|
|
198
|
+
children: ReactNode;
|
|
199
|
+
MenuListProps?: Omit<MenuListProps, 'id'>;
|
|
200
|
+
ButtonGroupProps?: ButtonGroupProps;
|
|
201
|
+
}
|
|
202
202
|
declare const DropdownButton: ForwardRefExoticComponent<Pick<DropdownButtonProps, "className" | "style" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "label" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon" | "disableFocusRipple" | "href" | "size" | "variant" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "rel" | "target" | "isActive" | "isLoading" | "MenuListProps" | "ButtonGroupProps"> & RefAttributes<HTMLButtonElement>>;
|
|
203
203
|
|
|
204
|
-
interface GridStackProps extends RefAttributes<HTMLDivElement>, Pick<GridProps, 'style' | 'className' | 'children' | 'spacing' | 'alignItems'> {
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* @deprecated in favor of `Stack`.
|
|
208
|
-
*/
|
|
204
|
+
interface GridStackProps extends RefAttributes<HTMLDivElement>, Pick<GridProps, 'style' | 'className' | 'children' | 'spacing' | 'alignItems'> {
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated in favor of `Stack`.
|
|
208
|
+
*/
|
|
209
209
|
declare const GridStack: ForwardRefExoticComponent<GridStackProps>;
|
|
210
210
|
|
|
211
|
-
interface InlineGridProps extends RefAttributes<HTMLDivElement>, Pick<GridProps, 'style' | 'className' | 'children' | 'wrap' | 'spacing' | 'justify' | 'alignItems'> {
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @deprecated in favor of `Inline` component.
|
|
215
|
-
*/
|
|
211
|
+
interface InlineGridProps extends RefAttributes<HTMLDivElement>, Pick<GridProps, 'style' | 'className' | 'children' | 'wrap' | 'spacing' | 'justify' | 'alignItems'> {
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* @deprecated in favor of `Inline` component.
|
|
215
|
+
*/
|
|
216
216
|
declare const InlineGrid: ForwardRefExoticComponent<InlineGridProps>;
|
|
217
217
|
|
|
218
|
-
declare type InfoCardClassKey = 'sizeLarge' | 'content' | 'fullWidth' | CardClassKey;
|
|
219
|
-
interface InfoCardProps extends CardProps {
|
|
220
|
-
size?: 'medium' | 'large';
|
|
221
|
-
CardContentProps?: CardContentProps;
|
|
222
|
-
}
|
|
218
|
+
declare type InfoCardClassKey = 'sizeLarge' | 'content' | 'fullWidth' | CardClassKey;
|
|
219
|
+
interface InfoCardProps extends CardProps {
|
|
220
|
+
size?: 'medium' | 'large';
|
|
221
|
+
CardContentProps?: CardContentProps;
|
|
222
|
+
}
|
|
223
223
|
declare const InfoCard: ForwardRefExoticComponent<InfoCardProps>;
|
|
224
224
|
|
|
225
|
-
interface
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
225
|
+
interface InfoTooltipProps extends Omit<TooltipProps, 'title' | 'children'> {
|
|
226
|
+
title: NonNullable<ReactNode>;
|
|
227
|
+
children?: ReactNode;
|
|
228
|
+
iconButtonProps?: IconButtonProps;
|
|
229
|
+
fontSize?: 'inherit' | 'default' | 'small' | 'medium' | 'large' | undefined;
|
|
230
|
+
TextProps?: TypographyProps;
|
|
231
|
+
isOpen?: boolean;
|
|
232
|
+
onClose?: () => void;
|
|
233
|
+
onClick?: () => void;
|
|
234
|
+
}
|
|
235
|
+
declare const InfoTooltip: ForwardRefExoticComponent<InfoTooltipProps>;
|
|
236
|
+
|
|
237
|
+
interface InlineProps {
|
|
238
|
+
children?: ReactNode;
|
|
239
|
+
'aria-label'?: string;
|
|
240
|
+
'aria-labelledby'?: string;
|
|
241
|
+
noWrap?: ResponsiveProp<boolean>;
|
|
242
|
+
space?: ResponsiveProp<SpaceProp>;
|
|
243
|
+
verticalAlign?: ResponsiveProp<VerticalAlign>;
|
|
244
|
+
horizontalAlign?: ResponsiveProp<HorizontalAlign>;
|
|
245
|
+
}
|
|
234
246
|
declare const Inline: ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>;
|
|
235
247
|
|
|
236
|
-
declare type SafeNumberFormatProps = Pick<NumberFormatProps, 'value' | 'onChange' | 'getInputRef' | 'decimalScale' | 'onValueChange' | 'isNumericString' | 'decimalSeparator' | 'thousandSeparator' | 'fixedDecimalScale' | 'thousandsGroupStyle'>;
|
|
237
|
-
interface NumberFormatCustomProps extends Omit<SafeNumberFormatProps, 'getInputRef' | 'onValueChange'>, Omit<StandardTextFieldProps, 'ref' | keyof InputHTMLAttributes<HTMLInputElement>> {
|
|
238
|
-
disableValueParsing?: boolean;
|
|
239
|
-
format?: NumberFormatProps['format'];
|
|
240
|
-
}
|
|
241
|
-
interface NumberFieldProps extends Omit<StandardTextFieldProps, 'InputProps' | 'inputProps'>, Omit<SafeNumberFormatProps, keyof StandardTextFieldProps> {
|
|
242
|
-
InputProps?: Partial<Omit<InputProps, 'inputComponent'>>;
|
|
243
|
-
inputProps?: NumberFormatCustomProps & StandardTextFieldProps['inputProps'];
|
|
244
|
-
}
|
|
248
|
+
declare type SafeNumberFormatProps = Pick<NumberFormatProps, 'value' | 'onChange' | 'getInputRef' | 'decimalScale' | 'onValueChange' | 'isNumericString' | 'decimalSeparator' | 'thousandSeparator' | 'fixedDecimalScale' | 'thousandsGroupStyle'>;
|
|
249
|
+
interface NumberFormatCustomProps extends Omit<SafeNumberFormatProps, 'getInputRef' | 'onValueChange'>, Omit<StandardTextFieldProps, 'ref' | keyof InputHTMLAttributes<HTMLInputElement>> {
|
|
250
|
+
disableValueParsing?: boolean;
|
|
251
|
+
format?: NumberFormatProps['format'];
|
|
252
|
+
}
|
|
253
|
+
interface NumberFieldProps extends Omit<StandardTextFieldProps, 'InputProps' | 'inputProps'>, Omit<SafeNumberFormatProps, keyof StandardTextFieldProps> {
|
|
254
|
+
InputProps?: Partial<Omit<InputProps, 'inputComponent'>>;
|
|
255
|
+
inputProps?: NumberFormatCustomProps & StandardTextFieldProps['inputProps'];
|
|
256
|
+
}
|
|
245
257
|
declare const NumberField: ForwardRefExoticComponent<NumberFieldProps>;
|
|
246
258
|
|
|
247
|
-
interface RadioFieldProps extends Omit<RadioProps, 'onBlur' | 'onChange'>, Pick<FormControlLabelProps, 'label' | 'onBlur' | 'onChange'> {
|
|
248
|
-
error?: boolean;
|
|
249
|
-
helperText?: ReactNode;
|
|
250
|
-
FormControlLabelProps?: Omit<FormControlLabelProps, 'label' | 'error' | 'checked' | 'onBlur' | 'onChange' | 'helperText' | 'control'>;
|
|
251
|
-
}
|
|
259
|
+
interface RadioFieldProps extends Omit<RadioProps, 'onBlur' | 'onChange'>, Pick<FormControlLabelProps, 'label' | 'onBlur' | 'onChange'> {
|
|
260
|
+
error?: boolean;
|
|
261
|
+
helperText?: ReactNode;
|
|
262
|
+
FormControlLabelProps?: Omit<FormControlLabelProps, 'label' | 'error' | 'checked' | 'onBlur' | 'onChange' | 'helperText' | 'control'>;
|
|
263
|
+
}
|
|
252
264
|
declare const RadioField: ForwardRefExoticComponent<RadioFieldProps>;
|
|
253
265
|
|
|
254
|
-
interface RadioGroupFieldProps extends Omit<FormControlProps, 'hiddenLabel' | 'onChange'>, Pick<RadioGroupProps, 'name' | 'value' | 'onChange'> {
|
|
255
|
-
RadioGroupProps?: Omit<RadioGroupProps, 'value' | 'onChange' | 'children'>;
|
|
256
|
-
label?: ReactNode;
|
|
257
|
-
FormLabelProps?: Omit<FormLabelProps, 'children'>;
|
|
258
|
-
helperText?: ReactNode;
|
|
259
|
-
FormHelperTextProps?: Omit<FormHelperTextProps, 'children'>;
|
|
260
|
-
}
|
|
266
|
+
interface RadioGroupFieldProps extends Omit<FormControlProps, 'hiddenLabel' | 'onChange'>, Pick<RadioGroupProps, 'name' | 'value' | 'onChange'> {
|
|
267
|
+
RadioGroupProps?: Omit<RadioGroupProps, 'value' | 'onChange' | 'children'>;
|
|
268
|
+
label?: ReactNode;
|
|
269
|
+
FormLabelProps?: Omit<FormLabelProps, 'children'>;
|
|
270
|
+
helperText?: ReactNode;
|
|
271
|
+
FormHelperTextProps?: Omit<FormHelperTextProps, 'children'>;
|
|
272
|
+
}
|
|
261
273
|
declare const RadioGroupField: ForwardRefExoticComponent<RadioGroupFieldProps>;
|
|
262
274
|
|
|
263
|
-
declare type CollapseBreakpoint = 'sm' | 'md' | 'lg' | 'xl';
|
|
275
|
+
declare type CollapseBreakpoint = 'sm' | 'md' | 'lg' | 'xl';
|
|
264
276
|
declare function useCollapseBreakpoint(collapseBreakpoint: undefined | CollapseBreakpoint): boolean;
|
|
265
277
|
|
|
266
|
-
declare type MinBreakpoint = 'sm' | 'md' | 'lg' | 'xl';
|
|
278
|
+
declare type MinBreakpoint = 'sm' | 'md' | 'lg' | 'xl';
|
|
267
279
|
declare function useMinBreakpoint(minBreakpoint: undefined | MinBreakpoint): boolean;
|
|
268
280
|
|
|
269
|
-
interface ResponsiveContext {
|
|
270
|
-
breakpoint?: Breakpoint;
|
|
271
|
-
}
|
|
272
|
-
interface ResponsiveContextProviderProps {
|
|
273
|
-
children?: ReactNode;
|
|
274
|
-
defaultBreakpoint?: Breakpoint;
|
|
275
|
-
}
|
|
276
|
-
declare function ResponsiveContextProvider({ children, defaultBreakpoint, }: ResponsiveContextProviderProps): ReactElement;
|
|
281
|
+
interface ResponsiveContext {
|
|
282
|
+
breakpoint?: Breakpoint;
|
|
283
|
+
}
|
|
284
|
+
interface ResponsiveContextProviderProps {
|
|
285
|
+
children?: ReactNode;
|
|
286
|
+
defaultBreakpoint?: Breakpoint;
|
|
287
|
+
}
|
|
288
|
+
declare function ResponsiveContextProvider({ children, defaultBreakpoint, }: ResponsiveContextProviderProps): ReactElement;
|
|
277
289
|
declare function useResponsiveContext(): ResponsiveContext;
|
|
278
290
|
|
|
279
|
-
declare type SnackbarContentClassKey = SnackbarContentClassKey$1 | 'icon' | 'closeButton' | 'variantError' | 'variantSuccess';
|
|
280
|
-
declare type SnackbarVariant = 'default' | 'error' | 'success';
|
|
281
|
-
interface SnackbarContentProps extends RefAttributes<unknown>, Omit<SnackbarContentProps$1, 'classes' | 'message' | 'variant'> {
|
|
282
|
-
children?: ReactNode;
|
|
283
|
-
onClose?: () => void;
|
|
284
|
-
variant?: SnackbarVariant;
|
|
285
|
-
classes?: Partial<ClassNameMap<SnackbarContentClassKey>>;
|
|
286
|
-
}
|
|
291
|
+
declare type SnackbarContentClassKey = SnackbarContentClassKey$1 | 'icon' | 'closeButton' | 'variantError' | 'variantSuccess';
|
|
292
|
+
declare type SnackbarVariant = 'default' | 'error' | 'success';
|
|
293
|
+
interface SnackbarContentProps extends RefAttributes<unknown>, Omit<SnackbarContentProps$1, 'classes' | 'message' | 'variant'> {
|
|
294
|
+
children?: ReactNode;
|
|
295
|
+
onClose?: () => void;
|
|
296
|
+
variant?: SnackbarVariant;
|
|
297
|
+
classes?: Partial<ClassNameMap<SnackbarContentClassKey>>;
|
|
298
|
+
}
|
|
287
299
|
declare const SnackbarContent: ForwardRefExoticComponent<SnackbarContentProps>;
|
|
288
300
|
|
|
289
|
-
declare type SnackbarCloseReason = 'timeout' | 'explicit';
|
|
290
|
-
interface SnackbarProps extends Omit<SnackbarProps$1, 'onClose' | 'message' | 'children'> {
|
|
291
|
-
children?: ReactNode;
|
|
292
|
-
variant?: SnackbarVariant;
|
|
293
|
-
hasCloseButton?: boolean;
|
|
294
|
-
onClose?: (reason: SnackbarCloseReason) => void;
|
|
295
|
-
}
|
|
301
|
+
declare type SnackbarCloseReason = 'timeout' | 'explicit';
|
|
302
|
+
interface SnackbarProps extends Omit<SnackbarProps$1, 'onClose' | 'message' | 'children'> {
|
|
303
|
+
children?: ReactNode;
|
|
304
|
+
variant?: SnackbarVariant;
|
|
305
|
+
hasCloseButton?: boolean;
|
|
306
|
+
onClose?: (reason: SnackbarCloseReason) => void;
|
|
307
|
+
}
|
|
296
308
|
declare const Snackbar: ForwardRefExoticComponent<SnackbarProps>;
|
|
297
309
|
|
|
298
|
-
interface SnackbarStackOptions extends Omit<SnackbarProps, 'open' | 'children'> {
|
|
299
|
-
key?: Key;
|
|
300
|
-
}
|
|
301
|
-
interface SnackbarStack {
|
|
302
|
-
clearStack: () => void;
|
|
303
|
-
addSnackbar: (message: ReactNode, options?: SnackbarStackOptions) => () => void;
|
|
304
|
-
}
|
|
305
|
-
declare function useSnackbarStack(): SnackbarStack;
|
|
306
|
-
declare function SnackbarStackConsumer({ children, }: ConsumerProps<SnackbarStack>): ReactElement;
|
|
307
|
-
interface SnackbarStackProviderProps {
|
|
308
|
-
children: ReactNode;
|
|
309
|
-
}
|
|
310
|
+
interface SnackbarStackOptions extends Omit<SnackbarProps, 'open' | 'children'> {
|
|
311
|
+
key?: Key;
|
|
312
|
+
}
|
|
313
|
+
interface SnackbarStack {
|
|
314
|
+
clearStack: () => void;
|
|
315
|
+
addSnackbar: (message: ReactNode, options?: SnackbarStackOptions) => () => void;
|
|
316
|
+
}
|
|
317
|
+
declare function useSnackbarStack(): SnackbarStack;
|
|
318
|
+
declare function SnackbarStackConsumer({ children, }: ConsumerProps<SnackbarStack>): ReactElement;
|
|
319
|
+
interface SnackbarStackProviderProps {
|
|
320
|
+
children: ReactNode;
|
|
321
|
+
}
|
|
310
322
|
declare function SnackbarStackProvider({ children, }: SnackbarStackProviderProps): ReactElement;
|
|
311
323
|
|
|
312
|
-
interface StackProps {
|
|
313
|
-
children?: ReactNode;
|
|
314
|
-
'aria-label'?: string;
|
|
315
|
-
'aria-labelledby'?: string;
|
|
316
|
-
space?: ResponsiveProp<SpaceProp>;
|
|
317
|
-
align?: ResponsiveProp<HorizontalAlign>;
|
|
318
|
-
}
|
|
324
|
+
interface StackProps {
|
|
325
|
+
children?: ReactNode;
|
|
326
|
+
'aria-label'?: string;
|
|
327
|
+
'aria-labelledby'?: string;
|
|
328
|
+
space?: ResponsiveProp<SpaceProp>;
|
|
329
|
+
align?: ResponsiveProp<HorizontalAlign>;
|
|
330
|
+
}
|
|
319
331
|
declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>;
|
|
320
332
|
|
|
321
|
-
declare type TagClassKey = 'root' | 'colorGrey' | 'colorBlue' | 'colorGreen' | 'colorPurple' | 'colorRed' | 'colorTeal' | 'colorYellow' | 'variantSubtle' | 'variantBold';
|
|
322
|
-
interface TagProps extends RefAttributes<unknown>, Omit<TypographyProps, 'ref' | 'classes' | 'color' | 'variant'> {
|
|
323
|
-
classes?: Partial<ClassNameMap<TagClassKey>>;
|
|
324
|
-
component?: ElementType;
|
|
325
|
-
color: 'grey' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
326
|
-
variant: 'subtle' | 'bold';
|
|
327
|
-
fontWeight?: 'regular' | 'bold';
|
|
328
|
-
}
|
|
333
|
+
declare type TagClassKey = 'root' | 'colorGrey' | 'colorBlue' | 'colorGreen' | 'colorPurple' | 'colorRed' | 'colorTeal' | 'colorYellow' | 'variantSubtle' | 'variantBold';
|
|
334
|
+
interface TagProps extends RefAttributes<unknown>, Omit<TypographyProps, 'ref' | 'classes' | 'color' | 'variant'> {
|
|
335
|
+
classes?: Partial<ClassNameMap<TagClassKey>>;
|
|
336
|
+
component?: ElementType;
|
|
337
|
+
color: 'grey' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
338
|
+
variant: 'subtle' | 'bold';
|
|
339
|
+
fontWeight?: 'regular' | 'bold';
|
|
340
|
+
}
|
|
329
341
|
declare const Tag: ForwardRefExoticComponent<TagProps>;
|
|
330
342
|
|
|
331
|
-
declare type ColorVariant = 'grey' | 'silver' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
332
|
-
declare enum Color {
|
|
333
|
-
White = "#fff",
|
|
334
|
-
White50 = "rgba(255, 255, 255, 0.5)",
|
|
335
|
-
White40 = "rgba(255, 255, 255, 0.4)",
|
|
336
|
-
White20 = "rgba(255, 255, 255, 0.2)",
|
|
337
|
-
White10 = "rgba(255, 255, 255, 0.1)",
|
|
338
|
-
White08 = "rgba(255, 255, 255, 0.08)",
|
|
339
|
-
Transparent = "rgba(0, 0, 0, 0)",
|
|
340
|
-
Black = "#000",
|
|
341
|
-
Black50 = "rgba(0, 0, 0, 0.5)",
|
|
342
|
-
Black20 = "rgba(0, 0, 0, 0.2)",
|
|
343
|
-
/**@deprecated Use Dark100 */
|
|
344
|
-
Grey100 = "#8F949E",
|
|
345
|
-
/**@deprecated Use Dark200 */
|
|
346
|
-
Grey200 = "#6A707C",
|
|
347
|
-
/**@deprecated Use Dark300 */
|
|
348
|
-
Grey300 = "#5B6371",
|
|
349
|
-
/**@deprecated Use Dark400 */
|
|
350
|
-
Grey400 = "#323C4E",
|
|
351
|
-
/**@deprecated Use Dark450 */
|
|
352
|
-
Grey450 = "#222F44",
|
|
353
|
-
/**@deprecated Use Dark500 */
|
|
354
|
-
Grey500 = "#192334",
|
|
355
|
-
Dark100 = "#8F949E",
|
|
356
|
-
Dark200 = "#6A707C",
|
|
357
|
-
Dark300 = "#5B6371",
|
|
358
|
-
Dark400 = "#323C4E",
|
|
359
|
-
Dark450 = "#222F44",
|
|
360
|
-
Dark500 = "#192334",
|
|
361
|
-
Silver100 = "#F6F7F8",
|
|
362
|
-
Silver200 = "#F3F5F8",
|
|
363
|
-
Silver300 = "#E8ECF0",
|
|
364
|
-
Silver400 = "#E1E5EA",
|
|
365
|
-
Silver500 = "#C4CDD5",
|
|
366
|
-
Blue50 = "#EBF4FF",
|
|
367
|
-
Blue75 = "#CCE5FF",
|
|
368
|
-
Blue100 = "#A8D1FF",
|
|
369
|
-
Blue200 = "#66ADFF",
|
|
370
|
-
Blue300 = "#0075FF",
|
|
371
|
-
Blue400 = "#0063DB",
|
|
372
|
-
Blue500 = "#0050B2",
|
|
373
|
-
Green50 = "#ECF9EF",
|
|
374
|
-
Green75 = "#C8F4D1",
|
|
375
|
-
Green100 = "#90EAAE",
|
|
376
|
-
Green200 = "#5DDA87",
|
|
377
|
-
Green300 = "#1FA84D",
|
|
378
|
-
Green400 = "#1E8F46",
|
|
379
|
-
Green500 = "#19803D",
|
|
380
|
-
Purple50 = "#EFEEFC",
|
|
381
|
-
Purple75 = "#DCDBF5",
|
|
382
|
-
Purple100 = "#CBC8EE",
|
|
383
|
-
Purple200 = "#A7A1E8",
|
|
384
|
-
Purple300 = "#6559CF",
|
|
385
|
-
Purple400 = "#473ABB",
|
|
386
|
-
Purple500 = "#3A2F9D",
|
|
387
|
-
Red50 = "#FFEDEB",
|
|
388
|
-
Red75 = "#FDD9D3",
|
|
389
|
-
Red100 = "#FDC2BA",
|
|
390
|
-
Red200 = "#FE988B",
|
|
391
|
-
Red300 = "#EE3017",
|
|
392
|
-
Red400 = "#D9210D",
|
|
393
|
-
Red500 = "#C31909",
|
|
394
|
-
Teal50 = "#E3F6FC",
|
|
395
|
-
Teal75 = "#BEEDF9",
|
|
396
|
-
Teal100 = "#91E3F8",
|
|
397
|
-
Teal200 = "#61D3EF",
|
|
398
|
-
Teal300 = "#00A0CC",
|
|
399
|
-
Teal400 = "#008DB8",
|
|
400
|
-
Teal500 = "#007DA3",
|
|
401
|
-
Yellow50 = "#FFF9E5",
|
|
402
|
-
Yellow75 = "#FFF1C2",
|
|
403
|
-
Yellow100 = "#FFE494",
|
|
404
|
-
Yellow200 = "#FFDC6B",
|
|
405
|
-
Yellow300 = "#FFCB47",
|
|
406
|
-
Yellow400 = "#FFA91F",
|
|
407
|
-
Yellow500 = "#DB7500"
|
|
408
|
-
}
|
|
409
|
-
declare type ColorProp = keyof typeof Color;
|
|
343
|
+
declare type ColorVariant = 'grey' | 'silver' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
344
|
+
declare enum Color {
|
|
345
|
+
White = "#fff",
|
|
346
|
+
White50 = "rgba(255, 255, 255, 0.5)",
|
|
347
|
+
White40 = "rgba(255, 255, 255, 0.4)",
|
|
348
|
+
White20 = "rgba(255, 255, 255, 0.2)",
|
|
349
|
+
White10 = "rgba(255, 255, 255, 0.1)",
|
|
350
|
+
White08 = "rgba(255, 255, 255, 0.08)",
|
|
351
|
+
Transparent = "rgba(0, 0, 0, 0)",
|
|
352
|
+
Black = "#000",
|
|
353
|
+
Black50 = "rgba(0, 0, 0, 0.5)",
|
|
354
|
+
Black20 = "rgba(0, 0, 0, 0.2)",
|
|
355
|
+
/**@deprecated Use Dark100 */
|
|
356
|
+
Grey100 = "#8F949E",
|
|
357
|
+
/**@deprecated Use Dark200 */
|
|
358
|
+
Grey200 = "#6A707C",
|
|
359
|
+
/**@deprecated Use Dark300 */
|
|
360
|
+
Grey300 = "#5B6371",
|
|
361
|
+
/**@deprecated Use Dark400 */
|
|
362
|
+
Grey400 = "#323C4E",
|
|
363
|
+
/**@deprecated Use Dark450 */
|
|
364
|
+
Grey450 = "#222F44",
|
|
365
|
+
/**@deprecated Use Dark500 */
|
|
366
|
+
Grey500 = "#192334",
|
|
367
|
+
Dark100 = "#8F949E",
|
|
368
|
+
Dark200 = "#6A707C",
|
|
369
|
+
Dark300 = "#5B6371",
|
|
370
|
+
Dark400 = "#323C4E",
|
|
371
|
+
Dark450 = "#222F44",
|
|
372
|
+
Dark500 = "#192334",
|
|
373
|
+
Silver100 = "#F6F7F8",
|
|
374
|
+
Silver200 = "#F3F5F8",
|
|
375
|
+
Silver300 = "#E8ECF0",
|
|
376
|
+
Silver400 = "#E1E5EA",
|
|
377
|
+
Silver500 = "#C4CDD5",
|
|
378
|
+
Blue50 = "#EBF4FF",
|
|
379
|
+
Blue75 = "#CCE5FF",
|
|
380
|
+
Blue100 = "#A8D1FF",
|
|
381
|
+
Blue200 = "#66ADFF",
|
|
382
|
+
Blue300 = "#0075FF",
|
|
383
|
+
Blue400 = "#0063DB",
|
|
384
|
+
Blue500 = "#0050B2",
|
|
385
|
+
Green50 = "#ECF9EF",
|
|
386
|
+
Green75 = "#C8F4D1",
|
|
387
|
+
Green100 = "#90EAAE",
|
|
388
|
+
Green200 = "#5DDA87",
|
|
389
|
+
Green300 = "#1FA84D",
|
|
390
|
+
Green400 = "#1E8F46",
|
|
391
|
+
Green500 = "#19803D",
|
|
392
|
+
Purple50 = "#EFEEFC",
|
|
393
|
+
Purple75 = "#DCDBF5",
|
|
394
|
+
Purple100 = "#CBC8EE",
|
|
395
|
+
Purple200 = "#A7A1E8",
|
|
396
|
+
Purple300 = "#6559CF",
|
|
397
|
+
Purple400 = "#473ABB",
|
|
398
|
+
Purple500 = "#3A2F9D",
|
|
399
|
+
Red50 = "#FFEDEB",
|
|
400
|
+
Red75 = "#FDD9D3",
|
|
401
|
+
Red100 = "#FDC2BA",
|
|
402
|
+
Red200 = "#FE988B",
|
|
403
|
+
Red300 = "#EE3017",
|
|
404
|
+
Red400 = "#D9210D",
|
|
405
|
+
Red500 = "#C31909",
|
|
406
|
+
Teal50 = "#E3F6FC",
|
|
407
|
+
Teal75 = "#BEEDF9",
|
|
408
|
+
Teal100 = "#91E3F8",
|
|
409
|
+
Teal200 = "#61D3EF",
|
|
410
|
+
Teal300 = "#00A0CC",
|
|
411
|
+
Teal400 = "#008DB8",
|
|
412
|
+
Teal500 = "#007DA3",
|
|
413
|
+
Yellow50 = "#FFF9E5",
|
|
414
|
+
Yellow75 = "#FFF1C2",
|
|
415
|
+
Yellow100 = "#FFE494",
|
|
416
|
+
Yellow200 = "#FFDC6B",
|
|
417
|
+
Yellow300 = "#FFCB47",
|
|
418
|
+
Yellow400 = "#FFA91F",
|
|
419
|
+
Yellow500 = "#DB7500"
|
|
420
|
+
}
|
|
421
|
+
declare type ColorProp = keyof typeof Color;
|
|
410
422
|
declare function isColorProp(name: unknown): name is ColorProp;
|
|
411
423
|
|
|
412
424
|
declare type SuperDispatchTheme = Readonly<Required<Theme>>;
|
|
413
425
|
|
|
414
|
-
interface ThemeProviderProps {
|
|
415
|
-
children?: ReactNode;
|
|
416
|
-
injectFirst?: boolean;
|
|
417
|
-
modifier?: (theme: SuperDispatchTheme) => SuperDispatchTheme;
|
|
418
|
-
}
|
|
426
|
+
interface ThemeProviderProps {
|
|
427
|
+
children?: ReactNode;
|
|
428
|
+
injectFirst?: boolean;
|
|
429
|
+
modifier?: (theme: SuperDispatchTheme) => SuperDispatchTheme;
|
|
430
|
+
}
|
|
419
431
|
declare function ThemeProvider({ modifier, children, injectFirst, }: ThemeProviderProps): ReactElement;
|
|
420
432
|
|
|
421
|
-
declare type TilesSpace = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
422
|
-
declare type TilesColumns = 1 | 2 | 3 | 4 | 5 | 6;
|
|
423
|
-
interface TilesProps {
|
|
424
|
-
children?: ReactNode;
|
|
425
|
-
space?: ResponsivePropRecord<TilesSpace>;
|
|
426
|
-
columns?: ResponsivePropRecord<TilesColumns>;
|
|
427
|
-
}
|
|
433
|
+
declare type TilesSpace = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
434
|
+
declare type TilesColumns = 1 | 2 | 3 | 4 | 5 | 6;
|
|
435
|
+
interface TilesProps {
|
|
436
|
+
children?: ReactNode;
|
|
437
|
+
space?: ResponsivePropRecord<TilesSpace>;
|
|
438
|
+
columns?: ResponsivePropRecord<TilesColumns>;
|
|
439
|
+
}
|
|
428
440
|
declare const Tiles: ForwardRefExoticComponent<TilesProps & RefAttributes<HTMLDivElement>>;
|
|
429
441
|
|
|
430
|
-
interface ExitTransitionPlaceholderProps {
|
|
431
|
-
in: boolean;
|
|
432
|
-
children: ReactNode;
|
|
433
|
-
}
|
|
442
|
+
interface ExitTransitionPlaceholderProps {
|
|
443
|
+
in: boolean;
|
|
444
|
+
children: ReactNode;
|
|
445
|
+
}
|
|
434
446
|
declare function ExitTransitionPlaceholder({ in: inProp, children: childrenProp, }: ExitTransitionPlaceholderProps): null | ReactElement;
|
|
435
447
|
|
|
436
448
|
declare function isEmptyReactNode(node: ReactNode): node is null | undefined | boolean | string;
|
|
437
449
|
|
|
438
|
-
declare function mergeRefs<T>(...refs: Array<null | undefined | Ref<T>>): (node: T) => void;
|
|
450
|
+
declare function mergeRefs<T>(...refs: Array<null | undefined | Ref<T>>): (node: T) => void;
|
|
439
451
|
declare function assignRef<T>(ref: Ref<T> | undefined, value: T): void;
|
|
440
452
|
|
|
441
453
|
declare function renderChildren(node: ReactNode): null | ReactElement;
|
|
@@ -444,23 +456,23 @@ declare function useResizeObserver<T extends HTMLElement>(node: null | undefined
|
|
|
444
456
|
|
|
445
457
|
declare function useUID(defaultID?: string): string;
|
|
446
458
|
|
|
447
|
-
declare type ElementVisibility = 'undetermined' | 'visible' | 'invisible';
|
|
448
|
-
interface VisibilityObserverOptions {
|
|
449
|
-
threshold?: number;
|
|
450
|
-
marginTop?: string;
|
|
451
|
-
marginLeft?: string;
|
|
452
|
-
marginRight?: string;
|
|
453
|
-
marginBottom?: string;
|
|
454
|
-
}
|
|
455
|
-
declare function useVisibilityObserver<T extends Element>(node: null | undefined | T, { threshold, marginTop, marginLeft, marginRight, marginBottom, }?: VisibilityObserverOptions): ElementVisibility;
|
|
456
|
-
interface VisibilityObserverRenderProps {
|
|
457
|
-
visibility: ElementVisibility;
|
|
458
|
-
ref: <T extends HTMLElement>(node: null | T) => void;
|
|
459
|
-
}
|
|
460
|
-
interface VisibilityObserverProps extends VisibilityObserverOptions {
|
|
461
|
-
render: (props: VisibilityObserverRenderProps) => ReactNode;
|
|
462
|
-
onChange?: (visibility: ElementVisibility) => void;
|
|
463
|
-
}
|
|
459
|
+
declare type ElementVisibility = 'undetermined' | 'visible' | 'invisible';
|
|
460
|
+
interface VisibilityObserverOptions {
|
|
461
|
+
threshold?: number;
|
|
462
|
+
marginTop?: string;
|
|
463
|
+
marginLeft?: string;
|
|
464
|
+
marginRight?: string;
|
|
465
|
+
marginBottom?: string;
|
|
466
|
+
}
|
|
467
|
+
declare function useVisibilityObserver<T extends Element>(node: null | undefined | T, { threshold, marginTop, marginLeft, marginRight, marginBottom, }?: VisibilityObserverOptions): ElementVisibility;
|
|
468
|
+
interface VisibilityObserverRenderProps {
|
|
469
|
+
visibility: ElementVisibility;
|
|
470
|
+
ref: <T extends HTMLElement>(node: null | T) => void;
|
|
471
|
+
}
|
|
472
|
+
interface VisibilityObserverProps extends VisibilityObserverOptions {
|
|
473
|
+
render: (props: VisibilityObserverRenderProps) => ReactNode;
|
|
474
|
+
onChange?: (visibility: ElementVisibility) => void;
|
|
475
|
+
}
|
|
464
476
|
declare function VisibilityObserver({ render, onChange, ...options }: VisibilityObserverProps): null | ReactElement;
|
|
465
477
|
|
|
466
|
-
export { AdaptiveToolbar, AdaptiveToolbarDropdownItem, AdaptiveToolbarItem, AdaptiveToolbarProps, AdaptiveVerticalToolbar, AdaptiveVerticalToolbarItem, AdaptiveVerticalToolbarProps, AvatarButton, AvatarButtonClassKey, AvatarButtonProps, Button, ButtonProps, CardButton, CardButtonClassKey, CardButtonProps, CheckboxField, CheckboxFieldProps, CheckboxGroupField, CheckboxGroupFieldProps, CollapseBreakpoint, CollapseProp, Color, ColorProp, ColorVariant, Column, ColumnProps, ColumnWidth, Columns, ColumnsProps, DescriptionList, DescriptionListItem, DescriptionListItemProps, DescriptionListProps, DrawerActions, DrawerActionsProps, DrawerContent, DrawerContentProps, DrawerList, DrawerListProps, DrawerTitle, DrawerTitleProps, DropdownButton, ElementVisibility, ExitTransitionPlaceholder, GridStack, GridStackProps, HorizontalAlign, InfoCard, InfoCardClassKey, InfoCardProps, Inline, InlineGrid, InlineGridProps, InlineProps, MinBreakpoint, NegativeSpaceProp, NumberField, NumberFieldProps, OverflowText, OverflowTextProps, PartialResponsivePropRecord, RadioField, RadioFieldProps, RadioGroupField, RadioGroupFieldProps, ResponsiveContext, ResponsiveContextProvider, ResponsiveContextProviderProps, ResponsiveProp, ResponsivePropPrimitive, ResponsivePropRecord, ResponsivePropTuple, ResponsivePropTupleInit, Snackbar, SnackbarCloseReason, SnackbarContent, SnackbarContentProps, SnackbarProps, SnackbarStack, SnackbarStackConsumer, SnackbarStackOptions, SnackbarStackProvider, SnackbarStackProviderProps, SnackbarVariant, SpaceProp, Stack, StackProps, SuperDispatchTheme, Tag, TagClassKey, TagProps, ThemeProvider, ThemeProviderProps, Tiles, TilesColumns, TilesProps, TilesSpace, VerticalAlign, VisibilityObserver, VisibilityObserverOptions, VisibilityObserverProps, VisibilityObserverRenderProps, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
478
|
+
export { AdaptiveToolbar, AdaptiveToolbarDropdownItem, AdaptiveToolbarItem, AdaptiveToolbarProps, AdaptiveVerticalToolbar, AdaptiveVerticalToolbarItem, AdaptiveVerticalToolbarProps, AvatarButton, AvatarButtonClassKey, AvatarButtonProps, Button, ButtonProps, CardButton, CardButtonClassKey, CardButtonProps, CheckboxField, CheckboxFieldProps, CheckboxGroupField, CheckboxGroupFieldProps, CollapseBreakpoint, CollapseProp, Color, ColorProp, ColorVariant, Column, ColumnProps, ColumnWidth, Columns, ColumnsProps, DescriptionList, DescriptionListItem, DescriptionListItemProps, DescriptionListProps, DrawerActions, DrawerActionsProps, DrawerContent, DrawerContentProps, DrawerList, DrawerListProps, DrawerTitle, DrawerTitleProps, DropdownButton, ElementVisibility, ExitTransitionPlaceholder, GridStack, GridStackProps, HorizontalAlign, InfoCard, InfoCardClassKey, InfoCardProps, InfoTooltip, Inline, InlineGrid, InlineGridProps, InlineProps, MinBreakpoint, NegativeSpaceProp, NumberField, NumberFieldProps, OverflowText, OverflowTextProps, PartialResponsivePropRecord, RadioField, RadioFieldProps, RadioGroupField, RadioGroupFieldProps, ResponsiveContext, ResponsiveContextProvider, ResponsiveContextProviderProps, ResponsiveProp, ResponsivePropPrimitive, ResponsivePropRecord, ResponsivePropTuple, ResponsivePropTupleInit, Snackbar, SnackbarCloseReason, SnackbarContent, SnackbarContentProps, SnackbarProps, SnackbarStack, SnackbarStackConsumer, SnackbarStackOptions, SnackbarStackProvider, SnackbarStackProviderProps, SnackbarVariant, SpaceProp, Stack, StackProps, SuperDispatchTheme, Tag, TagClassKey, TagProps, ThemeProvider, ThemeProviderProps, Tiles, TilesColumns, TilesProps, TilesSpace, VerticalAlign, VisibilityObserver, VisibilityObserverOptions, VisibilityObserverProps, VisibilityObserverRenderProps, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|