@atlaskit/badge 18.4.0 → 18.4.1
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 +8 -0
- package/dist/cjs/badge.js +6 -10
- package/dist/es2019/badge.js +6 -10
- package/dist/esm/badge.js +6 -10
- package/dist/types/badge-new.d.ts +1 -1
- package/dist/types/badge.d.ts +1 -1
- package/dist/types-ts4.5/badge-new.d.ts +1 -1
- package/dist/types-ts4.5/badge.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/cjs/badge.js
CHANGED
|
@@ -60,16 +60,12 @@ var Badge = /*#__PURE__*/(0, _react.memo)(function Badge(_ref) {
|
|
|
60
60
|
if ((0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts')) {
|
|
61
61
|
// Map old appearance names to new ones
|
|
62
62
|
var newAppearance = _badgeNew.appearanceMapping[appearance];
|
|
63
|
-
return (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
style: style,
|
|
70
|
-
testId: testId
|
|
71
|
-
}, children)
|
|
72
|
-
);
|
|
63
|
+
return /*#__PURE__*/React.createElement(_badgeNew.default, {
|
|
64
|
+
appearance: newAppearance,
|
|
65
|
+
max: max,
|
|
66
|
+
style: style,
|
|
67
|
+
testId: testId
|
|
68
|
+
}, children);
|
|
73
69
|
}
|
|
74
70
|
var oldAppearance = _badgeNew.appearanceMappingToOld[appearance];
|
|
75
71
|
return /*#__PURE__*/React.createElement("span", {
|
package/dist/es2019/badge.js
CHANGED
|
@@ -50,16 +50,12 @@ const Badge = /*#__PURE__*/memo(function Badge({
|
|
|
50
50
|
if (fg('platform-dst-lozenge-tag-badge-visual-uplifts')) {
|
|
51
51
|
// Map old appearance names to new ones
|
|
52
52
|
const newAppearance = appearanceMapping[appearance];
|
|
53
|
-
return (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
style: style,
|
|
60
|
-
testId: testId
|
|
61
|
-
}, children)
|
|
62
|
-
);
|
|
53
|
+
return /*#__PURE__*/React.createElement(BadgeNew, {
|
|
54
|
+
appearance: newAppearance,
|
|
55
|
+
max: max,
|
|
56
|
+
style: style,
|
|
57
|
+
testId: testId
|
|
58
|
+
}, children);
|
|
63
59
|
}
|
|
64
60
|
const oldAppearance = appearanceMappingToOld[appearance];
|
|
65
61
|
return /*#__PURE__*/React.createElement("span", {
|
package/dist/esm/badge.js
CHANGED
|
@@ -52,16 +52,12 @@ var Badge = /*#__PURE__*/memo(function Badge(_ref) {
|
|
|
52
52
|
if (fg('platform-dst-lozenge-tag-badge-visual-uplifts')) {
|
|
53
53
|
// Map old appearance names to new ones
|
|
54
54
|
var newAppearance = appearanceMapping[appearance];
|
|
55
|
-
return (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
style: style,
|
|
62
|
-
testId: testId
|
|
63
|
-
}, children)
|
|
64
|
-
);
|
|
55
|
+
return /*#__PURE__*/React.createElement(BadgeNew, {
|
|
56
|
+
appearance: newAppearance,
|
|
57
|
+
max: max,
|
|
58
|
+
style: style,
|
|
59
|
+
testId: testId
|
|
60
|
+
}, children);
|
|
65
61
|
}
|
|
66
62
|
var oldAppearance = appearanceMappingToOld[appearance];
|
|
67
63
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -24,5 +24,5 @@ export declare const appearanceMappingToOld: Record<'added' | 'removed' | 'defau
|
|
|
24
24
|
* - warning (orange/yellow)
|
|
25
25
|
* - discovery (purple)
|
|
26
26
|
*/
|
|
27
|
-
declare const BadgeNew: import(
|
|
27
|
+
declare const BadgeNew: import('react').NamedExoticComponent<BadgeNewProps>;
|
|
28
28
|
export default BadgeNew;
|
package/dist/types/badge.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ import type { BadgeProps } from './types';
|
|
|
8
8
|
* - [Code](https://atlassian.design/components/badge/code)
|
|
9
9
|
* - [Usage](https://atlassian.design/components/badge/usage)
|
|
10
10
|
*/
|
|
11
|
-
declare const Badge: import(
|
|
11
|
+
declare const Badge: import('react').NamedExoticComponent<BadgeProps>;
|
|
12
12
|
export default Badge;
|
|
@@ -24,5 +24,5 @@ export declare const appearanceMappingToOld: Record<'added' | 'removed' | 'defau
|
|
|
24
24
|
* - warning (orange/yellow)
|
|
25
25
|
* - discovery (purple)
|
|
26
26
|
*/
|
|
27
|
-
declare const BadgeNew: import(
|
|
27
|
+
declare const BadgeNew: import('react').NamedExoticComponent<BadgeNewProps>;
|
|
28
28
|
export default BadgeNew;
|
|
@@ -8,5 +8,5 @@ import type { BadgeProps } from './types';
|
|
|
8
8
|
* - [Code](https://atlassian.design/components/badge/code)
|
|
9
9
|
* - [Usage](https://atlassian.design/components/badge/usage)
|
|
10
10
|
*/
|
|
11
|
-
declare const Badge: import(
|
|
11
|
+
declare const Badge: import('react').NamedExoticComponent<BadgeProps>;
|
|
12
12
|
export default Badge;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/badge",
|
|
3
|
-
"version": "18.4.
|
|
3
|
+
"version": "18.4.1",
|
|
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/"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"title": "Badge",
|
|
35
35
|
"id": "badge",
|
|
36
36
|
"status": {
|
|
37
|
-
"type": "
|
|
38
|
-
"description": "
|
|
37
|
+
"type": "beta",
|
|
38
|
+
"description": "New and ready to use. These visual updates are currently behind the feature flag: `platform-dst-lozenge-tag-badge-visual-uplifts`. We'll provide comms and support for any major changes."
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
]
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@af/accessibility-testing": "workspace:^",
|
|
56
56
|
"@af/integration-testing": "workspace:^",
|
|
57
57
|
"@af/visual-regression": "workspace:^",
|
|
58
|
-
"@atlaskit/docs": "^11.
|
|
58
|
+
"@atlaskit/docs": "^11.4.0",
|
|
59
59
|
"@atlaskit/link": "^3.3.0",
|
|
60
60
|
"@atlaskit/section-message": "^8.12.0",
|
|
61
61
|
"@atlaskit/theme": "^21.0.0",
|