@citygross/components 0.7.33 → 0.7.37

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 (45) hide show
  1. package/build/@types/components/BackButton/BackButton.d.ts +8 -0
  2. package/build/@types/components/BackButton/BackButton.stories.d.ts +20 -0
  3. package/build/@types/components/BackButton/BackButton.styles.d.ts +2 -0
  4. package/build/@types/index.d.ts +6 -0
  5. package/build/cjs/components/src/components/BackButton/BackButton.js +24 -0
  6. package/build/cjs/components/src/components/BackButton/BackButton.js.map +1 -0
  7. package/build/cjs/components/src/components/BackButton/BackButton.styles.js +18 -0
  8. package/build/cjs/components/src/components/BackButton/BackButton.styles.js.map +1 -0
  9. package/build/cjs/components/src/components/Menu/Menu.js +23 -0
  10. package/build/cjs/components/src/components/Menu/Menu.js.map +1 -0
  11. package/build/cjs/components/src/components/Menu/Menu.styles.js +20 -0
  12. package/build/cjs/components/src/components/Menu/Menu.styles.js.map +1 -0
  13. package/build/cjs/components/src/components/Menu/MenuItem.js +19 -0
  14. package/build/cjs/components/src/components/Menu/MenuItem.js.map +1 -0
  15. package/build/cjs/components/src/components/Pagination/Pagination.js +54 -0
  16. package/build/cjs/components/src/components/Pagination/Pagination.js.map +1 -0
  17. package/build/cjs/components/src/components/Pagination/Pagination.styles.js +18 -0
  18. package/build/cjs/components/src/components/Pagination/Pagination.styles.js.map +1 -0
  19. package/build/cjs/components/src/components/Table/Table.styles.js +29 -0
  20. package/build/cjs/components/src/components/Table/Table.styles.js.map +1 -0
  21. package/build/cjs/components/src/components/UnorderedList/UnorderedList.styles.js +18 -0
  22. package/build/cjs/components/src/components/UnorderedList/UnorderedList.styles.js.map +1 -0
  23. package/build/cjs/components/src/index.js +17 -0
  24. package/build/cjs/components/src/index.js.map +1 -1
  25. package/build/es/components/src/components/BackButton/BackButton.js +16 -0
  26. package/build/es/components/src/components/BackButton/BackButton.js.map +1 -0
  27. package/build/es/components/src/components/BackButton/BackButton.styles.js +9 -0
  28. package/build/es/components/src/components/BackButton/BackButton.styles.js.map +1 -0
  29. package/build/es/components/src/components/Menu/Menu.js +15 -0
  30. package/build/es/components/src/components/Menu/Menu.js.map +1 -0
  31. package/build/es/components/src/components/Menu/Menu.styles.js +10 -0
  32. package/build/es/components/src/components/Menu/Menu.styles.js.map +1 -0
  33. package/build/es/components/src/components/Menu/MenuItem.js +11 -0
  34. package/build/es/components/src/components/Menu/MenuItem.js.map +1 -0
  35. package/build/es/components/src/components/Pagination/Pagination.js +46 -0
  36. package/build/es/components/src/components/Pagination/Pagination.js.map +1 -0
  37. package/build/es/components/src/components/Pagination/Pagination.styles.js +9 -0
  38. package/build/es/components/src/components/Pagination/Pagination.styles.js.map +1 -0
  39. package/build/es/components/src/components/Table/Table.styles.js +17 -0
  40. package/build/es/components/src/components/Table/Table.styles.js.map +1 -0
  41. package/build/es/components/src/components/UnorderedList/UnorderedList.styles.js +9 -0
  42. package/build/es/components/src/components/UnorderedList/UnorderedList.styles.js.map +1 -0
  43. package/build/es/components/src/index.js +6 -0
  44. package/build/es/components/src/index.js.map +1 -1
  45. package/package.json +2 -2
