@nadicodeai/ui 12.1.223 → 12.1.225

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 (191) hide show
  1. package/AGENTS.md +4 -1
  2. package/dist/components/action-menu.d.ts +4 -4
  3. package/dist/components/action-menu.d.ts.map +1 -1
  4. package/dist/components/action-menu.js +2 -2
  5. package/dist/components/agent-card.d.ts +1 -1
  6. package/dist/components/agent-card.js +1 -1
  7. package/dist/components/agent-profile.d.ts +4 -4
  8. package/dist/components/agent-profile.js +1 -1
  9. package/dist/components/badge.d.ts +2 -1
  10. package/dist/components/badge.d.ts.map +1 -1
  11. package/dist/components/badge.js +2 -1
  12. package/dist/components/brand.d.ts +1 -1
  13. package/dist/components/brand.d.ts.map +1 -1
  14. package/dist/components/brand.js +21 -2
  15. package/dist/components/card.d.ts +1 -1
  16. package/dist/components/card.js +1 -1
  17. package/dist/components/catalog-card.d.ts +1 -2
  18. package/dist/components/catalog-card.d.ts.map +1 -1
  19. package/dist/components/catalog-card.js +1 -2
  20. package/dist/components/chart-card.d.ts +2 -2
  21. package/dist/components/chart-card.d.ts.map +1 -1
  22. package/dist/components/chart-card.js +1 -1
  23. package/dist/components/check-counts.d.ts +3 -5
  24. package/dist/components/check-counts.d.ts.map +1 -1
  25. package/dist/components/check-counts.js +5 -7
  26. package/dist/components/collection-page.d.ts +6 -7
  27. package/dist/components/collection-page.d.ts.map +1 -1
  28. package/dist/components/collection-page.js +3 -3
  29. package/dist/components/data-table.d.ts +13 -21
  30. package/dist/components/data-table.d.ts.map +1 -1
  31. package/dist/components/data-table.js +57 -192
  32. package/dist/components/drawer-steps.d.ts +1 -1
  33. package/dist/components/drawer-steps.js +1 -1
  34. package/dist/components/dropdown-menu.d.ts +5 -4
  35. package/dist/components/dropdown-menu.d.ts.map +1 -1
  36. package/dist/components/dropdown-menu.js +7 -6
  37. package/dist/components/empty-state.d.ts +4 -1
  38. package/dist/components/empty-state.d.ts.map +1 -1
  39. package/dist/components/empty-state.js +5 -4
  40. package/dist/components/figure-row.d.ts +58 -0
  41. package/dist/components/figure-row.d.ts.map +1 -0
  42. package/dist/components/figure-row.js +41 -0
  43. package/dist/components/form-dialog.d.ts +1 -1
  44. package/dist/components/form-dialog.js +1 -1
  45. package/dist/components/form-drawer.d.ts +2 -2
  46. package/dist/components/form-drawer.js +2 -2
  47. package/dist/components/gauge.d.ts +2 -0
  48. package/dist/components/gauge.d.ts.map +1 -1
  49. package/dist/components/gauge.js +2 -0
  50. package/dist/components/icon-tile.d.ts +27 -0
  51. package/dist/components/icon-tile.d.ts.map +1 -0
  52. package/dist/components/icon-tile.js +18 -0
  53. package/dist/components/identity-mark.d.ts +3 -2
  54. package/dist/components/identity-mark.d.ts.map +1 -1
  55. package/dist/components/identity-mark.js +3 -10
  56. package/dist/components/kpi-card.d.ts +23 -6
  57. package/dist/components/kpi-card.d.ts.map +1 -1
  58. package/dist/components/kpi-card.js +11 -7
  59. package/dist/components/library-shelf.d.ts +1 -1
  60. package/dist/components/library-shelf.js +1 -1
  61. package/dist/components/menu-choice-row.d.ts +1 -2
  62. package/dist/components/menu-choice-row.d.ts.map +1 -1
  63. package/dist/components/menu-choice-row.js +1 -2
  64. package/dist/components/notice-banner.d.ts +1 -1
  65. package/dist/components/notice-banner.js +1 -1
  66. package/dist/components/numbered-steps.d.ts +1 -1
  67. package/dist/components/numbered-steps.js +1 -1
  68. package/dist/components/object-page.d.ts +25 -9
  69. package/dist/components/object-page.d.ts.map +1 -1
  70. package/dist/components/object-page.js +13 -9
  71. package/dist/components/object-workspace.d.ts +2 -2
  72. package/dist/components/object-workspace.js +2 -2
  73. package/dist/components/overview-page.d.ts +6 -1
  74. package/dist/components/overview-page.d.ts.map +1 -1
  75. package/dist/components/page-actions.d.ts +16 -15
  76. package/dist/components/page-actions.d.ts.map +1 -1
  77. package/dist/components/page-actions.js +9 -7
  78. package/dist/components/page-frame.d.ts +1 -1
  79. package/dist/components/page-frame.js +1 -1
  80. package/dist/components/page-header.d.ts +12 -9
  81. package/dist/components/page-header.d.ts.map +1 -1
  82. package/dist/components/page-header.js +11 -8
  83. package/dist/components/product-shell.d.ts +10 -13
  84. package/dist/components/product-shell.d.ts.map +1 -1
  85. package/dist/components/product-shell.js +9 -12
  86. package/dist/components/progress-checklist.d.ts +4 -4
  87. package/dist/components/progress-checklist.d.ts.map +1 -1
  88. package/dist/components/progress-checklist.js +4 -14
  89. package/dist/components/progress.d.ts +3 -1
  90. package/dist/components/progress.d.ts.map +1 -1
  91. package/dist/components/progress.js +3 -1
  92. package/dist/components/reading-column.d.ts +2 -2
  93. package/dist/components/reading-column.js +2 -2
  94. package/dist/components/record-commands.d.ts +15 -7
  95. package/dist/components/record-commands.d.ts.map +1 -1
  96. package/dist/components/record-commands.js +26 -19
  97. package/dist/components/record-identity.d.ts +4 -2
  98. package/dist/components/record-identity.d.ts.map +1 -1
  99. package/dist/components/record-identity.js +3 -4
  100. package/dist/components/record-list.d.ts +25 -27
  101. package/dist/components/record-list.d.ts.map +1 -1
  102. package/dist/components/record-list.js +31 -79
  103. package/dist/components/record-sheet.d.ts +1 -1
  104. package/dist/components/record-sheet.js +1 -1
  105. package/dist/components/row-edit-form.d.ts +1 -1
  106. package/dist/components/row-edit-form.js +1 -1
  107. package/dist/components/settings-facts.d.ts +5 -6
  108. package/dist/components/settings-facts.d.ts.map +1 -1
  109. package/dist/components/settings-facts.js +3 -4
  110. package/dist/components/settings-page.d.ts +2 -2
  111. package/dist/components/settings-page.js +2 -2
  112. package/dist/components/settings-section.d.ts +10 -5
  113. package/dist/components/settings-section.d.ts.map +1 -1
  114. package/dist/components/settings-section.js +8 -4
  115. package/dist/components/sheet.d.ts +1 -1
  116. package/dist/components/sheet.js +1 -1
  117. package/dist/components/sidebar-sections.d.ts +4 -4
  118. package/dist/components/sidebar-sections.d.ts.map +1 -1
  119. package/dist/components/sidebar-sections.js +3 -3
  120. package/dist/components/sidebar.d.ts +1 -1
  121. package/dist/components/sidebar.js +1 -1
  122. package/dist/components/status-badge.d.ts +15 -12
  123. package/dist/components/status-badge.d.ts.map +1 -1
  124. package/dist/components/status-badge.js +15 -12
  125. package/dist/components/step-cards.d.ts +1 -2
  126. package/dist/components/step-cards.d.ts.map +1 -1
  127. package/dist/components/step-cards.js +1 -2
  128. package/dist/components/switch.d.ts +4 -2
  129. package/dist/components/switch.d.ts.map +1 -1
  130. package/dist/components/switch.js +9 -3
  131. package/dist/components/table-card.d.ts +2 -3
  132. package/dist/components/table-card.d.ts.map +1 -1
  133. package/dist/components/table-card.js +2 -3
  134. package/dist/components/table.d.ts +6 -24
  135. package/dist/components/table.d.ts.map +1 -1
  136. package/dist/components/table.js +11 -23
  137. package/dist/components/tabs-nav.d.ts +2 -2
  138. package/dist/components/tabs-nav.js +2 -2
  139. package/dist/components/text-link.d.ts +5 -5
  140. package/dist/components/text-link.js +5 -5
  141. package/dist/index.d.ts +2 -0
  142. package/dist/index.d.ts.map +1 -1
  143. package/dist/index.js +2 -0
  144. package/dist/internal/badge-frame.d.ts +1 -1
  145. package/dist/internal/badge-frame.d.ts.map +1 -1
  146. package/dist/internal/badge-frame.js +1 -0
  147. package/dist/internal/catalog-list.d.ts.map +1 -1
  148. package/dist/internal/catalog-list.js +1 -1
  149. package/dist/internal/collection-rail.d.ts +2 -2
  150. package/dist/internal/collection-rail.d.ts.map +1 -1
  151. package/dist/internal/empty.d.ts +1 -1
  152. package/dist/internal/empty.d.ts.map +1 -1
  153. package/dist/internal/empty.js +1 -2
  154. package/dist/internal/fieldset-disabled.d.ts +6 -0
  155. package/dist/internal/fieldset-disabled.d.ts.map +1 -0
  156. package/dist/internal/fieldset-disabled.js +7 -0
  157. package/dist/internal/final-focus.d.ts +2 -2
  158. package/dist/internal/final-focus.js +2 -2
  159. package/dist/internal/icon-tile-frame.d.ts +16 -0
  160. package/dist/internal/icon-tile-frame.d.ts.map +1 -0
  161. package/dist/internal/icon-tile-frame.js +21 -0
  162. package/dist/internal/record-grid.d.ts +58 -0
  163. package/dist/internal/record-grid.d.ts.map +1 -0
  164. package/dist/internal/record-grid.js +79 -0
  165. package/dist/internal/settings-save.d.ts.map +1 -1
  166. package/dist/internal/settings-save.js +2 -1
  167. package/dist/showcase/specimens/actions.d.ts.map +1 -1
  168. package/dist/showcase/specimens/actions.js +1 -1
  169. package/dist/showcase/specimens/charts.d.ts.map +1 -1
  170. package/dist/showcase/specimens/charts.js +1 -1
  171. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  172. package/dist/showcase/specimens/compositions.js +3 -3
  173. package/dist/showcase/specimens/data.d.ts +1 -0
  174. package/dist/showcase/specimens/data.d.ts.map +1 -1
  175. package/dist/showcase/specimens/data.js +7 -4
  176. package/dist/showcase/specimens/index.d.ts +2 -0
  177. package/dist/showcase/specimens/index.d.ts.map +1 -1
  178. package/dist/showcase/specimens/status.d.ts +1 -0
  179. package/dist/showcase/specimens/status.d.ts.map +1 -1
  180. package/dist/showcase/specimens/status.js +4 -2
  181. package/dist/showcase/usage.generated.d.ts +1 -1
  182. package/dist/showcase/usage.generated.d.ts.map +1 -1
  183. package/dist/showcase/usage.generated.js +100 -78
  184. package/dist/standalone/index.js +1 -1
  185. package/package.json +2 -2
  186. package/dist/components/table-layouts.d.ts +0 -110
  187. package/dist/components/table-layouts.d.ts.map +0 -1
  188. package/dist/components/table-layouts.js +0 -125
  189. package/dist/internal/table-compact-line.d.ts +0 -57
  190. package/dist/internal/table-compact-line.d.ts.map +0 -1
  191. package/dist/internal/table-compact-line.js +0 -119
