@nadicodeai/ui 12.1.198 → 12.1.200
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/document-tabs.d.ts +46 -0
- package/dist/components/document-tabs.d.ts.map +1 -0
- package/dist/components/document-tabs.js +54 -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/file-tree.d.ts +42 -0
- package/dist/components/file-tree.d.ts.map +1 -0
- package/dist/components/file-tree.js +93 -0
- package/dist/components/file-type-icon.d.ts +6 -3
- package/dist/components/file-type-icon.d.ts.map +1 -1
- package/dist/components/file-type-icon.js +79 -5
- 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 +8 -3
- package/dist/components/library-shelf.d.ts.map +1 -1
- package/dist/components/library-shelf.js +14 -6
- package/dist/components/object-workspace.d.ts.map +1 -1
- package/dist/components/object-workspace.js +3 -1
- 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 +2 -0
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +20 -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/specimens/navigation.d.ts +2 -0
- package/dist/showcase/specimens/navigation.d.ts.map +1 -1
- package/dist/showcase/specimens/navigation.js +52 -0
- 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 +56 -12
- package/package.json +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type UsageName = "ActivityFeed" | "AgentProfileCard" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "EntryPicture" | "EntryScene" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageHeader" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "CommandDialog" | "Footer" | "PortalSidebarFrame" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "Card" | "CardRow" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
|
|
1
|
+
export type UsageName = "ActivityFeed" | "AgentProfileCard" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "DrawerSteps" | "EntryPicture" | "EntryScene" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageHeader" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PortalSidebarFrame" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
|
|
2
2
|
export type UsageFamily = "Compositions" | "Actions" | "Inputs" | "Choices" | "Status" | "Navigation" | "Data" | "Feedback" | "Menus" | "Charts" | "Other";
|
|
3
3
|
export type ComponentUsage = {
|
|
4
4
|
name: UsageName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,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AChB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,aAAa,GACb,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ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= [
|
|
|
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.",
|
|
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.",
|
|
154
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.",
|
|
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
|
},
|
|
@@ -679,7 +690,7 @@ export const USAGE = [
|
|
|
679
690
|
module: "agent-orb",
|
|
680
691
|
family: "Status",
|
|
681
692
|
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
|
|
693
|
+
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
694
|
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
695
|
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
696
|
words: "Text sits beside the orb, never on it. Where the exact state matters a word names it: *Working*, *Waiting for you*.",
|
|
@@ -778,9 +789,9 @@ export const USAGE = [
|
|
|
778
789
|
module: "file-type-icon",
|
|
779
790
|
family: "Status",
|
|
780
791
|
summary: "A file's kind as a Lucide icon, from its path or its language.",
|
|
781
|
-
when: "Beside a file's name: a file an Agent wrote, a code block's language, an attachment.",
|
|
792
|
+
when: "Beside a file's name: a file an Agent wrote, a code block's language, an attachment, a row of a folder.",
|
|
782
793
|
instead: "An app is `AppMark`; a Library entry is its `IdentityMark`. A file's content is `CodeBlock` or `FileDiff`.",
|
|
783
|
-
behaviour: "Maps a path's extension or a language name to one icon: terminal, document, braces, settings, database, diff, palette, regex, globe, package, share; anything else is the code icon.",
|
|
794
|
+
behaviour: "Maps a path's extension or a language name to one icon: terminal, document, PDF, spreadsheet, slides, image, audio, video, archive, braces, settings, database, diff, palette, regex, globe, package, share; anything else is the code icon. The files people keep take their kind's category colour, as a file manager draws them: documents and Markdown blue, PDFs red, spreadsheets green, slides orange, pictures purple, audio pink, video teal, archives yellow; the others stay in the text colour.",
|
|
784
795
|
words: "None; the file's name stands beside it.",
|
|
785
796
|
access: "Always `aria-hidden`.",
|
|
786
797
|
},
|
|
@@ -927,6 +938,28 @@ export const USAGE = [
|
|
|
927
938
|
words: '"`<CommandMenu.Item>` children are Title Case verb phrases (`Deploy Project`, `Invite Team Member`). Avoid navigation phrasing like `Go to project page`; CommandMenu commands act, not browse." (https://vercel.com/geist/command-menu) "`CommandMenuPage.label` is Title Case and names the scope (`Projects`, `Team Settings`)." (https://vercel.com/geist/command-menu) "`CommandMenuPage.placeholder` is sentence case, action-oriented, and ends with `…` (`Search projects…`, `Type a command or search…`). Bare `Search…` is wrong because it doesn’t name the scope." (https://vercel.com/geist/command-menu) "`<CommandMenu.Group heading>` is Title Case, 1–2 words (`Actions`, `Recent`)." (https://vercel.com/geist/command-menu) Ours: groups are plural nouns in sentence case (*Agents*, *Go to*), one or two words. Items are names, or verb and noun for a creation page (*New Agent*), because the dialog goes to places. The placeholder names what is searched, never a bare "Search". No match quotes the query.',
|
|
928
939
|
access: '"Use `aria-live="polite"` on the result count so screen readers hear how the list narrows as the user types." (https://vercel.com/geist/command-menu) "Up/Down arrows move highlight, Enter activates, Escape closes. Backspace at an empty input pops the page stack." (https://vercel.com/geist/command-menu) "Display each item’s `keybind` as a `Kbd` slot so the shortcut is discoverable to sighted users and announced as a label to screen readers." (https://vercel.com/geist/command-menu) Ours: a dialog with a screen-reader `title` and `description`, both required; the *Esc* key is a button named by `closeLabel`, which is required; the field is a combobox over a listbox; the highlighted item is `aria-selected`. A polite live region reads `resultCount` as the list narrows, and it is required. `CommandInput` requires its `placeholder`, `CommandGroup` its `heading` and `CommandItem` its `onSelect`, so no field, group or row is left unnamed or inert; a row with no group stands outside a `CommandGroup`. A shortcut is a `CommandShortcut`, drawn as `kbd` elements. With no pages there is no stack for Backspace to pop.',
|
|
929
940
|
},
|
|
941
|
+
{
|
|
942
|
+
name: "DocumentTabs",
|
|
943
|
+
module: "document-tabs",
|
|
944
|
+
family: "Navigation",
|
|
945
|
+
summary: "Open documents side by side, as a browser's tabs: each a name with its icon and a close button, one of them shown.",
|
|
946
|
+
when: "The things a person opened and switches between beside their work, each one closable: the files and web pages of Nadia's side panel. The set changes as they open and close things.",
|
|
947
|
+
instead: "A fixed set of sibling views of one object is `Tabs`; a list of records to open is `ItemGroup`.",
|
|
948
|
+
behaviour: "One tab stop: the arrow keys move between tabs, Home and End go to the first and the last, and moving selects. Delete or Backspace closes the focused tab and moves the focus to the tab shown next. A click on a tab's ×, which shows `closeLabel` on hover, closes that tab only and does not select it; the × is the pointer's, never a tab stop. Each tab is as wide as its name, from 7rem to 14rem, ending in an ellipsis; a row wider than its space scrolls sideways without a bar, and the tab shown scrolls into view. The tab shown takes the `accent` fill and ink text; the others are muted text that takes a lighter accent on hover.",
|
|
949
|
+
words: "Each tab is the document's own name, a file's or a page's title. `closeLabel` is \"Close <name>\".",
|
|
950
|
+
access: "A `tablist` named by `aria-label` of `tab`s, each declaring Delete in `aria-keyshortcuts` and an `aria-controls` naming the panel the page draws with `documentTabIds(idBase, value).panel`, which the panel takes as its id beside `aria-labelledby` set to `.tab`.",
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
name: "FileTree",
|
|
954
|
+
module: "file-tree",
|
|
955
|
+
family: "Navigation",
|
|
956
|
+
summary: "A folder and everything in it, as a tree of folders that open in place, each file with its kind's coloured icon.",
|
|
957
|
+
when: "The files a person browses beside the thing they work on: an Agent's folder in Nadia's side panel. It is ReUI's file-explorer tree (`@reui/c-tree-5`) on Headless Tree, which reads each folder only when it opens.",
|
|
958
|
+
instead: "One list of records is `ItemGroup`; a choice of one file to send is a file picker.",
|
|
959
|
+
behaviour: "Folders first, then files, in the order `readFolder` gives. A click on a folder opens or closes it; a click on a file calls `onOpenFile`, and the file `selected` names is marked. The arrow keys move between rows, Right and Left open and close a folder, and Enter opens a file. Each level is indented 16 px. When `changed` changes, every open folder is read again and the tree keeps what is open. A folder that cannot be read keeps what it last listed and calls `onReadError`, so the page can say so and offer to read it again.",
|
|
960
|
+
words: "Each row is the file's or the folder's own name. `aria-label` names whose folder it is: \"Nadia's folder\".",
|
|
961
|
+
access: "A `tree` of `treeitem`s, with `aria-expanded` on a folder and `aria-current` on the file shown.",
|
|
962
|
+
},
|
|
930
963
|
{
|
|
931
964
|
name: "Footer",
|
|
932
965
|
module: "footer",
|
|
@@ -1074,12 +1107,23 @@ export const USAGE = [
|
|
|
1074
1107
|
name: "AgentCard",
|
|
1075
1108
|
module: "agent-card",
|
|
1076
1109
|
family: "Data",
|
|
1077
|
-
summary: "One Agent, or another pictured object, as a card in a gallery
|
|
1110
|
+
summary: "One Agent, or another pictured object, as a card in a gallery.",
|
|
1078
1111
|
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
|
-
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
|
|
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 ·
|
|
1082
|
-
access: "
|
|
1112
|
+
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`).",
|
|
1113
|
+
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.",
|
|
1114
|
+
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*).",
|
|
1115
|
+
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.",
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
name: "AgentRow",
|
|
1119
|
+
module: "agent-card",
|
|
1120
|
+
family: "Data",
|
|
1121
|
+
summary: "One Agent of a gallery as a row: the same object as `AgentCard`, read as a list.",
|
|
1122
|
+
when: "A shelf's rows view, inside `LibraryShelf` with `view=\"rows\"`: the Portal's Agent templates.",
|
|
1123
|
+
instead: "The gallery's default is `AgentCard`. A list of Agents to open as records is a `RecordList` row; Nadia's sidebar is `AgentListRow`.",
|
|
1124
|
+
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.",
|
|
1125
|
+
words: "As `AgentCard`.",
|
|
1126
|
+
access: "The row's text names the button; the orb and the chevron are decorative.",
|
|
1083
1127
|
},
|
|
1084
1128
|
{
|
|
1085
1129
|
name: "Card",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.200",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -74,9 +74,11 @@
|
|
|
74
74
|
"@assistant-ui/react": "0.15.29",
|
|
75
75
|
"@assistant-ui/react-markdown": "0.14.23",
|
|
76
76
|
"@base-ui/react": "^1.9.0",
|
|
77
|
+
"@headless-tree/core": "1.8.0",
|
|
78
|
+
"@headless-tree/react": "1.8.0",
|
|
77
79
|
"@iconify-icons/logos": "^2.0.3",
|
|
78
80
|
"@iconify/react": "^6.0.2",
|
|
79
|
-
"@nadicodeai/design-system": "12.1.
|
|
81
|
+
"@nadicodeai/design-system": "12.1.200",
|
|
80
82
|
"@tanstack/react-table": "^9.3.1",
|
|
81
83
|
"@vgpu/wgsl": "0.6.0",
|
|
82
84
|
"class-variance-authority": "^0.7.1",
|