@hanzo/ui 8.0.64 → 8.0.66
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/index.cjs +26 -1
- package/dist/backends/gui/index.d.ts +1 -0
- package/dist/backends/gui/index.d.ts.map +1 -1
- package/dist/backends/gui/index.js +4 -0
- package/dist/backends/gui/index.js.map +1 -1
- package/dist/backends/gui/input.cjs +7 -1
- package/dist/backends/gui/input.d.ts.map +1 -1
- package/dist/backends/gui/input.js +7 -1
- package/dist/backends/gui/input.js.map +1 -1
- package/dist/backends/gui/layout.cjs +55 -0
- package/dist/backends/gui/layout.d.ts +28 -0
- package/dist/backends/gui/layout.d.ts.map +1 -0
- package/dist/backends/gui/layout.js +37 -0
- package/dist/backends/gui/layout.js.map +1 -0
- package/dist/backends/gui/select.cjs +6 -1
- package/dist/backends/gui/select.d.ts.map +1 -1
- package/dist/backends/gui/select.js +6 -1
- package/dist/backends/gui/select.js.map +1 -1
- package/dist/index.cjs +35 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/primitives/Em.cjs +8 -0
- package/dist/primitives/Em.d.ts +2 -0
- package/dist/primitives/Em.d.ts.map +1 -0
- package/dist/primitives/Em.js +5 -0
- package/dist/primitives/Em.js.map +1 -0
- package/dist/primitives/H1.cjs +8 -0
- package/dist/primitives/H1.d.ts +2 -0
- package/dist/primitives/H1.d.ts.map +1 -0
- package/dist/primitives/H1.js +5 -0
- package/dist/primitives/H1.js.map +1 -0
- package/dist/primitives/H2.cjs +8 -0
- package/dist/primitives/H2.d.ts +2 -0
- package/dist/primitives/H2.d.ts.map +1 -0
- package/dist/primitives/H2.js +5 -0
- package/dist/primitives/H2.js.map +1 -0
- package/dist/primitives/H3.cjs +8 -0
- package/dist/primitives/H3.d.ts +2 -0
- package/dist/primitives/H3.d.ts.map +1 -0
- package/dist/primitives/H3.js +5 -0
- package/dist/primitives/H3.js.map +1 -0
- package/dist/primitives/H4.cjs +8 -0
- package/dist/primitives/H4.d.ts +2 -0
- package/dist/primitives/H4.d.ts.map +1 -0
- package/dist/primitives/H4.js +5 -0
- package/dist/primitives/H4.js.map +1 -0
- package/dist/primitives/H5.cjs +8 -0
- package/dist/primitives/H5.d.ts +2 -0
- package/dist/primitives/H5.d.ts.map +1 -0
- package/dist/primitives/H5.js +5 -0
- package/dist/primitives/H5.js.map +1 -0
- package/dist/primitives/H6.cjs +8 -0
- package/dist/primitives/H6.d.ts +2 -0
- package/dist/primitives/H6.d.ts.map +1 -0
- package/dist/primitives/H6.js +5 -0
- package/dist/primitives/H6.js.map +1 -0
- package/dist/primitives/Heading.cjs +8 -0
- package/dist/primitives/Heading.d.ts +2 -0
- package/dist/primitives/Heading.d.ts.map +1 -0
- package/dist/primitives/Heading.js +5 -0
- package/dist/primitives/Heading.js.map +1 -0
- package/dist/primitives/Image.cjs +8 -0
- package/dist/primitives/Image.d.ts +2 -0
- package/dist/primitives/Image.d.ts.map +1 -0
- package/dist/primitives/Image.js +5 -0
- package/dist/primitives/Image.js.map +1 -0
- package/dist/primitives/Paragraph.cjs +8 -0
- package/dist/primitives/Paragraph.d.ts +2 -0
- package/dist/primitives/Paragraph.d.ts.map +1 -0
- package/dist/primitives/Paragraph.js +5 -0
- package/dist/primitives/Paragraph.js.map +1 -0
- package/dist/primitives/ScrollView.cjs +8 -0
- package/dist/primitives/ScrollView.d.ts +2 -0
- package/dist/primitives/ScrollView.d.ts.map +1 -0
- package/dist/primitives/ScrollView.js +5 -0
- package/dist/primitives/ScrollView.js.map +1 -0
- package/dist/primitives/SizableText.cjs +8 -0
- package/dist/primitives/SizableText.d.ts +2 -0
- package/dist/primitives/SizableText.d.ts.map +1 -0
- package/dist/primitives/SizableText.js +5 -0
- package/dist/primitives/SizableText.js.map +1 -0
- package/dist/primitives/Spacer.cjs +8 -0
- package/dist/primitives/Spacer.d.ts +2 -0
- package/dist/primitives/Spacer.d.ts.map +1 -0
- package/dist/primitives/Spacer.js +5 -0
- package/dist/primitives/Spacer.js.map +1 -0
- package/dist/primitives/Span.cjs +8 -0
- package/dist/primitives/Span.d.ts +2 -0
- package/dist/primitives/Span.d.ts.map +1 -0
- package/dist/primitives/Span.js +5 -0
- package/dist/primitives/Span.js.map +1 -0
- package/dist/primitives/Strong.cjs +8 -0
- package/dist/primitives/Strong.d.ts +2 -0
- package/dist/primitives/Strong.d.ts.map +1 -0
- package/dist/primitives/Strong.js +5 -0
- package/dist/primitives/Strong.js.map +1 -0
- package/dist/primitives/Text.cjs +8 -0
- package/dist/primitives/Text.d.ts +2 -0
- package/dist/primitives/Text.d.ts.map +1 -0
- package/dist/primitives/Text.js +5 -0
- package/dist/primitives/Text.js.map +1 -0
- package/dist/primitives/View.cjs +8 -0
- package/dist/primitives/View.d.ts +2 -0
- package/dist/primitives/View.d.ts.map +1 -0
- package/dist/primitives/View.js +5 -0
- package/dist/primitives/View.js.map +1 -0
- package/dist/primitives/XStack.cjs +8 -0
- package/dist/primitives/XStack.d.ts +2 -0
- package/dist/primitives/XStack.d.ts.map +1 -0
- package/dist/primitives/XStack.js +5 -0
- package/dist/primitives/XStack.js.map +1 -0
- package/dist/primitives/YStack.cjs +8 -0
- package/dist/primitives/YStack.d.ts +2 -0
- package/dist/primitives/YStack.d.ts.map +1 -0
- package/dist/primitives/YStack.js +5 -0
- package/dist/primitives/YStack.js.map +1 -0
- package/dist/primitives/ZStack.cjs +8 -0
- package/dist/primitives/ZStack.d.ts +2 -0
- package/dist/primitives/ZStack.d.ts.map +1 -0
- package/dist/primitives/ZStack.js +5 -0
- package/dist/primitives/ZStack.js.map +1 -0
- package/dist/styles.css +0 -1
- package/package.json +1 -1
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
// node scripts/gen-primitives.mjs
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.DropdownMenuPortal = exports.DropdownMenuGroup = exports.DropdownMenuShortcut = exports.DropdownMenuSeparator = exports.DropdownMenuLabel = exports.DropdownMenuRadioItem = exports.DropdownMenuCheckboxItem = exports.DropdownMenuItem = exports.DropdownMenuContent = exports.DropdownMenuTrigger = exports.DropdownMenu = exports.DialogTrigger = exports.DialogTitle = exports.DialogPortal = exports.DialogOverlay = exports.DialogHeader = exports.DialogFooter = exports.DialogDescription = exports.DialogContent = exports.DialogClose = exports.Dialog = exports.CommandSeparator = exports.CommandShortcut = exports.CommandItem = exports.CommandGroup = exports.CommandEmpty = exports.CommandList = exports.CommandInput = exports.CommandDialog = exports.Command = exports.CollapsibleContent = exports.CollapsibleTrigger = exports.Collapsible = exports.Checkbox = exports.CardMedia = exports.CardContent = exports.CardDescription = exports.CardAction = exports.CardTitle = exports.CardFooter = exports.CardHeader = exports.Card = exports.buttonVariants = exports.Button = exports.badgeVariants = exports.Badge = exports.AvatarFallback = exports.AvatarImage = exports.Avatar = exports.AspectRatio = void 0;
|
|
20
|
-
exports.
|
|
20
|
+
exports.Section = exports.SelectScrollDownButton = exports.SelectScrollUpButton = exports.SelectSeparator = exports.SelectItem = exports.SelectLabel = exports.SelectContent = exports.SelectTrigger = exports.SelectValue = exports.SelectGroup = exports.Select = exports.ScrollBar = exports.ScrollArea = exports.Text = exports.View = exports.ScrollView = exports.Spacer = exports.Image = exports.Em = exports.Strong = exports.Span = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Heading = exports.Paragraph = exports.SizableText = exports.ZStack = exports.YStack = exports.XStack = exports.ResizableHandle = exports.ResizablePanel = exports.ResizablePanelGroup = exports.Progress = exports.PopoverClose = exports.PopoverAnchor = exports.PopoverContent = exports.PopoverTrigger = exports.Popover = exports.Label = exports.Input = exports.Grid = exports.Glass = exports.DropdownMenuRadioGroup = exports.DropdownMenuSubTrigger = exports.DropdownMenuSubContent = exports.DropdownMenuSub = void 0;
|
|
21
|
+
exports.TooltipProvider = exports.TooltipContent = exports.TooltipTrigger = exports.Tooltip = exports.toast = exports.Toaster = exports.Textarea = exports.TabsContent = exports.TabsTrigger = exports.TabsList = exports.Tabs = exports.Switch = exports.Slider = exports.Separator = void 0;
|
|
21
22
|
var aspect_ratio_1 = require("./aspect-ratio.cjs");
|
|
22
23
|
Object.defineProperty(exports, "AspectRatio", { enumerable: true, get: function () { return aspect_ratio_1.AspectRatio; } });
|
|
23
24
|
var avatar_1 = require("./avatar.cjs");
|
|
@@ -102,6 +103,30 @@ var resizable_1 = require("./resizable.cjs");
|
|
|
102
103
|
Object.defineProperty(exports, "ResizablePanelGroup", { enumerable: true, get: function () { return resizable_1.ResizablePanelGroup; } });
|
|
103
104
|
Object.defineProperty(exports, "ResizablePanel", { enumerable: true, get: function () { return resizable_1.ResizablePanel; } });
|
|
104
105
|
Object.defineProperty(exports, "ResizableHandle", { enumerable: true, get: function () { return resizable_1.ResizableHandle; } });
|
|
106
|
+
// The layout primitives. Without these an app cannot obey "import from
|
|
107
|
+
// @hanzo/ui" — it has to reach past this package to @hanzo/gui, which is how
|
|
108
|
+
// 216 files in hanzo.app ended up doing exactly that. See ./layout.
|
|
109
|
+
var layout_1 = require("./layout.cjs");
|
|
110
|
+
Object.defineProperty(exports, "XStack", { enumerable: true, get: function () { return layout_1.XStack; } });
|
|
111
|
+
Object.defineProperty(exports, "YStack", { enumerable: true, get: function () { return layout_1.YStack; } });
|
|
112
|
+
Object.defineProperty(exports, "ZStack", { enumerable: true, get: function () { return layout_1.ZStack; } });
|
|
113
|
+
Object.defineProperty(exports, "SizableText", { enumerable: true, get: function () { return layout_1.SizableText; } });
|
|
114
|
+
Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return layout_1.Paragraph; } });
|
|
115
|
+
Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return layout_1.Heading; } });
|
|
116
|
+
Object.defineProperty(exports, "H1", { enumerable: true, get: function () { return layout_1.H1; } });
|
|
117
|
+
Object.defineProperty(exports, "H2", { enumerable: true, get: function () { return layout_1.H2; } });
|
|
118
|
+
Object.defineProperty(exports, "H3", { enumerable: true, get: function () { return layout_1.H3; } });
|
|
119
|
+
Object.defineProperty(exports, "H4", { enumerable: true, get: function () { return layout_1.H4; } });
|
|
120
|
+
Object.defineProperty(exports, "H5", { enumerable: true, get: function () { return layout_1.H5; } });
|
|
121
|
+
Object.defineProperty(exports, "H6", { enumerable: true, get: function () { return layout_1.H6; } });
|
|
122
|
+
Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return layout_1.Span; } });
|
|
123
|
+
Object.defineProperty(exports, "Strong", { enumerable: true, get: function () { return layout_1.Strong; } });
|
|
124
|
+
Object.defineProperty(exports, "Em", { enumerable: true, get: function () { return layout_1.Em; } });
|
|
125
|
+
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return layout_1.Image; } });
|
|
126
|
+
Object.defineProperty(exports, "Spacer", { enumerable: true, get: function () { return layout_1.Spacer; } });
|
|
127
|
+
Object.defineProperty(exports, "ScrollView", { enumerable: true, get: function () { return layout_1.ScrollView; } });
|
|
128
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return layout_1.View; } });
|
|
129
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return layout_1.Text; } });
|
|
105
130
|
var scroll_area_1 = require("./scroll-area.cjs");
|
|
106
131
|
Object.defineProperty(exports, "ScrollArea", { enumerable: true, get: function () { return scroll_area_1.ScrollArea; } });
|
|
107
132
|
Object.defineProperty(exports, "ScrollBar", { enumerable: true, get: function () { return scroll_area_1.ScrollBar; } });
|
|
@@ -15,6 +15,7 @@ export { Label } from './label.js';
|
|
|
15
15
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './popover.js';
|
|
16
16
|
export { Progress } from './progress.js';
|
|
17
17
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle, type ResizablePanelGroupProps, type ResizablePanelProps, type ResizableHandleProps, } from './resizable.js';
|
|
18
|
+
export { XStack, YStack, ZStack, SizableText, Paragraph, Heading, H1, H2, H3, H4, H5, H6, Span, Strong, Em, Image, Spacer, ScrollView, View, Text, type GuiElement, } from './layout.js';
|
|
18
19
|
export { ScrollArea, ScrollBar } from './scroll-area.js';
|
|
19
20
|
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from './select.js';
|
|
20
21
|
export { Section, type SectionProps } from './section.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAClF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAA;AACxG,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AACnF,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY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,WAAW,CAAA"}
|
|
@@ -31,6 +31,10 @@ export { Label } from './label.js';
|
|
|
31
31
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './popover.js';
|
|
32
32
|
export { Progress } from './progress.js';
|
|
33
33
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle, } from './resizable.js';
|
|
34
|
+
// The layout primitives. Without these an app cannot obey "import from
|
|
35
|
+
// @hanzo/ui" — it has to reach past this package to @hanzo/gui, which is how
|
|
36
|
+
// 216 files in hanzo.app ended up doing exactly that. See ./layout.
|
|
37
|
+
export { XStack, YStack, ZStack, SizableText, Paragraph, Heading, H1, H2, H3, H4, H5, H6, Span, Strong, Em, Image, Spacer, ScrollView, View, Text, } from './layout.js';
|
|
34
38
|
export { ScrollArea, ScrollBar } from './scroll-area.js';
|
|
35
39
|
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from './select.js';
|
|
36
40
|
export { Section } from './section.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/backends/gui/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,EAAE;AACF,kFAAkF;AAClF,4EAA4E;AAC5E,uEAAuE;AACvE,EAAE;AACF,4EAA4E;AAC5E,iFAAiF;AACjF,+EAA+E;AAC/E,0BAA0B;AAC1B,EAAE;AACF,6DAA6D;AAC7D,6EAA6E;AAC7E,iFAAiF;AACjF,+CAA+C;AAC/C,oCAAoC;AAEpC,OAAO,EAAE,WAAW,EAAyB,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAsC,MAAM,SAAS,CAAA;AAClF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAyD,MAAM,UAAU,CAAA;AACxG,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AAoE;AACpE,OAAO,EACL,MAAM,EAAE,MAAM,EAAE,MAAM,EACtB,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EACzE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAEtC,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,OAAO,EAAqB,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -33,7 +33,13 @@ const Input = /* @__PURE__ */ (0, react_1.forwardRef)(function Input({ startAdor
|
|
|
33
33
|
const [revealed, setRevealed] = (0, react_1.useState)(false);
|
|
34
34
|
const isPassword = type === 'password' || secureTextEntry === true;
|
|
35
35
|
const toggle = isPassword && reveal;
|
|
36
|
-
const field = ((0, jsx_runtime_1.jsx)(gui_1.Input, { ref: ref, ...(0, slot_1.slot)('input'), ...(isPassword ? (0, mask_1.masked)(!revealed) : { type, secureTextEntry }),
|
|
36
|
+
const field = ((0, jsx_runtime_1.jsx)(gui_1.Input, { ref: ref, ...(0, slot_1.slot)('input'), ...(isPassword ? (0, mask_1.masked)(!revealed) : { type, secureTextEntry }),
|
|
37
|
+
// A pin, and correct here. `<input>` is single-line: no children, no
|
|
38
|
+
// wrapping, so its content CANNOT exceed the box and there is nothing to
|
|
39
|
+
// clip. gui's Input does not accept `minHeight` at all, which is the type
|
|
40
|
+
// system saying the same thing. The floor rule is for controls that hold
|
|
41
|
+
// children — Button and SelectTrigger.
|
|
42
|
+
height: HEIGHT, width: "100%", minW: 0, rounded: "$3", bg: "transparent", borderWidth: 1, borderColor: "$borderColor", ...focus_1.FOCUS, placeholderTextColor: "$color10", fontSize: "$3", pl: startAdornment ? WELL : GUTTER, pr: endAdornment || toggle ? WELL : GUTTER, ...props }));
|
|
37
43
|
if (!startAdornment && !endAdornment && !toggle)
|
|
38
44
|
return field;
|
|
39
45
|
return ((0, jsx_runtime_1.jsxs)(gui_1.XStack, { position: "relative", width: "100%", items: "center", children: [startAdornment ? ((0, jsx_runtime_1.jsx)(gui_1.XStack, { ...well('l'), pointerEvents: "none", opacity: 0.6, children: startAdornment })) : null, field, toggle ? ((0, jsx_runtime_1.jsx)(gui_1.XStack, { ...well('r'), cursor: "pointer", ...(0, gesture_1.touch)(20), onPress: () => setRevealed((v) => !v), "aria-label": revealed ? 'Hide password' : 'Show password', children: revealed ? (0, jsx_runtime_1.jsx)(lucide_icons_2_1.EyeOff, { size: 16 }) : (0, jsx_runtime_1.jsx)(lucide_icons_2_1.Eye, { size: 16 }) })) : endAdornment ? ((0, jsx_runtime_1.jsx)(gui_1.XStack, { ...well('r'), opacity: 0.6, children: endAdornment })) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/input.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAU,MAAM,YAAY,CAAA;AAEtD,OAAO,EAAwB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAWjF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IAC3E,yEAAyE;IACzE,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,8DAA8D;IAC9D,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAYD,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/input.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAU,MAAM,YAAY,CAAA;AAEtD,OAAO,EAAwB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAWjF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IAC3E,yEAAyE;IACzE,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,8DAA8D;IAC9D,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAYD,QAAA,MAAM,KAAK,sHAwET,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -30,7 +30,13 @@ const Input = /* @__PURE__ */ forwardRef(function Input({ startAdornment, endAdo
|
|
|
30
30
|
const [revealed, setRevealed] = useState(false);
|
|
31
31
|
const isPassword = type === 'password' || secureTextEntry === true;
|
|
32
32
|
const toggle = isPassword && reveal;
|
|
33
|
-
const field = (_jsx(GuiInput, { ref: ref, ...slot('input'), ...(isPassword ? masked(!revealed) : { type, secureTextEntry }),
|
|
33
|
+
const field = (_jsx(GuiInput, { ref: ref, ...slot('input'), ...(isPassword ? masked(!revealed) : { type, secureTextEntry }),
|
|
34
|
+
// A pin, and correct here. `<input>` is single-line: no children, no
|
|
35
|
+
// wrapping, so its content CANNOT exceed the box and there is nothing to
|
|
36
|
+
// clip. gui's Input does not accept `minHeight` at all, which is the type
|
|
37
|
+
// system saying the same thing. The floor rule is for controls that hold
|
|
38
|
+
// children — Button and SelectTrigger.
|
|
39
|
+
height: HEIGHT, width: "100%", minW: 0, rounded: "$3", bg: "transparent", borderWidth: 1, borderColor: "$borderColor", ...FOCUS, placeholderTextColor: "$color10", fontSize: "$3", pl: startAdornment ? WELL : GUTTER, pr: endAdornment || toggle ? WELL : GUTTER, ...props }));
|
|
34
40
|
if (!startAdornment && !endAdornment && !toggle)
|
|
35
41
|
return field;
|
|
36
42
|
return (_jsxs(XStack, { position: "relative", width: "100%", items: "center", children: [startAdornment ? (_jsx(XStack, { ...well('l'), pointerEvents: "none", opacity: 0.6, children: startAdornment })) : null, field, toggle ? (_jsx(XStack, { ...well('r'), cursor: "pointer", ...touch(20), onPress: () => setRevealed((v) => !v), "aria-label": revealed ? 'Hide password' : 'Show password', children: revealed ? _jsx(EyeOff, { size: 16 }) : _jsx(Eye, { size: 16 }) })) : endAdornment ? (_jsx(XStack, { ...well('r'), opacity: 0.6, children: endAdornment })) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/backends/gui/input.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAuC,MAAM,OAAO,C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AAC,CAAC,CAAC,CAAC,gBACzB,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,YAEvD,QAAQ,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,IAAI,EAAE,EAAE,GAAI,GAC7C,CACV,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CACjB,KAAC,MAAM,OAAK,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,YAChC,YAAY,GACN,CACV,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Text = exports.View = exports.ScrollView = exports.Spacer = exports.Image = exports.Em = exports.Strong = exports.Span = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Heading = exports.Paragraph = exports.SizableText = exports.ZStack = exports.YStack = exports.XStack = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* LAYOUT — the primitives an app lays a screen out with.
|
|
7
|
+
*
|
|
8
|
+
* These are re-exports of @hanzo/gui, and that is the whole point: this package
|
|
9
|
+
* is declared to be "the canonical component API apps import", but it shipped
|
|
10
|
+
* Button, Card and Dialog while omitting the stacks and the type scale. So no
|
|
11
|
+
* app could actually obey the rule. Measured in hanzo.app: 216 files import
|
|
12
|
+
* @hanzo/gui DIRECTLY — YStack (199), XStack (185), SizableText (185),
|
|
13
|
+
* Paragraph (161), H3 (66), H1 (43), Anchor (41), H2 (39), Image (20), H4 (15),
|
|
14
|
+
* View, Text, GuiElement — because there was nowhere else to get them.
|
|
15
|
+
*
|
|
16
|
+
* An app reaching past its component library is not a style problem. It is the
|
|
17
|
+
* library failing to be the one door: the app then pins its own @hanzo/gui
|
|
18
|
+
* version, resolves a second copy of the runtime (which is how "Missing theme."
|
|
19
|
+
* happens), and every primitive it draws sits outside anything this package can
|
|
20
|
+
* restyle, theme or fix centrally.
|
|
21
|
+
*
|
|
22
|
+
* So: ONE import source. `@hanzo/gui` is an implementation detail of
|
|
23
|
+
* `@hanzo/ui`, named in exactly one place — here.
|
|
24
|
+
*
|
|
25
|
+
* Named, never `export *`: this is a client boundary and Next refuses a star
|
|
26
|
+
* across one ("It's currently unsupported to use `export *` in a client
|
|
27
|
+
* boundary"), and a star also defeats tree-shaking, so importing XStack would
|
|
28
|
+
* drag the whole gui surface in. Same rule the root barrel already follows.
|
|
29
|
+
*/
|
|
30
|
+
var gui_1 = require("@hanzo/gui");
|
|
31
|
+
// Stacks — @hanzogui/stacks
|
|
32
|
+
Object.defineProperty(exports, "XStack", { enumerable: true, get: function () { return gui_1.XStack; } });
|
|
33
|
+
Object.defineProperty(exports, "YStack", { enumerable: true, get: function () { return gui_1.YStack; } });
|
|
34
|
+
Object.defineProperty(exports, "ZStack", { enumerable: true, get: function () { return gui_1.ZStack; } });
|
|
35
|
+
// Type scale — @hanzogui/text. `SizableText` is the workhorse; the headings
|
|
36
|
+
// carry the scale so a screen never hand-picks a font size.
|
|
37
|
+
Object.defineProperty(exports, "SizableText", { enumerable: true, get: function () { return gui_1.SizableText; } });
|
|
38
|
+
Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return gui_1.Paragraph; } });
|
|
39
|
+
Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return gui_1.Heading; } });
|
|
40
|
+
Object.defineProperty(exports, "H1", { enumerable: true, get: function () { return gui_1.H1; } });
|
|
41
|
+
Object.defineProperty(exports, "H2", { enumerable: true, get: function () { return gui_1.H2; } });
|
|
42
|
+
Object.defineProperty(exports, "H3", { enumerable: true, get: function () { return gui_1.H3; } });
|
|
43
|
+
Object.defineProperty(exports, "H4", { enumerable: true, get: function () { return gui_1.H4; } });
|
|
44
|
+
Object.defineProperty(exports, "H5", { enumerable: true, get: function () { return gui_1.H5; } });
|
|
45
|
+
Object.defineProperty(exports, "H6", { enumerable: true, get: function () { return gui_1.H6; } });
|
|
46
|
+
Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return gui_1.Span; } });
|
|
47
|
+
Object.defineProperty(exports, "Strong", { enumerable: true, get: function () { return gui_1.Strong; } });
|
|
48
|
+
Object.defineProperty(exports, "Em", { enumerable: true, get: function () { return gui_1.Em; } });
|
|
49
|
+
// Leaves — an image, a rule, a gap, a scroller.
|
|
50
|
+
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return gui_1.Image; } });
|
|
51
|
+
Object.defineProperty(exports, "Spacer", { enumerable: true, get: function () { return gui_1.Spacer; } });
|
|
52
|
+
Object.defineProperty(exports, "ScrollView", { enumerable: true, get: function () { return gui_1.ScrollView; } });
|
|
53
|
+
// The untyped hosts, for the rare case a component needs a bare box.
|
|
54
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return gui_1.View; } });
|
|
55
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return gui_1.Text; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LAYOUT — the primitives an app lays a screen out with.
|
|
3
|
+
*
|
|
4
|
+
* These are re-exports of @hanzo/gui, and that is the whole point: this package
|
|
5
|
+
* is declared to be "the canonical component API apps import", but it shipped
|
|
6
|
+
* Button, Card and Dialog while omitting the stacks and the type scale. So no
|
|
7
|
+
* app could actually obey the rule. Measured in hanzo.app: 216 files import
|
|
8
|
+
* @hanzo/gui DIRECTLY — YStack (199), XStack (185), SizableText (185),
|
|
9
|
+
* Paragraph (161), H3 (66), H1 (43), Anchor (41), H2 (39), Image (20), H4 (15),
|
|
10
|
+
* View, Text, GuiElement — because there was nowhere else to get them.
|
|
11
|
+
*
|
|
12
|
+
* An app reaching past its component library is not a style problem. It is the
|
|
13
|
+
* library failing to be the one door: the app then pins its own @hanzo/gui
|
|
14
|
+
* version, resolves a second copy of the runtime (which is how "Missing theme."
|
|
15
|
+
* happens), and every primitive it draws sits outside anything this package can
|
|
16
|
+
* restyle, theme or fix centrally.
|
|
17
|
+
*
|
|
18
|
+
* So: ONE import source. `@hanzo/gui` is an implementation detail of
|
|
19
|
+
* `@hanzo/ui`, named in exactly one place — here.
|
|
20
|
+
*
|
|
21
|
+
* Named, never `export *`: this is a client boundary and Next refuses a star
|
|
22
|
+
* across one ("It's currently unsupported to use `export *` in a client
|
|
23
|
+
* boundary"), and a star also defeats tree-shaking, so importing XStack would
|
|
24
|
+
* drag the whole gui surface in. Same rule the root barrel already follows.
|
|
25
|
+
*/
|
|
26
|
+
export { XStack, YStack, ZStack, SizableText, Paragraph, Heading, H1, H2, H3, H4, H5, H6, Span, Strong, Em, Image, Spacer, ScrollView, View, Text, } from '@hanzo/gui';
|
|
27
|
+
export type { GuiElement } from '@hanzo/gui';
|
|
28
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/layout.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAEL,MAAM,EACN,MAAM,EACN,MAAM,EAIN,WAAW,EACX,SAAS,EACT,OAAO,EACP,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,IAAI,EACJ,MAAM,EACN,EAAE,EAGF,KAAK,EACL,MAAM,EACN,UAAU,EAGV,IAAI,EACJ,IAAI,GACL,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
/**
|
|
3
|
+
* LAYOUT — the primitives an app lays a screen out with.
|
|
4
|
+
*
|
|
5
|
+
* These are re-exports of @hanzo/gui, and that is the whole point: this package
|
|
6
|
+
* is declared to be "the canonical component API apps import", but it shipped
|
|
7
|
+
* Button, Card and Dialog while omitting the stacks and the type scale. So no
|
|
8
|
+
* app could actually obey the rule. Measured in hanzo.app: 216 files import
|
|
9
|
+
* @hanzo/gui DIRECTLY — YStack (199), XStack (185), SizableText (185),
|
|
10
|
+
* Paragraph (161), H3 (66), H1 (43), Anchor (41), H2 (39), Image (20), H4 (15),
|
|
11
|
+
* View, Text, GuiElement — because there was nowhere else to get them.
|
|
12
|
+
*
|
|
13
|
+
* An app reaching past its component library is not a style problem. It is the
|
|
14
|
+
* library failing to be the one door: the app then pins its own @hanzo/gui
|
|
15
|
+
* version, resolves a second copy of the runtime (which is how "Missing theme."
|
|
16
|
+
* happens), and every primitive it draws sits outside anything this package can
|
|
17
|
+
* restyle, theme or fix centrally.
|
|
18
|
+
*
|
|
19
|
+
* So: ONE import source. `@hanzo/gui` is an implementation detail of
|
|
20
|
+
* `@hanzo/ui`, named in exactly one place — here.
|
|
21
|
+
*
|
|
22
|
+
* Named, never `export *`: this is a client boundary and Next refuses a star
|
|
23
|
+
* across one ("It's currently unsupported to use `export *` in a client
|
|
24
|
+
* boundary"), and a star also defeats tree-shaking, so importing XStack would
|
|
25
|
+
* drag the whole gui surface in. Same rule the root barrel already follows.
|
|
26
|
+
*/
|
|
27
|
+
export {
|
|
28
|
+
// Stacks — @hanzogui/stacks
|
|
29
|
+
XStack, YStack, ZStack,
|
|
30
|
+
// Type scale — @hanzogui/text. `SizableText` is the workhorse; the headings
|
|
31
|
+
// carry the scale so a screen never hand-picks a font size.
|
|
32
|
+
SizableText, Paragraph, Heading, H1, H2, H3, H4, H5, H6, Span, Strong, Em,
|
|
33
|
+
// Leaves — an image, a rule, a gap, a scroller.
|
|
34
|
+
Image, Spacer, ScrollView,
|
|
35
|
+
// The untyped hosts, for the rare case a component needs a bare box.
|
|
36
|
+
View, Text, } from '@hanzo/gui';
|
|
37
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/backends/gui/layout.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO;AACL,4BAA4B;AAC5B,MAAM,EACN,MAAM,EACN,MAAM;AAEN,4EAA4E;AAC5E,4DAA4D;AAC5D,WAAW,EACX,SAAS,EACT,OAAO,EACP,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,IAAI,EACJ,MAAM,EACN,EAAE;AAEF,gDAAgD;AAChD,KAAK,EACL,MAAM,EACN,UAAU;AAEV,qEAAqE;AACrE,IAAI,EACJ,IAAI,GACL,MAAM,YAAY,CAAA"}
|
|
@@ -26,7 +26,12 @@ const SelectGroup = gui_1.Select.Group;
|
|
|
26
26
|
exports.SelectGroup = SelectGroup;
|
|
27
27
|
const SelectValue = gui_1.Select.Value;
|
|
28
28
|
exports.SelectValue = SelectValue;
|
|
29
|
-
const SelectTrigger = ({ children, ...props }) => ((0, jsx_runtime_1.jsxs)(gui_1.Select.Trigger, { ...(0, slot_1.slot)('select-trigger'), unstyled: true, items: "center", justify: "space-between", gap: "$2",
|
|
29
|
+
const SelectTrigger = ({ children, ...props }) => ((0, jsx_runtime_1.jsxs)(gui_1.Select.Trigger, { ...(0, slot_1.slot)('select-trigger'), unstyled: true, items: "center", justify: "space-between", gap: "$2",
|
|
30
|
+
// A FLOOR, not a pin. `height` alone clips a child taller than the box, and
|
|
31
|
+
// the build stays green while it does — that is why 01ac46dce moved Button
|
|
32
|
+
// off a pinned height. Select and Input kept theirs, so the same trap was
|
|
33
|
+
// still armed in the two controls that sit in every form.
|
|
34
|
+
height: "auto", minHeight: TRIGGER_H, px: "$3", rounded: "$3", borderWidth: 1, borderColor: "$borderColor", bg: "transparent", cursor: "pointer", ...(0, gesture_1.touch)(TRIGGER_H, 44, 'y'), ...props, children: [(0, ink_1.ink)(children, undefined, { size: '$3' }), (0, jsx_runtime_1.jsx)(gui_1.Select.Icon, { children: (0, jsx_runtime_1.jsx)(lucide_icons_2_1.ChevronDown, { size: 16, opacity: 0.5 }) })] }));
|
|
30
35
|
exports.SelectTrigger = SelectTrigger;
|
|
31
36
|
const SelectItem = ({ children, ...props }) => ((0, jsx_runtime_1.jsxs)(gui_1.Select.Item, { ...(0, slot_1.slot)('select-item'), unstyled: true, index: props.index ?? 0, items: "center", gap: "$2", minH: ROW_H, pl: "$2", pr: "$7", rounded: "$2", cursor: "pointer", ...(0, gesture_1.touch)(ROW_H, 44, 'y'), hoverStyle: { bg: '$color5' }, focusStyle: { bg: '$color5' }, ...props, children: [(0, jsx_runtime_1.jsx)(gui_1.Select.ItemText, { children: children }), (0, jsx_runtime_1.jsx)(gui_1.XStack, { position: "absolute", r: "$2", items: "center", justify: "center", pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(gui_1.Select.ItemIndicator, { children: (0, jsx_runtime_1.jsx)(lucide_icons_2_1.Check, { size: 16 }) }) })] }));
|
|
32
37
|
exports.SelectItem = SelectItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/select.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,eAAe,IAAI,kBAAkB,EAAU,MAAM,YAAY,CAAA;AAE/F,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAA;AAQd,QAAA,MAAM,MAAM,EAAE,OAAO,SAAqB,CAAA;AAC1C,QAAA,MAAM,WAAW,EAAE,OAAO,SAAS,CAAC,KAAuB,CAAA;AAC3D,QAAA,MAAM,WAAW,EAAE,OAAO,SAAS,CAAC,KAAuB,CAAA;AAE3D,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,CAAA;AAC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M,CAAA;CACf,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAA;AACrE,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC5E,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,cAAc,CAAC,CAAA;AAErF,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CA+BhE,CAAA;AAED,QAAA,MAAM,UAAU,GAAI,wBAAwB,eAAe,4CAwB1D,CAAA;AAWD,QAAA,MAAM,oBAAoB,GAAI,OAAO,uBAAuB,4CAI3D,CAAA;AAED,QAAA,MAAM,sBAAsB,GAAI,OAAO,uBAAuB,4CAI7D,CAAA;AAED,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAkBhE,CAAA;AAED,QAAA,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAE3C,CAAA;AAED,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,4CAEnD,CAAA;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,CAAA"}
|
|
@@ -20,7 +20,12 @@ const TRIGGER_H = 36;
|
|
|
20
20
|
const Select = GuiSelect;
|
|
21
21
|
const SelectGroup = GuiSelect.Group;
|
|
22
22
|
const SelectValue = GuiSelect.Value;
|
|
23
|
-
const SelectTrigger = ({ children, ...props }) => (_jsxs(GuiSelect.Trigger, { ...slot('select-trigger'), unstyled: true, items: "center", justify: "space-between", gap: "$2",
|
|
23
|
+
const SelectTrigger = ({ children, ...props }) => (_jsxs(GuiSelect.Trigger, { ...slot('select-trigger'), unstyled: true, items: "center", justify: "space-between", gap: "$2",
|
|
24
|
+
// A FLOOR, not a pin. `height` alone clips a child taller than the box, and
|
|
25
|
+
// the build stays green while it does — that is why 01ac46dce moved Button
|
|
26
|
+
// off a pinned height. Select and Input kept theirs, so the same trap was
|
|
27
|
+
// still armed in the two controls that sit in every form.
|
|
28
|
+
height: "auto", minHeight: TRIGGER_H, px: "$3", rounded: "$3", borderWidth: 1, borderColor: "$borderColor", bg: "transparent", cursor: "pointer", ...touch(TRIGGER_H, 44, 'y'), ...props, children: [ink(children, undefined, { size: '$3' }), _jsx(GuiSelect.Icon, { children: _jsx(ChevronDown, { size: 16, opacity: 0.5 }) })] }));
|
|
24
29
|
const SelectItem = ({ children, ...props }) => (_jsxs(GuiSelect.Item, { ...slot('select-item'), unstyled: true, index: props.index ?? 0, items: "center", gap: "$2", minH: ROW_H, pl: "$2", pr: "$7", rounded: "$2", cursor: "pointer", ...touch(ROW_H, 44, 'y'), hoverStyle: { bg: '$color5' }, focusStyle: { bg: '$color5' }, ...props, children: [_jsx(GuiSelect.ItemText, { children: children }), _jsx(XStack, { position: "absolute", r: "$2", items: "center", justify: "center", pointerEvents: "none", children: _jsx(GuiSelect.ItemIndicator, { children: _jsx(Check, { size: 16 }) }) })] }));
|
|
25
30
|
/** Depth-first stamp of `index` onto every `SelectItem` in render order. */
|
|
26
31
|
const stampIndices = (children, next) => Children.map(children, (child) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/backends/gui/select.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAC/F,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,cAAc,GAGf,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,IAAI,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,CAAA;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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.TabsTrigger = exports.TabsList = exports.TabsContent = exports.Tabs = exports.Switch = exports.Strong = exports.Span = exports.Spacer = exports.Slider = exports.SizableText = exports.Separator = exports.Section = exports.ScrollView = 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.Grid = exports.Glass = exports.Em = exports.DropdownMenuTrigger = exports.DropdownMenuSubTrigger = void 0;
|
|
5
|
+
exports.cn = exports.Hanzo = exports.toast = exports.buttonVariants = exports.badgeVariants = exports.ZStack = exports.YStack = exports.XStack = exports.View = exports.TooltipTrigger = exports.TooltipProvider = exports.TooltipContent = exports.Tooltip = exports.Text = exports.Toaster = exports.Textarea = void 0;
|
|
5
6
|
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
|
|
6
7
|
//
|
|
7
8
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
@@ -29,8 +30,14 @@ exports.cn = exports.Hanzo = exports.toast = exports.buttonVariants = exports.ba
|
|
|
29
30
|
// cannot prove which members are unused through a star, so importing Button pulled
|
|
30
31
|
// the whole surface in.
|
|
31
32
|
//
|
|
32
|
-
// ./backends/gui
|
|
33
|
-
//
|
|
33
|
+
// ./backends/gui declares these as explicit named blocks and this list mirrors it.
|
|
34
|
+
//
|
|
35
|
+
// It is maintained BY HAND — `scripts/gen-primitives.mjs` writes `src/primitives/`,
|
|
36
|
+
// not this file, so nothing regenerates it and nothing used to notice when the two
|
|
37
|
+
// drifted. Glass, Grid, Section and CardMedia were all exported by the backend and
|
|
38
|
+
// absent here, which means a consumer could not import them AT ALL: the component
|
|
39
|
+
// existed, the docs named it, and `import { Grid } from '@hanzo/ui'` was undefined.
|
|
40
|
+
// `src/__tests__/barrel.test.ts` now fails when the two disagree.
|
|
34
41
|
var gui_1 = require("./backends/gui/index.cjs");
|
|
35
42
|
Object.defineProperty(exports, "AspectRatio", { enumerable: true, get: function () { return gui_1.AspectRatio; } });
|
|
36
43
|
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return gui_1.Avatar; } });
|
|
@@ -44,6 +51,7 @@ Object.defineProperty(exports, "CardContent", { enumerable: true, get: function
|
|
|
44
51
|
Object.defineProperty(exports, "CardDescription", { enumerable: true, get: function () { return gui_1.CardDescription; } });
|
|
45
52
|
Object.defineProperty(exports, "CardFooter", { enumerable: true, get: function () { return gui_1.CardFooter; } });
|
|
46
53
|
Object.defineProperty(exports, "CardHeader", { enumerable: true, get: function () { return gui_1.CardHeader; } });
|
|
54
|
+
Object.defineProperty(exports, "CardMedia", { enumerable: true, get: function () { return gui_1.CardMedia; } });
|
|
47
55
|
Object.defineProperty(exports, "CardTitle", { enumerable: true, get: function () { return gui_1.CardTitle; } });
|
|
48
56
|
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return gui_1.Checkbox; } });
|
|
49
57
|
Object.defineProperty(exports, "Collapsible", { enumerable: true, get: function () { return gui_1.Collapsible; } });
|
|
@@ -83,6 +91,17 @@ Object.defineProperty(exports, "DropdownMenuSub", { enumerable: true, get: funct
|
|
|
83
91
|
Object.defineProperty(exports, "DropdownMenuSubContent", { enumerable: true, get: function () { return gui_1.DropdownMenuSubContent; } });
|
|
84
92
|
Object.defineProperty(exports, "DropdownMenuSubTrigger", { enumerable: true, get: function () { return gui_1.DropdownMenuSubTrigger; } });
|
|
85
93
|
Object.defineProperty(exports, "DropdownMenuTrigger", { enumerable: true, get: function () { return gui_1.DropdownMenuTrigger; } });
|
|
94
|
+
Object.defineProperty(exports, "Em", { enumerable: true, get: function () { return gui_1.Em; } });
|
|
95
|
+
Object.defineProperty(exports, "Glass", { enumerable: true, get: function () { return gui_1.Glass; } });
|
|
96
|
+
Object.defineProperty(exports, "Grid", { enumerable: true, get: function () { return gui_1.Grid; } });
|
|
97
|
+
Object.defineProperty(exports, "H1", { enumerable: true, get: function () { return gui_1.H1; } });
|
|
98
|
+
Object.defineProperty(exports, "H2", { enumerable: true, get: function () { return gui_1.H2; } });
|
|
99
|
+
Object.defineProperty(exports, "H3", { enumerable: true, get: function () { return gui_1.H3; } });
|
|
100
|
+
Object.defineProperty(exports, "H4", { enumerable: true, get: function () { return gui_1.H4; } });
|
|
101
|
+
Object.defineProperty(exports, "H5", { enumerable: true, get: function () { return gui_1.H5; } });
|
|
102
|
+
Object.defineProperty(exports, "H6", { enumerable: true, get: function () { return gui_1.H6; } });
|
|
103
|
+
Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return gui_1.Heading; } });
|
|
104
|
+
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return gui_1.Image; } });
|
|
86
105
|
Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return gui_1.Input; } });
|
|
87
106
|
Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return gui_1.Label; } });
|
|
88
107
|
Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return gui_1.Popover; } });
|
|
@@ -106,8 +125,15 @@ Object.defineProperty(exports, "SelectScrollUpButton", { enumerable: true, get:
|
|
|
106
125
|
Object.defineProperty(exports, "SelectSeparator", { enumerable: true, get: function () { return gui_1.SelectSeparator; } });
|
|
107
126
|
Object.defineProperty(exports, "SelectTrigger", { enumerable: true, get: function () { return gui_1.SelectTrigger; } });
|
|
108
127
|
Object.defineProperty(exports, "SelectValue", { enumerable: true, get: function () { return gui_1.SelectValue; } });
|
|
128
|
+
Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return gui_1.Paragraph; } });
|
|
129
|
+
Object.defineProperty(exports, "ScrollView", { enumerable: true, get: function () { return gui_1.ScrollView; } });
|
|
130
|
+
Object.defineProperty(exports, "Section", { enumerable: true, get: function () { return gui_1.Section; } });
|
|
109
131
|
Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return gui_1.Separator; } });
|
|
132
|
+
Object.defineProperty(exports, "SizableText", { enumerable: true, get: function () { return gui_1.SizableText; } });
|
|
110
133
|
Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return gui_1.Slider; } });
|
|
134
|
+
Object.defineProperty(exports, "Spacer", { enumerable: true, get: function () { return gui_1.Spacer; } });
|
|
135
|
+
Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return gui_1.Span; } });
|
|
136
|
+
Object.defineProperty(exports, "Strong", { enumerable: true, get: function () { return gui_1.Strong; } });
|
|
111
137
|
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return gui_1.Switch; } });
|
|
112
138
|
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return gui_1.Tabs; } });
|
|
113
139
|
Object.defineProperty(exports, "TabsContent", { enumerable: true, get: function () { return gui_1.TabsContent; } });
|
|
@@ -115,10 +141,15 @@ Object.defineProperty(exports, "TabsList", { enumerable: true, get: function ()
|
|
|
115
141
|
Object.defineProperty(exports, "TabsTrigger", { enumerable: true, get: function () { return gui_1.TabsTrigger; } });
|
|
116
142
|
Object.defineProperty(exports, "Textarea", { enumerable: true, get: function () { return gui_1.Textarea; } });
|
|
117
143
|
Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return gui_1.Toaster; } });
|
|
144
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return gui_1.Text; } });
|
|
118
145
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return gui_1.Tooltip; } });
|
|
119
146
|
Object.defineProperty(exports, "TooltipContent", { enumerable: true, get: function () { return gui_1.TooltipContent; } });
|
|
120
147
|
Object.defineProperty(exports, "TooltipProvider", { enumerable: true, get: function () { return gui_1.TooltipProvider; } });
|
|
121
148
|
Object.defineProperty(exports, "TooltipTrigger", { enumerable: true, get: function () { return gui_1.TooltipTrigger; } });
|
|
149
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return gui_1.View; } });
|
|
150
|
+
Object.defineProperty(exports, "XStack", { enumerable: true, get: function () { return gui_1.XStack; } });
|
|
151
|
+
Object.defineProperty(exports, "YStack", { enumerable: true, get: function () { return gui_1.YStack; } });
|
|
152
|
+
Object.defineProperty(exports, "ZStack", { enumerable: true, get: function () { return gui_1.ZStack; } });
|
|
122
153
|
Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return gui_1.badgeVariants; } });
|
|
123
154
|
Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: function () { return gui_1.buttonVariants; } });
|
|
124
155
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return gui_1.toast; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, 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, Em, Glass, Grid, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, ScrollView, Section, Separator, SizableText, Slider, Spacer, Span, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, 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
3
|
export { Hanzo, type HanzoProps } from './root.js';
|
|
4
4
|
export { cn } from './core/cn.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings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I,EAAE,WAAW,EACzB,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAC/B,OAAO,EACP,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EACpF,MAAM,EAAE,aAAa,EAAE,cAAc,EACrC,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
|
@@ -25,9 +25,15 @@
|
|
|
25
25
|
// cannot prove which members are unused through a star, so importing Button pulled
|
|
26
26
|
// the whole surface in.
|
|
27
27
|
//
|
|
28
|
-
// ./backends/gui
|
|
29
|
-
//
|
|
30
|
-
|
|
28
|
+
// ./backends/gui declares these as explicit named blocks and this list mirrors it.
|
|
29
|
+
//
|
|
30
|
+
// It is maintained BY HAND — `scripts/gen-primitives.mjs` writes `src/primitives/`,
|
|
31
|
+
// not this file, so nothing regenerates it and nothing used to notice when the two
|
|
32
|
+
// drifted. Glass, Grid, Section and CardMedia were all exported by the backend and
|
|
33
|
+
// absent here, which means a consumer could not import them AT ALL: the component
|
|
34
|
+
// existed, the docs named it, and `import { Grid } from '@hanzo/ui'` was undefined.
|
|
35
|
+
// `src/__tests__/barrel.test.ts` now fails when the two disagree.
|
|
36
|
+
export { AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, 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, Em, Glass, Grid, H1, H2, H3, H4, H5, H6, Heading, Image, Input, Label, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Paragraph, ScrollView, Section, Separator, SizableText, Slider, Spacer, Span, Strong, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Text, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, View, XStack, YStack, ZStack, badgeVariants, buttonVariants, toast, } from './backends/gui/index.js';
|
|
31
37
|
// `Hanzo` — the root, and the only thing an app mounts. It carries the gui
|
|
32
38
|
// config and the generated stylesheet, so `npm i @hanzo/ui` is the whole setup:
|
|
33
39
|
// no gui.config.ts, no CSS import, no generator script.
|
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;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8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Em = 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 layout_1 = require("../backends/gui/layout.cjs");
|
|
8
|
+
Object.defineProperty(exports, "Em", { enumerable: true, get: function () { return layout_1.Em; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Em.d.ts","sourceRoot":"","sources":["../../src/primitives/Em.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,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 { Em } from '../backends/gui/layout.js';
|
|
5
|
+
//# sourceMappingURL=Em.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Em.js","sourceRoot":"","sources":["../../src/primitives/Em.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.H1 = 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 layout_1 = require("../backends/gui/layout.cjs");
|
|
8
|
+
Object.defineProperty(exports, "H1", { enumerable: true, get: function () { return layout_1.H1; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../src/primitives/H1.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,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 { H1 } from '../backends/gui/layout.js';
|
|
5
|
+
//# sourceMappingURL=H1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"H1.js","sourceRoot":"","sources":["../../src/primitives/H1.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,kEAAkE;AAClE,qEAAqE;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.H2 = 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 layout_1 = require("../backends/gui/layout.cjs");
|
|
8
|
+
Object.defineProperty(exports, "H2", { enumerable: true, get: function () { return layout_1.H2; } });
|