@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.
@@ -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/tokens), and the Geist typography variables.
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;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAMA,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.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"}
@@ -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/tokens), and the Geist typography variables.
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';
@@ -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"}
@@ -1,35 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.themes = exports.light = exports.dark = exports.letterSpacing = exports.lineHeight = exports.fontWeight = exports.fontSizePx = exports.fontSize = exports.fontFamily = exports.radiiPx = exports.radii = exports.spacingPx = exports.spacing = exports.hsl = exports.oklch = exports.zinc = exports.colors = void 0;
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/tokens`, the single source of truth.
5
+ * Design tokens — re-exported from `@hanzo/design`, the single source of truth.
6
6
  *
7
- * `@hanzo/ui` is BUILT ON `@hanzo/tokens`: the color scale, the dark/light theme
8
- * token sets (the exact values `theme.css` emits as CSS variables), the radii,
9
- * the spacing, and the typography scale all originate there. Surfacing them here
10
- * lets a consumer read the same tokens programmatically
11
- * `import { themes, colors } from '@hanzo/ui/tokens'` — that the stylesheet and
12
- * the components render against, so runtime and CSS can never drift.
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
- * (`colors`, `themes`, `dark`, `light`, `radii`, …) and never collide with it.
25
+ * and never collide with it.
17
26
  */
18
- var tokens_1 = require("@hanzo/tokens");
19
- Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return tokens_1.colors; } });
20
- Object.defineProperty(exports, "zinc", { enumerable: true, get: function () { return tokens_1.zinc; } });
21
- Object.defineProperty(exports, "oklch", { enumerable: true, get: function () { return tokens_1.oklch; } });
22
- Object.defineProperty(exports, "hsl", { enumerable: true, get: function () { return tokens_1.hsl; } });
23
- Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return tokens_1.spacing; } });
24
- Object.defineProperty(exports, "spacingPx", { enumerable: true, get: function () { return tokens_1.spacingPx; } });
25
- Object.defineProperty(exports, "radii", { enumerable: true, get: function () { return tokens_1.radii; } });
26
- Object.defineProperty(exports, "radiiPx", { enumerable: true, get: function () { return tokens_1.radiiPx; } });
27
- Object.defineProperty(exports, "fontFamily", { enumerable: true, get: function () { return tokens_1.fontFamily; } });
28
- Object.defineProperty(exports, "fontSize", { enumerable: true, get: function () { return tokens_1.fontSize; } });
29
- Object.defineProperty(exports, "fontSizePx", { enumerable: true, get: function () { return tokens_1.fontSizePx; } });
30
- Object.defineProperty(exports, "fontWeight", { enumerable: true, get: function () { return tokens_1.fontWeight; } });
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; } });
@@ -1,17 +1,26 @@
1
1
  /**
2
- * Design tokens — re-exported from `@hanzo/tokens`, the single source of truth.
2
+ * Design tokens — re-exported from `@hanzo/design`, the single source of truth.
3
3
  *
4
- * `@hanzo/ui` is BUILT ON `@hanzo/tokens`: the color scale, the dark/light theme
5
- * token sets (the exact values `theme.css` emits as CSS variables), the radii,
6
- * the spacing, and the typography scale all originate there. Surfacing them here
7
- * lets a consumer read the same tokens programmatically
8
- * `import { themes, colors } from '@hanzo/ui/tokens'` — that the stylesheet and
9
- * the components render against, so runtime and CSS can never drift.
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
- * (`colors`, `themes`, `dark`, `light`, `radii`, …) and never collide with it.
22
+ * and never collide with it.
14
23
  */
15
- export { colors, zinc, oklch, hsl, spacing, spacingPx, radii, radiiPx, fontFamily, fontSize, fontSizePx, fontWeight, lineHeight, letterSpacing, dark, light, themes, } from '@hanzo/tokens';
16
- export type { ColorToken, ZincStep, SpacingStep, RadiusToken, FontSizeToken, FontWeightToken, ThemeTokens, } from '@hanzo/tokens';
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;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,KAAK,EACL,GAAG,EACH,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,IAAI,EACJ,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,YAAY,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,aAAa,EACb,eAAe,EACf,WAAW,GACZ,MAAM,eAAe,CAAA"}
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"}
@@ -1,16 +1,25 @@
1
1
  /**
2
- * Design tokens — re-exported from `@hanzo/tokens`, the single source of truth.
2
+ * Design tokens — re-exported from `@hanzo/design`, the single source of truth.
3
3
  *
4
- * `@hanzo/ui` is BUILT ON `@hanzo/tokens`: the color scale, the dark/light theme
5
- * token sets (the exact values `theme.css` emits as CSS variables), the radii,
6
- * the spacing, and the typography scale all originate there. Surfacing them here
7
- * lets a consumer read the same tokens programmatically
8
- * `import { themes, colors } from '@hanzo/ui/tokens'` — that the stylesheet and
9
- * the components render against, so runtime and CSS can never drift.
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
- * (`colors`, `themes`, `dark`, `light`, `radii`, …) and never collide with it.
22
+ * and never collide with it.
14
23
  */
15
- export { colors, zinc, oklch, hsl, spacing, spacingPx, radii, radiiPx, fontFamily, fontSize, fontSizePx, fontWeight, lineHeight, letterSpacing, dark, light, themes, } from '@hanzo/tokens';
24
+ export { colors, typography, spacing, grid, radius, elevation, motion, zIndex, fonts, cssVars, cssVar, tokenValue, } from '@hanzo/design';
16
25
  //# sourceMappingURL=tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/core/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,KAAK,EACL,GAAG,EACH,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,IAAI,EACJ,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAA"}
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/tokens.
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/tokens.
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