colibri-ui 0.7.94 → 0.7.96
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/Badge/Control/index.d.ts +2 -2
- package/Badge/Control/index.props.d.ts +0 -2
- package/Badge/index.d.ts +2 -2
- package/Badge/index.props.d.ts +0 -2
- package/Chip/index.d.ts +3 -3
- package/Chip/index.props.d.ts +1 -3
- package/ClickOutside/index.d.ts +3 -4
- package/Dropdown/index.d.ts +2 -2
- package/Dropdown/index.props.d.ts +0 -1
- package/Grid/Item/index.d.ts +2 -2
- package/Grid/Item/index.props.d.ts +1 -2
- package/Grid/index.d.ts +2 -2
- package/Grid/index.props.d.ts +0 -2
- package/Menu/components/MenuItem/index.d.ts +3 -1
- package/Menu/components/MenuItem/index.props.d.ts +1 -2
- package/Modal/components/Content/index.d.ts +2 -4
- package/Modal/components/Title/index.d.ts +2 -4
- package/Modal/index.d.ts +2 -2
- package/Modal/index.props.d.ts +0 -2
- package/Portal/index.d.ts +3 -4
- package/README.md +2 -1
- package/Select/components/MenuOverlayItem/index.d.ts +1 -0
- package/Select/components/MenuOverlayItem/index.js +2 -1
- package/Select/index.js +4 -2
- package/Select/index.props.d.ts +1 -0
- package/Status/index.d.ts +2 -1
- package/Status/index.module.css +8 -8
- package/Status/index.props.d.ts +0 -1
- package/TextArea/TextArea.module.css +6 -6
- package/Theme/colors/theme_buenos_aires.js +2 -2
- package/Theme/themes/buenos_aires.js +2 -2
- package/TimeSelect/helpers.d.ts +1 -0
- package/TimeSelect/helpers.js +4 -0
- package/TimeSelect/index.d.ts +1 -0
- package/TimeSelect/index.js +4 -2
- package/Tooltip/index.d.ts +2 -2
- package/Tooltip/index.props.d.ts +0 -1
- package/Typography/Typography.module.css +20 -20
- package/Typography/index.d.ts +2 -2
- package/Typography/index.props.d.ts +1 -2
- package/base/FormField/index.d.ts +3 -1
- package/base/FormField/index.props.d.ts +0 -1
- package/base/InputRoot/index.d.ts +3 -1
- package/base/InputRoot/index.props.d.ts +0 -1
- package/esm/Badge/Control/index.d.ts +2 -2
- package/esm/Badge/Control/index.props.d.ts +0 -2
- package/esm/Badge/index.d.ts +2 -2
- package/esm/Badge/index.props.d.ts +0 -2
- package/esm/Chip/index.d.ts +3 -3
- package/esm/Chip/index.props.d.ts +1 -3
- package/esm/ClickOutside/index.d.ts +3 -4
- package/esm/Dropdown/index.d.ts +2 -2
- package/esm/Dropdown/index.props.d.ts +0 -1
- package/esm/Grid/Item/index.d.ts +2 -2
- package/esm/Grid/Item/index.props.d.ts +1 -2
- package/esm/Grid/index.d.ts +2 -2
- package/esm/Grid/index.props.d.ts +0 -2
- package/esm/Menu/components/MenuItem/index.d.ts +3 -1
- package/esm/Menu/components/MenuItem/index.props.d.ts +1 -2
- package/esm/Modal/components/Content/index.d.ts +2 -4
- package/esm/Modal/components/Title/index.d.ts +2 -4
- package/esm/Modal/index.d.ts +2 -2
- package/esm/Modal/index.props.d.ts +0 -2
- package/esm/Portal/index.d.ts +3 -4
- package/esm/Select/components/MenuOverlayItem/index.d.ts +1 -0
- package/esm/Select/components/MenuOverlayItem/index.js +2 -1
- package/esm/Select/index.js +4 -2
- package/esm/Select/index.props.d.ts +1 -0
- package/esm/Status/index.d.ts +2 -1
- package/esm/Status/index.module.css +8 -8
- package/esm/Status/index.props.d.ts +0 -1
- package/esm/TextArea/TextArea.module.css +6 -6
- package/esm/Theme/colors/theme_buenos_aires.js +2 -2
- package/esm/Theme/themes/buenos_aires.js +2 -2
- package/esm/TimeSelect/helpers.d.ts +1 -0
- package/esm/TimeSelect/helpers.js +5 -2
- package/esm/TimeSelect/index.d.ts +1 -0
- package/esm/TimeSelect/index.js +5 -3
- package/esm/Tooltip/index.d.ts +2 -2
- package/esm/Tooltip/index.props.d.ts +0 -1
- package/esm/Typography/Typography.module.css +20 -20
- package/esm/Typography/index.d.ts +2 -2
- package/esm/Typography/index.props.d.ts +1 -2
- package/esm/base/FormField/index.d.ts +3 -1
- package/esm/base/FormField/index.props.d.ts +0 -1
- package/esm/base/InputRoot/index.d.ts +3 -1
- package/esm/base/InputRoot/index.props.d.ts +0 -1
- package/esm/theme_ba_variables.css +4 -4
- package/package.json +1 -1
- package/theme_ba_variables.css +4 -4
package/Badge/Control/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FC } from "react";
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { ControlProps } from "./index.props";
|
|
3
|
-
export declare const BadgeControl: FC<ControlProps
|
|
3
|
+
export declare const BadgeControl: FC<PropsWithChildren<ControlProps>>;
|
package/Badge/index.d.ts
CHANGED
package/Badge/index.props.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
1
|
import type { ControlProps } from "./Control/index.props";
|
|
3
2
|
export interface Props extends ControlProps {
|
|
4
3
|
className?: string;
|
|
5
4
|
color?: string;
|
|
6
5
|
background?: string;
|
|
7
6
|
content?: number;
|
|
8
|
-
children: ReactNode;
|
|
9
7
|
invisible?: boolean;
|
|
10
8
|
max?: number;
|
|
11
9
|
showZero?: boolean;
|
package/Chip/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { FC } from "react";
|
|
3
|
-
declare const Chip: FC<
|
|
1
|
+
import type { ChipProps } from "./index.props";
|
|
2
|
+
import type { FC, PropsWithChildren } from "react";
|
|
3
|
+
declare const Chip: FC<PropsWithChildren<ChipProps>>;
|
|
4
4
|
export default Chip;
|
package/Chip/index.props.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
1
|
type Size = "s" | "m" | "l";
|
|
3
|
-
export type
|
|
2
|
+
export type ChipProps = {
|
|
4
3
|
size?: Size;
|
|
5
4
|
testID?: string;
|
|
6
5
|
isActive?: boolean;
|
|
7
6
|
iconOnRight?: React.ReactNode;
|
|
8
7
|
onClick?: () => void;
|
|
9
8
|
onIconOnRightClick?: () => void;
|
|
10
|
-
children?: ReactNode;
|
|
11
9
|
};
|
|
12
10
|
export {};
|
package/ClickOutside/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { FC,
|
|
2
|
-
declare const ClickOutside: FC<{
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
|
+
declare const ClickOutside: FC<PropsWithChildren<{
|
|
3
3
|
onClick: (e: MouseEvent | TouchEvent) => void;
|
|
4
|
-
|
|
5
|
-
}>;
|
|
4
|
+
}>>;
|
|
6
5
|
export default ClickOutside;
|
package/Dropdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { DropdownProps } from "./index.props";
|
|
3
|
-
|
|
2
|
+
import type { FC, PropsWithChildren } from "react";
|
|
3
|
+
declare const Dropdown: FC<PropsWithChildren<DropdownProps>>;
|
|
4
4
|
export default Dropdown;
|
|
@@ -4,7 +4,6 @@ import type { Placement as PopperPlacement } from "@popperjs/core";
|
|
|
4
4
|
export type Placement = Extract<PopperPlacement, "bottom-start" | "bottom" | "bottom-end">;
|
|
5
5
|
export type Trigger = "click" | "hover" | "focus";
|
|
6
6
|
export type DropdownProps = {
|
|
7
|
-
children: ReactNode;
|
|
8
7
|
zIndex?: number;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
onVisibleChange?: (visible: boolean) => void;
|
package/Grid/Item/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FC } from "react";
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { GridItemProps } from "./index.props";
|
|
3
|
-
declare const GridItem: FC<GridItemProps
|
|
3
|
+
declare const GridItem: FC<PropsWithChildren<GridItemProps>>;
|
|
4
4
|
export default GridItem;
|
package/Grid/index.d.ts
CHANGED
package/Grid/index.props.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { MenuItemProps } from "./index.props";
|
|
3
|
-
declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps &
|
|
3
|
+
declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
4
6
|
export default MenuItem;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MouseEvent } from "react";
|
|
2
2
|
import type { MenuVariant } from "../../index.props";
|
|
3
3
|
export interface MenuItemProps {
|
|
4
|
-
children: ReactNode;
|
|
5
4
|
className?: string;
|
|
6
5
|
isSelected?: boolean;
|
|
7
6
|
onClick?: (e: MouseEvent) => void;
|
package/Modal/index.d.ts
CHANGED
package/Modal/index.props.d.ts
CHANGED
package/Portal/index.d.ts
CHANGED
package/README.md
CHANGED
|
@@ -19,12 +19,13 @@ npm i -S colibri-ui
|
|
|
19
19
|
```tsx
|
|
20
20
|
// app/layout.tsx
|
|
21
21
|
import classNames from "classnames";
|
|
22
|
+
import type { ReactNode } from "react";
|
|
22
23
|
import "colibri-ui/theme_default_variables.css";
|
|
23
24
|
|
|
24
25
|
export default function RootLayout({
|
|
25
26
|
children,
|
|
26
27
|
}: Readonly<{
|
|
27
|
-
children:
|
|
28
|
+
children: ReactNode;
|
|
28
29
|
}>) {
|
|
29
30
|
return (
|
|
30
31
|
<html lang="en">
|
|
@@ -35,7 +35,8 @@ var SelectItem = function SelectItem(_a) {
|
|
|
35
35
|
return /*#__PURE__*/React__default.default.createElement(index.default, {
|
|
36
36
|
ref: ref,
|
|
37
37
|
onClick: onClick,
|
|
38
|
-
isSelected: option.selected
|
|
38
|
+
isSelected: option.selected,
|
|
39
|
+
disabled: option.disabled
|
|
39
40
|
}, option.label, option.selected && /*#__PURE__*/React__default.default.createElement(Check.default, {
|
|
40
41
|
width: 16,
|
|
41
42
|
height: 16
|
package/Select/index.js
CHANGED
|
@@ -38,11 +38,13 @@ var Select = function Select(_a) {
|
|
|
38
38
|
var preparedOptions = React.useMemo(function () {
|
|
39
39
|
return options.map(function (_a) {
|
|
40
40
|
var lvalue = _a.value,
|
|
41
|
-
llabel = _a.label
|
|
41
|
+
llabel = _a.label,
|
|
42
|
+
disabled = _a.disabled;
|
|
42
43
|
return {
|
|
43
44
|
value: lvalue,
|
|
44
45
|
label: llabel,
|
|
45
|
-
selected: value === lvalue
|
|
46
|
+
selected: value === lvalue,
|
|
47
|
+
disabled: disabled
|
|
46
48
|
};
|
|
47
49
|
});
|
|
48
50
|
}, [value, options]);
|
package/Select/index.props.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { FormFieldProps } from "../base/FormField/index.props";
|
|
|
3
3
|
export interface IOption<T extends string> {
|
|
4
4
|
value: T;
|
|
5
5
|
label: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface SelectProps<T extends string> extends Omit<FormFieldProps, "children"> {
|
|
8
9
|
options: IOption<T>[];
|
package/Status/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
2
3
|
import type { StatusProps } from "./index.props";
|
|
3
|
-
declare const Status: ({ className, tag: Component, children, type, }: StatusProps) => React.JSX.Element;
|
|
4
|
+
declare const Status: ({ className, tag: Component, children, type, }: PropsWithChildren<StatusProps>) => React.JSX.Element;
|
|
4
5
|
export default Status;
|
package/Status/index.module.css
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
display: inline-flex;
|
|
3
2
|
align-items: center;
|
|
4
|
-
gap: 0.5rem;
|
|
5
3
|
background-color: var(--status-neutral-bg);
|
|
6
|
-
line-height: 1.5rem;
|
|
7
|
-
padding: 0 0.5rem;
|
|
8
4
|
border-radius: 6rem;
|
|
9
|
-
inline-size: fit-content;
|
|
10
5
|
box-sizing: border-box;
|
|
11
|
-
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
gap: 0.5rem;
|
|
8
|
+
inline-size: fit-content;
|
|
9
|
+
line-height: 1.5rem;
|
|
12
10
|
overflow: hidden;
|
|
11
|
+
padding: 0 0.5rem;
|
|
13
12
|
vertical-align: middle;
|
|
13
|
+
white-space: nowrap;
|
|
14
14
|
}
|
|
15
15
|
.root::before {
|
|
16
16
|
background-color: var(--status-neutral);
|
|
17
|
-
content: "";
|
|
18
|
-
inline-size: 0.4rem;
|
|
19
17
|
block-size: 0.4rem;
|
|
20
18
|
border-radius: 100%;
|
|
19
|
+
content: "";
|
|
20
|
+
inline-size: 0.4rem;
|
|
21
21
|
}
|
|
22
22
|
.root_success {
|
|
23
23
|
background-color: var(--status-success-bg);
|
package/Status/index.props.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.textarea {
|
|
2
|
-
resize: none;
|
|
3
|
-
font: inherit;
|
|
4
|
-
overflow: auto;
|
|
5
|
-
text-overflow: unset;
|
|
6
|
-
padding: 7px 0;
|
|
7
2
|
background: transparent;
|
|
8
3
|
border: none;
|
|
9
|
-
outline: none;
|
|
10
4
|
flex: 1;
|
|
5
|
+
font: inherit;
|
|
6
|
+
outline: none;
|
|
7
|
+
overflow: auto;
|
|
11
8
|
overflow: hidden;
|
|
9
|
+
padding: 7px 0;
|
|
10
|
+
resize: none;
|
|
11
|
+
text-overflow: unset;
|
|
12
12
|
text-overflow: ellipsis;
|
|
13
13
|
}
|
|
14
14
|
.textarea::placeholder {
|
|
@@ -12,8 +12,8 @@ var PrimaryBA = {
|
|
|
12
12
|
PRIMARY_BA_5: "#FFC818"
|
|
13
13
|
};
|
|
14
14
|
var SecondaryBA = {
|
|
15
|
-
SECONDARY_BA_1: "#
|
|
16
|
-
SECONDARY_BA_2: "#
|
|
15
|
+
SECONDARY_BA_1: "#818b98",
|
|
16
|
+
SECONDARY_BA_2: "#59636e",
|
|
17
17
|
SECONDARY_BA_3: "#393f46",
|
|
18
18
|
SECONDARY_BA_4: "#25292e",
|
|
19
19
|
SECONDARY_BA_5: "#1f2328"
|
|
@@ -51,10 +51,10 @@ var THEME_BA = {
|
|
|
51
51
|
"button-secondary-bg": index.default.SECONDARY_BA_4,
|
|
52
52
|
"button-secondary-border-color": index.default.SECONDARY_BA_4,
|
|
53
53
|
"button-secondary-color-hovered": index.default.WHITE,
|
|
54
|
-
"button-secondary-bg-hovered": index.default.
|
|
54
|
+
"button-secondary-bg-hovered": index.default.SECONDARY_BA_5,
|
|
55
55
|
"button-secondary-border-color-hovered": index.default.SECONDARY_BA_4,
|
|
56
56
|
"button-secondary-color-active": index.default.WHITE,
|
|
57
|
-
"button-secondary-bg-active": index.default.
|
|
57
|
+
"button-secondary-bg-active": index.default.BLACK,
|
|
58
58
|
"button-secondary-border-color-active": index.default.SECONDARY_BA_5,
|
|
59
59
|
"button-secondary-color-disabled": index.default.BG_4,
|
|
60
60
|
"button-secondary-bg-disabled": index.default.BG_1,
|
package/TimeSelect/helpers.d.ts
CHANGED
package/TimeSelect/helpers.js
CHANGED
|
@@ -22,7 +22,11 @@ var generateSuggest = function generateSuggest(interval) {
|
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
+
var checkIsBeforeNow = function checkIsBeforeNow(time, currentDate) {
|
|
26
|
+
return currentDate ? dateFns.isBefore(dateFns.parse(time, "HH:mm", currentDate), new Date()) : false;
|
|
27
|
+
};
|
|
25
28
|
|
|
26
29
|
exports.DEFAULT_TIME = DEFAULT_TIME;
|
|
30
|
+
exports.checkIsBeforeNow = checkIsBeforeNow;
|
|
27
31
|
exports.formatTime = formatTime;
|
|
28
32
|
exports.generateSuggest = generateSuggest;
|
package/TimeSelect/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { SelectProps } from "../Select/index.props";
|
|
|
2
2
|
import type { FC } from "react";
|
|
3
3
|
interface TimeSelectProps extends SelectProps<string> {
|
|
4
4
|
interval?: 5 | 10 | 15 | 30;
|
|
5
|
+
currentDate?: Date | null;
|
|
5
6
|
}
|
|
6
7
|
declare const TimeSelect: FC<TimeSelectProps>;
|
|
7
8
|
export default TimeSelect;
|
package/TimeSelect/index.js
CHANGED
|
@@ -14,19 +14,21 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
14
14
|
|
|
15
15
|
var TimeSelect = function TimeSelect(_a) {
|
|
16
16
|
var value = _a.value,
|
|
17
|
+
currentDate = _a.currentDate,
|
|
17
18
|
_b = _a.label,
|
|
18
19
|
label = _b === void 0 ? "Start time" : _b,
|
|
19
20
|
_c = _a.interval,
|
|
20
21
|
interval = _c === void 0 ? 15 : _c,
|
|
21
22
|
onChange = _a.onChange,
|
|
22
|
-
props = tslib.__rest(_a, ["value", "label", "interval", "onChange"]);
|
|
23
|
+
props = tslib.__rest(_a, ["value", "currentDate", "label", "interval", "onChange"]);
|
|
23
24
|
var options = React.useMemo(function () {
|
|
24
25
|
return helpers.generateSuggest(interval).map(function (item) {
|
|
25
26
|
return {
|
|
26
27
|
value: item.time,
|
|
27
28
|
label: /*#__PURE__*/React__default.default.createElement(index.default, {
|
|
28
29
|
time: item.time
|
|
29
|
-
})
|
|
30
|
+
}),
|
|
31
|
+
disabled: helpers.checkIsBeforeNow(item.time, currentDate)
|
|
30
32
|
};
|
|
31
33
|
});
|
|
32
34
|
}, [interval]);
|
package/Tooltip/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { ITooltipProps } from "./index.props";
|
|
3
|
-
|
|
2
|
+
import type { FC, PropsWithChildren } from "react";
|
|
3
|
+
declare const Tooltip: FC<PropsWithChildren<ITooltipProps>>;
|
|
4
4
|
export default Tooltip;
|
package/Tooltip/index.props.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type { PositioningStrategy } from "@popperjs/core";
|
|
|
3
3
|
import type { Placement as PopperPlacement } from "@popperjs/core";
|
|
4
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">;
|
|
5
5
|
export interface ITooltipProps {
|
|
6
|
-
children: ReactNode;
|
|
7
6
|
content: ReactNode;
|
|
8
7
|
zIndex?: number;
|
|
9
8
|
placement?: Placement;
|
|
@@ -3,44 +3,44 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.size_xs {
|
|
6
|
-
font-size:
|
|
7
|
-
line-height:
|
|
6
|
+
font-size: 0.75rem;
|
|
7
|
+
line-height: 1.3;
|
|
8
8
|
}
|
|
9
9
|
.size_s {
|
|
10
|
-
font-size:
|
|
11
|
-
line-height:
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
line-height: 1.4;
|
|
12
12
|
}
|
|
13
13
|
.size_m {
|
|
14
|
-
font-size:
|
|
15
|
-
line-height:
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
line-height: 1.5;
|
|
16
16
|
}
|
|
17
17
|
.size_l {
|
|
18
|
-
font-size:
|
|
19
|
-
line-height:
|
|
18
|
+
font-size: 1.25rem;
|
|
19
|
+
line-height: 1.5;
|
|
20
20
|
}
|
|
21
21
|
.size_h1 {
|
|
22
|
-
font-size:
|
|
23
|
-
line-height:
|
|
22
|
+
font-size: 3rem;
|
|
23
|
+
line-height: 1.2;
|
|
24
24
|
}
|
|
25
25
|
.size_h2 {
|
|
26
|
-
font-size:
|
|
27
|
-
line-height:
|
|
26
|
+
font-size: 2.25rem;
|
|
27
|
+
line-height: 1.3;
|
|
28
28
|
}
|
|
29
29
|
.size_h3 {
|
|
30
|
-
font-size:
|
|
31
|
-
line-height:
|
|
30
|
+
font-size: 1.75rem;
|
|
31
|
+
line-height: 1.4;
|
|
32
32
|
}
|
|
33
33
|
.size_h4 {
|
|
34
|
-
font-size:
|
|
35
|
-
line-height:
|
|
34
|
+
font-size: 1.5rem;
|
|
35
|
+
line-height: 1.5;
|
|
36
36
|
}
|
|
37
37
|
.size_h5 {
|
|
38
|
-
font-size:
|
|
39
|
-
line-height:
|
|
38
|
+
font-size: 1.25rem;
|
|
39
|
+
line-height: 1.5;
|
|
40
40
|
}
|
|
41
41
|
.size_h6 {
|
|
42
|
-
font-size:
|
|
43
|
-
line-height:
|
|
42
|
+
font-size: 1rem;
|
|
43
|
+
line-height: 1.5;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.font-weight_normal {
|
package/Typography/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
2
|
export type TypographyVariant = "alert" | "success" | "secondary";
|
|
3
3
|
export type TypographyFontWeight = "normal" | "medium" | "bold";
|
|
4
4
|
export type TypographySize = "xs" | "s" | "m" | "l" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
@@ -10,5 +10,4 @@ export type Props = {
|
|
|
10
10
|
size?: TypographySize;
|
|
11
11
|
fontWeight?: TypographyFontWeight;
|
|
12
12
|
style?: CSSProperties;
|
|
13
|
-
children?: ReactNode;
|
|
14
13
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FormFieldProps } from "./index.props";
|
|
3
|
-
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps &
|
|
3
|
+
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export default FormField;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { InputProps } from "./index.props";
|
|
3
|
-
declare const InputRoot: React.ForwardRefExoticComponent<InputProps &
|
|
3
|
+
declare const InputRoot: React.ForwardRefExoticComponent<InputProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export default InputRoot;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FC } from "react";
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { ControlProps } from "./index.props";
|
|
3
|
-
export declare const BadgeControl: FC<ControlProps
|
|
3
|
+
export declare const BadgeControl: FC<PropsWithChildren<ControlProps>>;
|
package/esm/Badge/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
1
|
import type { ControlProps } from "./Control/index.props";
|
|
3
2
|
export interface Props extends ControlProps {
|
|
4
3
|
className?: string;
|
|
5
4
|
color?: string;
|
|
6
5
|
background?: string;
|
|
7
6
|
content?: number;
|
|
8
|
-
children: ReactNode;
|
|
9
7
|
invisible?: boolean;
|
|
10
8
|
max?: number;
|
|
11
9
|
showZero?: boolean;
|
package/esm/Chip/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { FC } from "react";
|
|
3
|
-
declare const Chip: FC<
|
|
1
|
+
import type { ChipProps } from "./index.props";
|
|
2
|
+
import type { FC, PropsWithChildren } from "react";
|
|
3
|
+
declare const Chip: FC<PropsWithChildren<ChipProps>>;
|
|
4
4
|
export default Chip;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
1
|
type Size = "s" | "m" | "l";
|
|
3
|
-
export type
|
|
2
|
+
export type ChipProps = {
|
|
4
3
|
size?: Size;
|
|
5
4
|
testID?: string;
|
|
6
5
|
isActive?: boolean;
|
|
7
6
|
iconOnRight?: React.ReactNode;
|
|
8
7
|
onClick?: () => void;
|
|
9
8
|
onIconOnRightClick?: () => void;
|
|
10
|
-
children?: ReactNode;
|
|
11
9
|
};
|
|
12
10
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { FC,
|
|
2
|
-
declare const ClickOutside: FC<{
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
|
+
declare const ClickOutside: FC<PropsWithChildren<{
|
|
3
3
|
onClick: (e: MouseEvent | TouchEvent) => void;
|
|
4
|
-
|
|
5
|
-
}>;
|
|
4
|
+
}>>;
|
|
6
5
|
export default ClickOutside;
|
package/esm/Dropdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { DropdownProps } from "./index.props";
|
|
3
|
-
|
|
2
|
+
import type { FC, PropsWithChildren } from "react";
|
|
3
|
+
declare const Dropdown: FC<PropsWithChildren<DropdownProps>>;
|
|
4
4
|
export default Dropdown;
|
|
@@ -4,7 +4,6 @@ import type { Placement as PopperPlacement } from "@popperjs/core";
|
|
|
4
4
|
export type Placement = Extract<PopperPlacement, "bottom-start" | "bottom" | "bottom-end">;
|
|
5
5
|
export type Trigger = "click" | "hover" | "focus";
|
|
6
6
|
export type DropdownProps = {
|
|
7
|
-
children: ReactNode;
|
|
8
7
|
zIndex?: number;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
onVisibleChange?: (visible: boolean) => void;
|
package/esm/Grid/Item/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FC } from "react";
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { GridItemProps } from "./index.props";
|
|
3
|
-
declare const GridItem: FC<GridItemProps
|
|
3
|
+
declare const GridItem: FC<PropsWithChildren<GridItemProps>>;
|
|
4
4
|
export default GridItem;
|
package/esm/Grid/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { MenuItemProps } from "./index.props";
|
|
3
|
-
declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps &
|
|
3
|
+
declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
4
6
|
export default MenuItem;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MouseEvent } from "react";
|
|
2
2
|
import type { MenuVariant } from "../../index.props";
|
|
3
3
|
export interface MenuItemProps {
|
|
4
|
-
children: ReactNode;
|
|
5
4
|
className?: string;
|
|
6
5
|
isSelected?: boolean;
|
|
7
6
|
onClick?: (e: MouseEvent) => void;
|
package/esm/Modal/index.d.ts
CHANGED
package/esm/Portal/index.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ var SelectItem = function SelectItem(_a) {
|
|
|
27
27
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
28
28
|
ref: ref,
|
|
29
29
|
onClick: onClick,
|
|
30
|
-
isSelected: option.selected
|
|
30
|
+
isSelected: option.selected,
|
|
31
|
+
disabled: option.disabled
|
|
31
32
|
}, option.label, option.selected && /*#__PURE__*/React__default.createElement(Check, {
|
|
32
33
|
width: 16,
|
|
33
34
|
height: 16
|
package/esm/Select/index.js
CHANGED
|
@@ -28,11 +28,13 @@ var Select = function Select(_a) {
|
|
|
28
28
|
var preparedOptions = useMemo(function () {
|
|
29
29
|
return options.map(function (_a) {
|
|
30
30
|
var lvalue = _a.value,
|
|
31
|
-
llabel = _a.label
|
|
31
|
+
llabel = _a.label,
|
|
32
|
+
disabled = _a.disabled;
|
|
32
33
|
return {
|
|
33
34
|
value: lvalue,
|
|
34
35
|
label: llabel,
|
|
35
|
-
selected: value === lvalue
|
|
36
|
+
selected: value === lvalue,
|
|
37
|
+
disabled: disabled
|
|
36
38
|
};
|
|
37
39
|
});
|
|
38
40
|
}, [value, options]);
|
|
@@ -3,6 +3,7 @@ import type { FormFieldProps } from "../base/FormField/index.props";
|
|
|
3
3
|
export interface IOption<T extends string> {
|
|
4
4
|
value: T;
|
|
5
5
|
label: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface SelectProps<T extends string> extends Omit<FormFieldProps, "children"> {
|
|
8
9
|
options: IOption<T>[];
|
package/esm/Status/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
2
3
|
import type { StatusProps } from "./index.props";
|
|
3
|
-
declare const Status: ({ className, tag: Component, children, type, }: StatusProps) => React.JSX.Element;
|
|
4
|
+
declare const Status: ({ className, tag: Component, children, type, }: PropsWithChildren<StatusProps>) => React.JSX.Element;
|
|
4
5
|
export default Status;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
display: inline-flex;
|
|
3
2
|
align-items: center;
|
|
4
|
-
gap: 0.5rem;
|
|
5
3
|
background-color: var(--status-neutral-bg);
|
|
6
|
-
line-height: 1.5rem;
|
|
7
|
-
padding: 0 0.5rem;
|
|
8
4
|
border-radius: 6rem;
|
|
9
|
-
inline-size: fit-content;
|
|
10
5
|
box-sizing: border-box;
|
|
11
|
-
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
gap: 0.5rem;
|
|
8
|
+
inline-size: fit-content;
|
|
9
|
+
line-height: 1.5rem;
|
|
12
10
|
overflow: hidden;
|
|
11
|
+
padding: 0 0.5rem;
|
|
13
12
|
vertical-align: middle;
|
|
13
|
+
white-space: nowrap;
|
|
14
14
|
}
|
|
15
15
|
.root::before {
|
|
16
16
|
background-color: var(--status-neutral);
|
|
17
|
-
content: "";
|
|
18
|
-
inline-size: 0.4rem;
|
|
19
17
|
block-size: 0.4rem;
|
|
20
18
|
border-radius: 100%;
|
|
19
|
+
content: "";
|
|
20
|
+
inline-size: 0.4rem;
|
|
21
21
|
}
|
|
22
22
|
.root_success {
|
|
23
23
|
background-color: var(--status-success-bg);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.textarea {
|
|
2
|
-
resize: none;
|
|
3
|
-
font: inherit;
|
|
4
|
-
overflow: auto;
|
|
5
|
-
text-overflow: unset;
|
|
6
|
-
padding: 7px 0;
|
|
7
2
|
background: transparent;
|
|
8
3
|
border: none;
|
|
9
|
-
outline: none;
|
|
10
4
|
flex: 1;
|
|
5
|
+
font: inherit;
|
|
6
|
+
outline: none;
|
|
7
|
+
overflow: auto;
|
|
11
8
|
overflow: hidden;
|
|
9
|
+
padding: 7px 0;
|
|
10
|
+
resize: none;
|
|
11
|
+
text-overflow: unset;
|
|
12
12
|
text-overflow: ellipsis;
|
|
13
13
|
}
|
|
14
14
|
.textarea::placeholder {
|
|
@@ -8,8 +8,8 @@ var PrimaryBA = {
|
|
|
8
8
|
PRIMARY_BA_5: "#FFC818"
|
|
9
9
|
};
|
|
10
10
|
var SecondaryBA = {
|
|
11
|
-
SECONDARY_BA_1: "#
|
|
12
|
-
SECONDARY_BA_2: "#
|
|
11
|
+
SECONDARY_BA_1: "#818b98",
|
|
12
|
+
SECONDARY_BA_2: "#59636e",
|
|
13
13
|
SECONDARY_BA_3: "#393f46",
|
|
14
14
|
SECONDARY_BA_4: "#25292e",
|
|
15
15
|
SECONDARY_BA_5: "#1f2328"
|
|
@@ -47,10 +47,10 @@ var THEME_BA = {
|
|
|
47
47
|
"button-secondary-bg": Color.SECONDARY_BA_4,
|
|
48
48
|
"button-secondary-border-color": Color.SECONDARY_BA_4,
|
|
49
49
|
"button-secondary-color-hovered": Color.WHITE,
|
|
50
|
-
"button-secondary-bg-hovered": Color.
|
|
50
|
+
"button-secondary-bg-hovered": Color.SECONDARY_BA_5,
|
|
51
51
|
"button-secondary-border-color-hovered": Color.SECONDARY_BA_4,
|
|
52
52
|
"button-secondary-color-active": Color.WHITE,
|
|
53
|
-
"button-secondary-bg-active": Color.
|
|
53
|
+
"button-secondary-bg-active": Color.BLACK,
|
|
54
54
|
"button-secondary-border-color-active": Color.SECONDARY_BA_5,
|
|
55
55
|
"button-secondary-color-disabled": Color.BG_4,
|
|
56
56
|
"button-secondary-bg-disabled": Color.BG_1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { format, addMinutes } from 'date-fns';
|
|
1
|
+
import { format, addMinutes, isBefore, parse } from 'date-fns';
|
|
2
2
|
|
|
3
3
|
var day = new Date();
|
|
4
4
|
day.setHours(24, 0, 0, 0);
|
|
@@ -20,5 +20,8 @@ var generateSuggest = function generateSuggest(interval) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
+
var checkIsBeforeNow = function checkIsBeforeNow(time, currentDate) {
|
|
24
|
+
return currentDate ? isBefore(parse(time, "HH:mm", currentDate), new Date()) : false;
|
|
25
|
+
};
|
|
23
26
|
|
|
24
|
-
export { DEFAULT_TIME, formatTime, generateSuggest };
|
|
27
|
+
export { DEFAULT_TIME, checkIsBeforeNow, formatTime, generateSuggest };
|
|
@@ -2,6 +2,7 @@ import type { SelectProps } from "../Select/index.props";
|
|
|
2
2
|
import type { FC } from "react";
|
|
3
3
|
interface TimeSelectProps extends SelectProps<string> {
|
|
4
4
|
interval?: 5 | 10 | 15 | 30;
|
|
5
|
+
currentDate?: Date | null;
|
|
5
6
|
}
|
|
6
7
|
declare const TimeSelect: FC<TimeSelectProps>;
|
|
7
8
|
export default TimeSelect;
|
package/esm/TimeSelect/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React__default, { useMemo } from 'react';
|
|
3
3
|
import Select from '../Select/index.js';
|
|
4
|
-
import { generateSuggest } from './helpers.js';
|
|
4
|
+
import { generateSuggest, checkIsBeforeNow } from './helpers.js';
|
|
5
5
|
import OptionLabel from './Label/index.js';
|
|
6
6
|
|
|
7
7
|
var TimeSelect = function TimeSelect(_a) {
|
|
8
8
|
var value = _a.value,
|
|
9
|
+
currentDate = _a.currentDate,
|
|
9
10
|
_b = _a.label,
|
|
10
11
|
label = _b === void 0 ? "Start time" : _b,
|
|
11
12
|
_c = _a.interval,
|
|
12
13
|
interval = _c === void 0 ? 15 : _c,
|
|
13
14
|
onChange = _a.onChange,
|
|
14
|
-
props = __rest(_a, ["value", "label", "interval", "onChange"]);
|
|
15
|
+
props = __rest(_a, ["value", "currentDate", "label", "interval", "onChange"]);
|
|
15
16
|
var options = useMemo(function () {
|
|
16
17
|
return generateSuggest(interval).map(function (item) {
|
|
17
18
|
return {
|
|
18
19
|
value: item.time,
|
|
19
20
|
label: /*#__PURE__*/React__default.createElement(OptionLabel, {
|
|
20
21
|
time: item.time
|
|
21
|
-
})
|
|
22
|
+
}),
|
|
23
|
+
disabled: checkIsBeforeNow(item.time, currentDate)
|
|
22
24
|
};
|
|
23
25
|
});
|
|
24
26
|
}, [interval]);
|
package/esm/Tooltip/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { ITooltipProps } from "./index.props";
|
|
3
|
-
|
|
2
|
+
import type { FC, PropsWithChildren } from "react";
|
|
3
|
+
declare const Tooltip: FC<PropsWithChildren<ITooltipProps>>;
|
|
4
4
|
export default Tooltip;
|
|
@@ -3,7 +3,6 @@ import type { PositioningStrategy } from "@popperjs/core";
|
|
|
3
3
|
import type { Placement as PopperPlacement } from "@popperjs/core";
|
|
4
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">;
|
|
5
5
|
export interface ITooltipProps {
|
|
6
|
-
children: ReactNode;
|
|
7
6
|
content: ReactNode;
|
|
8
7
|
zIndex?: number;
|
|
9
8
|
placement?: Placement;
|
|
@@ -3,44 +3,44 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.size_xs {
|
|
6
|
-
font-size:
|
|
7
|
-
line-height:
|
|
6
|
+
font-size: 0.75rem;
|
|
7
|
+
line-height: 1.3;
|
|
8
8
|
}
|
|
9
9
|
.size_s {
|
|
10
|
-
font-size:
|
|
11
|
-
line-height:
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
line-height: 1.4;
|
|
12
12
|
}
|
|
13
13
|
.size_m {
|
|
14
|
-
font-size:
|
|
15
|
-
line-height:
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
line-height: 1.5;
|
|
16
16
|
}
|
|
17
17
|
.size_l {
|
|
18
|
-
font-size:
|
|
19
|
-
line-height:
|
|
18
|
+
font-size: 1.25rem;
|
|
19
|
+
line-height: 1.5;
|
|
20
20
|
}
|
|
21
21
|
.size_h1 {
|
|
22
|
-
font-size:
|
|
23
|
-
line-height:
|
|
22
|
+
font-size: 3rem;
|
|
23
|
+
line-height: 1.2;
|
|
24
24
|
}
|
|
25
25
|
.size_h2 {
|
|
26
|
-
font-size:
|
|
27
|
-
line-height:
|
|
26
|
+
font-size: 2.25rem;
|
|
27
|
+
line-height: 1.3;
|
|
28
28
|
}
|
|
29
29
|
.size_h3 {
|
|
30
|
-
font-size:
|
|
31
|
-
line-height:
|
|
30
|
+
font-size: 1.75rem;
|
|
31
|
+
line-height: 1.4;
|
|
32
32
|
}
|
|
33
33
|
.size_h4 {
|
|
34
|
-
font-size:
|
|
35
|
-
line-height:
|
|
34
|
+
font-size: 1.5rem;
|
|
35
|
+
line-height: 1.5;
|
|
36
36
|
}
|
|
37
37
|
.size_h5 {
|
|
38
|
-
font-size:
|
|
39
|
-
line-height:
|
|
38
|
+
font-size: 1.25rem;
|
|
39
|
+
line-height: 1.5;
|
|
40
40
|
}
|
|
41
41
|
.size_h6 {
|
|
42
|
-
font-size:
|
|
43
|
-
line-height:
|
|
42
|
+
font-size: 1rem;
|
|
43
|
+
line-height: 1.5;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.font-weight_normal {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
2
|
export type TypographyVariant = "alert" | "success" | "secondary";
|
|
3
3
|
export type TypographyFontWeight = "normal" | "medium" | "bold";
|
|
4
4
|
export type TypographySize = "xs" | "s" | "m" | "l" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
@@ -10,5 +10,4 @@ export type Props = {
|
|
|
10
10
|
size?: TypographySize;
|
|
11
11
|
fontWeight?: TypographyFontWeight;
|
|
12
12
|
style?: CSSProperties;
|
|
13
|
-
children?: ReactNode;
|
|
14
13
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FormFieldProps } from "./index.props";
|
|
3
|
-
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps &
|
|
3
|
+
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export default FormField;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { InputProps } from "./index.props";
|
|
3
|
-
declare const InputRoot: React.ForwardRefExoticComponent<InputProps &
|
|
3
|
+
declare const InputRoot: React.ForwardRefExoticComponent<InputProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export default InputRoot;
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
--palette-primary-3: #FFD85A;
|
|
15
15
|
--palette-primary-4: #FFCE31;
|
|
16
16
|
--palette-primary-5: #FFC818;
|
|
17
|
-
--palette-secondary-1: #
|
|
18
|
-
--palette-secondary-2: #
|
|
17
|
+
--palette-secondary-1: #818b98;
|
|
18
|
+
--palette-secondary-2: #59636e;
|
|
19
19
|
--palette-secondary-3: #393f46;
|
|
20
20
|
--palette-secondary-4: #25292e;
|
|
21
21
|
--palette-secondary-5: #1f2328;
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
--button-secondary-bg: #25292e;
|
|
46
46
|
--button-secondary-border-color: #25292e;
|
|
47
47
|
--button-secondary-color-hovered: #FFF;
|
|
48
|
-
--button-secondary-bg-hovered: #
|
|
48
|
+
--button-secondary-bg-hovered: #1f2328;
|
|
49
49
|
--button-secondary-border-color-hovered: #25292e;
|
|
50
50
|
--button-secondary-color-active: #FFF;
|
|
51
|
-
--button-secondary-bg-active: #
|
|
51
|
+
--button-secondary-bg-active: #000;
|
|
52
52
|
--button-secondary-border-color-active: #1f2328;
|
|
53
53
|
--button-secondary-color-disabled: #C9CDD6;
|
|
54
54
|
--button-secondary-bg-disabled: #ECEEF2;
|
package/package.json
CHANGED
package/theme_ba_variables.css
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
--palette-primary-3: #FFD85A;
|
|
15
15
|
--palette-primary-4: #FFCE31;
|
|
16
16
|
--palette-primary-5: #FFC818;
|
|
17
|
-
--palette-secondary-1: #
|
|
18
|
-
--palette-secondary-2: #
|
|
17
|
+
--palette-secondary-1: #818b98;
|
|
18
|
+
--palette-secondary-2: #59636e;
|
|
19
19
|
--palette-secondary-3: #393f46;
|
|
20
20
|
--palette-secondary-4: #25292e;
|
|
21
21
|
--palette-secondary-5: #1f2328;
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
--button-secondary-bg: #25292e;
|
|
46
46
|
--button-secondary-border-color: #25292e;
|
|
47
47
|
--button-secondary-color-hovered: #FFF;
|
|
48
|
-
--button-secondary-bg-hovered: #
|
|
48
|
+
--button-secondary-bg-hovered: #1f2328;
|
|
49
49
|
--button-secondary-border-color-hovered: #25292e;
|
|
50
50
|
--button-secondary-color-active: #FFF;
|
|
51
|
-
--button-secondary-bg-active: #
|
|
51
|
+
--button-secondary-bg-active: #000;
|
|
52
52
|
--button-secondary-border-color-active: #1f2328;
|
|
53
53
|
--button-secondary-color-disabled: #C9CDD6;
|
|
54
54
|
--button-secondary-bg-disabled: #ECEEF2;
|