@citygross/components 0.8.37 → 0.8.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/build/@types/components/ListItem/ListItem.d.ts +7 -1
  2. package/build/@types/components/ListItem/ListItem.styles.d.ts +3 -1
  3. package/build/@types/components/PriceTag/PriceTag.d.ts +1 -0
  4. package/build/@types/components/PriceTag/PriceTag.styles.d.ts +1 -0
  5. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -1
  6. package/build/cjs/components/src/components/ListItem/ListItem.js +12 -7
  7. package/build/cjs/components/src/components/ListItem/ListItem.js.map +1 -1
  8. package/build/cjs/components/src/components/ListItem/ListItem.styles.js +15 -3
  9. package/build/cjs/components/src/components/ListItem/ListItem.styles.js.map +1 -1
  10. package/build/cjs/components/src/components/PriceTag/PriceTag.js +17 -19
  11. package/build/cjs/components/src/components/PriceTag/PriceTag.js.map +1 -1
  12. package/build/cjs/components/src/components/PriceTag/PriceTag.styles.js +17 -15
  13. package/build/cjs/components/src/components/PriceTag/PriceTag.styles.js.map +1 -1
  14. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -1
  15. package/build/cjs/components/src/index.js +4 -0
  16. package/build/cjs/components/src/index.js.map +1 -1
  17. package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -1
  18. package/build/es/components/src/components/ListItem/ListItem.js +13 -8
  19. package/build/es/components/src/components/ListItem/ListItem.js.map +1 -1
  20. package/build/es/components/src/components/ListItem/ListItem.styles.js +15 -3
  21. package/build/es/components/src/components/ListItem/ListItem.styles.js.map +1 -1
  22. package/build/es/components/src/components/PriceTag/PriceTag.js +18 -20
  23. package/build/es/components/src/components/PriceTag/PriceTag.js.map +1 -1
  24. package/build/es/components/src/components/PriceTag/PriceTag.styles.js +17 -16
  25. package/build/es/components/src/components/PriceTag/PriceTag.styles.js.map +1 -1
  26. package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -1
  27. package/build/es/components/src/index.js +1 -1
  28. package/package.json +2 -2
@@ -5,6 +5,10 @@ export declare type TItem = {
5
5
  description?: string;
6
6
  secondaryDescription?: React.ReactNode;
7
7
  };
