colibri-ui 0.7.63 → 0.7.65
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/Checkbox/Checkbox.module.css +7 -7
- package/Icons/Exit.d.ts +4 -0
- package/Icons/Exit.js +35 -0
- package/Icons/Plus.js +6 -9
- package/Icons/Setting.js +42 -0
- package/Icons/index.d.ts +2 -0
- package/Icons/index.js +4 -0
- package/InputRadio/InputRadio.module.css +8 -8
- package/Switch/Switch.module.css +4 -4
- package/Theme/index.d.ts +38 -32
- package/Theme/themes/buenos_aires.d.ts +19 -16
- package/Theme/themes/buenos_aires.js +19 -16
- package/Theme/themes/default.d.ts +19 -16
- package/Theme/themes/default.js +19 -16
- package/TimeSelect/Label/index.js +23 -0
- package/TimeSelect/helpers.js +28 -0
- package/TimeSelect/index.js +41 -0
- package/Tooltip/Tooltip.module.css +122 -0
- package/Tooltip/index.d.ts +4 -0
- package/Tooltip/index.js +111 -0
- package/Tooltip/index.props.d.ts +13 -0
- package/Tooltip/package.json +6 -0
- package/Typography/index.d.ts +1 -1
- package/esm/Checkbox/Checkbox.module.css +7 -7
- package/esm/Icons/Exit.d.ts +4 -0
- package/esm/Icons/Exit.js +27 -0
- package/esm/Icons/Plus.js +6 -9
- package/esm/Icons/Setting.js +34 -0
- package/esm/Icons/index.d.ts +2 -0
- package/esm/Icons/index.js +2 -0
- package/esm/InputRadio/InputRadio.module.css +8 -8
- package/esm/Switch/Switch.module.css +4 -4
- package/esm/Theme/index.d.ts +38 -32
- package/esm/Theme/themes/buenos_aires.d.ts +19 -16
- package/esm/Theme/themes/buenos_aires.js +19 -16
- package/esm/Theme/themes/default.d.ts +19 -16
- package/esm/Theme/themes/default.js +19 -16
- package/esm/TimeSelect/Label/index.js +15 -0
- package/esm/TimeSelect/helpers.js +24 -0
- package/esm/TimeSelect/index.js +33 -0
- package/esm/Tooltip/Tooltip.module.css +122 -0
- package/esm/Tooltip/index.d.ts +4 -0
- package/esm/Tooltip/index.js +101 -0
- package/esm/Tooltip/index.props.d.ts +13 -0
- package/esm/Typography/index.d.ts +1 -1
- package/esm/index.d.ts +4 -0
- package/esm/index.js +6 -0
- package/esm/theme_ba_variables.css +19 -16
- package/esm/theme_default_variables.css +19 -16
- package/index.d.ts +4 -0
- package/index.js +16 -4
- package/package.json +1 -1
- package/theme_ba_variables.css +19 -16
- package/theme_default_variables.css +19 -16
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.checked {
|
|
38
|
-
background-color: var(--checkbox-
|
|
38
|
+
background-color: var(--checkbox-background-color-checked);
|
|
39
39
|
border: 0;
|
|
40
40
|
}
|
|
41
41
|
.checked::after {
|
|
@@ -73,17 +73,17 @@
|
|
|
73
73
|
border-color: var(--palette-bg-3);
|
|
74
74
|
}
|
|
75
75
|
.control_variant_primary:focus:not(:disabled) + .fake-checkbox {
|
|
76
|
-
box-shadow: 0 0 0 2px var(--checkbox-
|
|
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-background-color-hovered);
|
|
80
80
|
}
|
|
81
81
|
.control_variant_primary:active:not(:disabled) + .fake-checkbox {
|
|
82
|
-
background-color: var(--checkbox-
|
|
83
|
-
border-color: var(--checkbox-
|
|
84
|
-
box-shadow: var(--checkbox-
|
|
82
|
+
background-color: var(--checkbox-background-color-active);
|
|
83
|
+
border-color: var(--checkbox-border-color-active);
|
|
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-background-color-disabled);
|
|
88
88
|
z-index: 1;
|
|
89
89
|
}
|
package/Icons/Exit.d.ts
ADDED
package/Icons/Exit.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
|
|
12
|
+
var Exit = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
13
|
+
var _b = _a.fill,
|
|
14
|
+
fill = _b === void 0 ? "currentColor" : _b,
|
|
15
|
+
_c = _a.width,
|
|
16
|
+
width = _c === void 0 ? 24 : _c,
|
|
17
|
+
_d = _a.height,
|
|
18
|
+
height = _d === void 0 ? 24 : _d,
|
|
19
|
+
props = tslib.__rest(_a, ["fill", "width", "height"]);
|
|
20
|
+
return /*#__PURE__*/React__default.default.createElement("svg", tslib.__assign({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: width,
|
|
23
|
+
height: height,
|
|
24
|
+
ref: ref
|
|
25
|
+
}, props, {
|
|
26
|
+
fill: "none"
|
|
27
|
+
}), /*#__PURE__*/React__default.default.createElement("path", {
|
|
28
|
+
fill: fill,
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "M22.17 11.205a1.125 1.125 0 0 1 0 1.59l-3.75 3.75a1.126 1.126 0 1 1-1.59-1.59l1.83-1.83H7.125a1.125 1.125 0 1 1 0-2.25H18.66l-1.83-1.83a1.125 1.125 0 0 1 1.59-1.59zm-7.92-4.83a1.125 1.125 0 1 1-2.25 0V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25h3.75A2.25 2.25 0 0 0 12 18v-.375a1.125 1.125 0 1 1 2.25 0V18a4.5 4.5 0 0 1-4.5 4.5H6A4.5 4.5 0 0 1 1.5 18V6A4.5 4.5 0 0 1 6 1.5h3.75a4.5 4.5 0 0 1 4.5 4.5z",
|
|
31
|
+
clipRule: "evenodd"
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.default = Exit;
|
package/Icons/Plus.js
CHANGED
|
@@ -19,20 +19,17 @@ var PlusIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
19
19
|
props = tslib.__rest(_a, ["fill", "width", "height"]);
|
|
20
20
|
return /*#__PURE__*/React__default.default.createElement("svg", tslib.__assign({
|
|
21
21
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
-
fill: fill,
|
|
23
22
|
width: width,
|
|
24
23
|
height: height,
|
|
25
24
|
ref: ref
|
|
26
25
|
}, props, {
|
|
27
|
-
|
|
28
|
-
}), /*#__PURE__*/React__default.default.createElement("g", {
|
|
29
|
-
fill: fill,
|
|
30
|
-
fillRule: "evenodd"
|
|
31
|
-
}, /*#__PURE__*/React__default.default.createElement("path", {
|
|
32
|
-
d: "M4 13h16v-2H4z"
|
|
26
|
+
fill: "none"
|
|
33
27
|
}), /*#__PURE__*/React__default.default.createElement("path", {
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
fill: fill,
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "M12.5 1a1.26 1.26 0 0 1 1.26 1.26v7.98h7.98a1.26 1.26 0 1 1 0 2.52h-7.98v7.98a1.26 1.26 0 0 1-2.52 0v-7.98H3.26a1.26 1.26 0 0 1 0-2.52h7.98V2.26A1.26 1.26 0 0 1 12.5 1",
|
|
31
|
+
clipRule: "evenodd"
|
|
32
|
+
}));
|
|
36
33
|
});
|
|
37
34
|
|
|
38
35
|
exports.default = PlusIcon;
|
package/Icons/Setting.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
|
|
12
|
+
var Setting = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
13
|
+
var _b = _a.fill,
|
|
14
|
+
fill = _b === void 0 ? "currentColor" : _b,
|
|
15
|
+
_c = _a.width,
|
|
16
|
+
width = _c === void 0 ? 24 : _c,
|
|
17
|
+
_d = _a.height,
|
|
18
|
+
height = _d === void 0 ? 24 : _d,
|
|
19
|
+
props = tslib.__rest(_a, ["fill", "width", "height"]);
|
|
20
|
+
return /*#__PURE__*/React__default.default.createElement("svg", tslib.__assign({}, props, {
|
|
21
|
+
ref: ref,
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: width,
|
|
24
|
+
height: height,
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
strokeWidth: "1.5",
|
|
27
|
+
stroke: fill,
|
|
28
|
+
fill: "none",
|
|
29
|
+
strokeLinecap: "round",
|
|
30
|
+
strokeLinejoin: "round"
|
|
31
|
+
}), /*#__PURE__*/React__default.default.createElement("path", {
|
|
32
|
+
stroke: "none",
|
|
33
|
+
d: "M0 0h24v24H0z",
|
|
34
|
+
fill: "none"
|
|
35
|
+
}), /*#__PURE__*/React__default.default.createElement("path", {
|
|
36
|
+
d: "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"
|
|
37
|
+
}), /*#__PURE__*/React__default.default.createElement("path", {
|
|
38
|
+
d: "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"
|
|
39
|
+
}));
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
exports.default = Setting;
|
package/Icons/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as ArrowNext } from "./ArrowNext";
|
|
|
2
2
|
export { default as Cart } from "./Cart";
|
|
3
3
|
export { default as Chevron } from "./Chevron";
|
|
4
4
|
export { default as Close } from "./Close";
|
|
5
|
+
export { default as Exit } from "./Exit";
|
|
5
6
|
export { default as EyeOpen } from "./EyeOpen";
|
|
6
7
|
export { default as EyeClosed } from "./EyeClosed";
|
|
7
8
|
export { default as Help } from "./Help";
|
|
@@ -9,5 +10,6 @@ export { default as Info } from "./Info";
|
|
|
9
10
|
export { default as Minus } from "./Minus";
|
|
10
11
|
export { default as More } from "./More";
|
|
11
12
|
export { default as Plus } from "./Plus";
|
|
13
|
+
export { default as Setting } from "./Setting";
|
|
12
14
|
export { default as Trash } from "./Trash";
|
|
13
15
|
export { default as User } from "./User";
|
package/Icons/index.js
CHANGED
|
@@ -4,6 +4,7 @@ var ArrowNext = require('./ArrowNext.js');
|
|
|
4
4
|
var Cart = require('./Cart.js');
|
|
5
5
|
var Chevron = require('./Chevron.js');
|
|
6
6
|
var Close = require('./Close.js');
|
|
7
|
+
var Exit = require('./Exit.js');
|
|
7
8
|
var EyeOpen = require('./EyeOpen.js');
|
|
8
9
|
var EyeClosed = require('./EyeClosed.js');
|
|
9
10
|
var Help = require('./Help.js');
|
|
@@ -11,6 +12,7 @@ var Info = require('./Info.js');
|
|
|
11
12
|
var Minus = require('./Minus.js');
|
|
12
13
|
var More = require('./More.js');
|
|
13
14
|
var Plus = require('./Plus.js');
|
|
15
|
+
var Setting = require('./Setting.js');
|
|
14
16
|
var Trash = require('./Trash.js');
|
|
15
17
|
var User = require('./User.js');
|
|
16
18
|
|
|
@@ -20,6 +22,7 @@ exports.ArrowNext = ArrowNext.default;
|
|
|
20
22
|
exports.Cart = Cart.default;
|
|
21
23
|
exports.Chevron = Chevron.default;
|
|
22
24
|
exports.Close = Close.default;
|
|
25
|
+
exports.Exit = Exit.default;
|
|
23
26
|
exports.EyeOpen = EyeOpen.default;
|
|
24
27
|
exports.EyeClosed = EyeClosed.default;
|
|
25
28
|
exports.Help = Help.default;
|
|
@@ -27,5 +30,6 @@ exports.Info = Info.default;
|
|
|
27
30
|
exports.Minus = Minus.default;
|
|
28
31
|
exports.More = More.default;
|
|
29
32
|
exports.Plus = Plus.default;
|
|
33
|
+
exports.Setting = Setting.default;
|
|
30
34
|
exports.Trash = Trash.default;
|
|
31
35
|
exports.User = User.default;
|
|
@@ -51,26 +51,26 @@
|
|
|
51
51
|
position: absolute;
|
|
52
52
|
}
|
|
53
53
|
.input:not(.input_disabled, .input_error):hover + .icon {
|
|
54
|
-
border-color: var(--
|
|
54
|
+
border-color: var(--input-radio-background-color-hovered);
|
|
55
55
|
}
|
|
56
56
|
.input:not(.input_disabled, .input_error):focus + .icon {
|
|
57
|
-
box-shadow: 0 0 0 2px var(--
|
|
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(--
|
|
61
|
-
border-color: var(--
|
|
62
|
-
box-shadow: 0 0 0 2px var(--
|
|
60
|
+
background-color: var(--input-radio-background-color-focused);
|
|
61
|
+
border-color: var(--input-radio-border-color-focused);
|
|
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(--
|
|
65
|
+
border-color: var(--input-radio-background-color-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(--
|
|
69
|
+
border: 4px solid var(--input-radio-background-color-checked);
|
|
70
70
|
}
|
|
71
71
|
.input_checked + .icon {
|
|
72
72
|
background-color: var(--palette-white);
|
|
73
|
-
border: 4px solid var(--
|
|
73
|
+
border: 4px solid var(--input-radio-background-color-checked);
|
|
74
74
|
}
|
|
75
75
|
.input_disabled + .icon {
|
|
76
76
|
border-radius: 50%;
|
package/Switch/Switch.module.css
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
width: 40px;
|
|
19
19
|
}
|
|
20
20
|
.wrapper_variant_primary {
|
|
21
|
-
background-color: var(--switch-
|
|
22
|
-
border-color: var(--switch-
|
|
21
|
+
background-color: var(--switch-background-color);
|
|
22
|
+
border-color: var(--switch-border-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.base-switch {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
z-index: 1;
|
|
49
49
|
}
|
|
50
50
|
.checkbox:checked + .wrapper {
|
|
51
|
-
background-color: var(--switch-
|
|
52
|
-
border-color: var(--switch-
|
|
51
|
+
background-color: var(--switch-background-color-checked);
|
|
52
|
+
border-color: var(--switch-border-color-checked);
|
|
53
53
|
}
|
|
54
54
|
.checkbox:checked + .wrapper .base-switch {
|
|
55
55
|
transform: translateX(18px);
|
package/Theme/index.d.ts
CHANGED
|
@@ -84,22 +84,25 @@ export declare const THEMES: {
|
|
|
84
84
|
"input-primary-border-color-error": string;
|
|
85
85
|
"input-primary-background-color-error": string;
|
|
86
86
|
"input-primary-box-shadow-color-error": string;
|
|
87
|
-
"checkbox-
|
|
88
|
-
"checkbox-
|
|
89
|
-
"checkbox-
|
|
90
|
-
"checkbox-
|
|
91
|
-
"checkbox-
|
|
92
|
-
"checkbox-
|
|
93
|
-
"checkbox-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"switch-
|
|
100
|
-
"switch-
|
|
101
|
-
"switch-
|
|
102
|
-
"switch-
|
|
87
|
+
"checkbox-background-color-checked": string;
|
|
88
|
+
"checkbox-background-color-hovered": string;
|
|
89
|
+
"checkbox-box-shadow-focused": string;
|
|
90
|
+
"checkbox-background-color-active": string;
|
|
91
|
+
"checkbox-border-color-active": string;
|
|
92
|
+
"checkbox-box-shadow-active": string;
|
|
93
|
+
"checkbox-background-color-disabled": string;
|
|
94
|
+
"input-radio-background-color-checked": string;
|
|
95
|
+
"input-radio-background-color-hovered": string;
|
|
96
|
+
"input-radio-box-shadow-focused": string;
|
|
97
|
+
"input-radio-background-color-focused": string;
|
|
98
|
+
"input-radio-border-color-focused": string;
|
|
99
|
+
"switch-background-color": string;
|
|
100
|
+
"switch-border-color": string;
|
|
101
|
+
"switch-background-color-checked": string;
|
|
102
|
+
"switch-border-color-checked": string;
|
|
103
|
+
"tooltip-background-color": string;
|
|
104
|
+
"tooltip-color": string;
|
|
105
|
+
"tooltip-border-radius": string;
|
|
103
106
|
};
|
|
104
107
|
BA: {
|
|
105
108
|
"palette-black": string;
|
|
@@ -183,21 +186,24 @@ export declare const THEMES: {
|
|
|
183
186
|
"input-primary-border-color-error": string;
|
|
184
187
|
"input-primary-background-color-error": string;
|
|
185
188
|
"input-primary-box-shadow-color-error": string;
|
|
186
|
-
"checkbox-
|
|
187
|
-
"checkbox-
|
|
188
|
-
"checkbox-
|
|
189
|
-
"checkbox-
|
|
190
|
-
"checkbox-
|
|
191
|
-
"checkbox-
|
|
192
|
-
"checkbox-
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"switch-
|
|
199
|
-
"switch-
|
|
200
|
-
"switch-
|
|
201
|
-
"switch-
|
|
189
|
+
"checkbox-background-color-checked": string;
|
|
190
|
+
"checkbox-background-color-hovered": string;
|
|
191
|
+
"checkbox-box-shadow-focused": string;
|
|
192
|
+
"checkbox-background-color-active": string;
|
|
193
|
+
"checkbox-border-color-active": string;
|
|
194
|
+
"checkbox-box-shadow-active": string;
|
|
195
|
+
"checkbox-background-color-disabled": string;
|
|
196
|
+
"input-radio-background-color-checked": string;
|
|
197
|
+
"input-radio-background-color-hovered": string;
|
|
198
|
+
"input-radio-box-shadow-focused": string;
|
|
199
|
+
"input-radio-background-color-focused": string;
|
|
200
|
+
"input-radio-border-color-focused": string;
|
|
201
|
+
"switch-background-color": string;
|
|
202
|
+
"switch-border-color": string;
|
|
203
|
+
"switch-background-color-checked": string;
|
|
204
|
+
"switch-border-color-checked": string;
|
|
205
|
+
"tooltip-background-color": string;
|
|
206
|
+
"tooltip-color": string;
|
|
207
|
+
"tooltip-border-radius": string;
|
|
202
208
|
};
|
|
203
209
|
};
|
|
@@ -80,21 +80,24 @@ declare const _default: {
|
|
|
80
80
|
"input-primary-border-color-error": string;
|
|
81
81
|
"input-primary-background-color-error": string;
|
|
82
82
|
"input-primary-box-shadow-color-error": string;
|
|
83
|
-
"checkbox-
|
|
84
|
-
"checkbox-
|
|
85
|
-
"checkbox-
|
|
86
|
-
"checkbox-
|
|
87
|
-
"checkbox-
|
|
88
|
-
"checkbox-
|
|
89
|
-
"checkbox-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"switch-
|
|
96
|
-
"switch-
|
|
97
|
-
"switch-
|
|
98
|
-
"switch-
|
|
83
|
+
"checkbox-background-color-checked": string;
|
|
84
|
+
"checkbox-background-color-hovered": string;
|
|
85
|
+
"checkbox-box-shadow-focused": string;
|
|
86
|
+
"checkbox-background-color-active": string;
|
|
87
|
+
"checkbox-border-color-active": string;
|
|
88
|
+
"checkbox-box-shadow-active": string;
|
|
89
|
+
"checkbox-background-color-disabled": string;
|
|
90
|
+
"input-radio-background-color-checked": string;
|
|
91
|
+
"input-radio-background-color-hovered": string;
|
|
92
|
+
"input-radio-box-shadow-focused": string;
|
|
93
|
+
"input-radio-background-color-focused": string;
|
|
94
|
+
"input-radio-border-color-focused": string;
|
|
95
|
+
"switch-background-color": string;
|
|
96
|
+
"switch-border-color": string;
|
|
97
|
+
"switch-background-color-checked": string;
|
|
98
|
+
"switch-border-color-checked": string;
|
|
99
|
+
"tooltip-background-color": string;
|
|
100
|
+
"tooltip-color": string;
|
|
101
|
+
"tooltip-border-radius": string;
|
|
99
102
|
};
|
|
100
103
|
export default _default;
|
|
@@ -86,22 +86,25 @@ var THEME_BA = {
|
|
|
86
86
|
"input-primary-border-color-error": index.default.ALERT,
|
|
87
87
|
"input-primary-background-color-error": index.default.TRETIARY_DEFAULT_2,
|
|
88
88
|
"input-primary-box-shadow-color-error": index.default.TRETIARY_DEFAULT_2,
|
|
89
|
-
"checkbox-
|
|
90
|
-
"checkbox-
|
|
91
|
-
"checkbox-
|
|
92
|
-
"checkbox-
|
|
93
|
-
"checkbox-
|
|
94
|
-
"checkbox-
|
|
95
|
-
"checkbox-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"switch-
|
|
102
|
-
"switch-
|
|
103
|
-
"switch-
|
|
104
|
-
"switch-
|
|
89
|
+
"checkbox-background-color-checked": index.default.PRIMARY_BA_4,
|
|
90
|
+
"checkbox-background-color-hovered": index.default.PRIMARY_BA_4,
|
|
91
|
+
"checkbox-box-shadow-focused": index.default.PRIMARY_BA_1,
|
|
92
|
+
"checkbox-background-color-active": index.default.PRIMARY_BA_4,
|
|
93
|
+
"checkbox-border-color-active": index.default.PRIMARY_BA_4,
|
|
94
|
+
"checkbox-box-shadow-active": index.default.PRIMARY_BA_4,
|
|
95
|
+
"checkbox-background-color-disabled": index.default.PRIMARY_BA_1,
|
|
96
|
+
"input-radio-background-color-checked": index.default.PRIMARY_BA_4,
|
|
97
|
+
"input-radio-background-color-hovered": index.default.PRIMARY_BA_4,
|
|
98
|
+
"input-radio-box-shadow-focused": index.default.PRIMARY_BA_1,
|
|
99
|
+
"input-radio-background-color-focused": index.default.PRIMARY_BA_1,
|
|
100
|
+
"input-radio-border-color-focused": index.default.PRIMARY_BA_1,
|
|
101
|
+
"switch-background-color": index.default.BG_2,
|
|
102
|
+
"switch-border-color": index.default.BG_2,
|
|
103
|
+
"switch-background-color-checked": index.default.PRIMARY_BA_5,
|
|
104
|
+
"switch-border-color-checked": index.default.PRIMARY_BA_5,
|
|
105
|
+
"tooltip-background-color": index.default.SECONDARY_BA_3,
|
|
106
|
+
"tooltip-color": index.default.WHITE,
|
|
107
|
+
"tooltip-border-radius": "4px"
|
|
105
108
|
};
|
|
106
109
|
|
|
107
110
|
exports.default = THEME_BA;
|
|
@@ -83,21 +83,24 @@ declare const _default: {
|
|
|
83
83
|
"input-primary-border-color-error": string;
|
|
84
84
|
"input-primary-background-color-error": string;
|
|
85
85
|
"input-primary-box-shadow-color-error": string;
|
|
86
|
-
"checkbox-
|
|
87
|
-
"checkbox-
|
|
88
|
-
"checkbox-
|
|
89
|
-
"checkbox-
|
|
90
|
-
"checkbox-
|
|
91
|
-
"checkbox-
|
|
92
|
-
"checkbox-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"switch-
|
|
99
|
-
"switch-
|
|
100
|
-
"switch-
|
|
101
|
-
"switch-
|
|
86
|
+
"checkbox-background-color-checked": string;
|
|
87
|
+
"checkbox-background-color-hovered": string;
|
|
88
|
+
"checkbox-box-shadow-focused": string;
|
|
89
|
+
"checkbox-background-color-active": string;
|
|
90
|
+
"checkbox-border-color-active": string;
|
|
91
|
+
"checkbox-box-shadow-active": string;
|
|
92
|
+
"checkbox-background-color-disabled": string;
|
|
93
|
+
"input-radio-background-color-checked": string;
|
|
94
|
+
"input-radio-background-color-hovered": string;
|
|
95
|
+
"input-radio-box-shadow-focused": string;
|
|
96
|
+
"input-radio-background-color-focused": string;
|
|
97
|
+
"input-radio-border-color-focused": string;
|
|
98
|
+
"switch-background-color": string;
|
|
99
|
+
"switch-border-color": string;
|
|
100
|
+
"switch-background-color-checked": string;
|
|
101
|
+
"switch-border-color-checked": string;
|
|
102
|
+
"tooltip-background-color": string;
|
|
103
|
+
"tooltip-color": string;
|
|
104
|
+
"tooltip-border-radius": string;
|
|
102
105
|
};
|
|
103
106
|
export default _default;
|
package/Theme/themes/default.js
CHANGED
|
@@ -89,22 +89,25 @@ var THEME_DEFAULT = {
|
|
|
89
89
|
"input-primary-border-color-error": index.default.ALERT,
|
|
90
90
|
"input-primary-background-color-error": index.default.TRETIARY_DEFAULT_2,
|
|
91
91
|
"input-primary-box-shadow-color-error": index.default.TRETIARY_DEFAULT_2,
|
|
92
|
-
"checkbox-
|
|
93
|
-
"checkbox-
|
|
94
|
-
"checkbox-
|
|
95
|
-
"checkbox-
|
|
96
|
-
"checkbox-
|
|
97
|
-
"checkbox-
|
|
98
|
-
"checkbox-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"switch-
|
|
105
|
-
"switch-
|
|
106
|
-
"switch-
|
|
107
|
-
"switch-
|
|
92
|
+
"checkbox-background-color-checked": index.default.PRIMARY_DEFAULT_4,
|
|
93
|
+
"checkbox-background-color-hovered": index.default.PRIMARY_DEFAULT_4,
|
|
94
|
+
"checkbox-box-shadow-focused": index.default.PRIMARY_DEFAULT_1,
|
|
95
|
+
"checkbox-background-color-active": index.default.PRIMARY_DEFAULT_4,
|
|
96
|
+
"checkbox-border-color-active": index.default.PRIMARY_DEFAULT_4,
|
|
97
|
+
"checkbox-box-shadow-active": index.default.PRIMARY_DEFAULT_4,
|
|
98
|
+
"checkbox-background-color-disabled": index.default.PRIMARY_DEFAULT_1,
|
|
99
|
+
"input-radio-background-color-checked": index.default.PRIMARY_DEFAULT_4,
|
|
100
|
+
"input-radio-background-color-hovered": index.default.PRIMARY_DEFAULT_4,
|
|
101
|
+
"input-radio-box-shadow-focused": index.default.PRIMARY_DEFAULT_1,
|
|
102
|
+
"input-radio-background-color-focused": index.default.PRIMARY_DEFAULT_1,
|
|
103
|
+
"input-radio-border-color-focused": index.default.PRIMARY_DEFAULT_1,
|
|
104
|
+
"switch-background-color": index.default.BG_2,
|
|
105
|
+
"switch-border-color": index.default.BG_2,
|
|
106
|
+
"switch-background-color-checked": index.default.PRIMARY_DEFAULT_5,
|
|
107
|
+
"switch-border-color-checked": index.default.PRIMARY_DEFAULT_5,
|
|
108
|
+
"tooltip-background-color": index.default.BLACK,
|
|
109
|
+
"tooltip-color": index.default.WHITE,
|
|
110
|
+
"tooltip-border-radius": "4px"
|
|
108
111
|
};
|
|
109
112
|
|
|
110
113
|
exports.default = THEME_DEFAULT;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
|
+
|
|
11
|
+
var OptionLabel = function OptionLabel(_a) {
|
|
12
|
+
var time = _a.time,
|
|
13
|
+
onClick = _a.onClick,
|
|
14
|
+
onMouseEnter = _a.onMouseEnter;
|
|
15
|
+
var ref = React.useRef(null);
|
|
16
|
+
return /*#__PURE__*/React__default.default.createElement("span", {
|
|
17
|
+
onClick: onClick,
|
|
18
|
+
onMouseEnter: onMouseEnter,
|
|
19
|
+
ref: ref
|
|
20
|
+
}, time);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.default = OptionLabel;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dateFns = require('date-fns');
|
|
4
|
+
|
|
5
|
+
var day = new Date();
|
|
6
|
+
day.setHours(24, 0, 0, 0);
|
|
7
|
+
var DEFAULT_TIME = {
|
|
8
|
+
index: 24,
|
|
9
|
+
time: "12:00"
|
|
10
|
+
};
|
|
11
|
+
var formatTime = function formatTime(date) {
|
|
12
|
+
return dateFns.format(date, "HH:mm");
|
|
13
|
+
};
|
|
14
|
+
var generateSuggest = function generateSuggest(interval) {
|
|
15
|
+
if (interval === void 0) {
|
|
16
|
+
interval = 15;
|
|
17
|
+
}
|
|
18
|
+
return new Array(24 * 60 / interval).fill(null).map(function (_, index) {
|
|
19
|
+
var date = dateFns.addMinutes(day, index * interval);
|
|
20
|
+
return {
|
|
21
|
+
time: formatTime(date)
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.DEFAULT_TIME = DEFAULT_TIME;
|
|
27
|
+
exports.formatTime = formatTime;
|
|
28
|
+
exports.generateSuggest = generateSuggest;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var index$1 = require('../Select/index.js');
|
|
8
|
+
var helpers = require('./helpers.js');
|
|
9
|
+
var index = require('./Label/index.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
|
+
|
|
15
|
+
var TimeSelect = function TimeSelect(_a) {
|
|
16
|
+
var value = _a.value,
|
|
17
|
+
_b = _a.label,
|
|
18
|
+
label = _b === void 0 ? "Start time" : _b,
|
|
19
|
+
_c = _a.interval,
|
|
20
|
+
interval = _c === void 0 ? 15 : _c,
|
|
21
|
+
onChange = _a.onChange,
|
|
22
|
+
props = tslib.__rest(_a, ["value", "label", "interval", "onChange"]);
|
|
23
|
+
var options = React.useMemo(function () {
|
|
24
|
+
return helpers.generateSuggest(interval).map(function (item) {
|
|
25
|
+
return {
|
|
26
|
+
value: item.time,
|
|
27
|
+
label: /*#__PURE__*/React__default.default.createElement(index.default, {
|
|
28
|
+
time: item.time
|
|
29
|
+
})
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}, [interval]);
|
|
33
|
+
return /*#__PURE__*/React__default.default.createElement(index$1.default, tslib.__assign({}, props, {
|
|
34
|
+
value: value,
|
|
35
|
+
label: label,
|
|
36
|
+
options: options,
|
|
37
|
+
onChange: onChange
|
|
38
|
+
}));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.default = TimeSelect;
|