Merge pull request #260 from Budibase/WIP---Frontend-Components-Blocks-UI

Component items ui updated
This commit is contained in:
Joe 2020-05-27 15:41:25 +01:00 committed by GitHub
commit 87e272dcc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 104 deletions

View File

@ -109,7 +109,7 @@
.title > div:nth-child(1) { .title > div:nth-child(1) {
grid-column-start: name; grid-column-start: name;
color: var(--secondary100); color: var(--ink);
} }
.title > div:nth-child(2) { .title > div:nth-child(2) {

View File

@ -52,32 +52,9 @@
</div> </div>
<style> <style>
.tabs {
display: flex;
justify-content: center;
list-style: none;
margin: 0 auto;
padding: 0 30px;
border-bottom: 1px solid #d8d8d8;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.14px;
}
li {
color: #808192;
margin: 0 5px;
padding: 0 8px;
cursor: pointer;
}
.panel { .panel {
padding: 20px; padding: 20px 0px;
} display: flex;
flex-wrap: wrap;
.active {
border-bottom: solid 3px #0055ff;
color: #393c44;
} }
</style> </style>

View File

@ -55,7 +55,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 20px 20px; padding: 20px 20px;
border-left: solid 1px #e8e8ef; border-left: solid 1px var(--grey);
} }
.switcher { .switcher {

View File

@ -8,59 +8,48 @@
</div> </div>
<div class="item-text"> <div class="item-text">
<div class="item-name">{item.name}</div> <div class="item-name">{item.name}</div>
<div class="item-description">
<p>{item.description}</p>
</div>
</div> </div>
</div> </div>
<style> <style>
.item-item { .item-item {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
padding: 10px 0px 8px 10px;
align-items: center;
cursor: pointer; cursor: pointer;
margin-bottom: 8px;
padding: 8px 0px 16px 0px;
width: 120px;
height: 80px;
justify-content: center;
align-items: center;
margin-right: 8px;
background-color: var(--grey-light);
border-radius: 3px;
} }
.item-item:hover { .item-item:hover {
background: #fbfbfb; background: var(--grey);
border-radius: 5px; border-radius: 3px;
transition: all 0.2s;
} }
.item-icon { .item-icon {
flex: 0 0 40px; border-radius: 3px;
background: #f1f4fc;
height: 40px;
border-radius: 5px;
display: flex; display: flex;
justify-content: center;
align-items: center;
} }
.item-text { .item-text {
display: flex; display: flex;
padding-left: 16px;
padding-top: 8px;
flex-direction: column; flex-direction: column;
} }
.item-name { .item-name {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 400;
}
.item-description {
font-size: 12px;
color: #808192;
}
p {
line-height: 15px;
} }
i { i {
font-size: 24px; font-size: 24px;
color: #808192; color: var(--ink-light);
} }
</style> </style>

View File

@ -10,15 +10,6 @@ export default {
name: "Basic", name: "Basic",
isCategory: true, isCategory: true,
children: [ children: [
{
_component: "##builtin/screenslot",
name: "Screenslot",
description:
"This component is a placeholder for the rendering of a screen within a page.",
icon: "ri-crop-2-line",
commonProps: {},
children: [],
},
{ {
_component: "@budibase/standard-components/container", _component: "@budibase/standard-components/container",
name: "Container", name: "Container",
@ -119,7 +110,7 @@ export default {
{ {
name: "Input", name: "Input",
description: "These components handle user input.", description: "These components handle user input.",
icon: "ri-edit-box-line", icon: "ri-edit-box-fill",
commonProps: {}, commonProps: {},
children: [ children: [
{ {
@ -127,7 +118,7 @@ export default {
name: "Textfield", name: "Textfield",
description: description:
"A textfield component that allows the user to input text.", "A textfield component that allows the user to input text.",
icon: "ri-edit-box-line", icon: "ri-edit-box-fill",
properties: { properties: {
design: { ...all }, design: { ...all },
settings: [ settings: [
@ -145,7 +136,7 @@ export default {
_component: "@budibase/standard-components/checkbox", _component: "@budibase/standard-components/checkbox",
name: "Checkbox", name: "Checkbox",
description: "A selectable checkbox component", description: "A selectable checkbox component",
icon: "ri-checkbox-line", icon: "ri-checkbox-fill",
properties: { properties: {
design: { ...all }, design: { ...all },
settings: [{ label: "Label", key: "label", control: Input }], settings: [{ label: "Label", key: "label", control: Input }],
@ -166,7 +157,7 @@ export default {
name: "Select", name: "Select",
description: description:
"A select component for choosing from different options", "A select component for choosing from different options",
icon: "ri-file-list-line", icon: "ri-file-list-fill",
properties: { properties: {
design: { ...all }, design: { ...all },
settings: [], settings: [],
@ -236,7 +227,7 @@ export default {
name: "Card", name: "Card",
description: description:
"A basic card component that can contain content and actions.", "A basic card component that can contain content and actions.",
icon: "ri-layout-bottom-line", icon: "ri-layout-bottom-fill",
children: [], children: [],
properties: { design: { ...all } }, properties: { design: { ...all } },
}, },
@ -248,21 +239,6 @@ export default {
children: [], children: [],
properties: { design: { ...all } }, properties: { design: { ...all } },
}, },
{
name: "Navigation Bar",
_component: "@budibase/standard-components/Navigation",
description:
"A component for handling the navigation within your app.",
icon: "ri-navigation-fill",
children: [],
properties: { design: { ...all } },
},
],
},
{
name: "Data",
isCategory: true,
children: [
{ {
name: "Table", name: "Table",
description: "A component that generates a table from your data.", description: "A component that generates a table from your data.",
@ -283,27 +259,11 @@ export default {
}, },
children: [], children: [],
}, },
{
_component: "@budibase/standard-components/datatable",
name: "DataTable",
description: "A table for displaying data from the backend.",
icon: "ri-archive-drawer-fill",
properties: { design: { ...all } },
children: [],
},
{
_component: "@budibase/standard-components/dataform",
name: "DataForm",
description: "Form stuff",
icon: "ri-file-edit-fill",
properties: { design: { ...all } },
children: [],
},
{ {
name: "Chart", name: "Chart",
_component: "@budibase/standard-components/datachart", _component: "@budibase/standard-components/datachart",
description: "Shiny chart", description: "Shiny chart",
icon: "ri-bar-chart-line", icon: "ri-bar-chart-fill",
properties: { design: { ...all } }, properties: { design: { ...all } },
children: [], children: [],
}, },
@ -311,7 +271,7 @@ export default {
name: "List", name: "List",
_component: "@budibase/standard-components/datalist", _component: "@budibase/standard-components/datalist",
description: "Shiny list", description: "Shiny list",
icon: "ri-file-list-line", icon: "ri-file-list-fill",
properties: { design: { ...all } }, properties: { design: { ...all } },
children: [], children: [],
}, },
@ -319,11 +279,35 @@ export default {
name: "Map", name: "Map",
_component: "@budibase/standard-components/datamap", _component: "@budibase/standard-components/datamap",
description: "Shiny map", description: "Shiny map",
icon: "ri-map-pin-line", icon: "ri-map-pin-fill",
properties: { design: { ...all } }, properties: { design: { ...all } },
children: [], children: [],
}, },
], ],
}, },
{
name: "Layouts",
isCategory: true,
children: [
{
_component: "##builtin/screenslot",
name: "Screenslot",
description:
"This component is a placeholder for the rendering of a screen within a page.",
icon: "ri-crop-2-fill",
commonProps: {},
children: [],
},
{
name: "Nav Bar",
_component: "@budibase/standard-components/Navigation",
description:
"A component for handling the navigation within your app.",
icon: "ri-navigation-fill",
children: [],
properties: { design: { ...all } },
},
],
},
], ],
} }

View File

@ -150,7 +150,7 @@
} }
.topnavitemright:hover { .topnavitemright:hover {
color: rgb(255, 255, 255, 0.8); color: var(--ink);
font-weight: 500; font-weight: 500;
} }