@actioneer/ads 0.6.0 → 0.8.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/DESIGN.md +597 -0
- package/components/ai-elements/agent-trace.d.ts +2 -2
- package/components/ai-elements/agent-trace.js +164 -105
- 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/action-bar.js +1 -1
- package/components/assistant-ui/attachment.js +11 -11
- package/components/assistant-ui/badge.js +18 -18
- package/components/assistant-ui/composer-harness.js +15 -20
- package/components/assistant-ui/composer-trigger-popover.js +9 -9
- package/components/assistant-ui/composer.d.ts +3 -1
- package/components/assistant-ui/composer.js +148 -144
- package/components/assistant-ui/image.js +61 -61
- package/components/assistant-ui/index.d.ts +0 -3
- package/components/assistant-ui/message-timing.js +1 -1
- package/components/assistant-ui/selection-toolbar.js +7 -7
- 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 +0 -7
- package/components/breadcrumbs.js +54 -71
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/chart.js +298 -296
- 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 +2 -1
- package/components/date-range-picker.js +158 -122
- package/components/divider.js +25 -25
- package/components/drawer.d.ts +6 -2
- package/components/drawer.js +61 -58
- package/components/dropdown.d.ts +1 -2
- package/components/dropdown.js +88 -89
- package/components/field.js +41 -36
- package/components/file-dropzone.js +1 -1
- package/components/index.d.ts +4 -4
- package/components/index.js +501 -549
- 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 +32 -29
- package/components/modal.d.ts +31 -3
- package/components/modal.js +244 -170
- 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/pixel-blast-svg.js +71 -73
- 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 +151 -141
- 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 +427 -412
- package/components/tabs.d.ts +2 -0
- package/components/tabs.js +160 -295
- 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 +54 -49
- package/components/typography.d.ts +4 -4
- package/components/typography.js +13 -13
- package/components/ui/button.d.ts +1 -1
- package/components/ui/button.js +4 -4
- package/components/ui/dialog.js +25 -25
- package/demo/components/add-to-artifact.js +6 -10
- package/lib/cn.js +11 -4
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +103 -102
- package/lib/interactive.d.ts +1 -1
- package/llms.txt +132 -188
- package/manifest.json +1719 -2831
- package/package.json +2 -2
- package/styles.css +362 -233
- package/theme.css +312 -177
- 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/link.js
DELETED
|
@@ -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
|
-
};
|
package/components/navbar.d.ts
DELETED
|
@@ -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 {};
|
package/components/navbar.js
DELETED
|
@@ -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 {};
|