diff --git a/packages/builder/src/components/design/settings/controls/FormStepControls.svelte b/packages/builder/src/components/design/settings/controls/FormStepControls.svelte index 638d80945d..3e3f1bdcd4 100644 --- a/packages/builder/src/components/design/settings/controls/FormStepControls.svelte +++ b/packages/builder/src/components/design/settings/controls/FormStepControls.svelte @@ -23,7 +23,7 @@ stepAction("addStep") }} > - Add Step + Add step {:else} diff --git a/packages/client/manifest.json b/packages/client/manifest.json index 1c62b90a64..676d161864 100644 --- a/packages/client/manifest.json +++ b/packages/client/manifest.json @@ -6093,15 +6093,44 @@ "key": "steps", "nested": true, "labelHidden": true, - "resetOn": [ - "dataSource", - "actionType" - ], - "defaultValue": [ - {} - ] + "resetOn": ["dataSource", "actionType"], + "defaultValue": [{}] } ] + }, + { + "tag": "style", + "type": "select", + "label": "Size", + "key": "size", + "options": [ + { + "label": "Medium", + "value": "spectrum--medium" + }, + { + "label": "Large", + "value": "spectrum--large" + } + ], + "defaultValue": "spectrum--medium" + }, + { + "tag": "style", + "type": "select", + "label": "Button position", + "key": "buttonPosition", + "options": [ + { + "label": "Bottom", + "value": "bottom" + }, + { + "label": "Top", + "value": "top" + } + ], + "defaultValue": "bottom" } ], "actions": [ diff --git a/packages/client/src/components/app/blocks/MultiStepFormblock.svelte b/packages/client/src/components/app/blocks/MultiStepFormblock.svelte index b90d0d4c7b..f7d2b5194b 100644 --- a/packages/client/src/components/app/blocks/MultiStepFormblock.svelte +++ b/packages/client/src/components/app/blocks/MultiStepFormblock.svelte @@ -11,6 +11,8 @@ export let noRowsMessage export let steps export let dataSource + export let buttonPosition = "bottom" + export let size const { fetchDatasourceSchema } = getContext("sdk") const component = getContext("component") @@ -127,6 +129,7 @@ type="form" context="form" props={{ + size, dataSource, actionType: actionType === "Create" ? "Create" : "Update", readonly: actionType === "View", @@ -154,8 +157,33 @@ size: "shrink", }} > - - + + + + {#if buttonPosition == "top"} + + {/if} + @@ -176,16 +204,13 @@ {/each} - + {#if buttonPosition === "bottom"} + + {/if} {/each}