@kaufmann-lab/ui 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaufmann-lab/ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Shared Angular component library for the Kaufmann frontends",
5
5
  "license": "MIT",
6
6
  "author": "Kaufmann Lab",
@@ -8,11 +8,17 @@ import { ControlValueAccessor } from '@angular/forms';
8
8
  * el toggle de mostrar/ocultar contraseña de `Input` — no hay un ícono de
9
9
  * "ojo tachado" en la spec original porque esa interacción no estaba
10
10
  * contemplada ahí.
11
+ *
12
+ * Separado de `Icon.ts` a propósito: este type es el contrato público que
13
+ * comparten `Icon`, `icons/index.ts` (registro) y cualquier componente que
14
+ * reciba un `IconName` (`Button`, `MetricCard`, etc.) — no debería requerir
15
+ * importar el componente `Icon` completo solo para tipar una prop.
11
16
  */
12
17
  type IconName = 'activity' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'award' | 'bar-chart' | 'bell' | 'bus' | 'calculator' | 'calendar' | 'car' | 'cart' | 'check' | 'check-circle' | 'check-square' | 'chevron-down' | 'chevron-left' | 'chevron-left-bar' | 'chevron-right' | 'clipboard' | 'clock' | 'credit-card' | 'download' | 'edit' | 'external-link' | 'eye' | 'eye-off' | 'file' | 'filter' | 'gauge' | 'gift' | 'grid' | 'history' | 'inbox' | 'layers' | 'list' | 'map' | 'map-pin' | 'menu' | 'mic' | 'mic-off' | 'more-vertical' | 'pause' | 'phone' | 'play' | 'plus' | 'search' | 'settings' | 'shield-check' | 'sort' | 'star' | 'ticket' | 'tool' | 'trash' | 'truck' | 'upload-cloud' | 'user' | 'user-search' | 'video' | 'x';
18
+
13
19
  type IconSize = 'sm' | 'md' | 'lg';
14
20
  /**
15
- * Ícono de trazo del design system — 59 glyphs (página 5), grilla 24×24,
21
+ * Ícono de trazo del design system — 60 glyphs (59 de la página 5 + `eye-off`), grilla 24×24,
16
22
  * grosor de trazo 1.9px. Referencia un sprite SVG embebido (ver
17
23
  * `icon-sprite.ts`) vía `<use>`, así que no hay peso de red adicional por
18
24
  * cada instancia: el sprite se inyecta al DOM una única vez, la primera
@@ -583,6 +589,22 @@ declare class DataTable<T = unknown> {
583
589
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataTable<any>, "kf-data-table", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "cardable": { "alias": "cardable"; "required": false; "isSignal": true; }; "defaultView": { "alias": "defaultView"; "required": false; "isSignal": true; }; "render": { "alias": "render"; "required": false; "isSignal": true; }; "cellTemplates": { "alias": "cellTemplates"; "required": false; "isSignal": true; }; }, { "rowClick": "rowClick"; }, never, ["[empty]", "[footer]"], true, never>;
584
590
  }
585
591
 
592
+ type DividerOrientation = 'horizontal' | 'vertical';
593
+ /**
594
+ * Línea separadora decorativa entre bloques de contenido (ej. columnas de
595
+ * metadata en `kf-company-selector`). `vertical` necesita que el contenedor
596
+ * padre sea flex/grid con altura definida — se estira con `align-self:
597
+ * stretch`; sin eso no tiene alto propio y no se ve.
598
+ *
599
+ * <kf-divider />
600
+ * <kf-divider orientation="vertical" />
601
+ */
602
+ declare class Divider {
603
+ readonly orientation: _angular_core.InputSignal<DividerOrientation>;
604
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Divider, never>;
605
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Divider, "kf-divider", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
606
+ }
607
+
586
608
  /**
587
609
  * Placeholder para una sección sin contenido. Dos tonos, con anatomía
588
610
  * distinta (páginas 27-28 del design system, que los trata como piezas
@@ -1559,5 +1581,5 @@ declare class ViewToggle {
1559
1581
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewToggle, "kf-view-toggle", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; }, { "viewChange": "viewChange"; }, never, never, true, never>;
1560
1582
  }
1561
1583
 
1562
- export { ActionTile, AdminBadge, Alert, Avatar, Badge, Breadcrumb, Button, Card, Carousel, CarouselSlide, Checkbox, Chip, CompanySelector, ContentSlot, ContentState, DataTable, EmptyState, FeatureCard, Field, FieldLabel, FilterChips, FolderTabs, Icon, Input, MetricCard, Modal, MultiSelect, PageHeader, Pagination, Panel, PortalHeader, ReserveBlock, SectionHeader, Segmented, Select, SelectMenu, Skeleton, Spinner, StatTile, StatusPill, Tabs, ToastHost, ToastService, VehicleHeader, ViewToggle };
1563
- export type { AlertTone, BreadcrumbItem, CompanySelectorMeta, ContentStateKind, ContentStateLoad, DataTableCardRole, DataTableColumn, DataTableView, FolderTabOption, IconName, IconSize, MultiSelectOption, PaginationItem, PortalHeaderAdminAction, PortalHeaderNavItem, SegmentedOption, SelectMenuOption, SkeletonVariant, SpinnerSize, TabOption, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, VehicleHeaderStatus, ViewToggleOption };
1584
+ export { ActionTile, AdminBadge, Alert, Avatar, Badge, Breadcrumb, Button, Card, Carousel, CarouselSlide, Checkbox, Chip, CompanySelector, ContentSlot, ContentState, DataTable, Divider, EmptyState, FeatureCard, Field, FieldLabel, FilterChips, FolderTabs, Icon, Input, MetricCard, Modal, MultiSelect, PageHeader, Pagination, Panel, PortalHeader, ReserveBlock, SectionHeader, Segmented, Select, SelectMenu, Skeleton, Spinner, StatTile, StatusPill, Tabs, ToastHost, ToastService, VehicleHeader, ViewToggle };
1585
+ export type { AlertTone, BreadcrumbItem, CompanySelectorMeta, ContentStateKind, ContentStateLoad, DataTableCardRole, DataTableColumn, DataTableView, DividerOrientation, FolderTabOption, IconName, IconSize, MultiSelectOption, PaginationItem, PortalHeaderAdminAction, PortalHeaderNavItem, SegmentedOption, SelectMenuOption, SkeletonVariant, SpinnerSize, TabOption, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, VehicleHeaderStatus, ViewToggleOption };