@tantainnovative/ndpr-toolkit 3.7.0 → 3.10.1
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/CHANGELOG.md +200 -0
- package/README.md +146 -1
- package/dist/{chunk-SJRIOZ4K.mjs → chunk-EFIWANHF.mjs} +1 -1
- package/dist/chunk-GQYBS3A7.mjs +0 -0
- package/dist/chunk-OZCNFB5C.js +1 -0
- package/dist/{chunk-RXZFYBUJ.js → chunk-XS3Z4UT7.js} +1 -1
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/cross-border-lite.d.mts +141 -0
- package/dist/cross-border-lite.d.ts +141 -0
- package/dist/cross-border-lite.js +2 -0
- package/dist/cross-border-lite.mjs +2 -0
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/headless.d.mts +2391 -0
- package/dist/headless.d.ts +2391 -0
- package/dist/headless.js +2 -0
- package/dist/headless.mjs +2 -0
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +123 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lawful-basis-lite.d.mts +153 -0
- package/dist/lawful-basis-lite.d.ts +153 -0
- package/dist/lawful-basis-lite.js +2 -0
- package/dist/lawful-basis-lite.mjs +2 -0
- package/dist/presets-dsr.d.mts +25 -0
- package/dist/presets-dsr.d.ts +25 -0
- package/dist/presets-dsr.js +1 -1
- package/dist/presets-dsr.mjs +1 -1
- package/dist/presets.d.mts +25 -0
- package/dist/presets.d.ts +25 -0
- package/dist/presets.js +1 -1
- package/dist/presets.mjs +1 -1
- package/dist/ropa-lite.d.mts +218 -0
- package/dist/ropa-lite.d.ts +218 -0
- package/dist/ropa-lite.js +2 -0
- package/dist/ropa-lite.mjs +2 -0
- package/dist/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Adequacy status of a destination country
|
|
5
|
+
*/
|
|
6
|
+
export declare type AdequacyStatus = 'adequate' | 'inadequate' | 'pending_review' | 'unknown';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Summary of cross-border transfer compliance
|
|
10
|
+
*/
|
|
11
|
+
export declare interface CrossBorderSummary {
|
|
12
|
+
/** Total number of active transfers */
|
|
13
|
+
totalActiveTransfers: number;
|
|
14
|
+
/** Breakdown by transfer mechanism */
|
|
15
|
+
byMechanism: Record<TransferMechanism, number>;
|
|
16
|
+
/** Breakdown by adequacy status */
|
|
17
|
+
byAdequacy: Record<AdequacyStatus, number>;
|
|
18
|
+
/** Transfers pending NDPC approval */
|
|
19
|
+
pendingApproval: CrossBorderTransfer[];
|
|
20
|
+
/** Transfers due for review */
|
|
21
|
+
dueForReview: CrossBorderTransfer[];
|
|
22
|
+
/** Transfers missing TIA */
|
|
23
|
+
missingTIA: CrossBorderTransfer[];
|
|
24
|
+
/** High-risk transfers */
|
|
25
|
+
highRiskTransfers: CrossBorderTransfer[];
|
|
26
|
+
/** Last updated timestamp */
|
|
27
|
+
lastUpdated: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Represents a cross-border data transfer record
|
|
32
|
+
*/
|
|
33
|
+
export declare interface CrossBorderTransfer {
|
|
34
|
+
/** Unique identifier */
|
|
35
|
+
id: string;
|
|
36
|
+
/** Destination country or territory */
|
|
37
|
+
destinationCountry: string;
|
|
38
|
+
/** ISO country code */
|
|
39
|
+
destinationCountryCode?: string;
|
|
40
|
+
/** Adequacy status of the destination */
|
|
41
|
+
adequacyStatus: AdequacyStatus;
|
|
42
|
+
/** The transfer mechanism being relied upon */
|
|
43
|
+
transferMechanism: TransferMechanism;
|
|
44
|
+
/** Categories of personal data being transferred */
|
|
45
|
+
dataCategories: string[];
|
|
46
|
+
/** Whether sensitive personal data is included */
|
|
47
|
+
includesSensitiveData: boolean;
|
|
48
|
+
/** Estimated number of data subjects whose data is transferred */
|
|
49
|
+
estimatedDataSubjects?: number;
|
|
50
|
+
/** Name of the recipient organization */
|
|
51
|
+
recipientOrganization: string;
|
|
52
|
+
/** Contact details of the recipient */
|
|
53
|
+
recipientContact: {
|
|
54
|
+
name: string;
|
|
55
|
+
email: string;
|
|
56
|
+
phone?: string;
|
|
57
|
+
address?: string;
|
|
58
|
+
};
|
|
59
|
+
/** Purpose of the data transfer */
|
|
60
|
+
purpose: string;
|
|
61
|
+
/** Safeguards in place to protect the data */
|
|
62
|
+
safeguards: string[];
|
|
63
|
+
/** Risk assessment summary */
|
|
64
|
+
riskAssessment: string;
|
|
65
|
+
/** Risk level of the transfer */
|
|
66
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
67
|
+
/** NDPC approval details (required for some transfer mechanisms) */
|
|
68
|
+
ndpcApproval?: {
|
|
69
|
+
required: boolean;
|
|
70
|
+
applied: boolean;
|
|
71
|
+
approved?: boolean;
|
|
72
|
+
referenceNumber?: string;
|
|
73
|
+
appliedAt?: number;
|
|
74
|
+
approvedAt?: number;
|
|
75
|
+
};
|
|
76
|
+
/** Whether a Transfer Impact Assessment has been conducted */
|
|
77
|
+
tiaCompleted: boolean;
|
|
78
|
+
/** Reference to the TIA document */
|
|
79
|
+
tiaReference?: string;
|
|
80
|
+
/** Frequency of the transfer */
|
|
81
|
+
frequency: 'one_time' | 'periodic' | 'continuous';
|
|
82
|
+
/** Start date of the transfer */
|
|
83
|
+
startDate: number;
|
|
84
|
+
/** End date of the transfer (if applicable) */
|
|
85
|
+
endDate?: number;
|
|
86
|
+
/** Status of the transfer */
|
|
87
|
+
status: 'active' | 'suspended' | 'terminated' | 'pending_approval';
|
|
88
|
+
/** Timestamp when the record was created */
|
|
89
|
+
createdAt: number;
|
|
90
|
+
/** Timestamp when the record was last updated */
|
|
91
|
+
updatedAt: number;
|
|
92
|
+
/** Next review date */
|
|
93
|
+
reviewDate?: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Read-only, lightweight variant of {@link CrossBorderTransferManager}. Renders the
|
|
98
|
+
* list + summary view without pulling in the full adequacy dataset, and exposes
|
|
99
|
+
* no add/edit/delete affordances.
|
|
100
|
+
*/
|
|
101
|
+
export declare const CrossBorderTransferManagerLite: React__default.FC<CrossBorderTransferManagerLiteProps>;
|
|
102
|
+
|
|
103
|
+
export declare interface CrossBorderTransferManagerLiteClassNames {
|
|
104
|
+
root?: string;
|
|
105
|
+
header?: string;
|
|
106
|
+
title?: string;
|
|
107
|
+
summary?: string;
|
|
108
|
+
summaryCard?: string;
|
|
109
|
+
table?: string;
|
|
110
|
+
tableHeader?: string;
|
|
111
|
+
tableRow?: string;
|
|
112
|
+
statusBadge?: string;
|
|
113
|
+
riskBadge?: string;
|
|
114
|
+
riskAlert?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export declare interface CrossBorderTransferManagerLiteProps {
|
|
118
|
+
transfers: CrossBorderTransfer[];
|
|
119
|
+
title?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
className?: string;
|
|
122
|
+
classNames?: CrossBorderTransferManagerLiteClassNames;
|
|
123
|
+
unstyled?: boolean;
|
|
124
|
+
showSummary?: boolean;
|
|
125
|
+
showRiskAlerts?: boolean;
|
|
126
|
+
onTransferClick?: (transfer: CrossBorderTransfer) => void;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Cross-Border Data Transfer types aligned with NDPA 2023 Part VIII (Sections 41-43).
|
|
131
|
+
* Personal data may only be transferred outside Nigeria under the bases listed in
|
|
132
|
+
* Section 41(1), where Section 42 defines adequacy and Section 43 lists derogations.
|
|
133
|
+
*
|
|
134
|
+
* Note: These are guidance labels — not legal advice. Verify with your DPO or counsel.
|
|
135
|
+
*/
|
|
136
|
+
/**
|
|
137
|
+
* Transfer mechanisms recognized under the NDPA
|
|
138
|
+
*/
|
|
139
|
+
export declare type TransferMechanism = 'adequacy_decision' | 'standard_clauses' | 'binding_corporate_rules' | 'ndpc_authorization' | 'explicit_consent' | 'contract_performance' | 'public_interest' | 'legal_claims' | 'vital_interests';
|
|
140
|
+
|
|
141
|
+
export { }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkAME4HJR4_js=require('./chunk-AME4HJR4.js');require('./chunk-RFPLZDIO.js');var react=require('react'),jsxRuntime=require('react/jsx-runtime');var _={adequacy_decision:"Adequacy Decision (Section 41)",standard_clauses:"Standard Contractual Clauses (Section 42)",binding_corporate_rules:"Binding Corporate Rules (Section 43)",ndpc_authorization:"NDPC Authorization (Section 44)",explicit_consent:"Explicit Consent (Section 45(a))",contract_performance:"Contract Performance (Section 45(b))",public_interest:"Public Interest (Section 45(c))",legal_claims:"Legal Claims (Section 45(d))",vital_interests:"Vital Interests (Section 45(e))"},x={adequate:"Adequate",inadequate:"Inadequate",pending_review:"Pending Review",unknown:"Unknown"},B={active:"Active",suspended:"Suspended",terminated:"Terminated",pending_approval:"Pending Approval"},M={active:"ndpr-badge ndpr-badge--success",suspended:"ndpr-badge ndpr-badge--warning",terminated:"ndpr-badge ndpr-badge--neutral",pending_approval:"ndpr-badge ndpr-badge--info"},w={low:"ndpr-badge ndpr-badge--success",medium:"ndpr-badge ndpr-badge--warning",high:"ndpr-badge ndpr-badge--destructive"},L=new Set(["standard_clauses","binding_corporate_rules","ndpc_authorization"]),q=({transfers:c,title:T="Cross-Border Data Transfer Manager",description:y="Manage and document cross-border personal data transfers in compliance with NDPA 2023 Part VI (Sections 41-45).",className:S="",classNames:r,unstyled:a,showSummary:k=true,showRiskAlerts:R=true,onTransferClick:l})=>{let f=react.useMemo(()=>[...c].sort((e,o)=>o.updatedAt-e.updatedAt),[c]),n=react.useMemo(()=>{var b,h,C;let e=0,o=0,s=0,m=0,v=0;for(let p of c){let u=p.status==="active";u&&(e+=1),(p.status==="pending_approval"||(b=p.ndpcApproval)!=null&&b.required&&!((h=p.ndpcApproval)!=null&&h.approved))&&(o+=1),p.riskLevel==="high"&&u&&(s+=1),!p.tiaCompleted&&u&&(m+=1),((C=p.ndpcApproval)!=null&&C.required||L.has(p.transferMechanism))&&(v+=1);}return {totalActiveTransfers:e,pendingApproval:o,highRiskTransfers:s,missingTIA:m,ndpcApprovalRequired:v}},[c]),g=typeof l=="function";return jsxRuntime.jsxs("div",{"data-ndpr-component":"cross-border-transfer-manager-lite",className:chunkAME4HJR4_js.a(`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${S}`,r==null?void 0:r.root,a),children:[jsxRuntime.jsxs("div",{className:chunkAME4HJR4_js.a("",r==null?void 0:r.header,a),children:[jsxRuntime.jsx("h2",{className:chunkAME4HJR4_js.a("ndpr-section-heading",r==null?void 0:r.title,a),children:T}),jsxRuntime.jsx("p",{className:"ndpr-card__subtitle",children:y})]}),k&&jsxRuntime.jsx("div",{role:"status","aria-label":"Transfer compliance summary",className:chunkAME4HJR4_js.a("mb-6 grid grid-cols-2 md:grid-cols-4 gap-4",r==null?void 0:r.summary,a),children:[["info",n.totalActiveTransfers,"Active Transfers"],["info",n.pendingApproval,"Pending Approval"],["destructive",n.highRiskTransfers,"High Risk"],["warning",n.missingTIA,"Missing TIA"]].map(([e,o,s])=>jsxRuntime.jsxs("div",{className:chunkAME4HJR4_js.a(`ndpr-alert ndpr-alert--${e}`,r==null?void 0:r.summaryCard,a),children:[jsxRuntime.jsx("p",{className:`ndpr-stat__value ndpr-text-${e}`,children:o}),jsxRuntime.jsx("p",{className:`text-sm ndpr-text-${e}`,children:s})]},s))}),R&&(n.highRiskTransfers>0||n.ndpcApprovalRequired>0)&&jsxRuntime.jsxs("div",{role:"alert","aria-label":"Cross-border transfer risk alerts",className:chunkAME4HJR4_js.a("mb-6 ndpr-alert ndpr-alert--warning",r==null?void 0:r.riskAlert,a),children:[jsxRuntime.jsx("p",{className:"text-sm font-medium ndpr-text-warning mb-1",children:"Risk alerts"}),jsxRuntime.jsxs("ul",{className:"list-disc list-inside text-sm ndpr-text-warning",children:[n.highRiskTransfers>0&&jsxRuntime.jsxs("li",{children:[n.highRiskTransfers," high-risk active transfer",n.highRiskTransfers===1?"":"s"," require enhanced safeguards."]}),n.ndpcApprovalRequired>0&&jsxRuntime.jsxs("li",{children:[n.ndpcApprovalRequired," transfer",n.ndpcApprovalRequired===1?"":"s"," use a mechanism that typically requires NDPC approval."]})]})]}),jsxRuntime.jsx("h3",{className:"text-lg font-medium mb-3",children:"Transfers"}),f.length===0?jsxRuntime.jsx("p",{className:"ndpr-card__subtitle",children:"No cross-border transfers found."}):jsxRuntime.jsx("div",{className:"overflow-x-auto",children:jsxRuntime.jsxs("table",{className:chunkAME4HJR4_js.a("w-full text-left text-sm",r==null?void 0:r.table,a),"aria-label":"Cross-border transfers",children:[jsxRuntime.jsx("thead",{className:chunkAME4HJR4_js.a("ndpr-text-muted",r==null?void 0:r.tableHeader,a),children:jsxRuntime.jsx("tr",{children:["Destination","Recipient","Mechanism","Adequacy","Risk","Status"].map(e=>jsxRuntime.jsx("th",{className:"py-2 pr-4 font-medium",children:e},e))})}),jsxRuntime.jsx("tbody",{children:f.map(e=>{let o=g?()=>l(e):void 0;return jsxRuntime.jsxs("tr",{className:chunkAME4HJR4_js.a(`border-t border-gray-100 dark:border-gray-700 ${g?"cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700":""}`,r==null?void 0:r.tableRow,a),role:g?"button":void 0,tabIndex:g?0:void 0,"aria-label":g?`View transfer to ${e.destinationCountry}`:void 0,onClick:o,onKeyDown:g?s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),o());}:void 0,children:[jsxRuntime.jsxs("td",{className:"py-2 pr-4",children:[jsxRuntime.jsx("div",{className:"font-medium",children:e.destinationCountry}),e.destinationCountryCode&&jsxRuntime.jsx("div",{className:"text-xs ndpr-text-muted",children:e.destinationCountryCode})]}),jsxRuntime.jsx("td",{className:"py-2 pr-4",children:e.recipientOrganization}),jsxRuntime.jsx("td",{className:"py-2 pr-4",children:_[e.transferMechanism]}),jsxRuntime.jsx("td",{className:"py-2 pr-4",children:x[e.adequacyStatus]}),jsxRuntime.jsx("td",{className:"py-2 pr-4",children:jsxRuntime.jsxs("span",{className:chunkAME4HJR4_js.a(`px-2 py-1 rounded text-xs font-medium ${w[e.riskLevel]}`,r==null?void 0:r.riskBadge,a),children:[e.riskLevel.charAt(0).toUpperCase()+e.riskLevel.slice(1)," Risk"]})}),jsxRuntime.jsx("td",{className:"py-2 pr-4",children:jsxRuntime.jsx("span",{className:chunkAME4HJR4_js.a(`px-2 py-1 rounded text-xs font-medium ${M[e.status]}`,r==null?void 0:r.statusBadge,a),children:B[e.status]})})]},e.id)})})]})})]})};exports.CrossBorderTransferManagerLite=q;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-SFGW37LE.mjs';import'./chunk-ZJYULEER.mjs';import {useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';var _={adequacy_decision:"Adequacy Decision (Section 41)",standard_clauses:"Standard Contractual Clauses (Section 42)",binding_corporate_rules:"Binding Corporate Rules (Section 43)",ndpc_authorization:"NDPC Authorization (Section 44)",explicit_consent:"Explicit Consent (Section 45(a))",contract_performance:"Contract Performance (Section 45(b))",public_interest:"Public Interest (Section 45(c))",legal_claims:"Legal Claims (Section 45(d))",vital_interests:"Vital Interests (Section 45(e))"},x={adequate:"Adequate",inadequate:"Inadequate",pending_review:"Pending Review",unknown:"Unknown"},B={active:"Active",suspended:"Suspended",terminated:"Terminated",pending_approval:"Pending Approval"},M={active:"ndpr-badge ndpr-badge--success",suspended:"ndpr-badge ndpr-badge--warning",terminated:"ndpr-badge ndpr-badge--neutral",pending_approval:"ndpr-badge ndpr-badge--info"},w={low:"ndpr-badge ndpr-badge--success",medium:"ndpr-badge ndpr-badge--warning",high:"ndpr-badge ndpr-badge--destructive"},L=new Set(["standard_clauses","binding_corporate_rules","ndpc_authorization"]),q=({transfers:c,title:T="Cross-Border Data Transfer Manager",description:y="Manage and document cross-border personal data transfers in compliance with NDPA 2023 Part VI (Sections 41-45).",className:S="",classNames:r,unstyled:a$1,showSummary:k=true,showRiskAlerts:R=true,onTransferClick:l})=>{let f=useMemo(()=>[...c].sort((e,o)=>o.updatedAt-e.updatedAt),[c]),n=useMemo(()=>{var b,h,C;let e=0,o=0,s=0,m=0,v=0;for(let p of c){let u=p.status==="active";u&&(e+=1),(p.status==="pending_approval"||(b=p.ndpcApproval)!=null&&b.required&&!((h=p.ndpcApproval)!=null&&h.approved))&&(o+=1),p.riskLevel==="high"&&u&&(s+=1),!p.tiaCompleted&&u&&(m+=1),((C=p.ndpcApproval)!=null&&C.required||L.has(p.transferMechanism))&&(v+=1);}return {totalActiveTransfers:e,pendingApproval:o,highRiskTransfers:s,missingTIA:m,ndpcApprovalRequired:v}},[c]),g=typeof l=="function";return jsxs("div",{"data-ndpr-component":"cross-border-transfer-manager-lite",className:a(`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${S}`,r==null?void 0:r.root,a$1),children:[jsxs("div",{className:a("",r==null?void 0:r.header,a$1),children:[jsx("h2",{className:a("ndpr-section-heading",r==null?void 0:r.title,a$1),children:T}),jsx("p",{className:"ndpr-card__subtitle",children:y})]}),k&&jsx("div",{role:"status","aria-label":"Transfer compliance summary",className:a("mb-6 grid grid-cols-2 md:grid-cols-4 gap-4",r==null?void 0:r.summary,a$1),children:[["info",n.totalActiveTransfers,"Active Transfers"],["info",n.pendingApproval,"Pending Approval"],["destructive",n.highRiskTransfers,"High Risk"],["warning",n.missingTIA,"Missing TIA"]].map(([e,o,s])=>jsxs("div",{className:a(`ndpr-alert ndpr-alert--${e}`,r==null?void 0:r.summaryCard,a$1),children:[jsx("p",{className:`ndpr-stat__value ndpr-text-${e}`,children:o}),jsx("p",{className:`text-sm ndpr-text-${e}`,children:s})]},s))}),R&&(n.highRiskTransfers>0||n.ndpcApprovalRequired>0)&&jsxs("div",{role:"alert","aria-label":"Cross-border transfer risk alerts",className:a("mb-6 ndpr-alert ndpr-alert--warning",r==null?void 0:r.riskAlert,a$1),children:[jsx("p",{className:"text-sm font-medium ndpr-text-warning mb-1",children:"Risk alerts"}),jsxs("ul",{className:"list-disc list-inside text-sm ndpr-text-warning",children:[n.highRiskTransfers>0&&jsxs("li",{children:[n.highRiskTransfers," high-risk active transfer",n.highRiskTransfers===1?"":"s"," require enhanced safeguards."]}),n.ndpcApprovalRequired>0&&jsxs("li",{children:[n.ndpcApprovalRequired," transfer",n.ndpcApprovalRequired===1?"":"s"," use a mechanism that typically requires NDPC approval."]})]})]}),jsx("h3",{className:"text-lg font-medium mb-3",children:"Transfers"}),f.length===0?jsx("p",{className:"ndpr-card__subtitle",children:"No cross-border transfers found."}):jsx("div",{className:"overflow-x-auto",children:jsxs("table",{className:a("w-full text-left text-sm",r==null?void 0:r.table,a$1),"aria-label":"Cross-border transfers",children:[jsx("thead",{className:a("ndpr-text-muted",r==null?void 0:r.tableHeader,a$1),children:jsx("tr",{children:["Destination","Recipient","Mechanism","Adequacy","Risk","Status"].map(e=>jsx("th",{className:"py-2 pr-4 font-medium",children:e},e))})}),jsx("tbody",{children:f.map(e=>{let o=g?()=>l(e):void 0;return jsxs("tr",{className:a(`border-t border-gray-100 dark:border-gray-700 ${g?"cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700":""}`,r==null?void 0:r.tableRow,a$1),role:g?"button":void 0,tabIndex:g?0:void 0,"aria-label":g?`View transfer to ${e.destinationCountry}`:void 0,onClick:o,onKeyDown:g?s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),o());}:void 0,children:[jsxs("td",{className:"py-2 pr-4",children:[jsx("div",{className:"font-medium",children:e.destinationCountry}),e.destinationCountryCode&&jsx("div",{className:"text-xs ndpr-text-muted",children:e.destinationCountryCode})]}),jsx("td",{className:"py-2 pr-4",children:e.recipientOrganization}),jsx("td",{className:"py-2 pr-4",children:_[e.transferMechanism]}),jsx("td",{className:"py-2 pr-4",children:x[e.adequacyStatus]}),jsx("td",{className:"py-2 pr-4",children:jsxs("span",{className:a(`px-2 py-1 rounded text-xs font-medium ${w[e.riskLevel]}`,r==null?void 0:r.riskBadge,a$1),children:[e.riskLevel.charAt(0).toUpperCase()+e.riskLevel.slice(1)," Risk"]})}),jsx("td",{className:"py-2 pr-4",children:jsx("span",{className:a(`px-2 py-1 rounded text-xs font-medium ${M[e.status]}`,r==null?void 0:r.statusBadge,a$1),children:B[e.status]})})]},e.id)})})]})})]})};export{q as CrossBorderTransferManagerLite};
|
package/dist/dsr.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';var chunkCR2QZTGW_js=require('./chunk-CR2QZTGW.js'),chunkW47OSMT6_js=require('./chunk-W47OSMT6.js')
|
|
2
|
+
'use strict';var chunkCR2QZTGW_js=require('./chunk-CR2QZTGW.js'),chunkW47OSMT6_js=require('./chunk-W47OSMT6.js');require('./chunk-UXUMYP4L.js');var chunkHBLGN4SD_js=require('./chunk-HBLGN4SD.js'),chunkL2BRFMVS_js=require('./chunk-L2BRFMVS.js');require('./chunk-AME4HJR4.js'),require('./chunk-VWED6UTN.js');var chunkRFPLZDIO_js=require('./chunk-RFPLZDIO.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var p=react.createContext(null);function P(){let e=react.useContext(p);if(!e)throw new Error("DSR compound components must be wrapped in <DSR.Provider>. Example: <DSR.Provider requestTypes={...}><DSR.Form /></DSR.Provider>");return e}var m=({requestTypes:e,adapter:S,storageKey:D,useLocalStorage:d,onSubmit:u,onUpdate:i,children:n})=>{let f=chunkHBLGN4SD_js.a({requestTypes:e,adapter:S,storageKey:D,useLocalStorage:d,onSubmit:u,onUpdate:i}),x=chunkRFPLZDIO_js.b(chunkRFPLZDIO_js.a({},f),{requestTypes:e});return jsxRuntime.jsx(p.Provider,{value:x,children:n})};var C={Provider:m,Form:chunkW47OSMT6_js.a,Dashboard:chunkCR2QZTGW_js.a,Tracker:chunkCR2QZTGW_js.b};Object.defineProperty(exports,"DSRDashboard",{enumerable:true,get:function(){return chunkCR2QZTGW_js.a}});Object.defineProperty(exports,"DSRTracker",{enumerable:true,get:function(){return chunkCR2QZTGW_js.b}});Object.defineProperty(exports,"DSRRequestForm",{enumerable:true,get:function(){return chunkW47OSMT6_js.a}});Object.defineProperty(exports,"useDSR",{enumerable:true,get:function(){return chunkHBLGN4SD_js.a}});Object.defineProperty(exports,"formatDSRRequest",{enumerable:true,get:function(){return chunkL2BRFMVS_js.b}});Object.defineProperty(exports,"validateDsrSubmission",{enumerable:true,get:function(){return chunkL2BRFMVS_js.a}});exports.DSR=C;exports.DSRProvider=m;exports.useDSRCompound=P;
|
package/dist/dsr.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {b,a}from'./chunk-66NQ5CVY.mjs';export{a as DSRDashboard,b as DSRTracker}from'./chunk-66NQ5CVY.mjs';import {a as a$1}from'./chunk-XJO4DH3L.mjs';export{a as DSRRequestForm}from'./chunk-XJO4DH3L.mjs';import {a as a$2}from'./chunk-MPBPAEZC.mjs';export{a as useDSR}from'./chunk-MPBPAEZC.mjs';export{b as formatDSRRequest,a as validateDsrSubmission}from'./chunk-RZ6GC6WN.mjs';import'./chunk-
|
|
2
|
+
import {b,a}from'./chunk-66NQ5CVY.mjs';export{a as DSRDashboard,b as DSRTracker}from'./chunk-66NQ5CVY.mjs';import {a as a$1}from'./chunk-XJO4DH3L.mjs';export{a as DSRRequestForm}from'./chunk-XJO4DH3L.mjs';import'./chunk-EWVK45Z3.mjs';import {a as a$2}from'./chunk-MPBPAEZC.mjs';export{a as useDSR}from'./chunk-MPBPAEZC.mjs';export{b as formatDSRRequest,a as validateDsrSubmission}from'./chunk-RZ6GC6WN.mjs';import'./chunk-SFGW37LE.mjs';import'./chunk-DBZSN4WP.mjs';import {b as b$1,a as a$3}from'./chunk-ZJYULEER.mjs';import {createContext,useContext}from'react';import {jsx}from'react/jsx-runtime';var p=createContext(null);function P(){let e=useContext(p);if(!e)throw new Error("DSR compound components must be wrapped in <DSR.Provider>. Example: <DSR.Provider requestTypes={...}><DSR.Form /></DSR.Provider>");return e}var m=({requestTypes:e,adapter:S,storageKey:D,useLocalStorage:d,onSubmit:u,onUpdate:i,children:n})=>{let f=a$2({requestTypes:e,adapter:S,storageKey:D,useLocalStorage:d,onSubmit:u,onUpdate:i}),x=b$1(a$3({},f),{requestTypes:e});return jsx(p.Provider,{value:x,children:n})};var C={Provider:m,Form:a$1,Dashboard:a,Tracker:b};export{C as DSR,m as DSRProvider,P as useDSRCompound};
|