@pushwoosh/dumb-components 1.1.193 → 1.1.195
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.
|
@@ -3,4 +3,4 @@ import { Color } from '@pushwoosh/kit-constants';
|
|
|
3
3
|
export const InputStyled = styled.input.withConfig({
|
|
4
4
|
displayName: "InputStyled",
|
|
5
5
|
componentId: "sc-17gtn04-0"
|
|
6
|
-
})(["&:disabled{background-color:", ";}"], Color.FROZEN);
|
|
6
|
+
})(["color:", ";-webkit-text-fill-color:", ";background-color:transparent;&::placeholder{color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}"], Color.MAIN, Color.MAIN, Color.PHANTOM, Color.FROZEN, Color.LOCKED);
|
package/NumberPicker/styles.js
CHANGED
|
@@ -5,7 +5,7 @@ export const InputStyled = styled.input.attrs({
|
|
|
5
5
|
}).withConfig({
|
|
6
6
|
displayName: "InputStyled",
|
|
7
7
|
componentId: "sc-vq8xnz-0"
|
|
8
|
-
})(["width:100
|
|
8
|
+
})(["width:100%;color:", ";-webkit-text-fill-color:", ";background-color:transparent;&::placeholder{color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}"], Color.MAIN, Color.MAIN, Color.PHANTOM, Color.FROZEN, Color.LOCKED);
|
|
9
9
|
export const Hint = styled.div.withConfig({
|
|
10
10
|
displayName: "Hint",
|
|
11
11
|
componentId: "sc-vq8xnz-1"
|
|
@@ -11,7 +11,7 @@ export const InputBox = styled.div.withConfig({
|
|
|
11
11
|
export const InputStyled = styled.input.withConfig({
|
|
12
12
|
displayName: "InputStyled",
|
|
13
13
|
componentId: "sc-191i2ot-2"
|
|
14
|
-
})(["color
|
|
14
|
+
})(["color:", ";width:", "px;max-width:100%;border:0;padding:0;margin:3px 4px 0 0;background:#0000;font-weight:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border-bottom:1px dashed ", ";&::placeholder{color:", ";}&:active,&:hover,&:focus{border-bottom:1px dashed ", ";outline-offset:0;outline:0;}&:hover{color:", ";cursor:pointer;}&:active{opacity:0.5;cursor:pointer;}"], Color.PRIMARY, ({
|
|
15
15
|
width
|
|
16
16
|
}) => width - 10, Color.PHANTOM, Color.PHANTOM, Color.PHANTOM, Color.PRIMARY_HOVER);
|
|
17
17
|
export const RootBox = styled.div.withConfig({
|
package/Skeleton/styles.js
CHANGED
|
@@ -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 ||
|
|
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 ||
|
|
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:", ";color:", ";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:", ";-webkit-text-fill-color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-color:", ";}&::placeholder{color:", ";}"], UnitSize.FIELD_HEIGHT, ({
|
|
8
8
|
$isErrored
|
|
9
|
-
}) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.PHANTOM);
|
|
9
|
+
}) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.LOCKED, Color.PHANTOM);
|
package/native/Textarea.js
CHANGED
|
@@ -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:", ";color:", ";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:", ";-webkit-text-fill-color:", ";background-color:", ";&:focus{outline:none;border-color:", ";}&:disabled{background-color:", ";-webkit-text-fill-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.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.PHANTOM);
|
|
15
|
+
}) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, Color.MAIN, Color.MAIN, Color.CLEAR, Color.BRIGHT, Color.FROZEN, Color.LOCKED, Color.PHANTOM);
|