@elliemae/ds-query-builder 2.0.0-alpha.7 → 2.0.0-next.1

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.
@@ -55,17 +55,22 @@ const RenderField = ({
55
55
  onChange: (e, extraData) => onChangeHandler(e, target, extraData),
56
56
  value: valueProp != null ? valueProp : '',
57
57
  checked: valueProp === true,
58
- additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {}
58
+ additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {},
59
+ 'aria-invalid': Boolean(hasError)
59
60
  })
60
- }), hasError && hasError.errorMessage ? /*#__PURE__*/_jsx__default["default"]("span", {
61
+ }), hasError && hasError.errorMessage ? /*#__PURE__*/_jsx__default["default"]("div", {
62
+ tabIndex: 0,
61
63
  className: "row-icon-alert",
62
- "data-testid": "qb-error-state-icon"
64
+ "data-testid": "qb-error-state-icon",
65
+ role: "alert",
66
+ "aria-label": hasError.errorMessage
63
67
  }, void 0, /*#__PURE__*/_jsx__default["default"](DSTooltip.DSTooltipV2, {
64
68
  title: hasError.errorMessage,
65
69
  triggerComponent: /*#__PURE__*/_jsx__default["default"](AlertsDetail__default["default"], {
66
70
  width: 20,
67
71
  height: 20,
68
- color: ['danger', 900]
72
+ color: ['danger', 900],
73
+ title: hasError.message
69
74
  })
70
75
  })) : null); // return React.useMemo(
71
76
  // () => (
@@ -46,17 +46,22 @@ const RenderField = ({
46
46
  onChange: (e, extraData) => onChangeHandler(e, target, extraData),
47
47
  value: valueProp != null ? valueProp : '',
48
48
  checked: valueProp === true,
49
- additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {}
49
+ additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {},
50
+ 'aria-invalid': Boolean(hasError)
50
51
  })
51
- }), hasError && hasError.errorMessage ? /*#__PURE__*/_jsx("span", {
52
+ }), hasError && hasError.errorMessage ? /*#__PURE__*/_jsx("div", {
53
+ tabIndex: 0,
52
54
  className: "row-icon-alert",
53
- "data-testid": "qb-error-state-icon"
55
+ "data-testid": "qb-error-state-icon",
56
+ role: "alert",
57
+ "aria-label": hasError.errorMessage
54
58
  }, void 0, /*#__PURE__*/_jsx(DSTooltipV2, {
55
59
  title: hasError.errorMessage,
56
60
  triggerComponent: /*#__PURE__*/_jsx(AlertsDetail, {
57
61
  width: 20,
58
62
  height: 20,
59
- color: ['danger', 900]
63
+ color: ['danger', 900],
64
+ title: hasError.message
60
65
  })
61
66
  })) : null); // return React.useMemo(
62
67
  // () => (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-query-builder",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-next.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Query Builder",
6
6
  "module": "./esm/index.js",
@@ -168,11 +168,11 @@
168
168
  "build": "node ../../scripts/build/build.js"
169
169
  },
170
170
  "dependencies": {
171
- "@elliemae/ds-basic": "2.0.0-alpha.7",
172
- "@elliemae/ds-classnames": "2.0.0-alpha.7",
173
- "@elliemae/ds-icons": "2.0.0-alpha.7",
174
- "@elliemae/ds-shared": "2.0.0-alpha.7",
175
- "@elliemae/ds-utilities": "2.0.0-alpha.7",
171
+ "@elliemae/ds-basic": "2.0.0-next.1",
172
+ "@elliemae/ds-classnames": "2.0.0-next.1",
173
+ "@elliemae/ds-icons": "2.0.0-next.1",
174
+ "@elliemae/ds-shared": "2.0.0-next.1",
175
+ "@elliemae/ds-utilities": "2.0.0-next.1",
176
176
  "classnames": "~2.2.6",
177
177
  "prop-types": "~15.7.2",
178
178
  "react-addons-update": "~15.6.3"