@actioneer/ads 0.5.9 → 0.7.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.
Files changed (116) hide show
  1. package/components/ai-elements/agent-trace.d.ts +2 -2
  2. package/components/ai-elements/agent-trace.js +163 -104
  3. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  4. package/components/ai-elements/chain-of-thought.js +1 -1
  5. package/components/ai-elements/index.d.ts +0 -5
  6. package/components/ai-elements/inline-citation.js +1 -1
  7. package/components/alert.d.ts +6 -6
  8. package/components/alert.js +89 -53
  9. package/components/answer-sources.d.ts +2 -6
  10. package/components/answer-sources.js +58 -60
  11. package/components/answer.d.ts +5 -0
  12. package/components/answer.js +311 -271
  13. package/components/assistant-ui/composer-harness.js +11 -14
  14. package/components/assistant-ui/composer.d.ts +3 -1
  15. package/components/assistant-ui/composer.js +148 -144
  16. package/components/assistant-ui/index.d.ts +0 -3
  17. package/components/assistant-ui/thread-context.d.ts +3 -1
  18. package/components/assistant-ui/thread.js +50 -42
  19. package/components/avatar.js +42 -42
  20. package/components/badge.d.ts +5 -6
  21. package/components/badge.js +13 -76
  22. package/components/body-page-header.d.ts +15 -0
  23. package/components/body-page-header.js +24 -0
  24. package/components/brand-loader.d.ts +0 -3
  25. package/components/brand-loader.js +10 -32
  26. package/components/breadcrumbs.d.ts +1 -8
  27. package/components/breadcrumbs.js +65 -78
  28. package/components/button.d.ts +1 -1
  29. package/components/button.js +55 -49
  30. package/components/card.js +19 -18
  31. package/components/chart.js +526 -503
  32. package/components/chip.d.ts +13 -1
  33. package/components/chip.js +93 -80
  34. package/components/collection-header.d.ts +17 -0
  35. package/components/collection-header.js +31 -0
  36. package/components/connector-card.d.ts +6 -6
  37. package/components/connector-card.js +31 -32
  38. package/components/date-range-picker.d.ts +26 -0
  39. package/components/date-range-picker.js +223 -0
  40. package/components/drawer.d.ts +19 -3
  41. package/components/drawer.js +143 -116
  42. package/components/dropdown.d.ts +1 -2
  43. package/components/dropdown.js +88 -89
  44. package/components/field.js +39 -34
  45. package/components/file-dropzone.js +1 -1
  46. package/components/index.d.ts +5 -4
  47. package/components/index.js +501 -546
  48. package/components/infinite-canvas.js +24 -24
  49. package/components/input-field.d.ts +18 -3
  50. package/components/input-field.js +88 -72
  51. package/components/input.js +16 -15
  52. package/components/modal.d.ts +31 -3
  53. package/components/modal.js +243 -169
  54. package/components/number-field.js +45 -42
  55. package/components/page-body.d.ts +12 -0
  56. package/components/page-body.js +18 -0
  57. package/components/pagination.js +36 -36
  58. package/components/panel.js +31 -28
  59. package/components/select.d.ts +21 -0
  60. package/components/select.js +189 -148
  61. package/components/setting-row.d.ts +6 -5
  62. package/components/setting-row.js +33 -32
  63. package/components/sidebar.d.ts +2 -0
  64. package/components/sidebar.js +165 -155
  65. package/components/skeleton.js +8 -7
  66. package/components/slider.js +1 -1
  67. package/components/surface-loader.d.ts +11 -0
  68. package/components/surface-loader.js +35 -0
  69. package/components/table.d.ts +16 -10
  70. package/components/table.js +426 -410
  71. package/components/tabs.d.ts +2 -0
  72. package/components/tabs.js +159 -294
  73. package/components/textarea.js +9 -9
  74. package/components/toast.d.ts +1 -1
  75. package/components/toast.js +181 -118
  76. package/components/tree.d.ts +5 -1
  77. package/components/tree.js +96 -63
  78. package/components/typography.d.ts +4 -4
  79. package/components/typography.js +13 -13
  80. package/components/ui/button.d.ts +1 -1
  81. package/components/ui/dialog.js +33 -33
  82. package/components/viz-charts.js +186 -183
  83. package/demo/components/add-to-artifact.js +8 -10
  84. package/fonts.css +2 -0
  85. package/lib/cn.js +11 -4
  86. package/lib/icons.d.ts +4 -0
  87. package/lib/icons.js +107 -106
  88. package/lib/interactive.d.ts +1 -1
  89. package/llms.txt +115 -152
  90. package/manifest.json +13730 -1084
  91. package/package.json +4 -2
  92. package/styles.css +365 -225
  93. package/theme.css +315 -176
  94. package/components/agent-icon.d.ts +0 -76
  95. package/components/agent-icon.js +0 -265
  96. package/components/ai-elements/queue.d.ts +0 -60
  97. package/components/ai-elements/queue.js +0 -193
  98. package/components/ai-elements/speech-input.d.ts +0 -16
  99. package/components/ai-elements/speech-input.js +0 -151
  100. package/components/ai-elements/task-progress.d.ts +0 -41
  101. package/components/ai-elements/task-progress.js +0 -224
  102. package/components/ai-elements/task.d.ts +0 -39
  103. package/components/ai-elements/task.js +0 -105
  104. package/components/ai-elements/voice.d.ts +0 -90
  105. package/components/ai-elements/voice.js +0 -496
  106. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  107. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  108. package/components/assistant-ui/suggestions.d.ts +0 -7
  109. package/components/assistant-ui/suggestions.js +0 -19
  110. package/components/assistant-ui/voice.d.ts +0 -18
  111. package/components/link.d.ts +0 -14
  112. package/components/link.js +0 -72
  113. package/components/navbar.d.ts +0 -15
  114. package/components/navbar.js +0 -68
  115. package/components/pixel-icon.d.ts +0 -37
  116. package/components/pixel-icon.js +0 -859
