@mmb-digital/design-system-web 0.1.339 → 0.1.340
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/README.md +38 -0
- package/dist/index.cjs.js +31 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1460 -1386
- package/dist/index.esm.js +31 -39
- package/dist/index.esm.js.map +1 -1
- package/package.json +55 -57
- package/babel.config.js +0 -34
- package/hs_err_pid21560.log +0 -305
- package/readme.md +0 -59
- package/types/jest.config.d.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,101 +1,38 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as csstype from 'csstype';
|
|
3
|
+
import { Property } from 'csstype';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import { ReactNode, ReactElement, HTMLProps, MutableRefObject, ElementType, HTMLInputAutoCompleteAttribute, FocusEvent, ChangeEvent, FC, Ref, AriaAttributes, RefObject, MouseEvent, AriaRole, HTMLAttributeAnchorTarget, RefAttributes, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, HTMLInputTypeAttribute, Key, ComponentType, KeyboardEvent, ComponentProps, BaseSyntheticEvent, FocusEventHandler, TouchEvent, TextareaHTMLAttributes } from 'react';
|
|
3
6
|
import { MessageDescriptor } from 'react-intl';
|
|
4
|
-
import {
|
|
5
|
-
import * as _emotion_react from '@emotion/react';
|
|
7
|
+
import { PrimitiveType, FormatXMLElementFn } from 'intl-messageformat';
|
|
6
8
|
import { Theme as Theme$1 } from '@emotion/react';
|
|
9
|
+
import * as react_hook_form from 'react-hook-form';
|
|
10
|
+
import { RegisterOptions, FieldValues, FieldPath, UseFormReturn as UseFormReturn$1, SubmitErrorHandler, UseFormProps as UseFormProps$1 } from 'react-hook-form';
|
|
7
11
|
import * as afformative from 'afformative';
|
|
8
12
|
import { Formatter } from 'afformative';
|
|
9
|
-
import * as csstype from 'csstype';
|
|
10
|
-
import { Property } from 'csstype';
|
|
11
13
|
import { Locale } from 'date-fns';
|
|
12
14
|
import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
13
|
-
import * as react_hook_form from 'react-hook-form';
|
|
14
|
-
import { RegisterOptions, FieldValues, FieldPath, UseFormProps as UseFormProps$1, SubmitErrorHandler, UseFormReturn as UseFormReturn$1 } from 'react-hook-form';
|
|
15
15
|
import { FactoryOpts } from 'imask';
|
|
16
|
+
import * as _emotion_utils from '@emotion/utils';
|
|
16
17
|
import { z } from 'zod';
|
|
17
18
|
import emotionStyled from '@emotion/styled';
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
description?: ReactNode;
|
|
23
|
-
icon?: ReactNode;
|
|
24
|
-
id: string;
|
|
25
|
-
isOpen?: boolean;
|
|
26
|
-
label: ReactNode;
|
|
27
|
-
onClick?: () => void;
|
|
28
|
-
openActionAriaLabel?: string;
|
|
29
|
-
}
|
|
30
|
-
declare enum AccordionVariant {
|
|
31
|
-
default = "default",
|
|
32
|
-
table = "table"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare enum MediaType {
|
|
36
|
-
desktop = "desktop",
|
|
37
|
-
mobile = "mobile",
|
|
38
|
-
tablet = "tablet"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface MediaTypeProviderProps {
|
|
42
|
-
children: ReactNode;
|
|
43
|
-
mediaType: MediaType;
|
|
44
|
-
}
|
|
45
|
-
declare const MediaTypeProvider: React__default.FC<MediaTypeProviderProps>;
|
|
20
|
+
type MessageValues = Record<string, FormatXMLElementFn<ReactNode, ReactNode> | PrimitiveType | ReactNode>;
|
|
21
|
+
type PrimitiveMessageValues = Record<string, PrimitiveType>;
|
|
22
|
+
type IsMessageDisplayableHookReturnFunction = (messageDescriptor: MessageDescriptor) => boolean;
|
|
46
23
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
interface UseMediaTypeOptions {
|
|
51
|
-
defaultMediaType?: MediaType;
|
|
24
|
+
interface FormattedMessageProps extends MessageDescriptor {
|
|
25
|
+
values?: MessageValues;
|
|
52
26
|
}
|
|
53
|
-
|
|
54
|
-
* priorities:
|
|
55
|
-
*
|
|
56
|
-
* 1. value passed to the hook
|
|
57
|
-
* 2. value passed from the nearest provider
|
|
58
|
-
* 3. defaultValue passed in the options object to the hook
|
|
59
|
-
* 4. fallbackMediaType
|
|
60
|
-
*/
|
|
61
|
-
declare const useMediaType: (param?: UseMediaTypeParam, options?: UseMediaTypeOptions) => MediaType;
|
|
27
|
+
declare const FormattedMessage: (props: FormattedMessageProps) => react_jsx_runtime.JSX.Element;
|
|
62
28
|
|
|
63
|
-
|
|
64
|
-
dark = "dark",
|
|
65
|
-
light = "light"
|
|
66
|
-
}
|
|
67
|
-
interface ColorObject<Dark extends string = string, Light extends string = string> {
|
|
68
|
-
dark: Dark;
|
|
69
|
-
light: Light;
|
|
29
|
+
interface FormattedHtmlMessageProps extends MessageDescriptorWithPrimitiveValues {
|
|
70
30
|
}
|
|
71
|
-
|
|
72
|
-
type GetColor = <Dark extends string = string, Light extends string = string>(colorScheme: ColorScheme, colorSchemeObject: ColorObject<Dark, Light>) => Dark | Light;
|
|
73
|
-
|
|
74
|
-
declare const useChooseColor: (colorScheme: ColorScheme) => ChooseColor;
|
|
75
|
-
|
|
76
|
-
declare const getColor: GetColor;
|
|
31
|
+
declare const FormattedHtmlMessage: (props: FormattedHtmlMessageProps) => react_jsx_runtime.JSX.Element;
|
|
77
32
|
|
|
78
|
-
|
|
79
|
-
children: ReactNode;
|
|
80
|
-
colorScheme: ColorScheme;
|
|
81
|
-
}
|
|
82
|
-
declare const ColorSchemeProvider: React__default.FC<ColorSchemeProviderProps>;
|
|
33
|
+
declare const useIsMessageDisplayable: () => IsMessageDisplayableHookReturnFunction;
|
|
83
34
|
|
|
84
|
-
|
|
85
|
-
colorScheme?: ColorScheme | undefined;
|
|
86
|
-
};
|
|
87
|
-
interface UseColorSchemeOptions {
|
|
88
|
-
defaultColorScheme?: ColorScheme;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* priorities:
|
|
92
|
-
*
|
|
93
|
-
* 1. value passed to the hook
|
|
94
|
-
* 2. value passed from the nearest provider
|
|
95
|
-
* 3. defaultValue passed in the options object to the hook
|
|
96
|
-
* 4. fallbackColorScheme
|
|
97
|
-
*/
|
|
98
|
-
declare const useColorScheme: (param?: UseColorSchemeParam, options?: UseColorSchemeOptions) => ColorScheme;
|
|
35
|
+
declare const useGetFormattedHtmlMessageIfDisplayable: () => (messageDescriptor: MessageDescriptorWithPrimitiveValues) => react_jsx_runtime.JSX.Element | undefined;
|
|
99
36
|
|
|
100
37
|
type TooltipRenderParent = (getParentProps: (userProps?: HTMLProps<Element>) => Record<string, unknown>) => ReactElement;
|
|
101
38
|
declare enum TooltipPlacement {
|
|
@@ -136,42 +73,6 @@ declare enum TooltipWidth {
|
|
|
136
73
|
md = "md"
|
|
137
74
|
}
|
|
138
75
|
|
|
139
|
-
type MessageValues = Record<string, FormatXMLElementFn<ReactNode, ReactNode> | PrimitiveType | ReactNode>;
|
|
140
|
-
type PrimitiveMessageValues = Record<string, PrimitiveType>;
|
|
141
|
-
|
|
142
|
-
interface FormattedMessageProps extends MessageDescriptor {
|
|
143
|
-
values?: MessageValues;
|
|
144
|
-
}
|
|
145
|
-
declare const FormattedMessage: React__default.FC<FormattedMessageProps>;
|
|
146
|
-
|
|
147
|
-
interface FormattedHtmlMessageProps extends MessageDescriptorWithPrimitiveValues {
|
|
148
|
-
}
|
|
149
|
-
declare const FormattedHtmlMessage: (props: FormattedHtmlMessageProps) => React__default.JSX.Element;
|
|
150
|
-
|
|
151
|
-
type IsMessageDisplayableHookReturnFunction = (messageDescriptor: MessageDescriptor) => boolean;
|
|
152
|
-
|
|
153
|
-
declare const useIsMessageDisplayable: () => IsMessageDisplayableHookReturnFunction;
|
|
154
|
-
|
|
155
|
-
declare const useGetFormattedHtmlMessageIfDisplayable: () => (messageDescriptor: MessageDescriptorWithPrimitiveValues) => React__default.JSX.Element | undefined;
|
|
156
|
-
|
|
157
|
-
interface SsrProps {
|
|
158
|
-
suppressHydrationWarning?: boolean;
|
|
159
|
-
}
|
|
160
|
-
interface MessageDescriptorWithPrimitiveValues extends MessageDescriptor {
|
|
161
|
-
/**
|
|
162
|
-
* Since `FormattedHtmlMessage` uses `dangerouslySetInnerHTML` under the hood and sometimes
|
|
163
|
-
* includes user input, we need to escape the `values` prop to prevent XSS vulnerabilities.
|
|
164
|
-
*
|
|
165
|
-
* In case we need to display HTML content (and we're sure it's safe), the `htmlValues` prop
|
|
166
|
-
* should be used instead.
|
|
167
|
-
*/
|
|
168
|
-
htmlValues?: PrimitiveMessageValues;
|
|
169
|
-
values?: PrimitiveMessageValues;
|
|
170
|
-
}
|
|
171
|
-
interface MessageDescriptorWithValues extends MessageDescriptor {
|
|
172
|
-
values?: MessageValues;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
76
|
interface TooltipInfoDisplayableCheckProps extends DesignSystemBaseProps {
|
|
176
77
|
body: MessageDescriptorWithPrimitiveValues;
|
|
177
78
|
closeButtonAriaLabel?: MessageDescriptorWithPrimitiveValues;
|
|
@@ -179,13 +80,13 @@ interface TooltipInfoDisplayableCheckProps extends DesignSystemBaseProps {
|
|
|
179
80
|
title?: MessageDescriptorWithPrimitiveValues;
|
|
180
81
|
triggerAriaLabel?: MessageDescriptorWithPrimitiveValues;
|
|
181
82
|
}
|
|
182
|
-
declare const TooltipInfoDisplayableCheck: (props: TooltipInfoDisplayableCheckProps) =>
|
|
83
|
+
declare const TooltipInfoDisplayableCheck: (props: TooltipInfoDisplayableCheckProps) => react_jsx_runtime.JSX.Element | null;
|
|
183
84
|
|
|
184
85
|
interface TooltipInfoConditionalProps extends DesignSystemBaseProps, BaseTooltipInfoProps {
|
|
185
86
|
displayMethod: TooltipInfoDisplayMethod;
|
|
186
87
|
floatingElement?: Partial<TooltipDescriptor>;
|
|
187
88
|
}
|
|
188
|
-
declare const TooltipInfoConditional: (props: TooltipInfoConditionalProps) =>
|
|
89
|
+
declare const TooltipInfoConditional: (props: TooltipInfoConditionalProps) => react_jsx_runtime.JSX.Element | null;
|
|
189
90
|
|
|
190
91
|
interface CreateTooltipInfoDescriptorParam {
|
|
191
92
|
body: MessageDescriptorWithPrimitiveValues;
|
|
@@ -200,21 +101,150 @@ declare const useCreateTooltipInfoDescriptor: () => CreateTooltipInfoDescriptor;
|
|
|
200
101
|
interface TooltipInfoProps extends DesignSystemBaseProps, TooltipDelays, BaseTooltipInfoProps {
|
|
201
102
|
floatingElement: TooltipDescriptor;
|
|
202
103
|
}
|
|
203
|
-
declare const TooltipInfo: (props: TooltipInfoProps) =>
|
|
104
|
+
declare const TooltipInfo: (props: TooltipInfoProps) => react_jsx_runtime.JSX.Element;
|
|
204
105
|
|
|
205
106
|
interface TooltipGeneralProps extends DesignSystemBaseProps, TooltipDelays {
|
|
206
107
|
floatingElement: TooltipDescriptor;
|
|
207
108
|
onClose?: ((closeReason: TooltipCloseReason) => void) | undefined;
|
|
208
109
|
onOpen?: (() => void) | undefined;
|
|
209
110
|
placement?: TooltipPlacement | undefined;
|
|
210
|
-
portalRootElement?: HTMLElement |
|
|
111
|
+
portalRootElement?: HTMLElement | MutableRefObject<HTMLElement | null> | null;
|
|
211
112
|
renderParent: TooltipRenderParent;
|
|
212
113
|
}
|
|
213
|
-
declare const TooltipGeneral: (props: TooltipGeneralProps) =>
|
|
114
|
+
declare const TooltipGeneral: (props: TooltipGeneralProps) => react_jsx_runtime.JSX.Element;
|
|
214
115
|
|
|
215
116
|
type TooltipInfoDescriptorPropsSubset = Pick<TooltipInfoProps, 'floatingElement' | 'triggerAriaLabel'>;
|
|
216
117
|
declare const mapTooltipInfoDescriptorToPropsSubset: <T extends TooltipInfoDescriptor | undefined>(tooltipInfoDescriptor: T) => T extends undefined ? undefined : TooltipInfoDescriptorPropsSubset;
|
|
217
118
|
|
|
119
|
+
interface SsrProps {
|
|
120
|
+
suppressHydrationWarning?: boolean;
|
|
121
|
+
}
|
|
122
|
+
interface MessageDescriptorWithPrimitiveValues extends MessageDescriptor {
|
|
123
|
+
/**
|
|
124
|
+
* Since `FormattedHtmlMessage` uses `dangerouslySetInnerHTML` under the hood and sometimes
|
|
125
|
+
* includes user input, we need to escape the `values` prop to prevent XSS vulnerabilities.
|
|
126
|
+
*
|
|
127
|
+
* In case we need to display HTML content (and we're sure it's safe), the `htmlValues` prop
|
|
128
|
+
* should be used instead.
|
|
129
|
+
*/
|
|
130
|
+
htmlValues?: PrimitiveMessageValues;
|
|
131
|
+
values?: PrimitiveMessageValues;
|
|
132
|
+
}
|
|
133
|
+
interface MessageDescriptorWithValues extends MessageDescriptor {
|
|
134
|
+
values?: MessageValues;
|
|
135
|
+
}
|
|
136
|
+
interface FieldControlProps extends DesignSystemBaseProps {
|
|
137
|
+
describedBy?: string;
|
|
138
|
+
id?: string;
|
|
139
|
+
invalid?: boolean;
|
|
140
|
+
labelledBy?: string;
|
|
141
|
+
name?: string;
|
|
142
|
+
required?: boolean;
|
|
143
|
+
}
|
|
144
|
+
declare enum InputSize {
|
|
145
|
+
md = "md",
|
|
146
|
+
xl = "xl"
|
|
147
|
+
}
|
|
148
|
+
declare enum InputTextAlign {
|
|
149
|
+
center = "center",
|
|
150
|
+
left = "left",
|
|
151
|
+
right = "right"
|
|
152
|
+
}
|
|
153
|
+
declare enum MediaType {
|
|
154
|
+
desktop = "desktop",
|
|
155
|
+
mobile = "mobile",
|
|
156
|
+
tablet = "tablet"
|
|
157
|
+
}
|
|
158
|
+
declare enum ColorScheme {
|
|
159
|
+
dark = "dark",
|
|
160
|
+
light = "light"
|
|
161
|
+
}
|
|
162
|
+
interface ColorObject<Dark extends string = string, Light extends string = string> {
|
|
163
|
+
dark: Dark;
|
|
164
|
+
light: Light;
|
|
165
|
+
}
|
|
166
|
+
interface InputProps extends FieldControlProps {
|
|
167
|
+
ariaLabel?: string;
|
|
168
|
+
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
169
|
+
button?: ReactNode;
|
|
170
|
+
colorInput?: Property.Color | undefined;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
halfWidth?: boolean;
|
|
173
|
+
maxLength?: number;
|
|
174
|
+
name: string;
|
|
175
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
176
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
177
|
+
prefix?: ReactNode;
|
|
178
|
+
size: InputSize;
|
|
179
|
+
suffix?: ReactNode;
|
|
180
|
+
value?: string;
|
|
181
|
+
}
|
|
182
|
+
declare enum FieldOptionality {
|
|
183
|
+
optional = "optional",
|
|
184
|
+
optionalWithoutLabelSuffix = "optionalWithoutLabelSuffix",
|
|
185
|
+
required = "required"
|
|
186
|
+
}
|
|
187
|
+
interface InputLabelPassthroughProps {
|
|
188
|
+
label?: ReactNode;
|
|
189
|
+
labelAs?: ElementType;
|
|
190
|
+
/**
|
|
191
|
+
* Visually hidden text for screen readers providing additional info, such as the availability of a tooltip.
|
|
192
|
+
* Prefer using `hiddenHintText` in `FieldWrapper` where possible.
|
|
193
|
+
*/
|
|
194
|
+
labelHiddenText?: string;
|
|
195
|
+
labelId?: string;
|
|
196
|
+
labelSuffix?: ReactNode;
|
|
197
|
+
tooltip?: TooltipInfoDescriptor;
|
|
198
|
+
}
|
|
199
|
+
declare enum LabelTooltipPosition {
|
|
200
|
+
inline = "inline",
|
|
201
|
+
rightCenter = "rightCenter"
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
interface MediaTypeProviderProps {
|
|
205
|
+
children: ReactNode;
|
|
206
|
+
mediaType: MediaType;
|
|
207
|
+
}
|
|
208
|
+
declare const MediaTypeProvider: FC<MediaTypeProviderProps>;
|
|
209
|
+
|
|
210
|
+
type UseMediaTypeParam = MediaType | {
|
|
211
|
+
mediaType?: MediaType | undefined;
|
|
212
|
+
};
|
|
213
|
+
interface UseMediaTypeOptions {
|
|
214
|
+
defaultMediaType?: MediaType;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* priorities:
|
|
218
|
+
*
|
|
219
|
+
* 1. value passed to the hook
|
|
220
|
+
* 2. value passed from the nearest provider
|
|
221
|
+
* 3. defaultValue passed in the options object to the hook
|
|
222
|
+
* 4. fallbackMediaType
|
|
223
|
+
*/
|
|
224
|
+
declare const useMediaType: (param?: UseMediaTypeParam, options?: UseMediaTypeOptions) => MediaType;
|
|
225
|
+
|
|
226
|
+
interface ColorSchemeProviderProps {
|
|
227
|
+
children: ReactNode;
|
|
228
|
+
colorScheme: ColorScheme;
|
|
229
|
+
}
|
|
230
|
+
declare const ColorSchemeProvider: FC<ColorSchemeProviderProps>;
|
|
231
|
+
|
|
232
|
+
type UseColorSchemeParam = ColorScheme | {
|
|
233
|
+
colorScheme?: ColorScheme | undefined;
|
|
234
|
+
};
|
|
235
|
+
interface UseColorSchemeOptions {
|
|
236
|
+
defaultColorScheme?: ColorScheme;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* priorities:
|
|
240
|
+
*
|
|
241
|
+
* 1. value passed to the hook
|
|
242
|
+
* 2. value passed from the nearest provider
|
|
243
|
+
* 3. defaultValue passed in the options object to the hook
|
|
244
|
+
* 4. fallbackColorScheme
|
|
245
|
+
*/
|
|
246
|
+
declare const useColorScheme: (param?: UseColorSchemeParam, options?: UseColorSchemeOptions) => ColorScheme;
|
|
247
|
+
|
|
218
248
|
interface DesignSystemFullMessages {
|
|
219
249
|
button: {
|
|
220
250
|
busyGeneric?: ReactNode;
|
|
@@ -257,19 +287,37 @@ interface DesignSystemProviderProps {
|
|
|
257
287
|
* It is recommended to use this provider only once in a component tree, ideally near the root.
|
|
258
288
|
* It is possible to override every provider for a subpart of the component tree.
|
|
259
289
|
*/
|
|
260
|
-
declare const DesignSystemProvider: (props: DesignSystemProviderProps) =>
|
|
290
|
+
declare const DesignSystemProvider: (props: DesignSystemProviderProps) => ReactNode;
|
|
261
291
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
292
|
+
declare const getClampedFontSize: (fontSize: string) => string;
|
|
293
|
+
|
|
294
|
+
type GetColor = <Dark extends string = string, Light extends string = string>(colorScheme: ColorScheme, colorSchemeObject: ColorObject<Dark, Light>) => Dark | Light;
|
|
295
|
+
declare const getColor: GetColor;
|
|
296
|
+
|
|
297
|
+
declare const isRenderable: (node: ReactNode) => node is Exclude<ReactNode, boolean | null | undefined>;
|
|
298
|
+
|
|
299
|
+
declare const mergeRefs: <T>(...refs: (Ref<T> | undefined)[]) => Ref<T>;
|
|
300
|
+
|
|
301
|
+
declare const pxToRem: (px: number | string, base?: number) => string;
|
|
302
|
+
|
|
303
|
+
declare const renderReactNodeArray: (items: ReactNode[], separator?: ReactNode) => ReactElement<unknown, string | react.JSXElementConstructor<any>>[] | null;
|
|
304
|
+
|
|
305
|
+
declare const styled: typeof emotionStyled;
|
|
306
|
+
|
|
307
|
+
type ChooseColor = <Dark extends string = string, Light extends string = string>(colorSchemeObject: ColorObject<Dark, Light>) => Dark | Light;
|
|
308
|
+
declare const useChooseColor: (colorScheme: ColorScheme) => ChooseColor;
|
|
309
|
+
|
|
310
|
+
interface UseDesignSystemParam {
|
|
311
|
+
colorScheme?: ColorScheme | undefined;
|
|
312
|
+
mediaType?: MediaType | undefined;
|
|
313
|
+
}
|
|
314
|
+
interface UseDesignSystemOptions extends UseColorSchemeOptions, UseMediaTypeOptions {
|
|
315
|
+
}
|
|
316
|
+
declare const useDesignSystem: (param?: UseDesignSystemParam, options?: UseDesignSystemOptions) => {
|
|
317
|
+
colorScheme: ColorScheme;
|
|
318
|
+
mediaType: MediaType;
|
|
319
|
+
chooseColor: ChooseColor;
|
|
320
|
+
};
|
|
273
321
|
|
|
274
322
|
interface DesignSystemBaseProps {
|
|
275
323
|
colorScheme?: ColorScheme;
|
|
@@ -285,8 +333,8 @@ interface FieldLabelStoreProviderProps {
|
|
|
285
333
|
*
|
|
286
334
|
* Field labels can be registered via the `useRegisterFieldLabel` hook, and consumed via the `useFieldLabels` hook.
|
|
287
335
|
**/
|
|
288
|
-
declare const FieldLabelStoreProvider: (props: FieldLabelStoreProviderProps) =>
|
|
289
|
-
declare const useFieldLabels: () => Record<string,
|
|
336
|
+
declare const FieldLabelStoreProvider: (props: FieldLabelStoreProviderProps) => react_jsx_runtime.JSX.Element;
|
|
337
|
+
declare const useFieldLabels: () => Record<string, ReactNode>;
|
|
290
338
|
declare const useRegisterFieldLabel: () => (name: string, label: ReactNode) => void;
|
|
291
339
|
|
|
292
340
|
interface FieldConfig {
|
|
@@ -300,14 +348,14 @@ interface FieldConfigProviderProps extends FieldConfig {
|
|
|
300
348
|
*
|
|
301
349
|
* @deprecated Use `DesignSystemProvider` with the `messages` prop instead.
|
|
302
350
|
*/
|
|
303
|
-
declare const FieldConfigProvider: (props: FieldConfigProviderProps) =>
|
|
351
|
+
declare const FieldConfigProvider: (props: FieldConfigProviderProps) => react_jsx_runtime.JSX.Element;
|
|
304
352
|
declare const useFieldConfig: () => FieldConfig;
|
|
305
353
|
|
|
306
354
|
interface DesignSystemMessagesProviderProps {
|
|
307
355
|
children: ReactNode;
|
|
308
356
|
messages: DesignSystemPartialMessages;
|
|
309
357
|
}
|
|
310
|
-
declare const DesignSystemMessagesProvider: (props: DesignSystemMessagesProviderProps) =>
|
|
358
|
+
declare const DesignSystemMessagesProvider: (props: DesignSystemMessagesProviderProps) => react_jsx_runtime.JSX.Element;
|
|
311
359
|
|
|
312
360
|
declare const useDesignSystemMessages: () => DesignSystemFullMessages;
|
|
313
361
|
|
|
@@ -315,57 +363,48 @@ interface DesignSystemPropDefaultsProviderProps {
|
|
|
315
363
|
children: ReactNode;
|
|
316
364
|
defaults: DesignSystemPartialPropDefaults;
|
|
317
365
|
}
|
|
318
|
-
declare const DesignSystemPropDefaultsProvider: (props: DesignSystemPropDefaultsProviderProps) =>
|
|
366
|
+
declare const DesignSystemPropDefaultsProvider: (props: DesignSystemPropDefaultsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
319
367
|
|
|
320
368
|
declare const useDesignSystemPropDefaults: () => DesignSystemFullPropDefaults;
|
|
321
369
|
|
|
370
|
+
interface AccordionItemType {
|
|
371
|
+
closeActionAriaLabel?: string;
|
|
372
|
+
content: ReactNode;
|
|
373
|
+
description?: ReactNode;
|
|
374
|
+
icon?: ReactNode;
|
|
375
|
+
id: string;
|
|
376
|
+
isOpen?: boolean;
|
|
377
|
+
label: ReactNode;
|
|
378
|
+
onClick?: () => void;
|
|
379
|
+
openActionAriaLabel?: string;
|
|
380
|
+
}
|
|
381
|
+
declare enum AccordionVariant {
|
|
382
|
+
default = "default",
|
|
383
|
+
table = "table"
|
|
384
|
+
}
|
|
385
|
+
|
|
322
386
|
interface AccordionProps extends DesignSystemBaseProps {
|
|
323
387
|
data: AccordionItemType[];
|
|
324
388
|
variant?: AccordionVariant;
|
|
325
389
|
}
|
|
326
|
-
declare const Accordion: (props: AccordionProps) =>
|
|
390
|
+
declare const Accordion: (props: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
327
391
|
|
|
328
392
|
interface AccordionItemProps extends AccordionItemType, DesignSystemBaseProps {
|
|
329
393
|
variant: AccordionVariant;
|
|
330
394
|
}
|
|
331
|
-
declare const AccordionItem: (props: AccordionItemProps) =>
|
|
395
|
+
declare const AccordionItem: (props: AccordionItemProps) => react_jsx_runtime.JSX.Element;
|
|
332
396
|
|
|
333
397
|
interface AccordionContentType extends DesignSystemBaseProps {
|
|
334
398
|
children: ReactNode;
|
|
335
399
|
}
|
|
336
|
-
declare const AccordionContent: (props: AccordionContentType) =>
|
|
400
|
+
declare const AccordionContent: (props: AccordionContentType) => react_jsx_runtime.JSX.Element;
|
|
337
401
|
|
|
338
402
|
interface AccordionKeyValueProps extends DesignSystemBaseProps {
|
|
339
403
|
colorScheme?: ColorScheme;
|
|
340
404
|
label: ReactNode;
|
|
341
405
|
value: ReactNode;
|
|
342
406
|
}
|
|
343
|
-
declare const AccordionKeyValue: (props: AccordionKeyValueProps) =>
|
|
344
|
-
|
|
345
|
-
declare enum ButtonStyle {
|
|
346
|
-
primary = "primary",
|
|
347
|
-
secondary = "secondary",
|
|
348
|
-
tertiary = "tertiary",
|
|
349
|
-
link = "link"
|
|
350
|
-
}
|
|
351
|
-
declare enum ButtonSize {
|
|
352
|
-
xs = "xs",
|
|
353
|
-
sm = "sm",
|
|
354
|
-
md = "md",
|
|
355
|
-
xl = "xl",
|
|
356
|
-
xxl = "xxl"
|
|
357
|
-
}
|
|
358
|
-
declare enum ButtonType {
|
|
359
|
-
anchor = "anchor",
|
|
360
|
-
button = "button",
|
|
361
|
-
reset = "reset",
|
|
362
|
-
submit = "submit"
|
|
363
|
-
}
|
|
364
|
-
declare enum ButtonContentAlign {
|
|
365
|
-
center = "center",
|
|
366
|
-
left = "left",
|
|
367
|
-
right = "right"
|
|
368
|
-
}
|
|
407
|
+
declare const AccordionKeyValue: (props: AccordionKeyValueProps) => react_jsx_runtime.JSX.Element;
|
|
369
408
|
|
|
370
409
|
declare enum IconSystemType {
|
|
371
410
|
arrowDown = "arrowDown",
|
|
@@ -410,6 +449,10 @@ declare enum IconSystemSize {
|
|
|
410
449
|
big = "big",
|
|
411
450
|
small = "small"
|
|
412
451
|
}
|
|
452
|
+
interface IconSystemSvgProps {
|
|
453
|
+
fill: string;
|
|
454
|
+
stroke: string;
|
|
455
|
+
}
|
|
413
456
|
|
|
414
457
|
interface IconSystemProps {
|
|
415
458
|
ariaHidden?: boolean;
|
|
@@ -419,7 +462,32 @@ interface IconSystemProps {
|
|
|
419
462
|
stroke?: string;
|
|
420
463
|
type: IconSystemType;
|
|
421
464
|
}
|
|
422
|
-
declare const IconSystem: (props: IconSystemProps) =>
|
|
465
|
+
declare const IconSystem: (props: IconSystemProps) => react_jsx_runtime.JSX.Element;
|
|
466
|
+
|
|
467
|
+
declare enum ButtonStyle {
|
|
468
|
+
primary = "primary",
|
|
469
|
+
secondary = "secondary",
|
|
470
|
+
tertiary = "tertiary",
|
|
471
|
+
link = "link"
|
|
472
|
+
}
|
|
473
|
+
declare enum ButtonSize {
|
|
474
|
+
xs = "xs",
|
|
475
|
+
sm = "sm",
|
|
476
|
+
md = "md",
|
|
477
|
+
xl = "xl",
|
|
478
|
+
xxl = "xxl"
|
|
479
|
+
}
|
|
480
|
+
declare enum ButtonType {
|
|
481
|
+
anchor = "anchor",
|
|
482
|
+
button = "button",
|
|
483
|
+
reset = "reset",
|
|
484
|
+
submit = "submit"
|
|
485
|
+
}
|
|
486
|
+
declare enum ButtonContentAlign {
|
|
487
|
+
center = "center",
|
|
488
|
+
left = "left",
|
|
489
|
+
right = "right"
|
|
490
|
+
}
|
|
423
491
|
|
|
424
492
|
interface ButtonProps extends SsrProps, DesignSystemBaseProps, AriaAttributes {
|
|
425
493
|
ariaDisabled?: boolean;
|
|
@@ -447,7 +515,7 @@ interface ButtonProps extends SsrProps, DesignSystemBaseProps, AriaAttributes {
|
|
|
447
515
|
download?: boolean | string;
|
|
448
516
|
fullWidth?: boolean;
|
|
449
517
|
href?: string;
|
|
450
|
-
htmlRef?: RefObject<HTMLAnchorElement | HTMLButtonElement>;
|
|
518
|
+
htmlRef?: RefObject<HTMLAnchorElement | HTMLButtonElement | null>;
|
|
451
519
|
iconLeft?: ReactNode;
|
|
452
520
|
iconRight?: ReactNode;
|
|
453
521
|
iconSystemLeft?: IconSystemType;
|
|
@@ -461,7 +529,7 @@ interface ButtonProps extends SsrProps, DesignSystemBaseProps, AriaAttributes {
|
|
|
461
529
|
target?: HTMLAttributeAnchorTarget;
|
|
462
530
|
type: ButtonType;
|
|
463
531
|
}
|
|
464
|
-
declare const Button: (props: ButtonProps) =>
|
|
532
|
+
declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
465
533
|
|
|
466
534
|
declare enum Spacing {
|
|
467
535
|
none = "none",
|
|
@@ -497,7 +565,7 @@ declare enum FontWeight {
|
|
|
497
565
|
heavy900 = "heavy",
|
|
498
566
|
ultra950 = "ultra"
|
|
499
567
|
}
|
|
500
|
-
declare const resolveFontWeightValue: (theme: Theme$1, fontWeight: FontWeight) => 100 | 200 |
|
|
568
|
+
declare const resolveFontWeightValue: (theme: Theme$1, fontWeight: FontWeight) => 100 | 200 | 500 | 300 | 400 | 600 | 700 | 800 | 900 | 950;
|
|
501
569
|
|
|
502
570
|
declare const theme: {
|
|
503
571
|
readonly palette: {
|
|
@@ -1073,89 +1141,108 @@ declare enum TextDecoration {
|
|
|
1073
1141
|
underline = "underline"
|
|
1074
1142
|
}
|
|
1075
1143
|
declare const resolveTextDecorationValue: (textDecoration: TextDecoration) => "none !important" | "underline";
|
|
1076
|
-
declare const getTextDecorationStyle: (textDecoration?: TextDecoration) => "" |
|
|
1144
|
+
declare const getTextDecorationStyle: (textDecoration?: TextDecoration) => "" | _emotion_utils.SerializedStyles;
|
|
1077
1145
|
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1146
|
+
declare enum ButtonsLayoutAlign {
|
|
1147
|
+
center = "center",
|
|
1148
|
+
end = "end",
|
|
1149
|
+
spaceBetween = "spaceBetween",
|
|
1150
|
+
start = "start",
|
|
1151
|
+
stretch = "stretch"
|
|
1152
|
+
}
|
|
1153
|
+
declare enum ButtonsLayoutDirection {
|
|
1154
|
+
column = "column",
|
|
1155
|
+
columnReverse = "columnReverse",
|
|
1156
|
+
row = "row",
|
|
1157
|
+
rowReverse = "rowReverse"
|
|
1088
1158
|
}
|
|
1089
|
-
declare const SpanButton: (props: SpanButtonProps) => React__default.JSX.Element;
|
|
1090
1159
|
|
|
1091
|
-
interface
|
|
1092
|
-
|
|
1093
|
-
|
|
1160
|
+
interface ButtonsLayoutProps extends SsrProps {
|
|
1161
|
+
align: ButtonsLayoutAlign;
|
|
1162
|
+
buttons: ReactNode[];
|
|
1163
|
+
direction: ButtonsLayoutDirection;
|
|
1164
|
+
gap?: Spacing;
|
|
1165
|
+
wrap?: FlexWrap;
|
|
1094
1166
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1167
|
+
declare const ButtonsLayout: (props: ButtonsLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1168
|
+
|
|
1169
|
+
interface CalculatorResultHeader {
|
|
1170
|
+
bottom?: ReactElement | string | undefined;
|
|
1171
|
+
main?: ReactElement | string | undefined;
|
|
1172
|
+
top?: ReactElement | string | undefined;
|
|
1173
|
+
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1174
|
+
topHiddenText?: string;
|
|
1175
|
+
topTooltip?: TooltipInfoDescriptor;
|
|
1098
1176
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1177
|
+
interface CalculatorResultBodyItem {
|
|
1178
|
+
left: {
|
|
1179
|
+
element: ReactElement | string;
|
|
1180
|
+
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1181
|
+
hiddenText?: string;
|
|
1182
|
+
tooltip?: TooltipInfoDescriptor;
|
|
1183
|
+
};
|
|
1184
|
+
right: {
|
|
1185
|
+
element: ReactElement | string;
|
|
1186
|
+
};
|
|
1102
1187
|
}
|
|
1103
|
-
interface
|
|
1104
|
-
|
|
1105
|
-
|
|
1188
|
+
interface CalculatorResultMain {
|
|
1189
|
+
element: ReactElement | string;
|
|
1190
|
+
topSeparator?: boolean;
|
|
1106
1191
|
}
|
|
1107
|
-
interface
|
|
1108
|
-
|
|
1109
|
-
|
|
1192
|
+
interface CalculatorResultModalDescriptor {
|
|
1193
|
+
content: ReactElement | string;
|
|
1194
|
+
modalCloseButtonAriaLabel?: string;
|
|
1195
|
+
triggerText: ReactElement | string;
|
|
1110
1196
|
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
clampMin: number;
|
|
1115
|
-
effectiveMax: number;
|
|
1116
|
-
effectiveMin: number;
|
|
1117
|
-
max: number;
|
|
1118
|
-
min: number;
|
|
1119
|
-
oldValue: number;
|
|
1197
|
+
declare enum CalculatorResultInfoPosition {
|
|
1198
|
+
inBox = "inBox",
|
|
1199
|
+
underBox = "underBox"
|
|
1120
1200
|
}
|
|
1121
|
-
type SliderInputLimitExceededLiveTextFormatter = Formatter<number, string, string, SliderInputLimitExceededLiveTextFormatterDataContext>;
|
|
1122
1201
|
|
|
1123
|
-
interface
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
max: number;
|
|
1133
|
-
min: number;
|
|
1134
|
-
minMaxLabels: SliderMinMaxLabels | undefined;
|
|
1135
|
-
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
1136
|
-
/** it is triggered during movement */
|
|
1137
|
-
onChange: (value: number) => void;
|
|
1138
|
-
/** it is triggered after the user drops the handle */
|
|
1139
|
-
onFinalChange: (value: number) => void;
|
|
1140
|
-
stepType: SliderStepType;
|
|
1141
|
-
steps: SliderSteps;
|
|
1142
|
-
value: number;
|
|
1202
|
+
interface CalculatorResultProps extends DesignSystemBaseProps {
|
|
1203
|
+
bodyItems: CalculatorResultBodyItem[];
|
|
1204
|
+
containerRef?: RefObject<HTMLDivElement | null>;
|
|
1205
|
+
description?: ReactElement | string;
|
|
1206
|
+
header: CalculatorResultHeader;
|
|
1207
|
+
infoPosition?: CalculatorResultInfoPosition;
|
|
1208
|
+
main: CalculatorResultMain;
|
|
1209
|
+
modal?: CalculatorResultModalDescriptor;
|
|
1210
|
+
resultBoxRef?: RefObject<HTMLDivElement | null>;
|
|
1143
1211
|
}
|
|
1144
|
-
declare const
|
|
1212
|
+
declare const CalculatorResult: (props: CalculatorResultProps) => react_jsx_runtime.JSX.Element;
|
|
1145
1213
|
|
|
1146
|
-
interface
|
|
1147
|
-
|
|
1148
|
-
|
|
1214
|
+
interface CheckboxControlProps {
|
|
1215
|
+
ariaLabel?: string;
|
|
1216
|
+
checked?: boolean;
|
|
1217
|
+
colorScheme?: ColorScheme;
|
|
1218
|
+
disabled?: boolean;
|
|
1219
|
+
focused?: boolean;
|
|
1220
|
+
id?: string;
|
|
1221
|
+
invalid?: boolean;
|
|
1222
|
+
name: string;
|
|
1223
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
1224
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1225
|
+
value?: string;
|
|
1149
1226
|
}
|
|
1227
|
+
declare const CheckboxControl: react.ForwardRefExoticComponent<CheckboxControlProps & react.RefAttributes<HTMLInputElement>>;
|
|
1150
1228
|
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1229
|
+
declare enum CheckboxPosition {
|
|
1230
|
+
left = "left",
|
|
1231
|
+
right = "right"
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
interface CheckboxProps extends CheckboxControlProps, InputLabelPassthroughProps, DesignSystemBaseProps {
|
|
1235
|
+
errorMessage?: ReactNode;
|
|
1236
|
+
labelColor?: string;
|
|
1237
|
+
position?: CheckboxPosition;
|
|
1238
|
+
tooltipPosition?: LabelTooltipPosition;
|
|
1239
|
+
}
|
|
1240
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
1241
|
+
|
|
1242
|
+
interface CheckboxFieldProps extends Omit<CheckboxProps, 'onChange' | 'value'> {
|
|
1243
|
+
options?: RegisterOptions;
|
|
1157
1244
|
}
|
|
1158
|
-
declare const
|
|
1245
|
+
declare const CheckboxField: (props: CheckboxFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1159
1246
|
|
|
1160
1247
|
declare enum IconProductType {
|
|
1161
1248
|
atm = "atm",
|
|
@@ -1208,279 +1295,318 @@ interface IconProductProps {
|
|
|
1208
1295
|
type: IconProductType;
|
|
1209
1296
|
variant?: IconProductVariant | undefined;
|
|
1210
1297
|
}
|
|
1211
|
-
declare const IconProduct: (props: IconProductProps) =>
|
|
1298
|
+
declare const IconProduct: (props: IconProductProps) => react_jsx_runtime.JSX.Element;
|
|
1212
1299
|
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1300
|
+
interface CircularProgressBarProps extends DesignSystemBaseProps {
|
|
1301
|
+
iconProduct: IconProductType;
|
|
1302
|
+
progress: number;
|
|
1216
1303
|
}
|
|
1217
|
-
declare
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1304
|
+
declare const CircularProgressBar: (props: CircularProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
1305
|
+
|
|
1306
|
+
type ComboBoxItem = boolean | number | object | string | null;
|
|
1307
|
+
declare enum ComboBoxItemOrderSource {
|
|
1308
|
+
formatter = "formatter",
|
|
1309
|
+
value = "value"
|
|
1221
1310
|
}
|
|
1222
|
-
interface
|
|
1223
|
-
|
|
1224
|
-
|
|
1311
|
+
interface ComboBoxItemOrder {
|
|
1312
|
+
compareFn?: (a: unknown, b: unknown) => number;
|
|
1313
|
+
source: ComboBoxItemOrderSource;
|
|
1225
1314
|
}
|
|
1315
|
+
declare enum ComboBoxValueType {
|
|
1316
|
+
custom = "custom",
|
|
1317
|
+
item = "item"
|
|
1318
|
+
}
|
|
1319
|
+
type ComboBoxValue<TItem> = {
|
|
1320
|
+
input: string;
|
|
1321
|
+
type: ComboBoxValueType.custom;
|
|
1322
|
+
} | {
|
|
1323
|
+
item: TItem;
|
|
1324
|
+
type: ComboBoxValueType.item;
|
|
1325
|
+
} | null;
|
|
1226
1326
|
|
|
1227
|
-
interface
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
id?: string;
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1327
|
+
interface InputBaseProps extends RefAttributes<HTMLInputElement>, FieldControlProps, Pick<AriaAttributes, 'aria-activedescendant' | 'aria-autocomplete' | 'aria-controls' | 'aria-describedby' | 'aria-expanded' | 'aria-invalid' | 'aria-label' | 'aria-labelledby' | 'aria-required'> {
|
|
1328
|
+
ariaLabel?: string;
|
|
1329
|
+
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
1330
|
+
button?: ReactNode;
|
|
1331
|
+
colorInput?: Property.Color | undefined;
|
|
1332
|
+
disabled?: boolean;
|
|
1333
|
+
halfWidth?: boolean;
|
|
1334
|
+
icon?: ReactNode;
|
|
1335
|
+
iconSystem?: IconSystemType;
|
|
1336
|
+
id?: string | undefined;
|
|
1337
|
+
isPastingDisabled?: boolean;
|
|
1338
|
+
maxLength?: number;
|
|
1339
|
+
name: string;
|
|
1340
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
1341
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1342
|
+
onClick?: MouseEventHandler;
|
|
1343
|
+
onFocus?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1344
|
+
onKeyDown?: KeyboardEventHandler;
|
|
1345
|
+
placeholder?: string;
|
|
1346
|
+
prefix?: ReactNode;
|
|
1347
|
+
prefixColor?: Property.Color;
|
|
1348
|
+
role?: HTMLAttributes<HTMLInputElement>['role'];
|
|
1349
|
+
size?: InputSize;
|
|
1350
|
+
suffix?: ReactNode;
|
|
1351
|
+
textAlign?: InputTextAlign;
|
|
1352
|
+
type?: HTMLInputTypeAttribute;
|
|
1353
|
+
value?: string;
|
|
1354
|
+
weight?: FontWeight;
|
|
1244
1355
|
}
|
|
1245
|
-
declare const
|
|
1356
|
+
declare const InputBase: react.ForwardRefExoticComponent<Omit<InputBaseProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
1246
1357
|
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
rowgroup = "rowgroup"
|
|
1358
|
+
interface ComboBoxControlProps<TItem extends ComboBoxItem> extends Omit<FieldControlProps, 'name'>, Pick<InputBaseProps, 'ariaLabel' | 'disabled' | 'icon' | 'isPastingDisabled' | 'maxLength' | 'name' | 'onFocus' | 'placeholder' | 'required'> {
|
|
1359
|
+
formatter?: Formatter<TItem, ReactNode, number | string>;
|
|
1360
|
+
getItemKey?: (item: TItem | null) => number | string;
|
|
1361
|
+
inputPrefix?: ReactNode;
|
|
1362
|
+
inputSize?: InputSize;
|
|
1363
|
+
inputSuffix?: ReactNode;
|
|
1364
|
+
inputTextAlign?: InputTextAlign;
|
|
1365
|
+
inputWeight?: FontWeight;
|
|
1366
|
+
itemOrder?: ComboBoxItemOrder;
|
|
1367
|
+
items: TItem[];
|
|
1368
|
+
onBlur?: () => void;
|
|
1369
|
+
onChange: (value: ComboBoxValue<TItem>) => void;
|
|
1370
|
+
shouldHighlightFirstItem?: boolean;
|
|
1371
|
+
value: ComboBoxValue<TItem>;
|
|
1262
1372
|
}
|
|
1373
|
+
declare const ComboBoxControl: <TItem extends ComboBoxItem>(props: ComboBoxControlProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement;
|
|
1263
1374
|
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
width?: Property.Width;
|
|
1375
|
+
declare enum FieldWrapperLayout {
|
|
1376
|
+
horizontal = "horizontal",
|
|
1377
|
+
vertical = "vertical"
|
|
1268
1378
|
}
|
|
1269
|
-
declare const Table: (props: TableProps) => React__default.JSX.Element;
|
|
1270
1379
|
|
|
1271
|
-
|
|
1272
|
-
|
|
1380
|
+
type FieldWrapperControlProps = Required<Pick<FieldControlProps, 'describedBy' | 'id' | 'invalid' | 'labelledBy' | 'required'>>;
|
|
1381
|
+
declare enum FieldAddonPosition {
|
|
1382
|
+
afterControl = "afterControl",
|
|
1383
|
+
beforeControl = "beforeControl",
|
|
1384
|
+
belowControl = "belowControl",
|
|
1385
|
+
bottom = "bottom"
|
|
1273
1386
|
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
interface TableDataProps extends DesignSystemBaseProps {
|
|
1387
|
+
interface FieldAddon {
|
|
1277
1388
|
children: ReactNode;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
textAlign?: TableTextAlign;
|
|
1281
|
-
variant: TableVariant;
|
|
1389
|
+
key: Key;
|
|
1390
|
+
position: FieldAddonPosition;
|
|
1282
1391
|
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1392
|
+
interface FieldWrapperProps extends DesignSystemBaseProps, InputLabelPassthroughProps {
|
|
1393
|
+
addons?: FieldAddon[];
|
|
1394
|
+
children?: ReactNode | ((controlProps: FieldWrapperControlProps) => ReactNode);
|
|
1395
|
+
controlId?: string;
|
|
1396
|
+
controlMobileWidth?: Property.Width;
|
|
1397
|
+
/** `controlSection` represents the right section in horizontal layout. */
|
|
1398
|
+
controlSectionWidth?: Property.Width;
|
|
1399
|
+
controlWidth?: Property.Width;
|
|
1400
|
+
errorMessage?: ReactNode;
|
|
1401
|
+
/** Visually hidden text for screen readers providing additional info, such as the availability of a tooltip. */
|
|
1402
|
+
hiddenHintText?: ReactNode;
|
|
1403
|
+
hintText?: ReactNode;
|
|
1404
|
+
/** @default isRenderable(errorMessage) */
|
|
1405
|
+
invalid?: boolean;
|
|
1406
|
+
layout?: FieldWrapperLayout;
|
|
1407
|
+
/** Necessary for registration of `label` to `FieldLabelStore`. */
|
|
1408
|
+
name?: string;
|
|
1409
|
+
note?: ReactNode;
|
|
1410
|
+
/** @default FieldOptionality.required */
|
|
1411
|
+
optionality?: FieldOptionality;
|
|
1412
|
+
successMessage?: ReactNode;
|
|
1287
1413
|
}
|
|
1288
|
-
declare const
|
|
1414
|
+
declare const FieldWrapper: (props: FieldWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
1289
1415
|
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
children: ReactNode;
|
|
1293
|
-
delimiter?: boolean;
|
|
1294
|
-
headers?: string;
|
|
1295
|
-
scope?: TableHeadScope;
|
|
1296
|
-
textAlign?: TableTextAlign;
|
|
1297
|
-
variant: TableVariant;
|
|
1298
|
-
width?: Property.Width;
|
|
1299
|
-
}
|
|
1300
|
-
declare const TableHeadData: (props: TableHeadDataProps) => React__default.JSX.Element;
|
|
1416
|
+
type WithFieldWrapperProps = Omit<FieldWrapperProps, 'children' | 'controlId' | 'id'>;
|
|
1417
|
+
declare const withFieldWrapper: <TProps extends FieldControlProps, TElement extends HTMLElement>(FieldControl: ComponentType<TProps>) => react.ForwardRefExoticComponent<react.PropsWithoutRef<TProps & WithFieldWrapperProps> & react.RefAttributes<TElement>>;
|
|
1301
1418
|
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
variant: TableVariant;
|
|
1305
|
-
}
|
|
1306
|
-
declare const TableRow: (props: TableRowProps) => React__default.JSX.Element;
|
|
1419
|
+
type ComboBoxProps<TItem extends ComboBoxItem> = ComboBoxControlProps<TItem> & Omit<FieldWrapperProps, 'children'>;
|
|
1420
|
+
declare const ComboBox: <TItem extends ComboBoxItem>(props: ComboBoxProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement;
|
|
1307
1421
|
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}
|
|
1314
|
-
declare enum TabsSize {
|
|
1315
|
-
xs = "xs",
|
|
1316
|
-
sm = "sm",
|
|
1317
|
-
md = "md",
|
|
1318
|
-
lg = "lg"
|
|
1319
|
-
}
|
|
1320
|
-
declare enum TabsActiveTabDefaultPosition {
|
|
1321
|
-
center = "center",
|
|
1322
|
-
noScrolling = "noScrolling",
|
|
1323
|
-
scrollOnlyWhenNotVisible = "scrollOnlyWhenNotVisible"
|
|
1324
|
-
}
|
|
1325
|
-
declare enum TabsWrap {
|
|
1326
|
-
noWrap = "noWrap",
|
|
1327
|
-
/**
|
|
1328
|
-
* Tabs wrap to the next line based on the container width instead of scrolling.
|
|
1329
|
-
* Each tab sizes according to its text content.
|
|
1330
|
-
* This option is intended only for {@link TabsVariant.infoTags}.
|
|
1331
|
-
* When enabled, {@link TabsActiveTabDefaultPosition} has no effect.
|
|
1332
|
-
*/
|
|
1333
|
-
wrap = "wrap"
|
|
1334
|
-
}
|
|
1335
|
-
interface TabItemType {
|
|
1336
|
-
ariaControls?: string;
|
|
1337
|
-
as?: ElementType;
|
|
1338
|
-
href?: string;
|
|
1339
|
-
icon?: ReactNode;
|
|
1340
|
-
id: string;
|
|
1341
|
-
isActive?: boolean;
|
|
1342
|
-
onActivate?: () => void;
|
|
1343
|
-
text?: ReactElement | string;
|
|
1344
|
-
}
|
|
1345
|
-
interface TabsType {
|
|
1346
|
-
activeTabDefaultPosition: TabsActiveTabDefaultPosition;
|
|
1347
|
-
fullWidth?: boolean;
|
|
1348
|
-
/**
|
|
1349
|
-
* Controls the gap between individual tab items.
|
|
1350
|
-
* Defaults to {@link Spacing.xxs}.
|
|
1351
|
-
*/
|
|
1352
|
-
gap?: Spacing;
|
|
1353
|
-
/**
|
|
1354
|
-
* Removes the border and background from the tabs container.
|
|
1355
|
-
* Defaults to `false`.
|
|
1356
|
-
*/
|
|
1357
|
-
noBorder?: boolean;
|
|
1358
|
-
size?: TabsSize;
|
|
1359
|
-
tabItems: TabItemType[];
|
|
1360
|
-
variant: TabsVariant;
|
|
1361
|
-
wrap?: TabsWrap;
|
|
1422
|
+
interface ComboBoxFieldProps<TItem extends ComboBoxItem> extends Omit<ComboBoxProps<TItem>, 'onChange' | 'value'> {
|
|
1423
|
+
defaultValue?: TItem | null;
|
|
1424
|
+
name: string;
|
|
1425
|
+
options?: RegisterOptions;
|
|
1426
|
+
shouldResetInvalidValues?: boolean;
|
|
1362
1427
|
}
|
|
1428
|
+
declare const ComboBoxField: <TItem extends ComboBoxItem>(props: ComboBoxFieldProps<TItem>) => react_jsx_runtime.JSX.Element;
|
|
1363
1429
|
|
|
1364
|
-
interface
|
|
1430
|
+
interface DatePickerControlProps extends Pick<DatePickerProps$1, 'chooseDayAriaLabelPrefix' | 'dateFormat' | 'disabledDayAriaLabelPrefix' | 'filterDate' | 'maxDate' | 'minDate' | 'monthAriaLabelPrefix' | 'nextMonthAriaLabel' | 'onBlur' | 'previousMonthAriaLabel' | 'selected'>, FieldControlProps {
|
|
1431
|
+
chevronCloseAriaLabel?: string;
|
|
1432
|
+
chevronOpenAriaLabel?: string;
|
|
1433
|
+
disabled?: boolean;
|
|
1434
|
+
locale?: Locale;
|
|
1435
|
+
monthSelectAriaLabel?: string;
|
|
1436
|
+
monthYearSelectEnabled?: boolean;
|
|
1437
|
+
name: string;
|
|
1438
|
+
onChange?: (date: Date | null, event?: KeyboardEvent<HTMLElement> | MouseEvent<HTMLElement>) => void;
|
|
1439
|
+
placeholder?: string;
|
|
1440
|
+
yearSelectAriaLabel?: string;
|
|
1365
1441
|
}
|
|
1366
|
-
|
|
1367
|
-
* This component implements accessibility for tabs according to W3C WAI-ARIA guidelines.
|
|
1368
|
-
* To ensure proper functionality, tab panels must also be described using ARIA attributes.
|
|
1369
|
-
*
|
|
1370
|
-
* More info: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-manual/
|
|
1371
|
-
*/
|
|
1372
|
-
declare const Tabs: (props: TabsProps) => React__default.JSX.Element;
|
|
1442
|
+
declare const DatePickerControl: react.ForwardRefExoticComponent<DatePickerControlProps & react.RefAttributes<HTMLInputElement>>;
|
|
1373
1443
|
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1444
|
+
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerControlProps & {
|
|
1445
|
+
label?: react.ReactNode;
|
|
1446
|
+
name?: string | undefined;
|
|
1447
|
+
errorMessage?: react.ReactNode;
|
|
1448
|
+
colorScheme?: ColorScheme | undefined;
|
|
1449
|
+
invalid?: boolean | undefined;
|
|
1450
|
+
labelAs?: react.ElementType | undefined;
|
|
1451
|
+
labelHiddenText?: string | undefined;
|
|
1452
|
+
labelId?: string | undefined;
|
|
1453
|
+
labelSuffix?: react.ReactNode;
|
|
1454
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1455
|
+
mediaType?: MediaType | undefined;
|
|
1456
|
+
addons?: FieldAddon[] | undefined;
|
|
1457
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1458
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1459
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
1460
|
+
hiddenHintText?: react.ReactNode;
|
|
1461
|
+
hintText?: react.ReactNode;
|
|
1462
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1463
|
+
note?: react.ReactNode;
|
|
1464
|
+
optionality?: FieldOptionality | undefined;
|
|
1465
|
+
successMessage?: react.ReactNode;
|
|
1466
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1467
|
+
type DatePickerProps = ComponentProps<typeof DatePicker>;
|
|
1389
1468
|
|
|
1390
|
-
interface
|
|
1391
|
-
|
|
1392
|
-
className?: string;
|
|
1393
|
-
closeButtonAriaLabel?: string;
|
|
1394
|
-
hideCloseButton: boolean;
|
|
1395
|
-
id?: string;
|
|
1396
|
-
isOpen: boolean;
|
|
1397
|
-
onClose: ModalOnClose;
|
|
1398
|
-
/** When a string is passed, `Modal` will search for an element with such `id`, otherwise create one. */
|
|
1399
|
-
rootElement?: Element | string;
|
|
1400
|
-
title?: ReactNode;
|
|
1401
|
-
verticalPosition?: ModalVerticalPosition;
|
|
1402
|
-
widthType?: ModalWidthType;
|
|
1403
|
-
withoutPadding?: boolean;
|
|
1469
|
+
interface DatePickerFieldProps extends Omit<ComponentProps<typeof DatePicker>, 'onChange'> {
|
|
1470
|
+
options?: RegisterOptions;
|
|
1404
1471
|
}
|
|
1405
|
-
declare const
|
|
1472
|
+
declare const DatePickerField: (props: DatePickerFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1406
1473
|
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1412
|
-
topHiddenText?: string;
|
|
1413
|
-
topTooltip?: TooltipInfoDescriptor;
|
|
1414
|
-
}
|
|
1415
|
-
interface CalculatorResultBodyItem {
|
|
1416
|
-
left: {
|
|
1417
|
-
element: ReactElement | string;
|
|
1418
|
-
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1419
|
-
hiddenText?: string;
|
|
1420
|
-
tooltip?: TooltipInfoDescriptor;
|
|
1421
|
-
};
|
|
1422
|
-
right: {
|
|
1423
|
-
element: ReactElement | string;
|
|
1424
|
-
};
|
|
1425
|
-
}
|
|
1426
|
-
interface CalculatorResultMain {
|
|
1427
|
-
element: ReactElement | string;
|
|
1428
|
-
topSeparator?: boolean;
|
|
1429
|
-
}
|
|
1430
|
-
interface CalculatorResultModalDescriptor {
|
|
1431
|
-
content: ReactElement | string;
|
|
1432
|
-
modalCloseButtonAriaLabel?: string;
|
|
1433
|
-
triggerText: ReactElement | string;
|
|
1434
|
-
}
|
|
1435
|
-
declare enum CalculatorResultInfoPosition {
|
|
1436
|
-
inBox = "inBox",
|
|
1437
|
-
underBox = "underBox"
|
|
1474
|
+
declare const datePickerValueFormat = "yyyy-MM-dd";
|
|
1475
|
+
|
|
1476
|
+
interface EmailInputControlProps extends InputProps {
|
|
1477
|
+
placeholder?: string;
|
|
1438
1478
|
}
|
|
1479
|
+
declare const EmailInput: react.ForwardRefExoticComponent<EmailInputControlProps & {
|
|
1480
|
+
label?: react.ReactNode;
|
|
1481
|
+
name?: string | undefined;
|
|
1482
|
+
errorMessage?: react.ReactNode;
|
|
1483
|
+
colorScheme?: ColorScheme | undefined;
|
|
1484
|
+
invalid?: boolean | undefined;
|
|
1485
|
+
labelAs?: react.ElementType | undefined;
|
|
1486
|
+
labelHiddenText?: string | undefined;
|
|
1487
|
+
labelId?: string | undefined;
|
|
1488
|
+
labelSuffix?: react.ReactNode;
|
|
1489
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1490
|
+
mediaType?: MediaType | undefined;
|
|
1491
|
+
addons?: FieldAddon[] | undefined;
|
|
1492
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1493
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1494
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
1495
|
+
hiddenHintText?: react.ReactNode;
|
|
1496
|
+
hintText?: react.ReactNode;
|
|
1497
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1498
|
+
note?: react.ReactNode;
|
|
1499
|
+
optionality?: FieldOptionality | undefined;
|
|
1500
|
+
successMessage?: react.ReactNode;
|
|
1501
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
1502
|
+
type EmailInputProps = ComponentProps<typeof EmailInput>;
|
|
1439
1503
|
|
|
1440
|
-
interface
|
|
1441
|
-
|
|
1442
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
1443
|
-
description?: ReactElement | string;
|
|
1444
|
-
header: CalculatorResultHeader;
|
|
1445
|
-
infoPosition?: CalculatorResultInfoPosition;
|
|
1446
|
-
main: CalculatorResultMain;
|
|
1447
|
-
modal?: CalculatorResultModalDescriptor;
|
|
1448
|
-
resultBoxRef?: RefObject<HTMLDivElement>;
|
|
1504
|
+
interface EmailInputFieldProps extends Omit<EmailInputProps, 'onChange' | 'value'> {
|
|
1505
|
+
options?: RegisterOptions;
|
|
1449
1506
|
}
|
|
1450
|
-
declare const
|
|
1507
|
+
declare const EmailInputField: (props: EmailInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1451
1508
|
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1509
|
+
interface ErrorBoxItem {
|
|
1510
|
+
body: ReactElement | string;
|
|
1511
|
+
onClick?: () => void;
|
|
1455
1512
|
}
|
|
1456
1513
|
|
|
1457
|
-
interface
|
|
1458
|
-
|
|
1459
|
-
|
|
1514
|
+
interface ErrorBoxProps {
|
|
1515
|
+
colorScheme?: ColorScheme;
|
|
1516
|
+
content?: ReactNode;
|
|
1517
|
+
items?: ErrorBoxItem[];
|
|
1518
|
+
tabIndex?: number;
|
|
1519
|
+
title?: ReactNode;
|
|
1460
1520
|
}
|
|
1461
|
-
declare const
|
|
1521
|
+
declare const ErrorBox: react.ForwardRefExoticComponent<ErrorBoxProps & react.RefAttributes<HTMLDivElement>>;
|
|
1462
1522
|
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1523
|
+
declare enum FileInputErrorCode {
|
|
1524
|
+
fileSizeTooLarge = "fileSizeTooLarge",
|
|
1525
|
+
general = "general",
|
|
1526
|
+
tooManyFiles = "tooManyFiles",
|
|
1527
|
+
totalFileSizeTooLarge = "totalFileSizeTooLarge",
|
|
1528
|
+
unsupportedFormat = "unsupportedFormat"
|
|
1466
1529
|
}
|
|
1467
|
-
|
|
1530
|
+
interface FileInputSettings {
|
|
1531
|
+
fileExtensions: string[];
|
|
1532
|
+
maxFiles?: number;
|
|
1533
|
+
maxSize: number;
|
|
1534
|
+
maxTotalSize?: number;
|
|
1535
|
+
}
|
|
1536
|
+
type FileInputLimitDescriptionComponent = ComponentType<FileInputSettings>;
|
|
1537
|
+
type FileInputUploadErrorReasonComponent = ComponentType<{
|
|
1538
|
+
errorCode: FileInputErrorCode;
|
|
1539
|
+
}>;
|
|
1540
|
+
type FileInputUploadFailedComponent = ComponentType<{
|
|
1541
|
+
fileName: string;
|
|
1542
|
+
}>;
|
|
1543
|
+
type FileInputDropzoneDragOrSelectFilesComponent = ComponentType<{
|
|
1544
|
+
selectedFiles: ReactNode;
|
|
1545
|
+
}>;
|
|
1546
|
+
type FileInputDropzoneDragFilesHereComponent = ComponentType;
|
|
1547
|
+
type FileInputRemoveButtonTextComponent = ComponentType<{
|
|
1548
|
+
fileName: string;
|
|
1549
|
+
}>;
|
|
1550
|
+
type FileInputDropzoneSelectFilesComponent = ComponentType;
|
|
1468
1551
|
|
|
1469
|
-
interface
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1552
|
+
interface FileInputControlProps extends FileInputSettings, DesignSystemBaseProps {
|
|
1553
|
+
/** Component displayed when a file is dragged over the dropzone. */
|
|
1554
|
+
DropzoneDragFilesHere: FileInputDropzoneDragFilesHereComponent;
|
|
1555
|
+
/** Component displaying prompt to drag or select files for upload. */
|
|
1556
|
+
DropzoneDragOrSelectFiles: FileInputDropzoneDragOrSelectFilesComponent;
|
|
1557
|
+
/** Clickable text prompting the user to select files for upload. */
|
|
1558
|
+
DropzoneSelectFiles: FileInputDropzoneSelectFilesComponent;
|
|
1559
|
+
/** Component describing the limits for uploaded files. */
|
|
1560
|
+
LimitDescription: FileInputLimitDescriptionComponent;
|
|
1561
|
+
/** Component for label for the remove file button. */
|
|
1562
|
+
RemoveButtonText: FileInputRemoveButtonTextComponent;
|
|
1563
|
+
/** Component displaying the reason for file upload failure. */
|
|
1564
|
+
UploadErrorReason: FileInputUploadErrorReasonComponent;
|
|
1565
|
+
/** Component displayed when file upload fails. */
|
|
1566
|
+
UploadFailed: FileInputUploadFailedComponent;
|
|
1567
|
+
/** Message read by screen readers after file is removed. */
|
|
1568
|
+
getFileRemovedLiveText?: (fileName: string) => string;
|
|
1569
|
+
/** Message read by screen readers after files are added. */
|
|
1570
|
+
getFilesAddedLiveText?: (fileNames: string[]) => string;
|
|
1571
|
+
/** aria-label for remove file button. */
|
|
1572
|
+
getRemoveButtonAriaLabel: (fileName: string) => string;
|
|
1573
|
+
invalid?: boolean;
|
|
1574
|
+
name: string;
|
|
1575
|
+
onBlur?: () => void;
|
|
1576
|
+
onChange: (files: File[]) => void;
|
|
1577
|
+
value: File[];
|
|
1473
1578
|
}
|
|
1579
|
+
declare const FileInputControl: react.ForwardRefExoticComponent<FileInputControlProps & react.RefAttributes<HTMLDivElement>>;
|
|
1474
1580
|
|
|
1475
|
-
declare const
|
|
1581
|
+
declare const FileInput: react.ForwardRefExoticComponent<Omit<FileInputControlProps & {
|
|
1582
|
+
label?: react.ReactNode;
|
|
1583
|
+
name?: string | undefined;
|
|
1584
|
+
errorMessage?: react.ReactNode;
|
|
1585
|
+
colorScheme?: ColorScheme | undefined;
|
|
1586
|
+
invalid?: boolean | undefined;
|
|
1587
|
+
labelAs?: react.ElementType | undefined;
|
|
1588
|
+
labelHiddenText?: string | undefined;
|
|
1589
|
+
labelId?: string | undefined;
|
|
1590
|
+
labelSuffix?: react.ReactNode;
|
|
1591
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1592
|
+
mediaType?: MediaType | undefined;
|
|
1593
|
+
addons?: FieldAddon[] | undefined;
|
|
1594
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1595
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1596
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
1597
|
+
hiddenHintText?: react.ReactNode;
|
|
1598
|
+
hintText?: react.ReactNode;
|
|
1599
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1600
|
+
note?: react.ReactNode;
|
|
1601
|
+
optionality?: FieldOptionality | undefined;
|
|
1602
|
+
successMessage?: react.ReactNode;
|
|
1603
|
+
} & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
1604
|
+
type FileInputProps = ComponentProps<typeof FileInput>;
|
|
1476
1605
|
|
|
1477
|
-
interface
|
|
1478
|
-
|
|
1479
|
-
minimumFractionDigits?: number;
|
|
1480
|
-
value: number;
|
|
1606
|
+
interface FileInputFieldProps extends Omit<FileInputProps, 'onBlur' | 'onChange' | 'value'> {
|
|
1607
|
+
options?: RegisterOptions;
|
|
1481
1608
|
}
|
|
1482
|
-
|
|
1483
|
-
declare const useFormattedPercentage: () => UseFormatPercentage;
|
|
1609
|
+
declare const FileInputField: (props: FileInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1484
1610
|
|
|
1485
1611
|
declare enum FormatAmountCurrencyDisplay {
|
|
1486
1612
|
code = "code",
|
|
@@ -1501,251 +1627,413 @@ interface FormatAmountDescriptor {
|
|
|
1501
1627
|
minimumFractionDigits?: number;
|
|
1502
1628
|
value: number;
|
|
1503
1629
|
}
|
|
1504
|
-
interface
|
|
1630
|
+
interface FormatAmountParam extends FormatAmountDescriptor {
|
|
1505
1631
|
}
|
|
1506
1632
|
|
|
1507
|
-
|
|
1508
|
-
declare const useFormatAmount$1: () => UseFormatAmountType$1;
|
|
1633
|
+
declare const useFormatAmount$1: () => (param: FormatAmountParam) => string;
|
|
1509
1634
|
|
|
1510
|
-
|
|
1511
|
-
declare const useFormatAmount: () => UseFormatAmountType;
|
|
1635
|
+
declare const useFormatAmount: () => (param: FormatAmountParam) => string;
|
|
1512
1636
|
|
|
1513
1637
|
interface BaseFormattedAmountProps extends FormatAmountDescriptor {
|
|
1514
|
-
formatAmount: (param:
|
|
1638
|
+
formatAmount: (param: FormatAmountParam) => string;
|
|
1515
1639
|
}
|
|
1516
1640
|
|
|
1517
1641
|
interface FormattedAmountProps$1 extends Omit<BaseFormattedAmountProps, 'formatAmount'> {
|
|
1518
1642
|
}
|
|
1519
|
-
declare const FormattedAmount$1: (props: FormattedAmountProps$1) =>
|
|
1643
|
+
declare const FormattedAmount$1: (props: FormattedAmountProps$1) => react_jsx_runtime.JSX.Element;
|
|
1520
1644
|
|
|
1521
1645
|
interface FormattedAmountProps extends Omit<BaseFormattedAmountProps, 'formatAmount'> {
|
|
1522
1646
|
}
|
|
1523
|
-
declare const FormattedAmount: (props: FormattedAmountProps) =>
|
|
1647
|
+
declare const FormattedAmount: (props: FormattedAmountProps) => react_jsx_runtime.JSX.Element;
|
|
1524
1648
|
|
|
1525
|
-
interface
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1649
|
+
interface FormatPercentageParam {
|
|
1650
|
+
maximumFractionDigits?: number;
|
|
1651
|
+
minimumFractionDigits?: number;
|
|
1652
|
+
value: number;
|
|
1653
|
+
}
|
|
1654
|
+
declare const useFormatPercentage: () => (param: FormatPercentageParam) => string;
|
|
1655
|
+
|
|
1656
|
+
interface FormattedPercentageProps {
|
|
1657
|
+
maximumFractionDigits?: number;
|
|
1658
|
+
minimumFractionDigits?: number;
|
|
1659
|
+
value: number;
|
|
1660
|
+
}
|
|
1661
|
+
declare const FormattedPercentage: react.MemoExoticComponent<(props: FormattedPercentageProps) => string>;
|
|
1662
|
+
|
|
1663
|
+
/** @deprecated Use `useFormatPercentage` instead */
|
|
1664
|
+
declare const useFormattedPercentage: () => (param: FormatPercentageParam) => string;
|
|
1665
|
+
|
|
1666
|
+
interface ThrownFieldLevelError {
|
|
1667
|
+
code: string;
|
|
1668
|
+
fieldName: string;
|
|
1669
|
+
message: string;
|
|
1670
|
+
}
|
|
1671
|
+
declare enum ThrownFormLevelErrorType {
|
|
1672
|
+
/**
|
|
1673
|
+
* Used for displaying custom application-specific errors.
|
|
1674
|
+
*
|
|
1675
|
+
* Pass additional info in the `meta` property and consume it in using `thrownFormLevelErrorFormatter`.
|
|
1676
|
+
* Make sure to extend `ThrownFormLevelErrorMeta` via declaration merging.
|
|
1677
|
+
*/
|
|
1678
|
+
application = "application",
|
|
1679
|
+
/** Indicates that an unknown error occurred, just like an HTTP 500 status code. */
|
|
1680
|
+
generic = "generic",
|
|
1681
|
+
/** Indicates that an error occured due to a request timing out. */
|
|
1682
|
+
timeout = "timeout"
|
|
1683
|
+
}
|
|
1684
|
+
interface ThrownFormLevelErrorMeta {
|
|
1685
|
+
}
|
|
1686
|
+
interface ThrownFormLevelError {
|
|
1687
|
+
meta?: ThrownFormLevelErrorMeta;
|
|
1688
|
+
type: ThrownFormLevelErrorType;
|
|
1689
|
+
}
|
|
1690
|
+
interface ThrownFormErrors {
|
|
1691
|
+
fieldLevelErrors: ThrownFieldLevelError[];
|
|
1692
|
+
formLevelErrors: ThrownFormLevelError[];
|
|
1693
|
+
}
|
|
1694
|
+
interface ThrownFormLevelErrorFormatterOutput {
|
|
1695
|
+
description: ReactNode;
|
|
1696
|
+
iconProduct?: IconProductType;
|
|
1697
|
+
title: ReactNode;
|
|
1698
|
+
}
|
|
1699
|
+
type ThrownFieldLevelErrorFormatter = Formatter<ThrownFieldLevelError, ReactNode, string>;
|
|
1700
|
+
type ThrownFormLevelErrorFormatter = Formatter<ThrownFormLevelError, ReactNode | ThrownFormLevelErrorFormatterOutput, string>;
|
|
1701
|
+
interface ReCaptchaV3Config {
|
|
1702
|
+
isEnabled: boolean;
|
|
1703
|
+
isEnterprise: boolean;
|
|
1704
|
+
siteKey: string;
|
|
1705
|
+
}
|
|
1706
|
+
declare enum CaptchaType {
|
|
1707
|
+
reCaptchaV3 = "reCaptchaV3"
|
|
1708
|
+
}
|
|
1709
|
+
interface SubmitHandlerErrorInfo {
|
|
1710
|
+
captchaToken?: string;
|
|
1711
|
+
timings: {
|
|
1712
|
+
captchaExecuteEnd?: number;
|
|
1713
|
+
captchaExecuteStart?: number;
|
|
1714
|
+
submitEnd?: number;
|
|
1715
|
+
submitStart?: number;
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
interface FormConfig {
|
|
1719
|
+
onSubmitHandlerError?: (error: unknown, errorInfo: SubmitHandlerErrorInfo) => void;
|
|
1720
|
+
reCaptchaV3Config?: ReCaptchaV3Config;
|
|
1721
|
+
resolveThrownFormErrors?: (error: unknown) => ThrownFormErrors;
|
|
1722
|
+
thrownFieldLevelErrorFormatter?: ThrownFieldLevelErrorFormatter;
|
|
1723
|
+
thrownFormLevelErrorFormatter?: ThrownFormLevelErrorFormatter;
|
|
1724
|
+
}
|
|
1725
|
+
interface SubmitHandlerExtraParam {
|
|
1726
|
+
captchaToken?: string;
|
|
1727
|
+
}
|
|
1728
|
+
type SubmitHandler<TFieldValues extends FieldValues> = (data: TFieldValues, extraParam: SubmitHandlerExtraParam, event?: BaseSyntheticEvent) => Promise<unknown> | unknown;
|
|
1729
|
+
|
|
1730
|
+
interface FormErrorOutcomeProps extends DesignSystemBaseProps, Pick<FormConfig, 'thrownFormLevelErrorFormatter'> {
|
|
1731
|
+
}
|
|
1732
|
+
declare const FormErrorOutcome: (props: FormErrorOutcomeProps) => react_jsx_runtime.JSX.Element | null;
|
|
1733
|
+
|
|
1734
|
+
interface FormErrorSummaryProps extends DesignSystemBaseProps {
|
|
1735
|
+
order?: string[];
|
|
1736
|
+
title?: ReactNode;
|
|
1737
|
+
}
|
|
1738
|
+
declare const FormErrorSummary: (props: FormErrorSummaryProps) => react_jsx_runtime.JSX.Element;
|
|
1739
|
+
|
|
1740
|
+
interface FormSuccessOutcomeProps extends DesignSystemBaseProps {
|
|
1741
|
+
children: ReactNode;
|
|
1742
|
+
onHide: () => void;
|
|
1743
|
+
title: ReactNode;
|
|
1744
|
+
visible: boolean;
|
|
1745
|
+
}
|
|
1746
|
+
declare const FormSuccessOutcome: (props: FormSuccessOutcomeProps) => react_jsx_runtime.JSX.Element;
|
|
1747
|
+
|
|
1748
|
+
interface UseFormSuccessOutcomeManagerReturn {
|
|
1749
|
+
formKey: Key;
|
|
1750
|
+
formSuccessOutcomeProps: {
|
|
1751
|
+
onHide: () => void;
|
|
1752
|
+
visible: boolean;
|
|
1753
|
+
};
|
|
1754
|
+
onMutationSuccess: () => void;
|
|
1755
|
+
}
|
|
1756
|
+
declare const useFormSuccessOutcomeManager: () => UseFormSuccessOutcomeManagerReturn;
|
|
1757
|
+
|
|
1758
|
+
declare enum IconFlagType {
|
|
1759
|
+
cz = "cz",
|
|
1760
|
+
eu = "eu",
|
|
1761
|
+
hr = "hr",
|
|
1762
|
+
usa = "usa"
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
interface IconFlagProps {
|
|
1766
|
+
type: IconFlagType;
|
|
1767
|
+
}
|
|
1768
|
+
declare const IconFlag: (props: IconFlagProps) => react_jsx_runtime.JSX.Element;
|
|
1769
|
+
|
|
1770
|
+
declare enum InfoboxVariant {
|
|
1771
|
+
primary = "primary",
|
|
1772
|
+
secondary = "secondary"
|
|
1773
|
+
}
|
|
1774
|
+
declare enum InfoboxSize {
|
|
1775
|
+
md = "md",
|
|
1776
|
+
sm = "sm",
|
|
1777
|
+
xs = "xs"
|
|
1778
|
+
}
|
|
1779
|
+
interface InfoboxTextContent {
|
|
1780
|
+
primary: ReactNode;
|
|
1781
|
+
secondary?: ReactNode;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
interface InfoboxProps extends DesignSystemBaseProps, AriaAttributes {
|
|
1785
|
+
/** Cannot be used alongside `children`. */
|
|
1786
|
+
actionNode?: ReactNode;
|
|
1787
|
+
children?: ReactNode;
|
|
1788
|
+
/** In order to render a circular progress bar, `iconProduct` must be provided as well. */
|
|
1789
|
+
circularProgress?: number;
|
|
1790
|
+
className?: string;
|
|
1791
|
+
fullWidth?: boolean;
|
|
1792
|
+
iconProduct?: IconProductType;
|
|
1531
1793
|
id?: string;
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1794
|
+
isWarning?: boolean;
|
|
1795
|
+
role?: AriaRole;
|
|
1796
|
+
size: InfoboxSize;
|
|
1797
|
+
tabIndex?: number;
|
|
1798
|
+
/** Cannot be used alongside `children`. */
|
|
1799
|
+
textContent?: InfoboxTextContent;
|
|
1800
|
+
variant: InfoboxVariant;
|
|
1537
1801
|
}
|
|
1538
|
-
declare const
|
|
1802
|
+
declare const Infobox: react.ForwardRefExoticComponent<InfoboxProps & react.RefAttributes<HTMLDivElement>>;
|
|
1539
1803
|
|
|
1540
|
-
|
|
1541
|
-
|
|
1804
|
+
declare enum InputLabelSize {
|
|
1805
|
+
xs = "xs",
|
|
1806
|
+
sm = "sm",
|
|
1807
|
+
md = "md",
|
|
1808
|
+
lg = "lg"
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
interface InputLabelProps extends DesignSystemBaseProps {
|
|
1812
|
+
as?: ElementType;
|
|
1813
|
+
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1814
|
+
hiddenText?: string;
|
|
1542
1815
|
id?: string;
|
|
1543
1816
|
invalid?: boolean;
|
|
1544
|
-
labelledBy?: string;
|
|
1545
|
-
name?: string;
|
|
1546
|
-
required?: boolean;
|
|
1547
|
-
}
|
|
1548
|
-
declare enum FieldOptionality {
|
|
1549
|
-
optional = "optional",
|
|
1550
|
-
optionalWithoutLabelSuffix = "optionalWithoutLabelSuffix",
|
|
1551
|
-
required = "required"
|
|
1552
|
-
}
|
|
1553
|
-
interface InputLabelPassthroughProps {
|
|
1554
1817
|
label?: ReactNode;
|
|
1555
|
-
labelAs?: ElementType;
|
|
1556
|
-
/**
|
|
1557
|
-
* Visually hidden text for screen readers providing additional info, such as the availability of a tooltip.
|
|
1558
|
-
* Prefer using `hiddenHintText` in `FieldWrapper` where possible.
|
|
1559
|
-
*/
|
|
1560
|
-
labelHiddenText?: string;
|
|
1561
1818
|
labelId?: string;
|
|
1562
|
-
|
|
1819
|
+
size?: InputLabelSize;
|
|
1820
|
+
suffix?: ReactNode;
|
|
1563
1821
|
tooltip?: TooltipInfoDescriptor;
|
|
1564
1822
|
}
|
|
1565
|
-
declare
|
|
1566
|
-
inline = "inline",
|
|
1567
|
-
rightCenter = "rightCenter"
|
|
1568
|
-
}
|
|
1823
|
+
declare const InputLabel: (props: InputLabelProps) => react_jsx_runtime.JSX.Element;
|
|
1569
1824
|
|
|
1570
|
-
declare enum
|
|
1571
|
-
|
|
1572
|
-
|
|
1825
|
+
declare enum LoaderSize {
|
|
1826
|
+
lg = "lg",
|
|
1827
|
+
sm = "sm"
|
|
1573
1828
|
}
|
|
1574
1829
|
|
|
1575
|
-
interface
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
position?: CheckboxPosition;
|
|
1579
|
-
tooltipPosition?: LabelTooltipPosition;
|
|
1830
|
+
interface LoaderProps extends DesignSystemBaseProps, AriaAttributes {
|
|
1831
|
+
loaderSize: LoaderSize;
|
|
1832
|
+
role?: AriaRole;
|
|
1580
1833
|
}
|
|
1581
|
-
declare const
|
|
1834
|
+
declare const Loader: (props: LoaderProps) => react_jsx_runtime.JSX.Element;
|
|
1582
1835
|
|
|
1583
|
-
interface
|
|
1584
|
-
|
|
1836
|
+
interface LoaderOverlayBoxProps extends DesignSystemBaseProps, AriaAttributes {
|
|
1837
|
+
loaderSize: LoaderSize;
|
|
1838
|
+
role?: AriaRole;
|
|
1585
1839
|
}
|
|
1586
|
-
declare const
|
|
1840
|
+
declare const LoaderOverlayBox: (props: LoaderOverlayBoxProps) => react_jsx_runtime.JSX.Element;
|
|
1587
1841
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1842
|
+
type MaskedInputOnAccept = (unmaskedValue: string, maskedValue: string) => void;
|
|
1843
|
+
|
|
1844
|
+
interface MaskedInputBaseProps extends InputBaseProps {
|
|
1845
|
+
maskOptions: FactoryOpts;
|
|
1846
|
+
onAccept?: MaskedInputOnAccept;
|
|
1591
1847
|
}
|
|
1592
|
-
declare
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1848
|
+
declare const MaskedInputBase: react.ForwardRefExoticComponent<Omit<MaskedInputBaseProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1849
|
+
|
|
1850
|
+
declare const MaskedInput: react.ForwardRefExoticComponent<Omit<MaskedInputBaseProps & {
|
|
1851
|
+
label?: react.ReactNode;
|
|
1852
|
+
name?: string | undefined;
|
|
1853
|
+
errorMessage?: react.ReactNode;
|
|
1854
|
+
colorScheme?: ColorScheme | undefined;
|
|
1855
|
+
invalid?: boolean | undefined;
|
|
1856
|
+
labelAs?: react.ElementType | undefined;
|
|
1857
|
+
labelHiddenText?: string | undefined;
|
|
1858
|
+
labelId?: string | undefined;
|
|
1859
|
+
labelSuffix?: react.ReactNode;
|
|
1860
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1861
|
+
mediaType?: MediaType | undefined;
|
|
1862
|
+
addons?: FieldAddon[] | undefined;
|
|
1863
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1864
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1865
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
1866
|
+
hiddenHintText?: react.ReactNode;
|
|
1867
|
+
hintText?: react.ReactNode;
|
|
1868
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1869
|
+
note?: react.ReactNode;
|
|
1870
|
+
optionality?: FieldOptionality | undefined;
|
|
1871
|
+
successMessage?: react.ReactNode;
|
|
1872
|
+
}, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1873
|
+
type MaskedInputProps = ComponentProps<typeof MaskedInput>;
|
|
1874
|
+
|
|
1875
|
+
type ManagedMaskedInputProps = Pick<MaskedInputProps, 'errorMessage' | 'onAccept' | 'onBlur' | 'value'>;
|
|
1876
|
+
declare const withMaskedInputField: <TProps extends ManagedMaskedInputProps>(Component: ComponentType<TProps>) => <TFieldValues extends FieldValues>(props: TProps & {
|
|
1877
|
+
name: FieldPath<TFieldValues>;
|
|
1878
|
+
options?: RegisterOptions<TFieldValues>;
|
|
1879
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1880
|
+
declare const MaskedInputField: <TFieldValues extends FieldValues>(props: Omit<MaskedInputBaseProps & {
|
|
1881
|
+
label?: react.ReactNode;
|
|
1882
|
+
name?: string | undefined;
|
|
1883
|
+
errorMessage?: react.ReactNode;
|
|
1884
|
+
colorScheme?: ColorScheme | undefined;
|
|
1885
|
+
invalid?: boolean | undefined;
|
|
1886
|
+
labelAs?: react.ElementType | undefined;
|
|
1887
|
+
labelHiddenText?: string | undefined;
|
|
1888
|
+
labelId?: string | undefined;
|
|
1889
|
+
labelSuffix?: react.ReactNode;
|
|
1890
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1891
|
+
mediaType?: MediaType | undefined;
|
|
1892
|
+
addons?: FieldAddon[] | undefined;
|
|
1893
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1894
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1895
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
1896
|
+
hiddenHintText?: react.ReactNode;
|
|
1897
|
+
hintText?: react.ReactNode;
|
|
1898
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1899
|
+
note?: react.ReactNode;
|
|
1900
|
+
optionality?: FieldOptionality | undefined;
|
|
1901
|
+
successMessage?: react.ReactNode;
|
|
1902
|
+
}, "ref"> & react.RefAttributes<HTMLInputElement> & {
|
|
1903
|
+
name: react_hook_form.Path<TFieldValues>;
|
|
1904
|
+
options?: RegisterOptions<TFieldValues> | undefined;
|
|
1905
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1906
|
+
type MaskedInputFieldProps = ComponentProps<typeof MaskedInputField>;
|
|
1907
|
+
|
|
1908
|
+
type ModalOnClose = (reasonForClosing: ReasonForClosing) => void;
|
|
1909
|
+
declare enum ModalWidthType {
|
|
1910
|
+
default = "default",
|
|
1911
|
+
narrow = "narrow",
|
|
1912
|
+
narrowOnDesktopAndTablet = "narrowOnDesktopAndTablet"
|
|
1596
1913
|
}
|
|
1597
|
-
declare enum
|
|
1598
|
-
|
|
1599
|
-
|
|
1914
|
+
declare enum ModalVerticalPosition {
|
|
1915
|
+
centerOnTablet = "centerOnTablet",
|
|
1916
|
+
default = "default"
|
|
1600
1917
|
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
colorInput?: Property.Color | undefined;
|
|
1606
|
-
disabled?: boolean;
|
|
1607
|
-
halfWidth?: boolean;
|
|
1608
|
-
maxLength?: number;
|
|
1609
|
-
name: string;
|
|
1610
|
-
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
1611
|
-
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1612
|
-
prefix?: ReactNode;
|
|
1613
|
-
size: InputSize;
|
|
1614
|
-
suffix?: ReactNode;
|
|
1615
|
-
value?: string;
|
|
1918
|
+
declare enum ReasonForClosing {
|
|
1919
|
+
closeButton = "closeButton",
|
|
1920
|
+
esc = "esc",
|
|
1921
|
+
overlay = "overlay"
|
|
1616
1922
|
}
|
|
1617
1923
|
|
|
1618
|
-
|
|
1619
|
-
declare enum FieldAddonPosition {
|
|
1620
|
-
afterControl = "afterControl",
|
|
1621
|
-
beforeControl = "beforeControl",
|
|
1622
|
-
belowControl = "belowControl",
|
|
1623
|
-
bottom = "bottom"
|
|
1624
|
-
}
|
|
1625
|
-
interface FieldAddon {
|
|
1924
|
+
interface ModalProps extends DesignSystemBaseProps {
|
|
1626
1925
|
children: ReactNode;
|
|
1627
|
-
|
|
1628
|
-
|
|
1926
|
+
className?: string;
|
|
1927
|
+
closeButtonAriaLabel?: string;
|
|
1928
|
+
hideCloseButton: boolean;
|
|
1929
|
+
id?: string;
|
|
1930
|
+
isOpen: boolean;
|
|
1931
|
+
onClose: ModalOnClose;
|
|
1932
|
+
/** When a string is passed, `Modal` will search for an element with such `id`, otherwise create one. */
|
|
1933
|
+
rootElement?: Element | string;
|
|
1934
|
+
title?: ReactNode;
|
|
1935
|
+
verticalPosition?: ModalVerticalPosition;
|
|
1936
|
+
widthType?: ModalWidthType;
|
|
1937
|
+
withoutPadding?: boolean;
|
|
1629
1938
|
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
controlWidth?: Property.Width;
|
|
1638
|
-
errorMessage?: ReactNode;
|
|
1639
|
-
/** Visually hidden text for screen readers providing additional info, such as the availability of a tooltip. */
|
|
1640
|
-
hiddenHintText?: ReactNode;
|
|
1641
|
-
hintText?: ReactNode;
|
|
1642
|
-
/** @default isRenderable(errorMessage) */
|
|
1643
|
-
invalid?: boolean;
|
|
1644
|
-
layout?: FieldWrapperLayout;
|
|
1645
|
-
/** Necessary for registration of `label` to `FieldLabelStore`. */
|
|
1646
|
-
name?: string;
|
|
1647
|
-
note?: ReactNode;
|
|
1648
|
-
/** @default FieldOptionality.required */
|
|
1649
|
-
optionality?: FieldOptionality;
|
|
1650
|
-
successMessage?: ReactNode;
|
|
1939
|
+
declare const Modal: (props: ModalProps) => react.ReactPortal | null;
|
|
1940
|
+
|
|
1941
|
+
interface NumberInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
|
|
1942
|
+
allowNegative?: boolean;
|
|
1943
|
+
decimalPlaces?: number;
|
|
1944
|
+
integerPlaces?: number;
|
|
1945
|
+
maskOptions?: FactoryOpts;
|
|
1651
1946
|
}
|
|
1652
|
-
declare const
|
|
1947
|
+
declare const NumberInput: react.ForwardRefExoticComponent<Omit<NumberInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1653
1948
|
|
|
1654
|
-
|
|
1655
|
-
|
|
1949
|
+
declare const NumberInputField: <TFieldValues extends react_hook_form.FieldValues>(props: Omit<NumberInputProps, "ref"> & react.RefAttributes<HTMLInputElement> & {
|
|
1950
|
+
name: react_hook_form.Path<TFieldValues>;
|
|
1951
|
+
options?: react_hook_form.RegisterOptions<TFieldValues> | undefined;
|
|
1952
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1953
|
+
type NumberInputFieldProps = ComponentProps<typeof NumberInputField>;
|
|
1656
1954
|
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1955
|
+
declare enum PaperShadow {
|
|
1956
|
+
lg = "lg",
|
|
1957
|
+
md = "md",
|
|
1958
|
+
sm = "sm"
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
interface PaperProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
|
|
1962
|
+
as?: ElementType;
|
|
1963
|
+
children: ReactNode;
|
|
1964
|
+
className?: string;
|
|
1660
1965
|
id?: string;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
1664
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1966
|
+
overflow?: Overflow;
|
|
1967
|
+
padding?: Spacing;
|
|
1665
1968
|
role?: AriaRole;
|
|
1666
|
-
|
|
1969
|
+
shadow?: PaperShadow;
|
|
1970
|
+
tabIndex?: number;
|
|
1667
1971
|
}
|
|
1972
|
+
declare const Paper: react.ForwardRefExoticComponent<PaperProps & react.RefAttributes<HTMLDivElement>>;
|
|
1668
1973
|
|
|
1669
|
-
interface
|
|
1974
|
+
interface PhoneInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
|
|
1975
|
+
maskOptions?: FactoryOpts;
|
|
1976
|
+
prefixColor?: Property.Color;
|
|
1670
1977
|
}
|
|
1671
|
-
declare const
|
|
1978
|
+
declare const PhoneInput: react.ForwardRefExoticComponent<Omit<PhoneInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1672
1979
|
|
|
1673
|
-
declare
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
}
|
|
1980
|
+
declare const PhoneInputField: <TFieldValues extends react_hook_form.FieldValues>(props: PhoneInputProps & {
|
|
1981
|
+
name: react_hook_form.Path<TFieldValues>;
|
|
1982
|
+
options?: react_hook_form.RegisterOptions<TFieldValues> | undefined;
|
|
1983
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1984
|
+
type PhoneInputFieldProps = ComponentProps<typeof PhoneInputField>;
|
|
1677
1985
|
|
|
1678
|
-
interface
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1986
|
+
interface ProgressDefinition extends AriaAttributes {
|
|
1987
|
+
activeStepIndex: number;
|
|
1988
|
+
/**
|
|
1989
|
+
* Accessible label for the progress bar, e.g. "Step progress".
|
|
1990
|
+
* Maps directly to the native `aria-label` attribute.
|
|
1991
|
+
*/
|
|
1992
|
+
'aria-label'?: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* Maximum value for the progress bar.
|
|
1995
|
+
* Defaults to `numberOfSteps`.
|
|
1996
|
+
*/
|
|
1997
|
+
'aria-valuemax'?: number;
|
|
1998
|
+
/**
|
|
1999
|
+
* Minimum value for the progress bar.
|
|
2000
|
+
* Defaults to `1`.
|
|
2001
|
+
*/
|
|
2002
|
+
'aria-valuemin'?: number;
|
|
2003
|
+
/**
|
|
2004
|
+
* Current value for the progress bar.
|
|
2005
|
+
* Defaults to `activeStepIndex + 1`.
|
|
2006
|
+
*/
|
|
2007
|
+
'aria-valuenow'?: number;
|
|
2008
|
+
/**
|
|
2009
|
+
* Accessible text describing the current progress value, e.g. "Step 3 of 5".
|
|
2010
|
+
* Maps directly to the native `aria-valuetext` attribute.
|
|
2011
|
+
*/
|
|
2012
|
+
'aria-valuetext'?: string;
|
|
2013
|
+
numberOfSteps: number;
|
|
2014
|
+
role?: AriaRole;
|
|
1683
2015
|
}
|
|
1684
|
-
declare const Radio: React__default.ForwardRefExoticComponent<RadioProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1685
2016
|
|
|
1686
|
-
interface
|
|
1687
|
-
|
|
1688
|
-
options?: RegisterOptions;
|
|
2017
|
+
interface ProgressPaperProps extends PaperProps, SsrProps {
|
|
2018
|
+
progressDefinition: ProgressDefinition;
|
|
1689
2019
|
}
|
|
1690
|
-
declare const
|
|
2020
|
+
declare const ProgressPaper: react.ForwardRefExoticComponent<ProgressPaperProps & react.RefAttributes<HTMLDivElement>>;
|
|
1691
2021
|
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
value: string;
|
|
1696
|
-
}
|
|
1697
|
-
declare enum RadioGroupDirection {
|
|
1698
|
-
column = "column",
|
|
1699
|
-
columnReverse = "columnReverse",
|
|
1700
|
-
row = "row",
|
|
1701
|
-
rowReverse = "rowReverse"
|
|
2022
|
+
declare enum RadioPosition {
|
|
2023
|
+
left = "left",
|
|
2024
|
+
right = "right"
|
|
1702
2025
|
}
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
columnGap?: Spacing;
|
|
1706
|
-
controlWidth?: Property.Width;
|
|
1707
|
-
direction: RadioGroupDirection;
|
|
2026
|
+
interface RadioGeneralProps extends AriaAttributes {
|
|
2027
|
+
checked?: boolean;
|
|
1708
2028
|
disabled?: boolean;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
name: string;
|
|
1712
|
-
onBlur?: ((event: React__default.FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
1713
|
-
onChange?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1714
|
-
rowGap?: Spacing;
|
|
1715
|
-
value?: string;
|
|
1716
|
-
}
|
|
1717
|
-
declare const RadioGroupControl: React__default.ForwardRefExoticComponent<RadioGroupControlProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1718
|
-
|
|
1719
|
-
declare const RadioGroup: React__default.ForwardRefExoticComponent<Omit<RadioGroupControlProps & {
|
|
1720
|
-
colorScheme?: ColorScheme | undefined;
|
|
1721
|
-
mediaType?: MediaType | undefined;
|
|
1722
|
-
label?: React__default.ReactNode;
|
|
1723
|
-
name?: string | undefined;
|
|
1724
|
-
invalid?: boolean | undefined;
|
|
1725
|
-
addons?: FieldAddon[] | undefined;
|
|
1726
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1727
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1728
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1729
|
-
errorMessage?: React__default.ReactNode;
|
|
1730
|
-
hiddenHintText?: React__default.ReactNode;
|
|
1731
|
-
hintText?: React__default.ReactNode;
|
|
1732
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1733
|
-
note?: React__default.ReactNode;
|
|
1734
|
-
optionality?: FieldOptionality | undefined;
|
|
1735
|
-
successMessage?: React__default.ReactNode;
|
|
1736
|
-
labelAs?: React__default.ElementType | undefined;
|
|
1737
|
-
labelHiddenText?: string | undefined;
|
|
1738
|
-
labelId?: string | undefined;
|
|
1739
|
-
labelSuffix?: React__default.ReactNode;
|
|
1740
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1741
|
-
} & React__default.RefAttributes<HTMLInputElement>, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1742
|
-
type RadioGroupProps = ComponentProps<typeof RadioGroup>;
|
|
1743
|
-
|
|
1744
|
-
interface RadioGroupFieldProps extends Omit<RadioGroupProps, 'onBlur' | 'onChange' | 'value'> {
|
|
2029
|
+
id?: string;
|
|
2030
|
+
invalid?: boolean;
|
|
1745
2031
|
name: string;
|
|
1746
|
-
|
|
2032
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
2033
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
2034
|
+
role?: AriaRole;
|
|
2035
|
+
value: string;
|
|
1747
2036
|
}
|
|
1748
|
-
declare const RadioGroupField: (props: RadioGroupFieldProps) => React__default.JSX.Element;
|
|
1749
2037
|
|
|
1750
2038
|
interface RadioButtonLabel {
|
|
1751
2039
|
main: ReactElement | string;
|
|
@@ -1753,10 +2041,16 @@ interface RadioButtonLabel {
|
|
|
1753
2041
|
}
|
|
1754
2042
|
|
|
1755
2043
|
interface RadioButtonProps extends RadioGeneralProps, DesignSystemBaseProps {
|
|
1756
|
-
errorMessage?:
|
|
2044
|
+
errorMessage?: ReactElement | string | undefined;
|
|
1757
2045
|
label: RadioButtonLabel;
|
|
1758
2046
|
}
|
|
1759
|
-
declare const RadioButton:
|
|
2047
|
+
declare const RadioButton: react.ForwardRefExoticComponent<RadioButtonProps & react.RefAttributes<HTMLInputElement>>;
|
|
2048
|
+
|
|
2049
|
+
interface RadioButtonFieldProps extends Omit<RadioButtonProps, 'onChange'> {
|
|
2050
|
+
name: string;
|
|
2051
|
+
options?: RegisterOptions;
|
|
2052
|
+
}
|
|
2053
|
+
declare const RadioButtonField: (props: RadioButtonFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1760
2054
|
|
|
1761
2055
|
interface RadioButtonGroupItem extends AriaAttributes {
|
|
1762
2056
|
id?: string;
|
|
@@ -1782,283 +2076,191 @@ interface RadioButtonGroupControlProps extends DesignSystemBaseProps, FieldContr
|
|
|
1782
2076
|
itemMinWidth?: Property.Width;
|
|
1783
2077
|
items: RadioButtonGroupItem[];
|
|
1784
2078
|
name: string;
|
|
1785
|
-
onBlur?: ((event:
|
|
1786
|
-
onChange?: ((event:
|
|
2079
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
2080
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1787
2081
|
value?: string;
|
|
1788
2082
|
}
|
|
1789
|
-
declare const RadioButtonGroupControl:
|
|
2083
|
+
declare const RadioButtonGroupControl: react.ForwardRefExoticComponent<RadioButtonGroupControlProps & react.RefAttributes<HTMLInputElement>>;
|
|
1790
2084
|
|
|
1791
|
-
declare const RadioButtonGroup:
|
|
1792
|
-
|
|
1793
|
-
mediaType?: MediaType | undefined;
|
|
1794
|
-
label?: React__default.ReactNode;
|
|
2085
|
+
declare const RadioButtonGroup: react.ForwardRefExoticComponent<Omit<RadioButtonGroupControlProps & {
|
|
2086
|
+
label?: react.ReactNode;
|
|
1795
2087
|
name?: string | undefined;
|
|
2088
|
+
errorMessage?: react.ReactNode;
|
|
2089
|
+
colorScheme?: ColorScheme | undefined;
|
|
1796
2090
|
invalid?: boolean | undefined;
|
|
2091
|
+
labelAs?: react.ElementType | undefined;
|
|
2092
|
+
labelHiddenText?: string | undefined;
|
|
2093
|
+
labelId?: string | undefined;
|
|
2094
|
+
labelSuffix?: react.ReactNode;
|
|
2095
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2096
|
+
mediaType?: MediaType | undefined;
|
|
1797
2097
|
addons?: FieldAddon[] | undefined;
|
|
1798
2098
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1799
2099
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1800
2100
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
hintText?: React__default.ReactNode;
|
|
2101
|
+
hiddenHintText?: react.ReactNode;
|
|
2102
|
+
hintText?: react.ReactNode;
|
|
1804
2103
|
layout?: FieldWrapperLayout | undefined;
|
|
1805
|
-
note?:
|
|
2104
|
+
note?: react.ReactNode;
|
|
1806
2105
|
optionality?: FieldOptionality | undefined;
|
|
1807
|
-
successMessage?:
|
|
1808
|
-
|
|
1809
|
-
labelHiddenText?: string | undefined;
|
|
1810
|
-
labelId?: string | undefined;
|
|
1811
|
-
labelSuffix?: React__default.ReactNode;
|
|
1812
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1813
|
-
} & React__default.RefAttributes<HTMLInputElement>, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
2106
|
+
successMessage?: react.ReactNode;
|
|
2107
|
+
} & react.RefAttributes<HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1814
2108
|
type RadioButtonGroupProps = ComponentProps<typeof RadioButtonGroup>;
|
|
1815
2109
|
|
|
1816
2110
|
interface RadioButtonGroupFieldProps extends Omit<RadioButtonGroupProps, 'onBlur' | 'onChange' | 'value'> {
|
|
1817
2111
|
name: string;
|
|
1818
2112
|
options?: RegisterOptions;
|
|
1819
2113
|
}
|
|
1820
|
-
declare const RadioButtonGroupField: (props: RadioButtonGroupFieldProps) =>
|
|
2114
|
+
declare const RadioButtonGroupField: (props: RadioButtonGroupFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1821
2115
|
|
|
1822
|
-
interface
|
|
2116
|
+
interface RadioControlProps extends DesignSystemBaseProps, RadioGeneralProps {
|
|
1823
2117
|
}
|
|
1824
|
-
declare const
|
|
1825
|
-
colorScheme?: ColorScheme | undefined;
|
|
1826
|
-
mediaType?: MediaType | undefined;
|
|
1827
|
-
label?: React__default.ReactNode;
|
|
1828
|
-
name?: string | undefined;
|
|
1829
|
-
invalid?: boolean | undefined;
|
|
1830
|
-
addons?: FieldAddon[] | undefined;
|
|
1831
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1832
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1833
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1834
|
-
errorMessage?: React__default.ReactNode;
|
|
1835
|
-
hiddenHintText?: React__default.ReactNode;
|
|
1836
|
-
hintText?: React__default.ReactNode;
|
|
1837
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1838
|
-
note?: React__default.ReactNode;
|
|
1839
|
-
optionality?: FieldOptionality | undefined;
|
|
1840
|
-
successMessage?: React__default.ReactNode;
|
|
1841
|
-
labelAs?: React__default.ElementType | undefined;
|
|
1842
|
-
labelHiddenText?: string | undefined;
|
|
1843
|
-
labelId?: string | undefined;
|
|
1844
|
-
labelSuffix?: React__default.ReactNode;
|
|
1845
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1846
|
-
} & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
1847
|
-
type TextAreaProps = ComponentProps<typeof TextArea>;
|
|
2118
|
+
declare const RadioControl: react.ForwardRefExoticComponent<RadioControlProps & react.RefAttributes<HTMLInputElement>>;
|
|
1848
2119
|
|
|
1849
|
-
interface
|
|
1850
|
-
|
|
1851
|
-
|
|
2120
|
+
interface RadioProps extends RadioControlProps, InputLabelPassthroughProps, DesignSystemBaseProps {
|
|
2121
|
+
errorMessage?: ReactNode;
|
|
2122
|
+
labelColor?: string;
|
|
2123
|
+
position?: RadioPosition;
|
|
2124
|
+
tooltipPosition?: LabelTooltipPosition;
|
|
1852
2125
|
}
|
|
1853
|
-
declare const
|
|
2126
|
+
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
|
|
1854
2127
|
|
|
1855
|
-
interface
|
|
1856
|
-
ariaLabel?: string;
|
|
1857
|
-
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
1858
|
-
button?: ReactNode;
|
|
1859
|
-
colorInput?: Property.Color | undefined;
|
|
1860
|
-
disabled?: boolean;
|
|
1861
|
-
halfWidth?: boolean;
|
|
1862
|
-
icon?: ReactNode;
|
|
1863
|
-
iconSystem?: IconSystemType;
|
|
1864
|
-
id?: string | undefined;
|
|
1865
|
-
isPastingDisabled?: boolean;
|
|
1866
|
-
maxLength?: number;
|
|
2128
|
+
interface RadioFieldProps extends Omit<RadioProps, 'onChange'> {
|
|
1867
2129
|
name: string;
|
|
1868
|
-
|
|
1869
|
-
onChange?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1870
|
-
onClick?: MouseEventHandler;
|
|
1871
|
-
onFocus?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
1872
|
-
onKeyDown?: KeyboardEventHandler;
|
|
1873
|
-
placeholder?: string;
|
|
1874
|
-
prefix?: ReactNode;
|
|
1875
|
-
prefixColor?: Property.Color;
|
|
1876
|
-
role?: HTMLAttributes<HTMLInputElement>['role'];
|
|
1877
|
-
size?: InputSize;
|
|
1878
|
-
suffix?: ReactNode;
|
|
1879
|
-
textAlign?: InputTextAlign;
|
|
1880
|
-
type?: HTMLInputTypeAttribute;
|
|
1881
|
-
value?: string;
|
|
1882
|
-
weight?: FontWeight;
|
|
1883
|
-
}
|
|
1884
|
-
declare const InputBase: React__default.ForwardRefExoticComponent<Omit<InputBaseProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1885
|
-
|
|
1886
|
-
declare enum InputLabelSize {
|
|
1887
|
-
xs = "xs",
|
|
1888
|
-
sm = "sm",
|
|
1889
|
-
md = "md",
|
|
1890
|
-
lg = "lg"
|
|
2130
|
+
options?: RegisterOptions;
|
|
1891
2131
|
}
|
|
2132
|
+
declare const RadioField: (props: RadioFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1892
2133
|
|
|
1893
|
-
interface
|
|
1894
|
-
as?: ElementType;
|
|
1895
|
-
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1896
|
-
hiddenText?: string;
|
|
2134
|
+
interface RadioGroupItem extends InputLabelPassthroughProps, AriaAttributes {
|
|
1897
2135
|
id?: string;
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
2136
|
+
role?: AriaRole;
|
|
2137
|
+
value: string;
|
|
2138
|
+
}
|
|
2139
|
+
declare enum RadioGroupDirection {
|
|
2140
|
+
column = "column",
|
|
2141
|
+
columnReverse = "columnReverse",
|
|
2142
|
+
row = "row",
|
|
2143
|
+
rowReverse = "rowReverse"
|
|
1904
2144
|
}
|
|
1905
|
-
declare const InputLabel: (props: InputLabelProps) => React__default.JSX.Element;
|
|
1906
2145
|
|
|
1907
|
-
interface
|
|
1908
|
-
|
|
2146
|
+
interface RadioGroupControlProps extends FieldControlProps, DesignSystemBaseProps {
|
|
2147
|
+
columnGap?: Spacing;
|
|
2148
|
+
controlWidth?: Property.Width;
|
|
2149
|
+
direction: RadioGroupDirection;
|
|
2150
|
+
disabled?: boolean;
|
|
2151
|
+
itemMinWidth?: Property.Width;
|
|
2152
|
+
items: RadioGroupItem[];
|
|
2153
|
+
name: string;
|
|
2154
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
2155
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
2156
|
+
rowGap?: Spacing;
|
|
2157
|
+
value?: string;
|
|
1909
2158
|
}
|
|
1910
|
-
declare const
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
label?:
|
|
2159
|
+
declare const RadioGroupControl: react.ForwardRefExoticComponent<RadioGroupControlProps & react.RefAttributes<HTMLInputElement>>;
|
|
2160
|
+
|
|
2161
|
+
declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupControlProps & {
|
|
2162
|
+
label?: react.ReactNode;
|
|
1914
2163
|
name?: string | undefined;
|
|
2164
|
+
errorMessage?: react.ReactNode;
|
|
2165
|
+
colorScheme?: ColorScheme | undefined;
|
|
1915
2166
|
invalid?: boolean | undefined;
|
|
2167
|
+
labelAs?: react.ElementType | undefined;
|
|
2168
|
+
labelHiddenText?: string | undefined;
|
|
2169
|
+
labelId?: string | undefined;
|
|
2170
|
+
labelSuffix?: react.ReactNode;
|
|
2171
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2172
|
+
mediaType?: MediaType | undefined;
|
|
1916
2173
|
addons?: FieldAddon[] | undefined;
|
|
1917
2174
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1918
2175
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1919
2176
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
hintText?: React__default.ReactNode;
|
|
2177
|
+
hiddenHintText?: react.ReactNode;
|
|
2178
|
+
hintText?: react.ReactNode;
|
|
1923
2179
|
layout?: FieldWrapperLayout | undefined;
|
|
1924
|
-
note?:
|
|
2180
|
+
note?: react.ReactNode;
|
|
1925
2181
|
optionality?: FieldOptionality | undefined;
|
|
1926
|
-
successMessage?:
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
labelId?: string | undefined;
|
|
1930
|
-
labelSuffix?: React__default.ReactNode;
|
|
1931
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1932
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
1933
|
-
type EmailInputProps = ComponentProps<typeof EmailInput>;
|
|
2182
|
+
successMessage?: react.ReactNode;
|
|
2183
|
+
} & react.RefAttributes<HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
2184
|
+
type RadioGroupProps = ComponentProps<typeof RadioGroup>;
|
|
1934
2185
|
|
|
1935
|
-
interface
|
|
2186
|
+
interface RadioGroupFieldProps extends Omit<RadioGroupProps, 'onBlur' | 'onChange' | 'value'> {
|
|
2187
|
+
name: string;
|
|
1936
2188
|
options?: RegisterOptions;
|
|
1937
2189
|
}
|
|
1938
|
-
declare const
|
|
1939
|
-
|
|
1940
|
-
type MaskedInputOnAccept = (unmaskedValue: string, maskedValue: string) => void;
|
|
2190
|
+
declare const RadioGroupField: (props: RadioGroupFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1941
2191
|
|
|
1942
|
-
interface
|
|
1943
|
-
|
|
1944
|
-
|
|
2192
|
+
interface SearchInputControlProps extends InputProps {
|
|
2193
|
+
buttonAction?: () => void;
|
|
2194
|
+
buttonText?: ReactNode;
|
|
2195
|
+
invalid?: boolean;
|
|
2196
|
+
placeholder?: string;
|
|
1945
2197
|
}
|
|
1946
|
-
declare const
|
|
1947
|
-
|
|
1948
|
-
declare const MaskedInput: React.ForwardRefExoticComponent<Omit<MaskedInputBaseProps & {
|
|
1949
|
-
colorScheme?: ColorScheme | undefined;
|
|
1950
|
-
mediaType?: MediaType | undefined;
|
|
1951
|
-
label?: React.ReactNode;
|
|
2198
|
+
declare const SearchInput: react.ForwardRefExoticComponent<SearchInputControlProps & {
|
|
2199
|
+
label?: ReactNode;
|
|
1952
2200
|
name?: string | undefined;
|
|
2201
|
+
errorMessage?: ReactNode;
|
|
2202
|
+
colorScheme?: ColorScheme | undefined;
|
|
1953
2203
|
invalid?: boolean | undefined;
|
|
1954
|
-
|
|
1955
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1956
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1957
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1958
|
-
errorMessage?: React.ReactNode;
|
|
1959
|
-
hiddenHintText?: React.ReactNode;
|
|
1960
|
-
hintText?: React.ReactNode;
|
|
1961
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1962
|
-
note?: React.ReactNode;
|
|
1963
|
-
optionality?: FieldOptionality | undefined;
|
|
1964
|
-
successMessage?: React.ReactNode;
|
|
1965
|
-
labelAs?: React.ElementType | undefined;
|
|
2204
|
+
labelAs?: react.ElementType | undefined;
|
|
1966
2205
|
labelHiddenText?: string | undefined;
|
|
1967
2206
|
labelId?: string | undefined;
|
|
1968
|
-
labelSuffix?:
|
|
2207
|
+
labelSuffix?: ReactNode;
|
|
1969
2208
|
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1970
|
-
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1971
|
-
type MaskedInputProps = ComponentProps<typeof MaskedInput>;
|
|
1972
|
-
|
|
1973
|
-
type ManagedMaskedInputProps = Pick<MaskedInputProps, 'errorMessage' | 'onAccept' | 'onBlur' | 'value'>;
|
|
1974
|
-
declare const withMaskedInputField: <TProps extends ManagedMaskedInputProps>(Component: ComponentType<TProps>) => <TFieldValues extends FieldValues>(props: TProps & {
|
|
1975
|
-
name: FieldPath<TFieldValues>;
|
|
1976
|
-
options?: RegisterOptions<TFieldValues>;
|
|
1977
|
-
}) => React__default.JSX.Element;
|
|
1978
|
-
declare const MaskedInputField: <TFieldValues extends FieldValues>(props: Omit<MaskedInputBaseProps & {
|
|
1979
|
-
colorScheme?: ColorScheme | undefined;
|
|
1980
2209
|
mediaType?: MediaType | undefined;
|
|
1981
|
-
label?: React__default.ReactNode;
|
|
1982
|
-
name?: string | undefined;
|
|
1983
|
-
invalid?: boolean | undefined;
|
|
1984
2210
|
addons?: FieldAddon[] | undefined;
|
|
1985
2211
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1986
2212
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1987
2213
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
hintText?: React__default.ReactNode;
|
|
2214
|
+
hiddenHintText?: ReactNode;
|
|
2215
|
+
hintText?: ReactNode;
|
|
1991
2216
|
layout?: FieldWrapperLayout | undefined;
|
|
1992
|
-
note?:
|
|
2217
|
+
note?: ReactNode;
|
|
1993
2218
|
optionality?: FieldOptionality | undefined;
|
|
1994
|
-
successMessage?:
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
labelId?: string | undefined;
|
|
1998
|
-
labelSuffix?: React__default.ReactNode;
|
|
1999
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2000
|
-
}, "ref"> & React__default.RefAttributes<HTMLInputElement> & {
|
|
2001
|
-
name: react_hook_form.Path<TFieldValues>;
|
|
2002
|
-
options?: RegisterOptions<TFieldValues> | undefined;
|
|
2003
|
-
}) => React__default.JSX.Element;
|
|
2004
|
-
type MaskedInputFieldProps = ComponentProps<typeof MaskedInputField>;
|
|
2219
|
+
successMessage?: ReactNode;
|
|
2220
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
2221
|
+
type SearchInputProps = ComponentProps<typeof SearchInput>;
|
|
2005
2222
|
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
integerPlaces?: number;
|
|
2010
|
-
maskOptions?: FactoryOpts;
|
|
2223
|
+
declare enum SelectVariant {
|
|
2224
|
+
inputLike = "inputLike",
|
|
2225
|
+
text = "text"
|
|
2011
2226
|
}
|
|
2012
|
-
declare
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2227
|
+
declare enum SelectItemOrderSource {
|
|
2228
|
+
formatter = "formatter",
|
|
2229
|
+
value = "value"
|
|
2230
|
+
}
|
|
2231
|
+
interface SelectItemOrder {
|
|
2232
|
+
compareFn?: (a: unknown, b: unknown) => number;
|
|
2233
|
+
source: SelectItemOrderSource;
|
|
2234
|
+
}
|
|
2235
|
+
type SelectItem = boolean | number | object | string | null;
|
|
2019
2236
|
|
|
2020
|
-
interface
|
|
2021
|
-
|
|
2022
|
-
|
|
2237
|
+
interface SelectControlProps<TItem extends SelectItem> extends FieldControlProps, DesignSystemBaseProps {
|
|
2238
|
+
ariaLabel?: string;
|
|
2239
|
+
disabled?: boolean;
|
|
2240
|
+
formatter?: Formatter<TItem, ReactNode, number | string>;
|
|
2241
|
+
getItemKey?: (item: TItem | null) => number | string;
|
|
2242
|
+
iconSystem?: IconSystemType;
|
|
2243
|
+
id?: string;
|
|
2244
|
+
itemOrder?: SelectItemOrder;
|
|
2245
|
+
items: TItem[];
|
|
2246
|
+
nilMessage?: string;
|
|
2247
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
2248
|
+
onChange: (item: TItem | null) => void;
|
|
2249
|
+
value: TItem | null;
|
|
2250
|
+
variant?: SelectVariant;
|
|
2023
2251
|
}
|
|
2024
|
-
declare const
|
|
2252
|
+
declare const SelectControl: <TItem extends SelectItem>(props: RefAttributes<HTMLDivElement> & SelectControlProps<TItem>) => ReactElement;
|
|
2025
2253
|
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
options?: react_hook_form.RegisterOptions<TFieldValues> | undefined;
|
|
2029
|
-
}) => React.JSX.Element;
|
|
2030
|
-
type PhoneInputFieldProps = ComponentProps<typeof PhoneInputField>;
|
|
2254
|
+
type SelectProps<TItem extends SelectItem> = Omit<FieldWrapperProps, 'children'> & SelectControlProps<TItem>;
|
|
2255
|
+
declare const Select: <TItem extends SelectItem>(props: RefAttributes<HTMLDivElement> & SelectProps<TItem>) => ReactElement;
|
|
2031
2256
|
|
|
2032
|
-
interface
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2257
|
+
interface SelectFieldProps<TItem extends SelectItem> extends Omit<SelectProps<TItem>, 'onChange' | 'value'> {
|
|
2258
|
+
defaultValue?: TItem | null;
|
|
2259
|
+
name: string;
|
|
2260
|
+
options?: RegisterOptions;
|
|
2261
|
+
shouldResetInvalidValues?: boolean;
|
|
2037
2262
|
}
|
|
2038
|
-
declare const
|
|
2039
|
-
colorScheme?: ColorScheme | undefined;
|
|
2040
|
-
mediaType?: MediaType | undefined;
|
|
2041
|
-
label?: React__default.ReactNode;
|
|
2042
|
-
name?: string | undefined;
|
|
2043
|
-
invalid?: boolean | undefined;
|
|
2044
|
-
addons?: FieldAddon[] | undefined;
|
|
2045
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2046
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2047
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2048
|
-
errorMessage?: React__default.ReactNode;
|
|
2049
|
-
hiddenHintText?: React__default.ReactNode;
|
|
2050
|
-
hintText?: React__default.ReactNode;
|
|
2051
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2052
|
-
note?: React__default.ReactNode;
|
|
2053
|
-
optionality?: FieldOptionality | undefined;
|
|
2054
|
-
successMessage?: React__default.ReactNode;
|
|
2055
|
-
labelAs?: React__default.ElementType | undefined;
|
|
2056
|
-
labelHiddenText?: string | undefined;
|
|
2057
|
-
labelId?: string | undefined;
|
|
2058
|
-
labelSuffix?: React__default.ReactNode;
|
|
2059
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2060
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2061
|
-
type SearchInputProps = ComponentProps<typeof SearchInput>;
|
|
2263
|
+
declare const SelectField: <TItem extends SelectItem>(props: SelectFieldProps<TItem>) => react_jsx_runtime.JSX.Element;
|
|
2062
2264
|
|
|
2063
2265
|
declare enum SliderInputRoundingType {
|
|
2064
2266
|
ceilBySteps = "ceilBySteps",
|
|
@@ -2069,6 +2271,38 @@ declare enum SliderInputRoundingType {
|
|
|
2069
2271
|
roundToThousands = "roundToThousands"
|
|
2070
2272
|
}
|
|
2071
2273
|
|
|
2274
|
+
interface SliderBreakpoint {
|
|
2275
|
+
bottomBreakpoint: number;
|
|
2276
|
+
step: number;
|
|
2277
|
+
}
|
|
2278
|
+
interface SliderSteps {
|
|
2279
|
+
baseStep: number;
|
|
2280
|
+
breakpointList: SliderBreakpoint[];
|
|
2281
|
+
}
|
|
2282
|
+
declare enum SliderStepType {
|
|
2283
|
+
visuallyLinearByValue = "visuallyLinearByValue",
|
|
2284
|
+
visuallySameStepSize = "visuallySameStepSize"
|
|
2285
|
+
}
|
|
2286
|
+
interface SliderMinMaxLabels {
|
|
2287
|
+
max: ReactElement | string;
|
|
2288
|
+
min: ReactElement | string;
|
|
2289
|
+
}
|
|
2290
|
+
interface SliderAriaValueTextFormatterDataContext {
|
|
2291
|
+
clampMax?: number;
|
|
2292
|
+
clampMin?: number;
|
|
2293
|
+
}
|
|
2294
|
+
type SliderAriaValueTextFormatter = Formatter<number, string, string, SliderAriaValueTextFormatterDataContext>;
|
|
2295
|
+
interface SliderInputLimitExceededLiveTextFormatterDataContext {
|
|
2296
|
+
clampMax: number;
|
|
2297
|
+
clampMin: number;
|
|
2298
|
+
effectiveMax: number;
|
|
2299
|
+
effectiveMin: number;
|
|
2300
|
+
max: number;
|
|
2301
|
+
min: number;
|
|
2302
|
+
oldValue: number;
|
|
2303
|
+
}
|
|
2304
|
+
type SliderInputLimitExceededLiveTextFormatter = Formatter<number, string, string, SliderInputLimitExceededLiveTextFormatterDataContext>;
|
|
2305
|
+
|
|
2072
2306
|
interface SliderInputProps extends RefAttributes<HTMLInputElement>, DesignSystemBaseProps, InputLabelPassthroughProps {
|
|
2073
2307
|
ariaLabelForHandle?: string;
|
|
2074
2308
|
ariaLabelledByForHandle?: string;
|
|
@@ -2111,8 +2345,8 @@ interface SliderInputProps extends RefAttributes<HTMLInputElement>, DesignSystem
|
|
|
2111
2345
|
*/
|
|
2112
2346
|
onSliderChange?: (value: number) => void;
|
|
2113
2347
|
prefix?: ReactNode;
|
|
2114
|
-
stepType: SliderStepType;
|
|
2115
2348
|
steps: SliderSteps;
|
|
2349
|
+
stepType: SliderStepType;
|
|
2116
2350
|
suffix?: ReactNode;
|
|
2117
2351
|
value: number;
|
|
2118
2352
|
weight?: FontWeight;
|
|
@@ -2131,7 +2365,30 @@ interface SliderInputProps extends RefAttributes<HTMLInputElement>, DesignSystem
|
|
|
2131
2365
|
* and `onInputChange` callbacks. These callbacks are triggered on every change during slider movement
|
|
2132
2366
|
* or while typing in the input field, before the user finalizes their selection with Enter or onBlur.
|
|
2133
2367
|
*/
|
|
2134
|
-
declare const SliderInput:
|
|
2368
|
+
declare const SliderInput: react.ForwardRefExoticComponent<Omit<SliderInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
2369
|
+
|
|
2370
|
+
interface SliderProps extends DesignSystemBaseProps {
|
|
2371
|
+
ariaLabelForHandle?: string;
|
|
2372
|
+
ariaLabelledByForHandle?: string;
|
|
2373
|
+
ariaValueTextFormatter?: SliderAriaValueTextFormatter;
|
|
2374
|
+
/** The maximum value that the slider can be moved to. Even if the visible range allows higher values, the thumb cannot go above this limit. */
|
|
2375
|
+
clampMax?: number;
|
|
2376
|
+
/** The minimum value that the slider can be moved to. Even if the visible range allows lower values, the thumb cannot go below this limit. */
|
|
2377
|
+
clampMin?: number;
|
|
2378
|
+
disable?: boolean | undefined;
|
|
2379
|
+
max: number;
|
|
2380
|
+
min: number;
|
|
2381
|
+
minMaxLabels: SliderMinMaxLabels | undefined;
|
|
2382
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
2383
|
+
/** it is triggered during movement */
|
|
2384
|
+
onChange: (value: number) => void;
|
|
2385
|
+
/** it is triggered after the user drops the handle */
|
|
2386
|
+
onFinalChange: (value: number) => void;
|
|
2387
|
+
steps: SliderSteps;
|
|
2388
|
+
stepType: SliderStepType;
|
|
2389
|
+
value: number;
|
|
2390
|
+
}
|
|
2391
|
+
declare const Slider: (props: SliderProps) => react_jsx_runtime.JSX.Element;
|
|
2135
2392
|
|
|
2136
2393
|
interface SliderInputFieldProps extends Omit<SliderInputProps, 'onChange' | 'value'> {
|
|
2137
2394
|
options?: RegisterOptions;
|
|
@@ -2139,165 +2396,206 @@ interface SliderInputFieldProps extends Omit<SliderInputProps, 'onChange' | 'val
|
|
|
2139
2396
|
/**
|
|
2140
2397
|
* Note: You must set the `defaultValues` for this field in `useForm`. Without it, the field throw error.
|
|
2141
2398
|
*/
|
|
2142
|
-
declare const SliderInputField: (props: SliderInputFieldProps) =>
|
|
2399
|
+
declare const SliderInputField: (props: SliderInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
2143
2400
|
|
|
2144
|
-
interface
|
|
2145
|
-
|
|
2146
|
-
|
|
2401
|
+
interface SpanButtonProps extends DesignSystemBaseProps, AriaAttributes {
|
|
2402
|
+
borderRadius?: BorderRadius;
|
|
2403
|
+
children?: ReactNode;
|
|
2404
|
+
className?: string;
|
|
2405
|
+
disabled?: boolean;
|
|
2406
|
+
id?: string;
|
|
2407
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
2408
|
+
onMouseDown?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
2409
|
+
onMouseUp?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
2410
|
+
onTouchStart?: (event: TouchEvent<HTMLButtonElement>) => void;
|
|
2147
2411
|
}
|
|
2148
|
-
declare const
|
|
2149
|
-
colorScheme?: ColorScheme | undefined;
|
|
2150
|
-
mediaType?: MediaType | undefined;
|
|
2151
|
-
label?: React__default.ReactNode;
|
|
2152
|
-
name?: string | undefined;
|
|
2153
|
-
invalid?: boolean | undefined;
|
|
2154
|
-
addons?: FieldAddon[] | undefined;
|
|
2155
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2156
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2157
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2158
|
-
errorMessage?: React__default.ReactNode;
|
|
2159
|
-
hiddenHintText?: React__default.ReactNode;
|
|
2160
|
-
hintText?: React__default.ReactNode;
|
|
2161
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2162
|
-
note?: React__default.ReactNode;
|
|
2163
|
-
optionality?: FieldOptionality | undefined;
|
|
2164
|
-
successMessage?: React__default.ReactNode;
|
|
2165
|
-
labelAs?: React__default.ElementType | undefined;
|
|
2166
|
-
labelHiddenText?: string | undefined;
|
|
2167
|
-
labelId?: string | undefined;
|
|
2168
|
-
labelSuffix?: React__default.ReactNode;
|
|
2169
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2170
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2171
|
-
type TextInputProps = ComponentProps<typeof TextInput>;
|
|
2412
|
+
declare const SpanButton: (props: SpanButtonProps) => react_jsx_runtime.JSX.Element;
|
|
2172
2413
|
|
|
2173
|
-
|
|
2174
|
-
|
|
2414
|
+
declare enum StackDirection {
|
|
2415
|
+
column = "column",
|
|
2416
|
+
columnReverse = "columnReverse",
|
|
2417
|
+
row = "row",
|
|
2418
|
+
rowReverse = "rowReverse"
|
|
2175
2419
|
}
|
|
2176
|
-
declare const TextInputField: (props: TextInputFieldProps) => React__default.JSX.Element;
|
|
2177
2420
|
|
|
2178
|
-
interface
|
|
2179
|
-
|
|
2180
|
-
|
|
2421
|
+
interface StackProps extends AriaAttributes {
|
|
2422
|
+
as?: ElementType;
|
|
2423
|
+
children?: ReactNode;
|
|
2424
|
+
className?: string;
|
|
2425
|
+
direction?: StackDirection;
|
|
2426
|
+
fullWidth?: boolean;
|
|
2427
|
+
gap?: Spacing;
|
|
2428
|
+
id?: string;
|
|
2429
|
+
role?: AriaRole;
|
|
2430
|
+
tabIndex?: number;
|
|
2431
|
+
wrap?: FlexWrap;
|
|
2181
2432
|
}
|
|
2182
|
-
declare const
|
|
2183
|
-
colorScheme?: ColorScheme | undefined;
|
|
2184
|
-
mediaType?: MediaType | undefined;
|
|
2185
|
-
label?: React__default.ReactNode;
|
|
2186
|
-
name?: string | undefined;
|
|
2187
|
-
invalid?: boolean | undefined;
|
|
2188
|
-
addons?: FieldAddon[] | undefined;
|
|
2189
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2190
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2191
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2192
|
-
errorMessage?: React__default.ReactNode;
|
|
2193
|
-
hiddenHintText?: React__default.ReactNode;
|
|
2194
|
-
hintText?: React__default.ReactNode;
|
|
2195
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2196
|
-
note?: React__default.ReactNode;
|
|
2197
|
-
optionality?: FieldOptionality | undefined;
|
|
2198
|
-
successMessage?: React__default.ReactNode;
|
|
2199
|
-
labelAs?: React__default.ElementType | undefined;
|
|
2200
|
-
labelHiddenText?: string | undefined;
|
|
2201
|
-
labelId?: string | undefined;
|
|
2202
|
-
labelSuffix?: React__default.ReactNode;
|
|
2203
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2204
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2205
|
-
type TrailingTextInputProps = ComponentProps<typeof TrailingTextInput>;
|
|
2433
|
+
declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLDivElement>>;
|
|
2206
2434
|
|
|
2207
|
-
|
|
2208
|
-
|
|
2435
|
+
declare enum StepperVariant {
|
|
2436
|
+
horizontal = "horizontal",
|
|
2437
|
+
vertical = "vertical"
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
interface StepperItemProps {
|
|
2209
2441
|
disabled?: boolean;
|
|
2210
|
-
id: string
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2442
|
+
id: string;
|
|
2443
|
+
index: number;
|
|
2444
|
+
isActive?: boolean;
|
|
2445
|
+
isCompleted?: boolean;
|
|
2446
|
+
onClick?: () => void;
|
|
2447
|
+
text?: ReactNode | string;
|
|
2448
|
+
variant: StepperVariant;
|
|
2214
2449
|
}
|
|
2215
2450
|
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2451
|
+
interface StepperProps {
|
|
2452
|
+
steps: StepperItemProps[];
|
|
2453
|
+
variant: StepperVariant;
|
|
2454
|
+
}
|
|
2455
|
+
declare const Stepper: (props: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
2220
2456
|
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
name: string;
|
|
2229
|
-
onChange?: (date: Date | null, event?: React__default.KeyboardEvent<HTMLElement> | React__default.MouseEvent<HTMLElement>) => void;
|
|
2230
|
-
placeholder?: string;
|
|
2231
|
-
yearSelectAriaLabel?: string;
|
|
2457
|
+
declare enum StoreButtonVariant {
|
|
2458
|
+
android = "android",
|
|
2459
|
+
apple = "apple"
|
|
2460
|
+
}
|
|
2461
|
+
declare enum StoreButtonSize {
|
|
2462
|
+
big = "big",
|
|
2463
|
+
small = "small"
|
|
2232
2464
|
}
|
|
2233
|
-
declare const DatePickerControl: React__default.ForwardRefExoticComponent<DatePickerControlProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
2234
2465
|
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
addons?: FieldAddon[] | undefined;
|
|
2242
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2243
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2244
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2245
|
-
errorMessage?: React.ReactNode;
|
|
2246
|
-
hiddenHintText?: React.ReactNode;
|
|
2247
|
-
hintText?: React.ReactNode;
|
|
2248
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2249
|
-
note?: React.ReactNode;
|
|
2250
|
-
optionality?: FieldOptionality | undefined;
|
|
2251
|
-
successMessage?: React.ReactNode;
|
|
2252
|
-
labelAs?: React.ElementType | undefined;
|
|
2253
|
-
labelHiddenText?: string | undefined;
|
|
2254
|
-
labelId?: string | undefined;
|
|
2255
|
-
labelSuffix?: React.ReactNode;
|
|
2256
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2257
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
2258
|
-
type DatePickerProps = ComponentProps<typeof DatePicker>;
|
|
2466
|
+
interface StoreButtonProps {
|
|
2467
|
+
href: string;
|
|
2468
|
+
size: StoreButtonSize;
|
|
2469
|
+
variant: StoreButtonVariant;
|
|
2470
|
+
}
|
|
2471
|
+
declare const StoreButton: (props: StoreButtonProps) => react_jsx_runtime.JSX.Element;
|
|
2259
2472
|
|
|
2260
|
-
|
|
2261
|
-
|
|
2473
|
+
declare enum TableVariant {
|
|
2474
|
+
exchange = "exchange",
|
|
2475
|
+
simple = "simple",
|
|
2476
|
+
simpleWithoutShadow = "simpleWithoutShadow"
|
|
2477
|
+
}
|
|
2478
|
+
declare enum TableTextAlign {
|
|
2479
|
+
center = "center",
|
|
2480
|
+
left = "left",
|
|
2481
|
+
right = "right"
|
|
2482
|
+
}
|
|
2483
|
+
declare enum TableHeadScope {
|
|
2484
|
+
col = "col",
|
|
2485
|
+
colgroup = "colgroup",
|
|
2486
|
+
row = "row",
|
|
2487
|
+
rowgroup = "rowgroup"
|
|
2262
2488
|
}
|
|
2263
|
-
declare const DatePickerField: (props: DatePickerFieldProps) => React__default.JSX.Element;
|
|
2264
2489
|
|
|
2265
|
-
|
|
2490
|
+
interface TableProps {
|
|
2491
|
+
children: ReactNode;
|
|
2492
|
+
variant: TableVariant;
|
|
2493
|
+
width?: Property.Width;
|
|
2494
|
+
}
|
|
2495
|
+
declare const Table: (props: TableProps) => react_jsx_runtime.JSX.Element;
|
|
2266
2496
|
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2497
|
+
interface TableBodyProps {
|
|
2498
|
+
children: ReactNode;
|
|
2499
|
+
}
|
|
2500
|
+
declare const TableBody: (props: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
2501
|
+
|
|
2502
|
+
interface TableDataProps extends DesignSystemBaseProps {
|
|
2503
|
+
children: ReactNode;
|
|
2504
|
+
delimiter?: boolean;
|
|
2505
|
+
headers?: string;
|
|
2506
|
+
textAlign?: TableTextAlign;
|
|
2507
|
+
variant: TableVariant;
|
|
2508
|
+
}
|
|
2509
|
+
declare const TableData: (props: TableDataProps) => react_jsx_runtime.JSX.Element;
|
|
2510
|
+
|
|
2511
|
+
interface TableHeadProps {
|
|
2512
|
+
children: ReactNode;
|
|
2513
|
+
}
|
|
2514
|
+
declare const TableHead: (props: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
2515
|
+
|
|
2516
|
+
interface TableHeadDataProps extends DesignSystemBaseProps {
|
|
2517
|
+
abbr?: string;
|
|
2518
|
+
children: ReactNode;
|
|
2519
|
+
delimiter?: boolean;
|
|
2520
|
+
headers?: string;
|
|
2521
|
+
scope?: TableHeadScope;
|
|
2522
|
+
textAlign?: TableTextAlign;
|
|
2523
|
+
variant: TableVariant;
|
|
2524
|
+
width?: Property.Width;
|
|
2525
|
+
}
|
|
2526
|
+
declare const TableHeadData: (props: TableHeadDataProps) => react_jsx_runtime.JSX.Element;
|
|
2527
|
+
|
|
2528
|
+
interface TableRowProps extends DesignSystemBaseProps {
|
|
2529
|
+
children: ReactNode;
|
|
2530
|
+
variant: TableVariant;
|
|
2531
|
+
}
|
|
2532
|
+
declare const TableRow: (props: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
2533
|
+
|
|
2534
|
+
declare enum TabsVariant {
|
|
2535
|
+
infoTags = "infoTags",
|
|
2536
|
+
primary = "primary",
|
|
2537
|
+
secondary = "secondary",
|
|
2538
|
+
tertiary = "tertiary"
|
|
2277
2539
|
}
|
|
2278
|
-
declare enum
|
|
2540
|
+
declare enum TabsSize {
|
|
2541
|
+
xs = "xs",
|
|
2542
|
+
sm = "sm",
|
|
2543
|
+
md = "md",
|
|
2544
|
+
lg = "lg"
|
|
2545
|
+
}
|
|
2546
|
+
declare enum TabsActiveTabDefaultPosition {
|
|
2279
2547
|
center = "center",
|
|
2280
|
-
|
|
2281
|
-
|
|
2548
|
+
noScrolling = "noScrolling",
|
|
2549
|
+
scrollOnlyWhenNotVisible = "scrollOnlyWhenNotVisible"
|
|
2282
2550
|
}
|
|
2283
|
-
|
|
2284
|
-
|
|
2551
|
+
declare enum TabsWrap {
|
|
2552
|
+
noWrap = "noWrap",
|
|
2553
|
+
/**
|
|
2554
|
+
* Tabs wrap to the next line based on the container width instead of scrolling.
|
|
2555
|
+
* Each tab sizes according to its text content.
|
|
2556
|
+
* This option is intended only for {@link TabsVariant.infoTags}.
|
|
2557
|
+
* When enabled, {@link TabsActiveTabDefaultPosition} has no effect.
|
|
2558
|
+
*/
|
|
2559
|
+
wrap = "wrap"
|
|
2560
|
+
}
|
|
2561
|
+
interface TabItemType {
|
|
2562
|
+
ariaControls?: string;
|
|
2285
2563
|
as?: ElementType;
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2564
|
+
href?: string;
|
|
2565
|
+
icon?: ReactNode;
|
|
2566
|
+
id: string;
|
|
2567
|
+
isActive?: boolean;
|
|
2568
|
+
onActivate?: () => void;
|
|
2569
|
+
text?: ReactElement | string;
|
|
2570
|
+
}
|
|
2571
|
+
interface TabsType {
|
|
2572
|
+
activeTabDefaultPosition: TabsActiveTabDefaultPosition;
|
|
2290
2573
|
fullWidth?: boolean;
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2574
|
+
/**
|
|
2575
|
+
* Controls the gap between individual tab items.
|
|
2576
|
+
* Defaults to {@link Spacing.xxs}.
|
|
2577
|
+
*/
|
|
2578
|
+
gap?: Spacing;
|
|
2579
|
+
/**
|
|
2580
|
+
* Removes the border and background from the tabs container.
|
|
2581
|
+
* Defaults to `false`.
|
|
2582
|
+
*/
|
|
2583
|
+
noBorder?: boolean;
|
|
2584
|
+
size?: TabsSize;
|
|
2585
|
+
tabItems: TabItemType[];
|
|
2586
|
+
variant: TabsVariant;
|
|
2587
|
+
wrap?: TabsWrap;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
interface TabsProps extends TabsType, DesignSystemBaseProps {
|
|
2299
2591
|
}
|
|
2300
|
-
|
|
2592
|
+
/**
|
|
2593
|
+
* This component implements accessibility for tabs according to W3C WAI-ARIA guidelines.
|
|
2594
|
+
* To ensure proper functionality, tab panels must also be described using ARIA attributes.
|
|
2595
|
+
*
|
|
2596
|
+
* More info: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-manual/
|
|
2597
|
+
*/
|
|
2598
|
+
declare const Tabs: (props: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
2301
2599
|
|
|
2302
2600
|
declare enum TagType {
|
|
2303
2601
|
alert = "alert",
|
|
@@ -2342,148 +2640,151 @@ interface TagProps extends DesignSystemBaseProps, AriaAttributes {
|
|
|
2342
2640
|
type: TagType;
|
|
2343
2641
|
whiteSpace?: WhiteSpace;
|
|
2344
2642
|
}
|
|
2345
|
-
declare const Tag:
|
|
2346
|
-
|
|
2347
|
-
declare enum StackDirection {
|
|
2348
|
-
column = "column",
|
|
2349
|
-
columnReverse = "columnReverse",
|
|
2350
|
-
row = "row",
|
|
2351
|
-
rowReverse = "rowReverse"
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
interface StackProps extends AriaAttributes {
|
|
2355
|
-
as?: ElementType;
|
|
2356
|
-
children?: ReactNode;
|
|
2357
|
-
className?: string;
|
|
2358
|
-
direction?: StackDirection;
|
|
2359
|
-
fullWidth?: boolean;
|
|
2360
|
-
gap?: Spacing;
|
|
2361
|
-
id?: string;
|
|
2362
|
-
role?: AriaRole;
|
|
2363
|
-
tabIndex?: number;
|
|
2364
|
-
wrap?: FlexWrap;
|
|
2365
|
-
}
|
|
2366
|
-
declare const Stack: React__default.ForwardRefExoticComponent<StackProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2643
|
+
declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLDivElement>>;
|
|
2367
2644
|
|
|
2368
|
-
|
|
2369
|
-
lg = "lg",
|
|
2370
|
-
md = "md",
|
|
2371
|
-
sm = "sm"
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
interface PaperProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
|
|
2375
|
-
as?: ElementType;
|
|
2376
|
-
children: ReactNode;
|
|
2377
|
-
className?: string;
|
|
2378
|
-
id?: string;
|
|
2379
|
-
overflow?: Overflow;
|
|
2380
|
-
padding?: Spacing;
|
|
2381
|
-
role?: AriaRole;
|
|
2382
|
-
shadow?: PaperShadow;
|
|
2383
|
-
tabIndex?: number;
|
|
2645
|
+
interface TextAreaControlProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldControlProps {
|
|
2384
2646
|
}
|
|
2385
|
-
declare const
|
|
2647
|
+
declare const TextArea: react.ForwardRefExoticComponent<TextAreaControlProps & {
|
|
2648
|
+
label?: react.ReactNode;
|
|
2649
|
+
name?: string | undefined;
|
|
2650
|
+
errorMessage?: react.ReactNode;
|
|
2651
|
+
colorScheme?: ColorScheme | undefined;
|
|
2652
|
+
invalid?: boolean | undefined;
|
|
2653
|
+
labelAs?: react.ElementType | undefined;
|
|
2654
|
+
labelHiddenText?: string | undefined;
|
|
2655
|
+
labelId?: string | undefined;
|
|
2656
|
+
labelSuffix?: react.ReactNode;
|
|
2657
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2658
|
+
mediaType?: MediaType | undefined;
|
|
2659
|
+
addons?: FieldAddon[] | undefined;
|
|
2660
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2661
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2662
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
2663
|
+
hiddenHintText?: react.ReactNode;
|
|
2664
|
+
hintText?: react.ReactNode;
|
|
2665
|
+
layout?: FieldWrapperLayout | undefined;
|
|
2666
|
+
note?: react.ReactNode;
|
|
2667
|
+
optionality?: FieldOptionality | undefined;
|
|
2668
|
+
successMessage?: react.ReactNode;
|
|
2669
|
+
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
2670
|
+
type TextAreaProps = ComponentProps<typeof TextArea>;
|
|
2386
2671
|
|
|
2387
|
-
interface
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
* Accessible label for the progress bar, e.g. "Step progress".
|
|
2391
|
-
* Maps directly to the native `aria-label` attribute.
|
|
2392
|
-
*/
|
|
2393
|
-
'aria-label'?: string;
|
|
2394
|
-
/**
|
|
2395
|
-
* Maximum value for the progress bar.
|
|
2396
|
-
* Defaults to `numberOfSteps`.
|
|
2397
|
-
*/
|
|
2398
|
-
'aria-valuemax'?: number;
|
|
2399
|
-
/**
|
|
2400
|
-
* Minimum value for the progress bar.
|
|
2401
|
-
* Defaults to `1`.
|
|
2402
|
-
*/
|
|
2403
|
-
'aria-valuemin'?: number;
|
|
2404
|
-
/**
|
|
2405
|
-
* Current value for the progress bar.
|
|
2406
|
-
* Defaults to `activeStepIndex + 1`.
|
|
2407
|
-
*/
|
|
2408
|
-
'aria-valuenow'?: number;
|
|
2409
|
-
/**
|
|
2410
|
-
* Accessible text describing the current progress value, e.g. "Step 3 of 5".
|
|
2411
|
-
* Maps directly to the native `aria-valuetext` attribute.
|
|
2412
|
-
*/
|
|
2413
|
-
'aria-valuetext'?: string;
|
|
2414
|
-
numberOfSteps: number;
|
|
2415
|
-
role?: AriaRole;
|
|
2672
|
+
interface TextAreaFieldProps extends Omit<TextAreaProps, 'onChange' | 'value'> {
|
|
2673
|
+
name: string;
|
|
2674
|
+
options?: RegisterOptions;
|
|
2416
2675
|
}
|
|
2676
|
+
declare const TextAreaField: (props: TextAreaFieldProps) => react_jsx_runtime.JSX.Element;
|
|
2417
2677
|
|
|
2418
|
-
interface
|
|
2419
|
-
|
|
2678
|
+
interface TextInputControlProps extends InputProps {
|
|
2679
|
+
iconSystem?: IconSystemType;
|
|
2680
|
+
placeholder?: string;
|
|
2420
2681
|
}
|
|
2421
|
-
declare const
|
|
2682
|
+
declare const TextInput: react.ForwardRefExoticComponent<TextInputControlProps & {
|
|
2683
|
+
label?: react.ReactNode;
|
|
2684
|
+
name?: string | undefined;
|
|
2685
|
+
errorMessage?: react.ReactNode;
|
|
2686
|
+
colorScheme?: ColorScheme | undefined;
|
|
2687
|
+
invalid?: boolean | undefined;
|
|
2688
|
+
labelAs?: react.ElementType | undefined;
|
|
2689
|
+
labelHiddenText?: string | undefined;
|
|
2690
|
+
labelId?: string | undefined;
|
|
2691
|
+
labelSuffix?: react.ReactNode;
|
|
2692
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2693
|
+
mediaType?: MediaType | undefined;
|
|
2694
|
+
addons?: FieldAddon[] | undefined;
|
|
2695
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2696
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2697
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
2698
|
+
hiddenHintText?: react.ReactNode;
|
|
2699
|
+
hintText?: react.ReactNode;
|
|
2700
|
+
layout?: FieldWrapperLayout | undefined;
|
|
2701
|
+
note?: react.ReactNode;
|
|
2702
|
+
optionality?: FieldOptionality | undefined;
|
|
2703
|
+
successMessage?: react.ReactNode;
|
|
2704
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
2705
|
+
type TextInputProps = ComponentProps<typeof TextInput>;
|
|
2422
2706
|
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
text = "text"
|
|
2426
|
-
}
|
|
2427
|
-
declare enum SelectItemOrderSource {
|
|
2428
|
-
formatter = "formatter",
|
|
2429
|
-
value = "value"
|
|
2430
|
-
}
|
|
2431
|
-
interface SelectItemOrder {
|
|
2432
|
-
compareFn?: (a: unknown, b: unknown) => number;
|
|
2433
|
-
source: SelectItemOrderSource;
|
|
2707
|
+
interface TextInputFieldProps extends Omit<TextInputProps, 'onChange' | 'value'> {
|
|
2708
|
+
options?: RegisterOptions;
|
|
2434
2709
|
}
|
|
2435
|
-
|
|
2710
|
+
declare const TextInputField: (props: TextInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
2436
2711
|
|
|
2437
|
-
interface
|
|
2438
|
-
|
|
2712
|
+
interface ToggleProps {
|
|
2713
|
+
defaultValue?: boolean;
|
|
2439
2714
|
disabled?: boolean;
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
itemOrder?: SelectItemOrder;
|
|
2445
|
-
items: TItem[];
|
|
2446
|
-
nilMessage?: string;
|
|
2447
|
-
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
2448
|
-
onChange: (item: TItem | null) => void;
|
|
2449
|
-
value: TItem | null;
|
|
2450
|
-
variant?: SelectVariant;
|
|
2715
|
+
id: string | undefined;
|
|
2716
|
+
label?: ReactNode | string;
|
|
2717
|
+
name: string;
|
|
2718
|
+
onChange?: (value: boolean) => void;
|
|
2451
2719
|
}
|
|
2452
|
-
|
|
2720
|
+
/**
|
|
2721
|
+
* Currently not compatible with react-hook-form
|
|
2722
|
+
*/
|
|
2723
|
+
declare const Toggle: (props: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
2453
2724
|
|
|
2454
|
-
|
|
2455
|
-
|
|
2725
|
+
interface TrailingTextInputControlProps extends InputProps {
|
|
2726
|
+
placeholder?: string;
|
|
2727
|
+
suffix?: ReactNode;
|
|
2728
|
+
}
|
|
2729
|
+
declare const TrailingTextInput: react.ForwardRefExoticComponent<TrailingTextInputControlProps & {
|
|
2730
|
+
label?: ReactNode;
|
|
2731
|
+
name?: string | undefined;
|
|
2732
|
+
errorMessage?: ReactNode;
|
|
2733
|
+
colorScheme?: ColorScheme | undefined;
|
|
2734
|
+
invalid?: boolean | undefined;
|
|
2735
|
+
labelAs?: react.ElementType | undefined;
|
|
2736
|
+
labelHiddenText?: string | undefined;
|
|
2737
|
+
labelId?: string | undefined;
|
|
2738
|
+
labelSuffix?: ReactNode;
|
|
2739
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2740
|
+
mediaType?: MediaType | undefined;
|
|
2741
|
+
addons?: FieldAddon[] | undefined;
|
|
2742
|
+
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2743
|
+
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2744
|
+
controlWidth?: csstype.Property.Width | undefined;
|
|
2745
|
+
hiddenHintText?: ReactNode;
|
|
2746
|
+
hintText?: ReactNode;
|
|
2747
|
+
layout?: FieldWrapperLayout | undefined;
|
|
2748
|
+
note?: ReactNode;
|
|
2749
|
+
optionality?: FieldOptionality | undefined;
|
|
2750
|
+
successMessage?: ReactNode;
|
|
2751
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
2752
|
+
type TrailingTextInputProps = ComponentProps<typeof TrailingTextInput>;
|
|
2456
2753
|
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2754
|
+
declare enum TypographyVariant {
|
|
2755
|
+
textXs = "textXs",
|
|
2756
|
+
textSm = "textSm",
|
|
2757
|
+
textMd = "textMd",
|
|
2758
|
+
textLg = "textLg",
|
|
2759
|
+
h1 = "h1",
|
|
2760
|
+
h2 = "h2",
|
|
2761
|
+
h3 = "h3",
|
|
2762
|
+
h4 = "h4",
|
|
2763
|
+
h5 = "h5"
|
|
2462
2764
|
}
|
|
2463
|
-
declare
|
|
2464
|
-
|
|
2465
|
-
declare enum ButtonsLayoutAlign {
|
|
2765
|
+
declare enum TypographyTextAlign {
|
|
2466
2766
|
center = "center",
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
start = "start",
|
|
2470
|
-
stretch = "stretch"
|
|
2471
|
-
}
|
|
2472
|
-
declare enum ButtonsLayoutDirection {
|
|
2473
|
-
column = "column",
|
|
2474
|
-
columnReverse = "columnReverse",
|
|
2475
|
-
row = "row",
|
|
2476
|
-
rowReverse = "rowReverse"
|
|
2767
|
+
left = "left",
|
|
2768
|
+
right = "right"
|
|
2477
2769
|
}
|
|
2478
2770
|
|
|
2479
|
-
interface
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2771
|
+
interface TypographyProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
|
|
2772
|
+
as?: ElementType;
|
|
2773
|
+
children: ReactNode;
|
|
2774
|
+
className?: string;
|
|
2775
|
+
color?: ColorObject | string;
|
|
2776
|
+
decoration?: TextDecoration;
|
|
2777
|
+
fullWidth?: boolean;
|
|
2778
|
+
id?: string;
|
|
2779
|
+
onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
|
|
2780
|
+
role?: AriaRole;
|
|
2781
|
+
tabIndex?: number;
|
|
2782
|
+
textAlign?: TypographyTextAlign;
|
|
2783
|
+
variant?: TypographyVariant;
|
|
2784
|
+
weight?: FontWeight;
|
|
2785
|
+
whiteSpace?: WhiteSpace;
|
|
2485
2786
|
}
|
|
2486
|
-
declare const
|
|
2787
|
+
declare const Typography: react.ForwardRefExoticComponent<TypographyProps & react.RefAttributes<HTMLElement>>;
|
|
2487
2788
|
|
|
2488
2789
|
interface VisuallyHiddenProps extends AriaAttributes {
|
|
2489
2790
|
as?: ElementType;
|
|
@@ -2491,125 +2792,21 @@ interface VisuallyHiddenProps extends AriaAttributes {
|
|
|
2491
2792
|
id?: string;
|
|
2492
2793
|
role?: AriaRole;
|
|
2493
2794
|
}
|
|
2494
|
-
declare const VisuallyHidden: (props: VisuallyHiddenProps) =>
|
|
2495
|
-
|
|
2496
|
-
type ComboBoxItem = boolean | number | object | string | null;
|
|
2497
|
-
declare enum ComboBoxItemOrderSource {
|
|
2498
|
-
formatter = "formatter",
|
|
2499
|
-
value = "value"
|
|
2500
|
-
}
|
|
2501
|
-
interface ComboBoxItemOrder {
|
|
2502
|
-
compareFn?: (a: unknown, b: unknown) => number;
|
|
2503
|
-
source: ComboBoxItemOrderSource;
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
interface ComboBoxControlProps<TItem extends ComboBoxItem> extends Omit<FieldControlProps, 'name'>, Pick<InputBaseProps, 'ariaLabel' | 'disabled' | 'icon' | 'isPastingDisabled' | 'maxLength' | 'name' | 'onBlur' | 'onFocus' | 'placeholder' | 'required'> {
|
|
2507
|
-
formatter?: Formatter<TItem, ReactNode, number | string>;
|
|
2508
|
-
getItemKey?: (item: TItem | null) => number | string;
|
|
2509
|
-
inputPrefix?: ReactNode;
|
|
2510
|
-
inputSize?: InputSize;
|
|
2511
|
-
inputSuffix?: ReactNode;
|
|
2512
|
-
inputTextAlign?: InputTextAlign;
|
|
2513
|
-
inputWeight?: FontWeight;
|
|
2514
|
-
itemOrder?: ComboBoxItemOrder;
|
|
2515
|
-
items: TItem[];
|
|
2516
|
-
nilMessage?: string;
|
|
2517
|
-
onChange: (item: TItem | null) => void;
|
|
2518
|
-
onInputChange?: (value: string) => void;
|
|
2519
|
-
value: TItem | null;
|
|
2520
|
-
}
|
|
2521
|
-
declare const ComboBoxControl: <TItem extends ComboBoxItem>(props: ComboBoxControlProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement;
|
|
2522
|
-
|
|
2523
|
-
type ComboBoxProps<TItem extends ComboBoxItem> = ComboBoxControlProps<TItem> & Omit<FieldWrapperProps, 'children'>;
|
|
2524
|
-
declare const ComboBox: <TItem extends ComboBoxItem>(props: ComboBoxProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement;
|
|
2795
|
+
declare const VisuallyHidden: (props: VisuallyHiddenProps) => react_jsx_runtime.JSX.Element;
|
|
2525
2796
|
|
|
2526
|
-
|
|
2527
|
-
defaultValue?: TItem | null;
|
|
2528
|
-
name: string;
|
|
2529
|
-
options?: RegisterOptions;
|
|
2530
|
-
shouldResetInvalidValues?: boolean;
|
|
2531
|
-
}
|
|
2532
|
-
declare const ComboBoxField: <TItem extends ComboBoxItem>(props: ComboBoxFieldProps<TItem>) => React__default.JSX.Element;
|
|
2797
|
+
declare const useUniqueIdIfIsUndefined: (idParam: string | undefined) => string;
|
|
2533
2798
|
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
declare enum ThrownFormLevelErrorType {
|
|
2540
|
-
/**
|
|
2541
|
-
* Used for displaying custom application-specific errors.
|
|
2542
|
-
*
|
|
2543
|
-
* Pass additional info in the `meta` property and consume it in using `thrownFormLevelErrorFormatter`.
|
|
2544
|
-
* Make sure to extend `ThrownFormLevelErrorMeta` via declaration merging.
|
|
2545
|
-
*/
|
|
2546
|
-
application = "application",
|
|
2547
|
-
/** Indicates that an unknown error occurred, just like an HTTP 500 status code. */
|
|
2548
|
-
generic = "generic",
|
|
2549
|
-
/** Indicates that an error occured due to a request timing out. */
|
|
2550
|
-
timeout = "timeout"
|
|
2551
|
-
}
|
|
2552
|
-
interface ThrownFormLevelErrorMeta {
|
|
2553
|
-
}
|
|
2554
|
-
interface ThrownFormLevelError {
|
|
2555
|
-
meta?: ThrownFormLevelErrorMeta;
|
|
2556
|
-
type: ThrownFormLevelErrorType;
|
|
2557
|
-
}
|
|
2558
|
-
interface ThrownFormErrors {
|
|
2559
|
-
fieldLevelErrors: ThrownFieldLevelError[];
|
|
2560
|
-
formLevelErrors: ThrownFormLevelError[];
|
|
2561
|
-
}
|
|
2562
|
-
interface ThrownFormLevelErrorFormatterOutput {
|
|
2563
|
-
description: ReactNode;
|
|
2564
|
-
iconProduct?: IconProductType;
|
|
2565
|
-
title: ReactNode;
|
|
2566
|
-
}
|
|
2567
|
-
type ThrownFieldLevelErrorFormatter = Formatter<ThrownFieldLevelError, ReactNode, string>;
|
|
2568
|
-
type ThrownFormLevelErrorFormatter = Formatter<ThrownFormLevelError, ReactNode | ThrownFormLevelErrorFormatterOutput, string>;
|
|
2569
|
-
interface ReCaptchaV3Config {
|
|
2570
|
-
isEnabled: boolean;
|
|
2571
|
-
isEnterprise: boolean;
|
|
2572
|
-
siteKey: string;
|
|
2573
|
-
}
|
|
2574
|
-
declare enum CaptchaType {
|
|
2575
|
-
reCaptchaV3 = "reCaptchaV3"
|
|
2576
|
-
}
|
|
2577
|
-
interface SubmitHandlerErrorInfo {
|
|
2578
|
-
captchaToken?: string;
|
|
2579
|
-
timings: {
|
|
2580
|
-
captchaExecuteEnd?: number;
|
|
2581
|
-
captchaExecuteStart?: number;
|
|
2582
|
-
submitEnd?: number;
|
|
2583
|
-
submitStart?: number;
|
|
2584
|
-
};
|
|
2585
|
-
}
|
|
2586
|
-
interface FormConfig {
|
|
2587
|
-
onSubmitHandlerError?: (error: unknown, errorInfo: SubmitHandlerErrorInfo) => void;
|
|
2588
|
-
reCaptchaV3Config?: ReCaptchaV3Config;
|
|
2589
|
-
resolveThrownFormErrors?: (error: unknown) => ThrownFormErrors;
|
|
2590
|
-
thrownFieldLevelErrorFormatter?: ThrownFieldLevelErrorFormatter;
|
|
2591
|
-
thrownFormLevelErrorFormatter?: ThrownFormLevelErrorFormatter;
|
|
2592
|
-
}
|
|
2593
|
-
interface SubmitHandlerExtraParam {
|
|
2594
|
-
captchaToken?: string;
|
|
2595
|
-
}
|
|
2596
|
-
type SubmitHandler<TFieldValues extends FieldValues> = (data: TFieldValues, extraParam: SubmitHandlerExtraParam, event?: BaseSyntheticEvent) => Promise<unknown> | unknown;
|
|
2799
|
+
declare const liferayClassNames: {
|
|
2800
|
+
tooltipInfoButton: string;
|
|
2801
|
+
label: string;
|
|
2802
|
+
};
|
|
2803
|
+
declare const htmlNbsp = "\u00A0";
|
|
2597
2804
|
|
|
2598
2805
|
interface FormConfigProviderProps {
|
|
2599
2806
|
children: ReactNode;
|
|
2600
2807
|
config: FormConfig;
|
|
2601
2808
|
}
|
|
2602
|
-
declare const FormConfigProvider: (props: FormConfigProviderProps) =>
|
|
2603
|
-
|
|
2604
|
-
interface FormErrorOutcomeProps extends DesignSystemBaseProps, Pick<FormConfig, 'thrownFormLevelErrorFormatter'> {
|
|
2605
|
-
}
|
|
2606
|
-
declare const FormErrorOutcome: (props: FormErrorOutcomeProps) => React__default.JSX.Element | null;
|
|
2607
|
-
|
|
2608
|
-
interface FormErrorSummaryProps extends DesignSystemBaseProps {
|
|
2609
|
-
order?: string[];
|
|
2610
|
-
title?: ReactNode;
|
|
2611
|
-
}
|
|
2612
|
-
declare const FormErrorSummary: (props: FormErrorSummaryProps) => React__default.JSX.Element;
|
|
2809
|
+
declare const FormConfigProvider: (props: FormConfigProviderProps) => react_jsx_runtime.JSX.Element;
|
|
2613
2810
|
|
|
2614
2811
|
interface UseFormCaptchaProp {
|
|
2615
2812
|
action: string;
|
|
@@ -2642,17 +2839,9 @@ interface FormProviderProps<TFieldValues extends FieldValues> {
|
|
|
2642
2839
|
children: ReactNode;
|
|
2643
2840
|
form: UseFormReturn<TFieldValues>;
|
|
2644
2841
|
}
|
|
2645
|
-
declare const FormProvider: <TFieldValues extends FieldValues>(props: FormProviderProps<TFieldValues>) =>
|
|
2646
|
-
|
|
2647
|
-
interface FormSuccessOutcomeProps extends DesignSystemBaseProps {
|
|
2648
|
-
children: ReactNode;
|
|
2649
|
-
onHide: () => void;
|
|
2650
|
-
title: ReactNode;
|
|
2651
|
-
visible: boolean;
|
|
2652
|
-
}
|
|
2653
|
-
declare const FormSuccessOutcome: (props: FormSuccessOutcomeProps) => React__default.JSX.Element;
|
|
2842
|
+
declare const FormProvider: <TFieldValues extends FieldValues>(props: FormProviderProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
2654
2843
|
|
|
2655
|
-
declare const FormConfigContext:
|
|
2844
|
+
declare const FormConfigContext: react.Context<FormConfig>;
|
|
2656
2845
|
|
|
2657
2846
|
declare enum ReCaptchaErrorType {
|
|
2658
2847
|
instanceNotInitialized = "instanceNotInitialized",
|
|
@@ -2665,130 +2854,15 @@ declare class ReCaptchaError extends Error {
|
|
|
2665
2854
|
|
|
2666
2855
|
declare const useFormContext: <TFieldValues extends FieldValues>() => UseFormReturn<TFieldValues>;
|
|
2667
2856
|
|
|
2668
|
-
interface UseFormSuccessOutcomeManagerReturn {
|
|
2669
|
-
formKey: Key;
|
|
2670
|
-
formSuccessOutcomeProps: {
|
|
2671
|
-
onHide: () => void;
|
|
2672
|
-
visible: boolean;
|
|
2673
|
-
};
|
|
2674
|
-
onMutationSuccess: () => void;
|
|
2675
|
-
}
|
|
2676
|
-
declare const useFormSuccessOutcomeManager: () => UseFormSuccessOutcomeManagerReturn;
|
|
2677
|
-
|
|
2678
|
-
declare enum FileInputErrorCode {
|
|
2679
|
-
fileSizeTooLarge = "fileSizeTooLarge",
|
|
2680
|
-
general = "general",
|
|
2681
|
-
tooManyFiles = "tooManyFiles",
|
|
2682
|
-
totalFileSizeTooLarge = "totalFileSizeTooLarge",
|
|
2683
|
-
unsupportedFormat = "unsupportedFormat"
|
|
2684
|
-
}
|
|
2685
|
-
interface FileInputSettings {
|
|
2686
|
-
fileExtensions: string[];
|
|
2687
|
-
maxFiles?: number;
|
|
2688
|
-
maxSize: number;
|
|
2689
|
-
maxTotalSize?: number;
|
|
2690
|
-
}
|
|
2691
|
-
type FileInputLimitDescriptionComponent = ComponentType<FileInputSettings>;
|
|
2692
|
-
type FileInputUploadErrorReasonComponent = ComponentType<{
|
|
2693
|
-
errorCode: FileInputErrorCode;
|
|
2694
|
-
}>;
|
|
2695
|
-
type FileInputUploadFailedComponent = ComponentType<{
|
|
2696
|
-
fileName: string;
|
|
2697
|
-
}>;
|
|
2698
|
-
type FileInputDropzoneDragOrSelectFilesComponent = ComponentType<{
|
|
2699
|
-
selectedFiles: ReactNode;
|
|
2700
|
-
}>;
|
|
2701
|
-
type FileInputDropzoneDragFilesHereComponent = ComponentType;
|
|
2702
|
-
type FileInputRemoveButtonTextComponent = ComponentType<{
|
|
2703
|
-
fileName: string;
|
|
2704
|
-
}>;
|
|
2705
|
-
type FileInputDropzoneSelectFilesComponent = ComponentType;
|
|
2706
|
-
|
|
2707
|
-
interface FileInputControlProps extends FileInputSettings, DesignSystemBaseProps {
|
|
2708
|
-
/** Component displayed when a file is dragged over the dropzone. */
|
|
2709
|
-
DropzoneDragFilesHere: FileInputDropzoneDragFilesHereComponent;
|
|
2710
|
-
/** Component displaying prompt to drag or select files for upload. */
|
|
2711
|
-
DropzoneDragOrSelectFiles: FileInputDropzoneDragOrSelectFilesComponent;
|
|
2712
|
-
/** Clickable text prompting the user to select files for upload. */
|
|
2713
|
-
DropzoneSelectFiles: FileInputDropzoneSelectFilesComponent;
|
|
2714
|
-
/** Component describing the limits for uploaded files. */
|
|
2715
|
-
LimitDescription: FileInputLimitDescriptionComponent;
|
|
2716
|
-
/** Component for label for the remove file button. */
|
|
2717
|
-
RemoveButtonText: FileInputRemoveButtonTextComponent;
|
|
2718
|
-
/** Component displaying the reason for file upload failure. */
|
|
2719
|
-
UploadErrorReason: FileInputUploadErrorReasonComponent;
|
|
2720
|
-
/** Component displayed when file upload fails. */
|
|
2721
|
-
UploadFailed: FileInputUploadFailedComponent;
|
|
2722
|
-
/** Message read by screen readers after file is removed. */
|
|
2723
|
-
getFileRemovedLiveText?: (fileName: string) => string;
|
|
2724
|
-
/** Message read by screen readers after files are added. */
|
|
2725
|
-
getFilesAddedLiveText?: (fileNames: string[]) => string;
|
|
2726
|
-
/** aria-label for remove file button. */
|
|
2727
|
-
getRemoveButtonAriaLabel: (fileName: string) => string;
|
|
2728
|
-
invalid?: boolean;
|
|
2729
|
-
name: string;
|
|
2730
|
-
onBlur?: () => void;
|
|
2731
|
-
onChange: (files: File[]) => void;
|
|
2732
|
-
value: File[];
|
|
2733
|
-
}
|
|
2734
|
-
declare const FileInputControl: React__default.ForwardRefExoticComponent<FileInputControlProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2735
|
-
|
|
2736
|
-
declare const FileInput: React__default.ForwardRefExoticComponent<Omit<FileInputControlProps & {
|
|
2737
|
-
colorScheme?: ColorScheme | undefined;
|
|
2738
|
-
mediaType?: MediaType | undefined;
|
|
2739
|
-
label?: React__default.ReactNode;
|
|
2740
|
-
name?: string | undefined;
|
|
2741
|
-
invalid?: boolean | undefined;
|
|
2742
|
-
addons?: FieldAddon[] | undefined;
|
|
2743
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2744
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2745
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2746
|
-
errorMessage?: React__default.ReactNode;
|
|
2747
|
-
hiddenHintText?: React__default.ReactNode;
|
|
2748
|
-
hintText?: React__default.ReactNode;
|
|
2749
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2750
|
-
note?: React__default.ReactNode;
|
|
2751
|
-
optionality?: FieldOptionality | undefined;
|
|
2752
|
-
successMessage?: React__default.ReactNode;
|
|
2753
|
-
labelAs?: React__default.ElementType | undefined;
|
|
2754
|
-
labelHiddenText?: string | undefined;
|
|
2755
|
-
labelId?: string | undefined;
|
|
2756
|
-
labelSuffix?: React__default.ReactNode;
|
|
2757
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2758
|
-
} & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2759
|
-
type FileInputProps = ComponentProps<typeof FileInput>;
|
|
2760
|
-
|
|
2761
|
-
interface FileInputFieldProps extends Omit<FileInputProps, 'onBlur' | 'onChange' | 'value'> {
|
|
2762
|
-
options?: RegisterOptions;
|
|
2763
|
-
}
|
|
2764
|
-
declare const FileInputField: (props: FileInputFieldProps) => React__default.JSX.Element;
|
|
2765
|
-
|
|
2766
|
-
interface CircularProgressBarProps extends DesignSystemBaseProps {
|
|
2767
|
-
iconProduct: IconProductType;
|
|
2768
|
-
progress: number;
|
|
2769
|
-
}
|
|
2770
|
-
declare const CircularProgressBar: (props: CircularProgressBarProps) => React__default.JSX.Element;
|
|
2771
|
-
|
|
2772
|
-
declare const isRenderable: (node: ReactNode) => node is Exclude<ReactNode, boolean | null | undefined>;
|
|
2773
|
-
|
|
2774
|
-
declare const pxToRem: (px: number | string, base?: number) => string;
|
|
2775
|
-
|
|
2776
2857
|
declare const identityFormatter: afformative.Formatter<any, any, any, {
|
|
2777
2858
|
[x: string]: any;
|
|
2778
2859
|
}>;
|
|
2779
2860
|
declare const jsonFormatter: afformative.Formatter<any, string, string, {
|
|
2780
2861
|
[x: string]: any;
|
|
2781
2862
|
}>;
|
|
2782
|
-
declare const useMessageFormatter: <TInput extends unknown>(getMessage: (value: TInput) => MessageDescriptorWithPrimitiveValues | string) => afformative.Formatter<TInput,
|
|
2863
|
+
declare const useMessageFormatter: <TInput extends unknown>(getMessage: (value: TInput) => MessageDescriptorWithPrimitiveValues | string) => afformative.Formatter<TInput, ReactNode, string, {
|
|
2783
2864
|
[x: string]: any;
|
|
2784
2865
|
}>;
|
|
2785
2866
|
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
declare const liferayClassNames: {
|
|
2789
|
-
tooltipInfoButton: string;
|
|
2790
|
-
label: string;
|
|
2791
|
-
};
|
|
2792
|
-
|
|
2793
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionKeyValue, AccordionVariant, BorderRadius, Button, ButtonContentAlign, ButtonSize, ButtonStyle, ButtonType, ButtonsLayout, ButtonsLayoutAlign, ButtonsLayoutDirection, CalculatorResult, CalculatorResultInfoPosition, CaptchaType, Checkbox, CheckboxControl, CheckboxField, CheckboxPosition, CircularProgressBar, ColorScheme, ColorSchemeProvider, ComboBox, ComboBoxControl, ComboBoxField, ComboBoxItemOrderSource, DatePicker, DatePickerControl, DatePickerField, DesignSystemMessagesProvider, DesignSystemPropDefaultsProvider, DesignSystemProvider, EmailInput, EmailInputField, ErrorBox, FieldAddonPosition, FieldConfigProvider, FieldLabelStoreProvider, FieldOptionality, FieldWrapper, FieldWrapperLayout, FileInput, FileInputControl, FileInputErrorCode, FileInputField, FlexWrap, FontWeight, FormConfigContext, FormConfigProvider, FormErrorOutcome, FormErrorSummary, FormProvider, FormSuccessOutcome, FormatAmountCurrencyDisplay, FormatAmountGrouping, FormattedAmount$1 as FormattedAmount, FormattedHtmlMessage, FormattedMessage, _default as FormattedPercentage, IconProduct, IconProductHighlightType, IconProductSize, IconProductType, IconProductVariant, IconSystem, IconSystemSize, IconSystemType, Infobox, InfoboxSize, InfoboxVariant, InputBase, InputLabel, InputLabelSize, InputSize, InputTextAlign, LabelTooltipPosition, Loader, LoaderOverlayBox, LoaderSize, MaskedInput, MaskedInputBase, MaskedInputField, MediaType, MediaTypeProvider, Modal, ModalVerticalPosition, ModalWidthType, FormattedAmount as NextFormattedAmount, NumberInput, NumberInputField, Overflow, Paper, PaperShadow, PhoneInput, PhoneInputField, ProgressPaper, Radio, RadioButton, RadioButtonGroup, RadioButtonGroupControl, RadioButtonGroupField, RadioButtonGroupLayout, RadioControl, RadioField, RadioGroup, RadioGroupControl, RadioGroupDirection, RadioGroupField, RadioPosition, ReCaptchaError, ReCaptchaErrorType, ReasonForClosing, SearchInput, Select, SelectControl, SelectField, SelectItemOrderSource, SelectVariant, Slider, SliderInput, SliderInputField, SliderInputRoundingType, SliderStepType, Spacing, SpanButton, Stack, StackDirection, Table, TableBody, TableData, TableHead, TableHeadData, TableHeadScope, TableRow, TableTextAlign, TableVariant, Tabs, TabsActiveTabDefaultPosition, TabsSize, TabsVariant, TabsWrap, Tag, TagIconPosition, TagSize, TagTextTransform, TagType, TextArea, TextAreaField, TextDecoration, TextInput, TextInputField, ThrownFormLevelErrorType, Toggle, TooltipCloseReason, TooltipGeneral, TooltipInfo, TooltipInfoConditional, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, TooltipPlacement, TooltipWidth, TrailingTextInput, Typography, TypographyTextAlign, TypographyVariant, VisuallyHidden, WhiteSpace, datePickerValueFormat, getColor, getTextDecorationStyle, identityFormatter, isRenderable, jsonFormatter, liferayClassNames, mapTooltipInfoDescriptorToPropsSubset, pxToRem, resolveBorderRadiusValue, resolveFlexWrapValue, resolveFontWeightValue, resolveOverflowValue, resolveSpacingValue, resolveTextDecorationValue, resolveWhiteSpaceValue, styled, theme, useChooseColor, useColorScheme, useCreateTooltipInfoDescriptor, useDesignSystem, useDesignSystemMessages, useDesignSystemPropDefaults, useFieldConfig, useFieldLabels, useForm, useFormContext, useFormSuccessOutcomeManager, useFormatAmount$1 as useFormatAmount, useFormattedPercentage, useGetFormattedHtmlMessageIfDisplayable, useIsMessageDisplayable, useMediaType, useMessageFormatter, useFormatAmount as useNextFormatAmount, useRegisterFieldLabel, withFieldWrapper, withMaskedInputField };
|
|
2794
|
-
export type { AccordionContentType, AccordionItemProps, AccordionItemType, AccordionKeyValueProps, AccordionProps, ButtonProps, ButtonsLayoutProps, CalculatorResultBodyItem, CalculatorResultHeader, CalculatorResultMain, CalculatorResultModalDescriptor, CalculatorResultProps, CheckboxControlProps, CheckboxFieldProps, CheckboxProps, ChooseColor, CircularProgressBarProps, ColorObject, ColorSchemeProviderProps, ComboBoxControlProps, ComboBoxFieldProps, ComboBoxItem, ComboBoxItemOrder, ComboBoxProps, CreateTooltipInfoDescriptor, CreateTooltipInfoDescriptorParam, DatePickerControlProps, DatePickerFieldProps, DatePickerProps, DesignSystemBaseProps, DesignSystemFullMessages, DesignSystemFullPropDefaults, DesignSystemMessagesProviderProps, DesignSystemPartialMessages, DesignSystemPartialPropDefaults, DesignSystemPropDefaultsProviderProps, DesignSystemProviderProps, EmailInputFieldProps, EmailInputProps, ErrorBoxItem, ErrorBoxProps, FieldAddon, FieldConfig, FieldConfigProviderProps, FieldControlProps, FieldLabelStoreProviderProps, FieldWrapperControlProps, FieldWrapperProps, FileInputControlProps, FileInputDropzoneDragFilesHereComponent, FileInputDropzoneDragOrSelectFilesComponent, FileInputDropzoneSelectFilesComponent, FileInputFieldProps, FileInputLimitDescriptionComponent, FileInputProps, FileInputRemoveButtonTextComponent, FileInputSettings, FileInputUploadErrorReasonComponent, FileInputUploadFailedComponent, FormConfig, FormConfigProviderProps, FormErrorOutcomeProps, FormErrorSummaryProps, FormProviderProps, FormSuccessOutcomeProps, FormattedAmountProps$1 as FormattedAmountProps, FormattedHtmlMessageProps, FormattedMessageProps, GetColor, IconProductProps, IconSystemProps, InfoboxProps, InfoboxTextContent, InputBaseProps, InputLabelPassthroughProps, InputLabelProps, LoaderOverlayBoxProps, LoaderProps, MaskedInputBaseProps, MaskedInputFieldProps, MaskedInputProps, MediaTypeProviderProps, MessageDescriptorWithPrimitiveValues, MessageDescriptorWithValues, MessageValues, ModalOnClose, ModalProps, FormattedAmountProps as NextFormattedAmountProps, NumberInputFieldProps, NumberInputProps, PaperProps, PhoneInputFieldProps, PhoneInputProps, PrimitiveMessageValues, ProgressPaperProps, RadioButtonGroupControlProps, RadioButtonGroupFieldProps, RadioButtonGroupItem, RadioButtonGroupProps, RadioButtonLabel, RadioButtonProps, RadioControlProps, RadioFieldProps, RadioGroupControlProps, RadioGroupFieldProps, RadioGroupItem, RadioGroupProps, RadioProps, ReCaptchaV3Config, SearchInputProps, SelectControlProps, SelectFieldProps, SelectItem, SelectItemOrder, SelectProps, SliderAriaValueTextFormatter, SliderAriaValueTextFormatterDataContext, SliderBreakpoint, SliderInputFieldProps, SliderInputLimitExceededLiveTextFormatter, SliderInputLimitExceededLiveTextFormatterDataContext, SliderInputProps, SliderMinMaxLabels, SliderProps, SliderSteps, SpanButtonProps, StackProps, SubmitHandler, SubmitHandlerErrorInfo, SubmitHandlerExtraParam, TabItemType, TableBodyProps, TableDataProps, TableHeadDataProps, TableHeadProps, TableProps, TableRowProps, TabsProps, TabsType, TagProps, TextAreaFieldProps, TextAreaProps, TextInputFieldProps, TextInputProps, Theme, ThrownFieldLevelError, ThrownFieldLevelErrorFormatter, ThrownFormErrors, ThrownFormLevelError, ThrownFormLevelErrorFormatter, ThrownFormLevelErrorFormatterOutput, ThrownFormLevelErrorMeta, ToggleProps, TooltipDescriptor, TooltipGeneralProps, TooltipInfoConditionalProps, TooltipInfoDescriptor, TooltipInfoDisplayableCheckProps, TooltipInfoProps, TooltipRenderParent, TrailingTextInputProps, TypographyProps, UseColorSchemeOptions, UseColorSchemeParam, UseDesignSystemOptions, UseDesignSystemParam, UseFormCaptchaProp, UseFormHandleSubmit, UseFormProps, UseFormReturn, UseFormSuccessOutcomeManagerReturn, UseFormatAmountParam, UseMediaTypeOptions, UseMediaTypeParam, VisuallyHiddenProps };
|
|
2867
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionKeyValue, AccordionVariant, BorderRadius, Button, ButtonContentAlign, ButtonSize, ButtonStyle, ButtonType, ButtonsLayout, ButtonsLayoutAlign, ButtonsLayoutDirection, CalculatorResult, CalculatorResultInfoPosition, CaptchaType, Checkbox, CheckboxControl, CheckboxField, CheckboxPosition, CircularProgressBar, ColorScheme, ColorSchemeProvider, ComboBox, ComboBoxControl, ComboBoxField, ComboBoxItemOrderSource, ComboBoxValueType, DatePicker, DatePickerControl, DatePickerField, DesignSystemMessagesProvider, DesignSystemPropDefaultsProvider, DesignSystemProvider, EmailInput, EmailInputField, ErrorBox, FieldAddonPosition, FieldConfigProvider, FieldLabelStoreProvider, FieldOptionality, FieldWrapper, FieldWrapperLayout, FileInput, FileInputControl, FileInputErrorCode, FileInputField, FlexWrap, FontWeight, FormConfigContext, FormConfigProvider, FormErrorOutcome, FormErrorSummary, FormProvider, FormSuccessOutcome, FormatAmountCurrencyDisplay, FormatAmountGrouping, FormattedAmount$1 as FormattedAmount, FormattedHtmlMessage, FormattedMessage, FormattedPercentage, IconFlag, IconFlagType, IconProduct, IconProductHighlightType, IconProductSize, IconProductType, IconProductVariant, IconSystem, IconSystemSize, IconSystemType, Infobox, InfoboxSize, InfoboxVariant, InputBase, InputLabel, InputLabelSize, InputSize, InputTextAlign, LabelTooltipPosition, Loader, LoaderOverlayBox, LoaderSize, MaskedInput, MaskedInputBase, MaskedInputField, MediaType, MediaTypeProvider, Modal, ModalVerticalPosition, ModalWidthType, FormattedAmount as NextFormattedAmount, NumberInput, NumberInputField, Overflow, Paper, PaperShadow, PhoneInput, PhoneInputField, ProgressPaper, Radio, RadioButton, RadioButtonField, RadioButtonGroup, RadioButtonGroupControl, RadioButtonGroupField, RadioButtonGroupLayout, RadioControl, RadioField, RadioGroup, RadioGroupControl, RadioGroupDirection, RadioGroupField, RadioPosition, ReCaptchaError, ReCaptchaErrorType, ReasonForClosing, SearchInput, Select, SelectControl, SelectField, SelectItemOrderSource, SelectVariant, Slider, SliderInput, SliderInputField, SliderInputRoundingType, SliderStepType, Spacing, SpanButton, Stack, StackDirection, Stepper, StepperVariant, StoreButton, StoreButtonSize, StoreButtonVariant, Table, TableBody, TableData, TableHead, TableHeadData, TableHeadScope, TableRow, TableTextAlign, TableVariant, Tabs, TabsActiveTabDefaultPosition, TabsSize, TabsVariant, TabsWrap, Tag, TagIconPosition, TagSize, TagTextTransform, TagType, TextArea, TextAreaField, TextDecoration, TextInput, TextInputField, ThrownFormLevelErrorType, Toggle, TooltipCloseReason, TooltipGeneral, TooltipInfo, TooltipInfoConditional, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, TooltipPlacement, TooltipWidth, TrailingTextInput, Typography, TypographyTextAlign, TypographyVariant, VisuallyHidden, WhiteSpace, datePickerValueFormat, getClampedFontSize, getColor, getTextDecorationStyle, htmlNbsp, identityFormatter, isRenderable, jsonFormatter, liferayClassNames, mapTooltipInfoDescriptorToPropsSubset, mergeRefs, pxToRem, renderReactNodeArray, resolveBorderRadiusValue, resolveFlexWrapValue, resolveFontWeightValue, resolveOverflowValue, resolveSpacingValue, resolveTextDecorationValue, resolveWhiteSpaceValue, styled, theme, useChooseColor, useColorScheme, useCreateTooltipInfoDescriptor, useDesignSystem, useDesignSystemMessages, useDesignSystemPropDefaults, useFieldConfig, useFieldLabels, useForm, useFormContext, useFormSuccessOutcomeManager, useFormatAmount$1 as useFormatAmount, useFormatPercentage, useFormattedPercentage, useGetFormattedHtmlMessageIfDisplayable, useIsMessageDisplayable, useMediaType, useMessageFormatter, useFormatAmount as useNextFormatAmount, useRegisterFieldLabel, useUniqueIdIfIsUndefined, withFieldWrapper, withMaskedInputField };
|
|
2868
|
+
export type { AccordionContentType, AccordionItemProps, AccordionItemType, AccordionKeyValueProps, AccordionProps, ButtonProps, ButtonsLayoutProps, CalculatorResultBodyItem, CalculatorResultHeader, CalculatorResultMain, CalculatorResultModalDescriptor, CalculatorResultProps, CheckboxControlProps, CheckboxFieldProps, CheckboxProps, ChooseColor, CircularProgressBarProps, ColorObject, ColorSchemeProviderProps, ComboBoxControlProps, ComboBoxFieldProps, ComboBoxItem, ComboBoxItemOrder, ComboBoxProps, ComboBoxValue, CreateTooltipInfoDescriptor, CreateTooltipInfoDescriptorParam, DatePickerControlProps, DatePickerFieldProps, DatePickerProps, DesignSystemBaseProps, DesignSystemFullMessages, DesignSystemFullPropDefaults, DesignSystemMessagesProviderProps, DesignSystemPartialMessages, DesignSystemPartialPropDefaults, DesignSystemPropDefaultsProviderProps, DesignSystemProviderProps, EmailInputFieldProps, EmailInputProps, ErrorBoxItem, ErrorBoxProps, FieldAddon, FieldConfig, FieldConfigProviderProps, FieldControlProps, FieldLabelStoreProviderProps, FieldWrapperControlProps, FieldWrapperProps, FileInputControlProps, FileInputDropzoneDragFilesHereComponent, FileInputDropzoneDragOrSelectFilesComponent, FileInputDropzoneSelectFilesComponent, FileInputFieldProps, FileInputLimitDescriptionComponent, FileInputProps, FileInputRemoveButtonTextComponent, FileInputSettings, FileInputUploadErrorReasonComponent, FileInputUploadFailedComponent, FormConfig, FormConfigProviderProps, FormErrorOutcomeProps, FormErrorSummaryProps, FormProviderProps, FormSuccessOutcomeProps, FormatAmountParam, FormattedAmountProps$1 as FormattedAmountProps, FormattedHtmlMessageProps, FormattedMessageProps, FormattedPercentageProps, GetColor, IconFlagProps, IconProductProps, IconSystemProps, IconSystemSvgProps, InfoboxProps, InfoboxTextContent, InputBaseProps, InputLabelPassthroughProps, InputLabelProps, InputProps, LoaderOverlayBoxProps, LoaderProps, MaskedInputBaseProps, MaskedInputFieldProps, MaskedInputProps, MediaTypeProviderProps, MessageDescriptorWithPrimitiveValues, MessageDescriptorWithValues, MessageValues, ModalOnClose, ModalProps, FormattedAmountProps as NextFormattedAmountProps, NumberInputFieldProps, NumberInputProps, PaperProps, PhoneInputFieldProps, PhoneInputProps, PrimitiveMessageValues, ProgressPaperProps, RadioButtonFieldProps, RadioButtonGroupControlProps, RadioButtonGroupFieldProps, RadioButtonGroupItem, RadioButtonGroupProps, RadioButtonLabel, RadioButtonProps, RadioControlProps, RadioFieldProps, RadioGeneralProps, RadioGroupControlProps, RadioGroupFieldProps, RadioGroupItem, RadioGroupProps, RadioProps, ReCaptchaV3Config, SearchInputProps, SelectControlProps, SelectFieldProps, SelectItem, SelectItemOrder, SelectProps, SliderAriaValueTextFormatter, SliderAriaValueTextFormatterDataContext, SliderBreakpoint, SliderInputFieldProps, SliderInputLimitExceededLiveTextFormatter, SliderInputLimitExceededLiveTextFormatterDataContext, SliderInputProps, SliderMinMaxLabels, SliderProps, SliderSteps, SpanButtonProps, SsrProps, StackProps, StepperItemProps, StepperProps, StoreButtonProps, SubmitHandler, SubmitHandlerErrorInfo, SubmitHandlerExtraParam, TabItemType, TableBodyProps, TableDataProps, TableHeadDataProps, TableHeadProps, TableProps, TableRowProps, TabsProps, TabsType, TagProps, TextAreaFieldProps, TextAreaProps, TextInputFieldProps, TextInputProps, Theme, ThrownFieldLevelError, ThrownFieldLevelErrorFormatter, ThrownFormErrors, ThrownFormLevelError, ThrownFormLevelErrorFormatter, ThrownFormLevelErrorFormatterOutput, ThrownFormLevelErrorMeta, ToggleProps, TooltipDescriptor, TooltipGeneralProps, TooltipInfoConditionalProps, TooltipInfoDescriptor, TooltipInfoDisplayableCheckProps, TooltipInfoProps, TooltipRenderParent, TrailingTextInputProps, TypographyProps, UseColorSchemeOptions, UseColorSchemeParam, UseDesignSystemOptions, UseDesignSystemParam, UseFormCaptchaProp, UseFormHandleSubmit, UseFormProps, UseFormReturn, UseFormSuccessOutcomeManagerReturn, UseMediaTypeOptions, UseMediaTypeParam, VisuallyHiddenProps };
|