@hanzo/ui 8.3.1 → 8.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +3 -3
  2. package/dist/backends/gui/index.cjs +2 -2
  3. package/dist/backends/gui/index.js +2 -2
  4. package/dist/backends/gui/index.js.map +1 -1
  5. package/dist/backends/gui/layout.cjs +1 -1
  6. package/dist/backends/gui/layout.d.ts +1 -1
  7. package/dist/backends/gui/layout.js +1 -1
  8. package/dist/chat/Code.cjs +3 -3
  9. package/dist/chat/Code.js +3 -3
  10. package/dist/chat/Code.js.map +1 -1
  11. package/dist/chat/pure.cjs +1 -1
  12. package/dist/chat/pure.js +1 -1
  13. package/dist/chat/pure.js.map +1 -1
  14. package/dist/core/fonts.cjs +14 -13
  15. package/dist/core/fonts.d.ts +18 -17
  16. package/dist/core/fonts.d.ts.map +1 -1
  17. package/dist/core/fonts.js +14 -13
  18. package/dist/core/fonts.js.map +1 -1
  19. package/dist/core/index.cjs +1 -1
  20. package/dist/core/index.js +1 -1
  21. package/dist/core/index.js.map +1 -1
  22. package/dist/gallery.html +108 -46
  23. package/dist/gui-config.cjs +11 -9
  24. package/dist/gui-config.d.ts.map +1 -1
  25. package/dist/gui-config.js +11 -9
  26. package/dist/gui-config.js.map +1 -1
  27. package/dist/product/DataTable.d.ts +2 -2
  28. package/dist/product/DataTable.d.ts.map +1 -1
  29. package/dist/product/Pagination.cjs +1 -1
  30. package/dist/product/Pagination.js +1 -1
  31. package/dist/product/instrument.cjs +2 -2
  32. package/dist/product/instrument.js +2 -2
  33. package/dist/product/instrument.js.map +1 -1
  34. package/dist/product/pages.cjs +1 -1
  35. package/dist/product/pages.d.ts +1 -1
  36. package/dist/product/pages.js +1 -1
  37. package/dist/product/pure.cjs +1 -1
  38. package/dist/product/pure.js +1 -1
  39. package/dist/product/pure.js.map +1 -1
  40. package/dist/root.d.ts +1 -1
  41. package/dist/styles/motion.css +2 -2
  42. package/dist/styles.css +103 -41
  43. package/dist/telemetry.cjs +1 -1
  44. package/dist/telemetry.js +1 -1
  45. package/dist/telemetry.js.map +1 -1
  46. package/dist/theme.css +98 -36
  47. package/package.json +3 -2
