@carbon/ibm-products 2.43.2-canary.253 → 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.
@@ -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
- role: "treegrid",
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
- role: "treegrid",
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,
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.253+5b58d506a",
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": "5b58d506a39b3d625e169004e1385ae9cfcc6985"
123
+ "gitHead": "6c7823ed1405d0dfa6ef51cac89e0373f6763ef0"
124
124
  }