From 9e2cf6617324fc1dd1d0ca0b846ce8466bb97e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 9 Apr 2021 14:44:48 +0200 Subject: [PATCH] adds Link component to bbui --- package.json | 1 + .../ActionButton.svelte | 0 .../ActionGroup.svelte | 0 packages/bbui/src/Button/TextButton.svelte | 128 ------------------ packages/bbui/src/Button/TextButton.svench | 69 ---------- packages/bbui/src/Drawer/Drawer.svelte | 2 +- packages/bbui/src/Link/Link.svelte | 17 +++ packages/bbui/src/Menu/ActionMenu.svelte | 0 packages/bbui/src/Menu/Menu.svelte | 0 packages/bbui/src/index.js | 4 +- .../components/settings/tabs/APIKeys.svelte | 6 +- .../settings/tabs/DangerZone.svelte | 2 +- .../src/components/start/AppCard.svelte | 12 +- .../start/BuilderSettingsButton.svelte | 4 +- yarn.lock | 5 + 15 files changed, 38 insertions(+), 212 deletions(-) rename packages/bbui/src/{Button => ActionButton}/ActionButton.svelte (100%) rename packages/bbui/src/{Button => ActionGroup}/ActionGroup.svelte (100%) delete mode 100644 packages/bbui/src/Button/TextButton.svelte delete mode 100644 packages/bbui/src/Button/TextButton.svench create mode 100644 packages/bbui/src/Link/Link.svelte create mode 100644 packages/bbui/src/Menu/ActionMenu.svelte create mode 100644 packages/bbui/src/Menu/Menu.svelte diff --git a/package.json b/package.json index 6ce17d09a0..f2ad3c4428 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "dependencies": { "@spectrum-css/actionbutton": "^1.0.1", "@spectrum-css/actiongroup": "^1.0.1", + "@spectrum-css/link": "^3.1.1", "@spectrum-css/toast": "^3.0.1" } } diff --git a/packages/bbui/src/Button/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte similarity index 100% rename from packages/bbui/src/Button/ActionButton.svelte rename to packages/bbui/src/ActionButton/ActionButton.svelte diff --git a/packages/bbui/src/Button/ActionGroup.svelte b/packages/bbui/src/ActionGroup/ActionGroup.svelte similarity index 100% rename from packages/bbui/src/Button/ActionGroup.svelte rename to packages/bbui/src/ActionGroup/ActionGroup.svelte diff --git a/packages/bbui/src/Button/TextButton.svelte b/packages/bbui/src/Button/TextButton.svelte deleted file mode 100644 index 351a2c45bf..0000000000 --- a/packages/bbui/src/Button/TextButton.svelte +++ /dev/null @@ -1,128 +0,0 @@ - - -{#if href} - -{:else} - -{/if} - - diff --git a/packages/bbui/src/Button/TextButton.svench b/packages/bbui/src/Button/TextButton.svench deleted file mode 100644 index e3c3477805..0000000000 --- a/packages/bbui/src/Button/TextButton.svench +++ /dev/null @@ -1,69 +0,0 @@ - - - - - -
- alert('Clicked!')}> - - Add View - - alert('Clicked!')}> - - Add Column - - alert('Clicked!')}> - - Add Row - - alert('Clicked!')}> - - Disabled Text Button - - alert('Clicked!')}> - - Active Calculation - -
-
- - -
- alert('Clicked!')}> - - Add View - - alert('Clicked!')}> - - Add Column - - alert('Clicked!')}> - - Add Row - - alert('Clicked!')}> - - Delete - - alert('Clicked!')}> - - Calculate - -
-
- - -
- This is a link -
-
diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte index 071509f555..bbae35d25a 100644 --- a/packages/bbui/src/Drawer/Drawer.svelte +++ b/packages/bbui/src/Drawer/Drawer.svelte @@ -1,7 +1,7 @@ + + \ No newline at end of file diff --git a/packages/bbui/src/Menu/ActionMenu.svelte b/packages/bbui/src/Menu/ActionMenu.svelte new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/bbui/src/Menu/Menu.svelte b/packages/bbui/src/Menu/Menu.svelte new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 6e8db956b0..ea479ab031 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -8,9 +8,10 @@ export { default as Select } from "./Form/Select.svelte" export { default as DataList } from "./Form/DataList.svelte" export { default as Dropzone } from "./Dropzone/Dropzone.svelte" export { default as Drawer } from "./Drawer/Drawer.svelte" +export { default as ActionButton } from "./ActionButton/ActionButton.svelte" +export { default as ActionGroup } from "./ActionGroup/ActionGroup.svelte" export { default as Button } from "./Button/Button.svelte" export { default as Icon, iconOptions, directions } from "./Icons/Icon.svelte" -export { default as TextButton } from "./Button/TextButton.svelte" export { default as Toggle } from "./Form/Toggle.svelte" export { default as Radio } from "./Form/Radio.svelte" export { default as Checkbox } from "./Form/Checkbox.svelte" @@ -22,6 +23,7 @@ export { default as Popover } from "./Popover/Popover.svelte" export { default as Body } from "./Styleguide/Body.svelte" export { default as Heading } from "./Styleguide/Heading.svelte" export { default as Label } from "./Styleguide/Label.svelte" +export { default as Link } from "./Link/Link.svelte" export { default as Close } from "./Button/Close.svelte" export { default as Modal } from "./Modal/Modal.svelte" export { default as ModalContent } from "./Modal/ModalContent.svelte" diff --git a/packages/builder/src/components/settings/tabs/APIKeys.svelte b/packages/builder/src/components/settings/tabs/APIKeys.svelte index 729f464fd6..affc3fffd9 100644 --- a/packages/builder/src/components/settings/tabs/APIKeys.svelte +++ b/packages/builder/src/components/settings/tabs/APIKeys.svelte @@ -1,5 +1,5 @@
- diff --git a/yarn.lock b/yarn.lock index 07cfddf1f0..11de11c2dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -834,6 +834,11 @@ resolved "https://registry.yarnpkg.com/@spectrum-css/actiongroup/-/actiongroup-1.0.1.tgz#b95b86e7af229e90fe1e70399d8d4b547b4bd31c" integrity sha512-5Q6uMjzv5BFA2TwGASr/jAtJpTWl26fhWvgGY8kOA0RCSij35l+YJg/FPXf6Nnj2qCOl8DkNycjT9YXJ+bhyVA== +"@spectrum-css/link@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@spectrum-css/link/-/link-3.1.1.tgz#cb526a2e10b50ef5a7ae29cca7272e2610d597eb" + integrity sha512-Bi88lRhTY7g6nM/ryW1yY4Cji211ZYNtRxkxbV7n2lPvwMAAQtyx0qVD3ru4kTGj/FFVvmPR3XiOE10K13HSNA== + "@spectrum-css/toast@^3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@spectrum-css/toast/-/toast-3.0.1.tgz#36f62ea05302761e59b9d53e05f6c04423861796"