colibri-ui 0.7.78 → 0.7.80
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/Accordion/Accordion.module.css +51 -0
- package/Accordion/index.d.ts +9 -0
- package/Accordion/index.js +67 -0
- package/Accordion/package.json +6 -0
- package/Avatar/Avatar.module.css +2 -2
- package/Avatar/index.d.ts +2 -2
- package/Avatar/index.js +4 -4
- package/Avatar/index.props.d.ts +1 -1
- package/Badge/index.js +1 -1
- package/Button/Button.module.css +2 -2
- package/Button/index.js +5 -2
- package/Button/index.props.d.ts +1 -0
- package/Calendar/components/Month/Month.js +2 -0
- package/Calendar/index.js +12 -6
- package/Checkbox/index.js +1 -1
- package/Chip/index.js +1 -1
- package/Dropdown/index.js +9 -7
- package/InputRadio/index.js +1 -1
- package/Menu/components/MenuItem/index.js +2 -1
- package/Menu/index.js +1 -1
- package/Modal/index.js +2 -2
- package/Select/components/MenuOverlay/index.js +5 -3
- package/Select/index.js +2 -2
- package/Theme/colors/common.js +5 -5
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.props.d.ts +0 -1
- package/base/FormField/index.js +2 -2
- package/base/InputRoot/index.js +1 -1
- package/esm/Accordion/Accordion.module.css +51 -0
- package/esm/Accordion/index.d.ts +9 -0
- package/esm/Accordion/index.js +57 -0
- package/esm/Avatar/Avatar.module.css +2 -2
- package/esm/Avatar/index.d.ts +2 -2
- package/esm/Avatar/index.js +3 -3
- package/esm/Avatar/index.props.d.ts +1 -1
- package/esm/Badge/index.js +1 -1
- package/esm/Button/Button.module.css +2 -2
- package/esm/Button/index.js +5 -2
- package/esm/Button/index.props.d.ts +1 -0
- package/esm/Calendar/components/Month/Month.js +2 -0
- package/esm/Calendar/index.js +12 -6
- package/esm/Checkbox/index.js +1 -1
- package/esm/Chip/index.js +1 -1
- package/esm/Dropdown/index.js +8 -6
- package/esm/InputRadio/index.js +1 -1
- package/esm/Menu/components/MenuItem/index.js +2 -1
- package/esm/Menu/index.js +1 -1
- package/esm/Modal/index.js +2 -2
- package/esm/Select/components/MenuOverlay/index.js +5 -3
- package/esm/Select/index.js +2 -2
- package/esm/Theme/colors/common.js +5 -5
- package/esm/Tooltip/index.js +1 -1
- package/esm/Tooltip/index.props.d.ts +0 -1
- package/esm/base/FormField/index.js +2 -2
- package/esm/base/InputRoot/index.js +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/theme_ba_variables.css +20 -20
- package/esm/theme_default_variables.css +21 -21
- package/index.d.ts +1 -0
- package/index.js +61 -59
- package/package.json +1 -1
- package/theme_ba_variables.css +20 -20
- package/theme_default_variables.css +21 -21
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.avatar {
|
|
2
|
-
transition: border-color 0.15s ease;
|
|
3
2
|
border-radius: 100%;
|
|
4
3
|
box-sizing: border-box;
|
|
4
|
+
transition: border-color 0.15s ease;
|
|
5
5
|
}
|
|
6
6
|
.avatar_bordered {
|
|
7
|
-
border: 4px solid transparent;
|
|
8
7
|
background-color: var(--palette-white);
|
|
8
|
+
border: 4px solid transparent;
|
|
9
9
|
}
|
|
10
10
|
.avatar_bordered:hover {
|
|
11
11
|
border-color: rgba(95, 99, 104, 0.24);
|
package/esm/Avatar/index.d.ts
CHANGED
package/esm/Avatar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { memo } from 'react';
|
|
2
|
+
import classNames from 'classnames/bind';
|
|
2
3
|
import { AvatarSizes } from './constants.js';
|
|
3
4
|
import maleCircleUrl from './assets/male-circle.svg.js';
|
|
4
5
|
import orgCircleUrl from './assets/org-circle.svg.js';
|
|
5
6
|
import styles from './Avatar.module.css';
|
|
6
|
-
import classNames from 'classnames/bind';
|
|
7
7
|
import { AccountType } from './index.props.js';
|
|
8
8
|
|
|
9
9
|
var clx = classNames.bind(styles);
|
|
@@ -14,7 +14,7 @@ var Avatar = /*#__PURE__*/memo(function (props) {
|
|
|
14
14
|
className = props.className,
|
|
15
15
|
bordered = props.bordered,
|
|
16
16
|
_b = props.title,
|
|
17
|
-
title = _b === void 0 ?
|
|
17
|
+
title = _b === void 0 ? "" : _b,
|
|
18
18
|
_c = props.accountType,
|
|
19
19
|
accountType = _c === void 0 ? AccountType.Organization : _c;
|
|
20
20
|
var isOrg = accountType === AccountType.Organization;
|
|
@@ -25,7 +25,7 @@ var Avatar = /*#__PURE__*/memo(function (props) {
|
|
|
25
25
|
width: size,
|
|
26
26
|
height: size,
|
|
27
27
|
className: clx(styles.avatar, {
|
|
28
|
-
|
|
28
|
+
avatar_bordered: !!bordered
|
|
29
29
|
}, [className])
|
|
30
30
|
});
|
|
31
31
|
});
|
package/esm/Badge/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var Badge = function Badge(_a) {
|
|
|
36
36
|
className: clx((_b = {
|
|
37
37
|
root: true
|
|
38
38
|
}, _b["root_direction_".concat(direction)] = !!direction, _b.root_invisible = invisible, _b), className),
|
|
39
|
-
"data-
|
|
39
|
+
"data-testid": "badge"
|
|
40
40
|
}, displayValue));
|
|
41
41
|
};
|
|
42
42
|
|
package/esm/Button/index.js
CHANGED
|
@@ -18,7 +18,8 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
18
18
|
children = _a.children,
|
|
19
19
|
disabled = _a.disabled,
|
|
20
20
|
onClick = _a.onClick,
|
|
21
|
-
|
|
21
|
+
type = _a.type,
|
|
22
|
+
props = __rest(_a, ["className", "fullWidth", "variant", "iconStart", "iconEnd", "icon", "size", "children", "disabled", "onClick", "type"]);
|
|
22
23
|
return /*#__PURE__*/React__default.createElement("button", __assign({
|
|
23
24
|
onClick: onClick,
|
|
24
25
|
ref: ref,
|
|
@@ -27,7 +28,9 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27
28
|
root_fullWidth: !!fullWidth
|
|
28
29
|
}, _b["size_".concat(size)] = !!size, _b["variant_".concat(variant)] = !!variant, _b["variant_".concat(variant, "_disabled")] = !!disabled, _b), className),
|
|
29
30
|
disabled: disabled,
|
|
30
|
-
"data-cy": "button"
|
|
31
|
+
"data-cy": "button",
|
|
32
|
+
type: type || "button",
|
|
33
|
+
role: "button"
|
|
31
34
|
}, props), icon && /*#__PURE__*/React__default.createElement("span", {
|
|
32
35
|
className: clx(styles.icon)
|
|
33
36
|
}, icon), iconStart && /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -100,6 +100,8 @@ var Month = function Month(props) {
|
|
|
100
100
|
style: {
|
|
101
101
|
background: day.isSelected ? "var(--palette-bg-2)" : "transparent"
|
|
102
102
|
},
|
|
103
|
+
role: "button",
|
|
104
|
+
type: "button",
|
|
103
105
|
onClick: day.isActive ? function () {
|
|
104
106
|
return props.onDayClick([year, month, leadingZeros(day.day, 2)].join("-"));
|
|
105
107
|
} : undefined
|
package/esm/Calendar/index.js
CHANGED
|
@@ -142,7 +142,7 @@ var Calendar = function Calendar(_a) {
|
|
|
142
142
|
className: clx(styles.root),
|
|
143
143
|
"data-component": "Calendar",
|
|
144
144
|
ref: $root
|
|
145
|
-
}, /*#__PURE__*/React__default.createElement("div", null, contentWidth ? (
|
|
145
|
+
}, /*#__PURE__*/React__default.createElement("div", null, contentWidth ? (/*#__PURE__*/React__default.createElement("div", {
|
|
146
146
|
"data-component": "Months",
|
|
147
147
|
className: clx(styles.months),
|
|
148
148
|
style: {
|
|
@@ -159,26 +159,32 @@ var Calendar = function Calendar(_a) {
|
|
|
159
159
|
return /*#__PURE__*/React__default.createElement(Month, __assign({}, attrs, {
|
|
160
160
|
key: "month-".concat(index)
|
|
161
161
|
}));
|
|
162
|
-
}))) : (
|
|
162
|
+
}))) : (/*#__PURE__*/React__default.createElement(Month, __assign({
|
|
163
163
|
today: today,
|
|
164
164
|
startDate: getMonthStartDate(currentMonthOffset),
|
|
165
165
|
offsetLeft: 0
|
|
166
166
|
}, commonAttrs))), /*#__PURE__*/React__default.createElement("button", {
|
|
167
167
|
className: clx(styles["month-control"], styles["month-control-prev"]),
|
|
168
168
|
onClick: showPrevMonth,
|
|
169
|
-
disabled: currentMonthOffset <= 0
|
|
169
|
+
disabled: currentMonthOffset <= 0,
|
|
170
|
+
type: "button",
|
|
171
|
+
role: "button",
|
|
172
|
+
"aria-label": "Prev"
|
|
170
173
|
}, /*#__PURE__*/React__default.createElement(ArrowNext, {
|
|
171
174
|
className: clx(styles["month-control-prev-arrow"])
|
|
172
175
|
})), /*#__PURE__*/React__default.createElement("button", {
|
|
173
176
|
className: clx(styles["month-control"], styles["month-control-next"]),
|
|
174
177
|
onClick: showNextMonth,
|
|
175
|
-
disabled: currentMonthOffset >= 11
|
|
178
|
+
disabled: currentMonthOffset >= 11,
|
|
179
|
+
type: "button",
|
|
180
|
+
role: "button",
|
|
181
|
+
"aria-label": "Next"
|
|
176
182
|
}, /*#__PURE__*/React__default.createElement(ArrowNext, {
|
|
177
183
|
className: clx(styles["month-control-next-arrow"])
|
|
178
|
-
}))), datePresets && (
|
|
184
|
+
}))), datePresets && (/*#__PURE__*/React__default.createElement(Presets, {
|
|
179
185
|
presets: datePresets,
|
|
180
186
|
onPresetSelect: handlePresetSelect
|
|
181
|
-
})), withContinueButton && (
|
|
187
|
+
})), withContinueButton && (/*#__PURE__*/React__default.createElement(ContinueButton, {
|
|
182
188
|
isChanged: selectedDate !== initialSelectedDate || selectedPeriod !== initialSelectedPeriod,
|
|
183
189
|
selectedDate: selectedDate,
|
|
184
190
|
selectedPeriod: selectedPeriod,
|
package/esm/Checkbox/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var Checkbox = function Checkbox(_a) {
|
|
|
42
42
|
}, label)));
|
|
43
43
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
44
44
|
className: clx(styles.root)
|
|
45
|
-
}, control, hint && (
|
|
45
|
+
}, control, hint && (/*#__PURE__*/React__default.createElement(Typography, {
|
|
46
46
|
variant: isError ? "alert" : "secondary",
|
|
47
47
|
tag: "span"
|
|
48
48
|
}, hint)));
|
package/esm/Chip/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var Chip = function Chip(props) {
|
|
|
28
28
|
onClick: onClick
|
|
29
29
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
30
30
|
className: clx("content-inner")
|
|
31
|
-
}, children)), iconOnRight && (
|
|
31
|
+
}, children)), iconOnRight && (/*#__PURE__*/React__default.createElement("span", {
|
|
32
32
|
className: clx("icon-right"),
|
|
33
33
|
onClick: onIconOnRightClick || onClick
|
|
34
34
|
}, iconOnRight))));
|
package/esm/Dropdown/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React__default, { useState, useMemo, Children, useCallback, useEffect } from 'react';
|
|
3
|
+
import classNames from 'classnames/bind';
|
|
3
4
|
import { usePopper } from 'react-popper';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
5
|
import Portal from '../Portal/index.js';
|
|
6
6
|
import { on } from '../helpers/on.js';
|
|
7
7
|
import ClickOutside from '../ClickOutside/index.js';
|
|
8
|
-
import
|
|
8
|
+
import styles from './Dropdown.module.css';
|
|
9
9
|
|
|
10
|
+
var clx = classNames.bind(styles);
|
|
10
11
|
var Dropdown = function Dropdown(_a) {
|
|
11
12
|
var children = _a.children,
|
|
12
13
|
zIndex = _a.zIndex,
|
|
@@ -112,12 +113,12 @@ var Dropdown = function Dropdown(_a) {
|
|
|
112
113
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reference.type, __assign({
|
|
113
114
|
ref: setControlElement,
|
|
114
115
|
tabIndex: 0
|
|
115
|
-
}, reference.props)), isVisible && (
|
|
116
|
+
}, reference.props)), isVisible && (/*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement(ClickOutside, {
|
|
116
117
|
onClick: onClickOutside
|
|
117
118
|
}, /*#__PURE__*/React__default.createElement("div", __assign({
|
|
118
119
|
ref: setPopperElement,
|
|
119
|
-
"data-
|
|
120
|
-
className:
|
|
120
|
+
"data-testid": "popper-container",
|
|
121
|
+
className: clx("popper-container"),
|
|
121
122
|
style: __assign(__assign(__assign({}, styles.popper), {
|
|
122
123
|
zIndex: zIndex,
|
|
123
124
|
minWidth: controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth
|
|
@@ -126,7 +127,8 @@ var Dropdown = function Dropdown(_a) {
|
|
|
126
127
|
}),
|
|
127
128
|
tabIndex: 0
|
|
128
129
|
}, attributes.popper), /*#__PURE__*/React__default.createElement("div", {
|
|
129
|
-
|
|
130
|
+
"data-testid": "overlay-container",
|
|
131
|
+
className: clx("overlay-container"),
|
|
130
132
|
onClick: onClickOverlay
|
|
131
133
|
}, overlay))))));
|
|
132
134
|
};
|
package/esm/InputRadio/index.js
CHANGED
|
@@ -56,7 +56,7 @@ var InputRadio = /*#__PURE__*/memo(function (_a) {
|
|
|
56
56
|
className: clx(styles.icon)
|
|
57
57
|
}), /*#__PURE__*/React__default.createElement("span", {
|
|
58
58
|
className: clx(styles.text)
|
|
59
|
-
}, !children && text, !text && children)), !!note && (
|
|
59
|
+
}, !children && text, !text && children)), !!note && (/*#__PURE__*/React__default.createElement(Typography, {
|
|
60
60
|
tag: "p",
|
|
61
61
|
size: "s",
|
|
62
62
|
className: clx(styles.note)
|
|
@@ -16,8 +16,9 @@ var MenuItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
16
16
|
ref: ref,
|
|
17
17
|
"data-component": "menu-item",
|
|
18
18
|
style: {
|
|
19
|
-
backgroundColor: isSelected ? "var(--palette-primary-1)" : ""
|
|
19
|
+
backgroundColor: isSelected ? "var(--palette-primary-1, rgb(232, 240, 254))" : "transparent"
|
|
20
20
|
},
|
|
21
|
+
"data-testid": "menuitem",
|
|
21
22
|
className: clx("item", (_b = {
|
|
22
23
|
item_disabled: !!disabled
|
|
23
24
|
}, _b["item_variant_".concat(variant)] = !!variant, _b), className),
|
package/esm/Menu/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
11
11
|
children = _a.children;
|
|
12
12
|
var renderChild = useMemo(function () {
|
|
13
13
|
return Children.map(children, function (child) {
|
|
14
|
-
if (
|
|
14
|
+
if (/*#__PURE__*/isValidElement(child)) {
|
|
15
15
|
var isSelected = selected ? selected.includes(String(child.key)) : undefined;
|
|
16
16
|
var onClickHandler = function onClickHandler(e) {
|
|
17
17
|
if (child.props.onClick) child.props.onClick(e);
|
package/esm/Modal/index.js
CHANGED
|
@@ -47,11 +47,11 @@ var Modal = function Modal(_a) {
|
|
|
47
47
|
"modal-wrapper_mobile": !isDesktop ? 1 : 0
|
|
48
48
|
}, className),
|
|
49
49
|
ref: modalRef
|
|
50
|
-
}, title ? (
|
|
50
|
+
}, title ? (/*#__PURE__*/React__default.createElement("div", {
|
|
51
51
|
className: clx("title-wrapper")
|
|
52
52
|
}, /*#__PURE__*/React__default.createElement(Title, null, title), /*#__PURE__*/React__default.createElement(Close, {
|
|
53
53
|
onClick: onCloseHandler
|
|
54
|
-
}))) : (
|
|
54
|
+
}))) : (/*#__PURE__*/React__default.createElement("div", {
|
|
55
55
|
className: clx("close-wrapper")
|
|
56
56
|
}, /*#__PURE__*/React__default.createElement(Close, {
|
|
57
57
|
onClick: onCloseHandler
|
|
@@ -29,9 +29,11 @@ var MenuOverlay = function MenuOverlay(_a) {
|
|
|
29
29
|
if (!rootRef || !rootRef.current) {
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
rootRef.current.scrollTo
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if (typeof rootRef.current.scrollTo === "function") {
|
|
33
|
+
rootRef.current.scrollTo({
|
|
34
|
+
top: scrollView.top - OFFSET_ITEMS_COUNT * scrollView.height
|
|
35
|
+
});
|
|
36
|
+
}
|
|
35
37
|
}, [scrollView, rootRef]);
|
|
36
38
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
37
39
|
ref: rootRef,
|
package/esm/Select/index.js
CHANGED
|
@@ -73,8 +73,8 @@ var Select = function Select(_a) {
|
|
|
73
73
|
disabled: !!disabled
|
|
74
74
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
75
75
|
className: clx(styles["base-input"]),
|
|
76
|
-
"data-
|
|
77
|
-
}, prepraredLabel !== null && prepraredLabel !== void 0 ? prepraredLabel : (
|
|
76
|
+
"data-testid": "base-input"
|
|
77
|
+
}, prepraredLabel !== null && prepraredLabel !== void 0 ? prepraredLabel : (/*#__PURE__*/React__default.createElement("span", {
|
|
78
78
|
className: clx(styles.placeholder)
|
|
79
79
|
}, placeholder))), /*#__PURE__*/React__default.createElement("input", {
|
|
80
80
|
type: "hidden",
|
|
@@ -5,11 +5,11 @@ var Common = {
|
|
|
5
5
|
BLACK: "#000"
|
|
6
6
|
};
|
|
7
7
|
var Backgrounds = {
|
|
8
|
-
BG_1: "#
|
|
9
|
-
BG_2: "#
|
|
10
|
-
BG_3: "#
|
|
11
|
-
BG_4: "#
|
|
12
|
-
BG_5: "#
|
|
8
|
+
BG_1: "#ECEEF2",
|
|
9
|
+
BG_2: "#E4E6EA",
|
|
10
|
+
BG_3: "#D6D9E0",
|
|
11
|
+
BG_4: "#C9CDD6",
|
|
12
|
+
BG_5: "#BCC1CC"
|
|
13
13
|
};
|
|
14
14
|
var Accents = {
|
|
15
15
|
ALERT: "#ff564e",
|
package/esm/Tooltip/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var Tooltip = function Tooltip(_a) {
|
|
|
82
82
|
}, [update, visible]);
|
|
83
83
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reference.type, __assign({
|
|
84
84
|
ref: setControlElement
|
|
85
|
-
}, reference.props)), visible && (
|
|
85
|
+
}, reference.props)), visible && (/*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement(ClickOutside, {
|
|
86
86
|
onClick: onClickOutside
|
|
87
87
|
}, /*#__PURE__*/React__default.createElement("div", __assign({
|
|
88
88
|
className: clx("root", {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { PositioningStrategy } from "@popperjs/core";
|
|
3
3
|
import type { Placement as PopperPlacement } from "@popperjs/core";
|
|
4
|
-
export type Trigger = "hover";
|
|
5
4
|
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
5
|
export interface ITooltipProps {
|
|
7
6
|
children: ReactNode;
|
|
@@ -14,12 +14,12 @@ var FormField = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
14
14
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15
15
|
className: clx(styles.container, className),
|
|
16
16
|
ref: ref
|
|
17
|
-
}, label && (
|
|
17
|
+
}, label && (/*#__PURE__*/React__default.createElement(Typography, {
|
|
18
18
|
className: clx(styles.label, {
|
|
19
19
|
label_required: !!required
|
|
20
20
|
}),
|
|
21
21
|
tag: "label"
|
|
22
|
-
}, label)), children, hint && (
|
|
22
|
+
}, label)), children, hint && (/*#__PURE__*/React__default.createElement(Typography, {
|
|
23
23
|
variant: error ? "alert" : "secondary",
|
|
24
24
|
tag: "span"
|
|
25
25
|
}, hint)));
|
|
@@ -17,7 +17,7 @@ var InputRoot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
17
17
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18
18
|
ref: ref,
|
|
19
19
|
className: clx(styles.root, (_b = {}, _b["variant_".concat(variant, "_disabled")] = disabled ? 1 : 0, _b["variant_".concat(variant, "_error")] = error ? 1 : 0, _b["size_".concat(size)] = !!size, _b["variant_".concat(variant)] = !!variant, _b), className)
|
|
20
|
-
}, startIcon && (
|
|
20
|
+
}, startIcon && (/*#__PURE__*/React__default.createElement("div", {
|
|
21
21
|
className: clx(styles["base-icon"])
|
|
22
22
|
}, startIcon)), children, endIcon && /*#__PURE__*/React__default.createElement("div", {
|
|
23
23
|
className: clx(styles["base-icon"])
|
package/esm/index.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.theme {
|
|
2
2
|
--palette-black: #000;
|
|
3
3
|
--palette-white: #fff;
|
|
4
|
-
--palette-bg-1: #
|
|
5
|
-
--palette-bg-2: #
|
|
6
|
-
--palette-bg-3: #
|
|
7
|
-
--palette-bg-4: #
|
|
8
|
-
--palette-bg-5: #
|
|
4
|
+
--palette-bg-1: #ECEEF2;
|
|
5
|
+
--palette-bg-2: #E4E6EA;
|
|
6
|
+
--palette-bg-3: #D6D9E0;
|
|
7
|
+
--palette-bg-4: #C9CDD6;
|
|
8
|
+
--palette-bg-5: #BCC1CC;
|
|
9
9
|
--palette-brand-default-1: #fcdfe2;
|
|
10
10
|
--palette-brand-default-2: #facdd2;
|
|
11
11
|
--palette-brand-default-3: #F59fa7;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--palette-success: #28bc00;
|
|
24
24
|
--typography-alert: #ff564e;
|
|
25
25
|
--typography-success: #28bc00;
|
|
26
|
-
--typography-secondary: #
|
|
26
|
+
--typography-secondary: #D6D9E0;
|
|
27
27
|
--button-border-radius: 18px;
|
|
28
28
|
--button-primary-color: #000;
|
|
29
29
|
--button-primary-background-color: #ffce31;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--button-primary-color-active: #000;
|
|
35
35
|
--button-primary-background-color-active: #ffc818;
|
|
36
36
|
--button-primary-border-color-active: #ffc818;
|
|
37
|
-
--button-primary-color-disabled: #
|
|
37
|
+
--button-primary-color-disabled: #C9CDD6;
|
|
38
38
|
--button-primary-background-color-disabled: #ffe695;
|
|
39
39
|
--button-primary-border-color-disabled: #ffe695;
|
|
40
40
|
--button-secondary-color: #fff;
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
--button-secondary-color-active: #fff;
|
|
47
47
|
--button-secondary-background-color-active: #000;
|
|
48
48
|
--button-secondary-border-color-active: #000;
|
|
49
|
-
--button-secondary-color-disabled: #
|
|
50
|
-
--button-secondary-background-color-disabled: #
|
|
51
|
-
--button-secondary-border-color-disabled: #
|
|
49
|
+
--button-secondary-color-disabled: #C9CDD6;
|
|
50
|
+
--button-secondary-background-color-disabled: #ECEEF2;
|
|
51
|
+
--button-secondary-border-color-disabled: #ECEEF2;
|
|
52
52
|
--button-outline-color: #000;
|
|
53
53
|
--button-outline-background-color: #fff;
|
|
54
54
|
--button-outline-border-color: #1f1f1f;
|
|
55
55
|
--button-outline-color-hovered: #000;
|
|
56
|
-
--button-outline-background-color-hovered: #
|
|
56
|
+
--button-outline-background-color-hovered: #ECEEF2;
|
|
57
57
|
--button-outline-border-color-hovered: #1f1f1f;
|
|
58
58
|
--button-outline-color-active: #000;
|
|
59
|
-
--button-outline-background-color-active: #
|
|
59
|
+
--button-outline-background-color-active: #E4E6EA;
|
|
60
60
|
--button-outline-border-color-active: #1f1f1f;
|
|
61
|
-
--button-outline-color-disabled: #
|
|
61
|
+
--button-outline-color-disabled: #C9CDD6;
|
|
62
62
|
--button-outline-background-color-disabled: #fff;
|
|
63
|
-
--button-outline-border-color-disabled: #
|
|
63
|
+
--button-outline-border-color-disabled: #E4E6EA;
|
|
64
64
|
--button-pseudo-color: #000;
|
|
65
65
|
--button-pseudo-background-color: #DFE7FA;
|
|
66
66
|
--button-pseudo-border-color: #DFE7FA;
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
--button-pseudo-color-active: #000;
|
|
71
71
|
--button-pseudo-background-color-active: #C0CFF8;
|
|
72
72
|
--button-pseudo-border-color-active: #C0CFF8;
|
|
73
|
-
--button-pseudo-color-disabled: #
|
|
73
|
+
--button-pseudo-color-disabled: #C9CDD6;
|
|
74
74
|
--button-pseudo-background-color-disabled: #DFE7FA;
|
|
75
75
|
--button-pseudo-border-color-disabled: #DFE7FA;
|
|
76
76
|
--button-clear-color: #1f1f1f;
|
|
77
77
|
--button-clear-color-hovered: #1f1f1f;
|
|
78
78
|
--button-clear-color-active: #000;
|
|
79
|
-
--button-clear-color-disabled: #
|
|
79
|
+
--button-clear-color-disabled: #C9CDD6;
|
|
80
80
|
--button-clear-background-color-disabled: #fff;
|
|
81
81
|
--button-clear-border-color-disabled: #fff;
|
|
82
|
-
--input-primary-border-color: #
|
|
83
|
-
--input-primary-plaseholder-color: #
|
|
82
|
+
--input-primary-border-color: #D6D9E0;
|
|
83
|
+
--input-primary-plaseholder-color: #E4E6EA;
|
|
84
84
|
--input-primary-border-color-error: #ff564e;
|
|
85
85
|
--input-primary-background-color-error: #FFEAE2;
|
|
86
86
|
--input-primary-box-shadow-color-error: #FFEAE2;
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
--input-radio-box-shadow-focused: #ffe695;
|
|
97
97
|
--input-radio-background-color-focused: #ffe695;
|
|
98
98
|
--input-radio-border-color-focused: #ffe695;
|
|
99
|
-
--switch-background-color: #
|
|
100
|
-
--switch-border-color: #
|
|
99
|
+
--switch-background-color: #E4E6EA;
|
|
100
|
+
--switch-border-color: #E4E6EA;
|
|
101
101
|
--switch-background-color-checked: #ffc818;
|
|
102
102
|
--switch-border-color-checked: #ffc818;
|
|
103
103
|
--tooltip-background-color: #333;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.theme {
|
|
2
2
|
--palette-black: #000;
|
|
3
3
|
--palette-white: #fff;
|
|
4
|
-
--palette-bg-1: #
|
|
5
|
-
--palette-bg-2: #
|
|
6
|
-
--palette-bg-3: #
|
|
7
|
-
--palette-bg-4: #
|
|
8
|
-
--palette-bg-5: #
|
|
4
|
+
--palette-bg-1: #ECEEF2;
|
|
5
|
+
--palette-bg-2: #E4E6EA;
|
|
6
|
+
--palette-bg-3: #D6D9E0;
|
|
7
|
+
--palette-bg-4: #C9CDD6;
|
|
8
|
+
--palette-bg-5: #BCC1CC;
|
|
9
9
|
--palette-brand-default-1: #F393D2;
|
|
10
10
|
--palette-brand-default-2: #4BDCF8;
|
|
11
11
|
--palette-brand-default-3: #D5D500;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--palette-success: #28bc00;
|
|
24
24
|
--typography-alert: #ff564e;
|
|
25
25
|
--typography-success: #28bc00;
|
|
26
|
-
--typography-secondary: #
|
|
26
|
+
--typography-secondary: #D6D9E0;
|
|
27
27
|
--button-border-radius: 18px;
|
|
28
28
|
--button-primary-color: #fff;
|
|
29
29
|
--button-primary-background-color: #067AFF;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--button-primary-color-active: #fff;
|
|
35
35
|
--button-primary-background-color-active: #0066DC;
|
|
36
36
|
--button-primary-border-color-active: #0066DC;
|
|
37
|
-
--button-primary-color-disabled: #
|
|
37
|
+
--button-primary-color-disabled: #C9CDD6;
|
|
38
38
|
--button-primary-background-color-disabled: #E8F0FE;
|
|
39
39
|
--button-primary-border-color-disabled: #E8F0FE;
|
|
40
40
|
--button-secondary-color: #fff;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
--button-secondary-color-active: #fff;
|
|
47
47
|
--button-secondary-background-color-active: #ffab0f;
|
|
48
48
|
--button-secondary-border-color-active: #ffab0f;
|
|
49
|
-
--button-secondary-color-disabled: #
|
|
49
|
+
--button-secondary-color-disabled: #C9CDD6;
|
|
50
50
|
--button-secondary-background-color-disabled: #fff1db;
|
|
51
51
|
--button-secondary-border-color-disabled: #fff1db;
|
|
52
52
|
--button-pseudo-color: #000;
|
|
@@ -58,29 +58,29 @@
|
|
|
58
58
|
--button-pseudo-color-active: #000;
|
|
59
59
|
--button-pseudo-background-color-active: #FFEAE2;
|
|
60
60
|
--button-pseudo-border-color-active: #FFEAE2;
|
|
61
|
-
--button-pseudo-color-disabled: #
|
|
61
|
+
--button-pseudo-color-disabled: #C9CDD6;
|
|
62
62
|
--button-pseudo-background-color-disabled: #FFF5F0;
|
|
63
63
|
--button-pseudo-border-color-disabled: #FFF5F0;
|
|
64
64
|
--button-outline-color: #000;
|
|
65
65
|
--button-outline-background-color: #fff;
|
|
66
|
-
--button-outline-border-color: #
|
|
66
|
+
--button-outline-border-color: #D6D9E0;
|
|
67
67
|
--button-outline-color-hovered: #000;
|
|
68
|
-
--button-outline-background-color-hovered: #
|
|
69
|
-
--button-outline-border-color-hovered: #
|
|
68
|
+
--button-outline-background-color-hovered: #ECEEF2;
|
|
69
|
+
--button-outline-border-color-hovered: #D6D9E0;
|
|
70
70
|
--button-outline-color-active: #000;
|
|
71
|
-
--button-outline-background-color-active: #
|
|
72
|
-
--button-outline-border-color-active: #
|
|
73
|
-
--button-outline-color-disabled: #
|
|
71
|
+
--button-outline-background-color-active: #E4E6EA;
|
|
72
|
+
--button-outline-border-color-active: #D6D9E0;
|
|
73
|
+
--button-outline-color-disabled: #C9CDD6;
|
|
74
74
|
--button-outline-background-color-disabled: #fff;
|
|
75
|
-
--button-outline-border-color-disabled: #
|
|
75
|
+
--button-outline-border-color-disabled: #E4E6EA;
|
|
76
76
|
--button-clear-color: #067AFF;
|
|
77
77
|
--button-clear-color-hovered: #067AFF;
|
|
78
78
|
--button-clear-color-active: #0066DC;
|
|
79
|
-
--button-clear-color-disabled: #
|
|
79
|
+
--button-clear-color-disabled: #C9CDD6;
|
|
80
80
|
--button-clear-background-color-disabled: #fff;
|
|
81
81
|
--button-clear-border-color-disabled: #fff;
|
|
82
|
-
--input-primary-border-color: #
|
|
83
|
-
--input-primary-plaseholder-color: #
|
|
82
|
+
--input-primary-border-color: #D6D9E0;
|
|
83
|
+
--input-primary-plaseholder-color: #E4E6EA;
|
|
84
84
|
--input-primary-border-color-error: #ff564e;
|
|
85
85
|
--input-primary-background-color-error: #FFEAE2;
|
|
86
86
|
--input-primary-box-shadow-color-error: #FFEAE2;
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
--input-radio-box-shadow-focused: #E8F0FE;
|
|
97
97
|
--input-radio-background-color-focused: #E8F0FE;
|
|
98
98
|
--input-radio-border-color-focused: #E8F0FE;
|
|
99
|
-
--switch-background-color: #
|
|
100
|
-
--switch-border-color: #
|
|
99
|
+
--switch-background-color: #E4E6EA;
|
|
100
|
+
--switch-border-color: #E4E6EA;
|
|
101
101
|
--switch-background-color-checked: #0066DC;
|
|
102
102
|
--switch-border-color-checked: #0066DC;
|
|
103
103
|
--tooltip-background-color: #000;
|
package/index.d.ts
CHANGED