@sphereon/ui-components.ssi-react-native 0.1.3-next.16 → 0.1.3-next.161

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.
Files changed (30) hide show
  1. package/dist/components/buttons/PrimaryButton/index.d.ts +12 -0
  2. package/dist/components/buttons/PrimaryButton/index.js +18 -0
  3. package/dist/components/buttons/SecondaryButton/index.d.ts +12 -0
  4. package/dist/components/buttons/SecondaryButton/index.js +23 -0
  5. package/dist/components/indicators/SSIActivityIndicator/index.d.ts +9 -0
  6. package/dist/components/indicators/SSIActivityIndicator/index.js +8 -0
  7. package/dist/components/labels/SSIStatusLabel/index.js +1 -1
  8. package/dist/components/views/SSICredentialCardView/index.js +7 -10
  9. package/dist/components/views/SSICredentialMiniCardView/index.js +3 -6
  10. package/dist/index.d.ts +5 -1
  11. package/dist/index.js +5 -1
  12. package/dist/styles/components/buttons/index.d.ts +13 -0
  13. package/dist/styles/components/buttons/index.js +10 -0
  14. package/dist/styles/components/components/SSICredentialCardView/index.js +1 -1
  15. package/dist/styles/components/components/SSICredentialMiniCardView/index.js +1 -1
  16. package/dist/styles/components/components/SSIStatusLabel/index.js +7 -1
  17. package/dist/styles/components/components/SecondaryButton/index.d.ts +13 -0
  18. package/dist/styles/components/components/SecondaryButton/index.js +14 -0
  19. package/dist/styles/components/components/index.d.ts +1 -0
  20. package/dist/styles/components/components/index.js +1 -0
  21. package/dist/styles/components/index.d.ts +1 -1
  22. package/dist/styles/components/index.js +1 -1
  23. package/dist/styles/{components/fonts → fonts}/index.d.ts +4 -0
  24. package/dist/styles/{components/fonts → fonts}/index.js +21 -1
  25. package/dist/styles/gradients/index.d.ts +23 -0
  26. package/dist/styles/gradients/index.js +11 -0
  27. package/dist/styles/index.d.ts +4 -0
  28. package/dist/styles/index.js +4 -0
  29. package/dist/styles/typography.js +13 -0
  30. package/package.json +5 -3
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,23 @@
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;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,8 @@
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,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { CredentialStatus, IssuerStatus, statusColors, getStatusTranslation } from '@sphereon/ui-components.core';
3
- import { SSIStatusLabelBadgeContainer as BadgeContainer, SSIStatusLabelContainerStyled as Container, SSIStatusLabelStatusCaptionStyled as StatusCaption, } from '../../../styles/components';
4
3
  import SSICheckmarkBadge from '../../../components/assets/badges/SSICheckmarkBadge';
5
4
  import SSIExclamationMarkBadge from '../../../components/assets/badges/SSIExclamationMarkBadge';
