@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.
@@ -988,12 +988,14 @@
988
988
 
989
989
  .rls-progress-bar {
990
990
  --pvt-component-display: block;
991
- --pvt-component-height: var(--rlc-progress-bar-height, --rls-sizing-x2);
991
+ --pvt-component-height: var(--rlc-progress-bar-height, var(--rls-sizing-x2));
992
+ --pvt-component-radius: var(--rlc-progress-bar-radius, 0rem);
992
993
  position: relative;
993
994
  width: 100%;
994
995
  height: var(--pvt-component-height);
995
996
  overflow: hidden;
996
- background: var(--rls-theme-color-200);
997
+ background: var(--rlc-progress-bar-background, var(--rls-theme-color-100));
998
+ border-radius: var(--pvt-component-radius);
997
999
  }
998
1000
  .rls-progress-bar--indeterminate {
999
1001
  --pvt-component-display: none;
@@ -1006,6 +1008,7 @@
1006
1008
  width: 0%;
1007
1009
  height: var(--pvt-component-height);
1008
1010
  background: var(--rls-theme-gradient-500);
1011
+ border-radius: var(--pvt-component-radius);
1009
1012
  }
1010
1013
  .rls-progress-bar--indeterminate::after {
1011
1014
  animation: progress-bar-indeterminate-after 2000ms infinite;
@@ -1015,12 +1018,13 @@
1015
1018
  }
1016
1019
  .rls-progress-bar__component {
1017
1020
  position: absolute;
1021
+ display: var(--pvt-component-display);
1018
1022
  top: 0rem;
1019
1023
  width: 0%;
1020
1024
  height: var(--pvt-component-height);
1021
- display: var(--pvt-component-display);
1022
1025
  background: var(--rls-theme-gradient-500);
1023
1026
  transition: width 320ms 0ms var(--rls-standard-curve);
1027
+ border-radius: var(--pvt-component-radius);
1024
1028
  }
1025
1029
  @keyframes progress-bar-indeterminate-before {
1026
1030
  0% {
package/dist/cjs/index.js CHANGED
@@ -746,7 +746,7 @@ function RlsProgressBar({ indeterminate, percentage, rlsTheme }) {
746
746
  const className = require$$0.useMemo(() => {
747
747
  return renderClassStatus('rls-progress-bar', { indeterminate });
748
748
  }, [indeterminate]);
749
- return (jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage || 0}%` } }) }));
749
+ return (jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage ?? 0}%` } }) }));
750
750
  }
751
751
 
752
752
  function RlsProgressCircular({ rlsTheme }) {