@hanzo/ui 8.0.45 → 8.0.47
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/core/index.cjs +7 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/tokens.cjs +31 -27
- package/dist/core/tokens.d.ts +19 -10
- package/dist/core/tokens.d.ts.map +1 -1
- package/dist/core/tokens.js +18 -9
- package/dist/core/tokens.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +908 -39
- package/dist/theme.css +908 -39
- package/package.json +11 -14
package/dist/core/index.cjs
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
// @hanzo/ui — design core.
|
|
3
3
|
//
|
|
4
4
|
// Backend-agnostic foundation every backend draws from: the class-name composer,
|
|
5
|
-
// the design tokens (from @hanzo/
|
|
5
|
+
// the design tokens (from @hanzo/design), and the Geist typography variables.
|
|
6
|
+
//
|
|
7
|
+
// ESM-ONLY, and so is `@hanzo/ui/tokens`: @hanzo/design is `"type": "module"`
|
|
8
|
+
// with no `require` condition, so a CJS build of this subpath cannot load it.
|
|
9
|
+
// The `require` condition is removed from both subpaths in package.json rather
|
|
10
|
+
// than left to crash deep inside design at run time. The MAIN barrel is
|
|
11
|
+
// unaffected — it pulls `./core/cn` directly, not this file.
|
|
6
12
|
// The visual identity these describe is emitted as CSS by `theme.css`.
|
|
7
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
14
|
if (k2 === undefined) k2 = k;
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjF,cAAc,UAAU,CAAA"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// @hanzo/ui — design core.
|
|
2
2
|
//
|
|
3
3
|
// Backend-agnostic foundation every backend draws from: the class-name composer,
|
|
4
|
-
// the design tokens (from @hanzo/
|
|
4
|
+
// the design tokens (from @hanzo/design), and the Geist typography variables.
|
|
5
|
+
//
|
|
6
|
+
// ESM-ONLY, and so is `@hanzo/ui/tokens`: @hanzo/design is `"type": "module"`
|
|
7
|
+
// with no `require` condition, so a CJS build of this subpath cannot load it.
|
|
8
|
+
// The `require` condition is removed from both subpaths in package.json rather
|
|
9
|
+
// than left to crash deep inside design at run time. The MAIN barrel is
|
|
10
|
+
// unaffected — it pulls `./core/cn` directly, not this file.
|
|
5
11
|
// The visual identity these describe is emitted as CSS by `theme.css`.
|
|
6
12
|
export { cn } from './cn.js';
|
|
7
13
|
export { fonts, fontSans, fontMono, FONT_SANS_VAR, FONT_MONO_VAR } from './fonts.js';
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,EAAE;AACF,iFAAiF;AACjF,8EAA8E;AAC9E,uEAAuE;AAEvE,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjF,cAAc,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,EAAE;AACF,iFAAiF;AACjF,8EAA8E;AAC9E,EAAE;AACF,8EAA8E;AAC9E,8EAA8E;AAC9E,+EAA+E;AAC/E,wEAAwE;AACxE,6DAA6D;AAC7D,uEAAuE;AAEvE,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjF,cAAc,UAAU,CAAA"}
|
package/dist/core/tokens.cjs
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.tokenValue = exports.cssVar = exports.cssVars = exports.fonts = exports.zIndex = exports.motion = exports.elevation = exports.radius = exports.grid = exports.spacing = exports.typography = exports.colors = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Design tokens — re-exported from `@hanzo/
|
|
5
|
+
* Design tokens — re-exported from `@hanzo/design`, the single source of truth.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* This used to read `@hanzo/tokens`, a workspace package last touched
|
|
8
|
+
* 2026-03-22, while the design lane and several surfaces had already moved to
|
|
9
|
+
* `@hanzo/design`. One fact, two homes: store/billing/hanzo.industries followed
|
|
10
|
+
* design, the convergence branches followed the stale package, and pushing
|
|
11
|
+
* either over the other reverted real work. `@hanzo/design` wins — it IS the
|
|
12
|
+
* design system, it publishes the finished values, and it is what the rest of
|
|
13
|
+
* the estate already consumes.
|
|
14
|
+
*
|
|
15
|
+
* The token layer this exposes to code is the SAME layer `theme.css` ships as
|
|
16
|
+
* CSS — composed from @hanzo/design at build time by scripts/compose-theme.mjs
|
|
17
|
+
* — so runtime and stylesheet cannot drift.
|
|
18
|
+
*
|
|
19
|
+
* `cssVar` is how code should reach a token: it returns `var(--name, <literal>)`
|
|
20
|
+
* so the value resolves through the live cascade and honours the viewer's theme
|
|
21
|
+
* instead of baking one theme's number into a component.
|
|
13
22
|
*
|
|
14
23
|
* NOTE: the root barrel's `tokens` export (the gui/product theme object from
|
|
15
24
|
* `@hanzo/data`) is a DIFFERENT, complementary thing; these are named exports
|
|
16
|
-
*
|
|
25
|
+
* and never collide with it.
|
|
17
26
|
*/
|
|
18
|
-
var
|
|
19
|
-
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
Object.defineProperty(exports, "
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
-
Object.defineProperty(exports, "
|
|
24
|
-
Object.defineProperty(exports, "
|
|
25
|
-
Object.defineProperty(exports, "
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
-
Object.defineProperty(exports, "
|
|
29
|
-
Object.defineProperty(exports, "
|
|
30
|
-
Object.defineProperty(exports, "
|
|
31
|
-
Object.defineProperty(exports, "lineHeight", { enumerable: true, get: function () { return tokens_1.lineHeight; } });
|
|
32
|
-
Object.defineProperty(exports, "letterSpacing", { enumerable: true, get: function () { return tokens_1.letterSpacing; } });
|
|
33
|
-
Object.defineProperty(exports, "dark", { enumerable: true, get: function () { return tokens_1.dark; } });
|
|
34
|
-
Object.defineProperty(exports, "light", { enumerable: true, get: function () { return tokens_1.light; } });
|
|
35
|
-
Object.defineProperty(exports, "themes", { enumerable: true, get: function () { return tokens_1.themes; } });
|
|
27
|
+
var design_1 = require("@hanzo/design");
|
|
28
|
+
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return design_1.colors; } });
|
|
29
|
+
Object.defineProperty(exports, "typography", { enumerable: true, get: function () { return design_1.typography; } });
|
|
30
|
+
Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return design_1.spacing; } });
|
|
31
|
+
Object.defineProperty(exports, "grid", { enumerable: true, get: function () { return design_1.grid; } });
|
|
32
|
+
Object.defineProperty(exports, "radius", { enumerable: true, get: function () { return design_1.radius; } });
|
|
33
|
+
Object.defineProperty(exports, "elevation", { enumerable: true, get: function () { return design_1.elevation; } });
|
|
34
|
+
Object.defineProperty(exports, "motion", { enumerable: true, get: function () { return design_1.motion; } });
|
|
35
|
+
Object.defineProperty(exports, "zIndex", { enumerable: true, get: function () { return design_1.zIndex; } });
|
|
36
|
+
Object.defineProperty(exports, "fonts", { enumerable: true, get: function () { return design_1.fonts; } });
|
|
37
|
+
Object.defineProperty(exports, "cssVars", { enumerable: true, get: function () { return design_1.cssVars; } });
|
|
38
|
+
Object.defineProperty(exports, "cssVar", { enumerable: true, get: function () { return design_1.cssVar; } });
|
|
39
|
+
Object.defineProperty(exports, "tokenValue", { enumerable: true, get: function () { return design_1.tokenValue; } });
|
package/dist/core/tokens.d.ts
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Design tokens — re-exported from `@hanzo/
|
|
2
|
+
* Design tokens — re-exported from `@hanzo/design`, the single source of truth.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This used to read `@hanzo/tokens`, a workspace package last touched
|
|
5
|
+
* 2026-03-22, while the design lane and several surfaces had already moved to
|
|
6
|
+
* `@hanzo/design`. One fact, two homes: store/billing/hanzo.industries followed
|
|
7
|
+
* design, the convergence branches followed the stale package, and pushing
|
|
8
|
+
* either over the other reverted real work. `@hanzo/design` wins — it IS the
|
|
9
|
+
* design system, it publishes the finished values, and it is what the rest of
|
|
10
|
+
* the estate already consumes.
|
|
11
|
+
*
|
|
12
|
+
* The token layer this exposes to code is the SAME layer `theme.css` ships as
|
|
13
|
+
* CSS — composed from @hanzo/design at build time by scripts/compose-theme.mjs
|
|
14
|
+
* — so runtime and stylesheet cannot drift.
|
|
15
|
+
*
|
|
16
|
+
* `cssVar` is how code should reach a token: it returns `var(--name, <literal>)`
|
|
17
|
+
* so the value resolves through the live cascade and honours the viewer's theme
|
|
18
|
+
* instead of baking one theme's number into a component.
|
|
10
19
|
*
|
|
11
20
|
* NOTE: the root barrel's `tokens` export (the gui/product theme object from
|
|
12
21
|
* `@hanzo/data`) is a DIFFERENT, complementary thing; these are named exports
|
|
13
|
-
*
|
|
22
|
+
* and never collide with it.
|
|
14
23
|
*/
|
|
15
|
-
export { colors,
|
|
16
|
-
export type {
|
|
24
|
+
export { colors, typography, spacing, grid, radius, elevation, motion, zIndex, fonts, cssVars, cssVar, tokenValue, } from '@hanzo/design';
|
|
25
|
+
export type { CssVarName, TokenName } from '@hanzo/design';
|
|
17
26
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/core/tokens.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/core/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,IAAI,EACJ,MAAM,EACN,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,GACX,MAAM,eAAe,CAAA;AAEtB,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/core/tokens.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Design tokens — re-exported from `@hanzo/
|
|
2
|
+
* Design tokens — re-exported from `@hanzo/design`, the single source of truth.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This used to read `@hanzo/tokens`, a workspace package last touched
|
|
5
|
+
* 2026-03-22, while the design lane and several surfaces had already moved to
|
|
6
|
+
* `@hanzo/design`. One fact, two homes: store/billing/hanzo.industries followed
|
|
7
|
+
* design, the convergence branches followed the stale package, and pushing
|
|
8
|
+
* either over the other reverted real work. `@hanzo/design` wins — it IS the
|
|
9
|
+
* design system, it publishes the finished values, and it is what the rest of
|
|
10
|
+
* the estate already consumes.
|
|
11
|
+
*
|
|
12
|
+
* The token layer this exposes to code is the SAME layer `theme.css` ships as
|
|
13
|
+
* CSS — composed from @hanzo/design at build time by scripts/compose-theme.mjs
|
|
14
|
+
* — so runtime and stylesheet cannot drift.
|
|
15
|
+
*
|
|
16
|
+
* `cssVar` is how code should reach a token: it returns `var(--name, <literal>)`
|
|
17
|
+
* so the value resolves through the live cascade and honours the viewer's theme
|
|
18
|
+
* instead of baking one theme's number into a component.
|
|
10
19
|
*
|
|
11
20
|
* NOTE: the root barrel's `tokens` export (the gui/product theme object from
|
|
12
21
|
* `@hanzo/data`) is a DIFFERENT, complementary thing; these are named exports
|
|
13
|
-
*
|
|
22
|
+
* and never collide with it.
|
|
14
23
|
*/
|
|
15
|
-
export { colors,
|
|
24
|
+
export { colors, typography, spacing, grid, radius, elevation, motion, zIndex, fonts, cssVars, cssVar, tokenValue, } from '@hanzo/design';
|
|
16
25
|
//# sourceMappingURL=tokens.js.map
|
package/dist/core/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/core/tokens.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/core/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,IAAI,EACJ,MAAM,EACN,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,GACX,MAAM,eAAe,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
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
|
-
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/
|
|
5
|
+
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
|
|
6
6
|
//
|
|
7
7
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
8
8
|
// same import works on web, native (expo) and desktop (Tauri). The ROOT barrel is
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/
|
|
1
|
+
// @hanzo/ui — the one Hanzo component library, on @hanzo/gui + @hanzo/design.
|
|
2
2
|
//
|
|
3
3
|
// ONE substrate: every component renders through @hanzo/gui primitives, so the
|
|
4
4
|
// same import works on web, native (expo) and desktop (Tauri). The ROOT barrel is
|