@citygross/components 0.7.79 → 0.7.80

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.
Files changed (46) hide show
  1. package/build/@types/index.d.ts +7 -0
  2. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +7 -0
  3. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
  4. package/build/cjs/components/src/components/Dropdown/Dropdown.js +24 -0
  5. package/build/cjs/components/src/components/Dropdown/Dropdown.js.map +1 -0
  6. package/build/cjs/components/src/components/Dropdown/Dropdown.styles.js +21 -0
  7. package/build/cjs/components/src/components/Dropdown/Dropdown.styles.js.map +1 -0
  8. package/build/cjs/components/src/components/IconText/IconText.styles.js +12 -0
  9. package/build/cjs/components/src/components/IconText/IconText.styles.js.map +1 -0
  10. package/build/cjs/components/src/components/Nav/Nav.styles.js +22 -0
  11. package/build/cjs/components/src/components/Nav/Nav.styles.js.map +1 -0
  12. package/build/cjs/components/src/components/NavMainLink/NavMainLink.styled.js +16 -0
  13. package/build/cjs/components/src/components/NavMainLink/NavMainLink.styled.js.map +1 -0
  14. package/build/cjs/components/src/components/SearchBar/SearchBar.styles.js +29 -0
  15. package/build/cjs/components/src/components/SearchBar/SearchBar.styles.js.map +1 -0
  16. package/build/cjs/components/src/components/SideModal/SideModal.js +28 -0
  17. package/build/cjs/components/src/components/SideModal/SideModal.js.map +1 -0
  18. package/build/cjs/components/src/components/SideModal/SideModal.styles.js +19 -0
  19. package/build/cjs/components/src/components/SideModal/SideModal.styles.js.map +1 -0
  20. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +7 -0
  21. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
  22. package/build/cjs/components/src/index.js +13 -0
  23. package/build/cjs/components/src/index.js.map +1 -1
  24. package/build/es/components/src/components/AddressBlock/AddressBlock.js +7 -0
  25. package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
  26. package/build/es/components/src/components/Dropdown/Dropdown.js +16 -0
  27. package/build/es/components/src/components/Dropdown/Dropdown.js.map +1 -0
  28. package/build/es/components/src/components/Dropdown/Dropdown.styles.js +11 -0
  29. package/build/es/components/src/components/Dropdown/Dropdown.styles.js.map +1 -0
  30. package/build/es/components/src/components/IconText/IconText.styles.js +6 -0
  31. package/build/es/components/src/components/IconText/IconText.styles.js.map +1 -0
  32. package/build/es/components/src/components/Nav/Nav.styles.js +14 -0
  33. package/build/es/components/src/components/Nav/Nav.styles.js.map +1 -0
  34. package/build/es/components/src/components/NavMainLink/NavMainLink.styled.js +10 -0
  35. package/build/es/components/src/components/NavMainLink/NavMainLink.styled.js.map +1 -0
  36. package/build/es/components/src/components/SearchBar/SearchBar.styles.js +23 -0
  37. package/build/es/components/src/components/SearchBar/SearchBar.styles.js.map +1 -0
  38. package/build/es/components/src/components/SideModal/SideModal.js +20 -0
  39. package/build/es/components/src/components/SideModal/SideModal.js.map +1 -0
  40. package/build/es/components/src/components/SideModal/SideModal.styles.js +10 -0
  41. package/build/es/components/src/components/SideModal/SideModal.styles.js.map +1 -0
  42. package/build/es/components/src/components/WarningLabel/WarningLabel.js +7 -0
  43. package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
  44. package/build/es/components/src/index.js +10 -0
  45. package/build/es/components/src/index.js.map +1 -1
  46. package/package.json +2 -2
@@ -59,3 +59,10 @@ export * from './containers/TwoColumnsContainer/TwoColumnsPageContainer';
59
59
  export * from './components/UnorderedList';
60
60
  export * from './components/WarningLabel/WarningLabel';
61
61
  export * from './components/MobileTable';
