@pushwoosh/dumb-components 1.1.99 → 1.1.100
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/Banner/styles.js +4 -4
- package/Button/styles.js +12 -12
- package/CardMetric/styles.js +7 -7
- package/DateTimePicker/components/DatePicker/DatePicker.js +4 -1
- package/DateTimePicker/components/DatePicker/types.d.ts +1 -0
- package/DateTimePicker/styles.d.ts +3 -1
- package/DateTimePicker/styles.js +3 -1
- package/Drawer/components/DrawerContent/styles.js +3 -3
- package/EditableField/styles.js +5 -5
- package/FieldBox/styles.d.ts +1 -2
- package/FieldBox/styles.js +2 -2
- package/InputFile/styles.js +4 -4
- package/Modal/components/Modal/styles.js +4 -4
- package/Modal/components/ModalContent/styles.js +6 -6
- package/NumberPicker/styles.js +4 -4
- package/PageHeader/components/AutosizeInput/styles.js +3 -3
- package/PageHeader/components/PageHeaderError/styles.js +4 -4
- package/PageHeader/components/PageHeaderSkeleton/styles.js +4 -4
- package/Pagination/styles.js +3 -3
- package/ProgressBar/styles.js +6 -6
- package/SortButton/styles.js +3 -3
- package/StatisticCard/styles.js +3 -3
- package/Switch/styles.js +4 -4
- package/Tabs/components/TabBase/styles.js +4 -4
- package/package.json +1 -1
package/Banner/styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { rgba } from 'polished';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
3
|
+
import { ShapeRadius, FontWeight } from '@pushwoosh/kit-constants';
|
|
4
4
|
import { colors } from './colors';
|
|
5
5
|
export const BannerSpinner = styled.div.withConfig({
|
|
6
6
|
displayName: "BannerSpinner",
|
|
@@ -30,15 +30,15 @@ export const BannerContent = styled.div.withConfig({
|
|
|
30
30
|
componentId: "sc-9uu4ap-4"
|
|
31
31
|
})(["flex-grow:1;padding:", ";color:", ";"], ({
|
|
32
32
|
$hasChildren
|
|
33
|
-
}) => $hasChildren ?
|
|
33
|
+
}) => $hasChildren ? '16px' : '8px 16px', colors.error.shape.base.color);
|
|
34
34
|
export const IconContainer = styled.div.withConfig({
|
|
35
35
|
displayName: "IconContainer",
|
|
36
36
|
componentId: "sc-9uu4ap-5"
|
|
37
|
-
})(["display:flex;align-items:center;justify-content:center;padding:0
|
|
37
|
+
})(["display:flex;align-items:center;justify-content:center;padding:0 8px;border-radius:", " 0 0 ", ";"], ShapeRadius.SECTION, ShapeRadius.SECTION);
|
|
38
38
|
export const BannerShape = styled(BannerBox).withConfig({
|
|
39
39
|
displayName: "BannerShape",
|
|
40
40
|
componentId: "sc-9uu4ap-6"
|
|
41
|
-
})(["background:", ";", "{color:", ";background:", ";}", "{color:", ";background:", ";;border-radius:", ";&:hover{text-decoration:none;background:", ";border-radius:", ";}}", "{color:", ";> *{&:hover{text-decoration:none;background:", ";border-radius:
|
|
41
|
+
})(["background:", ";", "{color:", ";background:", ";}", "{color:", ";background:", ";;border-radius:", ";&:hover{text-decoration:none;background:", ";border-radius:", ";}}", "{color:", ";> *{&:hover{text-decoration:none;background:", ";border-radius:16px;}}}"], props => colors[props.$type].shape.base.bgColor, IconContainer, props => colors[props.$type].shape.iconArea.color, props => colors[props.$type].shape.iconArea.bgColor, ActionButton, props => colors[props.$type].shape.iconArea.bgColor, props => props.$isLoading ? colors[props.$type].shape.base.bgColor : 'initial', props => props.$isLoading ? ShapeRadius.CONTROL : 'initial', props => colors[props.$type].shape.hover.bgColor, ShapeRadius.CONTROL, CloseButton, props => colors[props.$type].shape.iconArea.bgColor, props => colors[props.$type].shape.hover.bgColor);
|
|
42
42
|
export const BannerGhost = styled(BannerBox).withConfig({
|
|
43
43
|
displayName: "BannerGhost",
|
|
44
44
|
componentId: "sc-9uu4ap-7"
|
package/Button/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontSize, LineHeight,
|
|
2
|
+
import { Color, FontSize, LineHeight, ShapeRadius, FontWeight, UnitSize } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { colors, createColors } from './colors';
|
|
4
4
|
export const ButtonIcon = styled.div.withConfig({
|
|
5
5
|
displayName: "ButtonIcon",
|
|
@@ -8,7 +8,7 @@ export const ButtonIcon = styled.div.withConfig({
|
|
|
8
8
|
export const ButtonContent = styled.div.withConfig({
|
|
9
9
|
displayName: "ButtonContent",
|
|
10
10
|
componentId: "sc-qltvdl-1"
|
|
11
|
-
})(["display:grid;justify-content:start;& > div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:first-child{justify-content:center;}&:first-child:last-child{padding-left:
|
|
11
|
+
})(["display:grid;justify-content:start;& > div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:first-child{justify-content:center;}&:first-child:last-child{padding-left:6px;padding-right:6px;}&:last-child:not(:first-child){padding-right:6px;}&:first-child:not(:last-child){padding-left:6px;}"]);
|
|
12
12
|
export const ButtonSpinner = styled.div.withConfig({
|
|
13
13
|
displayName: "ButtonSpinner",
|
|
14
14
|
componentId: "sc-qltvdl-2"
|
|
@@ -16,7 +16,7 @@ export const ButtonSpinner = styled.div.withConfig({
|
|
|
16
16
|
export const ButtonBox = styled.button.withConfig({
|
|
17
17
|
displayName: "ButtonBox",
|
|
18
18
|
componentId: "sc-qltvdl-3"
|
|
19
|
-
})(["position:relative;display:inline-grid;grid-template-columns:", ";gap:
|
|
19
|
+
})(["position:relative;display:inline-grid;align-items:center;grid-template-columns:", ";gap:4px;appearance:none !important;border:1px solid transparent;border-radius:", ";font-size:", ";line-height:", ";text-decoration:none;cursor:", ";user-select:none;&:hover{text-decoration:none;}&:focus{outline:none;}&:active{pointer-events:", ";}& ", "{opacity:", ";}"], props => `${props.$hasLeftIcon ? 'auto ' : ''}${props.$hasContent ? '1fr' : ''}${props.$hasRightIcon ? ' auto' : ''}`, ShapeRadius.CONTROL, FontSize.REGULAR, LineHeight.REGULAR, props => props.$isDisabled || props.$isLoading ? 'not-allowed!important' : 'pointer', props => props.$isDisabled || props.$isLoading ? 'none' : 'auto', /* sc-selector */ButtonContent, ({
|
|
20
20
|
$hideContent,
|
|
21
21
|
$isLoading
|
|
22
22
|
}) => {
|
|
@@ -34,27 +34,27 @@ export const ButtonBoxDangerGhostCompact = styled(ButtonBox).withConfig({
|
|
|
34
34
|
export const ButtonBoxDangerGhostField = styled(ButtonBox).withConfig({
|
|
35
35
|
displayName: "ButtonBoxDangerGhostField",
|
|
36
36
|
componentId: "sc-qltvdl-5"
|
|
37
|
-
})(["height:", ";padding:0 calc(
|
|
37
|
+
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */dangerGhostColors);
|
|
38
38
|
// danger shape --------------
|
|
39
39
|
const dangerShapeColors = createColors(colors.danger.shape);
|
|
40
40
|
export const ButtonBoxDangerShapeCompact = styled(ButtonBox).withConfig({
|
|
41
41
|
displayName: "ButtonBoxDangerShapeCompact",
|
|
42
42
|
componentId: "sc-qltvdl-6"
|
|
43
|
-
})(["height:28px;padding:0 calc(
|
|
43
|
+
})(["height:28px;padding:0 calc(6px - 1px);font-size:", ";font-weight:", ";text-transform:uppercase;", ";"], FontSize.SMALL, FontWeight.BOLD, /* sc-custom "display: none;" */dangerShapeColors);
|
|
44
44
|
export const ButtonBoxDangerShapeField = styled(ButtonBox).withConfig({
|
|
45
45
|
displayName: "ButtonBoxDangerShapeField",
|
|
46
46
|
componentId: "sc-qltvdl-7"
|
|
47
|
-
})(["height:", ";padding:0 calc(
|
|
47
|
+
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */dangerShapeColors);
|
|
48
48
|
// primary shape --------------
|
|
49
49
|
const primaryShapeColors = createColors(colors.primary.shape);
|
|
50
50
|
export const ButtonBoxPrimaryShapeCompact = styled(ButtonBox).withConfig({
|
|
51
51
|
displayName: "ButtonBoxPrimaryShapeCompact",
|
|
52
52
|
componentId: "sc-qltvdl-8"
|
|
53
|
-
})(["height:28px;padding:0 calc(
|
|
53
|
+
})(["height:28px;padding:0 calc(6px - 1px);font-size:", ";font-weight:", ";text-transform:uppercase;", ";"], FontSize.SMALL, FontWeight.BOLD, /* sc-custom "display: none;" */primaryShapeColors);
|
|
54
54
|
export const ButtonBoxPrimaryShapeField = styled(ButtonBox).withConfig({
|
|
55
55
|
displayName: "ButtonBoxPrimaryShapeField",
|
|
56
56
|
componentId: "sc-qltvdl-9"
|
|
57
|
-
})(["height:", ";padding:0 calc(
|
|
57
|
+
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */primaryShapeColors);
|
|
58
58
|
// primary ghost --------------
|
|
59
59
|
const primaryGhostColors = createColors(colors.primary.ghost);
|
|
60
60
|
export const ButtonBoxPrimaryGhostCompact = styled(ButtonBox).withConfig({
|
|
@@ -64,7 +64,7 @@ export const ButtonBoxPrimaryGhostCompact = styled(ButtonBox).withConfig({
|
|
|
64
64
|
export const ButtonBoxPrimaryGhostField = styled(ButtonBox).withConfig({
|
|
65
65
|
displayName: "ButtonBoxPrimaryGhostField",
|
|
66
66
|
componentId: "sc-qltvdl-11"
|
|
67
|
-
})(["height:", ";padding:0 calc(
|
|
67
|
+
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */primaryGhostColors);
|
|
68
68
|
// secondary ghost --------------
|
|
69
69
|
const secondaryGhostColors = createColors(colors.secondary.ghost);
|
|
70
70
|
export const ButtonBoxSecondaryGhostCompact = styled(ButtonBox).withConfig({
|
|
@@ -74,17 +74,17 @@ export const ButtonBoxSecondaryGhostCompact = styled(ButtonBox).withConfig({
|
|
|
74
74
|
export const ButtonBoxSecondaryGhostField = styled(ButtonBox).withConfig({
|
|
75
75
|
displayName: "ButtonBoxSecondaryGhostField",
|
|
76
76
|
componentId: "sc-qltvdl-13"
|
|
77
|
-
})(["height:", ";padding:0 calc(
|
|
77
|
+
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */secondaryGhostColors);
|
|
78
78
|
// secondary shape --------------
|
|
79
79
|
const secondaryShapeColors = createColors(colors.secondary.shape);
|
|
80
80
|
export const ButtonBoxSecondaryShapeCompact = styled(ButtonBox).withConfig({
|
|
81
81
|
displayName: "ButtonBoxSecondaryShapeCompact",
|
|
82
82
|
componentId: "sc-qltvdl-14"
|
|
83
|
-
})(["height:28px;padding:0 calc(
|
|
83
|
+
})(["height:28px;padding:0 calc(6px - 1px);font-size:", ";font-weight:", ";text-transform:uppercase;", ";"], FontSize.SMALL, FontWeight.MEDIUM, /* sc-custom "display: none;" */secondaryShapeColors);
|
|
84
84
|
export const ButtonBoxSecondaryShapeField = styled(ButtonBox).withConfig({
|
|
85
85
|
displayName: "ButtonBoxSecondaryShapeField",
|
|
86
86
|
componentId: "sc-qltvdl-15"
|
|
87
|
-
})(["height:", ";padding:0 calc(
|
|
87
|
+
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */secondaryShapeColors);
|
|
88
88
|
ButtonBox.displayName = 'ButtonBox';
|
|
89
89
|
ButtonIcon.displayName = 'ButtonIcon';
|
|
90
90
|
ButtonContent.displayName = 'ButtonContent';
|
package/CardMetric/styles.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, FontSize, FontWeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
export const CardContainer = styled.div.withConfig({
|
|
4
4
|
displayName: "CardContainer",
|
|
5
5
|
componentId: "sc-17snd37-0"
|
|
6
|
-
})(["display:flex;color:", ";background-color:white;flex-direction:column;scroll-margin:4px;outline-style:solid;gap:
|
|
6
|
+
})(["display:flex;color:", ";background-color:white;flex-direction:column;scroll-margin:4px;outline-style:solid;gap:12px;padding:", ";border-radius:", ";border-bottom:", ";outline-color:", ";outline-width:", ";"], Color.MAIN, ({
|
|
7
7
|
view
|
|
8
8
|
}) => view === 'stacking' ? '24px' : '16px', ({
|
|
9
9
|
view
|
|
@@ -27,19 +27,19 @@ export const CardContainer = styled.div.withConfig({
|
|
|
27
27
|
export const CardHeader = styled.div.withConfig({
|
|
28
28
|
displayName: "CardHeader",
|
|
29
29
|
componentId: "sc-17snd37-1"
|
|
30
|
-
})(["display:flex;justify-content:space-between;align-items:start;gap:
|
|
30
|
+
})(["display:flex;justify-content:space-between;align-items:start;gap:8px;"]);
|
|
31
31
|
export const CardHeaderLeft = styled.div.withConfig({
|
|
32
32
|
displayName: "CardHeaderLeft",
|
|
33
33
|
componentId: "sc-17snd37-2"
|
|
34
|
-
})(["display:flex;flex-direction:column;flex:1;gap:
|
|
34
|
+
})(["display:flex;flex-direction:column;flex:1;gap:8px;"]);
|
|
35
35
|
export const CardTitle = styled.div.withConfig({
|
|
36
36
|
displayName: "CardTitle",
|
|
37
37
|
componentId: "sc-17snd37-3"
|
|
38
|
-
})(["display:flex;align-items:center;text-transform:uppercase;font-size:", ";color:", ";cursor:", ";gap:
|
|
38
|
+
})(["display:flex;align-items:center;text-transform:uppercase;font-size:", ";color:", ";cursor:", ";gap:4px;"], FontSize.SMALL, ({
|
|
39
39
|
collapsable
|
|
40
40
|
}) => collapsable ? Color.SOFT : Color.MAIN, ({
|
|
41
41
|
collapsable
|
|
42
|
-
}) => collapsable ? 'pointer' : 'auto'
|
|
42
|
+
}) => collapsable ? 'pointer' : 'auto');
|
|
43
43
|
export const CardInfo = styled.div.withConfig({
|
|
44
44
|
displayName: "CardInfo",
|
|
45
45
|
componentId: "sc-17snd37-4"
|
|
@@ -49,7 +49,7 @@ export const CardInfo = styled.div.withConfig({
|
|
|
49
49
|
export const CardMetricValue = styled.div.withConfig({
|
|
50
50
|
displayName: "CardMetricValue",
|
|
51
51
|
componentId: "sc-17snd37-5"
|
|
52
|
-
})(["display:flex;align-items:start;justify-content:start;font-size:", ";font-weight:", ";gap:
|
|
52
|
+
})(["display:flex;align-items:start;justify-content:start;font-size:", ";font-weight:", ";gap:4px;"], FontSize.HEADING1, FontWeight.MEDIUM);
|
|
53
53
|
export const CardExtraMetric = styled.div.withConfig({
|
|
54
54
|
displayName: "CardExtraMetric",
|
|
55
55
|
componentId: "sc-17snd37-6"
|
|
@@ -11,6 +11,7 @@ export function DatePicker(props) {
|
|
|
11
11
|
userInputDay,
|
|
12
12
|
minDate,
|
|
13
13
|
maxDate,
|
|
14
|
+
isDisabled,
|
|
14
15
|
slotAfterMonth,
|
|
15
16
|
onChange
|
|
16
17
|
} = props;
|
|
@@ -22,7 +23,9 @@ export function DatePicker(props) {
|
|
|
22
23
|
setView('month');
|
|
23
24
|
}
|
|
24
25
|
}, [userInputDay]);
|
|
25
|
-
return React.createElement(CalendarBox,
|
|
26
|
+
return React.createElement(CalendarBox, {
|
|
27
|
+
"$disabled": isDisabled
|
|
28
|
+
}, view === 'month' && React.createElement(Vertical, {
|
|
26
29
|
"$gap": 16
|
|
27
30
|
}, React.createElement(MonthView, {
|
|
28
31
|
month: month,
|
|
@@ -193,4 +193,6 @@ export declare const SingleInputFrame: import("styled-components").StyledCompone
|
|
|
193
193
|
$hasHint: boolean;
|
|
194
194
|
$isDisabled?: boolean;
|
|
195
195
|
}, "$gridAutoFlow" | "$alignItems" | "$padding">;
|
|
196
|
-
export declare const CalendarBox: import("styled-components").StyledComponent<"div", any, {
|
|
196
|
+
export declare const CalendarBox: import("styled-components").StyledComponent<"div", any, {
|
|
197
|
+
$disabled?: boolean;
|
|
198
|
+
}, never>;
|
package/DateTimePicker/styles.js
CHANGED
|
@@ -61,4 +61,6 @@ export const SingleInputFrame = styled(InputFrame).withConfig({
|
|
|
61
61
|
export const CalendarBox = styled.div.withConfig({
|
|
62
62
|
displayName: "CalendarBox",
|
|
63
63
|
componentId: "sc-t3ruuk-7"
|
|
64
|
-
})(["width:282px;background-color:", ";padding:16px;border:1px solid ", ";border-radius:", ";box-shadow:", ";box-sizing:border-box;z-index:1;"], Color.CLEAR, Color.FORM, ShapeRadius.CONTROL, Shadow.REGULAR
|
|
64
|
+
})(["width:282px;background-color:", ";padding:16px;border:1px solid ", ";border-radius:", ";box-shadow:", ";box-sizing:border-box;pointer-events:", ";z-index:1;"], Color.CLEAR, Color.FORM, ShapeRadius.CONTROL, Shadow.REGULAR, ({
|
|
65
|
+
$disabled
|
|
66
|
+
}) => $disabled ? 'none' : 'auto');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, FontSize, FontWeight, LineHeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
export const DrawerHeader = styled.div.withConfig({
|
|
4
4
|
displayName: "DrawerHeader",
|
|
5
5
|
componentId: "sc-1jmui00-0"
|
|
6
|
-
})(["padding:
|
|
6
|
+
})(["padding:40px 40px 8px;background:", ";"], Color.CLEAR);
|
|
7
7
|
export const DrawerTitle = styled.h2.withConfig({
|
|
8
8
|
displayName: "DrawerTitle",
|
|
9
9
|
componentId: "sc-1jmui00-1"
|
|
@@ -11,4 +11,4 @@ export const DrawerTitle = styled.h2.withConfig({
|
|
|
11
11
|
export const DrawerBody = styled.div.withConfig({
|
|
12
12
|
displayName: "DrawerBody",
|
|
13
13
|
componentId: "sc-1jmui00-2"
|
|
14
|
-
})(["flex:1;padding:0
|
|
14
|
+
})(["flex:1;padding:0 40px 40px;background:", ";overflow-y:auto;"], Color.CLEAR);
|
package/EditableField/styles.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, ShapeRadius,
|
|
2
|
+
import { Color, ShapeRadius, FontSize, LineHeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { H5 } from '@pushwoosh/kit-typography';
|
|
4
4
|
export const FieldBox = styled.div.withConfig({
|
|
5
5
|
displayName: "FieldBox",
|
|
6
6
|
componentId: "sc-qxboek-0"
|
|
7
|
-
})(["display:flex;align-items:center;font-size:", ";line-height:", ";padding:
|
|
7
|
+
})(["display:flex;align-items:center;font-size:", ";line-height:", ";padding:2px 6px 2px 8px;border-radius:", ";color:", ";background:", ";box-sizing:border-box;cursor:pointer;gap:6px;svg{opacity:0.2;}&:active{opacity:0.5;}&:hover{color:", ";background:", ";svg{opacity:1;}}"], FontSize.REGULAR, LineHeight.REGULAR, ShapeRadius.CONTROL, ({
|
|
8
8
|
open
|
|
9
9
|
}) => open ? Color.CLEAR : Color.MAIN, ({
|
|
10
10
|
open
|
|
@@ -16,10 +16,10 @@ export const FieldBox = styled.div.withConfig({
|
|
|
16
16
|
export const TitleBox = styled(H5).withConfig({
|
|
17
17
|
displayName: "TitleBox",
|
|
18
18
|
componentId: "sc-qxboek-1"
|
|
19
|
-
})(["color:", ";margin-bottom:
|
|
19
|
+
})(["color:", ";margin-bottom:4px;"], Color.MAIN);
|
|
20
20
|
export const ButtonsGroup = styled.div.withConfig({
|
|
21
21
|
displayName: "ButtonsGroup",
|
|
22
22
|
componentId: "sc-qxboek-2"
|
|
23
|
-
})(["display:flex;margin-top:
|
|
23
|
+
})(["display:flex;margin-top:16px;opacity:", ";gap:8px;"], ({
|
|
24
24
|
$isLoading
|
|
25
|
-
}) => $isLoading ? '0.5' : '1'
|
|
25
|
+
}) => $isLoading ? '0.5' : '1');
|
package/FieldBox/styles.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Spacing } from '@pushwoosh/kit-constants';
|
|
2
1
|
import { Link as LinkBase } from '../Link';
|
|
3
2
|
export declare const TitleBox: import("styled-components").StyledComponent<"div", any, {
|
|
4
3
|
$alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
@@ -58,6 +57,6 @@ export declare const TitleBox: import("styled-components").StyledComponent<"div"
|
|
|
58
57
|
} & {
|
|
59
58
|
$alignItems: string;
|
|
60
59
|
$justifyContent: string;
|
|
61
|
-
$gap:
|
|
60
|
+
$gap: number;
|
|
62
61
|
}, "$gridAutoFlow" | "$alignItems" | "$gap" | "$justifyContent">;
|
|
63
62
|
export declare const Link: import("styled-components").StyledComponent<typeof LinkBase, any, {}, never>;
|
package/FieldBox/styles.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color
|
|
2
|
+
import { Color } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { Horizontal } from '@pushwoosh/kit-helpers';
|
|
4
4
|
import { Link as LinkBase } from '../Link';
|
|
5
5
|
export const TitleBox = styled(Horizontal).attrs({
|
|
6
6
|
$alignItems: 'center',
|
|
7
7
|
$justifyContent: 'start',
|
|
8
|
-
$gap:
|
|
8
|
+
$gap: 4
|
|
9
9
|
}).withConfig({
|
|
10
10
|
displayName: "TitleBox",
|
|
11
11
|
componentId: "sc-lzrphm-0"
|
package/InputFile/styles.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, FontSize, FontFamily, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
3
|
export const InputFileFieldsStyled = styled.div.withConfig({
|
|
4
4
|
displayName: "InputFileFieldsStyled",
|
|
5
5
|
componentId: "sc-8mwin7-0"
|
|
6
|
-
})(["display:flex;position:relative;gap:
|
|
6
|
+
})(["display:flex;position:relative;gap:16px;"]);
|
|
7
7
|
export const InputFileButtonStyled = styled.div.withConfig({
|
|
8
8
|
displayName: "InputFileButtonStyled",
|
|
9
9
|
componentId: "sc-8mwin7-1"
|
|
@@ -11,7 +11,7 @@ export const InputFileButtonStyled = styled.div.withConfig({
|
|
|
11
11
|
export const InputFileInputStyled = styled.input.withConfig({
|
|
12
12
|
displayName: "InputFileInputStyled",
|
|
13
13
|
componentId: "sc-8mwin7-2"
|
|
14
|
-
})(["width:100%;height:36px;padding:0
|
|
14
|
+
})(["width:100%;height:36px;padding:0 16px;color:#555;font-size:", ";font-family:", ";line-height:1.4;background:", ";border:1px solid ", ";border-radius:4px;box-sizing:border-box;outline:none;caret-color:", ";&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{appearance:none;}&:focus{border-color:", ";}"], FontSize.HEADING4, FontFamily.MAIN, Color.CLEAR, ({
|
|
15
15
|
color
|
|
16
16
|
}) => color, Color.BRIGHT, Color.BRIGHT);
|
|
17
17
|
export const InputFileInputHiddenStyled = styled(InputFileInputStyled).withConfig({
|
|
@@ -21,7 +21,7 @@ export const InputFileInputHiddenStyled = styled(InputFileInputStyled).withConfi
|
|
|
21
21
|
export const InputFileErrorStyled = styled.div.withConfig({
|
|
22
22
|
displayName: "InputFileErrorStyled",
|
|
23
23
|
componentId: "sc-8mwin7-4"
|
|
24
|
-
})(["margin:
|
|
24
|
+
})(["margin:16px 0;padding:12px 20px;border:1px solid ", ";border-radius:", ";color:", ";background:", ";"], Color.DANGER, ShapeRadius.DIALOG, Color.DANGER, Color.DANGER_LIGHT);
|
|
25
25
|
InputFileFieldsStyled.displayName = 'InputFileFieldsStyled';
|
|
26
26
|
InputFileButtonStyled.displayName = 'InputFileButtonStyled';
|
|
27
27
|
InputFileInputStyled.displayName = 'InputFileInputStyled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CSSTransition } from 'react-transition-group';
|
|
3
3
|
import styled, { createGlobalStyle } from 'styled-components';
|
|
4
|
-
import { ShapeRadius
|
|
4
|
+
import { ShapeRadius } from '@pushwoosh/kit-constants';
|
|
5
5
|
const animationTimeout = 300;
|
|
6
6
|
export const LockBody = createGlobalStyle(["body{overflow:hidden;position:relative;height:100%;}"]);
|
|
7
7
|
export const ModalBox = styled.div.withConfig({
|
|
@@ -13,7 +13,7 @@ export const ModalBox = styled.div.withConfig({
|
|
|
13
13
|
export const ModalInner = styled.div.withConfig({
|
|
14
14
|
displayName: "ModalInner",
|
|
15
15
|
componentId: "sc-lejcgu-1"
|
|
16
|
-
})(["display:flex;justify-content:center;width:100vw;height:100vh;padding:
|
|
16
|
+
})(["display:flex;justify-content:center;width:100vw;height:100vh;padding:56px 0;"]);
|
|
17
17
|
function ModalBoxBase(props) {
|
|
18
18
|
const {
|
|
19
19
|
isOpen,
|
|
@@ -37,9 +37,9 @@ export const ModalBoxTrans = styled(ModalBoxBase).withConfig({
|
|
|
37
37
|
export const ModalContainer = styled.div.withConfig({
|
|
38
38
|
displayName: "ModalContainer",
|
|
39
39
|
componentId: "sc-lejcgu-3"
|
|
40
|
-
})(["display:inline-flex;flex-direction:column;align-items:stretch;justify-content:flex-start;position:relative;width:", ";height:calc(100vh - 2 *
|
|
40
|
+
})(["display:inline-flex;flex-direction:column;align-items:stretch;justify-content:flex-start;position:relative;width:", ";height:calc(100vh - 2 * 56px);vertical-align:middle;z-index:10;& > *{&:first-child{border-top-left-radius:", ";border-top-right-radius:", ";}&:last-child{border-bottom-left-radius:", ";border-bottom-right-radius:", ";}}"], ({
|
|
41
41
|
$width
|
|
42
|
-
}) => $width,
|
|
42
|
+
}) => $width, ShapeRadius.DIALOG, ShapeRadius.DIALOG, ShapeRadius.DIALOG, ShapeRadius.DIALOG);
|
|
43
43
|
ModalBox.displayName = 'ModalBox';
|
|
44
44
|
ModalInner.displayName = 'ModalInner';
|
|
45
45
|
ModalContainer.displayName = 'ModalContainer';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color
|
|
2
|
+
import { Color } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { Vertical } from '@pushwoosh/kit-helpers';
|
|
4
4
|
export const ModalHeader = styled.div.withConfig({
|
|
5
5
|
displayName: "ModalHeader",
|
|
6
6
|
componentId: "sc-1b5r517-0"
|
|
7
|
-
})(["padding:
|
|
7
|
+
})(["padding:24px 24px 8px;background-color:", ";"], Color.CLEAR);
|
|
8
8
|
ModalHeader.displayName = 'ModalHeader';
|
|
9
9
|
export const ModalBodyGroup = styled(Vertical).withConfig({
|
|
10
10
|
displayName: "ModalBodyGroup",
|
|
@@ -14,16 +14,16 @@ ModalBodyGroup.displayName = 'ModalBodyGroup';
|
|
|
14
14
|
export const ModalBodyItem = styled.div.withConfig({
|
|
15
15
|
displayName: "ModalBodyItem",
|
|
16
16
|
componentId: "sc-1b5r517-2"
|
|
17
|
-
})(["padding:", "
|
|
17
|
+
})(["padding:", " 24px;background-color:", ";"], ({
|
|
18
18
|
$vPadding
|
|
19
|
-
}) => $vPadding ?
|
|
19
|
+
}) => $vPadding ? '24px' : 0, Color.CLEAR);
|
|
20
20
|
export const ModalBody = styled.div.withConfig({
|
|
21
21
|
displayName: "ModalBody",
|
|
22
22
|
componentId: "sc-1b5r517-3"
|
|
23
|
-
})(["background-color:", ";overflow-y:auto;&:not(:has(> ", ")){padding:
|
|
23
|
+
})(["background-color:", ";overflow-y:auto;&:not(:has(> ", ")){padding:24px;&:not(:first-child){padding-top:0;}}"], Color.CLEAR, ModalBodyGroup);
|
|
24
24
|
ModalBody.displayName = 'ModalBody';
|
|
25
25
|
export const ModalFooter = styled.div.withConfig({
|
|
26
26
|
displayName: "ModalFooter",
|
|
27
27
|
componentId: "sc-1b5r517-4"
|
|
28
|
-
})(["padding:
|
|
28
|
+
})(["padding:24px;background-color:", ";border-top:1px solid ", ";"], Color.CLEAR, Color.DIVIDER);
|
|
29
29
|
ModalFooter.displayName = 'ModalFooter';
|
package/NumberPicker/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, ShapeRadius,
|
|
2
|
+
import { Color, ShapeRadius, UnitSize } from '@pushwoosh/kit-constants';
|
|
3
3
|
export const InputStyled = styled.input.attrs({
|
|
4
4
|
type: 'text'
|
|
5
5
|
}).withConfig({
|
|
@@ -9,13 +9,13 @@ export const InputStyled = styled.input.attrs({
|
|
|
9
9
|
export const Hint = styled.div.withConfig({
|
|
10
10
|
displayName: "Hint",
|
|
11
11
|
componentId: "sc-vq8xnz-1"
|
|
12
|
-
})(["display:flex;align-items:center;font-size:100%;line-height:initial;padding-right:
|
|
12
|
+
})(["display:flex;align-items:center;font-size:100%;line-height:initial;padding-right:8px;color:", ";pointer-events:none;"], Color.PHANTOM);
|
|
13
13
|
export const SingleInputFrame = styled.div.withConfig({
|
|
14
14
|
displayName: "SingleInputFrame",
|
|
15
15
|
componentId: "sc-vq8xnz-2"
|
|
16
|
-
})(["display:inline-grid;grid-template-columns:", ";box-sizing:border-box;align-items:center;height:", ";position:relative;padding-left:
|
|
16
|
+
})(["display:inline-grid;grid-template-columns:", ";box-sizing:border-box;align-items:center;height:", ";position:relative;padding-left:12px;color:", ";border:1px solid ", ";border-radius:", ";background-color:", ";cursor:pointer;pointer-events:", ";&:focus-within{border-color:", ";}& > input{color:", ";height:34px;border:none;padding:0;outline:none;line-height:140%;}& > div:last-of-type{height:34px;padding-left:1px;background-color:", ";border-radius:0 ", " ", " 0;& > div{display:flex;justify-content:center;align-items:center;color:", ";background-color:", ";cursor:pointer;&:hover > *{transform:scale(1.3);}&:first-of-type{border-top-right-radius:", ";}&:last-of-type{border-bottom-right-radius:", ";}}}"], ({
|
|
17
17
|
$hasHint
|
|
18
|
-
}) => $hasHint ? '1fr max-content 21px' : '1fr 21px', UnitSize.FIELD_HEIGHT,
|
|
18
|
+
}) => $hasHint ? '1fr max-content 21px' : '1fr 21px', UnitSize.FIELD_HEIGHT, ({
|
|
19
19
|
$empty
|
|
20
20
|
}) => $empty ? Color.BRIGHT : Color.MAIN, ({
|
|
21
21
|
$error
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, FontSize, FontWeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
export const PromptBox = styled.div.withConfig({
|
|
4
4
|
displayName: "PromptBox",
|
|
5
5
|
componentId: "sc-191i2ot-0"
|
|
@@ -11,9 +11,9 @@ 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:#0e72e5;width:", "px;max-width:100%;border:0;padding:0;margin:3px
|
|
14
|
+
})(["color:#0e72e5;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;}"], ({
|
|
15
15
|
width
|
|
16
|
-
}) => width - 10,
|
|
16
|
+
}) => width - 10, Color.PHANTOM, Color.PHANTOM, Color.PHANTOM, Color.PRIMARY_HOVER);
|
|
17
17
|
export const RootBox = styled.div.withConfig({
|
|
18
18
|
displayName: "RootBox",
|
|
19
19
|
componentId: "sc-191i2ot-3"
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, FontSize, FontWeight, LineHeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { H4 } from '@pushwoosh/kit-typography';
|
|
4
4
|
import { Button } from '../../../Button';
|
|
5
5
|
export const RootBox = styled.div.withConfig({
|
|
6
6
|
displayName: "RootBox",
|
|
7
7
|
componentId: "sc-1lsctcc-0"
|
|
8
|
-
})(["display:flex;align-items:center;padding-right:
|
|
8
|
+
})(["display:flex;align-items:center;padding-right:8px;margin-top:16px;background:", ";"], Color.DANGER_LIGHT);
|
|
9
9
|
export const ErrorIconBox = styled.div.withConfig({
|
|
10
10
|
displayName: "ErrorIconBox",
|
|
11
11
|
componentId: "sc-1lsctcc-1"
|
|
12
|
-
})(["display:flex;align-items:center;justify-content:center;width:32px;height:36px;padding:
|
|
12
|
+
})(["display:flex;align-items:center;justify-content:center;width:32px;height:36px;padding:8px;border-radius:4px 0 0 4px;background:", ";"], Color.DANGER);
|
|
13
13
|
export const ErrorText = styled(H4).withConfig({
|
|
14
14
|
displayName: "ErrorText",
|
|
15
15
|
componentId: "sc-1lsctcc-2"
|
|
16
|
-
})(["padding:
|
|
16
|
+
})(["padding:8px 12px;"]);
|
|
17
17
|
export const ResolveError = styled(Button).withConfig({
|
|
18
18
|
displayName: "ResolveError",
|
|
19
19
|
componentId: "sc-1lsctcc-3"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { keyframes } from 'styled-components';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
3
|
const animation = keyframes(["0%{opacity:0.2;}50%{opacity:0.1;}100%{opacity:0.2;}"]);
|
|
4
4
|
export const RootBox = styled.div.withConfig({
|
|
5
5
|
displayName: "RootBox",
|
|
@@ -8,8 +8,8 @@ export const RootBox = styled.div.withConfig({
|
|
|
8
8
|
export const SkeletonStyled = styled.div.withConfig({
|
|
9
9
|
displayName: "SkeletonStyled",
|
|
10
10
|
componentId: "sc-1idyyj7-1"
|
|
11
|
-
})(["width:", ";height:", ";padding:
|
|
11
|
+
})(["width:", ";height:", ";padding:4px 0;background:", ";border-radius:", ";animation:", " 1s ease-in-out infinite;opacity:0.1;"], ({
|
|
12
12
|
width
|
|
13
|
-
}) => width ? `${width}px` :
|
|
13
|
+
}) => width ? `${width}px` : '24px', ({
|
|
14
14
|
height
|
|
15
|
-
}) => height ? `${height}px` :
|
|
15
|
+
}) => height ? `${height}px` : '24px', Color.SOFT, ShapeRadius.CONTROL, animation);
|
package/Pagination/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontSize, FontWeight, ShapeRadius,
|
|
2
|
+
import { Color, FontSize, FontWeight, ShapeRadius, UnitSize } from '@pushwoosh/kit-constants';
|
|
3
3
|
const PaginationControl = styled.button.withConfig({
|
|
4
4
|
displayName: "PaginationControl",
|
|
5
5
|
componentId: "sc-o79vko-0"
|
|
@@ -15,7 +15,7 @@ export const PaginationBox = styled.div.withConfig({
|
|
|
15
15
|
export const PaginationArrow = styled(PaginationControl).withConfig({
|
|
16
16
|
displayName: "PaginationArrow",
|
|
17
17
|
componentId: "sc-o79vko-2"
|
|
18
|
-
})(["padding:0
|
|
18
|
+
})(["padding:0 6px;&:first-child{border-radius:", " 0 0 ", ";}&:last-child{border-right:1px solid ", ";border-radius:0 ", " ", " 0;}"], ShapeRadius.CONTROL, ShapeRadius.CONTROL, Color.DIVIDER, ShapeRadius.CONTROL, ShapeRadius.CONTROL);
|
|
19
19
|
export const PaginationDivider = styled.div.withConfig({
|
|
20
20
|
displayName: "PaginationDivider",
|
|
21
21
|
componentId: "sc-o79vko-3"
|
|
@@ -23,7 +23,7 @@ export const PaginationDivider = styled.div.withConfig({
|
|
|
23
23
|
export const PaginationButton = styled(PaginationControl).withConfig({
|
|
24
24
|
displayName: "PaginationButton",
|
|
25
25
|
componentId: "sc-o79vko-4"
|
|
26
|
-
})(["padding:0
|
|
26
|
+
})(["padding:0 12px;&:disabled{background-color:", ";color:", ";}"], ({
|
|
27
27
|
$isActive
|
|
28
28
|
}) => $isActive ? Color.MAIN : Color.CLEAR, ({
|
|
29
29
|
$isActive
|
package/ProgressBar/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontSize, ShapeRadius
|
|
2
|
+
import { Color, FontSize, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { H5 } from '@pushwoosh/kit-typography';
|
|
4
4
|
export const ProgressLine = styled.div.withConfig({
|
|
5
5
|
displayName: "ProgressLine",
|
|
@@ -8,7 +8,7 @@ export const ProgressLine = styled.div.withConfig({
|
|
|
8
8
|
export const ProgressLineContainer = styled.div.withConfig({
|
|
9
9
|
displayName: "ProgressLineContainer",
|
|
10
10
|
componentId: "sc-jfhkho-1"
|
|
11
|
-
})(["padding:
|
|
11
|
+
})(["padding:4px 0;"]);
|
|
12
12
|
export const ProgressBarActive = styled(ProgressLine).withConfig({
|
|
13
13
|
displayName: "ProgressBarActive",
|
|
14
14
|
componentId: "sc-jfhkho-2"
|
|
@@ -20,13 +20,13 @@ export const ProgressBarActive = styled(ProgressLine).withConfig({
|
|
|
20
20
|
export const Container = styled.div.withConfig({
|
|
21
21
|
displayName: "Container",
|
|
22
22
|
componentId: "sc-jfhkho-3"
|
|
23
|
-
})(["display:flex;align-items:center;width:100%;gap:
|
|
23
|
+
})(["display:flex;align-items:center;width:100%;gap:12px;"]);
|
|
24
24
|
export const SpinnerContainer = styled.div.withConfig({
|
|
25
25
|
displayName: "SpinnerContainer",
|
|
26
26
|
componentId: "sc-jfhkho-4"
|
|
27
|
-
})(["background-color:", ";border-radius:", ";padding:
|
|
27
|
+
})(["background-color:", ";border-radius:", ";padding:4px;"], ({
|
|
28
28
|
$backgroundColor
|
|
29
|
-
}) => $backgroundColor, ShapeRadius.CONTROL
|
|
29
|
+
}) => $backgroundColor, ShapeRadius.CONTROL);
|
|
30
30
|
export const ProgressBoxContainer = styled.div.withConfig({
|
|
31
31
|
displayName: "ProgressBoxContainer",
|
|
32
32
|
componentId: "sc-jfhkho-5"
|
|
@@ -34,7 +34,7 @@ export const ProgressBoxContainer = styled.div.withConfig({
|
|
|
34
34
|
export const LoadingHeader = styled.div.withConfig({
|
|
35
35
|
displayName: "LoadingHeader",
|
|
36
36
|
componentId: "sc-jfhkho-6"
|
|
37
|
-
})(["display:flex;
|
|
37
|
+
})(["display:flex;align-items:center;justify-content:space-between;gap:6px;"]);
|
|
38
38
|
export const LoadingText = styled(H5).withConfig({
|
|
39
39
|
displayName: "LoadingText",
|
|
40
40
|
componentId: "sc-jfhkho-7"
|
package/SortButton/styles.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontSize, FontWeight, LineHeight
|
|
2
|
+
import { Color, FontSize, FontWeight, LineHeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
export const SortButtonBox = styled.button.withConfig({
|
|
4
4
|
displayName: "SortButtonBox",
|
|
5
5
|
componentId: "sc-dasl5x-0"
|
|
6
|
-
})(["display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:0;color:", ";border:none;background-color:transparent;font-size:", ";font-weight:", ";line-height:", ";text-transform:uppercase;&:hover{color:", ";}&:active{color:", ";}& span{margin:0
|
|
6
|
+
})(["display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:0;color:", ";border:none;background-color:transparent;font-size:", ";font-weight:", ";line-height:", ";text-transform:uppercase;&:hover{color:", ";}&:active{color:", ";}& span{margin:0 4px 0 0;}"], ({
|
|
7
7
|
$isActive
|
|
8
|
-
}) => $isActive ? Color.MAIN : Color.LOCKED, FontSize.HEADING5, FontWeight.MEDIUM, LineHeight.HEADING5, Color.PRIMARY_HOVER, Color.PRIMARY_PRESSED
|
|
8
|
+
}) => $isActive ? Color.MAIN : Color.LOCKED, FontSize.HEADING5, FontWeight.MEDIUM, LineHeight.HEADING5, Color.PRIMARY_HOVER, Color.PRIMARY_PRESSED);
|
|
9
9
|
SortButtonBox.displayName = 'SortButtonBox';
|
package/StatisticCard/styles.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontWeight, ShapeRadius
|
|
2
|
+
import { Color, FontWeight, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { H2, H5 } from '@pushwoosh/kit-typography';
|
|
4
4
|
export const Container = styled.div.withConfig({
|
|
5
5
|
displayName: "Container",
|
|
6
6
|
componentId: "sc-12f82mq-0"
|
|
7
|
-
})(["position:relative;display:flex;flex-direction:column;align-items:flex-start;border-radius:", ";width:", ";background:", ";padding:
|
|
7
|
+
})(["position:relative;display:flex;flex-direction:column;align-items:flex-start;border-radius:", ";width:", ";background:", ";padding:16px;border:", ";cursor:", ";"], ShapeRadius.SECTION, ({
|
|
8
8
|
$width
|
|
9
9
|
}) => $width || 'fit-content', ({
|
|
10
10
|
$selectable
|
|
11
|
-
}) => $selectable ? Color.CLEAR : Color.SOFT_LIGHT,
|
|
11
|
+
}) => $selectable ? Color.CLEAR : Color.SOFT_LIGHT, ({
|
|
12
12
|
$active,
|
|
13
13
|
$selectable
|
|
14
14
|
}) => {
|
package/Switch/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { Color, FontSize, FontWeight } from '@pushwoosh/kit-constants';
|
|
3
3
|
const defineColorBackgroundBox = css(["", ""], props => {
|
|
4
4
|
if (props.isDisabled && !props.enabled) {
|
|
5
5
|
return Color.CLEAR;
|
|
@@ -53,10 +53,10 @@ export const Box = styled.div.attrs({
|
|
|
53
53
|
export const Circle = styled.div.withConfig({
|
|
54
54
|
displayName: "Circle",
|
|
55
55
|
componentId: "sc-csdrg2-2"
|
|
56
|
-
})(["margin:0
|
|
56
|
+
})(["margin:0 2px;width:12px;height:12px;background:", ";border-radius:50%;"], defineColorCircle);
|
|
57
57
|
export const Label = styled.div.withConfig({
|
|
58
58
|
displayName: "Label",
|
|
59
59
|
componentId: "sc-csdrg2-3"
|
|
60
|
-
})(["display:flex;align-items:center;
|
|
60
|
+
})(["display:flex;align-items:center;color:", ";font-size:", ";font-weight:", ";margin:", ";"], Color.MAIN, FontSize.REGULAR, FontWeight.MEDIUM, ({
|
|
61
61
|
labelPosition
|
|
62
|
-
}) => labelPosition === 'left' ?
|
|
62
|
+
}) => labelPosition === 'left' ? '0 8px 0' : '0 0 0 8px');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { Color, Shadow, ShapeRadius
|
|
2
|
+
import { Color, Shadow, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { H4 } from '@pushwoosh/kit-typography';
|
|
4
4
|
const tabBodyHover = css(["&:hover{color:", ";background-color:", ";}"], Color.PRIMARY_HOVER, Color.BRIGHT_LIGHT);
|
|
5
5
|
export const TabBody = styled.div.withConfig({
|
|
6
6
|
displayName: "TabBody",
|
|
7
7
|
componentId: "sc-133yrgu-0"
|
|
8
|
-
})(["display:flex;justify-content:center;align-items:center;position:relative;padding:
|
|
8
|
+
})(["display:flex;justify-content:center;align-items:center;position:relative;padding:6px ", " 6px 16px;background-color:", ";border-radius:", ";box-shadow:", ";cursor:", ";user-select:none;white-space:nowrap;color:", ";", ""], ({
|
|
9
9
|
$hasIcon
|
|
10
|
-
}) => $hasIcon ?
|
|
10
|
+
}) => $hasIcon ? '12px' : '16px', ({
|
|
11
11
|
$isActive
|
|
12
12
|
}) => $isActive ? Color.CLEAR : 'transparent', ShapeRadius.CONTROL, ({
|
|
13
13
|
$isActive
|
|
@@ -38,4 +38,4 @@ export const TabButtonLabel = styled(H4).withConfig({
|
|
|
38
38
|
export const TabIconBox = styled.div.withConfig({
|
|
39
39
|
displayName: "TabIconBox",
|
|
40
40
|
componentId: "sc-133yrgu-3"
|
|
41
|
-
})(["margin-left:
|
|
41
|
+
})(["margin-left:4px;"]);
|