@nadicodeai/ui 12.1.128 → 12.1.129

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.
@@ -10,7 +10,7 @@ import { type StatusBadgeTone } from "./status-badge.js";
10
10
  * @instead An Agent as a record among others in a page's list is a RecordList row with an agent IdentityMark; an Agent's own page heads with ObjectPage.
11
11
  * @behaviour It is the row's presentation alone: the consumer owns the control around it (Nadia's button that opens the Agent, a scene's list item that opens nothing). The current row's name is set in 500. A state tone draws the state line as a small StatusBadge; without a tone it stays plain text. Narrow, the orb stands alone and the words stay for a screen reader; the consumer names it with its state line in a tooltip, as Nadia's list does. Only the orb moves in the list. The name is 14 px and the state line 12 px at every size. The drawn orb leaves about 10 px of its 64 px box empty, so at 64 px that empty edge overlaps the row's padding (6 px above and below, 4 px at the start) and the words stand 4 px from the box: the row hugs the visible orb and the name sits beside it, as beside a solid picture. In Nadia's list her orb is 64 px in her real state, and 40 px in the narrow column from 640 to 899 px.
12
12
  * @words The name, then one state line: what she is doing now ("Answering on Telegram", "Working") or what she is for ("Sorts requests"). The tone never says more than the line does. Nadia's list says "Working", "Idle" or "Needs you"; the badge marks a state that needs the person ("Needs you", a failed set-up), and the orb shows working by itself.
13
- * @access The orb is decorative; the name and the state line are the row's text, read by its control. StatusBadge owns its decorative mark, so the line carries its meaning.
13
+ * @access The orb is decorative; the name and the state line are the row's text, read by its control. StatusBadge owns its decorative shape, so the line carries its meaning.
14
14
  */
