@mmb-digital/design-system-web 0.1.347-alpha.0 → 0.1.347
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/.eslintcache +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +107 -289
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +18 -16
- package/rollup.config.js +58 -0
- package/tsconfig.app.json +12 -0
- package/tsconfig.base.json +18 -0
- package/tsconfig.node.json +13 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as csstype from 'csstype';
|
|
3
2
|
import { Property } from 'csstype';
|
|
4
3
|
import * as react from 'react';
|
|
5
|
-
import { ReactNode, ReactElement, HTMLProps, MutableRefObject, ElementType, HTMLInputAutoCompleteAttribute, FocusEvent, ChangeEvent,
|
|
4
|
+
import { ReactNode, ReactElement, HTMLProps, MutableRefObject, ElementType, HTMLInputAutoCompleteAttribute, FocusEvent, ChangeEvent, Ref, FC, AriaAttributes, RefObject, MouseEvent, AriaRole, HTMLAttributeAnchorTarget, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, HTMLInputTypeAttribute, Key, ComponentType, KeyboardEvent, ComponentProps, BaseSyntheticEvent, FocusEventHandler, TouchEvent, TextareaHTMLAttributes } from 'react';
|
|
6
5
|
import { MessageDescriptor } from 'react-intl';
|
|
7
6
|
import { PrimitiveType, FormatXMLElementFn } from 'intl-messageformat';
|
|
8
7
|
import { Theme as Theme$1 } from '@emotion/react';
|
|
@@ -14,6 +13,7 @@ import { Locale } from 'date-fns';
|
|
|
14
13
|
import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
15
14
|
import { FactoryOpts } from 'imask';
|
|
16
15
|
import * as _emotion_utils from '@emotion/utils';
|
|
16
|
+
export { useMergeRefs } from '@floating-ui/react';
|
|
17
17
|
import { z } from 'zod';
|
|
18
18
|
import emotionStyled from '@emotion/styled';
|
|
19
19
|
|
|
@@ -175,6 +175,7 @@ interface InputProps extends FieldControlProps {
|
|
|
175
175
|
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
176
176
|
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
177
177
|
prefix?: ReactNode;
|
|
178
|
+
ref?: Ref<HTMLInputElement>;
|
|
178
179
|
size: InputSize;
|
|
179
180
|
suffix?: ReactNode;
|
|
180
181
|
value?: string;
|
|
@@ -1222,9 +1223,10 @@ interface CheckboxControlProps {
|
|
|
1222
1223
|
name: string;
|
|
1223
1224
|
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
1224
1225
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1226
|
+
ref?: Ref<HTMLInputElement>;
|
|
1225
1227
|
value?: string;
|
|
1226
1228
|
}
|
|
1227
|
-
declare const CheckboxControl:
|
|
1229
|
+
declare const CheckboxControl: (props: CheckboxControlProps) => react_jsx_runtime.JSX.Element;
|
|
1228
1230
|
|
|
1229
1231
|
declare enum CheckboxPosition {
|
|
1230
1232
|
left = "left",
|
|
@@ -1237,7 +1239,7 @@ interface CheckboxProps extends CheckboxControlProps, InputLabelPassthroughProps
|
|
|
1237
1239
|
position?: CheckboxPosition;
|
|
1238
1240
|
tooltipPosition?: LabelTooltipPosition;
|
|
1239
1241
|
}
|
|
1240
|
-
declare const Checkbox:
|
|
1242
|
+
declare const Checkbox: (props: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1241
1243
|
|
|
1242
1244
|
interface CheckboxFieldProps extends Omit<CheckboxProps, 'onChange' | 'value'> {
|
|
1243
1245
|
options?: RegisterOptions;
|
|
@@ -1328,7 +1330,7 @@ type ComboBoxValue<TItem> = {
|
|
|
1328
1330
|
type: ComboBoxValueType.item;
|
|
1329
1331
|
} | null;
|
|
1330
1332
|
|
|
1331
|
-
interface InputBaseProps extends
|
|
1333
|
+
interface InputBaseProps extends FieldControlProps, Pick<AriaAttributes, 'aria-activedescendant' | 'aria-autocomplete' | 'aria-controls' | 'aria-describedby' | 'aria-expanded' | 'aria-invalid' | 'aria-label' | 'aria-labelledby' | 'aria-required'> {
|
|
1332
1334
|
ariaLabel?: string;
|
|
1333
1335
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
1334
1336
|
button?: ReactNode;
|
|
@@ -1349,6 +1351,7 @@ interface InputBaseProps extends RefAttributes<HTMLInputElement>, FieldControlPr
|
|
|
1349
1351
|
placeholder?: string;
|
|
1350
1352
|
prefix?: ReactNode;
|
|
1351
1353
|
prefixColor?: Property.Color;
|
|
1354
|
+
ref?: Ref<HTMLInputElement>;
|
|
1352
1355
|
role?: HTMLAttributes<HTMLInputElement>['role'];
|
|
1353
1356
|
size?: InputSize;
|
|
1354
1357
|
suffix?: ReactNode;
|
|
@@ -1357,7 +1360,7 @@ interface InputBaseProps extends RefAttributes<HTMLInputElement>, FieldControlPr
|
|
|
1357
1360
|
value?: string;
|
|
1358
1361
|
weight?: FontWeight;
|
|
1359
1362
|
}
|
|
1360
|
-
declare const InputBase:
|
|
1363
|
+
declare const InputBase: (props: InputBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1361
1364
|
|
|
1362
1365
|
interface ComboBoxControlProps<TItem extends ComboBoxItem> extends Omit<FieldControlProps, 'name'>, Pick<InputBaseProps, 'ariaLabel' | 'disabled' | 'icon' | 'isPastingDisabled' | 'maxLength' | 'name' | 'onFocus' | 'placeholder' | 'required'> {
|
|
1363
1366
|
formatter?: Formatter<TItem, ReactNode>;
|
|
@@ -1371,10 +1374,11 @@ interface ComboBoxControlProps<TItem extends ComboBoxItem> extends Omit<FieldCon
|
|
|
1371
1374
|
items: TItem[];
|
|
1372
1375
|
onBlur?: () => void;
|
|
1373
1376
|
onChange: (value: ComboBoxValue<TItem>) => void;
|
|
1377
|
+
ref?: Ref<HTMLInputElement>;
|
|
1374
1378
|
shouldHighlightFirstItem?: boolean;
|
|
1375
1379
|
value: ComboBoxValue<TItem>;
|
|
1376
1380
|
}
|
|
1377
|
-
declare const ComboBoxControl: <TItem extends ComboBoxItem>(props: ComboBoxControlProps<TItem>
|
|
1381
|
+
declare const ComboBoxControl: <TItem extends ComboBoxItem>(props: ComboBoxControlProps<TItem>) => react_jsx_runtime.JSX.Element;
|
|
1378
1382
|
|
|
1379
1383
|
declare enum FieldWrapperLayout {
|
|
1380
1384
|
horizontal = "horizontal",
|
|
@@ -1417,11 +1421,15 @@ interface FieldWrapperProps extends DesignSystemBaseProps, InputLabelPassthrough
|
|
|
1417
1421
|
}
|
|
1418
1422
|
declare const FieldWrapper: (props: FieldWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
1419
1423
|
|
|
1420
|
-
|
|
1421
|
-
|
|
1424
|
+
/** These props are reserved for `FieldWrapper` and cannot be used in the wrapped component. */
|
|
1425
|
+
type FieldWrapperReservedProps = Pick<FieldWrapperProps, 'addons' | 'controlMobileWidth' | 'controlSectionWidth' | 'controlWidth' | 'errorMessage' | 'hiddenHintText' | 'hintText' | 'label' | 'labelAs' | 'labelHiddenText' | 'labelId' | 'labelSuffix' | 'layout' | 'note' | 'optionality' | 'successMessage' | 'tooltip'>;
|
|
1426
|
+
declare const withFieldWrapper: <TProps extends FieldControlProps>(FieldControl: ComponentType<TProps>) => {
|
|
1427
|
+
(props: FieldWrapperReservedProps & Omit<TProps, keyof FieldWrapperReservedProps>): react_jsx_runtime.JSX.Element;
|
|
1428
|
+
displayName: string;
|
|
1429
|
+
};
|
|
1422
1430
|
|
|
1423
|
-
type ComboBoxProps<TItem extends ComboBoxItem> = ComboBoxControlProps<TItem> &
|
|
1424
|
-
declare const ComboBox: <TItem extends ComboBoxItem>(props: ComboBoxProps<TItem>
|
|
1431
|
+
type ComboBoxProps<TItem extends ComboBoxItem> = ComboBoxControlProps<TItem> & FieldWrapperReservedProps;
|
|
1432
|
+
declare const ComboBox: <TItem extends ComboBoxItem>(props: ComboBoxProps<TItem>) => ReactElement;
|
|
1425
1433
|
|
|
1426
1434
|
interface ComboBoxFieldProps<TItem extends ComboBoxItem> extends Omit<ComboBoxProps<TItem>, 'onChange' | 'value'> {
|
|
1427
1435
|
defaultValue?: TItem | null;
|
|
@@ -1441,36 +1449,19 @@ interface DatePickerControlProps extends Pick<DatePickerProps$1, 'chooseDayAriaL
|
|
|
1441
1449
|
name: string;
|
|
1442
1450
|
onChange?: (date: Date | null, event?: KeyboardEvent<HTMLElement> | MouseEvent<HTMLElement>) => void;
|
|
1443
1451
|
placeholder?: string;
|
|
1452
|
+
ref?: Ref<HTMLInputElement>;
|
|
1444
1453
|
yearSelectAriaLabel?: string;
|
|
1445
1454
|
}
|
|
1446
|
-
declare const DatePickerControl:
|
|
1455
|
+
declare const DatePickerControl: (props: DatePickerControlProps) => react_jsx_runtime.JSX.Element;
|
|
1447
1456
|
|
|
1448
|
-
declare const DatePicker:
|
|
1449
|
-
label
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
colorScheme?: ColorScheme | undefined;
|
|
1453
|
-
mediaType?: MediaType | undefined;
|
|
1454
|
-
addons?: FieldAddon[] | undefined;
|
|
1455
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1456
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1457
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1458
|
-
errorMessage?: react.ReactNode;
|
|
1459
|
-
hiddenHintText?: react.ReactNode;
|
|
1460
|
-
hintText?: react.ReactNode;
|
|
1461
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1462
|
-
note?: react.ReactNode;
|
|
1463
|
-
optionality?: FieldOptionality | undefined;
|
|
1464
|
-
successMessage?: react.ReactNode;
|
|
1465
|
-
labelAs?: react.ElementType | undefined;
|
|
1466
|
-
labelHiddenText?: string | undefined;
|
|
1467
|
-
labelId?: string | undefined;
|
|
1468
|
-
labelSuffix?: react.ReactNode;
|
|
1469
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1470
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
1457
|
+
declare const DatePicker: {
|
|
1458
|
+
(props: FieldWrapperReservedProps & Omit<DatePickerControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
1459
|
+
displayName: string;
|
|
1460
|
+
};
|
|
1471
1461
|
type DatePickerProps = ComponentProps<typeof DatePicker>;
|
|
1472
1462
|
|
|
1473
1463
|
interface DatePickerFieldProps extends Omit<ComponentProps<typeof DatePicker>, 'onChange'> {
|
|
1464
|
+
name: string;
|
|
1474
1465
|
options?: RegisterOptions;
|
|
1475
1466
|
}
|
|
1476
1467
|
declare const DatePickerField: (props: DatePickerFieldProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1480,32 +1471,14 @@ declare const datePickerValueFormat = "yyyy-MM-dd";
|
|
|
1480
1471
|
interface EmailInputControlProps extends InputProps {
|
|
1481
1472
|
placeholder?: string;
|
|
1482
1473
|
}
|
|
1483
|
-
declare const EmailInput:
|
|
1484
|
-
label
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
colorScheme?: ColorScheme | undefined;
|
|
1488
|
-
mediaType?: MediaType | undefined;
|
|
1489
|
-
addons?: FieldAddon[] | undefined;
|
|
1490
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1491
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1492
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1493
|
-
errorMessage?: react.ReactNode;
|
|
1494
|
-
hiddenHintText?: react.ReactNode;
|
|
1495
|
-
hintText?: react.ReactNode;
|
|
1496
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1497
|
-
note?: react.ReactNode;
|
|
1498
|
-
optionality?: FieldOptionality | undefined;
|
|
1499
|
-
successMessage?: react.ReactNode;
|
|
1500
|
-
labelAs?: react.ElementType | undefined;
|
|
1501
|
-
labelHiddenText?: string | undefined;
|
|
1502
|
-
labelId?: string | undefined;
|
|
1503
|
-
labelSuffix?: react.ReactNode;
|
|
1504
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1505
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
1474
|
+
declare const EmailInput: {
|
|
1475
|
+
(props: FieldWrapperReservedProps & Omit<EmailInputControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
1476
|
+
displayName: string;
|
|
1477
|
+
};
|
|
1506
1478
|
type EmailInputProps = ComponentProps<typeof EmailInput>;
|
|
1507
1479
|
|
|
1508
1480
|
interface EmailInputFieldProps extends Omit<EmailInputProps, 'onChange' | 'value'> {
|
|
1481
|
+
name: string;
|
|
1509
1482
|
options?: RegisterOptions;
|
|
1510
1483
|
}
|
|
1511
1484
|
declare const EmailInputField: (props: EmailInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1519,10 +1492,11 @@ interface ErrorBoxProps {
|
|
|
1519
1492
|
colorScheme?: ColorScheme;
|
|
1520
1493
|
content?: ReactNode;
|
|
1521
1494
|
items?: ErrorBoxItem[];
|
|
1495
|
+
ref?: Ref<HTMLDivElement>;
|
|
1522
1496
|
tabIndex?: number;
|
|
1523
1497
|
title?: ReactNode;
|
|
1524
1498
|
}
|
|
1525
|
-
declare const ErrorBox:
|
|
1499
|
+
declare const ErrorBox: (props: ErrorBoxProps) => react_jsx_runtime.JSX.Element;
|
|
1526
1500
|
|
|
1527
1501
|
declare enum FileInputErrorCode {
|
|
1528
1502
|
fileSizeTooLarge = "fileSizeTooLarge",
|
|
@@ -1578,36 +1552,20 @@ interface FileInputControlProps extends FileInputSettings, DesignSystemBaseProps
|
|
|
1578
1552
|
name: string;
|
|
1579
1553
|
onBlur?: () => void;
|
|
1580
1554
|
onChange: (files: File[]) => void;
|
|
1555
|
+
ref?: Ref<HTMLDivElement>;
|
|
1581
1556
|
value: File[];
|
|
1582
1557
|
}
|
|
1583
|
-
declare const FileInputControl:
|
|
1558
|
+
declare const FileInputControl: (props: FileInputControlProps) => react_jsx_runtime.JSX.Element;
|
|
1584
1559
|
|
|
1585
|
-
declare const
|
|
1586
|
-
label
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
mediaType?: MediaType | undefined;
|
|
1591
|
-
addons?: FieldAddon[] | undefined;
|
|
1592
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1593
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1594
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1595
|
-
errorMessage?: react.ReactNode;
|
|
1596
|
-
hiddenHintText?: react.ReactNode;
|
|
1597
|
-
hintText?: react.ReactNode;
|
|
1598
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1599
|
-
note?: react.ReactNode;
|
|
1600
|
-
optionality?: FieldOptionality | undefined;
|
|
1601
|
-
successMessage?: react.ReactNode;
|
|
1602
|
-
labelAs?: react.ElementType | undefined;
|
|
1603
|
-
labelHiddenText?: string | undefined;
|
|
1604
|
-
labelId?: string | undefined;
|
|
1605
|
-
labelSuffix?: react.ReactNode;
|
|
1606
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1607
|
-
} & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
1560
|
+
declare const FileInputBase: {
|
|
1561
|
+
(props: FieldWrapperReservedProps & Omit<FileInputControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
1562
|
+
displayName: string;
|
|
1563
|
+
};
|
|
1564
|
+
declare const FileInput: (props: ComponentProps<typeof FileInputBase>) => react_jsx_runtime.JSX.Element;
|
|
1608
1565
|
type FileInputProps = ComponentProps<typeof FileInput>;
|
|
1609
1566
|
|
|
1610
1567
|
interface FileInputFieldProps extends Omit<FileInputProps, 'onBlur' | 'onChange' | 'value'> {
|
|
1568
|
+
name: string;
|
|
1611
1569
|
options?: RegisterOptions;
|
|
1612
1570
|
}
|
|
1613
1571
|
declare const FileInputField: (props: FileInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1796,6 +1754,7 @@ interface InfoboxProps extends DesignSystemBaseProps, AriaAttributes {
|
|
|
1796
1754
|
iconProduct?: IconProductType;
|
|
1797
1755
|
id?: string;
|
|
1798
1756
|
isWarning?: boolean;
|
|
1757
|
+
ref?: Ref<HTMLDivElement>;
|
|
1799
1758
|
role?: AriaRole;
|
|
1800
1759
|
size: InfoboxSize;
|
|
1801
1760
|
tabIndex?: number;
|
|
@@ -1803,7 +1762,7 @@ interface InfoboxProps extends DesignSystemBaseProps, AriaAttributes {
|
|
|
1803
1762
|
textContent?: InfoboxTextContent;
|
|
1804
1763
|
variant: InfoboxVariant;
|
|
1805
1764
|
}
|
|
1806
|
-
declare const Infobox:
|
|
1765
|
+
declare const Infobox: (props: InfoboxProps) => react_jsx_runtime.JSX.Element;
|
|
1807
1766
|
|
|
1808
1767
|
declare enum InputLabelSize {
|
|
1809
1768
|
xs = "xs",
|
|
@@ -1849,61 +1808,20 @@ interface MaskedInputBaseProps extends InputBaseProps {
|
|
|
1849
1808
|
maskOptions: FactoryOpts;
|
|
1850
1809
|
onAccept?: MaskedInputOnAccept;
|
|
1851
1810
|
}
|
|
1852
|
-
declare const MaskedInputBase:
|
|
1811
|
+
declare const MaskedInputBase: (props: MaskedInputBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1853
1812
|
|
|
1854
|
-
declare const MaskedInput:
|
|
1855
|
-
label
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
colorScheme?: ColorScheme | undefined;
|
|
1859
|
-
mediaType?: MediaType | undefined;
|
|
1860
|
-
addons?: FieldAddon[] | undefined;
|
|
1861
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1862
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1863
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1864
|
-
errorMessage?: react.ReactNode;
|
|
1865
|
-
hiddenHintText?: react.ReactNode;
|
|
1866
|
-
hintText?: react.ReactNode;
|
|
1867
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1868
|
-
note?: react.ReactNode;
|
|
1869
|
-
optionality?: FieldOptionality | undefined;
|
|
1870
|
-
successMessage?: react.ReactNode;
|
|
1871
|
-
labelAs?: react.ElementType | undefined;
|
|
1872
|
-
labelHiddenText?: string | undefined;
|
|
1873
|
-
labelId?: string | undefined;
|
|
1874
|
-
labelSuffix?: react.ReactNode;
|
|
1875
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1876
|
-
}, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1813
|
+
declare const MaskedInput: {
|
|
1814
|
+
(props: FieldWrapperReservedProps & Omit<MaskedInputBaseProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
1815
|
+
displayName: string;
|
|
1816
|
+
};
|
|
1877
1817
|
type MaskedInputProps = ComponentProps<typeof MaskedInput>;
|
|
1878
1818
|
|
|
1879
|
-
type ManagedMaskedInputProps = Pick<MaskedInputProps, 'errorMessage' | 'onAccept' | 'onBlur' | 'value'>;
|
|
1819
|
+
type ManagedMaskedInputProps = Pick<MaskedInputProps, 'errorMessage' | 'onAccept' | 'onBlur' | 'ref' | 'value'>;
|
|
1880
1820
|
declare const withMaskedInputField: <TProps extends ManagedMaskedInputProps>(Component: ComponentType<TProps>) => <TFieldValues extends FieldValues>(props: TProps & {
|
|
1881
1821
|
name: FieldPath<TFieldValues>;
|
|
1882
1822
|
options?: RegisterOptions<TFieldValues>;
|
|
1883
1823
|
}) => react_jsx_runtime.JSX.Element;
|
|
1884
|
-
declare const MaskedInputField: <TFieldValues extends FieldValues>(props: Omit<MaskedInputBaseProps & {
|
|
1885
|
-
label?: react.ReactNode;
|
|
1886
|
-
name?: string | undefined;
|
|
1887
|
-
invalid?: boolean | undefined;
|
|
1888
|
-
colorScheme?: ColorScheme | undefined;
|
|
1889
|
-
mediaType?: MediaType | undefined;
|
|
1890
|
-
addons?: FieldAddon[] | undefined;
|
|
1891
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1892
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1893
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
1894
|
-
errorMessage?: react.ReactNode;
|
|
1895
|
-
hiddenHintText?: react.ReactNode;
|
|
1896
|
-
hintText?: react.ReactNode;
|
|
1897
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1898
|
-
note?: react.ReactNode;
|
|
1899
|
-
optionality?: FieldOptionality | undefined;
|
|
1900
|
-
successMessage?: react.ReactNode;
|
|
1901
|
-
labelAs?: react.ElementType | undefined;
|
|
1902
|
-
labelHiddenText?: string | undefined;
|
|
1903
|
-
labelId?: string | undefined;
|
|
1904
|
-
labelSuffix?: react.ReactNode;
|
|
1905
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1906
|
-
}, "ref"> & react.RefAttributes<HTMLInputElement> & {
|
|
1824
|
+
declare const MaskedInputField: <TFieldValues extends FieldValues>(props: FieldWrapperReservedProps & Omit<MaskedInputBaseProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip"> & {
|
|
1907
1825
|
name: react_hook_form.Path<TFieldValues>;
|
|
1908
1826
|
options?: RegisterOptions<TFieldValues> | undefined;
|
|
1909
1827
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -1948,9 +1866,9 @@ interface NumberInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
|
|
|
1948
1866
|
integerPlaces?: number;
|
|
1949
1867
|
maskOptions?: FactoryOpts;
|
|
1950
1868
|
}
|
|
1951
|
-
declare const NumberInput:
|
|
1869
|
+
declare const NumberInput: (props: NumberInputProps) => react_jsx_runtime.JSX.Element;
|
|
1952
1870
|
|
|
1953
|
-
declare const NumberInputField: <TFieldValues extends react_hook_form.FieldValues>(props:
|
|
1871
|
+
declare const NumberInputField: <TFieldValues extends react_hook_form.FieldValues>(props: NumberInputProps & {
|
|
1954
1872
|
name: react_hook_form.Path<TFieldValues>;
|
|
1955
1873
|
options?: react_hook_form.RegisterOptions<TFieldValues> | undefined;
|
|
1956
1874
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -1969,17 +1887,18 @@ interface PaperProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
|
|
|
1969
1887
|
id?: string;
|
|
1970
1888
|
overflow?: Overflow;
|
|
1971
1889
|
padding?: Spacing;
|
|
1890
|
+
ref?: Ref<HTMLDivElement>;
|
|
1972
1891
|
role?: AriaRole;
|
|
1973
1892
|
shadow?: PaperShadow;
|
|
1974
1893
|
tabIndex?: number;
|
|
1975
1894
|
}
|
|
1976
|
-
declare const Paper:
|
|
1895
|
+
declare const Paper: (props: PaperProps) => react_jsx_runtime.JSX.Element;
|
|
1977
1896
|
|
|
1978
1897
|
interface PhoneInputProps extends Omit<MaskedInputProps, 'maskOptions'> {
|
|
1979
1898
|
maskOptions?: FactoryOpts;
|
|
1980
1899
|
prefixColor?: Property.Color;
|
|
1981
1900
|
}
|
|
1982
|
-
declare const PhoneInput:
|
|
1901
|
+
declare const PhoneInput: (props: PhoneInputProps) => react_jsx_runtime.JSX.Element;
|
|
1983
1902
|
|
|
1984
1903
|
declare const PhoneInputField: <TFieldValues extends react_hook_form.FieldValues>(props: PhoneInputProps & {
|
|
1985
1904
|
name: react_hook_form.Path<TFieldValues>;
|
|
@@ -2021,7 +1940,7 @@ interface ProgressDefinition extends AriaAttributes {
|
|
|
2021
1940
|
interface ProgressPaperProps extends PaperProps, SsrProps {
|
|
2022
1941
|
progressDefinition: ProgressDefinition;
|
|
2023
1942
|
}
|
|
2024
|
-
declare const ProgressPaper:
|
|
1943
|
+
declare const ProgressPaper: (props: ProgressPaperProps) => react_jsx_runtime.JSX.Element;
|
|
2025
1944
|
|
|
2026
1945
|
declare enum RadioPosition {
|
|
2027
1946
|
left = "left",
|
|
@@ -2047,8 +1966,9 @@ interface RadioButtonLabel {
|
|
|
2047
1966
|
interface RadioButtonProps extends RadioGeneralProps, DesignSystemBaseProps {
|
|
2048
1967
|
errorMessage?: ReactElement | string | undefined;
|
|
2049
1968
|
label: RadioButtonLabel;
|
|
1969
|
+
ref?: Ref<HTMLInputElement>;
|
|
2050
1970
|
}
|
|
2051
|
-
declare const RadioButton:
|
|
1971
|
+
declare const RadioButton: (props: RadioButtonProps) => react_jsx_runtime.JSX.Element;
|
|
2052
1972
|
|
|
2053
1973
|
interface RadioButtonFieldProps extends Omit<RadioButtonProps, 'onChange'> {
|
|
2054
1974
|
name: string;
|
|
@@ -2082,33 +2002,16 @@ interface RadioButtonGroupControlProps extends DesignSystemBaseProps, FieldContr
|
|
|
2082
2002
|
name: string;
|
|
2083
2003
|
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
2084
2004
|
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
2005
|
+
ref?: Ref<HTMLInputElement>;
|
|
2085
2006
|
value?: string;
|
|
2086
2007
|
}
|
|
2087
|
-
declare const RadioButtonGroupControl:
|
|
2008
|
+
declare const RadioButtonGroupControl: (props: RadioButtonGroupControlProps) => react_jsx_runtime.JSX.Element;
|
|
2088
2009
|
|
|
2089
|
-
declare const
|
|
2090
|
-
label
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
mediaType?: MediaType | undefined;
|
|
2095
|
-
addons?: FieldAddon[] | undefined;
|
|
2096
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2097
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2098
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2099
|
-
errorMessage?: react.ReactNode;
|
|
2100
|
-
hiddenHintText?: react.ReactNode;
|
|
2101
|
-
hintText?: react.ReactNode;
|
|
2102
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2103
|
-
note?: react.ReactNode;
|
|
2104
|
-
optionality?: FieldOptionality | undefined;
|
|
2105
|
-
successMessage?: react.ReactNode;
|
|
2106
|
-
labelAs?: react.ElementType | undefined;
|
|
2107
|
-
labelHiddenText?: string | undefined;
|
|
2108
|
-
labelId?: string | undefined;
|
|
2109
|
-
labelSuffix?: react.ReactNode;
|
|
2110
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2111
|
-
} & react.RefAttributes<HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
2010
|
+
declare const RadioButtonGroupBase: {
|
|
2011
|
+
(props: FieldWrapperReservedProps & Omit<RadioButtonGroupControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
2012
|
+
displayName: string;
|
|
2013
|
+
};
|
|
2014
|
+
declare const RadioButtonGroup: (props: ComponentProps<typeof RadioButtonGroupBase>) => react_jsx_runtime.JSX.Element;
|
|
2112
2015
|
type RadioButtonGroupProps = ComponentProps<typeof RadioButtonGroup>;
|
|
2113
2016
|
|
|
2114
2017
|
interface RadioButtonGroupFieldProps extends Omit<RadioButtonGroupProps, 'onBlur' | 'onChange' | 'value'> {
|
|
@@ -2118,8 +2021,9 @@ interface RadioButtonGroupFieldProps extends Omit<RadioButtonGroupProps, 'onBlur
|
|
|
2118
2021
|
declare const RadioButtonGroupField: (props: RadioButtonGroupFieldProps) => react_jsx_runtime.JSX.Element;
|
|
2119
2022
|
|
|
2120
2023
|
interface RadioControlProps extends DesignSystemBaseProps, RadioGeneralProps {
|
|
2024
|
+
ref?: Ref<HTMLInputElement>;
|
|
2121
2025
|
}
|
|
2122
|
-
declare const RadioControl:
|
|
2026
|
+
declare const RadioControl: (props: RadioControlProps) => react_jsx_runtime.JSX.Element;
|
|
2123
2027
|
|
|
2124
2028
|
interface RadioProps extends RadioControlProps, InputLabelPassthroughProps, DesignSystemBaseProps {
|
|
2125
2029
|
errorMessage?: ReactNode;
|
|
@@ -2127,7 +2031,7 @@ interface RadioProps extends RadioControlProps, InputLabelPassthroughProps, Desi
|
|
|
2127
2031
|
position?: RadioPosition;
|
|
2128
2032
|
tooltipPosition?: LabelTooltipPosition;
|
|
2129
2033
|
}
|
|
2130
|
-
declare const Radio:
|
|
2034
|
+
declare const Radio: (props: RadioProps) => react_jsx_runtime.JSX.Element;
|
|
2131
2035
|
|
|
2132
2036
|
interface RadioFieldProps extends Omit<RadioProps, 'onChange'> {
|
|
2133
2037
|
name: string;
|
|
@@ -2157,34 +2061,17 @@ interface RadioGroupControlProps extends FieldControlProps, DesignSystemBaseProp
|
|
|
2157
2061
|
name: string;
|
|
2158
2062
|
onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
2159
2063
|
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
2064
|
+
ref?: Ref<HTMLInputElement>;
|
|
2160
2065
|
rowGap?: Spacing;
|
|
2161
2066
|
value?: string;
|
|
2162
2067
|
}
|
|
2163
|
-
declare const RadioGroupControl:
|
|
2068
|
+
declare const RadioGroupControl: (props: RadioGroupControlProps) => react_jsx_runtime.JSX.Element;
|
|
2164
2069
|
|
|
2165
|
-
declare const
|
|
2166
|
-
label
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
mediaType?: MediaType | undefined;
|
|
2171
|
-
addons?: FieldAddon[] | undefined;
|
|
2172
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2173
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2174
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2175
|
-
errorMessage?: react.ReactNode;
|
|
2176
|
-
hiddenHintText?: react.ReactNode;
|
|
2177
|
-
hintText?: react.ReactNode;
|
|
2178
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2179
|
-
note?: react.ReactNode;
|
|
2180
|
-
optionality?: FieldOptionality | undefined;
|
|
2181
|
-
successMessage?: react.ReactNode;
|
|
2182
|
-
labelAs?: react.ElementType | undefined;
|
|
2183
|
-
labelHiddenText?: string | undefined;
|
|
2184
|
-
labelId?: string | undefined;
|
|
2185
|
-
labelSuffix?: react.ReactNode;
|
|
2186
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2187
|
-
} & react.RefAttributes<HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
2070
|
+
declare const RadioGroupBase: {
|
|
2071
|
+
(props: FieldWrapperReservedProps & Omit<RadioGroupControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
2072
|
+
displayName: string;
|
|
2073
|
+
};
|
|
2074
|
+
declare const RadioGroup: (props: ComponentProps<typeof RadioGroupBase>) => react_jsx_runtime.JSX.Element;
|
|
2188
2075
|
type RadioGroupProps = ComponentProps<typeof RadioGroup>;
|
|
2189
2076
|
|
|
2190
2077
|
interface RadioGroupFieldProps extends Omit<RadioGroupProps, 'onBlur' | 'onChange' | 'value'> {
|
|
@@ -2199,29 +2086,10 @@ interface SearchInputControlProps extends InputProps {
|
|
|
2199
2086
|
invalid?: boolean;
|
|
2200
2087
|
placeholder?: string;
|
|
2201
2088
|
}
|
|
2202
|
-
declare const SearchInput:
|
|
2203
|
-
label
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
colorScheme?: ColorScheme | undefined;
|
|
2207
|
-
mediaType?: MediaType | undefined;
|
|
2208
|
-
addons?: FieldAddon[] | undefined;
|
|
2209
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2210
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2211
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2212
|
-
errorMessage?: ReactNode;
|
|
2213
|
-
hiddenHintText?: ReactNode;
|
|
2214
|
-
hintText?: ReactNode;
|
|
2215
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2216
|
-
note?: ReactNode;
|
|
2217
|
-
optionality?: FieldOptionality | undefined;
|
|
2218
|
-
successMessage?: ReactNode;
|
|
2219
|
-
labelAs?: react.ElementType | undefined;
|
|
2220
|
-
labelHiddenText?: string | undefined;
|
|
2221
|
-
labelId?: string | undefined;
|
|
2222
|
-
labelSuffix?: ReactNode;
|
|
2223
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2224
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
2089
|
+
declare const SearchInput: {
|
|
2090
|
+
(props: FieldWrapperReservedProps & Omit<SearchInputControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
2091
|
+
displayName: string;
|
|
2092
|
+
};
|
|
2225
2093
|
type SearchInputProps = ComponentProps<typeof SearchInput>;
|
|
2226
2094
|
|
|
2227
2095
|
declare enum SelectVariant {
|
|
@@ -2250,13 +2118,14 @@ interface SelectControlProps<TItem extends SelectItem> extends FieldControlProps
|
|
|
2250
2118
|
nilMessage?: string;
|
|
2251
2119
|
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
2252
2120
|
onChange: (item: TItem | null) => void;
|
|
2121
|
+
ref?: Ref<HTMLDivElement>;
|
|
2253
2122
|
value: TItem | null;
|
|
2254
2123
|
variant?: SelectVariant;
|
|
2255
2124
|
}
|
|
2256
|
-
declare const SelectControl: <TItem extends SelectItem>(props:
|
|
2125
|
+
declare const SelectControl: <TItem extends SelectItem>(props: SelectControlProps<TItem>) => react_jsx_runtime.JSX.Element;
|
|
2257
2126
|
|
|
2258
|
-
type SelectProps<TItem extends SelectItem> =
|
|
2259
|
-
declare const Select: <TItem extends SelectItem>(props:
|
|
2127
|
+
type SelectProps<TItem extends SelectItem> = FieldWrapperReservedProps & SelectControlProps<TItem>;
|
|
2128
|
+
declare const Select: <TItem extends SelectItem>(props: SelectProps<TItem>) => ReactElement;
|
|
2260
2129
|
|
|
2261
2130
|
interface SelectFieldProps<TItem extends SelectItem> extends Omit<SelectProps<TItem>, 'onChange' | 'value'> {
|
|
2262
2131
|
defaultValue?: TItem | null;
|
|
@@ -2307,7 +2176,7 @@ interface SliderInputLimitExceededLiveTextFormatterContext {
|
|
|
2307
2176
|
}
|
|
2308
2177
|
type SliderInputLimitExceededLiveTextFormatter = Formatter<number, string, SliderInputLimitExceededLiveTextFormatterContext>;
|
|
2309
2178
|
|
|
2310
|
-
interface SliderInputProps extends
|
|
2179
|
+
interface SliderInputProps extends DesignSystemBaseProps, InputLabelPassthroughProps {
|
|
2311
2180
|
ariaLabelForHandle?: string;
|
|
2312
2181
|
ariaLabelledByForHandle?: string;
|
|
2313
2182
|
ariaValueTextFormatter?: SliderAriaValueTextFormatter;
|
|
@@ -2349,6 +2218,7 @@ interface SliderInputProps extends RefAttributes<HTMLInputElement>, DesignSystem
|
|
|
2349
2218
|
*/
|
|
2350
2219
|
onSliderChange?: (value: number) => void;
|
|
2351
2220
|
prefix?: ReactNode;
|
|
2221
|
+
ref?: Ref<HTMLInputElement>;
|
|
2352
2222
|
steps: SliderSteps;
|
|
2353
2223
|
stepType: SliderStepType;
|
|
2354
2224
|
suffix?: ReactNode;
|
|
@@ -2369,7 +2239,7 @@ interface SliderInputProps extends RefAttributes<HTMLInputElement>, DesignSystem
|
|
|
2369
2239
|
* and `onInputChange` callbacks. These callbacks are triggered on every change during slider movement
|
|
2370
2240
|
* or while typing in the input field, before the user finalizes their selection with Enter or onBlur.
|
|
2371
2241
|
*/
|
|
2372
|
-
declare const SliderInput:
|
|
2242
|
+
declare const SliderInput: (props: SliderInputProps) => react_jsx_runtime.JSX.Element;
|
|
2373
2243
|
|
|
2374
2244
|
interface SliderProps extends DesignSystemBaseProps {
|
|
2375
2245
|
ariaLabelForHandle?: string;
|
|
@@ -2430,11 +2300,12 @@ interface StackProps extends AriaAttributes {
|
|
|
2430
2300
|
fullWidth?: boolean;
|
|
2431
2301
|
gap?: Spacing;
|
|
2432
2302
|
id?: string;
|
|
2303
|
+
ref?: Ref<HTMLDivElement>;
|
|
2433
2304
|
role?: AriaRole;
|
|
2434
2305
|
tabIndex?: number;
|
|
2435
2306
|
wrap?: FlexWrap;
|
|
2436
2307
|
}
|
|
2437
|
-
declare const Stack:
|
|
2308
|
+
declare const Stack: (props: StackProps) => react_jsx_runtime.JSX.Element;
|
|
2438
2309
|
|
|
2439
2310
|
declare enum StepperVariant {
|
|
2440
2311
|
horizontal = "horizontal",
|
|
@@ -2636,6 +2507,7 @@ interface TagProps extends DesignSystemBaseProps, AriaAttributes {
|
|
|
2636
2507
|
iconSystem?: IconSystemType;
|
|
2637
2508
|
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
2638
2509
|
onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
2510
|
+
ref?: Ref<HTMLDivElement>;
|
|
2639
2511
|
role?: AriaRole;
|
|
2640
2512
|
size?: TagSize;
|
|
2641
2513
|
tabIndex?: number;
|
|
@@ -2644,33 +2516,15 @@ interface TagProps extends DesignSystemBaseProps, AriaAttributes {
|
|
|
2644
2516
|
type: TagType;
|
|
2645
2517
|
whiteSpace?: WhiteSpace;
|
|
2646
2518
|
}
|
|
2647
|
-
declare const Tag:
|
|
2519
|
+
declare const Tag: (props: TagProps) => react_jsx_runtime.JSX.Element;
|
|
2648
2520
|
|
|
2649
2521
|
interface TextAreaControlProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldControlProps {
|
|
2522
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
2650
2523
|
}
|
|
2651
|
-
declare const TextArea:
|
|
2652
|
-
label
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
colorScheme?: ColorScheme | undefined;
|
|
2656
|
-
mediaType?: MediaType | undefined;
|
|
2657
|
-
addons?: FieldAddon[] | undefined;
|
|
2658
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2659
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2660
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2661
|
-
errorMessage?: react.ReactNode;
|
|
2662
|
-
hiddenHintText?: react.ReactNode;
|
|
2663
|
-
hintText?: react.ReactNode;
|
|
2664
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2665
|
-
note?: react.ReactNode;
|
|
2666
|
-
optionality?: FieldOptionality | undefined;
|
|
2667
|
-
successMessage?: react.ReactNode;
|
|
2668
|
-
labelAs?: react.ElementType | undefined;
|
|
2669
|
-
labelHiddenText?: string | undefined;
|
|
2670
|
-
labelId?: string | undefined;
|
|
2671
|
-
labelSuffix?: react.ReactNode;
|
|
2672
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2673
|
-
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
2524
|
+
declare const TextArea: {
|
|
2525
|
+
(props: FieldWrapperReservedProps & Omit<TextAreaControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
2526
|
+
displayName: string;
|
|
2527
|
+
};
|
|
2674
2528
|
type TextAreaProps = ComponentProps<typeof TextArea>;
|
|
2675
2529
|
|
|
2676
2530
|
interface TextAreaFieldProps extends Omit<TextAreaProps, 'onChange' | 'value'> {
|
|
@@ -2683,32 +2537,14 @@ interface TextInputControlProps extends InputProps {
|
|
|
2683
2537
|
iconSystem?: IconSystemType;
|
|
2684
2538
|
placeholder?: string;
|
|
2685
2539
|
}
|
|
2686
|
-
declare const TextInput:
|
|
2687
|
-
label
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
colorScheme?: ColorScheme | undefined;
|
|
2691
|
-
mediaType?: MediaType | undefined;
|
|
2692
|
-
addons?: FieldAddon[] | undefined;
|
|
2693
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2694
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2695
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2696
|
-
errorMessage?: react.ReactNode;
|
|
2697
|
-
hiddenHintText?: react.ReactNode;
|
|
2698
|
-
hintText?: react.ReactNode;
|
|
2699
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2700
|
-
note?: react.ReactNode;
|
|
2701
|
-
optionality?: FieldOptionality | undefined;
|
|
2702
|
-
successMessage?: react.ReactNode;
|
|
2703
|
-
labelAs?: react.ElementType | undefined;
|
|
2704
|
-
labelHiddenText?: string | undefined;
|
|
2705
|
-
labelId?: string | undefined;
|
|
2706
|
-
labelSuffix?: react.ReactNode;
|
|
2707
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2708
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
2540
|
+
declare const TextInput: {
|
|
2541
|
+
(props: FieldWrapperReservedProps & Omit<TextInputControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
2542
|
+
displayName: string;
|
|
2543
|
+
};
|
|
2709
2544
|
type TextInputProps = ComponentProps<typeof TextInput>;
|
|
2710
2545
|
|
|
2711
2546
|
interface TextInputFieldProps extends Omit<TextInputProps, 'onChange' | 'value'> {
|
|
2547
|
+
name: string;
|
|
2712
2548
|
options?: RegisterOptions;
|
|
2713
2549
|
}
|
|
2714
2550
|
declare const TextInputField: (props: TextInputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -2730,29 +2566,10 @@ interface TrailingTextInputControlProps extends InputProps {
|
|
|
2730
2566
|
placeholder?: string;
|
|
2731
2567
|
suffix?: ReactNode;
|
|
2732
2568
|
}
|
|
2733
|
-
declare const TrailingTextInput:
|
|
2734
|
-
label
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
colorScheme?: ColorScheme | undefined;
|
|
2738
|
-
mediaType?: MediaType | undefined;
|
|
2739
|
-
addons?: FieldAddon[] | undefined;
|
|
2740
|
-
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2741
|
-
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2742
|
-
controlWidth?: csstype.Property.Width | undefined;
|
|
2743
|
-
errorMessage?: ReactNode;
|
|
2744
|
-
hiddenHintText?: ReactNode;
|
|
2745
|
-
hintText?: ReactNode;
|
|
2746
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2747
|
-
note?: ReactNode;
|
|
2748
|
-
optionality?: FieldOptionality | undefined;
|
|
2749
|
-
successMessage?: ReactNode;
|
|
2750
|
-
labelAs?: react.ElementType | undefined;
|
|
2751
|
-
labelHiddenText?: string | undefined;
|
|
2752
|
-
labelId?: string | undefined;
|
|
2753
|
-
labelSuffix?: ReactNode;
|
|
2754
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2755
|
-
} & react.RefAttributes<HTMLInputElement>>;
|
|
2569
|
+
declare const TrailingTextInput: {
|
|
2570
|
+
(props: FieldWrapperReservedProps & Omit<TrailingTextInputControlProps, "label" | "addons" | "controlMobileWidth" | "controlSectionWidth" | "controlWidth" | "errorMessage" | "hiddenHintText" | "hintText" | "labelAs" | "labelHiddenText" | "labelId" | "labelSuffix" | "layout" | "note" | "optionality" | "successMessage" | "tooltip">): react_jsx_runtime.JSX.Element;
|
|
2571
|
+
displayName: string;
|
|
2572
|
+
};
|
|
2756
2573
|
type TrailingTextInputProps = ComponentProps<typeof TrailingTextInput>;
|
|
2757
2574
|
|
|
2758
2575
|
declare enum TypographyVariant {
|
|
@@ -2781,6 +2598,7 @@ interface TypographyProps extends DesignSystemBaseProps, SsrProps, AriaAttribute
|
|
|
2781
2598
|
fullWidth?: boolean;
|
|
2782
2599
|
id?: string;
|
|
2783
2600
|
onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
|
|
2601
|
+
ref?: Ref<HTMLElement>;
|
|
2784
2602
|
role?: AriaRole;
|
|
2785
2603
|
tabIndex?: number;
|
|
2786
2604
|
textAlign?: TypographyTextAlign;
|
|
@@ -2788,7 +2606,7 @@ interface TypographyProps extends DesignSystemBaseProps, SsrProps, AriaAttribute
|
|
|
2788
2606
|
weight?: FontWeight;
|
|
2789
2607
|
whiteSpace?: WhiteSpace;
|
|
2790
2608
|
}
|
|
2791
|
-
declare const Typography:
|
|
2609
|
+
declare const Typography: (props: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
2792
2610
|
|
|
2793
2611
|
interface VisuallyHiddenProps extends AriaAttributes {
|
|
2794
2612
|
as?: ElementType;
|
|
@@ -2863,4 +2681,4 @@ declare const jsonFormatter: afformative.Formatter<any, string, unknown>;
|
|
|
2863
2681
|
declare const useMessageFormatter: <TInput extends unknown>(getMessage: (value: TInput) => MessageDescriptorWithPrimitiveValues | string) => afformative.Formatter<TInput, ReactNode, unknown>;
|
|
2864
2682
|
|
|
2865
2683
|
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 };
|
|
2866
|
-
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, SliderAriaValueTextFormatterContext, SliderBreakpoint, SliderInputFieldProps, SliderInputLimitExceededLiveTextFormatter, SliderInputLimitExceededLiveTextFormatterContext, 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 };
|
|
2684
|
+
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, FieldWrapperReservedProps, 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, SliderAriaValueTextFormatterContext, SliderBreakpoint, SliderInputFieldProps, SliderInputLimitExceededLiveTextFormatter, SliderInputLimitExceededLiveTextFormatterContext, 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 };
|