@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.
- package/dist/main.js +215 -316
- package/dist/main.module.js +211 -313
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +23 -0
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +3 -6
- package/dist/src/DropdownMenu/DropdownText.d.ts +4 -0
- package/dist/src/DropdownMenu/index.d.ts +1 -0
- package/dist/src/Table/Table.story.d.ts +1 -6
- package/dist/src/Type/Text.d.ts +4 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('styled-components'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/defineProperty'), require('object-assign'), require('@nulogy/icons'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inheritsLoose'), require('prop-types'), require('react-fast-compare'), require('warning'), require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/objectWithoutPropertiesLoose'), require('deep-equal'), require('create-react-context'), require('react-dom'), require('react-windowed-select'), require('exenv'), require('smoothscroll-polyfill'), require('@babel/runtime/helpers/toConsumableArray'), require('react-input-autosize'), require('@babel/runtime/helpers/taggedTemplateLiteral')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', 'styled-components', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/defineProperty', 'object-assign', '@nulogy/icons', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inheritsLoose', 'prop-types', 'react-fast-compare', 'warning', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/objectWithoutPropertiesLoose', 'deep-equal', 'create-react-context', 'react-dom', 'react-windowed-select', 'exenv', 'smoothscroll-polyfill', '@babel/runtime/helpers/toConsumableArray', 'react-input-autosize', '@babel/runtime/helpers/taggedTemplateLiteral'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.NDSComponents = {}, global.React, global.styled, global.typeof, global.classCallCheck, global.createClass, global.defineProperty, global.assign, global.icons, global.extends, global.assertThisInitialized, global.inheritsLoose, global.PropTypes, global.isEqual, global.warning, global.slicedToArray, global.objectWithoutPropertiesLoose, global.deepEqual, global.createReactContext, global.reactDom, global.components, global.exenv, global.smoothscroll,
|
|
5
|
-
}(this, (function (exports, React, styled, _typeof$3, _classCallCheck$3, _createClass$3, _defineProperty$2, assign$1, icons, _extends$4, _assertThisInitialized$4, _inheritsLoose$2, PropTypes, isEqual$2, warning$1, _slicedToArray$1, _objectWithoutPropertiesLoose$2, deepEqual, createContext, reactDom, WindowedSelect, exenv, smoothscroll, toConsumableArray, AutosizeInput
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('styled-components'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/defineProperty'), require('object-assign'), require('@nulogy/icons'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inheritsLoose'), require('prop-types'), require('react-fast-compare'), require('warning'), require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/objectWithoutPropertiesLoose'), require('deep-equal'), require('create-react-context'), require('react-dom'), require('react-windowed-select'), require('exenv'), require('smoothscroll-polyfill'), require('classnames'), require('@babel/runtime/helpers/toConsumableArray'), require('react-input-autosize'), require('@babel/runtime/helpers/taggedTemplateLiteral')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'styled-components', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/defineProperty', 'object-assign', '@nulogy/icons', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inheritsLoose', 'prop-types', 'react-fast-compare', 'warning', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/objectWithoutPropertiesLoose', 'deep-equal', 'create-react-context', 'react-dom', 'react-windowed-select', 'exenv', 'smoothscroll-polyfill', 'classnames', '@babel/runtime/helpers/toConsumableArray', 'react-input-autosize', '@babel/runtime/helpers/taggedTemplateLiteral'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.NDSComponents = {}, global.React, global.styled, global.typeof, global.classCallCheck, global.createClass, global.defineProperty, global.assign, global.icons, global.extends, global.assertThisInitialized, global.inheritsLoose, global.PropTypes, global.isEqual, global.warning, global.slicedToArray, global.objectWithoutPropertiesLoose, global.deepEqual, global.createReactContext, global.reactDom, global.components, global.exenv, global.smoothscroll, global.t, null, global.AutosizeInput));
|
|
5
|
+
}(this, (function (exports, React, styled, _typeof$3, _classCallCheck$3, _createClass$3, _defineProperty$2, assign$1, icons, _extends$4, _assertThisInitialized$4, _inheritsLoose$2, PropTypes, isEqual$2, warning$1, _slicedToArray$1, _objectWithoutPropertiesLoose$2, deepEqual, createContext, reactDom, WindowedSelect, exenv, smoothscroll, t, toConsumableArray, AutosizeInput) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
var WindowedSelect__default = /*#__PURE__*/_interopDefaultLegacy(WindowedSelect);
|
|
50
50
|
var exenv__default = /*#__PURE__*/_interopDefaultLegacy(exenv);
|
|
51
51
|
var smoothscroll__default = /*#__PURE__*/_interopDefaultLegacy(smoothscroll);
|
|
52
|
-
var AutosizeInput__default = /*#__PURE__*/_interopDefaultLegacy(AutosizeInput);
|
|
53
52
|
var t__default = /*#__PURE__*/_interopDefaultLegacy(t);
|
|
53
|
+
var AutosizeInput__default = /*#__PURE__*/_interopDefaultLegacy(AutosizeInput);
|
|
54
54
|
|
|
55
55
|
var defaultOptions = {
|
|
56
56
|
bindI18n: 'languageChanged',
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
277
|
* Do not edit directly
|
|
278
|
-
* Generated on
|
|
278
|
+
* Generated on Mon, 06 Jun 2022 21:26:05 GMT
|
|
279
279
|
*/
|
|
280
280
|
|
|
281
281
|
const color_base_black = "#011e38";
|
|
@@ -315,9 +315,9 @@
|
|
|
315
315
|
const radius_border_small = "2px";
|
|
316
316
|
const radius_border_medium = "4px";
|
|
317
317
|
const radius_border_circle = "50%";
|
|
318
|
-
const shadow_box_small = "0px
|
|
319
|
-
const shadow_box_medium = "0px
|
|
320
|
-
const shadow_box_large = "0px
|
|
318
|
+
const shadow_box_small = "0px 1px 2px 0px rgba(1, 30, 56, 0.25)";
|
|
319
|
+
const shadow_box_medium = "0px 3px 8px 0px rgba(1, 30, 56, 0.18)";
|
|
320
|
+
const shadow_box_large = "0px 6px 12px 2px rgba(1, 30, 56, 0.15)";
|
|
321
321
|
const shadow_focus = "0px 0px 5px 0px rgba(33, 107, 235, .9)";
|
|
322
322
|
const shadow_error = "0px 0px 5px 0px rgba(204, 20, 57, .9)";
|
|
323
323
|
const size_base_none = "0px";
|
|
@@ -11919,23 +11919,23 @@
|
|
|
11919
11919
|
}).withConfig({
|
|
11920
11920
|
displayName: "Text",
|
|
11921
11921
|
componentId: "sc-15glbbx-0"
|
|
11922
|
-
})(
|
|
11922
|
+
})(function (_ref) {
|
|
11923
11923
|
var disabled = _ref.disabled,
|
|
11924
|
-
textTransform = _ref.textTransform
|
|
11924
|
+
textTransform = _ref.textTransform,
|
|
11925
|
+
theme = _ref.theme;
|
|
11925
11926
|
return {
|
|
11926
11927
|
textTransform: textTransform,
|
|
11928
|
+
color: "currentColor",
|
|
11929
|
+
marginTop: 0,
|
|
11930
|
+
marginBottom: 0,
|
|
11931
|
+
fontSize: theme.fontSizes.medium,
|
|
11932
|
+
lineHeight: theme.lineHeights.base,
|
|
11927
11933
|
opacity: disabled ? "0.7" : undefined
|
|
11928
11934
|
};
|
|
11929
|
-
});
|
|
11935
|
+
}, compose(space, typography, color, layout, overflow, textOverflow, cursor$1));
|
|
11930
11936
|
Text.defaultProps = {
|
|
11931
11937
|
inline: false,
|
|
11932
|
-
disabled: false
|
|
11933
|
-
mt: 0,
|
|
11934
|
-
mb: 0,
|
|
11935
|
-
fontSize: "medium",
|
|
11936
|
-
lineHeight: "base",
|
|
11937
|
-
textTransform: undefined,
|
|
11938
|
-
color: "currentColor"
|
|
11938
|
+
disabled: false
|
|
11939
11939
|
};
|
|
11940
11940
|
|
|
11941
11941
|
var Heading1 = Text.withComponent("h1");
|
|
@@ -16946,14 +16946,14 @@
|
|
|
16946
16946
|
_ref$showArrow = _ref.showArrow,
|
|
16947
16947
|
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
16948
16948
|
_ref$backgroundColor = _ref.backgroundColor,
|
|
16949
|
-
backgroundColor = _ref$backgroundColor === void 0 ? "
|
|
16949
|
+
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
16950
16950
|
theme = _ref.theme;
|
|
16951
16951
|
return Object.assign({
|
|
16952
16952
|
borderRadius: theme.radii.medium,
|
|
16953
16953
|
backgroundColor: theme.colors[backgroundColor],
|
|
16954
16954
|
borderTop: "1px solid " + theme.colors[backgroundColor],
|
|
16955
16955
|
borderBottom: "1px solid " + theme.colors[backgroundColor],
|
|
16956
|
-
boxShadow: theme.shadows.
|
|
16956
|
+
boxShadow: theme.shadows.medium,
|
|
16957
16957
|
padding: "7px 0",
|
|
16958
16958
|
zIndex: "100"
|
|
16959
16959
|
}, getMenuMargin(dataPlacement, showArrow));
|
|
@@ -20190,7 +20190,7 @@
|
|
|
20190
20190
|
disabled = _a.disabled,
|
|
20191
20191
|
defaultOpen = _a.defaultOpen,
|
|
20192
20192
|
_a$backgroundColor = _a.backgroundColor,
|
|
20193
|
-
backgroundColor = _a$backgroundColor === void 0 ? "
|
|
20193
|
+
backgroundColor = _a$backgroundColor === void 0 ? "white" : _a$backgroundColor,
|
|
20194
20194
|
_a$placement = _a.placement,
|
|
20195
20195
|
placement = _a$placement === void 0 ? "bottom-start" : _a$placement,
|
|
20196
20196
|
className = _a.className,
|
|
@@ -20242,15 +20242,14 @@
|
|
|
20242
20242
|
var DropdownButton = styled__default['default'].button.withConfig({
|
|
20243
20243
|
displayName: "DropdownButton",
|
|
20244
20244
|
componentId: "sc-16gk4iv-0"
|
|
20245
|
-
})(
|
|
20246
|
-
var
|
|
20247
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
20245
|
+
})(function (_ref) {
|
|
20246
|
+
var disabled = _ref.disabled,
|
|
20248
20247
|
theme = _ref.theme,
|
|
20249
|
-
|
|
20250
|
-
|
|
20251
|
-
_ref$bgHoverColor = _ref.bgHoverColor,
|
|
20252
|
-
bgHoverColor = _ref$bgHoverColor === void 0 ? "lightGrey" : _ref$bgHoverColor;
|
|
20248
|
+
hoverColor = _ref.hoverColor,
|
|
20249
|
+
bgHoverColor = _ref.bgHoverColor;
|
|
20253
20250
|
return {
|
|
20251
|
+
color: theme.colors.darkGrey,
|
|
20252
|
+
fontWeight: theme.fontWeights.medium,
|
|
20254
20253
|
display: "block",
|
|
20255
20254
|
width: "100%",
|
|
20256
20255
|
cursor: disabled ? "default" : "pointer",
|
|
@@ -20276,12 +20275,11 @@
|
|
|
20276
20275
|
opacity: ".5"
|
|
20277
20276
|
}
|
|
20278
20277
|
};
|
|
20279
|
-
});
|
|
20278
|
+
}, color);
|
|
20280
20279
|
DropdownButton.defaultProps = {
|
|
20281
|
-
color: "darkBlue",
|
|
20282
20280
|
disabled: false,
|
|
20283
20281
|
hoverColor: "darkBlue",
|
|
20284
|
-
bgHoverColor: "
|
|
20282
|
+
bgHoverColor: "lightBlue"
|
|
20285
20283
|
};
|
|
20286
20284
|
|
|
20287
20285
|
var DropdownLink = styled__default['default'].a.withConfig({
|
|
@@ -20290,13 +20288,12 @@
|
|
|
20290
20288
|
}
|
|
20291
20289
|
})(function (_ref) {
|
|
20292
20290
|
var theme = _ref.theme,
|
|
20293
|
-
|
|
20294
|
-
bgHoverColor = _ref
|
|
20295
|
-
|
|
20296
|
-
hoverColor = _ref$hoverColor === void 0 ? "darkBlue" : _ref$hoverColor,
|
|
20297
|
-
_ref$color = _ref.color,
|
|
20298
|
-
color = _ref$color === void 0 ? "darkBlue" : _ref$color;
|
|
20291
|
+
color = _ref.color,
|
|
20292
|
+
bgHoverColor = _ref.bgHoverColor,
|
|
20293
|
+
hoverColor = _ref.hoverColor;
|
|
20299
20294
|
return {
|
|
20295
|
+
color: theme.colors[color],
|
|
20296
|
+
fontWeight: theme.fontWeights.medium,
|
|
20300
20297
|
display: "block",
|
|
20301
20298
|
textDecoration: "none",
|
|
20302
20299
|
borderColor: "transparent",
|
|
@@ -20304,16 +20301,15 @@
|
|
|
20304
20301
|
lineHeight: theme.lineHeights.base,
|
|
20305
20302
|
fontSize: theme.fontSizes.medium,
|
|
20306
20303
|
transition: ".2s",
|
|
20307
|
-
color: theme.colors[color],
|
|
20308
20304
|
padding: theme.space.x1 + " " + theme.space.x2 + " " + theme.space.x1 + " 12px",
|
|
20309
20305
|
borderLeft: theme.space.half + " solid transparent",
|
|
20306
|
+
"&:visited": {
|
|
20307
|
+
color: theme.colors[color]
|
|
20308
|
+
},
|
|
20310
20309
|
"&:hover": {
|
|
20311
20310
|
color: theme.colors[hoverColor],
|
|
20312
20311
|
backgroundColor: theme.colors[bgHoverColor]
|
|
20313
20312
|
},
|
|
20314
|
-
"&:visited": {
|
|
20315
|
-
color: theme.colors[color]
|
|
20316
|
-
},
|
|
20317
20313
|
"&:focus": {
|
|
20318
20314
|
outline: "none",
|
|
20319
20315
|
color: theme.colors[hoverColor],
|
|
@@ -20325,21 +20321,25 @@
|
|
|
20325
20321
|
}
|
|
20326
20322
|
};
|
|
20327
20323
|
});
|
|
20324
|
+
DropdownLink.defaultProps = {
|
|
20325
|
+
disabled: false,
|
|
20326
|
+
color: "darkGrey",
|
|
20327
|
+
hoverColor: "darkBlue",
|
|
20328
|
+
bgHoverColor: "lightBlue"
|
|
20329
|
+
};
|
|
20328
20330
|
|
|
20329
20331
|
var DropdownItem = styled__default['default'].div.withConfig({
|
|
20330
20332
|
displayName: "DropdownItem",
|
|
20331
20333
|
componentId: "xev49s-0"
|
|
20332
20334
|
})(function (_ref) {
|
|
20333
20335
|
var theme = _ref.theme,
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
|
|
20337
|
-
hoverColor = _ref$hoverColor === void 0 ? "darkBlue" : _ref$hoverColor,
|
|
20338
|
-
_ref$bgHoverColor = _ref.bgHoverColor,
|
|
20339
|
-
bgHoverColor = _ref$bgHoverColor === void 0 ? "lightGrey" : _ref$bgHoverColor;
|
|
20336
|
+
color = _ref.color,
|
|
20337
|
+
hoverColor = _ref.hoverColor,
|
|
20338
|
+
bgHoverColor = _ref.bgHoverColor;
|
|
20340
20339
|
return {
|
|
20341
20340
|
"*": {
|
|
20342
20341
|
color: theme.colors[color],
|
|
20342
|
+
fontWeight: theme.fontWeights.medium,
|
|
20343
20343
|
display: "block",
|
|
20344
20344
|
width: "100%",
|
|
20345
20345
|
cursor: "pointer",
|
|
@@ -20367,6 +20367,29 @@
|
|
|
20367
20367
|
}
|
|
20368
20368
|
};
|
|
20369
20369
|
});
|
|
20370
|
+
DropdownItem.defaultProps = {
|
|
20371
|
+
color: "darkGrey",
|
|
20372
|
+
hoverColor: "darkBlue",
|
|
20373
|
+
bgHoverColor: "lightBlue"
|
|
20374
|
+
};
|
|
20375
|
+
|
|
20376
|
+
var DropdownText = styled__default['default'](Text).withConfig({
|
|
20377
|
+
displayName: "DropdownText",
|
|
20378
|
+
componentId: "sc-1t7br0a-0"
|
|
20379
|
+
})(function (_ref) {
|
|
20380
|
+
var theme = _ref.theme;
|
|
20381
|
+
return {
|
|
20382
|
+
color: theme.colors.darkGrey,
|
|
20383
|
+
fontWeight: theme.fontWeights.medium,
|
|
20384
|
+
display: "block",
|
|
20385
|
+
width: "100%",
|
|
20386
|
+
border: "none",
|
|
20387
|
+
textAlign: "left",
|
|
20388
|
+
backgroundColor: "transparent",
|
|
20389
|
+
transition: ".2s",
|
|
20390
|
+
padding: theme.space.x1 + " " + theme.space.x2
|
|
20391
|
+
};
|
|
20392
|
+
}, color);
|
|
20370
20393
|
|
|
20371
20394
|
var HelpText = styled__default['default'](Text).withConfig({
|
|
20372
20395
|
displayName: "HelpText",
|
|
@@ -22840,12 +22863,12 @@
|
|
|
22840
22863
|
hideDelay: "100"
|
|
22841
22864
|
};
|
|
22842
22865
|
|
|
22843
|
-
var SubMenuLink
|
|
22866
|
+
var SubMenuLink = styled__default['default'](DropdownLink).withConfig({
|
|
22844
22867
|
displayName: "renderSubMenuItems__SubMenuLink",
|
|
22845
22868
|
componentId: "sc-10nvflk-0"
|
|
22846
22869
|
})(fontSize, lineHeight, space);
|
|
22847
22870
|
|
|
22848
|
-
var getSharedStyles$
|
|
22871
|
+
var getSharedStyles$4 = function getSharedStyles() {
|
|
22849
22872
|
return {
|
|
22850
22873
|
display: "block",
|
|
22851
22874
|
whiteSpace: "nowrap",
|
|
@@ -22858,13 +22881,13 @@
|
|
|
22858
22881
|
};
|
|
22859
22882
|
};
|
|
22860
22883
|
|
|
22861
|
-
var ApplySubMenuLinkStyles
|
|
22884
|
+
var ApplySubMenuLinkStyles = styled__default['default'].li.withConfig({
|
|
22862
22885
|
displayName: "renderSubMenuItems__ApplySubMenuLinkStyles",
|
|
22863
22886
|
componentId: "sc-10nvflk-1"
|
|
22864
22887
|
})({
|
|
22865
22888
|
color: Theme.colors.darkBlue,
|
|
22866
22889
|
verticalAlign: "middle",
|
|
22867
|
-
"> *": Object.assign(Object.assign({}, getSharedStyles$
|
|
22890
|
+
"> *": Object.assign(Object.assign({}, getSharedStyles$4()), {
|
|
22868
22891
|
transition: ".2s",
|
|
22869
22892
|
textDecoration: "none",
|
|
22870
22893
|
"&:hover, &:focus": {
|
|
@@ -22879,12 +22902,12 @@
|
|
|
22879
22902
|
}
|
|
22880
22903
|
})
|
|
22881
22904
|
});
|
|
22882
|
-
var SubMenuText
|
|
22905
|
+
var SubMenuText = styled__default['default'].li.withConfig({
|
|
22883
22906
|
displayName: "renderSubMenuItems__SubMenuText",
|
|
22884
22907
|
componentId: "sc-10nvflk-2"
|
|
22885
22908
|
})(Object.assign({
|
|
22886
22909
|
color: Theme.colors.darkGrey
|
|
22887
|
-
}, getSharedStyles$
|
|
22910
|
+
}, getSharedStyles$4()));
|
|
22888
22911
|
|
|
22889
22912
|
var renderSubMenuTrigger$1 = function renderSubMenuTrigger(subMenuItem, onItemClick, SubMenuTrigger) {
|
|
22890
22913
|
var _a;
|
|
@@ -22909,7 +22932,7 @@
|
|
|
22909
22932
|
whiteSpace: "nowrap"
|
|
22910
22933
|
},
|
|
22911
22934
|
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
22912
|
-
}, /*#__PURE__*/React__default['default'].createElement(SubMenuLink
|
|
22935
|
+
}, /*#__PURE__*/React__default['default'].createElement(SubMenuLink, {
|
|
22913
22936
|
fontSize: "small",
|
|
22914
22937
|
lineHeight: "smallTextBase",
|
|
22915
22938
|
py: "half",
|
|
@@ -22923,7 +22946,7 @@
|
|
|
22923
22946
|
var renderCustom$5 = function renderCustom(subMenuItem, onItemClick) {
|
|
22924
22947
|
var _a;
|
|
22925
22948
|
|
|
22926
|
-
return /*#__PURE__*/React__default['default'].createElement(ApplySubMenuLinkStyles
|
|
22949
|
+
return /*#__PURE__*/React__default['default'].createElement(ApplySubMenuLinkStyles, {
|
|
22927
22950
|
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name,
|
|
22928
22951
|
onClick: onItemClick
|
|
22929
22952
|
}, subMenuItem.render());
|
|
@@ -22932,7 +22955,7 @@
|
|
|
22932
22955
|
var renderText$5 = function renderText(subMenuItem) {
|
|
22933
22956
|
var _a;
|
|
22934
22957
|
|
|
22935
|
-
return /*#__PURE__*/React__default['default'].createElement(SubMenuText
|
|
22958
|
+
return /*#__PURE__*/React__default['default'].createElement(SubMenuText, {
|
|
22936
22959
|
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
22937
22960
|
}, subMenuItem.name);
|
|
22938
22961
|
};
|
|
@@ -23219,7 +23242,7 @@
|
|
|
23219
23242
|
hoverBackground: Theme.colors.black
|
|
23220
23243
|
};
|
|
23221
23244
|
|
|
23222
|
-
var getSharedStyles$
|
|
23245
|
+
var getSharedStyles$3 = function getSharedStyles(color) {
|
|
23223
23246
|
return {
|
|
23224
23247
|
display: "block",
|
|
23225
23248
|
color: themeGet("colors." + color, color)(color),
|
|
@@ -23234,7 +23257,7 @@
|
|
|
23234
23257
|
};
|
|
23235
23258
|
};
|
|
23236
23259
|
|
|
23237
|
-
var ApplyMenuLinkStyles$
|
|
23260
|
+
var ApplyMenuLinkStyles$2 = styled__default['default'].div.withConfig({
|
|
23238
23261
|
displayName: "DesktopMenu__ApplyMenuLinkStyles",
|
|
23239
23262
|
componentId: "sc-1mpxh2o-0"
|
|
23240
23263
|
})(function (_ref) {
|
|
@@ -23242,7 +23265,7 @@
|
|
|
23242
23265
|
hoverColor = _ref.hoverColor,
|
|
23243
23266
|
hoverBackground = _ref.hoverBackground;
|
|
23244
23267
|
return {
|
|
23245
|
-
"*": Object.assign(Object.assign({}, getSharedStyles$
|
|
23268
|
+
"*": Object.assign(Object.assign({}, getSharedStyles$3(color)), {
|
|
23246
23269
|
transition: ".2s",
|
|
23247
23270
|
"&:hover, &:focus": {
|
|
23248
23271
|
outline: "none",
|
|
@@ -23259,24 +23282,24 @@
|
|
|
23259
23282
|
})
|
|
23260
23283
|
};
|
|
23261
23284
|
});
|
|
23262
|
-
ApplyMenuLinkStyles$
|
|
23285
|
+
ApplyMenuLinkStyles$2.propTypes = {
|
|
23263
23286
|
color: PropTypes__default['default'].string,
|
|
23264
23287
|
hoverColor: PropTypes__default['default'].string,
|
|
23265
23288
|
hoverBackground: PropTypes__default['default'].string
|
|
23266
23289
|
};
|
|
23267
|
-
ApplyMenuLinkStyles$
|
|
23290
|
+
ApplyMenuLinkStyles$2.defaultProps = {
|
|
23268
23291
|
color: Theme.colors.white,
|
|
23269
23292
|
hoverColor: Theme.colors.lightBlue,
|
|
23270
23293
|
hoverBackground: Theme.colors.black
|
|
23271
23294
|
};
|
|
23272
|
-
var MenuLink$
|
|
23295
|
+
var MenuLink$2 = styled__default['default'].a.withConfig({
|
|
23273
23296
|
displayName: "DesktopMenu__MenuLink",
|
|
23274
23297
|
componentId: "sc-1mpxh2o-1"
|
|
23275
23298
|
})(function (_ref2) {
|
|
23276
23299
|
var color = _ref2.color,
|
|
23277
23300
|
hoverColor = _ref2.hoverColor,
|
|
23278
23301
|
hoverBackground = _ref2.hoverBackground;
|
|
23279
|
-
return Object.assign(Object.assign({}, getSharedStyles$
|
|
23302
|
+
return Object.assign(Object.assign({}, getSharedStyles$3(color)), {
|
|
23280
23303
|
transition: ".2s",
|
|
23281
23304
|
"&:hover, &:focus": {
|
|
23282
23305
|
outline: "none",
|
|
@@ -23292,12 +23315,12 @@
|
|
|
23292
23315
|
}
|
|
23293
23316
|
});
|
|
23294
23317
|
});
|
|
23295
|
-
var MenuText$
|
|
23318
|
+
var MenuText$2 = styled__default['default'].div.withConfig({
|
|
23296
23319
|
displayName: "DesktopMenu__MenuText",
|
|
23297
23320
|
componentId: "sc-1mpxh2o-2"
|
|
23298
23321
|
})(function (_ref3) {
|
|
23299
23322
|
var textColor = _ref3.textColor;
|
|
23300
|
-
return Object.assign({}, getSharedStyles$
|
|
23323
|
+
return Object.assign({}, getSharedStyles$3(textColor));
|
|
23301
23324
|
});
|
|
23302
23325
|
var Nav$3 = styled__default['default'].nav.withConfig({
|
|
23303
23326
|
displayName: "DesktopMenu__Nav",
|
|
@@ -23319,7 +23342,7 @@
|
|
|
23319
23342
|
var renderMenuLink$3 = function renderMenuLink(menuItem, themeColorObject) {
|
|
23320
23343
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
23321
23344
|
key: menuItem.name
|
|
23322
|
-
}, /*#__PURE__*/React__default['default'].createElement(MenuLink$
|
|
23345
|
+
}, /*#__PURE__*/React__default['default'].createElement(MenuLink$2, Object.assign({
|
|
23323
23346
|
href: menuItem.href,
|
|
23324
23347
|
as: menuItem.as,
|
|
23325
23348
|
to: menuItem.to
|
|
@@ -23327,13 +23350,13 @@
|
|
|
23327
23350
|
};
|
|
23328
23351
|
|
|
23329
23352
|
var renderCustom$4 = function renderCustom(menuItem, themeColorObject) {
|
|
23330
|
-
return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$
|
|
23353
|
+
return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$2, Object.assign({}, themeColorObject, {
|
|
23331
23354
|
key: menuItem.name
|
|
23332
23355
|
}), menuItem.render());
|
|
23333
23356
|
};
|
|
23334
23357
|
|
|
23335
23358
|
var renderText$4 = function renderText(menuItem, themeColorObject) {
|
|
23336
|
-
return /*#__PURE__*/React__default['default'].createElement(MenuText$
|
|
23359
|
+
return /*#__PURE__*/React__default['default'].createElement(MenuText$2, Object.assign({
|
|
23337
23360
|
key: menuItem.name
|
|
23338
23361
|
}, themeColorObject), menuItem.name);
|
|
23339
23362
|
};
|
|
@@ -23428,7 +23451,7 @@
|
|
|
23428
23451
|
return 24 * layer + 24 + "px";
|
|
23429
23452
|
};
|
|
23430
23453
|
|
|
23431
|
-
var getSharedStyles$
|
|
23454
|
+
var getSharedStyles$2 = function getSharedStyles(_ref) {
|
|
23432
23455
|
var color = _ref.color,
|
|
23433
23456
|
layer = _ref.layer;
|
|
23434
23457
|
return {
|
|
@@ -23446,7 +23469,7 @@
|
|
|
23446
23469
|
};
|
|
23447
23470
|
};
|
|
23448
23471
|
|
|
23449
|
-
var ApplyMenuLinkStyles$
|
|
23472
|
+
var ApplyMenuLinkStyles$1 = styled__default['default'].li.withConfig({
|
|
23450
23473
|
displayName: "MobileMenu__ApplyMenuLinkStyles",
|
|
23451
23474
|
componentId: "vqy2lk-1"
|
|
23452
23475
|
})(function (_ref2) {
|
|
@@ -23456,7 +23479,7 @@
|
|
|
23456
23479
|
layer = _ref2.layer;
|
|
23457
23480
|
return {
|
|
23458
23481
|
display: "block",
|
|
23459
|
-
"*": Object.assign(Object.assign({}, getSharedStyles$
|
|
23482
|
+
"*": Object.assign(Object.assign({}, getSharedStyles$2({
|
|
23460
23483
|
color: color,
|
|
23461
23484
|
layer: layer
|
|
23462
23485
|
})), {
|
|
@@ -23475,19 +23498,19 @@
|
|
|
23475
23498
|
})
|
|
23476
23499
|
};
|
|
23477
23500
|
});
|
|
23478
|
-
ApplyMenuLinkStyles$
|
|
23501
|
+
ApplyMenuLinkStyles$1.propTypes = {
|
|
23479
23502
|
layer: PropTypes__default['default'].number,
|
|
23480
23503
|
color: PropTypes__default['default'].string,
|
|
23481
23504
|
hoverColor: PropTypes__default['default'].string,
|
|
23482
23505
|
hoverBackground: PropTypes__default['default'].string
|
|
23483
23506
|
};
|
|
23484
|
-
ApplyMenuLinkStyles$
|
|
23507
|
+
ApplyMenuLinkStyles$1.defaultProps = {
|
|
23485
23508
|
layer: 0,
|
|
23486
23509
|
color: Theme.colors.white,
|
|
23487
23510
|
hoverColor: Theme.colors.lightBlue,
|
|
23488
23511
|
hoverBackground: Theme.colors.black
|
|
23489
23512
|
};
|
|
23490
|
-
var MenuLink$
|
|
23513
|
+
var MenuLink$1 = styled__default['default'].a.withConfig({
|
|
23491
23514
|
displayName: "MobileMenu__MenuLink",
|
|
23492
23515
|
componentId: "vqy2lk-2"
|
|
23493
23516
|
})(function (_ref3) {
|
|
@@ -23495,7 +23518,7 @@
|
|
|
23495
23518
|
hoverColor = _ref3.hoverColor,
|
|
23496
23519
|
hoverBackground = _ref3.hoverBackground,
|
|
23497
23520
|
layer = _ref3.layer;
|
|
23498
|
-
return Object.assign(Object.assign({}, getSharedStyles$
|
|
23521
|
+
return Object.assign(Object.assign({}, getSharedStyles$2({
|
|
23499
23522
|
color: color,
|
|
23500
23523
|
layer: layer
|
|
23501
23524
|
})), {
|
|
@@ -23516,13 +23539,13 @@
|
|
|
23516
23539
|
}
|
|
23517
23540
|
});
|
|
23518
23541
|
});
|
|
23519
|
-
var MenuText$
|
|
23542
|
+
var MenuText$1 = styled__default['default'].li.withConfig({
|
|
23520
23543
|
displayName: "MobileMenu__MenuText",
|
|
23521
23544
|
componentId: "vqy2lk-3"
|
|
23522
23545
|
})(function (_ref4) {
|
|
23523
23546
|
var textColor = _ref4.textColor,
|
|
23524
23547
|
layer = _ref4.layer;
|
|
23525
|
-
return Object.assign({}, getSharedStyles$
|
|
23548
|
+
return Object.assign({}, getSharedStyles$2({
|
|
23526
23549
|
color: textColor,
|
|
23527
23550
|
layer: layer
|
|
23528
23551
|
}));
|
|
@@ -23543,7 +23566,7 @@
|
|
|
23543
23566
|
display: "block",
|
|
23544
23567
|
marginBottom: Theme.space.x1
|
|
23545
23568
|
}
|
|
23546
|
-
}, /*#__PURE__*/React__default['default'].createElement(MenuLink$
|
|
23569
|
+
}, /*#__PURE__*/React__default['default'].createElement(MenuLink$1, Object.assign({
|
|
23547
23570
|
layer: layer
|
|
23548
23571
|
}, themeColorObject, {
|
|
23549
23572
|
onClick: linkOnClick,
|
|
@@ -23554,7 +23577,7 @@
|
|
|
23554
23577
|
};
|
|
23555
23578
|
|
|
23556
23579
|
var renderCustom$3 = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
|
|
23557
|
-
return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$
|
|
23580
|
+
return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$1, Object.assign({
|
|
23558
23581
|
key: menuItem.name
|
|
23559
23582
|
}, themeColorObject, {
|
|
23560
23583
|
layer: layer,
|
|
@@ -23577,7 +23600,7 @@
|
|
|
23577
23600
|
};
|
|
23578
23601
|
|
|
23579
23602
|
var renderText$3 = function renderText(menuItem, linkOnClick, themeColorObject, layer) {
|
|
23580
|
-
return /*#__PURE__*/React__default['default'].createElement(MenuText$
|
|
23603
|
+
return /*#__PURE__*/React__default['default'].createElement(MenuText$1, Object.assign({
|
|
23581
23604
|
key: menuItem.name,
|
|
23582
23605
|
layer: layer
|
|
23583
23606
|
}, themeColorObject), menuItem.name);
|
|
@@ -25395,7 +25418,7 @@
|
|
|
25395
25418
|
backgroundColor: tooltipStyles(theme).backgroundColor,
|
|
25396
25419
|
borderRadius: theme.radii.medium,
|
|
25397
25420
|
border: "1px solid " + tooltipStyles(theme).borderColor,
|
|
25398
|
-
boxShadow:
|
|
25421
|
+
boxShadow: theme.shadows.medium,
|
|
25399
25422
|
padding: theme.space.x1,
|
|
25400
25423
|
transition: "opacity 0.3s",
|
|
25401
25424
|
zIndex: theme.zIndices.content
|
|
@@ -44513,8 +44536,8 @@
|
|
|
44513
44536
|
})), /*#__PURE__*/React__default['default'].createElement(PopperArrow, Object.assign({}, popperProps.arrowProps, {
|
|
44514
44537
|
placement: placement,
|
|
44515
44538
|
ref: popperProps.arrowProps.ref,
|
|
44516
|
-
backgroundColor: "
|
|
44517
|
-
borderColor: "
|
|
44539
|
+
backgroundColor: "white",
|
|
44540
|
+
borderColor: "white"
|
|
44518
44541
|
})), /*#__PURE__*/React__default['default'].createElement(DetectOutsideClick, {
|
|
44519
44542
|
onClick: _this4.handleOutsideClick,
|
|
44520
44543
|
clickRef: [_this4.menuRef, _this4.triggerRef]
|
|
@@ -44561,64 +44584,10 @@
|
|
|
44561
44584
|
hideDelay: "100"
|
|
44562
44585
|
};
|
|
44563
44586
|
|
|
44564
|
-
var SubMenuLink = styled__default['default'](DropdownLink).withConfig({
|
|
44565
|
-
displayName: "renderSubMenuItems__SubMenuLink",
|
|
44566
|
-
componentId: "vyx9p-0"
|
|
44567
|
-
})(fontSize, lineHeight, space);
|
|
44568
|
-
SubMenuLink.propTypes = Object.assign(Object.assign(Object.assign({}, propTypes.fontSize), propTypes.lineHeight), propTypes.space);
|
|
44569
|
-
|
|
44570
|
-
var getSharedStyles$2 = function getSharedStyles() {
|
|
44571
|
-
return {
|
|
44572
|
-
display: "block",
|
|
44573
|
-
whiteSpace: "nowrap",
|
|
44574
|
-
textDecoration: "none",
|
|
44575
|
-
borderColor: "transparent",
|
|
44576
|
-
backgroundColor: "transparent",
|
|
44577
|
-
lineHeight: Theme.lineHeights.smallTextBase,
|
|
44578
|
-
fontSize: "" + Theme.fontSizes.small,
|
|
44579
|
-
padding: Theme.space.half + " " + Theme.space.x2
|
|
44580
|
-
};
|
|
44581
|
-
};
|
|
44582
|
-
|
|
44583
|
-
var ApplySubMenuLinkStyles = styled__default['default'].li.withConfig({
|
|
44584
|
-
displayName: "renderSubMenuItems__ApplySubMenuLinkStyles",
|
|
44585
|
-
componentId: "vyx9p-1"
|
|
44586
|
-
})(function () {
|
|
44587
|
-
return {
|
|
44588
|
-
color: Theme.colors.darkBlue,
|
|
44589
|
-
verticalAlign: "middle",
|
|
44590
|
-
"> *": Object.assign(Object.assign({}, getSharedStyles$2()), {
|
|
44591
|
-
transition: ".2s",
|
|
44592
|
-
textDecoration: "none",
|
|
44593
|
-
"&:hover, &:focus": {
|
|
44594
|
-
outline: "none",
|
|
44595
|
-
backgroundColor: Theme.colors.lightGrey
|
|
44596
|
-
},
|
|
44597
|
-
"&:disabled": {
|
|
44598
|
-
opacity: ".5"
|
|
44599
|
-
},
|
|
44600
|
-
"&:focus": {
|
|
44601
|
-
boxShadow: Theme.shadows.focus
|
|
44602
|
-
}
|
|
44603
|
-
})
|
|
44604
|
-
};
|
|
44605
|
-
});
|
|
44606
|
-
var SubMenuText = styled__default['default'].li.withConfig({
|
|
44607
|
-
displayName: "renderSubMenuItems__SubMenuText",
|
|
44608
|
-
componentId: "vyx9p-2"
|
|
44609
|
-
})(function () {
|
|
44610
|
-
return Object.assign({
|
|
44611
|
-
color: Theme.colors.darkGrey
|
|
44612
|
-
}, getSharedStyles$2());
|
|
44613
|
-
});
|
|
44614
|
-
|
|
44615
44587
|
var renderSubMenuTrigger = function renderSubMenuTrigger(subMenuItem, onItemClick, SubMenuTrigger) {
|
|
44616
44588
|
var _a;
|
|
44617
44589
|
|
|
44618
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
44619
|
-
style: {
|
|
44620
|
-
whiteSpace: "nowrap"
|
|
44621
|
-
},
|
|
44590
|
+
return /*#__PURE__*/React__default['default'].createElement(NoWrapLi, {
|
|
44622
44591
|
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
44623
44592
|
}, /*#__PURE__*/React__default['default'].createElement(SubMenuTrigger, {
|
|
44624
44593
|
onItemClick: onItemClick,
|
|
@@ -44630,14 +44599,9 @@
|
|
|
44630
44599
|
var renderSubMenuLink = function renderSubMenuLink(subMenuItem, onItemClick) {
|
|
44631
44600
|
var _a;
|
|
44632
44601
|
|
|
44633
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
44634
|
-
style: {
|
|
44635
|
-
whiteSpace: "nowrap"
|
|
44636
|
-
},
|
|
44602
|
+
return /*#__PURE__*/React__default['default'].createElement(NoWrapLi, {
|
|
44637
44603
|
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
44638
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
44639
|
-
fontSize: "small",
|
|
44640
|
-
lineHeight: "smallTextBase",
|
|
44604
|
+
}, /*#__PURE__*/React__default['default'].createElement(DropdownLink, {
|
|
44641
44605
|
py: "half",
|
|
44642
44606
|
onClick: onItemClick,
|
|
44643
44607
|
href: subMenuItem.href,
|
|
@@ -44649,18 +44613,17 @@
|
|
|
44649
44613
|
var renderCustom$2 = function renderCustom(subMenuItem, onItemClick) {
|
|
44650
44614
|
var _a;
|
|
44651
44615
|
|
|
44652
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
44653
|
-
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
44654
|
-
|
|
44655
|
-
}, subMenuItem.render());
|
|
44616
|
+
return /*#__PURE__*/React__default['default'].createElement(NoWrapLi, {
|
|
44617
|
+
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
44618
|
+
}, subMenuItem.render(onItemClick));
|
|
44656
44619
|
};
|
|
44657
44620
|
|
|
44658
44621
|
var renderText$2 = function renderText(subMenuItem) {
|
|
44659
44622
|
var _a;
|
|
44660
44623
|
|
|
44661
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
44624
|
+
return /*#__PURE__*/React__default['default'].createElement(NoWrapLi, {
|
|
44662
44625
|
key: (_a = subMenuItem.key) !== null && _a !== void 0 ? _a : subMenuItem.name
|
|
44663
|
-
}, subMenuItem.name);
|
|
44626
|
+
}, /*#__PURE__*/React__default['default'].createElement(DropdownText, null, subMenuItem.name));
|
|
44664
44627
|
};
|
|
44665
44628
|
|
|
44666
44629
|
var getRenderFunction$2 = function getRenderFunction(subMenuItem) {
|
|
@@ -44681,37 +44644,25 @@
|
|
|
44681
44644
|
});
|
|
44682
44645
|
};
|
|
44683
44646
|
|
|
44684
|
-
var
|
|
44647
|
+
var NoWrapLi = styled__default['default'].li.withConfig({
|
|
44648
|
+
displayName: "renderSubMenuItems__NoWrapLi",
|
|
44649
|
+
componentId: "vyx9p-0"
|
|
44650
|
+
})(function () {
|
|
44651
|
+
return {
|
|
44652
|
+
whiteSpace: "nowrap"
|
|
44653
|
+
};
|
|
44654
|
+
});
|
|
44655
|
+
|
|
44656
|
+
var StyledButton$1 = styled__default['default'](DropdownButton).withConfig({
|
|
44685
44657
|
displayName: "SubMenuTrigger__StyledButton",
|
|
44686
44658
|
componentId: "sc-1tg8y8b-0"
|
|
44687
44659
|
})(function (_ref) {
|
|
44688
|
-
var isOpen = _ref.isOpen
|
|
44660
|
+
var isOpen = _ref.isOpen,
|
|
44661
|
+
theme = _ref.theme;
|
|
44689
44662
|
return {
|
|
44690
|
-
display: "block",
|
|
44691
44663
|
position: "relative",
|
|
44692
|
-
|
|
44693
|
-
|
|
44694
|
-
lineHeight: Theme.lineHeights.smallTextBase,
|
|
44695
|
-
width: "100%",
|
|
44696
|
-
padding: Theme.space.half + " 28px " + Theme.space.half + " 12px",
|
|
44697
|
-
border: "none",
|
|
44698
|
-
borderLeft: Theme.space.half + " solid transparent",
|
|
44699
|
-
"&:hover": {
|
|
44700
|
-
backgroundColor: Theme.colors.lightGrey
|
|
44701
|
-
},
|
|
44702
|
-
"&:disabled": {
|
|
44703
|
-
opacity: ".5"
|
|
44704
|
-
},
|
|
44705
|
-
"&:focus": {
|
|
44706
|
-
outline: "none",
|
|
44707
|
-
color: Theme.colors.darkBlue,
|
|
44708
|
-
backgroundColor: Theme.colors.lightGrey,
|
|
44709
|
-
borderLeft: Theme.space.half + " solid " + Theme.colors.blue
|
|
44710
|
-
},
|
|
44711
|
-
backgroundColor: isOpen ? Theme.colors.lightGrey : "transparent",
|
|
44712
|
-
textDecoration: "none",
|
|
44713
|
-
textAlign: "left",
|
|
44714
|
-
cursor: "pointer"
|
|
44664
|
+
backgroundColor: isOpen ? theme.colors.lightBlue : "transparent",
|
|
44665
|
+
color: isOpen ? theme.colors.darkBlue : theme.colors.darkGrey
|
|
44715
44666
|
};
|
|
44716
44667
|
});
|
|
44717
44668
|
var SubMenuTriggerButton = /*#__PURE__*/React__default['default'].forwardRef(function (_a, ref) {
|
|
@@ -44725,10 +44676,9 @@
|
|
|
44725
44676
|
}, props), name, /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
44726
44677
|
style: {
|
|
44727
44678
|
position: "absolute",
|
|
44728
|
-
top: "
|
|
44679
|
+
top: "10px"
|
|
44729
44680
|
},
|
|
44730
44681
|
icon: "rightArrow",
|
|
44731
|
-
color: "darkBlue",
|
|
44732
44682
|
size: "20px",
|
|
44733
44683
|
p: "2px"
|
|
44734
44684
|
}));
|
|
@@ -44779,7 +44729,7 @@
|
|
|
44779
44729
|
);
|
|
44780
44730
|
};
|
|
44781
44731
|
|
|
44782
|
-
SubMenuTrigger.displayName = "
|
|
44732
|
+
SubMenuTrigger.displayName = "SubMenuTrigger";
|
|
44783
44733
|
|
|
44784
44734
|
var StyledButton = styled__default['default'].button.withConfig({
|
|
44785
44735
|
displayName: "MenuTrigger__StyledButton",
|
|
@@ -44924,7 +44874,7 @@
|
|
|
44924
44874
|
};
|
|
44925
44875
|
};
|
|
44926
44876
|
|
|
44927
|
-
var ApplyMenuLinkStyles
|
|
44877
|
+
var ApplyMenuLinkStyles = styled__default['default'].div.withConfig({
|
|
44928
44878
|
displayName: "DesktopMenu__ApplyMenuLinkStyles",
|
|
44929
44879
|
componentId: "sc-8mrjkc-0"
|
|
44930
44880
|
})(function (_ref) {
|
|
@@ -44953,7 +44903,7 @@
|
|
|
44953
44903
|
})
|
|
44954
44904
|
};
|
|
44955
44905
|
});
|
|
44956
|
-
var MenuLink
|
|
44906
|
+
var MenuLink = styled__default['default'].a.withConfig({
|
|
44957
44907
|
displayName: "DesktopMenu__MenuLink",
|
|
44958
44908
|
componentId: "sc-8mrjkc-1"
|
|
44959
44909
|
})(function (_ref2) {
|
|
@@ -44978,7 +44928,7 @@
|
|
|
44978
44928
|
}
|
|
44979
44929
|
});
|
|
44980
44930
|
});
|
|
44981
|
-
var MenuText
|
|
44931
|
+
var MenuText = styled__default['default'].div.withConfig({
|
|
44982
44932
|
displayName: "DesktopMenu__MenuText",
|
|
44983
44933
|
componentId: "sc-8mrjkc-2"
|
|
44984
44934
|
})(function (_ref3) {
|
|
@@ -45013,7 +44963,7 @@
|
|
|
45013
44963
|
|
|
45014
44964
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
45015
44965
|
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45016
|
-
}, /*#__PURE__*/React__default['default'].createElement(MenuLink
|
|
44966
|
+
}, /*#__PURE__*/React__default['default'].createElement(MenuLink, Object.assign({
|
|
45017
44967
|
href: menuItem.href,
|
|
45018
44968
|
to: menuItem.to,
|
|
45019
44969
|
as: menuItem.as
|
|
@@ -45023,7 +44973,7 @@
|
|
|
45023
44973
|
var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
|
|
45024
44974
|
var _a;
|
|
45025
44975
|
|
|
45026
|
-
return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles
|
|
44976
|
+
return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles, Object.assign({}, themeColorObject, {
|
|
45027
44977
|
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45028
44978
|
}), menuItem.render());
|
|
45029
44979
|
};
|
|
@@ -45031,7 +44981,7 @@
|
|
|
45031
44981
|
var renderText$1 = function renderText(menuItem, themeColorObject) {
|
|
45032
44982
|
var _a;
|
|
45033
44983
|
|
|
45034
|
-
return /*#__PURE__*/React__default['default'].createElement(MenuText
|
|
44984
|
+
return /*#__PURE__*/React__default['default'].createElement(MenuText, Object.assign({
|
|
45035
44985
|
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45036
44986
|
}, themeColorObject), menuItem.name);
|
|
45037
44987
|
};
|
|
@@ -45137,94 +45087,44 @@
|
|
|
45137
45087
|
color: theme.colors.white,
|
|
45138
45088
|
marginBottom: theme.space.x1
|
|
45139
45089
|
};
|
|
45140
|
-
});
|
|
45090
|
+
}); // eslint-disable-next-line no-mixed-operators
|
|
45141
45091
|
|
|
45142
45092
|
var getPaddingLeft = function getPaddingLeft(layer) {
|
|
45143
45093
|
return 24 * layer + 24 + "px";
|
|
45144
45094
|
};
|
|
45145
45095
|
|
|
45146
|
-
var getSharedStyles = function getSharedStyles(
|
|
45147
|
-
var color = _ref2.color,
|
|
45148
|
-
layer = _ref2.layer,
|
|
45149
|
-
theme = _ref2.theme;
|
|
45096
|
+
var getSharedStyles = function getSharedStyles(theme) {
|
|
45150
45097
|
return {
|
|
45151
45098
|
display: "block",
|
|
45152
|
-
color: theme.colors[color] || color,
|
|
45153
45099
|
textDecoration: "none",
|
|
45154
45100
|
border: "none",
|
|
45155
45101
|
backgroundColor: "transparent",
|
|
45156
|
-
|
|
45157
|
-
|
|
45158
|
-
lineHeight:
|
|
45159
|
-
padding: layer === 0 ? theme.space.x1 + " " + theme.space.x3 : theme.space.x1 + " " + theme.space.x2,
|
|
45160
|
-
paddingLeft: getPaddingLeft(layer),
|
|
45102
|
+
fontSize: theme.fontSizes.large,
|
|
45103
|
+
fontWeight: theme.fontWeights.medium,
|
|
45104
|
+
lineHeight: theme.lineHeights.heading3,
|
|
45161
45105
|
marginBottom: theme.space.x1,
|
|
45162
|
-
"
|
|
45163
|
-
|
|
45164
|
-
},
|
|
45165
|
-
"&:hover": {
|
|
45166
|
-
color: "#434d59",
|
|
45167
|
-
background: "#f0f2f5"
|
|
45168
|
-
}
|
|
45106
|
+
padding: theme.space.x1 + " " + theme.space.x3,
|
|
45107
|
+
paddingLeft: getPaddingLeft(0)
|
|
45169
45108
|
};
|
|
45170
45109
|
};
|
|
45171
45110
|
|
|
45172
|
-
var
|
|
45173
|
-
displayName: "
|
|
45111
|
+
var TopLevelLink = styled__default['default'](Link).withConfig({
|
|
45112
|
+
displayName: "MobileMenu__TopLevelLink",
|
|
45174
45113
|
componentId: "sc-18t6zrc-1"
|
|
45175
|
-
})(function (
|
|
45176
|
-
var
|
|
45177
|
-
|
|
45178
|
-
|
|
45179
|
-
|
|
45180
|
-
|
|
45181
|
-
|
|
45182
|
-
_ref3$layer = _ref3.layer,
|
|
45183
|
-
layer = _ref3$layer === void 0 ? 0 : _ref3$layer,
|
|
45184
|
-
theme = _ref3.theme;
|
|
45185
|
-
return {
|
|
45186
|
-
display: "block",
|
|
45187
|
-
"button, a": Object.assign(Object.assign({}, getSharedStyles({
|
|
45188
|
-
color: color,
|
|
45189
|
-
layer: layer,
|
|
45190
|
-
theme: theme
|
|
45191
|
-
})), {
|
|
45192
|
-
textDecoration: "none",
|
|
45193
|
-
"&:hover, &:focus": {
|
|
45194
|
-
outline: "none",
|
|
45195
|
-
color: theme.colors[hoverColor] || hoverColor,
|
|
45196
|
-
backgroundColor: theme.colors[hoverBackground] || hoverBackground
|
|
45197
|
-
},
|
|
45198
|
-
"&:disabled": {
|
|
45199
|
-
opacity: ".5"
|
|
45200
|
-
},
|
|
45201
|
-
"&:focus": {
|
|
45202
|
-
boxShadow: theme.shadows.focus
|
|
45203
|
-
}
|
|
45204
|
-
})
|
|
45205
|
-
};
|
|
45206
|
-
});
|
|
45207
|
-
var MenuLink = styled__default['default'].a.withConfig({
|
|
45208
|
-
displayName: "MobileMenu__MenuLink",
|
|
45209
|
-
componentId: "sc-18t6zrc-2"
|
|
45210
|
-
})(function (_ref4) {
|
|
45211
|
-
var color = _ref4.color,
|
|
45212
|
-
hoverColor = _ref4.hoverColor,
|
|
45213
|
-
hoverBackground = _ref4.hoverBackground,
|
|
45214
|
-
layer = _ref4.layer,
|
|
45215
|
-
theme = _ref4.theme;
|
|
45216
|
-
return Object.assign(Object.assign({}, getSharedStyles({
|
|
45217
|
-
color: color,
|
|
45218
|
-
layer: layer,
|
|
45219
|
-
theme: theme
|
|
45220
|
-
})), {
|
|
45114
|
+
})(function (_ref2) {
|
|
45115
|
+
var theme = _ref2.theme;
|
|
45116
|
+
return Object.assign(Object.assign({}, getSharedStyles(theme)), {
|
|
45117
|
+
color: theme.colors.darkBlue,
|
|
45118
|
+
"&:visited": {
|
|
45119
|
+
color: theme.colors.darkBlue
|
|
45120
|
+
},
|
|
45221
45121
|
width: "100%",
|
|
45222
45122
|
borderRadius: "0",
|
|
45223
45123
|
transition: ".2s",
|
|
45224
45124
|
"&:hover, &:focus": {
|
|
45225
45125
|
outline: "none",
|
|
45226
|
-
color:
|
|
45227
|
-
backgroundColor:
|
|
45126
|
+
color: theme.colors.blackBlue,
|
|
45127
|
+
backgroundColor: theme.colors.whiteGrey,
|
|
45228
45128
|
cursor: "pointer"
|
|
45229
45129
|
},
|
|
45230
45130
|
"&:focus": {
|
|
@@ -45235,18 +45135,31 @@
|
|
|
45235
45135
|
}
|
|
45236
45136
|
});
|
|
45237
45137
|
});
|
|
45238
|
-
var
|
|
45239
|
-
displayName: "
|
|
45138
|
+
var TopLevelText = styled__default['default'](Text).withConfig({
|
|
45139
|
+
displayName: "MobileMenu__TopLevelText",
|
|
45140
|
+
componentId: "sc-18t6zrc-2"
|
|
45141
|
+
})(function (_ref3) {
|
|
45142
|
+
var theme = _ref3.theme;
|
|
45143
|
+
return Object.assign(Object.assign({}, getSharedStyles(theme)), {
|
|
45144
|
+
color: theme.colors.blackBlue
|
|
45145
|
+
});
|
|
45146
|
+
});
|
|
45147
|
+
var ChildIndentingLi = styled__default['default'].li.withConfig({
|
|
45148
|
+
displayName: "MobileMenu__ChildIndentingLi",
|
|
45240
45149
|
componentId: "sc-18t6zrc-3"
|
|
45241
|
-
})(function (
|
|
45242
|
-
var
|
|
45243
|
-
|
|
45244
|
-
|
|
45245
|
-
|
|
45246
|
-
|
|
45247
|
-
|
|
45248
|
-
|
|
45249
|
-
|
|
45150
|
+
})(function (_ref4) {
|
|
45151
|
+
var _ref5;
|
|
45152
|
+
|
|
45153
|
+
var layer = _ref4.layer,
|
|
45154
|
+
theme = _ref4.theme;
|
|
45155
|
+
return _ref5 = {
|
|
45156
|
+
marginBottom: theme.space.x1
|
|
45157
|
+
}, _ref5["> " + DropdownButton + ", > " + DropdownLink] = {
|
|
45158
|
+
// eslint-disable-next-line no-mixed-operators
|
|
45159
|
+
paddingLeft: 24 * layer + 20 + "px"
|
|
45160
|
+
}, _ref5["> " + DropdownText] = {
|
|
45161
|
+
paddingLeft: getPaddingLeft(layer)
|
|
45162
|
+
}, _ref5;
|
|
45250
45163
|
});
|
|
45251
45164
|
var SubMenuItemsList = styled__default['default'].ul.withConfig({
|
|
45252
45165
|
displayName: "MobileMenu__SubMenuItemsList",
|
|
@@ -45256,41 +45169,29 @@
|
|
|
45256
45169
|
paddingLeft: "0",
|
|
45257
45170
|
margin: "0"
|
|
45258
45171
|
});
|
|
45259
|
-
var StyledLi = styled__default['default'].li.withConfig({
|
|
45260
|
-
displayName: "MobileMenu__StyledLi",
|
|
45261
|
-
componentId: "sc-18t6zrc-5"
|
|
45262
|
-
})(function (_ref6) {
|
|
45263
|
-
var theme = _ref6.theme;
|
|
45264
|
-
return {
|
|
45265
|
-
marginBottom: theme.space.x1,
|
|
45266
|
-
display: "block"
|
|
45267
|
-
};
|
|
45268
|
-
});
|
|
45269
45172
|
|
|
45270
45173
|
var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorObject, layer) {
|
|
45271
45174
|
var _a;
|
|
45272
45175
|
|
|
45273
|
-
|
|
45176
|
+
var MenuLink = layer === 0 ? TopLevelLink : DropdownLink;
|
|
45177
|
+
return /*#__PURE__*/React__default['default'].createElement(ChildIndentingLi, {
|
|
45178
|
+
layer: layer,
|
|
45274
45179
|
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45275
|
-
}, /*#__PURE__*/React__default['default'].createElement(MenuLink,
|
|
45276
|
-
layer: layer
|
|
45277
|
-
}, themeColorObject, {
|
|
45180
|
+
}, /*#__PURE__*/React__default['default'].createElement(MenuLink, {
|
|
45278
45181
|
onClick: linkOnClick,
|
|
45279
45182
|
href: menuItem.href,
|
|
45280
45183
|
as: menuItem.as,
|
|
45281
45184
|
to: menuItem.to
|
|
45282
|
-
}
|
|
45185
|
+
}, menuItem.name));
|
|
45283
45186
|
};
|
|
45284
45187
|
|
|
45285
45188
|
var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
|
|
45286
45189
|
var _a;
|
|
45287
45190
|
|
|
45288
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
45289
|
-
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45290
|
-
}, themeColorObject, {
|
|
45191
|
+
return /*#__PURE__*/React__default['default'].createElement(ChildIndentingLi, {
|
|
45291
45192
|
layer: layer,
|
|
45292
|
-
|
|
45293
|
-
}
|
|
45193
|
+
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45194
|
+
}, menuItem.render(linkOnClick, layer));
|
|
45294
45195
|
};
|
|
45295
45196
|
|
|
45296
45197
|
var renderSubMenu = function renderSubMenu(menuItem, linkOnClick, themeColorObject, layer) {
|
|
@@ -45312,10 +45213,11 @@
|
|
|
45312
45213
|
var renderText = function renderText(menuItem, linkOnClick, themeColorObject, layer) {
|
|
45313
45214
|
var _a;
|
|
45314
45215
|
|
|
45315
|
-
|
|
45316
|
-
|
|
45317
|
-
layer: layer
|
|
45318
|
-
|
|
45216
|
+
var MenuText = layer === 0 ? TopLevelText : DropdownText;
|
|
45217
|
+
return /*#__PURE__*/React__default['default'].createElement(ChildIndentingLi, {
|
|
45218
|
+
layer: layer,
|
|
45219
|
+
key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
|
|
45220
|
+
}, /*#__PURE__*/React__default['default'].createElement(MenuText, null, menuItem.name));
|
|
45319
45221
|
};
|
|
45320
45222
|
|
|
45321
45223
|
var getRenderFunction = function getRenderFunction(menuItem) {
|
|
@@ -45341,50 +45243,47 @@
|
|
|
45341
45243
|
return renderMenuItems(menuData, linkOnClick, themeColorObject, 0);
|
|
45342
45244
|
};
|
|
45343
45245
|
|
|
45344
|
-
var getSubMenuHeading = function getSubMenuHeading(layer,
|
|
45345
|
-
return layer === 0 ? /*#__PURE__*/React__default['default'].createElement(
|
|
45346
|
-
|
|
45347
|
-
|
|
45348
|
-
}, name) : /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
45246
|
+
var getSubMenuHeading = function getSubMenuHeading(layer, name) {
|
|
45247
|
+
return layer === 0 ? /*#__PURE__*/React__default['default'].createElement(TopLevelText, {
|
|
45248
|
+
as: "h3"
|
|
45249
|
+
}, name) : /*#__PURE__*/React__default['default'].createElement(DropdownText, {
|
|
45349
45250
|
mb: "x1",
|
|
45350
|
-
color: color,
|
|
45351
|
-
py: "x1",
|
|
45352
45251
|
style: {
|
|
45353
45252
|
paddingLeft: getPaddingLeft(layer)
|
|
45354
45253
|
}
|
|
45355
45254
|
}, name);
|
|
45356
45255
|
};
|
|
45357
45256
|
|
|
45358
|
-
var SubMenu = function SubMenu(
|
|
45359
|
-
var menuItem =
|
|
45360
|
-
linkOnClick =
|
|
45361
|
-
themeColorObject =
|
|
45362
|
-
layer =
|
|
45363
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, getSubMenuHeading(layer,
|
|
45257
|
+
var SubMenu = function SubMenu(_ref6) {
|
|
45258
|
+
var menuItem = _ref6.menuItem,
|
|
45259
|
+
linkOnClick = _ref6.linkOnClick,
|
|
45260
|
+
themeColorObject = _ref6.themeColorObject,
|
|
45261
|
+
layer = _ref6.layer;
|
|
45262
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, getSubMenuHeading(layer, menuItem.name), /*#__PURE__*/React__default['default'].createElement(SubMenuItemsList, null, renderMenuItems(menuItem.items, linkOnClick, themeColorObject, layer + 1)));
|
|
45364
45263
|
};
|
|
45365
45264
|
|
|
45366
45265
|
var Menu$1 = styled__default['default'].ul.withConfig({
|
|
45367
45266
|
displayName: "MobileMenu__Menu",
|
|
45368
|
-
componentId: "sc-18t6zrc-
|
|
45369
|
-
})(function (
|
|
45370
|
-
var
|
|
45267
|
+
componentId: "sc-18t6zrc-5"
|
|
45268
|
+
})(function (_ref7) {
|
|
45269
|
+
var _ref8;
|
|
45371
45270
|
|
|
45372
|
-
var theme =
|
|
45373
|
-
return
|
|
45271
|
+
var theme = _ref7.theme;
|
|
45272
|
+
return _ref8 = {
|
|
45374
45273
|
margin: "0",
|
|
45375
45274
|
padding: theme.space.x1 + " 0",
|
|
45376
45275
|
zIndex: theme.zIndices.content,
|
|
45377
45276
|
width: "100%",
|
|
45378
45277
|
color: theme.colors.white
|
|
45379
|
-
},
|
|
45278
|
+
}, _ref8["" + Heading3] = {
|
|
45380
45279
|
padding: theme.space.x1 + " 0 " + theme.space.x1 + " " + theme.space.x3
|
|
45381
|
-
},
|
|
45280
|
+
}, _ref8;
|
|
45382
45281
|
});
|
|
45383
45282
|
var Nav = styled__default['default'].nav.withConfig({
|
|
45384
45283
|
displayName: "MobileMenu__Nav",
|
|
45385
|
-
componentId: "sc-18t6zrc-
|
|
45386
|
-
})(function (
|
|
45387
|
-
var backgroundColor =
|
|
45284
|
+
componentId: "sc-18t6zrc-6"
|
|
45285
|
+
})(function (_ref9) {
|
|
45286
|
+
var backgroundColor = _ref9.backgroundColor;
|
|
45388
45287
|
return {
|
|
45389
45288
|
backgroundColor: backgroundColor
|
|
45390
45289
|
};
|
|
@@ -45422,7 +45321,7 @@
|
|
|
45422
45321
|
|
|
45423
45322
|
var MobileMenu = styled__default['default'](BaseMobileMenu).withConfig({
|
|
45424
45323
|
displayName: "MobileMenu",
|
|
45425
|
-
componentId: "sc-18t6zrc-
|
|
45324
|
+
componentId: "sc-18t6zrc-7"
|
|
45426
45325
|
})(display);
|
|
45427
45326
|
|
|
45428
45327
|
var borderStyle = "1px solid #e4e7eb";
|
|
@@ -45487,7 +45386,7 @@
|
|
|
45487
45386
|
return {
|
|
45488
45387
|
background: backgroundColor,
|
|
45489
45388
|
padding: "0 " + theme.space.x3,
|
|
45490
|
-
|
|
45389
|
+
borderBottom: "1px solid " + theme.colors.lightGrey,
|
|
45491
45390
|
alignItems: "center",
|
|
45492
45391
|
height: NAVBAR_HEIGHT,
|
|
45493
45392
|
zIndex: theme.zIndices.navBar,
|
|
@@ -52683,7 +52582,6 @@
|
|
|
52683
52582
|
display: "flex",
|
|
52684
52583
|
flexDirection: "column",
|
|
52685
52584
|
height: "calc(100% - " + NAVBAR_HEIGHT + ")",
|
|
52686
|
-
boxShadow: "large",
|
|
52687
52585
|
borderLeftWidth: "1px",
|
|
52688
52586
|
borderLeftStyle: "solid",
|
|
52689
52587
|
borderLeftColor: "lightGrey",
|
|
@@ -52864,6 +52762,7 @@
|
|
|
52864
52762
|
exports.DropdownItem = DropdownItem;
|
|
52865
52763
|
exports.DropdownLink = DropdownLink;
|
|
52866
52764
|
exports.DropdownMenu = DropdownMenu;
|
|
52765
|
+
exports.DropdownText = DropdownText;
|
|
52867
52766
|
exports.Field = Field;
|
|
52868
52767
|
exports.FieldLabel = FieldLabel;
|
|
52869
52768
|
exports.Fieldset = Fieldset;
|