@superdispatch/ui-lab 0.18.0 → 0.18.3

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.
@@ -1130,7 +1130,7 @@ function NavbarItem(_ref) {
1130
1130
  var Header = /*#__PURE__*/styled__default.div.withConfig({
1131
1131
  displayName: "NavbarList__Header",
1132
1132
  componentId: "SD__sc-19zrmxc-0"
1133
- })(["margin:0 16px 8px;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;"]);
1133
+ })(["margin:0 16px 8px;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;position:sticky;"]);
1134
1134
  var Wrapper = /*#__PURE__*/styled__default.div.withConfig({
1135
1135
  displayName: "NavbarList__Wrapper",
1136
1136
  componentId: "SD__sc-19zrmxc-1"
@@ -1157,7 +1157,7 @@ var ExpandIconButton = /*#__PURE__*/styled__default(core.IconButton).withConfig(
1157
1157
  var Footer = /*#__PURE__*/styled__default.div.withConfig({
1158
1158
  displayName: "NavbarList__Footer",
1159
1159
  componentId: "SD__sc-19zrmxc-3"
1160
- })(["flex-grow:1;display:flex;align-items:flex-end;margin:16px 0 8px;"]);
1160
+ })(["flex-grow:1;display:flex;align-items:flex-end;margin:16px 0 8px;position:sticky;"]);
1161
1161
  var Root = /*#__PURE__*/styled__default.div.withConfig({
1162
1162
  displayName: "NavbarList__Root",
1163
1163
  componentId: "SD__sc-19zrmxc-4"
@@ -1184,7 +1184,7 @@ function NavbarMenuItem(_ref4) {
1184
1184
  var Content = /*#__PURE__*/styled__default.div.withConfig({
1185
1185
  displayName: "NavbarList__Content",
1186
1186
  componentId: "SD__sc-19zrmxc-5"
1187
- })(["height:100%;min-height:50px;&[aria-expanded='false']{", ",", "{visibility:hidden;}}"], NavbarBadge, NavbarLabel);
1187
+ })(["height:100%;min-height:50px;overflow:scroll;&[aria-expanded='false']{", ",", "{visibility:hidden;}}"], NavbarBadge, NavbarLabel);
1188
1188
  function NavbarList(_ref5) {
1189
1189
  var {
1190
1190
  header,
@@ -1221,41 +1221,22 @@ function NavbarList(_ref5) {
1221
1221
  })]
1222
1222
  }), /*#__PURE__*/jsxRuntime.jsx(Content, {
1223
1223
  "aria-expanded": isSidebarOpened,
1224
- children: /*#__PURE__*/jsxRuntime.jsx(ui.AdaptiveVerticalToolbar, {
1225
- disableGutters: true,
1226
- items: filteredItems,
1227
- renderItem: item => {
1228
- var navbarItem = item;
1229
- var index = filteredItems.indexOf(navbarItem);
1230
- var prev = filteredItems[index - 1];
1231
- return /*#__PURE__*/jsxRuntime.jsx(NavbarItem, _objectSpread(_objectSpread({}, item), {}, {
1232
- gutter: prev && prev.groupKey !== navbarItem.groupKey,
1233
- onClick: event => {
1234
- var _item$onClick;
1235
-
1236
- (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
1237
-
1238
- if (!event.isDefaultPrevented()) {
1239
- setDrawerOpen(false);
1240
- }
1241
- }
1242
- }));
1243
- },
1244
- renderMenuItem: item => /*#__PURE__*/jsxRuntime.jsx(NavbarMenuItem, _objectSpread(_objectSpread({}, item), {}, {
1224
+ children: filteredItems.map(item => {
1225
+ var index = filteredItems.indexOf(item);
1226
+ var prev = filteredItems[index - 1];
1227
+ return /*#__PURE__*/react.createElement(NavbarItem, _objectSpread(_objectSpread({}, item), {}, {
1228
+ key: item.key,
1229
+ gutter: prev && prev.groupKey !== item.groupKey,
1245
1230
  onClick: event => {
1246
- var _item$onClick2;
1231
+ var _item$onClick;
1247
1232
 
1248
- (_item$onClick2 = item.onClick) === null || _item$onClick2 === void 0 ? void 0 : _item$onClick2.call(item, event);
1233
+ (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
1249
1234
 
1250
1235
  if (!event.isDefaultPrevented()) {
1251
1236
  setDrawerOpen(false);
1252
1237
  }
1253
1238
  }
1254
- })),
1255
- moreElement: /*#__PURE__*/jsxRuntime.jsx(NavbarItem, {
1256
- icon: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {}),
1257
- label: "More"
1258
- })
1239
+ }));
1259
1240
  })
1260
1241
  }), /*#__PURE__*/jsxRuntime.jsx(Footer, {
1261
1242
  children: footer
@@ -1270,7 +1251,7 @@ var Aside = /*#__PURE__*/styled__default.aside.withConfig({
1270
1251
  var Main = /*#__PURE__*/styled__default.main.withConfig({
1271
1252
  displayName: "Navbar__Main",
1272
1253
  componentId: "SD__sc-1oiqig8-1"
1273
- })(["flex:1;display:flex;flex-direction:column;overflow:auto;"]);
1254
+ })(["flex:1;display:flex;flex-direction:column;overflow:scroll;"]);
1274
1255
  function Navbar(_ref) {
1275
1256
  var {
1276
1257
  footer,
@@ -1368,8 +1349,10 @@ function NavbarAvatar(_ref) {
1368
1349
  children: /*#__PURE__*/jsxRuntime.jsxs(ui.Stack, {
1369
1350
  space: "none",
1370
1351
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledTypography, {
1352
+ variant: "caption",
1371
1353
  children: title
1372
1354
  }), /*#__PURE__*/jsxRuntime.jsx(StyledTypography, {
1355
+ variant: "caption",
1373
1356
  children: subtitle
1374
1357
  })]
1375
1358
  })