@nulogy/components 6.7.5 → 6.8.0

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.
@@ -21,10 +21,10 @@ import reactDom, { findDOMNode, createPortal } from 'react-dom';
21
21
  import WindowedSelect, { components as components$1 } from 'react-windowed-select';
22
22
  import exenv from 'exenv';
23
23
  import smoothscroll from 'smoothscroll-polyfill';
24
+ import t from 'classnames';
24
25
  import '@babel/runtime/helpers/toConsumableArray';
25
26
  import AutosizeInput from 'react-input-autosize';
26
27
  import '@babel/runtime/helpers/taggedTemplateLiteral';
27
- import t from 'classnames';
28
28
 
29
29
  var defaultOptions = {
30
30
  bindI18n: 'languageChanged',
@@ -249,7 +249,7 @@ function I18nextProvider(_ref) {
249
249
 
250
250
  /**
251
251
  * Do not edit directly
252
- * Generated on Tue, 01 Feb 2022 18:28:25 GMT
252
+ * Generated on Mon, 06 Jun 2022 21:26:05 GMT
253
253
  */
254
254
 
255
255
  const color_base_black = "#011e38";
@@ -289,9 +289,9 @@ const line_height_heading_4 = "1.33";
289
289
  const radius_border_small = "2px";
290
290
  const radius_border_medium = "4px";
291
291
  const radius_border_circle = "50%";
292
- const shadow_box_small = "0px 0px 3px 0px rgba(1, 30, 56, 0.2)";
293
- const shadow_box_medium = "0px 1px 4px 0px rgba(1, 30, 56, 0.15)";
294
- const shadow_box_large = "0px 3px 5px 0px rgba(1, 30, 56, 0.1)";
292
+ const shadow_box_small = "0px 1px 2px 0px rgba(1, 30, 56, 0.25)";
293
+ const shadow_box_medium = "0px 3px 8px 0px rgba(1, 30, 56, 0.18)";
294
+ const shadow_box_large = "0px 6px 12px 2px rgba(1, 30, 56, 0.15)";
295
295
  const shadow_focus = "0px 0px 5px 0px rgba(33, 107, 235, .9)";
296
296
  const shadow_error = "0px 0px 5px 0px rgba(204, 20, 57, .9)";
297
297
  const size_base_none = "0px";
@@ -11893,23 +11893,23 @@ var Text = styled.p.attrs(function (props) {
11893
11893
  }).withConfig({
11894
11894
  displayName: "Text",
11895
11895
  componentId: "sc-15glbbx-0"
11896
- })(space, typography, color, layout, overflow, textOverflow, cursor$1, function (_ref) {
11896
+ })(function (_ref) {
11897
11897
  var disabled = _ref.disabled,
11898
- textTransform = _ref.textTransform;
11898
+ textTransform = _ref.textTransform,
11899
+ theme = _ref.theme;
11899
11900
  return {
11900
11901
  textTransform: textTransform,
11902
+ color: "currentColor",
11903
+ marginTop: 0,
11904
+ marginBottom: 0,
11905
+ fontSize: theme.fontSizes.medium,
11906
+ lineHeight: theme.lineHeights.base,
11901
11907
  opacity: disabled ? "0.7" : undefined
11902
11908
  };
11903
- });
11909
+ }, compose(space, typography, color, layout, overflow, textOverflow, cursor$1));
11904
11910
  Text.defaultProps = {
11905
11911
  inline: false,
11906
- disabled: false,
11907
- mt: 0,
11908
- mb: 0,
11909
- fontSize: "medium",
11910
- lineHeight: "base",
11911
- textTransform: undefined,
11912
- color: "currentColor"
11912
+ disabled: false
11913
11913
  };
11914
11914
 
11915
11915
  var Heading1 = Text.withComponent("h1");
