@nadicodeai/ui 12.1.192 → 12.1.194
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.
|
@@ -24,7 +24,8 @@ type AgentCardProps = Omit<React.ComponentProps<typeof Card>, "children"> & {
|
|
|
24
24
|
* meta and an optional status row, and under them the preview tile, inset 32 px from the card's
|
|
25
25
|
* leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its
|
|
26
26
|
* middle on the recessed ground. The one action stands at the name's right, as a card's one
|
|
27
|
-
* header action does
|
|
27
|
+
* header action does while the card's content is at least 18rem wide; a narrower card puts it
|
|
28
|
+
* under the words, so the name keeps the card's width. A long name wraps inside the card. A text object, with no picture, ends
|
|
28
29
|
* after its words.
|
|
29
30
|
* @words The name as the Agent calls herself; the job in one line (*Writes quotes from the price
|
|
30
31
|
* list*); the meta as short facts joined by a middle dot (*6 skills · v1.2.0*); the action verb
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAA8B,MAAM,mBAAmB,CAAC;AAGrE,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAMF
|
|
1
|
+
{"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAA8B,MAAM,mBAAmB,CAAC;AAGrE,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,SAAS,CAAC,EACjB,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,+BA4DhB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
|
@@ -19,7 +19,8 @@ function hasSlotContent(value) {
|
|
|
19
19
|
* meta and an optional status row, and under them the preview tile, inset 32 px from the card's
|
|
20
20
|
* leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its
|
|
21
21
|
* middle on the recessed ground. The one action stands at the name's right, as a card's one
|
|
22
|
-
* header action does
|
|
22
|
+
* header action does while the card's content is at least 18rem wide; a narrower card puts it
|
|
23
|
+
* under the words, so the name keeps the card's width. A long name wraps inside the card. A text object, with no picture, ends
|
|
23
24
|
* after its words.
|
|
24
25
|
* @words The name as the Agent calls herself; the job in one line (*Writes quotes from the price
|
|
25
26
|
* list*); the meta as short facts joined by a middle dot (*6 skills · v1.2.0*); the action verb
|
|
@@ -32,6 +33,6 @@ function AgentCard({ action, className, job, meta, name, status, visual, ...prop
|
|
|
32
33
|
const hasMeta = hasSlotContent(meta);
|
|
33
34
|
const hasAction = hasSlotContent(action);
|
|
34
35
|
const hasVisual = hasSlotContent(visual);
|
|
35
|
-
return (_jsxs(Card, { className: cn("h-full gap-0", hasVisual && "pb-0", className), ...props, children: [
|
|
36
|
+
return (_jsxs(Card, { className: cn("h-full gap-0", hasVisual && "pb-0", className), ...props, children: [_jsx("div", { className: cn("@container/agent-card-header px-(--card-spacing)", hasVisual && "pb-nadicode-md"), "data-slot": "agent-card-header", children: _jsxs("div", { className: cn("grid items-start gap-nadicode-sm", hasAction && "@2xs/agent-card-header:grid-cols-[minmax(0,1fr)_auto]"), children: [_jsxs("div", { className: "grid min-w-0 grid-cols-[minmax(0,1fr)] content-start gap-nadicode-xxs", children: [_jsx(CardTitle, { className: "wrap-break-word", children: name }), _jsx(CardDescription, { className: "line-clamp-2", children: job }), hasMeta ? (_jsx("div", { className: "pt-nadicode-xxs text-xs text-muted-foreground", "data-slot": "agent-card-meta", children: meta })) : null, hasStatus ? (_jsx("div", { className: "flex flex-wrap items-center gap-nadicode-xxs pt-nadicode-xxs", "data-slot": "agent-card-status", children: status })) : null] }), hasAction ? (_jsx("div", { className: "shrink-0 justify-self-start", "data-slot": "agent-card-action", children: action })) : null] }) }), hasVisual ? (_jsx("div", { className: "mt-auto ml-8 grid h-36 place-items-center overflow-hidden rounded-tl-md border-t border-l border-border bg-recessed pt-nadicode-md", "data-slot": "agent-card-visual", children: visual })) : null] }));
|
|
36
37
|
}
|
|
37
38
|
export { AgentCard };
|
|
@@ -27,7 +27,7 @@ declare const itemVariants: (props?: ({
|
|
|
27
27
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
28
28
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
29
29
|
* Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`. An object a person opens, with a mark, facts and a status, is a `RecordList` row; the same row edited in place is a `RecordList` with an `editor`. A page whose job is one collection is `CollectionPage`. Agents in a gallery are `AgentListRow`; Library entries `CatalogEntry`.
|
|
30
|
-
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. A button in the row is `size="sm"` (32 px). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue.
|
|
30
|
+
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. A button in the row is `size="sm"` (32 px). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue.
|
|
31
31
|
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
32
32
|
* Ours: the third control goes in the row's three dots.
|
|
33
33
|
* “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
|
package/dist/components/item.js
CHANGED
|
@@ -48,7 +48,7 @@ const itemVariants = cva("nc-transition-paint group/item flex w-full flex-wrap i
|
|
|
48
48
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
49
49
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
50
50
|
* Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`. An object a person opens, with a mark, facts and a status, is a `RecordList` row; the same row edited in place is a `RecordList` with an `editor`. A page whose job is one collection is `CollectionPage`. Agents in a gallery are `AgentListRow`; Library entries `CatalogEntry`.
|
|
51
|
-
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. A button in the row is `size="sm"` (32 px). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue.
|
|
51
|
+
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. A button in the row is `size="sm"` (32 px). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue.
|
|
52
52
|
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
53
53
|
* Ours: the third control goes in the row's three dots.
|
|
54
54
|
* “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
|
|
@@ -91,7 +91,7 @@ function ItemMedia({ className, variant = "default", ...props }) {
|
|
|
91
91
|
return (_jsx("div", { "data-slot": "item-media", "data-variant": variant, className: cn(itemMediaVariants({ variant, className })), ...props }));
|
|
92
92
|
}
|
|
93
93
|
function ItemContent({ className, ...props }) {
|
|
94
|
-
return (_jsx("div", { "data-slot": "item-content", className: cn("flex min-w-
|
|
94
|
+
return (_jsx("div", { "data-slot": "item-content", className: cn("flex min-w-[min(8rem,100%)] flex-1 flex-col [&+[data-slot=item-content]]:min-w-0 [&+[data-slot=item-content]]:flex-none", className), ...props }));
|
|
95
95
|
}
|
|
96
96
|
function ItemTitle({ className, ...props }) {
|
|
97
97
|
return (_jsx("div", { "data-slot": "item-title", className: cn("line-clamp-1 flex w-fit items-center gap-2 text-left text-sm font-semibold underline-offset-4", className), ...props }));
|
|
@@ -1077,7 +1077,7 @@ export const USAGE = [
|
|
|
1077
1077
|
summary: "One Agent, or another pictured object, as a card in a gallery, as Vercel's Templates gallery draws a template.",
|
|
1078
1078
|
when: "A gallery of Agents or templates where each one is chosen by its picture and its job: the Agents to create from, the templates of a hub. An Agent shown as an object is this one card shape wherever it appears, in the Portal's Library and in Nadia's gallery alike.",
|
|
1079
1079
|
instead: "A list of Agents to open is `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page heading. A Library skill or plugin is a row of its collection (`CollectionPage`).",
|
|
1080
|
-
behaviour: "Vercel's template card: the name over its job, cut after two lines, then the small meta and an optional status row, and under them the preview tile, inset 32 px from the card's leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its middle on the recessed ground. The one action stands at the name's right, as a card's one header action does. A long name wraps inside the card. A text object, with no picture, ends after its words.",
|
|
1080
|
+
behaviour: "Vercel's template card: the name over its job, cut after two lines, then the small meta and an optional status row, and under them the preview tile, inset 32 px from the card's leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its middle on the recessed ground. The one action stands at the name's right, as a card's one header action does while the card's content is at least 18rem wide; a narrower card puts it under the words, so the name keeps the card's width. A long name wraps inside the card. A text object, with no picture, ends after its words.",
|
|
1081
1081
|
words: "The name as the Agent calls herself; the job in one line (*Writes quotes from the price list*); the meta as short facts joined by a middle dot (*6 skills · v1.2.0*); the action verb and noun (*Create Agent*).",
|
|
1082
1082
|
access: "The name is the card's heading text; the orb is decorative beside it; the action is a real button or link.",
|
|
1083
1083
|
},
|
|
@@ -1176,7 +1176,7 @@ export const USAGE = [
|
|
|
1176
1176
|
summary: "A row said in a sentence: media, a title, one line of description, trailing actions.",
|
|
1177
1177
|
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: things best said in a sentence, with one or two controls and no columns: a connected account, a session, a notification preference, a Library shelf row, an activity row. Media, a title over its description, trailing controls.",
|
|
1178
1178
|
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity) Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`. An object a person opens, with a mark, facts and a status, is a `RecordList` row; the same row edited in place is a `RecordList` with an `editor`. A page whose job is one collection is `CollectionPage`. Agents in a gallery are `AgentListRow`; Library entries `CatalogEntry`.",
|
|
1179
|
-
behaviour: "A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. A button in the row is `size=\"sm\"` (32 px). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue. “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity) Ours: the third control goes in the row's three dots. “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity) Ours: `ItemSkeleton` stands in a `SkeletonRegion`, still, with no shimmer.",
|
|
1179
|
+
behaviour: "A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. A button in the row is `size=\"sm\"` (32 px). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue. “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity) Ours: the third control goes in the row's three dots. “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity) Ours: `ItemSkeleton` stands in a `SkeletonRegion`, still, with no shimmer.",
|
|
1180
1180
|
words: "“Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity) “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity) Ours: the title is the name, or what happened as a short sentence (*Nadia filed 12 invoices*), and the description one sentence, in sentence case: *Remove member*, never *Remove*.",
|
|
1181
1181
|
access: "Draw each row of a group `render={<li />}`, so the group is a list of list items. A linked item's text is its name; image media is decorative beside the title. “For multi-select rows, the leading `Checkbox` carries `aria-label=\"Select {entity name}\"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity) Ours: the box of `ItemSelect` is named *Select {name}* in the product's words.",
|
|
1182
1182
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.194",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@base-ui/react": "^1.9.0",
|
|
77
77
|
"@iconify-icons/logos": "^2.0.3",
|
|
78
78
|
"@iconify/react": "^6.0.2",
|
|
79
|
-
"@nadicodeai/design-system": "12.1.
|
|
79
|
+
"@nadicodeai/design-system": "12.1.194",
|
|
80
80
|
"@tanstack/react-table": "^9.3.1",
|
|
81
81
|
"@vgpu/wgsl": "0.6.0",
|
|
82
82
|
"class-variance-authority": "^0.7.1",
|