@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.
Files changed (112) 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 +15 -20
  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 +0 -7
  27. package/components/breadcrumbs.js +54 -71
  28. package/components/button.d.ts +1 -1
  29. package/components/button.js +55 -49
  30. package/components/chart.js +298 -296
  31. package/components/chip.d.ts +13 -1
  32. package/components/chip.js +93 -80
  33. package/components/collection-header.d.ts +17 -0
  34. package/components/collection-header.js +31 -0
  35. package/components/connector-card.d.ts +6 -6
  36. package/components/connector-card.js +31 -32
  37. package/components/date-range-picker.d.ts +2 -1
  38. package/components/date-range-picker.js +158 -122
  39. package/components/drawer.d.ts +19 -3
  40. package/components/drawer.js +109 -100
  41. package/components/dropdown.d.ts +1 -2
  42. package/components/dropdown.js +88 -89
  43. package/components/field.js +39 -34
  44. package/components/file-dropzone.js +1 -1
  45. package/components/index.d.ts +4 -4
  46. package/components/index.js +499 -546
  47. package/components/infinite-canvas.js +24 -24
  48. package/components/input-field.d.ts +18 -3
  49. package/components/input-field.js +88 -72
  50. package/components/input.js +16 -15
  51. package/components/modal.d.ts +31 -3
  52. package/components/modal.js +243 -169
  53. package/components/number-field.js +45 -42
  54. package/components/page-body.d.ts +12 -0
  55. package/components/page-body.js +18 -0
  56. package/components/pagination.js +36 -36
  57. package/components/select.d.ts +21 -0
  58. package/components/select.js +189 -148
  59. package/components/setting-row.d.ts +6 -5
  60. package/components/setting-row.js +33 -32
  61. package/components/sidebar.d.ts +2 -0
  62. package/components/sidebar.js +165 -155
  63. package/components/skeleton.js +8 -7
  64. package/components/slider.js +1 -1
  65. package/components/surface-loader.d.ts +11 -0
  66. package/components/surface-loader.js +35 -0
  67. package/components/table.d.ts +16 -10
  68. package/components/table.js +426 -410
  69. package/components/tabs.d.ts +2 -0
  70. package/components/tabs.js +159 -294
  71. package/components/textarea.js +9 -9
  72. package/components/toast.d.ts +1 -1
  73. package/components/toast.js +181 -118
  74. package/components/tree.d.ts +5 -1
  75. package/components/tree.js +54 -49
  76. package/components/typography.d.ts +4 -4
  77. package/components/typography.js +13 -13
  78. package/components/ui/button.d.ts +1 -1
  79. package/components/ui/dialog.js +33 -33
  80. package/demo/components/add-to-artifact.js +6 -10
  81. package/lib/cn.js +11 -4
  82. package/lib/icons.d.ts +4 -0
  83. package/lib/icons.js +107 -106
  84. package/lib/interactive.d.ts +1 -1
  85. package/llms.txt +95 -152
  86. package/manifest.json +1628 -2729
  87. package/package.json +1 -2
  88. package/styles.css +347 -223
  89. package/theme.css +303 -177
  90. package/components/agent-icon.d.ts +0 -76
  91. package/components/agent-icon.js +0 -265
  92. package/components/ai-elements/queue.d.ts +0 -60
  93. package/components/ai-elements/queue.js +0 -193
  94. package/components/ai-elements/speech-input.d.ts +0 -16
  95. package/components/ai-elements/speech-input.js +0 -151
  96. package/components/ai-elements/task-progress.d.ts +0 -41
  97. package/components/ai-elements/task-progress.js +0 -224
  98. package/components/ai-elements/task.d.ts +0 -39
  99. package/components/ai-elements/task.js +0 -105
  100. package/components/ai-elements/voice.d.ts +0 -90
  101. package/components/ai-elements/voice.js +0 -496
  102. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  103. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  104. package/components/assistant-ui/suggestions.d.ts +0 -7
  105. package/components/assistant-ui/suggestions.js +0 -19
  106. package/components/assistant-ui/voice.d.ts +0 -18
  107. package/components/link.d.ts +0 -14
  108. package/components/link.js +0 -72
  109. package/components/navbar.d.ts +0 -15
  110. package/components/navbar.js +0 -68
  111. package/components/pixel-icon.d.ts +0 -37
  112. package/components/pixel-icon.js +0 -859
