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
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 };
|
package/dist/ui/date-time.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DsDateInput, DsDateStyle } from '../lib/format.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group data
|
|
6
|
-
* @summary Fecha u hora en el idioma activo dentro de <time>; RelativeTime para lo reciente («hace 5 minutos»), que se refresca solo. Nunca formatees una fecha a mano.
|
|
7
|
-
* @see description-list — pares término–valor donde suelen ir las fechas de una cuenta o un plan
|
|
8
|
-
* @see timeline — historial de eventos, que ya trae su hora (TimelineTime)
|
|
9
|
-
* @see quantity — valores con unidad (duraciones como «30 días» de un plan, bytes, %)
|
|
10
|
-
* @example Fecha absoluta (alta, renovación)
|
|
11
|
-
* <DateTime value={account.createdAt} />
|
|
12
|
-
* <DateTime value={account.renewsAt} style="long" />
|
|
13
|
-
* @example Lo reciente, con la fecha exacta en el title
|
|
14
|
-
* <RelativeTime value={device.lastSeenAt} />
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
type BaseProps = Omit<React.ComponentProps<"time">, "children" | "dateTime"> & {
|
|
18
|
-
/** Date, ISO 8601 o milisegundos. */
|
|
19
|
-
value: DsDateInput;
|
|
20
|
-
};
|
|
21
|
-
type DateTimeProps = BaseProps & {
|
|
22
|
-
/** date (por defecto) · datetime · time · long · short. */
|
|
23
|
-
style?: DsDateStyle;
|
|
24
|
-
/** Formato concreto (gana a `style`). */
|
|
25
|
-
format?: Intl.DateTimeFormatOptions;
|
|
26
|
-
/** Zona horaria IANA; por defecto la del navegador. */
|
|
27
|
-
timeZone?: string;
|
|
28
|
-
};
|
|
29
|
-
declare function DateTime({ value, style, format, timeZone, className, ...props }: DateTimeProps): React.JSX.Element;
|
|
30
|
-
type RelativeTimeProps = BaseProps & {
|
|
31
|
-
/** "auto" (por defecto: «ayer») o "always" («hace 1 día»). */
|
|
32
|
-
numeric?: "auto" | "always";
|
|
33
|
-
/** Longitud: long (por defecto) · short · narrow. */
|
|
34
|
-
length?: "long" | "short" | "narrow";
|
|
35
|
-
/** Instante de referencia fijo (pruebas, SSR). Con él no se refresca. */
|
|
36
|
-
now?: DsDateInput;
|
|
37
|
-
};
|
|
38
|
-
declare function RelativeTime({ value, numeric, length, now, title, className, ...props }: RelativeTimeProps): React.JSX.Element;
|
|
39
|
-
|
|
40
|
-
export { DateTime, type DateTimeProps, RelativeTime, type RelativeTimeProps };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @group data
|
|
5
|
-
* @summary Pares término–valor en un <dl> (límites de un plan, atributos de un equipo, datos de una cuenta). No es una tabla: para filas comparables por columnas usa Table o DataTable.
|
|
6
|
-
* @see table — varias filas con las mismas columnas que se comparan entre sí
|
|
7
|
-
* @see stat-group — pocas cifras clave destacadas en la cabecera de un panel
|
|
8
|
-
* @see usage-meter — uso frente a lo contratado, con barra y aviso
|
|
9
|
-
* @example Con items y valores con unidad
|
|
10
|
-
* <DescriptionList
|
|
11
|
-
* divided
|
|
12
|
-
* items={[
|
|
13
|
-
* { term: "Almacenamiento", value: <Quantity value={50} unit="GBy" /> },
|
|
14
|
-
* { term: "Dispositivos", value: <Quantity value={5} unit="{device}" />, description: "Ordenadores, móviles y tabletas" },
|
|
15
|
-
* { term: "Alta", value: <DateTime value={createdAt} /> },
|
|
16
|
-
* ]}
|
|
17
|
-
* />
|
|
18
|
-
* @example Montado con piezas, en rejilla
|
|
19
|
-
* <DescriptionList layout="grid">
|
|
20
|
-
* <DescriptionListItem>
|
|
21
|
-
* <DescriptionListTerm>Equipo</DescriptionListTerm>
|
|
22
|
-
* <DescriptionListDetails>Portátil de Ana</DescriptionListDetails>
|
|
23
|
-
* </DescriptionListItem>
|
|
24
|
-
* </DescriptionList>
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
type DescriptionListLayout = "inline" | "stacked" | "grid";
|
|
28
|
-
interface DescriptionListEntry {
|
|
29
|
-
term: React.ReactNode;
|
|
30
|
-
value: React.ReactNode;
|
|
31
|
-
/** Ayuda bajo el valor. */
|
|
32
|
-
description?: React.ReactNode;
|
|
33
|
-
/** Clave estable (por defecto, la posición). */
|
|
34
|
-
key?: React.Key;
|
|
35
|
-
}
|
|
36
|
-
type DescriptionListProps = React.ComponentProps<"dl"> & {
|
|
37
|
-
layout?: DescriptionListLayout;
|
|
38
|
-
divided?: boolean;
|
|
39
|
-
/** Atajo: la lista de pares. Los hijos se añaden después. */
|
|
40
|
-
items?: DescriptionListEntry[];
|
|
41
|
-
};
|
|
42
|
-
declare function DescriptionList({ layout, divided, items, className, children, ...props }: DescriptionListProps): React.JSX.Element;
|
|
43
|
-
declare function DescriptionListItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
44
|
-
declare function DescriptionListTerm({ className, ...props }: React.ComponentProps<"dt">): React.JSX.Element;
|
|
45
|
-
declare function DescriptionListDetails({ className, description, children, ...props }: React.ComponentProps<"dd"> & {
|
|
46
|
-
description?: React.ReactNode;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
|
-
|
|
49
|
-
export { DescriptionList, DescriptionListDetails, type DescriptionListEntry, DescriptionListItem, type DescriptionListLayout, type DescriptionListProps, DescriptionListTerm };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @group overlays
|
|
5
|
-
* @summary Ficha de una entidad que se abre sin salir de su lista (clic en una fila o tarjeta), ya montada sobre Sheet con título, cuerpo y pie; presets side · bottom · full.
|
|
6
|
-
* @see sheet — panel lateral a mano para lo que no es la ficha de una entidad
|
|
7
|
-
* @see drawer — hoja que se cierra arrastrando (móvil, filtros)
|
|
8
|
-
* @see confirm-action — decidir algo bloqueante (borrar, revocar), no consultar
|
|
9
|
-
* @example Ficha lateral desde una lista (preset side)
|
|
10
|
-
* <DetailPanel
|
|
11
|
-
* open={selected != null}
|
|
12
|
-
* onOpenChange={(o) => !o && setSelected(null)}
|
|
13
|
-
* title={agent.name}
|
|
14
|
-
* description={agent.role}
|
|
15
|
-
* footer={<Button onClick={edit}>Editar</Button>}
|
|
16
|
-
* >
|
|
17
|
-
* <DescriptionList items={details} />
|
|
18
|
-
* </DetailPanel>
|
|
19
|
-
* @example Hoja inferior en móvil (preset bottom)
|
|
20
|
-
* <DetailPanel open={open} onOpenChange={setOpen} preset="bottom" title={device.name}>
|
|
21
|
-
* <p>{device.summary}</p>
|
|
22
|
-
* </DetailPanel>
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
type DetailPanelPreset = "side" | "bottom" | "full";
|
|
26
|
-
declare function DetailPanel({ open, onOpenChange, preset, side, title, description, footer, children, className, }: {
|
|
27
|
-
open?: boolean;
|
|
28
|
-
onOpenChange?: (open: boolean) => void;
|
|
29
|
-
preset?: DetailPanelPreset;
|
|
30
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
31
|
-
title: React.ReactNode;
|
|
32
|
-
description?: React.ReactNode;
|
|
33
|
-
footer?: React.ReactNode;
|
|
34
|
-
children?: React.ReactNode;
|
|
35
|
-
className?: string;
|
|
36
|
-
}): React.JSX.Element;
|
|
37
|
-
|
|
38
|
-
export { DetailPanel, type DetailPanelPreset };
|
package/dist/ui/dialog.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group overlays
|
|
6
|
-
* @summary Ventana modal centrada para una tarea corta (formulario breve, detalle, novedades) que se puede cerrar sin decidir nada; para pedir una decisión, AlertDialog.
|
|
7
|
-
* @see alert-dialog — pedir una decisión que no se cierra con clic fuera (confirmar, publicar, borrar)
|
|
8
|
-
* @see sheet — panel lateral para formularios largos con la página aún de fondo
|
|
9
|
-
* @see drawer — hoja que se cierra arrastrando, pensada para móvil
|
|
10
|
-
* @example Formulario corto
|
|
11
|
-
* <Dialog>
|
|
12
|
-
* <DialogTrigger render={<Button />}>Invitar al equipo</DialogTrigger>
|
|
13
|
-
* <DialogContent>
|
|
14
|
-
* <DialogHeader>
|
|
15
|
-
* <DialogTitle>Invitar a un compañero</DialogTitle>
|
|
16
|
-
* <DialogDescription>Le enviaremos un correo con el enlace de acceso.</DialogDescription>
|
|
17
|
-
* </DialogHeader>
|
|
18
|
-
* <Field>
|
|
19
|
-
* <FieldLabel htmlFor="invite-email">Correo</FieldLabel>
|
|
20
|
-
* <Input id="invite-email" type="email" />
|
|
21
|
-
* </Field>
|
|
22
|
-
* <DialogFooter>
|
|
23
|
-
* <DialogClose render={<Button variant="outline" />}>Cancelar</DialogClose>
|
|
24
|
-
* <Button onClick={send}>Enviar invitación</Button>
|
|
25
|
-
* </DialogFooter>
|
|
26
|
-
* </DialogContent>
|
|
27
|
-
* </Dialog>
|
|
28
|
-
* @example Solo lectura, con «Cerrar» en el pie
|
|
29
|
-
* <DialogContent showCloseButton={false}>
|
|
30
|
-
* <DialogHeader>
|
|
31
|
-
* <DialogTitle>Novedades de la versión 4.2</DialogTitle>
|
|
32
|
-
* </DialogHeader>
|
|
33
|
-
* <DialogFooter showCloseButton />
|
|
34
|
-
* </DialogContent>
|
|
35
|
-
* @note Lleva siempre DialogTitle (es el nombre accesible) y se abre con DialogTrigger o con `open`/`onOpenChange` controlados.
|
|
36
|
-
* @note Contenido largo o que necesita ver la página detrás: Sheet o DetailPanel, no un Dialog con scroll.
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
declare function Dialog({ ...props }: Dialog$1.Root.Props): React.JSX.Element;
|
|
40
|
-
declare function DialogTrigger({ ...props }: Dialog$1.Trigger.Props): React.JSX.Element;
|
|
41
|
-
declare function DialogPortal({ ...props }: Dialog$1.Portal.Props): React.JSX.Element;
|
|
42
|
-
declare function DialogClose({ ...props }: Dialog$1.Close.Props): React.JSX.Element;
|
|
43
|
-
declare function DialogOverlay({ className, ...props }: Dialog$1.Backdrop.Props): React.JSX.Element;
|
|
44
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog$1.Popup.Props & {
|
|
45
|
-
showCloseButton?: boolean;
|
|
46
|
-
}): React.JSX.Element;
|
|
47
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
48
|
-
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
|
|
49
|
-
showCloseButton?: boolean;
|
|
50
|
-
}): React.JSX.Element;
|
|
51
|
-
declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): React.JSX.Element;
|
|
52
|
-
declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): React.JSX.Element;
|
|
53
|
-
|
|
54
|
-
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,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group navigation
|
|
6
|
-
* @summary Raíl compacto de accesos de solo icono con efecto lupa, para pocas secciones (≤ 8) de una app visual; sin textos ni grupos.
|
|
7
|
-
* @see sidebar — navegación principal con textos, grupos y muchos destinos
|
|
8
|
-
* @see bottom-nav — barra inferior de móvil con icono y texto
|
|
9
|
-
* @example Raíl vertical con el destino activo
|
|
10
|
-
* <Dock orientation="vertical">
|
|
11
|
-
* <DockItem label="Inicio" active><HomeIcon /></DockItem>
|
|
12
|
-
* <DockItem label="Mensajes" render={<a href="/inbox" />}><InboxIcon /></DockItem>
|
|
13
|
-
* </Dock>
|
|
14
|
-
* @example Horizontal con acciones
|
|
15
|
-
* <Dock orientation="horizontal">
|
|
16
|
-
* <DockItem label="Buscar" onClick={openSearch}><SearchIcon /></DockItem>
|
|
17
|
-
* <DockItem label="Ajustes" onClick={openSettings}><SettingsIcon /></DockItem>
|
|
18
|
-
* </Dock>
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
declare function Dock({ orientation, className, onPointerMove, onPointerLeave, ...props }: React.ComponentProps<"nav"> & {
|
|
22
|
-
orientation?: "vertical" | "horizontal";
|
|
23
|
-
}): React.JSX.Element;
|
|
24
|
-
declare function DockItem({ label, active, className, render, ...props }: useRender.ComponentProps<"button"> & {
|
|
25
|
-
/** Nombre del acceso (accesible y tooltip nativo). Obligatorio: el botón solo lleva icono. */
|
|
26
|
-
label: string;
|
|
27
|
-
active?: boolean;
|
|
28
|
-
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
29
|
-
|
|
30
|
-
export { Dock, DockItem };
|
package/dist/ui/drawer.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group overlays
|
|
6
|
-
* @summary Hoja que entra desde un borde y se cierra arrastrando (abajo por defecto, con anclajes opcionales); para móvil y para filtros o acciones rápidas al alcance del pulgar.
|
|
7
|
-
* @see sheet — panel lateral sin gesto de arrastre (escritorio, formularios largos)
|
|
8
|
-
* @see detail-panel — ficha de una entidad junto a su lista, con presets side · bottom · full
|
|
9
|
-
* @see dialog — tarea corta centrada en pantalla
|
|
10
|
-
* @example Filtros desde abajo, con asa
|
|
11
|
-
* <Drawer showSwipeHandle>
|
|
12
|
-
* <DrawerTrigger render={<Button variant="outline" />}>Filtrar</DrawerTrigger>
|
|
13
|
-
* <DrawerContent>
|
|
14
|
-
* <DrawerHeader>
|
|
15
|
-
* <DrawerTitle>Filtrar incidencias</DrawerTitle>
|
|
16
|
-
* <DrawerDescription>Elige los estados que quieres ver.</DrawerDescription>
|
|
17
|
-
* </DrawerHeader>
|
|
18
|
-
* <DrawerFooter>
|
|
19
|
-
* <Button onClick={apply}>Aplicar filtros</Button>
|
|
20
|
-
* <DrawerClose render={<Button variant="outline" />}>Cancelar</DrawerClose>
|
|
21
|
-
* </DrawerFooter>
|
|
22
|
-
* </DrawerContent>
|
|
23
|
-
* </Drawer>
|
|
24
|
-
* @example Con anclajes (40 % y pantalla entera)
|
|
25
|
-
* <Drawer snapPoints={[0.4, 1]} showSwipeHandle>
|
|
26
|
-
* <DrawerTrigger render={<Button variant="ghost" />}>Actividad reciente</DrawerTrigger>
|
|
27
|
-
* <DrawerContent>
|
|
28
|
-
* <DrawerHeader>
|
|
29
|
-
* <DrawerTitle>Actividad reciente</DrawerTitle>
|
|
30
|
-
* </DrawerHeader>
|
|
31
|
-
* </DrawerContent>
|
|
32
|
-
* </Drawer>
|
|
33
|
-
* @example Desde la derecha
|
|
34
|
-
* <Drawer swipeDirection="right">
|
|
35
|
-
* <DrawerTrigger render={<Button variant="outline" />}>Detalle del cliente</DrawerTrigger>
|
|
36
|
-
* <DrawerContent>
|
|
37
|
-
* <DrawerHeader>
|
|
38
|
-
* <DrawerTitle>Construcciones Ibéricas</DrawerTitle>
|
|
39
|
-
* </DrawerHeader>
|
|
40
|
-
* </DrawerContent>
|
|
41
|
-
* </Drawer>
|
|
42
|
-
* @note Lleva siempre DrawerTitle (nombre accesible) y un DrawerClose visible: el arrastre no es la única forma de cerrar.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
declare function Drawer({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: Drawer$1.Root.Props & {
|
|
46
|
-
showSwipeHandle?: boolean;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
|
-
declare function DrawerTrigger({ ...props }: Drawer$1.Trigger.Props): React.JSX.Element;
|
|
49
|
-
declare function DrawerPortal({ ...props }: Drawer$1.Portal.Props): React.JSX.Element;
|
|
50
|
-
declare function DrawerClose({ ...props }: Drawer$1.Close.Props): React.JSX.Element;
|
|
51
|
-
declare function DrawerOverlay({ className, ...props }: Drawer$1.Backdrop.Props): React.JSX.Element;
|
|
52
|
-
declare function DrawerSwipeHandle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
53
|
-
declare function DrawerContent({ className, children, ...props }: Drawer$1.Popup.Props): React.JSX.Element;
|
|
54
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
55
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
56
|
-
declare function DrawerTitle({ className, ...props }: Drawer$1.Title.Props): React.JSX.Element;
|
|
57
|
-
declare function DrawerDescription({ className, ...props }: Drawer$1.Description.Props): React.JSX.Element;
|
|
58
|
-
|
|
59
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Menu } from '@base-ui/react/menu';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @group overlays
|
|
6
|
-
* @summary Menú de acciones u opciones que se abre con un botón visible (⋯ de una fila, «Mi cuenta», columnas visibles); para lanzar acciones, no para elegir el valor de un campo.
|
|
7
|
-
* @see select — elegir el valor de un campo de formulario
|
|
8
|
-
* @see context-menu — las mismas acciones con clic derecho sobre el elemento
|
|
9
|
-
* @see menubar — barra de menús de aplicación (Archivo, Editar…)
|
|
10
|
-
* @example Acciones de una fila (botón de solo icono)
|
|
11
|
-
* <DropdownMenu>
|
|
12
|
-
* <DropdownMenuTrigger render={<Button size="icon" variant="ghost" aria-label={t("actions.more")} />}>
|
|
13
|
-
* <EllipsisIcon />
|
|
14
|
-
* </DropdownMenuTrigger>
|
|
15
|
-
* <DropdownMenuContent align="end">
|
|
16
|
-
* <DropdownMenuItem onClick={edit}>Editar</DropdownMenuItem>
|
|
17
|
-
* <DropdownMenuItem onClick={duplicate}>Duplicar</DropdownMenuItem>
|
|
18
|
-
* <DropdownMenuSeparator />
|
|
19
|
-
* <DropdownMenuItem variant="destructive" onClick={askDelete}>Eliminar</DropdownMenuItem>
|
|
20
|
-
* </DropdownMenuContent>
|
|
21
|
-
* </DropdownMenu>
|
|
22
|
-
* @example Grupo con etiqueta y opción única
|
|
23
|
-
* <DropdownMenuContent>
|
|
24
|
-
* <DropdownMenuGroup>
|
|
25
|
-
* <DropdownMenuLabel>Ordenar por</DropdownMenuLabel>
|
|
26
|
-
* <DropdownMenuRadioGroup value={order} onValueChange={setOrder}>
|
|
27
|
-
* <DropdownMenuRadioItem value="date">Fecha</DropdownMenuRadioItem>
|
|
28
|
-
* <DropdownMenuRadioItem value="amount">Importe</DropdownMenuRadioItem>
|
|
29
|
-
* </DropdownMenuRadioGroup>
|
|
30
|
-
* </DropdownMenuGroup>
|
|
31
|
-
* </DropdownMenuContent>
|
|
32
|
-
* @note DropdownMenuLabel va dentro de un DropdownMenuGroup (Base UI lo exige).
|
|
33
|
-
* @note La destructiva va al final, tras DropdownMenuSeparator, con `variant="destructive"`; si no se puede deshacer, abre ConfirmAction.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
declare function DropdownMenu({ ...props }: Menu.Root.Props): React.JSX.Element;
|
|
37
|
-
declare function DropdownMenuPortal({ ...props }: Menu.Portal.Props): React.JSX.Element;
|
|
38
|
-
declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): React.JSX.Element;
|
|
39
|
-
declare function DropdownMenuContent({ className, align, alignOffset, side, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
|
|
40
|
-
declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): React.JSX.Element;
|
|
41
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: Menu.Item.Props & {
|
|
42
|
-
inset?: boolean;
|
|
43
|
-
variant?: "default" | "destructive";
|
|
44
|
-
}): React.JSX.Element;
|
|
45
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: Menu.CheckboxItem.Props & {
|
|
46
|
-
inset?: boolean;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
|
-
declare function DropdownMenuRadioGroup({ ...props }: Menu.RadioGroup.Props): React.JSX.Element;
|
|
49
|
-
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: Menu.RadioItem.Props & {
|
|
50
|
-
inset?: boolean;
|
|
51
|
-
}): React.JSX.Element;
|
|
52
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: Menu.GroupLabel.Props & {
|
|
53
|
-
inset?: boolean;
|
|
54
|
-
}): React.JSX.Element;
|
|
55
|
-
declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): React.JSX.Element;
|
|
56
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
57
|
-
declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JSX.Element;
|
|
58
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Menu.SubmenuTrigger.Props & {
|
|
59
|
-
inset?: boolean;
|
|
60
|
-
}): React.JSX.Element;
|
|
61
|
-
declare function DropdownMenuSubContent({ className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "sideOffset">): React.JSX.Element;
|
|
62
|
-
|
|
63
|
-
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 };
|