@nadicodeai/ui 12.1.216 → 12.1.218

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.
@@ -51,16 +51,6 @@ export declare function AccountMenuIdentity({ className, identity, pictureOnly,
51
51
  export type AccountMenuCommand = MenuCommand & {
52
52
  /** A reading at the row's end: "62% left". */
53
53
  value?: ReactNode;
54
- /**
55
- * The command runs with the menu open, so its pending word and its outcome
56
- * show on its row: Alveare Server's Check for updates.
57
- */
58
- keepsOpen?: boolean;
59
- /** What the command found, under its row: a neutral line, or a failure in the error colour. */
60
- outcome?: {
61
- tone: "neutral" | "error";
62
- message: ResolvedMessage;
63
- } | null;
64
54
  };
65
55
  /** A product's own exclusive setting, in a submenu: Alveare's presence. */
66
56
  export type AccountMenuChoice = {
@@ -131,9 +121,9 @@ export type AccountMenuProps = AccountMenuEnd & {
131
121
  * @family Menus
132
122
  * @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 through `ColumnFoot` (nadicode decision, 6 November 2026).
133
123
  * @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 on a `SettingsPage`, and when a choice applies is `SettingsSection`'s rule. A product never renders it outside `ProductShell`, which `nadicodeai/page-composition` refuses (nadicode decision).
134
- * @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 keep the menu open when picked, so the result shows without reopening it; when they apply is `SettingsSection`'s rule, which holds here and on a product's preferences page alike. 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).
124
+ * @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 keep the menu open when picked, so the result shows without reopening it; when they apply is `SettingsSection`'s rule, which holds here and on a product's preferences page alike. 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 closes the menu as it runs, and what it finds is the product's toast (`showMessageToast`), as every result a person asked for is; one still running when the menu opens again says its pending word, aria-busy. 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).
135
125
  * @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".
136
- * @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.
126
+ * @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; Sign out's failure is an alert.
137
127
  */
138
128
  export declare function AccountMenu({ align, choices, commands, identity, label, language, last, leadingCommands, onOpenChange, pictureOnly, settings, side, signOut, theme, }: AccountMenuProps): import("react").JSX.Element;
139
129
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"account-menu.d.ts","sourceRoot":"","sources":["../../src/components/account-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAkB5D,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,2FAA2F;AAC3F,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;CAChF,CAAC;AAEF,MAAM,MAAM,wBAA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AC;IACjD,+CAA+C;IAC/C,KAAK,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACvC,2EAA2E;IAC3E,eAAe,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAChD,gEAAgE;IAChE,QAAQ,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IACnC,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC3C,iFAAiF;IACjF,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAKF;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAe,EACf,OAAoB,EACpB,QAAsB,EACtB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,eAA6B,EAC7B,YAAY,EACZ,WAAmB,EACnB,QAAQ,EACR,IAAY,EACZ,OAAO,EACP,KAAK,GACN,EAAE,gBAAgB,+BA4ElB"}
@@ -29,9 +29,9 @@ const NO_COMMANDS = [];
29
29
  * @family Menus
30
30
  * @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 through `ColumnFoot` (nadicode decision, 6 November 2026).
31
31
  * @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 on a `SettingsPage`, and when a choice applies is `SettingsSection`'s rule. A product never renders it outside `ProductShell`, which `nadicodeai/page-composition` refuses (nadicode decision).
32
- * @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 keep the menu open when picked, so the result shows without reopening it; when they apply is `SettingsSection`'s rule, which holds here and on a product's preferences page alike. 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).
32
+ * @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 keep the menu open when picked, so the result shows without reopening it; when they apply is `SettingsSection`'s rule, which holds here and on a product's preferences page alike. 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 closes the menu as it runs, and what it finds is the product's toast (`showMessageToast`), as every result a person asked for is; one still running when the menu opens again says its pending word, aria-busy. 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).
33
33
  * @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".
34
- * @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.
34
+ * @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; Sign out's failure is an alert.
35
35
  */
36
36
  export function AccountMenu({ align = "start", choices = NO_CHOICES, commands = NO_COMMANDS, identity, label, language, last, leadingCommands = NO_COMMANDS, onOpenChange, pictureOnly = false, settings, side = "top", signOut, theme, }) {
37
37
  const name = `${label}: ${identity.name}`;
@@ -45,19 +45,17 @@ function AccountMenuSignOutRow({ signOut }) {
45
45
  return (_jsxs(_Fragment, { children: [_jsx(AccountMenuRow, { "aria-busy": signOut.pending || undefined, closeOnClick: signOut.confirms === true, disabled: signOut.pending, icon: _jsx(LogOut, {}), onClick: () => {
46
46
  if (!signOut.pending)
47
47
  signOut.onSignOut();
48
- }, children: _jsx(PendingLabel, { pending: signOut.pending, pendingLabel: signOut.pendingLabel, children: signOut.label }) }), signOut.pending ? (_jsx("span", { className: "sr-only", role: "status", children: signOut.pendingLabel })) : null, signOut.failure ? (_jsx(AccountMenuOutcome, { outcome: { tone: "error", message: signOut.failure } })) : null] }));
48
+ }, children: _jsx(PendingLabel, { pending: signOut.pending, pendingLabel: signOut.pendingLabel, children: signOut.label }) }), signOut.pending ? (_jsx("span", { className: "sr-only", role: "status", children: signOut.pendingLabel })) : null, signOut.failure ? _jsx(AccountMenuFailure, { message: signOut.failure }) : null] }));
49
49
  }
