@sphereon/ui-components.core 0.4.1-unstable.4 → 0.4.1-unstable.40

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.
@@ -15,19 +15,33 @@
15
15
 
16
16
  --color-grey-50: #FBFBFB;
17
17
  --color-grey-600: #727272;
18
+ --color-grey-800: #303030;
18
19
  --color-grey-900: #0A0D12;
19
- --color-grey-1000: #ECECEC; /* FIXME this color in the design has no token */
20
- --color-grey-1100: #8D9099; /* FIXME this color in the design has no token */
20
+ --color-grey-1000: #ECECEC; /* FIXME UXDS-21 this color in the design has no token */
21
+ --color-grey-1100: #8D9099; /* FIXME UXDS-21 this color in the design has no token */
21
22
 
22
23
  --color-brand-50: #ECE4FC;
23
24
 
24
25
  --color-selenas-500: #A92CD5;
25
26
 
26
- --color-warning-500: #ED8E00; /* FIXME token name should be updated in figma design */
27
+ --color-warning-500: #ED8E00; /* FIXME UXDS-21 token name should be updated in figma design */
27
28
 
28
- --color-magenta-500: #F4003A;
29
+ --color-magenta-500: #FF00FF;
30
+
31
+ --color-pending-500: #0B81FF; /* FIXME UXDS-21 token name should be updated in figma design */
32
+
33
+ --color-crimson-500: #F4003A;
34
+
35
+ --color-emerald-500: #12D57B;
36
+
37
+ --color-cyan-500: #2CD5C5;
38
+
39
+ /* Role color mappings */
40
+ --color-holder: var(--color-selenas-500);
41
+ --color-issuer: var(--color-crimson-500);
42
+ --color-relying-party: var(--color-emerald-500);
43
+ --color-admin: var(--color-cyan-500);
29
44
 
30
- --color-pending-500: #0B81FF; /* FIXME token name should be updated in figma design */
31
45
 
32
46
  --font-family: 'Poppins';
33
47
 
@@ -36,7 +50,7 @@
36
50
 
37
51
  --font-weight-regular: 400;
38
52
 
39
- /* FIXME temporary composite tokens until the tokens in figma have been fixed */
53
+ /* FIXME UXDS-21 temporary composite tokens until the tokens in figma have been fixed */
40
54
  --text-style-1: normal var(--font-weight-regular) var(--font-size-1)/1.5 var(--font-family), sans-serif;
41
55
  --text-style-2: normal var(--font-weight-regular) var(--font-size-4)/1.5 var(--font-family), sans-serif;
42
56
 
@@ -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 './color';
@@ -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("./color"), 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.4+0380e4c",
4
+ "version": "0.4.1-unstable.40+b606b86",
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": "0380e4c4176cc787948dc9f495933a1f24404036"
51
+ "gitHead": "b606b867ee371992040bc283d843a4beff75d5db"
47
52
  }