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/data-table.d.ts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import * as _tanstack_react_table from '@tanstack/react-table';
|
|
2
|
-
import { ColumnDef, SortingState, ColumnFiltersState, ColumnVisibilityState, RowSelectionState } from '@tanstack/react-table';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { DsDataTone } from './legend.js';
|
|
5
|
-
|
|
6
|
-
/** Opción de un filtro `select`. */
|
|
7
|
-
interface DataTableFilterOption {
|
|
8
|
-
value: string;
|
|
9
|
-
label: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/** `columnDef.meta` de una columna de DataTable. */
|
|
12
|
-
interface DataTableColumnMeta {
|
|
13
|
-
/** Alineación lógica de cabecera y celdas (por defecto `start`; `end` si es numérica). */
|
|
14
|
-
align?: "start" | "end" | "center";
|
|
15
|
-
/** Cifra: tabular-nums, alineada al final, formato Intl del idioma activo; null → «—». */
|
|
16
|
-
numeric?: boolean;
|
|
17
|
-
/** Opciones de Intl.NumberFormat para las columnas numéricas. */
|
|
18
|
-
format?: Intl.NumberFormatOptions;
|
|
19
|
-
/** Filtro propio de la columna en la barra de herramientas. */
|
|
20
|
-
filter?: "text" | "select";
|
|
21
|
-
/** Opciones del filtro `select`. */
|
|
22
|
-
filterOptions?: DataTableFilterOption[];
|
|
23
|
-
/** Nombre de la columna (menú de columnas, filtros) cuando la cabecera no es texto. */
|
|
24
|
-
label?: string;
|
|
25
|
-
/** Clases extra para la cabecera y las celdas de la columna. */
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Lo que sabe hacer la tabla. TanStack Table 9 registra las features de forma
|
|
30
|
-
* explícita (lo que no está aquí no entra en el bundle ni en los tipos). Los
|
|
31
|
-
* modelos de filas van detrás de su feature. La paginación la hace DataTable
|
|
32
|
-
* (recorta una página fuera de rango en vez de mostrar una tabla vacía), por
|
|
33
|
-
* eso no registra `rowPaginationFeature`.
|
|
34
|
-
*/
|
|
35
|
-
declare const dataTableFeatures: {
|
|
36
|
-
rowSortingFeature: _tanstack_react_table.TableFeature;
|
|
37
|
-
columnFilteringFeature: _tanstack_react_table.TableFeature;
|
|
38
|
-
globalFilteringFeature: _tanstack_react_table.TableFeature;
|
|
39
|
-
columnVisibilityFeature: _tanstack_react_table.TableFeature;
|
|
40
|
-
rowSelectionFeature: _tanstack_react_table.TableFeature;
|
|
41
|
-
sortedRowModel: (table: _tanstack_react_table.Table<any, any>) => () => _tanstack_react_table.RowModel<any, any>;
|
|
42
|
-
filteredRowModel: (table: _tanstack_react_table.Table<any, any>) => () => _tanstack_react_table.RowModel<any, any>;
|
|
43
|
-
filterFns: {
|
|
44
|
-
includesString: _tanstack_react_table.CreatedFilterFn<any, any>;
|
|
45
|
-
equalsString: _tanstack_react_table.CreatedFilterFn<any, any>;
|
|
46
|
-
};
|
|
47
|
-
sortFns: {
|
|
48
|
-
alphanumeric: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
49
|
-
text: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
50
|
-
basic: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
51
|
-
datetime: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
52
|
-
number: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
53
|
-
};
|
|
54
|
-
columnMeta: DataTableColumnMeta;
|
|
55
|
-
};
|
|
56
|
-
type DataTableFeatures = typeof dataTableFeatures;
|
|
57
|
-
/** Columna de DataTable: así la declaran las pantallas. */
|
|
58
|
-
type DataTableColumn<TData extends object> = ColumnDef<DataTableFeatures, TData, unknown>;
|
|
59
|
-
/** Ayudante tipado para declarar columnas (`helper.accessor("calls", {…})`). */
|
|
60
|
-
declare function createDataTableColumnHelper<TData extends object>(): _tanstack_react_table.ColumnHelper<{
|
|
61
|
-
rowSortingFeature: _tanstack_react_table.TableFeature;
|
|
62
|
-
columnFilteringFeature: _tanstack_react_table.TableFeature;
|
|
63
|
-
globalFilteringFeature: _tanstack_react_table.TableFeature;
|
|
64
|
-
columnVisibilityFeature: _tanstack_react_table.TableFeature;
|
|
65
|
-
rowSelectionFeature: _tanstack_react_table.TableFeature;
|
|
66
|
-
sortedRowModel: (table: _tanstack_react_table.Table<any, any>) => () => _tanstack_react_table.RowModel<any, any>;
|
|
67
|
-
filteredRowModel: (table: _tanstack_react_table.Table<any, any>) => () => _tanstack_react_table.RowModel<any, any>;
|
|
68
|
-
filterFns: {
|
|
69
|
-
includesString: _tanstack_react_table.CreatedFilterFn<any, any>;
|
|
70
|
-
equalsString: _tanstack_react_table.CreatedFilterFn<any, any>;
|
|
71
|
-
};
|
|
72
|
-
sortFns: {
|
|
73
|
-
alphanumeric: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
74
|
-
text: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
75
|
-
basic: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
76
|
-
datetime: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
77
|
-
number: _tanstack_react_table.CreatedSortFn<any, any>;
|
|
78
|
-
};
|
|
79
|
-
columnMeta: DataTableColumnMeta;
|
|
80
|
-
}, TData>;
|
|
81
|
-
/** Estado completo de la tabla (controlable con `state` / `onStateChange`). */
|
|
82
|
-
interface DataTableState {
|
|
83
|
-
/** Búsqueda global. */
|
|
84
|
-
search: string;
|
|
85
|
-
/** Orden (`[{ id, desc }]`, varias columnas con Mayús). */
|
|
86
|
-
sorting: SortingState;
|
|
87
|
-
/** Página, desde 1. */
|
|
88
|
-
page: number;
|
|
89
|
-
pageSize: number;
|
|
90
|
-
columnFilters: ColumnFiltersState;
|
|
91
|
-
columnVisibility: ColumnVisibilityState;
|
|
92
|
-
rowSelection: RowSelectionState;
|
|
93
|
-
}
|
|
94
|
-
declare const DATA_TABLE_PAGE_SIZES: readonly [10, 20, 50, 100];
|
|
95
|
-
/**
|
|
96
|
-
* Estado de la tabla en search params. Lo que está en su valor por defecto no
|
|
97
|
-
* se escribe (URL limpia). La selección de filas no viaja: es efímera.
|
|
98
|
-
*
|
|
99
|
-
* - `q`: búsqueda · `sort`: `col` asc, `-col` desc, varias separadas por comas
|
|
100
|
-
* - `page` (desde 1) · `size`: filas por página
|
|
101
|
-
* - `hide`: columnas ocultas separadas por comas
|
|
102
|
-
* - `f.<columna>`: valor del filtro de esa columna
|
|
103
|
-
*/
|
|
104
|
-
type DataTableSearch = {
|
|
105
|
-
q?: string;
|
|
106
|
-
sort?: string;
|
|
107
|
-
page?: number;
|
|
108
|
-
size?: number;
|
|
109
|
-
hide?: string;
|
|
110
|
-
} & {
|
|
111
|
-
[filter: `f.${string}`]: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* `validateSearch` para rutas con tabla: se queda solo con los valores válidos.
|
|
115
|
-
* El router puede convertir `?q=123` en número: se pasa a texto. Sin recortar
|
|
116
|
-
* la búsqueda (se valida en cada pulsación y se comería el espacio recién
|
|
117
|
-
* escrito); solo se descarta si está vacía.
|
|
118
|
-
*/
|
|
119
|
-
declare function validateDataTableSearch(search: Record<string, unknown>, options?: {
|
|
120
|
-
pageSizes?: readonly number[];
|
|
121
|
-
}): DataTableSearch;
|
|
122
|
-
/** Search params (validados aquí) → estado parcial para `state`. */
|
|
123
|
-
declare function dataTableStateFromSearch(search: Record<string, unknown>, options?: {
|
|
124
|
-
pageSizes?: readonly number[];
|
|
125
|
-
}): Partial<DataTableState>;
|
|
126
|
-
/** Estado → search params limpios (sin valores por defecto ni selección). */
|
|
127
|
-
declare function dataTableStateToSearch(state: Partial<DataTableState>, options?: {
|
|
128
|
-
pageSizes?: readonly number[];
|
|
129
|
-
}): DataTableSearch;
|
|
130
|
-
/** Cifra con el formato Intl del idioma activo; null/undefined/NaN → «—». */
|
|
131
|
-
declare function DataTableNumber({ value, format, className, }: {
|
|
132
|
-
value: number | null | undefined;
|
|
133
|
-
format?: Intl.NumberFormatOptions;
|
|
134
|
-
className?: string;
|
|
135
|
-
}): React.JSX.Element;
|
|
136
|
-
/**
|
|
137
|
-
* Celda de ranking: la cifra y una ProportionBar con su proporción sobre `max`
|
|
138
|
-
* (p. ej. el mayor valor de la columna). null → «—» y barra rayada de «sin
|
|
139
|
-
* dato», nunca una barra a 0. La barra es decorativa (aria-hidden): la cifra
|
|
140
|
-
* ya da el valor al lector de pantalla.
|
|
141
|
-
*/
|
|
142
|
-
declare function DataTableBarCell({ value, max, format, tone, className, }: {
|
|
143
|
-
value: number | null | undefined;
|
|
144
|
-
max: number;
|
|
145
|
-
format?: Intl.NumberFormatOptions;
|
|
146
|
-
tone?: DsDataTone;
|
|
147
|
-
className?: string;
|
|
148
|
-
}): React.JSX.Element;
|
|
149
|
-
type DataTablePreset = "browse" | "manage" | "compact" | "grouped" | "tree";
|
|
150
|
-
interface DataTableProps<TData extends object> {
|
|
151
|
-
/** Intención: `browse` (consultar), `manage` (seleccionar y actuar), `compact` (denso), `grouped` (con `groupBy`) o `tree` (con `getSubRows`). Solo fija valores por defecto. */
|
|
152
|
-
preset?: DataTablePreset;
|
|
153
|
-
columns: DataTableColumn<TData>[];
|
|
154
|
-
data: TData[];
|
|
155
|
-
/** Id estable de cada fila (selección que sobrevive a ordenar y filtrar). Por defecto, el índice. */
|
|
156
|
-
getRowId?: (row: TData, index: number) => string;
|
|
157
|
-
/** Estado controlado (todo o parte). */
|
|
158
|
-
state?: Partial<DataTableState>;
|
|
159
|
-
/** Cada cambio de estado, completo. Buscar, ordenar o filtrar vuelve a la página 1. */
|
|
160
|
-
onStateChange?: (state: DataTableState) => void;
|
|
161
|
-
/** Estado inicial cuando no se controla. */
|
|
162
|
-
defaultState?: Partial<DataTableState>;
|
|
163
|
-
/** Buscador global (por defecto, sí). */
|
|
164
|
-
searchable?: boolean;
|
|
165
|
-
/** Casillas de selección de filas. */
|
|
166
|
-
selectable?: boolean;
|
|
167
|
-
/** Menú de columnas visibles (por defecto, sí). */
|
|
168
|
-
columnToggle?: boolean;
|
|
169
|
-
/** Opciones de filas por página. */
|
|
170
|
-
pageSizes?: readonly number[];
|
|
171
|
-
/** Mientras carga se pintan filas skeleton y la tabla queda aria-busy. */
|
|
172
|
-
loading?: boolean;
|
|
173
|
-
/** Qué pintar si no hay filas (por defecto, Empty con «Sin resultados»). */
|
|
174
|
-
empty?: React.ReactNode;
|
|
175
|
-
/** Fila pulsable (ratón, Enter o Espacio). */
|
|
176
|
-
onRowClick?: (row: TData) => void;
|
|
177
|
-
/** Hueco de la barra de herramientas para acciones de la pantalla. */
|
|
178
|
-
toolbar?: React.ReactNode;
|
|
179
|
-
/** Acciones al final de cada fila (botón, menú…). */
|
|
180
|
-
rowActions?: (row: TData) => React.ReactNode;
|
|
181
|
-
density?: "comfortable" | "compact";
|
|
182
|
-
/** Agrupa las filas de cada página por esta clave; cada grupo lleva una cabecera plegable con su recuento. */
|
|
183
|
-
groupBy?: (row: TData) => string;
|
|
184
|
-
/** Contenido de la cabecera de grupo (por defecto, la clave y el recuento). */
|
|
185
|
-
groupLabel?: (key: string, count: number) => React.ReactNode;
|
|
186
|
-
/** Claves de grupo plegadas al principio. */
|
|
187
|
-
defaultCollapsedGroups?: readonly string[];
|
|
188
|
-
/** Hijos de una fila: activa la jerarquía (sangría y botón de expandir en la primera columna). */
|
|
189
|
-
getSubRows?: (row: TData) => readonly TData[] | undefined;
|
|
190
|
-
/** Ids de fila expandidos al principio (con `getSubRows`). */
|
|
191
|
-
defaultExpandedRows?: readonly string[];
|
|
192
|
-
/** Nombre accesible de la tabla. */
|
|
193
|
-
"aria-label"?: string;
|
|
194
|
-
className?: string;
|
|
195
|
-
}
|
|
196
|
-
declare function DataTable<TData extends object>({ columns, data, getRowId, state: controlled, onStateChange, defaultState, preset, searchable, selectable, columnToggle, pageSizes, loading, empty, onRowClick, toolbar, rowActions, density, groupBy, groupLabel, defaultCollapsedGroups, getSubRows, defaultExpandedRows, "aria-label": ariaLabel, className, }: DataTableProps<TData>): React.JSX.Element;
|
|
197
|
-
|
|
198
|
-
export { DATA_TABLE_PAGE_SIZES, DataTable, DataTableBarCell, type DataTableColumn, type DataTableColumnMeta, type DataTableFeatures, type DataTableFilterOption, DataTableNumber, type DataTablePreset, type DataTableProps, type DataTableSearch, type DataTableState, createDataTableColumnHelper, dataTableFeatures, dataTableStateFromSearch, dataTableStateToSearch, validateDataTableSearch };
|
package/dist/ui/date-picker.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DateRange } from 'react-day-picker';
|
|
3
|
-
export { DateRange } from 'react-day-picker';
|
|
4
|
-
import { DsMessages } from '../lib/i18n.js';
|
|
5
|
-
import { Calendar } from './calendar.js';
|
|
6
|
-
import './button.js';
|
|
7
|
-
import 'class-variance-authority/types';
|
|
8
|
-
import '@base-ui/react/use-render';
|
|
9
|
-
import 'class-variance-authority';
|
|
10
|
-
|
|
11
|
-
type DateRangePreset = {
|
|
12
|
-
label: string;
|
|
13
|
-
range: DateRange;
|
|
14
|
-
};
|
|
15
|
-
declare function DatePicker({ value, onChange, placeholder, min, max, disabled, align, formatOptions, className, id, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, calendarProps, }: {
|
|
16
|
-
value?: Date;
|
|
17
|
-
onChange?: (date: Date | undefined) => void;
|
|
18
|
-
/** Texto sin valor; por defecto, «Elige una fecha». */
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
/** Primer día elegible. */
|
|
21
|
-
min?: Date;
|
|
22
|
-
/** Último día elegible (p. ej. ayer). */
|
|
23
|
-
max?: Date;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
align?: "start" | "center" | "end";
|
|
26
|
-
/** Formato del botón (Intl.DateTimeFormat). */
|
|
27
|
-
formatOptions?: Intl.DateTimeFormatOptions;
|
|
28
|
-
className?: string;
|
|
29
|
-
id?: string;
|
|
30
|
-
"aria-invalid"?: boolean;
|
|
31
|
-
"aria-label"?: string;
|
|
32
|
-
"aria-labelledby"?: string;
|
|
33
|
-
/** Props extra del calendario (p. ej. `captionLayout="dropdown"`). */
|
|
34
|
-
calendarProps?: Omit<React.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect">;
|
|
35
|
-
}): React.JSX.Element;
|
|
36
|
-
/** Atajos por defecto: hoy, ayer y últimos 7/30/90 días (hasta `max` si es anterior a hoy). */
|
|
37
|
-
declare function defaultDatePresets(t: DsMessages, { today, max }?: {
|
|
38
|
-
today?: Date;
|
|
39
|
-
max?: Date;
|
|
40
|
-
}): DateRangePreset[];
|
|
41
|
-
declare function DateRangePicker({ value, onChange, presets, placeholder, min, max, maxSpan, numberOfMonths, disabled, align, formatOptions, className, id, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, }: {
|
|
42
|
-
value?: DateRange;
|
|
43
|
-
/** Se llama al «Aplicar» (con el rango) o al «Borrar» (con undefined). */
|
|
44
|
-
onChange?: (range: DateRange | undefined) => void;
|
|
45
|
-
/** Atajos: `true` = hoy, ayer, últimos 7/30/90 días; o una lista propia. */
|
|
46
|
-
presets?: boolean | DateRangePreset[];
|
|
47
|
-
/** Texto sin valor; por defecto, «Elige un rango de fechas». */
|
|
48
|
-
placeholder?: string;
|
|
49
|
-
min?: Date;
|
|
50
|
-
/** Último día elegible (p. ej. ayer). */
|
|
51
|
-
max?: Date;
|
|
52
|
-
/** Duración máxima del rango en días (ambos extremos incluidos). */
|
|
53
|
-
maxSpan?: number;
|
|
54
|
-
numberOfMonths?: number;
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
align?: "start" | "center" | "end";
|
|
57
|
-
formatOptions?: Intl.DateTimeFormatOptions;
|
|
58
|
-
className?: string;
|
|
59
|
-
id?: string;
|
|
60
|
-
"aria-invalid"?: boolean;
|
|
61
|
-
"aria-label"?: string;
|
|
62
|
-
"aria-labelledby"?: string;
|
|
63
|
-
}): React.JSX.Element;
|
|
64
|
-
|
|
65
|
-
export { DatePicker, DateRangePicker, type DateRangePreset, defaultDatePresets };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type DetailPanelPreset = "side" | "bottom" | "full";
|
|
4
|
-
declare function DetailPanel({ open, onOpenChange, preset, side, title, description, footer, children, className, }: {
|
|
5
|
-
open?: boolean;
|
|
6
|
-
onOpenChange?: (open: boolean) => void;
|
|
7
|
-
preset?: DetailPanelPreset;
|
|
8
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
9
|
-
title: React.ReactNode;
|
|
10
|
-
description?: React.ReactNode;
|
|
11
|
-
footer?: React.ReactNode;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { DetailPanel, type DetailPanelPreset };
|
package/dist/ui/dialog.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
3
|
-
|
|
4
|
-
declare function Dialog({ ...props }: Dialog$1.Root.Props): React.JSX.Element;
|
|
5
|
-
declare function DialogTrigger({ ...props }: Dialog$1.Trigger.Props): React.JSX.Element;
|
|
6
|
-
declare function DialogPortal({ ...props }: Dialog$1.Portal.Props): React.JSX.Element;
|
|
7
|
-
declare function DialogClose({ ...props }: Dialog$1.Close.Props): React.JSX.Element;
|
|
8
|
-
declare function DialogOverlay({ className, ...props }: Dialog$1.Backdrop.Props): React.JSX.Element;
|
|
9
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog$1.Popup.Props & {
|
|
10
|
-
showCloseButton?: boolean;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
13
|
-
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
|
|
14
|
-
showCloseButton?: boolean;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): React.JSX.Element;
|
|
17
|
-
declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): React.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
package/dist/ui/direction.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DirectionProvider, useDirection } from '@base-ui/react/direction-provider';
|
package/dist/ui/dock.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
-
|
|
4
|
-
declare function Dock({ orientation, className, onPointerMove, onPointerLeave, ...props }: React.ComponentProps<"nav"> & {
|
|
5
|
-
orientation?: "vertical" | "horizontal";
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
declare function DockItem({ label, active, className, render, ...props }: useRender.ComponentProps<"button"> & {
|
|
8
|
-
/** Nombre del acceso (accesible y tooltip nativo). Obligatorio: el botón solo lleva icono. */
|
|
9
|
-
label: string;
|
|
10
|
-
active?: boolean;
|
|
11
|
-
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
12
|
-
|
|
13
|
-
export { Dock, DockItem };
|
package/dist/ui/drawer.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
3
|
-
|
|
4
|
-
declare function Drawer({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: Drawer$1.Root.Props & {
|
|
5
|
-
showSwipeHandle?: boolean;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
declare function DrawerTrigger({ ...props }: Drawer$1.Trigger.Props): React.JSX.Element;
|
|
8
|
-
declare function DrawerPortal({ ...props }: Drawer$1.Portal.Props): React.JSX.Element;
|
|
9
|
-
declare function DrawerClose({ ...props }: Drawer$1.Close.Props): React.JSX.Element;
|
|
10
|
-
declare function DrawerOverlay({ className, ...props }: Drawer$1.Backdrop.Props): React.JSX.Element;
|
|
11
|
-
declare function DrawerSwipeHandle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
-
declare function DrawerContent({ className, children, ...props }: Drawer$1.Popup.Props): React.JSX.Element;
|
|
13
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
-
declare function DrawerTitle({ className, ...props }: Drawer$1.Title.Props): React.JSX.Element;
|
|
16
|
-
declare function DrawerDescription({ className, ...props }: Drawer$1.Description.Props): React.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Menu } from '@base-ui/react/menu';
|
|
3
|
-
|
|
4
|
-
declare function DropdownMenu({ ...props }: Menu.Root.Props): React.JSX.Element;
|
|
5
|
-
declare function DropdownMenuPortal({ ...props }: Menu.Portal.Props): React.JSX.Element;
|
|
6
|
-
declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): React.JSX.Element;
|
|
7
|
-
declare function DropdownMenuContent({ className, align, alignOffset, side, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
|
|
8
|
-
declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): React.JSX.Element;
|
|
9
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: Menu.Item.Props & {
|
|
10
|
-
inset?: boolean;
|
|
11
|
-
variant?: "default" | "destructive";
|
|
12
|
-
}): React.JSX.Element;
|
|
13
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: Menu.CheckboxItem.Props & {
|
|
14
|
-
inset?: boolean;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
declare function DropdownMenuRadioGroup({ ...props }: Menu.RadioGroup.Props): React.JSX.Element;
|
|
17
|
-
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: Menu.RadioItem.Props & {
|
|
18
|
-
inset?: boolean;
|
|
19
|
-
}): React.JSX.Element;
|
|
20
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: Menu.GroupLabel.Props & {
|
|
21
|
-
inset?: boolean;
|
|
22
|
-
}): React.JSX.Element;
|
|
23
|
-
declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): React.JSX.Element;
|
|
24
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
25
|
-
declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JSX.Element;
|
|
26
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Menu.SubmenuTrigger.Props & {
|
|
27
|
-
inset?: boolean;
|
|
28
|
-
}): React.JSX.Element;
|
|
29
|
-
declare function DropdownMenuSubContent({ className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "sideOffset">): React.JSX.Element;
|
|
30
|
-
|
|
31
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
package/dist/ui/dropzone.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type DropzoneRejectReason = "too-large" | "wrong-type" | "too-many";
|
|
4
|
-
type DropzoneRejection = {
|
|
5
|
-
file: File;
|
|
6
|
-
reason: DropzoneRejectReason;
|
|
7
|
-
/** Texto del motivo en el idioma activo (vacío si falta su texto en el catálogo). */
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
type DropzoneState = "idle" | "drag-over" | "error" | "disabled";
|
|
11
|
-
/** Tamaño legible en el idioma activo: 10485760 → «10 MB». */
|
|
12
|
-
declare function formatBytes(bytes: number, locale: string): string;
|
|
13
|
-
declare function Dropzone({ className, areaClassName, accept, maxSize, maxFiles, multiple, disabled, invalid, onFiles, onReject, title, hint, description, icon, children, id, name, ...props }: Omit<React.ComponentProps<"div">, "title"> & {
|
|
14
|
-
/** Tipos admitidos, con la sintaxis de `<input accept>`: «.pdf,image/*». */
|
|
15
|
-
accept?: string;
|
|
16
|
-
/** Tamaño máximo por fichero, en bytes. */
|
|
17
|
-
maxSize?: number;
|
|
18
|
-
/** Número máximo de ficheros por entrega (con `multiple`). */
|
|
19
|
-
maxFiles?: number;
|
|
20
|
-
multiple?: boolean;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/** Fuerza el estado de error (p. ej. un campo obligatorio vacío). */
|
|
23
|
-
invalid?: boolean;
|
|
24
|
-
/** Ficheros aceptados. */
|
|
25
|
-
onFiles?: (files: File[]) => void;
|
|
26
|
-
/** Ficheros rechazados, con su motivo. */
|
|
27
|
-
onReject?: (rejections: DropzoneRejection[]) => void;
|
|
28
|
-
/** Título; por defecto, el del idioma activo. */
|
|
29
|
-
title?: React.ReactNode;
|
|
30
|
-
/** Pista bajo el título; por defecto, «o haz clic para buscarlos». */
|
|
31
|
-
hint?: React.ReactNode;
|
|
32
|
-
/** Texto de la app (p. ej. «CSV, hasta 10 MB»). */
|
|
33
|
-
description?: React.ReactNode;
|
|
34
|
-
/** Icono de la baldosa; por defecto, subir. */
|
|
35
|
-
icon?: React.ReactNode;
|
|
36
|
-
/** Clases del área pulsable (la `label`); lo usa FileUpload para el preset `button`. */
|
|
37
|
-
areaClassName?: string;
|
|
38
|
-
/** id del `input type=file`. */
|
|
39
|
-
id?: string;
|
|
40
|
-
/** name del `input type=file` (formularios). */
|
|
41
|
-
name?: string;
|
|
42
|
-
}): React.JSX.Element;
|
|
43
|
-
|
|
44
|
-
export { Dropzone, type DropzoneRejectReason, type DropzoneRejection, type DropzoneState, formatBytes };
|
package/dist/ui/echart.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as echarts from 'echarts/core';
|
|
3
|
-
import { EChartsCoreOption } from 'echarts/core';
|
|
4
|
-
export { EChartsCoreOption as DsEChartOption } from 'echarts/core';
|
|
5
|
-
|
|
6
|
-
interface EChartHandle {
|
|
7
|
-
/** Instancia de ECharts (para eventos o acciones avanzadas). */
|
|
8
|
-
getInstance(): ReturnType<typeof echarts.init> | null;
|
|
9
|
-
/** SVG del gráfico tal como se ve (solo con renderer SVG). */
|
|
10
|
-
toSvg(): string | null;
|
|
11
|
-
/** Descarga el gráfico como SVG o PNG. */
|
|
12
|
-
download(type?: "svg" | "png", fileName?: string): void;
|
|
13
|
-
}
|
|
14
|
-
interface EChartProps extends Omit<React.ComponentProps<"div">, "ref"> {
|
|
15
|
-
option: EChartsCoreOption;
|
|
16
|
-
/** Alto del gráfico (cualquier medida CSS). El ancho es el del contenedor. */
|
|
17
|
-
height?: string | number;
|
|
18
|
-
renderer?: "svg" | "canvas";
|
|
19
|
-
/** Reemplaza las series en vez de fusionarlas al cambiar `option`. */
|
|
20
|
-
notMerge?: boolean;
|
|
21
|
-
/** Muestra los botones de descargar SVG y PNG. */
|
|
22
|
-
exportable?: boolean;
|
|
23
|
-
fileName?: string;
|
|
24
|
-
/** Sin datos: muestra el texto «Sin datos» en lugar del gráfico. */
|
|
25
|
-
empty?: boolean;
|
|
26
|
-
/** Eventos de ECharts: { click: (p) => …, legendselectchanged: … } */
|
|
27
|
-
onEvents?: Record<string, (params: unknown) => void>;
|
|
28
|
-
}
|
|
29
|
-
declare const EChart: React.ForwardRefExoticComponent<EChartProps & React.RefAttributes<EChartHandle>>;
|
|
30
|
-
|
|
31
|
-
export { EChart, type EChartHandle, type EChartProps };
|
package/dist/ui/empty-state.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AuthBackdropVariant } from './auth-backdrop.js';
|
|
3
|
-
import { Empty } from './empty.js';
|
|
4
|
-
import 'class-variance-authority/types';
|
|
5
|
-
import 'class-variance-authority';
|
|
6
|
-
|
|
7
|
-
type EmptyStatePreset = "first-use" | "no-results" | "error" | "forbidden";
|
|
8
|
-
declare function EmptyState({ preset, title, description, icon, action, backdrop, backdropMedia, backdropGlass, animated, className, children, ...props }: Omit<React.ComponentProps<typeof Empty>, "title"> & {
|
|
9
|
-
preset?: EmptyStatePreset;
|
|
10
|
-
title?: React.ReactNode;
|
|
11
|
-
description?: React.ReactNode;
|
|
12
|
-
/** Sustituye el icono del preset. */
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
/** Acción principal (botón o enlace); la pone la app. */
|
|
15
|
-
action?: React.ReactNode;
|
|
16
|
-
/** Fondo decorativo detrás (ver AuthBackdrop): mesh, aurora, dots, image… Por defecto, ninguno. */
|
|
17
|
-
backdrop?: AuthBackdropVariant;
|
|
18
|
-
/** backdrop="image": la foto o el vídeo (un <img>/<video> con alt=""), teñido de marca. */
|
|
19
|
-
backdropMedia?: React.ReactNode;
|
|
20
|
-
/** Cristal esmerilado sobre el fondo («mesh + glass»). */
|
|
21
|
-
backdropGlass?: boolean;
|
|
22
|
-
/** Entrada en cascada y el icono flotando con el ritmo del tema (quieto con movimiento reducido). */
|
|
23
|
-
animated?: boolean;
|
|
24
|
-
}): React.JSX.Element;
|
|
25
|
-
|
|
26
|
-
export { EmptyState, type EmptyStatePreset };
|
package/dist/ui/empty.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare function Empty({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
6
|
-
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
7
|
-
declare const emptyMediaVariants: (props?: ({
|
|
8
|
-
variant?: "icon" | "default" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): React$1.JSX.Element;
|
|
11
|
-
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
12
|
-
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): React$1.JSX.Element;
|
|
13
|
-
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
14
|
-
|
|
15
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
package/dist/ui/entity-list.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type EntityListPreset = "list" | "grid" | "compact";
|
|
4
|
-
declare function EntityList<T>({ items, getKey, renderItem, preset, toolbar, bulk, loading, error, onRetry, filtered, emptyAction, skeletonCount, className, }: {
|
|
5
|
-
items: readonly T[];
|
|
6
|
-
getKey: (item: T) => string | number;
|
|
7
|
-
renderItem: (item: T) => React.ReactNode;
|
|
8
|
-
preset?: EntityListPreset;
|
|
9
|
-
/** Barra superior (FilterBar, buscador…). */
|
|
10
|
-
toolbar?: React.ReactNode;
|
|
11
|
-
/** Barra de acciones en lote (aparece cuando la app tiene filas seleccionadas); la app decide cuándo pasarla. */
|
|
12
|
-
bulk?: React.ReactNode;
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
/** Si hay error, se muestra en lugar de la lista. */
|
|
15
|
-
error?: unknown;
|
|
16
|
-
onRetry?: () => void;
|
|
17
|
-
/** Hay filtros o búsqueda activos (distingue «sin resultados» de «primer uso»). */
|
|
18
|
-
filtered?: boolean;
|
|
19
|
-
/** Acción del estado vacío (crear la primera, quitar filtros…). */
|
|
20
|
-
emptyAction?: React.ReactNode;
|
|
21
|
-
skeletonCount?: number;
|
|
22
|
-
className?: string;
|
|
23
|
-
}): React.JSX.Element;
|
|
24
|
-
|
|
25
|
-
export { EntityList, type EntityListPreset };
|
package/dist/ui/error-page.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AuthBackdropVariant } from './auth-backdrop.js';
|
|
3
|
-
|
|
4
|
-
type ErrorPagePreset = "not-found" | "forbidden" | "server-error" | "offline" | "maintenance";
|
|
5
|
-
type ErrorPageTone = "neutral" | "playful";
|
|
6
|
-
declare function ErrorPage({ preset, tone, code, title, description, illustration, actions, backdrop, backdropMedia, backdropGlass, animated, className, style, ...props }: Omit<React.ComponentProps<"main">, "title"> & {
|
|
7
|
-
preset?: ErrorPagePreset;
|
|
8
|
-
/** Tono de los textos por defecto. */
|
|
9
|
-
tone?: ErrorPageTone;
|
|
10
|
-
/** Número grande (404, 500…); `null` lo oculta. */
|
|
11
|
-
code?: string | null;
|
|
12
|
-
title?: React.ReactNode;
|
|
13
|
-
description?: React.ReactNode;
|
|
14
|
-
/** Sustituye el icono del preset. */
|
|
15
|
-
illustration?: React.ReactNode;
|
|
16
|
-
/** Botones o enlaces de la app; el primero es el principal. */
|
|
17
|
-
actions?: React.ReactNode;
|
|
18
|
-
/** Fondo decorativo detrás (ver AuthBackdrop): mesh, aurora, dots, image… Por defecto, ninguno. */
|
|
19
|
-
backdrop?: AuthBackdropVariant;
|
|
20
|
-
/** backdrop="image": la foto o el vídeo (un <img>/<video> con alt=""), teñido de marca. */
|
|
21
|
-
backdropMedia?: React.ReactNode;
|
|
22
|
-
/** Cristal esmerilado sobre el fondo («mesh + glass»). */
|
|
23
|
-
backdropGlass?: boolean;
|
|
24
|
-
/** Entrada en cascada y el icono flotando con el ritmo del tema (quieto con movimiento reducido). */
|
|
25
|
-
animated?: boolean;
|
|
26
|
-
}): React.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { ErrorPage, type ErrorPagePreset, type ErrorPageTone };
|
package/dist/ui/error-state.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { EmptyState } from './empty-state.js';
|
|
3
|
-
import './auth-backdrop.js';
|
|
4
|
-
import './empty.js';
|
|
5
|
-
import 'class-variance-authority/types';
|
|
6
|
-
import 'class-variance-authority';
|
|
7
|
-
|
|
8
|
-
declare function ErrorState({ onRetry, retrying, retryLabel, action, ...props }: Omit<React.ComponentProps<typeof EmptyState>, "preset"> & {
|
|
9
|
-
/** Reintenta la carga. Sin ella no se pinta el botón. */
|
|
10
|
-
onRetry?: () => void | Promise<void>;
|
|
11
|
-
/** Está reintentando: bloquea el botón. */
|
|
12
|
-
retrying?: boolean;
|
|
13
|
-
retryLabel?: React.ReactNode;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { ErrorState };
|
package/dist/ui/eyebrow.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
-
|
|
4
|
-
declare const eyebrowClassName = "text-xs leading-tight font-(--ds-label-weight) tracking-(--ds-label-tracking) text-muted-foreground uppercase";
|
|
5
|
-
declare function Eyebrow({ className, render, ...props }: useRender.ComponentProps<"p">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
6
|
-
|
|
7
|
-
export { Eyebrow, eyebrowClassName };
|
package/dist/ui/field.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { Label } from './label.js';
|
|
5
|
-
|
|
6
|
-
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): React$1.JSX.Element;
|
|
7
|
-
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
8
|
-
variant?: "legend" | "label";
|
|
9
|
-
}): React$1.JSX.Element;
|
|
10
|
-
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
11
|
-
declare const fieldVariants: (props?: ({
|
|
12
|
-
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
13
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
14
|
-
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): React$1.JSX.Element;
|
|
15
|
-
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
16
|
-
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
17
|
-
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
18
|
-
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): React$1.JSX.Element;
|
|
19
|
-
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}): React$1.JSX.Element;
|
|
22
|
-
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
23
|
-
errors?: Array<{
|
|
24
|
-
message?: string;
|
|
25
|
-
} | undefined>;
|
|
26
|
-
}): React$1.JSX.Element | null;
|
|
27
|
-
|
|
28
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
package/dist/ui/file-upload.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type FileUploadPreset = "drop" | "button";
|
|
4
|
-
type FileUploadStatus = "ready" | "uploading" | "done" | "error";
|
|
5
|
-
type FileUploadItem = {
|
|
6
|
-
id: string;
|
|
7
|
-
file: File;
|
|
8
|
-
status: FileUploadStatus;
|
|
9
|
-
/** 0–100 */
|
|
10
|
-
progress: number;
|
|
11
|
-
/** Mensaje si `status` es `error`. */
|
|
12
|
-
error?: string;
|
|
13
|
-
};
|
|
14
|
-
type FileUploadFn = (file: File, onProgress: (percent: number) => void, signal: AbortSignal) => Promise<unknown>;
|
|
15
|
-
declare function FileUpload({ preset, files, onFilesChange, upload, accept, maxSize, maxFiles, multiple, disabled, title, hint, description, icon, label, name, id, className, }: {
|
|
16
|
-
preset?: FileUploadPreset;
|
|
17
|
-
/** Lista controlada. Sin ella, el componente la guarda. */
|
|
18
|
-
files?: FileUploadItem[];
|
|
19
|
-
onFilesChange?: (files: FileUploadItem[]) => void;
|
|
20
|
-
/** Sube un fichero; la pone la app. Sin ella, solo recoge. */
|
|
21
|
-
upload?: FileUploadFn;
|
|
22
|
-
/** Tipos admitidos, con la sintaxis de `<input accept>`. */
|
|
23
|
-
accept?: string;
|
|
24
|
-
/** Tamaño máximo por fichero, en bytes. */
|
|
25
|
-
maxSize?: number;
|
|
26
|
-
/** Máximo de ficheros en la lista. */
|
|
27
|
-
maxFiles?: number;
|
|
28
|
-
multiple?: boolean;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
title?: React.ReactNode;
|
|
31
|
-
hint?: React.ReactNode;
|
|
32
|
-
/** Texto de la app (p. ej. «PDF o imagen, hasta 10 MB»). */
|
|
33
|
-
description?: React.ReactNode;
|
|
34
|
-
icon?: React.ReactNode;
|
|
35
|
-
/** Texto del botón (preset `button`). */
|
|
36
|
-
label?: React.ReactNode;
|
|
37
|
-
name?: string;
|
|
38
|
-
id?: string;
|
|
39
|
-
className?: string;
|
|
40
|
-
}): React.JSX.Element;
|
|
41
|
-
|
|
42
|
-
export { FileUpload, type FileUploadFn, type FileUploadItem, type FileUploadPreset, type FileUploadStatus };
|