@selectwin/kit 0.1.71 → 0.1.74
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/SelectChartCard.d.ts +5 -2
- package/dist/SelectDataTable.d.ts +8 -5
- package/dist/SelectTable.d.ts +13 -3
- package/dist/index.js +2093 -2077
- package/dist/style.css +1 -1
- package/package.json +64 -64
|
@@ -26,8 +26,11 @@ type SelectChartCardOwnProps = {
|
|
|
26
26
|
* 2026-07-28). Aceita um item ou lista; null/undefined = sem rodapé (dado ausente
|
|
27
27
|
* nunca vira insight inventado). */
|
|
28
28
|
insight?: ReactNode | ReactNode[];
|
|
29
|
-
/** Tom
|
|
30
|
-
|
|
29
|
+
/** Tom das pills, marcado por um PONTO colorido antes do texto — verde (positive),
|
|
30
|
+
* vermelho (negative), amarelo/laranja (warning). `neutral` não ganha ponto.
|
|
31
|
+
* O texto fica sempre na cor de leitura: tingir a frase inteira derruba o contraste
|
|
32
|
+
* e some com o negrito/os números dentro dela. */
|
|
33
|
+
insightTone?: 'positive' | 'negative' | 'warning' | 'neutral';
|
|
31
34
|
children: ReactNode;
|
|
32
35
|
};
|
|
33
36
|
export type SelectChartCardProps = SelectChartCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectChartCardOwnProps>;
|
|
@@ -40,7 +40,7 @@ export interface SelectDataColumn<T> {
|
|
|
40
40
|
* guards mirror SelectMoney — storage unavailable = in-memory only.
|
|
41
41
|
*/
|
|
42
42
|
export declare function useSelectPageSize(key: string, fallback: number, options?: number[]): [number, (size: number) => void];
|
|
43
|
-
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, action, filters, columnsKey, }: {
|
|
43
|
+
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, description, action, filters, columnsKey, }: {
|
|
44
44
|
columns: SelectDataColumn<T>[];
|
|
45
45
|
items: T[];
|
|
46
46
|
getId: (item: T) => string;
|
|
@@ -89,11 +89,14 @@ export declare function SelectDataTable<T>({ columns, items, getId, loading, emp
|
|
|
89
89
|
title?: ReactNode;
|
|
90
90
|
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). Precisa de `title`. */
|
|
91
91
|
help?: ReactNode;
|
|
92
|
-
/**
|
|
92
|
+
/** Linha discreta ABAIXO do título (subtítulo/descrição da lista) — ver SelectTable. */
|
|
93
|
+
description?: ReactNode;
|
|
94
|
+
/** Ação sobre o RECURSO, à direita do título (ex.: "Criar link"). Controles da VISTA
|
|
95
|
+
* (seletor de colunas) descem sozinhos para a faixa de filtros — não os passe aqui. */
|
|
93
96
|
action?: ReactNode;
|
|
94
|
-
/** Filter controls (e.g. a SelectFilterBar)
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
+
/** Filter controls (e.g. a SelectFilterBar) na PRÓPRIA faixa do card, entre o título e o
|
|
98
|
+
* cabeçalho de colunas — table + filters read as ONE unit, and the bar stays reachable
|
|
99
|
+
* when a filter empties the table. */
|
|
97
100
|
filters?: ReactNode;
|
|
98
101
|
/**
|
|
99
102
|
* Enables the column-visibility picker (a gear in the header bar) and persists the
|
package/dist/SelectTable.d.ts
CHANGED
|
@@ -19,12 +19,22 @@ type SelectTableOwnProps = {
|
|
|
19
19
|
title?: ReactNode;
|
|
20
20
|
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). Precisa de `title`. */
|
|
21
21
|
help?: ReactNode;
|
|
22
|
+
/** Linha discreta ABAIXO do título (subtítulo/descrição da lista). Ocupa a largura da
|
|
23
|
+
* faixa de identidade — por isso o filtro não pode dividir essa linha com ela. Texto
|
|
24
|
+
* que ENSINA a plataforma continua sendo `help` (o "!"); aqui vai o que descreve o
|
|
25
|
+
* recorte desta lista. */
|
|
26
|
+
description?: ReactNode;
|
|
22
27
|
/** Right-aligned action in the header bar (e.g. an "Adicionar" button). */
|
|
23
28
|
action?: ReactNode;
|
|
24
|
-
/** Filter controls (e.g. a SelectFilterBar)
|
|
25
|
-
*
|
|
26
|
-
*
|
|
29
|
+
/** Filter controls (e.g. a SelectFilterBar). Ganham a PRÓPRIA faixa, entre o título e o
|
|
30
|
+
* cabeçalho de colunas — tabela e filtros seguem lendo como UMA unidade, e a barra
|
|
31
|
+
* continua visível quando um filtro esvazia a tabela (limpar o filtro tem de continuar
|
|
32
|
+
* alcançável). */
|
|
27
33
|
filters?: ReactNode;
|
|
34
|
+
/** Controles da VISTA (seletor de colunas, "Personalizar") — à direita da faixa de
|
|
35
|
+
* filtros, não junto do título. Sem `filters` não existe faixa de consulta, então eles
|
|
36
|
+
* voltam para o lado do `action` (uma faixa só para a engrenagem seria vazia). */
|
|
37
|
+
tools?: ReactNode;
|
|
28
38
|
};
|
|
29
39
|
export type SelectTableProps = SelectTableOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableOwnProps>;
|
|
30
40
|
export declare const SelectTable: import('react').ForwardRefExoticComponent<SelectTableOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectTableOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|