@superdispatch/ui-lab 0.21.8 → 0.21.11
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 +23 -19
- package/dist-node/index.js.map +1 -1
- package/dist-src/navbar/NavbarAccordion.js +5 -10
- package/dist-src/navbar/NavbarBottomBar.js +16 -6
- package/dist-types/index.d.ts +308 -308
- package/dist-web/index.js +24 -20
- package/dist-web/index.js.map +1 -1
- package/package.json +34 -34
package/dist-node/index.js
CHANGED
|
@@ -1076,6 +1076,7 @@ function useNavbarContext() {
|
|
|
1076
1076
|
return react.useContext(NavbarContext);
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
|
+
var _excluded$7 = ["active", "hasBadge"];
|
|
1079
1080
|
var StyledBottomNavigation = /*#__PURE__*/styled__default(core.BottomNavigation).withConfig({
|
|
1080
1081
|
displayName: "NavbarBottomBar__StyledBottomNavigation",
|
|
1081
1082
|
componentId: "SD__sc-9z6v3k-0"
|
|
@@ -1114,12 +1115,20 @@ function NavbarBottomBar(_ref) {
|
|
|
1114
1115
|
}
|
|
1115
1116
|
}
|
|
1116
1117
|
},
|
|
1117
|
-
children: [items.map(
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1118
|
+
children: [items.map(_ref2 => {
|
|
1119
|
+
var {
|
|
1120
|
+
active,
|
|
1121
|
+
hasBadge
|
|
1122
|
+
} = _ref2,
|
|
1123
|
+
item = _objectWithoutProperties(_ref2, _excluded$7);
|
|
1124
|
+
|
|
1125
|
+
return /*#__PURE__*/react.createElement(StyledBottomNavigationAction, _objectSpread(_objectSpread({}, item), {}, {
|
|
1126
|
+
key: item.value,
|
|
1127
|
+
icon: hasBadge ? /*#__PURE__*/jsxRuntime.jsxs(IconWrapper, {
|
|
1128
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(IconLabel, {}), item.icon]
|
|
1129
|
+
}) : item.icon
|
|
1130
|
+
}));
|
|
1131
|
+
}), /*#__PURE__*/jsxRuntime.jsx(StyledBottomNavigationAction, {
|
|
1123
1132
|
value: "menu",
|
|
1124
1133
|
label: "Menu",
|
|
1125
1134
|
icon: hasMenuBadge ? /*#__PURE__*/jsxRuntime.jsxs(IconWrapper, {
|
|
@@ -1190,12 +1199,7 @@ var NavbarAccordionLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
1190
1199
|
var NavbarAccordionRoot = /*#__PURE__*/styled__default(core.Accordion).withConfig({
|
|
1191
1200
|
displayName: "NavbarAccordion__NavbarAccordionRoot",
|
|
1192
1201
|
componentId: "SD__sc-1s7g3kw-1"
|
|
1193
|
-
})(
|
|
1194
|
-
var {
|
|
1195
|
-
gutter
|
|
1196
|
-
} = _ref;
|
|
1197
|
-
return styled.css(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:#1b2638;margin-top:", ";&[aria-current]{background-color:#2f394a;color:", ";}&.MuiAccordion-root:before{background-color:#1b2638;}&.MuiPaper-elevation0{border:0px;}&.MuiAccordion-root.Mui-expanded{margin-top:", ";}"], gutter ? '16px' : '0', ui.Color.White, gutter ? '16px' : '0');
|
|
1198
|
-
});
|
|
1202
|
+
})(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:#1b2638;&[aria-current]{background-color:#2f394a;color:", ";}&.MuiAccordion-root:before{background-color:#1b2638;}&.MuiPaper-elevation0{border:0px;}&[data-gutter]{margin-top:16px;}&[data-gutter].MuiAccordion-root.Mui-expanded{margin-top:16px;}"], ui.Color.White);
|
|
1199
1203
|
var NavbarAccordionSummary = /*#__PURE__*/styled__default(core.AccordionSummary).withConfig({
|
|
1200
1204
|
displayName: "NavbarAccordion__NavbarAccordionSummary",
|
|
1201
1205
|
componentId: "SD__sc-1s7g3kw-2"
|
|
@@ -1204,14 +1208,14 @@ var IconWrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
1204
1208
|
displayName: "NavbarAccordion__IconWrapper",
|
|
1205
1209
|
componentId: "SD__sc-1s7g3kw-3"
|
|
1206
1210
|
})(["width:24px;margin-right:8px;& svg{font-size:24px;}"]);
|
|
1207
|
-
function NavbarAccordion(
|
|
1211
|
+
function NavbarAccordion(_ref) {
|
|
1208
1212
|
var {
|
|
1209
1213
|
label,
|
|
1210
1214
|
icon,
|
|
1211
1215
|
gutter,
|
|
1212
1216
|
items,
|
|
1213
1217
|
onClick: _onClick
|
|
1214
|
-
} =
|
|
1218
|
+
} = _ref;
|
|
1215
1219
|
var uid = ui.useUID();
|
|
1216
1220
|
var {
|
|
1217
1221
|
setDrawerOpen,
|
|
@@ -1224,7 +1228,7 @@ function NavbarAccordion(_ref2) {
|
|
|
1224
1228
|
}, [isNavbarExpanded]);
|
|
1225
1229
|
return /*#__PURE__*/jsxRuntime.jsxs(NavbarAccordionRoot, {
|
|
1226
1230
|
square: true,
|
|
1227
|
-
gutter:
|
|
1231
|
+
"data-gutter": !gutter,
|
|
1228
1232
|
"aria-labelledby": uid,
|
|
1229
1233
|
expanded: isExpanded,
|
|
1230
1234
|
onClick: event => {
|
|
@@ -1472,7 +1476,7 @@ function Navbar(_ref) {
|
|
|
1472
1476
|
});
|
|
1473
1477
|
}
|
|
1474
1478
|
|
|
1475
|
-
var _excluded$
|
|
1479
|
+
var _excluded$8 = ["title", "subtitle", "children"];
|
|
1476
1480
|
var StyledTypography = /*#__PURE__*/styled__default(core.Typography).withConfig({
|
|
1477
1481
|
displayName: "NavbarAvatar__StyledTypography",
|
|
1478
1482
|
componentId: "SD__sc-19q2zd0-0"
|
|
@@ -1483,7 +1487,7 @@ function NavbarAvatar(_ref) {
|
|
|
1483
1487
|
subtitle,
|
|
1484
1488
|
children
|
|
1485
1489
|
} = _ref,
|
|
1486
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1490
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1487
1491
|
|
|
1488
1492
|
var {
|
|
1489
1493
|
isNavbarExpanded
|
|
@@ -1701,7 +1705,7 @@ var SidebarContainer = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
1701
1705
|
});
|
|
1702
1706
|
if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "SidebarContainer";
|
|
1703
1707
|
|
|
1704
|
-
var _excluded$
|
|
1708
|
+
var _excluded$9 = ["onClick", "children"];
|
|
1705
1709
|
function SidebarBackButton(_ref) {
|
|
1706
1710
|
var {
|
|
1707
1711
|
onClick: _onClick,
|
|
@@ -1709,7 +1713,7 @@ function SidebarBackButton(_ref) {
|
|
|
1709
1713
|
fontSize: "small"
|
|
1710
1714
|
})
|
|
1711
1715
|
} = _ref,
|
|
1712
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1716
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1713
1717
|
|
|
1714
1718
|
var isCollapsed = ui.useCollapseBreakpoint('sm');
|
|
1715
1719
|
var {
|