colibri-ui 0.7.8 → 0.7.10
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/Button/index.props.js +0 -6
- package/Button/styles.js +13 -7
- package/Checkbox/styles.js +8 -8
- package/Icons/index.js +0 -4
- package/Image/index.js +66 -0
- package/Image/package.json +6 -0
- package/Image/styles.js +18 -0
- package/Input/index.js +50 -0
- package/Input/package.json +6 -0
- package/README.md +2 -0
- package/Skeleton/index.js +34 -0
- package/Skeleton/package.json +6 -0
- package/Skeleton/styles.js +31 -0
- package/Theme/themes/buenos_aires.js +49 -7
- package/Theme/themes/default.js +49 -8
- package/base/FormField/index.js +30 -0
- package/base/FormField/styles.js +18 -0
- package/base/InputRoot/index.js +34 -0
- package/base/InputRoot/styles.js +82 -0
- package/{Button → components/Button}/index.props.d.ts +5 -9
- package/{esm → components}/Button/styles.d.ts +2 -2
- package/{Checkbox → components/Checkbox}/index.props.d.ts +2 -2
- package/{Icons → components/Icons}/index.d.ts +0 -2
- package/components/Image/index.d.ts +4 -0
- package/components/Image/index.props.d.ts +9 -0
- package/components/Image/styles.d.ts +5 -0
- package/components/Input/index.d.ts +4 -0
- package/components/Input/index.props.d.ts +13 -0
- package/components/Skeleton/index.d.ts +4 -0
- package/components/Skeleton/index.props.d.ts +11 -0
- package/components/Skeleton/styles.d.ts +9 -0
- package/{Theme → components/Theme}/index.d.ts +80 -0
- package/{Theme → components/Theme}/index.props.d.ts +2 -0
- package/{esm → components}/Theme/themes/buenos_aires.d.ts +80 -0
- package/{esm → components}/Theme/themes/default.d.ts +80 -0
- package/{esm → components}/Typography/index.props.d.ts +4 -7
- package/components/base/FormField/index.d.ts +4 -0
- package/components/base/FormField/index.props.d.ts +8 -0
- package/components/base/FormField/styles.d.ts +5 -0
- package/components/base/InputRoot/index.d.ts +4 -0
- package/components/base/InputRoot/index.props.d.ts +41 -0
- package/components/base/InputRoot/styles.d.ts +27 -0
- package/{esm → components}/index.d.ts +3 -0
- package/esm/Button/index.props.js +1 -7
- package/esm/Button/styles.js +13 -7
- package/esm/Checkbox/styles.js +8 -8
- package/esm/Icons/index.js +0 -2
- package/esm/Image/index.js +62 -0
- package/esm/Image/styles.js +12 -0
- package/esm/Input/index.js +46 -0
- package/esm/Skeleton/index.js +31 -0
- package/esm/Skeleton/styles.js +24 -0
- package/esm/Theme/themes/buenos_aires.js +49 -8
- package/esm/Theme/themes/default.js +49 -9
- package/esm/base/FormField/index.js +26 -0
- package/esm/base/FormField/styles.js +12 -0
- package/esm/base/InputRoot/index.js +30 -0
- package/esm/base/InputRoot/styles.js +72 -0
- package/esm/{Button → components/Button}/index.props.d.ts +5 -9
- package/{Button → esm/components/Button}/styles.d.ts +2 -2
- package/esm/{Checkbox → components/Checkbox}/index.props.d.ts +2 -2
- package/esm/{Icons → components/Icons}/index.d.ts +0 -2
- package/esm/components/Image/index.d.ts +4 -0
- package/esm/components/Image/index.props.d.ts +9 -0
- package/esm/components/Image/styles.d.ts +5 -0
- package/esm/components/Input/index.d.ts +4 -0
- package/esm/components/Input/index.props.d.ts +13 -0
- package/esm/components/Skeleton/index.d.ts +4 -0
- package/esm/components/Skeleton/index.props.d.ts +11 -0
- package/esm/components/Skeleton/styles.d.ts +9 -0
- package/esm/{Theme → components/Theme}/index.d.ts +80 -0
- package/esm/{Theme → components/Theme}/index.props.d.ts +2 -0
- package/{Theme → esm/components/Theme}/themes/buenos_aires.d.ts +80 -0
- package/{Theme → esm/components/Theme}/themes/default.d.ts +80 -0
- package/{Typography → esm/components/Typography}/index.props.d.ts +4 -7
- package/esm/components/base/FormField/index.d.ts +4 -0
- package/esm/components/base/FormField/index.props.d.ts +8 -0
- package/esm/components/base/FormField/styles.d.ts +5 -0
- package/esm/components/base/InputRoot/index.d.ts +4 -0
- package/esm/components/base/InputRoot/index.props.d.ts +41 -0
- package/esm/components/base/InputRoot/styles.d.ts +27 -0
- package/{index.d.ts → esm/components/index.d.ts} +3 -0
- package/esm/helpers/generateUniqID.d.ts +2 -0
- package/esm/helpers/generateUniqID.js +6 -0
- package/esm/index.js +3 -2
- package/helpers/generateUniqID.d.ts +2 -0
- package/helpers/generateUniqID.js +10 -0
- package/index.js +14 -11
- package/package.json +2 -1
- package/Icons/Burger.d.ts +0 -3
- package/Icons/Burger.js +0 -22
- package/Icons/Check.d.ts +0 -3
- package/Icons/Check.js +0 -24
- package/esm/Icons/Burger.d.ts +0 -3
- package/esm/Icons/Burger.js +0 -18
- package/esm/Icons/Check.d.ts +0 -3
- package/esm/Icons/Check.js +0 -20
- /package/{Button → components/Button}/index.d.ts +0 -0
- /package/{Checkbox → components/Checkbox}/index.d.ts +0 -0
- /package/{Checkbox → components/Checkbox}/styles.d.ts +0 -0
- /package/{DotsLoader → components/DotsLoader}/index.d.ts +0 -0
- /package/{DotsLoader → components/DotsLoader}/styles.d.ts +0 -0
- /package/{Grid → components/Grid}/Item/index.d.ts +0 -0
- /package/{Grid → components/Grid}/Item/index.props.d.ts +0 -0
- /package/{Grid → components/Grid}/Item/styles.d.ts +0 -0
- /package/{Grid → components/Grid}/index.d.ts +0 -0
- /package/{Grid → components/Grid}/index.props.d.ts +0 -0
- /package/{Grid → components/Grid}/styles.d.ts +0 -0
- /package/{Icons → components/Icons}/Chevron.d.ts +0 -0
- /package/{Icons → components/Icons}/Close.d.ts +0 -0
- /package/{Icons → components/Icons}/EyeClosed.d.ts +0 -0
- /package/{Icons → components/Icons}/EyeOpen.d.ts +0 -0
- /package/{Icons → components/Icons}/Help.d.ts +0 -0
- /package/{Icons → components/Icons}/Info.d.ts +0 -0
- /package/{Icons → components/Icons}/More.d.ts +0 -0
- /package/{Icons → components/Icons}/User.d.ts +0 -0
- /package/{Switch → components/Switch}/index.d.ts +0 -0
- /package/{Switch → components/Switch}/index.props.d.ts +0 -0
- /package/{Switch → components/Switch}/styles.d.ts +0 -0
- /package/{Theme → components/Theme}/breakpoints.d.ts +0 -0
- /package/{Theme → components/Theme}/color.d.ts +0 -0
- /package/{Theme → components/Theme}/global.d.ts +0 -0
- /package/{Typography → components/Typography}/index.d.ts +0 -0
- /package/{Typography → components/Typography}/styles.d.ts +0 -0
- /package/esm/{Button → components/Button}/index.d.ts +0 -0
- /package/esm/{Checkbox → components/Checkbox}/index.d.ts +0 -0
- /package/esm/{Checkbox → components/Checkbox}/styles.d.ts +0 -0
- /package/esm/{DotsLoader → components/DotsLoader}/index.d.ts +0 -0
- /package/esm/{DotsLoader → components/DotsLoader}/styles.d.ts +0 -0
- /package/esm/{Grid → components/Grid}/Item/index.d.ts +0 -0
- /package/esm/{Grid → components/Grid}/Item/index.props.d.ts +0 -0
- /package/esm/{Grid → components/Grid}/Item/styles.d.ts +0 -0
- /package/esm/{Grid → components/Grid}/index.d.ts +0 -0
- /package/esm/{Grid → components/Grid}/index.props.d.ts +0 -0
- /package/esm/{Grid → components/Grid}/styles.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/Chevron.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/Close.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/EyeClosed.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/EyeOpen.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/Help.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/Info.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/More.d.ts +0 -0
- /package/esm/{Icons → components/Icons}/User.d.ts +0 -0
- /package/esm/{Switch → components/Switch}/index.d.ts +0 -0
- /package/esm/{Switch → components/Switch}/index.props.d.ts +0 -0
- /package/esm/{Switch → components/Switch}/styles.d.ts +0 -0
- /package/esm/{Theme → components/Theme}/breakpoints.d.ts +0 -0
- /package/esm/{Theme → components/Theme}/color.d.ts +0 -0
- /package/esm/{Theme → components/Theme}/global.d.ts +0 -0
- /package/esm/{Typography → components/Typography}/index.d.ts +0 -0
- /package/esm/{Typography → components/Typography}/styles.d.ts +0 -0
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import type { CSSObject } from "@emotion/react";
|
|
3
|
-
export declare enum SIZE {
|
|
4
|
-
S = "s",
|
|
5
|
-
M = "m",
|
|
6
|
-
L = "l"
|
|
7
|
-
}
|
|
8
3
|
export declare enum VARIANT {
|
|
9
4
|
PRIMARY = "primary",
|
|
10
5
|
SECONDARY = "secondary",
|
|
11
6
|
CLEAR = "clear"
|
|
12
7
|
}
|
|
13
8
|
type BaseStyles = {
|
|
14
|
-
color
|
|
9
|
+
color?: CSSObject["color"];
|
|
15
10
|
borderRadius: CSSObject["borderRadius"];
|
|
16
11
|
border?: CSSObject["border"];
|
|
17
12
|
};
|
|
@@ -26,8 +21,8 @@ type VariantStyles = {
|
|
|
26
21
|
};
|
|
27
22
|
type VariantStates = {
|
|
28
23
|
normal?: VariantStyles;
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
hovered?: VariantStyles;
|
|
25
|
+
focused?: VariantStyles;
|
|
31
26
|
active?: VariantStyles;
|
|
32
27
|
disabled?: VariantStyles;
|
|
33
28
|
};
|
|
@@ -39,12 +34,13 @@ export type ButtonVariant = {
|
|
|
39
34
|
[VARIANT.SECONDARY]: VariantStates;
|
|
40
35
|
[VARIANT.CLEAR]: VariantStates;
|
|
41
36
|
};
|
|
37
|
+
export type ButtonSize = "s" | "m" | "l";
|
|
42
38
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
43
39
|
variant?: keyof ButtonVariant;
|
|
44
40
|
fullWidth?: boolean;
|
|
45
41
|
icon?: ReactNode;
|
|
46
42
|
iconStart?: ReactNode;
|
|
47
43
|
iconEnd?: ReactNode;
|
|
48
|
-
size?:
|
|
44
|
+
size?: ButtonSize;
|
|
49
45
|
}
|
|
50
46
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ButtonSize, ButtonVariant } from "./index.props";
|
|
3
3
|
export declare const StyledButton: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const StyledButton: import("@emotion/styled").StyledComponent<{
|
|
|
7
7
|
fullWidth?: boolean | undefined;
|
|
8
8
|
variant: keyof ButtonVariant;
|
|
9
9
|
icon?: ReactNode;
|
|
10
|
-
size?:
|
|
10
|
+
size?: ButtonSize | undefined;
|
|
11
11
|
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
12
12
|
export declare const StyledIcon: import("@emotion/styled").StyledComponent<{
|
|
13
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -7,9 +7,9 @@ type VariantStyles = {
|
|
|
7
7
|
};
|
|
8
8
|
type VariantStates = {
|
|
9
9
|
normal?: VariantStyles;
|
|
10
|
-
|
|
10
|
+
hovered?: VariantStyles;
|
|
11
11
|
checked?: VariantStyles;
|
|
12
|
-
|
|
12
|
+
focused?: VariantStyles;
|
|
13
13
|
active?: VariantStyles;
|
|
14
14
|
disabled?: VariantStyles;
|
|
15
15
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface BaseImageContainerProps {
|
|
3
|
+
fallbackSrc?: string;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
sources?: React.SourceHTMLAttributes<HTMLSourceElement>[];
|
|
6
|
+
"data-testid"?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ImageProps extends BaseImageContainerProps, React.ImgHTMLAttributes<HTMLImageElement> {
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BasePicture: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { FormFieldProps } from "../base/FormField/index.props";
|
|
3
|
+
import type { InputSize, InputVariant } from "../base/InputRoot/index.props";
|
|
4
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size">, Omit<FormFieldProps, "children"> {
|
|
5
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
6
|
+
variant?: keyof InputVariant;
|
|
7
|
+
size?: InputSize;
|
|
8
|
+
startIcon?: ReactNode;
|
|
9
|
+
endIcon?: ReactNode;
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
hint?: ReactNode;
|
|
12
|
+
error?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledRect: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const StyledText: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -4,6 +4,43 @@ export declare const THEMES: {
|
|
|
4
4
|
DEFAULT: {
|
|
5
5
|
breakpoints: import("./breakpoints").BreakpointsTheme;
|
|
6
6
|
button: import("../Button/index.props").ButtonVariant & import("../Button/index.props").ButtonBase;
|
|
7
|
+
input: {
|
|
8
|
+
placeholder: {
|
|
9
|
+
color: string;
|
|
10
|
+
};
|
|
11
|
+
primary: {
|
|
12
|
+
normal: {
|
|
13
|
+
borderColor: string;
|
|
14
|
+
};
|
|
15
|
+
hovered: {
|
|
16
|
+
borderColor: string;
|
|
17
|
+
boxShadow: string;
|
|
18
|
+
};
|
|
19
|
+
focused: {
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
color: string;
|
|
24
|
+
backgroundColor: string;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
};
|
|
27
|
+
error: {
|
|
28
|
+
normal: {
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
borderColor: string;
|
|
31
|
+
};
|
|
32
|
+
hovered: {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
borderColor: string;
|
|
35
|
+
boxShadow: string;
|
|
36
|
+
};
|
|
37
|
+
focused: {
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
borderColor: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
7
44
|
checkbox: import("../Checkbox/index.props").CheckboxVariant;
|
|
8
45
|
typography: {
|
|
9
46
|
alert: {
|
|
@@ -12,6 +49,9 @@ export declare const THEMES: {
|
|
|
12
49
|
success: {
|
|
13
50
|
color: string;
|
|
14
51
|
};
|
|
52
|
+
secondary: {
|
|
53
|
+
color: string;
|
|
54
|
+
};
|
|
15
55
|
};
|
|
16
56
|
switch: {
|
|
17
57
|
circle: {
|
|
@@ -79,6 +119,43 @@ export declare const THEMES: {
|
|
|
79
119
|
BA: {
|
|
80
120
|
breakpoints: import("./breakpoints").BreakpointsTheme;
|
|
81
121
|
button: import("../Button/index.props").ButtonVariant & import("../Button/index.props").ButtonBase;
|
|
122
|
+
input: {
|
|
123
|
+
placeholder: {
|
|
124
|
+
color: string;
|
|
125
|
+
};
|
|
126
|
+
primary: {
|
|
127
|
+
normal: {
|
|
128
|
+
borderColor: string;
|
|
129
|
+
};
|
|
130
|
+
hovered: {
|
|
131
|
+
borderColor: string;
|
|
132
|
+
boxShadow: string;
|
|
133
|
+
};
|
|
134
|
+
focused: {
|
|
135
|
+
borderColor: string;
|
|
136
|
+
};
|
|
137
|
+
disabled: {
|
|
138
|
+
color: string;
|
|
139
|
+
backgroundColor: string;
|
|
140
|
+
borderColor: string;
|
|
141
|
+
};
|
|
142
|
+
error: {
|
|
143
|
+
normal: {
|
|
144
|
+
backgroundColor: string;
|
|
145
|
+
borderColor: string;
|
|
146
|
+
};
|
|
147
|
+
hovered: {
|
|
148
|
+
backgroundColor: string;
|
|
149
|
+
borderColor: string;
|
|
150
|
+
boxShadow: string;
|
|
151
|
+
};
|
|
152
|
+
focused: {
|
|
153
|
+
backgroundColor: string;
|
|
154
|
+
borderColor: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
82
159
|
checkbox: import("../Checkbox/index.props").CheckboxVariant;
|
|
83
160
|
typography: {
|
|
84
161
|
alert: {
|
|
@@ -87,6 +164,9 @@ export declare const THEMES: {
|
|
|
87
164
|
success: {
|
|
88
165
|
color: string;
|
|
89
166
|
};
|
|
167
|
+
secondary: {
|
|
168
|
+
color: string;
|
|
169
|
+
};
|
|
90
170
|
};
|
|
91
171
|
switch: {
|
|
92
172
|
circle: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { InputVariant, PlaceholderProps } from "../base/InputRoot/index.props";
|
|
1
2
|
import type { CheckboxVariant } from "../Checkbox/index.props";
|
|
2
3
|
import type { ColorsTheme } from "./color";
|
|
3
4
|
import type { BreakpointsTheme } from "./breakpoints";
|
|
@@ -9,6 +10,7 @@ export type ThemeProps = {
|
|
|
9
10
|
checkbox: CheckboxVariant;
|
|
10
11
|
breakpoints: BreakpointsTheme;
|
|
11
12
|
typography: TypographyVariant;
|
|
13
|
+
input: InputVariant & PlaceholderProps;
|
|
12
14
|
switch: SwitchStates;
|
|
13
15
|
palette: ColorsTheme;
|
|
14
16
|
};
|
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
import type { CheckboxVariant } from "../../Checkbox/index.props";
|
|
2
2
|
import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
|
|
3
3
|
export declare const ButtonThemeBA: ButtonVariant & ButtonBase;
|
|
4
|
+
export declare const InputThemeBA: {
|
|
5
|
+
placeholder: {
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
primary: {
|
|
9
|
+
normal: {
|
|
10
|
+
borderColor: string;
|
|
11
|
+
};
|
|
12
|
+
hovered: {
|
|
13
|
+
borderColor: string;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
};
|
|
16
|
+
focused: {
|
|
17
|
+
borderColor: string;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
color: string;
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
};
|
|
24
|
+
error: {
|
|
25
|
+
normal: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
};
|
|
29
|
+
hovered: {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
boxShadow: string;
|
|
33
|
+
};
|
|
34
|
+
focused: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
4
41
|
export declare const CheckboxThemeBA: CheckboxVariant;
|
|
5
42
|
export declare const TypographyThemeBA: {
|
|
6
43
|
alert: {
|
|
@@ -9,6 +46,9 @@ export declare const TypographyThemeBA: {
|
|
|
9
46
|
success: {
|
|
10
47
|
color: string;
|
|
11
48
|
};
|
|
49
|
+
secondary: {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
12
52
|
};
|
|
13
53
|
export declare const SwitchThemeDefault: {
|
|
14
54
|
circle: {
|
|
@@ -28,6 +68,43 @@ export declare const SwitchThemeDefault: {
|
|
|
28
68
|
export declare const THEME_BA: {
|
|
29
69
|
breakpoints: import("../breakpoints").BreakpointsTheme;
|
|
30
70
|
button: ButtonVariant & ButtonBase;
|
|
71
|
+
input: {
|
|
72
|
+
placeholder: {
|
|
73
|
+
color: string;
|
|
74
|
+
};
|
|
75
|
+
primary: {
|
|
76
|
+
normal: {
|
|
77
|
+
borderColor: string;
|
|
78
|
+
};
|
|
79
|
+
hovered: {
|
|
80
|
+
borderColor: string;
|
|
81
|
+
boxShadow: string;
|
|
82
|
+
};
|
|
83
|
+
focused: {
|
|
84
|
+
borderColor: string;
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
color: string;
|
|
88
|
+
backgroundColor: string;
|
|
89
|
+
borderColor: string;
|
|
90
|
+
};
|
|
91
|
+
error: {
|
|
92
|
+
normal: {
|
|
93
|
+
backgroundColor: string;
|
|
94
|
+
borderColor: string;
|
|
95
|
+
};
|
|
96
|
+
hovered: {
|
|
97
|
+
backgroundColor: string;
|
|
98
|
+
borderColor: string;
|
|
99
|
+
boxShadow: string;
|
|
100
|
+
};
|
|
101
|
+
focused: {
|
|
102
|
+
backgroundColor: string;
|
|
103
|
+
borderColor: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
31
108
|
checkbox: CheckboxVariant;
|
|
32
109
|
typography: {
|
|
33
110
|
alert: {
|
|
@@ -36,6 +113,9 @@ export declare const THEME_BA: {
|
|
|
36
113
|
success: {
|
|
37
114
|
color: string;
|
|
38
115
|
};
|
|
116
|
+
secondary: {
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
39
119
|
};
|
|
40
120
|
switch: {
|
|
41
121
|
circle: {
|
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
import type { CheckboxVariant } from "../../Checkbox/index.props";
|
|
2
2
|
import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
|
|
3
3
|
export declare const ButtonThemeDefault: ButtonVariant & ButtonBase;
|
|
4
|
+
export declare const InputThemeDefault: {
|
|
5
|
+
placeholder: {
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
primary: {
|
|
9
|
+
normal: {
|
|
10
|
+
borderColor: string;
|
|
11
|
+
};
|
|
12
|
+
hovered: {
|
|
13
|
+
borderColor: string;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
};
|
|
16
|
+
focused: {
|
|
17
|
+
borderColor: string;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
color: string;
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
};
|
|
24
|
+
error: {
|
|
25
|
+
normal: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
};
|
|
29
|
+
hovered: {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
boxShadow: string;
|
|
33
|
+
};
|
|
34
|
+
focused: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
4
41
|
export declare const CheckboxThemeDefault: CheckboxVariant;
|
|
5
42
|
export declare const TypographyThemeDefault: {
|
|
6
43
|
alert: {
|
|
@@ -9,6 +46,9 @@ export declare const TypographyThemeDefault: {
|
|
|
9
46
|
success: {
|
|
10
47
|
color: string;
|
|
11
48
|
};
|
|
49
|
+
secondary: {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
12
52
|
};
|
|
13
53
|
export declare const SwitchThemeDefault: {
|
|
14
54
|
circle: {
|
|
@@ -28,6 +68,43 @@ export declare const SwitchThemeDefault: {
|
|
|
28
68
|
export declare const THEME_DEFAULT: {
|
|
29
69
|
breakpoints: import("../breakpoints").BreakpointsTheme;
|
|
30
70
|
button: ButtonVariant & ButtonBase;
|
|
71
|
+
input: {
|
|
72
|
+
placeholder: {
|
|
73
|
+
color: string;
|
|
74
|
+
};
|
|
75
|
+
primary: {
|
|
76
|
+
normal: {
|
|
77
|
+
borderColor: string;
|
|
78
|
+
};
|
|
79
|
+
hovered: {
|
|
80
|
+
borderColor: string;
|
|
81
|
+
boxShadow: string;
|
|
82
|
+
};
|
|
83
|
+
focused: {
|
|
84
|
+
borderColor: string;
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
color: string;
|
|
88
|
+
backgroundColor: string;
|
|
89
|
+
borderColor: string;
|
|
90
|
+
};
|
|
91
|
+
error: {
|
|
92
|
+
normal: {
|
|
93
|
+
backgroundColor: string;
|
|
94
|
+
borderColor: string;
|
|
95
|
+
};
|
|
96
|
+
hovered: {
|
|
97
|
+
backgroundColor: string;
|
|
98
|
+
borderColor: string;
|
|
99
|
+
boxShadow: string;
|
|
100
|
+
};
|
|
101
|
+
focused: {
|
|
102
|
+
backgroundColor: string;
|
|
103
|
+
borderColor: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
31
108
|
checkbox: CheckboxVariant;
|
|
32
109
|
typography: {
|
|
33
110
|
alert: {
|
|
@@ -36,6 +113,9 @@ export declare const THEME_DEFAULT: {
|
|
|
36
113
|
success: {
|
|
37
114
|
color: string;
|
|
38
115
|
};
|
|
116
|
+
secondary: {
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
39
119
|
};
|
|
40
120
|
switch: {
|
|
41
121
|
circle: {
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import type { CSSObject } from "@emotion/react";
|
|
2
|
-
export declare enum VARIANT {
|
|
3
|
-
ALERT = "alert",
|
|
4
|
-
SUCCESS = "success"
|
|
5
|
-
}
|
|
6
2
|
type VariantStyles = {
|
|
7
3
|
color?: CSSObject["color"];
|
|
8
4
|
};
|
|
9
5
|
export type TypographyVariant = {
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
alert: VariantStyles;
|
|
7
|
+
success: VariantStyles;
|
|
8
|
+
secondary: VariantStyles;
|
|
12
9
|
};
|
|
13
10
|
export type TypographyFontWeight = "normal" | "medium" | "bold";
|
|
14
11
|
export type TypographySize = "xs" | "s" | "m" | "l" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
15
|
-
export type TypographyTag = "span" | "legend" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "s";
|
|
12
|
+
export type TypographyTag = "span" | "label" | "legend" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "s";
|
|
16
13
|
export type TypographyProps = {
|
|
17
14
|
className?: string;
|
|
18
15
|
tag?: TypographyTag;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BaseContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { CSSObject } from "@emotion/react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type InputSize = "s" | "m" | "l";
|
|
4
|
+
type VariantStyles = {
|
|
5
|
+
color?: CSSObject["color"];
|
|
6
|
+
backgroundColor?: CSSObject["backgroundColor"];
|
|
7
|
+
borderColor?: CSSObject["borderColor"];
|
|
8
|
+
boxShadow?: CSSObject["boxShadow"];
|
|
9
|
+
};
|
|
10
|
+
type PlaceholderStyles = {
|
|
11
|
+
color?: CSSObject["color"];
|
|
12
|
+
};
|
|
13
|
+
type VariantStates = {
|
|
14
|
+
normal?: VariantStyles;
|
|
15
|
+
hovered?: VariantStyles;
|
|
16
|
+
focused?: VariantStyles;
|
|
17
|
+
active?: VariantStyles;
|
|
18
|
+
disabled?: VariantStyles;
|
|
19
|
+
error?: {
|
|
20
|
+
normal?: VariantStyles;
|
|
21
|
+
hovered?: VariantStyles;
|
|
22
|
+
focused?: VariantStyles;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type InputVariant = {
|
|
26
|
+
primary: VariantStates;
|
|
27
|
+
};
|
|
28
|
+
export type PlaceholderProps = {
|
|
29
|
+
placeholder: PlaceholderStyles;
|
|
30
|
+
};
|
|
31
|
+
export type InputProps = {
|
|
32
|
+
variant?: keyof InputVariant;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
error?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
startIcon?: ReactNode;
|
|
37
|
+
endIcon?: ReactNode;
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
size?: InputSize;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { InputSize, InputVariant } from "./index.props";
|
|
3
|
+
export declare const BaseInputRoot: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
isError?: number | undefined;
|
|
9
|
+
size?: InputSize | undefined;
|
|
10
|
+
variant: keyof InputVariant;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const BaseInput: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export declare const BasePlaceholder: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
20
|
+
export declare const BaseIcon: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
+
export declare const BaseDisableWrapper: import("@emotion/styled").StyledComponent<{
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
27
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -2,6 +2,9 @@ export { default as Button } from "./Button";
|
|
|
2
2
|
export { default as Checkbox } from "./Checkbox";
|
|
3
3
|
export { default as DotsLoader } from "./DotsLoader";
|
|
4
4
|
export { default as Grid } from "./Grid";
|
|
5
|
+
export { default as Image } from "./Image";
|
|
6
|
+
export { default as Input } from "./Input";
|
|
7
|
+
export { SkeletonText, SkeletonRect } from "./Skeleton";
|
|
5
8
|
export { default as Switch } from "./Switch";
|
|
6
9
|
export { THEMES, ThemeProvider } from "./Theme";
|
|
7
10
|
export { default as Typography } from "./Typography";
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
var SIZE;
|
|
2
|
-
(function (SIZE) {
|
|
3
|
-
SIZE["S"] = "s";
|
|
4
|
-
SIZE["M"] = "m";
|
|
5
|
-
SIZE["L"] = "l";
|
|
6
|
-
})(SIZE || (SIZE = {}));
|
|
7
1
|
var VARIANT;
|
|
8
2
|
(function (VARIANT) {
|
|
9
3
|
VARIANT["PRIMARY"] = "primary";
|
|
@@ -11,4 +5,4 @@ var VARIANT;
|
|
|
11
5
|
VARIANT["CLEAR"] = "clear";
|
|
12
6
|
})(VARIANT || (VARIANT = {}));
|
|
13
7
|
|
|
14
|
-
export {
|
|
8
|
+
export { VARIANT };
|