diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte index 688d3bf7e4..9dd5c68f43 100644 --- a/packages/bbui/src/ActionButton/ActionButton.svelte +++ b/packages/bbui/src/ActionButton/ActionButton.svelte @@ -10,11 +10,7 @@ export let disabled = false export let icon = "" - export let xl = false - export let l = false - export let m = false - export let s = false - $: useDefault = ![xl, l, m, s].includes(true) + export let size = "M" function longPress(element) { if (!longPressable) return @@ -42,11 +38,7 @@ class:spectrum-ActionButton--quiet={quiet} class:spectrum-ActionButton--emphasized={emphasized} class:is-selected={selected} - class:spectrum-ActionButton--sizeS={s} - class:spectrum-ActionButton--sizeM={m || useDefault} - class:spectrum-ActionButton--sizeL={l} - class:spectrum-ActionButton--sizeXL={xl} - class="spectrum-ActionButton" + class="spectrum-ActionButton spectrum-ActionButton--size{size}" {disabled} on:longPress on:click|preventDefault @@ -62,11 +54,7 @@ {/if} {#if icon}
- -
- - -
- -
-
- -
- -
-
- -
- -
-
diff --git a/packages/bbui/src/ClearButton/ClearButton.svelte b/packages/bbui/src/ClearButton/ClearButton.svelte index e6457d4857..5a2f6bc04c 100644 --- a/packages/bbui/src/ClearButton/ClearButton.svelte +++ b/packages/bbui/src/ClearButton/ClearButton.svelte @@ -1,10 +1,19 @@ - \ No newline at end of file + diff --git a/packages/bbui/src/DetailSummary/DetailSummary.svelte b/packages/bbui/src/DetailSummary/DetailSummary.svelte index 3ff8462776..1c39bc6aa7 100644 --- a/packages/bbui/src/DetailSummary/DetailSummary.svelte +++ b/packages/bbui/src/DetailSummary/DetailSummary.svelte @@ -20,7 +20,7 @@
{name}
- +
diff --git a/packages/bbui/src/Divider/Divider.svelte b/packages/bbui/src/Divider/Divider.svelte index cc50225d2f..2b4de9cfb0 100644 --- a/packages/bbui/src/Divider/Divider.svelte +++ b/packages/bbui/src/Divider/Divider.svelte @@ -1,23 +1,19 @@
+ class="spectrum-Divider spectrum-Divider--{vertical + ? 'vertical' + : 'horizontal'} spectrum-Dialog-divider spectrum-Divider--size{size}" +/> diff --git a/packages/bbui/src/Icon/Icon.svelte b/packages/bbui/src/Icon/Icon.svelte index 5e421cd753..847896178e 100644 --- a/packages/bbui/src/Icon/Icon.svelte +++ b/packages/bbui/src/Icon/Icon.svelte @@ -6,26 +6,18 @@ export let direction = "n" export let name = "Add" export let hidden = false - export let s = false - export let m = false - export let l = false - export let xl = false + export let size = "M" export let hoverable = false export let disabled = false $: rotation = directions.indexOf(direction) * 45 - $: useDefault = ![s, m, l, xl].includes(true) - export let href, - icon, - title, - active = false - - - - {#if icon} - - - - {/if} - {#if title} - - {/if} - - - diff --git a/packages/bbui/src/Links/Home.svench b/packages/bbui/src/Links/Home.svench deleted file mode 100644 index 973d7977d0..0000000000 --- a/packages/bbui/src/Links/Home.svench +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/packages/bbui/src/Modal/ModalContent.svelte b/packages/bbui/src/Modal/ModalContent.svelte index a5b2ebb75d..fc5bd48079 100644 --- a/packages/bbui/src/Modal/ModalContent.svelte +++ b/packages/bbui/src/Modal/ModalContent.svelte @@ -42,7 +42,7 @@ {title} - +
diff --git a/packages/bbui/src/ProgressBar/ProgressBar.svelte b/packages/bbui/src/ProgressBar/ProgressBar.svelte index 4b046ec81c..bca427b7ff 100644 --- a/packages/bbui/src/ProgressBar/ProgressBar.svelte +++ b/packages/bbui/src/ProgressBar/ProgressBar.svelte @@ -1,38 +1,63 @@ - -
- {#if $$slots} -
- {/if} - {#if value} -
{Math.round($progress)}%
- {/if} -
-
+
+ {#if $$slots} +
+
- + {/if} + {#if value} +
+ {Math.round($progress)}% +
+ {/if} +
+
+
+ diff --git a/packages/bbui/src/Table/SelectEditRenderer.svelte b/packages/bbui/src/Table/SelectEditRenderer.svelte index 1355666489..d66ac28a32 100644 --- a/packages/bbui/src/Table/SelectEditRenderer.svelte +++ b/packages/bbui/src/Table/SelectEditRenderer.svelte @@ -13,5 +13,5 @@ {/if} {#if allowEditRows} - Edit + Edit {/if} diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 842c88ef14..6413493580 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -10,6 +10,7 @@ export { default as Select } from "./Form/Select.svelte" export { default as Combobox } from "./Form/Combobox.svelte" export { default as Dropzone } from "./Form/Dropzone.svelte" export { default as Drawer } from "./Drawer/Drawer.svelte" +export { default as DrawerContentWithSidebar } from "./Drawer/DrawerContentWithSidebar.svelte" export { default as Avatar } from "./Avatar/Avatar.svelte" export { default as ActionButton } from "./ActionButton/ActionButton.svelte" export { default as ActionGroup } from "./ActionGroup/ActionGroup.svelte" @@ -21,7 +22,6 @@ export { default as Icon, directions } from "./Icon/Icon.svelte" export { default as Toggle } from "./Form/Toggle.svelte" export { default as RadioGroup } from "./Form/RadioGroup.svelte" export { default as Checkbox } from "./Form/Checkbox.svelte" -export { default as Home } from "./Links/Home.svelte" export { default as DetailSummary } from "./DetailSummary/DetailSummary.svelte" export { default as Popover } from "./Popover/Popover.svelte" export { default as ProgressBar } from "./ProgressBar/ProgressBar.svelte" @@ -29,7 +29,6 @@ export { default as ProgressCircle } from "./ProgressCircle/ProgressCircle.svelt export { default as Label } from "./Styleguide/Label.svelte" export { default as Layout } from "./Layout/Layout.svelte" export { default as Link } from "./Link/Link.svelte" -export { default as Close } from "./Button/Close.svelte" export { default as Menu } from "./Menu/Menu.svelte" export { default as MenuSection } from "./Menu/Section.svelte" export { default as MenuSeparator } from "./Menu/Separator.svelte" diff --git a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte index 2c37e97956..4e6a0d9c18 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte @@ -66,7 +66,7 @@
onChangeTab(idx)}> diff --git a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte index 2eefac0ea8..20fb152691 100644 --- a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte @@ -47,8 +47,4 @@ justify-content: flex-end; align-items: center; } - - div.icon i { - font-size: 16px; - } diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte index da50ae905a..6729c502c0 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte @@ -1,6 +1,6 @@ - {#each enrichedStructure as item, idx} + {#each enrichedStructure as item} onItemChosen(item, idx)} + on:click={() => onItemChosen(item)} > {item.name} diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte index 8cf46facc6..9490773621 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte @@ -68,7 +68,7 @@
- +
Delete
- +
Edit Delete diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte index b6ec6b7e00..899551d5bc 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte @@ -25,7 +25,7 @@
- +
Delete
diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index 647d7a00a5..16cc8409d5 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -1,6 +1,6 @@ -
-
-
- - - {#if context} + + + + + {#if context} +
Columns -
    - {#each context.filter(context => + {#each context.filter((context) => context.readableBinding.match(searchRgx) ) as { readableBinding }}
  • addToText(readableBinding)}> @@ -74,13 +73,13 @@
  • {/each}
- {/if} - - {#if instance} +
+ {/if} + {#if instance} +
Components -
    - {#each instance.filter(instance => + {#each instance.filter((instance) => instance.readableBinding.match(searchRgx) ) as { readableBinding }}
  • addToText(readableBinding)}> @@ -88,12 +87,12 @@
  • {/each}
- {/if} - +
+ {/if} +
Helpers -
    - {#each helpers.filter(helper => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper} + {#each helpers.filter((helper) => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper}
  • addToText(helper.text)}>
    @@ -105,48 +104,32 @@
  • {/each}
-
-
-