@selectwin/kit 0.1.141 → 0.1.142
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/SelectAssistant.d.ts +21 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +451 -404
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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;
|
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';
|