@selectwin/kit 0.1.54 → 0.1.56

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.
@@ -28,6 +28,16 @@ export interface SelectFieldProps {
28
28
  prefix?: ReactNode;
29
29
  /** Static text/icon inside the field, right of the value (e.g. "%", "un."). */
30
30
  suffix?: ReactNode;
31
+ /**
32
+ * Ação ao LADO do input — um botão de verdade ("Adicionar", "Buscar", "Aplicar"), fora da moldura
33
+ * do campo. Diferente de `suffix`, que é texto/ícone DENTRO da moldura e não é clicável.
34
+ *
35
+ * Existe porque a composição óbvia (o campo e o botão como irmãos, num flex `align-items:flex-end`)
36
+ * alinha o botão pelo fim do BLOCO do campo — que inclui o `hint`. Com hint, o botão desce e fica
37
+ * torto; sem hint, alinha. Aqui a ação entra na mesma linha do input por construção, e label, hint
38
+ * e erro continuam medindo a largura toda.
39
+ */
40
+ trailingAction?: ReactNode;
31
41
  /** Monospace the value (codes, keys, scripts). */
32
42
  mono?: boolean;
33
43
  autoComplete?: string;