@@ -0,0 +1,8 @@
1
+ export declare type TBackButton = {
2
+ label?: string;
3
+ icon?: JSX.Element;
4
+ color?: string;
5
+ onClick?: () => void;
6
+ children?: JSX.Element;
7
+ };
8
+ export declare function BackButton({ label, color, icon, onClick, children }: TBackButton): JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { Story } from '@storybook/react';
2
+ import { TBackButton, BackButton } from './BackButton';
3
+ declare const _default: {
4
+ component: typeof BackButton;
5
+ title: string;
6
+ argTypes: {
7
+ color: {
8
+ options: string[];
9
+ mapping: import("@citygross/design-tokens").Palette | never[];
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ icon: {
15
+ control: boolean;
16
+ };
17
+ };
18
+ };
19
+ export default _default;
20
+ export declare const Default: Story<TBackButton>;
@@ -0,0 +1,2 @@
1
+ export declare const BackButtonFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const BackText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -5,6 +5,7 @@ export * from './components/Header/Header';
5
5
  export * from './components/Badge/Badge';
6
6
  export * from './components/Box/Box';
7
7
  export * from './components/Button';
8
+ export * from './components/BackButton/BackButton';
8
9
  export * from './components/CartItemSummary/CartItemSummary';
9
10
  export * from './components/CartSummary/CartSummary';
10
11
  export * from './components/CustomerInfoBlock/CustomerInfoBlock';
@@ -12,6 +13,8 @@ export * from './components/Collapsable/Collapsable';
12
13
  export * from './components/DeliverySlotItem/DeliverySlotItem';
13
14
  export * from './components/Slider/Slider';
14
15
  export * from './components/DeliveryTimeBlock/DeliveryTimeBlock';
16
+ export * from './components/Menu/Menu';
17
+ export * from './components/Menu/MenuItem';
15
18
  export * from './components/Divider/Divider';
16
19
  export * from './components/DotIndicator/DotIndicator';
17
20
  export * from './components/Form/Form';
@@ -39,8 +42,11 @@ export * from './components/Spinner/Spinner';
39
42
  export * from './components/Stepper';
40
43
  export * from './components/StepperMobile/StepperMobile';
41
44
  export * from './components/FormElements/TextArea/TextArea';
45
+ export * from './components/Table/';
42
46
  export * from './components/Timeline/Timeline';
43
47
  export * from './components/ToolTip/ToolTip';
44
48
  export * from './components/QuantitySelector/QuantitySelector';
49
+ export * from './components/Pagination/Pagination';
45
50
  export * from './containers/PageContainer/PageContainer';
46
51
  export * from './containers/TwoColumnsContainer/TwoColumnsPageContainer';
52
+ export * from './components/UnorderedList';
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var BackButton_styles = require('./BackButton.styles.js');
7
+ var Icon = require('@citygross/icons');
8
+ var typography = require('@citygross/typography');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+
14
+ function BackButton(_a) {
15
+ var label = _a.label, color = _a.color, _b = _a.icon, icon = _b === void 0 ? React__default['default'].createElement(Icon.Icons.ChevronLeft, null) : _b, onClick = _a.onClick, children = _a.children;
16
+ return (React__default['default'].createElement(BackButton_styles.BackButtonFlex, { onClick: onClick },
17
+ icon,
18
+ React__default['default'].createElement(BackButton_styles.BackText, null,
19
+ label && React__default['default'].createElement(typography.BodyText, { color: color }, label),
20
+ children)));
21
+ }
22
+
23
+ exports.BackButton = BackButton;
24
+ //# sourceMappingURL=BackButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
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
+ var BackButtonFlex = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
13
+ var BackText = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n margin-top: 2px;\n"], ["\n margin-top: 2px;\n"])));
14
+ var templateObject_1, templateObject_2;
15
+
16
+ exports.BackButtonFlex = BackButtonFlex;
17
+ exports.BackText = BackText;
18
+ //# sourceMappingURL=BackButton.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var Menu_styles = require('./Menu.styles.js');
7
+ var utils = require('@citygross/utils');
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
+ function Menu(_a) {
14
+ var showFade = _a.showFade, onScroll = _a.onScroll, children = _a.children;
15
+ var isMobile = utils.useDetectDevice().isMobile;
16
+ return (React__default['default'].createElement(React__default['default'].Fragment, null,
17
+ React__default['default'].createElement(Menu_styles.MenuContainer, { onScroll: onScroll && onScroll }, children),
18
+ ' ',
19
+ isMobile && React__default['default'].createElement(Menu_styles.Fade, { isVisible: showFade })));
20
+ }
21
+
22
+ exports.Menu = Menu;
23
+ //# sourceMappingURL=Menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
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
+ var MenuContainer = styled__default['default'].nav(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n width: 100%;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n max-width: ", "px;\n margin-left: auto;\n margin-right: auto;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n padding: 0 20px;\n width: calc(100% - 40px);\n }\n"], ["\n position: relative;\n width: 100%;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n max-width: ", "px;\n margin-left: auto;\n margin-right: auto;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n padding: 0 20px;\n width: calc(100% - 40px);\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.twoColumnsContainerMaxWidth; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.default; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
13
+ var MenuItem = styled__default['default'].a(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n margin: 0 ", "px;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"], ["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n margin: 0 ", "px;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding; }, 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.xxs; }, function (props) { var _a; return props.active ? "" + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary) : 'transparent'; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, 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.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary; });
14
+ var Fade = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"], ["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isVisible) ? '1' : '0'); });
15
+ var templateObject_1, templateObject_2, templateObject_3;
16
+
17
+ exports.Fade = Fade;
18
+ exports.MenuContainer = MenuContainer;
19
+ exports.MenuItem = MenuItem;
20
+ //# sourceMappingURL=Menu.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.styles.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 React = require('react');
7
+ var Menu_styles = require('./Menu.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
+ function MenuItem(_a) {
14
+ var active = _a.active, children = _a.children, props = _tslib.__rest(_a, ["active", "children"]);
15
+ return (React__default['default'].createElement(Menu_styles.MenuItem, _tslib.__assign({}, props, { active: active }), children));
16
+ }
17
+
18
+ exports.MenuItem = MenuItem;
19
+ //# sourceMappingURL=MenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,54 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var PaginationButton = require('../Button/PaginationButton.js');
7
+ var Box = require('../Box/Box.js');
8
+ var Pagination_styles = require('./Pagination.styles.js');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+
14
+ function createPagination(totalItems, itemsPerPage) {
15
+ var amountOfPages = Math.ceil((totalItems || 0) / (itemsPerPage !== null && itemsPerPage !== void 0 ? itemsPerPage : 6));
16
+ if (amountOfPages === 0 || itemsPerPage === 0) {
17
+ return [];
18
+ }
19
+ var pagination = [];
20
+ var block = [];
21
+ var counter = 0;
22
+ new Array(amountOfPages).fill(0).map(function (_, index) {
23
+ if (counter < 3) {
24
+ counter++;
25
+ block.push(index);
26
+ if (index === amountOfPages - 1) {
27
+ pagination.push(block);
28
+ }
29
+ }
30
+ else {
31
+ counter = 0;
32
+ block.push(index);
33
+ pagination.push(block);
34
+ block = [];
35
+ }
36
+ return null;
37
+ });
38
+ return pagination;
39
+ }
40
+ function Pagination(_a) {
41
+ var totalItems = _a.totalItems, currentPage = _a.currentPage, fetchItems = _a.fetchItems, itemsPerPage = _a.itemsPerPage;
42
+ var _b = React.useState(Math.floor((currentPage - 1) / 4)), currentIndex = _b[0], setIndex = _b[1];
43
+ var pagination = createPagination(totalItems, itemsPerPage);
44
+ return (React__default['default'].createElement(Box.Box, null, pagination && pagination.length > 0 && (React__default['default'].createElement(Pagination_styles.Flex, null,
45
+ currentIndex > 0 && (React__default['default'].createElement(Pagination_styles.PaginationButtonWrapper, null,
46
+ React__default['default'].createElement(PaginationButton.PaginationButton, { color: 'white', onClick: function () { return setIndex(currentIndex - 1); }, width: 36, height: 36 }, '...'))),
47
+ pagination[currentIndex].map(function (page) { return (React__default['default'].createElement(Pagination_styles.PaginationButtonWrapper, { key: page },
48
+ React__default['default'].createElement(PaginationButton.PaginationButton, { color: currentPage === page + 1 ? 'primary' : 'white', width: 36, height: 36, onClick: function () { return fetchItems(page + 1); } }, page + 1))); }),
49
+ pagination.length > 1 && currentIndex < pagination.length - 1 && (React__default['default'].createElement(Pagination_styles.PaginationButtonWrapper, null,
50
+ React__default['default'].createElement(PaginationButton.PaginationButton, { color: 'white', onClick: function () { return setIndex(currentIndex + 1); }, width: 36, height: 36 }, '...')))))));
51
+ }
52
+
53
+ exports.Pagination = Pagination;
54
+ //# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
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
+ var PaginationButtonWrapper = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: 0 ", "px;\n"], ["\n padding: 0 ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
13
+ var Flex = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n"])));
14
+ var templateObject_1, templateObject_2;
15
+
16
+ exports.Flex = Flex;
17
+ exports.PaginationButtonWrapper = PaginationButtonWrapper;
18
+ //# sourceMappingURL=Pagination.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,29 @@
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
+ var Table = styled__default['default'].table(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n width: 100%;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n"], ["\n width: 100%;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n"])));
13
+ var Thead = styled__default['default'].thead(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n border-bottom: 1px solid\n ", ";\n"], ["\n border-bottom: 1px solid\n ", ";\n"])), function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); });
14
+ var Th = styled__default['default'].th(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"], ["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return props.fontSize || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3); }, function (props) { var _a; return props.weight || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.regular); });
15
+ var Tr = styled__default['default'].tr(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"], ["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest; });
16
+ var Td = styled__default['default'].td(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); }, function (props) { return (props.strikeThrough ? 'line-through' : 'none'); }, function (props) {
17
+ var _a, _b;
18
+ return props.strikeThrough
19
+ ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
20
+ : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.darkest;
21
+ });
22
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
23
+
24
+ exports.Table = Table;
25
+ exports.Td = Td;
26
+ exports.Th = Th;
27
+ exports.Thead = Thead;
28
+ exports.Tr = Tr;
29
+ //# sourceMappingURL=Table.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
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
+ var UnorderedList = styled__default['default'].ul(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: 0 ", "px\n ", "px;\n list-style: inside disc;\n"], ["\n padding: 0 ", "px\n ", "px;\n list-style: inside disc;\n"])), 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; });
13
+ var UnorderedListItem = styled__default['default'].li(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n margin: ", "px 0;\n font-size: ", "px;\n line-height: ", "px;\n"], ["\n margin: ", "px 0;\n font-size: ", "px;\n line-height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.s2; });
14
+ var templateObject_1, templateObject_2;
15
+
16
+ exports.UnorderedList = UnorderedList;
17
+ exports.UnorderedListItem = UnorderedListItem;
18
+ //# sourceMappingURL=UnorderedList.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnorderedList.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -10,6 +10,7 @@ var Badge = require('./components/Badge/Badge.js');
10
10
  var Box = require('./components/Box/Box.js');