5
+ import { SSIStatusLabelBadgeContainer as BadgeContainer, SSIStatusLabelContainerStyled as Container, SSIStatusLabelStatusCaptionStyled as StatusCaption, } from '../../../styles';
6
6
  const SSIStatusLabel = (props) => {
7
7
  const { status, color = statusColors[status], style, showIcon = false } = props;
8
8
  return (<Container style={[style, { borderColor: color }]}>
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
- import { backgroundColors, credentialCardColors, Localization, toLocalDateString } from '@sphereon/ui-components.core';
3
+ import { backgroundColors, credentialCardColors, Localization, toLocalDateString, } from '@sphereon/ui-components.core';
4
4
  import SSILogo from '../../assets/logos/SSILogo';
5
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/components';
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
7
  const SSICredentialCardView = (props) => {
8
8
  const { header, body, footer } = props;
9
9
  const { credentialTitle, credentialSubtitle, logo } = props.header ?? {};
10
10
  const { issuerName, properties } = props.body ?? {};
11
11
  const { credentialStatus, expirationDate } = props.footer ?? {};
12
- const { backgroundColor = credentialCardColors.default, backgroundImage, textColor = backgroundColors.primaryLight, } = props.display ?? {};
12
+ const { backgroundColor = credentialCardColors.default, backgroundImage, textColor = backgroundColors.primaryLight } = props.display ?? {};
13
13
  const getPropertyElementsFrom = (properties) => {
14
14
  return properties.slice(0, 2).map((property, index) => (<View key={index} style={{
15
15
  ...(properties.length > 1 && { width: 140 }),
@@ -23,10 +23,9 @@ const SSICredentialCardView = (props) => {
23
23
  <BackgroundImage source={backgroundImage}>
24
24
  <AlphaContainer>
25
25
  {header && (<HeaderContainer>
26
- {(!backgroundImage || logo) &&
27
- <LogoContainer>
28
- <SSILogo logo={logo} color={textColor}/>
29
- </LogoContainer>}
26
+ {(!backgroundImage || logo) && (<LogoContainer>
27
+ <SSILogo logo={logo} color={textColor}/>
28
+ </LogoContainer>)}
30
29
  {credentialTitle && (<TitleContainer>
31
30
  <CredentialTitleText style={{ color: textColor }} numberOfLines={2}>
32
31
  {credentialTitle}
@@ -50,9 +49,7 @@ const SSICredentialCardView = (props) => {
50
49
  ? `${Localization.translate('credential_card_expires_message')} ${toLocalDateString(expirationDate)}`
51
50
  : Localization.translate('credential_status_never_expires_date_label')}
52
51
  </ExpirationDateText>
53
- {credentialStatus && (<StatusContainer>
54
- {credentialStatus && <SSIStatusLabel status={credentialStatus} color={textColor}/>}
55
- </StatusContainer>)}
52
+ {credentialStatus && (<StatusContainer>{credentialStatus && <SSIStatusLabel status={credentialStatus} color={textColor}/>}</StatusContainer>)}
56
53
  </FooterContentContainer>
57
54
  </BlurredView>
58
55
  </FooterContainer>)}
@@ -1,14 +1,11 @@
1
1
  import React from 'react';
2
2
  import { credentialCardColors } from '@sphereon/ui-components.core';
3
3
  import SSILogo from '../../assets/logos/SSILogo';
4
- import { SSICredentialMiniCardViewBackgroundImageStyled as BackgroundImage, SSICredentialMiniCardViewContainerStyled as Container, } from '../../../styles/components';
4
+ import { SSICredentialMiniCardViewBackgroundImageStyled as BackgroundImage, SSICredentialMiniCardViewContainerStyled as Container, } from '../../../styles';
5
5
  const SSICredentialMiniCardView = (props) => {
6
6
  const { backgroundColor = credentialCardColors.default, backgroundImage, logo, logoColor, style } = props;
7
7
  return (<Container style={[style, { backgroundColor }]}>
8
- <BackgroundImage source={backgroundImage}>
9
- {(!backgroundImage || logo) &&
10
- <SSILogo logo={logo} color={logoColor}/>}
11
- </BackgroundImage>
12
- </Container>);
8
+ <BackgroundImage source={backgroundImage}>{(!backgroundImage || logo) && <SSILogo logo={logo} color={logoColor}/>}</BackgroundImage>
9
+ </Container>);
13
10
  };
14
11
  export default SSICredentialMiniCardView;
package/dist/index.d.ts CHANGED
@@ -5,4 +5,8 @@ import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
5
5
  import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
6
6
  import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
7
7
  import SSILogo from './components/assets/logos/SSILogo';
8
- export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, 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 CHANGED
@@ -5,4 +5,8 @@ import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
5
5
  import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
6
6
  import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
7
7
  import SSILogo from './components/assets/logos/SSILogo';
8
- export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, 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, };
@@ -0,0 +1,13 @@
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">;
@@ -0,0 +1,10 @@
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,7 +1,7 @@
1
1
  import styled from 'styled-components/native';
2
2
  import FastImage from 'react-native-fast-image';
3
3
  import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
4
- import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../fonts';
4
+ import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../../fonts';
5
5
  export const SSICredentialCardViewContainerStyled = styled(SSIRoundedContainerStyled) `
6
6
  width: 327px;
7
7
  height: 186px;
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components/native';
2
- import FastImage from "react-native-fast-image";
2
+ import FastImage from 'react-native-fast-image';
3
3
  export const SSICredentialMiniCardViewContainerStyled = styled.View `
4
4
  width: 75px;
5
5
  height: 50px;
@@ -1,9 +1,15 @@
1
1
  import styled from 'styled-components/native';
2
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
3
- import { SSITextH5LightStyled } from '../../fonts';
3
+ import { SSITextH5LightStyled } from '../../../fonts';
4
4
  export const SSIStatusLabelContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
5
5
  border-radius: 9px;
6
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;
7
13
  `;
8
14
  export const SSIStatusLabelStatusCaptionStyled = styled(SSITextH5LightStyled) `
9
15
  margin-left: 7px;
@@ -0,0 +1,13 @@
1
+ /// <reference types="styled-components-react-native" />
2
+ export declare const SecondaryButtonMaskContainerStyled: import("styled-components").StyledComponent<typeof import("react-native").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">;
@@ -0,0 +1,14 @@
1
+ import styled from 'styled-components/native';
2
+ import { SSILinearGradientStyled } from '../../../gradients';
3
+ export const SecondaryButtonMaskContainerStyled = styled.View `
4
+ background-color: transparent;
5
+ flex: 1;
6
+ border-width: 1px;
7
+ border-radius: 8px;
8
+ align-items: center;
9
+ justify-content: center;
10
+ `;
11
+ export const SecondaryButtonLinearGradientStyled = styled(SSILinearGradientStyled) `
12
+ align-items: center;
13
+ justify-content: center;
14
+ `;
@@ -1,3 +1,4 @@
1
1
  export * from './SSICredentialCardView';
2
2
  export * from './SSICredentialMiniCardView';
3
3
  export * from './SSIStatusLabel';
4
+ export * from './SecondaryButton';
@@ -1,3 +1,4 @@
1
1
  export * from './SSICredentialCardView';
2
2
  export * from './SSICredentialMiniCardView';
3
3
  export * from './SSIStatusLabel';
4
+ export * from './SecondaryButton';
@@ -1,3 +1,3 @@
1
1
  export * from './containers';
2
2
  export * from './components';
3
- export * from './fonts';
3
+ export * from './buttons';
@@ -1,3 +1,3 @@
1
1
  export * from './containers';
2
2
  export * from './components';
3
- export * from './fonts';
3
+ export * from './buttons';
@@ -1,4 +1,7 @@
1
1
  /// <reference types="styled-components-react-native" />
2
+ export declare const SSITextH2Styled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const SSITextH2LightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
4
+ export declare const SSITextH2SecondaryButtonStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
2
5
  export declare const SSITextH4Styled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
3
6
  export declare const SSITextH4SemiBoldStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
4
7
  export declare const SSITextH4LightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
@@ -7,3 +10,4 @@ export declare const SSITextH5Styled: import("styled-components").StyledComponen
7
10
  export declare const SSITextH5LightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
8
11
  export declare const SSITextH6Styled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
9
12
  export declare const SSITextH6LightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
13
+ export declare const Text64Styled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
@@ -1,6 +1,19 @@
1
1
  import styled from 'styled-components/native';
2
2
  import { fontColors } from '@sphereon/ui-components.core';
3
- import { fontStyle } from '../../typography';
3
+ import { fontStyle } from '../typography';
4
+ export const SSITextH2Styled = styled.Text `
5
+ font-family: ${fontStyle.h2Regular.fontFamily};
6
+ font-size: ${fontStyle.h2Regular.fontSize}px;
7
+ font-weight: ${fontStyle.h2Regular.fontWeight};
8
+ line-height: ${fontStyle.h2Regular.lineHeight}px;
9
+ height: auto;
10
+ `;
11
+ export const SSITextH2LightStyled = styled(SSITextH2Styled) `
12
+ color: ${fontColors.light};
13
+ `;
14
+ export const SSITextH2SecondaryButtonStyled = styled(SSITextH2Styled) `
15
+ color: ${fontColors.secondaryButton};
16
+ `;
4
17
  export const SSITextH4Styled = styled.Text `
5
18
  font-family: ${fontStyle.h4Regular.fontFamily};
6
19
  font-size: ${fontStyle.h4Regular.fontSize}px;
@@ -41,3 +54,10 @@ export const SSITextH6Styled = styled.Text `
41
54
  export const SSITextH6LightStyled = styled(SSITextH6Styled) `
42
55
  color: ${fontColors.light};
43
56
  `;
57
+ export const Text64Styled = styled.Text `
58
+ font-family: ${fontStyle.Regular64.fontFamily};
59
+ font-size: ${fontStyle.Regular64.fontSize}px;
60
+ font-weight: ${fontStyle.Regular64.fontWeight};
61
+ line-height: ${fontStyle.Regular64.lineHeight}px;
62
+ height: auto;
63
+ `;
@@ -0,0 +1,23 @@
1
+ import { LinearGradient } from 'expo-linear-gradient';
2
+ export declare const SSILinearGradientStyled: import("styled-components").StyledComponent<typeof LinearGradient, any, {
3
+ colors: string[];
4
+ start: {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ end: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ }, "end" | "start" | "colors">;
13
+ export declare const SSIRoundedLinearGradient: import("styled-components").StyledComponent<typeof LinearGradient, any, {
14
+ colors: string[];
15
+ start: {
16
+ x: number;
17
+ y: number;
18
+ };
19
+ end: {
20
+ x: number;
21
+ y: number;
22
+ };
23
+ }, "end" | "start" | "colors">;
@@ -0,0 +1,11 @@
1
+ import { LinearGradient } from 'expo-linear-gradient';
2
+ import styled from 'styled-components/native';
3
+ import { gradientsColors, SSIRoundedEdgesCss } from '@sphereon/ui-components.core';
4
+ export const SSILinearGradientStyled = styled(LinearGradient).attrs(props => ({
5
+ colors: props?.colors ?? [gradientsColors['100'].secondaryColor, gradientsColors['100'].primaryColor],
6
+ start: { x: 1, y: 1 },
7
+ end: { x: 0, y: 0 },
8
+ })) ``;
9
+ export const SSIRoundedLinearGradient = styled(SSILinearGradientStyled) `
10
+ ${SSIRoundedEdgesCss}
11
+ `;
@@ -0,0 +1,4 @@
1
+ export * from './typography';
2
+ export * from './components';
3
+ export * from './gradients';
4
+ export * from './fonts';
@@ -0,0 +1,4 @@
1
+ export * from './typography';
2
+ export * from './components';
3
+ export * from './gradients';
4
+ export * from './fonts';
@@ -9,6 +9,7 @@ export const fontSize = {
9
9
  600: moderateScale(fontSizes['600']),
10
10
  700: moderateScale(fontSizes['700']),
11
11
  800: moderateScale(fontSizes['800']),
12
+ 64: moderateScale(fontSizes['64']),
12
13
  };
13
14
  export const fontStyle = {
14
15
  h0SemiBold: {
@@ -83,10 +84,22 @@ export const fontStyle = {
83
84
  fontWeight: fontWeight[400],
84
85
  lineHeight: lineHeight[100],
85
86
  },
87
+ h7Regular: {
88
+ fontFamily: 'Poppins',
89
+ fontSize: fontSize[400],
90
+ fontWeight: fontWeight[400],
91
+ lineHeight: lineHeight[400],
92
+ },
86
93
  h7SemiBold: {
87
94
  fontFamily: 'Poppins-SemiBold',
88
95
  fontSize: fontSize[400],
89
96
  fontWeight: fontWeight[600],
90
97
  lineHeight: lineHeight[400],
91
98
  },
99
+ Regular64: {
100
+ fontFamily: 'Poppins',
101
+ fontSize: fontSize[64],
102
+ fontWeight: fontWeight[600],
103
+ lineHeight: lineHeight[64],
104
+ },
92
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.1.3-next.16+40041e4",
4
+ "version": "0.1.3-next.161+017f20e",
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,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@react-native-community/blur": "^4.3.0",
32
- "@sphereon/ui-components.core": "0.1.3-next.16+40041e4",
32
+ "@react-native-masked-view/masked-view": "^0.3.1",
33
+ "@sphereon/ui-components.core": "0.1.3-next.161+017f20e",
34
+ "expo-linear-gradient": "~12.1.2",
33
35
  "react-native-fast-image": "^8.6.3",
34
36
  "react-native-size-matters": "^0.4.0",
35
37
  "react-native-svg": "13.4.0",
@@ -46,5 +48,5 @@
46
48
  "react": ">= 16.8.0",
47
49
  "react-native": ">= 0.64.0"
48
50
  },
49
- "gitHead": "40041e40ea53c6df6d736c79fb81e9f4792439af"
51
+ "gitHead": "017f20e9ee8bbab118ec9df50edeb5b1591b93aa"
50
52
  }