@nadicodeai/ui 12.1.127 → 12.1.128
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/company-card.d.ts +2 -2
- package/dist/components/company-card.d.ts.map +1 -1
- package/dist/components/company-card.js +1 -1
- package/dist/components/identity-mark.d.ts +2 -3
- package/dist/components/identity-mark.d.ts.map +1 -1
- package/dist/components/identity-mark.js +2 -22
- package/dist/internal/company-logo.d.ts +1 -3
- package/dist/internal/company-logo.d.ts.map +1 -1
- package/dist/internal/company-logo.js +2 -7
- package/dist/showcase/specimens/status.d.ts.map +1 -1
- package/dist/showcase/specimens/status.js +1 -2
- package/dist/showcase/usage.generated.js +2 -2
- package/dist/styles/components.css +0 -1
- package/package.json +2 -2
|
@@ -25,7 +25,7 @@ export type CompanyCardLabels = {
|
|
|
25
25
|
* @instead A company's facts are `SettingsFactsSection`. A company in a row is its `IdentityMark`.
|
|
26
26
|
* @behaviour One object of the ID-1 proportion (856 by 540), dark by nature in every theme. Its
|
|
27
27
|
* top line carries the wordmark and, once Sofia has found it on the company's site, the company's
|
|
28
|
-
* own logo after a hairline
|
|
28
|
+
* own logo after a hairline in its original colours; a company with
|
|
29
29
|
* no logo found has the wordmark alone. Below are the holder's name and the company's domain. No
|
|
30
30
|
* Agent stands on it, and nothing sits in the engraving: a guilloché engraving in
|
|
31
31
|
* `{colors.identity-white}` at 10%. It fills in as the form is typed and answers the pointer. It
|
|
@@ -52,7 +52,7 @@ export declare function CompanyCard({ name, domain, edition, issued, labels, log
|
|
|
52
52
|
edition: CompanyCardEdition;
|
|
53
53
|
issued: boolean;
|
|
54
54
|
labels: CompanyCardLabels;
|
|
55
|
-
/** The company's own logo
|
|
55
|
+
/** The company's own logo; absent until lookup has found it. */
|
|
56
56
|
logo?: string;
|
|
57
57
|
/**
|
|
58
58
|
* Waits for most of the card to be on screen before it turns once in the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-card.d.ts","sourceRoot":"","sources":["../../src/components/company-card.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,WAAmB,GACpB,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,kBAAkB,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"company-card.d.ts","sourceRoot":"","sources":["../../src/components/company-card.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,WAAmB,GACpB,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,kBAAkB,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,+BAiSA"}
|
|
@@ -40,7 +40,7 @@ function reason(cause) {
|
|
|
40
40
|
* @instead A company's facts are `SettingsFactsSection`. A company in a row is its `IdentityMark`.
|
|
41
41
|
* @behaviour One object of the ID-1 proportion (856 by 540), dark by nature in every theme. Its
|
|
42
42
|
* top line carries the wordmark and, once Sofia has found it on the company's site, the company's
|
|
43
|
-
* own logo after a hairline
|
|
43
|
+
* own logo after a hairline in its original colours; a company with
|
|
44
44
|
* no logo found has the wordmark alone. Below are the holder's name and the company's domain. No
|
|
45
45
|
* Agent stands on it, and nothing sits in the engraving: a guilloché engraving in
|
|
46
46
|
* `{colors.identity-white}` at 10%. It fills in as the form is typed and answers the pointer. It
|
|
@@ -29,8 +29,7 @@ export type IdentityMarkProps = {
|
|
|
29
29
|
kind: "company";
|
|
30
30
|
name: string;
|
|
31
31
|
/**
|
|
32
|
-
* The company's logo
|
|
33
|
-
* theme, or a square icon in its own colours (an SVG tile), which fills the tile as it is.
|
|
32
|
+
* The company's own logo, kept by lookup in its original colours and proportions.
|
|
34
33
|
*/
|
|
35
34
|
logo?: string;
|
|
36
35
|
/** The company's standing, independent of which directory opened it. */
|
|
@@ -56,7 +55,7 @@ export type IdentityMarkProps = {
|
|
|
56
55
|
* @family Status
|
|
57
56
|
* @when The first thing in a record's row (32), at the head of its object page (64), in a feed or a sidebar identity line (24), on a Library entry (40), for the company at the top of Nadia's list (28): wherever it tells a person which thing they are looking at.
|
|
58
57
|
* @instead An icon beside a card's title, a KPI's label or a section heading only repeats the words and is left out. A picture for a first use or a whole-page moment is the empty state's or the page's own. A model is its `ModelIdentity`.
|
|
59
|
-
* @behaviour Static, except an Agent's orb, which moves with her state. An Agent is always her real orb from the orb engine, at the largest orb size not above the mark's, with no tile and no ring, never an avatar or a painted circle, and `frame` lets the product wrap that orb, such as in the transition that carries her to her page; an app keeps its own logo in its bordered tile on the page ground, or its first letter when it has no logo; a company is its logo
|
|
58
|
+
* @behaviour Static, except an Agent's orb, which moves with her state. An Agent is always her real orb from the orb engine, at the largest orb size not above the mark's, with no tile and no ring, never an avatar or a painted circle, and `frame` lets the product wrap that orb, such as in the transition that carries her to her page; an app keeps its own logo in its bordered tile on the page ground, or its first letter when it has no logo; a company is its own logo, contained whole in a neutral tile in its original colours and proportions, as Vercel shows a project's favicon; its two initials on a compact arch, cobalto for a company and arancio for an approved Partner, until a logo is found or when the stored logo does not load. The edition follows the company's standing, never the directory it was opened from; a person is their picture, then their initials, in a round mark; a record with its own object picture, such as a Library skill or plugin, draws that picture on its kind's ground; a record with no picture of its own takes its kind's own icon, the same icon its section has in the navigation (Mail for a mailbox, a server for an MCP server, a key for a password), in a ringed tile on the card ground; a Library skill takes the purple category ground with the Skills icon and a plugin the `info-soft` ground with the Plugins icon, both without a ring, so the ground says which kind it is, and an entry that has its own object picture draws it on that ground in the icon's place. A company arch has a semicircular top and `{rounded.sm}` bottom corners; a record tile takes `{rounded.sm}` (6 px) corners, `{rounded.md}` (8 px) at 40 and 64; an app's tile takes `{rounded.md}` at every size.
|
|
60
59
|
* @words None of its own: the record's name stands beside it. Initials stand for a company or a person: the first letters of the name's first two words. An app with no logo takes the first letter of its name as a monogram, and no other kind takes letters.
|
|
61
60
|
* @access Decorative beside the record's name. Alone, as in a narrow rail, `label` names it.
|
|
62
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-mark.d.ts","sourceRoot":"","sources":["../../src/components/identity-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAW,KAA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ACpE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,4GAA4G;IAC5G,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CACJ,CAAC;AA+EF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAwEhE"}
|
|
@@ -20,26 +20,6 @@ const TONES = {
|
|
|
20
20
|
company: "bg-nc-identity-cobalto text-nc-identity-white",
|
|
21
21
|
partner: "bg-nc-identity-arancio text-nc-identity-ink",
|
|
22
22
|
};
|
|
23
|
-
const SVG_DATA = "data:image/svg+xml";
|
|
24
|
-
/**
|
|
25
|
-
* Whether the logo is a square icon in its own colours: an SVG data URL whose box is square. The
|
|
26
|
-
* logos Sofia keeps are a raster white ink, never SVG, so everything else is ink for the dark tile.
|
|
27
|
-
*/
|
|
28
|
-
function logoIsColourTile(logo) {
|
|
29
|
-
if (!logo.startsWith(SVG_DATA))
|
|
30
|
-
return false;
|
|
31
|
-
const comma = logo.indexOf(",");
|
|
32
|
-
let svg;
|
|
33
|
-
try {
|
|
34
|
-
const body = logo.slice(comma + 1);
|
|
35
|
-
svg = logo.slice(0, comma).endsWith(";base64") ? atob(body) : decodeURIComponent(body);
|
|
36
|
-
}
|
|
37
|
-
catch {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
const box = /viewBox\s*=\s*["']\s*[-\d.]+[\s,]+[-\d.]+[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(svg);
|
|
41
|
-
return box !== null && box[1] === box[2];
|
|
42
|
-
}
|
|
43
23
|
function identityInitials(name) {
|
|
44
24
|
return name
|
|
45
25
|
.split(/\s+/)
|
|
@@ -72,7 +52,7 @@ function Tile({ kind, label, size, tone, children, }) {
|
|
|
72
52
|
* @family Status
|
|
73
53
|
* @when The first thing in a record's row (32), at the head of its object page (64), in a feed or a sidebar identity line (24), on a Library entry (40), for the company at the top of Nadia's list (28): wherever it tells a person which thing they are looking at.
|
|
74
54
|
* @instead An icon beside a card's title, a KPI's label or a section heading only repeats the words and is left out. A picture for a first use or a whole-page moment is the empty state's or the page's own. A model is its `ModelIdentity`.
|
|
75
|
-
* @behaviour Static, except an Agent's orb, which moves with her state. An Agent is always her real orb from the orb engine, at the largest orb size not above the mark's, with no tile and no ring, never an avatar or a painted circle, and `frame` lets the product wrap that orb, such as in the transition that carries her to her page; an app keeps its own logo in its bordered tile on the page ground, or its first letter when it has no logo; a company is its logo
|
|
55
|
+
* @behaviour Static, except an Agent's orb, which moves with her state. An Agent is always her real orb from the orb engine, at the largest orb size not above the mark's, with no tile and no ring, never an avatar or a painted circle, and `frame` lets the product wrap that orb, such as in the transition that carries her to her page; an app keeps its own logo in its bordered tile on the page ground, or its first letter when it has no logo; a company is its own logo, contained whole in a neutral tile in its original colours and proportions, as Vercel shows a project's favicon; its two initials on a compact arch, cobalto for a company and arancio for an approved Partner, until a logo is found or when the stored logo does not load. The edition follows the company's standing, never the directory it was opened from; a person is their picture, then their initials, in a round mark; a record with its own object picture, such as a Library skill or plugin, draws that picture on its kind's ground; a record with no picture of its own takes its kind's own icon, the same icon its section has in the navigation (Mail for a mailbox, a server for an MCP server, a key for a password), in a ringed tile on the card ground; a Library skill takes the purple category ground with the Skills icon and a plugin the `info-soft` ground with the Plugins icon, both without a ring, so the ground says which kind it is, and an entry that has its own object picture draws it on that ground in the icon's place. A company arch has a semicircular top and `{rounded.sm}` bottom corners; a record tile takes `{rounded.sm}` (6 px) corners, `{rounded.md}` (8 px) at 40 and 64; an app's tile takes `{rounded.md}` at every size.
|
|
76
56
|
* @words None of its own: the record's name stands beside it. Initials stand for a company or a person: the first letters of the name's first two words. An app with no logo takes the first letter of its name as a monogram, and no other kind takes letters.
|
|
77
57
|
* @access Decorative beside the record's name. Alone, as in a narrow rail, `label` names it.
|
|
78
58
|
*/
|
|
@@ -90,7 +70,7 @@ export function IdentityMark(props) {
|
|
|
90
70
|
return (_jsxs(Avatar, { "data-kind": "person", "data-slot": "identity-mark", style: { width: size, height: size }, ...avatarName(props.label), children: [props.image ? _jsx(AvatarImage, { alt: "", src: props.image }) : null, _jsx(AvatarFallback, { style: { fontSize: measures.initials }, children: identityInitials(props.name) })] }));
|
|
91
71
|
case "company": {
|
|
92
72
|
const initials = (_jsx(Tile, { kind: "company", label: props.label, size: size, tone: props.edition ?? "company", children: _jsx("span", { "aria-hidden": "true", className: "leading-none font-semibold", style: { fontSize: measures.initials }, children: identityInitials(props.name) }) }));
|
|
93
|
-
return props.logo ? (_jsx(CompanyLogo, {
|
|
73
|
+
return props.logo ? (_jsx(CompanyLogo, { fallback: initials, logo: props.logo, naming: naming(props.label), size: size })) : (initials);
|
|
94
74
|
}
|
|
95
75
|
case "record":
|
|
96
76
|
return (_jsx(Tile, { kind: "record", label: props.label, size: size, tone: props.tone ?? "neutral", children: props.picture ? (_jsx("img", { alt: "", className: "size-[84%] object-contain", "data-slot": "identity-mark-picture", src: props.picture })) : (_jsx(props.icon, { "aria-hidden": "true", size: measures.icon })) }));
|
|
@@ -3,10 +3,8 @@ import { type ReactNode } from "react";
|
|
|
3
3
|
* A company's logo on its tile, and `fallback`, its initials, when the stored logo does not load,
|
|
4
4
|
* so a broken address never leaves an empty tile.
|
|
5
5
|
*/
|
|
6
|
-
export declare function CompanyLogo({ logo,
|
|
6
|
+
export declare function CompanyLogo({ logo, size, naming, fallback, }: {
|
|
7
7
|
logo: string;
|
|
8
|
-
colourTile: boolean;
|
|
9
|
-
edition: "company" | "partner";
|
|
10
8
|
size: number;
|
|
11
9
|
naming: {
|
|
12
10
|
role: "img";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-logo.d.ts","sourceRoot":"","sources":["../../src/internal/company-logo.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"company-logo.d.ts","sourceRoot":"","sources":["../../src/internal/company-logo.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,CAAC;IACxE,QAAQ,EAAE,SAAS,CAAC;CACrB,+TAoBA"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { cn } from "../lib/utils.js";
|
|
5
4
|
/**
|
|
6
5
|
* A company's logo on its tile, and `fallback`, its initials, when the stored logo does not load,
|
|
7
6
|
* so a broken address never leaves an empty tile.
|
|
8
7
|
*/
|
|
9
|
-
export function CompanyLogo({ logo,
|
|
8
|
+
export function CompanyLogo({ logo, size, naming, fallback, }) {
|
|
10
9
|
const [failedLogo, setFailedLogo] = useState(null);
|
|
11
10
|
if (failedLogo === logo)
|
|
12
11
|
return fallback;
|
|
13
|
-
return (_jsx("span", { className:
|
|
14
|
-
? size >= 40
|
|
15
|
-
? "rounded-md"
|
|
16
|
-
: "rounded-sm"
|
|
17
|
-
: cn("rounded-t-full rounded-b-sm border-2 bg-nc-identity-ink", edition === "partner" ? "border-nc-identity-arancio" : "border-nc-identity-cobalto")), "data-kind": "company", "data-slot": "identity-mark", style: { width: size, height: size }, ...naming, children: _jsx("img", { alt: "", className: colourTile ? "size-full object-contain" : "max-h-[60%] max-w-[78%] object-contain", "data-slot": "identity-mark-logo", onError: () => setFailedLogo(logo), src: logo }) }));
|
|
12
|
+
return (_jsx("span", { className: "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-nc-card-graphite ring-1 ring-border ring-inset", "data-kind": "company", "data-slot": "identity-mark", style: { width: size, height: size }, ...naming, children: _jsx("img", { alt: "", className: "size-full object-contain", "data-slot": "identity-mark-logo", onError: () => setFailedLogo(logo), src: logo }) }));
|
|
18
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"AAwDA,iBAAS,oBAAoB,gCAiB5B;AAYD,iBAAS,aAAa,gCA2DrB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;CAoQQ,CAAC"}
|
|
@@ -22,8 +22,7 @@ import { StatusBadge } from "../../components/status-badge.js";
|
|
|
22
22
|
import { Tag } from "../../components/tag.js";
|
|
23
23
|
import { ObjectFactValue } from "../../components/object-fact-value.js";
|
|
24
24
|
import { ARANCIO, COBALTO, nothing, VERDE } from "../samples.js";
|
|
25
|
-
|
|
26
|
-
const SAMPLE_LOGO = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 16"><text x="0" y="13" fill="white" font-family="sans-serif" font-size="14" font-weight="700">ROSSI</text></svg>')}`;
|
|
25
|
+
const SAMPLE_LOGO = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 16"><rect width="64" height="16" fill="white"/><text x="0" y="13" fill="navy" font-family="sans-serif" font-size="14" font-weight="700">ROSSI</text></svg>')}`;
|
|
27
26
|
const SAMPLE_ICON = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="7" fill="royalblue"/><path d="M10 9h8a5 5 0 0 1 0 10h-4v5h-4z" fill="white"/></svg>')}`;
|
|
28
27
|
const MEMBERS = [
|
|
29
28
|
{ id: "1", name: "Ada Rossi" },
|
|
@@ -714,7 +714,7 @@ export const USAGE = [
|
|
|
714
714
|
summary: "What says which thing a record is, at a fixed size at the start of its row, its object's head or its feed line: an Agent's orb, an app's logo, a company's initials, a person's picture, or a record kind's icon on its tile.",
|
|
715
715
|
when: "The first thing in a record's row (32), at the head of its object page (64), in a feed or a sidebar identity line (24), on a Library entry (40), for the company at the top of Nadia's list (28): wherever it tells a person which thing they are looking at.",
|
|
716
716
|
instead: "An icon beside a card's title, a KPI's label or a section heading only repeats the words and is left out. A picture for a first use or a whole-page moment is the empty state's or the page's own. A model is its `ModelIdentity`.",
|
|
717
|
-
behaviour: "Static, except an Agent's orb, which moves with her state. An Agent is always her real orb from the orb engine, at the largest orb size not above the mark's, with no tile and no ring, never an avatar or a painted circle, and `frame` lets the product wrap that orb, such as in the transition that carries her to her page; an app keeps its own logo in its bordered tile on the page ground, or its first letter when it has no logo; a company is its logo
|
|
717
|
+
behaviour: "Static, except an Agent's orb, which moves with her state. An Agent is always her real orb from the orb engine, at the largest orb size not above the mark's, with no tile and no ring, never an avatar or a painted circle, and `frame` lets the product wrap that orb, such as in the transition that carries her to her page; an app keeps its own logo in its bordered tile on the page ground, or its first letter when it has no logo; a company is its own logo, contained whole in a neutral tile in its original colours and proportions, as Vercel shows a project's favicon; its two initials on a compact arch, cobalto for a company and arancio for an approved Partner, until a logo is found or when the stored logo does not load. The edition follows the company's standing, never the directory it was opened from; a person is their picture, then their initials, in a round mark; a record with its own object picture, such as a Library skill or plugin, draws that picture on its kind's ground; a record with no picture of its own takes its kind's own icon, the same icon its section has in the navigation (Mail for a mailbox, a server for an MCP server, a key for a password), in a ringed tile on the card ground; a Library skill takes the purple category ground with the Skills icon and a plugin the `info-soft` ground with the Plugins icon, both without a ring, so the ground says which kind it is, and an entry that has its own object picture draws it on that ground in the icon's place. A company arch has a semicircular top and `{rounded.sm}` bottom corners; a record tile takes `{rounded.sm}` (6 px) corners, `{rounded.md}` (8 px) at 40 and 64; an app's tile takes `{rounded.md}` at every size.",
|
|
718
718
|
words: "None of its own: the record's name stands beside it. Initials stand for a company or a person: the first letters of the name's first two words. An app with no logo takes the first letter of its name as a monogram, and no other kind takes letters.",
|
|
719
719
|
access: "Decorative beside the record's name. Alone, as in a narrow rail, `label` names it.",
|
|
720
720
|
},
|
|
@@ -1748,7 +1748,7 @@ export const USAGE = [
|
|
|
1748
1748
|
summary: "The company's nadicode card: what the person is making while they sign up, and what the website shows being issued.",
|
|
1749
1749
|
when: "Sign-up, where a person watches their company's card being made, and the website, which shows one being issued. Beside a wide form it fills in as the form is typed; on a phone the form keeps the screen, and the card appears once it is issued. The account's Profile shows the person the same card. The Partner invitation panel opens with its card, the `partner` edition, on the identity plane, as the invitation it shares, and the invitation dialog shows the card the invited company will be issued. A page an invitation leads to shows one card, the person's own: who invited them is named above the page's heading, never as a second card beside it.",
|
|
1750
1750
|
instead: "A company's facts are `SettingsFactsSection`. A company in a row is its `IdentityMark`.",
|
|
1751
|
-
behaviour: "One object of the ID-1 proportion (856 by 540), dark by nature in every theme. Its top line carries the wordmark and, once Sofia has found it on the company's site, the company's own logo after a hairline
|
|
1751
|
+
behaviour: "One object of the ID-1 proportion (856 by 540), dark by nature in every theme. Its top line carries the wordmark and, once Sofia has found it on the company's site, the company's own logo after a hairline in its original colours; a company with no logo found has the wordmark alone. Below are the holder's name and the company's domain. No Agent stands on it, and nothing sits in the engraving: a guilloché engraving in `{colors.identity-white}` at 10%. It fills in as the form is typed and answers the pointer. It is the one object besides an Agent that moves on its own, once: when it first appears, and again when the account is asked for and it is issued, it turns in the light in 2.2 s, leaning one way and back while the light crosses it from corner to corner, so a person sees it is a card that answers the hand, and then it is still. The foil wakes as the pointer comes within one card width and eases toward it; a pointer that near ends the turn, and a pointer anywhere else on the page moves nothing. Where the browser has WebGPU, its foil is vgpu's holographic card shader: matte graphite (`{colors.card-graphite}`, its own tone, so the card keeps its look whatever the heights do) whose etched contours diffract the pointer's light, turning toward it by at most 9°. The diffraction and its pearlescent wash fall in pure bands of the identity hues, never a colour between two of them: a company's card takes the cool half, cobalto, azzurro and verde, and a Partner's the warm half, giallo, arancio and rosso. Without WebGPU the engraving catches the light as flat, hard-edged stripes of the same hues. Under reduced motion the card keeps still and the light still finds the foil.",
|
|
1752
1752
|
words: "Every word it shows is a prop from the product's catalogue.",
|
|
1753
1753
|
access: "Hidden from assistive technology and holds nothing interactive; the form owns every word the card repeats.",
|
|
1754
1754
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.128",
|
|
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.
|
|
86
|
+
"@nadicodeai/design-system": "12.1.128",
|
|
87
87
|
"@tanstack/react-table": "^9.3.1",
|
|
88
88
|
"@vgpu/wgsl": "0.6.0",
|
|
89
89
|
"class-variance-authority": "^0.7.1",
|