diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte
index f8acd9024c..136a4fe24b 100644
--- a/packages/bbui/src/Avatar/Avatar.svelte
+++ b/packages/bbui/src/Avatar/Avatar.svelte
@@ -4,7 +4,7 @@
["XXS", "--spectrum-alias-avatar-size-50"],
["XS", "--spectrum-alias-avatar-size-75"],
["S", "--spectrum-alias-avatar-size-200"],
- ["M", "--spectrum-alias-avatar-size-300"],
+ ["M", "--spectrum-alias-avatar-size-400"],
["L", "--spectrum-alias-avatar-size-500"],
["XL", "--spectrum-alias-avatar-size-600"],
["XXL", "--spectrum-alias-avatar-size-700"],
@@ -13,6 +13,19 @@
export let url = ""
export let disabled = false
export let initials = "JD"
+
+ const DefaultColor = "#3aab87"
+
+ $: color = getColor(initials)
+
+ const getColor = initials => {
+ if (!initials?.length) {
+ return DefaultColor
+ }
+ const code = initials[0].toLowerCase().charCodeAt(0)
+ const hue = ((code % 26) / 26) * 360
+ return `hsl(${hue}, 50%, 50%)`
+ }
{#if url}
@@ -25,10 +38,11 @@
/>
{:else}
{initials || ""}
@@ -40,7 +54,6 @@
display: grid;
place-items: center;
font-weight: 600;
- background: #3aab87;
border-radius: 50%;
overflow: hidden;
user-select: none;
diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte
index 92c99cd631..f7c2184cf3 100644
--- a/packages/bbui/src/Form/Core/Picker.svelte
+++ b/packages/bbui/src/Form/Core/Picker.svelte
@@ -91,7 +91,7 @@
{:else if fieldColour}
-
+
{/if}
-
+
{/if}
{:else if getOptionColour(option, idx)}
-
+
{/if}
{#if getOptionIcon(option, idx) && getOptionColour(option, idx)}
-
+
{/if}
diff --git a/packages/bbui/src/List/Items/DetailSummary.svench b/packages/bbui/src/List/Items/DetailSummary.svench
deleted file mode 100644
index 48fb8f7df8..0000000000
--- a/packages/bbui/src/List/Items/DetailSummary.svench
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 1
- 2
- 3
- 4
-
-
- 1
- 2
- 3
- 4
-
-
-
-
-
-
-
- 1
- 2
- 3
- 4
-
-
- 1
- 2
- 3
- 4
-
-
-
diff --git a/packages/bbui/src/List/List.svelte b/packages/bbui/src/List/List.svelte
new file mode 100644
index 0000000000..243b04da50
--- /dev/null
+++ b/packages/bbui/src/List/List.svelte
@@ -0,0 +1,28 @@
+
+
+
+ {#if title}
+
+ {title}
+
+ {/if}
+
+
+
+
+
+
diff --git a/packages/bbui/src/List/ListItem.svelte b/packages/bbui/src/List/ListItem.svelte
new file mode 100644
index 0000000000..76a83e7b08
--- /dev/null
+++ b/packages/bbui/src/List/ListItem.svelte
@@ -0,0 +1,92 @@
+
+
+
+
+ {#if icon}
+
+
+
+ {/if}
+ {#if avatar}
+
+ {/if}
+ {#if title}
+ {title}
+ {/if}
+ {#if subtitle}
+
{subtitle}
+ {/if}
+
+
+
+
+
+
+
diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js
index 97dc88030e..ea7dd88020 100644
--- a/packages/bbui/src/index.js
+++ b/packages/bbui/src/index.js
@@ -65,6 +65,8 @@ export { default as BannerDisplay } from "./Banner/BannerDisplay.svelte"
export { default as MarkdownEditor } from "./Markdown/MarkdownEditor.svelte"
export { default as MarkdownViewer } from "./Markdown/MarkdownViewer.svelte"
export { default as RichTextField } from "./Form/RichTextField.svelte"
+export { default as List } from "./List/List.svelte"
+export { default as ListItem } from "./List/ListItem.svelte"
// Renderers
export { default as BoldRenderer } from "./Table/BoldRenderer.svelte"