@mmb-digital/design-system-web 0.1.338 → 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/dist/index.d.ts CHANGED
@@ -1,101 +1,38 @@
1
- import * as React from 'react';
2
- import React__default, { ReactNode, HTMLProps, ReactElement, AriaAttributes, ElementType, RefObject, MouseEvent, AriaRole, HTMLAttributeAnchorTarget, TouchEvent, FocusEventHandler, HTMLInputAutoCompleteAttribute, FocusEvent, ChangeEvent, ComponentType, ComponentProps, TextareaHTMLAttributes, RefAttributes, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, HTMLInputTypeAttribute, FC, KeyboardEvent, BaseSyntheticEvent, Key } from 'react';
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 { FormatXMLElementFn, PrimitiveType } from 'intl-messageformat';
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
- interface AccordionItemType {
20
- closeActionAriaLabel?: string;
21
- content: ReactNode;
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
- type UseMediaTypeParam = MediaType | {
48
- mediaType?: MediaType | undefined;
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
- declare enum ColorScheme {
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
- type ChooseColor = <Dark extends string = string, Light extends string = string>(colorSchemeObject: ColorObject<Dark, Light>) => Dark | Light;
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
- interface ColorSchemeProviderProps {
79
- children: ReactNode;
80
- colorScheme: ColorScheme;
81
- }
82
- declare const ColorSchemeProvider: React__default.FC<ColorSchemeProviderProps>;
33
+ declare const useIsMessageDisplayable: () => IsMessageDisplayableHookReturnFunction;
83
34
 
84
- type UseColorSchemeParam = ColorScheme | {
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) => React__default.JSX.Element | null;
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) => React__default.JSX.Element | null;
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) => React__default.JSX.Element;
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 | React__default.MutableRefObject<HTMLElement | null> | null;
111
+ portalRootElement?: HTMLElement | MutableRefObject<HTMLElement | null> | null;
211
112
  renderParent: TooltipRenderParent;
212
113
  }
213
- declare const TooltipGeneral: (props: TooltipGeneralProps) => React__default.JSX.Element;
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) => React__default.ReactNode;
290
+ declare const DesignSystemProvider: (props: DesignSystemProviderProps) => ReactNode;
261
291
 
262
- interface UseDesignSystemParam {
263
- colorScheme?: ColorScheme | undefined;
264
- mediaType?: MediaType | undefined;
265
- }
266
- interface UseDesignSystemOptions extends UseColorSchemeOptions, UseMediaTypeOptions {
267
- }
268
- declare const useDesignSystem: (param?: UseDesignSystemParam, options?: UseDesignSystemOptions) => {
269
- colorScheme: ColorScheme;
270
- mediaType: MediaType;
271
- chooseColor: ChooseColor;
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) => React__default.JSX.Element;
289
- declare const useFieldLabels: () => Record<string, React__default.ReactNode>;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
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) => "" | _emotion_react.SerializedStyles;
1144
+ declare const getTextDecorationStyle: (textDecoration?: TextDecoration) => "" | _emotion_utils.SerializedStyles;
1077
1145
 
