From 5da296ed5dfb9f0c6ae7033ea4632d0ceb8b6955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 14 Apr 2021 14:52:25 +0200 Subject: [PATCH] adds divider component --- packages/bbui/package.json | 1 + packages/bbui/src/Divider/Divider.svelte | 14 +++++++++++++ packages/bbui/src/Modal/ModalContent.svelte | 8 ++++---- packages/bbui/src/Tabs/Tabs.svelte | 20 +++++++++++++++++++ packages/bbui/src/index.js | 1 + packages/bbui/yarn.lock | 5 +++++ .../SetupPanel/AutomationBindingPanel.svelte | 6 +++--- .../PropertiesPanel/BindingPanel.svelte | 6 +++--- .../PropertyControls/DataSourceSelect.svelte | 4 ++-- .../src/components/start/AppCard.svelte | 2 +- .../src/components/start/AppList.svelte | 20 ++++++++----------- .../builder/src/pages/builder/index.svelte | 2 +- 12 files changed, 63 insertions(+), 26 deletions(-) create mode 100644 packages/bbui/src/Divider/Divider.svelte create mode 100644 packages/bbui/src/Tabs/Tabs.svelte diff --git a/packages/bbui/package.json b/packages/bbui/package.json index d5676edf5e..8b3e6f6c63 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -57,6 +57,7 @@ "@spectrum-css/modal": "^3.0.1", "@spectrum-css/popover": "^3.0.1", "@spectrum-css/table": "^3.0.1", + "@spectrum-css/tabs": "^3.0.1", "@spectrum-css/toast": "^3.0.1", "@spectrum-css/typography": "^3.0.1", "@spectrum-css/underlay": "^2.0.9", diff --git a/packages/bbui/src/Divider/Divider.svelte b/packages/bbui/src/Divider/Divider.svelte new file mode 100644 index 0000000000..e238b98799 --- /dev/null +++ b/packages/bbui/src/Divider/Divider.svelte @@ -0,0 +1,14 @@ + + +
\ No newline at end of file diff --git a/packages/bbui/src/Modal/ModalContent.svelte b/packages/bbui/src/Modal/ModalContent.svelte index c07bc57b43..02c3b482b7 100644 --- a/packages/bbui/src/Modal/ModalContent.svelte +++ b/packages/bbui/src/Modal/ModalContent.svelte @@ -1,8 +1,8 @@ +
+
+ Tab 1 +
+
+ Tab 2 +
+
+ Tab 3 +
+
+ Tab 4 +
+
+
\ No newline at end of file diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 8ebbf019df..56c2c955a0 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -37,6 +37,7 @@ export { default as Multiselect } from "./Form/Multiselect.svelte" export { default as Slider } from "./Form/Slider.svelte" export { default as Context } from "./context" export { default as Table } from "./Table/Table.svelte" +export { default as Divider } from "./Divider/Divider.svelte" // Typography export { default as Body } from "./Typography/Body.svelte" diff --git a/packages/bbui/yarn.lock b/packages/bbui/yarn.lock index 39e15ff5ae..011221f823 100644 --- a/packages/bbui/yarn.lock +++ b/packages/bbui/yarn.lock @@ -480,6 +480,11 @@ resolved "https://registry.yarnpkg.com/@spectrum-css/table/-/table-3.0.1.tgz#753e0e2498082c0c36b9600828516aff3ac338cd" integrity sha512-XQ+srMTv9hK1H0nctWUtqyzitmvyb5TNR+7mjAmKRdkBRSTQQSipDhenxZp72ekzMtMoSYZVZ77kgo0Iw3Fpug== +"@spectrum-css/tabs@^3.0.1": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@spectrum-css/tabs/-/tabs-3.0.1.tgz#81cebae7a0db0056834c2b8fdf0df3e71aaaa812" + integrity sha512-uyWGiSuv+rKY57RVnNkYe0+8fQxgXtQl09JAmqyqUnvlX5b9sHG/R5TP7ExZ8C7BgE8hzVjPVAMH3RMEQERGUQ== + "@spectrum-css/toast@^3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@spectrum-css/toast/-/toast-3.0.1.tgz#36f62ea05302761e59b9d53e05f6c04423861796" diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte index bda233f9f2..da50ae905a 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte @@ -46,12 +46,12 @@
- Available bindings + Available bindings {#each categories as [categoryName, bindings]} - {categoryName} + {categoryName} {#each bindableProperties.filter(binding => binding.label.match(searchRgx) @@ -64,7 +64,7 @@
{/each} {/each} - Helpers + Helpers {#each helpers.filter(helper => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper}
addToText(helper)}> diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index 6656d23eac..99f17c13d6 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -63,7 +63,7 @@ {#if context} - Columns + Columns
    {#each context.filter(context => @@ -77,7 +77,7 @@ {/if} {#if instance} - Components + Components
      {#each instance.filter(instance => @@ -90,7 +90,7 @@
    {/if} - Helpers + Helpers
      {#each helpers.filter(helper => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper} diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte index 85ccf000b9..f1446ae3dd 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte @@ -137,7 +137,7 @@