native-pytech 1.0.124 → 1.0.126
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/libs/components/Gradient/components/Gradient/index.d.ts +1 -1
- package/dist/libs/components/Gradient/components/Gradient/index.js +2 -3
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +1 -1
- package/dist/libs/components/Gradient/components/{Icon/types.d.ts → Icon.d.ts} +5 -0
- package/dist/libs/table/src/components/Table/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libs/components/Gradient/components/Icon/index.d.ts +0 -3
- package/dist/libs/components/Gradient/components/Icon/index.js +0 -1
- /package/dist/libs/components/Gradient/components/{Icon/types.js → Icon.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type Props from './types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ text, color, type, sizeDiameter,
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ text, color, type, sizeDiameter, icon, iconSize, }: Props) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -2,8 +2,7 @@ import React, { memo, useMemo } from 'react';
|
|
|
2
2
|
import { StyleSheet, Text } from 'react-native';
|
|
3
3
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
4
4
|
import colors, { sizes } from '../../constants';
|
|
5
|
-
|
|
6
|
-
export default memo(({ text, color = 'default', type = 'small', sizeDiameter, systemName, iconSize, }) => {
|
|
5
|
+
export default memo(({ text, color = 'default', type = 'small', sizeDiameter, icon, iconSize, }) => {
|
|
7
6
|
const typeSizes = useMemo(() => sizes[type], [type]);
|
|
8
7
|
const textComponent = useMemo(() => {
|
|
9
8
|
const cantLetras = text?.length;
|
|
@@ -16,7 +15,7 @@ export default memo(({ text, color = 'default', type = 'small', sizeDiameter, sy
|
|
|
16
15
|
</Text>);
|
|
17
16
|
}, [text, typeSizes]);
|
|
18
17
|
return (<LinearGradient style={[styles.gradient, { height: typeSizes.diameter, borderRadius: typeSizes.diameter }]} colors={[colors[color].light, colors[color].dark]} start={{ x: 0, y: 0 }} end={{ x: 0, y: 1 }}>
|
|
19
|
-
{textComponent ??
|
|
18
|
+
{textComponent ?? icon}
|
|
20
19
|
</LinearGradient>);
|
|
21
20
|
});
|
|
22
21
|
const styles = StyleSheet.create({
|
|
@@ -8,7 +8,7 @@ type Props = {
|
|
|
8
8
|
Opciones de la tabla.
|
|
9
9
|
Tiene que ser una lista de Options.
|
|
10
10
|
*/
|
|
11
|
-
children?: React.
|
|
11
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
12
12
|
/**
|
|
13
13
|
Texto que aparece arriba de la tabla.
|
|
14
14
|
Si es null, no se muestra.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default ({ systemName, size = 100 }) => null;
|
|
File without changes
|