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