@actioneer/ads 0.1.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 (231) hide show
  1. package/LICENSE +21 -0
  2. package/bin/ads-init.mjs +314 -0
  3. package/components/accordion.d.ts +13 -0
  4. package/components/accordion.js +91 -0
  5. package/components/agents-ui/agent-audio-visualizer-aura.d.ts +11 -0
  6. package/components/agents-ui/agent-audio-visualizer-aura.js +277 -0
  7. package/components/agents-ui/agent-audio-visualizer-wave.d.ts +12 -0
  8. package/components/agents-ui/agent-audio-visualizer-wave.js +203 -0
  9. package/components/agents-ui/react-shader-toy.d.ts +87 -0
  10. package/components/agents-ui/react-shader-toy.js +531 -0
  11. package/components/ai-elements/chain-of-thought.d.ts +30 -0
  12. package/components/ai-elements/chain-of-thought.js +182 -0
  13. package/components/ai-elements/index.d.ts +11 -0
  14. package/components/ai-elements/inline-citation.d.ts +44 -0
  15. package/components/ai-elements/inline-citation.js +314 -0
  16. package/components/ai-elements/message.d.ts +96 -0
  17. package/components/ai-elements/message.js +308 -0
  18. package/components/ai-elements/queue.d.ts +60 -0
  19. package/components/ai-elements/queue.js +193 -0
  20. package/components/ai-elements/reasoning.d.ts +26 -0
  21. package/components/ai-elements/reasoning.js +131 -0
  22. package/components/ai-elements/shimmer.d.ts +25 -0
  23. package/components/ai-elements/shimmer.js +44 -0
  24. package/components/ai-elements/speech-input.d.ts +16 -0
  25. package/components/ai-elements/speech-input.js +151 -0
  26. package/components/ai-elements/task-progress.d.ts +41 -0
  27. package/components/ai-elements/task-progress.js +211 -0
  28. package/components/ai-elements/task.d.ts +35 -0
  29. package/components/ai-elements/task.js +73 -0
  30. package/components/ai-elements/tool.d.ts +53 -0
  31. package/components/ai-elements/tool.js +116 -0
  32. package/components/ai-elements/voice.d.ts +74 -0
  33. package/components/ai-elements/voice.js +875 -0
  34. package/components/alert.d.ts +21 -0
  35. package/components/alert.js +76 -0
  36. package/components/answer.d.ts +984 -0
  37. package/components/answer.js +543 -0
  38. package/components/assistant-ui/action-bar.d.ts +3 -0
  39. package/components/assistant-ui/action-bar.js +57 -0
  40. package/components/assistant-ui/answer-tool-ui.d.ts +5 -0
  41. package/components/assistant-ui/answer-tool-ui.js +42 -0
  42. package/components/assistant-ui/attachment.d.ts +50 -0
  43. package/components/assistant-ui/attachment.js +353 -0
  44. package/components/assistant-ui/badge.d.ts +11 -0
  45. package/components/assistant-ui/badge.js +54 -0
  46. package/components/assistant-ui/branch-picker.d.ts +3 -0
  47. package/components/assistant-ui/branch-picker.js +36 -0
  48. package/components/assistant-ui/chain-of-thought.d.ts +46 -0
  49. package/components/assistant-ui/composer-add-context.d.ts +50 -0
  50. package/components/assistant-ui/composer-add-context.js +209 -0
  51. package/components/assistant-ui/composer-deep-research.d.ts +16 -0
  52. package/components/assistant-ui/composer-deep-research.js +38 -0
  53. package/components/assistant-ui/composer-harness.d.ts +18 -0
  54. package/components/assistant-ui/composer-harness.js +186 -0
  55. package/components/assistant-ui/composer-trigger-popover.d.ts +47 -0
  56. package/components/assistant-ui/composer-trigger-popover.js +147 -0
  57. package/components/assistant-ui/composer.d.ts +8 -0
  58. package/components/assistant-ui/composer.js +276 -0
  59. package/components/assistant-ui/directive-text.d.ts +16 -0
  60. package/components/assistant-ui/directive-text.js +40 -0
  61. package/components/assistant-ui/error.d.ts +6 -0
  62. package/components/assistant-ui/error.js +39 -0
  63. package/components/assistant-ui/file.d.ts +37 -0
  64. package/components/assistant-ui/file.js +159 -0
  65. package/components/assistant-ui/follow-up-suggestions.d.ts +7 -0
  66. package/components/assistant-ui/follow-up-suggestions.js +44 -0
  67. package/components/assistant-ui/image.d.ts +46 -0
  68. package/components/assistant-ui/image.js +351 -0
  69. package/components/assistant-ui/index.d.ts +28 -0
  70. package/components/assistant-ui/markdown-text.d.ts +1 -0
  71. package/components/assistant-ui/markdown-text.js +242 -0
  72. package/components/assistant-ui/message-timing.d.ts +25 -0
  73. package/components/assistant-ui/message-timing.js +56 -0
  74. package/components/assistant-ui/message.d.ts +4 -0
  75. package/components/assistant-ui/message.js +159 -0
  76. package/components/assistant-ui/primitives.d.ts +2 -0
  77. package/components/assistant-ui/quote.d.ts +37 -0
  78. package/components/assistant-ui/quote.js +150 -0
  79. package/components/assistant-ui/reasoning.d.ts +44 -0
  80. package/components/assistant-ui/reasoning.js +261 -0
  81. package/components/assistant-ui/selection-toolbar.d.ts +29 -0
  82. package/components/assistant-ui/selection-toolbar.js +91 -0
  83. package/components/assistant-ui/smart-message-text.d.ts +15 -0
  84. package/components/assistant-ui/smart-message-text.js +29 -0
  85. package/components/assistant-ui/sources.d.ts +17 -0
  86. package/components/assistant-ui/sources.js +121 -0
  87. package/components/assistant-ui/suggestions.d.ts +7 -0
  88. package/components/assistant-ui/suggestions.js +19 -0
  89. package/components/assistant-ui/thread-context.d.ts +37 -0
  90. package/components/assistant-ui/thread-context.js +8 -0
  91. package/components/assistant-ui/thread.d.ts +5 -0
  92. package/components/assistant-ui/thread.js +77 -0
  93. package/components/assistant-ui/tool-fallback.d.ts +36 -0
  94. package/components/assistant-ui/tool-fallback.js +428 -0
  95. package/components/assistant-ui/tool-group.d.ts +33 -0
  96. package/components/assistant-ui/tool-group.js +173 -0
  97. package/components/assistant-ui/tooltip-icon-button.d.ts +7 -0
  98. package/components/assistant-ui/tooltip-icon-button.js +31 -0
  99. package/components/assistant-ui/voice.d.ts +18 -0
  100. package/components/autocomplete.d.ts +18 -0
  101. package/components/autocomplete.js +162 -0
  102. package/components/avatar.d.ts +26 -0
  103. package/components/avatar.js +92 -0
  104. package/components/badge.d.ts +10 -0
  105. package/components/badge.js +83 -0
  106. package/components/brand-loader.d.ts +16 -0
  107. package/components/brand-loader.js +64 -0
  108. package/components/breadcrumbs.d.ts +8 -0
  109. package/components/breadcrumbs.js +58 -0
  110. package/components/button.d.ts +13 -0
  111. package/components/button.js +100 -0
  112. package/components/card.d.ts +19 -0
  113. package/components/card.js +82 -0
  114. package/components/carousel.d.ts +31 -0
  115. package/components/carousel.js +351 -0
  116. package/components/chart.d.ts +165 -0
  117. package/components/chart.js +841 -0
  118. package/components/checkbox.d.ts +13 -0
  119. package/components/checkbox.js +84 -0
  120. package/components/chip.d.ts +13 -0
  121. package/components/chip.js +112 -0
  122. package/components/collapsible.d.ts +5 -0
  123. package/components/collapsible.js +31 -0
  124. package/components/connector-card.d.ts +62 -0
  125. package/components/connector-card.js +154 -0
  126. package/components/divider.d.ts +23 -0
  127. package/components/divider.js +69 -0
  128. package/components/drawer.d.ts +45 -0
  129. package/components/drawer.js +234 -0
  130. package/components/dropdown.d.ts +33 -0
  131. package/components/dropdown.js +198 -0
  132. package/components/empty-state.d.ts +8 -0
  133. package/components/empty-state.js +30 -0
  134. package/components/field.d.ts +20 -0
  135. package/components/field.js +74 -0
  136. package/components/index.d.ts +56 -0
  137. package/components/index.js +444 -0
  138. package/components/input-field.d.ts +22 -0
  139. package/components/input-field.js +91 -0
  140. package/components/input.d.ts +8 -0
  141. package/components/input.js +61 -0
  142. package/components/kbd.d.ts +6 -0
  143. package/components/kbd.js +26 -0
  144. package/components/link.d.ts +14 -0
  145. package/components/link.js +72 -0
  146. package/components/modal.d.ts +18 -0
  147. package/components/modal.js +156 -0
  148. package/components/navbar.d.ts +15 -0
  149. package/components/navbar.js +68 -0
  150. package/components/number-field.d.ts +11 -0
  151. package/components/number-field.js +89 -0
  152. package/components/pagination.d.ts +28 -0
  153. package/components/pagination.js +179 -0
  154. package/components/panel.d.ts +14 -0
  155. package/components/panel.js +71 -0
  156. package/components/pixel-blast-svg.d.ts +22 -0
  157. package/components/pixel-blast-svg.js +154 -0
  158. package/components/popover.d.ts +20 -0
  159. package/components/popover.js +101 -0
  160. package/components/progress-circle.d.ts +11 -0
  161. package/components/progress-circle.js +75 -0
  162. package/components/progress.d.ts +22 -0
  163. package/components/progress.js +66 -0
  164. package/components/radio.d.ts +16 -0
  165. package/components/radio.js +101 -0
  166. package/components/segmented.d.ts +16 -0
  167. package/components/segmented.js +103 -0
  168. package/components/select.d.ts +28 -0
  169. package/components/select.js +180 -0
  170. package/components/selection-action-bar.d.ts +11 -0
  171. package/components/selection-action-bar.js +59 -0
  172. package/components/sidebar.d.ts +118 -0
  173. package/components/sidebar.js +375 -0
  174. package/components/skeleton.d.ts +6 -0
  175. package/components/skeleton.js +26 -0
  176. package/components/slider.d.ts +11 -0
  177. package/components/slider.js +62 -0
  178. package/components/spinner.d.ts +11 -0
  179. package/components/spinner.js +62 -0
  180. package/components/switch.d.ts +7 -0
  181. package/components/switch.js +61 -0
  182. package/components/table.d.ts +59 -0
  183. package/components/table.js +254 -0
  184. package/components/tabs.d.ts +29 -0
  185. package/components/tabs.js +371 -0
  186. package/components/textarea.d.ts +5 -0
  187. package/components/textarea.js +24 -0
  188. package/components/timeline.d.ts +7 -0
  189. package/components/timeline.js +47 -0
  190. package/components/toast.d.ts +74 -0
  191. package/components/toast.js +211 -0
  192. package/components/tooltip.d.ts +11 -0
  193. package/components/tooltip.js +143 -0
  194. package/components/tree.d.ts +42 -0
  195. package/components/tree.js +86 -0
  196. package/components/typography.d.ts +33 -0
  197. package/components/typography.js +65 -0
  198. package/components/ui/avatar.d.ts +11 -0
  199. package/components/ui/avatar.js +56 -0
  200. package/components/ui/button.d.ts +10 -0
  201. package/components/ui/button.js +57 -0
  202. package/components/ui/collapsible.d.ts +5 -0
  203. package/components/ui/collapsible.js +35 -0
  204. package/components/ui/dialog.d.ts +17 -0
  205. package/components/ui/dialog.js +93 -0
  206. package/components/ui/tabs.d.ts +22 -0
  207. package/components/ui/tooltip.d.ts +7 -0
  208. package/components/ui/tooltip.js +56 -0
  209. package/fonts/aribau-grotesk-400.otf +0 -0
  210. package/fonts/aribau-grotesk-700.otf +0 -0
  211. package/fonts.css +21 -0
  212. package/hooks/agents-ui/use-agent-audio-visualizer-aura.d.ts +8 -0
  213. package/hooks/agents-ui/use-agent-audio-visualizer-aura.js +62 -0
  214. package/hooks/agents-ui/use-agent-audio-visualizer-wave.d.ts +7 -0
  215. package/hooks/agents-ui/use-agent-audio-visualizer-wave.js +60 -0
  216. package/hooks/agents-ui/voice-visualizer-types.d.ts +9 -0
  217. package/lib/cn.d.ts +3 -0
  218. package/lib/cn.js +9 -0
  219. package/lib/icons.d.ts +378 -0
  220. package/lib/icons.js +119 -0
  221. package/lib/interactive.d.ts +24 -0
  222. package/lib/interactive.js +36 -0
  223. package/lib/motion.d.ts +58 -0
  224. package/lib/motion.js +70 -0
  225. package/lib/router.d.ts +3 -0
  226. package/lib/utils.d.ts +6 -0
  227. package/llms.txt +537 -0
  228. package/manifest.json +5085 -0
  229. package/package.json +60 -0
  230. package/styles.css +653 -0
  231. package/theme.css +273 -0
