@atlaskit/progress-bar 0.4.0 → 0.5.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 +13 -0
- package/dist/cjs/components/SuccessProgressBar.js +1 -1
- package/dist/cjs/components/TransparentProgressBar.js +2 -2
- package/dist/cjs/theme.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/SuccessProgressBar.js +1 -1
- package/dist/es2019/components/TransparentProgressBar.js +2 -2
- package/dist/es2019/theme.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/SuccessProgressBar.js +1 -1
- package/dist/esm/components/TransparentProgressBar.js +2 -2
- package/dist/esm/theme.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +4 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/progress-bar
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`53060e14621`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53060e14621) - [ux] Instrumented `progress-bar` with the new theming package, `@atlaskit/tokens`.
|
|
8
|
+
|
|
9
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
10
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 0.4.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -63,7 +63,7 @@ var SuccessProgressBar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
63
63
|
|
|
64
64
|
return _objectSpread(_objectSpread({}, theme), {}, {
|
|
65
65
|
bar: _objectSpread(_objectSpread({}, theme.bar), {}, {
|
|
66
|
-
background: _colors.G300
|
|
66
|
+
background: "var(--ds-background-success-bold, ".concat(_colors.G300, ")")
|
|
67
67
|
})
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -51,10 +51,10 @@ var TransparentProgressBar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
51
51
|
var theme = currentTheme(props);
|
|
52
52
|
return _objectSpread(_objectSpread({}, theme), {}, {
|
|
53
53
|
container: _objectSpread(_objectSpread({}, theme.container), {}, {
|
|
54
|
-
background:
|
|
54
|
+
background: "var(--ds-background-inverse, rgba(255, 255, 255, 0.5))"
|
|
55
55
|
}),
|
|
56
56
|
bar: _objectSpread(_objectSpread({}, theme.bar), {}, {
|
|
57
|
-
background:
|
|
57
|
+
background: "var(--ds-surface, white)"
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
60
|
}
|
package/dist/cjs/theme.js
CHANGED
|
@@ -22,7 +22,7 @@ var decreasingBarAnimation = (0, _core.keyframes)(_templateObject2 || (_template
|
|
|
22
22
|
var Theme = (0, _components.createTheme)(function (props) {
|
|
23
23
|
return {
|
|
24
24
|
container: {
|
|
25
|
-
background: _colors.N40A,
|
|
25
|
+
background: "var(--ds-background-neutral, ".concat(_colors.N40A, ")"),
|
|
26
26
|
borderRadius: 3,
|
|
27
27
|
height: 6,
|
|
28
28
|
overflow: 'hidden',
|
|
@@ -34,7 +34,7 @@ var Theme = (0, _components.createTheme)(function (props) {
|
|
|
34
34
|
display: 'block',
|
|
35
35
|
height: 6,
|
|
36
36
|
position: 'absolute',
|
|
37
|
-
background: _colors.N500
|
|
37
|
+
background: "var(--ds-background-neutral-bold, ".concat(_colors.N500, ")")
|
|
38
38
|
},
|
|
39
39
|
determinateBar: {
|
|
40
40
|
transition: 'width 0.2s',
|
package/dist/cjs/version.json
CHANGED
|
@@ -9,10 +9,10 @@ export default class TransparentProgressBar extends React.PureComponent {
|
|
|
9
9
|
const theme = currentTheme(props);
|
|
10
10
|
return { ...theme,
|
|
11
11
|
container: { ...theme.container,
|
|
12
|
-
background:
|
|
12
|
+
background: "var(--ds-background-inverse, rgba(255, 255, 255, 0.5))"
|
|
13
13
|
},
|
|
14
14
|
bar: { ...theme.bar,
|
|
15
|
-
background:
|
|
15
|
+
background: "var(--ds-surface, white)"
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
}
|
package/dist/es2019/theme.js
CHANGED
|
@@ -11,7 +11,7 @@ const decreasingBarAnimation = keyframes`
|
|
|
11
11
|
`;
|
|
12
12
|
export const Theme = createTheme(props => ({
|
|
13
13
|
container: {
|
|
14
|
-
background: N40A
|
|
14
|
+
background: `var(--ds-background-neutral, ${N40A})`,
|
|
15
15
|
borderRadius: 3,
|
|
16
16
|
height: 6,
|
|
17
17
|
overflow: 'hidden',
|
|
@@ -23,7 +23,7 @@ export const Theme = createTheme(props => ({
|
|
|
23
23
|
display: 'block',
|
|
24
24
|
height: 6,
|
|
25
25
|
position: 'absolute',
|
|
26
|
-
background: N500
|
|
26
|
+
background: `var(--ds-background-neutral-bold, ${N500})`
|
|
27
27
|
},
|
|
28
28
|
determinateBar: {
|
|
29
29
|
transition: 'width 0.2s',
|
package/dist/es2019/version.json
CHANGED
|
@@ -47,7 +47,7 @@ var SuccessProgressBar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
47
47
|
|
|
48
48
|
return _objectSpread(_objectSpread({}, theme), {}, {
|
|
49
49
|
bar: _objectSpread(_objectSpread({}, theme.bar), {}, {
|
|
50
|
-
background: G300
|
|
50
|
+
background: "var(--ds-background-success-bold, ".concat(G300, ")")
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -36,10 +36,10 @@ var TransparentProgressBar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
36
36
|
var theme = currentTheme(props);
|
|
37
37
|
return _objectSpread(_objectSpread({}, theme), {}, {
|
|
38
38
|
container: _objectSpread(_objectSpread({}, theme.container), {}, {
|
|
39
|
-
background:
|
|
39
|
+
background: "var(--ds-background-inverse, rgba(255, 255, 255, 0.5))"
|
|
40
40
|
}),
|
|
41
41
|
bar: _objectSpread(_objectSpread({}, theme.bar), {}, {
|
|
42
|
-
background:
|
|
42
|
+
background: "var(--ds-surface, white)"
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
}
|
package/dist/esm/theme.js
CHANGED
|
@@ -10,7 +10,7 @@ var decreasingBarAnimation = keyframes(_templateObject2 || (_templateObject2 = _
|
|
|
10
10
|
export var Theme = createTheme(function (props) {
|
|
11
11
|
return {
|
|
12
12
|
container: {
|
|
13
|
-
background: N40A,
|
|
13
|
+
background: "var(--ds-background-neutral, ".concat(N40A, ")"),
|
|
14
14
|
borderRadius: 3,
|
|
15
15
|
height: 6,
|
|
16
16
|
overflow: 'hidden',
|
|
@@ -22,7 +22,7 @@ export var Theme = createTheme(function (props) {
|
|
|
22
22
|
display: 'block',
|
|
23
23
|
height: 6,
|
|
24
24
|
position: 'absolute',
|
|
25
|
-
background: N500
|
|
25
|
+
background: "var(--ds-background-neutral-bold, ".concat(N500, ")")
|
|
26
26
|
},
|
|
27
27
|
determinateBar: {
|
|
28
28
|
transition: 'width 0.2s',
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export interface CustomProgressBarProps {
|
|
|
18
18
|
ariaLabel?: string;
|
|
19
19
|
}
|
|
20
20
|
export interface DefaultProgressBarProps extends CustomProgressBarProps {
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* The theme the component should use.
|
|
23
|
+
* NOTE: `theme` is being deprecated, and will be deleted after May 13 2022. If you depend on `theme`, we recommend migrating to one of its variants.
|
|
24
|
+
*/
|
|
22
25
|
theme?: ThemeProp<ThemeTokens, ThemeProps>;
|
|
23
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/progress-bar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A progress bar displays the status of a given process.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/theme": "^12.1.0",
|
|
28
|
+
"@atlaskit/tokens": "^0.7.0",
|
|
28
29
|
"@babel/runtime": "^7.0.0",
|
|
29
30
|
"@emotion/core": "^10.0.9"
|
|
30
31
|
},
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
"react": "^16.8.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@atlaskit/button": "^16.
|
|
36
|
+
"@atlaskit/button": "^16.2.0",
|
|
36
37
|
"@atlaskit/docs": "*",
|
|
37
38
|
"@atlaskit/section-message": "^6.0.0",
|
|
38
39
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"import-structure": "atlassian-conventions"
|
|
51
52
|
},
|
|
52
53
|
"@repo/internal": {
|
|
54
|
+
"theming": "tokens",
|
|
53
55
|
"deprecation": "no-deprecated-imports",
|
|
54
56
|
"styling": [
|
|
55
57
|
"emotion"
|