@sphereon/ui-components.ssi-react-native 0.4.1-next.187 → 0.4.1-next.188

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.
@@ -22,12 +22,13 @@ const SSILogo = (props) => {
22
22
  calculatedWidth = size * aspectRatio;
23
23
  }
24
24
  }
25
+ const imageSource = logo ? { uri: logo.dataUri || logo.uri } : undefined;
25
26
  return logo ? (<expo_image_1.Image style={{
26
27
  ...style,
27
28
  height: calculatedHeight > size ? size : calculatedHeight,
28
29
  width: calculatedWidth > size ? size : calculatedWidth,
29
30
  maxWidth: size,
30
31
  maxHeight: size,
31
- }} contentFit="contain" source={logo}/>) : (<SSIPlaceholderLogo_1.default style={style} size={size} color={color}/>);
32
+ }} contentFit="contain" source={imageSource}/>) : (<SSIPlaceholderLogo_1.default style={style} size={size} color={color}/>);
32
33
  };
33
34
  exports.default = SSILogo;
@@ -1,4 +1,3 @@
1
- import { ImageProps } from 'expo-image';
2
1
  import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
3
2
  import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../../fonts';
4
3
  export declare const SSICredentialCardViewContainerStyled: typeof SSIRoundedContainerStyled;
@@ -17,7 +16,7 @@ export declare const SSICredentialCardViewStatusContainerStyled: import("styled-
17
16
  import React from 'react';
18
17
  import { View, ViewStyle, StyleProp } from 'react-native';
19
18
  export declare const SSICredentialCardViewBackgroundImageStyled: React.ForwardRefExoticComponent<{
20
- source?: ImageProps["source"];
19
+ source?: any;
21
20
  children?: React.ReactNode;
22
21
  style?: StyleProp<ViewStyle>;
23
22
  } & React.RefAttributes<View>>;
@@ -62,4 +62,7 @@ exports.SSICredentialCardViewStatusContainerStyled = native_1.default.View `
62
62
  `;
63
63
  const react_1 = __importDefault(require("react"));
64
64
  const react_native_1 = require("react-native");
65
- exports.SSICredentialCardViewBackgroundImageStyled = react_1.default.forwardRef(({ source, children, style, ...rest }, ref) => react_1.default.createElement(react_native_1.View, { ref, style: [{ flex: 1 }, style], ...rest }, source ? react_1.default.createElement(expo_image_1.Image, { source, contentFit: 'cover', style: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 } }) : null, children));
65
+ exports.SSICredentialCardViewBackgroundImageStyled = react_1.default.forwardRef(({ source, children, style, ...rest }, ref) => {
66
+ const imageSource = source ? { uri: source.dataUri || source.uri } : undefined;
67
+ return react_1.default.createElement(react_native_1.View, { ref, style: [{ flex: 1 }, style], ...rest }, imageSource ? react_1.default.createElement(expo_image_1.Image, { source: imageSource, contentFit: 'cover', style: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 } }) : null, children);
68
+ });
@@ -1,9 +1,8 @@
1
- import { ImageProps } from 'expo-image';
2
1
  import React from 'react';
3
2
  import { View, ViewStyle, StyleProp } from 'react-native';
4
3
  export declare const SSICredentialMiniCardViewContainerStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
5
4
  export declare const SSICredentialMiniCardViewBackgroundImageStyled: React.ForwardRefExoticComponent<{
6
- source?: ImageProps["source"];
5
+ source?: any;
7
6
  children?: React.ReactNode;
8
7
  style?: StyleProp<ViewStyle>;
9
8
  } & React.RefAttributes<View>>;
@@ -14,4 +14,7 @@ exports.SSICredentialMiniCardViewContainerStyled = native_1.default.View `
14
14
  border-radius: 4.6px;
15
15
  overflow: hidden;
16
16
  `;
17
- exports.SSICredentialMiniCardViewBackgroundImageStyled = react_1.default.forwardRef(({ source, children, style, ...rest }, ref) => react_1.default.createElement(react_native_1.View, { ref, style: [{ flex: 1, alignItems: 'center', justifyContent: 'center' }, style], ...rest }, source ? react_1.default.createElement(expo_image_1.Image, { source, contentFit: 'cover', style: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 } }) : null, children));
17
+ exports.SSICredentialMiniCardViewBackgroundImageStyled = react_1.default.forwardRef(({ source, children, style, ...rest }, ref) => {
18
+ const imageSource = source ? { uri: source.dataUri || source.uri } : undefined;
19
+ return react_1.default.createElement(react_native_1.View, { ref, style: [{ flex: 1, alignItems: 'center', justifyContent: 'center' }, style], ...rest }, imageSource ? react_1.default.createElement(expo_image_1.Image, { source: imageSource, contentFit: 'cover', style: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 } }) : null, children);
20
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react-native",
3
3
  "private": false,
4
- "version": "0.4.1-next.187+94f7bf8",
4
+ "version": "0.4.1-next.188+2e4c1d4",
5
5
  "description": "SSI UI components for React-Native",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@react-native-masked-view/masked-view": "^0.3.2",
32
- "@sphereon/ui-components.core": "0.4.1-next.187+94f7bf8",
32
+ "@sphereon/ui-components.core": "0.4.1-next.188+2e4c1d4",
33
33
  "expo-blur": "^15.0.8",
34
34
  "expo-image": "~2.0.6",
35
35
  "expo-linear-gradient": "~13.0.2",
@@ -46,5 +46,5 @@
46
46
  "react": ">= 18.2",
47
47
  "react-native": "~0.74.3"
48
48
  },
49
- "gitHead": "94f7bf87299ea83e3998d227e6d4c7e303088dfe"
49
+ "gitHead": "2e4c1d4d28c101293498aafff26fa9b71bc243d5"
50
50
  }