colibri-ui 0.7.85 → 0.7.87
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/Avatar/assets/user-circle.svg.js +6 -16
- package/Button/Button.module.css +18 -18
- package/Checkbox/Checkbox.module.css +4 -4
- package/InputRadio/InputRadio.module.css +5 -5
- package/Status/index.d.ts +4 -0
- package/Status/index.js +28 -0
- package/Status/index.module.css +45 -0
- package/Status/index.props.d.ts +13 -0
- package/Status/package.json +6 -0
- package/Switch/Switch.module.css +2 -2
- package/Theme/colors/common.js +3 -3
- package/Theme/colors/theme_buenos_aires.js +13 -13
- package/Theme/colors/theme_default.js +7 -7
- package/Theme/index.d.ts +76 -60
- package/Theme/themes/buenos_aires.d.ts +38 -30
- package/Theme/themes/buenos_aires.js +38 -30
- package/Theme/themes/default.d.ts +38 -30
- package/Theme/themes/default.js +38 -30
- package/Tooltip/Tooltip.module.css +3 -3
- package/Typography/index.js +2 -2
- package/base/InputRoot/InputRoot.module.css +1 -1
- package/esm/Avatar/assets/user-circle.svg.js +6 -16
- package/esm/Button/Button.module.css +18 -18
- package/esm/Checkbox/Checkbox.module.css +4 -4
- package/esm/InputRadio/InputRadio.module.css +5 -5
- package/esm/Status/index.d.ts +4 -0
- package/esm/Status/index.js +18 -0
- package/esm/Status/index.module.css +45 -0
- package/esm/Status/index.props.d.ts +13 -0
- package/esm/Switch/Switch.module.css +2 -2
- package/esm/Theme/colors/common.js +3 -3
- package/esm/Theme/colors/theme_buenos_aires.js +13 -13
- package/esm/Theme/colors/theme_default.js +7 -7
- package/esm/Theme/index.d.ts +76 -60
- package/esm/Theme/themes/buenos_aires.d.ts +38 -30
- package/esm/Theme/themes/buenos_aires.js +38 -30
- package/esm/Theme/themes/default.d.ts +38 -30
- package/esm/Theme/themes/default.js +38 -30
- package/esm/Tooltip/Tooltip.module.css +3 -3
- package/esm/Typography/index.js +2 -2
- package/esm/base/InputRoot/InputRoot.module.css +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/theme_ba_variables.css +75 -67
- package/esm/theme_default_variables.css +58 -50
- package/index.d.ts +1 -0
- package/index.js +22 -20
- package/package.json +1 -1
- package/theme_ba_variables.css +75 -67
- package/theme_default_variables.css +58 -50
package/Theme/themes/default.js
CHANGED
|
@@ -30,85 +30,93 @@ var THEME_DEFAULT = {
|
|
|
30
30
|
"typography-alert": index.default.ALERT,
|
|
31
31
|
"typography-success": index.default.SUCCESS,
|
|
32
32
|
"typography-secondary": index.default.BG_3,
|
|
33
|
-
"button-border-radius": "18px",
|
|
34
33
|
"button-primary-color": index.default.WHITE,
|
|
35
|
-
"button-primary-
|
|
34
|
+
"button-primary-bg": index.default.PRIMARY_DEFAULT_4,
|
|
36
35
|
"button-primary-border-color": index.default.PRIMARY_DEFAULT_4,
|
|
37
36
|
"button-primary-color-hovered": index.default.WHITE,
|
|
38
|
-
"button-primary-
|
|
37
|
+
"button-primary-bg-hovered": index.default.PRIMARY_DEFAULT_5,
|
|
39
38
|
"button-primary-border-color-hovered": index.default.PRIMARY_DEFAULT_5,
|
|
40
39
|
"button-primary-color-active": index.default.WHITE,
|
|
41
|
-
"button-primary-
|
|
40
|
+
"button-primary-bg-active": index.default.PRIMARY_DEFAULT_5,
|
|
42
41
|
"button-primary-border-color-active": index.default.PRIMARY_DEFAULT_5,
|
|
43
42
|
"button-primary-color-disabled": index.default.BG_4,
|
|
44
|
-
"button-primary-
|
|
43
|
+
"button-primary-bg-disabled": index.default.PRIMARY_DEFAULT_1,
|
|
45
44
|
"button-primary-border-color-disabled": index.default.PRIMARY_DEFAULT_1,
|
|
46
45
|
"button-secondary-color": index.default.WHITE,
|
|
47
|
-
"button-secondary-
|
|
46
|
+
"button-secondary-bg": index.default.SECONDARY_DEFAULT_4,
|
|
48
47
|
"button-secondary-border-color": index.default.SECONDARY_DEFAULT_4,
|
|
49
48
|
"button-secondary-color-hovered": index.default.WHITE,
|
|
50
|
-
"button-secondary-
|
|
49
|
+
"button-secondary-bg-hovered": index.default.SECONDARY_DEFAULT_5,
|
|
51
50
|
"button-secondary-border-color-hovered": index.default.SECONDARY_DEFAULT_5,
|
|
52
51
|
"button-secondary-color-active": index.default.WHITE,
|
|
53
|
-
"button-secondary-
|
|
52
|
+
"button-secondary-bg-active": index.default.SECONDARY_DEFAULT_5,
|
|
54
53
|
"button-secondary-border-color-active": index.default.SECONDARY_DEFAULT_5,
|
|
55
54
|
"button-secondary-color-disabled": index.default.BG_4,
|
|
56
|
-
"button-secondary-
|
|
55
|
+
"button-secondary-bg-disabled": index.default.SECONDARY_DEFAULT_1,
|
|
57
56
|
"button-secondary-border-color-disabled": index.default.SECONDARY_DEFAULT_1,
|
|
58
57
|
"button-pseudo-color": index.default.BLACK,
|
|
59
|
-
"button-pseudo-
|
|
58
|
+
"button-pseudo-bg": index.default.TRETIARY_DEFAULT_1,
|
|
60
59
|
"button-pseudo-border-color": index.default.TRETIARY_DEFAULT_1,
|
|
61
60
|
"button-pseudo-color-hovered": index.default.BLACK,
|
|
62
|
-
"button-pseudo-
|
|
61
|
+
"button-pseudo-bg-hovered": index.default.TRETIARY_DEFAULT_1,
|
|
63
62
|
"button-pseudo-border-color-hovered": index.default.TRETIARY_DEFAULT_1,
|
|
64
63
|
"button-pseudo-color-active": index.default.BLACK,
|
|
65
|
-
"button-pseudo-
|
|
64
|
+
"button-pseudo-bg-active": index.default.TRETIARY_DEFAULT_2,
|
|
66
65
|
"button-pseudo-border-color-active": index.default.TRETIARY_DEFAULT_2,
|
|
67
66
|
"button-pseudo-color-disabled": index.default.BG_4,
|
|
68
|
-
"button-pseudo-
|
|
67
|
+
"button-pseudo-bg-disabled": index.default.TRETIARY_DEFAULT_1,
|
|
69
68
|
"button-pseudo-border-color-disabled": index.default.TRETIARY_DEFAULT_1,
|
|
70
69
|
"button-outline-color": index.default.BLACK,
|
|
71
|
-
"button-outline-
|
|
70
|
+
"button-outline-bg": index.default.WHITE,
|
|
72
71
|
"button-outline-border-color": index.default.BG_3,
|
|
73
72
|
"button-outline-color-hovered": index.default.BLACK,
|
|
74
|
-
"button-outline-
|
|
73
|
+
"button-outline-bg-hovered": index.default.BG_1,
|
|
75
74
|
"button-outline-border-color-hovered": index.default.BG_3,
|
|
76
75
|
"button-outline-color-active": index.default.BLACK,
|
|
77
|
-
"button-outline-
|
|
76
|
+
"button-outline-bg-active": index.default.BG_2,
|
|
78
77
|
"button-outline-border-color-active": index.default.BG_3,
|
|
79
78
|
"button-outline-color-disabled": index.default.BG_4,
|
|
80
|
-
"button-outline-
|
|
79
|
+
"button-outline-bg-disabled": index.default.WHITE,
|
|
81
80
|
"button-outline-border-color-disabled": index.default.BG_2,
|
|
82
81
|
"button-clear-color": index.default.PRIMARY_DEFAULT_4,
|
|
83
82
|
"button-clear-color-hovered": index.default.PRIMARY_DEFAULT_4,
|
|
84
83
|
"button-clear-color-active": index.default.PRIMARY_DEFAULT_5,
|
|
85
84
|
"button-clear-color-disabled": index.default.BG_4,
|
|
86
|
-
"button-clear-
|
|
85
|
+
"button-clear-bg-disabled": index.default.WHITE,
|
|
87
86
|
"button-clear-border-color-disabled": index.default.WHITE,
|
|
88
87
|
"input-primary-border-color": index.default.BG_3,
|
|
89
88
|
"input-primary-plaseholder-color": index.default.BG_2,
|
|
90
89
|
"input-primary-border-color-error": index.default.ALERT,
|
|
91
|
-
"input-primary-
|
|
90
|
+
"input-primary-bg-error": index.default.TRETIARY_DEFAULT_2,
|
|
92
91
|
"input-primary-box-shadow-color-error": index.default.TRETIARY_DEFAULT_2,
|
|
93
|
-
"checkbox-
|
|
94
|
-
"checkbox-
|
|
92
|
+
"checkbox-bg-checked": index.default.PRIMARY_DEFAULT_4,
|
|
93
|
+
"checkbox-bg-hovered": index.default.PRIMARY_DEFAULT_4,
|
|
95
94
|
"checkbox-box-shadow-focused": index.default.PRIMARY_DEFAULT_1,
|
|
96
|
-
"checkbox-
|
|
95
|
+
"checkbox-bg-active": index.default.PRIMARY_DEFAULT_4,
|
|
97
96
|
"checkbox-border-color-active": index.default.PRIMARY_DEFAULT_4,
|
|
98
97
|
"checkbox-box-shadow-active": index.default.PRIMARY_DEFAULT_4,
|
|
99
|
-
"checkbox-
|
|
100
|
-
"input-radio-
|
|
101
|
-
"input-radio-
|
|
98
|
+
"checkbox-bg-disabled": index.default.PRIMARY_DEFAULT_1,
|
|
99
|
+
"input-radio-bg-checked": index.default.PRIMARY_DEFAULT_4,
|
|
100
|
+
"input-radio-bg-hovered": index.default.PRIMARY_DEFAULT_4,
|
|
102
101
|
"input-radio-box-shadow-focused": index.default.PRIMARY_DEFAULT_1,
|
|
103
|
-
"input-radio-
|
|
102
|
+
"input-radio-bg-focused": index.default.PRIMARY_DEFAULT_1,
|
|
104
103
|
"input-radio-border-color-focused": index.default.PRIMARY_DEFAULT_1,
|
|
105
|
-
"switch-
|
|
104
|
+
"switch-bg": index.default.BG_2,
|
|
106
105
|
"switch-border-color": index.default.BG_2,
|
|
107
|
-
"switch-
|
|
106
|
+
"switch-bg-checked": index.default.PRIMARY_DEFAULT_5,
|
|
108
107
|
"switch-border-color-checked": index.default.PRIMARY_DEFAULT_5,
|
|
109
|
-
"tooltip-
|
|
108
|
+
"tooltip-bg": index.default.BLACK,
|
|
110
109
|
"tooltip-color": index.default.WHITE,
|
|
111
|
-
"
|
|
110
|
+
"status-failure": index.default.ALERT,
|
|
111
|
+
"status-failure-bg": "rgba(244, 87, 37, .12)",
|
|
112
|
+
"status-success": index.default.SUCCESS,
|
|
113
|
+
"status-success-bg": "rgba(74, 201, 155, .12)",
|
|
114
|
+
"status-warning": "#ffc700",
|
|
115
|
+
"status-warning-bg": "rgba(255, 199, 0, .12)",
|
|
116
|
+
"status-info": "#70b6f6",
|
|
117
|
+
"status-info-bg": "rgba(112, 182, 246, .12)",
|
|
118
|
+
"status-neutral": index.default.BG_5,
|
|
119
|
+
"status-neutral-bg": index.default.BG_1
|
|
112
120
|
};
|
|
113
121
|
|
|
114
122
|
exports.default = THEME_DEFAULT;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
position: relative;
|
|
98
98
|
}
|
|
99
99
|
.tail::before {
|
|
100
|
-
border-bottom: 5px solid var(--tooltip-
|
|
100
|
+
border-bottom: 5px solid var(--tooltip-bg);
|
|
101
101
|
border-left: 6px solid transparent;
|
|
102
102
|
border-right: 6px solid transparent;
|
|
103
103
|
content: "";
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.overlay {
|
|
111
|
-
background-color: var(--tooltip-
|
|
112
|
-
border-radius:
|
|
111
|
+
background-color: var(--tooltip-bg);
|
|
112
|
+
border-radius: 0.35rem;
|
|
113
113
|
color: var(--tooltip-color);
|
|
114
114
|
font-size: 14px;
|
|
115
115
|
font-style: normal;
|
package/Typography/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var clx = classNames__default.default.bind(styles__default.default);
|
|
|
17
17
|
var Typography = function Typography(_a) {
|
|
18
18
|
var _b;
|
|
19
19
|
var _c = _a.tag,
|
|
20
|
-
|
|
20
|
+
Component = _c === void 0 ? "span" : _c,
|
|
21
21
|
children = _a.children,
|
|
22
22
|
variant = _a.variant,
|
|
23
23
|
size = _a.size,
|
|
@@ -25,7 +25,7 @@ var Typography = function Typography(_a) {
|
|
|
25
25
|
fontWeight = _a.fontWeight,
|
|
26
26
|
className = _a.className,
|
|
27
27
|
props = tslib.__rest(_a, ["tag", "children", "variant", "size", "style", "fontWeight", "className"]);
|
|
28
|
-
return /*#__PURE__*/React__default.default.createElement(
|
|
28
|
+
return /*#__PURE__*/React__default.default.createElement(Component, tslib.__assign({}, props, {
|
|
29
29
|
style: style,
|
|
30
30
|
className: clx((_b = {
|
|
31
31
|
root: true
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
}
|
|
54
54
|
.variant_primary_error {
|
|
55
|
-
background-color: var(--input-primary-
|
|
55
|
+
background-color: var(--input-primary-bg-error);
|
|
56
56
|
border-color: var(--input-primary-border-color-error);
|
|
57
57
|
}
|
|
58
58
|
.variant_primary_error:hover {
|
|
@@ -1,28 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _path;
|
|
4
4
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
5
|
var SvgUserCircle = function SvgUserCircle(props) {
|
|
6
6
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8
8
|
width: 42,
|
|
9
|
-
height:
|
|
9
|
+
height: 39,
|
|
10
10
|
fill: "none"
|
|
11
|
-
}, props),
|
|
12
|
-
clipPath: "url(#user-circle_svg__a)"
|
|
13
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
11
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
14
12
|
fill: "#ECEEF2",
|
|
15
|
-
d: "
|
|
16
|
-
})
|
|
17
|
-
fill: "#000",
|
|
18
|
-
d: "M11.949 19.867a1.866 1.866 0 1 0 0-3.732 1.866 1.866 0 0 0 0 3.732M26.044 30.49c.29 1.953-.396 3.77-1.887 4.53-1.49.76-3.364.246-4.772-1.136 1.01-.185 2.208-.558 3.559-1.247 1.35-.688 2.356-1.437 3.1-2.147M26.048 19.867a1.866 1.866 0 1 0 0-3.732 1.866 1.866 0 0 0 0 3.732M20.765 15.72l2.955 7.878h-5.91z"
|
|
19
|
-
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
20
|
-
id: "user-circle_svg__a"
|
|
21
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
fill: "#fff",
|
|
23
|
-
d: "M0 0h42v41.475H0z"
|
|
24
|
-
})))));
|
|
13
|
+
d: "M33.6 37.997c-2.9-1.709-7-4.725-8.6-4.725h-3.802c-.9 0-2.8-.805-3-1.507-.199-.503-.199-1.408-.1-2.212 0-.1.303-.1.402 0 .8.905 1.099 1.508 1.9 1.508h1.8c.7 0 3.1-2.111 4.099-4.725.2-.603.4-1.608.5-2.713 0-.1.1-.202.1-.1.1.501.3 1.105.4 1.105.3.201.7-.603 1.2-1.709.5-1.006.5-1.608.7-2.413.3-1.105-.1-1.91-.4-1.91a.91.91 0 0 0-.7.302c-.1 0-.2 0-.2-.1 0-.704.1-1.81.9-2.413-1.1-1.005-.4-2.714-.4-2.714.4.2.4 0 .4 0l-.2-1.106c.6-.1 1.1-.603 1.1-.603s-1.6-.402-2.4-1.005c.7-.202 1.117-.957 1.117-.957S27 9.952 26 9.65c.9-.904.3-2.15.3-2.15s-1.6.441-4.7.441c-2.2-.1-3-.402-4.6 1.207-1.9 1.909-1.9 2.412-3.1 2.412 1 1.407.5 2.814.5 2.814l-.1 2.112.1.401s0 .1.1.302c0 .101 0 .303.1.402l.3 1.61s-.1.1-.2 0a1.42 1.42 0 0 0-1.2-.604c-.3 0-.8.805-.4 1.91.3.804.6 1.306.9 2.412s.9 1.91 1.2 1.71q.15-.153.3-.906c0-.1.1 0 .2.102.1 1.004.3 1.908.5 2.411.2.302.4.703.6 1.005-.2 1.709-.4 3.82-.8 5.428-2.6.704-6.6 1.91-10 2.714-3.8-3.416-6-8.643-6-14.273C0 9.45 9.4 0 21 0s21 9.45 21 21.11c0 6.936-3.3 13.066-8.4 16.887"
|
|
14
|
+
})));
|
|
25
15
|
};
|
|
26
|
-
var userCircleUrl = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2242%22%20height%3D%
|
|
16
|
+
var userCircleUrl = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2242%22%20height%3D%2239%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23ECEEF2%22%20fillRule%3D%22evenodd%22%20d%3D%22M33.6%2037.997c-2.9-1.709-7-4.725-8.6-4.725h-3.802c-.9%200-2.8-.805-3-1.507-.199-.503-.199-1.408-.1-2.212%200-.1.303-.1.402%200%20.8.905%201.099%201.508%201.9%201.508h1.8c.7%200%203.1-2.111%204.099-4.725.2-.603.4-1.608.5-2.713%200-.1.1-.202.1-.1.1.501.3%201.105.4%201.105.3.201.7-.603%201.2-1.709.5-1.006.5-1.608.7-2.413.3-1.105-.1-1.91-.4-1.91a.91.91%200%200%200-.7.302c-.1%200-.2%200-.2-.1%200-.704.1-1.81.9-2.413-1.1-1.005-.4-2.714-.4-2.714.4.2.4%200%20.4%200l-.2-1.106c.6-.1%201.1-.603%201.1-.603s-1.6-.402-2.4-1.005c.7-.202%201.117-.957%201.117-.957S27%209.952%2026%209.65c.9-.904.3-2.15.3-2.15s-1.6.441-4.7.441c-2.2-.1-3-.402-4.6%201.207-1.9%201.909-1.9%202.412-3.1%202.412%201%201.407.5%202.814.5%202.814l-.1%202.112.1.401s0%20.1.1.302c0%20.101%200%20.303.1.402l.3%201.61s-.1.1-.2%200a1.42%201.42%200%200%200-1.2-.604c-.3%200-.8.805-.4%201.91.3.804.6%201.306.9%202.412s.9%201.91%201.2%201.71q.15-.153.3-.906c0-.1.1%200%20.2.102.1%201.004.3%201.908.5%202.411.2.302.4.703.6%201.005-.2%201.709-.4%203.82-.8%205.428-2.6.704-6.6%201.91-10%202.714C2.2%2031.967%200%2026.74%200%2021.11%200%209.45%209.4%200%2021%200s21%209.45%2021%2021.11c0%206.936-3.3%2013.066-8.4%2016.887%22%20clipRule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E";
|
|
27
17
|
|
|
28
18
|
export { SvgUserCircle as ReactComponent, userCircleUrl as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
align-items: center;
|
|
3
3
|
border: 1px solid;
|
|
4
|
-
border-radius:
|
|
4
|
+
border-radius: 1.125rem;
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
color: 0.15s linear;
|
|
7
7
|
cursor: pointer;
|
|
@@ -68,88 +68,88 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.variant_primary {
|
|
71
|
-
background-color: var(--button-primary-
|
|
71
|
+
background-color: var(--button-primary-bg);
|
|
72
72
|
border-color: var(--button-primary-border-color);
|
|
73
73
|
color: var(--button-primary-color);
|
|
74
74
|
}
|
|
75
75
|
.variant_primary:hover {
|
|
76
|
-
background-color: var(--button-primary-
|
|
76
|
+
background-color: var(--button-primary-bg-hovered);
|
|
77
77
|
border-color: var(--button-primary-border-color-hovered);
|
|
78
78
|
color: var(--button-primary-color-hovered);
|
|
79
79
|
}
|
|
80
80
|
.variant_primary:active {
|
|
81
|
-
background-color: var(--button-primary-
|
|
81
|
+
background-color: var(--button-primary-bg-active);
|
|
82
82
|
border-color: var(--button-primary-border-color-active);
|
|
83
83
|
color: var(--button-primary-color-active);
|
|
84
84
|
}
|
|
85
85
|
.variant_primary_disabled {
|
|
86
|
-
background-color: var(--button-primary-
|
|
86
|
+
background-color: var(--button-primary-bg-disabled);
|
|
87
87
|
border-color: var(--button-primary-border-color-disabled);
|
|
88
88
|
color: var(--button-primary-color-disabled);
|
|
89
89
|
cursor: not-allowed;
|
|
90
90
|
pointer-events: none;
|
|
91
91
|
}
|
|
92
92
|
.variant_secondary {
|
|
93
|
-
background-color: var(--button-secondary-
|
|
93
|
+
background-color: var(--button-secondary-bg);
|
|
94
94
|
border-color: var(--button-secondary-border-color);
|
|
95
95
|
color: var(--button-secondary-color);
|
|
96
96
|
}
|
|
97
97
|
.variant_secondary:hover {
|
|
98
|
-
background-color: var(--button-secondary-
|
|
98
|
+
background-color: var(--button-secondary-bg-hovered);
|
|
99
99
|
border-color: var(--button-secondary-border-color-hovered);
|
|
100
100
|
color: var(--button-secondary-color-hovered);
|
|
101
101
|
}
|
|
102
102
|
.variant_secondary:active {
|
|
103
|
-
background-color: var(--button-secondary-
|
|
103
|
+
background-color: var(--button-secondary-bg-active);
|
|
104
104
|
border-color: var(--button-secondary-border-color-active);
|
|
105
105
|
color: var(--button-secondary-color-active);
|
|
106
106
|
}
|
|
107
107
|
.variant_secondary_disabled {
|
|
108
|
-
background-color: var(--button-secondary-
|
|
108
|
+
background-color: var(--button-secondary-bg-disabled);
|
|
109
109
|
border-color: var(--button-secondary-border-color-disabled);
|
|
110
110
|
color: var(--button-secondary-color-disabled);
|
|
111
111
|
cursor: not-allowed;
|
|
112
112
|
pointer-events: none;
|
|
113
113
|
}
|
|
114
114
|
.variant_pseudo {
|
|
115
|
-
background-color: var(--button-pseudo-
|
|
115
|
+
background-color: var(--button-pseudo-bg);
|
|
116
116
|
border-color: var(--button-pseudo-border-color);
|
|
117
117
|
color: var(--button-pseudo-color);
|
|
118
118
|
}
|
|
119
119
|
.variant_pseudo:hover {
|
|
120
|
-
background-color: var(--button-pseudo-
|
|
120
|
+
background-color: var(--button-pseudo-bg-hovered);
|
|
121
121
|
border-color: var(--button-pseudo-border-color-hovered);
|
|
122
122
|
color: var(--button-pseudo-color-hovered);
|
|
123
123
|
}
|
|
124
124
|
.variant_pseudo:active {
|
|
125
|
-
background-color: var(--button-pseudo-
|
|
125
|
+
background-color: var(--button-pseudo-bg-active);
|
|
126
126
|
border-color: var(--button-pseudo-border-color-active);
|
|
127
127
|
color: var(--button-pseudo-color-active);
|
|
128
128
|
}
|
|
129
129
|
.variant_pseudo_disabled {
|
|
130
|
-
background-color: var(--button-pseudo-
|
|
130
|
+
background-color: var(--button-pseudo-bg-disabled);
|
|
131
131
|
border-color: var(--button-pseudo-border-color-disabled);
|
|
132
132
|
color: var(--button-pseudo-color-disabled);
|
|
133
133
|
cursor: not-allowed;
|
|
134
134
|
pointer-events: none;
|
|
135
135
|
}
|
|
136
136
|
.variant_outline {
|
|
137
|
-
background-color: var(--button-outline-
|
|
137
|
+
background-color: var(--button-outline-bg);
|
|
138
138
|
border-color: var(--button-outline-border-color);
|
|
139
139
|
color: var(--button-outline-color);
|
|
140
140
|
}
|
|
141
141
|
.variant_outline:hover {
|
|
142
|
-
background-color: var(--button-outline-
|
|
142
|
+
background-color: var(--button-outline-bg-hovered);
|
|
143
143
|
border-color: var(--button-outline-border-color-hovered);
|
|
144
144
|
color: var(--button-outline-color-hovered);
|
|
145
145
|
}
|
|
146
146
|
.variant_outline:active {
|
|
147
|
-
background-color: var(--button-outline-
|
|
147
|
+
background-color: var(--button-outline-bg-active);
|
|
148
148
|
border-color: var(--button-outline-border-color-active);
|
|
149
149
|
color: var(--button-outline-color-active);
|
|
150
150
|
}
|
|
151
151
|
.variant_outline_disabled {
|
|
152
|
-
background-color: var(--button-outline-
|
|
152
|
+
background-color: var(--button-outline-bg-disabled);
|
|
153
153
|
border-color: var(--button-outline-border-color-disabled);
|
|
154
154
|
color: var(--button-outline-color-disabled);
|
|
155
155
|
cursor: not-allowed;
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
color: var(--button-clear-color-active);
|
|
168
168
|
}
|
|
169
169
|
.variant_clear_disabled {
|
|
170
|
-
background-color: var(--button-clear-
|
|
170
|
+
background-color: var(--button-clear-bg-disabled);
|
|
171
171
|
border-color: var(--button-clear-border-color-disabled);
|
|
172
172
|
color: var(--button-clear-color-disabled);
|
|
173
173
|
cursor: not-allowed;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.checked {
|
|
38
|
-
background-color: var(--checkbox-
|
|
38
|
+
background-color: var(--checkbox-bg-checked);
|
|
39
39
|
border: 0;
|
|
40
40
|
}
|
|
41
41
|
.checked::after {
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
box-shadow: 0 0 0 2px var(--checkbox-box-shadow-focused);
|
|
77
77
|
}
|
|
78
78
|
.control_variant_primary:hover:not(:disabled) + .fake-checkbox {
|
|
79
|
-
background-color: var(--checkbox-
|
|
79
|
+
background-color: var(--checkbox-bg-hovered);
|
|
80
80
|
}
|
|
81
81
|
.control_variant_primary:active:not(:disabled) + .fake-checkbox {
|
|
82
|
-
background-color: var(--checkbox-
|
|
82
|
+
background-color: var(--checkbox-bg-active);
|
|
83
83
|
border-color: var(--checkbox-border-color-active);
|
|
84
84
|
box-shadow: var(--checkbox-box-shadow-active);
|
|
85
85
|
}
|
|
86
86
|
.control_variant_primary:disabled + .fake-checkbox {
|
|
87
|
-
background-color: var(--checkbox-
|
|
87
|
+
background-color: var(--checkbox-bg-disabled);
|
|
88
88
|
z-index: 1;
|
|
89
89
|
}
|
|
@@ -51,26 +51,26 @@
|
|
|
51
51
|
position: absolute;
|
|
52
52
|
}
|
|
53
53
|
.input:not(.input_disabled, .input_error):hover + .icon {
|
|
54
|
-
border-color: var(--input-radio-
|
|
54
|
+
border-color: var(--input-radio-bg-hovered);
|
|
55
55
|
}
|
|
56
56
|
.input:not(.input_disabled, .input_error):focus + .icon {
|
|
57
57
|
box-shadow: 0 0 0 2px var(--input-radio-box-shadow-focused);
|
|
58
58
|
}
|
|
59
59
|
.input:not(.input_disabled, .input_error):active + .icon {
|
|
60
|
-
background-color: var(--input-radio-
|
|
60
|
+
background-color: var(--input-radio-bg-focused);
|
|
61
61
|
border-color: var(--input-radio-border-color-focused);
|
|
62
62
|
box-shadow: 0 0 0 2px var(--input-radio-box-shadow-focused);
|
|
63
63
|
}
|
|
64
64
|
.input:not(.input_disabled, .input_error) .input_checked:hover + .icon {
|
|
65
|
-
border-color: var(--input-radio-
|
|
65
|
+
border-color: var(--input-radio-bg-hovered);
|
|
66
66
|
}
|
|
67
67
|
.input:not(.input_disabled, .input_error) .input_checked:active + .icon {
|
|
68
68
|
background-color: var(--palette-white);
|
|
69
|
-
border: 4px solid var(--input-radio-
|
|
69
|
+
border: 4px solid var(--input-radio-bg-checked);
|
|
70
70
|
}
|
|
71
71
|
.input_checked + .icon {
|
|
72
72
|
background-color: var(--palette-white);
|
|
73
|
-
border: 4px solid var(--input-radio-
|
|
73
|
+
border: 4px solid var(--input-radio-bg-checked);
|
|
74
74
|
}
|
|
75
75
|
.input_disabled + .icon {
|
|
76
76
|
border-radius: 50%;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import classNames from 'classnames/bind';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
|
|
5
|
+
var clx = classNames.bind(styles);
|
|
6
|
+
var Status = function Status(_a) {
|
|
7
|
+
var _b;
|
|
8
|
+
var className = _a.className,
|
|
9
|
+
_c = _a.tag,
|
|
10
|
+
Component = _c === void 0 ? "span" : _c,
|
|
11
|
+
children = _a.children,
|
|
12
|
+
type = _a.type;
|
|
13
|
+
return /*#__PURE__*/React__default.createElement(Component, {
|
|
14
|
+
className: clx(styles.root, (_b = {}, _b["root_".concat(type)] = !!type, _b), className)
|
|
15
|
+
}, children);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Status as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 0.5rem;
|
|
5
|
+
background-color: var(--status-neutral-bg);
|
|
6
|
+
line-height: 1.5rem;
|
|
7
|
+
padding: 0 0.5rem;
|
|
8
|
+
border-radius: 6rem;
|
|
9
|
+
inline-size: fit-content;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
}
|
|
15
|
+
.root::before {
|
|
16
|
+
background-color: var(--status-neutral);
|
|
17
|
+
content: "";
|
|
18
|
+
inline-size: 0.4rem;
|
|
19
|
+
block-size: 0.4rem;
|
|
20
|
+
border-radius: 100%;
|
|
21
|
+
}
|
|
22
|
+
.root_success {
|
|
23
|
+
background-color: var(--status-success-bg);
|
|
24
|
+
}
|
|
25
|
+
.root_success::before {
|
|
26
|
+
background-color: var(--status-success);
|
|
27
|
+
}
|
|
28
|
+
.root_info {
|
|
29
|
+
background-color: var(--status-info-bg);
|
|
30
|
+
}
|
|
31
|
+
.root_info::before {
|
|
32
|
+
background-color: var(--status-info);
|
|
33
|
+
}
|
|
34
|
+
.root_failure {
|
|
35
|
+
background-color: var(--status-failure-bg);
|
|
36
|
+
}
|
|
37
|
+
.root_failure::before {
|
|
38
|
+
background-color: var(--status-failure);
|
|
39
|
+
}
|
|
40
|
+
.root_warning {
|
|
41
|
+
background-color: var(--status-warning-bg);
|
|
42
|
+
}
|
|
43
|
+
.root_warning::before {
|
|
44
|
+
background-color: var(--status-warning);
|
|
45
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type StatusTag = "span" | "div";
|
|
2
|
+
export declare enum STATUS_TYPE {
|
|
3
|
+
SUCCESS = "success",
|
|
4
|
+
FAILURE = "failure",
|
|
5
|
+
INFO = "info",
|
|
6
|
+
WARNING = "warning"
|
|
7
|
+
}
|
|
8
|
+
export type StatusProps = {
|
|
9
|
+
className?: string;
|
|
10
|
+
tag?: StatusTag;
|
|
11
|
+
children?: string;
|
|
12
|
+
type?: STATUS_TYPE;
|
|
13
|
+
};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
width: 40px;
|
|
19
19
|
}
|
|
20
20
|
.wrapper_variant_primary {
|
|
21
|
-
background-color: var(--switch-
|
|
21
|
+
background-color: var(--switch-bg);
|
|
22
22
|
border-color: var(--switch-border-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
z-index: 1;
|
|
49
49
|
}
|
|
50
50
|
.checkbox:checked + .wrapper {
|
|
51
|
-
background-color: var(--switch-
|
|
51
|
+
background-color: var(--switch-bg-checked);
|
|
52
52
|
border-color: var(--switch-border-color-checked);
|
|
53
53
|
}
|
|
54
54
|
.checkbox:checked + .wrapper .base-switch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
|
|
3
3
|
var Common = {
|
|
4
|
-
WHITE: "#
|
|
4
|
+
WHITE: "#FFF",
|
|
5
5
|
BLACK: "#000"
|
|
6
6
|
};
|
|
7
7
|
var Backgrounds = {
|
|
@@ -12,8 +12,8 @@ var Backgrounds = {
|
|
|
12
12
|
BG_5: "#BCC1CC"
|
|
13
13
|
};
|
|
14
14
|
var Accents = {
|
|
15
|
-
ALERT: "#
|
|
16
|
-
SUCCESS: "#
|
|
15
|
+
ALERT: "#FF564E",
|
|
16
|
+
SUCCESS: "#4AC99B"
|
|
17
17
|
};
|
|
18
18
|
var Color = __assign(__assign(__assign({}, Common), Accents), Backgrounds);
|
|
19
19
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
|
|
3
3
|
var PrimaryBA = {
|
|
4
|
-
PRIMARY_BA_1: "#
|
|
5
|
-
PRIMARY_BA_2: "#
|
|
6
|
-
PRIMARY_BA_3: "#
|
|
7
|
-
PRIMARY_BA_4: "#
|
|
8
|
-
PRIMARY_BA_5: "#
|
|
4
|
+
PRIMARY_BA_1: "#FFE695",
|
|
5
|
+
PRIMARY_BA_2: "#FFE07B",
|
|
6
|
+
PRIMARY_BA_3: "#FFD85A",
|
|
7
|
+
PRIMARY_BA_4: "#FFCE31",
|
|
8
|
+
PRIMARY_BA_5: "#FFC818"
|
|
9
9
|
};
|
|
10
10
|
var SecondaryBA = {
|
|
11
|
-
SECONDARY_BA_1: "#
|
|
12
|
-
SECONDARY_BA_2: "#
|
|
11
|
+
SECONDARY_BA_1: "#7D7D7D",
|
|
12
|
+
SECONDARY_BA_2: "#5C5C5C",
|
|
13
13
|
SECONDARY_BA_3: "#333",
|
|
14
|
-
SECONDARY_BA_4: "#
|
|
14
|
+
SECONDARY_BA_4: "#1F1F1F",
|
|
15
15
|
SECONDARY_BA_5: "#000"
|
|
16
16
|
};
|
|
17
17
|
var TretiaryBA = {
|
|
@@ -19,13 +19,13 @@ var TretiaryBA = {
|
|
|
19
19
|
TRETIARY_BA_2: "#C0CFF8",
|
|
20
20
|
TRETIARY_BA_3: "#AFC3F5",
|
|
21
21
|
TRETIARY_BA_4: "#80A0ED",
|
|
22
|
-
TRETIARY_BA_5: "#
|
|
22
|
+
TRETIARY_BA_5: "#6088EA"
|
|
23
23
|
};
|
|
24
24
|
var BrandBA = {
|
|
25
|
-
BRAND_BA_1: "#
|
|
26
|
-
BRAND_BA_2: "#
|
|
27
|
-
BRAND_BA_3: "#
|
|
28
|
-
BRAND_BA_4: "#
|
|
25
|
+
BRAND_BA_1: "#FCDFE2",
|
|
26
|
+
BRAND_BA_2: "#FACDD2",
|
|
27
|
+
BRAND_BA_3: "#F59FA7",
|
|
28
|
+
BRAND_BA_4: "#EF6975",
|
|
29
29
|
BRAND_BA_5: "#E61428"
|
|
30
30
|
};
|
|
31
31
|
var Color = __assign(__assign(__assign(__assign({}, BrandBA), PrimaryBA), SecondaryBA), TretiaryBA);
|
|
@@ -8,18 +8,18 @@ var Primary = {
|
|
|
8
8
|
PRIMARY_DEFAULT_5: "#0066DC"
|
|
9
9
|
};
|
|
10
10
|
var Secondary = {
|
|
11
|
-
SECONDARY_DEFAULT_1: "#
|
|
12
|
-
SECONDARY_DEFAULT_2: "#
|
|
13
|
-
SECONDARY_DEFAULT_3: "#
|
|
14
|
-
SECONDARY_DEFAULT_4: "#
|
|
15
|
-
SECONDARY_DEFAULT_5: "#
|
|
11
|
+
SECONDARY_DEFAULT_1: "#FFF1DB",
|
|
12
|
+
SECONDARY_DEFAULT_2: "#FFDAA3",
|
|
13
|
+
SECONDARY_DEFAULT_3: "#FFCA79",
|
|
14
|
+
SECONDARY_DEFAULT_4: "#F4B968",
|
|
15
|
+
SECONDARY_DEFAULT_5: "#FFAB0F"
|
|
16
16
|
};
|
|
17
17
|
var Tretiary = {
|
|
18
18
|
TRETIARY_DEFAULT_1: "#FFF5F0",
|
|
19
19
|
TRETIARY_DEFAULT_2: "#FFEAE2",
|
|
20
20
|
TRETIARY_DEFAULT_3: "#FFD8CA",
|
|
21
|
-
TRETIARY_DEFAULT_4: "#FFA384
|
|
22
|
-
TRETIARY_DEFAULT_5: "#
|
|
21
|
+
TRETIARY_DEFAULT_4: "#FFA384",
|
|
22
|
+
TRETIARY_DEFAULT_5: "#FC5200"
|
|
23
23
|
};
|
|
24
24
|
var Brand = {
|
|
25
25
|
BRAND_DEFAULT_1: "#F393D2",
|