asma-core-ui 1.9.4 → 2.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.
- package/dist/asma-core-ui.es.js +38808 -36447
- package/dist/index.d.ts +1 -12
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +3 -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/Icons.d.ts +5 -0
- package/dist/src/components/data-display/icons/Icons.stories.d.ts +18 -0
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +3 -0
- package/dist/{components/data-display → src/components/data-display/tooltip}/index.d.ts +0 -1
- package/dist/src/components/data-display/typography/Typography.stories.d.ts +10 -0
- package/dist/src/components/data-grid/StyledDataGrid.d.ts +3 -0
- package/dist/src/components/data-grid/StyledDataGrid.stories.d.ts +55 -0
- package/dist/src/components/data-grid/StyledGridActionsCellItem.d.ts +3 -0
- package/dist/{components → src/components}/data-grid/components/columnActions.d.ts +1 -1
- package/dist/src/components/feedback/alert/StyledAlert.d.ts +3 -0
- package/dist/src/components/feedback/alert/StyledAlert.stories.d.ts +15 -0
- package/dist/src/components/feedback/alert/StyledAlertTitle.d.ts +3 -0
- package/dist/{components/feedback → src/components/feedback/alert}/index.d.ts +0 -1
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +7 -0
- package/dist/src/components/feedback/dialog/StyledDialog.stories.d.ts +18 -0
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +3 -0
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +3 -0
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +3 -0
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +3 -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 +3 -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 +3 -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 +3 -0
- package/dist/src/components/inputs/input/index.d.ts +1 -0
- package/dist/src/components/inputs/select/StyledSelect.d.ts +3 -0
- package/dist/src/components/inputs/select/StyledSelect.stories.d.ts +20 -0
- package/dist/{components/Select → src/components/inputs/select}/StyledSelectItem.d.ts +1 -1
- package/dist/src/components/inputs/text-field/StyledTextField.d.ts +7 -0
- package/dist/src/components/inputs/text-field/StyledTextField.stories.d.ts +14 -0
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +3 -0
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +3 -0
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +3 -0
- package/dist/src/components/miscellaneous/StyledFormLabel.d.ts +3 -0
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +3 -0
- package/dist/src/components/miscellaneous/StyledStack.d.ts +3 -0
- package/dist/src/index.d.ts +22 -0
- package/dist/src/providers/ThemeProvider.d.ts +3 -0
- package/dist/src/stories/Button.d.ts +27 -0
- package/dist/src/stories/Button.stories.d.ts +18 -0
- package/dist/src/stories/Header.d.ts +11 -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/style.css +1 -1
- package/dist/tailwind.config.d.ts +175 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +50 -65
- package/tw-configs/twConfigs.json +107 -0
- package/dist/components/Dialog/StyledDialog.d.ts +0 -6
- package/dist/components/Dialog/StyledDialogActions.d.ts +0 -2
- package/dist/components/Dialog/StyledDialogContent.d.ts +0 -2
- package/dist/components/Dialog/StyledDialogTitle.d.ts +0 -20
- package/dist/components/Select/StyledSelect.d.ts +0 -2
- package/dist/components/data-display/StyledBadge.d.ts +0 -36
- package/dist/components/data-display/StyledTooltip.d.ts +0 -2
- package/dist/components/data-grid/StyledDataGrid.d.ts +0 -2
- package/dist/components/data-grid/StyledGridActionsCellItem.d.ts +0 -3
- package/dist/components/feedback/StyledAlert.d.ts +0 -2
- package/dist/components/feedback/StyledAlertTitle.d.ts +0 -2
- package/dist/components/feedback/StyledSnackbar.d.ts +0 -2
- package/dist/components/form-group/index.d.ts +0 -1
- package/dist/components/inputs/StyledButton.d.ts +0 -34
- package/dist/components/inputs/StyledCheckbox.d.ts +0 -2
- package/dist/components/inputs/StyledFormControlLabel.d.ts +0 -2
- package/dist/components/inputs/StyledFormHelperText.d.ts +0 -15
- package/dist/components/inputs/StyledFormLabel.d.ts +0 -4
- package/dist/components/inputs/StyledInput.d.ts +0 -2
- package/dist/components/inputs/StyledInputLabel.d.ts +0 -18
- package/dist/components/inputs/StyledSwitch.d.ts +0 -2
- package/dist/components/inputs/StyledTextField.d.ts +0 -6
- package/dist/components/inputs/index.d.ts +0 -9
- package/dist/providers/ThemeProvider.d.ts +0 -3
- package/tailwind-configs/twAnimation.ts +0 -43
- package/tailwind-configs/twBoxShadow.ts +0 -3
- package/tailwind-configs/twColors.ts +0 -80
- package/tailwind-configs/twConfigs.ts +0 -10
- /package/dist/{components → src/components/data-display}/icons/IconTemplate.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/Icons.types.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/archive-icon/ArchiveIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/archive-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/assignment/AssignmentIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/assignment/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/assignment-outline-icon/AssignmentOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/assignment-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/bell-icon/BellIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/bell-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/bell-outline-icon/BellOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/bell-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/calendar-icon/CalendarIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/calendar-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/calendar-range-icon/CalendarIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/calendar-range-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/check-fact-outline-icon/CheckFactOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/check-fact-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/check-icon/CheckIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/check-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/check-outline-icon/CheckOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/check-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/checkbox-checked-icon/CheckBoxCheckedIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/checkbox-checked-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-double-left-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-double-right-icon/ChevronDoubleRightIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-double-right-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-down-icon/ChevronDownIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-down-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-left-icon/ChevronLeftIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-left-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-right-icon/ChevronRightIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-right-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-up-icon/ChevronUpIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/chevron-up-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/close-icon/CloseIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/close-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/dashboard-view-icon/DashboardViewIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/dashboard-view-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/dashboard-view-outline-icon/DashboardViewOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/dashboard-view-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/dots-vertical-icon/DotsVerticalIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/dots-vertical-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/download-icon/DownloadIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/download-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/drop-down-icon/DropDownIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/drop-down-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/drop-up-icon/DropUpIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/drop-up-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/find-replace-icon/FindReplaceIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/find-replace-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/find-replace-people-icon/FindReplacePeopleIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/find-replace-people-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/hamburger-icon/HamburgerIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/hamburger-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/list-numbered-icon/ListNumberedIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/list-numbered-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/loading-icon/LoadingIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/loading-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/message-processing-icon/MessageProcessingIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/message-processing-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/message-processing-outline-icon/MessageProcessingOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/message-processing-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/pdf-icon/PdfIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/pdf-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/people-icon/PeopleIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/people-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/people-outline-icon/PeopleOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/people-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/perm-media-icon/PermMediaIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/perm-media-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/perm-media-outline-icon/PermMediaOutline.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/perm-media-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/person-icon/PersonIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/person-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/person-outline-icon/PersonOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/person-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/qnr-icon/QnrIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/qnr-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/report-box-icon/ReportboxIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/report-box-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/report-box-outline-icon/ReportboxOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/report-box-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/search-icon/SearchIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/search-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/settings-icon/SettingsIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/settings-icon/index.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/settings-outline-icon/SettingsOutlineIcon.d.ts +0 -0
- /package/dist/{components → src/components/data-display}/icons/settings-outline-icon/index.d.ts +0 -0
- /package/dist/{components → src/components}/data-grid/components/ColumnFormControlItem.d.ts +0 -0
- /package/dist/{components → src/components}/data-grid/components/ColumnsMenu.d.ts +0 -0
- /package/dist/{components → src/components}/data-grid/index.d.ts +0 -0
- /package/dist/{components → src/components}/data-grid/types.d.ts +0 -0
- /package/dist/{components → src/components}/data-grid/x-data-grid-types.d.ts +0 -0
- /package/dist/{components/Dialog → src/components/feedback/dialog}/index.d.ts +0 -0
- /package/dist/{components/Select → src/components/inputs/select}/index.d.ts +0 -0
- /package/dist/{components/form-group → src/components/miscellaneous}/StyledFormGroup.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/index.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/tokenOptimizer.helper.d.ts +0 -0
- /package/dist/{interfaces → src/interfaces}/index.d.ts +0 -0
- /package/dist/{providers → src/providers}/index.d.ts +0 -0
- /package/dist/{styles → src/styles}/fretex-tokens/index.d.ts +0 -0
- /package/dist/{styles → src/styles}/greenish-tokens/index.d.ts +0 -0
- /package/dist/{styles → src/styles}/tokens/index.d.ts +0 -0
- /package/dist/{theme → src/theme}/customMuiColors.d.ts +0 -0
- /package/dist/{theme → src/theme}/index.d.ts +0 -0
- /package/dist/{theme → src/theme}/theme.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './components/icons';
|
|
3
|
-
export * from './components/data-grid';
|
|
4
|
-
export * from './components/Dialog';
|
|
5
|
-
export * from './components/feedback';
|
|
6
|
-
export * from './components/inputs';
|
|
7
|
-
export * from './components/Select';
|
|
8
|
-
export * from './components/form-group';
|
|
9
|
-
export * from './helpers';
|
|
10
|
-
export * from './theme';
|
|
11
|
-
export * from './providers';
|
|
12
|
-
export * from './interfaces';
|
|
1
|
+
export * from './src/index'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ color, ...props }: import("@mui/material").BadgeProps) => import("react").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
args: {};
|
|
7
|
+
argTypes: {
|
|
8
|
+
children: {
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const BasicBadge: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StyledBadge';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<{
|
|
6
|
+
height?: number | undefined;
|
|
7
|
+
width?: number | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TypographyTypeMap<{}, "span">>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Typography: Story;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("./types").IBaseStyledDataGrid) => import("react").JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
rows: {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
context: string;
|
|
14
|
+
deadline: string;
|
|
15
|
+
}[];
|
|
16
|
+
columns: ({
|
|
17
|
+
field: string;
|
|
18
|
+
headerName: string;
|
|
19
|
+
renderCell: () => import("react").JSX.Element;
|
|
20
|
+
width: number;
|
|
21
|
+
sortable: false;
|
|
22
|
+
flex?: undefined;
|
|
23
|
+
renderHeader?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
field: string;
|
|
26
|
+
headerName: string;
|
|
27
|
+
flex: number;
|
|
28
|
+
renderCell?: undefined;
|
|
29
|
+
width?: undefined;
|
|
30
|
+
sortable?: undefined;
|
|
31
|
+
renderHeader?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
field: string;
|
|
34
|
+
headerName: string;
|
|
35
|
+
renderHeader: () => import("react").JSX.Element;
|
|
36
|
+
renderCell: () => import("react").JSX.Element;
|
|
37
|
+
sortable: false;
|
|
38
|
+
width?: undefined;
|
|
39
|
+
flex?: undefined;
|
|
40
|
+
})[];
|
|
41
|
+
fixedColumns: string[];
|
|
42
|
+
checkboxSelection: true;
|
|
43
|
+
disableColumnMenu: true;
|
|
44
|
+
disableColumnSelector: true;
|
|
45
|
+
disableColumnFilter: true;
|
|
46
|
+
disableDensitySelector: true;
|
|
47
|
+
slots: {
|
|
48
|
+
columnSortedAscendingIcon: () => import("react").JSX.Element;
|
|
49
|
+
columnSortedDescendingIcon: () => import("react").JSX.Element;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export default meta;
|
|
54
|
+
type Story = StoryObj<typeof meta>;
|
|
55
|
+
export declare const DataGrid: Story;
|
|
@@ -8,6 +8,6 @@ export declare const columnActions: (apiRef: React.MutableRefObject<GridApiCommu
|
|
|
8
8
|
disableColumnMenu: boolean;
|
|
9
9
|
sortable: boolean;
|
|
10
10
|
type: string;
|
|
11
|
-
renderHeader: () => JSX.Element;
|
|
11
|
+
renderHeader: () => import("react").JSX.Element;
|
|
12
12
|
getActions: (params: GridRowParams<any>) => ReactElement<GridActionsCellItemProps, string | JSXElementConstructor<any>>[];
|
|
13
13
|
};
|
|
@@ -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) => import("react").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,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DialogProps } from '@mui/material/Dialog';
|
|
3
|
+
export interface IStyledDialogProps extends DialogProps {
|
|
4
|
+
onCloseText?: string;
|
|
5
|
+
showCloseIcon?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const StyledDialog: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: IStyledDialogProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from '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) => React.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: () => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ children, ...props }: import("@mui/material").SnackbarProps) => React.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: () => React.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) => import("react").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) => import("react").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,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { StyledSelect } from './StyledSelect';
|
|
4
|
+
import type { SelectProps } from '@mui/material';
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: (props: SelectProps<unknown>) => import("react").JSX.Element;
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
children: {
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
args: {
|
|
15
|
+
children: import("react").JSX.Element[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof StyledSelect>;
|
|
20
|
+
export declare const Select: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type FormControlProps, type TextFieldProps } from '@mui/material';
|
|
3
|
+
type StyledTextFieldProps = TextFieldProps & {
|
|
4
|
+
FormControlProps?: FormControlProps;
|
|
5
|
+
};
|
|
6
|
+
export declare const StyledTextField: ({ FormControlProps, InputLabelProps, label, size, ...props }: StyledTextFieldProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from '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
|
+
}) => React.JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {};
|
|
9
|
+
args: {
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const TextField: () => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
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/miscellaneous/StyledFormControl';
|
|
17
|
+
export * from './components/miscellaneous/StyledFormControlLabel';
|
|
18
|
+
export * from './components/miscellaneous/StyledFormHelperText';
|
|
19
|
+
export * from './components/miscellaneous/StyledFormLabel';
|
|
20
|
+
export * from './components/miscellaneous/StyledInputLabel';
|
|
21
|
+
export * from './components/miscellaneous/StyledStack';
|
|
22
|
+
export * from './components/miscellaneous/StyledFormGroup';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* Is this the principal call to action on the page?
|
|
5
|
+
*/
|
|
6
|
+
primary?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* What background color to use
|
|
9
|
+
*/
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* How large should the button be?
|
|
13
|
+
*/
|
|
14
|
+
size?: 'small' | 'medium' | 'large';
|
|
15
|
+
/**
|
|
16
|
+
* Button contents
|
|
17
|
+
*/
|
|
18
|
+
label: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional click handler
|
|
21
|
+
*/
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Primary UI component for user interaction
|
|
26
|
+
*/
|
|
27
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react").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) => import("react").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,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type User = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export interface HeaderProps {
|
|
6
|
+
user?: User;
|
|
7
|
+
onLogin: () => void;
|
|
8
|
+
onLogout: () => void;
|
|
9
|
+
onCreateAccount: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react").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) => import("react").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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<{}>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const LoggedOut: Story;
|
|
13
|
+
export declare const LoggedIn: Story;
|