@atlaskit/progress-indicator 9.1.2 → 9.2.2

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,31 @@
1
1
  # @atlaskit/progress-indicator
2
2
 
3
+ ## 9.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 9.2.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [`303e4bf4aa5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/303e4bf4aa5) - [ux] Instrumented progress-indicator with the new theming package, `@atlaskit/tokens`.
20
+
21
+ New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
22
+ These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
23
+
24
+ ### Patch Changes
25
+
26
+ - [`58884c2f6c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/58884c2f6c1) - Internal code change turning on a new linting rule.
27
+ - Updated dependencies
28
+
3
29
  ## 9.1.2
4
30
 
5
31
  ### Patch Changes
@@ -9,41 +9,41 @@ var _colors = require("@atlaskit/theme/colors");
9
9
 
10
10
  var _components = require("@atlaskit/theme/components");
11
11
 
12
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
12
+ // TODO Token usages are not consistent for dots https://product-fabric.atlassian.net/browse/DSP-3180
13
13
  var colorMap = {
14
14
  default: (0, _components.themed)({
15
- light: _colors.N50,
16
- dark: _colors.DN70
15
+ light: "var(--ds-background-neutral, ".concat(_colors.N50, ")"),
16
+ dark: "var(--ds-background-neutral, ".concat(_colors.DN70, ")")
17
17
  }),
18
18
  help: (0, _components.themed)({
19
- light: _colors.P75,
20
- dark: _colors.DN70
19
+ light: "var(--ds-background-neutral, ".concat(_colors.P75, ")"),
20
+ dark: "var(--ds-background-neutral, ".concat(_colors.DN70, ")")
21
21
  }),
22
22
  inverted: (0, _components.themed)({
23
- light: 'rgba(255, 255, 255, 0.4)',
24
- dark: _colors.DN300A
23
+ light: "var(--ds-icon-subtle, rgba(255, 255, 255, 0.4))",
24
+ dark: "var(--ds-icon-subtle, ".concat(_colors.DN300A, ")")
25
25
  }),
26
26
  primary: (0, _components.themed)({
27
- light: _colors.B75,
28
- dark: _colors.DN70
27
+ light: "var(--ds-background-neutral, ".concat(_colors.B75, ")"),
28
+ dark: "var(--ds-background-neutral, ".concat(_colors.DN70, ")")
29
29
  })
30
30
  };
31
31
  var selectedColorMap = {
32
32
  default: (0, _components.themed)({
33
- light: _colors.N900,
34
- dark: _colors.DN600
33
+ light: "var(--ds-icon, ".concat(_colors.N900, ")"),
34
+ dark: "var(--ds-icon, ".concat(_colors.DN600, ")")
35
35
  }),
36
36
  help: (0, _components.themed)({
37
- light: _colors.P400,
38
- dark: _colors.P300
37
+ light: "var(--ds-icon-discovery, ".concat(_colors.P400, ")"),
38
+ dark: "var(--ds-icon-discovery, ".concat(_colors.P300, ")")
39
39
  }),
40
40
  inverted: (0, _components.themed)({
41
- light: _colors.N0,
42
- dark: _colors.DN30
41
+ light: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
42
+ dark: "var(--ds-icon-inverse, ".concat(_colors.DN30, ")")
43
43
  }),
44
44
  primary: (0, _components.themed)({
45
- light: _colors.B400,
46
- dark: _colors.B100
45
+ light: "var(--ds-icon-brand, ".concat(_colors.B400, ")"),
46
+ dark: "var(--ds-icon-brand, ".concat(_colors.B100, ")")
47
47
  })
48
48
  };
49
49
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.varDotsMargin = exports.varDotsSize = exports.spacingDivision = exports.sizes = void 0;
6
+ exports.varDotsSize = exports.varDotsMargin = exports.spacingDivision = exports.sizes = void 0;
7
7
  var sizes = {
8
8
  small: 4,
9
9
  default: 8,
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.ButtonIndicator = exports.PresentationalIndicator = void 0;
8
+ exports.PresentationalIndicator = exports.ButtonIndicator = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -43,7 +43,8 @@ var buttonStyles = (0, _core.css)({
43
43
  * A presentational indicator with no interactivity
44
44
  */
45
45
 
46
- var PresentationalIndicator = function PresentationalIndicator(props) {
46
+ var PresentationalIndicator = function PresentationalIndicator(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
47
+ ) {
47
48
  return (0, _core.jsx)("div", (0, _extends2.default)({}, props, {
48
49
  css: commonStyles,
49
50
  role: "presentation"
@@ -33,7 +33,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
33
 
34
34
  /** @jsx jsx */
35
35
  var packageName = "@atlaskit/progress-indicator";
36
- var packageVersion = "9.1.2";
36
+ var packageVersion = "9.2.2";
37
37
  var containerStyles = (0, _core.css)({
38
38
  display: 'flex',
39
39
  justifyContent: 'center',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.1.2",
3
+ "version": "9.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,40 +1,40 @@
1
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
1
  import { B100, B400, B75, DN30, DN300A, DN600, DN70, N0, N50, N900, P300, P400, P75 } from '@atlaskit/theme/colors';
3
2
  import { themed } from '@atlaskit/theme/components';
3
+ // TODO Token usages are not consistent for dots https://product-fabric.atlassian.net/browse/DSP-3180
4
4
  const colorMap = {
5
5
  default: themed({
6
- light: N50,
7
- dark: DN70
6
+ light: `var(--ds-background-neutral, ${N50})`,
7
+ dark: `var(--ds-background-neutral, ${DN70})`
8
8
  }),
9
9
  help: themed({
10
- light: P75,
11
- dark: DN70
10
+ light: `var(--ds-background-neutral, ${P75})`,
11
+ dark: `var(--ds-background-neutral, ${DN70})`
12
12
  }),
13
13
  inverted: themed({
14
- light: 'rgba(255, 255, 255, 0.4)',
15
- dark: DN300A
14
+ light: "var(--ds-icon-subtle, rgba(255, 255, 255, 0.4))",
15
+ dark: `var(--ds-icon-subtle, ${DN300A})`
16
16
  }),
17
17
  primary: themed({
18
- light: B75,
19
- dark: DN70
18
+ light: `var(--ds-background-neutral, ${B75})`,
19
+ dark: `var(--ds-background-neutral, ${DN70})`
20
20
  })
21
21
  };
22
22
  const selectedColorMap = {
23
23
  default: themed({
24
- light: N900,
25
- dark: DN600
24
+ light: `var(--ds-icon, ${N900})`,
25
+ dark: `var(--ds-icon, ${DN600})`
26
26
  }),
27
27
  help: themed({
28
- light: P400,
29
- dark: P300
28
+ light: `var(--ds-icon-discovery, ${P400})`,
29
+ dark: `var(--ds-icon-discovery, ${P300})`
30
30
  }),
31
31
  inverted: themed({
32
- light: N0,
33
- dark: DN30
32
+ light: `var(--ds-icon-inverse, ${N0})`,
33
+ dark: `var(--ds-icon-inverse, ${DN30})`
34
34
  }),
35
35
  primary: themed({
36
- light: B400,
37
- dark: B100
36
+ light: `var(--ds-icon-brand, ${B400})`,
37
+ dark: `var(--ds-icon-brand, ${B100})`
38
38
  })
39
39
  };
40
40
  export const getBgColor = (appearance, isSelected) => isSelected ? selectedColorMap[appearance] : colorMap[appearance];
@@ -31,7 +31,8 @@ const buttonStyles = css({
31
31
  * A presentational indicator with no interactivity
32
32
  */
33
33
 
34
- export const PresentationalIndicator = props => jsx("div", _extends({}, props, {
34
+ export const PresentationalIndicator = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
35
+ ) => jsx("div", _extends({}, props, {
35
36
  css: commonStyles,
36
37
  role: "presentation"
37
38
  }));
@@ -8,7 +8,7 @@ import { getBgColor } from './appearances';
8
8
  import { sizes, spacingDivision, varDotsMargin, varDotsSize } from './constants';
9
9
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
10
10
  const packageName = "@atlaskit/progress-indicator";
11
- const packageVersion = "9.1.2";
11
+ const packageVersion = "9.2.2";
12
12
  const containerStyles = css({
13
13
  display: 'flex',
14
14
  justifyContent: 'center',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.1.2",
3
+ "version": "9.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,40 +1,40 @@
1
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
1
  import { B100, B400, B75, DN30, DN300A, DN600, DN70, N0, N50, N900, P300, P400, P75 } from '@atlaskit/theme/colors';
3
2
  import { themed } from '@atlaskit/theme/components';
3
+ // TODO Token usages are not consistent for dots https://product-fabric.atlassian.net/browse/DSP-3180
4
4
  var colorMap = {
5
5
  default: themed({
6
- light: N50,
7
- dark: DN70
6
+ light: "var(--ds-background-neutral, ".concat(N50, ")"),
7
+ dark: "var(--ds-background-neutral, ".concat(DN70, ")")
8
8
  }),
9
9
  help: themed({
10
- light: P75,
11
- dark: DN70
10
+ light: "var(--ds-background-neutral, ".concat(P75, ")"),
11
+ dark: "var(--ds-background-neutral, ".concat(DN70, ")")
12
12
  }),
13
13
  inverted: themed({
14
- light: 'rgba(255, 255, 255, 0.4)',
15
- dark: DN300A
14
+ light: "var(--ds-icon-subtle, rgba(255, 255, 255, 0.4))",
15
+ dark: "var(--ds-icon-subtle, ".concat(DN300A, ")")
16
16
  }),
17
17
  primary: themed({
18
- light: B75,
19
- dark: DN70
18
+ light: "var(--ds-background-neutral, ".concat(B75, ")"),
19
+ dark: "var(--ds-background-neutral, ".concat(DN70, ")")
20
20
  })
21
21
  };
22
22
  var selectedColorMap = {
23
23
  default: themed({
24
- light: N900,
25
- dark: DN600
24
+ light: "var(--ds-icon, ".concat(N900, ")"),
25
+ dark: "var(--ds-icon, ".concat(DN600, ")")
26
26
  }),
27
27
  help: themed({
28
- light: P400,
29
- dark: P300
28
+ light: "var(--ds-icon-discovery, ".concat(P400, ")"),
29
+ dark: "var(--ds-icon-discovery, ".concat(P300, ")")
30
30
  }),
31
31
  inverted: themed({
32
- light: N0,
33
- dark: DN30
32
+ light: "var(--ds-icon-inverse, ".concat(N0, ")"),
33
+ dark: "var(--ds-icon-inverse, ".concat(DN30, ")")
34
34
  }),
35
35
  primary: themed({
36
- light: B400,
37
- dark: B100
36
+ light: "var(--ds-icon-brand, ".concat(B400, ")"),
37
+ dark: "var(--ds-icon-brand, ".concat(B100, ")")
38
38
  })
39
39
  };
40
40
  export var getBgColor = function getBgColor(appearance, isSelected) {
@@ -31,7 +31,8 @@ var buttonStyles = css({
31
31
  * A presentational indicator with no interactivity
32
32
  */
33
33
 
34
- export var PresentationalIndicator = function PresentationalIndicator(props) {
34
+ export var PresentationalIndicator = function PresentationalIndicator(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
35
+ ) {
35
36
  return jsx("div", _extends({}, props, {
36
37
  css: commonStyles,
37
38
  role: "presentation"
@@ -10,7 +10,7 @@ import { getBgColor } from './appearances';
10
10
  import { sizes, spacingDivision, varDotsMargin, varDotsSize } from './constants';
11
11
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
12
12
  var packageName = "@atlaskit/progress-indicator";
13
- var packageVersion = "9.1.2";
13
+ var packageVersion = "9.2.2";
14
14
  var containerStyles = css({
15
15
  display: 'flex',
16
16
  justifyContent: 'center',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.1.2",
3
+ "version": "9.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,2 +1,2 @@
1
1
  import type { DotsAppearance } from './types';
2
- export declare const getBgColor: (appearance: DotsAppearance, isSelected: boolean) => import("@atlaskit/theme").ThemedValue<string>;
2
+ export declare const getBgColor: (appearance: DotsAppearance, isSelected: boolean) => import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)"> | import("@atlaskit/theme").ThemedValue<"var(--ds-icon-subtle)"> | import("@atlaskit/theme").ThemedValue<"var(--ds-icon)"> | import("@atlaskit/theme").ThemedValue<"var(--ds-icon-discovery)"> | import("@atlaskit/theme").ThemedValue<"var(--ds-icon-inverse)"> | import("@atlaskit/theme").ThemedValue<"var(--ds-icon-brand)">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.1.2",
3
+ "version": "9.2.2",
4
4
  "description": "A progress indicator shows the user where they are along the steps of a journey.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -16,7 +16,6 @@
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
- "inPublicMirror": true,
20
19
  "releaseModel": "scheduled",
21
20
  "website": {
22
21
  "name": "Progress indicator"
@@ -24,9 +23,10 @@
24
23
  },
25
24
  "dependencies": {
26
25
  "@atlaskit/analytics-next": "^8.0.0",
27
- "@atlaskit/ds-lib": "^1.3.0",
28
- "@atlaskit/focus-ring": "^0.2.4",
29
- "@atlaskit/theme": "^12.0.0",
26
+ "@atlaskit/ds-lib": "^1.4.0",
27
+ "@atlaskit/focus-ring": "^1.0.0",
28
+ "@atlaskit/theme": "^12.1.0",
29
+ "@atlaskit/tokens": "^0.8.0",
30
30
  "@babel/runtime": "^7.0.0",
31
31
  "@emotion/core": "^10.0.9"
32
32
  },
@@ -34,8 +34,7 @@
34
34
  "react": "^16.8.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@atlaskit/build-utils": "*",
38
- "@atlaskit/button": "^16.0.0",
37
+ "@atlaskit/button": "^16.2.0",
39
38
  "@atlaskit/docs": "*",
40
39
  "@atlaskit/section-message": "^6.0.0",
41
40
  "@atlaskit/ssr": "*",
@@ -57,7 +56,10 @@
57
56
  "@repo/internal": {
58
57
  "ui-components": "lite-mode",
59
58
  "design-system": "v1",
60
- "styling": "emotion",
59
+ "styling": [
60
+ "static",
61
+ "emotion"
62
+ ],
61
63
  "analytics": "analytics-next",
62
64
  "theming": "tokens",
63
65
  "deprecation": "no-deprecated-imports"