diff --git a/packages/bbui/src/ColorPicker/ColorPicker.svelte b/packages/bbui/src/ColorPicker/ColorPicker.svelte index 4d248d6190..ff6a292d1b 100644 --- a/packages/bbui/src/ColorPicker/ColorPicker.svelte +++ b/packages/bbui/src/ColorPicker/ColorPicker.svelte @@ -19,7 +19,7 @@ const dispatch = createEventDispatcher() const categories = [ { - label: "Grays", + label: "Theme", colors: [ "gray-50", "gray-75", @@ -72,6 +72,9 @@ "blue-700", "indigo-700", "magenta-700", + + "static-white", + "static-black", ], }, ] @@ -101,9 +104,19 @@ } const getCheckColor = value => { - return /^.*(white|(gray-(50|75|100|200|300|400|500)))\)$/.test(value) - ? "var(--spectrum-global-color-gray-900)" - : "var(--spectrum-global-color-gray-50)" + // Use dynamic color for theme grays + if (value?.includes("gray")) { + return /^.*(gray-(50|75|100|200|300|400|500))\)$/.test(value) + ? "var(--spectrum-global-color-gray-900)" + : "var(--spectrum-global-color-gray-50)" + } + + // Use black check for static white + if (value?.includes("static-black")) { + return "var(--spectrum-global-color-static-gray-50)" + } + + return "var(--spectrum-global-color-static-gray-900)" } diff --git a/packages/builder/src/components/design/PropertiesPanel/componentStyles.js b/packages/builder/src/components/design/PropertiesPanel/componentStyles.js index d0e67431bc..4e6b5dc166 100644 --- a/packages/builder/src/components/design/PropertiesPanel/componentStyles.js +++ b/packages/builder/src/components/design/PropertiesPanel/componentStyles.js @@ -14,6 +14,7 @@ export const margin = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -34,6 +35,7 @@ export const margin = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -54,6 +56,7 @@ export const margin = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -74,6 +77,7 @@ export const margin = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -101,6 +105,7 @@ export const padding = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -121,6 +126,7 @@ export const padding = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -141,6 +147,7 @@ export const padding = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, @@ -161,6 +168,7 @@ export const padding = { options: [ { label: "4px", value: "4px" }, { label: "8px", value: "8px" }, + { label: "12px", value: "12px" }, { label: "16px", value: "16px" }, { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index bff602e469..a45283d63a 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -268,6 +268,10 @@ { "label": "Warning", "value": "warning" + }, + { + "label": "Over Background", + "value": "overBackground" } ], "defaultValue": "primary" @@ -596,6 +600,9 @@ "showInBar": true, "barStyle": "picker", "options": [{ + "label": "Extra Small", + "value": "XS" + }, { "label": "Small", "value": "S" }, { @@ -604,6 +611,15 @@ }, { "label": "Large", "value": "L" + }, { + "label": "Extra Large", + "value": "XL" + }, { + "label": "2XL", + "value": "XXL" + }, { + "label": "3XL", + "value": "XXXL" }] }, { @@ -690,6 +706,9 @@ "showInBar": true, "barStyle": "picker", "options": [{ + "label": "Extra Small", + "value": "XS" + }, { "label": "Small", "value": "S" }, { @@ -698,6 +717,15 @@ }, { "label": "Large", "value": "L" + }, { + "label": "Extra Large", + "value": "XL" + }, { + "label": "2XL", + "value": "XXL" + }, { + "label": "3XL", + "value": "XXXL" }] }, { diff --git a/packages/standard-components/package.json b/packages/standard-components/package.json index 335a7a8caa..17f50fbad5 100644 --- a/packages/standard-components/package.json +++ b/packages/standard-components/package.json @@ -34,6 +34,7 @@ "gitHead": "d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc", "dependencies": { "@budibase/bbui": "^0.9.105-alpha.8", + "@spectrum-css/button": "^3.0.3", "@spectrum-css/card": "^3.0.3", "@spectrum-css/divider": "^1.0.3", "@spectrum-css/link": "^3.1.3", diff --git a/packages/standard-components/src/Button.svelte b/packages/standard-components/src/Button.svelte index 22cc286bf4..ed465e3e66 100644 --- a/packages/standard-components/src/Button.svelte +++ b/packages/standard-components/src/Button.svelte @@ -1,5 +1,6 @@