@atlaskit/progress-bar 0.5.10 → 0.5.12
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 +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/components/progress-bar.d.ts +13 -0
- package/dist/types-ts4.0/components/success-progress-bar.d.ts +12 -0
- package/dist/types-ts4.0/components/transparent-progress-bar.d.ts +12 -0
- package/dist/types-ts4.0/index.d.ts +3 -0
- package/dist/types-ts4.0/theme.d.ts +17 -0
- package/dist/types-ts4.0/types.d.ts +49 -0
- package/package.json +14 -4
- package/report.api.md +72 -37
- package/theme/package.json +8 -1
- package/types/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/progress-bar
|
|
2
2
|
|
|
3
|
+
## 0.5.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
|
|
8
|
+
|
|
9
|
+
## 0.5.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
14
|
+
|
|
3
15
|
## 0.5.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { DefaultProgressBarProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __Progress bar__
|
|
5
|
+
*
|
|
6
|
+
* A progress bar displays the status of a given process.
|
|
7
|
+
*
|
|
8
|
+
* - [Examples](https://atlassian.design/components/progress-bar/examples)
|
|
9
|
+
* - [Code](https://atlassian.design/components/progress-bar/code)
|
|
10
|
+
* - [Usage](https://atlassian.design/components/progress-bar/usage)
|
|
11
|
+
*/
|
|
12
|
+
declare const ProgressBar: ({ appearance, ariaLabel, isIndeterminate, testId, theme, value, }: DefaultProgressBarProps) => jsx.JSX.Element;
|
|
13
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomProgressBarProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __Success progress bar__
|
|
5
|
+
*
|
|
6
|
+
* A success progress bar indicates the completion of a process.
|
|
7
|
+
*
|
|
8
|
+
* - [Examples](https://atlassian.design/components/progress-bar/success-progress-bar/examples)
|
|
9
|
+
* - [Code](https://atlassian.design/components/progress-bar/success-progress-bar/code)
|
|
10
|
+
*/
|
|
11
|
+
declare const SuccessProgressBar: ({ ariaLabel, isIndeterminate, testId, value, }: CustomProgressBarProps) => JSX.Element;
|
|
12
|
+
export default SuccessProgressBar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomProgressBarProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __Transparent progress bar__
|
|
5
|
+
*
|
|
6
|
+
* A transparent progress bar is used on bold backgrounds to maintain suitable contrast.
|
|
7
|
+
*
|
|
8
|
+
* - [Examples](https://atlassian.design/components/progress-bar/transparent-progress-bar/examples)
|
|
9
|
+
* - [Code](https://atlassian.design/components/progress-bar/transparent-progress-bar/code)
|
|
10
|
+
*/
|
|
11
|
+
declare const TransparentProgressBar: ({ ariaLabel, isIndeterminate, testId, value, }: CustomProgressBarProps) => JSX.Element;
|
|
12
|
+
export default TransparentProgressBar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ThemeProps, ThemeTokens } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates the default theme, which can be customised using the `theme` prop
|
|
5
|
+
*
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
export declare const Theme: {
|
|
9
|
+
Consumer: import("react").ComponentType<{
|
|
10
|
+
children: (tokens: ThemeTokens) => import("react").ReactNode;
|
|
11
|
+
} & ThemeProps>;
|
|
12
|
+
Provider: import("react").ComponentType<{
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
value?: import("@atlaskit/theme/components").ThemeProp<ThemeTokens, ThemeProps> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
useTheme: (props: ThemeProps) => ThemeTokens;
|
|
17
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ThemeProp } from '@atlaskit/theme/components';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export declare type ThemeProps = {
|
|
6
|
+
value: string | number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated This allows for users to customize the theme. This is being deprecated, please consider
|
|
10
|
+
* migrating to one of progress bar's variants.
|
|
11
|
+
*/
|
|
12
|
+
export declare type ThemeTokens = {
|
|
13
|
+
container: any;
|
|
14
|
+
bar: any;
|
|
15
|
+
determinateBar: any;
|
|
16
|
+
increasingBar: any;
|
|
17
|
+
decreasingBar: any;
|
|
18
|
+
};
|
|
19
|
+
export interface CustomProgressBarProps {
|
|
20
|
+
/**
|
|
21
|
+
* Sets the value of the progress bar, between `0` and `1` inclusive.
|
|
22
|
+
*/
|
|
23
|
+
value?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Shows the progress bar in an indeterminate state when `true`.
|
|
26
|
+
*/
|
|
27
|
+
isIndeterminate?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Label associated with the progress bar,
|
|
30
|
+
* read by screen readers.
|
|
31
|
+
*/
|
|
32
|
+
ariaLabel?: string;
|
|
33
|
+
/**
|
|
34
|
+
* A `testId` prop is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
35
|
+
* serving as a hook for automated tests.
|
|
36
|
+
*/
|
|
37
|
+
testId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface DefaultProgressBarProps extends CustomProgressBarProps {
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
* Theme prop is deprecated and will be removed in the future.
|
|
43
|
+
*/
|
|
44
|
+
theme?: ThemeProp<ThemeTokens, ThemeProps>;
|
|
45
|
+
/**
|
|
46
|
+
* Visual style of the progress bar.
|
|
47
|
+
*/
|
|
48
|
+
appearance?: 'default' | 'success' | 'inverse';
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/progress-bar",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"description": "A progress bar displays the status of a given process.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,10 +12,19 @@
|
|
|
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
|
+
"dist/types-ts4.0/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"homepage": "https://atlassian.design/components/progress-bar/",
|
|
18
26
|
"atlassian": {
|
|
27
|
+
"disableProductCI": true,
|
|
19
28
|
"team": "Design System Team",
|
|
20
29
|
"deprecatedAutoEntryPoints": true,
|
|
21
30
|
"releaseModel": "scheduled",
|
|
@@ -37,12 +46,12 @@
|
|
|
37
46
|
"devDependencies": {
|
|
38
47
|
"@atlaskit/button": "^16.3.0",
|
|
39
48
|
"@atlaskit/docs": "*",
|
|
40
|
-
"@atlaskit/section-message": "^6.
|
|
49
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
41
50
|
"@atlaskit/visual-regression": "*",
|
|
42
51
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
43
|
-
"@testing-library/react": "^
|
|
52
|
+
"@testing-library/react": "^12.1.5",
|
|
44
53
|
"react-dom": "^16.8.0",
|
|
45
|
-
"typescript": "4.
|
|
54
|
+
"typescript": "4.5.5"
|
|
46
55
|
},
|
|
47
56
|
"keywords": [
|
|
48
57
|
"atlaskit",
|
|
@@ -56,6 +65,7 @@
|
|
|
56
65
|
"@repo/internal": {
|
|
57
66
|
"dom-events": "use-bind-event-listener",
|
|
58
67
|
"design-system": "v1",
|
|
68
|
+
"design-tokens": "spacing",
|
|
59
69
|
"theming": "tokens",
|
|
60
70
|
"deprecation": "no-deprecated-imports",
|
|
61
71
|
"styling": [
|
package/report.api.md
CHANGED
|
@@ -1,55 +1,85 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/progress-bar"
|
|
1
|
+
## API Report File for "@atlaskit/progress-bar".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
|
-
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
|
|
10
|
+
import { jsx } from '@emotion/react';
|
|
7
11
|
import { ThemeProp } from '@atlaskit/theme/components';
|
|
8
12
|
|
|
9
13
|
declare interface CustomProgressBarProps {
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Sets the value of the progress bar, between `0` and `1` inclusive.
|
|
12
16
|
*/
|
|
13
|
-
value
|
|
17
|
+
value?: number;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Shows the progress bar in an indeterminate state when `true`.
|
|
16
20
|
*/
|
|
17
|
-
isIndeterminate
|
|
21
|
+
isIndeterminate?: boolean;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* Label associated with the progress bar,
|
|
24
|
+
* read by screen readers.
|
|
20
25
|
*/
|
|
21
26
|
ariaLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* A `testId` prop is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
29
|
+
* serving as a hook for automated tests.
|
|
30
|
+
*/
|
|
31
|
+
testId?: string;
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
declare interface DefaultProgressBarProps extends CustomProgressBarProps {
|
|
25
35
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
36
|
+
* @deprecated
|
|
37
|
+
* Theme prop is deprecated and will be removed in the future.
|
|
28
38
|
*/
|
|
29
39
|
theme?: ThemeProp<ThemeTokens, ThemeProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Visual style of the progress bar.
|
|
42
|
+
*/
|
|
43
|
+
appearance?: 'default' | 'success' | 'inverse';
|
|
30
44
|
}
|
|
31
45
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
/**
|
|
47
|
+
* __Progress bar__
|
|
48
|
+
*
|
|
49
|
+
* A progress bar displays the status of a given process.
|
|
50
|
+
*
|
|
51
|
+
* - [Examples](https://atlassian.design/components/progress-bar/examples)
|
|
52
|
+
* - [Code](https://atlassian.design/components/progress-bar/code)
|
|
53
|
+
* - [Usage](https://atlassian.design/components/progress-bar/usage)
|
|
54
|
+
*/
|
|
55
|
+
declare const ProgressBar: ({
|
|
56
|
+
appearance,
|
|
57
|
+
ariaLabel,
|
|
58
|
+
isIndeterminate,
|
|
59
|
+
testId,
|
|
60
|
+
theme,
|
|
61
|
+
value,
|
|
62
|
+
}: DefaultProgressBarProps) => jsx.JSX.Element;
|
|
41
63
|
export default ProgressBar;
|
|
42
64
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
65
|
+
/**
|
|
66
|
+
* __Success progress bar__
|
|
67
|
+
*
|
|
68
|
+
* A success progress bar indicates the completion of a process.
|
|
69
|
+
*
|
|
70
|
+
* - [Examples](https://atlassian.design/components/progress-bar/success-progress-bar/examples)
|
|
71
|
+
* - [Code](https://atlassian.design/components/progress-bar/success-progress-bar/code)
|
|
72
|
+
*/
|
|
73
|
+
export declare const SuccessProgressBar: ({
|
|
74
|
+
ariaLabel,
|
|
75
|
+
isIndeterminate,
|
|
76
|
+
testId,
|
|
77
|
+
value,
|
|
78
|
+
}: CustomProgressBarProps) => JSX.Element;
|
|
52
79
|
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
53
83
|
declare type ThemeProps = {
|
|
54
84
|
value: string | number;
|
|
55
85
|
};
|
|
@@ -66,15 +96,20 @@ declare type ThemeTokens = {
|
|
|
66
96
|
decreasingBar: any;
|
|
67
97
|
};
|
|
68
98
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
99
|
+
/**
|
|
100
|
+
* __Transparent progress bar__
|
|
101
|
+
*
|
|
102
|
+
* A transparent progress bar is used on bold backgrounds to maintain suitable contrast.
|
|
103
|
+
*
|
|
104
|
+
* - [Examples](https://atlassian.design/components/progress-bar/transparent-progress-bar/examples)
|
|
105
|
+
* - [Code](https://atlassian.design/components/progress-bar/transparent-progress-bar/code)
|
|
106
|
+
*/
|
|
107
|
+
export declare const TransparentProgressBar: ({
|
|
108
|
+
ariaLabel,
|
|
109
|
+
isIndeterminate,
|
|
110
|
+
testId,
|
|
111
|
+
value,
|
|
112
|
+
}: CustomProgressBarProps) => JSX.Element;
|
|
78
113
|
|
|
79
114
|
export {};
|
|
80
115
|
```
|
package/theme/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/theme.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/theme.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/theme.d.ts"
|
|
7
|
+
"types": "../dist/types/theme.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/theme.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
package/types/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/types.d.ts"
|
|
7
|
+
"types": "../dist/types/types.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/types.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|