@@ -1,124 +1,111 @@
1
1
  "use client";
2
- import { jsxs as h, jsx as e, Fragment as B } from "react/jsx-runtime";
3
- import * as t from "react";
4
- import { ArrowLeft as y } from "../lib/icons.js";
5
- import { cn as c } from "../lib/cn.js";
6
- const w = t.createContext({
2
+ import { jsxs as v, jsx as t, Fragment as k } from "react/jsx-runtime";
3
+ import * as r from "react";
4
+ import { cn as d } from "../lib/cn.js";
5
+ const N = r.createContext({
7
6
  count: 0
8
- }), C = t.createContext(0);
9
- function R(s) {
10
- let n = (s == null ? void 0 : s.parentElement) ?? null;
7
+ }), w = r.createContext(0);
8
+ function B(o) {
9
+ let n = (o == null ? void 0 : o.parentElement) ?? null;
11
10
  for (; n; ) {
12
- const r = getComputedStyle(n).overflowY;
13
- if (r === "auto" || r === "scroll") return n;
11
+ const e = getComputedStyle(n).overflowY;
12
+ if (e === "auto" || e === "scroll") return n;
14
13
  n = n.parentElement;
15
14
  }
16
15
  return null;
17
16
  }
18
- const z = t.forwardRef(
17
+ const C = r.forwardRef(
19
18
  ({
20
- className: s,
19
+ className: o,
21
20
  children: n,
22
- sticky: r,
23
- onBack: u,
24
- backLabel: x = "Back",
25
- actions: m,
26
- center: f,
27
- meta: b,
28
- ...v
29
- }, l) => {
30
- const a = t.Children.toArray(n), i = t.useRef(null), p = t.useCallback(
31
- (o) => {
32
- i.current = o, typeof l == "function" ? l(o) : l && (l.current = o);
21
+ sticky: e,
22
+ actions: c,
23
+ center: i,
24
+ meta: f,
25
+ ...x
26
+ }, a) => {
27
+ const p = r.Children.toArray(n), b = r.useRef(null), u = r.useCallback(
28
+ (s) => {
29
+ b.current = s, typeof a == "function" ? a(s) : a && (a.current = s);
33
30
  },
34
- [l]
35
- ), [N, k] = t.useState(!1);
36
- return t.useEffect(() => {
37
- if (!r) return;
38
- const o = R(i.current), d = o ?? window, g = () => k((o ? o.scrollTop : window.scrollY) > 2);
39
- return g(), d.addEventListener("scroll", g, { passive: !0 }), () => d.removeEventListener("scroll", g);
40
- }, [r]), /* @__PURE__ */ h(
31
+ [a]
32
+ ), [l, h] = r.useState(!1);
33
+ return r.useEffect(() => {
34
+ if (!e) return;
35
+ const s = B(b.current), m = s ?? window, g = () => h((s ? s.scrollTop : window.scrollY) > 2);
36
+ return g(), m.addEventListener("scroll", g, { passive: !0 }), () => m.removeEventListener("scroll", g);
37
+ }, [e]), /* @__PURE__ */ v(
41
38
  "nav",
42
39
  {
43
- ref: p,
40
+ ref: u,
44
41
  "aria-label": "Breadcrumb",
45
- "data-stuck": r ? N ? "true" : "false" : void 0,
46
- className: c(
42
+ "data-stuck": e ? l ? "true" : "false" : void 0,
43
+ className: d(
47
44
  "relative flex w-full items-center",
48
- r && "sticky top-0 z-40 bg-background transition-[border-color] duration-150 ease-out motion-reduce:transition-none",
45
+ e && "sticky top-0 z-40 bg-card transition-[border-color] duration-150 ease-out motion-reduce:transition-none",
49
46
  // Sticky offsets resolve against the scrollport's PADDING box, so in
50
47
  // a padded panel the pinned trail sits below a strip the content
51
48
  // would otherwise scroll through. This cover extends the trail's own
52
49
  // background over that gap (a no-op at rest, where the strip is the
53
50
  // panel's empty padding).
54
- r && "before:absolute before:inset-x-0 before:-top-8 before:h-8 before:bg-inherit before:content-['']",
55
- r && (N ? "border-b border-border" : "border-b border-transparent"),
56
- s
51
+ e && "before:absolute before:inset-x-0 before:-top-8 before:h-8 before:bg-inherit before:content-['']",
52
+ e && (l ? "border-b border-border" : "border-b border-transparent"),
53
+ o
57
54
  ),
58
- ...v,
55
+ ...x,
59
56
  children: [
60
- u && /* @__PURE__ */ e(
61
- "button",
62
- {
63
- type: "button",
64
- onClick: u,
65
- "aria-label": x,
66
- className: c(
67
- "mr-1 inline-flex size-6 shrink-0 items-center justify-center rounded-sm text-muted-foreground",
68
- "transition-colors hover:bg-fill hover:text-foreground",
69
- "outline-none focus-visible:ring-3 focus-visible:ring-ring [&_svg]:size-4"
70
- ),
71
- children: /* @__PURE__ */ e(y, { "aria-hidden": !0 })
72
- }
73
- ),
74
- /* @__PURE__ */ e("ol", { className: "flex min-w-0 items-center gap-1.5 text-base", children: /* @__PURE__ */ e(w.Provider, { value: { count: a.length }, children: a.map((o, d) => /* @__PURE__ */ e(C.Provider, { value: d, children: o }, d)) }) }),
75
- b && /* @__PURE__ */ e("div", { className: "ml-4 flex min-w-0 shrink items-center gap-3 text-xs text-muted-foreground", children: b }),
76
- f && /* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 z-50 flex -translate-x-1/2 -translate-y-1/2 items-center", children: f }),
77
- m && /* @__PURE__ */ e("div", { className: "ml-auto flex shrink-0 items-center gap-2 pl-4", children: m })
57
+ /* @__PURE__ */ t("ol", { className: "flex min-w-0 shrink items-center gap-1.5 text-base", children: /* @__PURE__ */ t(N.Provider, { value: { count: p.length }, children: p.map((s, m) => /* @__PURE__ */ t(w.Provider, { value: m, children: s }, m)) }) }),
58
+ f && /* @__PURE__ */ t("div", { className: "ml-4 flex shrink-0 items-center gap-3 text-xs text-muted-foreground", children: f }),
59
+ i && /* @__PURE__ */ t("div", { className: "absolute left-1/2 top-1/2 z-50 flex -translate-x-1/2 -translate-y-1/2 items-center", children: i }),
60
+ c && /* @__PURE__ */ t("div", { className: "ml-auto flex shrink-0 items-center gap-2 pl-4", children: c })
78
61
  ]
79
62
  }
80
63
  );
81
64
  }
82
65
  );
83
- z.displayName = "Breadcrumbs";
84
- const E = t.forwardRef(({ className: s, href: n, isCurrent: r, icon: u, children: x, ...m }, f) => {
85
- const { count: b } = t.useContext(w), l = t.useContext(C) === b - 1, a = "inline-flex items-center gap-1.5", i = /* @__PURE__ */ h(B, { children: [
86
- u && /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "flex shrink-0 items-center [&_svg]:size-4", children: u }),
87
- x
88
- ] }), p = r ? /* @__PURE__ */ e(
66
+ C.displayName = "Breadcrumbs";
67
+ const R = r.forwardRef(({ className: o, href: n, isCurrent: e, icon: c, children: i, ...f }, x) => {
68
+ const { count: a } = r.useContext(N), b = r.useContext(w) === a - 1, u = "inline-flex items-center gap-1.5", l = /* @__PURE__ */ v(k, { children: [
69
+ c && /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "flex shrink-0 items-center [&_svg]:size-4", children: c }),
70
+ e ? /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: i }) : i
71
+ ] }), h = e ? /* @__PURE__ */ t(
89
72
  "span",
90
73
  {
91
74
  "aria-current": "page",
92
- className: c(a, "font-normal text-primary"),
93
- children: i
75
+ className: d(u, "min-w-0 text-base font-medium text-primary"),
76
+ children: l
94
77
  }
95
- ) : n ? /* @__PURE__ */ e(
78
+ ) : n ? /* @__PURE__ */ t(
96
79
  "a",
97
80
  {
98
81
  href: n,
99
- className: c(
100
- a,
82
+ className: d(
83
+ u,
101
84
  "font-normal text-muted-foreground transition-colors hover:text-foreground",
102
85
  "outline-none focus-visible:ring-3 focus-visible:ring-ring rounded-sm"
103
86
  ),
104
- children: i
87
+ children: l
105
88
  }
106
- ) : /* @__PURE__ */ e("span", { className: c(a, "text-muted-foreground"), children: i });
107
- return /* @__PURE__ */ h(
89
+ ) : /* @__PURE__ */ t("span", { className: d(u, "text-muted-foreground"), children: l });
90
+ return /* @__PURE__ */ v(
108
91
  "li",
109
92
  {
110
- ref: f,
111
- className: c("flex items-center gap-1.5", s),
112
- ...m,
93
+ ref: x,
94
+ className: d(
95
+ "flex items-center gap-1.5",
96
+ e ? "min-w-0 shrink" : "shrink-0",
97
+ o
98
+ ),
99
+ ...f,
113
100
  children: [
114
- p,
115
- !l && /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "shrink-0 select-none text-border-strong", children: "/" })
101
+ h,
102
+ !b && /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "shrink-0 select-none text-border-strong", children: "/" })
116
103
  ]
117
104
  }
118
105
  );
