@nadicodeai/ui 12.1.192 → 12.1.193

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. A long name wraps inside the card. A text object, with no picture, ends
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;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,SAAS,CAAC,EACjB,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,+BAsDhB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
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. A long name wraps inside the card. A text object, with no picture, ends
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: [_jsxs("div", { className: cn("grid items-start gap-nadicode-sm px-(--card-spacing)", hasAction && "grid-cols-[minmax(0,1fr)_auto]", hasVisual && "pb-nadicode-md"), "data-slot": "agent-card-header", children: [_jsxs("div", { className: "grid min-w-0 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", "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
+ 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 };
@@ -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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.192",
3
+ "version": "12.1.193",
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.192",
79
+ "@nadicodeai/design-system": "12.1.193",
80
80
  "@tanstack/react-table": "^9.3.1",
81
81
  "@vgpu/wgsl": "0.6.0",
82
82
  "class-variance-authority": "^0.7.1",