@sphereon/ui-components.core 0.4.1-unstable.14 → 0.4.1-unstable.141

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,9 +11,12 @@
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;
18
21
  --color-grey-800: #303030;
19
22
  --color-grey-900: #0A0D12;
@@ -30,6 +33,19 @@
30
33
 
31
34
  --color-pending-500: #0B81FF; /* FIXME UXDS-21 token name should be updated in figma design */
32
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
+
33
49
  --font-family: 'Poppins';
34
50
 
35
51
  --font-size-1: 0.625rem; /* 10px */
@@ -1,6 +1,7 @@
1
1
  export declare enum ButtonIcon {
2
2
  ADD = "add",
3
3
  ARROW_DOWN = "arrowDown",
4
+ ARROW_UP = "arrowUp",
4
5
  MEATBALLS = "meatballs",
5
6
  EDIT = "edit",
6
7
  COPY = "copy",
@@ -5,6 +5,7 @@ var ButtonIcon;
5
5
  (function (ButtonIcon) {
6
6
  ButtonIcon["ADD"] = "add";
7
7
  ButtonIcon["ARROW_DOWN"] = "arrowDown";
8
+ ButtonIcon["ARROW_UP"] = "arrowUp";
8
9
  ButtonIcon["MEATBALLS"] = "meatballs";
9
10
  ButtonIcon["EDIT"] = "edit";
10
11
  ButtonIcon["COPY"] = "copy";
@@ -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.1-unstable.14+980c44f",
4
+ "version": "0.4.1-unstable.141+4bc96b5",
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>",
@@ -48,5 +48,5 @@
48
48
  "peerDependencies": {
49
49
  "react": ">= 18.2"
50
50
  },
51
- "gitHead": "980c44ff8cb8b1c4fc86c1420ab771d088974d21"
51
+ "gitHead": "4bc96b5e72836a240572c862ee15dd2c135bbd1c"
52
52
  }