@sphereon/ui-components.core 0.1.1 → 0.1.2-next.11

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.
@@ -6,5 +6,7 @@
6
6
  "credential_status_valid": "Valid",
7
7
  "credential_status_expired": "Expired",
8
8
  "credential_status_revoked": "Revoked",
9
- "status_missing": "Unknown"
9
+ "status_missing": "Unknown",
10
+ "action_filter_caption": "Filter",
11
+ "action_show_caption": "Show:"
10
12
  }
@@ -6,5 +6,7 @@
6
6
  "credential_status_valid": "Geldig",
7
7
  "credential_status_expired": "Verlopen",
8
8
  "credential_status_revoked": "Ingetrokken",
9
- "status_missing": "Onbekent"
9
+ "status_missing": "Onbekent",
10
+ "action_filter_caption": "Filter",
11
+ "action_show_caption": "Toon:"
10
12
  }
@@ -1,11 +1,17 @@
1
1
  import { LabelStatus } from '../../types';
2
- type BackgroundColor = 'primaryDark' | 'secondaryDark' | 'primaryLight' | 'secondaryLight';
2
+ type BackgroundColor = 'primaryDark' | 'secondaryDark' | 'primaryLight' | 'secondaryLight' | 'lightGrey';
3
3
  export declare const backgroundColors: Record<BackgroundColor, string>;
4
4
  type CredentialCardColor = 'default';
5
5
  export declare const credentialCardColors: Record<CredentialCardColor, string>;
6
6
  type LogoColor = 'default';
7
7
  export declare const logoColors: Record<LogoColor, string>;
8
8
  export declare const statusColors: Record<LabelStatus | 'error', string>;
9
- type FontColor = 'dark' | 'light' | 'secondaryButton' | 'greyedOut';
9
+ type FontColor = 'dark' | 'light' | 'secondaryButton' | 'greyedOut' | 'lightGrey';
10
10
  export declare const fontColors: Record<FontColor, string>;
11
+ type Gradient = 100 | 200;
12
+ export declare const gradientColors: Record<Gradient, string>;
13
+ type Border = 'dark' | 'light' | 'lightGrey';
14
+ export declare const borderColors: Record<Border, string>;
15
+ type Profile = 100 | 200 | 300 | 400 | 500;
16
+ export declare const profileColors: Record<Profile, string>;
11
17
  export {};
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.fontColors = exports.statusColors = exports.logoColors = exports.credentialCardColors = exports.backgroundColors = void 0;
3
+ exports.profileColors = exports.borderColors = exports.gradientColors = exports.fontColors = exports.statusColors = exports.logoColors = exports.credentialCardColors = exports.backgroundColors = void 0;
4
4
  exports.backgroundColors = {
5
5
  primaryDark: '#202537',
6
6
  secondaryDark: '#2C334B',
7
7
  primaryLight: '#FBFBFB',
8
- secondaryLight: '#E3E3FF'
8
+ secondaryLight: '#E3E3FF',
9
+ lightGrey: '#E3E3E3'
9
10
  };
10
11
  exports.credentialCardColors = {
11
12
  "default": '#5BDED2'
@@ -25,5 +26,22 @@ exports.fontColors = {
25
26
  dark: '#303030',
26
27
  light: '#FBFBFB',
27
28
  secondaryButton: '#7664F2',
28
- greyedOut: '#8F8F8F'
29
+ greyedOut: '#8F8F8F',
30
+ lightGrey: '#8D9099'
31
+ };
32
+ exports.gradientColors = {
33
+ 100: 'linear-gradient(135deg, #7276f7 0%, #7c40e8 100%)',
34
+ 200: 'linear-gradient(135deg, #F90 0%, #EE5309 100%)'
35
+ };
36
+ exports.borderColors = {
37
+ dark: '#404D7A',
38
+ light: '#E3E3E3',
39
+ lightGrey: '#ACACAC'
40
+ };
41
+ exports.profileColors = {
42
+ 100: '#EE5209',
43
+ 200: '#FF9900',
44
+ 300: '#5BDED3',
45
+ 400: '#0B81FF',
46
+ 500: '#BD2DFF'
29
47
  };
@@ -4,4 +4,4 @@ export type LineHeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
4
4
  export declare const lineHeight: Record<LineHeight, number>;
5
5
  export type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
6
6
  export declare const fontWeight: Record<FontWeight, FontWeight>;
7
- export type FontStyle = 'h0SemiBold' | 'h1SemiBold' | 'h2Regular' | 'h2SemiBold' | 'h3Regular' | 'h3SemiBold' | 'h4Regular' | 'h4SemiBold' | 'h5Regular' | 'h5SemiBold' | 'h6' | 'h7SemiBold';
7
+ export type FontStyle = 'h0SemiBold' | 'h1Regular' | 'h1SemiBold' | 'h2Regular' | 'h2SemiBold' | 'h3Regular' | 'h3SemiBold' | 'h4Regular' | 'h4SemiBold' | 'h5Regular' | 'h5SemiBold' | 'h6' | 'h7SemiBold';
@@ -0,0 +1 @@
1
+ export declare const getInitials: (fullName: string) => string;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.getInitials = void 0;
4
+ var getInitials = function (fullName) {
5
+ if (fullName && fullName.length > 0) {
6
+ var namePartsArray = fullName.trim().split(' ');
7
+ var firstInitial = '';
8
+ var lastInitial = '';
9
+ if (namePartsArray.length > 0) {
10
+ var firstName = namePartsArray[0];
11
+ if (firstName.length > 0) {
12
+ firstInitial = firstName[0];
13
+ }
14
+ if (namePartsArray.length > 1) {
15
+ var lastPart = namePartsArray[namePartsArray.length - 1];
16
+ if (lastPart.length > 0) {
17
+ lastInitial = lastPart[0];
18
+ }
19
+ }
20
+ }
21
+ var initials = "".concat(firstInitial).concat(lastInitial);
22
+ return initials.toUpperCase();
23
+ }
24
+ return '?';
25
+ };
26
+ exports.getInitials = getInitials;
@@ -1,3 +1,4 @@
1
1
  export * from './ImageUtils';
2
2
  export * from './DateUtils';
3
3
  export * from './TranslationUtils';
4
+ export * from './UserUtils';
@@ -17,3 +17,4 @@ exports.__esModule = true;
17
17
  __exportStar(require("./ImageUtils"), exports);
18
18
  __exportStar(require("./DateUtils"), exports);
19
19
  __exportStar(require("./TranslationUtils"), exports);
20
+ __exportStar(require("./UserUtils"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.core",
3
3
  "private": false,
4
- "version": "0.1.1",
4
+ "version": "0.1.2-next.11+1a44f32",
5
5
  "description": "SSI UI components Core",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -43,5 +43,5 @@
43
43
  "peerDependencies": {
44
44
  "react": ">= 16.8.0"
45
45
  },
46
- "gitHead": "067169b933897f36b96709293be6163ee21c317b"
46
+ "gitHead": "1a44f3296f14e9d6ede9349817dc380594956f14"
47
47
  }