@actioneer/ads 0.5.6 → 0.5.8

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 (149) hide show
  1. package/bin/ads-init.mjs +6 -0
  2. package/components/accordion.js +50 -48
  3. package/components/agent-icon.d.ts +12 -0
  4. package/components/agent-icon.js +135 -121
  5. package/components/ai-elements/chain-of-thought-icon.d.ts +10 -12
  6. package/components/ai-elements/chain-of-thought-icon.js +341 -201
  7. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  8. package/components/ai-elements/chain-of-thought.js +108 -108
  9. package/components/ai-elements/chart.js +16 -14
  10. package/components/ai-elements/inline-citation.js +41 -41
  11. package/components/ai-elements/message.js +4 -4
  12. package/components/ai-elements/queue.js +7 -7
  13. package/components/ai-elements/research-activity.js +114 -114
  14. package/components/ai-elements/shimmer.d.ts +2 -2
  15. package/components/ai-elements/speech-input.js +28 -28
  16. package/components/ai-elements/task-progress.js +26 -16
  17. package/components/ai-elements/task.js +17 -17
  18. package/components/ai-elements/tool.js +6 -6
  19. package/components/ai-elements/transcript.js +6 -5
  20. package/components/ai-elements/voice.js +1 -1
  21. package/components/alert.js +10 -10
  22. package/components/answer-sources.d.ts +42 -0
  23. package/components/answer-sources.js +111 -0
  24. package/components/answer.js +115 -114
  25. package/components/assistant-ui/action-bar.js +94 -48
  26. package/components/assistant-ui/attachment.js +131 -103
  27. package/components/assistant-ui/badge.d.ts +1 -1
  28. package/components/assistant-ui/badge.js +17 -17
  29. package/components/assistant-ui/chain-of-thought.d.ts +1 -1
  30. package/components/assistant-ui/composer-add-context.js +9 -9
  31. package/components/assistant-ui/composer-deep-research.js +5 -5
  32. package/components/assistant-ui/composer-harness.js +12 -9
  33. package/components/assistant-ui/composer-trigger-popover.js +45 -34
  34. package/components/assistant-ui/composer.js +59 -59
  35. package/components/assistant-ui/error.js +14 -14
  36. package/components/assistant-ui/file.d.ts +1 -1
  37. package/components/assistant-ui/image.d.ts +1 -1
  38. package/components/assistant-ui/image.js +113 -103
  39. package/components/assistant-ui/markdown-text.js +18 -18
  40. package/components/assistant-ui/message.js +46 -45
  41. package/components/assistant-ui/quote.js +1 -1
  42. package/components/assistant-ui/reasoning.d.ts +1 -1
  43. package/components/assistant-ui/reasoning.js +66 -77
  44. package/components/assistant-ui/suggestions.js +4 -4
  45. package/components/assistant-ui/thread-context.d.ts +2 -0
  46. package/components/assistant-ui/thread.js +41 -40
  47. package/components/assistant-ui/tool-fallback.js +60 -63
  48. package/components/assistant-ui/tool-group.d.ts +1 -1
  49. package/components/assistant-ui/tool-group.js +36 -42
  50. package/components/audio-waveform.js +25 -24
  51. package/components/autocomplete.d.ts +1 -0
  52. package/components/autocomplete.js +45 -43
  53. package/components/avatar.js +30 -30
  54. package/components/badge.d.ts +1 -1
  55. package/components/breadcrumbs.js +2 -2
  56. package/components/button.d.ts +2 -2
  57. package/components/button.js +22 -20
  58. package/components/card.js +8 -8
  59. package/components/carousel.js +105 -104
  60. package/components/chart.js +9 -7
  61. package/components/checkbox.js +74 -38
  62. package/components/chip.d.ts +1 -1
  63. package/components/code-block.js +3 -3
  64. package/components/collapsible.js +67 -23
  65. package/components/connector-card.js +6 -6
  66. package/components/drawer.d.ts +15 -10
  67. package/components/drawer.js +78 -77
  68. package/components/dropdown.d.ts +3 -1
  69. package/components/dropdown.js +88 -79
  70. package/components/empty-state.d.ts +4 -4
  71. package/components/empty-state.js +7 -7
  72. package/components/field.d.ts +4 -0
  73. package/components/field.js +45 -34
  74. package/components/file-dropzone.js +12 -12
  75. package/components/index.d.ts +4 -0
  76. package/components/index.js +584 -553
  77. package/components/infinite-canvas.js +1 -1
  78. package/components/input-field.js +51 -46
  79. package/components/input.js +20 -20
  80. package/components/link.js +9 -9
  81. package/components/modal.js +105 -73
  82. package/components/navbar.d.ts +1 -1
  83. package/components/navbar.js +1 -1
  84. package/components/number-field.js +38 -29
  85. package/components/page-header.js +12 -12
  86. package/components/pagination.js +19 -19
  87. package/components/panel.js +2 -2
  88. package/components/pixel-blast-svg.js +3 -3
  89. package/components/pixel-icon.d.ts +3 -1
  90. package/components/pixel-icon.js +294 -215
  91. package/components/popover.d.ts +1 -1
  92. package/components/popover.js +66 -64
  93. package/components/progress-circle.js +36 -32
  94. package/components/progress.js +28 -24
  95. package/components/radio.js +59 -49
  96. package/components/resizable-panel.js +1 -1
  97. package/components/reveal.d.ts +2 -2
  98. package/components/ripple.d.ts +3 -3
  99. package/components/scroll-area.js +17 -16
  100. package/components/segmented.d.ts +4 -1
  101. package/components/segmented.js +26 -25
  102. package/components/select.d.ts +2 -0
  103. package/components/select.js +61 -57
  104. package/components/setting-row.js +45 -42
  105. package/components/sidebar.d.ts +2 -2
  106. package/components/sidebar.js +131 -127
  107. package/components/skeleton.js +5 -5
  108. package/components/spinner.d.ts +13 -4
  109. package/components/spinner.js +42 -42
  110. package/components/stepper.js +21 -21
  111. package/components/switch.js +52 -32
  112. package/components/table.d.ts +24 -7
  113. package/components/table.js +457 -220
  114. package/components/tabs.js +149 -137
  115. package/components/textarea.js +1 -2
  116. package/components/toast.js +66 -66
  117. package/components/tooltip.js +2 -2
  118. package/components/tree.js +62 -51
  119. package/components/typography.d.ts +2 -1
  120. package/components/typography.js +33 -32
  121. package/components/ui/button.d.ts +2 -2
  122. package/components/ui/button.js +19 -19
  123. package/components/ui/collapsible.d.ts +1 -5
  124. package/components/ui/dialog.d.ts +3 -3
  125. package/components/ui/dialog.js +95 -58
  126. package/components/ui/tooltip.d.ts +2 -2
  127. package/components/ui/tooltip.js +67 -33
  128. package/components/viz-charts.js +95 -95
  129. package/demo/components/add-to-artifact.js +341 -0
  130. package/demo/lib/artifact-library.js +134 -0
  131. package/fonts/aribau-grotesk-medium.woff2 +0 -0
  132. package/fonts/aribau-grotesk-regular.woff2 +0 -0
  133. package/fonts.css +11 -11
  134. package/hooks/agents-ui/use-agent-audio-visualizer-aura.js +17 -16
  135. package/hooks/agents-ui/use-agent-audio-visualizer-wave.js +21 -20
  136. package/lib/icons.d.ts +12 -0
  137. package/lib/icons.js +107 -104
  138. package/lib/motion.d.ts +42 -39
  139. package/lib/motion.js +112 -52
  140. package/lib/spinner-mark.d.ts +9 -0
  141. package/lib/spinner-mark.js +98 -0
  142. package/llms.txt +69 -26
  143. package/manifest.json +344 -42
  144. package/package.json +1 -1
  145. package/styles.css +175 -161
  146. package/theme.css +104 -128
  147. package/components/ui/collapsible.js +0 -35
  148. package/fonts/aribau-grotesk-500.otf +0 -0
  149. 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;
@@ -1,93 +1,130 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as n } from "react/jsx-runtime";
3
- import { Close as r } from "../../lib/icons.js";
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 { cn as i } from "../../lib/cn.js";
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
- function x({
8
- ...t
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
- return /* @__PURE__ */ a(o.Root, { "data-slot": "dialog", ...t });
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 b({
32
+ function R({
13
33
  ...t
14
34
  }) {
15
- return /* @__PURE__ */ a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
35
+ return /* @__PURE__ */ e(o.Trigger, { "data-slot": "dialog-trigger", ...t });
16
36
  }
17
- function d({
37
+ function D({
18
38
  ...t
19
39
  }) {
20
- return /* @__PURE__ */ a(o.Portal, { "data-slot": "dialog-portal", ...t });
40
+ return /* @__PURE__ */ e(o.Portal, { "data-slot": "dialog-portal", ...t });
21
41
  }
22
- function g({
42
+ function y({
23
43
  className: t,
24
- ...e
44
+ forceMount: i,
45
+ asChild: n,
46
+ ...a
25
47
  }) {
26
- return /* @__PURE__ */ a(
27
- o.Overlay,
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
- className: i(
31
- "fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
32
- t
33
- ),
34
- ...e
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 h({
61
+ function V({
39
62
  className: t,
40
- children: e,
41
- showCloseButton: l = !0,
42
- ...s
63
+ children: i,
64
+ showCloseButton: n = !0,
65
+ forceMount: a,
66
+ asChild: r,
67
+ ...l
43
68
  }) {
44
- return /* @__PURE__ */ n(d, { "data-slot": "dialog-portal", children: [
45
- /* @__PURE__ */ a(g, {}),
46
- /* @__PURE__ */ n(
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
- className: i(
51
- "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-(--duration-normal) outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
52
- t
53
- ),
54
- ...s,
55
- children: [
56
- e,
57
- l && /* @__PURE__ */ n(
58
- o.Close,
59
- {
60
- "data-slot": "dialog-close",
61
- 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",
62
- children: [
63
- /* @__PURE__ */ a(r, {}),
64
- /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
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 v({
110
+ function A({
74
111
  className: t,
75
- ...e
112
+ ...i
76
113
  }) {
77
- return /* @__PURE__ */ a(
114
+ return /* @__PURE__ */ e(
78
115
  o.Title,
79
116
  {
80
117
  "data-slot": "dialog-title",
81
- className: i("text-lg leading-none font-semibold", t),
82
- ...e
118
+ className: u("text-lg leading-none font-medium", t),
119
+ ...i
83
120
  }
84
121
  );
85
122
  }
86
123
  export {
87
- x as Dialog,
88
- h as DialogContent,
89
- g as DialogOverlay,
90
- d as DialogPortal,
91
- v as DialogTitle,
92
- b as DialogTrigger
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 };
@@ -1,56 +1,90 @@
1
1
  "use client";
2
- import { jsx as i, jsxs as n } from "react/jsx-runtime";
3
- import { Tooltip as o } from "radix-ui";
4
- import { cn as d } from "../../lib/cn.js";
5
- function f({
6
- delayDuration: t = 0,
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__ */ i(
10
- o.Provider,
13
+ return /* @__PURE__ */ t(
14
+ i.Provider,
11
15
  {
12
16
  "data-slot": "tooltip-provider",
13
- delayDuration: t,
17
+ delayDuration: o,
14
18
  ...r
15
19
  }
16
20
  );
17
21
  }
18
- function m({
19
- ...t
22
+ function j({
23
+ open: o,
24
+ defaultOpen: r = !1,
25
+ onOpenChange: e,
26
+ children: l,
27
+ ...d
20
28
  }) {
21
- return /* @__PURE__ */ i(o.Root, { "data-slot": "tooltip", ...t });
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 c({
24
- ...t
43
+ function w({
44
+ ...o
25
45
  }) {
26
- return /* @__PURE__ */ i(o.Trigger, { "data-slot": "tooltip-trigger", ...t });
46
+ return /* @__PURE__ */ t(i.Trigger, { "data-slot": "tooltip-trigger", ...o });
27
47
  }
28
- function u({
29
- className: t,
48
+ function y({
49
+ className: o,
30
50
  sideOffset: r = 0,
31
51
  children: e,
32
- ...a
52
+ forceMount: l,
53
+ asChild: d,
54
+ ...n
33
55
  }) {
34
- return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ n(
35
- o.Content,
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
- className: d(
40
- "z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
41
- t
42
- ),
43
- ...a,
44
- children: [
45
- e,
46
- /* @__PURE__ */ i(o.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
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
- m as Tooltip,
53
- u as TooltipContent,
54
- f as TooltipProvider,
55
- c as TooltipTrigger
86
+ j as Tooltip,
87
+ y as TooltipContent,
88
+ _ as TooltipProvider,
89
+ w as TooltipTrigger
56
90
  };