@actioneer/ads 0.5.3 → 0.5.5
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/components/accordion.js +15 -15
- package/components/agent-icon.d.ts +64 -0
- package/components/agent-icon.js +251 -0
- package/components/ai-elements/agent-trace.d.ts +8 -1
- package/components/ai-elements/agent-trace.js +164 -129
- package/components/ai-elements/chain-of-thought-icon.d.ts +42 -0
- package/components/ai-elements/chain-of-thought-icon.js +283 -0
- package/components/ai-elements/chain-of-thought.js +7 -7
- package/components/ai-elements/chart.js +38 -35
- package/components/ai-elements/index.d.ts +1 -0
- package/components/ai-elements/inline-citation.js +40 -40
- package/components/ai-elements/message.js +5 -5
- package/components/ai-elements/queue.js +1 -1
- package/components/ai-elements/research-activity.d.ts +2 -0
- package/components/ai-elements/research-activity.js +79 -81
- package/components/ai-elements/task-progress.js +2 -2
- package/components/ai-elements/tool.d.ts +4 -2
- package/components/ai-elements/tool.js +74 -54
- package/components/ai-elements/transcript.js +1 -1
- package/components/alert.js +1 -1
- package/components/answer.d.ts +2643 -311
- package/components/answer.js +1836 -425
- package/components/assistant-ui/answer-tool-ui.js +23 -28
- package/components/assistant-ui/chain-of-thought.d.ts +7 -2
- package/components/assistant-ui/composer-harness.js +20 -16
- package/components/assistant-ui/reasoning.js +35 -31
- package/components/assistant-ui/tool-fallback.js +125 -122
- package/components/assistant-ui/tool-group.d.ts +3 -1
- package/components/assistant-ui/tool-group.js +48 -43
- package/components/audio-waveform.js +14 -14
- package/components/autocomplete.js +52 -48
- package/components/avatar.js +58 -44
- package/components/badge.js +3 -3
- package/components/brand-texture.js +1 -1
- package/components/breadcrumbs.d.ts +27 -1
- package/components/breadcrumbs.js +94 -42
- package/components/button.js +15 -15
- package/components/carousel.js +10 -10
- package/components/chart.d.ts +14 -0
- package/components/chart.js +747 -614
- package/components/chip.js +3 -3
- package/components/code-block.d.ts +39 -17
- package/components/code-block.js +153 -104
- package/components/command-palette.js +27 -25
- package/components/connector-card.js +2 -2
- package/components/dropdown.js +65 -61
- package/components/empty-state.js +15 -15
- package/components/field.js +23 -23
- package/components/index.d.ts +5 -0
- package/components/index.js +523 -470
- package/components/infinite-canvas.js +60 -60
- package/components/kbd.js +6 -6
- package/components/link.js +6 -6
- package/components/modal.js +22 -20
- package/components/page-header.js +1 -1
- package/components/pagination.js +22 -22
- package/components/pixel-blast-svg.js +1 -1
- package/components/pixel-icon.d.ts +31 -0
- package/components/pixel-icon.js +733 -0
- package/components/popover.js +46 -42
- package/components/ripple.d.ts +29 -0
- package/components/ripple.js +17 -0
- package/components/segmented.js +24 -23
- package/components/select.js +71 -67
- package/components/selection-action-bar.js +22 -22
- package/components/sidebar.d.ts +11 -3
- package/components/sidebar.js +161 -148
- package/components/stepper.d.ts +2 -0
- package/components/stepper.js +80 -43
- package/components/table.d.ts +7 -0
- package/components/table.js +223 -155
- package/components/tabs.d.ts +3 -1
- package/components/tabs.js +165 -144
- package/components/textarea.js +10 -8
- package/components/toast.js +48 -46
- package/components/tooltip.js +61 -59
- package/components/tree.js +44 -41
- package/components/typography.d.ts +1 -1
- package/components/typography.js +25 -25
- package/components/viz-charts.d.ts +62 -0
- package/components/viz-charts.js +408 -0
- package/fonts/aribau-grotesk-500.otf +0 -0
- package/fonts/aribau-grotesk-600.woff2 +0 -0
- package/fonts.css +6 -4
- package/lib/icons.d.ts +411 -402
- package/lib/icons.js +109 -107
- package/lib/viz-format.d.ts +25 -0
- package/lib/viz-format.js +40 -0
- package/llms.txt +111 -8
- package/manifest.json +1096 -58
- package/package.json +5 -5
- package/styles.css +226 -96
- package/theme.css +220 -92
- package/fonts/aribau-grotesk-400.otf +0 -0
- package/fonts/aribau-grotesk-700.otf +0 -0
package/components/stepper.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import * as v from "react";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as y } from "class-variance-authority";
|
|
5
5
|
import { cn as s } from "../lib/cn.js";
|
|
6
|
-
import { Check as
|
|
7
|
-
const
|
|
6
|
+
import { Check as p, Close as g } from "../lib/icons.js";
|
|
7
|
+
const b = y(
|
|
8
8
|
s(
|
|
9
|
-
"flex shrink-0 items-center justify-center rounded-full font-
|
|
9
|
+
"flex shrink-0 items-center justify-center rounded-full font-normal tabular-nums",
|
|
10
10
|
"transition-colors duration-(--duration-fast) ease-out motion-reduce:transition-none"
|
|
11
11
|
),
|
|
12
12
|
{
|
|
@@ -18,59 +18,96 @@ const p = k(
|
|
|
18
18
|
error: "bg-danger text-danger-foreground"
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
|
-
sm: "size-5 text-
|
|
21
|
+
sm: "size-5 text-xs [&>svg]:size-3",
|
|
22
22
|
md: "size-6 text-xs [&>svg]:size-3.5"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
defaultVariants: { status: "upcoming", size: "md" }
|
|
26
26
|
}
|
|
27
|
-
),
|
|
27
|
+
), j = v.forwardRef(
|
|
28
28
|
({
|
|
29
|
-
className:
|
|
30
|
-
steps:
|
|
31
|
-
activeIndex:
|
|
32
|
-
size:
|
|
29
|
+
className: x,
|
|
30
|
+
steps: u,
|
|
31
|
+
activeIndex: n,
|
|
32
|
+
size: i = "md",
|
|
33
33
|
onSelect: o,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
labelPosition: h = "below",
|
|
35
|
+
...m
|
|
36
|
+
}, N) => /* @__PURE__ */ e(
|
|
36
37
|
"ol",
|
|
37
38
|
{
|
|
38
|
-
ref:
|
|
39
|
+
ref: N,
|
|
39
40
|
"data-slot": "stepper",
|
|
40
|
-
"aria-label":
|
|
41
|
-
className: s("flex w-full flex-row items-start",
|
|
42
|
-
...
|
|
43
|
-
children:
|
|
44
|
-
const r =
|
|
45
|
-
|
|
41
|
+
"aria-label": m["aria-label"] ?? "Progress",
|
|
42
|
+
className: s("flex w-full flex-row items-start", x),
|
|
43
|
+
...m,
|
|
44
|
+
children: u.map((a, t) => {
|
|
45
|
+
const r = a.isError ? "error" : t < n ? "complete" : t === n ? "current" : "upcoming", l = t === u.length - 1, w = !!o && t < n, d = t < n && !a.isError, k = /* @__PURE__ */ e("span", { "aria-hidden": !0, className: b({ status: r, size: i }), children: r === "complete" ? /* @__PURE__ */ e(p, {}) : r === "error" ? /* @__PURE__ */ e(g, {}) : t + 1 }), f = w ? /* @__PURE__ */ e(
|
|
46
|
+
"button",
|
|
47
|
+
{
|
|
48
|
+
type: "button",
|
|
49
|
+
onClick: () => o == null ? void 0 : o(t),
|
|
50
|
+
"aria-label": `Go to step ${t + 1}`,
|
|
51
|
+
className: s(
|
|
52
|
+
b({ status: r, size: i }),
|
|
53
|
+
"cursor-pointer outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
54
|
+
"active:scale-(--scale-press)"
|
|
55
|
+
),
|
|
56
|
+
children: r === "complete" ? /* @__PURE__ */ e(p, {}) : r === "error" ? /* @__PURE__ */ e(g, {}) : t + 1
|
|
57
|
+
}
|
|
58
|
+
) : k;
|
|
59
|
+
return h === "inline" ? /* @__PURE__ */ c(
|
|
60
|
+
"li",
|
|
61
|
+
{
|
|
62
|
+
"data-status": r,
|
|
63
|
+
"aria-current": r === "current" ? "step" : void 0,
|
|
64
|
+
className: s(
|
|
65
|
+
"flex min-w-0 items-center gap-2",
|
|
66
|
+
l ? "shrink-0" : "flex-1"
|
|
67
|
+
),
|
|
68
|
+
children: [
|
|
69
|
+
f,
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"span",
|
|
72
|
+
{
|
|
73
|
+
className: s(
|
|
74
|
+
"truncate whitespace-nowrap",
|
|
75
|
+
i === "sm" ? "text-xs" : "text-base",
|
|
76
|
+
r === "upcoming" ? "text-tertiary" : "text-foreground",
|
|
77
|
+
r === "error" && "text-danger"
|
|
78
|
+
),
|
|
79
|
+
children: a.label
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
!l && /* @__PURE__ */ e(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
"aria-hidden": !0,
|
|
86
|
+
className: s(
|
|
87
|
+
"h-px min-w-4 flex-1 shrink-0 bg-border",
|
|
88
|
+
d && "bg-success"
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
a.id
|
|
95
|
+
) : /* @__PURE__ */ c(
|
|
46
96
|
"li",
|
|
47
97
|
{
|
|
48
98
|
"data-status": r,
|
|
49
99
|
"aria-current": r === "current" ? "step" : void 0,
|
|
50
100
|
className: "flex min-w-0 flex-1 flex-col gap-2",
|
|
51
101
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
type: "button",
|
|
57
|
-
onClick: () => o == null ? void 0 : o(t),
|
|
58
|
-
"aria-label": `Go to step ${t + 1}`,
|
|
59
|
-
className: s(
|
|
60
|
-
p({ status: r, size: n }),
|
|
61
|
-
"cursor-pointer outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
62
|
-
"active:scale-(--scale-press)"
|
|
63
|
-
),
|
|
64
|
-
children: r === "complete" ? /* @__PURE__ */ e(u, {}) : r === "error" ? /* @__PURE__ */ e(f, {}) : t + 1
|
|
65
|
-
}
|
|
66
|
-
) : N,
|
|
67
|
-
!b && /* @__PURE__ */ e(
|
|
102
|
+
/* @__PURE__ */ c("div", { className: "flex w-full flex-row items-center gap-2", children: [
|
|
103
|
+
f,
|
|
104
|
+
!l && /* @__PURE__ */ e(
|
|
68
105
|
"span",
|
|
69
106
|
{
|
|
70
107
|
"aria-hidden": !0,
|
|
71
108
|
className: s(
|
|
72
109
|
"h-px flex-1 shrink-0 bg-border",
|
|
73
|
-
|
|
110
|
+
d && "bg-success"
|
|
74
111
|
)
|
|
75
112
|
}
|
|
76
113
|
)
|
|
@@ -80,23 +117,23 @@ const p = k(
|
|
|
80
117
|
{
|
|
81
118
|
className: s(
|
|
82
119
|
"truncate",
|
|
83
|
-
|
|
120
|
+
i === "sm" ? "text-xs" : "text-base",
|
|
84
121
|
r === "upcoming" ? "text-tertiary" : "text-foreground",
|
|
85
122
|
r === "error" && "text-danger"
|
|
86
123
|
),
|
|
87
|
-
children:
|
|
124
|
+
children: a.label
|
|
88
125
|
}
|
|
89
126
|
) })
|
|
90
127
|
]
|
|
91
128
|
},
|
|
92
|
-
|
|
129
|
+
a.id
|
|
93
130
|
);
|
|
94
131
|
})
|
|
95
132
|
}
|
|
96
133
|
)
|
|
97
134
|
);
|
|
98
|
-
|
|
135
|
+
j.displayName = "Stepper";
|
|
99
136
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
137
|
+
j as Stepper,
|
|
138
|
+
b as stepperMarkerVariants
|
|
102
139
|
};
|
package/components/table.d.ts
CHANGED
|
@@ -35,6 +35,13 @@ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElem
|
|
|
35
35
|
actionColumnWidth?: string;
|
|
36
36
|
sortDescriptor?: SortDescriptor;
|
|
37
37
|
onSortChange?: (descriptor: SortDescriptor) => void;
|
|
38
|
+
/**
|
|
39
|
+
* A purely display table: no row hover/focus wash, no selection. Set this
|
|
40
|
+
* when rows have nothing to click — a plain data grid — so hovering never
|
|
41
|
+
* implies an action that doesn't exist (principle 2). Leave unset for any
|
|
42
|
+
* table with row selection, sorting, or a click-through action.
|
|
43
|
+
*/
|
|
44
|
+
isStatic?: boolean;
|
|
38
45
|
}
|
|
39
46
|
/**
|
|
40
47
|
* Styled wrapper around a semantic `<table>` with horizontal overflow.
|