@selectwin/kit 0.1.141 → 0.1.143

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.
@@ -27,6 +27,11 @@ export interface SelectAssistantProps {
27
27
  placeholder?: string;
28
28
  /** Campo e sugestões desligados (lendo, sem acesso). */
29
29
  disabled?: boolean;
30
+ /**
31
+ * O assistente está escrevendo: os três pontinhos no fim da conversa, e nem sugestão nem envio saem até ele
32
+ * terminar (o campo segue aberto — o texto digitado espera). `string` = o nome acessível ("O Lince está escrevendo").
33
+ */
34
+ typing?: boolean | string;
30
35
  /** Ação no cabeçalho, antes do fechar (um link para a tela cheia). */
31
36
  headerAction?: ReactNode;
32
37
  /** `viewport` (padrão) prende à janela do navegador; `container`, ao ancestral posicionado. */
@@ -37,7 +42,7 @@ export interface SelectAssistantProps {
37
42
  inputLabel?: string;
38
43
  className?: string;
39
44
  }
40
- export declare function SelectAssistant({ open, onOpenChange, icon, title, subtitle, launcherLabel, badge, children, scrollKey, suggestions, onSuggestion, onSend, placeholder, disabled, headerAction, anchor, closeLabel, sendLabel, inputLabel, className, }: SelectAssistantProps): import("react").JSX.Element;
45
+ export declare function SelectAssistant({ open, onOpenChange, icon, title, subtitle, launcherLabel, badge, children, scrollKey, suggestions, onSuggestion, onSend, placeholder, disabled, typing, headerAction, anchor, closeLabel, sendLabel, inputLabel, className, }: SelectAssistantProps): import("react").JSX.Element;
41
46
  export interface SelectChatMessageProps {
42
47
  /** Quem fala: o assistente (à esquerda) ou a pessoa (à direita). */
43
48
  from: 'assistant' | 'user';
@@ -47,3 +52,18 @@ export interface SelectChatMessageProps {
47
52
  }
48
53
  /** SelectChatMessage — uma fala. Texto simples vai num balão; `bare` entrega a largura toda a um conteúdo rico. */
49
54
  export declare function SelectChatMessage({ from, bare, children }: SelectChatMessageProps): import("react").JSX.Element;
55
+ export interface SelectChatTurnProps {
56
+ /** A pergunta e as falas da resposta — `SelectChatMessage`. */
57
+ children: ReactNode;
58
+ }
59
+ /**
60
+ * SelectChatTurn — uma pergunta e a sua resposta, juntas. Dentro do `SelectAssistant` a conversa rola até o começo
61
+ * do último turno: a resposta que chega em partes cresce sob a pergunta, sem empurrá-la para fora da vista.
62
+ */
63
+ export declare function SelectChatTurn({ children }: SelectChatTurnProps): import("react").JSX.Element;
64
+ export interface SelectChatTypingProps {
65
+ /** O nome acessível — o padrão é "Escrevendo…". */
66
+ label?: string;
67
+ }
68
+ /** SelectChatTyping — os três pontinhos do assistente que está escrevendo. O `SelectAssistant` o põe sozinho com `typing`. */
69
+ export declare function SelectChatTyping({ label }: SelectChatTypingProps): import("react").JSX.Element;
@@ -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
@@ -108,10 +108,10 @@ export { SelectBalanceCard } from './SelectBalanceCard';
108
108
  export { SelectFeeBreakdown } from './SelectFeeBreakdown';
109
109
  export { SelectKpiCard } from './SelectKpiCard';
110
110
  export { SelectInsight, SelectInsightList, SelectInsightRow, formatInsightImpact } from './SelectInsight';
111
- export { SelectAssistant, SelectChatMessage } from './SelectAssistant';
111
+ export { SelectAssistant, SelectChatMessage, SelectChatTurn, SelectChatTyping } from './SelectAssistant';
112
112
  export { SelectNumberedList, SelectNumberedItem } from './SelectNumberedList';
113
113
  export type { SelectNumberedListProps, SelectNumberedItemProps } from './SelectNumberedList';
114
- export type { SelectAssistantProps, SelectAssistantSuggestion, SelectChatMessageProps } from './SelectAssistant';
114
+ export type { SelectAssistantProps, SelectAssistantSuggestion, SelectChatMessageProps, SelectChatTurnProps, SelectChatTypingProps } from './SelectAssistant';
115
115
  export { SelectChartCard } from './SelectChartCard';
116
116
  export { SelectSparkline } from './SelectSparkline';
117
117
  export { SelectBarChart } from './SelectBarChart';
@@ -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';