@selectwin/kit 0.1.220 → 0.1.222

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.
@@ -87,6 +87,29 @@ var r = {
87
87
  progress: (e, t) => `${e} de ${t}`
88
88
  },
89
89
  sideNav: { pending: (e) => `${e} (com pendências)` },
90
+ inbox: {
91
+ list: "Conversas",
92
+ reader: "Conversa aberta",
93
+ aside: "Sobre a conversa",
94
+ unread: "Não lida",
95
+ unreadCount: (e) => e === 1 ? "1 não lida" : `${e} não lidas`,
96
+ messages: (e) => `${e} mensagens`,
97
+ flagged: "Com estrela",
98
+ attachments: (e) => e === 1 ? "1 anexo" : `${e} anexos`,
99
+ back: "Voltar para a lista",
100
+ tools: "Organizar a conversa",
101
+ close: "Fechar e descartar",
102
+ drop: "Solte para anexar",
103
+ open: "Abrir a janela",
104
+ minimize: "Minimizar",
105
+ message: "Mensagem",
106
+ attachmentLoading: "Gerando o link…",
107
+ attachmentReady: "Abrir",
108
+ attachmentFailed: "Não deu para pegar · tentar de novo",
109
+ attachmentOpen: (e) => `Abrir ${e} em outra aba`,
110
+ attachmentBusy: (e) => `${e}: gerando o link`,
111
+ attachmentGet: (e) => `Pegar o anexo ${e}`
112
+ },
90
113
  carousel: {
91
114
  label: "Destaques",
92
115
  carousel: "carrossel",
@@ -191,6 +214,29 @@ var r = {
191
214
  progress: (e, t) => `${e} of ${t}`
192
215
  },
193
216
  sideNav: { pending: (e) => `${e} (pending)` },
217
+ inbox: {
218
+ list: "Conversations",
219
+ reader: "Open conversation",
220
+ aside: "About the conversation",
221
+ unread: "Unread",
222
+ unreadCount: (e) => e === 1 ? "1 unread" : `${e} unread`,
223
+ messages: (e) => `${e} messages`,
224
+ flagged: "Starred",
225
+ attachments: (e) => e === 1 ? "1 attachment" : `${e} attachments`,
226
+ back: "Back to the list",
227
+ tools: "Organize the conversation",
228
+ close: "Close and discard",
229
+ drop: "Drop to attach",
230
+ open: "Open the window",
231
+ minimize: "Minimize",
232
+ message: "Message",
233
+ attachmentLoading: "Getting the link…",
234
+ attachmentReady: "Open",
235
+ attachmentFailed: "Couldn't get it · try again",
236
+ attachmentOpen: (e) => `Open ${e} in a new tab`,
237
+ attachmentBusy: (e) => `${e}: getting the link`,
238
+ attachmentGet: (e) => `Get the attachment ${e}`
239
+ },
194
240
  carousel: {
195
241
  label: "Highlights",
196
242
  carousel: "carousel",
@@ -24,10 +24,18 @@ export interface SelectInboxProps {
24
24
  aside?: ReactNode;
25
25
  /** O nome da coluna lateral para o leitor de tela. */
26
26
  asideLabel?: string;
27
+ /** 0.1.221: os nomes da lista e do leitor para o leitor de tela (padrão: "Conversas", "Conversa aberta"). */
28
+ listLabel?: string;
29
+ readerLabel?: string;
30
+ /**
31
+ * 0.1.221: a caixa DENTRO de uma página (o WhatsApp da SWMX, abaixo do cabeçalho), e não na tela inteira: a borda e o
32
+ * canto do cartão. A altura continua sendo a de quem a contém.
33
+ */
34
+ framed?: boolean;
27
35
  'aria-label'?: string;
28
36
  }
29
37
  /** A caixa de entrada em tela cheia: preenche a altura do pai e cada coluna rola por dentro. */
30
- export declare function SelectInbox({ toolbar, banner, list, reader, readerOpen, children, fullBody, aside, asideLabel, 'aria-label': ariaLabel }: SelectInboxProps): import("react").JSX.Element;
38
+ export declare function SelectInbox({ toolbar, banner, list, reader, readerOpen, children, fullBody, aside, asideLabel, listLabel, readerLabel, framed, 'aria-label': ariaLabel, }: SelectInboxProps): import("react").JSX.Element;
31
39
  /** A faixa de aviso sob a barra, de ponta a ponta (ex.: "a senha da sua caixa deixou de valer"). */
32
40
  export declare function SelectInboxBanner({ tone, children, action }: {
33
41
  tone?: 'warning' | 'critical' | 'info';
@@ -35,7 +43,8 @@ export declare function SelectInboxBanner({ tone, children, action }: {
35
43
  action?: ReactNode;
36
44
  }): import("react").JSX.Element;
37
45
  export interface SelectInboxToolbarProps {
38
- title: ReactNode;
46
+ /** O título da caixa (o h1 da tela cheia). 0.1.221: opcional — numa página, o título é o do cabeçalho dela. */
47
+ title?: ReactNode;
39
48
  /** Sob o título: a caixa e a sincronia (`SelectMailboxStatus`). */
40
49
  status?: ReactNode;
41
50
  /** As pastas e a busca. */
@@ -90,9 +99,14 @@ export interface SelectMailListItemProps {
90
99
  unread?: boolean;
91
100
  /** 0.1.161: alguma mensagem da conversa tem estrela — a estrela cheia ao lado da hora. */
92
101
  flagged?: boolean;
102
+ /**
103
+ * 0.1.221: quantas mensagens não lidas (o WhatsApp conta, o e-mail não): o número no lugar do ponto, e a linha em
104
+ * destaque como a `unread`.
105
+ */
106
+ unreadCount?: number;
93
107
  onClick: () => void;
94
108
  }
95
- export declare function SelectMailListItem({ from, avatar, subject, snippet, date, count, attachments, active, unread, flagged, onClick }: SelectMailListItemProps): import("react").JSX.Element;
109
+ export declare function SelectMailListItem({ from, avatar, subject, snippet, date, count, attachments, active, unread: unreadProp, flagged, unreadCount, onClick, }: SelectMailListItemProps): import("react").JSX.Element;
96
110
  /** As linhas fantasmas enquanto a caixa chega. */
97
111
  export declare function SelectMailListSkeleton({ rows }: {
98
112
  rows?: number;
@@ -226,13 +240,19 @@ export declare function SelectMailComposerInput({ value, onChange, placeholder,
226
240
  maxLength?: number;
227
241
  }): import("react").JSX.Element;
228
242
  /** O corpo: texto, sem moldura, que cresce até um teto e rola. */
229
- export declare function SelectMailComposerBody({ value, onChange, placeholder, rows, 'aria-label': ariaLabel, maxLength, }: {
243
+ export declare function SelectMailComposerBody({ value, onChange, placeholder, rows, 'aria-label': ariaLabel, maxLength, onEnter, id, }: {
230
244
  value: string;
231
245
  onChange: (value: string) => void;
232
246
  placeholder?: string;
233
247
  rows?: number;
234
248
  'aria-label'?: string;
235
249
  maxLength?: number;
250
+ /**
251
+ * 0.1.221: o Enter envia (a conversa de mensagens curtas, o WhatsApp) e o Shift+Enter quebra a linha. Durante a
252
+ * composição de um acento ou de um ideograma, o Enter é da composição.
253
+ */
254
+ onEnter?: () => void;
255
+ id?: string;
236
256
  }): import("react").JSX.Element;
237
257
  /** O clipe do rodapé (0.1.149): abre o seletor de arquivos do sistema. Escolher o mesmo arquivo de novo também vale. */
238
258
  export declare function SelectMailAttachButton({ onFiles, accept, multiple, disabled, label, }: {