mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
* refactor: decouple @hanzo/ui from hanzogui Make @hanzo/ui shadcn-only — no hanzogui/Tamagui coupling. - remove primitives/bases (gui/admin/svelte/vue) re-exports - drop @hanzogui peerDependencies + peerDependenciesMeta entries - add check-no-hanzogui guard, wired into build - fix latent NodeJS.Timeout types to keep the build green * refactor: remove duplicate @hanzo/brand from the monorepo @hanzo/brand is owned by the standalone hanzoai/brand (the npm-canonical source); this monorepo's copy was unused and had drifted. - delete pkg/brand - add check-no-brand-pkg guard (wired into `check`) so it can't reappear * refactor(ui): stop importing from the app; use own cn util pkg/ui pulled `cn` from @/lib/utils (../../app) — an inverted dependency on the consuming app. Point the animation components at pkg/ui's own cn and drop the @/app, @/registry, @/lib tsconfig path aliases. * fix(ui): type errors; stop tracking the root lockfile - ModelCard: lucide-react dropped the Github icon → use Code - drawer: annotate DrawerTrigger/DrawerClose (radix type portability) - untrack root pnpm-lock.yaml; CI → --no-frozen-lockfile * release: bump @hanzo/ui to 5.7.0 * refactor: rename pkg/ → pkgs/, merge packages/ into it standardize on 'pkgs/': move pkg/* and packages/* into pkgs/. Update workspace globs, CI, scripts, and config references accordingly.
109 lines
3.0 KiB
TypeScript
109 lines
3.0 KiB
TypeScript
// Temporary type declarations for @hanzo/ui imports
|
|
// Until proper .d.ts files are generated
|
|
|
|
declare module '@hanzo/ui/types' {
|
|
export type Dimensions = any
|
|
export type MediaStackDef = any
|
|
export type ImageDef = any
|
|
export type VideoDef = any
|
|
export type AnimationDef = any
|
|
export type MediaTransform = any
|
|
export type LinkDef = any
|
|
}
|
|
|
|
declare module '@hanzo/ui/primitives' {
|
|
export type CarouselApi = any
|
|
export type CarouselOptions = any
|
|
export const Carousel: any
|
|
export const CarouselContent: any
|
|
export const CarouselItem: any
|
|
export const CarouselNext: any
|
|
export const CarouselPrevious: any
|
|
export const Button: any
|
|
export const buttonVariants: any
|
|
export const Input: any
|
|
export const Label: any
|
|
export const Separator: any
|
|
export const toast: any
|
|
export const Toaster: any
|
|
export const Image: any
|
|
export const Select: any
|
|
export const SelectContent: any
|
|
export const SelectGroup: any
|
|
export const SelectItem: any
|
|
export const SelectTrigger: any
|
|
export const SelectValue: any
|
|
export const RadioGroup: any
|
|
export const ScrollArea: any
|
|
export const ApplyTypography: any
|
|
export const MediaStack: any
|
|
export const Slider: any
|
|
export const Skeleton: any
|
|
export const Card: any
|
|
export const CardContent: any
|
|
export const CardFooter: any
|
|
export const CardHeader: any
|
|
export const CardTitle: any
|
|
export const ToggleGroup: any
|
|
export const ToggleGroupItem: any
|
|
export const Tabs: any
|
|
export const TabsContent: any
|
|
export const TabsList: any
|
|
export const TabsTrigger: any
|
|
}
|
|
|
|
declare module '@hanzo/ui/form' {
|
|
export const Form: any
|
|
export const FormControl: any
|
|
export const FormField: any
|
|
export const FormItem: any
|
|
export const FormLabel: any
|
|
export const FormMessage: any
|
|
export const FormDescription: any
|
|
export const useFormField: any
|
|
}
|
|
|
|
declare module '@hanzo/ui/util' {
|
|
export function cn(...inputs: any[]): string
|
|
export type VariantProps<T> = any
|
|
}
|
|
|
|
// Workaround for lucide-react with React 19 type mismatches
|
|
declare module 'lucide-react' {
|
|
import type { SVGProps } from 'react'
|
|
export type LucideProps = SVGProps<SVGSVGElement>
|
|
export const ChevronLeft: any
|
|
export const ChevronRight: any
|
|
export const Minus: any
|
|
export const Plus: any
|
|
export const X: any
|
|
export const Check: any
|
|
export const CreditCard: any
|
|
export const ShoppingCart: any
|
|
export const Menu: any
|
|
export const Loader2: any
|
|
export const ChevronDown: any
|
|
export const ChevronsLeft: any
|
|
export const ChevronsRight: any
|
|
export const Image: any
|
|
export const Trash2: any
|
|
export const Search: any
|
|
export const Barcode: any
|
|
export const LockKeyhole: any
|
|
export const Copy: any
|
|
}
|
|
|
|
// Workaround for react-square-web-payments-sdk with React 19
|
|
declare module 'react-square-web-payments-sdk' {
|
|
export const ApplePay: any
|
|
export const GooglePay: any
|
|
export const CreditCard: any
|
|
export const PaymentForm: any
|
|
}
|
|
|
|
// Workaround for next/image with React 19
|
|
declare module 'next/image' {
|
|
const Image: any
|
|
export default Image
|
|
}
|