@storybook/components 6.5.0-alpha.34 → 6.5.0-alpha.35
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.
|
@@ -169,7 +169,7 @@ var SectionRow = function SectionRow(_ref7) {
|
|
|
169
169
|
var itemCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
|
|
170
170
|
var caption = level === 'subsection' ? "".concat(itemCount, " item").concat(itemCount !== 1 ? 's' : '') : '';
|
|
171
171
|
var icon = expanded ? 'arrowdown' : 'arrowright';
|
|
172
|
-
var helperText = "".concat(expanded ? 'Hide' : '
|
|
172
|
+
var helperText = "".concat(expanded ? 'Hide' : 'Show', " ").concat(level === 'subsection' ? itemCount : label, " item").concat(itemCount !== 1 ? 's' : '');
|
|
173
173
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(StyledTr, {
|
|
174
174
|
title: helperText
|
|
175
175
|
}, /*#__PURE__*/_react.default.createElement(Level, {
|
|
@@ -128,7 +128,7 @@ export var SectionRow = function SectionRow(_ref7) {
|
|
|
128
128
|
var itemCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
|
|
129
129
|
var caption = level === 'subsection' ? "".concat(itemCount, " item").concat(itemCount !== 1 ? 's' : '') : '';
|
|
130
130
|
var icon = expanded ? 'arrowdown' : 'arrowright';
|
|
131
|
-
var helperText = "".concat(expanded ? 'Hide' : '
|
|
131
|
+
var helperText = "".concat(expanded ? 'Hide' : 'Show', " ").concat(level === 'subsection' ? itemCount : label, " item").concat(itemCount !== 1 ? 's' : '');
|
|
132
132
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledTr, {
|
|
133
133
|
title: helperText
|
|
134
134
|
}, /*#__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.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.35",
|
|
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.5.0-alpha.
|
|
44
|
+
"@storybook/client-logger": "6.5.0-alpha.35",
|
|
45
45
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
46
|
-
"@storybook/theming": "6.5.0-alpha.
|
|
46
|
+
"@storybook/theming": "6.5.0-alpha.35",
|
|
47
47
|
"@types/color-convert": "^2.0.0",
|
|
48
48
|
"@types/overlayscrollbars": "^1.12.0",
|
|
49
49
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "7a483e312a7355fc0408a578bfc16d4e476b0938",
|
|
81
81
|
"sbmodern": "dist/modern/index.js"
|
|
82
82
|
}
|