@elliemae/ds-form 2.0.0-alpha.4 → 2.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/cjs/Checkbox/DSCheckbox.js +9 -11
  2. package/cjs/Checkbox/elements/CheckMark.js +1 -1
  3. package/cjs/Checkbox/index.js +2 -4
  4. package/cjs/CheckboxGroup/DSCheckboxGroup.js +7 -7
  5. package/cjs/CheckboxGroup/index.js +1 -1
  6. package/cjs/ComboBox/DSComboBox.js +3 -7
  7. package/cjs/ComboBox/index.js +3 -7
  8. package/cjs/ComboBox/v1/DSComboBox.js +23 -27
  9. package/cjs/ComboBox/v1/components/AllOption.js +3 -3
  10. package/cjs/ComboBox/v1/components/ClearIndicator.js +2 -2
  11. package/cjs/ComboBox/v1/components/Control.js +2 -2
  12. package/cjs/ComboBox/v1/components/CustomOption.js +4 -4
  13. package/cjs/ComboBox/v1/components/CustomOptionMulti.js +5 -5
  14. package/cjs/ComboBox/v1/components/DropdownIndicator.js +4 -4
  15. package/cjs/ComboBox/v1/components/MenuList.js +3 -3
  16. package/cjs/ComboBox/v1/components/MultiSelectHeader.js +1 -1
  17. package/cjs/ComboBox/v1/components/MultiValueLabel.js +1 -1
  18. package/cjs/ComboBox/v1/components/MultiValueRemove.js +1 -1
  19. package/cjs/ComboBox/v1/components/SelectMenu.js +5 -5
  20. package/cjs/ComboBox/v1/components/SingleValueLabel.js +1 -1
  21. package/cjs/ComboBox/v1/components/ValueContainer.js +4 -4
  22. package/cjs/ComboBox/v1/index.js +3 -7
  23. package/cjs/ComboBox/v1/withSelectStringValueConverter.js +3 -3
  24. package/cjs/ComboBox/v2/Combobox.js +9 -9
  25. package/cjs/ComboBox/v2/components/AllOption.js +3 -3
  26. package/cjs/ComboBox/v2/components/ClearIndicator.js +4 -4
  27. package/cjs/ComboBox/v2/components/Content.js +3 -3
  28. package/cjs/ComboBox/v2/components/Control.js +2 -2
  29. package/cjs/ComboBox/v2/components/CustomOption.js +6 -6
  30. package/cjs/ComboBox/v2/components/CustomOptionMulti.js +9 -9
  31. package/cjs/ComboBox/v2/components/DropdownIndicator.js +4 -4
  32. package/cjs/ComboBox/v2/components/GroupHeading.js +4 -4
  33. package/cjs/ComboBox/v2/components/IndicatorSeparator.js +2 -2
  34. package/cjs/ComboBox/v2/components/LoadingIndicator.js +3 -3
  35. package/cjs/ComboBox/v2/components/MenuList.js +4 -4
  36. package/cjs/ComboBox/v2/components/MultiSelectHeader.js +11 -11
  37. package/cjs/ComboBox/v2/components/MultiValueLabel.js +1 -1
  38. package/cjs/ComboBox/v2/components/MultiValueRemove.js +2 -2
  39. package/cjs/ComboBox/v2/components/SelectMenu.js +4 -4
  40. package/cjs/ComboBox/v2/components/SingleValueLabel.js +1 -1
  41. package/cjs/ComboBox/v2/components/ValueContainer.js +3 -3
  42. package/cjs/ComboBox/v2/context.js +1 -1
  43. package/cjs/ComboBox/v2/index.js +1 -1
  44. package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +2 -2
  45. package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +5 -5
  46. package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +3 -3
  47. package/cjs/ComboBoxFreeSolo/components/SingleValue.js +2 -2
  48. package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +3 -3
  49. package/cjs/DateInput/DSDateInput.js +4 -4
  50. package/cjs/DateInput/components/DateInputImpl.js +2 -2
  51. package/cjs/DateInput/components/DateInputs.js +7 -7
  52. package/cjs/DateInput/components/utils.js +1 -1
  53. package/cjs/DateInput/index.js +1 -1
  54. package/cjs/DateInputV2/components/DSDateInput.js +2 -2
  55. package/cjs/DateInputV2/components/DateInputs.js +13 -13
  56. package/cjs/DateInputV2/components/propsTypes.js +17 -17
  57. package/cjs/DateInputV2/components/styled.js +4 -4
  58. package/cjs/DateInputV2/components/utils.js +1 -1
  59. package/cjs/DateInputV2/index.js +1 -1
  60. package/cjs/ExpandableInput/DSExpandableInput.js +1 -1
  61. package/cjs/ExpandableInput/ExpandableInputImpl.js +3 -3
  62. package/cjs/FloatingLabelInput/DSFloatingLabelInput.js +2 -2
  63. package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +15 -15
  64. package/cjs/FormItem/DSFormItemLayout.js +13 -13
  65. package/cjs/FormItem/Error/DSError.js +2 -2
  66. package/cjs/FormItem/Feedback.js +1 -1
  67. package/cjs/FormItem/Label/DSLabel.js +3 -3
  68. package/cjs/FormItem/Suffix/Suffix.js +4 -4
  69. package/cjs/FormItem/ValidationFieldWrapper.js +2 -2
  70. package/cjs/FormItem/defaultProps.js +1 -1
  71. package/cjs/FormItem/index.js +2 -2
  72. package/cjs/Input/DSInput.js +4 -3
  73. package/cjs/Input/InputAddonWrapper.js +4 -4
  74. package/cjs/Input/InputImpl.js +56 -55
  75. package/cjs/Input/index.js +1 -1
  76. package/cjs/InputGroup/AddonWrapper.js +4 -4
  77. package/cjs/InputGroup/DSInputGroup.js +1 -1
  78. package/cjs/InputGroup/index.js +1 -1
  79. package/cjs/InputMask/DSInputMask.js +3 -3
  80. package/cjs/InputMask/DSInputMaskDeprecated.js +10 -10
  81. package/cjs/InputMask/InputMaskContext.js +1 -1
  82. package/cjs/InputMask/MaskTypes.js +1 -1
  83. package/cjs/InputMask/index.js +1 -1
  84. package/cjs/InputMask/mask_types/DateInputMask.js +3 -3
  85. package/cjs/InputMask/mask_types/DateTimeInputMask.js +3 -3
  86. package/cjs/InputMask/mask_types/DictionaryInputMask.js +3 -3
  87. package/cjs/InputMask/mask_types/NumberInputMask.js +3 -3
  88. package/cjs/InputMask/mask_types/PhoneInputMask.js +3 -3
  89. package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +3 -3
  90. package/cjs/InputMask/mask_types/SsnInputMask.js +3 -3
  91. package/cjs/InputMask/mask_types/UsZipCodeInputMask.js +3 -3
  92. package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +3 -3
  93. package/cjs/InputMask/mask_types/index.js +4 -4
  94. package/cjs/InputProtected/DSInputProtected.js +10 -10
  95. package/cjs/InputProtected/index.js +1 -1
  96. package/cjs/LargeInputText/DSLargeInputText.js +4 -4
  97. package/cjs/LargeInputText/index.js +1 -1
  98. package/cjs/Radio/Circle.js +2 -2
  99. package/cjs/Radio/DSRadio.js +8 -8
  100. package/cjs/Radio/index.js +1 -1
  101. package/cjs/RadioGroup/DSRadioGroup.js +8 -8
  102. package/cjs/RadioGroup/index.js +1 -1
  103. package/cjs/RequiredMark/RequiredMark.js +2 -2
  104. package/cjs/SearchBox/DSSearchBox.js +11 -8
  105. package/cjs/SearchBox/NavSearchBox.js +19 -19
  106. package/cjs/SearchBox/SButton.js +2 -2
  107. package/cjs/SearchBox/SearchBoxToggle.js +7 -7
  108. package/cjs/SearchBox/index.js +1 -1
  109. package/cjs/SearchBox/styled.js +1 -1
  110. package/cjs/SearchBox/withSearchable.js +4 -4
  111. package/cjs/TextBox/DSTextBox.js +11 -8
  112. package/cjs/TextBox/index.js +1 -1
  113. package/cjs/TimeInput/DSTimeInput.js +4 -4
  114. package/cjs/TimeInput/TimeInputImpl.js +3 -3
  115. package/cjs/TimeInput/TimeInputs.js +8 -8
  116. package/cjs/TimeInput/index.js +1 -1
  117. package/cjs/Toggle/DSToggle.js +3 -3
  118. package/cjs/Toggle/DSToggleImpl.js +17 -17
  119. package/cjs/Toggle/DSToggleRender.js +7 -7
  120. package/cjs/Toggle/index.js +1 -1
  121. package/cjs/Toggle/props.js +11 -11
  122. package/cjs/index.js +14 -18
  123. package/esm/Input/DSInput.js +1 -0
  124. package/esm/Input/InputImpl.js +3 -2
  125. package/esm/Radio/DSRadio.js +1 -1
  126. package/esm/SearchBox/DSSearchBox.js +5 -2
  127. package/esm/TextBox/DSTextBox.js +7 -4
  128. package/package.json +17 -17
  129. package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +2 -1
  130. package/types/FormItem/DSFormItemLayout.d.ts +2 -1
  131. package/types/FormItem/defaultProps.d.ts +2 -1
  132. package/types/SearchBox/styled.d.ts +2 -1
  133. package/types/TextBox/DSTextBox.d.ts +2 -1
