From 03458f0f34c4eee7ae31eadb525f11ec8aa213fa Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Mon, 12 Sep 2022 00:02:29 +0100 Subject: [PATCH] Usage tooltips and server accurate remaining days calculations --- .../bbui/src/InlineAlert/InlineAlert.svelte | 3 ++- packages/bbui/src/index.js | 1 + .../src/components/usage/UsageDashCard.svelte | 17 ++++++++++-- .../builder/portal/settings/usage.svelte | 26 ++++++++++++------- 4 files changed, 35 insertions(+), 12 deletions(-) diff --git a/packages/bbui/src/InlineAlert/InlineAlert.svelte b/packages/bbui/src/InlineAlert/InlineAlert.svelte index b99399bf8b..94ac6b2c2a 100644 --- a/packages/bbui/src/InlineAlert/InlineAlert.svelte +++ b/packages/bbui/src/InlineAlert/InlineAlert.svelte @@ -6,6 +6,7 @@ export let header = "" export let message = "" export let onConfirm = undefined + export let buttonText = "" $: icon = selectIcon(type) // if newlines used, convert them to different elements @@ -40,7 +41,7 @@ {/each} {#if onConfirm} {/if} diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index b45f3e9ed6..11424b1261 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -34,6 +34,7 @@ export { default as Layout } from "./Layout/Layout.svelte" export { default as Page } from "./Layout/Page.svelte" export { default as Link } from "./Link/Link.svelte" export { default as Tooltip } from "./Tooltip/Tooltip.svelte" +export { default as TooltipWrapper } from "./Tooltip/TooltipWrapper.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/usage/UsageDashCard.svelte b/packages/builder/src/components/usage/UsageDashCard.svelte index cc6cdf1b24..6dd0b3d969 100644 --- a/packages/builder/src/components/usage/UsageDashCard.svelte +++ b/packages/builder/src/components/usage/UsageDashCard.svelte @@ -1,5 +1,12 @@