@dfds-ui/forms 2.0.20-alpha.05a04c8a → 2.0.20-alpha.22bf1379
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/cjs/select-field/SelectField.js +9 -12
- package/cjs/tel-field/TelField.js +17 -16
- package/package.json +7 -7
- package/select-field/SelectField.d.ts +8 -10
- package/select-field/SelectField.js +12 -13
- package/tel-field/TelField.d.ts +1 -1
- package/tel-field/TelField.js +18 -17
- package/cjs/assistive-text/AssistiveText.d.ts +0 -9
- package/cjs/asterisk/Asterisk.d.ts +0 -11
- package/cjs/checkbox/Checkbox.d.ts +0 -65
- package/cjs/checkbox/CheckboxContext.d.ts +0 -13
- package/cjs/checkbox/CheckboxGroup.d.ts +0 -20
- package/cjs/checkbox/index.d.ts +0 -2
- package/cjs/counter/Counter.d.ts +0 -66
- package/cjs/counter/index.d.ts +0 -1
- package/cjs/enhanced/EnhancedField.d.ts +0 -20
- package/cjs/enhanced/index.d.ts +0 -1
- package/cjs/error-text/ErrorText.d.ts +0 -8
- package/cjs/field-wrap/FieldWrap.d.ts +0 -10
- package/cjs/field-wrap/index.d.ts +0 -1
- package/cjs/help-icon/HelpIcon.d.ts +0 -8
- package/cjs/index.d.ts +0 -18
- package/cjs/label/Label.d.ts +0 -11
- package/cjs/password-field/PasswordField.d.ts +0 -4
- package/cjs/radio/Radio.d.ts +0 -51
- package/cjs/radio/RadioContext.d.ts +0 -13
- package/cjs/radio/RadioGroup.d.ts +0 -12
- package/cjs/radio/index.d.ts +0 -2
- package/cjs/rating/Rating.d.ts +0 -55
- package/cjs/rating/index.d.ts +0 -1
- package/cjs/select-field/AsyncSelectField.d.ts +0 -99
- package/cjs/select-field/NativeSelectField.d.ts +0 -8
- package/cjs/select-field/SelectField.d.ts +0 -95
- package/cjs/switch/Switch.d.ts +0 -32
- package/cjs/switch/SwitchContext.d.ts +0 -11
- package/cjs/switch/SwitchGroup.d.ts +0 -10
- package/cjs/switch/index.d.ts +0 -2
- package/cjs/tel-field/TelField.d.ts +0 -67
- package/cjs/text-field/TextField.d.ts +0 -57
- package/cjs/textarea-field/TextareaField.d.ts +0 -44
- package/cjs/types/field.d.ts +0 -52
- package/cjs/types/index.d.ts +0 -2
- package/cjs/types/size.d.ts +0 -1
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Select, { ActionMeta, createFilter, GroupBase, MultiValue, OptionsOrGroups, SingleValue } from 'react-select';
|
|
3
|
-
import { BaseFieldProps } from '../types';
|
|
4
|
-
export declare type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'size' | 'css'>;
|
|
5
|
-
export declare type Size = 'small' | 'medium' | 'large';
|
|
6
|
-
export declare const ReactSelectWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: React.ElementType<any> | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
error?: boolean | undefined;
|
|
11
|
-
size?: string | undefined;
|
|
12
|
-
arrow?: boolean | undefined;
|
|
13
|
-
selected?: boolean | undefined;
|
|
14
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
export declare const Menu: (props: any) => JSX.Element;
|
|
16
|
-
export declare type SelectFieldProps<T = string> = BaseFieldProps & {
|
|
17
|
-
assistiveText?: string;
|
|
18
|
-
autoFocus?: boolean;
|
|
19
|
-
className?: string;
|
|
20
|
-
components?: any;
|
|
21
|
-
defaultValue?: SingleValue<T>;
|
|
22
|
-
errorMessage?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Configuration object passed to react-select createFilter function to create [custom filter
|
|
25
|
-
* logic](https://react-select.com/advanced#custom-filter-logic)
|
|
26
|
-
* @param ignoreCase - boolean (optional)
|
|
27
|
-
* @param ignoreAccents - boolean (optional)
|
|
28
|
-
* @param stringify (obj: any) => string (optional)
|
|
29
|
-
* @param trim - boolean (optional)
|
|
30
|
-
* @param matchForm - 'any' | 'start'
|
|
31
|
-
*/
|
|
32
|
-
filterConfig?: Parameters<typeof createFilter>[0];
|
|
33
|
-
/**
|
|
34
|
-
* Indicates that the Select can be cleared after selecting an Option.
|
|
35
|
-
*
|
|
36
|
-
* Setting this to true will display a small dismiss cross when a value is selected
|
|
37
|
-
*/
|
|
38
|
-
isClearable?: boolean;
|
|
39
|
-
isMulti?: boolean;
|
|
40
|
-
isSearchable?: boolean;
|
|
41
|
-
menuIsOpen?: boolean;
|
|
42
|
-
menuPlacement?: 'bottom' | 'auto' | 'top';
|
|
43
|
-
onBlur?: (value: any) => void;
|
|
44
|
-
onChange?: (newValue: SingleValue<T> | MultiValue<T>, actionMeta: ActionMeta<T>) => void;
|
|
45
|
-
onSelect?: (value: SingleValue<T> | MultiValue<T>) => void;
|
|
46
|
-
options?: OptionsOrGroups<T, GroupBase<T>>;
|
|
47
|
-
placeholder?: string;
|
|
48
|
-
prefix?: React.ReactNode;
|
|
49
|
-
styles?: any;
|
|
50
|
-
suffix?: React.ReactNode;
|
|
51
|
-
value?: SingleValue<T> | MultiValue<T>;
|
|
52
|
-
visualSize?: Size;
|
|
53
|
-
};
|
|
54
|
-
declare function SelectFieldInner<T>({ assistiveText, components, defaultValue, disabled, errorMessage, filterConfig, help, helpPlacement, hideAsterisk, isClearable, isMulti, isSearchable, label, name, onBlur, onChange, onSelect, options, placeholder, required, styles, value, visualSize, ...rest }: SelectFieldProps<T>, ref: React.ForwardedRef<any>): JSX.Element;
|
|
55
|
-
export declare const SelectField: <T>(props: BaseFieldProps & {
|
|
56
|
-
assistiveText?: string | undefined;
|
|
57
|
-
autoFocus?: boolean | undefined;
|
|
58
|
-
className?: string | undefined;
|
|
59
|
-
components?: any;
|
|
60
|
-
defaultValue?: SingleValue<T> | undefined;
|
|
61
|
-
errorMessage?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Configuration object passed to react-select createFilter function to create [custom filter
|
|
64
|
-
* logic](https://react-select.com/advanced#custom-filter-logic)
|
|
65
|
-
* @param ignoreCase - boolean (optional)
|
|
66
|
-
* @param ignoreAccents - boolean (optional)
|
|
67
|
-
* @param stringify (obj: any) => string (optional)
|
|
68
|
-
* @param trim - boolean (optional)
|
|
69
|
-
* @param matchForm - 'any' | 'start'
|
|
70
|
-
*/
|
|
71
|
-
filterConfig?: Parameters<typeof createFilter>[0];
|
|
72
|
-
/**
|
|
73
|
-
* Indicates that the Select can be cleared after selecting an Option.
|
|
74
|
-
*
|
|
75
|
-
* Setting this to true will display a small dismiss cross when a value is selected
|
|
76
|
-
*/
|
|
77
|
-
isClearable?: boolean | undefined;
|
|
78
|
-
isMulti?: boolean | undefined;
|
|
79
|
-
isSearchable?: boolean | undefined;
|
|
80
|
-
menuIsOpen?: boolean | undefined;
|
|
81
|
-
menuPlacement?: "auto" | "top" | "bottom" | undefined;
|
|
82
|
-
onBlur?: ((value: any) => void) | undefined;
|
|
83
|
-
onChange?: ((newValue: SingleValue<T> | MultiValue<T>, actionMeta: ActionMeta<T>) => void) | undefined;
|
|
84
|
-
onSelect?: ((value: SingleValue<T> | MultiValue<T>) => void) | undefined;
|
|
85
|
-
options?: OptionsOrGroups<T, GroupBase<T>> | undefined;
|
|
86
|
-
placeholder?: string | undefined;
|
|
87
|
-
prefix?: React.ReactNode;
|
|
88
|
-
styles?: any;
|
|
89
|
-
suffix?: React.ReactNode;
|
|
90
|
-
value?: SingleValue<T> | MultiValue<T> | undefined;
|
|
91
|
-
visualSize?: Size | undefined;
|
|
92
|
-
} & {
|
|
93
|
-
ref?: React.ForwardedRef<any> | undefined;
|
|
94
|
-
}) => ReturnType<typeof SelectFieldInner>;
|
|
95
|
-
export default SelectField;
|
package/cjs/switch/Switch.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React, { ChangeEvent } from 'react';
|
|
2
|
-
declare type Size = 'small' | 'medium';
|
|
3
|
-
export declare type SwitchProps = React.PropsWithRef<JSX.IntrinsicElements['label']> & {
|
|
4
|
-
/**
|
|
5
|
-
* Name of the input element
|
|
6
|
-
*/
|
|
7
|
-
name?: string;
|
|
8
|
-
/**
|
|
9
|
-
* State of the switch
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
checked?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Controls whether the input is disabled
|
|
15
|
-
*/
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Callback to fire when the state of the input changes
|
|
19
|
-
*/
|
|
20
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Controls whether the input label should be displayed on the right of the input, displayed on the left by default
|
|
23
|
-
*/
|
|
24
|
-
right?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Visual size of the switch
|
|
27
|
-
*/
|
|
28
|
-
size?: Size;
|
|
29
|
-
error?: boolean;
|
|
30
|
-
};
|
|
31
|
-
export declare const Switch: React.ForwardRefExoticComponent<Pick<SwitchProps, "error" | "key" | "name" | "right" | "disabled" | "size" | "checked" | "css" | keyof React.LabelHTMLAttributes<HTMLLabelElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SwitchProps } from './Switch';
|
|
3
|
-
declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>> & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SwitchContext: React.Context<SwitchContextProps | undefined>;
|
|
7
|
-
export declare const SwitchContextProvider: React.FC<{
|
|
8
|
-
value: SwitchContextProps;
|
|
9
|
-
}>;
|
|
10
|
-
declare const useSwitchContext: () => SwitchContextProps | undefined;
|
|
11
|
-
export default useSwitchContext;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BaseFieldProps } from '../types';
|
|
3
|
-
import { SwitchProps } from './Switch';
|
|
4
|
-
export declare type SwitchGroupProps = Pick<BaseFieldProps, 'label' | 'errorMessage' | 'hideAsterisk' | 'required'> & {
|
|
5
|
-
/**
|
|
6
|
-
* JSX enclosed by the group.
|
|
7
|
-
*/
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
} & Pick<SwitchProps, 'size'>;
|
|
10
|
-
export declare const SwitchGroup: ({ size, label, errorMessage, required, hideAsterisk, children, }: SwitchGroupProps) => JSX.Element;
|
package/cjs/switch/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Locale } from '@dfds-ui/react-components';
|
|
3
|
-
import { BaseFieldProps } from '../types';
|
|
4
|
-
export declare type TelFieldProps = BaseFieldProps & {
|
|
5
|
-
/**
|
|
6
|
-
* Class name to be added to the TelField.
|
|
7
|
-
*/
|
|
8
|
-
className?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Default value for the phone number
|
|
11
|
-
*/
|
|
12
|
-
defaultValue?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Default locale. Will set the matching country in the dropdown
|
|
15
|
-
*/
|
|
16
|
-
defaultLocale?: Locale;
|
|
17
|
-
/**
|
|
18
|
-
* Show trunk values (the local area code shown in parenthesis)
|
|
19
|
-
*/
|
|
20
|
-
showTrunkValues?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Makes value splitted so easier to convert to object
|
|
23
|
-
*/
|
|
24
|
-
splitValues?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Callback when value changes
|
|
27
|
-
*/
|
|
28
|
-
onChange?: (newValue: string) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Callback when blur
|
|
31
|
-
*/
|
|
32
|
-
onBlur?: () => void;
|
|
33
|
-
};
|
|
34
|
-
export declare type TelFieldElement = {
|
|
35
|
-
focus?: () => void;
|
|
36
|
-
};
|
|
37
|
-
export declare const TelField: React.ForwardRefExoticComponent<BaseFieldProps & {
|
|
38
|
-
/**
|
|
39
|
-
* Class name to be added to the TelField.
|
|
40
|
-
*/
|
|
41
|
-
className?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Default value for the phone number
|
|
44
|
-
*/
|
|
45
|
-
defaultValue?: string | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Default locale. Will set the matching country in the dropdown
|
|
48
|
-
*/
|
|
49
|
-
defaultLocale?: "en" | "nl-BE" | "bg-BG" | "pt-BR" | "en-CA" | "zh-CN" | "cs-CZ" | "da-DK" | "et-EE" | "fi-FI" | "fr-BE" | "fr-FR" | "de-DE" | "hu-HU" | "it-IT" | "ja-JP" | "lv-LV" | "lt-LT" | "nl-NL" | "nb-NO" | "pl-PL" | "ro-RO" | "ru-RU" | "sk-SK" | "ko-KR" | "es-ES" | "sv-SE" | "tr-TR" | "en-GB" | "en-US" | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Show trunk values (the local area code shown in parenthesis)
|
|
52
|
-
*/
|
|
53
|
-
showTrunkValues?: boolean | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Makes value splitted so easier to convert to object
|
|
56
|
-
*/
|
|
57
|
-
splitValues?: boolean | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Callback when value changes
|
|
60
|
-
*/
|
|
61
|
-
onChange?: ((newValue: string) => void) | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Callback when blur
|
|
64
|
-
*/
|
|
65
|
-
onBlur?: (() => void) | undefined;
|
|
66
|
-
} & React.RefAttributes<TelFieldElement>>;
|
|
67
|
-
export default TelField;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseFieldProps, Size } from '../types';
|
|
3
|
-
export declare type TextFieldProps = BaseFieldProps & {
|
|
4
|
-
autoFocus?: boolean;
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
prefix?: React.ReactNode;
|
|
7
|
-
suffix?: React.ReactNode;
|
|
8
|
-
icon?: React.ElementType;
|
|
9
|
-
/**
|
|
10
|
-
* Element to be placed after the input element.
|
|
11
|
-
*
|
|
12
|
-
* Useful for adding a button next to the TextField.
|
|
13
|
-
*/
|
|
14
|
-
adornment?: React.ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
value?: string;
|
|
17
|
-
visualSize?: Size;
|
|
18
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
|
-
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
-
onBlur?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
-
inputType?: 'email' | 'text' | 'tel' | 'time' | 'url' | 'date' | 'file' | 'number' | 'search' | 'password';
|
|
22
|
-
autoComplete?: string;
|
|
23
|
-
minValue?: string;
|
|
24
|
-
maxValue?: string;
|
|
25
|
-
maxLength?: number;
|
|
26
|
-
minLength?: number;
|
|
27
|
-
readOnly?: boolean;
|
|
28
|
-
step?: number | 'any';
|
|
29
|
-
};
|
|
30
|
-
export declare const TextField: React.ForwardRefExoticComponent<BaseFieldProps & {
|
|
31
|
-
autoFocus?: boolean | undefined;
|
|
32
|
-
defaultValue?: string | undefined;
|
|
33
|
-
prefix?: React.ReactNode;
|
|
34
|
-
suffix?: React.ReactNode;
|
|
35
|
-
icon?: React.ElementType<any> | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Element to be placed after the input element.
|
|
38
|
-
*
|
|
39
|
-
* Useful for adding a button next to the TextField.
|
|
40
|
-
*/
|
|
41
|
-
adornment?: React.ReactNode;
|
|
42
|
-
className?: string | undefined;
|
|
43
|
-
value?: string | undefined;
|
|
44
|
-
visualSize?: Size | undefined;
|
|
45
|
-
onChange?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
46
|
-
onFocus?: ((event: React.FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
47
|
-
onBlur?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
48
|
-
inputType?: "number" | "search" | "file" | "password" | "url" | "time" | "text" | "tel" | "email" | "date" | undefined;
|
|
49
|
-
autoComplete?: string | undefined;
|
|
50
|
-
minValue?: string | undefined;
|
|
51
|
-
maxValue?: string | undefined;
|
|
52
|
-
maxLength?: number | undefined;
|
|
53
|
-
minLength?: number | undefined;
|
|
54
|
-
readOnly?: boolean | undefined;
|
|
55
|
-
step?: number | "any" | undefined;
|
|
56
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
57
|
-
export default TextField;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React, { ChangeEvent } from 'react';
|
|
2
|
-
import { BaseFieldProps, Size } from '../types';
|
|
3
|
-
export declare const inputPaddings: {
|
|
4
|
-
small: {
|
|
5
|
-
vertical: number;
|
|
6
|
-
horizontal: number;
|
|
7
|
-
};
|
|
8
|
-
medium: {
|
|
9
|
-
vertical: number;
|
|
10
|
-
horizontal: number;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
declare type FieldSize = Extract<Size, 'small' | 'medium'>;
|
|
14
|
-
export declare type TextareaFieldProps = BaseFieldProps & {
|
|
15
|
-
defaultValue?: string;
|
|
16
|
-
size?: FieldSize;
|
|
17
|
-
/**
|
|
18
|
-
* Set a limit to the amount of characters the user may add. This number is also displayed on the bottom counter by default.
|
|
19
|
-
*/
|
|
20
|
-
maxValueLength?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to show the length counter at the bottom right
|
|
23
|
-
*/
|
|
24
|
-
showLengthCounter?: boolean;
|
|
25
|
-
value?: string;
|
|
26
|
-
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
27
|
-
rows?: number;
|
|
28
|
-
};
|
|
29
|
-
export declare const TextareaField: React.ForwardRefExoticComponent<BaseFieldProps & {
|
|
30
|
-
defaultValue?: string | undefined;
|
|
31
|
-
size?: FieldSize | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Set a limit to the amount of characters the user may add. This number is also displayed on the bottom counter by default.
|
|
34
|
-
*/
|
|
35
|
-
maxValueLength?: number | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Whether to show the length counter at the bottom right
|
|
38
|
-
*/
|
|
39
|
-
showLengthCounter?: boolean | undefined;
|
|
40
|
-
value?: string | undefined;
|
|
41
|
-
onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
42
|
-
rows?: number | undefined;
|
|
43
|
-
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
44
|
-
export {};
|
package/cjs/types/field.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Generic FieldProps
|
|
4
|
-
*/
|
|
5
|
-
export declare type BaseFieldProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Assistive text describing the field.
|
|
8
|
-
*
|
|
9
|
-
* NB! If space is needed for alignment you can use a space char (' ') here.
|
|
10
|
-
*/
|
|
11
|
-
assistiveText?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Indicates that the field is disabled.
|
|
14
|
-
*/
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Sets an error message (if assistive text applies it will be replaced by this).
|
|
18
|
-
*/
|
|
19
|
-
errorMessage?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Additional help.
|
|
22
|
-
*
|
|
23
|
-
* **This is an experimental prop and the behavior might change.**
|
|
24
|
-
*/
|
|
25
|
-
help?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Controls the placement of the help icon.
|
|
28
|
-
*
|
|
29
|
-
* **This is an experimental prop and the behavior might change.**
|
|
30
|
-
*/
|
|
31
|
-
helpPlacement?: 'top' | 'right';
|
|
32
|
-
/**
|
|
33
|
-
* If set to `true` the asterisk will never be shown.
|
|
34
|
-
*/
|
|
35
|
-
hideAsterisk?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Field label.
|
|
38
|
-
*/
|
|
39
|
-
label?: ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Field name.
|
|
42
|
-
*/
|
|
43
|
-
name: string;
|
|
44
|
-
/**
|
|
45
|
-
* Hint for the field. For Input elements this maps to the `placeholder` attribute.
|
|
46
|
-
*/
|
|
47
|
-
placeholder?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates if the field is required. Will add an asterisk to the label unless `hideAsterisk` is set to `true`.
|
|
50
|
-
*/
|
|
51
|
-
required?: boolean;
|
|
52
|
-
};
|
package/cjs/types/index.d.ts
DELETED
package/cjs/types/size.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type Size = 'small' | 'medium' | 'large';
|