@tantainnovative/ndpr-toolkit 2.1.2 → 2.4.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/README.md +73 -2
- package/dist/{breach-6z0r-KuE.d.mts → breach-B_-6lDqS.d.mts} +1 -1
- package/dist/{breach-BFfnvtRk.d.ts → breach-CzXqSsaY.d.ts} +1 -1
- package/dist/{breach-BtFbDOmV.d.mts → breach-Eu9byel8.d.mts} +1 -1
- package/dist/{breach-BtFbDOmV.d.ts → breach-Eu9byel8.d.ts} +1 -1
- package/dist/breach-ouXoVTWs.d.ts +438 -0
- package/dist/breach-yRiyyc4n.d.mts +438 -0
- package/dist/breach.d.mts +5 -275
- package/dist/breach.d.ts +5 -275
- package/dist/breach.js +1 -1
- package/dist/breach.mjs +1 -1
- package/dist/chunk-2XFAV267.mjs +2 -0
- package/dist/chunk-32UIWTGD.js +72 -0
- package/dist/chunk-4JUDKBA2.mjs +7 -0
- package/dist/chunk-4VVARDN2.mjs +2 -0
- package/dist/chunk-5RSOLEEP.js +63 -0
- package/dist/chunk-AYKLAEOU.mjs +2 -0
- package/dist/chunk-BGHQTZAC.js +94 -0
- package/dist/chunk-BZTTQS4A.mjs +7 -0
- package/dist/chunk-CAB7O3GR.mjs +63 -0
- package/dist/chunk-CL53OI3I.js +7 -0
- package/dist/chunk-E64TU6IU.js +2 -0
- package/dist/chunk-EKVTLHBQ.js +2 -0
- package/dist/chunk-ELKEZEV5.mjs +2 -0
- package/dist/chunk-EPF7J2FK.js +3 -0
- package/dist/chunk-ER7X6E36.js +2 -0
- package/dist/chunk-FXTZDKDC.mjs +3 -0
- package/dist/chunk-IBEKLDBY.mjs +2 -0
- package/dist/chunk-ILCNDOBU.js +2 -0
- package/dist/chunk-K3GMTMQ6.js +2 -0
- package/dist/chunk-MJGOLP5M.js +2 -0
- package/dist/chunk-NW4A3JW6.mjs +2 -0
- package/dist/chunk-P3PULLYP.mjs +2 -0
- package/dist/chunk-SKJCQKFL.mjs +94 -0
- package/dist/chunk-TCJCE6WN.js +2 -0
- package/dist/chunk-UZ5EZOA7.js +2 -0
- package/dist/chunk-WSHSHIIM.mjs +2 -0
- package/dist/chunk-XMYUYQH7.mjs +72 -0
- package/dist/chunk-ZNTMZ6NM.js +7 -0
- package/dist/consent-audit-BdByjYlM.d.mts +65 -0
- package/dist/consent-audit-DhbfMR0n.d.ts +65 -0
- package/dist/consent.d.mts +120 -7
- package/dist/consent.d.ts +120 -7
- package/dist/consent.js +1 -1
- package/dist/consent.mjs +1 -1
- package/dist/core.d.mts +62 -12
- package/dist/core.d.ts +62 -12
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{cross-border-BrIy1ieh.d.ts → cross-border-BMcqLvjC.d.mts} +1 -1
- package/dist/{cross-border-BrIy1ieh.d.mts → cross-border-BMcqLvjC.d.ts} +1 -1
- package/dist/cross-border-entry-BrWVPly6.d.ts +91 -0
- package/dist/cross-border-entry-cCTvpwnT.d.mts +91 -0
- package/dist/cross-border.d.mts +4 -58
- package/dist/cross-border.d.ts +4 -58
- package/dist/cross-border.js +1 -1
- package/dist/cross-border.mjs +1 -1
- package/dist/{dpia-vWfE_9bO.d.mts → dpia-5OQVA1R_.d.mts} +1 -1
- package/dist/{dpia-vWfE_9bO.d.ts → dpia-5OQVA1R_.d.ts} +1 -1
- package/dist/{dpia-fdtTd2DI.d.ts → dpia-B0Pok5us.d.ts} +1 -1
- package/dist/{dpia-B9ZZJG5a.d.mts → dpia-CUfOmzvX.d.mts} +1 -1
- package/dist/dpia.d.mts +119 -5
- package/dist/dpia.d.ts +119 -5
- package/dist/dpia.js +1 -1
- package/dist/dpia.mjs +1 -1
- package/dist/dsr-190YpijW.d.ts +307 -0
- package/dist/dsr-BTT-Xd7H.d.mts +307 -0
- package/dist/{dsr-pQzQ3H1O.d.mts → dsr-Cm9lzWG7.d.mts} +1 -1
- package/dist/{dsr-pQzQ3H1O.d.ts → dsr-Cm9lzWG7.d.ts} +1 -1
- package/dist/{dsr-whPkiI0_.d.mts → dsr-D_eTNc4S.d.mts} +1 -1
- package/dist/{dsr-jq5NUEdz.d.ts → dsr-pNtVb1BK.d.ts} +1 -1
- package/dist/dsr.d.mts +5 -192
- package/dist/dsr.d.ts +5 -192
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/hooks.d.mts +14 -14
- package/dist/hooks.d.ts +14 -14
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +28 -27
- package/dist/index.d.ts +28 -27
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{lawful-basis-v04AhbK2.d.ts → lawful-basis-BEyI0kGg.d.ts} +2 -2
- package/dist/{lawful-basis-D-oXFizg.d.mts → lawful-basis-C2eGaoHM.d.mts} +2 -2
- package/dist/{lawful-basis-CWtvDG1x.d.mts → lawful-basis-Cv1VmDLn.d.mts} +1 -1
- package/dist/{lawful-basis-CWtvDG1x.d.ts → lawful-basis-Cv1VmDLn.d.ts} +1 -1
- package/dist/lawful-basis-entry-15qjKcNO.d.ts +87 -0
- package/dist/lawful-basis-entry-CxZrofwG.d.mts +87 -0
- package/dist/lawful-basis.d.mts +5 -55
- package/dist/lawful-basis.d.ts +5 -55
- package/dist/lawful-basis.js +1 -1
- package/dist/lawful-basis.mjs +1 -1
- package/dist/policy-D2_jh5-T.d.ts +293 -0
- package/dist/policy-E0fXZkda.d.mts +293 -0
- package/dist/policy-templates-CIKcV0i1.d.ts +36 -0
- package/dist/policy-templates-DMsPwOSZ.d.mts +36 -0
- package/dist/policy.d.mts +5 -195
- package/dist/policy.d.ts +5 -195
- package/dist/policy.js +1 -1
- package/dist/policy.mjs +1 -1
- package/dist/{ropa-Rb4dsFSz.d.mts → ropa-DP7pPPql.d.mts} +2 -2
- package/dist/{ropa-BebGfqKQ.d.ts → ropa-Li6UlL5H.d.ts} +2 -2
- package/dist/ropa-entry-B0D7X1GV.d.ts +80 -0
- package/dist/ropa-entry-DiOThOc2.d.mts +80 -0
- package/dist/ropa.d.mts +5 -45
- package/dist/ropa.d.ts +5 -45
- package/dist/ropa.js +1 -1
- package/dist/ropa.mjs +1 -1
- package/dist/styles.css +40 -28
- package/dist/styles.d.ts +1 -0
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.mjs +1 -1
- package/dist/{useBreach-WrZzJilM.d.mts → useBreach-BBSoIcZO.d.mts} +1 -1
- package/dist/{useBreach-vrh_XMpI.d.ts → useBreach-lFLbSyAN.d.ts} +1 -1
- package/dist/{useCrossBorderTransfer-TVnY8_UX.d.mts → useCrossBorderTransfer-BZVFCXfr.d.mts} +1 -1
- package/dist/{useCrossBorderTransfer-D4FQYfFt.d.ts → useCrossBorderTransfer-DmtACeqW.d.ts} +1 -1
- package/dist/{useDPIA-DFDHBLSa.d.ts → useDPIA-DBsg2yZx.d.ts} +1 -1
- package/dist/{useDPIA-FqPofFaV.d.mts → useDPIA-Da7-Q_yW.d.mts} +1 -1
- package/dist/{useDSR-DAqqOBXb.d.ts → useDSR-CYI7WCXr.d.ts} +1 -1
- package/dist/{useDSR-OXM5Q9rf.d.mts → useDSR-YYZ6FYFs.d.mts} +1 -1
- package/dist/{usePrivacyPolicy-CfySfBLS.d.ts → useDefaultPrivacyPolicy-B7kTHbZh.d.ts} +39 -2
- package/dist/{usePrivacyPolicy-Dit2sFuV.d.mts → useDefaultPrivacyPolicy-CUluF_ic.d.mts} +39 -2
- package/dist/{useLawfulBasis-RILM_xsx.d.ts → useLawfulBasis-CCWF9waR.d.ts} +2 -2
- package/dist/{useLawfulBasis-DNQ8YszQ.d.mts → useLawfulBasis-CpWuHtyh.d.mts} +2 -2
- package/dist/{useROPA-Bcs6cRdi.d.ts → useROPA-BhJ3kvHp.d.ts} +1 -1
- package/dist/{useROPA-nmcSiUYv.d.mts → useROPA-DLFdjkxP.d.mts} +1 -1
- package/package.json +30 -21
- package/dist/chunk-2XHD22J7.mjs +0 -7
- package/dist/chunk-4DKT6IB6.js +0 -94
- package/dist/chunk-6JFTAYXV.mjs +0 -2
- package/dist/chunk-6JVYYLS7.js +0 -2
- package/dist/chunk-6SGG6WPA.mjs +0 -2
- package/dist/chunk-AQEGDEQM.js +0 -7
- package/dist/chunk-C2IJWCZQ.mjs +0 -2
- package/dist/chunk-DB3JH4DS.mjs +0 -2
- package/dist/chunk-FFW7RUAG.mjs +0 -94
- package/dist/chunk-FK3CSFLJ.js +0 -2
- package/dist/chunk-IWUUVRLJ.js +0 -2
- package/dist/chunk-JUN6YPLL.mjs +0 -72
- package/dist/chunk-L3FKTBGV.js +0 -72
- package/dist/chunk-PM7CMTMB.js +0 -4
- package/dist/chunk-RB26MIRI.js +0 -2
- package/dist/chunk-RHWW5FDP.js +0 -16
- package/dist/chunk-SLNMKGQ2.mjs +0 -2
- package/dist/chunk-UUWVBENC.js +0 -2
- package/dist/chunk-UYP64PV7.mjs +0 -4
- package/dist/chunk-XMKA6GVK.mjs +0 -16
- package/dist/consent-DCc5zjXI.d.mts +0 -24
- package/dist/consent-DLWb5ota.d.ts +0 -24
- package/dist/privacy-9FcJceMr.d.mts +0 -15
- package/dist/privacy-BXz7O2ej.d.ts +0 -15
package/dist/dpia.d.mts
CHANGED
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export { D as DPIAQuestion,
|
|
4
|
-
export { u as useDPIA } from './useDPIA-
|
|
5
|
-
export { a as assessDPIARisk } from './dpia-
|
|
2
|
+
import { c as DPIASection, a as DPIAResult } from './dpia-5OQVA1R_.mjs';
|
|
3
|
+
export { D as DPIAQuestion, b as DPIARisk } from './dpia-5OQVA1R_.mjs';
|
|
4
|
+
export { u as useDPIA } from './useDPIA-Da7-Q_yW.mjs';
|
|
5
|
+
export { a as assessDPIARisk } from './dpia-CUfOmzvX.mjs';
|
|
6
6
|
|
|
7
|
+
interface DPIAQuestionnaireClassNames {
|
|
8
|
+
/** Outermost wrapper */
|
|
9
|
+
root?: string;
|
|
10
|
+
/** Header area containing progress indicator */
|
|
11
|
+
header?: string;
|
|
12
|
+
/** Section title */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Section container */
|
|
15
|
+
section?: string;
|
|
16
|
+
/** Section title heading */
|
|
17
|
+
sectionTitle?: string;
|
|
18
|
+
/** Individual question wrapper */
|
|
19
|
+
question?: string;
|
|
20
|
+
/** Question label text */
|
|
21
|
+
questionText?: string;
|
|
22
|
+
/** Guidance / help text below a question */
|
|
23
|
+
guidance?: string;
|
|
24
|
+
/** Text / textarea / select inputs */
|
|
25
|
+
input?: string;
|
|
26
|
+
/** Radio option group container */
|
|
27
|
+
radioGroup?: string;
|
|
28
|
+
/** Individual radio option row */
|
|
29
|
+
radioOption?: string;
|
|
30
|
+
/** Navigation button container */
|
|
31
|
+
navigation?: string;
|
|
32
|
+
/** Next / submit button */
|
|
33
|
+
nextButton?: string;
|
|
34
|
+
/** Previous button */
|
|
35
|
+
prevButton?: string;
|
|
36
|
+
/** Alias for nextButton */
|
|
37
|
+
primaryButton?: string;
|
|
38
|
+
/** Alias for prevButton */
|
|
39
|
+
secondaryButton?: string;
|
|
40
|
+
/** Progress bar wrapper */
|
|
41
|
+
progressBar?: string;
|
|
42
|
+
}
|
|
7
43
|
interface DPIAQuestionnaireProps {
|
|
8
44
|
/**
|
|
9
45
|
* Sections of the DPIA questionnaire
|
|
@@ -70,9 +106,47 @@ interface DPIAQuestionnaireProps {
|
|
|
70
106
|
* Current progress percentage (0-100)
|
|
71
107
|
*/
|
|
72
108
|
progress?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Per-section class name overrides
|
|
111
|
+
*/
|
|
112
|
+
classNames?: DPIAQuestionnaireClassNames;
|
|
113
|
+
/**
|
|
114
|
+
* When true, all default classes are stripped.
|
|
115
|
+
* Only explicit overrides from `classNames` are applied.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
unstyled?: boolean;
|
|
73
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* DPIA questionnaire component. Implements NDPA Section 38 requirements
|
|
122
|
+
* for conducting Data Protection Impact Assessments on high-risk processing activities.
|
|
123
|
+
*/
|
|
74
124
|
declare const DPIAQuestionnaire: React.FC<DPIAQuestionnaireProps>;
|
|
75
125
|
|
|
126
|
+
interface DPIAReportClassNames {
|
|
127
|
+
/** Outermost wrapper */
|
|
128
|
+
root?: string;
|
|
129
|
+
/** Report header area */
|
|
130
|
+
header?: string;
|
|
131
|
+
/** Main report title */
|
|
132
|
+
title?: string;
|
|
133
|
+
/** Executive summary section */
|
|
134
|
+
summary?: string;
|
|
135
|
+
/** Risk level badge */
|
|
136
|
+
riskBadge?: string;
|
|
137
|
+
/** Risks table element */
|
|
138
|
+
riskTable?: string;
|
|
139
|
+
/** Individual risk row */
|
|
140
|
+
riskRow?: string;
|
|
141
|
+
/** Recommendation list item */
|
|
142
|
+
recommendation?: string;
|
|
143
|
+
/** Conclusion text */
|
|
144
|
+
conclusion?: string;
|
|
145
|
+
/** Print button */
|
|
146
|
+
printButton?: string;
|
|
147
|
+
/** Alias for printButton */
|
|
148
|
+
primaryButton?: string;
|
|
149
|
+
}
|
|
76
150
|
interface DPIAReportProps {
|
|
77
151
|
/**
|
|
78
152
|
* The DPIA result to display
|
|
@@ -109,7 +183,21 @@ interface DPIAReportProps {
|
|
|
109
183
|
* Custom CSS class for the buttons
|
|
110
184
|
*/
|
|
111
185
|
buttonClassName?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Per-section class name overrides
|
|
188
|
+
*/
|
|
189
|
+
classNames?: DPIAReportClassNames;
|
|
190
|
+
/**
|
|
191
|
+
* When true, all default classes are stripped.
|
|
192
|
+
* Only explicit overrides from `classNames` are applied.
|
|
193
|
+
* @default false
|
|
194
|
+
*/
|
|
195
|
+
unstyled?: boolean;
|
|
112
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* DPIA report component. Implements NDPA Sections 38-39 requirements for documenting
|
|
199
|
+
* and presenting Data Protection Impact Assessment findings, risks, and recommendations.
|
|
200
|
+
*/
|
|
113
201
|
declare const DPIAReport: React.FC<DPIAReportProps>;
|
|
114
202
|
|
|
115
203
|
interface Step {
|
|
@@ -138,6 +226,22 @@ interface Step {
|
|
|
138
226
|
*/
|
|
139
227
|
icon?: React.ReactNode;
|
|
140
228
|
}
|
|
229
|
+
interface StepIndicatorClassNames {
|
|
230
|
+
/** Outermost wrapper */
|
|
231
|
+
root?: string;
|
|
232
|
+
/** Individual step wrapper */
|
|
233
|
+
step?: string;
|
|
234
|
+
/** Active step circle / indicator */
|
|
235
|
+
stepActive?: string;
|
|
236
|
+
/** Completed step circle / indicator */
|
|
237
|
+
stepCompleted?: string;
|
|
238
|
+
/** Pending (incomplete, inactive) step circle / indicator */
|
|
239
|
+
stepPending?: string;
|
|
240
|
+
/** Connector line between steps */
|
|
241
|
+
connector?: string;
|
|
242
|
+
/** Step label text */
|
|
243
|
+
label?: string;
|
|
244
|
+
}
|
|
141
245
|
interface StepIndicatorProps {
|
|
142
246
|
/**
|
|
143
247
|
* Array of steps to display
|
|
@@ -173,7 +277,17 @@ interface StepIndicatorProps {
|
|
|
173
277
|
* Custom CSS class for incomplete steps
|
|
174
278
|
*/
|
|
175
279
|
incompleteStepClassName?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Per-section class name overrides
|
|
282
|
+
*/
|
|
283
|
+
classNames?: StepIndicatorClassNames;
|
|
284
|
+
/**
|
|
285
|
+
* When true, all default classes are stripped.
|
|
286
|
+
* Only explicit overrides from `classNames` are applied.
|
|
287
|
+
* @default false
|
|
288
|
+
*/
|
|
289
|
+
unstyled?: boolean;
|
|
176
290
|
}
|
|
177
291
|
declare const StepIndicator: React.FC<StepIndicatorProps>;
|
|
178
292
|
|
|
179
|
-
export { DPIAQuestionnaire, DPIAReport, DPIAResult, DPIASection, StepIndicator };
|
|
293
|
+
export { DPIAQuestionnaire, type DPIAQuestionnaireClassNames, DPIAReport, type DPIAReportClassNames, DPIAResult, DPIASection, StepIndicator, type StepIndicatorClassNames };
|
package/dist/dpia.d.ts
CHANGED
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export { D as DPIAQuestion,
|
|
4
|
-
export { u as useDPIA } from './useDPIA-
|
|
5
|
-
export { a as assessDPIARisk } from './dpia-
|
|
2
|
+
import { c as DPIASection, a as DPIAResult } from './dpia-5OQVA1R_.js';
|
|
3
|
+
export { D as DPIAQuestion, b as DPIARisk } from './dpia-5OQVA1R_.js';
|
|
4
|
+
export { u as useDPIA } from './useDPIA-DBsg2yZx.js';
|
|
5
|
+
export { a as assessDPIARisk } from './dpia-B0Pok5us.js';
|
|
6
6
|
|
|
7
|
+
interface DPIAQuestionnaireClassNames {
|
|
8
|
+
/** Outermost wrapper */
|
|
9
|
+
root?: string;
|
|
10
|
+
/** Header area containing progress indicator */
|
|
11
|
+
header?: string;
|
|
12
|
+
/** Section title */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Section container */
|
|
15
|
+
section?: string;
|
|
16
|
+
/** Section title heading */
|
|
17
|
+
sectionTitle?: string;
|
|
18
|
+
/** Individual question wrapper */
|
|
19
|
+
question?: string;
|
|
20
|
+
/** Question label text */
|
|
21
|
+
questionText?: string;
|
|
22
|
+
/** Guidance / help text below a question */
|
|
23
|
+
guidance?: string;
|
|
24
|
+
/** Text / textarea / select inputs */
|
|
25
|
+
input?: string;
|
|
26
|
+
/** Radio option group container */
|
|
27
|
+
radioGroup?: string;
|
|
28
|
+
/** Individual radio option row */
|
|
29
|
+
radioOption?: string;
|
|
30
|
+
/** Navigation button container */
|
|
31
|
+
navigation?: string;
|
|
32
|
+
/** Next / submit button */
|
|
33
|
+
nextButton?: string;
|
|
34
|
+
/** Previous button */
|
|
35
|
+
prevButton?: string;
|
|
36
|
+
/** Alias for nextButton */
|
|
37
|
+
primaryButton?: string;
|
|
38
|
+
/** Alias for prevButton */
|
|
39
|
+
secondaryButton?: string;
|
|
40
|
+
/** Progress bar wrapper */
|
|
41
|
+
progressBar?: string;
|
|
42
|
+
}
|
|
7
43
|
interface DPIAQuestionnaireProps {
|
|
8
44
|
/**
|
|
9
45
|
* Sections of the DPIA questionnaire
|
|
@@ -70,9 +106,47 @@ interface DPIAQuestionnaireProps {
|
|
|
70
106
|
* Current progress percentage (0-100)
|
|
71
107
|
*/
|
|
72
108
|
progress?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Per-section class name overrides
|
|
111
|
+
*/
|
|
112
|
+
classNames?: DPIAQuestionnaireClassNames;
|
|
113
|
+
/**
|
|
114
|
+
* When true, all default classes are stripped.
|
|
115
|
+
* Only explicit overrides from `classNames` are applied.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
unstyled?: boolean;
|
|
73
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* DPIA questionnaire component. Implements NDPA Section 38 requirements
|
|
122
|
+
* for conducting Data Protection Impact Assessments on high-risk processing activities.
|
|
123
|
+
*/
|
|
74
124
|
declare const DPIAQuestionnaire: React.FC<DPIAQuestionnaireProps>;
|
|
75
125
|
|
|
126
|
+
interface DPIAReportClassNames {
|
|
127
|
+
/** Outermost wrapper */
|
|
128
|
+
root?: string;
|
|
129
|
+
/** Report header area */
|
|
130
|
+
header?: string;
|
|
131
|
+
/** Main report title */
|
|
132
|
+
title?: string;
|
|
133
|
+
/** Executive summary section */
|
|
134
|
+
summary?: string;
|
|
135
|
+
/** Risk level badge */
|
|
136
|
+
riskBadge?: string;
|
|
137
|
+
/** Risks table element */
|
|
138
|
+
riskTable?: string;
|
|
139
|
+
/** Individual risk row */
|
|
140
|
+
riskRow?: string;
|
|
141
|
+
/** Recommendation list item */
|
|
142
|
+
recommendation?: string;
|
|
143
|
+
/** Conclusion text */
|
|
144
|
+
conclusion?: string;
|
|
145
|
+
/** Print button */
|
|
146
|
+
printButton?: string;
|
|
147
|
+
/** Alias for printButton */
|
|
148
|
+
primaryButton?: string;
|
|
149
|
+
}
|
|
76
150
|
interface DPIAReportProps {
|
|
77
151
|
/**
|
|
78
152
|
* The DPIA result to display
|
|
@@ -109,7 +183,21 @@ interface DPIAReportProps {
|
|
|
109
183
|
* Custom CSS class for the buttons
|
|
110
184
|
*/
|
|
111
185
|
buttonClassName?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Per-section class name overrides
|
|
188
|
+
*/
|
|
189
|
+
classNames?: DPIAReportClassNames;
|
|
190
|
+
/**
|
|
191
|
+
* When true, all default classes are stripped.
|
|
192
|
+
* Only explicit overrides from `classNames` are applied.
|
|
193
|
+
* @default false
|
|
194
|
+
*/
|
|
195
|
+
unstyled?: boolean;
|
|
112
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* DPIA report component. Implements NDPA Sections 38-39 requirements for documenting
|
|
199
|
+
* and presenting Data Protection Impact Assessment findings, risks, and recommendations.
|
|
200
|
+
*/
|
|
113
201
|
declare const DPIAReport: React.FC<DPIAReportProps>;
|
|
114
202
|
|
|
115
203
|
interface Step {
|
|
@@ -138,6 +226,22 @@ interface Step {
|
|
|
138
226
|
*/
|
|
139
227
|
icon?: React.ReactNode;
|
|
140
228
|
}
|
|
229
|
+
interface StepIndicatorClassNames {
|
|
230
|
+
/** Outermost wrapper */
|
|
231
|
+
root?: string;
|
|
232
|
+
/** Individual step wrapper */
|
|
233
|
+
step?: string;
|
|
234
|
+
/** Active step circle / indicator */
|
|
235
|
+
stepActive?: string;
|
|
236
|
+
/** Completed step circle / indicator */
|
|
237
|
+
stepCompleted?: string;
|
|
238
|
+
/** Pending (incomplete, inactive) step circle / indicator */
|
|
239
|
+
stepPending?: string;
|
|
240
|
+
/** Connector line between steps */
|
|
241
|
+
connector?: string;
|
|
242
|
+
/** Step label text */
|
|
243
|
+
label?: string;
|
|
244
|
+
}
|
|
141
245
|
interface StepIndicatorProps {
|
|
142
246
|
/**
|
|
143
247
|
* Array of steps to display
|
|
@@ -173,7 +277,17 @@ interface StepIndicatorProps {
|
|
|
173
277
|
* Custom CSS class for incomplete steps
|
|
174
278
|
*/
|
|
175
279
|
incompleteStepClassName?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Per-section class name overrides
|
|
282
|
+
*/
|
|
283
|
+
classNames?: StepIndicatorClassNames;
|
|
284
|
+
/**
|
|
285
|
+
* When true, all default classes are stripped.
|
|
286
|
+
* Only explicit overrides from `classNames` are applied.
|
|
287
|
+
* @default false
|
|
288
|
+
*/
|
|
289
|
+
unstyled?: boolean;
|
|
176
290
|
}
|
|
177
291
|
declare const StepIndicator: React.FC<StepIndicatorProps>;
|
|
178
292
|
|
|
179
|
-
export { DPIAQuestionnaire, DPIAReport, DPIAResult, DPIASection, StepIndicator };
|
|
293
|
+
export { DPIAQuestionnaire, type DPIAQuestionnaireClassNames, DPIAReport, type DPIAReportClassNames, DPIAResult, DPIASection, StepIndicator, type StepIndicatorClassNames };
|
package/dist/dpia.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZNTMZ6NM_js=require('./chunk-ZNTMZ6NM.js'),chunk3YCV2BA6_js=require('./chunk-3YCV2BA6.js'),chunkSSGJREE3_js=require('./chunk-SSGJREE3.js');require('./chunk-E64TU6IU.js'),require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"DPIAQuestionnaire",{enumerable:true,get:function(){return chunkZNTMZ6NM_js.a}});Object.defineProperty(exports,"DPIAReport",{enumerable:true,get:function(){return chunkZNTMZ6NM_js.b}});Object.defineProperty(exports,"StepIndicator",{enumerable:true,get:function(){return chunkZNTMZ6NM_js.c}});Object.defineProperty(exports,"useDPIA",{enumerable:true,get:function(){return chunk3YCV2BA6_js.a}});Object.defineProperty(exports,"assessDPIARisk",{enumerable:true,get:function(){return chunkSSGJREE3_js.a}});//# sourceMappingURL=dpia.js.map
|
|
2
2
|
//# sourceMappingURL=dpia.js.map
|
package/dist/dpia.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as DPIAQuestionnaire,b as DPIAReport,c as StepIndicator}from'./chunk-
|
|
1
|
+
export{a as DPIAQuestionnaire,b as DPIAReport,c as StepIndicator}from'./chunk-BZTTQS4A.mjs';export{a as useDPIA}from'./chunk-6GGGTRDZ.mjs';export{a as assessDPIARisk}from'./chunk-PGSA2O5P.mjs';import'./chunk-AYKLAEOU.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=dpia.mjs.map
|
|
2
2
|
//# sourceMappingURL=dpia.mjs.map
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { c as RequestType, D as DSRRequest, a as DSRStatus } from './dsr-Cm9lzWG7.js';
|
|
3
|
+
import './useDSR-CYI7WCXr.js';
|
|
4
|
+
import './dsr-pNtVb1BK.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Represents the data submitted by the DSR request form.
|
|
8
|
+
*/
|
|
9
|
+
interface DSRFormSubmission {
|
|
10
|
+
/** The selected request type identifier */
|
|
11
|
+
requestType: string;
|
|
12
|
+
/** Data subject personal information */
|
|
13
|
+
dataSubject: {
|
|
14
|
+
fullName: string;
|
|
15
|
+
email: string;
|
|
16
|
+
phone?: string;
|
|
17
|
+
identifierType: string;
|
|
18
|
+
identifierValue: string;
|
|
19
|
+
};
|
|
20
|
+
/** Additional information provided for the selected request type */
|
|
21
|
+
additionalInfo?: Record<string, any>;
|
|
22
|
+
/** Timestamp (ms) when the form was submitted */
|
|
23
|
+
submittedAt: number;
|
|
24
|
+
}
|
|
25
|
+
interface DSRRequestFormClassNames {
|
|
26
|
+
root?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
form?: string;
|
|
30
|
+
fieldGroup?: string;
|
|
31
|
+
label?: string;
|
|
32
|
+
input?: string;
|
|
33
|
+
select?: string;
|
|
34
|
+
textarea?: string;
|
|
35
|
+
submitButton?: string;
|
|
36
|
+
/** Alias for submitButton */
|
|
37
|
+
primaryButton?: string;
|
|
38
|
+
successMessage?: string;
|
|
39
|
+
/** Custom class applied when isSubmitting is true (e.g. a loading overlay) */
|
|
40
|
+
loadingOverlay?: string;
|
|
41
|
+
}
|
|
42
|
+
interface DSRRequestFormProps {
|
|
43
|
+
/**
|
|
44
|
+
* Array of request types that can be submitted
|
|
45
|
+
*/
|
|
46
|
+
requestTypes: RequestType[];
|
|
47
|
+
/**
|
|
48
|
+
* Callback function called when form is submitted
|
|
49
|
+
*/
|
|
50
|
+
onSubmit: (data: DSRFormSubmission) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Callback function called when form validation fails
|
|
53
|
+
*/
|
|
54
|
+
onValidationError?: (errors: Record<string, string>) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Title displayed on the form
|
|
57
|
+
* @default "Submit a Data Subject Request"
|
|
58
|
+
*/
|
|
59
|
+
title?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Description text displayed on the form
|
|
62
|
+
* @default "Use this form to exercise your rights under the Nigeria Data Protection Act (NDPA), Part IV, Sections 29-36."
|
|
63
|
+
*/
|
|
64
|
+
description?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Text for the submit button
|
|
67
|
+
* @default "Submit Request"
|
|
68
|
+
*/
|
|
69
|
+
submitButtonText?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Custom CSS class for the form
|
|
72
|
+
*/
|
|
73
|
+
className?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Custom CSS class for the submit button
|
|
76
|
+
*/
|
|
77
|
+
buttonClassName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Whether to show a confirmation message after submission
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
showConfirmation?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Confirmation message to display after submission
|
|
85
|
+
* @default "Your request has been submitted successfully. You will receive a confirmation email shortly."
|
|
86
|
+
*/
|
|
87
|
+
confirmationMessage?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Whether to require identity verification
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
requireIdentityVerification?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Types of identifiers accepted for verification
|
|
95
|
+
* @default ["email", "account", "customer_id"]
|
|
96
|
+
*/
|
|
97
|
+
identifierTypes?: Array<{
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Whether to collect additional contact information
|
|
103
|
+
* @default true
|
|
104
|
+
*/
|
|
105
|
+
collectAdditionalContact?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Custom labels for form fields
|
|
108
|
+
*/
|
|
109
|
+
labels?: {
|
|
110
|
+
name?: string;
|
|
111
|
+
email?: string;
|
|
112
|
+
requestType?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
submit?: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Object of CSS class overrides keyed by semantic section name.
|
|
118
|
+
*/
|
|
119
|
+
classNames?: DSRRequestFormClassNames;
|
|
120
|
+
/**
|
|
121
|
+
* When true, all default Tailwind classes are removed so consumers
|
|
122
|
+
* can style from scratch using classNames.
|
|
123
|
+
*/
|
|
124
|
+
unstyled?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the form is currently submitting.
|
|
127
|
+
* When true, the submit button is disabled and shows "Submitting..." text.
|
|
128
|
+
*/
|
|
129
|
+
isSubmitting?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Default values to pre-fill form fields.
|
|
132
|
+
* Useful for editing existing requests or pre-populating known data.
|
|
133
|
+
*/
|
|
134
|
+
defaultValues?: Partial<DSRFormSubmission>;
|
|
135
|
+
/**
|
|
136
|
+
* Callback fired when the form is reset via the Reset button.
|
|
137
|
+
* To fully remount the component (clearing all internal state),
|
|
138
|
+
* change the `key` prop from the parent.
|
|
139
|
+
*/
|
|
140
|
+
onReset?: () => void;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Data Subject Request form component. Implements NDPA Part IV, Sections 29-36
|
|
144
|
+
* covering data subject rights including access, rectification, erasure, and portability.
|
|
145
|
+
*/
|
|
146
|
+
declare const DSRRequestForm: React.FC<DSRRequestFormProps>;
|
|
147
|
+
|
|
148
|
+
interface DSRDashboardClassNames {
|
|
149
|
+
root?: string;
|
|
150
|
+
header?: string;
|
|
151
|
+
title?: string;
|
|
152
|
+
filters?: string;
|
|
153
|
+
requestList?: string;
|
|
154
|
+
requestItem?: string;
|
|
155
|
+
statusBadge?: string;
|
|
156
|
+
detailPanel?: string;
|
|
157
|
+
}
|
|
158
|
+
interface DSRDashboardProps {
|
|
159
|
+
/**
|
|
160
|
+
* List of DSR requests to display
|
|
161
|
+
*/
|
|
162
|
+
requests: DSRRequest[];
|
|
163
|
+
/**
|
|
164
|
+
* Callback function called when a request is selected
|
|
165
|
+
*/
|
|
166
|
+
onSelectRequest?: (requestId: string) => void;
|
|
167
|
+
/**
|
|
168
|
+
* Callback function called when a request status is updated
|
|
169
|
+
*/
|
|
170
|
+
onUpdateStatus?: (requestId: string, status: DSRStatus) => void;
|
|
171
|
+
/**
|
|
172
|
+
* Callback function called when a request is assigned
|
|
173
|
+
*/
|
|
174
|
+
onAssignRequest?: (requestId: string, assignee: string) => void;
|
|
175
|
+
/**
|
|
176
|
+
* Title displayed on the dashboard
|
|
177
|
+
* @default "Data Subject Request Dashboard"
|
|
178
|
+
*/
|
|
179
|
+
title?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Description text displayed on the dashboard
|
|
182
|
+
* @default "Track and manage data subject requests in compliance with NDPA Part IV requirements."
|
|
183
|
+
*/
|
|
184
|
+
description?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Custom CSS class for the dashboard
|
|
187
|
+
*/
|
|
188
|
+
className?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Custom CSS class for the buttons
|
|
191
|
+
*/
|
|
192
|
+
buttonClassName?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Whether to show the request details
|
|
195
|
+
* @default true
|
|
196
|
+
*/
|
|
197
|
+
showRequestDetails?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Whether to show the request timeline
|
|
200
|
+
* @default true
|
|
201
|
+
*/
|
|
202
|
+
showRequestTimeline?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Whether to show the deadline alerts
|
|
205
|
+
* @default true
|
|
206
|
+
*/
|
|
207
|
+
showDeadlineAlerts?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* List of possible assignees
|
|
210
|
+
*/
|
|
211
|
+
assignees?: string[];
|
|
212
|
+
/**
|
|
213
|
+
* Object of CSS class overrides keyed by semantic section name.
|
|
214
|
+
*/
|
|
215
|
+
classNames?: DSRDashboardClassNames;
|
|
216
|
+
/**
|
|
217
|
+
* When true, all default Tailwind classes are removed so consumers
|
|
218
|
+
* can style from scratch using classNames.
|
|
219
|
+
*/
|
|
220
|
+
unstyled?: boolean;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Data Subject Request dashboard component. Supports compliance with NDPA Part IV,
|
|
224
|
+
* providing tools to track, manage, and respond to data subject requests within required timeframes.
|
|
225
|
+
*/
|
|
226
|
+
declare const DSRDashboard: React.FC<DSRDashboardProps>;
|
|
227
|
+
|
|
228
|
+
interface DSRTrackerClassNames {
|
|
229
|
+
root?: string;
|
|
230
|
+
header?: string;
|
|
231
|
+
title?: string;
|
|
232
|
+
stats?: string;
|
|
233
|
+
statCard?: string;
|
|
234
|
+
table?: string;
|
|
235
|
+
tableHeader?: string;
|
|
236
|
+
tableRow?: string;
|
|
237
|
+
statusBadge?: string;
|
|
238
|
+
}
|
|
239
|
+
interface DSRTrackerProps {
|
|
240
|
+
/**
|
|
241
|
+
* List of DSR requests to track
|
|
242
|
+
*/
|
|
243
|
+
requests: DSRRequest[];
|
|
244
|
+
/**
|
|
245
|
+
* Callback function called when a request is selected
|
|
246
|
+
*/
|
|
247
|
+
onSelectRequest?: (requestId: string) => void;
|
|
248
|
+
/**
|
|
249
|
+
* Title displayed on the tracker
|
|
250
|
+
* @default "DSR Request Tracker"
|
|
251
|
+
*/
|
|
252
|
+
title?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Description text displayed on the tracker
|
|
255
|
+
* @default "Track the status and progress of data subject requests as required by NDPA Part IV."
|
|
256
|
+
*/
|
|
257
|
+
description?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Custom CSS class for the tracker
|
|
260
|
+
*/
|
|
261
|
+
className?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Custom CSS class for the buttons
|
|
264
|
+
*/
|
|
265
|
+
buttonClassName?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Whether to show the summary statistics
|
|
268
|
+
* @default true
|
|
269
|
+
*/
|
|
270
|
+
showSummaryStats?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Whether to show the request type breakdown
|
|
273
|
+
* @default true
|
|
274
|
+
*/
|
|
275
|
+
showTypeBreakdown?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Whether to show the status breakdown
|
|
278
|
+
* @default true
|
|
279
|
+
*/
|
|
280
|
+
showStatusBreakdown?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Whether to show the timeline chart
|
|
283
|
+
* @default true
|
|
284
|
+
*/
|
|
285
|
+
showTimelineChart?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Whether to show the overdue requests
|
|
288
|
+
* @default true
|
|
289
|
+
*/
|
|
290
|
+
showOverdueRequests?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Object of CSS class overrides keyed by semantic section name.
|
|
293
|
+
*/
|
|
294
|
+
classNames?: DSRTrackerClassNames;
|
|
295
|
+
/**
|
|
296
|
+
* When true, all default Tailwind classes are removed so consumers
|
|
297
|
+
* can style from scratch using classNames.
|
|
298
|
+
*/
|
|
299
|
+
unstyled?: boolean;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* DSR tracking and analytics component. Supports compliance with NDPA Part IV,
|
|
303
|
+
* providing summary statistics, deadline tracking, and compliance metrics for data subject requests.
|
|
304
|
+
*/
|
|
305
|
+
declare const DSRTracker: React.FC<DSRTrackerProps>;
|
|
306
|
+
|
|
307
|
+
export { DSRDashboard as D, type DSRDashboardClassNames as a, type DSRFormSubmission as b, DSRRequestForm as c, type DSRRequestFormClassNames as d, DSRTracker as e, type DSRTrackerClassNames as f };
|