@selectwin/kit 0.1.142 → 0.1.144
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/SelectKbd.d.ts +7 -0
- package/dist/SelectSearchMenu.d.ts +7 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +945 -875
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectKbdOwnProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export type SelectKbdProps = SelectKbdOwnProps & Omit<ComponentPropsWithoutRef<'kbd'>, keyof SelectKbdOwnProps>;
|
|
6
|
+
export declare const SelectKbd: import('react').ForwardRefExoticComponent<SelectKbdOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & import('react').RefAttributes<HTMLElement>>;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export declare function SelectSearchMenu({ search, onSearchChange, searchPlaceholder, status, footer, width, children, }: {
|
|
2
|
+
export declare function SelectSearchMenu({ search, onSearchChange, searchPlaceholder, status, footer, width, autoFocus, selectFirstOnEnter, listMaxHeight, children, }: {
|
|
3
3
|
search: string;
|
|
4
4
|
onSearchChange: (value: string) => void;
|
|
5
5
|
searchPlaceholder?: string;
|
|
@@ -9,6 +9,12 @@ export declare function SelectSearchMenu({ search, onSearchChange, searchPlaceho
|
|
|
9
9
|
footer?: ReactNode;
|
|
10
10
|
/** Largura do painel. O popover do gatilho-botão não tem largura de campo para herdar. */
|
|
11
11
|
width?: string;
|
|
12
|
+
/** Põe o cursor no campo ao abrir (depois de o popover posicionar o painel). */
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
/** Enter no campo escolhe a primeira opção habilitada — o padrão de uma busca de comandos. */
|
|
15
|
+
selectFirstOnEnter?: boolean;
|
|
16
|
+
/** Altura máxima da lista (padrão: 20rem). */
|
|
17
|
+
listMaxHeight?: string;
|
|
12
18
|
children?: ReactNode;
|
|
13
19
|
}): import("react").JSX.Element;
|
|
14
20
|
/** Um grupo de opções com cabeçalho ("Cliente", "Pedido"). Grupo sem opção não desenha nada. */
|
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,8 @@ export { SelectCirclePack } from './SelectCirclePack';
|
|
|
180
180
|
export { SelectNetwork } from './SelectNetwork';
|
|
181
181
|
export { SelectCombobox } from './SelectCombobox';
|
|
182
182
|
export { SelectSearchMenu, SelectSearchMenuOption, SelectSearchMenuGroup } from './SelectSearchMenu';
|
|
183
|
+
export { SelectKbd } from './SelectKbd';
|
|
184
|
+
export type { SelectKbdProps } from './SelectKbd';
|
|
183
185
|
export { SelectThemeSwitcher, resolveSelectTheme } from './SelectThemeSwitcher';
|
|
184
186
|
export { SelectDetailList, SelectDetailRow } from './SelectDetail';
|
|
185
187
|
export { SelectAddButton } from './SelectAddButton';
|