8
+ export declare enum EListItemAlignment {
9
+ CENTER = "center",
10
+ TOP = "flex-start"
11
+ }
8
12
  export declare type TListItem = {
9
13
  item?: TItem;
10
14
  loading?: boolean;
@@ -15,5 +19,7 @@ export declare type TListItem = {
15
19
  smallSkeleton?: boolean;
16
20
  isSmall?: boolean;
17
21
  usedInSearch?: boolean;
22
+ alignment?: EListItemAlignment;
23
+ textColor?: string;
18
24
  };
19
- export declare function ListItem({ item, loading, isSmall, fallBackImage, imageAutoHeight, boldHeader, smallSkeleton, children, usedInSearch }: TListItem): JSX.Element;
25
+ export declare function ListItem({ item, loading, isSmall, fallBackImage, imageAutoHeight, boldHeader, smallSkeleton, children, alignment, textColor, usedInSearch }: TListItem): JSX.Element;
@@ -1,10 +1,12 @@
1
+ import { EListItemAlignment } from './ListItem';
1
2
  export declare type TListItem = {
2
3
  usedInSearch?: boolean;
4
+ alignment?: EListItemAlignment;
3
5
  };
4
6
  export declare const ItemInformationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TListItem, never>;
5
7
  export declare const ListItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
8
  export declare const ListLeft: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TListItem, never>;
7
- export declare const ListRight: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const ListRight: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<TListItem, "alignment">, never>;
8
10
  export declare type TListImageContainer = {
9
11
  isSmall?: boolean;
10
12
  };
@@ -13,6 +13,7 @@ export declare type TPriceTag = {
13
13
  };
14
14
  export declare type TSplash = {
15
15
  backgroundColor?: string;
16
+ badgeStr?: string;
16
17
  fontColor?: string;
17
18
  };
18
19
  export declare const PriceTag: React.FunctionComponent<TPriceTag>;
@@ -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>;
@@ -50,7 +50,7 @@ require('../IconToolTip/IconToolTip.styles.js');
50
50
  var Spacer = require('../Spacer/Spacer.js');
51
51
  require('../InfoTextBlock/InfoTextBlock.styles.js');
52
52
  require('../LayoutBox/LayoutBox.styles.js');
53
- require('../ListItem/ListItem.styles.js');
53
+ require('../ListItem/ListItem.js');
54
54
  require('../ListItemWithRadio/ListItemWithRadio.styles.js');
55
55
  require('../Links/Link.js');
56
56
  require('react-dom');
@@ -14,21 +14,26 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var Skeleton__default = /*#__PURE__*/_interopDefaultLegacy(Skeleton);
16
16
 
17
+ exports.EListItemAlignment = void 0;
18
+ (function (EListItemAlignment) {
19
+ EListItemAlignment["CENTER"] = "center";
20
+ EListItemAlignment["TOP"] = "flex-start";
21
+ })(exports.EListItemAlignment || (exports.EListItemAlignment = {}));
17
22
  function ListItem(_a) {
18
- var _b;
19
- var item = _a.item, loading = _a.loading, isSmall = _a.isSmall, fallBackImage = _a.fallBackImage, imageAutoHeight = _a.imageAutoHeight, boldHeader = _a.boldHeader, smallSkeleton = _a.smallSkeleton, children = _a.children, usedInSearch = _a.usedInSearch;
23
+ var _b, _c;
24
+ var item = _a.item, loading = _a.loading, isSmall = _a.isSmall, fallBackImage = _a.fallBackImage, imageAutoHeight = _a.imageAutoHeight, boldHeader = _a.boldHeader, smallSkeleton = _a.smallSkeleton, children = _a.children, _d = _a.alignment, alignment = _d === void 0 ? exports.EListItemAlignment.CENTER : _d, textColor = _a.textColor, usedInSearch = _a.usedInSearch;
20
25
  return (React__default["default"].createElement(ListItem_styles.ListItemContainer, null,
21
- React__default["default"].createElement(ListItem_styles.ListLeft, { usedInSearch: usedInSearch },
26
+ React__default["default"].createElement(ListItem_styles.ListLeft, { usedInSearch: usedInSearch, alignment: alignment },
22
27
  React__default["default"].createElement(ListItem_styles.ListImageContainer, { isSmall: isSmall },
23
28
  React__default["default"].createElement(ListItem_styles.ListImage, { autoHeight: imageAutoHeight, src: (item === null || item === void 0 ? void 0 : item.image) || fallBackImage || fallback_grocery, alt: item === null || item === void 0 ? void 0 : item.name, isSmall: isSmall })),
24
- React__default["default"].createElement(ListItem_styles.ItemInformationContainer, { usedInSearch: usedInSearch },
25
- React__default["default"].createElement(typography.BodyText, { fontWeight: boldHeader ? 'semiBold' : 'regular', size: isSmall
29
+ React__default["default"].createElement(ListItem_styles.ItemInformationContainer, { usedInSearch: usedInSearch, alignment: alignment },
30
+ React__default["default"].createElement(typography.BodyText, { fontWeight: boldHeader ? 'semiBold' : 'regular', color: textColor || ((_b = index.theme.palette) === null || _b === void 0 ? void 0 : _b.darkest), size: isSmall
26
31
  ? typography.TextTypes.TextSize.EXTRASMALL
27
32
  : typography.TextTypes.TextSize.REGULAR }, (item === null || item === void 0 ? void 0 : item.name) || React__default["default"].createElement(Skeleton__default["default"], { width: smallSkeleton ? 150 : 250 })),
28
33
  loading ? (React__default["default"].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL },
29
- React__default["default"].createElement(Skeleton__default["default"], { width: smallSkeleton ? 150 : 250 }))) : (item === null || item === void 0 ? void 0 : item.description) ? (React__default["default"].createElement(typography.BodyText, { size: isSmall ? typography.TextTypes.TextSize.TINY : typography.TextTypes.TextSize.SMALL, color: (_b = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _b === void 0 ? void 0 : _b.dark }, item === null || item === void 0 ? void 0 : item.description)) : null,
34
+ React__default["default"].createElement(Skeleton__default["default"], { width: smallSkeleton ? 150 : 250 }))) : (item === null || item === void 0 ? void 0 : item.description) ? (React__default["default"].createElement(typography.BodyText, { size: isSmall ? typography.TextTypes.TextSize.TINY : typography.TextTypes.TextSize.SMALL, color: textColor || ((_c = index.theme.palette) === null || _c === void 0 ? void 0 : _c.dark) }, item === null || item === void 0 ? void 0 : item.description)) : null,
30
35
  (item === null || item === void 0 ? void 0 : item.secondaryDescription) && item.secondaryDescription)),
31
- children && React__default["default"].createElement(ListItem_styles.ListRight, null, children)));
36
+ children && (React__default["default"].createElement(ListItem_styles.ListRight, { alignment: alignment }, children))));
32
37
  }
