From 2af1dc1059ba9dd4728c3988fe9822e696bf01f3 Mon Sep 17 00:00:00 2001 From: mitchthorson Date: Fri, 1 Mar 2024 18:18:19 -0500 Subject: [PATCH 1/7] Add Button component --- src/lib/Button/Button.stories.svelte | 146 +++++++++++++++++++++++++++ src/lib/Button/Button.svelte | 144 ++++++++++++++++++++++++++ src/lib/Button/IconDownload.svelte | 12 +++ 3 files changed, 302 insertions(+) create mode 100644 src/lib/Button/Button.stories.svelte create mode 100644 src/lib/Button/Button.svelte create mode 100644 src/lib/Button/IconDownload.svelte diff --git a/src/lib/Button/Button.stories.svelte b/src/lib/Button/Button.stories.svelte new file mode 100644 index 00000000..4c1e4c93 --- /dev/null +++ b/src/lib/Button/Button.stories.svelte @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/lib/Button/Button.svelte b/src/lib/Button/Button.svelte new file mode 100644 index 00000000..238e6625 --- /dev/null +++ b/src/lib/Button/Button.svelte @@ -0,0 +1,144 @@ + + + + diff --git a/src/lib/Button/IconDownload.svelte b/src/lib/Button/IconDownload.svelte new file mode 100644 index 00000000..37108958 --- /dev/null +++ b/src/lib/Button/IconDownload.svelte @@ -0,0 +1,12 @@ + + + + + From dd18b269126c466a73073506aec7916deae78672 Mon Sep 17 00:00:00 2001 From: mitchthorson Date: Fri, 1 Mar 2024 18:19:46 -0500 Subject: [PATCH 2/7] export button and add changelog --- CHANGELOG.md | 1 + src/lib/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0bc86a2..69abf179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # @UrbanInstitute/dataviz-components Changelog ## Next +- Add Button component ## 0.4.0 diff --git a/src/lib/index.js b/src/lib/index.js index b57b87e3..6a46d90d 100644 --- a/src/lib/index.js +++ b/src/lib/index.js @@ -12,3 +12,4 @@ export { default as ReturnTop } from "./ReturnTop/ReturnTop.svelte"; export { default as Scorecard } from "./Scorecard/Scorecard.svelte"; export { default as SocialShare } from "./SocialShare/SocialShare.svelte"; export { default as TextBlock } from "./TextBlock/TextBlock.svelte"; +export { default as Button } from "./Button/Button.svelte"; From 3d08b9ab336dcb1a5a060c1afc7dcbf44a9d2c6f Mon Sep 17 00:00:00 2001 From: Mitchell Thorson Date: Mon, 4 Mar 2024 11:50:58 -0500 Subject: [PATCH 3/7] Remove extra imports --- src/lib/Button/Button.stories.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/Button/Button.stories.svelte b/src/lib/Button/Button.stories.svelte index 4c1e4c93..8b56f208 100644 --- a/src/lib/Button/Button.stories.svelte +++ b/src/lib/Button/Button.stories.svelte @@ -31,7 +31,6 @@