@@ -1,9 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { cn } from "../lib/utils.js";
4
- import { DetailFacts, detailFactsLine, detailFactsWrap, } from "../internal/table-compact-line.js";
5
- import { tableCompactLayouts } from "./table-layouts.js";
6
- import { titleWhenCut } from "../internal/title-when-cut.js";
7
4
  /**
8
5
  * The native table every comparison is drawn with: a head row, figure rows of one line, and cells
9
6
  * padded the same at every width.
@@ -31,14 +28,9 @@ import { titleWhenCut } from "../internal/title-when-cut.js";
31
28
  * `muted`; a footer has a rule above it and ink, medium text. A column's width is a `TableCol` in a
32
29
  * `TableColgroup`. The table has no fill or edge of its own: it takes its enclosing surface, whose
33
30
  * `Card` owns the outer edge, and a visible header and every record but the last end in a quiet 1 px
34
- * `border` rule. A table that opens nothing implies no action on hover. `density="comfortable"` is
35
- * the entity row of a record that names itself. On a card narrower than its `compactDetails` layout a row never scrolls
36
- * sideways: its secondary columns leave the row and their values stand in the `TableDetailRow` under
37
- * it, one muted line joined by a middle dot that ends in an ellipsis, their labels read by assistive
38
- * technology only, as Vercel's lists read on a phone; a `Tag` there reads as its plain text, and a
39
- * fact that `wraps` lets the line wrap whole instead of ending in an ellipsis. An entity row
40
- * (`density="comfortable"`) keeps its facts in the identity cell instead: they join the text
41
- * under the name that `RecordIdentity` draws (`TableCompactLine`), and wrap so every value stays readable. Colour is neutral throughout: headings and cells share
31
+ * `border` rule. A table that opens nothing implies no action on hover. On a card narrower than its columns the table keeps every column and
32
+ * scrolls sideways inside its card, as Geist's and shadcn's tables do: a cell's words stay on one
33
+ * line unless its column wraps. Colour is neutral throughout: headings and cells share
42
34
  * the body grey and a heading differs by weight, the footer is ink, and the hue of a state lives in
43
35
  * the `StatusBadge` of a cell, never in the row.
44
36
  * “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)
@@ -53,8 +45,8 @@ import { titleWhenCut } from "../internal/title-when-cut.js";
53
45
  * `aria-hidden` when it is only the placeholder of a loading view; `th scope="col"`, with
54
46
  * `aria-sort` on the column the rows are ordered by.
55
47
  */
