@sphereon/ui-components.core 0.4.1-unstable.6 → 0.4.1-unstable.61

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>;
@@ -11,10 +11,14 @@
11
11
  --spacing-0_5: 0.125rem; /* 2px */
12
12
  --spacing-1: 0.25rem; /* 4px */
13
13
  --spacing-1_5: 0.375rem; /* 6px */
14
+ --spacing-2: 0.5rem; /* 8px */
14
15
  --spacing-4: 1rem; /* 16px */
15
16
 
16
17
  --color-grey-50: #FBFBFB;
18
+ --color-grey-100: #F2F2F2;
19
+ --color-grey-300: #C4C4C4;
17
20
  --color-grey-600: #727272;
21
+ --color-grey-800: #303030;
18
22
  --color-grey-900: #0A0D12;
19
23
  --color-grey-1000: #ECECEC; /* FIXME UXDS-21 this color in the design has no token */
20
24
  --color-grey-1100: #8D9099; /* FIXME UXDS-21 this color in the design has no token */
@@ -29,6 +33,19 @@
29
33
 
30
34
  --color-pending-500: #0B81FF; /* FIXME UXDS-21 token name should be updated in figma design */
31
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
+
32
49
  --font-family: 'Poppins';
33
50
 
34
51
  --font-size-1: 0.625rem; /* 10px */
@@ -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.1-unstable.6+93797eb",
4
+ "version": "0.4.1-unstable.61+468b647",
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,10 +12,16 @@
12
12
  "Self-sovereign identity (SSI)"
13
13
  ],
14
14
  "scripts": {
15
- "build": "tsc && pnpm run copy-css",
16
- "copy-css": "cpy src/**/*.css dist --parents",
15
+ "build": "pnpm run copy-css && tsc",
16
+ "copy-css": "copy-files-from-to",
17
17
  "build:clean": "tsc --build --clean && tsc --build"
18
18
  },
19
+ "copyFiles": [
20
+ {
21
+ "from": "src/**/*.css",
22
+ "to": "dist"
23
+ }
24
+ ],
19
25
  "source": "src/index.ts",
20
26
  "main": "dist/index.js",
21
27
  "types": "dist/index.d.ts",
@@ -36,12 +42,11 @@
36
42
  "@types/i18n-js": "^3.8.4",
37
43
  "@types/lodash.memoize": "^4.1.7",
38
44
  "@types/react": "~18.2.67",
39
- "cpy-cli": "^5.0.0",
40
45
  "react": "18.2.0",
41
46
  "typescript": "4.9.5"
42
47
  },
43
48
  "peerDependencies": {
44
49
  "react": ">= 18.2"
45
50
  },
46
- "gitHead": "93797ebbf287a1884ad23fd69dafd87f6edfdf43"
51
+ "gitHead": "468b6472102069b550cb776fbdf4f1b666ba7fd6"
47
52
  }