@@ -1,72 +0,0 @@
1
- "use client";
2
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
3
- import * as u from "react";
4
- import { ArrowUpRight as t } from "../lib/icons.js";
5
- import { cn as d } from "../lib/cn.js";
6
- const c = {
7
- default: "text-foreground",
8
- muted: "text-muted-foreground",
9
- primary: "text-brand"
10
- }, f = u.forwardRef(
11
- ({ className: n, color: a = "default", isExternal: e = !1, children: i, ...s }, l) => /* @__PURE__ */ r(
12
- "a",
13
- {
14
- ref: l,
15
- target: e ? "_blank" : void 0,
16
- rel: e ? "noopener noreferrer" : void 0,
17
- className: d(
18
- // Links read as links by WEIGHT at rest (bold against body copy);
19
- // the underline is a hover/focus affordance. Underline spec: dotted,
20
- // 12% thickness, 24% offset, skip-ink, auto (current) color.
21
- "group/link inline-flex items-center gap-1 rounded-xs font-medium",
22
- "hover:underline focus-visible:underline decoration-dotted decoration-[0.12em] underline-offset-[0.24em]",
23
- "outline-none focus-visible:ring-3 focus-visible:ring-ring",
24
- c[a],
25
- n
26
- ),
27
- ...s,
28
- children: [
29
- i,
30
- e && // Two arrows stacked in a clipped box, driven by a single group-hover
31
- // CSS var (`--arrow-out`). At rest, arrow A sits centered and arrow B
32
- // is parked bottom-left off the viewport (--arrow-out = 0). On hover,
33
- // --arrow-out = 1: A slides up-right out of the frame, B slides in to
34
- // take its place. The swap reads as the arrow flying toward the
35
- // destination. Space is reserved so the label never shifts.
36
- // (Inline style — Tailwind's arbitrary translate utilities weren't
37
- // being generated by the JIT for these specific values.)
38
- /* @__PURE__ */ r(
39
- "span",
40
- {
41
- "aria-hidden": !0,
42
- className: "relative inline-block size-3.5 overflow-hidden [--arrow-out:0] group-hover/link:[--arrow-out:1] group-focus-visible/link:[--arrow-out:1]",
43
- children: [
44
- /* @__PURE__ */ o(
45
- t,
46
- {
47
- className: "absolute inset-0 size-full transition-transform duration-150 ease-out motion-reduce:transition-none",
48
- style: {
49
- transform: "translate(calc(var(--arrow-out) * 100%), calc(var(--arrow-out) * -100%))"
50
- }
51
- }
52
- ),
53
- /* @__PURE__ */ o(
54
- t,
55
- {
56
- className: "absolute inset-0 size-full transition-transform duration-150 ease-out motion-reduce:transition-none",
57
- style: {
58
- transform: "translate(calc((var(--arrow-out) - 1) * 100%), calc((1 - var(--arrow-out)) * 100%))"
59
- }
60
- }
61
- )
62
- ]
63
- }
64
- )
65
- ]
66
- }
67
- )
68
- );
69
- f.displayName = "Link";
70
- export {
71
- f as Link
72
- };
@@ -1,15 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- export declare const Navbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
4
- export declare const NavbarBrand: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
- declare const navbarContentVariants: (props?: ({
6
- justify?: "end" | "center" | "start" | null | undefined;
7
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
- export interface NavbarContentProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof navbarContentVariants> {
9
- }
10
- export declare const NavbarContent: React.ForwardRefExoticComponent<NavbarContentProps & React.RefAttributes<HTMLDivElement>>;
11
- export interface NavbarItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
12
- isActive?: boolean;
13
- }
14
- export declare const NavbarItem: React.ForwardRefExoticComponent<NavbarItemProps & React.RefAttributes<HTMLAnchorElement>>;
15
- export {};
@@ -1,68 +0,0 @@
1
- "use client";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import * as o from "react";
4
- import { cva as i } from "class-variance-authority";
5
- import { cn as n } from "../lib/cn.js";
6
- const m = o.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ t(
7
- "nav",
8
- {
9
- ref: e,
10
- className: n(
11
- "sticky top-0 z-40 flex h-16 items-center gap-4 px-4",
12
- "bg-background/80 backdrop-blur",
13
- r
14
- ),
15
- ...a
16
- }
17
- ));
18
- m.displayName = "Navbar";
19
- const d = o.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ t(
20
- "div",
21
- {
22
- ref: e,
23
- className: n(
24
- "flex items-center gap-2 font-medium text-foreground",
25
- r
26
- ),
27
- ...a
28
- }
29
- ));
30
- d.displayName = "NavbarBrand";
31
- const c = i("flex items-center gap-1", {
32
- variants: {
33
- justify: {
34
- start: "mr-auto",
35
- center: "mx-auto",
36
- end: "ml-auto"
37
- }
38
- }
39
- }), f = o.forwardRef(({ className: r, justify: a, ...e }, s) => /* @__PURE__ */ t(
40
- "div",
41
- {
42
- ref: s,
43
- className: n(c({ justify: a }), r),
44
- ...e
45
- }
46
- ));
47
- f.displayName = "NavbarContent";
48
- const l = o.forwardRef(({ className: r, isActive: a, ...e }, s) => /* @__PURE__ */ t(
49
- "a",
50
- {
51
- ref: s,
52
- "aria-current": a ? "page" : void 0,
53
- className: n(
54
- "rounded-md px-2 py-1 text-xs transition-colors",
55
- "outline-none focus-visible:ring-3 focus-visible:ring-ring",
56
- a ? "text-foreground" : "text-muted-foreground hover:text-foreground",
57
- r
58
- ),
59
- ...e
60
- }
61
- ));
62
- l.displayName = "NavbarItem";
63
- export {
64
- m as Navbar,
65
- d as NavbarBrand,
66
- f as NavbarContent,
67
- l as NavbarItem
68
- };
@@ -1,37 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * PixelIcon — the "Compounding Field" interactive brand icon.
4
- *
5
- * This is the exact hatched-tile WebGL implementation as authored, ported into
6
- * an ADS component so it's available to BOTH the design system and the product
7
- * (`import { PixelIcon } from "@/components"`). The ONLY change from the source
8
- * is the import above: `ogl` is the installed package, not a CDN URL (the ADS
9
- * is self-contained — no external hosts). Masks, palettes, shaders, and the
10
- * `HatchedTileScene` renderer are verbatim.
11
- *
12
- * Add a new creative icon = add a mask to `MASKS` (+ a palette). One place.
13
- */
14
- declare const MASKS: Record<string, string[]>;
15
- export type PixelIconMask = keyof typeof MASKS;
16
- export interface PixelIconProps extends React.HTMLAttributes<HTMLSpanElement> {
17
- /** Which creative mask to render. Add new ones to MASKS. */
18
- mask?: PixelIconMask | (string & {});
19
- /** Entrance choreography: "sequence" sweeps corner-to-corner, else radial. */
20
- motion?: "sequence" | "radial";
21
- /** Interaction preset 0–5 (3 = local hover-grow + click blast; hero forces 3). */
22
- motionMode?: number;
23
- /** Optional hover/click accent. Defaults to the standard green interaction color. */
24
- interactionColor?: string;
25
- /** Optional 1–10 color ramp. Short ramps repeat to fill the ten tile shades. */
26
- palette?: readonly string[];
27
- /** Whether interaction is limited to filled tiles or spans the whole icon surface. */
28
- interactionArea?: "tiles" | "surface";
29
- /** Larger hero rendering (broader hatch, mode 3). */
30
- hero?: boolean;
31
- }
32
- /**
33
- * The interactive pixel-field brand icon. Interactive on hover/click; size it
34
- * with `size-*` / width+height on `className` (it renders a square canvas).
35
- */
36
- export declare const PixelIcon: React.ForwardRefExoticComponent<PixelIconProps & React.RefAttributes<HTMLSpanElement>>;
37
- export {};