@actioneer/ads 0.5.9 → 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 +11 -14
- 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 +1 -8
- package/components/breadcrumbs.js +65 -78
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/card.js +19 -18
- package/components/chart.js +526 -503
- 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 +26 -0
- package/components/date-range-picker.js +223 -0
- package/components/drawer.d.ts +19 -3
- package/components/drawer.js +143 -116
- 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 +5 -4
- package/components/index.js +501 -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/panel.js +31 -28
- 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 +96 -63
- 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/components/viz-charts.js +186 -183
- package/demo/components/add-to-artifact.js +8 -10
- package/fonts.css +2 -0
- 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 +115 -152
- package/manifest.json +13730 -1084
- package/package.json +4 -2
- package/styles.css +365 -225
- package/theme.css +315 -176
- 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
package/components/typography.js
CHANGED
|
@@ -5,8 +5,8 @@ import { cn as c } from "../lib/cn.js";
|
|
|
5
5
|
const u = {
|
|
6
6
|
1: { tag: "h1", className: "text-2xl font-medium tracking-tight" },
|
|
7
7
|
2: { tag: "h2", className: "text-xl font-medium tracking-tight" },
|
|
8
|
-
3: { tag: "h3", className: "text-
|
|
9
|
-
4: { tag: "h4", className: "text-
|
|
8
|
+
3: { tag: "h3", className: "text-l font-medium" },
|
|
9
|
+
4: { tag: "h4", className: "text-m font-medium" }
|
|
10
10
|
}, p = d.forwardRef(
|
|
11
11
|
({ className: e, level: a = 1, children: t, ...m }, s) => {
|
|
12
12
|
const { tag: r, className: o } = u[a];
|
|
@@ -15,10 +15,10 @@ const u = {
|
|
|
15
15
|
);
|
|
16
16
|
p.displayName = "Heading";
|
|
17
17
|
const y = {
|
|
18
|
-
xs: "text-
|
|
19
|
-
sm: "text-
|
|
20
|
-
md: "text-
|
|
21
|
-
lg: "text-
|
|
18
|
+
xs: "text-s",
|
|
19
|
+
sm: "text-s",
|
|
20
|
+
md: "text-m",
|
|
21
|
+
lg: "text-l"
|
|
22
22
|
}, N = {
|
|
23
23
|
regular: "font-normal",
|
|
24
24
|
medium: "font-medium",
|
|
@@ -29,15 +29,15 @@ const y = {
|
|
|
29
29
|
tertiary: "text-tertiary"
|
|
30
30
|
}, h = d.forwardRef(
|
|
31
31
|
({ className: e, size: a = "md", color: t, muted: m = !1, weight: s, as: r = "p", children: o, ...l }, x) => {
|
|
32
|
-
const
|
|
32
|
+
const f = r, g = t ? n[t] : m ? n.tertiary : n.primary;
|
|
33
33
|
return /* @__PURE__ */ i(
|
|
34
|
-
|
|
34
|
+
f,
|
|
35
35
|
{
|
|
36
36
|
ref: x,
|
|
37
37
|
className: c(
|
|
38
38
|
y[a],
|
|
39
39
|
s && N[s],
|
|
40
|
-
|
|
40
|
+
g,
|
|
41
41
|
e
|
|
42
42
|
),
|
|
43
43
|
...l,
|
|
@@ -47,20 +47,20 @@ const y = {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
h.displayName = "Text";
|
|
50
|
-
const
|
|
50
|
+
const C = d.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ i(
|
|
51
51
|
"code",
|
|
52
52
|
{
|
|
53
53
|
ref: t,
|
|
54
54
|
className: c(
|
|
55
|
-
"rounded bg-muted px-1.5 py-0.5 tabular-nums text-
|
|
55
|
+
"rounded bg-muted px-1.5 py-0.5 tabular-nums text-s",
|
|
56
56
|
e
|
|
57
57
|
),
|
|
58
58
|
...a
|
|
59
59
|
}
|
|
60
60
|
));
|
|
61
|
-
|
|
61
|
+
C.displayName = "Code";
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
C as Code,
|
|
64
64
|
p as Heading,
|
|
65
65
|
h as Text
|
|
66
66
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
5
5
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-sm" | "icon-xs" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
package/components/ui/dialog.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { Close as
|
|
4
|
+
import { Close as _ } from "../../lib/icons.js";
|
|
5
5
|
import { Dialog as o } from "radix-ui";
|
|
6
|
-
import { MotionConfig as
|
|
6
|
+
import { MotionConfig as v, AnimatePresence as x, motion as p } from "motion/react";
|
|
7
7
|
import { cn as u } from "../../lib/cn.js";
|
|
8
8
|
import "./button.js";
|
|
9
|
-
import { modalPanelVariants as
|
|
10
|
-
const
|
|
9
|
+
import { modalPanelVariants as b, backdropVariants as C } from "../../lib/motion.js";
|
|
10
|
+
const m = s.createContext(!1);
|
|
11
11
|
function j({
|
|
12
12
|
open: t,
|
|
13
13
|
defaultOpen: i = !1,
|
|
14
14
|
onOpenChange: n,
|
|
15
|
-
children:
|
|
16
|
-
...
|
|
15
|
+
children: r,
|
|
16
|
+
...a
|
|
17
17
|
}) {
|
|
18
|
-
const l = t !== void 0, [d,
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
18
|
+
const l = t !== void 0, [d, h] = s.useState(i), f = l ? t : d;
|
|
19
|
+
return /* @__PURE__ */ e(m.Provider, { value: f, children: /* @__PURE__ */ e(
|
|
20
20
|
o.Root,
|
|
21
21
|
{
|
|
22
22
|
"data-slot": "dialog",
|
|
23
23
|
open: f,
|
|
24
|
-
onOpenChange: (
|
|
25
|
-
l ||
|
|
24
|
+
onOpenChange: (g) => {
|
|
25
|
+
l || h(g), n == null || n(g);
|
|
26
26
|
},
|
|
27
|
-
...
|
|
28
|
-
children:
|
|
27
|
+
...a,
|
|
28
|
+
children: r
|
|
29
29
|
}
|
|
30
30
|
) });
|
|
31
31
|
}
|
|
@@ -34,23 +34,23 @@ function R({
|
|
|
34
34
|
}) {
|
|
35
35
|
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function M({
|
|
38
38
|
...t
|
|
39
39
|
}) {
|
|
40
40
|
return /* @__PURE__ */ e(o.Portal, { "data-slot": "dialog-portal", ...t });
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function D({
|
|
43
43
|
className: t,
|
|
44
44
|
forceMount: i,
|
|
45
45
|
asChild: n,
|
|
46
|
-
...
|
|
46
|
+
...r
|
|
47
47
|
}) {
|
|
48
|
-
const
|
|
49
|
-
return /* @__PURE__ */ e(
|
|
50
|
-
|
|
48
|
+
const a = s.useContext(m);
|
|
49
|
+
return /* @__PURE__ */ e(v, { reducedMotion: "user", children: /* @__PURE__ */ e(x, { initial: !1, children: a && /* @__PURE__ */ e(o.Overlay, { forceMount: !0, asChild: !0, ...r, children: /* @__PURE__ */ e(
|
|
50
|
+
p.div,
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "dialog-overlay",
|
|
53
|
-
variants:
|
|
53
|
+
variants: C,
|
|
54
54
|
initial: "hidden",
|
|
55
55
|
animate: "visible",
|
|
56
56
|
exit: "hidden",
|
|
@@ -62,14 +62,14 @@ function V({
|
|
|
62
62
|
className: t,
|
|
63
63
|
children: i,
|
|
64
64
|
showCloseButton: n = !0,
|
|
65
|
-
forceMount:
|
|
66
|
-
asChild:
|
|
65
|
+
forceMount: r,
|
|
66
|
+
asChild: a,
|
|
67
67
|
...l
|
|
68
68
|
}) {
|
|
69
|
-
const d = s.useContext(
|
|
70
|
-
return /* @__PURE__ */ c(
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
-
/* @__PURE__ */ e(
|
|
69
|
+
const d = s.useContext(m);
|
|
70
|
+
return /* @__PURE__ */ c(M, { "data-slot": "dialog-portal", forceMount: !0, children: [
|
|
71
|
+
/* @__PURE__ */ e(D, {}),
|
|
72
|
+
/* @__PURE__ */ e(v, { reducedMotion: "user", children: /* @__PURE__ */ e(x, { initial: !1, children: d && /* @__PURE__ */ e(
|
|
73
73
|
o.Content,
|
|
74
74
|
{
|
|
75
75
|
"data-slot": "dialog-content",
|
|
@@ -77,14 +77,14 @@ function V({
|
|
|
77
77
|
className: "pointer-events-none fixed inset-0 z-50 grid place-items-center p-4 outline-none",
|
|
78
78
|
...l,
|
|
79
79
|
children: /* @__PURE__ */ c(
|
|
80
|
-
|
|
80
|
+
p.div,
|
|
81
81
|
{
|
|
82
|
-
variants:
|
|
82
|
+
variants: b,
|
|
83
83
|
initial: "hidden",
|
|
84
84
|
animate: "visible",
|
|
85
85
|
exit: "hidden",
|
|
86
86
|
className: u(
|
|
87
|
-
"pointer-events-auto relative
|
|
87
|
+
"pointer-events-auto relative flex max-h-[calc(100dvh-2rem)] w-full max-w-[38.75rem] flex-col overflow-hidden rounded-xl bg-elevated text-foreground shadow-[0_2px_4px_-1px_rgb(0_0_0/0.34),0_16px_32px_-8px_rgb(0_0_0/0.46)] outline-none max-sm:max-h-[calc(100dvh-1rem)] max-sm:rounded-lg",
|
|
88
88
|
t
|
|
89
89
|
),
|
|
90
90
|
children: [
|
|
@@ -93,9 +93,9 @@ function V({
|
|
|
93
93
|
o.Close,
|
|
94
94
|
{
|
|
95
95
|
"data-slot": "dialog-close",
|
|
96
|
-
className: "absolute top-
|
|
96
|
+
className: "absolute right-2 top-2 z-10 inline-flex size-7 items-center justify-center rounded-sm text-secondary outline-none transition-[background,color,transform] duration-150 ease-out hover:bg-muted hover:text-foreground active:scale-[0.97] focus-visible:ring-3 focus-visible:ring-ring disabled:pointer-events-none motion-reduce:transition-none motion-reduce:active:scale-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ e(
|
|
98
|
+
/* @__PURE__ */ e(_, {}),
|
|
99
99
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
100
100
|
]
|
|
101
101
|
}
|
|
@@ -115,7 +115,7 @@ function A({
|
|
|
115
115
|
o.Title,
|
|
116
116
|
{
|
|
117
117
|
"data-slot": "dialog-title",
|
|
118
|
-
className: u("text-
|
|
118
|
+
className: u("text-[15px] font-semibold leading-5", t),
|
|
119
119
|
...i
|
|
120
120
|
}
|
|
121
121
|
);
|
|
@@ -123,8 +123,8 @@ function A({
|
|
|
123
123
|
export {
|
|
124
124
|
j as Dialog,
|
|
125
125
|
V as DialogContent,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
D as DialogOverlay,
|
|
127
|
+
M as DialogPortal,
|
|
128
128
|
A as DialogTitle,
|
|
129
129
|
R as DialogTrigger
|
|
130
130
|
};
|