@pushwoosh/dumb-components 1.0.2 → 1.0.3

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/Button/styles.js CHANGED
@@ -70,7 +70,7 @@ const secondaryGhostColors = createColors(colors.secondary.ghost);
70
70
  export const ButtonBoxSecondaryGhostCompact = styled(ButtonBox).withConfig({
71
71
  displayName: "ButtonBoxSecondaryGhostCompact",
72
72
  componentId: "sc-qltvdl-12"
73
- })(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}& ", " + ", "{padding:0 0 0 ", ";}", ";--secondary-ghost-base-color:", ";--secondary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-selector */ButtonIcon, /* sc-selector */ButtonContent, Spacing.S1, /* sc-custom "display: none;" */secondaryGhostColors, Color.SOFT);
73
+ })(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}", ";--secondary-ghost-base-color:", ";--secondary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */secondaryGhostColors, Color.SOFT);
74
74
  export const ButtonBoxSecondaryGhostField = styled(ButtonBox).withConfig({
75
75
  displayName: "ButtonBoxSecondaryGhostField",
76
76
  componentId: "sc-qltvdl-13"
@@ -7,8 +7,8 @@ export function Spinner(props) {
7
7
  size,
8
8
  ...rest
9
9
  } = props;
10
- const Icon = AssetsMap[size];
11
- if (!Icon) {
10
+ const icon = AssetsMap[size];
11
+ if (!icon) {
12
12
  console.error(`[Spinner]: incorrect size: ${size}!`);
13
13
  return null;
14
14
  }
@@ -16,5 +16,8 @@ export function Spinner(props) {
16
16
  ...rest,
17
17
  size: size,
18
18
  ref: boxRef
19
- }, React.createElement(SpinnerAnimate, null, React.createElement(Icon, null)));
19
+ }, React.createElement(SpinnerAnimate, null, React.createElement("img", {
20
+ src: icon,
21
+ alt: `${size} spinner`
22
+ })));
20
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",