@jupyterlab/statusbar 4.0.0-alpha.17 → 4.0.0-alpha.18
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.
|
@@ -7,7 +7,17 @@ export declare namespace ProgressCircle {
|
|
|
7
7
|
* The current progress percentage, from 0 to 100
|
|
8
8
|
*/
|
|
9
9
|
progress: number;
|
|
10
|
+
/**
|
|
11
|
+
* The aria-label for the widget
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Element width
|
|
16
|
+
*/
|
|
10
17
|
width?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Element height
|
|
20
|
+
*/
|
|
11
21
|
height?: number;
|
|
12
22
|
}
|
|
13
23
|
}
|
|
@@ -16,7 +16,7 @@ export function ProgressCircle(props) {
|
|
|
16
16
|
' z';
|
|
17
17
|
return shape;
|
|
18
18
|
};
|
|
19
|
-
return (React.createElement("div", { className: 'jp-Statusbar-ProgressCircle', role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": props.progress },
|
|
19
|
+
return (React.createElement("div", { className: 'jp-Statusbar-ProgressCircle', role: "progressbar", "aria-label": props.label || 'Unlabelled progress circle', "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": props.progress },
|
|
20
20
|
React.createElement("svg", { viewBox: "0 0 250 250" },
|
|
21
21
|
React.createElement("circle", { cx: "125", cy: "125", r: `${radius}`, stroke: "var(--jp-inverse-layout-color3)", strokeWidth: "20", fill: "none" }),
|
|
22
22
|
React.createElement("path", { transform: "translate(125,125) scale(.9)", d: d(props.progress), fill: 'var(--jp-inverse-layout-color3)' }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressCircle.js","sourceRoot":"","sources":["../../src/components/progressCircle.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"progressCircle.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C,8BAA8B,EACxC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EACpB,IAAI,EAAE,iCAAiC,GACvC,CACE,CACF,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/statusbar",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.18",
|
|
4
4
|
"description": "JupyterLab statusbar package.",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"watch": "tsc -b --watch"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
39
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.33",
|
|
40
40
|
"@lumino/algorithm": "^2.0.0-alpha.6",
|
|
41
41
|
"@lumino/coreutils": "^2.0.0-alpha.6",
|
|
42
42
|
"@lumino/disposable": "^2.0.0-alpha.6",
|
|
43
43
|
"@lumino/messaging": "^2.0.0-alpha.6",
|
|
44
44
|
"@lumino/signaling": "^2.0.0-alpha.6",
|
|
45
45
|
"@lumino/widgets": "^2.0.0-alpha.6",
|
|
46
|
-
"react": "^
|
|
46
|
+
"react": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@jupyterlab/testing": "^4.0.0-alpha.
|
|
49
|
+
"@jupyterlab/testing": "^4.0.0-alpha.18",
|
|
50
50
|
"@types/jest": "^29.2.0",
|
|
51
51
|
"rimraf": "~3.0.0",
|
|
52
52
|
"typescript": "~4.7.3"
|