@carbon/ibm-products 2.43.2-canary.252 → 2.43.2-canary.254
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/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +8 -6
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +7 -5
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -0
- package/package.json +2 -2
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
8
|
+
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { useContext, useRef, useState, useEffect, useCallback } from 'react';
|
10
10
|
import PropTypes from '../../../node_modules/prop-types/index.js';
|
11
11
|
import { Button, Section, Heading } from '@carbon/react';
|
@@ -145,14 +145,16 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
145
145
|
onClick: onStartConditionBuilder
|
146
146
|
}, startConditionLabel);
|
147
147
|
}
|
148
|
+
var wrapperRole = variant === HIERARCHICAL_VARIANT ? {
|
149
|
+
role: 'treegrid',
|
150
|
+
'aria-label': conditionBuilderHierarchicalText
|
151
|
+
} : null;
|
148
152
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Section, {
|
149
153
|
className: "".concat(blockClass, "__heading"),
|
150
154
|
level: 4
|
151
|
-
}, /*#__PURE__*/React__default.createElement(Heading, null, conditionHeadingText)), /*#__PURE__*/React__default.createElement("div", {
|
152
|
-
className: "".concat(blockClass, "__content-container")
|
153
|
-
|
154
|
-
"aria-label": conditionBuilderHierarchicalText
|
155
|
-
}, rootState && (rootState === null || rootState === void 0 || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === void 0 ? void 0 : _rootState$groups4.map(function (eachGroup, groupIndex) {
|
155
|
+
}, /*#__PURE__*/React__default.createElement(Heading, null, conditionHeadingText)), /*#__PURE__*/React__default.createElement("div", _extends({
|
156
|
+
className: "".concat(blockClass, "__content-container")
|
157
|
+
}, wrapperRole), rootState && (rootState === null || rootState === void 0 || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === void 0 ? void 0 : _rootState$groups4.map(function (eachGroup, groupIndex) {
|
156
158
|
var _ref2;
|
157
159
|
return /*#__PURE__*/React__default.createElement("div", {
|
158
160
|
key: eachGroup.id,
|
@@ -153,14 +153,16 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
153
153
|
onClick: onStartConditionBuilder
|
154
154
|
}, startConditionLabel);
|
155
155
|
}
|
156
|
+
var wrapperRole = variant === util.HIERARCHICAL_VARIANT ? {
|
157
|
+
role: 'treegrid',
|
158
|
+
'aria-label': conditionBuilderHierarchicalText
|
159
|
+
} : null;
|
156
160
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(react.Section, {
|
157
161
|
className: "".concat(util.blockClass, "__heading"),
|
158
162
|
level: 4
|
159
|
-
}, /*#__PURE__*/React__default["default"].createElement(react.Heading, null, conditionHeadingText)), /*#__PURE__*/React__default["default"].createElement("div", {
|
160
|
-
className: "".concat(util.blockClass, "__content-container")
|
161
|
-
|
162
|
-
"aria-label": conditionBuilderHierarchicalText
|
163
|
-
}, rootState && (rootState === null || rootState === void 0 || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === void 0 ? void 0 : _rootState$groups4.map(function (eachGroup, groupIndex) {
|
163
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.Heading, null, conditionHeadingText)), /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
|
164
|
+
className: "".concat(util.blockClass, "__content-container")
|
165
|
+
}, wrapperRole), rootState && (rootState === null || rootState === void 0 || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === void 0 ? void 0 : _rootState$groups4.map(function (eachGroup, groupIndex) {
|
164
166
|
var _ref2;
|
165
167
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
166
168
|
key: eachGroup.id,
|
@@ -62,6 +62,7 @@ var DraggableElement = function DraggableElement(_ref) {
|
|
62
62
|
ref: setNodeRef,
|
63
63
|
style: style
|
64
64
|
}, attributes, listeners, {
|
65
|
+
"aria-disabled": undefined,
|
65
66
|
"aria-selected": selected,
|
66
67
|
role: "option"
|
67
68
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.254+6c7823ed1",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "6c7823ed1405d0dfa6ef51cac89e0373f6763ef0"
|
124
124
|
}
|