@selectwin/kit 0.1.181 → 0.1.182

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.
@@ -67,7 +67,7 @@ export interface SelectDataColumn<T> {
67
67
  * guards mirror SelectMoney — storage unavailable = in-memory only.
68
68
  */
69
69
  export declare function useSelectPageSize(key: string, fallback: number, options?: number[]): [number, (size: number) => void];
70
- export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, description, action, filters, columnsKey, getChildren, defaultExpanded, compactRow, compactQuery, onCompactRowClick, listRow, footer, }: {
70
+ export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, description, action, filters, columnsKey, getChildren, defaultExpanded, compactRow, compactQuery, onCompactRowClick, listRow, footer, flush, }: {
71
71
  /** As colunas da grade. Dispensável com `listRow` (a lista não tem colunas). */
72
72
  columns?: SelectDataColumn<T>[];
73
73
  items: T[];
@@ -142,4 +142,9 @@ export declare function SelectDataTable<T>({ columns, items, getId, loading, emp
142
142
  listRow?: (item: T) => ReactNode;
143
143
  /** Uma linha discreta embaixo das linhas, antes da paginação ("Os 20 mais recentes de 300"). */
144
144
  footer?: ReactNode;
145
+ /**
146
+ * Sem moldura (0.1.182): a tabela como REGIÃO de uma superfície seccionada (`SelectRegions`, o Workbench) — as
147
+ * faixas, as colunas, as linhas e a paginação de borda a borda, separadas por linhas de 1px. Ver `SelectTable`.
148
+ */
149
+ flush?: boolean;
145
150
  }): import("react").JSX.Element;
@@ -16,11 +16,16 @@ type SelectListCardOwnProps = {
16
16
  * card não sobra com uma faixa branca embaixo — cada linha cresce igual, o conteúdo no meio.
17
17
  */
18
18
  spread?: boolean;
19
+ /**
20
+ * Região de uma superfície seccionada (0.1.182): sem a casca cinza nem a caixa branca das linhas, com o respiro da
21
+ * região — ver `SelectRegions`. Duas regiões `flush` seguidas se separam por uma linha de 1px.
22
+ */
23
+ flush?: boolean;
19
24
  children: ReactNode;
20
25
  };
21
26
  export type SelectListCardProps = SelectListCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectListCardOwnProps>;
22
27
  export declare const SelectListCard: import('react').ForwardRefExoticComponent<SelectListCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectListCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
23
- export declare function SelectListRow({ media, mediaSize, title, secondary, action, muted, wrap, onClick, }: {
28
+ export declare function SelectListRow({ media, mediaSize, title, secondary, action, muted, wrap, onClick, href, }: {
24
29
  /** Leading visual — an icon or SelectAvatar. */
25
30
  media?: ReactNode;
26
31
  /** `icon` (padrão) encaixa um glifo cru numa caixa de 1.25rem; `auto` deixa o visual com o
@@ -40,6 +45,9 @@ export declare function SelectListRow({ media, mediaSize, title, secondary, acti
40
45
  */
41
46
  wrap?: boolean;
42
47
  onClick?: () => void;
48
+ /** A linha é um LINK (0.1.182) — abre em outra aba (documentação, referência). Vence o `onClick`; um esquema
49
+ * inseguro (`javascript:`) é ignorado. */
50
+ href?: string;
43
51
  }): import("react").JSX.Element;
44
52
  /**
45
53
  * SelectListLabel — o rótulo de um GRUPO dentro da caixa de linhas ("O que mais conta neste
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ type SelectRegionsOwnProps = {
3
+ /** As trilhas da grade (`grid-template-columns`). Padrão: colunas iguais, uma por filho. */
4
+ columns?: string;
5
+ /** Abaixo deste tamanho as colunas empilham (sm 30rem · md 48rem · lg 64rem). Padrão `lg`. */
6
+ collapseBelow?: 'sm' | 'md' | 'lg';
7
+ children: ReactNode;
8
+ };
9
+ export type SelectRegionsProps = SelectRegionsOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectRegionsOwnProps>;
10
+ export declare const SelectRegions: import('react').ForwardRefExoticComponent<SelectRegionsOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectRegionsOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
11
+ export {};
@@ -21,6 +21,12 @@ type SelectSectionOwnProps = {
21
21
  * de uma lista flush (que perderia o encosto no corpo).
22
22
  */
23
23
  footer?: ReactNode;
24
+ /**
25
+ * Região de uma superfície seccionada (0.1.182): sem a casca cinza nem a caixa branca — o título leve e o conteúdo
26
+ * direto na superfície, com o respiro da região. Duas regiões `flush` seguidas se separam por uma linha de 1px. Só
27
+ * dentro de uma superfície sólida (`SelectRegions`, o drawer do Workbench); numa página, a seção segue two-tone.
28
+ */
29
+ flush?: boolean;
24
30
  children: ReactNode;
25
31
  };
26
32
  export type SelectSectionProps = SelectSectionOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectSectionOwnProps>;
@@ -67,6 +67,12 @@ type SelectTableOwnProps = {
67
67
  collapsible?: boolean;
68
68
  /** Estado inicial quando `collapsible` (padrão: aberto). */
69
69
  defaultOpen?: boolean;
70
+ /**
71
+ * Tabela sem moldura (0.1.182): a REGIÃO de uma superfície seccionada (`SelectRegions`, o Workbench). Sem a casca
72
+ * cinza nem a caixa branca das linhas; as faixas, o cabeçalho de colunas e as linhas vão de borda a borda,
73
+ * separados por linhas de 1px.
74
+ */
75
+ flush?: boolean;
70
76
  };
71
77
  export type SelectTableProps = SelectTableOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableOwnProps>;
72
78
  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>>;
package/dist/index.d.ts CHANGED
@@ -64,6 +64,7 @@ export { SelectNote } from './SelectNote';
64
64
  export { SelectSettingRow, SelectSettingList } from './SelectSetting';
65
65
  export { SelectPanel } from './SelectPanel';
66
66
  export { SelectSection } from './SelectSection';
67
+ export { SelectRegions, type SelectRegionsProps } from './SelectRegions';
67
68
  export { SelectTabs } from './SelectTabs';
68
69
  export { SelectSideNav } from './SelectSideNav';
69
70
  export { SelectSearchInput } from './SelectSearchInput';