@carbon/ibm-products 2.49.0 → 2.49.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.
@@ -93,13 +93,13 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
|
93
93
|
_ref3$expanderButtonT2 = _ref3.expanderButtonTitleCollapsed,
|
94
94
|
expanderButtonTitleCollapsed = _ref3$expanderButtonT2 === void 0 ? 'Expand row' : _ref3$expanderButtonT2;
|
95
95
|
var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
|
96
|
-
return
|
96
|
+
return row.canExpand || getAsyncSubRows ? /*#__PURE__*/React__default.createElement("button", _extends({
|
97
97
|
type: "button",
|
98
98
|
"aria-label": expanderTitle,
|
99
99
|
className: cx("".concat(blockClass, "__row-expander"), "".concat(carbon.prefix, "--btn"), "".concat(carbon.prefix, "--btn--ghost"))
|
100
100
|
}, expanderButtonProps), /*#__PURE__*/React__default.createElement(ChevronRight, {
|
101
101
|
className: cx("".concat(blockClass, "__expander-icon"), _defineProperty(_defineProperty({}, "".concat(blockClass, "__expander-icon--not-open"), !row.isExpanded), "".concat(blockClass, "__expander-icon--open"), row.isExpanded))
|
102
|
-
}));
|
102
|
+
})) : null;
|
103
103
|
},
|
104
104
|
width: 48,
|
105
105
|
disableResizing: true,
|
@@ -102,13 +102,13 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
|
102
102
|
_ref3$expanderButtonT2 = _ref3.expanderButtonTitleCollapsed,
|
103
103
|
expanderButtonTitleCollapsed = _ref3$expanderButtonT2 === void 0 ? 'Expand row' : _ref3$expanderButtonT2;
|
104
104
|
var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
|
105
|
-
return
|
105
|
+
return row.canExpand || getAsyncSubRows ? /*#__PURE__*/React__default["default"].createElement("button", _rollupPluginBabelHelpers["extends"]({
|
106
106
|
type: "button",
|
107
107
|
"aria-label": expanderTitle,
|
108
108
|
className: cx__default["default"]("".concat(blockClass, "__row-expander"), "".concat(settings.carbon.prefix, "--btn"), "".concat(settings.carbon.prefix, "--btn--ghost"))
|
109
109
|
}, expanderButtonProps), /*#__PURE__*/React__default["default"].createElement(icons.ChevronRight, {
|
110
110
|
className: cx__default["default"]("".concat(blockClass, "__expander-icon"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expander-icon--not-open"), !row.isExpanded), "".concat(blockClass, "__expander-icon--open"), row.isExpanded))
|
111
|
-
}));
|
111
|
+
})) : null;
|
112
112
|
},
|
113
113
|
width: 48,
|
114
114
|
disableResizing: true,
|
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.49.
|
4
|
+
"version": "2.49.1",
|
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": "3ea699c1ee854e4bff4c2d9653d938c34a134cfe"
|
124
124
|
}
|