From c97fc61f77bec633102db80878f0147e9476341a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 27 Apr 2021 16:41:43 +0200 Subject: [PATCH] update progressbar to use new API --- .../bbui/src/ProgressBar/ProgressBar.svelte | 83 ++++++++++++------- packages/bbui/src/index.js | 1 - 2 files changed, 54 insertions(+), 30 deletions(-) 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/index.js b/packages/bbui/src/index.js index 312d87b436..f0bf22f9e7 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -21,7 +21,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"