colibri-ui 0.7.4 → 0.7.6

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 (61) hide show
  1. package/Button/index.d.ts +2 -2
  2. package/Button/index.js +1 -1
  3. package/Button/index.props.d.ts +3 -3
  4. package/Button/index.props.js +1 -1
  5. package/Button/styles.d.ts +2 -2
  6. package/Button/styles.js +10 -11
  7. package/DotsLoader/index.js +27 -0
  8. package/DotsLoader/styles.js +41 -0
  9. package/README.md +9 -1
  10. package/Switch/index.d.ts +4 -0
  11. package/Switch/index.js +22 -0
  12. package/Switch/index.props.d.ts +18 -0
  13. package/Switch/package.json +6 -0
  14. package/Switch/styles.d.ts +19 -0
  15. package/Switch/styles.js +58 -0
  16. package/Theme/color.d.ts +74 -3
  17. package/Theme/color.js +33 -7
  18. package/Theme/index.d.ts +61 -11
  19. package/Theme/index.props.d.ts +2 -0
  20. package/Theme/themes/buenos_aires.d.ts +60 -10
  21. package/Theme/themes/buenos_aires.js +42 -15
  22. package/Theme/themes/default.d.ts +60 -10
  23. package/Theme/themes/default.js +56 -29
  24. package/Typography/index.d.ts +2 -2
  25. package/Typography/index.js +47 -0
  26. package/Typography/index.props.d.ts +18 -6
  27. package/Typography/index.props.js +10 -0
  28. package/Typography/styles.d.ts +1 -1
  29. package/Typography/styles.js +78 -0
  30. package/esm/Button/index.d.ts +2 -2
  31. package/esm/Button/index.js +1 -1
  32. package/esm/Button/index.props.d.ts +3 -3
  33. package/esm/Button/index.props.js +1 -1
  34. package/esm/Button/styles.d.ts +2 -2
  35. package/esm/Button/styles.js +10 -11
  36. package/esm/DotsLoader/index.js +23 -0
  37. package/esm/DotsLoader/styles.js +34 -0
  38. package/esm/Switch/index.d.ts +4 -0
  39. package/esm/Switch/index.js +18 -0
  40. package/esm/Switch/index.props.d.ts +18 -0
  41. package/esm/Switch/styles.d.ts +19 -0
  42. package/esm/Switch/styles.js +49 -0
  43. package/esm/Theme/color.d.ts +74 -3
  44. package/esm/Theme/color.js +27 -8
  45. package/esm/Theme/index.d.ts +61 -11
  46. package/esm/Theme/index.props.d.ts +2 -0
  47. package/esm/Theme/themes/buenos_aires.d.ts +60 -10
  48. package/esm/Theme/themes/buenos_aires.js +42 -16
  49. package/esm/Theme/themes/default.d.ts +60 -10
  50. package/esm/Theme/themes/default.js +56 -30
  51. package/esm/Typography/index.d.ts +2 -2
  52. package/esm/Typography/index.js +43 -0
  53. package/esm/Typography/index.props.d.ts +18 -6
  54. package/esm/Typography/index.props.js +10 -0
  55. package/esm/Typography/styles.d.ts +1 -1
  56. package/esm/Typography/styles.js +72 -0
  57. package/esm/index.d.ts +3 -0
  58. package/esm/index.js +3 -0
  59. package/index.d.ts +3 -0
  60. package/index.js +9 -3
  61. package/package.json +7 -2
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { type IButtonProps } from "./index.props";
3
- declare const Button: import("react").ForwardRefExoticComponent<IButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
2
+ import { type ButtonProps } from "./index.props";
3
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  export default Button;
@@ -9,7 +9,7 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
9
9
  _b = _a.fullWidth,
10
10
  fullWidth = _b === void 0 ? false : _b,
11
11
  _c = _a.variant,
12
- variant = _c === void 0 ? VARIANT.DEFAULT : _c,
12
+ variant = _c === void 0 ? VARIANT.PRIMARY : _c,
13
13
  iconStart = _a.iconStart,
14
14
  iconEnd = _a.iconEnd,
15
15
  icon = _a.icon,
@@ -6,8 +6,8 @@ export declare enum SIZE {
6
6
  L = "l"
7
7
  }
8
8
  export declare enum VARIANT {
9
- DEFAULT = "default",
10
9
  PRIMARY = "primary",
10
+ SECONDARY = "secondary",
11
11
  CLEAR = "clear"
12
12
  }
13
13
  type BaseStyles = {
@@ -35,11 +35,11 @@ export type ButtonBase = {
35
35
  base: BaseStyles;
36
36
  };
37
37
  export type ButtonVariant = {
38
- [VARIANT.DEFAULT]: VariantStates;
39
38
  [VARIANT.PRIMARY]: VariantStates;
39
+ [VARIANT.SECONDARY]: VariantStates;
40
40
  [VARIANT.CLEAR]: VariantStates;
41
41
  };
42
- export interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
42
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
43
43
  variant?: keyof ButtonVariant;
44
44
  fullWidth?: boolean;
45
45
  icon?: ReactNode;
@@ -6,8 +6,8 @@ var SIZE;
6
6
  })(SIZE || (SIZE = {}));
7
7
  var VARIANT;
8
8
  (function (VARIANT) {
9
- VARIANT["DEFAULT"] = "default";
10
9
  VARIANT["PRIMARY"] = "primary";
10
+ VARIANT["SECONDARY"] = "secondary";
11
11
  VARIANT["CLEAR"] = "clear";
12
12
  })(VARIANT || (VARIANT = {}));
13
13
 
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { ButtonVariant, IButtonProps } from "./index.props";
2
+ import type { ButtonVariant, SIZE } 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?: IButtonProps["size"];
10
+ size?: SIZE | 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;