package/README.md CHANGED
@@ -125,7 +125,7 @@ import { Hanzo } from '@hanzo/ui'
125
125
  ```
126
126
 
127
127
  That is the entire wiring. Every click, form change, submit and route change
128
- inside the tree arrives on the ONE front door (`POST /v1/event`) annotated with
128
+ inside the tree arrives on the ONE entry point (`POST /v1/event`) annotated with
129
129
  the component it happened on — no `onClick` handler anywhere reports anything,
130
130
  and no call site changes:
131
131
 
@@ -187,11 +187,11 @@ org with `POST /v1/keys {"type":"publishable"}`. Omit it and the client reads
187
187
  fleet already carries end to end (KMS holds `deploy/PUBLISHABLE_KEY`; the
188
188
  Dockerfile takes it as a build-arg and re-exports it with the `NEXT_PUBLIC_`
189
189
  prefix Next needs to inline it). A surface with no key reports only for whoever
190
- is signed in and silently drops every logged-out visitor — the door refuses an
190
+ is signed in and silently drops every logged-out visitor — the edge refuses an
191
191
  unattributable write rather than filing it where its owner cannot read it.
192
192
 
193
193
  For a page with no build step at all, the same wire ships as a hosted tag, served
194
- by the door it posts to:
194
+ by the address it posts to:
195
195
  `<script defer src="https://api.hanzo.ai/v1/event/tag.js" data-key="pk-…">`.
196
196
  It is one or the other — a page running both counts every pageview twice.
197
197
 
@@ -12,8 +12,8 @@
12
12
  //
13
13
  // The explicit named blocks below are ALSO the manifest that
14
14
  // `scripts/gen-primitives.mjs` reads to emit the per-member `./primitives/*`
15
- // entrypoints, so root, `./primitives` and `./primitives/*` are three doors into
16
- // one room. Re-run after changing the surface:
15
+ // entrypoints, so root, `./primitives` and `./primitives/*` are three entry
16
+ // points onto the same surface. Re-run after changing the surface:
17
17
  // node scripts/gen-primitives.mjs
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.ContextMenuRadioItem = exports.ContextMenuCheckboxItem = exports.ContextMenuItem = exports.ContextMenuContent = exports.ContextMenuTrigger = exports.ContextMenu = 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 = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogOverlay = exports.AlertDialogPortal = exports.AlertDialogTrigger = exports.AlertDialog = exports.AccordionContent = exports.AccordionTrigger = exports.AccordionItem = exports.Accordion = void 0;
@@ -11,8 +11,8 @@
11
11
  //
12
12
  // The explicit named blocks below are ALSO the manifest that
13
13
  // `scripts/gen-primitives.mjs` reads to emit the per-member `./primitives/*`
14
- // entrypoints, so root, `./primitives` and `./primitives/*` are three doors into
15
- // one room. Re-run after changing the surface:
14
+ // entrypoints, so root, `./primitives` and `./primitives/*` are three entry
15
+ // points onto the same surface. Re-run after changing the surface:
16
16
  // node scripts/gen-primitives.mjs
17
17
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './accordion.js';
18
18
  export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './alert-dialog.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;AAC5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,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EACzE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAE9C,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,MAAM,EAAE,IAAI,EAAoC,MAAM,UAAU,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,OAAO,EAAqB,MAAM,WAAW,CAAA;AACtD,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,EACL,WAAW,EACX,eAAe,GAKhB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
@@ -14,7 +14,7 @@ exports.Text = exports.View = exports.ScrollView = exports.Spacer = exports.Imag
14
14
  * View, Text, GuiElement — because there was nowhere else to get them.
15
15
  *
16
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
17
+ * library failing to be the one entry point: the app then pins its own @hanzo/gui
18
18
  * version, resolves a second copy of the runtime (which is how "Missing theme."
19
19
  * happens), and every primitive it draws sits outside anything this package can
20
20
  * restyle, theme or fix centrally.
@@ -10,7 +10,7 @@
10
10
  * View, Text, GuiElement — because there was nowhere else to get them.
11
11
  *
12
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
13
+ * library failing to be the one entry point: the app then pins its own @hanzo/gui
14
14
  * version, resolves a second copy of the runtime (which is how "Missing theme."
15
15
  * happens), and every primitive it draws sits outside anything this package can
16
16
  * restyle, theme or fix centrally.
@@ -11,7 +11,7 @@
11
11
  * View, Text, GuiElement — because there was nowhere else to get them.
12
12
  *
13
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
14
+ * library failing to be the one entry point: the app then pins its own @hanzo/gui
15
15
  * version, resolves a second copy of the runtime (which is how "Missing theme."
16
16
  * happens), and every primitive it draws sits outside anything this package can
17
17
  * restyle, theme or fix centrally.
@@ -24,11 +24,11 @@ const CopyButton_1 = require("../product/CopyButton.cjs");
24
24
  * There is no mono family in the token set — only `$body` and `$heading` — so a
25
25
  * `fontFamily="$mono"` would not typecheck, and picking `$body` would set code
26
26
  * in a proportional face, where columns stop aligning and l/1/I stop being
27
- * distinguishable. The CSS variable is honoured when the host defines Geist
28
- * Mono and falls back to the platform's own monospace when it does not.
27
+ * distinguishable. The CSS variable is honoured when the host defines Zen Mono
28
+ * and falls back to the platform's own monospace when it does not.
29
29
  */
