@dfds-ui/forms 2.2.0-alpha.07a3a716 → 2.2.0-alpha.32eece3d
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/assistive-text/AssistiveText.d.ts +1 -1
- package/asterisk/Asterisk.d.ts +2 -2
- package/checkbox/CheckboxContext.d.ts +1 -0
- package/checkbox/CheckboxGroup.d.ts +2 -2
- package/cjs/assistive-text/AssistiveText.d.ts +1 -1
- package/cjs/asterisk/Asterisk.d.ts +2 -2
- package/cjs/checkbox/CheckboxContext.d.ts +1 -0
- package/cjs/checkbox/CheckboxGroup.d.ts +2 -2
- package/cjs/enhanced/EnhancedField.d.ts +1 -1
- package/cjs/error-text/ErrorText.d.ts +1 -1
- package/cjs/field-wrap/FieldWrap.d.ts +2 -2
- package/cjs/help-icon/HelpIcon.d.ts +2 -2
- package/cjs/label/Label.d.ts +1 -1
- package/cjs/radio/RadioContext.d.ts +1 -0
- package/cjs/radio/RadioGroup.d.ts +2 -2
- package/cjs/rating/Rating.d.ts +1 -1
- package/cjs/select-field/AsyncSelectField.d.ts +88 -80
- package/cjs/select-field/CreatableSelectField.d.ts +89 -81
- package/cjs/select-field/NativeSelectField.d.ts +1 -1
- package/cjs/select-field/SelectField.d.ts +4 -4
- package/cjs/switch/Switch.d.ts +1 -1
- package/cjs/switch/SwitchContext.d.ts +1 -0
- package/cjs/switch/SwitchGroup.d.ts +2 -2
- package/cjs/text-field/TextField.d.ts +2 -2
- package/enhanced/EnhancedField.d.ts +1 -1
- package/error-text/ErrorText.d.ts +1 -1
- package/field-wrap/FieldWrap.d.ts +2 -2
- package/help-icon/HelpIcon.d.ts +2 -2
- package/label/Label.d.ts +1 -1
- package/package.json +9 -9
- package/radio/RadioContext.d.ts +1 -0
- package/radio/RadioGroup.d.ts +2 -2
- package/rating/Rating.d.ts +1 -1
- package/select-field/AsyncSelectField.d.ts +88 -80
- package/select-field/CreatableSelectField.d.ts +89 -81
- package/select-field/NativeSelectField.d.ts +1 -1
- package/select-field/SelectField.d.ts +4 -4
- package/switch/Switch.d.ts +1 -1
- package/switch/SwitchContext.d.ts +1 -0
- package/switch/SwitchGroup.d.ts +2 -2
- package/text-field/TextField.d.ts +2 -2
|
@@ -5,5 +5,5 @@ export declare type AssistiveTextProps = {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const AssistiveText: ({ id, disabled, className, children }: AssistiveTextProps) => JSX.Element;
|
|
8
|
+
export declare const AssistiveText: ({ id, disabled, className, children }: AssistiveTextProps) => React.JSX.Element;
|
|
9
9
|
export default AssistiveText;
|
package/asterisk/Asterisk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare type AsteriskProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Class name to be assigned to the component
|
|
@@ -7,5 +7,5 @@ export declare type AsteriskProps = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const Asterisk: ({ ...props }: {
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default Asterisk;
|
|
@@ -8,6 +8,7 @@ declare type CheckboxContextProps = {
|
|
|
8
8
|
export declare const CheckboxContext: React.Context<CheckboxContextProps | undefined>;
|
|
9
9
|
export declare const CheckboxContextProvider: React.FC<{
|
|
10
10
|
value: CheckboxContextProps;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}>;
|
|
12
13
|
declare const useCheckboxContext: () => CheckboxContextProps | undefined;
|
|
13
14
|
export default useCheckboxContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps } from '../types';
|
|
3
3
|
import { CheckboxProps } from './Checkbox';
|
|
4
4
|
export declare type CheckboxGroupProps = Pick<BaseFieldProps, 'help' | 'label' | 'required' | 'hideAsterisk' | 'disabled' | 'errorMessage' | 'assistiveText'> & Pick<CheckboxProps, 'visualSize'> & {
|
|
@@ -17,4 +17,4 @@ export declare type CheckboxGroupProps = Pick<BaseFieldProps, 'help' | 'label' |
|
|
|
17
17
|
className?: string;
|
|
18
18
|
column?: boolean;
|
|
19
19
|
};
|
|
20
|
-
export declare const CheckboxGroup: ({ visualSize, help, label, children, column, assistiveText, errorMessage, error, required, className, disabled, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
20
|
+
export declare const CheckboxGroup: ({ visualSize, help, label, children, column, assistiveText, errorMessage, error, required, className, disabled, ...rest }: CheckboxGroupProps) => React.JSX.Element;
|
|
@@ -5,5 +5,5 @@ export declare type AssistiveTextProps = {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const AssistiveText: ({ id, disabled, className, children }: AssistiveTextProps) => JSX.Element;
|
|
8
|
+
export declare const AssistiveText: ({ id, disabled, className, children }: AssistiveTextProps) => React.JSX.Element;
|
|
9
9
|
export default AssistiveText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare type AsteriskProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Class name to be assigned to the component
|
|
@@ -7,5 +7,5 @@ export declare type AsteriskProps = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const Asterisk: ({ ...props }: {
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default Asterisk;
|
|
@@ -8,6 +8,7 @@ declare type CheckboxContextProps = {
|
|
|
8
8
|
export declare const CheckboxContext: React.Context<CheckboxContextProps | undefined>;
|
|
9
9
|
export declare const CheckboxContextProvider: React.FC<{
|
|
10
10
|
value: CheckboxContextProps;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}>;
|
|
12
13
|
declare const useCheckboxContext: () => CheckboxContextProps | undefined;
|
|
13
14
|
export default useCheckboxContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps } from '../types';
|
|
3
3
|
import { CheckboxProps } from './Checkbox';
|
|
4
4
|
export declare type CheckboxGroupProps = Pick<BaseFieldProps, 'help' | 'label' | 'required' | 'hideAsterisk' | 'disabled' | 'errorMessage' | 'assistiveText'> & Pick<CheckboxProps, 'visualSize'> & {
|
|
@@ -17,4 +17,4 @@ export declare type CheckboxGroupProps = Pick<BaseFieldProps, 'help' | 'label' |
|
|
|
17
17
|
className?: string;
|
|
18
18
|
column?: boolean;
|
|
19
19
|
};
|
|
20
|
-
export declare const CheckboxGroup: ({ visualSize, help, label, children, column, assistiveText, errorMessage, error, required, className, disabled, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
20
|
+
export declare const CheckboxGroup: ({ visualSize, help, label, children, column, assistiveText, errorMessage, error, required, className, disabled, ...rest }: CheckboxGroupProps) => React.JSX.Element;
|
|
@@ -16,5 +16,5 @@ export declare type EnhancedFieldProps = Omit<ReactInputProps, 'size' | 'css'> &
|
|
|
16
16
|
className?: string;
|
|
17
17
|
onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const EnhancedField: React.ForwardRefExoticComponent<
|
|
19
|
+
export declare const EnhancedField: React.ForwardRefExoticComponent<Omit<EnhancedFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
20
20
|
export default EnhancedField;
|
|
@@ -4,5 +4,5 @@ export declare type ErrorTextProps = {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const ErrorText: ({ id, className, children }: ErrorTextProps) => JSX.Element;
|
|
7
|
+
export declare const ErrorText: ({ id, className, children }: ErrorTextProps) => React.JSX.Element;
|
|
8
8
|
export default ErrorText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps, Size } from '../types';
|
|
3
3
|
export declare type FieldWrapProps = BaseFieldProps & {
|
|
4
4
|
size: Size;
|
|
@@ -7,4 +7,4 @@ export declare type FieldWrapProps = BaseFieldProps & {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
export declare const FieldWrap: ({ name, assistiveText, errorMessage, size, required, hideAsterisk, label, help, extraAssistiveText, disabled, className, children, }: FieldWrapProps) => JSX.Element;
|
|
10
|
+
export declare const FieldWrap: ({ name, assistiveText, errorMessage, size, required, hideAsterisk, label, help, extraAssistiveText, disabled, className, children, }: FieldWrapProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare type HelpIconProps = {
|
|
3
3
|
content: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const HelpIcon: ({ content, className, disabled }: HelpIconProps) => JSX.Element;
|
|
7
|
+
export declare const HelpIcon: ({ content, className, disabled }: HelpIconProps) => React.JSX.Element;
|
|
8
8
|
export default HelpIcon;
|
package/cjs/label/Label.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export declare type LabelProps = {
|
|
|
8
8
|
visualSize?: Size;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
} & React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
|
|
11
|
-
export declare const Label: ({ visualSize, required, hideAsterisk, disabled, className, children, ...rest }: LabelProps) => JSX.Element;
|
|
11
|
+
export declare const Label: ({ visualSize, required, hideAsterisk, disabled, className, children, ...rest }: LabelProps) => React.JSX.Element;
|
|
@@ -8,6 +8,7 @@ declare type RadioContextProps = {
|
|
|
8
8
|
export declare const RadioContext: React.Context<RadioContextProps | undefined>;
|
|
9
9
|
export declare const RadioContextProvider: React.FC<{
|
|
10
10
|
value: RadioContextProps;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}>;
|
|
12
13
|
declare const useRadioContext: () => RadioContextProps | undefined;
|
|
13
14
|
export default useRadioContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps } from '../types';
|
|
3
3
|
import { RadioProps } from './Radio';
|
|
4
4
|
export declare type RadioGroupProps = Pick<BaseFieldProps, 'help' | 'label' | 'required' | 'hideAsterisk' | 'disabled' | 'errorMessage'> & Pick<RadioProps, 'visualSize'> & {
|
|
@@ -9,4 +9,4 @@ export declare type RadioGroupProps = Pick<BaseFieldProps, 'help' | 'label' | 'r
|
|
|
9
9
|
className?: string;
|
|
10
10
|
column?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const RadioGroup: ({ visualSize, label, children, column, errorMessage, help, required, hideAsterisk, className, disabled, }: RadioGroupProps) => JSX.Element;
|
|
12
|
+
export declare const RadioGroup: ({ visualSize, label, children, column, errorMessage, help, required, hideAsterisk, className, disabled, }: RadioGroupProps) => React.JSX.Element;
|
package/cjs/rating/Rating.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export declare type RatingFieldProps = RatingProps & Omit<FieldWrapProps, 'size'
|
|
|
49
49
|
/**
|
|
50
50
|
* The `RatingField` component will allow the user to provide feedback by ranking things on a specified scale.
|
|
51
51
|
*/
|
|
52
|
-
export declare const RatingField: React.ForwardRefExoticComponent<RatingProps & Omit<FieldWrapProps, "children" | "size" | "
|
|
52
|
+
export declare const RatingField: React.ForwardRefExoticComponent<RatingProps & Omit<FieldWrapProps, "children" | "size" | "helpPlacement" | "placeholder"> & {
|
|
53
53
|
size: Exclude<Size, 'large'>;
|
|
54
54
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
55
55
|
export default RatingField;
|
|
@@ -8,88 +8,96 @@ export declare type AsyncSelectFieldProps<Option, IsMulti extends boolean, Group
|
|
|
8
8
|
value?: any;
|
|
9
9
|
visualSize?: Size;
|
|
10
10
|
};
|
|
11
|
-
declare const AsyncSelectFieldInner: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ assistiveText, components, disabled, errorMessage, help, helpPlacement, hideAsterisk, isClearable, label, name, onBlur, onChange, required, visualSize, ...rest }: AsyncSelectFieldProps<Option, IsMulti, Group>, ref: React.ForwardedRef<any>) => JSX.Element;
|
|
12
|
-
export declare const AsyncSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
11
|
+
declare const AsyncSelectFieldInner: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ assistiveText, components, disabled, errorMessage, help, helpPlacement, hideAsterisk, isClearable, label, name, onBlur, onChange, required, visualSize, ...rest }: AsyncSelectFieldProps<Option, IsMulti, Group>, ref: React.ForwardedRef<any>) => React.JSX.Element;
|
|
12
|
+
export declare const AsyncSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "className" | "value" | "form" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "name" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
13
|
+
tabIndex?: number | undefined;
|
|
14
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
15
|
+
placeholder?: React.ReactNode;
|
|
16
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
17
|
+
blurInputOnSelect?: boolean | undefined;
|
|
18
|
+
captureMenuScroll?: boolean | undefined;
|
|
19
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
20
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
21
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
22
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
23
|
+
escapeClearsValue?: boolean | undefined;
|
|
24
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
25
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
26
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
27
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
28
|
+
isDisabled?: boolean | undefined;
|
|
29
|
+
isLoading?: boolean | undefined;
|
|
30
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
31
|
+
isMulti?: IsMulti | undefined;
|
|
32
|
+
isRtl?: boolean | undefined;
|
|
33
|
+
isSearchable?: boolean | undefined;
|
|
34
|
+
loadingMessage?: ((obj: {
|
|
35
|
+
inputValue: string;
|
|
36
|
+
}) => React.ReactNode) | undefined;
|
|
37
|
+
minMenuHeight?: number | undefined;
|
|
38
|
+
maxMenuHeight?: number | undefined;
|
|
39
|
+
menuIsOpen?: boolean | undefined;
|
|
40
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
41
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
42
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
43
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
44
|
+
noOptionsMessage?: ((obj: {
|
|
45
|
+
inputValue: string;
|
|
46
|
+
}) => React.ReactNode) | undefined;
|
|
47
|
+
openMenuOnFocus?: boolean | undefined;
|
|
48
|
+
openMenuOnClick?: boolean | undefined;
|
|
49
|
+
options?: import("react-select").OptionsOrGroups<Option, Group> | undefined;
|
|
50
|
+
pageSize?: number | undefined;
|
|
51
|
+
screenReaderStatus?: ((obj: {
|
|
47
52
|
count: number;
|
|
48
|
-
}) => string;
|
|
49
|
-
styles
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'aria-live'
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
53
|
+
}) => string) | undefined;
|
|
54
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
55
|
+
tabSelectsValue?: boolean | undefined;
|
|
56
|
+
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "className" | "value" | "form" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "name" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
57
|
+
tabIndex?: number | undefined;
|
|
58
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
+
placeholder?: React.ReactNode;
|
|
60
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
61
|
+
blurInputOnSelect?: boolean | undefined;
|
|
62
|
+
captureMenuScroll?: boolean | undefined;
|
|
63
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
64
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
65
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
66
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
67
|
+
escapeClearsValue?: boolean | undefined;
|
|
68
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
69
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
70
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
71
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
72
|
+
isDisabled?: boolean | undefined;
|
|
73
|
+
isLoading?: boolean | undefined;
|
|
74
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
75
|
+
isMulti?: IsMulti | undefined;
|
|
76
|
+
isRtl?: boolean | undefined;
|
|
77
|
+
isSearchable?: boolean | undefined;
|
|
78
|
+
loadingMessage?: ((obj: {
|
|
79
|
+
inputValue: string;
|
|
80
|
+
}) => React.ReactNode) | undefined;
|
|
81
|
+
minMenuHeight?: number | undefined;
|
|
82
|
+
maxMenuHeight?: number | undefined;
|
|
83
|
+
menuIsOpen?: boolean | undefined;
|
|
84
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
85
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
86
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
87
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
88
|
+
noOptionsMessage?: ((obj: {
|
|
89
|
+
inputValue: string;
|
|
90
|
+
}) => React.ReactNode) | undefined;
|
|
91
|
+
openMenuOnFocus?: boolean | undefined;
|
|
92
|
+
openMenuOnClick?: boolean | undefined;
|
|
93
|
+
options?: import("react-select").OptionsOrGroups<Option, Group> | undefined;
|
|
94
|
+
pageSize?: number | undefined;
|
|
95
|
+
screenReaderStatus?: ((obj: {
|
|
87
96
|
count: number;
|
|
88
|
-
}) => string;
|
|
89
|
-
styles
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useAsync").AsyncAdditionalProps<Option, Group> & {
|
|
97
|
+
}) => string) | undefined;
|
|
98
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
99
|
+
tabSelectsValue?: boolean | undefined;
|
|
100
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useAsync").AsyncAdditionalProps<Option, Group> & {
|
|
93
101
|
isClearable?: boolean | undefined;
|
|
94
102
|
value?: any;
|
|
95
103
|
visualSize?: Size | undefined;
|
|
@@ -41,88 +41,96 @@ export declare type CreatableSelectFieldProps<Option, IsMulti extends boolean, G
|
|
|
41
41
|
value?: SingleValue<Option> | MultiValue<Option>;
|
|
42
42
|
visualSize?: Size;
|
|
43
43
|
};
|
|
44
|
-
declare const CreatableSelectFieldInner: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ assistiveText, components, defaultValue, disabled, errorMessage, filterConfig, help, helpPlacement, hideAsterisk, isClearable, isMulti, isSearchable, label, name, onBlur, onChange, onSelect, options, placeholder, required, styles, value, visualSize, ...rest }: CreatableSelectFieldProps<Option, IsMulti, Group>, ref: React.ForwardedRef<any>) => JSX.Element;
|
|
45
|
-
export declare const CreatableSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
44
|
+
declare const CreatableSelectFieldInner: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ assistiveText, components, defaultValue, disabled, errorMessage, filterConfig, help, helpPlacement, hideAsterisk, isClearable, isMulti, isSearchable, label, name, onBlur, onChange, onSelect, options, placeholder, required, styles, value, visualSize, ...rest }: CreatableSelectFieldProps<Option, IsMulti, Group>, ref: React.ForwardedRef<any>) => React.JSX.Element;
|
|
45
|
+
export declare const CreatableSelectField: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: BaseFieldProps & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "className" | "value" | "form" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "name" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
46
|
+
tabIndex?: number | undefined;
|
|
47
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
48
|
+
placeholder?: React.ReactNode;
|
|
49
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
50
|
+
blurInputOnSelect?: boolean | undefined;
|
|
51
|
+
captureMenuScroll?: boolean | undefined;
|
|
52
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
53
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
54
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
55
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
56
|
+
escapeClearsValue?: boolean | undefined;
|
|
57
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
58
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
59
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
60
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
61
|
+
isDisabled?: boolean | undefined;
|
|
62
|
+
isLoading?: boolean | undefined;
|
|
63
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
64
|
+
isMulti?: IsMulti | undefined;
|
|
65
|
+
isRtl?: boolean | undefined;
|
|
66
|
+
isSearchable?: boolean | undefined;
|
|
67
|
+
loadingMessage?: ((obj: {
|
|
68
|
+
inputValue: string;
|
|
69
|
+
}) => React.ReactNode) | undefined;
|
|
70
|
+
minMenuHeight?: number | undefined;
|
|
71
|
+
maxMenuHeight?: number | undefined;
|
|
72
|
+
menuIsOpen?: boolean | undefined;
|
|
73
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
74
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
75
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
76
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
77
|
+
noOptionsMessage?: ((obj: {
|
|
78
|
+
inputValue: string;
|
|
79
|
+
}) => React.ReactNode) | undefined;
|
|
80
|
+
openMenuOnFocus?: boolean | undefined;
|
|
81
|
+
openMenuOnClick?: boolean | undefined;
|
|
82
|
+
options?: OptionsOrGroups<Option, Group> | undefined;
|
|
83
|
+
pageSize?: number | undefined;
|
|
84
|
+
screenReaderStatus?: ((obj: {
|
|
80
85
|
count: number;
|
|
81
|
-
}) => string;
|
|
82
|
-
styles
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
'aria-live'
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
86
|
+
}) => string) | undefined;
|
|
87
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
88
|
+
tabSelectsValue?: boolean | undefined;
|
|
89
|
+
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "className" | "value" | "form" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "name" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
90
|
+
tabIndex?: number | undefined;
|
|
91
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
92
|
+
placeholder?: React.ReactNode;
|
|
93
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
94
|
+
blurInputOnSelect?: boolean | undefined;
|
|
95
|
+
captureMenuScroll?: boolean | undefined;
|
|
96
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
97
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
98
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
99
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
100
|
+
escapeClearsValue?: boolean | undefined;
|
|
101
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
102
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
103
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
104
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
105
|
+
isDisabled?: boolean | undefined;
|
|
106
|
+
isLoading?: boolean | undefined;
|
|
107
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
108
|
+
isMulti?: IsMulti | undefined;
|
|
109
|
+
isRtl?: boolean | undefined;
|
|
110
|
+
isSearchable?: boolean | undefined;
|
|
111
|
+
loadingMessage?: ((obj: {
|
|
112
|
+
inputValue: string;
|
|
113
|
+
}) => React.ReactNode) | undefined;
|
|
114
|
+
minMenuHeight?: number | undefined;
|
|
115
|
+
maxMenuHeight?: number | undefined;
|
|
116
|
+
menuIsOpen?: boolean | undefined;
|
|
117
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
118
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
119
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
120
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
121
|
+
noOptionsMessage?: ((obj: {
|
|
122
|
+
inputValue: string;
|
|
123
|
+
}) => React.ReactNode) | undefined;
|
|
124
|
+
openMenuOnFocus?: boolean | undefined;
|
|
125
|
+
openMenuOnClick?: boolean | undefined;
|
|
126
|
+
options?: OptionsOrGroups<Option, Group> | undefined;
|
|
127
|
+
pageSize?: number | undefined;
|
|
128
|
+
screenReaderStatus?: ((obj: {
|
|
120
129
|
count: number;
|
|
121
|
-
}) => string;
|
|
122
|
-
styles
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<Option, Group> & {
|
|
130
|
+
}) => string) | undefined;
|
|
131
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
132
|
+
tabSelectsValue?: boolean | undefined;
|
|
133
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<Option, Group> & {
|
|
126
134
|
assistiveText?: string | undefined;
|
|
127
135
|
autoFocus?: boolean | undefined;
|
|
128
136
|
className?: string | undefined;
|
|
@@ -148,7 +156,7 @@ export declare const CreatableSelectField: <Option, IsMulti extends boolean, Gro
|
|
|
148
156
|
isMulti?: boolean | undefined;
|
|
149
157
|
isSearchable?: boolean | undefined;
|
|
150
158
|
menuIsOpen?: boolean | undefined;
|
|
151
|
-
menuPlacement?: "
|
|
159
|
+
menuPlacement?: "top" | "bottom" | "auto" | undefined;
|
|
152
160
|
onBlur?: ((value: any) => void) | undefined;
|
|
153
161
|
onChange?: ((newValue: MultiValue<Option> | SingleValue<Option>, actionMeta: ActionMeta<Option>) => void) | undefined;
|
|
154
162
|
onSelect?: ((value: MultiValue<Option> | SingleValue<Option>) => void) | undefined;
|
|
@@ -4,5 +4,5 @@ export declare type NativeSelectFieldProps = BaseFieldProps & React.ComponentPro
|
|
|
4
4
|
className?: string;
|
|
5
5
|
visualSize?: Size;
|
|
6
6
|
};
|
|
7
|
-
export declare const NativeSelectField: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const NativeSelectField: React.ForwardRefExoticComponent<Omit<NativeSelectFieldProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
8
8
|
export default NativeSelectField;
|