@storybook/components 6.4.18 → 6.4.19
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.
|
@@ -167,7 +167,7 @@ var SectionRow = function SectionRow(_ref7) {
|
|
|
167
167
|
var itemCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
|
|
168
168
|
var caption = level === 'subsection' ? "".concat(itemCount, " item").concat(itemCount !== 1 ? 's' : '') : '';
|
|
169
169
|
var icon = expanded ? 'arrowdown' : 'arrowright';
|
|
170
|
-
var helperText = "".concat(expanded ? 'Hide' : '
|
|
170
|
+
var helperText = "".concat(expanded ? 'Hide' : 'Show', " ").concat(level === 'subsection' ? itemCount : label, " item").concat(itemCount !== 1 ? 's' : '');
|
|
171
171
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(StyledTr, {
|
|
172
172
|
title: helperText
|
|
173
173
|
}, /*#__PURE__*/_react.default.createElement(Level, {
|
|
@@ -127,7 +127,7 @@ export var SectionRow = function SectionRow(_ref7) {
|
|
|
127
127
|
var itemCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
|
|
128
128
|
var caption = level === 'subsection' ? "".concat(itemCount, " item").concat(itemCount !== 1 ? 's' : '') : '';
|
|
129
129
|
var icon = expanded ? 'arrowdown' : 'arrowright';
|
|
130
|
-
var helperText = "".concat(expanded ? 'Hide' : '
|
|
130
|
+
var helperText = "".concat(expanded ? 'Hide' : 'Show', " ").concat(level === 'subsection' ? itemCount : label, " item").concat(itemCount !== 1 ? 's' : '');
|
|
131
131
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledTr, {
|
|
132
132
|
title: helperText
|
|
133
133
|
}, /*#__PURE__*/React.createElement(Level, {
|
|
@@ -88,7 +88,7 @@ export const SectionRow = ({
|
|
|
88
88
|
const itemCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
|
|
89
89
|
const caption = level === 'subsection' ? `${itemCount} item${itemCount !== 1 ? 's' : ''}` : '';
|
|
90
90
|
const icon = expanded ? 'arrowdown' : 'arrowright';
|
|
91
|
-
const helperText = `${expanded ? 'Hide' : '
|
|
91
|
+
const helperText = `${expanded ? 'Hide' : 'Show'} ${level === 'subsection' ? itemCount : label} item${itemCount !== 1 ? 's' : ''}`;
|
|
92
92
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledTr, {
|
|
93
93
|
title: helperText
|
|
94
94
|
}, /*#__PURE__*/React.createElement(Level, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/components",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.19",
|
|
4
4
|
"description": "Core Storybook Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@popperjs/core": "^2.6.0",
|
|
44
|
-
"@storybook/client-logger": "6.4.
|
|
44
|
+
"@storybook/client-logger": "6.4.19",
|
|
45
45
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
46
|
-
"@storybook/theming": "6.4.
|
|
46
|
+
"@storybook/theming": "6.4.19",
|
|
47
47
|
"@types/color-convert": "^2.0.0",
|
|
48
48
|
"@types/overlayscrollbars": "^1.12.0",
|
|
49
49
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "6a0da15e6413e00b31f14b3accd082ca328e45a2",
|
|
80
80
|
"sbmodern": "dist/modern/index.js"
|
|
81
81
|
}
|