@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/lib/icons.js
CHANGED
|
@@ -1,111 +1,113 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
function o(
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
3
|
+
import * as C from "react";
|
|
4
|
+
import { ArrowUpRight as g, Code as p, Check as u, Copy as $, FileText as f, X as k, UploadSimple as w, EyeSlash as d, Eye as S, Minus as P, Plus as A, CaretDown as L, MagnifyingGlass as T, Info as m, WarningCircle as M, Warning as y, CheckCircle as U, CaretUp as O, ArrowsDownUp as B, Clock as b, Database as D, CaretLeft as R, CaretRight as I, CornersOut as F, Magnet as x, Tray as H, ArrowLeft as v, DotsThree as G, User as W, XCircle as E, CircleDashed as z, ArrowsClockwise as V, Paperclip as N, Quotes as Q, At as q, Lightning as X, Table as j, Sparkle as J, File as K, DownloadSimple as Y, Image as s, BracketsCurly as Z, MusicNotes as _, VideoCamera as oo, ImageBroken as eo, CircleNotch as to, Pulse as so, ChatCircle as no, ArrowDown as ao, ArrowRight as ro, ArrowUp as co, Scroll as io, Stack as lo, BookOpen as ho, Brain as Co, CalendarBlank as go, Phone as po, ListChecks as uo, Cube as $o, ArrowSquareOut as fo, Folder as ko, FolderOpen as wo, Gauge as So, GitBranch as Po, Hash as Ao, ClockCounterClockwise as Lo, House as To, SquaresFour as mo, Leaf as Mo, Lightbulb as yo, Link as Uo, SignOut as Oo, Envelope as Bo, Microphone as bo, MicrophoneSlash as Do, DotsThreeVertical as Ro, Palette as Io, SidebarSimple as Fo, Pause as xo, PencilSimple as Ho, PhoneSlash as vo, ChartPie as Go, Play as Wo, Plug as Eo, Rocket as zo, Gear as Vo, Shapes as No, ShareNetwork as Qo, Star as qo, Stop as Xo, ArrowsLeftRight as jo, Target as Jo, Binoculars as Ko, TextT as Yo, ToggleRight as Zo, Trash as _o, Users as oe, Wrench as ee } from "@phosphor-icons/react";
|
|
5
|
+
function o(n, a) {
|
|
6
|
+
const e = C.forwardRef(function({ strokeWidth: t, weight: r, ...c }, i) {
|
|
7
|
+
const l = r ?? (t != null && t >= 2 ? "bold" : "regular");
|
|
8
|
+
return /* @__PURE__ */ h(n, { ref: i, size: "1em", weight: l, ...c });
|
|
9
|
+
});
|
|
10
|
+
return e.displayName = a, e;
|
|
10
11
|
}
|
|
11
|
-
const
|
|
12
|
+
const ae = o(ao, "ArrowDown"), re = o(v, "ArrowLeft"), ce = o(ro, "ArrowRight"), ie = o(co, "ArrowUp"), le = o(g, "ArrowUpRight"), he = o(L, "ChevronDown"), Ce = o(R, "ChevronLeft"), ge = o(I, "ChevronRight"), pe = o(O, "ChevronUp"), ue = o(B, "SortIcon"), $e = o(jo, "SwapHorizontal"), fe = o(fo, "ExternalLink"), ke = o(Fo, "PanelLeft"), we = o(q, "At"), de = o(po, "Call"), Se = o(k, "Close"), Pe = o(E, "CloseCircle"), Ae = o($, "Copy"), Le = o(Y, "Download"), Te = o(Oo, "LogOut"), me = o(bo, "Mic"), Me = o(Do, "MicOff"), ye = o(vo, "PhoneOff"), Ue = o(Ho, "Pencil"), Oe = o(Q, "Quote"), Be = o(S, "Eye"), be = o(d, "EyeOff"), De = o(Ao, "Hash"), Re = o(s, "ImageUpload"), Ie = o(w, "Upload"), Fe = o(Yo, "TextFont"), xe = o(Zo, "ToggleOn"), He = o(go, "Calendar"), ve = o(b, "Clock"), Ge = o(p, "Code"), We = o(Xo, "Stop"), Ee = o(x, "Magnet"), ze = o(F, "Maximize"), Ve = o(P, "Minus"), Ne = o(G, "MoreHorizontal"), Qe = o(Ro, "MoreVertical"), qe = o(Uo, "Link"), Xe = o(A, "Plus"), je = o(V, "Refresh"), Je = o(io, "AuditTrail"), Ke = o(T, "Search"), Ye = o(Qo, "Share"), Ze = o(_o, "Trash"), _e = o(u, "Check"), ot = o(to, "Loader"), et = o(U, "CheckCircle"), tt = o(m, "Info"), st = o(y, "Warning"), nt = o(M, "WarningCircle"), at = o(so, "Activity"), rt = o(no, "AgentChat"), ct = o(X, "Bolt"), it = o(ho, "BookOpen"), lt = o(Co, "Brain"), ht = o(uo, "CheckList"), Ct = o($o, "Component"), gt = o(D, "Database"), pt = o(j, "Table"), ut = o(K, "File"), $t = o(f, "FileText"), ft = o(ko, "Folder"), kt = o(s, "Image"), wt = o(eo, "ImageOff"), dt = o(_, "Music"), St = o(oo, "Video"), Pt = o(Z, "Braces"), At = o(wo, "FolderOpen"), Lt = o(So, "Gauge"), Tt = o(Po, "GitBranch"), mt = o(Lo, "HistoryClock"), Mt = o(To, "Home"), yt = o(lo, "Blocks"), Ut = o(H, "Inbox"), Ot = o(yo, "Lightbulb"), Bt = o(Mo, "Leaf"), bt = o(mo, "LayoutGrid"), Dt = o(Bo, "Mail"), Rt = o(Io, "Palette"), It = o(Go, "PieChart"), Ft = o(Eo, "Plug"), xt = o(zo, "Rocket"), Ht = o(Vo, "Settings"), vt = o(No, "Shapes"), Gt = o(J, "Sparkles"), Wt = o(qo, "Star"), Et = o(Ko, "Telescope"), zt = o(Jo, "Target"), Vt = o(W, "User"), Nt = o(oe, "Users"), Qt = o(Wo, "Play"), qt = o(xo, "Pause"), Xt = o(N, "Paperclip"), jt = o(z, "CircleDashed"), Jt = o(ee, "Wrench");
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
14
|
+
at as Activity,
|
|
15
|
+
rt as AgentChat,
|
|
16
|
+
ae as ArrowDown,
|
|
17
|
+
re as ArrowLeft,
|
|
18
|
+
ce as ArrowRight,
|
|
19
|
+
ie as ArrowUp,
|
|
20
|
+
le as ArrowUpRight,
|
|
21
|
+
we as At,
|
|
22
|
+
Je as AuditTrail,
|
|
23
|
+
yt as Blocks,
|
|
24
|
+
ct as Bolt,
|
|
25
|
+
it as BookOpen,
|
|
26
|
+
Pt as Braces,
|
|
27
|
+
lt as Brain,
|
|
28
|
+
He as Calendar,
|
|
29
|
+
de as Call,
|
|
30
|
+
_e as Check,
|
|
31
|
+
et as CheckCircle,
|
|
32
|
+
ht as CheckList,
|
|
33
|
+
he as ChevronDown,
|
|
34
|
+
Ce as ChevronLeft,
|
|
35
|
+
ge as ChevronRight,
|
|
36
|
+
pe as ChevronUp,
|
|
37
|
+
jt as CircleDashed,
|
|
38
|
+
ve as Clock,
|
|
39
|
+
Se as Close,
|
|
40
|
+
Pe as CloseCircle,
|
|
41
|
+
Ge as Code,
|
|
42
|
+
Ct as Component,
|
|
43
|
+
Ae as Copy,
|
|
44
|
+
gt as Database,
|
|
45
|
+
Le as Download,
|
|
46
|
+
fe as ExternalLink,
|
|
47
|
+
Be as Eye,
|
|
48
|
+
be as EyeOff,
|
|
49
|
+
ut as File,
|
|
50
|
+
$t as FileText,
|
|
51
|
+
ft as Folder,
|
|
52
|
+
At as FolderOpen,
|
|
53
|
+
Lt as Gauge,
|
|
54
|
+
Tt as GitBranch,
|
|
55
|
+
De as Hash,
|
|
56
|
+
mt as HistoryClock,
|
|
57
|
+
Mt as Home,
|
|
58
|
+
kt as Image,
|
|
59
|
+
wt as ImageOff,
|
|
60
|
+
Re as ImageUpload,
|
|
61
|
+
Ut as Inbox,
|
|
62
|
+
tt as Info,
|
|
63
|
+
bt as LayoutGrid,
|
|
64
|
+
Bt as Leaf,
|
|
65
|
+
Ot as Lightbulb,
|
|
66
|
+
qe as Link,
|
|
67
|
+
ot as Loader,
|
|
68
|
+
Te as LogOut,
|
|
69
|
+
Ee as Magnet,
|
|
70
|
+
Dt as Mail,
|
|
71
|
+
ze as Maximize,
|
|
72
|
+
me as Mic,
|
|
73
|
+
Me as MicOff,
|
|
74
|
+
Ve as Minus,
|
|
75
|
+
Ne as MoreHorizontal,
|
|
76
|
+
Qe as MoreVertical,
|
|
77
|
+
dt as Music,
|
|
78
|
+
Rt as Palette,
|
|
79
|
+
ke as PanelLeft,
|
|
80
|
+
Xt as Paperclip,
|
|
81
|
+
qt as Pause,
|
|
82
|
+
Ue as Pencil,
|
|
83
|
+
ye as PhoneOff,
|
|
84
|
+
It as PieChart,
|
|
85
|
+
Qt as Play,
|
|
86
|
+
Ft as Plug,
|
|
87
|
+
Xe as Plus,
|
|
88
|
+
Oe as Quote,
|
|
89
|
+
je as Refresh,
|
|
90
|
+
xt as Rocket,
|
|
91
|
+
Ke as Search,
|
|
92
|
+
Ht as Settings,
|
|
93
|
+
vt as Shapes,
|
|
94
|
+
Ye as Share,
|
|
95
|
+
ue as SortIcon,
|
|
96
|
+
Gt as Sparkles,
|
|
97
|
+
Wt as Star,
|
|
98
|
+
We as Stop,
|
|
99
|
+
$e as SwapHorizontal,
|
|
100
|
+
pt as Table,
|
|
101
|
+
zt as Target,
|
|
102
|
+
Et as Telescope,
|
|
103
|
+
Fe as TextFont,
|
|
104
|
+
xe as ToggleOn,
|
|
105
|
+
Ze as Trash,
|
|
106
|
+
Ie as Upload,
|
|
107
|
+
Vt as User,
|
|
108
|
+
Nt as Users,
|
|
109
|
+
St as Video,
|
|
110
|
+
st as Warning,
|
|
111
|
+
nt as WarningCircle,
|
|
112
|
+
Jt as Wrench
|
|
111
113
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number & date formatting for the viz (segmentation) charts — India-first,
|
|
3
|
+
* per the Visualisations handoff. Kept separate from the components so both
|
|
4
|
+
* the renderers and their data tables format identically.
|
|
5
|
+
*
|
|
6
|
+
* Rule of the surface: every numeral is tabular-nums in the ADS face (never
|
|
7
|
+
* a mono font — EXTENDING §2.2), prose labels are sans. These helpers only
|
|
8
|
+
* produce the numeral strings.
|
|
9
|
+
*/
|
|
10
|
+
/** Tooltip / table grouping — lakh grouping. 1042318 → "10,42,318". */
|
|
11
|
+
export declare function commafy(n: number): string;
|
|
12
|
+
/**
|
|
13
|
+
* Axis abbreviation with the Indian ladder — capital K, then L (lakh),
|
|
14
|
+
* then Cr (crore). 145000 → "1.5L", 15000000 → "1.5Cr", 2300 → "2.3K".
|
|
15
|
+
*/
|
|
16
|
+
export declare function abbr(n: number): string;
|
|
17
|
+
/**
|
|
18
|
+
* Duration as the two most-significant units; "—" for null/0.
|
|
19
|
+
* 21310 → "5h 55m", 305 → "5m 5s", 42 → "42s".
|
|
20
|
+
*/
|
|
21
|
+
export declare function fmtDuration(seconds: number | null | undefined): string;
|
|
22
|
+
/** Percentage to one decimal place, the surface default. 12.83 → "12.8%". */
|
|
23
|
+
export declare function pct1(x: number): string;
|
|
24
|
+
/** Percentage to two decimals — funnel-trends tooltip. 12.8 → "12.80%". */
|
|
25
|
+
export declare function pct2(x: number): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function s(t) {
|
|
3
|
+
return t.toLocaleString("en-IN");
|
|
4
|
+
}
|
|
5
|
+
function o(t, n) {
|
|
6
|
+
return t.toFixed(n).replace(/\.?0+$/, "");
|
|
7
|
+
}
|
|
8
|
+
function l(t) {
|
|
9
|
+
const n = t < 0 ? "-" : "", r = Math.abs(t);
|
|
10
|
+
return r >= 1e7 ? `${n}${o(r / 1e7, 1)}Cr` : r >= 1e5 ? `${n}${o(r / 1e5, 1)}L` : r >= 1e3 ? `${n}${o(r / 1e3, 1)}K` : `${n}${r}`;
|
|
11
|
+
}
|
|
12
|
+
function $(t) {
|
|
13
|
+
if (t == null || t === 0) return "—";
|
|
14
|
+
const n = Math.floor(t), r = [
|
|
15
|
+
[86400, "d"],
|
|
16
|
+
[3600, "h"],
|
|
17
|
+
[60, "m"],
|
|
18
|
+
[1, "s"]
|
|
19
|
+
], e = [];
|
|
20
|
+
let i = n;
|
|
21
|
+
for (const [u, c] of r)
|
|
22
|
+
if (i >= u || e.length) {
|
|
23
|
+
const f = Math.floor(i / u);
|
|
24
|
+
if ((e.length || f > 0) && (e.push(`${f}${c}`), i -= f * u), e.length === 2) break;
|
|
25
|
+
}
|
|
26
|
+
return e.slice(0, 2).join(" ") || `${n}s`;
|
|
27
|
+
}
|
|
28
|
+
function a(t) {
|
|
29
|
+
return `${o(t, 1)}%`;
|
|
30
|
+
}
|
|
31
|
+
function h(t) {
|
|
32
|
+
return `${t.toFixed(2)}%`;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
l as abbr,
|
|
36
|
+
s as commafy,
|
|
37
|
+
$ as fmtDuration,
|
|
38
|
+
a as pct1,
|
|
39
|
+
h as pct2
|
|
40
|
+
};
|