@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.
- package/components/agent-icon.js +3 -2
- package/components/ai-elements/chain-of-thought-icon.d.ts +10 -12
- package/components/ai-elements/chain-of-thought-icon.js +341 -201
- package/components/ai-elements/chain-of-thought.d.ts +1 -1
- package/components/answer-sources.d.ts +42 -0
- package/components/answer-sources.js +111 -0
- package/components/answer.d.ts +1 -0
- package/components/answer.js +665 -671
- package/components/assistant-ui/answer-tool-ui.js +11 -7
- package/components/assistant-ui/attachment.js +39 -39
- package/components/assistant-ui/composer-harness.js +5 -4
- package/components/assistant-ui/follow-up-suggestions.d.ts +5 -1
- package/components/assistant-ui/follow-up-suggestions.js +47 -19
- package/components/assistant-ui/thread-context.d.ts +2 -0
- package/components/assistant-ui/thread.js +41 -40
- package/components/avatar.js +14 -14
- package/components/dropdown.d.ts +1 -1
- package/components/dropdown.js +1 -1
- package/components/empty-state.d.ts +4 -4
- package/components/field.js +16 -16
- package/components/index.d.ts +1 -0
- package/components/index.js +414 -408
- package/components/infinite-canvas.js +1 -1
- package/components/pixel-icon.d.ts +3 -1
- package/components/pixel-icon.js +294 -214
- package/components/segmented.d.ts +4 -1
- package/components/segmented.js +9 -8
- package/components/sidebar.d.ts +2 -2
- package/components/switch.js +22 -4
- package/components/table.d.ts +15 -7
- package/components/table.js +313 -199
- package/components/textarea.js +1 -2
- package/components/tooltip.js +1 -1
- package/components/ui/tooltip.js +5 -5
- package/lib/icons.d.ts +8 -0
- package/lib/icons.js +103 -101
- package/llms.txt +18 -7
- package/manifest.json +125 -13
- package/package.json +1 -1
- package/styles.css +42 -47
- 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
|
|
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
|
|
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
|
|
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
|
|
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;
|
package/components/field.js
CHANGED
|
@@ -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-
|
|
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:
|
|
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
|
-
|
|
29
|
+
l
|
|
30
30
|
),
|
|
31
31
|
...t,
|
|
32
32
|
children: [
|
|
33
33
|
e,
|
|
34
|
-
|
|
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:
|
|
39
|
+
const c = d.forwardRef(({ className: l, ...e }, r) => /* @__PURE__ */ o(
|
|
40
40
|
"p",
|
|
41
41
|
{
|
|
42
|
-
ref:
|
|
43
|
-
className: a("text-xs text-muted-foreground",
|
|
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
|
|
49
|
-
({ className:
|
|
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",
|
|
54
|
-
...
|
|
53
|
+
className: a("text-xs font-normal text-danger", l),
|
|
54
|
+
...r,
|
|
55
55
|
children: e
|
|
56
56
|
}
|
|
57
57
|
) : null
|
|
58
58
|
);
|
|
59
|
-
|
|
59
|
+
m.displayName = "FieldError";
|
|
60
60
|
const b = d.forwardRef(
|
|
61
|
-
({ className:
|
|
62
|
-
e && /* @__PURE__ */ o(i, { htmlFor:
|
|
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(
|
|
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
|
-
|
|
71
|
+
m as FieldError,
|
|
72
72
|
i as Label,
|
|
73
73
|
h as inputBaseClass
|
|
74
74
|
};
|
package/components/index.d.ts
CHANGED