@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,35 @@
1
+ import React, { CSSProperties, ReactElement } from 'react';
2
+ export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
3
+ export type TooltipSize = 'normal' | 'small' | 'tiny';
4
+ export interface IToolTipProps {
5
+ /** The tooltip content - can be a string or ReactElement */
6
+ text: ReactElement<any, any> | string;
7
+ /** Optional aria-label for accessibility. If not provided, will use the text content */
8
+ ariaLabel?: string;
9
+ /** Optional custom styles for the container */
10
+ style?: CSSProperties;
11
+ /** Optional ID for the tooltip (used for aria-describedby) */
12
+ tooltipId?: string;
13
+ /** Icon size preset: 'normal' (32px), 'small' (24px), or 'tiny' (18px). Default: 'tiny'. If iconSize is provided, it takes precedence. */
14
+ size?: TooltipSize;
15
+ /** Icon size in pixels. If provided, overrides the size prop. */
16
+ iconSize?: number;
17
+ /** Tooltip placement. Default: 'bottom' */
18
+ placement?: TooltipPlacement;
19
+ /** Tooltip font size in pixels. Default: 20 */
20
+ tooltipFontSize?: number;
21
+ /** Custom icon color. If not provided, uses theme primary color */
22
+ iconColor?: string;
23
+ /** Custom tooltip background color. If not provided, uses theme primary color */
24
+ tooltipBackgroundColor?: string;
25
+ /** Custom tooltip font color. If not provided, uses theme common white */
26
+ tooltipFontColor?: string;
27
+ /** Default margin bottom. Default: '22px' */
28
+ defaultMarginBottom?: string | number;
29
+ /** Default padding left. Default: '1rem' */
30
+ defaultPaddingLeft?: string | number;
31
+ /** Default margin left. Default: undefined */
32
+ defaultMarginLeft?: string | number;
33
+ }
34
+ declare const ToolTipWrapper: React.FC<IToolTipProps>;
35
+ export default ToolTipWrapper;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import TooltipWrapper from "./TooltipWrapper";
3
+ declare const meta: Meta<typeof TooltipWrapper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TooltipWrapper>;
6
+ export declare const Default: Story;
7
+ export declare const WithReactElement: Story;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { IconType } from '../SvgIcon/SvgIcon';
3
+ interface LinkButtonProps {
4
+ href: string;
5
+ title: string;
6
+ customIcon?: React.ReactNode;
7
+ icon?: IconType;
8
+ text: string;
9
+ color?: string;
10
+ hoverColor?: string;
11
+ isUnderlined?: boolean;
12
+ iconSize?: number;
13
+ fontSize?: number;
14
+ }
15
+ declare const LinkButton: React.FC<LinkButtonProps>;
16
+ export default LinkButton;
@@ -0,0 +1,16 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import MnbLinkButton from "./LinkButton";
3
+ declare const meta: Meta<typeof MnbLinkButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MnbLinkButton>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcon: Story;
8
+ export declare const ExternalLink: Story;
9
+ export declare const DownloadLink: Story;
10
+ export declare const ContactPhone: Story;
11
+ export declare const ContactEmail: Story;
12
+ export declare const CustomColors: Story;
13
+ export declare const LargeText: Story;
14
+ export declare const UnderlinedLink: Story;
15
+ export declare const LongText: Story;
16
+ export declare const CustomIcon: Story;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { LocalizationProviderProps } from '@mui/x-date-pickers';
3
+ import 'moment/locale/de';
4
+ interface ILocalizationProviderProps extends LocalizationProviderProps<any, any> {
5
+ children: React.ReactNode;
6
+ }
7
+ declare const LocalizationProvider: React.FC<ILocalizationProviderProps>;
8
+ export default LocalizationProvider;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ export interface MnbModalProps {
3
+ /** Whether the modal is open */
4
+ open: boolean;
5
+ /** Function to call when modal should be closed */
6
+ onClose: () => void;
7
+ /** Modal title */
8
+ title: string;
9
+ /** Modal content text */
10
+ text: string;
11
+ /** Accept button text */
12
+ acceptText?: string;
13
+ /** Cancel button text */
14
+ cancelText?: string;
15
+ /** Function to call when accept button is clicked */
16
+ onAccept?: () => void;
17
+ /** Function to call when cancel button is clicked */
18
+ onCancel?: () => void;
19
+ /** Whether to show the cancel button */
20
+ showCancel?: boolean;
21
+ /** Whether to show the accept button */
22
+ showAccept?: boolean;
23
+ /** Maximum width of the modal */
24
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
25
+ /** Whether clicking outside should close the modal (default: true) */
26
+ disableBackdropClick?: boolean;
27
+ /** Whether pressing escape should close the modal (default: true) */
28
+ disableEscapeKeyDown?: boolean;
29
+ }
30
+ declare const MnbModal: React.FC<MnbModalProps>;
31
+ export default MnbModal;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import MnbModal from "./MnbModal";
3
+ declare const meta: Meta<typeof MnbModal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MnbModal>;
6
+ export declare const Default: Story;
7
+ export declare const WarningDialog: Story;
8
+ export declare const InfoOnly: Story;
9
+ export declare const LargeContent: Story;
@@ -0,0 +1 @@
1
+ export declare function NotificationExample(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ export interface Notification {
3
+ id: string;
4
+ type: 'success' | 'error' | 'info';
5
+ message: string;
6
+ autoClose?: boolean;
7
+ duration?: number;
8
+ onClose?: () => void;
9
+ }
10
+ interface NotificationContextType {
11
+ notifications: Notification[];
12
+ addNotification: (notification: Omit<Notification, 'id'>) => void;
13
+ removeNotification: (id: string) => void;
14
+ clearAll: () => void;
15
+ showSuccess: (message: string, options?: {
16
+ autoClose?: boolean;
17
+ duration?: number;
18
+ onClose?: () => void;
19
+ }) => void;
20
+ showError: (message: string, options?: {
21
+ autoClose?: boolean;
22
+ duration?: number;
23
+ onClose?: () => void;
24
+ }) => void;
25
+ showInfo: (message: string, options?: {
26
+ autoClose?: boolean;
27
+ duration?: number;
28
+ onClose?: () => void;
29
+ }) => void;
30
+ }
31
+ export declare const useNotification: () => NotificationContextType;
32
+ interface NotificationProviderProps {
33
+ children: React.ReactNode;
34
+ position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
35
+ }
36
+ export declare const NotificationProvider: React.FC<NotificationProviderProps>;
37
+ export declare const showSuccess: (message: string, options?: {
38
+ autoClose?: boolean;
39
+ duration?: number;
40
+ }) => {
41
+ autoClose?: boolean;
42
+ duration?: number;
43
+ type: "success";
44
+ message: string;
45
+ };
46
+ export declare const showError: (message: string, options?: {
47
+ autoClose?: boolean;
48
+ duration?: number;
49
+ }) => {
50
+ autoClose?: boolean;
51
+ duration?: number;
52
+ type: "error";
53
+ message: string;
54
+ };
55
+ export declare const showInfo: (message: string, options?: {
56
+ autoClose?: boolean;
57
+ duration?: number;
58
+ }) => {
59
+ autoClose?: boolean;
60
+ duration?: number;
61
+ type: "info";
62
+ message: string;
63
+ };
64
+ export declare const createNotificationHelpers: () => {
65
+ success: (message: string, options?: {
66
+ autoClose?: boolean;
67
+ duration?: number;
68
+ onClose?: () => void;
69
+ }) => void;
70
+ error: (message: string, options?: {
71
+ autoClose?: boolean;
72
+ duration?: number;
73
+ onClose?: () => void;
74
+ }) => void;
75
+ info: (message: string, options?: {
76
+ autoClose?: boolean;
77
+ duration?: number;
78
+ onClose?: () => void;
79
+ }) => void;
80
+ };
81
+ export default NotificationProvider;
@@ -0,0 +1 @@
1
+ export declare function NotificationTest(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,182 @@
1
+ import React from 'react';
2
+ interface AccessibleCloseButtonProps {
3
+ closeToast?: () => void;
4
+ type?: string;
5
+ ariaLabel?: string;
6
+ }
7
+ export declare const AccessibleCloseButton: React.FC<AccessibleCloseButtonProps>;
8
+ export interface MnbToastContainerProps {
9
+ /** Position of the toast container */
10
+ position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
11
+ /** ARIA label for the toast container */
12
+ ariaLabel?: string;
13
+ /** Auto close timeout in milliseconds (false to disable) */
14
+ autoClose?: number | false;
15
+ /** Close on click */
16
+ closeOnClick?: boolean;
17
+ /** Show newest toasts on top */
18
+ newestOnTop?: boolean;
19
+ /** Right to left text direction */
20
+ rtl?: boolean;
21
+ /** Pause on focus loss */
22
+ pauseOnFocusLoss?: boolean;
23
+ /** Pause on hover */
24
+ pauseOnHover?: boolean;
25
+ /** Theme: light or dark */
26
+ theme?: 'light' | 'dark' | 'colored';
27
+ /** Hide progress bar */
28
+ hideProgressBar?: boolean;
29
+ /** Custom close button component */
30
+ closeButton?: React.ComponentType<any> | false;
31
+ /** Custom toast className */
32
+ toastClassName?: string;
33
+ /** Additional props */
34
+ [key: string]: any;
35
+ }
36
+ /**
37
+ * WCAG-Compliant Toast Container Component
38
+ *
39
+ * This component provides a fully accessible toast notification container with German language support.
40
+ *
41
+ * Prerequisites:
42
+ * - Install react-toastify: `npm install react-toastify`
43
+ * - Import and use this component in your app root
44
+ *
45
+ * @example
46
+ * import { MnbToastContainer } from 'mnb-framework';
47
+ * import { ToastContainer } from 'react-toastify';
48
+ *
49
+ * // In your app component:
50
+ * <MnbToastContainer
51
+ * position="bottom-right"
52
+ * ariaLabel="Benachrichtigungen"
53
+ * />
54
+ *
55
+ * // Note: You'll need to manually integrate with react-toastify's ToastContainer
56
+ * // This component provides the styling and AccessibleCloseButton
57
+ */
58
+ declare const ToastContainer: React.FC<MnbToastContainerProps>;
59
+ /**
60
+ * Configuration for success toast notifications
61
+ * Use this with react-toastify's toast.success()
62
+ *
63
+ * @param message - The success message to display
64
+ * @returns Configuration object for toast.success()
65
+ *
66
+ * @example
67
+ * import { toast } from 'react-toastify';
68
+ * import { Success } from 'mnb-framework';
69
+ *
70
+ * // Use the Success function to get configuration
71
+ * toast.success('Sitzungsstatus wurde gespeichert', Success());
72
+ *
73
+ * // Or use the pre-configured SuccessToast function
74
+ * SuccessToast('Sitzungsstatus wurde gespeichert');
75
+ */
76
+ export declare const Success: () => {
77
+ position: "bottom-right";
78
+ autoClose: boolean;
79
+ hideProgressBar: boolean;
80
+ closeOnClick: boolean;
81
+ pauseOnHover: boolean;
82
+ draggable: boolean;
83
+ progress: undefined;
84
+ role: string;
85
+ className: string;
86
+ closeButton: React.FC<AccessibleCloseButtonProps>;
87
+ };
88
+ /**
89
+ * Configuration for error toast notifications
90
+ * Use this with react-toastify's toast.error()
91
+ *
92
+ * @param message - The error message to display
93
+ * @returns Configuration object for toast.error()
94
+ *
95
+ * @example
96
+ * import { toast } from 'react-toastify';
97
+ * import { Error } from 'mnb-framework';
98
+ *
99
+ * // Use the Error function to get configuration
100
+ * toast.error('Fehler beim Speichern der Sitzung', Error());
101
+ *
102
+ * // Or use the pre-configured ErrorToast function
103
+ * ErrorToast('Fehler beim Speichern der Sitzung');
104
+ */
105
+ export declare const Error: () => {
106
+ position: "bottom-right";
107
+ autoClose: boolean;
108
+ hideProgressBar: boolean;
109
+ closeOnClick: boolean;
110
+ pauseOnHover: boolean;
111
+ draggable: boolean;
112
+ progress: undefined;
113
+ role: string;
114
+ className: string;
115
+ closeButton: React.FC<AccessibleCloseButtonProps>;
116
+ };
117
+ /**
118
+ * Configuration for info toast notifications
119
+ * Use this with react-toastify's toast.info()
120
+ *
121
+ * @param message - The info message to display
122
+ * @returns Configuration object for toast.info()
123
+ *
124
+ * @example
125
+ * import { toast } from 'react-toastify';
126
+ * import { Info } from 'mnb-framework';
127
+ *
128
+ * // Use the Info function to get configuration
129
+ * toast.info('Ihre Daten werden verarbeitet', Info());
130
+ *
131
+ * // Or use the pre-configured InfoToast function
132
+ * InfoToast('Ihre Daten werden verarbeitet');
133
+ */
134
+ export declare const Info: () => {
135
+ position: "bottom-right";
136
+ autoClose: boolean;
137
+ hideProgressBar: boolean;
138
+ closeOnClick: boolean;
139
+ pauseOnHover: boolean;
140
+ draggable: boolean;
141
+ progress: undefined;
142
+ role: string;
143
+ className: string;
144
+ closeButton: React.FC<AccessibleCloseButtonProps>;
145
+ };
146
+ /**
147
+ * Pre-configured success toast function
148
+ * Displays a success notification with German styling
149
+ *
150
+ * @param message - The success message to display
151
+ *
152
+ * @example
153
+ * import { SuccessToast } from 'mnb-framework';
154
+ *
155
+ * SuccessToast('Sitzungsstatus wurde gespeichert');
156
+ */
157
+ export declare const SuccessToast: (message: string) => any;
158
+ /**
159
+ * Pre-configured error toast function
160
+ * Displays an error notification with German styling
161
+ *
162
+ * @param message - The error message to display
163
+ *
164
+ * @example
165
+ * import { ErrorToast } from 'mnb-framework';
166
+ *
167
+ * ErrorToast('Fehler beim Speichern der Sitzung');
168
+ */
169
+ export declare const ErrorToast: (message: string) => any;
170
+ /**
171
+ * Pre-configured info toast function
172
+ * Displays an info notification with German styling
173
+ *
174
+ * @param message - The info message to display
175
+ *
176
+ * @example
177
+ * import { InfoToast } from 'mnb-framework';
178
+ *
179
+ * InfoToast('Ihre Daten werden verarbeitet');
180
+ */
181
+ export declare const InfoToast: (message: string) => any;
182
+ export default ToastContainer;
@@ -0,0 +1,13 @@
1
+ import { TypographyProps } from '@mui/material';
2
+ interface PrivacyLinkProps extends Omit<TypographyProps, 'children'> {
3
+ /** The URL for the privacy policy link */
4
+ href?: string;
5
+ /** Custom link text */
6
+ linkText?: string;
7
+ /** Custom text before the link */
8
+ beforeText?: string;
9
+ /** Custom text after the link */
10
+ afterText?: string;
11
+ }
12
+ declare const PrivacyLink: ({ href, linkText, beforeText, afterText, ...typographyProps }: PrivacyLinkProps) => JSX.Element;
13
+ export default PrivacyLink;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import PrivacyLink from "./PrivacyLink";
3
+ declare const meta: Meta<typeof PrivacyLink>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof PrivacyLink>;
6
+ export declare const Default: Story;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { RadioProps } from '@mui/material/Radio/Radio';
3
+ interface IRadioProps extends RadioProps {
4
+ clr?: string;
5
+ hoverclr?: string;
6
+ label?: string;
7
+ required?: boolean;
8
+ }
9
+ interface IRadioGroupProps {
10
+ label?: string;
11
+ required?: boolean;
12
+ children: React.ReactNode;
13
+ value?: string;
14
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
15
+ name?: string;
16
+ }
17
+ export declare const RadioIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
18
+ clr?: string;
19
+ hoverclr?: string;
20
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ export declare const RadioCheckedIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
22
+ clr?: string;
23
+ hoverclr?: string;
24
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
25
+ clr?: string;
26
+ hoverclr?: string;
27
+ }, {}, {}>;
28
+ declare const Radio: React.ForwardRefExoticComponent<Omit<IRadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
+ declare const RadioGroupComponent: React.FC<IRadioGroupProps>;
30
+ export default Radio;
31
+ export { RadioGroupComponent as RadioGroup };
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import MnbRadio from "./Radio";
3
+ declare const meta: Meta<typeof MnbRadio>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MnbRadio>;
6
+ export declare const Default: Story;
7
+ export declare const Checked: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const DisabledChecked: Story;
10
+ export declare const RadioGroupStory: Story;
11
+ export declare const RadioGroupPreselected: Story;
12
+ export declare const RadioGroupWithDisabled: Story;
13
+ export declare const RadioGroupRequired: Story;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { RadioProps } from '@mui/material/Radio/Radio';
3
+ import { RadioGroupProps } from '@mui/material/RadioGroup/RadioGroup';
4
+ interface IRadioProps extends RadioProps {
5
+ clr?: string;
6
+ hoverclr?: string;
7
+ label?: string;
8
+ required?: boolean;
9
+ }
10
+ interface IRadioGroupProps extends RadioGroupProps {
11
+ label?: string | React.ReactNode;
12
+ required?: boolean;
13
+ children: React.ReactNode;
14
+ value?: string;
15
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
16
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
17
+ name?: string;
18
+ }
19
+ export declare const RadioIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
20
+ clr?: string;
21
+ hoverclr?: string;
22
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
+ export declare const RadioCheckedIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
24
+ clr?: string;
25
+ hoverclr?: string;
26
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
27
+ clr?: string;
28
+ hoverclr?: string;
29
+ }, {}, {}>;
30
+ export declare const RadioWCAG: React.ForwardRefExoticComponent<Omit<IRadioProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
31
+ declare const RadioGroupComponent: React.FC<IRadioGroupProps & {
32
+ error?: string;
33
+ name?: string;
34
+ }>;
35
+ export { RadioGroupComponent as RadioGroupWCAG };
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ interface RequiredFieldsInfoProps {
3
+ /** Custom text for required fields info (defaults to German text) */
4
+ text?: string;
5
+ /** Additional CSS classes */
6
+ className?: string;
7
+ /** Additional styling props */
8
+ sx?: any;
9
+ textSx?: any; /** Additional styling props for the text */
10
+ }
11
+ /**
12
+ * RequiredFieldsInfo Component
13
+ *
14
+ * Displays information about required fields using a fieldset with legend
15
+ * for proper screen reader accessibility. The text is announced to screen readers
16
+ * when the page loads, making it clear to disabled users which fields are required.
17
+ *
18
+ * @example
19
+ * // Basic usage with default German text
20
+ * <RequiredFieldsInfo />
21
+ *
22
+ * @example
23
+ * // Custom text
24
+ * <RequiredFieldsInfo text="Fields marked with * are required and must be filled out." />
25
+ *
26
+ * @example
27
+ * // With custom styling
28
+ * <RequiredFieldsInfo
29
+ * sx={{ marginBottom: 2 }}
30
+ * className="required-fields-info"
31
+ * />
32
+ */
33
+ declare const RequiredFieldsInfo: React.FC<RequiredFieldsInfoProps>;
34
+ export default RequiredFieldsInfo;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import RequiredFieldsInfo from "./RequiredFieldsInfo";
3
+ declare const meta: Meta<typeof RequiredFieldsInfo>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof RequiredFieldsInfo>;
6
+ export declare const Default: Story;
7
+ export declare const CustomText: Story;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import "react-quill-new/dist/quill.snow.css";
3
+ import "quill-table-better/dist/quill-table-better.css";
4
+ export interface IRichTextEditorProps {
5
+ value?: string;
6
+ onChange: (value: string) => void;
7
+ label?: string;
8
+ required?: boolean;
9
+ 'aria-describedby'?: string;
10
+ readOnly?: boolean;
11
+ }
12
+ declare const RichTextEditor: React.FC<IRichTextEditorProps>;
13
+ export default RichTextEditor;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MnbRichTextEditor from './RichTextEditor';
3
+ declare const meta: Meta<typeof MnbRichTextEditor>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MnbRichTextEditor>;
6
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ export { default } from './RichTextEditor';
2
+ export { default as RichTextEditor } from './RichTextEditor';
3
+ export type { IRichTextEditorProps } from './RichTextEditor';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { FormControlProps } from '@mui/material/FormControl/FormControl';
3
+ import { InputLabelProps } from '@mui/material/InputLabel/InputLabel';
4
+ import { SelectProps } from '@mui/material/Select/Select';
5
+ import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
6
+ interface ISelectProps {
7
+ label: string;
8
+ options: {
9
+ id: string;
10
+ name: string;
11
+ }[];
12
+ required?: boolean;
13
+ formControlProps?: FormControlProps;
14
+ inputLabelProps?: InputLabelProps;
15
+ selectProps?: SelectProps;
16
+ menuItemProps?: MenuItemProps;
17
+ }
18
+ declare const Select: React.ForwardRefExoticComponent<ISelectProps & React.RefAttributes<HTMLDivElement>>;
19
+ export default Select;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import MnbSelect from "./Select";
3
+ declare const meta: Meta<typeof MnbSelect>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MnbSelect>;
6
+ export declare const Default: Story;
7
+ export declare const Required: Story;
8
+ export declare const FewOptions: Story;
9
+ export declare const ManyOptions: Story;
10
+ export declare const LongOptionText: Story;
11
+ export declare const SingleOption: Story;
12
+ export declare const WithPreselection: Story;
13
+ export declare const Disabled: Story;
14
+ export declare const WithCustomHandler: Story;
@@ -0,0 +1,38 @@
1
+ import React from "react";
2
+ export interface StatusTimelineStep {
3
+ label: string;
4
+ /**
5
+ * Optional custom color for this step's circle.
6
+ * If not provided, defaultColor / activeColor will be used.
7
+ */
8
+ color?: string;
9
+ }
10
+ export interface StatusTimelineProps {
11
+ /**
12
+ * Ordered list of steps in the timeline.
13
+ */
14
+ steps: StatusTimelineStep[];
15
+ /**
16
+ * Zero-based index of the current/active step.
17
+ */
18
+ activeStepIndex: number;
19
+ /**
20
+ * Diameter of the circles in pixels.
21
+ */
22
+ circleSize?: number;
23
+ /**
24
+ * Default color for circles and connecting line.
25
+ */
26
+ defaultColor?: string;
27
+ /**
28
+ * Color of the active step's circle.
29
+ * Falls back to step.color or defaultColor when not set.
30
+ */
31
+ activeColor?: string;
32
+ /**
33
+ * Length of the line between circles in pixels.
34
+ */
35
+ lineLength?: number;
36
+ }
37
+ declare const StatusTimeline: React.FC<StatusTimelineProps>;
38
+ export default StatusTimeline;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import StatusTimeline from "./StatusTimeline";
3
+ declare const meta: Meta<typeof StatusTimeline>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof StatusTimeline>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomColors: Story;
@@ -0,0 +1,3 @@
1
+ export { default } from './StatusTimeline';
2
+ export { default as StatusTimeline } from './StatusTimeline';
3
+ export type { StatusTimelineProps, StatusTimelineStep } from './StatusTimeline';