@dfds-ui/forms 2.2.0-alpha.8b995955 → 2.2.0-alpha.b8d61c36
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 +2 -2
- package/asterisk/Asterisk.d.ts +3 -3
- package/asterisk/Asterisk.js +2 -2
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/CheckboxContext.d.ts +2 -1
- package/checkbox/CheckboxGroup.d.ts +3 -3
- package/checkbox/CheckboxGroup.js +3 -3
- package/cjs/assistive-text/AssistiveText.d.ts +2 -2
- package/cjs/assistive-text/AssistiveText.js +1 -1
- package/cjs/asterisk/Asterisk.d.ts +3 -3
- package/cjs/asterisk/Asterisk.js +2 -2
- package/cjs/checkbox/Checkbox.d.ts +2 -2
- package/cjs/checkbox/Checkbox.js +2 -2
- package/cjs/checkbox/CheckboxContext.d.ts +2 -1
- package/cjs/checkbox/CheckboxContext.js +1 -2
- package/cjs/checkbox/CheckboxGroup.d.ts +3 -3
- package/cjs/checkbox/CheckboxGroup.js +2 -2
- package/cjs/counter/Counter.d.ts +2 -2
- package/cjs/counter/Counter.js +2 -3
- package/cjs/enhanced/EnhancedField.d.ts +4 -4
- package/cjs/enhanced/EnhancedField.js +2 -3
- package/cjs/error-text/ErrorText.d.ts +2 -2
- package/cjs/error-text/ErrorText.js +1 -1
- package/cjs/field-wrap/FieldWrap.d.ts +3 -3
- package/cjs/field-wrap/FieldWrap.js +2 -2
- package/cjs/help-icon/HelpIcon.d.ts +3 -3
- package/cjs/help-icon/HelpIcon.js +1 -1
- package/cjs/label/Label.d.ts +2 -2
- package/cjs/label/Label.js +2 -2
- package/cjs/password-field/PasswordField.d.ts +1 -1
- package/cjs/password-field/PasswordField.js +3 -4
- package/cjs/radio/Radio.d.ts +3 -3
- package/cjs/radio/Radio.js +2 -2
- package/cjs/radio/RadioContext.d.ts +2 -1
- package/cjs/radio/RadioContext.js +1 -2
- package/cjs/radio/RadioGroup.d.ts +3 -3
- package/cjs/radio/RadioGroup.js +1 -1
- package/cjs/rating/Rating.d.ts +3 -3
- package/cjs/rating/Rating.js +2 -3
- package/cjs/select-field/AsyncSelectField.d.ts +96 -4
- package/cjs/select-field/AsyncSelectField.js +2 -2
- package/cjs/select-field/CreatableSelectField.d.ts +97 -5
- package/cjs/select-field/CreatableSelectField.js +2 -2
- package/cjs/select-field/NativeSelectField.d.ts +2 -2
- package/cjs/select-field/NativeSelectField.js +2 -3
- package/cjs/select-field/SelectField.d.ts +7 -7
- package/cjs/select-field/SelectField.js +3 -4
- package/cjs/switch/Switch.d.ts +3 -3
- package/cjs/switch/Switch.js +3 -4
- package/cjs/switch/SwitchContext.d.ts +2 -1
- package/cjs/switch/SwitchContext.js +1 -2
- package/cjs/switch/SwitchGroup.d.ts +3 -3
- package/cjs/switch/SwitchGroup.js +1 -1
- package/cjs/tel-field/TelField.d.ts +2 -2
- package/cjs/tel-field/TelField.js +3 -4
- package/cjs/text-field/TextField.d.ts +3 -3
- package/cjs/text-field/TextField.js +2 -3
- package/cjs/textarea-field/TextareaField.d.ts +2 -2
- package/cjs/textarea-field/TextareaField.js +2 -3
- package/cjs/types/field.d.ts +1 -1
- package/cjs/types/size.d.ts +1 -1
- package/counter/Counter.d.ts +2 -2
- package/counter/Counter.js +7 -7
- package/enhanced/EnhancedField.d.ts +4 -4
- package/enhanced/EnhancedField.js +3 -3
- package/error-text/ErrorText.d.ts +2 -2
- package/field-wrap/FieldWrap.d.ts +3 -3
- package/field-wrap/FieldWrap.js +1 -1
- package/help-icon/HelpIcon.d.ts +3 -3
- package/label/Label.d.ts +2 -2
- package/label/Label.js +3 -3
- package/package.json +10 -10
- package/password-field/PasswordField.d.ts +1 -1
- package/password-field/PasswordField.js +5 -5
- package/radio/Radio.d.ts +3 -3
- package/radio/Radio.js +4 -4
- package/radio/RadioContext.d.ts +2 -1
- package/radio/RadioGroup.d.ts +3 -3
- package/rating/Rating.d.ts +3 -3
- package/rating/Rating.js +8 -8
- package/select-field/AsyncSelectField.d.ts +96 -4
- package/select-field/AsyncSelectField.js +4 -4
- package/select-field/CreatableSelectField.d.ts +97 -5
- package/select-field/CreatableSelectField.js +6 -6
- package/select-field/NativeSelectField.d.ts +2 -2
- package/select-field/NativeSelectField.js +3 -3
- package/select-field/SelectField.d.ts +7 -7
- package/select-field/SelectField.js +6 -6
- package/switch/Switch.d.ts +3 -3
- package/switch/Switch.js +3 -3
- package/switch/SwitchContext.d.ts +2 -1
- package/switch/SwitchGroup.d.ts +3 -3
- package/tel-field/TelField.d.ts +2 -2
- package/tel-field/TelField.js +8 -8
- package/text-field/TextField.d.ts +3 -3
- package/text-field/TextField.js +3 -3
- package/textarea-field/TextareaField.d.ts +2 -2
- package/textarea-field/TextareaField.js +7 -7
- package/types/field.d.ts +1 -1
- package/types/size.d.ts +1 -1
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { CreatableProps } from 'react-select/creatable';
|
|
3
3
|
import { ActionMeta, createFilter, GroupBase, MultiValue, OptionsOrGroups, SingleValue } from 'react-select';
|
|
4
4
|
import { BaseFieldProps } from '../types';
|
|
5
|
-
type Size = 'small' | 'medium' | 'large';
|
|
6
|
-
export type CreatableSelectFieldProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseFieldProps & CreatableProps<Option, IsMulti, Group> & {
|
|
5
|
+
declare type Size = 'small' | 'medium' | 'large';
|
|
6
|
+
export declare type CreatableSelectFieldProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseFieldProps & CreatableProps<Option, IsMulti, Group> & {
|
|
7
7
|
assistiveText?: string;
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
className?: string;
|
|
@@ -41,8 +41,100 @@ export type CreatableSelectFieldProps<Option, IsMulti extends boolean, Group ext
|
|
|
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<import("react-select/dist/declarations/src/Select").
|
|
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" | "required" | "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
|
+
classNames?: import("react-select").ClassNamesConfig<Option, IsMulti, Group> | undefined;
|
|
53
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
54
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
55
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
56
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
57
|
+
escapeClearsValue?: boolean | undefined;
|
|
58
|
+
filterOption?: ((option: import("react-select").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
59
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
60
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
61
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
62
|
+
isDisabled?: boolean | undefined;
|
|
63
|
+
isLoading?: boolean | undefined;
|
|
64
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
65
|
+
isMulti?: IsMulti | undefined;
|
|
66
|
+
isRtl?: boolean | undefined;
|
|
67
|
+
isSearchable?: boolean | undefined;
|
|
68
|
+
loadingMessage?: ((obj: {
|
|
69
|
+
inputValue: string;
|
|
70
|
+
}) => React.ReactNode) | undefined;
|
|
71
|
+
minMenuHeight?: number | undefined;
|
|
72
|
+
maxMenuHeight?: number | undefined;
|
|
73
|
+
menuIsOpen?: boolean | undefined;
|
|
74
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
75
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
76
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
77
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
78
|
+
noOptionsMessage?: ((obj: {
|
|
79
|
+
inputValue: string;
|
|
80
|
+
}) => React.ReactNode) | undefined;
|
|
81
|
+
openMenuOnFocus?: boolean | undefined;
|
|
82
|
+
openMenuOnClick?: boolean | undefined;
|
|
83
|
+
options?: OptionsOrGroups<Option, Group> | undefined;
|
|
84
|
+
pageSize?: number | undefined;
|
|
85
|
+
screenReaderStatus?: ((obj: {
|
|
86
|
+
count: number;
|
|
87
|
+
}) => string) | undefined;
|
|
88
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
89
|
+
tabSelectsValue?: boolean | undefined;
|
|
90
|
+
unstyled?: boolean | undefined;
|
|
91
|
+
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "id" | "className" | "value" | "form" | "required" | "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"> & {
|
|
92
|
+
tabIndex?: number | undefined;
|
|
93
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
94
|
+
placeholder?: React.ReactNode;
|
|
95
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
96
|
+
blurInputOnSelect?: boolean | undefined;
|
|
97
|
+
captureMenuScroll?: boolean | undefined;
|
|
98
|
+
classNames?: import("react-select").ClassNamesConfig<Option, IsMulti, Group> | undefined;
|
|
99
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
100
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
101
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
102
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
103
|
+
escapeClearsValue?: boolean | undefined;
|
|
104
|
+
filterOption?: ((option: import("react-select").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
105
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
106
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
107
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
108
|
+
isDisabled?: boolean | undefined;
|
|
109
|
+
isLoading?: boolean | undefined;
|
|
110
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
111
|
+
isMulti?: IsMulti | undefined;
|
|
112
|
+
isRtl?: boolean | undefined;
|
|
113
|
+
isSearchable?: boolean | undefined;
|
|
114
|
+
loadingMessage?: ((obj: {
|
|
115
|
+
inputValue: string;
|
|
116
|
+
}) => React.ReactNode) | undefined;
|
|
117
|
+
minMenuHeight?: number | undefined;
|
|
118
|
+
maxMenuHeight?: number | undefined;
|
|
119
|
+
menuIsOpen?: boolean | undefined;
|
|
120
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
121
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
122
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
123
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
124
|
+
noOptionsMessage?: ((obj: {
|
|
125
|
+
inputValue: string;
|
|
126
|
+
}) => React.ReactNode) | undefined;
|
|
127
|
+
openMenuOnFocus?: boolean | undefined;
|
|
128
|
+
openMenuOnClick?: boolean | undefined;
|
|
129
|
+
options?: OptionsOrGroups<Option, Group> | undefined;
|
|
130
|
+
pageSize?: number | undefined;
|
|
131
|
+
screenReaderStatus?: ((obj: {
|
|
132
|
+
count: number;
|
|
133
|
+
}) => string) | undefined;
|
|
134
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
135
|
+
tabSelectsValue?: boolean | undefined;
|
|
136
|
+
unstyled?: boolean | undefined;
|
|
137
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<Option, Group> & {
|
|
46
138
|
assistiveText?: string | undefined;
|
|
47
139
|
autoFocus?: boolean | undefined;
|
|
48
140
|
className?: string | undefined;
|
|
@@ -68,7 +160,7 @@ export declare const CreatableSelectField: <Option, IsMulti extends boolean, Gro
|
|
|
68
160
|
isMulti?: boolean | undefined;
|
|
69
161
|
isSearchable?: boolean | undefined;
|
|
70
162
|
menuIsOpen?: boolean | undefined;
|
|
71
|
-
menuPlacement?: "
|
|
163
|
+
menuPlacement?: "top" | "bottom" | "auto" | undefined;
|
|
72
164
|
onBlur?: ((value: any) => void) | undefined;
|
|
73
165
|
onChange?: ((newValue: MultiValue<Option> | SingleValue<Option>, actionMeta: ActionMeta<Option>) => void) | undefined;
|
|
74
166
|
onSelect?: ((value: MultiValue<Option> | SingleValue<Option>) => void) | undefined;
|
|
@@ -5,14 +5,14 @@ var _excluded = ["assistiveText", "components", "defaultValue", "disabled", "err
|
|
|
5
5
|
var _templateObject;
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
-
function _defineProperty(
|
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
function _objectDestructuringEmpty(
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
-
function _objectWithoutProperties(
|
|
14
|
-
function _objectWithoutPropertiesLoose(
|
|
15
|
-
function _taggedTemplateLiteral(
|
|
11
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
12
|
+
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); }
|
|
13
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
15
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
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)."; }
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { css } from '@emotion/react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseFieldProps, Size } from '../types';
|
|
3
|
-
export type NativeSelectFieldProps = BaseFieldProps & React.ComponentPropsWithRef<'select'> & {
|
|
3
|
+
export declare type NativeSelectFieldProps = BaseFieldProps & React.ComponentPropsWithRef<'select'> & {
|
|
4
4
|
className?: string;
|
|
5
5
|
visualSize?: Size;
|
|
6
6
|
};
|
|
7
|
-
export declare const NativeSelectField: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const NativeSelectField: React.ForwardRefExoticComponent<Omit<NativeSelectFieldProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
8
8
|
export default NativeSelectField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["name", "label", "defaultValue", "className", "help", "children", "helpPlacement", "assistiveText", "errorMessage", "disabled", "required", "hideAsterisk", "visualSize"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import { css } from '@emotion/react';
|
|
7
7
|
import { ChevronDown } from '@dfds-ui/icons/system/';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Select, { ActionMeta, createFilter, GroupBase, MultiValue, OptionsOrGroups, SingleValue } from 'react-select';
|
|
3
3
|
import { BaseFieldProps } from '../types';
|
|
4
|
-
export type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'size' | 'css'>;
|
|
5
|
-
export type Size = 'small' | 'medium' | 'large';
|
|
4
|
+
export declare type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'size' | 'css'>;
|
|
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;
|
|
16
|
-
export type SelectFieldProps<T = string> = BaseFieldProps & {
|
|
15
|
+
export declare const Menu: (props: any) => React.JSX.Element;
|
|
16
|
+
export declare type SelectFieldProps<T = string> = BaseFieldProps & {
|
|
17
17
|
assistiveText?: string;
|
|
18
18
|
autoFocus?: boolean;
|
|
19
19
|
className?: string;
|
|
@@ -51,7 +51,7 @@ export 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?: "
|
|
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;
|
|
@@ -5,14 +5,14 @@ var _excluded = ["assistiveText", "components", "defaultValue", "disabled", "err
|
|
|
5
5
|
var _templateObject;
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
-
function _defineProperty(
|
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
function _objectDestructuringEmpty(
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
-
function _objectWithoutProperties(
|
|
14
|
-
function _objectWithoutPropertiesLoose(
|
|
15
|
-
function _taggedTemplateLiteral(
|
|
11
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
12
|
+
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); }
|
|
13
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
15
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
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)."; }
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { css } from '@emotion/react';
|
package/switch/Switch.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEvent } from 'react';
|
|
2
|
-
type Size = 'small' | 'medium';
|
|
3
|
-
export type SwitchProps = React.PropsWithRef<JSX.IntrinsicElements['label']> & {
|
|
2
|
+
declare type Size = 'small' | 'medium';
|
|
3
|
+
export declare type SwitchProps = React.PropsWithRef<JSX.IntrinsicElements['label']> & {
|
|
4
4
|
/**
|
|
5
5
|
* Name of the input element
|
|
6
6
|
*/
|
|
@@ -28,5 +28,5 @@ export type SwitchProps = React.PropsWithRef<JSX.IntrinsicElements['label']> & {
|
|
|
28
28
|
size?: Size;
|
|
29
29
|
error?: boolean;
|
|
30
30
|
};
|
|
31
|
-
export declare const Switch: React.ForwardRefExoticComponent<
|
|
31
|
+
export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
32
32
|
export {};
|
package/switch/Switch.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["name", "checked", "onChange", "disabled", "children", "right", "error", "size"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
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); }
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
6
6
|
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)."; }
|
|
7
7
|
import React, { forwardRef } from 'react';
|
|
8
8
|
import { css } from '@emotion/react';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwitchProps } from './Switch';
|
|
3
|
-
type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>> & {
|
|
3
|
+
declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
};
|
|
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;
|
package/switch/SwitchGroup.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps } from '../types';
|
|
3
3
|
import { SwitchProps } from './Switch';
|
|
4
|
-
export type SwitchGroupProps = Pick<BaseFieldProps, 'label' | 'errorMessage' | 'hideAsterisk' | 'required'> & {
|
|
4
|
+
export declare type SwitchGroupProps = Pick<BaseFieldProps, 'label' | 'errorMessage' | 'hideAsterisk' | 'required'> & {
|
|
5
5
|
/**
|
|
6
6
|
* JSX enclosed by the group.
|
|
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;
|
package/tel-field/TelField.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Locale } from '@dfds-ui/react-components';
|
|
3
3
|
import { BaseFieldProps } from '../types';
|
|
4
|
-
export type TelFieldProps = BaseFieldProps & {
|
|
4
|
+
export declare type TelFieldProps = BaseFieldProps & {
|
|
5
5
|
/**
|
|
6
6
|
* Class name to be added to the TelField.
|
|
7
7
|
*/
|
|
@@ -31,7 +31,7 @@ export type TelFieldProps = BaseFieldProps & {
|
|
|
31
31
|
*/
|
|
32
32
|
onBlur?: () => void;
|
|
33
33
|
};
|
|
34
|
-
export type TelFieldElement = {
|
|
34
|
+
export declare type TelFieldElement = {
|
|
35
35
|
focus?: () => void;
|
|
36
36
|
};
|
|
37
37
|
export declare const TelField: React.ForwardRefExoticComponent<BaseFieldProps & {
|
package/tel-field/TelField.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var _excluded = ["name", "label", "errorMessage", "defaultValue", "defaultLocale", "required", "hideAsterisk", "showTrunkValues", "splitValues", "onChange", "onBlur"];
|
|
2
|
-
function _objectDestructuringEmpty(
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _slicedToArray(
|
|
2
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
3
|
+
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); }
|
|
4
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5
5
|
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."); }
|
|
6
|
-
function _unsupportedIterableToArray(
|
|
7
|
-
function _arrayLikeToArray(
|
|
6
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
8
8
|
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; } }
|
|
9
|
-
function _arrayWithHoles(
|
|
10
|
-
function _objectWithoutProperties(
|
|
11
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
10
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
11
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
12
12
|
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)."; }
|
|
13
13
|
import React, { forwardRef, useImperativeHandle, useEffect, useState, useRef, useCallback, useMemo } from 'react';
|
|
14
14
|
import { css } from '@emotion/react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseFieldProps, Size } from '../types';
|
|
3
|
-
export type TextFieldProps = BaseFieldProps & {
|
|
3
|
+
export declare type TextFieldProps = BaseFieldProps & {
|
|
4
4
|
autoFocus?: boolean;
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
prefix?: React.ReactNode;
|
|
@@ -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" | "time" | "
|
|
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;
|
package/text-field/TextField.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["name", "label", "placeholder", "value", "defaultValue", "onChange", "onFocus", "onBlur", "prefix", "className", "suffix", "icon", "help", "helpPlacement", "adornment", "assistiveText", "errorMessage", "disabled", "required", "hideAsterisk", "visualSize", "inputType", "minValue", "maxValue", "autoComplete"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
7
|
import { css } from '@emotion/react';
|
|
@@ -10,8 +10,8 @@ export declare const inputPaddings: {
|
|
|
10
10
|
horizontal: number;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
type FieldSize = Extract<Size, 'small' | 'medium'>;
|
|
14
|
-
export type TextareaFieldProps = BaseFieldProps & {
|
|
13
|
+
declare type FieldSize = Extract<Size, 'small' | 'medium'>;
|
|
14
|
+
export declare type TextareaFieldProps = BaseFieldProps & {
|
|
15
15
|
defaultValue?: string;
|
|
16
16
|
size?: FieldSize;
|
|
17
17
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _excluded = ["name", "size", "assistiveText", "errorMessage", "required", "hideAsterisk", "label", "help", "defaultValue", "value", "onChange", "maxValueLength", "placeholder", "disabled", "showLengthCounter", "rows"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _slicedToArray(
|
|
2
|
+
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); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
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."); }
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
7
7
|
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; } }
|
|
8
|
-
function _arrayWithHoles(
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
11
11
|
import React, { forwardRef, useState } from 'react';
|
|
12
12
|
import { FieldWrap } from '../field-wrap/FieldWrap';
|
|
13
13
|
import { css } from '@emotion/react';
|
package/types/field.d.ts
CHANGED
package/types/size.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Size = 'small' | 'medium' | 'large';
|
|
1
|
+
export declare type Size = 'small' | 'medium' | 'large';
|