@superdispatch/ui-lab 0.20.3 → 0.20.4

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.
@@ -25,7 +25,7 @@ var NavbarAccordionRoot = /*#__PURE__*/styled(Accordion).withConfig({
25
25
  var NavbarAccordionSummary = /*#__PURE__*/styled(AccordionSummary).withConfig({
26
26
  displayName: "NavbarAccordion__NavbarAccordionSummary",
27
27
  componentId: "SD__sc-1s7g3kw-2"
28
- })(["border-left:4px solid transparent;padding-left:20px;&.MuiAccordionSummary-root{max-height:40px;min-height:40px;}&:hover,&[data-active='true']{background-color:#2f394a;border-left-color:", ";}&[data-expanded='false']{.MuiAccordionSummary-expandIcon{display:none;}}"], Color.Blue300);
28
+ })(["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;}}"], Color.White, Color.Blue300);
29
29
  var IconWrapper = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "NavbarAccordion__IconWrapper",
31
31
  componentId: "SD__sc-1s7g3kw-3"
@@ -76,9 +76,12 @@ export function NavbarAccordion(_ref2) {
76
76
  }), items.map(item => {
77
77
  var index = items.indexOf(item);
78
78
  var prev = items[index - 1];
79
+ var {
80
+ ident = 0
81
+ } = item;
79
82
  return /*#__PURE__*/_createElement(NavbarItem, _objectSpread(_objectSpread({}, item), {}, {
80
83
  key: item.key,
81
- ident: 1,
84
+ ident: ident + 1,
82
85
  active: item.active,
83
86
  gutter: prev && prev.groupKey !== item.groupKey,
84
87
  onClick: event => {
@@ -13,7 +13,7 @@ export var NavbarLabel = /*#__PURE__*/styled.span.withConfig({
13
13
  var NavbarItemRoot = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "NavbarItem__NavbarItemRoot",
15
15
  componentId: "SD__sc-1pvzq3w-2"
16
- })(["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]{background-color:#2f394a;color:", ";border-left-color:", ";}&[data-active='true']{background-color:#2f394a;border-left-color:", ";}"], Color.White, Color.Blue300, Color.Blue300);
16
+ })(["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:", ";}"], Color.White, Color.Blue300);
17
17
  var IconWrapper = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "NavbarItem__IconWrapper",
19
19
  componentId: "SD__sc-1pvzq3w-3"
package/dist-web/index.js CHANGED
@@ -1130,7 +1130,7 @@ var NavbarLabel = /*#__PURE__*/styled.span.withConfig({
1130
1130
  var NavbarItemRoot = /*#__PURE__*/styled.div.withConfig({
1131
1131
  displayName: "NavbarItem__NavbarItemRoot",
1132
1132
  componentId: "SD__sc-1pvzq3w-2"
1133
- })(["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]{background-color:#2f394a;color:", ";border-left-color:", ";}&[data-active='true']{background-color:#2f394a;border-left-color:", ";}"], Color.White, Color.Blue300, Color.Blue300);
1133
+ })(["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:", ";}"], Color.White, Color.Blue300);
1134
1134
  var IconWrapper$1 = /*#__PURE__*/styled.div.withConfig({
1135
1135
  displayName: "NavbarItem__IconWrapper",
1136
1136
  componentId: "SD__sc-1pvzq3w-3"
@@ -1185,7 +1185,7 @@ var NavbarAccordionRoot = /*#__PURE__*/styled(Accordion).withConfig({
1185
1185
  var NavbarAccordionSummary = /*#__PURE__*/styled(AccordionSummary).withConfig({
1186
1186
  displayName: "NavbarAccordion__NavbarAccordionSummary",
1187
1187
  componentId: "SD__sc-1s7g3kw-2"
1188
- })(["border-left:4px solid transparent;padding-left:20px;&.MuiAccordionSummary-root{max-height:40px;min-height:40px;}&:hover,&[data-active='true']{background-color:#2f394a;border-left-color:", ";}&[data-expanded='false']{.MuiAccordionSummary-expandIcon{display:none;}}"], Color.Blue300);
1188
+ })(["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;}}"], Color.White, Color.Blue300);
1189
1189
  var IconWrapper$2 = /*#__PURE__*/styled.div.withConfig({
1190
1190
  displayName: "NavbarAccordion__IconWrapper",
1191
1191
  componentId: "SD__sc-1s7g3kw-3"
@@ -1236,9 +1236,12 @@ function NavbarAccordion(_ref2) {
1236
1236
  }), items.map(item => {
1237
1237
  var index = items.indexOf(item);
1238
1238
  var prev = items[index - 1];
1239
+ var {
1240
+ ident = 0
1241
+ } = item;
1239
1242
  return /*#__PURE__*/createElement(NavbarItem, _objectSpread(_objectSpread({}, item), {}, {
1240
1243
  key: item.key,
1241
- ident: 1,
1244
+ ident: ident + 1,
1242
1245
  active: item.active,
1243
1246
  gutter: prev && prev.groupKey !== item.groupKey,
1244
1247
  onClick: event => {