@citygross/components 0.8.37 → 0.8.38
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/components/PriceTag/PriceTag.d.ts +1 -0
- package/build/@types/components/PriceTag/PriceTag.styles.d.ts +1 -0
- package/build/cjs/components/src/components/PriceTag/PriceTag.js +17 -19
- package/build/cjs/components/src/components/PriceTag/PriceTag.js.map +1 -1
- package/build/cjs/components/src/components/PriceTag/PriceTag.styles.js +17 -15
- package/build/cjs/components/src/components/PriceTag/PriceTag.styles.js.map +1 -1
- package/build/es/components/src/components/PriceTag/PriceTag.js +18 -20
- package/build/es/components/src/components/PriceTag/PriceTag.js.map +1 -1
- package/build/es/components/src/components/PriceTag/PriceTag.styles.js +17 -16
- package/build/es/components/src/components/PriceTag/PriceTag.styles.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TPriceTag, TSplash } from './PriceTag';
|
|
2
2
|
declare type TPant = Pick<TPriceTag, 'pant'>;
|
|
3
|
+
export declare const PriceTagComponent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TSplash, never>;
|
|
3
4
|
export declare const PriceTagWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TSplash, never>;
|
|
4
5
|
export declare const PriceSplashContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
6
|
export declare const PriceTagContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -23,11 +23,13 @@ var getSplash = function (priceVariant) {
|
|
|
23
23
|
case exports.EPriceVariant.KLIPP:
|
|
24
24
|
return {
|
|
25
25
|
backgroundColor: (_a = designTokens.theme.palette) === null || _a === void 0 ? void 0 : _a.alertRed,
|
|
26
|
+
badgeStr: 'Klipp!',
|
|
26
27
|
fontColor: (_b = designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.white
|
|
27
28
|
};
|
|
28
29
|
case exports.EPriceVariant.PRIO:
|
|
29
30
|
return {
|
|
30
31
|
backgroundColor: (_c = designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.brandPrio,
|
|
32
|
+
badgeStr: 'PRIO',
|
|
31
33
|
fontColor: (_d = designTokens.theme.palette) === null || _d === void 0 ? void 0 : _d.white
|
|
32
34
|
};
|
|
33
35
|
case exports.EPriceVariant.REGULAR_OFFER:
|
|
@@ -51,25 +53,21 @@ var PriceTag = function (_a) {
|
|
|
51
53
|
var multiPriceStr = multiPrice + ' för';
|
|
52
54
|
var priceIndicator = ':-';
|
|
53
55
|
var pantStr = '+pant';
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
pant && React__default["default"].createElement(PriceTag_styles.Pant, null, pantStr))) : (React__default["default"].createElement(PriceTag_styles.PriceDetails, null,
|
|
70
|
-
React__default["default"].createElement(PriceTag_styles.PriceDecimals, null, priceDecimals),
|
|
71
|
-
React__default["default"].createElement(PriceTag_styles.PriceUnit, null, pant ? pantStr : "/".concat(unit))))))),
|
|
72
|
-
priceVariantBadgeStr && (React__default["default"].createElement(PriceTag_styles.PriceVariantBadge, { backgroundColor: splash.backgroundColor }, priceVariantBadgeStr))));
|
|
56
|
+
return (React__default["default"].createElement(PriceTag_styles.PriceTagComponent, { badgeStr: splash.badgeStr },
|
|
57
|
+
React__default["default"].createElement(PriceTag_styles.PriceTagWrapper, { fontColor: splash.fontColor },
|
|
58
|
+
splash.backgroundColor && (React__default["default"].createElement(PriceTag_styles.PriceSplashContainer, null,
|
|
59
|
+
React__default["default"].createElement(icons.Icons.PriceSplash, { backgroundColor: splash.backgroundColor }))),
|
|
60
|
+
React__default["default"].createElement(PriceTag_styles.PriceTagContainer, null,
|
|
61
|
+
React__default["default"].createElement(PriceTag_styles.PriceTagContent, null,
|
|
62
|
+
isMultiPrice && (React__default["default"].createElement(PriceTag_styles.MultiPriceContainer, { pant: pant }, multiPriceStr)),
|
|
63
|
+
React__default["default"].createElement(PriceTag_styles.PriceTag, null,
|
|
64
|
+
React__default["default"].createElement(PriceTag_styles.PriceBase, null, priceBase),
|
|
65
|
+
showPriceIndicator ? (React__default["default"].createElement(PriceTag_styles.PriceIndicatorContainer, null,
|
|
66
|
+
React__default["default"].createElement(PriceTag_styles.PriceIndicator, { pant: pant }, priceIndicator),
|
|
67
|
+
pant && React__default["default"].createElement(PriceTag_styles.Pant, null, pantStr))) : (React__default["default"].createElement(PriceTag_styles.PriceDetails, null,
|
|
68
|
+
React__default["default"].createElement(PriceTag_styles.PriceDecimals, null, priceDecimals),
|
|
69
|
+
React__default["default"].createElement(PriceTag_styles.PriceUnit, null, pant ? pantStr : "/".concat(unit))))))),
|
|
70
|
+
splash.badgeStr && (React__default["default"].createElement(PriceTag_styles.PriceVariantBadge, { backgroundColor: splash.backgroundColor }, splash.badgeStr)))));
|
|
73
71
|
};
|
|
74
72
|
|
|
75
73
|
exports.PriceTag = PriceTag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PriceTag.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,21 +9,22 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
12
|
+
var PriceTagComponent = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding-top: ", "px;\n"], ["\n padding-top: ", "px;\n"])), function (props) { var _a; return (props.badgeStr ? (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm2 : 0); });
|
|
13
|
+
var PriceTagWrapper = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n color: ", ";\n display: grid;\n font-family: ", ";\n height: fit-content;\n width: fit-content;\n position: relative;\n"], ["\n color: ", ";\n display: grid;\n font-family: ", ";\n height: fit-content;\n width: fit-content;\n position: relative;\n"])), function (props) { return props.fontColor; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.type.display; });
|
|
14
|
+
var PriceSplashContainer = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n grid-area: 1 / 1 / 1 / 1;\n position: absolute;\n bottom: 0;\n top: 0;\n right: 0;\n left: 0;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"], ["\n grid-area: 1 / 1 / 1 / 1;\n position: absolute;\n bottom: 0;\n top: 0;\n right: 0;\n left: 0;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])));
|
|
15
|
+
var PriceTagContainer = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n grid-area: 1 / 1 / 1 / 1;\n padding: 0 ", "px\n ", "px\n ", "px;\n position: relative;\n z-index: 1;\n"], ["\n grid-area: 1 / 1 / 1 / 1;\n padding: 0 ", "px\n ", "px\n ", "px;\n position: relative;\n z-index: 1;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs2; }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
16
|
+
var PriceTagContent = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
17
|
+
var MultiPriceContainer = styled__default["default"].div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n margin-bottom: -", "px;\n margin-left: ", "px;\n padding-top: ", "px;\n transform: rotate(-", "deg);\n width: fit-content;\n"], ["\n font-size: ", "px;\n margin-bottom: -", "px;\n margin-left: ", "px;\n padding-top: ", "px;\n transform: rotate(-", "deg);\n width: fit-content;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a, _b; return (props.pant ? (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2 : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs2); }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xxs2; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceRotate; });
|
|
18
|
+
var PriceTag = styled__default["default"].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; });
|
|
19
|
+
var PriceBase = styled__default["default"].span(templateObject_8 || (templateObject_8 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n line-height: 1;\n"], ["\n font-size: ", "px;\n line-height: 1;\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.l1; });
|
|
20
|
+
var PriceDetails = styled__default["default"].div(templateObject_9 || (templateObject_9 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n"])));
|
|
21
|
+
var PriceDecimals = styled__default["default"].span(templateObject_10 || (templateObject_10 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n margin-top: ", "px;\n"], ["\n font-size: ", "px;\n margin-top: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s4; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; });
|
|
22
|
+
var PriceUnit = styled__default["default"].span(templateObject_11 || (templateObject_11 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n"], ["\n font-size: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; });
|
|
23
|
+
var PriceIndicatorContainer = styled__default["default"].div(templateObject_12 || (templateObject_12 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
24
|
+
var PriceIndicator = styled__default["default"].span(templateObject_13 || (templateObject_13 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n margin-top: -", "px;\n transform: rotate(", "deg);\n"], ["\n font-size: ", "px;\n margin-top: -", "px;\n transform: rotate(", "deg);\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.l1; }, function (props) { return (props.pant ? 0 : function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs2; }); }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceIndicatorRotate; });
|
|
25
|
+
var Pant = styled__default["default"].span(templateObject_14 || (templateObject_14 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n margin-top: -", "px;\n"], ["\n font-size: ", "px;\n margin-top: -", "px;\n"])), 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.xxs; });
|
|
26
|
+
var PriceVariantBadge = styled__default["default"].div(templateObject_15 || (templateObject_15 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ", "px;\n width: ", "px;\n position: absolute;\n right: -", "px;\n top: -", "px;\n"], ["\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ", "px;\n width: ", "px;\n position: absolute;\n right: -", "px;\n top: -", "px;\n"])), function (props) { return props.backgroundColor; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceVariantBadgeSize; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceVariantBadgeSize; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
|
|
27
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
27
28
|
|
|
28
29
|
exports.MultiPriceContainer = MultiPriceContainer;
|
|
29
30
|
exports.Pant = Pant;
|
|
@@ -34,6 +35,7 @@ exports.PriceIndicator = PriceIndicator;
|
|
|
34
35
|
exports.PriceIndicatorContainer = PriceIndicatorContainer;
|
|
35
36
|
exports.PriceSplashContainer = PriceSplashContainer;
|
|
36
37
|
exports.PriceTag = PriceTag;
|
|
38
|
+
exports.PriceTagComponent = PriceTagComponent;
|
|
37
39
|
exports.PriceTagContainer = PriceTagContainer;
|
|
38
40
|
exports.PriceTagContent = PriceTagContent;
|
|
39
41
|
exports.PriceTagWrapper = PriceTagWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PriceTag.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PriceTagWrapper, PriceSplashContainer, PriceTagContainer, PriceTagContent, MultiPriceContainer, PriceTag as PriceTag$1, PriceBase, PriceIndicatorContainer, PriceIndicator, Pant, PriceDetails, PriceDecimals, PriceUnit, PriceVariantBadge } from './PriceTag.styles.js';
|
|
2
|
+
import { PriceTagComponent, PriceTagWrapper, PriceSplashContainer, PriceTagContainer, PriceTagContent, MultiPriceContainer, PriceTag as PriceTag$1, PriceBase, PriceIndicatorContainer, PriceIndicator, Pant, PriceDetails, PriceDecimals, PriceUnit, PriceVariantBadge } from './PriceTag.styles.js';
|
|
3
3
|
import { Icons } from '@citygross/icons';
|
|
4
4
|
import { theme } from '@citygross/design-tokens';
|
|
5
5
|
|
|
@@ -15,11 +15,13 @@ var getSplash = function (priceVariant) {
|
|
|
15
15
|
case EPriceVariant.KLIPP:
|
|
16
16
|
return {
|
|
17
17
|
backgroundColor: (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.alertRed,
|
|
18
|
+
badgeStr: 'Klipp!',
|
|
18
19
|
fontColor: (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.white
|
|
19
20
|
};
|
|
20
21
|
case EPriceVariant.PRIO:
|
|
21
22
|
return {
|
|
22
23
|
backgroundColor: (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.brandPrio,
|
|
24
|
+
badgeStr: 'PRIO',
|
|
23
25
|
fontColor: (_d = theme.palette) === null || _d === void 0 ? void 0 : _d.white
|
|
24
26
|
};
|
|
25
27
|
case EPriceVariant.REGULAR_OFFER:
|
|
@@ -43,25 +45,21 @@ var PriceTag = function (_a) {
|
|
|
43
45
|
var multiPriceStr = multiPrice + ' för';
|
|
44
46
|
var priceIndicator = ':-';
|
|
45
47
|
var pantStr = '+pant';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
pant && React.createElement(Pant, null, pantStr))) : (React.createElement(PriceDetails, null,
|
|
62
|
-
React.createElement(PriceDecimals, null, priceDecimals),
|
|
63
|
-
React.createElement(PriceUnit, null, pant ? pantStr : "/".concat(unit))))))),
|
|
64
|
-
priceVariantBadgeStr && (React.createElement(PriceVariantBadge, { backgroundColor: splash.backgroundColor }, priceVariantBadgeStr))));
|
|
48
|
+
return (React.createElement(PriceTagComponent, { badgeStr: splash.badgeStr },
|
|
49
|
+
React.createElement(PriceTagWrapper, { fontColor: splash.fontColor },
|
|
50
|
+
splash.backgroundColor && (React.createElement(PriceSplashContainer, null,
|
|
51
|
+
React.createElement(Icons.PriceSplash, { backgroundColor: splash.backgroundColor }))),
|
|
52
|
+
React.createElement(PriceTagContainer, null,
|
|
53
|
+
React.createElement(PriceTagContent, null,
|
|
54
|
+
isMultiPrice && (React.createElement(MultiPriceContainer, { pant: pant }, multiPriceStr)),
|
|
55
|
+
React.createElement(PriceTag$1, null,
|
|
56
|
+
React.createElement(PriceBase, null, priceBase),
|
|
57
|
+
showPriceIndicator ? (React.createElement(PriceIndicatorContainer, null,
|
|
58
|
+
React.createElement(PriceIndicator, { pant: pant }, priceIndicator),
|
|
59
|
+
pant && React.createElement(Pant, null, pantStr))) : (React.createElement(PriceDetails, null,
|
|
60
|
+
React.createElement(PriceDecimals, null, priceDecimals),
|
|
61
|
+
React.createElement(PriceUnit, null, pant ? pantStr : "/".concat(unit))))))),
|
|
62
|
+
splash.badgeStr && (React.createElement(PriceVariantBadge, { backgroundColor: splash.backgroundColor }, splash.badgeStr)))));
|
|
65
63
|
};
|
|
66
64
|
|
|
67
65
|
export { EPriceVariant, PriceTag };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PriceTag.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
4
|
+
var PriceTagComponent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-top: ", "px;\n"], ["\n padding-top: ", "px;\n"])), function (props) { var _a; return (props.badgeStr ? (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm2 : 0); });
|
|
5
|
+
var PriceTagWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n display: grid;\n font-family: ", ";\n height: fit-content;\n width: fit-content;\n position: relative;\n"], ["\n color: ", ";\n display: grid;\n font-family: ", ";\n height: fit-content;\n width: fit-content;\n position: relative;\n"])), function (props) { return props.fontColor; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.type.display; });
|
|
6
|
+
var PriceSplashContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n grid-area: 1 / 1 / 1 / 1;\n position: absolute;\n bottom: 0;\n top: 0;\n right: 0;\n left: 0;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"], ["\n grid-area: 1 / 1 / 1 / 1;\n position: absolute;\n bottom: 0;\n top: 0;\n right: 0;\n left: 0;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])));
|
|
7
|
+
var PriceTagContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n grid-area: 1 / 1 / 1 / 1;\n padding: 0 ", "px\n ", "px\n ", "px;\n position: relative;\n z-index: 1;\n"], ["\n grid-area: 1 / 1 / 1 / 1;\n padding: 0 ", "px\n ", "px\n ", "px;\n position: relative;\n z-index: 1;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs2; }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
8
|
+
var PriceTagContent = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
9
|
+
var MultiPriceContainer = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: ", "px;\n margin-bottom: -", "px;\n margin-left: ", "px;\n padding-top: ", "px;\n transform: rotate(-", "deg);\n width: fit-content;\n"], ["\n font-size: ", "px;\n margin-bottom: -", "px;\n margin-left: ", "px;\n padding-top: ", "px;\n transform: rotate(-", "deg);\n width: fit-content;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a, _b; return (props.pant ? (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2 : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs2); }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xxs2; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceRotate; });
|
|
10
|
+
var PriceTag = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; });
|
|
11
|
+
var PriceBase = styled.span(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", "px;\n line-height: 1;\n"], ["\n font-size: ", "px;\n line-height: 1;\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.l1; });
|
|
12
|
+
var PriceDetails = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n"])));
|
|
13
|
+
var PriceDecimals = styled.span(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n font-size: ", "px;\n margin-top: ", "px;\n"], ["\n font-size: ", "px;\n margin-top: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s4; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; });
|
|
14
|
+
var PriceUnit = styled.span(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-size: ", "px;\n"], ["\n font-size: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; });
|
|
15
|
+
var PriceIndicatorContainer = styled.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
16
|
+
var PriceIndicator = styled.span(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-size: ", "px;\n margin-top: -", "px;\n transform: rotate(", "deg);\n"], ["\n font-size: ", "px;\n margin-top: -", "px;\n transform: rotate(", "deg);\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.l1; }, function (props) { return (props.pant ? 0 : function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs2; }); }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceIndicatorRotate; });
|
|
17
|
+
var Pant = styled.span(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n font-size: ", "px;\n margin-top: -", "px;\n"], ["\n font-size: ", "px;\n margin-top: -", "px;\n"])), 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.xxs; });
|
|
18
|
+
var PriceVariantBadge = styled.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ", "px;\n width: ", "px;\n position: absolute;\n right: -", "px;\n top: -", "px;\n"], ["\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ", "px;\n width: ", "px;\n position: absolute;\n right: -", "px;\n top: -", "px;\n"])), function (props) { return props.backgroundColor; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceVariantBadgeSize; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.priceVariantBadgeSize; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
|
|
19
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
19
20
|
|
|
20
|
-
export { MultiPriceContainer, Pant, PriceBase, PriceDecimals, PriceDetails, PriceIndicator, PriceIndicatorContainer, PriceSplashContainer, PriceTag, PriceTagContainer, PriceTagContent, PriceTagWrapper, PriceUnit, PriceVariantBadge };
|
|
21
|
+
export { MultiPriceContainer, Pant, PriceBase, PriceDecimals, PriceDetails, PriceIndicator, PriceIndicatorContainer, PriceSplashContainer, PriceTag, PriceTagComponent, PriceTagContainer, PriceTagContent, PriceTagWrapper, PriceUnit, PriceVariantBadge };
|
|
21
22
|
//# sourceMappingURL=PriceTag.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PriceTag.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.38",
|
|
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": "ce6c88899f7f909598665a2d5abd86b7346bc9f4"
|
|
80
80
|
}
|