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]>
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
import { CheckboxWithLabel, SelectDemoContents, SwitchWithLabel } from '@hanzogui/demos'
|
|
import { Button, H4, RadioGroup, Separator, Spacer, XStack, YStack } from '@hanzo/gui'
|
|
import { AccentTheme } from '../../components/AccentTheme'
|
|
import { useDemoProps } from '../hooks/useDemoProps'
|
|
import { RadioGroupItemWithLabel } from '../views/RadioGroupItemWithLabel'
|
|
|
|
export const Components = () => {
|
|
const demoProps = useDemoProps()
|
|
|
|
return (
|
|
<YStack
|
|
{...demoProps.panelProps}
|
|
{...demoProps.stackOutlineProps}
|
|
{...demoProps.borderRadiusOuterProps}
|
|
{...demoProps.elevationProps}
|
|
{...demoProps.panelPaddingProps}
|
|
>
|
|
<H4 {...demoProps.headingFontFamilyProps}>Kitchen Sink</H4>
|
|
|
|
<Separator />
|
|
|
|
<XStack width="100%" {...demoProps.gapPropsLg} flexWrap="wrap">
|
|
<XStack {...demoProps.gapPropsLg}>
|
|
<AccentTheme>
|
|
<Button size="$3" {...demoProps.borderRadiusProps}>
|
|
Active
|
|
</Button>
|
|
</AccentTheme>
|
|
<Button size="$3" {...demoProps.borderRadiusProps}>
|
|
Subtle
|
|
</Button>
|
|
</XStack>
|
|
|
|
<Spacer flex={1} />
|
|
|
|
<XStack {...demoProps.gapPropsLg} flex={1} flexBasis="auto" flexWrap="wrap">
|
|
<SelectDemoContents size="$3" />
|
|
</XStack>
|
|
</XStack>
|
|
|
|
<XStack gap="$4" flexWrap="wrap">
|
|
<YStack flex={1} flexBasis="auto" gap="$2">
|
|
<CheckboxWithLabel defaultChecked size="$4" />
|
|
|
|
<RadioGroup defaultValue="1" name="form">
|
|
<XStack>
|
|
<RadioGroupItemWithLabel size="$3" value="1" label="First" />
|
|
<RadioGroupItemWithLabel size="$3" value="2" label="Second" />
|
|
</XStack>
|
|
</RadioGroup>
|
|
|
|
<SwitchWithLabel size="$3" />
|
|
</YStack>
|
|
</XStack>
|
|
|
|
<Spacer size="$2" />
|
|
</YStack>
|
|
)
|
|
}
|