33
38
 
34
39
  exports.ListItem = ListItem;
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,15 +4,27 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _tslib = require('../../../../_virtual/_tslib.js');
6
6
  var styled = require('styled-components');
7
+ var ListItem = require('./ListItem.js');
7
8
 
8
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
10
 
10
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
12
 
12
- var ItemInformationContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"])), function (props) { var _a; return (props.usedInSearch ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs); });
13
+ var ItemInformationContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"])), function (props) {
14
+ var _a;
15
+ return props.usedInSearch || props.alignment === ListItem.EListItemAlignment.TOP
16
+ ? 0
17
+ : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs;
18
+ });
13
19
  var ListItemContainer = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n p {\n padding: 1px 0px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n p {\n padding: 1px 0px;\n }\n"])));
14
- var ListLeft = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"], ["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"])), function (props) { return (props.usedInSearch ? 'inherit' : 'center'); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.listItemFlexGap; });
15
- var ListRight = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"])));
20
+ var ListLeft = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"], ["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"])), function (props) {
21
+ return props.usedInSearch || props.alignment === ListItem.EListItemAlignment.TOP
22
+ ? 'inherit'
23
+ : 'center';
24
+ }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.listItemFlexGap; });
25
+ var ListRight = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: ", ";\n justify-content: space-between;\n text-align: right;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: ", ";\n justify-content: space-between;\n text-align: right;\n"])), function (props) {
26
+ return props.alignment === ListItem.EListItemAlignment.TOP ? 'flex-start' : 'center';
27
+ });
16
28
  var ListImageContainer = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"])), function (props) {
17
29
  var _a, _b;
