@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.
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface BadgeProps {
3
3
  label: string;
4
+ color?: string;
4
5
  }
5
- declare const Badge: ({ label }: BadgeProps) => React.JSX.Element;
6
+ declare const Badge: ({ label, color }: BadgeProps) => React.JSX.Element;
6
7
  export default Badge;
@@ -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;AAMrC,IAAM,KAAK,GAAG,UAAC,EAAqB;QAAnB,KAAK,WAAA;IACpB,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,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU;YAC1C,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
+ {"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,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface BadgeProps {
3
3
  label: string;
4
+ color?: string;
4
5
  }
5
- declare const Badge: ({ label }: BadgeProps) => React.JSX.Element;
6
+ declare const Badge: ({ label, color }: BadgeProps) => React.JSX.Element;
6
7
  export default Badge;
@@ -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;AAMrC,IAAM,KAAK,GAAG,UAAC,EAAqB;QAAnB,KAAK,WAAA;IACpB,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,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU;YAC1C,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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopito/design-system",
3
- "version": "2.0.51",
3
+ "version": "2.0.52",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",