colibri-ui 0.7.5 → 0.7.7
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/index.js +1 -1
- package/Button/index.props.d.ts +2 -2
- package/Button/index.props.js +1 -1
- package/Button/styles.js +11 -12
- package/Checkbox/index.d.ts +4 -0
- package/Checkbox/index.props.d.ts +34 -0
- package/Checkbox/package.json +6 -0
- package/Checkbox/styles.d.ts +24 -0
- package/README.md +4 -0
- package/Switch/styles.js +6 -6
- package/Theme/color.d.ts +105 -47
- package/Theme/color.js +73 -49
- package/Theme/index.d.ts +91 -19
- package/Theme/index.props.d.ts +4 -0
- package/Theme/themes/buenos_aires.d.ts +47 -18
- package/Theme/themes/buenos_aires.js +76 -54
- package/Theme/themes/default.d.ts +47 -18
- package/Theme/themes/default.js +72 -50
- package/Typography/index.js +3 -5
- package/Typography/index.props.d.ts +1 -7
- package/Typography/styles.js +19 -16
- package/esm/Button/index.js +1 -1
- package/esm/Button/index.props.d.ts +2 -2
- package/esm/Button/index.props.js +1 -1
- package/esm/Button/styles.js +11 -12
- package/esm/Checkbox/index.d.ts +4 -0
- package/esm/Checkbox/index.props.d.ts +34 -0
- package/esm/Checkbox/styles.d.ts +24 -0
- package/esm/Switch/styles.js +6 -6
- package/esm/Theme/color.d.ts +105 -47
- package/esm/Theme/color.js +64 -50
- package/esm/Theme/index.d.ts +91 -19
- package/esm/Theme/index.props.d.ts +4 -0
- package/esm/Theme/themes/buenos_aires.d.ts +47 -18
- package/esm/Theme/themes/buenos_aires.js +76 -55
- package/esm/Theme/themes/default.d.ts +47 -18
- package/esm/Theme/themes/default.js +72 -51
- package/esm/Typography/index.js +3 -5
- package/esm/Typography/index.props.d.ts +1 -7
- package/esm/Typography/styles.js +19 -16
- package/package.json +5 -2
- package/Typography/index.props.js +0 -10
- package/esm/Typography/index.props.js +0 -10
package/Theme/color.js
CHANGED
|
@@ -2,57 +2,81 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
|
|
7
|
+
var Primary = {
|
|
8
|
+
PRIMARY_1: "#E8F0FE",
|
|
9
|
+
PRIMARY_2: "#B8D2FF",
|
|
10
|
+
PRIMARY_3: "#73ABF8",
|
|
11
|
+
PRIMARY_4: "#067AFF",
|
|
12
|
+
PRIMARY_5: "#0066DC"
|
|
13
|
+
};
|
|
14
|
+
var Secondary = {
|
|
15
|
+
SECONDARY_1: "#fff1db",
|
|
16
|
+
SECONDARY_2: "#ffdaa3",
|
|
17
|
+
SECONDARY_3: "#ffca79",
|
|
18
|
+
SECONDARY_4: "#f4b968",
|
|
19
|
+
SECONDARY_5: "#ffab0f"
|
|
20
|
+
};
|
|
21
|
+
var Tretiary = {
|
|
22
|
+
TRETIARY_1: "#FFF5F0",
|
|
23
|
+
TRETIARY_2: "#FFEAE2",
|
|
24
|
+
TRETIARY_3: "#FFD8CA",
|
|
25
|
+
TRETIARY_4: "#FFA384 ",
|
|
26
|
+
TRETIARY_5: "#fc5200"
|
|
27
|
+
};
|
|
28
|
+
var PrimaryBA = {
|
|
29
|
+
PRIMARY_BA_1: "rgba(38, 49, 129, .07)",
|
|
30
|
+
PRIMARY_BA_2: "rgba(38, 49, 129, .3)",
|
|
31
|
+
PRIMARY_BA_3: "rgba(38, 49, 129, .4)",
|
|
32
|
+
PRIMARY_BA_4: "rgba(38, 49, 129, .6)",
|
|
33
|
+
PRIMARY_BA_5: "rgba(38, 49, 129, .8)"
|
|
34
|
+
};
|
|
35
|
+
var SecondaryBA = {
|
|
36
|
+
SECONDARY_BA_1: "#d9d9d9",
|
|
37
|
+
SECONDARY_BA_2: "#bbb",
|
|
38
|
+
SECONDARY_BA_3: "#636363",
|
|
39
|
+
SECONDARY_BA_4: "#313131",
|
|
40
|
+
SECONDARY_BA_5: "#1a1a1a"
|
|
41
|
+
};
|
|
42
|
+
var TretiaryBA = {
|
|
43
|
+
TRETIARY_BA_1: "#EDF1F5",
|
|
44
|
+
TRETIARY_BA_2: "#d3dbe3",
|
|
45
|
+
TRETIARY_BA_3: "#c5cfda",
|
|
46
|
+
TRETIARY_BA_4: "#b1bcc8",
|
|
47
|
+
TRETIARY_BA_5: "#87929d"
|
|
48
|
+
};
|
|
49
|
+
var TextBA = {
|
|
50
|
+
TEXT_BA_PRIMARY: "#000",
|
|
51
|
+
TEXT_BA_SECONDARY: "#fffbe9",
|
|
52
|
+
TEXT_BA_TRETIARY: "#D5D500"
|
|
53
|
+
};
|
|
54
|
+
var Common = {
|
|
6
55
|
WHITE: "#fff",
|
|
7
|
-
BLACK: "#000"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
BLUE_12: "#093266",
|
|
20
|
-
GRAPHITE_1: "#FCFDFE",
|
|
21
|
-
GRAPHITE_2: "#F8FAFB",
|
|
22
|
-
GRAPHITE_3: "#EDF0F4",
|
|
23
|
-
GRAPHITE_4: "#E4E8ED",
|
|
24
|
-
GRAPHITE_5: "#DBE1E6",
|
|
25
|
-
GRAPHITE_6: "#D1D8DF",
|
|
26
|
-
GRAPHITE_7: "#C4CDD6",
|
|
27
|
-
GRAPHITE_8: "#AFB9C3",
|
|
28
|
-
GRAPHITE_9: "#24292E",
|
|
29
|
-
GRAPHITE_10: "#383D42",
|
|
30
|
-
GRAPHITE_11: "#5E666F",
|
|
31
|
-
GRAPHITE_12: "#22272B",
|
|
32
|
-
GRAY_1: "#FCFCFD",
|
|
33
|
-
GRAY_2: "#F9F9FB",
|
|
34
|
-
GRAY_3: "#EFF0F3",
|
|
35
|
-
GRAY_4: "#E7E8EC",
|
|
36
|
-
GRAY_5: "#E0E1E6",
|
|
37
|
-
GRAY_6: "#D8D9E0",
|
|
38
|
-
GRAY_7: "#CDCED7",
|
|
39
|
-
GRAY_8: "#B9BBC6",
|
|
40
|
-
GRAY_9: "#8B8D98",
|
|
41
|
-
GRAY_10: "#80828D",
|
|
42
|
-
GRAY_11: "#62636C",
|
|
43
|
-
GRAY_12: "#1E1F24",
|
|
44
|
-
PURPLE_1: "rgba(38, 49, 129, .07)",
|
|
45
|
-
PURPLE_2: "rgba(38, 49, 129, .15)",
|
|
46
|
-
PURPLE_3: "rgba(38, 49, 129, .3)",
|
|
47
|
-
NEUTRAL_1: "rgba(22,51,0,.05)",
|
|
48
|
-
NEUTRAL_2: "rgba(22,51,0,.078)",
|
|
49
|
-
NEUTRAL_3: "rgba(22,51,0,.129)",
|
|
50
|
-
TYPOGRAPHY_PRIMARY: "#000",
|
|
51
|
-
TYPOGRAPHY_SECONDARY: "#667799",
|
|
52
|
-
TYPOGRAPHY_ALERT: "#E6481F",
|
|
53
|
-
TYPOGRAPHY_SUCCESS: "#23943E",
|
|
54
|
-
TYPOGRAPHY_LINK: "#0062D1"
|
|
56
|
+
BLACK: "#000"
|
|
57
|
+
};
|
|
58
|
+
var Backgrounds = {
|
|
59
|
+
BG_1: "#f2f2f2",
|
|
60
|
+
BG_2: "#e6e6e6",
|
|
61
|
+
BG_3: "#dbdbdb",
|
|
62
|
+
BG_4: "#b3b3b3",
|
|
63
|
+
BG_5: "#999"
|
|
64
|
+
};
|
|
65
|
+
var Accents = {
|
|
66
|
+
ALERT: "#ff564e",
|
|
67
|
+
SUCCESS: "#28bc00"
|
|
55
68
|
};
|
|
69
|
+
var Color = tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign({}, Common), Accents), TextBA), Backgrounds), Primary), Secondary), Tretiary), PrimaryBA), SecondaryBA), TretiaryBA);
|
|
56
70
|
|
|
71
|
+
exports.Accents = Accents;
|
|
72
|
+
exports.Backgrounds = Backgrounds;
|
|
57
73
|
exports.Color = Color;
|
|
74
|
+
exports.Common = Common;
|
|
75
|
+
exports.Primary = Primary;
|
|
76
|
+
exports.PrimaryBA = PrimaryBA;
|
|
77
|
+
exports.Secondary = Secondary;
|
|
78
|
+
exports.SecondaryBA = SecondaryBA;
|
|
79
|
+
exports.TextBA = TextBA;
|
|
80
|
+
exports.Tretiary = Tretiary;
|
|
81
|
+
exports.TretiaryBA = TretiaryBA;
|
|
58
82
|
exports.default = Color;
|
package/Theme/index.d.ts
CHANGED
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type FC, type ReactNode } from "react";
|
|
2
2
|
import type { ThemeProps } from "./index.props";
|
|
3
3
|
export declare const THEMES: {
|
|
4
4
|
DEFAULT: {
|
|
5
5
|
breakpoints: import("./breakpoints").BreakpointsTheme;
|
|
6
6
|
button: import("../Button/index.props").ButtonVariant & import("../Button/index.props").ButtonBase;
|
|
7
|
+
checkbox: import("../Checkbox/index.props").CheckboxVariant;
|
|
7
8
|
typography: {
|
|
8
|
-
primary: {
|
|
9
|
-
color: string;
|
|
10
|
-
};
|
|
11
|
-
secondary: {
|
|
12
|
-
color: string;
|
|
13
|
-
};
|
|
14
9
|
alert: {
|
|
15
10
|
color: string;
|
|
16
11
|
};
|
|
17
12
|
success: {
|
|
18
13
|
color: string;
|
|
19
14
|
};
|
|
20
|
-
link: {
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
15
|
};
|
|
24
16
|
switch: {
|
|
25
17
|
circle: {
|
|
@@ -36,26 +28,62 @@ export declare const THEMES: {
|
|
|
36
28
|
};
|
|
37
29
|
};
|
|
38
30
|
};
|
|
31
|
+
palette: {
|
|
32
|
+
TRETIARY_BA_1: string;
|
|
33
|
+
TRETIARY_BA_2: string;
|
|
34
|
+
TRETIARY_BA_3: string;
|
|
35
|
+
TRETIARY_BA_4: string;
|
|
36
|
+
TRETIARY_BA_5: string;
|
|
37
|
+
SECONDARY_BA_1: string;
|
|
38
|
+
SECONDARY_BA_2: string;
|
|
39
|
+
SECONDARY_BA_3: string;
|
|
40
|
+
SECONDARY_BA_4: string;
|
|
41
|
+
SECONDARY_BA_5: string;
|
|
42
|
+
PRIMARY_BA_1: string;
|
|
43
|
+
PRIMARY_BA_2: string;
|
|
44
|
+
PRIMARY_BA_3: string;
|
|
45
|
+
PRIMARY_BA_4: string;
|
|
46
|
+
PRIMARY_BA_5: string;
|
|
47
|
+
TRETIARY_1: string;
|
|
48
|
+
TRETIARY_2: string;
|
|
49
|
+
TRETIARY_3: string;
|
|
50
|
+
TRETIARY_4: string;
|
|
51
|
+
TRETIARY_5: string;
|
|
52
|
+
SECONDARY_1: string;
|
|
53
|
+
SECONDARY_2: string;
|
|
54
|
+
SECONDARY_3: string;
|
|
55
|
+
SECONDARY_4: string;
|
|
56
|
+
SECONDARY_5: string;
|
|
57
|
+
PRIMARY_1: string;
|
|
58
|
+
PRIMARY_2: string;
|
|
59
|
+
PRIMARY_3: string;
|
|
60
|
+
PRIMARY_4: string;
|
|
61
|
+
PRIMARY_5: string;
|
|
62
|
+
BG_1: string;
|
|
63
|
+
BG_2: string;
|
|
64
|
+
BG_3: string;
|
|
65
|
+
BG_4: string;
|
|
66
|
+
BG_5: string;
|
|
67
|
+
TEXT_BA_PRIMARY: string;
|
|
68
|
+
TEXT_BA_SECONDARY: string;
|
|
69
|
+
TEXT_BA_TRETIARY: string;
|
|
70
|
+
ALERT: string;
|
|
71
|
+
SUCCESS: string;
|
|
72
|
+
WHITE: string;
|
|
73
|
+
BLACK: string;
|
|
74
|
+
};
|
|
39
75
|
};
|
|
40
76
|
BA: {
|
|
41
77
|
breakpoints: import("./breakpoints").BreakpointsTheme;
|
|
42
78
|
button: import("../Button/index.props").ButtonVariant & import("../Button/index.props").ButtonBase;
|
|
79
|
+
checkbox: import("../Checkbox/index.props").CheckboxVariant;
|
|
43
80
|
typography: {
|
|
44
|
-
primary: {
|
|
45
|
-
color: string;
|
|
46
|
-
};
|
|
47
|
-
secondary: {
|
|
48
|
-
color: string;
|
|
49
|
-
};
|
|
50
81
|
alert: {
|
|
51
82
|
color: string;
|
|
52
83
|
};
|
|
53
84
|
success: {
|
|
54
85
|
color: string;
|
|
55
86
|
};
|
|
56
|
-
link: {
|
|
57
|
-
color: string;
|
|
58
|
-
};
|
|
59
87
|
};
|
|
60
88
|
switch: {
|
|
61
89
|
circle: {
|
|
@@ -72,6 +100,50 @@ export declare const THEMES: {
|
|
|
72
100
|
};
|
|
73
101
|
};
|
|
74
102
|
};
|
|
103
|
+
palette: {
|
|
104
|
+
TRETIARY_BA_1: string;
|
|
105
|
+
TRETIARY_BA_2: string;
|
|
106
|
+
TRETIARY_BA_3: string;
|
|
107
|
+
TRETIARY_BA_4: string;
|
|
108
|
+
TRETIARY_BA_5: string;
|
|
109
|
+
SECONDARY_BA_1: string;
|
|
110
|
+
SECONDARY_BA_2: string;
|
|
111
|
+
SECONDARY_BA_3: string;
|
|
112
|
+
SECONDARY_BA_4: string;
|
|
113
|
+
SECONDARY_BA_5: string;
|
|
114
|
+
PRIMARY_BA_1: string;
|
|
115
|
+
PRIMARY_BA_2: string;
|
|
116
|
+
PRIMARY_BA_3: string;
|
|
117
|
+
PRIMARY_BA_4: string;
|
|
118
|
+
PRIMARY_BA_5: string;
|
|
119
|
+
TRETIARY_1: string;
|
|
120
|
+
TRETIARY_2: string;
|
|
121
|
+
TRETIARY_3: string;
|
|
122
|
+
TRETIARY_4: string;
|
|
123
|
+
TRETIARY_5: string;
|
|
124
|
+
SECONDARY_1: string;
|
|
125
|
+
SECONDARY_2: string;
|
|
126
|
+
SECONDARY_3: string;
|
|
127
|
+
SECONDARY_4: string;
|
|
128
|
+
SECONDARY_5: string;
|
|
129
|
+
PRIMARY_1: string;
|
|
130
|
+
PRIMARY_2: string;
|
|
131
|
+
PRIMARY_3: string;
|
|
132
|
+
PRIMARY_4: string;
|
|
133
|
+
PRIMARY_5: string;
|
|
134
|
+
BG_1: string;
|
|
135
|
+
BG_2: string;
|
|
136
|
+
BG_3: string;
|
|
137
|
+
BG_4: string;
|
|
138
|
+
BG_5: string;
|
|
139
|
+
TEXT_BA_PRIMARY: string;
|
|
140
|
+
TEXT_BA_SECONDARY: string;
|
|
141
|
+
TEXT_BA_TRETIARY: string;
|
|
142
|
+
ALERT: string;
|
|
143
|
+
SUCCESS: string;
|
|
144
|
+
WHITE: string;
|
|
145
|
+
BLACK: string;
|
|
146
|
+
};
|
|
75
147
|
};
|
|
76
148
|
};
|
|
77
149
|
export declare const ThemeProvider: FC<{
|
package/Theme/index.props.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { CheckboxVariant } from "../Checkbox/index.props";
|
|
2
|
+
import type { ColorsTheme } from "./color";
|
|
1
3
|
import type { BreakpointsTheme } from "./breakpoints";
|
|
2
4
|
import type { ButtonBase, ButtonVariant } from "../Button/index.props";
|
|
3
5
|
import type { TypographyVariant } from "../Typography/index.props";
|
|
4
6
|
import type { SwitchStates } from "../Switch/index.props";
|
|
5
7
|
export type ThemeProps = {
|
|
6
8
|
button: ButtonVariant & ButtonBase;
|
|
9
|
+
checkbox: CheckboxVariant;
|
|
7
10
|
breakpoints: BreakpointsTheme;
|
|
8
11
|
typography: TypographyVariant;
|
|
9
12
|
switch: SwitchStates;
|
|
13
|
+
palette: ColorsTheme;
|
|
10
14
|
};
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
+
import type { CheckboxVariant } from "../../Checkbox/index.props";
|
|
1
2
|
import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
|
|
2
3
|
export declare const ButtonThemeBA: ButtonVariant & ButtonBase;
|
|
4
|
+
export declare const CheckboxThemeBA: CheckboxVariant;
|
|
3
5
|
export declare const TypographyThemeBA: {
|
|
4
|
-
primary: {
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
secondary: {
|
|
8
|
-
color: string;
|
|
9
|
-
};
|
|
10
6
|
alert: {
|
|
11
7
|
color: string;
|
|
12
8
|
};
|
|
13
9
|
success: {
|
|
14
10
|
color: string;
|
|
15
11
|
};
|
|
16
|
-
link: {
|
|
17
|
-
color: string;
|
|
18
|
-
};
|
|
19
12
|
};
|
|
20
13
|
export declare const SwitchThemeDefault: {
|
|
21
14
|
circle: {
|
|
@@ -35,22 +28,14 @@ export declare const SwitchThemeDefault: {
|
|
|
35
28
|
export declare const THEME_BA: {
|
|
36
29
|
breakpoints: import("../breakpoints").BreakpointsTheme;
|
|
37
30
|
button: ButtonVariant & ButtonBase;
|
|
31
|
+
checkbox: CheckboxVariant;
|
|
38
32
|
typography: {
|
|
39
|
-
primary: {
|
|
40
|
-
color: string;
|
|
41
|
-
};
|
|
42
|
-
secondary: {
|
|
43
|
-
color: string;
|
|
44
|
-
};
|
|
45
33
|
alert: {
|
|
46
34
|
color: string;
|
|
47
35
|
};
|
|
48
36
|
success: {
|
|
49
37
|
color: string;
|
|
50
38
|
};
|
|
51
|
-
link: {
|
|
52
|
-
color: string;
|
|
53
|
-
};
|
|
54
39
|
};
|
|
55
40
|
switch: {
|
|
56
41
|
circle: {
|
|
@@ -67,4 +52,48 @@ export declare const THEME_BA: {
|
|
|
67
52
|
};
|
|
68
53
|
};
|
|
69
54
|
};
|
|
55
|
+
palette: {
|
|
56
|
+
TRETIARY_BA_1: string;
|
|
57
|
+
TRETIARY_BA_2: string;
|
|
58
|
+
TRETIARY_BA_3: string;
|
|
59
|
+
TRETIARY_BA_4: string;
|
|
60
|
+
TRETIARY_BA_5: string;
|
|
61
|
+
SECONDARY_BA_1: string;
|
|
62
|
+
SECONDARY_BA_2: string;
|
|
63
|
+
SECONDARY_BA_3: string;
|
|
64
|
+
SECONDARY_BA_4: string;
|
|
65
|
+
SECONDARY_BA_5: string;
|
|
66
|
+
PRIMARY_BA_1: string;
|
|
67
|
+
PRIMARY_BA_2: string;
|
|
68
|
+
PRIMARY_BA_3: string;
|
|
69
|
+
PRIMARY_BA_4: string;
|
|
70
|
+
PRIMARY_BA_5: string;
|
|
71
|
+
TRETIARY_1: string;
|
|
72
|
+
TRETIARY_2: string;
|
|
73
|
+
TRETIARY_3: string;
|
|
74
|
+
TRETIARY_4: string;
|
|
75
|
+
TRETIARY_5: string;
|
|
76
|
+
SECONDARY_1: string;
|
|
77
|
+
SECONDARY_2: string;
|
|
78
|
+
SECONDARY_3: string;
|
|
79
|
+
SECONDARY_4: string;
|
|
80
|
+
SECONDARY_5: string;
|
|
81
|
+
PRIMARY_1: string;
|
|
82
|
+
PRIMARY_2: string;
|
|
83
|
+
PRIMARY_3: string;
|
|
84
|
+
PRIMARY_4: string;
|
|
85
|
+
PRIMARY_5: string;
|
|
86
|
+
BG_1: string;
|
|
87
|
+
BG_2: string;
|
|
88
|
+
BG_3: string;
|
|
89
|
+
BG_4: string;
|
|
90
|
+
BG_5: string;
|
|
91
|
+
TEXT_BA_PRIMARY: string;
|
|
92
|
+
TEXT_BA_SECONDARY: string;
|
|
93
|
+
TEXT_BA_TRETIARY: string;
|
|
94
|
+
ALERT: string;
|
|
95
|
+
SUCCESS: string;
|
|
96
|
+
WHITE: string;
|
|
97
|
+
BLACK: string;
|
|
98
|
+
};
|
|
70
99
|
};
|
|
@@ -9,94 +9,113 @@ var ButtonThemeBA = {
|
|
|
9
9
|
borderRadius: "26px",
|
|
10
10
|
border: "none"
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
primary: {
|
|
13
13
|
normal: {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
color: color.Color.WHITE,
|
|
15
|
+
backgroundColor: color.Color.PRIMARY_BA_4,
|
|
16
|
+
borderColor: color.Color.PRIMARY_BA_4
|
|
16
17
|
},
|
|
17
18
|
hover: {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
color: color.Color.WHITE,
|
|
20
|
+
backgroundColor: color.Color.PRIMARY_BA_5,
|
|
21
|
+
borderColor: color.Color.PRIMARY_BA_5
|
|
20
22
|
},
|
|
21
23
|
focus: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
color: color.Color.WHITE,
|
|
25
|
+
backgroundColor: color.Color.PRIMARY_BA_5,
|
|
26
|
+
borderColor: color.Color.PRIMARY_BA_5
|
|
24
27
|
},
|
|
25
28
|
active: {
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
color: color.Color.WHITE,
|
|
30
|
+
backgroundColor: color.Color.PRIMARY_BA_5,
|
|
31
|
+
borderColor: color.Color.PRIMARY_BA_5
|
|
28
32
|
},
|
|
29
33
|
disabled: {
|
|
30
|
-
color: color.Color.
|
|
31
|
-
backgroundColor: color.Color.
|
|
32
|
-
borderColor: color.Color.
|
|
34
|
+
color: color.Color.PRIMARY_BA_3,
|
|
35
|
+
backgroundColor: color.Color.PRIMARY_BA_2,
|
|
36
|
+
borderColor: color.Color.PRIMARY_BA_2
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
|
-
|
|
39
|
+
secondary: {
|
|
36
40
|
normal: {
|
|
37
|
-
color: color.Color.
|
|
38
|
-
backgroundColor: color.Color.
|
|
39
|
-
borderColor: color.Color.
|
|
41
|
+
color: color.Color.WHITE,
|
|
42
|
+
backgroundColor: color.Color.SECONDARY_BA_4,
|
|
43
|
+
borderColor: color.Color.SECONDARY_BA_4
|
|
40
44
|
},
|
|
41
45
|
hover: {
|
|
42
|
-
color: color.Color.
|
|
43
|
-
backgroundColor: color.Color.
|
|
44
|
-
borderColor: color.Color.
|
|
46
|
+
color: color.Color.WHITE,
|
|
47
|
+
backgroundColor: color.Color.SECONDARY_BA_5,
|
|
48
|
+
borderColor: color.Color.SECONDARY_BA_5
|
|
45
49
|
},
|
|
46
50
|
focus: {
|
|
47
|
-
color: color.Color.
|
|
48
|
-
backgroundColor: color.Color.
|
|
49
|
-
borderColor: color.Color.
|
|
51
|
+
color: color.Color.WHITE,
|
|
52
|
+
backgroundColor: color.Color.SECONDARY_BA_5,
|
|
53
|
+
borderColor: color.Color.SECONDARY_BA_5
|
|
50
54
|
},
|
|
51
55
|
active: {
|
|
52
|
-
color: color.Color.
|
|
53
|
-
backgroundColor: color.Color.
|
|
54
|
-
borderColor: color.Color.
|
|
56
|
+
color: color.Color.WHITE,
|
|
57
|
+
backgroundColor: color.Color.SECONDARY_BA_5,
|
|
58
|
+
borderColor: color.Color.SECONDARY_BA_5
|
|
55
59
|
},
|
|
56
60
|
disabled: {
|
|
57
|
-
color: color.Color.
|
|
58
|
-
backgroundColor: color.Color.
|
|
59
|
-
borderColor: color.Color.
|
|
61
|
+
color: color.Color.SECONDARY_BA_3,
|
|
62
|
+
backgroundColor: color.Color.SECONDARY_BA_2,
|
|
63
|
+
borderColor: color.Color.SECONDARY_BA_2
|
|
60
64
|
}
|
|
61
65
|
},
|
|
62
66
|
clear: {
|
|
63
67
|
normal: {
|
|
64
|
-
color: color.Color.
|
|
68
|
+
color: color.Color.TRETIARY_BA_5,
|
|
65
69
|
backgroundColor: color.Color.WHITE,
|
|
66
70
|
borderColor: color.Color.WHITE
|
|
67
71
|
},
|
|
68
72
|
hover: {
|
|
69
|
-
color: color.Color.
|
|
70
|
-
backgroundColor: color.Color.
|
|
71
|
-
borderColor: color.Color.
|
|
73
|
+
color: color.Color.TRETIARY_BA_5,
|
|
74
|
+
backgroundColor: color.Color.TRETIARY_BA_2,
|
|
75
|
+
borderColor: color.Color.TRETIARY_BA_2
|
|
72
76
|
},
|
|
73
77
|
active: {
|
|
74
|
-
color: color.Color.
|
|
75
|
-
backgroundColor: color.Color.
|
|
76
|
-
borderColor: color.Color.
|
|
78
|
+
color: color.Color.TRETIARY_BA_5,
|
|
79
|
+
backgroundColor: color.Color.TRETIARY_BA_2,
|
|
80
|
+
borderColor: color.Color.TRETIARY_BA_2
|
|
77
81
|
},
|
|
78
82
|
disabled: {
|
|
79
|
-
color: color.Color.
|
|
80
|
-
backgroundColor: color.Color.
|
|
81
|
-
borderColor: color.Color.
|
|
83
|
+
color: color.Color.TRETIARY_BA_3,
|
|
84
|
+
backgroundColor: color.Color.TRETIARY_BA_1,
|
|
85
|
+
borderColor: color.Color.TRETIARY_BA_1
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
88
|
};
|
|
85
|
-
var
|
|
89
|
+
var CheckboxThemeBA = {
|
|
86
90
|
primary: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
normal: {
|
|
92
|
+
backgroundColor: color.Color.PRIMARY_BA_4
|
|
93
|
+
},
|
|
94
|
+
hover: {
|
|
95
|
+
backgroundColor: color.Color.PRIMARY_BA_4
|
|
96
|
+
},
|
|
97
|
+
focus: {
|
|
98
|
+
boxShadow: "0 0 0 2px ".concat(color.Color.PRIMARY_BA_1)
|
|
99
|
+
},
|
|
100
|
+
checked: {
|
|
101
|
+
backgroundColor: color.Color.PRIMARY_BA_4
|
|
102
|
+
},
|
|
103
|
+
active: {
|
|
104
|
+
backgroundColor: color.Color.PRIMARY_BA_4,
|
|
105
|
+
borderColor: color.Color.PRIMARY_BA_4,
|
|
106
|
+
boxShadow: color.Color.PRIMARY_BA_4
|
|
107
|
+
},
|
|
108
|
+
disabled: {
|
|
109
|
+
backgroundColor: color.Color.BG_1
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var TypographyThemeBA = {
|
|
92
114
|
alert: {
|
|
93
|
-
color: color.Color.
|
|
115
|
+
color: color.Color.ALERT
|
|
94
116
|
},
|
|
95
117
|
success: {
|
|
96
|
-
color: color.Color.
|
|
97
|
-
},
|
|
98
|
-
link: {
|
|
99
|
-
color: color.Color.TYPOGRAPHY_LINK
|
|
118
|
+
color: color.Color.SUCCESS
|
|
100
119
|
}
|
|
101
120
|
};
|
|
102
121
|
var SwitchThemeDefault = {
|
|
@@ -105,23 +124,26 @@ var SwitchThemeDefault = {
|
|
|
105
124
|
},
|
|
106
125
|
state: {
|
|
107
126
|
normal: {
|
|
108
|
-
backgroundColor: color.Color.
|
|
109
|
-
borderColor: color.Color.
|
|
127
|
+
backgroundColor: color.Color.BG_1,
|
|
128
|
+
borderColor: color.Color.BG_1
|
|
110
129
|
},
|
|
111
130
|
checked: {
|
|
112
|
-
backgroundColor: color.Color.
|
|
113
|
-
borderColor: color.Color.
|
|
131
|
+
backgroundColor: color.Color.PRIMARY_BA_5,
|
|
132
|
+
borderColor: color.Color.PRIMARY_BA_5
|
|
114
133
|
}
|
|
115
134
|
}
|
|
116
135
|
};
|
|
117
136
|
var THEME_BA = {
|
|
118
137
|
breakpoints: breakpoints.default,
|
|
119
138
|
button: ButtonThemeBA,
|
|
139
|
+
checkbox: CheckboxThemeBA,
|
|
120
140
|
typography: TypographyThemeBA,
|
|
121
|
-
"switch": SwitchThemeDefault
|
|
141
|
+
"switch": SwitchThemeDefault,
|
|
142
|
+
palette: color.Color
|
|
122
143
|
};
|
|
123
144
|
|
|
124
145
|
exports.ButtonThemeBA = ButtonThemeBA;
|
|
146
|
+
exports.CheckboxThemeBA = CheckboxThemeBA;
|
|
125
147
|
exports.SwitchThemeDefault = SwitchThemeDefault;
|
|
126
148
|
exports.THEME_BA = THEME_BA;
|
|
127
149
|
exports.TypographyThemeBA = TypographyThemeBA;
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
+
import type { CheckboxVariant } from "../../Checkbox/index.props";
|
|
1
2
|
import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
|
|
2
3
|
export declare const ButtonThemeDefault: ButtonVariant & ButtonBase;
|
|
4
|
+
export declare const CheckboxThemeDefault: CheckboxVariant;
|
|
3
5
|
export declare const TypographyThemeDefault: {
|
|
4
|
-
primary: {
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
secondary: {
|
|
8
|
-
color: string;
|
|
9
|
-
};
|
|
10
6
|
alert: {
|
|
11
7
|
color: string;
|
|
12
8
|
};
|
|
13
9
|
success: {
|
|
14
10
|
color: string;
|
|
15
11
|
};
|
|
16
|
-
link: {
|
|
17
|
-
color: string;
|
|
18
|
-
};
|
|
19
12
|
};
|
|
20
13
|
export declare const SwitchThemeDefault: {
|
|
21
14
|
circle: {
|
|
@@ -35,22 +28,14 @@ export declare const SwitchThemeDefault: {
|
|
|
35
28
|
export declare const THEME_DEFAULT: {
|
|
36
29
|
breakpoints: import("../breakpoints").BreakpointsTheme;
|
|
37
30
|
button: ButtonVariant & ButtonBase;
|
|
31
|
+
checkbox: CheckboxVariant;
|
|
38
32
|
typography: {
|
|
39
|
-
primary: {
|
|
40
|
-
color: string;
|
|
41
|
-
};
|
|
42
|
-
secondary: {
|
|
43
|
-
color: string;
|
|
44
|
-
};
|
|
45
33
|
alert: {
|
|
46
34
|
color: string;
|
|
47
35
|
};
|
|
48
36
|
success: {
|
|
49
37
|
color: string;
|
|
50
38
|
};
|
|
51
|
-
link: {
|
|
52
|
-
color: string;
|
|
53
|
-
};
|
|
54
39
|
};
|
|
55
40
|
switch: {
|
|
56
41
|
circle: {
|
|
@@ -67,4 +52,48 @@ export declare const THEME_DEFAULT: {
|
|
|
67
52
|
};
|
|
68
53
|
};
|
|
69
54
|
};
|
|
55
|
+
palette: {
|
|
56
|
+
TRETIARY_BA_1: string;
|
|
57
|
+
TRETIARY_BA_2: string;
|
|
58
|
+
TRETIARY_BA_3: string;
|
|
59
|
+
TRETIARY_BA_4: string;
|
|
60
|
+
TRETIARY_BA_5: string;
|
|
61
|
+
SECONDARY_BA_1: string;
|
|
62
|
+
SECONDARY_BA_2: string;
|
|
63
|
+
SECONDARY_BA_3: string;
|
|
64
|
+
SECONDARY_BA_4: string;
|
|
65
|
+
SECONDARY_BA_5: string;
|
|
66
|
+
PRIMARY_BA_1: string;
|
|
67
|
+
PRIMARY_BA_2: string;
|
|
68
|
+
PRIMARY_BA_3: string;
|
|
69
|
+
PRIMARY_BA_4: string;
|
|
70
|
+
PRIMARY_BA_5: string;
|
|
71
|
+
TRETIARY_1: string;
|
|
72
|
+
TRETIARY_2: string;
|
|
73
|
+
TRETIARY_3: string;
|
|
74
|
+
TRETIARY_4: string;
|
|
75
|
+
TRETIARY_5: string;
|
|
76
|
+
SECONDARY_1: string;
|
|
77
|
+
SECONDARY_2: string;
|
|
78
|
+
SECONDARY_3: string;
|
|
79
|
+
SECONDARY_4: string;
|
|
80
|
+
SECONDARY_5: string;
|
|
81
|
+
PRIMARY_1: string;
|
|
82
|
+
PRIMARY_2: string;
|
|
83
|
+
PRIMARY_3: string;
|
|
84
|
+
PRIMARY_4: string;
|
|
85
|
+
PRIMARY_5: string;
|
|
86
|
+
BG_1: string;
|
|
87
|
+
BG_2: string;
|
|
88
|
+
BG_3: string;
|
|
89
|
+
BG_4: string;
|
|
90
|
+
BG_5: string;
|
|
91
|
+
TEXT_BA_PRIMARY: string;
|
|
92
|
+
TEXT_BA_SECONDARY: string;
|
|
93
|
+
TEXT_BA_TRETIARY: string;
|
|
94
|
+
ALERT: string;
|
|
95
|
+
SUCCESS: string;
|
|
96
|
+
WHITE: string;
|
|
97
|
+
BLACK: string;
|
|
98
|
+
};
|
|
70
99
|
};
|