mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
Both old names are owned by a different npm account (artemis-prime), so publishing them returns 403 — which is how this surfaced: the 8.0.0 run shipped @hanzogui/logo and @hanzogui/demos depending on [email protected], a version that cannot be published and therefore does not exist. Those two were uninstallable. @hanzo/gui and @hanzogui/* are ours, so the framework now carries the name it is imported by everywhere downstream, and the loader moves under the scope we control. The rewrite is limited to package references. `DEBUG?.startsWith('hanzogui')` is a log-namespace filter and join(dir, 'hanzogui') is a path — rewriting either would change behaviour, so both are untouched. Co-authored-by: Hanzo Dev <[email protected]>
91 lines
2.7 KiB
TypeScript
91 lines
2.7 KiB
TypeScript
import { Bell, Boxes, ChevronRight, Cog, Workflow } from '@hanzogui/lucide-icons-2'
|
|
import { Avatar, H4, ListItem, Paragraph, XStack, YStack } from '@hanzo/gui'
|
|
import { useDemoProps } from '~/features/studio/theme/hooks/useDemoProps'
|
|
|
|
export const UserDropdown = () => {
|
|
const demoProps = useDemoProps()
|
|
|
|
return (
|
|
<YStack
|
|
{...demoProps.panelProps}
|
|
{...demoProps.stackOutlineProps}
|
|
{...demoProps.borderRadiusOuterProps}
|
|
{...demoProps.elevationProps}
|
|
{...demoProps.panelPaddingProps}
|
|
>
|
|
<YStack borderBottomWidth="$0.25" borderBottomColor="$borderColor" pb="$4">
|
|
<XStack gap="$4" justify="space-between" items="center" flexWrap="wrap">
|
|
<Avatar size="$5" {...demoProps.borderRadiusProps}>
|
|
<Avatar.Image src="https://i.pravatar.cc/300?u=some-user" />
|
|
</Avatar>
|
|
<XStack items="center" flex={1} flexBasis="auto" justify="space-between">
|
|
<YStack>
|
|
<H4 {...demoProps.headingFontFamilyProps}>John Doe</H4>
|
|
<Paragraph color="$color10" size="$3">
|
|
johndoe@acme.co
|
|
</Paragraph>
|
|
</YStack>
|
|
</XStack>
|
|
</XStack>
|
|
</YStack>
|
|
|
|
<YStack flex={1} flexBasis="auto" mx="$-2" gap="$2">
|
|
<ListItem
|
|
bg="transparent"
|
|
hoverStyle={{
|
|
bg: '$color3',
|
|
}}
|
|
{...demoProps.borderRadiusProps}
|
|
scaleIcon={1.5}
|
|
icon={<Cog opacity={0.75} />}
|
|
iconAfter={<ChevronRight opacity={0.2} size={15} />}
|
|
>
|
|
Settings
|
|
</ListItem>
|
|
|
|
<ListItem
|
|
{...demoProps.borderRadiusProps}
|
|
borderWidth={0}
|
|
bg="transparent"
|
|
hoverStyle={{
|
|
bg: '$color3',
|
|
}}
|
|
scaleIcon={1.5}
|
|
icon={<Bell opacity={0.75} />}
|
|
iconAfter={<ChevronRight opacity={0.2} size={15} />}
|
|
>
|
|
Notifications
|
|
</ListItem>
|
|
|
|
<ListItem
|
|
{...demoProps.borderRadiusProps}
|
|
borderWidth={0}
|
|
bg="transparent"
|
|
hoverStyle={{
|
|
bg: '$color3',
|
|
}}
|
|
scaleIcon={1.5}
|
|
icon={<Workflow opacity={0.75} />}
|
|
iconAfter={<ChevronRight opacity={0.2} size={15} />}
|
|
>
|
|
My Workflows
|
|
</ListItem>
|
|
|
|
<ListItem
|
|
{...demoProps.borderRadiusProps}
|
|
borderWidth={0}
|
|
bg="transparent"
|
|
hoverStyle={{
|
|
bg: '$color3',
|
|
}}
|
|
scaleIcon={1.5}
|
|
icon={<Boxes opacity={0.75} />}
|
|
iconAfter={<ChevronRight opacity={0.2} size={15} />}
|
|
>
|
|
Projects
|
|
</ListItem>
|
|
</YStack>
|
|
</YStack>
|
|
)
|
|
}
|