@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.
Files changed (116) hide show
  1. package/components/ai-elements/agent-trace.d.ts +2 -2
  2. package/components/ai-elements/agent-trace.js +163 -104
  3. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  4. package/components/ai-elements/chain-of-thought.js +1 -1
  5. package/components/ai-elements/index.d.ts +0 -5
  6. package/components/ai-elements/inline-citation.js +1 -1
  7. package/components/alert.d.ts +6 -6
  8. package/components/alert.js +89 -53
  9. package/components/answer-sources.d.ts +2 -6
  10. package/components/answer-sources.js +58 -60
  11. package/components/answer.d.ts +5 -0
  12. package/components/answer.js +311 -271
  13. package/components/assistant-ui/composer-harness.js +11 -14
  14. package/components/assistant-ui/composer.d.ts +3 -1
  15. package/components/assistant-ui/composer.js +148 -144
  16. package/components/assistant-ui/index.d.ts +0 -3
  17. package/components/assistant-ui/thread-context.d.ts +3 -1
  18. package/components/assistant-ui/thread.js +50 -42
  19. package/components/avatar.js +42 -42
  20. package/components/badge.d.ts +5 -6
  21. package/components/badge.js +13 -76
  22. package/components/body-page-header.d.ts +15 -0
  23. package/components/body-page-header.js +24 -0
  24. package/components/brand-loader.d.ts +0 -3
  25. package/components/brand-loader.js +10 -32
  26. package/components/breadcrumbs.d.ts +1 -8
  27. package/components/breadcrumbs.js +65 -78
  28. package/components/button.d.ts +1 -1
  29. package/components/button.js +55 -49
  30. package/components/card.js +19 -18
  31. package/components/chart.js +526 -503
  32. package/components/chip.d.ts +13 -1
  33. package/components/chip.js +93 -80
  34. package/components/collection-header.d.ts +17 -0
  35. package/components/collection-header.js +31 -0
  36. package/components/connector-card.d.ts +6 -6
  37. package/components/connector-card.js +31 -32
  38. package/components/date-range-picker.d.ts +26 -0
  39. package/components/date-range-picker.js +223 -0
  40. package/components/drawer.d.ts +19 -3
  41. package/components/drawer.js +143 -116
  42. package/components/dropdown.d.ts +1 -2
  43. package/components/dropdown.js +88 -89
  44. package/components/field.js +39 -34
  45. package/components/file-dropzone.js +1 -1
  46. package/components/index.d.ts +5 -4
  47. package/components/index.js +501 -546
  48. package/components/infinite-canvas.js +24 -24
  49. package/components/input-field.d.ts +18 -3
  50. package/components/input-field.js +88 -72
  51. package/components/input.js +16 -15
  52. package/components/modal.d.ts +31 -3
  53. package/components/modal.js +243 -169
  54. package/components/number-field.js +45 -42
  55. package/components/page-body.d.ts +12 -0
  56. package/components/page-body.js +18 -0
  57. package/components/pagination.js +36 -36
  58. package/components/panel.js +31 -28
  59. package/components/select.d.ts +21 -0
  60. package/components/select.js +189 -148
  61. package/components/setting-row.d.ts +6 -5
  62. package/components/setting-row.js +33 -32
  63. package/components/sidebar.d.ts +2 -0
  64. package/components/sidebar.js +165 -155
  65. package/components/skeleton.js +8 -7
  66. package/components/slider.js +1 -1
  67. package/components/surface-loader.d.ts +11 -0
  68. package/components/surface-loader.js +35 -0
  69. package/components/table.d.ts +16 -10
  70. package/components/table.js +426 -410
  71. package/components/tabs.d.ts +2 -0
  72. package/components/tabs.js +159 -294
  73. package/components/textarea.js +9 -9
  74. package/components/toast.d.ts +1 -1
  75. package/components/toast.js +181 -118
  76. package/components/tree.d.ts +5 -1
  77. package/components/tree.js +96 -63
  78. package/components/typography.d.ts +4 -4
  79. package/components/typography.js +13 -13
  80. package/components/ui/button.d.ts +1 -1
  81. package/components/ui/dialog.js +33 -33
  82. package/components/viz-charts.js +186 -183
  83. package/demo/components/add-to-artifact.js +8 -10
  84. package/fonts.css +2 -0
  85. package/lib/cn.js +11 -4
  86. package/lib/icons.d.ts +4 -0
  87. package/lib/icons.js +107 -106
  88. package/lib/interactive.d.ts +1 -1
  89. package/llms.txt +115 -152
  90. package/manifest.json +13730 -1084
  91. package/package.json +4 -2
  92. package/styles.css +365 -225
  93. package/theme.css +315 -176
  94. package/components/agent-icon.d.ts +0 -76
  95. package/components/agent-icon.js +0 -265
  96. package/components/ai-elements/queue.d.ts +0 -60
  97. package/components/ai-elements/queue.js +0 -193
  98. package/components/ai-elements/speech-input.d.ts +0 -16
  99. package/components/ai-elements/speech-input.js +0 -151
  100. package/components/ai-elements/task-progress.d.ts +0 -41
  101. package/components/ai-elements/task-progress.js +0 -224
  102. package/components/ai-elements/task.d.ts +0 -39
  103. package/components/ai-elements/task.js +0 -105
  104. package/components/ai-elements/voice.d.ts +0 -90
  105. package/components/ai-elements/voice.js +0 -496
  106. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  107. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  108. package/components/assistant-ui/suggestions.d.ts +0 -7
  109. package/components/assistant-ui/suggestions.js +0 -19
  110. package/components/assistant-ui/voice.d.ts +0 -18
  111. package/components/link.d.ts +0 -14
  112. package/components/link.js +0 -72
  113. package/components/navbar.d.ts +0 -15
  114. package/components/navbar.js +0 -68
  115. package/components/pixel-icon.d.ts +0 -37
  116. package/components/pixel-icon.js +0 -859