30
30
  const MONO = {
31
- fontFamily: 'var(--font-geist-mono, ui-monospace, SFMono-Regular, Menlo, monospace)',
31
+ fontFamily: 'var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace)',
32
32
  };
33
33
  function Code({ children, language = 'text', value, actions, ...props }) {
34
34
  const text = value ?? (typeof children === 'string' ? children : '');
package/dist/chat/Code.js CHANGED
@@ -21,11 +21,11 @@ import { CopyButton } from '../product/CopyButton.js';
21
21
  * There is no mono family in the token set — only `$body` and `$heading` — so a
22
22
  * `fontFamily="$mono"` would not typecheck, and picking `$body` would set code
23
23
  * in a proportional face, where columns stop aligning and l/1/I stop being
24
- * distinguishable. The CSS variable is honoured when the host defines Geist
25
- * Mono and falls back to the platform's own monospace when it does not.
24
+ * distinguishable. The CSS variable is honoured when the host defines Zen Mono
25
+ * and falls back to the platform's own monospace when it does not.
26
26
  */
27
27
  const MONO = {
28
- fontFamily: 'var(--font-geist-mono, ui-monospace, SFMono-Regular, Menlo, monospace)',
28
+ fontFamily: 'var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace)',
29
29
  };
30
30
  export function Code({ children, language = 'text', value, actions, ...props }) {
31
31
  const text = value ?? (typeof children === 'string' ? children : '');
@@ -1 +1 @@
1
- {"version":3,"file":"Code.js","sourceRoot":"","sources":["../../src/chat/Code.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGpE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD;;;;;;;;GAQG;AACH,MAAM,IAAI,GAAG;IACX,UAAU,EAAE,wEAAwE;CAC5E,CAAA;AAYV,MAAM,UAAU,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,EAAa;IACvF,MAAM,IAAI,GAAG,KAAK,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAEpE,OAAO,CACL,MAAC,MAAM,OACD,IAAI,CAAC,MAAM,CAAC,EAChB,KAAK,EAAC,MAAM,EACZ,OAAO,EAAC,IAAI,EACZ,WAAW,EAAE,CAAC,EACd,WAAW,EAAC,cAAc,EAC1B,EA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AAE,GAAG,KAAK,EAAa;IACvF,MAAM,IAAI,GAAG,KAAK,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAEpE,OAAO,CACL,MAAC,MAAM,OACD,IAAI,CAAC,MAAM,CAAC,EAChB,KAAK,EAAC,MAAM,EACZ,OAAO,EAAC,IAAI,EACZ,WAAW,EAAE,CAAC,EACd,WAAW,EAAC,cAAc,EAC1B,EAAE,EAAC,QAAQ,EACX,QAAQ,EAAC,QAAQ,KACb,KAAK,aAET,MAAC,MAAM,IACL,KAAK,EAAC,QAAQ,EACd,GAAG,EAAC,IAAI,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,MAAM,EACT,iBAAiB,EAAE,CAAC,EACpB,WAAW,EAAC,cAAc,aAQ1B,KAAC,WAAW,IAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,QAAQ,YAC/C,QAAQ,GACG,EACd,KAAC,MAAM,IAAC,IAAI,EAAE,CAAC,GAAI,EAClB,OAAO,EACP,IAAI,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACnC,EAeT,KAAC,UAAU,IAAC,UAAU,QAAC,8BAA8B,EAAE,KAAK,YAC1D,KAAC,MAAM,IAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,YACvB,KAAC,WAAW,IAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,YAC/C,QAAQ,GACG,GACP,GACE,IACN,CACV,CAAA;AACH,CAAC"}
@@ -8,7 +8,7 @@
8
8
  // import { sends, ready, pinned, SLACK } from '@hanzo/ui/chat/pure'
9
9
  //
10
10
  // `@hanzo/ui/product/pure` re-exports all four, because none of them is a chat
11
- // rule and that is the door a non-chat surface looks behind.
11
+ // rule and that is the entry point a non-chat surface imports them from.
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.SLACK = exports.pinned = exports.sends = exports.ready = void 0;
14
14
  // Enter, and whether a draft may go. Read `sends` before writing another one:
package/dist/chat/pure.js CHANGED
@@ -7,7 +7,7 @@
7
7
  // import { sends, ready, pinned, SLACK } from '@hanzo/ui/chat/pure'
8
8
  //
9
9
  // `@hanzo/ui/product/pure` re-exports all four, because none of them is a chat
10
- // rule and that is the door a non-chat surface looks behind.
10
+ // rule and that is the entry point a non-chat surface imports them from.
11
11
  // Enter, and whether a draft may go. Read `sends` before writing another one:
12
12
  // the IME guard is the point.
13
13
  export { ready, sends } from './send.js';
@@ -1 +1 @@
1
- {"version":3,"file":"pure.js","sourceRoot":"","sources":["../../src/chat/pure.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,oBAAoB;AACpB,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,6DAA6D;AAE7D,8EAA8E;AAC9E,8BAA8B;AAC9B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAa,MAAM,QAAQ,CAAA;AAEhD,0CAA0C;AAC1C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAc,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"pure.js","sourceRoot":"","sources":["../../src/chat/pure.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,oBAAoB;AACpB,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,yEAAyE;AAEzE,8EAA8E;AAC9E,8BAA8B;AAC9B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAa,MAAM,QAAQ,CAAA;AAEhD,0CAA0C;AAC1C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAc,MAAM,SAAS,CAAA"}
@@ -1,26 +1,27 @@
1
1
  'use client';"use strict";
2
2
  /**
3
- * Typography identity — Geist (UI/body/display) + Geist Mono (code/data).
3
+ * Typography identity — Zen (UI/body/display) + Zen Mono (code/data).
4
4
  *
5
- * The families are referenced through CSS variables so a host that loads Geist
6
- * however it likes (next/font, @fontsource, a CDN link) just has to bind these
7
- * two variables; the components and `theme.css` read the variables, never a
8
- * hard-coded font name. These constants are the single source of truth for the
9
- * variable names so a host and the stylesheet can never drift.
5
+ * The families are referenced through CSS variables, and the names say the ROLE
6
+ * rather than the face. A host that wants its own binds the two variables; one
7
+ * that binds nothing gets Zen, because `@hanzo/design` declares the @font-face
8
+ * and ships the binaries. The components and `theme.css` read the variables,
9
+ * never a hard-coded font name, and these constants are the one place the names
10
+ * are spelled so a host and the stylesheet cannot drift.
10
11
  */
11
12
  Object.defineProperty(exports, "__esModule", { value: true });
12
13
  exports.fonts = exports.fontMono = exports.fontSans = exports.FONT_MONO_VAR = exports.FONT_SANS_VAR = void 0;
13
- /** CSS custom-property that must resolve to the Geist Sans family. */
14
- exports.FONT_SANS_VAR = '--font-geist-sans';
15
- /** CSS custom-property that must resolve to the Geist Mono family. */
16
- exports.FONT_MONO_VAR = '--font-geist-mono';
14
+ /** CSS custom-property that must resolve to the Zen sans family. */
15
+ exports.FONT_SANS_VAR = '--font-sans';
16
+ /** CSS custom-property that must resolve to the Zen mono family. */
17
+ exports.FONT_MONO_VAR = '--font-mono';
17
18
  /**
18
- * UI / body / display / heading stack — Geist Sans, then the CSS generic only.
19
- * No Inter, no named system fonts: the host always binds `--font-geist-sans`
19
+ * UI / body / display / heading stack — Zen, then the CSS generic only.
20
+ * No Inter, no named system fonts: the host always binds `--font-sans`
20
21
  * (next/font, @fontsource, CDN), so the generic is a last-resort generic, never
21
22
  * a system-UI look.
22
23
  */
23
24
  exports.fontSans = `var(${exports.FONT_SANS_VAR}), sans-serif`;
24
- /** Code / data / tabular stack — Geist Mono, then the CSS generic only. */
25
+ /** Code / data / tabular stack — Zen Mono, then the CSS generic only. */
25
26
  exports.fontMono = `var(${exports.FONT_MONO_VAR}), monospace`;
26
27
  exports.fonts = { sans: exports.fontSans, mono: exports.fontMono };
@@ -1,27 +1,28 @@
1
1
  /**
2
- * Typography identity — Geist (UI/body/display) + Geist Mono (code/data).
2
+ * Typography identity — Zen (UI/body/display) + Zen Mono (code/data).
3
3
  *
4
- * The families are referenced through CSS variables so a host that loads Geist
5
- * however it likes (next/font, @fontsource, a CDN link) just has to bind these
6
- * two variables; the components and `theme.css` read the variables, never a
7
- * hard-coded font name. These constants are the single source of truth for the
8
- * variable names so a host and the stylesheet can never drift.
4
+ * The families are referenced through CSS variables, and the names say the ROLE
5
+ * rather than the face. A host that wants its own binds the two variables; one
6
+ * that binds nothing gets Zen, because `@hanzo/design` declares the @font-face
7
+ * and ships the binaries. The components and `theme.css` read the variables,
8
+ * never a hard-coded font name, and these constants are the one place the names
9
+ * are spelled so a host and the stylesheet cannot drift.
9
10
  */
10
- /** CSS custom-property that must resolve to the Geist Sans family. */
11
- export declare const FONT_SANS_VAR: "--font-geist-sans";
12
- /** CSS custom-property that must resolve to the Geist Mono family. */
13
- export declare const FONT_MONO_VAR: "--font-geist-mono";
11
+ /** CSS custom-property that must resolve to the Zen sans family. */
12
+ export declare const FONT_SANS_VAR: "--font-sans";
13
+ /** CSS custom-property that must resolve to the Zen mono family. */
14
+ export declare const FONT_MONO_VAR: "--font-mono";
14
15
  /**
15
- * UI / body / display / heading stack — Geist Sans, then the CSS generic only.
16
- * No Inter, no named system fonts: the host always binds `--font-geist-sans`
16
+ * UI / body / display / heading stack — Zen, then the CSS generic only.
17
+ * No Inter, no named system fonts: the host always binds `--font-sans`
17
18
  * (next/font, @fontsource, CDN), so the generic is a last-resort generic, never
18
19
  * a system-UI look.
19
20
  */
20
- export declare const fontSans: "var(--font-geist-sans), sans-serif";
21
- /** Code / data / tabular stack — Geist Mono, then the CSS generic only. */
22
- export declare const fontMono: "var(--font-geist-mono), monospace";
21
+ export declare const fontSans: "var(--font-sans), sans-serif";
22
+ /** Code / data / tabular stack — Zen Mono, then the CSS generic only. */
23
+ export declare const fontMono: "var(--font-mono), monospace";
23
24
  export declare const fonts: {
24
- readonly sans: "var(--font-geist-sans), sans-serif";
25
- readonly mono: "var(--font-geist-mono), monospace";
25
+ readonly sans: "var(--font-sans), sans-serif";
26
+ readonly mono: "var(--font-mono), monospace";
26
27
  };
27
28
  //# sourceMappingURL=fonts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,eAAO,MAAM,aAAa,EAAG,mBAA4B,CAAA;AACzD,sEAAsE;AACtE,eAAO,MAAM,aAAa,EAAG,mBAA4B,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,sCAA+C,CAAA;AAEpE,2EAA2E;AAC3E,eAAO,MAAM,QAAQ,qCAA8C,CAAA;AAEnE,eAAO,MAAM,KAAK;;;CAA8C,CAAA"}
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oEAAoE;AACpE,eAAO,MAAM,aAAa,EAAG,aAAsB,CAAA;AACnD,oEAAoE;AACpE,eAAO,MAAM,aAAa,EAAG,aAAsB,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,gCAA+C,CAAA;AAEpE,yEAAyE;AACzE,eAAO,MAAM,QAAQ,+BAA8C,CAAA;AAEnE,eAAO,MAAM,KAAK;;;CAA8C,CAAA"}
@@ -1,24 +1,25 @@
1
1
  'use client';/**
2
- * Typography identity — Geist (UI/body/display) + Geist Mono (code/data).
2
+ * Typography identity — Zen (UI/body/display) + Zen Mono (code/data).
3
3
  *
4
- * The families are referenced through CSS variables so a host that loads Geist
5
- * however it likes (next/font, @fontsource, a CDN link) just has to bind these
6
- * two variables; the components and `theme.css` read the variables, never a
7
- * hard-coded font name. These constants are the single source of truth for the
8
- * variable names so a host and the stylesheet can never drift.
4
+ * The families are referenced through CSS variables, and the names say the ROLE
5
+ * rather than the face. A host that wants its own binds the two variables; one
6
+ * that binds nothing gets Zen, because `@hanzo/design` declares the @font-face
7
+ * and ships the binaries. The components and `theme.css` read the variables,
8
+ * never a hard-coded font name, and these constants are the one place the names
9
+ * are spelled so a host and the stylesheet cannot drift.
9
10
  */
10
- /** CSS custom-property that must resolve to the Geist Sans family. */
11
- export const FONT_SANS_VAR = '--font-geist-sans';
12
- /** CSS custom-property that must resolve to the Geist Mono family. */
13
- export const FONT_MONO_VAR = '--font-geist-mono';
11
+ /** CSS custom-property that must resolve to the Zen sans family. */
12
+ export const FONT_SANS_VAR = '--font-sans';
13
+ /** CSS custom-property that must resolve to the Zen mono family. */
14
+ export const FONT_MONO_VAR = '--font-mono';
14
15
  /**
15
- * UI / body / display / heading stack — Geist Sans, then the CSS generic only.
16
- * No Inter, no named system fonts: the host always binds `--font-geist-sans`
16
+ * UI / body / display / heading stack — Zen, then the CSS generic only.
17
+ * No Inter, no named system fonts: the host always binds `--font-sans`
17
18
  * (next/font, @fontsource, CDN), so the generic is a last-resort generic, never
18
19
  * a system-UI look.
19
20
  */
20
21
  export const fontSans = `var(${FONT_SANS_VAR}), sans-serif`;
21
- /** Code / data / tabular stack — Geist Mono, then the CSS generic only. */
22
+ /** Code / data / tabular stack — Zen Mono, then the CSS generic only. */
22
23
  export const fontMono = `var(${FONT_MONO_VAR}), monospace`;
23
24
  export const fonts = { sans: fontSans, mono: fontMono };
24
25
  //# sourceMappingURL=fonts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,aAAa,GAAG,mBAA4B,CAAA;AACzD,sEAAsE;AACtE,MAAM,CAAC,MAAM,aAAa,GAAG,mBAA4B,CAAA;AAEzD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,aAAa,eAAwB,CAAA;AAEpE,2EAA2E;AAC3E,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,aAAa,cAAuB,CAAA;AAEnE,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAW,CAAA"}
1
+ {"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oEAAoE;AACpE,MAAM,CAAC,MAAM,aAAa,GAAG,aAAsB,CAAA;AACnD,oEAAoE;AACpE,MAAM,CAAC,MAAM,aAAa,GAAG,aAAsB,CAAA;AAEnD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,aAAa,eAAwB,CAAA;AAEpE,yEAAyE;AACzE,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,aAAa,cAAuB,CAAA;AAEnE,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAW,CAAA"}
@@ -2,7 +2,7 @@
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/design), and the Geist typography variables.
5
+ // the design tokens (from @hanzo/design), and the Zen typography variables.
6
6
  //
7
7
  // ESM-ONLY, and so is `@hanzo/ui/tokens`: @hanzo/design is `"type": "module"`
8
8
  // with no `require` condition, so a CJS build of this subpath cannot load it.
@@ -1,7 +1,7 @@
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/design), and the Geist typography variables.
4
+ // the design tokens (from @hanzo/design), and the Zen typography variables.
5
5
  //
6
6
  // ESM-ONLY, and so is `@hanzo/ui/tokens`: @hanzo/design is `"type": "module"`
7
7
  // with no `require` condition, so a CJS build of this subpath cannot load it.
@@ -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,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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,EAAE;AACF,iFAAiF;AACjF,4EAA4E;AAC5E,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"}