@actioneer/ads 0.8.0 → 1.0.1

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.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { jsx as m, jsxs as E } from "react/jsx-runtime";
2
+ import { jsx as p, jsxs as E } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
4
  import { MotionConfig as $, motion as M } from "motion/react";
5
5
  import { cva as L } from "class-variance-authority";
6
- import { cn as p } from "../lib/cn.js";
6
+ import { cn as b } from "../lib/cn.js";
7
7
  import { springControl as U } from "../lib/motion.js";
8
8
  const N = (o, e, t) => `${o}-${e}-${encodeURIComponent(t).replaceAll("%", "_")}`, P = r.createContext(null);
9
9
  function z(o) {
@@ -19,12 +19,12 @@ const _ = r.forwardRef(
19
19
  defaultValue: t,
20
20
  onValueChange: a,
21
21
  variant: y,
22
- orientation: d = "horizontal",
23
- size: b,
22
+ orientation: c = "horizontal",
23
+ size: m,
24
24
  children: R,
25
25
  ...A
26
- }, S) => {
27
- const x = e !== void 0, [g, v] = r.useState(t), T = r.useId().replaceAll(":", ""), c = r.useId(), w = r.useRef([]), h = r.useRef(/* @__PURE__ */ new Set()), u = x ? e : g, I = r.useCallback(
26
+ }, k) => {
27
+ const x = e !== void 0, [g, v] = r.useState(t), T = r.useId().replaceAll(":", ""), d = r.useId(), w = r.useRef([]), h = r.useRef(/* @__PURE__ */ new Set()), f = x ? e : g, I = r.useCallback(
28
28
  (l) => {
29
29
  x || v(l), a == null || a(l);
30
30
  },
@@ -33,47 +33,47 @@ const _ = r.forwardRef(
33
33
  w.current.includes(l) || w.current.push(l);
34
34
  }, []), s = r.useMemo(
35
35
  () => ({
36
- value: u,
36
+ value: f,
37
37
  setValue: I,
38
38
  baseId: T,
39
39
  registerTab: i,
40
40
  tabs: w,
41
41
  disabled: h,
42
- thumbId: c,
43
- orientation: d
42
+ thumbId: d,
43
+ orientation: c
44
44
  }),
45
45
  [
46
- u,
46
+ f,
47
47
  I,
48
48
  T,
49
49
  i,
50
- c,
51
- d
50
+ d,
51
+ c
52
52
  ]
53
53
  );
54
- return /* @__PURE__ */ m(P.Provider, { value: s, children: /* @__PURE__ */ m(
54
+ return /* @__PURE__ */ p(P.Provider, { value: s, children: /* @__PURE__ */ p(
55
55
  "div",
56
56
  {
57
- ref: S,
58
- "data-orientation": d,
57
+ ref: k,
58
+ "data-orientation": c,
59
59
  "data-variant": "primary",
60
- className: p(
60
+ className: b(
61
61
  "flex w-full gap-4",
62
- d === "horizontal" ? "flex-col" : "flex-row",
62
+ c === "horizontal" ? "flex-col" : "flex-row",
63
63
  o
64
64
  ),
65
65
  ...A,
66
- children: /* @__PURE__ */ m($, { reducedMotion: "user", children: R })
66
+ children: /* @__PURE__ */ p($, { reducedMotion: "user", children: R })
67
67
  }
68
68
  ) });
69
69
  }
70
70
  );
71
71
  _.displayName = "Tabs";
72
- const C = L("inline-flex gap-0 text-m", {
72
+ const C = L("inline-flex text-l", {
73
73
  variants: {
74
74
  orientation: {
75
- horizontal: "w-full self-start flex-row items-center gap-6 overflow-x-auto border-b border-border",
76
- vertical: "flex-col items-stretch border-r border-border"
75
+ horizontal: "w-full self-start flex-row items-center gap-4 overflow-x-auto border-b border-table-stroke",
76
+ vertical: "flex-col items-stretch gap-0 border-r border-table-stroke"
77
77
  }
78
78
  },
79
79
  defaultVariants: {
@@ -82,7 +82,7 @@ const C = L("inline-flex gap-0 text-m", {
82
82
  }), B = r.forwardRef(
83
83
  ({ className: o, ...e }, t) => {
84
84
  const { orientation: a } = z("TabList");
85
- return /* @__PURE__ */ m(
85
+ return /* @__PURE__ */ p(
86
86
  "div",
87
87
  {
88
88
  ref: t,
@@ -90,7 +90,7 @@ const C = L("inline-flex gap-0 text-m", {
90
90
  "aria-orientation": a,
91
91
  "data-orientation": a,
92
92
  "data-variant": "primary",
93
- className: p(C({ orientation: a }), o),
93
+ className: b(C({ orientation: a }), o),
94
94
  ...e
95
95
  }
96
96
  );
@@ -98,7 +98,7 @@ const C = L("inline-flex gap-0 text-m", {
98
98
  );
99
99
  B.displayName = "TabList";
100
100
  const H = L(
101
- p(
101
+ b(
102
102
  "relative inline-flex items-center whitespace-nowrap select-none",
103
103
  "transition-colors duration-150 cursor-pointer",
104
104
  "outline-none focus-visible:ring-3 focus-visible:ring-ring",
@@ -121,24 +121,24 @@ const H = L(
121
121
  }
122
122
  }
123
123
  ), O = r.forwardRef(
124
- ({ className: o, value: e, isDisabled: t, count: a, children: y, onClick: d, onKeyDown: b, ...R }, A) => {
124
+ ({ className: o, value: e, isDisabled: t, count: a, children: y, onClick: c, onKeyDown: m, ...R }, A) => {
125
125
  const {
126
- value: S,
126
+ value: k,
127
127
  setValue: x,
128
128
  baseId: g,
129
129
  registerTab: v,
130
130
  tabs: T,
131
- disabled: c,
131
+ disabled: d,
132
132
  thumbId: w,
133
133
  orientation: h
134
- } = z("Tab"), u = S === e;
134
+ } = z("Tab"), f = k === e;
135
135
  r.useEffect(() => {
136
136
  v(e);
137
137
  }, [v, e]), r.useEffect(() => {
138
- t ? c.current.add(e) : c.current.delete(e);
139
- }, [c, t, e]);
138
+ t ? d.current.add(e) : d.current.delete(e);
139
+ }, [d, t, e]);
140
140
  const I = (i) => {
141
- if (b == null || b(i), i.defaultPrevented) return;
141
+ if (m == null || m(i), i.defaultPrevented) return;
142
142
  const s = T.current, l = s.indexOf(e);
143
143
  if (l === -1) return;
144
144
  const V = h === "vertical" ? ["ArrowDown"] : ["ArrowRight", "ArrowDown"], j = h === "vertical" ? ["ArrowUp"] : ["ArrowLeft", "ArrowUp"];
@@ -147,27 +147,27 @@ const H = L(
147
147
  n = l;
148
148
  do
149
149
  n = (n + 1) % s.length;
150
- while (c.current.has(s[n]) && n !== l);
150
+ while (d.current.has(s[n]) && n !== l);
151
151
  } else if (j.includes(i.key)) {
152
152
  n = l;
153
153
  do
154
154
  n = (n - 1 + s.length) % s.length;
155
- while (c.current.has(s[n]) && n !== l);
155
+ while (d.current.has(s[n]) && n !== l);
156
156
  } else if (i.key === "Home")
157
- n = s.findIndex((f) => !c.current.has(f));
157
+ n = s.findIndex((u) => !d.current.has(u));
158
158
  else if (i.key === "End") {
159
- for (let f = s.length - 1; f >= 0; f--)
160
- if (!c.current.has(s[f])) {
161
- n = f;
159
+ for (let u = s.length - 1; u >= 0; u--)
160
+ if (!d.current.has(s[u])) {
161
+ n = u;
162
162
  break;
163
163
  }
164
164
  }
165
165
  if (n !== null && n !== -1) {
166
166
  i.preventDefault();
167
- const f = s[n];
168
- x(f);
169
- const k = document.getElementById(N(g, "tab", f));
170
- k == null || k.focus();
167
+ const u = s[n];
168
+ x(u);
169
+ const S = document.getElementById(N(g, "tab", u));
170
+ S == null || S.focus();
171
171
  }
172
172
  };
173
173
  return /* @__PURE__ */ E(
@@ -177,29 +177,29 @@ const H = L(
177
177
  type: "button",
178
178
  role: "tab",
179
179
  id: N(g, "tab", e),
180
- "aria-selected": u,
180
+ "aria-selected": f,
181
181
  "aria-disabled": t || void 0,
182
182
  disabled: t,
183
- "data-selected": u || void 0,
183
+ "data-selected": f || void 0,
184
184
  "data-disabled": t || void 0,
185
- tabIndex: u && !t ? 0 : -1,
186
- className: p(
187
- H({ orientation: h, selected: u }),
185
+ tabIndex: f && !t ? 0 : -1,
186
+ className: b(
187
+ H({ orientation: h, selected: f }),
188
188
  o
189
189
  ),
190
190
  onClick: (i) => {
191
- d == null || d(i), t || x(e);
191
+ c == null || c(i), t || x(e);
192
192
  },
193
193
  onKeyDown: I,
194
194
  ...R,
195
195
  children: [
196
- u && /* @__PURE__ */ m(
196
+ f && /* @__PURE__ */ p(
197
197
  M.span,
198
198
  {
199
199
  layoutId: w,
200
200
  "aria-hidden": !0,
201
201
  transition: U,
202
- className: p(
202
+ className: b(
203
203
  "absolute bg-action-primary",
204
204
  h === "horizontal" ? "left-0 right-0 bottom-0 h-0.5" : "top-0 bottom-0 right-0 w-0.5"
205
205
  )
@@ -207,10 +207,19 @@ const H = L(
207
207
  ),
208
208
  /* @__PURE__ */ E("span", { className: "relative inline-flex items-center gap-1", children: [
209
209
  y,
210
- a != null && /* @__PURE__ */ E("span", { className: "tabular-nums text-muted-foreground", children: [
211
- "· ",
212
- a
213
- ] })
210
+ a != null && /* @__PURE__ */ E(
211
+ "span",
212
+ {
213
+ className: b(
214
+ "tabular-nums",
215
+ f ? "text-action-primary-text" : "text-secondary"
216
+ ),
217
+ children: [
218
+ "· ",
219
+ a
220
+ ]
221
+ }
222
+ )
214
223
  ] })
215
224
  ]
216
225
  }
@@ -221,13 +230,13 @@ O.displayName = "Tab";
221
230
  const q = r.forwardRef(
222
231
  ({ className: o, ...e }, t) => {
223
232
  const { orientation: a } = z("TabSeparator");
224
- return /* @__PURE__ */ m(
233
+ return /* @__PURE__ */ p(
225
234
  "span",
226
235
  {
227
236
  ref: t,
228
237
  "aria-hidden": !0,
229
238
  role: "separator",
230
- className: p(
239
+ className: b(
231
240
  "shrink-0 bg-border",
232
241
  a === "horizontal" ? "mx-1 h-4 w-px" : "my-1 h-px w-full",
233
242
  o
@@ -240,16 +249,16 @@ const q = r.forwardRef(
240
249
  q.displayName = "TabSeparator";
241
250
  const F = r.forwardRef(
242
251
  ({ className: o, value: e, children: t, ...a }, y) => {
243
- const { value: d, baseId: b } = z("TabPanel");
244
- return d !== e ? null : /* @__PURE__ */ m(
252
+ const { value: c, baseId: m } = z("TabPanel");
253
+ return c !== e ? null : /* @__PURE__ */ p(
245
254
  "div",
246
255
  {
247
256
  ref: y,
248
257
  role: "tabpanel",
249
- id: N(b, "panel", e),
250
- "aria-labelledby": N(b, "tab", e),
258
+ id: N(m, "panel", e),
259
+ "aria-labelledby": N(m, "tab", e),
251
260
  tabIndex: 0,
252
- className: p(
261
+ className: b(
253
262
  "flex-1 outline-none focus-visible:ring-3 focus-visible:ring-ring rounded-sm",
254
263
  o
255
264
  ),
@@ -4,7 +4,7 @@ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
4
4
  }
5
5
  export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
6
6
  declare const textSizes: {
7
- readonly xs: "text-s";
7
+ readonly xs: "text-xs";
8
8
  readonly sm: "text-s";
9
9
  readonly md: "text-m";
10
10
  readonly lg: "text-l";
@@ -15,7 +15,7 @@ const u = {
15
15
  );
16
16
  p.displayName = "Heading";
17
17
  const y = {
18
- xs: "text-s",
18
+ xs: "text-xs",
19
19
  sm: "text-s",
20
20
  md: "text-m",
21
21
  lg: "text-l"
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
5
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-sm" | "icon-xs" | "icon-lg" | null | undefined;
5
+ size?: "xs" | "default" | "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> & {
8
8
  asChild?: boolean;
@@ -115,7 +115,7 @@ function A({
115
115
  o.Title,
116
116
  {
117
117
  "data-slot": "dialog-title",
118
- className: u("text-[15px] font-semibold leading-5", t),
118
+ className: u("text-l font-semibold leading-5", t),
119
119
  ...i
120
120
  }
121
121
  );
@@ -97,7 +97,7 @@ function oe({
97
97
  const t = new ResizeObserver(([x]) => w(x.contentRect.width));
98
98
  return t.observe(N.current), () => t.disconnect();
99
99
  }, []);
100
- const [h, f] = $.useState(null), m = Math.max(0, y - b.l - b.r), M = Math.max(0, i - b.t - b.b), r = d.filter((t) => !t.ghost), { max: n, ticks: p } = ee(Math.max(1, ...d.flatMap((t) => t.values))), k = (t) => b.t + M - t / n * M, R = c.length, v = (t) => e === "bar" ? b.l + (t + 0.5) / R * m : b.l + (R <= 1 ? m / 2 : t / (R - 1) * m), _ = [...p].reverse(), D = r.map((t, x) => ({ label: t.name, color: t.color ?? L(x), dashed: t.dashed }));
100
+ const [h, f] = $.useState(null), m = Math.max(0, y - b.l - b.r), M = Math.max(0, i - b.t - b.b), r = d.filter((t) => !t.ghost), { max: n, ticks: v } = ee(Math.max(1, ...d.flatMap((t) => t.values))), k = (t) => b.t + M - t / n * M, R = c.length, p = (t) => e === "bar" ? b.l + (t + 0.5) / R * m : b.l + (R <= 1 ? m / 2 : t / (R - 1) * m), _ = [...v].reverse(), D = r.map((t, x) => ({ label: t.name, color: t.color ?? L(x), dashed: t.dashed }));
101
101
  return /* @__PURE__ */ s("div", { ref: N, className: O("relative w-full font-sans", l), children: [
102
102
  D.length > 1 && /* @__PURE__ */ a(te, { items: D }),
103
103
  /* @__PURE__ */ s(
@@ -126,10 +126,10 @@ function oe({
126
126
  opacity: t === 0 ? 0.9 : 0.6
127
127
  }
128
128
  ),
129
- /* @__PURE__ */ a("text", { x: b.l - 10, y: k(t), dy: "0.32em", textAnchor: "end", className: "fill-tertiary text-[11px] tabular-nums", children: u(t) })
129
+ /* @__PURE__ */ a("text", { x: b.l - 10, y: k(t), dy: "0.32em", textAnchor: "end", className: "fill-tertiary text-xs tabular-nums", children: u(t) })
130
130
  ] }, x)),
131
131
  q(c).map(
132
- (t, x) => t == null ? null : /* @__PURE__ */ a("text", { x: v(x), y: i - 12, textAnchor: "middle", className: "fill-tertiary text-[11px] tabular-nums", children: t }, x)
132
+ (t, x) => t == null ? null : /* @__PURE__ */ a("text", { x: p(x), y: i - 12, textAnchor: "middle", className: "fill-tertiary text-xs tabular-nums", children: t }, x)
133
133
  ),
134
134
  e === "bar" && r.map((t, x) => {
135
135
  const T = m / R, S = Math.min(T * 0.7, 64), A = (S - (r.length - 1)) / r.length;
@@ -153,7 +153,7 @@ function oe({
153
153
  e === "area" && r[0] && /* @__PURE__ */ a(
154
154
  "path",
155
155
  {
156
- d: `${P(r[0].values.map((t, x) => [v(x), k(t)]))} L${v(R - 1)},${k(0)} L${v(0)},${k(0)} Z`,
156
+ d: `${P(r[0].values.map((t, x) => [p(x), k(t)]))} L${p(R - 1)},${k(0)} L${p(0)},${k(0)} Z`,
157
157
  fill: r[0].color ?? L(0),
158
158
  opacity: 0.12
159
159
  }
@@ -163,7 +163,7 @@ function oe({
163
163
  return /* @__PURE__ */ a(
164
164
  "path",
165
165
  {
166
- d: P(t.values.map((j, z) => [v(z), k(j)])),
166
+ d: P(t.values.map((j, z) => [p(z), k(j)])),
167
167
  fill: "none",
168
168
  stroke: T,
169
169
  strokeWidth: A,
@@ -181,7 +181,7 @@ function oe({
181
181
  "circle",
182
182
  {
183
183
  "aria-hidden": !0,
184
- cx: v(A),
184
+ cx: p(A),
185
185
  cy: k(S),
186
186
  r: h === A ? 5.5 : 4,
187
187
  fill: "var(--card)",
@@ -192,16 +192,16 @@ function oe({
192
192
  `${x}-${A}`
193
193
  ));
194
194
  }),
195
- h != null && e !== "bar" && /* @__PURE__ */ a("line", { x1: v(h), x2: v(h), y1: b.t, y2: b.t + M, stroke: Y, strokeWidth: 1, opacity: 0.18 })
195
+ h != null && e !== "bar" && /* @__PURE__ */ a("line", { x1: p(h), x2: p(h), y1: b.t, y2: b.t + M, stroke: Y, strokeWidth: 1, opacity: 0.18 })
196
196
  ]
197
197
  }
198
198
  ),
199
199
  h != null && /* @__PURE__ */ a(
200
200
  K,
201
201
  {
202
- x: v(h),
202
+ x: p(h),
203
203
  y: b.t + M / 2,
204
- flip: v(h) > b.l + m * 0.66,
204
+ flip: p(h) > b.l + m * 0.66,
205
205
  title: c[h],
206
206
  rows: d.map((t) => ({
207
207
  swatch: t.color ?? L(d.indexOf(t)),
@@ -219,7 +219,7 @@ function ce({ steps: e, height: c = 320, className: d }) {
219
219
  const [i, u] = $.useState(720), o = $.useRef(null);
220
220
  $.useEffect(() => {
221
221
  if (!o.current) return;
222
- const n = new ResizeObserver(([p]) => u(p.contentRect.width));
222
+ const n = new ResizeObserver(([v]) => u(v.contentRect.width));
223
223
  return n.observe(o.current), () => n.disconnect();
224
224
  }, []);
225
225
  const [l, y] = $.useState(null), w = Math.max(0, i - g.l - g.r), N = Math.max(0, c - g.t - g.b), h = ((r = e[0]) == null ? void 0 : r.value) || 1, f = (n) => g.t + N - n * N, m = w / Math.max(1, e.length), M = Math.min(m * 0.56, 120);
@@ -231,29 +231,29 @@ function ce({ steps: e, height: c = 320, className: d }) {
231
231
  ] }) }),
232
232
  [1, 0.75, 0.5, 0.25, 0].map((n) => /* @__PURE__ */ s("g", { children: [
233
233
  /* @__PURE__ */ a("line", { x1: g.l, x2: g.l + w, y1: f(n), y2: f(n), stroke: V, strokeWidth: 1, strokeDasharray: n === 0 ? void 0 : "3 4", opacity: n === 0 ? 0.9 : 0.6 }),
234
- /* @__PURE__ */ a("text", { x: g.l, y: f(n) - 4, className: "fill-tertiary text-[10px] tabular-nums", children: n * 100 })
234
+ /* @__PURE__ */ a("text", { x: g.l, y: f(n) - 4, className: "fill-tertiary text-xs tabular-nums", children: n * 100 })
235
235
  ] }, n)),
236
- e.map((n, p) => {
237
- const k = n.value / h, R = p === 0 ? 1 : e[p - 1].value / h, v = g.l + p * m + m / 2, _ = v - M / 2, D = f(k), t = l != null && l !== p;
238
- return /* @__PURE__ */ s("g", { opacity: t ? 0.55 : 1, onMouseEnter: () => y(p), onMouseLeave: () => y(null), children: [
239
- p > 0 && /* @__PURE__ */ a("rect", { x: _, y: f(R), width: M, height: Math.max(0, D - f(R)), rx: 4, fill: `url(#${G})` }),
236
+ e.map((n, v) => {
237
+ const k = n.value / h, R = v === 0 ? 1 : e[v - 1].value / h, p = g.l + v * m + m / 2, _ = p - M / 2, D = f(k), t = l != null && l !== v;
238
+ return /* @__PURE__ */ s("g", { opacity: t ? 0.55 : 1, onMouseEnter: () => y(v), onMouseLeave: () => y(null), children: [
239
+ v > 0 && /* @__PURE__ */ a("rect", { x: _, y: f(R), width: M, height: Math.max(0, D - f(R)), rx: 4, fill: `url(#${G})` }),
240
240
  /* @__PURE__ */ a("rect", { x: _, y: D, width: M, height: Math.max(0, g.t + N - D), rx: 4, fill: C }),
241
- /* @__PURE__ */ a("text", { x: v, y: D + 16, textAnchor: "middle", className: "fill-[var(--card)] text-[12px] font-medium tabular-nums", children: F(n.value) }),
242
- /* @__PURE__ */ a("text", { x: v, y: g.t + N + 24, textAnchor: "middle", className: "fill-secondary text-[12.5px] font-medium", children: n.label }),
243
- /* @__PURE__ */ s("text", { x: v, y: g.t + N + 45, textAnchor: "middle", className: "fill-foreground text-[12px] font-medium tabular-nums", children: [
241
+ /* @__PURE__ */ a("text", { x: p, y: D + 16, textAnchor: "middle", className: "fill-[var(--card)] text-s font-medium tabular-nums", children: F(n.value) }),
242
+ /* @__PURE__ */ a("text", { x: p, y: g.t + N + 24, textAnchor: "middle", className: "fill-secondary text-s font-medium", children: n.label }),
243
+ /* @__PURE__ */ s("text", { x: p, y: g.t + N + 45, textAnchor: "middle", className: "fill-foreground text-s font-medium tabular-nums", children: [
244
244
  H(n.value),
245
245
  " ",
246
- /* @__PURE__ */ a("tspan", { className: "fill-tertiary", children: p === 0 ? "entered" : `→ ${E(k * 100)}` })
246
+ /* @__PURE__ */ a("tspan", { className: "fill-tertiary", children: v === 0 ? "entered" : `→ ${E(k * 100)}` })
247
247
  ] }),
248
- p > 0 && /* @__PURE__ */ s("text", { x: v, y: g.t + N + 66, textAnchor: "middle", className: "fill-tertiary text-[12px] font-medium tabular-nums", children: [
248
+ v > 0 && /* @__PURE__ */ s("text", { x: p, y: g.t + N + 66, textAnchor: "middle", className: "fill-tertiary text-s font-medium tabular-nums", children: [
249
249
  "↘ ",
250
- E((1 - n.value / e[p - 1].value) * 100)
250
+ E((1 - n.value / e[v - 1].value) * 100)
251
251
  ] }),
252
- p > 0 && n.medianTime != null && /* @__PURE__ */ s("text", { x: v, y: g.t + N + 86, textAnchor: "middle", className: "fill-tertiary text-[11px] tabular-nums", children: [
252
+ v > 0 && n.medianTime != null && /* @__PURE__ */ s("text", { x: p, y: g.t + N + 86, textAnchor: "middle", className: "fill-tertiary text-xs tabular-nums", children: [
253
253
  "◷ ",
254
254
  B(n.medianTime)
255
255
  ] })
256
- ] }, p);
256
+ ] }, v);
257
257
  })
258
258
  ] }),
259
259
  l != null && e[l] && /* @__PURE__ */ a(
@@ -283,7 +283,7 @@ function se({ steps: e, className: c }) {
283
283
  const l = u.value / d, y = o === 0 ? 1 : e[o - 1].value / d;
284
284
  return /* @__PURE__ */ s("div", { className: "w-full", children: [
285
285
  /* @__PURE__ */ s("div", { className: "mb-1.5 flex items-baseline justify-between gap-3", children: [
286
- /* @__PURE__ */ s("span", { className: "truncate text-[12.5px] font-medium text-secondary", children: [
286
+ /* @__PURE__ */ s("span", { className: "truncate text-s font-medium text-secondary", children: [
287
287
  /* @__PURE__ */ s("span", { className: "text-tertiary tabular-nums", children: [
288
288
  o + 1,
289
289
  "."
@@ -292,11 +292,11 @@ function se({ steps: e, className: c }) {
292
292
  u.label
293
293
  ] }),
294
294
  /* @__PURE__ */ s("div", { className: "flex shrink-0 items-baseline gap-3", children: [
295
- o > 0 && u.avgTime != null && /* @__PURE__ */ s("span", { className: "text-[11px] text-tertiary tabular-nums", children: [
295
+ o > 0 && u.avgTime != null && /* @__PURE__ */ s("span", { className: "text-xs text-tertiary tabular-nums", children: [
296
296
  "Avg time ",
297
297
  B(u.avgTime)
298
298
  ] }),
299
- /* @__PURE__ */ a("span", { className: "text-[12.5px] font-medium text-foreground tabular-nums", children: E(l * 100) })
299
+ /* @__PURE__ */ a("span", { className: "text-s font-medium text-foreground tabular-nums", children: E(l * 100) })
300
300
  ] })
301
301
  ] }),
302
302
  /* @__PURE__ */ s("div", { className: "relative h-[46px] w-full overflow-hidden rounded-lg bg-muted-foreground/[0.06]", children: [
@@ -310,7 +310,7 @@ function se({ steps: e, className: c }) {
310
310
  }
311
311
  }
312
312
  ),
313
- /* @__PURE__ */ a("div", { className: "absolute inset-y-0 left-0 flex items-center rounded-lg", style: { width: `${l * 100}%`, background: C }, children: /* @__PURE__ */ a("span", { className: "ml-3 text-[12px] font-medium text-ink-950 tabular-nums", children: F(u.value) }) })
313
+ /* @__PURE__ */ a("div", { className: "absolute inset-y-0 left-0 flex items-center rounded-lg", style: { width: `${l * 100}%`, background: C }, children: /* @__PURE__ */ a("span", { className: "ml-3 text-s font-medium text-ink-950 tabular-nums", children: F(u.value) }) })
314
314
  ] })
315
315
  ] }, o);
316
316
  }) });
@@ -333,24 +333,24 @@ function ie({ points: e, height: c = 300, className: d }) {
333
333
  className: "block select-none",
334
334
  onMouseLeave: () => y(null),
335
335
  onMouseMove: (r) => {
336
- const n = r.currentTarget.getBoundingClientRect(), p = Math.round((r.clientX - n.left - W.l) / w * (h - 1));
337
- y(Math.max(0, Math.min(h - 1, p)));
336
+ const n = r.currentTarget.getBoundingClientRect(), v = Math.round((r.clientX - n.left - W.l) / w * (h - 1));
337
+ y(Math.max(0, Math.min(h - 1, v)));
338
338
  },
339
339
  children: [
340
340
  [100, 75, 50, 25, 0].map((r) => /* @__PURE__ */ s("g", { children: [
341
341
  /* @__PURE__ */ a("line", { x1: W.l, x2: W.l + w, y1: m(r), y2: m(r), stroke: V, strokeWidth: 1, strokeDasharray: r === 0 ? void 0 : "3 4", opacity: r === 0 ? 0.9 : 0.6 }),
342
- /* @__PURE__ */ s("text", { x: W.l - 10, y: m(r), dy: "0.32em", textAnchor: "end", className: "fill-tertiary text-[11px] tabular-nums", children: [
342
+ /* @__PURE__ */ s("text", { x: W.l - 10, y: m(r), dy: "0.32em", textAnchor: "end", className: "fill-tertiary text-xs tabular-nums", children: [
343
343
  r,
344
344
  "%"
345
345
  ] })
346
346
  ] }, r)),
347
347
  q(e).map(
348
- (r, n) => r == null ? null : /* @__PURE__ */ a("text", { x: f(n), y: c - 12, textAnchor: "middle", className: "fill-tertiary text-[11px] tabular-nums", children: r.label }, n)
348
+ (r, n) => r == null ? null : /* @__PURE__ */ a("text", { x: f(n), y: c - 12, textAnchor: "middle", className: "fill-tertiary text-xs tabular-nums", children: r.label }, n)
349
349
  ),
350
350
  /* @__PURE__ */ a("path", { d: `${P(M)} L${f(h - 1)},${m(0)} L${f(0)},${m(0)} Z`, fill: C, opacity: 0.12 }),
351
351
  /* @__PURE__ */ a("path", { d: P(M), fill: "none", stroke: C, strokeWidth: X, strokeLinecap: "round", strokeLinejoin: "round" }),
352
352
  e.map((r, n) => /* @__PURE__ */ s("g", { children: [
353
- /* @__PURE__ */ s("text", { x: f(n), y: m(r.v) - 12, textAnchor: "middle", className: "fill-foreground text-[11.5px] font-medium tabular-nums", children: [
353
+ /* @__PURE__ */ s("text", { x: f(n), y: m(r.v) - 12, textAnchor: "middle", className: "fill-foreground text-s font-medium tabular-nums", children: [
354
354
  r.v,
355
355
  "%"
356
356
  ] }),
@@ -383,13 +383,13 @@ function de({ cols: e, cohorts: c, className: d }) {
383
383
  e.map((i) => /* @__PURE__ */ a("th", { className: "px-1.5 py-2 text-center tabular-nums", children: i }, i))
384
384
  ] }) }),
385
385
  /* @__PURE__ */ a("tbody", { children: c.map((i) => /* @__PURE__ */ s("tr", { children: [
386
- /* @__PURE__ */ a("td", { className: "sticky left-0 w-[1%] bg-card py-1.5 pr-4 text-[12.5px] text-secondary whitespace-nowrap", children: i.label }),
387
- /* @__PURE__ */ a("td", { className: "w-[1%] py-1.5 pr-4 text-right text-[12.5px] text-secondary tabular-nums whitespace-nowrap", children: H(i.size) }),
388
- i.values.map((u, o) => /* @__PURE__ */ a("td", { className: "px-1 py-1", children: u == null ? /* @__PURE__ */ a("div", { className: "py-[9px] text-center text-[12.5px] text-tertiary tabular-nums", children: "—" }) : /* @__PURE__ */ s(
386
+ /* @__PURE__ */ a("td", { className: "sticky left-0 w-[1%] bg-card py-1.5 pr-4 text-s text-secondary whitespace-nowrap", children: i.label }),
387
+ /* @__PURE__ */ a("td", { className: "w-[1%] py-1.5 pr-4 text-right text-s text-secondary tabular-nums whitespace-nowrap", children: H(i.size) }),
388
+ i.values.map((u, o) => /* @__PURE__ */ a("td", { className: "px-1 py-1", children: u == null ? /* @__PURE__ */ a("div", { className: "py-[9px] text-center text-s text-tertiary tabular-nums", children: "—" }) : /* @__PURE__ */ s(
389
389
  "div",
390
390
  {
391
391
  className: O(
392
- "rounded-md py-[9px] text-center text-[12.5px] tabular-nums",
392
+ "rounded-md py-[9px] text-center text-s tabular-nums",
393
393
  "text-ink-950"
394
394
  ),
395
395
  style: { background: ae(u) },
@@ -22,6 +22,7 @@ import "react-dom";
22
22
  import "motion/react";
23
23
  import "../../components/ripple.js";
24
24
  import { Input as I } from "../../components/input.js";
25
+ import "../../components/search-disclosure.js";
25
26
  import "../../components/input-field.js";
26
27
  import "../../components/textarea.js";
27
28
  import "../../components/checkbox.js";
@@ -105,7 +106,7 @@ import "../../components/assistant-ui/quote.js";
105
106
  import "../../components/assistant-ui/sources.js";
106
107
  import "../../components/assistant-ui/tool-fallback.js";
107
108
  import "../../components/assistant-ui/tool-group.js";
108
- function ti({
109
+ function ei({
109
110
  block: i,
110
111
  trigger: v = "button",
111
112
  className: A,
@@ -357,5 +358,5 @@ function ti({
357
358
  ] });
358
359
  }
359
360
  export {
360
- ti as AddToArtifact
361
+ ei as AddToArtifact
361
362
  };
package/lib/cn.js CHANGED
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { clsx as t } from "clsx";
3
- import { extendTailwindMerge as s } from "tailwind-merge";
4
- const n = s({
2
+ import { clsx as s } from "clsx";
3
+ import { extendTailwindMerge as t } from "tailwind-merge";
4
+ const n = t({
5
5
  extend: {
6
6
  classGroups: {
7
- "font-size": [{ text: ["s", "m", "l", "xl", "2xl"] }]
7
+ "font-size": [{ text: ["xs", "s", "m", "l", "xl", "2xl", "3xl"] }]
8
8
  }
9
9
  }
10
10
  });
11
- function l(...e) {
12
- return n(t(e));
11
+ function o(...e) {
12
+ return n(s(e));
13
13
  }
14
14
  export {
15
- l as cn
15
+ o as cn
16
16
  };
package/lib/icons.d.ts CHANGED
@@ -81,6 +81,10 @@ export declare const Call: React.ForwardRefExoticComponent<Omit<import('@phospho
81
81
  /** Legacy Hugeicons prop — `>= 2` maps to weight="bold", else ignored. */
82
82
  strokeWidth?: number;
83
83
  } & React.RefAttributes<SVGSVGElement>>;
84
+ export declare const PhoneIncoming: React.ForwardRefExoticComponent<Omit<import('@phosphor-icons/react').IconProps, "ref"> & {
85
+ /** Legacy Hugeicons prop — `>= 2` maps to weight="bold", else ignored. */
86
+ strokeWidth?: number;
87
+ } & React.RefAttributes<SVGSVGElement>>;
84
88
  export declare const Close: React.ForwardRefExoticComponent<Omit<import('@phosphor-icons/react').IconProps, "ref"> & {
85
89
  /** Legacy Hugeicons prop — `>= 2` maps to weight="bold", else ignored. */
86
90
  strokeWidth?: number;