@actioneer/ads 0.6.0 → 0.7.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.
- package/components/ai-elements/agent-trace.d.ts +2 -2
- package/components/ai-elements/agent-trace.js +163 -104
- package/components/ai-elements/chain-of-thought.d.ts +2 -2
- package/components/ai-elements/chain-of-thought.js +1 -1
- package/components/ai-elements/index.d.ts +0 -5
- package/components/ai-elements/inline-citation.js +1 -1
- package/components/alert.d.ts +6 -6
- package/components/alert.js +89 -53
- package/components/answer-sources.d.ts +2 -6
- package/components/answer-sources.js +58 -60
- package/components/answer.d.ts +5 -0
- package/components/answer.js +311 -271
- package/components/assistant-ui/composer-harness.js +15 -20
- package/components/assistant-ui/composer.d.ts +3 -1
- package/components/assistant-ui/composer.js +148 -144
- package/components/assistant-ui/index.d.ts +0 -3
- package/components/assistant-ui/thread-context.d.ts +3 -1
- package/components/assistant-ui/thread.js +50 -42
- package/components/avatar.js +42 -42
- package/components/badge.d.ts +5 -6
- package/components/badge.js +13 -76
- package/components/body-page-header.d.ts +15 -0
- package/components/body-page-header.js +24 -0
- package/components/brand-loader.d.ts +0 -3
- package/components/brand-loader.js +10 -32
- package/components/breadcrumbs.d.ts +0 -7
- package/components/breadcrumbs.js +54 -71
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/chart.js +298 -296
- package/components/chip.d.ts +13 -1
- package/components/chip.js +93 -80
- package/components/collection-header.d.ts +17 -0
- package/components/collection-header.js +31 -0
- package/components/connector-card.d.ts +6 -6
- package/components/connector-card.js +31 -32
- package/components/date-range-picker.d.ts +2 -1
- package/components/date-range-picker.js +158 -122
- package/components/drawer.d.ts +19 -3
- package/components/drawer.js +109 -100
- package/components/dropdown.d.ts +1 -2
- package/components/dropdown.js +88 -89
- package/components/field.js +39 -34
- package/components/file-dropzone.js +1 -1
- package/components/index.d.ts +4 -4
- package/components/index.js +499 -546
- package/components/infinite-canvas.js +24 -24
- package/components/input-field.d.ts +18 -3
- package/components/input-field.js +88 -72
- package/components/input.js +16 -15
- package/components/modal.d.ts +31 -3
- package/components/modal.js +243 -169
- package/components/number-field.js +45 -42
- package/components/page-body.d.ts +12 -0
- package/components/page-body.js +18 -0
- package/components/pagination.js +36 -36
- package/components/select.d.ts +21 -0
- package/components/select.js +189 -148
- package/components/setting-row.d.ts +6 -5
- package/components/setting-row.js +33 -32
- package/components/sidebar.d.ts +2 -0
- package/components/sidebar.js +165 -155
- package/components/skeleton.js +8 -7
- package/components/slider.js +1 -1
- package/components/surface-loader.d.ts +11 -0
- package/components/surface-loader.js +35 -0
- package/components/table.d.ts +16 -10
- package/components/table.js +426 -410
- package/components/tabs.d.ts +2 -0
- package/components/tabs.js +159 -294
- package/components/textarea.js +9 -9
- package/components/toast.d.ts +1 -1
- package/components/toast.js +181 -118
- package/components/tree.d.ts +5 -1
- package/components/tree.js +54 -49
- package/components/typography.d.ts +4 -4
- package/components/typography.js +13 -13
- package/components/ui/button.d.ts +1 -1
- package/components/ui/dialog.js +33 -33
- package/demo/components/add-to-artifact.js +6 -10
- package/lib/cn.js +11 -4
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +107 -106
- package/lib/interactive.d.ts +1 -1
- package/llms.txt +95 -152
- package/manifest.json +1628 -2729
- package/package.json +1 -2
- package/styles.css +347 -223
- package/theme.css +303 -177
- package/components/agent-icon.d.ts +0 -76
- package/components/agent-icon.js +0 -265
- package/components/ai-elements/queue.d.ts +0 -60
- package/components/ai-elements/queue.js +0 -193
- package/components/ai-elements/speech-input.d.ts +0 -16
- package/components/ai-elements/speech-input.js +0 -151
- package/components/ai-elements/task-progress.d.ts +0 -41
- package/components/ai-elements/task-progress.js +0 -224
- package/components/ai-elements/task.d.ts +0 -39
- package/components/ai-elements/task.js +0 -105
- package/components/ai-elements/voice.d.ts +0 -90
- package/components/ai-elements/voice.js +0 -496
- package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
- package/components/assistant-ui/follow-up-suggestions.js +0 -72
- package/components/assistant-ui/suggestions.d.ts +0 -7
- package/components/assistant-ui/suggestions.js +0 -19
- package/components/assistant-ui/voice.d.ts +0 -18
- package/components/link.d.ts +0 -14
- package/components/link.js +0 -72
- package/components/navbar.d.ts +0 -15
- package/components/navbar.js +0 -68
- package/components/pixel-icon.d.ts +0 -37
- package/components/pixel-icon.js +0 -859
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
7
|
-
|
|
2
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { cva as p } from "class-variance-authority";
|
|
5
|
+
import { cn as s } from "../lib/cn.js";
|
|
6
|
+
const g = p(
|
|
7
|
+
[
|
|
8
|
+
"relative flex w-full items-center gap-3 rounded-md bg-transparent px-4 py-3 text-left",
|
|
9
|
+
"after:pointer-events-none after:absolute after:inset-x-4 after:bottom-0 after:z-20",
|
|
10
|
+
"after:border-b after:border-border after:content-[''] last:after:hidden"
|
|
11
|
+
].join(" "),
|
|
8
12
|
{
|
|
9
13
|
variants: {
|
|
10
14
|
isPressable: {
|
|
11
|
-
true: "
|
|
15
|
+
true: "",
|
|
12
16
|
false: ""
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
defaultVariants: { isPressable: !1 }
|
|
16
20
|
}
|
|
17
|
-
),
|
|
18
|
-
({ className:
|
|
21
|
+
), v = f.forwardRef(
|
|
22
|
+
({ className: a, icon: r, label: t, description: n, action: i, onSelect: o, ...c }, m) => {
|
|
19
23
|
const l = !!o;
|
|
20
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ d(
|
|
21
25
|
"div",
|
|
22
26
|
{
|
|
23
27
|
ref: m,
|
|
24
28
|
"data-slot": "setting-row",
|
|
25
|
-
className:
|
|
26
|
-
...
|
|
29
|
+
className: s(g({ isPressable: l }), a),
|
|
30
|
+
...c,
|
|
27
31
|
children: [
|
|
28
32
|
l && /* @__PURE__ */ e(
|
|
29
33
|
"button",
|
|
@@ -31,34 +35,34 @@ const p = g(
|
|
|
31
35
|
type: "button",
|
|
32
36
|
"aria-label": typeof t == "string" ? t : "Open setting",
|
|
33
37
|
onClick: o,
|
|
34
|
-
className:
|
|
35
|
-
"absolute inset-0 rounded-
|
|
38
|
+
className: s(
|
|
39
|
+
"absolute inset-0 rounded-md outline-none",
|
|
36
40
|
"transition-[background-color,transform] duration-150 ease-out",
|
|
37
41
|
"hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring",
|
|
38
42
|
"active:scale-[0.97] motion-reduce:transition-none"
|
|
39
43
|
)
|
|
40
44
|
}
|
|
41
45
|
),
|
|
42
|
-
|
|
46
|
+
r && /* @__PURE__ */ e(
|
|
43
47
|
"span",
|
|
44
48
|
{
|
|
45
49
|
"aria-hidden": !0,
|
|
46
50
|
className: "relative z-10 flex size-5 shrink-0 items-center justify-center text-tertiary pointer-events-none [&>svg]:size-4.5",
|
|
47
|
-
children:
|
|
51
|
+
children: r
|
|
48
52
|
}
|
|
49
53
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */ e("div", { className: "min-w-0
|
|
54
|
+
/* @__PURE__ */ d("div", { className: "relative z-10 flex min-w-0 flex-1 flex-col gap-0.5 pointer-events-none", children: [
|
|
55
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 text-base text-foreground wrap-break-word", children: t }),
|
|
52
56
|
n && /* @__PURE__ */ e("div", { className: "min-w-0 text-xs text-tertiary", children: n })
|
|
53
57
|
] }),
|
|
54
|
-
|
|
58
|
+
i && // The trailing control owns its own click — a pressable row must not
|
|
55
59
|
// also fire when the reader aims at the button inside it.
|
|
56
60
|
/* @__PURE__ */ e(
|
|
57
61
|
"span",
|
|
58
62
|
{
|
|
59
63
|
className: "relative z-20 shrink-0",
|
|
60
64
|
onClick: (u) => u.stopPropagation(),
|
|
61
|
-
children:
|
|
65
|
+
children: i
|
|
62
66
|
}
|
|
63
67
|
)
|
|
64
68
|
]
|
|
@@ -66,24 +70,21 @@ const p = g(
|
|
|
66
70
|
);
|
|
67
71
|
}
|
|
68
72
|
);
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
({ className:
|
|
73
|
+
v.displayName = "SettingRow";
|
|
74
|
+
const x = f.forwardRef(
|
|
75
|
+
({ className: a, ...r }, t) => /* @__PURE__ */ e(
|
|
72
76
|
"div",
|
|
73
77
|
{
|
|
74
78
|
ref: t,
|
|
75
79
|
"data-slot": "setting-list",
|
|
76
|
-
className: a
|
|
77
|
-
|
|
78
|
-
i
|
|
79
|
-
),
|
|
80
|
-
...s
|
|
80
|
+
className: s("flex w-full flex-col", a),
|
|
81
|
+
...r
|
|
81
82
|
}
|
|
82
83
|
)
|
|
83
84
|
);
|
|
84
|
-
|
|
85
|
+
x.displayName = "SettingList";
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
x as SettingList,
|
|
88
|
+
v as SettingRow,
|
|
89
|
+
g as settingRowVariants
|
|
89
90
|
};
|
package/components/sidebar.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
28
28
|
/** Uncontrolled initial collapsed state. */
|
|
29
29
|
defaultCollapsed?: boolean;
|
|
30
30
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
31
|
+
/** Slide the complete rail in from the left on its first mount. */
|
|
32
|
+
animateOnMount?: boolean;
|
|
31
33
|
/** Bind ⌘B / Ctrl-B to toggle collapse. Default true. */
|
|
32
34
|
keyboardToggle?: boolean;
|
|
33
35
|
}
|