@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.
Files changed (41) hide show
  1. package/assistive-text/AssistiveText.d.ts +1 -1
  2. package/asterisk/Asterisk.d.ts +2 -2
  3. package/checkbox/CheckboxContext.d.ts +1 -0
  4. package/checkbox/CheckboxGroup.d.ts +2 -2
  5. package/cjs/assistive-text/AssistiveText.d.ts +1 -1
  6. package/cjs/asterisk/Asterisk.d.ts +2 -2
  7. package/cjs/checkbox/CheckboxContext.d.ts +1 -0
  8. package/cjs/checkbox/CheckboxGroup.d.ts +2 -2
  9. package/cjs/enhanced/EnhancedField.d.ts +1 -1
  10. package/cjs/error-text/ErrorText.d.ts +1 -1
  11. package/cjs/field-wrap/FieldWrap.d.ts +2 -2
  12. package/cjs/help-icon/HelpIcon.d.ts +2 -2
  13. package/cjs/label/Label.d.ts +1 -1
  14. package/cjs/radio/RadioContext.d.ts +1 -0
  15. package/cjs/radio/RadioGroup.d.ts +2 -2
  16. package/cjs/rating/Rating.d.ts +1 -1
  17. package/cjs/select-field/AsyncSelectField.d.ts +88 -80
  18. package/cjs/select-field/CreatableSelectField.d.ts +89 -81
  19. package/cjs/select-field/NativeSelectField.d.ts +1 -1
  20. package/cjs/select-field/SelectField.d.ts +4 -4
  21. package/cjs/switch/Switch.d.ts +1 -1
  22. package/cjs/switch/SwitchContext.d.ts +1 -0
  23. package/cjs/switch/SwitchGroup.d.ts +2 -2
  24. package/cjs/text-field/TextField.d.ts +2 -2
  25. package/enhanced/EnhancedField.d.ts +1 -1
  26. package/error-text/ErrorText.d.ts +1 -1
  27. package/field-wrap/FieldWrap.d.ts +2 -2
  28. package/help-icon/HelpIcon.d.ts +2 -2
  29. package/label/Label.d.ts +1 -1
  30. package/package.json +9 -9
  31. package/radio/RadioContext.d.ts +1 -0
  32. package/radio/RadioGroup.d.ts +2 -2
  33. package/rating/Rating.d.ts +1 -1
  34. package/select-field/AsyncSelectField.d.ts +88 -80
  35. package/select-field/CreatableSelectField.d.ts +89 -81
  36. package/select-field/NativeSelectField.d.ts +1 -1
  37. package/select-field/SelectField.d.ts +4 -4
  38. package/switch/Switch.d.ts +1 -1
  39. package/switch/SwitchContext.d.ts +1 -0
  40. package/switch/SwitchGroup.d.ts +2 -2
  41. package/text-field/TextField.d.ts +2 -2
