@sphereon/ui-components.ssi-react-native 0.1.3-unstable.15 → 0.1.3-unstable.23

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/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ 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 SSILoaderScreen from "./screens/SSILoaderScreen";
9
+ export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSILoaderScreen };
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ 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 SSILoaderScreen from "./screens/SSILoaderScreen";
9
+ export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSILoaderScreen };
@@ -0,0 +1,12 @@
1
+ import { NativeStackScreenProps } from '@react-navigation/native-stack';
2
+ import { PureComponent } from 'react';
3
+ import { NativeEventSubscription } from 'react-native';
4
+ import { ScreenRoutesEnum, StackParamList } from '../../types';
5
+ type Props = NativeStackScreenProps<StackParamList, ScreenRoutesEnum.LOADING>;
6
+ export default class SSILoaderScreen extends PureComponent<Props> {
7
+ hardwareBackPressListener: NativeEventSubscription;
8
+ componentDidMount: () => void;
9
+ componentWillUnmount: () => void;
10
+ render(): JSX.Element;
11
+ }
12
+ export {};
@@ -0,0 +1,21 @@
1
+ import { PureComponent } from 'react';
2
+ import { BackHandler } from 'react-native';
3
+ import { SSILoadingScreenActivityCaptionStyled as ActivityCaption, SSILoadingScreenActivityIndicatorStyled as ActivityIndicator, SSILoadingScreenActivityIndicatorContainerStyled as ActivityIndicatorContainer, SSIBasicHorizontalCenterContainerStyled as Container, } from '../../styles/components';
4
+ export default class SSILoaderScreen extends PureComponent {
5
+ hardwareBackPressListener;
6
+ componentDidMount = () => {
7
+ this.hardwareBackPressListener = BackHandler.addEventListener('hardwareBackPress', () => true);
8
+ };
9
+ componentWillUnmount = () => {
10
+ this.hardwareBackPressListener.remove();
11
+ };
12
+ render() {
13
+ const { message } = this.props.route.params;
14
+ return (<Container>
15
+ <ActivityIndicatorContainer>
16
+ <ActivityIndicator />
17
+ </ActivityIndicatorContainer>
18
+ <ActivityCaption>{message}</ActivityCaption>
19
+ </Container>);
20
+ }
21
+ }
@@ -7,3 +7,5 @@ export declare const SSIBlurredContainerStyled: import("styled-components").Styl
7
7
  }, "blurType" | "blurAmount">;
8
8
  export declare const SSIFlexDirectionRowViewStyled: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const SSIRoundedContainerStyled: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const SSIBasicContainerStyled: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const SSIBasicHorizontalCenterContainerStyled: import("styled-components").StyledComponent<typeof import("react-native").View, any, {}, never>;
@@ -1,6 +1,6 @@
1
1
  import { BlurView } from '@react-native-community/blur';
2
2
  import styled from 'styled-components/native';
3
- import { SSIRoundedEdgesCss } from '@sphereon/ui-components.core';
3
+ import { SSIBackgroundPrimaryDarkColorCss, SSIRoundedEdgesCss } from '@sphereon/ui-components.core';
4
4
  export const SSIAlphaContainerStyled = styled.View `
5
5
  flex: 1;
6
6
  background-color: rgba(0, 0, 0, 0.2);
@@ -19,3 +19,10 @@ export const SSIRoundedContainerStyled = styled.View `
19
19
  ${SSIRoundedEdgesCss};
20
20
  overflow: hidden;
21
21
  `;
22
+ export const SSIBasicContainerStyled = styled.View `
23
+ flex: 1;
24
+ ${SSIBackgroundPrimaryDarkColorCss};
25
+ `;
26
+ export const SSIBasicHorizontalCenterContainerStyled = styled(SSIBasicContainerStyled) `
27
+ align-items: center;
28
+ `;
@@ -7,3 +7,5 @@ export declare const SSITextH5Styled: import("styled-components").StyledComponen
7
7
  export declare const SSITextH5LightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
8
8
  export declare const SSITextH6Styled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const SSITextH6LightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
10
+ export declare const SSITextH2SemiBoldStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const SSITextH2SemiBoldLightStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
@@ -41,3 +41,13 @@ export const SSITextH6Styled = styled.Text `
41
41
  export const SSITextH6LightStyled = styled(SSITextH6Styled) `
42
42
  color: ${fontColors.light};
43
43
  `;
