@elliemae/ds-form 2.0.0-alpha.4 → 2.0.0-alpha.8
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/cjs/Checkbox/DSCheckbox.js +9 -11
- package/cjs/Checkbox/elements/CheckMark.js +1 -1
- package/cjs/Checkbox/index.js +2 -4
- package/cjs/CheckboxGroup/DSCheckboxGroup.js +7 -7
- package/cjs/CheckboxGroup/index.js +1 -1
- package/cjs/ComboBox/DSComboBox.js +3 -7
- package/cjs/ComboBox/index.js +3 -7
- package/cjs/ComboBox/v1/DSComboBox.js +23 -27
- package/cjs/ComboBox/v1/components/AllOption.js +3 -3
- package/cjs/ComboBox/v1/components/ClearIndicator.js +2 -2
- package/cjs/ComboBox/v1/components/Control.js +2 -2
- package/cjs/ComboBox/v1/components/CustomOption.js +4 -4
- package/cjs/ComboBox/v1/components/CustomOptionMulti.js +5 -5
- package/cjs/ComboBox/v1/components/DropdownIndicator.js +4 -4
- package/cjs/ComboBox/v1/components/MenuList.js +3 -3
- package/cjs/ComboBox/v1/components/MultiSelectHeader.js +1 -1
- package/cjs/ComboBox/v1/components/MultiValueLabel.js +1 -1
- package/cjs/ComboBox/v1/components/MultiValueRemove.js +1 -1
- package/cjs/ComboBox/v1/components/SelectMenu.js +5 -5
- package/cjs/ComboBox/v1/components/SingleValueLabel.js +1 -1
- package/cjs/ComboBox/v1/components/ValueContainer.js +4 -4
- package/cjs/ComboBox/v1/index.js +3 -7
- package/cjs/ComboBox/v1/withSelectStringValueConverter.js +3 -3
- package/cjs/ComboBox/v2/Combobox.js +9 -9
- package/cjs/ComboBox/v2/components/AllOption.js +3 -3
- package/cjs/ComboBox/v2/components/ClearIndicator.js +4 -4
- package/cjs/ComboBox/v2/components/Content.js +3 -3
- package/cjs/ComboBox/v2/components/Control.js +2 -2
- package/cjs/ComboBox/v2/components/CustomOption.js +6 -6
- package/cjs/ComboBox/v2/components/CustomOptionMulti.js +9 -9
- package/cjs/ComboBox/v2/components/DropdownIndicator.js +4 -4
- package/cjs/ComboBox/v2/components/GroupHeading.js +4 -4
- package/cjs/ComboBox/v2/components/IndicatorSeparator.js +2 -2
- package/cjs/ComboBox/v2/components/LoadingIndicator.js +3 -3
- package/cjs/ComboBox/v2/components/MenuList.js +4 -4
- package/cjs/ComboBox/v2/components/MultiSelectHeader.js +11 -11
- package/cjs/ComboBox/v2/components/MultiValueLabel.js +1 -1
- package/cjs/ComboBox/v2/components/MultiValueRemove.js +2 -2
- package/cjs/ComboBox/v2/components/SelectMenu.js +4 -4
- package/cjs/ComboBox/v2/components/SingleValueLabel.js +1 -1
- package/cjs/ComboBox/v2/components/ValueContainer.js +3 -3
- package/cjs/ComboBox/v2/context.js +1 -1
- package/cjs/ComboBox/v2/index.js +1 -1
- package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +2 -2
- package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +5 -5
- package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +3 -3
- package/cjs/ComboBoxFreeSolo/components/SingleValue.js +2 -2
- package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +3 -3
- package/cjs/DateInput/DSDateInput.js +4 -4
- package/cjs/DateInput/components/DateInputImpl.js +2 -2
- package/cjs/DateInput/components/DateInputs.js +7 -7
- package/cjs/DateInput/components/utils.js +1 -1
- package/cjs/DateInput/index.js +1 -1
- package/cjs/DateInputV2/components/DSDateInput.js +2 -2
- package/cjs/DateInputV2/components/DateInputs.js +13 -13
- package/cjs/DateInputV2/components/propsTypes.js +17 -17
- package/cjs/DateInputV2/components/styled.js +4 -4
- package/cjs/DateInputV2/components/utils.js +1 -1
- package/cjs/DateInputV2/index.js +1 -1
- package/cjs/ExpandableInput/DSExpandableInput.js +1 -1
- package/cjs/ExpandableInput/ExpandableInputImpl.js +3 -3
- package/cjs/FloatingLabelInput/DSFloatingLabelInput.js +2 -2
- package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +15 -15
- package/cjs/FormItem/DSFormItemLayout.js +13 -13
- package/cjs/FormItem/Error/DSError.js +2 -2
- package/cjs/FormItem/Feedback.js +1 -1
- package/cjs/FormItem/Label/DSLabel.js +3 -3
- package/cjs/FormItem/Suffix/Suffix.js +4 -4
- package/cjs/FormItem/ValidationFieldWrapper.js +2 -2
- package/cjs/FormItem/defaultProps.js +1 -1
- package/cjs/FormItem/index.js +2 -2
- package/cjs/Input/DSInput.js +4 -3
- package/cjs/Input/InputAddonWrapper.js +4 -4
- package/cjs/Input/InputImpl.js +56 -55
- package/cjs/Input/index.js +1 -1
- package/cjs/InputGroup/AddonWrapper.js +4 -4
- package/cjs/InputGroup/DSInputGroup.js +1 -1
- package/cjs/InputGroup/index.js +1 -1
- package/cjs/InputMask/DSInputMask.js +3 -3
- package/cjs/InputMask/DSInputMaskDeprecated.js +10 -10
- package/cjs/InputMask/InputMaskContext.js +1 -1
- package/cjs/InputMask/MaskTypes.js +1 -1
- package/cjs/InputMask/index.js +1 -1
- package/cjs/InputMask/mask_types/DateInputMask.js +3 -3
- package/cjs/InputMask/mask_types/DateTimeInputMask.js +3 -3
- package/cjs/InputMask/mask_types/DictionaryInputMask.js +3 -3
- package/cjs/InputMask/mask_types/NumberInputMask.js +3 -3
- package/cjs/InputMask/mask_types/PhoneInputMask.js +3 -3
- package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +3 -3
- package/cjs/InputMask/mask_types/SsnInputMask.js +3 -3
- package/cjs/InputMask/mask_types/UsZipCodeInputMask.js +3 -3
- package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +3 -3
- package/cjs/InputMask/mask_types/index.js +4 -4
- package/cjs/InputProtected/DSInputProtected.js +10 -10
- package/cjs/InputProtected/index.js +1 -1
- package/cjs/LargeInputText/DSLargeInputText.js +4 -4
- package/cjs/LargeInputText/index.js +1 -1
- package/cjs/Radio/Circle.js +2 -2
- package/cjs/Radio/DSRadio.js +8 -8
- package/cjs/Radio/index.js +1 -1
- package/cjs/RadioGroup/DSRadioGroup.js +8 -8
- package/cjs/RadioGroup/index.js +1 -1
- package/cjs/RequiredMark/RequiredMark.js +2 -2
- package/cjs/SearchBox/DSSearchBox.js +11 -8
- package/cjs/SearchBox/NavSearchBox.js +19 -19
- package/cjs/SearchBox/SButton.js +2 -2
- package/cjs/SearchBox/SearchBoxToggle.js +7 -7
- package/cjs/SearchBox/index.js +1 -1
- package/cjs/SearchBox/styled.js +1 -1
- package/cjs/SearchBox/withSearchable.js +4 -4
- package/cjs/TextBox/DSTextBox.js +11 -8
- package/cjs/TextBox/index.js +1 -1
- package/cjs/TimeInput/DSTimeInput.js +4 -4
- package/cjs/TimeInput/TimeInputImpl.js +3 -3
- package/cjs/TimeInput/TimeInputs.js +8 -8
- package/cjs/TimeInput/index.js +1 -1
- package/cjs/Toggle/DSToggle.js +3 -3
- package/cjs/Toggle/DSToggleImpl.js +17 -17
- package/cjs/Toggle/DSToggleRender.js +7 -7
- package/cjs/Toggle/index.js +1 -1
- package/cjs/Toggle/props.js +11 -11
- package/cjs/index.js +14 -18
- package/esm/Input/DSInput.js +1 -0
- package/esm/Input/InputImpl.js +3 -2
- package/esm/Radio/DSRadio.js +1 -1
- package/esm/SearchBox/DSSearchBox.js +5 -2
- package/esm/TextBox/DSTextBox.js +7 -4
- package/package.json +17 -17
- package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +2 -1
- package/types/FormItem/DSFormItemLayout.d.ts +2 -1
- package/types/FormItem/defaultProps.d.ts +2 -1
- package/types/SearchBox/styled.d.ts +2 -1
- package/types/TextBox/DSTextBox.d.ts +2 -1
|
@@ -33,7 +33,7 @@ const _excluded = ["leftLabel", "floatingLabel", "name", "id", "value", "inputCo
|
|
|
33
33
|
|
|
34
34
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
35
35
|
|
|
36
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
36
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
37
37
|
const blockName = 'form-item';
|
|
38
38
|
const Wrapper = dsClassnames.aggregatedClasses('div')(blockName, null, ({
|
|
39
39
|
leftLabel,
|
|
@@ -93,9 +93,9 @@ const DSFormItemLayout = _ref => {
|
|
|
93
93
|
withHighlight,
|
|
94
94
|
containerProps
|
|
95
95
|
} = _ref,
|
|
96
|
-
rest = _objectWithoutProperties__default[
|
|
96
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
97
97
|
|
|
98
|
-
const isGroup = InputComponent.type === (_Group || (_Group = /*#__PURE__*/_jsx__default[
|
|
98
|
+
const isGroup = InputComponent.type === (_Group || (_Group = /*#__PURE__*/_jsx__default["default"](Group__default["default"], {}))).type;
|
|
99
99
|
|
|
100
100
|
const floatingLabelOverride = floatingLabel === 'UNSAFE';
|
|
101
101
|
const WrapperContentComp = !isGroup ? WrapperContent : WrapperContentGroup; // group the input props to not duplicate it inside the specific inputComponent (floating or not)
|
|
@@ -120,7 +120,7 @@ const DSFormItemLayout = _ref => {
|
|
|
120
120
|
required
|
|
121
121
|
}, rest);
|
|
122
122
|
|
|
123
|
-
const renderInput = Input => leftAddon || rightAddon ? /*#__PURE__*/_jsx__default[
|
|
123
|
+
const renderInput = Input => leftAddon || rightAddon ? /*#__PURE__*/_jsx__default["default"](DSInputGroup["default"], {
|
|
124
124
|
leftAddon: leftAddon,
|
|
125
125
|
rightAddon: rightAddon,
|
|
126
126
|
variant: variant
|
|
@@ -138,14 +138,14 @@ const DSFormItemLayout = _ref => {
|
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
140
|
const InputWithLabel = floatingLabelOverride ? renderInput(renderFloating) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
141
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
141
|
+
children: [/*#__PURE__*/_jsx__default["default"](LabelComponent, {
|
|
142
142
|
htmlFor: id || name,
|
|
143
143
|
label: labelText,
|
|
144
144
|
optional: optional,
|
|
145
145
|
required: required,
|
|
146
146
|
isGroup: isGroup,
|
|
147
147
|
truncateText: truncateText
|
|
148
|
-
}), renderInput(getComponentFromProps__default[
|
|
148
|
+
}), renderInput(getComponentFromProps__default["default"](InputComponent, inputProps))]
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
if (suffix) {
|
|
@@ -160,14 +160,14 @@ const DSFormItemLayout = _ref => {
|
|
|
160
160
|
withHighlight
|
|
161
161
|
}
|
|
162
162
|
}, containerProps), {}, {
|
|
163
|
-
children: /*#__PURE__*/_jsx__default[
|
|
163
|
+
children: /*#__PURE__*/_jsx__default["default"](Suffix.SuffixWrapper, {
|
|
164
164
|
className: "suffix-wrapper"
|
|
165
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
165
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Suffix.SuffixInputWrapper, {
|
|
166
166
|
className: "suffix-input-wrapper"
|
|
167
|
-
}, void 0, _WrapperContentComp || (_WrapperContentComp = /*#__PURE__*/_jsx__default[
|
|
167
|
+
}, void 0, _WrapperContentComp || (_WrapperContentComp = /*#__PURE__*/_jsx__default["default"](WrapperContentComp, {}, void 0, InputWithLabel, extraContent)), /*#__PURE__*/_jsx__default["default"](FeedbackComponent, {
|
|
168
168
|
hasError: hasError,
|
|
169
169
|
text: validationState || hasError ? validationMessage : feedbackMessage
|
|
170
|
-
})), /*#__PURE__*/_jsx__default[
|
|
170
|
+
})), /*#__PURE__*/_jsx__default["default"](Suffix.Suffix, {
|
|
171
171
|
className: "suffix-label",
|
|
172
172
|
label: !!labelText,
|
|
173
173
|
withFeedback: Boolean(validationMessage || feedbackMessage)
|
|
@@ -186,7 +186,7 @@ const DSFormItemLayout = _ref => {
|
|
|
186
186
|
withHighlight
|
|
187
187
|
}
|
|
188
188
|
}, containerProps), {}, {
|
|
189
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
189
|
+
children: [/*#__PURE__*/_jsx__default["default"](WrapperContentComp, {}, void 0, InputWithLabel, extraContent), /*#__PURE__*/_jsx__default["default"](FeedbackComponent, {
|
|
190
190
|
hasError: hasError,
|
|
191
191
|
text: validationState || hasError ? validationMessage : feedbackMessage
|
|
192
192
|
})]
|
|
@@ -197,7 +197,7 @@ DSFormItemLayout.defaultProps = defaultProps.defaultProps;
|
|
|
197
197
|
const DSFormItemLayoutWithSchema = reactDesc.describe(DSFormItemLayout);
|
|
198
198
|
DSFormItemLayoutWithSchema.propTypes = props.props;
|
|
199
199
|
|
|
200
|
-
exports.DSError = DSError[
|
|
200
|
+
exports.DSError = DSError["default"];
|
|
201
201
|
exports.FORMITEM_LAYOUT_VARIANTS = variants.FORMITEM_LAYOUT_VARIANTS;
|
|
202
202
|
exports.DSFormItemLayoutWithSchema = DSFormItemLayoutWithSchema;
|
|
203
|
-
exports[
|
|
203
|
+
exports["default"] = DSFormItemLayout;
|
|
@@ -15,7 +15,7 @@ const DSError = ({
|
|
|
15
15
|
errorText = 'Error'
|
|
16
16
|
}) => {
|
|
17
17
|
if (!hasError) return null;
|
|
18
|
-
return /*#__PURE__*/_jsx__default[
|
|
18
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
19
19
|
className: "em-ds-error"
|
|
20
20
|
}, void 0, errorText);
|
|
21
21
|
};
|
|
@@ -31,4 +31,4 @@ const DSErrorWithSchema = reactDesc.describe(DSError);
|
|
|
31
31
|
DSErrorWithSchema.propTypes = props;
|
|
32
32
|
|
|
33
33
|
exports.DSErrorWithSchema = DSErrorWithSchema;
|
|
34
|
-
exports[
|
|
34
|
+
exports["default"] = DSError;
|
package/cjs/FormItem/Feedback.js
CHANGED
|
@@ -24,12 +24,12 @@ const DSLabel = ({
|
|
|
24
24
|
isGroup = false
|
|
25
25
|
}) => {
|
|
26
26
|
const Tag = isGroup ? 'legend' : 'label';
|
|
27
|
-
return /*#__PURE__*/_jsx__default[
|
|
27
|
+
return /*#__PURE__*/_jsx__default["default"](Tag, {
|
|
28
28
|
className: `${blockName}${isGroup ? ` ${blockName}--group` : ''}`,
|
|
29
29
|
htmlFor: htmlFor
|
|
30
|
-
}, void 0, truncateText ? /*#__PURE__*/_jsx__default[
|
|
30
|
+
}, void 0, truncateText ? /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
|
|
31
31
|
value: children || label
|
|
32
|
-
}) : /*#__PURE__*/_jsx__default[
|
|
32
|
+
}) : /*#__PURE__*/_jsx__default["default"](Text, {}, void 0, label), /*#__PURE__*/_jsx__default["default"](RequiredMark, {
|
|
33
33
|
optional: optional,
|
|
34
34
|
required: required
|
|
35
35
|
}));
|
|
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
10
|
|
|
11
11
|
/* eslint-disable consistent-return */
|
|
12
|
-
const Suffix = /*#__PURE__*/styled__default[
|
|
12
|
+
const Suffix = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
13
13
|
componentId: "sc-126c671-0"
|
|
14
14
|
})(["height:2.16rem;align-items:center;display:flex;", ""], props => {
|
|
15
15
|
if (props.label && !props.withFeedback) {
|
|
@@ -24,14 +24,14 @@ const Suffix = /*#__PURE__*/styled__default['default'].div.withConfig({
|
|
|
24
24
|
`;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const SuffixInputWrapper = /*#__PURE__*/styled__default[
|
|
27
|
+
const SuffixInputWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
28
28
|
componentId: "sc-126c671-1"
|
|
29
29
|
})(["padding-right:0.32rem;flex:1;"]);
|
|
30
|
-
const SuffixWrapper = /*#__PURE__*/styled__default[
|
|
30
|
+
const SuffixWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
31
31
|
componentId: "sc-126c671-2"
|
|
32
32
|
})(["display:flex;align-items:center;"]);
|
|
33
33
|
|
|
34
34
|
exports.Suffix = Suffix;
|
|
35
35
|
exports.SuffixInputWrapper = SuffixInputWrapper;
|
|
36
36
|
exports.SuffixWrapper = SuffixWrapper;
|
|
37
|
-
exports[
|
|
37
|
+
exports["default"] = Suffix;
|
|
@@ -9,7 +9,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
|
|
|
9
9
|
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
11
11
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
13
13
|
class ValidationFieldWrapper extends React.Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
@@ -105,7 +105,7 @@ class ValidationFieldWrapper extends React.Component {
|
|
|
105
105
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
_defineProperty__default[
|
|
108
|
+
_defineProperty__default["default"](ValidationFieldWrapper, "defaultProps", {
|
|
109
109
|
validateOnBlur: false,
|
|
110
110
|
validateOnChange: false,
|
|
111
111
|
name: '',
|
|
@@ -10,7 +10,7 @@ var variants = require('./variants.js');
|
|
|
10
10
|
const defaultProps = {
|
|
11
11
|
leftLabel: false,
|
|
12
12
|
floatingLabel: false,
|
|
13
|
-
inputComponent: DSTextBox[
|
|
13
|
+
inputComponent: DSTextBox["default"],
|
|
14
14
|
labelComponent: DSLabel,
|
|
15
15
|
feedbackComponent: Feedback,
|
|
16
16
|
hasError: false,
|
package/cjs/FormItem/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var variants = require('./variants.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.DSFormItemLayoutWithSchema = DSFormItemLayout.DSFormItemLayoutWithSchema;
|
|
12
|
-
exports
|
|
13
|
-
exports.DSError = DSError[
|
|
12
|
+
exports["default"] = DSFormItemLayout["default"];
|
|
13
|
+
exports.DSError = DSError["default"];
|
|
14
14
|
exports.DSErrorWithSchema = DSError.DSErrorWithSchema;
|
|
15
15
|
exports.FORMITEM_LAYOUT_VARIANTS = variants.FORMITEM_LAYOUT_VARIANTS;
|
package/cjs/Input/DSInput.js
CHANGED
|
@@ -18,7 +18,7 @@ const _excluded = ["containerProps", "id", "autoFocus", "disabled", "className",
|
|
|
18
18
|
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
20
20
|
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
22
22
|
|
|
23
23
|
const DSInput = _ref => {
|
|
24
24
|
let {
|
|
@@ -48,10 +48,11 @@ const DSInput = _ref => {
|
|
|
48
48
|
variant,
|
|
49
49
|
isShowElipsisActive = true
|
|
50
50
|
} = _ref,
|
|
51
|
-
otherProps = _objectWithoutProperties__default[
|
|
51
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
52
52
|
|
|
53
53
|
return /*#__PURE__*/jsxRuntime.jsx(InputImpl, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
54
54
|
"aria-label": otherProps['aria-label'],
|
|
55
|
+
"aria-describedby": otherProps['aria-describedby'],
|
|
55
56
|
autoFocus: autoFocus,
|
|
56
57
|
className: `${className} ${disabled ? 'input-disabled' : ''}`,
|
|
57
58
|
clearable: clearable,
|
|
@@ -82,4 +83,4 @@ const DSInput = _ref => {
|
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
exports.InputAddonWrapper = InputAddonWrapper;
|
|
85
|
-
exports[
|
|
86
|
+
exports["default"] = DSInput;
|
|
@@ -12,7 +12,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
14
14
|
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
16
16
|
const blockName = 'input-addon-wrapper';
|
|
17
17
|
const InputWrapper = dsClassnames.aggregatedClasses('div')(blockName);
|
|
18
18
|
const InputAddon = dsClassnames.aggregatedClasses('span')(blockName, 'addon', ({
|
|
@@ -60,7 +60,7 @@ class InputAddonWrapper extends React.Component {
|
|
|
60
60
|
classProps: classProps,
|
|
61
61
|
hasError: hasError
|
|
62
62
|
}, containerProps), {}, {
|
|
63
|
-
children: components.map((component, index) => component && /*#__PURE__*/React__default[
|
|
63
|
+
children: components.map((component, index) => component && /*#__PURE__*/React__default["default"].cloneElement(component, _objectSpread(_objectSpread({}, component.props), {}, {
|
|
64
64
|
key: index
|
|
65
65
|
})))
|
|
66
66
|
}));
|
|
@@ -76,7 +76,7 @@ class InputAddonWrapper extends React.Component {
|
|
|
76
76
|
variant,
|
|
77
77
|
containerProps
|
|
78
78
|
} = this.props;
|
|
79
|
-
const InputComponent = React__default[
|
|
79
|
+
const InputComponent = React__default["default"].Children.only(children);
|
|
80
80
|
const {
|
|
81
81
|
hasError,
|
|
82
82
|
readOnly,
|
|
@@ -100,7 +100,7 @@ class InputAddonWrapper extends React.Component {
|
|
|
100
100
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
_defineProperty__default[
|
|
103
|
+
_defineProperty__default["default"](InputAddonWrapper, "defaultProps", {
|
|
104
104
|
rightComponents: [],
|
|
105
105
|
leftComponents: [],
|
|
106
106
|
containerProps: {}
|
package/cjs/Input/InputImpl.js
CHANGED
|
@@ -30,7 +30,7 @@ var _CloseCircle;
|
|
|
30
30
|
|
|
31
31
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
32
32
|
|
|
33
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
33
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
34
34
|
const blockName = 'input';
|
|
35
35
|
const Input = dsClassnames.aggregatedClasses('input')(blockName, null, ({
|
|
36
36
|
clearable,
|
|
@@ -47,7 +47,7 @@ const InputCustomWrapper = dsClassnames.aggregatedClasses('div')(blockName, null
|
|
|
47
47
|
clearable,
|
|
48
48
|
value
|
|
49
49
|
}));
|
|
50
|
-
const ClearableButton = dsClassnames.aggregatedClasses(DSButton__default[
|
|
50
|
+
const ClearableButton = dsClassnames.aggregatedClasses(DSButton__default["default"])(blockName, 'clearable');
|
|
51
51
|
|
|
52
52
|
const getValidComponents = component => component;
|
|
53
53
|
|
|
@@ -57,11 +57,11 @@ class InputImpl extends React.Component {
|
|
|
57
57
|
constructor(props) {
|
|
58
58
|
super(props);
|
|
59
59
|
|
|
60
|
-
_defineProperty__default[
|
|
60
|
+
_defineProperty__default["default"](this, "ref", void 0);
|
|
61
61
|
|
|
62
|
-
_defineProperty__default[
|
|
62
|
+
_defineProperty__default["default"](this, "refTooltip", void 0);
|
|
63
63
|
|
|
64
|
-
_defineProperty__default[
|
|
64
|
+
_defineProperty__default["default"](this, "handleOnChange", e => {
|
|
65
65
|
const {
|
|
66
66
|
onChange,
|
|
67
67
|
max
|
|
@@ -74,12 +74,12 @@ class InputImpl extends React.Component {
|
|
|
74
74
|
|
|
75
75
|
if (this.ref.current) {
|
|
76
76
|
this.setState({
|
|
77
|
-
isEllipsisOn: this.ref.current.offsetWidth
|
|
77
|
+
isEllipsisOn: this.ref.current.offsetWidth < this.ref.current.scrollWidth
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
_defineProperty__default[
|
|
82
|
+
_defineProperty__default["default"](this, "handleBlur", e => {
|
|
83
83
|
const {
|
|
84
84
|
onBlur,
|
|
85
85
|
onChange,
|
|
@@ -103,7 +103,7 @@ class InputImpl extends React.Component {
|
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
|
|
106
|
-
_defineProperty__default[
|
|
106
|
+
_defineProperty__default["default"](this, "handleFocus", e => {
|
|
107
107
|
const {
|
|
108
108
|
onFocus
|
|
109
109
|
} = this.props;
|
|
@@ -113,7 +113,7 @@ class InputImpl extends React.Component {
|
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
_defineProperty__default[
|
|
116
|
+
_defineProperty__default["default"](this, "handleMouseEnter", () => {
|
|
117
117
|
if (!this.state.showTooltip) {
|
|
118
118
|
this.setState({
|
|
119
119
|
showTooltip: true
|
|
@@ -121,7 +121,7 @@ class InputImpl extends React.Component {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
_defineProperty__default[
|
|
124
|
+
_defineProperty__default["default"](this, "handleMouseLeave", () => {
|
|
125
125
|
if (this.state.showTooltip) {
|
|
126
126
|
this.setState({
|
|
127
127
|
showTooltip: false
|
|
@@ -129,7 +129,7 @@ class InputImpl extends React.Component {
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
_defineProperty__default[
|
|
132
|
+
_defineProperty__default["default"](this, "setWidth", () => {
|
|
133
133
|
const client = this.refTooltip.current.getBoundingClientRect();
|
|
134
134
|
this.setState({
|
|
135
135
|
width: client.width
|
|
@@ -142,8 +142,8 @@ class InputImpl extends React.Component {
|
|
|
142
142
|
active: false,
|
|
143
143
|
showTooltip: false
|
|
144
144
|
};
|
|
145
|
-
this.ref = /*#__PURE__*/React__default[
|
|
146
|
-
this.refTooltip = /*#__PURE__*/React__default[
|
|
145
|
+
this.ref = /*#__PURE__*/React__default["default"].createRef();
|
|
146
|
+
this.refTooltip = /*#__PURE__*/React__default["default"].createRef();
|
|
147
147
|
this.handleClear = this.handleClear.bind(this);
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -151,7 +151,7 @@ class InputImpl extends React.Component {
|
|
|
151
151
|
this.setWidth();
|
|
152
152
|
window.addEventListener('resize', this.setWidth);
|
|
153
153
|
this.setState({
|
|
154
|
-
isEllipsisOn: this.ref.current ? this.ref.current.offsetWidth
|
|
154
|
+
isEllipsisOn: this.ref.current ? this.ref.current.offsetWidth < this.ref.current.scrollWidth : false
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -186,11 +186,11 @@ class InputImpl extends React.Component {
|
|
|
186
186
|
disabled
|
|
187
187
|
} = this.props;
|
|
188
188
|
if (disabled) return null;
|
|
189
|
-
return clearable && value ? /*#__PURE__*/_jsx__default[
|
|
189
|
+
return clearable && value ? /*#__PURE__*/_jsx__default["default"](ClearableButton, {
|
|
190
190
|
buttonType: "text",
|
|
191
191
|
"data-testid": "ds-input_clearable-btn",
|
|
192
192
|
disabled: disabled,
|
|
193
|
-
icon: _CloseCircle || (_CloseCircle = /*#__PURE__*/_jsx__default[
|
|
193
|
+
icon: _CloseCircle || (_CloseCircle = /*#__PURE__*/_jsx__default["default"](CloseCircle__default["default"], {})),
|
|
194
194
|
onClick: this.handleClear
|
|
195
195
|
}) : null;
|
|
196
196
|
}
|
|
@@ -234,7 +234,7 @@ class InputImpl extends React.Component {
|
|
|
234
234
|
tabIndex,
|
|
235
235
|
hasError
|
|
236
236
|
} = _this$props,
|
|
237
|
-
rest = _objectWithoutProperties__default[
|
|
237
|
+
rest = _objectWithoutProperties__default["default"](_this$props, _excluded);
|
|
238
238
|
|
|
239
239
|
const {
|
|
240
240
|
width,
|
|
@@ -252,6 +252,7 @@ class InputImpl extends React.Component {
|
|
|
252
252
|
'aria-multiline': false,
|
|
253
253
|
'aria-autocomplete': 'none',
|
|
254
254
|
'data-testid': rest['data-testid'],
|
|
255
|
+
'aria-describedby': rest['aria-describedby'],
|
|
255
256
|
role,
|
|
256
257
|
id,
|
|
257
258
|
innerRef: _ref => {
|
|
@@ -317,11 +318,11 @@ class InputImpl extends React.Component {
|
|
|
317
318
|
});
|
|
318
319
|
|
|
319
320
|
if (isShowElipsisActive) {
|
|
320
|
-
InputComponent = /*#__PURE__*/_jsx__default[
|
|
321
|
+
InputComponent = /*#__PURE__*/_jsx__default["default"](DSTooltip__default["default"], {
|
|
321
322
|
isOpen: !disableTooltip && isEllipsisOn && !active && showTooltip && width,
|
|
322
323
|
title: String(value),
|
|
323
324
|
zIndex: 11,
|
|
324
|
-
triggerComponent: /*#__PURE__*/_jsx__default[
|
|
325
|
+
triggerComponent: /*#__PURE__*/_jsx__default["default"](WrapperForTooltipInput, {
|
|
325
326
|
style: {
|
|
326
327
|
width: '100%'
|
|
327
328
|
}
|
|
@@ -347,44 +348,44 @@ InputImpl.defaultProps = {
|
|
|
347
348
|
onFocus: noop
|
|
348
349
|
};
|
|
349
350
|
({
|
|
350
|
-
className: PropTypes__default[
|
|
351
|
-
customInputType: PropTypes__default[
|
|
352
|
-
id: PropTypes__default[
|
|
353
|
-
isShowElipsisActive: PropTypes__default[
|
|
354
|
-
max: PropTypes__default[
|
|
355
|
-
min: PropTypes__default[
|
|
356
|
-
name: PropTypes__default[
|
|
357
|
-
onBlur: PropTypes__default[
|
|
358
|
-
onChange: PropTypes__default[
|
|
359
|
-
onClick: PropTypes__default[
|
|
360
|
-
onFocus: PropTypes__default[
|
|
361
|
-
onKeyDown: PropTypes__default[
|
|
362
|
-
onKeyUp: PropTypes__default[
|
|
363
|
-
onMouseLeave: PropTypes__default[
|
|
364
|
-
onMouseOut: PropTypes__default[
|
|
365
|
-
onPaste: PropTypes__default[
|
|
366
|
-
onClear: PropTypes__default[
|
|
367
|
-
placeholder: PropTypes__default[
|
|
368
|
-
required: PropTypes__default[
|
|
369
|
-
role: PropTypes__default[
|
|
370
|
-
innerRef: PropTypes__default[
|
|
371
|
-
current: PropTypes__default[
|
|
351
|
+
className: PropTypes__default["default"].string,
|
|
352
|
+
customInputType: PropTypes__default["default"].func,
|
|
353
|
+
id: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
|
|
354
|
+
isShowElipsisActive: PropTypes__default["default"].bool,
|
|
355
|
+
max: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
|
|
356
|
+
min: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
|
|
357
|
+
name: PropTypes__default["default"].string,
|
|
358
|
+
onBlur: PropTypes__default["default"].func,
|
|
359
|
+
onChange: PropTypes__default["default"].func,
|
|
360
|
+
onClick: PropTypes__default["default"].func,
|
|
361
|
+
onFocus: PropTypes__default["default"].func,
|
|
362
|
+
onKeyDown: PropTypes__default["default"].func,
|
|
363
|
+
onKeyUp: PropTypes__default["default"].func,
|
|
364
|
+
onMouseLeave: PropTypes__default["default"].func,
|
|
365
|
+
onMouseOut: PropTypes__default["default"].func,
|
|
366
|
+
onPaste: PropTypes__default["default"].func,
|
|
367
|
+
onClear: PropTypes__default["default"].func,
|
|
368
|
+
placeholder: PropTypes__default["default"].string,
|
|
369
|
+
required: PropTypes__default["default"].bool,
|
|
370
|
+
role: PropTypes__default["default"].string,
|
|
371
|
+
innerRef: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].shape({
|
|
372
|
+
current: PropTypes__default["default"].any
|
|
372
373
|
})]),
|
|
373
|
-
maxLength: PropTypes__default[
|
|
374
|
-
minLength: PropTypes__default[
|
|
375
|
-
leftComponent: PropTypes__default[
|
|
376
|
-
rightComponent: PropTypes__default[
|
|
377
|
-
hasError: PropTypes__default[
|
|
378
|
-
disableTooltip: PropTypes__default[
|
|
379
|
-
readOnly: PropTypes__default[
|
|
380
|
-
disabled: PropTypes__default[
|
|
381
|
-
autoFocus: PropTypes__default[
|
|
382
|
-
type: PropTypes__default[
|
|
383
|
-
clearable: PropTypes__default[
|
|
384
|
-
containerProps: PropTypes__default[
|
|
374
|
+
maxLength: PropTypes__default["default"].number,
|
|
375
|
+
minLength: PropTypes__default["default"].number,
|
|
376
|
+
leftComponent: PropTypes__default["default"].element,
|
|
377
|
+
rightComponent: PropTypes__default["default"].element,
|
|
378
|
+
hasError: PropTypes__default["default"].bool,
|
|
379
|
+
disableTooltip: PropTypes__default["default"].bool,
|
|
380
|
+
readOnly: PropTypes__default["default"].bool,
|
|
381
|
+
disabled: PropTypes__default["default"].bool,
|
|
382
|
+
autoFocus: PropTypes__default["default"].bool,
|
|
383
|
+
type: PropTypes__default["default"].string,
|
|
384
|
+
clearable: PropTypes__default["default"].bool,
|
|
385
|
+
containerProps: PropTypes__default["default"].object,
|
|
385
386
|
// eslint-disable-next-line react/forbid-prop-types
|
|
386
|
-
style: PropTypes__default[
|
|
387
|
-
tabIndex: PropTypes__default[
|
|
387
|
+
style: PropTypes__default["default"].object,
|
|
388
|
+
tabIndex: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
|
|
388
389
|
|
|
389
390
|
// eslint-disable-next-line jsdoc/require-returns
|
|
390
391
|
|
package/cjs/Input/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
|
|
|
13
13
|
|
|
14
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
15
|
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
17
|
const blockName = 'input-addon-group';
|
|
18
18
|
const Container = dsClassnames.aggregatedClasses('div')(blockName);
|
|
19
19
|
const InputAddon = dsClassnames.aggregatedClasses('span')(blockName, 'addon');
|
|
@@ -21,7 +21,7 @@ class AddonWrapper extends React.Component {
|
|
|
21
21
|
constructor(...args) {
|
|
22
22
|
super(...args);
|
|
23
23
|
|
|
24
|
-
_defineProperty__default[
|
|
24
|
+
_defineProperty__default["default"](this, "state", {});
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
render() {
|
|
@@ -36,12 +36,12 @@ class AddonWrapper extends React.Component {
|
|
|
36
36
|
return /*#__PURE__*/jsxRuntime.jsxs(Container, _objectSpread(_objectSpread({
|
|
37
37
|
className: `${className} ${blockName}--${childType}`
|
|
38
38
|
}, containerProps), {}, {
|
|
39
|
-
children: [leftAddon && /*#__PURE__*/_jsx__default[
|
|
39
|
+
children: [leftAddon && /*#__PURE__*/_jsx__default["default"](InputAddon, {}, void 0, leftAddon), inputComponent, rightAddon && /*#__PURE__*/_jsx__default["default"](InputAddon, {}, void 0, rightAddon)]
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
_defineProperty__default[
|
|
45
|
+
_defineProperty__default["default"](AddonWrapper, "defaultProps", {});
|
|
46
46
|
|
|
47
47
|
module.exports = AddonWrapper;
|
package/cjs/InputGroup/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const _excluded = ["aria-label", "autoFocus", "innerRef", "mask", "pipe", "value
|
|
|
23
23
|
|
|
24
24
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
25
25
|
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27
27
|
|
|
28
28
|
const isStringMask = mask => typeof mask === 'string';
|
|
29
29
|
|
|
@@ -55,7 +55,7 @@ const DSInputMask = _ref => {
|
|
|
55
55
|
pipe,
|
|
56
56
|
value: valueOrEvent
|
|
57
57
|
} = _ref,
|
|
58
|
-
rest = _objectWithoutProperties__default[
|
|
58
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
59
59
|
|
|
60
60
|
const [rawValue, setRawValue] = React.useState(getValueFromEventOrString(valueOrEvent));
|
|
61
61
|
React.useEffect(() => {
|
|
@@ -132,4 +132,4 @@ exports.MASK_TYPES = MaskTypes.MASK_TYPES;
|
|
|
132
132
|
exports.MASK_PIPES = MaskPipes.MASK_PIPES;
|
|
133
133
|
exports.DSInputMask = DSInputMask;
|
|
134
134
|
exports.DSInputMaskWithSchema = DSInputMaskWithSchema;
|
|
135
|
-
exports[
|
|
135
|
+
exports["default"] = DSInputMask;
|