@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
@@ -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;
@@ -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<Pick<EnhancedFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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"> & React.RefAttributes<HTMLInputElement>>;
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
- /// <reference types="react" />
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/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;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Form components",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.2.0-alpha.07a3a716",
6
+ "version": "2.2.0-alpha.32eece3d",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -12,18 +12,18 @@
12
12
  "peerDependencies": {
13
13
  "@emotion/react": "11.11.4",
14
14
  "@emotion/styled": "11.11.5",
15
- "react": ">= 17.0.2",
16
- "react-dom": ">= 17.0.2",
15
+ "react": ">= 18.3.1",
16
+ "react-dom": ">= 18.3.1",
17
17
  "react-select": "^4.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@dfds-ui/hooks": "2.2.0-alpha.07a3a716",
21
- "@dfds-ui/icons": "2.2.0-alpha.07a3a716",
22
- "@dfds-ui/react-components": "2.2.0-alpha.07a3a716",
23
- "@dfds-ui/theme": "2.2.0-alpha.07a3a716",
24
- "@dfds-ui/typography": "2.2.0-alpha.07a3a716"
20
+ "@dfds-ui/hooks": "2.2.0-alpha.32eece3d",
21
+ "@dfds-ui/icons": "2.2.0-alpha.32eece3d",
22
+ "@dfds-ui/react-components": "2.2.0-alpha.32eece3d",
23
+ "@dfds-ui/theme": "2.2.0-alpha.32eece3d",
24
+ "@dfds-ui/typography": "2.2.0-alpha.32eece3d"
25
25
  },
26
- "gitHead": "07a3a716ccdba2666c18875b7e696daf45115aab",
26
+ "gitHead": "32eece3d9838c4d530c5e21b63815021b472c717",
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  }
@@ -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;
@@ -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" | "placeholder" | "helpPlacement"> & {
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" | "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<{
13
- 'aria-live': string;
14
- backspaceRemovesValue: boolean;
15
- blurInputOnSelect: boolean;
16
- captureMenuScroll: boolean;
17
- closeMenuOnSelect: boolean;
18
- closeMenuOnScroll: boolean;
19
- components: {};
20
- controlShouldRenderValue: boolean;
21
- escapeClearsValue: boolean;
22
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
23
- formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
24
- getOptionLabel: <Option_2>(option: Option_2) => string;
25
- getOptionValue: <Option_3>(option: Option_3) => string;
26
- isDisabled: boolean;
27
- isLoading: boolean;
28
- isMulti: boolean;
29
- isRtl: boolean;
30
- isSearchable: boolean;
31
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
32
- loadingMessage: () => string;
33
- maxMenuHeight: number;
34
- minMenuHeight: number;
35
- menuIsOpen: boolean;
36
- menuPlacement: string;
37
- menuPosition: string;
38
- menuShouldBlockScroll: boolean;
39
- menuShouldScrollIntoView: boolean;
40
- noOptionsMessage: () => string;
41
- openMenuOnFocus: boolean;
42
- openMenuOnClick: boolean;
43
- options: never[];
44
- pageSize: number;
45
- placeholder: string;
46
- screenReaderStatus: ({ count }: {
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
- tabIndex: number;
51
- tabSelectsValue: boolean;
52
- }, 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<{
53
- 'aria-live': string;
54
- backspaceRemovesValue: boolean;
55
- blurInputOnSelect: boolean;
56
- captureMenuScroll: boolean;
57
- closeMenuOnSelect: boolean;
58
- closeMenuOnScroll: boolean;
59
- components: {};
60
- controlShouldRenderValue: boolean;
61
- escapeClearsValue: boolean;
62
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
63
- formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
64
- getOptionLabel: <Option_2>(option: Option_2) => string;
65
- getOptionValue: <Option_3>(option: Option_3) => string;
66
- isDisabled: boolean;
67
- isLoading: boolean;
68
- isMulti: boolean;
69
- isRtl: boolean;
70
- isSearchable: boolean;
71
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
72
- loadingMessage: () => string;
73
- maxMenuHeight: number;
74
- minMenuHeight: number;
75
- menuIsOpen: boolean;
76
- menuPlacement: string;
77
- menuPosition: string;
78
- menuShouldBlockScroll: boolean;
79
- menuShouldScrollIntoView: boolean;
80
- noOptionsMessage: () => string;
81
- openMenuOnFocus: boolean;
82
- openMenuOnClick: boolean;
83
- options: never[];
84
- pageSize: number;
85
- placeholder: string;
86
- screenReaderStatus: ({ count }: {
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
- tabIndex: number;
91
- tabSelectsValue: boolean;
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;