44
+ export const SSITextH2SemiBoldStyled = styled.Text `
45
+ font-family: ${fontStyle.h2SemiBold.fontFamily};
46
+ font-size: ${fontStyle.h2SemiBold.fontSize}px;
47
+ font-weight: ${fontStyle.h2SemiBold.fontWeight};
48
+ line-height: ${fontStyle.h2SemiBold.lineHeight}px;
49
+ height: auto;
50
+ `;
51
+ export const SSITextH2SemiBoldLightStyled = styled(SSITextH2SemiBoldStyled) `
52
+ color: ${fontColors.light};
53
+ `;
@@ -1,3 +1,4 @@
1
1
  export * from './containers';
2
2
  export * from './components';
3
3
  export * from './fonts';
4
+ export * from './screens';
@@ -1,3 +1,4 @@
1
1
  export * from './containers';
2
2
  export * from './components';
3
3
  export * from './fonts';
4
+ export * from './screens';
@@ -0,0 +1,8 @@
1
+ /// <reference types="styled-components-react-native" />
2
+ import { ActivityIndicator } from 'react-native';
3
+ export declare const SSILoadingScreenActivityIndicatorContainerStyled: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SSILoadingScreenActivityCaptionStyled: import("styled-components").StyledComponent<typeof import("react-native").Text, any, {}, never>;
5
+ export declare const SSILoadingScreenActivityIndicatorStyled: import("styled-components").StyledComponent<typeof ActivityIndicator, any, {
6
+ size: 80;
7
+ color: string;
8
+ }, "color" | "size">;
@@ -0,0 +1,14 @@
1
+ import { ActivityIndicator } from 'react-native';
2
+ import styled from 'styled-components/native';
3
+ import { elements } from '@sphereon/ui-components.core';
4
+ import { SSITextH2SemiBoldLightStyled } from '../../fonts';
5
+ export const SSILoadingScreenActivityIndicatorContainerStyled = styled.View `
6
+ margin-top: 282px;
7
+ `;
8
+ export const SSILoadingScreenActivityCaptionStyled = styled(SSITextH2SemiBoldLightStyled) `
9
+ margin-top: 69px;
10
+ `;
11
+ export const SSILoadingScreenActivityIndicatorStyled = styled(ActivityIndicator).attrs({
12
+ size: 80,
13
+ color: elements.blue
14
+ }) ``;
@@ -0,0 +1 @@
1
+ export * from './SSILoaderScreen';
@@ -0,0 +1 @@
1
+ export * from './SSILoaderScreen';
@@ -0,0 +1 @@
1
+ export * from './navigation';
@@ -0,0 +1 @@
1
+ export * from './navigation';
@@ -0,0 +1,9 @@
1
+ export type StackParamList = {
2
+ Loading: ILoadingProps;
3
+ };
4
+ export interface ILoadingProps {
5
+ message: string;
6
+ }
7
+ export declare enum ScreenRoutesEnum {
8
+ LOADING = "Loading"
9
+ }
@@ -0,0 +1,4 @@
1
+ export var ScreenRoutesEnum;
2
+ (function (ScreenRoutesEnum) {
3
+ ScreenRoutesEnum["LOADING"] = "Loading";
4
+ })(ScreenRoutesEnum || (ScreenRoutesEnum = {}));
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-unstable.15+88a373a",
4
+ "version": "0.1.3-unstable.23+4405bfe",
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,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@react-native-community/blur": "^4.3.0",
32
- "@sphereon/ui-components.core": "0.1.3-unstable.15+88a373a",
32
+ "@react-navigation/native-stack": "^6.9.16",
33
+ "@sphereon/ui-components.core": "0.1.3-unstable.23+4405bfe",
33
34
  "react-native-fast-image": "^8.6.3",
34
35
  "react-native-size-matters": "^0.4.0",
35
36
  "react-native-svg": "13.4.0",
@@ -46,5 +47,5 @@
46
47
  "react": ">= 16.8.0",
47
48
  "react-native": ">= 0.64.0"
48
49
  },
49
- "gitHead": "88a373a5f9fb7b863e412030eedc651350c99187"
50
+ "gitHead": "4405bfecf4002b54ea2aab365c16a509a5ac3766"
50
51
  }