@sfperusacdev/sf-ui 0.1.36 → 0.1.38
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/dist/sf-ui.css +1 -1
- package/dist/sf-ui.js +334 -314
- package/dist/sf-ui.js.map +1 -1
- package/dist/sf-ui.umd.cjs +3 -3
- package/dist/sf-ui.umd.cjs.map +1 -1
- package/dist/types/src/components/cards/KPICard.d.ts +9 -1
- package/dist/types/src/components/dashboard/AlertSummaryList.d.ts +5 -1
- package/dist/types/src/components/dashboard/DashboardCard.d.ts +4 -1
- package/dist/types/src/components/table/CustomTable.d.ts +3 -1
- package/dist/types/src/components/table/CustomTable.search.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -76,8 +76,16 @@ export type KPICardProps = {
|
|
|
76
76
|
iconStyle?: KPICardIconStyle;
|
|
77
77
|
className?: string;
|
|
78
78
|
onClick?: () => void;
|
|
79
|
+
/** Marca la tarjeta como seleccionada: borde/anillo destacado + una línea "Seleccionado" con check,
|
|
80
|
+
* debajo del `sublabel`. Pensado para KPIs que funcionan como filtro/selector (ej. clic para ver el
|
|
81
|
+
* detalle de ese indicador). Por defecto `false` — sin cambio de acabado. */
|
|
82
|
+
selected?: boolean;
|
|
83
|
+
/** Solo aplica a `layout="leading-icon"` con `onClick`. Por defecto `true` (acabado actual: dibuja
|
|
84
|
+
* `FiChevronRight` a la derecha). `false` la oculta — para grillas de KPIs seleccionables donde el
|
|
85
|
+
* afordance de "clickeable" ya lo da `selected`/el borde, no un chevron de navegación. */
|
|
86
|
+
showChevron?: boolean;
|
|
79
87
|
};
|
|
80
|
-
export declare const KPICard: ({ label, value, sublabel, icon, iconClassName, trend, trendLabel, trendDirection, accentTone, progress, valueFormat, formatOptions, sparkline, layout, variant, size, density, accentBar, iconStyle, labelWrap, className, onClick, }: KPICardProps) => import("react").JSX.Element;
|
|
88
|
+
export declare const KPICard: ({ label, value, sublabel, icon, iconClassName, trend, trendLabel, trendDirection, accentTone, progress, valueFormat, formatOptions, sparkline, layout, variant, size, density, accentBar, iconStyle, labelWrap, className, onClick, selected, showChevron, }: KPICardProps) => import("react").JSX.Element;
|
|
81
89
|
type KPIGridProps = {
|
|
82
90
|
children: ReactNode;
|
|
83
91
|
cols?: 2 | 3 | 4 | 5;
|
|
@@ -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,13 @@ type DashboardSectionProps = {
|
|
|
53
53
|
title: string;
|
|
54
54
|
subtitle?: string;
|
|
55
55
|
action?: ReactNode;
|
|
56
|
+
/** Icono en un tile cuadrado a la izquierda del título — mismo estilo que `DashboardCard`
|
|
57
|
+
* (`sf-card-header-icon--md`). Por defecto no se muestra nada (acabado actual). */
|
|
58
|
+
icon?: ReactNode;
|
|
56
59
|
className?: string;
|
|
57
60
|
children?: ReactNode;
|
|
58
61
|
};
|
|
59
|
-
export declare const DashboardSection: ({ title, subtitle, action, className, children }: DashboardSectionProps) => import("react").JSX.Element;
|
|
62
|
+
export declare const DashboardSection: ({ title, subtitle, action, icon, className, children }: DashboardSectionProps) => import("react").JSX.Element;
|
|
60
63
|
type DashboardStatBarProps = {
|
|
61
64
|
items: StatBarItem[];
|
|
62
65
|
className?: string;
|
|
@@ -96,6 +96,8 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
96
96
|
}) => ReactNode;
|
|
97
97
|
onSelectionChange?: (selectedRows: TData[]) => void;
|
|
98
98
|
headerVariant?: TableHeaderVariant;
|
|
99
|
+
/** Placeholder del buscador integrado (`enableFiltering`). Por defecto "Buscar..." (acabado actual). */
|
|
100
|
+
searchPlaceholder?: string;
|
|
99
101
|
/** Oculta título, toolbar y chrome exterior — para uso dentro de ExpandableTableSection u otros contenedores. */
|
|
100
102
|
embedded?: boolean;
|
|
101
103
|
/**
|
|
@@ -105,5 +107,5 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
105
107
|
detail?: CustomTableDetail<TData, TDetail>;
|
|
106
108
|
controller?: CustomTableController<TData>;
|
|
107
109
|
};
|
|
108
|
-
export declare function CustomTable<TData extends Record<string, unknown>, TDetail extends Record<string, unknown> = Record<string, unknown>>({ id, stateStore, data, columns, grouping, defaultGrouping, enableGrouping, enableSorting, enableFiltering, enablePagination, pageSize, fillParentHeight, maxBodyHeightPx, className, emptyMessage, title, subtitle, sidePanel, onGroupingChange, toolbarSlot, belowToolbarSlot, loading, loadingMessage, isFetching, error, onRetry, onRefresh, onRowClick, enableRowSelection, getRowActions, getBulkActions, bulkActionsSlot, onSelectionChange, headerVariant, embedded, detail, controller, }: CustomTableProps<TData, TDetail>): import("react").JSX.Element;
|
|
110
|
+
export declare function CustomTable<TData extends Record<string, unknown>, TDetail extends Record<string, unknown> = Record<string, unknown>>({ id, stateStore, data, columns, grouping, defaultGrouping, enableGrouping, enableSorting, enableFiltering, enablePagination, pageSize, fillParentHeight, maxBodyHeightPx, className, emptyMessage, title, subtitle, sidePanel, onGroupingChange, toolbarSlot, belowToolbarSlot, loading, loadingMessage, isFetching, error, onRetry, onRefresh, onRowClick, enableRowSelection, getRowActions, getBulkActions, bulkActionsSlot, onSelectionChange, headerVariant, searchPlaceholder, embedded, detail, controller, }: CustomTableProps<TData, TDetail>): import("react").JSX.Element;
|
|
109
111
|
export type { CustomColumn, CustomTableDetail, CustomTableProps, TableAggregation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED