@atlaskit/badge 16.3.0 → 16.3.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 +12 -0
- package/dist/cjs/badge.js +5 -2
- package/dist/es2019/badge.js +6 -3
- package/dist/esm/badge.js +6 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/cjs/badge.js
CHANGED
|
@@ -9,7 +9,10 @@ var _react2 = require("@emotion/react");
|
|
|
9
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
10
|
var _primitives = require("@atlaskit/primitives");
|
|
11
11
|
var _utils = require("./internal/utils");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
13
16
|
|
|
14
17
|
// Compiled isn't ready to be used in components used by Ecosystem
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
@@ -87,7 +90,7 @@ var Badge = /*#__PURE__*/(0, _react.memo)(function Badge(_ref) {
|
|
|
87
90
|
max = _ref$max === void 0 ? 99 : _ref$max,
|
|
88
91
|
style = _ref.style,
|
|
89
92
|
testId = _ref.testId;
|
|
90
|
-
if ((0, _platformFeatureFlags.
|
|
93
|
+
if ((0, _platformFeatureFlags.fg)('platform-component-visual-refresh')) {
|
|
91
94
|
return (0, _react2.jsx)("span", {
|
|
92
95
|
"data-testid": testId,
|
|
93
96
|
css: [styles.root, styles[appearance]],
|
package/dist/es2019/badge.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { memo } from 'react';
|
|
3
6
|
|
|
4
7
|
// Compiled isn't ready to be used in components used by Ecosystem
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
11
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
9
12
|
import { formatValue } from './internal/utils';
|
|
10
13
|
const boxStyles = xcss({
|
|
@@ -78,7 +81,7 @@ const Badge = /*#__PURE__*/memo(function Badge({
|
|
|
78
81
|
style,
|
|
79
82
|
testId
|
|
80
83
|
}) {
|
|
81
|
-
if (
|
|
84
|
+
if (fg('platform-component-visual-refresh')) {
|
|
82
85
|
return jsx("span", {
|
|
83
86
|
"data-testid": testId,
|
|
84
87
|
css: [styles.root, styles[appearance]],
|
package/dist/esm/badge.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { memo } from 'react';
|
|
3
6
|
|
|
4
7
|
// Compiled isn't ready to be used in components used by Ecosystem
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
11
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
9
12
|
import { formatValue } from './internal/utils';
|
|
10
13
|
var boxStyles = xcss({
|
|
@@ -80,7 +83,7 @@ var Badge = /*#__PURE__*/memo(function Badge(_ref) {
|
|
|
80
83
|
max = _ref$max === void 0 ? 99 : _ref$max,
|
|
81
84
|
style = _ref.style,
|
|
82
85
|
testId = _ref.testId;
|
|
83
|
-
if (
|
|
86
|
+
if (fg('platform-component-visual-refresh')) {
|
|
84
87
|
return jsx("span", {
|
|
85
88
|
"data-testid": testId,
|
|
86
89
|
css: [styles.root, styles[appearance]],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/badge",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.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/"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
|
-
"@atlaskit/primitives": "^
|
|
45
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/primitives": "^12.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@emotion/react": "^11.7.1"
|
|
48
48
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://atlassian.design/components/badge/",
|
|
91
91
|
"platform-feature-flags": {
|
|
92
|
-
"platform
|
|
92
|
+
"platform-component-visual-refresh": {
|
|
93
93
|
"type": "boolean"
|
|
94
94
|
}
|
|
95
95
|
}
|