@sfperusacdev/sf-ui 0.2.0 → 0.2.2
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 +1548 -1511
- package/dist/sf-ui.js.map +1 -1
- package/dist/sf-ui.umd.cjs +7 -7
- package/dist/sf-ui.umd.cjs.map +1 -1
- package/dist/theme/dark.css +1 -0
- package/dist/theme/sf-tokens.css +3 -0
- package/dist/types/src/components/table/CustomTable.d.ts +10 -1
- package/dist/types/src/components/table/Pagination.d.ts +1 -0
- package/dist/types/src/components/table/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/theme/dark.css
CHANGED
package/dist/theme/sf-tokens.css
CHANGED
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
--sf-surface-alt: #f1f5f9;
|
|
23
23
|
--sf-white: #ffffff;
|
|
24
24
|
--sf-page-bg: #f8fafc;
|
|
25
|
+
/* Texto sobre fondos oscuros fijos (pieles neon/matrix/premium de tabla y
|
|
26
|
+
paginador). NO se invierte en dark: --sf-white sí (pasa a pizarra). */
|
|
27
|
+
--sf-on-dark: #ffffff;
|
|
25
28
|
|
|
26
29
|
/* Bordes y texto */
|
|
27
30
|
--sf-border: #e5e7eb;
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { IconType } from 'react-icons';
|
|
3
3
|
import { AggregationFn } from '@tanstack/react-table';
|
|
4
4
|
import { AsyncStateStore } from './asyncStateStore';
|
|
5
|
+
import { PaginationVariant } from './Pagination';
|
|
5
6
|
import { CustomTableController } from './customTableController';
|
|
6
7
|
/**
|
|
7
8
|
* Skin del `<thead>` del CustomTable. Los 4 variants nuevos (`soft`, `neon`,
|
|
@@ -58,6 +59,14 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
58
59
|
enableFiltering?: boolean;
|
|
59
60
|
enablePagination?: boolean;
|
|
60
61
|
pageSize?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Piel del paginador del footer (componente `Pagination`): classic | soft |
|
|
64
|
+
* neon | premium | matrix. `"legacy"` mantiene el `PaginationRangeInput`
|
|
65
|
+
* viejo (input de rango "1-10 / 13"). Default: "classic".
|
|
66
|
+
*/
|
|
67
|
+
paginationVariant?: PaginationVariant | "legacy";
|
|
68
|
+
/** Opciones del selector "Mostrar N registros por página". Default: 10/25/50/100/200. */
|
|
69
|
+
pageSizeOptions?: number[];
|
|
61
70
|
fillParentHeight?: boolean;
|
|
62
71
|
maxBodyHeightPx?: number;
|
|
63
72
|
className?: string;
|
|
@@ -113,5 +122,5 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
113
122
|
detail?: CustomTableDetail<TData, TDetail>;
|
|
114
123
|
controller?: CustomTableController<TData>;
|
|
115
124
|
};
|
|
116
|
-
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;
|
|
125
|
+
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, paginationVariant, pageSizeOptions, 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;
|
|
117
126
|
export type { CustomColumn, CustomTableDetail, CustomTableProps, TableAggregation };
|
|
@@ -4,8 +4,8 @@ export { AsyncCustomTable } from './AsyncCustomTable';
|
|
|
4
4
|
export type { AsyncCustomTableProps } from './AsyncCustomTable';
|
|
5
5
|
export { PaginationRangeInput } from './PaginationRangeInput';
|
|
6
6
|
export type { PaginationRangeData } from './PaginationRangeInput';
|
|
7
|
-
export { Pagination } from './Pagination';
|
|
8
|
-
export type { PaginationProps, PaginationLabels } from './Pagination';
|
|
7
|
+
export { Pagination, DEFAULT_PAGE_SIZE_OPTIONS } from './Pagination';
|
|
8
|
+
export type { PaginationProps, PaginationLabels, PaginationVariant } from './Pagination';
|
|
9
9
|
export { TableFiltersPanel } from './TableFiltersPanel';
|
|
10
10
|
export { TableSortingPanel } from './TableSortingPanel';
|
|
11
11
|
export { createLocalStorageAsyncStateStore } from './asyncStateStore';
|
package/package.json
CHANGED