@atlaskit/badge 15.1.4 → 15.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/badge
2
2
 
3
+ ## 15.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update how certain background colors are referenced by name. Internal changes only.
8
+ - Updated dependencies
9
+
3
10
  ## 15.1.4
4
11
 
5
12
  ### Patch Changes
package/dist/cjs/badge.js CHANGED
@@ -16,7 +16,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
16
16
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
17
17
 
18
18
  var boxStyles = (0, _primitives.xcss)({
19
- borderRadius: 'radius.200',
19
+ borderRadius: 'border.radius.200',
20
20
  display: 'inlineFlex'
21
21
  });
22
22
 
@@ -61,12 +61,12 @@ Badge.displayName = 'Badge';
61
61
  var _default = Badge;
62
62
  exports.default = _default;
63
63
  var backgroundColors = {
64
- added: 'success',
65
- default: 'neutral',
66
- important: 'danger.bold',
67
- primary: 'brand.bold',
64
+ added: 'color.background.success',
65
+ default: 'color.background.neutral',
66
+ important: 'color.background.danger.bold',
67
+ primary: 'color.background.brand.bold',
68
68
  primaryInverted: 'elevation.surface',
69
- removed: 'danger'
69
+ removed: 'color.background.danger'
70
70
  };
71
71
  var textColors = {
72
72
  added: 'success',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "sideEffects": false
5
5
  }
@@ -5,7 +5,7 @@ import Text from '@atlaskit/ds-explorations/text';
5
5
  import { Box, xcss } from '@atlaskit/primitives';
6
6
  import { formatValue } from './internal/utils';
7
7
  const boxStyles = xcss({
8
- borderRadius: 'radius.200',
8
+ borderRadius: 'border.radius.200',
9
9
  display: 'inlineFlex'
10
10
  });
11
11
 
@@ -47,12 +47,12 @@ const Badge = /*#__PURE__*/memo(function Badge({
47
47
  Badge.displayName = 'Badge';
48
48
  export default Badge;
49
49
  const backgroundColors = {
50
- added: 'success',
51
- default: 'neutral',
52
- important: 'danger.bold',
53
- primary: 'brand.bold',
50
+ added: 'color.background.success',
51
+ default: 'color.background.neutral',
52
+ important: 'color.background.danger.bold',
53
+ primary: 'color.background.brand.bold',
54
54
  primaryInverted: 'elevation.surface',
55
- removed: 'danger'
55
+ removed: 'color.background.danger'
56
56
  };
57
57
  const textColors = {
58
58
  added: 'success',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/badge.js CHANGED
@@ -5,7 +5,7 @@ import Text from '@atlaskit/ds-explorations/text';
5
5
  import { Box, xcss } from '@atlaskit/primitives';
6
6
  import { formatValue } from './internal/utils';
7
7
  var boxStyles = xcss({
8
- borderRadius: 'radius.200',
8
+ borderRadius: 'border.radius.200',
9
9
  display: 'inlineFlex'
10
10
  });
11
11
 
@@ -49,12 +49,12 @@ var Badge = /*#__PURE__*/memo(function Badge(_ref) {
49
49
  Badge.displayName = 'Badge';
50
50
  export default Badge;
51
51
  var backgroundColors = {
52
- added: 'success',
53
- default: 'neutral',
54
- important: 'danger.bold',
55
- primary: 'brand.bold',
52
+ added: 'color.background.success',
53
+ default: 'color.background.neutral',
54
+ important: 'color.background.danger.bold',
55
+ primary: 'color.background.brand.bold',
56
56
  primaryInverted: 'elevation.surface',
57
- removed: 'danger'
57
+ removed: 'color.background.danger'
58
58
  };
59
59
  var textColors = {
60
60
  added: 'success',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "description": "A badge is a visual indicator for numeric values such as tallies and scores.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"