@vdatacloud/cx-commons 0.2.1 → 0.3.0
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { getTranslator } from '../sdk/i18n';
|
|
|
3
3
|
import '../sdk/cx-messages';
|
|
4
4
|
|
|
5
5
|
export interface Props {
|
|
6
|
-
status: 'DRAFT' | 'FUNDED' | 'ACTIVE' | 'PROPOSED' | 'DISPUTED' | 'ARBITRATION' | 'SETTLED' | 'AWAITING_CUSTODY_APPROVAL' | 'FIAT_PENDING' | 'LAPSED' | string;
|
|
6
|
+
status: 'DRAFT' | 'FUNDED' | 'ACTIVE' | 'PROPOSED' | 'DISPUTED' | 'ARBITRATION' | 'SETTLED' | 'AWAITING_RELEASE_APPROVAL' | 'AWAITING_CUSTODY_APPROVAL' | 'FIAT_PENDING' | 'LAPSED' | string;
|
|
7
7
|
size?: 'sm' | 'md';
|
|
8
8
|
colorClass?: string;
|
|
9
9
|
/** Overrides the translated label (cx.status.<STATUS>). */
|
|
@@ -24,6 +24,8 @@ const badgeStyles: Record<string, string> = {
|
|
|
24
24
|
DISPUTED: 'text-status-disputed bg-status-disputed/10 border-status-disputed/20 dark:bg-status-disputed/5 dark:border-status-disputed/10',
|
|
25
25
|
ARBITRATION: 'text-status-arbitration bg-status-arbitration/10 border-status-arbitration/20 dark:bg-status-arbitration/5 dark:border-status-arbitration/10',
|
|
26
26
|
SETTLED: 'text-status-settled bg-status-settled/10 border-status-settled/20 dark:bg-status-settled/5 dark:border-status-settled/10',
|
|
27
|
+
AWAITING_RELEASE_APPROVAL: 'text-status-awaiting-release-approval bg-status-awaiting-release-approval/10 border-status-awaiting-release-approval/20 dark:bg-status-awaiting-release-approval/5 dark:border-status-awaiting-release-approval/10',
|
|
28
|
+
// Deprecated (daml-escrow Phase 82.4b renamed it AWAITING_RELEASE_APPROVAL).
|
|
27
29
|
AWAITING_CUSTODY_APPROVAL: 'text-status-awaiting-custody-approval bg-status-awaiting-custody-approval/10 border-status-awaiting-custody-approval/20 dark:bg-status-awaiting-custody-approval/5 dark:border-status-awaiting-custody-approval/10',
|
|
28
30
|
FIAT_PENDING: 'text-status-fiat-pending bg-status-fiat-pending/10 border-status-fiat-pending/20 dark:bg-status-fiat-pending/5 dark:border-status-fiat-pending/10',
|
|
29
31
|
LAPSED: 'text-status-lapsed bg-status-lapsed/10 border-status-lapsed/20 dark:bg-status-lapsed/5 dark:border-status-lapsed/10',
|
package/src/sdk/cx-messages.ts
CHANGED
|
@@ -55,7 +55,9 @@ export const cxMessages = {
|
|
|
55
55
|
DISPUTED: 'Disputed',
|
|
56
56
|
ARBITRATION: 'Arbitration',
|
|
57
57
|
SETTLED: 'Settled',
|
|
58
|
-
|
|
58
|
+
AWAITING_RELEASE_APPROVAL: 'Awaiting release approval',
|
|
59
|
+
/** @deprecated daml-escrow Phase 82.4b: AWAITING_RELEASE_APPROVAL. */
|
|
60
|
+
AWAITING_CUSTODY_APPROVAL: 'Awaiting release approval',
|
|
59
61
|
FIAT_PENDING: 'Fiat payment pending',
|
|
60
62
|
LAPSED: 'Lapsed',
|
|
61
63
|
},
|
|
@@ -121,7 +123,9 @@ export const cxMessages = {
|
|
|
121
123
|
DISPUTED: 'En litige',
|
|
122
124
|
ARBITRATION: 'Arbitrage',
|
|
123
125
|
SETTLED: 'Réglé',
|
|
124
|
-
|
|
126
|
+
AWAITING_RELEASE_APPROVAL: 'En attente de l’approbation du déblocage',
|
|
127
|
+
/** @deprecated daml-escrow Phase 82.4b: AWAITING_RELEASE_APPROVAL. */
|
|
128
|
+
AWAITING_CUSTODY_APPROVAL: 'En attente de l’approbation du déblocage',
|
|
125
129
|
FIAT_PENDING: 'Paiement fiat en attente',
|
|
126
130
|
LAPSED: 'Expiré',
|
|
127
131
|
},
|
package/src/styles/global.css
CHANGED
|
@@ -94,7 +94,9 @@
|
|
|
94
94
|
--color-status-disputed: #fd5e53; /* Sunset Orange */
|
|
95
95
|
--color-status-arbitration: #ee204d; /* Red */
|
|
96
96
|
--color-status-settled: #926eae; /* Violet (Purple) */
|
|
97
|
-
--color-status-awaiting-
|
|
97
|
+
--color-status-awaiting-release-approval: #ff7538; /* Orange */
|
|
98
|
+
/* Deprecated alias (daml-escrow Phase 82.4b renamed the state). */
|
|
99
|
+
--color-status-awaiting-custody-approval: var(--color-status-awaiting-release-approval);
|
|
98
100
|
--color-status-fiat-pending: #7366bd; /* Blue Violet */
|
|
99
101
|
--color-status-lapsed: #cb4154; /* Brick Red */
|
|
100
102
|
|