15
15
  export declare function AgentListRow({ className, color, current, form, motionKey, name, narrow, size, state, stateLine, stateTone, ...props }: Omit<React.ComponentProps<"span">, "color"> & {
16
16
  /** The pigment of the Agent's chosen form; Nadia's striped ribbon keeps her own. */
@@ -12,7 +12,7 @@ import { cn } from "../lib/utils.js";
12
12
  * @instead An Agent as a record among others in a page's list is a RecordList row with an agent IdentityMark; an Agent's own page heads with ObjectPage.
13
13
  * @behaviour It is the row's presentation alone: the consumer owns the control around it (Nadia's button that opens the Agent, a scene's list item that opens nothing). The current row's name is set in 500. A state tone draws the state line as a small StatusBadge; without a tone it stays plain text. Narrow, the orb stands alone and the words stay for a screen reader; the consumer names it with its state line in a tooltip, as Nadia's list does. Only the orb moves in the list. The name is 14 px and the state line 12 px at every size. The drawn orb leaves about 10 px of its 64 px box empty, so at 64 px that empty edge overlaps the row's padding (6 px above and below, 4 px at the start) and the words stand 4 px from the box: the row hugs the visible orb and the name sits beside it, as beside a solid picture. In Nadia's list her orb is 64 px in her real state, and 40 px in the narrow column from 640 to 899 px.
14
14
  * @words The name, then one state line: what she is doing now ("Answering on Telegram", "Working") or what she is for ("Sorts requests"). The tone never says more than the line does. Nadia's list says "Working", "Idle" or "Needs you"; the badge marks a state that needs the person ("Needs you", a failed set-up), and the orb shows working by itself.
15
- * @access The orb is decorative; the name and the state line are the row's text, read by its control. StatusBadge owns its decorative mark, so the line carries its meaning.
15
+ * @access The orb is decorative; the name and the state line are the row's text, read by its control. StatusBadge owns its decorative shape, so the line carries its meaning.
16
16
  */
17
17
  export function AgentListRow({ className, color, current = false, form, motionKey, name, narrow = false, size = 40, state = "idle", stateLine, stateTone, ...props }) {
18
18
  return (_jsxs("span", { className: cn("flex w-full min-w-0 items-center gap-3 text-left text-sm", size === 64 && "gap-1", narrow && "justify-center", className), "data-slot": "agent-list-row", "data-current": current || undefined, ...props, children: [_jsx(AgentOrb, { className: cn(size === 64 && "-my-1.5 -ml-1"), color: color, decorative: true, form: form, motionKey: motionKey, size: size, state: state }), _jsxs("span", { className: cn("grid min-w-0", narrow && "sr-only"), children: [_jsx("span", { className: cn("truncate text-foreground", current && "font-medium"), children: name }), stateLine ? (_jsx("span", { className: "flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground", children: stateTone ? (_jsx(StatusBadge, { label: stateLine, size: "sm", tone: stateTone })) : (_jsx("span", { className: "truncate", children: stateLine })) })) : null] })] }));
@@ -28,11 +28,12 @@ type BadgeProps = Omit<useRender.ComponentProps<"span">, "onClick" | "children"
28
28
  * type beside it: `sm` (20 px) next to small labels, `md` (24 px) in a row, `lg` (32 px) in a
29
29
  * header. The category fills (teal, purple, pink) name a kind.
30
30
  * @instead "For a colored dot without text, use `Status Dot`." (https://vercel.com/geist/badge)
31
- * Ours: status dots are not used; a state keeps its mark and word together in `StatusBadge`.
31
+ * Ours: a single dot is never a status; a state is `StatusBadge`, its tone's shape of dots and its
32
+ * word, with no pill.
32
33
  * "For clickable filter chips that toggle a query, use the `pill` variant or a small `Button`." (https://vercel.com/geist/badge)
33
34
  * Ours: there is no `pill` variant; a filter that toggles a query is a `Button` or
34
- * `CollectionFilters`. For a state use `StatusBadge`, which picks the tone and its mark: the gray,
35
- * green, red, amber and blue fills, soft or solid, are its alone. One categorical fact in a row is
35
+ * `CollectionFilters`. For a state use `StatusBadge`, which draws the tone as its shape; Badge has
36
+ * no gray, green, red, amber or blue fill. One categorical fact in a row is
36
37
  * a `Tag`. A change in a figure is a `TrendBadge`.
37
38
  * @behaviour "Badges are static labels." (https://vercel.com/geist/badge)
38
39
  * "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge)
@@ -45,11 +46,11 @@ type BadgeProps = Omit<useRender.ComponentProps<"span">, "onClick" | "children"
45
46
  * Ours: the badge is the `render` of a `TooltipTrigger` with `tabIndex={0}`, so keyboard and touch
46
47
  * users reach the limit it names.
47
48
  * "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge)
48
- * Ours: only `StatusBadge` carries a state, and it always draws its tone's mark.
49
+ * Ours: only `StatusBadge` carries a state, and it always draws its tone's shape.
49
50
  * "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge)
50
51
  * "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge)
51
- * Ours: those fills are `StatusBadge`'s, as the tones `success`, `danger`, `warning`, `info` and
52
- * `neutral`, with `emphasis` `subtle` or `solid`. `Badge` is a fixed-height pill (20, 24 or 32 px)
52
+ * Ours: those meanings are `StatusBadge`'s, as the tones `success`, `danger`, `warning`, `info` and
53
+ * `neutral`, each drawn as its shape. `Badge` is a fixed-height pill (20, 24 or 32 px)
53
54
  * with no border: colour sits on the fill and the word. A soft fill takes its hue's strong shade
54
55
  * for the word, `default` is the foreground colour inverted, and `outline` is neutral, a
55
56
  * page-colour fill held by a 1 px inset ring. With an icon, the left padding is 6, 8 or 12 px, so
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;;8EAuBlB,CAAC;AAEF,KAAK,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzE,KAAK,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,GACxF,YAAY,CAAC,OAAO,aAAa,CAAC,GAClC,CACI;IACE,QAAQ,EAAE,SAAS,CAAC;IACpB,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;CACf,CACJ,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,IAAW,EACX,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,UAAU,8FA0BZ;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;;8EAuBlB,CAAC;AAEF,KAAK,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzE,KAAK,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,GACxF,YAAY,CAAC,OAAO,aAAa,CAAC,GAClC,CACI;IACE,QAAQ,EAAE,SAAS,CAAC;IACpB,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;CACf,CACJ,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,IAAW,EACX,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,UAAU,8FA0BZ;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,CAAC"}
@@ -35,11 +35,12 @@ const badgeVariants = cva("group/badge inline-flex w-fit max-w-full shrink-0 ite
35
35
  * type beside it: `sm` (20 px) next to small labels, `md` (24 px) in a row, `lg` (32 px) in a
36
36
  * header. The category fills (teal, purple, pink) name a kind.
37
37
  * @instead "For a colored dot without text, use `Status Dot`." (https://vercel.com/geist/badge)
38
- * Ours: status dots are not used; a state keeps its mark and word together in `StatusBadge`.
38
+ * Ours: a single dot is never a status; a state is `StatusBadge`, its tone's shape of dots and its
39
+ * word, with no pill.
39
40
  * "For clickable filter chips that toggle a query, use the `pill` variant or a small `Button`." (https://vercel.com/geist/badge)
40
41
  * Ours: there is no `pill` variant; a filter that toggles a query is a `Button` or
41
- * `CollectionFilters`. For a state use `StatusBadge`, which picks the tone and its mark: the gray,
42
- * green, red, amber and blue fills, soft or solid, are its alone. One categorical fact in a row is
42
+ * `CollectionFilters`. For a state use `StatusBadge`, which draws the tone as its shape; Badge has
43
+ * no gray, green, red, amber or blue fill. One categorical fact in a row is
43
44
  * a `Tag`. A change in a figure is a `TrendBadge`.
44
45
  * @behaviour "Badges are static labels." (https://vercel.com/geist/badge)
45
46
  * "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge)
@@ -52,11 +53,11 @@ const badgeVariants = cva("group/badge inline-flex w-fit max-w-full shrink-0 ite
52
53
  * Ours: the badge is the `render` of a `TooltipTrigger` with `tabIndex={0}`, so keyboard and touch
53
54
  * users reach the limit it names.
54
55
  * "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge)
55
- * Ours: only `StatusBadge` carries a state, and it always draws its tone's mark.
56
+ * Ours: only `StatusBadge` carries a state, and it always draws its tone's shape.
56
57
  * "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge)
57
58
  * "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge)
58
- * Ours: those fills are `StatusBadge`'s, as the tones `success`, `danger`, `warning`, `info` and
59
- * `neutral`, with `emphasis` `subtle` or `solid`. `Badge` is a fixed-height pill (20, 24 or 32 px)
59
+ * Ours: those meanings are `StatusBadge`'s, as the tones `success`, `danger`, `warning`, `info` and
60
+ * `neutral`, each drawn as its shape. `Badge` is a fixed-height pill (20, 24 or 32 px)
60
61
  * with no border: colour sits on the fill and the word. A soft fill takes its hue's strong shade
61
62
  * for the word, `default` is the foreground colour inverted, and `outline` is neutral, a
62
63
  * page-colour fill held by a 1 px inset ring. With an icon, the left padding is 6, 8 or 12 px, so
@@ -1,56 +1,51 @@
1
1
  import type { ComponentProps } from "react";
2
- import { type BadgeSize } from "./badge.js";
3
2
  type StatusBadgeTone = "success" | "warning" | "danger" | "info" | "neutral";
4
- type StatusBadgeEmphasis = "subtle" | "solid";
3
+ type StatusBadgeSize = "sm" | "md" | "lg";
5
4
  type StatusBadgeProps = Omit<ComponentProps<"span">, "children" | "onClick"> & {
6
5
  tone: StatusBadgeTone;
7
6
  label: string;
8
- size?: BadgeSize;
9
- /** `subtle` in rows, tables, lists and menus; `solid` where the status stands on its own. */
10
- emphasis?: StatusBadgeEmphasis;
7
+ size?: StatusBadgeSize;
11
8
  /** How long the status has held, set after the word in tabular figures. */
12
9
  since?: string;
13
10
  };
14
11
  /**
15
- * A record's state: a mark and a word in one of five tones.
12
+ * A record's state: a shape of dots and a word, in one of five tones.
16
13
  *
17
14
  * @family Status
18
15
  * @when "Use Badge for short, scannable metadata that sits next to the thing it describes: status, plan tier, environment, or role." (https://vercel.com/geist/badge)
19
16
  * Ours: a record's state, when it sets the row apart: failed, waiting on a person, a step in
20
17
  * motion, paused, connected. Gray is the default and every terminal state that needs no action;
21
18
  * green is healthy or complete; red is unusable or failed; amber is waiting on a person's
22
- * decision; blue is a step in motion.
19
+ * decision; blue is a step in motion. Each tone has its own shape: green a circle, blue a diamond,
20
+ * amber a triangle, red a square, gray an empty ring.
23
21
  * "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge)
24
22
  * Ours: success is green, danger red, warning amber, info blue, neutral gray, whatever the state's
25
23
  * name, in our colour values. The tone and the word are required, and the type asks for both.
26
24
  * @instead "For non-deployment statuses (Workflow runs, Queue messages, Sandbox, Cron jobs), use a `Badge` with the canonical state vocabulary instead of repurposing the dot." (https://vercel.com/geist/status-dot)
27
25
  * Ours: that `Badge` is `StatusBadge`. For a category (an installation, a partner) use `Tag`. For
28
26
  * plain metadata (a role, a plan) use `Badge`. For a control reporting its own action use
29
- * `ActionStatus`. A state beside its name still uses this badge; status dots are not used.
27
+ * `ActionStatus`. A state beside its name still uses this component.
30
28
  * @behaviour "Badges are static labels." (https://vercel.com/geist/badge)
31
29
  * "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge)
32
- * Ours: a status never moves and is never a button.
33
- * "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge)
34
- * Ours: `subtle`, the default, is for rows, tables, lists and menus: it fills the pill with the
35
- * tone's soft ground and sets the mark and the word in its strong shade; gray takes the foreground
36
- * colour, never a muted one. `solid` is for a status that stands on its own, such as an object's
37
- * page header or a card title: it fills the pill with the tone's strong colour and sets the mark
38
- * and the word on it. No border and no ring either way. The `subtle` pairs are the tone's soft
39
- * ground with its deep shade (gray: `canvas-soft-2` with the foreground colour).
40
- * "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge)
41
- * Ours: it always draws its tone's mark, even for success and error: the mark repeats the tone as a
42
- * shape so a status reads without colour. Each app keeps one value-to-tone map in one module;
43
- * nothing else picks a status colour. A healthy record shows no badge, except the
44
- * operational-state and run-outcome columns defined by DESIGN.md's Status rule.
30
+ * Ours: a status never moves and is never a button. It is the tone's shape and the word, with no
31
+ * pill, no fill and no border, as Vercel's deployment list sets a state beside its time. The shape
32
+ * is filled with dots on a honeycomb grid, the material of the Agent orbs: an outline of evenly
33
+ * spaced dots and a field of dots inside it; gray's ring stays empty, the quiet tone. The dots
34
+ * take the tone's colour and the word the foreground colour; amber's outline takes its deep step
35
+ * so the triangle holds on white. `size`
36
+ * follows the type beside it: `sm` (a 14 px shape, 12 px word) in a small line such as an Agent's
37
+ * state line, `md` (16 px, 13 px) in a row, `lg` (20 px, 14 px) beside an object's name.
45
38
  * @words "Title Case, one word when possible, two max: `Active`, `Pending`, `Pro`, `Enterprise Trial`." (https://vercel.com/geist/badge)
46
39
  * Ours: a state, not a verb (*Failed*, *Waiting for you*), in sentence case, one to three words, no
47
40
  * trailing ellipsis. Italian runs a third longer: *In attesa di te*.
48
41
  * "Match the canonical API or log term: `Production` not `Prod`, `Deployed` not `Live`, `Canceled` not `Cancelled` (the Vercel API uses one L)." (https://vercel.com/geist/badge)
49
42
  * "Skip stuffing sentences inside (`Currently Active`, `You are on Pro`); the surrounding row supplies the context." (https://vercel.com/geist/badge)
50
43
  * @access "Don’t rely on color alone; the text has to be readable without it." (https://vercel.com/geist/badge)
51
- * Ours: the word is the name; the mark is `aria-hidden`, so colour never carries the state alone.
52
- * Not focusable.
44
+ * Ours: the word is the name; the shape is `aria-hidden`, so colour never carries the state alone.
45
+ * Not focusable. Each app keeps one value-to-tone map in one module; nothing else picks a status
46
+ * colour. A healthy record shows no status, except the operational-state and run-outcome columns
47
+ * defined by DESIGN.md's Status rule.
53
48
  */
54
- declare function StatusBadge({ tone, label, since, className, size, emphasis, ...props }: StatusBadgeProps): import("react").JSX.Element;
55
- export { StatusBadge, type StatusBadgeEmphasis, type StatusBadgeProps, type StatusBadgeTone };
49
+ declare function StatusBadge({ tone, label, since, className, size, ...props }: StatusBadgeProps): import("react").JSX.Element;
50
+ export { StatusBadge, type StatusBadgeProps, type StatusBadgeTone };
56
51
  //# sourceMappingURL=status-badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status-badge.d.ts","sourceRoot":"","sources":["../../src/components/status-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG3D,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7E,KAAK,mBAAmB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAgD9C,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC7E,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,IAAW,EACX,QAAmB,EACnB,GAAG,KAAK,EACT,EAAE,gBAAgB,+BAqBlB;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"status-badge.d.ts","sourceRoot":"","sources":["../../src/components/status-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS5C,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7E,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAsD1C,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC7E,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BA4B9F;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,CAAC"}
@@ -1,93 +1,71 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CircleCheck, CircleDot, CirclePause, CircleX, Clock } from "lucide-react";
3
- import { Badge } from "./badge.js";
2
+ import { STATUS_MARK_DOT_RADIUS, STATUS_MARK_PATHS, } from "../internal/status-mark.js";
4
3
  import { cn } from "../lib/utils.js";
5
- const FILL_BY_TONE = {
6
- success: {
7
- name: "green",
8
- subtle: "bg-success-soft text-success-soft-foreground",
9
- solid: "bg-success text-success-foreground",
10
- },
4
+ // One shape per tone, always the same one: the tone said again as a shape, so a
5
+ // status reads without colour. Amber's edge takes the deep step, because giallo
6
+ // alone does not hold a shape on white.
7
+ const TONE = {
8
+ success: { name: "green", shape: "circle", ink: "text-success" },
11
9
  warning: {
12
10
  name: "amber",
13
- subtle: "bg-warning-soft text-warning-soft-foreground",
14
- solid: "bg-warning text-warning-foreground",
15
- },
16
- danger: {
17
- name: "red",
18
- subtle: "bg-destructive-soft text-destructive-soft-foreground",
19
- solid: "bg-destructive text-destructive-foreground",
20
- },
21
- info: {
22
- name: "blue",
23
- subtle: "bg-info-soft text-info-soft-foreground",
24
- solid: "bg-info text-info-foreground",
11
+ shape: "triangle",
12
+ ink: "text-warning",
13
+ edge: "text-warning-soft-foreground",
25
14
  },
26
- neutral: {
27
- name: "gray",
28
- subtle: "bg-accent text-foreground",
29
- solid: "bg-muted-foreground text-background",
30
- },
31
- };
32
- // One mark per tone, always the same one: the tone said again as a shape, so a
33
- // status reads without colour. The info dot is filled and still.
34
- const MARK_BY_TONE = {
35
- success: CircleCheck,
36
- warning: Clock,
37
- danger: CircleX,
38
- info: CircleDot,
39
- neutral: CirclePause,
15
+ danger: { name: "red", shape: "square", ink: "text-destructive" },
16
+ info: { name: "blue", shape: "diamond", ink: "text-info" },
17
+ neutral: { name: "gray", shape: "ring", ink: "text-muted-foreground" },
40
18
  };
41
- // Every mark is a circle, which has less air round it than a square glyph, so
42
- // it sits closer to the pill's edge.
43
- const CIRCLE_MARK_INSET = {
44
- sm: "has-data-[icon=inline-start]:pl-1",
45
- md: "has-data-[icon=inline-start]:pl-1.25",
46
- lg: "has-data-[icon=inline-start]:pl-2",
19
+ const SIZE = {
20
+ sm: { text: "text-caption gap-1", mark: "size-3.5" },
21
+ md: { text: "text-label-sm gap-1.5", mark: "size-4" },
22
+ lg: { text: "text-label gap-2", mark: "size-5" },
47
23
  };
24
+ function StatusMark({ shape, className, edge, }) {
25
+ const paths = STATUS_MARK_PATHS[shape];
26
+ return (_jsxs("svg", { "aria-hidden": "true", className: cn("shrink-0", className), "data-slot": "status-badge-mark", "data-mark": shape, fill: "none", stroke: "currentColor", strokeLinecap: "round", viewBox: "-10 -10 20 20", children: [_jsx("path", { d: paths.inner, strokeOpacity: 0.92, strokeWidth: 2 * STATUS_MARK_DOT_RADIUS.inner }), _jsx("path", { className: edge, d: paths.edge, strokeWidth: 2 * STATUS_MARK_DOT_RADIUS.edge })] }));
27
+ }
48
28
  /**
49
- * A record's state: a mark and a word in one of five tones.
29
+ * A record's state: a shape of dots and a word, in one of five tones.
50
30
  *
51
31
  * @family Status
52
32
  * @when "Use Badge for short, scannable metadata that sits next to the thing it describes: status, plan tier, environment, or role." (https://vercel.com/geist/badge)
53
33
  * Ours: a record's state, when it sets the row apart: failed, waiting on a person, a step in
54
34
  * motion, paused, connected. Gray is the default and every terminal state that needs no action;
55
35
  * green is healthy or complete; red is unusable or failed; amber is waiting on a person's
56
- * decision; blue is a step in motion.
36
+ * decision; blue is a step in motion. Each tone has its own shape: green a circle, blue a diamond,
37
+ * amber a triangle, red a square, gray an empty ring.
57
38
  * "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge)
58
39
  * Ours: success is green, danger red, warning amber, info blue, neutral gray, whatever the state's
59
40
  * name, in our colour values. The tone and the word are required, and the type asks for both.
60
41
  * @instead "For non-deployment statuses (Workflow runs, Queue messages, Sandbox, Cron jobs), use a `Badge` with the canonical state vocabulary instead of repurposing the dot." (https://vercel.com/geist/status-dot)
61
42
  * Ours: that `Badge` is `StatusBadge`. For a category (an installation, a partner) use `Tag`. For
62
43
  * plain metadata (a role, a plan) use `Badge`. For a control reporting its own action use
63
- * `ActionStatus`. A state beside its name still uses this badge; status dots are not used.
44
+ * `ActionStatus`. A state beside its name still uses this component.
64
45
  * @behaviour "Badges are static labels." (https://vercel.com/geist/badge)
65
46
  * "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge)
66
- * Ours: a status never moves and is never a button.
67
- * "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge)
68
- * Ours: `subtle`, the default, is for rows, tables, lists and menus: it fills the pill with the
69
- * tone's soft ground and sets the mark and the word in its strong shade; gray takes the foreground
70
- * colour, never a muted one. `solid` is for a status that stands on its own, such as an object's
71
- * page header or a card title: it fills the pill with the tone's strong colour and sets the mark
72
- * and the word on it. No border and no ring either way. The `subtle` pairs are the tone's soft
73
- * ground with its deep shade (gray: `canvas-soft-2` with the foreground colour).
74
- * "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge)
75
- * Ours: it always draws its tone's mark, even for success and error: the mark repeats the tone as a
76
- * shape so a status reads without colour. Each app keeps one value-to-tone map in one module;
77
- * nothing else picks a status colour. A healthy record shows no badge, except the
78
- * operational-state and run-outcome columns defined by DESIGN.md's Status rule.
47
+ * Ours: a status never moves and is never a button. It is the tone's shape and the word, with no
48
+ * pill, no fill and no border, as Vercel's deployment list sets a state beside its time. The shape
49
+ * is filled with dots on a honeycomb grid, the material of the Agent orbs: an outline of evenly
50
+ * spaced dots and a field of dots inside it; gray's ring stays empty, the quiet tone. The dots
51
+ * take the tone's colour and the word the foreground colour; amber's outline takes its deep step
52
+ * so the triangle holds on white. `size`
53
+ * follows the type beside it: `sm` (a 14 px shape, 12 px word) in a small line such as an Agent's
54
+ * state line, `md` (16 px, 13 px) in a row, `lg` (20 px, 14 px) beside an object's name.
79
55
  * @words "Title Case, one word when possible, two max: `Active`, `Pending`, `Pro`, `Enterprise Trial`." (https://vercel.com/geist/badge)
80
56
  * Ours: a state, not a verb (*Failed*, *Waiting for you*), in sentence case, one to three words, no
81
57
  * trailing ellipsis. Italian runs a third longer: *In attesa di te*.
82
58
  * "Match the canonical API or log term: `Production` not `Prod`, `Deployed` not `Live`, `Canceled` not `Cancelled` (the Vercel API uses one L)." (https://vercel.com/geist/badge)
83
59
  * "Skip stuffing sentences inside (`Currently Active`, `You are on Pro`); the surrounding row supplies the context." (https://vercel.com/geist/badge)
84
60
  * @access "Don’t rely on color alone; the text has to be readable without it." (https://vercel.com/geist/badge)
85
- * Ours: the word is the name; the mark is `aria-hidden`, so colour never carries the state alone.
86
- * Not focusable.
61
+ * Ours: the word is the name; the shape is `aria-hidden`, so colour never carries the state alone.
62
+ * Not focusable. Each app keeps one value-to-tone map in one module; nothing else picks a status
63
+ * colour. A healthy record shows no status, except the operational-state and run-outcome columns
64
+ * defined by DESIGN.md's Status rule.
87
65
  */
88
- function StatusBadge({ tone, label, since, className, size = "md", emphasis = "subtle", ...props }) {
89
- const Mark = MARK_BY_TONE[tone];
90
- const fill = FILL_BY_TONE[tone];
91
- return (_jsxs(Badge, { className: cn(fill[emphasis], CIRCLE_MARK_INSET[size], className), "data-emphasis": emphasis, "data-variant": fill.name, icon: _jsx(Mark, { "aria-hidden": "true" }), size: size, ...props, children: [label, since ? (_jsx("span", { className: "tabular-nums", "data-slot": "status-badge-since", children: since })) : null] }));
66
+ function StatusBadge({ tone, label, since, className, size = "md", ...props }) {
67
+ const { name, shape, ink, edge } = TONE[tone];
68
+ const { text, mark } = SIZE[size];
69
+ return (_jsxs("span", { className: cn("inline-flex w-fit max-w-full shrink-0 items-center font-medium whitespace-nowrap text-foreground", text, className), "data-size": size, "data-slot": "status-badge", "data-variant": name, ...props, children: [_jsx(StatusMark, { className: cn(mark, ink), edge: edge, shape: shape }), label, since ? (_jsx("span", { className: "font-normal text-muted-foreground tabular-nums", "data-slot": "status-badge-since", children: since })) : null] }));
92
70
  }
93
71
  export { StatusBadge };
@@ -0,0 +1,16 @@
1
+ export type StatusMarkShape = "circle" | "diamond" | "triangle" | "square" | "ring";
2
+ export type StatusMarkDot = {
3
+ x: number;
4
+ y: number;
5
+ edge: boolean;
6
+ };
7
+ export declare const STATUS_MARK_DOTS: Record<StatusMarkShape, readonly StatusMarkDot[]>;
8
+ export declare const STATUS_MARK_DOT_RADIUS: {
9
+ readonly inner: 0.7;
10
+ readonly edge: 0.76;
11
+ };
12
+ export declare const STATUS_MARK_PATHS: Record<StatusMarkShape, {
13
+ inner: string;
14
+ edge: string;
15
+ }>;
16
+ //# sourceMappingURL=status-mark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-mark.d.ts","sourceRoot":"","sources":["../../src/internal/status-mark.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpF,MAAM,MAAM,aAAa,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AA+GpE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,aAAa,EAAE,CAM9E,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAAsC,CAAC;AAgB1E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,eAAe,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAMtF,CAAC"}
@@ -0,0 +1,128 @@
1
+ /*
2
+ * The five status marks: a shape filled with dots on a honeycomb grid, the
3
+ * material of the Agent orbs' dotted forms. Every coordinate is on a 20-unit
4
+ * square centred on 0, the size the marks are tuned at; a row of evenly spaced
5
+ * edge dots draws the outline and the inner dots keep clear of it, so the
6
+ * shape reads before the texture. The dots are computed once, at load.
7
+ */
8
+ const PITCH = 1.9;
9
+ // Sized by eye so the five carry the same weight beside a word; the triangle
10
+ // sits low because its weight is in its base.
11
+ const MARKS = {
12
+ circle: { outline: { kind: "circle", r: 6.7 } },
13
+ diamond: {
14
+ outline: {
15
+ kind: "polygon",
16
+ corners: [
17
+ [0, -7.8],
18
+ [7.8, 0],
19
+ [0, 7.8],
20
+ [-7.8, 0],
21
+ ],
22
+ },
23
+ },
24
+ triangle: {
25
+ outline: {
26
+ kind: "polygon",
27
+ corners: [
28
+ [0, -6.9],
29
+ [7.9, 6.6],
30
+ [-7.9, 6.6],
31
+ ],
32
+ },
33
+ },
34
+ square: {
35
+ outline: {
36
+ kind: "polygon",
37
+ corners: [
38
+ [-5.8, -5.8],
39
+ [5.8, -5.8],
40
+ [5.8, 5.8],
41
+ [-5.8, 5.8],
42
+ ],
43
+ },
44
+ },
45
+ ring: { outline: { kind: "circle", r: 6.7 }, hollow: true },
46
+ };
47
+ function sides(corners) {
48
+ return corners.map((start, index) => [start, corners[(index + 1) % corners.length]]);
49
+ }
50
+ function contains(outline, [x, y]) {
51
+ if (outline.kind === "circle")
52
+ return Math.hypot(x, y) <= outline.r;
53
+ let inside = false;
54
+ for (const [[ax, ay], [bx, by]] of sides(outline.corners)) {
55
+ if (ay > y !== by > y && x < ((bx - ax) * (y - ay)) / (by - ay) + ax)
56
+ inside = !inside;
57
+ }
58
+ return inside;
59
+ }
60
+ function distanceToEdge(outline, [x, y]) {
61
+ if (outline.kind === "circle")
62
+ return outline.r - Math.hypot(x, y);
63
+ return Math.min(...sides(outline.corners).map(([[ax, ay], [bx, by]]) => {
64
+ const dx = bx - ax;
65
+ const dy = by - ay;
66
+ const t = Math.max(0, Math.min(1, ((x - ax) * dx + (y - ay) * dy) / (dx * dx + dy * dy)));
67
+ return Math.hypot(x - ax - t * dx, y - ay - t * dy);
68
+ }));
69
+ }
70
+ // A dot on every corner, then evenly spaced along each side.
71
+ function edgeDots(outline) {
72
+ if (outline.kind === "circle") {
73
+ const count = Math.round((2 * Math.PI * outline.r) / PITCH);
74
+ return Array.from({ length: count }, (_, index) => {
75
+ const angle = -Math.PI / 2 + (index / count) * 2 * Math.PI;
76
+ return [Math.cos(angle) * outline.r, Math.sin(angle) * outline.r];
77
+ });
78
+ }
79
+ return sides(outline.corners).flatMap(([[ax, ay], [bx, by]]) => {
80
+ const count = Math.max(1, Math.round(Math.hypot(bx - ax, by - ay) / PITCH));
81
+ return Array.from({ length: count }, (_, step) => [ax + ((bx - ax) * step) / count, ay + ((by - ay) * step) / count]);
82
+ });
83
+ }
84
+ function innerDots(outline) {
85
+ const rowHeight = (PITCH * Math.sqrt(3)) / 2;
86
+ const dots = [];
87
+ for (let row = -6; row <= 6; row++) {
88
+ for (let column = -6; column <= 6; column++) {
89
+ const dot = [column * PITCH + (row % 2 === 0 ? 0 : PITCH / 2), row * rowHeight];
90
+ if (contains(outline, dot) && distanceToEdge(outline, dot) >= PITCH * 0.85)
91
+ dots.push(dot);
92
+ }
93
+ }
94
+ return dots;
95
+ }
96
+ function dotsOf(shape) {
97
+ const { outline, hollow } = MARKS[shape];
98
+ return [
99
+ ...(hollow ? [] : innerDots(outline)).map(([x, y]) => ({ x, y, edge: false })),
100
+ ...edgeDots(outline).map(([x, y]) => ({ x, y, edge: true })),
101
+ ];
102
+ }
103
+ export const STATUS_MARK_DOTS = {
104
+ circle: dotsOf("circle"),
105
+ diamond: dotsOf("diamond"),
106
+ triangle: dotsOf("triangle"),
107
+ square: dotsOf("square"),
108
+ ring: dotsOf("ring"),
109
+ };
110
+ export const STATUS_MARK_DOT_RADIUS = { inner: 0.7, edge: 0.76 };
111
+ // Each layer of dots as one path of zero-length strokes: drawn with round caps
112
+ // at twice the dot's radius, every `M x y h0` is one dot, so a mark is two
113
+ // nodes however many dots it has.
114
+ const pathOf = (dots) => dots.map(({ x, y }) => `M${x.toFixed(2)} ${y.toFixed(2)}h0`).join("");
115
+ function pathsOf(shape) {
116
+ const dots = STATUS_MARK_DOTS[shape];
117
+ return {
118
+ inner: pathOf(dots.filter((dot) => !dot.edge)),
119
+ edge: pathOf(dots.filter((dot) => dot.edge)),
120
+ };
121
+ }
122
+ export const STATUS_MARK_PATHS = {
123
+ circle: pathsOf("circle"),
124
+ diamond: pathsOf("diamond"),
125
+ triangle: pathsOf("triangle"),
126
+ square: pathsOf("square"),
127
+ ring: pathsOf("ring"),
128
+ };
@@ -669,8 +669,8 @@ export const USAGE = [
669
669
  family: "Status",
670
670
  summary: 'Short metadata beside its subject: a role, a plan, "Beta".',
671
671
  when: '"Use Badge for short, scannable metadata that sits next to the thing it describes: status, plan tier, environment, or role." (https://vercel.com/geist/badge) "One badge per row; two side by side is a sign the row needs a second column." (https://vercel.com/geist/badge) Ours: a state is a `StatusBadge`; a `Badge` is a role (*Owner*), a plan, an environment, *Beta*. It always has a word, or one `icon` with a `title`, and the type asks for it. `size` follows the type beside it: `sm` (20 px) next to small labels, `md` (24 px) in a row, `lg` (32 px) in a header. The category fills (teal, purple, pink) name a kind.',
672
- instead: '"For a colored dot without text, use `Status Dot`." (https://vercel.com/geist/badge) Ours: status dots are not used; a state keeps its mark and word together in `StatusBadge`. "For clickable filter chips that toggle a query, use the `pill` variant or a small `Button`." (https://vercel.com/geist/badge) Ours: there is no `pill` variant; a filter that toggles a query is a `Button` or `CollectionFilters`. For a state use `StatusBadge`, which picks the tone and its mark: the gray, green, red, amber and blue fills, soft or solid, are its alone. One categorical fact in a row is a `Tag`. A change in a figure is a `TrendBadge`.',
673
- behaviour: '"Badges are static labels." (https://vercel.com/geist/badge) "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge) Ours: it takes no `onClick`, no hover and no focus; it becomes a link only through `render` with a real anchor, and only `outline` takes the hover, a gray fill. "Keep badge content to text or `icon` + text." (https://vercel.com/geist/badge) "Never stack two icons or a child Badge inside a Badge." (https://vercel.com/geist/badge) Ours: never a paragraph either. "Pair lifecycle badges (`Alpha`, `Beta`, `Early Access`) with a `Tooltip` that names the limit, like `Alpha: API may change before GA`." (https://vercel.com/geist/badge) Ours: the badge is the `render` of a `TooltipTrigger` with `tabIndex={0}`, so keyboard and touch users reach the limit it names. "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge) Ours: only `StatusBadge` carries a state, and it always draws its tone\'s mark. "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge) "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge) Ours: those fills are `StatusBadge`\'s, as the tones `success`, `danger`, `warning`, `info` and `neutral`, with `emphasis` `subtle` or `solid`. `Badge` is a fixed-height pill (20, 24 or 32 px) with no border: colour sits on the fill and the word. A soft fill takes its hue\'s strong shade for the word, `default` is the foreground colour inverted, and `outline` is neutral, a page-colour fill held by a 1 px inset ring. With an icon, the left padding is 6, 8 or 12 px, so the mark and the word look evenly spaced. The icon takes the word\'s colour.',
672
+ instead: '"For a colored dot without text, use `Status Dot`." (https://vercel.com/geist/badge) Ours: a single dot is never a status; a state is `StatusBadge`, its tone\'s shape of dots and its word, with no pill. "For clickable filter chips that toggle a query, use the `pill` variant or a small `Button`." (https://vercel.com/geist/badge) Ours: there is no `pill` variant; a filter that toggles a query is a `Button` or `CollectionFilters`. For a state use `StatusBadge`, which draws the tone as its shape; Badge has no gray, green, red, amber or blue fill. One categorical fact in a row is a `Tag`. A change in a figure is a `TrendBadge`.',
673
+ behaviour: '"Badges are static labels." (https://vercel.com/geist/badge) "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge) Ours: it takes no `onClick`, no hover and no focus; it becomes a link only through `render` with a real anchor, and only `outline` takes the hover, a gray fill. "Keep badge content to text or `icon` + text." (https://vercel.com/geist/badge) "Never stack two icons or a child Badge inside a Badge." (https://vercel.com/geist/badge) Ours: never a paragraph either. "Pair lifecycle badges (`Alpha`, `Beta`, `Early Access`) with a `Tooltip` that names the limit, like `Alpha: API may change before GA`." (https://vercel.com/geist/badge) Ours: the badge is the `render` of a `TooltipTrigger` with `tabIndex={0}`, so keyboard and touch users reach the limit it names. "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge) Ours: only `StatusBadge` carries a state, and it always draws its tone\'s shape. "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge) "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge) Ours: those meanings are `StatusBadge`\'s, as the tones `success`, `danger`, `warning`, `info` and `neutral`, each drawn as its shape. `Badge` is a fixed-height pill (20, 24 or 32 px) with no border: colour sits on the fill and the word. A soft fill takes its hue\'s strong shade for the word, `default` is the foreground colour inverted, and `outline` is neutral, a page-colour fill held by a 1 px inset ring. With an icon, the left padding is 6, 8 or 12 px, so the mark and the word look evenly spaced. The icon takes the word\'s colour.',
674
674
  words: '"Title Case, one word when possible, two max: `Active`, `Pending`, `Pro`, `Enterprise Trial`." (https://vercel.com/geist/badge) Ours: sentence case (*Enterprise trial*). "Match the canonical API or log term: `Production` not `Prod`, `Deployed` not `Live`, `Canceled` not `Cancelled` (the Vercel API uses one L)." (https://vercel.com/geist/badge) Ours: the term is our own API\'s. "Skip stuffing sentences inside (`Currently Active`, `You are on Pro`); the surrounding row supplies the context." (https://vercel.com/geist/badge)',
675
675
  access: '"Set `title` for icon-only or ambiguous badges so screen readers announce the meaning." (https://vercel.com/geist/badge) Ours: an icon alone must set `title`, and the type asks for it. Read in place as text. "Don’t rely on color alone; the text has to be readable without it." (https://vercel.com/geist/badge) Ours: a coloured variant still carries its word.',
676
676
  },
@@ -788,12 +788,12 @@ export const USAGE = [
788
788
  name: "StatusBadge",
789
789
  module: "status-badge",
790
790
  family: "Status",
791
- summary: "A record's state: a mark and a word in one of five tones.",
792
- when: '"Use Badge for short, scannable metadata that sits next to the thing it describes: status, plan tier, environment, or role." (https://vercel.com/geist/badge) Ours: a record\'s state, when it sets the row apart: failed, waiting on a person, a step in motion, paused, connected. Gray is the default and every terminal state that needs no action; green is healthy or complete; red is unusable or failed; amber is waiting on a person\'s decision; blue is a step in motion. "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge) Ours: success is green, danger red, warning amber, info blue, neutral gray, whatever the state\'s name, in our colour values. The tone and the word are required, and the type asks for both.',
793
- instead: '"For non-deployment statuses (Workflow runs, Queue messages, Sandbox, Cron jobs), use a `Badge` with the canonical state vocabulary instead of repurposing the dot." (https://vercel.com/geist/status-dot) Ours: that `Badge` is `StatusBadge`. For a category (an installation, a partner) use `Tag`. For plain metadata (a role, a plan) use `Badge`. For a control reporting its own action use `ActionStatus`. A state beside its name still uses this badge; status dots are not used.',
794
- behaviour: '"Badges are static labels." (https://vercel.com/geist/badge) "Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value." (https://vercel.com/geist/badge) Ours: a status never moves and is never a button. "The `-subtle` suffix tones any of them down on dense surfaces." (https://vercel.com/geist/badge) Ours: `subtle`, the default, is for rows, tables, lists and menus: it fills the pill with the tone\'s soft ground and sets the mark and the word in its strong shade; gray takes the foreground colour, never a muted one. `solid` is for a status that stands on its own, such as an object\'s page header or a card title: it fills the pill with the tone\'s strong colour and sets the mark and the word on it. No border and no ring either way. The `subtle` pairs are the tone\'s soft ground with its deep shade (gray: `canvas-soft-2` with the foreground colour). "Don’t add a checkmark icon for success states or an X for errors; the variant carries that signal." (https://vercel.com/geist/badge) Ours: it always draws its tone\'s mark, even for success and error: the mark repeats the tone as a shape so a status reads without colour. Each app keeps one value-to-tone map in one module; nothing else picks a status colour. A healthy record shows no badge, except the operational-state and run-outcome columns defined by DESIGN.md\'s Status rule.',
791
+ summary: "A record's state: a shape of dots and a word, in one of five tones.",
792
+ when: '"Use Badge for short, scannable metadata that sits next to the thing it describes: status, plan tier, environment, or role." (https://vercel.com/geist/badge) Ours: a record\'s state, when it sets the row apart: failed, waiting on a person, a step in motion, paused, connected. Gray is the default and every terminal state that needs no action; green is healthy or complete; red is unusable or failed; amber is waiting on a person\'s decision; blue is a step in motion. Each tone has its own shape: green a circle, blue a diamond, amber a triangle, red a square, gray an empty ring. "Map meaning to color: `green` for healthy, `red` for error, `amber` for warning, `blue` for informational or production, `gray` for neutral." (https://vercel.com/geist/badge) Ours: success is green, danger red, warning amber, info blue, neutral gray, whatever the state\'s name, in our colour values. The tone and the word are required, and the type asks for both.',
793
+ instead: '"For non-deployment statuses (Workflow runs, Queue messages, Sandbox, Cron jobs), use a `Badge` with the canonical state vocabulary instead of repurposing the dot." (https://vercel.com/geist/status-dot) Ours: that `Badge` is `StatusBadge`. For a category (an installation, a partner) use `Tag`. For plain metadata (a role, a plan) use `Badge`. For a control reporting its own action use `ActionStatus`. A state beside its name still uses this component.',
794
+ behaviour: "\"Badges are static labels.\" (https://vercel.com/geist/badge) \"Don’t wire `onClick` onto them; promote to a Button or link if the user can act on the value.\" (https://vercel.com/geist/badge) Ours: a status never moves and is never a button. It is the tone's shape and the word, with no pill, no fill and no border, as Vercel's deployment list sets a state beside its time. The shape is filled with dots on a honeycomb grid, the material of the Agent orbs: an outline of evenly spaced dots and a field of dots inside it; gray's ring stays empty, the quiet tone. The dots take the tone's colour and the word the foreground colour; amber's outline takes its deep step so the triangle holds on white. `size` follows the type beside it: `sm` (a 14 px shape, 12 px word) in a small line such as an Agent's state line, `md` (16 px, 13 px) in a row, `lg` (20 px, 14 px) beside an object's name.",
795
795
  words: '"Title Case, one word when possible, two max: `Active`, `Pending`, `Pro`, `Enterprise Trial`." (https://vercel.com/geist/badge) Ours: a state, not a verb (*Failed*, *Waiting for you*), in sentence case, one to three words, no trailing ellipsis. Italian runs a third longer: *In attesa di te*. "Match the canonical API or log term: `Production` not `Prod`, `Deployed` not `Live`, `Canceled` not `Cancelled` (the Vercel API uses one L)." (https://vercel.com/geist/badge) "Skip stuffing sentences inside (`Currently Active`, `You are on Pro`); the surrounding row supplies the context." (https://vercel.com/geist/badge)',
796
- access: '"Don’t rely on color alone; the text has to be readable without it." (https://vercel.com/geist/badge) Ours: the word is the name; the mark is `aria-hidden`, so colour never carries the state alone. Not focusable.',
796
+ access: '"Don’t rely on color alone; the text has to be readable without it." (https://vercel.com/geist/badge) Ours: the word is the name; the shape is `aria-hidden`, so colour never carries the state alone. Not focusable. Each app keeps one value-to-tone map in one module; nothing else picks a status colour. A healthy record shows no status, except the operational-state and run-outcome columns defined by DESIGN.md\'s Status rule.',
797
797
  },
798
798
  {
799
799
  name: "Tag",
@@ -815,7 +815,7 @@ export const USAGE = [
815
815
  instead: "An Agent as a record among others in a page's list is a RecordList row with an agent IdentityMark; an Agent's own page heads with ObjectPage.",
816
816
  behaviour: "It is the row's presentation alone: the consumer owns the control around it (Nadia's button that opens the Agent, a scene's list item that opens nothing). The current row's name is set in 500. A state tone draws the state line as a small StatusBadge; without a tone it stays plain text. Narrow, the orb stands alone and the words stay for a screen reader; the consumer names it with its state line in a tooltip, as Nadia's list does. Only the orb moves in the list. The name is 14 px and the state line 12 px at every size. The drawn orb leaves about 10 px of its 64 px box empty, so at 64 px that empty edge overlaps the row's padding (6 px above and below, 4 px at the start) and the words stand 4 px from the box: the row hugs the visible orb and the name sits beside it, as beside a solid picture. In Nadia's list her orb is 64 px in her real state, and 40 px in the narrow column from 640 to 899 px.",
817
817
  words: 'The name, then one state line: what she is doing now ("Answering on Telegram", "Working") or what she is for ("Sorts requests"). The tone never says more than the line does. Nadia\'s list says "Working", "Idle" or "Needs you"; the badge marks a state that needs the person ("Needs you", a failed set-up), and the orb shows working by itself.',
818
- access: "The orb is decorative; the name and the state line are the row's text, read by its control. StatusBadge owns its decorative mark, so the line carries its meaning.",
818
+ access: "The orb is decorative; the name and the state line are the row's text, read by its control. StatusBadge owns its decorative shape, so the line carries its meaning.",
819
819
  },
820
820
  {
821
821
  name: "Breadcrumb",
@@ -171,6 +171,7 @@
171
171
  :has(
172
172
  > :only-child:is(
173
173
  [data-slot="badge"],
174
+ [data-slot="status-badge"],
174
175
  [data-slot="trend-badge"],
175
176
  [data-slot="chart-sparkline"],
176
177
  [data-slot="button"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.128",
3
+ "version": "12.1.129",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -83,7 +83,7 @@
83
83
  "@base-ui/react": "^1.9.0",
84
84
  "@iconify-icons/logos": "^2.0.3",
85
85
  "@iconify/react": "^6.0.2",
86
- "@nadicodeai/design-system": "12.1.128",
86
+ "@nadicodeai/design-system": "12.1.129",
87
87
  "@tanstack/react-table": "^9.3.1",
88
88
  "@vgpu/wgsl": "0.6.0",
89
89
  "class-variance-authority": "^0.7.1",