@elliemae/ds-form 2.0.0-alpha.5 → 2.0.0-alpha.9
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 +3 -3
- package/cjs/Input/InputAddonWrapper.js +4 -4
- package/cjs/Input/InputImpl.js +55 -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 +7 -7
- 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 +4 -4
- 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/InputImpl.js +2 -2
- package/esm/Radio/DSRadio.js +1 -1
- package/package.json +17 -17
|
@@ -19,7 +19,7 @@ const _excluded = ["autoFocus", "style", "disabled", "className", "name", "maxLe
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
-
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[
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
24
|
const getValueFromEventOrString = e => {
|
|
25
25
|
let value = e;
|
|
@@ -86,11 +86,11 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
86
86
|
constructor(props) {
|
|
87
87
|
super(props);
|
|
88
88
|
|
|
89
|
-
_defineProperty__default[
|
|
89
|
+
_defineProperty__default["default"](this, "lastkey", null);
|
|
90
90
|
|
|
91
|
-
_defineProperty__default[
|
|
91
|
+
_defineProperty__default["default"](this, "lastkeycode", null);
|
|
92
92
|
|
|
93
|
-
_defineProperty__default[
|
|
93
|
+
_defineProperty__default["default"](this, "conformValue", (rawValueOrEvent, currentCaretPosition, {
|
|
94
94
|
skipCaretPositioning = false,
|
|
95
95
|
skipOnChangeCallback = false
|
|
96
96
|
} = {}) => {
|
|
@@ -201,7 +201,7 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
_defineProperty__default[
|
|
204
|
+
_defineProperty__default["default"](this, "handleOnChange", e => {
|
|
205
205
|
var _e$target;
|
|
206
206
|
|
|
207
207
|
const rawValue = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '';
|
|
@@ -212,7 +212,7 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
212
212
|
this.conformValue(rawValue, currentCaretPosition);
|
|
213
213
|
});
|
|
214
214
|
|
|
215
|
-
_defineProperty__default[
|
|
215
|
+
_defineProperty__default["default"](this, "handleKeyDown", e => {
|
|
216
216
|
e.stopPropagation();
|
|
217
217
|
const {
|
|
218
218
|
onKeyDown
|
|
@@ -222,7 +222,7 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
222
222
|
onKeyDown(e);
|
|
223
223
|
});
|
|
224
224
|
|
|
225
|
-
_defineProperty__default[
|
|
225
|
+
_defineProperty__default["default"](this, "handleBlur", e => {
|
|
226
226
|
const {
|
|
227
227
|
onBlur
|
|
228
228
|
} = this.props;
|
|
@@ -232,7 +232,7 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
232
232
|
onBlur(e);
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
this.inputref = /*#__PURE__*/React__default[
|
|
235
|
+
this.inputref = /*#__PURE__*/React__default["default"].createRef();
|
|
236
236
|
this.state = {
|
|
237
237
|
maskedValue: '',
|
|
238
238
|
previousConformedValue: ''
|
|
@@ -319,7 +319,7 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
319
319
|
rightComponent,
|
|
320
320
|
value
|
|
321
321
|
} = _this$props,
|
|
322
|
-
rest = _objectWithoutProperties__default[
|
|
322
|
+
rest = _objectWithoutProperties__default["default"](_this$props, _excluded);
|
|
323
323
|
|
|
324
324
|
const {
|
|
325
325
|
maskedValue,
|
|
@@ -333,7 +333,7 @@ class DSInputMaskDeprecated extends React.Component {
|
|
|
333
333
|
|
|
334
334
|
const propsValue = getValueFromEventOrString(value);
|
|
335
335
|
const finalValue = typeof propsValue === 'string' || typeof propsValue === 'number' ? propsValue : maskedValue;
|
|
336
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
336
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
337
337
|
"aria-label": rest['aria-label'],
|
|
338
338
|
className: className,
|
|
339
339
|
clearable: clearable,
|
|
@@ -8,7 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
10
|
|
|
11
|
-
const InputMaskContext = /*#__PURE__*/React__default[
|
|
11
|
+
const InputMaskContext = /*#__PURE__*/React__default["default"].createContext({
|
|
12
12
|
rawValue: '',
|
|
13
13
|
setRawValue: () => null,
|
|
14
14
|
rawMask: null,
|
|
@@ -10,7 +10,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
|
|
|
10
10
|
|
|
11
11
|
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; }
|
|
12
12
|
|
|
13
|
-
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[
|
|
13
|
+
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; }
|
|
14
14
|
|
|
15
15
|
/* eslint-disable no-unused-vars */
|
|
16
16
|
const MASK_TYPES = {
|
package/cjs/InputMask/index.js
CHANGED
|
@@ -10,6 +10,6 @@ var MaskPipes = require('./MaskPipes.js');
|
|
|
10
10
|
|
|
11
11
|
exports.DSInputMask = DSInputMask.DSInputMask;
|
|
12
12
|
exports.DSInputMaskWithSchema = DSInputMask.DSInputMaskWithSchema;
|
|
13
|
-
exports
|
|
13
|
+
exports["default"] = DSInputMask.DSInputMask;
|
|
14
14
|
exports.MASK_TYPES = MaskTypes.MASK_TYPES;
|
|
15
15
|
exports.MASK_PIPES = MaskPipes.MASK_PIPES;
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos, lastkeycode) => {
|
|
22
22
|
const nextMaskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9').slice(0, 8);
|
|
@@ -85,7 +85,7 @@ const DateInputMask = _ref => {
|
|
|
85
85
|
rightComponent,
|
|
86
86
|
value
|
|
87
87
|
} = _ref,
|
|
88
|
-
rest = _objectWithoutProperties__default[
|
|
88
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
89
89
|
|
|
90
90
|
const inputRef = React.useRef();
|
|
91
91
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -148,7 +148,7 @@ const DateInputMask = _ref => {
|
|
|
148
148
|
setFocus(false);
|
|
149
149
|
onBlur(e);
|
|
150
150
|
}, [onBlur]);
|
|
151
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
151
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
152
152
|
className: className,
|
|
153
153
|
clearable: clearable,
|
|
154
154
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos, lastkeycode) => {
|
|
22
22
|
const nextMaskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9').slice(0, 12);
|
|
@@ -90,7 +90,7 @@ const DateTimeInputMask = _ref => {
|
|
|
90
90
|
rightComponent,
|
|
91
91
|
value
|
|
92
92
|
} = _ref,
|
|
93
|
-
rest = _objectWithoutProperties__default[
|
|
93
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
94
94
|
|
|
95
95
|
const inputRef = React.useRef();
|
|
96
96
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -153,7 +153,7 @@ const DateTimeInputMask = _ref => {
|
|
|
153
153
|
setFocus(false);
|
|
154
154
|
onBlur(e);
|
|
155
155
|
}, [onBlur]);
|
|
156
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
156
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
157
157
|
className: className,
|
|
158
158
|
clearable: clearable,
|
|
159
159
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const startsWith = (a, b, ignoreCase) => {
|
|
22
22
|
if (ignoreCase) {
|
|
@@ -83,7 +83,7 @@ const DictionaryInputMask = _ref => {
|
|
|
83
83
|
rightComponent,
|
|
84
84
|
value
|
|
85
85
|
} = _ref,
|
|
86
|
-
rest = _objectWithoutProperties__default[
|
|
86
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
87
87
|
|
|
88
88
|
const inputRef = React.useRef();
|
|
89
89
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -146,7 +146,7 @@ const DictionaryInputMask = _ref => {
|
|
|
146
146
|
setFocus(false);
|
|
147
147
|
onBlur(e);
|
|
148
148
|
}, [onBlur]);
|
|
149
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
149
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
150
150
|
className: className,
|
|
151
151
|
clearable: clearable,
|
|
152
152
|
disabled: disabled,
|
|
@@ -17,7 +17,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
-
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[
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
22
|
const addThousandsSeparator = (n, thousandsSeparatorSymbol) => n.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparatorSymbol);
|
|
23
23
|
|
|
@@ -164,7 +164,7 @@ const NumberInputMask = _ref => {
|
|
|
164
164
|
type,
|
|
165
165
|
value
|
|
166
166
|
} = _ref,
|
|
167
|
-
rest = _objectWithoutProperties__default[
|
|
167
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
168
168
|
|
|
169
169
|
const inputRef = React.useRef();
|
|
170
170
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -251,7 +251,7 @@ const NumberInputMask = _ref => {
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
}, [maskedValue, requireDecimal, suffix, decimalLimit, onBlur]);
|
|
254
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
254
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
255
255
|
className: className,
|
|
256
256
|
clearable: clearable,
|
|
257
257
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos, lastkeycode) => {
|
|
22
22
|
let nextMaskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9');
|
|
@@ -89,7 +89,7 @@ const PhoneInputMask = _ref => {
|
|
|
89
89
|
rightComponent,
|
|
90
90
|
value
|
|
91
91
|
} = _ref,
|
|
92
|
-
rest = _objectWithoutProperties__default[
|
|
92
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
93
93
|
|
|
94
94
|
const inputRef = React.useRef();
|
|
95
95
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -152,7 +152,7 @@ const PhoneInputMask = _ref => {
|
|
|
152
152
|
setFocus(false);
|
|
153
153
|
onBlur(e);
|
|
154
154
|
}, [onBlur]);
|
|
155
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
155
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
156
156
|
className: className,
|
|
157
157
|
clearable: clearable,
|
|
158
158
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos, lastkeycode) => {
|
|
22
22
|
let nextMaskedValue = rawValue.split('+1').slice(-1)[0].split('').filter(char => char >= '0' && char <= '9');
|
|
@@ -89,7 +89,7 @@ const PhoneInternationalInputMask = _ref => {
|
|
|
89
89
|
rightComponent,
|
|
90
90
|
value
|
|
91
91
|
} = _ref,
|
|
92
|
-
rest = _objectWithoutProperties__default[
|
|
92
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
93
93
|
|
|
94
94
|
const inputRef = React.useRef();
|
|
95
95
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -152,7 +152,7 @@ const PhoneInternationalInputMask = _ref => {
|
|
|
152
152
|
setFocus(false);
|
|
153
153
|
onBlur(e);
|
|
154
154
|
}, [onBlur]);
|
|
155
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
155
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
156
156
|
className: className,
|
|
157
157
|
clearable: clearable,
|
|
158
158
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos, lastkeycode) => {
|
|
22
22
|
const nextMaskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9').slice(0, 9);
|
|
@@ -85,7 +85,7 @@ const SsnInputMask = _ref => {
|
|
|
85
85
|
rightComponent,
|
|
86
86
|
value
|
|
87
87
|
} = _ref,
|
|
88
|
-
rest = _objectWithoutProperties__default[
|
|
88
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
89
89
|
|
|
90
90
|
const inputRef = React.useRef();
|
|
91
91
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -148,7 +148,7 @@ const SsnInputMask = _ref => {
|
|
|
148
148
|
setFocus(false);
|
|
149
149
|
onBlur(e);
|
|
150
150
|
}, [onBlur]);
|
|
151
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
151
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
152
152
|
className: className,
|
|
153
153
|
clearable: clearable,
|
|
154
154
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos) => {
|
|
22
22
|
const nextMaskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9').slice(0, 5);
|
|
@@ -66,7 +66,7 @@ const UsZipCodeInputMask = _ref => {
|
|
|
66
66
|
rightComponent,
|
|
67
67
|
value
|
|
68
68
|
} = _ref,
|
|
69
|
-
rest = _objectWithoutProperties__default[
|
|
69
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
70
70
|
|
|
71
71
|
const inputRef = React.useRef();
|
|
72
72
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -129,7 +129,7 @@ const UsZipCodeInputMask = _ref => {
|
|
|
129
129
|
setFocus(false);
|
|
130
130
|
onBlur(e);
|
|
131
131
|
}, [onBlur]);
|
|
132
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
132
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
133
133
|
className: className,
|
|
134
134
|
clearable: clearable,
|
|
135
135
|
disabled: disabled,
|
|
@@ -16,7 +16,7 @@ const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCurs
|
|
|
16
16
|
|
|
17
17
|
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; }
|
|
18
18
|
|
|
19
|
-
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[
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
21
|
const conformValue = (rawValue, cursorPos, lastkeycode) => {
|
|
22
22
|
const nextMaskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9').slice(0, 9);
|
|
@@ -85,7 +85,7 @@ const ZipCodeSearchInputMask = _ref => {
|
|
|
85
85
|
rightComponent,
|
|
86
86
|
value
|
|
87
87
|
} = _ref,
|
|
88
|
-
rest = _objectWithoutProperties__default[
|
|
88
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
89
89
|
|
|
90
90
|
const inputRef = React.useRef();
|
|
91
91
|
const [maskedValue, setMaskedValue] = React.useState(value);
|
|
@@ -148,7 +148,7 @@ const ZipCodeSearchInputMask = _ref => {
|
|
|
148
148
|
setFocus(false);
|
|
149
149
|
onBlur(e);
|
|
150
150
|
}, [onBlur]);
|
|
151
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox[
|
|
151
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSTextBox["default"], _objectSpread(_objectSpread({}, rest), {}, {
|
|
152
152
|
className: className,
|
|
153
153
|
clearable: clearable,
|
|
154
154
|
disabled: disabled,
|
|
@@ -27,7 +27,7 @@ const _excluded = ["ignoreCase"],
|
|
|
27
27
|
|
|
28
28
|
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; }
|
|
29
29
|
|
|
30
|
-
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[
|
|
30
|
+
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; }
|
|
31
31
|
const dollarSign = '$';
|
|
32
32
|
const percentSign = '%';
|
|
33
33
|
const emptyString = '';
|
|
@@ -40,7 +40,7 @@ const OutOfTheBoxMaskTypes = {
|
|
|
40
40
|
let {
|
|
41
41
|
ignoreCase = true
|
|
42
42
|
} = _ref,
|
|
43
|
-
rest = _objectWithoutProperties__default[
|
|
43
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
44
44
|
|
|
45
45
|
return /*#__PURE__*/jsxRuntime.jsx(DictionaryInputMask, _objectSpread({
|
|
46
46
|
ignoreCase: ignoreCase
|
|
@@ -60,7 +60,7 @@ const OutOfTheBoxMaskTypes = {
|
|
|
60
60
|
allowLeadingZeroes = false,
|
|
61
61
|
integerLimit = null
|
|
62
62
|
} = _ref2,
|
|
63
|
-
rest = _objectWithoutProperties__default[
|
|
63
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded2);
|
|
64
64
|
|
|
65
65
|
return /*#__PURE__*/jsxRuntime.jsx(NumberInputMask, _objectSpread({
|
|
66
66
|
prefix: prefix,
|
|
@@ -90,7 +90,7 @@ const OutOfTheBoxMaskTypes = {
|
|
|
90
90
|
allowLeadingZeroes = false,
|
|
91
91
|
integerLimit = null
|
|
92
92
|
} = _ref3,
|
|
93
|
-
rest = _objectWithoutProperties__default[
|
|
93
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded3);
|
|
94
94
|
|
|
95
95
|
return /*#__PURE__*/jsxRuntime.jsx(NumberInputMask, _objectSpread({
|
|
96
96
|
prefix: prefix,
|
|
@@ -34,12 +34,12 @@ const _excluded = ["leftAddon", "rightAddon", "onChange", "value", "readOnly", "
|
|
|
34
34
|
|
|
35
35
|
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; }
|
|
36
36
|
|
|
37
|
-
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[
|
|
37
|
+
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; }
|
|
38
38
|
const ADDON_ICON_OPTIONS = {
|
|
39
|
-
LockUnlocked: /*#__PURE__*/_jsx__default[
|
|
40
|
-
LockLocked: /*#__PURE__*/_jsx__default[
|
|
41
|
-
VisibleView: /*#__PURE__*/_jsx__default[
|
|
42
|
-
InvisibleHide: /*#__PURE__*/_jsx__default[
|
|
39
|
+
LockUnlocked: /*#__PURE__*/_jsx__default["default"](LockUnlocked__default["default"], {}),
|
|
40
|
+
LockLocked: /*#__PURE__*/_jsx__default["default"](LockLocked__default["default"], {}),
|
|
41
|
+
VisibleView: /*#__PURE__*/_jsx__default["default"](VisibleView__default["default"], {}),
|
|
42
|
+
InvisibleHide: /*#__PURE__*/_jsx__default["default"](InvisibleHide__default["default"], {})
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
const DSInputProtected = _ref => {
|
|
@@ -53,7 +53,7 @@ const DSInputProtected = _ref => {
|
|
|
53
53
|
type,
|
|
54
54
|
placeholderChar = undefined
|
|
55
55
|
} = _ref,
|
|
56
|
-
rest = _objectWithoutProperties__default[
|
|
56
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
57
57
|
|
|
58
58
|
const left = leftAddon && ADDON_ICON_OPTIONS[leftAddon];
|
|
59
59
|
const right = rightAddon && ADDON_ICON_OPTIONS[rightAddon];
|
|
@@ -69,15 +69,15 @@ const DSInputProtected = _ref => {
|
|
|
69
69
|
const handleRight = React.useCallback(() => {
|
|
70
70
|
setHidden(!inputHidden);
|
|
71
71
|
}, [rightAddon, inputHidden]);
|
|
72
|
-
return /*#__PURE__*/_jsx__default[
|
|
73
|
-
leftAddon: left ? /*#__PURE__*/_jsx__default[
|
|
72
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {}, void 0, /*#__PURE__*/_jsx__default["default"](DSInputGroup["default"], {
|
|
73
|
+
leftAddon: left ? /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
74
74
|
"aria-label": `${inputLocked ? 'Allow' : 'Disallow'} Edition`,
|
|
75
75
|
buttonType: "secondary",
|
|
76
76
|
icon: ADDON_ICON_OPTIONS[inputLocked ? options.LEFT_ADDON_OPTIONS.LockUnlocked : options.LEFT_ADDON_OPTIONS.LockLocked],
|
|
77
77
|
onClick: handleLeft
|
|
78
78
|
}) : undefined,
|
|
79
79
|
readOnly: left ? inputLocked : readOnly,
|
|
80
|
-
rightAddon: right ? /*#__PURE__*/_jsx__default[
|
|
80
|
+
rightAddon: right ? /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
81
81
|
"aria-label": `${inputHidden ? 'Show' : 'Hide'} Characters`,
|
|
82
82
|
buttonType: "secondary",
|
|
83
83
|
icon: ADDON_ICON_OPTIONS[inputHidden ? options.RIGHT_ADDON_OPTIONS.VisibleView : options.RIGHT_ADDON_OPTIONS.InvisibleHide],
|
|
@@ -103,4 +103,4 @@ InputProtectedWithSchema.propTypes = props.inputProtectedProps;
|
|
|
103
103
|
exports.LEFT_ADDON_OPTIONS = options.LEFT_ADDON_OPTIONS;
|
|
104
104
|
exports.RIGHT_ADDON_OPTIONS = options.RIGHT_ADDON_OPTIONS;
|
|
105
105
|
exports.InputProtectedWithSchema = InputProtectedWithSchema;
|
|
106
|
-
exports[
|
|
106
|
+
exports["default"] = DSInputProtected;
|
|
@@ -8,6 +8,6 @@ var options = require('./options.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.InputProtectedWithSchema = DSInputProtected.InputProtectedWithSchema;
|
|
11
|
-
exports
|
|
11
|
+
exports["default"] = DSInputProtected["default"];
|
|
12
12
|
exports.LEFT_ADDON_OPTIONS = options.LEFT_ADDON_OPTIONS;
|
|
13
13
|
exports.RIGHT_ADDON_OPTIONS = options.RIGHT_ADDON_OPTIONS;
|
|
@@ -18,7 +18,7 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
|
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
|
const CounterArea = dsClassnames.aggregatedClasses('div')('counter', 'textarea', ({
|
|
23
23
|
limitError
|
|
24
24
|
}) => ({
|
|
@@ -77,7 +77,7 @@ const DSLargeInputText = ({
|
|
|
77
77
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
78
78
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
79
79
|
className: `${cssClassName} ${className}`,
|
|
80
|
-
children: /*#__PURE__*/_jsx__default[
|
|
80
|
+
children: /*#__PURE__*/_jsx__default["default"]("div", {
|
|
81
81
|
className: classNameBlock('wrapper')
|
|
82
82
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx("textarea", {
|
|
83
83
|
ref: innerRef,
|
|
@@ -110,7 +110,7 @@ const DSLargeInputText = ({
|
|
|
110
110
|
value: value,
|
|
111
111
|
tabIndex: tabIndex
|
|
112
112
|
}))
|
|
113
|
-
})), characterLimitCounter > 0 && /*#__PURE__*/_jsx__default[
|
|
113
|
+
})), characterLimitCounter > 0 && /*#__PURE__*/_jsx__default["default"](CounterArea, {
|
|
114
114
|
classProps: {
|
|
115
115
|
limitError
|
|
116
116
|
},
|
|
@@ -124,4 +124,4 @@ const DSLargeInputTextWithSchema = reactDesc.describe(DSLargeInputText).descript
|
|
|
124
124
|
DSLargeInputTextWithSchema.propTypes = props.props;
|
|
125
125
|
|
|
126
126
|
exports.DSLargeInputTextWithSchema = DSLargeInputTextWithSchema;
|
|
127
|
-
exports[
|
|
127
|
+
exports["default"] = DSLargeInputText;
|
package/cjs/Radio/Circle.js
CHANGED
|
@@ -13,10 +13,10 @@ const Circle = ({
|
|
|
13
13
|
theme
|
|
14
14
|
}) => {
|
|
15
15
|
const r = theme.breakpoints.medium.split('px')[0] - window.innerWidth >= 0 ? 6 : 4;
|
|
16
|
-
return /*#__PURE__*/_jsx__default[
|
|
16
|
+
return /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
17
17
|
width: "100%",
|
|
18
18
|
height: "100%"
|
|
19
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
19
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
20
20
|
className: checked ? 'checked' : 'unchecked',
|
|
21
21
|
r: r,
|
|
22
22
|
cx: "50%",
|
package/cjs/Radio/DSRadio.js
CHANGED
|
@@ -21,7 +21,7 @@ const _excluded = ["containerProps", "className", "style", "labelText", "htmlFor
|
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
|
-
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[
|
|
24
|
+
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; }
|
|
25
25
|
|
|
26
26
|
const DSRadio = _ref => {
|
|
27
27
|
let {
|
|
@@ -40,7 +40,7 @@ const DSRadio = _ref => {
|
|
|
40
40
|
children,
|
|
41
41
|
tabIndex
|
|
42
42
|
} = _ref,
|
|
43
|
-
otherProps = _objectWithoutProperties__default[
|
|
43
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
44
44
|
|
|
45
45
|
const {
|
|
46
46
|
cssClassName,
|
|
@@ -53,7 +53,7 @@ const DSRadio = _ref => {
|
|
|
53
53
|
const checkRef = React.useRef(null);
|
|
54
54
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
55
55
|
className: cssClassName,
|
|
56
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
56
|
+
children: [/*#__PURE__*/_jsx__default["default"]("label", {
|
|
57
57
|
className: classNameElement('label'),
|
|
58
58
|
htmlFor: htmlFor
|
|
59
59
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx("input", _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
@@ -74,7 +74,7 @@ const DSRadio = _ref => {
|
|
|
74
74
|
value: value
|
|
75
75
|
})), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
76
76
|
ref: otherProps.innerRef,
|
|
77
|
-
"aria-checked":
|
|
77
|
+
"aria-checked": checked,
|
|
78
78
|
"aria-disabled": disabled,
|
|
79
79
|
className: classNameElement('input-button'),
|
|
80
80
|
onKeyDown: e => {
|
|
@@ -91,12 +91,12 @@ const DSRadio = _ref => {
|
|
|
91
91
|
style: style,
|
|
92
92
|
tabIndex: tabIndex,
|
|
93
93
|
value: value,
|
|
94
|
-
children: /*#__PURE__*/_jsx__default[
|
|
94
|
+
children: /*#__PURE__*/_jsx__default["default"](Circle, {
|
|
95
95
|
checked: checked
|
|
96
96
|
})
|
|
97
|
-
}), /*#__PURE__*/_jsx__default[
|
|
97
|
+
}), /*#__PURE__*/_jsx__default["default"]("span", {
|
|
98
98
|
className: classNameElement('label-text')
|
|
99
|
-
}, void 0, labelText)), children && /*#__PURE__*/_jsx__default[
|
|
99
|
+
}, void 0, labelText)), children && /*#__PURE__*/_jsx__default["default"]("div", {
|
|
100
100
|
className: classNameElement('radio-children')
|
|
101
101
|
}, void 0, children)]
|
|
102
102
|
}));
|
|
@@ -177,4 +177,4 @@ const DSRadioWithSchema = reactDesc.describe(DSRadio).description('Radio button
|
|
|
177
177
|
DSRadioWithSchema.propTypes = radioProps;
|
|
178
178
|
|
|
179
179
|
exports.DSRadioWithSchema = DSRadioWithSchema;
|
|
180
|
-
exports[
|
|
180
|
+
exports["default"] = DSRadio;
|
package/cjs/Radio/index.js
CHANGED