@nadicodeai/ui 12.1.199 → 12.1.201
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/agent-card.d.ts +54 -22
- package/dist/components/agent-card.d.ts.map +1 -1
- package/dist/components/agent-card.js +47 -20
- package/dist/components/agent-orb.d.ts +2 -2
- package/dist/components/agent-orb.js +2 -2
- package/dist/components/catalog-card.d.ts +27 -0
- package/dist/components/catalog-card.d.ts.map +1 -0
- package/dist/components/catalog-card.js +19 -0
- package/dist/components/drawer-steps.d.ts +31 -0
- package/dist/components/drawer-steps.d.ts.map +1 -0
- package/dist/components/drawer-steps.js +27 -0
- package/dist/components/form-drawer.d.ts +11 -6
- package/dist/components/form-drawer.d.ts.map +1 -1
- package/dist/components/form-drawer.js +2 -2
- package/dist/components/library-shelf.d.ts +20 -4
- package/dist/components/library-shelf.d.ts.map +1 -1
- package/dist/components/library-shelf.js +28 -8
- package/dist/components/object-workspace.d.ts.map +1 -1
- package/dist/components/object-workspace.js +3 -1
- package/dist/components/record-sheet.d.ts +19 -6
- package/dist/components/record-sheet.d.ts.map +1 -1
- package/dist/components/record-sheet.js +11 -6
- package/dist/components/sheet.d.ts +4 -2
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +5 -3
- package/dist/components/sidebar-sections.d.ts +3 -1
- package/dist/components/sidebar-sections.d.ts.map +1 -1
- package/dist/components/sidebar-sections.js +3 -3
- package/dist/components/step-cards.d.ts +28 -0
- package/dist/components/step-cards.d.ts.map +1 -0
- package/dist/components/step-cards.js +21 -0
- package/dist/internal/form-drawer-frame.d.ts +2 -0
- package/dist/internal/form-drawer-frame.d.ts.map +1 -1
- package/dist/internal/form-drawer-frame.js +3 -1
- package/dist/showcase/specimens/compositions.d.ts +6 -0
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +39 -1
- package/dist/showcase/specimens/data.d.ts +1 -0
- package/dist/showcase/specimens/data.d.ts.map +1 -1
- package/dist/showcase/specimens/data.js +4 -3
- package/dist/showcase/specimens/index.d.ts +4 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/usage.generated.d.ts +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +61 -17
- package/package.json +2 -2
|
@@ -91,6 +91,17 @@ export const USAGE = [
|
|
|
91
91
|
words: '"`title` is Title Case, `Verb + Noun`, a statement — never a question. `Delete Project`, not `Delete this project?`." (https://vercel.com/geist/destructive-action-modal) "`description` is sentence case, names the consequence, and interpolates the specific resource when relevant. `<b>my-project</b> and all its deployments will be permanently deleted.` reads stronger than `This project and all its deployments will be deleted.`." (https://vercel.com/geist/destructive-action-modal) "`confirmLabel` matches the title 1:1. Never generic (`Confirm`, `OK`, `Continue`), never a bare verb (`Delete`)." (https://vercel.com/geist/destructive-action-modal) "`cancelLabel` defaults to `Cancel`. Override when Cancel is ambiguous, such as `Keep Turn Running` when the primary action is itself a cancellation." (https://vercel.com/geist/destructive-action-modal) "`verificationPhrase`: for entity deletes, type the **resource name itself** (`my-project`) and pair with `verificationLabel="project name"` so the prompt reads `To confirm, type the project name "my-project"`. That\'s the canonical signal that the user knows which thing they\'re acting on. Fall back to a lowercase verb phrase (`disable vercel authentication`) only when there\'s no entity to name." (https://vercel.com/geist/destructive-action-modal) "`irreversibleDescription` names the specific action and resource and ends with `cannot be undone.` — `Deleting my-project cannot be undone.` rather than the generic `This cannot be undone.`. Omit the prop entirely for reversible actions; the prop\'s absence is the signal, not a falsy value." (https://vercel.com/geist/destructive-action-modal) "`error` surfaces the API failure verbatim in Vercel voice: `Couldn\'t save settings. Try again.`. Never dump a raw error object." (https://vercel.com/geist/destructive-action-modal) "Pair the post-confirm success toast verb 1:1 with the primary button: `Delete Project` button, `Project deleted` toast. Never `Project removed`." (https://vercel.com/geist/destructive-action-modal) "Close irreversible bodies with `This cannot be undone.`; close cascade-only bodies with `Some effects cannot be undone.`. Don’t claim full irreversibility for a partial cascade." (https://vercel.com/geist/modal) Ours: the title is sentence case and names the record, "Remove pec@acme.it", and the confirm repeats the verb and the noun, "Remove mailbox", so the two share a verb and not every word; its success toast uses the same verb ("Mailbox removed"). The description names the record in medium weight.',
|
|
92
92
|
access: '"The verification input is associated with its prompt via `aria-labelledby` + `htmlFor`. Screen readers announce the full prompt (`To confirm, type "delete my-project"`) on focus." (https://vercel.com/geist/destructive-action-modal) "The Warning icon in the irreversibility band is `aria-hidden`; the sentence carries the meaning so nothing is announced twice." (https://vercel.com/geist/destructive-action-modal) "Focus stays inside the modal across an `error` transition so the user can retry without losing context. After success, return focus to the trigger." (https://vercel.com/geist/destructive-action-modal) "Set `aria-labelledby` to the `Modal.Title` id so screen readers announce the title on open." (https://vercel.com/geist/modal) "Keep the Cancel button literally `Cancel` so screen-reader users hear a stable dismissal label across destructive flows." (https://vercel.com/geist/modal) Ours: `role="alertdialog"` named by its title and described by its consequence; the note is `role="note"` with its icon hidden. Focus starts on Cancel, or in the field with `verify`.',
|
|
93
93
|
},
|
|
94
|
+
{
|
|
95
|
+
name: "DrawerSteps",
|
|
96
|
+
module: "drawer-steps",
|
|
97
|
+
family: "Compositions",
|
|
98
|
+
summary: "A job in a drawer as a stack of cards, one per step, every step in sight from the start.",
|
|
99
|
+
when: 'Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, as Vercel\'s Add Connection: what they chose, then the steps that remain.',
|
|
100
|
+
instead: 'Steps a person follows on a page are `NumberedSteps`; a setup whose steps replace each other around a wait is `FormDrawer` with `job="steps"`.',
|
|
101
|
+
behaviour: "One card per step, 16 px apart. Each card's first row is 20 px of mark and its title, 24 px in from its sides. What was chosen stands first with its own mark, and what the person should know about it under that; the current step has its number in ink, its content and its actions in a band under it. The orb may overhang its 20 px, since its drawn edge is inside its box.",
|
|
102
|
+
words: "A step's title is one or two words: *Review*, *Configure*.",
|
|
103
|
+
access: 'An ordered list; the current step carries `aria-current="step"`; the drawn numbers are hidden, since the list reads the position.',
|
|
104
|
+
},
|
|
94
105
|
{
|
|
95
106
|
name: "EntryPicture",
|
|
96
107
|
module: "entry-picture",
|
|
@@ -129,9 +140,9 @@ export const USAGE = [
|
|
|
129
140
|
module: "form-drawer",
|
|
130
141
|
family: "Compositions",
|
|
131
142
|
summary: "The right-side sheet for a catalogue or a setup in steps, at one width.",
|
|
132
|
-
when: "Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code.",
|
|
143
|
+
when: "Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code; or, with `job=\"stack\"` and a `DrawerSteps`, making something from a shelf's card with what it holds in sight, as Vercel's Add Connection: an Agent from an Agent template.",
|
|
133
144
|
instead: "\"Don’t use Sheet to confirm destructive actions. The default `modal=false` keeps the page interactive, which weakens severity for a delete or revoke.\" (https://vercel.com/geist/sheet) Ours: a new record from a few fields is a `FormDialog`; a record already in a list edits in its row with `RowEditForm`; a fact on the record's own page changes in place in its section; a consequence is confirmed in a `ConfirmDialog`; a phone's short job is a `Drawer`.",
|
|
134
|
-
behaviour: '"Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet\'s one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job\'s name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. How long it stays open while work goes on follows the product-design skill\'s rule/wait-shows-where-it-lives and living-elements.md "System waits".',
|
|
145
|
+
behaviour: '"Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet\'s one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job\'s name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. With `job="stack"` it is 658 px wide from `lg`, for the cards it holds, with no step line over the title and no footer: each card has its own actions. How long it stays open while work goes on follows the product-design skill\'s rule/wait-shows-where-it-lives and living-elements.md "System waits".',
|
|
135
146
|
words: '"Title is Title Case and names the entity (`Deployment Details`, `Member Profile`), not the page action." (https://vercel.com/geist/sheet) "Body is read-mostly: sentence case prose with Title Case sub-headings. Action buttons are optional; when present, follow `Verb + Noun`." (https://vercel.com/geist/sheet) Ours: the title is sentence case and names the job and its object: "Connect Telegram", "Add a skill". The step reads "Step N of M". The primary says what it does: "Connect", "Continue", never "OK".',
|
|
136
147
|
access: '"Trap focus inside the sheet while it’s open and return focus to the trigger row on close so keyboard users keep their place in the list." (https://vercel.com/geist/sheet) "Provide a visible close button labeled `Close` (or an icon button with `aria-label="Close"`) since clicking outside doesn’t dismiss." (https://vercel.com/geist/sheet) "Announce the sheet with `aria-labelledby` pointing at the title; pair it with `aria-describedby` only when the body is short and load-bearing." (https://vercel.com/geist/sheet) Ours: a modal dialog named by its title; focus returns to the opener on close, or to `finalFocus` when the opener is gone. The step is read before the title.',
|
|
137
148
|
},
|
|
@@ -150,10 +161,10 @@ export const USAGE = [
|
|
|
150
161
|
name: "LibraryShelf",
|
|
151
162
|
module: "library-shelf",
|
|
152
163
|
family: "Compositions",
|
|
153
|
-
summary: "A Library shelf: the one line saying what it holds, the search, then the reusable things a person adds, as two-column entries or Agent template cards.",
|
|
154
|
-
when: "A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery.",
|
|
164
|
+
summary: "A Library shelf: the one line saying what it holds, the search, then the reusable things a person adds, as two-column entries, or Agent template cards or rows.",
|
|
165
|
+
when: "A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards under section titles, as Vercel's Browse Connectors: Nadia's Browse apps (`galleries`).",
|
|
155
166
|
instead: "The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.",
|
|
156
|
-
behaviour: "The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates three to a row
|
|
167
|
+
behaviour: "The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view=\"rows\"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.",
|
|
157
168
|
words: "The product words every string: the optional definition (one sentence on what the shelf holds), the search's label (\"Search skills\"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.",
|
|
158
169
|
access: "Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.",
|
|
159
170
|
},
|
|
@@ -217,11 +228,11 @@ export const USAGE = [
|
|
|
217
228
|
module: "record-sheet",
|
|
218
229
|
family: "Compositions",
|
|
219
230
|
summary: "One record from a list, looked at in a sheet at the right edge, then back to the list.",
|
|
220
|
-
when: "A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row.",
|
|
221
|
-
instead: "A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.",
|
|
222
|
-
behaviour: "Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px. The header holds the record's name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.",
|
|
231
|
+
when: "A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`).",
|
|
232
|
+
instead: "A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own beyond the records it holds has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.",
|
|
233
|
+
behaviour: "Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.",
|
|
223
234
|
words: "The title is the record's own name, as its row shows it. The footer's command names where it goes: \"Open Beta Studio\".",
|
|
224
|
-
access: "A dialog named by its title, not `modal
|
|
235
|
+
access: "A dialog named by its title, not `modal` while it is only read: no scrim, and focus stays inside it; `modal`, with the scrim, while it holds records or a setup. Escape and Close close it. Focus returns to the row it opened from (`finalFocus`) after every close but a mouse, touch or pen one, as `Sheet` does by default; a caller that passes its own `finalFocus` decides. The payload is a read-only text area named by its label.",
|
|
225
236
|
},
|
|
226
237
|
{
|
|
227
238
|
name: "RowEditForm",
|
|
@@ -256,6 +267,17 @@ export const USAGE = [
|
|
|
256
267
|
words: '"Helper text is sentence case, one sentence with a trailing period, on a sibling element wired through `aria-describedby`." (https://vercel.com/geist/input) Ours: the description is that helper text for the whole card, and no field has its own. "Render an optional one-sentence description as a sibling under the label that explains ON only. Don’t describe OFF; it’s the negation." (https://vercel.com/geist/toggle) Ours: a card of one switch says in its description what turning it on does. The title names the values ("Personal details"); the description says what changing them does, in one line; the footer line is a Learn more link, a limit ("Use 32 characters at most."), what stays unaffected, or what is blocked and why ("Ask an owner to change this."); Save and Saving come from the product\'s catalogue, and so does the toast a `saved` callback raises; a delete card\'s description opens "Permanently delete".',
|
|
257
268
|
access: "\"Provide an accessible name through `children`, `aria-label`, or `aria-labelledby`.\" (https://vercel.com/geist/toggle) Ours: the title is the section's h2, or an h3 with `headingLevel` inside an ObjectPage's row, and names the form that saves it. The footer's line is one status, announced politely; a failure under a field marks the control invalid and describes it. Locked fields are inert, so the section's title, description and reason are what a screen reader meets.",
|
|
258
269
|
},
|
|
270
|
+
{
|
|
271
|
+
name: "StepCards",
|
|
272
|
+
module: "step-cards",
|
|
273
|
+
family: "Compositions",
|
|
274
|
+
summary: "The steps of one setup, one numbered card each, inside its drawer, as Vercel's Add Connection draws them.",
|
|
275
|
+
when: "A setup in a drawer whose steps a person should see ahead of them, with what each settled: connecting an app in Nadia, through `RecordSheet`'s `steps`.",
|
|
276
|
+
instead: 'A setup told as "Step 2 of 3" over the drawer\'s title is `FormDrawer` with `job="steps"`. Steps a person does in any order, each done elsewhere, are a `ProgressChecklist`.',
|
|
277
|
+
behaviour: "One hairline card a step, in order, 12 px apart. The current one has a filled number and opens its content under its title. A done one shows what it settled in its title's place, or a check beside its title; one still to come is its muted number and title, with nothing under it. Only the current step ever holds controls.",
|
|
278
|
+
words: 'Each title names the step in a word or two: "Name", "Sign in". A done step says what was settled: the app, the account\'s name.',
|
|
279
|
+
access: 'An ordered list named by `label`, the current step marked `aria-current="step"`.',
|
|
280
|
+
},
|
|
259
281
|
{
|
|
260
282
|
name: "useCatalogRows",
|
|
261
283
|
module: "catalog-row",
|
|
@@ -679,7 +701,7 @@ export const USAGE = [
|
|
|
679
701
|
module: "agent-orb",
|
|
680
702
|
family: "Status",
|
|
681
703
|
summary: "An Agent, anywhere: her orb, the only thing that moves on its own.",
|
|
682
|
-
when: "An Agent, anywhere: 20 in the sidebar, 32 in a row, 64 on her Profile card
|
|
704
|
+
when: "An Agent, anywhere: 20 in the sidebar, 32 in a row, 40 in a gallery's row, 64 on her Profile card and an Agent card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and 160 px, and no other. Detail follows the size the orb is drawn at: up to 32 px it draws the engine's lightest dot profile, at 40 px the middle one and from 64 px the full one, since a small orb cannot show the full profile's dots apart. On a photograph the orb takes the stronger `presence=\"over-picture\"` weight; everywhere else it is `plain`.",
|
|
683
705
|
instead: 'A person is an `Avatar`. The system\'s own wait is the waiting line, never an orb. An orb in artwork, such as a sign-in picture, takes `motion="ambient"` and claims no activity. An orb that stands for an Agent shows her real state.',
|
|
684
706
|
behaviour: "The only thing that moves on its own. Idle particles turn at 86.4% of the form's native pace, with a separate 6.4 s breath. Working sweeps a ribbon every 3.2 s; thinking passes three pulses over 2.4 s. Waiting leans softly as centered pause bars arrive; blocked recoils as a centered stop sign lands. Both entrances settle over 2 s, then waiting breathes and blocked holds still. Done celebrates once over 4.8 s, then rests at 72% of native particle speed with the Idle breath. A state change interrupts the previous gesture; `motionKey` replays it and `paused` freezes it. A surface that only knows a machine checked in draws idle. No state draws a circle around the orb. Ambient motion moves the form at its own pace with no state pose or cue. An orb at rest (idle, ambient, or done after its celebration) paints 15 frames a second; every other state, gesture and the celebration paint 30. The pace is the same at either rate. Reduced motion: movement stops, a thinking or working orb breathes between full ink and 0.45 opacity so busy still reads as busy, an ambient orb holds still, and waiting and blocked keep their centered signs without an entrance gesture. An orb is one of seven forms, `ribbon`, `lattice`, `orbit`, `globe`, `network`, `braid` and `morph`, in one colour a person chose: cobalto, verde or arancio, or none, which draws it in the text colour. Giallo is not offered because it fails 3:1 on white; rosso is not offered because it is the error red. nadicode's own two Agents are the only ones with a figure nobody chooses, the same at every size and in every state. Nadia is her striped ribbon, the form `nadia`: azzurro, verde, the text colour and rosso along its whole length. Sofia, nadicode's own Agent in the Portal, is her sister, the form `sofia`: the shapeshifting morph, a circle that turns into a triangle and a square, its outline cut into five arcs in the brand's identity colours, cobalto, verde, giallo, arancio and rosso, each holding its arc through every shape. Neither figure is ever stored as an Agent's look. An Agent's form is stored as `orb:<form>` and its colour as the identity hex or nothing; a template declares its starting look the same way. The stored-appearance resolver reads it: the root Agent always draws as Nadia, an unknown form draws `orbit`, an unknown colour the text colour, and a stored rosso draws arancio. The retired `forma:*` shapes each draw one of the seven forms, so an Agent that chose one before the orbs keeps a distinct look. An Agent's look is a person's choice and is never derived from a name, id or role. A template that names no look is the one exception: `templateAgentOrb` gives it a form and colour fixed by its slug, so the templates in a gallery differ and the Portal and Nadia draw the same one; Nadia and Sofia keep their figures.",
|
|
685
707
|
words: "Text sits beside the orb, never on it. Where the exact state matters a word names it: *Working*, *Waiting for you*.",
|
|
@@ -1053,7 +1075,7 @@ export const USAGE = [
|
|
|
1053
1075
|
module: "sidebar-sections",
|
|
1054
1076
|
family: "Navigation",
|
|
1055
1077
|
summary: "The sidebar swapped to one object or one area: the way back, what you are in, and its sections.",
|
|
1056
|
-
when: "Inside an object, the same sidebar column shows these instead of the places: an Installation's sections in the Portal, Nadia's Edit and Settings sections. Inside an area whose pages are siblings a person moves between, the area's sub-menu without `identity`, as Vercel's Settings: the Portal's Settings, Company, Library and Account. The row that opens an area ends in `SidebarMenuChevron`; a row that only opens a page has none. Required: the way back and the nav's `label`; every section has an icon.",
|
|
1078
|
+
when: "Inside an object, the same sidebar column shows these instead of the places: an Installation's sections in the Portal, Nadia's Edit and Settings sections. Inside an area whose pages are siblings a person moves between, the area's sub-menu without `identity`, as Vercel's Settings: the Portal's Settings, Company, Library and Account. A catalogue long enough to be browsed by category takes this sub-menu too, one section a category with its `count`, as Vercel's Browse Connectors does: Nadia's Browse apps. The row that opens an area ends in `SidebarMenuChevron`; a row that only opens a page has none. Required: the way back and the nav's `label`; every section has an icon.",
|
|
1057
1079
|
instead: "The places a person can go are the sidebar's own groups; a settings page that does not swap the column is a SettingsPage. Never a second column beside the first. “Tabs imply the views share scope, URL parent, and data model” (https://vercel.com/geist/tabs) Ours: an area whose pages hold different objects, with different lists and different ways to add, is this sub-menu, as Vercel's AI Gateway is; a destination whose pages are views of one reading keeps its Tabs, as Vercel's Analytics and OpenRouter's Activity do (the Portal's Analytics). An object's sections under the top bar are a `TabsNav` band.",
|
|
1058
1080
|
behaviour: "With `identity`: a back arrow row, then what you are in, then the sections. Without it, as Vercel's sub-menu: one row with a ‹ at its start and the area's name centred, then the sections as words alone. The back row returns to where the person came from and is disabled while leaving is blocked. One section is current and takes the selection fill; the rest stay neutral. A section that sets `group` opens a labelled group that holds the sections after it until another names its own; the label and the gap tell groups apart, never a rule. Narrow, the identity, the area's name and the labels leave, and each row keeps its icon with its name in a tooltip.",
|
|
1059
1081
|
words: 'The back row names where it goes ("Agents", "Back to workspace"); the identity is the object\'s own name; an area\'s `label` is its sidebar row\'s word ("Settings", "Company"); a group heading names the kind of settings ("Account"), in sentence case; sections are nouns ("Skills", "Members").',
|
|
@@ -1096,12 +1118,23 @@ export const USAGE = [
|
|
|
1096
1118
|
name: "AgentCard",
|
|
1097
1119
|
module: "agent-card",
|
|
1098
1120
|
family: "Data",
|
|
1099
|
-
summary: "One Agent, or another pictured object, as a card in a gallery
|
|
1121
|
+
summary: "One Agent, or another pictured object, as a card in a gallery.",
|
|
1100
1122
|
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.",
|
|
1101
|
-
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`).",
|
|
1102
|
-
behaviour: "Vercel's
|
|
1103
|
-
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 ·
|
|
1104
|
-
access: "
|
|
1123
|
+
instead: "The same gallery read as a list is `AgentRow`. 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`).",
|
|
1124
|
+
behaviour: "As Vercel's Connect cards: every card has the same slots, so what one holds never moves another's. The picture stands top left, her orb at 64 with its empty edge outside the card's padding, and the status (her apps) top right; at the card's foot her name on one line, her job in a slot of two lines cut after the second, and the meta, with the one action at its end. With `onOpen` the whole card is one button and holds no action; on hover its ground lifts and, with `glow`, the corner behind the status fades up in a blurred 112 px of that logo or colour over 500 ms. A text object, with no picture, keeps the same foot.",
|
|
1125
|
+
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 · 2 tasks*); the action verb and noun (*Start*).",
|
|
1126
|
+
access: "With `onOpen` the name, the job and the meta name the button, in that order, and the status and the orb stay out of its name; the glow is hidden; an action is a real button or link.",
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
name: "AgentRow",
|
|
1130
|
+
module: "agent-card",
|
|
1131
|
+
family: "Data",
|
|
1132
|
+
summary: "One Agent of a gallery as a row: the same object as `AgentCard`, read as a list.",
|
|
1133
|
+
when: "A shelf's rows view, inside `LibraryShelf` with `view=\"rows\"`: the Portal's Agent templates.",
|
|
1134
|
+
instead: "The gallery's default is `AgentCard`. A list of Agents to open as records is a `RecordList` row; Nadia's sidebar is `AgentListRow`.",
|
|
1135
|
+
behaviour: "The whole row is one button, 64 px high at every width: her orb at 40, her name over her job, each on one line, the status and the meta in columns of 128 px that line up down the shelf, then a chevron. Below `md` the columns go, and the card or the surface it opens holds them.",
|
|
1136
|
+
words: "As `AgentCard`.",
|
|
1137
|
+
access: "The row's text names the button; the orb and the chevron are decorative.",
|
|
1105
1138
|
},
|
|
1106
1139
|
{
|
|
1107
1140
|
name: "Card",
|
|
@@ -1125,6 +1158,17 @@ export const USAGE = [
|
|
|
1125
1158
|
words: "None of its own.",
|
|
1126
1159
|
access: "A layout container; reading order is source order.",
|
|
1127
1160
|
},
|
|
1161
|
+
{
|
|
1162
|
+
name: "CatalogCard",
|
|
1163
|
+
module: "catalog-card",
|
|
1164
|
+
family: "Data",
|
|
1165
|
+
summary: "One thing a person can connect, as a card in a catalogue that opens its drawer, as Vercel's Browse Connectors draws a connector.",
|
|
1166
|
+
when: "A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `galleries`.",
|
|
1167
|
+
instead: "A thing added with one press, with no setup, is a `CatalogEntry`. An Agent or template chosen by its preview is an `AgentCard`. What a person already holds is a row of its `CollectionPage`.",
|
|
1168
|
+
behaviour: "A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours, as Vercel's Featured connectors do at their top left, ruled by the owner at the top right; a mark with no logo has no glow.",
|
|
1169
|
+
words: 'The name as the catalogue gives it. The line says what it does. Tags are short facts: a category, "2 accounts".',
|
|
1170
|
+
access: "The name is a real button whose target covers the card, so the tab order holds one stop a card. The mark is decorative beside it.",
|
|
1171
|
+
},
|
|
1128
1172
|
{
|
|
1129
1173
|
name: "CodeBlock",
|
|
1130
1174
|
module: "code-block",
|
|
@@ -1649,7 +1693,7 @@ export const USAGE = [
|
|
|
1649
1693
|
summary: "A panel from the edge of the window, beside what it describes.",
|
|
1650
1694
|
when: '"Use Sheet for persistent associated context like deployment details, log row inspection, or a member profile, where the underlying page stays useful." (https://vercel.com/geist/sheet) Ours: also the product\'s navigation when the window is too narrow for the sidebar.',
|
|
1651
1695
|
instead: '"For a blocking decision, use `Modal`. For a mobile-only bottom sheet, use `Drawer`." (https://vercel.com/geist/sheet) "Don’t use Sheet to confirm destructive actions. The default `modal=false` keeps the page interactive, which weakens severity for a delete or revoke." (https://vercel.com/geist/sheet) Ours: a blocking decision is `ConfirmDialog` or `Dialog`. A catalogue is `CatalogDrawer` and a setup in steps is `FormDrawer` with `job="steps"`, the modal sheets built on this; one record looked at from a list is `RecordSheet`, which leaves the page usable. A sheet is never chosen because an action takes input. For editing use the row or the record\'s page.',
|
|
1652
|
-
behaviour: '"Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: `modal` dims the page and blocks it, for a sheet that owns the screen, and `noOverlay` on its content drops the scrim again. An inset card with 16 px corners, 12 px from the window\'s edges; a side panel owns its width, 512 px from 1024 px and the window less its margins below it, and only `RecordSheet`
|
|
1696
|
+
behaviour: '"Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: `modal` dims the page and blocks it, for a sheet that owns the screen, and `noOverlay` on its content drops the scrim again. An inset card with 16 px corners, 12 px from the window\'s edges and 12 px below the band where a desktop window draws its own controls over the page (`env(titlebar-area-height)`), so its Close never stands under the window\'s; a side panel owns its width, 512 px from 1024 px and the window less its margins below it, and only `RecordSheet` changes it: 420 px between 640 and 1024 px, and 640 px from 1024 px while it holds records of its own or a setup. A given kind of sheet always opens on the same side. A press outside never closes it, Escape does, except the phone navigation, which `closesOnScrimPress` closes on a press on its scrim. The body scrolls between a header and a footer with its actions at the trailing edge, as Vercel\'s drawers (Production Checklist): the footer keeps the sheet\'s fill and stands under a 1 px rule, so its actions stay put while the body scrolls. Neutral only, with no hue but the focus ring; the primary is the only filled control. `closeLabel` is required.',
|
|
1653
1697
|
words: '"Title is Title Case and names the entity (`Deployment Details`, `Member Profile`), not the page action." (https://vercel.com/geist/sheet) "Body is read-mostly: sentence case prose with Title Case sub-headings. Action buttons are optional; when present, follow `Verb + Noun`." (https://vercel.com/geist/sheet) "Don’t duplicate the page header inside the sheet; the sheet is the detail layer." (https://vercel.com/geist/sheet) Ours: titles and sub-headings are sentence case where Geist writes Title Case. A footer link names where it goes: *Open Rossi Ottica*.',
|
|
1654
1698
|
access: '"Trap focus inside the sheet while it’s open and return focus to the trigger row on close so keyboard users keep their place in the list." (https://vercel.com/geist/sheet) "Provide a visible close button labeled `Close` (or an icon button with `aria-label="Close"`) since clicking outside doesn’t dismiss." (https://vercel.com/geist/sheet) "Announce the sheet with `aria-labelledby` pointing at the title; pair it with `aria-describedby` only when the body is short and load-bearing." (https://vercel.com/geist/sheet) Ours: a dialog named by its title, with a Close named in the product\'s words by `closeLabel`. Focus returns to the row or the navigation button that opened it.',
|
|
1655
1699
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.201",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@headless-tree/react": "1.8.0",
|
|
79
79
|
"@iconify-icons/logos": "^2.0.3",
|
|
80
80
|
"@iconify/react": "^6.0.2",
|
|
81
|
-
"@nadicodeai/design-system": "12.1.
|
|
81
|
+
"@nadicodeai/design-system": "12.1.201",
|
|
82
82
|
"@tanstack/react-table": "^9.3.1",
|
|
83
83
|
"@vgpu/wgsl": "0.6.0",
|
|
84
84
|
"class-variance-authority": "^0.7.1",
|