@citygross/components 0.7.245 → 0.7.246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/index.d.ts +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/cjs/components/src/components/CartCard/CartCard.js +36 -0
- package/build/cjs/components/src/components/CartCard/CartCard.js.map +1 -0
- package/build/cjs/components/src/components/CartCard/CartCard.styles.js +35 -0
- package/build/cjs/components/src/components/CartCard/CartCard.styles.js.map +1 -0
- package/build/cjs/components/src/components/CartCard/assets/fallback_grocery.svg.js +6 -0
- package/build/cjs/components/src/components/CartCard/assets/fallback_grocery.svg.js.map +1 -0
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/cjs/components/src/index.js +2 -0
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/es/components/src/components/CartCard/CartCard.js +28 -0
- package/build/es/components/src/components/CartCard/CartCard.js.map +1 -0
- package/build/es/components/src/components/CartCard/CartCard.styles.js +19 -0
- package/build/es/components/src/components/CartCard/CartCard.styles.js.map +1 -0
- package/build/es/components/src/components/CartCard/assets/fallback_grocery.svg.js +4 -0
- package/build/es/components/src/components/CartCard/assets/fallback_grocery.svg.js.map +1 -0
- package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/es/components/src/index.js +1 -0
- package/build/es/components/src/index.js.map +1 -1
- package/package.json +2 -2
package/build/@types/index.d.ts
CHANGED
|
@@ -77,3 +77,4 @@ export * from './components/ToolTipDialog/ToolTipDialog';
|
|
|
77
77
|
export * from './components/CartSubTotal/CartSubTotal';
|
|
78
78
|
export * from './components/CgButton/CgButton';
|
|
79
79
|
export * from './components/CartCardLabel/CartCardLabel';
|
|
80
|
+
export * from './components/CartCard/CartCard';
|
|
@@ -93,6 +93,7 @@ require('../ToolTipDialog/ToolTipDialog.styles.js');
|
|
|
93
93
|
require('../CartSubTotal/CartSubTotal.js');
|
|
94
94
|
require('../CgButton/CgButton.js');
|
|
95
95
|
require('../CartCardLabel/CartCardLabel.styles.js');
|
|
96
|
+
require('../CartCard/CartCard.styles.js');
|
|
96
97
|
|
|
97
98
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
98
99
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var fallback_grocery = require('./assets/fallback_grocery.svg.js');
|
|
7
|
+
var CartCard_styles = require('./CartCard.styles.js');
|
|
8
|
+
var typography = require('@citygross/typography');
|
|
9
|
+
var icons = require('@citygross/icons');
|
|
10
|
+
var CgButton = require('../CgButton/CgButton.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
|
|
16
|
+
var CartCard = function (_a) {
|
|
17
|
+
var markings = _a.markings, title = _a.title, description = _a.description, showDelete = _a.showDelete, maxReachedWarning = _a.maxReachedWarning, value = _a.value, price = _a.price, image = _a.image, onDelete = _a.onDelete, _b = _a.maxValue, maxValue = _b === void 0 ? 999 : _b, quanitytSelector = _a.quanitytSelector;
|
|
18
|
+
return (React__default["default"].createElement(CartCard_styles.CartCardContainer, null,
|
|
19
|
+
React__default["default"].createElement(CartCard_styles.CartCardImage, { src: image || fallback_grocery }),
|
|
20
|
+
React__default["default"].createElement(CartCard_styles.CartCardInner, null,
|
|
21
|
+
React__default["default"].createElement(CartCard_styles.CartCardInnerTop, null,
|
|
22
|
+
React__default["default"].createElement(CartCard_styles.CartCardInfo, null,
|
|
23
|
+
markings && (React__default["default"].createElement(CartCard_styles.MarkingsContainer, null, markings)),
|
|
24
|
+
title && React__default["default"].createElement(typography.H3, null, title),
|
|
25
|
+
description && description),
|
|
26
|
+
showDelete && (React__default["default"].createElement("div", null,
|
|
27
|
+
React__default["default"].createElement(CgButton.CgButton, { onClick: onDelete, variant: CgButton.EButtonVariant.secondary, icon: React__default["default"].createElement(icons.Icons.Trash, { width: 16, height: 16 }) })))),
|
|
28
|
+
React__default["default"].createElement(CartCard_styles.CartCardPriceContainer, null,
|
|
29
|
+
React__default["default"].createElement(CartCard_styles.PriceContainer, null,
|
|
30
|
+
price,
|
|
31
|
+
value === maxValue && maxReachedWarning && (React__default["default"].createElement(CartCard_styles.MaxWarning, null, maxReachedWarning))),
|
|
32
|
+
!showDelete && quanitytSelector))));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.CartCard = CartCard;
|
|
36
|
+
//# sourceMappingURL=CartCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var global_styles = require('../../shared/global.styles.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
+
|
|
13
|
+
var CartCardImage = styled__default["default"].img(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n width: 48px;\n height: 48px;\n"], ["\n width: 48px;\n height: 48px;\n"])));
|
|
14
|
+
var CartCardContainer = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n align-items: center;\n width: 100%;\n"], ["\n display: flex;\n gap: ", "px;\n align-items: center;\n width: 100%;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
|
|
15
|
+
var CartCardInfo = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
16
|
+
var CartCardInnerTop = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
17
|
+
var CartCardInner = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
18
|
+
var CartCardPriceContainer = styled__default["default"].div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: ", "px;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
19
|
+
styled__default["default"].button(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n ", "\n width: ", "px;\n height: ", "px;\n display: grid;\n place-content: center;\n\n border-radius: ", "px;\n"], ["\n ", "\n width: ", "px;\n height: ", "px;\n display: grid;\n place-content: center;\n\n border-radius: ", "px;\n"])), global_styles.focusVisible, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
20
|
+
var MaxWarningAnimate = styled.keyframes(templateObject_8 || (templateObject_8 = _tslib.__makeTemplateObject(["\n0% { display: block }\n100% { display: none }\n"], ["\n0% { display: block }\n100% { display: none }\n"])));
|
|
21
|
+
var PriceContainer = styled__default["default"].div(templateObject_9 || (templateObject_9 = _tslib.__makeTemplateObject(["\n position: relative;\n flex: 1;\n"], ["\n position: relative;\n flex: 1;\n"])));
|
|
22
|
+
var MaxWarning = styled__default["default"].div(templateObject_10 || (templateObject_10 = _tslib.__makeTemplateObject(["\n color: ", ";\n animation: ", " 2s forwards;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: ", ";\n font-size: ", "px;\n"], ["\n color: ", ";\n animation: ", " 2s forwards;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: ", ";\n font-size: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.alertRed; }, MaxWarningAnimate, 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.typography) === null || _a === void 0 ? void 0 : _a.size.s2; });
|
|
23
|
+
var MarkingsContainer = styled__default["default"].div(templateObject_11 || (templateObject_11 = _tslib.__makeTemplateObject(["\n margin-bottom: ", "px;\n"], ["\n margin-bottom: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
24
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
25
|
+
|
|
26
|
+
exports.CartCardContainer = CartCardContainer;
|
|
27
|
+
exports.CartCardImage = CartCardImage;
|
|
28
|
+
exports.CartCardInfo = CartCardInfo;
|
|
29
|
+
exports.CartCardInner = CartCardInner;
|
|
30
|
+
exports.CartCardInnerTop = CartCardInnerTop;
|
|
31
|
+
exports.CartCardPriceContainer = CartCardPriceContainer;
|
|
32
|
+
exports.MarkingsContainer = MarkingsContainer;
|
|
33
|
+
exports.MaxWarning = MaxWarning;
|
|
34
|
+
exports.PriceContainer = PriceContainer;
|
|
35
|
+
//# sourceMappingURL=CartCard.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartCard.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
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>";
|
|
4
|
+
|
|
5
|
+
module.exports = FallbackIcon;
|
|
6
|
+
//# sourceMappingURL=fallback_grocery.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallback_grocery.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -93,6 +93,7 @@ require('../ToolTipDialog/ToolTipDialog.styles.js');
|
|
|
93
93
|
require('../CartSubTotal/CartSubTotal.js');
|
|
94
94
|
require('../CgButton/CgButton.js');
|
|
95
95
|
require('../CartCardLabel/CartCardLabel.styles.js');
|
|
96
|
+
require('../CartCard/CartCard.styles.js');
|
|
96
97
|
|
|
97
98
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
98
99
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -84,6 +84,7 @@ var ToolTipDialog = require('./components/ToolTipDialog/ToolTipDialog.js');
|
|
|
84
84
|
var CartSubTotal = require('./components/CartSubTotal/CartSubTotal.js');
|
|
85
85
|
var CgButton = require('./components/CgButton/CgButton.js');
|
|
86
86
|
var CartCardLabel = require('./components/CartCardLabel/CartCardLabel.js');
|
|
87
|
+
var CartCard = require('./components/CartCard/CartCard.js');
|
|
87
88
|
|
|
88
89
|
|
|
89
90
|
|
|
@@ -212,4 +213,5 @@ Object.defineProperty(exports, 'ECgButtonSize', {
|
|
|
212
213
|
get: function () { return CgButton.ECgButtonSize; }
|
|
213
214
|
});
|
|
214
215
|
exports.CartCardLabel = CartCardLabel.CartCardLabel;
|
|
216
|
+
exports.CartCard = CartCard.CartCard;
|
|
215
217
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -89,6 +89,7 @@ import '../ToolTipDialog/ToolTipDialog.styles.js';
|
|
|
89
89
|
import '../CartSubTotal/CartSubTotal.js';
|
|
90
90
|
import '../CgButton/CgButton.js';
|
|
91
91
|
import '../CartCardLabel/CartCardLabel.styles.js';
|
|
92
|
+
import '../CartCard/CartCard.styles.js';
|
|
92
93
|
|
|
93
94
|
function AddressBlock(_a) {
|
|
94
95
|
var _b = _a.deliverOption, deliverOption = _b === void 0 ? 'Address' : _b, icon = _a.icon, storeName = _a.storeName, customerName = _a.customerName, street = _a.street, zipCode = _a.zipCode, city = _a.city, doorCode = _a.doorCode, floor = _a.floor, deliveryInstructions = _a.deliveryInstructions, xsSpacing = _a.xsSpacing, lgSpacing = _a.lgSpacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FallbackIcon from './assets/fallback_grocery.svg.js';
|
|
3
|
+
import { CartCardContainer, CartCardImage, CartCardInner, CartCardInnerTop, CartCardInfo, MarkingsContainer, CartCardPriceContainer, PriceContainer, MaxWarning } from './CartCard.styles.js';
|
|
4
|
+
import { H3 } from '@citygross/typography';
|
|
5
|
+
import { Icons } from '@citygross/icons';
|
|
6
|
+
import { CgButton, EButtonVariant } from '../CgButton/CgButton.js';
|
|
7
|
+
|
|
8
|
+
var CartCard = function (_a) {
|
|
9
|
+
var markings = _a.markings, title = _a.title, description = _a.description, showDelete = _a.showDelete, maxReachedWarning = _a.maxReachedWarning, value = _a.value, price = _a.price, image = _a.image, onDelete = _a.onDelete, _b = _a.maxValue, maxValue = _b === void 0 ? 999 : _b, quanitytSelector = _a.quanitytSelector;
|
|
10
|
+
return (React.createElement(CartCardContainer, null,
|
|
11
|
+
React.createElement(CartCardImage, { src: image || FallbackIcon }),
|
|
12
|
+
React.createElement(CartCardInner, null,
|
|
13
|
+
React.createElement(CartCardInnerTop, null,
|
|
14
|
+
React.createElement(CartCardInfo, null,
|
|
15
|
+
markings && (React.createElement(MarkingsContainer, null, markings)),
|
|
16
|
+
title && React.createElement(H3, null, title),
|
|
17
|
+
description && description),
|
|
18
|
+
showDelete && (React.createElement("div", null,
|
|
19
|
+
React.createElement(CgButton, { onClick: onDelete, variant: EButtonVariant.secondary, icon: React.createElement(Icons.Trash, { width: 16, height: 16 }) })))),
|
|
20
|
+
React.createElement(CartCardPriceContainer, null,
|
|
21
|
+
React.createElement(PriceContainer, null,
|
|
22
|
+
price,
|
|
23
|
+
value === maxValue && maxReachedWarning && (React.createElement(MaxWarning, null, maxReachedWarning))),
|
|
24
|
+
!showDelete && quanitytSelector))));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { CartCard };
|
|
28
|
+
//# sourceMappingURL=CartCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import styled, { keyframes } from 'styled-components';
|
|
3
|
+
import { focusVisible } from '../../shared/global.styles.js';
|
|
4
|
+
|
|
5
|
+
var CartCardImage = styled.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 48px;\n height: 48px;\n"], ["\n width: 48px;\n height: 48px;\n"])));
|
|
6
|
+
var CartCardContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n gap: ", "px;\n align-items: center;\n width: 100%;\n"], ["\n display: flex;\n gap: ", "px;\n align-items: center;\n width: 100%;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
|
|
7
|
+
var CartCardInfo = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
8
|
+
var CartCardInnerTop = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
9
|
+
var CartCardInner = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
10
|
+
var CartCardPriceContainer = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: ", "px;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
11
|
+
styled.button(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n width: ", "px;\n height: ", "px;\n display: grid;\n place-content: center;\n\n border-radius: ", "px;\n"], ["\n ", "\n width: ", "px;\n height: ", "px;\n display: grid;\n place-content: center;\n\n border-radius: ", "px;\n"])), focusVisible, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
12
|
+
var MaxWarningAnimate = keyframes(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n0% { display: block }\n100% { display: none }\n"], ["\n0% { display: block }\n100% { display: none }\n"])));
|
|
13
|
+
var PriceContainer = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n position: relative;\n flex: 1;\n"], ["\n position: relative;\n flex: 1;\n"])));
|
|
14
|
+
var MaxWarning = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n animation: ", " 2s forwards;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: ", ";\n font-size: ", "px;\n"], ["\n color: ", ";\n animation: ", " 2s forwards;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: ", ";\n font-size: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.alertRed; }, MaxWarningAnimate, 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.typography) === null || _a === void 0 ? void 0 : _a.size.s2; });
|
|
15
|
+
var MarkingsContainer = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n margin-bottom: ", "px;\n"], ["\n margin-bottom: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
16
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
17
|
+
|
|
18
|
+
export { CartCardContainer, CartCardImage, CartCardInfo, CartCardInner, CartCardInnerTop, CartCardPriceContainer, MarkingsContainer, MaxWarning, PriceContainer };
|
|
19
|
+
//# sourceMappingURL=CartCard.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartCard.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +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>";
|
|
2
|
+
|
|
3
|
+
export { FallbackIcon as default };
|
|
4
|
+
//# sourceMappingURL=fallback_grocery.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallback_grocery.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -89,6 +89,7 @@ import '../ToolTipDialog/ToolTipDialog.styles.js';
|
|
|
89
89
|
import '../CartSubTotal/CartSubTotal.js';
|
|
90
90
|
import '../CgButton/CgButton.js';
|
|
91
91
|
import '../CartCardLabel/CartCardLabel.styles.js';
|
|
92
|
+
import '../CartCard/CartCard.styles.js';
|
|
92
93
|
|
|
93
94
|
function WarningLabel(_a) {
|
|
94
95
|
var children = _a.children, background = _a.background, toolTip = _a.toolTip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -80,4 +80,5 @@ export { ToolTipDialog } from './components/ToolTipDialog/ToolTipDialog.js';
|
|
|
80
80
|
export { CartSubTotal, ECartSubTotalTypes } from './components/CartSubTotal/CartSubTotal.js';
|
|
81
81
|
export { CgButton, EButtonVariant, ECgButtonSize } from './components/CgButton/CgButton.js';
|
|
82
82
|
export { CartCardLabel } from './components/CartCardLabel/CartCardLabel.js';
|
|
83
|
+
export { CartCard } from './components/CartCard/CartCard.js';
|
|
83
84
|
//# 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.
|
|
3
|
+
"version": "0.7.246",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"react-slick": "^0.30.1",
|
|
77
77
|
"slick-carousel": "^1.8.1"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "112f85370c5e9d36da51f8282a09209088934d99"
|
|
80
80
|
}
|