@superdispatch/ui-lab 0.35.1 → 0.35.2

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.
@@ -395,9 +395,9 @@ function getCriticalVariables(size) {
395
395
  }
396
396
  function getTextVariables(size) {
397
397
  return createButtonVariables(size, {
398
- textColor: ui.Color.Blue500,
398
+ textColor: ui.ColorDynamic.Blue500,
399
399
  outlineColor: ui.ColorDynamic.Blue30,
400
- textColorHovered: ui.Color.Blue500,
400
+ textColorHovered: ui.ColorDynamic.Blue500,
401
401
  backgroundColorHovered: ui.ColorDynamic.Blue50,
402
402
  backgroundColorActive: ui.ColorDynamic.Blue75,
403
403
  textColorDisabled: ui.ColorDynamic.Blue30
@@ -1230,7 +1230,7 @@ var NavbarLabel = /*#__PURE__*/styled__default.span.withConfig({
1230
1230
  var NavbarItemRoot = /*#__PURE__*/styled__default.div.withConfig({
1231
1231
  displayName: "NavbarItem__NavbarItemRoot",
1232
1232
  componentId: "SD__sc-1pvzq3w-2"
1233
- })(["width:100%;display:flex;align-items:center;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;padding:8px 16px;border-left:4px solid transparent;&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:#2f394a;border-left-color:", ";}"], ui.ColorDynamic.White, ui.ColorDynamic.Blue300);
1233
+ })(["width:100%;display:flex;align-items:center;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;padding:8px 16px;border-left:4px solid transparent;&[aria-current],&[data-active='true']{color:", ";background-color:", ";border-left-color:", ";}&:hover{background-color:", ";color:", ";border-left-color:", ";}"], ui.Color.White, ui.Color.White10, ui.ColorDynamic.Blue300, ui.Color.White08, ui.Color.White, ui.ColorDynamic.Blue300);
1234
1234
  var IconWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
1235
1235
  displayName: "NavbarItem__IconWrapper",
1236
1236
  componentId: "SD__sc-1pvzq3w-3"
@@ -1276,23 +1276,28 @@ var NavbarAccordionLabel = /*#__PURE__*/styled__default.span.withConfig({
1276
1276
  var NavbarAccordionRoot = /*#__PURE__*/styled__default(core.Accordion).withConfig({
1277
1277
  displayName: "NavbarAccordion__NavbarAccordionRoot",
1278
1278
  componentId: "SD__sc-1s7g3kw-1"
1279
- })(["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.ColorDynamic.White);
1279
+ })(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:", ";&[aria-current]{background-color:", ";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;}"], _ref => {
1280
+ var {
1281
+ theme
1282
+ } = _ref;
1283
+ return theme.palette.type === 'dark' ? ui.ColorDark.White : ui.Color.Dark500;
1284
+ }, ui.Color.White10, ui.ColorDynamic.White);
1280
1285
  var NavbarAccordionSummary = /*#__PURE__*/styled__default(core.AccordionSummary).withConfig({
1281
1286
  displayName: "NavbarAccordion__NavbarAccordionSummary",
1282
1287
  componentId: "SD__sc-1s7g3kw-2"
1283
- })(["border-left:4px solid transparent;padding-left:20px;&.MuiAccordionSummary-root{max-height:40px;min-height:40px;}&.MuiAccordionSummary-content{align-items:center;}&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:#2f394a;border-left-color:", ";}&[data-expanded='false']{.MuiAccordionSummary-expandIcon{display:none;}}"], ui.ColorDynamic.White, ui.ColorDynamic.Blue300);
1288
+ })(["border-left:4px solid transparent;padding-left:20px;&.MuiAccordionSummary-root{max-height:40px;min-height:40px;}&.MuiAccordionSummary-content{align-items:center;}&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:", ";border-left-color:", ";}&[data-expanded='false']{.MuiAccordionSummary-expandIcon{display:none;}}"], ui.Color.White, ui.Color.White10, ui.ColorDynamic.Blue300);
1284
1289
  var IconWrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
1285
1290
  displayName: "NavbarAccordion__IconWrapper",
1286
1291
  componentId: "SD__sc-1s7g3kw-3"
1287
1292
  })(["width:24px;margin-right:8px;& svg{font-size:24px;}"]);
