@mmb-digital/design-system-web 0.1.259 → 0.1.261
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.cjs.js +1663 -31
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +107 -103
- package/dist/index.esm.js +1663 -31
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ReactNode, AriaAttributes, RefObject, MouseEvent, AriaRole, TouchEvent, ReactElement, FocusEventHandler, MouseEventHandler, KeyboardEventHandler, HTMLProps, HTMLInputAutoCompleteAttribute, FocusEvent, ChangeEvent, ComponentType, ComponentProps, TextareaHTMLAttributes, RefAttributes, HTMLAttributes, HTMLInputTypeAttribute, FC, KeyboardEvent, Key } from 'react';
|
|
3
|
-
import * as styled_components from 'styled-components';
|
|
4
|
-
import { WebTarget, DefaultTheme } from 'styled-components';
|
|
2
|
+
import React__default, { ReactNode, AriaAttributes, ElementType, RefObject, MouseEvent, AriaRole, TouchEvent, ReactElement, FocusEventHandler, MouseEventHandler, KeyboardEventHandler, HTMLProps, HTMLInputAutoCompleteAttribute, FocusEvent, ChangeEvent, ComponentType, ComponentProps, TextareaHTMLAttributes, RefAttributes, HTMLAttributes, HTMLInputTypeAttribute, FC, KeyboardEvent, Key } from 'react';
|
|
5
3
|
import { MessageDescriptor } from 'react-intl';
|
|
6
4
|
import { FormatXMLElementFn, PrimitiveType } from 'intl-messageformat';
|
|
5
|
+
import * as _emotion_react from '@emotion/react';
|
|
6
|
+
import { Theme as Theme$1 } from '@emotion/react';
|
|
7
7
|
import * as afformative from 'afformative';
|
|
8
8
|
import { Formatter } from 'afformative';
|
|
9
9
|
import * as csstype from 'csstype';
|
|
10
10
|
import { Property } from 'csstype';
|
|
11
|
+
import { Locale } from 'date-fns';
|
|
11
12
|
import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
12
13
|
import * as react_hook_form from 'react-hook-form';
|
|
13
14
|
import { RegisterOptions, FieldValues, FieldPath, UseFormProps as UseFormProps$1, UseFormReturn as UseFormReturn$1 } from 'react-hook-form';
|
|
14
15
|
import { FactoryOpts } from 'imask';
|
|
15
16
|
import { z } from 'zod';
|
|
17
|
+
import emotionStyled from '@emotion/styled';
|
|
16
18
|
|
|
17
19
|
interface AccordionItemType {
|
|
18
20
|
closeActionAriaLabel?: string;
|
|
@@ -277,7 +279,7 @@ interface MessageDescriptorWithValues extends MessageDescriptor {
|
|
|
277
279
|
interface ButtonProps extends SsrProps, DesignSystemBaseProps, AriaAttributes {
|
|
278
280
|
ariaDisabled?: boolean;
|
|
279
281
|
ariaLabel?: string;
|
|
280
|
-
as?:
|
|
282
|
+
as?: ElementType;
|
|
281
283
|
buttonStyle: ButtonStyle;
|
|
282
284
|
children?: ReactNode;
|
|
283
285
|
className?: string;
|
|
@@ -310,7 +312,7 @@ declare enum Spacing {
|
|
|
310
312
|
xxxxl = "xxxxl",
|
|
311
313
|
xxxxxl = "xxxxxl"
|
|
312
314
|
}
|
|
313
|
-
declare const resolveSpacingValue: (theme:
|
|
315
|
+
declare const resolveSpacingValue: (theme: Theme$1, spacing: Spacing) => "0" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "48px" | "56px" | "64px";
|
|
314
316
|
|
|
315
317
|
declare enum FontWeight {
|
|
316
318
|
thin100 = "thin",
|
|
@@ -324,7 +326,7 @@ declare enum FontWeight {
|
|
|
324
326
|
heavy900 = "heavy",
|
|
325
327
|
ultra950 = "ultra"
|
|
326
328
|
}
|
|
327
|
-
declare const resolveFontWeightValue: (theme:
|
|
329
|
+
declare const resolveFontWeightValue: (theme: Theme$1, fontWeight: FontWeight) => 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
328
330
|
|
|
329
331
|
declare const theme: {
|
|
330
332
|
readonly palette: {
|
|
@@ -888,7 +890,7 @@ declare enum BorderRadius {
|
|
|
888
890
|
xl = "xl",
|
|
889
891
|
full = "full"
|
|
890
892
|
}
|
|
891
|
-
declare const resolveBorderRadiusValue: (theme:
|
|
893
|
+
declare const resolveBorderRadiusValue: (theme: Theme$1, borderRadius: BorderRadius) => "0" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "9999px";
|
|
892
894
|
|
|
893
895
|
declare enum FlexWrap {
|
|
894
896
|
noWrap = "noWrap",
|
|
@@ -902,7 +904,7 @@ declare enum TextDecoration {
|
|
|
902
904
|
underline = "underline"
|
|
903
905
|
}
|
|
904
906
|
declare const resolveTextDecorationValue: (textDecoration: TextDecoration) => "underline" | "none !important";
|
|
905
|
-
declare const getTextDecorationStyle: (textDecoration?: TextDecoration) =>
|
|
907
|
+
declare const getTextDecorationStyle: (textDecoration?: TextDecoration) => _emotion_react.SerializedStyles | "";
|
|
906
908
|
|
|
907
909
|
interface SpanButtonProps extends DesignSystemBaseProps, AriaAttributes {
|
|
908
910
|
borderRadius?: BorderRadius;
|
|
@@ -1337,7 +1339,7 @@ interface FormattedPercentageProps {
|
|
|
1337
1339
|
readonly value: number;
|
|
1338
1340
|
}
|
|
1339
1341
|
|
|
1340
|
-
declare const _default:
|
|
1342
|
+
declare const _default: React.NamedExoticComponent<FormattedPercentageProps>;
|
|
1341
1343
|
|
|
1342
1344
|
interface UseFormatPercentageTypeParam {
|
|
1343
1345
|
maximumFractionDigits?: number;
|
|
@@ -1402,7 +1404,7 @@ declare enum FieldOptionality {
|
|
|
1402
1404
|
}
|
|
1403
1405
|
interface InputLabelPassthroughProps {
|
|
1404
1406
|
label?: ReactNode;
|
|
1405
|
-
labelAs?:
|
|
1407
|
+
labelAs?: ElementType;
|
|
1406
1408
|
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1407
1409
|
labelHiddenText?: string;
|
|
1408
1410
|
labelId?: string;
|
|
@@ -1518,8 +1520,8 @@ interface RadioGeneralProps extends AriaAttributes {
|
|
|
1518
1520
|
id?: string;
|
|
1519
1521
|
invalid?: boolean;
|
|
1520
1522
|
name: string;
|
|
1521
|
-
onBlur?: (event:
|
|
1522
|
-
onChange?: (event:
|
|
1523
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
1524
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1523
1525
|
role?: AriaRole;
|
|
1524
1526
|
value: string;
|
|
1525
1527
|
}
|
|
@@ -1573,26 +1575,26 @@ interface RadioGroupControlProps extends FieldControlProps, DesignSystemBaseProp
|
|
|
1573
1575
|
declare const RadioGroupControl: React__default.ForwardRefExoticComponent<RadioGroupControlProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1574
1576
|
|
|
1575
1577
|
declare const RadioGroup: React__default.ForwardRefExoticComponent<Omit<RadioGroupControlProps & {
|
|
1576
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1577
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1578
|
-
mediaType?: MediaType | undefined;
|
|
1579
1578
|
label?: React__default.ReactNode;
|
|
1580
1579
|
colorScheme?: ColorScheme | undefined;
|
|
1580
|
+
mediaType?: MediaType | undefined;
|
|
1581
1581
|
note?: React__default.ReactNode;
|
|
1582
|
-
|
|
1582
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1583
1583
|
invalid?: boolean | undefined;
|
|
1584
|
+
name?: string | undefined;
|
|
1585
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1586
|
+
errorMessage?: React__default.ReactNode;
|
|
1587
|
+
labelAs?: React__default.ElementType | undefined;
|
|
1588
|
+
labelHiddenText?: string | undefined;
|
|
1584
1589
|
labelId?: string | undefined;
|
|
1590
|
+
labelSuffix?: React__default.ReactNode;
|
|
1585
1591
|
addons?: FieldAddon[] | undefined;
|
|
1586
1592
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1587
1593
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1588
1594
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1589
|
-
errorMessage?: React__default.ReactNode;
|
|
1590
1595
|
hintText?: React__default.ReactNode;
|
|
1591
1596
|
optionality?: FieldOptionality | undefined;
|
|
1592
1597
|
successMessage?: React__default.ReactNode;
|
|
1593
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1594
|
-
labelHiddenText?: string | undefined;
|
|
1595
|
-
labelSuffix?: React__default.ReactNode;
|
|
1596
1598
|
} & React__default.RefAttributes<HTMLInputElement>, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1597
1599
|
type RadioGroupProps = ComponentProps<typeof RadioGroup>;
|
|
1598
1600
|
|
|
@@ -1603,8 +1605,8 @@ interface RadioGroupFieldProps extends Omit<RadioGroupProps, 'onBlur' | 'onChang
|
|
|
1603
1605
|
declare const RadioGroupField: (props: RadioGroupFieldProps) => React__default.JSX.Element;
|
|
1604
1606
|
|
|
1605
1607
|
interface RadioButtonLabel {
|
|
1606
|
-
main:
|
|
1607
|
-
top?:
|
|
1608
|
+
main: ReactElement | string;
|
|
1609
|
+
top?: ReactElement | string | undefined;
|
|
1608
1610
|
}
|
|
1609
1611
|
|
|
1610
1612
|
interface RadioButtonProps extends RadioGeneralProps, DesignSystemBaseProps {
|
|
@@ -1644,26 +1646,26 @@ interface RadioButtonGroupControlProps extends DesignSystemBaseProps, FieldContr
|
|
|
1644
1646
|
declare const RadioButtonGroupControl: React__default.ForwardRefExoticComponent<RadioButtonGroupControlProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1645
1647
|
|
|
1646
1648
|
declare const RadioButtonGroup: React__default.ForwardRefExoticComponent<Omit<RadioButtonGroupControlProps & {
|
|
1647
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1648
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1649
|
-
mediaType?: MediaType | undefined;
|
|
1650
1649
|
label?: React__default.ReactNode;
|
|
1651
1650
|
colorScheme?: ColorScheme | undefined;
|
|
1651
|
+
mediaType?: MediaType | undefined;
|
|
1652
1652
|
note?: React__default.ReactNode;
|
|
1653
|
-
|
|
1653
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1654
1654
|
invalid?: boolean | undefined;
|
|
1655
|
+
name?: string | undefined;
|
|
1656
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1657
|
+
errorMessage?: React__default.ReactNode;
|
|
1658
|
+
labelAs?: React__default.ElementType | undefined;
|
|
1659
|
+
labelHiddenText?: string | undefined;
|
|
1655
1660
|
labelId?: string | undefined;
|
|
1661
|
+
labelSuffix?: React__default.ReactNode;
|
|
1656
1662
|
addons?: FieldAddon[] | undefined;
|
|
1657
1663
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1658
1664
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1659
1665
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1660
|
-
errorMessage?: React__default.ReactNode;
|
|
1661
1666
|
hintText?: React__default.ReactNode;
|
|
1662
1667
|
optionality?: FieldOptionality | undefined;
|
|
1663
1668
|
successMessage?: React__default.ReactNode;
|
|
1664
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1665
|
-
labelHiddenText?: string | undefined;
|
|
1666
|
-
labelSuffix?: React__default.ReactNode;
|
|
1667
1669
|
} & React__default.RefAttributes<HTMLInputElement>, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1668
1670
|
type RadioButtonGroupProps = ComponentProps<typeof RadioButtonGroup>;
|
|
1669
1671
|
|
|
@@ -1676,26 +1678,26 @@ declare const RadioButtonGroupField: (props: RadioButtonGroupFieldProps) => Reac
|
|
|
1676
1678
|
interface TextAreaControlProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldControlProps {
|
|
1677
1679
|
}
|
|
1678
1680
|
declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaControlProps & {
|
|
1679
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1680
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1681
|
-
mediaType?: MediaType | undefined;
|
|
1682
1681
|
label?: React__default.ReactNode;
|
|
1683
1682
|
colorScheme?: ColorScheme | undefined;
|
|
1683
|
+
mediaType?: MediaType | undefined;
|
|
1684
1684
|
note?: React__default.ReactNode;
|
|
1685
|
-
|
|
1685
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1686
1686
|
invalid?: boolean | undefined;
|
|
1687
|
+
name?: string | undefined;
|
|
1688
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1689
|
+
errorMessage?: React__default.ReactNode;
|
|
1690
|
+
labelAs?: React__default.ElementType | undefined;
|
|
1691
|
+
labelHiddenText?: string | undefined;
|
|
1687
1692
|
labelId?: string | undefined;
|
|
1693
|
+
labelSuffix?: React__default.ReactNode;
|
|
1688
1694
|
addons?: FieldAddon[] | undefined;
|
|
1689
1695
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1690
1696
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1691
1697
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1692
|
-
errorMessage?: React__default.ReactNode;
|
|
1693
1698
|
hintText?: React__default.ReactNode;
|
|
1694
1699
|
optionality?: FieldOptionality | undefined;
|
|
1695
1700
|
successMessage?: React__default.ReactNode;
|
|
1696
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1697
|
-
labelHiddenText?: string | undefined;
|
|
1698
|
-
labelSuffix?: React__default.ReactNode;
|
|
1699
1701
|
} & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
1700
1702
|
type TextAreaProps = ComponentProps<typeof TextArea>;
|
|
1701
1703
|
|
|
@@ -1744,7 +1746,7 @@ declare enum InputLabelSize {
|
|
|
1744
1746
|
}
|
|
1745
1747
|
|
|
1746
1748
|
interface InputLabelProps extends DesignSystemBaseProps {
|
|
1747
|
-
as?:
|
|
1749
|
+
as?: ElementType;
|
|
1748
1750
|
/** Visually hidden text for screen readers, providing additional info, such as the availability of help under tooltip button. */
|
|
1749
1751
|
hiddenText?: string;
|
|
1750
1752
|
id?: string;
|
|
@@ -1761,26 +1763,26 @@ interface EmailInputControlProps extends InputProps {
|
|
|
1761
1763
|
placeholder?: string;
|
|
1762
1764
|
}
|
|
1763
1765
|
declare const EmailInput: React__default.ForwardRefExoticComponent<EmailInputControlProps & {
|
|
1764
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1765
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1766
|
-
mediaType?: MediaType | undefined;
|
|
1767
1766
|
label?: React__default.ReactNode;
|
|
1768
1767
|
colorScheme?: ColorScheme | undefined;
|
|
1768
|
+
mediaType?: MediaType | undefined;
|
|
1769
1769
|
note?: React__default.ReactNode;
|
|
1770
|
-
|
|
1770
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1771
1771
|
invalid?: boolean | undefined;
|
|
1772
|
+
name?: string | undefined;
|
|
1773
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1774
|
+
errorMessage?: React__default.ReactNode;
|
|
1775
|
+
labelAs?: React__default.ElementType | undefined;
|
|
1776
|
+
labelHiddenText?: string | undefined;
|
|
1772
1777
|
labelId?: string | undefined;
|
|
1778
|
+
labelSuffix?: React__default.ReactNode;
|
|
1773
1779
|
addons?: FieldAddon[] | undefined;
|
|
1774
1780
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1775
1781
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1776
1782
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1777
|
-
errorMessage?: React__default.ReactNode;
|
|
1778
1783
|
hintText?: React__default.ReactNode;
|
|
1779
1784
|
optionality?: FieldOptionality | undefined;
|
|
1780
1785
|
successMessage?: React__default.ReactNode;
|
|
1781
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1782
|
-
labelHiddenText?: string | undefined;
|
|
1783
|
-
labelSuffix?: React__default.ReactNode;
|
|
1784
1786
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
1785
1787
|
type EmailInputProps = ComponentProps<typeof EmailInput>;
|
|
1786
1788
|
|
|
@@ -1798,26 +1800,26 @@ interface MaskedInputBaseProps extends InputBaseProps {
|
|
|
1798
1800
|
declare const MaskedInputBase: React__default.ForwardRefExoticComponent<Omit<MaskedInputBaseProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1799
1801
|
|
|
1800
1802
|
declare const MaskedInput: React.ForwardRefExoticComponent<Omit<MaskedInputBaseProps & {
|
|
1801
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1802
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1803
|
-
mediaType?: MediaType | undefined;
|
|
1804
1803
|
label?: React.ReactNode;
|
|
1805
1804
|
colorScheme?: ColorScheme | undefined;
|
|
1805
|
+
mediaType?: MediaType | undefined;
|
|
1806
1806
|
note?: React.ReactNode;
|
|
1807
|
-
|
|
1807
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1808
1808
|
invalid?: boolean | undefined;
|
|
1809
|
+
name?: string | undefined;
|
|
1810
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1811
|
+
errorMessage?: React.ReactNode;
|
|
1812
|
+
labelAs?: React.ElementType | undefined;
|
|
1813
|
+
labelHiddenText?: string | undefined;
|
|
1809
1814
|
labelId?: string | undefined;
|
|
1815
|
+
labelSuffix?: React.ReactNode;
|
|
1810
1816
|
addons?: FieldAddon[] | undefined;
|
|
1811
1817
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1812
1818
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1813
1819
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1814
|
-
errorMessage?: React.ReactNode;
|
|
1815
1820
|
hintText?: React.ReactNode;
|
|
1816
1821
|
optionality?: FieldOptionality | undefined;
|
|
1817
1822
|
successMessage?: React.ReactNode;
|
|
1818
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1819
|
-
labelHiddenText?: string | undefined;
|
|
1820
|
-
labelSuffix?: React.ReactNode;
|
|
1821
1823
|
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1822
1824
|
type MaskedInputProps = ComponentProps<typeof MaskedInput>;
|
|
1823
1825
|
|
|
@@ -1827,26 +1829,26 @@ declare const withMaskedInputField: <TProps extends ManagedMaskedInputProps>(Com
|
|
|
1827
1829
|
options?: RegisterOptions<TFieldValues>;
|
|
1828
1830
|
}) => React__default.JSX.Element;
|
|
1829
1831
|
declare const MaskedInputField: <TFieldValues extends FieldValues>(props: Omit<MaskedInputBaseProps & {
|
|
1830
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1831
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1832
|
-
mediaType?: MediaType | undefined;
|
|
1833
1832
|
label?: React__default.ReactNode;
|
|
1834
1833
|
colorScheme?: ColorScheme | undefined;
|
|
1834
|
+
mediaType?: MediaType | undefined;
|
|
1835
1835
|
note?: React__default.ReactNode;
|
|
1836
|
-
|
|
1836
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1837
1837
|
invalid?: boolean | undefined;
|
|
1838
|
+
name?: string | undefined;
|
|
1839
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1840
|
+
errorMessage?: React__default.ReactNode;
|
|
1841
|
+
labelAs?: React__default.ElementType | undefined;
|
|
1842
|
+
labelHiddenText?: string | undefined;
|
|
1838
1843
|
labelId?: string | undefined;
|
|
1844
|
+
labelSuffix?: React__default.ReactNode;
|
|
1839
1845
|
addons?: FieldAddon[] | undefined;
|
|
1840
1846
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1841
1847
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1842
1848
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1843
|
-
errorMessage?: React__default.ReactNode;
|
|
1844
1849
|
hintText?: React__default.ReactNode;
|
|
1845
1850
|
optionality?: FieldOptionality | undefined;
|
|
1846
1851
|
successMessage?: React__default.ReactNode;
|
|
1847
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1848
|
-
labelHiddenText?: string | undefined;
|
|
1849
|
-
labelSuffix?: React__default.ReactNode;
|
|
1850
1852
|
}, "ref"> & React__default.RefAttributes<HTMLInputElement> & {
|
|
1851
1853
|
name: react_hook_form.Path<TFieldValues>;
|
|
1852
1854
|
options?: RegisterOptions<TFieldValues> | undefined;
|
|
@@ -1886,26 +1888,26 @@ interface SearchInputControlProps extends InputProps {
|
|
|
1886
1888
|
placeholder?: string;
|
|
1887
1889
|
}
|
|
1888
1890
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputControlProps & {
|
|
1889
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1890
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1891
|
-
mediaType?: MediaType | undefined;
|
|
1892
1891
|
label?: React__default.ReactNode;
|
|
1893
1892
|
colorScheme?: ColorScheme | undefined;
|
|
1893
|
+
mediaType?: MediaType | undefined;
|
|
1894
1894
|
note?: React__default.ReactNode;
|
|
1895
|
-
|
|
1895
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
1896
1896
|
invalid?: boolean | undefined;
|
|
1897
|
+
name?: string | undefined;
|
|
1898
|
+
layout?: FieldWrapperLayout | undefined;
|
|
1899
|
+
errorMessage?: React__default.ReactNode;
|
|
1900
|
+
labelAs?: React__default.ElementType | undefined;
|
|
1901
|
+
labelHiddenText?: string | undefined;
|
|
1897
1902
|
labelId?: string | undefined;
|
|
1903
|
+
labelSuffix?: React__default.ReactNode;
|
|
1898
1904
|
addons?: FieldAddon[] | undefined;
|
|
1899
1905
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
1900
1906
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
1901
1907
|
controlWidth?: csstype.Property.Width | undefined;
|
|
1902
|
-
errorMessage?: React__default.ReactNode;
|
|
1903
1908
|
hintText?: React__default.ReactNode;
|
|
1904
1909
|
optionality?: FieldOptionality | undefined;
|
|
1905
1910
|
successMessage?: React__default.ReactNode;
|
|
1906
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
1907
|
-
labelHiddenText?: string | undefined;
|
|
1908
|
-
labelSuffix?: React__default.ReactNode;
|
|
1909
1911
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
1910
1912
|
type SearchInputProps = ComponentProps<typeof SearchInput>;
|
|
1911
1913
|
|
|
@@ -1995,26 +1997,26 @@ interface TextInputControlProps extends InputProps {
|
|
|
1995
1997
|
placeholder?: string;
|
|
1996
1998
|
}
|
|
1997
1999
|
declare const TextInput: React__default.ForwardRefExoticComponent<TextInputControlProps & {
|
|
1998
|
-
layout?: FieldWrapperLayout | undefined;
|
|
1999
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2000
|
-
mediaType?: MediaType | undefined;
|
|
2001
2000
|
label?: React__default.ReactNode;
|
|
2002
2001
|
colorScheme?: ColorScheme | undefined;
|
|
2002
|
+
mediaType?: MediaType | undefined;
|
|
2003
2003
|
note?: React__default.ReactNode;
|
|
2004
|
-
|
|
2004
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2005
2005
|
invalid?: boolean | undefined;
|
|
2006
|
+
name?: string | undefined;
|
|
2007
|
+
layout?: FieldWrapperLayout | undefined;
|
|
2008
|
+
errorMessage?: React__default.ReactNode;
|
|
2009
|
+
labelAs?: React__default.ElementType | undefined;
|
|
2010
|
+
labelHiddenText?: string | undefined;
|
|
2006
2011
|
labelId?: string | undefined;
|
|
2012
|
+
labelSuffix?: React__default.ReactNode;
|
|
2007
2013
|
addons?: FieldAddon[] | undefined;
|
|
2008
2014
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2009
2015
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2010
2016
|
controlWidth?: csstype.Property.Width | undefined;
|
|
2011
|
-
errorMessage?: React__default.ReactNode;
|
|
2012
2017
|
hintText?: React__default.ReactNode;
|
|
2013
2018
|
optionality?: FieldOptionality | undefined;
|
|
2014
2019
|
successMessage?: React__default.ReactNode;
|
|
2015
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
2016
|
-
labelHiddenText?: string | undefined;
|
|
2017
|
-
labelSuffix?: React__default.ReactNode;
|
|
2018
2020
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2019
2021
|
type TextInputProps = ComponentProps<typeof TextInput>;
|
|
2020
2022
|
|
|
@@ -2028,26 +2030,26 @@ interface TrailingTextInputControlProps extends InputProps {
|
|
|
2028
2030
|
suffix?: ReactNode;
|
|
2029
2031
|
}
|
|
2030
2032
|
declare const TrailingTextInput: React__default.ForwardRefExoticComponent<TrailingTextInputControlProps & {
|
|
2031
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2032
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2033
|
-
mediaType?: MediaType | undefined;
|
|
2034
2033
|
label?: React__default.ReactNode;
|
|
2035
2034
|
colorScheme?: ColorScheme | undefined;
|
|
2035
|
+
mediaType?: MediaType | undefined;
|
|
2036
2036
|
note?: React__default.ReactNode;
|
|
2037
|
-
|
|
2037
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2038
2038
|
invalid?: boolean | undefined;
|
|
2039
|
+
name?: string | undefined;
|
|
2040
|
+
layout?: FieldWrapperLayout | undefined;
|
|
2041
|
+
errorMessage?: React__default.ReactNode;
|
|
2042
|
+
labelAs?: React__default.ElementType | undefined;
|
|
2043
|
+
labelHiddenText?: string | undefined;
|
|
2039
2044
|
labelId?: string | undefined;
|
|
2045
|
+
labelSuffix?: React__default.ReactNode;
|
|
2040
2046
|
addons?: FieldAddon[] | undefined;
|
|
2041
2047
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2042
2048
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2043
2049
|
controlWidth?: csstype.Property.Width | undefined;
|
|
2044
|
-
errorMessage?: React__default.ReactNode;
|
|
2045
2050
|
hintText?: React__default.ReactNode;
|
|
2046
2051
|
optionality?: FieldOptionality | undefined;
|
|
2047
2052
|
successMessage?: React__default.ReactNode;
|
|
2048
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
2049
|
-
labelHiddenText?: string | undefined;
|
|
2050
|
-
labelSuffix?: React__default.ReactNode;
|
|
2051
2053
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2052
2054
|
type TrailingTextInputProps = ComponentProps<typeof TrailingTextInput>;
|
|
2053
2055
|
|
|
@@ -2068,7 +2070,7 @@ declare const Toggle: FC<ToggleProps>;
|
|
|
2068
2070
|
interface DatePickerControlProps extends Pick<DatePickerProps$1, 'chooseDayAriaLabelPrefix' | 'dateFormat' | 'disabledDayAriaLabelPrefix' | 'filterDate' | 'maxDate' | 'minDate' | 'monthAriaLabelPrefix' | 'nextMonthAriaLabel' | 'onBlur' | 'previousMonthAriaLabel' | 'selected'>, FieldControlProps {
|
|
2069
2071
|
chevronCloseAriaLabel?: string;
|
|
2070
2072
|
chevronOpenAriaLabel?: string;
|
|
2071
|
-
locale?:
|
|
2073
|
+
locale?: Locale;
|
|
2072
2074
|
name: string;
|
|
2073
2075
|
onChange?: (date: Date | null, event?: React__default.KeyboardEvent<HTMLElement> | React__default.MouseEvent<HTMLElement>) => void;
|
|
2074
2076
|
placeholder?: string;
|
|
@@ -2076,26 +2078,26 @@ interface DatePickerControlProps extends Pick<DatePickerProps$1, 'chooseDayAriaL
|
|
|
2076
2078
|
declare const DatePickerControl: React__default.ForwardRefExoticComponent<DatePickerControlProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
2077
2079
|
|
|
2078
2080
|
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerControlProps & {
|
|
2079
|
-
layout?: FieldWrapperLayout | undefined;
|
|
2080
|
-
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2081
|
-
mediaType?: MediaType | undefined;
|
|
2082
2081
|
label?: React.ReactNode;
|
|
2083
2082
|
colorScheme?: ColorScheme | undefined;
|
|
2083
|
+
mediaType?: MediaType | undefined;
|
|
2084
2084
|
note?: React.ReactNode;
|
|
2085
|
-
|
|
2085
|
+
tooltip?: TooltipInfoDescriptor | undefined;
|
|
2086
2086
|
invalid?: boolean | undefined;
|
|
2087
|
+
name?: string | undefined;
|
|
2088
|
+
layout?: FieldWrapperLayout | undefined;
|
|
2089
|
+
errorMessage?: React.ReactNode;
|
|
2090
|
+
labelAs?: React.ElementType | undefined;
|
|
2091
|
+
labelHiddenText?: string | undefined;
|
|
2087
2092
|
labelId?: string | undefined;
|
|
2093
|
+
labelSuffix?: React.ReactNode;
|
|
2088
2094
|
addons?: FieldAddon[] | undefined;
|
|
2089
2095
|
controlMobileWidth?: csstype.Property.Width | undefined;
|
|
2090
2096
|
controlSectionWidth?: csstype.Property.Width | undefined;
|
|
2091
2097
|
controlWidth?: csstype.Property.Width | undefined;
|
|
2092
|
-
errorMessage?: React.ReactNode;
|
|
2093
2098
|
hintText?: React.ReactNode;
|
|
2094
2099
|
optionality?: FieldOptionality | undefined;
|
|
2095
2100
|
successMessage?: React.ReactNode;
|
|
2096
|
-
labelAs?: styled_components.WebTarget | undefined;
|
|
2097
|
-
labelHiddenText?: string | undefined;
|
|
2098
|
-
labelSuffix?: React.ReactNode;
|
|
2099
2101
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
2100
2102
|
type DatePickerProps = ComponentProps<typeof DatePicker>;
|
|
2101
2103
|
|
|
@@ -2124,7 +2126,7 @@ declare enum TypographyTextAlign {
|
|
|
2124
2126
|
}
|
|
2125
2127
|
|
|
2126
2128
|
interface TypographyProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
|
|
2127
|
-
as?:
|
|
2129
|
+
as?: ElementType;
|
|
2128
2130
|
children: ReactNode;
|
|
2129
2131
|
className?: string;
|
|
2130
2132
|
color?: ColorObject | string;
|
|
@@ -2163,14 +2165,14 @@ declare enum TagIconPosition {
|
|
|
2163
2165
|
}
|
|
2164
2166
|
|
|
2165
2167
|
interface TagProps extends DesignSystemBaseProps, AriaAttributes {
|
|
2166
|
-
as?:
|
|
2168
|
+
as?: ElementType;
|
|
2167
2169
|
children: ReactNode;
|
|
2168
2170
|
className?: string;
|
|
2169
2171
|
fontWeight?: FontWeight;
|
|
2170
2172
|
href?: string;
|
|
2171
2173
|
iconPosition?: TagIconPosition;
|
|
2172
2174
|
iconSystem?: IconSystemType;
|
|
2173
|
-
onClick?: (event:
|
|
2175
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
2174
2176
|
onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
2175
2177
|
role?: AriaRole;
|
|
2176
2178
|
size?: TagSize;
|
|
@@ -2188,7 +2190,7 @@ declare enum StackDirection {
|
|
|
2188
2190
|
}
|
|
2189
2191
|
|
|
2190
2192
|
interface StackProps extends AriaAttributes {
|
|
2191
|
-
as?:
|
|
2193
|
+
as?: ElementType;
|
|
2192
2194
|
children?: ReactNode;
|
|
2193
2195
|
className?: string;
|
|
2194
2196
|
direction?: StackDirection;
|
|
@@ -2208,7 +2210,7 @@ declare enum PaperShadow {
|
|
|
2208
2210
|
}
|
|
2209
2211
|
|
|
2210
2212
|
interface PaperProps extends DesignSystemBaseProps, SsrProps, AriaAttributes {
|
|
2211
|
-
as?:
|
|
2213
|
+
as?: ElementType;
|
|
2212
2214
|
children: ReactNode;
|
|
2213
2215
|
className?: string;
|
|
2214
2216
|
id?: string;
|
|
@@ -2295,7 +2297,7 @@ interface ButtonsLayoutProps extends SsrProps {
|
|
|
2295
2297
|
declare const ButtonsLayout: (props: ButtonsLayoutProps) => React__default.JSX.Element;
|
|
2296
2298
|
|
|
2297
2299
|
interface VisuallyHiddenProps extends AriaAttributes {
|
|
2298
|
-
as?:
|
|
2300
|
+
as?: ElementType;
|
|
2299
2301
|
children: ReactNode;
|
|
2300
2302
|
id?: string;
|
|
2301
2303
|
}
|
|
@@ -2466,4 +2468,6 @@ declare const useMessageFormatter: <TInput extends unknown>(getMessage: (value:
|
|
|
2466
2468
|
[x: string]: any;
|
|
2467
2469
|
}>;
|
|
2468
2470
|
|
|
2469
|
-
|
|
2471
|
+
declare const styled: typeof emotionStyled;
|
|
2472
|
+
|
|
2473
|
+
export { Accordion, AccordionContent, type AccordionContentType, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionKeyValue, type AccordionKeyValueProps, type AccordionProps, AccordionVariant, BorderRadius, Button, type ButtonProps, ButtonSize, ButtonStyle, ButtonType, ButtonsLayout, ButtonsLayoutAlign, ButtonsLayoutDirection, type ButtonsLayoutProps, CalculatorResult, type CalculatorResultBodyItem, type CalculatorResultHeader, CalculatorResultInfoPosition, type CalculatorResultMain, type CalculatorResultModalDescriptor, type CalculatorResultProps, Checkbox, CheckboxControl, type CheckboxControlProps, CheckboxField, type CheckboxFieldProps, CheckboxPosition, type CheckboxProps, type ChooseColor, CircularProgressBar, type CircularProgressBarProps, type ColorObject, ColorScheme, ColorSchemeProvider, type ColorSchemeProviderProps, ComboBox, ComboBoxControl, type ComboBoxControlProps, ComboBoxField, type ComboBoxFieldProps, type ComboBoxItem, type ComboBoxItemOrder, ComboBoxItemOrderSource, type ComboBoxProps, type CreateTooltipInfoDescriptor, type CreateTooltipInfoDescriptorParam, DatePicker, DatePickerControl, type DatePickerControlProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, type DesignSystemBaseProps, DesignSystemProvider, type DesignSystemProviderProps, EmailInput, EmailInputField, type EmailInputFieldProps, type EmailInputProps, ErrorBox, type ErrorBoxItem, type ErrorBoxProps, type FieldAddon, FieldAddonPosition, type FieldConfig, FieldConfigProvider, type FieldConfigProviderProps, type FieldControlProps, FieldLabelStoreProvider, type FieldLabelStoreProviderProps, FieldOptionality, FieldWrapper, FieldWrapperLayout, type FieldWrapperProps, FileInput, type FileInputDropzoneDragFilesHereComponent, type FileInputDropzoneDragOrSelectFilesComponent, type FileInputDropzoneSelectFilesComponent, FileInputErrorCode, FileInputField, type FileInputFieldProps, type FileInputLimitDescriptionComponent, type FileInputProps, type FileInputRemoveButtonTextComponent, type FileInputSettings, type FileInputUploadErrorReasonComponent, type FileInputUploadFailedComponent, FlexWrap, FontWeight, FormErrorOutcome, type FormErrorOutcomeProps, FormErrorSummary, type FormErrorSummaryProps, FormProvider, type FormProviderProps, FormSuccessOutcome, type FormSuccessOutcomeProps, FormatAmountCurrencyDisplay, FormatAmountGrouping, FormattedAmount$1 as FormattedAmount, type FormattedAmountProps$1 as FormattedAmountProps, FormattedHtmlMessage, type FormattedHtmlMessageProps, FormattedMessage, type FormattedMessageProps, _default as FormattedPercentage, type GetColor, IconProduct, type IconProductProps, IconProductSize, IconProductType, IconProductVariant, IconSystem, type IconSystemProps, IconSystemSize, IconSystemType, Infobox, type InfoboxProps, InfoboxSize, type InfoboxTextContent, InfoboxVariant, InputBase, type InputBaseProps, InputLabel, type InputLabelPassthroughProps, type InputLabelProps, InputLabelSize, InputSize, InputTextAlign, LabelTooltipPosition, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MaskedInput, MaskedInputBase, type MaskedInputBaseProps, MaskedInputField, type MaskedInputFieldProps, type MaskedInputProps, MediaType, MediaTypeProvider, type MediaTypeProviderProps, type MessageDescriptorWithPrimitiveValues, type MessageDescriptorWithValues, type MessageValues, Modal, type ModalOnClose, type ModalProps, ModalVerticalPosition, ModalWidthType, FormattedAmount as NextFormattedAmount, type FormattedAmountProps as NextFormattedAmountProps, NumberInput, NumberInputField, type NumberInputFieldProps, type NumberInputProps, Overflow, Paper, type PaperProps, PaperShadow, PhoneInput, PhoneInputField, type PhoneInputFieldProps, type PhoneInputProps, type PrimitiveMessageValues, ProgressPaper, type ProgressPaperProps, Radio, RadioButton, RadioButtonGroup, RadioButtonGroupControl, type RadioButtonGroupControlProps, RadioButtonGroupField, type RadioButtonGroupFieldProps, type RadioButtonGroupItem, RadioButtonGroupLayout, type RadioButtonGroupProps, type RadioButtonLabel, type RadioButtonProps, RadioControl, type RadioControlProps, RadioField, type RadioFieldProps, RadioGroup, RadioGroupControl, type RadioGroupControlProps, RadioGroupDirection, RadioGroupField, type RadioGroupFieldProps, type RadioGroupItem, type RadioGroupProps, RadioPosition, type RadioProps, ReasonForClosing, SearchInput, type SearchInputProps, Select, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectItem, type SelectItemOrder, SelectItemOrderSource, type SelectProps, SelectVariant, Slider, type SliderAriaValueTextFormatter, type SliderAriaValueTextFormatterDataContext, type SliderBreakpoint, SliderInput, SliderInputField, type SliderInputFieldProps, type SliderInputLimitExceededLiveTextFormatter, type SliderInputLimitExceededLiveTextFormatterDataContext, type SliderInputProps, SliderInputRoundingType, type SliderMinMaxLabels, type SliderProps, SliderStepType, type SliderSteps, Spacing, SpanButton, type SpanButtonProps, Stack, StackDirection, type StackProps, type TabItemType, Table, TableBody, type TableBodyProps, TableData, type TableDataProps, TableHead, TableHeadData, type TableHeadDataProps, type TableHeadProps, type TableProps, TableRow, type TableRowProps, TableTextAlign, TableVariant, Tabs, TabsActiveTabDefaultPosition, TabsItem, type TabsItemProps, type TabsProps, TabsSize, type TabsType, TabsVariant, Tag, TagIconPosition, type TagProps, TagSize, TagTextTransform, TagType, TextArea, TextAreaField, type TextAreaFieldProps, type TextAreaProps, TextDecoration, TextInput, TextInputField, type TextInputFieldProps, type TextInputProps, type Theme, Toggle, type ToggleProps, TooltipCloseReason, type TooltipDescriptor, TooltipGeneral, type TooltipGeneralProps, TooltipInfo, TooltipInfoConditional, type TooltipInfoConditionalProps, type TooltipInfoDescriptor, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, type TooltipInfoDisplayableCheckProps, type TooltipInfoProps, TooltipPlacement, type TooltipRenderParent, TrailingTextInput, type TrailingTextInputProps, Typography, type TypographyProps, TypographyTextAlign, TypographyVariant, type UseColorSchemeOptions, type UseColorSchemeParam, type UseDesignSystemOptions, type UseDesignSystemParam, type UseFormProps, type UseFormReturn, type UseFormSuccessOutcomeManagerReturn, type UseFormatAmountParam, type UseMediaTypeOptions, type UseMediaTypeParam, VisuallyHidden, type VisuallyHiddenProps, datePickerValueFormat, getColor, getTextDecorationStyle, identityFormatter, isRenderable, resolveBorderRadiusValue, resolveFlexWrapValue, resolveFontWeightValue, resolveOverflowValue, resolveSpacingValue, resolveTextDecorationValue, styled, theme, useChooseColor, useColorScheme, useCreateTooltipInfoDescriptor, useDesignSystem, useFieldConfig, useFieldLabels, useForm, useFormContext, useFormSuccessOutcomeManager, useFormatAmount$1 as useFormatAmount, useFormattedPercentage, useGetFormattedHtmlMessageIfDisplayable, useIsMessageDisplayable, useMediaType, useMessageFormatter, useFormatAmount as useNextFormatAmount, useRegisterFieldLabel, withFieldWrapper, withMaskedInputField };
|