@sphereon/ui-components.ssi-react-native 0.2.1-unstable.8 → 0.2.1-unstable.86
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/LICENSE +201 -636
- package/package.json +12 -14
- package/dist/components/assets/badges/SSICheckmarkBadge/index.d.ts +0 -9
- package/dist/components/assets/badges/SSICheckmarkBadge/index.js +0 -14
- package/dist/components/assets/badges/SSIExclamationMarkBadge/index.d.ts +0 -9
- package/dist/components/assets/badges/SSIExclamationMarkBadge/index.js +0 -14
- package/dist/components/assets/logos/SSILogo/index.d.ts +0 -11
- package/dist/components/assets/logos/SSILogo/index.js +0 -14
- package/dist/components/assets/logos/SSIPlaceholderLogo/index.d.ts +0 -9
- package/dist/components/assets/logos/SSIPlaceholderLogo/index.js +0 -18
- package/dist/components/buttons/PrimaryButton/index.d.ts +0 -12
- package/dist/components/buttons/PrimaryButton/index.js +0 -18
- package/dist/components/buttons/SecondaryButton/index.d.ts +0 -12
- package/dist/components/buttons/SecondaryButton/index.js +0 -23
- package/dist/components/indicators/SSIActivityIndicator/index.d.ts +0 -9
- package/dist/components/indicators/SSIActivityIndicator/index.js +0 -8
- package/dist/components/labels/SSIStatusLabel/index.d.ts +0 -11
- package/dist/components/labels/SSIStatusLabel/index.js +0 -29
- package/dist/components/views/SSICredentialCardView/index.d.ts +0 -33
- package/dist/components/views/SSICredentialCardView/index.js +0 -60
- package/dist/components/views/SSICredentialMiniCardView/index.d.ts +0 -12
- package/dist/components/views/SSICredentialMiniCardView/index.js +0 -11
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -12
- package/dist/styles/components/buttons/index.d.ts +0 -13
- package/dist/styles/components/buttons/index.js +0 -10
- package/dist/styles/components/components/SSICredentialCardView/index.d.ts +0 -18
- package/dist/styles/components/components/SSICredentialCardView/index.js +0 -57
- package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +0 -6
- package/dist/styles/components/components/SSICredentialMiniCardView/index.js +0 -15
- package/dist/styles/components/components/SSIStatusLabel/index.d.ts +0 -4
- package/dist/styles/components/components/SSIStatusLabel/index.js +0 -21
- package/dist/styles/components/components/SecondaryButton/index.d.ts +0 -13
- package/dist/styles/components/components/SecondaryButton/index.js +0 -14
- package/dist/styles/components/components/index.d.ts +0 -4
- package/dist/styles/components/components/index.js +0 -4
- package/dist/styles/components/containers/index.d.ts +0 -9
- package/dist/styles/components/containers/index.js +0 -21
- package/dist/styles/components/index.d.ts +0 -3
- package/dist/styles/components/index.js +0 -3
- package/dist/styles/fonts/index.d.ts +0 -13
- package/dist/styles/fonts/index.js +0 -63
- package/dist/styles/gradients/index.d.ts +0 -23
- package/dist/styles/gradients/index.js +0 -11
- package/dist/styles/index.d.ts +0 -4
- package/dist/styles/index.js +0 -4
- package/dist/styles/typography.d.ts +0 -4
- package/dist/styles/typography.js +0 -105
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.2.1-unstable.
|
|
4
|
+
"version": "0.2.1-unstable.86+4f37b20",
|
|
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,24 +29,22 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@react-native-community/blur": "^4.4.0",
|
|
32
|
-
"@react-native-masked-view/masked-view": "0.3.1",
|
|
33
|
-
"@sphereon/ui-components.core": "0.2.1-unstable.
|
|
34
|
-
"expo-linear-gradient": "~
|
|
32
|
+
"@react-native-masked-view/masked-view": "^0.3.1",
|
|
33
|
+
"@sphereon/ui-components.core": "0.2.1-unstable.86+4f37b20",
|
|
34
|
+
"expo-linear-gradient": "~13.0.2",
|
|
35
35
|
"react-native-fast-image": "^8.6.3",
|
|
36
|
-
"react-native-size-matters": "^0.4.
|
|
37
|
-
"react-native-svg": "
|
|
38
|
-
"styled-components": "^
|
|
36
|
+
"react-native-size-matters": "^0.4.2",
|
|
37
|
+
"react-native-svg": "15.2.0",
|
|
38
|
+
"styled-components": "^6.1.12"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/react": "~18.2.
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"@types/styled-components-react-native": "^5.1.2",
|
|
45
|
-
"typescript": "4.9.5"
|
|
41
|
+
"@types/react": "~18.2.79",
|
|
42
|
+
"expo": "^51.0.22",
|
|
43
|
+
"typescript": "~5.3.3"
|
|
46
44
|
},
|
|
47
45
|
"peerDependencies": {
|
|
48
46
|
"react": ">= 18",
|
|
49
|
-
"react-native": "~0.
|
|
47
|
+
"react-native": "~0.74.3"
|
|
50
48
|
},
|
|
51
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "4f37b208cf3a2e90a109d7e76b174a2ed674b466"
|
|
52
50
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import Svg, { Circle, Path } from 'react-native-svg';
|
|
4
|
-
import { fontColors, statusColors } from '@sphereon/ui-components.core';
|
|
5
|
-
const SSICheckmarkBadge = (props) => {
|
|
6
|
-
const { size = 15, color = fontColors.light, backgroundColor = statusColors.valid } = props;
|
|
7
|
-
return (<View style={{ width: size, aspectRatio: 1 }}>
|
|
8
|
-
<Svg width="100%" height="100%" viewBox="0 0 15 15" fill="none">
|
|
9
|
-
<Circle cx="7.5" cy="7.5" r="7.5" fill={backgroundColor}/>
|
|
10
|
-
<Path d="M5.91233 11.0361H5.9092C5.84998 11.0357 5.79144 11.0236 5.73697 11.0005C5.6825 10.9774 5.63319 10.9437 5.59192 10.9015L3.13412 8.38546C3.09155 8.34399 3.05776 8.29447 3.03473 8.23981C3.0117 8.18516 2.99989 8.12647 3 8.06722C3.00011 8.00796 3.01214 7.94932 3.03538 7.89475C3.05862 7.84018 3.09259 7.79079 3.13531 7.74947C3.17803 7.70815 3.22863 7.67575 3.28412 7.65417C3.33962 7.63259 3.3989 7.62226 3.45847 7.6238C3.51804 7.62534 3.5767 7.63871 3.63099 7.66312C3.68529 7.68754 3.73413 7.72251 3.77463 7.76597L5.91665 9.95833L10.9927 4.91088C11.077 4.82993 11.1898 4.78514 11.307 4.78615C11.4242 4.78716 11.5363 4.8339 11.6191 4.91629C11.702 4.99869 11.749 5.11015 11.75 5.22667C11.751 5.34319 11.706 5.45544 11.6246 5.53926L6.22827 10.9059C6.14448 10.9893 6.03084 11.0361 5.91233 11.0361Z" fill={color}/>
|
|
11
|
-
</Svg>
|
|
12
|
-
</View>);
|
|
13
|
-
};
|
|
14
|
-
export default SSICheckmarkBadge;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import Svg, { Circle, Path } from 'react-native-svg';
|
|
4
|
-
import { fontColors, statusColors } from '@sphereon/ui-components.core';
|
|
5
|
-
const SSIExclamationMarkBadge = (props) => {
|
|
6
|
-
const { size = 15, color = fontColors.light, backgroundColor = statusColors.error } = props;
|
|
7
|
-
return (<View style={{ width: size, aspectRatio: 1 }}>
|
|
8
|
-
<Svg width="100%" height="100%" viewBox="0 0 15 15" fill="none">
|
|
9
|
-
<Circle cx="7.5" cy="7.5" r="7.5" fill={backgroundColor}/>
|
|
10
|
-
<Path fill-rule="evenodd" clip-rule="evenodd" d="M6.78571 3.48218C6.78571 3.33429 6.94559 3.21429 7.14279 3.21429H7.8572C8.05439 3.21429 8.21428 3.33429 8.21428 3.48218V9.37504C8.21428 9.52293 8.05439 9.64283 7.8572 9.64283H7.14279C6.94559 9.64283 6.78571 9.52292 6.78571 9.37504V3.48218ZM6.78571 10.9822C6.78571 10.8342 6.94559 10.7143 7.14279 10.7143H7.8572C8.05439 10.7143 8.21428 10.8342 8.21428 10.9822V11.5178C8.21428 11.6657 8.05439 11.7857 7.8572 11.7857H7.14279C6.94559 11.7857 6.78571 11.6657 6.78571 11.5178V10.9822Z" fill={color}/>
|
|
11
|
-
</Svg>
|
|
12
|
-
</View>);
|
|
13
|
-
};
|
|
14
|
-
export default SSIExclamationMarkBadge;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue, ViewStyle } from 'react-native';
|
|
3
|
-
import { ImageAttributes } from '@sphereon/ui-components.core';
|
|
4
|
-
type Props = {
|
|
5
|
-
logo?: ImageAttributes;
|
|
6
|
-
size?: number;
|
|
7
|
-
color?: ColorValue;
|
|
8
|
-
style?: ViewStyle;
|
|
9
|
-
};
|
|
10
|
-
declare const SSILogo: FC<Props>;
|
|
11
|
-
export default SSILogo;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FastImage from 'react-native-fast-image';
|
|
3
|
-
import { calculateAspectRatio, logoColors } from '@sphereon/ui-components.core';
|
|
4
|
-
import SSIPlaceholderLogo from '../SSIPlaceholderLogo';
|
|
5
|
-
const SSILogo = (props) => {
|
|
6
|
-
const { logo, color = logoColors.default, size = 32, style } = props;
|
|
7
|
-
const source = { ...logo, priority: FastImage.priority.high };
|
|
8
|
-
return logo ? (<FastImage style={{
|
|
9
|
-
...style,
|
|
10
|
-
...(logo?.dimensions && { aspectRatio: calculateAspectRatio(logo?.dimensions.width, logo?.dimensions.height) }),
|
|
11
|
-
height: size,
|
|
12
|
-
}} resizeMode={FastImage.resizeMode.contain} source={source}/>) : (<SSIPlaceholderLogo style={style} size={size} color={color}/>);
|
|
13
|
-
};
|
|
14
|
-
export default SSILogo;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import Svg, { Path } from 'react-native-svg';
|
|
4
|
-
import { logoColors } from '@sphereon/ui-components.core';
|
|
5
|
-
const SSIPlaceholderLogo = (props) => {
|
|
6
|
-
const { color = logoColors.default, size = 32, style } = props;
|
|
7
|
-
return (<View style={[style, { width: size, height: size }]}>
|
|
8
|
-
<Svg width="100%" height="100%" viewBox="0 0 32 32" fill="none">
|
|
9
|
-
<Path d="M15.9997 31.9999C11.7563 31.9999 7.68645 30.3141 4.68603 27.3136C1.68548 24.313 0 20.2435 0 15.9999C0 11.7563 1.68548 7.68669 4.68603 4.68627C7.68657 1.68572 11.7561 0 15.9997 0C20.2433 0 24.3129 1.68572 27.3133 4.68627C30.3139 7.68657 31.9994 11.7563 31.9994 15.9999C31.9947 20.2419 30.3075 24.3089 27.3079 27.3082C24.3083 30.3077 20.2415 31.9949 15.9997 31.9999ZM15.9997 0.914927V0.914691C11.9987 0.914691 8.16186 2.50412 5.33238 5.33317C2.50339 8.1624 0.9139 11.9997 0.9139 16.0005C0.9139 20.0015 2.50333 23.8383 5.33238 26.6678C8.16137 29.4968 11.9983 31.0863 15.9997 31.0863C20.0011 31.0863 23.8375 29.4968 26.667 26.6678C29.496 23.8388 31.0855 20.0018 31.0855 16.0005C31.081 12.0009 29.4901 8.16627 26.662 5.33861C23.834 2.51059 19.9997 0.919705 16.0002 0.915174L15.9997 0.914927Z" fill={color}/>
|
|
10
|
-
<Path d="M30.1659 10.0545C30.0927 10.0545 30.0205 10.0368 29.9556 10.0028C26.3647 8.13584 21.2781 7.06476 15.9997 7.06476C10.7214 7.06476 5.63448 8.13578 2.04387 10.0028C1.93604 10.0625 1.80862 10.0762 1.6904 10.0405C1.57241 10.0049 1.47355 9.92327 1.41668 9.81378C1.35981 9.70429 1.34966 9.5764 1.38836 9.45936C1.42706 9.34232 1.51154 9.24581 1.62244 9.19177C5.39433 7.23065 10.4993 6.15039 16 6.15039C21.5006 6.15039 26.6056 7.23065 30.3775 9.19177C30.5643 9.28899 30.6604 9.50136 30.6104 9.70594C30.5603 9.91052 30.377 10.0545 30.1663 10.0545L30.1659 10.0545Z" fill={color}/>
|
|
11
|
-
<Path d="M15.9996 25.848C10.4929 25.848 5.38486 24.7664 1.61726 22.8022C1.39333 22.6856 1.30626 22.4095 1.42282 22.1856C1.53963 21.9617 1.8157 21.8746 2.03964 21.9912C5.62728 23.8614 10.7147 24.9339 15.9997 24.9339C21.2848 24.9339 26.3722 23.8614 29.9598 21.9914V21.9912C30.1838 21.8746 30.4598 21.9617 30.5766 22.1856C30.6932 22.4096 30.6061 22.6856 30.3822 22.8022C26.6146 24.7666 21.5066 25.8481 15.9999 25.8481L15.9996 25.848Z" fill={color}/>
|
|
12
|
-
<Path d="M15.9995 32.0001C11.3852 32.0001 7.77148 24.9717 7.77148 16.0007C7.77148 7.02959 11.3855 0.0012207 15.9995 0.0012207C20.6136 0.0012207 24.2276 7.02899 24.2276 16.0007C24.2276 24.9723 20.6136 32.0001 15.9995 32.0001ZM15.9995 0.915181C11.9666 0.915181 8.68545 7.68078 8.68545 16.0007C8.68545 24.3205 11.9668 31.0861 15.9995 31.0861C20.0323 31.0861 23.3136 24.3205 23.3136 16.0007C23.3136 7.68078 20.0323 0.915181 15.9995 0.915181Z" fill={color}/>
|
|
13
|
-
<Path d="M16 31.9998C15.7476 31.9998 15.543 31.795 15.543 31.5425V0.457553C15.543 0.205069 15.7476 0.000488281 16 0.000488281C16.2525 0.000488281 16.4571 0.205069 16.4571 0.457553V31.5425C16.4571 31.6638 16.409 31.7801 16.3233 31.8658C16.2377 31.9514 16.1213 31.9998 16 31.9998V31.9998Z" fill={color}/>
|
|
14
|
-
<Path d="M31.542 16.4571H0.457065C0.204581 16.4571 0 16.2525 0 16C0 15.7476 0.204581 15.543 0.457065 15.543H31.542C31.7945 15.543 31.9991 15.7476 31.9991 16C31.9991 16.2525 31.7945 16.4571 31.542 16.4571Z" fill={color}/>
|
|
15
|
-
</Svg>
|
|
16
|
-
</View>);
|
|
17
|
-
};
|
|
18
|
-
export default SSIPlaceholderLogo;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue, PressableProps, ViewStyle } from 'react-native';
|
|
3
|
-
export interface Props extends Omit<PressableProps, 'disabled'> {
|
|
4
|
-
caption: string;
|
|
5
|
-
onPress: () => void;
|
|
6
|
-
disabled?: boolean | (() => boolean);
|
|
7
|
-
backgroundColors?: Array<string>;
|
|
8
|
-
captionColor?: ColorValue;
|
|
9
|
-
style?: ViewStyle;
|
|
10
|
-
}
|
|
11
|
-
declare const PrimaryButton: FC<Props>;
|
|
12
|
-
export default PrimaryButton;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { fontColors, gradientsColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
|
|
3
|
-
import { SSITouchableOpacityButtonFlexRowStyled as Button, SSITextH2LightStyled as ButtonCaption, SSIRoundedCenteredLinearGradientStyled as LinearGradient, } from '../../../styles';
|
|
4
|
-
const PrimaryButton = (props) => {
|
|
5
|
-
const { captionColor = fontColors.light, backgroundColors = [gradientsColors['100'].secondaryColor, gradientsColors['100'].primaryColor], onPress, style, caption, } = props;
|
|
6
|
-
const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
|
|
7
|
-
if (backgroundColors.length === 1) {
|
|
8
|
-
backgroundColors.push(backgroundColors[0]);
|
|
9
|
-
}
|
|
10
|
-
return (<Button onPress={onPress} disabled={disabled} activeOpacity={OpacityStyleEnum.DISABLED} style={{
|
|
11
|
-
...(disabled && { opacity: OpacityStyleEnum.DISABLED }),
|
|
12
|
-
}}>
|
|
13
|
-
<LinearGradient style={{ ...style }} colors={backgroundColors}>
|
|
14
|
-
<ButtonCaption style={{ color: captionColor }}>{caption}</ButtonCaption>
|
|
15
|
-
</LinearGradient>
|
|
16
|
-
</Button>);
|
|
17
|
-
};
|
|
18
|
-
export default PrimaryButton;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue, PressableProps, ViewStyle } from 'react-native';
|
|
3
|
-
export interface Props extends Omit<PressableProps, 'disabled'> {
|
|
4
|
-
caption: string;
|
|
5
|
-
onPress: () => void;
|
|
6
|
-
disabled?: boolean | (() => boolean);
|
|
7
|
-
borderColors?: Array<string>;
|
|
8
|
-
captionColor?: ColorValue;
|
|
9
|
-
style?: ViewStyle;
|
|
10
|
-
}
|
|
11
|
-
declare const SecondaryButton: FC<Props>;
|
|
12
|
-
export default SecondaryButton;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import MaskedView from '@react-native-masked-view/masked-view';
|
|
3
|
-
import { fontColors, gradientsColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
|
|
4
|
-
import { SSITouchableOpacityButtonFlexRowStyled as Button, SSITextH2SecondaryButtonStyled as ButtonCaption, SecondaryButtonLinearGradientStyled as LinearGradient, SecondaryButtonMaskContainerStyled as MaskContainer, } from '../../../styles';
|
|
5
|
-
const SecondaryButton = (props) => {
|
|
6
|
-
const { caption, captionColor = fontColors.secondaryButton, borderColors = [gradientsColors['100'].secondaryColor, gradientsColors['100'].primaryColor], onPress, style, } = props;
|
|
7
|
-
const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
|
|
8
|
-
if (borderColors.length === 1) {
|
|
9
|
-
borderColors.push(borderColors[0]);
|
|
10
|
-
}
|
|
11
|
-
return (<Button onPress={onPress} disabled={disabled} activeOpacity={OpacityStyleEnum.DISABLED} style={{
|
|
12
|
-
...(disabled && { opacity: OpacityStyleEnum.DISABLED }),
|
|
13
|
-
}}>
|
|
14
|
-
<MaskedView maskElement={<MaskContainer>
|
|
15
|
-
<ButtonCaption>{caption}</ButtonCaption>
|
|
16
|
-
</MaskContainer>}>
|
|
17
|
-
<LinearGradient style={style} colors={borderColors}>
|
|
18
|
-
<ButtonCaption style={{ color: captionColor }}>{caption}</ButtonCaption>
|
|
19
|
-
</LinearGradient>
|
|
20
|
-
</MaskedView>
|
|
21
|
-
</Button>);
|
|
22
|
-
};
|
|
23
|
-
export default SecondaryButton;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
type Props = {
|
|
4
|
-
size?: number | 'small' | 'large';
|
|
5
|
-
color?: ColorValue;
|
|
6
|
-
style?: StyleProp<ViewStyle>;
|
|
7
|
-
};
|
|
8
|
-
declare const SSIActivityIndicator: FC<Props>;
|
|
9
|
-
export default SSIActivityIndicator;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActivityIndicator } from 'react-native';
|
|
3
|
-
import { elementColors } from '@sphereon/ui-components.core';
|
|
4
|
-
const SSIActivityIndicator = (props) => {
|
|
5
|
-
const { color = elementColors.blue, style, size = 80 } = props;
|
|
6
|
-
return <ActivityIndicator style={style} size={size} color={color}/>;
|
|
7
|
-
};
|
|
8
|
-
export default SSIActivityIndicator;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue, ViewStyle } from 'react-native';
|
|
3
|
-
import { LabelStatus } from '@sphereon/ui-components.core';
|
|
4
|
-
type Props = {
|
|
5
|
-
status: LabelStatus;
|
|
6
|
-
showIcon?: boolean;
|
|
7
|
-
color?: ColorValue;
|
|
8
|
-
style?: ViewStyle;
|
|
9
|
-
};
|
|
10
|
-
declare const SSIStatusLabel: FC<Props>;
|
|
11
|
-
export default SSIStatusLabel;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CredentialStatus, IssuerStatus, statusColors, getStatusTranslation } from '@sphereon/ui-components.core';
|
|
3
|
-
import SSICheckmarkBadge from '../../../components/assets/badges/SSICheckmarkBadge';
|
|
4
|
-
import SSIExclamationMarkBadge from '../../../components/assets/badges/SSIExclamationMarkBadge';
|
|
5
|
-
import { SSIStatusLabelBadgeContainer as BadgeContainer, SSIStatusLabelContainerStyled as Container, SSIStatusLabelStatusCaptionStyled as StatusCaption, } from '../../../styles';
|
|
6
|
-
const SSIStatusLabel = (props) => {
|
|
7
|
-
const { status, color = statusColors[status], style, showIcon = false } = props;
|
|
8
|
-
return (<Container style={[style, { borderColor: color }]}>
|
|
9
|
-
{showIcon && <BadgeContainer>{getStatusBadge(status, color)}</BadgeContainer>}
|
|
10
|
-
<StatusCaption style={{ color }}>{getStatusTranslation(status)}</StatusCaption>
|
|
11
|
-
</Container>);
|
|
12
|
-
};
|
|
13
|
-
const getStatusBadge = (status, backgroundColor) => {
|
|
14
|
-
switch (status) {
|
|
15
|
-
case IssuerStatus.VERIFIED:
|
|
16
|
-
return <SSICheckmarkBadge backgroundColor={backgroundColor}/>;
|
|
17
|
-
case IssuerStatus.UNVERIFIED:
|
|
18
|
-
return <SSIExclamationMarkBadge backgroundColor={backgroundColor}/>;
|
|
19
|
-
case CredentialStatus.VALID:
|
|
20
|
-
return <SSICheckmarkBadge backgroundColor={backgroundColor}/>;
|
|
21
|
-
case CredentialStatus.EXPIRED:
|
|
22
|
-
return <SSIExclamationMarkBadge backgroundColor={backgroundColor}/>;
|
|
23
|
-
case CredentialStatus.REVOKED:
|
|
24
|
-
throw new Error(`${status} not yet implemented`);
|
|
25
|
-
default:
|
|
26
|
-
throw new Error(`${status} not supported`);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
export default SSIStatusLabel;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue } from 'react-native';
|
|
3
|
-
import { CredentialStatus, ImageAttributes } from '@sphereon/ui-components.core';
|
|
4
|
-
type CardProperty = {
|
|
5
|
-
name: string;
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
type CardHeader = {
|
|
9
|
-
credentialTitle?: string;
|
|
10
|
-
credentialSubtitle?: string;
|
|
11
|
-
logo?: ImageAttributes;
|
|
12
|
-
};
|
|
13
|
-
type CardBody = {
|
|
14
|
-
issuerName?: string;
|
|
15
|
-
properties?: Array<CardProperty>;
|
|
16
|
-
};
|
|
17
|
-
type CardFooter = {
|
|
18
|
-
expirationDate?: number;
|
|
19
|
-
credentialStatus?: CredentialStatus;
|
|
20
|
-
};
|
|
21
|
-
type CardDisplay = {
|
|
22
|
-
backgroundColor?: ColorValue;
|
|
23
|
-
backgroundImage?: ImageAttributes;
|
|
24
|
-
textColor?: ColorValue;
|
|
25
|
-
};
|
|
26
|
-
type Props = {
|
|
27
|
-
header?: CardHeader;
|
|
28
|
-
body?: CardBody;
|
|
29
|
-
footer?: CardFooter;
|
|
30
|
-
display?: CardDisplay;
|
|
31
|
-
};
|
|
32
|
-
declare const SSICredentialCardView: FC<Props>;
|
|
33
|
-
export default SSICredentialCardView;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { backgroundColors, credentialCardColors, Localization, toLocalDateString, } from '@sphereon/ui-components.core';
|
|
4
|
-
import SSILogo from '../../assets/logos/SSILogo';
|
|
5
|
-
import SSIStatusLabel from '../../labels/SSIStatusLabel';
|
|
6
|
-
import { SSIAlphaContainerStyled as AlphaContainer, SSICredentialCardViewBackgroundImageStyled as BackgroundImage, SSIBlurredContainerStyled as BlurredView, SSICredentialCardViewContainerStyled as Container, SSICredentialCardViewContentMainContainerStyled as ContentMainContainer, SSICredentialCardViewContentSubContainerStyled as ContentSubContainer, SSICredentialCardViewStatusContainerStyled as StatusContainer, SSICredentialCardViewCredentialSubtitleTextStyled as CredentialSubtitleText, SSICredentialCardViewCredentialTitleTextStyled as CredentialTitleText, SSITextH5LightStyled as ExpirationDateText, SSICredentialCardViewFooterContainerStyled as FooterContainer, SSICredentialCardViewFooterContentContainerStyled as FooterContentContainer, SSITextH4LightStyled as H4Text, SSICredentialCardViewHeaderContainerStyled as HeaderContainer, SSICredentialCardViewContentIssueNameContainerStyled as IssueNameContainer, SSICredentialCardViewHeaderLogoContainerStyled as LogoContainer, SSICredentialCardViewContentPropertiesContainerStyled as PropertiesContainer, SSITextH6LightStyled as PropertyValueText, SSICredentialCardViewHeaderTitleContainerStyled as TitleContainer, } from '../../../styles';
|
|
7
|
-
const SSICredentialCardView = (props) => {
|
|
8
|
-
const { header, body, footer } = props;
|
|
9
|
-
const { credentialTitle, credentialSubtitle, logo } = props.header ?? {};
|
|
10
|
-
const { issuerName, properties } = props.body ?? {};
|
|
11
|
-
const { credentialStatus, expirationDate } = props.footer ?? {};
|
|
12
|
-
const { backgroundColor = credentialCardColors.default, backgroundImage, textColor = backgroundColors.primaryLight } = props.display ?? {};
|
|
13
|
-
const getPropertyElementsFrom = (properties) => {
|
|
14
|
-
return properties.slice(0, 2).map((property, index) => (<View key={index} style={{
|
|
15
|
-
...(properties.length > 1 && { width: 140 }),
|
|
16
|
-
...(index > 0 && { marginLeft: 10 }),
|
|
17
|
-
}}>
|
|
18
|
-
<H4Text style={{ color: textColor }}>{property.name}</H4Text>
|
|
19
|
-
<PropertyValueText style={{ color: textColor }}>{property.value}</PropertyValueText>
|
|
20
|
-
</View>));
|
|
21
|
-
};
|
|
22
|
-
return (<Container style={{ backgroundColor }}>
|
|
23
|
-
<BackgroundImage source={backgroundImage}>
|
|
24
|
-
<AlphaContainer>
|
|
25
|
-
{header && (<HeaderContainer>
|
|
26
|
-
{(!backgroundImage || logo) && (<LogoContainer>
|
|
27
|
-
<SSILogo logo={logo} color={textColor}/>
|
|
28
|
-
</LogoContainer>)}
|
|
29
|
-
{credentialTitle && (<TitleContainer>
|
|
30
|
-
<CredentialTitleText style={{ color: textColor }} numberOfLines={2}>
|
|
31
|
-
{credentialTitle}
|
|
32
|
-
</CredentialTitleText>
|
|
33
|
-
{credentialSubtitle && <CredentialSubtitleText style={{ color: textColor }}>{credentialSubtitle}</CredentialSubtitleText>}
|
|
34
|
-
</TitleContainer>)}
|
|
35
|
-
</HeaderContainer>)}
|
|
36
|
-
{body && (<ContentMainContainer>
|
|
37
|
-
<ContentSubContainer>
|
|
38
|
-
{issuerName && (<IssueNameContainer>
|
|
39
|
-
<H4Text style={{ color: textColor }}>{issuerName}</H4Text>
|
|
40
|
-
</IssueNameContainer>)}
|
|
41
|
-
{properties && <PropertiesContainer>{getPropertyElementsFrom(properties)}</PropertiesContainer>}
|
|
42
|
-
</ContentSubContainer>
|
|
43
|
-
</ContentMainContainer>)}
|
|
44
|
-
{footer && (<FooterContainer>
|
|
45
|
-
<BlurredView>
|
|
46
|
-
<FooterContentContainer>
|
|
47
|
-
<ExpirationDateText style={{ color: textColor }}>
|
|
48
|
-
{expirationDate
|
|
49
|
-
? `${Localization.translate('credential_card_expires_message')} ${toLocalDateString(expirationDate)}`
|
|
50
|
-
: Localization.translate('credential_status_never_expires_date_label')}
|
|
51
|
-
</ExpirationDateText>
|
|
52
|
-
{credentialStatus && (<StatusContainer>{credentialStatus && <SSIStatusLabel status={credentialStatus} color={textColor}/>}</StatusContainer>)}
|
|
53
|
-
</FooterContentContainer>
|
|
54
|
-
</BlurredView>
|
|
55
|
-
</FooterContainer>)}
|
|
56
|
-
</AlphaContainer>
|
|
57
|
-
</BackgroundImage>
|
|
58
|
-
</Container>);
|
|
59
|
-
};
|
|
60
|
-
export default SSICredentialCardView;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ColorValue, ViewStyle } from 'react-native';
|
|
3
|
-
import { ImageAttributes } from '@sphereon/ui-components.core';
|
|
4
|
-
type Props = {
|
|
5
|
-
backgroundImage?: ImageAttributes;
|
|
6
|
-
backgroundColor?: ColorValue;
|
|
7
|
-
logo?: ImageAttributes;
|
|
8
|
-
logoColor?: ColorValue;
|
|
9
|
-
style?: ViewStyle;
|
|
10
|
-
};
|
|
11
|
-
declare const SSICredentialMiniCardView: FC<Props>;
|
|
12
|
-
export default SSICredentialMiniCardView;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { credentialCardColors } from '@sphereon/ui-components.core';
|
|
3
|
-
import SSILogo from '../../assets/logos/SSILogo';
|
|
4
|
-
import { SSICredentialMiniCardViewBackgroundImageStyled as BackgroundImage, SSICredentialMiniCardViewContainerStyled as Container, } from '../../../styles';
|
|
5
|
-
const SSICredentialMiniCardView = (props) => {
|
|
6
|
-
const { backgroundColor = credentialCardColors.default, backgroundImage, logo, logoColor, style } = props;
|
|
7
|
-
return (<Container style={[style, { backgroundColor }]}>
|
|
8
|
-
<BackgroundImage source={backgroundImage}>{(!backgroundImage || logo) && <SSILogo logo={logo} color={logoColor}/>}</BackgroundImage>
|
|
9
|
-
</Container>);
|
|
10
|
-
};
|
|
11
|
-
export default SSICredentialMiniCardView;
|
package/dist/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
2
|
-
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
3
|
-
import SSICredentialMiniCardView from './components/views/SSICredentialMiniCardView';
|
|
4
|
-
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
5
|
-
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
|
-
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
7
|
-
import SSILogo from './components/assets/logos/SSILogo';
|
|
8
|
-
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
9
|
-
import PrimaryButton from './components/buttons/PrimaryButton/index';
|
|
10
|
-
import SecondaryButton from './components/buttons/SecondaryButton/index';
|
|
11
|
-
export * from './styles/fonts';
|
|
12
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIActivityIndicator, PrimaryButton, SecondaryButton, };
|
package/dist/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
2
|
-
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
3
|
-
import SSICredentialMiniCardView from './components/views/SSICredentialMiniCardView';
|
|
4
|
-
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
5
|
-
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
|
-
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
7
|
-
import SSILogo from './components/assets/logos/SSILogo';
|
|
8
|
-
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
9
|
-
import PrimaryButton from './components/buttons/PrimaryButton/index';
|
|
10
|
-
import SecondaryButton from './components/buttons/SecondaryButton/index';
|
|
11
|
-
export * from './styles/fonts';
|
|
12
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIActivityIndicator, PrimaryButton, SecondaryButton, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
export declare const SSITouchableOpacityButtonFlexRowStyled: import("styled-components").StyledComponent<typeof TouchableOpacity, any, {}, never>;
|
|
3
|
-
export declare const SSIRoundedCenteredLinearGradientStyled: import("styled-components").StyledComponent<typeof import("expo-linear-gradient").LinearGradient, any, {
|
|
4
|
-
colors: string[];
|
|
5
|
-
start: {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
};
|
|
9
|
-
end: {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
};
|
|
13
|
-
}, "end" | "start" | "colors">;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
import styled from 'styled-components/native';
|
|
3
|
-
import { SSIRoundedLinearGradient } from '../../gradients';
|
|
4
|
-
export const SSITouchableOpacityButtonFlexRowStyled = styled(TouchableOpacity) `
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
`;
|
|
7
|
-
export const SSIRoundedCenteredLinearGradientStyled = styled(SSIRoundedLinearGradient) `
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="styled-components-react-native" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
export declare const SSICredentialCardViewContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, any, {}, never>;
|
|
4
|
-
export declare const SSICredentialCardViewHeaderContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, any, {}, never>;
|
|
5
|
-
export declare const SSICredentialCardViewHeaderLogoContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const SSICredentialCardViewHeaderTitleContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const SSICredentialCardViewContentMainContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const SSICredentialCardViewContentSubContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
export declare const SSICredentialCardViewContentIssueNameContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
export declare const SSICredentialCardViewContentPropertiesContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, any, {}, never>;
|
|
11
|
-
export declare const SSICredentialCardViewFooterContentContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, any, {}, never>;
|
|
12
|
-
export declare const SSICredentialCardViewFooterContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export declare const SSICredentialCardViewCredentialTitleTextStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").Text, any, {}, never>;
|
|
14
|
-
export declare const SSICredentialCardViewCredentialSubtitleTextStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").Text, any, {}, never>;
|
|
15
|
-
export declare const SSICredentialCardViewStatusContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const SSICredentialCardViewBackgroundImageStyled: import("styled-components").StyledComponent<import("react").ComponentType<import("react-native-fast-image").FastImageProps> & import("react-native-fast-image").FastImageStaticProperties, any, {
|
|
17
|
-
resizeMode: "cover";
|
|
18
|
-
}, "resizeMode">;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components/native';
|
|
2
|
-
import FastImage from 'react-native-fast-image';
|
|
3
|
-
import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
|
|
4
|
-
import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../../fonts';
|
|
5
|
-
export const SSICredentialCardViewContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
6
|
-
width: 327px;
|
|
7
|
-
height: 186px;
|
|
8
|
-
`;
|
|
9
|
-
export const SSICredentialCardViewHeaderContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
10
|
-
height: 32px;
|
|
11
|
-
margin-top: 16px;
|
|
12
|
-
`;
|
|
13
|
-
export const SSICredentialCardViewHeaderLogoContainerStyled = styled.View `
|
|
14
|
-
margin: 0 12px 0 9px;
|
|
15
|
-
`;
|
|
16
|
-
export const SSICredentialCardViewHeaderTitleContainerStyled = styled.View `
|
|
17
|
-
flex: 1;
|
|
18
|
-
margin: 0 13px 0 auto;
|
|
19
|
-
`;
|
|
20
|
-
export const SSICredentialCardViewContentMainContainerStyled = styled.View `
|
|
21
|
-
flex: 1;
|
|
22
|
-
`;
|
|
23
|
-
export const SSICredentialCardViewContentSubContainerStyled = styled.View `
|
|
24
|
-
margin-top: auto;
|
|
25
|
-
`;
|
|
26
|
-
export const SSICredentialCardViewContentIssueNameContainerStyled = styled.View `
|
|
27
|
-
padding: 2px 9px 2px 12px;
|
|
28
|
-
`;
|
|
29
|
-
export const SSICredentialCardViewContentPropertiesContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
30
|
-
justify-content: flex-start;
|
|
31
|
-
margin: 1px 0;
|
|
32
|
-
padding: 2px 9px 4px 12px;
|
|
33
|
-
`;
|
|
34
|
-
export const SSICredentialCardViewFooterContentContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
35
|
-
padding: 11px 12px;
|
|
36
|
-
background-color: transparent;
|
|
37
|
-
`;
|
|
38
|
-
export const SSICredentialCardViewFooterContainerStyled = styled.View `
|
|
39
|
-
height: 39px;
|
|
40
|
-
margin-top: auto;
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
`;
|
|
43
|
-
export const SSICredentialCardViewCredentialTitleTextStyled = styled(SSITextH4SemiBoldLightStyled) `
|
|
44
|
-
flex: 1;
|
|
45
|
-
text-align: right;
|
|
46
|
-
`;
|
|
47
|
-
export const SSICredentialCardViewCredentialSubtitleTextStyled = styled(SSITextH5LightStyled) `
|
|
48
|
-
text-align: right;
|
|
49
|
-
`;
|
|
50
|
-
export const SSICredentialCardViewStatusContainerStyled = styled.View `
|
|
51
|
-
margin-left: auto;
|
|
52
|
-
`;
|
|
53
|
-
export const SSICredentialCardViewBackgroundImageStyled = styled(FastImage).attrs({
|
|
54
|
-
resizeMode: 'cover',
|
|
55
|
-
}) `
|
|
56
|
-
flex: 1;
|
|
57
|
-
`;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="styled-components-react-native" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
export declare const SSICredentialMiniCardViewContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const SSICredentialMiniCardViewBackgroundImageStyled: import("styled-components").StyledComponent<import("react").ComponentType<import("react-native-fast-image").FastImageProps> & import("react-native-fast-image").FastImageStaticProperties, any, {
|
|
5
|
-
resizeMode: "cover";
|
|
6
|
-
}, "resizeMode">;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components/native';
|
|
2
|
-
import FastImage from 'react-native-fast-image';
|
|
3
|
-
export const SSICredentialMiniCardViewContainerStyled = styled.View `
|
|
4
|
-
width: 75px;
|
|
5
|
-
height: 50px;
|
|
6
|
-
border-radius: 4.6px;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
`;
|
|
9
|
-
export const SSICredentialMiniCardViewBackgroundImageStyled = styled(FastImage).attrs({
|
|
10
|
-
resizeMode: 'cover',
|
|
11
|
-
}) `
|
|
12
|
-
flex: 1;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
`;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="styled-components-react-native" />
|
|
2
|
-
export declare const SSIStatusLabelContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, any, {}, never>;
|
|
3
|
-
export declare const SSIStatusLabelStatusCaptionStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").Text, any, {}, never>;
|
|
4
|
-
export declare const SSIStatusLabelBadgeContainer: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components/native';
|
|
2
|
-
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
-
import { SSITextH5LightStyled } from '../../../fonts';
|
|
4
|
-
export const SSIStatusLabelContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
|
-
border-radius: 9px;
|
|
6
|
-
border-width: 1px;
|
|
7
|
-
/*
|
|
8
|
-
React-Native does not have a width: fit-content property to fix this like in the web version,
|
|
9
|
-
so we need to set align-self to something other than stretch to make the container fit the content
|
|
10
|
-
when the parent has a flex-grow: 1 CSS property set
|
|
11
|
-
*/
|
|
12
|
-
align-self: baseline;
|
|
13
|
-
`;
|
|
14
|
-
export const SSIStatusLabelStatusCaptionStyled = styled(SSITextH5LightStyled) `
|
|
15
|
-
margin-left: 7px;
|
|
16
|
-
margin-right: 7px;
|
|
17
|
-
`;
|
|
18
|
-
export const SSIStatusLabelBadgeContainer = styled.View `
|
|
19
|
-
margin-top: auto;
|
|
20
|
-
margin-bottom: auto;
|
|
21
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="styled-components-react-native" />
|
|
2
|
-
export declare const SecondaryButtonMaskContainerStyled: import("styled-components").StyledComponent<typeof import("react-native/types/index").View, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const SecondaryButtonLinearGradientStyled: import("styled-components").StyledComponent<typeof import("expo-linear-gradient").LinearGradient, any, {
|
|
4
|
-
colors: string[];
|
|
5
|
-
start: {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
};
|
|
9
|
-
end: {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
};
|
|
13
|
-
}, "end" | "start" | "colors">;
|