Skip to content

Commit 500275c

Browse files
Heather PfeifferHeather Pfeiffer
authored andcommitted
MUITypes added
> > Co-author-by: Zack Vandiver <[email protected]> Co-author-by: Austin Alvarez <[email protected]> Co-author-by: Heather Pfeiffer <HM-Pfeiffer> Co-author-by: Jesse Wowczuk <[email protected]> Co-author-by: Sean Ryan <[email protected]>”
1 parent e4e6446 commit 500275c

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed

app/src/redux/MUITypes.ts

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
2+
import { ButtonProps as MuiButtonProps } from '@mui/material/Button';
3+
import { CardProps as MuiCardProps } from '@mui/material/Card';
4+
import { TypographyProps as MuiTypographyProps } from '@mui/material/Typography';
5+
import { MUIType } from '../interfaces/Interfaces';
6+
import { TroubleshootSharp } from '@mui/icons-material';
7+
8+
interface ButtonSchema {
9+
id: number;
10+
tag: string;
11+
name: string;
12+
style: React.CSSProperties;
13+
placeHolderShort: string;
14+
placeHolderLong: string;
15+
icon: string;
16+
framework: string;
17+
nestable: boolean;
18+
props: MuiButtonProps;
19+
}
20+
interface InputSchema {
21+
id: number;
22+
tag: string;
23+
name: string;
24+
style: React.CSSProperties;
25+
placeHolderShort: string;
26+
placeHolderLong: string;
27+
icon: string;
28+
framework: string;
29+
nestable: boolean;
30+
props: MuiTextFieldProps;
31+
}
32+
interface CardSchema {
33+
id: number;
34+
tag: string;
35+
name: string;
36+
style: React.CSSProperties;
37+
placeHolderShort: string;
38+
placeHolderLong: string;
39+
icon: string;
40+
framework: string;
41+
nestable: boolean;
42+
props: MuiCardProps;
43+
}
44+
interface TypographySchema {
45+
id: number;
46+
tag: string;
47+
name: string;
48+
style: React.CSSProperties;
49+
placeHolderShort: string;
50+
placeHolderLong: string;
51+
icon: string;
52+
framework: string;
53+
nestable: boolean;
54+
props: MuiTypographyProps;
55+
}
56+
57+
const MUITypes: MUIType[] = [
58+
{
59+
id: 11,
60+
tag: 'button',
61+
name: 'Material UI Button',
62+
style: {},
63+
placeHolderShort: 'button',
64+
placeHolderLong: 'Material UI Button Component',
65+
icon: 'Code',
66+
framework: 'reactClassic',
67+
nestable: true,
68+
props: {
69+
variant: 'contained',
70+
color: 'primary',
71+
disabled: false,
72+
// Add other MUI ButtonProps as needed
73+
},
74+
},
75+
{
76+
id: 21,
77+
tag: 'input',
78+
name: 'Material UI TextField',
79+
style: {},
80+
placeHolderShort: 'input',
81+
placeHolderLong: 'Material UI TextField Component',
82+
icon: 'TextFields',
83+
framework: 'reactClassic',
84+
nestable: true,
85+
props: {
86+
variant: 'outlined',
87+
fullWidth: true,
88+
// Add other MUI TextFieldProps as needed
89+
},
90+
},
91+
{
92+
id: 31,
93+
tag: 'card',
94+
name: 'Material UI Card',
95+
style: {},
96+
placeHolderShort: 'card',
97+
placeHolderLong: 'Material UI Card Component',
98+
icon: 'CardTravel',
99+
framework: 'reactClassic',
100+
nestable: true,
101+
props: {
102+
variant: 'outlined',
103+
// Add other MUI CardProps as needed
104+
},
105+
},
106+
{
107+
id: 41,
108+
tag: 'typography',
109+
name: 'Material UI Typography',
110+
style: {},
111+
placeHolderShort: 'typography',
112+
placeHolderLong: 'Material UI Typography Component',
113+
icon: 'TextFormat',
114+
framework: 'reactClassic',
115+
nestable: true,
116+
props: {
117+
variant: 'h6',
118+
// Add other MUI TypographyProps as needed
119+
},
120+
}
121+
];
122+
123+
export default MUITypes;

0 commit comments

Comments
 (0)