@@ -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" | "name" | "value" | "form" | "className" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "tabIndex" | "options" | "placeholder" | "aria-live" | "components" | "isOptionDisabled" | "isRtl" | "styles" | "isDisabled" | "isMulti" | "controlShouldRenderValue" | "menuPlacement" | "menuPosition" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuIsOpen" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
46
- 'aria-live': string;
47
- backspaceRemovesValue: boolean;
48
- blurInputOnSelect: boolean;
49
- captureMenuScroll: boolean;
50
- closeMenuOnSelect: boolean;
51
- closeMenuOnScroll: boolean;
52
- components: {};
53
- controlShouldRenderValue: boolean;
54
- escapeClearsValue: boolean;
55
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
56
- formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
57
- getOptionLabel: <Option_2>(option: Option_2) => string;
58
- getOptionValue: <Option_3>(option: Option_3) => string;
59
- isDisabled: boolean;
60
- isLoading: boolean;
61
- isMulti: boolean;
62
- isRtl: boolean;
63
- isSearchable: boolean;
64
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
65
- loadingMessage: () => string;
66
- maxMenuHeight: number;
67
- minMenuHeight: number;
68
- menuIsOpen: boolean;
69
- menuPlacement: string;
70
- menuPosition: string;
71
- menuShouldBlockScroll: boolean;
72
- menuShouldScrollIntoView: boolean;
73
- noOptionsMessage: () => string;
74
- openMenuOnFocus: boolean;
75
- openMenuOnClick: boolean;
76
- options: never[];
77
- pageSize: number;
78
- placeholder: string;
79
- screenReaderStatus: ({ count }: {
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
- tabIndex: number;
84
- tabSelectsValue: boolean;
85
- }, never>>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "name" | "value" | "form" | "className" | "autoFocus" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "theme" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "tabIndex" | "options" | "placeholder" | "aria-live" | "components" | "isOptionDisabled" | "isRtl" | "styles" | "isDisabled" | "isMulti" | "controlShouldRenderValue" | "menuPlacement" | "menuPosition" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuIsOpen" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
86
- 'aria-live': string;
87
- backspaceRemovesValue: boolean;
88
- blurInputOnSelect: boolean;
89
- captureMenuScroll: boolean;
90
- closeMenuOnSelect: boolean;
91
- closeMenuOnScroll: boolean;
92
- components: {};
93
- controlShouldRenderValue: boolean;
94
- escapeClearsValue: boolean;
95
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
96
- formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
97
- getOptionLabel: <Option_2>(option: Option_2) => string;
98
- getOptionValue: <Option_3>(option: Option_3) => string;
99
- isDisabled: boolean;
100
- isLoading: boolean;
101
- isMulti: boolean;
102
- isRtl: boolean;
103
- isSearchable: boolean;
104
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
105
- loadingMessage: () => string;
106
- maxMenuHeight: number;
107
- minMenuHeight: number;
108
- menuIsOpen: boolean;
109
- menuPlacement: string;
110
- menuPosition: string;
111
- menuShouldBlockScroll: boolean;
112
- menuShouldScrollIntoView: boolean;
113
- noOptionsMessage: () => string;
114
- openMenuOnFocus: boolean;
115
- openMenuOnClick: boolean;
116
- options: never[];
117
- pageSize: number;
118
- placeholder: string;
119
- screenReaderStatus: ({ count }: {
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
- tabIndex: number;
124
- tabSelectsValue: boolean;
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?: "auto" | "top" | "bottom" | undefined;
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<Pick<NativeSelectFieldProps, "required" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "help" | "autoComplete" | "autoFocus" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "hideAsterisk" | "assistiveText" | "errorMessage" | "visualSize" | "helpPlacement"> & React.RefAttributes<HTMLSelectElement>>;
7
+ export declare const NativeSelectField: React.ForwardRefExoticComponent<Omit<NativeSelectFieldProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
8
8
  export default NativeSelectField;
@@ -5,14 +5,14 @@ export declare type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'siz
5
5
  export declare type Size = 'small' | 'medium' | 'large';
6
6
  export declare const ReactSelectWrapper: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: React.ElementType<any> | undefined;
8
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
9
9
  } & {
10
10
  error?: boolean | undefined;
11
11
  size?: string | undefined;
12
12
  arrow?: boolean | undefined;
13
13
  selected?: boolean | undefined;
14
14
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
- export declare const Menu: (props: any) => JSX.Element;
15
+ export declare const Menu: (props: any) => React.JSX.Element;
16
16
  export declare type SelectFieldProps<T = string> = BaseFieldProps & {
17
17
  assistiveText?: string;
18
18
  autoFocus?: boolean;
@@ -51,7 +51,7 @@ export declare type SelectFieldProps<T = string> = BaseFieldProps & {
51
51
  value?: SingleValue<T> | MultiValue<T>;
52
52
  visualSize?: Size;
53
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;
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>): React.JSX.Element;
55
55
  export declare const SelectField: <T>(props: BaseFieldProps & {
56
56
  assistiveText?: string | undefined;
57
57
  autoFocus?: boolean | undefined;
@@ -78,7 +78,7 @@ export declare const SelectField: <T>(props: BaseFieldProps & {
78
78
  isMulti?: boolean | undefined;
79
79
  isSearchable?: boolean | undefined;
80
80
  menuIsOpen?: boolean | undefined;
81
- menuPlacement?: "auto" | "top" | "bottom" | undefined;
81
+ menuPlacement?: "top" | "bottom" | "auto" | undefined;
82
82
  onBlur?: ((value: any) => void) | undefined;
83
83
  onChange?: ((newValue: SingleValue<T> | MultiValue<T>, actionMeta: ActionMeta<T>) => void) | undefined;
84
84
  onSelect?: ((value: SingleValue<T> | MultiValue<T>) => void) | undefined;
@@ -28,5 +28,5 @@ export declare type SwitchProps = React.PropsWithRef<JSX.IntrinsicElements['labe
28
28
  size?: Size;
29
29
  error?: boolean;
30
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>>;
31
+ export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
32
32
  export {};
@@ -6,6 +6,7 @@ declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>>
6
6
  export declare const SwitchContext: React.Context<SwitchContextProps | undefined>;
7
7
  export declare const SwitchContextProvider: React.FC<{
8
8
  value: SwitchContextProps;
9
+ children?: React.ReactNode;
9
10
  }>;
10
11
  declare const useSwitchContext: () => SwitchContextProps | undefined;
11
12
  export default useSwitchContext;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { BaseFieldProps } from '../types';
3
3
  import { SwitchProps } from './Switch';
4
4
  export declare type SwitchGroupProps = Pick<BaseFieldProps, 'label' | 'errorMessage' | 'hideAsterisk' | 'required'> & {
@@ -7,4 +7,4 @@ export declare type SwitchGroupProps = Pick<BaseFieldProps, 'label' | 'errorMess
7
7
  */
8
8
  children: ReactNode;
9
9
  } & Pick<SwitchProps, 'size'>;
10
- export declare const SwitchGroup: ({ size, label, errorMessage, required, hideAsterisk, children, }: SwitchGroupProps) => JSX.Element;
10
+ export declare const SwitchGroup: ({ size, label, errorMessage, required, hideAsterisk, children, }: SwitchGroupProps) => React.JSX.Element;
@@ -32,7 +32,7 @@ export declare const TextField: React.ForwardRefExoticComponent<BaseFieldProps &
32
32
  defaultValue?: string | undefined;
33
33
  prefix?: React.ReactNode;
34
34
  suffix?: React.ReactNode;
35
- icon?: React.ElementType<any> | undefined;
35
+ icon?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
36
36
  /**
37
37
  * Element to be placed after the input element.
38
38
  *
@@ -45,7 +45,7 @@ export declare const TextField: React.ForwardRefExoticComponent<BaseFieldProps &
45
45
  onChange?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
46
46
  onFocus?: ((event: React.FocusEvent<HTMLInputElement>) => void) | undefined;
47
47
  onBlur?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
48
- inputType?: "number" | "search" | "file" | "password" | "url" | "time" | "text" | "tel" | "email" | "date" | undefined;
48
+ inputType?: "number" | "search" | "time" | "text" | "tel" | "url" | "email" | "date" | "file" | "password" | undefined;
49
49
  autoComplete?: string | undefined;
50
50
  minValue?: string | undefined;
51
51
  maxValue?: string | undefined;