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.
- package/AGENTS.md +54 -12
- package/CHANGELOG.md +458 -0
- package/README.md +2 -2
- package/components.manifest.json +6630 -3569
- package/dist/hooks/use-esc-close-stack.js +38 -0
- package/dist/hooks/use-simulated-progress.js +30 -0
- package/dist/lib/brand-allowlist.js +703 -0
- package/dist/lib/brand-runtime.js +85 -0
- package/dist/lib/echarts-presets.js +152 -1
- package/dist/lib/echarts-setup.js +2 -0
- package/dist/lib/format.js +177 -0
- package/dist/lib/i18n.js +35 -2
- package/dist/lib/locales/de.js +536 -0
- package/dist/lib/locales/fr.js +536 -0
- package/dist/lib/locales/he.js +536 -0
- package/dist/lib/locales/it.js +536 -0
- package/dist/ui/auth-form.js +13 -6
- package/dist/ui/ayuda.js +4 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/calendar.js +3 -0
- package/dist/ui/carousel.js +10 -5
- package/dist/ui/context-menu.js +3 -3
- package/dist/ui/cta-banner.js +63 -0
- package/dist/ui/date-time.js +55 -0
- package/dist/ui/description-list.js +86 -0
- package/dist/ui/detail-panel.js +2 -2
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/faq.js +25 -0
- package/dist/ui/feature-grid.js +40 -0
- package/dist/ui/hero.js +145 -0
- package/dist/ui/landing-section.js +59 -0
- package/dist/ui/mfa-challenge.js +1 -1
- package/dist/ui/next-step-card.js +92 -0
- package/dist/ui/page-header.js +20 -11
- package/dist/ui/pagination.js +2 -2
- package/dist/ui/pricing-table.js +86 -0
- package/dist/ui/quantity.js +27 -0
- package/dist/ui/sheet.js +6 -2
- package/dist/ui/sidebar.js +7 -3
- package/dist/ui/tag-input.js +169 -0
- package/dist/ui/testimonial.js +61 -0
- package/dist/ui/textarea.js +7 -1
- package/dist/ui/usage-meter.js +116 -0
- package/dist/ui/week-strip.js +2 -2
- package/docs/adr/0001-rtl-clases-logicas.md +14 -1
- package/docs/designer/flujo.md +1 -1
- package/docs/designer/patrones.md +45 -1
- package/manifest/actions.json +364 -0
- package/manifest/agents.json +399 -0
- package/manifest/ai.json +128 -0
- package/manifest/auth.json +1547 -0
- package/manifest/chat.json +612 -0
- package/manifest/content.json +2793 -0
- package/manifest/data.json +2802 -0
- package/manifest/feedback.json +1005 -0
- package/manifest/forms.json +1954 -0
- package/manifest/motion.json +196 -0
- package/manifest/navigation.json +1792 -0
- package/manifest/overlays.json +934 -0
- package/package.json +240 -238
- package/scripts/cli.mjs +124 -8
- package/scripts/doctor.mjs +153 -2
- package/scripts/eslint-plugin.mjs +125 -0
- package/scripts/i18n.mjs +1 -1
- package/scripts/manifest.mjs +179 -7
- package/scripts/upgrade.mjs +126 -0
- package/skill/SKILL.md +8 -3
- package/dist/hooks/use-ds-messages.d.ts +0 -537
- package/dist/hooks/use-ds-motion.d.ts +0 -17
- package/dist/hooks/use-in-view.d.ts +0 -9
- package/dist/hooks/use-mobile.d.ts +0 -3
- package/dist/lib/a2ui-catalog.d.ts +0 -42
- package/dist/lib/a2ui.d.ts +0 -289
- package/dist/lib/ai-events.d.ts +0 -15
- package/dist/lib/auth-better-auth.d.ts +0 -29
- package/dist/lib/auth-flow.d.ts +0 -85
- package/dist/lib/auth-providers.d.ts +0 -194
- package/dist/lib/auth.d.ts +0 -68
- package/dist/lib/echarts-presets.d.ts +0 -227
- package/dist/lib/echarts-server.d.ts +0 -15
- package/dist/lib/echarts-setup.d.ts +0 -8
- package/dist/lib/echarts-theme.d.ts +0 -36
- package/dist/lib/header-control.d.ts +0 -4
- package/dist/lib/i18n.d.ts +0 -545
- package/dist/lib/image-upload.d.ts +0 -41
- package/dist/lib/motion.d.ts +0 -74
- package/dist/lib/presets.d.ts +0 -8
- package/dist/lib/template-syntax.d.ts +0 -22
- package/dist/lib/utils.d.ts +0 -5
- package/dist/motion.css +0 -146
- package/dist/styles.css +0 -1737
- package/dist/themes/chocolate.css +0 -259
- package/dist/themes/chocolate.fonts.css +0 -2
- package/dist/themes/chocolate.guide.md +0 -30
- package/dist/themes/chocolate.meta.json +0 -61
- package/dist/themes/chocolate.scoped.css +0 -259
- package/dist/themes/chocolate.tokens.json +0 -49
- package/dist/themes/fractalia.css +0 -556
- package/dist/themes/fractalia.fonts.css +0 -3
- package/dist/themes/fractalia.guide.md +0 -86
- package/dist/themes/fractalia.meta.json +0 -112
- package/dist/themes/fractalia.scoped.css +0 -556
- package/dist/themes/fractalia.tokens.json +0 -39
- package/dist/themes/friendly.css +0 -375
- package/dist/themes/friendly.fonts.css +0 -2
- package/dist/themes/friendly.guide.md +0 -38
- package/dist/themes/friendly.meta.json +0 -82
- package/dist/themes/friendly.scoped.css +0 -375
- package/dist/themes/friendly.tokens.json +0 -45
- package/dist/themes/lagoon.css +0 -362
- package/dist/themes/lagoon.fonts.css +0 -2
- package/dist/themes/lagoon.guide.md +0 -47
- package/dist/themes/lagoon.meta.json +0 -85
- package/dist/themes/lagoon.scoped.css +0 -362
- package/dist/themes/lagoon.tokens.json +0 -49
- package/dist/themes/liquid.css +0 -510
- package/dist/themes/liquid.fonts.css +0 -7
- package/dist/themes/liquid.guide.md +0 -82
- package/dist/themes/liquid.meta.json +0 -134
- package/dist/themes/liquid.scoped.css +0 -510
- package/dist/themes/liquid.tokens.json +0 -47
- package/dist/themes/matcha.css +0 -259
- package/dist/themes/matcha.fonts.css +0 -2
- package/dist/themes/matcha.guide.md +0 -30
- package/dist/themes/matcha.meta.json +0 -61
- package/dist/themes/matcha.scoped.css +0 -259
- package/dist/themes/matcha.tokens.json +0 -49
- package/dist/themes/qratia.css +0 -264
- package/dist/themes/qratia.fonts.css +0 -2
- package/dist/themes/qratia.guide.md +0 -34
- package/dist/themes/qratia.meta.json +0 -49
- package/dist/themes/qratia.scoped.css +0 -264
- package/dist/themes/qratia.tokens.json +0 -49
- package/dist/themes/stone.css +0 -263
- package/dist/themes/stone.fonts.css +0 -2
- package/dist/themes/stone.guide.md +0 -30
- package/dist/themes/stone.meta.json +0 -47
- package/dist/themes/stone.scoped.css +0 -263
- package/dist/themes/stone.tokens.json +0 -49
- package/dist/themes/tactile.css +0 -596
- package/dist/themes/tactile.fonts.css +0 -3
- package/dist/themes/tactile.guide.md +0 -82
- package/dist/themes/tactile.meta.json +0 -182
- package/dist/themes/tactile.scoped.css +0 -596
- package/dist/themes/tactile.tokens.json +0 -42
- package/dist/themes/twitter.css +0 -364
- package/dist/themes/twitter.fonts.css +0 -6
- package/dist/themes/twitter.guide.md +0 -35
- package/dist/themes/twitter.meta.json +0 -90
- package/dist/themes/twitter.scoped.css +0 -364
- package/dist/themes/twitter.tokens.json +0 -45
- package/dist/themes/y2k.css +0 -259
- package/dist/themes/y2k.fonts.css +0 -2
- package/dist/themes/y2k.guide.md +0 -30
- package/dist/themes/y2k.meta.json +0 -59
- package/dist/themes/y2k.scoped.css +0 -259
- package/dist/themes/y2k.tokens.json +0 -49
- package/dist/themes/zyro.css +0 -442
- package/dist/themes/zyro.fonts.css +0 -2
- package/dist/themes/zyro.guide.md +0 -33
- package/dist/themes/zyro.meta.json +0 -74
- package/dist/themes/zyro.scoped.css +0 -442
- package/dist/themes/zyro.tokens.json +0 -46
- package/dist/ui/a2ui-renderer.d.ts +0 -33
- package/dist/ui/accordion.d.ts +0 -9
- package/dist/ui/agent-events.d.ts +0 -32
- package/dist/ui/ai-tag.d.ts +0 -8
- package/dist/ui/alert-dialog.d.ts +0 -23
- package/dist/ui/alert.d.ts +0 -13
- package/dist/ui/animated-number.d.ts +0 -9
- package/dist/ui/app-bar.d.ts +0 -10
- package/dist/ui/aspect-ratio.d.ts +0 -7
- package/dist/ui/attachment.d.ts +0 -26
- package/dist/ui/auth-backdrop.d.ts +0 -20
- package/dist/ui/auth-form.d.ts +0 -113
- package/dist/ui/auth-layout.d.ts +0 -72
- package/dist/ui/auth-parts.d.ts +0 -43
- package/dist/ui/auth-status.d.ts +0 -23
- package/dist/ui/avatar.d.ts +0 -16
- package/dist/ui/ayuda.d.ts +0 -22
- package/dist/ui/badge.d.ts +0 -15
- package/dist/ui/banner.d.ts +0 -14
- package/dist/ui/bottom-nav.d.ts +0 -15
- package/dist/ui/breadcrumb.d.ts +0 -12
- package/dist/ui/bubble.d.ts +0 -19
- package/dist/ui/button-group.d.ts +0 -15
- package/dist/ui/button.d.ts +0 -14
- package/dist/ui/calendar.d.ts +0 -15
- package/dist/ui/card-stack.d.ts +0 -9
- package/dist/ui/card.d.ts +0 -28
- package/dist/ui/carousel.d.ts +0 -33
- package/dist/ui/chain-of-thought.d.ts +0 -19
- package/dist/ui/chart-card.d.ts +0 -28
- package/dist/ui/chart.d.ts +0 -46
- package/dist/ui/chart.js +0 -254
- package/dist/ui/chat-composer.d.ts +0 -39
- package/dist/ui/checkbox.d.ts +0 -6
- package/dist/ui/choice-card.d.ts +0 -16
- package/dist/ui/code-block.d.ts +0 -14
- package/dist/ui/collapsible.d.ts +0 -8
- package/dist/ui/combobox.d.ts +0 -26
- package/dist/ui/command-palette.d.ts +0 -36
- package/dist/ui/command.d.ts +0 -22
- package/dist/ui/confirm-action.d.ts +0 -18
- package/dist/ui/confirm-dialog.d.ts +0 -21
- package/dist/ui/connected-accounts.d.ts +0 -25
- package/dist/ui/content-card.d.ts +0 -52
- package/dist/ui/context-menu.d.ts +0 -31
- package/dist/ui/conversation-list.d.ts +0 -24
- package/dist/ui/copy-button.d.ts +0 -14
- package/dist/ui/data-table.d.ts +0 -198
- package/dist/ui/date-picker.d.ts +0 -65
- package/dist/ui/detail-panel.d.ts +0 -16
- package/dist/ui/dialog.d.ts +0 -19
- package/dist/ui/direction.d.ts +0 -1
- package/dist/ui/dock.d.ts +0 -13
- package/dist/ui/drawer.d.ts +0 -18
- package/dist/ui/dropdown-menu.d.ts +0 -31
- package/dist/ui/dropzone.d.ts +0 -44
- package/dist/ui/echart.d.ts +0 -31
- package/dist/ui/empty-state.d.ts +0 -26
- package/dist/ui/empty.d.ts +0 -15
- package/dist/ui/entity-list.d.ts +0 -25
- package/dist/ui/error-page.d.ts +0 -28
- package/dist/ui/error-state.d.ts +0 -16
- package/dist/ui/eyebrow.d.ts +0 -7
- package/dist/ui/field.d.ts +0 -28
- package/dist/ui/file-upload.d.ts +0 -42
- package/dist/ui/filter-bar.d.ts +0 -38
- package/dist/ui/form-layout.d.ts +0 -19
- package/dist/ui/gauge.d.ts +0 -40
- package/dist/ui/generated-image.d.ts +0 -14
- package/dist/ui/generated-table.d.ts +0 -11
- package/dist/ui/heatmap-grid.d.ts +0 -39
- package/dist/ui/hover-card.d.ts +0 -8
- package/dist/ui/i18n-provider.d.ts +0 -11
- package/dist/ui/icon-tile.d.ts +0 -11
- package/dist/ui/input-group.d.ts +0 -22
- package/dist/ui/input-otp.d.ts +0 -13
- package/dist/ui/input.d.ts +0 -5
- package/dist/ui/instruction-editor.d.ts +0 -64
- package/dist/ui/item.d.ts +0 -26
- package/dist/ui/kbd.d.ts +0 -6
- package/dist/ui/label.d.ts +0 -5
- package/dist/ui/legend.d.ts +0 -32
- package/dist/ui/level-meter.d.ts +0 -16
- package/dist/ui/load-more.d.ts +0 -19
- package/dist/ui/loading-state.d.ts +0 -14
- package/dist/ui/locale-switcher.d.ts +0 -19
- package/dist/ui/markdown.d.ts +0 -14
- package/dist/ui/marker.d.ts +0 -13
- package/dist/ui/media-card.d.ts +0 -13
- package/dist/ui/menubar.d.ts +0 -31
- package/dist/ui/message-actions.d.ts +0 -12
- package/dist/ui/message-scroller.d.ts +0 -16
- package/dist/ui/message.d.ts +0 -12
- package/dist/ui/mfa-challenge.d.ts +0 -33
- package/dist/ui/mfa-setup.d.ts +0 -29
- package/dist/ui/mosaic.d.ts +0 -15
- package/dist/ui/motion-provider.d.ts +0 -11
- package/dist/ui/native-select.d.ts +0 -10
- package/dist/ui/navigation-menu.d.ts +0 -15
- package/dist/ui/notice-review.d.ts +0 -32
- package/dist/ui/notifications.d.ts +0 -81
- package/dist/ui/oauth-consent.d.ts +0 -54
- package/dist/ui/page-header.d.ts +0 -22
- package/dist/ui/page-loader.d.ts +0 -23
- package/dist/ui/page-shell.d.ts +0 -8
- package/dist/ui/pagination.d.ts +0 -22
- package/dist/ui/panel.d.ts +0 -12
- package/dist/ui/passkey-list.d.ts +0 -17
- package/dist/ui/password-input.d.ts +0 -5
- package/dist/ui/password-strength.d.ts +0 -14
- package/dist/ui/popover.d.ts +0 -12
- package/dist/ui/progress.d.ts +0 -9
- package/dist/ui/proportion-bar.d.ts +0 -27
- package/dist/ui/questionnaire.d.ts +0 -24
- package/dist/ui/radio-group.d.ts +0 -8
- package/dist/ui/reasoning.d.ts +0 -10
- package/dist/ui/resizable.d.ts +0 -10
- package/dist/ui/reveal.d.ts +0 -11
- package/dist/ui/scroll-area.d.ts +0 -7
- package/dist/ui/search-box.d.ts +0 -32
- package/dist/ui/select.d.ts +0 -19
- package/dist/ui/separator.d.ts +0 -6
- package/dist/ui/session-list.d.ts +0 -19
- package/dist/ui/session-timeout.d.ts +0 -13
- package/dist/ui/sheet.d.ts +0 -16
- package/dist/ui/shield.d.ts +0 -21
- package/dist/ui/show-more.d.ts +0 -12
- package/dist/ui/sidebar.d.ts +0 -90
- package/dist/ui/sign-out-dialog.d.ts +0 -17
- package/dist/ui/skeleton.d.ts +0 -10
- package/dist/ui/slider.d.ts +0 -23
- package/dist/ui/sonner.d.ts +0 -6
- package/dist/ui/sparkline.d.ts +0 -26
- package/dist/ui/spinner.d.ts +0 -5
- package/dist/ui/stat-group.d.ts +0 -8
- package/dist/ui/stat.d.ts +0 -90
- package/dist/ui/status-badge.d.ts +0 -39
- package/dist/ui/status-hero.d.ts +0 -12
- package/dist/ui/step-dots.d.ts +0 -10
- package/dist/ui/step-flow.d.ts +0 -48
- package/dist/ui/step-ring.d.ts +0 -12
- package/dist/ui/stepper.d.ts +0 -20
- package/dist/ui/suggestions.d.ts +0 -8
- package/dist/ui/switch.d.ts +0 -8
- package/dist/ui/table.d.ts +0 -12
- package/dist/ui/tabs.d.ts +0 -14
- package/dist/ui/task-loader.d.ts +0 -14
- package/dist/ui/task-progress.d.ts +0 -18
- package/dist/ui/textarea.d.ts +0 -11
- package/dist/ui/theme-toggle.d.ts +0 -14
- package/dist/ui/timeline.d.ts +0 -29
- package/dist/ui/toast.d.ts +0 -19
- package/dist/ui/toggle-group.d.ts +0 -14
- package/dist/ui/toggle.d.ts +0 -12
- package/dist/ui/tool-call.d.ts +0 -15
- package/dist/ui/tooltip.d.ts +0 -9
- package/dist/ui/week-strip.d.ts +0 -12
- 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 };
|
package/dist/ui/checkbox.d.ts
DELETED
package/dist/ui/choice-card.d.ts
DELETED
|
@@ -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 };
|
package/dist/ui/code-block.d.ts
DELETED
|
@@ -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 };
|
package/dist/ui/collapsible.d.ts
DELETED
|
@@ -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 };
|
package/dist/ui/combobox.d.ts
DELETED
|
@@ -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 };
|
package/dist/ui/command.d.ts
DELETED
|
@@ -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 };
|
package/dist/ui/copy-button.d.ts
DELETED
|
@@ -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 };
|