asma-core-ui 2.6.5 → 2.6.6
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.
- package/dist/asma-core-ui.es.js +42591 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +2 -0
- package/dist/src/components/data-display/badge/StyledBadge.stories.d.ts +14 -0
- package/dist/src/components/data-display/badge/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/IconTemplate.d.ts +3 -0
- package/dist/src/components/data-display/icons/Icons.d.ts +5 -0
- package/dist/src/components/data-display/icons/Icons.stories.d.ts +18 -0
- package/dist/src/components/data-display/icons/Icons.types.d.ts +12 -0
- package/dist/src/components/data-display/icons/archive-icon/ArchiveIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/archive-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/assignment/AssignmentIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/assignment/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/assignment-outline-icon/AssignmentOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/assignment-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/bell-icon/BellIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/bell-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/bell-outline-icon/BellOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/bell-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/calendar-blank-outline-icon/CalendarBlankOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/calendar-blank-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/calendar-icon/CalendarIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/calendar-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/calendar-range-icon/CalendarIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/calendar-range-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/check-fact-outline-icon/CheckFactOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/check-fact-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/check-icon/CheckIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/check-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/check-outline-icon/CheckOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/check-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/checkbox-checked-icon/CheckBoxCheckedIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/checkbox-checked-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/chevron-double-left-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/chevron-double-right-icon/ChevronDoubleRightIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/chevron-double-right-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/chevron-down-icon/ChevronDownIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/chevron-down-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/chevron-left-icon/ChevronLeftIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/chevron-left-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/chevron-right-icon/ChevronRightIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/chevron-right-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/chevron-up-icon/ChevronUpIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/chevron-up-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/clock-outline-icon/ClockOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/clock-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/close-icon/CloseIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/close-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/dashboard-view-icon/DashboardViewIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/dashboard-view-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/dashboard-view-outline-icon/DashboardViewOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/dashboard-view-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/dots-vertical-icon/DotsVerticalIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/dots-vertical-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/download-icon/DownloadIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/download-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/drop-down-icon/DropDownIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/drop-down-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/drop-up-icon/DropUpIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/drop-up-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/find-replace-icon/FindReplaceIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/find-replace-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/find-replace-people-icon/FindReplacePeopleIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/find-replace-people-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/hamburger-icon/HamburgerIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/hamburger-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/index.d.ts +44 -0
- package/dist/src/components/data-display/icons/list-numbered-icon/ListNumberedIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/list-numbered-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/loading-icon/LoadingIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/loading-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/message-processing-icon/MessageProcessingIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/message-processing-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/message-processing-outline-icon/MessageProcessingOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/message-processing-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/pdf-icon/PdfIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/pdf-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/people-icon/PeopleIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/people-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/people-outline-icon/PeopleOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/people-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/perm-media-icon/PermMediaIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/perm-media-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/perm-media-outline-icon/PermMediaOutline.d.ts +3 -0
- package/dist/src/components/data-display/icons/perm-media-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/person-icon/PersonIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/person-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/person-outline-icon/PersonOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/person-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/qnr-icon/QnrIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/qnr-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/report-box-icon/ReportBoxIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/report-box-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/report-box-outline-icon/ReportBoxOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/report-box-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/search-icon/SearchIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/search-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/settings-icon/SettingsIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/settings-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/icons/settings-outline-icon/SettingsOutlineIcon.d.ts +3 -0
- package/dist/src/components/data-display/icons/settings-outline-icon/index.d.ts +1 -0
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +2 -0
- package/dist/src/components/data-display/tooltip/index.d.ts +1 -0
- package/dist/src/components/data-display/typography/Typography.stories.d.ts +10 -0
- package/dist/src/components/data-grid/StyledDataGrid.d.ts +8 -0
- package/dist/src/components/data-grid/StyledDataGrid.stories.d.ts +73 -0
- package/dist/src/components/data-grid/StyledGridActionsCellItem.d.ts +3 -0
- package/dist/src/components/data-grid/components/ColumnFormControlItem.d.ts +6 -0
- package/dist/src/components/data-grid/components/ColumnsMenu.d.ts +7 -0
- package/dist/src/components/data-grid/components/columnActions.d.ts +13 -0
- package/dist/src/components/data-grid/index.d.ts +3 -0
- package/dist/src/components/data-grid/types.d.ts +9 -0
- package/dist/src/components/data-grid/x-data-grid-types.d.ts +1 -0
- package/dist/src/components/feedback/alert/StyledAlert.d.ts +2 -0
- package/dist/src/components/feedback/alert/StyledAlert.stories.d.ts +15 -0
- package/dist/src/components/feedback/alert/StyledAlertTitle.d.ts +2 -0
- package/dist/src/components/feedback/alert/index.d.ts +2 -0
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +6 -0
- package/dist/src/components/feedback/dialog/StyledDialog.stories.d.ts +18 -0
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +2 -0
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +2 -0
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +2 -0
- package/dist/src/components/feedback/dialog/index.d.ts +4 -0
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +2 -0
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.stories.d.ts +13 -0
- package/dist/src/components/feedback/snack-bar/index.d.ts +1 -0
- package/dist/src/components/inputs/button/StyledButton.d.ts +2 -0
- package/dist/src/components/inputs/button/StyledButton.stories.d.ts +15 -0
- package/dist/src/components/inputs/button/index.d.ts +1 -0
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +2 -0
- package/dist/src/components/inputs/checkbox/StyledCheckbox.stories.d.ts +12 -0
- package/dist/src/components/inputs/checkbox/index.d.ts +1 -0
- package/dist/src/components/inputs/input/StyledInput.d.ts +2 -0
- package/dist/src/components/inputs/input/index.d.ts +1 -0
- package/dist/src/components/inputs/rich-input/RichInput.d.ts +12 -0
- package/dist/src/components/inputs/rich-input/RichInput.stories.d.ts +22 -0
- package/dist/src/components/inputs/rich-input/index.d.ts +1 -0
- package/dist/src/components/inputs/select/StyledSelect.d.ts +2 -0
- package/dist/src/components/inputs/select/StyledSelect.stories.d.ts +19 -0
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -0
- package/dist/src/components/inputs/select/index.d.ts +2 -0
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +2 -0
- package/dist/src/components/inputs/slider/StyledSlider.stories.d.ts +19 -0
- package/dist/src/components/inputs/slider/index.d.ts +1 -0
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +2 -0
- package/dist/src/components/inputs/switch/StyledSwitch.stories.d.ts +10 -0
- package/dist/src/components/inputs/switch/index.d.ts +1 -0
- package/dist/src/components/inputs/text-field/StyledTextField.d.ts +6 -0
- package/dist/src/components/inputs/text-field/StyledTextField.stories.d.ts +14 -0
- package/dist/src/components/inputs/text-field/index.d.ts +1 -0
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +2 -0
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +2 -0
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +3 -0
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +2 -0
- package/dist/src/components/miscellaneous/StyledFormLabel.d.ts +2 -0
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +2 -0
- package/dist/src/components/miscellaneous/StyledStack.d.ts +2 -0
- package/dist/src/components/surfaces/accordion/StyledAccordion.d.ts +2 -0
- package/dist/src/components/surfaces/accordion/StyledAccordion.stories.d.ts +13 -0
- package/dist/src/components/surfaces/accordion/StyledAccordionDetails.d.ts +2 -0
- package/dist/src/components/surfaces/accordion/StyledAccordionSummary.d.ts +2 -0
- package/dist/src/components/surfaces/accordion/index.d.ts +3 -0
- package/dist/src/helpers/index.d.ts +1 -0
- package/dist/src/helpers/tokenOptimizer.helper.d.ts +1 -0
- package/dist/src/index.d.ts +25 -0
- package/dist/src/interfaces/index.d.ts +5 -0
- package/dist/src/providers/ThemeProvider.d.ts +2 -0
- package/dist/src/providers/index.d.ts +3 -0
- package/dist/src/stories/Button.d.ts +26 -0
- package/dist/src/stories/Button.stories.d.ts +18 -0
- package/dist/src/stories/Header.d.ts +10 -0
- package/dist/src/stories/Header.stories.d.ts +14 -0
- package/dist/src/stories/Page.d.ts +2 -0
- package/dist/src/stories/Page.stories.d.ts +13 -0
- package/dist/src/styles/fretex-tokens/index.d.ts +4 -0
- package/dist/src/styles/greenish-tokens/index.d.ts +4 -0
- package/dist/src/styles/tokens/index.d.ts +4 -0
- package/dist/src/theme/customMuiColors.d.ts +61 -0
- package/dist/src/theme/index.d.ts +2 -0
- package/dist/src/theme/theme.d.ts +93 -0
- package/dist/style.css +1 -0
- package/dist/tailwind.config.d.ts +178 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +1 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: {
|
|
6
|
+
(props: import("./types").IBaseStyledDataGrid): JSX.Element;
|
|
7
|
+
defaultProps: {
|
|
8
|
+
disableHeaderPin: boolean;
|
|
9
|
+
disableRowActions: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
tags: string[];
|
|
13
|
+
argTypes: {
|
|
14
|
+
disableHeaderPin: {
|
|
15
|
+
control: string;
|
|
16
|
+
defaultValue: boolean;
|
|
17
|
+
};
|
|
18
|
+
disableRowActions: {
|
|
19
|
+
control: string;
|
|
20
|
+
defaultValue: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
args: {
|
|
24
|
+
rows: {
|
|
25
|
+
id: number;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
context: string;
|
|
29
|
+
deadline: string;
|
|
30
|
+
}[];
|
|
31
|
+
columns: ({
|
|
32
|
+
field: string;
|
|
33
|
+
headerName: string;
|
|
34
|
+
renderCell: () => JSX.Element;
|
|
35
|
+
width: number;
|
|
36
|
+
sortable: false;
|
|
37
|
+
flex?: undefined;
|
|
38
|
+
renderHeader?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
field: string;
|
|
41
|
+
headerName: string;
|
|
42
|
+
flex: number;
|
|
43
|
+
renderCell?: undefined;
|
|
44
|
+
width?: undefined;
|
|
45
|
+
sortable?: undefined;
|
|
46
|
+
renderHeader?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
field: string;
|
|
49
|
+
headerName: string;
|
|
50
|
+
renderHeader: () => JSX.Element;
|
|
51
|
+
renderCell: () => JSX.Element;
|
|
52
|
+
sortable: false;
|
|
53
|
+
width?: undefined;
|
|
54
|
+
flex?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
fixedColumns: string[];
|
|
57
|
+
checkboxSelection: true;
|
|
58
|
+
disableColumnMenu: true;
|
|
59
|
+
disableColumnSelector: true;
|
|
60
|
+
disableColumnFilter: true;
|
|
61
|
+
disableDensitySelector: true;
|
|
62
|
+
rowActions: () => JSX.Element[];
|
|
63
|
+
slots: {
|
|
64
|
+
columnSortedAscendingIcon: () => JSX.Element;
|
|
65
|
+
columnSortedDescendingIcon: () => JSX.Element;
|
|
66
|
+
};
|
|
67
|
+
disableHeaderPin: false;
|
|
68
|
+
disableRowActions: false;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export default meta;
|
|
72
|
+
type Story = StoryObj<typeof meta>;
|
|
73
|
+
export declare const DataGrid: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GridApiCommunity } from '@mui/x-data-grid/internals';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export declare const ColumnsMenu: React.FC<{
|
|
4
|
+
columnsMenuTitle: ReactNode;
|
|
5
|
+
apiRef: React.MutableRefObject<GridApiCommunity>;
|
|
6
|
+
fixedColumns?: string[];
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type JSXElementConstructor, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type GridActionsCellItemProps, type GridRowParams } from '@mui/x-data-grid';
|
|
3
|
+
import type { GridApiCommunity } from '@mui/x-data-grid/internals';
|
|
4
|
+
export declare const columnActions: (apiRef: React.MutableRefObject<GridApiCommunity>, rowActions: (params: GridRowParams<any>) => ReactElement<GridActionsCellItemProps, string | JSXElementConstructor<any>>[], columnsMenuTitle: ReactNode, fixedColumns?: string[]) => {
|
|
5
|
+
field: string;
|
|
6
|
+
headerName: string;
|
|
7
|
+
width: number;
|
|
8
|
+
disableColumnMenu: boolean;
|
|
9
|
+
sortable: boolean;
|
|
10
|
+
type: string;
|
|
11
|
+
renderHeader: () => JSX.Element;
|
|
12
|
+
getActions: (params: GridRowParams<any>) => ReactElement<GridActionsCellItemProps, string | JSXElementConstructor<any>>[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DataGridProps, GridActionsCellItemProps, GridRowParams } from '@mui/x-data-grid';
|
|
2
|
+
import type { JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
3
|
+
export interface IBaseStyledDataGrid extends DataGridProps {
|
|
4
|
+
columnsMenuTitle?: ReactNode;
|
|
5
|
+
disableRowActions?: boolean;
|
|
6
|
+
disableHeaderPin?: boolean;
|
|
7
|
+
fixedColumns?: string[];
|
|
8
|
+
rowActions?: (params: GridRowParams<any>) => ReactElement<GridActionsCellItemProps, string | JSXElementConstructor<any>>[];
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@mui/x-data-grid';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("@mui/material").AlertProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
severity: "success";
|
|
10
|
+
variant: "standard";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DialogProps } from '@mui/material/Dialog';
|
|
2
|
+
export interface IStyledDialogProps extends DialogProps {
|
|
3
|
+
onCloseText?: string;
|
|
4
|
+
showCloseIcon?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const StyledDialog: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: IStyledDialogProps) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: import("./StyledDialog").IStyledDialogProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
title: string;
|
|
10
|
+
open: true;
|
|
11
|
+
fullScreen: false;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Dialog: Story;
|
|
18
|
+
export declare const DialogExample: () => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ children, ...props }: import("@mui/material").SnackbarProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const SnackBar: Story;
|
|
13
|
+
export declare const SnackbarExample: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledSnackbar';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("@mui/material").ButtonProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
children: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Primary: Story;
|
|
15
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("@mui/material").CheckboxProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Checkbox: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledCheckbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledInput';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import ReactQuill from 'react-quill';
|
|
3
|
+
export interface IRichInput extends ReactQuill.ReactQuillProps {
|
|
4
|
+
isRequired?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
is_error?: boolean;
|
|
9
|
+
is_warning?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const RichInput: FC<IRichInput>;
|
|
12
|
+
export { RichInput };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type IRichInput } from './RichInput';
|
|
3
|
+
import type { StoryObj } from '@storybook/react';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import("react").FC<IRichInput>;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {};
|
|
9
|
+
args: {
|
|
10
|
+
placeholder: string;
|
|
11
|
+
value: string;
|
|
12
|
+
isRequired: false;
|
|
13
|
+
disabled: false;
|
|
14
|
+
label: string;
|
|
15
|
+
error: string;
|
|
16
|
+
is_error: false;
|
|
17
|
+
is_warning: false;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
export declare const RichInputExample: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RichInput';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { StyledSelect } from './StyledSelect';
|
|
3
|
+
import type { SelectProps } from '@mui/material';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: SelectProps<unknown>) => JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {
|
|
9
|
+
children: {
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
children: JSX.Element[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof StyledSelect>;
|
|
19
|
+
export declare const Select: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("@mui/material").SliderProps) => JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {};
|
|
7
|
+
args: {
|
|
8
|
+
size: "medium";
|
|
9
|
+
max: number;
|
|
10
|
+
min: number;
|
|
11
|
+
step: number;
|
|
12
|
+
marks: {
|
|
13
|
+
value: number;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export declare const Slider: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledSlider';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("@mui/material").SwitchProps) => JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {};
|
|
7
|
+
args: {};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export declare const Switch: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledSwitch';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FormControlProps, type TextFieldProps } from '@mui/material';
|
|
2
|
+
type StyledTextFieldProps = TextFieldProps & {
|
|
3
|
+
FormControlProps?: FormControlProps;
|
|
4
|
+
};
|
|
5
|
+
export declare const StyledTextField: ({ FormControlProps, InputLabelProps, label, size, ...props }: StyledTextFieldProps) => JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ FormControlProps, InputLabelProps, label, size, ...props }: import("@mui/material").TextFieldProps & {
|
|
5
|
+
FormControlProps?: import("@mui/material").FormControlProps | undefined;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {};
|
|
9
|
+
args: {
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const TextField: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledTextField';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { StyledAccordion } from './StyledAccordion';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: import("@mui/material").AccordionProps) => JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof StyledAccordion>;
|
|
13
|
+
export declare const Accordion: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tokenOptimizer.helper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tokenOptimizer<T>(object: T): T;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './helpers';
|
|
2
|
+
export * from './theme';
|
|
3
|
+
export * from './providers';
|
|
4
|
+
export * from './interfaces';
|
|
5
|
+
export * from './components/data-display/badge';
|
|
6
|
+
export * from './components/data-display/tooltip';
|
|
7
|
+
export * from './components/data-display/icons';
|
|
8
|
+
export * from './components/data-grid';
|
|
9
|
+
export * from './components/feedback/dialog';
|
|
10
|
+
export * from './components/feedback/alert';
|
|
11
|
+
export * from './components/feedback/snack-bar';
|
|
12
|
+
export * from './components/inputs/button';
|
|
13
|
+
export * from './components/inputs/checkbox';
|
|
14
|
+
export * from './components/inputs/input';
|
|
15
|
+
export * from './components/inputs/select';
|
|
16
|
+
export * from './components/inputs/slider';
|
|
17
|
+
export * from './components/inputs/text-field';
|
|
18
|
+
export * from './components/inputs/switch';
|
|
19
|
+
export * from './components/miscellaneous/StyledFormControl';
|
|
20
|
+
export * from './components/miscellaneous/StyledFormControlLabel';
|
|
21
|
+
export * from './components/miscellaneous/StyledFormHelperText';
|
|
22
|
+
export * from './components/miscellaneous/StyledFormLabel';
|
|
23
|
+
export * from './components/miscellaneous/StyledInputLabel';
|
|
24
|
+
export * from './components/miscellaneous/StyledStack';
|
|
25
|
+
export * from './components/miscellaneous/StyledFormGroup';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ButtonProps {
|
|
2
|
+
/**
|
|
3
|
+
* Is this the principal call to action on the page?
|
|
4
|
+
*/
|
|
5
|
+
primary?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* What background color to use
|
|
8
|
+
*/
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
/**
|
|
11
|
+
* How large should the button be?
|
|
12
|
+
*/
|
|
13
|
+
size?: 'small' | 'medium' | 'large';
|
|
14
|
+
/**
|
|
15
|
+
* Button contents
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional click handler
|
|
20
|
+
*/
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Primary UI component for user interaction
|
|
25
|
+
*/
|
|
26
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ primary, size, backgroundColor, label, ...props }: import("./Button").ButtonProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {
|
|
8
|
+
backgroundColor: {
|
|
9
|
+
control: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Primary: Story;
|
|
16
|
+
export declare const Secondary: Story;
|
|
17
|
+
export declare const Large: Story;
|
|
18
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type User = {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export interface HeaderProps {
|
|
5
|
+
user?: User;
|
|
6
|
+
onLogin: () => void;
|
|
7
|
+
onLogout: () => void;
|
|
8
|
+
onCreateAccount: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ user, onLogin, onLogout, onCreateAccount }: import("./Header").HeaderProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const LoggedIn: Story;
|
|
14
|
+
export declare const LoggedOut: Story;
|