56
- function Table({ className, compactDetails, density = "default", ...props }) {
57
- return (_jsx("div", { "data-slot": "table-container", "data-nc-ui": "", className: cn("relative w-full overflow-x-auto", compactDetails && "@container/table"), children: _jsx("table", { "data-slot": "table", "data-nc-ui": "", "data-compact-details": compactDetails, "data-density": density, className: cn("group/table w-full border-separate border-spacing-0 caption-bottom text-sm text-muted-foreground", className, compactDetails && tableCompactLayouts[compactDetails].table), ...props }) }));
48
+ function Table({ className, ...props }) {
49
+ return (_jsx("div", { "data-slot": "table-container", "data-nc-ui": "", className: "relative w-full overflow-x-auto", children: _jsx("table", { "data-slot": "table", "data-nc-ui": "", className: cn("group/table w-full border-separate border-spacing-0 caption-bottom text-sm text-muted-foreground", className), ...props }) }));
58
50
  }
59
51
  function TableColgroup(props) {
60
52
  return _jsx("colgroup", { "data-slot": "table-colgroup", ...props });
@@ -67,28 +59,24 @@ function TableHeader({ className, ...props }) {
67
59
  }
68
60
  const ROUNDED_OUTER_CELLS = "[&>tr>td:first-child]:rounded-l-sm [&>tr>td:last-child]:rounded-r-sm";
69
61
  function TableBody({ className, striped = false, bordered = false, interactive = false, ...props }) {
70
- return (_jsx("tbody", { "data-slot": "table-body", "data-nc-ui": "", "data-striped": striped, "data-bordered": bordered, "data-interactive": interactive, className: cn("[&_tr]:h-10 group-data-[density=comfortable]/table:[&_tr]:h-18 [&_tr:last-child>td]:border-b-0 [&_tr:last-child>td]:after:hidden", !bordered && ROUNDED_OUTER_CELLS, className), ...props }));
62
+ return (_jsx("tbody", { "data-slot": "table-body", "data-nc-ui": "", "data-striped": striped, "data-bordered": bordered, "data-interactive": interactive, className: cn("[&_tr]:h-10 [&_tr:last-child>td]:border-b-0 [&_tr:last-child>td]:after:hidden", !bordered && ROUNDED_OUTER_CELLS, className), ...props }));
71
63
  }
72
64
  function TableRecordGroup({ className, interactive = false, ...props }) {
73
- return (_jsx("tbody", { "data-bordered": true, "data-interactive": interactive, className: cn("[&_tr]:h-10 group-data-[density=comfortable]/table:[&_tr]:h-18 data-[interactive=true]:[&:hover>tr>td]:bg-accent [&:has(:focus-visible)>tr>td]:bg-accent [&:has([aria-expanded=true])>tr>td]:bg-accent [&:has(>tr[data-state=selected])>tr>td]:bg-muted [&:last-of-type>tr>td]:border-b-0 [&:last-of-type>tr>td]:after:hidden", className), ...props, "data-slot": "table-record-group" }));
65
+ return (_jsx("tbody", { "data-bordered": true, "data-interactive": interactive, className: cn("[&_tr]:h-10 data-[interactive=true]:[&:hover>tr>td]:bg-accent [&:has(:focus-visible)>tr>td]:bg-accent [&:has([aria-expanded=true])>tr>td]:bg-accent [&:has(>tr[data-state=selected])>tr>td]:bg-muted [&:last-of-type>tr>td]:border-b-0 [&:last-of-type>tr>td]:after:hidden", className), ...props, "data-slot": "table-record-group" }));
74
66
  }
75
67
  function TableFooter({ className, ...props }) {
76
68
  return (_jsx("tfoot", { "data-slot": "table-footer", className: cn("font-medium text-foreground [&>tr:first-child>td]:border-t [&>tr:first-child>td]:border-border", className), ...props }));
77
69
  }
78
- function TableRow({ className, detailLayout, ...props }) {
79
- return (_jsx("tr", { "data-slot": "table-row", "data-nc-ui": "", className: cn("in-data-[bordered=true]:[&>td]:relative in-data-[bordered=true]:[&>td]:border-b in-data-[bordered=true]:[&>td]:after:absolute in-data-[bordered=true]:[&>td]:after:inset-x-0 in-data-[bordered=true]:[&>td]:after:bottom-0 in-data-[bordered=true]:[&>td]:after:h-px in-data-[bordered=true]:[&>td]:after:bg-border [&>th]:border-b [&>td]:border-transparent [&>th]:border-border [&>td]:transition-colors in-data-[striped=true]:[&:where(:nth-child(odd))]:[&>td]:bg-muted in-data-[interactive=true]:hover:[&>td]:bg-accent in-[tbody]:has-focus-visible:[&>td]:bg-accent in-[tbody]:has-aria-expanded:[&>td]:bg-accent data-[state=selected]:[&>td]:bg-muted in-data-[striped=true]:data-[state=selected]:[&>td]:bg-accent", detailLayout && tableCompactLayouts[detailLayout].row, className), ...props }));
70
+ function TableRow({ className, ...props }) {
71
+ return (_jsx("tr", { "data-slot": "table-row", "data-nc-ui": "", className: cn("in-data-[bordered=true]:[&>td]:relative in-data-[bordered=true]:[&>td]:border-b in-data-[bordered=true]:[&>td]:after:absolute in-data-[bordered=true]:[&>td]:after:inset-x-0 in-data-[bordered=true]:[&>td]:after:bottom-0 in-data-[bordered=true]:[&>td]:after:h-px in-data-[bordered=true]:[&>td]:after:bg-border [&>th]:border-b [&>td]:border-transparent [&>th]:border-border [&>td]:transition-colors in-data-[striped=true]:[&:where(:nth-child(odd))]:[&>td]:bg-muted in-data-[interactive=true]:hover:[&>td]:bg-accent in-[tbody]:has-focus-visible:[&>td]:bg-accent in-[tbody]:has-aria-expanded:[&>td]:bg-accent data-[state=selected]:[&>td]:bg-muted in-data-[striped=true]:data-[state=selected]:[&>td]:bg-accent", className), ...props }));
80
72
  }
81
73
  function TableHead({ className, ...props }) {
82
74
  return (_jsx("th", { "data-slot": "table-head", "data-nc-ui": "", className: cn("h-9 px-2 text-left align-middle text-sm font-medium whitespace-nowrap last:text-right has-[[role=checkbox]]:pr-0", className), ...props }));
83
75
  }
84
76
  function TableCell({ className, ...props }) {
85
- return (_jsx("td", { "data-slot": "table-cell", "data-nc-ui": "", className: cn("px-2 py-2.5 group-data-[density=comfortable]/table:py-4 group-data-[density=default]/table:has-[button]:py-0.5 align-middle whitespace-nowrap last:text-right has-[[role=checkbox]]:pr-0", className), ...props }));
86
- }
87
- function TableDetailRow({ colSpan, facts, layout = "standard", }) {
88
- const wraps = facts.some((fact) => fact.wraps);
89
- return (_jsx(TableRow, { "data-slot": "table-detail-row", className: cn("h-auto!", tableCompactLayouts[layout].details), children: _jsx(TableCell, { colSpan: colSpan, className: "pt-0! pb-3! whitespace-normal text-muted-foreground last:text-left", children: _jsx("div", { className: cn("relative min-w-0 in-[[data-slot=table-record-group]:has([data-slot=record-identity])]:pl-12", detailFactsLine, wraps ? ["wrap-break-word", detailFactsWrap] : "w-0 min-w-full truncate"), "data-slot": "table-detail-line", onFocus: wraps ? undefined : titleWhenCut, onPointerEnter: wraps ? undefined : titleWhenCut, children: _jsx(DetailFacts, { facts: facts, wraps: wraps }) }) }) }));
77
+ return (_jsx("td", { "data-slot": "table-cell", "data-nc-ui": "", className: cn("px-2 py-2.5 has-[button]:py-0.5 align-middle whitespace-nowrap last:text-right has-[[role=checkbox]]:pr-0", className), ...props }));
90
78
  }
91
79
  function TableCaption({ className, ...props }) {
92
80
  return (_jsx("caption", { "data-slot": "table-caption", className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
93
81
  }
94
- export { Table, TableColgroup, TableCol, TableHeader, TableBody, TableRecordGroup, TableFooter, TableHead, TableRow, TableCell, TableCaption, TableDetailRow, tableCompactLayouts, };
82
+ export { Table, TableColgroup, TableCol, TableHeader, TableBody, TableRecordGroup, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -16,10 +16,10 @@ import { type TabGroupName } from "../internal/tab-row.js";
16
16
  * rule; the other links are muted until hover, with no hue. Sizes and spacing follow `Tabs`. The
17
17
  * row holds at most 7 links; in a `band`, which a phone scrolls sideways instead of holding
18
18
  * fewer, that is 7 at every width, as an Agent's six views do, and a `line` row follows the 7 and 4 cap of `Tabs`. The sub-pages of one object stand as the filled-pill row in a
19
- * `band` under the top bar, as Vercel draws a deployment's tabs: the band is this component's, with `above` for the
19
+ * `band` under the top bar: the band is this component's, with `above` for the
20
20
  * object's identity, so no page draws the border, the fill or the gutters around the row. The band
21
21
  * keeps the page's own column and gutter, and the first link's words start at the page title's edge,
22
- * its fill reaching into the gutter as Vercel's tabs do. The
22
+ * its fill reaching into the gutter. The
23
23
  * `line` row has its own rule and takes no band.
24
24
  * @words "`tabs[].title` is Title Case, 1–2 words, and names the destination noun (`Overview`, `Logs`, `Settings`). Verbs belong on buttons; `View Logs` is wrong on a tab." (https://vercel.com/geist/tabs)
25
25
  * "Don’t append a count to the title (`Logs (12)`); use a badge slot instead and drop the badge at zero." (https://vercel.com/geist/tabs)
@@ -32,10 +32,10 @@ const HIDDEN_FADE = {
32
32
  * rule; the other links are muted until hover, with no hue. Sizes and spacing follow `Tabs`. The
33
33
  * row holds at most 7 links; in a `band`, which a phone scrolls sideways instead of holding
34
34
  * fewer, that is 7 at every width, as an Agent's six views do, and a `line` row follows the 7 and 4 cap of `Tabs`. The sub-pages of one object stand as the filled-pill row in a
35
- * `band` under the top bar, as Vercel draws a deployment's tabs: the band is this component's, with `above` for the
35
+ * `band` under the top bar: the band is this component's, with `above` for the
36
36
  * object's identity, so no page draws the border, the fill or the gutters around the row. The band
37
37
  * keeps the page's own column and gutter, and the first link's words start at the page title's edge,
38
- * its fill reaching into the gutter as Vercel's tabs do. The
38
+ * its fill reaching into the gutter. The
39
39
  * `line` row has its own rule and takes no band.
40
40
  * @words "`tabs[].title` is Title Case, 1–2 words, and names the destination noun (`Overview`, `Logs`, `Settings`). Verbs belong on buttons; `View Logs` is wrong on a tab." (https://vercel.com/geist/tabs)
41
41
  * "Don’t append a count to the title (`Logs (12)`); use a badge slot instead and drop the badge at zero." (https://vercel.com/geist/tabs)
@@ -7,15 +7,15 @@ import { type VariantProps } from "class-variance-authority";
7
7
  * @when A link inside a sentence, such as a card's description or its footer's line (`inline`,
8
8
  * blue and underlined at rest); a link that is itself the value, such as a record's name or a fact
9
9
  * (`plain`); or a muted way to the documentation at the end of a footer's line, *Learn more*
10
- * (`quiet`). As on Vercel's dashboard, a text link never stands alone: not in a card's header, not
11
- * on a line of its own between cards.
12
- * @instead A command is a `Button`; a destination drawn as a button is a `ButtonLink`. A card's way to another page is a command in its header's `actions` (`CardActions`), an outline button named for the page, as Vercel's plan card draws "Invoices"; a page's is in `PageActions`. Going to a record from its row is the record's name in `RecordIdentity`.
10
+ * (`quiet`). A text link never stands alone: not in a card's header, not on a line of its own
11
+ * between cards.
12
+ * @instead A command is a `Button`; a destination drawn as a button is a `ButtonLink`. A card's way to another page is a command in its header's `actions` (`CardActions`), an outline button named for the page; a page's is in `PageActions`. Going to a record from its row is the record's name in `RecordIdentity`.
13
13
  * Breadcrumb and back navigation are not text links: they keep their own quieter navigation
14
14
  * treatment.
15
15
  * @behaviour Classes only: the caller renders the real anchor or router link. `inline` thickens its
16
16
  * underline on hover; `plain` and `quiet` underline on hover. The underline sits 4 px under the text
17
- * in every kind. Paint changes ride the shared paint transition. Colour: only `inline` takes the link blue, as Vercel puts blue on links and nowhere
18
- * else in running text; `plain` keeps the colour of the text around it, and `quiet` is muted and
17
+ * in every kind. Paint changes ride the shared paint transition. Colour: only `inline` takes the link blue, the one blue in running
18
+ * text; `plain` keeps the colour of the text around it, and `quiet` is muted and
19
19
  * turns ink on hover, which is how a card footer's or a list note's *Learn more* reads. A link that
20
20
  * leaves the product ends in the arrow icon after its text, which `quiet` sizes.
21
21
  * @words The link's text names where it goes: *Open Billing*, *Read the privacy notice*; never
@@ -7,15 +7,15 @@ import { cva } from "class-variance-authority";
7
7
  * @when A link inside a sentence, such as a card's description or its footer's line (`inline`,
8
8
  * blue and underlined at rest); a link that is itself the value, such as a record's name or a fact
9
9
  * (`plain`); or a muted way to the documentation at the end of a footer's line, *Learn more*
10
- * (`quiet`). As on Vercel's dashboard, a text link never stands alone: not in a card's header, not
11
- * on a line of its own between cards.
12
- * @instead A command is a `Button`; a destination drawn as a button is a `ButtonLink`. A card's way to another page is a command in its header's `actions` (`CardActions`), an outline button named for the page, as Vercel's plan card draws "Invoices"; a page's is in `PageActions`. Going to a record from its row is the record's name in `RecordIdentity`.
10
+ * (`quiet`). A text link never stands alone: not in a card's header, not on a line of its own
11
+ * between cards.
12
+ * @instead A command is a `Button`; a destination drawn as a button is a `ButtonLink`. A card's way to another page is a command in its header's `actions` (`CardActions`), an outline button named for the page; a page's is in `PageActions`. Going to a record from its row is the record's name in `RecordIdentity`.
13
13
  * Breadcrumb and back navigation are not text links: they keep their own quieter navigation
14
14
  * treatment.
15
15
  * @behaviour Classes only: the caller renders the real anchor or router link. `inline` thickens its
16
16
  * underline on hover; `plain` and `quiet` underline on hover. The underline sits 4 px under the text
17
- * in every kind. Paint changes ride the shared paint transition. Colour: only `inline` takes the link blue, as Vercel puts blue on links and nowhere
18
- * else in running text; `plain` keeps the colour of the text around it, and `quiet` is muted and
17
+ * in every kind. Paint changes ride the shared paint transition. Colour: only `inline` takes the link blue, the one blue in running
18
+ * text; `plain` keeps the colour of the text around it, and `quiet` is muted and
19
19
  * turns ink on hover, which is how a card footer's or a list note's *Learn more* reads. A link that
20
20
  * leaves the product ends in the arrow icon after its text, which `quiet` sizes.
21
21
  * @words The link's text names where it goes: *Open Billing*, *Read the privacy notice*; never
package/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ export * from "./components/empty-state.js";
60
60
  export * from "./components/entry-page.js";
61
61
  export * from "./components/entry-scene.js";
62
62
  export * from "./components/field.js";
63
+ export * from "./components/figure-row.js";
63
64
  export * from "./components/file-diff.js";
64
65
  export * from "./components/file-type-icon.js";
65
66
  export * from "./components/footer.js";
@@ -70,6 +71,7 @@ export * from "./components/gauge.js";
70
71
  export * from "./components/glass-control.js";
71
72
  export * from "./components/hive-scene.js";
72
73
  export * from "./components/house-icons.js";
74
+ export * from "./components/icon-tile.js";
73
75
  export * from "./components/identity-mark.js";
74
76
  export * from "./components/input.js";
75
77
  export * from "./components/input-otp.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1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c,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -60,6 +60,7 @@ export * from "./components/empty-state.js";
60
60
  export * from "./components/entry-page.js";
61
61
  export * from "./components/entry-scene.js";
62
62
  export * from "./components/field.js";
63
+ export * from "./components/figure-row.js";
63
64
  export * from "./components/file-diff.js";
64
65
  export * from "./components/file-type-icon.js";
65
66
  export * from "./components/footer.js";
@@ -70,6 +71,7 @@ export * from "./components/gauge.js";
70
71
  export * from "./components/glass-control.js";
71
72
  export * from "./components/hive-scene.js";
72
73
  export * from "./components/house-icons.js";
74
+ export * from "./components/icon-tile.js";
73
75
  export * from "./components/identity-mark.js";
74
76
  export * from "./components/input.js";
75
77
  export * from "./components/input-otp.js";
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
3
  import { type VariantProps } from "class-variance-authority";
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "default" | "outline" | "secondary" | "teal" | "pink" | "purple" | null | undefined;
5
+ variant?: "default" | "outline" | "secondary" | "teal" | "purple" | "pink" | "orange" | null | undefined;
6
6
  size?: "sm" | "lg" | "md" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type BadgeSize = NonNullable<VariantProps<typeof badgeVariants>["size"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"badge-frame.d.ts","sourceRoot":"","sources":["../../src/internal/badge-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;;8EAuBlB,CAAC;AAEF,KAAK,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzE,KAAK,eAAe,GAAG,IAAI,CACzB,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,EAChC,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,CAC3E,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEJ,yGAAyG;AACzG,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,IAAW,EACX,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,eAAe,8FA2BjB;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"badge-frame.d.ts","sourceRoot":"","sources":["../../src/internal/badge-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;;8EAwBlB,CAAC;AAEF,KAAK,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzE,KAAK,eAAe,GAAG,IAAI,CACzB,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,EAChC,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,CAC3E,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEJ,yGAAyG;AACzG,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,IAAW,EACX,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,eAAe,8FA2BjB;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,CAAC"}
@@ -12,6 +12,7 @@ const badgeVariants = cva("group/badge inline-flex w-fit max-w-full shrink-0 ite
12
12
  teal: "bg-category-teal text-category-teal-foreground",
13
13
  purple: "bg-category-purple text-category-purple-foreground",
14
14
  pink: "bg-category-pink text-category-pink-foreground",
15
+ orange: "bg-category-orange text-category-orange-foreground",
15
16
  },
16
17
  size: {
17
18
  sm: "h-5 gap-1 px-2 text-[11px]/5 tracking-[0.2px] has-data-[icon=inline-start]:pl-1.5 [&>[data-icon]>svg]:size-3",
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-list.d.ts","sourceRoot":"","sources":["../../src/internal/catalog-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASpF,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAmG5B,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAgB,EAChB,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACrB,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;CACrC,+BAsBA;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAoB7F;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,OAAO,CAE3E"}
1
+ {"version":3,"file":"catalog-list.d.ts","sourceRoot":"","sources":["../../src/internal/catalog-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASpF,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAwG5B,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAgB,EAChB,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACrB,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;CACrC,+BAsBA;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAoB7F;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,OAAO,CAE3E"}
@@ -28,7 +28,7 @@ function EntryAdd({ add }) {
28
28
  return (_jsx(PageCommandButton, { command: { ...command, icon: _jsx(PlusIcon, { "aria-hidden": "true" }) }, variant: "outline" }));
29
29
  }
30
30
  function CatalogEntry({ add, description, fact, link, mark, menu, name, state, }) {
31
- return (_jsxs("li", { className: ENTRY_FRAME, "data-slot": "catalog-entry", children: [_jsx(IdentityMark, { ...mark, size: 40 }), _jsxs("div", { className: "grid min-w-0 flex-1 gap-0.5", children: [_jsx("span", { className: "truncate text-sm font-medium text-foreground", children: _jsx(EntryName, { link: link, name: name }) }), _jsx("p", { className: cn("text-body-sm text-muted-foreground", !state && "line-clamp-1"), children: state ? _jsx(RowMessageLine, { state: state }) : description })] }), _jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [fact, state ? _jsx(RowMessageActions, { state: state }) : null, add ? _jsx(EntryAdd, { add: add }) : null, menu ? (_jsx(RecordCommands, { commands: menu.commands, moreLabel: menu.label, record: name })) : null] })] }));
31
+ return (_jsxs("li", { className: ENTRY_FRAME, "data-slot": "catalog-entry", children: [_jsx(IdentityMark, { ...mark, size: 40 }), _jsxs("div", { className: "grid min-w-0 flex-1 gap-0.5", children: [_jsx("span", { className: "truncate text-sm font-medium text-foreground", children: _jsx(EntryName, { link: link, name: name }) }), _jsx("p", { className: cn("text-body-sm text-muted-foreground", !state && "line-clamp-1"), children: state ? _jsx(RowMessageLine, { state: state }) : description })] }), _jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [fact, state ? _jsx(RowMessageActions, { state: state }) : null, add ? _jsx(EntryAdd, { add: add }) : null, menu ? (_jsx(RecordCommands, { placement: "row", commands: menu.commands, moreLabel: menu.label, record: name })) : null] })] }));
32
32
  }
33
33
  function EntryList({ columns, entries, }) {
34
34
  return (_jsx("ul", { className: cn("grid gap-3", columns === 2 && "md:grid-cols-2"), children: entries.map((entry) => (_jsx(CatalogEntry, { ...entry }, entry.id))) }));
@@ -13,7 +13,7 @@ export type CollectionRailItem = {
13
13
  title: string;
14
14
  /** One muted line under the title: why it is here, or when. */
15
15
  detail?: ReactNode;
16
- /** A figure at the trailing edge, as Vercel's Usage card lists its amounts. */
16
+ /** A figure at the trailing edge. */
17
17
  value?: ReactNode;
18
18
  /** Only for the exception, as in a row: the item's state word. */
19
19
  status?: {
@@ -34,7 +34,7 @@ export type CollectionRailSection = {
34
34
  } & ({
35
35
  /** One muted line at the card's top, such as the cycle: "October · 4 of 9 statements issued". */
36
36
  summary: ReactNode;
37
- /** One outline button at the summary's end, as Vercel's Usage card carries Billing beside its cycle. */
37
+ /** One outline button at the summary's end. */
38
38
  action?: PageCommand;
39
39
  } | {
40
40
  summary?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"collection-r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AAE,MAAM,CAAC;CACpB,+BAsBA"}
@@ -6,7 +6,7 @@ declare function Empty({ className, scope, tone, ...props }: React.ComponentProp
6
6
  tone?: EmptyTone;
7
7
  }): import("react").JSX.Element;
8
8
  declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
9
- type EmptyMediaVariant = "picture" | "tile" | "error";
9
+ type EmptyMediaVariant = "picture" | "error";
10
10
  declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & {
11
11
  variant: EmptyMediaVariant;
12
12
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../src/internal/empty.tsx"],"names":[],"mappings":"AAIA,iHAAiH;AACjH,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACtD,KAAK,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAOrC,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,KAAgB,EAChB,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,+BAkBxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAQxE;AAED,KAAK,iBAAiB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtD,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,+BAgB9D;AAED,KAAK,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,G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P,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,+BAc9D;AAED,KAAK,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,+BA6B3E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAQvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAW7E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAQzE;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,SAAS,GACf,CAAC"}
@@ -12,8 +12,7 @@ function EmptyHeader({ className, ...props }) {
12
12
  return (_jsx("div", { "data-slot": "empty-header", className: cn("flex max-w-sm min-w-0 flex-col items-center gap-6", className), ...props }));
13
13
  }
14
14
  function EmptyMedia({ className, variant, ...props }) {
15
- return (_jsx("div", { "data-slot": "empty-icon", "data-variant": variant, className: cn("flex shrink-0 justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", variant === "tile" &&
16
- "size-13.5 items-center rounded-md border border-border bg-card text-muted-foreground [&_svg:not([class*='size-'])]:size-8", variant === "error" && "items-center [&_svg:not([class*='size-'])]:size-4", variant === "picture" && "items-end", className), ...props }));
15
+ return (_jsx("div", { "data-slot": "empty-icon", "data-variant": variant, className: cn("flex shrink-0 justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", variant === "error" && "items-center [&_svg:not([class*='size-'])]:size-4", variant === "picture" && "items-end", className), ...props }));
17
16
  }
18
17
  function EmptyPicture({ size, src }) {
19
18
  const [loaded, setLoaded] = useState(false);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Whether the native fieldset a control stands in is disabled, for a control a fieldset does not
3
+ * disable itself because it is not a native one, such as a Switch.
4
+ */
5
+ export declare const FieldsetDisabledContext: import("react").Context<boolean>;
6
+ //# sourceMappingURL=fieldset-disabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-disabled.d.ts","sourceRoot":"","sources":["../../src/internal/fieldset-disabled.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,kCAAuB,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import { createContext } from "react";
3
+ /**
4
+ * Whether the native fieldset a control stands in is disabled, for a control a fieldset does not
5
+ * disable itself because it is not a native one, such as a Switch.
6
+ */
7
+ export const FieldsetDisabledContext = createContext(false);
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Where focus goes when a dialog or sheet closes: back to its opener after every close but a pointer
3
3
  * one, so a keyboard user or a close from the caller's own state (a save, a pick, Finish) keeps their
4
- * place, and nowhere after a pointer close, so the opener does not keep a ring that reads as selected
5
- * (as Vercel's dialogs do). Base UI leaves the close type empty when the caller closes through `open`.
4
+ * place, and nowhere after a pointer close, so the opener does not keep a ring that reads as selected.
5
+ * Base UI leaves the close type empty when the caller closes through `open`.
6
6
  */
7
7
  export declare function returnFocusUnlessPointer(closeType: string): boolean;
8
8
  //# sourceMappingURL=final-focus.d.ts.map
@@ -2,8 +2,8 @@ const POINTER_CLOSES = new Set(["mouse", "touch", "pen"]);
2
2
  /**
3
3
  * Where focus goes when a dialog or sheet closes: back to its opener after every close but a pointer
4
4
  * one, so a keyboard user or a close from the caller's own state (a save, a pick, Finish) keeps their
5
- * place, and nowhere after a pointer close, so the opener does not keep a ring that reads as selected
6
- * (as Vercel's dialogs do). Base UI leaves the close type empty when the caller closes through `open`.
5
+ * place, and nowhere after a pointer close, so the opener does not keep a ring that reads as selected.
6
+ * Base UI leaves the close type empty when the caller closes through `open`.
7
7
  */
8
8
  export function returnFocusUnlessPointer(closeType) {
9
9
  return !POINTER_CLOSES.has(closeType);
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import type { TagTone } from "../components/tag.js";
3
+ /** Neutral, the ringed card ground, or one of the palette's eight category hues. */
4
+ type IconTileTone = TagTone;
5
+ /**
6
+ * The square every icon tile is drawn on, `IconTile`'s and a record's `IdentityMark` alike, so a
7
+ * tile has one ground, ring and corner whichever of them draws it.
8
+ */
9
+ declare function IconTileFrame({ size, tone, label, className, style, children, ...props }: Omit<ComponentProps<"span">, "aria-label" | "aria-hidden" | "role"> & {
10
+ size: number;
11
+ tone: IconTileTone;
12
+ label: string | undefined;
13
+ children: ReactNode;
14
+ }): import("react").JSX.Element;
15
+ export { IconTileFrame, type IconTileTone };
16
+ //# sourceMappingURL=icon-tile-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-tile-frame.d.ts","sourceRoot":"","sources":["../../src/internal/icon-tile-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,oFAAoF;AACpF,KAAK,YAAY,GAAG,OAAO,CAAC;AAc5B;;;GAGG;AACH,iBAAS,aAAa,CAAC,EACrB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC,GAAG;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAiBA;AAED,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils.js";
3
+ const TILE_TONE_CLASS = {
4
+ neutral: "bg-card text-muted-foreground ring-1 ring-border ring-inset",
5
+ blue: "bg-category-blue text-category-blue-foreground",
6
+ teal: "bg-category-teal text-category-teal-foreground",
7
+ purple: "bg-category-purple text-category-purple-foreground",
8
+ pink: "bg-category-pink text-category-pink-foreground",
9
+ green: "bg-category-green text-category-green-foreground",
10
+ orange: "bg-category-orange text-category-orange-foreground",
11
+ yellow: "bg-category-yellow text-category-yellow-foreground",
12
+ red: "bg-category-red text-category-red-foreground",
13
+ };
14
+ /**
15
+ * The square every icon tile is drawn on, `IconTile`'s and a record's `IdentityMark` alike, so a
16
+ * tile has one ground, ring and corner whichever of them draws it.
17
+ */
18
+ function IconTileFrame({ size, tone, label, className, style, children, ...props }) {
19
+ return (_jsx("span", { ...props, ...(label ? { role: "img", "aria-label": label } : { "aria-hidden": true }), className: cn("inline-flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", size >= 40 ? "rounded-md" : "rounded-sm", TILE_TONE_CLASS[tone], className), "data-tone": tone, style: { width: size, height: size, ...style }, children: children }));
20
+ }
21
+ export { IconTileFrame };
@@ -0,0 +1,58 @@
1
+ import * as React from "react";
2
+ /** The options of a column that decide where its cells stand on a record's row and on its card. */
3
+ type RecordGridColumnMeta = {
4
+ numeric?: boolean | undefined;
5
+ wraps?: boolean | undefined;
6
+ centered?: boolean | undefined;
7
+ optional?: boolean | undefined;
8
+ firstLine?: boolean | undefined;
9
+ } | undefined;
10
+ export type RecordGridColumn = {
11
+ id: string;
12
+ meta: RecordGridColumnMeta;
13
+ /** The column that names the record: it takes the room the other columns leave. */
14
+ identity: boolean;
15
+ size: number | undefined;
16
+ };
17
+ export type RecordGridHeading = {
18
+ id: string;
19
+ content: React.ReactNode;
20
+ sort: "ascending" | "descending" | undefined;
21
+ };
22
+ export type RecordGridCell = {
23
+ id: string;
24
+ content: React.ReactNode;
25
+ meta: RecordGridColumnMeta;
26
+ identity: boolean;
27
+ /** The record has no value for it: an `optional` column leaves it off the record's card. */
28
+ empty: boolean;
29
+ };
30
+ /** A press anywhere on a row that opens a record follows its one link, unless it lands on a control. */
31
+ export declare function openRowOnClick(href: string | null | undefined): React.MouseEventHandler<HTMLElement> | undefined;
32
+ /**
33
+ * Records a person opens, in aligned columns on a wide card and one card per record on a narrow
34
+ * one: a grid named for assistive technology as
35
+ * a table, its columns sized once for every row. Its column headings are read by assistive
36
+ * technology only, since every value on a row says what it is, by its words or its mark.
37
+ */
38
+ export declare function RecordGrid({ columns, headings, label, children, }: {
39
+ columns: readonly RecordGridColumn[];
40
+ headings: readonly RecordGridHeading[];
41
+ label: string;
42
+ children: React.ReactNode;
43
+ }): React.JSX.Element;
44
+ /**
45
+ * One record: its row and, while it is edited, its form under it. A row that opens the record
46
+ * takes `accent` on hover, and any row on focus within and while its menu is open.
47
+ */
48
+ export declare function RecordGridRow({ cells, editor, href, className, ...props }: {
49
+ cells: readonly RecordGridCell[];
50
+ editor: React.ReactNode;
51
+ href: string | null | undefined;
52
+ } & Omit<React.ComponentProps<"div">, "children">): React.JSX.Element;
53
+ /** A section's heading inside the records: the name of the group the records under it belong to. */
54
+ export declare function RecordGridGroupHeading({ children }: {
55
+ children: React.ReactNode;
56
+ }): React.JSX.Element;
57
+ export {};
58
+ //# sourceMappingURL=record-grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-grid.d.ts","sourceRoot":"","sources":["../../src/internal/record-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OA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iBAAiB,EAAE,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,qBAwBA;AASD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE;IACD,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACjC,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,qBA2EhD;AAED,oGAAoG;AACpG,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAWjF"}
@@ -0,0 +1,79 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { titleWhenCut } from "./title-when-cut.js";
5
+ import { cn } from "../lib/utils.js";
6
+ /**
7
+ * One column's track: the name takes the rest of the row and never less than 10rem, a fact
8
+ * column stands at its `size` and gives way down to nothing when the row is short of room, and a
9
+ * column on the card's first line (selection, checklist, commands) is as wide as its widest cell.
10
+ */
11
+ function track(column) {
12
+ if (column.identity)
13
+ return "minmax(10rem,1fr)";
14
+ if (column.meta?.firstLine === true) {
15
+ return column.size === undefined ? "auto" : `minmax(${column.size}px,auto)`;
16
+ }
17
+ return column.size === undefined ? "minmax(0,1fr)" : `minmax(0,${column.size}px)`;
18
+ }
19
+ /** A press anywhere on a row that opens a record follows its one link, unless it lands on a control. */
20
+ export function openRowOnClick(href) {
21
+ if (!href)
22
+ return undefined;
23
+ return (event) => {
24
+ const target = event.target;
25
+ if (!(target instanceof Element) ||
26
+ !event.currentTarget.contains(target) ||
27
+ target.closest("a, button, input, select, textarea, label, [role='button'], [role='checkbox']")) {
28
+ return;
29
+ }
30
+ event.currentTarget.querySelector("a[data-row-link]")?.click();
31
+ };
32
+ }
33
+ // From 48rem of card the records stand in aligned columns; on a narrower card each record is a
34
+ // card of its own: its first line holds the name and the controls beside it, and the other values
35
+ // wrap under it.
36
+ const WIDE_GRID = "@3xl/list:col-span-full @3xl/list:grid @3xl/list:grid-cols-subgrid";
37
+ /**
38
+ * Records a person opens, in aligned columns on a wide card and one card per record on a narrow
39
+ * one: a grid named for assistive technology as
40
+ * a table, its columns sized once for every row. Its column headings are read by assistive
41
+ * technology only, since every value on a row says what it is, by its words or its mark.
42
+ */
43
+ export function RecordGrid({ columns, headings, label, children, }) {
44
+ const template = columns.map(track).join(" ");
45
+ return (_jsx("div", { className: "@container/list min-w-0", "data-slot": "record-grid-container", children: _jsxs("div", { "aria-label": label, className: "text-body-sm text-muted-foreground @3xl/list:grid @3xl/list:grid-cols-(--record-columns)", "data-slot": "record-grid", role: "table",
46
+ // SAFETY: React's style type names no custom property; "--record-columns" is the one the grid's class reads.
47
+ // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- a custom property is a valid style the type cannot name
48
+ style: { "--record-columns": template }, children: [_jsx("div", { className: "sr-only", "data-slot": "record-grid-head", role: "row", children: headings.map((heading) => (_jsx("div", { "aria-sort": heading.sort, role: "columnheader", children: heading.content }, heading.id))) }), children] }) }));
49
+ }
50
+ const PLACE = {
51
+ lead: "order-1 shrink-0",
52
+ identity: "order-2 grow basis-0",
53
+ trail: "order-3 shrink-0",
54
+ fact: "order-5 max-w-full",
55
+ };
56
+ /**
57
+ * One record: its row and, while it is edited, its form under it. A row that opens the record
58
+ * takes `accent` on hover, and any row on focus within and while its menu is open.
59
+ */
60
+ export function RecordGridRow({ cells, editor, href, className, ...props }) {
61
+ const identityIndex = cells.findIndex((cell) => cell.identity);
62
+ return (_jsxs("div", { className: cn("border-b border-border transition-colors last:border-b-0 data-[interactive=true]:hover:bg-accent has-focus-visible:bg-accent has-[[aria-expanded=true]]:bg-accent", WIDE_GRID, className), "data-interactive": Boolean(href), role: "rowgroup", ...props, "data-slot": "record-grid-record", children: [_jsx("div", { className: cn("flex flex-wrap items-center gap-x-3 gap-y-2 px-(--card-spacing) py-4", WIDE_GRID, "@3xl/list:min-h-18 @3xl/list:items-center @3xl/list:gap-0 @3xl/list:p-0", href && "cursor-pointer"), "data-href": href ?? undefined, "data-slot": "record-grid-row", onClick: openRowOnClick(href), role: "row", children: cells.map((cell, index) => {
63
+ const place = cell.identity
64
+ ? "identity"
65
+ : cell.meta?.firstLine === true
66
+ ? index < identityIndex
67
+ ? "lead"
68
+ : "trail"
69
+ : "fact";
70
+ const wraps = cell.meta?.wraps === true;
71
+ const cut = place === "fact" && !wraps;
72
+ return (_jsxs(React.Fragment, { children: [_jsx("div", { className: cn("min-w-0 @3xl/list:order-none @3xl/list:px-2 @3xl/list:py-4 @3xl/list:first:pl-(--card-spacing) @3xl/list:last:pr-(--card-spacing) @3xl/list:last:text-right", PLACE[place], cut && "truncate", wraps && "whitespace-normal wrap-break-word @3xl/list:last:text-left", cell.meta?.numeric === true && "tabular-nums @3xl/list:text-right", cell.meta?.centered === true &&
73
+ "@3xl/list:text-center @3xl/list:last:text-center", cell.meta?.optional === true && cell.empty && "hidden @3xl/list:block"), "data-slot": "record-grid-cell", onFocus: cut ? titleWhenCut : undefined, onPointerEnter: cut ? titleWhenCut : undefined, role: "cell", children: cell.content }), cell.identity ? (_jsx("div", { "aria-hidden": "true", className: "order-4 h-0 basis-full @3xl/list:hidden" })) : null] }, cell.id));
74
+ }) }), editor ? (_jsx("div", { className: "@3xl/list:col-span-full", "data-slot": "table-row-editor", role: "row", children: _jsx("div", { className: "whitespace-normal", role: "cell", children: editor }) })) : null] }));
75
+ }
76
+ /** A section's heading inside the records: the name of the group the records under it belong to. */
77
+ export function RecordGridGroupHeading({ children }) {
78
+ return (_jsx("div", { className: "border-b border-border @3xl/list:col-span-full", role: "row", children: _jsx("div", { className: "flex h-9 items-center px-(--card-spacing) font-medium text-foreground", role: "columnheader", children: children }) }));
79
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"settings-save.d.ts","sourceRoot":"","sources":["../../src/internal/settings-save.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;AAOf,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAOtF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAC;IACzB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACpE,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe;IACf,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,mIAAmI;IACnI,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3F;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAuGF,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BA0GA;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,sCAqC1D"}
1
+ {"version":3,"file":"settings-save.d.ts","sourceRoot":"","sources":["../../src/internal/settings-save.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;AAOf,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQtF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAC;IACzB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACpE,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe;IACf,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,mIAAmI;IACnI,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3F;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAuGF,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BA4GA;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,sCAqC1D"}
@@ -10,6 +10,7 @@ import { messageSentences } from "../components/product-message.js";
10
10
  import { CardContent } from "../components/card.js";
11
11
  import { WaitingLine } from "../components/waiting-line.js";
12
12
  import { useHydrated } from "../hooks/use-hydrated.js";
13
+ import { FieldsetDisabledContext } from "./fieldset-disabled.js";
13
14
  import { FooterStrip } from "./footer-strip.js";
14
15
  import { FormSubmitButton } from "./form-submit.js";
15
16
  const SettingsSaveContext = createContext(null);
@@ -141,7 +142,7 @@ export function SettingsSaveForm({ save, titleId, children, }) {
141
142
  setFailure(null);
142
143
  keepValuesOnReset.current = false;
143
144
  submittedValues.current = editableValues(event.currentTarget);
144
- }, children: [_jsx("fieldset", { className: "contents", disabled: !hydrated, children: children }), sectionFailure ? (_jsx(CardContent, { children: _jsx(MessageNotice, { message: sectionFailure.message, placement: "action" }) })) : null, _jsx(SaveFooter, { announce: announce, changed: changed, save: save })] }) }));
145
+ }, children: [_jsx(FieldsetDisabledContext, { value: !hydrated, children: _jsx("fieldset", { className: "contents", disabled: !hydrated, children: children }) }), sectionFailure ? (_jsx(CardContent, { children: _jsx(MessageNotice, { message: sectionFailure.message, placement: "action" }) })) : null, _jsx(SaveFooter, { announce: announce, changed: changed, save: save })] }) }));
145
146
  }
146
147
  export function SettingsFieldFailure({ id }) {
147
148
  const context = use(SettingsSaveContext);
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/actions.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,OAAO;;;;;;;;;;CAqQO,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/actions.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,OAAO;;;;;;;;;;CAuQO,CAAC"}