Files
zeekayandHanzo Dev 751ef5c778 rename the framework to @hanzo/gui and the loader to @hanzogui/loader
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]>
2026-07-30 20:23:18 -07:00

88 lines
2.2 KiB
TypeScript

import type { XStackProps } from '@hanzo/gui'
import {
Avatar,
H4,
H6,
Paragraph,
Progress,
Separator,
Spacer,
XStack,
YStack,
} from '@hanzo/gui'
import { accentTokenName } from '../../accentThemeName'
import { useDemoProps } from '../hooks/useDemoProps'
export const CurrentTask = () => {
const demoProps = useDemoProps()
return (
<YStack
{...demoProps.panelProps}
{...demoProps.stackOutlineProps}
{...demoProps.borderRadiusOuterProps}
{...demoProps.elevationProps}
{...demoProps.panelPaddingProps}
>
<YStack pb="$4" p="$0">
<H4 {...demoProps.headingFontFamilyProps}>Migrate to v2</H4>
</YStack>
<Separator mb="$2" />
<YStack flex={1} flexBasis="auto" gap="$4">
<YStack gap="$6">
<XStack {...demoProps.gapPropsLg}>
<XStack {...demoProps.gapPropsMd}>
<Avatar circular size="$3" {...demoProps.borderRadiusProps}>
<Avatar.Image src="https://i.pravatar.cc/300?u=janeee" />
</Avatar>
<Paragraph size="$3">Jane Doe</Paragraph>
</XStack>
</XStack>
<TaskSection title="This Sprint">
<Paragraph size="$2" color="$color10">
6/8 tasks done
</Paragraph>
<Progress minW={100} size="$5" value={60}>
<Progress.Indicator bg={accentTokenName} transition="quick" />
</Progress>
</TaskSection>
<TaskSection title="Upcoming Sprint">
<Paragraph size="$2" color="$color10">
1/8 tasks done
</Paragraph>
<Progress minW={100} size="$5" value={25}>
<Progress.Indicator bg={accentTokenName} transition="quick" />
</Progress>
</TaskSection>
</YStack>
</YStack>
<Spacer />
</YStack>
)
}
const TaskSection = ({
title,
children,
...props
}: {
title: string
children: React.ReactNode
} & XStackProps) => {
const demoProps = useDemoProps()
return (
<YStack {...props} {...demoProps.gapPropsMd}>
<H6 {...demoProps.headingFontFamilyProps} color="$color9" size="$1" mb="$-2">
{title}
</H6>
{children}
</YStack>
)
}