@pushwoosh/dumb-components 1.1.90 → 1.1.91
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
import { type ProgressBarProps } from './types';
|
|
3
|
-
export declare function ProgressBar({ percentValue, title, rightSlot, color, backgroundColor, }: ProgressBarProps): ReactElement;
|
|
3
|
+
export declare function ProgressBar({ percentValue, title, rightSlot, color, backgroundColor, showSpinner, }: ProgressBarProps): ReactElement;
|
|
@@ -7,9 +7,10 @@ export function ProgressBar({
|
|
|
7
7
|
title,
|
|
8
8
|
rightSlot,
|
|
9
9
|
color = Color.BRIGHT,
|
|
10
|
-
backgroundColor = Color.BRIGHT_LIGHT
|
|
10
|
+
backgroundColor = Color.BRIGHT_LIGHT,
|
|
11
|
+
showSpinner = true
|
|
11
12
|
}) {
|
|
12
|
-
return React.createElement(Container, null, React.createElement(SpinnerContainer, {
|
|
13
|
+
return React.createElement(Container, null, showSpinner && React.createElement(SpinnerContainer, {
|
|
13
14
|
"$backgroundColor": backgroundColor
|
|
14
15
|
}, React.createElement(Spinner, {
|
|
15
16
|
color: color,
|
package/ProgressBar/types.d.ts
CHANGED