@pushwoosh/dumb-components 1.1.193 → 1.1.194

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,4 +1,5 @@
1
1
  import styled, { keyframes, css } from 'styled-components';
2
+ import { Color } from '@pushwoosh/kit-constants';
2
3
  import { toCssValue } from '@pushwoosh/kit-helpers';
3
4
  const pulseKeyframe = keyframes(["0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}"]);
4
5
  const borderRadiusCss = css(["border-radius:", ";"], ({
@@ -6,7 +7,7 @@ const borderRadiusCss = css(["border-radius:", ";"], ({
6
7
  }) => typeof borderRadius === 'undefined' ? 'initial' : toCssValue(borderRadius));
7
8
  const skeletonCommonCss = css(["background-color:", ";animation:", " 1.5s ease-in-out 0.5s infinite;"], ({
8
9
  color
9
- }) => color || '#ddd', pulseKeyframe);
10
+ }) => color || Color.FORM, pulseKeyframe);
10
11
  /** Pulsing rectangular loading placeholder of a fixed `width`/`height`. */
11
12
  export const RectangularSkeleton = styled.div.withConfig({
12
13
  displayName: "RectangularSkeleton",
@@ -32,6 +33,6 @@ export const TextSkeletonTag = styled.div.withConfig({
32
33
  width
33
34
  }) => width ? `width: ${toCssValue(width)};` : '', ({
34
35
  color
35
- }) => color || '#ddd', ({
36
+ }) => color || Color.FORM, ({
36
37
  borderRadius
37
38
  }) => borderRadius || '4px', skeletonCommonCss);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.193",
3
+ "version": "1.1.194",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",