@actioneer/ads 1.0.3 → 1.0.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.
Files changed (63) hide show
  1. package/DESIGN.md +89 -89
  2. package/components/ai-elements/agent-trace.js +14 -14
  3. package/components/ai-elements/chain-of-thought.js +3 -3
  4. package/components/ai-elements/chart.js +3 -3
  5. package/components/ai-elements/inline-citation.js +2 -2
  6. package/components/ai-elements/message.js +1 -1
  7. package/components/ai-elements/research-activity.js +4 -4
  8. package/components/answer-sources.js +3 -3
  9. package/components/answer.js +3 -3
  10. package/components/assistant-ui/action-bar.js +2 -2
  11. package/components/assistant-ui/attachment.js +5 -5
  12. package/components/assistant-ui/badge.js +1 -1
  13. package/components/assistant-ui/branch-picker.js +1 -1
  14. package/components/assistant-ui/composer-add-context.js +7 -7
  15. package/components/assistant-ui/composer-deep-research.js +3 -3
  16. package/components/assistant-ui/composer-harness.js +1 -1
  17. package/components/assistant-ui/composer-trigger-popover.js +8 -8
  18. package/components/assistant-ui/composer.js +45 -45
  19. package/components/assistant-ui/file.js +9 -9
  20. package/components/assistant-ui/image.js +1 -1
  21. package/components/assistant-ui/markdown-text.js +1 -1
  22. package/components/assistant-ui/message-timing.js +1 -1
  23. package/components/assistant-ui/reasoning.js +10 -10
  24. package/components/assistant-ui/thread.js +1 -1
  25. package/components/assistant-ui/tool-fallback.js +2 -2
  26. package/components/assistant-ui/tool-group.js +3 -3
  27. package/components/autocomplete.js +28 -27
  28. package/components/avatar.js +23 -23
  29. package/components/brand-loader.d.ts +1 -1
  30. package/components/brand-loader.js +9 -9
  31. package/components/chart.js +5 -5
  32. package/components/checkbox.js +16 -16
  33. package/components/chip.js +33 -33
  34. package/components/collapsible.js +14 -12
  35. package/components/command-palette.js +37 -37
  36. package/components/connector-card.js +1 -1
  37. package/components/date-range-picker.js +3 -3
  38. package/components/dropdown.js +1 -1
  39. package/components/field.js +1 -1
  40. package/components/file-dropzone.js +2 -2
  41. package/components/infinite-canvas.js +1 -1
  42. package/components/input-field.js +2 -2
  43. package/components/input.js +9 -9
  44. package/components/modal.js +6 -6
  45. package/components/pagination.js +23 -23
  46. package/components/radio.js +1 -1
  47. package/components/segmented.js +23 -23
  48. package/components/select.d.ts +1 -1
  49. package/components/select.js +1 -1
  50. package/components/selection-action-bar.js +13 -13
  51. package/components/sidebar.js +5 -5
  52. package/components/stepper.d.ts +1 -1
  53. package/components/stepper.js +4 -4
  54. package/components/switch.js +7 -7
  55. package/components/tooltip.js +1 -1
  56. package/components/tree.js +20 -20
  57. package/components/ui/button.js +21 -21
  58. package/components/ui/tooltip.js +3 -3
  59. package/llms.txt +12 -12
  60. package/manifest.json +19 -19
  61. package/package.json +1 -1
  62. package/styles.css +103 -95
  63. package/theme.css +97 -89
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsxs as x, jsx as c } from "react/jsx-runtime";
3
- import * as o from "react";
3
+ import * as i from "react";
4
4
  import { MotionConfig as z, AnimatePresence as q, motion as O } from "motion/react";
5
5
  import { Search as P, Check as B } from "../lib/icons.js";
6
6
  import { cn as y } from "../lib/cn.js";
7
7
  import { inputBaseClass as F } from "./field.js";
8
8
  import { floatVariants as K } from "../lib/motion.js";
9
9
  import { Ripple as Q } from "./ripple.js";
