@terraware/web-components 2.8.1-rc.0 → 2.9.0

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.
@@ -2,6 +2,7 @@ export interface BadgeProps {
2
2
  backgroundColor?: string;
3
3
  borderColor?: string;
4
4
  label: string;
5
+ labelColor?: string;
5
6
  }
6
7
  declare const Badge: (props: BadgeProps) => JSX.Element;
7
8
  export default Badge;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,KAAK,UAAW,UAAU,KAAG,WAoBlC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,KAAK,UAAW,UAAU,KAAG,WAqBlC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -11,6 +11,7 @@ var Badge = function Badge(props) {
11
11
  var theme = (0, _material.useTheme)();
12
12
  var backgroundColor = props.backgroundColor || theme.palette.TwClrBgSecondary;
13
13
  var borderColor = props.borderColor || theme.palette.TwClrBrdrSecondary;
14
+ var labelColor = props.labelColor || borderColor;
14
15
  return /*#__PURE__*/_react.default.createElement(_material.Box, {
15
16
  sx: {
16
17
  backgroundColor: backgroundColor,
@@ -20,7 +21,7 @@ var Badge = function Badge(props) {
20
21
  width: 'fit-content'
21
22
  }
22
23
  }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
23
- color: borderColor,
24
+ color: labelColor,
24
25
  fontSize: "14px",
25
26
  fontWeight: 500
26
27
  }, props.label));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terraware/web-components",
3
- "version": "2.8.1-rc.0",
3
+ "version": "2.9.0",
4
4
  "author": "Terraformation Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {