@actioneer/ads 0.5.7 → 0.5.9
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/bin/ads-init.mjs +6 -0
- package/components/accordion.js +50 -48
- package/components/agent-icon.d.ts +12 -0
- package/components/agent-icon.js +133 -120
- package/components/ai-elements/chain-of-thought.d.ts +1 -1
- package/components/ai-elements/chain-of-thought.js +108 -108
- package/components/ai-elements/chart.js +16 -14
- package/components/ai-elements/inline-citation.js +41 -41
- package/components/ai-elements/message.js +4 -4
- package/components/ai-elements/queue.js +7 -7
- package/components/ai-elements/research-activity.js +114 -114
- package/components/ai-elements/shimmer.d.ts +2 -2
- package/components/ai-elements/speech-input.js +28 -28
- package/components/ai-elements/task-progress.js +26 -16
- package/components/ai-elements/task.js +17 -17
- package/components/ai-elements/tool.js +6 -6
- package/components/ai-elements/transcript.js +6 -5
- package/components/ai-elements/voice.js +1 -1
- package/components/alert.js +10 -10
- package/components/answer-sources.js +1 -1
- package/components/answer.js +115 -114
- package/components/assistant-ui/action-bar.js +94 -48
- package/components/assistant-ui/attachment.js +103 -75
- package/components/assistant-ui/badge.d.ts +1 -1
- package/components/assistant-ui/badge.js +17 -17
- package/components/assistant-ui/chain-of-thought.d.ts +1 -1
- package/components/assistant-ui/composer-add-context.js +9 -9
- package/components/assistant-ui/composer-deep-research.js +5 -5
- package/components/assistant-ui/composer-harness.js +11 -9
- package/components/assistant-ui/composer-trigger-popover.js +45 -34
- package/components/assistant-ui/composer.js +59 -59
- package/components/assistant-ui/error.js +14 -14
- package/components/assistant-ui/file.d.ts +1 -1
- package/components/assistant-ui/image.d.ts +1 -1
- package/components/assistant-ui/image.js +113 -103
- package/components/assistant-ui/markdown-text.js +18 -18
- package/components/assistant-ui/message.js +46 -45
- package/components/assistant-ui/quote.js +1 -1
- package/components/assistant-ui/reasoning.d.ts +1 -1
- package/components/assistant-ui/reasoning.js +66 -77
- package/components/assistant-ui/suggestions.js +4 -4
- package/components/assistant-ui/thread.js +22 -22
- package/components/assistant-ui/tool-fallback.js +60 -63
- package/components/assistant-ui/tool-group.d.ts +1 -1
- package/components/assistant-ui/tool-group.js +36 -42
- package/components/audio-waveform.js +25 -24
- package/components/autocomplete.d.ts +1 -0
- package/components/autocomplete.js +45 -43
- package/components/avatar.d.ts +1 -0
- package/components/avatar.js +27 -26
- package/components/badge.d.ts +1 -1
- package/components/breadcrumbs.d.ts +2 -0
- package/components/breadcrumbs.js +52 -50
- package/components/button.d.ts +2 -2
- package/components/button.js +22 -20
- package/components/card.js +8 -8
- package/components/carousel.js +105 -104
- package/components/chart.d.ts +6 -0
- package/components/chart.js +743 -672
- package/components/checkbox.js +74 -38
- package/components/chip.d.ts +1 -1
- package/components/code-block.js +3 -3
- package/components/collapsible.js +67 -23
- package/components/connector-card.js +6 -6
- package/components/drawer.d.ts +18 -11
- package/components/drawer.js +81 -78
- package/components/dropdown.d.ts +2 -0
- package/components/dropdown.js +88 -79
- package/components/empty-state.d.ts +1 -1
- package/components/empty-state.js +7 -7
- package/components/field.d.ts +4 -0
- package/components/field.js +45 -34
- package/components/file-dropzone.js +12 -12
- package/components/index.d.ts +3 -0
- package/components/index.js +584 -558
- package/components/input-field.js +51 -46
- package/components/input.js +20 -20
- package/components/link.js +9 -9
- package/components/modal.d.ts +5 -1
- package/components/modal.js +121 -76
- package/components/navbar.d.ts +1 -1
- package/components/navbar.js +1 -1
- package/components/number-field.js +38 -29
- package/components/page-header.js +12 -12
- package/components/pagination.js +19 -19
- package/components/panel.js +2 -2
- package/components/pixel-blast-svg.js +3 -3
- package/components/pixel-icon.d.ts +4 -0
- package/components/pixel-icon.js +210 -164
- package/components/popover.d.ts +1 -1
- package/components/popover.js +66 -64
- package/components/progress-circle.js +36 -32
- package/components/progress.js +28 -24
- package/components/radio.js +59 -49
- package/components/resizable-panel.js +1 -1
- package/components/reveal.d.ts +2 -2
- package/components/ripple.d.ts +3 -3
- package/components/scroll-area.js +17 -16
- package/components/segmented.d.ts +1 -0
- package/components/segmented.js +39 -36
- package/components/select.d.ts +7 -0
- package/components/select.js +186 -137
- package/components/setting-row.js +45 -42
- package/components/sidebar.js +131 -127
- package/components/skeleton.js +5 -5
- package/components/spinner.d.ts +13 -4
- package/components/spinner.js +42 -42
- package/components/stepper.js +21 -21
- package/components/switch.js +41 -39
- package/components/table.d.ts +16 -0
- package/components/table.js +393 -260
- package/components/tabs.js +149 -137
- package/components/toast.js +66 -66
- package/components/tooltip.js +2 -2
- package/components/tree.js +62 -51
- package/components/typography.d.ts +2 -1
- package/components/typography.js +33 -32
- package/components/ui/button.d.ts +2 -2
- package/components/ui/button.js +19 -19
- package/components/ui/collapsible.d.ts +1 -5
- package/components/ui/dialog.d.ts +3 -3
- package/components/ui/dialog.js +95 -58
- package/components/ui/tooltip.d.ts +2 -2
- package/components/ui/tooltip.js +67 -33
- package/components/viz-charts.js +95 -95
- package/demo/components/add-to-artifact.js +363 -0
- package/demo/lib/artifact-library.js +142 -0
- package/demo/lib/artifact-pin-guard.js +12 -0
- package/fonts/aribau-grotesk-medium.woff2 +0 -0
- package/fonts/aribau-grotesk-regular.woff2 +0 -0
- package/fonts.css +11 -11
- package/hooks/agents-ui/use-agent-audio-visualizer-aura.js +17 -16
- package/hooks/agents-ui/use-agent-audio-visualizer-wave.js +21 -20
- package/lib/icons.d.ts +24 -0
- package/lib/icons.js +114 -108
- package/lib/motion.d.ts +42 -39
- package/lib/motion.js +112 -52
- package/lib/spinner-mark.d.ts +9 -0
- package/lib/spinner-mark.js +98 -0
- package/llms.txt +53 -19
- package/manifest.json +258 -36
- package/package.json +1 -1
- package/styles.css +143 -124
- package/theme.css +90 -93
- package/components/ui/collapsible.js +0 -35
- package/fonts/aribau-grotesk-500.otf +0 -0
- package/fonts/aribau-grotesk-600.woff2 +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
3
|
+
declare function Dialog({ open: openProp, defaultOpen, onOpenChange, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
|
|
5
5
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
6
6
|
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
|
|
7
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
7
|
+
declare function DialogOverlay({ className, forceMount: _forceMount, asChild: _asChild, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, forceMount: _forceMount, asChild: _asChild, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
11
|
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
package/components/ui/dialog.js
CHANGED
|
@@ -1,93 +1,130 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { Close as b } from "../../lib/icons.js";
|
|
4
5
|
import { Dialog as o } from "radix-ui";
|
|
5
|
-
import {
|
|
6
|
+
import { MotionConfig as p, AnimatePresence as h, motion as v } from "motion/react";
|
|
7
|
+
import { cn as u } from "../../lib/cn.js";
|
|
6
8
|
import "./button.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
import { modalPanelVariants as C, backdropVariants as M } from "../../lib/motion.js";
|
|
10
|
+
const g = s.createContext(!1);
|
|
11
|
+
function j({
|
|
12
|
+
open: t,
|
|
13
|
+
defaultOpen: i = !1,
|
|
14
|
+
onOpenChange: n,
|
|
15
|
+
children: a,
|
|
16
|
+
...r
|
|
9
17
|
}) {
|
|
10
|
-
|
|
18
|
+
const l = t !== void 0, [d, x] = s.useState(i), f = l ? t : d;
|
|
19
|
+
return /* @__PURE__ */ e(g.Provider, { value: f, children: /* @__PURE__ */ e(
|
|
20
|
+
o.Root,
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "dialog",
|
|
23
|
+
open: f,
|
|
24
|
+
onOpenChange: (m) => {
|
|
25
|
+
l || x(m), n == null || n(m);
|
|
26
|
+
},
|
|
27
|
+
...r,
|
|
28
|
+
children: a
|
|
29
|
+
}
|
|
30
|
+
) });
|
|
11
31
|
}
|
|
12
|
-
function
|
|
32
|
+
function R({
|
|
13
33
|
...t
|
|
14
34
|
}) {
|
|
15
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
16
36
|
}
|
|
17
|
-
function
|
|
37
|
+
function D({
|
|
18
38
|
...t
|
|
19
39
|
}) {
|
|
20
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ e(o.Portal, { "data-slot": "dialog-portal", ...t });
|
|
21
41
|
}
|
|
22
|
-
function
|
|
42
|
+
function y({
|
|
23
43
|
className: t,
|
|
24
|
-
|
|
44
|
+
forceMount: i,
|
|
45
|
+
asChild: n,
|
|
46
|
+
...a
|
|
25
47
|
}) {
|
|
26
|
-
|
|
27
|
-
|
|
48
|
+
const r = s.useContext(g);
|
|
49
|
+
return /* @__PURE__ */ e(p, { reducedMotion: "user", children: /* @__PURE__ */ e(h, { initial: !1, children: r && /* @__PURE__ */ e(o.Overlay, { forceMount: !0, asChild: !0, ...a, children: /* @__PURE__ */ e(
|
|
50
|
+
v.div,
|
|
28
51
|
{
|
|
29
52
|
"data-slot": "dialog-overlay",
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
variants: M,
|
|
54
|
+
initial: "hidden",
|
|
55
|
+
animate: "visible",
|
|
56
|
+
exit: "hidden",
|
|
57
|
+
className: u("fixed inset-0 z-50 bg-black/50", t)
|
|
35
58
|
}
|
|
36
|
-
);
|
|
59
|
+
) }) }) });
|
|
37
60
|
}
|
|
38
|
-
function
|
|
61
|
+
function V({
|
|
39
62
|
className: t,
|
|
40
|
-
children:
|
|
41
|
-
showCloseButton:
|
|
42
|
-
|
|
63
|
+
children: i,
|
|
64
|
+
showCloseButton: n = !0,
|
|
65
|
+
forceMount: a,
|
|
66
|
+
asChild: r,
|
|
67
|
+
...l
|
|
43
68
|
}) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */
|
|
69
|
+
const d = s.useContext(g);
|
|
70
|
+
return /* @__PURE__ */ c(D, { "data-slot": "dialog-portal", forceMount: !0, children: [
|
|
71
|
+
/* @__PURE__ */ e(y, {}),
|
|
72
|
+
/* @__PURE__ */ e(p, { reducedMotion: "user", children: /* @__PURE__ */ e(h, { initial: !1, children: d && /* @__PURE__ */ e(
|
|
47
73
|
o.Content,
|
|
48
74
|
{
|
|
49
75
|
"data-slot": "dialog-content",
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
forceMount: !0,
|
|
77
|
+
className: "pointer-events-none fixed inset-0 z-50 grid place-items-center p-4 outline-none",
|
|
78
|
+
...l,
|
|
79
|
+
children: /* @__PURE__ */ c(
|
|
80
|
+
v.div,
|
|
81
|
+
{
|
|
82
|
+
variants: C,
|
|
83
|
+
initial: "hidden",
|
|
84
|
+
animate: "visible",
|
|
85
|
+
exit: "hidden",
|
|
86
|
+
className: u(
|
|
87
|
+
"pointer-events-auto relative grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border bg-background p-6 shadow-lg sm:max-w-lg",
|
|
88
|
+
t
|
|
89
|
+
),
|
|
90
|
+
children: [
|
|
91
|
+
i,
|
|
92
|
+
n && /* @__PURE__ */ c(
|
|
93
|
+
o.Close,
|
|
94
|
+
{
|
|
95
|
+
"data-slot": "dialog-close",
|
|
96
|
+
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ e(b, {}),
|
|
99
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
69
106
|
}
|
|
70
|
-
)
|
|
107
|
+
) }) })
|
|
71
108
|
] });
|
|
72
109
|
}
|
|
73
|
-
function
|
|
110
|
+
function A({
|
|
74
111
|
className: t,
|
|
75
|
-
...
|
|
112
|
+
...i
|
|
76
113
|
}) {
|
|
77
|
-
return /* @__PURE__ */
|
|
114
|
+
return /* @__PURE__ */ e(
|
|
78
115
|
o.Title,
|
|
79
116
|
{
|
|
80
117
|
"data-slot": "dialog-title",
|
|
81
|
-
className:
|
|
82
|
-
...
|
|
118
|
+
className: u("text-lg leading-none font-medium", t),
|
|
119
|
+
...i
|
|
83
120
|
}
|
|
84
121
|
);
|
|
85
122
|
}
|
|
86
123
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
124
|
+
j as Dialog,
|
|
125
|
+
V as DialogContent,
|
|
126
|
+
y as DialogOverlay,
|
|
127
|
+
D as DialogPortal,
|
|
128
|
+
A as DialogTitle,
|
|
129
|
+
R as DialogTrigger
|
|
93
130
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ open: openProp, defaultOpen, onOpenChange, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, forceMount, asChild: _asChild, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
package/components/ui/tooltip.js
CHANGED
|
@@ -1,56 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { Tooltip as i } from "radix-ui";
|
|
5
|
+
import { MotionConfig as x, AnimatePresence as g, motion as v } from "motion/react";
|
|
6
|
+
import { cn as T } from "../../lib/cn.js";
|
|
7
|
+
import { tooltipVariants as h } from "../../lib/motion.js";
|
|
8
|
+
const u = s.createContext(!1);
|
|
9
|
+
function _({
|
|
10
|
+
delayDuration: o = 0,
|
|
7
11
|
...r
|
|
8
12
|
}) {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
13
|
+
return /* @__PURE__ */ t(
|
|
14
|
+
i.Provider,
|
|
11
15
|
{
|
|
12
16
|
"data-slot": "tooltip-provider",
|
|
13
|
-
delayDuration:
|
|
17
|
+
delayDuration: o,
|
|
14
18
|
...r
|
|
15
19
|
}
|
|
16
20
|
);
|
|
17
21
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
22
|
+
function j({
|
|
23
|
+
open: o,
|
|
24
|
+
defaultOpen: r = !1,
|
|
25
|
+
onOpenChange: e,
|
|
26
|
+
children: l,
|
|
27
|
+
...d
|
|
20
28
|
}) {
|
|
21
|
-
|
|
29
|
+
const n = o !== void 0, [a, f] = s.useState(r), c = n ? o : a;
|
|
30
|
+
return /* @__PURE__ */ t(u.Provider, { value: c, children: /* @__PURE__ */ t(
|
|
31
|
+
i.Root,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "tooltip",
|
|
34
|
+
open: c,
|
|
35
|
+
onOpenChange: (p) => {
|
|
36
|
+
n || f(p), e == null || e(p);
|
|
37
|
+
},
|
|
38
|
+
...d,
|
|
39
|
+
children: l
|
|
40
|
+
}
|
|
41
|
+
) });
|
|
22
42
|
}
|
|
23
|
-
function
|
|
24
|
-
...
|
|
43
|
+
function w({
|
|
44
|
+
...o
|
|
25
45
|
}) {
|
|
26
|
-
return /* @__PURE__ */ i
|
|
46
|
+
return /* @__PURE__ */ t(i.Trigger, { "data-slot": "tooltip-trigger", ...o });
|
|
27
47
|
}
|
|
28
|
-
function
|
|
29
|
-
className:
|
|
48
|
+
function y({
|
|
49
|
+
className: o,
|
|
30
50
|
sideOffset: r = 0,
|
|
31
51
|
children: e,
|
|
32
|
-
|
|
52
|
+
forceMount: l,
|
|
53
|
+
asChild: d,
|
|
54
|
+
...n
|
|
33
55
|
}) {
|
|
34
|
-
|
|
35
|
-
|
|
56
|
+
const a = s.useContext(u);
|
|
57
|
+
return /* @__PURE__ */ t(i.Portal, { children: /* @__PURE__ */ t(x, { reducedMotion: "user", children: /* @__PURE__ */ t(g, { initial: !1, children: a && /* @__PURE__ */ t(
|
|
58
|
+
i.Content,
|
|
36
59
|
{
|
|
37
60
|
"data-slot": "tooltip-content",
|
|
38
61
|
sideOffset: r,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
forceMount: l ?? !0,
|
|
63
|
+
asChild: !0,
|
|
64
|
+
...n,
|
|
65
|
+
children: /* @__PURE__ */ m(
|
|
66
|
+
v.div,
|
|
67
|
+
{
|
|
68
|
+
variants: h,
|
|
69
|
+
initial: "hidden",
|
|
70
|
+
animate: "visible",
|
|
71
|
+
exit: "hidden",
|
|
72
|
+
className: T(
|
|
73
|
+
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background",
|
|
74
|
+
o
|
|
75
|
+
),
|
|
76
|
+
children: [
|
|
77
|
+
e,
|
|
78
|
+
/* @__PURE__ */ t(i.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-sm bg-foreground fill-foreground" })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
)
|
|
48
82
|
}
|
|
49
|
-
) });
|
|
83
|
+
) }) }) });
|
|
50
84
|
}
|
|
51
85
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
86
|
+
j as Tooltip,
|
|
87
|
+
y as TooltipContent,
|
|
88
|
+
_ as TooltipProvider,
|
|
89
|
+
w as TooltipTrigger
|
|
56
90
|
};
|