@superdispatch/ui-lab 0.21.14 → 0.21.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.
package/dist-node/index.js
CHANGED
|
@@ -42,11 +42,13 @@ var Alert = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
42
42
|
var {
|
|
43
43
|
children,
|
|
44
44
|
onClose,
|
|
45
|
-
severity = 'positive'
|
|
45
|
+
severity = 'positive',
|
|
46
|
+
icon
|
|
46
47
|
} = _ref;
|
|
47
48
|
return /*#__PURE__*/jsxRuntime.jsx(StyledAlert, {
|
|
48
49
|
ref: ref,
|
|
49
50
|
variant: "outlined",
|
|
51
|
+
icon: icon,
|
|
50
52
|
iconMapping: iconMapping,
|
|
51
53
|
severity: toMaterialSeverity(severity),
|
|
52
54
|
onClose: onClose,
|
|
@@ -1224,6 +1226,7 @@ function NavbarAccordion(_ref) {
|
|
|
1224
1226
|
react.useEffect(() => {
|
|
1225
1227
|
setExpanded(isNavbarExpanded);
|
|
1226
1228
|
}, [isNavbarExpanded]);
|
|
1229
|
+
var filteredItems = react.useMemo(() => items.filter(item => !item.hide), [items]);
|
|
1227
1230
|
return /*#__PURE__*/jsxRuntime.jsxs(NavbarAccordionRoot, {
|
|
1228
1231
|
square: true,
|
|
1229
1232
|
"data-gutter": !gutter,
|
|
@@ -1247,9 +1250,9 @@ function NavbarAccordion(_ref) {
|
|
|
1247
1250
|
"data-expanded": isNavbarExpanded,
|
|
1248
1251
|
children: label
|
|
1249
1252
|
})]
|
|
1250
|
-
}),
|
|
1251
|
-
var index =
|
|
1252
|
-
var prev =
|
|
1253
|
+
}), filteredItems.map(item => {
|
|
1254
|
+
var index = filteredItems.indexOf(item);
|
|
1255
|
+
var prev = filteredItems[index - 1];
|
|
1253
1256
|
var {
|
|
1254
1257
|
ident = 0
|
|
1255
1258
|
} = item;
|