@nadicodeai/ui 12.1.208 → 12.1.210
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/AGENTS.md +9 -0
- package/dist/components/account-menu.d.ts +40 -9
- package/dist/components/account-menu.d.ts.map +1 -1
- package/dist/components/account-menu.js +31 -15
- package/dist/components/empty-art.d.ts +5 -3
- package/dist/components/empty-art.d.ts.map +1 -1
- package/dist/components/empty-art.js +7 -4
- package/dist/components/product-shell.d.ts +132 -0
- package/dist/components/product-shell.d.ts.map +1 -0
- package/dist/components/product-shell.js +83 -0
- package/dist/components/record-sheet.d.ts +5 -3
- package/dist/components/record-sheet.d.ts.map +1 -1
- package/dist/components/record-sheet.js +5 -5
- 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 +9 -6
- package/dist/components/sidebar.d.ts +12 -8
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +12 -9
- package/dist/components/update-card.d.ts +37 -10
- package/dist/components/update-card.d.ts.map +1 -1
- package/dist/components/update-card.js +63 -15
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/internal/badge-frame.d.ts +1 -1
- package/dist/internal/command-runner.d.ts +10 -1
- package/dist/internal/command-runner.d.ts.map +1 -1
- package/dist/internal/command-runner.js +21 -3
- package/dist/showcase/specimens/feedback.d.ts.map +1 -1
- package/dist/showcase/specimens/feedback.js +1 -1
- package/dist/showcase/specimens/index.d.ts +1 -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 +59 -2
- 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 +29 -18
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Building2, CreditCard, Download, LayoutDashboard, Settings, Users } from "lucide-react";
|
|
3
|
+
import { Building2, CircleStop, CreditCard, Download, Laptop, LayoutDashboard, Settings, Users, } from "lucide-react";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { AccountMenuIdentity } from "../../components/account-menu.js";
|
|
6
6
|
import { AgentListRow } from "../../components/agent-list-row.js";
|
|
@@ -14,13 +14,14 @@ import { Footer, FooterBrand, FooterIdentity, FooterInner, FooterMeta, FooterNav
|
|
|
14
14
|
import { AgentIcon, ApprovalsIcon } from "../../components/house-icons.js";
|
|
15
15
|
import { Kbd } from "../../components/kbd.js";
|
|
16
16
|
import { PortalSidebarFrame } from "../../components/portal-sidebar-frame.js";
|
|
17
|
+
import { ProductShell } from "../../components/product-shell.js";
|
|
17
18
|
import { ScopeSwitcher } from "../../components/scope-switcher.js";
|
|
18
19
|
import { Sidebar, SidebarBrand, SidebarContent, SidebarFind, SidebarFrame, SidebarGroup, SidebarGroupLabel, SidebarEntryCard, SidebarMenu, SidebarMenuButton, SidebarMenuChevron, SidebarMenuItem, SidebarProvider, } from "../../components/sidebar.js";
|
|
19
20
|
import { SidebarSections } from "../../components/sidebar-sections.js";
|
|
20
21
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../components/tabs.js";
|
|
21
22
|
import { TabsLink, TabsNav } from "../../components/tabs-nav.js";
|
|
22
23
|
import { textLinkVariants } from "../../components/text-link.js";
|
|
23
|
-
import { COBALTO, nothing, VERDE } from "../samples.js";
|
|
24
|
+
import { answered, COBALTO, nothing, VERDE } from "../samples.js";
|
|
24
25
|
function Navigation({ children }) {
|
|
25
26
|
return (_jsx(SidebarProvider, { className: "min-h-0", mobileSheet: false, passive: true, children: children }));
|
|
26
27
|
}
|
|
@@ -136,7 +137,63 @@ function FileTreeSpecimen() {
|
|
|
136
137
|
const [selected, setSelected] = useState("/nadia/Offers/Rossi Srl - offer.pdf");
|
|
137
138
|
return (_jsx("div", { className: "max-w-xs", children: _jsx(FileTree, { "aria-label": "Nadia's folder", expanded: expanded, onExpandedChange: setExpanded, onOpenFile: (entry) => setSelected(entry.path), readFolder: (path) => Promise.resolve(SAMPLE_FOLDER.get(path) ?? []), root: { isFolder: true, name: "Nadia", path: "/nadia" }, selected: selected }) }));
|
|
138
139
|
}
|
|
140
|
+
function ProductShellSpecimen() {
|
|
141
|
+
const [place, setPlace] = useState("installations");
|
|
142
|
+
const [width, setWidth] = useState({ value: 256, collapsed: false });
|
|
143
|
+
const [theme, setTheme] = useState("system");
|
|
144
|
+
const places = [
|
|
145
|
+
{ id: "overview", label: "Overview", icon: LayoutDashboard },
|
|
146
|
+
{ id: "colleagues", label: "Colleagues", icon: Users },
|
|
147
|
+
{ id: "installations", label: "Installations", icon: Laptop, badge: 1 },
|
|
148
|
+
];
|
|
149
|
+
const current = places.find((entry) => entry.id === place)?.label ?? "";
|
|
150
|
+
return (_jsx("div", { className: "h-128 overflow-hidden rounded-md border border-border [&>[data-slot=product-shell]]:h-full", children: _jsx(ProductShell, { account: {
|
|
151
|
+
identity: { name: "Acme S.r.l.", mark: { kind: "company", name: "Acme S.r.l." } },
|
|
152
|
+
label: "Workspace: Acme S.r.l.",
|
|
153
|
+
theme: {
|
|
154
|
+
label: "Theme",
|
|
155
|
+
labels: { system: "System", light: "Light", dark: "Dark" },
|
|
156
|
+
value: theme,
|
|
157
|
+
onValueChange: setTheme,
|
|
158
|
+
},
|
|
159
|
+
last: {
|
|
160
|
+
label: "Stop the workspace",
|
|
161
|
+
icon: _jsx(CircleStop, {}),
|
|
162
|
+
destructive: true,
|
|
163
|
+
confirm: {
|
|
164
|
+
title: "Stop Acme S.r.l.'s workspace",
|
|
165
|
+
description: "While it is stopped, colleagues can't use the chat.",
|
|
166
|
+
confirmLabel: "Stop the workspace",
|
|
167
|
+
},
|
|
168
|
+
onClick: answered,
|
|
169
|
+
},
|
|
170
|
+
}, band: {
|
|
171
|
+
update: {
|
|
172
|
+
state: "available",
|
|
173
|
+
title: "Alveare Server 0.7.0 is ready",
|
|
174
|
+
action: { label: "Update", onClick: nothing },
|
|
175
|
+
},
|
|
176
|
+
}, home: { product: "Alveare Server" }, labels: {
|
|
177
|
+
navigation: "Alveare Server's places",
|
|
178
|
+
navigationDescription: "Choose a place.",
|
|
179
|
+
openNavigation: (waiting) => waiting > 0 ? `Open the places, ${waiting} waiting` : "Open the places",
|
|
180
|
+
closeNavigation: "Close",
|
|
181
|
+
collapse: "Collapse the places",
|
|
182
|
+
resize: "Width of the places",
|
|
183
|
+
path: "Path",
|
|
184
|
+
}, main: _jsx("div", {}), path: [{ label: current }], places: [
|
|
185
|
+
{
|
|
186
|
+
id: "places",
|
|
187
|
+
places: places.map((entry) => ({
|
|
188
|
+
...entry,
|
|
189
|
+
current: entry.id === place,
|
|
190
|
+
onClick: () => setPlace(entry.id),
|
|
191
|
+
})),
|
|
192
|
+
},
|
|
193
|
+
], width: { ...width, onChange: setWidth }, children: _jsx("h1", { className: "text-xl font-semibold", children: current }) }) }));
|
|
194
|
+
}
|
|
139
195
|
export const NAVIGATION = {
|
|
196
|
+
ProductShell: ProductShellSpecimen,
|
|
140
197
|
AgentListRow: () => (_jsxs("ul", { className: "grid max-w-xs gap-1", children: [_jsx("li", { children: _jsx(AgentListRow, { color: COBALTO, current: true, form: "orbit", name: "Invoices", state: "working", stateLine: "Drafting October's invoices" }) }), _jsx("li", { children: _jsx(AgentListRow, { color: VERDE, form: "lattice", name: "Orders", state: "waiting", stateLine: "Waiting for you" }) })] })),
|
|
141
198
|
DocumentTabs: () => _jsx(DocumentTabsSpecimen, {}),
|
|
142
199
|
FileTree: () => _jsx(FileTreeSpecimen, {}),
|
|
@@ -1,4 +1,4 @@
|
|
|
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" | "StepCards" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "RecordCommands" | "RecordContextMenu" | "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" | "CatalogCard" | "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" | "StepCards" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "RecordCommands" | "RecordContextMenu" | "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" | "ProductShell" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CatalogCard" | "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,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,WAAW,GACX,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,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,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB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c,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,WAAW,GACX,gBAAgB,GAChB,QAA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AAc,EA8sF1C,CAAC"}
|
|
@@ -228,9 +228,9 @@ export const USAGE = [
|
|
|
228
228
|
module: "record-sheet",
|
|
229
229
|
family: "Compositions",
|
|
230
230
|
summary: "One record from a list, looked at in a sheet at the right edge, then back to the list.",
|
|
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`).",
|
|
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`), and the Agents that use the app, each with its switch (`children`).",
|
|
232
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.",
|
|
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, then any second list; 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.",
|
|
234
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\".",
|
|
235
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.",
|
|
236
236
|
},
|
|
@@ -1015,6 +1015,17 @@ export const USAGE = [
|
|
|
1015
1015
|
words: "Find is one word beside ⌘K. Bands are short nouns; items are nouns, one or two words, sentence case.",
|
|
1016
1016
|
access: "The collapse control is named by `toggleLabel` and Find by `findLabel`; the wordmark is decorative beside the product name.",
|
|
1017
1017
|
},
|
|
1018
|
+
{
|
|
1019
|
+
name: "ProductShell",
|
|
1020
|
+
module: "product-shell",
|
|
1021
|
+
family: "Navigation",
|
|
1022
|
+
summary: "A desktop or web product's frame: its navigation column, the top bar with the path, and the page.",
|
|
1023
|
+
when: "The frame of every product page in the Portal, Nadia and Alveare Server: the product's home, Find, its places or an area's sections, the update offer or the way out, and the account, beside the page with its path. Alveare keeps Buzz's sidebar and mounts the account menu and the update card in it (nadicode decision, 6 November 2026).",
|
|
1024
|
+
instead: "A product never draws `Sidebar`, `SidebarFrame`, `SidebarProvider`, `SidebarInset`, `AccountMenu` or `UpdateCard` itself, which `nadicodeai/page-composition` refuses: it passes its places, its account, its band and its path (nadicode decision). A page's own views are `Tabs`; an object's sections swap the column (`sections`) or stand in a `TabsNav` band under the top bar, never a second column (nadicode decision).",
|
|
1025
|
+
behaviour: "One column, its regions in this order: the home with the collapse control, Find, the places in their groups, one band (the update offer or the way out), then the account with the bell beside it (nadicode decision). The column is 256 px wide, dragged on its edge between 224 and 384 px, collapsed to 48 px of icons by its control, by the handle's Enter or by dragging it under the narrowest width, and a sheet under 768 px; the width and the collapse go to the product through `width.onChange`, and the shell opens at the ones it is given (owner ruling, 6 November 2026). Collapsed, the account shows its picture alone and the update card one icon. A place's badge counts what waits there in the attention colour, and the phone's menu button carries their sum. Choosing a place closes the sheet. Every confirmation a command in the frame opens is the shell's: it closes the sheet first, so one overlay never opens over another (nadicode decision). The top bar holds navigation only, never the page's commands: the menu button at phone width, the path, and the assistant at its end (nadicode decision). The path is the breadcrumb, never a back button in its place (nadicode decision). A new path opens its page at the top. The page scrolls under a top bar that stays.",
|
|
1026
|
+
words: "Every word is the product's: the places' nouns, the path's names exactly as the places and the records write them, and `labels` from its catalogue.",
|
|
1027
|
+
access: 'The column is a landmark with the places as buttons or links, the current one `aria-current="page"`; the handle is a separator named by `labels.resize`; the page is the `main` landmark the product passes; the path is a navigation named by `labels.path`. The phone\'s menu button names how many things wait.',
|
|
1028
|
+
},
|
|
1018
1029
|
{
|
|
1019
1030
|
name: "ScopeSwitcher",
|
|
1020
1031
|
module: "scope-switcher",
|
|
@@ -1031,7 +1042,7 @@ export const USAGE = [
|
|
|
1031
1042
|
module: "sidebar",
|
|
1032
1043
|
family: "Navigation",
|
|
1033
1044
|
summary: "A product's navigation column: where a person can go, with the account at its foot.",
|
|
1034
|
-
when: "The one left column of
|
|
1045
|
+
when: "The one left column of every product: a header, Find, groups of places, an object's sections when the column swaps, a band for the update or the way out, and the account. 256 px wide, dragged between 224 and 384 px or collapsed to icons (owner ruling, 6 November 2026). `ProductShell` draws it; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).",
|
|
1035
1046
|
instead: "Never a second column: an object's sections either swap this column (`SidebarSections`) or stand in a `TabsNav` band under the top bar, as the product's section navigation says. A page's own views are Tabs. A row that opens an area ends in `SidebarMenuChevron`.",
|
|
1036
1047
|
behaviour: 'Fills the cell its host gives it and stays in the page flow. `collapsible="icon"` (the default) collapses to 48 px icons with a tooltip name and becomes a sheet under 768 px; with `resize` a handle on its trailing edge drags it, steps it with the arrow keys, resets it on a double-click and collapses it on Enter. `collapsible="none"` is always open and never a sheet. A group is told apart by its label and its padding, never by a rule.',
|
|
1037
1048
|
words: 'Each row is a place\'s noun: "Agents", "Tasks", "Customers"; a count is a bare number. A sheet\'s title, description and Close label (`mobileTitle`, `mobileDescription`, `mobileCloseLabel`) are required; `resize`, when given, names the handle and comes from the catalogue.',
|
|
@@ -1042,11 +1053,11 @@ export const USAGE = [
|
|
|
1042
1053
|
module: "sidebar",
|
|
1043
1054
|
family: "Navigation",
|
|
1044
1055
|
summary: "The company's wordmark and the product's name on one line: what the header of a product's column says.",
|
|
1045
|
-
when: "The `header` of a `SidebarFrame` in the Portal and its sample. Nadia's header is her company row instead.",
|
|
1056
|
+
when: "The `header` of a `SidebarFrame` in the Portal and its sample, and in Alveare Server's window with its own mark. Nadia's header is her company row instead.",
|
|
1046
1057
|
instead: "A switcher between companies or teams is a menu in the header, not this mark.",
|
|
1047
|
-
behaviour: "A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. Inside a link, the link is the row.",
|
|
1048
|
-
words: '`product` names the product the column belongs to: "Portal".',
|
|
1049
|
-
access: "Decorative: the link or button around it carries the accessible name.",
|
|
1058
|
+
behaviour: "A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. A product with a mark of its own, as Alveare Server's server rack, gives `mark`: the 24 px mark and the product's name in medium weight, cut with an ellipsis only when the column cannot hold it. Inside a link, the link is the row.",
|
|
1059
|
+
words: '`product` names the product the column belongs to: "Portal", "Alveare Server".',
|
|
1060
|
+
access: "Decorative: the link or button around it carries the accessible name; the mark is decorative beside the name.",
|
|
1050
1061
|
},
|
|
1051
1062
|
{
|
|
1052
1063
|
name: "SidebarEntryCard",
|
|
@@ -1075,7 +1086,7 @@ export const USAGE = [
|
|
|
1075
1086
|
module: "sidebar",
|
|
1076
1087
|
family: "Navigation",
|
|
1077
1088
|
summary: "The regions of a product's `Sidebar`, in order: header, Find, groups, band, account.",
|
|
1078
|
-
when: "The content of every product's `Sidebar
|
|
1089
|
+
when: "The content of every product's `Sidebar`, which `ProductShell` fills from its `home`, `find`, `places`, `band` and `account`.",
|
|
1079
1090
|
instead: "A product lays no region of its own: no grid of rows, no hand-drawn rule between regions.",
|
|
1080
1091
|
behaviour: "A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle and fading at an edge with more beyond it, then the band and the account pinned at the foot above 1 px rules. The host gives the frame a bounded height. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control and the icon rows still scroll.",
|
|
1081
1092
|
words: "None of its own; every word arrives in the regions.",
|
|
@@ -1570,11 +1581,11 @@ export const USAGE = [
|
|
|
1570
1581
|
module: "update-card",
|
|
1571
1582
|
family: "Feedback",
|
|
1572
1583
|
summary: "The update offer at the foot of a desktop app's sidebar, above the account.",
|
|
1573
|
-
when: "Nadia's and Alveare's sidebar foot,
|
|
1574
|
-
instead: "
|
|
1575
|
-
behaviour: "One outlined row of the column's width, shaped as the sidebar's Find:
|
|
1576
|
-
words: 'One line names the product, its number and what happened ("Nadia 0.42.0 is ready", "Updated to Nadia 0.42.0"); the command is one verb ("Update").',
|
|
1577
|
-
access: 'The row is a region named by its line. The narrow button is named by its command and the line ("Update: Nadia 0.42.0 is ready"), and the close carries its label; a running command is aria-busy.',
|
|
1584
|
+
when: "The one place a desktop app offers its own update: Nadia's, Alveare's and Alveare Server's sidebar foot, from the moment a newer version is found until the person closes the line naming the version that now runs. `ProductShell` draws it from its `band.update`; Alveare keeps Buzz's sidebar and mounts it there, and Alveare Server's stopped and failed screens, which have no sidebar, show it in their body (owner ruling, 6 November 2026).",
|
|
1585
|
+
instead: "Nothing else offers the update: no toast, no banner, no window of its own (owner ruling, 6 November 2026). The Portal's way to get an app is its Downloads row.",
|
|
1586
|
+
behaviour: "One outlined row of the column's width, shaped as the sidebar's Find, in four states (nadicode decision). Available: a download icon in the primary colour, the line, and a small primary command at the end that keeps its place and says its pending word while it runs. Downloading: the line, and under it a 4 px bar of what has arrived, while the app stays usable; with no size known, or while it installs, the line alone. Failed: the line still offering the version, the reason under it in the error colour, and Try again at the end. Updated: a check, the line and a ghost close. With `restart`, Update and Try again open its confirmation first, because restarting stops someone's work (Nadia's working Agents, Alveare Server's workspace for every colleague); the confirmation closes as the update starts, and the card shows it from there (owner ruling, 6 November 2026). Nothing is cut: an offer whose line and command, or pending word, do not fit one row puts the command on a second row at its end, as \"Alveare Server 0.7.0 è pronto\" with \"Aggiornamento in corso\" does in a 256 px column; any other line wraps (nadicode decision). Narrow, the row is one icon button whose tooltip shows the line: Update, Try again or Close, or, while it downloads, a busy button that does nothing (nadicode decision).",
|
|
1587
|
+
words: 'One line names the product, its number and what happened ("Nadia 0.42.0 is ready", "Updated to Nadia 0.42.0"); while it runs, the stage ("Downloading update"); a failure is the catalogue\'s message, its retry "Try again". The command is one verb ("Update") and the confirmation\'s button names what it does ("Update and restart") (nadicode decision).',
|
|
1588
|
+
access: 'The row is a region named by its line; the bar is a progressbar named by it. The narrow button is named by its command and the line ("Update: Nadia 0.42.0 is ready"), and the close carries its label; a running command or download is aria-busy; a failure is an alert.',
|
|
1578
1589
|
},
|
|
1579
1590
|
{
|
|
1580
1591
|
name: "WaitingLine",
|
|
@@ -1592,11 +1603,11 @@ export const USAGE = [
|
|
|
1592
1603
|
module: "account-menu",
|
|
1593
1604
|
family: "Menus",
|
|
1594
1605
|
summary: "The account menu at the foot of a shell's navigation: whose account it is, and the menu opening on that same identity with what they can do beneath it.",
|
|
1595
|
-
when: "The account at the sidebar's foot in the Portal, Nadia and Alveare: the account's settings, Theme, Language, a product's own settings, its commands, and Sign out.",
|
|
1596
|
-
instead: "A record's or a page's
|
|
1597
|
-
behaviour: "The menu opens 6 px above its trigger, 288 px wide
|
|
1598
|
-
words: 'The menu\'s name ("Account"), the
|
|
1599
|
-
access: 'The trigger and the menu are named "{label}: {name}"; the gear carries its label; the pending sign-out is aria-busy and announced through a status; a failure is an alert.',
|
|
1606
|
+
when: "The account at the sidebar's foot in the Portal, Nadia and Alveare: the account's settings, Theme, Language, a product's own settings, its commands, and Sign out. In Alveare Server, which has no account to leave, the company's workspace on this computer: its mark, its status, Theme, Language, Check for updates, Help, and Stop workspace last (nadicode decision). `ProductShell` draws it from its `account`; Alveare mounts it in Buzz's sidebar (nadicode decision, 6 November 2026).",
|
|
1607
|
+
instead: "A record's commands go to `RecordList` or `RecordCommands`, a page's to its composition's `actions`; a setting that changes what the product does is a draft on a `SettingsPage` until its card's Save (nadicode decision). A product never renders it outside `ProductShell`, which `nadicodeai/page-composition` refuses (nadicode decision).",
|
|
1608
|
+
behaviour: "The menu opens 6 px above its trigger, 288 px wide: a header of the name and every line under it with the gear at its end and no picture, one divider, then 36 px rows, each its label leading and its icon or control trailing in muted ink, in an order the component draws and the product never sets: the product's leading commands first, Theme and Language as small round pills, the product's choices as submenus, the Settings row to the gear's destination, its other commands, each command with any reading before its icon, and Sign out last in the body colour, since signing out destroys nothing (owner ruling, 16 October 2026; the Settings row as well as the gear, owner ruling, 27 October 2026). Theme and Language apply at once and keep the menu open, with no Save; a product with a Preferences page may also show them there, where they apply at once too (owner ruling, 6 November 2026). While signing out, Sign out says its pending word, the menu stays open and the trigger is locked; a failure shows under it. A Sign out that `confirms` closes the menu instead, for the product's own confirmation (nadicode decision). A product with no account to leave ends on its own `last` command in Sign out's place; a destructive one, such as Stop workspace, stands after a divider in the error colour and carries its `confirm`, which the menu opens once it closes (nadicode decision). A command that `keepsOpen` runs with the menu open: it says its pending word, aria-busy, then its `outcome` under its row, a muted line or a failure in the error colour, until the menu closes (nadicode decision). A company's account (`identity.mark`) shows the company's `IdentityMark` at 20 px in the trigger in place of a person's picture (nadicode decision).",
|
|
1609
|
+
words: 'The menu\'s name ("Account", "Workspace"), the account\'s name and lines, then each row\'s noun or verb from the product\'s catalogue: "Theme", "Language", "Usage", "Check for updates", "Sign out" and "Signing out".',
|
|
1610
|
+
access: 'The trigger and the menu are named "{label}: {name}"; the gear carries its label; the pending sign-out or command is aria-busy and announced through a status; a failure is an alert, a neutral outcome a status.',
|
|
1600
1611
|
},
|
|
1601
1612
|
{
|
|
1602
1613
|
name: "ActionContextMenu",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.210",
|
|
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.210",
|
|
82
82
|
"@tanstack/react-table": "^9.3.1",
|
|
83
83
|
"@vgpu/wgsl": "0.6.0",
|
|
84
84
|
"class-variance-authority": "^0.7.1",
|