Skip to content

Commit 7fb671d

Browse files
authored
Merge pull request #3 from oslabs-beta/feature/MUI-Components-Data
Feature/m UI components data
2 parents 2c887b6 + a6d9610 commit 7fb671d

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed

app/src/interfaces/Interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export interface MUIType {
114114
framework: string;
115115
nestable: boolean;
116116
imports: any[];
117+
props: any[];
117118
}
118119
export interface DragItem extends DragObjectWithType {
119120
newInstance: boolean;

app/src/redux/MUITypes.ts

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
import { MUIType } from '../interfaces/Interfaces';
2+
import { TroubleshootSharp } from '@mui/icons-material';
3+
4+
const MUITypes: MUIType[] = [
5+
{
6+
id: 11,
7+
tag: 'button',
8+
name: 'Material UI Button',
9+
style: {},
10+
placeHolderShort: 'button',
11+
placeHolderLong: 'Material UI Button Component',
12+
icon: 'EditAttributes',
13+
framework: 'reactClassic',
14+
nestable: true,
15+
imports: ["import Button from '@mui/material/Button'"],
16+
props: [
17+
'children',
18+
'classes',
19+
'color',
20+
'component',
21+
'disabled',
22+
'disableElevation',
23+
'disableFocusRipple',
24+
'disableRipple',
25+
'endIcon',
26+
'fullWidth',
27+
'href',
28+
'size',
29+
'startIcon',
30+
'sx',
31+
'variant'
32+
]
33+
},
34+
{
35+
id: 21,
36+
tag: 'input',
37+
name: 'Material UI TextField',
38+
style: {},
39+
placeHolderShort: 'input',
40+
placeHolderLong: 'Material UI TextField Component',
41+
icon: 'Input',
42+
framework: 'reactClassic',
43+
nestable: true,
44+
imports: ["import Box from '@mui/material/Box'", "import TextField from '@mui/material/TextField'"],
45+
props: [
46+
'autoComplete',
47+
'autoFocus',
48+
'classes',
49+
'color',
50+
'defaultValue',
51+
'disabled',
52+
'error',
53+
'FormHelperTextProps',
54+
'fullWidth',
55+
'helperText',
56+
'id',
57+
'InputLabelProps',
58+
'inputProps',
59+
'InputProps',
60+
'inputRef',
61+
'label',
62+
'margin',
63+
'maxRows',
64+
'minRows',
65+
'multiline',
66+
'name',
67+
'onChange',
68+
'placeholder',
69+
'required',
70+
'rows',
71+
'select',
72+
'SelectProps',
73+
'size',
74+
'sx',
75+
'type',
76+
'value',
77+
'variant'
78+
]
79+
},
80+
{
81+
id: 31,
82+
tag: 'card',
83+
name: 'Material UI Card',
84+
style: {},
85+
placeHolderShort: 'card',
86+
placeHolderLong: 'Material UI Card Component',
87+
icon: 'CardTravel',
88+
framework: 'reactClassic',
89+
nestable: true,
90+
imports: ["import Box from '@mui/material/Box'", "import Card from '@mui/material/Card'", "import CardActions from '@mui/material/CardActions'", "import CardContent from '@mui/material/CardContent'", "import Button from '@mui/material/Button'", "import Typography from '@mui/material/Typography'"],
91+
props: ['children','classes','raised','sx']
92+
},
93+
{
94+
id: 41,
95+
tag: 'typography',
96+
name: 'Material UI Typography',
97+
style: {},
98+
placeHolderShort: 'typography',
99+
placeHolderLong: 'Material UI Typography Component',
100+
icon: 'TextFields',
101+
framework: 'reactClassic',
102+
nestable: true,
103+
imports: ["import Box from '@mui/material/Box'", "import Typography from '@mui/material/Typography'"],
104+
props: [
105+
'align',
106+
'children',
107+
'classes',
108+
'component',
109+
'gutterBottom',
110+
'noWrap',
111+
'paragraph',
112+
'sx',
113+
'variant',
114+
'variantMapping'
115+
]
116+
}
117+
];
118+
119+
export default MUITypes;

0 commit comments

Comments
 (0)