@@ -13,13 +13,13 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
13
 
14
14
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
15
15
 
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
17
 
18
18
  class DSToggleImpl extends React.Component {
19
19
  constructor(props) {
20
20
  super(props);
21
21
 
22
- _defineProperty__default['default'](this, "onDragStart", clientX => {
22
+ _defineProperty__default["default"](this, "onDragStart", clientX => {
23
23
  const {
24
24
  startPoint,
25
25
  checked,
@@ -41,7 +41,7 @@ class DSToggleImpl extends React.Component {
41
41
  else this.setDragOnChange(checked); // set initial position
42
42
  });
43
43
 
44
- _defineProperty__default['default'](this, "onDragStop", e => {
44
+ _defineProperty__default["default"](this, "onDragStop", e => {
45
45
  const {
46
46
  checked
47
47
  } = this.state; // const { checked: checkedProp, } = this.props
@@ -53,7 +53,7 @@ class DSToggleImpl extends React.Component {
53
53
 
54
54
  });
55
55
 
56
- _defineProperty__default['default'](this, "onBlur", e => {
56
+ _defineProperty__default["default"](this, "onBlur", e => {
57
57
  const {
58
58
  onBlur,
59
59
  id
@@ -61,7 +61,7 @@ class DSToggleImpl extends React.Component {
61
61
  if (onBlur) onBlur(e, id);
62
62
  });
63
63
 
64
- _defineProperty__default['default'](this, "onFocus", e => {
64
+ _defineProperty__default["default"](this, "onFocus", e => {
65
65
  const {
66
66
  onFocus,
67
67
  id
@@ -69,7 +69,7 @@ class DSToggleImpl extends React.Component {
69
69
  if (onFocus) onFocus(e, id);
70
70
  });
71
71
 
72
- _defineProperty__default['default'](this, "onChange", e => {
72
+ _defineProperty__default["default"](this, "onChange", e => {
73
73
  const {
74
74
  checked
75
75
  } = this.state;
@@ -94,24 +94,24 @@ class DSToggleImpl extends React.Component {
94
94
  this.setDragOnChange(newCheck); // set new position
95
95
  });
96
96
 
97
- _defineProperty__default['default'](this, "onMouseEnter", () => {
97
+ _defineProperty__default["default"](this, "onMouseEnter", () => {
98
98
  this.setState({
99
99
  inside: true
100
100
  });
101
101
  });
102
102
 
103
- _defineProperty__default['default'](this, "onMouseLeave", () => {
103
+ _defineProperty__default["default"](this, "onMouseLeave", () => {
104
104
  this.setState({
105
105
  inside: false
106
106
  });
107
107
  });
108
108
 
109
- _defineProperty__default['default'](this, "onMouseMove", event => {
109
+ _defineProperty__default["default"](this, "onMouseMove", event => {
110
110
  event.preventDefault();
111
111
  this.onDragStart(event.clientX);
112
112
  });
113
113
 
114
- _defineProperty__default['default'](this, "onMouseDown", event => {
114
+ _defineProperty__default["default"](this, "onMouseDown", event => {
115
115
  this.onDragStart(event.clientX);
116
116
  this.setState({
117
117
  startPoint: event.clientX,
@@ -121,28 +121,28 @@ class DSToggleImpl extends React.Component {
121
121
  window.addEventListener('mouseup', this.onMouseUp);
122
122
  });
123
123
 
124
- _defineProperty__default['default'](this, "onMouseUp", event => {
124
+ _defineProperty__default["default"](this, "onMouseUp", event => {
125
125
  this.onDragStop(event);
126
126
  window.removeEventListener('mousemove', this.onMouseMove);
127
127
  window.removeEventListener('mouseup', this.onMouseUp);
128
128
  });
129
129
 
130
- _defineProperty__default['default'](this, "onTouchCancel", () => {
130
+ _defineProperty__default["default"](this, "onTouchCancel", () => {
131
131
  this.setState({
132
132
  inside: false
133
133
  });
134
134
  });
135
135
 
136
- _defineProperty__default['default'](this, "onTouchEnd", event => {
136
+ _defineProperty__default["default"](this, "onTouchEnd", event => {
137
137
  event.preventDefault();
138
138
  this.onDragStop(event);
139
139
  });
140
140
 
141
- _defineProperty__default['default'](this, "onTouchMove", event => {
141
+ _defineProperty__default["default"](this, "onTouchMove", event => {
142
142
  this.onDragStart(event.touches[0].clientX);
143
143
  });
144
144
 
145
- _defineProperty__default['default'](this, "onTouchStart", event => {
145
+ _defineProperty__default["default"](this, "onTouchStart", event => {
146
146
  this.onDragStart(event.touches[0].clientX);
147
147
  this.setState({
148
148
  startPoint: event.touches[0].clientX,
@@ -161,8 +161,8 @@ class DSToggleImpl extends React.Component {
161
161
  circleWidth: null,
162
162
  boxWidth: null
163
163
  };
164
- this.circle = /*#__PURE__*/React__default['default'].createRef();
165
- this.box = /*#__PURE__*/React__default['default'].createRef();
164
+ this.circle = /*#__PURE__*/React__default["default"].createRef();
165
+ this.box = /*#__PURE__*/React__default["default"].createRef();
166
166
  }
167
167
 
168
168
  componentDidMount() {
@@ -17,7 +17,7 @@ var DSTooltip__default = /*#__PURE__*/_interopDefaultLegacy(DSTooltip);
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['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
+ 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 DSToggleRender = ({
23
23
  containerProps,
@@ -62,14 +62,14 @@ const DSToggleRender = ({
62
62
  size
63
63
  });
64
64
  const allowChange = disabled || readOnly;
65
- let label = checked ? /*#__PURE__*/_jsx__default['default']("div", {
65
+ let label = checked ? /*#__PURE__*/_jsx__default["default"]("div", {
66
66
  className: classNameElement('icon-on')
67
- }, void 0, labelOn) : /*#__PURE__*/_jsx__default['default']("div", {
67
+ }, void 0, labelOn) : /*#__PURE__*/_jsx__default["default"]("div", {
68
68
  className: classNameElement('icon-off')
69
69
  }, void 0, labelOff);
70
70
 
71
71
  if (readOnly) {
72
- label = /*#__PURE__*/_jsx__default['default'](DSTooltip__default['default'], {
72
+ label = /*#__PURE__*/_jsx__default["default"](DSTooltip__default["default"], {
73
73
  interactionType: "hover",
74
74
  title: "Read Only",
75
75
  triggerComponent: label
@@ -82,7 +82,7 @@ const DSToggleRender = ({
82
82
  "aria-disabled": disabled,
83
83
  defaultChecked: checked,
84
84
  defaultValue: value
85
- }, onClickHandlerForNonInteractiveElements__default['default'](allowChange ? null : onChange)), {}, {
85
+ }, onClickHandlerForNonInteractiveElements__default["default"](allowChange ? null : onChange)), {}, {
86
86
  ref: containerRef,
87
87
  className: `${cssClassName} ${defaultState ? 'default-state-checked' : ''}${hide ? ' ds-form-element-toggle-hide' : ''}`,
88
88
  onBlur: onBlur,
@@ -91,7 +91,7 @@ const DSToggleRender = ({
91
91
  "aria-checked": checked,
92
92
  role: "checkbox",
93
93
  tabIndex: 0,
94
- children: [/*#__PURE__*/_jsx__default['default']("div", {
94
+ children: [/*#__PURE__*/_jsx__default["default"]("div", {
95
95
  className: classNameBlock('box')
96
96
  }, void 0, label), /*#__PURE__*/jsxRuntime.jsx("div", {
97
97
  ref: handRef,
@@ -106,7 +106,7 @@ const DSToggleRender = ({
106
106
  onTouchMove: allowChange ? null : onTouchMove,
107
107
  onTouchStart: allowChange ? null : onTouchStart,
108
108
  style: _objectSpread(_objectSpread({}, style), dragStyle)
109
- }), /*#__PURE__*/_jsx__default['default']("input", {
109
+ }), /*#__PURE__*/_jsx__default["default"]("input", {
110
110
  className: classNameElement('hidden-checkbox'),
111
111
  defaultChecked: checked,
112
112
  defaultValue: value,
@@ -7,4 +7,4 @@ var DSToggle = require('./DSToggle.js');
7
7
 
8
8
 
9
9
  exports.DSToggleWithSchema = DSToggle.DSToggleWithSchema;
10
- exports.default = DSToggle['default'];
10
+ exports["default"] = DSToggle["default"];
@@ -13,57 +13,57 @@ const togglePropTypes = {
13
13
  /**
14
14
  * Set of Properties attached to the main container
15
15
  */
16
- containerProps: PropTypes__default['default'].shape({}),
16
+ containerProps: PropTypes__default["default"].shape({}),
17
17
 
18
18
  /**
19
19
  * Whether the toggle has error or not
20
20
  */
21
- hasError: PropTypes__default['default'].bool,
21
+ hasError: PropTypes__default["default"].bool,
22
22
 
23
23
  /**
24
24
  * Whether the toggle is read only or not
25
25
  */
26
- readOnly: PropTypes__default['default'].bool,
26
+ readOnly: PropTypes__default["default"].bool,
27
27
 
28
28
  /**
29
29
  * Whether the toggle is disabled or not
30
30
  */
31
- disabled: PropTypes__default['default'].bool,
31
+ disabled: PropTypes__default["default"].bool,
32
32
 
33
33
  /**
34
34
  * Whether the toggle is checked or not
35
35
  */
36
- checked: PropTypes__default['default'].bool,
36
+ checked: PropTypes__default["default"].bool,
37
37
 
38
38
  /**
39
39
  * Allows a function that is triggered once the toggle changes
40
40
  */
41
- onChange: PropTypes__default['default'].func,
41
+ onChange: PropTypes__default["default"].func,
42
42
 
43
43
  /**
44
44
  * Label to show when the toggle is ON
45
45
  */
46
- labelOn: PropTypes__default['default'].string,
46
+ labelOn: PropTypes__default["default"].string,
47
47
 
48
48
  /**
49
49
  * Label to show when the toggle is OFF
50
50
  */
51
- labelOff: PropTypes__default['default'].string,
51
+ labelOff: PropTypes__default["default"].string,
52
52
 
53
53
  /**
54
54
  * Default value once the component is initialized
55
55
  */
56
- value: PropTypes__default['default'].string,
56
+ value: PropTypes__default["default"].string,
57
57
 
58
58
  /**
59
59
  * ['s', 'm', 'l']
60
60
  */
61
- size: PropTypes__default['default'].oneOf(propTypes.dsBasicSizes),
61
+ size: PropTypes__default["default"].oneOf(propTypes.dsBasicSizes),
62
62
 
63
63
  /**
64
64
  * Input name
65
65
  */
66
- name: PropTypes__default['default'].string
66
+ name: PropTypes__default["default"].string
67
67
  };
68
68
 
69
69
  exports.togglePropTypes = togglePropTypes;
package/cjs/index.js CHANGED
@@ -37,42 +37,38 @@ var options = require('./InputProtected/options.js');
37
37
  exports.ComboBoxFreeSolo = ComboBoxFreeSolo;
38
38
  exports.DSCheckboxGroup = DSCheckboxGroup.DSCheckboxGroup;
39
39
  exports.DSComboBox = Combobox.DSComboBox2;
40
- exports.DSDateInput = DSDateInput['default'];
40
+ exports.DSDateInput = DSDateInput["default"];
41
41
  exports.DSExpandableInput = DSExpandableInput;
42
42
  exports.DSFloatingLabelInput = DSFloatingLabelInput;
43
- exports.DSFormItemLayout = DSFormItemLayout['default'];
44
- exports.DSInput = DSInput['default'];
45
- exports.DSInputGroup = DSInputGroup['default'];
46
- exports.DSLargeInputText = DSLargeInputText['default'];
43
+ exports.DSFormItemLayout = DSFormItemLayout["default"];
44
+ exports.DSInput = DSInput["default"];
45
+ exports.DSInputGroup = DSInputGroup["default"];
46
+ exports.DSLargeInputText = DSLargeInputText["default"];
47
47
  exports.DSLargeInputTextWithSchema = DSLargeInputText.DSLargeInputTextWithSchema;
48
- exports.DSRadio = DSRadio['default'];
48
+ exports.DSRadio = DSRadio["default"];
49
49
  exports.DSRadioWithSchema = DSRadio.DSRadioWithSchema;
50
- exports.DSRadioGroup = DSRadioGroup['default'];
50
+ exports.DSRadioGroup = DSRadioGroup["default"];
51
51
  exports.DSRequiredMark = RequiredMark;
52
52
  exports.SearchBoxToggle = SearchBoxToggle;
53
- exports.DSSearchBox = DSSearchBox['default'];
53
+ exports.DSSearchBox = DSSearchBox["default"];
54
54
  exports.SearchBoxWithSchema = DSSearchBox.SearchBoxWithSchema;
55
55
  exports.DSNavSearchBox = NavSearchBox.NavSearchBox;
56
56
  exports.DSNavSearchBoxWithSchema = NavSearchBox.DSNavSearchBoxWithSchema;
57
- exports.DSTextBox = DSTextBox['default'];
58
- exports.DSTimeInput = DSTimeInput['default'];
59
- exports.DSToggle = DSToggle['default'];
57
+ exports.DSTextBox = DSTextBox["default"];
58
+ exports.DSTimeInput = DSTimeInput["default"];
59
+ exports.DSToggle = DSToggle["default"];
60
60
  exports.DSToggleWithSchema = DSToggle.DSToggleWithSchema;
61
- exports.DSInputProtected = DSInputProtected['default'];
61
+ exports.DSInputProtected = DSInputProtected["default"];
62
62
  exports.InputProtectedWithSchema = DSInputProtected.InputProtectedWithSchema;
63
63
  exports.DSCheckbox = DSCheckbox.DSCheckbox;
64
64
  exports.TimeInputImpl = TimeInputImpl;
65
65
  Object.defineProperty(exports, 'COMBOBOX_VARIANT', {
66
66
  enumerable: true,
67
- get: function () {
68
- return propTypes.COMBOBOX_VARIANT;
69
- }
67
+ get: function () { return propTypes.COMBOBOX_VARIANT; }
70
68
  });
71
69
  Object.defineProperty(exports, 'components', {
72
70
  enumerable: true,
73
- get: function () {
74
- return Select.components;
75
- }
71
+ get: function () { return Select.components; }
76
72
  });
77
73
  exports.FORMITEM_LAYOUT_VARIANTS = variants.FORMITEM_LAYOUT_VARIANTS;
78
74
  exports.InputAddonWrapper = InputAddonWrapper;
@@ -43,6 +43,7 @@ const DSInput = _ref => {
43
43
 
44
44
  return /*#__PURE__*/jsx(InputImpl, _objectSpread(_objectSpread({}, otherProps), {}, {
45
45
  "aria-label": otherProps['aria-label'],
46
+ "aria-describedby": otherProps['aria-describedby'],
46
47
  autoFocus: autoFocus,
47
48
  className: `${className} ${disabled ? 'input-disabled' : ''}`,
48
49
  clearable: clearable,
@@ -61,7 +61,7 @@ class InputImpl extends Component {
61
61
 
62
62
  if (this.ref.current) {
63
63
  this.setState({
64
- isEllipsisOn: this.ref.current.offsetWidth <= this.ref.current.scrollWidth
64
+ isEllipsisOn: this.ref.current.offsetWidth < this.ref.current.scrollWidth
65
65
  });
66
66
  }
67
67
  });
@@ -138,7 +138,7 @@ class InputImpl extends Component {
138
138
  this.setWidth();
139
139
  window.addEventListener('resize', this.setWidth);
140
140
  this.setState({
141
- isEllipsisOn: this.ref.current ? this.ref.current.offsetWidth <= this.ref.current.scrollWidth : false
141
+ isEllipsisOn: this.ref.current ? this.ref.current.offsetWidth < this.ref.current.scrollWidth : false
142
142
  });
143
143
  }
144
144
 
@@ -239,6 +239,7 @@ class InputImpl extends Component {
239
239
  'aria-multiline': false,
240
240
  'aria-autocomplete': 'none',
241
241
  'data-testid': rest['data-testid'],
242
+ 'aria-describedby': rest['aria-describedby'],
242
243
  role,
243
244
  id,
244
245
  innerRef: _ref => {
@@ -64,7 +64,7 @@ const DSRadio = _ref => {
64
64
  value: value
65
65
  })), /*#__PURE__*/jsx("span", {
66
66
  ref: otherProps.innerRef,
67
- "aria-checked": disabled ? false : checked,
67
+ "aria-checked": checked,
68
68
  "aria-disabled": disabled,
69
69
  className: classNameElement('input-button'),
70
70
  onKeyDown: e => {
@@ -53,7 +53,9 @@ const DSSearchBox = ({
53
53
  const shouldShowSearchIcon = !shouldShowClearIcon && showIcon;
54
54
  const shouldShowAnyIcon = shouldShowClearIcon || shouldShowSearchIcon;
55
55
  const PureSearchboxIcon = React.useMemo(() => {
56
- let Icon = _Search || (_Search = /*#__PURE__*/_jsx(SearchIcon, {}));
56
+ let Icon = _Search || (_Search = /*#__PURE__*/_jsx(SearchIcon, {
57
+ "aria-label": "Search"
58
+ }));
57
59
 
58
60
  let handleOnClick = () => handleSearch(true);
59
61
 
@@ -61,7 +63,8 @@ const DSSearchBox = ({
61
63
 
62
64
  if (shouldShowClearIcon) {
63
65
  Icon = /*#__PURE__*/_jsx(CloseXsmall, {
64
- color: DSIconColors.PRIMARY
66
+ color: DSIconColors.PRIMARY,
67
+ "aria-label": "Clear input"
65
68
  });
66
69
  handleOnClick = handleClear;
67
70
  }
@@ -5,7 +5,7 @@ import { PropTypes, describe } from 'react-desc';
5
5
  import DSInput from '../Input/DSInput.js';
6
6
  import { jsx } from 'react/jsx-runtime';
7
7
 
8
- const _excluded = ["containerProps", "autoFocus", "disabled", "maxLength", "minLength", "fluidWidth", "placeholder", "value", "hasError", "readOnly", "innerRef", "type", "min", "max", "clearable", "leftComponent", "rightComponent", "required", "variant", "disableTooltip"];
8
+ const _excluded = ["containerProps", "autoFocus", "disabled", "maxLength", "minLength", "fluidWidth", "placeholder", "value", "hasError", "readOnly", "innerRef", "type", "min", "max", "clearable", "leftComponent", "rightComponent", "required", "variant", "disableTooltip", "id"];
9
9
 
10
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
11
11
 
@@ -32,12 +32,14 @@ const DSTextBox = _ref => {
32
32
  rightComponent = null,
33
33
  required = false,
34
34
  variant,
35
- disableTooltip
35
+ disableTooltip,
36
+ id
36
37
  } = _ref,
37
38
  otherProps = _objectWithoutProperties(_ref, _excluded);
38
39
 
39
40
  return /*#__PURE__*/jsx(DSInput, _objectSpread(_objectSpread({}, otherProps), {}, {
40
- "aria-label": otherProps['aria-label'] || 'Text Box',
41
+ "aria-label": !id ? otherProps['aria-label'] || 'Text Box' : undefined,
42
+ "aria-describedby": otherProps['aria-describedby'] || `${id}_feedback_message`,
41
43
  autoFocus: autoFocus,
42
44
  clearable: clearable,
43
45
  containerProps: containerProps,
@@ -58,7 +60,8 @@ const DSTextBox = _ref => {
58
60
  type: type,
59
61
  value: value,
60
62
  variant: variant,
61
- disableTooltip: disableTooltip
63
+ disableTooltip: disableTooltip,
64
+ id: id
62
65
  }));
63
66
  };
64
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.8",
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-alpha.4",
688
- "@elliemae/ds-circular-progress-indicator": "2.0.0-alpha.4",
689
- "@elliemae/ds-classnames": "2.0.0-alpha.4",
690
- "@elliemae/ds-grid": "2.0.0-alpha.4",
691
- "@elliemae/ds-icon": "2.0.0-alpha.4",
692
- "@elliemae/ds-icons": "2.0.0-alpha.4",
693
- "@elliemae/ds-menu": "2.0.0-alpha.4",
694
- "@elliemae/ds-overlay": "2.0.0-alpha.4",
695
- "@elliemae/ds-popper": "2.0.0-alpha.4",
696
- "@elliemae/ds-separator": "2.0.0-alpha.4",
697
- "@elliemae/ds-shared": "2.0.0-alpha.4",
698
- "@elliemae/ds-system": "2.0.0-alpha.4",
699
- "@elliemae/ds-text-wrapper": "2.0.0-alpha.4",
700
- "@elliemae/ds-tooltip": "2.0.0-alpha.4",
701
- "@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.4",
702
- "@elliemae/ds-utilities": "2.0.0-alpha.4",
687
+ "@elliemae/ds-button": "2.0.0-alpha.8",
688
+ "@elliemae/ds-circular-progress-indicator": "2.0.0-alpha.8",
689
+ "@elliemae/ds-classnames": "2.0.0-alpha.8",
690
+ "@elliemae/ds-grid": "2.0.0-alpha.8",
691
+ "@elliemae/ds-icon": "2.0.0-alpha.8",
692
+ "@elliemae/ds-icons": "2.0.0-alpha.8",
693
+ "@elliemae/ds-menu": "2.0.0-alpha.8",
694
+ "@elliemae/ds-overlay": "2.0.0-alpha.8",
695
+ "@elliemae/ds-popper": "2.0.0-alpha.8",
696
+ "@elliemae/ds-separator": "2.0.0-alpha.8",
697
+ "@elliemae/ds-shared": "2.0.0-alpha.8",
698
+ "@elliemae/ds-system": "2.0.0-alpha.8",
699
+ "@elliemae/ds-text-wrapper": "2.0.0-alpha.8",
700
+ "@elliemae/ds-tooltip": "2.0.0-alpha.8",
701
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.8",
702
+ "@elliemae/ds-utilities": "2.0.0-alpha.8",
703
703
  "memoize-one": "~5.1.1",
704
704
  "moment": "~2.29.1",
705
705
  "polished": "~3.6.7",
@@ -6,7 +6,7 @@ declare const DSFloatingLabelInput: ({ containerProps, arialLabel, innerRef, cla
6
6
  className?: string | undefined;
7
7
  extraInputProps?: {} | undefined;
8
8
  inputComponent?: {
9
- ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, ...otherProps }: {
9
+ ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
10
10
  [x: string]: any;
11
11
  containerProps?: {} | undefined;
12
12
  autoFocus?: boolean | undefined;
@@ -28,6 +28,7 @@ declare const DSFloatingLabelInput: ({ containerProps, arialLabel, innerRef, cla
28
28
  required?: boolean | undefined;
29
29
  variant: any;
30
30
  disableTooltip: any;
31
+ id: any;
31
32
  }): JSX.Element;
32
33
  propTypes: {
33
34
  containerProps: any;
@@ -88,7 +88,7 @@ declare const DSFormItemLayout: {
88
88
  leftLabel: boolean;
89
89
  floatingLabel: boolean;
90
90
  inputComponent: {
91
- ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, ...otherProps }: {
91
+ ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
92
92
  [x: string]: any;
93
93
  containerProps?: {} | undefined;
94
94
  autoFocus?: boolean | undefined;
@@ -110,6 +110,7 @@ declare const DSFormItemLayout: {
110
110
  required?: boolean | undefined;
111
111
  variant: any;
112
112
  disableTooltip: any;
113
+ id: any;
113
114
  }): JSX.Element;
114
115
  propTypes: {
115
116
  containerProps: any;
@@ -3,7 +3,7 @@ export declare const defaultProps: {
3
3
  leftLabel: boolean;
4
4
  floatingLabel: boolean;
5
5
  inputComponent: {
6
- ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, ...otherProps }: {
6
+ ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
7
7
  [x: string]: any;
8
8
  containerProps?: {} | undefined;
9
9
  autoFocus?: boolean | undefined;
@@ -25,6 +25,7 @@ export declare const defaultProps: {
25
25
  required?: boolean | undefined;
26
26
  variant: any;
27
27
  disableTooltip: any;
28
+ id: any;
28
29
  }): JSX.Element;
29
30
  propTypes: {
30
31
  containerProps: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const SearchBoxTextBox: import("styled-components").StyledComponent<{
3
- ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, ...otherProps }: {
3
+ ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
4
4
  [x: string]: any;
5
5
  containerProps?: {} | undefined;
6
6
  autoFocus?: boolean | undefined;
@@ -22,6 +22,7 @@ export declare const SearchBoxTextBox: import("styled-components").StyledCompone
22
22
  required?: boolean | undefined;
23
23
  variant: any;
24
24
  disableTooltip: any;
25
+ id: any;
25
26
  }): JSX.Element;
26
27
  propTypes: {
27
28
  containerProps: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const DSTextBox: {
3
- ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, ...otherProps }: {
3
+ ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
4
4
  [x: string]: any;
5
5
  containerProps?: {} | undefined;
6
6
  autoFocus?: boolean | undefined;
@@ -22,6 +22,7 @@ declare const DSTextBox: {
22
22
  required?: boolean | undefined;
23
23
  variant: any;
24
24
  disableTooltip: any;
25
+ id: any;
25
26
  }): JSX.Element;
26
27
  propTypes: {
27
28
  /** inject props at textbox wrapper */