@nadicodeai/ui 12.1.155 → 12.1.156
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 +4 -2
- package/dist/components/entry-scene.d.ts.map +1 -1
- package/dist/components/entry-scene.js +3 -3
- package/dist/components/pairing-code.d.ts +17 -11
- package/dist/components/pairing-code.d.ts.map +1 -1
- package/dist/components/pairing-code.js +19 -12
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +6 -6
- package/dist/styles/components.css +8 -0
- package/package.json +2 -2
|
@@ -24,6 +24,8 @@ export type EntrySceneProps = {
|
|
|
24
24
|
presence?: ReactNode;
|
|
25
25
|
/** Which view is open. A failure quiets the picture; it is never removed. */
|
|
26
26
|
view?: string;
|
|
27
|
+
/** Shown inside a page or a drawer rather than filling the window: its corners round as a card's do. */
|
|
28
|
+
contained?: boolean;
|
|
27
29
|
className?: string;
|
|
28
30
|
/** The message, the actions, the progress line and the stage list. */
|
|
29
31
|
children?: ReactNode;
|
|
@@ -34,13 +36,13 @@ export type EntrySceneProps = {
|
|
|
34
36
|
* group. The screen is black in every theme.
|
|
35
37
|
*
|
|
36
38
|
* @family Compositions
|
|
37
|
-
* @when Nadia's installer and the desktop's sign-in, start, update and failure screens, which paint the same screen; a page that shows that screen beside other things.
|
|
39
|
+
* @when Nadia's installer and the desktop's sign-in, start, update and failure screens, which paint the same screen; a page that shows that screen beside other things; the top of every Nadia pairing drawer, contained at 16:9 with only its short status.
|
|
38
40
|
* @instead The Portal's entry pages are its funnel frame with the shared entry header; Alveare Server's entry is the HiveScene; a wait inside the product is a WaitingLine.
|
|
39
41
|
* @behaviour It holds no state and decides nothing: which view is open, the words and when the screen ends belong to whoever mounts it. Required: the picture, the wordmark and the heading, because every entry screen has all three; a screen that leaves one out does not compile. It fills a box of the window's own shape (`aspectRatio`), so the picture's figure stands on the window's floor (`pictureFeet`). A failure quiets the picture and never removes it. Its children stand in order: the message, the actions, the progress line, the stage list.
|
|
40
42
|
* @words The heading names the surface and is never seen. Instructions and status are one plain sentence that changes only when the real stage changes ("Loading your tools").
|
|
41
43
|
* @access One level-1 heading for the screen, read but not shown; a message that reports work in progress is a status.
|
|
42
44
|
*/
|
|
43
|
-
export declare function EntryScene({ aspectRatio, minHeight, picture, pictureFeet, wordmark, title, presence, view, className, children, }: EntrySceneProps): import("react").JSX.Element;
|
|
45
|
+
export declare function EntryScene({ aspectRatio, minHeight, picture, pictureFeet, wordmark, title, presence, view, contained, className, children, }: EntrySceneProps): import("react").JSX.Element;
|
|
44
46
|
/**
|
|
45
47
|
* What the screen is doing, said plainly. `lines` reserves the room a longer
|
|
46
48
|
* translation needs, so nothing below it moves between stages.
|
|
@@ -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;AAItE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D,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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;A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B,KAAK,EACL,IAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAWA;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAEhG;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAmB,EACnB,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,+BAYA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAaA;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC,CAAC;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAeA"}
|
|
@@ -6,14 +6,14 @@ import { cn } from "../lib/utils.js";
|
|
|
6
6
|
* group. The screen is black in every theme.
|
|
7
7
|
*
|
|
8
8
|
* @family Compositions
|
|
9
|
-
* @when Nadia's installer and the desktop's sign-in, start, update and failure screens, which paint the same screen; a page that shows that screen beside other things.
|
|
9
|
+
* @when Nadia's installer and the desktop's sign-in, start, update and failure screens, which paint the same screen; a page that shows that screen beside other things; the top of every Nadia pairing drawer, contained at 16:9 with only its short status.
|
|
10
10
|
* @instead The Portal's entry pages are its funnel frame with the shared entry header; Alveare Server's entry is the HiveScene; a wait inside the product is a WaitingLine.
|
|
11
11
|
* @behaviour It holds no state and decides nothing: which view is open, the words and when the screen ends belong to whoever mounts it. Required: the picture, the wordmark and the heading, because every entry screen has all three; a screen that leaves one out does not compile. It fills a box of the window's own shape (`aspectRatio`), so the picture's figure stands on the window's floor (`pictureFeet`). A failure quiets the picture and never removes it. Its children stand in order: the message, the actions, the progress line, the stage list.
|
|
12
12
|
* @words The heading names the surface and is never seen. Instructions and status are one plain sentence that changes only when the real stage changes ("Loading your tools").
|
|
13
13
|
* @access One level-1 heading for the screen, read but not shown; a message that reports work in progress is a status.
|
|
14
14
|
*/
|
|
15
|
-
export function EntryScene({ aspectRatio = "1220 / 800", minHeight, picture, pictureFeet = 906, wordmark, title, presence, view, className, children, }) {
|
|
16
|
-
return (_jsx("div", { "data-slot": "entry-scene", className: cn("nc-entry-scene", className),
|
|
15
|
+
export function EntryScene({ aspectRatio = "1220 / 800", minHeight, picture, pictureFeet = 906, wordmark, title, presence, view, contained = false, className, children, }) {
|
|
16
|
+
return (_jsx("div", { "data-slot": "entry-scene", className: cn("nc-entry-scene", contained && "rounded-lg", className), "data-contained": contained || undefined,
|
|
17
17
|
// SAFETY: CSSProperties lists only standard properties; React sets each `--` custom property key here through style.setProperty.
|
|
18
18
|
style: {
|
|
19
19
|
aspectRatio,
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
export type PairingCodeProps = Omit<React.ComponentProps<"div">, "children" | "role"> & {
|
|
3
|
-
/** The
|
|
3
|
+
/** The characters the code holds, such as "4821" or "5QTH-LMWG"; a leading zero is a digit, and a "-" separates groups. */
|
|
4
4
|
code: string;
|
|
5
5
|
/** What the code is, in the person's language; a screen reader reads it before the digits. */
|
|
6
6
|
label: string;
|
|
7
|
+
/** The code can no longer be used: it stays in view, dimmed, while the caller says why beside it. */
|
|
8
|
+
expired?: boolean;
|
|
7
9
|
};
|
|
8
10
|
/**
|
|
9
|
-
* The short code
|
|
10
|
-
*
|
|
11
|
-
* while a Nadia asks to join
|
|
11
|
+
* The short code a person reads on one screen to pair it with another: compared
|
|
12
|
+
* between two screens, such as the four digits Nadia and Alveare Server both
|
|
13
|
+
* show while a Nadia asks to join, or typed on another device, such as the
|
|
14
|
+
* code WhatsApp asks for to link a device by its phone number.
|
|
12
15
|
*
|
|
13
|
-
* Each
|
|
16
|
+
* Each character stands in its own cell, large enough to read from across a
|
|
14
17
|
* desk. The caller places it.
|
|
15
18
|
*
|
|
16
19
|
* @family Data
|
|
17
20
|
* @when Pairing two devices or apps a person can see side by side: the four digits Nadia and
|
|
18
|
-
* Alveare Server both show while a Nadia asks to join
|
|
19
|
-
*
|
|
20
|
-
* @
|
|
21
|
-
*
|
|
21
|
+
* Alveare Server both show while a Nadia asks to join; or a code the person types on another
|
|
22
|
+
* device, such as WhatsApp's linking code ("5QTH-LMWG") they type on the phone under Linked devices.
|
|
23
|
+
* @instead A code a person types into this screen is `InputOTP`. A link another device scans is `QrCode`.
|
|
24
|
+
* @behaviour Each character in its own cell at `heading-lg` with tabular figures, large enough to
|
|
25
|
+
* read from across a desk. A leading zero is a digit. A "-" is a narrow separator between groups,
|
|
26
|
+
* not a cell. An `expired` code stays in place, dimmed, so the person sees which code lapsed while
|
|
27
|
+
* the caller says so under it. It only shows a code and takes no input.
|
|
22
28
|
* @words The label says what the code is: *Pairing code*.
|
|
23
|
-
* @access `role="img"` named by the label and the
|
|
29
|
+
* @access `role="img"` named by the label and the characters read one by one, the groups apart.
|
|
24
30
|
*/
|
|
25
|
-
declare function PairingCode({ code, label, className, ...props }: PairingCodeProps): React.JSX.Element;
|
|
31
|
+
declare function PairingCode({ code, label, expired, className, ...props }: PairingCodeProps): React.JSX.Element;
|
|
26
32
|
export { PairingCode };
|
|
27
33
|
//# sourceMappingURL=pairing-code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pairing-code.d.ts","sourceRoot":"","sources":["../../src/components/pairing-code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IACtF
|
|
1
|
+
{"version":3,"file":"pairing-code.d.ts","sourceRoot":"","sources":["../../src/components/pairing-code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IACtF,2HAA2H;IAC3H,IAAI,EAAE,MAAM,CAAC;IACb,8FAA8F;IAC9F,KAAK,EAAE,MAAM,CAAC;IACd,qGAAqG;IACrG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAe,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBAmC3F;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
/**
|
|
4
|
-
* The short code
|
|
5
|
-
*
|
|
6
|
-
* while a Nadia asks to join
|
|
4
|
+
* The short code a person reads on one screen to pair it with another: compared
|
|
5
|
+
* between two screens, such as the four digits Nadia and Alveare Server both
|
|
6
|
+
* show while a Nadia asks to join, or typed on another device, such as the
|
|
7
|
+
* code WhatsApp asks for to link a device by its phone number.
|
|
7
8
|
*
|
|
8
|
-
* Each
|
|
9
|
+
* Each character stands in its own cell, large enough to read from across a
|
|
9
10
|
* desk. The caller places it.
|
|
10
11
|
*
|
|
11
12
|
* @family Data
|
|
12
13
|
* @when Pairing two devices or apps a person can see side by side: the four digits Nadia and
|
|
13
|
-
* Alveare Server both show while a Nadia asks to join
|
|
14
|
-
*
|
|
15
|
-
* @
|
|
16
|
-
*
|
|
14
|
+
* Alveare Server both show while a Nadia asks to join; or a code the person types on another
|
|
15
|
+
* device, such as WhatsApp's linking code ("5QTH-LMWG") they type on the phone under Linked devices.
|
|
16
|
+
* @instead A code a person types into this screen is `InputOTP`. A link another device scans is `QrCode`.
|
|
17
|
+
* @behaviour Each character in its own cell at `heading-lg` with tabular figures, large enough to
|
|
18
|
+
* read from across a desk. A leading zero is a digit. A "-" is a narrow separator between groups,
|
|
19
|
+
* not a cell. An `expired` code stays in place, dimmed, so the person sees which code lapsed while
|
|
20
|
+
* the caller says so under it. It only shows a code and takes no input.
|
|
17
21
|
* @words The label says what the code is: *Pairing code*.
|
|
18
|
-
* @access `role="img"` named by the label and the
|
|
22
|
+
* @access `role="img"` named by the label and the characters read one by one, the groups apart.
|
|
19
23
|
*/
|
|
20
|
-
function PairingCode({ code, label, className, ...props }) {
|
|
21
|
-
const
|
|
22
|
-
return (_jsx("div", { ...props, "aria-label": `${label}: ${
|
|
24
|
+
function PairingCode({ code, label, expired = false, className, ...props }) {
|
|
25
|
+
const groups = code.split("-").map((group) => [...group]);
|
|
26
|
+
return (_jsx("div", { ...props, "aria-label": `${label}: ${groups.map((group) => group.join(" ")).join(", ")}`, className: cn("flex items-center gap-2", expired && "opacity-50", className), "data-expired": expired || undefined, "data-slot": "pairing-code", role: "img", children: groups.map((group, groupPlace) => [
|
|
27
|
+
groupPlace > 0 ? (_jsx("span", { "aria-hidden": "true", className: "text-heading-lg text-muted-foreground", "data-slot": "pairing-code-separator", children: "-" }, `separator-${groupPlace}`)) : null,
|
|
28
|
+
...group.map((digit, place) => (_jsx("span", { "aria-hidden": "true", className: "grid h-16 w-12 place-items-center rounded-sm border border-border text-heading-lg text-foreground tabular-nums", "data-slot": "pairing-code-digit", children: digit }, `${groupPlace}-${place}`))),
|
|
29
|
+
]) }));
|
|
23
30
|
}
|
|
24
31
|
export { PairingCode };
|
|
@@ -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,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,UAAU,GACV,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,eAAe,GACf,aAAa,GACb,cAAc,GACd,cAAc,GACd,eAAe,GACf,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,mBAAmB,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GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mB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ACb,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,EAy7E1C,CAAC"}
|
|
@@ -96,7 +96,7 @@ export const USAGE = [
|
|
|
96
96
|
module: "entry-scene",
|
|
97
97
|
family: "Compositions",
|
|
98
98
|
summary: "Nadia's entry screen, contained: the approved picture of the surface behind, the wordmark at the upper left, Nadia's ribbon and her words centred as one group. The screen is black in every theme.",
|
|
99
|
-
when: "Nadia's installer and the desktop's sign-in, start, update and failure screens, which paint the same screen; a page that shows that screen beside other things.",
|
|
99
|
+
when: "Nadia's installer and the desktop's sign-in, start, update and failure screens, which paint the same screen; a page that shows that screen beside other things; the top of every Nadia pairing drawer, contained at 16:9 with only its short status.",
|
|
100
100
|
instead: "The Portal's entry pages are its funnel frame with the shared entry header; Alveare Server's entry is the HiveScene; a wait inside the product is a WaitingLine.",
|
|
101
101
|
behaviour: "It holds no state and decides nothing: which view is open, the words and when the screen ends belong to whoever mounts it. Required: the picture, the wordmark and the heading, because every entry screen has all three; a screen that leaves one out does not compile. It fills a box of the window's own shape (`aspectRatio`), so the picture's figure stands on the window's floor (`pictureFeet`). A failure quiets the picture and never removes it. Its children stand in order: the message, the actions, the progress line, the stage list.",
|
|
102
102
|
words: 'The heading names the surface and is never seen. Instructions and status are one plain sentence that changes only when the real stage changes ("Loading your tools").',
|
|
@@ -1118,12 +1118,12 @@ export const USAGE = [
|
|
|
1118
1118
|
name: "PairingCode",
|
|
1119
1119
|
module: "pairing-code",
|
|
1120
1120
|
family: "Data",
|
|
1121
|
-
summary: "The short code
|
|
1122
|
-
when:
|
|
1123
|
-
instead: "A code a person types is `InputOTP`. A link another device scans is `QrCode`.",
|
|
1124
|
-
behaviour:
|
|
1121
|
+
summary: "The short code a person reads on one screen to pair it with another: compared between two screens, such as the four digits Nadia and Alveare Server both show while a Nadia asks to join, or typed on another device, such as the code WhatsApp asks for to link a device by its phone number.",
|
|
1122
|
+
when: 'Pairing two devices or apps a person can see side by side: the four digits Nadia and Alveare Server both show while a Nadia asks to join; or a code the person types on another device, such as WhatsApp\'s linking code ("5QTH-LMWG") they type on the phone under Linked devices.',
|
|
1123
|
+
instead: "A code a person types into this screen is `InputOTP`. A link another device scans is `QrCode`.",
|
|
1124
|
+
behaviour: 'Each character in its own cell at `heading-lg` with tabular figures, large enough to read from across a desk. A leading zero is a digit. A "-" is a narrow separator between groups, not a cell. An `expired` code stays in place, dimmed, so the person sees which code lapsed while the caller says so under it. It only shows a code and takes no input.',
|
|
1125
1125
|
words: "The label says what the code is: *Pairing code*.",
|
|
1126
|
-
access: '`role="img"` named by the label and the
|
|
1126
|
+
access: '`role="img"` named by the label and the characters read one by one, the groups apart.',
|
|
1127
1127
|
},
|
|
1128
1128
|
{
|
|
1129
1129
|
name: "Progress",
|
|
@@ -616,6 +616,14 @@
|
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
+
/*
|
|
620
|
+
* Contained, the scene is a card: the words wrap within its middle so a long
|
|
621
|
+
* status never reaches the picture's figure at the left.
|
|
622
|
+
*/
|
|
623
|
+
.nc-entry-scene[data-contained] .nc-entry-body {
|
|
624
|
+
max-width: 56%;
|
|
625
|
+
}
|
|
626
|
+
|
|
619
627
|
/*
|
|
620
628
|
* Alveare's entry scene, the hive (`components/hive-scene.tsx`), in the
|
|
621
629
|
* composition of Nadia's entry screen: the app's picture on a black ground and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.156",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@base-ui/react": "^1.9.0",
|
|
85
85
|
"@iconify-icons/logos": "^2.0.3",
|
|
86
86
|
"@iconify/react": "^6.0.2",
|
|
87
|
-
"@nadicodeai/design-system": "12.1.
|
|
87
|
+
"@nadicodeai/design-system": "12.1.156",
|
|
88
88
|
"@tanstack/react-table": "^9.3.1",
|
|
89
89
|
"@vgpu/wgsl": "0.6.0",
|
|
90
90
|
"class-variance-authority": "^0.7.1",
|