diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte
index 9dd5c68f43..c7bfbc32db 100644
--- a/packages/bbui/src/ActionButton/ActionButton.svelte
+++ b/packages/bbui/src/ActionButton/ActionButton.svelte
@@ -41,14 +41,12 @@
class="spectrum-ActionButton spectrum-ActionButton--size{size}"
{disabled}
on:longPress
- on:click|preventDefault
->
+ on:click|preventDefault>
{#if longPressable}
{/if}
@@ -57,8 +55,7 @@
class="spectrum-Icon spectrum-Icon--size{size}"
focusable="false"
aria-hidden="true"
- aria-label={icon}
- >
+ aria-label={icon}>
{/if}
@@ -66,9 +63,3 @@
{/if}
-
-
diff --git a/packages/bbui/src/ActionMenu/ActionMenu.svelte b/packages/bbui/src/ActionMenu/ActionMenu.svelte
index 6cfc531738..6947e69a7e 100644
--- a/packages/bbui/src/ActionMenu/ActionMenu.svelte
+++ b/packages/bbui/src/ActionMenu/ActionMenu.svelte
@@ -28,7 +28,7 @@
setContext("actionMenu", { show, hide })
-
+
@@ -36,9 +36,3 @@
-
-
diff --git a/packages/builder/src/builderStore/store/theme.js b/packages/builder/src/builderStore/store/theme.js
index cb4d0a2774..fd6b05df59 100644
--- a/packages/builder/src/builderStore/store/theme.js
+++ b/packages/builder/src/builderStore/store/theme.js
@@ -3,14 +3,25 @@ import { localStorageStore } from "./localStorage"
export const getThemeStore = () => {
const themeElement = document.documentElement
const initialValue = {
- darkMode: true,
+ theme: "darkest",
+ options: ["lightest", "light", "dark", "darkest"],
}
const store = localStorageStore("bb-theme", initialValue)
- // Update theme when store changes
- store.subscribe(theme => {
- themeElement.classList.toggle("spectrum--darkest", theme.darkMode)
- themeElement.classList.toggle("spectrum--lightest", !theme.darkMode)
+ // Update theme class when store changes
+ store.subscribe(state => {
+ // Handle any old local storage values - this can be removed after the update
+ if (state.darkMode !== undefined) {
+ store.set(initialValue)
+ return
+ }
+
+ state.options.forEach(option => {
+ themeElement.classList.toggle(
+ `spectrum--${option}`,
+ option === state.theme
+ )
+ })
})
return store
diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte
index 80b28d470b..53d1efb330 100644
--- a/packages/builder/src/components/backend/DataTable/DataTable.svelte
+++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte
@@ -57,7 +57,7 @@
{#if schema && Object.keys(schema).length > 0}
diff --git a/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte
index 2d05938f41..7316b1c69c 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte
@@ -1,5 +1,5 @@
-
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte
index 1459187332..86aef4ddbb 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte
@@ -1,13 +1,13 @@
-
+
+ Create column
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte
index cb65525f68..7f62a246f3 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte
@@ -1,16 +1,16 @@
-
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte
index 285323c6d7..297d120ede 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte
@@ -1,13 +1,13 @@
-
+
+ Create view
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte
index 9ec0a86131..7a76ba0820 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte
@@ -1,5 +1,5 @@
-
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte
index 5b345d6df7..e93c355404 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte
@@ -1,5 +1,5 @@
-
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte
index 1f92043381..3d74188ee4 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte
@@ -1,28 +1,13 @@
-
-
-
-
-
+
+ {#if hideAutocolumns}Show auto columns{:else}Hide auto columns{/if}
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte
index 8af3f3f3f1..38dfcbf26a 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte
@@ -1,5 +1,5 @@
-
+
+ Manage access
+
0}
- icon={table._id === TableNames.USERS ? "UserGroup" : "Table"}
+ icon={table._id === TableNames.USERS ? 'UserGroup' : 'Table'}
text={table.name}
selected={selectedView === `all_${table._id}`}
- on:click={() => selectTable(table)}
- >
+ on:click={() => selectTable(table)}>
{#if table._id !== TableNames.USERS}
{/if}
@@ -46,14 +45,12 @@
{#each Object.keys(table.views || {}) as viewName, idx (idx)}
onClickView(table, viewName)}
- >
+ on:click={() => onClickView(table, viewName)}>
+ view={{ name: viewName, ...table.views[viewName] }} />
{/each}
{/each}
diff --git a/packages/builder/src/components/backend/TableNavigator/popovers/EditViewPopover.svelte b/packages/builder/src/components/backend/TableNavigator/popovers/EditViewPopover.svelte
index 929afd2ad6..1bd9798fdb 100644
--- a/packages/builder/src/components/backend/TableNavigator/popovers/EditViewPopover.svelte
+++ b/packages/builder/src/components/backend/TableNavigator/popovers/EditViewPopover.svelte
@@ -1,40 +1,30 @@
-
-
+
+
-
- {#if editing}
-
-
Edit View
-
-
-
- {:else}
-
-
-
-
- {/if}
-
-
+
+
+
+
+
+
+
+
-
-
+ title="Confirm Deletion" />
diff --git a/packages/builder/src/components/common/ConfirmDialog.svelte b/packages/builder/src/components/common/ConfirmDialog.svelte
index 27a7517fce..526a5c6f68 100644
--- a/packages/builder/src/components/common/ConfirmDialog.svelte
+++ b/packages/builder/src/components/common/ConfirmDialog.svelte
@@ -1,5 +1,5 @@
-
+
{#each enrichedStructure as item}
onItemChosen(item)}
- >
- {item.name}
+ on:click={() => onItemChosen(item)}>
+
+ {item.name}
+ {#if item.isCategory}
+
+ {/if}
+
{#each item.children || [] as item}
{#if !item.showOnAsset || item.showOnAsset.includes($currentAssetName)}
{/if}
{/each}
{/each}
-
+
+
+
diff --git a/packages/builder/src/components/design/AppPreview/componentStructure.json b/packages/builder/src/components/design/AppPreview/componentStructure.json
index 267289a804..91f039fe68 100644
--- a/packages/builder/src/components/design/AppPreview/componentStructure.json
+++ b/packages/builder/src/components/design/AppPreview/componentStructure.json
@@ -7,7 +7,7 @@
"search",
{
"name": "Form",
- "icon": "ri-file-edit-line",
+ "icon": "Form",
"children": [
"form",
"fieldgroup",
@@ -24,7 +24,7 @@
},
{
"name": "Card",
- "icon": "ri-archive-drawer-line",
+ "icon": "Card",
"children": [
"stackedlist",
"card",
@@ -34,7 +34,7 @@
},
{
"name": "Chart",
- "icon": "ri-bar-chart-2-line",
+ "icon": "GraphBarVertical",
"children": [
"bar",
"line",
@@ -46,7 +46,7 @@
},
{
"name": "Elements",
- "icon": "ri-paragraph",
+ "icon": "TextParagraph",
"children": [
"heading",
"text",
@@ -59,7 +59,7 @@
},
{
"name": "Other",
- "icon": "ri-more-2-line",
+ "icon": "More",
"children": [
"screenslot",
"navigation",
diff --git a/packages/builder/src/components/settings/ThemeEditor.svelte b/packages/builder/src/components/settings/ThemeEditor.svelte
index 9c7235ce62..d971f01764 100644
--- a/packages/builder/src/components/settings/ThemeEditor.svelte
+++ b/packages/builder/src/components/settings/ThemeEditor.svelte
@@ -1,8 +1,11 @@
-
+
diff --git a/packages/builder/src/components/start/AppCard.svelte b/packages/builder/src/components/start/AppCard.svelte
index 7d568ee4cc..17852c57d6 100644
--- a/packages/builder/src/components/start/AppCard.svelte
+++ b/packages/builder/src/components/start/AppCard.svelte
@@ -44,7 +44,7 @@