@hanzo/ui 8.26.5 → 8.27.1

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 (407) hide show
  1. package/dist/agents/index.cjs +1 -1
  2. package/dist/backends/gui/badge.cjs +3 -3
  3. package/dist/backends/gui/badge.d.ts +3 -2
  4. package/dist/backends/gui/badge.d.ts.map +1 -1
  5. package/dist/backends/gui/badge.js +1 -2
  6. package/dist/backends/gui/badge.js.map +1 -1
  7. package/dist/backends/gui/button.cjs +8 -3
  8. package/dist/backends/gui/button.d.ts +5 -2
  9. package/dist/backends/gui/button.d.ts.map +1 -1
  10. package/dist/backends/gui/button.js +6 -2
  11. package/dist/backends/gui/button.js.map +1 -1
  12. package/dist/backends/gui/command.logic.cjs +1 -1
  13. package/dist/backends/gui/command.logic.js +1 -1
  14. package/dist/backends/gui/control.cjs +17 -2
  15. package/dist/backends/gui/control.d.ts +15 -0
  16. package/dist/backends/gui/control.d.ts.map +1 -1
  17. package/dist/backends/gui/control.js +16 -1
  18. package/dist/backends/gui/control.js.map +1 -1
  19. package/dist/backends/gui/form.d.ts +1 -1
  20. package/dist/backends/gui/form.d.ts.map +1 -1
  21. package/dist/backends/gui/index.cjs +1 -1
  22. package/dist/backends/gui/ink.cjs +0 -1
  23. package/dist/backends/gui/ink.d.ts.map +1 -1
  24. package/dist/backends/gui/ink.js +1 -2
  25. package/dist/backends/gui/ink.js.map +1 -1
  26. package/dist/backends/gui/media-stack.cjs +9 -4
  27. package/dist/backends/gui/media-stack.d.ts +1 -2
  28. package/dist/backends/gui/media-stack.d.ts.map +1 -1
  29. package/dist/backends/gui/media-stack.js +6 -2
  30. package/dist/backends/gui/media-stack.js.map +1 -1
  31. package/dist/backends/gui/microdata.cjs +1 -1
  32. package/dist/backends/gui/navigation-menu.cjs +3 -3
  33. package/dist/backends/gui/navigation-menu.d.ts +1 -2
  34. package/dist/backends/gui/navigation-menu.d.ts.map +1 -1
  35. package/dist/backends/gui/navigation-menu.js +1 -2
  36. package/dist/backends/gui/navigation-menu.js.map +1 -1
  37. package/dist/backends/gui/place.cjs +1 -1
  38. package/dist/backends/gui/place.js +1 -1
  39. package/dist/backends/gui/prose.cjs +0 -1
  40. package/dist/backends/gui/prose.d.ts.map +1 -1
  41. package/dist/backends/gui/prose.js +1 -2
  42. package/dist/backends/gui/prose.js.map +1 -1
  43. package/dist/backends/gui/resizable.logic.cjs +1 -1
  44. package/dist/backends/gui/resizable.logic.js +1 -1
  45. package/dist/backends/gui/slot.cjs +1 -1
  46. package/dist/backends/gui/slot.js +1 -1
  47. package/dist/backends/gui/textarea.cjs +12 -5
  48. package/dist/backends/gui/textarea.d.ts.map +1 -1
  49. package/dist/backends/gui/textarea.js +13 -6
  50. package/dist/backends/gui/textarea.js.map +1 -1
  51. package/dist/blocks/accordian.cjs +1 -1
  52. package/dist/blocks/accordian.js +1 -1
  53. package/dist/blocks/bullet-cards.cjs +1 -1
  54. package/dist/blocks/bullet-cards.js +1 -1
  55. package/dist/blocks/card.cjs +1 -1
  56. package/dist/blocks/card.js +1 -1
  57. package/dist/blocks/carte-blanche.cjs +0 -1
  58. package/dist/blocks/carte-blanche.d.ts.map +1 -1
  59. package/dist/blocks/carte-blanche.js +1 -2
  60. package/dist/blocks/carte-blanche.js.map +1 -1
  61. package/dist/blocks/content.cjs +1 -1
  62. package/dist/blocks/content.js +1 -1
  63. package/dist/blocks/def.cjs +1 -1
  64. package/dist/blocks/def.js +1 -1
  65. package/dist/blocks/enh-heading.cjs +1 -1
  66. package/dist/blocks/enh-heading.js +1 -1
  67. package/dist/blocks/grid.cjs +1 -1
  68. package/dist/blocks/grid.js +1 -1
  69. package/dist/blocks/group.cjs +1 -1
  70. package/dist/blocks/group.js +1 -1
  71. package/dist/blocks/heading.cjs +1 -1
  72. package/dist/blocks/heading.js +1 -1
  73. package/dist/blocks/image.cjs +0 -1
  74. package/dist/blocks/image.d.ts.map +1 -1
  75. package/dist/blocks/image.js +1 -2
  76. package/dist/blocks/image.js.map +1 -1
  77. package/dist/blocks/index.cjs +1 -1
  78. package/dist/blocks/space.cjs +1 -1
  79. package/dist/blocks/space.js +1 -1
  80. package/dist/blocks/spec.cjs +1 -1
  81. package/dist/blocks/spec.js +1 -1
  82. package/dist/canvas.cjs +1 -1
  83. package/dist/cd/layout.cjs +1 -1
  84. package/dist/cd/layout.js +1 -1
  85. package/dist/cd/status.cjs +1 -1
  86. package/dist/cd/status.js +1 -1
  87. package/dist/cd/time.cjs +1 -1
  88. package/dist/cd/time.js +1 -1
  89. package/dist/cd/types.cjs +1 -1
  90. package/dist/chat/index.cjs +1 -1
  91. package/dist/chat/words.cjs +1 -1
  92. package/dist/chat/words.js +1 -1
  93. package/dist/core/fonts.cjs +1 -1
  94. package/dist/core/fonts.js +1 -1
  95. package/dist/core/index.cjs +1 -1
  96. package/dist/dashboard.cjs +1 -1
  97. package/dist/data.cjs +1 -1
  98. package/dist/framework/builder-logic.cjs +1 -1
  99. package/dist/framework/builder-logic.js +1 -1
  100. package/dist/framework/client.cjs +1 -1
  101. package/dist/framework/client.js +1 -1
  102. package/dist/framework/data.cjs +1 -1
  103. package/dist/framework/data.js +1 -1
  104. package/dist/framework/fields.cjs +1 -1
  105. package/dist/framework/fields.js +1 -1
  106. package/dist/framework/index.cjs +1 -1
  107. package/dist/framework/media.cjs +1 -1
  108. package/dist/framework/media.js +1 -1
  109. package/dist/framework/types.cjs +1 -1
  110. package/dist/framework/types.js +1 -1
  111. package/dist/gallery.html +5 -5
  112. package/dist/gitops.cjs +1 -1
  113. package/dist/gui-config.cjs +1 -2
  114. package/dist/gui-config.d.ts.map +1 -1
  115. package/dist/gui-config.js +0 -1
  116. package/dist/gui-config.js.map +1 -1
  117. package/dist/index.cjs +8 -9
  118. package/dist/index.d.ts +1 -2
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +1 -2
  121. package/dist/index.js.map +1 -1
  122. package/dist/index.node.js +1 -2
  123. package/dist/models/ModelSelector.cjs +1 -1
  124. package/dist/models/ModelSelector.d.ts.map +1 -1
  125. package/dist/models/ModelSelector.js +1 -1
  126. package/dist/models/ModelSelector.js.map +1 -1
  127. package/dist/models/catalog.cjs +1 -1
  128. package/dist/models/catalog.js +1 -1
  129. package/dist/models/index.cjs +1 -1
  130. package/dist/models/types.cjs +1 -1
  131. package/dist/next.cjs +1 -38
  132. package/dist/oss/blueprint.cjs +1 -1
  133. package/dist/oss/blueprint.js +1 -1
  134. package/dist/oss/catalog.cjs +1 -1
  135. package/dist/oss/catalog.js +1 -1
  136. package/dist/oss.cjs +1 -1
  137. package/dist/primitives/Accordion.cjs +1 -1
  138. package/dist/primitives/AccordionContent.cjs +1 -1
  139. package/dist/primitives/AccordionItem.cjs +1 -1
  140. package/dist/primitives/AccordionTrigger.cjs +1 -1
  141. package/dist/primitives/AlertDialog.cjs +1 -1
  142. package/dist/primitives/AlertDialogAction.cjs +1 -1
  143. package/dist/primitives/AlertDialogCancel.cjs +1 -1
  144. package/dist/primitives/AlertDialogContent.cjs +1 -1
  145. package/dist/primitives/AlertDialogDescription.cjs +1 -1
  146. package/dist/primitives/AlertDialogFooter.cjs +1 -1
  147. package/dist/primitives/AlertDialogHeader.cjs +1 -1
  148. package/dist/primitives/AlertDialogOverlay.cjs +1 -1
  149. package/dist/primitives/AlertDialogPortal.cjs +1 -1
  150. package/dist/primitives/AlertDialogTitle.cjs +1 -1
  151. package/dist/primitives/AlertDialogTrigger.cjs +1 -1
  152. package/dist/primitives/Anchor.cjs +1 -1
  153. package/dist/primitives/ApplyTypography.cjs +1 -1
  154. package/dist/primitives/AspectRatio.cjs +1 -1
  155. package/dist/primitives/Avatar.cjs +1 -1
  156. package/dist/primitives/AvatarFallback.cjs +1 -1
  157. package/dist/primitives/AvatarImage.cjs +1 -1
  158. package/dist/primitives/Badge.cjs +1 -1
  159. package/dist/primitives/Band.cjs +1 -1
  160. package/dist/primitives/Breadcrumb.cjs +1 -1
  161. package/dist/primitives/BreadcrumbEllipsis.cjs +1 -1
  162. package/dist/primitives/BreadcrumbItem.cjs +1 -1
  163. package/dist/primitives/BreadcrumbLink.cjs +1 -1
  164. package/dist/primitives/BreadcrumbList.cjs +1 -1
  165. package/dist/primitives/BreadcrumbPage.cjs +1 -1
  166. package/dist/primitives/BreadcrumbSeparator.cjs +1 -1
  167. package/dist/primitives/Button.cjs +1 -1
  168. package/dist/primitives/Card.cjs +1 -1
  169. package/dist/primitives/CardAction.cjs +1 -1
  170. package/dist/primitives/CardContent.cjs +1 -1
  171. package/dist/primitives/CardDescription.cjs +1 -1
  172. package/dist/primitives/CardFooter.cjs +1 -1
  173. package/dist/primitives/CardHeader.cjs +1 -1
  174. package/dist/primitives/CardMedia.cjs +1 -1
  175. package/dist/primitives/CardTitle.cjs +1 -1
  176. package/dist/primitives/Carousel.cjs +1 -1
  177. package/dist/primitives/CarouselContent.cjs +1 -1
  178. package/dist/primitives/CarouselItem.cjs +1 -1
  179. package/dist/primitives/CarouselNext.cjs +1 -1
  180. package/dist/primitives/CarouselPrevious.cjs +1 -1
  181. package/dist/primitives/Checkbox.cjs +1 -1
  182. package/dist/primitives/Collapsible.cjs +1 -1
  183. package/dist/primitives/CollapsibleContent.cjs +1 -1
  184. package/dist/primitives/CollapsibleTrigger.cjs +1 -1
  185. package/dist/primitives/Command.cjs +1 -1
  186. package/dist/primitives/CommandDialog.cjs +1 -1
  187. package/dist/primitives/CommandEmpty.cjs +1 -1
  188. package/dist/primitives/CommandGroup.cjs +1 -1
  189. package/dist/primitives/CommandInput.cjs +1 -1
  190. package/dist/primitives/CommandItem.cjs +1 -1
  191. package/dist/primitives/CommandList.cjs +1 -1
  192. package/dist/primitives/CommandSeparator.cjs +1 -1
  193. package/dist/primitives/CommandShortcut.cjs +1 -1
  194. package/dist/primitives/ContextMenu.cjs +1 -1
  195. package/dist/primitives/ContextMenuCheckboxItem.cjs +1 -1
  196. package/dist/primitives/ContextMenuContent.cjs +1 -1
  197. package/dist/primitives/ContextMenuGroup.cjs +1 -1
  198. package/dist/primitives/ContextMenuItem.cjs +1 -1
  199. package/dist/primitives/ContextMenuLabel.cjs +1 -1
  200. package/dist/primitives/ContextMenuPortal.cjs +1 -1
  201. package/dist/primitives/ContextMenuRadioGroup.cjs +1 -1
  202. package/dist/primitives/ContextMenuRadioItem.cjs +1 -1
  203. package/dist/primitives/ContextMenuSeparator.cjs +1 -1
  204. package/dist/primitives/ContextMenuShortcut.cjs +1 -1
  205. package/dist/primitives/ContextMenuSub.cjs +1 -1
  206. package/dist/primitives/ContextMenuSubContent.cjs +1 -1
  207. package/dist/primitives/ContextMenuSubTrigger.cjs +1 -1
  208. package/dist/primitives/ContextMenuTrigger.cjs +1 -1
  209. package/dist/primitives/Dialog.cjs +1 -1
  210. package/dist/primitives/DialogClose.cjs +1 -1
  211. package/dist/primitives/DialogContent.cjs +1 -1
  212. package/dist/primitives/DialogDescription.cjs +1 -1
  213. package/dist/primitives/DialogFooter.cjs +1 -1
  214. package/dist/primitives/DialogHeader.cjs +1 -1
  215. package/dist/primitives/DialogOverlay.cjs +1 -1
  216. package/dist/primitives/DialogPortal.cjs +1 -1
  217. package/dist/primitives/DialogTitle.cjs +1 -1
  218. package/dist/primitives/DialogTrigger.cjs +1 -1
  219. package/dist/primitives/Drawer.cjs +1 -1
  220. package/dist/primitives/DrawerContent.cjs +1 -1
  221. package/dist/primitives/DrawerHandle.cjs +1 -1
  222. package/dist/primitives/DrawerTrigger.cjs +1 -1
  223. package/dist/primitives/DropdownMenu.cjs +1 -1
  224. package/dist/primitives/DropdownMenuCheckboxItem.cjs +1 -1
  225. package/dist/primitives/DropdownMenuContent.cjs +1 -1
  226. package/dist/primitives/DropdownMenuGroup.cjs +1 -1
  227. package/dist/primitives/DropdownMenuItem.cjs +1 -1
  228. package/dist/primitives/DropdownMenuLabel.cjs +1 -1
  229. package/dist/primitives/DropdownMenuPortal.cjs +1 -1
  230. package/dist/primitives/DropdownMenuRadioGroup.cjs +1 -1
  231. package/dist/primitives/DropdownMenuRadioItem.cjs +1 -1
  232. package/dist/primitives/DropdownMenuSeparator.cjs +1 -1
  233. package/dist/primitives/DropdownMenuShortcut.cjs +1 -1
  234. package/dist/primitives/DropdownMenuSub.cjs +1 -1
  235. package/dist/primitives/DropdownMenuSubContent.cjs +1 -1
  236. package/dist/primitives/DropdownMenuSubTrigger.cjs +1 -1
  237. package/dist/primitives/DropdownMenuTrigger.cjs +1 -1
  238. package/dist/primitives/Em.cjs +1 -1
  239. package/dist/primitives/Fill.cjs +1 -1
  240. package/dist/primitives/Form.cjs +1 -1
  241. package/dist/primitives/FormControl.cjs +1 -1
  242. package/dist/primitives/FormDescription.cjs +1 -1
  243. package/dist/primitives/FormField.cjs +1 -1
  244. package/dist/primitives/FormItem.cjs +1 -1
  245. package/dist/primitives/FormLabel.cjs +1 -1
  246. package/dist/primitives/FormMessage.cjs +1 -1
  247. package/dist/primitives/Glass.cjs +1 -1
  248. package/dist/primitives/H1.cjs +1 -1
  249. package/dist/primitives/H2.cjs +1 -1
  250. package/dist/primitives/H3.cjs +1 -1
  251. package/dist/primitives/H4.cjs +1 -1
  252. package/dist/primitives/H5.cjs +1 -1
  253. package/dist/primitives/H6.cjs +1 -1
  254. package/dist/primitives/Heading.cjs +1 -1
  255. package/dist/primitives/HoverCard.cjs +1 -1
  256. package/dist/primitives/HoverCardContent.cjs +1 -1
  257. package/dist/primitives/HoverCardTrigger.cjs +1 -1
  258. package/dist/primitives/Image.cjs +1 -1
  259. package/dist/primitives/Input.cjs +1 -1
  260. package/dist/primitives/InputOTP.cjs +1 -1
  261. package/dist/primitives/InputOTPGroup.cjs +1 -1
  262. package/dist/primitives/InputOTPSeparator.cjs +1 -1
  263. package/dist/primitives/InputOTPSlot.cjs +1 -1
  264. package/dist/primitives/Label.cjs +1 -1
  265. package/dist/primitives/Link.cjs +1 -1
  266. package/dist/primitives/LinkElement.cjs +1 -1
  267. package/dist/primitives/MDXLink.cjs +1 -1
  268. package/dist/primitives/MediaStack.cjs +1 -1
  269. package/dist/primitives/NavItems.cjs +1 -1
  270. package/dist/primitives/NavigationMenu.cjs +1 -1
  271. package/dist/primitives/NavigationMenuContent.cjs +1 -1
  272. package/dist/primitives/NavigationMenuItem.cjs +1 -1
  273. package/dist/primitives/NavigationMenuLink.cjs +1 -1
  274. package/dist/primitives/NavigationMenuList.cjs +1 -1
  275. package/dist/primitives/NavigationMenuTrigger.cjs +1 -1
  276. package/dist/primitives/Paragraph.cjs +1 -1
  277. package/dist/primitives/Popover.cjs +1 -1
  278. package/dist/primitives/PopoverAnchor.cjs +1 -1
  279. package/dist/primitives/PopoverClose.cjs +1 -1
  280. package/dist/primitives/PopoverContent.cjs +1 -1
  281. package/dist/primitives/PopoverTrigger.cjs +1 -1
  282. package/dist/primitives/Progress.cjs +1 -1
  283. package/dist/primitives/RadioGroup.cjs +1 -1
  284. package/dist/primitives/RadioGroupItem.cjs +1 -1
  285. package/dist/primitives/ResizableHandle.cjs +1 -1
  286. package/dist/primitives/ResizablePanel.cjs +1 -1
  287. package/dist/primitives/ResizablePanelGroup.cjs +1 -1
  288. package/dist/primitives/Screen.cjs +1 -1
  289. package/dist/primitives/ScrollArea.cjs +1 -1
  290. package/dist/primitives/ScrollBar.cjs +1 -1
  291. package/dist/primitives/ScrollView.cjs +1 -1
  292. package/dist/primitives/Select.cjs +1 -1
  293. package/dist/primitives/SelectContent.cjs +1 -1
  294. package/dist/primitives/SelectGroup.cjs +1 -1
  295. package/dist/primitives/SelectItem.cjs +1 -1
  296. package/dist/primitives/SelectLabel.cjs +1 -1
  297. package/dist/primitives/SelectScrollDownButton.cjs +1 -1
  298. package/dist/primitives/SelectScrollUpButton.cjs +1 -1
  299. package/dist/primitives/SelectSeparator.cjs +1 -1
  300. package/dist/primitives/SelectTrigger.cjs +1 -1
  301. package/dist/primitives/SelectValue.cjs +1 -1
  302. package/dist/primitives/Separator.cjs +1 -1
  303. package/dist/primitives/Sheet.cjs +1 -1
  304. package/dist/primitives/SheetClose.cjs +1 -1
  305. package/dist/primitives/SheetContent.cjs +1 -1
  306. package/dist/primitives/SheetDescription.cjs +1 -1
  307. package/dist/primitives/SheetFooter.cjs +1 -1
  308. package/dist/primitives/SheetHeader.cjs +1 -1
  309. package/dist/primitives/SheetOverlay.cjs +1 -1
  310. package/dist/primitives/SheetPortal.cjs +1 -1
  311. package/dist/primitives/SheetTitle.cjs +1 -1
  312. package/dist/primitives/SheetTrigger.cjs +1 -1
  313. package/dist/primitives/SizableText.cjs +1 -1
  314. package/dist/primitives/Skeleton.cjs +1 -1
  315. package/dist/primitives/Slider.cjs +1 -1
  316. package/dist/primitives/Spacer.cjs +1 -1
  317. package/dist/primitives/Span.cjs +1 -1
  318. package/dist/primitives/Spinner.cjs +1 -1
  319. package/dist/primitives/StepIndicator.cjs +1 -1
  320. package/dist/primitives/Strong.cjs +1 -1
  321. package/dist/primitives/Switch.cjs +1 -1
  322. package/dist/primitives/Tabs.cjs +1 -1
  323. package/dist/primitives/TabsContent.cjs +1 -1
  324. package/dist/primitives/TabsList.cjs +1 -1
  325. package/dist/primitives/TabsTrigger.cjs +1 -1
  326. package/dist/primitives/Text.cjs +1 -1
  327. package/dist/primitives/Textarea.cjs +1 -1
  328. package/dist/primitives/Toaster.cjs +1 -1
  329. package/dist/primitives/ToggleGroup.cjs +1 -1
  330. package/dist/primitives/ToggleGroupItem.cjs +1 -1
  331. package/dist/primitives/Tooltip.cjs +1 -1
  332. package/dist/primitives/TooltipContent.cjs +1 -1
  333. package/dist/primitives/TooltipProvider.cjs +1 -1
  334. package/dist/primitives/TooltipTrigger.cjs +1 -1
  335. package/dist/primitives/VideoPlayer.cjs +1 -1
  336. package/dist/primitives/View.cjs +1 -1
  337. package/dist/primitives/XStack.cjs +1 -1
  338. package/dist/primitives/YStack.cjs +1 -1
  339. package/dist/primitives/YouTubeEmbed.cjs +1 -1
  340. package/dist/primitives/ZStack.cjs +1 -1
  341. package/dist/primitives/badgeVariants.cjs +1 -1
  342. package/dist/primitives/bases/data/index.cjs +1 -1
  343. package/dist/primitives/buttonVariants.cjs +1 -1
  344. package/dist/primitives/fit.cjs +1 -1
  345. package/dist/primitives/index.cjs +1 -1
  346. package/dist/primitives/navigationMenuTriggerStyle.cjs +1 -1
  347. package/dist/primitives/toast.cjs +1 -1
  348. package/dist/primitives/useFormField.cjs +1 -1
  349. package/dist/primitives/useLink.cjs +1 -1
  350. package/dist/product/Donut.cjs +2 -1
  351. package/dist/product/Donut.d.ts.map +1 -1
  352. package/dist/product/Donut.js +1 -0
  353. package/dist/product/Donut.js.map +1 -1
  354. package/dist/product/FadeIn.cjs +2 -1
  355. package/dist/product/FadeIn.d.ts.map +1 -1
  356. package/dist/product/FadeIn.js +1 -0
  357. package/dist/product/FadeIn.js.map +1 -1
  358. package/dist/product/HanzoMark.cjs +2 -1
  359. package/dist/product/HanzoMark.d.ts.map +1 -1
  360. package/dist/product/HanzoMark.js +1 -0
  361. package/dist/product/HanzoMark.js.map +1 -1
  362. package/dist/product/TooltipAnchor.cjs +2 -1
  363. package/dist/product/TooltipAnchor.d.ts.map +1 -1
  364. package/dist/product/TooltipAnchor.js +1 -0
  365. package/dist/product/TooltipAnchor.js.map +1 -1
  366. package/dist/product/color.cjs +0 -1
  367. package/dist/product/color.d.ts.map +1 -1
  368. package/dist/product/color.js +1 -2
  369. package/dist/product/color.js.map +1 -1
  370. package/dist/product/index.cjs +1 -1
  371. package/dist/product/instrument.cjs +5 -6
  372. package/dist/product/instrument.d.ts.map +1 -1
  373. package/dist/product/instrument.js +1 -2
  374. package/dist/product/instrument.js.map +1 -1
  375. package/dist/product/match.cjs +1 -1
  376. package/dist/product/match.js +1 -1
  377. package/dist/product/menu/index.cjs +1 -1
  378. package/dist/product/scope.cjs +20 -2
  379. package/dist/product/scope.d.ts.map +1 -1
  380. package/dist/product/scope.js +19 -1
  381. package/dist/product/scope.js.map +1 -1
  382. package/dist/product/social/format.cjs +1 -1
  383. package/dist/product/social/format.js +1 -1
  384. package/dist/product/social/index.cjs +1 -1
  385. package/dist/product/surfaces.data.cjs +1 -1
  386. package/dist/product/surfaces.data.js +1 -1
  387. package/dist/root.cjs +13 -9
  388. package/dist/root.d.ts.map +1 -1
  389. package/dist/root.js +13 -9
  390. package/dist/root.js.map +1 -1
  391. package/dist/root.node.js +13 -9
  392. package/dist/slot.cjs +1 -1
  393. package/dist/slot.js +1 -1
  394. package/dist/styles.css +2 -2
  395. package/dist/telemetry.cjs +0 -1
  396. package/dist/telemetry.d.ts.map +1 -1
  397. package/dist/telemetry.js +0 -1
  398. package/dist/telemetry.js.map +1 -1
  399. package/dist/usage.cjs +1 -1
  400. package/package.json +27 -25
  401. package/dist/index.node.cjs +0 -298
  402. package/dist/root.node.cjs +0 -97
  403. package/dist/style.cjs +0 -48
  404. package/dist/style.d.ts +0 -30
  405. package/dist/style.d.ts.map +0 -1
  406. package/dist/style.js +0 -42
  407. package/dist/style.js.map +0 -1
