@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.
Files changed (152) hide show
  1. package/README.md +73 -2
  2. package/dist/{breach-6z0r-KuE.d.mts → breach-B_-6lDqS.d.mts} +1 -1
  3. package/dist/{breach-BFfnvtRk.d.ts → breach-CzXqSsaY.d.ts} +1 -1
  4. package/dist/{breach-BtFbDOmV.d.mts → breach-Eu9byel8.d.mts} +1 -1
  5. package/dist/{breach-BtFbDOmV.d.ts → breach-Eu9byel8.d.ts} +1 -1
  6. package/dist/breach-ouXoVTWs.d.ts +438 -0
  7. package/dist/breach-yRiyyc4n.d.mts +438 -0
  8. package/dist/breach.d.mts +5 -275
  9. package/dist/breach.d.ts +5 -275
  10. package/dist/breach.js +1 -1
  11. package/dist/breach.mjs +1 -1
  12. package/dist/chunk-2XFAV267.mjs +2 -0
  13. package/dist/chunk-32UIWTGD.js +72 -0
  14. package/dist/chunk-4JUDKBA2.mjs +7 -0
  15. package/dist/chunk-4VVARDN2.mjs +2 -0
  16. package/dist/chunk-5RSOLEEP.js +63 -0
  17. package/dist/chunk-AYKLAEOU.mjs +2 -0
  18. package/dist/chunk-BGHQTZAC.js +94 -0
  19. package/dist/chunk-BZTTQS4A.mjs +7 -0
  20. package/dist/chunk-CAB7O3GR.mjs +63 -0
  21. package/dist/chunk-CL53OI3I.js +7 -0
  22. package/dist/chunk-E64TU6IU.js +2 -0
  23. package/dist/chunk-EKVTLHBQ.js +2 -0
  24. package/dist/chunk-ELKEZEV5.mjs +2 -0
  25. package/dist/chunk-EPF7J2FK.js +3 -0
  26. package/dist/chunk-ER7X6E36.js +2 -0
  27. package/dist/chunk-FXTZDKDC.mjs +3 -0
  28. package/dist/chunk-IBEKLDBY.mjs +2 -0
  29. package/dist/chunk-ILCNDOBU.js +2 -0
  30. package/dist/chunk-K3GMTMQ6.js +2 -0
  31. package/dist/chunk-MJGOLP5M.js +2 -0
  32. package/dist/chunk-NW4A3JW6.mjs +2 -0
  33. package/dist/chunk-P3PULLYP.mjs +2 -0
  34. package/dist/chunk-SKJCQKFL.mjs +94 -0
  35. package/dist/chunk-TCJCE6WN.js +2 -0
  36. package/dist/chunk-UZ5EZOA7.js +2 -0
  37. package/dist/chunk-WSHSHIIM.mjs +2 -0
  38. package/dist/chunk-XMYUYQH7.mjs +72 -0
  39. package/dist/chunk-ZNTMZ6NM.js +7 -0
  40. package/dist/consent-audit-BdByjYlM.d.mts +65 -0
  41. package/dist/consent-audit-DhbfMR0n.d.ts +65 -0
  42. package/dist/consent.d.mts +120 -7
  43. package/dist/consent.d.ts +120 -7
  44. package/dist/consent.js +1 -1
  45. package/dist/consent.mjs +1 -1
  46. package/dist/core.d.mts +62 -12
  47. package/dist/core.d.ts +62 -12
  48. package/dist/core.js +1 -1
  49. package/dist/core.mjs +1 -1
  50. package/dist/{cross-border-BrIy1ieh.d.ts → cross-border-BMcqLvjC.d.mts} +1 -1
  51. package/dist/{cross-border-BrIy1ieh.d.mts → cross-border-BMcqLvjC.d.ts} +1 -1
  52. package/dist/cross-border-entry-BrWVPly6.d.ts +91 -0
  53. package/dist/cross-border-entry-cCTvpwnT.d.mts +91 -0
  54. package/dist/cross-border.d.mts +4 -58
  55. package/dist/cross-border.d.ts +4 -58
  56. package/dist/cross-border.js +1 -1
  57. package/dist/cross-border.mjs +1 -1
  58. package/dist/{dpia-vWfE_9bO.d.mts → dpia-5OQVA1R_.d.mts} +1 -1
  59. package/dist/{dpia-vWfE_9bO.d.ts → dpia-5OQVA1R_.d.ts} +1 -1
  60. package/dist/{dpia-fdtTd2DI.d.ts → dpia-B0Pok5us.d.ts} +1 -1
  61. package/dist/{dpia-B9ZZJG5a.d.mts → dpia-CUfOmzvX.d.mts} +1 -1
  62. package/dist/dpia.d.mts +119 -5
  63. package/dist/dpia.d.ts +119 -5
  64. package/dist/dpia.js +1 -1
  65. package/dist/dpia.mjs +1 -1
  66. package/dist/dsr-190YpijW.d.ts +307 -0
  67. package/dist/dsr-BTT-Xd7H.d.mts +307 -0
  68. package/dist/{dsr-pQzQ3H1O.d.mts → dsr-Cm9lzWG7.d.mts} +1 -1
  69. package/dist/{dsr-pQzQ3H1O.d.ts → dsr-Cm9lzWG7.d.ts} +1 -1
  70. package/dist/{dsr-whPkiI0_.d.mts → dsr-D_eTNc4S.d.mts} +1 -1
  71. package/dist/{dsr-jq5NUEdz.d.ts → dsr-pNtVb1BK.d.ts} +1 -1
  72. package/dist/dsr.d.mts +5 -192
  73. package/dist/dsr.d.ts +5 -192
  74. package/dist/dsr.js +1 -1
  75. package/dist/dsr.mjs +1 -1
  76. package/dist/hooks.d.mts +14 -14
  77. package/dist/hooks.d.ts +14 -14
  78. package/dist/hooks.js +1 -1
  79. package/dist/hooks.mjs +1 -1
  80. package/dist/index.d.mts +28 -27
  81. package/dist/index.d.ts +28 -27
  82. package/dist/index.js +1 -1
  83. package/dist/index.mjs +1 -1
  84. package/dist/{lawful-basis-v04AhbK2.d.ts → lawful-basis-BEyI0kGg.d.ts} +2 -2
  85. package/dist/{lawful-basis-D-oXFizg.d.mts → lawful-basis-C2eGaoHM.d.mts} +2 -2
  86. package/dist/{lawful-basis-CWtvDG1x.d.mts → lawful-basis-Cv1VmDLn.d.mts} +1 -1
  87. package/dist/{lawful-basis-CWtvDG1x.d.ts → lawful-basis-Cv1VmDLn.d.ts} +1 -1
  88. package/dist/lawful-basis-entry-15qjKcNO.d.ts +87 -0
  89. package/dist/lawful-basis-entry-CxZrofwG.d.mts +87 -0
  90. package/dist/lawful-basis.d.mts +5 -55
  91. package/dist/lawful-basis.d.ts +5 -55
  92. package/dist/lawful-basis.js +1 -1
  93. package/dist/lawful-basis.mjs +1 -1
  94. package/dist/policy-D2_jh5-T.d.ts +293 -0
  95. package/dist/policy-E0fXZkda.d.mts +293 -0
  96. package/dist/policy-templates-CIKcV0i1.d.ts +36 -0
  97. package/dist/policy-templates-DMsPwOSZ.d.mts +36 -0
  98. package/dist/policy.d.mts +5 -195
  99. package/dist/policy.d.ts +5 -195
  100. package/dist/policy.js +1 -1
  101. package/dist/policy.mjs +1 -1
  102. package/dist/{ropa-Rb4dsFSz.d.mts → ropa-DP7pPPql.d.mts} +2 -2
  103. package/dist/{ropa-BebGfqKQ.d.ts → ropa-Li6UlL5H.d.ts} +2 -2
  104. package/dist/ropa-entry-B0D7X1GV.d.ts +80 -0
  105. package/dist/ropa-entry-DiOThOc2.d.mts +80 -0
  106. package/dist/ropa.d.mts +5 -45
  107. package/dist/ropa.d.ts +5 -45
  108. package/dist/ropa.js +1 -1
  109. package/dist/ropa.mjs +1 -1
  110. package/dist/styles.css +40 -28
  111. package/dist/styles.d.ts +1 -0
  112. package/dist/unstyled.js +1 -1
  113. package/dist/unstyled.mjs +1 -1
  114. package/dist/{useBreach-WrZzJilM.d.mts → useBreach-BBSoIcZO.d.mts} +1 -1
  115. package/dist/{useBreach-vrh_XMpI.d.ts → useBreach-lFLbSyAN.d.ts} +1 -1
  116. package/dist/{useCrossBorderTransfer-TVnY8_UX.d.mts → useCrossBorderTransfer-BZVFCXfr.d.mts} +1 -1
  117. package/dist/{useCrossBorderTransfer-D4FQYfFt.d.ts → useCrossBorderTransfer-DmtACeqW.d.ts} +1 -1
  118. package/dist/{useDPIA-DFDHBLSa.d.ts → useDPIA-DBsg2yZx.d.ts} +1 -1
  119. package/dist/{useDPIA-FqPofFaV.d.mts → useDPIA-Da7-Q_yW.d.mts} +1 -1
  120. package/dist/{useDSR-DAqqOBXb.d.ts → useDSR-CYI7WCXr.d.ts} +1 -1
  121. package/dist/{useDSR-OXM5Q9rf.d.mts → useDSR-YYZ6FYFs.d.mts} +1 -1
  122. package/dist/{usePrivacyPolicy-CfySfBLS.d.ts → useDefaultPrivacyPolicy-B7kTHbZh.d.ts} +39 -2
  123. package/dist/{usePrivacyPolicy-Dit2sFuV.d.mts → useDefaultPrivacyPolicy-CUluF_ic.d.mts} +39 -2
  124. package/dist/{useLawfulBasis-RILM_xsx.d.ts → useLawfulBasis-CCWF9waR.d.ts} +2 -2
  125. package/dist/{useLawfulBasis-DNQ8YszQ.d.mts → useLawfulBasis-CpWuHtyh.d.mts} +2 -2
  126. package/dist/{useROPA-Bcs6cRdi.d.ts → useROPA-BhJ3kvHp.d.ts} +1 -1
  127. package/dist/{useROPA-nmcSiUYv.d.mts → useROPA-DLFdjkxP.d.mts} +1 -1
  128. package/package.json +30 -21
  129. package/dist/chunk-2XHD22J7.mjs +0 -7
  130. package/dist/chunk-4DKT6IB6.js +0 -94
  131. package/dist/chunk-6JFTAYXV.mjs +0 -2
  132. package/dist/chunk-6JVYYLS7.js +0 -2
  133. package/dist/chunk-6SGG6WPA.mjs +0 -2
  134. package/dist/chunk-AQEGDEQM.js +0 -7
  135. package/dist/chunk-C2IJWCZQ.mjs +0 -2
  136. package/dist/chunk-DB3JH4DS.mjs +0 -2
  137. package/dist/chunk-FFW7RUAG.mjs +0 -94
  138. package/dist/chunk-FK3CSFLJ.js +0 -2
  139. package/dist/chunk-IWUUVRLJ.js +0 -2
  140. package/dist/chunk-JUN6YPLL.mjs +0 -72
  141. package/dist/chunk-L3FKTBGV.js +0 -72
  142. package/dist/chunk-PM7CMTMB.js +0 -4
  143. package/dist/chunk-RB26MIRI.js +0 -2
  144. package/dist/chunk-RHWW5FDP.js +0 -16
  145. package/dist/chunk-SLNMKGQ2.mjs +0 -2
  146. package/dist/chunk-UUWVBENC.js +0 -2
  147. package/dist/chunk-UYP64PV7.mjs +0 -4
  148. package/dist/chunk-XMKA6GVK.mjs +0 -16
  149. package/dist/consent-DCc5zjXI.d.mts +0 -24
  150. package/dist/consent-DLWb5ota.d.ts +0 -24
  151. package/dist/privacy-9FcJceMr.d.mts +0 -15
  152. package/dist/privacy-BXz7O2ej.d.ts +0 -15
