@citygross/components 0.9.0 → 0.9.1

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var FallbackIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"128px\" height=\"124px\" viewBox=\"0 0 128 124\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->\n <title>shopping_cart_loaded</title>\n <desc>Created with Sketch.</desc>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"Artboard\" transform=\"translate(-100.000000, -53.000000)\">\n <g id=\"shopping_cart_loaded\" transform=\"translate(100.000000, 53.000000)\">\n <polygon id=\"Rectangle\" fill=\"#D8D8D8\" transform=\"translate(89.585472, 37.151291) rotate(45.000000) translate(-89.585472, -37.151291) \" points=\"69.9549199 17.5207389 109.199991 17.536771 109.216023 56.7818423 69.970952 56.7658102\"></polygon>\n <polygon id=\"Rectangle\" fill=\"#D1D1D1\" transform=\"translate(61.784256, 30.970598) rotate(45.000000) translate(-61.784256, -30.970598) \" points=\"39.9897062 9.17604823 83.5610058 9.19384764 83.5788052 52.7651473 40.0075056 52.7473478\"></polygon>\n <g id=\"Group\" transform=\"translate(6.000000, 12.000000)\" fill=\"#E8E8E8\">\n <path d=\"M40.2213256,80.6 C36.8179827,80.6 34.0334294,77.81 34.0334294,74.4 L34.0334294,43.4 L21.6576369,43.4 L21.6576369,74.4 C21.6576369,84.63 30.0112968,93 40.2213256,93 L99.0063401,93 L99.0063401,80.6 L40.2213256,80.6 Z\" id=\"Path\"></path>\n <path d=\"M24.1327954,12.4 L22.8952161,8.37 C21.0388473,3.41 16.3979251,0 11.1382133,0 L0,0 L0,12.4 L11.1382133,12.4 L28.154928,63.86 C29.0831124,66.34 31.2488761,68.2 34.0334294,68.2 L92.8184438,68.2 C95.2936023,68.2 97.459366,66.65 98.3875504,64.48 L121.901556,12.4 L24.1327954,12.4 Z\" id=\"Path\"></path>\n </g>\n <ellipse id=\"Oval\" fill=\"#D8D8D8\" cx=\"6\" cy=\"18.5\" rx=\"6\" ry=\"6.5\"></ellipse>\n <g id=\"Group\" transform=\"translate(40.000000, 105.000000)\" fill=\"#D8D8D8\">\n <ellipse id=\"Oval\" cx=\"55.7142857\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\n <ellipse id=\"Oval\" cx=\"9.28571429\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\n </g>\n <g id=\"Group\" transform=\"translate(46.000000, 112.000000)\" fill=\"#D1D1D1\">\n <ellipse id=\"Oval\" cx=\"49.8823529\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\n <ellipse id=\"Oval\" cx=\"3.11764706\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\n </g>\n </g>\n </g>\n </g>\n</svg>";
3
+ var FallbackIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<svg width=\"128px\" height=\"124px\" viewBox=\"0 0 128 124\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->\r\n <title>shopping_cart_loaded</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\r\n <g id=\"Artboard\" transform=\"translate(-100.000000, -53.000000)\">\r\n <g id=\"shopping_cart_loaded\" transform=\"translate(100.000000, 53.000000)\">\r\n <polygon id=\"Rectangle\" fill=\"#D8D8D8\" transform=\"translate(89.585472, 37.151291) rotate(45.000000) translate(-89.585472, -37.151291) \" points=\"69.9549199 17.5207389 109.199991 17.536771 109.216023 56.7818423 69.970952 56.7658102\"></polygon>\r\n <polygon id=\"Rectangle\" fill=\"#D1D1D1\" transform=\"translate(61.784256, 30.970598) rotate(45.000000) translate(-61.784256, -30.970598) \" points=\"39.9897062 9.17604823 83.5610058 9.19384764 83.5788052 52.7651473 40.0075056 52.7473478\"></polygon>\r\n <g id=\"Group\" transform=\"translate(6.000000, 12.000000)\" fill=\"#E8E8E8\">\r\n <path d=\"M40.2213256,80.6 C36.8179827,80.6 34.0334294,77.81 34.0334294,74.4 L34.0334294,43.4 L21.6576369,43.4 L21.6576369,74.4 C21.6576369,84.63 30.0112968,93 40.2213256,93 L99.0063401,93 L99.0063401,80.6 L40.2213256,80.6 Z\" id=\"Path\"></path>\r\n <path d=\"M24.1327954,12.4 L22.8952161,8.37 C21.0388473,3.41 16.3979251,0 11.1382133,0 L0,0 L0,12.4 L11.1382133,12.4 L28.154928,63.86 C29.0831124,66.34 31.2488761,68.2 34.0334294,68.2 L92.8184438,68.2 C95.2936023,68.2 97.459366,66.65 98.3875504,64.48 L121.901556,12.4 L24.1327954,12.4 Z\" id=\"Path\"></path>\r\n </g>\r\n <ellipse id=\"Oval\" fill=\"#D8D8D8\" cx=\"6\" cy=\"18.5\" rx=\"6\" ry=\"6.5\"></ellipse>\r\n <g id=\"Group\" transform=\"translate(40.000000, 105.000000)\" fill=\"#D8D8D8\">\r\n <ellipse id=\"Oval\" cx=\"55.7142857\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\r\n <ellipse id=\"Oval\" cx=\"9.28571429\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\r\n </g>\r\n <g id=\"Group\" transform=\"translate(46.000000, 112.000000)\" fill=\"#D1D1D1\">\r\n <ellipse id=\"Oval\" cx=\"49.8823529\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\r\n <ellipse id=\"Oval\" cx=\"3.11764706\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>";
4
4
 
