@sphereon/ui-components.core 0.4.0 → 0.4.1-next.106

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.
@@ -1 +1,2 @@
1
- export declare const SSIRoundedEdgesCss: import("styled-components").RuleSet<object>;
1
+ import { RuleSet } from 'styled-components';
2
+ export declare const SSIRoundedEdgesCss: RuleSet<object>;
@@ -0,0 +1,66 @@
1
+ :root {
2
+ --border-radius-1: 0.125rem; /* 2px */
3
+ --border-radius-2: 0.25rem; /* 4px */
4
+ --border-radius-3: 0.375rem; /* 6px */
5
+ --border-radius-4: 0.5rem; /* 8px */
6
+ --border-radius-6: 0.75rem; /* 12px */
7
+ --border-radius-8: 1rem; /* 16px */
8
+ --border-radius-12: 1.5rem; /* 24px */
9
+ --border-radius-full: 50%; /* full radius */
10
+
11
+ --spacing-0_5: 0.125rem; /* 2px */
12
+ --spacing-1: 0.25rem; /* 4px */
13
+ --spacing-1_5: 0.375rem; /* 6px */
14
+ --spacing-2: 0.5rem; /* 8px */
15
+ --spacing-4: 1rem; /* 16px */
16
+
17
+ --color-grey-50: #FBFBFB;
18
+ --color-grey-100: #F2F2F2;
19
+ --color-grey-300: #C4C4C4;
20
+ --color-grey-600: #727272;
21
+ --color-grey-800: #303030;
22
+ --color-grey-900: #0A0D12;
23
+ --color-grey-1000: #ECECEC; /* FIXME UXDS-21 this color in the design has no token */
24
+ --color-grey-1100: #8D9099; /* FIXME UXDS-21 this color in the design has no token */
25
+
26
+ --color-brand-50: #ECE4FC;
27
+
28
+ --color-selenas-500: #A92CD5;
29
+
30
+ --color-warning-500: #ED8E00; /* FIXME UXDS-21 token name should be updated in figma design */
31
+
32
+ --color-magenta-500: #F4003A;
33
+
34
+ --color-pending-500: #0B81FF; /* FIXME UXDS-21 token name should be updated in figma design */
35
+
36
+ --color-purple-50: #E7DEFB;
37
+
38
+ --color-spring-green-500: #12D57B;
39
+
40
+ --color-aqua-500: #2CD5C5;
41
+
42
+ /* Role color mappings */
43
+ --color-holder: var(--color-selenas-500);
44
+ --color-issuer: var(--color-magenta-500);
45
+ --color-relying-party: var(--color-spring-green-500);
46
+ --color-admin: var(--color-aqua-500);
47
+
48
+
49
+ --font-family: 'Poppins';
50
+
51
+ --font-size-1: 0.625rem; /* 10px */
52
+ --font-size-4: 1rem; /* 16px */
53
+
54
+ --font-weight-regular: 400;
55
+
56
+ /* FIXME UXDS-21 temporary composite tokens until the tokens in figma have been fixed */
57
+ --text-style-1: normal var(--font-weight-regular) var(--font-size-1)/1.5 var(--font-family), sans-serif;
58
+ --text-style-2: normal var(--font-weight-regular) var(--font-size-4)/1.5 var(--font-family), sans-serif;
59
+
60
+ .font-1 {
61
+ font: var(--text-style-1);
62
+ }
63
+ .font-2 {
64
+ font: var(--text-style-2);
65
+ }
66
+ }
@@ -7,3 +7,4 @@ export * from './tab';
7
7
  export * from './toast';
8
8
  export * from './style';
9
9
  export * from './base64';
10
+ export * from './roles';
@@ -23,3 +23,4 @@ __exportStar(require("./tab"), exports);
23
23
  __exportStar(require("./toast"), exports);
24
24
  __exportStar(require("./style"), exports);
