@sphereon/ui-components.ssi-react-native 0.4.1-next.186 → 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.
@@ -4,12 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
- const react_native_fast_image_1 = __importDefault(require("react-native-fast-image"));
7
+ const expo_image_1 = require("expo-image");
8
8
  const ui_components_core_1 = require("@sphereon/ui-components.core");
9
9
  const SSIPlaceholderLogo_1 = __importDefault(require("../SSIPlaceholderLogo"));
10
10
  const SSILogo = (props) => {
11
11
  const { logo, color = ui_components_core_1.logoColors.default, size = 32, style } = props;
12
- const source = { ...logo, priority: react_native_fast_image_1.default.priority.high };
13
12
  let calculatedHeight = size;
14
13
  let calculatedWidth = size;
15
14
  if (logo?.dimensions) {
@@ -23,12 +22,13 @@ const SSILogo = (props) => {
23
22
  calculatedWidth = size * aspectRatio;
24
23
  }
25
24
  }
26
- return logo ? (<react_native_fast_image_1.default style={{
25
+ const imageSource = logo ? { uri: logo.dataUri || logo.uri } : undefined;
26
+ return logo ? (<expo_image_1.Image style={{
27
27
  ...style,
28
28
  height: calculatedHeight > size ? size : calculatedHeight,
29
29
  width: calculatedWidth > size ? size : calculatedWidth,
30
30
  maxWidth: size,
31
31
  maxHeight: size,
32
- }} resizeMode={react_native_fast_image_1.default.resizeMode.contain} source={source}/>) : (<SSIPlaceholderLogo_1.default style={style} size={size} color={color}/>);
32
+ }} contentFit="contain" source={imageSource}/>) : (<SSIPlaceholderLogo_1.default style={style} size={size} color={color}/>);
33
33
  };
34
34
  exports.default = SSILogo;
@@ -13,4 +13,10 @@ export declare const SSICredentialCardViewFooterContainerStyled: import("styled-
13
13
  export declare const SSICredentialCardViewCredentialTitleTextStyled: typeof SSITextH4SemiBoldLightStyled;
14
14
  export declare const SSICredentialCardViewCredentialSubtitleTextStyled: typeof SSITextH5LightStyled;
15
15
  export declare const SSICredentialCardViewStatusContainerStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
16
- export declare const SSICredentialCardViewBackgroundImageStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native-fast-image").FastImageProps | (import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>), import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>>, import("styled-components/native/dist/types").BaseObject> | import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native-fast-image").FastImageProps | (import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>), import("react-native-fast-image").FastImageProps>, import("styled-components/native/dist/types").BaseObject>, import("styled-components/native/dist/types").BaseObject>>;
16
+ import React from 'react';
17
+ import { View, ViewStyle, StyleProp } from 'react-native';
18
+ export declare const SSICredentialCardViewBackgroundImageStyled: React.ForwardRefExoticComponent<{
19
+ source?: any;
20
+ children?: React.ReactNode;
21
+ style?: StyleProp<ViewStyle>;
22
+ } & React.RefAttributes<View>>;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SSICredentialCardViewBackgroundImageStyled = exports.SSICredentialCardViewStatusContainerStyled = exports.SSICredentialCardViewCredentialSubtitleTextStyled = exports.SSICredentialCardViewCredentialTitleTextStyled = exports.SSICredentialCardViewFooterContainerStyled = exports.SSICredentialCardViewFooterContentContainerStyled = exports.SSICredentialCardViewContentPropertiesContainerStyled = exports.SSICredentialCardViewContentIssueNameContainerStyled = exports.SSICredentialCardViewContentSubContainerStyled = exports.SSICredentialCardViewContentMainContainerStyled = exports.SSICredentialCardViewHeaderTitleContainerStyled = exports.SSICredentialCardViewHeaderLogoContainerStyled = exports.SSICredentialCardViewHeaderContainerStyled = exports.SSICredentialCardViewContainerStyled = void 0;
7
7
  const native_1 = __importDefault(require("styled-components/native"));
