@mnbsolutions/framework-frontend 0.0.0-stage → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +88 -2
  3. package/dist/esm/types/MuiClassNameSetup.d.ts +1 -0
  4. package/dist/esm/types/components/AdminLoginForm/AdminLoginForm.d.ts +89 -0
  5. package/dist/esm/types/components/AdminLoginForm/AdminLoginForm.stories.d.ts +11 -0
  6. package/dist/esm/types/components/AdminLoginForm/index.d.ts +3 -0
  7. package/dist/esm/types/components/Autocomplete/Autocomplete.d.ts +8 -0
  8. package/dist/esm/types/components/Autocomplete/Autocomplete.stories.d.ts +17 -0
  9. package/dist/esm/types/components/Autocomplete/AutocompleteOld.d.ts +7 -0
  10. package/dist/esm/types/components/Button/Button.d.ts +10 -0
  11. package/dist/esm/types/components/Button/Button.stories.d.ts +10 -0
  12. package/dist/esm/types/components/Captcha/CaptchaAccessibilityTest.d.ts +1 -0
  13. package/dist/esm/types/components/Captcha/CaptchaClientTest.d.ts +1 -0
  14. package/dist/esm/types/components/Captcha/CaptchaDebugTest.d.ts +1 -0
  15. package/dist/esm/types/components/Captcha/CaptchaDebugger.d.ts +1 -0
  16. package/dist/esm/types/components/Captcha/CaptchaExample.d.ts +1 -0
  17. package/dist/esm/types/components/Captcha/CaptchaStatusDebugger.d.ts +1 -0
  18. package/dist/esm/types/components/Captcha/CaptchaTest.d.ts +1 -0
  19. package/dist/esm/types/components/Captcha/CaptchaTroubleshoot.d.ts +2 -0
  20. package/dist/esm/types/components/Captcha/CaptchaWidget.d.ts +27 -0
  21. package/dist/esm/types/components/Captcha/CaptchaWidget.stories.d.ts +31 -0
  22. package/dist/esm/types/components/Captcha/CaptchaWidgetTest.d.ts +4 -0
  23. package/dist/esm/types/components/Captcha/ComprehensiveTest.d.ts +1 -0
  24. package/dist/esm/types/components/Captcha/FinalValidationTest.d.ts +1 -0
  25. package/dist/esm/types/components/Captcha/SimpleValidationTest.d.ts +1 -0
  26. package/dist/esm/types/components/Captcha/SubmitOnlyValidationTest.d.ts +1 -0
  27. package/dist/esm/types/components/Captcha/ValidationTest.d.ts +1 -0
  28. package/dist/esm/types/components/Captcha/hooks/useCaptchaForm.d.ts +14 -0
  29. package/dist/esm/types/components/Captcha/hooks/useCaptchaToken.d.ts +9 -0
  30. package/dist/esm/types/components/Captcha/hooks/useCaptchaValidation.d.ts +11 -0
  31. package/dist/esm/types/components/Captcha/types/captcha.d.ts +52 -0
  32. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +18 -0
  33. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +12 -0
  34. package/dist/esm/types/components/ConfigContext/ConfigContext.d.ts +10 -0
  35. package/dist/esm/types/components/ConfigContext/ConfigContext.types.d.ts +8 -0
  36. package/dist/esm/types/components/ConfigContext/index.d.ts +2 -0
  37. package/dist/esm/types/components/ContactLink/ContactLink.d.ts +7 -0
  38. package/dist/esm/types/components/ContactLink/ContactLink.stories.d.ts +7 -0
  39. package/dist/esm/types/components/ContactLink/index.d.ts +2 -0
  40. package/dist/esm/types/components/DataTable/DataTable.d.ts +14 -0
  41. package/dist/esm/types/components/DataTable/DataTable.stories.d.ts +16 -0
  42. package/dist/esm/types/components/DataTable/index.d.ts +3 -0
  43. package/dist/esm/types/components/DataTable/locales/deDE.d.ts +6 -0
  44. package/dist/esm/types/components/DataTable/locales/index.d.ts +7 -0
  45. package/dist/esm/types/components/DataTable/types.d.ts +127 -0
  46. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +12 -0
  47. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +15 -0
  48. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +14 -0
  49. package/dist/esm/types/components/Experimental/UrlField/UrlField.d.ts +34 -0
  50. package/dist/esm/types/components/Experimental/UrlField/UrlField.stories.d.ts +6 -0
  51. package/dist/esm/types/components/Experimental/UrlField/index.d.ts +3 -0
  52. package/dist/esm/types/components/Fields/makeCustomAddressAutocompleteRHF.d.ts +40 -0
  53. package/dist/esm/types/components/Fields/makeCustomAutocompleteRHF.d.ts +40 -0
  54. package/dist/esm/types/components/Fields/makeCustomCheckboxRHF.d.ts +53 -0
  55. package/dist/esm/types/components/Fields/makeCustomDatePickerRHF.d.ts +22 -0
  56. package/dist/esm/types/components/Fields/makeCustomInputRHF.d.ts +25 -0
  57. package/dist/esm/types/components/Fields/makeCustomRadioRHF.d.ts +41 -0
  58. package/dist/esm/types/components/FieldsetLegend/FieldsetLegend.d.ts +58 -0
  59. package/dist/esm/types/components/FileUpload/FileUpload.d.ts +23 -0
  60. package/dist/esm/types/components/FileUpload/FileUpload.stories.d.ts +16 -0
  61. package/dist/esm/types/components/FileUpload/FileUpload2.d.ts +18 -0
  62. package/dist/esm/types/components/FileUpload/ShowUploadFiles.d.ts +20 -0
  63. package/dist/esm/types/components/FileUpload/ShowUploadFiles2.d.ts +19 -0
  64. package/dist/esm/types/components/FileUpload/UploadField.d.ts +28 -0
  65. package/dist/esm/types/components/FileUpload/UploadField.stories.d.ts +8 -0
  66. package/dist/esm/types/components/FileUpload/UploadField2.d.ts +33 -0
  67. package/dist/esm/types/components/FileUpload/UploadField2.stories.d.ts +10 -0
  68. package/dist/esm/types/components/FileUpload/types.d.ts +8 -0
  69. package/dist/esm/types/components/FormControlLabel/FormControlLabel.d.ts +7 -0
  70. package/dist/esm/types/components/ImageUploadCrop/ImageUploadCrop.d.ts +34 -0
  71. package/dist/esm/types/components/ImageUploadCrop/ImageUploadCrop.stories.d.ts +6 -0
  72. package/dist/esm/types/components/ImageUploadCrop/index.d.ts +3 -0
  73. package/dist/esm/types/components/InfoTooltipIcon/InfoTooltipIcon.d.ts +18 -0
  74. package/dist/esm/types/components/InfoTooltipIcon/InfoTooltipIcon.stories.d.ts +7 -0
  75. package/dist/esm/types/components/InfoTooltipIcon/TooltipWrapper.d.ts +35 -0
  76. package/dist/esm/types/components/InfoTooltipIcon/TooltipWrapper.stories.d.ts +7 -0
  77. package/dist/esm/types/components/LinkButton/LinkButton.d.ts +16 -0
  78. package/dist/esm/types/components/LinkButton/LinkButton.stories.d.ts +16 -0
  79. package/dist/esm/types/components/LocalizationProvider/LocalizationProvider.d.ts +8 -0
  80. package/dist/esm/types/components/Modal/MnbModal.d.ts +31 -0
  81. package/dist/esm/types/components/Modal/MnbModal.stories.d.ts +9 -0
  82. package/dist/esm/types/components/Notification/NotificationExample.d.ts +1 -0
  83. package/dist/esm/types/components/Notification/NotificationSystem.d.ts +81 -0
  84. package/dist/esm/types/components/Notification/NotificationTest.d.ts +1 -0
  85. package/dist/esm/types/components/Notification/ToastContainer.d.ts +182 -0
  86. package/dist/esm/types/components/PrivacyLink/PrivacyLink.d.ts +13 -0
  87. package/dist/esm/types/components/PrivacyLink/PrivacyLink.stories.d.ts +6 -0
  88. package/dist/esm/types/components/Radio/Radio.d.ts +31 -0
  89. package/dist/esm/types/components/Radio/Radio.stories.d.ts +13 -0
  90. package/dist/esm/types/components/Radio/RadioWCAG.d.ts +35 -0
  91. package/dist/esm/types/components/RequiredFieldsInfo/RequiredFieldsInfo.d.ts +34 -0
  92. package/dist/esm/types/components/RequiredFieldsInfo/RequiredFieldsInfo.stories.d.ts +7 -0
  93. package/dist/esm/types/components/RichTextEditor/RichTextEditor.d.ts +13 -0
  94. package/dist/esm/types/components/RichTextEditor/RichTextEditor.stories.d.ts +6 -0
  95. package/dist/esm/types/components/RichTextEditor/index.d.ts +3 -0
  96. package/dist/esm/types/components/Select/Select.d.ts +19 -0
  97. package/dist/esm/types/components/Select/Select.stories.d.ts +14 -0
  98. package/dist/esm/types/components/StatusTimeline/StatusTimeline.d.ts +38 -0
  99. package/dist/esm/types/components/StatusTimeline/StatusTimeline.stories.d.ts +7 -0
  100. package/dist/esm/types/components/StatusTimeline/index.d.ts +3 -0
  101. package/dist/esm/types/components/SvgIcon/SvgIcon.d.ts +27 -0
  102. package/dist/esm/types/components/SvgIcon/SvgIcon.stories.d.ts +7 -0
  103. package/dist/esm/types/components/TextField/TextField.d.ts +6 -0
  104. package/dist/esm/types/components/TextField/TextField.stories.d.ts +14 -0
  105. package/dist/esm/types/components/ThemeWrapper/ThemeWrapper.d.ts +9 -0
  106. package/dist/esm/types/components/UsercentricsAllowScreen/UsercentricsAllowScreen.d.ts +8 -0
  107. package/dist/esm/types/components/Wizard/NavigateItem.d.ts +28 -0
  108. package/dist/esm/types/components/Wizard/Wizard.d.ts +30 -0
  109. package/dist/esm/types/components/Wizard/Wizard.stories.d.ts +7 -0
  110. package/dist/esm/types/components/Wizard/Wizard.types.d.ts +17 -0
  111. package/dist/esm/types/components/Wizard/WizardAccessibilityTest.d.ts +1 -0
  112. package/dist/esm/types/components/Wizard/WizardTest.d.ts +1 -0
  113. package/dist/esm/types/hooks/useUserCentrics.d.ts +42 -0
  114. package/dist/esm/types/index.d.ts +95 -0
  115. package/dist/esm/types/stories/ThemeViewer.stories.d.ts +7 -0
  116. package/dist/esm/types/stories/decorators.d.ts +2 -0
  117. package/dist/esm/types/utils/accessibility.d.ts +94 -0
  118. package/dist/esm/types/utils/createFormField.d.ts +19 -0
  119. package/dist/esm/types/utils/pdfAccessibilityUtils.d.ts +213 -0
  120. package/dist/esm/types/utils/utils.d.ts +6 -0
  121. package/dist/index.d.ts +1777 -0
  122. package/dist/index.esm.js +29 -0
  123. package/dist/index.esm.js.map +1 -0
  124. package/dist/index.js +29 -0
  125. package/dist/index.js.map +1 -0
  126. package/package.json +112 -4
