@sphereon/ui-components.ssi-react-native 0.5.3-next.2 → 0.5.4-next.3
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.
|
@@ -33,7 +33,7 @@ const SSICredentialCardView = (props) => {
|
|
|
33
33
|
};
|
|
34
34
|
return (<styles_1.SSICredentialCardViewContainerStyled style={{ backgroundColor }}>
|
|
35
35
|
<styles_1.SSICredentialCardViewBackgroundImageStyled source={backgroundImage}>
|
|
36
|
-
<styles_1.SSIAlphaContainerStyled>
|
|
36
|
+
<styles_1.SSIAlphaContainerStyled $hasBackgroundImage={!!backgroundImage}>
|
|
37
37
|
{header && (<styles_1.SSICredentialCardViewHeaderContainerStyled>
|
|
38
38
|
{(!backgroundImage || logo) && (<styles_1.SSICredentialCardViewHeaderLogoContainerStyled>
|
|
39
39
|
<SSILogo_1.default logo={logo} color={textColor}/>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BlurView } from 'expo-blur';
|
|
2
|
-
export declare const SSIAlphaContainerStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").
|
|
2
|
+
export declare const SSIAlphaContainerStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps, {
|
|
3
|
+
$hasBackgroundImage?: boolean;
|
|
4
|
+
}>>;
|
|
3
5
|
export declare const SSIBlurredContainerStyled: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").Substitute<{
|
|
4
6
|
tint?: import("expo-blur").BlurTint;
|
|
5
7
|
intensity?: number;
|
|
@@ -9,7 +9,9 @@ const native_1 = __importDefault(require("styled-components/native"));
|
|
|
9
9
|
const ui_components_core_1 = require("@sphereon/ui-components.core");
|
|
10
10
|
exports.SSIAlphaContainerStyled = native_1.default.View `
|
|
11
11
|
flex: 1;
|
|
12
|
-
background
|
|
12
|
+
// Only darken the card when a background image is set (to keep text legible);
|
|
13
|
+
// a user-chosen solid background color must render as-is.
|
|
14
|
+
${props => (props.$hasBackgroundImage ? 'background-color: rgba(0, 0, 0, 0.2);' : '')}
|
|
13
15
|
`;
|
|
14
16
|
exports.SSIBlurredContainerStyled = (0, native_1.default)(expo_blur_1.BlurView).attrs({
|
|
15
17
|
tint: 'light',
|
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.5.
|
|
4
|
+
"version": "0.5.4-next.3+3305acf",
|
|
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.5.
|
|
32
|
+
"@sphereon/ui-components.core": "0.5.4-next.3+3305acf",
|
|
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": "
|
|
49
|
+
"gitHead": "3305acf2f6211ef052448fccaa8fdfa507daaf3e"
|
|
50
50
|
}
|