8
- const react_native_fast_image_1 = __importDefault(require("react-native-fast-image"));
8
+ const expo_image_1 = require("expo-image");
9
9
  const containers_1 = require("../../containers");
10
10
  const fonts_1 = require("../../../fonts");
11
11
  exports.SSICredentialCardViewContainerStyled = (0, native_1.default)(containers_1.SSIRoundedContainerStyled) `
@@ -60,8 +60,9 @@ exports.SSICredentialCardViewCredentialSubtitleTextStyled = (0, native_1.default
60
60
  exports.SSICredentialCardViewStatusContainerStyled = native_1.default.View `
61
61
  margin-left: auto;
62
62
  `;
63
- exports.SSICredentialCardViewBackgroundImageStyled = (0, native_1.default)(react_native_fast_image_1.default).attrs({
64
- resizeMode: 'cover',
65
- }) `
66
- flex: 1;
67
- `;
63
+ const react_1 = __importDefault(require("react"));
64
+ const react_native_1 = require("react-native");
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,2 +1,8 @@
1
+ import React from 'react';
2
+ import { View, ViewStyle, StyleProp } from 'react-native';
1
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>>;
2
- export declare const SSICredentialMiniCardViewBackgroundImageStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native-fast-image").FastImageProps | (import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>), import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>>, import("styled-components/native/dist/types").BaseObject> | import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native-fast-image").FastImageProps | (import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>), import("react-native-fast-image").FastImageProps>, import("styled-components/native/dist/types").BaseObject>, import("styled-components/native/dist/types").BaseObject>>;
4
+ export declare const SSICredentialMiniCardViewBackgroundImageStyled: React.ForwardRefExoticComponent<{
5
+ source?: any;
6
+ children?: React.ReactNode;
7
+ style?: StyleProp<ViewStyle>;
8
+ } & React.RefAttributes<View>>;
@@ -5,17 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SSICredentialMiniCardViewBackgroundImageStyled = exports.SSICredentialMiniCardViewContainerStyled = void 0;
7
7
  const native_1 = __importDefault(require("styled-components/native"));
8
- const react_native_fast_image_1 = __importDefault(require("react-native-fast-image"));
8
+ const expo_image_1 = require("expo-image");
9
+ const react_1 = __importDefault(require("react"));
10
+ const react_native_1 = require("react-native");
9
11
  exports.SSICredentialMiniCardViewContainerStyled = native_1.default.View `
10
12
  width: 75px;
11
13
  height: 50px;
12
14
  border-radius: 4.6px;
13
15
  overflow: hidden;
14
16
  `;
15
- exports.SSICredentialMiniCardViewBackgroundImageStyled = (0, native_1.default)(react_native_fast_image_1.default).attrs({
16
- resizeMode: 'cover',
17
- }) `
18
- flex: 1;
19
- align-items: center;
20
- justify-content: center;
21
- `;
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.186+8f34f58",
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,10 +29,10 @@
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.186+8f34f58",
32
+ "@sphereon/ui-components.core": "0.4.1-next.188+2e4c1d4",
33
33
  "expo-blur": "^15.0.8",
34
+ "expo-image": "~2.0.6",
34
35
  "expo-linear-gradient": "~13.0.2",
35
- "react-native-fast-image": "^8.6.3",
36
36
  "react-native-size-matters": "^0.4.2",
37
37
  "react-native-svg": "15.2.0",
38
38
  "styled-components": "^6.1.15"
@@ -46,5 +46,5 @@
46
46
  "react": ">= 18.2",
47
47
  "react-native": "~0.74.3"
48
48
  },
49
- "gitHead": "8f34f589c1358a54d7e34624611aa6352982d84c"
49
+ "gitHead": "2e4c1d4d28c101293498aafff26fa9b71bc243d5"
50
50
  }