diff --git a/packages/bbui/src/Form/PickerDropdown.svelte b/packages/bbui/src/Form/PickerDropdown.svelte deleted file mode 100644 index bf490ff2d7..0000000000 --- a/packages/bbui/src/Form/PickerDropdown.svelte +++ /dev/null @@ -1,132 +0,0 @@ - - - - - diff --git a/packages/bbui/src/Icon/IconAvatar.svelte b/packages/bbui/src/Icon/IconAvatar.svelte index b046e4dfd5..8537ed91d1 100644 --- a/packages/bbui/src/Icon/IconAvatar.svelte +++ b/packages/bbui/src/Icon/IconAvatar.svelte @@ -1,16 +1,15 @@ - diff --git a/packages/bbui/src/IconPicker/IconPicker.svelte b/packages/bbui/src/IconPicker/IconPicker.svelte index 3cd7a16eb0..a44d6284c2 100644 --- a/packages/bbui/src/IconPicker/IconPicker.svelte +++ b/packages/bbui/src/IconPicker/IconPicker.svelte @@ -1,19 +1,24 @@ - - - - -
(showTooltip = true)} - on:focus={() => (showTooltip = true)} - on:mouseleave={() => (showTooltip = false)} - on:click -> - - {#if tooltip && showTooltip} -
- -
- {/if} -
- - diff --git a/packages/bbui/src/InlineAlert/InlineAlert.svelte b/packages/bbui/src/InlineAlert/InlineAlert.svelte index 34a286e670..0eeabce897 100644 --- a/packages/bbui/src/InlineAlert/InlineAlert.svelte +++ b/packages/bbui/src/InlineAlert/InlineAlert.svelte @@ -1,22 +1,22 @@ - diff --git a/packages/bbui/src/Label/Label.svelte b/packages/bbui/src/Label/Label.svelte index 41e1ccf794..7afe8875e9 100644 --- a/packages/bbui/src/Label/Label.svelte +++ b/packages/bbui/src/Label/Label.svelte @@ -1,10 +1,10 @@ - diff --git a/packages/bbui/src/Layout/Layout.svelte b/packages/bbui/src/Layout/Layout.svelte index 6a01d9bece..b3de7b49db 100644 --- a/packages/bbui/src/Layout/Layout.svelte +++ b/packages/bbui/src/Layout/Layout.svelte @@ -1,12 +1,17 @@ -
+
diff --git a/packages/bbui/src/Markdown/MarkdownEditor.svelte b/packages/bbui/src/Markdown/MarkdownEditor.svelte index 2f18c9d634..857929f227 100644 --- a/packages/bbui/src/Markdown/MarkdownEditor.svelte +++ b/packages/bbui/src/Markdown/MarkdownEditor.svelte @@ -1,20 +1,20 @@ - diff --git a/packages/bbui/src/Menu/Menu.svench b/packages/bbui/src/Menu/Menu.svench deleted file mode 100644 index 1da76869ba..0000000000 --- a/packages/bbui/src/Menu/Menu.svench +++ /dev/null @@ -1,19 +0,0 @@ - - - -
- Some Item 1 - Some Item 2 - Some Item 3 -
- -
- Save - Download -
-
\ No newline at end of file diff --git a/packages/bbui/src/Menu/Section.svelte b/packages/bbui/src/Menu/Section.svelte index 5aea52b029..0f0d3dd25d 100644 --- a/packages/bbui/src/Menu/Section.svelte +++ b/packages/bbui/src/Menu/Section.svelte @@ -1,5 +1,5 @@ -
  • diff --git a/packages/bbui/src/Modal/Content.svelte b/packages/bbui/src/Modal/Content.svelte index 485229acd6..22743cead3 100644 --- a/packages/bbui/src/Modal/Content.svelte +++ b/packages/bbui/src/Modal/Content.svelte @@ -1,7 +1,7 @@ - diff --git a/packages/bbui/src/Modal/CustomContent.svelte b/packages/bbui/src/Modal/CustomContent.svelte index db144e87a7..952f7e8749 100644 --- a/packages/bbui/src/Modal/CustomContent.svelte +++ b/packages/bbui/src/Modal/CustomContent.svelte @@ -1,11 +1,11 @@ - - - - -

    Modals

    -

    - Modals provide a means to render content in front of everything else on a page. -

    -

    - The modal module in BBUI exposes two - separate components to provide this functionality; a Modal component to control visibility of content, - and a ModalContent component to quickly construct the typical content - although this is optional. -

    -

    - One of the common problems with modals and popups is stale state reappearing after hiding and showing the content - again, since the state hasn't been garbage collected if a component controls its own visibility. This is handled for - you when using the Modal component as it will fully unmount child components, properly resetting state - every time it appears. -

    - -
    -

    Use ModalContent to render typical modal content.

    - - - - - Are you sure you want to delete this record? - - - - -
    -

    - Width can be specified as a prop to a Modal. Any additional ModalContent props provided - will be passed to the confirmation button. -

    - - - - - Are you sure you want to do that? - - - - -
    -

    Any content can be rendered inside a Modal. Use context to close the modal from your own components.

    - - - - - - - -
    -

    Async functions passed in as the onConfirm prop will make the modal wait until the callback is completed.

    - - - - - Pressing submit will wait 3 seconds before finishing and disable the confirm button until it's done. - - - - -
    -

    Returning false from a onConfirm callback will prevent the modal being closed.

    - - - - - - - diff --git a/packages/bbui/src/Modal/ModalContent.svelte b/packages/bbui/src/Modal/ModalContent.svelte index 8a80b2fdb9..a8a26c9b19 100644 --- a/packages/bbui/src/Modal/ModalContent.svelte +++ b/packages/bbui/src/Modal/ModalContent.svelte @@ -1,8 +1,8 @@ - - - - - {#if error} -

    Wrong answer! Try again.

    - {/if} -

    What is 4 + 4?

    - -
    - - diff --git a/packages/bbui/src/Notification/Notification.svelte b/packages/bbui/src/Notification/Notification.svelte index fbc7197e36..70980ac58a 100644 --- a/packages/bbui/src/Notification/Notification.svelte +++ b/packages/bbui/src/Notification/Notification.svelte @@ -1,17 +1,17 @@ -
    diff --git a/packages/bbui/src/Notification/NotificationDisplay.svelte b/packages/bbui/src/Notification/NotificationDisplay.svelte index 6b7e68cece..0334238eb5 100644 --- a/packages/bbui/src/Notification/NotificationDisplay.svelte +++ b/packages/bbui/src/Notification/NotificationDisplay.svelte @@ -1,4 +1,4 @@ -