@hanzo/ui 8.0.11 → 8.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/LICENSE.md +21 -0
  2. package/dist/backends/gui/index.d.ts +2 -0
  3. package/dist/backends/shadcn/aspect-ratio.d.ts +4 -0
  4. package/dist/backends/shadcn/avatar.d.ts +6 -0
  5. package/dist/backends/shadcn/badge.d.ts +9 -0
  6. package/dist/backends/shadcn/button.d.ts +19 -0
  7. package/dist/backends/shadcn/card.d.ts +9 -0
  8. package/dist/backends/shadcn/checkbox.d.ts +9 -0
  9. package/dist/backends/shadcn/collapsible.d.ts +5 -0
  10. package/dist/backends/shadcn/command.d.ts +80 -0
  11. package/dist/backends/shadcn/dialog.d.ts +15 -0
  12. package/dist/backends/shadcn/dropdown-menu.d.ts +34 -0
  13. package/dist/backends/shadcn/index.d.ts +23 -0
  14. package/dist/backends/shadcn/input.d.ts +11 -0
  15. package/dist/backends/shadcn/label.d.ts +4 -0
  16. package/dist/backends/shadcn/popover.d.ts +7 -0
  17. package/dist/backends/shadcn/progress.d.ts +4 -0
  18. package/dist/backends/shadcn/scroll-area.d.ts +5 -0
  19. package/dist/backends/shadcn/select.d.ts +13 -0
  20. package/dist/backends/shadcn/separator.d.ts +4 -0
  21. package/dist/backends/shadcn/slider.d.ts +4 -0
  22. package/dist/backends/shadcn/switch.d.ts +4 -0
  23. package/dist/backends/shadcn/tabs.d.ts +7 -0
  24. package/dist/backends/shadcn/textarea.d.ts +4 -0
  25. package/dist/backends/shadcn/toaster.d.ts +10 -0
  26. package/dist/backends/shadcn/tooltip.d.ts +7 -0
  27. package/dist/backends/shadcn/utils.d.ts +8 -0
  28. package/dist/components.d.ts +1 -0
  29. package/dist/core/cn.d.ts +11 -0
  30. package/dist/core/fonts.d.ts +26 -0
  31. package/dist/core/index.d.ts +3 -0
  32. package/dist/core/tokens.d.ts +16 -0
  33. package/dist/index.cjs +1138 -291
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +1017 -3
  37. package/dist/index.js.map +1 -1
  38. package/dist/models/ModelSelector.d.ts +23 -0
  39. package/dist/models/catalog.d.ts +53 -0
  40. package/dist/models/index.d.ts +5 -0
  41. package/dist/models/types.d.ts +39 -0
  42. package/dist/primitives/AspectRatio.d.ts +1 -0
  43. package/dist/primitives/Avatar.d.ts +1 -0
  44. package/dist/primitives/AvatarFallback.d.ts +1 -0
  45. package/dist/primitives/AvatarImage.d.ts +1 -0
  46. package/dist/primitives/Badge.d.ts +1 -0
  47. package/dist/primitives/Button.d.ts +1 -0
  48. package/dist/primitives/Card.d.ts +1 -0
  49. package/dist/primitives/CardAction.d.ts +1 -0
  50. package/dist/primitives/CardContent.d.ts +1 -0
  51. package/dist/primitives/CardDescription.d.ts +1 -0
  52. package/dist/primitives/CardFooter.d.ts +1 -0
  53. package/dist/primitives/CardHeader.d.ts +1 -0
  54. package/dist/primitives/CardTitle.d.ts +1 -0
  55. package/dist/primitives/Checkbox.d.ts +1 -0
  56. package/dist/primitives/Collapsible.d.ts +1 -0
  57. package/dist/primitives/CollapsibleContent.d.ts +1 -0
  58. package/dist/primitives/CollapsibleTrigger.d.ts +1 -0
  59. package/dist/primitives/Command.d.ts +1 -0
  60. package/dist/primitives/CommandDialog.d.ts +1 -0
  61. package/dist/primitives/CommandEmpty.d.ts +1 -0
  62. package/dist/primitives/CommandGroup.d.ts +1 -0
  63. package/dist/primitives/CommandInput.d.ts +1 -0
  64. package/dist/primitives/CommandItem.d.ts +1 -0
  65. package/dist/primitives/CommandList.d.ts +1 -0
  66. package/dist/primitives/CommandSeparator.d.ts +1 -0
  67. package/dist/primitives/CommandShortcut.d.ts +1 -0
  68. package/dist/primitives/Dialog.d.ts +1 -0
  69. package/dist/primitives/DialogClose.d.ts +1 -0
  70. package/dist/primitives/DialogContent.d.ts +1 -0
  71. package/dist/primitives/DialogDescription.d.ts +1 -0
  72. package/dist/primitives/DialogFooter.d.ts +1 -0
  73. package/dist/primitives/DialogHeader.d.ts +1 -0
  74. package/dist/primitives/DialogOverlay.d.ts +1 -0
  75. package/dist/primitives/DialogPortal.d.ts +1 -0
  76. package/dist/primitives/DialogTitle.d.ts +1 -0
  77. package/dist/primitives/DialogTrigger.d.ts +1 -0
  78. package/dist/primitives/DropdownMenu.d.ts +1 -0
  79. package/dist/primitives/DropdownMenuCheckboxItem.d.ts +1 -0
  80. package/dist/primitives/DropdownMenuContent.d.ts +1 -0
  81. package/dist/primitives/DropdownMenuGroup.d.ts +1 -0
  82. package/dist/primitives/DropdownMenuItem.d.ts +1 -0
  83. package/dist/primitives/DropdownMenuLabel.d.ts +1 -0
  84. package/dist/primitives/DropdownMenuPortal.d.ts +1 -0
  85. package/dist/primitives/DropdownMenuRadioGroup.d.ts +1 -0
  86. package/dist/primitives/DropdownMenuRadioItem.d.ts +1 -0
  87. package/dist/primitives/DropdownMenuSeparator.d.ts +1 -0
  88. package/dist/primitives/DropdownMenuShortcut.d.ts +1 -0
  89. package/dist/primitives/DropdownMenuSub.d.ts +1 -0
  90. package/dist/primitives/DropdownMenuSubContent.d.ts +1 -0
  91. package/dist/primitives/DropdownMenuSubTrigger.d.ts +1 -0
  92. package/dist/primitives/DropdownMenuTrigger.d.ts +1 -0
  93. package/dist/primitives/Input.d.ts +1 -0
  94. package/dist/primitives/Label.d.ts +1 -0
  95. package/dist/primitives/Popover.d.ts +1 -0
  96. package/dist/primitives/PopoverAnchor.d.ts +1 -0
  97. package/dist/primitives/PopoverContent.d.ts +1 -0
  98. package/dist/primitives/PopoverTrigger.d.ts +1 -0
  99. package/dist/primitives/Progress.d.ts +1 -0
  100. package/dist/primitives/ScrollArea.d.ts +1 -0
  101. package/dist/primitives/ScrollBar.d.ts +1 -0
  102. package/dist/primitives/Select.d.ts +1 -0
  103. package/dist/primitives/SelectContent.d.ts +1 -0
  104. package/dist/primitives/SelectGroup.d.ts +1 -0
  105. package/dist/primitives/SelectItem.d.ts +1 -0
  106. package/dist/primitives/SelectLabel.d.ts +1 -0
  107. package/dist/primitives/SelectScrollDownButton.d.ts +1 -0
  108. package/dist/primitives/SelectScrollUpButton.d.ts +1 -0
  109. package/dist/primitives/SelectSeparator.d.ts +1 -0
  110. package/dist/primitives/SelectTrigger.d.ts +1 -0
  111. package/dist/primitives/SelectValue.d.ts +1 -0
  112. package/dist/primitives/Separator.d.ts +1 -0
  113. package/dist/primitives/Slider.d.ts +1 -0
  114. package/dist/primitives/Switch.d.ts +1 -0
  115. package/dist/primitives/Tabs.d.ts +1 -0
  116. package/dist/primitives/TabsContent.d.ts +1 -0
  117. package/dist/primitives/TabsList.d.ts +1 -0
  118. package/dist/primitives/TabsTrigger.d.ts +1 -0
  119. package/dist/primitives/Textarea.d.ts +1 -0
  120. package/dist/primitives/Toaster.d.ts +1 -0
  121. package/dist/primitives/Tooltip.d.ts +1 -0
  122. package/dist/primitives/TooltipContent.d.ts +1 -0
  123. package/dist/primitives/TooltipProvider.d.ts +1 -0
  124. package/dist/primitives/TooltipTrigger.d.ts +1 -0
  125. package/dist/primitives/badgeVariants.d.ts +1 -0
  126. package/dist/primitives/buttonVariants.d.ts +1 -0
  127. package/dist/primitives/index.d.ts +1 -0
  128. package/dist/primitives/toast.d.ts +1 -0
  129. package/dist/product/AnimatedLogo.d.ts +47 -0
  130. package/dist/product/BackendState.d.ts +42 -0
  131. package/dist/product/Charts.d.ts +4 -0
  132. package/dist/product/CommerceResource.d.ts +32 -0
  133. package/dist/product/ConfirmDelete.d.ts +8 -0
  134. package/dist/product/DataTable.d.ts +30 -2
  135. package/dist/product/Field.d.ts +7 -2
  136. package/dist/product/Filters.d.ts +29 -0
  137. package/dist/product/PrimaryButton.d.ts +5 -0
  138. package/dist/product/SiteFooter.d.ts +28 -0
  139. package/dist/product/SiteNav.d.ts +60 -0
  140. package/dist/product/accent.d.ts +33 -0
  141. package/dist/product/animatedLogo.logic.d.ts +52 -0
  142. package/dist/product/brand.d.ts +45 -0
  143. package/dist/product/host.d.ts +21 -0
  144. package/dist/product/index.cjs +3205 -265
  145. package/dist/product/index.cjs.map +1 -1
  146. package/dist/product/index.d.ts +11 -0
  147. package/dist/product/index.js +3103 -1
  148. package/dist/product/index.js.map +1 -1
  149. package/dist/product/social/CampaignCard.d.ts +13 -0
  150. package/dist/product/social/ChannelBadge.d.ts +12 -0
  151. package/dist/product/social/PostAgenda.d.ts +5 -0
  152. package/dist/product/social/PostCard.d.ts +15 -0
  153. package/dist/product/social/PostComposer.d.ts +24 -0
  154. package/dist/product/social/ProviderReadinessList.d.ts +10 -0
  155. package/dist/product/social/SocialSummaryBar.d.ts +9 -0
  156. package/dist/product/social/ViewToggle.d.ts +5 -0
  157. package/dist/product/social/format.d.ts +16 -0
  158. package/dist/product/social/index.d.ts +9 -0
  159. package/dist/product/surfaces.data.d.ts +1 -0
  160. package/dist/styles/hanzo-motion.css +52 -0
  161. package/package.json +94 -20
  162. package/dist/chunk-M2ILMK44.cjs +0 -2104
  163. package/dist/chunk-M2ILMK44.cjs.map +0 -1
  164. package/dist/chunk-YSURJUOA.js +0 -2035
  165. package/dist/chunk-YSURJUOA.js.map +0 -1
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 hanzo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ export * from '../../product';
2
+ export { tokens, TAG_TONES, tagTone, type TagTone } from '@hanzo/data';
@@ -0,0 +1,4 @@
1
+ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
2
+ /** AspectRatio — thin passthrough of the Radix primitive (no styling needed). */
3
+ declare function AspectRatio(props: React.ComponentProps<typeof AspectRatioPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { AspectRatio };
@@ -0,0 +1,6 @@
1
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
+ import * as React from 'react';
3
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -0,0 +1,9 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "link" | "outline" | "default" | "secondary" | "destructive" | "ghost" | "inputAdornment" | "tags" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
7
+ asChild?: boolean;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export { Badge, badgeVariants };
@@ -0,0 +1,19 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ /**
4
+ * Button — every class is a STANDARD design token (`bg-primary`,
5
+ * `text-primary-foreground`, `bg-accent`, `bg-secondary`, `bg-destructive`,
6
+ * `border-input`, `ring-ring`). No app-private token names, so it renders solid
7
+ * against any host that defines the standard shadcn variables (which the Hanzo
8
+ * theme, `theme.css`, and every consuming app do).
9
+ */
10
+ declare const buttonVariants: (props?: ({
11
+ variant?: "link" | "outline" | "default" | "secondary" | "destructive" | "ghost" | "primary" | "linkFG" | "linkMuted" | null | undefined;
12
+ size?: "sm" | "lg" | "default" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
15
+ asChild?: boolean;
16
+ isLoading?: boolean;
17
+ }
18
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
19
+ export { Button, buttonVariants };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
+ declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
@@ -0,0 +1,9 @@
1
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import * as React from 'react';
3
+ /**
4
+ * Checkbox — standard-token control. Checked state uses `bg-primary` /
5
+ * `text-primary-foreground` (was the app-private `bg-brand`), border uses
6
+ * `border-input` (was `border-gray-400`), so it reads correctly in any host.
7
+ */
8
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
+ export { Checkbox };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
+ declare function Collapsible(props: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CollapsibleTrigger(props: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
+ declare function CollapsibleContent(props: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,80 @@
1
+ import * as React from 'react';
2
+ import { Dialog } from './dialog';
3
+ declare const Command: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ } & {
8
+ asChild?: boolean;
9
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
+ label?: string;
11
+ shouldFilter?: boolean;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?: (value: string) => void;
16
+ loop?: boolean;
17
+ disablePointerSelection?: boolean;
18
+ vimBindings?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare function CommandDialog({ title, description, children, ...props }: React.ComponentProps<typeof Dialog> & {
21
+ title?: string;
22
+ description?: string;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
25
+ ref?: React.Ref<HTMLInputElement>;
26
+ } & {
27
+ asChild?: boolean;
28
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
29
+ value?: string;
30
+ onValueChange?: (search: string) => void;
31
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
32
+ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
33
+ children?: React.ReactNode;
34
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
35
+ ref?: React.Ref<HTMLDivElement>;
36
+ } & {
37
+ asChild?: boolean;
38
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
39
+ label?: string;
40
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
+ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
42
+ children?: React.ReactNode;
43
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
44
+ ref?: React.Ref<HTMLDivElement>;
45
+ } & {
46
+ asChild?: boolean;
47
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
+ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
49
+ children?: React.ReactNode;
50
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
51
+ ref?: React.Ref<HTMLDivElement>;
52
+ } & {
53
+ asChild?: boolean;
54
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
55
+ heading?: React.ReactNode;
56
+ value?: string;
57
+ forceMount?: boolean;
58
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
59
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
60
+ ref?: React.Ref<HTMLDivElement>;
61
+ } & {
62
+ asChild?: boolean;
63
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
64
+ alwaysRender?: boolean;
65
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
66
+ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
67
+ children?: React.ReactNode;
68
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
69
+ ref?: React.Ref<HTMLDivElement>;
70
+ } & {
71
+ asChild?: boolean;
72
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
73
+ disabled?: boolean;
74
+ onSelect?: (value: string) => void;
75
+ value?: string;
76
+ keywords?: string[];
77
+ forceMount?: boolean;
78
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
79
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
80
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,15 @@
1
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
2
+ import * as React from 'react';
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
+ showCloseButton?: boolean;
10
+ } & React.RefAttributes<HTMLDivElement>>;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
12
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
13
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
14
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,34 @@
1
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
2
+ import * as React from 'react';
3
+ /**
4
+ * Dropdown menu — Radix for a11y/portal/keyboard, styled with STANDARD tokens
5
+ * only. The prior version leaked app-private tokens (`bg-bg-dark`,
6
+ * `bg-bg-secondary`, `text-text-secondary`, `bg-divider`, hard-coded
7
+ * `bg-gray-300`) that were undefined in consumers, so the menu surface,
8
+ * item-hover, label, and separators rendered transparent. Every surface here is
9
+ * `bg-popover` / `text-popover-foreground`, every hover is `focus:bg-accent`,
10
+ * every divider is `bg-border` — solid in any host.
11
+ */
12
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
13
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
14
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
15
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
16
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
17
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
18
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
+ inset?: boolean;
21
+ variant?: "default" | "destructive";
22
+ } & React.RefAttributes<HTMLDivElement>>;
23
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
26
+ inset?: boolean;
27
+ } & React.RefAttributes<HTMLDivElement>>;
28
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
30
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
31
+ inset?: boolean;
32
+ } & React.RefAttributes<HTMLDivElement>>;
33
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -0,0 +1,23 @@
1
+ export { AspectRatio } from './aspect-ratio';
2
+ export { Avatar, AvatarImage, AvatarFallback } from './avatar';
3
+ export { Badge, badgeVariants } from './badge';
4
+ export { Button, buttonVariants, type ButtonProps } from './button';
5
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, } from './card';
6
+ export { Checkbox } from './checkbox';
7
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './collapsible';
8
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, } from './command';
9
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from './dialog';
10
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from './dropdown-menu';
11
+ export { Input, type InputProps } from './input';
12
+ export { Label } from './label';
13
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from './popover';
14
+ export { Progress } from './progress';
15
+ export { ScrollArea, ScrollBar } from './scroll-area';
16
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from './select';
17
+ export { Separator } from './separator';
18
+ export { Slider } from './slider';
19
+ export { Switch } from './switch';
20
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs';
21
+ export { Textarea } from './textarea';
22
+ export { Toaster, toast } from './toaster';
23
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './tooltip';
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ /** Optional leading affordance (icon/text) rendered inside the field. */
4
+ startAdornment?: React.ReactNode;
5
+ /** Optional trailing affordance rendered inside the field. */
6
+ endAdornment?: React.ReactNode;
7
+ /** Suppress the built-in show/hide control for `type="password"`. */
8
+ hidePasswordToggle?: boolean;
9
+ }
10
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
11
+ export { Input };
@@ -0,0 +1,4 @@
1
+ import * as LabelPrimitive from '@radix-ui/react-label';
2
+ import * as React from 'react';
3
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
4
+ export { Label };
@@ -0,0 +1,7 @@
1
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
2
+ import * as React from 'react';
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,4 @@
1
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
2
+ import * as React from 'react';
3
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Progress };
@@ -0,0 +1,5 @@
1
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
3
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,13 @@
1
+ import * as SelectPrimitive from '@radix-ui/react-select';
2
+ import * as React from 'react';
3
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
@@ -0,0 +1,4 @@
1
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
2
+ import * as React from 'react';
3
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Separator };
@@ -0,0 +1,4 @@
1
+ import * as SliderPrimitive from '@radix-ui/react-slider';
2
+ import * as React from 'react';
3
+ declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ export { Slider };
@@ -0,0 +1,4 @@
1
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
2
+ import * as React from 'react';
3
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Switch };
@@ -0,0 +1,7 @@
1
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
2
+ import * as React from 'react';
3
+ declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ /** Textarea — standard-token multiline field. */
3
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export { Textarea };
@@ -0,0 +1,10 @@
1
+ import { toast, type ToasterProps } from 'sonner';
2
+ /**
3
+ * Toaster — Sonner surface bound to STANDARD tokens. The prior version used
4
+ * app-private classes (`bg-level-2`, `text-primary-fg`, `border-muted-3`); here
5
+ * the toast surface maps to `--popover`, borders to `--border`, and buttons to
6
+ * the primary/muted tokens via Sonner's CSS-variable API, so it matches the host
7
+ * theme (light/dark) with no undefined tokens.
8
+ */
9
+ declare const Toaster: ({ className, ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { Toaster, toast };
@@ -0,0 +1,7 @@
1
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
2
+ import * as React from 'react';
3
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Local `cn` handle for the shadcn backend.
3
+ *
4
+ * Every component in this backend merges classes through the ONE composer in the
5
+ * shared core; re-exporting it here keeps each component's import local
6
+ * (`./utils`) and the merge logic single-sourced.
7
+ */
8
+ export { cn } from '../../core/cn';
@@ -0,0 +1 @@
1
+ export * from './backends/shadcn';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `cn` — the one class-name composer.
3
+ *
4
+ * `clsx` resolves conditional/array/object class inputs; `tailwind-merge` then
5
+ * collapses conflicting Tailwind utilities so the LAST wins (e.g. a caller's
6
+ * `bg-background` overrides a component's default `bg-popover`). Every component
7
+ * in every backend that emits Tailwind classes merges through this single
8
+ * function — one way, everywhere.
9
+ */
10
+ import { type ClassValue } from 'clsx';
11
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Typography identity — Geist (UI/body/display) + Geist Mono (code/data).
3
+ *
4
+ * The families are referenced through CSS variables so a host that loads Geist
5
+ * however it likes (next/font, @fontsource, a CDN link) just has to bind these
6
+ * two variables; the components and `theme.css` read the variables, never a
7
+ * hard-coded font name. These constants are the single source of truth for the
8
+ * variable names so a host and the stylesheet can never drift.
9
+ */
10
+ /** CSS custom-property that must resolve to the Geist Sans family. */
11
+ export declare const FONT_SANS_VAR: "--font-geist-sans";
12
+ /** CSS custom-property that must resolve to the Geist Mono family. */
13
+ export declare const FONT_MONO_VAR: "--font-geist-mono";
14
+ /**
15
+ * UI / body / display / heading stack — Geist Sans, then the CSS generic only.
16
+ * No Inter, no named system fonts: the host always binds `--font-geist-sans`
17
+ * (next/font, @fontsource, CDN), so the generic is a last-resort generic, never
18
+ * a system-UI look.
19
+ */
20
+ export declare const fontSans: "var(--font-geist-sans), sans-serif";
21
+ /** Code / data / tabular stack — Geist Mono, then the CSS generic only. */
22
+ export declare const fontMono: "var(--font-geist-mono), monospace";
23
+ export declare const fonts: {
24
+ readonly sans: "var(--font-geist-sans), sans-serif";
25
+ readonly mono: "var(--font-geist-mono), monospace";
26
+ };
@@ -0,0 +1,3 @@
1
+ export { cn } from './cn';
2
+ export { fonts, fontSans, fontMono, FONT_SANS_VAR, FONT_MONO_VAR } from './fonts';
3
+ export * from './tokens';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Design tokens — re-exported from `@hanzo/tokens`, the single source of truth.
3
+ *
4
+ * `@hanzo/ui` is BUILT ON `@hanzo/tokens`: the color scale, the dark/light theme
5
+ * token sets (the exact values `theme.css` emits as CSS variables), the radii,
6
+ * the spacing, and the typography scale all originate there. Surfacing them here
7
+ * lets a consumer read the same tokens programmatically —
8
+ * `import { themes, colors } from '@hanzo/ui/tokens'` — that the stylesheet and
9
+ * the components render against, so runtime and CSS can never drift.
10
+ *
11
+ * NOTE: the root barrel's `tokens` export (the gui/product theme object from
12
+ * `@hanzo/data`) is a DIFFERENT, complementary thing; these are named exports
13
+ * (`colors`, `themes`, `dark`, `light`, `radii`, …) and never collide with it.
14
+ */
15
+ export { colors, zinc, oklch, hsl, spacing, spacingPx, radii, radiiPx, fontFamily, fontSize, fontSizePx, fontWeight, lineHeight, letterSpacing, dark, light, themes, } from '@hanzo/tokens';
16
+ export type { ColorToken, ZincStep, SpacingStep, RadiusToken, FontSizeToken, FontWeightToken, ThemeTokens, } from '@hanzo/tokens';