@pushwoosh/dumb-components 1.1.89 → 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,
@@ -5,4 +5,5 @@ export type ProgressBarProps = {
5
5
  rightSlot?: ReactNode;
6
6
  color?: string;
7
7
  backgroundColor?: string;
8
+ showSpinner?: boolean;
8
9
  };
@@ -10,6 +10,6 @@ export const RootBox = styled(Vertical).attrs({
10
10
  }).withConfig({
11
11
  displayName: "RootBox",
12
12
  componentId: "sc-tkztr1-0"
13
- })(["width:262px;height:100%;border:", ";box-sizing:border-box;cursor:pointer;"], ({
13
+ })(["width:262px;height:100%;box-sizing:border-box;outline:", ";cursor:pointer;&:hover{background:", ";}"], ({
14
14
  isActive
15
- }) => isActive ? `2px solid ${Color.PRIMARY}` : `1px solid ${Color.DIVIDER}`);
15
+ }) => isActive ? `2px solid ${Color.PRIMARY}` : `1px solid ${Color.DIVIDER}`, Color.ROW_HOVER);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.89",
3
+ "version": "1.1.91",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",