mirror of https://github.com/Budibase/budibase.git
5 changed files with 201 additions and 231 deletions
@ -0,0 +1,5 @@ |
|||
<script> |
|||
export let components |
|||
</script> |
|||
|
|||
{#each components as component}{component.component}{/each} |
|||
@ -0,0 +1,154 @@ |
|||
export default { |
|||
categories: [ |
|||
{ |
|||
name: 'Basic', |
|||
components: [ |
|||
{ |
|||
component: 'Text', |
|||
icon: 'Text', |
|||
type: [ |
|||
{ |
|||
_component: '@budibase/standard-components/header', |
|||
name: 'Headline', |
|||
icon: 'headline', |
|||
props: { |
|||
type: { |
|||
type: 'options', |
|||
options: [ |
|||
'h1', |
|||
'h2' |
|||
], |
|||
'default': 'h1' |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
_component: '@budibase/standard-components/text', |
|||
name: 'Paragraph', |
|||
icon: 'paragraph' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
component: 'Button', |
|||
icon: 'Text', |
|||
type: [ |
|||
{ |
|||
_component: '@budibase/standard-components/header', |
|||
name: 'Headline', |
|||
icon: 'headline', |
|||
props: { |
|||
type: { |
|||
type: 'options', |
|||
options: [ |
|||
'h1', |
|||
'h2' |
|||
], |
|||
'default': 'h1' |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
_component: '@budibase/standard-components/text', |
|||
name: 'Paragraph', |
|||
icon: 'paragraph' |
|||
} |
|||
] |
|||
}, |
|||
] |
|||
}, |
|||
{ |
|||
name: 'Form', |
|||
components: [ |
|||
{ |
|||
component: 'Text', |
|||
icon: 'Text', |
|||
type: [ |
|||
{ |
|||
_component: '@budibase/standard-components/header', |
|||
name: 'Headline', |
|||
icon: 'headline', |
|||
props: { |
|||
type: { |
|||
type: 'options', |
|||
options: [ |
|||
'h1', |
|||
'h2' |
|||
], |
|||
'default': 'h1' |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
_component: '@budibase/standard-components/text', |
|||
name: 'Paragraph', |
|||
icon: 'paragraph' |
|||
} |
|||
] |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
name: 'Blocks', |
|||
components: [ |
|||
{ |
|||
component: 'Text', |
|||
icon: 'Text', |
|||
type: [ |
|||
{ |
|||
_component: '@budibase/standard-components/header', |
|||
name: 'Headline', |
|||
icon: 'headline', |
|||
props: { |
|||
type: { |
|||
type: 'options', |
|||
options: [ |
|||
'h1', |
|||
'h2' |
|||
], |
|||
'default': 'h1' |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
_component: '@budibase/standard-components/text', |
|||
name: 'Paragraph', |
|||
icon: 'paragraph' |
|||
} |
|||
] |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
name: 'Data', |
|||
components: [ |
|||
{ |
|||
component: 'Text', |
|||
icon: 'Text', |
|||
type: [ |
|||
{ |
|||
_component: '@budibase/standard-components/header', |
|||
name: 'Headline', |
|||
icon: 'headline', |
|||
props: { |
|||
type: { |
|||
type: 'options', |
|||
options: [ |
|||
'h1', |
|||
'h2' |
|||
], |
|||
'default': 'h1' |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
_component: '@budibase/standard-components/text', |
|||
name: 'Paragraph', |
|||
icon: 'paragraph' |
|||
} |
|||
] |
|||
} |
|||
] |
|||
}, |
|||
] |
|||
} |
|||
@ -1,43 +0,0 @@ |
|||
{ |
|||
"categories": [ |
|||
{ |
|||
"name": "Basic", |
|||
"components": [ |
|||
{ |
|||
"component": "Text", |
|||
"icon": "Text", |
|||
"commonProps": { |
|||
//common for all components |
|||
//Will include layout props |
|||
}, |
|||
"type": [ |
|||
{ |
|||
"_component": "@budibase/standard-components/header", |
|||
"name": "Headline", |
|||
"icon": "headline", |
|||
"props": { |
|||
//props for headline |
|||
"type": { |
|||
"type": "options", |
|||
"options": [ |
|||
"h1", |
|||
"h2" |
|||
], |
|||
"default": "h1" |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"_component": "@budibase/standard-components/text", |
|||
"name": "Paragraph", |
|||
"icon": "paragraph", |
|||
"props": { |
|||
//props for paragraph |
|||
} |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
Loading…
Reference in new issue