@selectwin/kit 0.1.158 → 0.1.160

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.
@@ -0,0 +1,31 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function SelectConversation({ children, 'aria-label': ariaLabel }: {
3
+ children: ReactNode;
4
+ 'aria-label'?: string;
5
+ }): import("react").JSX.Element;
6
+ /** O separador de dia ("Hoje", "Ontem", "12 out"). */
7
+ export declare function SelectConversationDay({ children }: {
8
+ children: ReactNode;
9
+ }): import("react").JSX.Element;
10
+ /** Um fato da conversa, no meio dela: assumiu, passou, escolheu o setor, encerrou. */
11
+ export declare function SelectConversationEvent({ children, time }: {
12
+ children: ReactNode;
13
+ time?: ReactNode;
14
+ }): import("react").JSX.Element;
15
+ export interface SelectConversationBubbleProps {
16
+ /** `in` = de quem escreveu para a empresa (à esquerda); `out` = da empresa (à direita). */
17
+ direction: 'in' | 'out';
18
+ /** Sobre o balão: quem respondeu ("Paulo Reis", "Resposta automática"). */
19
+ author?: ReactNode;
20
+ /** No topo do balão, menor: o que ele é ("Modelo aprovado · Retomar a conversa"). */
21
+ label?: ReactNode;
22
+ /** Embaixo do balão, fora dele: o arquivo (`SelectMailAttachment`). */
23
+ attachment?: ReactNode;
24
+ /** Sob o balão: a hora e o estado do envio ("14:05 · Entregue"). */
25
+ meta?: ReactNode;
26
+ /** `critical` = não saiu; `info` = lida. */
27
+ metaTone?: 'critical' | 'info';
28
+ /** O texto. Sem texto (só um arquivo), o balão não é desenhado. */
29
+ children?: ReactNode;
30
+ }
31
+ export declare function SelectConversationBubble({ direction, author, label, attachment, meta, metaTone, children }: SelectConversationBubbleProps): import("react").JSX.Element;
@@ -17,10 +17,17 @@ export interface SelectInboxProps {
17
17
  children?: ReactNode;
18
18
  /** Ocupa a caixa inteira no lugar das duas colunas — a caixa não ligada, o CRM fora do ar. */
19
19
  fullBody?: ReactNode;
20
+ /**
21
+ * 0.1.159: a terceira coluna, à direita do leitor — o que se sabe de quem está na conversa (o lead, o lojista). Some
22
+ * abaixo de 1440 px e no celular: é contexto, nunca a única saída para uma ação.
23
+ */
24
+ aside?: ReactNode;
25
+ /** O nome da coluna lateral para o leitor de tela. */
26
+ asideLabel?: string;
20
27
  'aria-label'?: string;
21
28
  }
22
29
  /** A caixa de entrada em tela cheia: preenche a altura do pai e cada coluna rola por dentro. */
23
- export declare function SelectInbox({ toolbar, banner, list, reader, readerOpen, children, fullBody, 'aria-label': ariaLabel }: SelectInboxProps): import("react").JSX.Element;
30
+ export declare function SelectInbox({ toolbar, banner, list, reader, readerOpen, children, fullBody, aside, asideLabel, 'aria-label': ariaLabel }: SelectInboxProps): import("react").JSX.Element;
24
31
  /** A faixa de aviso sob a barra, de ponta a ponta (ex.: "a senha da sua caixa deixou de valer"). */
25
32
  export declare function SelectInboxBanner({ tone, children, action }: {
26
33
  tone?: 'warning' | 'critical' | 'info';
@@ -108,8 +115,10 @@ export interface SelectMailReaderProps {
108
115
  children: ReactNode;
109
116
  /** Embaixo, fora da rolagem: o compositor da resposta. */
110
117
  footer?: ReactNode;
118
+ /** 0.1.159: `chat` = uma conversa de mensagens curtas (`SelectConversation`), sobre o fundo tingido. */
119
+ variant?: 'mail' | 'chat';
111
120
  }
112
- export declare function SelectMailReader({ title, meta, actions, tools, onBack, children, footer }: SelectMailReaderProps): import("react").JSX.Element;
121
+ export declare function SelectMailReader({ title, meta, actions, tools, onBack, children, footer, variant }: SelectMailReaderProps): import("react").JSX.Element;
113
122
  export interface SelectMailMessageProps {
114
123
  from: SelectMailAddress | null;
115
124
  to?: SelectMailAddress[];
package/dist/index.d.ts CHANGED
@@ -81,6 +81,8 @@ export type { SelectCalendarEvent, SelectCalendarProps, SelectCalendarView } fro
81
81
  export { SelectHtmlFrame } from './SelectHtmlFrame';
82
82
  export type { SelectHtmlFrameProps } from './SelectHtmlFrame';
83
83
  export { SelectInbox, SelectInboxToolbar, SelectInboxEmpty, SelectInboxBanner, SelectMailboxStatus, SelectMailList, SelectMailListGroup, SelectMailListItem, SelectMailListSkeleton, SelectMailListNote, SelectMailReader, SelectMailMessage, SelectMailNotice, SelectMailAttachment, SelectLeadChip, SelectMailComposer, SelectMailComposerRow, SelectMailComposerInput, SelectMailComposerBody, SelectMailComposerFooter, SelectMailComposerAttachments, SelectMailAttachButton, SelectMailUpload, SelectRecipientInput, SelectTemplateMenu, attachmentExt, isMailAddress, mailName, } from './SelectMail';
84
+ export { SelectConversation, SelectConversationBubble, SelectConversationDay, SelectConversationEvent } from './SelectConversation';
85
+ export type { SelectConversationBubbleProps } from './SelectConversation';
84
86
  export { SelectMailEditor, mailLinkHref, mailTextToHtml } from './SelectMailEditor';
85
87
  export type { SelectMailEditorProps } from './SelectMailEditor';
86
88
  export type { SelectInboxProps, SelectInboxToolbarProps, SelectInboxEmptyProps, SelectMailboxStatusTone, SelectMailAddress, SelectMailListItemProps, SelectMailReaderProps, SelectMailMessageProps, SelectMailAttachmentProps, SelectMailAttachmentState, SelectMailComposerProps, SelectMailUploadProps, SelectMailUploadState, SelectRecipientInputProps, SelectTemplateMenuItem, SelectTemplateMenuProps, } from './SelectMail';