@actioneer/ads 0.6.0 → 0.8.0

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 (123) hide show
  1. package/DESIGN.md +597 -0
  2. package/components/ai-elements/agent-trace.d.ts +2 -2
  3. package/components/ai-elements/agent-trace.js +164 -105
  4. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  5. package/components/ai-elements/chain-of-thought.js +1 -1
  6. package/components/ai-elements/index.d.ts +0 -5
  7. package/components/ai-elements/inline-citation.js +1 -1
  8. package/components/alert.d.ts +6 -6
  9. package/components/alert.js +89 -53
  10. package/components/answer-sources.d.ts +2 -6
  11. package/components/answer-sources.js +58 -60
  12. package/components/answer.d.ts +5 -0
  13. package/components/answer.js +311 -271
  14. package/components/assistant-ui/action-bar.js +1 -1
  15. package/components/assistant-ui/attachment.js +11 -11
  16. package/components/assistant-ui/badge.js +18 -18
  17. package/components/assistant-ui/composer-harness.js +15 -20
  18. package/components/assistant-ui/composer-trigger-popover.js +9 -9
  19. package/components/assistant-ui/composer.d.ts +3 -1
  20. package/components/assistant-ui/composer.js +148 -144
  21. package/components/assistant-ui/image.js +61 -61
  22. package/components/assistant-ui/index.d.ts +0 -3
  23. package/components/assistant-ui/message-timing.js +1 -1
  24. package/components/assistant-ui/selection-toolbar.js +7 -7
  25. package/components/assistant-ui/thread-context.d.ts +3 -1
  26. package/components/assistant-ui/thread.js +50 -42
  27. package/components/avatar.js +42 -42
  28. package/components/badge.d.ts +5 -6
  29. package/components/badge.js +13 -76
  30. package/components/body-page-header.d.ts +15 -0
  31. package/components/body-page-header.js +24 -0
  32. package/components/brand-loader.d.ts +0 -3
  33. package/components/brand-loader.js +10 -32
  34. package/components/breadcrumbs.d.ts +0 -7
  35. package/components/breadcrumbs.js +54 -71
  36. package/components/button.d.ts +1 -1
  37. package/components/button.js +55 -49
  38. package/components/chart.js +298 -296
  39. package/components/chip.d.ts +13 -1
  40. package/components/chip.js +93 -80
  41. package/components/collection-header.d.ts +17 -0
  42. package/components/collection-header.js +31 -0
  43. package/components/connector-card.d.ts +6 -6
  44. package/components/connector-card.js +31 -32
  45. package/components/date-range-picker.d.ts +2 -1
  46. package/components/date-range-picker.js +158 -122
  47. package/components/divider.js +25 -25
  48. package/components/drawer.d.ts +6 -2
  49. package/components/drawer.js +61 -58
  50. package/components/dropdown.d.ts +1 -2
  51. package/components/dropdown.js +88 -89
  52. package/components/field.js +41 -36
  53. package/components/file-dropzone.js +1 -1
  54. package/components/index.d.ts +4 -4
  55. package/components/index.js +501 -549
  56. package/components/infinite-canvas.js +24 -24
  57. package/components/input-field.d.ts +18 -3
  58. package/components/input-field.js +88 -72
  59. package/components/input.js +32 -29
  60. package/components/modal.d.ts +31 -3
  61. package/components/modal.js +244 -170
  62. package/components/number-field.js +45 -42
  63. package/components/page-body.d.ts +12 -0
  64. package/components/page-body.js +18 -0
  65. package/components/pagination.js +36 -36
  66. package/components/pixel-blast-svg.js +71 -73
  67. package/components/select.d.ts +21 -0
  68. package/components/select.js +189 -148
  69. package/components/setting-row.d.ts +6 -5
  70. package/components/setting-row.js +33 -32
  71. package/components/sidebar.d.ts +2 -0
  72. package/components/sidebar.js +151 -141
  73. package/components/skeleton.js +8 -7
  74. package/components/slider.js +1 -1
  75. package/components/surface-loader.d.ts +11 -0
  76. package/components/surface-loader.js +35 -0
  77. package/components/table.d.ts +16 -10
  78. package/components/table.js +427 -412
  79. package/components/tabs.d.ts +2 -0
  80. package/components/tabs.js +160 -295
  81. package/components/textarea.js +9 -9
  82. package/components/toast.d.ts +1 -1
  83. package/components/toast.js +181 -118
  84. package/components/tree.d.ts +5 -1
  85. package/components/tree.js +54 -49
  86. package/components/typography.d.ts +4 -4
  87. package/components/typography.js +13 -13
  88. package/components/ui/button.d.ts +1 -1
  89. package/components/ui/button.js +4 -4
  90. package/components/ui/dialog.js +25 -25
  91. package/demo/components/add-to-artifact.js +6 -10
  92. package/lib/cn.js +11 -4
  93. package/lib/icons.d.ts +4 -0
  94. package/lib/icons.js +103 -102
  95. package/lib/interactive.d.ts +1 -1
  96. package/llms.txt +132 -188
  97. package/manifest.json +1719 -2831
  98. package/package.json +2 -2
  99. package/styles.css +362 -233
  100. package/theme.css +312 -177
  101. package/components/agent-icon.d.ts +0 -76
  102. package/components/agent-icon.js +0 -265
  103. package/components/ai-elements/queue.d.ts +0 -60
  104. package/components/ai-elements/queue.js +0 -193
  105. package/components/ai-elements/speech-input.d.ts +0 -16
  106. package/components/ai-elements/speech-input.js +0 -151
  107. package/components/ai-elements/task-progress.d.ts +0 -41
  108. package/components/ai-elements/task-progress.js +0 -224
  109. package/components/ai-elements/task.d.ts +0 -39
  110. package/components/ai-elements/task.js +0 -105
  111. package/components/ai-elements/voice.d.ts +0 -90
  112. package/components/ai-elements/voice.js +0 -496
  113. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  114. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  115. package/components/assistant-ui/suggestions.d.ts +0 -7
  116. package/components/assistant-ui/suggestions.js +0 -19
  117. package/components/assistant-ui/voice.d.ts +0 -18
  118. package/components/link.d.ts +0 -14
  119. package/components/link.js +0 -72
  120. package/components/navbar.d.ts +0 -15
  121. package/components/navbar.js +0 -68
  122. package/components/pixel-icon.d.ts +0 -37
  123. package/components/pixel-icon.js +0 -859