1078
- interface SpanButtonProps extends DesignSystemBaseProps, AriaAttributes {
1079
- borderRadius?: BorderRadius;
1080
- children?: ReactNode;
1081
- className?: string;
1082
- disabled?: boolean;
1083
- id?: string;
1084
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
1085
- onMouseDown?: (event: MouseEvent<HTMLButtonElement>) => void;
1086
- onMouseUp?: (event: MouseEvent<HTMLButtonElement>) => void;
1087
- onTouchStart?: (event: TouchEvent<HTMLButtonElement>) => void;
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 SliderBreakpoint {
1092
- readonly bottomBreakpoint: number;
1093
- readonly step: number;
1160
+ interface ButtonsLayoutProps extends SsrProps {
1161
+ align: ButtonsLayoutAlign;
1162
+ buttons: ReactNode[];
1163
+ direction: ButtonsLayoutDirection;
1164
+ gap?: Spacing;
1165
+ wrap?: FlexWrap;
1094
1166
  }
1095
- interface SliderSteps {
1096
- readonly baseStep: number;
1097
- readonly breakpointList: SliderBreakpoint[];
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
- declare enum SliderStepType {
1100
- visuallyLinearByValue = "visuallyLinearByValue",// step changes dynamically (visually steps are of different sizes)
1101
- visuallySameStepSize = "visuallySameStepSize"
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 SliderMinMaxLabels {
1104
- readonly max: ReactElement | string;
1105
- readonly min: ReactElement | string;
1188
+ interface CalculatorResultMain {
1189
+ element: ReactElement | string;
1190
+ topSeparator?: boolean;
1106
1191
  }
1107
- interface SliderAriaValueTextFormatterDataContext {
1108
- clampMax?: number;
1109
- clampMin?: number;
1192
+ interface CalculatorResultModalDescriptor {
1193
+ content: ReactElement | string;
1194
+ modalCloseButtonAriaLabel?: string;
1195
+ triggerText: ReactElement | string;
1110
1196
  }
1111
- type SliderAriaValueTextFormatter = Formatter<number, string, string, SliderAriaValueTextFormatterDataContext>;
1112
- interface SliderInputLimitExceededLiveTextFormatterDataContext {
1113
- clampMax: number;
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 SliderProps extends DesignSystemBaseProps {
1124
- ariaLabelForHandle?: string;
1125
- ariaLabelledByForHandle?: string;
1126
- ariaValueTextFormatter?: SliderAriaValueTextFormatter;
1127
- /** 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. */
1128
- clampMax?: number;
1129
- /** 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. */
1130
- clampMin?: number;
1131
- disable?: boolean | undefined;
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 Slider: (props: SliderProps) => React__default.JSX.Element;
1212
+ declare const CalculatorResult: (props: CalculatorResultProps) => react_jsx_runtime.JSX.Element;
1145
1213
 
1146
- interface ErrorBoxItem {
1147
- body: ReactElement | string;
1148
- onClick?: () => void;
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
- interface ErrorBoxProps {
1152
- colorScheme?: ColorScheme;
1153
- content?: ReactNode;
1154
- items?: ErrorBoxItem[];
1155
- tabIndex?: number;
1156
- title?: ReactNode;
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 ErrorBox: React__default.ForwardRefExoticComponent<ErrorBoxProps & React__default.RefAttributes<HTMLDivElement>>;
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) => React__default.JSX.Element;
1298
+ declare const IconProduct: (props: IconProductProps) => react_jsx_runtime.JSX.Element;
1212
1299
 
1213
- declare enum InfoboxVariant {
1214
- primary = "primary",
1215
- secondary = "secondary"
1300
+ interface CircularProgressBarProps extends DesignSystemBaseProps {
1301
+ iconProduct: IconProductType;
1302
+ progress: number;
1216
1303
  }
1217
- declare enum InfoboxSize {
1218
- md = "md",
1219
- sm = "sm",
1220
- xs = "xs"
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 InfoboxTextContent {
1223
- primary: ReactNode;
1224
- secondary?: ReactNode;
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 InfoboxProps extends DesignSystemBaseProps, AriaAttributes {
1228
- /** Cannot be used alongside `children`. */
1229
- actionNode?: ReactNode;
1230
- children?: ReactNode;
1231
- /** In order to render a circular progress bar, `iconProduct` must be provided as well. */
1232
- circularProgress?: number;
1233
- className?: string;
1234
- fullWidth?: boolean;
1235
- iconProduct?: IconProductType;
1236
- id?: string;
1237
- isWarning?: boolean;
1238
- role?: AriaRole;
1239
- size: InfoboxSize;
1240
- tabIndex?: number;
1241
- /** Cannot be used alongside `children`. */
1242
- textContent?: InfoboxTextContent;
1243
- variant: InfoboxVariant;
1244
- }
1245
- declare const Infobox: React__default.ForwardRefExoticComponent<InfoboxProps & React__default.RefAttributes<HTMLDivElement>>;
1246
-
1247
- declare enum TableVariant {
1248
- exchange = "exchange",
1249
- simple = "simple",
1250
- simpleWithoutShadow = "simpleWithoutShadow"
1251
- }
1252
- declare enum TableTextAlign {
1253
- center = "center",
1254
- left = "left",
1255
- right = "right"
1256
- }
1257
- declare enum TableHeadScope {
1258
- col = "col",
1259
- colgroup = "colgroup",
1260
- row = "row",
1261
- rowgroup = "rowgroup"
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;
1262
1355
  }
1356
+ declare const InputBase: react.ForwardRefExoticComponent<Omit<InputBaseProps, "ref"> & RefAttributes<HTMLInputElement>>;
1263
1357
 
1264
- interface TableProps {
1265
- children: ReactNode;
1266
- variant: TableVariant;
1267
- width?: Property.Width;
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>;
1268
1372
  }
1269
- declare const Table: (props: TableProps) => React__default.JSX.Element;
1373
+ declare const ComboBoxControl: <TItem extends ComboBoxItem>(props: ComboBoxControlProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement;
1270
1374
 
1271
- interface TableBodyProps {
1272
- children: ReactNode;
1375
+ declare enum FieldWrapperLayout {
1376
+ horizontal = "horizontal",
1377
+ vertical = "vertical"
1273
1378
  }
1274
- declare const TableBody: (props: TableBodyProps) => React__default.JSX.Element;
1275
1379
 
1276
- interface TableDataProps extends DesignSystemBaseProps {
1277
- children: ReactNode;
1278
- delimiter?: boolean;
1279
- headers?: string;
1280
- textAlign?: TableTextAlign;
1281
- variant: TableVariant;
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"
1282
1386
  }
1283
- declare const TableData: (props: TableDataProps) => React__default.JSX.Element;
1284
-
1285
- interface TableHeadProps {
1387
+ interface FieldAddon {
1286
1388
  children: ReactNode;
1389
+ key: Key;
1390
+ position: FieldAddonPosition;
1287
1391
  }
1288
- declare const TableHead: (props: TableHeadProps) => React__default.JSX.Element;
1289
-
1290
- interface TableHeadDataProps extends DesignSystemBaseProps {
1291
- abbr?: string;
1292
- children: ReactNode;
1293
- delimiter?: boolean;
1294
- headers?: string;
1295
- scope?: TableHeadScope;
1296
- textAlign?: TableTextAlign;
1297
- variant: TableVariant;
1298
- width?: Property.Width;
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;
1299
1413
  }
1300
- declare const TableHeadData: (props: TableHeadDataProps) => React__default.JSX.Element;
1414
+ declare const FieldWrapper: (props: FieldWrapperProps) => react_jsx_runtime.JSX.Element;
1301
1415
 
1302
- interface TableRowProps extends DesignSystemBaseProps {
1303
- children: ReactNode;
1304
- variant: TableVariant;
1305
- }
1306
- declare const TableRow: (props: TableRowProps) => 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>>;
1307
1418
 
1308
- declare enum TabsVariant {
1309
- infoTags = "infoTags",
1310
- primary = "primary",
1311
- secondary = "secondary",
1312
- tertiary = "tertiary"
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;
1362
- }
1419
+ type ComboBoxProps<TItem extends ComboBoxItem> = ComboBoxControlProps<TItem> & Omit<FieldWrapperProps, 'children'>;
1420
+ declare const ComboBox: <TItem extends ComboBoxItem>(props: ComboBoxProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement;
1363
1421
 
1364
- interface TabsProps extends TabsType, DesignSystemBaseProps {
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;
1365
1427
  }
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;
1428
+ declare const ComboBoxField: <TItem extends ComboBoxItem>(props: ComboBoxFieldProps<TItem>) => react_jsx_runtime.JSX.Element;
1373
1429
 
1374
- type ModalOnClose = (reasonForClosing: ReasonForClosing) => void;
1375
- declare enum ModalWidthType {
1376
- default = "default",
1377
- narrow = "narrow",// on desktop
1378
- narrowOnDesktopAndTablet = "narrowOnDesktopAndTablet"
1379
- }
1380
- declare enum ModalVerticalPosition {
1381
- centerOnTablet = "centerOnTablet",
1382
- default = "default"
1383
- }
1384
- declare enum ReasonForClosing {
1385
- closeButton = "closeButton",
1386
- esc = "esc",
1387
- overlay = "overlay"
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;
1388
1441
  }
1442
+ declare const DatePickerControl: react.ForwardRefExoticComponent<DatePickerControlProps & react.RefAttributes<HTMLInputElement>>;
1389
1443
 
1390
- interface ModalProps extends DesignSystemBaseProps {
1391
- children: ReactNode;
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;
1404
- }
1405
- declare const Modal: (props: ModalProps) => React__default.ReactPortal | null;
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>;
1406
1468
 
1407
- interface CalculatorResultHeader {
1408
- bottom?: ReactElement | string | undefined;
1409
- main?: ReactElement | string | undefined;
1410
- top?: ReactElement | string | undefined;
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;
1469
+ interface DatePickerFieldProps extends Omit<ComponentProps<typeof DatePicker>, 'onChange'> {
1470
+ options?: RegisterOptions;
1434
1471
  }
1435
- declare enum CalculatorResultInfoPosition {
1436
- inBox = "inBox",
1437
- underBox = "underBox"
1472
+ declare const DatePickerField: (props: DatePickerFieldProps) => react_jsx_runtime.JSX.Element;
1473
+
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 CalculatorResultProps extends DesignSystemBaseProps {
1441
- bodyItems: CalculatorResultBodyItem[];
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 CalculatorResult: (props: CalculatorResultProps) => React__default.JSX.Element;
1507
+ declare const EmailInputField: (props: EmailInputFieldProps) => react_jsx_runtime.JSX.Element;
1451
1508
 
1452
- declare enum LoaderSize {
1453
- lg = "lg",
1454
- sm = "sm"
1509
+ interface ErrorBoxItem {
1510
+ body: ReactElement | string;
1511
+ onClick?: () => void;
1455
1512
  }
1456
1513
 
1457
- interface LoaderProps extends DesignSystemBaseProps, AriaAttributes {
1458
- loaderSize: LoaderSize;
1459
- role?: AriaRole;
1514
+ interface ErrorBoxProps {
1515
+ colorScheme?: ColorScheme;
1516
+ content?: ReactNode;
1517
+ items?: ErrorBoxItem[];
1518
+ tabIndex?: number;
1519
+ title?: ReactNode;
1460
1520
  }
1461
- declare const Loader: (props: LoaderProps) => React__default.JSX.Element;
1521
+ declare const ErrorBox: react.ForwardRefExoticComponent<ErrorBoxProps & react.RefAttributes<HTMLDivElement>>;
1462
1522
 
1463
- interface LoaderOverlayBoxProps extends DesignSystemBaseProps, AriaAttributes {
1464
- loaderSize: LoaderSize;
1465
- role?: AriaRole;
1523
+ declare enum FileInputErrorCode {
1524
+ fileSizeTooLarge = "fileSizeTooLarge",
1525
+ general = "general",
1526
+ tooManyFiles = "tooManyFiles",
1527
+ totalFileSizeTooLarge = "totalFileSizeTooLarge",
1528
+ unsupportedFormat = "unsupportedFormat"
1529
+ }
1530
+ interface FileInputSettings {
1531
+ fileExtensions: string[];
1532
+ maxFiles?: number;
1533
+ maxSize: number;
1534
+ maxTotalSize?: number;
1466
1535
  }
1467
- declare const LoaderOverlayBox: (props: LoaderOverlayBoxProps) => React__default.JSX.Element;
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 FormattedPercentageProps {
1470
- readonly maximumFractionDigits?: number;
1471
- readonly minimumFractionDigits?: number;
1472
- readonly value: number;
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 _default: React.NamedExoticComponent<FormattedPercentageProps>;
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 UseFormatPercentageTypeParam {
1478
- maximumFractionDigits?: number;
1479
- minimumFractionDigits?: number;
1480
- value: number;
1606
+ interface FileInputFieldProps extends Omit<FileInputProps, 'onBlur' | 'onChange' | 'value'> {
1607
+ options?: RegisterOptions;
1481
1608
  }
1482
- type UseFormatPercentage = (param: UseFormatPercentageTypeParam) => string;
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 UseFormatAmountParam extends FormatAmountDescriptor {
1630
+ interface FormatAmountParam extends FormatAmountDescriptor {
1505
1631
  }
1506
1632
 
1507
- type UseFormatAmountType$1 = (param: UseFormatAmountParam) => string;
1508
- declare const useFormatAmount$1: () => UseFormatAmountType$1;
1633
+ declare const useFormatAmount$1: () => (param: FormatAmountParam) => string;
1509
1634
 
1510
- type UseFormatAmountType = (param: UseFormatAmountParam) => string;
1511
- declare const useFormatAmount: () => UseFormatAmountType;
1635
+ declare const useFormatAmount: () => (param: FormatAmountParam) => string;
1512
1636
 
1513
1637
  interface BaseFormattedAmountProps extends FormatAmountDescriptor {
1514
- formatAmount: (param: UseFormatAmountParam) => string;
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) => React__default.JSX.Element;
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) => React__default.JSX.Element;
1647
+ declare const FormattedAmount: (props: FormattedAmountProps) => react_jsx_runtime.JSX.Element;
1524
1648
 
1525
- interface CheckboxControlProps {
1526
- ariaLabel?: string;
1527
- checked?: boolean;
1528
- colorScheme?: ColorScheme;
1529
- disabled?: boolean;
1530
- focused?: boolean;
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
- invalid?: boolean;
1533
- name: string;
1534
- onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
1535
- onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
1536
- value?: string;
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 CheckboxControl: React__default.ForwardRefExoticComponent<CheckboxControlProps & React__default.RefAttributes<HTMLInputElement>>;
1802
+ declare const Infobox: react.ForwardRefExoticComponent<InfoboxProps & react.RefAttributes<HTMLDivElement>>;
1539
1803
 
1540
- interface FieldControlProps extends DesignSystemBaseProps {
1541
- describedBy?: string;
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
- labelSuffix?: ReactNode;
1819
+ size?: InputLabelSize;
1820
+ suffix?: ReactNode;
1563
1821
  tooltip?: TooltipInfoDescriptor;
1564
1822
  }
1565
- declare enum LabelTooltipPosition {
1566
- inline = "inline",
1567
- rightCenter = "rightCenter"
1823
+ declare const InputLabel: (props: InputLabelProps) => react_jsx_runtime.JSX.Element;
1824
+
1825
+ declare enum LoaderSize {
1826
+ lg = "lg",
1827
+ sm = "sm"
1568
1828
  }
1569
1829
 
1570
- declare enum CheckboxPosition {
1571
- left = "left",
1572
- right = "right"
1830
+ interface LoaderProps extends DesignSystemBaseProps, AriaAttributes {
1831
+ loaderSize: LoaderSize;
1832
+ role?: AriaRole;
1573
1833
  }
1834
+ declare const Loader: (props: LoaderProps) => react_jsx_runtime.JSX.Element;
1574
1835
 
1575
- interface CheckboxProps extends CheckboxControlProps, InputLabelPassthroughProps, DesignSystemBaseProps {
1576
- errorMessage?: ReactNode;
1577
- labelColor?: string;
1578
- position?: CheckboxPosition;
1579
- tooltipPosition?: LabelTooltipPosition;
1836
+ interface LoaderOverlayBoxProps extends DesignSystemBaseProps, AriaAttributes {
1837
+ loaderSize: LoaderSize;
1838
+ role?: AriaRole;
1580
1839
  }
1581
- declare const Checkbox: React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>;
1840
+ declare const LoaderOverlayBox: (props: LoaderOverlayBoxProps) => react_jsx_runtime.JSX.Element;
1582
1841
 
1583
- interface CheckboxFieldProps extends Omit<CheckboxProps, 'onChange' | 'value'> {
1584
- options?: RegisterOptions;
1842
+ type MaskedInputOnAccept = (unmaskedValue: string, maskedValue: string) => void;
1843
+
1844
+ interface MaskedInputBaseProps extends InputBaseProps {
1845
+ maskOptions: FactoryOpts;
1846
+ onAccept?: MaskedInputOnAccept;
1585
1847
  }
1586
- declare const CheckboxField: (props: CheckboxFieldProps) => React__default.JSX.Element;
1848
+ declare const MaskedInputBase: react.ForwardRefExoticComponent<Omit<MaskedInputBaseProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
1587
1849
 
1588
- declare enum InputSize {
1589
- md = "md",
1590
- xl = "xl"
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"
1591
1913
  }
1592
- declare enum InputTextAlign {
1593
- center = "center",
1594
- left = "left",
1595
- right = "right"
1914
+ declare enum ModalVerticalPosition {
1915
+ centerOnTablet = "centerOnTablet",
1916
+ default = "default"
1596
1917
  }
1597
- declare enum FieldWrapperLayout {
1598
- horizontal = "horizontal",
1599
- vertical = "vertical"
1918
+ declare enum ReasonForClosing {
1919
+ closeButton = "closeButton",
1920
+ esc = "esc",
1921
+ overlay = "overlay"
1600
1922
  }
1601
- interface InputProps extends FieldControlProps {
1602
- ariaLabel?: string;
1603
- autoComplete?: HTMLInputAutoCompleteAttribute;
1604
- button?: ReactNode;
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;
1923
+
1924
+ interface ModalProps extends DesignSystemBaseProps {
1925
+ children: ReactNode;
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;
1616
1938
  }
1939
+ declare const Modal: (props: ModalProps) => react.ReactPortal | null;
1617
1940
 
1618
- type FieldWrapperControlProps = Required<Pick<FieldControlProps, 'describedBy' | 'id' | 'invalid' | 'labelledBy' | 'required'>>;
1619
- declare enum FieldAddonPosition {
1620
- afterControl = "afterControl",
1621
- beforeControl = "beforeControl",
1622
- belowControl = "belowControl",
1623
- bottom = "bottom"
1941
+ interface NumberInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
1942
+ allowNegative?: boolean;
1943
+ decimalPlaces?: number;
1944
+ integerPlaces?: number;
1945
+ maskOptions?: FactoryOpts;
1624
1946
  }
1625
- interface FieldAddon {
1947
+ declare const NumberInput: react.ForwardRefExoticComponent<Omit<NumberInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
1948
+
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>;
1954
+
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;
1626
1963
  children: ReactNode;
1627
- key: React__default.Key;
1628
- position: FieldAddonPosition;
1964
+ className?: string;
1965
+ id?: string;
1966
+ overflow?: Overflow;
1967
+ padding?: Spacing;
1968
+ role?: AriaRole;
1969
+ shadow?: PaperShadow;
1970
+ tabIndex?: number;
1629
1971
  }
1630
- interface FieldWrapperProps extends DesignSystemBaseProps, InputLabelPassthroughProps {
1631
- addons?: FieldAddon[];
1632
- children?: ReactNode | ((controlProps: FieldWrapperControlProps) => ReactNode);
1633
- controlId?: string;
1634
- controlMobileWidth?: Property.Width;
1635
- /** `controlSection` represents the right section in horizontal layout. */
1636
- controlSectionWidth?: Property.Width;
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;
1972
+ declare const Paper: react.ForwardRefExoticComponent<PaperProps & react.RefAttributes<HTMLDivElement>>;
1973
+
1974
+ interface PhoneInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
1975
+ maskOptions?: FactoryOpts;
1976
+ prefixColor?: Property.Color;
1651
1977
  }
1652
- declare const FieldWrapper: (props: FieldWrapperProps) => React__default.JSX.Element;
1978
+ declare const PhoneInput: react.ForwardRefExoticComponent<Omit<PhoneInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
1653
1979
 
1654
- type WithFieldWrapperProps = Omit<FieldWrapperProps, 'children' | 'controlId' | 'id'>;
1655
- declare const withFieldWrapper: <TProps extends FieldControlProps, TElement extends HTMLElement>(FieldControl: ComponentType<TProps>) => React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<TProps & WithFieldWrapperProps> & React__default.RefAttributes<TElement>>;
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>;
1656
1985
 
1657
- interface RadioGeneralProps extends AriaAttributes {
1658
- checked?: boolean;
1659
- disabled?: boolean;
1660
- id?: string;
1661
- invalid?: boolean;
1662
- name: string;
1663
- onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1664
- onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
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;
1665
2014
  role?: AriaRole;
1666
- value: string;
1667
2015
  }
1668
2016
 
1669
- interface RadioControlProps extends DesignSystemBaseProps, RadioGeneralProps {
2017
+ interface ProgressPaperProps extends PaperProps, SsrProps {
2018
+ progressDefinition: ProgressDefinition;
1670
2019
  }
1671
- declare const RadioControl: React__default.ForwardRefExoticComponent<RadioControlProps & React__default.RefAttributes<HTMLInputElement>>;
2020
+ declare const ProgressPaper: react.ForwardRefExoticComponent<ProgressPaperProps & react.RefAttributes<HTMLDivElement>>;
1672
2021
 
1673
2022
  declare enum RadioPosition {
1674
2023
  left = "left",
1675
2024
  right = "right"
1676
2025
  }
1677
-
1678
- interface RadioProps extends RadioControlProps, InputLabelPassthroughProps, DesignSystemBaseProps {
1679
- errorMessage?: ReactNode;
1680
- labelColor?: string;
1681
- position?: RadioPosition;
1682
- tooltipPosition?: LabelTooltipPosition;
1683
- }
1684
- declare const Radio: React__default.ForwardRefExoticComponent<RadioProps & React__default.RefAttributes<HTMLInputElement>>;
1685
-
1686
- interface RadioFieldProps extends Omit<RadioProps, 'onChange'> {
1687
- name: string;
1688
- options?: RegisterOptions;
1689
- }
1690
- declare const RadioField: (props: RadioFieldProps) => React__default.JSX.Element;
1691
-
1692
- interface RadioGroupItem extends InputLabelPassthroughProps, AriaAttributes {
2026
+ interface RadioGeneralProps extends AriaAttributes {
2027
+ checked?: boolean;
2028
+ disabled?: boolean;
1693
2029
  id?: string;
2030
+ invalid?: boolean;
2031
+ name: string;
2032
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
2033
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
1694
2034
  role?: AriaRole;
1695
2035
  value: string;
1696
2036
  }
1697
- declare enum RadioGroupDirection {
1698
- column = "column",
1699
- columnReverse = "columnReverse",
1700
- row = "row",
1701
- rowReverse = "rowReverse"
1702
- }
1703
-
1704
- interface RadioGroupControlProps extends FieldControlProps, DesignSystemBaseProps {
1705
- columnGap?: Spacing;
1706
- controlWidth?: Property.Width;
1707
- direction: RadioGroupDirection;
1708
- disabled?: boolean;
1709
- itemMinWidth?: Property.Width;
1710
- items: RadioGroupItem[];
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
- label?: React__default.ReactNode;
1721
- name?: string | undefined;
1722
- invalid?: boolean | undefined;
1723
- colorScheme?: ColorScheme | undefined;
1724
- mediaType?: MediaType | 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'> {
1745
- name: string;
1746
- options?: RegisterOptions;
1747
- }
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?: React__default.ReactElement | string | undefined;
2044
+ errorMessage?: ReactElement | string | undefined;
1757
2045
  label: RadioButtonLabel;
1758
2046
  }
1759
- declare const RadioButton: React__default.ForwardRefExoticComponent<RadioButtonProps & React__default.RefAttributes<HTMLInputElement>>;
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: React__default.FocusEvent<HTMLInputElement>) => void) | undefined;
1786
- onChange?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
2079
+ onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
2080
+ onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1787
2081
  value?: string;
1788
2082
  }
1789
- declare const RadioButtonGroupControl: React__default.ForwardRefExoticComponent<RadioButtonGroupControlProps & React__default.RefAttributes<HTMLInputElement>>;
2083
+ declare const RadioButtonGroupControl: react.ForwardRefExoticComponent<RadioButtonGroupControlProps & react.RefAttributes<HTMLInputElement>>;
1790
2084
 
1791
- declare const RadioButtonGroup: React__default.ForwardRefExoticComponent<Omit<RadioButtonGroupControlProps & {
1792
- label?: React__default.ReactNode;
2085
+ declare const RadioButtonGroup: react.ForwardRefExoticComponent<Omit<RadioButtonGroupControlProps & {
2086
+ label?: react.ReactNode;
1793
2087
  name?: string | undefined;
1794
- invalid?: boolean | undefined;
2088
+ errorMessage?: react.ReactNode;
1795
2089
  colorScheme?: ColorScheme | undefined;
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;
1796
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
- errorMessage?: React__default.ReactNode;
1802
- hiddenHintText?: React__default.ReactNode;
1803
- hintText?: React__default.ReactNode;
2101
+ hiddenHintText?: react.ReactNode;
2102
+ hintText?: react.ReactNode;
1804
2103
  layout?: FieldWrapperLayout | undefined;
1805
- note?: React__default.ReactNode;
2104
+ note?: react.ReactNode;
1806
2105
  optionality?: FieldOptionality | undefined;
1807
- successMessage?: React__default.ReactNode;
1808
- labelAs?: React__default.ElementType | undefined;
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) => React__default.JSX.Element;
2114
+ declare const RadioButtonGroupField: (props: RadioButtonGroupFieldProps) => react_jsx_runtime.JSX.Element;
1821
2115
 
1822
- interface TextAreaControlProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldControlProps {
2116
+ interface RadioControlProps extends DesignSystemBaseProps, RadioGeneralProps {
1823
2117
  }
1824
- declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaControlProps & {
1825
- label?: React__default.ReactNode;
1826
- name?: string | undefined;
1827
- invalid?: boolean | undefined;
1828
- colorScheme?: ColorScheme | undefined;
1829
- mediaType?: MediaType | 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 TextAreaFieldProps extends Omit<TextAreaProps, 'onChange' | 'value'> {
1850
- name: string;
1851
- options?: RegisterOptions;
2120
+ interface RadioProps extends RadioControlProps, InputLabelPassthroughProps, DesignSystemBaseProps {
2121
+ errorMessage?: ReactNode;
2122
+ labelColor?: string;
2123
+ position?: RadioPosition;
2124
+ tooltipPosition?: LabelTooltipPosition;
1852
2125
  }
1853
- declare const TextAreaField: (props: TextAreaFieldProps) => React__default.JSX.Element;
2126
+ declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
1854
2127
 
1855
- 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'> {
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
- onBlur?: ((event: React__default.FocusEvent<HTMLInputElement>) => void) | undefined;
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 InputLabelProps extends DesignSystemBaseProps {
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
- invalid?: boolean;
1899
- label?: ReactNode;
1900
- labelId?: string;
1901
- size?: InputLabelSize;
1902
- suffix?: ReactNode;
1903
- tooltip?: TooltipInfoDescriptor;
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 EmailInputControlProps extends InputProps {
1908
- placeholder?: string;
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 EmailInput: React__default.ForwardRefExoticComponent<EmailInputControlProps & {
1911
- label?: React__default.ReactNode;
2159
+ declare const RadioGroupControl: react.ForwardRefExoticComponent<RadioGroupControlProps & react.RefAttributes<HTMLInputElement>>;
2160
+
2161
+ declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupControlProps & {
2162
+ label?: react.ReactNode;
1912
2163
  name?: string | undefined;
1913
- invalid?: boolean | undefined;
2164
+ errorMessage?: react.ReactNode;
1914
2165
  colorScheme?: ColorScheme | undefined;
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;
1915
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
- errorMessage?: React__default.ReactNode;
1921
- hiddenHintText?: React__default.ReactNode;
1922
- hintText?: React__default.ReactNode;
2177
+ hiddenHintText?: react.ReactNode;
2178
+ hintText?: react.ReactNode;
1923
2179
  layout?: FieldWrapperLayout | undefined;
1924
- note?: React__default.ReactNode;
2180
+ note?: react.ReactNode;
1925
2181
  optionality?: FieldOptionality | undefined;
1926
- successMessage?: React__default.ReactNode;
1927
- labelAs?: React__default.ElementType | undefined;
1928
- labelHiddenText?: string | undefined;
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 EmailInputFieldProps extends Omit<EmailInputProps, 'onChange' | 'value'> {
2186
+ interface RadioGroupFieldProps extends Omit<RadioGroupProps, 'onBlur' | 'onChange' | 'value'> {
2187
+ name: string;
1936
2188
  options?: RegisterOptions;
1937
2189
  }
1938
- declare const EmailInputField: (props: EmailInputFieldProps) => React__default.JSX.Element;
1939
-
1940
- type MaskedInputOnAccept = (unmaskedValue: string, maskedValue: string) => void;
2190
+ declare const RadioGroupField: (props: RadioGroupFieldProps) => react_jsx_runtime.JSX.Element;
1941
2191
 
1942
- interface MaskedInputBaseProps extends InputBaseProps {
1943
- maskOptions: FactoryOpts;
1944
- onAccept?: MaskedInputOnAccept;
2192
+ interface SearchInputControlProps extends InputProps {
2193
+ buttonAction?: () => void;
2194
+ buttonText?: ReactNode;
2195
+ invalid?: boolean;
2196
+ placeholder?: string;
1945
2197
  }
1946
- declare const MaskedInputBase: React__default.ForwardRefExoticComponent<Omit<MaskedInputBaseProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
1947
-
1948
- declare const MaskedInput: React.ForwardRefExoticComponent<Omit<MaskedInputBaseProps & {
1949
- label?: React.ReactNode;
2198
+ declare const SearchInput: react.ForwardRefExoticComponent<SearchInputControlProps & {
2199
+ label?: ReactNode;
1950
2200
  name?: string | undefined;
1951
- invalid?: boolean | undefined;
2201
+ errorMessage?: ReactNode;
1952
2202
  colorScheme?: ColorScheme | undefined;
1953
- mediaType?: MediaType | undefined;
1954
- addons?: FieldAddon[] | undefined;
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;
2203
+ invalid?: boolean | undefined;
2204
+ labelAs?: react.ElementType | undefined;
1966
2205
  labelHiddenText?: string | undefined;
1967
2206
  labelId?: string | undefined;
1968
- labelSuffix?: React.ReactNode;
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
- label?: React__default.ReactNode;
1980
- name?: string | undefined;
1981
- invalid?: boolean | undefined;
1982
- colorScheme?: ColorScheme | undefined;
1983
2209
  mediaType?: MediaType | 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
- errorMessage?: React__default.ReactNode;
1989
- hiddenHintText?: React__default.ReactNode;
1990
- hintText?: React__default.ReactNode;
2214
+ hiddenHintText?: ReactNode;
2215
+ hintText?: ReactNode;
1991
2216
  layout?: FieldWrapperLayout | undefined;
1992
- note?: React__default.ReactNode;
2217
+ note?: ReactNode;
1993
2218
  optionality?: FieldOptionality | undefined;
1994
- successMessage?: React__default.ReactNode;
1995
- labelAs?: React__default.ElementType | undefined;
1996
- labelHiddenText?: string | undefined;
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
- interface NumberInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
2007
- allowNegative?: boolean;
2008
- decimalPlaces?: number;
2009
- integerPlaces?: number;
2010
- maskOptions?: FactoryOpts;
2223
+ declare enum SelectVariant {
2224
+ inputLike = "inputLike",
2225
+ text = "text"
2011
2226
  }
2012
- declare const NumberInput: React__default.ForwardRefExoticComponent<Omit<NumberInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
2013
-
2014
- declare const NumberInputField: <TFieldValues extends react_hook_form.FieldValues>(props: Omit<NumberInputProps, "ref"> & React.RefAttributes<HTMLInputElement> & {
2015
- name: react_hook_form.Path<TFieldValues>;
2016
- options?: react_hook_form.RegisterOptions<TFieldValues> | undefined;
2017
- }) => React.JSX.Element;
2018
- type NumberInputFieldProps = ComponentProps<typeof NumberInputField>;
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 PhoneInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
2021
- maskOptions?: FactoryOpts;
2022
- prefixColor?: Property.Color;
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 PhoneInput: React__default.ForwardRefExoticComponent<Omit<PhoneInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
2252
+ declare const SelectControl: <TItem extends SelectItem>(props: RefAttributes<HTMLDivElement> & SelectControlProps<TItem>) => ReactElement;
2025
2253
 
2026
- declare const PhoneInputField: <TFieldValues extends react_hook_form.FieldValues>(props: PhoneInputProps & {
2027
- name: react_hook_form.Path<TFieldValues>;
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 SearchInputControlProps extends InputProps {
2033
- buttonAction?: () => void;
2034
- buttonText?: ReactNode;
2035
- invalid?: boolean;
2036
- placeholder?: string;
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 SearchInput: React__default.ForwardRefExoticComponent<SearchInputControlProps & {
2039
- label?: React__default.ReactNode;
2040
- name?: string | undefined;
2041
- invalid?: boolean | undefined;
2042
- colorScheme?: ColorScheme | undefined;
2043
- mediaType?: MediaType | 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: React__default.ForwardRefExoticComponent<Omit<SliderInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
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) => React__default.JSX.Element;
2399
+ declare const SliderInputField: (props: SliderInputFieldProps) => react_jsx_runtime.JSX.Element;
2143
2400
 
2144
- interface TextInputControlProps extends InputProps {
2145
- iconSystem?: IconSystemType;
2146
- placeholder?: string;
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 TextInput: React__default.ForwardRefExoticComponent<TextInputControlProps & {
2149
- label?: React__default.ReactNode;
2150
- name?: string | undefined;
2151
- invalid?: boolean | undefined;
2152
- colorScheme?: ColorScheme | undefined;
2153
- mediaType?: MediaType | 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
- interface TextInputFieldProps extends Omit<TextInputProps, 'onChange' | 'value'> {
2174
- options?: RegisterOptions;
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 TrailingTextInputControlProps extends InputProps {
2179
- placeholder?: string;
2180
- suffix?: ReactNode;
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 TrailingTextInput: React__default.ForwardRefExoticComponent<TrailingTextInputControlProps & {
2183
- label?: React__default.ReactNode;
2184
- name?: string | undefined;
2185
- invalid?: boolean | undefined;
2186
- colorScheme?: ColorScheme | undefined;
2187
- mediaType?: MediaType | 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
- interface ToggleProps {
2208
- defaultValue?: boolean;
2435
+ declare enum StepperVariant {
2436
+ horizontal = "horizontal",
2437
+ vertical = "vertical"
2438
+ }
2439
+
2440
+ interface StepperItemProps {
2209
2441
  disabled?: boolean;
2210
- id: string | undefined;
2211
- label?: ReactNode | string;
2212
- name: string;
2213
- onChange?: (value: boolean) => void;
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
- * Currently not compatible with react-hook-form
2218
- */
2219
- declare const Toggle: FC<ToggleProps>;
2451
+ interface StepperProps {
2452
+ steps: StepperItemProps[];
2453
+ variant: StepperVariant;
2454
+ }
2455
+ declare const Stepper: (props: StepperProps) => react_jsx_runtime.JSX.Element;
2220
2456
 
2221
- interface DatePickerControlProps extends Pick<DatePickerProps$1, 'chooseDayAriaLabelPrefix' | 'dateFormat' | 'disabledDayAriaLabelPrefix' | 'filterDate' | 'maxDate' | 'minDate' | 'monthAriaLabelPrefix' | 'nextMonthAriaLabel' | 'onBlur' | 'previousMonthAriaLabel' | 'selected'>, FieldControlProps {
2222
- chevronCloseAriaLabel?: string;
2223
- chevronOpenAriaLabel?: string;
2224
- disabled?: boolean;
2225
- locale?: Locale;
2226
- monthSelectAriaLabel?: string;
2227
- monthYearSelectEnabled?: boolean;
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
- declare const DatePicker: React.ForwardRefExoticComponent<DatePickerControlProps & {
2236
- label?: React.ReactNode;
2237
- name?: string | undefined;
2238
- invalid?: boolean | undefined;
2239
- colorScheme?: ColorScheme | undefined;
2240
- mediaType?: MediaType | undefined;
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
- interface DatePickerFieldProps extends Omit<ComponentProps<typeof DatePicker>, 'onChange'> {
2261
- options?: RegisterOptions;
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
- declare const datePickerValueFormat = "yyyy-MM-dd";
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
- declare enum TypographyVariant {
2268
- textXs = "textXs",
2269
- textSm = "textSm",
2270
- textMd = "textMd",
2271
- textLg = "textLg",
2272
- h1 = "h1",
2273
- h2 = "h2",
2274
- h3 = "h3",
2275
- h4 = "h4",
2276
- h5 = "h5"
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 TypographyTextAlign {
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
- left = "left",
2281
- right = "right"
2548
+ noScrolling = "noScrolling",
2549
+ scrollOnlyWhenNotVisible = "scrollOnlyWhenNotVisible"
2282
2550
  }
2283
-
2284
- interface TypographyProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
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
- children: ReactNode;
2287
- className?: string;
2288
- color?: ColorObject | string;
2289
- decoration?: TextDecoration;
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
- id?: string;
2292
- onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
2293
- role?: AriaRole;
2294
- tabIndex?: number;
2295
- textAlign?: TypographyTextAlign;
2296
- variant?: TypographyVariant;
2297
- weight?: FontWeight;
2298
- whiteSpace?: WhiteSpace;
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
- declare const Typography: React__default.ForwardRefExoticComponent<TypographyProps & React__default.RefAttributes<HTMLElement>>;
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: React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLDivElement>>;
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
- declare enum PaperShadow {
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 Paper: React__default.ForwardRefExoticComponent<PaperProps & React__default.RefAttributes<HTMLDivElement>>;
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 ProgressDefinition extends AriaAttributes {
2388
- activeStepIndex: number;
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 ProgressPaperProps extends PaperProps, SsrProps {
2419
- progressDefinition: ProgressDefinition;
2678
+ interface TextInputControlProps extends InputProps {
2679
+ iconSystem?: IconSystemType;
2680
+ placeholder?: string;
2420
2681
  }
2421
- declare const ProgressPaper: React__default.ForwardRefExoticComponent<ProgressPaperProps & React__default.RefAttributes<HTMLDivElement>>;
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
- declare enum SelectVariant {
2424
- inputLike = "inputLike",
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
- type SelectItem = boolean | number | object | string | null;
2710
+ declare const TextInputField: (props: TextInputFieldProps) => react_jsx_runtime.JSX.Element;
2436
2711
 
2437
- interface SelectControlProps<TItem extends SelectItem> extends FieldControlProps, DesignSystemBaseProps {
2438
- ariaLabel?: string;
2712
+ interface ToggleProps {
2713
+ defaultValue?: boolean;
2439
2714
  disabled?: boolean;
2440
- formatter?: Formatter<TItem, ReactNode, number | string>;
2441
- getItemKey?: (item: TItem | null) => number | string;
2442
- iconSystem?: IconSystemType;
2443
- id?: string;
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
- declare const SelectControl: <TItem extends SelectItem>(props: RefAttributes<HTMLDivElement> & SelectControlProps<TItem>) => ReactElement;
2720
+ /**
2721
+ * Currently not compatible with react-hook-form
2722
+ */
2723
+ declare const Toggle: (props: ToggleProps) => react_jsx_runtime.JSX.Element;
2453
2724
 
2454
- type SelectProps<TItem extends SelectItem> = Omit<FieldWrapperProps, 'children'> & SelectControlProps<TItem>;
2455
- declare const Select: <TItem extends SelectItem>(props: RefAttributes<HTMLDivElement> & SelectProps<TItem>) => ReactElement;
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
- interface SelectFieldProps<TItem extends SelectItem> extends Omit<SelectProps<TItem>, 'onChange' | 'value'> {
2458
- defaultValue?: TItem | null;
2459
- name: string;
2460
- options?: RegisterOptions;
2461
- shouldResetInvalidValues?: boolean;
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 const SelectField: <TItem extends SelectItem>(props: SelectFieldProps<TItem>) => React__default.JSX.Element;
2464
-
2465
- declare enum ButtonsLayoutAlign {
2765
+ declare enum TypographyTextAlign {
2466
2766
  center = "center",
2467
- end = "end",
2468
- spaceBetween = "spaceBetween",
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 ButtonsLayoutProps extends SsrProps {
2480
- align: ButtonsLayoutAlign;
2481
- buttons: ReactNode[];
2482
- direction: ButtonsLayoutDirection;
2483
- gap?: Spacing;
2484
- wrap?: FlexWrap;
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 ButtonsLayout: (props: ButtonsLayoutProps) => React__default.JSX.Element;
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) => React__default.JSX.Element;
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
- interface ComboBoxFieldProps<TItem extends ComboBoxItem> extends Omit<ComboBoxProps<TItem>, 'onChange' | 'value'> {
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
- interface ThrownFieldLevelError {
2535
- code: string;
2536
- fieldName: string;
2537
- message: string;
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) => React__default.JSX.Element;
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>) => React__default.JSX.Element;
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: React.Context<FormConfig>;
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
- label?: React__default.ReactNode;
2738
- name?: string | undefined;
2739
- invalid?: boolean | undefined;
2740
- colorScheme?: ColorScheme | undefined;
2741
- mediaType?: MediaType | 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, React__default.ReactNode, string, {
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
- declare const styled: typeof emotionStyled;
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 };