1288
- function NavbarAccordion(_ref) {
1293
+ function NavbarAccordion(_ref2) {
1289
1294
  var {
1290
1295
  label,
1291
1296
  icon,
1292
1297
  gutter,
1293
1298
  items,
1294
1299
  onClick: _onClick
1295
- } = _ref;
1300
+ } = _ref2;
1296
1301
  var uid = ui.useUID();
1297
1302
  var {
1298
1303
  setDrawerOpen,
@@ -1358,26 +1363,31 @@ var Header = /*#__PURE__*/styled__default.div.withConfig({
1358
1363
  var Wrapper = /*#__PURE__*/styled__default.div.withConfig({
1359
1364
  displayName: "NavbarList__Wrapper",
1360
1365
  componentId: "SD__sc-19zrmxc-1"
1361
- })(["display:flex;flex:1;flex-direction:column;overflow:hidden;padding-top:16px;background:#1b2638;transition:width 0.3s linear;height:100%;width:", ";&[data-expanded='true']{width:", ";}&[data-expanded='false']{width:", ";& > ", "{justify-content:center;}}"], _ref => {
1366
+ })(["display:flex;flex:1;flex-direction:column;overflow:hidden;padding-top:16px;background:", ";transition:width 0.3s linear;height:100%;width:", ";&[data-expanded='true']{width:", ";}&[data-expanded='false']{width:", ";& > ", "{justify-content:center;}}"], _ref => {
1362
1367
  var {
1363
- isMobile
1368
+ theme
1364
1369
  } = _ref;
1365
- return isMobile ? '280px' : 'initial';
1370
+ return theme.palette.type === 'dark' ? ui.ColorDark.White : ui.Color.Dark500;
1366
1371
  }, _ref2 => {
1367
1372
  var {
1368
1373
  isMobile
1369
1374
  } = _ref2;
1370
- return isMobile ? '280px' : '240px';
1375
+ return isMobile ? '280px' : 'initial';
1371
1376
  }, _ref3 => {
1372
1377
  var {
1373
1378
  isMobile
1374
1379
  } = _ref3;
1380
+ return isMobile ? '280px' : '240px';
1381
+ }, _ref4 => {
1382
+ var {
1383
+ isMobile
1384
+ } = _ref4;
1375
1385
  return isMobile ? '280px' : '72px';
1376
1386
  }, Header);
1377
1387
  var ExpandIconButton = /*#__PURE__*/styled__default(core.IconButton).withConfig({
1378
1388
  displayName: "NavbarList__ExpandIconButton",
1379
1389
  componentId: "SD__sc-19zrmxc-2"
1380
- })(["color:", ";&&:focus{background-color:inherit;}"], ui.ColorDynamic.Silver500);
1390
+ })(["color:", ";&&:focus{background-color:inherit;}"], ui.ColorDynamic.Dark100);
1381
1391
  var Footer = /*#__PURE__*/styled__default.div.withConfig({
1382
1392
  displayName: "NavbarList__Footer",
1383
1393
  componentId: "SD__sc-19zrmxc-3"
@@ -1386,13 +1396,13 @@ var Root = /*#__PURE__*/styled__default.div.withConfig({
1386
1396
  displayName: "NavbarList__Root",
1387
1397
  componentId: "SD__sc-19zrmxc-4"
1388
1398
  })(["color:inherit;background-color:unset;border-left:unset;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;padding:8px 16px;svg{font-size:24px;color:", ";}"], ui.ColorDynamic.Dark100);
1389
- function NavbarMenuItem(_ref4) {
1399
+ function NavbarMenuItem(_ref5) {
1390
1400
  var {
1391
1401
  label,
1392
1402
  icon,
1393
1403
  onClick,
1394
1404
  component
1395
- } = _ref4;
1405
+ } = _ref5;
1396
1406
  return /*#__PURE__*/jsxRuntime.jsx(Root, {
1397
1407
  as: component,
1398
1408
  onClick: onClick,
@@ -1409,12 +1419,12 @@ var Content = /*#__PURE__*/styled__default.div.withConfig({
1409
1419
  displayName: "NavbarList__Content",
1410
1420
  componentId: "SD__sc-19zrmxc-5"
1411
1421
  })(["height:100%;min-height:50px;overflow-y:auto;overflow-x:hidden;&[aria-expanded='false']{", ",", "{display:none;}}&::-webkit-scrollbar{width:10px;height:10px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:100vw;margin-bottom:100px;}"], NavbarBadge, NavbarLabel, ui.ColorDynamic.Dark300);
1412
- function NavbarList(_ref5) {
1422
+ function NavbarList(_ref6) {
1413
1423
  var {
1414
1424
  header,
1415
1425
  items,
1416
1426
  footer
1417
- } = _ref5;
1427
+ } = _ref6;
1418
1428
  var platform = ui.useResponsiveValue('mobile', 'tablet', 'desktop');
1419
1429
  var isMobile = platform === 'mobile';
1420
1430
  var {
@@ -1552,7 +1562,7 @@ var _excluded$8 = ["title", "subtitle", "children"];
1552
1562
  var StyledTypography = /*#__PURE__*/styled__default(core.Typography).withConfig({
1553
1563
  displayName: "NavbarAvatar__StyledTypography",
1554
1564
  componentId: "SD__sc-19q2zd0-0"
1555
- })(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"], ui.ColorDynamic.Silver500, ui.ColorDynamic.White);
1565
+ })(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"], ui.Color.White, ui.Color.White);
1556
1566
  function NavbarAvatar(_ref) {
1557
1567
  var {
1558
1568
  title,
@@ -1602,12 +1612,12 @@ var StyledMenuItem = /*#__PURE__*/styled__default(core.MenuItem).withConfig({
1602
1612
  var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
1603
1613
  displayName: "NavbarMenu__Wrapper",
1604
1614
  componentId: "SD__sc-1c8icpt-2"
1605
- })(["width:100%;padding:8px 16px;cursor:pointer;background:", ";border-left:4px solid ", ";&:hover{border-left-color:", ";background:", ";}"], ui.ColorDynamic.Dark400, _ref => {
1615
+ })(["width:100%;padding:8px 16px;cursor:pointer;background:", ";border-left:4px solid ", ";&:hover{border-left-color:", ";background:", ";}"], ui.Color.White10, _ref => {
1606
1616
  var {
1607
1617
  active
1608
1618
  } = _ref;
1609
1619
  return active ? ui.ColorDynamic.Blue300 : 'transparent';
1610
- }, ui.ColorDynamic.Blue300, ui.ColorDynamic.Dark400);
1620
+ }, ui.ColorDynamic.Blue300, ui.Color.White08);
1611
1621
  function NavbarMenu(_ref2) {
1612
1622
  var {
1613
1623
  items,