@@ -0,0 +1,95 @@
1
+ export * from '@mui/material';
2
+ export * from '@mui/types';
3
+ export * as muiLocales from '@mui/material/locale';
4
+ export * from '@mui/material/styles';
5
+ export * from '@mui/x-date-pickers-pro';
6
+ export { AdapterMoment } from '@mui/x-date-pickers-pro/AdapterMoment';
7
+ export * as pickerProLocales from '@mui/x-date-pickers-pro/locales';
8
+ export * as pickerLocales from '@mui/x-date-pickers/locales';
9
+ export * from '@mui/x-data-grid-pro';
10
+ export * as DataGrid from '@mui/x-data-grid';
11
+ export * as gridLocales from '@mui/x-data-grid-pro/locales';
12
+ export * from '@mui/x-license';
13
+ export * as Icons from '@mui/icons-material';
14
+ export * as emotionCache from '@emotion/cache';
15
+ export * as emotionReact from '@emotion/react';
16
+ export * from 'react-hook-form';
17
+ export { LicenseInfo } from '@mui/x-license';
18
+ export { createFormField, type BaseFormFieldProps } from './utils/createFormField';
19
+ export * from './utils/pdfAccessibilityUtils';
20
+ export { makeCustomInputRHF } from './components/Fields/makeCustomInputRHF';
21
+ export { makeCustomCheckboxRHF } from './components/Fields/makeCustomCheckboxRHF';
22
+ export { makeCustomRadioRHF } from './components/Fields/makeCustomRadioRHF';
23
+ export { makeCustomAddressAutocompleteRHF } from './components/Fields/makeCustomAddressAutocompleteRHF';
24
+ export { makeCustomAutocompleteRHF } from './components/Fields/makeCustomAutocompleteRHF';
25
+ export { default as MnbButton } from './components/Button/Button';
26
+ export { default as MnbDropdown } from './components/Dropdown/Dropdown';
27
+ export { default as MnbAutocomplete } from './components/Autocomplete/Autocomplete';
28
+ export { default as MnbAutocompleteOld } from './components/Autocomplete/AutocompleteOld';
29
+ export { default as MnbSelect } from './components/Select/Select';
30
+ export { default as MnbFormControlLabel } from './components/FormControlLabel/FormControlLabel';
31
+ export { default as MnbLocalizationProvider } from './components/LocalizationProvider/LocalizationProvider';
32
+ export { RadioCheckedIcon, RadioIcon } from './components/Radio/Radio';
33
+ export { default as MnbTextField } from './components/TextField/TextField';
34
+ export { default as MnbDatePicker } from './components/DatePicker/DatePicker';
35
+ export { makeCustomDatePickerRHF } from './components/Fields/makeCustomDatePickerRHF';
36
+ export { default as MnbCheckbox } from './components/Checkbox/Checkbox';
37
+ export { default as MnbRadio, RadioGroup as MnbRadioGroup } from './components/Radio/Radio';
38
+ export { RadioWCAG as MnbRadioWCAG, RadioGroupWCAG as MnbRadioGroupWCAG } from './components/Radio/RadioWCAG';
39
+ export { default as MnbThemeWrapper } from './components/ThemeWrapper/ThemeWrapper';
40
+ export { CheckboxIcon as MnbCheckboxIcon, CheckboxCheckedIcon as MnbCheckboxCheckedIcon } from './components/Checkbox/Checkbox';
41
+ export { default as MnbLinkButton } from './components/LinkButton/LinkButton';
42
+ export { default as MnbInfoTooltipIcon } from './components/InfoTooltipIcon/InfoTooltipIcon';
43
+ export { default as MnbTooltipWrapper } from './components/InfoTooltipIcon/TooltipWrapper';
44
+ export type { TooltipPlacement, TooltipSize, IToolTipProps } from './components/InfoTooltipIcon/TooltipWrapper';
45
+ export { default as MnbPrivacyLink } from './components/PrivacyLink/PrivacyLink';
46
+ export { default as MnbContactLink } from './components/ContactLink/ContactLink';
47
+ export { IconType } from './components/SvgIcon/SvgIcon';
48
+ export { default as MnbModal } from './components/Modal/MnbModal';
49
+ export { default as MnbWizard } from './components/Wizard/Wizard';
50
+ export { WizardTest } from './components/Wizard/WizardTest';
51
+ export { WizardAccessibilityTest } from './components/Wizard/WizardAccessibilityTest';
52
+ export { default as MnbDataTable } from './components/DataTable/DataTable';
53
+ export type { IDataTableProps, IDataTableConfig } from './components/DataTable/types';
54
+ export { default as AdminLoginForm } from './components/AdminLoginForm/AdminLoginForm';
55
+ export type { AdminLoginFormProps, AdminLoginFormColors, AdminLoginFormTexts } from './components/AdminLoginForm/AdminLoginForm';
56
+ export { default as MnbStatusTimeline } from './components/StatusTimeline/StatusTimeline';
57
+ export type { StatusTimelineProps, StatusTimelineStep } from './components/StatusTimeline/StatusTimeline';
58
+ export { default as MnbRichTextEditor } from './components/RichTextEditor/RichTextEditor';
59
+ export type { IRichTextEditorProps } from './components/RichTextEditor/RichTextEditor';
60
+ export { default as MnbImageUploadCrop } from './components/ImageUploadCrop/ImageUploadCrop';
61
+ export type { ImageUploadCropProps } from './components/ImageUploadCrop/ImageUploadCrop';
62
+ export * from './components/ConfigContext';
63
+ export { default as MnbNotificationProvider, NotificationProvider, useNotification, type Notification } from './components/Notification/NotificationSystem';
64
+ export { NotificationTest } from './components/Notification/NotificationTest';
65
+ export { NotificationExample } from './components/Notification/NotificationExample';
66
+ export { default as MnbToastContainer, AccessibleCloseButton, Success, Error, Info, SuccessToast, ErrorToast, InfoToast } from './components/Notification/ToastContainer';
67
+ export { default as RequiredFieldsInfo } from './components/RequiredFieldsInfo/RequiredFieldsInfo';
68
+ export { default as MnbFieldsetLegend } from './components/FieldsetLegend/FieldsetLegend';
69
+ export { CaptchaWidget } from './components/Captcha/CaptchaWidget';
70
+ export { CaptchaExample } from './components/Captcha/CaptchaExample';
71
+ export { CaptchaTest } from './components/Captcha/CaptchaTest';
72
+ export { ValidationTest } from './components/Captcha/ValidationTest';
73
+ export { ComprehensiveTest } from './components/Captcha/ComprehensiveTest';
74
+ export { SimpleValidationTest } from './components/Captcha/SimpleValidationTest';
75
+ export { FinalValidationTest } from './components/Captcha/FinalValidationTest';
76
+ export { SubmitOnlyValidationTest } from './components/Captcha/SubmitOnlyValidationTest';
77
+ export { CaptchaWidgetTest } from './components/Captcha/CaptchaWidgetTest';
78
+ export { CaptchaDebugTest } from './components/Captcha/CaptchaDebugTest';
79
+ export { CaptchaAccessibilityTest } from './components/Captcha/CaptchaAccessibilityTest';
80
+ export { useCaptchaToken } from './components/Captcha/hooks/useCaptchaToken';
81
+ export { useCaptchaForm } from './components/Captcha/hooks/useCaptchaForm';
82
+ export { useCaptchaValidation } from './components/Captcha/hooks/useCaptchaValidation';
83
+ export type { MTCaptchaConfig, MTCaptchaAPI } from './components/Captcha/types/captcha';
84
+ export { useUserCentrics } from './hooks/useUserCentrics';
85
+ export { UsercentricsAllowScreen } from './components/UsercentricsAllowScreen/UsercentricsAllowScreen';
86
+ /** @deprecated Use FileUpload2 instead */
87
+ export { default as FileUpload } from './components/FileUpload/FileUpload';
88
+ /** @deprecated Use UploadField2 instead */
89
+ export { default as UploadField } from './components/FileUpload/UploadField';
90
+ /** @deprecated Use ShowUploadFiles2 instead */
91
+ export { default as ShowUploadFiles } from './components/FileUpload/ShowUploadFiles';
92
+ export { default as FileUpload2 } from './components/FileUpload/FileUpload2';
93
+ export { default as UploadField2 } from './components/FileUpload/UploadField2';
94
+ export { default as ShowUploadFiles2 } from './components/FileUpload/ShowUploadFiles2';
95
+ export type { IFile } from './components/FileUpload/types';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ declare const ThemeViewer: React.FC;
4
+ declare const meta: Meta<typeof ThemeViewer>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof ThemeViewer>;
7
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const withWnTheme: (Story: React.ComponentType, context: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,94 @@
1
+ import React from 'react';
2
+ import { FormHelperTextProps } from '@mui/material';
3
+ import { Theme } from '@mui/material/styles';
4
+ export declare const EDISCOM_BRAND_KEY = "ediscom";
5
+ export declare const EDISCOM_REQUIRED_LABEL_COLOR = "#5c5c5c";
6
+ export declare const EDISCOM_ERROR_COLOR = "#e63121";
7
+ export declare const EDISCOM_DISABLED_OPACITY = 0.6;
8
+ export declare const EDISCOM_DISABLED_BORDER_COLOR = "rgb(51, 109.4, 148.6)";
9
+ export declare const EDISCOM_DISABLED_BACKGROUND_COLOR = "#ffffff";
10
+ export declare const EDISCOM_ERROR_ICON_SIZE = 15;
11
+ export declare const EDISCOM_ERROR_ICON_WIDTH = 15;
12
+ export declare const EDISCOM_ERROR_ICON_HEIGHT = 15;
13
+ export declare const EDISCOM_ERROR_ICON_GAP = 6;
14
+ export declare const EDISCOM_REQUIRED_INPUT_MESSAGE = "Bitte f\u00FCllen Sie das Feld aus.";
15
+ export declare const EDISCOM_REQUIRED_SELECT_MESSAGE = "Bitte w\u00E4hlen Sie eine M\u00F6glichkeit aus!";
16
+ export type EdiscomRequiredErrorKind = 'input' | 'select';
17
+ export declare const isEdiscomTheme: (theme?: {
18
+ brandKey?: string;
19
+ }) => boolean;
20
+ export declare const getRequiredFieldErrorMessage: (kind: EdiscomRequiredErrorKind, theme?: {
21
+ brandKey?: string;
22
+ }, label?: string | React.ReactNode) => string;
23
+ export declare const ediscomHelperContentClassName = "mnb-ediscom-helper-content";
24
+ export declare const ediscomHelperTextClassName = "mnb-ediscom-helper-text";
25
+ export declare const ediscomErrorIconWrapClassName = "mnb-ediscom-error-icon-wrap";
26
+ /** Shared grid layout for error icon + message (theme CssBaseline + component sx). */
27
+ export declare const ediscomHelperLayoutSx: {
28
+ readonly "& .mnb-ediscom-helper-content": {
29
+ readonly display: "grid";
30
+ readonly gridTemplateColumns: "15px minmax(0, 1fr)";
31
+ readonly columnGap: "6px";
32
+ readonly alignItems: "start";
33
+ readonly width: "100%";
34
+ readonly margin: 0;
35
+ };
36
+ readonly "& .mnb-ediscom-error-icon-wrap": {
37
+ readonly gridColumn: "1";
38
+ readonly gridRow: "1";
39
+ readonly width: "15px";
40
+ readonly height: "15px";
41
+ readonly lineHeight: 0;
42
+ readonly marginTop: "3px";
43
+ };
44
+ readonly "& .mnb-ediscom-error-icon": {
45
+ readonly display: "block";
46
+ readonly width: "15px";
47
+ readonly height: "15px";
48
+ };
49
+ readonly "& .mnb-ediscom-helper-text": {
50
+ readonly gridColumn: "2";
51
+ readonly gridRow: "1";
52
+ readonly minWidth: 0;
53
+ readonly whiteSpace: "pre-line";
54
+ };
55
+ };
56
+ export declare const ediscomFormHelperTextSx: {
57
+ readonly "& .mnb-ediscom-helper-content": {
58
+ readonly display: "grid";
59
+ readonly gridTemplateColumns: "15px minmax(0, 1fr)";
60
+ readonly columnGap: "6px";
61
+ readonly alignItems: "start";
62
+ readonly width: "100%";
63
+ readonly margin: 0;
64
+ };
65
+ readonly "& .mnb-ediscom-error-icon-wrap": {
66
+ readonly gridColumn: "1";
67
+ readonly gridRow: "1";
68
+ readonly width: "15px";
69
+ readonly height: "15px";
70
+ readonly lineHeight: 0;
71
+ readonly marginTop: "3px";
72
+ };
73
+ readonly "& .mnb-ediscom-error-icon": {
74
+ readonly display: "block";
75
+ readonly width: "15px";
76
+ readonly height: "15px";
77
+ };
78
+ readonly "& .mnb-ediscom-helper-text": {
79
+ readonly gridColumn: "2";
80
+ readonly gridRow: "1";
81
+ readonly minWidth: 0;
82
+ readonly whiteSpace: "pre-line";
83
+ };
84
+ readonly display: "block";
85
+ readonly marginLeft: 0;
86
+ readonly marginTop: "4px";
87
+ };
88
+ export declare const EdiscomErrorIcon: React.FC;
89
+ export declare const formatEdiscomHelperText: (helperText: React.ReactNode) => React.ReactNode;
90
+ export type EdiscomFormHelperTextProps = FormHelperTextProps & {
91
+ showValidationError?: boolean;
92
+ };
93
+ export declare const EdiscomFormHelperText: React.ForwardRefExoticComponent<Omit<EdiscomFormHelperTextProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
94
+ export declare const getAccessibleLabel: (label: string | React.ReactNode, required?: boolean, theme?: Pick<Theme, "brandKey" | "palette">) => React.ReactNode;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { FieldValues, Path, RegisterOptions, Control } from 'react-hook-form';
3
+ export interface BaseFormFieldProps<T extends FieldValues = FieldValues> {
4
+ name: Path<T>;
5
+ label: string;
6
+ disabled?: boolean;
7
+ fullWidth?: boolean;
8
+ rules?: RegisterOptions<T, Path<T>>;
9
+ config?: RegisterOptions<T, Path<T>>;
10
+ isLoading?: boolean;
11
+ /** Pass this when you’re NOT using FormProvider */
12
+ control?: Control<T>;
13
+ }
14
+ export declare function createFormField<T extends FieldValues, P extends {}>(render: (args: {
15
+ field: any;
16
+ fieldState: any;
17
+ formState: any;
18
+ props: BaseFormFieldProps<T> & Omit<P, 'name'>;
19
+ }) => React.ReactNode): React.FC<BaseFormFieldProps<T> & Omit<P, "name">>;
@@ -0,0 +1,213 @@
1
+ /**
2
+ * PDF Accessibility Utilities Module
3
+ *
4
+ * A flexible, configurable module for improving PDF accessibility when using jsPDF.
5
+ * Designed to be shared across projects in the mnb-framework.
6
+ *
7
+ * WARNING: This module provides LIMITED accessibility improvements for PDFs generated with jsPDF.
8
+ * It does NOT create true PDF tags (structure tree) required for WCAG/PDF-UA compliance.
9
+ *
10
+ * What this module DOES:
11
+ * - Adds invisible semantic text hints that screen readers can read
12
+ * - Provides bookmark/outline tracking for navigation
13
+ * - Enhances document metadata (language, title, etc.)
14
+ * - Supports German language with customizable announcements
15
+ * - Configurable visual settings (font size, color, position)
16
+ *
17
+ * What this module DOES NOT do:
18
+ * - Create PDF structure tree (/StructTreeRoot)
19
+ * - Enable heading navigation shortcuts in screen readers
20
+ * - Provide table cell navigation
21
+ * - Make PDFs WCAG/PDF-UA compliant
22
+ *
23
+ * LIMITATIONS:
24
+ * 1. Invisible text may still be selectable/copyable in some PDF viewers
25
+ * 2. Light gray text becomes visible if PDF is printed in grayscale
26
+ * 3. Bookmarks require jsPDF version with outline API support
27
+ * 4. This is a workaround, not a true accessibility solution
28
+ *
29
+ * For true WCAG compliance, use server-side PDF generation with libraries that support
30
+ * tagged PDFs (e.g., iText, pdfbox, etc.)
31
+ */
32
+ import { jsPDF } from 'jspdf';
33
+ /**
34
+ * Type for semantic element types that can be announced
35
+ */
36
+ export type SemanticType = 'heading' | 'section' | 'table' | 'list' | 'paragraph' | 'checkbox' | 'radio';
37
+ /**
38
+ * Interface for tracking bookmarks/sections
39
+ */
40
+ export interface BookmarkEntry {
41
+ name: string;
42
+ page: number;
43
+ level?: number;
44
+ parent?: string;
45
+ }
46
+ /**
47
+ * Language-specific text mappings for semantic announcements (German only)
48
+ */
49
+ export interface LanguageTexts {
50
+ heading: (level: number, label?: string) => string;
51
+ section: (label?: string) => string;
52
+ table: (label?: string) => string;
53
+ list: (label?: string) => string;
54
+ paragraph: (label?: string) => string;
55
+ checkbox: (label?: string, checked?: boolean) => string;
56
+ radio: (label?: string, selected?: boolean) => string;
57
+ labelValueList: string;
58
+ checkboxChecked: string;
59
+ checkboxUnchecked: string;
60
+ radioSelected: string;
61
+ radioUnselected: string;
62
+ }
63
+ /**
64
+ * Character sanitization function type
65
+ */
66
+ export type CharacterSanitizer = (text: string) => string;
67
+ /**
68
+ * Predefined character sanitizers
69
+ */
70
+ export declare const CharacterSanitizers: Record<string, CharacterSanitizer>;
71
+ /**
72
+ * Configuration for PDF accessibility utilities
73
+ */
74
+ export interface PdfAccessibilityConfig {
75
+ /**
76
+ * Custom language texts (overrides predefined if provided)
77
+ */
78
+ languageTexts?: Partial<LanguageTexts>;
79
+ /**
80
+ * Character sanitizer function for PDF metadata
81
+ * Default: german sanitizer (converts umlauts to ASCII)
82
+ */
83
+ characterSanitizer?: CharacterSanitizer;
84
+ /**
85
+ * Font size for invisible semantic hints (in points)
86
+ * Default: 2 (minimum recommended for accessible PDFs)
87
+ */
88
+ semanticHintFontSize?: number;
89
+ /**
90
+ * Text color for invisible semantic hints (RGB values 0-255)
91
+ * Default: [250, 250, 250] (very light gray)
92
+ */
93
+ semanticHintColor?: [number, number, number];
94
+ /**
95
+ * Y-position offset for semantic hints (in mm)
96
+ * Negative values place hint above visible text
97
+ * Default: -0.5
98
+ */
99
+ semanticHintPositionOffset?: number;
100
+ /**
101
+ * X-position (margin left) for semantic hints (in mm)
102
+ * If not provided, uses doc's current margin or 10mm
103
+ */
104
+ semanticHintMarginLeft?: number;
105
+ /**
106
+ * Enable/disable semantic hints
107
+ * Default: true
108
+ */
109
+ enableSemanticHints?: boolean;
110
+ /**
111
+ * Enable/disable bookmarks
112
+ * Default: true
113
+ */
114
+ enableBookmarks?: boolean;
115
+ /**
116
+ * Enable/disable metadata enhancement
117
+ * Default: true
118
+ */
119
+ enableMetadata?: boolean;
120
+ }
121
+ /**
122
+ * Class to track document structure for bookmarks
123
+ */
124
+ export declare class BookmarkTracker {
125
+ private bookmarks;
126
+ private currentPage;
127
+ /**
128
+ * Add a bookmark entry
129
+ */
130
+ addBookmark(name: string, page: number, level?: number, parent?: string): void;
131
+ /**
132
+ * Get current page
133
+ * @deprecated This method is not used effectively. Page numbers should be passed directly to addBookmark.
134
+ */
135
+ getCurrentPage(): number;
136
+ /**
137
+ * Get all bookmarks
138
+ */
139
+ getBookmarks(): BookmarkEntry[];
140
+ /**
141
+ * Clear all bookmarks
142
+ */
143
+ clear(): void;
144
+ }
145
+ /**
146
+ * Main class for PDF accessibility utilities
147
+ */
148
+ export declare class PdfAccessibilityUtils {
149
+ private config;
150
+ private languageTexts;
151
+ constructor(config?: PdfAccessibilityConfig);
152
+ /**
153
+ * Get current configuration
154
+ */
155
+ getConfig(): Required<PdfAccessibilityConfig>;
156
+ /**
157
+ * Update configuration
158
+ */
159
+ updateConfig(updates: Partial<PdfAccessibilityConfig>): void;
160
+ /**
161
+ * Adds invisible semantic hint text that screen readers can read
162
+ */
163
+ addInvisibleSemanticHint(doc: jsPDF, currentPos: number, semanticType: SemanticType, level?: number, label?: string, additionalData?: {
164
+ checked?: boolean;
165
+ selected?: boolean;
166
+ }): number;
167
+ /**
168
+ * Adds bookmarks/outline to PDF document
169
+ *
170
+ * @param rootTitle - Optional root bookmark title. If not provided or empty, no root bookmark is created
171
+ * and top-level bookmarks are added directly to the outline.
172
+ */
173
+ addBookmarksToPdf(doc: jsPDF, tracker: BookmarkTracker, rootTitle?: string | null): boolean;
174
+ /**
175
+ * Enhances PDF document properties with accessibility metadata
176
+ */
177
+ setAccessiblePdfProperties(doc: jsPDF, title: string, subject: string, author: string, keywords: string, creator: string, language?: string): void;
178
+ /**
179
+ * Convenience methods for common semantic hints
180
+ */
181
+ addHeadingSemanticHint(doc: jsPDF, pos: number, headingText: string, level?: number): number;
182
+ addTableSemanticHint(doc: jsPDF, pos: number, tableDescription: string): number;
183
+ addLabelValueListSemanticHint(doc: jsPDF, pos: number): number;
184
+ addCheckboxSemanticHint(doc: jsPDF, pos: number, checkboxLabel: string, checked: boolean): number;
185
+ addRadioSemanticHint(doc: jsPDF, pos: number, radioLabel: string, selected: boolean): number;
186
+ }
187
+ /**
188
+ * Default instance with German configuration (for backward compatibility)
189
+ */
190
+ export declare const defaultPdfAccessibilityUtils: PdfAccessibilityUtils;
191
+ /**
192
+ * Convenience exports using default instance (for backward compatibility)
193
+ * Note: BookmarkTracker is already exported as a class above
194
+ */
195
+ export declare const addInvisibleSemanticHint: (doc: jsPDF, currentPos: number, semanticType: SemanticType, level?: number, label?: string, additionalData?: {
196
+ checked?: boolean;
197
+ selected?: boolean;
198
+ }) => number;
199
+ export declare const addBookmarksToPdf: (doc: jsPDF, tracker: BookmarkTracker, rootTitle?: string | null) => boolean;
200
+ export declare const setAccessiblePdfProperties: (doc: jsPDF, title: string, subject: string, author: string, keywords: string, creator: string, language?: string) => void;
201
+ export declare const addHeadingSemanticHint: (doc: jsPDF, pos: number, headingText: string, level?: number) => number;
202
+ export declare const addTableSemanticHint: (doc: jsPDF, pos: number, tableDescription: string) => number;
203
+ export declare const addLabelValueListSemanticHint: (doc: jsPDF, pos: number) => number;
204
+ export declare const addCheckboxSemanticHint: (doc: jsPDF, pos: number, checkboxLabel: string, checked: boolean) => number;
205
+ export declare const addRadioSemanticHint: (doc: jsPDF, pos: number, radioLabel: string, selected: boolean) => number;
206
+ /**
207
+ * Validates that accessibility features are working
208
+ */
209
+ export declare const validateAccessibilityFeatures: (doc: jsPDF) => {
210
+ outlineSupported: boolean;
211
+ propertiesSet: boolean;
212
+ warnings: string[];
213
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const parsePlzOrt: (stringOrt: string) => {
3
+ ort: string;
4
+ plz: string;
5
+ };
6
+ export declare const nodeToPlainText: (node: React.ReactNode) => string;