@sphereon/ui-components.core 0.1.3-unstable.7 → 0.1.3-unstable.70
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.
- package/dist/localization/translations/en.json +6 -0
- package/dist/localization/translations/nl.json +6 -0
- package/dist/styles/ssi/colors.d.ts +6 -0
- package/dist/styles/ssi/colors.js +19 -2
- package/dist/types/button/index.d.ts +5 -0
- package/dist/types/button/index.js +9 -0
- package/dist/types/credential/index.d.ts +9 -1
- package/dist/types/credential/index.js +10 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/label/index.d.ts +4 -0
- package/dist/types/label/index.js +8 -0
- package/dist/types/style/index.d.ts +3 -0
- package/dist/types/style/index.js +7 -0
- package/dist/types/tab/index.d.ts +12 -0
- package/dist/types/tab/index.js +2 -0
- package/dist/types/toast/index.d.ts +7 -0
- package/dist/types/toast/index.js +8 -0
- package/dist/utils/TranslationUtils.js +12 -0
- package/package.json +2 -2
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
"credential_status_valid": "Valid",
|
|
7
7
|
"credential_status_expired": "Expired",
|
|
8
8
|
"credential_status_revoked": "Revoked",
|
|
9
|
+
"workflow_status_approved": "Approved",
|
|
10
|
+
"workflow_status_archived": "Archived",
|
|
11
|
+
"workflow_status_declined": "Declined",
|
|
12
|
+
"workflow_status_done": "Done",
|
|
13
|
+
"workflow_status_new": "New",
|
|
14
|
+
"workflow_status_pending": "Pending",
|
|
9
15
|
"status_missing": "Unknown",
|
|
10
16
|
"action_filter_caption": "Filter",
|
|
11
17
|
"action_show_caption": "Show:",
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
"credential_status_valid": "Geldig",
|
|
7
7
|
"credential_status_expired": "Verlopen",
|
|
8
8
|
"credential_status_revoked": "Ingetrokken",
|
|
9
|
+
"workflow_status_approved": "Goedgekeurd",
|
|
10
|
+
"workflow_status_archived": "Gearchiveerd",
|
|
11
|
+
"workflow_status_declined": "Afgewezen",
|
|
12
|
+
"workflow_status_done": "Klaar",
|
|
13
|
+
"workflow_status_new": "Nieuw",
|
|
14
|
+
"workflow_status_pending": "In behandeling",
|
|
9
15
|
"status_missing": "Onbekent",
|
|
10
16
|
"action_filter_caption": "Filter",
|
|
11
17
|
"action_show_caption": "Toon:",
|
|
@@ -14,4 +14,10 @@ type Border = 'dark' | 'light' | 'lightGrey';
|
|
|
14
14
|
export declare const borderColors: Record<Border, string>;
|
|
15
15
|
type Profile = 100 | 200 | 300 | 400 | 500;
|
|
16
16
|
export declare const profileColors: Record<Profile, string>;
|
|
17
|
+
type Alerts = 'primaryLight' | 'secondaryLight';
|
|
18
|
+
export declare const alertColors: Record<Alerts, string>;
|
|
19
|
+
type SelectionElement = 'primaryDark' | 'primaryBorderDark';
|
|
20
|
+
export declare const selectionElements: Record<SelectionElement, string>;
|
|
21
|
+
type Element = 'blue';
|
|
22
|
+
export declare const elements: Record<Element, string>;
|
|
17
23
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.profileColors = exports.borderColors = exports.gradientColors = exports.fontColors = exports.statusColors = exports.logoColors = exports.credentialCardColors = exports.backgroundColors = void 0;
|
|
3
|
+
exports.elements = exports.selectionElements = exports.alertColors = 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',
|
|
@@ -20,7 +20,13 @@ exports.statusColors = {
|
|
|
20
20
|
revoked: '#EE5309',
|
|
21
21
|
verified: '#00C249',
|
|
22
22
|
unverified: '#FF9900',
|
|
23
|
-
error: '#D74500'
|
|
23
|
+
error: '#D74500',
|
|
24
|
+
New: '#7276F7',
|
|
25
|
+
Approved: '#00C249',
|
|
26
|
+
Pending: '#0B81FF',
|
|
27
|
+
Archived: '#B3B3B3',
|
|
28
|
+
Declined: '#D74500',
|
|
29
|
+
Done: '#000'
|
|
24
30
|
};
|
|
25
31
|
exports.fontColors = {
|
|
26
32
|
dark: '#303030',
|
|
@@ -45,3 +51,14 @@ exports.profileColors = {
|
|
|
45
51
|
400: '#0B81FF',
|
|
46
52
|
500: '#BD2DFF'
|
|
47
53
|
};
|
|
54
|
+
exports.alertColors = {
|
|
55
|
+
primaryLight: '#FBFBFB',
|
|
56
|
+
secondaryLight: '#EBEBEB'
|
|
57
|
+
};
|
|
58
|
+
exports.selectionElements = {
|
|
59
|
+
primaryDark: '#0B81FF',
|
|
60
|
+
primaryBorderDark: '#FBFBFB'
|
|
61
|
+
};
|
|
62
|
+
exports.elements = {
|
|
63
|
+
blue: '#0B81FF'
|
|
64
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.ButtonIcon = void 0;
|
|
4
|
+
var ButtonIcon;
|
|
5
|
+
(function (ButtonIcon) {
|
|
6
|
+
ButtonIcon["ADD"] = "add";
|
|
7
|
+
ButtonIcon["ARROW_DOWN"] = "arrowDown";
|
|
8
|
+
ButtonIcon["FILTER"] = "filter";
|
|
9
|
+
})(ButtonIcon = exports.ButtonIcon || (exports.ButtonIcon = {}));
|
|
@@ -7,4 +7,12 @@ export declare enum IssuerStatus {
|
|
|
7
7
|
VERIFIED = "verified",
|
|
8
8
|
UNVERIFIED = "unverified"
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export declare enum WorkflowStatus {
|
|
11
|
+
NEW = "New",
|
|
12
|
+
APPROVED = "Approved",
|
|
13
|
+
DECLINED = "Declined",
|
|
14
|
+
PENDING = "Pending",
|
|
15
|
+
DONE = "Done",
|
|
16
|
+
ARCHIVED = "Archived"
|
|
17
|
+
}
|
|
18
|
+
export type LabelStatus = CredentialStatus | IssuerStatus | WorkflowStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.IssuerStatus = exports.CredentialStatus = void 0;
|
|
3
|
+
exports.WorkflowStatus = exports.IssuerStatus = exports.CredentialStatus = void 0;
|
|
4
4
|
var CredentialStatus;
|
|
5
5
|
(function (CredentialStatus) {
|
|
6
6
|
CredentialStatus["VALID"] = "valid";
|
|
@@ -12,3 +12,12 @@ var IssuerStatus;
|
|
|
12
12
|
IssuerStatus["VERIFIED"] = "verified";
|
|
13
13
|
IssuerStatus["UNVERIFIED"] = "unverified";
|
|
14
14
|
})(IssuerStatus = exports.IssuerStatus || (exports.IssuerStatus = {}));
|
|
15
|
+
var WorkflowStatus;
|
|
16
|
+
(function (WorkflowStatus) {
|
|
17
|
+
WorkflowStatus["NEW"] = "New";
|
|
18
|
+
WorkflowStatus["APPROVED"] = "Approved";
|
|
19
|
+
WorkflowStatus["DECLINED"] = "Declined";
|
|
20
|
+
WorkflowStatus["PENDING"] = "Pending";
|
|
21
|
+
WorkflowStatus["DONE"] = "Done";
|
|
22
|
+
WorkflowStatus["ARCHIVED"] = "Archived";
|
|
23
|
+
})(WorkflowStatus = exports.WorkflowStatus || (exports.WorkflowStatus = {}));
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -14,6 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
exports.__esModule = true;
|
|
17
|
+
__exportStar(require("./button"), exports);
|
|
17
18
|
__exportStar(require("./credential"), exports);
|
|
18
19
|
__exportStar(require("./image"), exports);
|
|
20
|
+
__exportStar(require("./label"), exports);
|
|
19
21
|
__exportStar(require("./localization"), exports);
|
|
22
|
+
__exportStar(require("./tab"), exports);
|
|
23
|
+
__exportStar(require("./toast"), exports);
|
|
24
|
+
__exportStar(require("./style"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.OpacityStyleEnum = void 0;
|
|
4
|
+
var OpacityStyleEnum;
|
|
5
|
+
(function (OpacityStyleEnum) {
|
|
6
|
+
OpacityStyleEnum[OpacityStyleEnum["DISABLED"] = 0.5] = "DISABLED";
|
|
7
|
+
})(OpacityStyleEnum = exports.OpacityStyleEnum || (exports.OpacityStyleEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export type TabRoute = {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export type TabViewRoute = TabRoute & {
|
|
7
|
+
content: ComponentType<unknown>;
|
|
8
|
+
};
|
|
9
|
+
export type TabNavigationState = {
|
|
10
|
+
index: number;
|
|
11
|
+
routes: Array<TabViewRoute>;
|
|
12
|
+
};
|
|
@@ -18,6 +18,18 @@ var getStatusTranslation = function (status) {
|
|
|
18
18
|
return Localization_1["default"].translate('credential_status_expired');
|
|
19
19
|
case types_1.CredentialStatus.REVOKED:
|
|
20
20
|
return Localization_1["default"].translate('credential_status_revoked');
|
|
21
|
+
case types_1.WorkflowStatus.APPROVED:
|
|
22
|
+
return Localization_1["default"].translate('workflow_status_approved');
|
|
23
|
+
case types_1.WorkflowStatus.ARCHIVED:
|
|
24
|
+
return Localization_1["default"].translate('workflow_status_archived');
|
|
25
|
+
case types_1.WorkflowStatus.DECLINED:
|
|
26
|
+
return Localization_1["default"].translate('workflow_status_declined');
|
|
27
|
+
case types_1.WorkflowStatus.DONE:
|
|
28
|
+
return Localization_1["default"].translate('workflow_status_done');
|
|
29
|
+
case types_1.WorkflowStatus.NEW:
|
|
30
|
+
return Localization_1["default"].translate('workflow_status_new');
|
|
31
|
+
case types_1.WorkflowStatus.PENDING:
|
|
32
|
+
return Localization_1["default"].translate('workflow_status_pending');
|
|
21
33
|
default:
|
|
22
34
|
return Localization_1["default"].translate('status_missing');
|
|
23
35
|
}
|
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.3-unstable.
|
|
4
|
+
"version": "0.1.3-unstable.70+11f103d",
|
|
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": "
|
|
46
|
+
"gitHead": "11f103d4534c6406aa2e3f11d7694788353bb9ee"
|
|
47
47
|
}
|