@sphereon/ui-components.ssi-react-native 0.2.1-unstable.86 → 0.2.1-unstable.87

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 (47) hide show
  1. package/dist/components/assets/badges/SSICheckmarkBadge/index.d.ts +9 -0
  2. package/dist/components/assets/badges/SSICheckmarkBadge/index.js +42 -0
  3. package/dist/components/assets/badges/SSIExclamationMarkBadge/index.d.ts +9 -0
  4. package/dist/components/assets/badges/SSIExclamationMarkBadge/index.js +42 -0
  5. package/dist/components/assets/logos/SSILogo/index.d.ts +11 -0
  6. package/dist/components/assets/logos/SSILogo/index.js +34 -0
  7. package/dist/components/assets/logos/SSIPlaceholderLogo/index.d.ts +9 -0
  8. package/dist/components/assets/logos/SSIPlaceholderLogo/index.js +46 -0
  9. package/dist/components/buttons/PrimaryButton/index.d.ts +12 -0
  10. package/dist/components/buttons/PrimaryButton/index.js +23 -0
  11. package/dist/components/buttons/SecondaryButton/index.d.ts +12 -0
  12. package/dist/components/buttons/SecondaryButton/index.js +26 -0
  13. package/dist/components/indicators/SSIActivityIndicator/index.d.ts +9 -0
  14. package/dist/components/indicators/SSIActivityIndicator/index.js +13 -0
  15. package/dist/components/labels/SSIStatusLabel/index.d.ts +11 -0
  16. package/dist/components/labels/SSIStatusLabel/index.js +34 -0
  17. package/dist/components/views/SSICredentialCardView/index.d.ts +33 -0
  18. package/dist/components/views/SSICredentialCardView/index.js +65 -0
  19. package/dist/components/views/SSICredentialMiniCardView/index.d.ts +12 -0
  20. package/dist/components/views/SSICredentialMiniCardView/index.js +16 -0
  21. package/dist/index.d.ts +12 -0
  22. package/dist/index.js +41 -0
  23. package/dist/styles/components/buttons/index.d.ts +18 -0
  24. package/dist/styles/components/buttons/index.js +18 -0
  25. package/dist/styles/components/components/SSICredentialCardView/index.d.ts +15 -0
  26. package/dist/styles/components/components/SSICredentialCardView/index.js +63 -0
  27. package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +3 -0
  28. package/dist/styles/components/components/SSICredentialMiniCardView/index.js +21 -0
  29. package/dist/styles/components/components/SSIStatusLabel/index.d.ts +3 -0
  30. package/dist/styles/components/components/SSIStatusLabel/index.js +27 -0
  31. package/dist/styles/components/components/SecondaryButton/index.d.ts +17 -0
  32. package/dist/styles/components/components/SecondaryButton/index.js +22 -0
  33. package/dist/styles/components/components/index.d.ts +4 -0
  34. package/dist/styles/components/components/index.js +20 -0
  35. package/dist/styles/components/containers/index.d.ts +37 -0
  36. package/dist/styles/components/containers/index.js +27 -0
  37. package/dist/styles/components/index.d.ts +3 -0
  38. package/dist/styles/components/index.js +19 -0
  39. package/dist/styles/fonts/index.d.ts +12 -0
  40. package/dist/styles/fonts/index.js +69 -0
  41. package/dist/styles/gradients/index.d.ts +30 -0
  42. package/dist/styles/gradients/index.js +17 -0
  43. package/dist/styles/index.d.ts +4 -0
  44. package/dist/styles/index.js +20 -0
  45. package/dist/styles/typography.d.ts +4 -0
  46. package/dist/styles/typography.js +108 -0
  47. package/package.json +3 -3
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SSICredentialCardViewBackgroundImageStyled = exports.SSICredentialCardViewStatusContainerStyled = exports.SSICredentialCardViewCredentialSubtitleTextStyled = exports.SSICredentialCardViewCredentialTitleTextStyled = exports.SSICredentialCardViewFooterContainerStyled = exports.SSICredentialCardViewFooterContentContainerStyled = exports.SSICredentialCardViewContentPropertiesContainerStyled = exports.SSICredentialCardViewContentIssueNameContainerStyled = exports.SSICredentialCardViewContentSubContainerStyled = exports.SSICredentialCardViewContentMainContainerStyled = exports.SSICredentialCardViewHeaderTitleContainerStyled = exports.SSICredentialCardViewHeaderLogoContainerStyled = exports.SSICredentialCardViewHeaderContainerStyled = exports.SSICredentialCardViewContainerStyled = void 0;
7
+ const native_1 = __importDefault(require("styled-components/native"));
8
+ const react_native_fast_image_1 = __importDefault(require("react-native-fast-image"));
9
+ const containers_1 = require("../../containers");
10
+ const fonts_1 = require("../../../fonts");
11
+ exports.SSICredentialCardViewContainerStyled = (0, native_1.default)(containers_1.SSIRoundedContainerStyled) `
12
+ width: 327px;
13
+ height: 186px;
14
+ `;
15
+ exports.SSICredentialCardViewHeaderContainerStyled = (0, native_1.default)(containers_1.SSIFlexDirectionRowViewStyled) `
16
+ height: 32px;
17
+ margin-top: 16px;
18
+ `;
19
+ exports.SSICredentialCardViewHeaderLogoContainerStyled = native_1.default.View `
20
+ margin: 0 12px 0 9px;
21
+ `;
22
+ exports.SSICredentialCardViewHeaderTitleContainerStyled = native_1.default.View `
23
+ flex: 1;
24
+ margin: 0 13px 0 auto;
25
+ `;
26
+ exports.SSICredentialCardViewContentMainContainerStyled = native_1.default.View `
27
+ flex: 1;
28
+ `;
29
+ exports.SSICredentialCardViewContentSubContainerStyled = native_1.default.View `
30
+ margin-top: auto;
31
+ `;
32
+ exports.SSICredentialCardViewContentIssueNameContainerStyled = native_1.default.View `
33
+ padding: 2px 9px 2px 12px;
34
+ `;
35
+ exports.SSICredentialCardViewContentPropertiesContainerStyled = (0, native_1.default)(containers_1.SSIFlexDirectionRowViewStyled) `
36
+ justify-content: flex-start;
37
+ margin: 1px 0;
38
+ padding: 2px 9px 4px 12px;
39
+ `;
40
+ exports.SSICredentialCardViewFooterContentContainerStyled = (0, native_1.default)(containers_1.SSIFlexDirectionRowViewStyled) `
41
+ padding: 11px 12px;
42
+ background-color: transparent;
43
+ `;
44
+ exports.SSICredentialCardViewFooterContainerStyled = native_1.default.View `
45
+ height: 39px;
46
+ margin-top: auto;
47
+ overflow: hidden;
48
+ `;
49
+ exports.SSICredentialCardViewCredentialTitleTextStyled = (0, native_1.default)(fonts_1.SSITextH4SemiBoldLightStyled) `
50
+ flex: 1;
51
+ text-align: right;
52
+ `;
53
+ exports.SSICredentialCardViewCredentialSubtitleTextStyled = (0, native_1.default)(fonts_1.SSITextH5LightStyled) `
54
+ text-align: right;
55
+ `;
56
+ exports.SSICredentialCardViewStatusContainerStyled = native_1.default.View `
57
+ margin-left: auto;
58
+ `;
59
+ exports.SSICredentialCardViewBackgroundImageStyled = (0, native_1.default)(react_native_fast_image_1.default).attrs({
60
+ resizeMode: 'cover',
61
+ }) `
62
+ flex: 1;
63
+ `;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const SSICredentialMiniCardViewContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
3
+ export declare const SSICredentialMiniCardViewBackgroundImageStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native-fast-image").FastImageProps | (import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>), import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>>, import("styled-components/native/dist/types").BaseObject> | import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native-fast-image").FastImageProps | (import("react-native-fast-image").FastImageProps & import("react").RefAttributes<import("react").Component<import("react-native-fast-image").FastImageProps, any, any>>), import("react-native-fast-image").FastImageProps>, import("styled-components/native/dist/types").BaseObject>, import("styled-components/native/dist/types").BaseObject>>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SSICredentialMiniCardViewBackgroundImageStyled = exports.SSICredentialMiniCardViewContainerStyled = void 0;
7
+ const native_1 = __importDefault(require("styled-components/native"));
8
+ const react_native_fast_image_1 = __importDefault(require("react-native-fast-image"));
9
+ exports.SSICredentialMiniCardViewContainerStyled = native_1.default.View `
10
+ width: 75px;
11
+ height: 50px;
12
+ border-radius: 4.6px;
13
+ overflow: hidden;
14
+ `;
15
+ exports.SSICredentialMiniCardViewBackgroundImageStyled = (0, native_1.default)(react_native_fast_image_1.default).attrs({
16
+ resizeMode: 'cover',
17
+ }) `
18
+ flex: 1;
19
+ align-items: center;
20
+ justify-content: center;
21
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const SSIStatusLabelContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>, never>>;
2
+ export declare const SSIStatusLabelStatusCaptionStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>, never>, never>>;
3
+ export declare const SSIStatusLabelBadgeContainer: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SSIStatusLabelBadgeContainer = exports.SSIStatusLabelStatusCaptionStyled = exports.SSIStatusLabelContainerStyled = void 0;
7
+ const native_1 = __importDefault(require("styled-components/native"));
8
+ const containers_1 = require("../../containers");
9
+ const fonts_1 = require("../../../fonts");
10
+ exports.SSIStatusLabelContainerStyled = (0, native_1.default)(containers_1.SSIFlexDirectionRowViewStyled) `
11
+ border-radius: 9px;
12
+ border-width: 1px;
13
+ /*
14
+ React-Native does not have a width: fit-content property to fix this like in the web version,
15
+ so we need to set align-self to something other than stretch to make the container fit the content
16
+ when the parent has a flex-grow: 1 CSS property set
17
+ */
18
+ align-self: baseline;
19
+ `;
20
+ exports.SSIStatusLabelStatusCaptionStyled = (0, native_1.default)(fonts_1.SSITextH5LightStyled) `
21
+ margin-left: 7px;
22
+ margin-right: 7px;
23
+ `;
24
+ exports.SSIStatusLabelBadgeContainer = native_1.default.View `
25
+ margin-top: auto;
26
+ margin-bottom: auto;
27
+ `;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export declare const SecondaryButtonMaskContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
3
+ 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
+ colors: readonly string[];
5
+ locations?: readonly number[] | null | undefined;
6
+ start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
7
+ end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
8
+ dither?: boolean | undefined;
9
+ } & import("react").RefAttributes<import("expo-linear-gradient").LinearGradient>, import("react-native").ViewProps & {
10
+ colors: readonly string[];
11
+ locations?: readonly number[] | null | undefined;
12
+ start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
13
+ end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
14
+ dither?: boolean | undefined;
15
+ } & import("react").RefAttributes<import("expo-linear-gradient").LinearGradient>>, never>, never>, "ref"> & {
16
+ ref?: ((instance: import("expo-linear-gradient").LinearGradient | null) => void) | import("react").RefObject<import("expo-linear-gradient").LinearGradient> | null | undefined;
17
+ }, never>>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SecondaryButtonLinearGradientStyled = exports.SecondaryButtonMaskContainerStyled = void 0;
7
+ const native_1 = __importDefault(require("styled-components/native"));
8
+ const gradients_1 = require("../../../gradients");
9
+ exports.SecondaryButtonMaskContainerStyled = native_1.default.View `
10
+ background-color: transparent;
11
+ flex: 1;
12
+ border-width: 1px;
13
+ border-radius: 8px;
14
+ align-items: center;
15
+ justify-content: center;
16
+ `;
17
+ exports.SecondaryButtonLinearGradientStyled = (0, native_1.default)(gradients_1.SSILinearGradientStyled) `
18
+ align-items: center;
19
+ justify-content: center;
20
+ padding: 9px;
21
+ width: 180px;
22
+ `;
@@ -0,0 +1,4 @@
1
+ export * from './SSICredentialCardView';
2
+ export * from './SSICredentialMiniCardView';
3
+ export * from './SSIStatusLabel';
4
+ export * from './SecondaryButton';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./SSICredentialCardView"), exports);
18
+ __exportStar(require("./SSICredentialMiniCardView"), exports);
19
+ __exportStar(require("./SSIStatusLabel"), exports);
20
+ __exportStar(require("./SecondaryButton"), exports);
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ export declare const SSIAlphaContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
3
+ export declare const SSIBlurredContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<(Omit<import("react-native").ViewProps & {
4
+ blurType?: ("dark" | "light" | "regular" | "xlight" | "prominent" | "extraDark" | "chromeMaterial" | "material" | "thickMaterial" | "thinMaterial" | "ultraThinMaterial" | "chromeMaterialDark" | "materialDark" | "thickMaterialDark" | "thinMaterialDark" | "ultraThinMaterialDark" | "chromeMaterialLight" | "materialLight" | "thickMaterialLight" | "thinMaterialLight" | "ultraThinMaterialLight") | undefined;
5
+ blurAmount?: number | undefined;
6
+ reducedTransparencyFallbackColor?: string | undefined;
7
+ } & import("react").RefAttributes<import("react-native").View>, "ref"> & {
8
+ ref?: ((instance: import("react-native").View | null) => void) | import("react").RefObject<import("react-native").View> | null | undefined;
9
+ }) | (Omit<import("react-native").ViewProps & {
10
+ blurAmount?: number | undefined;
11
+ blurType?: "dark" | "light" | "xlight" | undefined;
12
+ blurRadius?: number | undefined;
13
+ downsampleFactor?: number | undefined;
14
+ overlayColor?: string | undefined;
15
+ enabled?: boolean | undefined;
16
+ autoUpdate?: boolean | undefined;
17
+ } & import("react").RefAttributes<import("react-native").View>, "ref"> & {
18
+ ref?: ((instance: import("react-native").View | null) => void) | import("react").RefObject<import("react-native").View> | null | undefined;
19
+ }), (Omit<import("react-native").ViewProps & {
20
+ blurType?: ("dark" | "light" | "regular" | "xlight" | "prominent" | "extraDark" | "chromeMaterial" | "material" | "thickMaterial" | "thinMaterial" | "ultraThinMaterial" | "chromeMaterialDark" | "materialDark" | "thickMaterialDark" | "thinMaterialDark" | "ultraThinMaterialDark" | "chromeMaterialLight" | "materialLight" | "thickMaterialLight" | "thinMaterialLight" | "ultraThinMaterialLight") | undefined;
21
+ blurAmount?: number | undefined;
22
+ reducedTransparencyFallbackColor?: string | undefined;
23
+ } & import("react").RefAttributes<import("react-native").View>, "ref"> & {
24
+ ref?: ((instance: import("react-native").View | null) => void) | import("react").RefObject<import("react-native").View> | null | undefined;
25
+ }) | (Omit<import("react-native").ViewProps & {
26
+ blurAmount?: number | undefined;
27
+ blurType?: "dark" | "light" | "xlight" | undefined;
28
+ blurRadius?: number | undefined;
29
+ downsampleFactor?: number | undefined;
30
+ overlayColor?: string | undefined;
31
+ enabled?: boolean | undefined;
32
+ autoUpdate?: boolean | undefined;
33
+ } & import("react").RefAttributes<import("react-native").View>, "ref"> & {
34
+ ref?: ((instance: import("react-native").View | null) => void) | import("react").RefObject<import("react-native").View> | null | undefined;
35
+ })>, import("styled-components/native/dist/types").BaseObject>, import("styled-components/native/dist/types").BaseObject>>;
36
+ export declare const SSIFlexDirectionRowViewStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
37
+ export declare const SSIRoundedContainerStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SSIRoundedContainerStyled = exports.SSIFlexDirectionRowViewStyled = exports.SSIBlurredContainerStyled = exports.SSIAlphaContainerStyled = void 0;
7
+ const blur_1 = require("@react-native-community/blur");
8
+ const native_1 = __importDefault(require("styled-components/native"));
9
+ const ui_components_core_1 = require("@sphereon/ui-components.core");
10
+ exports.SSIAlphaContainerStyled = native_1.default.View `
11
+ flex: 1;
12
+ background-color: rgba(0, 0, 0, 0.2);
13
+ `;
14
+ exports.SSIBlurredContainerStyled = (0, native_1.default)(blur_1.BlurView).attrs({
15
+ blurType: 'light',
16
+ blurAmount: 3,
17
+ }) `
18
+ flex: 1;
19
+ background-color: rgba(255, 255, 255, 0.25);
20
+ `;
21
+ exports.SSIFlexDirectionRowViewStyled = native_1.default.View `
22
+ flex-direction: row;
23
+ `;
24
+ exports.SSIRoundedContainerStyled = native_1.default.View `
25
+ ${ui_components_core_1.SSIRoundedEdgesCss};
26
+ overflow: hidden;
27
+ `;
@@ -0,0 +1,3 @@
1
+ export * from './containers';
2
+ export * from './components';
3
+ export * from './buttons';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./containers"), exports);
18
+ __exportStar(require("./components"), exports);
19
+ __exportStar(require("./buttons"), exports);
@@ -0,0 +1,12 @@
1
+ export declare const SSITextH2Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
2
+ 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>>;
3
+ 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>>;
4
+ export declare const SSITextH4Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
5
+ export declare const SSITextH4SemiBoldStyled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
6
+ 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>>;
7
+ export declare const SSITextH4SemiBoldLightStyled: 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 SSITextH5Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
9
+ export declare const SSITextH5LightStyled: 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 SSITextH6Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
11
+ 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
+ export declare const Text64Styled: import("styled-components/native").IStyledComponent<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
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;
7
+ const native_1 = __importDefault(require("styled-components/native"));
8
+ const ui_components_core_1 = require("@sphereon/ui-components.core");
9
+ const typography_1 = require("../typography");
10
+ exports.SSITextH2Styled = native_1.default.Text `
11
+ font-family: ${typography_1.fontStyle.h2Regular.fontFamily};
12
+ font-size: ${typography_1.fontStyle.h2Regular.fontSize}px;
13
+ font-weight: ${typography_1.fontStyle.h2Regular.fontWeight};
14
+ line-height: ${typography_1.fontStyle.h2Regular.lineHeight}px;
15
+ height: auto;
16
+ `;
17
+ exports.SSITextH2LightStyled = (0, native_1.default)(exports.SSITextH2Styled) `
18
+ color: ${ui_components_core_1.fontColors.light};
19
+ `;
20
+ exports.SSITextH2SecondaryButtonStyled = (0, native_1.default)(exports.SSITextH2Styled) `
21
+ color: ${ui_components_core_1.fontColors.secondaryButton};
22
+ `;
23
+ exports.SSITextH4Styled = native_1.default.Text `
24
+ font-family: ${typography_1.fontStyle.h4Regular.fontFamily};
25
+ font-size: ${typography_1.fontStyle.h4Regular.fontSize}px;
26
+ font-weight: ${typography_1.fontStyle.h4Regular.fontWeight};
27
+ line-height: ${typography_1.fontStyle.h4Regular.lineHeight}px;
28
+ height: auto;
29
+ `;
30
+ exports.SSITextH4SemiBoldStyled = native_1.default.Text `
31
+ font-family: ${typography_1.fontStyle.h4SemiBold.fontFamily};
32
+ font-size: ${typography_1.fontStyle.h4SemiBold.fontSize}px;
33
+ font-weight: ${typography_1.fontStyle.h4SemiBold.fontWeight};
34
+ line-height: ${typography_1.fontStyle.h4SemiBold.lineHeight}px;
35
+ height: auto;
36
+ `;
37
+ exports.SSITextH4LightStyled = (0, native_1.default)(exports.SSITextH4Styled) `
38
+ color: ${ui_components_core_1.fontColors.light};
39
+ `;
40
+ exports.SSITextH4SemiBoldLightStyled = (0, native_1.default)(exports.SSITextH4SemiBoldStyled) `
41
+ color: ${ui_components_core_1.fontColors.light};
42
+ `;
43
+ exports.SSITextH5Styled = native_1.default.Text `
44
+ font-family: ${typography_1.fontStyle.h5Regular.fontFamily};
45
+ font-size: ${typography_1.fontStyle.h5Regular.fontSize}px;
46
+ font-weight: ${typography_1.fontStyle.h5Regular.fontWeight};
47
+ line-height: ${typography_1.fontStyle.h5Regular.lineHeight}px;
48
+ height: auto;
49
+ `;
50
+ exports.SSITextH5LightStyled = (0, native_1.default)(exports.SSITextH5Styled) `
51
+ color: ${ui_components_core_1.fontColors.light};
52
+ `;
53
+ exports.SSITextH6Styled = native_1.default.Text `
54
+ font-family: ${typography_1.fontStyle.h6.fontFamily};
55
+ font-size: ${typography_1.fontStyle.h6.fontSize}px;
56
+ font-weight: ${typography_1.fontStyle.h6.fontWeight};
57
+ line-height: ${typography_1.fontStyle.h6.lineHeight}px;
58
+ height: auto;
59
+ `;
60
+ exports.SSITextH6LightStyled = (0, native_1.default)(exports.SSITextH6Styled) `
61
+ color: ${ui_components_core_1.fontColors.light};
62
+ `;
63
+ exports.Text64Styled = native_1.default.Text `
64
+ font-family: ${typography_1.fontStyle.Regular64.fontFamily};
65
+ font-size: ${typography_1.fontStyle.Regular64.fontSize}px;
66
+ font-weight: ${typography_1.fontStyle.Regular64.fontWeight};
67
+ line-height: ${typography_1.fontStyle.Regular64.lineHeight}px;
68
+ height: auto;
69
+ `;
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { LinearGradient } from 'expo-linear-gradient';
3
+ export declare const SSILinearGradientStyled: import("styled-components/native").IStyledComponent<"native", 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
+ colors: readonly string[];
5
+ locations?: readonly number[] | null | undefined;
6
+ start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
7
+ end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
8
+ dither?: boolean | undefined;
9
+ } & import("react").RefAttributes<LinearGradient>, import("react-native").ViewProps & {
10
+ colors: readonly string[];
11
+ locations?: readonly number[] | null | undefined;
12
+ start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
13
+ end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
14
+ dither?: boolean | undefined;
15
+ } & import("react").RefAttributes<LinearGradient>>, never>, never>>;
16
+ export declare const SSIRoundedLinearGradient: 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 & {
17
+ colors: readonly string[];
18
+ locations?: readonly number[] | null | undefined;
19
+ start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
20
+ end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
21
+ dither?: boolean | undefined;
22
+ } & import("react").RefAttributes<LinearGradient>, import("react-native").ViewProps & {
23
+ colors: readonly string[];
24
+ locations?: readonly number[] | null | undefined;
25
+ start?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
26
+ end?: import("expo-linear-gradient").LinearGradientPoint | null | undefined;
27
+ dither?: boolean | undefined;
28
+ } & import("react").RefAttributes<LinearGradient>>, never>, never>, "ref"> & {
29
+ ref?: ((instance: LinearGradient | null) => void) | import("react").RefObject<LinearGradient> | null | undefined;
30
+ }, never>>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SSIRoundedLinearGradient = exports.SSILinearGradientStyled = void 0;
7
+ const expo_linear_gradient_1 = require("expo-linear-gradient");
8
+ const native_1 = __importDefault(require("styled-components/native"));
9
+ const ui_components_core_1 = require("@sphereon/ui-components.core");
10
+ exports.SSILinearGradientStyled = (0, native_1.default)(expo_linear_gradient_1.LinearGradient).attrs(props => ({
11
+ colors: props?.colors ?? [ui_components_core_1.gradientsColors['100'].secondaryColor, ui_components_core_1.gradientsColors['100'].primaryColor],
12
+ start: { x: 1, y: 1 },
13
+ end: { x: 0, y: 0 },
14
+ })) ``;
15
+ exports.SSIRoundedLinearGradient = (0, native_1.default)(exports.SSILinearGradientStyled) `
16
+ ${ui_components_core_1.SSIRoundedEdgesCss}
17
+ `;
@@ -0,0 +1,4 @@
1
+ export * from './typography';
2
+ export * from './components';
3
+ export * from './gradients';
4
+ export * from './fonts';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./typography"), exports);
18
+ __exportStar(require("./components"), exports);
19
+ __exportStar(require("./gradients"), exports);
20
+ __exportStar(require("./fonts"), exports);
@@ -0,0 +1,4 @@
1
+ import { FontStyle, FontSize } from '@sphereon/ui-components.core';
2
+ import { TextStyle } from 'react-native';
3
+ export declare const fontSize: Record<FontSize, number>;
4
+ export declare const fontStyle: Record<FontStyle, TextStyle>;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fontStyle = exports.fontSize = void 0;
4
+ const ui_components_core_1 = require("@sphereon/ui-components.core");
5
+ const react_native_size_matters_1 = require("react-native-size-matters");
6
+ exports.fontSize = {
7
+ 100: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['100']),
8
+ 200: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['200']),
9
+ 300: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['300']),
10
+ 400: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['400']),
11
+ 500: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['500']),
12
+ 600: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['600']),
13
+ 700: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['700']),
14
+ 800: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['800']),
15
+ 64: (0, react_native_size_matters_1.moderateScale)(ui_components_core_1.fontSize['64']),
16
+ };
17
+ exports.fontStyle = {
18
+ h0SemiBold: {
19
+ fontFamily: 'Poppins-SemiBold',
20
+ fontSize: exports.fontSize[800],
21
+ fontWeight: ui_components_core_1.fontWeight[600],
22
+ lineHeight: ui_components_core_1.lineHeight[800],
23
+ },
24
+ h1SemiBold: {
25
+ fontFamily: 'Poppins-SemiBold',
26
+ fontSize: exports.fontSize[700],
27
+ fontWeight: ui_components_core_1.fontWeight[600],
28
+ lineHeight: ui_components_core_1.lineHeight[700],
29
+ },
30
+ h1Regular: {
31
+ fontFamily: 'Poppins-Regular',
32
+ fontSize: exports.fontSize[700],
33
+ fontWeight: ui_components_core_1.fontWeight[400],
34
+ lineHeight: ui_components_core_1.lineHeight[700],
35
+ },
36
+ h2Regular: {
37
+ fontFamily: 'Poppins-Regular',
38
+ fontSize: exports.fontSize[600],
39
+ fontWeight: ui_components_core_1.fontWeight[400],
40
+ lineHeight: ui_components_core_1.lineHeight[600],
41
+ },
42
+ h2SemiBold: {
43
+ fontFamily: 'Poppins-SemiBold',
44
+ fontSize: exports.fontSize[600],
45
+ fontWeight: ui_components_core_1.fontWeight[600],
46
+ lineHeight: ui_components_core_1.lineHeight[600],
47
+ },
48
+ h3Regular: {
49
+ fontFamily: 'Poppins-Regular',
50
+ fontSize: exports.fontSize[500],
51
+ fontWeight: ui_components_core_1.fontWeight[400],
52
+ lineHeight: ui_components_core_1.lineHeight[500],
53
+ },
54
+ h3SemiBold: {
55
+ fontFamily: 'Poppins-SemiBold',
56
+ fontSize: exports.fontSize[500],
57
+ fontWeight: ui_components_core_1.fontWeight[600],
58
+ lineHeight: ui_components_core_1.lineHeight[500],
59
+ },
60
+ h4Regular: {
61
+ fontFamily: 'Poppins-Regular',
62
+ fontSize: exports.fontSize[300],
63
+ fontWeight: ui_components_core_1.fontWeight[400],
64
+ lineHeight: ui_components_core_1.lineHeight[300],
65
+ },
66
+ h4SemiBold: {
67
+ fontFamily: 'Poppins-SemiBold',
68
+ fontSize: exports.fontSize[300],
69
+ fontWeight: ui_components_core_1.fontWeight[400],
70
+ lineHeight: ui_components_core_1.lineHeight[300],
71
+ },
72
+ h5Regular: {
73
+ fontFamily: 'Poppins-Regular',
74
+ fontSize: exports.fontSize[200],
75
+ fontWeight: ui_components_core_1.fontWeight[400],
76
+ lineHeight: ui_components_core_1.lineHeight[200],
77
+ },
78
+ h5SemiBold: {
79
+ fontFamily: 'Poppins-SemiBold',
80
+ fontSize: exports.fontSize[200],
81
+ fontWeight: ui_components_core_1.fontWeight[600],
82
+ lineHeight: ui_components_core_1.lineHeight[200],
83
+ },
84
+ h6: {
85
+ fontFamily: 'Poppins',
86
+ fontSize: exports.fontSize[100],
87
+ fontWeight: ui_components_core_1.fontWeight[400],
88
+ lineHeight: ui_components_core_1.lineHeight[100],
89
+ },
90
+ h7Regular: {
91
+ fontFamily: 'Poppins',
92
+ fontSize: exports.fontSize[400],
93
+ fontWeight: ui_components_core_1.fontWeight[400],
94
+ lineHeight: ui_components_core_1.lineHeight[400],
95
+ },
96
+ h7SemiBold: {
97
+ fontFamily: 'Poppins-SemiBold',
98
+ fontSize: exports.fontSize[400],
99
+ fontWeight: ui_components_core_1.fontWeight[600],
100
+ lineHeight: ui_components_core_1.lineHeight[400],
101
+ },
102
+ Regular64: {
103
+ fontFamily: 'Poppins',
104
+ fontSize: exports.fontSize[64],
105
+ fontWeight: ui_components_core_1.fontWeight[600],
106
+ lineHeight: ui_components_core_1.lineHeight[64],
107
+ },
108
+ };
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.86+4f37b20",
4
+ "version": "0.2.1-unstable.87+6894ab8",
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.2.1-unstable.86+4f37b20",
33
+ "@sphereon/ui-components.core": "0.2.1-unstable.87+6894ab8",
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": "4f37b208cf3a2e90a109d7e76b174a2ed674b466"
49
+ "gitHead": "6894ab8498cb051bfdaf85973cb44e3f419956ce"
50
50
  }