@nadicodeai/ui 12.1.262 → 12.1.264
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/components/agent-profile.d.ts +3 -2
- package/dist/components/agent-profile.d.ts.map +1 -1
- package/dist/components/agent-profile.js +6 -4
- package/dist/components/entry-scene.d.ts +11 -9
- package/dist/components/entry-scene.d.ts.map +1 -1
- package/dist/components/entry-scene.js +10 -9
- package/dist/components/model-identity.d.ts +21 -9
- package/dist/components/model-identity.d.ts.map +1 -1
- package/dist/components/model-identity.js +26 -34
- package/dist/components/progress.d.ts +1 -0
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +1 -0
- package/dist/showcase/specimens/choices.d.ts.map +1 -1
- package/dist/showcase/specimens/choices.js +10 -1
- package/dist/showcase/specimens/data.js +1 -1
- package/dist/showcase/specimens/feedback.js +1 -1
- package/dist/showcase/specimens/status.d.ts.map +1 -1
- package/dist/showcase/specimens/status.js +5 -2
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +9 -9
- package/package.json +2 -2
|
@@ -22,8 +22,9 @@ export type ModelSelectProps = Omit<ComponentProps<typeof SelectPrimitive.Trigge
|
|
|
22
22
|
* is a `Combobox`.
|
|
23
23
|
* @behaviour A `Select` whose trigger and every option read the model as `ModelIdentity` does: the
|
|
24
24
|
* maker's mark, one name, the muted maker. It shows `placeholder` until a model is chosen.
|
|
25
|
-
* @words Model names
|
|
26
|
-
*
|
|
25
|
+
* @words Model names are the ones `ModelIdentity` reads, the product's catalogue's through
|
|
26
|
+
* `ModelNames`, or the product's own `nameOf` when its runtime names models itself. The
|
|
27
|
+
* placeholder says what to choose: *Choose a model*.
|
|
27
28
|
* @access The trigger takes a visible label; listbox and option roles from Base UI; the marks are
|
|
28
29
|
* decorative beside the names.
|
|
29
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profile.d.ts","sourceRoot":"","sources":["../../src/components/agent-profile.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9C,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,iBAAiB,CACrE,GACC,cAAc,GAAG;IACf,yDAAyD;IACzD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,8DAA8D;IAC9D,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACpC,CAAC;AAEJ
|
|
1
|
+
{"version":3,"file":"agent-profile.d.ts","sourceRoot":"","sources":["../../src/components/agent-profile.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9C,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,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io as RadioPrimitive } from "@base-ui/react/radio";
|
|
4
4
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
5
5
|
import { cn } from "../lib/utils.js";
|
|
6
|
-
import { modelAuthor,
|
|
6
|
+
import { modelAuthor, useModelName } from "./model-identity.js";
|
|
7
7
|
import { ModelMark } from "./model-mark.js";
|
|
8
8
|
import { RadioGroup } from "./radio-group.js";
|
|
9
9
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger } from "./select.js";
|
|
@@ -17,16 +17,18 @@ import { toggleVariants } from "./toggle.js";
|
|
|
17
17
|
* is a `Combobox`.
|
|
18
18
|
* @behaviour A `Select` whose trigger and every option read the model as `ModelIdentity` does: the
|
|
19
19
|
* maker's mark, one name, the muted maker. It shows `placeholder` until a model is chosen.
|
|
20
|
-
* @words Model names
|
|
21
|
-
*
|
|
20
|
+
* @words Model names are the ones `ModelIdentity` reads, the product's catalogue's through
|
|
21
|
+
* `ModelNames`, or the product's own `nameOf` when its runtime names models itself. The
|
|
22
|
+
* placeholder says what to choose: *Choose a model*.
|
|
22
23
|
* @access The trigger takes a visible label; listbox and option roles from Base UI; the marks are
|
|
23
24
|
* decorative beside the names.
|
|
24
25
|
*/
|
|
25
26
|
export function ModelSelect({ value, options, onValueChange, placeholder, nameOf, disabled, className, ...props }) {
|
|
27
|
+
const catalogueName = useModelName();
|
|
26
28
|
return (_jsxs(Select, { disabled: disabled, onValueChange: (model) => {
|
|
27
29
|
if (typeof model === "string")
|
|
28
30
|
onValueChange(model);
|
|
29
|
-
}, value: value, children: [_jsx(SelectTrigger, { className: cn("w-full min-w-0", className), ...props, children: _jsx(SelectPrimitive.Value, { className: "flex min-w-0 flex-1 items-center gap-1.5 text-left", "data-slot": "select-value", children: (model) => model ? (_jsx(ModelMark, { author: modelAuthor(model), className: "min-w-0", name: nameOf?.(model) ??
|
|
31
|
+
}, value: value, children: [_jsx(SelectTrigger, { className: cn("w-full min-w-0", className), ...props, children: _jsx(SelectPrimitive.Value, { className: "flex min-w-0 flex-1 items-center gap-1.5 text-left", "data-slot": "select-value", children: (model) => model ? (_jsx(ModelMark, { author: modelAuthor(model), className: "min-w-0", name: nameOf?.(model) ?? catalogueName(model), size: 20 })) : (_jsx("span", { className: "text-placeholder", children: placeholder })) }) }), _jsx(SelectContent, { align: "start", alignItemWithTrigger: false, children: _jsx(SelectGroup, { children: options.map((model) => (_jsx(SelectItem, { value: model, children: _jsx(ModelMark, { author: modelAuthor(model), name: nameOf?.(model) ?? catalogueName(model), size: 20 }) }, model))) }) })] }));
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* One choice among a few short levels, drawn as segments that share a row.
|
|
@@ -68,19 +68,21 @@ export declare function EntryAction({ variant, pressed, className, children, ...
|
|
|
68
68
|
pressed?: boolean;
|
|
69
69
|
}): import("react").JSX.Element;
|
|
70
70
|
/**
|
|
71
|
-
* Measured work on an entry screen: a 2 px line
|
|
72
|
-
*
|
|
71
|
+
* Measured work on an entry screen: a 2 px line under the words that say what
|
|
72
|
+
* is happening now, with a measured amount under it when there is one.
|
|
73
73
|
*
|
|
74
74
|
* @family Feedback
|
|
75
|
-
* @when Work on an entry screen whose progress is measured: downloading an update,
|
|
76
|
-
* @instead Work whose length is unknown is a WaitingLine; measured work inside the product is a Progress
|
|
77
|
-
* @behaviour The line keeps the measured fraction, clamped between empty and full
|
|
78
|
-
* @words The
|
|
79
|
-
* @access The
|
|
75
|
+
* @when Work on an entry screen whose progress is measured: downloading an update, starting Nadia or Alveare Server.
|
|
76
|
+
* @instead Work whose length is unknown is a WaitingLine; measured work inside the product is a Progress. What is happening now is the `EntryMessage` above the line, in the progressive ("Starting the chat service"), never a list of every step (owner ruling, 17 November 2026).
|
|
77
|
+
* @behaviour The line above names what is happening now; the bar says how far. The bar keeps the measured fraction, clamped between empty and full, and moves only when the measured value moves. Under it stands the `amount` when the caller passes one; with none, nothing stands under the line.
|
|
78
|
+
* @words The `amount` is a measured quantity in the product's words, in tabular figures: "12 of 40 MB". Never a step count such as "Step 2 of 3" (owner ruling, 20 November 2026), and never a percentage.
|
|
79
|
+
* @access The bar is a progressbar whose value is the fraction as a whole number of a hundred, so assistive technology can read how far; the live `EntryMessage` above it says what is happening. An `amount` is a status, so its change is heard too.
|
|
80
80
|
*/
|
|
81
|
-
export declare function EntryProgress({ fraction, count, className, }: {
|
|
81
|
+
export declare function EntryProgress({ fraction, amount, count, className, }: {
|
|
82
82
|
fraction: number;
|
|
83
|
-
|
|
83
|
+
amount?: string;
|
|
84
|
+
/** The earlier name of `amount`, kept for callers of packages published before `amount` existed. New code passes `amount`. */
|
|
85
|
+
count?: string;
|
|
84
86
|
className?: string;
|
|
85
87
|
}): import("react").JSX.Element;
|
|
86
88
|
//# sourceMappingURL=entry-scene.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-scene.d.ts","sourceRoot":"","sources":["../../src/components/entry-scene.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtE,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,OAAO,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,QAAQ,EAAE,SAAS,CAAC;IACpB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qMAAqM;IACrM,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;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EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,+BAYA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8HAA8H;IAC9H,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAsBA"}
|
|
@@ -43,17 +43,18 @@ export function EntryAction({ variant = "primary", pressed, className, children,
|
|
|
43
43
|
return (_jsx("button", { type: "button", "data-variant": variant, "data-pressed": pressed ? "" : undefined, className: cn("nc-entry-action", className), ...props, children: children }));
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* Measured work on an entry screen: a 2 px line
|
|
47
|
-
*
|
|
46
|
+
* Measured work on an entry screen: a 2 px line under the words that say what
|
|
47
|
+
* is happening now, with a measured amount under it when there is one.
|
|
48
48
|
*
|
|
49
49
|
* @family Feedback
|
|
50
|
-
* @when Work on an entry screen whose progress is measured: downloading an update,
|
|
51
|
-
* @instead Work whose length is unknown is a WaitingLine; measured work inside the product is a Progress
|
|
52
|
-
* @behaviour The line keeps the measured fraction, clamped between empty and full
|
|
53
|
-
* @words The
|
|
54
|
-
* @access The
|
|
50
|
+
* @when Work on an entry screen whose progress is measured: downloading an update, starting Nadia or Alveare Server.
|
|
51
|
+
* @instead Work whose length is unknown is a WaitingLine; measured work inside the product is a Progress. What is happening now is the `EntryMessage` above the line, in the progressive ("Starting the chat service"), never a list of every step (owner ruling, 17 November 2026).
|
|
52
|
+
* @behaviour The line above names what is happening now; the bar says how far. The bar keeps the measured fraction, clamped between empty and full, and moves only when the measured value moves. Under it stands the `amount` when the caller passes one; with none, nothing stands under the line.
|
|
53
|
+
* @words The `amount` is a measured quantity in the product's words, in tabular figures: "12 of 40 MB". Never a step count such as "Step 2 of 3" (owner ruling, 20 November 2026), and never a percentage.
|
|
54
|
+
* @access The bar is a progressbar whose value is the fraction as a whole number of a hundred, so assistive technology can read how far; the live `EntryMessage` above it says what is happening. An `amount` is a status, so its change is heard too.
|
|
55
55
|
*/
|
|
56
|
-
export function EntryProgress({ fraction, count, className, }) {
|
|
56
|
+
export function EntryProgress({ fraction, amount, count, className, }) {
|
|
57
57
|
const width = Math.min(1, Math.max(0, fraction));
|
|
58
|
-
|
|
58
|
+
const under = amount ?? count;
|
|
59
|
+
return (_jsxs("div", { className: cn("nc-entry-progress", className), children: [_jsx("div", { "aria-valuemax": 100, "aria-valuemin": 0, "aria-valuenow": Math.floor(width * 100), className: "nc-entry-progress-track", role: "progressbar", children: _jsx("div", { className: "nc-entry-progress-value", style: { width: `${width * 100}%` } }) }), under ? (_jsx("span", { className: "nc-entry-progress-count", role: "status", children: under })) : null] }));
|
|
59
60
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { type ModelMarkProps } from "./model-mark.js";
|
|
2
3
|
/**
|
|
3
4
|
* The maker prefix an OpenRouter-style id carries, e.g. `"x-ai"` in
|
|
@@ -5,12 +6,22 @@ import { type ModelMarkProps } from "./model-mark.js";
|
|
|
5
6
|
* back to its neutral tile.
|
|
6
7
|
*/
|
|
7
8
|
export declare function modelAuthor(model: string): string;
|
|
9
|
+
export type ModelNameTable = ReadonlyMap<string, string>;
|
|
8
10
|
/**
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
11
|
-
*
|
|
11
|
+
* The names a product's own catalogue gives its models, for every `ModelIdentity` and
|
|
12
|
+
* `ModelSelect` below. A server layout passes the table unawaited, as a promise, so its static
|
|
13
|
+
* shell never waits for the catalogue; a model then draws once the table arrives.
|
|
12
14
|
*/
|
|
13
|
-
export declare function
|
|
15
|
+
export declare function ModelNames({ names, children, }: {
|
|
16
|
+
names: ModelNameTable | Promise<ModelNameTable>;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* The one name form a model is read by, as a function of its id: the name the product's catalogue
|
|
21
|
+
* gives it through `ModelNames`, otherwise the id without its maker prefix, since the mark beside
|
|
22
|
+
* it already says who made it and the muted maker repeats it in words.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useModelName(): (model: string) => string;
|
|
14
25
|
/** ModelMark's props, the mark's `size` among them, with the model's id in place of its author. */
|
|
15
26
|
export type ModelIdentityProps = Omit<ModelMarkProps, "author" | "name"> & {
|
|
16
27
|
model: string;
|
|
@@ -22,9 +33,10 @@ export type ModelIdentityProps = Omit<ModelMarkProps, "author" | "name"> & {
|
|
|
22
33
|
*
|
|
23
34
|
* Callers pass the id and nothing else about its shape — the split, the name
|
|
24
35
|
* form and the mark all belong here, so a ranked list, a routing table and a
|
|
25
|
-
* settings row cannot drift into three readings of the same model.
|
|
26
|
-
*
|
|
27
|
-
*
|
|
36
|
+
* settings row cannot drift into three readings of the same model. The name is
|
|
37
|
+
* the one the product's catalogue gives the model, through `ModelNames`. A
|
|
38
|
+
* product whose runtime names its models itself, as Hermes does in Nadia, passes
|
|
39
|
+
* that `name` so a model reads the same in its settings as in its chat.
|
|
28
40
|
*
|
|
29
41
|
* @family Status
|
|
30
42
|
* @when Any place a model is shown: a ranked list, a routing table, a settings row, an option in
|
|
@@ -33,8 +45,8 @@ export type ModelIdentityProps = Omit<ModelMarkProps, "author" | "name"> & {
|
|
|
33
45
|
* `ModelSelect`.
|
|
34
46
|
* @behaviour The caller passes the id and nothing else about its shape: the split, the name form
|
|
35
47
|
* and the mark all belong here. An id with no maker prefix falls back to the neutral tile.
|
|
36
|
-
* @words The
|
|
37
|
-
* maker prefix; a product whose runtime names models passes that `name`.
|
|
48
|
+
* @words The name the product's catalogue gives the model through `ModelNames` (*Claude Opus 5*),
|
|
49
|
+
* else the id without its maker prefix; a product whose runtime names models passes that `name`.
|
|
38
50
|
* @access The name is text; the mark beside it is decorative.
|
|
39
51
|
*/
|
|
40
52
|
export declare function ModelIdentity({ model, name, ...props }: ModelIdentityProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-identity.d.ts","sourceRoot":"","sources":["../../src/components/model-identity.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-identity.d.ts","sourceRoot":"","sources":["../../src/components/model-identity.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAIzD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAChD,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAIxD;AAED,mGAAmG;AACnG,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,MAAM,CAAC,GAAG;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAG1E"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, use } from "react";
|
|
2
4
|
import { ModelMark } from "./model-mark.js";
|
|
3
5
|
/**
|
|
4
6
|
* The maker prefix an OpenRouter-style id carries, e.g. `"x-ai"` in
|
|
@@ -9,36 +11,24 @@ export function modelAuthor(model) {
|
|
|
9
11
|
const separator = model.indexOf("/");
|
|
10
12
|
return separator === -1 ? "" : model.slice(0, separator);
|
|
11
13
|
}
|
|
12
|
-
const
|
|
13
|
-
["anthropic/claude-fable-5.1", "Claude Fable 5.1"],
|
|
14
|
-
["anthropic/claude-haiku-5.5", "Claude Haiku 5.5"],
|
|
15
|
-
["anthropic/claude-opus-5", "Claude Opus 5"],
|
|
16
|
-
["anthropic/claude-opus-5.5", "Claude Opus 5.5"],
|
|
17
|
-
["anthropic/claude-sonnet-5", "Claude Sonnet 5"],
|
|
18
|
-
["anthropic/claude-sonnet-5.5", "Claude Sonnet 5.5"],
|
|
19
|
-
["deepseek/deepseek-v4.1-flash", "DeepSeek V4.1 Flash"],
|
|
20
|
-
["google/gemini-3.1-flash-lite", "Gemini 3.1 Flash Lite"],
|
|
21
|
-
["google/gemini-3.1-pro-preview", "Gemini 3.1 Pro Preview"],
|
|
22
|
-
["google/gemini-3.8-flash", "Gemini 3.8 Flash"],
|
|
23
|
-
["mistral/mistral-large-4", "Mistral Large 4"],
|
|
24
|
-
["moonshotai/kimi-k3", "Kimi K3"],
|
|
25
|
-
["openai/gpt-5.6-luna", "GPT-5.6 Luna"],
|
|
26
|
-
["openai/gpt-5.6-sol", "GPT-5.6 Sol"],
|
|
27
|
-
["openai/gpt-6-luna", "GPT-6 Luna"],
|
|
28
|
-
["openai/gpt-6.1-sol", "GPT-6.1 Sol"],
|
|
29
|
-
["x-ai/grok-4.5", "Grok 4.5"],
|
|
30
|
-
]);
|
|
14
|
+
const Names = createContext(null);
|
|
31
15
|
/**
|
|
32
|
-
* The
|
|
33
|
-
*
|
|
34
|
-
*
|
|
16
|
+
* The names a product's own catalogue gives its models, for every `ModelIdentity` and
|
|
17
|
+
* `ModelSelect` below. A server layout passes the table unawaited, as a promise, so its static
|
|
18
|
+
* shell never waits for the catalogue; a model then draws once the table arrives.
|
|
35
19
|
*/
|
|
36
|
-
export function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
20
|
+
export function ModelNames({ names, children, }) {
|
|
21
|
+
return _jsx(Names, { value: names, children: children });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The one name form a model is read by, as a function of its id: the name the product's catalogue
|
|
25
|
+
* gives it through `ModelNames`, otherwise the id without its maker prefix, since the mark beside
|
|
26
|
+
* it already says who made it and the muted maker repeats it in words.
|
|
27
|
+
*/
|
|
28
|
+
export function useModelName() {
|
|
29
|
+
const given = use(Names);
|
|
30
|
+
const names = given && "then" in given ? use(given) : given;
|
|
31
|
+
return (model) => names?.get(model) ?? model.slice(model.indexOf("/") + 1);
|
|
42
32
|
}
|
|
43
33
|
/**
|
|
44
34
|
* A model as every surface reads it: the maker's mark, one name, the muted
|
|
@@ -46,9 +36,10 @@ export function modelDisplayName(model) {
|
|
|
46
36
|
*
|
|
47
37
|
* Callers pass the id and nothing else about its shape — the split, the name
|
|
48
38
|
* form and the mark all belong here, so a ranked list, a routing table and a
|
|
49
|
-
* settings row cannot drift into three readings of the same model.
|
|
50
|
-
*
|
|
51
|
-
*
|
|
39
|
+
* settings row cannot drift into three readings of the same model. The name is
|
|
40
|
+
* the one the product's catalogue gives the model, through `ModelNames`. A
|
|
41
|
+
* product whose runtime names its models itself, as Hermes does in Nadia, passes
|
|
42
|
+
* that `name` so a model reads the same in its settings as in its chat.
|
|
52
43
|
*
|
|
53
44
|
* @family Status
|
|
54
45
|
* @when Any place a model is shown: a ranked list, a routing table, a settings row, an option in
|
|
@@ -57,10 +48,11 @@ export function modelDisplayName(model) {
|
|
|
57
48
|
* `ModelSelect`.
|
|
58
49
|
* @behaviour The caller passes the id and nothing else about its shape: the split, the name form
|
|
59
50
|
* and the mark all belong here. An id with no maker prefix falls back to the neutral tile.
|
|
60
|
-
* @words The
|
|
61
|
-
* maker prefix; a product whose runtime names models passes that `name`.
|
|
51
|
+
* @words The name the product's catalogue gives the model through `ModelNames` (*Claude Opus 5*),
|
|
52
|
+
* else the id without its maker prefix; a product whose runtime names models passes that `name`.
|
|
62
53
|
* @access The name is text; the mark beside it is decorative.
|
|
63
54
|
*/
|
|
64
55
|
export function ModelIdentity({ model, name, ...props }) {
|
|
65
|
-
|
|
56
|
+
const nameOf = useModelName();
|
|
57
|
+
return _jsx(ModelMark, { author: modelAuthor(model), name: name ?? nameOf(model), ...props });
|
|
66
58
|
}
|
|
@@ -43,6 +43,7 @@ type ProgressStop = {
|
|
|
43
43
|
* the bar. The fill moves only when the reading changes, on `open`; still under reduced motion. The
|
|
44
44
|
* printed value is always the live reading.
|
|
45
45
|
* "Use stops for genuine multi-stage work and label the stage next to the bar (`Step 2 of 4 · Building`); a stop with no label is decorative noise." (https://vercel.com/geist/progress)
|
|
46
|
+
* Ours: the stage's name stands beside the bar and never its number, "Matching products", not "Step 2 of 3": the bar and its stops already say how far (owner ruling, 20 November 2026).
|
|
46
47
|
* @words "Pair the bar with text naming the work and units: `Uploading 12 of 30 files`, `Building · 1.2 GB / 4 GB`. The bar alone doesn’t say what’s progressing." (https://vercel.com/geist/progress)
|
|
47
48
|
* "Don’t append `successfully` or `complete` once the bar fills; swap to a completion state (toast, success row, redirect)." (https://vercel.com/geist/progress)
|
|
48
49
|
* "For long operations, name the work in the surrounding copy (`Building deployment…`) instead of leaving a bare percentage." (https://vercel.com/geist/progress)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAO,KA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;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAO,EACP,GAAS,EACT,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,IAAgB,EAChB,IAAW,EACX,cAAc,EACd,KAAK,EACL,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,iBAAiB,GAAG,OAAO,CAAC,GAC/E,YAAY,GAAG;IACb,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACjC,+BAkDF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,+BAc5E;AAMD,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK,+BA8B3F;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,+BAQ5E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,+BAQ5E;AAED,OAAO,EACL,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,yBAAyB,GAC1B,CAAC;AACF,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -96,6 +96,7 @@ const ProgressStateContext = createContext({
|
|
|
96
96
|
* the bar. The fill moves only when the reading changes, on `open`; still under reduced motion. The
|
|
97
97
|
* printed value is always the live reading.
|
|
98
98
|
* "Use stops for genuine multi-stage work and label the stage next to the bar (`Step 2 of 4 · Building`); a stop with no label is decorative noise." (https://vercel.com/geist/progress)
|
|
99
|
+
* Ours: the stage's name stands beside the bar and never its number, "Matching products", not "Step 2 of 3": the bar and its stops already say how far (owner ruling, 20 November 2026).
|
|
99
100
|
* @words "Pair the bar with text naming the work and units: `Uploading 12 of 30 files`, `Building · 1.2 GB / 4 GB`. The bar alone doesn’t say what’s progressing." (https://vercel.com/geist/progress)
|
|
100
101
|
* "Don’t append `successfully` or `complete` once the bar fills; swap to a completion state (toast, success row, redirect)." (https://vercel.com/geist/progress)
|
|
101
102
|
* "For long operations, name the work in the surrounding copy (`Building deployment…`) instead of leaving a bare percentage." (https://vercel.com/geist/progress)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/choices.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"choices.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/choices.tsx"],"names":[],"mappings":"AA0DA,iBAAS,sBAAsB,gCAc9B;AAED,iBAAS,gBAAgB,gCAgCxB;AAED,iBAAS,mBAAmB,gCA+B3B;AAED,iBAAS,uBAAuB,gCAe/B;AAED,iBAAS,sBAAsB,gCAqF9B;AAED,iBAAS,mBAAmB,gCAoC3B;AAID,iBAAS,wBAAwB,gCA8DhC;AAED,iBAAS,cAAc,gCA2CtB;AAED,iBAAS,yBAAyB,gCAUjC;AAED,iBAAS,yBAAyB,gCAQjC;AAED,iBAAS,kBAAkB,gCAsE1B;AAED,iBAAS,gBAAgB,gCAoCxB;AAED,iBAAS,cAAc,gCAgDtB;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAyBO,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Clock, Kanban, LayoutGrid, List, Pin } from "lucide-react";
|
|
4
4
|
import { useId, useState } from "react";
|
|
5
5
|
import { ModelSelect, SegmentedChoice } from "../../components/agent-profile.js";
|
|
6
|
+
import { ModelNames } from "../../components/model-identity.js";
|
|
6
7
|
import { Button } from "../../components/button.js";
|
|
7
8
|
import { Checkbox } from "../../components/checkbox.js";
|
|
8
9
|
import { ChoiceboxGroup, ChoiceboxGroupItem } from "../../components/choicebox.js";
|
|
@@ -46,7 +47,15 @@ function ComboboxSpecimen() {
|
|
|
46
47
|
}
|
|
47
48
|
function ModelSelectSpecimen() {
|
|
48
49
|
const [model, setModel] = useState("anthropic/claude-opus-5");
|
|
49
|
-
return (_jsxs("div", { className: "grid max-w-sm gap-2", children: [_jsx(Label, { htmlFor: "showcase-model", id: "showcase-model-label", children: "Model" }), _jsx(
|
|
50
|
+
return (_jsxs("div", { className: "grid max-w-sm gap-2", children: [_jsx(Label, { htmlFor: "showcase-model", id: "showcase-model-label", children: "Model" }), _jsx(ModelNames, { names: new Map([
|
|
51
|
+
["anthropic/claude-opus-5", "Claude Opus 5"],
|
|
52
|
+
["openai/gpt-5.6-sol", "GPT-5.6 Sol"],
|
|
53
|
+
["google/gemini-3.1-flash-lite", "Gemini 3.1 Flash Lite"],
|
|
54
|
+
]), children: _jsx(ModelSelect, { "aria-labelledby": "showcase-model-label", id: "showcase-model", onValueChange: setModel, options: [
|
|
55
|
+
"anthropic/claude-opus-5",
|
|
56
|
+
"openai/gpt-5.6-sol",
|
|
57
|
+
"google/gemini-3.1-flash-lite",
|
|
58
|
+
], placeholder: "Choose a model", value: model }) })] }));
|
|
50
59
|
}
|
|
51
60
|
function SegmentedChoiceSpecimen() {
|
|
52
61
|
const [effort, setEffort] = useState("default");
|
|
@@ -148,7 +148,7 @@ const IMPORT_STOPS = [
|
|
|
148
148
|
{ value: 3, label: "Saving the price list" },
|
|
149
149
|
];
|
|
150
150
|
function ProgressSpecimen() {
|
|
151
|
-
return (_jsxs("div", { className: "grid max-w-md gap-6", children: [_jsxs(Progress, { "aria-labelledby": "showcase-import-contacts", max: 40, value: 27, children: [_jsx(ProgressLabel, { id: "showcase-import-contacts", children: "Importing contacts" }), _jsx(ProgressValue, { children: () => "27 of 40" })] }), _jsxs(Progress, { "aria-labelledby": "showcase-import-prices", max: 3, stops: IMPORT_STOPS, value: 2, children: [_jsx(ProgressLabel, { id: "showcase-import-prices", children: "Importing the price list" }), _jsx(ProgressValue, { children: () => "
|
|
151
|
+
return (_jsxs("div", { className: "grid max-w-md gap-6", children: [_jsxs(Progress, { "aria-labelledby": "showcase-import-contacts", max: 40, value: 27, children: [_jsx(ProgressLabel, { id: "showcase-import-contacts", children: "Importing contacts" }), _jsx(ProgressValue, { children: () => "27 of 40" })] }), _jsxs(Progress, { "aria-labelledby": "showcase-import-prices", max: 3, stops: IMPORT_STOPS, value: 2, children: [_jsx(ProgressLabel, { id: "showcase-import-prices", children: "Importing the price list" }), _jsx(ProgressValue, { children: () => "Matching products" })] }), _jsxs(Progress, { "aria-labelledby": "showcase-invoices-filed", max: 12, tone: "success", value: 12, children: [_jsx(ProgressLabel, { id: "showcase-invoices-filed", children: "Invoices filed" }), _jsx(ProgressValue, { children: () => "12 of 12" })] }), _jsxs(Progress, { "aria-labelledby": "showcase-included-runs", max: 1000, tone: "secondary", value: 620, children: [_jsx(ProgressLabel, { id: "showcase-included-runs", children: "Included runs" }), _jsx(ProgressValue, { children: () => "620 of 1,000" })] })] }));
|
|
152
152
|
}
|
|
153
153
|
function DisclosureRowSpecimen() {
|
|
154
154
|
const [open, setOpen] = useState(false);
|
|
@@ -54,7 +54,7 @@ function SkeletonRegionSpecimen() {
|
|
|
54
54
|
export const FEEDBACK = {
|
|
55
55
|
Alert: () => (_jsxs("div", { className: "grid max-w-lg gap-3", children: [_jsxs(Alert, { variant: "info", children: [_jsx(Info, { "aria-hidden": "true" }), _jsx(AlertTitle, { children: "Approvals are on" }), _jsx(AlertDescription, { children: "Payments over \u20AC 500 wait for you." })] }), _jsxs(Alert, { variant: "warning", children: [_jsx(TriangleAlert, { "aria-hidden": "true" }), _jsx(AlertTitle, { children: "WhatsApp needs a new code" }), _jsx(AlertDescription, { children: "Messages wait until it is paired again." })] }), _jsxs(Alert, { variant: "destructive", children: [_jsx(TriangleAlert, { "aria-hidden": "true" }), _jsx(AlertTitle, { children: "Payment failed" }), _jsx(AlertDescription, { children: "Agents stop at the end of the billing cycle." })] })] })),
|
|
56
56
|
EmptyState: EmptyStateSpecimen,
|
|
57
|
-
EntryProgress: () => (_jsx("div", { className: "max-w-sm", children: _jsx(EntryProgress, {
|
|
57
|
+
EntryProgress: () => (_jsx("div", { className: "max-w-sm", children: _jsx(EntryProgress, { amount: "27 of 40 files", fraction: 27 / 40 }) })),
|
|
58
58
|
HoverCard: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-6", children: [_jsx(RecordTime, { at: "2026-10-14T07:00:00Z", now: NOW, phrase: (when) => `Updated ${when}`, timeZone: "Europe/Rome" }), _jsx(RecordTime, { at: null, mode: "clock", children: "Pending" }), _jsxs(HoverCard, { children: [_jsx(HoverCardTrigger, { render: _jsx("button", { className: "text-sm underline decoration-dotted", type: "button" }), children: "Portal" }), _jsx(HoverCardContent, { children: _jsx(HoverCardSummary, { action: { label: "Open project", href: "#" }, detail: "nadicode / portal", facts: [
|
|
59
59
|
{ label: "Plan", value: "Pro" },
|
|
60
60
|
{ label: "Region", value: "Frankfurt" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"AAoEA,iBAAS,oBAAoB,gCAiB5B;AAkBD,iBAAS,aAAa,gCA2DrB;AAWD,iBAAS,gBAAgB,gCAkExB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"AAoEA,iBAAS,oBAAoB,gCAiB5B;AAkBD,iBAAS,aAAa,gCA2DrB;AAWD,iBAAS,gBAAgB,gCAkExB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CA8TQ,CAAC"}
|
|
@@ -17,7 +17,7 @@ import { Gauge } from "../../components/gauge.js";
|
|
|
17
17
|
import { AgentIcon, ApprovalsIcon, ArchIcon } from "../../components/house-icons.js";
|
|
18
18
|
import { IconTile } from "../../components/icon-tile.js";
|
|
19
19
|
import { IdentityMark } from "../../components/identity-mark.js";
|
|
20
|
-
import { ModelIdentity } from "../../components/model-identity.js";
|
|
20
|
+
import { ModelIdentity, ModelNames } from "../../components/model-identity.js";
|
|
21
21
|
import { ModelMark } from "../../components/model-mark.js";
|
|
22
22
|
import { PlatformMark } from "../../components/platform-mark.js";
|
|
23
23
|
import { ProgressChecklist } from "../../components/progress-checklist.js";
|
|
@@ -78,7 +78,10 @@ export const STATUS = {
|
|
|
78
78
|
Gauge: GaugeSpecimen,
|
|
79
79
|
IconTile: () => (_jsxs("div", { className: "grid gap-4", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [_jsx(IconTile, { icon: GaugeIcon, tone: "blue" }), _jsx(IconTile, { icon: Coins, tone: "purple" }), _jsx(IconTile, { icon: AudioLines, tone: "pink" }), _jsx(IconTile, { icon: HandCoins, tone: "orange" }), _jsx(IconTile, { icon: Boxes, tone: "teal" }), _jsx(IconTile, { icon: CreditCard })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [_jsx(IconTile, { icon: OctagonAlert, label: "Blocking", tone: "red" }), _jsx(IconTile, { icon: TriangleAlert, label: "Warning", tone: "yellow" }), _jsx(IconTile, { icon: Info, label: "Info" })] }), _jsxs("div", { className: "flex flex-wrap items-end gap-3", children: [_jsx(IconTile, { icon: Coins, size: 24, tone: "purple" }), _jsx(IconTile, { icon: Coins, size: 32, tone: "purple" }), _jsx(IconTile, { icon: Coins, size: 40, tone: "purple" }), _jsx(IconTile, { icon: Lock, size: 54 })] })] })),
|
|
80
80
|
IdentityMark: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [_jsx(IdentityMark, { kind: "agent", orb: { form: "orbit", color: COBALTO } }), _jsx(IdentityMark, { app: "gmail", kind: "app", logo: appLogo("gmail") }), _jsx(IdentityMark, { kind: "company", name: "Acme Service & Parts" }), _jsx(IdentityMark, { kind: "company", logo: SAMPLE_LOGO, name: "Studio Rossi" }), _jsx(IdentityMark, { kind: "company", logo: SAMPLE_ICON, name: "Polaris Studio" }), _jsx(IdentityMark, { kind: "person", name: "Ada Rossi" }), _jsx(IdentityMark, { icon: Mail, kind: "record" }), _jsx(IdentityMark, { icon: Wrench, kind: "record", size: 40 })] })),
|
|
81
|
-
ModelIdentity: () => (
|
|
81
|
+
ModelIdentity: () => (_jsx(ModelNames, { names: new Map([
|
|
82
|
+
["anthropic/claude-opus-5", "Claude Opus 5"],
|
|
83
|
+
["openai/gpt-5.6-sol", "GPT-5.6 Sol"],
|
|
84
|
+
]), children: _jsxs("div", { className: "grid gap-2", children: [_jsx(ModelIdentity, { model: "anthropic/claude-opus-5" }), _jsx(ModelIdentity, { model: "openai/gpt-5.6-sol" }), _jsx(ModelIdentity, { model: "x-ai/grok-4.5" })] }) })),
|
|
82
85
|
ModelMark: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [_jsx(ModelMark, { author: "anthropic", name: "Claude Opus 5" }), _jsx(ModelMark, { author: "mistralai", label: "Mistral" })] })),
|
|
83
86
|
PlatformMark: () => (_jsx("div", { className: "flex flex-wrap items-center gap-4 text-sm", children: ["google", "microsoft", "apple", "telegram", "whatsapp", "slack"].map((platform) => (_jsxs("span", { className: "flex items-center gap-2 capitalize", children: [_jsx(PlatformMark, { platform: platform, size: 20 }), platform] }, platform))) })),
|
|
84
87
|
ProgressChecklist: () => (_jsx(ProgressChecklist, { closeLabel: "Close", description: "What Studio Rossi still needs before its Agents work for it.", doneLabel: "Done", finishLabel: "Done", label: "Studio Rossi's setup, 1 of 3 done", steps: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,eAAe,GACf,YAAY,GACZ,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,UAAU,GACV,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,aAAa,GACb,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,UAAU,GACV,SAAS,GACT,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,UAAU,GACV,cAAc,GACd,eAAe,GACf,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AAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,eAAe,GACf,YAAY,GACZ,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,UAAU,GACV,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,QAAQ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EF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAw+F1C,CAAC"}
|
|
@@ -726,7 +726,7 @@ export const USAGE = [
|
|
|
726
726
|
when: "Choosing the model an Agent runs on, from the models the product offers.",
|
|
727
727
|
instead: "A model shown, not chosen, is `ModelIdentity`. A list people search across many makers is a `Combobox`.",
|
|
728
728
|
behaviour: "A `Select` whose trigger and every option read the model as `ModelIdentity` does: the maker's mark, one name, the muted maker. It shows `placeholder` until a model is chosen.",
|
|
729
|
-
words: "Model names
|
|
729
|
+
words: "Model names are the ones `ModelIdentity` reads, the product's catalogue's through `ModelNames`, or the product's own `nameOf` when its runtime names models itself. The placeholder says what to choose: *Choose a model*.",
|
|
730
730
|
access: "The trigger takes a visible label; listbox and option roles from Base UI; the marks are decorative beside the names.",
|
|
731
731
|
},
|
|
732
732
|
{
|
|
@@ -990,7 +990,7 @@ export const USAGE = [
|
|
|
990
990
|
when: "Any place a model is shown: a ranked list, a routing table, a settings row, an option in `ModelSelect`.",
|
|
991
991
|
instead: "A maker's mark with a name already in hand is `ModelMark`. Choosing a model is `ModelSelect`.",
|
|
992
992
|
behaviour: "The caller passes the id and nothing else about its shape: the split, the name form and the mark all belong here. An id with no maker prefix falls back to the neutral tile.",
|
|
993
|
-
words: "The
|
|
993
|
+
words: "The name the product's catalogue gives the model through `ModelNames` (*Claude Opus 5*), else the id without its maker prefix; a product whose runtime names models passes that `name`.",
|
|
994
994
|
access: "The name is text; the mark beside it is decorative.",
|
|
995
995
|
},
|
|
996
996
|
{
|
|
@@ -1539,7 +1539,7 @@ export const USAGE = [
|
|
|
1539
1539
|
summary: "A known amount against a real maximum, with its label and value.",
|
|
1540
1540
|
when: '"Determinate work whose total is knowable, like file uploads, multi-step setup, build steps, or batch deletions." (https://vercel.com/geist/progress) "Use `max` for the real ceiling (`max={files.length}`), not a hardcoded `100`. The component computes the percentage from `value / max`." (https://vercel.com/geist/progress) Ours: it always has a `value` and a name, as `aria-label` or as `aria-labelledby` pointing at its `ProgressLabel`, and the type asks for both. `stops` mark genuine stages, each named. `size` is `md` (10 px), or `sm` (4 px) inside a table cell or a row. `ProgressLabel` and `ProgressValue` go inside it as children; it draws `ProgressTrack` and `ProgressIndicator` itself.',
|
|
1541
1541
|
instead: '"For short indeterminate waits (~1–3s), use `Spinner`; for inline copy like `Saving`, use `Loading Dots`." (https://vercel.com/geist/progress) Ours: neither exists; an unknown wait is the waiting line, never a bar with an invented percentage. "For usage against a quota or ratio, use `Gauge`; the circle reads as health, the bar reads as progress." (https://vercel.com/geist/progress) Ours: usage against a quota is this bar with its figure, drawn in the Portal by `MeterReading` and inside an object\'s card by `FigureRow`. A run\'s consumption in a dense spot is a `UsageMeter`. A single figure is a `KpiCard`.',
|
|
1542
|
-
behaviour: '"Threshold colors via `dynamic colors` should mirror the same breakpoints used elsewhere (warning at the same threshold a quota note fires)." (https://vercel.com/geist/progress) Ours: colour sits on the fill alone: the track is always the neutral line colour and the words beside the bar stay neutral. The fill is neutral by default; `tone` is that threshold (amber where the note fires, red past the cap), never derived from the value; it is `default`, `secondary`, `success`, `warning`, `critical` or `info`. Past the maximum the bar fills and turns red, whatever the tone. The fill\'s end is rounded, and square when `stops` cut the bar. The fill moves only when the reading changes, on `open`; still under reduced motion. The printed value is always the live reading. "Use stops for genuine multi-stage work and label the stage next to the bar (`Step 2 of 4 · Building`); a stop with no label is decorative noise." (https://vercel.com/geist/progress)',
|
|
1542
|
+
behaviour: '"Threshold colors via `dynamic colors` should mirror the same breakpoints used elsewhere (warning at the same threshold a quota note fires)." (https://vercel.com/geist/progress) Ours: colour sits on the fill alone: the track is always the neutral line colour and the words beside the bar stay neutral. The fill is neutral by default; `tone` is that threshold (amber where the note fires, red past the cap), never derived from the value; it is `default`, `secondary`, `success`, `warning`, `critical` or `info`. Past the maximum the bar fills and turns red, whatever the tone. The fill\'s end is rounded, and square when `stops` cut the bar. The fill moves only when the reading changes, on `open`; still under reduced motion. The printed value is always the live reading. "Use stops for genuine multi-stage work and label the stage next to the bar (`Step 2 of 4 · Building`); a stop with no label is decorative noise." (https://vercel.com/geist/progress) Ours: the stage\'s name stands beside the bar and never its number, "Matching products", not "Step 2 of 3": the bar and its stops already say how far (owner ruling, 20 November 2026).',
|
|
1543
1543
|
words: '"Pair the bar with text naming the work and units: `Uploading 12 of 30 files`, `Building · 1.2 GB / 4 GB`. The bar alone doesn’t say what’s progressing." (https://vercel.com/geist/progress) "Don’t append `successfully` or `complete` once the bar fills; swap to a completion state (toast, success row, redirect)." (https://vercel.com/geist/progress) "For long operations, name the work in the surrounding copy (`Building deployment…`) instead of leaving a bare percentage." (https://vercel.com/geist/progress) Ours: print the work and its unit in `ProgressValue`.',
|
|
1544
1544
|
access: '"Component sets `role="progressbar"` with `aria-valuemin`, `aria-valuemax`, and `aria-valuenow`; pass an accessible name through `aria-label` on the wrapper or a sibling `<label>` tied with `aria-labelledby`." (https://vercel.com/geist/progress) "Throttle `aria-valuenow` updates to roughly once a second so screen readers don’t announce every increment of a fast upload." (https://vercel.com/geist/progress) Ours: the printed value is live, and the value it announces follows it at most once a second. "Stops accept their own `ariaLabel`; name each one (`Build complete`, `Tests complete`) so the bar is navigable without sight." (https://vercel.com/geist/progress) Ours: a stop\'s name is its `label`. With `stops`, the stage reached leads the spoken value; a stop is not focusable, because a progressbar\'s children are presentational.',
|
|
1545
1545
|
},
|
|
@@ -1679,12 +1679,12 @@ export const USAGE = [
|
|
|
1679
1679
|
name: "EntryProgress",
|
|
1680
1680
|
module: "entry-scene",
|
|
1681
1681
|
family: "Feedback",
|
|
1682
|
-
summary: "Measured work on an entry screen: a 2 px line
|
|
1683
|
-
when: "Work on an entry screen whose progress is measured: downloading an update,
|
|
1684
|
-
instead: 'Work whose length is unknown is a WaitingLine; measured work inside the product is a Progress
|
|
1685
|
-
behaviour: "The line keeps the measured fraction, clamped between empty and full
|
|
1686
|
-
words: 'The
|
|
1687
|
-
access: "The
|
|
1682
|
+
summary: "Measured work on an entry screen: a 2 px line under the words that say what is happening now, with a measured amount under it when there is one.",
|
|
1683
|
+
when: "Work on an entry screen whose progress is measured: downloading an update, starting Nadia or Alveare Server.",
|
|
1684
|
+
instead: 'Work whose length is unknown is a WaitingLine; measured work inside the product is a Progress. What is happening now is the `EntryMessage` above the line, in the progressive ("Starting the chat service"), never a list of every step (owner ruling, 17 November 2026).',
|
|
1685
|
+
behaviour: "The line above names what is happening now; the bar says how far. The bar keeps the measured fraction, clamped between empty and full, and moves only when the measured value moves. Under it stands the `amount` when the caller passes one; with none, nothing stands under the line.",
|
|
1686
|
+
words: 'The `amount` is a measured quantity in the product\'s words, in tabular figures: "12 of 40 MB". Never a step count such as "Step 2 of 3" (owner ruling, 20 November 2026), and never a percentage.',
|
|
1687
|
+
access: "The bar is a progressbar whose value is the fraction as a whole number of a hundred, so assistive technology can read how far; the live `EntryMessage` above it says what is happening. An `amount` is a status, so its change is heard too.",
|
|
1688
1688
|
},
|
|
1689
1689
|
{
|
|
1690
1690
|
name: "HoverCard",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.264",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@headless-tree/react": "1.8.0",
|
|
83
83
|
"@iconify-icons/logos": "^2.0.3",
|
|
84
84
|
"@iconify/react": "^6.0.2",
|
|
85
|
-
"@nadicodeai/design-system": "12.1.
|
|
85
|
+
"@nadicodeai/design-system": "12.1.264",
|
|
86
86
|
"@tanstack/react-table": "^9.3.1",
|
|
87
87
|
"@vgpu/wgsl": "0.6.0",
|
|
88
88
|
"class-variance-authority": "^0.7.1",
|