@@ -16920,14 +16920,14 @@ var DropdownMenuContainer = styled(Box).withConfig({
16920
16920
  _ref$showArrow = _ref.showArrow,
16921
16921
  showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
16922
16922
  _ref$backgroundColor = _ref.backgroundColor,
16923
- backgroundColor = _ref$backgroundColor === void 0 ? "whiteGrey" : _ref$backgroundColor,
16923
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
16924
16924
  theme = _ref.theme;
16925
16925
  return Object.assign({
16926
16926
  borderRadius: theme.radii.medium,
16927
16927
  backgroundColor: theme.colors[backgroundColor],
16928
16928
  borderTop: "1px solid " + theme.colors[backgroundColor],
16929
16929
  borderBottom: "1px solid " + theme.colors[backgroundColor],
16930
- boxShadow: theme.shadows.small,
16930
+ boxShadow: theme.shadows.medium,
16931
16931
  padding: "7px 0",
16932
16932
  zIndex: "100"
16933
16933
  }, getMenuMargin(dataPlacement, showArrow));
@@ -20164,7 +20164,7 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
20164
20164
  disabled = _a.disabled,
20165
20165
  defaultOpen = _a.defaultOpen,
20166
20166
  _a$backgroundColor = _a.backgroundColor,
20167
- backgroundColor = _a$backgroundColor === void 0 ? "whiteGrey" : _a$backgroundColor,
20167
+ backgroundColor = _a$backgroundColor === void 0 ? "white" : _a$backgroundColor,
20168
20168
  _a$placement = _a.placement,
20169
20169
  placement = _a$placement === void 0 ? "bottom-start" : _a$placement,
20170
20170
  className = _a.className,
@@ -20216,15 +20216,14 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
20216
20216
  var DropdownButton = styled.button.withConfig({
20217
20217
  displayName: "DropdownButton",
20218
20218
  componentId: "sc-16gk4iv-0"
20219
- })(color, function (_ref) {
20220
- var _ref$disabled = _ref.disabled,
20221
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
20219
+ })(function (_ref) {
20220
+ var disabled = _ref.disabled,
20222
20221
  theme = _ref.theme,
20223
- _ref$hoverColor = _ref.hoverColor,
20224
- hoverColor = _ref$hoverColor === void 0 ? "darkBlue" : _ref$hoverColor,
20225
- _ref$bgHoverColor = _ref.bgHoverColor,
20226
- bgHoverColor = _ref$bgHoverColor === void 0 ? "lightGrey" : _ref$bgHoverColor;
20222
+ hoverColor = _ref.hoverColor,
20223
+ bgHoverColor = _ref.bgHoverColor;
20227
20224
  return {
20225
+ color: theme.colors.darkGrey,
20226
+ fontWeight: theme.fontWeights.medium,
20228
20227
  display: "block",
20229
20228
  width: "100%",
20230
20229
  cursor: disabled ? "default" : "pointer",
@@ -20250,12 +20249,11 @@ var DropdownButton = styled.button.withConfig({
20250
20249
  opacity: ".5"
20251
20250
  }
20252
20251
  };
20253
- });
20252
+ }, color);
20254
20253
  DropdownButton.defaultProps = {
20255
- color: "darkBlue",
20256
20254
  disabled: false,
20257
20255
  hoverColor: "darkBlue",
20258
- bgHoverColor: "lightGrey"
20256
+ bgHoverColor: "lightBlue"
20259
20257
  };
20260
20258
 
20261
20259
  var DropdownLink = styled.a.withConfig({
@@ -20264,13 +20262,12 @@ var DropdownLink = styled.a.withConfig({
20264
20262
  }
20265
20263
  })(function (_ref) {
20266
20264
  var theme = _ref.theme,
20267
- _ref$bgHoverColor = _ref.bgHoverColor,
20268
- bgHoverColor = _ref$bgHoverColor === void 0 ? "lightGrey" : _ref$bgHoverColor,
20269
- _ref$hoverColor = _ref.hoverColor,
20270
- hoverColor = _ref$hoverColor === void 0 ? "darkBlue" : _ref$hoverColor,
20271
- _ref$color = _ref.color,
20272
- color = _ref$color === void 0 ? "darkBlue" : _ref$color;
20265
+ color = _ref.color,
20266
+ bgHoverColor = _ref.bgHoverColor,
20267
+ hoverColor = _ref.hoverColor;
20273
20268
  return {
20269
+ color: theme.colors[color],
20270
+ fontWeight: theme.fontWeights.medium,
20274
20271
  display: "block",
20275
20272
  textDecoration: "none",
20276
20273
  borderColor: "transparent",
@@ -20278,16 +20275,15 @@ var DropdownLink = styled.a.withConfig({
20278
20275
  lineHeight: theme.lineHeights.base,
20279
20276
  fontSize: theme.fontSizes.medium,
20280
20277
  transition: ".2s",
20281
- color: theme.colors[color],
20282
20278
  padding: theme.space.x1 + " " + theme.space.x2 + " " + theme.space.x1 + " 12px",
20283
20279
  borderLeft: theme.space.half + " solid transparent",
20280
+ "&:visited": {
20281
+ color: theme.colors[color]
20282
+ },
20284
20283
  "&:hover": {
20285
20284
  color: theme.colors[hoverColor],
20286
20285
  backgroundColor: theme.colors[bgHoverColor]
20287
20286
  },
20288
- "&:visited": {
20289
- color: theme.colors[color]
20290
- },
20291
20287
  "&:focus": {
20292
20288
  outline: "none",
20293
20289
  color: theme.colors[hoverColor],
@@ -20299,21 +20295,25 @@ var DropdownLink = styled.a.withConfig({
20299
20295
  }
20300
20296
  };
20301
20297
  });
20298
+ DropdownLink.defaultProps = {
20299
+ disabled: false,
20300
+ color: "darkGrey",
20301
+ hoverColor: "darkBlue",
20302
+ bgHoverColor: "lightBlue"
20303
+ };
20302
20304
 
20303
20305
  var DropdownItem = styled.div.withConfig({
20304
20306
  displayName: "DropdownItem",
20305
20307
  componentId: "xev49s-0"
20306
20308
  })(function (_ref) {
20307
20309
  var theme = _ref.theme,
20308
- _ref$color = _ref.color,
20309
- color = _ref$color === void 0 ? "darkBlue" : _ref$color,
20310
- _ref$hoverColor = _ref.hoverColor,
20311
- hoverColor = _ref$hoverColor === void 0 ? "darkBlue" : _ref$hoverColor,
20312
- _ref$bgHoverColor = _ref.bgHoverColor,
20313
- bgHoverColor = _ref$bgHoverColor === void 0 ? "lightGrey" : _ref$bgHoverColor;
20310
+ color = _ref.color,
20311
+ hoverColor = _ref.hoverColor,
20312
+ bgHoverColor = _ref.bgHoverColor;
20314
20313
  return {
20315
20314
  "*": {
20316
20315
  color: theme.colors[color],
20316
+ fontWeight: theme.fontWeights.medium,
20317
20317
  display: "block",
20318
20318
  width: "100%",
20319
20319
  cursor: "pointer",
@@ -20341,6 +20341,29 @@ var DropdownItem = styled.div.withConfig({
20341
20341
  }
20342
20342
  };
20343
20343
  });
20344
+ DropdownItem.defaultProps = {
20345
+ color: "darkGrey",
20346
+ hoverColor: "darkBlue",
20347
+ bgHoverColor: "lightBlue"
20348
+ };
20349
+
20350
+ var DropdownText = styled(Text).withConfig({
20351
+ displayName: "DropdownText",
20352
+ componentId: "sc-1t7br0a-0"
20353
+ })(function (_ref) {
20354
+ var theme = _ref.theme;
20355
+ return {
20356
+ color: theme.colors.darkGrey,
20357
+ fontWeight: theme.fontWeights.medium,
20358
+ display: "block",
20359
+ width: "100%",
20360
+ border: "none",
20361
+ textAlign: "left",
20362
+ backgroundColor: "transparent",
20363
+ transition: ".2s",
20364
+ padding: theme.space.x1 + " " + theme.space.x2
20365
+ };
20366
+ }, color);
20344
20367
 
20345
20368
  var HelpText = styled(Text).withConfig({
20346
20369
  displayName: "HelpText",
@@ -22814,12 +22837,12 @@ NavBarDropdownMenu$1.defaultProps = {
22814
22837
  hideDelay: "100"
22815
22838
  };
22816
22839
 
22817
- var SubMenuLink$1 = styled(DropdownLink).withConfig({
22840
+ var SubMenuLink = styled(DropdownLink).withConfig({
22818
22841
  displayName: "renderSubMenuItems__SubMenuLink",
22819
22842
  componentId: "sc-10nvflk-0"
22820
22843
  })(fontSize, lineHeight, space);
22821
22844
 
22822
- var getSharedStyles$5 = function getSharedStyles() {
22845
+ var getSharedStyles$4 = function getSharedStyles() {
22823
22846
  return {
22824
22847
  display: "block",
22825
22848
  whiteSpace: "nowrap",
@@ -22832,13 +22855,13 @@ var getSharedStyles$5 = function getSharedStyles() {
22832
22855
  };
22833
22856
  };
22834
22857
 
22835
- var ApplySubMenuLinkStyles$1 = styled.li.withConfig({
22858
+ var ApplySubMenuLinkStyles = styled.li.withConfig({
22836
22859
  displayName: "renderSubMenuItems__ApplySubMenuLinkStyles",
22837
22860
  componentId: "sc-10nvflk-1"
22838
22861
  })({
22839
22862
  color: Theme.colors.darkBlue,
22840
22863
  verticalAlign: "middle",
22841
- "> *": Object.assign(Object.assign({}, getSharedStyles$5()), {
22864
+ "> *": Object.assign(Object.assign({}, getSharedStyles$4()), {
22842
22865
  transition: ".2s",
22843
22866
  textDecoration: "none",
22844
22867
  "&:hover, &:focus": {
@@ -22853,12 +22876,12 @@ var ApplySubMenuLinkStyles$1 = styled.li.withConfig({
22853
22876
  }
22854
22877
  })
22855
22878
  });
22856
- var SubMenuText$1 = styled.li.withConfig({
22879
+ var SubMenuText = styled.li.withConfig({
22857
22880
  displayName: "renderSubMenuItems__SubMenuText",
22858
22881
  componentId: "sc-10nvflk-2"
22859
22882
  })(Object.assign({
22860
22883
  color: Theme.colors.darkGrey
22861
- }, getSharedStyles$5()));
22884
+ }, getSharedStyles$4()));
22862
22885
 
22863
22886
  var renderSubMenuTrigger$1 = function renderSubMenuTrigger(subMenuItem, onItemClick, SubMenuTrigger) {
22864
22887
  var _a;
@@ -22883,7 +22906,7 @@ var renderSubMenuLink$1 = function renderSubMenuLink(subMenuItem, onItemClick) {
22883
22906
  whiteSpace: "nowrap"
22884
22907
  },
22885
22908
  key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
22886
- }, /*#__PURE__*/React__default.createElement(SubMenuLink$1, {
22909
+ }, /*#__PURE__*/React__default.createElement(SubMenuLink, {
22887
22910
  fontSize: "small",
22888
22911
  lineHeight: "smallTextBase",
22889
22912
  py: "half",
@@ -22897,7 +22920,7 @@ var renderSubMenuLink$1 = function renderSubMenuLink(subMenuItem, onItemClick) {
22897
22920
  var renderCustom$5 = function renderCustom(subMenuItem, onItemClick) {
22898
22921
  var _a;
22899
22922
 
22900
- return /*#__PURE__*/React__default.createElement(ApplySubMenuLinkStyles$1, {
22923
+ return /*#__PURE__*/React__default.createElement(ApplySubMenuLinkStyles, {
22901
22924
  key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name,
22902
22925
  onClick: onItemClick
22903
22926
  }, subMenuItem.render());
@@ -22906,7 +22929,7 @@ var renderCustom$5 = function renderCustom(subMenuItem, onItemClick) {
22906
22929
  var renderText$5 = function renderText(subMenuItem) {
22907
22930
  var _a;
22908
22931
 
22909
- return /*#__PURE__*/React__default.createElement(SubMenuText$1, {
22932
+ return /*#__PURE__*/React__default.createElement(SubMenuText, {
22910
22933
  key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
22911
22934
  }, subMenuItem.name);
22912
22935
  };
@@ -23193,7 +23216,7 @@ MenuTrigger$1.defaultProps = {
23193
23216
  hoverBackground: Theme.colors.black
23194
23217
  };
23195
23218
 
23196
- var getSharedStyles$4 = function getSharedStyles(color) {
23219
+ var getSharedStyles$3 = function getSharedStyles(color) {
23197
23220
  return {
23198
23221
  display: "block",
23199
23222
  color: themeGet("colors." + color, color)(color),
@@ -23208,7 +23231,7 @@ var getSharedStyles$4 = function getSharedStyles(color) {
23208
23231
  };
23209
23232
  };
23210
23233
 
23211
- var ApplyMenuLinkStyles$3 = styled.div.withConfig({
23234
+ var ApplyMenuLinkStyles$2 = styled.div.withConfig({
23212
23235
  displayName: "DesktopMenu__ApplyMenuLinkStyles",
23213
23236
  componentId: "sc-1mpxh2o-0"
23214
23237
  })(function (_ref) {
@@ -23216,7 +23239,7 @@ var ApplyMenuLinkStyles$3 = styled.div.withConfig({
23216
23239
  hoverColor = _ref.hoverColor,
23217
23240
  hoverBackground = _ref.hoverBackground;
23218
23241
  return {
23219
- "*": Object.assign(Object.assign({}, getSharedStyles$4(color)), {
23242
+ "*": Object.assign(Object.assign({}, getSharedStyles$3(color)), {
23220
23243
  transition: ".2s",
23221
23244
  "&:hover, &:focus": {
23222
23245
  outline: "none",
@@ -23233,24 +23256,24 @@ var ApplyMenuLinkStyles$3 = styled.div.withConfig({
23233
23256
  })
23234
23257
  };
23235
23258
  });
23236
- ApplyMenuLinkStyles$3.propTypes = {
23259
+ ApplyMenuLinkStyles$2.propTypes = {
23237
23260
  color: PropTypes.string,
23238
23261
  hoverColor: PropTypes.string,
23239
23262
  hoverBackground: PropTypes.string
23240
23263
  };
23241
- ApplyMenuLinkStyles$3.defaultProps = {
23264
+ ApplyMenuLinkStyles$2.defaultProps = {
23242
23265
  color: Theme.colors.white,
23243
23266
  hoverColor: Theme.colors.lightBlue,
23244
23267
  hoverBackground: Theme.colors.black
23245
23268
  };
23246
- var MenuLink$3 = styled.a.withConfig({
23269
+ var MenuLink$2 = styled.a.withConfig({
23247
23270
  displayName: "DesktopMenu__MenuLink",
23248
23271
  componentId: "sc-1mpxh2o-1"
23249
23272
  })(function (_ref2) {
23250
23273
  var color = _ref2.color,
23251
23274
  hoverColor = _ref2.hoverColor,
23252
23275
  hoverBackground = _ref2.hoverBackground;
23253
- return Object.assign(Object.assign({}, getSharedStyles$4(color)), {
23276
+ return Object.assign(Object.assign({}, getSharedStyles$3(color)), {
23254
23277
  transition: ".2s",
23255
23278
  "&:hover, &:focus": {
23256
23279
  outline: "none",
@@ -23266,12 +23289,12 @@ var MenuLink$3 = styled.a.withConfig({
23266
23289
  }
23267
23290
  });
23268
23291
  });
23269
- var MenuText$3 = styled.div.withConfig({
23292
+ var MenuText$2 = styled.div.withConfig({
23270
23293
  displayName: "DesktopMenu__MenuText",
23271
23294
  componentId: "sc-1mpxh2o-2"
23272
23295
  })(function (_ref3) {
23273
23296
  var textColor = _ref3.textColor;
23274
- return Object.assign({}, getSharedStyles$4(textColor));
23297
+ return Object.assign({}, getSharedStyles$3(textColor));
23275
23298
  });
23276
23299
  var Nav$3 = styled.nav.withConfig({
23277
23300
  displayName: "DesktopMenu__Nav",
@@ -23293,7 +23316,7 @@ var renderMenuTrigger$1 = function renderMenuTrigger(menuItem, themeColorObject)
23293
23316
  var renderMenuLink$3 = function renderMenuLink(menuItem, themeColorObject) {
23294
23317
  return /*#__PURE__*/React__default.createElement("div", {
23295
23318
  key: menuItem.name
23296
- }, /*#__PURE__*/React__default.createElement(MenuLink$3, Object.assign({
23319
+ }, /*#__PURE__*/React__default.createElement(MenuLink$2, Object.assign({
23297
23320
  href: menuItem.href,
23298
23321
  as: menuItem.as,
23299
23322
  to: menuItem.to
@@ -23301,13 +23324,13 @@ var renderMenuLink$3 = function renderMenuLink(menuItem, themeColorObject) {
23301
23324
  };
23302
23325
 
23303
23326
  var renderCustom$4 = function renderCustom(menuItem, themeColorObject) {
23304
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$3, Object.assign({}, themeColorObject, {
23327
+ return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$2, Object.assign({}, themeColorObject, {
23305
23328
  key: menuItem.name
23306
23329
  }), menuItem.render());
23307
23330
  };
23308
23331
 
23309
23332
  var renderText$4 = function renderText(menuItem, themeColorObject) {
23310
- return /*#__PURE__*/React__default.createElement(MenuText$3, Object.assign({
23333
+ return /*#__PURE__*/React__default.createElement(MenuText$2, Object.assign({
23311
23334
  key: menuItem.name
23312
23335
  }, themeColorObject), menuItem.name);
23313
23336
  };
@@ -23402,7 +23425,7 @@ var getPaddingLeft$1 = function getPaddingLeft(layer) {
23402
23425
  return 24 * layer + 24 + "px";
23403
23426
  };
23404
23427
 
23405
- var getSharedStyles$3 = function getSharedStyles(_ref) {
23428
+ var getSharedStyles$2 = function getSharedStyles(_ref) {
23406
23429
  var color = _ref.color,
23407
23430
  layer = _ref.layer;
23408
23431
  return {
@@ -23420,7 +23443,7 @@ var getSharedStyles$3 = function getSharedStyles(_ref) {
23420
23443
  };
23421
23444
  };
23422
23445
 
23423
- var ApplyMenuLinkStyles$2 = styled.li.withConfig({
23446
+ var ApplyMenuLinkStyles$1 = styled.li.withConfig({
23424
23447
  displayName: "MobileMenu__ApplyMenuLinkStyles",
23425
23448
  componentId: "vqy2lk-1"
23426
23449
  })(function (_ref2) {
@@ -23430,7 +23453,7 @@ var ApplyMenuLinkStyles$2 = styled.li.withConfig({
23430
23453
  layer = _ref2.layer;
23431
23454
  return {
23432
23455
  display: "block",
23433
- "*": Object.assign(Object.assign({}, getSharedStyles$3({
23456
+ "*": Object.assign(Object.assign({}, getSharedStyles$2({
23434
23457
  color: color,
23435
23458
  layer: layer
23436
23459
  })), {
@@ -23449,19 +23472,19 @@ var ApplyMenuLinkStyles$2 = styled.li.withConfig({
23449
23472
  })
23450
23473
  };
23451
23474
  });
23452
- ApplyMenuLinkStyles$2.propTypes = {
23475
+ ApplyMenuLinkStyles$1.propTypes = {
23453
23476
  layer: PropTypes.number,
23454
23477
  color: PropTypes.string,
23455
23478
  hoverColor: PropTypes.string,
23456
23479
  hoverBackground: PropTypes.string
23457
23480
  };
23458
- ApplyMenuLinkStyles$2.defaultProps = {
23481
+ ApplyMenuLinkStyles$1.defaultProps = {
23459
23482
  layer: 0,
23460
23483
  color: Theme.colors.white,
23461
23484
  hoverColor: Theme.colors.lightBlue,
23462
23485
  hoverBackground: Theme.colors.black
23463
23486
  };
23464
- var MenuLink$2 = styled.a.withConfig({
23487
+ var MenuLink$1 = styled.a.withConfig({
23465
23488
  displayName: "MobileMenu__MenuLink",
23466
23489
  componentId: "vqy2lk-2"
23467
23490
  })(function (_ref3) {
@@ -23469,7 +23492,7 @@ var MenuLink$2 = styled.a.withConfig({
23469
23492
  hoverColor = _ref3.hoverColor,
23470
23493
  hoverBackground = _ref3.hoverBackground,
23471
23494
  layer = _ref3.layer;
23472
- return Object.assign(Object.assign({}, getSharedStyles$3({
23495
+ return Object.assign(Object.assign({}, getSharedStyles$2({
23473
23496
  color: color,
23474
23497
  layer: layer
23475
23498
  })), {
@@ -23490,13 +23513,13 @@ var MenuLink$2 = styled.a.withConfig({
23490
23513
  }
23491
23514
  });
23492
23515
  });
23493
- var MenuText$2 = styled.li.withConfig({
23516
+ var MenuText$1 = styled.li.withConfig({
23494
23517
  displayName: "MobileMenu__MenuText",
23495
23518
  componentId: "vqy2lk-3"
23496
23519
  })(function (_ref4) {
23497
23520
  var textColor = _ref4.textColor,
23498
23521
  layer = _ref4.layer;
23499
- return Object.assign({}, getSharedStyles$3({
23522
+ return Object.assign({}, getSharedStyles$2({
23500
23523
  color: textColor,
23501
23524
  layer: layer
23502
23525
  }));
@@ -23517,7 +23540,7 @@ var renderMenuLink$2 = function renderMenuLink(menuItem, linkOnClick, themeColor
23517
23540
  display: "block",
23518
23541
  marginBottom: Theme.space.x1
23519
23542
  }
23520
- }, /*#__PURE__*/React__default.createElement(MenuLink$2, Object.assign({
23543
+ }, /*#__PURE__*/React__default.createElement(MenuLink$1, Object.assign({
23521
23544
  layer: layer
23522
23545
  }, themeColorObject, {
23523
23546
  onClick: linkOnClick,
@@ -23528,7 +23551,7 @@ var renderMenuLink$2 = function renderMenuLink(menuItem, linkOnClick, themeColor
23528
23551
  };
23529
23552
 
23530
23553
  var renderCustom$3 = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
23531
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$2, Object.assign({
23554
+ return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$1, Object.assign({
23532
23555
  key: menuItem.name
23533
23556
  }, themeColorObject, {
23534
23557
  layer: layer,
@@ -23551,7 +23574,7 @@ var renderSubMenu$1 = function renderSubMenu(menuItem, linkOnClick, themeColorOb
23551
23574
  };
23552
23575
 
23553
23576
  var renderText$3 = function renderText(menuItem, linkOnClick, themeColorObject, layer) {
23554
- return /*#__PURE__*/React__default.createElement(MenuText$2, Object.assign({
23577
+ return /*#__PURE__*/React__default.createElement(MenuText$1, Object.assign({
23555
23578
  key: menuItem.name,
23556
23579
  layer: layer
23557
23580
  }, themeColorObject), menuItem.name);
@@ -25369,7 +25392,7 @@ var TooltipContainer = styled(Box).withConfig({
25369
25392
  backgroundColor: tooltipStyles(theme).backgroundColor,
25370
25393
  borderRadius: theme.radii.medium,
25371
25394
  border: "1px solid " + tooltipStyles(theme).borderColor,
25372
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.18)",
25395
+ boxShadow: theme.shadows.medium,
25373
25396
  padding: theme.space.x1,
25374
25397
  transition: "opacity 0.3s",
25375
25398
  zIndex: theme.zIndices.content
@@ -44487,8 +44510,8 @@ var StatelessNavBarDropdownMenu = /*#__PURE__*/function (_StatelessNavBarDropd)
44487
44510
  })), /*#__PURE__*/React__default.createElement(PopperArrow, Object.assign({}, popperProps.arrowProps, {
44488
44511
  placement: placement,
44489
44512
  ref: popperProps.arrowProps.ref,
44490
- backgroundColor: "whiteGrey",
44491
- borderColor: "whiteGrey"
44513
+ backgroundColor: "white",
44514
+ borderColor: "white"
44492
44515
  })), /*#__PURE__*/React__default.createElement(DetectOutsideClick, {
44493
44516
  onClick: _this4.handleOutsideClick,
44494
44517
  clickRef: [_this4.menuRef, _this4.triggerRef]
@@ -44535,64 +44558,10 @@ NavBarDropdownMenu.defaultProps = {
44535
44558
  hideDelay: "100"
44536
44559
  };
44537
44560
 
44538
- var SubMenuLink = styled(DropdownLink).withConfig({
44539
- displayName: "renderSubMenuItems__SubMenuLink",
44540
- componentId: "vyx9p-0"
44541
- })(fontSize, lineHeight, space);
44542
- SubMenuLink.propTypes = Object.assign(Object.assign(Object.assign({}, propTypes.fontSize), propTypes.lineHeight), propTypes.space);
44543
-
44544
- var getSharedStyles$2 = function getSharedStyles() {
44545
- return {
44546
- display: "block",
44547
- whiteSpace: "nowrap",
44548
- textDecoration: "none",
44549
- borderColor: "transparent",
44550
- backgroundColor: "transparent",
44551
- lineHeight: Theme.lineHeights.smallTextBase,
44552
- fontSize: "" + Theme.fontSizes.small,
44553
- padding: Theme.space.half + " " + Theme.space.x2
44554
- };
44555
- };
44556
-
44557
- var ApplySubMenuLinkStyles = styled.li.withConfig({
44558
- displayName: "renderSubMenuItems__ApplySubMenuLinkStyles",
44559
- componentId: "vyx9p-1"
44560
- })(function () {
44561
- return {
44562
- color: Theme.colors.darkBlue,
44563
- verticalAlign: "middle",
44564
- "> *": Object.assign(Object.assign({}, getSharedStyles$2()), {
44565
- transition: ".2s",
44566
- textDecoration: "none",
44567
- "&:hover, &:focus": {
44568
- outline: "none",
44569
- backgroundColor: Theme.colors.lightGrey
44570
- },
44571
- "&:disabled": {
44572
- opacity: ".5"
44573
- },
44574
- "&:focus": {
44575
- boxShadow: Theme.shadows.focus
44576
- }
44577
- })
44578
- };
44579
- });
44580
- var SubMenuText = styled.li.withConfig({
44581
- displayName: "renderSubMenuItems__SubMenuText",
44582
- componentId: "vyx9p-2"
44583
- })(function () {
44584
- return Object.assign({
44585
- color: Theme.colors.darkGrey
44586
- }, getSharedStyles$2());
44587
- });
44588
-
44589
44561
  var renderSubMenuTrigger = function renderSubMenuTrigger(subMenuItem, onItemClick, SubMenuTrigger) {
44590
44562
  var _a;
44591
44563
 
44592
- return /*#__PURE__*/React__default.createElement("li", {
44593
- style: {
44594
- whiteSpace: "nowrap"
44595
- },
44564
+ return /*#__PURE__*/React__default.createElement(NoWrapLi, {
44596
44565
  key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
44597
44566
  }, /*#__PURE__*/React__default.createElement(SubMenuTrigger, {
44598
44567
  onItemClick: onItemClick,
@@ -44604,14 +44573,9 @@ var renderSubMenuTrigger = function renderSubMenuTrigger(subMenuItem, onItemClic
44604
44573
  var renderSubMenuLink = function renderSubMenuLink(subMenuItem, onItemClick) {
44605
44574
  var _a;
44606
44575
 
44607
- return /*#__PURE__*/React__default.createElement("li", {
44608
- style: {
44609
- whiteSpace: "nowrap"
44610
- },
44576
+ return /*#__PURE__*/React__default.createElement(NoWrapLi, {
44611
44577
  key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
44612
- }, /*#__PURE__*/React__default.createElement(SubMenuLink, {
44613
- fontSize: "small",
44614
- lineHeight: "smallTextBase",
44578
+ }, /*#__PURE__*/React__default.createElement(DropdownLink, {
44615
44579
  py: "half",
44616
44580
  onClick: onItemClick,
44617
44581
  href: subMenuItem.href,
@@ -44623,18 +44587,17 @@ var renderSubMenuLink = function renderSubMenuLink(subMenuItem, onItemClick) {
44623
44587
  var renderCustom$2 = function renderCustom(subMenuItem, onItemClick) {
44624
44588
  var _a;
44625
44589
 
44626
- return /*#__PURE__*/React__default.createElement(ApplySubMenuLinkStyles, {
44627
- key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name,
44628
- onClick: onItemClick
44629
- }, subMenuItem.render());
44590
+ return /*#__PURE__*/React__default.createElement(NoWrapLi, {
44591
+ key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
44592
+ }, subMenuItem.render(onItemClick));
44630
44593
  };
44631
44594
 
44632
44595
  var renderText$2 = function renderText(subMenuItem) {
44633
44596
  var _a;
44634
44597
 
44635
- return /*#__PURE__*/React__default.createElement(SubMenuText, {
44598
+ return /*#__PURE__*/React__default.createElement(NoWrapLi, {
44636
44599
  key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
44637
- }, subMenuItem.name);
44600
+ }, /*#__PURE__*/React__default.createElement(DropdownText, null, subMenuItem.name));
44638
44601
  };
44639
44602
 
44640
44603
  var getRenderFunction$2 = function getRenderFunction(subMenuItem) {
@@ -44655,37 +44618,25 @@ var renderSubMenuItems = function renderSubMenuItems(subMenuItems, onItemClick,
44655
44618
  });
44656
44619
  };
44657
44620
 
44658
- var StyledButton$1 = styled.button.withConfig({
44621
+ var NoWrapLi = styled.li.withConfig({
44622
+ displayName: "renderSubMenuItems__NoWrapLi",
44623
+ componentId: "vyx9p-0"
44624
+ })(function () {
44625
+ return {
44626
+ whiteSpace: "nowrap"
44627
+ };
44628
+ });
44629
+
44630
+ var StyledButton$1 = styled(DropdownButton).withConfig({
44659
44631
  displayName: "SubMenuTrigger__StyledButton",
44660
44632
  componentId: "sc-1tg8y8b-0"
44661
44633
  })(function (_ref) {
44662
- var isOpen = _ref.isOpen;
44634
+ var isOpen = _ref.isOpen,
44635
+ theme = _ref.theme;
44663
44636
  return {
44664
- display: "block",
44665
44637
  position: "relative",
44666
- color: Theme.colors.darkBlue,
44667
- fontSize: Theme.fontSizes.small,
44668
- lineHeight: Theme.lineHeights.smallTextBase,
44669
- width: "100%",
44670
- padding: Theme.space.half + " 28px " + Theme.space.half + " 12px",
44671
- border: "none",
44672
- borderLeft: Theme.space.half + " solid transparent",
44673
- "&:hover": {
44674
- backgroundColor: Theme.colors.lightGrey
44675
- },
44676
- "&:disabled": {
44677
- opacity: ".5"
44678
- },
44679
- "&:focus": {
44680
- outline: "none",
44681
- color: Theme.colors.darkBlue,
44682
- backgroundColor: Theme.colors.lightGrey,
44683
- borderLeft: Theme.space.half + " solid " + Theme.colors.blue
44684
- },
44685
- backgroundColor: isOpen ? Theme.colors.lightGrey : "transparent",
44686
- textDecoration: "none",
44687
- textAlign: "left",
44688
- cursor: "pointer"
44638
+ backgroundColor: isOpen ? theme.colors.lightBlue : "transparent",
44639
+ color: isOpen ? theme.colors.darkBlue : theme.colors.darkGrey
44689
44640
  };
44690
44641
  });
44691
44642
  var SubMenuTriggerButton = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
@@ -44699,10 +44650,9 @@ var SubMenuTriggerButton = /*#__PURE__*/React__default.forwardRef(function (_a,
44699
44650
  }, props), name, /*#__PURE__*/React__default.createElement(Icon, {
44700
44651
  style: {
44701
44652
  position: "absolute",
44702
- top: "7px"
44653
+ top: "10px"
44703
44654
  },
44704
44655
  icon: "rightArrow",
44705
- color: "darkBlue",
44706
44656
  size: "20px",
44707
44657
  p: "2px"
44708
44658
  }));
@@ -44753,7 +44703,7 @@ var SubMenuTrigger = function SubMenuTrigger(_a) {
44753
44703
  );
44754
44704
  };
44755
44705
 
44756
- SubMenuTrigger.displayName = "SubMenuTriggerButton";
44706
+ SubMenuTrigger.displayName = "SubMenuTrigger";
44757
44707
 
44758
44708
  var StyledButton = styled.button.withConfig({
44759
44709
  displayName: "MenuTrigger__StyledButton",
@@ -44898,7 +44848,7 @@ var getSharedStyles$1 = function getSharedStyles(color, theme) {
44898
44848
  };
44899
44849
  };
44900
44850
 
44901
- var ApplyMenuLinkStyles$1 = styled.div.withConfig({
44851
+ var ApplyMenuLinkStyles = styled.div.withConfig({
44902
44852
  displayName: "DesktopMenu__ApplyMenuLinkStyles",
44903
44853
  componentId: "sc-8mrjkc-0"
44904
44854
  })(function (_ref) {
@@ -44927,7 +44877,7 @@ var ApplyMenuLinkStyles$1 = styled.div.withConfig({
44927
44877
  })
44928
44878
  };
44929
44879
  });
44930
- var MenuLink$1 = styled.a.withConfig({
44880
+ var MenuLink = styled.a.withConfig({
44931
44881
  displayName: "DesktopMenu__MenuLink",
44932
44882
  componentId: "sc-8mrjkc-1"
44933
44883
  })(function (_ref2) {
@@ -44952,7 +44902,7 @@ var MenuLink$1 = styled.a.withConfig({
44952
44902
  }
44953
44903
  });
44954
44904
  });
44955
- var MenuText$1 = styled.div.withConfig({
44905
+ var MenuText = styled.div.withConfig({
44956
44906
  displayName: "DesktopMenu__MenuText",
44957
44907
  componentId: "sc-8mrjkc-2"
44958
44908
  })(function (_ref3) {
@@ -44987,7 +44937,7 @@ var renderMenuLink$1 = function renderMenuLink(menuItem, themeColorObject) {
44987
44937
 
44988
44938
  return /*#__PURE__*/React__default.createElement("div", {
44989
44939
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44990
- }, /*#__PURE__*/React__default.createElement(MenuLink$1, Object.assign({
44940
+ }, /*#__PURE__*/React__default.createElement(MenuLink, Object.assign({
44991
44941
  href: menuItem.href,
44992
44942
  to: menuItem.to,
44993
44943
  as: menuItem.as
@@ -44997,7 +44947,7 @@ var renderMenuLink$1 = function renderMenuLink(menuItem, themeColorObject) {
44997
44947
  var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
44998
44948
  var _a;
44999
44949
 
45000
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$1, Object.assign({}, themeColorObject, {
44950
+ return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles, Object.assign({}, themeColorObject, {
45001
44951
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45002
44952
  }), menuItem.render());
45003
44953
  };
@@ -45005,7 +44955,7 @@ var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
45005
44955
  var renderText$1 = function renderText(menuItem, themeColorObject) {
45006
44956
  var _a;
45007
44957
 
45008
- return /*#__PURE__*/React__default.createElement(MenuText$1, Object.assign({
44958
+ return /*#__PURE__*/React__default.createElement(MenuText, Object.assign({
45009
44959
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45010
44960
  }, themeColorObject), menuItem.name);
45011
44961
  };
@@ -45111,94 +45061,44 @@ var BrandingWrap = styled.div.withConfig({
45111
45061
  color: theme.colors.white,
45112
45062
  marginBottom: theme.space.x1
45113
45063
  };
45114
- });
45064
+ }); // eslint-disable-next-line no-mixed-operators
45115
45065
 
45116
45066
  var getPaddingLeft = function getPaddingLeft(layer) {
45117
45067
  return 24 * layer + 24 + "px";
45118
45068
  };
45119
45069
 
45120
- var getSharedStyles = function getSharedStyles(_ref2) {
45121
- var color = _ref2.color,
45122
- layer = _ref2.layer,
45123
- theme = _ref2.theme;
45070
+ var getSharedStyles = function getSharedStyles(theme) {
45124
45071
  return {
45125
45072
  display: "block",
45126
- color: theme.colors[color] || color,
45127
45073
  textDecoration: "none",
45128
45074
  border: "none",
45129
45075
  backgroundColor: "transparent",
45130
- borderRadius: theme.radii.medium,
45131
- fontSize: layer === 0 ? theme.fontSizes.large : theme.fontSizes.medium,
45132
- lineHeight: layer === 0 ? theme.lineHeights.heading3 : theme.lineHeights.base,
45133
- padding: layer === 0 ? theme.space.x1 + " " + theme.space.x3 : theme.space.x1 + " " + theme.space.x2,
45134
- paddingLeft: getPaddingLeft(layer),
45076
+ fontSize: theme.fontSizes.large,
45077
+ fontWeight: theme.fontWeights.medium,
45078
+ lineHeight: theme.lineHeights.heading3,
45135
45079
  marginBottom: theme.space.x1,
45136
- "&:visited": {
45137
- color: theme.colors[color] || color
45138
- },
45139
- "&:hover": {
45140
- color: "#434d59",
45141
- background: "#f0f2f5"
45142
- }
45080
+ padding: theme.space.x1 + " " + theme.space.x3,
45081
+ paddingLeft: getPaddingLeft(0)
45143
45082
  };
45144
45083
  };
45145
45084
 
45146
- var ApplyMenuLinkStyles = styled.li.withConfig({
45147
- displayName: "MobileMenu__ApplyMenuLinkStyles",
45085
+ var TopLevelLink = styled(Link).withConfig({
45086
+ displayName: "MobileMenu__TopLevelLink",
45148
45087
  componentId: "sc-18t6zrc-1"
45149
- })(function (_ref3) {
45150
- var _ref3$color = _ref3.color,
45151
- color = _ref3$color === void 0 ? "white" : _ref3$color,
45152
- _ref3$hoverColor = _ref3.hoverColor,
45153
- hoverColor = _ref3$hoverColor === void 0 ? "lightBlue" : _ref3$hoverColor,
45154
- _ref3$hoverBackground = _ref3.hoverBackground,
45155
- hoverBackground = _ref3$hoverBackground === void 0 ? "white" : _ref3$hoverBackground,
45156
- _ref3$layer = _ref3.layer,
45157
- layer = _ref3$layer === void 0 ? 0 : _ref3$layer,
45158
- theme = _ref3.theme;
45159
- return {
45160
- display: "block",
45161
- "button, a": Object.assign(Object.assign({}, getSharedStyles({
45162
- color: color,
45163
- layer: layer,
45164
- theme: theme
45165
- })), {
45166
- textDecoration: "none",
45167
- "&:hover, &:focus": {
45168
- outline: "none",
45169
- color: theme.colors[hoverColor] || hoverColor,
45170
- backgroundColor: theme.colors[hoverBackground] || hoverBackground
45171
- },
45172
- "&:disabled": {
45173
- opacity: ".5"
45174
- },
45175
- "&:focus": {
45176
- boxShadow: theme.shadows.focus
45177
- }
45178
- })
45179
- };
45180
- });
45181
- var MenuLink = styled.a.withConfig({
45182
- displayName: "MobileMenu__MenuLink",
45183
- componentId: "sc-18t6zrc-2"
45184
- })(function (_ref4) {
45185
- var color = _ref4.color,
45186
- hoverColor = _ref4.hoverColor,
45187
- hoverBackground = _ref4.hoverBackground,
45188
- layer = _ref4.layer,
45189
- theme = _ref4.theme;
45190
- return Object.assign(Object.assign({}, getSharedStyles({
45191
- color: color,
45192
- layer: layer,
45193
- theme: theme
45194
- })), {
45088
+ })(function (_ref2) {
45089
+ var theme = _ref2.theme;
45090
+ return Object.assign(Object.assign({}, getSharedStyles(theme)), {
45091
+ color: theme.colors.darkBlue,
45092
+ "&:visited": {
45093
+ color: theme.colors.darkBlue
45094
+ },
45195
45095
  width: "100%",
45196
45096
  borderRadius: "0",
45197
45097
  transition: ".2s",
45198
45098
  "&:hover, &:focus": {
45199
45099
  outline: "none",
45200
- color: themeGet("colors." + hoverColor, hoverColor)(hoverColor),
45201
- backgroundColor: themeGet("colors." + hoverBackground, hoverBackground)(hoverBackground),
45100
+ color: theme.colors.blackBlue,
45101
+ backgroundColor: theme.colors.whiteGrey,
45202
45102
  cursor: "pointer"
45203
45103
  },
45204
45104
  "&:focus": {
@@ -45209,18 +45109,31 @@ var MenuLink = styled.a.withConfig({
45209
45109
  }
45210
45110
  });
45211
45111
  });
45212
- var MenuText = styled.li.withConfig({
45213
- displayName: "MobileMenu__MenuText",
45112
+ var TopLevelText = styled(Text).withConfig({
45113
+ displayName: "MobileMenu__TopLevelText",
45114
+ componentId: "sc-18t6zrc-2"
45115
+ })(function (_ref3) {
45116
+ var theme = _ref3.theme;
45117
+ return Object.assign(Object.assign({}, getSharedStyles(theme)), {
45118
+ color: theme.colors.blackBlue
45119
+ });
45120
+ });
45121
+ var ChildIndentingLi = styled.li.withConfig({
45122
+ displayName: "MobileMenu__ChildIndentingLi",
45214
45123
  componentId: "sc-18t6zrc-3"
45215
- })(function (_ref5) {
45216
- var textColor = _ref5.textColor,
45217
- layer = _ref5.layer,
45218
- theme = _ref5.theme;
45219
- return Object.assign({}, getSharedStyles({
45220
- color: textColor,
45221
- layer: layer,
45222
- theme: theme
45223
- }));
45124
+ })(function (_ref4) {
45125
+ var _ref5;
45126
+
45127
+ var layer = _ref4.layer,
45128
+ theme = _ref4.theme;
45129
+ return _ref5 = {
45130
+ marginBottom: theme.space.x1
45131
+ }, _ref5["> " + DropdownButton + ", > " + DropdownLink] = {
45132
+ // eslint-disable-next-line no-mixed-operators
45133
+ paddingLeft: 24 * layer + 20 + "px"
45134
+ }, _ref5["> " + DropdownText] = {
45135
+ paddingLeft: getPaddingLeft(layer)
45136
+ }, _ref5;
45224
45137
  });
45225
45138
  var SubMenuItemsList = styled.ul.withConfig({
45226
45139
  displayName: "MobileMenu__SubMenuItemsList",
@@ -45230,41 +45143,29 @@ var SubMenuItemsList = styled.ul.withConfig({
45230
45143
  paddingLeft: "0",
45231
45144
  margin: "0"
45232
45145
  });
45233
- var StyledLi = styled.li.withConfig({
45234
- displayName: "MobileMenu__StyledLi",
45235
- componentId: "sc-18t6zrc-5"
45236
- })(function (_ref6) {
45237
- var theme = _ref6.theme;
45238
- return {
45239
- marginBottom: theme.space.x1,
45240
- display: "block"
45241
- };
45242
- });
45243
45146
 
45244
45147
  var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorObject, layer) {
45245
45148
  var _a;
45246
45149
 
45247
- return /*#__PURE__*/React__default.createElement(StyledLi, {
45150
+ var MenuLink = layer === 0 ? TopLevelLink : DropdownLink;
45151
+ return /*#__PURE__*/React__default.createElement(ChildIndentingLi, {
45152
+ layer: layer,
45248
45153
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45249
- }, /*#__PURE__*/React__default.createElement(MenuLink, Object.assign({
45250
- layer: layer
45251
- }, themeColorObject, {
45154
+ }, /*#__PURE__*/React__default.createElement(MenuLink, {
45252
45155
  onClick: linkOnClick,
45253
45156
  href: menuItem.href,
45254
45157
  as: menuItem.as,
45255
45158
  to: menuItem.to
45256
- }), menuItem.name));
45159
+ }, menuItem.name));
45257
45160
  };
45258
45161
 
45259
45162
  var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
45260
45163
  var _a;
45261
45164
 
45262
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles, Object.assign({
45263
- key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45264
- }, themeColorObject, {
45165
+ return /*#__PURE__*/React__default.createElement(ChildIndentingLi, {
45265
45166
  layer: layer,
45266
- onClick: linkOnClick
45267
- }), menuItem.render());
45167
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45168
+ }, menuItem.render(linkOnClick, layer));
45268
45169
  };
45269
45170
 
45270
45171
  var renderSubMenu = function renderSubMenu(menuItem, linkOnClick, themeColorObject, layer) {
@@ -45286,10 +45187,11 @@ var renderSubMenu = function renderSubMenu(menuItem, linkOnClick, themeColorObje
45286
45187
  var renderText = function renderText(menuItem, linkOnClick, themeColorObject, layer) {
45287
45188
  var _a;
45288
45189
 
45289
- return /*#__PURE__*/React__default.createElement(MenuText, Object.assign({
45290
- key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name,
45291
- layer: layer
45292
- }, themeColorObject), menuItem.name);
45190
+ var MenuText = layer === 0 ? TopLevelText : DropdownText;
45191
+ return /*#__PURE__*/React__default.createElement(ChildIndentingLi, {
45192
+ layer: layer,
45193
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45194
+ }, /*#__PURE__*/React__default.createElement(MenuText, null, menuItem.name));
45293
45195
  };
45294
45196
 
45295
45197
  var getRenderFunction = function getRenderFunction(menuItem) {
@@ -45315,50 +45217,47 @@ var renderTopLayerMenuItems = function renderTopLayerMenuItems(menuData, linkOnC
45315
45217
  return renderMenuItems(menuData, linkOnClick, themeColorObject, 0);
45316
45218
  };
45317
45219
 
45318
- var getSubMenuHeading = function getSubMenuHeading(layer, color, name) {
45319
- return layer === 0 ? /*#__PURE__*/React__default.createElement(Heading3, {
45320
- mb: "x1",
45321
- color: color
45322
- }, name) : /*#__PURE__*/React__default.createElement(Text, {
45220
+ var getSubMenuHeading = function getSubMenuHeading(layer, name) {
45221
+ return layer === 0 ? /*#__PURE__*/React__default.createElement(TopLevelText, {
45222
+ as: "h3"
45223
+ }, name) : /*#__PURE__*/React__default.createElement(DropdownText, {
45323
45224
  mb: "x1",
45324
- color: color,
45325
- py: "x1",
45326
45225
  style: {
45327
45226
  paddingLeft: getPaddingLeft(layer)
45328
45227
  }
45329
45228
  }, name);
45330
45229
  };
45331
45230
 
45332
- var SubMenu = function SubMenu(_ref7) {
45333
- var menuItem = _ref7.menuItem,
45334
- linkOnClick = _ref7.linkOnClick,
45335
- themeColorObject = _ref7.themeColorObject,
45336
- layer = _ref7.layer;
45337
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, getSubMenuHeading(layer, themeColorObject && themeColorObject.textColor, menuItem.name), /*#__PURE__*/React__default.createElement(SubMenuItemsList, null, renderMenuItems(menuItem.items, linkOnClick, themeColorObject, layer + 1)));
45231
+ var SubMenu = function SubMenu(_ref6) {
45232
+ var menuItem = _ref6.menuItem,
45233
+ linkOnClick = _ref6.linkOnClick,
45234
+ themeColorObject = _ref6.themeColorObject,
45235
+ layer = _ref6.layer;
45236
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, getSubMenuHeading(layer, menuItem.name), /*#__PURE__*/React__default.createElement(SubMenuItemsList, null, renderMenuItems(menuItem.items, linkOnClick, themeColorObject, layer + 1)));
45338
45237
  };
45339
45238
 
45340
45239
  var Menu$1 = styled.ul.withConfig({
45341
45240
  displayName: "MobileMenu__Menu",
45342
- componentId: "sc-18t6zrc-6"
45343
- })(function (_ref8) {
45344
- var _ref9;
45241
+ componentId: "sc-18t6zrc-5"
45242
+ })(function (_ref7) {
45243
+ var _ref8;
45345
45244
 
45346
- var theme = _ref8.theme;
45347
- return _ref9 = {
45245
+ var theme = _ref7.theme;
45246
+ return _ref8 = {
45348
45247
  margin: "0",
45349
45248
  padding: theme.space.x1 + " 0",
45350
45249
  zIndex: theme.zIndices.content,
45351
45250
  width: "100%",
45352
45251
  color: theme.colors.white
45353
- }, _ref9["" + Heading3] = {
45252
+ }, _ref8["" + Heading3] = {
45354
45253
  padding: theme.space.x1 + " 0 " + theme.space.x1 + " " + theme.space.x3
45355
- }, _ref9;
45254
+ }, _ref8;
45356
45255
  });
45357
45256
  var Nav = styled.nav.withConfig({
45358
45257
  displayName: "MobileMenu__Nav",
45359
- componentId: "sc-18t6zrc-7"
45360
- })(function (_ref10) {
45361
- var backgroundColor = _ref10.backgroundColor;
45258
+ componentId: "sc-18t6zrc-6"
45259
+ })(function (_ref9) {
45260
+ var backgroundColor = _ref9.backgroundColor;
45362
45261
  return {
45363
45262
  backgroundColor: backgroundColor
45364
45263
  };
@@ -45396,7 +45295,7 @@ var BaseMobileMenu = function BaseMobileMenu(_a) {
45396
45295
 
45397
45296
  var MobileMenu = styled(BaseMobileMenu).withConfig({
45398
45297
  displayName: "MobileMenu",
45399
- componentId: "sc-18t6zrc-8"
45298
+ componentId: "sc-18t6zrc-7"
45400
45299
  })(display);
45401
45300
 
45402
45301
  var borderStyle = "1px solid #e4e7eb";
@@ -45461,7 +45360,7 @@ var NavBarBackground = styled(Flex).withConfig({
45461
45360
  return {
45462
45361
  background: backgroundColor,
45463
45362
  padding: "0 " + theme.space.x3,
45464
- boxShadow: theme.shadows.large,
45363
+ borderBottom: "1px solid " + theme.colors.lightGrey,
45465
45364
  alignItems: "center",
45466
45365
  height: NAVBAR_HEIGHT,
45467
45366
  zIndex: theme.zIndices.navBar,
@@ -52657,7 +52556,6 @@ var Sidebar = function Sidebar(_a) {
52657
52556
  display: "flex",
52658
52557
  flexDirection: "column",
52659
52558
  height: "calc(100% - " + NAVBAR_HEIGHT + ")",
52660
- boxShadow: "large",
52661
52559
  borderLeftWidth: "1px",
52662
52560
  borderLeftStyle: "solid",
52663
52561
  borderLeftColor: "lightGrey",
@@ -52814,4 +52712,4 @@ var SortingTable = function SortingTable(_a) {
52814
52712
  }, props));
52815
52713
  };
52816
52714
 
52817
- export { ALL_NDS_LOCALES, Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Box, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input$1 as Input, Link, List, ListItem, LoadingAnimation, Modal, NDSProvider, NavBar$1 as NavBar, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer$1 as SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SortingTable, StatusIndicator, Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToggleComponent as Toggle, Tooltip, TruncatedText, Theme as theme, useWindowDimensions };
52715
+ export { ALL_NDS_LOCALES, Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Box, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input$1 as Input, Link, List, ListItem, LoadingAnimation, Modal, NDSProvider, NavBar$1 as NavBar, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer$1 as SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SortingTable, StatusIndicator, Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToggleComponent as Toggle, Tooltip, TruncatedText, Theme as theme, useWindowDimensions };