colibri-ui 0.7.3 → 0.7.4
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.d.ts +1 -1
- package/Button/index.js +5 -2
- package/Button/index.props.d.ts +14 -4
- package/Button/index.props.js +14 -0
- package/Button/styles.js +11 -8
- package/DotsLoader/index.d.ts +5 -0
- package/DotsLoader/package.json +6 -0
- package/DotsLoader/styles.d.ts +15 -0
- package/Theme/breakpoints.d.ts +1 -0
- package/Theme/color.d.ts +51 -46
- package/Theme/color.js +53 -49
- package/Theme/index.d.ts +14 -0
- package/Theme/index.props.d.ts +2 -0
- package/Theme/themes/buenos_aires.d.ts +15 -1
- package/Theme/themes/buenos_aires.js +51 -42
- package/Theme/themes/default.d.ts +15 -1
- package/Theme/themes/default.js +51 -42
- package/Typography/index.d.ts +4 -0
- package/Typography/index.props.d.ts +18 -0
- package/Typography/package.json +6 -0
- package/Typography/styles.d.ts +11 -0
- package/esm/Button/index.d.ts +1 -1
- package/esm/Button/index.js +5 -2
- package/esm/Button/index.props.d.ts +14 -4
- package/esm/Button/index.props.js +14 -0
- package/esm/Button/styles.js +11 -8
- package/esm/DotsLoader/index.d.ts +5 -0
- package/esm/DotsLoader/styles.d.ts +15 -0
- package/esm/Theme/breakpoints.d.ts +1 -0
- package/esm/Theme/color.d.ts +51 -46
- package/esm/Theme/color.js +52 -49
- package/esm/Theme/index.d.ts +14 -0
- package/esm/Theme/index.props.d.ts +2 -0
- package/esm/Theme/themes/buenos_aires.d.ts +15 -1
- package/esm/Theme/themes/buenos_aires.js +12 -4
- package/esm/Theme/themes/default.d.ts +15 -1
- package/esm/Theme/themes/default.js +12 -4
- package/esm/Typography/index.d.ts +4 -0
- package/esm/Typography/index.props.d.ts +18 -0
- package/esm/Typography/styles.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: 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 Dot: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
first?: boolean | undefined;
|
|
11
|
+
second?: boolean | undefined;
|
|
12
|
+
third?: boolean | undefined;
|
|
13
|
+
fourth?: boolean | undefined;
|
|
14
|
+
color?: string | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -13,5 +13,6 @@ export type BreakpointsTheme = {
|
|
|
13
13
|
under: (breakpoint: BreakpointName, isMedial?: boolean) => string;
|
|
14
14
|
between: ([from, to]: [BreakpointName, BreakpointName], isMedial?: boolean) => string;
|
|
15
15
|
};
|
|
16
|
+
export type BreakpointMap<T = number> = Map<BreakpointName, T>;
|
|
16
17
|
declare const Breakpoints: BreakpointsTheme;
|
|
17
18
|
export default Breakpoints;
|
package/esm/Theme/color.d.ts
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
declare
|
|
2
|
-
WHITE
|
|
3
|
-
BLACK
|
|
4
|
-
BLUE_1
|
|
5
|
-
BLUE_2
|
|
6
|
-
BLUE_3
|
|
7
|
-
BLUE_4
|
|
8
|
-
BLUE_5
|
|
9
|
-
BLUE_6
|
|
10
|
-
BLUE_7
|
|
11
|
-
BLUE_8
|
|
12
|
-
BLUE_9
|
|
13
|
-
BLUE_10
|
|
14
|
-
BLUE_11
|
|
15
|
-
BLUE_12
|
|
16
|
-
GRAPHITE_1
|
|
17
|
-
GRAPHITE_2
|
|
18
|
-
GRAPHITE_3
|
|
19
|
-
GRAPHITE_4
|
|
20
|
-
GRAPHITE_5
|
|
21
|
-
GRAPHITE_6
|
|
22
|
-
GRAPHITE_7
|
|
23
|
-
GRAPHITE_8
|
|
24
|
-
GRAPHITE_9
|
|
25
|
-
GRAPHITE_10
|
|
26
|
-
GRAPHITE_11
|
|
27
|
-
GRAPHITE_12
|
|
28
|
-
GRAY_1
|
|
29
|
-
GRAY_2
|
|
30
|
-
GRAY_3
|
|
31
|
-
GRAY_4
|
|
32
|
-
GRAY_5
|
|
33
|
-
GRAY_6
|
|
34
|
-
GRAY_7
|
|
35
|
-
GRAY_8
|
|
36
|
-
GRAY_9
|
|
37
|
-
GRAY_10
|
|
38
|
-
GRAY_11
|
|
39
|
-
GRAY_12
|
|
40
|
-
PURPLE_1
|
|
41
|
-
PURPLE_2
|
|
42
|
-
PURPLE_3
|
|
43
|
-
NEUTRAL_1
|
|
44
|
-
NEUTRAL_2
|
|
45
|
-
NEUTRAL_3
|
|
46
|
-
|
|
1
|
+
export declare const Color: {
|
|
2
|
+
WHITE: string;
|
|
3
|
+
BLACK: string;
|
|
4
|
+
BLUE_1: string;
|
|
5
|
+
BLUE_2: string;
|
|
6
|
+
BLUE_3: string;
|
|
7
|
+
BLUE_4: string;
|
|
8
|
+
BLUE_5: string;
|
|
9
|
+
BLUE_6: string;
|
|
10
|
+
BLUE_7: string;
|
|
11
|
+
BLUE_8: string;
|
|
12
|
+
BLUE_9: string;
|
|
13
|
+
BLUE_10: string;
|
|
14
|
+
BLUE_11: string;
|
|
15
|
+
BLUE_12: string;
|
|
16
|
+
GRAPHITE_1: string;
|
|
17
|
+
GRAPHITE_2: string;
|
|
18
|
+
GRAPHITE_3: string;
|
|
19
|
+
GRAPHITE_4: string;
|
|
20
|
+
GRAPHITE_5: string;
|
|
21
|
+
GRAPHITE_6: string;
|
|
22
|
+
GRAPHITE_7: string;
|
|
23
|
+
GRAPHITE_8: string;
|
|
24
|
+
GRAPHITE_9: string;
|
|
25
|
+
GRAPHITE_10: string;
|
|
26
|
+
GRAPHITE_11: string;
|
|
27
|
+
GRAPHITE_12: string;
|
|
28
|
+
GRAY_1: string;
|
|
29
|
+
GRAY_2: string;
|
|
30
|
+
GRAY_3: string;
|
|
31
|
+
GRAY_4: string;
|
|
32
|
+
GRAY_5: string;
|
|
33
|
+
GRAY_6: string;
|
|
34
|
+
GRAY_7: string;
|
|
35
|
+
GRAY_8: string;
|
|
36
|
+
GRAY_9: string;
|
|
37
|
+
GRAY_10: string;
|
|
38
|
+
GRAY_11: string;
|
|
39
|
+
GRAY_12: string;
|
|
40
|
+
PURPLE_1: string;
|
|
41
|
+
PURPLE_2: string;
|
|
42
|
+
PURPLE_3: string;
|
|
43
|
+
NEUTRAL_1: string;
|
|
44
|
+
NEUTRAL_2: string;
|
|
45
|
+
NEUTRAL_3: string;
|
|
46
|
+
TYPOGRAPHY_PRIMARY: string;
|
|
47
|
+
TYPOGRAPHY_SECONDARY: string;
|
|
48
|
+
TYPOGRAPHY_ALERT: string;
|
|
49
|
+
TYPOGRAPHY_SUCCESS: string;
|
|
50
|
+
TYPOGRAPHY_LINK: string;
|
|
51
|
+
};
|
|
47
52
|
export default Color;
|
package/esm/Theme/color.js
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
var Color
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
var Color = {
|
|
2
|
+
WHITE: "#fff",
|
|
3
|
+
BLACK: "#000",
|
|
4
|
+
BLUE_1: "#FBFDFF",
|
|
5
|
+
BLUE_2: "#F5F9FF",
|
|
6
|
+
BLUE_3: "#E9F3FF",
|
|
7
|
+
BLUE_4: "#DAECFF",
|
|
8
|
+
BLUE_5: "#C9E2FF",
|
|
9
|
+
BLUE_6: "#B4D5FF",
|
|
10
|
+
BLUE_7: "#9AC3FD",
|
|
11
|
+
BLUE_8: "#73ABF8",
|
|
12
|
+
BLUE_9: "#0974EB",
|
|
13
|
+
BLUE_10: "#0066DC",
|
|
14
|
+
BLUE_11: "#006DE3",
|
|
15
|
+
BLUE_12: "#093266",
|
|
16
|
+
GRAPHITE_1: "#FCFDFE",
|
|
17
|
+
GRAPHITE_2: "#F8FAFB",
|
|
18
|
+
GRAPHITE_3: "#EDF0F4",
|
|
19
|
+
GRAPHITE_4: "#E4E8ED",
|
|
20
|
+
GRAPHITE_5: "#DBE1E6",
|
|
21
|
+
GRAPHITE_6: "#D1D8DF",
|
|
22
|
+
GRAPHITE_7: "#C4CDD6",
|
|
23
|
+
GRAPHITE_8: "#AFB9C3",
|
|
24
|
+
GRAPHITE_9: "#24292E",
|
|
25
|
+
GRAPHITE_10: "#383D42",
|
|
26
|
+
GRAPHITE_11: "#5E666F",
|
|
27
|
+
GRAPHITE_12: "#22272B",
|
|
28
|
+
GRAY_1: "#FCFCFD",
|
|
29
|
+
GRAY_2: "#F9F9FB",
|
|
30
|
+
GRAY_3: "#EFF0F3",
|
|
31
|
+
GRAY_4: "#E7E8EC",
|
|
32
|
+
GRAY_5: "#E0E1E6",
|
|
33
|
+
GRAY_6: "#D8D9E0",
|
|
34
|
+
GRAY_7: "#CDCED7",
|
|
35
|
+
GRAY_8: "#B9BBC6",
|
|
36
|
+
GRAY_9: "#8B8D98",
|
|
37
|
+
GRAY_10: "#80828D",
|
|
38
|
+
GRAY_11: "#62636C",
|
|
39
|
+
GRAY_12: "#1E1F24",
|
|
40
|
+
PURPLE_1: "rgba(38, 49, 129, .07)",
|
|
41
|
+
PURPLE_2: "rgba(38, 49, 129, .15)",
|
|
42
|
+
PURPLE_3: "rgba(38, 49, 129, .3)",
|
|
43
|
+
NEUTRAL_1: "rgba(22,51,0,.05)",
|
|
44
|
+
NEUTRAL_2: "rgba(22,51,0,.078)",
|
|
45
|
+
NEUTRAL_3: "rgba(22,51,0,.129)",
|
|
46
|
+
TYPOGRAPHY_PRIMARY: "#000",
|
|
47
|
+
TYPOGRAPHY_SECONDARY: "#667799",
|
|
48
|
+
TYPOGRAPHY_ALERT: "#E6481F",
|
|
49
|
+
TYPOGRAPHY_SUCCESS: "#23943E",
|
|
50
|
+
TYPOGRAPHY_LINK: "#0062D1"
|
|
51
|
+
};
|
|
49
52
|
|
|
50
|
-
export { Color
|
|
53
|
+
export { Color, Color as default };
|
package/esm/Theme/index.d.ts
CHANGED
|
@@ -4,10 +4,24 @@ 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
|
+
typography: {
|
|
8
|
+
primary: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
alert: string;
|
|
11
|
+
success: string;
|
|
12
|
+
link: string;
|
|
13
|
+
};
|
|
7
14
|
};
|
|
8
15
|
BA: {
|
|
9
16
|
breakpoints: import("./breakpoints").BreakpointsTheme;
|
|
10
17
|
button: import("../Button/index.props").ButtonVariant & import("../Button/index.props").ButtonBase;
|
|
18
|
+
typography: {
|
|
19
|
+
primary: string;
|
|
20
|
+
secondary: string;
|
|
21
|
+
alert: string;
|
|
22
|
+
success: string;
|
|
23
|
+
link: string;
|
|
24
|
+
};
|
|
11
25
|
};
|
|
12
26
|
};
|
|
13
27
|
export declare const ThemeProvider: FC<{
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { BreakpointsTheme } from "./breakpoints";
|
|
2
2
|
import type { ButtonBase, ButtonVariant } from "../Button/index.props";
|
|
3
|
+
import type { TypographyVariant } from "../Typography/index.props";
|
|
3
4
|
export type ThemeProps = {
|
|
4
5
|
button: ButtonVariant & ButtonBase;
|
|
5
6
|
breakpoints: BreakpointsTheme;
|
|
7
|
+
typography: TypographyVariant;
|
|
6
8
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ButtonThemeBA: ButtonVariant & ButtonBase;
|
|
3
|
+
export declare const TypographyThemeBA: {
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
alert: string;
|
|
7
|
+
success: string;
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
3
10
|
export declare const THEME_BA: {
|
|
4
11
|
breakpoints: import("../breakpoints").BreakpointsTheme;
|
|
5
12
|
button: ButtonVariant & ButtonBase;
|
|
13
|
+
typography: {
|
|
14
|
+
primary: string;
|
|
15
|
+
secondary: string;
|
|
16
|
+
alert: string;
|
|
17
|
+
success: string;
|
|
18
|
+
link: string;
|
|
19
|
+
};
|
|
6
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Color from '../color.js';
|
|
1
|
+
import { Color } from '../color.js';
|
|
2
2
|
import Breakpoints from '../breakpoints.js';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var ButtonThemeBA = {
|
|
5
5
|
base: {
|
|
6
6
|
color: Color.WHITE,
|
|
7
7
|
borderRadius: "26px",
|
|
@@ -80,9 +80,17 @@ var ButtonBA = {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
+
var TypographyThemeBA = {
|
|
84
|
+
primary: Color.TYPOGRAPHY_PRIMARY,
|
|
85
|
+
secondary: Color.TYPOGRAPHY_SECONDARY,
|
|
86
|
+
alert: Color.TYPOGRAPHY_ALERT,
|
|
87
|
+
success: Color.TYPOGRAPHY_SUCCESS,
|
|
88
|
+
link: Color.TYPOGRAPHY_LINK
|
|
89
|
+
};
|
|
83
90
|
var THEME_BA = {
|
|
84
91
|
breakpoints: Breakpoints,
|
|
85
|
-
button:
|
|
92
|
+
button: ButtonThemeBA,
|
|
93
|
+
typography: TypographyThemeBA
|
|
86
94
|
};
|
|
87
95
|
|
|
88
|
-
export {
|
|
96
|
+
export { ButtonThemeBA, THEME_BA, TypographyThemeBA };
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ButtonThemeDefault: ButtonVariant & ButtonBase;
|
|
3
|
+
export declare const TypographyThemeDefault: {
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
alert: string;
|
|
7
|
+
success: string;
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
3
10
|
export declare const THEME_DEFAULT: {
|
|
4
11
|
breakpoints: import("../breakpoints").BreakpointsTheme;
|
|
5
12
|
button: ButtonVariant & ButtonBase;
|
|
13
|
+
typography: {
|
|
14
|
+
primary: string;
|
|
15
|
+
secondary: string;
|
|
16
|
+
alert: string;
|
|
17
|
+
success: string;
|
|
18
|
+
link: string;
|
|
19
|
+
};
|
|
6
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Color from '../color.js';
|
|
1
|
+
import { Color } from '../color.js';
|
|
2
2
|
import Breakpoints from '../breakpoints.js';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var ButtonThemeDefault = {
|
|
5
5
|
base: {
|
|
6
6
|
color: Color.BLACK,
|
|
7
7
|
borderRadius: "26px"
|
|
@@ -79,9 +79,17 @@ var ButtonDefault = {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
+
var TypographyThemeDefault = {
|
|
83
|
+
primary: Color.TYPOGRAPHY_PRIMARY,
|
|
84
|
+
secondary: Color.TYPOGRAPHY_SECONDARY,
|
|
85
|
+
alert: Color.TYPOGRAPHY_ALERT,
|
|
86
|
+
success: Color.TYPOGRAPHY_SUCCESS,
|
|
87
|
+
link: Color.TYPOGRAPHY_LINK
|
|
88
|
+
};
|
|
82
89
|
var THEME_DEFAULT = {
|
|
83
90
|
breakpoints: Breakpoints,
|
|
84
|
-
button:
|
|
91
|
+
button: ButtonThemeDefault,
|
|
92
|
+
typography: TypographyThemeDefault
|
|
85
93
|
};
|
|
86
94
|
|
|
87
|
-
export {
|
|
95
|
+
export { ButtonThemeDefault, THEME_DEFAULT, TypographyThemeDefault };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TypographyVariant = {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
alert: string;
|
|
5
|
+
success: string;
|
|
6
|
+
link: string;
|
|
7
|
+
};
|
|
8
|
+
export type TypographyFontWeight = "normal" | "medium" | "bold";
|
|
9
|
+
export type TypographySize = "xs" | "s" | "m" | "l" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
10
|
+
export type TypographyTag = "span" | "legend" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "s";
|
|
11
|
+
export type Props = {
|
|
12
|
+
className?: string;
|
|
13
|
+
tag?: TypographyTag;
|
|
14
|
+
variant?: keyof TypographyVariant;
|
|
15
|
+
size?: TypographySize;
|
|
16
|
+
fontWeight?: TypographyFontWeight;
|
|
17
|
+
nowrap?: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TypographyFontWeight, TypographySize, TypographyVariant } from "./index.props";
|
|
3
|
+
export declare const BaseTypography: 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
|
+
variant: keyof TypographyVariant;
|
|
8
|
+
size?: TypographySize | undefined;
|
|
9
|
+
fontWeight?: TypographyFontWeight | undefined;
|
|
10
|
+
nowrap?: boolean | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|