diff --git a/packages/builder/src/components/design/AppPreview/componentStructure.json b/packages/builder/src/components/design/AppPreview/componentStructure.json
index 9193a566b5..dcf29b2534 100644
--- a/packages/builder/src/components/design/AppPreview/componentStructure.json
+++ b/packages/builder/src/components/design/AppPreview/componentStructure.json
@@ -61,3 +61,4 @@
]
}
]
+
diff --git a/packages/client/src/utils/styleable.js b/packages/client/src/utils/styleable.js
index fbd3ccb053..665a3dc92d 100644
--- a/packages/client/src/utils/styleable.js
+++ b/packages/client/src/utils/styleable.js
@@ -74,6 +74,7 @@ export const styleable = (node, styles = {}) => {
// preview
const applyStyles = styleString => {
node.style = addBuilderPreviewStyles(styleString, componentId, selectable)
+ node.dataset.componentId = componentId
}
// Applies the "normal" style definition
diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json
index a21a66992b..1cf887bbf2 100644
--- a/packages/standard-components/manifest.json
+++ b/packages/standard-components/manifest.json
@@ -114,57 +114,6 @@
}
]
},
- "form": {
- "name": "Form",
- "icon": "ri-file-edit-line",
- "styleable": true,
- "hasChildren": true,
- "dataProvider": true,
- "datasourceSetting": "datasource",
- "settings": [
- {
- "type": "datasource",
- "label": "Data",
- "key": "datasource"
- },
- {
- "type": "select",
- "label": "Theme",
- "key": "theme",
- "defaultValue": "spectrum--light",
- "options": [
- {
- "label": "Light",
- "value": "spectrum--light"
- },
- {
- "label": "Dark",
- "value": "spectrum--dark"
- },
- {
- "label": "Darkest",
- "value": "spectrum--darkest"
- }
- ]
- },
- {
- "type": "select",
- "label": "Size",
- "key": "size",
- "defaultValue": "spectrum--medium",
- "options": [
- {
- "label": "Medium",
- "value": "spectrum--medium"
- },
- {
- "label": "Large",
- "value": "spectrum--large"
- }
- ]
- }
- ]
- },
"richtext": {
"name": "Rich Text",
"description": "A component that allows the user to enter long form text.",
@@ -1121,6 +1070,77 @@
}
]
},
+ "form": {
+ "name": "Form",
+ "icon": "ri-file-edit-line",
+ "styleable": true,
+ "hasChildren": true,
+ "dataProvider": true,
+ "datasourceSetting": "datasource",
+ "settings": [
+ {
+ "type": "datasource",
+ "label": "Data",
+ "key": "datasource"
+ },
+ {
+ "type": "select",
+ "label": "Theme",
+ "key": "theme",
+ "defaultValue": "spectrum--light",
+ "options": [
+ {
+ "label": "Light",
+ "value": "spectrum--light"
+ },
+ {
+ "label": "Dark",
+ "value": "spectrum--dark"
+ },
+ {
+ "label": "Darkest",
+ "value": "spectrum--darkest"
+ }
+ ]
+ },
+ {
+ "type": "select",
+ "label": "Size",
+ "key": "size",
+ "defaultValue": "spectrum--medium",
+ "options": [
+ {
+ "label": "Medium",
+ "value": "spectrum--medium"
+ },
+ {
+ "label": "Large",
+ "value": "spectrum--large"
+ }
+ ]
+ },
+ {
+ "type": "select",
+ "label": "Labels",
+ "key": "labelPosition",
+ "defaultValue": "left",
+ "options": [
+ {
+ "label": "Left",
+ "value": "left"
+ },
+ {
+ "label": "Right",
+ "value": "right"
+ },
+ {
+ "label": "Above",
+ "value": "above"
+ }
+ ]
+ }
+ ]
+ },
"stringfield": {
"name": "Text Field",
"description": "A textfield component that allows the user to input text.",
@@ -1189,7 +1209,8 @@
{
"type": "text",
"label": "Placeholder",
- "key": "placeholder"
+ "key": "placeholder",
+ "placeholder": "Choose an option"
}
]
}
diff --git a/packages/standard-components/package.json b/packages/standard-components/package.json
index 7ae2b94b7f..047cfa6aff 100644
--- a/packages/standard-components/package.json
+++ b/packages/standard-components/package.json
@@ -37,9 +37,15 @@
"@adobe/spectrum-css-workflow-icons": "^1.1.0",
"@budibase/bbui": "^1.52.4",
"@budibase/svelte-ag-grid": "^0.0.16",
+ "@spectrum-css/actionbutton": "^1.0.0-beta.1",
"@spectrum-css/button": "^3.0.0-beta.6",
+ "@spectrum-css/fieldlabel": "^3.0.0-beta.7",
"@spectrum-css/icon": "^3.0.0-beta.2",
+ "@spectrum-css/menu": "^3.0.0-beta.5",
"@spectrum-css/page": "^3.0.0-beta.0",
+ "@spectrum-css/picker": "^1.0.0-beta.3",
+ "@spectrum-css/popover": "^3.0.0-beta.6",
+ "@spectrum-css/stepper": "^3.0.0-beta.7",
"@spectrum-css/textfield": "^3.0.0-beta.6",
"@spectrum-css/vars": "^3.0.0-beta.2",
"apexcharts": "^3.22.1",
diff --git a/packages/standard-components/src/forms/Form.svelte b/packages/standard-components/src/forms/Form.svelte
index a4a2d46c86..86568f18d5 100644
--- a/packages/standard-components/src/forms/Form.svelte
+++ b/packages/standard-components/src/forms/Form.svelte
@@ -1,4 +1,5 @@
+
+
+
+