11
11
  var IconButton = require('./components/Button/IconButton.js');
12
12
  var PaginationButton = require('./components/Button/PaginationButton.js');
13
+ var BackButton = require('./components/BackButton/BackButton.js');
13
14
  var CartItemSummary = require('./components/CartItemSummary/CartItemSummary.js');
14
15
  var CartSummary = require('./components/CartSummary/CartSummary.js');
15
16
  var CustomerInfoBlock = require('./components/CustomerInfoBlock/CustomerInfoBlock.js');
@@ -17,6 +18,8 @@ var Collapsable = require('./components/Collapsable/Collapsable.js');
17
18
  var DeliverySlotItem = require('./components/DeliverySlotItem/DeliverySlotItem.js');
18
19
  var Slider = require('./components/Slider/Slider.js');
19
20
  var DeliveryTimeBlock = require('./components/DeliveryTimeBlock/DeliveryTimeBlock.js');
21
+ var Menu = require('./components/Menu/Menu.js');
22
+ var MenuItem = require('./components/Menu/MenuItem.js');
20
23
  var Divider = require('./components/Divider/Divider.js');
21
24
  var DotIndicator = require('./components/DotIndicator/DotIndicator.js');
22
25
  var Form = require('./components/Form/Form.js');
@@ -44,11 +47,14 @@ var StepperList = require('./components/Stepper/StepperList.js');
44
47
  var StepperListItem = require('./components/Stepper/StepperListItem.js');
