@selectwin/kit 0.1.180 → 0.1.181
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/SelectLauncher.d.ts +26 -0
- package/dist/SelectModal.d.ts +6 -1
- package/dist/SelectSearchInput.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +917 -844
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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 {};
|
package/dist/SelectModal.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export type { SelectCopyableIdProps } from './SelectCopyableId';
|
|
|
78
78
|
export { SelectCollapsible } from './SelectCollapsible';
|
|
79
79
|
export { SelectActionCard } from './SelectActionCard';
|
|
80
80
|
export { SelectAppTile, SelectCreateTile } from './SelectTile';
|
|
81
|
+
export { SelectLauncherSection, SelectLauncherItem } from './SelectLauncher';
|
|
82
|
+
export type { SelectLauncherSectionProps, SelectLauncherItemProps } from './SelectLauncher';
|
|
81
83
|
export { SelectWorkspaceSwitcher } from './SelectWorkspaceSwitcher';
|
|
82
84
|
export { SelectKanban, SelectKanbanCard } from './SelectKanban';
|
|
83
85
|
export { SelectCalendar, calendarRange, calendarToday } from './SelectCalendar';
|