@atlaskit/badge 17.0.0 → 17.0.2

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,22 @@
1
1
  # @atlaskit/badge
2
2
 
3
+ ## 17.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#104100](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104100)
8
+ [`2b1fcf6b76f75`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2b1fcf6b76f75) -
9
+ Update dependencies and remove unused exports.
10
+
11
+ ## 17.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#103261](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103261)
16
+ [`313a78293b12a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/313a78293b12a) -
17
+ Internal patch for testId. Fixes data-testId warning. No functionality change.
18
+ - Updated dependencies
19
+
3
20
  ## 17.0.0
4
21
 
5
22
  ### Major Changes
package/dist/cjs/badge.js CHANGED
@@ -80,7 +80,7 @@ var Badge = /*#__PURE__*/(0, _react.memo)(function Badge(_ref) {
80
80
  }, typeof children === 'number' && max ? (0, _utils.formatValue)(children, max) : children));
81
81
  }
82
82
  return /*#__PURE__*/React.createElement("span", {
83
- "data-testId": testId,
83
+ "data-testid": testId,
84
84
  style: {
85
85
  backgroundColor: style === null || style === void 0 ? void 0 : style.backgroundColor,
86
86
  color: style === null || style === void 0 ? void 0 : style.color
@@ -69,7 +69,7 @@ const Badge = /*#__PURE__*/memo(function Badge({
69
69
  }, typeof children === 'number' && max ? formatValue(children, max) : children));
70
70
  }
71
71
  return /*#__PURE__*/React.createElement("span", {
72
- "data-testId": testId,
72
+ "data-testid": testId,
73
73
  style: {
74
74
  backgroundColor: style === null || style === void 0 ? void 0 : style.backgroundColor,
75
75
  color: style === null || style === void 0 ? void 0 : style.color
package/dist/esm/badge.js CHANGED
@@ -71,7 +71,7 @@ var Badge = /*#__PURE__*/memo(function Badge(_ref) {
71
71
  }, typeof children === 'number' && max ? formatValue(children, max) : children));
72
72
  }
73
73
  return /*#__PURE__*/React.createElement("span", {
74
- "data-testId": testId,
74
+ "data-testid": testId,
75
75
  style: {
76
76
  backgroundColor: style === null || style === void 0 ? void 0 : style.backgroundColor,
77
77
  color: style === null || style === void 0 ? void 0 : style.color
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "17.0.0",
3
+ "version": "17.0.2",
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/"
@@ -38,10 +38,9 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/codemod-utils": "^4.2.0",
41
- "@atlaskit/css": "^0.7.0",
42
41
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
42
  "@atlaskit/primitives": "^13.3.0",
44
- "@atlaskit/tokens": "^3.0.0",
43
+ "@atlaskit/tokens": "^3.2.0",
45
44
  "@babel/runtime": "^7.0.0",
46
45
  "@compiled/react": "^0.18.1"
47
46
  },
@@ -52,13 +51,16 @@
52
51
  "@af/accessibility-testing": "*",
53
52
  "@af/integration-testing": "*",
54
53
  "@af/visual-regression": "*",
54
+ "@atlaskit/docs": "*",
55
55
  "@atlaskit/ds-lib": "^3.3.0",
56
+ "@atlaskit/link": "*",
57
+ "@atlaskit/section-message": "*",
56
58
  "@atlaskit/ssr": "*",
59
+ "@atlaskit/theme": "^14.0.4",
57
60
  "@atlassian/feature-flags-test-utils": "*",
58
61
  "@testing-library/react": "^12.1.5",
59
62
  "jscodeshift": "^0.13.0",
60
63
  "react-dom": "^16.8.0",
61
- "storybook-addon-performance": "^0.17.3",
62
64
  "typescript": "~5.4.2"
63
65
  },
64
66
  "techstack": {
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- import Badge from '@atlaskit/badge';
4
-
5
- export default () => <Badge>{8}</Badge>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
-
3
- import Badge from '@atlaskit/badge';
4
-
5
- export default () => {
6
- return (
7
- <Badge appearance="added" max={99}>
8
- {3000}
9
- </Badge>
10
- );
11
- };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- import Badge from '@atlaskit/badge';
4
-
5
- export default () => {
6
- return <Badge appearance="important">{25}</Badge>;
7
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "default", {
8
- enumerable: true,
9
- get: function get() {
10
- return _badge.default;
11
- }
12
- });
13
- var _badge = _interopRequireDefault(require("../badge"));
@@ -1 +0,0 @@
1
- export { default } from '../badge';
@@ -1 +0,0 @@
1
- export { default } from '../badge';
@@ -1,2 +0,0 @@
1
- export { default } from '../badge';
2
- export type { BadgeProps } from '../types';
@@ -1,2 +0,0 @@
1
- export { default } from '../badge';
2
- export type { BadgeProps } from '../types';