@hanzo/ui 8.0.43 → 8.0.45
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.
- package/dist/backends/gui/aspect-ratio.cjs +14 -1
- package/dist/backends/gui/aspect-ratio.d.ts +13 -0
- package/dist/backends/gui/aspect-ratio.d.ts.map +1 -1
- package/dist/backends/gui/aspect-ratio.js +14 -1
- package/dist/backends/gui/aspect-ratio.js.map +1 -1
- package/dist/backends/gui/badge.cjs +1 -1
- package/dist/backends/gui/badge.d.ts.map +1 -1
- package/dist/backends/gui/badge.js +1 -1
- package/dist/backends/gui/badge.js.map +1 -1
- package/dist/backends/gui/button.cjs +35 -8
- package/dist/backends/gui/button.d.ts.map +1 -1
- package/dist/backends/gui/button.js +35 -8
- package/dist/backends/gui/button.js.map +1 -1
- package/dist/backends/gui/card.cjs +45 -5
- package/dist/backends/gui/card.d.ts +50 -5
- package/dist/backends/gui/card.d.ts.map +1 -1
- package/dist/backends/gui/card.js +44 -5
- package/dist/backends/gui/card.js.map +1 -1
- package/dist/backends/gui/collapsible.cjs +6 -1
- package/dist/backends/gui/collapsible.d.ts +1 -1
- package/dist/backends/gui/collapsible.d.ts.map +1 -1
- package/dist/backends/gui/collapsible.js +6 -1
- package/dist/backends/gui/collapsible.js.map +1 -1
- package/dist/backends/gui/grid.cjs +61 -0
- package/dist/backends/gui/grid.d.ts +16 -0
- package/dist/backends/gui/grid.d.ts.map +1 -0
- package/dist/backends/gui/grid.js +59 -0
- package/dist/backends/gui/grid.js.map +1 -0
- package/dist/backends/gui/index.cjs +7 -2
- package/dist/backends/gui/index.d.ts +3 -1
- package/dist/backends/gui/index.d.ts.map +1 -1
- package/dist/backends/gui/index.js +3 -1
- package/dist/backends/gui/index.js.map +1 -1
- package/dist/backends/gui/scroll-area.cjs +2 -1
- package/dist/backends/gui/scroll-area.d.ts.map +1 -1
- package/dist/backends/gui/scroll-area.js +2 -1
- package/dist/backends/gui/scroll-area.js.map +1 -1
- package/dist/backends/gui/section.cjs +39 -0
- package/dist/backends/gui/section.d.ts +29 -0
- package/dist/backends/gui/section.d.ts.map +1 -0
- package/dist/backends/gui/section.js +37 -0
- package/dist/backends/gui/section.js.map +1 -0
- package/dist/backends/gui/slider.cjs +8 -1
- package/dist/backends/gui/slider.d.ts.map +1 -1
- package/dist/backends/gui/slider.js +8 -1
- package/dist/backends/gui/slider.js.map +1 -1
- package/dist/backends/gui/switch.cjs +3 -1
- package/dist/backends/gui/switch.d.ts.map +1 -1
- package/dist/backends/gui/switch.js +3 -1
- package/dist/backends/gui/switch.js.map +1 -1
- package/dist/backends/gui/tabs.cjs +1 -1
- package/dist/backends/gui/tabs.d.ts +1 -1
- package/dist/backends/gui/tabs.d.ts.map +1 -1
- package/dist/backends/gui/tabs.js +1 -1
- package/dist/backends/gui/tabs.js.map +1 -1
- package/dist/core/cn.cjs +1 -1
- package/dist/core/cn.d.ts +1 -1
- package/dist/core/cn.js +1 -1
- package/dist/gallery.cjs +32 -0
- package/dist/gallery.d.ts +7 -0
- package/dist/gallery.d.ts.map +1 -0
- package/dist/gallery.js +29 -0
- package/dist/gallery.js.map +1 -0
- package/dist/gui-config.cjs +12 -1
- package/dist/gui-config.d.ts +182 -0
- package/dist/gui-config.d.ts.map +1 -1
- package/dist/gui-config.js +12 -1
- package/dist/gui-config.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/primitives/CardMedia.cjs +8 -0
- package/dist/primitives/CardMedia.d.ts +2 -0
- package/dist/primitives/CardMedia.d.ts.map +1 -0
- package/dist/primitives/CardMedia.js +5 -0
- package/dist/primitives/CardMedia.js.map +1 -0
- package/dist/primitives/Grid.cjs +8 -0
- package/dist/primitives/Grid.d.ts +2 -0
- package/dist/primitives/Grid.d.ts.map +1 -0
- package/dist/primitives/Grid.js +5 -0
- package/dist/primitives/Grid.js.map +1 -0
- package/dist/primitives/Section.cjs +8 -0
- package/dist/primitives/Section.d.ts +2 -0
- package/dist/primitives/Section.d.ts.map +1 -0
- package/dist/primitives/Section.js +5 -0
- package/dist/primitives/Section.js.map +1 -0
- package/dist/product/DataTable.cjs +4 -4
- package/dist/product/DataTable.js +4 -4
- package/dist/product/DataTable.js.map +1 -1
- package/dist/product/FadeIn.cjs +1 -1
- package/dist/product/FadeIn.d.ts +1 -1
- package/dist/product/FadeIn.js +1 -1
- package/dist/product/FadeIn.js.map +1 -1
- package/dist/product/Metric.cjs +2 -2
- package/dist/product/Metric.js +2 -2
- package/dist/product/Metric.js.map +1 -1
- package/dist/product/Reorder.cjs +1 -1
- package/dist/product/Reorder.js +1 -1
- package/dist/product/Reorder.js.map +1 -1
- package/dist/product/SlideOver.cjs +3 -3
- package/dist/product/SlideOver.d.ts +1 -1
- package/dist/product/SlideOver.js +3 -3
- package/dist/product/SlideOver.js.map +1 -1
- package/dist/product/social/SocialResource.cjs +1 -1
- package/dist/product/social/SocialResource.js +1 -1
- package/dist/product/social/SocialResource.js.map +1 -1
- package/dist/product/social/SocialSummaryBar.cjs +1 -1
- package/dist/product/social/SocialSummaryBar.js +1 -1
- package/dist/product/social/SocialSummaryBar.js.map +1 -1
- package/dist/root.cjs +67 -0
- package/dist/root.d.ts +10 -0
- package/dist/root.d.ts.map +1 -0
- package/dist/root.js +64 -0
- package/dist/root.js.map +1 -0
- package/dist/styles/{hanzo-motion.css → motion.css} +61 -34
- package/dist/styles.css +1331 -0
- package/dist/theme.css +4 -4
- package/package.json +15 -5
package/dist/core/cn.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.cn = cn;
|
|
|
7
7
|
* `clsx` resolves conditional/array/object class inputs. There is no Tailwind
|
|
8
8
|
* conflict-resolution step because there are no Tailwind utilities to resolve:
|
|
9
9
|
* styling lives in gui style props and the token scale, and class names are only
|
|
10
|
-
* stable handles (`
|
|
10
|
+
* stable handles (`btn`, `mono`) a host may select on.
|
|
11
11
|
*/
|
|
12
12
|
const clsx_1 = require("clsx");
|
|
13
13
|
function cn(...inputs) {
|
package/dist/core/cn.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `clsx` resolves conditional/array/object class inputs. There is no Tailwind
|
|
5
5
|
* conflict-resolution step because there are no Tailwind utilities to resolve:
|
|
6
6
|
* styling lives in gui style props and the token scale, and class names are only
|
|
7
|
-
* stable handles (`
|
|
7
|
+
* stable handles (`btn`, `mono`) a host may select on.
|
|
8
8
|
*/
|
|
9
9
|
import { type ClassValue } from 'clsx';
|
|
10
10
|
export declare function cn(...inputs: ClassValue[]): string;
|
package/dist/core/cn.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `clsx` resolves conditional/array/object class inputs. There is no Tailwind
|
|
5
5
|
* conflict-resolution step because there are no Tailwind utilities to resolve:
|
|
6
6
|
* styling lives in gui style props and the token scale, and class names are only
|
|
7
|
-
* stable handles (`
|
|
7
|
+
* stable handles (`btn`, `mono`) a host may select on.
|
|
8
8
|
*/
|
|
9
9
|
import { clsx } from 'clsx';
|
|
10
10
|
export function cn(...inputs) {
|
package/dist/gallery.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Gallery = void 0;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const gui_1 = require("./backends/gui/index.cjs");
|
|
7
|
+
/** A real <img> with real intrinsic pixels, inline so nothing hits the network.
|
|
8
|
+
* 120x40 on purpose: the wrong ratio for every box it goes in, so a frame that
|
|
9
|
+
* fails to cover-fit its child is visible rather than merely untested. */
|
|
10
|
+
const SWATCH = 'data:image/svg+xml;utf8,' +
|
|
11
|
+
encodeURIComponent(
|
|
12
|
+
// `#` is written literally and encodeURIComponent turns it into %23. Writing
|
|
13
|
+
// %23 here instead double-encodes it to %25888, the fill is invalid, and the
|
|
14
|
+
// swatch silently renders black — which it did.
|
|
15
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="120" height="40"><rect width="120" height="40" fill="#888"/></svg>');
|
|
16
|
+
const BUTTON_VARIANTS = [
|
|
17
|
+
'default', 'destructive', 'outline', 'secondary', 'ghost', 'link', 'primary', 'linkFG', 'linkMuted',
|
|
18
|
+
];
|
|
19
|
+
const BUTTON_SIZES = ['default', 'sm', 'lg', 'icon', 'icon-sm', 'icon-lg'];
|
|
20
|
+
const BADGE_VARIANTS = ['default', 'secondary', 'destructive', 'outline'];
|
|
21
|
+
/** One section. Plain CSS on a plain div — the gallery is a harness, and laying
|
|
22
|
+
* it out with the components under test would make a layout bug read as a
|
|
23
|
+
* styling bug. Rows wrap so the same tree is legible at 390px and at 1280px,
|
|
24
|
+
* which is what makes the screenshot baselines worth comparing. */
|
|
25
|
+
const Section = ({ name, children }) => ((0, jsx_runtime_1.jsx)("section", { "data-gallery": name, style: { display: 'flex', flexWrap: 'wrap', gap: 12, alignItems: 'center', maxWidth: 880 }, children: children }));
|
|
26
|
+
/**
|
|
27
|
+
* Every component, once. `data-gallery` names each section so a browser test can
|
|
28
|
+
* scope its assertions without depending on document order.
|
|
29
|
+
*/
|
|
30
|
+
const Gallery = () => ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', flexDirection: 'column', gap: 28, padding: 24, maxWidth: 928 }, children: [(0, jsx_runtime_1.jsxs)(Section, { name: "button", children: [BUTTON_VARIANTS.map((variant) => ((0, jsx_runtime_1.jsx)(gui_1.Button, { variant: variant, children: variant }, variant))), BUTTON_SIZES.map((size) => ((0, jsx_runtime_1.jsx)(gui_1.Button, { size: size, children: size }, size))), (0, jsx_runtime_1.jsx)(gui_1.Button, { disabled: true, children: "disabled" }), (0, jsx_runtime_1.jsx)(gui_1.Button, { isLoading: true, children: "loading" })] }), (0, jsx_runtime_1.jsx)(Section, { name: "badge", children: BADGE_VARIANTS.map((variant) => ((0, jsx_runtime_1.jsx)(gui_1.Badge, { variant: variant, children: variant }, variant))) }), (0, jsx_runtime_1.jsx)(Section, { name: "card", children: (0, jsx_runtime_1.jsxs)(gui_1.Card, { children: [(0, jsx_runtime_1.jsxs)(gui_1.CardHeader, { children: [(0, jsx_runtime_1.jsx)(gui_1.CardTitle, { children: "Card title" }), (0, jsx_runtime_1.jsx)(gui_1.CardDescription, { children: "Card description" }), (0, jsx_runtime_1.jsx)(gui_1.CardAction, { children: (0, jsx_runtime_1.jsx)(gui_1.Button, { size: "sm", variant: "ghost", children: "action" }) })] }), (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "Card content" }), (0, jsx_runtime_1.jsx)(gui_1.CardFooter, { children: "Card footer" })] }) }), (0, jsx_runtime_1.jsxs)(Section, { name: "form", children: [(0, jsx_runtime_1.jsx)(gui_1.Label, { children: "Label" }), (0, jsx_runtime_1.jsx)(gui_1.Input, { placeholder: "Input" }), (0, jsx_runtime_1.jsx)(gui_1.Input, { placeholder: "Password", type: "password" }), (0, jsx_runtime_1.jsx)(gui_1.Textarea, { placeholder: "Textarea" }), (0, jsx_runtime_1.jsx)(gui_1.Checkbox, {}), (0, jsx_runtime_1.jsx)(gui_1.Checkbox, { checked: true }), (0, jsx_runtime_1.jsx)(gui_1.Switch, {}), (0, jsx_runtime_1.jsx)(gui_1.Switch, { checked: true }), (0, jsx_runtime_1.jsx)(gui_1.Slider, { defaultValue: [40] }), (0, jsx_runtime_1.jsx)(gui_1.Progress, { value: 40 })] }), (0, jsx_runtime_1.jsx)(Section, { name: "tabs", children: (0, jsx_runtime_1.jsxs)(gui_1.Tabs, { defaultValue: "one", children: [(0, jsx_runtime_1.jsxs)(gui_1.TabsList, { children: [(0, jsx_runtime_1.jsx)(gui_1.TabsTrigger, { value: "one", children: "One" }), (0, jsx_runtime_1.jsx)(gui_1.TabsTrigger, { value: "two", children: "Two" })] }), (0, jsx_runtime_1.jsx)(gui_1.TabsContent, { value: "one", children: "Panel one" })] }) }), (0, jsx_runtime_1.jsxs)(Section, { name: "surface", children: [(0, jsx_runtime_1.jsx)(gui_1.Separator, {}), (0, jsx_runtime_1.jsx)(gui_1.AspectRatio, { ratio: 16 / 9 }), (0, jsx_runtime_1.jsx)(gui_1.Avatar, { children: (0, jsx_runtime_1.jsx)(gui_1.AvatarFallback, { children: "HZ" }) }), (0, jsx_runtime_1.jsx)(gui_1.ScrollArea, { height: 80, children: "Scroll area" }), (0, jsx_runtime_1.jsxs)(gui_1.ResizablePanelGroup, { direction: "horizontal", children: [(0, jsx_runtime_1.jsx)(gui_1.ResizablePanel, {}), (0, jsx_runtime_1.jsx)(gui_1.ResizableHandle, {}), (0, jsx_runtime_1.jsx)(gui_1.ResizablePanel, {})] })] }), (0, jsx_runtime_1.jsx)(Section, { name: "collapsible", children: (0, jsx_runtime_1.jsxs)(gui_1.Collapsible, { open: true, children: [(0, jsx_runtime_1.jsx)(gui_1.CollapsibleTrigger, { children: "Collapsible trigger" }), (0, jsx_runtime_1.jsx)(gui_1.CollapsibleContent, { children: "Collapsible content" })] }) }), (0, jsx_runtime_1.jsx)(Section, { name: "command", children: (0, jsx_runtime_1.jsxs)(gui_1.Command, { children: [(0, jsx_runtime_1.jsx)(gui_1.CommandInput, {}), (0, jsx_runtime_1.jsxs)(gui_1.CommandList, { children: [(0, jsx_runtime_1.jsx)(gui_1.CommandEmpty, { children: "No results" }), (0, jsx_runtime_1.jsx)(gui_1.CommandGroup, { heading: "Group", children: (0, jsx_runtime_1.jsxs)(gui_1.CommandItem, { value: "a", children: ["Item", (0, jsx_runtime_1.jsx)(gui_1.CommandShortcut, { children: "\u2318A" })] }) }), (0, jsx_runtime_1.jsx)(gui_1.CommandSeparator, {})] })] }) }), (0, jsx_runtime_1.jsxs)(Section, { name: "overlay", children: [(0, jsx_runtime_1.jsx)(gui_1.Dialog, { open: true, children: (0, jsx_runtime_1.jsxs)(gui_1.DialogContent, { children: [(0, jsx_runtime_1.jsxs)(gui_1.DialogHeader, { children: [(0, jsx_runtime_1.jsx)(gui_1.DialogTitle, { children: "Dialog title" }), (0, jsx_runtime_1.jsx)(gui_1.DialogDescription, { children: "Dialog description" })] }), (0, jsx_runtime_1.jsx)(gui_1.DialogFooter, { children: (0, jsx_runtime_1.jsx)(gui_1.Button, { size: "sm", children: "OK" }) })] }) }), (0, jsx_runtime_1.jsxs)(gui_1.DropdownMenu, { open: true, children: [(0, jsx_runtime_1.jsx)(gui_1.DropdownMenuTrigger, { children: "Menu" }), (0, jsx_runtime_1.jsxs)(gui_1.DropdownMenuContent, { children: [(0, jsx_runtime_1.jsx)(gui_1.DropdownMenuLabel, { children: "Label" }), (0, jsx_runtime_1.jsx)(gui_1.DropdownMenuSeparator, {}), (0, jsx_runtime_1.jsx)(gui_1.DropdownMenuItem, { children: "Item" })] })] }), (0, jsx_runtime_1.jsxs)(gui_1.Popover, { open: true, children: [(0, jsx_runtime_1.jsx)(gui_1.PopoverTrigger, { children: "Popover" }), (0, jsx_runtime_1.jsx)(gui_1.PopoverContent, { children: "Popover content" })] }), (0, jsx_runtime_1.jsxs)(gui_1.Select, { open: true, children: [(0, jsx_runtime_1.jsx)(gui_1.SelectTrigger, { children: (0, jsx_runtime_1.jsx)(gui_1.SelectValue, { placeholder: "Select" }) }), (0, jsx_runtime_1.jsx)(gui_1.SelectContent, { children: (0, jsx_runtime_1.jsx)(gui_1.SelectItem, { value: "x", index: 0, children: "Option" }) })] }), (0, jsx_runtime_1.jsx)(gui_1.TooltipProvider, { delay: 0, children: (0, jsx_runtime_1.jsxs)(gui_1.Tooltip, { open: true, children: [(0, jsx_runtime_1.jsx)(gui_1.TooltipTrigger, { children: "Tooltip" }), (0, jsx_runtime_1.jsx)(gui_1.TooltipContent, { children: "Tooltip content" })] }) }), (0, jsx_runtime_1.jsx)(gui_1.Toaster, {})] }), (0, jsx_runtime_1.jsxs)(Section, { name: "layout", children: [(0, jsx_runtime_1.jsx)(gui_1.Grid, { min: 240, gap: "$3", style: { width: '100%' }, "data-grid": "auto", children: [0, 1, 2, 3, 4, 5, 6].map((i) => ((0, jsx_runtime_1.jsxs)(gui_1.Card, { children: [(0, jsx_runtime_1.jsx)(gui_1.CardMedia, { ratio: 16 / 10, children: (0, jsx_runtime_1.jsx)("img", { src: SWATCH, alt: "" }) }), (0, jsx_runtime_1.jsxs)(gui_1.CardHeader, { children: [(0, jsx_runtime_1.jsxs)(gui_1.CardTitle, { children: ["Card ", i] }), (0, jsx_runtime_1.jsx)(gui_1.CardDescription, { children: "Sized by its content, never by a pinned height." })] })] }, i))) }), (0, jsx_runtime_1.jsxs)(gui_1.Grid, { min: 900, gap: "$3", style: { width: '100%' }, "data-grid": "wide", children: [(0, jsx_runtime_1.jsx)(gui_1.Card, { children: (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "wide" }) }), (0, jsx_runtime_1.jsx)(gui_1.Card, { children: (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "wide" }) })] }), (0, jsx_runtime_1.jsx)("div", { style: { width: '100%', overflow: 'hidden' }, children: (0, jsx_runtime_1.jsxs)(gui_1.Grid, { cols: 3, gap: "$3", style: { width: '100%' }, "data-grid": "fixed", children: [(0, jsx_runtime_1.jsx)(gui_1.Card, { children: (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "short" }) }), (0, jsx_runtime_1.jsx)(gui_1.Card, { children: (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: (0, jsx_runtime_1.jsx)("span", { style: { whiteSpace: 'nowrap' }, children: "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" }) }) }), (0, jsx_runtime_1.jsx)(gui_1.Card, { children: (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "short" }) })] }) }), (0, jsx_runtime_1.jsxs)("div", { "data-grid": "growth", style: { display: 'flex', alignItems: 'flex-start', gap: 12, width: '100%' }, children: [(0, jsx_runtime_1.jsx)(gui_1.Card, { "data-card": "lean", children: (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "one line" }) }), (0, jsx_runtime_1.jsxs)(gui_1.Card, { "data-card": "fat", children: [(0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "one line" }), (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "two line" }), (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "three line" }), (0, jsx_runtime_1.jsx)(gui_1.CardContent, { children: "four line" })] })] }), (0, jsx_runtime_1.jsx)(gui_1.Card, { interactive: true, "data-card": "interactive", children: (0, jsx_runtime_1.jsx)(gui_1.CardHeader, { children: (0, jsx_runtime_1.jsx)(gui_1.CardTitle, { children: "Interactive card" }) }) }), (0, jsx_runtime_1.jsx)(gui_1.Section, { maxWidth: 600, "data-section": "demo", children: (0, jsx_runtime_1.jsx)(gui_1.CardTitle, { children: "Section" }) }), (0, jsx_runtime_1.jsx)(gui_1.CardTitle, { fontFamily: "$mono", "data-type": "mono", children: "1234567890" }), (0, jsx_runtime_1.jsx)(gui_1.Button, { "data-button": "block-child", children: (0, jsx_runtime_1.jsx)("span", { "data-block-child": true, style: { display: 'block', height: 119, width: 119 } }) })] })] }));
|
|
31
|
+
exports.Gallery = Gallery;
|
|
32
|
+
exports.default = exports.Gallery;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every component, once. `data-gallery` names each section so a browser test can
|
|
3
|
+
* scope its assertions without depending on document order.
|
|
4
|
+
*/
|
|
5
|
+
export declare const Gallery: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Gallery;
|
|
7
|
+
//# sourceMappingURL=gallery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery.d.ts","sourceRoot":"","sources":["../src/gallery.tsx"],"names":[],"mappings":"AAuEA;;;GAGG;AACH,eAAO,MAAM,OAAO,+CAsOnB,CAAA;AAED,eAAe,OAAO,CAAA"}
|
package/dist/gallery.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { AspectRatio, Avatar, AvatarFallback, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, Input, Label, Popover, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Separator, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Grid, Section as PageSection, CardMedia, } from './backends/gui/index.js';
|
|
4
|
+
/** A real <img> with real intrinsic pixels, inline so nothing hits the network.
|
|
5
|
+
* 120x40 on purpose: the wrong ratio for every box it goes in, so a frame that
|
|
6
|
+
* fails to cover-fit its child is visible rather than merely untested. */
|
|
7
|
+
const SWATCH = 'data:image/svg+xml;utf8,' +
|
|
8
|
+
encodeURIComponent(
|
|
9
|
+
// `#` is written literally and encodeURIComponent turns it into %23. Writing
|
|
10
|
+
// %23 here instead double-encodes it to %25888, the fill is invalid, and the
|
|
11
|
+
// swatch silently renders black — which it did.
|
|
12
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="120" height="40"><rect width="120" height="40" fill="#888"/></svg>');
|
|
13
|
+
const BUTTON_VARIANTS = [
|
|
14
|
+
'default', 'destructive', 'outline', 'secondary', 'ghost', 'link', 'primary', 'linkFG', 'linkMuted',
|
|
15
|
+
];
|
|
16
|
+
const BUTTON_SIZES = ['default', 'sm', 'lg', 'icon', 'icon-sm', 'icon-lg'];
|
|
17
|
+
const BADGE_VARIANTS = ['default', 'secondary', 'destructive', 'outline'];
|
|
18
|
+
/** One section. Plain CSS on a plain div — the gallery is a harness, and laying
|
|
19
|
+
* it out with the components under test would make a layout bug read as a
|
|
20
|
+
* styling bug. Rows wrap so the same tree is legible at 390px and at 1280px,
|
|
21
|
+
* which is what makes the screenshot baselines worth comparing. */
|
|
22
|
+
const Section = ({ name, children }) => (_jsx("section", { "data-gallery": name, style: { display: 'flex', flexWrap: 'wrap', gap: 12, alignItems: 'center', maxWidth: 880 }, children: children }));
|
|
23
|
+
/**
|
|
24
|
+
* Every component, once. `data-gallery` names each section so a browser test can
|
|
25
|
+
* scope its assertions without depending on document order.
|
|
26
|
+
*/
|
|
27
|
+
export const Gallery = () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 28, padding: 24, maxWidth: 928 }, children: [_jsxs(Section, { name: "button", children: [BUTTON_VARIANTS.map((variant) => (_jsx(Button, { variant: variant, children: variant }, variant))), BUTTON_SIZES.map((size) => (_jsx(Button, { size: size, children: size }, size))), _jsx(Button, { disabled: true, children: "disabled" }), _jsx(Button, { isLoading: true, children: "loading" })] }), _jsx(Section, { name: "badge", children: BADGE_VARIANTS.map((variant) => (_jsx(Badge, { variant: variant, children: variant }, variant))) }), _jsx(Section, { name: "card", children: _jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Card title" }), _jsx(CardDescription, { children: "Card description" }), _jsx(CardAction, { children: _jsx(Button, { size: "sm", variant: "ghost", children: "action" }) })] }), _jsx(CardContent, { children: "Card content" }), _jsx(CardFooter, { children: "Card footer" })] }) }), _jsxs(Section, { name: "form", children: [_jsx(Label, { children: "Label" }), _jsx(Input, { placeholder: "Input" }), _jsx(Input, { placeholder: "Password", type: "password" }), _jsx(Textarea, { placeholder: "Textarea" }), _jsx(Checkbox, {}), _jsx(Checkbox, { checked: true }), _jsx(Switch, {}), _jsx(Switch, { checked: true }), _jsx(Slider, { defaultValue: [40] }), _jsx(Progress, { value: 40 })] }), _jsx(Section, { name: "tabs", children: _jsxs(Tabs, { defaultValue: "one", children: [_jsxs(TabsList, { children: [_jsx(TabsTrigger, { value: "one", children: "One" }), _jsx(TabsTrigger, { value: "two", children: "Two" })] }), _jsx(TabsContent, { value: "one", children: "Panel one" })] }) }), _jsxs(Section, { name: "surface", children: [_jsx(Separator, {}), _jsx(AspectRatio, { ratio: 16 / 9 }), _jsx(Avatar, { children: _jsx(AvatarFallback, { children: "HZ" }) }), _jsx(ScrollArea, { height: 80, children: "Scroll area" }), _jsxs(ResizablePanelGroup, { direction: "horizontal", children: [_jsx(ResizablePanel, {}), _jsx(ResizableHandle, {}), _jsx(ResizablePanel, {})] })] }), _jsx(Section, { name: "collapsible", children: _jsxs(Collapsible, { open: true, children: [_jsx(CollapsibleTrigger, { children: "Collapsible trigger" }), _jsx(CollapsibleContent, { children: "Collapsible content" })] }) }), _jsx(Section, { name: "command", children: _jsxs(Command, { children: [_jsx(CommandInput, {}), _jsxs(CommandList, { children: [_jsx(CommandEmpty, { children: "No results" }), _jsx(CommandGroup, { heading: "Group", children: _jsxs(CommandItem, { value: "a", children: ["Item", _jsx(CommandShortcut, { children: "\u2318A" })] }) }), _jsx(CommandSeparator, {})] })] }) }), _jsxs(Section, { name: "overlay", children: [_jsx(Dialog, { open: true, children: _jsxs(DialogContent, { children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Dialog title" }), _jsx(DialogDescription, { children: "Dialog description" })] }), _jsx(DialogFooter, { children: _jsx(Button, { size: "sm", children: "OK" }) })] }) }), _jsxs(DropdownMenu, { open: true, children: [_jsx(DropdownMenuTrigger, { children: "Menu" }), _jsxs(DropdownMenuContent, { children: [_jsx(DropdownMenuLabel, { children: "Label" }), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { children: "Item" })] })] }), _jsxs(Popover, { open: true, children: [_jsx(PopoverTrigger, { children: "Popover" }), _jsx(PopoverContent, { children: "Popover content" })] }), _jsxs(Select, { open: true, children: [_jsx(SelectTrigger, { children: _jsx(SelectValue, { placeholder: "Select" }) }), _jsx(SelectContent, { children: _jsx(SelectItem, { value: "x", index: 0, children: "Option" }) })] }), _jsx(TooltipProvider, { delay: 0, children: _jsxs(Tooltip, { open: true, children: [_jsx(TooltipTrigger, { children: "Tooltip" }), _jsx(TooltipContent, { children: "Tooltip content" })] }) }), _jsx(Toaster, {})] }), _jsxs(Section, { name: "layout", children: [_jsx(Grid, { min: 240, gap: "$3", style: { width: '100%' }, "data-grid": "auto", children: [0, 1, 2, 3, 4, 5, 6].map((i) => (_jsxs(Card, { children: [_jsx(CardMedia, { ratio: 16 / 10, children: _jsx("img", { src: SWATCH, alt: "" }) }), _jsxs(CardHeader, { children: [_jsxs(CardTitle, { children: ["Card ", i] }), _jsx(CardDescription, { children: "Sized by its content, never by a pinned height." })] })] }, i))) }), _jsxs(Grid, { min: 900, gap: "$3", style: { width: '100%' }, "data-grid": "wide", children: [_jsx(Card, { children: _jsx(CardContent, { children: "wide" }) }), _jsx(Card, { children: _jsx(CardContent, { children: "wide" }) })] }), _jsx("div", { style: { width: '100%', overflow: 'hidden' }, children: _jsxs(Grid, { cols: 3, gap: "$3", style: { width: '100%' }, "data-grid": "fixed", children: [_jsx(Card, { children: _jsx(CardContent, { children: "short" }) }), _jsx(Card, { children: _jsx(CardContent, { children: _jsx("span", { style: { whiteSpace: 'nowrap' }, children: "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" }) }) }), _jsx(Card, { children: _jsx(CardContent, { children: "short" }) })] }) }), _jsxs("div", { "data-grid": "growth", style: { display: 'flex', alignItems: 'flex-start', gap: 12, width: '100%' }, children: [_jsx(Card, { "data-card": "lean", children: _jsx(CardContent, { children: "one line" }) }), _jsxs(Card, { "data-card": "fat", children: [_jsx(CardContent, { children: "one line" }), _jsx(CardContent, { children: "two line" }), _jsx(CardContent, { children: "three line" }), _jsx(CardContent, { children: "four line" })] })] }), _jsx(Card, { interactive: true, "data-card": "interactive", children: _jsx(CardHeader, { children: _jsx(CardTitle, { children: "Interactive card" }) }) }), _jsx(PageSection, { maxWidth: 600, "data-section": "demo", children: _jsx(CardTitle, { children: "Section" }) }), _jsx(CardTitle, { fontFamily: "$mono", "data-type": "mono", children: "1234567890" }), _jsx(Button, { "data-button": "block-child", children: _jsx("span", { "data-block-child": true, style: { display: 'block', height: 119, width: 119 } }) })] })] }));
|
|
28
|
+
export default Gallery;
|
|
29
|
+
//# sourceMappingURL=gallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["../src/gallery.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAyBZ,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EACjF,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EACzE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EACzF,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAClF,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EACxE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAC/E,mBAAmB,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EACpF,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EACvF,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EACpF,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAClF,cAAc,EAAE,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d,KAAC,SAAS,IAAC,UAAU,EAAC,OAAO,eAAW,MAAM,2BAAuB,EAErE,KAAC,MAAM,mBAAa,aAAa,YAC/B,yCAAuB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAI,GACxE,IACD,IACN,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
|
package/dist/gui-config.cjs
CHANGED
|
@@ -26,10 +26,15 @@ const gui_1 = require("@hanzo/gui");
|
|
|
26
26
|
// product moves. Adding a fourth spelling of a size is the thing to refuse.
|
|
27
27
|
//
|
|
28
28
|
// Canonical face: Geist Sans for UI, Geist Mono for anything numeric/code/id
|
|
29
|
-
// (`.
|
|
29
|
+
// (`.mono`). The host self-hosts both faces (its own fonts.css) — this only
|
|
30
30
|
// names them.
|
|
31
31
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
32
32
|
const GEIST = "'Geist', system-ui, -apple-system, sans-serif";
|
|
33
|
+
/** The numeric/code/id face. Byte-for-byte the stack `.mono` sets in
|
|
34
|
+
* styles/motion.css — the class and the `$mono` token have to resolve to the
|
|
35
|
+
* same face or the same number renders in two different fonts depending on
|
|
36
|
+
* which one a component reached for. */
|
|
37
|
+
const GEIST_MONO = "'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
33
38
|
/** Type — SIX sizes in the app, matching the host's `--text-*` design tokens.
|
|
34
39
|
* $1 label · $2 nav + dense body · $3 base · $4/$5 emphasis · $6 section head ·
|
|
35
40
|
* $7 page title · $8+ display. `$5` collapses onto 15 to retire the 16px base
|
|
@@ -147,6 +152,12 @@ exports.config = (0, gui_1.createGui)({
|
|
|
147
152
|
...v5_1.defaultConfig.fonts,
|
|
148
153
|
body: { ...v5_1.defaultConfig.fonts.body, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
|
|
149
154
|
heading: { ...v5_1.defaultConfig.fonts.heading, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
|
|
155
|
+
// `$mono` was NOT defined here, and gui emits NO class for a font token it
|
|
156
|
+
// does not know — no warning, no fallback, a green build and text that is
|
|
157
|
+
// simply not monospace. 260 `fontFamily="$mono"` call sites across 74 files
|
|
158
|
+
// in hanzo.app were dead on that alone. A missing token has to be a defined
|
|
159
|
+
// token, not a silent no-op, so it is defined.
|
|
160
|
+
mono: { ...v5_1.defaultConfig.fonts.body, family: GEIST_MONO, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
|
|
150
161
|
},
|
|
151
162
|
});
|
|
152
163
|
exports.default = exports.config;
|
package/dist/gui-config.d.ts
CHANGED
|
@@ -548,6 +548,188 @@ export declare const config: import("@hanzogui/web").GuiInternalConfig<{
|
|
|
548
548
|
};
|
|
549
549
|
}> | undefined>;
|
|
550
550
|
};
|
|
551
|
+
mono: {
|
|
552
|
+
family: string;
|
|
553
|
+
size: {
|
|
554
|
+
readonly 1: 11;
|
|
555
|
+
readonly 2: 13;
|
|
556
|
+
readonly 3: 14;
|
|
557
|
+
readonly 4: 15;
|
|
558
|
+
readonly 5: 15;
|
|
559
|
+
readonly 6: 17;
|
|
560
|
+
readonly 7: 21;
|
|
561
|
+
readonly 8: 26;
|
|
562
|
+
readonly 9: 26;
|
|
563
|
+
readonly 10: 32;
|
|
564
|
+
readonly 11: 40;
|
|
565
|
+
readonly 12: 48;
|
|
566
|
+
readonly 13: 56;
|
|
567
|
+
readonly 14: 64;
|
|
568
|
+
readonly 15: 80;
|
|
569
|
+
readonly 16: 96;
|
|
570
|
+
readonly true: 14;
|
|
571
|
+
};
|
|
572
|
+
lineHeight: {
|
|
573
|
+
readonly 1: 16;
|
|
574
|
+
readonly 2: 18;
|
|
575
|
+
readonly 3: 20;
|
|
576
|
+
readonly 4: 22;
|
|
577
|
+
readonly 5: 22;
|
|
578
|
+
readonly 6: 24;
|
|
579
|
+
readonly 7: 28;
|
|
580
|
+
readonly 8: 32;
|
|
581
|
+
readonly 9: 32;
|
|
582
|
+
readonly 10: 38;
|
|
583
|
+
readonly 11: 46;
|
|
584
|
+
readonly 12: 54;
|
|
585
|
+
readonly 13: 62;
|
|
586
|
+
readonly 14: 70;
|
|
587
|
+
readonly 15: 86;
|
|
588
|
+
readonly 16: 102;
|
|
589
|
+
readonly true: 20;
|
|
590
|
+
};
|
|
591
|
+
weight: {
|
|
592
|
+
1: any;
|
|
593
|
+
5: any;
|
|
594
|
+
7: any;
|
|
595
|
+
12: any;
|
|
596
|
+
2: any;
|
|
597
|
+
3: any;
|
|
598
|
+
16: any;
|
|
599
|
+
4: any;
|
|
600
|
+
6: any;
|
|
601
|
+
true: any;
|
|
602
|
+
10: any;
|
|
603
|
+
8: any;
|
|
604
|
+
11: any;
|
|
605
|
+
9: any;
|
|
606
|
+
15: any;
|
|
607
|
+
14: any;
|
|
608
|
+
13: any;
|
|
609
|
+
};
|
|
610
|
+
letterSpacing: {
|
|
611
|
+
1: any;
|
|
612
|
+
5: any;
|
|
613
|
+
7: any;
|
|
614
|
+
12: any;
|
|
615
|
+
2: any;
|
|
616
|
+
3: any;
|
|
617
|
+
16: any;
|
|
618
|
+
4: any;
|
|
619
|
+
6: any;
|
|
620
|
+
true: any;
|
|
621
|
+
10: any;
|
|
622
|
+
8: any;
|
|
623
|
+
11: any;
|
|
624
|
+
9: any;
|
|
625
|
+
15: any;
|
|
626
|
+
14: any;
|
|
627
|
+
13: any;
|
|
628
|
+
};
|
|
629
|
+
style: {
|
|
630
|
+
1: any;
|
|
631
|
+
5: any;
|
|
632
|
+
7: any;
|
|
633
|
+
12: any;
|
|
634
|
+
2: any;
|
|
635
|
+
3: any;
|
|
636
|
+
16: any;
|
|
637
|
+
4: any;
|
|
638
|
+
6: any;
|
|
639
|
+
true: any;
|
|
640
|
+
10: any;
|
|
641
|
+
8: any;
|
|
642
|
+
11: any;
|
|
643
|
+
9: any;
|
|
644
|
+
15: any;
|
|
645
|
+
14: any;
|
|
646
|
+
13: any;
|
|
647
|
+
};
|
|
648
|
+
transform: {
|
|
649
|
+
1: any;
|
|
650
|
+
5: any;
|
|
651
|
+
7: any;
|
|
652
|
+
12: any;
|
|
653
|
+
2: any;
|
|
654
|
+
3: any;
|
|
655
|
+
16: any;
|
|
656
|
+
4: any;
|
|
657
|
+
6: any;
|
|
658
|
+
true: any;
|
|
659
|
+
10: any;
|
|
660
|
+
8: any;
|
|
661
|
+
11: any;
|
|
662
|
+
9: any;
|
|
663
|
+
15: any;
|
|
664
|
+
14: any;
|
|
665
|
+
13: any;
|
|
666
|
+
};
|
|
667
|
+
color: {
|
|
668
|
+
1: any;
|
|
669
|
+
5: any;
|
|
670
|
+
7: any;
|
|
671
|
+
12: any;
|
|
672
|
+
2: any;
|
|
673
|
+
3: any;
|
|
674
|
+
16: any;
|
|
675
|
+
4: any;
|
|
676
|
+
6: any;
|
|
677
|
+
true: any;
|
|
678
|
+
10: any;
|
|
679
|
+
8: any;
|
|
680
|
+
11: any;
|
|
681
|
+
9: any;
|
|
682
|
+
15: any;
|
|
683
|
+
14: any;
|
|
684
|
+
13: any;
|
|
685
|
+
};
|
|
686
|
+
face: Partial<Partial<{
|
|
687
|
+
bold: {
|
|
688
|
+
normal?: string;
|
|
689
|
+
italic?: string;
|
|
690
|
+
};
|
|
691
|
+
normal: {
|
|
692
|
+
normal?: string;
|
|
693
|
+
italic?: string;
|
|
694
|
+
};
|
|
695
|
+
100: {
|
|
696
|
+
normal?: string;
|
|
697
|
+
italic?: string;
|
|
698
|
+
};
|
|
699
|
+
500: {
|
|
700
|
+
normal?: string;
|
|
701
|
+
italic?: string;
|
|
702
|
+
};
|
|
703
|
+
700: {
|
|
704
|
+
normal?: string;
|
|
705
|
+
italic?: string;
|
|
706
|
+
};
|
|
707
|
+
200: {
|
|
708
|
+
normal?: string;
|
|
709
|
+
italic?: string;
|
|
710
|
+
};
|
|
711
|
+
300: {
|
|
712
|
+
normal?: string;
|
|
713
|
+
italic?: string;
|
|
714
|
+
};
|
|
715
|
+
400: {
|
|
716
|
+
normal?: string;
|
|
717
|
+
italic?: string;
|
|
718
|
+
};
|
|
719
|
+
600: {
|
|
720
|
+
normal?: string;
|
|
721
|
+
italic?: string;
|
|
722
|
+
};
|
|
723
|
+
800: {
|
|
724
|
+
normal?: string;
|
|
725
|
+
italic?: string;
|
|
726
|
+
};
|
|
727
|
+
900: {
|
|
728
|
+
normal?: string;
|
|
729
|
+
italic?: string;
|
|
730
|
+
};
|
|
731
|
+
}> | undefined>;
|
|
732
|
+
};
|
|
551
733
|
}, {
|
|
552
734
|
mediaQueryDefaultActive: {
|
|
553
735
|
touchable: boolean;
|
package/dist/gui-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-config.d.ts","sourceRoot":"","sources":["../src/gui-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gui-config.d.ts","sourceRoot":"","sources":["../src/gui-config.ts"],"names":[],"mappings":"AAqJA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAkBjB,CAAA;AAEF,eAAe,MAAM,CAAA;AAErB,MAAM,MAAM,IAAI,GAAG,OAAO,MAAM,CAAA"}
|
package/dist/gui-config.js
CHANGED
|
@@ -23,10 +23,15 @@ import { createGui } from '@hanzo/gui';
|
|
|
23
23
|
// product moves. Adding a fourth spelling of a size is the thing to refuse.
|
|
24
24
|
//
|
|
25
25
|
// Canonical face: Geist Sans for UI, Geist Mono for anything numeric/code/id
|
|
26
|
-
// (`.
|
|
26
|
+
// (`.mono`). The host self-hosts both faces (its own fonts.css) — this only
|
|
27
27
|
// names them.
|
|
28
28
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
29
29
|
const GEIST = "'Geist', system-ui, -apple-system, sans-serif";
|
|
30
|
+
/** The numeric/code/id face. Byte-for-byte the stack `.mono` sets in
|
|
31
|
+
* styles/motion.css — the class and the `$mono` token have to resolve to the
|
|
32
|
+
* same face or the same number renders in two different fonts depending on
|
|
33
|
+
* which one a component reached for. */
|
|
34
|
+
const GEIST_MONO = "'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
30
35
|
/** Type — SIX sizes in the app, matching the host's `--text-*` design tokens.
|
|
31
36
|
* $1 label · $2 nav + dense body · $3 base · $4/$5 emphasis · $6 section head ·
|
|
32
37
|
* $7 page title · $8+ display. `$5` collapses onto 15 to retire the 16px base
|
|
@@ -144,6 +149,12 @@ export const config = createGui({
|
|
|
144
149
|
...defaultConfig.fonts,
|
|
145
150
|
body: { ...defaultConfig.fonts.body, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
|
|
146
151
|
heading: { ...defaultConfig.fonts.heading, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
|
|
152
|
+
// `$mono` was NOT defined here, and gui emits NO class for a font token it
|
|
153
|
+
// does not know — no warning, no fallback, a green build and text that is
|
|
154
|
+
// simply not monospace. 260 `fontFamily="$mono"` call sites across 74 files
|
|
155
|
+
// in hanzo.app were dead on that alone. A missing token has to be a defined
|
|
156
|
+
// token, not a silent no-op, so it is defined.
|
|
157
|
+
mono: { ...defaultConfig.fonts.body, family: GEIST_MONO, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
|
|
147
158
|
},
|
|
148
159
|
});
|
|
149
160
|
export default config;
|
package/dist/gui-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-config.js","sourceRoot":"","sources":["../src/gui-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,gFAAgF;AAChF,6EAA6E;AAC7E,EAAE;AACF,iFAAiF;AACjF,mFAAmF;AACnF,iFAAiF;AACjF,6DAA6D;AAC7D,EAAE;AACF,0EAA0E;AAC1E,6EAA6E;AAC7E,+EAA+E;AAC/E,2EAA2E;AAC3E,gFAAgF;AAChF,6CAA6C;AAC7C,EAAE;AACF,6EAA6E;AAC7E,+EAA+E;AAC/E,oEAAoE;AACpE,gFAAgF;AAChF,gFAAgF;AAChF,4EAA4E;AAC5E,EAAE;AACF,6EAA6E;AAC7E
|
|
1
|
+
{"version":3,"file":"gui-config.js","sourceRoot":"","sources":["../src/gui-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,gFAAgF;AAChF,6EAA6E;AAC7E,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AAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAClB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;AACrB,CAAC;AACD,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;AACvB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC;IAC9B,GAAG,aAAa;IAChB,MAAM,EAAE;QACN,GAAG,aAAa,CAAC,MAAM;QACvB,MAAM,EAAE,MAAM;QACd,KAAK;KACN;IACD,KAAK,EAAE;QACL,GAAG,aAAa,CAAC,KAAK;QACtB,IAAI,EAAE,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE;QAC9F,OAAO,EAAE,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE;QACpG,2EAA2E;QAC3E,0EAA0E;QAC1E,4EAA4E;QAC5E,4EAA4E;QAC5E,+CAA+C;QAC/C,IAAI,EAAE,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE;KACpG;CACF,CAAC,CAAA;AAEF,eAAe,MAAM,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DropdownMenuSubTrigger = 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.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.cn = exports.toast = exports.buttonVariants = exports.badgeVariants = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Toaster = exports.Textarea = exports.TabsTrigger = exports.TabsList = exports.TabsContent = exports.Tabs = exports.Switch = exports.Slider = exports.Separator = 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.DropdownMenuTrigger = void 0;
|
|
4
|
+
exports.cn = exports.Hanzo = exports.toast = exports.buttonVariants = exports.badgeVariants = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Toaster = exports.Textarea = exports.TabsTrigger = exports.TabsList = exports.TabsContent = exports.Tabs = exports.Switch = exports.Slider = exports.Separator = 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.DropdownMenuTrigger = void 0;
|
|
5
5
|
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/tokens.
|
|
6
6
|
//
|
|
7
7
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
@@ -122,6 +122,11 @@ Object.defineProperty(exports, "TooltipTrigger", { enumerable: true, get: functi
|
|
|
122
122
|
Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return gui_1.badgeVariants; } });
|
|
123
123
|
Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: function () { return gui_1.buttonVariants; } });
|
|
124
124
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return gui_1.toast; } });
|
|
125
|
+
// `Hanzo` — the root, and the only thing an app mounts. It carries the gui
|
|
126
|
+
// config and the generated stylesheet, so `npm i @hanzo/ui` is the whole setup:
|
|
127
|
+
// no gui.config.ts, no CSS import, no generator script.
|
|
128
|
+
var root_1 = require("./root.cjs");
|
|
129
|
+
Object.defineProperty(exports, "Hanzo", { enumerable: true, get: function () { return root_1.Hanzo; } });
|
|
125
130
|
// `cn` — the class-name composer, surfaced for convenience.
|
|
126
131
|
var cn_1 = require("./core/cn.cjs");
|
|
127
132
|
Object.defineProperty(exports, "cn", { enumerable: true, get: function () { return cn_1.cn; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, toast, } from './backends/gui/index.js';
|
|
2
2
|
export type { AspectRatioProps, BadgeProps, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CommandFilter, CommandProps, DropdownMenuProps, InputProps, ResizableHandleProps, ResizablePanelGroupProps, ResizablePanelProps, } from './backends/gui/index.js';
|
|
3
|
+
export { Hanzo, type HanzoProps } from './root.js';
|
|
3
4
|
export { cn } from './core/cn.js';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA6BA,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,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,OAAO,EACtF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EACvF,KAAK,GACN,MAAM,gBAAgB,CAAA;AAEvB,YAAY,EACV,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAClF,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,oBAAoB,EAChF,wBAAwB,EAAE,mBAAmB,GAC9C,MAAM,gBAAgB,CAAA;AAKvB,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAA;AAG/C,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
// ./backends/gui already declares these as explicit named blocks; this list mirrors
|
|
29
29
|
// it and is regenerated the same way (scripts/gen-primitives.mjs reads that manifest).
|
|
30
30
|
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, toast, } from './backends/gui/index.js';
|
|
31
|
+
// `Hanzo` — the root, and the only thing an app mounts. It carries the gui
|
|
32
|
+
// config and the generated stylesheet, so `npm i @hanzo/ui` is the whole setup:
|
|
33
|
+
// no gui.config.ts, no CSS import, no generator script.
|
|
34
|
+
export { Hanzo } from './root.js';
|
|
31
35
|
// `cn` — the class-name composer, surfaced for convenience.
|
|
32
36
|
export { cn } from './core/cn.js';
|
|
33
37
|
// The design-token scale (colors, dark/light themes, radii, spacing, typography)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,4EAA4E;AAC5E,+EAA+E;AAC/E,EAAE;AACF,qGAAqG;AACrG,yGAAyG;AACzG,6GAA6G;AAC7G,4GAA4G;AAC5G,4GAA4G;AAC5G,mHAAmH;AACnH,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,gEAAgE;AAChE,yBAAyB;AACzB,EAAE;AACF,6EAA6E;AAC7E,mFAAmF;AACnF,mFAAmF;AACnF,EAAE;AACF,+EAA+E;AAC/E,mFAAmF;AACnF,wBAAwB;AACxB,EAAE;AACF,oFAAoF;AACpF,uFAAuF;AACvF,OAAO,EACL,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EACjF,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EACtF,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,E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AE,WAAW,EACzF,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EACtF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EACvF,KAAK,GACN,MAAM,gBAAgB,CAAA;AAQvB,2EAA2E;AAC3E,gFAAgF;AAChF,wDAAwD;AACxD,OAAO,EAAE,KAAK,EAAmB,MAAM,QAAQ,CAAA;AAE/C,4DAA4D;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AAE9B,iFAAiF;AACjF,6EAA6E;AAC7E,WAAW"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CardMedia = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var card_1 = require("../backends/gui/card.cjs");
|
|
8
|
+
Object.defineProperty(exports, "CardMedia", { enumerable: true, get: function () { return card_1.CardMedia; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardMedia.d.ts","sourceRoot":"","sources":["../../src/primitives/CardMedia.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
2
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
3
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
4
|
+
export { CardMedia } from '../backends/gui/card.js';
|
|
5
|
+
//# sourceMappingURL=CardMedia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardMedia.js","sourceRoot":"","sources":["../../src/primitives/CardMedia.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Grid = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var grid_1 = require("../backends/gui/grid.cjs");
|
|
8
|
+
Object.defineProperty(exports, "Grid", { enumerable: true, get: function () { return grid_1.Grid; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../src/primitives/Grid.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
2
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
3
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
4
|
+
export { Grid } from '../backends/gui/grid.js';
|
|
5
|
+
//# sourceMappingURL=Grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../src/primitives/Grid.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Section = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
5
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
6
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
7
|
+
var section_1 = require("../backends/gui/section.cjs");
|
|
8
|
+
Object.defineProperty(exports, "Section", { enumerable: true, get: function () { return section_1.Section; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/primitives/Section.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-primitives.mjs — do not edit. Per-member entrypoint
|
|
2
|
+
// for hosts that modularize `@hanzo/ui` imports. Source of truth:
|
|
3
|
+
// src/backends/gui/index.ts. Re-run: node scripts/gen-primitives.mjs
|
|
4
|
+
export { Section } from '../backends/gui/section.js';
|
|
5
|
+
//# sourceMappingURL=Section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.js","sourceRoot":"","sources":["../../src/primitives/Section.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA"}
|