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

109 lines
3.0 KiB
TypeScript

import { Check } from '@hanzogui/lucide-icons-2'
import type { ListItemProps } from '@hanzo/gui'
import { H4, ListItem, Paragraph, Spacer, Theme, YStack } from '@hanzo/gui'
import { AccentTheme } from '../../components/AccentTheme'
import { useDemoProps } from '../hooks/useDemoProps'
export const AllTasks = () => {
const demoProps = useDemoProps()
return (
<YStack
{...demoProps.panelProps}
{...demoProps.stackOutlineProps}
{...demoProps.borderRadiusOuterProps}
{...demoProps.elevationProps}
{...demoProps.panelPaddingProps}
bg="$background"
>
<YStack borderBottomWidth="$0.25" borderBottomColor="$borderColor" pb="$4">
<H4 {...demoProps.headingFontFamilyProps} color="$color">
Tasks
</H4>
<Paragraph {...demoProps.panelDescriptionProps}>
Active task for your team
</Paragraph>
</YStack>
<YStack flex={1} flexBasis="auto" {...demoProps.gapPropsMd}>
<Task>
<Paragraph size="$5" lineHeight="$3">
Migrate to the new version
</Paragraph>
<Paragraph color="$color10" size="$2" numberOfLines={1}>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum amet
</Paragraph>
</Task>
<Task checked>
<Paragraph size="$5" lineHeight="$3" textDecorationLine="line-through">
Make a tabs component
</Paragraph>
<Paragraph
textDecorationLine="line-through"
color="$color10"
size="$2"
numberOfLines={1}
>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum amet
</Paragraph>
</Task>
<Task checked>
<Paragraph size="$5" lineHeight="$3" textDecorationLine="line-through">
Implement the design system
</Paragraph>
<Paragraph
textDecorationLine="line-through"
color="$color10"
size="$2"
numberOfLines={1}
>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum amet
</Paragraph>
</Task>
</YStack>
<Spacer size="$2" />
</YStack>
)
}
const Task = ({
checked,
children,
...props
}: {
checked?: boolean
} & ListItemProps) => {
const demoProps = useDemoProps()
return (
<ListItem
px="$2"
bg="transparent"
icon={
<YStack
theme="accent"
self="flex-start"
mt="$1"
{...(checked && {
bg: '$borderColor',
})}
borderColor="$borderColor"
width="$1"
height="$1"
justify="center"
items="center"
flexBasis="auto"
{...demoProps.borderRadiusProps}
>
{checked && <Check size={10} color="$color" />}
</YStack>
}
{...props}
>
<YStack gap="$1" opacity={checked ? 0.3 : 1} items="flex-start" flex={1}>
{children}
</YStack>
</ListItem>
)
}