diff --git a/packages/builder/src/builderStore/generate_css.js b/packages/builder/src/builderStore/generate_css.js
index 0f776a5255..537c79e4c8 100644
--- a/packages/builder/src/builderStore/generate_css.js
+++ b/packages/builder/src/builderStore/generate_css.js
@@ -88,7 +88,7 @@ const css_map = {
}
export const generate_rule = ([name, values]) =>
- `${css_map[name].name}: ${css_map[name].generate(values)};`
+ `${css_map[name].name}: ${css_map[name].generate(values)} !important;`
const handle_grid = (acc, [name, value]) => {
let tmp = []
@@ -113,7 +113,9 @@ const object_to_css_string = [
export const generate_css = ({ layout, position }) => {
let _layout = pipe(layout, object_to_css_string)
if (_layout.length) {
- _layout += `\ndisplay: ${_layout.includes("flex") ? "flex" : "grid"};`
+ _layout += `\ndisplay: ${
+ _layout.includes("flex") ? "flex" : "grid"
+ } !important;`
}
return {
@@ -134,7 +136,6 @@ export const generate_screen_css = component_array => {
styles += apply_class(_id, "pos", position) + "\n"
styles += apply_class(_id, "lay", layout) + "\n"
-
if (_children && _children.length) {
styles += generate_screen_css(_children) + "\n"
}
diff --git a/packages/builder/src/components/userInterface/CurrentItemPreview.svelte b/packages/builder/src/components/userInterface/CurrentItemPreview.svelte
index 1edca1c8d6..6148a51457 100644
--- a/packages/builder/src/components/userInterface/CurrentItemPreview.svelte
+++ b/packages/builder/src/components/userInterface/CurrentItemPreview.svelte
@@ -89,7 +89,7 @@
${styles || ''}
.pos-${selectedComponentId} {
- border: 2px solid #0055ff;
+ border: 2px solid #0055ff;
}
body, html {
diff --git a/packages/materialdesign-components/.gitignore b/packages/materialdesign-components/.gitignore
index f29fd6f0b2..3693c6588b 100644
--- a/packages/materialdesign-components/.gitignore
+++ b/packages/materialdesign-components/.gitignore
@@ -2,5 +2,5 @@
node_modules
yarn.lock
package-lock.json
-dist/index.js
+dist/*
public/build
\ No newline at end of file
diff --git a/packages/materialdesign-components/components.json b/packages/materialdesign-components/components.json
index 3581e7b369..f2a6db42a6 100644
--- a/packages/materialdesign-components/components.json
+++ b/packages/materialdesign-components/components.json
@@ -14,9 +14,7 @@
"name": "Body1",
"description": "Sets the font properties as Roboto Body 1",
"props": {
- "text": "string",
- "verticalMargin": "number",
- "horizontalMargin": "number"
+ "text": "string"
},
"tags": []
},
@@ -58,6 +56,11 @@
"type": "options",
"options": ["one-line", "two-line"],
"default": "one-line"
+ },
+ "inputElement": {
+ "type": "options",
+ "options": ["None", "Radiobutton", "Checkbox"],
+ "default": "None"
}
}
},
@@ -69,10 +72,9 @@
"text": "string",
"secondaryText": "string",
"leadingIcon": "string",
- "trailingIcon": "string",
- "selected": "bool",
+ "trailingIcon": "string",
"disabled": "bool",
- "divideAfter": "bool"
+ "dividerAfter": "bool"
}
},
"Button": {
@@ -117,12 +119,12 @@
"name": "Card",
"description": "A Material Card container. Accepts CardHeader, CardBody and CardFooter as possible children",
"props": {
- "width": "string",
+ "width": {"type": "string", "default": "350px"},
"height": "string",
"variant": {
"type": "options",
"options": ["standard", "outlined"],
- "default": "standard"
+ "default": "outlined"
}
}
},
@@ -183,8 +185,7 @@
"type": "options",
"options": ["row", "column"],
"default": "row"
- },
- "fullwidth": "bool",
+ },
"disabled": "bool",
"alignEnd": "bool"
}
@@ -276,14 +277,18 @@
"tags": []
},
"IconButton": {
- "onClick": "event",
- "disabled": "bool",
- "href": "string",
- "icon": "string",
- "size": {
- "type":"options",
- "options": ["small", "medium", "large"],
- "default": "medium"
+ "name": "IconButton",
+ "description": "An icon button component",
+ "props": {
+ "onClick": "event",
+ "disabled": "bool",
+ "href": "string",
+ "icon": "string",
+ "size": {
+ "type":"options",
+ "options": ["small", "medium", "large"],
+ "default": "medium"
+ }
},
"tags": []
},
@@ -291,6 +296,7 @@
"name": "Label",
"description": "A simple label component that displays its text in the standard Roboto Material Design font",
"props": {
+ "text": "string",
"bold": "bool"
},
"tags": []
@@ -322,8 +328,7 @@
"onClick": "event",
"id": "string",
"label": "string",
- "name": "string",
- "checked": "bool",
+ "name": "string",
"disabled": "bool",
"alignEnd": "bool"
},
@@ -334,6 +339,7 @@
"description": "A Material Design Radiobutton group. Supports row and column orientation.",
"props": {
"onChange": "event",
+ "label": "string",
"name": "string",
"orientation": {
"type": "options",
@@ -394,14 +400,10 @@
"minLength": "number",
"maxLength": "number",
"helperText": "string",
- "errorText": "string",
"placeholder": "string",
"icon": "string",
"trailingIcon": "bool",
- "textarea": "bool",
- "rows": "number",
- "cols": "number",
- "validation": "bool",
+ "textarea": "bool",
"persistent": "bool"
},
"tags": []
diff --git a/packages/materialdesign-components/rollup.config.js b/packages/materialdesign-components/rollup.config.js
index a11693cbf0..df89ae0ddd 100644
--- a/packages/materialdesign-components/rollup.config.js
+++ b/packages/materialdesign-components/rollup.config.js
@@ -26,7 +26,7 @@ export default {
file: "dist/index.js",
format: "esm",
name: "budibaseStandardComponents",
- sourcemap: "inline",
+ sourcemap: true,
},
],
plugins: [
diff --git a/packages/materialdesign-components/src/Button/Button.svelte b/packages/materialdesign-components/src/Button/Button.svelte
index 3d806d2ac8..3bc101e8f0 100644
--- a/packages/materialdesign-components/src/Button/Button.svelte
+++ b/packages/materialdesign-components/src/Button/Button.svelte
@@ -55,11 +55,11 @@
{disabled}
on:click={clicked}>
{#if renderLeadingIcon}
-