From 95dab526196d87f642e0464ad53a2e2143257138 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 21 Feb 2020 11:43:21 +0000 Subject: [PATCH] components changes --- .../materialdesign-components/components.json | 1 + packages/standard-components/components.json | 26 +++++- .../standard-components/src/Container.svelte | 93 +++++++++++++------ packages/standard-components/src/Link.svelte | 40 +++++++- .../standard-components/src/Test/props.js | 5 + .../src/Test/testComponents.js | 4 +- .../standard-components/src/button.svelte | 12 +-- packages/standard-components/src/cssVars.js | 14 ++- 8 files changed, 152 insertions(+), 43 deletions(-) diff --git a/packages/materialdesign-components/components.json b/packages/materialdesign-components/components.json index c0e79c511c..e62d30f5ef 100644 --- a/packages/materialdesign-components/components.json +++ b/packages/materialdesign-components/components.json @@ -24,6 +24,7 @@ }, "Button": { "name": "Button", + "children": false, "description": "A Material Design button with different variations. It renders as an anchor if href is passed to it.", "props": { "onClick": "event", diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index d5e8320b93..3a50ed2470 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -142,7 +142,11 @@ "props": { "url": "string", "openInNewTab": "bool", - "text": "string" + "text": "string", + "color": "string", + "hoverColor": "string", + "underline": "bool", + "fontSize": "string" } }, "image": { @@ -179,7 +183,27 @@ "summary" ], "default": "div" + }, + "backgroundColor": "string", + "color": "string", + "borderWidth": "string", + "borderColor": "string", + "borderStyle": { + "type":"options", + "options": [ + "none", + "solid", + "dotted", + "dashed", + "double", + "groove", + "ridge", + "inset", + "outset" + ], + "default": "none" } + }, "container": true, "tags": ["div", "container", "layout"] diff --git a/packages/standard-components/src/Container.svelte b/packages/standard-components/src/Container.svelte index 0951a03d65..9b9d47d3c0 100644 --- a/packages/standard-components/src/Container.svelte +++ b/packages/standard-components/src/Container.svelte @@ -1,49 +1,88 @@ {#if type === "div"} -
+
{:else if type === "header"} -
+
{:else if type === "main"} -
+
{:else if type === "footer"} -