@@ -1,298 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DropdownMenuSubContent = exports.DropdownMenuSub = exports.DropdownMenuShortcut = exports.DropdownMenuSeparator = exports.DropdownMenuRadioItem = exports.DropdownMenuRadioGroup = exports.DropdownMenuPortal = exports.DropdownMenuLabel = exports.DropdownMenuItem = exports.DropdownMenuGroup = exports.DropdownMenuContent = exports.DropdownMenuCheckboxItem = exports.DropdownMenu = exports.DialogTrigger = exports.DialogTitle = exports.DialogPortal = exports.DialogOverlay = exports.DialogHeader = exports.DialogFooter = exports.DialogDescription = exports.DialogContent = exports.DialogClose = exports.Dialog = exports.CommandShortcut = exports.CommandSeparator = exports.CommandList = exports.CommandItem = exports.CommandInput = exports.CommandGroup = exports.CommandEmpty = exports.CommandDialog = exports.Command = exports.CollapsibleTrigger = exports.CollapsibleContent = exports.Collapsible = exports.Checkbox = exports.CardTitle = exports.CardMedia = exports.CardHeader = exports.CardFooter = exports.CardDescription = exports.CardContent = exports.CardAction = exports.Card = exports.Button = exports.Badge = exports.AvatarImage = exports.AvatarFallback = exports.Avatar = exports.AspectRatio = void 0;
4
- exports.TabsContent = exports.Tabs = exports.Switch = exports.Strong = exports.Spinner = exports.Span = exports.Spacer = exports.Slider = exports.SizableText = exports.Separator = exports.Band = exports.ScrollView = exports.Screen = exports.Paragraph = exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = exports.ScrollBar = exports.ScrollArea = exports.ResizablePanelGroup = exports.ResizablePanel = exports.ResizableHandle = exports.Progress = exports.PopoverTrigger = exports.PopoverContent = exports.PopoverClose = exports.PopoverAnchor = exports.Popover = exports.Label = exports.Input = exports.Image = exports.Heading = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Fill = exports.Glass = exports.Em = exports.DropdownMenuTrigger = exports.DropdownMenuSubTrigger = void 0;
5
- exports.BreadcrumbEllipsis = exports.Breadcrumb = exports.SheetTrigger = exports.SheetTitle = exports.SheetPortal = exports.SheetOverlay = exports.SheetHeader = exports.SheetFooter = exports.SheetDescription = exports.SheetContent = exports.SheetClose = exports.Sheet = exports.StepIndicator = exports.NavItems = exports.MediaStack = exports.Skeleton = exports.CarouselNext = exports.CarouselPrevious = exports.CarouselItem = exports.CarouselContent = exports.Carousel = exports.useFormField = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormLabel = exports.FormItem = exports.FormField = exports.Form = exports.useLink = exports.YouTubeEmbed = exports.VideoPlayer = exports.MDXLink = exports.LinkElement = exports.Link = exports.ApplyTypography = exports.toast = exports.ZStack = exports.YStack = exports.XStack = exports.View = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Text = exports.Toaster = exports.Textarea = exports.TabsTrigger = exports.TabsList = void 0;
6
- exports.HoverCard = exports.ContextMenuTrigger = exports.ContextMenuSubTrigger = exports.ContextMenuSubContent = exports.ContextMenuSub = exports.ContextMenuShortcut = exports.ContextMenuSeparator = exports.ContextMenuRadioItem = exports.ContextMenuRadioGroup = exports.ContextMenuPortal = exports.ContextMenuLabel = exports.ContextMenuItem = exports.ContextMenuGroup = exports.ContextMenuContent = exports.ContextMenuCheckboxItem = exports.ContextMenu = exports.AlertDialogTrigger = exports.AlertDialogTitle = exports.AlertDialogPortal = exports.AlertDialogOverlay = exports.AlertDialogHeader = exports.AlertDialogFooter = exports.AlertDialogDescription = exports.AlertDialogContent = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialog = exports.AccordionTrigger = exports.AccordionItem = exports.AccordionContent = exports.Accordion = exports.DrawerTrigger = exports.DrawerHandle = exports.DrawerContent = exports.Drawer = exports.NavigationMenuTrigger = exports.NavigationMenuList = exports.NavigationMenuLink = exports.NavigationMenuItem = exports.NavigationMenuContent = exports.NavigationMenu = exports.InputOTPSlot = exports.InputOTPSeparator = exports.InputOTPGroup = exports.InputOTP = exports.BreadcrumbSeparator = exports.BreadcrumbPage = exports.BreadcrumbList = exports.BreadcrumbLink = exports.BreadcrumbItem = void 0;
7
- exports.fit = exports.navigationMenuTriggerStyle = exports.badgeVariants = exports.buttonVariants = exports.css = exports.sx = exports.Box = exports.tw = exports.variants = exports.capitalize = exports.cn = exports.Slot = exports.Hanzo = exports.Anchor = exports.ToggleGroupItem = exports.ToggleGroup = exports.RadioGroupItem = exports.RadioGroup = exports.HoverCardTrigger = exports.HoverCardContent = void 0;
8
- // @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
9
- //
10
- // ONE substrate: every component renders through @hanzo/gui primitives, so the
11
- // same import works on web, native (expo) and desktop (Tauri). The ROOT barrel is
12
- // the canonical component API apps import; the product layer and the design
13
- // tokens are their own subpaths, so importing a Button never drags in a chart.
14
- //
15
- // import { Button, Card, Dialog, DropdownMenu, Input, Toaster } from '@hanzo/ui' // component API
16
- // import { PageHeader, Sparkline, EmptyState } from '@hanzo/ui/product' // product/app layer
17
- // import { RecordsView, registerField } from '@hanzo/ui/data' // metadata record layer
18
- // import { ModelSelector } from '@hanzo/ui/models' // unified model picker
19
- // import { cn, themes, colors } from '@hanzo/ui/core' // design core + tokens
20
- // import '@hanzo/ui/theme.css' // the self-contained identity
21
- //
22
- // Styling is theme tokens, never utility classes: `$background`, `$color12`,
23
- // `$borderColor` resolve through the gui token config on every host. Touch
24
- // targets meet the 44px floor via `hitSlop`, never via padding.
25
- // Named, not `export *`.
26
- //
27
- // This module is a client boundary ('use client' above), and Next 16 refuses
28
- // `export *` across one: "It's currently unsupported to use `export *` in a client
29
- // boundary." Every app importing the root barrel failed to build on that one line.
30
- //
31
- // Naming them also restores tree-shaking, which `export *` defeats — a bundler
32
- // cannot prove which members are unused through a star, so importing Button pulled
33
- // the whole surface in.
34
- //
35
- // ./backends/gui declares these as explicit named blocks and this list mirrors it.
36
- //
37
- // It is maintained BY HAND — `scripts/gen-primitives.mjs` writes `src/primitives/`,
38
- // not this file, so nothing regenerates it and nothing used to notice when the two
39
- // drifted. Glass, Grid, Band and CardMedia were all exported by the backend and
40
- // absent here, which means a consumer could not import them AT ALL: the component
41
- // existed, the docs named it, and `import { Grid } from '@hanzo/ui'` was undefined.
42
- // `src/__tests__/barrel.test.ts` now fails when the two disagree.
43
- var gui_1 = require("./backends/gui/index.cjs");
44
- Object.defineProperty(exports, "AspectRatio", { enumerable: true, get: function () { return gui_1.AspectRatio; } });
45
- Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return gui_1.Avatar; } });
46
- Object.defineProperty(exports, "AvatarFallback", { enumerable: true, get: function () { return gui_1.AvatarFallback; } });
47
- Object.defineProperty(exports, "AvatarImage", { enumerable: true, get: function () { return gui_1.AvatarImage; } });
48
- Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return gui_1.Badge; } });
49
- Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return gui_1.Button; } });
50
- Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return gui_1.Card; } });
51
- Object.defineProperty(exports, "CardAction", { enumerable: true, get: function () { return gui_1.CardAction; } });
52
- Object.defineProperty(exports, "CardContent", { enumerable: true, get: function () { return gui_1.CardContent; } });
53
- Object.defineProperty(exports, "CardDescription", { enumerable: true, get: function () { return gui_1.CardDescription; } });
54
- Object.defineProperty(exports, "CardFooter", { enumerable: true, get: function () { return gui_1.CardFooter; } });
55
- Object.defineProperty(exports, "CardHeader", { enumerable: true, get: function () { return gui_1.CardHeader; } });
56
- Object.defineProperty(exports, "CardMedia", { enumerable: true, get: function () { return gui_1.CardMedia; } });
57
- Object.defineProperty(exports, "CardTitle", { enumerable: true, get: function () { return gui_1.CardTitle; } });
58
- Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return gui_1.Checkbox; } });
59
- Object.defineProperty(exports, "Collapsible", { enumerable: true, get: function () { return gui_1.Collapsible; } });
60
- Object.defineProperty(exports, "CollapsibleContent", { enumerable: true, get: function () { return gui_1.CollapsibleContent; } });
61
- Object.defineProperty(exports, "CollapsibleTrigger", { enumerable: true, get: function () { return gui_1.CollapsibleTrigger; } });
62
- Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return gui_1.Command; } });
63
- Object.defineProperty(exports, "CommandDialog", { enumerable: true, get: function () { return gui_1.CommandDialog; } });
64
- Object.defineProperty(exports, "CommandEmpty", { enumerable: true, get: function () { return gui_1.CommandEmpty; } });
65
- Object.defineProperty(exports, "CommandGroup", { enumerable: true, get: function () { return gui_1.CommandGroup; } });
66
- Object.defineProperty(exports, "CommandInput", { enumerable: true, get: function () { return gui_1.CommandInput; } });
67
- Object.defineProperty(exports, "CommandItem", { enumerable: true, get: function () { return gui_1.CommandItem; } });
68
- Object.defineProperty(exports, "CommandList", { enumerable: true, get: function () { return gui_1.CommandList; } });
69
- Object.defineProperty(exports, "CommandSeparator", { enumerable: true, get: function () { return gui_1.CommandSeparator; } });
70
- Object.defineProperty(exports, "CommandShortcut", { enumerable: true, get: function () { return gui_1.CommandShortcut; } });
71
- Object.defineProperty(exports, "Dialog", { enumerable: true, get: function () { return gui_1.Dialog; } });
72
- Object.defineProperty(exports, "DialogClose", { enumerable: true, get: function () { return gui_1.DialogClose; } });
73
- Object.defineProperty(exports, "DialogContent", { enumerable: true, get: function () { return gui_1.DialogContent; } });
74
- Object.defineProperty(exports, "DialogDescription", { enumerable: true, get: function () { return gui_1.DialogDescription; } });
75
- Object.defineProperty(exports, "DialogFooter", { enumerable: true, get: function () { return gui_1.DialogFooter; } });
76
- Object.defineProperty(exports, "DialogHeader", { enumerable: true, get: function () { return gui_1.DialogHeader; } });
77
- Object.defineProperty(exports, "DialogOverlay", { enumerable: true, get: function () { return gui_1.DialogOverlay; } });
78
- Object.defineProperty(exports, "DialogPortal", { enumerable: true, get: function () { return gui_1.DialogPortal; } });
79
- Object.defineProperty(exports, "DialogTitle", { enumerable: true, get: function () { return gui_1.DialogTitle; } });
80
- Object.defineProperty(exports, "DialogTrigger", { enumerable: true, get: function () { return gui_1.DialogTrigger; } });
81
- Object.defineProperty(exports, "DropdownMenu", { enumerable: true, get: function () { return gui_1.DropdownMenu; } });
82
- Object.defineProperty(exports, "DropdownMenuCheckboxItem", { enumerable: true, get: function () { return gui_1.DropdownMenuCheckboxItem; } });
83
- Object.defineProperty(exports, "DropdownMenuContent", { enumerable: true, get: function () { return gui_1.DropdownMenuContent; } });
84
- Object.defineProperty(exports, "DropdownMenuGroup", { enumerable: true, get: function () { return gui_1.DropdownMenuGroup; } });
85
- Object.defineProperty(exports, "DropdownMenuItem", { enumerable: true, get: function () { return gui_1.DropdownMenuItem; } });
86
- Object.defineProperty(exports, "DropdownMenuLabel", { enumerable: true, get: function () { return gui_1.DropdownMenuLabel; } });
87
- Object.defineProperty(exports, "DropdownMenuPortal", { enumerable: true, get: function () { return gui_1.DropdownMenuPortal; } });
88
- Object.defineProperty(exports, "DropdownMenuRadioGroup", { enumerable: true, get: function () { return gui_1.DropdownMenuRadioGroup; } });
89
- Object.defineProperty(exports, "DropdownMenuRadioItem", { enumerable: true, get: function () { return gui_1.DropdownMenuRadioItem; } });
90
- Object.defineProperty(exports, "DropdownMenuSeparator", { enumerable: true, get: function () { return gui_1.DropdownMenuSeparator; } });
91
- Object.defineProperty(exports, "DropdownMenuShortcut", { enumerable: true, get: function () { return gui_1.DropdownMenuShortcut; } });
92
- Object.defineProperty(exports, "DropdownMenuSub", { enumerable: true, get: function () { return gui_1.DropdownMenuSub; } });
93
- Object.defineProperty(exports, "DropdownMenuSubContent", { enumerable: true, get: function () { return gui_1.DropdownMenuSubContent; } });
94
- Object.defineProperty(exports, "DropdownMenuSubTrigger", { enumerable: true, get: function () { return gui_1.DropdownMenuSubTrigger; } });
95
- Object.defineProperty(exports, "DropdownMenuTrigger", { enumerable: true, get: function () { return gui_1.DropdownMenuTrigger; } });
96
- Object.defineProperty(exports, "Em", { enumerable: true, get: function () { return gui_1.Em; } });
97
- Object.defineProperty(exports, "Glass", { enumerable: true, get: function () { return gui_1.Glass; } });
98
- Object.defineProperty(exports, "Fill", { enumerable: true, get: function () { return gui_1.Fill; } });
99
- Object.defineProperty(exports, "H1", { enumerable: true, get: function () { return gui_1.H1; } });
100
- Object.defineProperty(exports, "H2", { enumerable: true, get: function () { return gui_1.H2; } });
101
- Object.defineProperty(exports, "H3", { enumerable: true, get: function () { return gui_1.H3; } });
102
- Object.defineProperty(exports, "H4", { enumerable: true, get: function () { return gui_1.H4; } });
103
- Object.defineProperty(exports, "H5", { enumerable: true, get: function () { return gui_1.H5; } });
104
- Object.defineProperty(exports, "H6", { enumerable: true, get: function () { return gui_1.H6; } });
105
- Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return gui_1.Heading; } });
106
- Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return gui_1.Image; } });
107
- Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return gui_1.Input; } });
108
- Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return gui_1.Label; } });
109
- Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return gui_1.Popover; } });
110
- Object.defineProperty(exports, "PopoverAnchor", { enumerable: true, get: function () { return gui_1.PopoverAnchor; } });
111
- Object.defineProperty(exports, "PopoverClose", { enumerable: true, get: function () { return gui_1.PopoverClose; } });
112
- Object.defineProperty(exports, "PopoverContent", { enumerable: true, get: function () { return gui_1.PopoverContent; } });
113
- Object.defineProperty(exports, "PopoverTrigger", { enumerable: true, get: function () { return gui_1.PopoverTrigger; } });
114
- Object.defineProperty(exports, "Progress", { enumerable: true, get: function () { return gui_1.Progress; } });
115
- Object.defineProperty(exports, "ResizableHandle", { enumerable: true, get: function () { return gui_1.ResizableHandle; } });
116
- Object.defineProperty(exports, "ResizablePanel", { enumerable: true, get: function () { return gui_1.ResizablePanel; } });
117
- Object.defineProperty(exports, "ResizablePanelGroup", { enumerable: true, get: function () { return gui_1.ResizablePanelGroup; } });
118
- Object.defineProperty(exports, "ScrollArea", { enumerable: true, get: function () { return gui_1.ScrollArea; } });
119
- Object.defineProperty(exports, "ScrollBar", { enumerable: true, get: function () { return gui_1.ScrollBar; } });
120
- Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return gui_1.Select; } });
121
- Object.defineProperty(exports, "SelectContent", { enumerable: true, get: function () { return gui_1.SelectContent; } });
122
- Object.defineProperty(exports, "SelectGroup", { enumerable: true, get: function () { return gui_1.SelectGroup; } });
123
- Object.defineProperty(exports, "SelectItem", { enumerable: true, get: function () { return gui_1.SelectItem; } });
124
- Object.defineProperty(exports, "SelectLabel", { enumerable: true, get: function () { return gui_1.SelectLabel; } });
125
- Object.defineProperty(exports, "SelectScrollDownButton", { enumerable: true, get: function () { return gui_1.SelectScrollDownButton; } });
126
- Object.defineProperty(exports, "SelectScrollUpButton", { enumerable: true, get: function () { return gui_1.SelectScrollUpButton; } });
127
- Object.defineProperty(exports, "SelectSeparator", { enumerable: true, get: function () { return gui_1.SelectSeparator; } });
128
- Object.defineProperty(exports, "SelectTrigger", { enumerable: true, get: function () { return gui_1.SelectTrigger; } });
129
- Object.defineProperty(exports, "SelectValue", { enumerable: true, get: function () { return gui_1.SelectValue; } });
130
- Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return gui_1.Paragraph; } });
131
- Object.defineProperty(exports, "Screen", { enumerable: true, get: function () { return gui_1.Screen; } });
132
- Object.defineProperty(exports, "ScrollView", { enumerable: true, get: function () { return gui_1.ScrollView; } });
133
- Object.defineProperty(exports, "Band", { enumerable: true, get: function () { return gui_1.Band; } });
134
- Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return gui_1.Separator; } });
135
- Object.defineProperty(exports, "SizableText", { enumerable: true, get: function () { return gui_1.SizableText; } });
136
- Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return gui_1.Slider; } });
137
- Object.defineProperty(exports, "Spacer", { enumerable: true, get: function () { return gui_1.Spacer; } });
138
- Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return gui_1.Span; } });
139
- Object.defineProperty(exports, "Spinner", { enumerable: true, get: function () { return gui_1.Spinner; } });
140
- Object.defineProperty(exports, "Strong", { enumerable: true, get: function () { return gui_1.Strong; } });
141
- Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return gui_1.Switch; } });
142
- Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return gui_1.Tabs; } });
143
- Object.defineProperty(exports, "TabsContent", { enumerable: true, get: function () { return gui_1.TabsContent; } });
144
- Object.defineProperty(exports, "TabsList", { enumerable: true, get: function () { return gui_1.TabsList; } });
145
- Object.defineProperty(exports, "TabsTrigger", { enumerable: true, get: function () { return gui_1.TabsTrigger; } });
146
- Object.defineProperty(exports, "Textarea", { enumerable: true, get: function () { return gui_1.Textarea; } });
147
- Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return gui_1.Toaster; } });
148
- Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return gui_1.Text; } });
149
- Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return gui_1.Tooltip; } });
150
- Object.defineProperty(exports, "TooltipContent", { enumerable: true, get: function () { return gui_1.TooltipContent; } });
151
- Object.defineProperty(exports, "TooltipProvider", { enumerable: true, get: function () { return gui_1.TooltipProvider; } });
152
- Object.defineProperty(exports, "TooltipTrigger", { enumerable: true, get: function () { return gui_1.TooltipTrigger; } });
153
- Object.defineProperty(exports, "View", { enumerable: true, get: function () { return gui_1.View; } });
154
- Object.defineProperty(exports, "XStack", { enumerable: true, get: function () { return gui_1.XStack; } });
155
- Object.defineProperty(exports, "YStack", { enumerable: true, get: function () { return gui_1.YStack; } });
156
- Object.defineProperty(exports, "ZStack", { enumerable: true, get: function () { return gui_1.ZStack; } });
157
- Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return gui_1.toast; } });
158
- Object.defineProperty(exports, "ApplyTypography", { enumerable: true, get: function () { return gui_1.ApplyTypography; } });
159
- Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return gui_1.Link; } });
160
- Object.defineProperty(exports, "LinkElement", { enumerable: true, get: function () { return gui_1.LinkElement; } });
161
- Object.defineProperty(exports, "MDXLink", { enumerable: true, get: function () { return gui_1.MDXLink; } });
162
- Object.defineProperty(exports, "VideoPlayer", { enumerable: true, get: function () { return gui_1.VideoPlayer; } });
163
- Object.defineProperty(exports, "YouTubeEmbed", { enumerable: true, get: function () { return gui_1.YouTubeEmbed; } });
164
- Object.defineProperty(exports, "useLink", { enumerable: true, get: function () { return gui_1.useLink; } });
165
- Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return gui_1.Form; } });
166
- Object.defineProperty(exports, "FormField", { enumerable: true, get: function () { return gui_1.FormField; } });
167
- Object.defineProperty(exports, "FormItem", { enumerable: true, get: function () { return gui_1.FormItem; } });
168
- Object.defineProperty(exports, "FormLabel", { enumerable: true, get: function () { return gui_1.FormLabel; } });
169
- Object.defineProperty(exports, "FormControl", { enumerable: true, get: function () { return gui_1.FormControl; } });
170
- Object.defineProperty(exports, "FormDescription", { enumerable: true, get: function () { return gui_1.FormDescription; } });
171
- Object.defineProperty(exports, "FormMessage", { enumerable: true, get: function () { return gui_1.FormMessage; } });
172
- Object.defineProperty(exports, "useFormField", { enumerable: true, get: function () { return gui_1.useFormField; } });
173
- Object.defineProperty(exports, "Carousel", { enumerable: true, get: function () { return gui_1.Carousel; } });
174
- Object.defineProperty(exports, "CarouselContent", { enumerable: true, get: function () { return gui_1.CarouselContent; } });
175
- Object.defineProperty(exports, "CarouselItem", { enumerable: true, get: function () { return gui_1.CarouselItem; } });
176
- Object.defineProperty(exports, "CarouselPrevious", { enumerable: true, get: function () { return gui_1.CarouselPrevious; } });
177
- Object.defineProperty(exports, "CarouselNext", { enumerable: true, get: function () { return gui_1.CarouselNext; } });
178
- Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return gui_1.Skeleton; } });
179
- Object.defineProperty(exports, "MediaStack", { enumerable: true, get: function () { return gui_1.MediaStack; } });
180
- Object.defineProperty(exports, "NavItems", { enumerable: true, get: function () { return gui_1.NavItems; } });
181
- Object.defineProperty(exports, "StepIndicator", { enumerable: true, get: function () { return gui_1.StepIndicator; } });
182
- Object.defineProperty(exports, "Sheet", { enumerable: true, get: function () { return gui_1.Sheet; } });
183
- Object.defineProperty(exports, "SheetClose", { enumerable: true, get: function () { return gui_1.SheetClose; } });
184
- Object.defineProperty(exports, "SheetContent", { enumerable: true, get: function () { return gui_1.SheetContent; } });
185
- Object.defineProperty(exports, "SheetDescription", { enumerable: true, get: function () { return gui_1.SheetDescription; } });
186
- Object.defineProperty(exports, "SheetFooter", { enumerable: true, get: function () { return gui_1.SheetFooter; } });
187
- Object.defineProperty(exports, "SheetHeader", { enumerable: true, get: function () { return gui_1.SheetHeader; } });
188
- Object.defineProperty(exports, "SheetOverlay", { enumerable: true, get: function () { return gui_1.SheetOverlay; } });
189
- Object.defineProperty(exports, "SheetPortal", { enumerable: true, get: function () { return gui_1.SheetPortal; } });
190
- Object.defineProperty(exports, "SheetTitle", { enumerable: true, get: function () { return gui_1.SheetTitle; } });
191
- Object.defineProperty(exports, "SheetTrigger", { enumerable: true, get: function () { return gui_1.SheetTrigger; } });
192
- Object.defineProperty(exports, "Breadcrumb", { enumerable: true, get: function () { return gui_1.Breadcrumb; } });
193
- Object.defineProperty(exports, "BreadcrumbEllipsis", { enumerable: true, get: function () { return gui_1.BreadcrumbEllipsis; } });
194
- Object.defineProperty(exports, "BreadcrumbItem", { enumerable: true, get: function () { return gui_1.BreadcrumbItem; } });
195
- Object.defineProperty(exports, "BreadcrumbLink", { enumerable: true, get: function () { return gui_1.BreadcrumbLink; } });
196
- Object.defineProperty(exports, "BreadcrumbList", { enumerable: true, get: function () { return gui_1.BreadcrumbList; } });
197
- Object.defineProperty(exports, "BreadcrumbPage", { enumerable: true, get: function () { return gui_1.BreadcrumbPage; } });
198
- Object.defineProperty(exports, "BreadcrumbSeparator", { enumerable: true, get: function () { return gui_1.BreadcrumbSeparator; } });
199
- Object.defineProperty(exports, "InputOTP", { enumerable: true, get: function () { return gui_1.InputOTP; } });
200
- Object.defineProperty(exports, "InputOTPGroup", { enumerable: true, get: function () { return gui_1.InputOTPGroup; } });
201
- Object.defineProperty(exports, "InputOTPSeparator", { enumerable: true, get: function () { return gui_1.InputOTPSeparator; } });
202
- Object.defineProperty(exports, "InputOTPSlot", { enumerable: true, get: function () { return gui_1.InputOTPSlot; } });
203
- Object.defineProperty(exports, "NavigationMenu", { enumerable: true, get: function () { return gui_1.NavigationMenu; } });
204
- Object.defineProperty(exports, "NavigationMenuContent", { enumerable: true, get: function () { return gui_1.NavigationMenuContent; } });
205
- Object.defineProperty(exports, "NavigationMenuItem", { enumerable: true, get: function () { return gui_1.NavigationMenuItem; } });
206
- Object.defineProperty(exports, "NavigationMenuLink", { enumerable: true, get: function () { return gui_1.NavigationMenuLink; } });
207
- Object.defineProperty(exports, "NavigationMenuList", { enumerable: true, get: function () { return gui_1.NavigationMenuList; } });
208
- Object.defineProperty(exports, "NavigationMenuTrigger", { enumerable: true, get: function () { return gui_1.NavigationMenuTrigger; } });
209
- Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return gui_1.Drawer; } });
210
- Object.defineProperty(exports, "DrawerContent", { enumerable: true, get: function () { return gui_1.DrawerContent; } });
211
- Object.defineProperty(exports, "DrawerHandle", { enumerable: true, get: function () { return gui_1.DrawerHandle; } });
212
- Object.defineProperty(exports, "DrawerTrigger", { enumerable: true, get: function () { return gui_1.DrawerTrigger; } });
213
- Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return gui_1.Accordion; } });
214
- Object.defineProperty(exports, "AccordionContent", { enumerable: true, get: function () { return gui_1.AccordionContent; } });
215
- Object.defineProperty(exports, "AccordionItem", { enumerable: true, get: function () { return gui_1.AccordionItem; } });
216
- Object.defineProperty(exports, "AccordionTrigger", { enumerable: true, get: function () { return gui_1.AccordionTrigger; } });
217
- Object.defineProperty(exports, "AlertDialog", { enumerable: true, get: function () { return gui_1.AlertDialog; } });
218
- Object.defineProperty(exports, "AlertDialogAction", { enumerable: true, get: function () { return gui_1.AlertDialogAction; } });
219
- Object.defineProperty(exports, "AlertDialogCancel", { enumerable: true, get: function () { return gui_1.AlertDialogCancel; } });
220
- Object.defineProperty(exports, "AlertDialogContent", { enumerable: true, get: function () { return gui_1.AlertDialogContent; } });
221
- Object.defineProperty(exports, "AlertDialogDescription", { enumerable: true, get: function () { return gui_1.AlertDialogDescription; } });
222
- Object.defineProperty(exports, "AlertDialogFooter", { enumerable: true, get: function () { return gui_1.AlertDialogFooter; } });
223
- Object.defineProperty(exports, "AlertDialogHeader", { enumerable: true, get: function () { return gui_1.AlertDialogHeader; } });
224
- Object.defineProperty(exports, "AlertDialogOverlay", { enumerable: true, get: function () { return gui_1.AlertDialogOverlay; } });
225
- Object.defineProperty(exports, "AlertDialogPortal", { enumerable: true, get: function () { return gui_1.AlertDialogPortal; } });
226
- Object.defineProperty(exports, "AlertDialogTitle", { enumerable: true, get: function () { return gui_1.AlertDialogTitle; } });
227
- Object.defineProperty(exports, "AlertDialogTrigger", { enumerable: true, get: function () { return gui_1.AlertDialogTrigger; } });
228
- Object.defineProperty(exports, "ContextMenu", { enumerable: true, get: function () { return gui_1.ContextMenu; } });
229
- Object.defineProperty(exports, "ContextMenuCheckboxItem", { enumerable: true, get: function () { return gui_1.ContextMenuCheckboxItem; } });
230
- Object.defineProperty(exports, "ContextMenuContent", { enumerable: true, get: function () { return gui_1.ContextMenuContent; } });
231
- Object.defineProperty(exports, "ContextMenuGroup", { enumerable: true, get: function () { return gui_1.ContextMenuGroup; } });
232
- Object.defineProperty(exports, "ContextMenuItem", { enumerable: true, get: function () { return gui_1.ContextMenuItem; } });
233
- Object.defineProperty(exports, "ContextMenuLabel", { enumerable: true, get: function () { return gui_1.ContextMenuLabel; } });
234
- Object.defineProperty(exports, "ContextMenuPortal", { enumerable: true, get: function () { return gui_1.ContextMenuPortal; } });
235
- Object.defineProperty(exports, "ContextMenuRadioGroup", { enumerable: true, get: function () { return gui_1.ContextMenuRadioGroup; } });
236
- Object.defineProperty(exports, "ContextMenuRadioItem", { enumerable: true, get: function () { return gui_1.ContextMenuRadioItem; } });
237
- Object.defineProperty(exports, "ContextMenuSeparator", { enumerable: true, get: function () { return gui_1.ContextMenuSeparator; } });
238
- Object.defineProperty(exports, "ContextMenuShortcut", { enumerable: true, get: function () { return gui_1.ContextMenuShortcut; } });
239
- Object.defineProperty(exports, "ContextMenuSub", { enumerable: true, get: function () { return gui_1.ContextMenuSub; } });
240
- Object.defineProperty(exports, "ContextMenuSubContent", { enumerable: true, get: function () { return gui_1.ContextMenuSubContent; } });
241
- Object.defineProperty(exports, "ContextMenuSubTrigger", { enumerable: true, get: function () { return gui_1.ContextMenuSubTrigger; } });
242
- Object.defineProperty(exports, "ContextMenuTrigger", { enumerable: true, get: function () { return gui_1.ContextMenuTrigger; } });
243
- Object.defineProperty(exports, "HoverCard", { enumerable: true, get: function () { return gui_1.HoverCard; } });
244
- Object.defineProperty(exports, "HoverCardContent", { enumerable: true, get: function () { return gui_1.HoverCardContent; } });
245
- Object.defineProperty(exports, "HoverCardTrigger", { enumerable: true, get: function () { return gui_1.HoverCardTrigger; } });
246
- Object.defineProperty(exports, "RadioGroup", { enumerable: true, get: function () { return gui_1.RadioGroup; } });
247
- Object.defineProperty(exports, "RadioGroupItem", { enumerable: true, get: function () { return gui_1.RadioGroupItem; } });
248
- Object.defineProperty(exports, "ToggleGroup", { enumerable: true, get: function () { return gui_1.ToggleGroup; } });
249
- Object.defineProperty(exports, "ToggleGroupItem", { enumerable: true, get: function () { return gui_1.ToggleGroupItem; } });
250
- // LAYOUT — the stacks and the type scale reach consumers through the component
251
- // barrel above, which already names XStack/YStack/ZStack, the type scale
252
- // (SizableText, Paragraph, Heading, H1-H6, Span, Strong, Em) and Image, Spacer,
253
- // ScrollView, View and Text. This block adds only what that one lacks.
254
- //
255
- // It used to repeat all twenty, and TypeScript rejects a name exported twice from
256
- // one module: `error TS2300: Duplicate identifier 'Em'` and nineteen more, so
257
- // `tsc -p tsconfig.build.json` failed and @hanzo/ui could not build AT ALL. That
258
- // took the whole cicd lane down with it — the test gate runs
259
- // `pnpm --filter @hanzo/ui... build` first, so no test ever ran and ui.hanzo.ai
260
- // could not ship.
261
- //
262
- // The concern the duplication came from is real and still holds: a name must be
263
- // on the ROOT barrel to reach a consumer — 8.0.65 added these to the backend only
264
- // and the dist still had no XStack, a green release that changed nothing. The fix
265
- // for that is to name it once here, not twice.
266
- var gui_2 = require("./backends/gui/index.cjs");
267
- Object.defineProperty(exports, "Anchor", { enumerable: true, get: function () { return gui_2.Anchor; } });
268
- // `Hanzo` — the root, and the only thing an app mounts. It carries the gui
269
- // config and the generated stylesheet, so `npm i @hanzo/ui` is the whole setup:
270
- // no gui.config.ts, no CSS import, no generator script.
271
- var root_1 = require("./root.node.cjs");
272
- Object.defineProperty(exports, "Hanzo", { enumerable: true, get: function () { return root_1.Hanzo; } });
273
- // `cn` — the class-name composer, surfaced for convenience.
274
- // The type goes with the function. `cn(...inputs: ClassValue[])` cannot be
275
- // typed at a call site without it, so exporting one and not the other left
276
- // every consumer reaching into a subpath for half of a pair.
277
- var slot_1 = require("./slot.cjs");
278
- Object.defineProperty(exports, "Slot", { enumerable: true, get: function () { return slot_1.Slot; } });
279
- var cn_1 = require("./core/cn.cjs");
280
- Object.defineProperty(exports, "cn", { enumerable: true, get: function () { return cn_1.cn; } });
281
- Object.defineProperty(exports, "capitalize", { enumerable: true, get: function () { return cn_1.capitalize; } });
282
- Object.defineProperty(exports, "variants", { enumerable: true, get: function () { return cn_1.variants; } });
283
- // The design-token scale (colors, dark/light themes, radii, spacing, typography)
284
- // lives on the `@hanzo/ui/core` / `@hanzo/ui/tokens` subpath — pure data, no
285
- // runtime.
286
- var tw_1 = require("./tw.cjs");
287
- Object.defineProperty(exports, "tw", { enumerable: true, get: function () { return tw_1.tw; } });
288
- var box_1 = require("./box.cjs");
289
- Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return box_1.Box; } });
290
- var sx_1 = require("./sx.cjs");
291
- Object.defineProperty(exports, "sx", { enumerable: true, get: function () { return sx_1.sx; } });
292
- var css_1 = require("./css.cjs");
293
- Object.defineProperty(exports, "css", { enumerable: true, get: function () { return css_1.css; } });
294
- var style_1 = require("./style.cjs");
295
- Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: function () { return style_1.buttonVariants; } });
296
- Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return style_1.badgeVariants; } });
297
- Object.defineProperty(exports, "navigationMenuTriggerStyle", { enumerable: true, get: function () { return style_1.navigationMenuTriggerStyle; } });
298
- Object.defineProperty(exports, "fit", { enumerable: true, get: function () { return style_1.fit; } });
@@ -1,97 +0,0 @@
1
- 'use client';"use strict";
2
- 'use client';
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Hanzo = void 0;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- /**
7
- * `Hanzo` — the root. The only thing an app has to mount.
8
- *
9
- * import { Hanzo, Button } from '@hanzo/ui'
10
- * <Hanzo><Button>Ship</Button></Hanzo>
11
- *
12
- * No config file, no CSS import, no generator script, no bundler aliases. Three
13
- * things used to be the app's job and are now the package's:
14
- *
15
- * the config — @hanzo/gui resolves `$3` / `$background` / `$borderColor`
16
- * against ONE process-global config, and @hanzo/ui owns it (gui-config.ts).
17
- * It is passed here as a value, not imported for its side effect: Vite 8
18
- * ignores package.json `sideEffects` ARRAYS outright, so a bare
19
- * `import './gui-config.cjs'` is dropped and the first render dies on "Missing
20
- * hanzogui config". A value a rendered component needs cannot be shaken out.
21
- *
22
- * the stylesheet — `styles.css` is generated at OUR publish time by rendering
23
- * every component and harvesting the atomic CSS that render produces
24
- * (scripts/gen-css.mjs). It used to be each app's job to run a generator and
25
- * import its output; hanzo.app never did, and shipped 103 `_bg-` classes
26
- * against zero `_bg-` rules with a green build the whole time.
27
- *
28
- * the theme — gui throws "Missing theme." for any component without a root
29
- * theme context, so there is no version of this that works with no root at
30
- * all. Dark-first, matching the Hanzo identity.
31
- *
32
- * `disableInjectCSS` because the sheet is a real file. Left on, the provider
33
- * inlines `config.getCSS()` into the document on every streaming flush — that is
34
- * how hanzo.ai once shipped thirteen byte-identical copies, 591,305 of its
35
- * 638,443 bytes. A file is cached once and costs nothing after the first page.
36
- * Styles gui generates at runtime for props we could not know at publish time
37
- * still reach the document: that path is `insertStyleRules`, and it is not what
38
- * this flag controls.
39
- */
40
- const gui_1 = require("@hanzo/gui");
41
- const telemetry_1 = require("@hanzogui/telemetry");
42
- const react_1 = require("react");
43
- const state_1 = require("@hanzo/appearance/state");
44
- const gui_config_1 = require("./gui-config.cjs");
45
- // styles.css is omitted from the node entry: node cannot load a stylesheet.
46
- /** A stylesheet that did not reach the document is invisible until someone opens
47
- * production. `styles.css` declares `--hanzo-ui-styles`, so the check is one
48
- * lookup, it runs once, and it names the fix. Development only.
49
- *
50
- * It REPORTS. An unstyled page is already plain to whoever is looking at it, so
51
- * the message only has to say why; refusing to render costs a consumer their
52
- * whole suite to announce a condition their browser would have shown them.
53
- * Asking whether any stylesheet has an owner element does not narrow it either
54
- * — that is true of any dependency that inserts a `<style>`, which is how a
55
- * DOM-SVG icon backend came to fail every test file that mounts `<Hanzo>`. The
56
- * marker is the only sound signal, so it is the only one consulted. */
57
- let checked = false;
58
- const assertStylesheet = () => {
59
- if (checked || typeof document === 'undefined')
60
- return;
61
- checked = true;
62
- if (getComputedStyle(document.documentElement).getPropertyValue('--hanzo-ui-styles').trim())
63
- return;
64
- console.error("@hanzo/ui: styles.css did not reach the document. Import it directly: import '@hanzo/ui/styles.css'.");
65
- };
66
- const Hanzo = ({ children, theme = 'dark', analytics }) => {
67
- if (process.env.NODE_ENV !== 'production')
68
- assertStylesheet();
69
- // A person's stored type size, density and accent, put on the document.
70
- //
71
- // Unconditional, unlike `analytics`, and the difference is the whole reason
72
- // that one is a prop. Analytics starts a conversation with a server the app
73
- // did not ask for; this reads a preference the PERSON already set on this
74
- // device and honours it. An app that has to opt in is an app that forgets to,
75
- // and then the setting silently does nothing on that surface — which is worse
76
- // than not offering it.
77
- //
78
- // Costs nothing when unused: an axis nobody set is absent rather than
79
- // neutral, so `apply()` removes the property instead of stamping a `1` that
80
- // would outrank a brand's own scale.
81
- //
82
- // This is the MOUNT half only. First paint still wants `bootScript()` in
83
- // <head>, because no component can run before the document exists.
84
- (0, react_1.useEffect)(() => {
85
- (0, state_1.apply)((0, state_1.read)());
86
- }, []);
87
- const tree = ((0, jsx_runtime_1.jsx)(gui_1.GuiProvider, { config: gui_config_1.config, defaultTheme: theme, disableInjectCSS: true, children: children }));
88
- // OUTSIDE the gui provider: capture is delegated at the document, so it does
89
- // not need to be inside the styled tree, and an app that renders its own
90
- // `<TelemetryProvider/>` above `<Hanzo>` then nests two providers of the same
91
- // kind rather than interleaving them with the theme.
92
- if (!analytics)
93
- return tree;
94
- return (0, jsx_runtime_1.jsx)(telemetry_1.TelemetryProvider, { ...(analytics === true ? {} : analytics), children: tree });
95
- };
96
- exports.Hanzo = Hanzo;
97
- exports.default = exports.Hanzo;
package/dist/style.cjs DELETED
@@ -1,48 +0,0 @@
1
- "use strict";
2
- // style.ts — the class names a component wears, as functions.
3
- //
4
- // These are strings and arithmetic. They live apart from the components that use
5
- // them because a component renders through @hanzo/gui, the engine holds its theme
6
- // in React context, and a module that reaches context is a client module — so a
7
- // page computing a button's classes on the server would be calling across a
8
- // boundary, which React reports as "Invalid reference" from a component nobody
9
- // wrote.
10
- //
11
- // The boundary belongs on the components, not on the functions. `dist.test.ts`
12
- // asserts that for `cn`, `tw`, `sx` and `types`; this is the same rule applied to
13
- // the names those components wear.
14
- //
15
- // The types come from the components as TYPES, which erase — so naming them here
16
- // costs no import at run time and keeps one definition of what a variant is.
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.fit = exports.navigationMenuTriggerStyle = exports.badgeVariants = exports.buttonVariants = void 0;
19
- /**
20
- * A button's classes.
21
- *
22
- * Variant and size share the `btn-` namespace, so the two defaults collide on
23
- * `btn-default`. A Set emits it once; no name is used by both a variant and a
24
- * size, so nothing else can merge.
25
- */
26
- const buttonVariants = ({ variant, size, className, } = {}) => [...new Set([`btn`, `btn-${variant ?? 'default'}`, `btn-${size ?? 'default'}`, className].filter(Boolean))]
27
- .join(' ');
28
- exports.buttonVariants = buttonVariants;
29
- /** A badge's classes. */
30
- const badgeVariants = ({ variant } = {}) => `badge badge-${variant ?? 'default'}`;
31
- exports.badgeVariants = badgeVariants;
32
- /** The class a navigation-menu trigger wears. Declared in motion.css. */
33
- const navigationMenuTriggerStyle = () => 'hz-nav-menu-trigger';
34
- exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
35
- /**
36
- * `dim` scaled to sit inside `to`, keeping its proportions.
37
- *
38
- * Returns `to` unchanged for a source with no dimensions: a media element whose
39
- * intrinsic size is not known yet occupies the space it was given rather than
40
- * collapsing.
41
- */
42
- const fit = (dim, to, scale = 1) => {
43
- if (!dim?.w || !dim?.h)
44
- return to;
45
- const r = Math.min(to.w / dim.w, to.h / dim.h) * scale;
46
- return { w: Math.round(dim.w * r), h: Math.round(dim.h * r) };
47
- };
48
- exports.fit = fit;
package/dist/style.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import type { Dimensions } from './types.js';
2
- import type { ButtonSize, ButtonVariant } from './backends/gui/button.js';
3
- import type { BadgeVariant } from './backends/gui/badge.js';
4
- /**
5
- * A button's classes.
6
- *
7
- * Variant and size share the `btn-` namespace, so the two defaults collide on
8
- * `btn-default`. A Set emits it once; no name is used by both a variant and a
9
- * size, so nothing else can merge.
10
- */
11
- export declare const buttonVariants: ({ variant, size, className, }?: {
12
- variant?: ButtonVariant | null;
13
- size?: ButtonSize | null;
14
- className?: string;
15
- }) => string;
16
- /** A badge's classes. */
17
- export declare const badgeVariants: ({ variant }?: {
18
- variant?: BadgeVariant | null;
19
- }) => string;
20
- /** The class a navigation-menu trigger wears. Declared in motion.css. */
21
- export declare const navigationMenuTriggerStyle: () => string;
22
- /**
23
- * `dim` scaled to sit inside `to`, keeping its proportions.
24
- *
25
- * Returns `to` unchanged for a source with no dimensions: a media element whose
26
- * intrinsic size is not known yet occupies the space it was given rather than
27
- * collapsing.
28
- */
29
- export declare const fit: (dim: Dimensions, to: Dimensions, scale?: number) => Dimensions;
30
- //# sourceMappingURL=style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mCAIxB;IAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,WAErE,CAAA;AAEd,yBAAyB;AACzB,eAAO,MAAM,aAAa,iBAAiB;IAAE,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,WACrC,CAAA;AAEvC,yEAAyE;AACzE,eAAO,MAAM,0BAA0B,cAA8B,CAAA;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,QAAS,UAAU,MAAM,UAAU,qBAAc,UAIhE,CAAA"}
package/dist/style.js DELETED
@@ -1,42 +0,0 @@
1
- // style.ts — the class names a component wears, as functions.
2
- //
3
- // These are strings and arithmetic. They live apart from the components that use
4
- // them because a component renders through @hanzo/gui, the engine holds its theme
5
- // in React context, and a module that reaches context is a client module — so a
6
- // page computing a button's classes on the server would be calling across a
7
- // boundary, which React reports as "Invalid reference" from a component nobody
8
- // wrote.
9
- //
10
- // The boundary belongs on the components, not on the functions. `dist.test.ts`
11
- // asserts that for `cn`, `tw`, `sx` and `types`; this is the same rule applied to
12
- // the names those components wear.
13
- //
14
- // The types come from the components as TYPES, which erase — so naming them here
15
- // costs no import at run time and keeps one definition of what a variant is.
16
- /**
17
- * A button's classes.
18
- *
19
- * Variant and size share the `btn-` namespace, so the two defaults collide on
20
- * `btn-default`. A Set emits it once; no name is used by both a variant and a
21
- * size, so nothing else can merge.
22
- */
23
- export const buttonVariants = ({ variant, size, className, } = {}) => [...new Set([`btn`, `btn-${variant ?? 'default'}`, `btn-${size ?? 'default'}`, className].filter(Boolean))]
24
- .join(' ');
25
- /** A badge's classes. */
26
- export const badgeVariants = ({ variant } = {}) => `badge badge-${variant ?? 'default'}`;
27
- /** The class a navigation-menu trigger wears. Declared in motion.css. */
28
- export const navigationMenuTriggerStyle = () => 'hz-nav-menu-trigger';
29
- /**
30
- * `dim` scaled to sit inside `to`, keeping its proportions.
31
- *
32
- * Returns `to` unchanged for a source with no dimensions: a media element whose
33
- * intrinsic size is not known yet occupies the space it was given rather than
34
- * collapsing.
35
- */
36
- export const fit = (dim, to, scale = 1) => {
37
- if (!dim?.w || !dim?.h)
38
- return to;
39
- const r = Math.min(to.w / dim.w, to.h / dim.h) * scale;
40
- return { w: Math.round(dim.w * r), h: Math.round(dim.h * r) };
41
- };
42
- //# sourceMappingURL=style.js.map
package/dist/style.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,iFAAiF;AACjF,kFAAkF;AAClF,gFAAgF;AAChF,4EAA4E;AAC5E,+EAA+E;AAC/E,SAAS;AACT,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,mCAAmC;AACnC,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAM7E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,OAAO,EACP,IAAI,EACJ,SAAS,GACV,GAAqF,EAAE,EAAE,EAAE,CAC1F,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,OAAO,IAAI,SAAS,EAAE,EAAE,OAAO,IAAI,IAAI,SAAS,EAAE,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;KACxG,IAAI,CAAC,GAAG,CAAC,CAAA;AAEd,yBAAyB;AACzB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,OAAO,EAAE,GAAsC,EAAE,EAAE,EAAE,CACnF,eAAe,OAAO,IAAI,SAAS,EAAE,CAAA;AAEvC,yEAAyE;AACzE,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAAC,qBAAqB,CAAA;AAErE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAe,EAAE,EAAc,EAAE,KAAK,GAAG,CAAC,EAAc,EAAE;IAC5E,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QAAE,OAAO,EAAE,CAAA;IACjC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAA;IACtD,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;AAC/D,CAAC,CAAA"}