@shopito/design-system 2.0.51 → 2.0.52
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/dist/cjs/components/Sidebar/components/Badge.d.ts +2 -1
- package/dist/cjs/components/Sidebar/components/Badge.js +2 -2
- package/dist/cjs/components/Sidebar/components/Badge.js.map +1 -1
- package/dist/esm/components/Sidebar/components/Badge.d.ts +2 -1
- package/dist/esm/components/Sidebar/components/Badge.js +2 -2
- package/dist/esm/components/Sidebar/components/Badge.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@ var tslib_1 = require("tslib");
|
|
|
4
4
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
var material_1 = require("@mui/material");
|
|
6
6
|
var Badge = function (_a) {
|
|
7
|
-
var label = _a.label;
|
|
7
|
+
var label = _a.label, color = _a.color;
|
|
8
8
|
return (react_1["default"].createElement(material_1.Chip, { label: label, sx: function (theme) { return ({
|
|
9
9
|
fontWeight: theme.typography.fontWeightBold,
|
|
10
10
|
height: '20px',
|
|
11
11
|
position: 'absolute',
|
|
12
12
|
right: '20px',
|
|
13
13
|
top: '0',
|
|
14
|
-
background: theme.sidebar.badge.background,
|
|
14
|
+
background: color || theme.sidebar.badge.background,
|
|
15
15
|
zIndex: 1,
|
|
16
16
|
'& span.MuiChip-label, & span.MuiChip-label:hover': {
|
|
17
17
|
fontSize: '11px',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Sidebar/components/Badge.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,0CAAqC;
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Sidebar/components/Badge.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,0CAAqC;AAOrC,IAAM,KAAK,GAAG,UAAC,EAA4B;QAA1B,KAAK,WAAA,EAAE,KAAK,WAAA;IAC3B,OAAO,CACL,iCAAC,eAAI,IACH,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,UAAC,KAAU,IAAK,OAAA,CAAC;YACnB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc;YAC3C,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,MAAM;YACb,GAAG,EAAE,GAAG;YACR,UAAU,EAAE,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU;YACnD,MAAM,EAAE,CAAC;YACT,kDAAkD,EAAE;gBAClD,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,SAAS;gBACjB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK;gBAChC,EAAE,EAAE,CAAC;aACN;SACF,CAAC,EAdkB,CAclB,eACQ,OAAO,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAe,KAAK,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Chip } from '@mui/material';
|
|
3
3
|
var Badge = function (_a) {
|
|
4
|
-
var label = _a.label;
|
|
4
|
+
var label = _a.label, color = _a.color;
|
|
5
5
|
return (React.createElement(Chip, { label: label, sx: function (theme) { return ({
|
|
6
6
|
fontWeight: theme.typography.fontWeightBold,
|
|
7
7
|
height: '20px',
|
|
8
8
|
position: 'absolute',
|
|
9
9
|
right: '20px',
|
|
10
10
|
top: '0',
|
|
11
|
-
background: theme.sidebar.badge.background,
|
|
11
|
+
background: color || theme.sidebar.badge.background,
|
|
12
12
|
zIndex: 1,
|
|
13
13
|
'& span.MuiChip-label, & span.MuiChip-label:hover': {
|
|
14
14
|
fontSize: '11px',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Sidebar/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Sidebar/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOrC,IAAM,KAAK,GAAG,UAAC,EAA4B;QAA1B,KAAK,WAAA,EAAE,KAAK,WAAA;IAC3B,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,UAAC,KAAU,IAAK,OAAA,CAAC;YACnB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc;YAC3C,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,MAAM;YACb,GAAG,EAAE,GAAG;YACR,UAAU,EAAE,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU;YACnD,MAAM,EAAE,CAAC;YACT,kDAAkD,EAAE;gBAClD,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,SAAS;gBACjB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK;gBAChC,EAAE,EAAE,CAAC;aACN;SACF,CAAC,EAdkB,CAclB,eACQ,OAAO,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|