5
5
  module.exports = FallbackIcon;
6
6
  //# sourceMappingURL=fallback_grocery.svg.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var FallbackIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"128px\" height=\"124px\" viewBox=\"0 0 128 124\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->\n <title>shopping_cart_loaded</title>\n <desc>Created with Sketch.</desc>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"Artboard\" transform=\"translate(-100.000000, -53.000000)\">\n <g id=\"shopping_cart_loaded\" transform=\"translate(100.000000, 53.000000)\">\n <polygon id=\"Rectangle\" fill=\"#D8D8D8\" transform=\"translate(89.585472, 37.151291) rotate(45.000000) translate(-89.585472, -37.151291) \" points=\"69.9549199 17.5207389 109.199991 17.536771 109.216023 56.7818423 69.970952 56.7658102\"></polygon>\n <polygon id=\"Rectangle\" fill=\"#D1D1D1\" transform=\"translate(61.784256, 30.970598) rotate(45.000000) translate(-61.784256, -30.970598) \" points=\"39.9897062 9.17604823 83.5610058 9.19384764 83.5788052 52.7651473 40.0075056 52.7473478\"></polygon>\n <g id=\"Group\" transform=\"translate(6.000000, 12.000000)\" fill=\"#E8E8E8\">\n <path d=\"M40.2213256,80.6 C36.8179827,80.6 34.0334294,77.81 34.0334294,74.4 L34.0334294,43.4 L21.6576369,43.4 L21.6576369,74.4 C21.6576369,84.63 30.0112968,93 40.2213256,93 L99.0063401,93 L99.0063401,80.6 L40.2213256,80.6 Z\" id=\"Path\"></path>\n <path d=\"M24.1327954,12.4 L22.8952161,8.37 C21.0388473,3.41 16.3979251,0 11.1382133,0 L0,0 L0,12.4 L11.1382133,12.4 L28.154928,63.86 C29.0831124,66.34 31.2488761,68.2 34.0334294,68.2 L92.8184438,68.2 C95.2936023,68.2 97.459366,66.65 98.3875504,64.48 L121.901556,12.4 L24.1327954,12.4 Z\" id=\"Path\"></path>\n </g>\n <ellipse id=\"Oval\" fill=\"#D8D8D8\" cx=\"6\" cy=\"18.5\" rx=\"6\" ry=\"6.5\"></ellipse>\n <g id=\"Group\" transform=\"translate(40.000000, 105.000000)\" fill=\"#D8D8D8\">\n <ellipse id=\"Oval\" cx=\"55.7142857\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\n <ellipse id=\"Oval\" cx=\"9.28571429\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\n </g>\n <g id=\"Group\" transform=\"translate(46.000000, 112.000000)\" fill=\"#D1D1D1\">\n <ellipse id=\"Oval\" cx=\"49.8823529\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\n <ellipse id=\"Oval\" cx=\"3.11764706\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\n </g>\n </g>\n </g>\n </g>\n</svg>";
