@nadicodeai/ui 12.1.262 → 12.1.263
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/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/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/data.js +1 -1
- package/dist/showcase/specimens/feedback.js +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +7 -7
- package/package.json +2 -2
|
@@ -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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E,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
|
}
|
|
@@ -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,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,yBAAyB;;8EAiB9B,CAAC;AAEF,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExF,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAOhC,KAAK,YAAY,GACb;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAexD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAkEF
|
|
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,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,yBAAyB;;8EAiB9B,CAAC;AAEF,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExF,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAOhC,KAAK,YAAY,GACb;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,iBAAiB,EAAE,MAAM,CAAC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a,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)
|
|
@@ -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":"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,GAC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,GACd,UAAU,GACV,gBAAgB,GAChB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,cAAc,GACd,eAAe,GACf,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,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":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AM,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,EAw+F1C,CAAC"}
|
|
@@ -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.263",
|
|
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.263",
|
|
86
86
|
"@tanstack/react-table": "^9.3.1",
|
|
87
87
|
"@vgpu/wgsl": "0.6.0",
|
|
88
88
|
"class-variance-authority": "^0.7.1",
|