@nadicodeai/ui 12.1.263 → 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.
@@ -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 come from `modelDisplayName`, or the product's own `nameOf` when its runtime
26
- * names models itself. The placeholder says what to choose: *Choose a model*.
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,I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AAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,MAAM,CAAC,+BA8B9B"}
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Radio 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, modelDisplayName } from "./model-identity.js";
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 come from `modelDisplayName`, or the product's own `nameOf` when its runtime
21
- * names models itself. The placeholder says what to choose: *Choose a model*.
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) ?? modelDisplayName(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) ?? modelDisplayName(model), size: 20 }) }, 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.
@@ -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 one name form a model is read by: the maker's own spelling when the
10
- * table has it, otherwise the id without its maker prefix, since the mark
11
- * beside it already says who made it and the muted maker repeats it in words.
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 modelDisplayName(model: string): string;
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. A product
26
- * whose runtime names its models itself, as Hermes does in Nadia, passes that
27
- * `name` so a model reads the same in its settings as in its chat.
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 maker's own spelling when the table has it (*Claude Opus 5*), else the id without its
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":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjD;AAsBD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKtD;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;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAI1E"}
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 MODEL_NAMES = new Map([
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 one name form a model is read by: the maker's own spelling when the
33
- * table has it, otherwise the id without its maker prefix, since the mark
34
- * beside it already says who made it and the muted maker repeats it in words.
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 modelDisplayName(model) {
37
- const named = MODEL_NAMES.get(model);
38
- if (named !== undefined)
39
- return named;
40
- const separator = model.indexOf("/");
41
- return separator === -1 ? model : model.slice(separator + 1);
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. A product
50
- * whose runtime names its models itself, as Hermes does in Nadia, passes that
51
- * `name` so a model reads the same in its settings as in its chat.
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 maker's own spelling when the table has it (*Claude Opus 5*), else the id without its
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
- return (_jsx(ModelMark, { author: modelAuthor(model), name: name ?? modelDisplayName(model), ...props }));
56
+ const nameOf = useModelName();
57
+ return _jsx(ModelMark, { author: modelAuthor(model), name: name ?? nameOf(model), ...props });
66
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"choices.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/choices.tsx"],"names":[],"mappings":"AAyDA,iBAAS,sBAAsB,gCAc9B;AAED,iBAAS,gBAAgB,gCAgCxB;AAED,iBAAS,mBAAmB,gCAiB3B;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"}
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(ModelSelect, { "aria-labelledby": "showcase-model-label", id: "showcase-model", onValueChange: setModel, options: ["anthropic/claude-opus-5", "openai/gpt-5.6-sol", "google/gemini-3.1-flash-lite"], placeholder: "Choose a model", value: model })] }));
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");
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;CAqTQ,CAAC"}
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: () => (_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" })] })),
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: [
@@ -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 come from `modelDisplayName`, or the product's own `nameOf` when its runtime names models itself. The placeholder says what to choose: *Choose a model*.",
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 maker's own spelling when the table has it (*Claude Opus 5*), else the id without its maker prefix; a product whose runtime names models passes that `name`.",
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.263",
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.263",
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",