diff --git a/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte b/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte index e86aa4800d..960bfce9d1 100644 --- a/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte +++ b/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte @@ -66,21 +66,24 @@ } .switcher > button { + text-rendering: optimizeLegibility; display: inline-block; border: none; margin: 0; padding: 0; cursor: pointer; font-size: 14px; - font-weight: 400; text-transform: uppercase; - color: var(--secondary60); background: rgba(0,0,0,0); + font-weight: 500; + color: var(--secondary40); + margin-right: 20px; + letter-spacing: 1px; } .switcher > .selected { color: var(--secondary100); - font-weight: 500; + font-weight: 600; } .panel { diff --git a/packages/builder/src/userInterface/LayoutEditor.svelte b/packages/builder/src/userInterface/LayoutEditor.svelte index f48c1f3c77..bffbe9eb0c 100644 --- a/packages/builder/src/userInterface/LayoutEditor.svelte +++ b/packages/builder/src/userInterface/LayoutEditor.svelte @@ -54,9 +54,7 @@ const newValue = n => Array(n).fill("") -

Styles

- -

Display

+

Layout

{#each Object.entries(display) as [key, [name, meta, size]] (component._id + key)}
@@ -87,7 +85,7 @@ {/each}
--> -

Spacing

+

Spacing

{#each Object.entries(spacing) as [key, [name, meta, size]] (component._id + key)}
@@ -102,7 +100,7 @@ {/each}
-

Size

+

Size

{#each Object.entries(size) as [key, [name, meta, size]] (component._id + key)}
@@ -117,7 +115,7 @@ {/each}
-

Z-Index

+

Order

{#each Object.entries(zindex) as [key, [name, meta, size]] (component._id + key)}
@@ -144,10 +142,11 @@ h4 { text-transform: uppercase; font-size: 10px; - font-weight: 700; + font-weight: 600; color: #000333; opacity: 0.4; - margin-bottom: 15px; + letter-spacing: 1px; + margin-bottom: 10px; } h5 { @@ -168,6 +167,6 @@ } .grid { - grid-template-columns: 70px 1fr; + grid-template-columns: 70px 2fr; } diff --git a/packages/builder/src/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/userInterface/UserInterfaceRoot.svelte index 8fd3039eb5..c466c7aac0 100644 --- a/packages/builder/src/userInterface/UserInterfaceRoot.svelte +++ b/packages/builder/src/userInterface/UserInterfaceRoot.svelte @@ -160,8 +160,9 @@ text-transform: uppercase; padding-left: 20px; margin-top: 20px; - font-weight: 700; - opacity: 0.6; + font-weight: 600; + opacity: 0.4; + letter-spacing: 1px; } .components-nav-header { @@ -169,8 +170,9 @@ color: #000333; text-transform: uppercase; margin-top: 20px; - font-weight: 700; - opacity: 0.6; + font-weight: 600; + opacity: 0.4; + letter-spacing: 1px; } .nav-header { @@ -220,10 +222,11 @@ .navigator-title { font-size: 14px; color: var(--secondary100); - font-weight: 500; + font-weight: 600; text-transform: uppercase; padding: 0 20px 20px 20px; line-height: 1rem !important; + letter-spacing: 1px; } .border-line { diff --git a/packages/materialdesign-components/components.json b/packages/materialdesign-components/components.json index d017e54b11..6922b1bec7 100644 --- a/packages/materialdesign-components/components.json +++ b/packages/materialdesign-components/components.json @@ -111,6 +111,52 @@ }, "tags": [] }, + "Card": { + "name": "Card", + "description": "A Material Card container. Accepts CardHeader, CardBody and CardFooter as possible children", + "props": { + "width": "string", + "height": "string", + "variant": { + "type": "options", + "options": ["standard", "outlined"], + "default": "standard" + } + } + }, + "CardBody": { + "name": "CardBody", + "description": "A Material CardBody component. Contains the main content of a Material Card component", + "props": { + "onClick": "event" + } + }, + "CardImage": { + "name": "CardImage", + "description": "An image component for the Material Card component", + "props": { + "displayHorizontal": "bool", + "url": "string", + "title": "string", + "subtitle": "string" + } + }, + "CardHeader": { + "name": "CardHeader", + "description": "Displays a icon, title and subtitle above main body of the Material Card component", + "props": { + "title": "string", + "subtitle": "string", + "icon": "string" + } + }, + "CardFooter": { + "name": "CardFooter", + "description": "Displays buttons / icon buttons as actions for the Material Card component", + "props": { + "padding": "string" + } + }, "Checkbox": { "name": "Checkbox", "description": "A Material Design checkbox. Supports aligning label before or after checkbox.", @@ -357,6 +403,37 @@ "persistent": "bool" }, "tags": [] + }, + "Switch": { + "name": "Switch", + "description": "A material design switch component", + "props": { + "alignEnd": "bool", + "disabled": "bool", + "checked": "bool", + "label": "string", + "id": "string" + }, + "tags": [] + }, + "Slider": { + "name": "Slider", + "description": "A material design slider component", + "props": { + "variant": { + "type": "options", + "options": ["continuous", "discrete"], + "default": "continuous" + }, + "showTicks": "bool", + "min": "number", + "max": "number", + "value": "number", + "step": "number", + "label": "string", + "disabled": "bool" + }, + "tags": [] } } diff --git a/packages/materialdesign-components/package.json b/packages/materialdesign-components/package.json index f21c6c8d6b..7328dcfa0b 100644 --- a/packages/materialdesign-components/package.json +++ b/packages/materialdesign-components/package.json @@ -17,12 +17,15 @@ "@material/button": "^4.0.0", "@material/checkbox": "^4.0.0", "@material/data-table": "4.0.0", + "@material/dialog": "4.0.0", "@material/form-field": "^4.0.0", "@material/icon-button": "4.0.0", "@material/list": "4.0.0", "@material/menu": "4.0.0", "@material/radio": "^4.0.0", "@material/select": "4.0.0", + "@material/slider": "4.0.0", + "@material/switch": "4.0.0", "@material/textfield": "^4.0.0", "@nx-js/compiler-util": "^2.0.0", "bcryptjs": "^2.4.3", @@ -50,5 +53,7 @@ "version": "0.0.27", "license": "MIT", "gitHead": "72a77a035eb7c1443b079bf93c29b3e5fe02094e", - "dependencies": {} + "dependencies": { + "@material/card": "4.0.0" + } } diff --git a/packages/materialdesign-components/src/Button/Button.svelte b/packages/materialdesign-components/src/Button/Button.svelte index 7c8821547a..7b7880e2ff 100644 --- a/packages/materialdesign-components/src/Button/Button.svelte +++ b/packages/materialdesign-components/src/Button/Button.svelte @@ -1,5 +1,5 @@ + +
diff --git a/packages/materialdesign-components/src/Card/CardBody.svelte b/packages/materialdesign-components/src/Card/CardBody.svelte new file mode 100644 index 0000000000..08cb549e06 --- /dev/null +++ b/packages/materialdesign-components/src/Card/CardBody.svelte @@ -0,0 +1,10 @@ + + +
diff --git a/packages/materialdesign-components/src/Card/CardFooter.svelte b/packages/materialdesign-components/src/Card/CardFooter.svelte new file mode 100644 index 0000000000..b3702ee47f --- /dev/null +++ b/packages/materialdesign-components/src/Card/CardFooter.svelte @@ -0,0 +1,31 @@ + + +
+ + diff --git a/packages/materialdesign-components/src/Card/CardHeader.svelte b/packages/materialdesign-components/src/Card/CardHeader.svelte new file mode 100644 index 0000000000..72f1bc4ace --- /dev/null +++ b/packages/materialdesign-components/src/Card/CardHeader.svelte @@ -0,0 +1,44 @@ + + +
+ {#if useIcon} +
+ +
+ {/if} +
+
+ {#if useSubtitle} + + {/if} +
+
+ + diff --git a/packages/materialdesign-components/src/Card/CardImage.svelte b/packages/materialdesign-components/src/Card/CardImage.svelte new file mode 100644 index 0000000000..e7207271a0 --- /dev/null +++ b/packages/materialdesign-components/src/Card/CardImage.svelte @@ -0,0 +1,62 @@ + + +{#if !displayHorizontal} +
+
+ {#if useTitle} +
+ {#if useSubTitle} + + {/if} + {/if} +
+
+{:else} +
+
+
+ {#if useTitle} +
+ {#if useSubTitle} + + {/if} + {/if} +
+
+{/if} + + diff --git a/packages/materialdesign-components/src/Card/_styles.scss b/packages/materialdesign-components/src/Card/_styles.scss new file mode 100644 index 0000000000..67be710d6f --- /dev/null +++ b/packages/materialdesign-components/src/Card/_styles.scss @@ -0,0 +1 @@ +@import "@material/card/mdc-card.scss" diff --git a/packages/materialdesign-components/src/Card/index.js b/packages/materialdesign-components/src/Card/index.js new file mode 100644 index 0000000000..d950503099 --- /dev/null +++ b/packages/materialdesign-components/src/Card/index.js @@ -0,0 +1,7 @@ +import "./_styles.scss" +export { default as Card } from "./Card.svelte" +export { default as CardBody } from "./CardBody.svelte" +export { default as CardFooter } from "./CardFooter.svelte" +export { default as CardHeader } from "./CardHeader.svelte" +export { default as CardImage } from "./CardImage.svelte" + diff --git a/packages/materialdesign-components/src/Common/Icon.svelte b/packages/materialdesign-components/src/Common/Icon.svelte index d4820fcf6c..7a825f8cca 100644 --- a/packages/materialdesign-components/src/Common/Icon.svelte +++ b/packages/materialdesign-components/src/Common/Icon.svelte @@ -1,6 +1,4 @@ + +
+
+
+
+
(open = false)} /> +
diff --git a/packages/materialdesign-components/src/Dialog/DialogActions.svelte b/packages/materialdesign-components/src/Dialog/DialogActions.svelte new file mode 100644 index 0000000000..1bb23cee44 --- /dev/null +++ b/packages/materialdesign-components/src/Dialog/DialogActions.svelte @@ -0,0 +1,13 @@ + + +