@actioneer/ads 0.5.5 → 0.5.7

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 (41) hide show
  1. package/components/agent-icon.js +3 -2
  2. package/components/ai-elements/chain-of-thought-icon.d.ts +10 -12
  3. package/components/ai-elements/chain-of-thought-icon.js +341 -201
  4. package/components/ai-elements/chain-of-thought.d.ts +1 -1
  5. package/components/answer-sources.d.ts +42 -0
  6. package/components/answer-sources.js +111 -0
  7. package/components/answer.d.ts +1 -0
  8. package/components/answer.js +665 -671
  9. package/components/assistant-ui/answer-tool-ui.js +11 -7
  10. package/components/assistant-ui/attachment.js +39 -39
  11. package/components/assistant-ui/composer-harness.js +5 -4
  12. package/components/assistant-ui/follow-up-suggestions.d.ts +5 -1
  13. package/components/assistant-ui/follow-up-suggestions.js +47 -19
  14. package/components/assistant-ui/thread-context.d.ts +2 -0
  15. package/components/assistant-ui/thread.js +41 -40
  16. package/components/avatar.js +14 -14
  17. package/components/dropdown.d.ts +1 -1
  18. package/components/dropdown.js +1 -1
  19. package/components/empty-state.d.ts +4 -4
  20. package/components/field.js +16 -16
  21. package/components/index.d.ts +1 -0
  22. package/components/index.js +414 -408
  23. package/components/infinite-canvas.js +1 -1
  24. package/components/pixel-icon.d.ts +3 -1
  25. package/components/pixel-icon.js +294 -214
  26. package/components/segmented.d.ts +4 -1
  27. package/components/segmented.js +9 -8
  28. package/components/sidebar.d.ts +2 -2
  29. package/components/switch.js +22 -4
  30. package/components/table.d.ts +15 -7
  31. package/components/table.js +313 -199
  32. package/components/textarea.js +1 -2
  33. package/components/tooltip.js +1 -1
  34. package/components/ui/tooltip.js +5 -5
  35. package/lib/icons.d.ts +8 -0
  36. package/lib/icons.js +103 -101
  37. package/llms.txt +18 -7
  38. package/manifest.json +125 -13
  39. package/package.json +1 -1
  40. package/styles.css +42 -47
  41. package/theme.css +24 -45
@@ -9,7 +9,7 @@ import * as React from "react";
9
9
  *
10
10
  * Pass one or the other; `illustration` wins when both are present. The
11
11
  * built-in illustrations (`EmptyDocuments`, `EmptySearch`, `EmptyConnections`,
12
- * `EmptyInsights`) share one soft language — warm greige cards, a single Sage
12
+ * `EmptyInsights`) share one soft language — warm greige cards, a single ink
13
13
  * accent — and re-theme with the system since every fill flows from a token.
14
14
  */
15
15
  export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
@@ -30,17 +30,17 @@ export declare function EmptyDocuments({ className }: IllustrationProps): React.
30
30
  export declare namespace EmptyDocuments {
31
31
  var displayName: string;
32
32
  }
33
- /** No results — a list card with a Sage magnifier searching it. */
33
+ /** No results — a list card with an ink magnifier searching it. */
34
34
  export declare function EmptySearch({ className }: IllustrationProps): React.JSX.Element;
35
35
  export declare namespace EmptySearch {
36
36
  var displayName: string;
37
37
  }
38
- /** No connections / data sources — a small node graph, one Sage add-node. */
38
+ /** No connections / data sources — a small node graph, one ink add-node. */
39
39
  export declare function EmptyConnections({ className }: IllustrationProps): React.JSX.Element;
40
40
  export declare namespace EmptyConnections {
41
41
  var displayName: string;
42
42
  }
43
- /** No insights / data yet — rising bars, the tallest in Sage. */
43
+ /** No insights / data yet — rising bars, the tallest in ink. */
44
44
  export declare function EmptyInsights({ className }: IllustrationProps): React.JSX.Element;
