orbital-ds 0.44.1 → 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 +29 -6
- package/CHANGELOG.md +458 -0
- package/README.md +2 -2
- package/components.manifest.json +209 -48
- 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/i18n.js +3 -0
- package/dist/lib/locales/de.js +1 -0
- package/dist/lib/locales/fr.js +1 -0
- package/dist/lib/locales/he.js +1 -0
- package/dist/lib/locales/it.js +1 -0
- package/dist/ui/context-menu.js +2 -2
- package/dist/ui/cta-banner.js +63 -0
- package/dist/ui/detail-panel.js +2 -2
- package/dist/ui/faq.js +25 -0
- package/dist/ui/feature-grid.js +40 -0
- package/dist/ui/landing-section.js +59 -0
- package/dist/ui/pricing-table.js +86 -0
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/testimonial.js +61 -0
- package/docs/designer/patrones.md +7 -2
- package/manifest/actions.json +1 -1
- package/manifest/agents.json +1 -1
- package/manifest/ai.json +1 -1
- package/manifest/auth.json +1 -1
- package/manifest/chat.json +1 -1
- package/manifest/content.json +496 -1
- package/manifest/data.json +1 -103
- package/manifest/feedback.json +6 -6
- package/manifest/forms.json +1 -1
- package/manifest/motion.json +3 -3
- package/manifest/navigation.json +3 -3
- package/manifest/overlays.json +14 -11
- package/package.json +6 -8
- package/scripts/cli.mjs +19 -0
- package/scripts/doctor.mjs +28 -2
- package/scripts/eslint-plugin.mjs +32 -0
- package/scripts/manifest.mjs +20 -0
- package/scripts/upgrade.mjs +126 -0
- package/dist/auth-form-B1hgbXkI.d.ts +0 -144
- package/dist/hooks/use-ds-messages.d.ts +0 -544
- 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/format.d.ts +0 -57
- package/dist/lib/header-control.d.ts +0 -4
- package/dist/lib/i18n.d.ts +0 -557
- package/dist/lib/image-upload.d.ts +0 -41
- package/dist/lib/locales/de.d.ts +0 -7
- package/dist/lib/locales/fr.d.ts +0 -7
- package/dist/lib/locales/he.d.ts +0 -7
- package/dist/lib/locales/it.d.ts +0 -7
- 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 -1775
- 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 -44
- package/dist/ui/accordion.d.ts +0 -9
- package/dist/ui/agent-events.d.ts +0 -49
- package/dist/ui/ai-tag.d.ts +0 -24
- package/dist/ui/alert-dialog.d.ts +0 -60
- package/dist/ui/alert.d.ts +0 -13
- package/dist/ui/animated-number.d.ts +0 -20
- package/dist/ui/app-bar.d.ts +0 -32
- 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 -37
- package/dist/ui/auth-form.d.ts +0 -4
- package/dist/ui/auth-layout.d.ts +0 -110
- 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 -43
- 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 -37
- package/dist/ui/breadcrumb.d.ts +0 -34
- 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 -28
- package/dist/ui/card-stack.d.ts +0 -36
- package/dist/ui/card.d.ts +0 -61
- package/dist/ui/carousel.d.ts +0 -68
- package/dist/ui/chain-of-thought.d.ts +0 -34
- package/dist/ui/chart-card.d.ts +0 -47
- package/dist/ui/chart.d.ts +0 -65
- package/dist/ui/chart.js +0 -254
- package/dist/ui/chat-composer.d.ts +0 -58
- package/dist/ui/checkbox.d.ts +0 -6
- package/dist/ui/choice-card.d.ts +0 -49
- package/dist/ui/code-block.d.ts +0 -29
- package/dist/ui/collapsible.d.ts +0 -8
- package/dist/ui/combobox.d.ts +0 -74
- package/dist/ui/command-palette.d.ts +0 -54
- package/dist/ui/command.d.ts +0 -56
- package/dist/ui/confirm-action.d.ts +0 -48
- package/dist/ui/confirm-dialog.d.ts +0 -44
- package/dist/ui/connected-accounts.d.ts +0 -25
- package/dist/ui/content-card.d.ts +0 -66
- package/dist/ui/context-menu.d.ts +0 -66
- package/dist/ui/conversation-list.d.ts +0 -44
- package/dist/ui/copy-button.d.ts +0 -25
- package/dist/ui/data-table.d.ts +0 -198
- package/dist/ui/date-picker.d.ts +0 -65
- package/dist/ui/date-time.d.ts +0 -40
- package/dist/ui/description-list.d.ts +0 -49
- package/dist/ui/detail-panel.d.ts +0 -38
- package/dist/ui/dialog.d.ts +0 -54
- package/dist/ui/direction.d.ts +0 -1
- package/dist/ui/dock.d.ts +0 -30
- package/dist/ui/drawer.d.ts +0 -59
- package/dist/ui/dropdown-menu.d.ts +0 -63
- package/dist/ui/dropzone.d.ts +0 -44
- package/dist/ui/echart.d.ts +0 -46
- 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 -57
- 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 -43
- package/dist/ui/gauge.d.ts +0 -66
- package/dist/ui/generated-image.d.ts +0 -33
- package/dist/ui/generated-table.d.ts +0 -29
- package/dist/ui/heatmap-grid.d.ts +0 -59
- package/dist/ui/hero.d.ts +0 -58
- package/dist/ui/hover-card.d.ts +0 -8
- package/dist/ui/i18n-provider.d.ts +0 -27
- 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 -36
- package/dist/ui/input.d.ts +0 -21
- package/dist/ui/instruction-editor.d.ts +0 -81
- package/dist/ui/item.d.ts +0 -26
- package/dist/ui/kbd.d.ts +0 -6
- package/dist/ui/label.d.ts +0 -22
- package/dist/ui/legend.d.ts +0 -57
- package/dist/ui/level-meter.d.ts +0 -28
- package/dist/ui/load-more.d.ts +0 -36
- package/dist/ui/loading-state.d.ts +0 -26
- package/dist/ui/locale-switcher.d.ts +0 -19
- package/dist/ui/markdown.d.ts +0 -29
- package/dist/ui/marker.d.ts +0 -13
- package/dist/ui/media-card.d.ts +0 -29
- package/dist/ui/menubar.d.ts +0 -70
- package/dist/ui/message-actions.d.ts +0 -21
- package/dist/ui/message-scroller.d.ts +0 -46
- package/dist/ui/message.d.ts +0 -45
- package/dist/ui/mfa-challenge.d.ts +0 -4
- package/dist/ui/mfa-setup.d.ts +0 -29
- package/dist/ui/mosaic.d.ts +0 -38
- package/dist/ui/motion-provider.d.ts +0 -28
- package/dist/ui/native-select.d.ts +0 -32
- package/dist/ui/navigation-menu.d.ts +0 -15
- package/dist/ui/next-step-card.d.ts +0 -55
- package/dist/ui/notice-review.d.ts +0 -64
- 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 -64
- package/dist/ui/page-loader.d.ts +0 -40
- package/dist/ui/page-shell.d.ts +0 -25
- package/dist/ui/pagination.d.ts +0 -42
- 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 -28
- package/dist/ui/popover.d.ts +0 -44
- package/dist/ui/progress.d.ts +0 -9
- package/dist/ui/proportion-bar.d.ts +0 -52
- package/dist/ui/quantity.d.ts +0 -25
- package/dist/ui/questionnaire.d.ts +0 -62
- package/dist/ui/radio-group.d.ts +0 -8
- package/dist/ui/reasoning.d.ts +0 -24
- package/dist/ui/resizable.d.ts +0 -10
- package/dist/ui/reveal.d.ts +0 -28
- 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 -53
- package/dist/ui/shield.d.ts +0 -35
- package/dist/ui/show-more.d.ts +0 -26
- package/dist/ui/sidebar.d.ts +0 -92
- 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 -40
- 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 -30
- package/dist/ui/step-dots.d.ts +0 -22
- package/dist/ui/step-flow.d.ts +0 -48
- package/dist/ui/step-ring.d.ts +0 -26
- package/dist/ui/stepper.d.ts +0 -20
- package/dist/ui/suggestions.d.ts +0 -17
- package/dist/ui/switch.d.ts +0 -8
- package/dist/ui/table.d.ts +0 -38
- package/dist/ui/tabs.d.ts +0 -14
- package/dist/ui/tag-input.d.ts +0 -21
- package/dist/ui/task-loader.d.ts +0 -29
- package/dist/ui/task-progress.d.ts +0 -32
- package/dist/ui/textarea.d.ts +0 -32
- package/dist/ui/theme-toggle.d.ts +0 -14
- package/dist/ui/timeline.d.ts +0 -55
- package/dist/ui/toast.d.ts +0 -19
- package/dist/ui/toggle-group.d.ts +0 -38
- package/dist/ui/toggle.d.ts +0 -12
- package/dist/ui/tool-call.d.ts +0 -27
- package/dist/ui/tooltip.d.ts +0 -9
- package/dist/ui/usage-meter.d.ts +0 -42
- package/dist/ui/week-strip.d.ts +0 -23
- package/dist/ui/workflow-run.d.ts +0 -51
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type PasskeyInfo = {
|
|
4
|
-
id: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
createdAt?: string | number | Date;
|
|
7
|
-
lastUsed?: string | number | Date;
|
|
8
|
-
synced?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare function PasskeyList({ passkeys, onAdd, onRename, onDelete, className, ...props }: React.ComponentProps<"div"> & {
|
|
11
|
-
passkeys: PasskeyInfo[];
|
|
12
|
-
onAdd?: () => void | Promise<void>;
|
|
13
|
-
onRename?: (id: string, name: string) => void | Promise<void>;
|
|
14
|
-
onDelete?: (id: string) => void | Promise<void>;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { type PasskeyInfo, PasskeyList };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @group forms
|
|
5
|
-
* @summary Medidor de fuerza de una contraseña en segmentos (débil, media, fuerte) bajo el campo al crearla o cambiarla.
|
|
6
|
-
* @see password-input — el campo de contraseña
|
|
7
|
-
* @see level-meter — un nivel genérico que no es de contraseña
|
|
8
|
-
* @see progress — avance de una tarea
|
|
9
|
-
* @example Por puntuación
|
|
10
|
-
* <PasswordStrength value={puntuacion} />
|
|
11
|
-
* @example Nivel directo, sin texto
|
|
12
|
-
* <PasswordStrength level="strong" showLabel={false} />
|
|
13
|
-
* @note No calcula la fuerza: la app la mide (longitud, listas de contraseñas filtradas…) y pasa `value` o `level`.
|
|
14
|
-
* @note Solo al crear o cambiar la contraseña, nunca al iniciar sesión.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
type StrengthLevel = "weak" | "medium" | "strong";
|
|
18
|
-
declare function PasswordStrength({ value, level, segments, showLabel, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
19
|
-
/** Segmentos llenos (0–segments). */
|
|
20
|
-
value?: number;
|
|
21
|
-
/** Nivel directo (si no hay `value`). */
|
|
22
|
-
level?: StrengthLevel;
|
|
23
|
-
segments?: number;
|
|
24
|
-
/** Muestra «Nivel de fuerza:» delante. */
|
|
25
|
-
showLabel?: boolean;
|
|
26
|
-
}): React.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { PasswordStrength, type StrengthLevel };
|
package/dist/ui/popover.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group overlays
|
|
6
|
-
* @summary Panel flotante anclado a un botón con contenido breve e interactivo (un campo, filtros, ajustes de una vista); se abre con clic y no bloquea la página.
|
|
7
|
-
* @see tooltip — solo una etiqueta de texto al pasar el ratón
|
|
8
|
-
* @see hover-card — vista previa no interactiva al pasar sobre un enlace
|
|
9
|
-
* @see dialog — tarea que pide foco total o varios campos
|
|
10
|
-
* @example Pequeño formulario
|
|
11
|
-
* <Popover>
|
|
12
|
-
* <PopoverTrigger render={<Button variant="outline" />}>Invitar</PopoverTrigger>
|
|
13
|
-
* <PopoverContent align="start">
|
|
14
|
-
* <PopoverHeader>
|
|
15
|
-
* <PopoverTitle>Invitar a un compañero</PopoverTitle>
|
|
16
|
-
* <PopoverDescription>Recibirá un correo para unirse.</PopoverDescription>
|
|
17
|
-
* </PopoverHeader>
|
|
18
|
-
* <Input type="email" aria-label={t("invite.email")} />
|
|
19
|
-
* <Button size="sm" onClick={send}>Enviar invitación</Button>
|
|
20
|
-
* </PopoverContent>
|
|
21
|
-
* </Popover>
|
|
22
|
-
* @example Disparador de solo icono, abre a la derecha
|
|
23
|
-
* <Popover>
|
|
24
|
-
* <PopoverTrigger render={<Button size="icon" variant="ghost" aria-label={t("view.settings")} />}>
|
|
25
|
-
* <Settings2Icon />
|
|
26
|
-
* </PopoverTrigger>
|
|
27
|
-
* <PopoverContent side="right">
|
|
28
|
-
* <PopoverHeader>
|
|
29
|
-
* <PopoverTitle>Vista del panel</PopoverTitle>
|
|
30
|
-
* </PopoverHeader>
|
|
31
|
-
* </PopoverContent>
|
|
32
|
-
* </Popover>
|
|
33
|
-
* @note Contenido corto; si crece a varios campos o pide confirmar, pasa a Dialog o Sheet.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
declare function Popover({ ...props }: Popover$1.Root.Props): React.JSX.Element;
|
|
37
|
-
declare function PopoverTrigger({ ...props }: Popover$1.Trigger.Props): React.JSX.Element;
|
|
38
|
-
declare function PopoverContent({ className, align, side, sideOffset, ...props }: Popover$1.Popup.Props & Pick<Popover$1.Positioner.Props, "align" | "side" | "sideOffset">): React.JSX.Element;
|
|
39
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
40
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
41
|
-
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
|
|
42
|
-
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
43
|
-
|
|
44
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
package/dist/ui/progress.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
3
|
-
import { DsDataTone } from './legend.js';
|
|
4
|
-
|
|
5
|
-
declare function Progress({ className, value, tone, ...props }: Progress$1.Root.Props & {
|
|
6
|
-
tone?: DsDataTone;
|
|
7
|
-
}): React.JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { Progress };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DsDataTone } from './legend.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group data
|
|
6
|
-
* @summary Barra de una parte frente al total o de un reparto en segmentos (ocupación, backlog por estado), accesible como meter. Para uso frente a lo contratado, UsageMeter; para el avance de una tarea, TaskProgress.
|
|
7
|
-
* @see usage-meter — uso frente a un límite contratado, con aviso al 80 %
|
|
8
|
-
* @see task-progress — avance de una tarea con estado (en curso, completada, con error)
|
|
9
|
-
* @see gauge — un valor en anillo o arco con la cifra en el centro
|
|
10
|
-
* @example Parte frente a total
|
|
11
|
-
* <ProportionBar label="Facturación" value={38} max={42} tone="danger" showValue />
|
|
12
|
-
* @example Reparto en segmentos
|
|
13
|
-
* <ProportionBar
|
|
14
|
-
* label="Por estado"
|
|
15
|
-
* max={1240}
|
|
16
|
-
* showValue
|
|
17
|
-
* segments={[
|
|
18
|
-
* { value: 520, tone: "chart-1", label: "Nuevos" },
|
|
19
|
-
* { value: 410, tone: "chart-2", label: "En curso" },
|
|
20
|
-
* { value: 310, tone: "chart-3", label: "Escalados" },
|
|
21
|
-
* ]}
|
|
22
|
-
* />
|
|
23
|
-
* @example Sin dato (rayada, nunca 0)
|
|
24
|
-
* <ProportionBar label="Bajas" max={18} unknown showValue />
|
|
25
|
-
* @note Sin dato es unknown (barra rayada), nunca value={0}. Para un texto propio del valor, formatValue (p. ej. «38 de 42 agentes»).
|
|
26
|
-
* @note Con segments, acompáñala de Legend con los mismos tonos y valores.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
interface ProportionSegment {
|
|
30
|
-
value: number;
|
|
31
|
-
tone?: DsDataTone;
|
|
32
|
-
/** Nombre del segmento (para el texto accesible y el tooltip nativo). */
|
|
33
|
-
label?: string;
|
|
34
|
-
}
|
|
35
|
-
declare function ProportionBar({ className, value, max, segments, tone, label, showValue, unknown, formatValue, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
36
|
-
/** Parte del total (sin `segments`). `null`/`undefined` sin segmentos = sin dato. */
|
|
37
|
-
value?: number | null;
|
|
38
|
-
/** Total (por defecto 100). */
|
|
39
|
-
max?: number;
|
|
40
|
-
segments?: ProportionSegment[];
|
|
41
|
-
tone?: DsDataTone;
|
|
42
|
-
/** Etiqueta visible sobre la barra (y nombre accesible). */
|
|
43
|
-
label?: React.ReactNode;
|
|
44
|
-
/** Muestra el valor formateado junto a la etiqueta. */
|
|
45
|
-
showValue?: boolean;
|
|
46
|
-
/** Sin dato: rayado neutro, nunca una barra a 0. */
|
|
47
|
-
unknown?: boolean;
|
|
48
|
-
/** Formato del valor (por defecto, porcentaje en el idioma activo). */
|
|
49
|
-
formatValue?: (value: number, max: number) => string;
|
|
50
|
-
}): React.JSX.Element;
|
|
51
|
-
|
|
52
|
-
export { ProportionBar, type ProportionSegment };
|
package/dist/ui/quantity.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DsQuantityOptions } from '../lib/format.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group data
|
|
6
|
-
* @summary Cifra con unidad UCUM (bytes, %, horas, días, recuentos) en el idioma activo; un nulo pinta «Sin dato». Para uso frente a un límite, UsageMeter; para una fecha, DateTime.
|
|
7
|
-
* @see usage-meter — uso frente a lo contratado, con barra y aviso
|
|
8
|
-
* @see date-time — fechas y horas (absolutas o «hace 5 minutos»)
|
|
9
|
-
* @see stat — cifra clave destacada con etiqueta y variación
|
|
10
|
-
* @example Bytes, duración y recuento
|
|
11
|
-
* <Quantity value={12_345_678_901} unit="By" />
|
|
12
|
-
* <Quantity value={30} unit="d" unitDisplay="long" />
|
|
13
|
-
* <Quantity value={3} unit="{device}" />
|
|
14
|
-
* @example Memoria en unidades binarias (GiB)
|
|
15
|
-
* <Quantity value={17_179_869_184} unit="By" system="binary" />
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
type QuantityProps = Omit<React.ComponentProps<"span">, "children"> & Pick<DsQuantityOptions, "system" | "unitDisplay" | "maximumFractionDigits" | "compact"> & {
|
|
19
|
-
value: number | null | undefined;
|
|
20
|
-
/** Unidad UCUM (`By`, `GBy`, `%`, `h`, `{device}`…). Sin ella, número sin unidad. */
|
|
21
|
-
unit?: string;
|
|
22
|
-
};
|
|
23
|
-
declare function Quantity({ value, unit, system, unitDisplay, maximumFractionDigits, compact, className, ...props }: QuantityProps): React.JSX.Element;
|
|
24
|
-
|
|
25
|
-
export { Quantity, type QuantityProps };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Questionnaire as Questionnaire$1 } from '@shadcn/react/questionnaire';
|
|
3
|
-
import { Button } from './button.js';
|
|
4
|
-
import 'class-variance-authority/types';
|
|
5
|
-
import '@base-ui/react/use-render';
|
|
6
|
-
import 'class-variance-authority';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @group forms
|
|
10
|
-
* @summary Cuestionario de varias preguntas con elección única, múltiple o respuesta libre, navegando con Anterior/Siguiente (encuestas, perfil inicial).
|
|
11
|
-
* @see step-flow — un alta o asistente por pasos con campos de formulario
|
|
12
|
-
* @see choice-card — una sola pregunta visual dentro de un formulario
|
|
13
|
-
* @see form-layout — un formulario corriente que se ve entero
|
|
14
|
-
* @example Una pregunta de opción única
|
|
15
|
-
* <Questionnaire onSubmit={enviar}>
|
|
16
|
-
* <QuestionnaireItem name="rol" required>
|
|
17
|
-
* <QuestionnaireTitle>¿Cuál es tu función en el equipo?</QuestionnaireTitle>
|
|
18
|
-
* <QuestionnaireChoices>
|
|
19
|
-
* <QuestionnaireChoice value="ventas">Ventas</QuestionnaireChoice>
|
|
20
|
-
* <QuestionnaireChoice value="soporte">Soporte</QuestionnaireChoice>
|
|
21
|
-
* </QuestionnaireChoices>
|
|
22
|
-
* <QuestionnaireError>Elige una opción para continuar.</QuestionnaireError>
|
|
23
|
-
* </QuestionnaireItem>
|
|
24
|
-
* <QuestionnaireActions>
|
|
25
|
-
* <QuestionnairePrevious>Anterior</QuestionnairePrevious>
|
|
26
|
-
* <QuestionnaireNext>Siguiente</QuestionnaireNext>
|
|
27
|
-
* <QuestionnaireSubmit>Enviar</QuestionnaireSubmit>
|
|
28
|
-
* </QuestionnaireActions>
|
|
29
|
-
* </Questionnaire>
|
|
30
|
-
* @example Varias respuestas y texto libre
|
|
31
|
-
* <QuestionnaireItem name="objetivos" multiple>
|
|
32
|
-
* <QuestionnaireTitle>¿Qué quieres conseguir?</QuestionnaireTitle>
|
|
33
|
-
* <QuestionnaireChoices>
|
|
34
|
-
* <QuestionnaireChoice value="captacion">Captar clientes</QuestionnaireChoice>
|
|
35
|
-
* <QuestionnaireChoice value="retencion">Reducir bajas</QuestionnaireChoice>
|
|
36
|
-
* </QuestionnaireChoices>
|
|
37
|
-
* </QuestionnaireItem>
|
|
38
|
-
* <QuestionnaireItem name="empresa">
|
|
39
|
-
* <QuestionnaireTitle>¿Cómo se llama tu empresa?</QuestionnaireTitle>
|
|
40
|
-
* <QuestionnaireInput placeholder="Acme S.L." />
|
|
41
|
-
* </QuestionnaireItem>
|
|
42
|
-
* @note Cada QuestionnaireItem lleva `name`: las respuestas llegan en el FormData de `onSubmit`.
|
|
43
|
-
* @note `multiple` convierte la pregunta en elección múltiple; QuestionnaireInput, en respuesta libre.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
declare function Questionnaire({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Root>): React.JSX.Element;
|
|
47
|
-
declare function QuestionnaireProgress({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Progress>): React.JSX.Element;
|
|
48
|
-
declare function QuestionnaireItem({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Item>): React.JSX.Element;
|
|
49
|
-
declare function QuestionnaireTitle({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Title>): React.JSX.Element;
|
|
50
|
-
declare function QuestionnaireDescription({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Description>): React.JSX.Element;
|
|
51
|
-
declare function QuestionnaireChoices({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Choices>): React.JSX.Element;
|
|
52
|
-
declare function QuestionnaireChoice({ children, className, ...props }: React.ComponentProps<typeof Questionnaire$1.Choice>): React.JSX.Element;
|
|
53
|
-
declare function QuestionnaireChoiceDescription({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
54
|
-
declare function QuestionnaireInput({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Input>): React.JSX.Element;
|
|
55
|
-
declare function QuestionnaireError({ className, ...props }: React.ComponentProps<typeof Questionnaire$1.Error>): React.JSX.Element;
|
|
56
|
-
declare function QuestionnaireActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
57
|
-
declare function QuestionnairePrevious({ children, className, size, variant, ...props }: React.ComponentProps<typeof Questionnaire$1.Previous> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
58
|
-
declare function QuestionnaireSkip({ children, className, size, variant, ...props }: React.ComponentProps<typeof Questionnaire$1.Skip> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
59
|
-
declare function QuestionnaireNext({ children, className, size, variant, ...props }: React.ComponentProps<typeof Questionnaire$1.Next> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
60
|
-
declare function QuestionnaireSubmit({ children, className, size, variant, ...props }: React.ComponentProps<typeof Questionnaire$1.Submit> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
61
|
-
|
|
62
|
-
export { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle };
|
package/dist/ui/radio-group.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Radio } from '@base-ui/react/radio';
|
|
3
|
-
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
4
|
-
|
|
5
|
-
declare function RadioGroup({ className, ...props }: RadioGroup$1.Props): React.JSX.Element;
|
|
6
|
-
declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): React.JSX.Element;
|
|
7
|
-
|
|
8
|
-
export { RadioGroup, RadioGroupItem };
|
package/dist/ui/reasoning.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @group agents
|
|
5
|
-
* @summary El razonamiento en texto libre del modelo, plegable: «Pensando…» mientras llega y «Razonado» al terminar; no muestra pasos ni herramientas.
|
|
6
|
-
* @see chain-of-thought — los pasos que dio el agente, uno por línea con resultados
|
|
7
|
-
* @see tool-call — una llamada concreta a una herramienta con su entrada y salida
|
|
8
|
-
* @see agent-events — la traza completa con tiempos (pensar, herramientas, traspasos)
|
|
9
|
-
* @example Mientras el modelo piensa
|
|
10
|
-
* <Reasoning streaming={isThinking}>{thoughts}</Reasoning>
|
|
11
|
-
* @example Con Markdown y título propio
|
|
12
|
-
* <Reasoning streaming={isThinking} title="Cómo lo he calculado">
|
|
13
|
-
* <Markdown streaming={isThinking}>{thoughts}</Markdown>
|
|
14
|
-
* </Reasoning>
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
declare function Reasoning({ streaming, title, defaultOpen, onOpenChange, className, children, ...props }: Omit<React.ComponentProps<"div">, "title"> & {
|
|
18
|
-
streaming?: boolean;
|
|
19
|
-
title?: React.ReactNode;
|
|
20
|
-
defaultOpen?: boolean;
|
|
21
|
-
onOpenChange?: (open: boolean) => void;
|
|
22
|
-
}): React.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { Reasoning };
|
package/dist/ui/resizable.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
-
|
|
4
|
-
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): React.JSX.Element;
|
|
5
|
-
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): React.JSX.Element;
|
|
6
|
-
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
7
|
-
withHandle?: boolean;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
package/dist/ui/reveal.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @group content
|
|
5
|
-
* @summary Hace aparecer un bloque al entrar en pantalla con el scroll (fade, up, pop, slide) con CSS y el ritmo del tema; sin JS o con movimiento reducido, queda visible.
|
|
6
|
-
* @see motion-provider — animaciones con Motion (salidas, gestos, layout)
|
|
7
|
-
* @see animated-number — una cifra que cuenta hasta su valor
|
|
8
|
-
* @example Tarjeta que sube al aparecer
|
|
9
|
-
* <Reveal effect="up">
|
|
10
|
-
* <ContentCard title="Integraciones" description="Conecta tus herramientas" />
|
|
11
|
-
* </Reveal>
|
|
12
|
-
* @example Cascada en una lista
|
|
13
|
-
* {features.map((f, i) => (
|
|
14
|
-
* <Reveal key={f.id} index={i}>
|
|
15
|
-
* <ContentCard title={f.title} />
|
|
16
|
-
* </Reveal>
|
|
17
|
-
* ))}
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
type RevealEffect = "fade" | "up" | "pop" | "slide";
|
|
21
|
-
declare function Reveal({ effect, index, once, className, style, ...props }: React.ComponentProps<"div"> & {
|
|
22
|
-
effect?: RevealEffect;
|
|
23
|
-
/** Posición en una lista: retrasa la entrada `index × --ds-motion-stagger`. */
|
|
24
|
-
index?: number;
|
|
25
|
-
once?: boolean;
|
|
26
|
-
}): React.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { Reveal, type RevealEffect };
|
package/dist/ui/scroll-area.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
|
|
3
|
-
|
|
4
|
-
declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): React.JSX.Element;
|
|
5
|
-
declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): React.JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { ScrollArea, ScrollBar };
|
package/dist/ui/search-box.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SearchSuggestion {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
/** Texto secundario (categoría, ruta…). */
|
|
7
|
-
description?: string;
|
|
8
|
-
icon?: React.ReactNode;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
}
|
|
11
|
-
interface SearchQueryOptions {
|
|
12
|
-
signal: AbortSignal;
|
|
13
|
-
}
|
|
14
|
-
declare function SearchBox({ onQuery, onSelect, onSubmit, recent, popular, debounce, minChars, maxResults, value: valueProp, defaultValue, onValueChange, placeholder, "aria-label": ariaLabel, className, ...props }: Omit<React.ComponentProps<"div">, "onSelect" | "onSubmit" | "defaultValue"> & {
|
|
15
|
-
/** Devuelve las sugerencias para un texto. Lanza o rechaza para mostrar el estado de error. */
|
|
16
|
-
onQuery: (query: string, options: SearchQueryOptions) => Promise<SearchSuggestion[]> | SearchSuggestion[];
|
|
17
|
-
onSelect?: (suggestion: SearchSuggestion) => void;
|
|
18
|
-
/** Enter sin sugerencia activa: busca el texto tal cual. */
|
|
19
|
-
onSubmit?: (query: string) => void;
|
|
20
|
-
recent?: SearchSuggestion[];
|
|
21
|
-
popular?: SearchSuggestion[];
|
|
22
|
-
debounce?: number;
|
|
23
|
-
minChars?: number;
|
|
24
|
-
maxResults?: number;
|
|
25
|
-
value?: string;
|
|
26
|
-
defaultValue?: string;
|
|
27
|
-
onValueChange?: (value: string) => void;
|
|
28
|
-
placeholder?: string;
|
|
29
|
-
"aria-label"?: string;
|
|
30
|
-
}): React.JSX.Element;
|
|
31
|
-
|
|
32
|
-
export { SearchBox, type SearchQueryOptions, type SearchSuggestion };
|
package/dist/ui/select.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Select as Select$1 } from '@base-ui/react/select';
|
|
3
|
-
|
|
4
|
-
declare const Select: typeof Select$1.Root;
|
|
5
|
-
declare function SelectGroup({ className, ...props }: Select$1.Group.Props): React.JSX.Element;
|
|
6
|
-
declare function SelectValue({ ...props }: Select$1.Value.Props): React.JSX.Element;
|
|
7
|
-
declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
|
|
8
|
-
size?: "sm" | "default";
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
declare function SelectContent({ className, children, position, align, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, "align"> & {
|
|
11
|
-
position?: "item-aligned" | "popper";
|
|
12
|
-
}): React.JSX.Element;
|
|
13
|
-
declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): React.JSX.Element;
|
|
14
|
-
declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): React.JSX.Element;
|
|
15
|
-
declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): React.JSX.Element;
|
|
16
|
-
declare function SelectScrollUpButton({ className, ...props }: Select$1.ScrollUpArrow.Props): React.JSX.Element;
|
|
17
|
-
declare function SelectScrollDownButton({ className, ...props }: Select$1.ScrollDownArrow.Props): React.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
package/dist/ui/separator.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type SessionDeviceKind = "desktop" | "laptop" | "mobile" | "tablet";
|
|
4
|
-
type SessionInfo = {
|
|
5
|
-
id: string;
|
|
6
|
-
device?: React.ReactNode;
|
|
7
|
-
kind?: SessionDeviceKind;
|
|
8
|
-
location?: React.ReactNode;
|
|
9
|
-
ip?: string;
|
|
10
|
-
lastActive?: string | number | Date;
|
|
11
|
-
current?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare function SessionList({ sessions, onRevoke, onRevokeOthers, className, ...props }: React.ComponentProps<"div"> & {
|
|
14
|
-
sessions: SessionInfo[];
|
|
15
|
-
onRevoke?: (id: string) => void | Promise<void>;
|
|
16
|
-
onRevokeOthers?: () => void | Promise<void>;
|
|
17
|
-
}): React.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { type SessionDeviceKind, type SessionInfo, SessionList };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare function SessionTimeout({ open, seconds, onExtend, onSignOut, onExpire, }: {
|
|
4
|
-
open: boolean;
|
|
5
|
-
/** Segundos que quedan al abrirse. */
|
|
6
|
-
seconds?: number;
|
|
7
|
-
/** Ampliar la sesión (renovar el token). */
|
|
8
|
-
onExtend: () => void | Promise<void>;
|
|
9
|
-
onSignOut?: () => void | Promise<void>;
|
|
10
|
-
onExpire?: () => void;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
|
|
13
|
-
export { SessionTimeout };
|
package/dist/ui/sheet.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Dialog } from '@base-ui/react/dialog';
|
|
3
|
-
import { DsInlineSide } from '../lib/i18n.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @group overlays
|
|
7
|
-
* @summary Panel modal que entra desde un borde (derecha por defecto) para editar o consultar algo largo sin perder la página de fondo; pieza base de DetailPanel.
|
|
8
|
-
* @see detail-panel — ficha de una entidad desde su lista, ya montada (título, cuerpo, pie, presets)
|
|
9
|
-
* @see drawer — hoja que se cierra arrastrando (móvil)
|
|
10
|
-
* @see dialog — tarea corta centrada
|
|
11
|
-
* @example Editar en un panel lateral
|
|
12
|
-
* <Sheet>
|
|
13
|
-
* <SheetTrigger render={<Button />}>Editar cliente</SheetTrigger>
|
|
14
|
-
* <SheetContent>
|
|
15
|
-
* <SheetHeader>
|
|
16
|
-
* <SheetTitle>Editar cliente</SheetTitle>
|
|
17
|
-
* <SheetDescription>Los cambios se aplican a las facturas pendientes.</SheetDescription>
|
|
18
|
-
* </SheetHeader>
|
|
19
|
-
* <ClientForm />
|
|
20
|
-
* <SheetFooter>
|
|
21
|
-
* <Button onClick={save}>Guardar cambios</Button>
|
|
22
|
-
* <SheetClose render={<Button variant="outline" />}>Cancelar</SheetClose>
|
|
23
|
-
* </SheetFooter>
|
|
24
|
-
* </SheetContent>
|
|
25
|
-
* </Sheet>
|
|
26
|
-
* @example Desde abajo, sin botón de cerrar
|
|
27
|
-
* <SheetContent side="bottom" showCloseButton={false}>
|
|
28
|
-
* <SheetHeader>
|
|
29
|
-
* <SheetTitle>Confirmar exportación</SheetTitle>
|
|
30
|
-
* </SheetHeader>
|
|
31
|
-
* <SheetFooter>
|
|
32
|
-
* <SheetClose render={<Button />}>Exportar</SheetClose>
|
|
33
|
-
* </SheetFooter>
|
|
34
|
-
* </SheetContent>
|
|
35
|
-
* @note Para la ficha de una entidad usa DetailPanel; Sheet a mano solo para lo que no encaja en él.
|
|
36
|
-
* @note Lleva siempre SheetTitle (nombre accesible); las acciones van en SheetFooter.
|
|
37
|
-
* @note En una app multidioma usa `side="end"`/`"start"` (siguen la lectura y se invierten en RTL); `left`/`right` son físicos.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
declare function Sheet({ ...props }: Dialog.Root.Props): React.JSX.Element;
|
|
41
|
-
declare function SheetTrigger({ ...props }: Dialog.Trigger.Props): React.JSX.Element;
|
|
42
|
-
declare function SheetClose({ ...props }: Dialog.Close.Props): React.JSX.Element;
|
|
43
|
-
declare function SheetContent({ className, children, side: sideProp, showCloseButton, ...props }: Dialog.Popup.Props & {
|
|
44
|
-
/** Borde desde el que entra: `start`/`end` siguen la dirección de lectura (RTL); `left`/`right` son físicos. */
|
|
45
|
-
side?: "top" | "bottom" | DsInlineSide;
|
|
46
|
-
showCloseButton?: boolean;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
|
-
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
49
|
-
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
50
|
-
declare function SheetTitle({ className, ...props }: Dialog.Title.Props): React.JSX.Element;
|
|
51
|
-
declare function SheetDescription({ className, ...props }: Dialog.Description.Props): React.JSX.Element;
|
|
52
|
-
|
|
53
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
package/dist/ui/shield.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DsDataTone } from './legend.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group data
|
|
6
|
-
* @summary Escudo que se rellena según el nivel de protección (0–1); ShieldRadar lo rodea de anillos que laten en protegido o alerta. Para un estado con texto, StatusBadge.
|
|
7
|
-
* @see status-badge — el estado con su texto (protegido, en riesgo), en listas y tablas
|
|
8
|
-
* @see gauge — una puntuación con cifra y escala
|
|
9
|
-
* @see status-hero — disco grande con el icono de la entidad y su estado, en la cabecera de una ficha
|
|
10
|
-
* @example Nivel de protección
|
|
11
|
-
* <Shield value={0.8} label="Cuenta protegida al 80 %" />
|
|
12
|
-
* @example Con radar de alerta
|
|
13
|
-
* <ShieldRadar tone="danger">
|
|
14
|
-
* <Shield value={0.2} />
|
|
15
|
-
* </ShieldRadar>
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
type ShieldSize = "sm" | "md";
|
|
19
|
-
declare function Shield({ value, size, label, decorative, className, children, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
20
|
-
/** Protección de 0 a 1 (se recorta a ese rango). Sin valor, el escudo vacío. */
|
|
21
|
-
value?: number | null;
|
|
22
|
-
size?: ShieldSize;
|
|
23
|
-
/** Texto accesible. Por defecto, «Nivel de protección: N %». */
|
|
24
|
-
label?: string;
|
|
25
|
-
/** Solo decoración: se oculta a los lectores de pantalla. */
|
|
26
|
-
decorative?: boolean;
|
|
27
|
-
/** Insignia en lugar del porcentaje (estrella, icono…). */
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
}): React.JSX.Element;
|
|
30
|
-
type ShieldRadarTone = Extract<DsDataTone, "success" | "warning" | "danger" | "info" | "neutral" | "primary">;
|
|
31
|
-
declare function ShieldRadar({ tone, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
32
|
-
tone?: ShieldRadarTone;
|
|
33
|
-
}): React.JSX.Element;
|
|
34
|
-
|
|
35
|
-
export { Shield, ShieldRadar, type ShieldRadarTone, type ShieldSize };
|
package/dist/ui/show-more.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @group content
|
|
5
|
-
* @summary Recorta un texto largo a N líneas con «Ver más / Ver menos» y lo expande en el sitio; el botón solo aparece si de verdad hay recorte.
|
|
6
|
-
* @see collapsible — un bloque con más contenido (formulario, filtros) que se pliega con su disparador
|
|
7
|
-
* @see accordion — varias secciones plegables con título
|
|
8
|
-
* @see detail-panel — ver el detalle completo en un panel aparte
|
|
9
|
-
* @example Descripción en una tarjeta
|
|
10
|
-
* <ShowMore lines={3}>{product.description}</ShowMore>
|
|
11
|
-
* @example Textos propios del botón
|
|
12
|
-
* <ShowMore lines={2} moreLabel="Leer la reseña" lessLabel="Ocultar">
|
|
13
|
-
* {review.body}
|
|
14
|
-
* </ShowMore>
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
declare function ShowMore({ lines, defaultExpanded, onExpandedChange, moreLabel, lessLabel, className, children, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
18
|
-
lines?: number;
|
|
19
|
-
defaultExpanded?: boolean;
|
|
20
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
21
|
-
moreLabel?: React.ReactNode;
|
|
22
|
-
lessLabel?: React.ReactNode;
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
}): React.JSX.Element;
|
|
25
|
-
|
|
26
|
-
export { ShowMore };
|