45
48
  var StepperMobile = require('./components/StepperMobile/StepperMobile.js');
46
49
  var TextArea = require('./components/FormElements/TextArea/TextArea.js');
50
+ var Table_styles = require('./components/Table/Table.styles.js');
47
51
  var Timeline = require('./components/Timeline/Timeline.js');
48
52
  var ToolTip = require('./components/ToolTip/ToolTip.js');
49
53
  var QuantitySelector = require('./components/QuantitySelector/QuantitySelector.js');
54
+ var Pagination = require('./components/Pagination/Pagination.js');
50
55
  var PageContainer = require('./containers/PageContainer/PageContainer.js');
51
56
  var TwoColumnsPageContainer = require('./containers/TwoColumnsContainer/TwoColumnsPageContainer.js');
57
+ var UnorderedList_styles = require('./components/UnorderedList/UnorderedList.styles.js');
52
58
 
53
59
 
54
60
 
@@ -72,6 +78,7 @@ exports.Badge = Badge.Badge;
72
78
  exports.Box = Box.Box;
73
79
  exports.IconButton = IconButton.IconButton;
74
80
  exports.PaginationButton = PaginationButton.PaginationButton;
81
+ exports.BackButton = BackButton.BackButton;
75
82
  exports.CartItemSummary = CartItemSummary.CartItemSummary;
