@nadicodeai/ui 12.1.210 → 12.1.211

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.
Files changed (125) hide show
  1. package/AGENTS.md +11 -4
  2. package/dist/components/account-menu.d.ts +3 -3
  3. package/dist/components/account-menu.d.ts.map +1 -1
  4. package/dist/components/account-menu.js +7 -5
  5. package/dist/components/activity-feed.d.ts +4 -2
  6. package/dist/components/activity-feed.d.ts.map +1 -1
  7. package/dist/components/activity-feed.js +10 -3
  8. package/dist/components/board.d.ts +45 -0
  9. package/dist/components/board.d.ts.map +1 -0
  10. package/dist/components/board.js +35 -0
  11. package/dist/components/breadcrumb.d.ts +3 -3
  12. package/dist/components/breadcrumb.d.ts.map +1 -1
  13. package/dist/components/button.d.ts +6 -1
  14. package/dist/components/button.d.ts.map +1 -1
  15. package/dist/components/button.js +5 -2
  16. package/dist/components/card-row.js +1 -1
  17. package/dist/components/chart-card.d.ts +19 -6
  18. package/dist/components/chart-card.d.ts.map +1 -1
  19. package/dist/components/chart-card.js +17 -7
  20. package/dist/components/collection-page.d.ts +4 -4
  21. package/dist/components/collection-page.d.ts.map +1 -1
  22. package/dist/components/collection-page.js +4 -8
  23. package/dist/components/column-foot.d.ts +53 -0
  24. package/dist/components/column-foot.d.ts.map +1 -0
  25. package/dist/components/column-foot.js +32 -0
  26. package/dist/components/conversation-card.d.ts +38 -0
  27. package/dist/components/conversation-card.d.ts.map +1 -0
  28. package/dist/components/conversation-card.js +19 -0
  29. package/dist/components/data-table.d.ts +26 -21
  30. package/dist/components/data-table.d.ts.map +1 -1
  31. package/dist/components/data-table.js +34 -22
  32. package/dist/components/entry-page.d.ts +55 -0
  33. package/dist/components/entry-page.d.ts.map +1 -0
  34. package/dist/components/entry-page.js +41 -0
  35. package/dist/components/entry-scene.d.ts +1 -1
  36. package/dist/components/entry-scene.js +1 -1
  37. package/dist/components/filter-toolbar.d.ts +43 -0
  38. package/dist/components/filter-toolbar.d.ts.map +1 -0
  39. package/dist/components/filter-toolbar.js +44 -0
  40. package/dist/components/hive-scene.d.ts +4 -1
  41. package/dist/components/hive-scene.d.ts.map +1 -1
  42. package/dist/components/hive-scene.js +6 -1
  43. package/dist/components/kpi-card.d.ts +10 -3
  44. package/dist/components/kpi-card.d.ts.map +1 -1
  45. package/dist/components/kpi-card.js +11 -3
  46. package/dist/components/message-notice.d.ts +3 -3
  47. package/dist/components/message-notice.js +1 -1
  48. package/dist/components/notice-banner.d.ts +1 -1
  49. package/dist/components/notice-banner.js +1 -1
  50. package/dist/components/object-workspace.d.ts +25 -5
  51. package/dist/components/object-workspace.d.ts.map +1 -1
  52. package/dist/components/object-workspace.js +30 -7
  53. package/dist/components/page-actions.d.ts +0 -2
  54. package/dist/components/page-actions.d.ts.map +1 -1
  55. package/dist/components/page-actions.js +1 -5
  56. package/dist/components/page-frame.d.ts +38 -0
  57. package/dist/components/page-frame.d.ts.map +1 -0
  58. package/dist/components/page-frame.js +29 -0
  59. package/dist/components/place-count.d.ts +20 -0
  60. package/dist/components/place-count.d.ts.map +1 -0
  61. package/dist/components/place-count.js +16 -0
  62. package/dist/components/plan-card.d.ts +49 -0
  63. package/dist/components/plan-card.d.ts.map +1 -0
  64. package/dist/components/plan-card.js +22 -0
  65. package/dist/components/product-band.d.ts +20 -0
  66. package/dist/components/product-band.d.ts.map +1 -0
  67. package/dist/components/product-band.js +23 -0
  68. package/dist/components/product-shell.d.ts +314 -44
  69. package/dist/components/product-shell.d.ts.map +1 -1
  70. package/dist/components/product-shell.js +465 -36
  71. package/dist/components/reading-column.d.ts +1 -1
  72. package/dist/components/reading-column.js +1 -1
  73. package/dist/components/record-list.d.ts +19 -3
  74. package/dist/components/record-list.d.ts.map +1 -1
  75. package/dist/components/record-list.js +23 -8
  76. package/dist/components/record-time.d.ts +6 -2
  77. package/dist/components/record-time.d.ts.map +1 -1
  78. package/dist/components/record-time.js +8 -5
  79. package/dist/components/row-edit-form.d.ts +1 -1
  80. package/dist/components/row-edit-form.js +1 -1
  81. package/dist/components/scope-switcher.d.ts +3 -1
  82. package/dist/components/scope-switcher.d.ts.map +1 -1
  83. package/dist/components/scope-switcher.js +3 -6
  84. package/dist/components/settings-page.d.ts +3 -3
  85. package/dist/components/settings-page.js +3 -3
  86. package/dist/components/settings-section.d.ts +18 -4
  87. package/dist/components/settings-section.d.ts.map +1 -1
  88. package/dist/components/settings-section.js +12 -4
  89. package/dist/components/sidebar-sections.d.ts.map +1 -1
  90. package/dist/components/sidebar-sections.js +4 -4
  91. package/dist/components/sidebar.d.ts +27 -5
  92. package/dist/components/sidebar.d.ts.map +1 -1
  93. package/dist/components/sidebar.js +55 -23
  94. package/dist/components/table-card.d.ts.map +1 -1
  95. package/dist/components/table-card.js +2 -1
  96. package/dist/components/toast.d.ts +10 -1
  97. package/dist/components/toast.d.ts.map +1 -1
  98. package/dist/components/toast.js +24 -1
  99. package/dist/index.d.ts +5 -0
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +5 -0
  102. package/dist/internal/button-classes.d.ts +2 -0
  103. package/dist/internal/button-classes.d.ts.map +1 -1
  104. package/dist/internal/button-classes.js +54 -46
  105. package/dist/internal/card-actions.d.ts +3 -0
  106. package/dist/internal/card-actions.d.ts.map +1 -0
  107. package/dist/internal/card-actions.js +4 -0
  108. package/dist/internal/footer-strip.d.ts.map +1 -1
  109. package/dist/internal/footer-strip.js +3 -1
  110. package/dist/lib/product-shell.d.ts +20 -0
  111. package/dist/lib/product-shell.d.ts.map +1 -0
  112. package/dist/lib/product-shell.js +19 -0
  113. package/dist/showcase/specimens/compositions.d.ts +15 -0
  114. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  115. package/dist/showcase/specimens/compositions.js +70 -0
  116. package/dist/showcase/specimens/index.d.ts +11 -0
  117. package/dist/showcase/specimens/index.d.ts.map +1 -1
  118. package/dist/showcase/specimens/navigation.d.ts +4 -0
  119. package/dist/showcase/specimens/navigation.d.ts.map +1 -1
  120. package/dist/showcase/specimens/navigation.js +26 -1
  121. package/dist/showcase/usage.generated.d.ts +1 -1
  122. package/dist/showcase/usage.generated.d.ts.map +1 -1
  123. package/dist/showcase/usage.generated.js +159 -38
  124. package/dist/styles/components.css +12 -0
  125. package/package.json +6 -2
