@atlaskit/badge 15.0.20 → 15.0.21

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,11 @@
1
1
  # @atlaskit/badge
2
2
 
3
+ ## 15.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
8
+
3
9
  ## 15.0.20
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.0.20",
3
+ "version": "15.0.21",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.0.20",
3
+ "version": "15.0.21",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.0.20",
3
+ "version": "15.0.21",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "15.0.20",
3
+ "version": "15.0.21",
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/"
@@ -15,13 +15,15 @@
15
15
  "typesVersions": {
16
16
  ">=4.0 <4.5": {
17
17
  "*": [
18
- "dist/types-ts4.0/*"
18
+ "dist/types-ts4.0/*",
19
+ "dist/types-ts4.0/index.d.ts"
19
20
  ]
20
21
  }
21
22
  },
22
23
  "sideEffects": false,
23
24
  "atlaskit:src": "src/index.tsx",
24
25
  "atlassian": {
26
+ "disableProductCI": true,
25
27
  "team": "Design System Team",
26
28
  "releaseModel": "scheduled",
27
29
  "website": {
@@ -47,7 +49,7 @@
47
49
  "@atlaskit/button": "^16.3.0",
48
50
  "@atlaskit/docs": "*",
49
51
  "@atlaskit/ds-lib": "^2.1.1",
50
- "@atlaskit/section-message": "^6.2.0",
52
+ "@atlaskit/section-message": "^6.3.0",
51
53
  "@atlaskit/ssr": "*",
52
54
  "@atlaskit/visual-regression": "*",
53
55
  "@atlaskit/webdriver-runner": "*",
@@ -77,6 +79,7 @@
77
79
  "lite-mode"
78
80
  ],
79
81
  "analytics": "analytics-next",
82
+ "design-tokens": "spacing",
80
83
  "theming": "tokens",
81
84
  "deprecation": "no-deprecated-imports"
82
85
  }
package/report.api.md CHANGED
@@ -1,12 +1,12 @@
1
- ## API Report File for "@atlaskit/badge"
1
+ ## API Report File for "@atlaskit/badge".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
4
 
5
- ```ts
6
- /// <reference types="react" />
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
6
 
7
+ ```ts
8
8
  import type { CSSProperties } from 'react';
9
- import { NamedExoticComponent } from 'react';
9
+ import { default as React_2 } from 'react';
10
10
  import type { ReactNode } from 'react';
11
11
 
12
12
  /**
@@ -18,7 +18,7 @@ import type { ReactNode } from 'react';
18
18
  * - [Code](https://atlassian.design/components/badge/code)
19
19
  * - [Usage](https://atlassian.design/components/badge/usage)
20
20
  */
21
- declare const Badge: NamedExoticComponent<BadgeProps>;
21
+ declare const Badge: React_2.NamedExoticComponent<BadgeProps>;
22
22
  export default Badge;
23
23
 
24
24
  export declare interface BadgeProps {
@@ -35,9 +35,10 @@ export declare interface BadgeProps {
35
35
  children?: number | ReactNode;
36
36
  /**
37
37
  * The maximum value to display. Defaults to `99`. If the value is 100, and max is 50, "50+" will be displayed.
38
- * This value should be greater than 0.
38
+ * This value should be greater than 0. If set to `false` the original value will be displayed regardless of
39
+ * whether it is larger than the default maximum value.
39
40
  */
40
- max?: number;
41
+ max?: number | false;
41
42
  /**
42
43
  * Style customization to apply to the badge. Only `backgroundColor` and `color` are supported.
43
44
  */