@atlaskit/progress-indicator 9.3.1 → 9.3.3

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,17 @@
1
1
  # @atlaskit/progress-indicator
2
2
 
3
+ ## 9.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
14
+
3
15
  ## 9.3.1
4
16
 
5
17
  ### Patch Changes
@@ -32,7 +32,8 @@ var commonStyles = (0, _react.css)({
32
32
  }
33
33
  });
34
34
  var buttonStyles = (0, _react.css)({
35
- padding: 0,
35
+ // TODO Delete this comment after verifying spacing token -> previous value `0`
36
+ padding: "var(--ds-scale-0, 0px)",
36
37
  border: 0,
37
38
  cursor: 'pointer',
38
39
  outline: 0
@@ -35,7 +35,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
35
35
 
36
36
  /** @jsx jsx */
37
37
  var packageName = "@atlaskit/progress-indicator";
38
- var packageVersion = "9.3.1";
38
+ var packageVersion = "9.3.3";
39
39
  var containerStyles = (0, _react2.css)({
40
40
  display: 'flex',
41
41
  justifyContent: 'center',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.3.1",
3
+ "version": "9.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -20,7 +20,8 @@ const commonStyles = css({
20
20
  }
21
21
  });
22
22
  const buttonStyles = css({
23
- padding: 0,
23
+ // TODO Delete this comment after verifying spacing token -> previous value `0`
24
+ padding: "var(--ds-scale-0, 0px)",
24
25
  border: 0,
25
26
  cursor: 'pointer',
26
27
  outline: 0
@@ -9,7 +9,7 @@ import { getBgColor } from './appearances';
9
9
  import { sizes, spacingDivision, varDotsMargin, varDotsSize } from './constants';
10
10
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
11
11
  const packageName = "@atlaskit/progress-indicator";
12
- const packageVersion = "9.3.1";
12
+ const packageVersion = "9.3.3";
13
13
  const containerStyles = css({
14
14
  display: 'flex',
15
15
  justifyContent: 'center',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.3.1",
3
+ "version": "9.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -20,7 +20,8 @@ var commonStyles = css({
20
20
  }
21
21
  });
22
22
  var buttonStyles = css({
23
- padding: 0,
23
+ // TODO Delete this comment after verifying spacing token -> previous value `0`
24
+ padding: "var(--ds-scale-0, 0px)",
24
25
  border: 0,
25
26
  cursor: 'pointer',
26
27
  outline: 0
@@ -11,7 +11,7 @@ import { getBgColor } from './appearances';
11
11
  import { sizes, spacingDivision, varDotsMargin, varDotsSize } from './constants';
12
12
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
13
13
  var packageName = "@atlaskit/progress-indicator";
14
- var packageVersion = "9.3.1";
14
+ var packageVersion = "9.3.3";
15
15
  var containerStyles = css({
16
16
  display: 'flex',
17
17
  justifyContent: 'center',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.3.1",
3
+ "version": "9.3.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.3.1",
3
+ "version": "9.3.3",
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/"
@@ -12,16 +12,10 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*"
19
- ]
20
- }
21
- },
22
15
  "sideEffects": false,
23
16
  "atlaskit:src": "src/index.tsx",
24
17
  "atlassian": {
18
+ "disableProductCI": true,
25
19
  "team": "Design System Team",
26
20
  "releaseModel": "scheduled",
27
21
  "website": {
@@ -32,9 +26,9 @@
32
26
  "dependencies": {
33
27
  "@atlaskit/analytics-next": "^8.0.0",
34
28
  "@atlaskit/ds-lib": "^2.1.0",
35
- "@atlaskit/focus-ring": "^1.0.0",
29
+ "@atlaskit/focus-ring": "^1.2.0",
36
30
  "@atlaskit/theme": "^12.2.0",
37
- "@atlaskit/tokens": "^0.10.0",
31
+ "@atlaskit/tokens": "^0.11.0",
38
32
  "@babel/runtime": "^7.0.0",
39
33
  "@emotion/react": "^11.7.1",
40
34
  "bind-event-listener": "^2.1.1"
@@ -43,9 +37,9 @@
43
37
  "react": "^16.8.0"
44
38
  },
45
39
  "devDependencies": {
46
- "@atlaskit/button": "^16.3.0",
40
+ "@atlaskit/button": "^16.4.0",
47
41
  "@atlaskit/docs": "*",
48
- "@atlaskit/section-message": "^6.2.0",
42
+ "@atlaskit/section-message": "^6.3.0",
49
43
  "@atlaskit/ssr": "*",
50
44
  "@atlaskit/visual-regression": "*",
51
45
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -71,6 +65,7 @@
71
65
  "emotion"
72
66
  ],
73
67
  "analytics": "analytics-next",
68
+ "design-tokens": "spacing",
74
69
  "theming": "tokens",
75
70
  "deprecation": "no-deprecated-imports"
76
71
  }
package/report.api.md CHANGED
@@ -2,30 +2,26 @@
2
2
 
3
3
  > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
4
 
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
8
+
9
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
10
+
5
11
  ```ts
6
12
  /// <reference types="react" />
7
13
 
8
14
  import { FC } from 'react';
9
15
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
10
16
 
11
- declare type DotsAppearance = 'default' | 'help' | 'inverted' | 'primary';
17
+ // @public (undocumented)
18
+ type DotsAppearance = 'default' | 'help' | 'inverted' | 'primary';
12
19
 
13
- export declare interface ProgressDotsProps {
14
- /**
15
- * The color of the indicators
16
- */
20
+ // @public (undocumented)
21
+ export interface ProgressDotsProps {
17
22
  appearance?: DotsAppearance;
18
- /**
19
- * The aria-controls text applied to each indicator, appended by the index
20
- */
21
23
  ariaControls?: string;
22
- /**
23
- * The aria-label text applied to each indicator, appended by the index
24
- */
25
24
  ariaLabel?: string;
26
- /**
27
- * Function called when an indicator is selected
28
- */
29
25
  onSelect?: (
30
26
  eventData: {
31
27
  event: React.MouseEvent<HTMLButtonElement>;
@@ -33,38 +29,21 @@ export declare interface ProgressDotsProps {
33
29
  },
34
30
  analyticsEvent: UIAnalyticsEvent,
35
31
  ) => void;
36
- /**
37
- * Which indicator is currently selected
38
- */
39
32
  selectedIndex: number;
40
- /**
41
- * Corresponds to the width & height of each indicator
42
- */
43
33
  size?: Size;
44
- /**
45
- * How much of a gutter is desired between indicators
46
- */
47
34
  spacing?: Spacing;
48
- /**
49
- * A hook for automated tests.
50
- */
51
35
  testId?: string;
52
- /**
53
- * An array of values mapped over to create the indicators
54
- */
55
36
  values: any[];
56
37
  }
57
38
 
58
- /**
59
- * __ProgressDots__
60
- *
61
- * A progress indicator shows the user where they are along the steps of a journey.
62
- */
63
- export declare const ProgressIndicator: FC<ProgressDotsProps>;
39
+ // @public
40
+ export const ProgressIndicator: FC<ProgressDotsProps>;
64
41
 
65
- declare type Size = 'small' | 'default' | 'large';
42
+ // @public (undocumented)
43
+ type Size = 'small' | 'default' | 'large';
66
44
 
67
- declare type Spacing = 'comfortable' | 'cozy' | 'compact';
45
+ // @public (undocumented)
46
+ type Spacing = 'comfortable' | 'cozy' | 'compact';
68
47
 
69
- export {};
48
+ // (No @packageDocumentation comment for this package)
70
49
  ```
@@ -1,2 +0,0 @@
1
- import type { DotsAppearance } from './types';
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)">;
@@ -1,12 +0,0 @@
1
- export declare const sizes: {
2
- small: number;
3
- default: number;
4
- large: number;
5
- };
6
- export declare const spacingDivision: {
7
- comfortable: number;
8
- cozy: number;
9
- compact: number;
10
- };
11
- export declare const varDotsSize = "--ds-dots-size";
12
- export declare const varDotsMargin = "--ds-dots-margin";
@@ -1,15 +0,0 @@
1
- /** @jsx jsx */
2
- import type { HTMLAttributes } from 'react';
3
- import { jsx } from '@emotion/react';
4
- /**
5
- * __Presentational indicator__
6
- *
7
- * A presentational indicator with no interactivity
8
- */
9
- export declare const PresentationalIndicator: (props: HTMLAttributes<HTMLDivElement>) => jsx.JSX.Element;
10
- /**
11
- * __Button indicator__
12
- *
13
- * An interactive indicator.
14
- */
15
- export declare const ButtonIndicator: (props: HTMLAttributes<HTMLButtonElement>) => jsx.JSX.Element;
@@ -1,10 +0,0 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
3
- import type { ProgressDotsProps } from '../types';
4
- /**
5
- * __ProgressDots__
6
- *
7
- * A progress indicator shows the user where they are along the steps of a journey.
8
- */
9
- declare const ProgressDots: FC<ProgressDotsProps>;
10
- export default ProgressDots;
@@ -1,3 +0,0 @@
1
- export declare type DotsAppearance = 'default' | 'help' | 'inverted' | 'primary';
2
- export declare type Spacing = 'comfortable' | 'cozy' | 'compact';
3
- export declare type Size = 'small' | 'default' | 'large';
@@ -1,2 +0,0 @@
1
- export { default as ProgressIndicator } from './components/progress-dots';
2
- export type { ProgressDotsProps } from './types';
@@ -1,44 +0,0 @@
1
- /// <reference types="react" />
2
- import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- import type { DotsAppearance, Size, Spacing } from './components/types';
4
- export interface ProgressDotsProps {
5
- /**
6
- * The color of the indicators
7
- */
8
- appearance?: DotsAppearance;
9
- /**
10
- * The aria-controls text applied to each indicator, appended by the index
11
- */
12
- ariaControls?: string;
13
- /**
14
- * The aria-label text applied to each indicator, appended by the index
15
- */
16
- ariaLabel?: string;
17
- /**
18
- * Function called when an indicator is selected
19
- */
20
- onSelect?: (eventData: {
21
- event: React.MouseEvent<HTMLButtonElement>;
22
- index: number;
23
- }, analyticsEvent: UIAnalyticsEvent) => void;
24
- /**
25
- * Which indicator is currently selected
26
- */
27
- selectedIndex: number;
28
- /**
29
- * Corresponds to the width & height of each indicator
30
- */
31
- size?: Size;
32
- /**
33
- * How much of a gutter is desired between indicators
34
- */
35
- spacing?: Spacing;
36
- /**
37
- * A hook for automated tests.
38
- */
39
- testId?: string;
40
- /**
41
- * An array of values mapped over to create the indicators
42
- */
43
- values: any[];
44
- }