@@ -1,8 +1,8 @@
1
1
  import type { RowData } from "@tanstack/react-table";
2
2
  import type { ReactElement, ReactNode } from "react";
3
- import { type CollectionFiltersProps } from "./collection-filters.js";
4
- import { type CollectionSearchProps } from "./collection-search.js";
5
- import { type CollectionSortProps } from "./collection-sort.js";
3
+ import type { CollectionFiltersProps } from "./collection-filters.js";
4
+ import type { CollectionSearchProps } from "./collection-search.js";
5
+ import type { CollectionSortProps } from "./collection-sort.js";
6
6
  import type { EmptyStateKind } from "./empty-state.js";
7
7
  import { type PageActionsProps } from "./page-actions.js";
8
8
  import { type NoticeBannerProps } from "./notice-banner.js";
@@ -55,7 +55,7 @@ export type CollectionPageProps<TRecord extends RowData> = RecordListWithout<TRe
55
55
  * Ours: Customers and Partners use the full-width list, with actionable attention above the toolbar when present. Business summaries belong on Dashboard and Analytics. A rail remains available for context that belongs to the collection itself, such as the selected Library hub.
56
56
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
57
57
  * Ours: records compared across columns, read by their headings, are a `DataTable` under the page's own title and toolbar. A list inside another page's section is a `RecordList` with its `heading`.
