@atlaskit/progress-indicator 9.5.1 → 9.5.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.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
8
+
9
+ ## 9.5.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
14
+
3
15
  ## 9.5.1
4
16
 
5
17
  ### Patch Changes
@@ -24,7 +24,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
24
24
  /** @jsx jsx */
25
25
 
26
26
  var packageName = "@atlaskit/progress-indicator";
27
- var packageVersion = "9.5.1";
27
+ var packageVersion = "9.5.3";
28
28
 
29
29
  /**
30
30
  * __ProgressDots__
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.5.1",
3
+ "version": "9.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -11,7 +11,7 @@ import { getBgColor } from './appearances';
11
11
  import { progressIndicatorGapMap, sizes, varDotsMargin, varDotsSize } from './constants';
12
12
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
13
13
  const packageName = "@atlaskit/progress-indicator";
14
- const packageVersion = "9.5.1";
14
+ const packageVersion = "9.5.3";
15
15
 
16
16
  /**
17
17
  * __ProgressDots__
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.5.1",
3
+ "version": "9.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -13,7 +13,7 @@ import { getBgColor } from './appearances';
13
13
  import { progressIndicatorGapMap, sizes, varDotsMargin, varDotsSize } from './constants';
14
14
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
15
15
  var packageName = "@atlaskit/progress-indicator";
16
- var packageVersion = "9.5.1";
16
+ var packageVersion = "9.5.3";
17
17
 
18
18
  /**
19
19
  * __ProgressDots__
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.5.1",
3
+ "version": "9.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,2 @@
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)">;
@@ -0,0 +1,34 @@
1
+ import type { InlineProps } from '@atlaskit/primitives';
2
+ import { token } from '@atlaskit/tokens';
3
+ type TokenValue = ReturnType<typeof token>;
4
+ type ScaleValue = InlineProps['space'];
5
+ type SpacingTuple = [
6
+ ScaleValue,
7
+ TokenValue
8
+ ];
9
+ type SpacingPropsToTokensMap = {
10
+ comfortable: {
11
+ small: SpacingTuple;
12
+ default: SpacingTuple;
13
+ large: SpacingTuple;
14
+ };
15
+ cozy: {
16
+ small: SpacingTuple;
17
+ default: SpacingTuple;
18
+ large: SpacingTuple;
19
+ };
20
+ compact: {
21
+ small: SpacingTuple;
22
+ default: SpacingTuple;
23
+ large: SpacingTuple;
24
+ };
25
+ };
26
+ export declare const progressIndicatorGapMap: SpacingPropsToTokensMap;
27
+ export declare const sizes: {
28
+ small: number;
29
+ default: number;
30
+ large: number;
31
+ };
32
+ export declare const varDotsSize = "--ds-dots-size";
33
+ export declare const varDotsMargin = "--ds-dots-margin";
34
+ export {};
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,3 @@
1
+ export type DotsAppearance = 'default' | 'help' | 'inverted' | 'primary';
2
+ export type Spacing = 'comfortable' | 'cozy' | 'compact';
3
+ export type Size = 'small' | 'default' | 'large';
@@ -0,0 +1,2 @@
1
+ export { default as ProgressIndicator } from './components/progress-dots';
2
+ export type { ProgressDotsProps } from './types';
@@ -0,0 +1,44 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-indicator",
3
- "version": "9.5.1",
3
+ "version": "9.5.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/"
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/analytics-next": "^9.1.0",
35
- "@atlaskit/ds-explorations": "^2.1.0",
35
+ "@atlaskit/ds-explorations": "^2.2.0",
36
36
  "@atlaskit/ds-lib": "^2.2.0",
37
37
  "@atlaskit/focus-ring": "^1.3.0",
38
38
  "@atlaskit/primitives": "^0.9.0",
39
39
  "@atlaskit/theme": "^12.5.0",
40
- "@atlaskit/tokens": "^1.4.0",
40
+ "@atlaskit/tokens": "^1.5.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1",
43
43
  "bind-event-listener": "^2.1.1"