@sphereon/ui-components.ssi-react-native 0.3.0 → 0.3.1-unstable.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.
@@ -4,7 +4,6 @@ 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 masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));
8
7
  const ui_components_core_1 = require("@sphereon/ui-components.core");
9
8
  const styles_1 = require("../../../styles");
10
9
  const SecondaryButton = (props) => {
@@ -16,11 +15,11 @@ const SecondaryButton = (props) => {
16
15
  return (<styles_1.SSITouchableOpacityButtonFlexRowStyled onPress={onPress} disabled={disabled} activeOpacity={ui_components_core_1.OpacityStyleEnum.DISABLED} style={{
17
16
  ...(disabled && { opacity: ui_components_core_1.OpacityStyleEnum.DISABLED }),
18
17
  }}>
19
- <masked_view_1.default maskElement={<styles_1.SecondaryButtonMaskContainerStyled>{caption && <styles_1.SSITextH2SecondaryButtonStyled>{caption}</styles_1.SSITextH2SecondaryButtonStyled>}</styles_1.SecondaryButtonMaskContainerStyled>}>
20
- <styles_1.SecondaryButtonLinearGradientStyled style={style} colors={borderColors}>
18
+ <styles_1.SecondaryButtonMaskedViewStyled style={{ ...style }} maskElement={<styles_1.SecondaryButtonMaskContainerStyled style={{ ...style }}>{caption && <styles_1.SSITextH2SecondaryButtonStyled>{caption}</styles_1.SSITextH2SecondaryButtonStyled>}</styles_1.SecondaryButtonMaskContainerStyled>}>
19
+ <styles_1.SecondaryButtonLinearGradientStyled style={{ ...style }} colors={borderColors}>
21
20
  <styles_1.SSITextH2SecondaryButtonStyled style={{ color: captionColor }}>{caption}</styles_1.SSITextH2SecondaryButtonStyled>
22
21
  </styles_1.SecondaryButtonLinearGradientStyled>
23
- </masked_view_1.default>
22
+ </styles_1.SecondaryButtonMaskedViewStyled>
24
23
  </styles_1.SSITouchableOpacityButtonFlexRowStyled>);
25
24
  };
26
25
  exports.default = SecondaryButton;
@@ -14,5 +14,6 @@ exports.SSIRoundedCenteredLinearGradientStyled = (0, native_1.default)(gradients
14
14
  align-items: center;
15
15
  justify-content: center;
16
16
  padding: 9px;
17
- width: 180px;
17
+ flex: 1;
18
+ height: 42px;
18
19
  `;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import MaskedView from '@react-native-masked-view/masked-view';
2
3
  export declare const SecondaryButtonMaskContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
3
4
  export declare const SecondaryButtonLinearGradientStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<Omit<import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps & {
4
5
  colors: readonly string[];
@@ -15,3 +16,4 @@ export declare const SecondaryButtonLinearGradientStyled: import("styled-compone
15
16
  } & import("react").RefAttributes<import("expo-linear-gradient").LinearGradient>>, never>, never>, "ref"> & {
16
17
  ref?: ((instance: import("expo-linear-gradient").LinearGradient | null) => void) | import("react").RefObject<import("expo-linear-gradient").LinearGradient> | null | undefined;
17
18
  }, never>>;
19
+ export declare const SecondaryButtonMaskedViewStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("@react-native-masked-view/masked-view").MaskedViewProps & import("react").RefAttributes<MaskedView>, never>>;
@@ -3,20 +3,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SecondaryButtonLinearGradientStyled = exports.SecondaryButtonMaskContainerStyled = void 0;
6
+ exports.SecondaryButtonMaskedViewStyled = exports.SecondaryButtonLinearGradientStyled = exports.SecondaryButtonMaskContainerStyled = void 0;
7
7
  const native_1 = __importDefault(require("styled-components/native"));
8
+ const masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));
9
+ const ui_components_core_1 = require("@sphereon/ui-components.core");
8
10
  const gradients_1 = require("../../../gradients");
9
11
  exports.SecondaryButtonMaskContainerStyled = native_1.default.View `
12
+ ${ui_components_core_1.SSIRoundedEdgesCss};
10
13
  background-color: transparent;
11
14
  flex: 1;
12
15
  border-width: 1px;
13
- border-radius: 8px;
14
16
  align-items: center;
15
17
  justify-content: center;
18
+ height: 42px;
16
19
  `;
17
20
  exports.SecondaryButtonLinearGradientStyled = (0, native_1.default)(gradients_1.SSILinearGradientStyled) `
18
21
  align-items: center;
19
22
  justify-content: center;
20
23
  padding: 9px;
21
- width: 180px;
24
+ flex: 1;
25
+ height: 42px;
26
+ `;
27
+ exports.SecondaryButtonMaskedViewStyled = (0, native_1.default)(masked_view_1.default) `
28
+ flex: 1;
29
+ height: 42px;
22
30
  `;
@@ -1,6 +1,13 @@
1
+ export declare const SSITextH1SemiBoldStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
2
+ export declare const SSITextH1SemiBoldLightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
1
3
  export declare const SSITextH2Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
2
4
  export declare const SSITextH2LightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
5
+ export declare const SSITextH2SemiBoldStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
6
+ export declare const SSITextH2SemiBoldLightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
3
7
  export declare const SSITextH2SecondaryButtonStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
8
+ export declare const SSITextH3Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
9
+ export declare const SSITextH3LightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
10
+ export declare const SSITextH3SemiBoldStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
4
11
  export declare const SSITextH4Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
5
12
  export declare const SSITextH4SemiBoldStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
6
13
  export declare const SSITextH4LightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
@@ -10,3 +17,5 @@ export declare const SSITextH5LightStyled: import("styled-components/native").IS
10
17
  export declare const SSITextH6Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
11
18
  export declare const SSITextH6LightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
12
19
  export declare const Text64Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
20
+ export declare const SSITextH7Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
21
+ export declare const SSITextH7LightStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>>;
@@ -3,10 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Text64Styled = exports.SSITextH6LightStyled = exports.SSITextH6Styled = exports.SSITextH5LightStyled = exports.SSITextH5Styled = exports.SSITextH4SemiBoldLightStyled = exports.SSITextH4LightStyled = exports.SSITextH4SemiBoldStyled = exports.SSITextH4Styled = exports.SSITextH2SecondaryButtonStyled = exports.SSITextH2LightStyled = exports.SSITextH2Styled = void 0;
6
+ exports.SSITextH7LightStyled = exports.SSITextH7Styled = exports.Text64Styled = exports.SSITextH6LightStyled = exports.SSITextH6Styled = exports.SSITextH5LightStyled = exports.SSITextH5Styled = exports.SSITextH4SemiBoldLightStyled = exports.SSITextH4LightStyled = exports.SSITextH4SemiBoldStyled = exports.SSITextH4Styled = exports.SSITextH3SemiBoldStyled = exports.SSITextH3LightStyled = exports.SSITextH3Styled = exports.SSITextH2SecondaryButtonStyled = exports.SSITextH2SemiBoldLightStyled = exports.SSITextH2SemiBoldStyled = exports.SSITextH2LightStyled = exports.SSITextH2Styled = exports.SSITextH1SemiBoldLightStyled = exports.SSITextH1SemiBoldStyled = void 0;
7
7
  const native_1 = __importDefault(require("styled-components/native"));
8
8
  const ui_components_core_1 = require("@sphereon/ui-components.core");
9
9
  const typography_1 = require("../typography");
10
+ exports.SSITextH1SemiBoldStyled = native_1.default.Text `
11
+ font-family: ${typography_1.fontStyle.h1SemiBold.fontFamily};
12
+ font-size: ${typography_1.fontStyle.h1SemiBold.fontSize}px;
13
+ font-weight: ${typography_1.fontStyle.h1SemiBold.fontWeight};
14
+ line-height: ${typography_1.fontStyle.h1SemiBold.lineHeight}px;
15
+ height: auto;
16
+ `;
17
+ exports.SSITextH1SemiBoldLightStyled = (0, native_1.default)(exports.SSITextH1SemiBoldStyled) `
18
+ color: ${ui_components_core_1.fontColors.light};
19
+ `;
10
20
  exports.SSITextH2Styled = native_1.default.Text `
11
21
  font-family: ${typography_1.fontStyle.h2Regular.fontFamily};
12
22
  font-size: ${typography_1.fontStyle.h2Regular.fontSize}px;
@@ -17,9 +27,36 @@ exports.SSITextH2Styled = native_1.default.Text `
17
27
  exports.SSITextH2LightStyled = (0, native_1.default)(exports.SSITextH2Styled) `
18
28
  color: ${ui_components_core_1.fontColors.light};
19
29
  `;
30
+ exports.SSITextH2SemiBoldStyled = native_1.default.Text `
31
+ font-family: ${typography_1.fontStyle.h2SemiBold.fontFamily};
32
+ font-size: ${typography_1.fontStyle.h2SemiBold.fontSize}px;
33
+ font-weight: ${typography_1.fontStyle.h2SemiBold.fontWeight};
34
+ line-height: ${typography_1.fontStyle.h2SemiBold.lineHeight}px;
35
+ height: auto;
36
+ `;
37
+ exports.SSITextH2SemiBoldLightStyled = (0, native_1.default)(exports.SSITextH2SemiBoldStyled) `
38
+ color: ${ui_components_core_1.fontColors.light};
39
+ `;
20
40
  exports.SSITextH2SecondaryButtonStyled = (0, native_1.default)(exports.SSITextH2Styled) `
21
41
  color: ${ui_components_core_1.fontColors.secondaryButton};
22
42
  `;
43
+ exports.SSITextH3Styled = native_1.default.Text `
44
+ font-family: ${typography_1.fontStyle.h3Regular.fontFamily};
45
+ font-size: ${typography_1.fontStyle.h3Regular.fontSize}px;
46
+ font-weight: ${typography_1.fontStyle.h3Regular.fontWeight};
47
+ line-height: ${typography_1.fontStyle.h3Regular.lineHeight}px;
48
+ height: auto;
49
+ `;
50
+ exports.SSITextH3LightStyled = (0, native_1.default)(exports.SSITextH3Styled) `
51
+ color: ${ui_components_core_1.fontColors.light};
52
+ `;
53
+ exports.SSITextH3SemiBoldStyled = native_1.default.Text `
54
+ font-family: ${typography_1.fontStyle.h3SemiBold.fontFamily};
55
+ font-size: ${typography_1.fontStyle.h3SemiBold.fontSize}px;
56
+ font-weight: ${typography_1.fontStyle.h3SemiBold.fontWeight};
57
+ line-height: ${typography_1.fontStyle.h3SemiBold.lineHeight}px;
58
+ height: auto;
59
+ `;
23
60
  exports.SSITextH4Styled = native_1.default.Text `
24
61
  font-family: ${typography_1.fontStyle.h4Regular.fontFamily};
25
62
  font-size: ${typography_1.fontStyle.h4Regular.fontSize}px;
@@ -67,3 +104,13 @@ exports.Text64Styled = native_1.default.Text `
67
104
  line-height: ${typography_1.fontStyle.Regular64.lineHeight}px;
68
105
  height: auto;
69
106
  `;
107
+ exports.SSITextH7Styled = native_1.default.Text `
108
+ font-family: ${typography_1.fontStyle.h7Regular.fontFamily};
109
+ font-size: ${typography_1.fontStyle.h7Regular.fontSize}px;
110
+ font-weight: ${typography_1.fontStyle.h7Regular.fontWeight};
111
+ line-height: ${typography_1.fontStyle.h7Regular.lineHeight}px;
112
+ height: auto;
113
+ `;
114
+ exports.SSITextH7LightStyled = (0, native_1.default)(exports.SSITextH7Styled) `
115
+ color: ${ui_components_core_1.fontColors.light};
116
+ `;
@@ -82,13 +82,13 @@ exports.fontStyle = {
82
82
  lineHeight: ui_components_core_1.lineHeight[200],
83
83
  },
84
84
  h6: {
85
- fontFamily: 'Poppins',
85
+ fontFamily: 'Poppins-Regular',
86
86
  fontSize: exports.fontSize[100],
87
87
  fontWeight: ui_components_core_1.fontWeight[400],
88
88
  lineHeight: ui_components_core_1.lineHeight[100],
89
89
  },
90
90
  h7Regular: {
91
- fontFamily: 'Poppins',
91
+ fontFamily: 'Poppins-Regular',
92
92
  fontSize: exports.fontSize[400],
93
93
  fontWeight: ui_components_core_1.fontWeight[400],
94
94
  lineHeight: ui_components_core_1.lineHeight[400],
@@ -100,7 +100,7 @@ exports.fontStyle = {
100
100
  lineHeight: ui_components_core_1.lineHeight[400],
101
101
  },
102
102
  Regular64: {
103
- fontFamily: 'Poppins',
103
+ fontFamily: 'Poppins-Regular',
104
104
  fontSize: exports.fontSize[64],
105
105
  fontWeight: ui_components_core_1.fontWeight[600],
106
106
  lineHeight: ui_components_core_1.lineHeight[64],
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.3.0",
4
+ "version": "0.3.1-unstable.3+9660c06",
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>",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@react-native-community/blur": "^4.4.0",
32
32
  "@react-native-masked-view/masked-view": "^0.3.1",
33
- "@sphereon/ui-components.core": "0.3.0",
33
+ "@sphereon/ui-components.core": "0.3.1-unstable.3+9660c06",
34
34
  "expo-linear-gradient": "~13.0.2",
35
35
  "react-native-fast-image": "^8.6.3",
36
36
  "react-native-size-matters": "^0.4.2",
@@ -46,5 +46,5 @@
46
46
  "react": ">= 18",
47
47
  "react-native": "~0.74.3"
48
48
  },
49
- "gitHead": "bd5efc629991766c207eeec3f8ca2a9337a4e61f"
49
+ "gitHead": "9660c060024b8c03e1596043d1259d08eb7d0d14"
50
50
  }