td-stylekit 28.34.0 → 28.34.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.
- package/CHANGELOG.md +7 -0
- package/dist/es/ActionBar/ActionBar.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [28.34.1](https://github.com/treasure-data/td-stylekit/compare/v28.34.0...v28.34.1) (2024-02-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **CON-14344:** Don't show action bar menu if all menu items are hidden ([#1525](https://github.com/treasure-data/td-stylekit/issues/1525)) ([ab90cef](https://github.com/treasure-data/td-stylekit/commit/ab90cef))
|
|
7
|
+
|
|
1
8
|
# [28.34.0](https://github.com/treasure-data/td-stylekit/compare/v28.33.1...v28.34.0) (2024-01-26)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -85,7 +85,11 @@ var ActionBar = function ActionBar(props) {
|
|
|
85
85
|
}), children, (0, _jsxRuntime.jsx)(_components.ActionMenu, {
|
|
86
86
|
"data-gs": gs("src", "actionbar", "actionbar.tsx", "container", "action-menu"),
|
|
87
87
|
actions: actions,
|
|
88
|
-
hidden: menu === false
|
|
88
|
+
hidden: menu === false || (actions === null || actions === void 0 ? void 0 : actions.filter(function (a) {
|
|
89
|
+
return a.visibility !== 'bar';
|
|
90
|
+
}).every(function (a) {
|
|
91
|
+
return a.hidden;
|
|
92
|
+
})),
|
|
89
93
|
"data-instrumentation": "".concat(dataInstrumentation, "-menu"),
|
|
90
94
|
menuLabel: menuLabel
|
|
91
95
|
})]
|