@atlaskit/progress-indicator 9.5.15 → 9.5.16

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/progress-indicator
2
2
 
3
+ ## 9.5.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1ce8020278e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ce8020278e) - Remove role presentation on div indicator
8
+
3
9
  ## 9.5.15
4
10
 
5
11
  ### Patch Changes
@@ -40,15 +40,12 @@ var buttonStyles = (0, _react.css)({
40
40
  *
41
41
  * A presentational indicator with no interactivity
42
42
  */
43
- var PresentationalIndicator = function PresentationalIndicator(props
44
- // TODO: Remove role="presentation", since div's have no semantics anyway
45
- // (DSP-11587)
46
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
47
- ) {
48
- return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
49
- css: commonStyles,
50
- role: "presentation"
51
- }));
43
+ var PresentationalIndicator = function PresentationalIndicator(props) {
44
+ return (0, _react.jsx)("div", {
45
+ style: props.style,
46
+ "data-testid": props.testId,
47
+ css: commonStyles
48
+ });
52
49
  };
53
50
 
54
51
  /**
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
23
  /** @jsx jsx */
24
24
 
25
25
  var packageName = "@atlaskit/progress-indicator";
26
- var packageVersion = "9.5.15";
26
+ var packageVersion = "9.5.16";
27
27
 
28
28
  /**
29
29
  * __ProgressDots__
@@ -139,7 +139,7 @@ var ProgressDots = function ProgressDots(_ref) {
139
139
  tabIndex: isSelected ? 0 : -1,
140
140
  "data-testid": testId && "".concat(testId, "-ind-").concat(index)
141
141
  }) : (0, _react2.jsx)(_indicator.PresentationalIndicator, {
142
- "data-testid": testId && "".concat(testId, "-ind-").concat(index),
142
+ testId: testId && "".concat(testId, "-ind-").concat(index),
143
143
  key: index,
144
144
  style: {
145
145
  backgroundColor: backgroundColor
@@ -33,14 +33,11 @@ const buttonStyles = css({
33
33
  *
34
34
  * A presentational indicator with no interactivity
35
35
  */
36
- export const PresentationalIndicator = (props
37
- // TODO: Remove role="presentation", since div's have no semantics anyway
38
- // (DSP-11587)
39
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
40
- ) => jsx("div", _extends({}, props, {
41
- css: commonStyles,
42
- role: "presentation"
43
- }));
36
+ export const PresentationalIndicator = props => jsx("div", {
37
+ style: props.style,
38
+ "data-testid": props.testId,
39
+ css: commonStyles
40
+ });
44
41
 
45
42
  /**
46
43
  * __Button indicator__
@@ -10,7 +10,7 @@ import { getBgColor } from './appearances';
10
10
  import { progressIndicatorGapMap, sizes, varDotsMargin, varDotsSize } from './constants';
11
11
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
12
12
  const packageName = "@atlaskit/progress-indicator";
13
- const packageVersion = "9.5.15";
13
+ const packageVersion = "9.5.16";
14
14
 
15
15
  /**
16
16
  * __ProgressDots__
@@ -122,7 +122,7 @@ const ProgressDots = ({
122
122
  tabIndex: isSelected ? 0 : -1,
123
123
  "data-testid": testId && `${testId}-ind-${index}`
124
124
  }) : jsx(PresentationalIndicator, {
125
- "data-testid": testId && `${testId}-ind-${index}`,
125
+ testId: testId && `${testId}-ind-${index}`,
126
126
  key: index,
127
127
  style: {
128
128
  backgroundColor
@@ -33,15 +33,12 @@ var buttonStyles = css({
33
33
  *
34
34
  * A presentational indicator with no interactivity
35
35
  */
36
- export var PresentationalIndicator = function PresentationalIndicator(props
37
- // TODO: Remove role="presentation", since div's have no semantics anyway
38
- // (DSP-11587)
39
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
40
- ) {
41
- return jsx("div", _extends({}, props, {
42
- css: commonStyles,
43
- role: "presentation"
44
- }));
36
+ export var PresentationalIndicator = function PresentationalIndicator(props) {
37
+ return jsx("div", {
38
+ style: props.style,
39
+ "data-testid": props.testId,
40
+ css: commonStyles
41
+ });
45
42
  };
46
43
 
47
44
  /**
@@ -12,7 +12,7 @@ import { getBgColor } from './appearances';
12
12
  import { progressIndicatorGapMap, sizes, varDotsMargin, varDotsSize } from './constants';
13
13
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
14
14
  var packageName = "@atlaskit/progress-indicator";
15
- var packageVersion = "9.5.15";
15
+ var packageVersion = "9.5.16";
16
16
 
17
17
  /**
18
18
  * __ProgressDots__
@@ -128,7 +128,7 @@ var ProgressDots = function ProgressDots(_ref) {
128
128
  tabIndex: isSelected ? 0 : -1,
129
129
  "data-testid": testId && "".concat(testId, "-ind-").concat(index)
130
130
  }) : jsx(PresentationalIndicator, {
131
- "data-testid": testId && "".concat(testId, "-ind-").concat(index),
131
+ testId: testId && "".concat(testId, "-ind-").concat(index),
132
132
  key: index,
133
133
  style: {
134
134
  backgroundColor: backgroundColor
@@ -6,7 +6,9 @@ import { jsx } from '@emotion/react';
6
6
  *
7
7
  * A presentational indicator with no interactivity
8
8
  */
9
- export declare const PresentationalIndicator: (props: HTMLAttributes<HTMLDivElement>) => jsx.JSX.Element;
9
+ export declare const PresentationalIndicator: (props: HTMLAttributes<HTMLDivElement> & {
10
+ testId?: string;
11
+ }) => jsx.JSX.Element;
10
12
  /**
11
13
  * __Button indicator__
12
14
  *
@@ -6,7 +6,9 @@ import { jsx } from '@emotion/react';
6
6
  *
7
7
  * A presentational indicator with no interactivity
8
8
  */
9
- export declare const PresentationalIndicator: (props: HTMLAttributes<HTMLDivElement>) => jsx.JSX.Element;
9
+ export declare const PresentationalIndicator: (props: HTMLAttributes<HTMLDivElement> & {
10
+ testId?: string;
11
+ }) => jsx.JSX.Element;
10
12
  /**
11
13
  * __Button indicator__
12
14
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.5.15",
3
+ "version": "9.5.16",
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/"
@@ -26,9 +26,9 @@
26
26
  "@atlaskit/analytics-next": "^9.1.0",
27
27
  "@atlaskit/ds-lib": "^2.2.0",
28
28
  "@atlaskit/focus-ring": "^1.3.0",
29
- "@atlaskit/primitives": "^1.2.0",
30
- "@atlaskit/theme": "^12.5.0",
31
- "@atlaskit/tokens": "^1.15.0",
29
+ "@atlaskit/primitives": "^1.6.0",
30
+ "@atlaskit/theme": "^12.6.0",
31
+ "@atlaskit/tokens": "^1.22.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@emotion/react": "^11.7.1",
34
34
  "bind-event-listener": "^2.1.1"
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "@af/accessibility-testing": "*",
41
41
  "@af/visual-regression": "*",
42
- "@atlaskit/ds-explorations": "^2.2.0",
42
+ "@atlaskit/ds-explorations": "^2.3.0",
43
43
  "@atlaskit/ssr": "*",
44
44
  "@atlaskit/visual-regression": "*",
45
45
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",