From 5e25a1679508c2289ba9cd6ee5eade4fb71be6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kry=C5=A1p=C3=ADn?= Date: Wed, 8 Jan 2025 14:51:23 +0100 Subject: [PATCH] Docs(web-react): Showcase Header with Navigation and Dropdown #DS-1411 --- .../demo/HeaderWithNavigation.tsx | 84 ++++++++++++++++++- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/packages/web-react/src/components/UNSTABLE_Header/demo/HeaderWithNavigation.tsx b/packages/web-react/src/components/UNSTABLE_Header/demo/HeaderWithNavigation.tsx index 9a7bd946d5..6931f3875a 100644 --- a/packages/web-react/src/components/UNSTABLE_Header/demo/HeaderWithNavigation.tsx +++ b/packages/web-react/src/components/UNSTABLE_Header/demo/HeaderWithNavigation.tsx @@ -1,20 +1,35 @@ import React from 'react'; +import { SpiritNavigationActionProps } from '../../../types'; import { Button } from '../../Button'; import { ButtonLink } from '../../ButtonLink'; import { Container } from '../../Container'; +import { Dropdown, DropdownPopover, DropdownTrigger } from '../../Dropdown'; import { Flex } from '../../Flex'; import { Icon } from '../../Icon'; +import { Item } from '../../Item'; import { Navigation, NavigationAction, NavigationItem } from '../../Navigation'; import { ProductLogo } from '../../ProductLogo'; import { defaultSvgLogo } from '../../ProductLogo/demo/ProductLogoDefault'; +import { Text } from '../../Text'; +import { UNSTABLE_Avatar } from '../../UNSTABLE_Avatar'; import UNSTABLE_Header from '../UNSTABLE_Header'; import UNSTABLE_HeaderLogo from '../UNSTABLE_HeaderLogo'; +const NavigationActionAsDropdownTrigger = (props: SpiritNavigationActionProps) => ( + +); +const AvatarButtonAsDropdownTrigger = (props: SpiritNavigationActionProps) => ( + + + setIsAvatarDropdownOpen(!isAvatarDropdownOpen)} + placement="bottom-end" + > + + + + + + + My Account + + + + + + +
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+
- Sign up + Log out