From 5a890d67f9d285ccd6b986679aff69e205199fb1 Mon Sep 17 00:00:00 2001 From: Ross Nelson Date: Thu, 28 May 2026 14:25:15 -0400 Subject: [PATCH 1/3] feat: add centerButton snippet to BottomNavigation for custom center content --- src/lib/components/bottom-nav.svelte | 52 ++++++++++++++++++---------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/src/lib/components/bottom-nav.svelte b/src/lib/components/bottom-nav.svelte index cb0254c12c..dfcf5c8d8a 100644 --- a/src/lib/components/bottom-nav.svelte +++ b/src/lib/components/bottom-nav.svelte @@ -34,6 +34,14 @@ }, ] >; + centerButton?: Snippet< + [ + { + open: boolean; + onClick: () => void; + }, + ] + >; profilePicture?: Snippet; class?: ClassNameValue; } @@ -45,6 +53,7 @@ showNamespacePicker = true, children, nsPicker, + centerButton, profilePicture, class: className = '', }: Props = $props(); @@ -159,24 +168,31 @@ {/if} {#if showNamespacePicker} -
- -
- -
+ {#if centerButton} + {@render centerButton({ + open: viewNamespaces, + onClick: onNamespaceClick, + })} + {:else} +
+ +
+ +
+ {/if} {/if} + {#if menuButton} + {@render menuButton({ open: viewLinks, onClick: onLinksClick })} + {:else} + + {/if} {#if showNamespacePicker} {#if centerButton} {@render centerButton({ From cec8c527ed88f538647630ca6628f1444630ab2c Mon Sep 17 00:00:00 2001 From: Ross Nelson Date: Thu, 28 May 2026 17:40:08 -0400 Subject: [PATCH 3/3] feat: add bars icon to holocene icon set --- src/lib/holocene/icon/paths.ts | 2 ++ src/lib/holocene/icon/svg/bars.svelte | 34 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/lib/holocene/icon/svg/bars.svelte diff --git a/src/lib/holocene/icon/paths.ts b/src/lib/holocene/icon/paths.ts index 5825f086be..d92b45ef13 100644 --- a/src/lib/holocene/icon/paths.ts +++ b/src/lib/holocene/icon/paths.ts @@ -11,6 +11,7 @@ import arrowUp from './svg/arrow-up.svelte'; import ascending from './svg/ascending.svelte'; import astronaut from './svg/astronaut.svelte'; import aws from './svg/aws.svelte'; +import bars from './svg/bars.svelte'; import batchOperation from './svg/batch-operation.svelte'; import book from './svg/book-sparkles.svelte'; import bookmark from './svg/bookmark.svelte'; @@ -168,6 +169,7 @@ export const icons = { ascending, astronaut, aws, + bars, 'batch-operation': batchOperation, book, bookmark, diff --git a/src/lib/holocene/icon/svg/bars.svelte b/src/lib/holocene/icon/svg/bars.svelte new file mode 100644 index 0000000000..1a2de0d66f --- /dev/null +++ b/src/lib/holocene/icon/svg/bars.svelte @@ -0,0 +1,34 @@ + + + + + + +