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
|
@@ -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;
|
|
@@ -85,22 +85,25 @@ var THEME_DEFAULT = {
|
|
|
85
85
|
"input-primary-border-color-error": Color.ALERT,
|
|
86
86
|
"input-primary-background-color-error": Color.TRETIARY_DEFAULT_2,
|
|
87
87
|
"input-primary-box-shadow-color-error": Color.TRETIARY_DEFAULT_2,
|
|
88
|
-
"checkbox-
|
|
89
|
-
"checkbox-
|
|
90
|
-
"checkbox-
|
|
91
|
-
"checkbox-
|
|
92
|
-
"checkbox-
|
|
93
|
-
"checkbox-
|
|
94
|
-
"checkbox-
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"switch-
|
|
101
|
-
"switch-
|
|
102
|
-
"switch-
|
|
103
|
-
"switch-
|
|
88
|
+
"checkbox-background-color-checked": Color.PRIMARY_DEFAULT_4,
|
|
89
|
+
"checkbox-background-color-hovered": Color.PRIMARY_DEFAULT_4,
|
|
90
|
+
"checkbox-box-shadow-focused": Color.PRIMARY_DEFAULT_1,
|
|
91
|
+
"checkbox-background-color-active": Color.PRIMARY_DEFAULT_4,
|
|
92
|
+
"checkbox-border-color-active": Color.PRIMARY_DEFAULT_4,
|
|
93
|
+
"checkbox-box-shadow-active": Color.PRIMARY_DEFAULT_4,
|
|
94
|
+
"checkbox-background-color-disabled": Color.PRIMARY_DEFAULT_1,
|
|
95
|
+
"input-radio-background-color-checked": Color.PRIMARY_DEFAULT_4,
|
|
96
|
+
"input-radio-background-color-hovered": Color.PRIMARY_DEFAULT_4,
|
|
97
|
+
"input-radio-box-shadow-focused": Color.PRIMARY_DEFAULT_1,
|
|
98
|
+
"input-radio-background-color-focused": Color.PRIMARY_DEFAULT_1,
|
|
99
|
+
"input-radio-border-color-focused": Color.PRIMARY_DEFAULT_1,
|
|
100
|
+
"switch-background-color": Color.BG_2,
|
|
101
|
+
"switch-border-color": Color.BG_2,
|
|
102
|
+
"switch-background-color-checked": Color.PRIMARY_DEFAULT_5,
|
|
103
|
+
"switch-border-color-checked": Color.PRIMARY_DEFAULT_5,
|
|
104
|
+
"tooltip-background-color": Color.BLACK,
|
|
105
|
+
"tooltip-color": Color.WHITE,
|
|
106
|
+
"tooltip-border-radius": "4px"
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
export { THEME_DEFAULT as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
|
+
|
|
3
|
+
var OptionLabel = function OptionLabel(_a) {
|
|
4
|
+
var time = _a.time,
|
|
5
|
+
onClick = _a.onClick,
|
|
6
|
+
onMouseEnter = _a.onMouseEnter;
|
|
7
|
+
var ref = useRef(null);
|
|
8
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
9
|
+
onClick: onClick,
|
|
10
|
+
onMouseEnter: onMouseEnter,
|
|
11
|
+
ref: ref
|
|
12
|
+
}, time);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { OptionLabel as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { format, addMinutes } from 'date-fns';
|
|
2
|
+
|
|
3
|
+
var day = new Date();
|
|
4
|
+
day.setHours(24, 0, 0, 0);
|
|
5
|
+
var DEFAULT_TIME = {
|
|
6
|
+
index: 24,
|
|
7
|
+
time: "12:00"
|
|
8
|
+
};
|
|
9
|
+
var formatTime = function formatTime(date) {
|
|
10
|
+
return format(date, "HH:mm");
|
|
11
|
+
};
|
|
12
|
+
var generateSuggest = function generateSuggest(interval) {
|
|
13
|
+
if (interval === void 0) {
|
|
14
|
+
interval = 15;
|
|
15
|
+
}
|
|
16
|
+
return new Array(24 * 60 / interval).fill(null).map(function (_, index) {
|
|
17
|
+
var date = addMinutes(day, index * interval);
|
|
18
|
+
return {
|
|
19
|
+
time: formatTime(date)
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { DEFAULT_TIME, formatTime, generateSuggest };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React__default, { useMemo } from 'react';
|
|
3
|
+
import Select from '../Select/index.js';
|
|
4
|
+
import { generateSuggest } from './helpers.js';
|
|
5
|
+
import OptionLabel from './Label/index.js';
|
|
6
|
+
|
|
7
|
+
var TimeSelect = function TimeSelect(_a) {
|
|
8
|
+
var value = _a.value,
|
|
9
|
+
_b = _a.label,
|
|
10
|
+
label = _b === void 0 ? "Start time" : _b,
|
|
11
|
+
_c = _a.interval,
|
|
12
|
+
interval = _c === void 0 ? 15 : _c,
|
|
13
|
+
onChange = _a.onChange,
|
|
14
|
+
props = __rest(_a, ["value", "label", "interval", "onChange"]);
|
|
15
|
+
var options = useMemo(function () {
|
|
16
|
+
return generateSuggest(interval).map(function (item) {
|
|
17
|
+
return {
|
|
18
|
+
value: item.time,
|
|
19
|
+
label: /*#__PURE__*/React__default.createElement(OptionLabel, {
|
|
20
|
+
time: item.time
|
|
21
|
+
})
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
}, [interval]);
|
|
25
|
+
return /*#__PURE__*/React__default.createElement(Select, __assign({}, props, {
|
|
26
|
+
value: value,
|
|
27
|
+
label: label,
|
|
28
|
+
options: options,
|
|
29
|
+
onChange: onChange
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { TimeSelect as default };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.root[data-popper-placement=bottom-start] {
|
|
2
|
+
padding-top: 4px;
|
|
3
|
+
}
|
|
4
|
+
.root[data-popper-placement=bottom-start]::before {
|
|
5
|
+
left: 6px;
|
|
6
|
+
top: 0;
|
|
7
|
+
}
|
|
8
|
+
.root[data-popper-placement=bottom-end] {
|
|
9
|
+
padding-top: 4px;
|
|
10
|
+
}
|
|
11
|
+
.root[data-popper-placement=bottom-end]::before {
|
|
12
|
+
right: 6px;
|
|
13
|
+
top: 0;
|
|
14
|
+
}
|
|
15
|
+
.root[data-popper-placement=bottom] {
|
|
16
|
+
padding-top: 4px;
|
|
17
|
+
}
|
|
18
|
+
.root[data-popper-placement=bottom]::before {
|
|
19
|
+
left: 50%;
|
|
20
|
+
top: 0;
|
|
21
|
+
transform: translate(-50%, 0);
|
|
22
|
+
}
|
|
23
|
+
.root[data-popper-placement=right] {
|
|
24
|
+
padding-left: 4px;
|
|
25
|
+
}
|
|
26
|
+
.root[data-popper-placement=right]::before {
|
|
27
|
+
left: -6px;
|
|
28
|
+
top: 50%;
|
|
29
|
+
transform: translate(0, -50%) rotate(-90deg);
|
|
30
|
+
}
|
|
31
|
+
.root[data-popper-placement=right-start] {
|
|
32
|
+
padding-left: 4px;
|
|
33
|
+
}
|
|
34
|
+
.root[data-popper-placement=right-start]::before {
|
|
35
|
+
left: -6px;
|
|
36
|
+
top: 6px;
|
|
37
|
+
transform: rotate(-90deg);
|
|
38
|
+
}
|
|
39
|
+
.root[data-popper-placement=right-end] {
|
|
40
|
+
padding-left: 4px;
|
|
41
|
+
}
|
|
42
|
+
.root[data-popper-placement=right-end]::before {
|
|
43
|
+
bottom: 6px;
|
|
44
|
+
left: -6px;
|
|
45
|
+
transform: rotate(-90deg);
|
|
46
|
+
}
|
|
47
|
+
.root[data-popper-placement=left] {
|
|
48
|
+
padding-right: 4px;
|
|
49
|
+
}
|
|
50
|
+
.root[data-popper-placement=left]::before {
|
|
51
|
+
right: -6px;
|
|
52
|
+
top: 50%;
|
|
53
|
+
transform: translate(0, -50%) rotate(90deg);
|
|
54
|
+
}
|
|
55
|
+
.root[data-popper-placement=left-start] {
|
|
56
|
+
padding-right: 4px;
|
|
57
|
+
}
|
|
58
|
+
.root[data-popper-placement=left-start]::before {
|
|
59
|
+
right: -6px;
|
|
60
|
+
top: 6px;
|
|
61
|
+
transform: rotate(90deg);
|
|
62
|
+
}
|
|
63
|
+
.root[data-popper-placement=left-end] {
|
|
64
|
+
padding-right: 4px;
|
|
65
|
+
}
|
|
66
|
+
.root[data-popper-placement=left-end]::before {
|
|
67
|
+
bottom: 6px;
|
|
68
|
+
right: -6px;
|
|
69
|
+
transform: rotate(90deg);
|
|
70
|
+
}
|
|
71
|
+
.root[data-popper-placement=top] {
|
|
72
|
+
padding-bottom: 4px;
|
|
73
|
+
}
|
|
74
|
+
.root[data-popper-placement=top]::before {
|
|
75
|
+
bottom: 0;
|
|
76
|
+
left: 50%;
|
|
77
|
+
transform: translate(-50%, 0) rotate(180deg);
|
|
78
|
+
}
|
|
79
|
+
.root[data-popper-placement=top-start] {
|
|
80
|
+
padding-bottom: 4px;
|
|
81
|
+
}
|
|
82
|
+
.root[data-popper-placement=top-start]::before {
|
|
83
|
+
bottom: 0;
|
|
84
|
+
left: 6px;
|
|
85
|
+
transform: rotate(180deg);
|
|
86
|
+
}
|
|
87
|
+
.root[data-popper-placement=top-end] {
|
|
88
|
+
padding-bottom: 4px;
|
|
89
|
+
}
|
|
90
|
+
.root[data-popper-placement=top-end]::before {
|
|
91
|
+
bottom: 0;
|
|
92
|
+
right: 6px;
|
|
93
|
+
transform: rotate(180deg);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tail {
|
|
97
|
+
position: relative;
|
|
98
|
+
}
|
|
99
|
+
.tail::before {
|
|
100
|
+
border-bottom: 5px solid var(--tooltip-background-color);
|
|
101
|
+
border-left: 6px solid transparent;
|
|
102
|
+
border-right: 6px solid transparent;
|
|
103
|
+
content: "";
|
|
104
|
+
height: 0;
|
|
105
|
+
position: absolute;
|
|
106
|
+
width: 0;
|
|
107
|
+
z-index: 3000;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.overlay {
|
|
111
|
+
background-color: var(--tooltip-background-color);
|
|
112
|
+
border-radius: var(--tooltip-border-radius);
|
|
113
|
+
color: var(--tooltip-color);
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
font-style: normal;
|
|
116
|
+
font-weight: 400;
|
|
117
|
+
line-height: 18px;
|
|
118
|
+
max-width: 200px;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
padding: 4px 10px;
|
|
121
|
+
position: relative;
|
|
122
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import React__default, { useState, useMemo, Children, useCallback, useEffect } from 'react';
|
|
3
|
+
import { usePopper } from 'react-popper';
|
|
4
|
+
import classNames from 'classnames/bind';
|
|
5
|
+
import Portal from '../Portal/index.js';
|
|
6
|
+
import { on } from '../helpers/on.js';
|
|
7
|
+
import ClickOutside from '../ClickOutside/index.js';
|
|
8
|
+
import styles from './Tooltip.module.css';
|
|
9
|
+
|
|
10
|
+
var clx = classNames.bind(styles);
|
|
11
|
+
var Tooltip = function Tooltip(_a) {
|
|
12
|
+
var children = _a.children,
|
|
13
|
+
zIndex = _a.zIndex,
|
|
14
|
+
content = _a.content,
|
|
15
|
+
_b = _a.withTail,
|
|
16
|
+
withTail = _b === void 0 ? false : _b,
|
|
17
|
+
_c = _a.placement,
|
|
18
|
+
placement = _c === void 0 ? "bottom" : _c,
|
|
19
|
+
_d = _a.strategy,
|
|
20
|
+
strategy = _d === void 0 ? "absolute" : _d;
|
|
21
|
+
var _e = useState(null),
|
|
22
|
+
controlElement = _e[0],
|
|
23
|
+
setControlElement = _e[1];
|
|
24
|
+
var _f = useState(null),
|
|
25
|
+
popperElement = _f[0],
|
|
26
|
+
setPopperElement = _f[1];
|
|
27
|
+
var _g = useState(false),
|
|
28
|
+
visible = _g[0],
|
|
29
|
+
setVisible = _g[1];
|
|
30
|
+
var _h = usePopper(controlElement, popperElement, {
|
|
31
|
+
placement: placement,
|
|
32
|
+
strategy: strategy,
|
|
33
|
+
modifiers: [{
|
|
34
|
+
name: "flip",
|
|
35
|
+
enabled: true
|
|
36
|
+
}, {
|
|
37
|
+
name: "preventOverflow",
|
|
38
|
+
enabled: true
|
|
39
|
+
}]
|
|
40
|
+
}),
|
|
41
|
+
styles = _h.styles,
|
|
42
|
+
attributes = _h.attributes,
|
|
43
|
+
update = _h.update;
|
|
44
|
+
var isNotComponent = typeof children === "string";
|
|
45
|
+
var reference = useMemo(function () {
|
|
46
|
+
return Children.only(isNotComponent ? /*#__PURE__*/React__default.createElement("button", null, children) : children);
|
|
47
|
+
}, [children, isNotComponent]);
|
|
48
|
+
var onToggle = useCallback(function (e) {
|
|
49
|
+
e.stopPropagation();
|
|
50
|
+
setVisible(function (state) {
|
|
51
|
+
return !state;
|
|
52
|
+
});
|
|
53
|
+
}, [setVisible]);
|
|
54
|
+
var onShow = useCallback(function () {
|
|
55
|
+
setVisible(true);
|
|
56
|
+
}, [setVisible]);
|
|
57
|
+
var onHide = useCallback(function () {
|
|
58
|
+
setVisible(false);
|
|
59
|
+
}, [setVisible]);
|
|
60
|
+
var onClickOutside = useCallback(function (e) {
|
|
61
|
+
if (controlElement === null || controlElement === void 0 ? void 0 : controlElement.contains(e.target)) return;
|
|
62
|
+
onHide();
|
|
63
|
+
}, [onHide, controlElement]);
|
|
64
|
+
var onClickOverlay = useCallback(function (e) {
|
|
65
|
+
e.stopPropagation();
|
|
66
|
+
onHide();
|
|
67
|
+
}, [onHide]);
|
|
68
|
+
useEffect(function () {
|
|
69
|
+
var unsubscribes = [];
|
|
70
|
+
unsubscribes.push(on(controlElement, "mouseenter", onShow, false));
|
|
71
|
+
unsubscribes.push(on(controlElement, "mouseleave", onHide, false));
|
|
72
|
+
unsubscribes.push(on(popperElement, "mouseenter", onShow, false));
|
|
73
|
+
unsubscribes.push(on(popperElement, "mouseleave", onHide, false));
|
|
74
|
+
return function () {
|
|
75
|
+
return unsubscribes.forEach(function (un) {
|
|
76
|
+
return un();
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
}, [controlElement, popperElement, onToggle, onShow, onHide]);
|
|
80
|
+
useEffect(function () {
|
|
81
|
+
if (update) update();
|
|
82
|
+
}, [update, visible]);
|
|
83
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reference.type, __assign({
|
|
84
|
+
ref: setControlElement
|
|
85
|
+
}, reference.props)), visible && ( /*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement(ClickOutside, {
|
|
86
|
+
onClick: onClickOutside
|
|
87
|
+
}, /*#__PURE__*/React__default.createElement("div", __assign({
|
|
88
|
+
className: clx("root", {
|
|
89
|
+
tail: !!withTail
|
|
90
|
+
}),
|
|
91
|
+
ref: setPopperElement,
|
|
92
|
+
style: __assign(__assign({}, styles.popper), {
|
|
93
|
+
zIndex: zIndex
|
|
94
|
+
})
|
|
95
|
+
}, attributes.popper), /*#__PURE__*/React__default.createElement("div", {
|
|
96
|
+
className: clx("overlay"),
|
|
97
|
+
onClick: onClickOverlay
|
|
98
|
+
}, content))))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export { Tooltip as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { PositioningStrategy } from "@popperjs/core";
|
|
3
|
+
import type { Placement as PopperPlacement } from "@popperjs/core";
|
|
4
|
+
export type Trigger = "hover";
|
|
5
|
+
export type Placement = Extract<PopperPlacement, "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "left-start" | "left" | "left-end">;
|
|
6
|
+
export interface ITooltipProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
strategy?: PositioningStrategy;
|
|
12
|
+
withTail?: boolean;
|
|
13
|
+
}
|
package/esm/index.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export { default as Separator } from "./Separator";
|
|
|
19
19
|
export { SkeletonText, SkeletonRect } from "./Skeleton";
|
|
20
20
|
export { default as Switch } from "./Switch";
|
|
21
21
|
export { THEMES } from "./Theme";
|
|
22
|
+
export { default as Tooltip } from "./Tooltip";
|
|
23
|
+
export { default as TimeSelect } from "./TimeSelect";
|
|
22
24
|
export { default as Typography } from "./Typography";
|
|
23
25
|
export { default as useMediaSizes } from "./hooks/useMediaSizes";
|
|
26
|
+
export { default as useOnClickOutside } from "./hooks/useOnClickOutside";
|
|
27
|
+
export { default as useScrollLock } from "./hooks/useScrollLock";
|
|
24
28
|
export * from "./Icons";
|
package/esm/index.js
CHANGED
|
@@ -19,13 +19,18 @@ export { default as Separator } from './Separator/index.js';
|
|
|
19
19
|
export { SkeletonRect, SkeletonText } from './Skeleton/index.js';
|
|
20
20
|
export { default as Switch } from './Switch/index.js';
|
|
21
21
|
export { THEMES } from './Theme/index.js';
|
|
22
|
+
export { default as Tooltip } from './Tooltip/index.js';
|
|
23
|
+
export { default as TimeSelect } from './TimeSelect/index.js';
|
|
22
24
|
export { default as Typography } from './Typography/index.js';
|
|
23
25
|
export { default as useMediaSizes } from './hooks/useMediaSizes/index.js';
|
|
26
|
+
export { default as useOnClickOutside } from './hooks/useOnClickOutside/index.js';
|
|
27
|
+
export { default as useScrollLock } from './hooks/useScrollLock/index.js';
|
|
24
28
|
import './Icons/index.js';
|
|
25
29
|
export { default as ArrowNext } from './Icons/ArrowNext.js';
|
|
26
30
|
export { default as Cart } from './Icons/Cart.js';
|
|
27
31
|
export { default as Chevron } from './Icons/Chevron.js';
|
|
28
32
|
export { default as Close } from './Icons/Close.js';
|
|
33
|
+
export { default as Exit } from './Icons/Exit.js';
|
|
29
34
|
export { default as EyeOpen } from './Icons/EyeOpen.js';
|
|
30
35
|
export { default as EyeClosed } from './Icons/EyeClosed.js';
|
|
31
36
|
export { default as Help } from './Icons/Help.js';
|
|
@@ -33,5 +38,6 @@ export { default as Info } from './Icons/Info.js';
|
|
|
33
38
|
export { default as Minus } from './Icons/Minus.js';
|
|
34
39
|
export { default as More } from './Icons/More.js';
|
|
35
40
|
export { default as Plus } from './Icons/Plus.js';
|
|
41
|
+
export { default as Setting } from './Icons/Setting.js';
|
|
36
42
|
export { default as Trash } from './Icons/Trash.js';
|
|
37
43
|
export { default as User } from './Icons/User.js';
|
|
@@ -80,20 +80,23 @@
|
|
|
80
80
|
--input-primary-border-color-error: #ff564e;
|
|
81
81
|
--input-primary-background-color-error: #FFEAE2;
|
|
82
82
|
--input-primary-box-shadow-color-error: #FFEAE2;
|
|
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: #ffce31;
|
|
84
|
+
--checkbox-background-color-hovered: #ffce31;
|
|
85
|
+
--checkbox-box-shadow-focused: #ffe695;
|
|
86
|
+
--checkbox-background-color-active: #ffce31;
|
|
87
|
+
--checkbox-border-color-active: #ffce31;
|
|
88
|
+
--checkbox-box-shadow-active: #ffce31;
|
|
89
|
+
--checkbox-background-color-disabled: #ffe695;
|
|
90
|
+
--input-radio-background-color-checked: #ffce31;
|
|
91
|
+
--input-radio-background-color-hovered: #ffce31;
|
|
92
|
+
--input-radio-box-shadow-focused: #ffe695;
|
|
93
|
+
--input-radio-background-color-focused: #ffe695;
|
|
94
|
+
--input-radio-border-color-focused: #ffe695;
|
|
95
|
+
--switch-background-color: #e6e6e6;
|
|
96
|
+
--switch-border-color: #e6e6e6;
|
|
97
|
+
--switch-background-color-checked: #ffc818;
|
|
98
|
+
--switch-border-color-checked: #ffc818;
|
|
99
|
+
--tooltip-background-color: #333;
|
|
100
|
+
--tooltip-color: #fff;
|
|
101
|
+
--tooltip-border-radius: 4px;
|
|
99
102
|
}
|
|
@@ -83,20 +83,23 @@
|
|
|
83
83
|
--input-primary-border-color-error: #ff564e;
|
|
84
84
|
--input-primary-background-color-error: #FFEAE2;
|
|
85
85
|
--input-primary-box-shadow-color-error: #FFEAE2;
|
|
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: #067AFF;
|
|
87
|
+
--checkbox-background-color-hovered: #067AFF;
|
|
88
|
+
--checkbox-box-shadow-focused: #E8F0FE;
|
|
89
|
+
--checkbox-background-color-active: #067AFF;
|
|
90
|
+
--checkbox-border-color-active: #067AFF;
|
|
91
|
+
--checkbox-box-shadow-active: #067AFF;
|
|
92
|
+
--checkbox-background-color-disabled: #E8F0FE;
|
|
93
|
+
--input-radio-background-color-checked: #067AFF;
|
|
94
|
+
--input-radio-background-color-hovered: #067AFF;
|
|
95
|
+
--input-radio-box-shadow-focused: #E8F0FE;
|
|
96
|
+
--input-radio-background-color-focused: #E8F0FE;
|
|
97
|
+
--input-radio-border-color-focused: #E8F0FE;
|
|
98
|
+
--switch-background-color: #e6e6e6;
|
|
99
|
+
--switch-border-color: #e6e6e6;
|
|
100
|
+
--switch-background-color-checked: #0066DC;
|
|
101
|
+
--switch-border-color-checked: #0066DC;
|
|
102
|
+
--tooltip-background-color: #000;
|
|
103
|
+
--tooltip-color: #fff;
|
|
104
|
+
--tooltip-border-radius: 4px;
|
|
102
105
|
}
|
package/index.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export { default as Separator } from "./Separator";
|
|
|
19
19
|
export { SkeletonText, SkeletonRect } from "./Skeleton";
|
|
20
20
|
export { default as Switch } from "./Switch";
|
|
21
21
|
export { THEMES } from "./Theme";
|
|
22
|
+
export { default as Tooltip } from "./Tooltip";
|
|
23
|
+
export { default as TimeSelect } from "./TimeSelect";
|
|
22
24
|
export { default as Typography } from "./Typography";
|
|
23
25
|
export { default as useMediaSizes } from "./hooks/useMediaSizes";
|
|
26
|
+
export { default as useOnClickOutside } from "./hooks/useOnClickOutside";
|
|
27
|
+
export { default as useScrollLock } from "./hooks/useScrollLock";
|
|
24
28
|
export * from "./Icons";
|
package/index.js
CHANGED
|
@@ -21,13 +21,18 @@ var index$h = require('./Separator/index.js');
|
|
|
21
21
|
var index$i = require('./Skeleton/index.js');
|
|
22
22
|
var index$j = require('./Switch/index.js');
|
|
23
23
|
var index$k = require('./Theme/index.js');
|
|
24
|
-
var index$l = require('./
|
|
25
|
-
var index$m = require('./
|
|
24
|
+
var index$l = require('./Tooltip/index.js');
|
|
25
|
+
var index$m = require('./TimeSelect/index.js');
|
|
26
|
+
var index$n = require('./Typography/index.js');
|
|
27
|
+
var index$o = require('./hooks/useMediaSizes/index.js');
|
|
28
|
+
var index$p = require('./hooks/useOnClickOutside/index.js');
|
|
29
|
+
var index$q = require('./hooks/useScrollLock/index.js');
|
|
26
30
|
require('./Icons/index.js');
|
|
27
31
|
var ArrowNext = require('./Icons/ArrowNext.js');
|
|
28
32
|
var Cart = require('./Icons/Cart.js');
|
|
29
33
|
var Chevron = require('./Icons/Chevron.js');
|
|
30
34
|
var Close = require('./Icons/Close.js');
|
|
35
|
+
var Exit = require('./Icons/Exit.js');
|
|
31
36
|
var EyeOpen = require('./Icons/EyeOpen.js');
|
|
32
37
|
var EyeClosed = require('./Icons/EyeClosed.js');
|
|
33
38
|
var Help = require('./Icons/Help.js');
|
|
@@ -35,6 +40,7 @@ var Info = require('./Icons/Info.js');
|
|
|
35
40
|
var Minus = require('./Icons/Minus.js');
|
|
36
41
|
var More = require('./Icons/More.js');
|
|
37
42
|
var Plus = require('./Icons/Plus.js');
|
|
43
|
+
var Setting = require('./Icons/Setting.js');
|
|
38
44
|
var Trash = require('./Icons/Trash.js');
|
|
39
45
|
var User = require('./Icons/User.js');
|
|
40
46
|
|
|
@@ -62,12 +68,17 @@ exports.SkeletonRect = index$i.SkeletonRect;
|
|
|
62
68
|
exports.SkeletonText = index$i.SkeletonText;
|
|
63
69
|
exports.Switch = index$j.default;
|
|
64
70
|
exports.THEMES = index$k.THEMES;
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
71
|
+
exports.Tooltip = index$l.default;
|
|
72
|
+
exports.TimeSelect = index$m.default;
|
|
73
|
+
exports.Typography = index$n.default;
|
|
74
|
+
exports.useMediaSizes = index$o.default;
|
|
75
|
+
exports.useOnClickOutside = index$p.default;
|
|
76
|
+
exports.useScrollLock = index$q.default;
|
|
67
77
|
exports.ArrowNext = ArrowNext.default;
|
|
68
78
|
exports.Cart = Cart.default;
|
|
69
79
|
exports.Chevron = Chevron.default;
|
|
70
80
|
exports.Close = Close.default;
|
|
81
|
+
exports.Exit = Exit.default;
|
|
71
82
|
exports.EyeOpen = EyeOpen.default;
|
|
72
83
|
exports.EyeClosed = EyeClosed.default;
|
|
73
84
|
exports.Help = Help.default;
|
|
@@ -75,5 +86,6 @@ exports.Info = Info.default;
|
|
|
75
86
|
exports.Minus = Minus.default;
|
|
76
87
|
exports.More = More.default;
|
|
77
88
|
exports.Plus = Plus.default;
|
|
89
|
+
exports.Setting = Setting.default;
|
|
78
90
|
exports.Trash = Trash.default;
|
|
79
91
|
exports.User = User.default;
|
package/package.json
CHANGED
package/theme_ba_variables.css
CHANGED
|
@@ -80,20 +80,23 @@
|
|
|
80
80
|
--input-primary-border-color-error: #ff564e;
|
|
81
81
|
--input-primary-background-color-error: #FFEAE2;
|
|
82
82
|
--input-primary-box-shadow-color-error: #FFEAE2;
|
|
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: #ffce31;
|
|
84
|
+
--checkbox-background-color-hovered: #ffce31;
|
|
85
|
+
--checkbox-box-shadow-focused: #ffe695;
|
|
86
|
+
--checkbox-background-color-active: #ffce31;
|
|
87
|
+
--checkbox-border-color-active: #ffce31;
|
|
88
|
+
--checkbox-box-shadow-active: #ffce31;
|
|
89
|
+
--checkbox-background-color-disabled: #ffe695;
|
|
90
|
+
--input-radio-background-color-checked: #ffce31;
|
|
91
|
+
--input-radio-background-color-hovered: #ffce31;
|
|
92
|
+
--input-radio-box-shadow-focused: #ffe695;
|
|
93
|
+
--input-radio-background-color-focused: #ffe695;
|
|
94
|
+
--input-radio-border-color-focused: #ffe695;
|
|
95
|
+
--switch-background-color: #e6e6e6;
|
|
96
|
+
--switch-border-color: #e6e6e6;
|
|
97
|
+
--switch-background-color-checked: #ffc818;
|
|
98
|
+
--switch-border-color-checked: #ffc818;
|
|
99
|
+
--tooltip-background-color: #333;
|
|
100
|
+
--tooltip-color: #fff;
|
|
101
|
+
--tooltip-border-radius: 4px;
|
|
99
102
|
}
|