@mnbsolutions/framework-frontend 0.0.0-stage → 4.0.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 (125) hide show
  1. package/dist/esm/types/MuiClassNameSetup.d.ts +1 -0
  2. package/dist/esm/types/components/AdminLoginForm/AdminLoginForm.d.ts +89 -0
  3. package/dist/esm/types/components/AdminLoginForm/AdminLoginForm.stories.d.ts +11 -0
  4. package/dist/esm/types/components/AdminLoginForm/index.d.ts +3 -0
  5. package/dist/esm/types/components/Autocomplete/Autocomplete.d.ts +8 -0
  6. package/dist/esm/types/components/Autocomplete/Autocomplete.stories.d.ts +17 -0
  7. package/dist/esm/types/components/Autocomplete/AutocompleteOld.d.ts +7 -0
  8. package/dist/esm/types/components/Button/Button.d.ts +10 -0
  9. package/dist/esm/types/components/Button/Button.stories.d.ts +10 -0
  10. package/dist/esm/types/components/Captcha/CaptchaAccessibilityTest.d.ts +1 -0
  11. package/dist/esm/types/components/Captcha/CaptchaClientTest.d.ts +1 -0
  12. package/dist/esm/types/components/Captcha/CaptchaDebugTest.d.ts +1 -0
  13. package/dist/esm/types/components/Captcha/CaptchaDebugger.d.ts +1 -0
  14. package/dist/esm/types/components/Captcha/CaptchaExample.d.ts +1 -0
  15. package/dist/esm/types/components/Captcha/CaptchaStatusDebugger.d.ts +1 -0
  16. package/dist/esm/types/components/Captcha/CaptchaTest.d.ts +1 -0
  17. package/dist/esm/types/components/Captcha/CaptchaTroubleshoot.d.ts +2 -0
  18. package/dist/esm/types/components/Captcha/CaptchaWidget.d.ts +27 -0
  19. package/dist/esm/types/components/Captcha/CaptchaWidget.stories.d.ts +31 -0
  20. package/dist/esm/types/components/Captcha/CaptchaWidgetTest.d.ts +4 -0
  21. package/dist/esm/types/components/Captcha/ComprehensiveTest.d.ts +1 -0
  22. package/dist/esm/types/components/Captcha/FinalValidationTest.d.ts +1 -0
  23. package/dist/esm/types/components/Captcha/SimpleValidationTest.d.ts +1 -0
  24. package/dist/esm/types/components/Captcha/SubmitOnlyValidationTest.d.ts +1 -0
  25. package/dist/esm/types/components/Captcha/ValidationTest.d.ts +1 -0
  26. package/dist/esm/types/components/Captcha/hooks/useCaptchaForm.d.ts +14 -0
  27. package/dist/esm/types/components/Captcha/hooks/useCaptchaToken.d.ts +9 -0
  28. package/dist/esm/types/components/Captcha/hooks/useCaptchaValidation.d.ts +11 -0
  29. package/dist/esm/types/components/Captcha/types/captcha.d.ts +52 -0
  30. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +18 -0
  31. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +12 -0
  32. package/dist/esm/types/components/ConfigContext/ConfigContext.d.ts +10 -0
  33. package/dist/esm/types/components/ConfigContext/ConfigContext.types.d.ts +8 -0
  34. package/dist/esm/types/components/ConfigContext/index.d.ts +2 -0
  35. package/dist/esm/types/components/ContactLink/ContactLink.d.ts +7 -0
  36. package/dist/esm/types/components/ContactLink/ContactLink.stories.d.ts +7 -0
  37. package/dist/esm/types/components/ContactLink/index.d.ts +2 -0
  38. package/dist/esm/types/components/DataTable/DataTable.d.ts +14 -0
  39. package/dist/esm/types/components/DataTable/DataTable.stories.d.ts +16 -0
  40. package/dist/esm/types/components/DataTable/index.d.ts +3 -0
  41. package/dist/esm/types/components/DataTable/locales/deDE.d.ts +6 -0
  42. package/dist/esm/types/components/DataTable/locales/index.d.ts +7 -0
  43. package/dist/esm/types/components/DataTable/types.d.ts +127 -0
  44. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +12 -0
  45. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +15 -0
  46. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +14 -0
  47. package/dist/esm/types/components/Experimental/UrlField/UrlField.d.ts +34 -0
  48. package/dist/esm/types/components/Experimental/UrlField/UrlField.stories.d.ts +6 -0
  49. package/dist/esm/types/components/Experimental/UrlField/index.d.ts +3 -0
  50. package/dist/esm/types/components/Fields/makeCustomAddressAutocompleteRHF.d.ts +40 -0
  51. package/dist/esm/types/components/Fields/makeCustomAutocompleteRHF.d.ts +40 -0
  52. package/dist/esm/types/components/Fields/makeCustomCheckboxRHF.d.ts +53 -0
  53. package/dist/esm/types/components/Fields/makeCustomDatePickerRHF.d.ts +22 -0
  54. package/dist/esm/types/components/Fields/makeCustomInputRHF.d.ts +25 -0
  55. package/dist/esm/types/components/Fields/makeCustomRadioRHF.d.ts +41 -0
  56. package/dist/esm/types/components/FieldsetLegend/FieldsetLegend.d.ts +58 -0
  57. package/dist/esm/types/components/FileUpload/FileUpload.d.ts +23 -0
  58. package/dist/esm/types/components/FileUpload/FileUpload.stories.d.ts +16 -0
  59. package/dist/esm/types/components/FileUpload/FileUpload2.d.ts +18 -0
  60. package/dist/esm/types/components/FileUpload/ShowUploadFiles.d.ts +20 -0
  61. package/dist/esm/types/components/FileUpload/ShowUploadFiles2.d.ts +19 -0
  62. package/dist/esm/types/components/FileUpload/UploadField.d.ts +28 -0
  63. package/dist/esm/types/components/FileUpload/UploadField.stories.d.ts +8 -0
  64. package/dist/esm/types/components/FileUpload/UploadField2.d.ts +33 -0
  65. package/dist/esm/types/components/FileUpload/UploadField2.stories.d.ts +10 -0
  66. package/dist/esm/types/components/FileUpload/types.d.ts +8 -0
  67. package/dist/esm/types/components/FormControlLabel/FormControlLabel.d.ts +7 -0
  68. package/dist/esm/types/components/ImageUploadCrop/ImageUploadCrop.d.ts +34 -0
  69. package/dist/esm/types/components/ImageUploadCrop/ImageUploadCrop.stories.d.ts +6 -0
  70. package/dist/esm/types/components/ImageUploadCrop/index.d.ts +3 -0
  71. package/dist/esm/types/components/InfoTooltipIcon/InfoTooltipIcon.d.ts +18 -0
  72. package/dist/esm/types/components/InfoTooltipIcon/InfoTooltipIcon.stories.d.ts +7 -0
  73. package/dist/esm/types/components/InfoTooltipIcon/TooltipWrapper.d.ts +35 -0
  74. package/dist/esm/types/components/InfoTooltipIcon/TooltipWrapper.stories.d.ts +7 -0
  75. package/dist/esm/types/components/LinkButton/LinkButton.d.ts +16 -0
  76. package/dist/esm/types/components/LinkButton/LinkButton.stories.d.ts +16 -0
  77. package/dist/esm/types/components/LocalizationProvider/LocalizationProvider.d.ts +8 -0
  78. package/dist/esm/types/components/Modal/MnbModal.d.ts +31 -0
  79. package/dist/esm/types/components/Modal/MnbModal.stories.d.ts +9 -0
  80. package/dist/esm/types/components/Notification/NotificationExample.d.ts +1 -0
  81. package/dist/esm/types/components/Notification/NotificationSystem.d.ts +81 -0
  82. package/dist/esm/types/components/Notification/NotificationTest.d.ts +1 -0
  83. package/dist/esm/types/components/Notification/ToastContainer.d.ts +182 -0
  84. package/dist/esm/types/components/PrivacyLink/PrivacyLink.d.ts +13 -0
  85. package/dist/esm/types/components/PrivacyLink/PrivacyLink.stories.d.ts +6 -0
  86. package/dist/esm/types/components/Radio/Radio.d.ts +31 -0
  87. package/dist/esm/types/components/Radio/Radio.stories.d.ts +13 -0
  88. package/dist/esm/types/components/Radio/RadioWCAG.d.ts +35 -0
  89. package/dist/esm/types/components/RequiredFieldsInfo/RequiredFieldsInfo.d.ts +34 -0
  90. package/dist/esm/types/components/RequiredFieldsInfo/RequiredFieldsInfo.stories.d.ts +7 -0
  91. package/dist/esm/types/components/RichTextEditor/RichTextEditor.d.ts +13 -0
  92. package/dist/esm/types/components/RichTextEditor/RichTextEditor.stories.d.ts +6 -0
  93. package/dist/esm/types/components/RichTextEditor/index.d.ts +3 -0
  94. package/dist/esm/types/components/Select/Select.d.ts +19 -0
  95. package/dist/esm/types/components/Select/Select.stories.d.ts +14 -0
  96. package/dist/esm/types/components/StatusTimeline/StatusTimeline.d.ts +38 -0
  97. package/dist/esm/types/components/StatusTimeline/StatusTimeline.stories.d.ts +7 -0
  98. package/dist/esm/types/components/StatusTimeline/index.d.ts +3 -0
  99. package/dist/esm/types/components/SvgIcon/SvgIcon.d.ts +27 -0
  100. package/dist/esm/types/components/SvgIcon/SvgIcon.stories.d.ts +7 -0
  101. package/dist/esm/types/components/TextField/TextField.d.ts +6 -0
  102. package/dist/esm/types/components/TextField/TextField.stories.d.ts +14 -0
  103. package/dist/esm/types/components/ThemeWrapper/ThemeWrapper.d.ts +9 -0
  104. package/dist/esm/types/components/UsercentricsAllowScreen/UsercentricsAllowScreen.d.ts +8 -0
  105. package/dist/esm/types/components/Wizard/NavigateItem.d.ts +28 -0
  106. package/dist/esm/types/components/Wizard/Wizard.d.ts +30 -0
  107. package/dist/esm/types/components/Wizard/Wizard.stories.d.ts +7 -0
  108. package/dist/esm/types/components/Wizard/Wizard.types.d.ts +17 -0
  109. package/dist/esm/types/components/Wizard/WizardAccessibilityTest.d.ts +1 -0
  110. package/dist/esm/types/components/Wizard/WizardTest.d.ts +1 -0
  111. package/dist/esm/types/hooks/useUserCentrics.d.ts +42 -0
  112. package/dist/esm/types/index.d.ts +95 -0
  113. package/dist/esm/types/stories/ThemeViewer.stories.d.ts +7 -0
  114. package/dist/esm/types/stories/decorators.d.ts +2 -0
  115. package/dist/esm/types/utils/accessibility.d.ts +94 -0
  116. package/dist/esm/types/utils/createFormField.d.ts +19 -0
  117. package/dist/esm/types/utils/pdfAccessibilityUtils.d.ts +213 -0
  118. package/dist/esm/types/utils/utils.d.ts +6 -0
  119. package/dist/index.d.ts +1777 -0
  120. package/dist/index.esm.js +29 -0
  121. package/dist/index.esm.js.map +1 -0
  122. package/dist/index.js +29 -0
  123. package/dist/index.js.map +1 -0
  124. package/package.json +103 -4
  125. package/README.md +0 -3