50
50
  function AccountMenuCommandRow({ command }) {
51
- const { value, keepsOpen = false, outcome, ...action } = command;
51
+ const { value, ...action } = command;
52
52
  const pending = action.pending === true;
53
53
  const pendingLabel = action.pendingLabel ?? action.label;
54
- return (_jsxs(_Fragment, { children: [_jsx(AccountMenuRow, { "aria-busy": pending || undefined, "aria-label": action.accessibleName, closeOnClick: !keepsOpen, destructive: action.destructive === true, disabled: pending || action.locked === true || action.disabledReason !== undefined, icon: action.icon, reason: action.locked ? action.reason : action.disabledReason, value: value, ...menuItemAction(action), children: _jsx(PendingLabel, { pending: pending, pendingLabel: pendingLabel, children: action.label }) }), pending ? (_jsx("span", { className: "sr-only", role: "status", children: pendingLabel })) : null, outcome ? _jsx(AccountMenuOutcome, { outcome: outcome }) : null] }));
54
+ return (_jsxs(_Fragment, { children: [_jsx(AccountMenuRow, { "aria-busy": pending || undefined, "aria-label": action.accessibleName, destructive: action.destructive === true, disabled: pending || action.locked === true || action.disabledReason !== undefined, icon: action.icon, reason: action.locked ? action.reason : action.disabledReason, value: value, ...menuItemAction(action), children: _jsx(PendingLabel, { pending: pending, pendingLabel: pendingLabel, children: action.label }) }), pending ? (_jsx("span", { className: "sr-only", role: "status", children: pendingLabel })) : null] }));
55
55
  }
56
- function AccountMenuOutcome({ outcome }) {
57
- const { message, tone } = outcome;
56
+ function AccountMenuFailure({ message }) {
58
57
  const body = bodyBeyondTitle(message);
59
- const words = (_jsxs(_Fragment, { children: [_jsx("span", { className: "block font-medium", children: message.title }), body ? _jsx("span", { className: "block", children: body }) : null] }));
60
- return tone === "error" ? (_jsx(FieldError, { className: "mx-2 mb-1 wrap-break-word", "data-message-code": message.code, children: words })) : (_jsx("p", { className: "mx-2 mb-1 text-xs wrap-break-word text-muted-foreground", "data-message-code": message.code, role: "status", children: words }));
58
+ return (_jsxs(FieldError, { className: "mx-2 mb-1 wrap-break-word", "data-message-code": message.code, children: [_jsx("span", { className: "block font-medium", children: message.title }), body ? _jsx("span", { className: "block", children: body }) : null] }));
61
59
  }
62
60
  function AccountMenuRow({ children, destructive = false, icon, reason, value, ...props }) {
63
61
  return (_jsxs(DropdownMenuItem, { ...props, variant: destructive ? "destructive" : "default", className: "min-h-9 gap-3 px-2 py-1.5 group-data-[density=comfortable]/menu:px-2 group-data-[density=comfortable]/menu:py-1.5 [@media(hover:hover)_and_(pointer:fine)]:min-h-9", children: [_jsxs("span", { className: "grid min-w-0 flex-1 gap-0.5", children: [_jsx("span", { className: "truncate", children: children }), reason ? _jsx("span", { className: "text-xs text-muted-foreground", children: reason }) : null] }), value === undefined ? null : " ", value === undefined ? null : (_jsx(DropdownMenuShortcut, { className: "ml-0", children: value })), _jsx("span", { "aria-hidden": "true", className: cn("flex shrink-0 items-center", destructive ? "text-destructive-soft-foreground" : "text-muted-foreground"), children: icon })] }));
@@ -1726,9 +1726,9 @@ export const USAGE = [
1726
1726
  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.",
1727
1727
  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 through `ColumnFoot` (nadicode decision, 6 November 2026).",
1728
1728
  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 on a `SettingsPage`, and when a choice applies is `SettingsSection`'s rule. A product never renders it outside `ProductShell`, which `nadicodeai/page-composition` refuses (nadicode decision).",
1729
- 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 keep the menu open when picked, so the result shows without reopening it; when they apply is `SettingsSection`'s rule, which holds here and on a product's preferences page alike. 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).",
1729
+ 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 keep the menu open when picked, so the result shows without reopening it; when they apply is `SettingsSection`'s rule, which holds here and on a product's preferences page alike. 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 closes the menu as it runs, and what it finds is the product's toast (`showMessageToast`), as every result a person asked for is; one still running when the menu opens again says its pending word, aria-busy. 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).",
1730
1730
  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".',
1731
- 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.',
1731
+ 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; Sign out\'s failure is an alert.',
1732
1732
  },
1733
1733
  {
1734
1734
  name: "ActionContextMenu",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.216",
3
+ "version": "12.1.218",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -82,7 +82,7 @@
82
82
  "@headless-tree/react": "1.8.0",
83
83
  "@iconify-icons/logos": "^2.0.3",
84
84
  "@iconify/react": "^6.0.2",
85
- "@nadicodeai/design-system": "12.1.216",
85
+ "@nadicodeai/design-system": "12.1.218",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",