@atlaskit/progress-indicator 9.5.1 → 9.5.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 +6 -0
- package/dist/cjs/components/progress-dots.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/progress-dots.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/progress-dots.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.5/components/appearances.d.ts +2 -0
- package/dist/types-ts4.5/components/constants.d.ts +34 -0
- package/dist/types-ts4.5/components/indicator.d.ts +15 -0
- package/dist/types-ts4.5/components/progress-dots.d.ts +10 -0
- package/dist/types-ts4.5/components/types.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/dist/types-ts4.5/types.d.ts +44 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
|
@@ -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.
|
|
14
|
+
const packageVersion = "9.5.2";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* __ProgressDots__
|
package/dist/es2019/version.json
CHANGED
|
@@ -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.
|
|
16
|
+
var packageVersion = "9.5.2";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* __ProgressDots__
|
package/dist/esm/version.json
CHANGED
|
@@ -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,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