3
+ var FallbackIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<svg width=\"128px\" height=\"124px\" viewBox=\"0 0 128 124\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->\r\n <title>shopping_cart_loaded</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\r\n <g id=\"Artboard\" transform=\"translate(-100.000000, -53.000000)\">\r\n <g id=\"shopping_cart_loaded\" transform=\"translate(100.000000, 53.000000)\">\r\n <polygon id=\"Rectangle\" fill=\"#D8D8D8\" transform=\"translate(89.585472, 37.151291) rotate(45.000000) translate(-89.585472, -37.151291) \" points=\"69.9549199 17.5207389 109.199991 17.536771 109.216023 56.7818423 69.970952 56.7658102\"></polygon>\r\n <polygon id=\"Rectangle\" fill=\"#D1D1D1\" transform=\"translate(61.784256, 30.970598) rotate(45.000000) translate(-61.784256, -30.970598) \" points=\"39.9897062 9.17604823 83.5610058 9.19384764 83.5788052 52.7651473 40.0075056 52.7473478\"></polygon>\r\n <g id=\"Group\" transform=\"translate(6.000000, 12.000000)\" fill=\"#E8E8E8\">\r\n <path d=\"M40.2213256,80.6 C36.8179827,80.6 34.0334294,77.81 34.0334294,74.4 L34.0334294,43.4 L21.6576369,43.4 L21.6576369,74.4 C21.6576369,84.63 30.0112968,93 40.2213256,93 L99.0063401,93 L99.0063401,80.6 L40.2213256,80.6 Z\" id=\"Path\"></path>\r\n <path d=\"M24.1327954,12.4 L22.8952161,8.37 C21.0388473,3.41 16.3979251,0 11.1382133,0 L0,0 L0,12.4 L11.1382133,12.4 L28.154928,63.86 C29.0831124,66.34 31.2488761,68.2 34.0334294,68.2 L92.8184438,68.2 C95.2936023,68.2 97.459366,66.65 98.3875504,64.48 L121.901556,12.4 L24.1327954,12.4 Z\" id=\"Path\"></path>\r\n </g>\r\n <ellipse id=\"Oval\" fill=\"#D8D8D8\" cx=\"6\" cy=\"18.5\" rx=\"6\" ry=\"6.5\"></ellipse>\r\n <g id=\"Group\" transform=\"translate(40.000000, 105.000000)\" fill=\"#D8D8D8\">\r\n <ellipse id=\"Oval\" cx=\"55.7142857\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\r\n <ellipse id=\"Oval\" cx=\"9.28571429\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\r\n </g>\r\n <g id=\"Group\" transform=\"translate(46.000000, 112.000000)\" fill=\"#D1D1D1\">\r\n <ellipse id=\"Oval\" cx=\"49.8823529\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\r\n <ellipse id=\"Oval\" cx=\"3.11764706\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>";
4
4
 
5
5
  module.exports = FallbackIcon;
6
6
  //# sourceMappingURL=fallback_grocery.svg.js.map