18
30
  return (props === null || props === void 0 ? void 0 : props.isSmall)
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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
- var priceVariantBadgeStr = priceVariant === exports.EPriceVariant.KLIPP
55
- ? 'Klipp!'
56
- : priceVariant === exports.EPriceVariant.PRIO
57
- ? 'PRIO'
58
- : null;
59
- return (React__default["default"].createElement(PriceTag_styles.PriceTagWrapper, { fontColor: splash.fontColor },
60
- splash.backgroundColor && (React__default["default"].createElement(PriceTag_styles.PriceSplashContainer, null,
61
- React__default["default"].createElement(icons.Icons.PriceSplash, { backgroundColor: splash.backgroundColor }))),
62
- React__default["default"].createElement(PriceTag_styles.PriceTagContainer, null,
63
- React__default["default"].createElement(PriceTag_styles.PriceTagContent, null,
64
- isMultiPrice && (React__default["default"].createElement(PriceTag_styles.MultiPriceContainer, { pant: pant }, multiPriceStr)),
65
- React__default["default"].createElement(PriceTag_styles.PriceTag, null,
66
- React__default["default"].createElement(PriceTag_styles.PriceBase, null, priceBase),
67
- showPriceIndicator ? (React__default["default"].createElement(PriceTag_styles.PriceIndicatorContainer, null,
68
- React__default["default"].createElement(PriceTag_styles.PriceIndicator, { pant: pant }, priceIndicator),
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 PriceTagWrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = _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; });
13
- var PriceSplashContainer = styled__default["default"].div(templateObject_2 || (templateObject_2 = _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"])));
14
- var PriceTagContainer = styled__default["default"].div(templateObject_3 || (templateObject_3 = _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; });
15
- var PriceTagContent = styled__default["default"].div(templateObject_4 || (templateObject_4 = _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; });
16
- var MultiPriceContainer = styled__default["default"].div(templateObject_5 || (templateObject_5 = _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; });
17
- var PriceTag = styled__default["default"].div(templateObject_6 || (templateObject_6 = _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; });
18
- var PriceBase = styled__default["default"].span(templateObject_7 || (templateObject_7 = _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; });
19
- var PriceDetails = styled__default["default"].div(templateObject_8 || (templateObject_8 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
20
- var PriceDecimals = styled__default["default"].span(templateObject_9 || (templateObject_9 = _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; });
21
- var PriceUnit = styled__default["default"].span(templateObject_10 || (templateObject_10 = _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; });
22
- var PriceIndicatorContainer = styled__default["default"].div(templateObject_11 || (templateObject_11 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
23
- var PriceIndicator = styled__default["default"].span(templateObject_12 || (templateObject_12 = _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; });
24
- var Pant = styled__default["default"].span(templateObject_13 || (templateObject_13 = _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; });
25
- var PriceVariantBadge = styled__default["default"].div(templateObject_14 || (templateObject_14 = _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; });
26
- 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;
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -50,7 +50,7 @@ require('../IconToolTip/IconToolTip.styles.js');
50
50
  require('../Spacer/Spacer.styles.js');
51
51
  require('../InfoTextBlock/InfoTextBlock.styles.js');
52
52
  require('../LayoutBox/LayoutBox.styles.js');
53
- require('../ListItem/ListItem.styles.js');
53
+ require('../ListItem/ListItem.js');
54
54
  require('../ListItemWithRadio/ListItemWithRadio.styles.js');
55
55
  require('../Links/Link.js');
56
56
  require('react-dom');
@@ -139,6 +139,10 @@ exports.HighlightBox = HighlightBox.HighlightBox;
139
139
  exports.IconToolTip = IconToolTip.IconToolTip;
140
140
  exports.InfoWithButtonBlock = InfoTextBlock.InfoWithButtonBlock;
141
141
  exports.LayoutBox = LayoutBox.LayoutBox;
142
+ Object.defineProperty(exports, 'EListItemAlignment', {
143
+ enumerable: true,
144
+ get: function () { return ListItem.EListItemAlignment; }
145
+ });
142
146
  exports.ListItem = ListItem.ListItem;
143
147
  exports.ListItemWithRadio = ListItemWithRadio.ListItemWithRadio;
144
148
  Object.defineProperty(exports, 'ELinkVariant', {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -46,7 +46,7 @@ import '../IconToolTip/IconToolTip.styles.js';
46
46
  import { Spacer } from '../Spacer/Spacer.js';
47
47
  import '../InfoTextBlock/InfoTextBlock.styles.js';
48
48
  import '../LayoutBox/LayoutBox.styles.js';
49
- import '../ListItem/ListItem.styles.js';
49
+ import '../ListItem/ListItem.js';
50
50
  import '../ListItemWithRadio/ListItemWithRadio.styles.js';
51
51
  import '../Links/Link.js';
52
52
  import 'react-dom';
@@ -5,22 +5,27 @@ import FallbackIcon from './assets/fallback_grocery.svg.js';
5
5
  import { ListItemContainer, ListLeft, ListImageContainer, ListImage, ItemInformationContainer, ListRight } from './ListItem.styles.js';
6
6
  import { theme as theme_1 } from '../../../../design-tokens/build/index.js';
7
7
 
8
+ var EListItemAlignment;
9
+ (function (EListItemAlignment) {
10
+ EListItemAlignment["CENTER"] = "center";
11
+ EListItemAlignment["TOP"] = "flex-start";
12
+ })(EListItemAlignment || (EListItemAlignment = {}));
8
13
  function ListItem(_a) {
9
- var _b;
10
- var item = _a.item, loading = _a.loading, isSmall = _a.isSmall, fallBackImage = _a.fallBackImage, imageAutoHeight = _a.imageAutoHeight, boldHeader = _a.boldHeader, smallSkeleton = _a.smallSkeleton, children = _a.children, usedInSearch = _a.usedInSearch;
14
+ var _b, _c;
15
+ var item = _a.item, loading = _a.loading, isSmall = _a.isSmall, fallBackImage = _a.fallBackImage, imageAutoHeight = _a.imageAutoHeight, boldHeader = _a.boldHeader, smallSkeleton = _a.smallSkeleton, children = _a.children, _d = _a.alignment, alignment = _d === void 0 ? EListItemAlignment.CENTER : _d, textColor = _a.textColor, usedInSearch = _a.usedInSearch;
11
16
  return (React.createElement(ListItemContainer, null,
12
- React.createElement(ListLeft, { usedInSearch: usedInSearch },
17
+ React.createElement(ListLeft, { usedInSearch: usedInSearch, alignment: alignment },
13
18
  React.createElement(ListImageContainer, { isSmall: isSmall },
14
19
  React.createElement(ListImage, { autoHeight: imageAutoHeight, src: (item === null || item === void 0 ? void 0 : item.image) || fallBackImage || FallbackIcon, alt: item === null || item === void 0 ? void 0 : item.name, isSmall: isSmall })),
15
- React.createElement(ItemInformationContainer, { usedInSearch: usedInSearch },
16
- React.createElement(BodyText, { fontWeight: boldHeader ? 'semiBold' : 'regular', size: isSmall
20
+ React.createElement(ItemInformationContainer, { usedInSearch: usedInSearch, alignment: alignment },
21
+ React.createElement(BodyText, { fontWeight: boldHeader ? 'semiBold' : 'regular', color: textColor || ((_b = theme_1.palette) === null || _b === void 0 ? void 0 : _b.darkest), size: isSmall
17
22
  ? TextTypes.TextSize.EXTRASMALL
18
23
  : TextTypes.TextSize.REGULAR }, (item === null || item === void 0 ? void 0 : item.name) || React.createElement(Skeleton, { width: smallSkeleton ? 150 : 250 })),
19
24
  loading ? (React.createElement(BodyText, { size: TextTypes.TextSize.SMALL },
20
- React.createElement(Skeleton, { width: smallSkeleton ? 150 : 250 }))) : (item === null || item === void 0 ? void 0 : item.description) ? (React.createElement(BodyText, { size: isSmall ? TextTypes.TextSize.TINY : TextTypes.TextSize.SMALL, color: (_b = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _b === void 0 ? void 0 : _b.dark }, item === null || item === void 0 ? void 0 : item.description)) : null,
25
+ React.createElement(Skeleton, { width: smallSkeleton ? 150 : 250 }))) : (item === null || item === void 0 ? void 0 : item.description) ? (React.createElement(BodyText, { size: isSmall ? TextTypes.TextSize.TINY : TextTypes.TextSize.SMALL, color: textColor || ((_c = theme_1.palette) === null || _c === void 0 ? void 0 : _c.dark) }, item === null || item === void 0 ? void 0 : item.description)) : null,
21
26
  (item === null || item === void 0 ? void 0 : item.secondaryDescription) && item.secondaryDescription)),
22
- children && React.createElement(ListRight, null, children)));
27
+ children && (React.createElement(ListRight, { alignment: alignment }, children))));
23
28
  }
24
29
 
25
- export { ListItem };
30
+ export { EListItemAlignment, ListItem };
26
31
  //# sourceMappingURL=ListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,10 +1,22 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
+ import { EListItemAlignment } from './ListItem.js';
3
4
 
4
- var ItemInformationContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"])), function (props) { var _a; return (props.usedInSearch ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs); });
5
+ var ItemInformationContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: ", "px;\n"])), function (props) {
6
+ var _a;
7
+ return props.usedInSearch || props.alignment === EListItemAlignment.TOP
8
+ ? 0
9
+ : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs;
10
+ });
5
11
  var ListItemContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n p {\n padding: 1px 0px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n p {\n padding: 1px 0px;\n }\n"])));
6
- var ListLeft = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"], ["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"])), function (props) { return (props.usedInSearch ? 'inherit' : 'center'); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.listItemFlexGap; });
7
- var ListRight = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"])));
12
+ var ListLeft = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"], ["\n display: flex;\n align-items: ", ";\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: ", "px;\n }\n"])), function (props) {
13
+ return props.usedInSearch || props.alignment === EListItemAlignment.TOP
14
+ ? 'inherit'
15
+ : 'center';
16
+ }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.listItemFlexGap; });
17
+ var ListRight = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: ", ";\n justify-content: space-between;\n text-align: right;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: ", ";\n justify-content: space-between;\n text-align: right;\n"])), function (props) {
18
+ return props.alignment === EListItemAlignment.TOP ? 'flex-start' : 'center';
19
+ });
8
20
  var ListImageContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"])), function (props) {
9
21
  var _a, _b;
10
22
  return (props === null || props === void 0 ? void 0 : props.isSmall)
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ListItem.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
- var priceVariantBadgeStr = priceVariant === EPriceVariant.KLIPP
47
- ? 'Klipp!'
48
- : priceVariant === EPriceVariant.PRIO
49
- ? 'PRIO'
50
- : null;
51
- return (React.createElement(PriceTagWrapper, { fontColor: splash.fontColor },
52
- splash.backgroundColor && (React.createElement(PriceSplashContainer, null,
53
- React.createElement(Icons.PriceSplash, { backgroundColor: splash.backgroundColor }))),
54
- React.createElement(PriceTagContainer, null,
55
- React.createElement(PriceTagContent, null,
56
- isMultiPrice && (React.createElement(MultiPriceContainer, { pant: pant }, multiPriceStr)),
57
- React.createElement(PriceTag$1, null,
58
- React.createElement(PriceBase, null, priceBase),
59
- showPriceIndicator ? (React.createElement(PriceIndicatorContainer, null,
60
- React.createElement(PriceIndicator, { pant: pant }, priceIndicator),
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 PriceTagWrapper = styled.div(templateObject_1 || (templateObject_1 = __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; });
5
- var PriceSplashContainer = styled.div(templateObject_2 || (templateObject_2 = __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"])));
6
- var PriceTagContainer = styled.div(templateObject_3 || (templateObject_3 = __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; });
7
- var PriceTagContent = styled.div(templateObject_4 || (templateObject_4 = __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; });
8
- var MultiPriceContainer = styled.div(templateObject_5 || (templateObject_5 = __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; });
9
- var PriceTag = styled.div(templateObject_6 || (templateObject_6 = __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; });
10
- var PriceBase = styled.span(templateObject_7 || (templateObject_7 = __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; });
11
- var PriceDetails = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
12
- var PriceDecimals = styled.span(templateObject_9 || (templateObject_9 = __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; });
13
- var PriceUnit = styled.span(templateObject_10 || (templateObject_10 = __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; });
14
- var PriceIndicatorContainer = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
15
- var PriceIndicator = styled.span(templateObject_12 || (templateObject_12 = __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; });
16
- var Pant = styled.span(templateObject_13 || (templateObject_13 = __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; });
17
- var PriceVariantBadge = styled.div(templateObject_14 || (templateObject_14 = __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; });
18
- 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;
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":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -46,7 +46,7 @@ import '../IconToolTip/IconToolTip.styles.js';
46
46
  import '../Spacer/Spacer.styles.js';
47
47
  import '../InfoTextBlock/InfoTextBlock.styles.js';
48
48
  import '../LayoutBox/LayoutBox.styles.js';
49
- import '../ListItem/ListItem.styles.js';
49
+ import '../ListItem/ListItem.js';
50
50
  import '../ListItemWithRadio/ListItemWithRadio.styles.js';
51
51
  import '../Links/Link.js';
52
52
  import 'react-dom';
@@ -35,7 +35,7 @@ export { HighlightBox } from './components/HighlightBox/HighlightBox.js';
35
35
  export { IconToolTip } from './components/IconToolTip/IconToolTip.js';
36
36
  export { InfoWithButtonBlock } from './components/InfoTextBlock/InfoTextBlock.js';
37
37
  export { LayoutBox } from './components/LayoutBox/LayoutBox.js';
38
- export { ListItem } from './components/ListItem/ListItem.js';
38
+ export { EListItemAlignment, ListItem } from './components/ListItem/ListItem.js';
39
39
  export { ListItemWithRadio } from './components/ListItemWithRadio/ListItemWithRadio.js';
40
40
  export { ELinkVariant, Link, LinkColors, LinkSize } from './components/Links/Link.js';
41
41
  export { Modal } from './components/Modal/Modal.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.8.37",
3
+ "version": "0.8.39",
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": "623be645912e25bedfbb2538e3fe9a0072affc30"
79
+ "gitHead": "22526999104e426d8685060fd811895054863db8"
80
80
  }