119
106
  });
120
- E.displayName = "BreadcrumbItem";
107
+ R.displayName = "BreadcrumbItem";
121
108
  export {
122
- E as BreadcrumbItem,
123
- z as Breadcrumbs
109
+ R as BreadcrumbItem,
110
+ C as Breadcrumbs
124
111
  };
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  export declare const buttonVariants: (props?: ({
4
- variant?: "danger" | "soft" | "outline" | "link" | "solid" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "link" | "danger" | "outline" | "solid" | "secondary" | "ghost" | null | undefined;
5
5
  size?: "xs" | "sm" | "md" | "lg" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,75 +1,81 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as m } from "react/jsx-runtime";
3
- import * as b from "react";
4
- import { cva as v } from "class-variance-authority";
2
+ import { jsxs as t, jsx as m } from "react/jsx-runtime";
3
+ import * as p from "react";
4
+ import { cva as u } from "class-variance-authority";
5
5
  import { cn as n } from "../lib/cn.js";
6
- import { Spinner as f } from "./spinner.js";
7
- const p = v(
6
+ import { Spinner as v } from "./spinner.js";
7
+ const f = u(
8
8
  [
9
- "relative inline-flex items-center justify-center gap-2 whitespace-nowrap",
10
- "font-normal select-none",
9
+ "relative inline-flex h-8 items-center justify-center gap-2 whitespace-nowrap",
10
+ "cursor-pointer text-m font-medium select-none",
11
11
  "rounded-md border border-transparent",
12
12
  "transition-[background,border,color,box-shadow,transform] duration-150 ease-out motion-reduce:transition-none",
13
- "outline-none focus-visible:ring-3 focus-visible:ring-ring",
13
+ "outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
14
14
  // Press feedback: the button visibly answers the press (guide: any
15
15
  // pressable element scales down on :active). Movement is dropped under
16
16
  // reduced-motion; color/opacity feedback stays.
17
17
  "active:scale-[0.97] motion-reduce:active:scale-100",
18
- "disabled:pointer-events-none",
18
+ "disabled:cursor-default",
19
19
  "[&_svg]:pointer-events-none [&_svg]:shrink-0"
20
20
  ],
21
21
  {
22
22
  variants: {
23
23
  variant: {
24
- solid: "bg-brand text-brand-foreground shadow-[var(--inner-glow-cta)] hover:bg-brand-hover",
25
- secondary: "bg-fill text-fill-foreground shadow-[var(--inner-glow-fill)] hover:bg-muted",
26
- outline: "border-border bg-transparent text-foreground hover:border-border-strong hover:bg-muted",
27
- ghost: "bg-transparent text-foreground hover:bg-muted",
28
- soft: "bg-muted text-foreground shadow-[var(--inner-glow-fill)] hover:bg-accent",
29
- link: "bg-transparent text-foreground underline-offset-4 hover:underline active:scale-none",
30
- danger: "bg-danger text-danger-foreground hover:bg-danger/90 focus-visible:ring-danger/40"
24
+ solid: "bg-action-primary text-action-primary-foreground shadow-[var(--inner-glow-cta)] enabled:hover:bg-action-primary-hover enabled:active:bg-action-primary-hover",
25
+ secondary: "border-action-primary bg-transparent text-action-primary-text shadow-none enabled:hover:bg-action-primary-soft enabled:active:bg-action-primary-soft",
26
+ outline: "border-border bg-transparent text-foreground enabled:hover:border-action-primary enabled:hover:bg-action-primary-soft enabled:hover:text-action-primary-text enabled:active:border-action-primary enabled:active:bg-action-primary-soft enabled:active:text-action-primary-text",
27
+ ghost: "bg-transparent text-foreground enabled:hover:bg-action-primary-soft enabled:hover:text-action-primary-text enabled:active:bg-action-primary-soft enabled:active:text-action-primary-text",
28
+ link: "bg-transparent text-foreground underline-offset-4 enabled:hover:bg-action-primary-soft enabled:hover:text-action-primary-text enabled:hover:underline enabled:active:bg-action-primary-soft enabled:active:text-action-primary-text active:scale-none",
29
+ danger: "bg-danger text-danger-foreground shadow-[var(--inner-glow-cta)] enabled:hover:bg-danger/90 enabled:active:bg-danger/90 focus-visible:ring-danger/40"
31
30
  },
32
31
  size: {
33
- xs: "h-7 rounded-sm px-2.5 text-xs [&_svg]:size-3.5",
34
- sm: "h-8 rounded-sm px-3 text-xs [&_svg]:size-4",
35
- md: "h-10 rounded-md px-4 text-xs [&_svg]:size-4",
36
- lg: "h-11 rounded-md px-5 text-base [&_svg]:size-5",
37
- icon: "size-10 rounded-md [&_svg]:size-4",
38
- "icon-sm": "size-8 rounded-sm [&_svg]:size-4",
39
- "icon-xs": "size-7 rounded-sm [&_svg]:size-4"
32
+ xs: "rounded-sm px-2.5 [&_svg]:size-3.5",
33
+ sm: "rounded-sm px-3 [&_svg]:size-4",
34
+ md: "rounded-md px-3.5 [&_svg]:size-4",
35
+ lg: "rounded-md px-4 [&_svg]:size-5",
36
+ icon: "w-9 rounded-md [&_svg]:size-4",
37
+ "icon-sm": "w-8 rounded-sm [&_svg]:size-4",
38
+ "icon-xs": "w-7 rounded-sm [&_svg]:size-4"
40
39
  }
41
40
  },
42
41
  defaultVariants: { variant: "solid", size: "md" }
43
42
  }
44
- ), x = b.forwardRef(
43
+ ), x = {
44
+ solid: "disabled:border-transparent disabled:bg-action-primary disabled:text-action-primary-foreground disabled:shadow-none",
45
+ secondary: "disabled:border-action-primary disabled:bg-transparent disabled:text-action-primary-text disabled:shadow-none",
46
+ outline: "disabled:border-border disabled:bg-transparent disabled:text-foreground disabled:shadow-none",
47
+ ghost: "disabled:border-transparent disabled:bg-transparent disabled:text-foreground disabled:shadow-none",
48
+ link: "disabled:border-transparent disabled:bg-transparent disabled:text-foreground disabled:shadow-none",
49
+ danger: "disabled:border-transparent disabled:bg-danger disabled:text-danger-foreground disabled:shadow-none"
50
+ }, y = p.forwardRef(
45
51
  ({
46
52
  className: o,
47
- variant: t,
48
- size: s,
53
+ variant: r,
54
+ size: i,
49
55
  isLoading: e = !1,
50
- startContent: i,
51
- endContent: a,
52
- fullWidth: d,
53
- disabled: l,
54
- children: g,
55
- ...u
56
- }, c) => /* @__PURE__ */ r(
56
+ startContent: d,
57
+ endContent: s,
58
+ fullWidth: b,
59
+ disabled: a,
60
+ children: l,
61
+ ...c
62
+ }, g) => /* @__PURE__ */ t(
57
63
  "button",
58
64
  {
59
- ref: c,
60
- disabled: l || e,
65
+ ref: g,
66
+ disabled: a || e,
61
67
  "aria-busy": e || void 0,
68
+ "data-loading": e || void 0,
62
69
  className: n(
63
- p({ variant: t, size: s }),
64
- d && "w-full",
65
- // Real disabled fades; loading keeps the brand color
66
- e ? "opacity-100" : "disabled:opacity-50",
70
+ f({ variant: r, size: i }),
71
+ b && "w-full",
72
+ e ? x[r ?? "solid"] : a && "opacity-30",
67
73
  o
68
74
  ),
69
- ...u,
75
+ ...c,
70
76
  children: [
71
77
  e && /* @__PURE__ */ m(
72
- f,
78
+ v,
73
79
  {
74
80
  variant: "action",
75
81
  size: "sm",
@@ -77,17 +83,17 @@ const p = v(
77
83
  "aria-hidden": !0
78
84
  }
79
85
  ),
80
- /* @__PURE__ */ r(
86
+ /* @__PURE__ */ t(
81
87
  "span",
82
88
  {
83
89
  className: n(
84
- "inline-flex items-center gap-2",
90
+ "inline-flex items-center gap-1.5",
85
91
  e && "opacity-0"
86
92
  ),
87
93
  children: [
88
- i,
89
- g,
90
- a
94
+ d,
95
+ l,
96
+ s
91
97
  ]
92
98
  }
93
99
  )
@@ -95,8 +101,8 @@ const p = v(
95
101
  }
96
102
  )
97
103
  );
98
- x.displayName = "Button";
104
+ y.displayName = "Button";
99
105
  export {
100
- x as Button,
101
- p as buttonVariants
106
+ y as Button,
107
+ f as buttonVariants
102
108
  };
@@ -3,18 +3,19 @@ import { jsx as t } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
4
  import { cn as o } from "../lib/cn.js";
5
5
  const l = d.forwardRef(
6
- ({ className: r, isHoverable: e, isPressable: a, children: s, ...n }, i) => {
6
+ ({ className: r, isHoverable: a, isPressable: e, children: s, ...n }, i) => {
7
7
  const c = o(
8
8
  "bg-card text-card-foreground rounded-xl",
9
- (a || e) && "shadow-elevation transition-[box-shadow,transform] duration-150 ease-out motion-reduce:transition-none",
10
- e && "hover:-translate-y-0.5",
9
+ (e || a) && "shadow-elevation transition-[box-shadow,transform] duration-150 ease-out motion-reduce:transition-none",
10
+ a && "hover:-translate-y-0.5",
11
11
  r
12
12
  );
13
- return a ? /* @__PURE__ */ t(
13
+ return e ? /* @__PURE__ */ t(
14
14
  "button",
15
15
  {
16
16
  ref: i,
17
17
  type: "button",
18
+ "data-slot": "card",
18
19
  className: o(
19
20
  c,
20
21
  "w-full text-left cursor-pointer",
@@ -24,50 +25,50 @@ const l = d.forwardRef(
24
25
  ...n,
25
26
  children: s
26
27
  }
27
- ) : /* @__PURE__ */ t("div", { ref: i, className: c, ...n, children: s });
28
+ ) : /* @__PURE__ */ t("div", { ref: i, "data-slot": "card", className: c, ...n, children: s });
28
29
  }
29
30
  );
30
31
  l.displayName = "Card";
31
- const f = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t(
32
+ const f = d.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ t(
32
33
  "div",
33
34
  {
34
- ref: a,
35
+ ref: e,
35
36
  className: o("flex flex-col gap-1 px-5 pt-5", r),
36
- ...e
37
+ ...a
37
38
  }
38
39
  ));
39
40
  f.displayName = "CardHeader";
40
- const m = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t(
41
+ const m = d.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ t(
41
42
  "h3",
42
43
  {
43
- ref: a,
44
+ ref: e,
44
45
  className: o("text-base font-medium leading-none", r),
45
- ...e
46
+ ...a
46
47
  }
47
48
  ));
48
49
  m.displayName = "CardTitle";
49
- const p = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t(
50
+ const p = d.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ t(
50
51
  "p",
51
52
  {
52
- ref: a,
53
+ ref: e,
53
54
  className: o("text-xs text-muted-foreground", r),
54
- ...e
55
+ ...a
55
56
  }
56
57
  ));
57
58
  p.displayName = "CardDescription";
58
- const u = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t("div", { ref: a, className: o("px-5 py-4", r), ...e }));
59
+ const u = d.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ t("div", { ref: e, className: o("px-5 py-4", r), ...a }));
59
60
  u.displayName = "CardBody";
60
61
  const x = d.forwardRef(
61
- ({ className: r, withBorder: e, ...a }, s) => /* @__PURE__ */ t(
62
+ ({ className: r, withBorder: a, ...e }, s) => /* @__PURE__ */ t(
62
63
  "div",
63
64
  {
64
65
  ref: s,
65
66
  className: o(
66
67
  "flex items-center px-5 pb-5 pt-4",
67
- e && "border-t border-border",
68
+ a && "border-t border-border",
68
69
  r
69
70
  ),
70
- ...a
71
+ ...e
71
72
  }
72
73
  )
73
74
  );