@@ -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-lg font-medium" },
9
- 4: { tag: "h4", className: "text-base font-medium" }
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-xs",
19
- sm: "text-xs",
20
- md: "text-base",
21
- lg: "text-lg"
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 g = r, f = t ? n[t] : m ? n.tertiary : n.primary;
32
+ const f = r, g = t ? n[t] : m ? n.tertiary : n.primary;
33
33
  return /* @__PURE__ */ i(
34
- g,
34
+ f,
35
35
  {
36
36
  ref: x,
37
37
  className: c(
38
38
  y[a],
39
39
  s && N[s],
40
- f,
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 b = d.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ i(
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-xs",
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
- b.displayName = "Code";
61
+ C.displayName = "Code";
62
62
  export {
63
- b as Code,
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?: "default" | "outline" | "link" | "secondary" | "ghost" | "destructive" | null | undefined;
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> & {
@@ -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 b } from "../../lib/icons.js";
4
+ import { Close as _ } from "../../lib/icons.js";
5
5
  import { Dialog as o } from "radix-ui";
6
- import { MotionConfig as p, AnimatePresence as h, motion as v } from "motion/react";
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 C, backdropVariants as M } from "../../lib/motion.js";
10
- const g = s.createContext(!1);
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: a,
16
- ...r
15
+ children: r,
16
+ ...a
17
17
  }) {
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(
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: (m) => {
25
- l || x(m), n == null || n(m);
24
+ onOpenChange: (g) => {
25
+ l || h(g), n == null || n(g);
26
26
  },
27
- ...r,
28
- children: a
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 D({
37
+ function M({
38
38
  ...t
39
39
  }) {
40
40
  return /* @__PURE__ */ e(o.Portal, { "data-slot": "dialog-portal", ...t });
41
41
  }
42
- function y({
42
+ function D({
43
43
  className: t,
44
44
  forceMount: i,
45
45
  asChild: n,
46
- ...a
46
+ ...r
47
47
  }) {
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,
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: M,
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: a,
66
- asChild: r,
65
+ forceMount: r,
66
+ asChild: a,
67
67
  ...l
68
68
  }) {
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(
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
- v.div,
80
+ p.div,
81
81
  {
82
- variants: C,
82
+ variants: b,
83
83
  initial: "hidden",
84
84
  animate: "visible",
85
85
  exit: "hidden",
86
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",
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-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",
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(b, {}),
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-lg leading-none font-medium", t),
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
- y as DialogOverlay,
127
- D as DialogPortal,
126
+ D as DialogOverlay,
127
+ M as DialogPortal,
128
128
  A as DialogTitle,
129
129
  R as DialogTrigger
130
130
  };