@actioneer/ads 0.5.4 → 0.5.6

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 (93) hide show
  1. package/components/accordion.js +15 -15
  2. package/components/agent-icon.d.ts +64 -0
  3. package/components/agent-icon.js +251 -0
  4. package/components/ai-elements/agent-trace.d.ts +8 -1
  5. package/components/ai-elements/agent-trace.js +164 -129
  6. package/components/ai-elements/chain-of-thought-icon.d.ts +42 -0
  7. package/components/ai-elements/chain-of-thought-icon.js +283 -0
  8. package/components/ai-elements/chain-of-thought.js +7 -7
  9. package/components/ai-elements/chart.js +38 -35
  10. package/components/ai-elements/index.d.ts +1 -0
  11. package/components/ai-elements/inline-citation.js +40 -40
  12. package/components/ai-elements/message.js +5 -5
  13. package/components/ai-elements/queue.js +1 -1
  14. package/components/ai-elements/research-activity.d.ts +2 -0
  15. package/components/ai-elements/research-activity.js +79 -81
  16. package/components/ai-elements/task-progress.js +2 -2
  17. package/components/ai-elements/tool.d.ts +4 -2
  18. package/components/ai-elements/tool.js +74 -54
  19. package/components/ai-elements/transcript.js +1 -1
  20. package/components/alert.js +1 -1
  21. package/components/answer.d.ts +2644 -311
  22. package/components/answer.js +1776 -371
  23. package/components/assistant-ui/answer-tool-ui.js +27 -28
  24. package/components/assistant-ui/chain-of-thought.d.ts +7 -2
  25. package/components/assistant-ui/composer-harness.js +20 -16
  26. package/components/assistant-ui/follow-up-suggestions.d.ts +5 -1
  27. package/components/assistant-ui/follow-up-suggestions.js +47 -19
  28. package/components/assistant-ui/reasoning.js +35 -31
  29. package/components/assistant-ui/tool-fallback.js +125 -122
  30. package/components/assistant-ui/tool-group.d.ts +3 -1
  31. package/components/assistant-ui/tool-group.js +48 -43
  32. package/components/audio-waveform.js +14 -14
  33. package/components/autocomplete.js +52 -48
  34. package/components/avatar.js +58 -44
  35. package/components/badge.js +3 -3
  36. package/components/brand-texture.js +1 -1
  37. package/components/breadcrumbs.d.ts +27 -1
  38. package/components/breadcrumbs.js +94 -42
  39. package/components/button.js +15 -15
  40. package/components/carousel.js +10 -10
  41. package/components/chart.js +77 -77
  42. package/components/chip.js +3 -3
  43. package/components/code-block.d.ts +39 -17
  44. package/components/code-block.js +153 -104
  45. package/components/command-palette.js +27 -25
  46. package/components/connector-card.js +2 -2
  47. package/components/dropdown.js +65 -61
  48. package/components/empty-state.js +15 -15
  49. package/components/field.js +16 -16
  50. package/components/index.d.ts +4 -0
  51. package/components/index.js +525 -478
  52. package/components/infinite-canvas.js +60 -60
  53. package/components/kbd.js +6 -6
  54. package/components/link.js +6 -6
  55. package/components/modal.js +22 -20
  56. package/components/page-header.js +1 -1
  57. package/components/pagination.js +22 -22
  58. package/components/pixel-blast-svg.js +1 -1
  59. package/components/pixel-icon.d.ts +31 -0
  60. package/components/pixel-icon.js +733 -0
  61. package/components/popover.js +46 -42
  62. package/components/ripple.d.ts +29 -0
  63. package/components/ripple.js +17 -0
  64. package/components/segmented.js +24 -23
  65. package/components/select.js +71 -67
  66. package/components/selection-action-bar.js +22 -22
  67. package/components/sidebar.d.ts +11 -3
  68. package/components/sidebar.js +161 -148
  69. package/components/stepper.d.ts +2 -0
  70. package/components/stepper.js +80 -43
  71. package/components/table.d.ts +7 -0
  72. package/components/table.js +223 -155
  73. package/components/tabs.d.ts +3 -1
  74. package/components/tabs.js +165 -144
  75. package/components/textarea.js +10 -8
  76. package/components/toast.js +48 -46
  77. package/components/tooltip.js +61 -59
  78. package/components/tree.js +44 -41
  79. package/components/typography.d.ts +1 -1
  80. package/components/typography.js +25 -25
  81. package/components/viz-charts.js +133 -133
  82. package/fonts/aribau-grotesk-500.otf +0 -0
  83. package/fonts/aribau-grotesk-600.woff2 +0 -0
  84. package/fonts.css +6 -4
  85. package/lib/icons.d.ts +411 -402
  86. package/lib/icons.js +109 -107
  87. package/llms.txt +98 -8
  88. package/manifest.json +1012 -96
  89. package/package.json +5 -5
  90. package/styles.css +206 -81
  91. package/theme.css +200 -77
  92. package/fonts/aribau-grotesk-400.otf +0 -0
  93. package/fonts/aribau-grotesk-700.otf +0 -0
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
3
3
  import * as v from "react";
4
- import { cva as k } from "class-variance-authority";
4
+ import { cva as y } from "class-variance-authority";
5
5
  import { cn as s } from "../lib/cn.js";
6
- import { Check as u, Close as f } from "../lib/icons.js";
7
- const p = k(
6
+ import { Check as p, Close as g } from "../lib/icons.js";
7
+ const b = y(
8
8
  s(
9
- "flex shrink-0 items-center justify-center rounded-full font-medium tabular-nums",
9
+ "flex shrink-0 items-center justify-center rounded-full font-normal tabular-nums",
10
10
  "transition-colors duration-(--duration-fast) ease-out motion-reduce:transition-none"
11
11
  ),
12
12
  {
@@ -18,59 +18,96 @@ const p = k(
18
18
  error: "bg-danger text-danger-foreground"
19
19
  },
20
20
  size: {
21
- sm: "size-5 text-[11px] [&>svg]:size-3",
21
+ sm: "size-5 text-xs [&>svg]:size-3",
22
22
  md: "size-6 text-xs [&>svg]:size-3.5"
23
23
  }
24
24
  },
25
25
  defaultVariants: { status: "upcoming", size: "md" }
26
26
  }
27
- ), w = v.forwardRef(
27
+ ), j = v.forwardRef(
28
28
  ({
29
- className: d,
30
- steps: l,
31
- activeIndex: a,
32
- size: n = "md",
29
+ className: x,
30
+ steps: u,
31
+ activeIndex: n,
32
+ size: i = "md",
33
33
  onSelect: o,
34
- ...c
35
- }, g) => /* @__PURE__ */ e(
34
+ labelPosition: h = "below",
35
+ ...m
36
+ }, N) => /* @__PURE__ */ e(
36
37
  "ol",
37
38
  {
38
- ref: g,
39
+ ref: N,
39
40
  "data-slot": "stepper",
40
- "aria-label": c["aria-label"] ?? "Progress",
41
- className: s("flex w-full flex-row items-start", d),
42
- ...c,
43
- children: l.map((i, t) => {
44
- const r = i.isError ? "error" : t < a ? "complete" : t === a ? "current" : "upcoming", b = t === l.length - 1, x = !!o && t < a, h = t < a && !i.isError, N = /* @__PURE__ */ e("span", { "aria-hidden": !0, className: p({ status: r, size: n }), children: r === "complete" ? /* @__PURE__ */ e(u, {}) : r === "error" ? /* @__PURE__ */ e(f, {}) : t + 1 });
45
- return /* @__PURE__ */ m(
41
+ "aria-label": m["aria-label"] ?? "Progress",
42
+ className: s("flex w-full flex-row items-start", x),
43
+ ...m,
44
+ children: u.map((a, t) => {
45
+ const r = a.isError ? "error" : t < n ? "complete" : t === n ? "current" : "upcoming", l = t === u.length - 1, w = !!o && t < n, d = t < n && !a.isError, k = /* @__PURE__ */ e("span", { "aria-hidden": !0, className: b({ status: r, size: i }), children: r === "complete" ? /* @__PURE__ */ e(p, {}) : r === "error" ? /* @__PURE__ */ e(g, {}) : t + 1 }), f = w ? /* @__PURE__ */ e(
46
+ "button",
47
+ {
48
+ type: "button",
49
+ onClick: () => o == null ? void 0 : o(t),
50
+ "aria-label": `Go to step ${t + 1}`,
51
+ className: s(
52
+ b({ status: r, size: i }),
53
+ "cursor-pointer outline-none focus-visible:ring-3 focus-visible:ring-ring",
54
+ "active:scale-(--scale-press)"
55
+ ),
56
+ children: r === "complete" ? /* @__PURE__ */ e(p, {}) : r === "error" ? /* @__PURE__ */ e(g, {}) : t + 1
57
+ }
58
+ ) : k;
59
+ return h === "inline" ? /* @__PURE__ */ c(
60
+ "li",
61
+ {
62
+ "data-status": r,
63
+ "aria-current": r === "current" ? "step" : void 0,
64
+ className: s(
65
+ "flex min-w-0 items-center gap-2",
66
+ l ? "shrink-0" : "flex-1"
67
+ ),
68
+ children: [
69
+ f,
70
+ /* @__PURE__ */ e(
71
+ "span",
72
+ {
73
+ className: s(
74
+ "truncate whitespace-nowrap",
75
+ i === "sm" ? "text-xs" : "text-base",
76
+ r === "upcoming" ? "text-tertiary" : "text-foreground",
77
+ r === "error" && "text-danger"
78
+ ),
79
+ children: a.label
80
+ }
81
+ ),
82
+ !l && /* @__PURE__ */ e(
83
+ "span",
84
+ {
85
+ "aria-hidden": !0,
86
+ className: s(
87
+ "h-px min-w-4 flex-1 shrink-0 bg-border",
88
+ d && "bg-success"
89
+ )
90
+ }
91
+ )
92
+ ]
93
+ },
94
+ a.id
95
+ ) : /* @__PURE__ */ c(
46
96
  "li",
47
97
  {
48
98
  "data-status": r,
49
99
  "aria-current": r === "current" ? "step" : void 0,
50
100
  className: "flex min-w-0 flex-1 flex-col gap-2",
51
101
  children: [
52
- /* @__PURE__ */ m("div", { className: "flex w-full flex-row items-center gap-2", children: [
53
- x ? /* @__PURE__ */ e(
54
- "button",
55
- {
56
- type: "button",
57
- onClick: () => o == null ? void 0 : o(t),
58
- "aria-label": `Go to step ${t + 1}`,
59
- className: s(
60
- p({ status: r, size: n }),
61
- "cursor-pointer outline-none focus-visible:ring-3 focus-visible:ring-ring",
62
- "active:scale-(--scale-press)"
63
- ),
64
- children: r === "complete" ? /* @__PURE__ */ e(u, {}) : r === "error" ? /* @__PURE__ */ e(f, {}) : t + 1
65
- }
66
- ) : N,
67
- !b && /* @__PURE__ */ e(
102
+ /* @__PURE__ */ c("div", { className: "flex w-full flex-row items-center gap-2", children: [
103
+ f,
104
+ !l && /* @__PURE__ */ e(
68
105
  "span",
69
106
  {
70
107
  "aria-hidden": !0,
71
108
  className: s(
72
109
  "h-px flex-1 shrink-0 bg-border",
73
- h && "bg-success"
110
+ d && "bg-success"
74
111
  )
75
112
  }
76
113
  )
@@ -80,23 +117,23 @@ const p = k(
80
117
  {
81
118
  className: s(
82
119
  "truncate",
83
- n === "sm" ? "text-xs" : "text-base",
120
+ i === "sm" ? "text-xs" : "text-base",
84
121
  r === "upcoming" ? "text-tertiary" : "text-foreground",
85
122
  r === "error" && "text-danger"
86
123
  ),
87
- children: i.label
124
+ children: a.label
88
125
  }
89
126
  ) })
90
127
  ]
91
128
  },
92
- i.id
129
+ a.id
93
130
  );
94
131
  })
95
132
  }
96
133
  )
97
134
  );
98
- w.displayName = "Stepper";
135
+ j.displayName = "Stepper";
99
136
  export {
100
- w as Stepper,
101
- p as stepperMarkerVariants
137
+ j as Stepper,
138
+ b as stepperMarkerVariants
102
139
  };
@@ -35,6 +35,13 @@ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElem
35
35
  actionColumnWidth?: string;
36
36
  sortDescriptor?: SortDescriptor;
37
37
  onSortChange?: (descriptor: SortDescriptor) => void;
38
+ /**
39
+ * A purely display table: no row hover/focus wash, no selection. Set this
40
+ * when rows have nothing to click — a plain data grid — so hovering never
41
+ * implies an action that doesn't exist (principle 2). Leave unset for any
42
+ * table with row selection, sorting, or a click-through action.
43
+ */
44
+ isStatic?: boolean;
38
45
  }
39
46
  /**
40
47
  * Styled wrapper around a semantic `<table>` with horizontal overflow.