25
25
  __exportStar(require("./base64"), exports);
26
+ __exportStar(require("./roles"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum RoleType {
2
+ HOLDER = "HOLDER",
3
+ ISSUER = "ISSUER",
4
+ RELYING_PARTY = "RELYING_PARTY",
5
+ ADMIN = "ADMIN"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.RoleType = void 0;
4
+ var RoleType;
5
+ (function (RoleType) {
6
+ RoleType["HOLDER"] = "HOLDER";
7
+ RoleType["ISSUER"] = "ISSUER";
8
+ RoleType["RELYING_PARTY"] = "RELYING_PARTY";
9
+ RoleType["ADMIN"] = "ADMIN";
10
+ })(RoleType = exports.RoleType || (exports.RoleType = {}));
@@ -7,6 +7,6 @@ export type TabViewRoute = TabRoute & {
7
7
  content: ComponentType<unknown>;
8
8
  };
9
9
  export type TabNavigationState = {
10
- index: number;
10
+ activeRoute: string;
11
11
  routes: Array<TabViewRoute>;
12
12
  };
@@ -0,0 +1,6 @@
1
+ type OpaqueColorValue = symbol & {
2
+ __TYPE__: 'Color';
3
+ };
4
+ export type ColorValue = string | OpaqueColorValue;
5
+ export declare const parseColor: (color?: ColorValue) => string;
6
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.parseColor = void 0;
4
+ var parseColor = function (color) {
5
+ if (!color || typeof color !== 'string') {
6
+ return 'currentColor';
7
+ }
8
+ var trimmed = color.trim();
9
+ if (!trimmed) {
10
+ return 'currentColor';
11
+ }
12
+ if (trimmed.startsWith('--')) {
13
+ return "var(".concat(trimmed, ")");
14
+ }
15
+ if (trimmed.startsWith('$')) {
16
+ return "var(--".concat(trimmed.slice(1), ")");
17
+ }
18
+ if (trimmed.includes('.') && !trimmed.includes('(')) {
19
+ return "var(--".concat(trimmed.replace(/\./g, '-'), ")");
20
+ }
21
+ return trimmed;
22
+ };
23
+ exports.parseColor = parseColor;
@@ -4,3 +4,4 @@ export * from './TranslationUtils';
4
4
  export * from './UserUtils';
5
5
  export * from './FileUtils';
6
6
  export * from './TypeUtils';
7
+ export * from './ColorUtils';
@@ -20,3 +20,4 @@ __exportStar(require("./TranslationUtils"), exports);
20
20
  __exportStar(require("./UserUtils"), exports);
21
21
  __exportStar(require("./FileUtils"), exports);
22
22
  __exportStar(require("./TypeUtils"), exports);
23
+ __exportStar(require("./ColorUtils"), 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.4.0",
4
+ "version": "0.4.1-next.106+0bbf2e7",
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>",
@@ -12,9 +12,16 @@
12
12
  "Self-sovereign identity (SSI)"
13
13
  ],
14
14
  "scripts": {
15
- "build": "tsc",
15
+ "build": "pnpm run copy-css && tsc",
16
+ "copy-css": "copy-files-from-to",
16
17
  "build:clean": "tsc --build --clean && tsc --build"
17
18
  },
19
+ "copyFiles": [
20
+ {
21
+ "from": "src/**/*.css",
22
+ "to": "dist"
23
+ }
24
+ ],
18
25
  "source": "src/index.ts",
19
26
  "main": "dist/index.js",
20
27
  "types": "dist/index.d.ts",
@@ -41,5 +48,5 @@
41
48
  "peerDependencies": {
42
49
  "react": ">= 18.2"
43
50
  },
44
- "gitHead": "c63b21ea1ff8a2aef0b6de301d1a85143d9d8f8e"
51
+ "gitHead": "0bbf2e7286d9e0611f5b3111cdad7cad0ae44d08"
45
52
  }