@selectwin/kit 0.1.180 → 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;
@@ -0,0 +1,26 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ type SelectLauncherSectionOwnProps = {
3
+ /** O nome da seção ("No dock"). */
4
+ title: ReactNode;
5
+ /** O que mostrar quando a seção não tem itens (a seção some se não houver nem itens nem isto). */
6
+ empty?: ReactNode;
7
+ children?: ReactNode;
8
+ };
9
+ export type SelectLauncherSectionProps = SelectLauncherSectionOwnProps & Omit<ComponentPropsWithoutRef<'section'>, keyof SelectLauncherSectionOwnProps | 'title'>;
10
+ export declare const SelectLauncherSection: import('react').ForwardRefExoticComponent<SelectLauncherSectionOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, keyof SelectLauncherSectionOwnProps> & import('react').RefAttributes<HTMLElement>>;
11
+ type SelectLauncherItemOwnProps = {
12
+ /** O ícone do app (40×40). */
13
+ media?: ReactNode;
14
+ title: ReactNode;
15
+ /** Uma linha; o que passar disso vira "…". */
16
+ description?: ReactNode;
17
+ /** Abre o app. */
18
+ onOpen?: () => void;
19
+ /** Rótulo do alvo principal para o leitor de tela (padrão: o próprio título). */
20
+ openLabel?: string;
21
+ /** A ação à direita (ex.: o alfinete). */
22
+ action?: ReactNode;
23
+ };
24
+ export type SelectLauncherItemProps = SelectLauncherItemOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectLauncherItemOwnProps | 'title'>;
25
+ export declare const SelectLauncherItem: import('react').ForwardRefExoticComponent<SelectLauncherItemOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectLauncherItemOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
26
+ export {};
@@ -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
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, }: {
2
+ export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, headerAction, }: {
3
3
  open: boolean;
4
4
  onClose: () => void;
5
5
  /** Uma linha de contexto acima do título ("Passo a passo · ponto 1 de 5"). */
@@ -21,4 +21,9 @@ export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, c
21
21
  theme?: 'light' | 'dark';
22
22
  /** `side` = folha lateral à direita, na altura inteira (o detalhe de uma linha da lista). */
23
23
  placement?: 'center' | 'side';
24
+ /**
25
+ * 0.1.181: um controle na LINHA do título, à direita (a busca do modal de Apps do painel). Numa tela
26
+ * estreita ele desce para baixo do título, na largura toda. Só no layout padrão (sem `aside`).
27
+ */
28
+ headerAction?: ReactNode;
24
29
  }): import('react').ReactPortal | null;
@@ -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 {};
@@ -5,6 +5,8 @@ type SelectSearchInputOwnProps = {
5
5
  placeholder?: string;
6
6
  /** Right-aligned shortcut hint (rendered as a small chip). */
7
7
  shortcut?: string;
8
+ /** 0.1.181: o nome do campo para o leitor de tela (padrão: o placeholder — sem ele o campo não tinha nome). */
9
+ inputLabel?: string;
8
10
  };
9
11
  export type SelectSearchInputProps = SelectSearchInputOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectSearchInputOwnProps>;
10
12
  export declare const SelectSearchInput: import('react').ForwardRefExoticComponent<SelectSearchInputOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectSearchInputOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -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';
@@ -78,6 +79,8 @@ export type { SelectCopyableIdProps } from './SelectCopyableId';
78
79
  export { SelectCollapsible } from './SelectCollapsible';
79
80
  export { SelectActionCard } from './SelectActionCard';
80
81
  export { SelectAppTile, SelectCreateTile } from './SelectTile';
82
+ export { SelectLauncherSection, SelectLauncherItem } from './SelectLauncher';
83
+ export type { SelectLauncherSectionProps, SelectLauncherItemProps } from './SelectLauncher';
81
84
  export { SelectWorkspaceSwitcher } from './SelectWorkspaceSwitcher';
82
85
  export { SelectKanban, SelectKanbanCard } from './SelectKanban';
83
86
  export { SelectCalendar, calendarRange, calendarToday } from './SelectCalendar';