62
+ export * from './components/Nav/Nav';
63
+ export * from './components/NavMainLink/NavMainLink';
64
+ export * from './components/SearchBar/SearchBar';
65
+ export * from './components/SideModal/SideModal';
66
+ export * from './components/IconText/IconText';
67
+ export * from './components/Logo/Logo';
68
+ export * from './components/Dropdown/Dropdown';
@@ -73,6 +73,13 @@ require('../../containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js'
73
73
  require('../UnorderedList/UnorderedList.styles.js');
74
74
  require('../WarningLabel/WarningLabel.styles.js');
75
75
  require('../MobileTable/MobileTable.styles.js');
76
+ require('../NavMainLink/NavMainLink.styled.js');
77
+ require('../SearchBar/SearchBar.styles.js');
78
+ require('../Nav/Nav.styles.js');
79
+ require('framer-motion');
80
+ require('../SideModal/SideModal.styles.js');
81
+ require('../IconText/IconText.styles.js');
82
+ require('../Dropdown/Dropdown.styles.js');
76
83
 
77
84
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
78
85
 
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var framerMotion = require('framer-motion');
6
+ var React = require('react');
7
+ var Dropdown_styles = require('./Dropdown.styles.js');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
+
13
+ var Dropdown = function (_a) {
14
+ var isOpen = _a.isOpen, onClick = _a.onClick, dropdownHeader = _a.dropdownHeader, children = _a.children;
15
+ return (React__default["default"].createElement(Dropdown_styles.DropdownContainer, null,
16
+ React__default["default"].createElement(Dropdown_styles.DropdownHeader, { onClick: onClick }, dropdownHeader),
17
+ React__default["default"].createElement(framerMotion.AnimatePresence, { initial: false }, isOpen && (React__default["default"].createElement(Dropdown_styles.DropdownChildContainer, { isOpen: isOpen, initial: "collapsed", animate: "open", exit: "collapsed", variants: {
18
+ open: { height: 'auto' },
19
+ collapsed: { height: 0 }
20
+ }, transition: { duration: 0.3, ease: [0.04, 0.62, 0.23, 0.98] } }, children)))));
21
+ };
22
+
23
+ exports.Dropdown = Dropdown;
24
+ //# sourceMappingURL=Dropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../../../_virtual/_tslib.js');
6
+ var styled = require('styled-components');
7
+ var framerMotion = require('framer-motion');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
+
13
+ var DropdownContainer = styled__default["default"](framerMotion.motion.div)(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject([""], [""])));
14
+ var DropdownHeader = styled__default["default"](framerMotion.motion.div)(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n"], ["\n cursor: pointer;\n"])));
15
+ var DropdownChildContainer = styled__default["default"](framerMotion.motion.div)(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n overflow: hidden;\n"], ["\n overflow: hidden;\n"])));
16
+ var templateObject_1, templateObject_2, templateObject_3;
17
+
18
+ exports.DropdownChildContainer = DropdownChildContainer;
19
+ exports.DropdownContainer = DropdownContainer;
20
+ exports.DropdownHeader = DropdownHeader;
21
+ //# sourceMappingURL=Dropdown.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var _tslib = require('../../../../_virtual/_tslib.js');
4
+ var styled = require('styled-components');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
9
+
10
+ styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n align-items: center;\n flex-wrap: nowrap;\n white-space: nowrap;\n"], ["\n display: flex;\n gap: ", "px;\n align-items: center;\n flex-wrap: nowrap;\n white-space: nowrap;\n"])), function (props) { var _a, _b; return (_a = props.spacing) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs; });
11
+ var templateObject_1;
12
+ //# sourceMappingURL=IconText.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconText.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../../../_virtual/_tslib.js');
6
+ var styled = require('styled-components');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
+
12
+ styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n background: ", ";\n position: fixed;\n top: ", "px;\n left: 0;\n height: ", "px;\n width: 100%;\n align-items: center;\n\n @media (min-width: ", "px) {\n height: ", "px;\n }\n"], ["\n display: flex;\n background: ", ";\n position: fixed;\n top: ", "px;\n left: 0;\n height: ", "px;\n width: 100%;\n align-items: center;\n\n @media (min-width: ", "px) {\n height: ", "px;\n }\n"])), function (props) { var _a, _b; return (_a = props === null || props === void 0 ? void 0 : props.background) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white; }, function (props) { var _a; return (_a = props.topPosition) !== null && _a !== void 0 ? _a : 0; }, function (props) { var _a, _b; return (_a = props === null || props === void 0 ? void 0 : props.height) !== null && _a !== void 0 ? _a : (_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.navHeaderHeightSmall; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeight; });
13
+ styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n margin: 0 auto;\n max-width: ", "px;\n width: 100%;\n display: flex;\n padding: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n margin: 0 auto;\n max-width: ", "px;\n width: 100%;\n display: flex;\n padding: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { return props.maxWidth; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
14
+ styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n justify-content: flex-end;\n display: flex;\n flex: 1;\n align-items: center;\n z-index: 20;\n"], ["\n justify-content: flex-end;\n display: flex;\n flex: 1;\n align-items: center;\n z-index: 20;\n"])));
15
+ styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: none;\n @media (min-width: ", "px) {\n height: 100%;\n display: flex;\n\n gap: ", "px;\n align-items: center;\n width: auto;\n margin-left: ", "px;\n }\n"], ["\n display: none;\n @media (min-width: ", "px) {\n height: 100%;\n display: flex;\n\n gap: ", "px;\n align-items: center;\n width: auto;\n margin-left: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
16
+ var NavDummySearchContainer = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n margin-left: ", "px;\n display: flex;\n align-items: center;\n flex: 1;\n"], ["\n margin-left: ", "px;\n display: flex;\n align-items: center;\n flex: 1;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
17
+ styled__default["default"](NavDummySearchContainer)(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n display: none;\n @media (min-width: ", "px) {\n display: flex;\n }\n"], ["\n display: none;\n @media (min-width: ", "px) {\n display: flex;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; });
18
+ styled__default["default"].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n display: ", ";\n background: #333;\n opacity: 0.5;\n width: 100vw;\n height: ", ";\n position: fixed;\n top: ", ";\n left: 0;\n overflow: hidden;\n z-index: 10;\n @media (min-width: ", "px) {\n height: calc(100vh - ", "px);\n top: ", ";\n }\n"], ["\n display: ", ";\n background: #333;\n opacity: 0.5;\n width: 100vw;\n height: ", ";\n position: fixed;\n top: ", ";\n left: 0;\n overflow: hidden;\n z-index: 10;\n @media (min-width: ", "px) {\n height: calc(100vh - ", "px);\n top: ", ";\n }\n"])), function (props) { return (props.show ? 'block' : 'none'); }, function (props) { var _a; return "calc(100vh - " + ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeightSmall) + "px)"; }, function (props) { var _a, _b; return "calc(" + ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeightSmall) + "px - " + ((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px)"; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeight; }, function (props) { var _a; return "calc(" + ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeight) + "px - 8px)"; });
19
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
20
+
21
+ exports.NavDummySearchContainer = NavDummySearchContainer;
22
+ //# sourceMappingURL=Nav.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nav.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var _tslib = require('../../../../_virtual/_tslib.js');
4
+ var styled = require('styled-components');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
9
+
10
+ styled__default["default"].a(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0 ", ";\n }\n"], ["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0 ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) {
11
+ var _a, _b;
12
+ return (props === null || props === void 0 ? void 0 : props.active) &&
13
+ "\n box-shadow: inset 0 -4px 0 " + ((_a = props === null || props === void 0 ? void 0 : props.borderColor) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.primary) + ";\n ";
14
+ }, function (props) { var _a, _b; return (_a = props === null || props === void 0 ? void 0 : props.borderColor) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.primary; });
15
+ var templateObject_1;
16
+ //# sourceMappingURL=NavMainLink.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavMainLink.styled.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var _tslib = require('../../../../_virtual/_tslib.js');
4
+ var styled = require('styled-components');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
9
+
10
+ styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: ", ";\n position: absolute;\n top: ", ";\n left: 0;\n width: 100%;\n"], ["\n display: ", ";\n position: absolute;\n top: ", ";\n left: 0;\n width: 100%;\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isOpen) ? 'block' : 'none'); }, function (props) { var _a, _b; return (_a = props.topPosition) !== null && _a !== void 0 ? _a : "calc(100% + " + ((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px)"; });
11
+ styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: ", ";\n align-items: center;\n margin-left: ", "px;\n cursor: pointer;\n"], ["\n display: ", ";\n align-items: center;\n margin-left: ", "px;\n cursor: pointer;\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isOpen) ? 'flex' : 'none'); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
12
+ styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n ", ";\n\n position: relative;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n flex-direction: row-reverse;\n padding-left: ", "px;\n padding-right: ", "px;\n background: ", ";\n border-top: 1px solid ", ";\n border-radius: ", "px;\n ", "\n }\n"], ["\n ", ";\n\n position: relative;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n flex-direction: row-reverse;\n padding-left: ", "px;\n padding-right: ", "px;\n background: ", ";\n border-top: 1px solid ", ";\n border-radius: ", "px;\n ", "\n }\n"])), function (props) { return props.flexGrow && "flex: 1;"; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall; }, function (props) {
13
+ return props.isOpen &&
14
+ "\n flex-direction: row;\n box-shadow: inset 0 0 2px " + props.activeBorderColor + ";\n ";
15
+ });
16
+ styled__default["default"].input(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: none;\n flex: 1;\n border: none;\n background: transparent;\n outline: none;\n font-size: ", "px;\n padding: ", "px;\n\n ::placeholder {\n /* Chrome, Firefox, Opera, Safari 10.1+ */\n color: ", ";\n opacity: 1; /* Firefox */\n }\n\n :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n /* Microsoft Edge */\n color: ", ";\n }\n @media (min-width: ", "px) {\n font-size: ", "px;\n }\n @media (min-width: ", "px) {\n display: block;\n }\n"], ["\n display: none;\n flex: 1;\n border: none;\n background: transparent;\n outline: none;\n font-size: ", "px;\n padding: ", "px;\n\n ::placeholder {\n /* Chrome, Firefox, Opera, Safari 10.1+ */\n color: ", ";\n opacity: 1; /* Firefox */\n }\n\n :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n /* Microsoft Edge */\n color: ", ";\n }\n @media (min-width: ", "px) {\n font-size: ", "px;\n }\n @media (min-width: ", "px) {\n display: block;\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; }, function (props) {
17
+ var _a, _b;
18
+ return props.inputSize === 'small'
19
+ ? (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs
20
+ : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs2;
21
+ }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.mediumDark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.mediumDark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.mediumDark; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) {
22
+ var _a, _b;
23
+ return props.inputSize === 'small'
24
+ ? (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2
25
+ : (_b = props.theme.typography) === null || _b === void 0 ? void 0 : _b.size.s3;
26
+ }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; });
27
+ styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-right: ", "px;\n"], ["\n display: flex;\n align-items: center;\n margin-right: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
28
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
29
+ //# sourceMappingURL=SearchBar.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var framerMotion = require('framer-motion');
7
+ var reactDom = require('react-dom');
8
+ var SideModal_styles = require('./SideModal.styles.js');
9
+ var designTokens = require('@citygross/design-tokens');
10
+
11
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
+
13
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
+
15
+ var SideModal = function (_a) {
16
+ var _b, _c;
17
+ var onBackdropClick = _a.onBackdropClick, _d = _a.background, background = _d === void 0 ? '#fff' : _d, _e = _a.overlayBackground, overlayBackground = _e === void 0 ? (_c = (_b = designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.darkOverlay) !== null && _c !== void 0 ? _c : '' : _e, _f = _a.width, width = _f === void 0 ? 375 : _f, isVisible = _a.isVisible, slideFrom = _a.slideFrom, _g = _a.querySelector, querySelector = _g === void 0 ? '#root' : _g, children = _a.children;
18
+ var domSafe = typeof document !== 'undefined';
19
+ return domSafe
20
+ ? reactDom.createPortal(React__default["default"].createElement(framerMotion.AnimatePresence, null, isVisible && (React__default["default"].createElement(SideModal_styles.SideModalOverlay, { onClick: onBackdropClick, overlayBackground: overlayBackground, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: {
21
+ type: 'just'
22
+ } },
23
+ React__default["default"].createElement(SideModal_styles.SideModalContainer, { slideFrom: slideFrom, transition: { type: 'just' }, width: width, onClick: function (e) { return e.stopPropagation(); }, background: background, initial: { x: slideFrom === 'left' ? '-100%' : '100%' }, animate: { x: 0 }, exit: { x: slideFrom === 'left' ? '-100%' : '100%' } }, children)))), document.querySelector(querySelector) || document.body)
24
+ : null;
25
+ };
26
+
27
+ exports.SideModal = SideModal;
28
+ //# sourceMappingURL=SideModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../../../_virtual/_tslib.js');
6
+ var styled = require('styled-components');
7
+ var framerMotion = require('framer-motion');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
+
13
+ var SideModalOverlay = styled__default["default"](framerMotion.motion.div)(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n z-index: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n z-index: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.zIndex.modal; }, function (props) { return props.overlayBackground; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
14
+ var SideModalContainer = styled__default["default"](framerMotion.motion.div)(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n overflow: auto;\n min-height: 100vh;\n background: ", ";\n width: 100%;\n ", ";\n position: absolute;\n\n @media (min-width: ", "px) {\n width: ", "px;\n }\n"], ["\n overflow: auto;\n min-height: 100vh;\n background: ", ";\n width: 100%;\n ", ";\n position: absolute;\n\n @media (min-width: ", "px) {\n width: ", "px;\n }\n"])), function (props) { return props.background; }, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.width; });
15
+ var templateObject_1, templateObject_2;
16
+
17
+ exports.SideModalContainer = SideModalContainer;
18
+ exports.SideModalOverlay = SideModalOverlay;
19
+ //# sourceMappingURL=SideModal.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideModal.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -73,6 +73,13 @@ require('../../containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js'
73
73
  require('../UnorderedList/UnorderedList.styles.js');
74
74
  var WarningLabel_styles = require('./WarningLabel.styles.js');
75
75
  require('../MobileTable/MobileTable.styles.js');
76
+ require('../NavMainLink/NavMainLink.styled.js');
77
+ require('../SearchBar/SearchBar.styles.js');
78
+ require('../Nav/Nav.styles.js');
79
+ require('framer-motion');
80
+ require('../SideModal/SideModal.styles.js');
81
+ require('../IconText/IconText.styles.js');
82
+ require('../Dropdown/Dropdown.styles.js');
76
83
 
77
84
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
78
85
 
@@ -1 +1 @@
1
- {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -64,6 +64,16 @@ var TwoColumnsPageContainer = require('./containers/TwoColumnsContainer/TwoColum
64
64
  var UnorderedList_styles = require('./components/UnorderedList/UnorderedList.styles.js');
65
65
  var WarningLabel = require('./components/WarningLabel/WarningLabel.js');
66
66
  var MobileTable_styles = require('./components/MobileTable/MobileTable.styles.js');
67
+ require('@citygross/design-tokens');
68
+ require('@citygross/utils');
69
+ require('react');
70
+ require('./components/NavMainLink/NavMainLink.styled.js');
71
+ require('./components/SearchBar/SearchBar.styles.js');
72
+ require('./components/Nav/Nav.styles.js');
73
+ var SideModal = require('./components/SideModal/SideModal.js');
74
+ require('./components/IconText/IconText.styles.js');
75
+ var Logo = require('./components/Logo/Logo.js');
76
+ var Dropdown = require('./components/Dropdown/Dropdown.js');
67
77
 
68
78
 
69
79
 
@@ -160,4 +170,7 @@ exports.WarningLabel = WarningLabel.WarningLabel;
160
170
  exports.MobileLabel = MobileTable_styles.MobileLabel;
161
171
  exports.MobileTable = MobileTable_styles.MobileTable;
162
172
  exports.MobileTd = MobileTable_styles.MobileTd;
173
+ exports.SideModal = SideModal.SideModal;
174
+ exports.Logo = Logo.Logo;
175
+ exports.Dropdown = Dropdown.Dropdown;
163
176
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -69,6 +69,13 @@ import '../../containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js';
69
69
  import '../UnorderedList/UnorderedList.styles.js';
70
70
  import '../WarningLabel/WarningLabel.styles.js';
71
71
  import '../MobileTable/MobileTable.styles.js';
72
+ import '../NavMainLink/NavMainLink.styled.js';
73
+ import '../SearchBar/SearchBar.styles.js';
74
+ import '../Nav/Nav.styles.js';
75
+ import 'framer-motion';
76
+ import '../SideModal/SideModal.styles.js';
77
+ import '../IconText/IconText.styles.js';
78
+ import '../Dropdown/Dropdown.styles.js';
72
79
 
73
80
  function AddressBlock(_a) {
74
81
  var _b = _a.deliverOption, deliverOption = _b === void 0 ? 'Address' : _b, icon = _a.icon, storeName = _a.storeName, customerName = _a.customerName, street = _a.street, zipCode = _a.zipCode, city = _a.city, doorCode = _a.doorCode, floor = _a.floor, deliveryInstructions = _a.deliveryInstructions, xsSpacing = _a.xsSpacing, lgSpacing = _a.lgSpacing;
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ import { AnimatePresence } from 'framer-motion';
2
+ import React from 'react';
3
+ import { DropdownContainer, DropdownHeader, DropdownChildContainer } from './Dropdown.styles.js';
4
+
5
+ var Dropdown = function (_a) {
6
+ var isOpen = _a.isOpen, onClick = _a.onClick, dropdownHeader = _a.dropdownHeader, children = _a.children;
7
+ return (React.createElement(DropdownContainer, null,
8
+ React.createElement(DropdownHeader, { onClick: onClick }, dropdownHeader),
9
+ React.createElement(AnimatePresence, { initial: false }, isOpen && (React.createElement(DropdownChildContainer, { isOpen: isOpen, initial: "collapsed", animate: "open", exit: "collapsed", variants: {
10
+ open: { height: 'auto' },
11
+ collapsed: { height: 0 }
12
+ }, transition: { duration: 0.3, ease: [0.04, 0.62, 0.23, 0.98] } }, children)))));
13
+ };
14
+
15
+ export { Dropdown };
16
+ //# sourceMappingURL=Dropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+ import { motion } from 'framer-motion';
4
+
5
+ var DropdownContainer = styled(motion.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
6
+ var DropdownHeader = styled(motion.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n"], ["\n cursor: pointer;\n"])));
7
+ var DropdownChildContainer = styled(motion.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n"], ["\n overflow: hidden;\n"])));
8
+ var templateObject_1, templateObject_2, templateObject_3;
9
+
10
+ export { DropdownChildContainer, DropdownContainer, DropdownHeader };
11
+ //# sourceMappingURL=Dropdown.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: ", "px;\n align-items: center;\n flex-wrap: nowrap;\n white-space: nowrap;\n"], ["\n display: flex;\n gap: ", "px;\n align-items: center;\n flex-wrap: nowrap;\n white-space: nowrap;\n"])), function (props) { var _a, _b; return (_a = props.spacing) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs; });
5
+ var templateObject_1;
6
+ //# sourceMappingURL=IconText.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconText.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,14 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n background: ", ";\n position: fixed;\n top: ", "px;\n left: 0;\n height: ", "px;\n width: 100%;\n align-items: center;\n\n @media (min-width: ", "px) {\n height: ", "px;\n }\n"], ["\n display: flex;\n background: ", ";\n position: fixed;\n top: ", "px;\n left: 0;\n height: ", "px;\n width: 100%;\n align-items: center;\n\n @media (min-width: ", "px) {\n height: ", "px;\n }\n"])), function (props) { var _a, _b; return (_a = props === null || props === void 0 ? void 0 : props.background) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white; }, function (props) { var _a; return (_a = props.topPosition) !== null && _a !== void 0 ? _a : 0; }, function (props) { var _a, _b; return (_a = props === null || props === void 0 ? void 0 : props.height) !== null && _a !== void 0 ? _a : (_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.navHeaderHeightSmall; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeight; });
5
+ styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 0 auto;\n max-width: ", "px;\n width: 100%;\n display: flex;\n padding: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n margin: 0 auto;\n max-width: ", "px;\n width: 100%;\n display: flex;\n padding: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { return props.maxWidth; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
6
+ styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n justify-content: flex-end;\n display: flex;\n flex: 1;\n align-items: center;\n z-index: 20;\n"], ["\n justify-content: flex-end;\n display: flex;\n flex: 1;\n align-items: center;\n z-index: 20;\n"])));
7
+ styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: none;\n @media (min-width: ", "px) {\n height: 100%;\n display: flex;\n\n gap: ", "px;\n align-items: center;\n width: auto;\n margin-left: ", "px;\n }\n"], ["\n display: none;\n @media (min-width: ", "px) {\n height: 100%;\n display: flex;\n\n gap: ", "px;\n align-items: center;\n width: auto;\n margin-left: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
8
+ var NavDummySearchContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-left: ", "px;\n display: flex;\n align-items: center;\n flex: 1;\n"], ["\n margin-left: ", "px;\n display: flex;\n align-items: center;\n flex: 1;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
9
+ styled(NavDummySearchContainer)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: none;\n @media (min-width: ", "px) {\n display: flex;\n }\n"], ["\n display: none;\n @media (min-width: ", "px) {\n display: flex;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; });
10
+ styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: ", ";\n background: #333;\n opacity: 0.5;\n width: 100vw;\n height: ", ";\n position: fixed;\n top: ", ";\n left: 0;\n overflow: hidden;\n z-index: 10;\n @media (min-width: ", "px) {\n height: calc(100vh - ", "px);\n top: ", ";\n }\n"], ["\n display: ", ";\n background: #333;\n opacity: 0.5;\n width: 100vw;\n height: ", ";\n position: fixed;\n top: ", ";\n left: 0;\n overflow: hidden;\n z-index: 10;\n @media (min-width: ", "px) {\n height: calc(100vh - ", "px);\n top: ", ";\n }\n"])), function (props) { return (props.show ? 'block' : 'none'); }, function (props) { var _a; return "calc(100vh - " + ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeightSmall) + "px)"; }, function (props) { var _a, _b; return "calc(" + ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeightSmall) + "px - " + ((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px)"; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeight; }, function (props) { var _a; return "calc(" + ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.navHeaderHeight) + "px - 8px)"; });
11
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
12
+
13
+ export { NavDummySearchContainer };
14
+ //# sourceMappingURL=Nav.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nav.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0 ", ";\n }\n"], ["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0 ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) {
5
+ var _a, _b;
6
+ return (props === null || props === void 0 ? void 0 : props.active) &&
7
+ "\n box-shadow: inset 0 -4px 0 " + ((_a = props === null || props === void 0 ? void 0 : props.borderColor) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.primary) + ";\n ";
8
+ }, function (props) { var _a, _b; return (_a = props === null || props === void 0 ? void 0 : props.borderColor) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.primary; });
9
+ var templateObject_1;
10
+ //# sourceMappingURL=NavMainLink.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavMainLink.styled.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,23 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n position: absolute;\n top: ", ";\n left: 0;\n width: 100%;\n"], ["\n display: ", ";\n position: absolute;\n top: ", ";\n left: 0;\n width: 100%;\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isOpen) ? 'block' : 'none'); }, function (props) { var _a, _b; return (_a = props.topPosition) !== null && _a !== void 0 ? _a : "calc(100% + " + ((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px)"; });
5
+ styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n align-items: center;\n margin-left: ", "px;\n cursor: pointer;\n"], ["\n display: ", ";\n align-items: center;\n margin-left: ", "px;\n cursor: pointer;\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isOpen) ? 'flex' : 'none'); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
6
+ styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n\n position: relative;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n flex-direction: row-reverse;\n padding-left: ", "px;\n padding-right: ", "px;\n background: ", ";\n border-top: 1px solid ", ";\n border-radius: ", "px;\n ", "\n }\n"], ["\n ", ";\n\n position: relative;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n flex-direction: row-reverse;\n padding-left: ", "px;\n padding-right: ", "px;\n background: ", ";\n border-top: 1px solid ", ";\n border-radius: ", "px;\n ", "\n }\n"])), function (props) { return props.flexGrow && "flex: 1;"; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall; }, function (props) {
7
+ return props.isOpen &&
8
+ "\n flex-direction: row;\n box-shadow: inset 0 0 2px " + props.activeBorderColor + ";\n ";
9
+ });
10
+ styled.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: none;\n flex: 1;\n border: none;\n background: transparent;\n outline: none;\n font-size: ", "px;\n padding: ", "px;\n\n ::placeholder {\n /* Chrome, Firefox, Opera, Safari 10.1+ */\n color: ", ";\n opacity: 1; /* Firefox */\n }\n\n :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n /* Microsoft Edge */\n color: ", ";\n }\n @media (min-width: ", "px) {\n font-size: ", "px;\n }\n @media (min-width: ", "px) {\n display: block;\n }\n"], ["\n display: none;\n flex: 1;\n border: none;\n background: transparent;\n outline: none;\n font-size: ", "px;\n padding: ", "px;\n\n ::placeholder {\n /* Chrome, Firefox, Opera, Safari 10.1+ */\n color: ", ";\n opacity: 1; /* Firefox */\n }\n\n :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n /* Microsoft Edge */\n color: ", ";\n }\n @media (min-width: ", "px) {\n font-size: ", "px;\n }\n @media (min-width: ", "px) {\n display: block;\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; }, function (props) {
11
+ var _a, _b;
12
+ return props.inputSize === 'small'
13
+ ? (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs
14
+ : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs2;
15
+ }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.mediumDark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.mediumDark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.mediumDark; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) {
16
+ var _a, _b;
17
+ return props.inputSize === 'small'
18
+ ? (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2
19
+ : (_b = props.theme.typography) === null || _b === void 0 ? void 0 : _b.size.s3;
20
+ }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; });
21
+ styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-right: ", "px;\n"], ["\n display: flex;\n align-items: center;\n margin-right: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
22
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
23
+ //# sourceMappingURL=SearchBar.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { AnimatePresence } from 'framer-motion';
3
+ import { createPortal } from 'react-dom';
4
+ import { SideModalOverlay, SideModalContainer } from './SideModal.styles.js';
5
+ import { theme } from '@citygross/design-tokens';
6
+
7
+ var SideModal = function (_a) {
8
+ var _b, _c;
9
+ var onBackdropClick = _a.onBackdropClick, _d = _a.background, background = _d === void 0 ? '#fff' : _d, _e = _a.overlayBackground, overlayBackground = _e === void 0 ? (_c = (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.darkOverlay) !== null && _c !== void 0 ? _c : '' : _e, _f = _a.width, width = _f === void 0 ? 375 : _f, isVisible = _a.isVisible, slideFrom = _a.slideFrom, _g = _a.querySelector, querySelector = _g === void 0 ? '#root' : _g, children = _a.children;
10
+ var domSafe = typeof document !== 'undefined';
11
+ return domSafe
12
+ ? createPortal(React.createElement(AnimatePresence, null, isVisible && (React.createElement(SideModalOverlay, { onClick: onBackdropClick, overlayBackground: overlayBackground, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: {
13
+ type: 'just'
14
+ } },
15
+ React.createElement(SideModalContainer, { slideFrom: slideFrom, transition: { type: 'just' }, width: width, onClick: function (e) { return e.stopPropagation(); }, background: background, initial: { x: slideFrom === 'left' ? '-100%' : '100%' }, animate: { x: 0 }, exit: { x: slideFrom === 'left' ? '-100%' : '100%' } }, children)))), document.querySelector(querySelector) || document.body)
16
+ : null;
17
+ };
18
+
19
+ export { SideModal };
20
+ //# sourceMappingURL=SideModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+ import { motion } from 'framer-motion';
4
+
5
+ var SideModalOverlay = styled(motion.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n z-index: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n z-index: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.zIndex.modal; }, function (props) { return props.overlayBackground; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
6
+ var SideModalContainer = styled(motion.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n overflow: auto;\n min-height: 100vh;\n background: ", ";\n width: 100%;\n ", ";\n position: absolute;\n\n @media (min-width: ", "px) {\n width: ", "px;\n }\n"], ["\n overflow: auto;\n min-height: 100vh;\n background: ", ";\n width: 100%;\n ", ";\n position: absolute;\n\n @media (min-width: ", "px) {\n width: ", "px;\n }\n"])), function (props) { return props.background; }, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.width; });
7
+ var templateObject_1, templateObject_2;
8
+
9
+ export { SideModalContainer, SideModalOverlay };
10
+ //# sourceMappingURL=SideModal.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideModal.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -69,6 +69,13 @@ import '../../containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js';
69
69
  import '../UnorderedList/UnorderedList.styles.js';
70
70
  import { WarningIndicator } from './WarningLabel.styles.js';
71
71
  import '../MobileTable/MobileTable.styles.js';
72
+ import '../NavMainLink/NavMainLink.styled.js';
73
+ import '../SearchBar/SearchBar.styles.js';
74
+ import '../Nav/Nav.styles.js';
75
+ import 'framer-motion';
76
+ import '../SideModal/SideModal.styles.js';
77
+ import '../IconText/IconText.styles.js';
78
+ import '../Dropdown/Dropdown.styles.js';
72
79
 
73
80
  function WarningLabel(_a) {
74
81
  var children = _a.children, background = _a.background, toolTip = _a.toolTip;
@@ -1 +1 @@
1
- {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -60,4 +60,14 @@ export { TwoColumnsPageContainer } from './containers/TwoColumnsContainer/TwoCol
60
60
  export { UnorderedList, UnorderedListItem } from './components/UnorderedList/UnorderedList.styles.js';
61
61
  export { WarningLabel } from './components/WarningLabel/WarningLabel.js';
62
62
  export { MobileLabel, MobileTable, MobileTd } from './components/MobileTable/MobileTable.styles.js';
63
+ import '@citygross/design-tokens';
64
+ import '@citygross/utils';
65
+ import 'react';
66
+ import './components/NavMainLink/NavMainLink.styled.js';
67
+ import './components/SearchBar/SearchBar.styles.js';
68
+ import './components/Nav/Nav.styles.js';
69
+ export { SideModal } from './components/SideModal/SideModal.js';
70
+ import './components/IconText/IconText.styles.js';
71
+ export { Logo } from './components/Logo/Logo.js';
72
+ export { Dropdown } from './components/Dropdown/Dropdown.js';
63
73
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.79",
3
+ "version": "0.7.80",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -71,5 +71,5 @@
71
71
  "moment": "^2.29.1",
72
72
  "react-loading-skeleton": "^2.2.0"
73
73
  },
74
- "gitHead": "2f70e6546b103bc7d2929abee1544c6bd1fd4931"
74
+ "gitHead": "08e4bf5ca179bcfca31e82cc5797a128181fc124"
75
75
  }