@atlaskit/badge 16.1.2 → 16.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/badge
2
2
 
3
+ ## 16.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#111696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111696)
8
+ [`20c2d58f6f8a9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/20c2d58f6f8a9) -
9
+ Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
10
+ is implicitly set to automatic.
11
+ - [#111623](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111623)
12
+ [`0392b6e4d865a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0392b6e4d865a) -
13
+ Sets `flex-shrink: 0` on Badge to avoid it spanning multiple lines when in flex containers that
14
+ aren't wide enough.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 16.1.2
4
21
 
5
22
  ### Patch Changes
@@ -41,7 +58,7 @@
41
58
 
42
59
  - [#87252](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87252)
43
60
  [`eef585934a84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eef585934a84) -
44
- Add react 18 support
61
+ Add support for React 18 in non-strict mode.
45
62
 
46
63
  ### Patch Changes
47
64
 
@@ -4,9 +4,9 @@ import React from 'react';
4
4
  import Badge from '../src';
5
5
 
6
6
  export default () => {
7
- return (
8
- <Badge appearance="added" max={99}>
9
- {3000}
10
- </Badge>
11
- );
7
+ return (
8
+ <Badge appearance="added" max={99}>
9
+ {3000}
10
+ </Badge>
11
+ );
12
12
  };
@@ -4,5 +4,5 @@ import React from 'react';
4
4
  import Badge from '../src';
5
5
 
6
6
  export default () => {
7
- return <Badge appearance="important">{25}</Badge>;
7
+ return <Badge appearance="important">{25}</Badge>;
8
8
  };
@@ -1,18 +1,14 @@
1
1
  import { type JSCodeshift } from 'jscodeshift';
2
2
  import { type Collection } from 'jscodeshift/src/Collection';
3
3
 
4
- import {
5
- createTransformer,
6
- hasImportDeclaration,
7
- } from '@atlaskit/codemod-utils';
4
+ import { createTransformer, hasImportDeclaration } from '@atlaskit/codemod-utils';
8
5
 
9
6
  import { BADGE_PACKAGE_NAME } from './internal/constants';
10
7
  import { moveObjectAppearanceToStyle } from './internal/move-object-appearance-to-style';
11
8
 
12
9
  const transformer = createTransformer(
13
- [moveObjectAppearanceToStyle],
14
- (j: JSCodeshift, source: Collection<Node>) =>
15
- hasImportDeclaration(j, source, BADGE_PACKAGE_NAME),
10
+ [moveObjectAppearanceToStyle],
11
+ (j: JSCodeshift, source: Collection<Node>) => hasImportDeclaration(j, source, BADGE_PACKAGE_NAME),
16
12
  );
17
13
 
18
14
  export default transformer;
@@ -3,10 +3,10 @@ import transformer from '../15.0.0-lite-mode';
3
3
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
4
4
 
5
5
  describe('badge codemod', () => {
6
- defineInlineTest(
7
- { default: transformer, parser: 'tsx' },
8
- {},
9
- `
6
+ defineInlineTest(
7
+ { default: transformer, parser: 'tsx' },
8
+ {},
9
+ `
10
10
  import React from 'react';
11
11
  import Badge from '@atlaskit/badge';
12
12
 
@@ -20,7 +20,7 @@ describe('badge codemod', () => {
20
20
  );
21
21
  }
22
22
  `,
23
- `
23
+ `
24
24
  import React from 'react';
25
25
  import Badge from '@atlaskit/badge';
26
26
 
@@ -37,13 +37,13 @@ describe('badge codemod', () => {
37
37
  );
38
38
  }
39
39
  `,
40
- `should move object appearance values to style prop`,
41
- );
40
+ `should move object appearance values to style prop`,
41
+ );
42
42
 
43
- defineInlineTest(
44
- { default: transformer, parser: 'tsx' },
45
- {},
46
- `
43
+ defineInlineTest(
44
+ { default: transformer, parser: 'tsx' },
45
+ {},
46
+ `
47
47
  import React from 'react';
48
48
  import Badge from '@atlaskit/custom-badge';
49
49
 
@@ -57,7 +57,7 @@ describe('badge codemod', () => {
57
57
  );
58
58
  }
59
59
  `,
60
- `
60
+ `
61
61
  import React from 'react';
62
62
  import Badge from '@atlaskit/custom-badge';
63
63
 
@@ -71,6 +71,6 @@ describe('badge codemod', () => {
71
71
  );
72
72
  }
73
73
  `,
74
- `should should not make modifications when not imported from "@atlaskit/badge"`,
75
- );
74
+ `should should not make modifications when not imported from "@atlaskit/badge"`,
75
+ );
76
76
  });
@@ -7,10 +7,10 @@ const transformer = createTransformer([moveObjectAppearanceToStyle]);
7
7
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
8
8
 
9
9
  describe('#moveObjectAppearanceToStyle', () => {
10
- defineInlineTest(
11
- { default: transformer, parser: 'tsx' },
12
- {},
13
- `
10
+ defineInlineTest(
11
+ { default: transformer, parser: 'tsx' },
12
+ {},
13
+ `
14
14
  import React from 'react';
15
15
  import Badge from '@atlaskit/badge';
16
16
 
@@ -24,7 +24,7 @@ describe('#moveObjectAppearanceToStyle', () => {
24
24
  );
25
25
  }
26
26
  `,
27
- `
27
+ `
28
28
  import React from 'react';
29
29
  import Badge from '@atlaskit/badge';
30
30
 
@@ -41,13 +41,13 @@ describe('#moveObjectAppearanceToStyle', () => {
41
41
  );
42
42
  }
43
43
  `,
44
- `should move object appearance values to style prop`,
45
- );
44
+ `should move object appearance values to style prop`,
45
+ );
46
46
 
47
- defineInlineTest(
48
- { default: transformer, parser: 'tsx' },
49
- {},
50
- `
47
+ defineInlineTest(
48
+ { default: transformer, parser: 'tsx' },
49
+ {},
50
+ `
51
51
  import React from 'react';
52
52
  import Badge from '@atlaskit/badge';
53
53
 
@@ -61,7 +61,7 @@ describe('#moveObjectAppearanceToStyle', () => {
61
61
  );
62
62
  }
63
63
  `,
64
- `
64
+ `
65
65
  import React from 'react';
66
66
  import Badge from '@atlaskit/badge';
67
67
 
@@ -75,13 +75,13 @@ describe('#moveObjectAppearanceToStyle', () => {
75
75
  );
76
76
  }
77
77
  `,
78
- `should not make modifications when appearance prop is not type of object`,
79
- );
78
+ `should not make modifications when appearance prop is not type of object`,
79
+ );
80
80
 
81
- defineInlineTest(
82
- { default: transformer, parser: 'tsx' },
83
- {},
84
- `
81
+ defineInlineTest(
82
+ { default: transformer, parser: 'tsx' },
83
+ {},
84
+ `
85
85
  import React from 'react';
86
86
  import Badge from '@atlaskit/badge';
87
87
 
@@ -95,7 +95,7 @@ describe('#moveObjectAppearanceToStyle', () => {
95
95
  );
96
96
  }
97
97
  `,
98
- `
98
+ `
99
99
  import React from 'react';
100
100
  import Badge from '@atlaskit/badge';
101
101
 
@@ -109,13 +109,13 @@ describe('#moveObjectAppearanceToStyle', () => {
109
109
  );
110
110
  }
111
111
  `,
112
- `should not make modifications when appearance prop is dynamic`,
113
- );
112
+ `should not make modifications when appearance prop is dynamic`,
113
+ );
114
114
 
115
- defineInlineTest(
116
- { default: transformer, parser: 'tsx' },
117
- {},
118
- `
115
+ defineInlineTest(
116
+ { default: transformer, parser: 'tsx' },
117
+ {},
118
+ `
119
119
  import React from 'react';
120
120
  import Badge from '@atlaskit/badge';
121
121
 
@@ -129,7 +129,7 @@ describe('#moveObjectAppearanceToStyle', () => {
129
129
  );
130
130
  }
131
131
  `,
132
- `
132
+ `
133
133
  import React from 'react';
134
134
  import Badge from '@atlaskit/badge';
135
135
 
@@ -143,13 +143,13 @@ describe('#moveObjectAppearanceToStyle', () => {
143
143
  );
144
144
  }
145
145
  `,
146
- `should not make modifications when appearance prop is not present`,
147
- );
146
+ `should not make modifications when appearance prop is not present`,
147
+ );
148
148
 
149
- defineInlineTest(
150
- { default: transformer, parser: 'tsx' },
151
- {},
152
- `
149
+ defineInlineTest(
150
+ { default: transformer, parser: 'tsx' },
151
+ {},
152
+ `
153
153
  import React from 'react';
154
154
  import Badge from '@atlaskit/badge';
155
155
 
@@ -164,7 +164,7 @@ describe('#moveObjectAppearanceToStyle', () => {
164
164
  );
165
165
  }
166
166
  `,
167
- `
167
+ `
168
168
  import React from 'react';
169
169
  import Badge from '@atlaskit/badge';
170
170
 
@@ -179,6 +179,6 @@ describe('#moveObjectAppearanceToStyle', () => {
179
179
  );
180
180
  }
181
181
  `,
182
- `should not make modifications when appearance prop is not type of object and style prop is also present`,
183
- );
182
+ `should not make modifications when appearance prop is not type of object and style prop is also present`,
183
+ );
184
184
  });
@@ -1,99 +1,70 @@
1
- import type {
2
- ASTPath,
3
- default as core,
4
- JSXAttribute,
5
- JSXElement,
6
- } from 'jscodeshift';
1
+ import type { ASTPath, default as core, JSXAttribute, JSXElement } from 'jscodeshift';
7
2
  import { type Collection } from 'jscodeshift/src/Collection';
8
3
 
9
- import {
10
- getDefaultSpecifier,
11
- getJSXAttributesByName,
12
- } from '@atlaskit/codemod-utils';
4
+ import { getDefaultSpecifier, getJSXAttributesByName } from '@atlaskit/codemod-utils';
13
5
 
14
- import {
15
- APPEARANCE_PROP_NAME,
16
- BADGE_PACKAGE_NAME,
17
- STYLE_PROP_NAME,
18
- } from './constants';
6
+ import { APPEARANCE_PROP_NAME, BADGE_PACKAGE_NAME, STYLE_PROP_NAME } from './constants';
19
7
 
20
- export const moveObjectAppearanceToStyle = (
21
- j: core.JSCodeshift,
22
- source: Collection<Node>,
23
- ) => {
24
- const defaultSpecifier = getDefaultSpecifier(j, source, BADGE_PACKAGE_NAME);
8
+ export const moveObjectAppearanceToStyle = (j: core.JSCodeshift, source: Collection<Node>) => {
9
+ const defaultSpecifier = getDefaultSpecifier(j, source, BADGE_PACKAGE_NAME);
25
10
 
26
- if (!defaultSpecifier) {
27
- return;
28
- }
11
+ if (!defaultSpecifier) {
12
+ return;
13
+ }
29
14
 
30
- source
31
- .findJSXElements(defaultSpecifier)
32
- .forEach((element: ASTPath<JSXElement>) => {
33
- getJSXAttributesByName(j, element, APPEARANCE_PROP_NAME).forEach(
34
- (attribute: ASTPath<JSXAttribute>) => {
35
- const { value } = attribute.node;
36
- if (!value) {
37
- return;
38
- }
15
+ source.findJSXElements(defaultSpecifier).forEach((element: ASTPath<JSXElement>) => {
16
+ getJSXAttributesByName(j, element, APPEARANCE_PROP_NAME).forEach(
17
+ (attribute: ASTPath<JSXAttribute>) => {
18
+ const { value } = attribute.node;
19
+ if (!value) {
20
+ return;
21
+ }
39
22
 
40
- switch (value.type) {
41
- case 'JSXExpressionContainer':
42
- const { expression: appearanceExpression } = value;
23
+ switch (value.type) {
24
+ case 'JSXExpressionContainer':
25
+ const { expression: appearanceExpression } = value;
43
26
 
44
- if (appearanceExpression.type === 'ObjectExpression') {
45
- const styleAttributes = getJSXAttributesByName(
46
- j,
47
- element,
48
- STYLE_PROP_NAME,
49
- );
27
+ if (appearanceExpression.type === 'ObjectExpression') {
28
+ const styleAttributes = getJSXAttributesByName(j, element, STYLE_PROP_NAME);
50
29
 
51
- if (styleAttributes.length === 0) {
52
- j(element)
53
- .find(j.JSXOpeningElement)
54
- .forEach((openingElement) => {
55
- openingElement.node.attributes?.push(
56
- j.jsxAttribute(
57
- j.jsxIdentifier(STYLE_PROP_NAME),
58
- j.jsxExpressionContainer(
59
- getMappedAppearance(j, appearanceExpression),
60
- ),
61
- ),
62
- );
63
- });
30
+ if (styleAttributes.length === 0) {
31
+ j(element)
32
+ .find(j.JSXOpeningElement)
33
+ .forEach((openingElement) => {
34
+ openingElement.node.attributes?.push(
35
+ j.jsxAttribute(
36
+ j.jsxIdentifier(STYLE_PROP_NAME),
37
+ j.jsxExpressionContainer(getMappedAppearance(j, appearanceExpression)),
38
+ ),
39
+ );
40
+ });
64
41
 
65
- j(attribute).remove();
66
- }
67
- }
42
+ j(attribute).remove();
43
+ }
44
+ }
68
45
 
69
- break;
70
- }
71
- },
72
- );
73
- });
46
+ break;
47
+ }
48
+ },
49
+ );
50
+ });
74
51
  };
75
52
 
76
53
  function getMappedAppearance(
77
- j: core.JSCodeshift,
78
- expression: Parameters<typeof j.memberExpression>[0],
54
+ j: core.JSCodeshift,
55
+ expression: Parameters<typeof j.memberExpression>[0],
79
56
  ) {
80
- const backgroundColorMemberExpression = j.memberExpression(
81
- expression,
82
- j.stringLiteral('backgroundColor'),
83
- );
84
- backgroundColorMemberExpression.computed = true;
57
+ const backgroundColorMemberExpression = j.memberExpression(
58
+ expression,
59
+ j.stringLiteral('backgroundColor'),
60
+ );
61
+ backgroundColorMemberExpression.computed = true;
85
62
 
86
- const textColorMemberExpression = j.memberExpression(
87
- expression,
88
- j.stringLiteral('textColor'),
89
- );
90
- textColorMemberExpression.computed = true;
63
+ const textColorMemberExpression = j.memberExpression(expression, j.stringLiteral('textColor'));
64
+ textColorMemberExpression.computed = true;
91
65
 
92
- return j.objectExpression([
93
- j.objectProperty(
94
- j.identifier('backgroundColor'),
95
- backgroundColorMemberExpression,
96
- ),
97
- j.objectProperty(j.identifier('color'), textColorMemberExpression),
98
- ]);
66
+ return j.objectExpression([
67
+ j.objectProperty(j.identifier('backgroundColor'), backgroundColorMemberExpression),
68
+ j.objectProperty(j.identifier('color'), textColorMemberExpression),
69
+ ]);
99
70
  }
package/dist/cjs/badge.js CHANGED
@@ -13,7 +13,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
13
13
  var boxStyles = (0, _primitives.xcss)({
14
14
  borderRadius: 'border.radius.200',
15
15
  display: 'inline-flex',
16
- blockSize: 'min-content'
16
+ blockSize: 'min-content',
17
+ flexShrink: 0 // Text component can wrap text, this ensures it doesn't wrap in flex containers.
17
18
  });
18
19
 
19
20
  /**
@@ -4,7 +4,8 @@ import { formatValue } from './internal/utils';
4
4
  const boxStyles = xcss({
5
5
  borderRadius: 'border.radius.200',
6
6
  display: 'inline-flex',
7
- blockSize: 'min-content'
7
+ blockSize: 'min-content',
8
+ flexShrink: 0 // Text component can wrap text, this ensures it doesn't wrap in flex containers.
8
9
  });
9
10
 
10
11
  /**
package/dist/esm/badge.js CHANGED
@@ -4,7 +4,8 @@ import { formatValue } from './internal/utils';
4
4
  var boxStyles = xcss({
5
5
  borderRadius: 'border.radius.200',
6
6
  display: 'inline-flex',
7
- blockSize: 'min-content'
7
+ blockSize: 'min-content',
8
+ flexShrink: 0 // Text component can wrap text, this ensures it doesn't wrap in flex containers.
8
9
  });
9
10
 
10
11
  /**
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
1
  {
2
- "name": "@atlaskit/badge",
3
- "version": "16.1.2",
4
- "description": "A badge is a visual indicator for numeric values such as tallies and scores.",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "sideEffects": false,
24
- "atlaskit:src": "src/index.tsx",
25
- "atlassian": {
26
- "team": "Design System Team",
27
- "releaseModel": "continuous",
28
- "productPushConsumption": [
29
- "jira"
30
- ],
31
- "website": {
32
- "name": "Badge",
33
- "category": "Components"
34
- },
35
- "runReact18": true
36
- },
37
- "af:exports": {
38
- "./types": "./src/entry-points/types.tsx",
39
- ".": "./src/index.tsx"
40
- },
41
- "dependencies": {
42
- "@atlaskit/codemod-utils": "^4.2.0",
43
- "@atlaskit/primitives": "^7.0.0",
44
- "@babel/runtime": "^7.0.0"
45
- },
46
- "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
48
- },
49
- "devDependencies": {
50
- "@af/accessibility-testing": "*",
51
- "@af/integration-testing": "*",
52
- "@af/visual-regression": "*",
53
- "@atlaskit/ds-lib": "^2.3.0",
54
- "@atlaskit/ssr": "*",
55
- "@emotion/react": "^11.7.1",
56
- "@testing-library/react": "^12.1.5",
57
- "jscodeshift": "^0.13.0",
58
- "react-dom": "^16.8.0",
59
- "react-test-renderer": "^16.8.0",
60
- "storybook-addon-performance": "^0.16.0",
61
- "typescript": "~5.4.2"
62
- },
63
- "techstack": {
64
- "@atlassian/frontend": {
65
- "import-structure": "atlassian-conventions",
66
- "circular-dependencies": "file-and-folder-level"
67
- },
68
- "@repo/internal": {
69
- "dom-events": "use-bind-event-listener",
70
- "design-system": "v1",
71
- "styling": [
72
- "static",
73
- "emotion"
74
- ],
75
- "ui-components": [
76
- "primitives",
77
- "lite-mode"
78
- ],
79
- "analytics": "analytics-next",
80
- "design-tokens": [
81
- "color",
82
- "spacing"
83
- ],
84
- "deprecation": "no-deprecated-imports"
85
- }
86
- },
87
- "homepage": "https://atlassian.design/components/badge/"
88
- }
2
+ "name": "@atlaskit/badge",
3
+ "version": "16.2.0",
4
+ "description": "A badge is a visual indicator for numeric values such as tallies and scores.",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "sideEffects": false,
24
+ "atlaskit:src": "src/index.tsx",
25
+ "atlassian": {
26
+ "team": "Design System Team",
27
+ "releaseModel": "continuous",
28
+ "productPushConsumption": [
29
+ "jira"
30
+ ],
31
+ "website": {
32
+ "name": "Badge",
33
+ "category": "Components"
34
+ },
35
+ "runReact18": true
36
+ },
37
+ "af:exports": {
38
+ "./types": "./src/entry-points/types.tsx",
39
+ ".": "./src/index.tsx"
40
+ },
41
+ "dependencies": {
42
+ "@atlaskit/codemod-utils": "^4.2.0",
43
+ "@atlaskit/primitives": "^7.3.0",
44
+ "@babel/runtime": "^7.0.0"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
48
+ },
49
+ "devDependencies": {
50
+ "@af/accessibility-testing": "*",
51
+ "@af/integration-testing": "*",
52
+ "@af/visual-regression": "*",
53
+ "@atlaskit/ds-lib": "^2.3.0",
54
+ "@atlaskit/ssr": "*",
55
+ "@emotion/react": "^11.7.1",
56
+ "@testing-library/react": "^12.1.5",
57
+ "jscodeshift": "^0.13.0",
58
+ "react-dom": "^16.8.0",
59
+ "react-test-renderer": "^16.8.0",
60
+ "storybook-addon-performance": "^0.16.0",
61
+ "typescript": "~5.4.2"
62
+ },
63
+ "techstack": {
64
+ "@atlassian/frontend": {
65
+ "import-structure": "atlassian-conventions",
66
+ "circular-dependencies": "file-and-folder-level"
67
+ },
68
+ "@repo/internal": {
69
+ "dom-events": "use-bind-event-listener",
70
+ "design-system": "v1",
71
+ "styling": [
72
+ "static",
73
+ "emotion"
74
+ ],
75
+ "ui-components": [
76
+ "primitives",
77
+ "lite-mode"
78
+ ],
79
+ "analytics": "analytics-next",
80
+ "design-tokens": [
81
+ "color",
82
+ "spacing"
83
+ ],
84
+ "deprecation": "no-deprecated-imports"
85
+ }
86
+ },
87
+ "homepage": "https://atlassian.design/components/badge/"
88
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/badge"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -25,21 +26,21 @@ export default Badge;
25
26
 
26
27
  // @public (undocumented)
27
28
  export interface BadgeProps {
28
- appearance?: ThemeAppearance;
29
- children?: ReactNode | number;
30
- max?: false | number;
31
- style?: Pick<CSSProperties, 'backgroundColor' | 'color'>;
32
- testId?: string;
29
+ appearance?: ThemeAppearance;
30
+ children?: ReactNode | number;
31
+ max?: false | number;
32
+ style?: Pick<CSSProperties, 'backgroundColor' | 'color'>;
33
+ testId?: string;
33
34
  }
34
35
 
35
36
  // @public (undocumented)
36
37
  type ThemeAppearance =
37
- | 'added'
38
- | 'default'
39
- | 'important'
40
- | 'primary'
41
- | 'primaryInverted'
42
- | 'removed';
38
+ | 'added'
39
+ | 'default'
40
+ | 'important'
41
+ | 'primary'
42
+ | 'primaryInverted'
43
+ | 'removed';
43
44
 
44
45
  // (No @packageDocumentation comment for this package)
45
46
  ```
@@ -52,7 +53,7 @@ type ThemeAppearance =
52
53
 
53
54
  ```json
54
55
  {
55
- "react": "^16.8.0"
56
+ "react": "^16.8.0"
56
57
  }
57
58
  ```
58
59