@elliemae/ds-form 2.0.0-next.1 → 2.0.0-next.6
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 +5 -5
- package/cjs/CheckboxGroup/DSCheckboxGroup.js +3 -3
- package/cjs/ComboBox/v1/DSComboBox.js +5 -4
- package/cjs/ComboBox/v1/components/MenuList.js +2 -1
- package/cjs/ComboBox/v1/components/MultiSelectHeader.js +1 -1
- package/cjs/ComboBox/v1/components/getoptions.js +2 -0
- package/cjs/ComboBox/v1/withSelectStringValueConverter.js +1 -0
- package/cjs/ComboBox/v2/Combobox.js +4 -3
- package/cjs/ComboBox/v2/components/DropdownIndicator.js +2 -1
- package/cjs/ComboBox/v2/components/MenuList.js +2 -1
- package/cjs/ComboBox/v2/components/MultiSelectHeader.js +1 -1
- package/cjs/ComboBox/v2/components/ValueContainer.js +1 -0
- package/cjs/ComboBox/v2/components/getoptions.js +2 -0
- package/cjs/ComboBox/v2/components/useMenuListHeight.js +2 -0
- package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +1 -1
- package/cjs/DateInput/DSDateInput.js +2 -1
- package/cjs/DateInput/components/DateInputs.js +1 -0
- package/cjs/DateInput/components/utils.js +2 -2
- package/cjs/DateInputV2/components/DateInputs.js +5 -4
- package/cjs/DateInputV2/components/styled.js +2 -8
- package/cjs/DateInputV2/components/utils.js +2 -2
- package/cjs/FloatingLabelInput/getSvgPath.js +3 -1
- package/cjs/FormItem/DSFormItemLayout.js +2 -2
- package/cjs/FormItem/Label/DSLabel.js +1 -1
- package/cjs/FormItem/Suffix/Suffix.js +2 -6
- package/cjs/Input/DSInput.js +1 -1
- package/cjs/Input/InputAddonWrapper.js +1 -0
- package/cjs/Input/InputImpl.js +2 -2
- package/cjs/InputGroup/AddonWrapper.js +2 -1
- package/cjs/InputMask/DSInputMask.js +1 -0
- package/cjs/InputMask/mask_types/DateInputMask.js +1 -0
- package/cjs/InputMask/mask_types/DateTimeInputMask.js +1 -0
- package/cjs/InputMask/mask_types/DictionaryInputMask.js +1 -0
- package/cjs/InputMask/mask_types/NumberInputMask.js +2 -1
- package/cjs/InputMask/mask_types/PhoneInputMask.js +1 -0
- package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +1 -0
- package/cjs/InputMask/mask_types/SsnInputMask.js +1 -0
- package/cjs/InputMask/mask_types/UsZipCodeInputMask.js +1 -0
- package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +1 -0
- package/cjs/InputMask/props.js +1 -2
- package/cjs/InputProtected/DSInputProtected.js +3 -2
- package/cjs/InputProtected/props.js +1 -2
- package/cjs/LargeInputText/DSLargeInputText.js +2 -2
- package/cjs/RadioGroup/DSRadioGroup.js +3 -3
- package/cjs/RequiredMark/RequiredMark.js +2 -2
- package/cjs/SearchBox/NavSearchBox.js +1 -1
- package/cjs/SearchBox/SearchBoxToggle.js +3 -10
- package/cjs/SearchBox/useSearch.js +1 -0
- package/cjs/TextBox/DSTextBox.js +1 -1
- package/cjs/TimeInput/TimeInputs.js +1 -0
- package/cjs/Toggle/DSToggleImpl.js +1 -1
- package/cjs/Toggle/DSToggleRender.js +2 -2
- package/esm/Checkbox/DSCheckbox.js +5 -5
- package/esm/CheckboxGroup/DSCheckboxGroup.js +3 -3
- package/esm/ComboBox/v1/DSComboBox.js +5 -4
- package/esm/ComboBox/v1/components/MenuList.js +2 -1
- package/esm/ComboBox/v1/components/MultiSelectHeader.js +1 -1
- package/esm/ComboBox/v1/components/getoptions.js +2 -0
- package/esm/ComboBox/v1/withSelectStringValueConverter.js +1 -0
- package/esm/ComboBox/v2/Combobox.js +4 -3
- package/esm/ComboBox/v2/components/DropdownIndicator.js +2 -1
- package/esm/ComboBox/v2/components/MenuList.js +2 -1
- package/esm/ComboBox/v2/components/MultiSelectHeader.js +1 -1
- package/esm/ComboBox/v2/components/ValueContainer.js +1 -0
- package/esm/ComboBox/v2/components/getoptions.js +2 -0
- package/esm/ComboBox/v2/components/useMenuListHeight.js +2 -0
- package/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +1 -1
- package/esm/DateInput/DSDateInput.js +2 -1
- package/esm/DateInput/components/DateInputs.js +1 -0
- package/esm/DateInput/components/utils.js +2 -2
- package/esm/DateInputV2/components/DateInputs.js +5 -4
- package/esm/DateInputV2/components/styled.js +2 -8
- package/esm/DateInputV2/components/utils.js +2 -2
- package/esm/FloatingLabelInput/getSvgPath.js +3 -1
- package/esm/FormItem/DSFormItemLayout.js +2 -2
- package/esm/FormItem/Label/DSLabel.js +1 -1
- package/esm/FormItem/Suffix/Suffix.js +2 -6
- package/esm/Input/DSInput.js +1 -1
- package/esm/Input/InputAddonWrapper.js +1 -0
- package/esm/Input/InputImpl.js +2 -2
- package/esm/InputGroup/AddonWrapper.js +2 -1
- package/esm/InputMask/DSInputMask.js +1 -0
- package/esm/InputMask/mask_types/DateInputMask.js +1 -0
- package/esm/InputMask/mask_types/DateTimeInputMask.js +1 -0
- package/esm/InputMask/mask_types/DictionaryInputMask.js +1 -0
- package/esm/InputMask/mask_types/NumberInputMask.js +2 -1
- package/esm/InputMask/mask_types/PhoneInputMask.js +1 -0
- package/esm/InputMask/mask_types/PhoneInternationalInputMask.js +1 -0
- package/esm/InputMask/mask_types/SsnInputMask.js +1 -0
- package/esm/InputMask/mask_types/UsZipCodeInputMask.js +1 -0
- package/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +1 -0
- package/esm/InputMask/props.js +1 -2
- package/esm/InputProtected/DSInputProtected.js +3 -2
- package/esm/InputProtected/props.js +1 -2
- package/esm/LargeInputText/DSLargeInputText.js +2 -2
- package/esm/RadioGroup/DSRadioGroup.js +3 -3
- package/esm/RequiredMark/RequiredMark.js +2 -2
- package/esm/SearchBox/NavSearchBox.js +1 -1
- package/esm/SearchBox/SearchBoxToggle.js +3 -10
- package/esm/SearchBox/useSearch.js +1 -0
- package/esm/TextBox/DSTextBox.js +1 -1
- package/esm/TimeInput/TimeInputs.js +1 -0
- package/esm/Toggle/DSToggleImpl.js +1 -1
- package/esm/Toggle/DSToggleRender.js +2 -2
- package/package.json +17 -17
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
1
2
|
import { addLeadingZeros } from '@elliemae/ds-utilities/timeUtils';
|
|
2
3
|
import { parseInt, isNaN } from '@elliemae/ds-utilities/utils';
|
|
3
4
|
import moment from 'moment';
|
|
4
5
|
|
|
5
|
-
/* eslint-disable max-params */
|
|
6
6
|
const currentYear = new Date().getFullYear();
|
|
7
7
|
|
|
8
8
|
const getNextSibling = (elem, selector) => {
|
|
@@ -208,7 +208,7 @@ const handleCompletedDate = (time, date, show, INTERNAL_V2_NO_MUTATION) => {
|
|
|
208
208
|
showDay
|
|
209
209
|
} = show;
|
|
210
210
|
if (time && !year && !month && !day) return '';
|
|
211
|
-
newDate.value =
|
|
211
|
+
newDate.value = "".concat(year, "-").concat(month, "-").concat(day);
|
|
212
212
|
if (showMonth && month) newDate.month(parseInt(month - 1, 10));
|
|
213
213
|
if (showDay && day) newDate.date(parseInt(day, 10));
|
|
214
214
|
if (showYear && year) newDate.year(parseInt(year, 10));
|
|
@@ -31,7 +31,9 @@ function getSvgPath({
|
|
|
31
31
|
extraSizeForTopH = 0;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const pathMiddle = '' + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius : '') + 'v' + (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + (
|
|
34
|
+
const pathMiddle = '' + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius : '') + 'v' + (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + ( // right vertical line
|
|
35
|
+
hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius : '') + 'h' + (-width + 2 * cornerWidth - extraSizeForH) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius : '') + 'v' + (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + ( // left vertical line
|
|
36
|
+
hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius : '');
|
|
35
37
|
let path;
|
|
36
38
|
|
|
37
39
|
{
|
|
@@ -34,8 +34,8 @@ const Wrapper = aggregatedClasses('div')(blockName, null, ({
|
|
|
34
34
|
[variant]: variant,
|
|
35
35
|
'with-highlight': withHighlight
|
|
36
36
|
}));
|
|
37
|
-
const WrapperContent = aggregatedClasses('div')(
|
|
38
|
-
const WrapperContentGroup = aggregatedClasses('fieldset')(
|
|
37
|
+
const WrapperContent = aggregatedClasses('div')("".concat(blockName, "-content"));
|
|
38
|
+
const WrapperContentGroup = aggregatedClasses('fieldset')("".concat(blockName, "-content"));
|
|
39
39
|
|
|
40
40
|
const DSFormItemLayout = _ref => {
|
|
41
41
|
var _WrapperContentComp;
|
|
@@ -18,7 +18,7 @@ const DSLabel = ({
|
|
|
18
18
|
}) => {
|
|
19
19
|
const Tag = isGroup ? 'legend' : 'label';
|
|
20
20
|
return /*#__PURE__*/_jsx(Tag, {
|
|
21
|
-
className:
|
|
21
|
+
className: "".concat(blockName).concat(isGroup ? " ".concat(blockName, "--group") : ''),
|
|
22
22
|
htmlFor: htmlFor
|
|
23
23
|
}, void 0, truncateText ? /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
|
|
24
24
|
value: children || label
|
|
@@ -5,15 +5,11 @@ const Suffix = /*#__PURE__*/styled.div.withConfig({
|
|
|
5
5
|
componentId: "sc-126c671-0"
|
|
6
6
|
})(["height:2.16rem;align-items:center;display:flex;", ""], props => {
|
|
7
7
|
if (props.label && !props.withFeedback) {
|
|
8
|
-
return
|
|
9
|
-
padding-top: 1.2rem;
|
|
10
|
-
`;
|
|
8
|
+
return "\n padding-top: 1.2rem;\n ";
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
if (!props.label && !props.withFeedback) {
|
|
14
|
-
return
|
|
15
|
-
padding-top: 1rem;
|
|
16
|
-
`;
|
|
12
|
+
return "\n padding-top: 1rem;\n ";
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
const SuffixInputWrapper = /*#__PURE__*/styled.div.withConfig({
|
package/esm/Input/DSInput.js
CHANGED
|
@@ -45,7 +45,7 @@ const DSInput = _ref => {
|
|
|
45
45
|
"aria-label": otherProps['aria-label'],
|
|
46
46
|
"aria-describedby": otherProps['aria-describedby'],
|
|
47
47
|
autoFocus: autoFocus,
|
|
48
|
-
className:
|
|
48
|
+
className: "".concat(className, " ").concat(disabled ? 'input-disabled' : ''),
|
|
49
49
|
clearable: clearable,
|
|
50
50
|
containerProps: containerProps,
|
|
51
51
|
customInputType: customInputType,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { Component } from 'react';
|
|
3
4
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
4
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
package/esm/Input/InputImpl.js
CHANGED
|
@@ -285,7 +285,7 @@ class InputImpl extends Component {
|
|
|
285
285
|
},
|
|
286
286
|
children: !customInputType ? /*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({}, omit(inputProps, ['disableTooltip'])), {}, {
|
|
287
287
|
autoComplete: "off",
|
|
288
|
-
clearable:
|
|
288
|
+
clearable: "".concat(clearable),
|
|
289
289
|
onChange: this.handleOnChange,
|
|
290
290
|
onBlur: this.handleBlur,
|
|
291
291
|
onFocus: this.handleFocus // using mouseOver instead of mouseEnter (doesn't trigger on disabled inputs)
|
|
@@ -388,7 +388,7 @@ InputImpl.defaultProps = {
|
|
|
388
388
|
value(props, propName, componentName) {
|
|
389
389
|
// eslint-disable-line consistent-return
|
|
390
390
|
if (!!props.isShowElipsisActive && typeof props[propName] !== 'string') {
|
|
391
|
-
return new Error(
|
|
391
|
+
return new Error("Invalid prop `".concat(propName, "` of type `").concat(typeof props[propName], "` supplied to") + " `".concat(componentName, "`. Prop `value` should be of type `string` if prop `isShowElipsisActive` is set to `true`.") + ' Either set `isShowElipsisActive` to `false`, or properly format your `value` prop to `string`.');
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { Component } from 'react';
|
|
4
5
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
5
6
|
import { jsxs } from 'react/jsx-runtime';
|
|
@@ -27,7 +28,7 @@ class AddonWrapper extends Component {
|
|
|
27
28
|
} = this.props;
|
|
28
29
|
const childType = inputComponent && inputComponent.type && inputComponent.type.name ? inputComponent.type.name.toLowerCase() : 'default';
|
|
29
30
|
return /*#__PURE__*/jsxs(Container, _objectSpread(_objectSpread({
|
|
30
|
-
className:
|
|
31
|
+
className: "".concat(className, " ").concat(blockName, "--").concat(childType)
|
|
31
32
|
}, containerProps), {}, {
|
|
32
33
|
children: [leftAddon && /*#__PURE__*/_jsx(InputAddon, {}, void 0, leftAddon), inputComponent, rightAddon && /*#__PURE__*/_jsx(InputAddon, {}, void 0, rightAddon)]
|
|
33
34
|
}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useState, useEffect, useCallback } from 'react';
|
|
4
5
|
import { describe } from 'react-desc';
|
|
5
6
|
import { MASK_TYPES } from './MaskTypes.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
5
6
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
6
7
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -90,7 +91,7 @@ const conformValue = (prevRawValue, prevCursorPos, lastkeycode, {
|
|
|
90
91
|
maskedPos += prefix.length;
|
|
91
92
|
|
|
92
93
|
if (isNegative) {
|
|
93
|
-
if (lastkeycode !== 8 || nextMaskedValue !== prefix) nextMaskedValue =
|
|
94
|
+
if (lastkeycode !== 8 || nextMaskedValue !== prefix) nextMaskedValue = "-".concat(nextMaskedValue);
|
|
94
95
|
maskedPos += 1;
|
|
95
96
|
}
|
|
96
97
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
5
|
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
5
6
|
import setCaretPosition from '../utils/setCaretPosition.js';
|
package/esm/InputMask/props.js
CHANGED
|
@@ -140,8 +140,7 @@ const inputProps = {
|
|
|
140
140
|
* The placeholder character represents the fillable spot in the mask.
|
|
141
141
|
* The default placeholder character is underscore, _
|
|
142
142
|
*/
|
|
143
|
-
placeholderChar: PropTypes.string.description(
|
|
144
|
-
The default placeholder character is underscore, _.`).defaultValue('_')
|
|
143
|
+
placeholderChar: PropTypes.string.description("The placeholder character represents the fillable spot in the mask.\n The default placeholder character is underscore, _.").defaultValue('_')
|
|
145
144
|
};
|
|
146
145
|
|
|
147
146
|
export { inputProps };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
3
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import { useState, useEffect, useCallback } from 'react';
|
|
5
6
|
import { describe } from 'react-desc';
|
|
6
7
|
import LockUnlocked from '@elliemae/ds-icons/LockUnlocked';
|
|
@@ -57,14 +58,14 @@ const DSInputProtected = _ref => {
|
|
|
57
58
|
}, [rightAddon, inputHidden]);
|
|
58
59
|
return /*#__PURE__*/_jsx("div", {}, void 0, /*#__PURE__*/_jsx(DSInputGroup, {
|
|
59
60
|
leftAddon: left ? /*#__PURE__*/_jsx(DSButton, {
|
|
60
|
-
"aria-label":
|
|
61
|
+
"aria-label": "".concat(inputLocked ? 'Allow' : 'Disallow', " Edition"),
|
|
61
62
|
buttonType: "secondary",
|
|
62
63
|
icon: ADDON_ICON_OPTIONS[inputLocked ? LEFT_ADDON_OPTIONS.LockUnlocked : LEFT_ADDON_OPTIONS.LockLocked],
|
|
63
64
|
onClick: handleLeft
|
|
64
65
|
}) : undefined,
|
|
65
66
|
readOnly: left ? inputLocked : readOnly,
|
|
66
67
|
rightAddon: right ? /*#__PURE__*/_jsx(DSButton, {
|
|
67
|
-
"aria-label":
|
|
68
|
+
"aria-label": "".concat(inputHidden ? 'Show' : 'Hide', " Characters"),
|
|
68
69
|
buttonType: "secondary",
|
|
69
70
|
icon: ADDON_ICON_OPTIONS[inputHidden ? RIGHT_ADDON_OPTIONS.VisibleView : RIGHT_ADDON_OPTIONS.InvisibleHide],
|
|
70
71
|
onClick: handleRight,
|
|
@@ -14,8 +14,7 @@ const inputProtectedProps = {
|
|
|
14
14
|
* PlaceholderChar: The placeholder character represents the fillable spot in the mask.
|
|
15
15
|
* The default placeholder character is underscore, _.
|
|
16
16
|
*/
|
|
17
|
-
placeholderChar: PropTypes.string.description(
|
|
18
|
-
* The default placeholder character is underscore, _.`)
|
|
17
|
+
placeholderChar: PropTypes.string.description("The placeholder character represents the fillable spot in the mask.\n * The default placeholder character is underscore, _.")
|
|
19
18
|
};
|
|
20
19
|
|
|
21
20
|
export { inputProtectedProps };
|
|
@@ -67,7 +67,7 @@ const DSLargeInputText = ({
|
|
|
67
67
|
|
|
68
68
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
69
69
|
children: [/*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
70
|
-
className:
|
|
70
|
+
className: "".concat(cssClassName, " ").concat(className),
|
|
71
71
|
children: /*#__PURE__*/_jsx("div", {
|
|
72
72
|
className: classNameBlock('wrapper')
|
|
73
73
|
}, void 0, /*#__PURE__*/jsx("textarea", {
|
|
@@ -106,7 +106,7 @@ const DSLargeInputText = ({
|
|
|
106
106
|
limitError
|
|
107
107
|
},
|
|
108
108
|
"data-testid": "counter-area"
|
|
109
|
-
}, void 0,
|
|
109
|
+
}, void 0, "".concat(limitError ? "".concat(errorLimit, " ").concat(characterLimitCounter, " characters. ") : '').concat(String(value).length, " / ").concat(characterLimitCounter))]
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
|
|
@@ -15,7 +15,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
15
15
|
|
|
16
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(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 emClassPrefix = 'em-ds';
|
|
18
|
-
const baseClass =
|
|
18
|
+
const baseClass = "".concat(emClassPrefix, "-radio-group");
|
|
19
19
|
|
|
20
20
|
const RadioItem = props => /*#__PURE__*/_jsx(GroupItem, {
|
|
21
21
|
render: context => /*#__PURE__*/jsx(DSRadio, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -55,7 +55,7 @@ const DSRadioGroup = ({
|
|
|
55
55
|
}, void 0, /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
56
56
|
"data-testid": "ds-radiogroup"
|
|
57
57
|
}, labelProps && labelProps.labelText ? {} : containerProps), {}, {
|
|
58
|
-
className:
|
|
58
|
+
className: "".concat(baseClass, " ").concat(baseClass, "--").concat(orientation),
|
|
59
59
|
role: "group",
|
|
60
60
|
children: React.Children.map(children, (child, index) => /*#__PURE__*/jsx(RadioItem, _objectSpread(_objectSpread({}, child.props), {}, {
|
|
61
61
|
innerRef: t => {
|
|
@@ -67,7 +67,7 @@ const DSRadioGroup = ({
|
|
|
67
67
|
|
|
68
68
|
if (labelProps && labelProps.labelText) {
|
|
69
69
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
70
|
-
className:
|
|
70
|
+
className: "".concat(baseClass, "-form-item-layout-wrapper")
|
|
71
71
|
}, containerProps), {}, {
|
|
72
72
|
role: "group",
|
|
73
73
|
children: /*#__PURE__*/jsx(DSFormItemLayout, _objectSpread(_objectSpread({}, labelProps), {}, {
|
|
@@ -14,12 +14,12 @@ const RequiredMark = ({
|
|
|
14
14
|
|
|
15
15
|
if (required) {
|
|
16
16
|
return /*#__PURE__*/_jsx("span", {
|
|
17
|
-
className:
|
|
17
|
+
className: "".concat(cssClassName)
|
|
18
18
|
}, void 0, "\u25CF");
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return /*#__PURE__*/_jsx("span", {
|
|
22
|
-
className:
|
|
22
|
+
className: "".concat(cssClassName, " optional-mark")
|
|
23
23
|
}, void 0, "\u26AC");
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -87,7 +87,7 @@ const ResultTracker = props => {
|
|
|
87
87
|
} = props;
|
|
88
88
|
if (currentResultIndex === -1 && !totalResults) return null;
|
|
89
89
|
if (currentResultIndex === -1 && totalResults) return /*#__PURE__*/_jsx(StyledResultTracker, {}, void 0, totalResults);
|
|
90
|
-
return /*#__PURE__*/_jsx(StyledResultTracker, {}, void 0,
|
|
90
|
+
return /*#__PURE__*/_jsx(StyledResultTracker, {}, void 0, "".concat(currentResultIndex + 1, " / ").concat(totalResults));
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
const VerticalSeparator = () => _StyledVerticalSepara || (_StyledVerticalSepara = /*#__PURE__*/_jsx(StyledVerticalSeparator, {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import { useState } from 'react';
|
|
5
6
|
import styled from 'styled-components';
|
|
6
7
|
import SearchIcon from '@elliemae/ds-icons/Search';
|
|
@@ -18,15 +19,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
19
|
const SEARCH_BUTTON_WIDTH = 26;
|
|
19
20
|
const SearchWrap = /*#__PURE__*/styled.div.withConfig({
|
|
20
21
|
componentId: "sc-xt33wm-0"
|
|
21
|
-
})(["transition:width 200ms ease;width:", "px;height:0;", " ", ""], SEARCH_BUTTON_WIDTH, props => !props.show ?
|
|
22
|
-
opacity:0;
|
|
23
|
-
|
|
24
|
-
& * {
|
|
25
|
-
width: ${SEARCH_BUTTON_WIDTH}px;
|
|
26
|
-
height: 0;
|
|
27
|
-
border: 0;
|
|
28
|
-
}
|
|
29
|
-
` : '', props => props.isOpen ? `width: ${props.width};opacity: 1;height: auto;` : ''); // eslint-disable-next-line react/prop-types
|
|
22
|
+
})(["transition:width 200ms ease;width:", "px;height:0;", " ", ""], SEARCH_BUTTON_WIDTH, props => !props.show ? "\n opacity:0;\n\n & * {\n width: ".concat(SEARCH_BUTTON_WIDTH, "px;\n height: 0;\n border: 0;\n }\n ") : '', props => props.isOpen ? "width: ".concat(props.width, ";opacity: 1;height: auto;") : ''); // eslint-disable-next-line react/prop-types
|
|
30
23
|
|
|
31
24
|
const SearchBoxToggle = _ref => {
|
|
32
25
|
let {
|
|
@@ -37,7 +30,7 @@ const SearchBoxToggle = _ref => {
|
|
|
37
30
|
|
|
38
31
|
const [isOpen, setOpen] = useState(false);
|
|
39
32
|
const [show, setShow] = useState(true);
|
|
40
|
-
const computedWidth = typeof width === 'number' ?
|
|
33
|
+
const computedWidth = typeof width === 'number' ? "".concat(width, "px") : width;
|
|
41
34
|
|
|
42
35
|
const button = /*#__PURE__*/_jsx(DSButton, {
|
|
43
36
|
onClick: () => {
|
package/esm/TextBox/DSTextBox.js
CHANGED
|
@@ -39,7 +39,7 @@ const DSTextBox = _ref => {
|
|
|
39
39
|
|
|
40
40
|
return /*#__PURE__*/jsx(DSInput, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
41
41
|
"aria-label": !id ? otherProps['aria-label'] || 'Text Box' : undefined,
|
|
42
|
-
"aria-describedby": otherProps['aria-describedby'] ||
|
|
42
|
+
"aria-describedby": otherProps['aria-describedby'] || "".concat(id, "_feedback_message"),
|
|
43
43
|
autoFocus: autoFocus,
|
|
44
44
|
clearable: clearable,
|
|
45
45
|
containerProps: containerProps,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import React, { useState, useEffect, createElement } from 'react';
|
|
4
5
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
5
6
|
import moment from 'moment';
|
|
@@ -256,7 +256,7 @@ class DSToggleImpl extends Component {
|
|
|
256
256
|
hide
|
|
257
257
|
} = this.state;
|
|
258
258
|
const dragStyle = drag !== null || checked || this.props.checked ? {
|
|
259
|
-
left:
|
|
259
|
+
left: "".concat(drag, "px")
|
|
260
260
|
} : null;
|
|
261
261
|
return /*#__PURE__*/jsx(DSToggleRender, _objectSpread(_objectSpread({}, this.props), {}, {
|
|
262
262
|
defaultState: this.props.checked,
|
|
@@ -75,7 +75,7 @@ const DSToggleRender = ({
|
|
|
75
75
|
defaultValue: value
|
|
76
76
|
}, onClickHandlerForNonInteractiveElements(allowChange ? null : onChange)), {}, {
|
|
77
77
|
ref: containerRef,
|
|
78
|
-
className:
|
|
78
|
+
className: "".concat(cssClassName, " ").concat(defaultState ? 'default-state-checked' : '').concat(hide ? ' ds-form-element-toggle-hide' : ''),
|
|
79
79
|
onBlur: onBlur,
|
|
80
80
|
onFocus: onFocus // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
81
81
|
,
|
|
@@ -88,7 +88,7 @@ const DSToggleRender = ({
|
|
|
88
88
|
ref: handRef,
|
|
89
89
|
"aria-checked": checked,
|
|
90
90
|
"aria-disabled": disabled,
|
|
91
|
-
className:
|
|
91
|
+
className: "".concat(classNameElement('input'), " ").concat(defaultState ? 'default-state-checked' : ''),
|
|
92
92
|
onMouseDown: allowChange ? null : onMouseDown,
|
|
93
93
|
onMouseEnter: allowChange ? null : onMouseEnter,
|
|
94
94
|
onMouseLeave: allowChange ? null : onMouseLeave,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -684,22 +684,22 @@
|
|
|
684
684
|
"build": "node ../../scripts/build/build.js"
|
|
685
685
|
},
|
|
686
686
|
"dependencies": {
|
|
687
|
-
"@elliemae/ds-button": "2.0.0-next.
|
|
688
|
-
"@elliemae/ds-circular-progress-indicator": "2.0.0-next.
|
|
689
|
-
"@elliemae/ds-classnames": "2.0.0-next.
|
|
690
|
-
"@elliemae/ds-grid": "2.0.0-next.
|
|
691
|
-
"@elliemae/ds-icon": "2.0.0-next.
|
|
692
|
-
"@elliemae/ds-icons": "2.0.0-next.
|
|
693
|
-
"@elliemae/ds-menu": "2.0.0-next.
|
|
694
|
-
"@elliemae/ds-overlay": "2.0.0-next.
|
|
695
|
-
"@elliemae/ds-popper": "2.0.0-next.
|
|
696
|
-
"@elliemae/ds-separator": "2.0.0-next.
|
|
697
|
-
"@elliemae/ds-shared": "2.0.0-next.
|
|
698
|
-
"@elliemae/ds-system": "2.0.0-next.
|
|
699
|
-
"@elliemae/ds-text-wrapper": "2.0.0-next.
|
|
700
|
-
"@elliemae/ds-tooltip": "2.0.0-next.
|
|
701
|
-
"@elliemae/ds-truncated-tooltip-text": "2.0.0-next.
|
|
702
|
-
"@elliemae/ds-utilities": "2.0.0-next.
|
|
687
|
+
"@elliemae/ds-button": "2.0.0-next.6",
|
|
688
|
+
"@elliemae/ds-circular-progress-indicator": "2.0.0-next.6",
|
|
689
|
+
"@elliemae/ds-classnames": "2.0.0-next.6",
|
|
690
|
+
"@elliemae/ds-grid": "2.0.0-next.6",
|
|
691
|
+
"@elliemae/ds-icon": "2.0.0-next.6",
|
|
692
|
+
"@elliemae/ds-icons": "2.0.0-next.6",
|
|
693
|
+
"@elliemae/ds-menu": "2.0.0-next.6",
|
|
694
|
+
"@elliemae/ds-overlay": "2.0.0-next.6",
|
|
695
|
+
"@elliemae/ds-popper": "2.0.0-next.6",
|
|
696
|
+
"@elliemae/ds-separator": "2.0.0-next.6",
|
|
697
|
+
"@elliemae/ds-shared": "2.0.0-next.6",
|
|
698
|
+
"@elliemae/ds-system": "2.0.0-next.6",
|
|
699
|
+
"@elliemae/ds-text-wrapper": "2.0.0-next.6",
|
|
700
|
+
"@elliemae/ds-tooltip": "2.0.0-next.6",
|
|
701
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0-next.6",
|
|
702
|
+
"@elliemae/ds-utilities": "2.0.0-next.6",
|
|
703
703
|
"memoize-one": "~5.1.1",
|
|
704
704
|
"moment": "~2.29.1",
|
|
705
705
|
"polished": "~3.6.7",
|
package/cjs/package.json
DELETED