@@ -0,0 +1,307 @@
1
+ import React from 'react';
2
+ import { c as RequestType, D as DSRRequest, a as DSRStatus } from './dsr-Cm9lzWG7.mjs';
3
+ import './useDSR-YYZ6FYFs.mjs';
4
+ import './dsr-D_eTNc4S.mjs';
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 };
@@ -125,4 +125,4 @@ interface DSRRequest {
125
125
  extensionReason?: string;
126
126
  }
127
127
 
128
- export type { DSRRequest as D, RequestType as R, DSRStatus as a, DSRType as b, RequestStatus as c };
128
+ export type { DSRRequest as D, RequestStatus as R, DSRStatus as a, DSRType as b, RequestType as c };
@@ -125,4 +125,4 @@ interface DSRRequest {
125
125
  extensionReason?: string;
126
126
  }
127
127
 
128
- export type { DSRRequest as D, RequestType as R, DSRStatus as a, DSRType as b, RequestStatus as c };
128
+ export type { DSRRequest as D, RequestStatus as R, DSRStatus as a, DSRType as b, RequestType as c };
@@ -1,4 +1,4 @@
1
- import { D as DSRRequest } from './dsr-pQzQ3H1O.mjs';
1
+ import { D as DSRRequest } from './dsr-Cm9lzWG7.mjs';
2
2
 
