native-pytech 1.0.60 → 1.0.62
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.
|
@@ -18,7 +18,6 @@ export default memo(({ text, color = 'default', type = 'small', sizeDiameter, sy
|
|
|
18
18
|
const cantLetras = text?.length ?? 0;
|
|
19
19
|
const modifiers = useMemo(() => [
|
|
20
20
|
frame({ width: typeSizes.diameter, height: typeSizes.diameter }),
|
|
21
|
-
font({ weight: 'semibold', size: typeSizes.fontSize[cantLetras] }),
|
|
22
21
|
foregroundStyle('white'),
|
|
23
22
|
background(colors[color].dark),
|
|
24
23
|
clipShape('circle'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { sizesType, Colors } from '../../constants';
|
|
2
2
|
import IconProps from '../Icon/types';
|
|
3
3
|
export type Props = Omit<IconProps, 'size'> & {
|
|
4
4
|
/**
|
|
@@ -10,7 +10,7 @@ export type Props = Omit<IconProps, 'size'> & {
|
|
|
10
10
|
The color of the gradient.
|
|
11
11
|
@default 'default'
|
|
12
12
|
*/
|
|
13
|
-
color?:
|
|
13
|
+
color?: Colors;
|
|
14
14
|
/**
|
|
15
15
|
The size of the gradient.
|
|
16
16
|
@default 'small'
|
|
@@ -1,69 +1,86 @@
|
|
|
1
1
|
export declare const colors: {
|
|
2
2
|
default: {
|
|
3
3
|
dark: string;
|
|
4
|
+
middle: string;
|
|
4
5
|
light: string;
|
|
5
6
|
};
|
|
6
7
|
rojo: {
|
|
7
8
|
dark: string;
|
|
9
|
+
middle: string;
|
|
8
10
|
light: string;
|
|
9
11
|
};
|
|
10
12
|
amarillo: {
|
|
11
13
|
dark: string;
|
|
14
|
+
middle: string;
|
|
12
15
|
light: string;
|
|
13
16
|
};
|
|
14
17
|
azul_oscuro: {
|
|
15
18
|
dark: string;
|
|
19
|
+
middle: string;
|
|
16
20
|
light: string;
|
|
17
21
|
};
|
|
18
22
|
naranja: {
|
|
19
23
|
dark: string;
|
|
24
|
+
middle: string;
|
|
20
25
|
light: string;
|
|
21
26
|
};
|
|
22
27
|
marron_claro: {
|
|
23
28
|
dark: string;
|
|
29
|
+
middle: string;
|
|
24
30
|
light: string;
|
|
25
31
|
};
|
|
26
32
|
verde_agua: {
|
|
27
33
|
dark: string;
|
|
34
|
+
middle: string;
|
|
28
35
|
light: string;
|
|
29
36
|
};
|
|
30
37
|
marron_oscuro: {
|
|
31
38
|
dark: string;
|
|
39
|
+
middle: string;
|
|
32
40
|
light: string;
|
|
33
41
|
};
|
|
34
42
|
rosa: {
|
|
35
43
|
dark: string;
|
|
44
|
+
middle: string;
|
|
36
45
|
light: string;
|
|
37
46
|
};
|
|
38
47
|
azul_claro: {
|
|
39
48
|
dark: string;
|
|
49
|
+
middle: string;
|
|
40
50
|
light: string;
|
|
41
51
|
};
|
|
42
52
|
violeta: {
|
|
43
53
|
dark: string;
|
|
54
|
+
middle: string;
|
|
44
55
|
light: string;
|
|
45
56
|
};
|
|
46
57
|
celeste_oscuro: {
|
|
47
58
|
dark: string;
|
|
59
|
+
middle: string;
|
|
48
60
|
light: string;
|
|
49
61
|
};
|
|
50
62
|
gris: {
|
|
51
63
|
dark: string;
|
|
64
|
+
middle: string;
|
|
52
65
|
light: string;
|
|
53
66
|
};
|
|
54
67
|
celeste_claro: {
|
|
55
68
|
dark: string;
|
|
69
|
+
middle: string;
|
|
56
70
|
light: string;
|
|
57
71
|
};
|
|
58
72
|
verde_oscuro: {
|
|
59
73
|
dark: string;
|
|
74
|
+
middle: string;
|
|
60
75
|
light: string;
|
|
61
76
|
};
|
|
62
77
|
verde_claro: {
|
|
63
78
|
dark: string;
|
|
79
|
+
middle: string;
|
|
64
80
|
light: string;
|
|
65
81
|
};
|
|
66
82
|
};
|
|
83
|
+
export type Colors = keyof typeof colors;
|
|
67
84
|
declare const diameterCircle: {
|
|
68
85
|
small: number;
|
|
69
86
|
medium: number;
|
|
@@ -1,20 +1,84 @@
|
|
|
1
1
|
export const colors = {
|
|
2
|
-
default: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
default: {
|
|
3
|
+
dark: '#7580ba',
|
|
4
|
+
middle: '#93a3cf',
|
|
5
|
+
light: '#b1c6e4'
|
|
6
|
+
},
|
|
7
|
+
rojo: {
|
|
8
|
+
dark: '#b12309',
|
|
9
|
+
middle: '#d9543a',
|
|
10
|
+
light: '#ff856a'
|
|
11
|
+
},
|
|
12
|
+
amarillo: {
|
|
13
|
+
dark: '#c97c00',
|
|
14
|
+
middle: '#e4ad1b',
|
|
15
|
+
light: '#ffe535'
|
|
16
|
+
},
|
|
17
|
+
azul_oscuro: {
|
|
18
|
+
dark: '#0f236d',
|
|
19
|
+
middle: '#3d51a0',
|
|
20
|
+
light: '#6a7ec9'
|
|
21
|
+
},
|
|
22
|
+
naranja: {
|
|
23
|
+
dark: '#9c4d00',
|
|
24
|
+
middle: '#ce8430',
|
|
25
|
+
light: '#ffba53'
|
|
26
|
+
},
|
|
27
|
+
marron_claro: {
|
|
28
|
+
dark: '#75582e',
|
|
29
|
+
middle: '#ac9065',
|
|
30
|
+
light: '#e4c79d'
|
|
31
|
+
},
|
|
32
|
+
verde_agua: {
|
|
33
|
+
dark: '#105951',
|
|
34
|
+
middle: '#48928a',
|
|
35
|
+
light: '#80c3ba'
|
|
36
|
+
},
|
|
37
|
+
marron_oscuro: {
|
|
38
|
+
dark: '#4f2a00',
|
|
39
|
+
middle: '#7d5830',
|
|
40
|
+
light: '#aa855a'
|
|
41
|
+
},
|
|
42
|
+
rosa: {
|
|
43
|
+
dark: '#892466',
|
|
44
|
+
middle: '#bd58a1',
|
|
45
|
+
light: '#f08bcc'
|
|
46
|
+
},
|
|
47
|
+
azul_claro: {
|
|
48
|
+
dark: '#334696',
|
|
49
|
+
middle: '#697cd0',
|
|
50
|
+
light: '#9eb1ff'
|
|
51
|
+
},
|
|
52
|
+
violeta: {
|
|
53
|
+
dark: '#482d76',
|
|
54
|
+
middle: '#7a5ea8',
|
|
55
|
+
light: '#ac90d9'
|
|
56
|
+
},
|
|
57
|
+
celeste_oscuro: {
|
|
58
|
+
dark: '#005095',
|
|
59
|
+
middle: '#3790ca',
|
|
60
|
+
light: '#6dbfff'
|
|
61
|
+
},
|
|
62
|
+
gris: {
|
|
63
|
+
dark: '#445255',
|
|
64
|
+
middle: '#7a888b',
|
|
65
|
+
light: '#b0bec1'
|
|
66
|
+
},
|
|
67
|
+
celeste_claro: {
|
|
68
|
+
dark: '#237286',
|
|
69
|
+
middle: '#5daec1',
|
|
70
|
+
light: '#98e7fb'
|
|
71
|
+
},
|
|
72
|
+
verde_oscuro: {
|
|
73
|
+
dark: '#215b1d',
|
|
74
|
+
middle: '#569052',
|
|
75
|
+
light: '#8ac487'
|
|
76
|
+
},
|
|
77
|
+
verde_claro: {
|
|
78
|
+
dark: '#4b5f13',
|
|
79
|
+
middle: '#83974b',
|
|
80
|
+
light: '#bbce82'
|
|
81
|
+
}
|
|
18
82
|
};
|
|
19
83
|
const diameterCircle = {
|
|
20
84
|
small: 40,
|