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.
Files changed (41) hide show
  1. package/Button/index.d.ts +1 -1
  2. package/Button/index.js +5 -2
  3. package/Button/index.props.d.ts +14 -4
  4. package/Button/index.props.js +14 -0
  5. package/Button/styles.js +11 -8
  6. package/DotsLoader/index.d.ts +5 -0
  7. package/DotsLoader/package.json +6 -0
  8. package/DotsLoader/styles.d.ts +15 -0
  9. package/Theme/breakpoints.d.ts +1 -0
  10. package/Theme/color.d.ts +51 -46
  11. package/Theme/color.js +53 -49
  12. package/Theme/index.d.ts +14 -0
  13. package/Theme/index.props.d.ts +2 -0
  14. package/Theme/themes/buenos_aires.d.ts +15 -1
  15. package/Theme/themes/buenos_aires.js +51 -42
  16. package/Theme/themes/default.d.ts +15 -1
  17. package/Theme/themes/default.js +51 -42
  18. package/Typography/index.d.ts +4 -0
  19. package/Typography/index.props.d.ts +18 -0
  20. package/Typography/package.json +6 -0
  21. package/Typography/styles.d.ts +11 -0
  22. package/esm/Button/index.d.ts +1 -1
  23. package/esm/Button/index.js +5 -2
  24. package/esm/Button/index.props.d.ts +14 -4
  25. package/esm/Button/index.props.js +14 -0
  26. package/esm/Button/styles.js +11 -8
  27. package/esm/DotsLoader/index.d.ts +5 -0
  28. package/esm/DotsLoader/styles.d.ts +15 -0
  29. package/esm/Theme/breakpoints.d.ts +1 -0
  30. package/esm/Theme/color.d.ts +51 -46
  31. package/esm/Theme/color.js +52 -49
  32. package/esm/Theme/index.d.ts +14 -0
  33. package/esm/Theme/index.props.d.ts +2 -0
  34. package/esm/Theme/themes/buenos_aires.d.ts +15 -1
  35. package/esm/Theme/themes/buenos_aires.js +12 -4
  36. package/esm/Theme/themes/default.d.ts +15 -1
  37. package/esm/Theme/themes/default.js +12 -4
  38. package/esm/Typography/index.d.ts +4 -0
  39. package/esm/Typography/index.props.d.ts +18 -0
  40. package/esm/Typography/styles.d.ts +11 -0
  41. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import type { FC } from "react";
2
+ declare const DotsLoader: FC<{
3
+ color?: string;
4
+ }>;
5
+ export default DotsLoader;
@@ -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;
@@ -1,47 +1,52 @@
1
- declare enum 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
- }
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;
@@ -1,50 +1,53 @@
1
- var Color;
2
- (function (Color) {
3
- Color["WHITE"] = "#fff";
4
- Color["BLACK"] = "#000";
5
- Color["BLUE_1"] = "#FBFDFF";
6
- Color["BLUE_2"] = "#F5F9FF";
7
- Color["BLUE_3"] = "#E9F3FF";
8
- Color["BLUE_4"] = "#DAECFF";
9
- Color["BLUE_5"] = "#C9E2FF";
10
- Color["BLUE_6"] = "#B4D5FF";
11
- Color["BLUE_7"] = "#9AC3FD";
12
- Color["BLUE_8"] = "#73ABF8";
13
- Color["BLUE_9"] = "#0974EB";
14
- Color["BLUE_10"] = "#0066DC";
15
- Color["BLUE_11"] = "#006DE3";
16
- Color["BLUE_12"] = "#093266";
17
- Color["GRAPHITE_1"] = "#FCFDFE";
18
- Color["GRAPHITE_2"] = "#F8FAFB";
19
- Color["GRAPHITE_3"] = "#EDF0F4";
20
- Color["GRAPHITE_4"] = "#E4E8ED";
21
- Color["GRAPHITE_5"] = "#DBE1E6";
22
- Color["GRAPHITE_6"] = "#D1D8DF";
23
- Color["GRAPHITE_7"] = "#C4CDD6";
24
- Color["GRAPHITE_8"] = "#AFB9C3";
25
- Color["GRAPHITE_9"] = "#24292E";
26
- Color["GRAPHITE_10"] = "#383D42";
27
- Color["GRAPHITE_11"] = "#5E666F";
28
- Color["GRAPHITE_12"] = "#22272B";
29
- Color["GRAY_1"] = "#FCFCFD";
30
- Color["GRAY_2"] = "#F9F9FB";
31
- Color["GRAY_3"] = "#EFF0F3";
32
- Color["GRAY_4"] = "#E7E8EC";
33
- Color["GRAY_5"] = "#E0E1E6";
34
- Color["GRAY_6"] = "#D8D9E0";
35
- Color["GRAY_7"] = "#CDCED7";
36
- Color["GRAY_8"] = "#B9BBC6";
37
- Color["GRAY_9"] = "#8B8D98";
38
- Color["GRAY_10"] = "#80828D";
39
- Color["GRAY_11"] = "#62636C";
40
- Color["GRAY_12"] = "#1E1F24";
41
- Color["PURPLE_1"] = "rgba(38, 49, 129, .07)";
42
- Color["PURPLE_2"] = "rgba(38, 49, 129, .15)";
43
- Color["PURPLE_3"] = "rgba(38, 49, 129, .3)";
44
- Color["NEUTRAL_1"] = "rgba(22,51,0,.05)";
45
- Color["NEUTRAL_2"] = "rgba(22,51,0,.078)";
46
- Color["NEUTRAL_3"] = "rgba(22,51,0,.129)";
47
- })(Color || (Color = {}));
48
- var Color$1 = Color;
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$1 as default };
53
+ export { Color, Color as default };
@@ -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 ButtonBA: ButtonVariant & ButtonBase;
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 ButtonBA = {
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: ButtonBA
92
+ button: ButtonThemeBA,
93
+ typography: TypographyThemeBA
86
94
  };
87
95
 
88
- export { ButtonBA, THEME_BA };
96
+ export { ButtonThemeBA, THEME_BA, TypographyThemeBA };
@@ -1,6 +1,20 @@
1
1
  import type { ButtonBase, ButtonVariant } from "../../Button/index.props";
2
- export declare const ButtonDefault: ButtonVariant & ButtonBase;
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 ButtonDefault = {
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: ButtonDefault
91
+ button: ButtonThemeDefault,
92
+ typography: TypographyThemeDefault
85
93
  };
86
94
 
87
- export { ButtonDefault, THEME_DEFAULT };
95
+ export { ButtonThemeDefault, THEME_DEFAULT, TypographyThemeDefault };
@@ -0,0 +1,4 @@
1
+ import type { FC, PropsWithChildren } from "react";
2
+ import type { Props } from "./index.props";
3
+ declare const Typography: FC<PropsWithChildren<Props>>;
4
+ export default Typography;
@@ -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>, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},