From 648ccbe9f23698b0cf5e129d661f878cb5cd944e Mon Sep 17 00:00:00 2001 From: Eric Crowell Date: Sun, 16 Jun 2024 02:15:37 +0200 Subject: [PATCH] dev: Updated search to button and modal --- .../ui/src/Navigation/Navigation.stories.tsx | 2 - .../ui/src/Navigation/NavigationIsland.tsx | 2 +- .../ui/src/Navigation/NavigationStandard.tsx | 2 +- .../Navigation/parts/NavigationPart_Links.tsx | 54 ++++++++++--------- .../parts/NavigationPart_Search.tsx | 42 ++++++++++++--- 5 files changed, 66 insertions(+), 36 deletions(-) diff --git a/packages/ui/src/Navigation/Navigation.stories.tsx b/packages/ui/src/Navigation/Navigation.stories.tsx index f9c0e27..804453b 100644 --- a/packages/ui/src/Navigation/Navigation.stories.tsx +++ b/packages/ui/src/Navigation/Navigation.stories.tsx @@ -78,7 +78,6 @@ export const Standard: Story = { title: 'Navigation', links, search: '#search', - className: 'bg-foreground/10', }, }; @@ -88,7 +87,6 @@ export const Island: Story = { variant: 'island', links, search: '#search', - className: 'bg-foreground/10', }, }; diff --git a/packages/ui/src/Navigation/NavigationIsland.tsx b/packages/ui/src/Navigation/NavigationIsland.tsx index 4ac42d8..659e95d 100644 --- a/packages/ui/src/Navigation/NavigationIsland.tsx +++ b/packages/ui/src/Navigation/NavigationIsland.tsx @@ -24,7 +24,7 @@ export function NavigationIsland({ -
+
diff --git a/packages/ui/src/Navigation/NavigationStandard.tsx b/packages/ui/src/Navigation/NavigationStandard.tsx index 877f8e0..834e09b 100644 --- a/packages/ui/src/Navigation/NavigationStandard.tsx +++ b/packages/ui/src/Navigation/NavigationStandard.tsx @@ -17,7 +17,7 @@ export function NavigationStandard({ const [ colors ] = twColors(color); return ( - + diff --git a/packages/ui/src/Navigation/parts/NavigationPart_Links.tsx b/packages/ui/src/Navigation/parts/NavigationPart_Links.tsx index aab0292..3575f79 100644 --- a/packages/ui/src/Navigation/parts/NavigationPart_Links.tsx +++ b/packages/ui/src/Navigation/parts/NavigationPart_Links.tsx @@ -20,7 +20,7 @@ export interface NavigationPart_LinksProps { function LinkLeaf({ link }: { link: LinkType }) { return ( - + - ); + + + +
+ } + endContent={ESC} + type="search" + /> +
+
+ +   + +
+
+ ); }