@citygross/components 0.16.3 → 0.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare type TCartCardLabel = {
3
- background: string;
3
+ background?: string;
4
4
  label: string;
5
5
  };
6
6
  export declare const CartCardLabel: ({ background, label }: TCartCardLabel) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  declare type TCartCardLabel = {
2
- background: string;
2
+ background?: string;
3
3
  };
4
4
  export declare const CartCardLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TCartCardLabel, never>;
5
5
  export {};
@@ -9,10 +9,26 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- var CartCardLabel = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: 1px ", "px;\n border-radius: ", "px;\n ", "\n font-size: 11px;\n display: inline-block;\n"], ["\n padding: 1px ", "px;\n border-radius: ", "px;\n ", "\n font-size: 11px;\n display: inline-block;\n"])), 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.xxxs; }, function (props) {
13
- var _a;
14
- return (props === null || props === void 0 ? void 0 : props.background) &&
15
- "\n background: ".concat(props.background, ";\n color: ").concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white, ";");
12
+ var CartCardLabel = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: 1px ", "px;\n border-radius: ", "px;\n background: ", ";\n color: ", ";\n font-size: 11px;\n display: inline-block;\n font-weight: ", ";\n"], ["\n padding: 1px ", "px;\n border-radius: ", "px;\n background: ", ";\n color: ", ";\n font-size: 11px;\n display: inline-block;\n font-weight: ", ";\n"])), function (_a) {
13
+ var _b;
14
+ var theme = _a.theme;
15
+ return (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs;
16
+ }, function (_a) {
17
+ var _b;
18
+ var theme = _a.theme;
19
+ return (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.xxxs;
20
+ }, function (_a) {
21
+ var _b;
22
+ var background = _a.background, theme = _a.theme;
23
+ return background !== null && background !== void 0 ? background : (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.lighter;
24
+ }, function (_a) {
25
+ var _b, _c;
26
+ var background = _a.background, theme = _a.theme;
27
+ return background ? (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.white : (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.disabledDarkGray;
28
+ }, function (_a) {
29
+ var _b, _c;
30
+ var theme = _a.theme;
31
+ return (_c = (_b = theme.typography) === null || _b === void 0 ? void 0 : _b.weight) === null || _c === void 0 ? void 0 : _c.medium;
16
32
  });
17
33
  var templateObject_1;
18
34
 
@@ -1 +1 @@
1
- {"version":3,"file":"CartCardLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CartCardLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,10 +1,26 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
- var CartCardLabel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 1px ", "px;\n border-radius: ", "px;\n ", "\n font-size: 11px;\n display: inline-block;\n"], ["\n padding: 1px ", "px;\n border-radius: ", "px;\n ", "\n font-size: 11px;\n display: inline-block;\n"])), 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.xxxs; }, function (props) {
5
- var _a;
6
- return (props === null || props === void 0 ? void 0 : props.background) &&
7
- "\n background: ".concat(props.background, ";\n color: ").concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white, ";");
4
+ var CartCardLabel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 1px ", "px;\n border-radius: ", "px;\n background: ", ";\n color: ", ";\n font-size: 11px;\n display: inline-block;\n font-weight: ", ";\n"], ["\n padding: 1px ", "px;\n border-radius: ", "px;\n background: ", ";\n color: ", ";\n font-size: 11px;\n display: inline-block;\n font-weight: ", ";\n"])), function (_a) {
5
+ var _b;
6
+ var theme = _a.theme;
7
+ return (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs;
8
+ }, function (_a) {
9
+ var _b;
10
+ var theme = _a.theme;
11
+ return (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.xxxs;
12
+ }, function (_a) {
13
+ var _b;
14
+ var background = _a.background, theme = _a.theme;
15
+ return background !== null && background !== void 0 ? background : (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.lighter;
16
+ }, function (_a) {
17
+ var _b, _c;
18
+ var background = _a.background, theme = _a.theme;
19
+ return background ? (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.white : (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.disabledDarkGray;
20
+ }, function (_a) {
21
+ var _b, _c;
22
+ var theme = _a.theme;
23
+ return (_c = (_b = theme.typography) === null || _b === void 0 ? void 0 : _b.weight) === null || _c === void 0 ? void 0 : _c.medium;
8
24
  });
9
25
  var templateObject_1;
10
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"CartCardLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"CartCardLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -75,5 +75,5 @@
75
75
  "react-slick": "^0.30.1",
76
76
  "slick-carousel": "^1.8.1"
77
77
  },
78
- "gitHead": "36a626b66cb22bfff4479533a2a0a3cedd72947b"
78
+ "gitHead": "3fa2d3e0f7e56056c83334b697b287c1829ea0ad"
79
79
  }