@elliemae/ds-controlled-form 2.4.1-rc.1 → 2.4.1-rc.5
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/autocomplete/Autocomplete.js +4 -5
- package/cjs/autocomplete/AutocompleteCTX.js +3 -14
- package/cjs/autocomplete/AutocompleteDataTestids.js +1 -7
- package/cjs/autocomplete/config/useAutocomplete.js +23 -10
- package/cjs/autocomplete/parts/container/Container.js +36 -20
- package/cjs/autocomplete/parts/container/styled.js +1 -5
- package/cjs/autocomplete/parts/{controls → container}/useKeyboardNavigation.js +8 -24
- package/cjs/autocomplete/parts/menu-list/MenuList.js +17 -50
- package/cjs/autocomplete/parts/menu-list/styled.js +9 -10
- package/cjs/autocomplete/parts/menu-list/useItemRenderer.js +38 -44
- package/cjs/autocomplete/react-desc-prop-types.js +4 -8
- package/cjs/autocomplete/utils/listHelper.js +8 -16
- package/cjs/checkbox/ControlledCheckbox.js +2 -1
- package/cjs/checkbox/react-desc-prop-types.js +2 -0
- package/cjs/combobox/ComboBox.js +1 -0
- package/cjs/combobox/config/useComboBox.js +8 -2
- package/cjs/combobox/config/useCorrectOptions.js +14 -42
- package/cjs/combobox/index.js +1 -0
- package/cjs/combobox/parts/A11yFocusedOption.js +3 -3
- package/cjs/combobox/parts/controls/Controls.js +4 -2
- package/cjs/combobox/parts/controls-input/ControlsInput.js +2 -0
- package/cjs/combobox/parts/controls-input/styled.js +1 -1
- package/cjs/combobox/parts/controls-input/useControlsInput.js +6 -6
- package/cjs/combobox/parts/controls-input/useKeyboardNavigation.js +30 -26
- package/cjs/combobox/parts/controls-input/useMaskedOnChange.js +7 -5
- package/cjs/combobox/parts/dropdown-indicator/DropdownIndicator.js +6 -4
- package/cjs/combobox/parts/header-list/useHeaderListHandlers.js +4 -4
- package/cjs/combobox/parts/menu-list/MenuList.js +13 -7
- package/cjs/combobox/parts/menu-list/styled.js +16 -5
- package/cjs/combobox/parts/menu-list/useItemRenderer.js +8 -8
- package/cjs/combobox/parts/menu-list/useMenuListSetFocusOption.js +6 -6
- package/cjs/combobox/react-desc-prop-types.js +2 -1
- package/cjs/combobox/utils/listHelper.js +40 -11
- package/cjs/index.js +16 -3
- package/cjs/large-text-input/DSControlledLargeTextInput.js +83 -0
- package/cjs/large-text-input/exported-related/data-test-ids.js +11 -0
- package/cjs/large-text-input/exported-related/index.js +12 -0
- package/cjs/large-text-input/exported-related/theming.js +13 -0
- package/cjs/large-text-input/index.js +15 -0
- package/cjs/large-text-input/react-desc-prop-types.js +45 -0
- package/cjs/large-text-input/styles.js +40 -0
- package/cjs/mask-hook/hooks/index.js +7 -3
- package/cjs/mask-hook/hooks/useNumberMask.js +5 -0
- package/cjs/mask-hook/hooks/usePhoneMask.js +5 -0
- package/cjs/mask-hook/hooks/useSSNMask.js +5 -0
- package/cjs/mask-hook/hooks/{useZipCode.js → useZipCodeMask.js} +10 -5
- package/cjs/mask-hook/index.js +7 -3
- package/esm/autocomplete/Autocomplete.js +2 -3
- package/esm/autocomplete/AutocompleteCTX.js +3 -14
- package/esm/autocomplete/AutocompleteDataTestids.js +1 -7
- package/esm/autocomplete/config/useAutocomplete.js +27 -14
- package/esm/autocomplete/parts/container/Container.js +38 -23
- package/esm/autocomplete/parts/container/styled.js +2 -5
- package/esm/autocomplete/parts/{controls → container}/useKeyboardNavigation.js +8 -24
- package/esm/autocomplete/parts/menu-list/MenuList.js +19 -52
- package/esm/autocomplete/parts/menu-list/styled.js +9 -10
- package/esm/autocomplete/parts/menu-list/useItemRenderer.js +39 -45
- package/esm/autocomplete/react-desc-prop-types.js +5 -8
- package/esm/autocomplete/utils/listHelper.js +8 -16
- package/esm/checkbox/ControlledCheckbox.js +2 -1
- package/esm/checkbox/react-desc-prop-types.js +2 -0
- package/esm/combobox/ComboBox.js +1 -1
- package/esm/combobox/config/useComboBox.js +8 -2
- package/esm/combobox/config/useCorrectOptions.js +15 -43
- package/esm/combobox/index.js +1 -1
- package/esm/combobox/parts/A11yFocusedOption.js +3 -3
- package/esm/combobox/parts/controls/Controls.js +4 -2
- package/esm/combobox/parts/controls-input/ControlsInput.js +2 -0
- package/esm/combobox/parts/controls-input/styled.js +1 -1
- package/esm/combobox/parts/controls-input/useControlsInput.js +6 -6
- package/esm/combobox/parts/controls-input/useKeyboardNavigation.js +30 -26
- package/esm/combobox/parts/controls-input/useMaskedOnChange.js +7 -5
- package/esm/combobox/parts/dropdown-indicator/DropdownIndicator.js +2 -2
- package/esm/combobox/parts/header-list/useHeaderListHandlers.js +4 -4
- package/esm/combobox/parts/menu-list/MenuList.js +13 -7
- package/esm/combobox/parts/menu-list/styled.js +16 -5
- package/esm/combobox/parts/menu-list/useItemRenderer.js +8 -8
- package/esm/combobox/parts/menu-list/useMenuListSetFocusOption.js +6 -6
- package/esm/combobox/react-desc-prop-types.js +2 -1
- package/esm/combobox/utils/listHelper.js +38 -12
- package/esm/index.js +8 -5
- package/esm/large-text-input/DSControlledLargeTextInput.js +72 -0
- package/esm/large-text-input/exported-related/data-test-ids.js +7 -0
- package/esm/large-text-input/exported-related/index.js +2 -0
- package/esm/large-text-input/exported-related/theming.js +8 -0
- package/esm/large-text-input/index.js +3 -0
- package/esm/large-text-input/react-desc-prop-types.js +36 -0
- package/esm/large-text-input/styles.js +30 -0
- package/esm/mask-hook/hooks/index.js +4 -4
- package/esm/mask-hook/hooks/useNumberMask.js +5 -1
- package/esm/mask-hook/hooks/usePhoneMask.js +5 -1
- package/esm/mask-hook/hooks/useSSNMask.js +5 -1
- package/esm/mask-hook/hooks/{useZipCode.js → useZipCodeMask.js} +9 -5
- package/esm/mask-hook/index.js +4 -4
- package/package.json +52 -88
- package/types/autocomplete/Autocomplete.d.ts +4 -61
- package/types/autocomplete/AutocompleteCTX.d.ts +4 -3
- package/types/autocomplete/AutocompleteDataTestids.d.ts +1 -7
- package/types/autocomplete/config/useAutocomplete.d.ts +3 -2
- package/types/autocomplete/parts/container/Container.d.ts +1 -2
- package/types/autocomplete/parts/container/styled.d.ts +0 -1
- package/types/autocomplete/parts/{controls → container}/useKeyboardNavigation.d.ts +0 -0
- package/types/autocomplete/parts/menu-list/MenuList.d.ts +1 -2
- package/types/autocomplete/parts/menu-list/styled.d.ts +1 -4
- package/types/autocomplete/parts/menu-list/useItemRenderer.d.ts +2 -3
- package/types/autocomplete/react-desc-prop-types.d.ts +8 -18
- package/types/autocomplete/sharedTypes.d.ts +1 -3
- package/types/autocomplete/tests/general.test.d.ts +1 -0
- package/types/autocomplete/tests/utils.d.ts +5 -0
- package/types/autocomplete/utils/listHelper.d.ts +2 -2
- package/types/checkbox/ControlledCheckbox.d.ts +1 -1
- package/types/checkbox/react-desc-prop-types.d.ts +367 -1
- package/types/combobox/ComboBox.d.ts +2 -2
- package/types/combobox/parts/dropdown-indicator/DropdownIndicator.d.ts +1 -0
- package/types/combobox/react-desc-prop-types.d.ts +381 -3
- package/types/combobox/utils/listHelper.d.ts +4 -1
- package/types/index.d.ts +1 -0
- package/types/large-text-input/DSControlledLargeTextInput.d.ts +5 -0
- package/types/large-text-input/exported-related/data-test-ids.d.ts +5 -0
- package/types/large-text-input/exported-related/index.d.ts +2 -0
- package/types/large-text-input/exported-related/theming.d.ts +6 -0
- package/types/large-text-input/index.d.ts +2 -0
- package/types/large-text-input/react-desc-prop-types.d.ts +447 -0
- package/types/large-text-input/styles.d.ts +3 -0
- package/types/large-text-input/tests/DSControlledLargeTextInput.test.d.ts +1 -0
- package/types/mask-hook/hooks/index.d.ts +1 -1
- package/types/mask-hook/hooks/useNumberMask.d.ts +2 -1
- package/types/mask-hook/hooks/usePhoneMask.d.ts +2 -1
- package/types/mask-hook/hooks/useSSNMask.d.ts +2 -1
- package/types/mask-hook/hooks/useZipCodeMask.d.ts +4 -0
- package/types/text-input/DSInputText.d.ts +1 -1
- package/types/text-input/config/useInputText.d.ts +110 -110
- package/cjs/autocomplete/config/constants.js +0 -14
- package/cjs/autocomplete/config/useGetPropsWithDefault.js +0 -11
- package/cjs/autocomplete/index.d.js +0 -2
- package/cjs/autocomplete/parts/a11y-messages/MultiAllyMessages.js +0 -33
- package/cjs/autocomplete/parts/a11y-messages/SingleAllyMessages.js +0 -28
- package/cjs/autocomplete/parts/a11y-messages/index.js +0 -11
- package/cjs/autocomplete/parts/a11y-messages/styled.js +0 -15
- package/cjs/autocomplete/parts/controls/Controls.js +0 -63
- package/cjs/autocomplete/parts/controls/index.js +0 -9
- package/cjs/autocomplete/parts/controls/styled.js +0 -44
- package/cjs/autocomplete/parts/controls/useControlsInput.js +0 -44
- package/cjs/autocomplete/parts/controls/useMaskedOnChange.js +0 -28
- package/cjs/autocomplete/parts/menu-list/useMenuList.js +0 -69
- package/cjs/autocomplete/propTypes.js +0 -25
- package/cjs/autocomplete/utils/hooks/useKeyboardNavigation.js +0 -97
- package/cjs/autocomplete/utils/hooks/useOnElementResize.js +0 -37
- package/cjs/text-input/exported-related/name.js +0 -7
- package/cjs/text-input/exported-related/slots.js +0 -11
- package/esm/autocomplete/config/constants.js +0 -10
- package/esm/autocomplete/config/useGetPropsWithDefault.js +0 -7
- package/esm/autocomplete/index.d.js +0 -1
- package/esm/autocomplete/parts/a11y-messages/MultiAllyMessages.js +0 -25
- package/esm/autocomplete/parts/a11y-messages/SingleAllyMessages.js +0 -20
- package/esm/autocomplete/parts/a11y-messages/index.js +0 -2
- package/esm/autocomplete/parts/a11y-messages/styled.js +0 -7
- package/esm/autocomplete/parts/controls/Controls.js +0 -55
- package/esm/autocomplete/parts/controls/index.js +0 -1
- package/esm/autocomplete/parts/controls/styled.js +0 -32
- package/esm/autocomplete/parts/controls/useControlsInput.js +0 -40
- package/esm/autocomplete/parts/controls/useMaskedOnChange.js +0 -24
- package/esm/autocomplete/parts/menu-list/useMenuList.js +0 -65
- package/esm/autocomplete/propTypes.js +0 -21
- package/esm/autocomplete/utils/hooks/useKeyboardNavigation.js +0 -93
- package/esm/autocomplete/utils/hooks/useOnElementResize.js +0 -33
- package/esm/text-input/exported-related/name.js +0 -3
- package/esm/text-input/exported-related/slots.js +0 -7
- package/types/autocomplete/config/constants.d.ts +0 -8
- package/types/autocomplete/config/useGetPropsWithDefault.d.ts +0 -2
- package/types/autocomplete/parts/a11y-messages/MultiAllyMessages.d.ts +0 -3
- package/types/autocomplete/parts/a11y-messages/SingleAllyMessages.d.ts +0 -3
- package/types/autocomplete/parts/a11y-messages/index.d.ts +0 -2
- package/types/autocomplete/parts/a11y-messages/styled.d.ts +0 -1
- package/types/autocomplete/parts/controls/Controls.d.ts +0 -3
- package/types/autocomplete/parts/controls/index.d.ts +0 -1
- package/types/autocomplete/parts/controls/styled.d.ts +0 -8
- package/types/autocomplete/parts/controls/useControlsInput.d.ts +0 -9
- package/types/autocomplete/parts/controls/useMaskedOnChange.d.ts +0 -2
- package/types/autocomplete/parts/menu-list/useMenuList.d.ts +0 -2
- package/types/autocomplete/propTypes.d.ts +0 -51
- package/types/autocomplete/utils/hooks/useKeyboardNavigation.d.ts +0 -4
- package/types/autocomplete/utils/hooks/useOnElementResize.d.ts +0 -3
- package/types/mask-hook/hooks/useZipCode.d.ts +0 -3
- package/types/text-input/exported-related/name.d.ts +0 -1
- package/types/text-input/exported-related/slots.d.ts +0 -5
|
@@ -12,7 +12,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
12
|
function noop() {}
|
|
13
13
|
const ComboboxPropTypes = _objectSpread(_objectSpread({}, globalAttributesPropTypes), {}, {
|
|
14
14
|
placeholder: PropTypes.string.description("input's placeholder value").defaultValue(''),
|
|
15
|
-
|
|
15
|
+
allOptions: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired.description('List of original options').defaultValue([]),
|
|
16
|
+
filteredOptions: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).description('List of filtered options to show in the menu based on the current internal input filter value').defaultValue([]),
|
|
16
17
|
selectedValues: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]).isRequired.description('Array of option or single option selected'),
|
|
17
18
|
disabled: PropTypes.bool.description('wheter or not the input is disabled').defaultValue('false'),
|
|
18
19
|
autoFocus: PropTypes.bool.description('Whether the combo box uses auto focus or not').defaultValue('false'),
|
|
@@ -6,6 +6,8 @@ import 'core-js/modules/esnext.iterator.some.js';
|
|
|
6
6
|
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
7
7
|
import 'core-js/modules/esnext.iterator.find.js';
|
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
9
11
|
import { MENU_OPTION_TYPES } from '../constants.js';
|
|
10
12
|
|
|
11
13
|
const getSelectableOptions = options => options.filter(option => option.type === MENU_OPTION_TYPES.OPTION && !option.disabled);
|
|
@@ -30,15 +32,17 @@ const findInCircularList = function (list, from, criteria) {
|
|
|
30
32
|
|
|
31
33
|
return from; // return same item
|
|
32
34
|
};
|
|
35
|
+
const getLastValueSelected = selectedValues => {
|
|
36
|
+
if (Array.isArray(selectedValues)) {
|
|
37
|
+
return selectedValues[selectedValues.length - 1];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return selectedValues;
|
|
41
|
+
};
|
|
33
42
|
const getFirstOption = (options, selectedValues, inputValue) => {
|
|
34
43
|
if (!inputValue) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (selectedValues !== null && selectedValues !== void 0 && selectedValues.dsId) {
|
|
40
|
-
return selectedValues.dsId;
|
|
41
|
-
}
|
|
44
|
+
const lastValue = getLastValueSelected(selectedValues);
|
|
45
|
+
if (lastValue) return lastValue.dsId;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
for (let i = 0; i < options.length; i += 1) if (!['section', 'separator'].includes(options[i].type) && !options[i].disabled) {
|
|
@@ -64,12 +68,34 @@ const getSuggestedValueOnChange = (selectedOption, selectedValues) => {
|
|
|
64
68
|
|
|
65
69
|
return selectedOption;
|
|
66
70
|
};
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
const filterOptions = (inputValue, options) => options.filter(option => option.type === MENU_OPTION_TYPES.OPTION && option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
72
|
+
const selectedValuesWithSections = (optionsToParse, multiSelectedValue) => {
|
|
73
|
+
var _items2;
|
|
74
|
+
|
|
75
|
+
const items = [];
|
|
76
|
+
if (optionsToParse) optionsToParse.forEach(option => {
|
|
77
|
+
// const isSelectedValue = multiSelectedValue.find((item) => item?.dsId === option.dsId);
|
|
78
|
+
if (option.type === MENU_OPTION_TYPES.OPTION && isSelected(multiSelectedValue, option)) {
|
|
79
|
+
items.push(option);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (option.type === MENU_OPTION_TYPES.SECTION) {
|
|
83
|
+
var _items;
|
|
84
|
+
|
|
85
|
+
if (((_items = items[items.length - 1]) === null || _items === void 0 ? void 0 : _items.type) === MENU_OPTION_TYPES.SECTION) {
|
|
86
|
+
items[items.length - 1] = option;
|
|
87
|
+
} else {
|
|
88
|
+
items.push(option);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
if (((_items2 = items[items.length - 1]) === null || _items2 === void 0 ? void 0 : _items2.type) === MENU_OPTION_TYPES.SECTION) {
|
|
94
|
+
items.pop();
|
|
70
95
|
}
|
|
71
96
|
|
|
72
|
-
return
|
|
97
|
+
return items;
|
|
73
98
|
};
|
|
99
|
+
const getFilteredOptionsSelected = (filteredOption, selectedValues) => filteredOption.filter(option => option.type === MENU_OPTION_TYPES.OPTION && isSelected(selectedValues, option));
|
|
74
100
|
|
|
75
|
-
export { findInCircularList, getFirstOption, getLastValueSelected, getOptions, getSelectableOptions, getSuggestedValueOnChange, isSelected, isSelectedValueEmpty, isSelectedValueMultiple };
|
|
101
|
+
export { filterOptions, findInCircularList, getFilteredOptionsSelected, getFirstOption, getLastValueSelected, getOptions, getSelectableOptions, getSuggestedValueOnChange, isSelected, isSelectedValueEmpty, isSelectedValueMultiple, selectedValuesWithSections };
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DSAutocomplete, DSAutocompleteWithSchema } from './autocomplete/Autocomplete.js';
|
|
2
2
|
export { DSControlledCheckbox, DSControlledCheckboxWithSchema } from './checkbox/ControlledCheckbox.js';
|
|
3
|
-
export { DSComboBox, DSComboBoxWithSchema } from './combobox/ComboBox.js';
|
|
3
|
+
export { DSComboBox, DSComboBox as DSComboBoxV3, DSComboBoxWithSchema } from './combobox/ComboBox.js';
|
|
4
4
|
export { DSControlledDateRangePicker, DSControlledDateRangePickerWithSchema } from './date-range-picker/ControlledDateRangePicker.js';
|
|
5
5
|
export { ControlledDateRangePickerDatatestid } from './date-range-picker/ControlledDateRangePickerDatatestid.js';
|
|
6
6
|
export { CONTROLLED_DATE_RANGE_PICKER_TYPES } from './date-range-picker/ControlledDateRangePickerTypes.js';
|
|
@@ -11,11 +11,14 @@ export { deconstructValuesFromDateString, prependStringWithPlaceHolders } from '
|
|
|
11
11
|
export { getValidationDateTimeStringMetaInfo } from './date-time-picker/utils/dateTimeHelpers.js';
|
|
12
12
|
export { getDateStringFromDay, getDateValuesFromDate, getDayFromDateString, getValidationDateStringMetaInfo } from './date-time-picker/utils/dateHelpers.js';
|
|
13
13
|
export { getValidationTimeStringMetaInfo } from './date-time-picker/utils/timeHelpers.js';
|
|
14
|
-
export { UsePhoneMaskWithSchema, usePhoneMask } from './mask-hook/hooks/usePhoneMask.js';
|
|
15
|
-
export { UseNumberMaskWithSchema, useNumberMask } from './mask-hook/hooks/useNumberMask.js';
|
|
16
|
-
export { UseSSNMaskWithSchema, useSSNMask } from './mask-hook/hooks/useSSNMask.js';
|
|
17
|
-
export { UseZipCodeMaskWithSchema,
|
|
14
|
+
export { UsePhoneMaskWithSchema, getPhoneMaskedValue, usePhoneMask } from './mask-hook/hooks/usePhoneMask.js';
|
|
15
|
+
export { UseNumberMaskWithSchema, getNumberMaskedValue, useNumberMask } from './mask-hook/hooks/useNumberMask.js';
|
|
16
|
+
export { UseSSNMaskWithSchema, getSSNMaskedValue, useSSNMask } from './mask-hook/hooks/useSSNMask.js';
|
|
17
|
+
export { UseZipCodeMaskWithSchema, getUseZipMaskedValue, useZipCodeMask } from './mask-hook/hooks/useZipCodeMask.js';
|
|
18
18
|
export { DSInputText, DSInputTextWithSchema } from './text-input/DSInputText.js';
|
|
19
19
|
export { DSInputTextDataTestIds } from './text-input/exported-related/data-test-ids.js';
|
|
20
20
|
export { DSInputTextName, DSInputTextSlots } from './text-input/exported-related/theming.js';
|
|
21
21
|
export { DSControlledToggle, DSControlledToggleWithSchema } from './toggle/ControlledToggle.js';
|
|
22
|
+
export { DSControlledLargeTextInput, DSControlledLargeTextInputWithSchema } from './large-text-input/DSControlledLargeTextInput.js';
|
|
23
|
+
export { DSControlledLargetTextInputDatatestids } from './large-text-input/exported-related/data-test-ids.js';
|
|
24
|
+
export { DSControlledLargeTextInputName, DSControlledLargeTextInputSlots } from './large-text-input/exported-related/theming.js';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
9
|
+
import { useCallback } from 'react';
|
|
10
|
+
import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-props-helpers';
|
|
11
|
+
import { propTypes, defaultProps } from './react-desc-prop-types.js';
|
|
12
|
+
import { StyledContainer, StyledTextArea, StyledCharCounter } from './styles.js';
|
|
13
|
+
import { DSControlledLargetTextInputDatatestids } from './exported-related/data-test-ids.js';
|
|
14
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
const _excluded = ["maxLength", "value", "onChange", "innerRef", "resizable", "name", "id", "withoutCharacterCounter", "hasError"],
|
|
17
|
+
_excluded2 = ["className"];
|
|
18
|
+
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
|
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
+
|
|
23
|
+
const DSControlledLargeTextInput = props => {
|
|
24
|
+
useValidateTypescriptPropTypes(props, propTypes);
|
|
25
|
+
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
26
|
+
|
|
27
|
+
const {
|
|
28
|
+
maxLength,
|
|
29
|
+
value,
|
|
30
|
+
onChange,
|
|
31
|
+
innerRef,
|
|
32
|
+
resizable,
|
|
33
|
+
name,
|
|
34
|
+
id,
|
|
35
|
+
withoutCharacterCounter,
|
|
36
|
+
hasError
|
|
37
|
+
} = propsWithDefault,
|
|
38
|
+
otherProps = _objectWithoutProperties(propsWithDefault, _excluded);
|
|
39
|
+
|
|
40
|
+
const _useGetGlobalAttribut = useGetGlobalAttributes(otherProps),
|
|
41
|
+
{
|
|
42
|
+
className
|
|
43
|
+
} = _useGetGlobalAttribut,
|
|
44
|
+
globalAttributes = _objectWithoutProperties(_useGetGlobalAttribut, _excluded2);
|
|
45
|
+
|
|
46
|
+
const xstyledProps = useGetXstyledProps(otherProps);
|
|
47
|
+
const handleOnChange = useCallback(e => onChange(e.target.value, e), [onChange]);
|
|
48
|
+
return /*#__PURE__*/jsxs(StyledContainer, _objectSpread(_objectSpread({
|
|
49
|
+
className: className,
|
|
50
|
+
"data-testid": DSControlledLargetTextInputDatatestids.CONTAINER
|
|
51
|
+
}, xstyledProps), {}, {
|
|
52
|
+
children: [/*#__PURE__*/jsx(StyledTextArea, _objectSpread({
|
|
53
|
+
ref: innerRef,
|
|
54
|
+
maxLength: maxLength,
|
|
55
|
+
"aria-multiline": true,
|
|
56
|
+
value: value,
|
|
57
|
+
onChange: handleOnChange,
|
|
58
|
+
resizable: resizable,
|
|
59
|
+
name: name,
|
|
60
|
+
id: id,
|
|
61
|
+
"data-testid": DSControlledLargetTextInputDatatestids.INPUT,
|
|
62
|
+
hasError: hasError
|
|
63
|
+
}, globalAttributes)), maxLength && !withoutCharacterCounter && /*#__PURE__*/_jsx(StyledCharCounter, {
|
|
64
|
+
"data-testid": DSControlledLargetTextInputDatatestids.CHAR_COUNTER
|
|
65
|
+
}, void 0, "".concat(value.length, "/").concat(maxLength))]
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const DSControlledLargeTextInputWithSchema = describe(DSControlledLargeTextInput);
|
|
70
|
+
DSControlledLargeTextInputWithSchema.propTypes = propTypes;
|
|
71
|
+
|
|
72
|
+
export { DSControlledLargeTextInput, DSControlledLargeTextInputWithSchema };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const DSControlledLargetTextInputDatatestids = {
|
|
2
|
+
CONTAINER: 'ds-controlled-large-text-input-container',
|
|
3
|
+
CHAR_COUNTER: 'ds-controlled-large-text-input-char-counter',
|
|
4
|
+
INPUT: 'ds-controlled-large-text-input'
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export { DSControlledLargetTextInputDatatestids };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const DSControlledLargeTextInputName = 'ds-controlled-large-text-input';
|
|
2
|
+
const DSControlledLargeTextInputSlots = {
|
|
3
|
+
CONTAINER: 'root',
|
|
4
|
+
INPUT: 'input',
|
|
5
|
+
CHAR_COUNTER: 'char-counter'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { DSControlledLargeTextInputName, DSControlledLargeTextInputSlots };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DSControlledLargeTextInput, DSControlledLargeTextInputWithSchema } from './DSControlledLargeTextInput.js';
|
|
2
|
+
export { DSControlledLargetTextInputDatatestids } from './exported-related/data-test-ids.js';
|
|
3
|
+
export { DSControlledLargeTextInputName, DSControlledLargeTextInputSlots } from './exported-related/theming.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';
|
|
8
|
+
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
|
|
13
|
+
const noop = () => {};
|
|
14
|
+
|
|
15
|
+
const defaultProps = {
|
|
16
|
+
value: '',
|
|
17
|
+
onChange: noop,
|
|
18
|
+
withoutCharacterCounter: false,
|
|
19
|
+
resizable: false,
|
|
20
|
+
hasError: false
|
|
21
|
+
};
|
|
22
|
+
const propTypes = _objectSpread(_objectSpread(_objectSpread({}, globalAttributesPropTypes), xstyledPropTypes), {}, {
|
|
23
|
+
value: PropTypes.string.description('Text are value.').defaultValue(''),
|
|
24
|
+
onChange: PropTypes.func.description('OnChange cb.').defaultValue('() => {}'),
|
|
25
|
+
resizable: PropTypes.bool.description('Enables to resize the component.').defaultValue(false),
|
|
26
|
+
rows: PropTypes.string.description('Sets the number of lines for the default height. Once lines are reached, scroll behavior enables.'),
|
|
27
|
+
withoutCharacterCounter: PropTypes.bool.description('Removes the character counter.').defaultValue(false),
|
|
28
|
+
id: PropTypes.string.description('Unique id.'),
|
|
29
|
+
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description('Inner ref to the input.'),
|
|
30
|
+
maxLength: PropTypes.string.description('Max characters allowed.'),
|
|
31
|
+
disabled: PropTypes.bool.description('Set disabled state.'),
|
|
32
|
+
readOnly: PropTypes.bool.description('Set readonly state.'),
|
|
33
|
+
hasError: PropTypes.bool.description('Set error state.').defaultValue(false)
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export { defaultProps, propTypes };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
2
|
+
import { styled } from '@elliemae/ds-system';
|
|
3
|
+
import { layout, space, sizing } from '@xstyled/styled-components';
|
|
4
|
+
import { DSControlledLargeTextInputName, DSControlledLargeTextInputSlots } from './exported-related/theming.js';
|
|
5
|
+
|
|
6
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
7
|
+
const StyledContainer = styled('div', {
|
|
8
|
+
name: DSControlledLargeTextInputName,
|
|
9
|
+
slot: DSControlledLargeTextInputSlots.CONTAINER
|
|
10
|
+
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: grid;\n grid-gap: 4px;\n grid-template-rows: auto auto;\n grid-template-columns: fit-content;\n ", "\n ", "\n ", "\n"])), layout, space, sizing);
|
|
11
|
+
const StyledCharCounter = styled('span', {
|
|
12
|
+
name: DSControlledLargeTextInputName,
|
|
13
|
+
slot: DSControlledLargeTextInputSlots.CHAR_COUNTER
|
|
14
|
+
})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n justify-self: flex-end;\n"])));
|
|
15
|
+
const StyledTextArea = styled('textarea', {
|
|
16
|
+
name: DSControlledLargeTextInputName,
|
|
17
|
+
slot: DSControlledLargeTextInputSlots.INPUT
|
|
18
|
+
})(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n ", "\n &:disabled {\n &:hover {\n cursor: not-allowed;\n }\n }\n\n ", "\n"])), _ref => {
|
|
19
|
+
let {
|
|
20
|
+
resizable
|
|
21
|
+
} = _ref;
|
|
22
|
+
return resizable ? "" : "resize: none;";
|
|
23
|
+
}, _ref2 => {
|
|
24
|
+
let {
|
|
25
|
+
hasError
|
|
26
|
+
} = _ref2;
|
|
27
|
+
return hasError ? "border: 1px solid red;" : "";
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export { StyledCharCounter, StyledContainer, StyledTextArea };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { UsePhoneMaskWithSchema, usePhoneMask } from './usePhoneMask.js';
|
|
2
|
-
export { UseNumberMaskWithSchema, useNumberMask } from './useNumberMask.js';
|
|
3
|
-
export { UseSSNMaskWithSchema, useSSNMask } from './useSSNMask.js';
|
|
4
|
-
export { UseZipCodeMaskWithSchema,
|
|
1
|
+
export { UsePhoneMaskWithSchema, getPhoneMaskedValue, usePhoneMask } from './usePhoneMask.js';
|
|
2
|
+
export { UseNumberMaskWithSchema, getNumberMaskedValue, useNumberMask } from './useNumberMask.js';
|
|
3
|
+
export { UseSSNMaskWithSchema, getSSNMaskedValue, useSSNMask } from './useSSNMask.js';
|
|
4
|
+
export { UseZipCodeMaskWithSchema, getUseZipMaskedValue, useZipCodeMask } from './useZipCodeMask.js';
|
|
@@ -156,7 +156,11 @@ const useNumberMask = props => {
|
|
|
156
156
|
onBlur
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
|
+
const getNumberMaskedValue = (value, opts) => {
|
|
160
|
+
const [maskedValue] = conformValue(value, value.length - 1, '', opts);
|
|
161
|
+
return maskedValue;
|
|
162
|
+
};
|
|
159
163
|
const UseNumberMaskWithSchema = describe(useNumberMask);
|
|
160
164
|
UseNumberMaskWithSchema.propTypes = DSMaskNumberHookPropsTypes;
|
|
161
165
|
|
|
162
|
-
export { UseNumberMaskWithSchema, useNumberMask };
|
|
166
|
+
export { UseNumberMaskWithSchema, getNumberMaskedValue, useNumberMask };
|
|
@@ -78,7 +78,11 @@ const usePhoneMask = props => {
|
|
|
78
78
|
onChange
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
const getPhoneMaskedValue = (value, opts) => {
|
|
82
|
+
const [maskedValue] = conformValue(value, value.length - 1, '', opts);
|
|
83
|
+
return maskedValue;
|
|
84
|
+
};
|
|
81
85
|
const UsePhoneMaskWithSchema = describe(usePhoneMask);
|
|
82
86
|
UsePhoneMaskWithSchema.propTypes = DSMaskPhoneHookPropsTypes;
|
|
83
87
|
|
|
84
|
-
export { UsePhoneMaskWithSchema, usePhoneMask };
|
|
88
|
+
export { UsePhoneMaskWithSchema, getPhoneMaskedValue, usePhoneMask };
|
|
@@ -61,7 +61,11 @@ const useSSNMask = props => {
|
|
|
61
61
|
onChange
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
+
const getSSNMaskedValue = value => {
|
|
65
|
+
const [maskedValue] = conformValue(value, value.length - 1, '');
|
|
66
|
+
return maskedValue;
|
|
67
|
+
};
|
|
64
68
|
const UseSSNMaskWithSchema = describe(useSSNMask);
|
|
65
69
|
UseSSNMaskWithSchema.propTypes = DSMaskHookPropsTypes;
|
|
66
70
|
|
|
67
|
-
export { UseSSNMaskWithSchema, useSSNMask };
|
|
71
|
+
export { UseSSNMaskWithSchema, getSSNMaskedValue, useSSNMask };
|
|
@@ -14,14 +14,14 @@ const zipCodeSpecialChars = [['-', 5]];
|
|
|
14
14
|
|
|
15
15
|
const conformValue = (rawValue, cursorPos, lastKeyCode) => {
|
|
16
16
|
// Work with digits only
|
|
17
|
-
let maskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9'); // We only consider first
|
|
17
|
+
let maskedValue = rawValue.split('').filter(char => char >= '0' && char <= '9'); // We only consider first 9 digits
|
|
18
18
|
|
|
19
|
-
maskedValue = maskedValue.slice(0,
|
|
19
|
+
maskedValue = maskedValue.slice(0, 9);
|
|
20
20
|
const maskedPos = getPartialMaskedPos(rawValue, maskedValue, cursorPos);
|
|
21
21
|
return addSpecialCharacters(maskedValue, zipCodeSpecialChars, maskedPos, lastKeyCode);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const useZipCodeMask = props => {
|
|
25
25
|
const propsWithDefault = useMemoMergePropsWithDefault(props, DSMaskHookDefaultProps);
|
|
26
26
|
useValidateTypescriptPropTypes(propsWithDefault, DSMaskHookPropsTypes);
|
|
27
27
|
const {
|
|
@@ -58,7 +58,11 @@ const useZipCode = props => {
|
|
|
58
58
|
onChange
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
const
|
|
61
|
+
const getUseZipMaskedValue = value => {
|
|
62
|
+
const [maskedValue] = conformValue(value, value.length - 1, '');
|
|
63
|
+
return maskedValue;
|
|
64
|
+
};
|
|
65
|
+
const UseZipCodeMaskWithSchema = describe(useZipCodeMask);
|
|
62
66
|
UseZipCodeMaskWithSchema.propTypes = DSMaskHookPropsTypes;
|
|
63
67
|
|
|
64
|
-
export { UseZipCodeMaskWithSchema,
|
|
68
|
+
export { UseZipCodeMaskWithSchema, getUseZipMaskedValue, useZipCodeMask };
|
package/esm/mask-hook/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { UsePhoneMaskWithSchema, usePhoneMask } from './hooks/usePhoneMask.js';
|
|
2
|
-
export { UseNumberMaskWithSchema, useNumberMask } from './hooks/useNumberMask.js';
|
|
3
|
-
export { UseSSNMaskWithSchema, useSSNMask } from './hooks/useSSNMask.js';
|
|
4
|
-
export { UseZipCodeMaskWithSchema,
|
|
1
|
+
export { UsePhoneMaskWithSchema, getPhoneMaskedValue, usePhoneMask } from './hooks/usePhoneMask.js';
|
|
2
|
+
export { UseNumberMaskWithSchema, getNumberMaskedValue, useNumberMask } from './hooks/useNumberMask.js';
|
|
3
|
+
export { UseSSNMaskWithSchema, getSSNMaskedValue, useSSNMask } from './hooks/useSSNMask.js';
|
|
4
|
+
export { UseZipCodeMaskWithSchema, getUseZipMaskedValue, useZipCodeMask } from './hooks/useZipCodeMask.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-controlled-form",
|
|
3
|
-
"version": "2.4.1-rc.
|
|
3
|
+
"version": "2.4.1-rc.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Controllers",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -59,14 +59,6 @@
|
|
|
59
59
|
"import": "./esm/text-input/exported-related/theming.js",
|
|
60
60
|
"require": "./cjs/text-input/exported-related/theming.js"
|
|
61
61
|
},
|
|
62
|
-
"./text-input/exported-related/slots": {
|
|
63
|
-
"import": "./esm/text-input/exported-related/slots.js",
|
|
64
|
-
"require": "./cjs/text-input/exported-related/slots.js"
|
|
65
|
-
},
|
|
66
|
-
"./text-input/exported-related/name": {
|
|
67
|
-
"import": "./esm/text-input/exported-related/name.js",
|
|
68
|
-
"require": "./cjs/text-input/exported-related/name.js"
|
|
69
|
-
},
|
|
70
62
|
"./text-input/exported-related": {
|
|
71
63
|
"import": "./esm/text-input/exported-related/index.js",
|
|
72
64
|
"require": "./cjs/text-input/exported-related/index.js"
|
|
@@ -111,9 +103,9 @@
|
|
|
111
103
|
"import": "./esm/mask-hook/index.js",
|
|
112
104
|
"require": "./cjs/mask-hook/index.js"
|
|
113
105
|
},
|
|
114
|
-
"./mask-hook/hooks/
|
|
115
|
-
"import": "./esm/mask-hook/hooks/
|
|
116
|
-
"require": "./cjs/mask-hook/hooks/
|
|
106
|
+
"./mask-hook/hooks/useZipCodeMask": {
|
|
107
|
+
"import": "./esm/mask-hook/hooks/useZipCodeMask.js",
|
|
108
|
+
"require": "./cjs/mask-hook/hooks/useZipCodeMask.js"
|
|
117
109
|
},
|
|
118
110
|
"./mask-hook/hooks/useSSNMask": {
|
|
119
111
|
"import": "./esm/mask-hook/hooks/useSSNMask.js",
|
|
@@ -131,6 +123,34 @@
|
|
|
131
123
|
"import": "./esm/mask-hook/hooks/index.js",
|
|
132
124
|
"require": "./cjs/mask-hook/hooks/index.js"
|
|
133
125
|
},
|
|
126
|
+
"./large-text-input/styles": {
|
|
127
|
+
"import": "./esm/large-text-input/styles.js",
|
|
128
|
+
"require": "./cjs/large-text-input/styles.js"
|
|
129
|
+
},
|
|
130
|
+
"./large-text-input/react-desc-prop-types": {
|
|
131
|
+
"import": "./esm/large-text-input/react-desc-prop-types.js",
|
|
132
|
+
"require": "./cjs/large-text-input/react-desc-prop-types.js"
|
|
133
|
+
},
|
|
134
|
+
"./large-text-input": {
|
|
135
|
+
"import": "./esm/large-text-input/index.js",
|
|
136
|
+
"require": "./cjs/large-text-input/index.js"
|
|
137
|
+
},
|
|
138
|
+
"./large-text-input/exported-related/theming": {
|
|
139
|
+
"import": "./esm/large-text-input/exported-related/theming.js",
|
|
140
|
+
"require": "./cjs/large-text-input/exported-related/theming.js"
|
|
141
|
+
},
|
|
142
|
+
"./large-text-input/exported-related": {
|
|
143
|
+
"import": "./esm/large-text-input/exported-related/index.js",
|
|
144
|
+
"require": "./cjs/large-text-input/exported-related/index.js"
|
|
145
|
+
},
|
|
146
|
+
"./large-text-input/exported-related/data-test-ids": {
|
|
147
|
+
"import": "./esm/large-text-input/exported-related/data-test-ids.js",
|
|
148
|
+
"require": "./cjs/large-text-input/exported-related/data-test-ids.js"
|
|
149
|
+
},
|
|
150
|
+
"./large-text-input/DSControlledLargeTextInput": {
|
|
151
|
+
"import": "./esm/large-text-input/DSControlledLargeTextInput.js",
|
|
152
|
+
"require": "./cjs/large-text-input/DSControlledLargeTextInput.js"
|
|
153
|
+
},
|
|
134
154
|
"./date-time-picker/utils/timeHelpers": {
|
|
135
155
|
"import": "./esm/date-time-picker/utils/timeHelpers.js",
|
|
136
156
|
"require": "./cjs/date-time-picker/utils/timeHelpers.js"
|
|
@@ -695,13 +715,9 @@
|
|
|
695
715
|
"import": "./esm/autocomplete/utils/listHelper.js",
|
|
696
716
|
"require": "./cjs/autocomplete/utils/listHelper.js"
|
|
697
717
|
},
|
|
698
|
-
"./autocomplete/utils
|
|
699
|
-
"import": "./esm/autocomplete/utils
|
|
700
|
-
"require": "./cjs/autocomplete/utils
|
|
701
|
-
},
|
|
702
|
-
"./autocomplete/utils/hooks/useKeyboardNavigation": {
|
|
703
|
-
"import": "./esm/autocomplete/utils/hooks/useKeyboardNavigation.js",
|
|
704
|
-
"require": "./cjs/autocomplete/utils/hooks/useKeyboardNavigation.js"
|
|
718
|
+
"./autocomplete/tests/utils": {
|
|
719
|
+
"import": "./esm/autocomplete/tests/utils.js",
|
|
720
|
+
"require": "./cjs/autocomplete/tests/utils.js"
|
|
705
721
|
},
|
|
706
722
|
"./autocomplete/sharedTypes": {
|
|
707
723
|
"import": "./esm/autocomplete/sharedTypes.js",
|
|
@@ -711,14 +727,6 @@
|
|
|
711
727
|
"import": "./esm/autocomplete/react-desc-prop-types.js",
|
|
712
728
|
"require": "./cjs/autocomplete/react-desc-prop-types.js"
|
|
713
729
|
},
|
|
714
|
-
"./autocomplete/propTypes": {
|
|
715
|
-
"import": "./esm/autocomplete/propTypes.js",
|
|
716
|
-
"require": "./cjs/autocomplete/propTypes.js"
|
|
717
|
-
},
|
|
718
|
-
"./autocomplete/parts/menu-list/useMenuList": {
|
|
719
|
-
"import": "./esm/autocomplete/parts/menu-list/useMenuList.js",
|
|
720
|
-
"require": "./cjs/autocomplete/parts/menu-list/useMenuList.js"
|
|
721
|
-
},
|
|
722
730
|
"./autocomplete/parts/menu-list/useItemRenderer": {
|
|
723
731
|
"import": "./esm/autocomplete/parts/menu-list/useItemRenderer.js",
|
|
724
732
|
"require": "./cjs/autocomplete/parts/menu-list/useItemRenderer.js"
|
|
@@ -735,29 +743,9 @@
|
|
|
735
743
|
"import": "./esm/autocomplete/parts/menu-list/index.js",
|
|
736
744
|
"require": "./cjs/autocomplete/parts/menu-list/index.js"
|
|
737
745
|
},
|
|
738
|
-
"./autocomplete/parts/
|
|
739
|
-
"import": "./esm/autocomplete/parts/
|
|
740
|
-
"require": "./cjs/autocomplete/parts/
|
|
741
|
-
},
|
|
742
|
-
"./autocomplete/parts/controls/useKeyboardNavigation": {
|
|
743
|
-
"import": "./esm/autocomplete/parts/controls/useKeyboardNavigation.js",
|
|
744
|
-
"require": "./cjs/autocomplete/parts/controls/useKeyboardNavigation.js"
|
|
745
|
-
},
|
|
746
|
-
"./autocomplete/parts/controls/useControlsInput": {
|
|
747
|
-
"import": "./esm/autocomplete/parts/controls/useControlsInput.js",
|
|
748
|
-
"require": "./cjs/autocomplete/parts/controls/useControlsInput.js"
|
|
749
|
-
},
|
|
750
|
-
"./autocomplete/parts/controls/styled": {
|
|
751
|
-
"import": "./esm/autocomplete/parts/controls/styled.js",
|
|
752
|
-
"require": "./cjs/autocomplete/parts/controls/styled.js"
|
|
753
|
-
},
|
|
754
|
-
"./autocomplete/parts/controls": {
|
|
755
|
-
"import": "./esm/autocomplete/parts/controls/index.js",
|
|
756
|
-
"require": "./cjs/autocomplete/parts/controls/index.js"
|
|
757
|
-
},
|
|
758
|
-
"./autocomplete/parts/controls/Controls": {
|
|
759
|
-
"import": "./esm/autocomplete/parts/controls/Controls.js",
|
|
760
|
-
"require": "./cjs/autocomplete/parts/controls/Controls.js"
|
|
746
|
+
"./autocomplete/parts/container/useKeyboardNavigation": {
|
|
747
|
+
"import": "./esm/autocomplete/parts/container/useKeyboardNavigation.js",
|
|
748
|
+
"require": "./cjs/autocomplete/parts/container/useKeyboardNavigation.js"
|
|
761
749
|
},
|
|
762
750
|
"./autocomplete/parts/container/styled": {
|
|
763
751
|
"import": "./esm/autocomplete/parts/container/styled.js",
|
|
@@ -771,38 +759,14 @@
|
|
|
771
759
|
"import": "./esm/autocomplete/parts/container/Container.js",
|
|
772
760
|
"require": "./cjs/autocomplete/parts/container/Container.js"
|
|
773
761
|
},
|
|
774
|
-
"./autocomplete/parts/a11y-messages/styled": {
|
|
775
|
-
"import": "./esm/autocomplete/parts/a11y-messages/styled.js",
|
|
776
|
-
"require": "./cjs/autocomplete/parts/a11y-messages/styled.js"
|
|
777
|
-
},
|
|
778
|
-
"./autocomplete/parts/a11y-messages/SingleAllyMessages": {
|
|
779
|
-
"import": "./esm/autocomplete/parts/a11y-messages/SingleAllyMessages.js",
|
|
780
|
-
"require": "./cjs/autocomplete/parts/a11y-messages/SingleAllyMessages.js"
|
|
781
|
-
},
|
|
782
|
-
"./autocomplete/parts/a11y-messages/MultiAllyMessages": {
|
|
783
|
-
"import": "./esm/autocomplete/parts/a11y-messages/MultiAllyMessages.js",
|
|
784
|
-
"require": "./cjs/autocomplete/parts/a11y-messages/MultiAllyMessages.js"
|
|
785
|
-
},
|
|
786
|
-
"./autocomplete/parts/a11y-messages": {
|
|
787
|
-
"import": "./esm/autocomplete/parts/a11y-messages/index.js",
|
|
788
|
-
"require": "./cjs/autocomplete/parts/a11y-messages/index.js"
|
|
789
|
-
},
|
|
790
762
|
"./autocomplete": {
|
|
791
763
|
"import": "./esm/autocomplete/index.js",
|
|
792
764
|
"require": "./cjs/autocomplete/index.js"
|
|
793
765
|
},
|
|
794
|
-
"./autocomplete/config/useGetPropsWithDefault": {
|
|
795
|
-
"import": "./esm/autocomplete/config/useGetPropsWithDefault.js",
|
|
796
|
-
"require": "./cjs/autocomplete/config/useGetPropsWithDefault.js"
|
|
797
|
-
},
|
|
798
766
|
"./autocomplete/config/useAutocomplete": {
|
|
799
767
|
"import": "./esm/autocomplete/config/useAutocomplete.js",
|
|
800
768
|
"require": "./cjs/autocomplete/config/useAutocomplete.js"
|
|
801
769
|
},
|
|
802
|
-
"./autocomplete/config/constants": {
|
|
803
|
-
"import": "./esm/autocomplete/config/constants.js",
|
|
804
|
-
"require": "./cjs/autocomplete/config/constants.js"
|
|
805
|
-
},
|
|
806
770
|
"./autocomplete/AutocompleteDataTestids": {
|
|
807
771
|
"import": "./esm/autocomplete/AutocompleteDataTestids.js",
|
|
808
772
|
"require": "./cjs/autocomplete/AutocompleteDataTestids.js"
|
|
@@ -836,20 +800,20 @@
|
|
|
836
800
|
"build": "node ../../scripts/build/build.js"
|
|
837
801
|
},
|
|
838
802
|
"dependencies": {
|
|
839
|
-
"@elliemae/ds-button": "2.4.1-rc.
|
|
840
|
-
"@elliemae/ds-circular-progress-indicator": "2.4.1-rc.
|
|
841
|
-
"@elliemae/ds-controlled-form": "2.4.1-rc.
|
|
842
|
-
"@elliemae/ds-form": "2.4.1-rc.
|
|
843
|
-
"@elliemae/ds-form-layout-blocks": "2.4.1-rc.
|
|
844
|
-
"@elliemae/ds-grid": "2.4.1-rc.
|
|
845
|
-
"@elliemae/ds-icon": "2.4.1-rc.
|
|
846
|
-
"@elliemae/ds-icons": "2.4.1-rc.
|
|
847
|
-
"@elliemae/ds-pills": "2.4.1-rc.
|
|
848
|
-
"@elliemae/ds-popperjs": "2.4.1-rc.
|
|
849
|
-
"@elliemae/ds-props-helpers": "2.4.1-rc.
|
|
850
|
-
"@elliemae/ds-system": "2.4.1-rc.
|
|
851
|
-
"@elliemae/ds-tooltip": "2.4.1-rc.
|
|
852
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.
|
|
803
|
+
"@elliemae/ds-button": "2.4.1-rc.5",
|
|
804
|
+
"@elliemae/ds-circular-progress-indicator": "2.4.1-rc.5",
|
|
805
|
+
"@elliemae/ds-controlled-form": "2.4.1-rc.5",
|
|
806
|
+
"@elliemae/ds-form": "2.4.1-rc.5",
|
|
807
|
+
"@elliemae/ds-form-layout-blocks": "2.4.1-rc.5",
|
|
808
|
+
"@elliemae/ds-grid": "2.4.1-rc.5",
|
|
809
|
+
"@elliemae/ds-icon": "2.4.1-rc.5",
|
|
810
|
+
"@elliemae/ds-icons": "2.4.1-rc.5",
|
|
811
|
+
"@elliemae/ds-pills": "2.4.1-rc.5",
|
|
812
|
+
"@elliemae/ds-popperjs": "2.4.1-rc.5",
|
|
813
|
+
"@elliemae/ds-props-helpers": "2.4.1-rc.5",
|
|
814
|
+
"@elliemae/ds-system": "2.4.1-rc.5",
|
|
815
|
+
"@elliemae/ds-tooltip": "2.4.1-rc.5",
|
|
816
|
+
"@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.5",
|
|
853
817
|
"prop-types": "~15.7.2",
|
|
854
818
|
"react-desc": "~4.1.3",
|
|
855
819
|
"react-popper": "~2.2.5",
|