76
83
  exports.CartSummary = CartSummary.CartSummary;
77
84
  exports.CustomerInfoBlock = CustomerInfoBlock.CustomerInfoBlock;
@@ -79,6 +86,8 @@ exports.Collapsable = Collapsable.Collapsable;
79
86
  exports.DeliverySlotItem = DeliverySlotItem.DeliverySlotItem;
80
87
  exports.Slider = Slider.Slider;
81
88
  exports.DeliveryTimeBlock = DeliveryTimeBlock.DeliveryTimeBlock;
89
+ exports.Menu = Menu.Menu;
90
+ exports.MenuItem = MenuItem.MenuItem;
82
91
  exports.Divider = Divider.Divider;
83
92
  exports.Dot = DotIndicator.Dot;
84
93
  exports.Form = Form.Form;
@@ -124,9 +133,17 @@ exports.StepperList = StepperList.StepperList;
124
133
  exports.StepperListItem = StepperListItem.StepperListItem;
125
134
  exports.StepperMobile = StepperMobile.StepperMobile;
126
135
  exports.TextArea = TextArea.TextArea;
136
+ exports.Table = Table_styles.Table;
137
+ exports.Td = Table_styles.Td;
138
+ exports.Th = Table_styles.Th;
139
+ exports.Thead = Table_styles.Thead;
140
+ exports.Tr = Table_styles.Tr;
127
141
  exports.Timeline = Timeline.Timeline;
128
142
  exports.ToolTip = ToolTip.ToolTip;
129
143
  exports.QuantitySelector = QuantitySelector.QuantitySelector;
144
+ exports.Pagination = Pagination.Pagination;
130
145
  exports.PageContainer = PageContainer.PageContainer;
131
146
  exports.TwoColumnsPageContainer = TwoColumnsPageContainer.TwoColumnsPageContainer;
