@atlaskit/progress-bar 4.1.6 → 4.1.7

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,12 @@
1
1
  # @atlaskit/progress-bar
2
2
 
3
+ ## 4.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
8
+ Removes redundant fallback color values via @atlaskit/theme
9
+
3
10
  ## 4.1.6
4
11
 
5
12
  ### Patch Changes
@@ -8,7 +8,6 @@
8
8
  ._4t3ii2wt{height:6px}
9
9
  ._5sagymdr{animation-duration:2s}
10
10
  ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
11
- ._bfhk1jmj{background-color:var(--_1j2n3rv)}
12
11
  ._bfhk1vck{background-color:var(--ds-background-inverse-subtle,#00000029)}
13
12
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
14
13
  ._bfhkkcmj{background-color:var(--ds-background-success-bold,#5b7f24)}
@@ -1,4 +1,4 @@
1
- /* progress-bar.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* progress-bar.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -10,7 +10,6 @@ require("./progress-bar.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _colors = require("@atlaskit/theme/colors");
14
13
  var MIN_VALUE = 0;
15
14
  var MAX_VALUE = 1;
16
15
  var increasingBarAnimation = null;
@@ -60,10 +59,7 @@ var ProgressBar = function ProgressBar(_ref) {
60
59
  "aria-valuenow": valueParsed,
61
60
  "aria-valuemax": MAX_VALUE,
62
61
  "data-testid": testId,
63
- className: (0, _runtime.ax)(["_2rkofajl _1reo15vq _18m915vq _1bsb1osq _4t3ii2wt _kqswh2mm _bfhk1jmj", (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && "_2rko1rr0", containerAppearance[appearance]]),
64
- style: {
65
- "--_1j2n3rv": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N40A, ")"))
66
- }
62
+ className: (0, _runtime.ax)(["_2rkofajl _1reo15vq _18m915vq _1bsb1osq _4t3ii2wt _kqswh2mm _bfhki8nm", (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && "_2rko1rr0", containerAppearance[appearance]])
67
63
  }, isIndeterminate ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
68
64
  className: (0, _runtime.ax)(["_2rkofajl _1e0c1ule _4t3ii2wt _kqswstnw", barAppearance[appearance], "_5sagymdr _tip812c5 _j7hq7g40", (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && "_2rko1rr0"])
69
65
  }), /*#__PURE__*/_react.default.createElement("span", {
@@ -9,7 +9,6 @@
9
9
  ._5sagymdr{animation-duration:2s}
10
10
  ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
11
11
  ._bfhk1vck{background-color:var(--ds-background-inverse-subtle,#00000029)}
12
- ._bfhk1vi8{background-color:var(--ds-background-neutral,rgba(9,30,66,.13))}
13
12
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
14
13
  ._bfhkkcmj{background-color:var(--ds-background-success-bold,#5b7f24)}
15
14
  ._bfhkvuon{background-color:var(--ds-surface,#fff)}
@@ -1,9 +1,8 @@
1
- /* progress-bar.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* progress-bar.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./progress-bar.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
- import { N40A } from '@atlaskit/theme/colors';
7
6
  const MIN_VALUE = 0;
8
7
  const MAX_VALUE = 1;
9
8
  const increasingBarAnimation = null;
@@ -50,7 +49,7 @@ const ProgressBar = ({
50
49
  "aria-valuenow": valueParsed,
51
50
  "aria-valuemax": MAX_VALUE,
52
51
  "data-testid": testId,
53
- className: ax(["_2rkofajl _1reo15vq _18m915vq _1bsb1osq _4t3ii2wt _kqswh2mm _bfhk1vi8", fg('platform-dst-shape-theme-default') && "_2rko1rr0", containerAppearance[appearance]])
52
+ className: ax(["_2rkofajl _1reo15vq _18m915vq _1bsb1osq _4t3ii2wt _kqswh2mm _bfhki8nm", fg('platform-dst-shape-theme-default') && "_2rko1rr0", containerAppearance[appearance]])
54
53
  }, isIndeterminate ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
55
54
  className: ax(["_2rkofajl _1e0c1ule _4t3ii2wt _kqswstnw", barAppearance[appearance], "_5sagymdr _tip812c5 _j7hq7g40", fg('platform-dst-shape-theme-default') && "_2rko1rr0"])
56
55
  }), /*#__PURE__*/React.createElement("span", {
@@ -8,7 +8,6 @@
8
8
  ._4t3ii2wt{height:6px}
9
9
  ._5sagymdr{animation-duration:2s}
10
10
  ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
11
- ._bfhk1jmj{background-color:var(--_1j2n3rv)}
12
11
  ._bfhk1vck{background-color:var(--ds-background-inverse-subtle,#00000029)}
13
12
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
14
13
  ._bfhkkcmj{background-color:var(--ds-background-success-bold,#5b7f24)}
@@ -1,9 +1,8 @@
1
- /* progress-bar.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* progress-bar.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./progress-bar.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
- import { N40A } from '@atlaskit/theme/colors';
7
6
  var MIN_VALUE = 0;
8
7
  var MAX_VALUE = 1;
9
8
  var increasingBarAnimation = null;
@@ -53,10 +52,7 @@ var ProgressBar = function ProgressBar(_ref) {
53
52
  "aria-valuenow": valueParsed,
54
53
  "aria-valuemax": MAX_VALUE,
55
54
  "data-testid": testId,
56
- className: ax(["_2rkofajl _1reo15vq _18m915vq _1bsb1osq _4t3ii2wt _kqswh2mm _bfhk1jmj", fg('platform-dst-shape-theme-default') && "_2rko1rr0", containerAppearance[appearance]]),
57
- style: {
58
- "--_1j2n3rv": ix("var(--ds-background-neutral, ".concat(N40A, ")"))
59
- }
55
+ className: ax(["_2rkofajl _1reo15vq _18m915vq _1bsb1osq _4t3ii2wt _kqswh2mm _bfhki8nm", fg('platform-dst-shape-theme-default') && "_2rko1rr0", containerAppearance[appearance]])
60
56
  }, isIndeterminate ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
61
57
  className: ax(["_2rkofajl _1e0c1ule _4t3ii2wt _kqswstnw", barAppearance[appearance], "_5sagymdr _tip812c5 _j7hq7g40", fg('platform-dst-shape-theme-default') && "_2rko1rr0"])
62
58
  }), /*#__PURE__*/React.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-bar",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "description": "A progress bar communicates the status of a system process.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,10 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/platform-feature-flags": "^1.1.0",
28
- "@atlaskit/theme": "^22.0.0",
29
- "@atlaskit/tokens": "^11.0.0",
28
+ "@atlaskit/tokens": "^11.4.0",
30
29
  "@babel/runtime": "^7.0.0",
31
- "@compiled/react": "^0.18.6"
30
+ "@compiled/react": "^0.20.0"
32
31
  },
33
32
  "peerDependencies": {
34
33
  "react": "^18.2.0"
@@ -37,9 +36,10 @@
37
36
  "@af/accessibility-testing": "workspace:^",
38
37
  "@af/integration-testing": "workspace:^",
39
38
  "@af/visual-regression": "workspace:^",
40
- "@atlaskit/docs": "^11.5.0",
39
+ "@atlaskit/docs": "^11.7.0",
41
40
  "@atlaskit/link": "^3.3.0",
42
41
  "@atlaskit/section-message": "^8.12.0",
42
+ "@atlassian/structured-docs-types": "workspace:^",
43
43
  "@testing-library/react": "^16.3.0",
44
44
  "react-dom": "^18.2.0"
45
45
  },
@@ -0,0 +1,113 @@
1
+ import path from 'path';
2
+
3
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
4
+
5
+ const documentation: ComponentStructuredContentSource[] = [
6
+ {
7
+ name: 'ProgressBar',
8
+ description:
9
+ 'A progress bar communicates the status of a system process, showing completion percentage or indeterminate progress.',
10
+ status: 'general-availability',
11
+ import: {
12
+ name: 'ProgressBar',
13
+ package: '@atlaskit/progress-bar',
14
+ type: 'default',
15
+ packagePath: path.resolve(__dirname),
16
+ packageJson: require('./package.json'),
17
+ },
18
+ usageGuidelines: [
19
+ 'Use for showing progress of known duration',
20
+ 'Provide clear progress indicators',
21
+ 'Use indeterminate state for unknown duration',
22
+ 'Position progress bars prominently when active',
23
+ 'Consider providing percentage or time estimates',
24
+ ],
25
+ contentGuidelines: [
26
+ 'Use clear, descriptive progress messages',
27
+ 'Provide meaningful context for progress',
28
+ 'Consider showing estimated time remaining',
29
+ 'Use consistent progress terminology',
30
+ ],
31
+ accessibilityGuidelines: [
32
+ 'Provide appropriate ARIA labels for progress bars',
33
+ 'Announce progress changes to screen readers',
34
+ 'Use appropriate color contrast for visibility',
35
+ 'Provide alternative text for progress status',
36
+ ],
37
+ examples: [
38
+ {
39
+ name: 'Progress Bar',
40
+ description: 'Progress Bar example',
41
+ source: path.resolve(__dirname, './examples/ai/progress-bar.tsx'),
42
+ },
43
+ ],
44
+ keywords: ['progress', 'bar', 'loading', 'status', 'completion', 'indeterminate'],
45
+ categories: ['loading'],
46
+ },
47
+ {
48
+ name: 'SuccessProgressBar',
49
+ description: 'A progress bar variant that indicates successful completion of a process.',
50
+ status: 'general-availability',
51
+ import: {
52
+ name: 'SuccessProgressBar',
53
+ package: '@atlaskit/progress-bar',
54
+ type: 'named',
55
+ packagePath: path.resolve(__dirname),
56
+ packageJson: require('./package.json'),
57
+ },
58
+ usageGuidelines: [
59
+ 'Use to indicate successful completion',
60
+ 'Show briefly before transitioning to next state',
61
+ 'Use appropriate success styling',
62
+ 'Consider providing success message',
63
+ ],
64
+ contentGuidelines: [
65
+ 'Use clear success messaging',
66
+ 'Indicate what was completed successfully',
67
+ 'Provide next steps if applicable',
68
+ ],
69
+ examples: [
70
+ {
71
+ name: 'Success Progress Bar',
72
+ description: 'Success Progress Bar example',
73
+ source: path.resolve(__dirname, './examples/ai/success-progress-bar.tsx'),
74
+ },
75
+ ],
76
+ keywords: ['progress', 'bar', 'success', 'complete', 'finished'],
77
+ categories: ['loading'],
78
+ },
79
+ {
80
+ name: 'TransparentProgressBar',
81
+ description: 'A progress bar variant with transparent background for overlay contexts.',
82
+ status: 'general-availability',
83
+ import: {
84
+ name: 'TransparentProgressBar',
85
+ package: '@atlaskit/progress-bar',
86
+ type: 'named',
87
+ packagePath: path.resolve(__dirname),
88
+ packageJson: require('./package.json'),
89
+ },
90
+ usageGuidelines: [
91
+ 'Use in overlay or modal contexts',
92
+ 'Ensure sufficient contrast with background',
93
+ 'Use for subtle progress indication',
94
+ 'Consider backdrop visibility',
95
+ ],
96
+ contentGuidelines: [
97
+ 'Ensure progress is visible against background',
98
+ 'Use appropriate contrast for readability',
99
+ 'Keep progress indication clear',
100
+ ],
101
+ examples: [
102
+ {
103
+ name: 'Transparent Progress Bar',
104
+ description: 'Transparent Progress Bar example',
105
+ source: path.resolve(__dirname, './examples/ai/transparent-progress-bar.tsx'),
106
+ },
107
+ ],
108
+ keywords: ['progress', 'bar', 'transparent', 'overlay', 'subtle'],
109
+ categories: ['loading'],
110
+ },
111
+ ];
112
+
113
+ export default documentation;