@eclass/ui-kit 1.9.2 → 1.10.0

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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./atoms";
2
+ export * from "./molecules";
2
3
  export * from "./organisms";
3
4
  export * from "./theme";
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ interface colorScheme {
3
+ main: string;
4
+ hover: string;
5
+ }
6
+ export interface propsBaseBtns {
7
+ children?: React.ReactNode;
8
+ disabled?: boolean;
9
+ isFullWidth?: boolean;
10
+ leftIcon?: React.ReactElement;
11
+ m?: string;
12
+ isLoading?: boolean;
13
+ onClick?: (e: React.MouseEvent<HTMLElement>) => void;
14
+ rightIcon?: React.ReactElement;
15
+ size?: 'regular' | 'small';
16
+ }
17
+ interface props extends propsBaseBtns {
18
+ bg?: colorScheme;
19
+ /** Colores para el efecto del :active son necesarios dos */
20
+ borderColorActive?: string[];
21
+ color?: string;
22
+ fillLoader?: string;
23
+ rounded?: boolean;
24
+ touchDark?: boolean;
25
+ }
26
+ /**
27
+ * Componente Btn
28
+ *
29
+ * Dibuja un boton base que posee todo lo estipulado en
30
+ * @see https://zeroheight.com/15698077d/p/358e93-buttons
31
+ *
32
+ * @example <Btn>Lorem</Btn>
33
+ */
34
+ export declare function Btn({ bg, borderColorActive, children, color, disabled, fillLoader, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, rounded, size, touchDark, }: props): JSX.Element;
35
+ export declare namespace Btn {
36
+ var displayName: string;
37
+ }
38
+ export {};
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { propsBaseBtns } from './Btn';
3
+ /**
4
+ * Componente BtnPrimary
5
+ *
6
+ * @see https://zeroheight.com/15698077d/p/358e93-buttons
7
+ *
8
+ * @example <BtnPrimary>Lorem</BtnPrimary>
9
+ */
10
+ export declare function BtnPrimary({ children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, size, }: propsBaseBtns): JSX.Element;
11
+ export declare namespace BtnPrimary {
12
+ var displayName: string;
13
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { propsBaseBtns } from './Btn';
3
+ /**
4
+ * Componente BtnSecondary
5
+ *
6
+ * @see https://zeroheight.com/15698077d/p/358e93-buttons
7
+ *
8
+ * @example <BtnSecondary>Lorem</BtnSecondary>
9
+ */
10
+ export declare function BtnSecondary({ children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, size, }: propsBaseBtns): JSX.Element;
11
+ export declare namespace BtnSecondary {
12
+ var displayName: string;
13
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface propsTertiaryBtn {
3
+ children?: React.ReactNode;
4
+ rightIcon?: boolean;
5
+ withoutColor?: boolean;
6
+ m?: string;
7
+ onClick?: (e: React.MouseEvent<HTMLElement>) => void;
8
+ }
9
+ export declare function BtnTertiary({ children, rightIcon, withoutColor, m, onClick, }: propsTertiaryBtn): JSX.Element;
10
+ export declare namespace BtnTertiary {
11
+ var displayName: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ export { Btn } from './Buttons/Btn';
2
+ export * from './Buttons/BtnPrimary';
3
+ export * from './Buttons/BtnSecondary';
4
+ export * from './Buttons/BtnTertiary';
@@ -4,6 +4,7 @@ export declare const borders: {
4
4
  active: string;
5
5
  success: string;
6
6
  error: string;
7
+ white: string;
7
8
  };
8
9
  /**
9
10
  * Valores definidos en el sistema de diseños eclass.
@@ -14,6 +15,28 @@ export declare const radii: {
14
15
  big: string;
15
16
  rounded: string;
16
17
  };
18
+ /**
19
+ * Valores definidos en el sistema de diseños eclass.
20
+ * @see https://zeroheight.com/15698077d/p/787e81-shadows--elevation
21
+ */
22
+ export declare const shadows: {
23
+ sm: string;
24
+ md: string;
25
+ lg: string;
26
+ };
27
+ /**
28
+ * Valores definidos en el sistema de diseños eclass.
29
+ * @see https://zeroheight.com/15698077d/p/04fce7-spacial-units
30
+ */
31
+ export declare const space: {
32
+ xxs: string;
33
+ xs: string;
34
+ s: string;
35
+ m: string;
36
+ l: string;
37
+ xl: string;
38
+ xxl: string;
39
+ };
17
40
  export declare const utils: {
18
41
  borders: {
19
42
  normal: string;
@@ -21,10 +44,25 @@ export declare const utils: {
21
44
  active: string;
22
45
  success: string;
23
46
  error: string;
47
+ white: string;
24
48
  };
25
49
  radii: {
26
50
  small: string;
27
51
  big: string;
28
52
  rounded: string;
29
53
  };
54
+ shadows: {
55
+ sm: string;
56
+ md: string;
57
+ lg: string;
58
+ };
59
+ space: {
60
+ xxs: string;
61
+ xs: string;
62
+ s: string;
63
+ m: string;
64
+ l: string;
65
+ xl: string;
66
+ xxl: string;
67
+ };
30
68
  };