@@ -0,0 +1,64 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { cn as n } from "../lib/cn.js";
4
+ const s = [
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
+ { 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
+ { 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 },
8
+ { d: "M31.1845 73.2656C31.1845 73.8179 30.7368 74.2656 30.1845 74.2656H1.29801C0.514088 74.2656 0.034995 73.4047 0.448227 72.7385L20.0191 41.1887C20.2015 40.8947 20.5229 40.7158 20.8689 40.7158H30.1845C30.7368 40.7158 31.1845 41.1635 31.1845 41.7158V73.2656Z", delay: 0.3 },
9
+ { d: "M68.4648 73.2656C68.4648 73.8179 68.0171 74.2656 67.4648 74.2656H38.5431C37.7667 74.2656 37.2865 73.4195 37.6845 72.7529L56.5254 41.2031C56.7058 40.9009 57.0319 40.7158 57.3839 40.7158H67.4648C68.0171 40.7158 68.4648 41.1635 68.4648 41.7158V73.2656Z", delay: 0 },
10
+ { d: "M103.87 73.2656C103.87 73.8179 103.422 74.2656 102.87 74.2656H73.8791C73.1182 74.2656 72.636 73.4496 73.0032 72.7831L90.3838 41.2333C90.5597 40.9141 90.8953 40.7158 91.2597 40.7158H102.87C103.422 40.7158 103.87 41.1635 103.87 41.7158V73.2656Z", delay: 0.65 },
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
+ { 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
+ { 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
+ ], i = [0.26, 0.13, 0, 0.39, 0.26, 0.13, 0.52, 0.39, 0.26];
15
+ function H({
16
+ className: d,
17
+ hoverAnimate: C = !0,
18
+ ...l
19
+ }) {
20
+ return /* @__PURE__ */ e(
21
+ "svg",
22
+ {
23
+ viewBox: "0 0 105 105",
24
+ "aria-hidden": !0,
25
+ className: n("shrink-0", d),
26
+ ...l,
27
+ children: s.map(({ d: a }, r) => /* @__PURE__ */ e(
28
+ "path",
29
+ {
30
+ d: a,
31
+ fill: "currentColor",
32
+ className: C ? "ads-mark-cell" : void 0,
33
+ style: C ? { "--blip-delay": `${i[r]}s` } : void 0
34
+ },
35
+ r
36
+ ))
37
+ }
38
+ );
39
+ }
40
+ function c({ className: d, ...C }) {
41
+ return /* @__PURE__ */ e(
42
+ "svg",
43
+ {
44
+ viewBox: "0 0 105 105",
45
+ "aria-hidden": !0,
46
+ className: n("shrink-0", d),
47
+ ...C,
48
+ children: s.map(({ d: l, delay: a }) => /* @__PURE__ */ e(
49
+ "path",
50
+ {
51
+ d: l,
52
+ fill: "currentColor",
53
+ className: "brand-loader-cell",
54
+ style: { animationDelay: `${a}s` }
55
+ },
56
+ a
57
+ ))
58
+ }
59
+ );
60
+ }
61
+ export {
62
+ c as BrandLoader,
63
+ H as BrandMark
64
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export type BreadcrumbsProps = React.HTMLAttributes<HTMLElement>;
3
+ export declare const Breadcrumbs: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>>;
4
+ export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement> {
5
+ href?: string;
6
+ isCurrent?: boolean;
7
+ }
8
+ export declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
3
+ import * as t from "react";
4
+ import { ChevronRight as g } from "../lib/icons.js";
5
+ import { cn as a } from "../lib/cn.js";
6
+ const u = t.createContext({
7
+ count: 0
8
+ }), l = t.createContext(0), b = t.forwardRef(
9
+ ({ className: i, children: n, ...c }, r) => {
10
+ const o = t.Children.toArray(n);
11
+ return /* @__PURE__ */ e("nav", { ref: r, "aria-label": "Breadcrumb", className: i, ...c, children: /* @__PURE__ */ e("ol", { className: "flex items-center gap-1.5 text-xs", children: /* @__PURE__ */ e(u.Provider, { value: { count: o.length }, children: o.map((m, s) => /* @__PURE__ */ e(l.Provider, { value: s, children: m }, s)) }) }) });
12
+ }
13
+ );
14
+ b.displayName = "Breadcrumbs";
15
+ const h = t.forwardRef(({ className: i, href: n, isCurrent: c, children: r, ...o }, m) => {
16
+ const { count: s } = t.useContext(u), x = t.useContext(l) === s - 1, d = "inline-flex items-center", f = c ? /* @__PURE__ */ e(
17
+ "span",
18
+ {
19
+ "aria-current": "page",
20
+ className: a(d, "text-muted-foreground"),
21
+ children: r
22
+ }
23
+ ) : n ? /* @__PURE__ */ e(
24
+ "a",
25
+ {
26
+ href: n,
27
+ className: a(
28
+ d,
29
+ "font-medium text-foreground transition-colors hover:underline",
30
+ "outline-none focus-visible:ring-3 focus-visible:ring-ring rounded-sm"
31
+ ),
32
+ children: r
33
+ }
34
+ ) : /* @__PURE__ */ e("span", { className: a(d, "text-muted-foreground"), children: r });
35
+ return /* @__PURE__ */ p(
36
+ "li",
37
+ {
38
+ ref: m,
39
+ className: a("flex items-center gap-1.5", i),
40
+ ...o,
41
+ children: [
42
+ f,
43
+ !x && /* @__PURE__ */ e(
44
+ g,
45
+ {
46
+ "aria-hidden": !0,
47
+ className: "size-3.5 shrink-0 text-muted-foreground"
48
+ }
49
+ )
50
+ ]
51
+ }
52
+ );
53
+ });
54
+ h.displayName = "BreadcrumbItem";
55
+ export {
56
+ h as BreadcrumbItem,
57
+ b as Breadcrumbs
58
+ };
@@ -0,0 +1,13 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ export declare const buttonVariants: (props?: ({
4
+ variant?: "danger" | "soft" | "link" | "solid" | "secondary" | "outline" | "ghost" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | "xs" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ isLoading?: boolean;
9
+ startContent?: React.ReactNode;
10
+ endContent?: React.ReactNode;
11
+ fullWidth?: boolean;
12
+ }
13
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import { jsxs as r, jsx as b } from "react/jsx-runtime";
3
+ import * as c from "react";
4
+ import { cva as v } from "class-variance-authority";
5
+ import { cn as t } from "../lib/cn.js";
6
+ import { Spinner as m } from "./spinner.js";
7
+ const p = v(
8
+ [
9
+ "relative inline-flex items-center justify-center gap-2 whitespace-nowrap",
10
+ "font-medium select-none",
11
+ "rounded-md border border-transparent",
12
+ "transition-[background,border,color,box-shadow,transform] duration-(--duration-fast) ease-out",
13
+ "outline-none focus-visible:ring-3 focus-visible:ring-ring",
14
+ // Press feedback: the button visibly answers the press (guide: any
15
+ // pressable element scales down on :active).
16
+ "active:scale-(--scale-press)",
17
+ "disabled:pointer-events-none",
18
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
19
+ ],
20
+ {
21
+ variants: {
22
+ variant: {
23
+ solid: "bg-brand text-brand-foreground shadow-[var(--inner-glow-cta)] hover:bg-brand-hover",
24
+ secondary: "bg-fill text-fill-foreground shadow-[var(--inner-glow-fill)] hover:bg-fill/70",
25
+ outline: "border-border-strong bg-transparent text-foreground hover:bg-muted",
26
+ ghost: "bg-transparent text-foreground hover:bg-muted",
27
+ soft: "bg-muted text-foreground shadow-[var(--inner-glow-fill)] hover:bg-fill",
28
+ link: "bg-transparent text-foreground underline-offset-4 hover:underline active:scale-none",
29
+ danger: "bg-danger text-danger-foreground hover:bg-danger/90 focus-visible:ring-danger/40"
30
+ },
31
+ size: {
32
+ xs: "h-7 px-2.5 text-xs [&_svg]:size-3.5",
33
+ sm: "h-8 px-3 text-xs [&_svg]:size-4",
34
+ md: "h-10 px-4 text-xs [&_svg]:size-4",
35
+ lg: "h-11 px-5 text-base [&_svg]:size-5",
36
+ icon: "size-10 [&_svg]:size-4",
37
+ "icon-sm": "size-8 [&_svg]:size-4",
38
+ "icon-xs": "size-7 [&_svg]:size-4"
39
+ }
40
+ },
41
+ defaultVariants: { variant: "solid", size: "md" }
42
+ }
43
+ ), x = c.forwardRef(
44
+ ({
45
+ className: n,
46
+ variant: s,
47
+ size: o,
48
+ isLoading: e = !1,
49
+ startContent: i,
50
+ endContent: a,
51
+ fullWidth: d,
52
+ disabled: l,
53
+ children: g,
54
+ ...f
55
+ }, u) => /* @__PURE__ */ r(
56
+ "button",
57
+ {
58
+ ref: u,
59
+ disabled: l || e,
60
+ "aria-busy": e || void 0,
61
+ className: t(
62
+ p({ variant: s, size: o }),
63
+ d && "w-full",
64
+ // Real disabled fades; loading keeps the brand color
65
+ e ? "opacity-100" : "disabled:opacity-50",
66
+ n
67
+ ),
68
+ ...f,
69
+ children: [
70
+ e && /* @__PURE__ */ b(
71
+ m,
72
+ {
73
+ size: "sm",
74
+ className: "absolute",
75
+ "aria-hidden": !0
76
+ }
77
+ ),
78
+ /* @__PURE__ */ r(
79
+ "span",
80
+ {
81
+ className: t(
82
+ "inline-flex items-center gap-2",
83
+ e && "opacity-0"
84
+ ),
85
+ children: [
86
+ i,
87
+ g,
88
+ a
89
+ ]
90
+ }
91
+ )
92
+ ]
93
+ }
94
+ )
95
+ );
96
+ x.displayName = "Button";
97
+ export {
98
+ x as Button,
99
+ p as buttonVariants
100
+ };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ isHoverable?: boolean;
4
+ isPressable?: boolean;
5
+ }
6
+ /**
7
+ * Surface container. Renders as a `<div>` by default, or a `<button>` when
8
+ * `isPressable` so the whole card is keyboard-activatable.
9
+ */
10
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
13
+ export declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
14
+ export declare const CardBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ export interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
16
+ /** Adds a top divider between the body and footer. */
17
+ withBorder?: boolean;
18
+ }
19
+ export declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,82 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import * as d from "react";
4
+ import { cn as o } from "../lib/cn.js";
5
+ const c = d.forwardRef(
6
+ ({ className: r, isHoverable: e, isPressable: a, children: s, ...n }, i) => {
7
+ const l = o(
8
+ "bg-card text-card-foreground rounded-xl",
9
+ (a || e) && "shadow-elevation transition-[box-shadow,transform] duration-(--duration-fast) ease-out motion-reduce:transition-none",
10
+ e && "hover:-translate-y-0.5",
11
+ r
12
+ );
13
+ return a ? /* @__PURE__ */ t(
14
+ "button",
15
+ {
16
+ ref: i,
17
+ type: "button",
18
+ className: o(
19
+ l,
20
+ "w-full text-left cursor-pointer",
21
+ "outline-none focus-visible:ring-3 focus-visible:ring-ring",
22
+ "active:translate-y-px"
23
+ ),
24
+ ...n,
25
+ children: s
26
+ }
27
+ ) : /* @__PURE__ */ t("div", { ref: i, className: l, ...n, children: s });
28
+ }
29
+ );
30
+ c.displayName = "Card";
31
+ const f = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t(
32
+ "div",
33
+ {
34
+ ref: a,
35
+ className: o("flex flex-col gap-1 px-5 pt-5", r),
36
+ ...e
37
+ }
38
+ ));
39
+ f.displayName = "CardHeader";
40
+ const m = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t(
41
+ "h3",
42
+ {
43
+ ref: a,
44
+ className: o("text-base font-semibold leading-none", r),
45
+ ...e
46
+ }
47
+ ));
48
+ m.displayName = "CardTitle";
49
+ const p = d.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ t(
50
+ "p",
51
+ {
52
+ ref: a,
53
+ className: o("text-xs text-muted-foreground", r),
54
+ ...e
55
+ }
56
+ ));
57
+ 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
+ u.displayName = "CardBody";
60
+ const x = d.forwardRef(
61
+ ({ className: r, withBorder: e, ...a }, s) => /* @__PURE__ */ t(
62
+ "div",
63
+ {
64
+ ref: s,
65
+ className: o(
66
+ "flex items-center px-5 pb-5 pt-4",
67
+ e && "border-t border-border",
68
+ r
69
+ ),
70
+ ...a
71
+ }
72
+ )
73
+ );
74
+ x.displayName = "CardFooter";
75
+ export {
76
+ c as Card,
77
+ u as CardBody,
78
+ p as CardDescription,
79
+ x as CardFooter,
80
+ f as CardHeader,
81
+ m as CardTitle
82
+ };
@@ -0,0 +1,31 @@
1
+ import { ButtonProps } from './button';
2
+ import * as React from "react";
3
+ export declare const carouselVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
4
+ export interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ /** Controlled zero-based slide index. */
6
+ index?: number;
7
+ /** Initial zero-based slide index when uncontrolled. */
8
+ defaultIndex?: number;
9
+ /** Called whenever a user interaction requests a different slide. */
10
+ onIndexChange?: (index: number) => void;
11
+ /** Wrap navigation from the last slide to the first and vice versa. */
12
+ loop?: boolean;
13
+ }
14
+ export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
15
+ export interface CarouselContentProps extends React.HTMLAttributes<HTMLDivElement> {
16
+ }
17
+ export declare const CarouselContent: React.ForwardRefExoticComponent<CarouselContentProps & React.RefAttributes<HTMLDivElement>>;
18
+ export interface CarouselItemProps extends React.HTMLAttributes<HTMLDivElement> {
19
+ }
20
+ export declare const CarouselItem: React.ForwardRefExoticComponent<CarouselItemProps & React.RefAttributes<HTMLDivElement>>;
21
+ export interface CarouselIndicatorsProps extends React.HTMLAttributes<HTMLDivElement> {
22
+ /** Accessible label for each zero-based slide index. */
23
+ getLabel?: (index: number) => string;
24
+ }
25
+ export declare const CarouselIndicators: React.ForwardRefExoticComponent<CarouselIndicatorsProps & React.RefAttributes<HTMLDivElement>>;
26
+ export interface CarouselPreviousProps extends ButtonProps {
27
+ }
28
+ export declare const CarouselPrevious: React.ForwardRefExoticComponent<CarouselPreviousProps & React.RefAttributes<HTMLButtonElement>>;
29
+ export interface CarouselNextProps extends ButtonProps {
30
+ }
31
+ export declare const CarouselNext: React.ForwardRefExoticComponent<CarouselNextProps & React.RefAttributes<HTMLButtonElement>>;