@nulogy/components 6.8.0 → 7.0.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.
package/dist/main.js CHANGED
@@ -23257,7 +23257,7 @@
23257
23257
  };
23258
23258
  };
23259
23259
 
23260
- var ApplyMenuLinkStyles$2 = styled__default['default'].div.withConfig({
23260
+ var ApplyMenuLinkStyles$1 = styled__default['default'].div.withConfig({
23261
23261
  displayName: "DesktopMenu__ApplyMenuLinkStyles",
23262
23262
  componentId: "sc-1mpxh2o-0"
23263
23263
  })(function (_ref) {
@@ -23282,12 +23282,12 @@
23282
23282
  })
23283
23283
  };
23284
23284
  });
23285
- ApplyMenuLinkStyles$2.propTypes = {
23285
+ ApplyMenuLinkStyles$1.propTypes = {
23286
23286
  color: PropTypes__default['default'].string,
23287
23287
  hoverColor: PropTypes__default['default'].string,
23288
23288
  hoverBackground: PropTypes__default['default'].string
23289
23289
  };
23290
- ApplyMenuLinkStyles$2.defaultProps = {
23290
+ ApplyMenuLinkStyles$1.defaultProps = {
23291
23291
  color: Theme.colors.white,
23292
23292
  hoverColor: Theme.colors.lightBlue,
23293
23293
  hoverBackground: Theme.colors.black
@@ -23350,7 +23350,7 @@
23350
23350
  };
23351
23351
 
23352
23352
  var renderCustom$4 = function renderCustom(menuItem, themeColorObject) {
23353
- return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$2, Object.assign({}, themeColorObject, {
23353
+ return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$1, Object.assign({}, themeColorObject, {
23354
23354
  key: menuItem.name
23355
23355
  }), menuItem.render());
23356
23356
  };
@@ -23469,7 +23469,7 @@
23469
23469
  };
23470
23470
  };
23471
23471
 
23472
- var ApplyMenuLinkStyles$1 = styled__default['default'].li.withConfig({
23472
+ var ApplyMenuLinkStyles = styled__default['default'].li.withConfig({
23473
23473
  displayName: "MobileMenu__ApplyMenuLinkStyles",
23474
23474
  componentId: "vqy2lk-1"
23475
23475
  })(function (_ref2) {
@@ -23498,13 +23498,13 @@
23498
23498
  })
23499
23499
  };
23500
23500
  });
23501
- ApplyMenuLinkStyles$1.propTypes = {
23501
+ ApplyMenuLinkStyles.propTypes = {
23502
23502
  layer: PropTypes__default['default'].number,
23503
23503
  color: PropTypes__default['default'].string,
23504
23504
  hoverColor: PropTypes__default['default'].string,
23505
23505
  hoverBackground: PropTypes__default['default'].string
23506
23506
  };
23507
- ApplyMenuLinkStyles$1.defaultProps = {
23507
+ ApplyMenuLinkStyles.defaultProps = {
23508
23508
  layer: 0,
23509
23509
  color: Theme.colors.white,
23510
23510
  hoverColor: Theme.colors.lightBlue,
@@ -23577,7 +23577,7 @@
23577
23577
  };
23578
23578
 
23579
23579
  var renderCustom$3 = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
23580
- return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$1, Object.assign({
23580
+ return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles, Object.assign({
23581
23581
  key: menuItem.name
23582
23582
  }, themeColorObject, {
23583
23583
  layer: layer,
@@ -44874,43 +44874,14 @@
44874
44874
  };
44875
44875
  };
44876
44876
 
44877
- var ApplyMenuLinkStyles = styled__default['default'].div.withConfig({
44878
- displayName: "DesktopMenu__ApplyMenuLinkStyles",
44877
+ var MenuLink = styled__default['default'].a.withConfig({
44878
+ displayName: "DesktopMenu__MenuLink",
44879
44879
  componentId: "sc-8mrjkc-0"
44880
44880
  })(function (_ref) {
44881
- var _ref$color = _ref.color,
44882
- color = _ref$color === void 0 ? "white" : _ref$color,
44883
- _ref$hoverColor = _ref.hoverColor,
44884
- hoverColor = _ref$hoverColor === void 0 ? "lightBlue" : _ref$hoverColor,
44885
- _ref$hoverBackground = _ref.hoverBackground,
44886
- hoverBackground = _ref$hoverBackground === void 0 ? "black" : _ref$hoverBackground,
44881
+ var color = _ref.color,
44882
+ hoverColor = _ref.hoverColor,
44883
+ hoverBackground = _ref.hoverBackground,
44887
44884
  theme = _ref.theme;
44888
- return {
44889
- "button, a": Object.assign(Object.assign({}, getSharedStyles$1(color, theme)), {
44890
- transition: ".2s",
44891
- "&:hover, &:focus": {
44892
- outline: "none",
44893
- color: theme.colors[hoverColor] || hoverColor,
44894
- backgroundColor: theme.colors[hoverBackground] || hoverBackground,
44895
- cursor: "pointer"
44896
- },
44897
- "&:disabled": {
44898
- opacity: ".5"
44899
- },
44900
- "&:focus": {
44901
- boxShadow: theme.shadows.focus
44902
- }
44903
- })
44904
- };
44905
- });
44906
- var MenuLink = styled__default['default'].a.withConfig({
44907
- displayName: "DesktopMenu__MenuLink",
44908
- componentId: "sc-8mrjkc-1"
44909
- })(function (_ref2) {
44910
- var color = _ref2.color,
44911
- hoverColor = _ref2.hoverColor,
44912
- hoverBackground = _ref2.hoverBackground,
44913
- theme = _ref2.theme;
44914
44885
  return Object.assign(Object.assign({}, getSharedStyles$1(color, theme)), {
44915
44886
  fontWeight: theme.fontWeights.medium,
44916
44887
  transition: ".2s",
@@ -44930,17 +44901,17 @@
44930
44901
  });
44931
44902
  var MenuText = styled__default['default'].div.withConfig({
44932
44903
  displayName: "DesktopMenu__MenuText",
44933
- componentId: "sc-8mrjkc-2"
44934
- })(function (_ref3) {
44935
- var textColor = _ref3.textColor,
44936
- theme = _ref3.theme;
44904
+ componentId: "sc-8mrjkc-1"
44905
+ })(function (_ref2) {
44906
+ var textColor = _ref2.textColor,
44907
+ theme = _ref2.theme;
44937
44908
  return Object.assign(Object.assign({}, getSharedStyles$1(textColor, theme)), {
44938
44909
  fontWeight: theme.fontWeights.medium
44939
44910
  });
44940
44911
  });
44941
44912
  var Nav$1 = styled__default['default'].nav.withConfig({
44942
44913
  displayName: "DesktopMenu__Nav",
44943
- componentId: "sc-8mrjkc-3"
44914
+ componentId: "sc-8mrjkc-2"
44944
44915
  })({
44945
44916
  display: "flex",
44946
44917
  alignItems: "center"
@@ -44970,12 +44941,12 @@
44970
44941
  }, themeColorObject), menuItem.name));
44971
44942
  };
44972
44943
 
44973
- var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
44944
+ var renderCustom$1 = function renderCustom(menuItem) {
44974
44945
  var _a;
44975
44946
 
44976
- return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles, Object.assign({}, themeColorObject, {
44947
+ return /*#__PURE__*/React__default['default'].createElement("div", {
44977
44948
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44978
- }), menuItem.render());
44949
+ }, menuItem.render());
44979
44950
  };
44980
44951
 
44981
44952
  var renderText$1 = function renderText(menuItem, themeColorObject) {
@@ -45014,7 +44985,7 @@
45014
44985
 
45015
44986
  var DesktopMenu = styled__default['default'](BaseDesktopMenu).withConfig({
45016
44987
  displayName: "DesktopMenu",
45017
- componentId: "sc-8mrjkc-4"
44988
+ componentId: "sc-8mrjkc-3"
45018
44989
  })({
45019
44990
  "> div": {
45020
44991
  ":not(:last-of-type)": {
@@ -23231,7 +23231,7 @@ var getSharedStyles$3 = function getSharedStyles(color) {
23231
23231
  };
23232
23232
  };
23233
23233
 
23234
- var ApplyMenuLinkStyles$2 = styled.div.withConfig({
23234
+ var ApplyMenuLinkStyles$1 = styled.div.withConfig({
23235
23235
  displayName: "DesktopMenu__ApplyMenuLinkStyles",
23236
23236
  componentId: "sc-1mpxh2o-0"
23237
23237
  })(function (_ref) {
@@ -23256,12 +23256,12 @@ var ApplyMenuLinkStyles$2 = styled.div.withConfig({
23256
23256
  })
23257
23257
  };
23258
23258
  });
23259
- ApplyMenuLinkStyles$2.propTypes = {
23259
+ ApplyMenuLinkStyles$1.propTypes = {
23260
23260
  color: PropTypes.string,
23261
23261
  hoverColor: PropTypes.string,
23262
23262
  hoverBackground: PropTypes.string
23263
23263
  };
23264
- ApplyMenuLinkStyles$2.defaultProps = {
23264
+ ApplyMenuLinkStyles$1.defaultProps = {
23265
23265
  color: Theme.colors.white,
23266
23266
  hoverColor: Theme.colors.lightBlue,
23267
23267
  hoverBackground: Theme.colors.black
@@ -23324,7 +23324,7 @@ var renderMenuLink$3 = function renderMenuLink(menuItem, themeColorObject) {
23324
23324
  };
23325
23325
 
23326
23326
  var renderCustom$4 = function renderCustom(menuItem, themeColorObject) {
23327
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$2, Object.assign({}, themeColorObject, {
23327
+ return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$1, Object.assign({}, themeColorObject, {
23328
23328
  key: menuItem.name
23329
23329
  }), menuItem.render());
23330
23330
  };
@@ -23443,7 +23443,7 @@ var getSharedStyles$2 = function getSharedStyles(_ref) {
23443
23443
  };
23444
23444
  };
23445
23445
 
23446
- var ApplyMenuLinkStyles$1 = styled.li.withConfig({
23446
+ var ApplyMenuLinkStyles = styled.li.withConfig({
23447
23447
  displayName: "MobileMenu__ApplyMenuLinkStyles",
23448
23448
  componentId: "vqy2lk-1"
23449
23449
  })(function (_ref2) {
@@ -23472,13 +23472,13 @@ var ApplyMenuLinkStyles$1 = styled.li.withConfig({
23472
23472
  })
23473
23473
  };
23474
23474
  });
23475
- ApplyMenuLinkStyles$1.propTypes = {
23475
+ ApplyMenuLinkStyles.propTypes = {
23476
23476
  layer: PropTypes.number,
23477
23477
  color: PropTypes.string,
23478
23478
  hoverColor: PropTypes.string,
23479
23479
  hoverBackground: PropTypes.string
23480
23480
  };
23481
- ApplyMenuLinkStyles$1.defaultProps = {
23481
+ ApplyMenuLinkStyles.defaultProps = {
23482
23482
  layer: 0,
23483
23483
  color: Theme.colors.white,
23484
23484
  hoverColor: Theme.colors.lightBlue,
@@ -23551,7 +23551,7 @@ var renderMenuLink$2 = function renderMenuLink(menuItem, linkOnClick, themeColor
23551
23551
  };
23552
23552
 
23553
23553
  var renderCustom$3 = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
23554
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$1, Object.assign({
23554
+ return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles, Object.assign({
23555
23555
  key: menuItem.name
23556
23556
  }, themeColorObject, {
23557
23557
  layer: layer,
@@ -44848,43 +44848,14 @@ var getSharedStyles$1 = function getSharedStyles(color, theme) {
44848
44848
  };
44849
44849
  };
44850
44850
 
44851
- var ApplyMenuLinkStyles = styled.div.withConfig({
44852
- displayName: "DesktopMenu__ApplyMenuLinkStyles",
44851
+ var MenuLink = styled.a.withConfig({
44852
+ displayName: "DesktopMenu__MenuLink",
44853
44853
  componentId: "sc-8mrjkc-0"
44854
44854
  })(function (_ref) {
44855
- var _ref$color = _ref.color,
44856
- color = _ref$color === void 0 ? "white" : _ref$color,
44857
- _ref$hoverColor = _ref.hoverColor,
44858
- hoverColor = _ref$hoverColor === void 0 ? "lightBlue" : _ref$hoverColor,
44859
- _ref$hoverBackground = _ref.hoverBackground,
44860
- hoverBackground = _ref$hoverBackground === void 0 ? "black" : _ref$hoverBackground,
44855
+ var color = _ref.color,
44856
+ hoverColor = _ref.hoverColor,
44857
+ hoverBackground = _ref.hoverBackground,
44861
44858
  theme = _ref.theme;
44862
- return {
44863
- "button, a": Object.assign(Object.assign({}, getSharedStyles$1(color, theme)), {
44864
- transition: ".2s",
44865
- "&:hover, &:focus": {
44866
- outline: "none",
44867
- color: theme.colors[hoverColor] || hoverColor,
44868
- backgroundColor: theme.colors[hoverBackground] || hoverBackground,
44869
- cursor: "pointer"
44870
- },
44871
- "&:disabled": {
44872
- opacity: ".5"
44873
- },
44874
- "&:focus": {
44875
- boxShadow: theme.shadows.focus
44876
- }
44877
- })
44878
- };
44879
- });
44880
- var MenuLink = styled.a.withConfig({
44881
- displayName: "DesktopMenu__MenuLink",
44882
- componentId: "sc-8mrjkc-1"
44883
- })(function (_ref2) {
44884
- var color = _ref2.color,
44885
- hoverColor = _ref2.hoverColor,
44886
- hoverBackground = _ref2.hoverBackground,
44887
- theme = _ref2.theme;
44888
44859
  return Object.assign(Object.assign({}, getSharedStyles$1(color, theme)), {
44889
44860
  fontWeight: theme.fontWeights.medium,
44890
44861
  transition: ".2s",
@@ -44904,17 +44875,17 @@ var MenuLink = styled.a.withConfig({
44904
44875
  });
44905
44876
  var MenuText = styled.div.withConfig({
44906
44877
  displayName: "DesktopMenu__MenuText",
44907
- componentId: "sc-8mrjkc-2"
44908
- })(function (_ref3) {
44909
- var textColor = _ref3.textColor,
44910
- theme = _ref3.theme;
44878
+ componentId: "sc-8mrjkc-1"
44879
+ })(function (_ref2) {
44880
+ var textColor = _ref2.textColor,
44881
+ theme = _ref2.theme;
44911
44882
  return Object.assign(Object.assign({}, getSharedStyles$1(textColor, theme)), {
44912
44883
  fontWeight: theme.fontWeights.medium
44913
44884
  });
44914
44885
  });
44915
44886
  var Nav$1 = styled.nav.withConfig({
44916
44887
  displayName: "DesktopMenu__Nav",
44917
- componentId: "sc-8mrjkc-3"
44888
+ componentId: "sc-8mrjkc-2"
44918
44889
  })({
44919
44890
  display: "flex",
44920
44891
  alignItems: "center"
@@ -44944,12 +44915,12 @@ var renderMenuLink$1 = function renderMenuLink(menuItem, themeColorObject) {
44944
44915
  }, themeColorObject), menuItem.name));
44945
44916
  };
44946
44917
 
44947
- var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
44918
+ var renderCustom$1 = function renderCustom(menuItem) {
44948
44919
  var _a;
44949
44920
 
44950
- return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles, Object.assign({}, themeColorObject, {
44921
+ return /*#__PURE__*/React__default.createElement("div", {
44951
44922
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44952
- }), menuItem.render());
44923
+ }, menuItem.render());
44953
44924
  };
44954
44925
 
44955
44926
  var renderText$1 = function renderText(menuItem, themeColorObject) {
@@ -44988,7 +44959,7 @@ var BaseDesktopMenu = function BaseDesktopMenu(_a) {
44988
44959
 
44989
44960
  var DesktopMenu = styled(BaseDesktopMenu).withConfig({
44990
44961
  displayName: "DesktopMenu",
44991
- componentId: "sc-8mrjkc-4"
44962
+ componentId: "sc-8mrjkc-3"
44992
44963
  })({
44993
44964
  "> div": {
44994
44965
  ":not(:last-of-type)": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "6.8.0",
3
+ "version": "7.0.0",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {