@atlaskit/badge 15.1.16 → 15.2.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/badge.js +2 -1
- package/dist/es2019/badge.js +2 -1
- package/dist/esm/badge.js +2 -1
- package/package.json +5 -3
- package/tmp/api-report-tmp.d.ts +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/badge
|
|
2
2
|
|
|
3
|
+
## 15.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#57070](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57070) [`42ba4ac39529`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/42ba4ac39529) - Badge now uses height: min-content so it doesn't stretch when directly used as a flex / grid item.
|
|
8
|
+
|
|
3
9
|
## 15.1.16
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/badge.js
CHANGED
|
@@ -17,7 +17,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
17
17
|
|
|
18
18
|
var boxStyles = (0, _primitives.xcss)({
|
|
19
19
|
borderRadius: 'border.radius.200',
|
|
20
|
-
display: 'inline-flex'
|
|
20
|
+
display: 'inline-flex',
|
|
21
|
+
blockSize: 'min-content'
|
|
21
22
|
});
|
|
22
23
|
|
|
23
24
|
/**
|
package/dist/es2019/badge.js
CHANGED
package/dist/esm/badge.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/badge",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0",
|
|
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/"
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"website": {
|
|
32
32
|
"name": "Badge",
|
|
33
33
|
"category": "Components"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"supportsReact18": true
|
|
35
36
|
},
|
|
36
37
|
"af:exports": {
|
|
37
38
|
"./types": "./src/entry-points/types.tsx",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
42
43
|
"@atlaskit/ds-explorations": "^3.0.0",
|
|
43
|
-
"@atlaskit/primitives": "^1.
|
|
44
|
+
"@atlaskit/primitives": "^1.13.0",
|
|
44
45
|
"@babel/runtime": "^7.0.0"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@af/accessibility-testing": "*",
|
|
52
|
+
"@af/integration-testing": "*",
|
|
51
53
|
"@af/visual-regression": "*",
|
|
52
54
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
53
55
|
"@atlaskit/ssr": "*",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/badge"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import type { CSSProperties } from 'react';
|
|
8
|
-
import { default as React_2 } from 'react';
|
|
9
|
-
import type { ReactNode } from 'react';
|
|
10
|
-
|
|
11
|
-
// @public
|
|
12
|
-
const Badge: React_2.NamedExoticComponent<BadgeProps>;
|
|
13
|
-
export default Badge;
|
|
14
|
-
|
|
15
|
-
// @public (undocumented)
|
|
16
|
-
export interface BadgeProps {
|
|
17
|
-
appearance?: ThemeAppearance;
|
|
18
|
-
children?: ReactNode | number;
|
|
19
|
-
max?: false | number;
|
|
20
|
-
style?: Pick<CSSProperties, 'backgroundColor' | 'color'>;
|
|
21
|
-
testId?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// @public (undocumented)
|
|
25
|
-
type ThemeAppearance = 'added' | 'default' | 'important' | 'primary' | 'primaryInverted' | 'removed';
|
|
26
|
-
|
|
27
|
-
// (No @packageDocumentation comment for this package)
|
|
28
|
-
|
|
29
|
-
```
|