refactor: reestructura actx/glob/uiux, agrega librería acel y rutas de test
- Refactoriza actx eliminando nr_actx/nr_engine, unifica en engine.svelte.ts
- Actualiza motores de glob (curr, dati, numr, unit) con variantes .svelte.ts
- Agrega librería de componentes UI acel (accordion, button, collapsible, modal)
- Configura SPA pura: ssr=false, prerender=false, adapter-static con fallback
- Agrega rutas de test para accordion, collapsible y modal
- Corrige doble namespace en accordion/index.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
/**
|
|
|
|
|
* acel — Active Elements
|
|
|
|
|
*
|
|
|
|
|
* Librería de componentes UI con integración nativa a actx.
|
|
|
|
|
* Sin dependencias externas, refactorizada desde uisv.
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* // Importar componentes
|
|
|
|
|
* import { ToastHost, ModalHost } from '$uix/acel';
|
|
|
|
|
*
|
|
|
|
|
* // Usar composables
|
|
|
|
|
* import { useToast, useTheme } from '$uix/acel';
|
|
|
|
|
* const { show } = useToast();
|
|
|
|
|
* show({ es: 'Hola', en: 'Hello' }, { type: 'success' });
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Composables reactivos
|
|
|
|
|
export { actx, useTheme, useBreakpoint, useToast, useModal, useMenu } from './acel.svelte';
|
|
|
|
|
|
|
|
|
|
// Componentes
|
|
|
|
|
export { ToastHost } from './toast';
|
|
|
|
|
export { Modal, ModalHost, Drawer } from './modal';
|
|
|
|
|
|
|
|
|
|
// Primitives
|
|
|
|
|
export * as Accordion from './accordion';
|
|
|
|
|
export * as Button from './button';
|
|
|
|
|
export * as Collapsible from './collapsible';
|
feat: port Dialog to acel, refactor alert-dialog, fix TS errors, add test pages
- Port Dialog component from uisv to acel (dialog.svelte.ts state machine)
- Rewrite alert-dialog as thin wrapper over acel Dialog
- Remove 4 redundant alert-dialog components (Trigger, Overlay, Title, Description)
now re-exported directly from dialog/components/
- Add Dialog export to acel/index.ts
- Fix double-namespace in button/index.ts
- Fix SPA config: ssr=false, prerender=false, adapter-static fallback
- Fix Snippet<[DialogContentSnippetProps]> children call with snippetProps
- Fix glob/lib/date TS errors: import type for verbatimModuleSyntax (×45)
- Fix TS7053 in manipulation.ts invertDuration and DateFormatter.ts
- Fix TS2322 hourCycle type in comn_utils.ts and DateFormatter.ts
- Recreate test pages: accordion, collapsible, alert-dialog, dialog (new), button (new)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 months ago
|
|
|
export * as Tabs from './tabs';
|
|
|
|
|
|
|
|
|
|
// Overlay
|
|
|
|
|
export * as AlertDialog from './alert-dialog';
|
|
|
|
|
export * as Dialog from './dialog';
|