45
45
  export declare namespace EmptyInsights {
46
46
  var displayName: string;
@@ -7,7 +7,7 @@ const h = a(
7
7
  // Border WIDTH only — no border-color utility. ads-interactive owns the
8
8
  // color (rest = --glow-border-rest below); a `border-input` utility here
9
9
  // would out-cascade the hover/focus brand-black rules.
10
- "flex w-full rounded-full border bg-elevated text-foreground",
10
+ "flex w-full rounded-md border bg-elevated text-foreground",
11
11
  "px-3 text-xs",
12
12
  "placeholder:text-muted-foreground",
13
13
  "outline-none",
@@ -19,56 +19,56 @@ const h = a(
19
19
  g({ on: "all", color: "brand", intensity: "medium", animate: !0 }),
20
20
  "[--glow-border-rest:var(--input)]",
21
21
  "[--glow-inset:var(--inner-glow-field)]"
22
- ), i = d.forwardRef(({ className: r, children: e, required: l, ...t }, n) => /* @__PURE__ */ s(
22
+ ), i = d.forwardRef(({ className: l, children: e, required: r, ...t }, n) => /* @__PURE__ */ s(
23
23
  "label",
24
24
  {
25
25
  ref: n,
26
26
  className: a(
27
27
  "flex items-center gap-1 text-xs font-normal text-foreground select-none",
28
28
  "peer-disabled:cursor-not-allowed peer-disabled:opacity-60",
29
- r
29
+ l
30
30
  ),
31
31
  ...t,
32
32
  children: [
33
33
  e,
34
- l && /* @__PURE__ */ o("span", { className: "text-danger", children: "*" })
34
+ r && /* @__PURE__ */ o("span", { className: "text-danger", children: "*" })
35
35
  ]
36
36
  }
37
37
  ));
38
38
  i.displayName = "Label";
39
- const c = d.forwardRef(({ className: r, ...e }, l) => /* @__PURE__ */ o(
39
+ const c = d.forwardRef(({ className: l, ...e }, r) => /* @__PURE__ */ o(
40
40
  "p",
41
41
  {
42
- ref: l,
43
- className: a("text-xs text-muted-foreground", r),
42
+ ref: r,
43
+ className: a("text-xs text-muted-foreground", l),
44
44
  ...e
45
45
  }
46
46
  ));
47
47
  c.displayName = "FieldDescription";
48
- const f = d.forwardRef(
49
- ({ className: r, children: e, ...l }, t) => e ? /* @__PURE__ */ o(
48
+ const m = d.forwardRef(
49
+ ({ className: l, children: e, ...r }, t) => e ? /* @__PURE__ */ o(
50
50
  "p",
51
51
  {
52
52
  ref: t,
53
- className: a("text-xs font-normal text-danger", r),
54
- ...l,
53
+ className: a("text-xs font-normal text-danger", l),
54
+ ...r,
55
55
  children: e
56
56
  }
57
57
  ) : null
58
58
  );
59
- f.displayName = "FieldError";
59
+ m.displayName = "FieldError";
60
60
  const b = d.forwardRef(
61
- ({ className: r, label: e, description: l, error: t, required: n, htmlFor: m, children: p, ...x }, u) => /* @__PURE__ */ s("div", { ref: u, className: a("flex flex-col gap-1.5", r), ...x, children: [
62
- e && /* @__PURE__ */ o(i, { htmlFor: m, required: n, children: e }),
61
+ ({ className: l, label: e, description: r, error: t, required: n, htmlFor: f, children: p, ...x }, u) => /* @__PURE__ */ s("div", { ref: u, className: a("flex flex-col gap-1.5", l), ...x, children: [
62
+ e && /* @__PURE__ */ o(i, { htmlFor: f, required: n, children: e }),
63
63
  p,
64
- t ? /* @__PURE__ */ o(f, { children: t }) : l ? /* @__PURE__ */ o(c, { children: l }) : null
64
+ t ? /* @__PURE__ */ o(m, { children: t }) : r ? /* @__PURE__ */ o(c, { children: r }) : null
65
65
  ] })
66
66
  );
67
67
  b.displayName = "Field";
68
68
  export {
69
69
  b as Field,
70
70
  c as FieldDescription,
71
- f as FieldError,
71
+ m as FieldError,
72
72
  i as Label,
73
73
  h as inputBaseClass
74
74
  };
@@ -36,6 +36,7 @@ export * from './tooltip';
36
36
  export * from './dropdown';
37
37
  export * from './toast';
38
38
  export * from './answer';
39
+ export * from './answer-sources';
39
40
  export * from './card';
40
41
  export * from './carousel';
41
42
  export * from './chart';