@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/atoms/Icons/Base.d.ts +2 -1
- package/dist/atoms/Icons/Loader.d.ts +6 -0
- package/dist/atoms/Icons/Multimedia.d.ts +6 -0
- package/dist/atoms/Icons/index.d.ts +2 -0
- package/dist/eclass-ui-kit.es.js +326 -40
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +22 -22
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/molecules/Buttons/Btn.d.ts +38 -0
- package/dist/molecules/Buttons/BtnPrimary.d.ts +13 -0
- package/dist/molecules/Buttons/BtnSecondary.d.ts +13 -0
- package/dist/molecules/Buttons/BtnTertiary.d.ts +12 -0
- package/dist/molecules/index.d.ts +4 -0
- package/dist/theme/utils.d.ts +38 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/theme/utils.d.ts
CHANGED
|
@@ -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
|
};
|