Skip to content

Feature/m UI components data #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/src/interfaces/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export interface MUIType {
framework: string;
nestable: boolean;
imports: any[];
props: any[];
}
export interface DragItem extends DragObjectWithType {
newInstance: boolean;
Expand Down
119 changes: 119 additions & 0 deletions app/src/redux/MUITypes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
import { MUIType } from '../interfaces/Interfaces';
import { TroubleshootSharp } from '@mui/icons-material';

const MUITypes: MUIType[] = [
{
id: 11,
tag: 'button',
name: 'Material UI Button',
style: {},
placeHolderShort: 'button',
placeHolderLong: 'Material UI Button Component',
icon: 'EditAttributes',
framework: 'reactClassic',
nestable: true,
imports: ["import Button from '@mui/material/Button'"],
props: [
'children',
'classes',
'color',
'component',
'disabled',
'disableElevation',
'disableFocusRipple',
'disableRipple',
'endIcon',
'fullWidth',
'href',
'size',
'startIcon',
'sx',
'variant'
]
},
{
id: 21,
tag: 'input',
name: 'Material UI TextField',
style: {},
placeHolderShort: 'input',
placeHolderLong: 'Material UI TextField Component',
icon: 'Input',
framework: 'reactClassic',
nestable: true,
imports: ["import Box from '@mui/material/Box'", "import TextField from '@mui/material/TextField'"],
props: [
'autoComplete',
'autoFocus',
'classes',
'color',
'defaultValue',
'disabled',
'error',
'FormHelperTextProps',
'fullWidth',
'helperText',
'id',
'InputLabelProps',
'inputProps',
'InputProps',
'inputRef',
'label',
'margin',
'maxRows',
'minRows',
'multiline',
'name',
'onChange',
'placeholder',
'required',
'rows',
'select',
'SelectProps',
'size',
'sx',
'type',
'value',
'variant'
]
},
{
id: 31,
tag: 'card',
name: 'Material UI Card',
style: {},
placeHolderShort: 'card',
placeHolderLong: 'Material UI Card Component',
icon: 'CardTravel',
framework: 'reactClassic',
nestable: true,
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'"],
props: ['children','classes','raised','sx']
},
{
id: 41,
tag: 'typography',
name: 'Material UI Typography',
style: {},
placeHolderShort: 'typography',
placeHolderLong: 'Material UI Typography Component',
icon: 'TextFields',
framework: 'reactClassic',
nestable: true,
imports: ["import Box from '@mui/material/Box'", "import Typography from '@mui/material/Typography'"],
props: [
'align',
'children',
'classes',
'component',
'gutterBottom',
'noWrap',
'paragraph',
'sx',
'variant',
'variantMapping'
]
}
];

export default MUITypes;