@@ -0,0 +1,1777 @@
1
+ import * as _mui_material from '@mui/material';
2
+ import { GridDirection, AutocompleteChangeReason, AutocompleteProps, Theme, TypographyProps } from '@mui/material';
3
+ export * from '@mui/material';
4
+ export * from '@mui/types';
5
+ import * as locale from '@mui/material/locale';
6
+ export { locale as muiLocales };
7
+ import { Theme as Theme$1 } from '@mui/material/styles';
8
+ export * from '@mui/material/styles';
9
+ import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers-pro';
10
+ export * from '@mui/x-date-pickers-pro';
11
+ export { AdapterMoment } from '@mui/x-date-pickers-pro/AdapterMoment';
12
+ import * as locales from '@mui/x-date-pickers-pro/locales';
13
+ export { locales as pickerProLocales };
14
+ import * as locales$1 from '@mui/x-date-pickers/locales';
15
+ export { locales$1 as pickerLocales };
16
+ import { GridValidRowModel, DataGridProProps, GridLocaleText } from '@mui/x-data-grid-pro';
17
+ export * from '@mui/x-data-grid-pro';
18
+ import * as xDataGrid from '@mui/x-data-grid';
19
+ export { xDataGrid as DataGrid };
20
+ import * as locales$2 from '@mui/x-data-grid-pro/locales';
21
+ export { locales$2 as gridLocales };
22
+ export * from '@mui/x-license';
23
+ export { LicenseInfo } from '@mui/x-license';
24
+ import * as iconsMaterial from '@mui/icons-material';
25
+ export { iconsMaterial as Icons };
26
+ import * as cache from '@emotion/cache';
27
+ export { cache as emotionCache };
28
+ import * as react from '@emotion/react';
29
+ export { react as emotionReact };
30
+ import { FieldValues, Path, RegisterOptions, Control, UseFormSetValue } from 'react-hook-form';
31
+ export * from 'react-hook-form';
32
+ import React, { ReactElement, CSSProperties, ReactNode } from 'react';
33
+ import { jsPDF } from 'jspdf';
34
+ import { ButtonProps } from '@mui/material/Button';
35
+ import { FormControlProps } from '@mui/material/FormControl/FormControl';
36
+ import { InputLabelProps } from '@mui/material/InputLabel/InputLabel';
37
+ import { SelectProps } from '@mui/material/Select/Select';
38
+ import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
39
+ import { FormControlLabelProps } from '@mui/material/FormControlLabel/FormControlLabel';
40
+ import { LocalizationProviderProps, DatePickerProps } from '@mui/x-date-pickers';
41
+ import * as _emotion_styled from '@emotion/styled';
42
+ import * as _mui_system from '@mui/system';
43
+ import { RadioProps } from '@mui/material/Radio/Radio';
44
+ import { Moment } from 'moment';
45
+ import * as react_jsx_runtime from 'react/jsx-runtime';
46
+ import { CheckboxProps } from '@mui/material/Checkbox/Checkbox';
47
+ import { RadioGroupProps } from '@mui/material/RadioGroup/RadioGroup';
48
+ import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
49
+ import { TooltipProps } from '@mui/material/Tooltip';
50
+ import { SvgIconProps } from '@mui/material/SvgIcon';
51
+
52
+ interface BaseFormFieldProps<T extends FieldValues = FieldValues> {
53
+ name: Path<T>;
54
+ label: string;
55
+ disabled?: boolean;
56
+ fullWidth?: boolean;
57
+ rules?: RegisterOptions<T, Path<T>>;
58
+ config?: RegisterOptions<T, Path<T>>;
59
+ isLoading?: boolean;
60
+ /** Pass this when you’re NOT using FormProvider */
61
+ control?: Control<T>;
62
+ }
63
+ declare function createFormField<T extends FieldValues, P extends {}>(render: (args: {
64
+ field: any;
65
+ fieldState: any;
66
+ formState: any;
67
+ props: BaseFormFieldProps<T> & Omit<P, 'name'>;
68
+ }) => React.ReactNode): React.FC<BaseFormFieldProps<T> & Omit<P, "name">>;
69
+
70
+ /**
71
+ * PDF Accessibility Utilities Module
72
+ *
73
+ * A flexible, configurable module for improving PDF accessibility when using jsPDF.
74
+ * Designed to be shared across projects in the mnb-framework.
75
+ *
76
+ * WARNING: This module provides LIMITED accessibility improvements for PDFs generated with jsPDF.
77
+ * It does NOT create true PDF tags (structure tree) required for WCAG/PDF-UA compliance.
78
+ *
79
+ * What this module DOES:
80
+ * - Adds invisible semantic text hints that screen readers can read
81
+ * - Provides bookmark/outline tracking for navigation
82
+ * - Enhances document metadata (language, title, etc.)
83
+ * - Supports German language with customizable announcements
84
+ * - Configurable visual settings (font size, color, position)
85
+ *
86
+ * What this module DOES NOT do:
87
+ * - Create PDF structure tree (/StructTreeRoot)
88
+ * - Enable heading navigation shortcuts in screen readers
89
+ * - Provide table cell navigation
90
+ * - Make PDFs WCAG/PDF-UA compliant
91
+ *
92
+ * LIMITATIONS:
93
+ * 1. Invisible text may still be selectable/copyable in some PDF viewers
94
+ * 2. Light gray text becomes visible if PDF is printed in grayscale
95
+ * 3. Bookmarks require jsPDF version with outline API support
96
+ * 4. This is a workaround, not a true accessibility solution
97
+ *
98
+ * For true WCAG compliance, use server-side PDF generation with libraries that support
99
+ * tagged PDFs (e.g., iText, pdfbox, etc.)
100
+ */
101
+
102
+ /**
103
+ * Type for semantic element types that can be announced
104
+ */
105
+ type SemanticType = 'heading' | 'section' | 'table' | 'list' | 'paragraph' | 'checkbox' | 'radio';
106
+ /**
107
+ * Interface for tracking bookmarks/sections
108
+ */
109
+ interface BookmarkEntry {
110
+ name: string;
111
+ page: number;
112
+ level?: number;
113
+ parent?: string;
114
+ }
115
+ /**
116
+ * Language-specific text mappings for semantic announcements (German only)
117
+ */
118
+ interface LanguageTexts {
119
+ heading: (level: number, label?: string) => string;
120
+ section: (label?: string) => string;
121
+ table: (label?: string) => string;
122
+ list: (label?: string) => string;
123
+ paragraph: (label?: string) => string;
124
+ checkbox: (label?: string, checked?: boolean) => string;
125
+ radio: (label?: string, selected?: boolean) => string;
126
+ labelValueList: string;
127
+ checkboxChecked: string;
128
+ checkboxUnchecked: string;
129
+ radioSelected: string;
130
+ radioUnselected: string;
131
+ }
132
+ /**
133
+ * Character sanitization function type
134
+ */
135
+ type CharacterSanitizer = (text: string) => string;
136
+ /**
137
+ * Predefined character sanitizers
138
+ */
139
+ declare const CharacterSanitizers: Record<string, CharacterSanitizer>;
140
+ /**
141
+ * Configuration for PDF accessibility utilities
142
+ */
143
+ interface PdfAccessibilityConfig {
144
+ /**
145
+ * Custom language texts (overrides predefined if provided)
146
+ */
147
+ languageTexts?: Partial<LanguageTexts>;
148
+ /**
149
+ * Character sanitizer function for PDF metadata
150
+ * Default: german sanitizer (converts umlauts to ASCII)
151
+ */
152
+ characterSanitizer?: CharacterSanitizer;
153
+ /**
154
+ * Font size for invisible semantic hints (in points)
155
+ * Default: 2 (minimum recommended for accessible PDFs)
156
+ */
157
+ semanticHintFontSize?: number;
158
+ /**
159
+ * Text color for invisible semantic hints (RGB values 0-255)
160
+ * Default: [250, 250, 250] (very light gray)
161
+ */
162
+ semanticHintColor?: [number, number, number];
163
+ /**
164
+ * Y-position offset for semantic hints (in mm)
165
+ * Negative values place hint above visible text
166
+ * Default: -0.5
167
+ */
168
+ semanticHintPositionOffset?: number;
169
+ /**
170
+ * X-position (margin left) for semantic hints (in mm)
171
+ * If not provided, uses doc's current margin or 10mm
172
+ */
173
+ semanticHintMarginLeft?: number;
174
+ /**
175
+ * Enable/disable semantic hints
176
+ * Default: true
177
+ */
178
+ enableSemanticHints?: boolean;
179
+ /**
180
+ * Enable/disable bookmarks
181
+ * Default: true
182
+ */
183
+ enableBookmarks?: boolean;
184
+ /**
185
+ * Enable/disable metadata enhancement
186
+ * Default: true
187
+ */
188
+ enableMetadata?: boolean;
189
+ }
190
+ /**
191
+ * Class to track document structure for bookmarks
192
+ */
193
+ declare class BookmarkTracker {
194
+ private bookmarks;
195
+ private currentPage;
196
+ /**
197
+ * Add a bookmark entry
198
+ */
199
+ addBookmark(name: string, page: number, level?: number, parent?: string): void;
200
+ /**
201
+ * Get current page
202
+ * @deprecated This method is not used effectively. Page numbers should be passed directly to addBookmark.
203
+ */
204
+ getCurrentPage(): number;
205
+ /**
206
+ * Get all bookmarks
207
+ */
208
+ getBookmarks(): BookmarkEntry[];
209
+ /**
210
+ * Clear all bookmarks
211
+ */
212
+ clear(): void;
213
+ }
214
+ /**
215
+ * Main class for PDF accessibility utilities
216
+ */
217
+ declare class PdfAccessibilityUtils {
218
+ private config;
219
+ private languageTexts;
220
+ constructor(config?: PdfAccessibilityConfig);
221
+ /**
222
+ * Get current configuration
223
+ */
224
+ getConfig(): Required<PdfAccessibilityConfig>;
225
+ /**
226
+ * Update configuration
227
+ */
228
+ updateConfig(updates: Partial<PdfAccessibilityConfig>): void;
229
+ /**
230
+ * Adds invisible semantic hint text that screen readers can read
231
+ */
232
+ addInvisibleSemanticHint(doc: jsPDF, currentPos: number, semanticType: SemanticType, level?: number, label?: string, additionalData?: {
233
+ checked?: boolean;
234
+ selected?: boolean;
235
+ }): number;
236
+ /**
237
+ * Adds bookmarks/outline to PDF document
238
+ *
239
+ * @param rootTitle - Optional root bookmark title. If not provided or empty, no root bookmark is created
240
+ * and top-level bookmarks are added directly to the outline.
241
+ */
242
+ addBookmarksToPdf(doc: jsPDF, tracker: BookmarkTracker, rootTitle?: string | null): boolean;
243
+ /**
244
+ * Enhances PDF document properties with accessibility metadata
245
+ */
246
+ setAccessiblePdfProperties(doc: jsPDF, title: string, subject: string, author: string, keywords: string, creator: string, language?: string): void;
247
+ /**
248
+ * Convenience methods for common semantic hints
249
+ */
250
+ addHeadingSemanticHint(doc: jsPDF, pos: number, headingText: string, level?: number): number;
251
+ addTableSemanticHint(doc: jsPDF, pos: number, tableDescription: string): number;
252
+ addLabelValueListSemanticHint(doc: jsPDF, pos: number): number;
253
+ addCheckboxSemanticHint(doc: jsPDF, pos: number, checkboxLabel: string, checked: boolean): number;
254
+ addRadioSemanticHint(doc: jsPDF, pos: number, radioLabel: string, selected: boolean): number;
255
+ }
256
+ /**
257
+ * Default instance with German configuration (for backward compatibility)
258
+ */
259
+ declare const defaultPdfAccessibilityUtils: PdfAccessibilityUtils;
260
+ /**
261
+ * Convenience exports using default instance (for backward compatibility)
262
+ * Note: BookmarkTracker is already exported as a class above
263
+ */
264
+ declare const addInvisibleSemanticHint: (doc: jsPDF, currentPos: number, semanticType: SemanticType, level?: number, label?: string, additionalData?: {
265
+ checked?: boolean;
266
+ selected?: boolean;
267
+ }) => number;
268
+ declare const addBookmarksToPdf: (doc: jsPDF, tracker: BookmarkTracker, rootTitle?: string | null) => boolean;
269
+ declare const setAccessiblePdfProperties: (doc: jsPDF, title: string, subject: string, author: string, keywords: string, creator: string, language?: string) => void;
270
+ declare const addHeadingSemanticHint: (doc: jsPDF, pos: number, headingText: string, level?: number) => number;
271
+ declare const addTableSemanticHint: (doc: jsPDF, pos: number, tableDescription: string) => number;
272
+ declare const addLabelValueListSemanticHint: (doc: jsPDF, pos: number) => number;
273
+ declare const addCheckboxSemanticHint: (doc: jsPDF, pos: number, checkboxLabel: string, checked: boolean) => number;
274
+ declare const addRadioSemanticHint: (doc: jsPDF, pos: number, radioLabel: string, selected: boolean) => number;
275
+ /**
276
+ * Validates that accessibility features are working
277
+ */
278
+ declare const validateAccessibilityFeatures: (doc: jsPDF) => {
279
+ outlineSupported: boolean;
280
+ propertiesSet: boolean;
281
+ warnings: string[];
282
+ };
283
+
284
+ type MnbTextFieldProps = React.ComponentProps<typeof TextField>;
285
+ type CustomInputRHFProps<T extends FieldValues = FieldValues> = {
286
+ name: Path<T>;
287
+ label: string;
288
+ disabled?: boolean;
289
+ fullWidth?: boolean;
290
+ isLoading?: boolean;
291
+ /** Prefer `rules`; `config` kept for backwards compatibility */
292
+ rules?: RegisterOptions<T, Path<T>>;
293
+ config?: RegisterOptions<T, Path<T>>;
294
+ /** Pass when NOT using <FormProvider> */
295
+ control?: Control<T>;
296
+ } & Omit<MnbTextFieldProps, 'name' | 'defaultValue' | 'value' | 'onChange' | 'onBlur' | 'ref' | 'label'>;
297
+ type MakeOptions<T extends FieldValues> = {
298
+ /** Optional: compute variant dynamically (e.g., based on theme) */
299
+ getVariant?: (ctx: {
300
+ props: CustomInputRHFProps<T>;
301
+ value: any;
302
+ }) => MnbTextFieldProps['variant'];
303
+ };
304
+ declare function makeCustomInputRHF<T extends FieldValues = FieldValues>(opts?: MakeOptions<T>): React.FC<CustomInputRHFProps<T>>;
305
+
306
+ /** Optional ARIA props like in your legacy CustomCheckbox */
307
+ type ItemAriaProps = Partial<{
308
+ 'aria-expanded': boolean;
309
+ 'aria-controls': string;
310
+ 'aria-describedby': string;
311
+ 'aria-invalid': boolean;
312
+ }>;
313
+ /** Per-item config for per-field mode (boolean fields) */
314
+ type CheckboxItemPerField<T extends FieldValues> = ItemAriaProps & {
315
+ name: Path<T>;
316
+ label: string | React.ReactNode;
317
+ labelBold?: boolean;
318
+ rules?: RegisterOptions<T, Path<T>>;
319
+ config?: RegisterOptions<T, Path<T>>;
320
+ };
321
+ /** Per-item config for field-array mode (single array field collecting values) */
322
+ type CheckboxItemArray = ItemAriaProps & {
323
+ value: string;
324
+ label: string | React.ReactNode;
325
+ labelBold?: boolean;
326
+ };
327
+ type CustomCheckboxProps<T extends FieldValues = FieldValues> = {
328
+ /** Items; meaning depends on isFieldArray */
329
+ checkboxValues: (CheckboxItemPerField<T> | CheckboxItemArray)[];
330
+ /** Layout / styling */
331
+ className?: string;
332
+ errorClassName?: string;
333
+ row?: boolean;
334
+ disabled?: boolean;
335
+ /** RHF interop */
336
+ control?: Control<T>;
337
+ /** If true, this group controls a single array field (string[]) using props.name */
338
+ isFieldArray?: boolean;
339
+ /** Required when isFieldArray is true: the array field name */
340
+ name?: Path<T>;
341
+ /** Group-level rules when isFieldArray is true (e.g., min selection) */
342
+ groupRules?: RegisterOptions<T, Path<T>>;
343
+ /** Optional helper text under the group (string or function) */
344
+ helperText?: React.ReactNode | ((ctx: {
345
+ errors: any;
346
+ hasError: boolean;
347
+ }) => React.ReactNode);
348
+ hasCustomErrorMessage?: boolean;
349
+ };
350
+ /**
351
+ * Generic, RHF-aware Checkbox Group that mirrors your CustomCheckbox behavior and adds:
352
+ * - isFieldArray mode (single string[] field)
353
+ * - helper text under the group
354
+ * - works with FormProvider or explicit control
355
+ */
356
+ declare function makeCustomCheckboxRHF<T extends FieldValues = FieldValues>(): React.FC<CustomCheckboxProps<T>>;
357
+
358
+ type RadioItem = {
359
+ value: string;
360
+ label: string;
361
+ disabled?: boolean;
362
+ };
363
+ type CustomRadioProps<T extends FieldValues = FieldValues> = {
364
+ /** RHF field name (type-safe) */
365
+ name: Path<T>;
366
+ /** Optional group label */
367
+ label?: string | React.ReactNode;
368
+ /** Options */
369
+ radioValues: RadioItem[];
370
+ /** Optional: externally controlled selection override */
371
+ selectedValue?: string;
372
+ /** Layout/styling */
373
+ className?: string;
374
+ errorClassName?: string;
375
+ row?: boolean;
376
+ disabled?: boolean;
377
+ /** Validation */
378
+ rules?: RegisterOptions<T, Path<T>>;
379
+ config?: RegisterOptions<T, Path<T>>;
380
+ /** If NOT using <FormProvider>, pass control here */
381
+ control?: Control<T>;
382
+ /** Intercept onChange; call provided onChange when done */
383
+ onChangeOverride?: (e: React.ChangeEvent<HTMLInputElement>, value: string, onChange: (value: any) => void) => void;
384
+ /** If you need to mimic preventDefault() behavior */
385
+ preventDefaultOnChange?: boolean;
386
+ direction?: GridDirection;
387
+ /** ARIA accessibility props */
388
+ 'aria-label'?: string;
389
+ 'aria-labelledby'?: string;
390
+ 'aria-describedby'?: string;
391
+ 'aria-invalid'?: boolean;
392
+ 'aria-required'?: boolean;
393
+ role?: string;
394
+ };
395
+ declare function makeCustomRadioRHF<T extends FieldValues = FieldValues>(): React.FC<CustomRadioProps<T>>;
396
+
397
+ type AutoCompleteMode = 'PLZ' | 'CITY' | 'STREET';
398
+ type CustomAddressAutocompleteProps<T extends FieldValues = FieldValues> = {
399
+ name: Path<T>;
400
+ label: string;
401
+ url: string;
402
+ autoCompleteFor: AutoCompleteMode;
403
+ city?: string;
404
+ postalNumber?: string;
405
+ disabled?: boolean;
406
+ autoload?: boolean;
407
+ placeholder?: string;
408
+ autoComplete?: string;
409
+ rules?: RegisterOptions<T, Path<T>>;
410
+ config?: RegisterOptions<T, Path<T>>;
411
+ control?: Control<T>;
412
+ onOptionSelected?: (selected: any, api: {
413
+ setValue: UseFormSetValue<T>;
414
+ name: Path<T>;
415
+ }) => void;
416
+ setValue?: UseFormSetValue<T>;
417
+ onClear?: (api: {
418
+ setValue: UseFormSetValue<T>;
419
+ name: Path<T>;
420
+ }) => void;
421
+ minChars?: number;
422
+ debounceMs?: number;
423
+ getOptionLabel?: (option: any) => string;
424
+ buildQuery?: (args: {
425
+ mode: AutoCompleteMode;
426
+ search: string;
427
+ city?: string;
428
+ postalNumber?: string;
429
+ }) => string;
430
+ clearOptionsSignal?: unknown;
431
+ /** Allow user to create a new option from free text input */
432
+ creatable?: boolean;
433
+ };
434
+ declare function makeCustomAddressAutocompleteRHF<T extends FieldValues = FieldValues>(): React.FC<CustomAddressAutocompleteProps<T>>;
435
+
436
+ /**
437
+ * A generic RHF wrapper for MnbAutocomplete WITHOUT address fetching.
438
+ * - Uses provided `items` only
439
+ * - Adds WCAG aids (instructions + live results count)
440
+ * - Works with FormProvider or with explicit `control`
441
+ */
442
+ type CustomAutocompleteItem = {
443
+ id?: string | number;
444
+ name?: string;
445
+ label?: string;
446
+ value?: string;
447
+ [key: string]: any;
448
+ };
449
+ type CustomAutocompleteRHFProps<T extends FieldValues = FieldValues> = {
450
+ name: Path<T>;
451
+ label: string;
452
+ items: CustomAutocompleteItem[];
453
+ disabled?: boolean;
454
+ fullWidth?: boolean;
455
+ multiple?: boolean;
456
+ isLoading?: boolean;
457
+ isCreatable?: boolean;
458
+ placeholder?: string;
459
+ /** Validation */
460
+ rules?: RegisterOptions<T, Path<T>>;
461
+ config?: RegisterOptions<T, Path<T>>;
462
+ /** If NOT using <FormProvider>, pass control here */
463
+ control?: Control<T>;
464
+ /**
465
+ * Custom label/value resolvers
466
+ */
467
+ getOptionLabel?: (option: CustomAutocompleteItem) => string;
468
+ isOptionEqualToValue?: (option: CustomAutocompleteItem, value: CustomAutocompleteItem) => boolean;
469
+ /** Optional external onChange tap */
470
+ onChanged?: (value: CustomAutocompleteItem | CustomAutocompleteItem[] | null, reason: AutocompleteChangeReason) => void;
471
+ };
472
+ declare function makeCustomAutocompleteRHF<T extends FieldValues = FieldValues>(): React.FC<CustomAutocompleteRHFProps<T>>;
473
+
474
+ interface MyButtonProps extends ButtonProps {
475
+ children: React.ReactNode;
476
+ ariaDisabled?: boolean;
477
+ disableAutoAriaLabel?: boolean;
478
+ isLoading?: boolean;
479
+ }
480
+ declare const Button: React.FC<MyButtonProps>;
481
+
482
+ interface IDropdownProps extends AutocompleteProps<any, any, any, any> {
483
+ children?: React.ReactNode;
484
+ theme?: any;
485
+ items: {
486
+ id: string;
487
+ name: string;
488
+ }[];
489
+ isCreatable?: boolean;
490
+ placeholder?: string;
491
+ }
492
+ declare const Dropdown: React.FC<IDropdownProps>;
493
+
494
+ interface MyAutocompleteProps$1 extends AutocompleteProps<any, any, any, any, any> {
495
+ label: string;
496
+ required?: boolean;
497
+ }
498
+ declare const Autocomplete: React.ForwardRefExoticComponent<Omit<MyAutocompleteProps$1, "ref"> & React.RefAttributes<HTMLDivElement>>;
499
+
500
+ interface MyAutocompleteProps extends AutocompleteProps<any, any, any, any, any> {
501
+ label: string;
502
+ }
503
+ declare const AutocompleteOld: React.ForwardRefExoticComponent<Omit<MyAutocompleteProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
504
+
505
+ interface ISelectProps {
506
+ label: string;
507
+ options: {
508
+ id: string;
509
+ name: string;
510
+ }[];
511
+ required?: boolean;
512
+ formControlProps?: FormControlProps;
513
+ inputLabelProps?: InputLabelProps;
514
+ selectProps?: SelectProps;
515
+ menuItemProps?: MenuItemProps;
516
+ }
517
+ declare const Select: React.ForwardRefExoticComponent<ISelectProps & React.RefAttributes<HTMLDivElement>>;
518
+
519
+ interface IFormControlLabelProps extends FormControlLabelProps {
520
+ underline?: boolean;
521
+ }
522
+ declare const FormControlLabel: React.ComponentType<IFormControlLabelProps>;
523
+
524
+ interface ILocalizationProviderProps extends LocalizationProviderProps<any, any> {
525
+ children: React.ReactNode;
526
+ }
527
+ declare const LocalizationProvider: React.FC<ILocalizationProviderProps>;
528
+
529
+ interface IRadioProps$1 extends RadioProps {
530
+ clr?: string;
531
+ hoverclr?: string;
532
+ label?: string;
533
+ required?: boolean;
534
+ }
535
+ interface IRadioGroupProps$1 {
536
+ label?: string;
537
+ required?: boolean;
538
+ children: React.ReactNode;
539
+ value?: string;
540
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
541
+ name?: string;
542
+ }
543
+ declare const RadioIcon: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
544
+ clr?: string;
545
+ hoverclr?: string;
546
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
547
+ declare const RadioCheckedIcon: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
548
+ clr?: string;
549
+ hoverclr?: string;
550
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
551
+ clr?: string;
552
+ hoverclr?: string;
553
+ }, {}, {}>;
554
+ declare const Radio: React.ForwardRefExoticComponent<Omit<IRadioProps$1, "ref"> & React.RefAttributes<HTMLInputElement>>;
555
+ declare const RadioGroupComponent$1: React.FC<IRadioGroupProps$1>;
556
+
557
+ declare const TextField: React.ForwardRefExoticComponent<(Omit<_mui_material.FilledTextFieldProps, "ref"> | Omit<_mui_material.StandardTextFieldProps, "ref"> | Omit<_mui_material.OutlinedTextFieldProps, "ref">) & React.RefAttributes<any>>;
558
+
559
+ /**
560
+ * MnbDatePicker – A themed wrapper around MUI X DatePicker that
561
+ * - uses the library TextField for consistent labeling and a11y
562
+ * - applies consistent calendar styling using theme colors
563
+ * - forwards all DatePicker props to MUI
564
+ */
565
+ declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps<Moment, any> & React.RefAttributes<HTMLDivElement>>;
566
+
567
+ type CustomDatePickerRHFProps<T extends FieldValues = FieldValues> = {
568
+ name: Path<T>;
569
+ label: string;
570
+ disabled?: boolean;
571
+ fullWidth?: boolean;
572
+ isLoading?: boolean;
573
+ /** Validation */
574
+ rules?: RegisterOptions<T, Path<T>>;
575
+ config?: RegisterOptions<T, Path<T>>;
576
+ /** If NOT using <FormProvider>, pass control here */
577
+ control?: Control<T>;
578
+ /** Additional props to pass to the underlying TextField */
579
+ textFieldProps?: React.ComponentProps<typeof TextField>;
580
+ /** MUI DatePicker props */
581
+ datePickerProps?: DatePickerProps$1<Moment, any>;
582
+ };
583
+ declare function makeCustomDatePickerRHF<T extends FieldValues = FieldValues>(): React.FC<CustomDatePickerRHFProps<T>>;
584
+
585
+ interface ICheckboxProps extends CheckboxProps {
586
+ clr?: string;
587
+ hoverclr?: string;
588
+ label?: string;
589
+ required?: boolean;
590
+ }
591
+ declare const CheckboxIcon: ({ clr, hoverclr }: {
592
+ clr: string;
593
+ hoverclr: string;
594
+ }) => react_jsx_runtime.JSX.Element;
595
+ declare const CheckboxCheckedIcon: ({ clr, hoverclr }: {
596
+ clr: string;
597
+ hoverclr: string;
598
+ }) => react_jsx_runtime.JSX.Element;
599
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<ICheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
600
+
601
+ interface IRadioProps extends RadioProps {
602
+ clr?: string;
603
+ hoverclr?: string;
604
+ label?: string;
605
+ required?: boolean;
606
+ }
607
+ interface IRadioGroupProps extends RadioGroupProps {
608
+ label?: string | React.ReactNode;
609
+ required?: boolean;
610
+ children: React.ReactNode;
611
+ value?: string;
612
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
613
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
614
+ name?: string;
615
+ }
616
+ declare const RadioWCAG: React.ForwardRefExoticComponent<Omit<IRadioProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
617
+ declare const RadioGroupComponent: React.FC<IRadioGroupProps & {
618
+ error?: string;
619
+ name?: string;
620
+ }>;
621
+
622
+ interface ThemeWrapperProps extends Omit<ThemeProviderProps, 'theme'> {
623
+ children: React.ReactNode;
624
+ theme?: Theme;
625
+ }
626
+ declare const ThemeWrapper: React.FC<ThemeWrapperProps>;
627
+
628
+ declare enum IconType {
629
+ Phone = 0,
630
+ Calendar = 1,
631
+ ArrowRight = 2,
632
+ ArrowRightCircle01 = 3,
633
+ ArrowLeftCircle01 = 4,
634
+ ArrowRightCircle = 5,
635
+ ArrowLeftCircle = 6,
636
+ ArrowDownCircle = 7,
637
+ Clock = 8,
638
+ LocationPin = 9,
639
+ EnvelopeAt = 10,
640
+ Check = 11,
641
+ SquareUnchecked = 12,
642
+ SquareChecked = 13
643
+ }
644
+
645
+ interface LinkButtonProps {
646
+ href: string;
647
+ title: string;
648
+ customIcon?: React.ReactNode;
649
+ icon?: IconType;
650
+ text: string;
651
+ color?: string;
652
+ hoverColor?: string;
653
+ isUnderlined?: boolean;
654
+ iconSize?: number;
655
+ fontSize?: number;
656
+ }
657
+ declare const LinkButton: React.FC<LinkButtonProps>;
658
+
659
+ interface InfoTooltipIconProps {
660
+ message: string;
661
+ iconColor?: string;
662
+ theme?: Theme$1;
663
+ iconSize?: number;
664
+ icon?: React.ComponentType<SvgIconProps>;
665
+ tooltipFontSize?: number;
666
+ tooltipFontColor?: string;
667
+ tooltipBackgroundColor?: string;
668
+ placement?: TooltipProps['placement'];
669
+ tabIndex?: number;
670
+ }
671
+ declare const InfoTooltipIcon: React.FC<InfoTooltipIconProps>;
672
+
673
+ type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
674
+ type TooltipSize = 'normal' | 'small' | 'tiny';
675
+ interface IToolTipProps {
676
+ /** The tooltip content - can be a string or ReactElement */
677
+ text: ReactElement<any, any> | string;
678
+ /** Optional aria-label for accessibility. If not provided, will use the text content */
679
+ ariaLabel?: string;
680
+ /** Optional custom styles for the container */
681
+ style?: CSSProperties;
682
+ /** Optional ID for the tooltip (used for aria-describedby) */
683
+ tooltipId?: string;
684
+ /** Icon size preset: 'normal' (32px), 'small' (24px), or 'tiny' (18px). Default: 'tiny'. If iconSize is provided, it takes precedence. */
685
+ size?: TooltipSize;
686
+ /** Icon size in pixels. If provided, overrides the size prop. */
687
+ iconSize?: number;
688
+ /** Tooltip placement. Default: 'bottom' */
689
+ placement?: TooltipPlacement;
690
+ /** Tooltip font size in pixels. Default: 20 */
691
+ tooltipFontSize?: number;
692
+ /** Custom icon color. If not provided, uses theme primary color */
693
+ iconColor?: string;
694
+ /** Custom tooltip background color. If not provided, uses theme primary color */
695
+ tooltipBackgroundColor?: string;
696
+ /** Custom tooltip font color. If not provided, uses theme common white */
697
+ tooltipFontColor?: string;
698
+ /** Default margin bottom. Default: '22px' */
699
+ defaultMarginBottom?: string | number;
700
+ /** Default padding left. Default: '1rem' */
701
+ defaultPaddingLeft?: string | number;
702
+ /** Default margin left. Default: undefined */
703
+ defaultMarginLeft?: string | number;
704
+ }
705
+ declare const ToolTipWrapper: React.FC<IToolTipProps>;
706
+
707
+ interface PrivacyLinkProps extends Omit<TypographyProps, 'children'> {
708
+ /** The URL for the privacy policy link */
709
+ href?: string;
710
+ /** Custom link text */
711
+ linkText?: string;
712
+ /** Custom text before the link */
713
+ beforeText?: string;
714
+ /** Custom text after the link */
715
+ afterText?: string;
716
+ }
717
+ declare const PrivacyLink: ({ href, linkText, beforeText, afterText, ...typographyProps }: PrivacyLinkProps) => JSX.Element;
718
+
719
+ interface ContactLinkProps {
720
+ type: 'email' | 'phone' | 'website';
721
+ value: string;
722
+ className?: string;
723
+ }
724
+ declare const ContactLink: ({ type, value, className }: ContactLinkProps) => JSX.Element;
725
+
726
+ interface MnbModalProps {
727
+ /** Whether the modal is open */
728
+ open: boolean;
729
+ /** Function to call when modal should be closed */
730
+ onClose: () => void;
731
+ /** Modal title */
732
+ title: string;
733
+ /** Modal content text */
734
+ text: string;
735
+ /** Accept button text */
736
+ acceptText?: string;
737
+ /** Cancel button text */
738
+ cancelText?: string;
739
+ /** Function to call when accept button is clicked */
740
+ onAccept?: () => void;
741
+ /** Function to call when cancel button is clicked */
742
+ onCancel?: () => void;
743
+ /** Whether to show the cancel button */
744
+ showCancel?: boolean;
745
+ /** Whether to show the accept button */
746
+ showAccept?: boolean;
747
+ /** Maximum width of the modal */
748
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
749
+ /** Whether clicking outside should close the modal (default: true) */
750
+ disableBackdropClick?: boolean;
751
+ /** Whether pressing escape should close the modal (default: true) */
752
+ disableEscapeKeyDown?: boolean;
753
+ }
754
+ declare const MnbModal: React.FC<MnbModalProps>;
755
+
756
+ declare module '@mui/material/styles' {
757
+ interface Palette {
758
+ primaryHover?: Palette['primary'];
759
+ focus?: Palette['primary'];
760
+ }
761
+ }
762
+ type NavigationItem = {
763
+ title?: string;
764
+ label?: string;
765
+ isSubStep?: boolean;
766
+ active?: boolean;
767
+ index: number;
768
+ tooltip?: string;
769
+ showActiveStepLabel?: boolean;
770
+ activeStepLabelColor?: string;
771
+ onStepClick?: (step: number) => void;
772
+ disabled?: boolean;
773
+ totalSteps?: number;
774
+ showActiveStepUnderline?: boolean;
775
+ showActiveStepBoldText?: boolean;
776
+ showActiveStepElevation?: boolean;
777
+ activeStepAriaLabel?: string;
778
+ };
779
+
780
+ interface IWizardProps {
781
+ items: NavigationItem[];
782
+ currentStep: number;
783
+ color?: string;
784
+ showActiveStepLabel?: boolean;
785
+ activeStepLabelColor?: string;
786
+ onStepClick?: (step: number) => void;
787
+ /** Show underline for active step text (default: true) */
788
+ showActiveStepUnderline?: boolean;
789
+ /** Show bold text for active step (default: true) */
790
+ showActiveStepBoldText?: boolean;
791
+ /** Show elevated/shadow effect for active step (default: false) */
792
+ showActiveStepElevation?: boolean;
793
+ /** Custom ARIA label for active step (for screen readers) */
794
+ activeStepAriaLabel?: string;
795
+ }
796
+
797
+ /**
798
+ * WCAG 2.1 AA Compliant Wizard Component
799
+ *
800
+ * Provides comprehensive accessibility features:
801
+ * - Proper ARIA attributes for screen readers
802
+ * - Keyboard navigation support (Tab, Enter, Space, Arrow keys)
803
+ * - Semantic HTML structure
804
+ * - Screen reader announcements
805
+ * - Focus management
806
+ * - High contrast support
807
+ * - Reduced motion support
808
+ *
809
+ * @example
810
+ * // Default WCAG-compliant wizard
811
+ * <Wizard items={wizardSteps} currentStep={currentStep} onStepClick={handleStepClick} />
812
+ *
813
+ * @example
814
+ * // Custom accessibility options
815
+ * <Wizard
816
+ * items={wizardSteps}
817
+ * currentStep={currentStep}
818
+ * showActiveStepUnderline={false}
819
+ * showActiveStepOuterRing={false}
820
+ * onStepClick={handleStepClick}
821
+ * />
822
+ */
823
+ declare const Wizard: React.FC<IWizardProps>;
824
+
825
+ declare function WizardTest(): react_jsx_runtime.JSX.Element;
826
+
827
+ declare function WizardAccessibilityTest(): react_jsx_runtime.JSX.Element;
828
+
829
+ interface IDataTableConfig {
830
+ /**
831
+ * Page size options for pagination
832
+ * @default [10, 20, 50, 100]
833
+ */
834
+ pageSizeOptions?: number[];
835
+ /**
836
+ * Default page size
837
+ * @default 10
838
+ */
839
+ defaultPageSize?: number;
840
+ /**
841
+ * Always show pagination controls, even when all rows fit on one page
842
+ * @default true
843
+ */
844
+ showPagination?: boolean;
845
+ /**
846
+ * Locale text configuration for the data grid
847
+ * If not provided, uses German locale by default
848
+ */
849
+ localeText?: Partial<GridLocaleText>;
850
+ /**
851
+ * Enable auto height (table adjusts to content)
852
+ * @default false
853
+ */
854
+ autoHeight?: boolean;
855
+ /**
856
+ * Fixed height for the table
857
+ * If not provided, table will use 100% of container
858
+ */
859
+ height?: string | number;
860
+ /**
861
+ * Minimum height for the table
862
+ */
863
+ minHeight?: string | number;
864
+ /**
865
+ * Maximum height for the table
866
+ */
867
+ maxHeight?: string | number;
868
+ /**
869
+ * Show column menu
870
+ * @default true
871
+ */
872
+ showColumnMenu?: boolean;
873
+ /**
874
+ * Show toolbar
875
+ * @default true
876
+ */
877
+ showToolbar?: boolean;
878
+ /**
879
+ * Enable row selection
880
+ * @default false
881
+ */
882
+ enableRowSelection?: boolean;
883
+ /**
884
+ * Selection mode: 'single' or 'multiple'
885
+ * @default 'multiple'
886
+ */
887
+ selectionMode?: 'single' | 'multiple';
888
+ /**
889
+ * Enable density selector
890
+ * @default false
891
+ */
892
+ enableDensitySelector?: boolean;
893
+ /**
894
+ * Enable column filter
895
+ * @default false
896
+ */
897
+ enableColumnFilter?: boolean;
898
+ /**
899
+ * Enable column visibility toggle
900
+ * @default false
901
+ */
902
+ enableColumnVisibility?: boolean;
903
+ /**
904
+ * Enable export functionality
905
+ * @default false
906
+ */
907
+ enableExport?: boolean;
908
+ /**
909
+ * Custom CSS class name for the table container
910
+ */
911
+ containerClassName?: string;
912
+ /**
913
+ * Custom CSS class name for the table
914
+ */
915
+ tableClassName?: string;
916
+ }
917
+ interface IDataTableProps<T extends GridValidRowModel> extends Omit<DataGridProProps<T>, 'rows' | 'columns'> {
918
+ /**
919
+ * Table rows data
920
+ */
921
+ rows: T[];
922
+ /**
923
+ * Table column definitions
924
+ */
925
+ columns: DataGridProProps<T>['columns'];
926
+ /**
927
+ * Loading state
928
+ * @default false
929
+ */
930
+ isLoading?: boolean;
931
+ /**
932
+ * Total row count (for server-side pagination)
933
+ */
934
+ totalRowCount?: number;
935
+ /**
936
+ * Table configuration options
937
+ */
938
+ config?: IDataTableConfig;
939
+ /**
940
+ * WCAG: Accessible label for the table region
941
+ * Announced by screen readers when the table receives focus
942
+ */
943
+ 'aria-label'?: string;
944
+ /**
945
+ * WCAG: ID of an element that labels the table
946
+ * Use when a visible heading describes the table
947
+ */
948
+ 'aria-labelledby'?: string;
949
+ /**
950
+ * WCAG: ID of an element that describes the table
951
+ * Use for additional context about the table's content
952
+ */
953
+ 'aria-describedby'?: string;
954
+ }
955
+
956
+ /**
957
+ * WCAG-compliant DataTable component
958
+ *
959
+ * Accessibility features:
960
+ * - Full keyboard navigation support
961
+ * - Screen reader optimized with German locale
962
+ * - ARIA labels and descriptions
963
+ * - High contrast focus indicators
964
+ * - Semantic table structure
965
+ */
966
+ declare const DataTable: <T extends GridValidRowModel>({ rows, columns, isLoading, totalRowCount, config, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...dataGridProps }: IDataTableProps<T>) => react_jsx_runtime.JSX.Element;
967
+
968
+ interface AdminLoginFormColors {
969
+ /** Background gradient for the main container */
970
+ backgroundGradient?: string;
971
+ /** Background color for the paper card */
972
+ paperBackground?: string;
973
+ /** Icon container gradient */
974
+ iconGradient?: string;
975
+ /** Icon container shadow color */
976
+ iconShadowColor?: string;
977
+ /** Title text color */
978
+ titleColor?: string;
979
+ /** Subtitle text color */
980
+ subtitleColor?: string;
981
+ /** Description text color */
982
+ descriptionColor?: string;
983
+ /** Button gradient */
984
+ buttonGradient?: string;
985
+ /** Button hover gradient */
986
+ buttonHoverGradient?: string;
987
+ /** Button shadow color */
988
+ buttonShadowColor?: string;
989
+ /** Button hover shadow color */
990
+ buttonHoverShadowColor?: string;
991
+ /** Error alert text color */
992
+ errorTextColor?: string;
993
+ }
994
+ interface AdminLoginFormTexts {
995
+ /** Main title (e.g., "Willkommen") */
996
+ title?: string;
997
+ /** Subtitle (e.g., "HS Kundenportal Administration") */
998
+ subtitle?: string;
999
+ /** Description text above the login button */
1000
+ description?: string;
1001
+ /** Login button text */
1002
+ loginButtonText?: string;
1003
+ /** Loading/processing button text */
1004
+ processingButtonText?: string;
1005
+ /** Error message for missing configuration */
1006
+ configErrorText?: string;
1007
+ /** Error message for login in progress */
1008
+ loginInProgressErrorText?: string;
1009
+ }
1010
+ interface AdminLoginFormProps {
1011
+ /** Handler function called when login button is clicked */
1012
+ onLogin: () => void | Promise<void>;
1013
+ /** Error message to display (if any) */
1014
+ errorMessage?: string | null;
1015
+ /** Whether the form is ready (config loaded) */
1016
+ isReady: boolean;
1017
+ /** Whether an interaction is in progress (e.g., MSAL InteractionStatus.None check) */
1018
+ isInteractionInProgress?: boolean;
1019
+ /** Whether login is currently in progress */
1020
+ isLoggingIn: boolean;
1021
+ /** Custom colors for styling */
1022
+ colors?: AdminLoginFormColors;
1023
+ /** Custom texts for labels and messages */
1024
+ texts?: AdminLoginFormTexts;
1025
+ /** Additional CSS class name */
1026
+ className?: string;
1027
+ }
1028
+ /**
1029
+ * AdminLoginForm Component
1030
+ *
1031
+ * A flexible login form component for Azure AD authentication with customizable
1032
+ * texts and colors. Designed to be used within MSAL's UnauthenticatedTemplate.
1033
+ *
1034
+ * @example
1035
+ * ```tsx
1036
+ * <UnauthenticatedTemplate>
1037
+ * <AdminLoginForm
1038
+ * onLogin={handleLogin}
1039
+ * errorMessage={errorMessage}
1040
+ * isReady={isReady}
1041
+ * inProgress={inProgress}
1042
+ * isLoggingIn={isLoggingIn}
1043
+ * texts={{
1044
+ * title: "Welcome",
1045
+ * subtitle: "My Application"
1046
+ * }}
1047
+ * colors={{
1048
+ * buttonGradient: "linear-gradient(135deg, #00749d 0%, #006081 100%)"
1049
+ * }}
1050
+ * />
1051
+ * </UnauthenticatedTemplate>
1052
+ * ```
1053
+ */
1054
+ declare const AdminLoginForm: React.FC<AdminLoginFormProps>;
1055
+
1056
+ interface StatusTimelineStep {
1057
+ label: string;
1058
+ /**
1059
+ * Optional custom color for this step's circle.
1060
+ * If not provided, defaultColor / activeColor will be used.
1061
+ */
1062
+ color?: string;
1063
+ }
1064
+ interface StatusTimelineProps {
1065
+ /**
1066
+ * Ordered list of steps in the timeline.
1067
+ */
1068
+ steps: StatusTimelineStep[];
1069
+ /**
1070
+ * Zero-based index of the current/active step.
1071
+ */
1072
+ activeStepIndex: number;
1073
+ /**
1074
+ * Diameter of the circles in pixels.
1075
+ */
1076
+ circleSize?: number;
1077
+ /**
1078
+ * Default color for circles and connecting line.
1079
+ */
1080
+ defaultColor?: string;
1081
+ /**
1082
+ * Color of the active step's circle.
1083
+ * Falls back to step.color or defaultColor when not set.
1084
+ */
1085
+ activeColor?: string;
1086
+ /**
1087
+ * Length of the line between circles in pixels.
1088
+ */
1089
+ lineLength?: number;
1090
+ }
1091
+ declare const StatusTimeline: React.FC<StatusTimelineProps>;
1092
+
1093
+ interface IRichTextEditorProps {
1094
+ value?: string;
1095
+ onChange: (value: string) => void;
1096
+ label?: string;
1097
+ required?: boolean;
1098
+ 'aria-describedby'?: string;
1099
+ readOnly?: boolean;
1100
+ }
1101
+ declare const RichTextEditor: React.FC<IRichTextEditorProps>;
1102
+
1103
+ interface ImageUploadCropProps {
1104
+ /** Current image file */
1105
+ value?: File | null;
1106
+ /** Current image preview URL (for existing images) */
1107
+ previewUrl?: string | null;
1108
+ /** Callback when image changes */
1109
+ onChange?: (file: File | null, previewUrl: string | null) => void;
1110
+ /** Callback when image is removed */
1111
+ onRemove?: () => void;
1112
+ /** Required aspect ratio (width/height), default 16/9 */
1113
+ aspectRatio?: number;
1114
+ /** Maximum file size in MB, default 10 */
1115
+ maxSizeMB?: number;
1116
+ /** Allowed file types, default ['image/jpeg', 'image/png', 'image/gif', 'image/webp'] */
1117
+ acceptedTypes?: string[];
1118
+ /** Label text */
1119
+ label?: string;
1120
+ /** Helper text */
1121
+ helperText?: string;
1122
+ /** Error message */
1123
+ error?: string;
1124
+ /** Whether field is required */
1125
+ required?: boolean;
1126
+ /** Disabled state */
1127
+ disabled?: boolean;
1128
+ /** ARIA describedby */
1129
+ 'aria-describedby'?: string;
1130
+ /** Custom className */
1131
+ className?: string;
1132
+ }
1133
+ declare const ImageUploadCrop: React.FC<ImageUploadCropProps>;
1134
+
1135
+ type ConfigProviderProps<T> = {
1136
+ children: ReactNode;
1137
+ fallback?: ReactNode;
1138
+ projectName: string;
1139
+ configFileName: string;
1140
+ defaultConfig?: T;
1141
+ };
1142
+
1143
+ declare const PassConfigContext: {
1144
+ config: any;
1145
+ };
1146
+ declare const ConfigProvider: <T extends object>({ children, fallback, projectName, configFileName, defaultConfig }: ConfigProviderProps<T>) => string | number | true | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | null;
1147
+ declare const useConfigContext: <T>() => T;
1148
+
1149
+ declare const isConfigReady: () => boolean;
1150
+
1151
+ interface Notification {
1152
+ id: string;
1153
+ type: 'success' | 'error' | 'info';
1154
+ message: string;
1155
+ autoClose?: boolean;
1156
+ duration?: number;
1157
+ onClose?: () => void;
1158
+ }
1159
+ interface NotificationContextType {
1160
+ notifications: Notification[];
1161
+ addNotification: (notification: Omit<Notification, 'id'>) => void;
1162
+ removeNotification: (id: string) => void;
1163
+ clearAll: () => void;
1164
+ showSuccess: (message: string, options?: {
1165
+ autoClose?: boolean;
1166
+ duration?: number;
1167
+ onClose?: () => void;
1168
+ }) => void;
1169
+ showError: (message: string, options?: {
1170
+ autoClose?: boolean;
1171
+ duration?: number;
1172
+ onClose?: () => void;
1173
+ }) => void;
1174
+ showInfo: (message: string, options?: {
1175
+ autoClose?: boolean;
1176
+ duration?: number;
1177
+ onClose?: () => void;
1178
+ }) => void;
1179
+ }
1180
+ declare const useNotification: () => NotificationContextType;
1181
+ interface NotificationProviderProps {
1182
+ children: React.ReactNode;
1183
+ position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
1184
+ }
1185
+ declare const NotificationProvider: React.FC<NotificationProviderProps>;
1186
+
1187
+ declare function NotificationTest(): react_jsx_runtime.JSX.Element;
1188
+
1189
+ declare function NotificationExample(): react_jsx_runtime.JSX.Element;
1190
+
1191
+ interface AccessibleCloseButtonProps {
1192
+ closeToast?: () => void;
1193
+ type?: string;
1194
+ ariaLabel?: string;
1195
+ }
1196
+ declare const AccessibleCloseButton: React.FC<AccessibleCloseButtonProps>;
1197
+ interface MnbToastContainerProps {
1198
+ /** Position of the toast container */
1199
+ position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
1200
+ /** ARIA label for the toast container */
1201
+ ariaLabel?: string;
1202
+ /** Auto close timeout in milliseconds (false to disable) */
1203
+ autoClose?: number | false;
1204
+ /** Close on click */
1205
+ closeOnClick?: boolean;
1206
+ /** Show newest toasts on top */
1207
+ newestOnTop?: boolean;
1208
+ /** Right to left text direction */
1209
+ rtl?: boolean;
1210
+ /** Pause on focus loss */
1211
+ pauseOnFocusLoss?: boolean;
1212
+ /** Pause on hover */
1213
+ pauseOnHover?: boolean;
1214
+ /** Theme: light or dark */
1215
+ theme?: 'light' | 'dark' | 'colored';
1216
+ /** Hide progress bar */
1217
+ hideProgressBar?: boolean;
1218
+ /** Custom close button component */
1219
+ closeButton?: React.ComponentType<any> | false;
1220
+ /** Custom toast className */
1221
+ toastClassName?: string;
1222
+ /** Additional props */
1223
+ [key: string]: any;
1224
+ }
1225
+ /**
1226
+ * WCAG-Compliant Toast Container Component
1227
+ *
1228
+ * This component provides a fully accessible toast notification container with German language support.
1229
+ *
1230
+ * Prerequisites:
1231
+ * - Install react-toastify: `npm install react-toastify`
1232
+ * - Import and use this component in your app root
1233
+ *
1234
+ * @example
1235
+ * import { MnbToastContainer } from 'mnb-framework';
1236
+ * import { ToastContainer } from 'react-toastify';
1237
+ *
1238
+ * // In your app component:
1239
+ * <MnbToastContainer
1240
+ * position="bottom-right"
1241
+ * ariaLabel="Benachrichtigungen"
1242
+ * />
1243
+ *
1244
+ * // Note: You'll need to manually integrate with react-toastify's ToastContainer
1245
+ * // This component provides the styling and AccessibleCloseButton
1246
+ */
1247
+ declare const ToastContainer: React.FC<MnbToastContainerProps>;
1248
+ /**
1249
+ * Configuration for success toast notifications
1250
+ * Use this with react-toastify's toast.success()
1251
+ *
1252
+ * @param message - The success message to display
1253
+ * @returns Configuration object for toast.success()
1254
+ *
1255
+ * @example
1256
+ * import { toast } from 'react-toastify';
1257
+ * import { Success } from 'mnb-framework';
1258
+ *
1259
+ * // Use the Success function to get configuration
1260
+ * toast.success('Sitzungsstatus wurde gespeichert', Success());
1261
+ *
1262
+ * // Or use the pre-configured SuccessToast function
1263
+ * SuccessToast('Sitzungsstatus wurde gespeichert');
1264
+ */
1265
+ declare const Success: () => {
1266
+ position: "bottom-right";
1267
+ autoClose: boolean;
1268
+ hideProgressBar: boolean;
1269
+ closeOnClick: boolean;
1270
+ pauseOnHover: boolean;
1271
+ draggable: boolean;
1272
+ progress: undefined;
1273
+ role: string;
1274
+ className: string;
1275
+ closeButton: React.FC<AccessibleCloseButtonProps>;
1276
+ };
1277
+ /**
1278
+ * Configuration for error toast notifications
1279
+ * Use this with react-toastify's toast.error()
1280
+ *
1281
+ * @param message - The error message to display
1282
+ * @returns Configuration object for toast.error()
1283
+ *
1284
+ * @example
1285
+ * import { toast } from 'react-toastify';
1286
+ * import { Error } from 'mnb-framework';
1287
+ *
1288
+ * // Use the Error function to get configuration
1289
+ * toast.error('Fehler beim Speichern der Sitzung', Error());
1290
+ *
1291
+ * // Or use the pre-configured ErrorToast function
1292
+ * ErrorToast('Fehler beim Speichern der Sitzung');
1293
+ */
1294
+ declare const Error$1: () => {
1295
+ position: "bottom-right";
1296
+ autoClose: boolean;
1297
+ hideProgressBar: boolean;
1298
+ closeOnClick: boolean;
1299
+ pauseOnHover: boolean;
1300
+ draggable: boolean;
1301
+ progress: undefined;
1302
+ role: string;
1303
+ className: string;
1304
+ closeButton: React.FC<AccessibleCloseButtonProps>;
1305
+ };
1306
+ /**
1307
+ * Configuration for info toast notifications
1308
+ * Use this with react-toastify's toast.info()
1309
+ *
1310
+ * @param message - The info message to display
1311
+ * @returns Configuration object for toast.info()
1312
+ *
1313
+ * @example
1314
+ * import { toast } from 'react-toastify';
1315
+ * import { Info } from 'mnb-framework';
1316
+ *
1317
+ * // Use the Info function to get configuration
1318
+ * toast.info('Ihre Daten werden verarbeitet', Info());
1319
+ *
1320
+ * // Or use the pre-configured InfoToast function
1321
+ * InfoToast('Ihre Daten werden verarbeitet');
1322
+ */
1323
+ declare const Info: () => {
1324
+ position: "bottom-right";
1325
+ autoClose: boolean;
1326
+ hideProgressBar: boolean;
1327
+ closeOnClick: boolean;
1328
+ pauseOnHover: boolean;
1329
+ draggable: boolean;
1330
+ progress: undefined;
1331
+ role: string;
1332
+ className: string;
1333
+ closeButton: React.FC<AccessibleCloseButtonProps>;
1334
+ };
1335
+ /**
1336
+ * Pre-configured success toast function
1337
+ * Displays a success notification with German styling
1338
+ *
1339
+ * @param message - The success message to display
1340
+ *
1341
+ * @example
1342
+ * import { SuccessToast } from 'mnb-framework';
1343
+ *
1344
+ * SuccessToast('Sitzungsstatus wurde gespeichert');
1345
+ */
1346
+ declare const SuccessToast: (message: string) => any;
1347
+ /**
1348
+ * Pre-configured error toast function
1349
+ * Displays an error notification with German styling
1350
+ *
1351
+ * @param message - The error message to display
1352
+ *
1353
+ * @example
1354
+ * import { ErrorToast } from 'mnb-framework';
1355
+ *
1356
+ * ErrorToast('Fehler beim Speichern der Sitzung');
1357
+ */
1358
+ declare const ErrorToast: (message: string) => any;
1359
+ /**
1360
+ * Pre-configured info toast function
1361
+ * Displays an info notification with German styling
1362
+ *
1363
+ * @param message - The info message to display
1364
+ *
1365
+ * @example
1366
+ * import { InfoToast } from 'mnb-framework';
1367
+ *
1368
+ * InfoToast('Ihre Daten werden verarbeitet');
1369
+ */
1370
+ declare const InfoToast: (message: string) => any;
1371
+
1372
+ interface RequiredFieldsInfoProps {
1373
+ /** Custom text for required fields info (defaults to German text) */
1374
+ text?: string;
1375
+ /** Additional CSS classes */
1376
+ className?: string;
1377
+ /** Additional styling props */
1378
+ sx?: any;
1379
+ textSx?: any; /** Additional styling props for the text */
1380
+ }
1381
+ /**
1382
+ * RequiredFieldsInfo Component
1383
+ *
1384
+ * Displays information about required fields using a fieldset with legend
1385
+ * for proper screen reader accessibility. The text is announced to screen readers
1386
+ * when the page loads, making it clear to disabled users which fields are required.
1387
+ *
1388
+ * @example
1389
+ * // Basic usage with default German text
1390
+ * <RequiredFieldsInfo />
1391
+ *
1392
+ * @example
1393
+ * // Custom text
1394
+ * <RequiredFieldsInfo text="Fields marked with * are required and must be filled out." />
1395
+ *
1396
+ * @example
1397
+ * // With custom styling
1398
+ * <RequiredFieldsInfo
1399
+ * sx={{ marginBottom: 2 }}
1400
+ * className="required-fields-info"
1401
+ * />
1402
+ */
1403
+ declare const RequiredFieldsInfo: React.FC<RequiredFieldsInfoProps>;
1404
+
1405
+ interface FieldsetLegendProps {
1406
+ /** The title/legend text for the fieldset */
1407
+ title?: string;
1408
+ /** The content inside the fieldset */
1409
+ children: React.ReactNode;
1410
+ /** Additional CSS classes */
1411
+ className?: string;
1412
+ /** Additional styling props for the fieldset */
1413
+ sx?: any;
1414
+ /** Additional styling props for the legend */
1415
+ legendSx?: any;
1416
+ /** Whether to show the legend visually (default: true) */
1417
+ showLegend?: boolean;
1418
+ /** Custom legend component (optional) */
1419
+ legendComponent?: React.ReactNode;
1420
+ }
1421
+ /**
1422
+ * MnbFieldsetLegend Component
1423
+ *
1424
+ * A reusable fieldset with legend component that provides proper accessibility
1425
+ * for screen readers. The fieldset groups related form elements and the legend
1426
+ * provides context about what the group contains.
1427
+ *
1428
+ * @example
1429
+ * // Basic usage with title
1430
+ * <MnbFieldsetLegend title="Personal Information">
1431
+ * <TextField label="Name" />
1432
+ * <TextField label="Email" />
1433
+ * </MnbFieldsetLegend>
1434
+ *
1435
+ * @example
1436
+ * // Without visual legend (for screen readers only)
1437
+ * <MnbFieldsetLegend title="Hidden Legend" showLegend={false}>
1438
+ * <TextField label="Name" />
1439
+ * </MnbFieldsetLegend>
1440
+ *
1441
+ * @example
1442
+ * // Custom legend component
1443
+ * <MnbFieldsetLegend
1444
+ * title="Custom Legend"
1445
+ * legendComponent={<Typography variant="h6">Custom Legend</Typography>}
1446
+ * >
1447
+ * <TextField label="Name" />
1448
+ * </MnbFieldsetLegend>
1449
+ *
1450
+ * @example
1451
+ * // With custom styling
1452
+ * <MnbFieldsetLegend
1453
+ * title="Styled Fieldset"
1454
+ * sx={{ border: '2px solid #ccc', padding: 2 }}
1455
+ * legendSx={{ color: 'primary.main' }}
1456
+ * >
1457
+ * <TextField label="Name" />
1458
+ * </MnbFieldsetLegend>
1459
+ */
1460
+ declare const MnbFieldsetLegend: React.FC<FieldsetLegendProps>;
1461
+
1462
+ interface CaptchaWidgetProps {
1463
+ sitekey: string;
1464
+ lang?: string;
1465
+ className?: string;
1466
+ required?: boolean;
1467
+ width?: number | string;
1468
+ inputPrompt?: string;
1469
+ isValid?: boolean;
1470
+ error?: string | null;
1471
+ onValidationChange?: (isValid: boolean) => void;
1472
+ }
1473
+ /**
1474
+ * CaptchaWidgetProps describes the props accepted by CaptchaWidget.
1475
+ * For reset captcha functionality, use a `resetCaptcha` and `removeCaptcha` from useCaptchaToken hook.
1476
+ *
1477
+ * @property {string} sitekey - MTCaptcha site key (required).
1478
+ * @property {string} [lang='de'] - Language code used for captcha text/labels.
1479
+ * @property {string} [className] - Optional CSS class applied to the root container.
1480
+ * @property {boolean} [required=true] - Whether the captcha input is required.
1481
+ * @property {number|string} [width=300] - Width of the captcha container (px or CSS string).
1482
+ * @property {string} [inputPrompt] - Custom input prompt text shown inside captcha.
1483
+ * @property {boolean} [isValid=true] - Current validation state (passed from parent).
1484
+ * @property {string|null} [error=null] - Error message to display under the widget.
1485
+ * @property {(isValid: boolean) => void} [onValidationChange] - Callback invoked when captcha internal validity changes.
1486
+ */
1487
+ declare const CaptchaWidget: ({ sitekey, lang, className, required, width, inputPrompt, isValid, error, onValidationChange }: CaptchaWidgetProps) => react_jsx_runtime.JSX.Element;
1488
+
1489
+ declare function CaptchaExample(): react_jsx_runtime.JSX.Element;
1490
+
1491
+ declare function CaptchaTest(): react_jsx_runtime.JSX.Element;
1492
+
1493
+ declare function ValidationTest(): react_jsx_runtime.JSX.Element;
1494
+
1495
+ declare function ComprehensiveTest(): react_jsx_runtime.JSX.Element;
1496
+
1497
+ declare function SimpleValidationTest(): react_jsx_runtime.JSX.Element;
1498
+
1499
+ declare function FinalValidationTest(): react_jsx_runtime.JSX.Element;
1500
+
1501
+ declare function SubmitOnlyValidationTest(): react_jsx_runtime.JSX.Element;
1502
+
1503
+ /**
1504
+ * Simple test component to verify CaptchaWidget changes
1505
+ */
1506
+ declare function CaptchaWidgetTest(): react_jsx_runtime.JSX.Element;
1507
+
1508
+ declare function CaptchaDebugTest(): react_jsx_runtime.JSX.Element;
1509
+
1510
+ declare function CaptchaAccessibilityTest(): react_jsx_runtime.JSX.Element;
1511
+
1512
+ declare function useCaptchaToken(): {
1513
+ isVerified: boolean;
1514
+ isLoading: boolean;
1515
+ error: string | null;
1516
+ getToken: () => string | null;
1517
+ resetCaptcha: () => void;
1518
+ removeCaptcha: () => void;
1519
+ isReady: () => boolean;
1520
+ };
1521
+
1522
+ interface UseCaptchaFormOptions {
1523
+ onSubmit?: (data: any, captchaToken: string) => Promise<void> | void;
1524
+ onError?: (error: Error) => void;
1525
+ required?: boolean;
1526
+ }
1527
+ interface UseCaptchaFormReturn {
1528
+ canSubmit: boolean;
1529
+ isVerified: boolean;
1530
+ verifiedToken: string | null;
1531
+ handleSubmit: (data: any) => Promise<void>;
1532
+ reset: () => void;
1533
+ }
1534
+ declare const useCaptchaForm: (options?: UseCaptchaFormOptions) => UseCaptchaFormReturn;
1535
+
1536
+ interface UseCaptchaValidationOptions {
1537
+ required?: boolean;
1538
+ onValidationChange?: (isValid: boolean) => void;
1539
+ }
1540
+ interface UseCaptchaValidationReturn {
1541
+ isValid: boolean;
1542
+ error: string | null;
1543
+ setHasInteracted: (value: boolean) => void;
1544
+ }
1545
+ declare const useCaptchaValidation: (options?: UseCaptchaValidationOptions) => UseCaptchaValidationReturn;
1546
+
1547
+ interface MTCaptchaConfig {
1548
+ sitekey: string;
1549
+ lang?: string;
1550
+ renderQueue?: any[];
1551
+ text?: {
1552
+ instruction?: string;
1553
+ };
1554
+ [key: string]: any;
1555
+ }
1556
+ interface MTCaptchaStatus {
1557
+ domId: string;
1558
+ element: HTMLDivElement;
1559
+ isVerified: boolean;
1560
+ isVisible: boolean;
1561
+ statusCode: number;
1562
+ statusDesc: string;
1563
+ verifiedToken: string;
1564
+ }
1565
+ interface MTCaptchaAPI {
1566
+ enableTestMode: () => void;
1567
+ focus: () => void;
1568
+ getConfiguration: () => void;
1569
+ getStatus: () => MTCaptchaStatus;
1570
+ getVerifiedToken: () => string | null;
1571
+ remove: () => void;
1572
+ renderUI: () => void;
1573
+ resetUI: () => void;
1574
+ showMandatory: () => void;
1575
+ }
1576
+ declare global {
1577
+ interface Window {
1578
+ mtcaptcha?: MTCaptchaAPI;
1579
+ mtcaptchaConfig?: MTCaptchaConfig;
1580
+ debugMTCaptcha?: () => void;
1581
+ testCaptchaRender?: () => void;
1582
+ }
1583
+ }
1584
+
1585
+ declare global {
1586
+ interface Window {
1587
+ UC_UI: {
1588
+ acceptAllConsents: () => void;
1589
+ acceptService: (serviceId: string, explicit?: any) => void;
1590
+ acceptServices: (serviceIds: string[], explicit?: any) => void;
1591
+ areAllConsentsAccepted: () => boolean;
1592
+ clearStorage: () => void;
1593
+ closeCMP: () => Promise<void>;
1594
+ denyAllConsents: () => void;
1595
+ denyAndCloseCcpa: () => Promise<void>;
1596
+ enableScriptsForServicesWithConsent: () => void;
1597
+ getActiveLanguage: () => string;
1598
+ getControllerId: () => string;
1599
+ getServicesBaseInfo: () => any[];
1600
+ getServicesFullInfo: () => any[];
1601
+ getSettingsCore: () => any;
1602
+ getSettingsLabels: () => any;
1603
+ getSettingsUI: () => any;
1604
+ getTCFDisclosedVendorsSegmentString: () => string;
1605
+ getTCFVendors: () => any;
1606
+ getThirdPartyCount: () => number;
1607
+ injectTCString: (tcString: string) => Promise<boolean>;
1608
+ isConsentRequired: () => boolean;
1609
+ isInitialized: () => boolean;
1610
+ rejectService: (serviceId: string, explicit?: any) => void;
1611
+ rejectServices: (serviceIds: string[], explicit?: any) => void;
1612
+ restartCMP: () => Promise<void>;
1613
+ restartEmbeddings: () => Promise<void>;
1614
+ restoreUserSession: (session: any) => Promise<void>;
1615
+ showFirstLayer: () => Promise<void>;
1616
+ showSecondLayer: (options?: any) => void;
1617
+ updateChoicesForTcf: (choices: any, tcfData: any) => Promise<void>;
1618
+ updateLanguage: (language: string) => Promise<void>;
1619
+ };
1620
+ }
1621
+ }
1622
+ declare const useUserCentrics: (serviceId: string, bypassCheck?: boolean) => {
1623
+ consentStatus: boolean | null;
1624
+ isLoaded: boolean;
1625
+ checkServiceStatus: () => Promise<boolean | null>;
1626
+ };
1627
+
1628
+ type UsercentricsProps = {
1629
+ serviceId: string;
1630
+ headingText?: React.ReactNode | string;
1631
+ descriptionText?: React.ReactNode | string;
1632
+ };
1633
+ declare const UsercentricsAllowScreen: React.FC<UsercentricsProps>;
1634
+
1635
+ /**
1636
+ * @deprecated This component is deprecated. Use FileUpload2 instead.
1637
+ * FileUpload2 provides better support for both client-side and server-side files
1638
+ * with the IFile interface, improved validation, and better accessibility.
1639
+ *
1640
+ * Migration guide:
1641
+ * - Replace FileUpload with FileUpload2
1642
+ * - Change File[] to IFile[] in your state
1643
+ * - Use convertFileToIFile() helper to convert native File objects
1644
+ */
1645
+ interface IFileUploadProps$1 {
1646
+ openModal: boolean;
1647
+ toggleModal: (modalState: boolean) => void;
1648
+ selectedFiles: File[];
1649
+ handleSetSelectedFiles: (files: File[]) => void;
1650
+ maxFileSizeMB?: number;
1651
+ multipleFiles?: boolean;
1652
+ accept?: string | string[];
1653
+ customHelperText?: string;
1654
+ }
1655
+ declare const FileUpload$1: React.FC<IFileUploadProps$1>;
1656
+
1657
+ /**
1658
+ * @deprecated This component is deprecated. Use UploadField2 instead.
1659
+ * UploadField2 provides better support for both client-side and server-side files
1660
+ * with the IFile interface, modal confirmation for file removal, and improved accessibility.
1661
+ *
1662
+ * Migration guide:
1663
+ * - Replace UploadField with UploadField2
1664
+ * - Change File[] to IFile[] in your state
1665
+ * - Add optional modal configuration props for server-side file removal
1666
+ * - Use convertFileToIFile() helper to convert native File objects
1667
+ */
1668
+ interface IUploadField {
1669
+ buttonLabel: string;
1670
+ selectedFiles: File[];
1671
+ isModalOpen: boolean;
1672
+ toggleModal: (modalState: boolean) => void;
1673
+ handleSetSelectedFiles: (files: File[]) => void;
1674
+ showUploadedFiles?: boolean;
1675
+ enableDownload?: boolean;
1676
+ maxFileSizeMB?: number;
1677
+ multipleFiles?: boolean;
1678
+ ariaLabel?: string;
1679
+ accept?: string | string[];
1680
+ customHelperText?: string;
1681
+ }
1682
+ declare const UploadField: React.FC<IUploadField>;
1683
+
1684
+ /**
1685
+ * @deprecated This component is deprecated. Use ShowUploadFiles2 instead.
1686
+ * ShowUploadFiles2 provides better support for both client-side and server-side files
1687
+ * with the IFile interface, modal confirmation for file removal, and improved accessibility.
1688
+ *
1689
+ * Migration guide:
1690
+ * - Replace ShowUploadFiles with ShowUploadFiles2
1691
+ * - Change File[] to IFile[] in your state
1692
+ * - Add optional modal configuration props for server-side file removal
1693
+ * - Use convertFileToIFile() helper to convert native File objects
1694
+ */
1695
+ interface ShowUploadFilesProps$1 {
1696
+ selectedFiles: File[];
1697
+ handleSetSelectedFiles: (files: File[]) => void;
1698
+ toggleModal: (modalState: boolean) => void;
1699
+ enableDownload?: boolean;
1700
+ }
1701
+ declare const ShowUploadFiles$1: React.FC<ShowUploadFilesProps$1>;
1702
+
1703
+ interface IFile {
1704
+ localId?: string;
1705
+ id?: string;
1706
+ fileName: string;
1707
+ fileSizeBytes: number;
1708
+ contentType: string;
1709
+ Content?: File;
1710
+ }
1711
+
1712
+ interface IFileUploadProps {
1713
+ openModal: boolean;
1714
+ toggleModal: (modalState: boolean) => void;
1715
+ selectedFiles: IFile[];
1716
+ handleSetSelectedFiles: (files: IFile[]) => void;
1717
+ maxFileSizeMB?: number;
1718
+ multipleFiles?: boolean;
1719
+ maxFiles?: number;
1720
+ allFilesMaxSizeMB?: number;
1721
+ maxFilesExceededMessage?: string;
1722
+ allFilesMaxSizeExceededMessage?: string;
1723
+ accept?: string | string[];
1724
+ showAlreadyUploaded?: boolean;
1725
+ }
1726
+ declare const FileUpload: React.FC<IFileUploadProps>;
1727
+
1728
+ interface IUploadField2 {
1729
+ buttonLabel: string;
1730
+ selectedFiles: IFile[];
1731
+ isModalOpen: boolean;
1732
+ toggleModal: (modalState: boolean) => void;
1733
+ handleSetSelectedFiles: (files: IFile[]) => void;
1734
+ showUploadedFiles?: boolean;
1735
+ enableDownload?: boolean;
1736
+ maxFileSizeMB?: number;
1737
+ multipleFiles?: boolean;
1738
+ maxFiles?: number;
1739
+ allFilesMaxSizeMB?: number;
1740
+ maxFilesExceededMessage?: string;
1741
+ allFilesMaxSizeExceededMessage?: string;
1742
+ ariaLabel?: string;
1743
+ accept?: string | string[];
1744
+ title?: string;
1745
+ showAlreadyUploaded?: boolean;
1746
+ onDownloadFile?: (file: IFile) => void;
1747
+ showRemoveModal?: boolean;
1748
+ onRemoveFile?: (file: IFile) => void;
1749
+ removeModalTitle?: string;
1750
+ removeModalText?: string;
1751
+ removeModalAcceptText?: string;
1752
+ removeModalCancelText?: string;
1753
+ disabled?: boolean;
1754
+ showButtonGrid?: boolean;
1755
+ hideButton?: boolean;
1756
+ }
1757
+ declare const UploadField2: React.FC<IUploadField2>;
1758
+
1759
+ interface ShowUploadFilesProps {
1760
+ selectedFiles: IFile[];
1761
+ handleSetSelectedFiles: (files: IFile[]) => void;
1762
+ toggleModal: (modalState: boolean) => void;
1763
+ enableDownload?: boolean;
1764
+ title?: string;
1765
+ onDownloadFile?: (file: IFile) => void;
1766
+ showRemoveModal?: boolean;
1767
+ onRemoveFile?: (file: IFile) => void;
1768
+ removeModalTitle?: string;
1769
+ removeModalText?: string;
1770
+ removeModalAcceptText?: string;
1771
+ removeModalCancelText?: string;
1772
+ removeModalMaxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
1773
+ }
1774
+ declare const ShowUploadFiles: React.FC<ShowUploadFilesProps>;
1775
+
1776
+ export { AccessibleCloseButton, AdminLoginForm, BookmarkTracker, CaptchaAccessibilityTest, CaptchaDebugTest, CaptchaExample, CaptchaTest, CaptchaWidget, CaptchaWidgetTest, CharacterSanitizers, ComprehensiveTest, ConfigProvider, Error$1 as Error, ErrorToast, FileUpload$1 as FileUpload, FileUpload as FileUpload2, FinalValidationTest, IconType, Info, InfoToast, Autocomplete as MnbAutocomplete, AutocompleteOld as MnbAutocompleteOld, Button as MnbButton, Checkbox as MnbCheckbox, CheckboxCheckedIcon as MnbCheckboxCheckedIcon, CheckboxIcon as MnbCheckboxIcon, ContactLink as MnbContactLink, DataTable as MnbDataTable, DatePicker as MnbDatePicker, Dropdown as MnbDropdown, MnbFieldsetLegend, FormControlLabel as MnbFormControlLabel, ImageUploadCrop as MnbImageUploadCrop, InfoTooltipIcon as MnbInfoTooltipIcon, LinkButton as MnbLinkButton, LocalizationProvider as MnbLocalizationProvider, MnbModal, NotificationProvider as MnbNotificationProvider, PrivacyLink as MnbPrivacyLink, Radio as MnbRadio, RadioGroupComponent$1 as MnbRadioGroup, RadioGroupComponent as MnbRadioGroupWCAG, RadioWCAG as MnbRadioWCAG, RichTextEditor as MnbRichTextEditor, Select as MnbSelect, StatusTimeline as MnbStatusTimeline, TextField as MnbTextField, ThemeWrapper as MnbThemeWrapper, ToastContainer as MnbToastContainer, ToolTipWrapper as MnbTooltipWrapper, Wizard as MnbWizard, NotificationExample, NotificationProvider, NotificationTest, PassConfigContext, PdfAccessibilityUtils, RadioCheckedIcon, RadioIcon, RequiredFieldsInfo, ShowUploadFiles$1 as ShowUploadFiles, ShowUploadFiles as ShowUploadFiles2, SimpleValidationTest, SubmitOnlyValidationTest, Success, SuccessToast, UploadField, UploadField2, UsercentricsAllowScreen, ValidationTest, WizardAccessibilityTest, WizardTest, addBookmarksToPdf, addCheckboxSemanticHint, addHeadingSemanticHint, addInvisibleSemanticHint, addLabelValueListSemanticHint, addRadioSemanticHint, addTableSemanticHint, createFormField, defaultPdfAccessibilityUtils, isConfigReady, makeCustomAddressAutocompleteRHF, makeCustomAutocompleteRHF, makeCustomCheckboxRHF, makeCustomDatePickerRHF, makeCustomInputRHF, makeCustomRadioRHF, setAccessiblePdfProperties, useCaptchaForm, useCaptchaToken, useCaptchaValidation, useConfigContext, useNotification, useUserCentrics, validateAccessibilityFeatures };
1777
+ export type { AdminLoginFormColors, AdminLoginFormProps, AdminLoginFormTexts, BaseFormFieldProps, BookmarkEntry, CharacterSanitizer, ConfigProviderProps, IDataTableConfig, IDataTableProps, IFile, IRichTextEditorProps, IToolTipProps, ImageUploadCropProps, LanguageTexts, MTCaptchaAPI, MTCaptchaConfig, Notification, PdfAccessibilityConfig, SemanticType, StatusTimelineProps, StatusTimelineStep, TooltipPlacement, TooltipSize };