@rolster/react-components 19.1.4 → 19.1.6
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/dist/cjs/assets/{index-PhLxmZfd.css → index-DaXN-EaE.css} +7 -3
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/assets/{index-PhLxmZfd.css → index-DaXN-EaE.css} +7 -3
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.css +7 -3
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.css.map +1 -1
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
.rls-progress-bar {
|
|
2
2
|
--pvt-component-display: block;
|
|
3
|
-
--pvt-component-height: var(--rlc-progress-bar-height, --rls-sizing-x2);
|
|
3
|
+
--pvt-component-height: var(--rlc-progress-bar-height, var(--rls-sizing-x2));
|
|
4
|
+
--pvt-component-radius: var(--rlc-progress-bar-radius, 0rem);
|
|
4
5
|
position: relative;
|
|
5
6
|
width: 100%;
|
|
6
7
|
height: var(--pvt-component-height);
|
|
7
8
|
overflow: hidden;
|
|
8
|
-
background: var(--rls-theme-color-
|
|
9
|
+
background: var(--rlc-progress-bar-background, var(--rls-theme-color-100));
|
|
10
|
+
border-radius: var(--pvt-component-radius);
|
|
9
11
|
}
|
|
10
12
|
.rls-progress-bar--indeterminate {
|
|
11
13
|
--pvt-component-display: none;
|
|
@@ -18,6 +20,7 @@
|
|
|
18
20
|
width: 0%;
|
|
19
21
|
height: var(--pvt-component-height);
|
|
20
22
|
background: var(--rls-theme-gradient-500);
|
|
23
|
+
border-radius: var(--pvt-component-radius);
|
|
21
24
|
}
|
|
22
25
|
.rls-progress-bar--indeterminate::after {
|
|
23
26
|
animation: progress-bar-indeterminate-after 2000ms infinite;
|
|
@@ -27,12 +30,13 @@
|
|
|
27
30
|
}
|
|
28
31
|
.rls-progress-bar__component {
|
|
29
32
|
position: absolute;
|
|
33
|
+
display: var(--pvt-component-display);
|
|
30
34
|
top: 0rem;
|
|
31
35
|
width: 0%;
|
|
32
36
|
height: var(--pvt-component-height);
|
|
33
|
-
display: var(--pvt-component-display);
|
|
34
37
|
background: var(--rls-theme-gradient-500);
|
|
35
38
|
transition: width 320ms 0ms var(--rls-standard-curve);
|
|
39
|
+
border-radius: var(--pvt-component-radius);
|
|
36
40
|
}
|
|
37
41
|
@keyframes progress-bar-indeterminate-before {
|
|
38
42
|
0% {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../../src/components/atoms/ProgressBar/ProgressBar.scss"],"names":[],"mappings":"AAOA,kBACE,+BACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../../src/components/atoms/ProgressBar/ProgressBar.scss"],"names":[],"mappings":"AAOA,kBACE,+BACA,6EACA,6DAEA,kBACA,WACA,mCACA,gBACA,0EACA,0CAEA,iCACE,8BAEA,iFAEE,kBACA,WACA,SACA,SACA,mCACA,yCACA,0CAGF,wCACE,2DAGF,yCACE,4DAIJ,6BACE,kBACA,qCACA,SACA,SACA,mCACA,yCACA,qDACA,0CAIJ,6CACE,GACE,WACA,WAEF,IACE,WACA,WAEF,KACE,YACA,WAIJ,4CACE,GACE,YACA,YAEF,IACE,WACA,UAEF,KACE,WACA","file":"ProgressBar.css"}
|
|
@@ -6,6 +6,6 @@ export function RlsProgressBar({ indeterminate, percentage, rlsTheme }) {
|
|
|
6
6
|
const className = useMemo(() => {
|
|
7
7
|
return renderClassStatus('rls-progress-bar', { indeterminate });
|
|
8
8
|
}, [indeterminate]);
|
|
9
|
-
return (_jsx("div", { className: className, "rls-theme": rlsTheme, children: _jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage
|
|
9
|
+
return (_jsx("div", { className: className, "rls-theme": rlsTheme, children: _jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage ?? 0}%` } }) }));
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=ProgressBar.js.map
|