147
+ exports.UnorderedList = UnorderedList_styles.UnorderedList;
148
+ exports.UnorderedListItem = UnorderedList_styles.UnorderedListItem;
132
149
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { BackButtonFlex, BackText } from './BackButton.styles.js';
3
+ import { Icons } from '@citygross/icons';
4
+ import { BodyText } from '@citygross/typography';
5
+
6
+ function BackButton(_a) {
7
+ var label = _a.label, color = _a.color, _b = _a.icon, icon = _b === void 0 ? React.createElement(Icons.ChevronLeft, null) : _b, onClick = _a.onClick, children = _a.children;
8
+ return (React.createElement(BackButtonFlex, { onClick: onClick },
9
+ icon,
10
+ React.createElement(BackText, null,
11
+ label && React.createElement(BodyText, { color: color }, label),
12
+ children)));
13
+ }
14
+
15
+ export { BackButton };
16
+ //# sourceMappingURL=BackButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var BackButtonFlex = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
5
+ var BackText = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 2px;\n"], ["\n margin-top: 2px;\n"])));
6
+ var templateObject_1, templateObject_2;
7
+
8
+ export { BackButtonFlex, BackText };
9
+ //# sourceMappingURL=BackButton.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { MenuContainer, Fade } from './Menu.styles.js';
3
+ import { useDetectDevice } from '@citygross/utils';
4
+
5
+ function Menu(_a) {
6
+ var showFade = _a.showFade, onScroll = _a.onScroll, children = _a.children;
7
+ var isMobile = useDetectDevice().isMobile;
8
+ return (React.createElement(React.Fragment, null,
9
+ React.createElement(MenuContainer, { onScroll: onScroll && onScroll }, children),
10
+ ' ',
11
+ isMobile && React.createElement(Fade, { isVisible: showFade })));
12
+ }
13
+
14
+ export { Menu };
15
+ //# sourceMappingURL=Menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var MenuContainer = styled.nav(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n max-width: ", "px;\n margin-left: auto;\n margin-right: auto;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n padding: 0 20px;\n width: calc(100% - 40px);\n }\n"], ["\n position: relative;\n width: 100%;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n max-width: ", "px;\n margin-left: auto;\n margin-right: auto;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n padding: 0 20px;\n width: calc(100% - 40px);\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.twoColumnsContainerMaxWidth; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.default; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
5
+ var MenuItem = styled.a(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n margin: 0 ", "px;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"], ["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n margin: 0 ", "px;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding; }, 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.xxs; }, function (props) { var _a; return props.active ? "" + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary) : 'transparent'; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, 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.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary; });
6
+ var Fade = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"], ["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isVisible) ? '1' : '0'); });
7
+ var templateObject_1, templateObject_2, templateObject_3;
8
+
9
+ export { Fade, MenuContainer, MenuItem };
10
+ //# sourceMappingURL=Menu.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ import { __rest, __assign } from '../../../../_virtual/_tslib.js';
2
+ import React from 'react';
3
+ import { MenuItem as MenuItem$1 } from './Menu.styles.js';
4
+
5
+ function MenuItem(_a) {
6
+ var active = _a.active, children = _a.children, props = __rest(_a, ["active", "children"]);
7
+ return (React.createElement(MenuItem$1, __assign({}, props, { active: active }), children));
8
+ }
9
+
10
+ export { MenuItem };
11
+ //# sourceMappingURL=MenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,46 @@
1
+ import React, { useState } from 'react';
2
+ import { PaginationButton } from '../Button/PaginationButton.js';
3
+ import { Box } from '../Box/Box.js';
4
+ import { Flex, PaginationButtonWrapper } from './Pagination.styles.js';
5
+
6
+ function createPagination(totalItems, itemsPerPage) {
7
+ var amountOfPages = Math.ceil((totalItems || 0) / (itemsPerPage !== null && itemsPerPage !== void 0 ? itemsPerPage : 6));
8
+ if (amountOfPages === 0 || itemsPerPage === 0) {
9
+ return [];
10
+ }
11
+ var pagination = [];
12
+ var block = [];
13
+ var counter = 0;
14
+ new Array(amountOfPages).fill(0).map(function (_, index) {
15
+ if (counter < 3) {
16
+ counter++;
17
+ block.push(index);
18
+ if (index === amountOfPages - 1) {
19
+ pagination.push(block);
20
+ }
21
+ }
22
+ else {
23
+ counter = 0;
24
+ block.push(index);
25
+ pagination.push(block);
26
+ block = [];
27
+ }
28
+ return null;
29
+ });
30
+ return pagination;
31
+ }
32
+ function Pagination(_a) {
33
+ var totalItems = _a.totalItems, currentPage = _a.currentPage, fetchItems = _a.fetchItems, itemsPerPage = _a.itemsPerPage;
34
+ var _b = useState(Math.floor((currentPage - 1) / 4)), currentIndex = _b[0], setIndex = _b[1];
35
+ var pagination = createPagination(totalItems, itemsPerPage);
36
+ return (React.createElement(Box, null, pagination && pagination.length > 0 && (React.createElement(Flex, null,
37
+ currentIndex > 0 && (React.createElement(PaginationButtonWrapper, null,
38
+ React.createElement(PaginationButton, { color: 'white', onClick: function () { return setIndex(currentIndex - 1); }, width: 36, height: 36 }, '...'))),
39
+ pagination[currentIndex].map(function (page) { return (React.createElement(PaginationButtonWrapper, { key: page },
40
+ React.createElement(PaginationButton, { color: currentPage === page + 1 ? 'primary' : 'white', width: 36, height: 36, onClick: function () { return fetchItems(page + 1); } }, page + 1))); }),
41
+ pagination.length > 1 && currentIndex < pagination.length - 1 && (React.createElement(PaginationButtonWrapper, null,
42
+ React.createElement(PaginationButton, { color: 'white', onClick: function () { return setIndex(currentIndex + 1); }, width: 36, height: 36 }, '...')))))));
43
+ }
44
+
45
+ export { Pagination };
46
+ //# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var PaginationButtonWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0 ", "px;\n"], ["\n padding: 0 ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
5
+ var Flex = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n"])));
6
+ var templateObject_1, templateObject_2;
7
+
8
+ export { Flex, PaginationButtonWrapper };
9
+ //# sourceMappingURL=Pagination.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,17 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var Table = styled.table(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n"], ["\n width: 100%;\n border: none;\n border-collapse: collapse;\n border-spacing: 0;\n"])));
5
+ var Thead = styled.thead(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-bottom: 1px solid\n ", ";\n"], ["\n border-bottom: 1px solid\n ", ";\n"])), function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); });
6
+ var Th = styled.th(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"], ["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return props.fontSize || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3); }, function (props) { var _a; return props.weight || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.regular); });
7
+ var Tr = styled.tr(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"], ["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest; });
8
+ var Td = styled.td(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n border-bottom: 1px solid\n ", ";\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding) + "px"; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light); }, function (props) { return (props.strikeThrough ? 'line-through' : 'none'); }, function (props) {
9
+ var _a, _b;
10
+ return props.strikeThrough
11
+ ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
12
+ : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.darkest;
13
+ });
14
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
15
+
16
+ export { Table, Td, Th, Thead, Tr };
17
+ //# sourceMappingURL=Table.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var UnorderedList = styled.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0 ", "px\n ", "px;\n list-style: inside disc;\n"], ["\n padding: 0 ", "px\n ", "px;\n list-style: inside disc;\n"])), 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; });
5
+ var UnorderedListItem = styled.li(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: ", "px 0;\n font-size: ", "px;\n line-height: ", "px;\n"], ["\n margin: ", "px 0;\n font-size: ", "px;\n line-height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.s2; });
6
+ var templateObject_1, templateObject_2;
7
+
8
+ export { UnorderedList, UnorderedListItem };
9
+ //# sourceMappingURL=UnorderedList.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnorderedList.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -6,6 +6,7 @@ export { Badge } from './components/Badge/Badge.js';
6
6
  export { Box } from './components/Box/Box.js';
