@selectwin/kit 0.1.73 → 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.
@@ -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
- /** Right-aligned header action (e.g. an "Adicionar" button). */
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) embedded in the table's header bar, left of
95
- * the action/column picker — table + filters read as ONE unit, and the bar stays
96
- * reachable when a filter empties the table. */
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
@@ -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) embedded in the header bar, left of the
25
- * action — the table and its filters read as ONE unit. The bar stays visible when a
26
- * filter empties the table (clearing the filter must remain reachable). */
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>>;