native-pytech 1.0.46 → 1.0.47
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.js +1 -1
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +7 -1
- package/dist/libs/components/Gradient/components/Icon/index.d.ts +1 -1
- package/dist/libs/components/Gradient/components/Icon/index.ios.d.ts +1 -1
- package/dist/libs/components/Gradient/components/Icon/index.ios.js +2 -2
- package/dist/libs/components/Gradient/components/Icon/index.js +1 -1
- package/dist/libs/components/Gradient/components/Icon/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ export default memo(({ text, color, type = 'small', systemName, iconSize, }) =>
|
|
|
16
16
|
</Text>);
|
|
17
17
|
}, [text, typeSizes]);
|
|
18
18
|
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 ?? (systemName && <Icon systemName={systemName}
|
|
19
|
+
{textComponent ?? (systemName && (<Icon systemName={systemName} size={iconSize ?? typeSizes.diameter / 2}/>))}
|
|
20
20
|
</LinearGradient>);
|
|
21
21
|
});
|
|
22
22
|
const styles = StyleSheet.create({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import colors, { sizesType } from '../../constants';
|
|
2
2
|
import IconProps from '../Icon/types';
|
|
3
|
-
export type Props = IconProps & {
|
|
3
|
+
export type Props = Omit<IconProps, 'size'> & {
|
|
4
4
|
/**
|
|
5
5
|
The text to display in the gradient.
|
|
6
6
|
Must be less than 3 characters.
|
|
@@ -15,5 +15,11 @@ export type Props = IconProps & {
|
|
|
15
15
|
@default 'small'
|
|
16
16
|
*/
|
|
17
17
|
type: sizesType;
|
|
18
|
+
/**
|
|
19
|
+
The size of the icon.
|
|
20
|
+
@ios
|
|
21
|
+
@default (typeSizes.diameter/2)
|
|
22
|
+
*/
|
|
23
|
+
iconSize?: number;
|
|
18
24
|
};
|
|
19
25
|
export default Props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Host, Image } from '@expo/ui/swift-ui';
|
|
2
|
-
export default ({ systemName,
|
|
2
|
+
export default ({ systemName, size = 100 }) => {
|
|
3
3
|
return (<Host matchContents>
|
|
4
|
-
<Image systemName={systemName} color='white' size={
|
|
4
|
+
<Image systemName={systemName} color='white' size={size}/>
|
|
5
5
|
</Host>);
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ({ systemName,
|
|
1
|
+
export default ({ systemName, size = 100 }) => null;
|