@dfds-ui/forms 2.0.29 → 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/asterisk/Asterisk.js +2 -2
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/CheckboxContext.d.ts +1 -0
- package/checkbox/CheckboxGroup.d.ts +2 -2
- package/checkbox/CheckboxGroup.js +3 -3
- package/cjs/assistive-text/AssistiveText.d.ts +1 -1
- package/cjs/assistive-text/AssistiveText.js +1 -1
- package/cjs/asterisk/Asterisk.d.ts +2 -2
- package/cjs/asterisk/Asterisk.js +5 -5
- package/cjs/checkbox/Checkbox.js +19 -24
- package/cjs/checkbox/CheckboxContext.d.ts +1 -0
- package/cjs/checkbox/CheckboxContext.js +1 -2
- package/cjs/checkbox/CheckboxGroup.d.ts +2 -2
- package/cjs/checkbox/CheckboxGroup.js +16 -21
- package/cjs/checkbox/index.js +2 -2
- package/cjs/counter/Counter.js +32 -46
- package/cjs/counter/index.js +1 -1
- package/cjs/enhanced/EnhancedField.d.ts +1 -1
- package/cjs/enhanced/EnhancedField.js +14 -15
- package/cjs/enhanced/index.js +1 -1
- package/cjs/error-text/ErrorText.d.ts +1 -1
- package/cjs/error-text/ErrorText.js +1 -1
- package/cjs/field-wrap/FieldWrap.d.ts +2 -2
- package/cjs/field-wrap/FieldWrap.js +2 -2
- package/cjs/field-wrap/index.js +1 -1
- package/cjs/help-icon/HelpIcon.d.ts +2 -2
- package/cjs/help-icon/HelpIcon.js +1 -1
- package/cjs/index.js +19 -19
- package/cjs/label/Label.d.ts +1 -1
- package/cjs/label/Label.js +11 -17
- package/cjs/password-field/PasswordField.js +4 -14
- package/cjs/radio/Radio.js +17 -21
- package/cjs/radio/RadioContext.d.ts +1 -0
- package/cjs/radio/RadioContext.js +1 -2
- package/cjs/radio/RadioGroup.d.ts +2 -2
- package/cjs/radio/RadioGroup.js +1 -1
- package/cjs/radio/index.js +2 -2
- package/cjs/rating/Rating.d.ts +1 -1
- package/cjs/rating/Rating.js +5 -15
- package/cjs/rating/index.js +1 -1
- package/cjs/select-field/AsyncSelectField.d.ts +88 -80
- package/cjs/select-field/AsyncSelectField.js +21 -26
- package/cjs/select-field/CreatableSelectField.d.ts +89 -81
- package/cjs/select-field/CreatableSelectField.js +56 -63
- package/cjs/select-field/NativeSelectField.d.ts +1 -1
- package/cjs/select-field/NativeSelectField.js +18 -23
- package/cjs/select-field/SelectField.d.ts +4 -4
- package/cjs/select-field/SelectField.js +57 -66
- package/cjs/switch/Switch.d.ts +1 -1
- package/cjs/switch/Switch.js +26 -31
- package/cjs/switch/SwitchContext.d.ts +1 -0
- package/cjs/switch/SwitchContext.js +1 -2
- package/cjs/switch/SwitchGroup.d.ts +2 -2
- package/cjs/switch/SwitchGroup.js +1 -1
- package/cjs/switch/index.js +2 -2
- package/cjs/tel-field/TelField.js +32 -55
- package/cjs/text-field/TextField.d.ts +2 -2
- package/cjs/text-field/TextField.js +34 -41
- package/cjs/textarea-field/TextareaField.js +23 -39
- package/cjs/types/index.js +2 -2
- package/counter/Counter.js +7 -7
- package/enhanced/EnhancedField.d.ts +1 -1
- package/enhanced/EnhancedField.js +3 -3
- package/error-text/ErrorText.d.ts +1 -1
- package/field-wrap/FieldWrap.d.ts +2 -2
- package/field-wrap/FieldWrap.js +1 -1
- package/help-icon/HelpIcon.d.ts +2 -2
- package/label/Label.d.ts +1 -1
- package/label/Label.js +3 -3
- package/package.json +9 -9
- package/password-field/PasswordField.js +5 -5
- package/radio/Radio.js +4 -4
- package/radio/RadioContext.d.ts +1 -0
- package/radio/RadioGroup.d.ts +2 -2
- package/rating/Rating.d.ts +1 -1
- package/rating/Rating.js +8 -8
- package/select-field/AsyncSelectField.d.ts +88 -80
- package/select-field/AsyncSelectField.js +4 -4
- package/select-field/CreatableSelectField.d.ts +89 -81
- package/select-field/CreatableSelectField.js +6 -6
- package/select-field/NativeSelectField.d.ts +1 -1
- package/select-field/NativeSelectField.js +3 -3
- package/select-field/SelectField.d.ts +4 -4
- package/select-field/SelectField.js +6 -6
- package/switch/Switch.d.ts +1 -1
- package/switch/Switch.js +20 -20
- package/switch/SwitchContext.d.ts +1 -0
- package/switch/SwitchGroup.d.ts +2 -2
- package/tel-field/TelField.js +8 -8
- package/text-field/TextField.d.ts +2 -2
- package/text-field/TextField.js +3 -3
- package/textarea-field/TextareaField.js +7 -7
package/cjs/rating/Rating.js
CHANGED
|
@@ -11,15 +11,8 @@ var _radio = require("../radio");
|
|
|
11
11
|
var _typography = require("@dfds-ui/typography");
|
|
12
12
|
var _FieldWrap = require("../field-wrap/FieldWrap");
|
|
13
13
|
var _theme = require("@dfds-ui/theme");
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
16
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
24
17
|
const scaleSpacingCss = process.env.NODE_ENV === "production" ? {
|
|
25
18
|
name: "18cky5w",
|
|
@@ -53,7 +46,7 @@ const RatingRow = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
53
46
|
rangeCardinality,
|
|
54
47
|
disabled,
|
|
55
48
|
name,
|
|
56
|
-
onChange
|
|
49
|
+
onChange,
|
|
57
50
|
value,
|
|
58
51
|
cumulative,
|
|
59
52
|
defaultValue,
|
|
@@ -62,10 +55,7 @@ const RatingRow = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
62
55
|
// When `cumulative` is set, but not as a controlled component,
|
|
63
56
|
// we need to keep track of the current selected value from the rendered
|
|
64
57
|
// radios so that we can override the styles appropiately.
|
|
65
|
-
const
|
|
66
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
67
|
-
valueCC = _useState2[0],
|
|
68
|
-
setValueCC = _useState2[1];
|
|
58
|
+
const [valueCC, setValueCC] = (0, _react.useState)(value !== undefined ? value : defaultValue);
|
|
69
59
|
const styledAs = (0, _react.useMemo)(() => {
|
|
70
60
|
if (!cumulative) return () => undefined;
|
|
71
61
|
if (!valueCC) return () => undefined;
|
|
@@ -89,7 +79,7 @@ const RatingRow = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
89
79
|
if (event.target.checked) {
|
|
90
80
|
setValueCC(k);
|
|
91
81
|
}
|
|
92
|
-
|
|
82
|
+
onChange && onChange(k, event);
|
|
93
83
|
},
|
|
94
84
|
styledAs: styledAs(k),
|
|
95
85
|
value: k.toString()
|
package/cjs/rating/index.js
CHANGED
|
@@ -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;
|
|
@@ -14,11 +14,8 @@ var _Label = require("../label/Label");
|
|
|
14
14
|
var _flexbox = require("@dfds-ui/react-components/flexbox");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _theme = require("@dfds-ui/theme");
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
20
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
22
19
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
23
20
|
const ReactSelectWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
24
21
|
target: "eeefs0"
|
|
@@ -46,25 +43,23 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
46
43
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zZWxlY3QtZmllbGQvQXN5bmNTZWxlY3RGaWVsZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkhvQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvc2VsZWN0LWZpZWxkL0FzeW5jU2VsZWN0RmllbGQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgR3JvdXBCYXN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
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
visualSize = _ref3$visualSize === void 0 ? 'medium' : _ref3$visualSize,
|
|
67
|
-
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
46
|
+
const AsyncSelectFieldInner = ({
|
|
47
|
+
assistiveText,
|
|
48
|
+
components,
|
|
49
|
+
disabled,
|
|
50
|
+
errorMessage,
|
|
51
|
+
help,
|
|
52
|
+
helpPlacement = 'top',
|
|
53
|
+
hideAsterisk,
|
|
54
|
+
isClearable = false,
|
|
55
|
+
label,
|
|
56
|
+
name,
|
|
57
|
+
onBlur,
|
|
58
|
+
onChange,
|
|
59
|
+
required,
|
|
60
|
+
visualSize = 'medium',
|
|
61
|
+
...rest
|
|
62
|
+
}, ref) => {
|
|
68
63
|
return (0, _react2.jsx)(_flexbox.FlexBox, {
|
|
69
64
|
directionColumn: true
|
|
70
65
|
}, (0, _react2.jsx)(_flexbox.FlexBox, {
|
|
@@ -88,9 +83,9 @@ const AsyncSelectFieldInner = (_ref3, ref) => {
|
|
|
88
83
|
}, rest, {
|
|
89
84
|
ref: ref,
|
|
90
85
|
onChange: (newValue, actionMeta) => {
|
|
91
|
-
|
|
86
|
+
onChange && onChange(newValue, actionMeta);
|
|
92
87
|
},
|
|
93
|
-
onBlur: e =>
|
|
88
|
+
onBlur: e => onBlur && onBlur(e)
|
|
94
89
|
}))), (assistiveText || errorMessage) && (0, _react2.jsx)(_flexbox.FlexBox, _extends({
|
|
95
90
|
css: _ref
|
|
96
91
|
}, assistiveText || errorMessage ? {
|
|
@@ -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;
|