@@ -12,11 +12,16 @@ export type SelectionMode = "none" | "single" | "multiple";
12
12
  /** `"all"` selects every current key without enumerating them. */
13
13
  export type Selection = Set<string> | "all";
14
14
  export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElement>, "onSelect"> {
15
- /** Class applied to the outer shell (the gray rounded surface). */
15
+ /** Class applied to the outer rounded table surface. */
16
16
  wrapperClassName?: string;
17
17
  /**
18
- * Optional footer rendered inside the shell, on the gray, below the
19
- * table card — the HeroUI table-footer slot. Pagination lives here.
18
+ * Optional controls rendered above the table, aligned to its top-right.
19
+ * Use this slot for consumer-owned filtering, search, and table actions.
20
+ */
21
+ toolbar?: React.ReactNode;
22
+ /**
23
+ * Optional footer rendered inside the table surface below the rows.
24
+ * Pagination lives here.
20
25
  */
21
26
  footer?: React.ReactNode;
22
27
  selectionMode?: SelectionMode;
@@ -26,8 +31,8 @@ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElem
26
31
  rowKeys?: string[];
27
32
  /**
28
33
  * Turns the final `sticky="right"` column into a persistent action surface.
29
- * Its cells stay on `bg-elevated` while one Table-level `shadow-elevation`
30
- * spans the body below the muted header instead of repeating on every cell.
34
+ * Its cells stay on `bg-elevated` while one flat Table-level
35
+ * `shadow-elevation` compatibility hook spans the body below the WG1 header.
31
36
  * The matching header cell stays transparent and scrolls normally, so it
32
37
  * never becomes a blank sticky surface over the header labels.
33
38
  */
@@ -39,10 +44,9 @@ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElem
39
44
  /** Enable sortable data-column headers. Defaults to true. */
40
45
  allowsSorting?: boolean;
41
46
  /**
42
- * A purely display table: no row hover/focus wash, no selection. Set this
43
- * when rows have nothing to click — a plain data grid — so hovering never
44
- * implies an action that doesn't exist (principle 2). Leave unset for any
45
- * table with row selection, sorting, or a click-through action.
47
+ * Explicitly suppress row hover/focus washes. Display-only rows already omit
48
+ * hover automatically; use this to keep a table static even when a row has
49
+ * an event handler or disclosure state.
46
50
  */
47
51
  isStatic?: boolean;
48
52
  /**
@@ -56,7 +60,7 @@ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElem
56
60
  resizableColumns?: boolean;
57
61
  /**
58
62
  * Caps the table's height: the viewport scrolls vertically inside the
59
- * shell and the header row pins to its top (painted on the shell gray so
63
+ * shell and the header row pins to its top (painted on the table surface so
60
64
  * body rows pass underneath). For long results read in place — an
61
65
  * expanded board table, a log — instead of pagination.
62
66
  */
@@ -77,6 +81,8 @@ export declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttrib
77
81
  export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
78
82
  /** Stable key for selection (required on body rows to be selectable). */
79
83
  rowKey?: string;
84
+ /** Explicitly marks a row as opening or expanding something. */
85
+ isInteractive?: boolean;
80
86
  }
81
87
  export declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
82
88
  export interface TableColumnProps extends React.ThHTMLAttributes<HTMLTableCellElement> {