@selectwin/kit 0.1.55 → 0.1.57
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/SelectCombobox.d.ts +3 -0
- package/dist/SelectField.d.ts +17 -1
- package/dist/SelectSelect.d.ts +3 -0
- package/dist/SelectSwitchField.d.ts +3 -0
- package/dist/SelectTagSelect.d.ts +3 -0
- package/dist/SelectTextarea.d.ts +3 -0
- package/dist/index.js +2409 -2399
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectCombobox.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ type SelectComboboxOwnProps = {
|
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
searchPlaceholder?: string;
|
|
16
16
|
labelAction?: ReactNode;
|
|
17
|
+
/** Ajuda contextual: vira o "!" (SelectInfoTip) ao lado do rotulo. Use para o que
|
|
18
|
+
* explica a plataforma; `hint` e so restricao/estado do proprio campo. */
|
|
19
|
+
help?: ReactNode;
|
|
17
20
|
hint?: string;
|
|
18
21
|
error?: string;
|
|
19
22
|
emptyText?: string;
|
package/dist/SelectField.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { KeyboardEvent, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
|
3
3
|
type SelectLabelRowOwnProps = {
|
|
4
4
|
htmlFor: string;
|
|
5
5
|
label: ReactNode;
|
|
6
|
+
/** Ajuda contextual: o "!" (SelectInfoTip) logo depois do rotulo. */
|
|
7
|
+
help?: ReactNode;
|
|
8
|
+
/** @deprecated use `help` — este usa `title` nativo (sem tema, invisivel no touch). */
|
|
6
9
|
info?: string;
|
|
7
10
|
action?: ReactNode;
|
|
8
11
|
};
|
|
@@ -16,7 +19,10 @@ export interface SelectFieldProps {
|
|
|
16
19
|
type?: 'text' | 'email' | 'password' | 'url' | 'tel' | 'date' | 'datetime-local' | 'number';
|
|
17
20
|
/** Right-aligned action next to the label (e.g. a recovery link). */
|
|
18
21
|
labelAction?: ReactNode;
|
|
19
|
-
/**
|
|
22
|
+
/** Ajuda contextual: vira o "!" (SelectInfoTip) ao lado do rotulo. Use para o que
|
|
23
|
+
* explica a plataforma; `hint` e so restricao/estado do proprio campo. */
|
|
24
|
+
help?: ReactNode;
|
|
25
|
+
/** @deprecated use `help`. Pequeno ⓘ com `title` nativo. */
|
|
20
26
|
info?: string;
|
|
21
27
|
/** Helper text shown under the label, ABOVE the input (Clerk "Key" pattern). */
|
|
22
28
|
description?: ReactNode;
|
|
@@ -28,6 +34,16 @@ export interface SelectFieldProps {
|
|
|
28
34
|
prefix?: ReactNode;
|
|
29
35
|
/** Static text/icon inside the field, right of the value (e.g. "%", "un."). */
|
|
30
36
|
suffix?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Ação ao LADO do input — um botão de verdade ("Adicionar", "Buscar", "Aplicar"), fora da moldura
|
|
39
|
+
* do campo. Diferente de `suffix`, que é texto/ícone DENTRO da moldura e não é clicável.
|
|
40
|
+
*
|
|
41
|
+
* Existe porque a composição óbvia (o campo e o botão como irmãos, num flex `align-items:flex-end`)
|
|
42
|
+
* alinha o botão pelo fim do BLOCO do campo — que inclui o `hint`. Com hint, o botão desce e fica
|
|
43
|
+
* torto; sem hint, alinha. Aqui a ação entra na mesma linha do input por construção, e label, hint
|
|
44
|
+
* e erro continuam medindo a largura toda.
|
|
45
|
+
*/
|
|
46
|
+
trailingAction?: ReactNode;
|
|
31
47
|
/** Monospace the value (codes, keys, scripts). */
|
|
32
48
|
mono?: boolean;
|
|
33
49
|
autoComplete?: string;
|
package/dist/SelectSelect.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ type SelectSelectOwnProps = {
|
|
|
10
10
|
onChange: (value: string) => void;
|
|
11
11
|
options: SelectSelectOption[];
|
|
12
12
|
labelAction?: ReactNode;
|
|
13
|
+
/** Ajuda contextual: vira o "!" (SelectInfoTip) ao lado do rotulo. Use para o que
|
|
14
|
+
* explica a plataforma; `hint` e so restricao/estado do proprio campo. */
|
|
15
|
+
help?: ReactNode;
|
|
13
16
|
info?: string;
|
|
14
17
|
description?: ReactNode;
|
|
15
18
|
hint?: string;
|
|
@@ -5,5 +5,8 @@ export interface SelectSwitchFieldProps {
|
|
|
5
5
|
onChange: (checked: boolean) => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
hint?: ReactNode;
|
|
8
|
+
/** Ajuda contextual: vira o "!" (SelectInfoTip) ao lado do rotulo. Use para o que
|
|
9
|
+
* explica a plataforma; `hint` e so restricao/estado do proprio campo. */
|
|
10
|
+
help?: ReactNode;
|
|
8
11
|
}
|
|
9
12
|
export declare const SelectSwitchField: import('react').ForwardRefExoticComponent<SelectSwitchFieldProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectSwitchFieldProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -13,6 +13,9 @@ type SelectTagSelectOwnProps = {
|
|
|
13
13
|
onChange: (next: string[]) => void;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
hint?: ReactNode;
|
|
16
|
+
/** Ajuda contextual: vira o "!" (SelectInfoTip) ao lado do rotulo. Use para o que
|
|
17
|
+
* explica a plataforma; `hint` e so restricao/estado do proprio campo. */
|
|
18
|
+
help?: ReactNode;
|
|
16
19
|
/** Validation message below the control; also flips the control to its error style. */
|
|
17
20
|
error?: string;
|
|
18
21
|
/** Fires when focus leaves the control (closes the popover) — for validate-on-blur. */
|
package/dist/SelectTextarea.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ type SelectTextareaOwnProps = {
|
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (value: string) => void;
|
|
6
6
|
labelAction?: ReactNode;
|
|
7
|
+
/** Ajuda contextual: vira o "!" (SelectInfoTip) ao lado do rotulo. Use para o que
|
|
8
|
+
* explica a plataforma; `hint` e so restricao/estado do proprio campo. */
|
|
9
|
+
help?: ReactNode;
|
|
7
10
|
info?: string;
|
|
8
11
|
/** Helper text shown under the label, above the textarea (Clerk pattern). */
|
|
9
12
|
description?: ReactNode;
|