58
- * @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as Vercel decides it: a page that is one plain list of things a person makes, whose concept needs no sentence, such as Vercel's Domains, Storage, Projects and AI Gateway's API Keys, has no title row, and its actions (its create buttons) end its search row, after the filters. A page that needs its one sentence, or whose commands do something other than create, such as Environment Variables, Members, Integrations and Deployments, keeps its title row with the sentence and every action on it. The product says which a page is (`PageActionsHostProvider`'s `titled`, or this composition's own `title`), never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The title row is `PageActions`'s, drawn from `actions`. The primary stays in the title row whether the collection is empty or not, filled, as Vercel's Flags keeps Create Flag; a first use repeats it as the filled button in its card. The page's actions stay on its title row whichever tab is shown; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.
58
+ * @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as Vercel decides it: a page that is one plain list of things a person makes, whose concept needs no sentence, such as Vercel's Domains, Storage, Projects and AI Gateway's API Keys, has no title row, and its actions (its create buttons) end its search row, after the filters. A page that needs its one sentence, or whose commands do something other than create, such as Environment Variables, Members, Integrations and Deployments, keeps its title row with the sentence and every action on it. The product says which a page is (`PageActionsHostProvider`'s `titled`, or this composition's own `title`), never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The title row is `PageActions`'s, drawn from `actions`. The primary stays in the title row whether the collection is empty or not, filled, as Vercel's Flags keeps Create Flag; a first use repeats it as the filled button in its card. The page's actions stay on its title row whichever tab is shown; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.
59
59
  * @words “For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing.” (https://vercel.com/geist/empty-state)
60
60
  * Ours: every string is the product's, in sentence case. The title names the collection in the plural ("Agents"); the search says what it finds ("Find a skill"); no match says what found nothing and offers to clear it ("Clear search", "Clear filters").
61
61
  * @access “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
@@ -1 +1 @@
1
- {"version":3,"file":"collection-page.d.ts","sourceRoot":"","sources":["../../src/components/collection-page.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,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K,EAAE,mBAAmB,CAAC,OAAO,CAAC,+BAyD1F"}
@@ -1,14 +1,10 @@
1
1
  "use client";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { CollectionFilters } from "./collection-filters.js";
4
- import { CollectionSearch } from "./collection-search.js";
5
- import { CollectionSort } from "./collection-sort.js";
6
- import { CollectionToolbar } from "./collection-toolbar.js";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
3
  import { CardActionsRow, PageActions, PageActionsHostProvider, usePageTitled, } from "./page-actions.js";
8
4
  import { NoticeBanner } from "./notice-banner.js";
9
5
  import { PageHeader } from "./page-header.js";
6
+ import { FilterToolbar } from "./filter-toolbar.js";
10
7
  import { RecordList } from "./record-list.js";
11
- import { WaitingLine } from "./waiting-line.js";
12
8
  import { CollectionRailColumn } from "../internal/collection-rail.js";
13
9
  /**
14
10
  * A page whose job is a list of records: its title with the page's actions on
@@ -21,7 +17,7 @@ import { CollectionRailColumn } from "../internal/collection-rail.js";
21
17
  * Ours: Customers and Partners use the full-width list, with actionable attention above the toolbar when present. Business summaries belong on Dashboard and Analytics. A rail remains available for context that belongs to the collection itself, such as the selected Library hub.
22
18
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
23
19
  * Ours: records compared across columns, read by their headings, are a `DataTable` under the page's own title and toolbar. A list inside another page's section is a `RecordList` with its `heading`.
24
- * @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as Vercel decides it: a page that is one plain list of things a person makes, whose concept needs no sentence, such as Vercel's Domains, Storage, Projects and AI Gateway's API Keys, has no title row, and its actions (its create buttons) end its search row, after the filters. A page that needs its one sentence, or whose commands do something other than create, such as Environment Variables, Members, Integrations and Deployments, keeps its title row with the sentence and every action on it. The product says which a page is (`PageActionsHostProvider`'s `titled`, or this composition's own `title`), never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The title row is `PageActions`'s, drawn from `actions`. The primary stays in the title row whether the collection is empty or not, filled, as Vercel's Flags keeps Create Flag; a first use repeats it as the filled button in its card. The page's actions stay on its title row whichever tab is shown; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.
20
+ * @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as Vercel decides it: a page that is one plain list of things a person makes, whose concept needs no sentence, such as Vercel's Domains, Storage, Projects and AI Gateway's API Keys, has no title row, and its actions (its create buttons) end its search row, after the filters. A page that needs its one sentence, or whose commands do something other than create, such as Environment Variables, Members, Integrations and Deployments, keeps its title row with the sentence and every action on it. The product says which a page is (`PageActionsHostProvider`'s `titled`, or this composition's own `title`), never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The title row is `PageActions`'s, drawn from `actions`. The primary stays in the title row whether the collection is empty or not, filled, as Vercel's Flags keeps Create Flag; a first use repeats it as the filled button in its card. The page's actions stay on its title row whichever tab is shown; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.
25
21
  * @words “For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing.” (https://vercel.com/geist/empty-state)
26
22
  * Ours: every string is the product's, in sentence case. The title names the collection in the plural ("Agents"); the search says what it finds ("Find a skill"); no match says what found nothing and offers to clear it ("Clear search", "Clear filters").
27
23
  * @access “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
@@ -35,6 +31,6 @@ export function CollectionPage(props) {
35
31
  const hasRecords = list.records !== undefined && list.records.length > 0;
36
32
  const narrowed = Boolean(search?.value) ||
37
33
  (filters?.facets.some((facet) => facet.value || facet.hidesWhileUnset) ?? false);
38
- const page = (_jsxs("div", { className: "grid min-w-0 gap-4", "data-slot": "collection-page", children: [title ? _jsx(PageHeader, { description: description, title: title }) : null, actions && titled ? _jsx(PageActions, { ...actions }) : null, notice ? _jsx(NoticeBanner, { ...notice }) : null, tabs, attention, ((search || filters || sort) && (hasRecords || narrowed)) || toolbarActions ? (_jsx(CollectionToolbar, { actions: filters || sort || toolbarActions ? (_jsxs(_Fragment, { children: [filters && (hasRecords || narrowed) ? _jsx(CollectionFilters, { ...filters }) : null, sort && (hasRecords || narrowed) ? _jsx(CollectionSort, { ...sort }) : null, toolbarActions] })) : undefined, "aria-busy": pending ? true : undefined, label: list.label, search: search && (hasRecords || narrowed) ? _jsx(CollectionSearch, { ...search }) : undefined, status: _jsx(WaitingLine, { className: "w-24", decorative: true, waiting: pending === true }), surface: toolbarSurface ?? "plain" })) : null, rail ? (_jsxs("div", { className: "grid min-w-0 gap-6 xl:grid-cols-[18.75rem_minmax(0,1fr)] xl:items-start", "data-slot": "collection-columns", children: [_jsx("div", { className: "min-w-0 xl:col-start-2 xl:row-start-1", children: _jsx(RecordList, { ...list, layout: "line", noMatch: narrowed ? noMatch : undefined }) }), _jsx(CollectionRailColumn, { className: "xl:col-start-1 xl:row-start-1", rail: rail })] })) : (_jsx(RecordList, { ...list, noMatch: narrowed ? noMatch : undefined }))] }));
34
+ const page = (_jsxs("div", { className: "grid min-w-0 gap-4", "data-slot": "collection-page", children: [title ? _jsx(PageHeader, { description: description, title: title }) : null, actions && titled ? _jsx(PageActions, { ...actions }) : null, notice ? _jsx(NoticeBanner, { ...notice }) : null, tabs, attention, _jsx(FilterToolbar, { actions: toolbarActions, filters: hasRecords || narrowed ? filters : undefined, label: list.label, pending: pending, search: hasRecords || narrowed ? search : undefined, sort: hasRecords || narrowed ? sort : undefined, surface: toolbarSurface ?? "plain" }), rail ? (_jsxs("div", { className: "grid min-w-0 gap-6 xl:grid-cols-[18.75rem_minmax(0,1fr)] xl:items-start", "data-slot": "collection-columns", children: [_jsx("div", { className: "min-w-0 xl:col-start-2 xl:row-start-1", children: _jsx(RecordList, { ...list, layout: "line", noMatch: narrowed ? noMatch : undefined }) }), _jsx(CollectionRailColumn, { className: "xl:col-start-1 xl:row-start-1", rail: rail })] })) : (_jsx(RecordList, { ...list, noMatch: narrowed ? noMatch : undefined }))] }));
39
35
  return title ? _jsx(PageActionsHostProvider, { children: page }) : page;
40
36
  }
@@ -0,0 +1,53 @@
1
+ import type * as React from "react";
2
+ import { type AccountMenuProps } from "./account-menu.js";
3
+ import { SidebarEntryCard } from "./sidebar.js";
4
+ import { type UpdateCardProps } from "./update-card.js";
5
+ /** The one band above the account: the update offer, or the way out of the product. */
6
+ export type ColumnFootBand = {
7
+ update: UpdateCardProps;
8
+ entry?: never;
9
+ } | {
10
+ entry: React.ComponentProps<typeof SidebarEntryCard>;
11
+ update?: never;
12
+ };
13
+ type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
14
+ /** The account menu at the column's foot; the foot decides its trigger's size and side. */
15
+ export type ColumnFootAccount = DistributiveOmit<AccountMenuProps, "pictureOnly" | "side" | "align">;
16
+ export type ColumnFootProps = {
17
+ /** The update offer or the way out, above the account. */
18
+ band?: ColumnFootBand;
19
+ /** Rows pinned above the account, under the band: places a person reaches from everywhere. */
20
+ places?: React.ReactNode;
21
+ account: ColumnFootAccount;
22
+ /** The bell beside the account, the product's notifications inbox. */
23
+ bell?: React.ReactNode;
24
+ /** The column shows icons alone: the account shows its picture and the update offer one icon. */
25
+ collapsed?: boolean;
26
+ className?: string;
27
+ ref?: React.Ref<HTMLDivElement>;
28
+ };
29
+ /** The regions of the foot, as `ProductShell` and `ColumnFoot` both fill them. */
30
+ export declare function columnFootRegions({ band, places, account, bell, collapsed, }: Omit<ColumnFootProps, "className" | "ref">): {
31
+ band: React.JSX.Element | undefined;
32
+ foot: React.ReactNode;
33
+ account: React.JSX.Element;
34
+ actions: React.ReactNode;
35
+ };
36
+ /** The foot's band as the foot draws it: the update offer, one icon while `narrow`, or the way out. */
37
+ export declare function FootBand({ band, narrow }: {
38
+ band: ColumnFootBand;
39
+ narrow: boolean;
40
+ }): React.JSX.Element;
41
+ /**
42
+ * The foot of a product's column: the update offer or the way out, then the account with its bell, in glass on the column's own colour with no rule above it.
43
+ *
44
+ * @family Navigation
45
+ * @when A column the product does not draw, such as Alveare's carried Buzz sidebar: it mounts this at the column's foot so its account and update offer look and behave as in `ProductShell`, which draws its own foot with the same regions (nadicode decision, 7 November 2026).
46
+ * @instead A product on `ProductShell` passes `band` and `account` to it and never mounts this; a product never draws `AccountMenu` or `UpdateCard` itself.
47
+ * @behaviour One band (the update offer or the way out), then `places`, then the account with the bell beside it, on the column's colour in glass so what scrolls under it shows blurred through it, and solid under reduced transparency. With `collapsed`, the account shows its picture alone and the update offer one icon. The foot takes the width its frame gives it and places itself nowhere: the frame pins it.
48
+ * @words The band's and the account's words are their own components'.
49
+ * @access The account menu's trigger is named by `account.label`; the update offer's action by its label.
50
+ */
51
+ export declare function ColumnFoot({ className, ref, ...regions }: ColumnFootProps): React.JSX.Element;
52
+ export {};
53
+ //# sourceMappingURL=column-foot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-foot.d.ts","sourceRoot":"","sources":["../../src/components/column-foot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAA6C,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE5E,uFAAuF;AACvF,MAAM,MAAM,cAAc,GACtB;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAC1C;IAAE,KAAK,EAAE,KAAK,CAAC,cAAc,C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/jsx-runtime";
2
+ import { AccountMenu } from "./account-menu.js";
3
+ import { SidebarEntryCard, SidebarFoot, SidebarMenu, SidebarMenuItem } from "./sidebar.js";
4
+ import { UpdateCard } from "./update-card.js";
5
+ /** The regions of the foot, as `ProductShell` and `ColumnFoot` both fill them. */
6
+ export function columnFootRegions({ band, places, account, bell, collapsed = false, }) {
7
+ return {
8
+ band: band ? _jsx(FootBand, { band: band, narrow: collapsed }) : undefined,
9
+ foot: places,
10
+ account: _jsx(AccountMenu, { ...account, pictureOnly: collapsed }),
11
+ actions: bell,
12
+ };
13
+ }
14
+ /** The foot's band as the foot draws it: the update offer, one icon while `narrow`, or the way out. */
15
+ export function FootBand({ band, narrow }) {
16
+ if (band.update)
17
+ return _jsx(UpdateCard, { ...band.update, narrow: narrow });
18
+ return (_jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsx(SidebarEntryCard, { ...band.entry }) }) }));
19
+ }
20
+ /**
21
+ * The foot of a product's column: the update offer or the way out, then the account with its bell, in glass on the column's own colour with no rule above it.
22
+ *
23
+ * @family Navigation
24
+ * @when A column the product does not draw, such as Alveare's carried Buzz sidebar: it mounts this at the column's foot so its account and update offer look and behave as in `ProductShell`, which draws its own foot with the same regions (nadicode decision, 7 November 2026).
25
+ * @instead A product on `ProductShell` passes `band` and `account` to it and never mounts this; a product never draws `AccountMenu` or `UpdateCard` itself.
26
+ * @behaviour One band (the update offer or the way out), then `places`, then the account with the bell beside it, on the column's colour in glass so what scrolls under it shows blurred through it, and solid under reduced transparency. With `collapsed`, the account shows its picture alone and the update offer one icon. The foot takes the width its frame gives it and places itself nowhere: the frame pins it.
27
+ * @words The band's and the account's words are their own components'.
28
+ * @access The account menu's trigger is named by `account.label`; the update offer's action by its label.
29
+ */
30
+ export function ColumnFoot({ className, ref, ...regions }) {
31
+ return _jsx(SidebarFoot, { ...columnFootRegions(regions), className: className, ref: ref });
32
+ }
@@ -0,0 +1,38 @@
1
+ import type { ReactNode } from "react";
2
+ import { type IdentityMarkProps } from "./identity-mark.js";
3
+ import { type PageCommand } from "./page-actions.js";
4
+ /** The card's foot: how else the person can answer, then their answers as buttons. */
5
+ export type ConversationCardFooter = {
6
+ /** One muted sentence at the strip's start: "To change something, tell Nadia." */
7
+ hint?: string;
8
+ /** The outline button before the primary: "Change by hand". */
9
+ secondary?: PageCommand;
10
+ /** The filled button that does what the card proposes: "Create Gara". */
11
+ primary?: PageCommand;
12
+ };
13
+ export type ConversationCardProps = {
14
+ /** What the card is about, drawn at 40 px beside its title whatever its `size`: an Agent's orb, an app's mark. */
15
+ mark?: IdentityMarkProps;
16
+ /** What the card proposes, or its outcome once done: "Gara", "Gara is ready". */
17
+ title: string;
18
+ /** One muted line under the title, saying what it is. */
19
+ description?: ReactNode;
20
+ /** Where it comes from, under the description in the label size: "From the Tenders Agent template". */
21
+ origin?: string;
22
+ footer?: ConversationCardFooter;
23
+ /** What the card shows: facts, steps, a notice that concerns it. */
24
+ children: ReactNode;
25
+ };
26
+ /**
27
+ * A card an Agent puts in a conversation: what it prepared, read where the conversation stands,
28
+ * with the person's answers at its foot.
29
+ *
30
+ * @family Compositions
31
+ * @when Nadia's New Agent card in her chat: the Agent she proposes and its settings, then Create, and once the Agent exists, its first job.
32
+ * @instead A section of a page is an `ObjectSection` or a `SettingsSection`: the page compositions' cards stand on a page, never among messages. A sentence an Agent says is her message's own text; a confirmation is the command's `confirm`. A card's header, body and footer are never drawn from `Card`'s parts by a product, which `nadicodeai/page-composition` refuses.
33
+ * @behaviour A resting card 12 px clear of the messages above and below it. Its header: the `mark` at 40 px, then the title, the `description` under it and the `origin` under that in the label size. Its body is the product's, its parts 16 px apart. Its foot is the card's strip (`CardFooter`): the `hint` at the start, saying how else the person can answer, and at the end the `secondary` as the outline button and the `primary` as the filled one; below 640 px the hint takes its own line and the answers stand under it at the end, each at its own width, wrapping when they do not fit side by side. With no hint and no command there is no strip. A running command keeps its place and says its pending word; one that cannot run now stays, disabled.
34
+ * @words The product's: the title names what the card proposes ("Gara") or its outcome ("Gara is ready"); each command is a verb and its noun ("Create Gara", "Run Tender notices now"); the hint is one sentence ("To change something, tell Nadia.").
35
+ * @access The card reads in the conversation's order: its title is text, as a message's first line is, and the mark is decorative beside it. Its commands are buttons, and a running one is `aria-busy`.
36
+ */
37
+ export declare function ConversationCard({ mark, title, description, origin, footer, children, }: ConversationCardProps): import("react").JSX.Element;
38
+ //# sourceMappingURL=conversation-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-card.d.ts","sourceRoot":"","sources":["../../src/components/conversation-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAGhF,sFAAsF;AACtF,MAAM,MAAM,sBAAsB,GAAG;IACnC,kFAAkF;IAClF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,yEAAyE;IACzE,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,kHAAkH;IAClH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uGAAuG;IACvG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,oEAAoE;IACpE,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,GACT,EAAE,qBAAqB,+BAmCvB"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./card.js";
3
+ import { IdentityMark } from "./identity-mark.js";
4
+ import { PageCommandButton } from "./page-actions.js";
5
+ import { FooterStrip } from "../internal/footer-strip.js";
6
+ /**
7
+ * A card an Agent puts in a conversation: what it prepared, read where the conversation stands,
8
+ * with the person's answers at its foot.
9
+ *
10
+ * @family Compositions
11
+ * @when Nadia's New Agent card in her chat: the Agent she proposes and its settings, then Create, and once the Agent exists, its first job.
12
+ * @instead A section of a page is an `ObjectSection` or a `SettingsSection`: the page compositions' cards stand on a page, never among messages. A sentence an Agent says is her message's own text; a confirmation is the command's `confirm`. A card's header, body and footer are never drawn from `Card`'s parts by a product, which `nadicodeai/page-composition` refuses.
13
+ * @behaviour A resting card 12 px clear of the messages above and below it. Its header: the `mark` at 40 px, then the title, the `description` under it and the `origin` under that in the label size. Its body is the product's, its parts 16 px apart. Its foot is the card's strip (`CardFooter`): the `hint` at the start, saying how else the person can answer, and at the end the `secondary` as the outline button and the `primary` as the filled one; below 640 px the hint takes its own line and the answers stand under it at the end, each at its own width, wrapping when they do not fit side by side. With no hint and no command there is no strip. A running command keeps its place and says its pending word; one that cannot run now stays, disabled.
14
+ * @words The product's: the title names what the card proposes ("Gara") or its outcome ("Gara is ready"); each command is a verb and its noun ("Create Gara", "Run Tender notices now"); the hint is one sentence ("To change something, tell Nadia.").
15
+ * @access The card reads in the conversation's order: its title is text, as a message's first line is, and the mark is decorative beside it. Its commands are buttons, and a running one is `aria-busy`.
16
+ */
17
+ export function ConversationCard({ mark, title, description, origin, footer, children, }) {
18
+ return (_jsxs(Card, { className: "my-3", "data-slot": "conversation-card", children: [_jsxs(CardHeader, { className: "flex items-start gap-3", children: [mark ? _jsx(IdentityMark, { ...mark, size: 40 }) : null, _jsxs("div", { className: "grid min-w-0 flex-1 gap-0.5", children: [_jsx(CardTitle, { children: title }), description ? _jsx(CardDescription, { children: description }) : null, origin ? (_jsx("span", { className: "text-label-sm text-muted-foreground", "data-slot": "conversation-card-origin", children: origin })) : null] })] }), _jsx(CardContent, { className: "grid gap-4", children: children }), footer ? (_jsx(FooterStrip, { hint: footer.hint, hintSlot: "conversation-card-hint", children: footer.secondary || footer.primary ? (_jsxs(_Fragment, { children: [footer.secondary ? (_jsx(PageCommandButton, { command: footer.secondary, variant: "outline" })) : null, footer.primary ? (_jsx(PageCommandButton, { command: footer.primary, variant: "default" })) : null] })) : null })) : null] }));
19
+ }
@@ -3,6 +3,8 @@ import { columnFilteringFeature, columnSizingFeature, columnVisibilityFeature, c
3
3
  import type { CollectionNote } from "../internal/collection-note.js";
4
4
  import { type ActionContextMenuProps } from "./action-menu.js";
5
5
  import { type EmptyStateProps } from "./empty-state.js";
6
+ import { type FilterToolbarProps } from "./filter-toolbar.js";
7
+ import { type NoticeBannerProps } from "./notice-banner.js";
6
8
  type DataTableFeatures = {
7
9
  columnFilteringFeature: typeof columnFilteringFeature;
8
10
  columnSizingFeature: typeof columnSizingFeature;
@@ -84,24 +86,6 @@ export type DataTableRowLinkProps = Omit<React.ComponentProps<"a">, "href"> & {
84
86
  href: string;
85
87
  "data-row-link": "";
86
88
  };
87
- /**
88
- * What the table hands its toolbar: the column-visibility menu and the caller's
89
- * actions as one node, and the local search over a fully loaded comparison
90
- * with its clear control when the caller asked for one.
91
- */
92
- export type DataTableToolbarSlots = {
93
- actions: React.ReactNode | null;
94
- search?: {
95
- label: string;
96
- placeholder: string;
97
- value: string;
98
- onChange: (value: string) => void;
99
- };
100
- clear?: {
101
- label: string;
102
- onClear: () => void;
103
- };
104
- };
105
89
  type DataTableBaseProps<TData extends RowData> = {
106
90
  columns: DataTableColumnDef<TData>[];
107
91
  data: TData[];
@@ -167,10 +151,19 @@ type DataTableBaseProps<TData extends RowData> = {
167
151
  };
168
152
  /** Draws the row link; a plain anchor by default. */
169
153
  renderRowLink?: (props: DataTableRowLinkProps) => React.ReactNode;
170
- /** Draws the collection toolbar, with the table's search when it has one; the actions alone by default. */
171
- renderToolbar?: (slots: DataTableToolbarSlots) => React.ReactNode;
154
+ /**
155
+ * The search, filters and sort of a registry the product keeps itself, such as in the URL, drawn
156
+ * as the table's `FilterToolbar` with the column menu and `toolbarActions` at its end. Left out, the
157
+ * toolbar holds the table's own search, when it has one, and those actions.
158
+ */
159
+ toolbar?: Omit<FilterToolbarProps, "actions"> | undefined;
172
160
  /** Wraps the card, such as a frame that keeps it readable while new data loads. */
173
161
  wrapCard?: (card: React.ReactNode) => React.ReactNode;
162
+ /**
163
+ * A condition of the rows' own reading that the page fixes, for a table that is the page's job
164
+ * under its title, such as a refresh of the rows that failed: one `NoticeBanner`, above the toolbar.
165
+ */
166
+ notice?: NoticeBannerProps | undefined;
174
167
  };
175
168
  /** A fully loaded, non-registry comparison searches one column, and then every word of that search is given. */
176
169
  type DataTableLocalSearch = {
@@ -239,6 +232,8 @@ export declare function columnMenuLabel<TData extends RowData, TValue extends Ce
239
232
  * “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table)
240
233
  * “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
241
234
  * Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
235
+ * Ours: a table that is the page's job under its title takes the page's `notice`, one `NoticeBanner` above its toolbar, 12 px over it, as a collection page places it under the title: a refresh of the rows that failed, with Try again (nadicode decision).
236
+ * Ours: the table draws its own toolbar, a `FilterToolbar`: from `toolbar` for a registry whose search, filters and sort the product keeps (the URL), or else its own local search; the column menu and `toolbarActions` end it. A product never draws a table's toolbar itself. While the page reads the rows, `DataTableSkeleton` stands in the table's place: the same card, a heading row and the given number of rows at the table's heights, the columns after the second leaving it below 640 px, with no words (nadicode decision).
242
237
  * “Sortable column headers are buttons. The visible label stays Title Case; the sort-direction arrow is decorative and the button announces the next sort state to assistive tech.” (https://vercel.com/geist/table)
243
238
  * Ours: the order has one owner, the app's `sorting`, which the URL holds and a `CollectionSort` above the list sets, so no heading is a button and every page of a paged list follows one order.
244
239
  * “Apply `tabular-nums` (or Geist Mono) to numeric columns so digits align across rows for comparison.” (https://vercel.com/geist/table)
@@ -248,9 +243,19 @@ export declare function columnMenuLabel<TData extends RowData, TValue extends Ce
248
243
  * “Use the canonical short relative-time form in cells (`2m ago`, `5h ago`); switch to `Mar 14, 2026` past 7 days. See `Relative Time Card`.” (https://vercel.com/geist/table)
249
244
  * “Pagination labels are `Previous` and `Next`. Page-count copy reads `Page 2 of 7` or `21–40 of 142` with an en-dash inside the range.” (https://vercel.com/geist/table)
250
245
  * Ours: headings are sentence case nouns with their unit, "Cost (€)", "Tokens", where Geist writes Title Case. The words of a time and of Previous and Next are the product's catalogue, in both languages. The footer is a count or the paging, never a help sentence: guidance a step needs lives in that step. Totals and paging each stand in a footer zone of their own, the paging at the trailing edge; the summary row is a labelled total. Italian headings run a third longer and never wrap.
251
- * @access A native table named by `tableLabel`, which is required; `th scope="col"`; the record's name is the row's one link. A sorted column's heading carries `aria-sort`. Ours: a missing value is a hidden "—" with screen-reader text, never blank.
246
+ * @access A native table named by `tableLabel`, which is required; `th scope="col"`; the record's name is the row's one link. A sorted column's heading carries `aria-sort`. `DataTableSkeleton` is busy and its placeholder table is hidden from assistive technology. Ours: a missing value is a hidden "—" with screen-reader text, never blank.
252
247
  */
253
248
  export declare function DataTable<TData extends RowData>(props: DataTableProps<TData>): React.JSX.Element;
249
+ /**
250
+ * What stands in a DataTable's place while its page reads the rows: its card, a heading row and
251
+ * `rows` rows of `columns` placeholders, with no words, under the table's `notice` when a read of
252
+ * the rows is failing, as the table places it.
253
+ */
254
+ export declare function DataTableSkeleton({ rows, columns, notice, }: {
255
+ rows: number;
256
+ columns: number;
257
+ notice?: NoticeBannerProps | undefined;
258
+ }): React.JSX.Element;
254
259
  /**
255
260
  * The entity rows `RecordList` draws: a table whose headings only a screen reader reads, 72 px
256
261
  * rows, and a form that opens inside the record's row. A screen draws these rows with
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/components/data-table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EAGnB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,WAAW,EAIX,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,SAAS,EAGd,KAAK,OAAO,EAGb,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAU1F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AA0B5E,KAAK,iBAAiB,GAAG;IACvB,sBAAsB,EAAE,OAAO,sBAAsB,CAAC;IACtD,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;IAChD,uBAAuB,EAAE,OAAO,uBAAuB,CAAC;IACxD,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;IAClD,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;IAC5C,gBAAgB,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IAC5D,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAC9D,cAAc,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACxD,SAAS,EAAE;QACT,WAAW,EAAE,OAAO,oBAAoB,CAAC;QACzC,MAAM,EAAE,OAAO,eAAe,CAAC;QAC/B,WAAW,EAAE,OA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AC,qBAEhF"}
@@ -7,11 +7,13 @@ import { ChevronDown } from "lucide-react";
7
7
  import { cn } from "../lib/utils.js";
8
8
  import { ActionContextMenu } from "./action-menu.js";
9
9
  import { Button, ButtonLink } from "./button.js";
10
- import { CollectionToolbar } from "./collection-toolbar.js";
11
10
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuTrigger, } from "./dropdown-menu.js";
12
11
  import { EmptyState } from "./empty-state.js";
12
+ import { FilterToolbar, filterToolbarHolds, } from "./filter-toolbar.js";
13
13
  import { MiddleTruncate } from "./middle-truncate.js";
14
- import { Table, TableCell, TableCol, TableColgroup, TableDetailRow, TableHead, TableHeader, TableRecordGroup, TableRow, } from "./table.js";
14
+ import { NoticeBanner } from "./notice-banner.js";
15
+ import { Table, TableBody, TableCell, TableCol, TableColgroup, TableDetailRow, TableHead, TableHeader, TableRecordGroup, TableRow, } from "./table.js";
16
+ import { Skeleton } from "./skeleton.js";
15
17
  import { TableCard } from "./table-card.js";
16
18
  import { TableCompactLayoutOf, TableCompactLine, } from "../internal/table-compact-line.js";
17
19
  import { compactLayoutFor, tableCompactLayouts, } from "./table-layouts.js";
@@ -187,9 +189,6 @@ function PagerButton({ enabled, label, link, onClick, }) {
187
189
  function GroupHeading({ children, span }) {
188
190
  return (_jsx("tbody", { "data-slot": "table-group-heading", children: _jsx(TableRow, { children: _jsx(TableHead, { className: "text-foreground last:text-left", colSpan: span, scope: "colgroup", children: children }) }) }));
189
191
  }
190
- function DefaultToolbar({ actions }) {
191
- return actions ? _jsx(CollectionToolbar, { label: "", actions: actions }) : null;
192
- }
193
192
  /**
194
193
  * Records compared across columns: the same facts for every record, read down a column and
195
194
  * across a row, inside their `TableCard`.
@@ -204,6 +203,8 @@ function DefaultToolbar({ actions }) {
204
203
  * “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table)
205
204
  * “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
206
205
  * Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
206
+ * Ours: a table that is the page's job under its title takes the page's `notice`, one `NoticeBanner` above its toolbar, 12 px over it, as a collection page places it under the title: a refresh of the rows that failed, with Try again (nadicode decision).
207
+ * Ours: the table draws its own toolbar, a `FilterToolbar`: from `toolbar` for a registry whose search, filters and sort the product keeps (the URL), or else its own local search; the column menu and `toolbarActions` end it. A product never draws a table's toolbar itself. While the page reads the rows, `DataTableSkeleton` stands in the table's place: the same card, a heading row and the given number of rows at the table's heights, the columns after the second leaving it below 640 px, with no words (nadicode decision).
207
208
  * “Sortable column headers are buttons. The visible label stays Title Case; the sort-direction arrow is decorative and the button announces the next sort state to assistive tech.” (https://vercel.com/geist/table)
208
209
  * Ours: the order has one owner, the app's `sorting`, which the URL holds and a `CollectionSort` above the list sets, so no heading is a button and every page of a paged list follows one order.
209
210
  * “Apply `tabular-nums` (or Geist Mono) to numeric columns so digits align across rows for comparison.” (https://vercel.com/geist/table)
@@ -213,11 +214,24 @@ function DefaultToolbar({ actions }) {
213
214
  * “Use the canonical short relative-time form in cells (`2m ago`, `5h ago`); switch to `Mar 14, 2026` past 7 days. See `Relative Time Card`.” (https://vercel.com/geist/table)
214
215
  * “Pagination labels are `Previous` and `Next`. Page-count copy reads `Page 2 of 7` or `21–40 of 142` with an en-dash inside the range.” (https://vercel.com/geist/table)
215
216
  * Ours: headings are sentence case nouns with their unit, "Cost (€)", "Tokens", where Geist writes Title Case. The words of a time and of Previous and Next are the product's catalogue, in both languages. The footer is a count or the paging, never a help sentence: guidance a step needs lives in that step. Totals and paging each stand in a footer zone of their own, the paging at the trailing edge; the summary row is a labelled total. Italian headings run a third longer and never wrap.
216
- * @access A native table named by `tableLabel`, which is required; `th scope="col"`; the record's name is the row's one link. A sorted column's heading carries `aria-sort`. Ours: a missing value is a hidden "—" with screen-reader text, never blank.
217
+ * @access A native table named by `tableLabel`, which is required; `th scope="col"`; the record's name is the row's one link. A sorted column's heading carries `aria-sort`. `DataTableSkeleton` is busy and its placeholder table is hidden from assistive technology. Ours: a missing value is a hidden "—" with screen-reader text, never blank.
217
218
  */
218
219
  export function DataTable(props) {
219
220
  return _jsx(RecordsTable, { ...props, kind: props.rows ?? "figures" });
220
221
  }
222
+ /**
223
+ * What stands in a DataTable's place while its page reads the rows: its card, a heading row and
224
+ * `rows` rows of `columns` placeholders, with no words, under the table's `notice` when a read of
225
+ * the rows is failing, as the table places it.
226
+ */
227
+ export function DataTableSkeleton({ rows, columns, notice, }) {
228
+ const placeholders = Array.from({ length: columns }, (_, column) => column);
229
+ const narrowHidden = (column) => (column > 1 ? "hidden sm:table-cell" : undefined);
230
+ const skeleton = (_jsx("div", { "aria-busy": "true", className: "min-w-0 w-full", "data-slot": "data-table-skeleton", children: _jsx(TableCard, { children: _jsxs(Table, { "aria-hidden": true, className: "table-fixed text-body-sm", children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: placeholders.map((column) => (_jsx(TableHead, { className: narrowHidden(column), children: _jsx(Skeleton, { className: "h-4 w-3/4" }) }, column))) }) }), _jsx(TableBody, { bordered: true, children: Array.from({ length: rows }, (_, row) => (_jsx(TableRow, { children: placeholders.map((column) => (_jsx(TableCell, { className: narrowHidden(column), children: _jsx("div", { className: "flex h-5 items-center", children: _jsx(Skeleton, { className: "h-4 w-3/4" }) }) }, column))) }, row))) })] }) }) }));
231
+ if (!notice)
232
+ return skeleton;
233
+ return (_jsxs("div", { className: "min-w-0 w-full", children: [_jsx(NoticeBanner, { ...notice, className: cn("mb-3", notice.className) }), skeleton] }));
234
+ }
221
235
  /**
222
236
  * The entity rows `RecordList` draws: a table whose headings only a screen reader reads, 72 px
223
237
  * rows, and a form that opens inside the record's row. A screen draws these rows with
@@ -226,7 +240,7 @@ export function DataTable(props) {
226
240
  export function EntityTable(props) {
227
241
  return _jsx(RecordsTable, { ...props, kind: "entities" });
228
242
  }
229
- function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPlaceholder, primaryColumns, tableLabel, heading, footer, footerNote, group, embedded = false, summary, rowHref, rowLabel, primaryColumnId, empty, noMatchMessage, columnsLabel, clearSearchLabel, pageLabels, toolbarActions, externalFilter, sorting: externalSorting, pagination, renderRowLink = defaultRowLink, renderToolbar = DefaultToolbar, wrapCard, rowEditor, rowMenu, rowUnderName, }) {
243
+ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPlaceholder, primaryColumns, tableLabel, heading, footer, footerNote, group, embedded = false, summary, rowHref, rowLabel, primaryColumnId, empty, noMatchMessage, columnsLabel, clearSearchLabel, pageLabels, toolbarActions, externalFilter, sorting: externalSorting, pagination, renderRowLink = defaultRowLink, toolbar, wrapCard, notice, rowEditor, rowMenu, rowUnderName, }) {
230
244
  const entities = kind === "entities";
231
245
  const [sorting, setSorting] = React.useState([]);
232
246
  const [columnFilters, setColumnFilters] = React.useState([]);
@@ -362,21 +376,19 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
362
376
  ? null
363
377
  : flexRender(header.column.columnDef.header, header.getContext()) }, header.id))) }, headerGroup.id))) }), _jsx(LayoutProbeLeadingRecords, { layout: tableLayout, probeRef: layoutProbeRef, children: sections.map((section) => (_jsxs(React.Fragment, { children: [section.heading === undefined ? null : (_jsx(GroupHeading, { span: table.getVisibleLeafColumns().length, children: section.heading })), section.rows.map(renderRow)] }, section.heading ?? ""))) })] }) }))] }));
364
378
  const actions = columnsControl || toolbarActions ? (_jsxs(_Fragment, { children: [columnsControl, toolbarActions] })) : null;
365
- const toolbarSlots = { actions };
366
- if (filterColumn && filterPlaceholder !== undefined && clearSearchLabel !== undefined) {
367
- toolbarSlots.search = {
368
- label: filterPlaceholder,
369
- placeholder: filterPlaceholder,
370
- value: filterValue,
371
- onChange: (value) => filterColumn.setFilterValue(value),
372
- };
373
- toolbarSlots.clear = {
374
- label: clearSearchLabel,
375
- onClear: () => filterColumn.setFilterValue(""),
376
- };
377
- }
378
- const toolbarRow = renderToolbar(toolbarSlots);
379
+ const tools = toolbar ?? {
380
+ label: filterPlaceholder ?? columnsLabel ?? tableLabel,
381
+ search: filterColumn && filterPlaceholder !== undefined && clearSearchLabel !== undefined
382
+ ? {
383
+ label: filterPlaceholder,
384
+ clearLabel: clearSearchLabel,
385
+ value: filterValue,
386
+ onValueChange: (value) => filterColumn.setFilterValue(value),
387
+ }
388
+ : undefined,
389
+ };
390
+ const toolbarRow = filterToolbarHolds({ ...tools, actions }) ? (_jsx(FilterToolbar, { lead: "filters", ...tools, actions: actions })) : null;
379
391
  const pager = pageLabels && pagination !== false && (canPreviousPage || canNextPage) ? (_jsxs("div", { "aria-busy": waitingForPage || undefined, className: "flex items-center gap-3", children: [pagination && pagination.status ? (_jsx("span", { className: "tabular-nums", children: pagination.status })) : null, _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(PagerButton, { enabled: canPreviousPage && !waitingForPage, label: pageLabels.previous, link: pagination ? pagination.previousLink : undefined, onClick: goPreviousPage }), _jsx(PagerButton, { enabled: canNextPage && !waitingForPage, label: pageLabels.next, link: pagination ? pagination.nextLink : undefined, onClick: goNextPage })] })] })) : null;
380
392
  const card = (_jsx(TableCard, { surface: embedded ? "plain" : "resting", title: heading?.title, description: heading?.description, toolbar: heading ? toolbarRow : undefined, summary: summary, footerHint: footer, footer: pager, note: footerNote, children: tableNode }));
381
- return (_jsxs("div", { className: "min-w-0 w-full text-body-sm", "data-slot": "data-table", children: [heading ? null : toolbarRow, wrapCard ? wrapCard(card) : card] }));
393
+ return (_jsxs("div", { className: "min-w-0 w-full text-body-sm", "data-slot": "data-table", children: [notice ? _jsx(NoticeBanner, { ...notice, className: cn("mb-3", notice.className) }) : null, heading ? null : toolbarRow, wrapCard ? wrapCard(card) : card] }));
382
394
  }
@@ -0,0 +1,55 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import { type NoticeBannerProps } from "./notice-banner.js";
3
+ declare const COLUMN_WIDTH: {
4
+ readonly sm: "max-w-sm";
5
+ readonly md: "max-w-md";
6
+ readonly approval: "max-w-[32.5rem]";
7
+ readonly lg: "max-w-xl";
8
+ readonly xl: "max-w-3xl";
9
+ readonly "2xl": "max-w-5xl";
10
+ };
11
+ export type EntryPageWidth = keyof typeof COLUMN_WIDTH;
12
+ export type EntryPageProps = {
13
+ /** The product's wordmark at the start of the header band; a link home only where leaving is safe. */
14
+ brand: ReactNode;
15
+ /** What stands at the header's end: the theme switcher, the way to sign out. */
16
+ actions?: ReactNode;
17
+ /** The column's measure: `md` for a form, `approval` for a hand-over, `2xl` for a record beside its map. */
18
+ width?: EntryPageWidth;
19
+ /** A short job sits in the window's optical centre; a long one (a waiting room, a document) starts at the top. */
20
+ align?: "center" | "start";
21
+ /** No line under the header, for a page whose picture stands on the whole window. */
22
+ bare?: boolean;
23
+ /** The dark plane in every theme: the pages that hand a person to Nadia, drawn on black as her own entry screen is. */
24
+ dark?: boolean;
25
+ /** The product's figure, ambient above the column, such as Nadia's orb: artwork that claims no activity. */
26
+ presence?: ReactNode;
27
+ /** The approved picture of the page, behind everything from 1024 px and left out below. */
28
+ picture?: ReactNode;
29
+ /** `approval` lays the header over the picture and tightens the column, for a page that hands a person to Nadia. */
30
+ layout?: "default" | "approval";
31
+ /** The page's heading: its h1 and the lines that introduce it, such as who invited the person. */
32
+ heading?: ReactNode;
33
+ /** A condition of what the page does that the page fixes, under its heading: one `NoticeBanner`. */
34
+ notice?: NoticeBannerProps;
35
+ /** The heading, the notice and the content stand in one card, for a page whose card is its job: an invitation. */
36
+ card?: boolean;
37
+ /** The page's own content: its form, its record, its document. */
38
+ children?: ReactNode;
39
+ /** The product's `<main />`, which the page fills: a page owns its landmarks, so no component renders one. */
40
+ main: ReactElement;
41
+ };
42
+ /**
43
+ * A page a person meets outside the product's shell: a header band with the wordmark, then one
44
+ * column with the job.
45
+ *
46
+ * @family Compositions
47
+ * @when Every page outside the signed-in shell: sign-in, sign-up, an invitation, two-factor, a legal document, the company check, and the pages that hand a person to Nadia or back from a closed account (nadicode decision).
48
+ * @instead A page inside the shell is a `CollectionPage`, `ObjectPage`, `OverviewPage` or `SettingsPage`. Nadia's installer and her desktop's own entry screens are an `EntryScene`; Alveare Server's is the `HiveScene`.
49
+ * @behaviour The page is the `main` landmark the product passes: a header band with the `brand` at its start and the `actions` at its end, a line under it unless `bare`, then one centred column of the `width` measure, in the window's optical centre or from the top (`align`), 24 px between its parts (12 px with `layout="approval"`, whose header lies over the picture from 640 px). The `picture` stands behind the whole window from 1024 px and is left out below; `dark` draws the page on the dark plane in every theme. The `presence` stands centred at the column's top, then the `heading`, the `notice` under it and the page's content: one notice at a time, a strip as wide as the column with its one fix, under the title as every page composition places it. With `card` the heading, the notice and the content stand in one resting card, 24 px apart inside its padding, the strip as wide as the card's content. The page has no navigation of its own: the brand links home only where leaving is safe, and a page that names an account offers a way to sign out among its `actions` or as its notice's fix.
50
+ * @words None of its own: the brand, the actions, the notice and the content carry the product's words.
51
+ * @access One `main` landmark; the page's h1 is in its `heading`, or in its content when it has none. The picture and the presence are hidden and inert, and the header's actions stay in reading order before the content.
52
+ */
53
+ export declare function EntryPage({ brand, actions, width, align, bare, dark, presence, picture, layout, heading, notice, card, children, main, }: EntryPageProps): ReactElement;
54
+ export {};
55
+ //# sourceMappingURL=entry-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-page.d.ts","sourceRoot":"","sources":["../../src/components/entry-page.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGlF,QAAA,MAAM,YAAY;;;;;;;CAOR,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,YAAY,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG;IAC3B,sGAAsG;IACtG,KAAK,EAAE,SAAS,CAAC;IACjB,gFAAgF;IAChF,OAAO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