+
+
diff --git a/packages/bbui/src/DetailSummary/DetailSummary.svelte b/packages/bbui/src/DetailSummary/DetailSummary.svelte
index 7071ab26d5..518c615504 100644
--- a/packages/bbui/src/DetailSummary/DetailSummary.svelte
+++ b/packages/bbui/src/DetailSummary/DetailSummary.svelte
@@ -2,13 +2,15 @@
import Icon from "../Icon/Icon.svelte"
import { createEventDispatcher } from "svelte"
+ export let name
+ export let show = false
+ export let collapsible = true
+
const dispatch = createEventDispatcher()
-
- export let thin = false
- export let name,
- show = false
-
const onHeaderClick = () => {
+ if (!collapsible) {
+ return
+ }
show = !show
if (show) {
dispatch("open")
@@ -16,14 +18,14 @@
}
-
+
-
{name}
-
+
{name}
+ {#if collapsible}
-
+ {/if}
-
@@ -32,10 +34,9 @@
.property-group-container {
display: flex;
flex-direction: column;
- height: auto;
- justify-content: center;
- border-radius: var(--border-radius-m);
- font-family: var(--font-sans);
+ justify-content: flex-start;
+ align-items: stretch;
+ border-bottom: var(--border-light);
}
.property-group-name {
@@ -45,42 +46,38 @@
flex-direction: row;
justify-content: space-between;
align-items: center;
+ padding: var(--spacing-m) var(--spacing-xl);
+ color: var(--spectrum-global-color-gray-600);
+ transition: color 130ms ease-in-out;
+ }
+ .property-group-name:hover {
+ color: var(--spectrum-global-color-gray-900);
}
.name {
text-align: left;
- font-size: 14px;
+ font-size: var(--font-size-s);
font-weight: 600;
letter-spacing: 0.14px;
- color: var(--ink);
flex: 1 1 auto;
overflow: hidden;
text-overflow: ellipsis;
- text-transform: capitalize;
+ text-transform: uppercase;
white-space: nowrap;
user-select: none;
}
- .name.thin {
- font-size: var(--spectrum-global-dimension-font-size-75);
- }
-
- .icon {
- flex: 0 0 20px;
- text-align: center;
- }
.property-panel {
- /* height: 0px;
- overflow: hidden; */
display: none;
+ padding: var(--spacing-s) var(--spacing-xl) var(--spacing-xl)
+ var(--spacing-xl);
}
.show {
- /* overflow: auto;
- height: auto; */
display: flex;
flex-direction: column;
- flex: 1;
- margin-top: var(--spacing-m);
+ justify-content: flex-start;
+ align-items: stretch;
+ gap: var(--spacing-l);
}
diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte
index fe49b19aa7..5ca413409c 100644
--- a/packages/bbui/src/Form/Core/Picker.svelte
+++ b/packages/bbui/src/Form/Core/Picker.svelte
@@ -20,6 +20,7 @@
export let open = false
export let readonly = false
export let quiet = false
+ export let autoWidth = false
const dispatch = createEventDispatcher()
const onClick = () => {
@@ -41,7 +42,11 @@
aria-haspopup="listbox"
on:mousedown={onClick}
>
-
+
{fieldText}
{#if error}
@@ -67,11 +72,12 @@
use:clickOutside={() => (open = false)}
transition:fly={{ y: -20, duration: 200 }}
class="spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open"
+ class:auto-width={autoWidth}
>
diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ResetFieldsButton.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ResetFieldsButton.svelte
new file mode 100644
index 0000000000..d5b82176ce
--- /dev/null
+++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ResetFieldsButton.svelte
@@ -0,0 +1,43 @@
+
+
+
+
confirmResetFieldsDialog?.show()}
+ >
+ Update form fields
+
+
+
+
diff --git a/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte b/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte
new file mode 100644
index 0000000000..a153c4fc87
--- /dev/null
+++ b/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte
@@ -0,0 +1,50 @@
+
+
+{#if $store.currentView !== "component" && $currentAsset && $store.currentFrontEndType === FrontendTypes.SCREEN}
+
+ {#each screenSettings as def (`${componentInstance._id}-${def.key}`)}
+ setAssetProps(def.key, val)}
+ />
+ {/each}
+
+{/if}
diff --git a/packages/builder/src/components/design/PropertiesPanel/StyleSection.svelte b/packages/builder/src/components/design/PropertiesPanel/StyleSection.svelte
new file mode 100644
index 0000000000..0341c68534
--- /dev/null
+++ b/packages/builder/src/components/design/PropertiesPanel/StyleSection.svelte
@@ -0,0 +1,51 @@
+
+
+
+
+ {#each properties as prop (`${componentInstance._id}-${prop.key}-${prop.label}`)}
+
+
store.actions.components.updateStyle(prop.key, val)}
+ props={getControlProps(prop)}
+ />
+
+ {/each}
+
+
+
+
diff --git a/packages/builder/src/components/design/PropertiesPanel/componentStyles.js b/packages/builder/src/components/design/PropertiesPanel/componentStyles.js
index 3388d1772d..95ca1e52d5 100644
--- a/packages/builder/src/components/design/PropertiesPanel/componentStyles.js
+++ b/packages/builder/src/components/design/PropertiesPanel/componentStyles.js
@@ -1,748 +1,342 @@
-import { Input, Select } from "@budibase/bbui"
-import FlatButtonGroup from "./PropertyControls/FlatButtonGroup"
-import Colorpicker from "./PropertyControls/ColorPicker.svelte"
+import { Input, Select, ColorPicker } from "@budibase/bbui"
-export const layout = [
- {
- label: "Display",
- key: "display",
- control: Select,
- options: [
- { label: "Block", value: "block" },
- { label: "Inline Block", value: "inline-block" },
- { label: "Flex", value: "flex" },
- { label: "Inline Flex", value: "inline-flex" },
- ],
- },
- {
- label: "Direction",
- key: "flex-direction",
- control: FlatButtonGroup,
- buttonProps: [
- { icon: "ri-arrow-right-line", padding: "0px 5px", value: "row" },
- { icon: "ri-arrow-left-line", padding: "0px 5px", value: "rowReverse" },
- { icon: "ri-arrow-down-line", padding: "0px 5px", value: "column" },
- {
- icon: "ri-arrow-up-line",
- padding: "0px 5px",
- value: "columnReverse",
- },
- { icon: "ri-close-line", value: "" },
- ],
- },
- {
- label: "Justify",
- key: "justify-content",
- control: Select,
- options: [
- { label: "Flex Start", value: "flex-start" },
- { label: "Flex End", value: "flex-end" },
- { label: "Center", value: "center" },
- { label: "Space Between", value: "space-between" },
- { label: "Space Around", value: "space-around" },
- { label: "Space Evenly", value: "space-evenly" },
- ],
- },
- {
- label: "Align",
- key: "align-items",
- control: Select,
- options: [
- { label: "Flex Start", value: "flex-start" },
- { label: "Flex End", value: "flex-end" },
- { label: "Center", value: "center" },
- { label: "Baseline", value: "baseline" },
- { label: "Stretch", value: "stretch" },
- ],
- },
- {
- label: "Wrap",
- key: "flex-wrap",
- control: Select,
- options: [
- { label: "Wrap", value: "wrap" },
- { label: "No wrap", value: "nowrap" },
- ],
- },
- {
- label: "Gap",
- key: "gap",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- ],
- },
-]
-
-export const margin = [
- {
- label: "All sides",
- key: "margin",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "128px", value: "128px" },
- { label: "256px", value: "256px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Top",
- key: "margin-top",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "128px", value: "128px" },
- { label: "256px", value: "256px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Right",
- key: "margin-right",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "128px", value: "128px" },
- { label: "256px", value: "256px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Bottom",
- key: "margin-bottom",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "128px", value: "128px" },
- { label: "256px", value: "256px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Left",
- key: "margin-left",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "128px", value: "128px" },
- { label: "256px", value: "256px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
-]
-
-export const padding = [
- {
- label: "All sides",
- key: "padding",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Top",
- key: "padding-top",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Right",
- key: "padding-right",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Bottom",
- key: "padding-bottom",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
- {
- label: "Left",
- key: "padding-left",
- control: Select,
- options: [
- { label: "None", value: "0px" },
- { label: "4px", value: "4px" },
- { label: "8px", value: "8px" },
- { label: "16px", value: "16px" },
- { label: "20px", value: "20px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "64px", value: "64px" },
- { label: "Auto", value: "auto" },
- { label: "100%", value: "100%" },
- ],
- },
-]
-
-export const size = [
- {
- label: "Flex",
- key: "flex",
- control: Select,
- options: [
- { label: "Shrink", value: "0 1 auto" },
- { label: "Grow", value: "1 1 auto" },
- ],
- },
- {
- label: "Width",
- key: "width",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Height",
- key: "height",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Min Width",
- key: "min-width",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Max Width",
- key: "max-width",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Min Height",
- key: "min-height",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Max Height",
- key: "max-height",
- control: Input,
- placeholder: "px",
- },
-]
-
-export const position = [
- {
- label: "Position",
- key: "position",
- control: Select,
- options: [
- { label: "Static", value: "static" },
- { label: "Relative", value: "relative" },
- { label: "Fixed", value: "fixed" },
- { label: "Absolute", value: "absolute" },
- { label: "Sticky", value: "sticky" },
- ],
- },
- {
- label: "Top",
- key: "top",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Right",
- key: "right",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Bottom",
- key: "bottom",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Left",
- key: "left",
- control: Input,
- placeholder: "px",
- },
- {
- label: "Z-index",
- key: "z-index",
- control: Select,
- options: [
- { label: "-9999", value: "-9999" },
- { label: "-3", value: "-3" },
- { label: "-2", value: "-2" },
- { label: "-1", value: "-1" },
- { label: "0", value: "0" },
- { label: "1", value: "1" },
- { label: "2", value: "2" },
- { label: "3", value: "3" },
- { label: "9999", value: "9999" },
- ],
- },
-]
-
-export const typography = [
- {
- label: "Font",
- key: "font-family",
- control: Select,
- options: [
- { label: "Arial", value: "Arial" },
- { label: "Arial Black", value: "Arial Black" },
- { label: "Cursive", value: "Cursive" },
- { label: "Courier", value: "Courier" },
- { label: "Comic Sans MS", value: "Comic Sans MS" },
- { label: "Helvetica", value: "Helvetica" },
- { label: "Helvetica Neue", value: "Helvetica Neue" },
- { label: "Impact", value: "Impact" },
- { label: "Inter", value: "Inter" },
- { label: "Lucida Sans Unicode", value: "Lucida Sans Unicode" },
- { label: "Source Sans Pro", value: "Source Sans Pro" },
- { label: "Times New Roman", value: "Times New Roman" },
- { label: "Verdana", value: "Verdana" },
- ],
- styleBindingProperty: "font-family",
- },
- {
- label: "Weight",
- key: "font-weight",
- control: Select,
- options: [
- { label: "200", value: "200" },
- { label: "300", value: "300" },
- { label: "400", value: "400" },
- { label: "500", value: "500" },
- { label: "600", value: "600" },
- { label: "700", value: "700" },
- { label: "800", value: "800" },
- { label: "900", value: "900" },
- ],
- },
- {
- label: "size",
- key: "font-size",
- control: Select,
- options: [
- { label: "8px", value: "8px" },
- { label: "10px", value: "10px" },
- { label: "12px", value: "12px" },
- { label: "14px", value: "14px" },
- { label: "16px", value: "16px" },
- { label: "18px", value: "18px" },
- { label: "20px", value: "20px" },
- { label: "24px", value: "24px" },
- { label: "32px", value: "32px" },
- { label: "48px", value: "48px" },
- { label: "60px", value: "60px" },
- { label: "72px", value: "72px" },
- ],
- },
- {
- label: "Line H",
- key: "line-height",
- control: Select,
- options: [
- { label: "1", value: "1" },
- { label: "1.25", value: "1.25" },
- { label: "1.5", value: "1.5" },
- { label: "1.75", value: "1.75" },
- { label: "2", value: "2" },
- { label: "4", value: "4" },
- ],
- },
- {
- label: "Color",
- key: "color",
- control: Colorpicker,
- },
- {
- label: "align",
- key: "text-align",
- control: FlatButtonGroup,
- buttonProps: [
- { icon: "ri-align-left", padding: "0px 5px", value: "left" },
- { icon: "ri-align-center", padding: "0px 5px", value: "center" },
- { icon: "ri-align-right", padding: "0px 5px", value: "right" },
- { icon: "ri-align-justify", padding: "0px 5px", value: "justify" },
- { icon: "ri-close-line", value: "" },
- ],
- },
- {
- label: "transform",
- key: "text-transform",
- control: FlatButtonGroup,
- buttonProps: [
- { text: "BB", value: "uppercase" },
- { text: "Bb", value: "capitalize" },
- { text: "bb", value: "lowercase" },
- { icon: "ri-close-line", value: "" },
- ],
- },
- {
- label: "Decoration",
- key: "text-decoration-line",
- control: Select,
- options: [
- { label: "Underline", value: "underline" },
- { label: "Overline", value: "overline" },
- { label: "Line-through", value: "line-through" },
- { label: "Under Over", value: "underline overline" },
- ],
- },
-]
-
-export const background = [
- {
- label: "Color",
- key: "background",
- control: Colorpicker,
- },
- {
- label: "Gradient",
- key: "background-image",
- control: Select,
- options: [
- { label: "None", value: "none" },
- {
- label: "Warm Flame",
- value: "linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);",
- },
- {
- label: "Night Fade",
- value: "linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);",
- },
- {
- label: "Spring Warmth",
- value: "linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);",
- },
- {
- label: "Sunny Morning",
- value: "linear-gradient(120deg, #f6d365 0%, #fda085 100%);",
- },
- {
- label: "Winter Neva",
- value: "linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);",
- },
- {
- label: "Tempting Azure",
- value: "linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);",
- },
- {
- label: "Heavy Rain",
- value: "linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);",
- },
- {
- label: "Deep Blue",
- value: "linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);",
- },
- {
- label: "Near Moon",
- value: "linear-gradient(to top, #5ee7df 0%, #b490ca 100%);",
- },
- {
- label: "Wild Apple",
- value: "linear-gradient(to top, #d299c2 0%, #fef9d7 100%);",
- },
- {
- label: "Plum Plate",
- value: "linear-gradient(135deg, #667eea 0%, #764ba2 100%);",
- },
- {
- label: "Peach Kiss",
- value:
- "radial-gradient(circle farthest-corner at 50% 100%,rgba(255,173,138,.50), rgba(255,248,247,1) 100%);",
- },
- {
- label: "Flamingo Sunrise",
- value:
- "-webkit-radial-gradient(center top, rgb(255, 250, 245), rgb(255, 242, 242))",
- },
- {
- label: "Budi Mist",
- value:
- "radial-gradient(circle, rgba(252,215,212,1) 0%, rgba(255,227,214,1) 50%, rgba(207,218,255,1) 100%);",
- },
- {
- label: "Ballet Slipper",
- value:
- "linear-gradient(135deg, rgba(252,215,212,1) 20%, rgba(207,218,255,1) 100%);",
- },
- {
- label: "Black Noir",
- value:
- "linear-gradient(312deg, rgba(60,60,60,1) 0%, rgba(42,42,42,1) 100%);",
- },
- ],
- },
- {
- label: "Image",
- key: "background",
- control: Input,
- placeholder: "URL",
- },
-]
-
-export const border = [
- {
- label: "Radius",
- key: "border-radius",
- control: Select,
- options: [
- { label: "None", value: "0" },
- { label: "X Small", value: "0.125rem" },
- { label: "Small", value: "0.25rem" },
- { label: "Medium", value: "0.5rem" },
- { label: "Large", value: "1rem" },
- { label: "X Large", value: "2rem" },
- { label: "XX Large", value: "4rem" },
- { label: "Round", value: "5678px" },
- ],
- },
- {
- label: "Width",
- key: "border-width",
- control: Select,
- options: [
- { label: "None", value: "0" },
- { label: "X Small", value: "0.5px" },
- { label: "Small", value: "1px" },
- { label: "Medium", value: "2px" },
- { label: "Large", value: "4px" },
- { label: "X large", value: "8px" },
- ],
- },
- {
- label: "Color",
- key: "border-color",
- control: Colorpicker,
- },
- {
- label: "Style",
- key: "border-style",
- control: Select,
- options: [
- { label: "None", value: "none" },
- { label: "Hidden", value: "hidden" },
- { label: "Dotted", value: "dotted" },
- { label: "Dashed", value: "dashed" },
- { label: "Solid", value: "solid" },
- { label: "Double", value: "double" },
- { label: "Groove", value: "groove" },
- { label: "Ridge", value: "ridge" },
- { label: "Inset", value: "inset" },
- { label: "Outset", value: "outset" },
- ],
- },
-]
-
-export const effects = [
- {
- label: "Opacity",
- key: "opacity",
- control: Select,
- options: [
- { label: "0", value: "0" },
- { label: "0.2", value: "0.2" },
- { label: "0.4", value: "0.4" },
- { label: "0.6", value: "0.6" },
- { label: "0.8", value: "0.8" },
- { label: "1", value: "1" },
- ],
- },
- {
- label: "Rotate",
- key: "transform",
- control: Select,
- options: [
- { label: "None", value: "0" },
- { label: "45 deg", value: "rotate(45deg)" },
- { label: "90 deg", value: "rotate(90deg)" },
- { label: "135 deg", value: "rotate(135deg)" },
- { label: "180 deg", value: "rotate(180deg)" },
- { label: "225 deg", value: "rotate(225deg)" },
- { label: "270 deg", value: "rotate(270deg)" },
- { label: "315 deg", value: "rotate(315deg)" },
- { label: "360 deg", value: "rotate(360deg)" },
- ],
- },
- {
- label: "Shadow",
- key: "box-shadow",
- control: Select,
- options: [
- { label: "None", value: "none" },
- { label: "X Small", value: "0 1px 2px 0 rgba(0, 0, 0, 0.05)" },
- {
- label: "Small",
- value:
- "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
- },
- {
- label: "Medium",
- value:
- "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
- },
- {
- label: "Large",
- value:
- "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
- },
- {
- label: "X Large",
- value:
- "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
- },
- ],
- },
-]
-
-export const transitions = [
- {
- label: "Property",
- key: "transition-property",
- control: Select,
- options: [
- { label: "None", value: "none" },
- { label: "All", value: "all" },
- { label: "Background Color", value: "background color" },
- { label: "Color", value: "color" },
- { label: "Font Size", value: "font size" },
- { label: "Font Weight", value: "font weight" },
- { label: "Height", value: "height" },
- { label: "Margin", value: "margin" },
- { label: "Opacity", value: "opacity" },
- { label: "Padding", value: "padding" },
- { label: "Rotate", value: "rotate" },
- { label: "Shadow", value: "shadow" },
- { label: "Width", value: "width" },
- ],
- },
- {
- label: "Duration",
- key: "transition-duration",
- control: Select,
- placeholder: "sec",
- options: [
- { label: "0.4s", value: "0.4s" },
- { label: "0.6s", value: "0.6s" },
- { label: "0.8s", value: "0.8s" },
- { label: "1s", value: "1s" },
- { label: "2s", value: "2s" },
- { label: "4s", value: "4s" },
- ],
- },
- {
- label: "Ease",
- key: "transition-timing-function",
- control: Select,
- options: [
- { label: "Linear", value: "linear" },
- { label: "Ease", value: "ease" },
- { label: "Ease in", value: "ease-in" },
- { label: "Ease out", value: "ease-out" },
- { label: "Ease in out", value: "ease-in-out" },
- ],
- },
-]
-
-export const allStyles = {
- layout,
- margin,
- padding,
- size,
- position,
- typography,
- background,
- border,
- effects,
- transitions,
+export const margin = {
+ label: "Margin",
+ columns: "1fr 1fr",
+ settings: [
+ {
+ label: "Top",
+ key: "margin-top",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ {
+ label: "Right",
+ key: "margin-right",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ {
+ label: "Bottom",
+ key: "margin-bottom",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ {
+ label: "Left",
+ key: "margin-left",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ ],
}
+
+export const padding = {
+ label: "Padding",
+ columns: "1fr 1fr",
+ settings: [
+ {
+ label: "Top",
+ key: "padding-top",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ {
+ label: "Right",
+ key: "padding-right",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ {
+ label: "Bottom",
+ key: "padding-bottom",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ {
+ label: "Left",
+ key: "padding-left",
+ control: Select,
+ bindable: false,
+ placeholder: "None",
+ options: [
+ { label: "4px", value: "4px" },
+ { label: "8px", value: "8px" },
+ { label: "16px", value: "16px" },
+ { label: "20px", value: "20px" },
+ { label: "32px", value: "32px" },
+ { label: "48px", value: "48px" },
+ { label: "64px", value: "64px" },
+ { label: "128px", value: "128px" },
+ { label: "256px", value: "256px" },
+ { label: "Auto", value: "auto" },
+ { label: "100%", value: "100%" },
+ ],
+ },
+ ],
+}
+
+export const size = {
+ label: "Size",
+ columns: "1fr 1fr",
+ settings: [
+ {
+ label: "Width",
+ key: "width",
+ control: Input,
+ placeholder: "Auto",
+ },
+ {
+ label: "Height",
+ key: "height",
+ control: Input,
+ placeholder: "Auto",
+ },
+ ],
+}
+
+export const background = {
+ label: "Background",
+ columns: "auto 1fr",
+ settings: [
+ {
+ label: "Color",
+ key: "background",
+ control: ColorPicker,
+ },
+ {
+ label: "Gradient",
+ key: "background-image",
+ control: Select,
+ options: [
+ {
+ label: "Warm Flame",
+ value:
+ "linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);",
+ },
+ {
+ label: "Night Fade",
+ value: "linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);",
+ },
+ {
+ label: "Spring Warmth",
+ value: "linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);",
+ },
+ {
+ label: "Sunny Morning",
+ value: "linear-gradient(120deg, #f6d365 0%, #fda085 100%);",
+ },
+ {
+ label: "Winter Neva",
+ value: "linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);",
+ },
+ {
+ label: "Tempting Azure",
+ value: "linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);",
+ },
+ {
+ label: "Heavy Rain",
+ value: "linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);",
+ },
+ {
+ label: "Deep Blue",
+ value: "linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);",
+ },
+ {
+ label: "Near Moon",
+ value: "linear-gradient(to top, #5ee7df 0%, #b490ca 100%);",
+ },
+ {
+ label: "Wild Apple",
+ value: "linear-gradient(to top, #d299c2 0%, #fef9d7 100%);",
+ },
+ {
+ label: "Plum Plate",
+ value: "linear-gradient(135deg, #667eea 0%, #764ba2 100%);",
+ },
+ {
+ label: "Peach Kiss",
+ value:
+ "radial-gradient(circle farthest-corner at 50% 100%,rgba(255,173,138,.50), rgba(255,248,247,1) 100%);",
+ },
+ {
+ label: "Flamingo Sunrise",
+ value:
+ "-webkit-radial-gradient(center top, rgb(255, 250, 245), rgb(255, 242, 242))",
+ },
+ {
+ label: "Budi Mist",
+ value:
+ "radial-gradient(circle, rgba(252,215,212,1) 0%, rgba(255,227,214,1) 50%, rgba(207,218,255,1) 100%);",
+ },
+ {
+ label: "Ballet Slipper",
+ value:
+ "linear-gradient(135deg, rgba(252,215,212,1) 20%, rgba(207,218,255,1) 100%);",
+ },
+ {
+ label: "Black Noir",
+ value:
+ "linear-gradient(312deg, rgba(60,60,60,1) 0%, rgba(42,42,42,1) 100%);",
+ },
+ ],
+ },
+ ],
+}
+
+export const border = {
+ label: "Border",
+ columns: "auto 1fr",
+ settings: [
+ {
+ label: "Color",
+ key: "border-color",
+ control: ColorPicker,
+ },
+ {
+ label: "Width",
+ key: "border-width",
+ control: Select,
+ options: [
+ { label: "Small", value: "1px" },
+ { label: "Medium", value: "2px" },
+ { label: "Large", value: "4px" },
+ ],
+ },
+ {
+ label: "Radius",
+ key: "border-radius",
+ control: Select,
+ column: "1 / 3",
+ options: [
+ { label: "Small", value: "0.25rem" },
+ { label: "Medium", value: "0.5rem" },
+ { label: "Large", value: "1rem" },
+ { label: "Round", value: "100%" },
+ ],
+ },
+ {
+ label: "Shadow",
+ key: "box-shadow",
+ control: Select,
+ column: "1 / 3",
+ options: [
+ {
+ label: "Small",
+ value:
+ "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
+ },
+ {
+ label: "Medium",
+ value:
+ "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
+ },
+ {
+ label: "Large",
+ value:
+ "0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
+ },
+ ],
+ },
+ ],
+}
+
+export const all = [margin]
diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/index.svelte
index f805a5724f..5d8e2ca100 100644
--- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/index.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/index.svelte
@@ -62,15 +62,17 @@
{#if datasource && integration}
-
- {integration.description}
+
+
+ {integration.description}
+