orbital-ds 0.41.0 → 0.48.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 (321) hide show
  1. package/AGENTS.md +54 -12
  2. package/CHANGELOG.md +458 -0
  3. package/README.md +2 -2
  4. package/components.manifest.json +6630 -3569
  5. package/dist/hooks/use-esc-close-stack.js +38 -0
  6. package/dist/hooks/use-simulated-progress.js +30 -0
  7. package/dist/lib/brand-allowlist.js +703 -0
  8. package/dist/lib/brand-runtime.js +85 -0
  9. package/dist/lib/echarts-presets.js +152 -1
  10. package/dist/lib/echarts-setup.js +2 -0
  11. package/dist/lib/format.js +177 -0
  12. package/dist/lib/i18n.js +35 -2
  13. package/dist/lib/locales/de.js +536 -0
  14. package/dist/lib/locales/fr.js +536 -0
  15. package/dist/lib/locales/he.js +536 -0
  16. package/dist/lib/locales/it.js +536 -0
  17. package/dist/ui/auth-form.js +13 -6
  18. package/dist/ui/ayuda.js +4 -1
  19. package/dist/ui/breadcrumb.js +1 -1
  20. package/dist/ui/calendar.js +3 -0
  21. package/dist/ui/carousel.js +10 -5
  22. package/dist/ui/context-menu.js +3 -3
  23. package/dist/ui/cta-banner.js +63 -0
  24. package/dist/ui/date-time.js +55 -0
  25. package/dist/ui/description-list.js +86 -0
  26. package/dist/ui/detail-panel.js +2 -2
  27. package/dist/ui/dropdown-menu.js +1 -1
  28. package/dist/ui/faq.js +25 -0
  29. package/dist/ui/feature-grid.js +40 -0
  30. package/dist/ui/hero.js +145 -0
  31. package/dist/ui/landing-section.js +59 -0
  32. package/dist/ui/mfa-challenge.js +1 -1
  33. package/dist/ui/next-step-card.js +92 -0
  34. package/dist/ui/page-header.js +20 -11
  35. package/dist/ui/pagination.js +2 -2
  36. package/dist/ui/pricing-table.js +86 -0
  37. package/dist/ui/quantity.js +27 -0
  38. package/dist/ui/sheet.js +6 -2
  39. package/dist/ui/sidebar.js +7 -3
  40. package/dist/ui/tag-input.js +169 -0
  41. package/dist/ui/testimonial.js +61 -0
  42. package/dist/ui/textarea.js +7 -1
  43. package/dist/ui/usage-meter.js +116 -0
  44. package/dist/ui/week-strip.js +2 -2
  45. package/docs/adr/0001-rtl-clases-logicas.md +14 -1
  46. package/docs/designer/flujo.md +1 -1
  47. package/docs/designer/patrones.md +45 -1
  48. package/manifest/actions.json +364 -0
  49. package/manifest/agents.json +399 -0
  50. package/manifest/ai.json +128 -0
  51. package/manifest/auth.json +1547 -0
  52. package/manifest/chat.json +612 -0
  53. package/manifest/content.json +2793 -0
  54. package/manifest/data.json +2802 -0
  55. package/manifest/feedback.json +1005 -0
  56. package/manifest/forms.json +1954 -0
  57. package/manifest/motion.json +196 -0
  58. package/manifest/navigation.json +1792 -0
  59. package/manifest/overlays.json +934 -0
  60. package/package.json +240 -238
  61. package/scripts/cli.mjs +124 -8
  62. package/scripts/doctor.mjs +153 -2
  63. package/scripts/eslint-plugin.mjs +125 -0
  64. package/scripts/i18n.mjs +1 -1
  65. package/scripts/manifest.mjs +179 -7
  66. package/scripts/upgrade.mjs +126 -0
  67. package/skill/SKILL.md +8 -3
  68. package/dist/hooks/use-ds-messages.d.ts +0 -537
  69. package/dist/hooks/use-ds-motion.d.ts +0 -17
  70. package/dist/hooks/use-in-view.d.ts +0 -9
  71. package/dist/hooks/use-mobile.d.ts +0 -3
  72. package/dist/lib/a2ui-catalog.d.ts +0 -42
  73. package/dist/lib/a2ui.d.ts +0 -289
  74. package/dist/lib/ai-events.d.ts +0 -15
  75. package/dist/lib/auth-better-auth.d.ts +0 -29
  76. package/dist/lib/auth-flow.d.ts +0 -85
  77. package/dist/lib/auth-providers.d.ts +0 -194
  78. package/dist/lib/auth.d.ts +0 -68
  79. package/dist/lib/echarts-presets.d.ts +0 -227
  80. package/dist/lib/echarts-server.d.ts +0 -15
  81. package/dist/lib/echarts-setup.d.ts +0 -8
  82. package/dist/lib/echarts-theme.d.ts +0 -36
  83. package/dist/lib/header-control.d.ts +0 -4
  84. package/dist/lib/i18n.d.ts +0 -545
  85. package/dist/lib/image-upload.d.ts +0 -41
  86. package/dist/lib/motion.d.ts +0 -74
  87. package/dist/lib/presets.d.ts +0 -8
  88. package/dist/lib/template-syntax.d.ts +0 -22
  89. package/dist/lib/utils.d.ts +0 -5
  90. package/dist/motion.css +0 -146
  91. package/dist/styles.css +0 -1737
  92. package/dist/themes/chocolate.css +0 -259
  93. package/dist/themes/chocolate.fonts.css +0 -2
  94. package/dist/themes/chocolate.guide.md +0 -30
  95. package/dist/themes/chocolate.meta.json +0 -61
  96. package/dist/themes/chocolate.scoped.css +0 -259
  97. package/dist/themes/chocolate.tokens.json +0 -49
  98. package/dist/themes/fractalia.css +0 -556
  99. package/dist/themes/fractalia.fonts.css +0 -3
  100. package/dist/themes/fractalia.guide.md +0 -86
  101. package/dist/themes/fractalia.meta.json +0 -112
  102. package/dist/themes/fractalia.scoped.css +0 -556
  103. package/dist/themes/fractalia.tokens.json +0 -39
  104. package/dist/themes/friendly.css +0 -375
  105. package/dist/themes/friendly.fonts.css +0 -2
  106. package/dist/themes/friendly.guide.md +0 -38
  107. package/dist/themes/friendly.meta.json +0 -82
  108. package/dist/themes/friendly.scoped.css +0 -375
  109. package/dist/themes/friendly.tokens.json +0 -45
  110. package/dist/themes/lagoon.css +0 -362
  111. package/dist/themes/lagoon.fonts.css +0 -2
  112. package/dist/themes/lagoon.guide.md +0 -47
  113. package/dist/themes/lagoon.meta.json +0 -85
  114. package/dist/themes/lagoon.scoped.css +0 -362
  115. package/dist/themes/lagoon.tokens.json +0 -49
  116. package/dist/themes/liquid.css +0 -510
  117. package/dist/themes/liquid.fonts.css +0 -7
  118. package/dist/themes/liquid.guide.md +0 -82
  119. package/dist/themes/liquid.meta.json +0 -134
  120. package/dist/themes/liquid.scoped.css +0 -510
  121. package/dist/themes/liquid.tokens.json +0 -47
  122. package/dist/themes/matcha.css +0 -259
  123. package/dist/themes/matcha.fonts.css +0 -2
  124. package/dist/themes/matcha.guide.md +0 -30
  125. package/dist/themes/matcha.meta.json +0 -61
  126. package/dist/themes/matcha.scoped.css +0 -259
  127. package/dist/themes/matcha.tokens.json +0 -49
  128. package/dist/themes/qratia.css +0 -264
  129. package/dist/themes/qratia.fonts.css +0 -2
  130. package/dist/themes/qratia.guide.md +0 -34
  131. package/dist/themes/qratia.meta.json +0 -49
  132. package/dist/themes/qratia.scoped.css +0 -264
  133. package/dist/themes/qratia.tokens.json +0 -49
  134. package/dist/themes/stone.css +0 -263
  135. package/dist/themes/stone.fonts.css +0 -2
  136. package/dist/themes/stone.guide.md +0 -30
  137. package/dist/themes/stone.meta.json +0 -47
  138. package/dist/themes/stone.scoped.css +0 -263
  139. package/dist/themes/stone.tokens.json +0 -49
  140. package/dist/themes/tactile.css +0 -596
  141. package/dist/themes/tactile.fonts.css +0 -3
  142. package/dist/themes/tactile.guide.md +0 -82
  143. package/dist/themes/tactile.meta.json +0 -182
  144. package/dist/themes/tactile.scoped.css +0 -596
  145. package/dist/themes/tactile.tokens.json +0 -42
  146. package/dist/themes/twitter.css +0 -364
  147. package/dist/themes/twitter.fonts.css +0 -6
  148. package/dist/themes/twitter.guide.md +0 -35
  149. package/dist/themes/twitter.meta.json +0 -90
  150. package/dist/themes/twitter.scoped.css +0 -364
  151. package/dist/themes/twitter.tokens.json +0 -45
  152. package/dist/themes/y2k.css +0 -259
  153. package/dist/themes/y2k.fonts.css +0 -2
  154. package/dist/themes/y2k.guide.md +0 -30
  155. package/dist/themes/y2k.meta.json +0 -59
  156. package/dist/themes/y2k.scoped.css +0 -259
  157. package/dist/themes/y2k.tokens.json +0 -49
  158. package/dist/themes/zyro.css +0 -442
  159. package/dist/themes/zyro.fonts.css +0 -2
  160. package/dist/themes/zyro.guide.md +0 -33
  161. package/dist/themes/zyro.meta.json +0 -74
  162. package/dist/themes/zyro.scoped.css +0 -442
  163. package/dist/themes/zyro.tokens.json +0 -46
  164. package/dist/ui/a2ui-renderer.d.ts +0 -33
  165. package/dist/ui/accordion.d.ts +0 -9
  166. package/dist/ui/agent-events.d.ts +0 -32
  167. package/dist/ui/ai-tag.d.ts +0 -8
  168. package/dist/ui/alert-dialog.d.ts +0 -23
  169. package/dist/ui/alert.d.ts +0 -13
  170. package/dist/ui/animated-number.d.ts +0 -9
  171. package/dist/ui/app-bar.d.ts +0 -10
  172. package/dist/ui/aspect-ratio.d.ts +0 -7
  173. package/dist/ui/attachment.d.ts +0 -26
  174. package/dist/ui/auth-backdrop.d.ts +0 -20
  175. package/dist/ui/auth-form.d.ts +0 -113
  176. package/dist/ui/auth-layout.d.ts +0 -72
  177. package/dist/ui/auth-parts.d.ts +0 -43
  178. package/dist/ui/auth-status.d.ts +0 -23
  179. package/dist/ui/avatar.d.ts +0 -16
  180. package/dist/ui/ayuda.d.ts +0 -22
  181. package/dist/ui/badge.d.ts +0 -15
  182. package/dist/ui/banner.d.ts +0 -14
  183. package/dist/ui/bottom-nav.d.ts +0 -15
  184. package/dist/ui/breadcrumb.d.ts +0 -12
  185. package/dist/ui/bubble.d.ts +0 -19
  186. package/dist/ui/button-group.d.ts +0 -15
  187. package/dist/ui/button.d.ts +0 -14
  188. package/dist/ui/calendar.d.ts +0 -15
  189. package/dist/ui/card-stack.d.ts +0 -9
  190. package/dist/ui/card.d.ts +0 -28
  191. package/dist/ui/carousel.d.ts +0 -33
  192. package/dist/ui/chain-of-thought.d.ts +0 -19
  193. package/dist/ui/chart-card.d.ts +0 -28
  194. package/dist/ui/chart.d.ts +0 -46
  195. package/dist/ui/chart.js +0 -254
  196. package/dist/ui/chat-composer.d.ts +0 -39
  197. package/dist/ui/checkbox.d.ts +0 -6
  198. package/dist/ui/choice-card.d.ts +0 -16
  199. package/dist/ui/code-block.d.ts +0 -14
  200. package/dist/ui/collapsible.d.ts +0 -8
  201. package/dist/ui/combobox.d.ts +0 -26
  202. package/dist/ui/command-palette.d.ts +0 -36
  203. package/dist/ui/command.d.ts +0 -22
  204. package/dist/ui/confirm-action.d.ts +0 -18
  205. package/dist/ui/confirm-dialog.d.ts +0 -21
  206. package/dist/ui/connected-accounts.d.ts +0 -25
  207. package/dist/ui/content-card.d.ts +0 -52
  208. package/dist/ui/context-menu.d.ts +0 -31
  209. package/dist/ui/conversation-list.d.ts +0 -24
  210. package/dist/ui/copy-button.d.ts +0 -14
  211. package/dist/ui/data-table.d.ts +0 -198
  212. package/dist/ui/date-picker.d.ts +0 -65
  213. package/dist/ui/detail-panel.d.ts +0 -16
  214. package/dist/ui/dialog.d.ts +0 -19
  215. package/dist/ui/direction.d.ts +0 -1
  216. package/dist/ui/dock.d.ts +0 -13
  217. package/dist/ui/drawer.d.ts +0 -18
  218. package/dist/ui/dropdown-menu.d.ts +0 -31
  219. package/dist/ui/dropzone.d.ts +0 -44
  220. package/dist/ui/echart.d.ts +0 -31
  221. package/dist/ui/empty-state.d.ts +0 -26
  222. package/dist/ui/empty.d.ts +0 -15
  223. package/dist/ui/entity-list.d.ts +0 -25
  224. package/dist/ui/error-page.d.ts +0 -28
  225. package/dist/ui/error-state.d.ts +0 -16
  226. package/dist/ui/eyebrow.d.ts +0 -7
  227. package/dist/ui/field.d.ts +0 -28
  228. package/dist/ui/file-upload.d.ts +0 -42
  229. package/dist/ui/filter-bar.d.ts +0 -38
  230. package/dist/ui/form-layout.d.ts +0 -19
  231. package/dist/ui/gauge.d.ts +0 -40
  232. package/dist/ui/generated-image.d.ts +0 -14
  233. package/dist/ui/generated-table.d.ts +0 -11
  234. package/dist/ui/heatmap-grid.d.ts +0 -39
  235. package/dist/ui/hover-card.d.ts +0 -8
  236. package/dist/ui/i18n-provider.d.ts +0 -11
  237. package/dist/ui/icon-tile.d.ts +0 -11
  238. package/dist/ui/input-group.d.ts +0 -22
  239. package/dist/ui/input-otp.d.ts +0 -13
  240. package/dist/ui/input.d.ts +0 -5
  241. package/dist/ui/instruction-editor.d.ts +0 -64
  242. package/dist/ui/item.d.ts +0 -26
  243. package/dist/ui/kbd.d.ts +0 -6
  244. package/dist/ui/label.d.ts +0 -5
  245. package/dist/ui/legend.d.ts +0 -32
  246. package/dist/ui/level-meter.d.ts +0 -16
  247. package/dist/ui/load-more.d.ts +0 -19
  248. package/dist/ui/loading-state.d.ts +0 -14
  249. package/dist/ui/locale-switcher.d.ts +0 -19
  250. package/dist/ui/markdown.d.ts +0 -14
  251. package/dist/ui/marker.d.ts +0 -13
  252. package/dist/ui/media-card.d.ts +0 -13
  253. package/dist/ui/menubar.d.ts +0 -31
  254. package/dist/ui/message-actions.d.ts +0 -12
  255. package/dist/ui/message-scroller.d.ts +0 -16
  256. package/dist/ui/message.d.ts +0 -12
  257. package/dist/ui/mfa-challenge.d.ts +0 -33
  258. package/dist/ui/mfa-setup.d.ts +0 -29
  259. package/dist/ui/mosaic.d.ts +0 -15
  260. package/dist/ui/motion-provider.d.ts +0 -11
  261. package/dist/ui/native-select.d.ts +0 -10
  262. package/dist/ui/navigation-menu.d.ts +0 -15
  263. package/dist/ui/notice-review.d.ts +0 -32
  264. package/dist/ui/notifications.d.ts +0 -81
  265. package/dist/ui/oauth-consent.d.ts +0 -54
  266. package/dist/ui/page-header.d.ts +0 -22
  267. package/dist/ui/page-loader.d.ts +0 -23
  268. package/dist/ui/page-shell.d.ts +0 -8
  269. package/dist/ui/pagination.d.ts +0 -22
  270. package/dist/ui/panel.d.ts +0 -12
  271. package/dist/ui/passkey-list.d.ts +0 -17
  272. package/dist/ui/password-input.d.ts +0 -5
  273. package/dist/ui/password-strength.d.ts +0 -14
  274. package/dist/ui/popover.d.ts +0 -12
  275. package/dist/ui/progress.d.ts +0 -9
  276. package/dist/ui/proportion-bar.d.ts +0 -27
  277. package/dist/ui/questionnaire.d.ts +0 -24
  278. package/dist/ui/radio-group.d.ts +0 -8
  279. package/dist/ui/reasoning.d.ts +0 -10
  280. package/dist/ui/resizable.d.ts +0 -10
  281. package/dist/ui/reveal.d.ts +0 -11
  282. package/dist/ui/scroll-area.d.ts +0 -7
  283. package/dist/ui/search-box.d.ts +0 -32
  284. package/dist/ui/select.d.ts +0 -19
  285. package/dist/ui/separator.d.ts +0 -6
  286. package/dist/ui/session-list.d.ts +0 -19
  287. package/dist/ui/session-timeout.d.ts +0 -13
  288. package/dist/ui/sheet.d.ts +0 -16
  289. package/dist/ui/shield.d.ts +0 -21
  290. package/dist/ui/show-more.d.ts +0 -12
  291. package/dist/ui/sidebar.d.ts +0 -90
  292. package/dist/ui/sign-out-dialog.d.ts +0 -17
  293. package/dist/ui/skeleton.d.ts +0 -10
  294. package/dist/ui/slider.d.ts +0 -23
  295. package/dist/ui/sonner.d.ts +0 -6
  296. package/dist/ui/sparkline.d.ts +0 -26
  297. package/dist/ui/spinner.d.ts +0 -5
  298. package/dist/ui/stat-group.d.ts +0 -8
  299. package/dist/ui/stat.d.ts +0 -90
  300. package/dist/ui/status-badge.d.ts +0 -39
  301. package/dist/ui/status-hero.d.ts +0 -12
  302. package/dist/ui/step-dots.d.ts +0 -10
  303. package/dist/ui/step-flow.d.ts +0 -48
  304. package/dist/ui/step-ring.d.ts +0 -12
  305. package/dist/ui/stepper.d.ts +0 -20
  306. package/dist/ui/suggestions.d.ts +0 -8
  307. package/dist/ui/switch.d.ts +0 -8
  308. package/dist/ui/table.d.ts +0 -12
  309. package/dist/ui/tabs.d.ts +0 -14
  310. package/dist/ui/task-loader.d.ts +0 -14
  311. package/dist/ui/task-progress.d.ts +0 -18
  312. package/dist/ui/textarea.d.ts +0 -11
  313. package/dist/ui/theme-toggle.d.ts +0 -14
  314. package/dist/ui/timeline.d.ts +0 -29
  315. package/dist/ui/toast.d.ts +0 -19
  316. package/dist/ui/toggle-group.d.ts +0 -14
  317. package/dist/ui/toggle.d.ts +0 -12
  318. package/dist/ui/tool-call.d.ts +0 -15
  319. package/dist/ui/tooltip.d.ts +0 -9
  320. package/dist/ui/week-strip.d.ts +0 -12
  321. package/dist/ui/workflow-run.d.ts +0 -23
