@selectwin/kit 0.1.258 → 0.1.260
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/README.md +47 -0
- package/dist/SelectActionBar.d.ts +29 -0
- package/dist/SelectActionBar.js +101 -0
- package/dist/SelectBadge.d.ts +9 -0
- package/dist/SelectBadge.js +26 -12
- package/dist/SelectBulkBar.d.ts +21 -0
- package/dist/SelectBulkBar.js +40 -0
- package/dist/SelectChannelPreview.d.ts +21 -1
- package/dist/SelectChannelPreview.js +100 -73
- package/dist/SelectColorField.d.ts +1 -5
- package/dist/SelectColorField.js +83 -101
- package/dist/SelectCombobox.d.ts +5 -0
- package/dist/SelectCombobox.js +52 -49
- package/dist/SelectComposerNotice.d.ts +14 -0
- package/dist/SelectComposerNotice.js +37 -0
- package/dist/SelectDataTable.d.ts +17 -1
- package/dist/SelectDataTable.js +100 -90
- package/dist/SelectDeadlineBadge.d.ts +32 -0
- package/dist/SelectDeadlineBadge.js +73 -0
- package/dist/SelectFilterBar.js +5 -5
- package/dist/SelectListCard.d.ts +27 -1
- package/dist/SelectListCard.js +47 -22
- package/dist/SelectLocale.d.ts +62 -0
- package/dist/SelectLocale.js +173 -0
- package/dist/SelectMail.d.ts +52 -8
- package/dist/SelectMail.js +315 -242
- package/dist/SelectSection.d.ts +4 -4
- package/dist/SelectSection.js +77 -8
- package/dist/SelectSegmented.d.ts +11 -0
- package/dist/SelectSegmented.js +87 -68
- package/dist/SelectTable.d.ts +13 -1
- package/dist/SelectTable.js +88 -79
- package/dist/SelectTabs.d.ts +7 -0
- package/dist/SelectTabs.js +47 -40
- package/dist/SelectWeekHours.d.ts +64 -0
- package/dist/SelectWeekHours.js +338 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.js +189 -183
- package/dist/internal/color.d.ts +15 -0
- package/dist/internal/color.js +40 -0
- package/dist/internal/safeHref.d.ts +7 -0
- package/dist/internal/safeHref.js +12 -1
- package/dist/internal/scrollReveal.d.ts +19 -0
- package/dist/internal/scrollReveal.js +38 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectListCard.js
CHANGED
|
@@ -44,42 +44,67 @@ var l = a(function({ title: e, headingLevel: n, help: a, description: o, headerA
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
n(l);
|
|
47
|
-
function u({ media: t, mediaSize: n = "icon", title: r, secondary: i, action: a,
|
|
48
|
-
let
|
|
47
|
+
function u({ media: t, mediaSize: n = "icon", title: r, secondary: i, action: a, columns: l, muted: u = !1, wrap: d = !1, onClick: f, href: p }) {
|
|
48
|
+
let m = /* @__PURE__ */ c("span", {
|
|
49
|
+
className: "select-listrow__text",
|
|
50
|
+
children: [/* @__PURE__ */ s("span", {
|
|
51
|
+
className: "select-listrow__title",
|
|
52
|
+
children: r
|
|
53
|
+
}), i && /* @__PURE__ */ s("span", {
|
|
54
|
+
className: "select-listrow__secondary",
|
|
55
|
+
children: i
|
|
56
|
+
})]
|
|
57
|
+
}), h = l != null && l.length > 0, g = h && l.every((e) => e.width) ? `calc(${l.map((e) => e.width).join(" + ")} + ${l.length - 1} * var(--select-sp-6))` : void 0, _ = /* @__PURE__ */ c(o, { children: [
|
|
49
58
|
t && /* @__PURE__ */ s("span", {
|
|
50
59
|
className: `select-listrow__media${n === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
51
60
|
"aria-hidden": "true",
|
|
52
61
|
children: t
|
|
53
62
|
}),
|
|
54
|
-
/* @__PURE__ */ c("span", {
|
|
55
|
-
className: "select-
|
|
56
|
-
children: [/* @__PURE__ */ s("span", {
|
|
57
|
-
className: "select-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
h ? /* @__PURE__ */ c("span", {
|
|
64
|
+
className: "select-listrow__main",
|
|
65
|
+
children: [m, /* @__PURE__ */ s("span", {
|
|
66
|
+
className: "select-listrow__cols",
|
|
67
|
+
style: g ? { "--select-listrow-cols": g } : void 0,
|
|
68
|
+
children: l.map((e, t) => /* @__PURE__ */ c("span", {
|
|
69
|
+
className: `select-listrow__col${e.align === "end" ? " select-listrow__col--end" : ""}`,
|
|
70
|
+
style: e.width ? { "--select-listrow-col": e.width } : void 0,
|
|
71
|
+
children: [
|
|
72
|
+
e.label && /* @__PURE__ */ s("span", {
|
|
73
|
+
className: "select-visually-hidden",
|
|
74
|
+
children: `${e.label}: `
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ s("span", {
|
|
77
|
+
className: "select-listrow__colvalue",
|
|
78
|
+
children: e.content
|
|
79
|
+
}),
|
|
80
|
+
t < l.length - 1 && /* @__PURE__ */ s("span", {
|
|
81
|
+
className: "select-listrow__sep",
|
|
82
|
+
"aria-hidden": "true",
|
|
83
|
+
children: "·"
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}, e.key ?? t))
|
|
62
87
|
})]
|
|
63
|
-
}),
|
|
88
|
+
}) : m,
|
|
64
89
|
a && /* @__PURE__ */ s("span", {
|
|
65
90
|
className: "select-listrow__action",
|
|
66
91
|
children: a
|
|
67
92
|
})
|
|
68
|
-
] }),
|
|
69
|
-
return
|
|
70
|
-
className: `${
|
|
71
|
-
href:
|
|
93
|
+
] }), v = `select-listrow${u ? " select-listrow--muted" : ""}${d ? " select-listrow--wrap" : ""}${h ? " select-listrow--columns" : ""}`, y = e(p);
|
|
94
|
+
return y ? /* @__PURE__ */ s("a", {
|
|
95
|
+
className: `${v} select-listrow--clickable`,
|
|
96
|
+
href: y,
|
|
72
97
|
target: "_blank",
|
|
73
98
|
rel: "noreferrer",
|
|
74
|
-
children:
|
|
75
|
-
}) :
|
|
99
|
+
children: _
|
|
100
|
+
}) : f ? /* @__PURE__ */ s("button", {
|
|
76
101
|
type: "button",
|
|
77
|
-
className: `${
|
|
78
|
-
onClick:
|
|
79
|
-
children:
|
|
102
|
+
className: `${v} select-listrow--clickable`,
|
|
103
|
+
onClick: f,
|
|
104
|
+
children: _
|
|
80
105
|
}) : /* @__PURE__ */ s("div", {
|
|
81
|
-
className:
|
|
82
|
-
children:
|
|
106
|
+
className: v,
|
|
107
|
+
children: _
|
|
83
108
|
});
|
|
84
109
|
}
|
|
85
110
|
function d({ children: e }) {
|
package/dist/SelectLocale.d.ts
CHANGED
|
@@ -298,6 +298,68 @@ export interface SelectKitMessages {
|
|
|
298
298
|
dropped: (name: string, position: number, total: number) => string;
|
|
299
299
|
canceled: (name: string, position: number) => string;
|
|
300
300
|
};
|
|
301
|
+
/** 0.1.259: a etiqueta que se tira (`SelectBadge onRemove`): o nome do "x" ("Tirar VIP"; sem o texto, "Tirar a etiqueta"). */
|
|
302
|
+
badge: {
|
|
303
|
+
remove: (name: string) => string;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* 0.1.259: o editor das faixas da semana (`SelectWeekHours`): os dias (o nome inteiro, o curto das frases e o "na
|
|
307
|
+
* segunda-feira"), as faixas, o copiar, os problemas, os feriados e as frases do resumo ("Segunda a sexta").
|
|
308
|
+
*/
|
|
309
|
+
weekHours: {
|
|
310
|
+
label: string;
|
|
311
|
+
days: Record<'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun', string>;
|
|
312
|
+
span: Record<'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun', string>;
|
|
313
|
+
openOn: (day: 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun') => string;
|
|
314
|
+
closed: string;
|
|
315
|
+
from: string;
|
|
316
|
+
to: string;
|
|
317
|
+
until: string;
|
|
318
|
+
rangeLabel: (day: string, n: number) => string;
|
|
319
|
+
removeRange: (from: string, to: string) => string;
|
|
320
|
+
addRange: string;
|
|
321
|
+
copyMenu: (day: string) => string;
|
|
322
|
+
copyWorkdays: string;
|
|
323
|
+
copyAll: string;
|
|
324
|
+
workdays: string;
|
|
325
|
+
everyDay: string;
|
|
326
|
+
copied: (day: string, target: string) => string;
|
|
327
|
+
problems: Record<'empty' | 'order' | 'overlap' | 'many', string>;
|
|
328
|
+
holidays: string;
|
|
329
|
+
holiday: (date: string, name: string) => string;
|
|
330
|
+
removeHoliday: (holiday: string) => string;
|
|
331
|
+
noHolidays: string;
|
|
332
|
+
date: string;
|
|
333
|
+
name: string;
|
|
334
|
+
addHoliday: string;
|
|
335
|
+
range: (from: string, to: string) => string;
|
|
336
|
+
pair: (a: string, b: string) => string;
|
|
337
|
+
through: (a: string, b: string) => string;
|
|
338
|
+
};
|
|
339
|
+
/** 0.1.259: a fileira de ações que nunca corta (`SelectActionBar`): o nome do menu das que não cabem. */
|
|
340
|
+
actionBar: {
|
|
341
|
+
more: string;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* 0.1.259: o selo do prazo (`SelectDeadlineBadge`): a duração ("17 h úteis", "3 dias"), as frases de cada estado
|
|
345
|
+
* ("Faltam 17 h úteis", "Vencido há 2 h"), o estado sem a duração e o que o leitor de tela ouve depois do texto.
|
|
346
|
+
*/
|
|
347
|
+
deadline: {
|
|
348
|
+
duration: (hours: number, minutes: number, business: boolean) => string;
|
|
349
|
+
days: (days: number) => string;
|
|
350
|
+
left: (duration: string, one: boolean) => string;
|
|
351
|
+
overdue: (duration: string) => string;
|
|
352
|
+
met: (duration: string) => string;
|
|
353
|
+
paused: (duration: string) => string;
|
|
354
|
+
bare: Record<'running' | 'near' | 'overdue' | 'met' | 'paused', string>;
|
|
355
|
+
state: Record<'running' | 'near', string>;
|
|
356
|
+
};
|
|
357
|
+
/** 0.1.259: a barra do lote (`SelectBulkBar`): o nome da região, a conta e o limpar. */
|
|
358
|
+
bulkBar: {
|
|
359
|
+
label: string;
|
|
360
|
+
count: (count: number) => string;
|
|
361
|
+
clear: string;
|
|
362
|
+
};
|
|
301
363
|
}
|
|
302
364
|
/** Os dicionários do kit, para quem quer conferir ou montar um texto do mesmo jeito. */
|
|
303
365
|
export declare const selectKitMessages: Readonly<Record<SelectLocaleCode, SelectKitMessages>>;
|
package/dist/SelectLocale.js
CHANGED
|
@@ -274,6 +274,94 @@ var r = {
|
|
|
274
274
|
moved: (e, t, n) => `${e}: posição ${t} de ${n}.`,
|
|
275
275
|
dropped: (e, t, n) => `Soltou ${e} na posição ${t} de ${n}.`,
|
|
276
276
|
canceled: (e, t) => `Cancelado: ${e} voltou para a posição ${t}.`
|
|
277
|
+
},
|
|
278
|
+
badge: { remove: (e) => e ? `Tirar ${e}` : "Tirar a etiqueta" },
|
|
279
|
+
weekHours: {
|
|
280
|
+
label: "Horário da semana",
|
|
281
|
+
days: {
|
|
282
|
+
mon: "Segunda-feira",
|
|
283
|
+
tue: "Terça-feira",
|
|
284
|
+
wed: "Quarta-feira",
|
|
285
|
+
thu: "Quinta-feira",
|
|
286
|
+
fri: "Sexta-feira",
|
|
287
|
+
sat: "Sábado",
|
|
288
|
+
sun: "Domingo"
|
|
289
|
+
},
|
|
290
|
+
span: {
|
|
291
|
+
mon: "segunda",
|
|
292
|
+
tue: "terça",
|
|
293
|
+
wed: "quarta",
|
|
294
|
+
thu: "quinta",
|
|
295
|
+
fri: "sexta",
|
|
296
|
+
sat: "sábado",
|
|
297
|
+
sun: "domingo"
|
|
298
|
+
},
|
|
299
|
+
openOn: (e) => ({
|
|
300
|
+
mon: "Atende na segunda-feira",
|
|
301
|
+
tue: "Atende na terça-feira",
|
|
302
|
+
wed: "Atende na quarta-feira",
|
|
303
|
+
thu: "Atende na quinta-feira",
|
|
304
|
+
fri: "Atende na sexta-feira",
|
|
305
|
+
sat: "Atende no sábado",
|
|
306
|
+
sun: "Atende no domingo"
|
|
307
|
+
})[e],
|
|
308
|
+
closed: "Fechado",
|
|
309
|
+
from: "Começa",
|
|
310
|
+
to: "Termina",
|
|
311
|
+
until: "às",
|
|
312
|
+
rangeLabel: (e, t) => `${e}, faixa ${t}`,
|
|
313
|
+
removeRange: (e, t) => `Tirar a faixa das ${e} às ${t}`,
|
|
314
|
+
addRange: "Adicionar uma faixa",
|
|
315
|
+
copyMenu: (e) => `Copiar o horário de ${e.toLowerCase()}`,
|
|
316
|
+
copyWorkdays: "Copiar para os dias úteis",
|
|
317
|
+
copyAll: "Copiar para todos os dias",
|
|
318
|
+
workdays: "os dias úteis",
|
|
319
|
+
everyDay: "todos os dias",
|
|
320
|
+
copied: (e, t) => `O horário de ${e.toLowerCase()} foi para ${t}.`,
|
|
321
|
+
problems: {
|
|
322
|
+
empty: "Preencha as duas horas de cada faixa.",
|
|
323
|
+
order: "Uma faixa termina antes de começar.",
|
|
324
|
+
overlap: "As faixas do dia se cruzam.",
|
|
325
|
+
many: "Faixas demais neste dia."
|
|
326
|
+
},
|
|
327
|
+
holidays: "Feriados",
|
|
328
|
+
holiday: (e, t) => `${e} · ${t}`,
|
|
329
|
+
removeHoliday: (e) => `Tirar ${e}`,
|
|
330
|
+
noHolidays: "Nenhuma data a mais.",
|
|
331
|
+
date: "Data",
|
|
332
|
+
name: "Nome",
|
|
333
|
+
addHoliday: "Adicionar a data",
|
|
334
|
+
range: (e, t) => `${e} às ${t}`,
|
|
335
|
+
pair: (e, t) => `${e.charAt(0).toUpperCase()}${e.slice(1)} e ${t}`,
|
|
336
|
+
through: (e, t) => `${e.charAt(0).toUpperCase()}${e.slice(1)} a ${t}`
|
|
337
|
+
},
|
|
338
|
+
actionBar: { more: "Mais ações" },
|
|
339
|
+
deadline: {
|
|
340
|
+
duration: (e, t, n) => {
|
|
341
|
+
let r = [e ? `${e} h` : "", t || !e ? `${t} min` : ""].filter(Boolean).join(" ");
|
|
342
|
+
return n ? `${r} ${e === 1 && t === 0 || e === 0 && t === 1 ? "útil" : "úteis"}` : r;
|
|
343
|
+
},
|
|
344
|
+
days: (e) => e === 1 ? "1 dia" : `${e} dias`,
|
|
345
|
+
left: (e, t) => `${t ? "Falta" : "Faltam"} ${e}`,
|
|
346
|
+
overdue: (e) => `Vencido há ${e}`,
|
|
347
|
+
met: (e) => `Cumprido em ${e}`,
|
|
348
|
+
paused: (e) => `Pausado há ${e}`,
|
|
349
|
+
bare: {
|
|
350
|
+
running: "No prazo",
|
|
351
|
+
near: "Perto de vencer",
|
|
352
|
+
overdue: "Vencido",
|
|
353
|
+
met: "Cumprido",
|
|
354
|
+
paused: "Pausado"
|
|
355
|
+
},
|
|
356
|
+
state: {
|
|
357
|
+
running: "no prazo",
|
|
358
|
+
near: "perto de vencer"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
bulkBar: {
|
|
362
|
+
label: "Ações em lote",
|
|
363
|
+
count: (e) => e === 1 ? "1 selecionado" : `${p(e, "pt-BR")} selecionados`,
|
|
364
|
+
clear: "Limpar a seleção"
|
|
277
365
|
}
|
|
278
366
|
}, i = {
|
|
279
367
|
common: {
|
|
@@ -548,6 +636,91 @@ var r = {
|
|
|
548
636
|
moved: (e, t, n) => `${e}: position ${t} of ${n}.`,
|
|
549
637
|
dropped: (e, t, n) => `Dropped ${e} at position ${t} of ${n}.`,
|
|
550
638
|
canceled: (e, t) => `Canceled: ${e} went back to position ${t}.`
|
|
639
|
+
},
|
|
640
|
+
badge: { remove: (e) => e ? `Remove ${e}` : "Remove the label" },
|
|
641
|
+
weekHours: {
|
|
642
|
+
label: "Weekly hours",
|
|
643
|
+
days: {
|
|
644
|
+
mon: "Monday",
|
|
645
|
+
tue: "Tuesday",
|
|
646
|
+
wed: "Wednesday",
|
|
647
|
+
thu: "Thursday",
|
|
648
|
+
fri: "Friday",
|
|
649
|
+
sat: "Saturday",
|
|
650
|
+
sun: "Sunday"
|
|
651
|
+
},
|
|
652
|
+
span: {
|
|
653
|
+
mon: "Monday",
|
|
654
|
+
tue: "Tuesday",
|
|
655
|
+
wed: "Wednesday",
|
|
656
|
+
thu: "Thursday",
|
|
657
|
+
fri: "Friday",
|
|
658
|
+
sat: "Saturday",
|
|
659
|
+
sun: "Sunday"
|
|
660
|
+
},
|
|
661
|
+
openOn: (e) => ({
|
|
662
|
+
mon: "Open on Monday",
|
|
663
|
+
tue: "Open on Tuesday",
|
|
664
|
+
wed: "Open on Wednesday",
|
|
665
|
+
thu: "Open on Thursday",
|
|
666
|
+
fri: "Open on Friday",
|
|
667
|
+
sat: "Open on Saturday",
|
|
668
|
+
sun: "Open on Sunday"
|
|
669
|
+
})[e],
|
|
670
|
+
closed: "Closed",
|
|
671
|
+
from: "Starts",
|
|
672
|
+
to: "Ends",
|
|
673
|
+
until: "to",
|
|
674
|
+
rangeLabel: (e, t) => `${e}, range ${t}`,
|
|
675
|
+
removeRange: (e, t) => `Remove the ${e} to ${t} range`,
|
|
676
|
+
addRange: "Add a range",
|
|
677
|
+
copyMenu: (e) => `Copy ${e}'s hours`,
|
|
678
|
+
copyWorkdays: "Copy to weekdays",
|
|
679
|
+
copyAll: "Copy to every day",
|
|
680
|
+
workdays: "the weekdays",
|
|
681
|
+
everyDay: "every day",
|
|
682
|
+
copied: (e, t) => `${e}'s hours were copied to ${t}.`,
|
|
683
|
+
problems: {
|
|
684
|
+
empty: "Fill in both times of each range.",
|
|
685
|
+
order: "A range ends before it starts.",
|
|
686
|
+
overlap: "The day's ranges overlap.",
|
|
687
|
+
many: "Too many ranges on this day."
|
|
688
|
+
},
|
|
689
|
+
holidays: "Holidays",
|
|
690
|
+
holiday: (e, t) => `${e} · ${t}`,
|
|
691
|
+
removeHoliday: (e) => `Remove ${e}`,
|
|
692
|
+
noHolidays: "No extra dates.",
|
|
693
|
+
date: "Date",
|
|
694
|
+
name: "Name",
|
|
695
|
+
addHoliday: "Add the date",
|
|
696
|
+
range: (e, t) => `${e} to ${t}`,
|
|
697
|
+
pair: (e, t) => `${e} and ${t}`,
|
|
698
|
+
through: (e, t) => `${e} to ${t}`
|
|
699
|
+
},
|
|
700
|
+
actionBar: { more: "More actions" },
|
|
701
|
+
deadline: {
|
|
702
|
+
duration: (e, t, n) => n ? e ? t ? `${e} h ${t} min of business time` : e === 1 ? "1 business hour" : `${e} business hours` : `${t} business min` : [e ? `${e} h` : "", t || !e ? `${t} min` : ""].filter(Boolean).join(" "),
|
|
703
|
+
days: (e) => e === 1 ? "1 day" : `${e} days`,
|
|
704
|
+
left: (e) => `${e} left`,
|
|
705
|
+
overdue: (e) => `Overdue by ${e}`,
|
|
706
|
+
met: (e) => `Met in ${e}`,
|
|
707
|
+
paused: (e) => `Paused for ${e}`,
|
|
708
|
+
bare: {
|
|
709
|
+
running: "On time",
|
|
710
|
+
near: "Due soon",
|
|
711
|
+
overdue: "Overdue",
|
|
712
|
+
met: "Met",
|
|
713
|
+
paused: "Paused"
|
|
714
|
+
},
|
|
715
|
+
state: {
|
|
716
|
+
running: "on time",
|
|
717
|
+
near: "due soon"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
bulkBar: {
|
|
721
|
+
label: "Bulk actions",
|
|
722
|
+
count: (e) => `${p(e, "en")} selected`,
|
|
723
|
+
clear: "Clear selection"
|
|
551
724
|
}
|
|
552
725
|
};
|
|
553
726
|
function a(e, t) {
|
package/dist/SelectMail.d.ts
CHANGED
|
@@ -7,7 +7,24 @@ export interface SelectMailAddress {
|
|
|
7
7
|
/** "Ana Souza" ou, sem nome, o endereço. */
|
|
8
8
|
export declare function mailName(a: SelectMailAddress | null | undefined): string;
|
|
9
9
|
export interface SelectInboxProps {
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* A barra de ponta a ponta, em cima da lista e da conversa. 0.1.260: opcional — sem ela (ou vazia), nada de barra, e o
|
|
12
|
+
* cabeçalho da conversa começa no topo da caixa (as pranchas do Chat põem a busca e os filtros no `listHeader`).
|
|
13
|
+
*/
|
|
14
|
+
toolbar?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* 0.1.260: o topo da coluna da lista (a busca e as fichas dos filtros, as pranchas do Chat): preso em cima enquanto a
|
|
17
|
+
* lista rola por baixo. No celular, sai junto com a lista quando a conversa abre.
|
|
18
|
+
*/
|
|
19
|
+
listHeader?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* 0.1.260: a largura da coluna da lista e a da coluna do contato, de fora a fora (um comprimento CSS, com a borda e o
|
|
22
|
+
* respiro dentro; o padrão é a largura de antes). As pranchas do Chat: a lista com 18,75rem (300 px) e o contato com
|
|
23
|
+
* 16,25rem (260 px). Os tokens `--select-inbox-list-w` e `--select-inbox-aside-w` fazem o mesmo pelo CSS. No celular,
|
|
24
|
+
* a lista ocupa a tela, como antes.
|
|
25
|
+
*/
|
|
26
|
+
listWidth?: string;
|
|
27
|
+
asideWidth?: string;
|
|
11
28
|
/** Sob a barra, a largura toda (ex.: "a senha da sua caixa deixou de valer"). */
|
|
12
29
|
banner?: ReactNode;
|
|
13
30
|
list?: ReactNode;
|
|
@@ -36,7 +53,7 @@ export interface SelectInboxProps {
|
|
|
36
53
|
'aria-label'?: string;
|
|
37
54
|
}
|
|
38
55
|
/** A caixa de entrada em tela cheia: preenche a altura do pai e cada coluna rola por dentro. */
|
|
39
|
-
export declare function SelectInbox({ toolbar, banner, list, reader, readerOpen, children, fullBody, aside, asideLabel, listLabel, readerLabel, framed, 'aria-label': ariaLabel, }: SelectInboxProps): import("react").JSX.Element;
|
|
56
|
+
export declare function SelectInbox({ toolbar, listHeader, listWidth, asideWidth, banner, list, reader, readerOpen, children, fullBody, aside, asideLabel, listLabel, readerLabel, framed, 'aria-label': ariaLabel, }: SelectInboxProps): import("react").JSX.Element;
|
|
40
57
|
/** A faixa de aviso sob a barra, de ponta a ponta (ex.: "a senha da sua caixa deixou de valer"). */
|
|
41
58
|
export declare function SelectInboxBanner({ tone, children, action }: {
|
|
42
59
|
tone?: 'warning' | 'critical' | 'info';
|
|
@@ -134,8 +151,13 @@ export interface SelectMailReaderProps {
|
|
|
134
151
|
footer?: ReactNode;
|
|
135
152
|
/** 0.1.159: `chat` = uma conversa de mensagens curtas (`SelectConversation`), sobre o fundo tingido. */
|
|
136
153
|
variant?: 'mail' | 'chat';
|
|
154
|
+
/**
|
|
155
|
+
* 0.1.260: o rosto de quem está na conversa, antes do nome (o `SelectAvatar`, as pranchas do Chat). Fica fora da
|
|
156
|
+
* leitura do título: o nome já diz quem é.
|
|
157
|
+
*/
|
|
158
|
+
avatar?: ReactNode;
|
|
137
159
|
}
|
|
138
|
-
export declare function SelectMailReader({ title, meta, actions, tools, onBack, children, footer, variant }: SelectMailReaderProps): import("react").JSX.Element;
|
|
160
|
+
export declare function SelectMailReader({ title, meta, actions, tools, onBack, children, footer, variant, avatar }: SelectMailReaderProps): import("react").JSX.Element;
|
|
139
161
|
export interface SelectMailMessageProps {
|
|
140
162
|
from: SelectMailAddress | null;
|
|
141
163
|
to?: SelectMailAddress[];
|
|
@@ -202,8 +224,21 @@ export declare function SelectLeadChip({ children, onClick, variant, title, }: {
|
|
|
202
224
|
title?: string;
|
|
203
225
|
}): import("react").JSX.Element;
|
|
204
226
|
export interface SelectMailComposerProps {
|
|
205
|
-
/**
|
|
206
|
-
|
|
227
|
+
/**
|
|
228
|
+
* Na conversa (`inline`) ou numa janela encaixada no canto da tela (`dock`). 0.1.260: `chat` é o compositor de UMA
|
|
229
|
+
* linha das pranchas do Chat — o `start` (o emoji, o anexar, as respostas rápidas) à esquerda, o campo no meio (que
|
|
230
|
+
* cresce: o `SelectMailComposerBody autoGrow`), o `end` (o "Modelo", o enviar) à direita; e a dica embaixo, fora da
|
|
231
|
+
* caixa (`hint` à esquerda, `hintEnd` à direita).
|
|
232
|
+
*/
|
|
233
|
+
variant?: 'inline' | 'dock' | 'chat';
|
|
234
|
+
/** 0.1.260, no `chat`: o que vem antes do campo, na mesma linha (os botões de ícone). */
|
|
235
|
+
start?: ReactNode;
|
|
236
|
+
/** 0.1.260, no `chat`: o que vem depois do campo, na mesma linha (o "Modelo", o enviar que grava áudio sem texto). */
|
|
237
|
+
end?: ReactNode;
|
|
238
|
+
/** 0.1.260, no `chat`: a dica embaixo, fora da caixa, à esquerda ("Enter envia · Shift + Enter quebra a linha"). */
|
|
239
|
+
hint?: ReactNode;
|
|
240
|
+
/** 0.1.260, no `chat`: a dica da direita ("Texto livre até amanhã, 14:32"). */
|
|
241
|
+
hintEnd?: ReactNode;
|
|
207
242
|
/** O título da janela (`dock`): o assunto, ou "Nova mensagem". */
|
|
208
243
|
title?: ReactNode;
|
|
209
244
|
/** A janela recolhida: só o título. */
|
|
@@ -221,11 +256,12 @@ export interface SelectMailComposerProps {
|
|
|
221
256
|
onFiles?: (files: File[]) => void;
|
|
222
257
|
/** O que aparece enquanto o arquivo passa por cima. */
|
|
223
258
|
dropLabel?: ReactNode;
|
|
224
|
-
|
|
259
|
+
/** O rodapé (o anexar, a nota e o enviar). 0.1.260: opcional — no `chat`, o `start` e o `end` ficam na linha do campo. */
|
|
260
|
+
footer?: ReactNode;
|
|
225
261
|
children: ReactNode;
|
|
226
262
|
'aria-label'?: string;
|
|
227
263
|
}
|
|
228
|
-
export declare function SelectMailComposer({ variant, title, minimized, onToggleMinimize, onClose, closeLabel, error, attachments, onFiles, dropLabel, footer, children, 'aria-label': ariaLabel, }: SelectMailComposerProps): import("react").JSX.Element;
|
|
264
|
+
export declare function SelectMailComposer({ variant, title, minimized, onToggleMinimize, onClose, closeLabel, error, attachments, onFiles, dropLabel, footer, start, end, hint, hintEnd, children, 'aria-label': ariaLabel, }: SelectMailComposerProps): import("react").JSX.Element;
|
|
229
265
|
/** Uma linha do compositor: o rótulo ("Para", "Cc", "Assunto"), o campo e uma ação à direita ("Cc"). */
|
|
230
266
|
export declare function SelectMailComposerRow({ label, children, action }: {
|
|
231
267
|
label?: ReactNode;
|
|
@@ -241,11 +277,19 @@ export declare function SelectMailComposerInput({ value, onChange, placeholder,
|
|
|
241
277
|
maxLength?: number;
|
|
242
278
|
}): import("react").JSX.Element;
|
|
243
279
|
/** O corpo: texto, sem moldura, que cresce até um teto e rola. */
|
|
244
|
-
export declare function SelectMailComposerBody({ value, onChange, placeholder, rows, 'aria-label': ariaLabel, maxLength, onEnter, id, textareaRef, onKeyDown, onSelect, fieldProps, }: {
|
|
280
|
+
export declare function SelectMailComposerBody({ value, onChange, placeholder, rows, autoGrow, minRows, maxRows, 'aria-label': ariaLabel, maxLength, onEnter, id, textareaRef, onKeyDown, onSelect, fieldProps, }: {
|
|
245
281
|
value: string;
|
|
246
282
|
onChange: (value: string) => void;
|
|
247
283
|
placeholder?: string;
|
|
248
284
|
rows?: number;
|
|
285
|
+
/**
|
|
286
|
+
* 0.1.259: o texto começa baixo e cresce com o que se escreve, até um teto, e só então rola (o e-mail no pé da
|
|
287
|
+
* conversa, o P21). `minRows` (padrão 3) é a altura do começo e `maxRows` (padrão 12), o teto; a altura acompanha a
|
|
288
|
+
* largura (a caixa que estreita ganha linhas). Sem ele, a caixa de sempre (`rows`, a que a pessoa estica).
|
|
289
|
+
*/
|
|
290
|
+
autoGrow?: boolean;
|
|
291
|
+
minRows?: number;
|
|
292
|
+
maxRows?: number;
|
|
249
293
|
'aria-label'?: string;
|
|
250
294
|
maxLength?: number;
|
|
251
295
|
/**
|