@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,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';
@@ -0,0 +1,27 @@
1
+ export declare enum IconType {
2
+ Phone = 0,
3
+ Calendar = 1,
4
+ ArrowRight = 2,
5
+ ArrowRightCircle01 = 3,
6
+ ArrowLeftCircle01 = 4,
7
+ ArrowRightCircle = 5,
8
+ ArrowLeftCircle = 6,
9
+ ArrowDownCircle = 7,
10
+ Clock = 8,
11
+ LocationPin = 9,
12
+ EnvelopeAt = 10,
13
+ Check = 11,
14
+ SquareUnchecked = 12,
15
+ SquareChecked = 13
16
+ }
17
+ export interface SvgIconProps {
18
+ type: IconType;
19
+ width?: number;
20
+ height?: number;
21
+ className?: string;
22
+ fill?: string;
23
+ onClick?: () => void;
24
+ style?: any;
25
+ }
26
+ declare const SvgIcon: ({ type, width, height, className, fill, onClick, style }: SvgIconProps) => import("react/jsx-runtime").JSX.Element | null;
27
+ export default SvgIcon;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SvgIcon from './SvgIcon';
3
+ declare const meta: Meta<typeof SvgIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SvgIcon>;
6
+ export declare const AllIconTypes: Story;
7
+ export declare const Default: Story;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ export interface MyTextFieldProps extends Omit<TextFieldProps, 'variant'> {
4
+ }
5
+ declare const TextField: React.ForwardRefExoticComponent<(Omit<import("@mui/material").FilledTextFieldProps, "ref"> | Omit<import("@mui/material").StandardTextFieldProps, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps, "ref">) & React.RefAttributes<any>>;
6
+ export default TextField;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import MnbTextField from "./TextField";
3
+ declare const meta: Meta<typeof MnbTextField>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MnbTextField>;
6
+ export declare const Default: Story;
7
+ export declare const WithValue: Story;
8
+ export declare const Required: Story;
9
+ export declare const WithError: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const Multiline: Story;
12
+ export declare const Password: Story;
13
+ export declare const WithLongLabel: Story;
14
+ export declare const WithCustomHandler: Story;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Theme } from "@mui/material";
3
+ import { ThemeProviderProps } from "@mui/material/styles/ThemeProvider";
4
+ interface ThemeWrapperProps extends Omit<ThemeProviderProps, 'theme'> {
5
+ children: React.ReactNode;
6
+ theme?: Theme;
7
+ }
8
+ declare const ThemeWrapper: React.FC<ThemeWrapperProps>;
9
+ export default ThemeWrapper;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type UsercentricsProps = {
3
+ serviceId: string;
4
+ headingText?: React.ReactNode | string;
5
+ descriptionText?: React.ReactNode | string;
6
+ };
7
+ export declare const UsercentricsAllowScreen: React.FC<UsercentricsProps>;
8
+ export {};
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ declare module '@mui/material/styles' {
3
+ interface Palette {
4
+ primaryHover?: Palette['primary'];
5
+ focus?: Palette['primary'];
6
+ }
7
+ }
8
+ export type NavigationItem = {
9
+ title?: string;
10
+ label?: string;
11
+ isSubStep?: boolean;
12
+ active?: boolean;
13
+ index: number;
14
+ tooltip?: string;
15
+ showActiveStepLabel?: boolean;
16
+ activeStepLabelColor?: string;
17
+ onStepClick?: (step: number) => void;
18
+ disabled?: boolean;
19
+ totalSteps?: number;
20
+ showActiveStepUnderline?: boolean;
21
+ showActiveStepBoldText?: boolean;
22
+ showActiveStepElevation?: boolean;
23
+ activeStepAriaLabel?: string;
24
+ };
25
+ interface INavigateItemProps extends NavigationItem {
26
+ }
27
+ declare const NavigateItem: React.FC<INavigateItemProps>;
28
+ export default NavigateItem;
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { IWizardProps } from './Wizard.types';
3
+ /**
4
+ * WCAG 2.1 AA Compliant Wizard Component
5
+ *
6
+ * Provides comprehensive accessibility features:
7
+ * - Proper ARIA attributes for screen readers
8
+ * - Keyboard navigation support (Tab, Enter, Space, Arrow keys)
9
+ * - Semantic HTML structure
10
+ * - Screen reader announcements
11
+ * - Focus management
12
+ * - High contrast support
13
+ * - Reduced motion support
14
+ *
15
+ * @example
16
+ * // Default WCAG-compliant wizard
17
+ * <Wizard items={wizardSteps} currentStep={currentStep} onStepClick={handleStepClick} />
18
+ *
19
+ * @example
20
+ * // Custom accessibility options
21
+ * <Wizard
22
+ * items={wizardSteps}
23
+ * currentStep={currentStep}
24
+ * showActiveStepUnderline={false}
25
+ * showActiveStepOuterRing={false}
26
+ * onStepClick={handleStepClick}
27
+ * />
28
+ */
29
+ declare const Wizard: React.FC<IWizardProps>;
30
+ export default Wizard;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Wizard from "./Wizard";
3
+ declare const meta: Meta<typeof Wizard>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Wizard>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomOptions: Story;
@@ -0,0 +1,17 @@
1
+ import { NavigationItem } from './NavigateItem';
2
+ export interface IWizardProps {
3
+ items: NavigationItem[];
4
+ currentStep: number;
5
+ color?: string;
6
+ showActiveStepLabel?: boolean;
7
+ activeStepLabelColor?: string;
8
+ onStepClick?: (step: number) => void;
9
+ /** Show underline for active step text (default: true) */
10
+ showActiveStepUnderline?: boolean;
11
+ /** Show bold text for active step (default: true) */
12
+ showActiveStepBoldText?: boolean;
13
+ /** Show elevated/shadow effect for active step (default: false) */
14
+ showActiveStepElevation?: boolean;
15
+ /** Custom ARIA label for active step (for screen readers) */
16
+ activeStepAriaLabel?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export declare function WizardAccessibilityTest(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function WizardTest(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,42 @@
1
+ declare global {
2
+ interface Window {
3
+ UC_UI: {
4
+ acceptAllConsents: () => void;
5
+ acceptService: (serviceId: string, explicit?: any) => void;
6
+ acceptServices: (serviceIds: string[], explicit?: any) => void;
7
+ areAllConsentsAccepted: () => boolean;
8
+ clearStorage: () => void;
9
+ closeCMP: () => Promise<void>;
10
+ denyAllConsents: () => void;
11
+ denyAndCloseCcpa: () => Promise<void>;
12
+ enableScriptsForServicesWithConsent: () => void;
13
+ getActiveLanguage: () => string;
14
+ getControllerId: () => string;
15
+ getServicesBaseInfo: () => any[];
16
+ getServicesFullInfo: () => any[];
17
+ getSettingsCore: () => any;
18
+ getSettingsLabels: () => any;
19
+ getSettingsUI: () => any;
20
+ getTCFDisclosedVendorsSegmentString: () => string;
21
+ getTCFVendors: () => any;
22
+ getThirdPartyCount: () => number;
23
+ injectTCString: (tcString: string) => Promise<boolean>;
24
+ isConsentRequired: () => boolean;
25
+ isInitialized: () => boolean;
26
+ rejectService: (serviceId: string, explicit?: any) => void;
27
+ rejectServices: (serviceIds: string[], explicit?: any) => void;
28
+ restartCMP: () => Promise<void>;
29
+ restartEmbeddings: () => Promise<void>;
30
+ restoreUserSession: (session: any) => Promise<void>;
31
+ showFirstLayer: () => Promise<void>;
32
+ showSecondLayer: (options?: any) => void;
33
+ updateChoicesForTcf: (choices: any, tcfData: any) => Promise<void>;
34
+ updateLanguage: (language: string) => Promise<void>;
35
+ };
36
+ }
37
+ }
38
+ export declare const useUserCentrics: (serviceId: string, bypassCheck?: boolean) => {
39
+ consentStatus: boolean | null;
40
+ isLoaded: boolean;
41
+ checkServiceStatus: () => Promise<boolean | null>;
42
+ };