package/dist/ui/chart.js DELETED
@@ -1,254 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as RechartsPrimitive from "recharts";
4
- import { cn } from "../lib/utils.js";
5
- const THEMES = { light: "", dark: ".dark" };
6
- const INITIAL_DIMENSION = { width: 320, height: 200 };
7
- const ChartContext = React.createContext(null);
8
- function useChart() {
9
- const context = React.useContext(ChartContext);
10
- if (!context) {
11
- throw new Error("useChart must be used within a <ChartContainer />");
12
- }
13
- return context;
14
- }
15
- function ChartContainer({
16
- id,
17
- className,
18
- children,
19
- config,
20
- initialDimension = INITIAL_DIMENSION,
21
- ...props
22
- }) {
23
- const uniqueId = React.useId();
24
- const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
25
- return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
26
- "div",
27
- {
28
- "data-slot": "chart",
29
- "data-chart": chartId,
30
- className: cn(
31
- "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
32
- className
33
- ),
34
- ...props,
35
- children: [
36
- /* @__PURE__ */ jsx(ChartStyle, { id: chartId, config }),
37
- /* @__PURE__ */ jsx(
38
- RechartsPrimitive.ResponsiveContainer,
39
- {
40
- initialDimension,
41
- children
42
- }
43
- )
44
- ]
45
- }
46
- ) });
47
- }
48
- const ChartStyle = ({ id, config }) => {
49
- const colorConfig = Object.entries(config).filter(
50
- ([, config2]) => config2.theme ?? config2.color
51
- );
52
- if (!colorConfig.length) {
53
- return null;
54
- }
55
- return /* @__PURE__ */ jsx(
56
- "style",
57
- {
58
- dangerouslySetInnerHTML: {
59
- __html: Object.entries(THEMES).map(
60
- ([theme, prefix]) => `
61
- ${prefix} [data-chart=${id}] {
62
- ${colorConfig.map(([key, itemConfig]) => {
63
- const color = itemConfig.theme?.[theme] ?? itemConfig.color;
64
- return color ? ` --color-${key}: ${color};` : null;
65
- }).join("\n")}
66
- }
67
- `
68
- ).join("\n")
69
- }
70
- }
71
- );
72
- };
73
- const ChartTooltip = RechartsPrimitive.Tooltip;
74
- function ChartTooltipContent({
75
- active,
76
- payload,
77
- className,
78
- indicator = "dot",
79
- hideLabel = false,
80
- hideIndicator = false,
81
- label,
82
- labelFormatter,
83
- labelClassName,
84
- formatter,
85
- color,
86
- nameKey,
87
- labelKey
88
- }) {
89
- const { config } = useChart();
90
- const tooltipLabel = React.useMemo(() => {
91
- if (hideLabel || !payload?.length) {
92
- return null;
93
- }
94
- const [item] = payload;
95
- const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
96
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
97
- const value = !labelKey && typeof label === "string" ? config[label]?.label ?? label : itemConfig?.label;
98
- if (labelFormatter) {
99
- return /* @__PURE__ */ jsx("div", { className: cn("font-(--ds-medium-weight)", labelClassName), children: labelFormatter(value, payload) });
100
- }
101
- if (!value) {
102
- return null;
103
- }
104
- return /* @__PURE__ */ jsx("div", { className: cn("font-(--ds-medium-weight)", labelClassName), children: value });
105
- }, [
106
- label,
107
- labelFormatter,
108
- payload,
109
- hideLabel,
110
- labelClassName,
111
- config,
112
- labelKey
113
- ]);
114
- if (!active || !payload?.length) {
115
- return null;
116
- }
117
- const nestLabel = payload.length === 1 && indicator !== "dot";
118
- return /* @__PURE__ */ jsxs(
119
- "div",
120
- {
121
- "data-slot": "chart-tooltip",
122
- className: cn(
123
- "grid min-w-32 items-start gap-1.5 rounded-popover bg-popover px-2.5 py-1.5 text-xs text-popover-foreground shadow-overlay ring-(length:--ds-layer-ring-w) ring-(--ds-layer-ring)",
124
- className
125
- ),
126
- children: [
127
- !nestLabel ? tooltipLabel : null,
128
- /* @__PURE__ */ jsx("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
129
- const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
130
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
131
- const indicatorColor = color ?? item.payload?.fill ?? item.color;
132
- return /* @__PURE__ */ jsx(
133
- "div",
134
- {
135
- "data-slot": "chart-tooltip-item",
136
- className: cn(
137
- "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
138
- indicator === "dot" && "items-center"
139
- ),
140
- children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [
141
- itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx(
142
- "div",
143
- {
144
- className: cn(
145
- "shrink-0 rounded-xs border-(--color-border) bg-(--color-bg)",
146
- {
147
- "h-2.5 w-2.5": indicator === "dot",
148
- "w-1": indicator === "line",
149
- "w-0 border-(length:--ds-chart-dash-w) border-dashed bg-transparent": indicator === "dashed",
150
- "my-0.5": nestLabel && indicator === "dashed"
151
- }
152
- ),
153
- style: {
154
- "--color-bg": indicatorColor,
155
- "--color-border": indicatorColor
156
- }
157
- }
158
- ),
159
- /* @__PURE__ */ jsxs(
160
- "div",
161
- {
162
- className: cn(
163
- "flex flex-1 justify-between leading-none",
164
- nestLabel ? "items-end" : "items-center"
165
- ),
166
- children: [
167
- /* @__PURE__ */ jsxs("div", { className: "grid gap-1.5", children: [
168
- nestLabel ? tooltipLabel : null,
169
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: itemConfig?.label ?? item.name })
170
- ] }),
171
- item.value != null && /* @__PURE__ */ jsx("span", { className: "font-mono font-(--ds-medium-weight) text-foreground tabular-nums", children: typeof item.value === "number" ? item.value.toLocaleString() : String(item.value) })
172
- ]
173
- }
174
- )
175
- ] })
176
- },
177
- index
178
- );
179
- }) })
180
- ]
181
- }
182
- );
183
- }
184
- const ChartLegend = RechartsPrimitive.Legend;
185
- function ChartLegendContent({
186
- className,
187
- hideIcon = false,
188
- payload,
189
- verticalAlign = "bottom",
190
- nameKey
191
- }) {
192
- const { config } = useChart();
193
- if (!payload?.length) {
194
- return null;
195
- }
196
- return /* @__PURE__ */ jsx(
197
- "div",
198
- {
199
- "data-slot": "chart-legend",
200
- className: cn(
201
- "flex items-center justify-center gap-4",
202
- verticalAlign === "top" ? "pb-3" : "pt-3",
203
- className
204
- ),
205
- children: payload.filter((item) => item.type !== "none").map((item, index) => {
206
- const key = `${nameKey ?? item.dataKey ?? "value"}`;
207
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
208
- return /* @__PURE__ */ jsxs(
209
- "div",
210
- {
211
- "data-slot": "chart-legend-item",
212
- className: cn(
213
- "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
214
- ),
215
- children: [
216
- itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx(
217
- "div",
218
- {
219
- className: "h-2 w-2 shrink-0 rounded-xs",
220
- style: {
221
- backgroundColor: item.color
222
- }
223
- }
224
- ),
225
- itemConfig?.label
226
- ]
227
- },
228
- index
229
- );
230
- })
231
- }
232
- );
233
- }
234
- function getPayloadConfigFromPayload(config, payload, key) {
235
- if (typeof payload !== "object" || payload === null) {
236
- return void 0;
237
- }
238
- const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
239
- let configLabelKey = key;
240
- if (key in payload && typeof payload[key] === "string") {
241
- configLabelKey = payload[key];
242
- } else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
243
- configLabelKey = payloadPayload[key];
244
- }
245
- return configLabelKey in config ? config[configLabelKey] : config[key];
246
- }
247
- export {
248
- ChartContainer,
249
- ChartLegend,
250
- ChartLegendContent,
251
- ChartStyle,
252
- ChartTooltip,
253
- ChartTooltipContent
254
- };
@@ -1,39 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type ChatAttachmentStatus = "ready" | "uploading" | "error";
4
- interface ChatAttachment {
5
- id: string;
6
- name: string;
7
- /** Tipo MIME; `image/*` usa el icono de imagen. */
8
- type?: string;
9
- status?: ChatAttachmentStatus;
10
- }
11
- type ChatVoiceState = "idle" | "recording" | "transcribing" | "error";
12
- interface ChatVoice {
13
- state: ChatVoiceState;
14
- /** Segundos grabados (los formatea el componente). */
15
- seconds?: number;
16
- onStart: () => void;
17
- /** Termina y usa la grabación. */
18
- onConfirm: () => void;
19
- /** Descarta la grabación. */
20
- onCancel: () => void;
21
- }
22
- declare function ChatComposer({ value, defaultValue, onValueChange, onSend, onStop, onAttach, onFilesDrop, attachments, onRemoveAttachment, voice, maxLength, streaming, disabled, placeholder, className, ...props }: Omit<React.ComponentProps<"div">, "onChange" | "defaultValue"> & {
23
- value?: string;
24
- defaultValue?: string;
25
- onValueChange?: (value: string) => void;
26
- onSend?: (value: string) => void;
27
- onStop?: () => void;
28
- onAttach?: () => void;
29
- onFilesDrop?: (files: File[]) => void;
30
- attachments?: ChatAttachment[];
31
- onRemoveAttachment?: (id: string) => void;
32
- voice?: ChatVoice;
33
- maxLength?: number;
34
- streaming?: boolean;
35
- disabled?: boolean;
36
- placeholder?: string;
37
- }): React.JSX.Element;
38
-
39
- export { type ChatAttachment, type ChatAttachmentStatus, ChatComposer, type ChatVoice, type ChatVoiceState };
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
3
-
4
- declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): React.JSX.Element;
5
-
6
- export { Checkbox };
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { Radio } from '@base-ui/react/radio';
3
- import { RadioGroup } from '@base-ui/react/radio-group';
4
-
5
- declare function ChoiceCardGroup({ className, ...props }: RadioGroup.Props): React.JSX.Element;
6
- declare function ChoiceCard({ className, orientation, ...props }: Radio.Root.Props & {
7
- orientation?: "horizontal" | "vertical";
8
- }): React.JSX.Element;
9
- declare function ChoiceCardMedia({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
10
- declare function ChoiceCardContent({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
11
- declare function ChoiceCardTitle({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
12
- declare function ChoiceCardDescription({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
13
- /** Marca de seleccionado (opcional): un círculo con punto en la esquina, como un radio. */
14
- declare function ChoiceCardIndicator({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
15
-
16
- export { ChoiceCard, ChoiceCardContent, ChoiceCardDescription, ChoiceCardGroup, ChoiceCardIndicator, ChoiceCardMedia, ChoiceCardTitle };
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
-
3
- declare function CodeBlock({ code, html, language, title, showLineNumbers, copyable, className, ...props }: Omit<React.ComponentProps<"div">, "title"> & {
4
- code: string;
5
- html?: string;
6
- language?: string;
7
- title?: React.ReactNode;
8
- showLineNumbers?: boolean;
9
- copyable?: boolean;
10
- }): React.JSX.Element;
11
- /** Código en línea, dentro de un texto. */
12
- declare function Code({ className, ...props }: React.ComponentProps<"code">): React.JSX.Element;
13
-
14
- export { Code, CodeBlock };
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
3
-
4
- declare function Collapsible({ ...props }: Collapsible$1.Root.Props): React.JSX.Element;
5
- declare function CollapsibleTrigger({ ...props }: Collapsible$1.Trigger.Props): React.JSX.Element;
6
- declare function CollapsibleContent({ ...props }: Collapsible$1.Panel.Props): React.JSX.Element;
7
-
8
- export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import { Combobox as Combobox$1 } from '@base-ui/react';
3
-
4
- declare const Combobox: typeof Combobox$1.Root;
5
- declare function ComboboxValue({ ...props }: Combobox$1.Value.Props): React.JSX.Element;
6
- declare function ComboboxTrigger({ className, children, ...props }: Combobox$1.Trigger.Props): React.JSX.Element;
7
- declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: Combobox$1.Input.Props & {
8
- showTrigger?: boolean;
9
- showClear?: boolean;
10
- }): React.JSX.Element;
11
- declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: Combobox$1.Popup.Props & Pick<Combobox$1.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): React.JSX.Element;
12
- declare function ComboboxList({ className, ...props }: Combobox$1.List.Props): React.JSX.Element;
13
- declare function ComboboxItem({ className, children, ...props }: Combobox$1.Item.Props): React.JSX.Element;
14
- declare function ComboboxGroup({ className, ...props }: Combobox$1.Group.Props): React.JSX.Element;
15
- declare function ComboboxLabel({ className, ...props }: Combobox$1.GroupLabel.Props): React.JSX.Element;
16
- declare function ComboboxCollection({ ...props }: Combobox$1.Collection.Props): React.JSX.Element;
17
- declare function ComboboxEmpty({ className, ...props }: Combobox$1.Empty.Props): React.JSX.Element;
18
- declare function ComboboxSeparator({ className, ...props }: Combobox$1.Separator.Props): React.JSX.Element;
19
- declare function ComboboxChips({ className, ...props }: React.ComponentPropsWithRef<typeof Combobox$1.Chips> & Combobox$1.Chips.Props): React.JSX.Element;
20
- declare function ComboboxChip({ className, children, showRemove, ...props }: Combobox$1.Chip.Props & {
21
- showRemove?: boolean;
22
- }): React.JSX.Element;
23
- declare function ComboboxChipsInput({ className, ...props }: Combobox$1.Input.Props): React.JSX.Element;
24
- declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
25
-
26
- export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
@@ -1,36 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type CommandPalettePreset = "go" | "actions" | "search";
4
- type CommandPaletteItem = {
5
- id: string;
6
- label: string;
7
- icon?: React.ReactNode;
8
- /** Atajo que se muestra a la derecha (solo texto; no lo enlaza). */
9
- shortcut?: string;
10
- /** Palabras extra con las que también se encuentra el elemento. */
11
- keywords?: string[];
12
- disabled?: boolean;
13
- onSelect: () => void;
14
- };
15
- type CommandPaletteGroup = {
16
- heading?: string;
17
- items: CommandPaletteItem[];
18
- };
19
- declare function CommandPalette({ preset, groups, open, onOpenChange, hotkey, placeholder, emptyMessage, query, onQueryChange, loading, closeOnSelect, className, }: {
20
- preset?: CommandPalettePreset;
21
- groups: CommandPaletteGroup[];
22
- open?: boolean;
23
- onOpenChange?: (open: boolean) => void;
24
- /** Tecla del atajo (con ⌘/Ctrl); `null` lo desactiva. */
25
- hotkey?: string | null;
26
- placeholder?: string;
27
- emptyMessage?: string;
28
- /** Texto del campo (controlado); necesario en `search` para consultar al servidor. */
29
- query?: string;
30
- onQueryChange?: (query: string) => void;
31
- loading?: boolean;
32
- closeOnSelect?: boolean;
33
- className?: string;
34
- }): React.JSX.Element;
35
-
36
- export { CommandPalette, type CommandPaletteGroup, type CommandPaletteItem, type CommandPalettePreset };
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import { Command as Command$1 } from 'cmdk';
3
- import { Dialog } from './dialog.js';
4
- import '@base-ui/react/dialog';
5
-
6
- declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): React.JSX.Element;
7
- declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
8
- title?: string;
9
- description?: string;
10
- className?: string;
11
- showCloseButton?: boolean;
12
- children: React.ReactNode;
13
- }): React.JSX.Element;
14
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>): React.JSX.Element;
15
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): React.JSX.Element;
16
- declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof Command$1.Empty>): React.JSX.Element;
17
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): React.JSX.Element;
18
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): React.JSX.Element;
19
- declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
20
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
21
-
22
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type ConfirmActionPreset = "simple" | "typed";
4
- declare function ConfirmAction({ open, onOpenChange, preset, tone, title, description, confirmLabel, cancelLabel, expected, onConfirm, }: {
5
- open?: boolean;
6
- onOpenChange?: (open: boolean) => void;
7
- preset?: ConfirmActionPreset;
8
- tone?: "destructive" | "default";
9
- title: React.ReactNode;
10
- description?: React.ReactNode;
11
- confirmLabel?: React.ReactNode;
12
- cancelLabel?: React.ReactNode;
13
- /** Texto que hay que escribir (preset `typed`). */
14
- expected?: string;
15
- onConfirm: () => void | Promise<void>;
16
- }): React.JSX.Element;
17
-
18
- export { ConfirmAction, type ConfirmActionPreset };
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- import { ConfirmActionPreset } from './confirm-action.js';
3
-
4
- interface ConfirmOptions {
5
- title: React.ReactNode;
6
- description?: React.ReactNode;
7
- confirmLabel?: React.ReactNode;
8
- cancelLabel?: React.ReactNode;
9
- tone?: "destructive" | "default";
10
- preset?: ConfirmActionPreset;
11
- /** Texto que hay que escribir (preset `typed`). */
12
- expected?: string;
13
- }
14
- type ConfirmFn = (options: ConfirmOptions) => Promise<boolean>;
15
- declare function ConfirmDialogProvider({ children }: {
16
- children?: React.ReactNode;
17
- }): React.JSX.Element;
18
- /** Devuelve `confirm(options)`: promesa de `true` (confirmó) o `false` (canceló). */
19
- declare function useConfirm(): ConfirmFn;
20
-
21
- export { ConfirmDialogProvider, type ConfirmOptions, useConfirm };
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type ConnectedAccountsPreset = "social" | "integrations";
4
- type ConnectionStatus = "connected" | "disconnected" | "expired" | "error" | "pending";
5
- type ConnectionItem = {
6
- id: string;
7
- label: React.ReactNode;
8
- icon?: React.ReactNode;
9
- description?: React.ReactNode;
10
- status: ConnectionStatus;
11
- /** Cuenta enlazada («ana@gmail.com», «workspace Acme»). */
12
- account?: React.ReactNode;
13
- /** Permisos concedidos o detalle (integraciones). */
14
- detail?: React.ReactNode;
15
- };
16
- declare function ConnectedAccounts({ preset, items, onConnect, onDisconnect, keepOne, className, ...props }: React.ComponentProps<"div"> & {
17
- preset?: ConnectedAccountsPreset;
18
- items: ConnectionItem[];
19
- onConnect?: (id: string) => void | Promise<void>;
20
- onDisconnect?: (id: string) => void | Promise<void>;
21
- /** No dejar quitar la última conexión (por defecto, en social). Si la persona tiene contraseña, pásalo a false. */
22
- keepOne?: boolean;
23
- }): React.JSX.Element;
24
-
25
- export { ConnectedAccounts, type ConnectedAccountsPreset, type ConnectionItem, type ConnectionStatus };
@@ -1,52 +0,0 @@
1
- import * as React from 'react';
2
- import { DsDensity } from '../lib/presets.js';
3
- import { Card } from './card.js';
4
- import { IconTile } from './icon-tile.js';
5
- import './auth-backdrop.js';
6
- import 'class-variance-authority/types';
7
- import 'class-variance-authority';
8
-
9
- type ContentCardPreset = "basic" | "feature" | "media" | "horizontal" | "metric" | "status" | "cover";
10
- type ContentCardEmphasis = "elevated" | "outlined" | "filled" | "ghost";
11
- declare function ContentCard({ preset, emphasis, tone, density, icon, media, value, delta, title, description, action, footer, href, onSelect, children, className, spotlight, glow, backdrop, backdropMedia, backdropGlass, animated, titleSize, plate, padding, }: {
12
- preset?: ContentCardPreset;
13
- /** Foco de luz que sigue al ratón (ver Card). */
14
- spotlight?: boolean;
15
- /** Resplandor de marca al señalar (ver Card). */
16
- glow?: boolean;
17
- /** Fondo detrás del contenido (ver Card). Con `cover` la portada es `media`. */
18
- backdrop?: React.ComponentProps<typeof Card>["backdrop"];
19
- backdropMedia?: React.ReactNode;
20
- backdropGlass?: boolean;
21
- animated?: boolean;
22
- /** Tamaño del título: `lg` y `xl` para portadas y celdas destacadas. */
23
- titleSize?: "default" | "lg" | "xl";
24
- /** Solo `cover`: `blur` pone el texto sobre una placa con la imagen desenfocada (vidrio). */
25
- plate?: "none" | "blur";
26
- /** `none`: contenido a sangre (gráfico, tabla o imagen); cabecera y pie conservan su margen. */
27
- padding?: "default" | "none";
28
- emphasis?: ContentCardEmphasis;
29
- tone?: React.ComponentProps<typeof IconTile>["tone"];
30
- density?: DsDensity;
31
- /** Icono (preset feature o cualquiera con `icon`). */
32
- icon?: React.ReactNode;
33
- /** Portada (preset media, horizontal y cover): imagen, vídeo o cualquier nodo. */
34
- media?: React.ReactNode;
35
- /** Dato grande (preset metric). */
36
- value?: React.ReactNode;
37
- /** Variación junto al dato (preset metric): «+4,2 %». */
38
- delta?: React.ReactNode;
39
- title: React.ReactNode;
40
- description?: React.ReactNode;
41
- /** Acción de la cabecera (menú, botón de icono); sigue pulsable en una tarjeta interactiva. */
42
- action?: React.ReactNode;
43
- footer?: React.ReactNode;
44
- /** Toda la tarjeta navega a esta ruta. */
45
- href?: string;
46
- /** Toda la tarjeta es un botón. */
47
- onSelect?: () => void;
48
- children?: React.ReactNode;
49
- className?: string;
50
- }): React.JSX.Element;
51
-
52
- export { ContentCard, type ContentCardEmphasis, type ContentCardPreset };
@@ -1,31 +0,0 @@
1
- import * as React from 'react';
2
- import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
3
-
4
- declare function ContextMenu({ ...props }: ContextMenu$1.Root.Props): React.JSX.Element;
5
- declare function ContextMenuPortal({ ...props }: ContextMenu$1.Portal.Props): React.JSX.Element;
6
- declare function ContextMenuTrigger({ className, ...props }: ContextMenu$1.Trigger.Props): React.JSX.Element;
7
- declare function ContextMenuContent({ className, align, alignOffset, side, sideOffset, ...props }: ContextMenu$1.Popup.Props & Pick<ContextMenu$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
8
- declare function ContextMenuGroup({ ...props }: ContextMenu$1.Group.Props): React.JSX.Element;
9
- declare function ContextMenuLabel({ className, inset, ...props }: ContextMenu$1.GroupLabel.Props & {
10
- inset?: boolean;
11
- }): React.JSX.Element;
12
- declare function ContextMenuItem({ className, inset, variant, ...props }: ContextMenu$1.Item.Props & {
13
- inset?: boolean;
14
- variant?: "default" | "destructive";
15
- }): React.JSX.Element;
16
- declare function ContextMenuSub({ ...props }: ContextMenu$1.SubmenuRoot.Props): React.JSX.Element;
17
- declare function ContextMenuSubTrigger({ className, inset, children, ...props }: ContextMenu$1.SubmenuTrigger.Props & {
18
- inset?: boolean;
19
- }): React.JSX.Element;
20
- declare function ContextMenuSubContent({ ...props }: React.ComponentProps<typeof ContextMenuContent>): React.JSX.Element;
21
- declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: ContextMenu$1.CheckboxItem.Props & {
22
- inset?: boolean;
23
- }): React.JSX.Element;
24
- declare function ContextMenuRadioGroup({ ...props }: ContextMenu$1.RadioGroup.Props): React.JSX.Element;
25
- declare function ContextMenuRadioItem({ className, children, inset, ...props }: ContextMenu$1.RadioItem.Props & {
26
- inset?: boolean;
27
- }): React.JSX.Element;
28
- declare function ContextMenuSeparator({ className, ...props }: ContextMenu$1.Separator.Props): React.JSX.Element;
29
- declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
30
-
31
- export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface Conversation {
4
- id: string;
5
- title: string;
6
- /** Última actividad; agrupa la lista (hoy, ayer, 7 días, anteriores). */
7
- updatedAt: Date | string | number;
8
- pinned?: boolean;
9
- /** Tarea en curso (el agente está respondiendo): se marca con un punto que late. */
10
- busy?: boolean;
11
- }
12
- declare function ConversationList({ items, activeId, onSelect, onNew, onRename, onDelete, onPin, now, searchable, className, ...props }: Omit<React.ComponentProps<"div">, "children" | "onSelect"> & {
13
- items: Conversation[];
14
- activeId?: string;
15
- onSelect?: (id: string) => void;
16
- onNew?: () => void;
17
- onRename?: (id: string) => void;
18
- onDelete?: (id: string) => void;
19
- onPin?: (id: string, pinned: boolean) => void;
20
- now?: Date;
21
- searchable?: boolean;
22
- }): React.JSX.Element;
23
-
24
- export { type Conversation, ConversationList };
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { Button } from './button.js';
3
- import 'class-variance-authority/types';
4
- import '@base-ui/react/use-render';
5
- import 'class-variance-authority';
6
-
7
- declare function CopyButton({ value, className, onClick, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "value" | "children"> & {
8
- value: string;
9
- }): React.JSX.Element;
10
- declare function CopyField({ value, children, className, onClick, ...props }: Omit<React.ComponentProps<"button">, "value"> & {
11
- value: string;
12
- }): React.JSX.Element;
13
-
14
- export { CopyButton, CopyField };