@@ -43,10 +43,11 @@ function Pagination(_a) {
43
43
  var _d = React.useState(Math.floor((currentPage - 1) / numOfPaginationsToShow)), currentIndex = _d[0], setIndex = _d[1];
44
44
  var pagination = createPagination(totalItems, itemsPerPage, numOfPaginationsToShow);
45
45
  return (React__default["default"].createElement(Box.Box, null, pagination && pagination.length > 0 && (React__default["default"].createElement(Pagination_styles.Flex, null,
46
- React__default["default"].createElement(Pagination_styles.LeftPaginationButtonWrapper, { show: currentIndex > 0 }, currentIndex > 0 && (React__default["default"].createElement(PaginationButton.PaginationButton, { color: 'white', onClick: function () {
47
- setPage && setPage(currentPage - 1);
48
- setIndex(currentIndex - 1);
49
- }, width: 36, height: 36 }, leftIcon || '...'))), (_b = pagination === null || pagination === void 0 ? void 0 : pagination[currentIndex]) === null || _b === void 0 ? void 0 :
46
+ currentIndex > 0 && (React__default["default"].createElement(Pagination_styles.LeftPaginationButtonWrapper, null,
47
+ React__default["default"].createElement(PaginationButton.PaginationButton, { color: 'white', onClick: function () {
48
+ setPage && setPage(currentPage - 1);
49
+ setIndex(currentIndex - 1);
50
+ }, width: 36, height: 36 }, leftIcon || '...'))), (_b = pagination === null || pagination === void 0 ? void 0 : pagination[currentIndex]) === null || _b === void 0 ? void 0 :
50
51
  _b.map(function (page) { return (React__default["default"].createElement(Pagination_styles.PaginationButtonWrapper, { key: page },
51
52
  React__default["default"].createElement(PaginationButton.PaginationButton, { color: currentPage === page + 1 ? 'primary' : 'white', width: 36, height: 36, onClick: function () { return fetchItems(page + 1); } }, page + 1))); }),
52
53
  pagination.length > 1 && currentIndex < pagination.length - 1 && (React__default["default"].createElement(Pagination_styles.PaginationButtonWrapper, null,
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Pagination.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,288 +6,288 @@ var index = require('../../_virtual/index.js');
6
6
 
7
7
  Object.defineProperty(index.__exports, '__esModule', { value: true });
8
8
 
9
- var attributes = {
10
- borderRadius: {
11
- extraSmall: 2,
12
- small: 5,
13
- default: 10,
14
- big: 20,
15
- rounded: 100,
16
- circle: '50%'
17
- },
18
- boxShadow: {
19
- small: '0 0 46px 0 rgba(0, 0, 0, 0.13)',
20
- hover: '0 0 15px 0 rgba(0, 0, 0, 0.13)',
21
- buttonHover: '0 1px 5px rgba(0, 0, 0, 0.35)',
22
- buttonActive: 'inset 0 0px 5px rgba(0, 0, 0, 0.15)',
23
- iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',
24
- layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',
25
- layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',
26
- layoutShadowInsetMedium: 'inset 0 -2px 0 rgba(0, 0, 0, 0.15)',
27
- stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',
28
- highlightBoxShadow: '0 2px 5px 0 rgba(7,52,99,0.15)',
29
- focusVisible: '0 0 0 2px #000'
30
- },
31
- zIndex: {
32
- modal: 5,
33
- footer: 4,
34
- high: 3,
35
- middle: 2,
36
- low: 1
37
- },
38
- transition: {
39
- t1: '550ms cubic-bezier(0.19, 1, 0.22, 1)',
40
- inputTransition: 'box-shadow 250ms ease'
41
- }
9
+ var attributes = {
10
+ borderRadius: {
11
+ extraSmall: 2,
12
+ small: 5,
13
+ default: 10,
14
+ big: 20,
15
+ rounded: 100,
16
+ circle: '50%'
17
+ },
18
+ boxShadow: {
19
+ small: '0 0 46px 0 rgba(0, 0, 0, 0.13)',
20
+ hover: '0 0 15px 0 rgba(0, 0, 0, 0.13)',
21
+ buttonHover: '0 1px 5px rgba(0, 0, 0, 0.35)',
22
+ buttonActive: 'inset 0 0px 5px rgba(0, 0, 0, 0.15)',
23
+ iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',
24
+ layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',
25
+ layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',
26
+ layoutShadowInsetMedium: 'inset 0 -2px 0 rgba(0, 0, 0, 0.15)',
27
+ stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',
28
+ highlightBoxShadow: '0 2px 5px 0 rgba(7,52,99,0.15)',
29
+ focusVisible: '0 0 0 2px #000'
30
+ },
31
+ zIndex: {
32
+ modal: 5,
33
+ footer: 4,
34
+ high: 3,
35
+ middle: 2,
36
+ low: 1
37
+ },
38
+ transition: {
39
+ t1: '550ms cubic-bezier(0.19, 1, 0.22, 1)',
40
+ inputTransition: 'box-shadow 250ms ease'
41
+ }
42
42
  };
43
43
 
44
- var breakpoints = {
45
- xxs: 360,
46
- xs: 480,
47
- sm: 576,
48
- md: 768,
49
- lg: 960,
50
- xl: 1060,
51
- xxl: 1280,
52
- xxxl: 1400
44
+ var breakpoints = {
45
+ xxs: 360,
46
+ xs: 480,
47
+ sm: 576,
48
+ md: 768,
49
+ lg: 960,
50
+ xl: 1060,
51
+ xxl: 1280,
52
+ xxxl: 1400
53
53
  };
54
54
 
55
- var constants = {
56
- headerScrollFadeRange: 50,
57
- modalContainerMaxWidth: 615,
58
- modalConfirmMaxWidth: 480,
59
- pageContainerMaxWidth: 776,
60
- twoColumnsContainerMaxWidth: 1024,
61
- deliverySlotItemWidth: 130,
62
- deliverySlotItemWidthDesktop: 146,
63
- deliverySlotItemHeight: 91,
64
- deliverySlotArrowOffset: 42,
65
- itemGap: 2,
66
- listImageMaxWidth: 64,
67
- listImageMaxHeight: 50,
68
- listImageMaxWidthSmall: 32,
69
- listImageMaxHeightSmall: 32,
70
- listItemFlexGap: 20,
71
- infoBlockImageMaxWidthDesktop: 100,
72
- chipCheckBox: 12,
73
- pageContentMaxWidth: 1232,
74
- infoBlockBorderWidth: 4,
75
- tableRowVerticalPadding: 16,
76
- tableRowHorizontalPadding: 14,
77
- tableHeaderVerticalPadding: 12,
78
- menuHorizontalMargin: 12,
79
- headerWrapperVerticalPadding: 20,
80
- iconToolTipArrowLeft: 2.5,
81
- iconToolTipArrowTop: 32,
82
- iconToolTipBoxWidth: 300,
83
- iconToolTipTop: 36,
84
- dateBoxHorizontalPadding: 12,
85
- BackgroundOverlayOpacity: 0.3,
86
- selectWidth: 225,
87
- selectMobileWidth: 175,
88
- selectPadding: 2,
89
- cartListItemDescriptionSize: 11,
90
- mobileTablePadding: 12,
91
- mobileTablePaddingBottom: 6,
92
- mobileLabelVerticalPadding: 10,
93
- mobileLabelPaddingRight: 35,
94
- mobileLabelVerticalPaddingMobile: 8,
95
- mobileLabelPaddingRightMobile: 20,
96
- menuListItemIconSize: 16,
97
- priceIndicatorRotate: 1,
98
- priceRotate: 2.5,
99
- priceSplashHorizontalPadding: 10,
100
- priceVariantBadgeSize: 48,
101
- buttonWrapperMinWidth: 120,
102
- buttonChildGap: 12,
103
- buttonChildSmallGap: 8,
104
- buttonChildExtraSmallGap: 4,
105
- buttonBadgeTopPosition: -3,
106
- buttonBadgeRightPosition: -4,
107
- buttonBadgePadding: 6,
108
- buttonBadgePaddingSmall: 2,
109
- buttonBadgeFontSize: 11,
110
- navHeaderHeight: 81,
111
- navHeaderHeightSmall: 64,
112
- searchModalZIndex: 900,
113
- searchBarHorizontalPadding: 12,
114
- headerBreakpoint: 991,
115
- zipCodeInputSize: 48,
116
- zipCodeInputSizeSmall: 40,
117
- tooltipMinWidth: 80,
118
- toolTipTop: 35,
119
- toolTipArrowMarginTop: -5,
120
- toolTipBackground: 'rgba(0,0,0,.7)',
121
- toolTipArrowBorderWidth: 5,
122
- searchListItemGridTemplateColumns: 25,
123
- MarkingWrapperGridGap: 2,
124
- InputWithIconPaddingRight: 45,
125
- navMainLinkWidth: 105,
126
- maxHeightFaderHeight: 50,
127
- paginationButtonWidth: 44,
128
- cartCardImageSize: 48,
129
- toolTipCloseSize: 20,
130
- couponButtonContainer: 102,
131
- selectButtonWidth: 169,
132
- quantitySelectorWidthLarge: 140,
133
- quantitySelectorWidthSmall: 123,
134
- priceBaseLetterSpacing: -0.03
55
+ var constants = {
56
+ headerScrollFadeRange: 50,
57
+ modalContainerMaxWidth: 615,
58
+ modalConfirmMaxWidth: 480,
59
+ pageContainerMaxWidth: 776,
60
+ twoColumnsContainerMaxWidth: 1024,
61
+ deliverySlotItemWidth: 130,
62
+ deliverySlotItemWidthDesktop: 146,
63
+ deliverySlotItemHeight: 91,
64
+ deliverySlotArrowOffset: 42,
65
+ itemGap: 2,
66
+ listImageMaxWidth: 64,
67
+ listImageMaxHeight: 50,
68
+ listImageMaxWidthSmall: 32,
69
+ listImageMaxHeightSmall: 32,
70
+ listItemFlexGap: 20,
71
+ infoBlockImageMaxWidthDesktop: 100,
72
+ chipCheckBox: 12,
73
+ pageContentMaxWidth: 1232,
74
+ infoBlockBorderWidth: 4,
75
+ tableRowVerticalPadding: 16,
76
+ tableRowHorizontalPadding: 14,
77
+ tableHeaderVerticalPadding: 12,
78
+ menuHorizontalMargin: 12,
79
+ headerWrapperVerticalPadding: 20,
80
+ iconToolTipArrowLeft: 2.5,
81
+ iconToolTipArrowTop: 32,
82
+ iconToolTipBoxWidth: 300,
83
+ iconToolTipTop: 36,
84
+ dateBoxHorizontalPadding: 12,
85
+ BackgroundOverlayOpacity: 0.3,
86
+ selectWidth: 225,
87
+ selectMobileWidth: 175,
88
+ selectPadding: 2,
89
+ cartListItemDescriptionSize: 11,
90
+ mobileTablePadding: 12,
91
+ mobileTablePaddingBottom: 6,
92
+ mobileLabelVerticalPadding: 10,
93
+ mobileLabelPaddingRight: 35,
94
+ mobileLabelVerticalPaddingMobile: 8,
95
+ mobileLabelPaddingRightMobile: 20,
96
+ menuListItemIconSize: 16,
97
+ priceIndicatorRotate: 1,
98
+ priceRotate: 2.5,
99
+ priceSplashHorizontalPadding: 10,
100
+ priceVariantBadgeSize: 48,
101
+ buttonWrapperMinWidth: 120,
102
+ buttonChildGap: 12,
103
+ buttonChildSmallGap: 8,
104
+ buttonChildExtraSmallGap: 4,
105
+ buttonBadgeTopPosition: -3,
106
+ buttonBadgeRightPosition: -4,
107
+ buttonBadgePadding: 6,
108
+ buttonBadgePaddingSmall: 2,
109
+ buttonBadgeFontSize: 11,
110
+ navHeaderHeight: 81,
111
+ navHeaderHeightSmall: 64,
112
+ searchModalZIndex: 900,
113
+ searchBarHorizontalPadding: 12,
114
+ headerBreakpoint: 991,
115
+ zipCodeInputSize: 48,
116
+ zipCodeInputSizeSmall: 40,
117
+ tooltipMinWidth: 80,
118
+ toolTipTop: 35,
119
+ toolTipArrowMarginTop: -5,
120
+ toolTipBackground: 'rgba(0,0,0,.7)',
121
+ toolTipArrowBorderWidth: 5,
122
+ searchListItemGridTemplateColumns: 25,
123
+ MarkingWrapperGridGap: 2,
124
+ InputWithIconPaddingRight: 45,
125
+ navMainLinkWidth: 105,
126
+ maxHeightFaderHeight: 50,
127
+ paginationButtonWidth: 44,
128
+ cartCardImageSize: 48,
129
+ toolTipCloseSize: 20,
130
+ couponButtonContainer: 102,
131
+ selectButtonWidth: 169,
132
+ quantitySelectorWidthLarge: 140,
133
+ quantitySelectorWidthSmall: 123,
134
+ priceBaseLetterSpacing: -0.03
135
135
  };
136
136
 
137
- var palette = {
138
- // pallette same as brand colors
139
- primary: '#FFDF43',
140
- secondary: '#0071B9',
141
- // brand colors
142
- brandYellow: '#FFDF43',
143
- brandBlue: '#0071B9',
144
- brandPurple: '#A71680',
145
- brandPrio: '#a80073',
146
- // shades
147
- yellowLighter: '#FFFBE7',
148
- yellowLight: '#FFF7D1',
149
- blueLight: '#ECF7FE',
150
- blueLighter: '#D3EDFD',
151
- blueMedium: '#92B9D3',
152
- greenLight: '#F2FDF2',
153
- greenMedium: '#BEE5BE',
154
- redLight: '#FCE9E9',
155
- priceTagRed: '#C80700',
156
- // recipeTags
157
- recipeVego: '#65DB69',
158
- recipeLactose: '#8CCDF0',
159
- recipeGluten: '#D5642A',
160
- // link same as alert blue
161
- link: '#0072BB',
162
- // black / white
163
- white: '#FFFFFF',
164
- black: '#000000',
165
- // grayscale
166
- lightest: '#F7F7F7',
167
- lighter: '#F1F1F1',
168
- light: '#E8E8E8',
169
- medium: '#DBDBDB',
170
- mediumDark: '#6C6C6C',
171
- dark: '#979797',
172
- darker: '#4A4A4A',
173
- darkest: '#333333',
174
- buttonGray: '#E5E4E5',
175
- disabledGray: '#B8B8B8',
176
- disabledDarkGray: '#5c5c5c',
177
- placeholder: '#8f8f8f',
178
- border: '#0069AE',
179
- boxShadow: '#E1E1E1',
180
- boxShadowActive: 'rgba(7, 52, 99, 0.15)',
181
- // Alerts
182
- alertRed: '#E02721',
183
- alertBlue: '#0072BB',
184
- alertGreen: '#3F9A3C',
185
- // overlay
186
- darkOverlay: 'rgba(0, 0, 0, 0.6)',
187
- // transparent
188
- transparent: '#ffffff00',
189
- // hover
190
- brandBlueHover: '#005C99',
191
- brandYellowHover: '#F5D800',
192
- brandPrioHover: '#90136F',
193
- brandBlueActive: '#004D80',
194
- brandYellowActive: '#DBC100',
195
- brandPrioActive: '#7A105E',
196
- none: 'none'
137
+ var palette = {
138
+ // pallette same as brand colors
139
+ primary: '#FFDF43',
140
+ secondary: '#0071B9',
141
+ // brand colors
142
+ brandYellow: '#FFDF43',
143
+ brandBlue: '#0071B9',
144
+ brandPurple: '#A71680',
145
+ brandPrio: '#a80073',
146
+ // shades
147
+ yellowLighter: '#FFFBE7',
148
+ yellowLight: '#FFF7D1',
149
+ blueLight: '#ECF7FE',
150
+ blueLighter: '#D3EDFD',
151
+ blueMedium: '#92B9D3',
152
+ greenLight: '#F2FDF2',
153
+ greenMedium: '#BEE5BE',
154
+ redLight: '#FCE9E9',
155
+ priceTagRed: '#C80700',
156
+ // recipeTags
157
+ recipeVego: '#65DB69',
158
+ recipeLactose: '#8CCDF0',
159
+ recipeGluten: '#D5642A',
160
+ // link same as alert blue
161
+ link: '#0072BB',
162
+ // black / white
163
+ white: '#FFFFFF',
164
+ black: '#000000',
165
+ // grayscale
166
+ lightest: '#F7F7F7',
167
+ lighter: '#F1F1F1',
168
+ light: '#E8E8E8',
169
+ medium: '#DBDBDB',
170
+ mediumDark: '#6C6C6C',
171
+ dark: '#979797',
172
+ darker: '#4A4A4A',
173
+ darkest: '#333333',
174
+ buttonGray: '#E5E4E5',
175
+ disabledGray: '#B8B8B8',
176
+ disabledDarkGray: '#5c5c5c',
177
+ placeholder: '#8f8f8f',
178
+ border: '#0069AE',
179
+ boxShadow: '#E1E1E1',
180
+ boxShadowActive: 'rgba(7, 52, 99, 0.15)',
181
+ // Alerts
182
+ alertRed: '#E02721',
183
+ alertBlue: '#0072BB',
184
+ alertGreen: '#3F9A3C',
185
+ // overlay
186
+ darkOverlay: 'rgba(0, 0, 0, 0.6)',
187
+ // transparent
188
+ transparent: '#ffffff00',
189
+ // hover
190
+ brandBlueHover: '#005C99',
191
+ brandYellowHover: '#F5D800',
192
+ brandPrioHover: '#90136F',
193
+ brandBlueActive: '#004D80',
194
+ brandYellowActive: '#DBC100',
195
+ brandPrioActive: '#7A105E',
196
+ none: 'none'
197
197
  };
198
198
 
199
- var spacings = {
200
- xxxs: 2,
201
- xxs: 4,
202
- xxs2: 6,
203
- xs: 8,
204
- xs1: 10,
205
- xs2: 12,
206
- xs3: 14,
207
- sm: 16,
208
- sm1: 18,
209
- sm2: 20,
210
- md: 24,
211
- lg: 32,
212
- xl: 40,
213
- xl2: 48,
214
- xxl: 56
215
- // More in figma, but talk with Johan to generalize it more.
216
- // xxx: 72, 88, 120, 152 ?
199
+ var spacings = {
200
+ xxxs: 2,
201
+ xxs: 4,
202
+ xxs2: 6,
203
+ xs: 8,
204
+ xs1: 10,
205
+ xs2: 12,
206
+ xs3: 14,
207
+ sm: 16,
208
+ sm1: 18,
209
+ sm2: 20,
210
+ md: 24,
211
+ lg: 32,
212
+ xl: 40,
213
+ xl2: 48,
214
+ xxl: 56
215
+ // More in figma, but talk with Johan to generalize it more.
216
+ // xxx: 72, 88, 120, 152 ?
217
217
  };
218
218
 
219
- var typography = {
220
- type: {
221
- primary: '"Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif',
222
- display: '"Dom Casual"',
223
- code: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace'
224
- },
225
- weight: {
226
- regular: '400',
227
- medium: '500',
228
- semiBold: '600',
229
- bold: '700',
230
- extraBold: '800'
231
- },
232
- size: {
233
- // xs all from 0-10
234
- xs: 10,
235
- // s all from 11-20
236
- s0: 11,
237
- s1: 12,
238
- s2: 13,
239
- s3: 15,
240
- s4: 18,
241
- // m all from 21-40
242
- m1: 24,
243
- m2: 30,
244
- // l all from 41 >
245
- l1: 41,
246
- code: 90
247
- },
248
- lineHeight: {
249
- // xs all from 0-15
250
- xs: 15,
251
- // s all from 16-20
252
- s1: 18,
253
- s2: 19,
254
- // m all from 21-40
255
- m1: 22,
256
- m2: 27,
257
- m3: 36,
258
- // l all from 41 >
259
- l1: 45
260
- }
219
+ var typography = {
220
+ type: {
221
+ primary: '"Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif',
222
+ display: '"Dom Casual"',
223
+ code: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace'
224
+ },
225
+ weight: {
226
+ regular: '400',
227
+ medium: '500',
228
+ semiBold: '600',
229
+ bold: '700',
230
+ extraBold: '800'
231
+ },
232
+ size: {
233
+ // xs all from 0-10
234
+ xs: 10,
235
+ // s all from 11-20
236
+ s0: 11,
237
+ s1: 12,
238
+ s2: 13,
239
+ s3: 15,
240
+ s4: 18,
241
+ // m all from 21-40
242
+ m1: 24,
243
+ m2: 30,
244
+ // l all from 41 >
245
+ l1: 41,
246
+ code: 90
247
+ },
248
+ lineHeight: {
249
+ // xs all from 0-15
250
+ xs: 15,
251
+ // s all from 16-20
252
+ s1: 18,
253
+ s2: 19,
254
+ // m all from 21-40
255
+ m1: 22,
256
+ m2: 27,
257
+ m3: 36,
258
+ // l all from 41 >
259
+ l1: 45
260
+ }
261
261
  };
262
262
 
263
- var animations = {
264
- tapScale: 0.9,
265
- hoverScale: 1.1,
266
- buttonTransition: 'all 250ms cubic-bezier(0.165, 0.84, 0.44, 1)',
267
- rippleTransition: '750ms cubic-bezier(0.19, 1, 0.22, 1)',
268
- saveButtonAnimationComplete: 600
263
+ var animations = {
264
+ tapScale: 0.9,
265
+ hoverScale: 1.1,
266
+ buttonTransition: 'all 250ms cubic-bezier(0.165, 0.84, 0.44, 1)',
267
+ rippleTransition: '750ms cubic-bezier(0.19, 1, 0.22, 1)',
268
+ saveButtonAnimationComplete: 600
269
269
  };
270
270
 
271
- var createTheme = function (_a) {
272
- var palette = _a.palette, typography = _a.typography, attributes = _a.attributes, breakpoints = _a.breakpoints, spacings = _a.spacings, constants = _a.constants, animations = _a.animations;
273
- return ({
274
- palette: palette,
275
- typography: typography,
276
- attributes: attributes,
277
- breakpoints: breakpoints,
278
- spacings: spacings,
279
- constants: constants,
280
- animations: animations
281
- });
282
- };
283
- var theme = createTheme({
284
- palette: palette,
285
- typography: typography,
286
- attributes: attributes,
287
- breakpoints: breakpoints,
288
- spacings: spacings,
289
- constants: constants,
290
- animations: animations
271
+ var createTheme = function (_a) {
272
+ var palette = _a.palette, typography = _a.typography, attributes = _a.attributes, breakpoints = _a.breakpoints, spacings = _a.spacings, constants = _a.constants, animations = _a.animations;
273
+ return ({
274
+ palette: palette,
275
+ typography: typography,
276
+ attributes: attributes,
277
+ breakpoints: breakpoints,
278
+ spacings: spacings,
279
+ constants: constants,
280
+ animations: animations
281
+ });
282
+ };
283
+ var theme = createTheme({
284
+ palette: palette,
285
+ typography: typography,
286
+ attributes: attributes,
287
+ breakpoints: breakpoints,
288
+ spacings: spacings,
289
+ constants: constants,
290
+ animations: animations
291
291
  });
292
292
 
293
293
  index.__exports.animations = animations;