@sfperusacdev/sf-ui 0.1.37 → 0.1.39

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.
@@ -27,6 +27,10 @@ type AlertSummaryListProps = {
27
27
  * `tone`). Por defecto `false` — preserva el acabado actual sin icono. Cada fila puede pasar su
28
28
  * propio `icon` para sustituir el automático. */
29
29
  showIcon?: boolean;
30
+ /** Dibuja un chevron (`FiChevronRight`) al final de las filas clickeables (`onClick` sin `actions`),
31
+ * como afordance de navegación en vez de un texto tipo "clic para ver...". Por defecto `false`
32
+ * — preserva el acabado actual. No aplica a filas con `actions` (ya tienen sus propios botones). */
33
+ showChevron?: boolean;
30
34
  };
31
35
  /**
32
36
  * Lista de filas de ancho completo con fondo tintado por severidad y un valor grande
@@ -34,5 +38,5 @@ type AlertSummaryListProps = {
34
38
  * Distinto de `AlertRowList`: esa es una bitácora de eventos (icono + hora + meta);
35
39
  * esta es un resumen de conteos/alertas con el número como protagonista.
36
40
  */
37
- export declare const AlertSummaryList: ({ items, className, density, emptyMessage, showIcon, }: AlertSummaryListProps) => import("react").JSX.Element;
41
+ export declare const AlertSummaryList: ({ items, className, density, emptyMessage, showIcon, showChevron, }: AlertSummaryListProps) => import("react").JSX.Element;
38
42
  export {};
@@ -53,10 +53,15 @@ type DashboardSectionProps = {
53
53
  title: string;
54
54
  subtitle?: string;
55
55
  action?: ReactNode;
56
+ /** Icono en un tile circular a la izquierda del título — mismo estilo que `DashboardCard`
57
+ * (`sf-card-header-icon--md`/`--lg`). Por defecto no se muestra nada (acabado actual). */
58
+ icon?: ReactNode;
59
+ /** Tamaño del tile de `icon`. "md" (por defecto) = 1.75rem, acabado actual. "lg" = 2.5rem. */
60
+ iconSize?: "md" | "lg";
56
61
  className?: string;
57
62
  children?: ReactNode;
58
63
  };
59
- export declare const DashboardSection: ({ title, subtitle, action, className, children }: DashboardSectionProps) => import("react").JSX.Element;
64
+ export declare const DashboardSection: ({ title, subtitle, action, icon, iconSize, className, children, }: DashboardSectionProps) => import("react").JSX.Element;
60
65
  type DashboardStatBarProps = {
61
66
  items: StatBarItem[];
62
67
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfperusacdev/sf-ui",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "SF UI — librería de componentes React (inputs, tablas, hooks) para aplicaciones SF Perú.",
5
5
  "type": "module",
6
6
  "main": "./dist/sf-ui.umd.cjs",