10
- const T = o.forwardRef(
10
+ const T = i.forwardRef(
11
11
  ({
12
12
  items: u,
13
13
  value: f,
@@ -20,36 +20,36 @@ const T = o.forwardRef(
20
20
  id: I,
21
21
  "aria-describedby": M
22
22
  }, L) => {
23
- const d = u.find((e) => e.value === f), [m, h] = o.useState((d == null ? void 0 : d.label) ?? ""), [r, a] = o.useState(!1), [l, w] = o.useState(-1), N = o.useRef(null), k = o.useRef(null), b = o.useId();
24
- o.useEffect(() => {
23
+ const d = u.find((e) => e.value === f), [m, h] = i.useState((d == null ? void 0 : d.label) ?? ""), [r, a] = i.useState(!1), [n, w] = i.useState(-1), N = i.useRef(null), k = i.useRef(null), b = i.useId();
24
+ i.useEffect(() => {
25
25
  h((d == null ? void 0 : d.label) ?? (p ? f ?? "" : ""));
26
26
  }, [d, f, p]);
27
- const n = o.useMemo(() => {
27
+ const l = i.useMemo(() => {
28
28
  const e = m.trim().toLowerCase();
29
29
  return e ? u.filter((t) => t.label.toLowerCase().includes(e)) : u;
30
30
  }, [u, m]);
31
- o.useEffect(() => {
31
+ i.useEffect(() => {
32
32
  if (!r) return;
33
33
  const e = (t) => {
34
- var i;
35
- (i = N.current) != null && i.contains(t.target) || a(!1);
34
+ var o;
35
+ (o = N.current) != null && o.contains(t.target) || a(!1);
36
36
  };
37
37
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
38
- }, [r]), o.useEffect(() => {
38
+ }, [r]), i.useEffect(() => {
39
39
  var t;
40
- if (!r || l < 0) return;
41
- const e = (t = k.current) == null ? void 0 : t.children[l];
40
+ if (!r || n < 0) return;
41
+ const e = (t = k.current) == null ? void 0 : t.children[n];
42
42
  e == null || e.scrollIntoView({ block: "nearest" });
43
- }, [r, l]);
43
+ }, [r, n]);
44
44
  const g = (e) => {
45
- n.length !== 0 && w((t) => {
46
- let i = t;
47
- for (let v = 0; v < n.length; v++)
48
- if (i = (i + e + n.length) % n.length, !n[i].disabled) return i;
45
+ l.length !== 0 && w((t) => {
46
+ let o = t;
47
+ for (let v = 0; v < l.length; v++)
48
+ if (o = (o + e + l.length) % l.length, !l[o].disabled) return o;
49
49
  return t;
50
50
  });
51
51
  }, D = (e) => {
52
- const t = n[e];
52
+ const t = l[e];
53
53
  !t || t.disabled || (s == null || s(t.value), h(t.label), a(!1));
54
54
  }, $ = (e) => {
55
55
  switch (e.key) {
@@ -60,7 +60,7 @@ const T = o.forwardRef(
60
60
  e.preventDefault(), r ? g(-1) : a(!0);
61
61
  break;
62
62
  case "Enter":
63
- r && l >= 0 ? (e.preventDefault(), D(l)) : p && (s == null || s(m), a(!1));
63
+ r && n >= 0 ? (e.preventDefault(), D(n)) : p && (s == null || s(m), a(!1));
64
64
  break;
65
65
  case "Escape":
66
66
  r && (e.preventDefault(), a(!1));
@@ -91,7 +91,7 @@ const T = o.forwardRef(
91
91
  "aria-haspopup": "listbox",
92
92
  "aria-expanded": r,
93
93
  "aria-controls": b,
94
- "aria-activedescendant": r && l >= 0 ? `${b}-opt-${l}` : void 0,
94
+ "aria-activedescendant": r && n >= 0 ? `${b}-opt-${n}` : void 0,
95
95
  "aria-invalid": R || void 0,
96
96
  "aria-describedby": M,
97
97
  disabled: E,
@@ -123,34 +123,35 @@ const T = o.forwardRef(
123
123
  ),
124
124
  children: [
125
125
  /* @__PURE__ */ c(Q, { origin: "top" }),
126
- n.length === 0 ? /* @__PURE__ */ c(
126
+ l.length === 0 ? /* @__PURE__ */ c(
127
127
  "li",
128
128
  {
129
129
  role: "presentation",
130
- className: "px-2 py-6 text-center text-xs text-muted-foreground",
130
+ className: "px-2 py-6 text-center text-s text-muted-foreground",
131
131
  children: "No results"
132
132
  }
133
- ) : n.map((e, t) => {
134
- const i = e.value === f, v = t === l;
133
+ ) : l.map((e, t) => {
134
+ const o = e.value === f, v = t === n;
135
135
  return /* @__PURE__ */ x(
136
136
  "li",
137
137
  {
138
138
  id: `${b}-opt-${t}`,
139
139
  role: "option",
140
- "aria-selected": i,
140
+ "aria-selected": o,
141
141
  "aria-disabled": e.disabled || void 0,
142
142
  onMouseEnter: () => !e.disabled && w(t),
143
143
  onMouseDown: (j) => j.preventDefault(),
144
144
  onClick: () => D(t),
145
145
  className: y(
146
146
  "flex cursor-pointer items-center justify-between gap-2",
147
- "rounded-sm px-2 py-1.5 text-xs text-foreground select-none",
148
- v && !e.disabled && "bg-muted",
147
+ "rounded-sm px-2 py-1.5 text-m text-foreground select-none",
148
+ v && !e.disabled && "bg-action-primary-soft text-brand-text",
149
+ o && "text-brand-text",
149
150
  e.disabled && "pointer-events-none opacity-50"
150
151
  ),
151
152
  children: [
152
153
  /* @__PURE__ */ c("span", { className: "truncate", children: e.label }),
153
- i && /* @__PURE__ */ c(B, { className: "size-4 shrink-0", "aria-hidden": !0 })
154
+ o && /* @__PURE__ */ c(B, { className: "size-4 shrink-0", "aria-hidden": !0 })
154
155
  ]
155
156
  },
156
157
  e.value
@@ -2,7 +2,7 @@
2
2
  import { jsx as n, jsxs as b } from "react/jsx-runtime";
3
3
  import * as f from "react";
4
4
  import { cn as s } from "../lib/cn.js";
5
- const m = {
5
+ const g = {
6
6
  xs: "size-5 text-xs",
7
7
  sm: "size-8 text-xs",
8
8
  md: "size-10 text-xs",
@@ -12,46 +12,46 @@ const m = {
12
12
  full: "rounded-full",
13
13
  lg: "rounded-lg"
14
14
  };
15
- function v(t) {
16
- const e = t.trim().split(/\s+/).filter(Boolean);
15
+ function v(r) {
16
+ const e = r.trim().split(/\s+/).filter(Boolean);
17
17
  return e.length === 0 ? "" : e.length === 1 ? e[0].slice(0, 2).toUpperCase() : (e[0][0] + e[e.length - 1][0]).toUpperCase();
18
18
  }
19
- const g = [
20
- "bg-g9 text-action-primary-foreground",
21
- "bg-g10 text-action-primary-foreground",
22
- "bg-g11 text-action-primary-foreground",
23
- "bg-g4 text-g12"
19
+ const m = [
20
+ "bg-t9 text-action-primary-foreground",
21
+ "bg-t10 text-action-primary-foreground",
22
+ "bg-t11 text-action-primary-foreground",
23
+ "bg-t4 text-t12"
24
24
  ];
25
- function y(t) {
26
- const e = Array.from(t).reduce(
27
- (r, i) => r + i.charCodeAt(0),
25
+ function y(r) {
26
+ const e = Array.from(r).reduce(
27
+ (t, i) => t + i.charCodeAt(0),
28
28
  0
29
29
  );
30
- return g[e % g.length];
30
+ return m[e % m.length];
31
31
  }
32
32
  const N = f.forwardRef(
33
- ({ className: t, src: e, name: r, size: i = "md", radius: o = "full", ...a }, d) => {
34
- const l = r ? v(r) : "";
33
+ ({ className: r, src: e, name: t, size: i = "md", radius: o = "full", ...a }, d) => {
34
+ const l = t ? v(t) : "";
35
35
  return /* @__PURE__ */ n(
36
36
  "span",
37
37
  {
38
38
  ref: d,
39
39
  role: "img",
40
- "aria-label": r,
40
+ "aria-label": t,
41
41
  className: s(
42
42
  "relative inline-flex shrink-0 select-none items-center justify-center overflow-hidden font-normal",
43
- // Images sit on the neutral fill; initials use the ADS green ramp.
44
- e || !r ? "bg-fill text-fill-foreground" : y(r),
45
- m[i],
43
+ // Images sit on the neutral fill; initials use the ADS teal ramp.
44
+ e || !t ? "bg-fill text-fill-foreground" : y(t),
45
+ g[i],
46
46
  p[o],
47
- t
47
+ r
48
48
  ),
49
49
  ...a,
50
50
  children: e ? /* @__PURE__ */ n(
51
51
  "img",
52
52
  {
53
53
  src: e,
54
- alt: r ?? "",
54
+ alt: t ?? "",
55
55
  className: "size-full object-cover"
56
56
  }
57
57
  ) : /* @__PURE__ */ n("span", { "aria-hidden": !0, children: l })
@@ -61,13 +61,13 @@ const N = f.forwardRef(
61
61
  );
62
62
  N.displayName = "Avatar";
63
63
  const A = f.forwardRef(
64
- ({ className: t, max: e, size: r = "md", radius: i = "full", children: o, ...a }, d) => {
64
+ ({ className: r, max: e, size: t = "md", radius: i = "full", children: o, ...a }, d) => {
65
65
  const l = f.Children.toArray(o), c = typeof e == "number" ? l.length - e : 0, h = typeof e == "number" ? l.slice(0, e) : l;
66
66
  return /* @__PURE__ */ b(
67
67
  "div",
68
68
  {
69
69
  ref: d,
70
- className: s("flex items-center", t),
70
+ className: s("flex items-center", r),
71
71
  ...a,
72
72
  children: [
73
73
  h.map((x, u) => /* @__PURE__ */ n(
@@ -89,7 +89,7 @@ const A = f.forwardRef(
89
89
  className: s(
90
90
  "relative inline-flex shrink-0 select-none items-center justify-center overflow-hidden font-normal",
91
91
  "bg-muted text-muted-foreground",
92
- m[r],
92
+ g[t],
93
93
  p[i]
94
94
  ),
95
95
  children: /* @__PURE__ */ n("span", { "aria-hidden": !0, children: `+${c}` })
@@ -7,7 +7,7 @@ export interface BrandMarkProps extends React.SVGProps<SVGSVGElement> {
7
7
  * BrandMark — the growth mark as a static logo that comes alive on hover:
8
8
  * while the wrapping `group/brand` link is hovered, the nine cells dim and
9
9
  * shrink in the brand film's staggered blip loop (rest state is the solid
10
- * mark). Inherits `currentColor`; size with a `size-*` class. Keyframes +
10
+ * mark). Defaults to brand teal; size with a `size-*` class. Keyframes +
11
11
  * reduced-motion handling live in `src/styles/index.css` (`.ads-mark-cell`).
12
12
  */
13
13
  export declare function BrandMark({ className, hoverAnimate, ...props }: BrandMarkProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { cn as r } from "../lib/cn.js";
4
- const s = [
3
+ import { cn as H } from "../lib/cn.js";
4
+ const t = [
5
5
  { d: "M31.1845 32.5508C31.1845 33.1031 30.7368 33.5508 30.1845 33.5508H1.00104C0.287428 33.5508 -0.196523 32.8248 0.0779916 32.1661L13.2269 0.615317C13.3822 0.242707 13.7463 0 14.15 0H30.1845C30.7368 0 31.1845 0.447715 31.1845 1V32.5508Z", delay: 0.55 },
6
6
  { d: "M68.4648 32.5508C68.4648 33.1031 68.0171 33.5508 67.4648 33.5508H38.3042C37.5846 33.5508 37.1006 32.8136 37.3866 32.1533L51.0553 0.602474C51.2138 0.236721 51.5743 0 51.9729 0H67.4648C68.0171 0 68.4648 0.447715 68.4648 1V32.5508Z", delay: 0.1 },
7
7
  { d: "M103.87 32.5508C103.87 33.1031 103.422 33.5508 102.87 33.5508H73.7702C73.0352 33.5508 72.5514 32.7845 72.8673 32.1209L87.8906 0.570086C88.0564 0.221833 88.4078 0 88.7935 0H102.87C103.422 0 103.87 0.447715 103.87 1V32.5508Z", delay: 0.8 },
@@ -11,8 +11,8 @@ const s = [
11
11
  { d: "M30.6757 104.001C30.6757 104.553 30.228 105.001 29.6757 105.001H1.70344C0.797433 105.001 0.358418 103.893 1.01872 103.272L24.0355 81.6472C24.2209 81.473 24.4658 81.376 24.7202 81.376H29.6757C30.228 81.376 30.6757 81.8237 30.6757 82.376V104.001Z", delay: 0.2 },
12
12
  { d: "M67.4287 104.001C67.4287 104.553 66.9809 105.001 66.4287 105.001H38.2664C37.387 105.001 36.9358 103.948 37.5426 103.311L58.1566 81.686C58.3453 81.488 58.6069 81.376 58.8804 81.376H66.4287C66.9809 81.376 67.4287 81.8237 67.4287 82.376V104.001Z", delay: 0.9 },
13
13
  { d: "M104.182 104.001C104.182 104.553 103.734 105.001 103.182 105.001H74.834C73.9838 105.001 73.5214 104.007 74.0691 103.357L92.2803 81.7318C92.4704 81.5062 92.7503 81.376 93.0452 81.376H103.182C103.734 81.376 104.182 81.8237 104.182 82.376V104.001Z", delay: 0.45 }
14
- ], L = [0.26, 0.13, 0, 0.39, 0.26, 0.13, 0.52, 0.39, 0.26];
15
- function i({
14
+ ], s = [0.26, 0.13, 0, 0.39, 0.26, 0.13, 0.52, 0.39, 0.26];
15
+ function o({
16
16
  className: a,
17
17
  hoverAnimate: C = !0,
18
18
  ...l
@@ -22,15 +22,15 @@ function i({
22
22
  {
23
23
  viewBox: "0 0 105 105",
24
24
  "aria-hidden": !0,
25
- className: r("shrink-0", a),
25
+ className: H("shrink-0 text-brand", a),
26
26
  ...l,
27
- children: s.map(({ d: H }, d) => /* @__PURE__ */ e(
27
+ children: t.map(({ d: r }, d) => /* @__PURE__ */ e(
28
28
  "path",
29
29
  {
30
- d: H,
30
+ d: r,
31
31
  fill: "currentColor",
32
32
  className: C ? "ads-mark-cell" : void 0,
33
- style: C ? { "--blip-delay": `${L[d]}s` } : void 0
33
+ style: C ? { "--blip-delay": `${s[d]}s` } : void 0
34
34
  },
35
35
  d
36
36
  ))
@@ -38,5 +38,5 @@ function i({
38
38
  );
39
39
  }
40
40
  export {
41
- i as BrandMark
41
+ o as BrandMark
42
42
  };
@@ -6,7 +6,7 @@ import { MotionConfig as We, AnimatePresence as ze, motion as _e } from "motion/
6
6
  import { cn as $ } from "../lib/cn.js";
7
7
  import { floatVariants as je } from "../lib/motion.js";
8
8
  const U = (t) => `var(--color-chart-${t % 6 + 1})`, ee = (t) => U(t), ne = "var(--chart-context)", me = { fillOpacity: "var(--chart-active-bar-opacity)" }, Y = 2.5, He = 2.5, W = {
9
- primary: { ref: "var(--brand)", pill: "bg-fill text-fill-foreground" },
9
+ primary: { ref: "var(--brand)", pill: "bg-action-primary-soft text-brand-text" },
10
10
  success: { ref: "var(--color-success-600)", pill: "bg-success-50 text-success-700" },
11
11
  warning: { ref: "var(--color-warning-500)", pill: "bg-warning-50 text-warning-700" },
12
12
  danger: { ref: "var(--color-danger-500)", pill: "bg-danger-50 text-danger-700" },
@@ -190,7 +190,7 @@ function Ue({
190
190
  y: n,
191
191
  dy: "0.35em",
192
192
  textAnchor: "middle",
193
- className: "pointer-events-none fill-brand-foreground text-xs font-medium select-none",
193
+ className: "pointer-events-none fill-brand-foreground text-s font-medium select-none",
194
194
  children: a
195
195
  }
196
196
  )
@@ -221,7 +221,7 @@ function Ye({ hovered: t, frameWidth: n, format: a }) {
221
221
  "span",
222
222
  {
223
223
  "aria-hidden": !0,
224
- className: "flex size-4.5 shrink-0 items-center justify-center rounded-full text-xs font-medium text-brand-foreground",
224
+ className: "flex size-4.5 shrink-0 items-center justify-center rounded-full text-s font-medium text-brand-foreground",
225
225
  style: { background: W[t.ann.color ?? "primary"].ref },
226
226
  children: t.n
227
227
  }
@@ -326,7 +326,7 @@ function X({
326
326
  "aria-label": `Toggle ${r.label} series`,
327
327
  onClick: () => i(r.key),
328
328
  className: $(
329
- "inline-flex cursor-pointer items-center gap-1.5 rounded-sm text-xs outline-none",
329
+ "inline-flex cursor-pointer items-center gap-1.5 rounded-sm text-s outline-none",
330
330
  "transition-colors duration-150 ease-out motion-reduce:transition-none",
331
331
  "focus-visible:ring-2 focus-visible:ring-ring",
332
332
  r.hidden ? "text-tertiary" : "text-secondary hover:text-foreground"
@@ -347,7 +347,7 @@ function X({
347
347
  ]
348
348
  },
349
349
  r.label
350
- ) : /* @__PURE__ */ A("span", { className: "inline-flex items-center gap-1.5 text-xs text-secondary", children: [
350
+ ) : /* @__PURE__ */ A("span", { className: "inline-flex items-center gap-1.5 text-s text-secondary", children: [
351
351
  /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "size-2 rounded-dot", style: { background: r.color } }),
352
352
  r.label
353
353
  ] }, r.label)
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { jsxs as v, jsx as e } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { motion as x, MotionConfig as w, AnimatePresence as C } from "motion/react";
4
+ import { motion as h, MotionConfig as w, AnimatePresence as C } from "motion/react";
5
5
  import { Check as M, Minus as N } from "../lib/icons.js";
6
6
  import { cn as p } from "../lib/cn.js";
7
7
  import { Field as z } from "./field.js";
8
8
  import { checkDrawTransition as b } from "../lib/motion.js";
9
- const R = x.create(M), j = x.create(N), G = {
9
+ const R = h.create(M), j = h.create(N), G = {
10
10
  sm: "size-4 [&_svg]:size-3",
11
11
  md: "size-4.5 [&_svg]:size-3.5"
12
12
  }, I = t.forwardRef(
13
13
  ({
14
- className: a,
14
+ className: s,
15
15
  children: o,
16
16
  indeterminate: r = !1,
17
17
  size: l = "md",
@@ -19,32 +19,32 @@ const R = x.create(M), j = x.create(N), G = {
19
19
  checked: n,
20
20
  defaultChecked: d = !1,
21
21
  onChange: i,
22
- ...h
22
+ ...x
23
23
  }, k) => {
24
- const s = t.useRef(null), f = n !== void 0, [g, y] = t.useState(d), m = f ? n : g;
25
- return t.useImperativeHandle(k, () => s.current), t.useEffect(() => {
26
- s.current && (s.current.indeterminate = r);
24
+ const a = t.useRef(null), m = n !== void 0, [g, y] = t.useState(d), f = m ? n : g;
25
+ return t.useImperativeHandle(k, () => a.current), t.useEffect(() => {
26
+ a.current && (a.current.indeterminate = r);
27
27
  }, [r]), /* @__PURE__ */ v(
28
28
  "label",
29
29
  {
30
30
  className: p(
31
- "group inline-flex items-center gap-2 text-xs text-foreground select-none",
31
+ "group inline-flex items-center gap-2 text-m text-foreground select-none",
32
32
  c ? "cursor-not-allowed opacity-50" : "cursor-pointer",
33
- a
33
+ s
34
34
  ),
35
35
  children: [
36
36
  /* @__PURE__ */ e(
37
37
  "input",
38
38
  {
39
- ref: s,
39
+ ref: a,
40
40
  type: "checkbox",
41
41
  disabled: c,
42
- checked: m,
42
+ checked: f,
43
43
  onChange: (u) => {
44
- f || y(u.target.checked), i == null || i(u);
44
+ m || y(u.target.checked), i == null || i(u);
45
45
  },
46
46
  className: "peer sr-only",
47
- ...h
47
+ ...x
48
48
  }
49
49
  ),
50
50
  /* @__PURE__ */ e(
@@ -59,7 +59,7 @@ const R = x.create(M), j = x.create(N), G = {
59
59
  "peer-focus-visible:ring-3 peer-focus-visible:ring-ring",
60
60
  G[l]
61
61
  ),
62
- children: /* @__PURE__ */ e(w, { reducedMotion: "user", children: /* @__PURE__ */ e(C, { initial: !1, mode: "wait", children: (m || r) && (r ? /* @__PURE__ */ e(
62
+ children: /* @__PURE__ */ e(w, { reducedMotion: "user", children: /* @__PURE__ */ e(C, { initial: !1, mode: "wait", children: (f || r) && (r ? /* @__PURE__ */ e(
63
63
  j,
64
64
  {
65
65
  initial: { opacity: 0, scale: 0.9 },
@@ -90,7 +90,7 @@ const R = x.create(M), j = x.create(N), G = {
90
90
  );
91
91
  I.displayName = "Checkbox";
92
92
  const S = t.forwardRef(
93
- ({ className: a, label: o, description: r, error: l, orientation: c = "vertical", children: n, ...d }, i) => /* @__PURE__ */ e(
93
+ ({ className: s, label: o, description: r, error: l, orientation: c = "vertical", children: n, ...d }, i) => /* @__PURE__ */ e(
94
94
  z,
95
95
  {
96
96
  ref: i,
@@ -98,7 +98,7 @@ const S = t.forwardRef(
98
98
  description: r,
99
99
  error: l,
100
100
  role: "group",
101
- className: a,
101
+ className: s,
102
102
  ...d,
103
103
  children: /* @__PURE__ */ e(
104
104
  "div",
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { jsxs as x, Fragment as h, jsx as e } from "react/jsx-runtime";
3
- import * as w from "react";
2
+ import { jsxs as x, Fragment as h, jsx as a } from "react/jsx-runtime";
3
+ import * as y from "react";
4
4
  import { cva as N } from "class-variance-authority";
5
- import { Close as y } from "../lib/icons.js";
5
+ import { Close as w } from "../lib/icons.js";
6
6
  import { cn as i } from "../lib/cn.js";
7
7
  const k = N(
8
8
  "inline-flex h-6 items-center gap-1 whitespace-nowrap rounded-[4px] border px-2 py-0 text-s font-medium leading-[var(--text-s--line-height)]",
@@ -24,14 +24,14 @@ const k = N(
24
24
  compoundVariants: [
25
25
  // solid — the default tinted surface
26
26
  { variant: "solid", color: "default", className: "border-wg6 bg-wg2 text-muted-foreground" },
27
- { variant: "solid", color: "primary", className: "border-wg5 bg-fill text-fill-foreground" },
27
+ { variant: "solid", color: "primary", className: "border-brand bg-action-primary-soft text-brand-text" },
28
28
  { variant: "solid", color: "success", className: "border-success-400 bg-success-50 text-success-700" },
29
29
  { variant: "solid", color: "warning", className: "border-warning-300 bg-warning-50 text-warning-700" },
30
30
  { variant: "solid", color: "danger", className: "border-danger-300 bg-danger-50 text-danger-700" },
31
31
  { variant: "solid", color: "info", className: "border-info-300 bg-info-50 text-info-700" },
32
32
  // outline
33
33
  { variant: "outline", color: "default", className: "border-border-strong bg-card text-foreground" },
34
- { variant: "outline", color: "primary", className: "border-border-strong bg-card text-foreground" },
34
+ { variant: "outline", color: "primary", className: "border-brand bg-card text-brand-text" },
35
35
  { variant: "outline", color: "success", className: "border-success-400 bg-success-50 text-success-700" },
36
36
  { variant: "outline", color: "warning", className: "border-warning-400 bg-warning-50 text-warning-700" },
37
37
  { variant: "outline", color: "danger", className: "border-danger-400 bg-danger-50 text-danger-700" },
@@ -41,63 +41,63 @@ const k = N(
41
41
  }
42
42
  ), z = {
43
43
  default: "bg-muted-foreground",
44
- primary: "bg-foreground",
44
+ primary: "bg-brand",
45
45
  success: "bg-success",
46
46
  warning: "bg-warning",
47
47
  danger: "bg-danger",
48
48
  info: "bg-info"
49
- }, j = w.forwardRef(
49
+ }, j = y.forwardRef(
50
50
  ({
51
- className: u,
52
- variant: b = "solid",
53
- color: o = "default",
54
- interaction: f,
55
- isPressable: m = !1,
56
- onClose: r,
57
- startContent: t,
58
- avatar: a,
51
+ className: g,
52
+ variant: u = "solid",
53
+ color: t = "default",
54
+ interaction: m,
55
+ isPressable: f = !1,
56
+ onClose: e,
57
+ startContent: o,
58
+ avatar: r,
59
59
  showDot: p = !1,
60
60
  children: v,
61
61
  ...s
62
62
  }, c) => {
63
- const n = r ? "actionable" : f ?? (m ? "actionable" : "non-actionable"), l = n === "actionable" && !r, d = i(
64
- k({ variant: b, color: o }),
65
- a && "pl-1",
66
- r && "pr-1.5",
67
- l && "cursor-pointer select-none shadow-100 outline-none transition-[background,border,color,box-shadow,transform] duration-150 ease-out data-[interaction=actionable]:border-action-primary data-[interaction=actionable]:bg-card data-[interaction=actionable]:text-action-primary-text hover:-translate-y-px hover:bg-action-primary-soft hover:shadow-200 active:translate-y-0 active:scale-[0.97] active:bg-action-primary-soft aria-pressed:border-success-400! aria-pressed:bg-success-50! aria-pressed:text-success-700! focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background motion-reduce:transition-none motion-reduce:hover:translate-y-0 motion-reduce:active:scale-100",
68
- u
69
- ), g = /* @__PURE__ */ x(h, { children: [
70
- a && /* @__PURE__ */ e("span", { className: "-ml-0.5 inline-flex shrink-0", children: a }),
71
- p && /* @__PURE__ */ e(
63
+ const n = e ? "actionable" : m ?? (f ? "actionable" : "non-actionable"), l = n === "actionable" && !e, d = i(
64
+ k({ variant: u, color: t }),
65
+ r && "pl-1",
66
+ e && "pr-1.5",
67
+ l && "cursor-pointer select-none shadow-100 outline-none transition-[background,border,color,box-shadow,transform] duration-150 ease-out data-[interaction=actionable]:border-action-primary data-[interaction=actionable]:bg-card data-[interaction=actionable]:text-action-primary-text hover:-translate-y-px hover:bg-action-primary-soft hover:shadow-200 active:translate-y-0 active:scale-[0.97] active:bg-action-primary-soft aria-pressed:border-brand! aria-pressed:bg-action-primary-soft! aria-pressed:text-brand-text! focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background motion-reduce:transition-none motion-reduce:hover:translate-y-0 motion-reduce:active:scale-100",
68
+ g
69
+ ), b = /* @__PURE__ */ x(h, { children: [
70
+ r && /* @__PURE__ */ a("span", { className: "-ml-0.5 inline-flex shrink-0", children: r }),
71
+ p && /* @__PURE__ */ a(
72
72
  "span",
73
73
  {
74
74
  "aria-hidden": !0,
75
75
  className: i(
76
76
  "size-1.5",
77
77
  "rounded-dot",
78
- z[o ?? "default"]
78
+ z[t ?? "default"]
79
79
  )
80
80
  }
81
81
  ),
82
- t && /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 [&_svg]:size-3.5", children: t }),
82
+ o && /* @__PURE__ */ a("span", { className: "inline-flex shrink-0 [&_svg]:size-3.5", children: o }),
83
83
  v,
84
- r && /* @__PURE__ */ e(
84
+ e && /* @__PURE__ */ a(
85
85
  "button",
86
86
  {
87
87
  type: "button",
88
88
  "aria-label": "Remove",
89
- onClick: r,
89
+ onClick: e,
90
90
  className: i(
91
91
  "inline-flex size-4 shrink-0 items-center justify-center rounded-full",
92
92
  "opacity-60 transition-opacity hover:opacity-100",
93
93
  "outline-none focus-visible:ring-3 focus-visible:ring-ring",
94
94
  "[&_svg]:size-3"
95
95
  ),
96
- children: /* @__PURE__ */ e(y, { "aria-hidden": !0 })
96
+ children: /* @__PURE__ */ a(w, { "aria-hidden": !0 })
97
97
  }
98
98
  )
99
99
  ] });
100
- return l ? /* @__PURE__ */ e(
100
+ return l ? /* @__PURE__ */ a(
101
101
  "button",
102
102
  {
103
103
  ref: c,
@@ -105,16 +105,16 @@ const k = N(
105
105
  "data-interaction": n,
106
106
  className: d,
107
107
  ...s,
108
- children: g
108
+ children: b
109
109
  }
110
- ) : /* @__PURE__ */ e(
110
+ ) : /* @__PURE__ */ a(
111
111
  "span",
112
112
  {
113
113
  ref: c,
114
114
  "data-interaction": n,
115
115
  className: d,
116
116
  ...s,
117
- children: g
117
+ children: b
118
118
  }
119
119
  );
120
120
  }
@@ -4,38 +4,40 @@ import * as t from "react";
4
4
  import { Collapsible as r } from "radix-ui";
5
5
  import { MotionConfig as u, AnimatePresence as g, motion as h } from "motion/react";
6
6
  import { springDisclosure as y } from "../lib/motion.js";
7
- const C = t.createContext(!1), v = t.forwardRef(({ children: o, open: i, defaultOpen: a = !1, onOpenChange: e, ...s }, n) => {
8
- const c = i !== void 0, [f, b] = t.useState(a), p = c ? i : f, m = t.useCallback(
7
+ import { cn as x } from "../lib/cn.js";
8
+ const m = t.createContext(!1), v = t.forwardRef(({ children: o, open: i, defaultOpen: a = !1, onOpenChange: e, ...s }, n) => {
9
+ const c = i !== void 0, [f, C] = t.useState(a), p = c ? i : f, b = t.useCallback(
9
10
  (d) => {
10
- c || b(d), e == null || e(d);
11
+ c || C(d), e == null || e(d);
11
12
  },
12
13
  [c, e]
13
14
  );
14
- return /* @__PURE__ */ l(C.Provider, { value: p, children: /* @__PURE__ */ l(
15
+ return /* @__PURE__ */ l(m.Provider, { value: p, children: /* @__PURE__ */ l(
15
16
  r.Root,
16
17
  {
17
18
  ref: n,
18
19
  "data-slot": "collapsible",
19
20
  open: p,
20
- onOpenChange: m,
21
+ onOpenChange: b,
21
22
  ...s,
22
23
  children: o
23
24
  }
24
25
  ) });
25
26
  });
26
27
  v.displayName = "Collapsible";
27
- const x = t.forwardRef(({ children: o, ...i }, a) => /* @__PURE__ */ l(
28
+ const N = t.forwardRef(({ className: o, children: i, ...a }, e) => /* @__PURE__ */ l(
28
29
  r.CollapsibleTrigger,
29
30
  {
30
- ref: a,
31
+ ref: e,
31
32
  "data-slot": "collapsible-trigger",
32
- ...i,
33
- children: o
33
+ className: x("text-m", o),
34
+ ...a,
35
+ children: i
34
36
  }
35
37
  ));
36
- x.displayName = "CollapsibleTrigger";
38
+ N.displayName = "CollapsibleTrigger";
37
39
  const R = t.forwardRef(({ children: o, asChild: i, forceMount: a, ...e }, s) => {
38
- const n = t.useContext(C);
40
+ const n = t.useContext(m);
39
41
  return i ? /* @__PURE__ */ l(
40
42
  r.CollapsibleContent,
41
43
  {
@@ -71,5 +73,5 @@ R.displayName = "CollapsibleContent";
71
73
  export {
72
74
  v as Collapsible,
73
75
  R as CollapsibleContent,
74
- x as CollapsibleTrigger
76
+ N as CollapsibleTrigger
75
77
  };