3
3
  /**
4
4
  * Formats a DSR request for display or submission
@@ -1,4 +1,4 @@
1
- import { D as DSRRequest } from './dsr-pQzQ3H1O.js';
1
+ import { D as DSRRequest } from './dsr-Cm9lzWG7.js';
2
2
 
3
3
  /**
4
4
  * Formats a DSR request for display or submission
package/dist/dsr.d.mts CHANGED
@@ -1,192 +1,5 @@
1
- import React from 'react';
2
- import { R as RequestType, D as DSRRequest, a as DSRStatus } from './dsr-pQzQ3H1O.mjs';
3
- export { b as DSRType, c as RequestStatus } from './dsr-pQzQ3H1O.mjs';
4
- export { u as useDSR } from './useDSR-OXM5Q9rf.mjs';
5
- export { f as formatDSRRequest } from './dsr-whPkiI0_.mjs';
6
-
7
- interface DSRRequestFormProps {
8
- /**
9
- * Array of request types that can be submitted
10
- */
11
- requestTypes: RequestType[];
12
- /**
13
- * Callback function called when form is submitted
14
- */
15
- onSubmit: (formData: any) => void;
16
- /**
17
- * Title displayed on the form
18
- * @default "Submit a Data Subject Request"
19
- */
20
- title?: string;
21
- /**
22
- * Description text displayed on the form
23
- * @default "Use this form to exercise your rights under the Nigeria Data Protection Act (NDPA)."
24
- */
25
- description?: string;
26
- /**
27
- * Text for the submit button
28
- * @default "Submit Request"
29
- */
30
- submitButtonText?: string;
31
- /**
32
- * Custom CSS class for the form
33
- */
34
- className?: string;
35
- /**
36
- * Custom CSS class for the submit button
37
- */
38
- buttonClassName?: string;
39
- /**
40
- * Whether to show a confirmation message after submission
41
- * @default true
42
- */
43
- showConfirmation?: boolean;
44
- /**
45
- * Confirmation message to display after submission
46
- * @default "Your request has been submitted successfully. You will receive a confirmation email shortly."
47
- */
48
- confirmationMessage?: string;
49
- /**
50
- * Whether to require identity verification
51
- * @default true
52
- */
53
- requireIdentityVerification?: boolean;
54
- /**
55
- * Types of identifiers accepted for verification
56
- * @default ["email", "account", "customer_id"]
57
- */
58
- identifierTypes?: Array<{
59
- id: string;
60
- label: string;
61
- }>;
62
- /**
63
- * Whether to collect additional contact information
64
- * @default true
65
- */
66
- collectAdditionalContact?: boolean;
67
- /**
68
- * Custom labels for form fields
69
- */
70
- labels?: {
71
- name?: string;
72
- email?: string;
73
- requestType?: string;
74
- description?: string;
75
- submit?: string;
76
- };
77
- }
78
- declare const DSRRequestForm: React.FC<DSRRequestFormProps>;
79
-
80
- interface DSRDashboardProps {
81
- /**
82
- * List of DSR requests to display
83
- */
84
- requests: DSRRequest[];
85
- /**
86
- * Callback function called when a request is selected
87
- */
88
- onSelectRequest?: (requestId: string) => void;
89
- /**
90
- * Callback function called when a request status is updated
91
- */
92
- onUpdateStatus?: (requestId: string, status: DSRStatus) => void;
93
- /**
94
- * Callback function called when a request is assigned
95
- */
96
- onAssignRequest?: (requestId: string, assignee: string) => void;
97
- /**
98
- * Title displayed on the dashboard
99
- * @default "Data Subject Request Dashboard"
100
- */
101
- title?: string;
102
- /**
103
- * Description text displayed on the dashboard
104
- * @default "Track and manage data subject requests in compliance with NDPA requirements."
105
- */
106
- description?: string;
107
- /**
108
- * Custom CSS class for the dashboard
109
- */
110
- className?: string;
111
- /**
112
- * Custom CSS class for the buttons
113
- */
114
- buttonClassName?: string;
115
- /**
116
- * Whether to show the request details
117
- * @default true
118
- */
119
- showRequestDetails?: boolean;
120
- /**
121
- * Whether to show the request timeline
122
- * @default true
123
- */
124
- showRequestTimeline?: boolean;
125
- /**
126
- * Whether to show the deadline alerts
127
- * @default true
128
- */
129
- showDeadlineAlerts?: boolean;
130
- /**
131
- * List of possible assignees
132
- */
133
- assignees?: string[];
134
- }
135
- declare const DSRDashboard: React.FC<DSRDashboardProps>;
136
-
137
- interface DSRTrackerProps {
138
- /**
139
- * List of DSR requests to track
140
- */
141
- requests: DSRRequest[];
142
- /**
143
- * Callback function called when a request is selected
144
- */
145
- onSelectRequest?: (requestId: string) => void;
146
- /**
147
- * Title displayed on the tracker
148
- * @default "DSR Request Tracker"
149
- */
150
- title?: string;
151
- /**
152
- * Description text displayed on the tracker
153
- * @default "Track the status and progress of data subject requests."
154
- */
155
- description?: string;
156
- /**
157
- * Custom CSS class for the tracker
158
- */
159
- className?: string;
160
- /**
161
- * Custom CSS class for the buttons
162
- */
163
- buttonClassName?: string;
164
- /**
165
- * Whether to show the summary statistics
166
- * @default true
167
- */
168
- showSummaryStats?: boolean;
169
- /**
170
- * Whether to show the request type breakdown
171
- * @default true
172
- */
173
- showTypeBreakdown?: boolean;
174
- /**
175
- * Whether to show the status breakdown
176
- * @default true
177
- */
178
- showStatusBreakdown?: boolean;
179
- /**
180
- * Whether to show the timeline chart
181
- * @default true
182
- */
183
- showTimelineChart?: boolean;
184
- /**
185
- * Whether to show the overdue requests
186
- * @default true
187
- */
188
- showOverdueRequests?: boolean;
189
- }
190
- declare const DSRTracker: React.FC<DSRTrackerProps>;
191
-
192
- export { DSRDashboard, DSRRequest, DSRRequestForm, DSRStatus, DSRTracker, RequestType };
1
+ export { D as DSRDashboard, a as DSRDashboardClassNames, c as DSRRequestForm, d as DSRRequestFormClassNames, e as DSRTracker, f as DSRTrackerClassNames } from './dsr-BTT-Xd7H.mjs';
2
+ export { u as useDSR } from './useDSR-YYZ6FYFs.mjs';
3
+ export { f as formatDSRRequest } from './dsr-D_eTNc4S.mjs';
4
+ export { D as DSRRequest, a as DSRStatus, b as DSRType, R as RequestStatus, c as RequestType } from './dsr-Cm9lzWG7.mjs';
5
+ import 'react';