@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,58 @@
1
+ import React from 'react';
2
+ interface FieldsetLegendProps {
3
+ /** The title/legend text for the fieldset */
4
+ title?: string;
5
+ /** The content inside the fieldset */
6
+ children: React.ReactNode;
7
+ /** Additional CSS classes */
8
+ className?: string;
9
+ /** Additional styling props for the fieldset */
10
+ sx?: any;
11
+ /** Additional styling props for the legend */
12
+ legendSx?: any;
13
+ /** Whether to show the legend visually (default: true) */
14
+ showLegend?: boolean;
15
+ /** Custom legend component (optional) */
16
+ legendComponent?: React.ReactNode;
17
+ }
18
+ /**
19
+ * MnbFieldsetLegend Component
20
+ *
21
+ * A reusable fieldset with legend component that provides proper accessibility
22
+ * for screen readers. The fieldset groups related form elements and the legend
23
+ * provides context about what the group contains.
24
+ *
25
+ * @example
26
+ * // Basic usage with title
27
+ * <MnbFieldsetLegend title="Personal Information">
28
+ * <TextField label="Name" />
29
+ * <TextField label="Email" />
30
+ * </MnbFieldsetLegend>
31
+ *
32
+ * @example
33
+ * // Without visual legend (for screen readers only)
34
+ * <MnbFieldsetLegend title="Hidden Legend" showLegend={false}>
35
+ * <TextField label="Name" />
36
+ * </MnbFieldsetLegend>
37
+ *
38
+ * @example
39
+ * // Custom legend component
40
+ * <MnbFieldsetLegend
41
+ * title="Custom Legend"
42
+ * legendComponent={<Typography variant="h6">Custom Legend</Typography>}
43
+ * >
44
+ * <TextField label="Name" />
45
+ * </MnbFieldsetLegend>
46
+ *
47
+ * @example
48
+ * // With custom styling
49
+ * <MnbFieldsetLegend
50
+ * title="Styled Fieldset"
51
+ * sx={{ border: '2px solid #ccc', padding: 2 }}
52
+ * legendSx={{ color: 'primary.main' }}
53
+ * >
54
+ * <TextField label="Name" />
55
+ * </MnbFieldsetLegend>
56
+ */
57
+ declare const MnbFieldsetLegend: React.FC<FieldsetLegendProps>;
58
+ export default MnbFieldsetLegend;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ /**
3
+ * @deprecated This component is deprecated. Use FileUpload2 instead.
4
+ * FileUpload2 provides better support for both client-side and server-side files
5
+ * with the IFile interface, improved validation, and better accessibility.
6
+ *
7
+ * Migration guide:
8
+ * - Replace FileUpload with FileUpload2
9
+ * - Change File[] to IFile[] in your state
10
+ * - Use convertFileToIFile() helper to convert native File objects
11
+ */
12
+ interface IFileUploadProps {
13
+ openModal: boolean;
14
+ toggleModal: (modalState: boolean) => void;
15
+ selectedFiles: File[];
16
+ handleSetSelectedFiles: (files: File[]) => void;
17
+ maxFileSizeMB?: number;
18
+ multipleFiles?: boolean;
19
+ accept?: string | string[];
20
+ customHelperText?: string;
21
+ }
22
+ declare const FileUpload: React.FC<IFileUploadProps>;
23
+ export default FileUpload;
@@ -0,0 +1,16 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MnbFileUpload from './FileUpload';
3
+ import MnbFileUpload2 from './FileUpload2';
4
+ declare const meta: Meta<typeof MnbFileUpload>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof MnbFileUpload>;
7
+ type Story2 = StoryObj<typeof MnbFileUpload2>;
8
+ export declare const Default: Story;
9
+ export declare const SingleFileUpload: Story;
10
+ export declare const LargeSizeLimit: Story;
11
+ export declare const SmallSizeLimit: Story;
12
+ export declare const PrefilledFiles: Story;
13
+ export declare const ContractDocuments: Story;
14
+ export declare const AlwaysOpen: Story;
15
+ export declare const MaxFilesLimit: Story2;
16
+ export declare const MaxTotalSizeLimit: Story2;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { IFile } from './types';
3
+ interface IFileUploadProps {
4
+ openModal: boolean;
5
+ toggleModal: (modalState: boolean) => void;
6
+ selectedFiles: IFile[];
7
+ handleSetSelectedFiles: (files: IFile[]) => void;
8
+ maxFileSizeMB?: number;
9
+ multipleFiles?: boolean;
10
+ maxFiles?: number;
11
+ allFilesMaxSizeMB?: number;
12
+ maxFilesExceededMessage?: string;
13
+ allFilesMaxSizeExceededMessage?: string;
14
+ accept?: string | string[];
15
+ showAlreadyUploaded?: boolean;
16
+ }
17
+ declare const FileUpload: React.FC<IFileUploadProps>;
18
+ export default FileUpload;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ /**
3
+ * @deprecated This component is deprecated. Use ShowUploadFiles2 instead.
4
+ * ShowUploadFiles2 provides better support for both client-side and server-side files
5
+ * with the IFile interface, modal confirmation for file removal, and improved accessibility.
6
+ *
7
+ * Migration guide:
8
+ * - Replace ShowUploadFiles with ShowUploadFiles2
9
+ * - Change File[] to IFile[] in your state
10
+ * - Add optional modal configuration props for server-side file removal
11
+ * - Use convertFileToIFile() helper to convert native File objects
12
+ */
13
+ interface ShowUploadFilesProps {
14
+ selectedFiles: File[];
15
+ handleSetSelectedFiles: (files: File[]) => void;
16
+ toggleModal: (modalState: boolean) => void;
17
+ enableDownload?: boolean;
18
+ }
19
+ declare const ShowUploadFiles: React.FC<ShowUploadFilesProps>;
20
+ export default ShowUploadFiles;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { IFile } from './types';
3
+ interface ShowUploadFilesProps {
4
+ selectedFiles: IFile[];
5
+ handleSetSelectedFiles: (files: IFile[]) => void;
6
+ toggleModal: (modalState: boolean) => void;
7
+ enableDownload?: boolean;
8
+ title?: string;
9
+ onDownloadFile?: (file: IFile) => void;
10
+ showRemoveModal?: boolean;
11
+ onRemoveFile?: (file: IFile) => void;
12
+ removeModalTitle?: string;
13
+ removeModalText?: string;
14
+ removeModalAcceptText?: string;
15
+ removeModalCancelText?: string;
16
+ removeModalMaxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
17
+ }
18
+ declare const ShowUploadFiles: React.FC<ShowUploadFilesProps>;
19
+ export default ShowUploadFiles;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ /**
3
+ * @deprecated This component is deprecated. Use UploadField2 instead.
4
+ * UploadField2 provides better support for both client-side and server-side files
5
+ * with the IFile interface, modal confirmation for file removal, and improved accessibility.
6
+ *
7
+ * Migration guide:
8
+ * - Replace UploadField with UploadField2
9
+ * - Change File[] to IFile[] in your state
10
+ * - Add optional modal configuration props for server-side file removal
11
+ * - Use convertFileToIFile() helper to convert native File objects
12
+ */
13
+ interface IUploadField {
14
+ buttonLabel: string;
15
+ selectedFiles: File[];
16
+ isModalOpen: boolean;
17
+ toggleModal: (modalState: boolean) => void;
18
+ handleSetSelectedFiles: (files: File[]) => void;
19
+ showUploadedFiles?: boolean;
20
+ enableDownload?: boolean;
21
+ maxFileSizeMB?: number;
22
+ multipleFiles?: boolean;
23
+ ariaLabel?: string;
24
+ accept?: string | string[];
25
+ customHelperText?: string;
26
+ }
27
+ declare const UploadField: React.FC<IUploadField>;
28
+ export default UploadField;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import UploadField from "./UploadField";
3
+ declare const meta: Meta<typeof UploadField>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof UploadField>;
6
+ export declare const Default: Story;
7
+ export declare const LargeSizeLimit: Story;
8
+ export declare const PrefilledFiles: Story;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { IFile } from './types';
3
+ interface IUploadField2 {
4
+ buttonLabel: string;
5
+ selectedFiles: IFile[];
6
+ isModalOpen: boolean;
7
+ toggleModal: (modalState: boolean) => void;
8
+ handleSetSelectedFiles: (files: IFile[]) => void;
9
+ showUploadedFiles?: boolean;
10
+ enableDownload?: boolean;
11
+ maxFileSizeMB?: number;
12
+ multipleFiles?: boolean;
13
+ maxFiles?: number;
14
+ allFilesMaxSizeMB?: number;
15
+ maxFilesExceededMessage?: string;
16
+ allFilesMaxSizeExceededMessage?: string;
17
+ ariaLabel?: string;
18
+ accept?: string | string[];
19
+ title?: string;
20
+ showAlreadyUploaded?: boolean;
21
+ onDownloadFile?: (file: IFile) => void;
22
+ showRemoveModal?: boolean;
23
+ onRemoveFile?: (file: IFile) => void;
24
+ removeModalTitle?: string;
25
+ removeModalText?: string;
26
+ removeModalAcceptText?: string;
27
+ removeModalCancelText?: string;
28
+ disabled?: boolean;
29
+ showButtonGrid?: boolean;
30
+ hideButton?: boolean;
31
+ }
32
+ declare const UploadField2: React.FC<IUploadField2>;
33
+ export default UploadField2;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import UploadField2 from './UploadField2';
3
+ declare const meta: Meta<typeof UploadField2>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof UploadField2>;
6
+ export declare const Default: Story;
7
+ export declare const HideAlreadyUploadedInModal: Story;
8
+ export declare const WithCustomDownload: Story;
9
+ export declare const WithRemoveConfirmation: Story;
10
+ export declare const SingleFileAndAcceptFilter: Story;
@@ -0,0 +1,8 @@
1
+ export interface IFile {
2
+ localId?: string;
3
+ id?: string;
4
+ fileName: string;
5
+ fileSizeBytes: number;
6
+ contentType: string;
7
+ Content?: File;
8
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { FormControlLabelProps } from '@mui/material/FormControlLabel/FormControlLabel';
3
+ interface IFormControlLabelProps extends FormControlLabelProps {
4
+ underline?: boolean;
5
+ }
6
+ declare const FormControlLabel: React.ComponentType<IFormControlLabelProps>;
7
+ export default FormControlLabel;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import 'cropperjs/dist/cropper.css';
3
+ export interface ImageUploadCropProps {
4
+ /** Current image file */
5
+ value?: File | null;
6
+ /** Current image preview URL (for existing images) */
7
+ previewUrl?: string | null;
8
+ /** Callback when image changes */
9
+ onChange?: (file: File | null, previewUrl: string | null) => void;
10
+ /** Callback when image is removed */
11
+ onRemove?: () => void;
12
+ /** Required aspect ratio (width/height), default 16/9 */
13
+ aspectRatio?: number;
14
+ /** Maximum file size in MB, default 10 */
15
+ maxSizeMB?: number;
16
+ /** Allowed file types, default ['image/jpeg', 'image/png', 'image/gif', 'image/webp'] */
17
+ acceptedTypes?: string[];
18
+ /** Label text */
19
+ label?: string;
20
+ /** Helper text */
21
+ helperText?: string;
22
+ /** Error message */
23
+ error?: string;
24
+ /** Whether field is required */
25
+ required?: boolean;
26
+ /** Disabled state */
27
+ disabled?: boolean;
28
+ /** ARIA describedby */
29
+ 'aria-describedby'?: string;
30
+ /** Custom className */
31
+ className?: string;
32
+ }
33
+ declare const ImageUploadCrop: React.FC<ImageUploadCropProps>;
34
+ export default ImageUploadCrop;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ImageUploadCrop from './ImageUploadCrop';
3
+ declare const meta: Meta<typeof ImageUploadCrop>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ImageUploadCrop>;
6
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ export { default } from './ImageUploadCrop';
2
+ export { default as ImageUploadCrop } from './ImageUploadCrop';
3
+ export type { ImageUploadCropProps } from './ImageUploadCrop';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { TooltipProps } from '@mui/material/Tooltip';
3
+ import { Theme } from '@mui/material/styles';
4
+ import { SvgIconProps } from '@mui/material/SvgIcon';
5
+ interface InfoTooltipIconProps {
6
+ message: string;
7
+ iconColor?: string;
8
+ theme?: Theme;
9
+ iconSize?: number;
10
+ icon?: React.ComponentType<SvgIconProps>;
11
+ tooltipFontSize?: number;
12
+ tooltipFontColor?: string;
13
+ tooltipBackgroundColor?: string;
14
+ placement?: TooltipProps['placement'];
15
+ tabIndex?: number;
16
+ }
17
+ declare const InfoTooltipIcon: React.FC<InfoTooltipIconProps>;
18
+ export default InfoTooltipIcon;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import InfoTooltipIcon from "./InfoTooltipIcon";
3
+ declare const meta: Meta<typeof InfoTooltipIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof InfoTooltipIcon>;
6
+ export declare const Default: Story;
7
+ export declare const DifferentSizes: Story;
@@ -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;