@pushwoosh/dumb-components 1.1.192 → 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/native/Input.js CHANGED
@@ -4,6 +4,6 @@ import { Color, FontSize, LineHeight, ShapeRadius, UnitSize } from '@pushwoosh/k
4
4
  export const NativeInput = styled.input.withConfig({
5
5
  displayName: "NativeInput",
6
6
  componentId: "sc-oqkcxd-0"
7
- })(["height:", ";padding:0 calc(12px - 1px);border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";}&::placeholder{color:", ";}"], UnitSize.FIELD_HEIGHT, ({
7
+ })(["height:", ";padding:0 calc(12px - 1px);border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";}&::placeholder{color:", ";}"], UnitSize.FIELD_HEIGHT, ({
8
8
  $isErrored
9
- }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.PHANTOM);
9
+ }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.PHANTOM);
@@ -4,7 +4,7 @@ import { Color, FontSize, LineHeight, ShapeRadius } from '@pushwoosh/kit-constan
4
4
  export const NativeTextarea = styled.textarea.withConfig({
5
5
  displayName: "NativeTextarea",
6
6
  componentId: "sc-1xe83i4-0"
7
- })(["width:", ";min-width:", ";max-width:", ";min-height:56px;padding:8px 12px;border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";}&::placeholder{color:", ";}"], ({
7
+ })(["width:", ";min-width:", ";max-width:", ";min-height:56px;padding:8px 12px;border:1px solid ", ";border-radius:", ";font-size:", ";line-height:", ";color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";}&::placeholder{color:", ";}"], ({
8
8
  $width
9
9
  }) => $width || '100%', ({
10
10
  $width
@@ -12,4 +12,4 @@ export const NativeTextarea = styled.textarea.withConfig({
12
12
  $width
13
13
  }) => $width || '100%', ({
14
14
  $isErrored
15
- }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.PHANTOM);
15
+ }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.PHANTOM);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.192",
3
+ "version": "1.1.194",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",