7
7
  export { IconButton } from './components/Button/IconButton.js';
8
8
  export { PaginationButton } from './components/Button/PaginationButton.js';
9
+ export { BackButton } from './components/BackButton/BackButton.js';
9
10
  export { CartItemSummary } from './components/CartItemSummary/CartItemSummary.js';
10
11
  export { CartSummary } from './components/CartSummary/CartSummary.js';
11
12
  export { CustomerInfoBlock } from './components/CustomerInfoBlock/CustomerInfoBlock.js';
@@ -13,6 +14,8 @@ export { Collapsable } from './components/Collapsable/Collapsable.js';
13
14
  export { DeliverySlotItem } from './components/DeliverySlotItem/DeliverySlotItem.js';
14
15
  export { Slider } from './components/Slider/Slider.js';
15
16
  export { DeliveryTimeBlock } from './components/DeliveryTimeBlock/DeliveryTimeBlock.js';
17
+ export { Menu } from './components/Menu/Menu.js';
18
+ export { MenuItem } from './components/Menu/MenuItem.js';
16
19
  export { Divider } from './components/Divider/Divider.js';
17
20
  export { Dot } from './components/DotIndicator/DotIndicator.js';
18
21
  export { Form } from './components/Form/Form.js';
@@ -40,9 +43,12 @@ export { StepperList } from './components/Stepper/StepperList.js';
40
43
  export { StepperListItem } from './components/Stepper/StepperListItem.js';
41
44
  export { StepperMobile } from './components/StepperMobile/StepperMobile.js';
42
45
  export { TextArea } from './components/FormElements/TextArea/TextArea.js';
46
+ export { Table, Td, Th, Thead, Tr } from './components/Table/Table.styles.js';
43
47
  export { Timeline } from './components/Timeline/Timeline.js';
44
48
  export { ToolTip } from './components/ToolTip/ToolTip.js';
45
49
  export { QuantitySelector } from './components/QuantitySelector/QuantitySelector.js';
50
+ export { Pagination } from './components/Pagination/Pagination.js';
46
51
  export { PageContainer } from './containers/PageContainer/PageContainer.js';
47
52
  export { TwoColumnsPageContainer } from './containers/TwoColumnsContainer/TwoColumnsPageContainer.js';
53
+ export { UnorderedList, UnorderedListItem } from './components/UnorderedList/UnorderedList.styles.js';
48
54
  //# 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.33",
3
+ "version": "0.7.37",
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": "b7a4dbc2f08242e4991b1bc854af729eba566f5e"
74
+ "gitHead": "78b244982105ec4218731adcd38003b606505caf"
75
75
  }