@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.
- package/README.md +3 -3
- package/dist/backends/gui/index.cjs +2 -2
- package/dist/backends/gui/index.js +2 -2
- package/dist/backends/gui/index.js.map +1 -1
- package/dist/backends/gui/layout.cjs +1 -1
- package/dist/backends/gui/layout.d.ts +1 -1
- package/dist/backends/gui/layout.js +1 -1
- package/dist/chat/Code.cjs +3 -3
- package/dist/chat/Code.js +3 -3
- package/dist/chat/Code.js.map +1 -1
- package/dist/chat/pure.cjs +1 -1
- package/dist/chat/pure.js +1 -1
- package/dist/chat/pure.js.map +1 -1
- package/dist/core/fonts.cjs +14 -13
- package/dist/core/fonts.d.ts +18 -17
- package/dist/core/fonts.d.ts.map +1 -1
- package/dist/core/fonts.js +14 -13
- package/dist/core/fonts.js.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/gallery.html +108 -46
- package/dist/gui-config.cjs +11 -9
- package/dist/gui-config.d.ts.map +1 -1
- package/dist/gui-config.js +11 -9
- package/dist/gui-config.js.map +1 -1
- package/dist/product/DataTable.d.ts +2 -2
- package/dist/product/DataTable.d.ts.map +1 -1
- package/dist/product/Pagination.cjs +1 -1
- package/dist/product/Pagination.js +1 -1
- package/dist/product/instrument.cjs +2 -2
- package/dist/product/instrument.js +2 -2
- package/dist/product/instrument.js.map +1 -1
- package/dist/product/pages.cjs +1 -1
- package/dist/product/pages.d.ts +1 -1
- package/dist/product/pages.js +1 -1
- package/dist/product/pure.cjs +1 -1
- package/dist/product/pure.js +1 -1
- package/dist/product/pure.js.map +1 -1
- package/dist/root.d.ts +1 -1
- package/dist/styles/motion.css +2 -2
- package/dist/styles.css +103 -41
- package/dist/telemetry.cjs +1 -1
- package/dist/telemetry.js +1 -1
- package/dist/telemetry.js.map +1 -1
- package/dist/theme.css +98 -36
- 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
|
|
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
|
|
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
|
|
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
|
|
16
|
-
//
|
|
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
|
|
15
|
-
//
|
|
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;AAC5E,iFAAiF;AACjF,+EAA+E;AAC/E,0BAA0B;AAC1B,EAAE;AACF,6DAA6D;AAC7D,6EAA6E;AAC7E,
|
|
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,4EAA4E;AAC5E,mEAAmE;AACnE,oCAAoC;AAEpC,OAAO,EACL,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GAKjB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAKlB,MAAM,gBAAgB,CAAA;AACvB,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,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,SAAS,GAEV,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,WAA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,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
|
|
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
|
|
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
|
|
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.
|
package/dist/chat/Code.cjs
CHANGED
|
@@ -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
|
|
28
|
-
*
|
|
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-
|
|
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
|
|
25
|
-
*
|
|
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-
|
|
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 : '');
|
package/dist/chat/Code.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.js","sourceRoot":"","sources":["../../src/chat/Code.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;GAWG;AACH,OAAO,E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W,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"}
|
package/dist/chat/pure.cjs
CHANGED
|
@@ -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
|
|
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
|
|
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';
|
package/dist/chat/pure.js.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/core/fonts.cjs
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
'use client';"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Typography identity —
|
|
3
|
+
* Typography identity — Zen (UI/body/display) + Zen Mono (code/data).
|
|
4
4
|
*
|
|
5
|
-
* The families are referenced through CSS variables
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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
|
|
14
|
-
exports.FONT_SANS_VAR = '--font-
|
|
15
|
-
/** CSS custom-property that must resolve to the
|
|
16
|
-
exports.FONT_MONO_VAR = '--font-
|
|
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 —
|
|
19
|
-
* No Inter, no named system fonts: the host always binds `--font-
|
|
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 —
|
|
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 };
|
package/dist/core/fonts.d.ts
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Typography identity —
|
|
2
|
+
* Typography identity — Zen (UI/body/display) + Zen Mono (code/data).
|
|
3
3
|
*
|
|
4
|
-
* The families are referenced through CSS variables
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
|
11
|
-
export declare const FONT_SANS_VAR: "--font-
|
|
12
|
-
/** CSS custom-property that must resolve to the
|
|
13
|
-
export declare const FONT_MONO_VAR: "--font-
|
|
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 —
|
|
16
|
-
* No Inter, no named system fonts: the host always binds `--font-
|
|
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-
|
|
21
|
-
/** Code / data / tabular stack —
|
|
22
|
-
export declare const fontMono: "var(--font-
|
|
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-
|
|
25
|
-
readonly mono: "var(--font-
|
|
25
|
+
readonly sans: "var(--font-sans), sans-serif";
|
|
26
|
+
readonly mono: "var(--font-mono), monospace";
|
|
26
27
|
};
|
|
27
28
|
//# sourceMappingURL=fonts.d.ts.map
|
package/dist/core/fonts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAAA
|
|
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"}
|
package/dist/core/fonts.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
'use client';/**
|
|
2
|
-
* Typography identity —
|
|
2
|
+
* Typography identity — Zen (UI/body/display) + Zen Mono (code/data).
|
|
3
3
|
*
|
|
4
|
-
* The families are referenced through CSS variables
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
|
11
|
-
export const FONT_SANS_VAR = '--font-
|
|
12
|
-
/** CSS custom-property that must resolve to the
|
|
13
|
-
export const FONT_MONO_VAR = '--font-
|
|
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 —
|
|
16
|
-
* No Inter, no named system fonts: the host always binds `--font-
|
|
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 —
|
|
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
|
package/dist/core/fonts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAAA
|
|
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"}
|
package/dist/core/index.cjs
CHANGED
|
@@ -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
|
|
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.
|
package/dist/core/index.js
CHANGED
|
@@ -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
|
|
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.
|
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,
|
|
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"}
|