@selectwin/kit 0.1.266 → 0.1.268
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 +32 -5
- package/dist/SelectCalendar.d.ts +7 -1
- package/dist/SelectCalendar.js +36 -36
- package/dist/SelectDateField.js +112 -145
- package/dist/SelectField.d.ts +4 -0
- package/dist/SelectKpiBand.d.ts +3 -1
- package/dist/SelectKpiBand.js +14 -9
- package/dist/SelectLocale.d.ts +57 -0
- package/dist/SelectLocale.js +153 -39
- package/dist/SelectMail.d.ts +21 -3
- package/dist/SelectMail.js +61 -57
- package/dist/SelectMonthField.d.ts +20 -0
- package/dist/SelectMonthField.js +181 -0
- package/dist/SelectScrollArea.d.ts +6 -2
- package/dist/SelectScrollArea.js +7 -7
- package/dist/SelectTable.d.ts +8 -0
- package/dist/SelectTable.js +90 -90
- package/dist/SelectWhenField.d.ts +26 -0
- package/dist/SelectWhenField.js +192 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +17 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectField.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ export interface SelectFieldProps {
|
|
|
34
34
|
value: string;
|
|
35
35
|
/** O valor novo e, desde a 0.1.198, o evento nativo (ausente quando quem muda é o passo do número). */
|
|
36
36
|
onChange: (value: string, event?: ChangeEvent<HTMLInputElement>) => void;
|
|
37
|
+
/**
|
|
38
|
+
* O tipo do `<input>`. Os de data (`date`, `datetime-local`, `month`, `week`) abrem o seletor do NAVEGADOR, que fala a
|
|
39
|
+
* língua do navegador e não a do app: para o mês, o `SelectMonthField` (0.1.268); para a data, o `SelectDateField`.
|
|
40
|
+
*/
|
|
37
41
|
type?: 'text' | 'email' | 'password' | 'url' | 'tel' | 'date' | 'datetime-local' | 'number' | 'search' | 'time' | 'month' | 'week';
|
|
38
42
|
/** 0.1.198: o "(opcional)" depois do rótulo. */
|
|
39
43
|
optional?: boolean;
|
package/dist/SelectKpiBand.d.ts
CHANGED
|
@@ -6,8 +6,10 @@ type SelectKpiBandOwnProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* 0.1.230: as colunas da faixa (4 → 4/2/1, 3 → 3/1, 2 → 2/1), sem o buraco da grade. Padrão: quebra sozinha — desde a
|
|
8
8
|
* 0.1.242 em flex, esticando a última linha (5 números numa largura média viram 4 + 1 sem células vazias).
|
|
9
|
+
* 0.1.267: de 5 a 8, a faixa numa linha (todos lado a lado a partir de 1.200 px, quebra sozinha no meio, dois por
|
|
10
|
+
* linha no celular). Fora de outra moldura, como as outras.
|
|
9
11
|
*/
|
|
10
|
-
columns?: 2 | 3 | 4;
|
|
12
|
+
columns?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
11
13
|
/** 0.1.235: os painéis embaixo dos números, no mesmo card (`SelectKpiBandPanel`). Só na faixa `div`. */
|
|
12
14
|
panels?: ReactNode;
|
|
13
15
|
};
|
package/dist/SelectKpiBand.js
CHANGED
|
@@ -5,22 +5,27 @@ import { KpiListContext as r } from "./internal/kpiList.js";
|
|
|
5
5
|
import { Children as i, forwardRef as a } from "react";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region src/SelectKpiBand.tsx
|
|
8
|
-
var c = a(function({ children: e, as: t = "div", columns: a, panels: c, className: l,
|
|
9
|
-
let
|
|
8
|
+
var c = a(function({ children: e, as: t = "div", columns: a, panels: c, className: l, style: u, ...d }, f) {
|
|
9
|
+
let p = n(), m = i.toArray(e).length, h = a ?? (c != null && m >= 2 && m <= 4 ? m : void 0), g = !p && h !== void 0 && h >= 5, _ = h && !p ? g ? " select-kpiband--row" : ` select-kpiband--cols-${h}` : "", v = `select-kpiband${p ? " select-kpiband--nested" : ""}${_}${l ? " " + l : ""}`, y = g ? {
|
|
10
|
+
...u,
|
|
11
|
+
"--select-kpiband-cols": String(h)
|
|
12
|
+
} : u;
|
|
10
13
|
return t === "dl" ? /* @__PURE__ */ o(r.Provider, {
|
|
11
14
|
value: !0,
|
|
12
15
|
children: /* @__PURE__ */ o("dl", {
|
|
13
|
-
ref:
|
|
14
|
-
...
|
|
15
|
-
|
|
16
|
+
ref: f,
|
|
17
|
+
...d,
|
|
18
|
+
style: y,
|
|
19
|
+
className: v,
|
|
16
20
|
children: e
|
|
17
21
|
})
|
|
18
22
|
}) : /* @__PURE__ */ s("div", {
|
|
19
|
-
ref:
|
|
23
|
+
ref: f,
|
|
20
24
|
role: "group",
|
|
21
|
-
...
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
...d,
|
|
26
|
+
style: y,
|
|
27
|
+
className: v,
|
|
28
|
+
children: [e, c != null && !p && /* @__PURE__ */ o("div", {
|
|
24
29
|
className: "select-kpiband__panels",
|
|
25
30
|
children: c
|
|
26
31
|
})]
|
package/dist/SelectLocale.d.ts
CHANGED
|
@@ -508,6 +508,63 @@ export interface SelectKitMessages {
|
|
|
508
508
|
fixed: string;
|
|
509
509
|
fixedWhy: string;
|
|
510
510
|
};
|
|
511
|
+
/**
|
|
512
|
+
* 0.1.267: o "Quando" de um campo só (`SelectWhenField`): a frase do campo ("19/11, 15:00 às 15:45"), o dia curto, o
|
|
513
|
+
* "Começa", o "Termina" e o "Concluir". Os dias da semana, o mês e as setas são os da agenda (`calendar`); a duração
|
|
514
|
+
* ("45 min", "1 h 30 min") é a do prazo (`selectDurationText`).
|
|
515
|
+
*/
|
|
516
|
+
whenField: {
|
|
517
|
+
placeholder: string;
|
|
518
|
+
/** A frase do campo: o dia, a hora do começo e a do fim ("19/11, 15:00 às 15:45"). */
|
|
519
|
+
value: (day: string, from: string, to: string) => string;
|
|
520
|
+
/** O dia curto ("19/11"); com o ano quando não é o deste ano ("19/11/2027"). */
|
|
521
|
+
day: (year: number, month: number, day: number, withYear: boolean) => string;
|
|
522
|
+
start: string;
|
|
523
|
+
end: string;
|
|
524
|
+
/** Uma opção do "Termina": a hora do fim e a duração ("15:45 (45 min)"). */
|
|
525
|
+
endOption: (time: string, duration: string) => string;
|
|
526
|
+
done: string;
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* 0.1.268: o campo de uma data (`SelectDateField`) e o de um mês (`SelectMonthField`, novo), na língua do provider. Antes o
|
|
530
|
+
* campo da data era fixo em português, e o mês era o `<input type="month">` do navegador, que segue a língua do
|
|
531
|
+
* navegador e não a do app ("December 2026" num painel em português). O português é o de sempre do `SelectDateField`.
|
|
532
|
+
*/
|
|
533
|
+
dateField: {
|
|
534
|
+
/** Os dias curtos da grade, de domingo a sábado. */
|
|
535
|
+
weekdays: readonly [string, string, string, string, string, string, string];
|
|
536
|
+
/** O nome do mês (de janeiro a dezembro), o do título da grade dos dias ("Novembro 2026"). */
|
|
537
|
+
months: readonly string[];
|
|
538
|
+
/** O nome curto do mês, o da grade dos meses ("Nov"). */
|
|
539
|
+
monthsShort: readonly string[];
|
|
540
|
+
/** O título da grade dos dias; `month` de 1 a 12. */
|
|
541
|
+
monthTitle: (month: number, year: number) => string;
|
|
542
|
+
/** O mês escolhido no campo ("novembro de 2026"); `month` de 1 a 12. */
|
|
543
|
+
monthValue: (month: number, year: number) => string;
|
|
544
|
+
/** O nome de um mês da grade para o leitor de tela ("Novembro de 2026"); `month` de 1 a 12. */
|
|
545
|
+
monthCell: (month: number, year: number) => string;
|
|
546
|
+
/** A data do campo ("25/11/2026"); `month` de 1 a 12. */
|
|
547
|
+
date: (year: number, month: number, day: number) => string;
|
|
548
|
+
datePlaceholder: string;
|
|
549
|
+
dateTimePlaceholder: string;
|
|
550
|
+
monthPlaceholder: string;
|
|
551
|
+
prevMonth: string;
|
|
552
|
+
nextMonth: string;
|
|
553
|
+
prevYear: string;
|
|
554
|
+
nextYear: string;
|
|
555
|
+
prevYears: string;
|
|
556
|
+
nextYears: string;
|
|
557
|
+
pickYearMonth: string;
|
|
558
|
+
pickYear: string;
|
|
559
|
+
years: string;
|
|
560
|
+
/** A grade dos meses de um ano ("Meses de 2026"). */
|
|
561
|
+
monthsOf: (year: number) => string;
|
|
562
|
+
time: string;
|
|
563
|
+
clear: string;
|
|
564
|
+
today: string;
|
|
565
|
+
thisMonth: string;
|
|
566
|
+
done: string;
|
|
567
|
+
};
|
|
511
568
|
}
|
|
512
569
|
/** Os dicionários do kit, para quem quer conferir ou montar um texto do mesmo jeito. */
|
|
513
570
|
export declare const selectKitMessages: Readonly<Record<SelectLocaleCode, SelectKitMessages>>;
|
package/dist/SelectLocale.js
CHANGED
|
@@ -15,6 +15,32 @@ var r = [
|
|
|
15
15
|
"novembro",
|
|
16
16
|
"dezembro"
|
|
17
17
|
], i = [
|
|
18
|
+
"Janeiro",
|
|
19
|
+
"Fevereiro",
|
|
20
|
+
"Março",
|
|
21
|
+
"Abril",
|
|
22
|
+
"Maio",
|
|
23
|
+
"Junho",
|
|
24
|
+
"Julho",
|
|
25
|
+
"Agosto",
|
|
26
|
+
"Setembro",
|
|
27
|
+
"Outubro",
|
|
28
|
+
"Novembro",
|
|
29
|
+
"Dezembro"
|
|
30
|
+
], a = [
|
|
31
|
+
"Jan",
|
|
32
|
+
"Fev",
|
|
33
|
+
"Mar",
|
|
34
|
+
"Abr",
|
|
35
|
+
"Mai",
|
|
36
|
+
"Jun",
|
|
37
|
+
"Jul",
|
|
38
|
+
"Ago",
|
|
39
|
+
"Set",
|
|
40
|
+
"Out",
|
|
41
|
+
"Nov",
|
|
42
|
+
"Dez"
|
|
43
|
+
], o = [
|
|
18
44
|
"jan.",
|
|
19
45
|
"fev.",
|
|
20
46
|
"mar.",
|
|
@@ -27,7 +53,7 @@ var r = [
|
|
|
27
53
|
"out.",
|
|
28
54
|
"nov.",
|
|
29
55
|
"dez."
|
|
30
|
-
],
|
|
56
|
+
], s = [
|
|
31
57
|
"January",
|
|
32
58
|
"February",
|
|
33
59
|
"March",
|
|
@@ -40,7 +66,7 @@ var r = [
|
|
|
40
66
|
"October",
|
|
41
67
|
"November",
|
|
42
68
|
"December"
|
|
43
|
-
],
|
|
69
|
+
], c = [
|
|
44
70
|
"Jan",
|
|
45
71
|
"Feb",
|
|
46
72
|
"Mar",
|
|
@@ -53,7 +79,7 @@ var r = [
|
|
|
53
79
|
"Oct",
|
|
54
80
|
"Nov",
|
|
55
81
|
"Dec"
|
|
56
|
-
],
|
|
82
|
+
], l = (e) => String(e).padStart(2, "0"), u = {
|
|
57
83
|
common: {
|
|
58
84
|
close: "Fechar",
|
|
59
85
|
cancel: "Cancelar",
|
|
@@ -101,7 +127,7 @@ var r = [
|
|
|
101
127
|
customField: "campo",
|
|
102
128
|
customFieldLabel: "campo personalizado",
|
|
103
129
|
filters: "Filtros",
|
|
104
|
-
filtersCount: (e, t) => `${e} · ${
|
|
130
|
+
filtersCount: (e, t) => `${e} · ${b(t, "pt-BR")}`,
|
|
105
131
|
showResults: "Ver resultados"
|
|
106
132
|
},
|
|
107
133
|
dataTable: {
|
|
@@ -331,8 +357,8 @@ var r = [
|
|
|
331
357
|
retry: "Tentar de novo"
|
|
332
358
|
},
|
|
333
359
|
avatarGroup: { label: (e, t) => {
|
|
334
|
-
let n =
|
|
335
|
-
return e.length === 0 ? t === 1 ? "1 pessoa" : `${n} pessoas` :
|
|
360
|
+
let n = b(t, "pt-BR");
|
|
361
|
+
return e.length === 0 ? t === 1 ? "1 pessoa" : `${n} pessoas` : f(t > 0 ? [...e, `mais ${n}`] : e, "e");
|
|
336
362
|
} },
|
|
337
363
|
lock: { label: "automática" },
|
|
338
364
|
deviceFrame: {
|
|
@@ -438,7 +464,7 @@ var r = [
|
|
|
438
464
|
},
|
|
439
465
|
bulkBar: {
|
|
440
466
|
label: "Ações em lote",
|
|
441
|
-
count: (e) => e === 1 ? "1 selecionado" : `${
|
|
467
|
+
count: (e) => e === 1 ? "1 selecionado" : `${b(e, "pt-BR")} selecionados`,
|
|
442
468
|
clear: "Limpar a seleção"
|
|
443
469
|
},
|
|
444
470
|
field: { count: (e, t) => `${e} de ${t}` },
|
|
@@ -483,8 +509,8 @@ var r = [
|
|
|
483
509
|
"sáb."
|
|
484
510
|
],
|
|
485
511
|
monthTitle: (e, t) => `${r[e - 1]} de ${t}`,
|
|
486
|
-
weekTitle: ([e, t, n], [
|
|
487
|
-
workWeekTitle: ([e, t, n], [r, i, a]) => e === r && t === i ? `${n} a ${
|
|
512
|
+
weekTitle: ([e, t, n], [i, a, s]) => e === i && t === a ? `${n} – ${s} de ${r[t - 1]} de ${i}` : e === i ? `${n} de ${o[t - 1]} – ${s} de ${o[a - 1]} de ${i}` : `${n} de ${o[t - 1]} de ${e} – ${s} de ${o[a - 1]} de ${i}`,
|
|
513
|
+
workWeekTitle: ([e, t, n], [r, i, a]) => e === r && t === i ? `${n} a ${l(a)}/${l(i)}/${r}` : `${l(n)}/${l(t)} a ${l(a)}/${l(i)}/${r}`,
|
|
488
514
|
dayTitle: (e, [t, n, r]) => `${[
|
|
489
515
|
"dom",
|
|
490
516
|
"seg",
|
|
@@ -493,9 +519,9 @@ var r = [
|
|
|
493
519
|
"qui",
|
|
494
520
|
"sex",
|
|
495
521
|
"sáb"
|
|
496
|
-
][e]}., ${
|
|
522
|
+
][e]}., ${l(r)}/${l(n)}/${t}`,
|
|
497
523
|
dayLabel: (e, t) => `${t} de ${r[e - 1]}`,
|
|
498
|
-
dayShort: (e, t) => `${
|
|
524
|
+
dayShort: (e, t) => `${l(t)}/${l(e)}`,
|
|
499
525
|
views: {
|
|
500
526
|
month: "Mês",
|
|
501
527
|
week: "Semana",
|
|
@@ -561,8 +587,52 @@ var r = [
|
|
|
561
587
|
add: "Adicionar regra",
|
|
562
588
|
fixed: "Esta regra é fixa: ela vale sempre.",
|
|
563
589
|
fixedWhy: "Regra fixa: por quê"
|
|
590
|
+
},
|
|
591
|
+
whenField: {
|
|
592
|
+
placeholder: "Escolha o dia e a hora",
|
|
593
|
+
value: (e, t, n) => `${e}, ${t} às ${n}`,
|
|
594
|
+
day: (e, t, n, r) => r ? `${l(n)}/${l(t)}/${e}` : `${l(n)}/${l(t)}`,
|
|
595
|
+
start: "Começa",
|
|
596
|
+
end: "Termina",
|
|
597
|
+
endOption: (e, t) => `${e} (${t})`,
|
|
598
|
+
done: "Concluir"
|
|
599
|
+
},
|
|
600
|
+
dateField: {
|
|
601
|
+
weekdays: [
|
|
602
|
+
"Dom",
|
|
603
|
+
"Seg",
|
|
604
|
+
"Ter",
|
|
605
|
+
"Qua",
|
|
606
|
+
"Qui",
|
|
607
|
+
"Sex",
|
|
608
|
+
"Sáb"
|
|
609
|
+
],
|
|
610
|
+
months: i,
|
|
611
|
+
monthsShort: a,
|
|
612
|
+
monthTitle: (e, t) => `${i[e - 1]} ${t}`,
|
|
613
|
+
monthValue: (e, t) => `${r[e - 1]} de ${t}`,
|
|
614
|
+
monthCell: (e, t) => `${i[e - 1]} de ${t}`,
|
|
615
|
+
date: (e, t, n) => `${l(n)}/${l(t)}/${e}`,
|
|
616
|
+
datePlaceholder: "Selecione uma data",
|
|
617
|
+
dateTimePlaceholder: "Selecione data e hora",
|
|
618
|
+
monthPlaceholder: "Selecione o mês",
|
|
619
|
+
prevMonth: "Mês anterior",
|
|
620
|
+
nextMonth: "Próximo mês",
|
|
621
|
+
prevYear: "Ano anterior",
|
|
622
|
+
nextYear: "Próximo ano",
|
|
623
|
+
prevYears: "Anos anteriores",
|
|
624
|
+
nextYears: "Próximos anos",
|
|
625
|
+
pickYearMonth: "Escolher o ano e o mês",
|
|
626
|
+
pickYear: "Escolher o ano",
|
|
627
|
+
years: "Anos",
|
|
628
|
+
monthsOf: (e) => `Meses de ${e}`,
|
|
629
|
+
time: "Horário",
|
|
630
|
+
clear: "Limpar",
|
|
631
|
+
today: "Hoje",
|
|
632
|
+
thisMonth: "Este mês",
|
|
633
|
+
done: "Concluir"
|
|
564
634
|
}
|
|
565
|
-
},
|
|
635
|
+
}, d = {
|
|
566
636
|
common: {
|
|
567
637
|
close: "Close",
|
|
568
638
|
cancel: "Cancel",
|
|
@@ -610,7 +680,7 @@ var r = [
|
|
|
610
680
|
customField: "field",
|
|
611
681
|
customFieldLabel: "custom field",
|
|
612
682
|
filters: "Filters",
|
|
613
|
-
filtersCount: (e, t) => `${e} · ${
|
|
683
|
+
filtersCount: (e, t) => `${e} · ${b(t, "en")}`,
|
|
614
684
|
showResults: "Show results"
|
|
615
685
|
},
|
|
616
686
|
dataTable: {
|
|
@@ -840,8 +910,8 @@ var r = [
|
|
|
840
910
|
retry: "Try again"
|
|
841
911
|
},
|
|
842
912
|
avatarGroup: { label: (e, t) => {
|
|
843
|
-
let n =
|
|
844
|
-
return e.length === 0 ? t === 1 ? "1 person" : `${n} people` :
|
|
913
|
+
let n = b(t, "en");
|
|
914
|
+
return e.length === 0 ? t === 1 ? "1 person" : `${n} people` : f(t > 0 ? [...e, `${n} more`] : e, "and");
|
|
845
915
|
} },
|
|
846
916
|
lock: { label: "automatic" },
|
|
847
917
|
deviceFrame: {
|
|
@@ -944,7 +1014,7 @@ var r = [
|
|
|
944
1014
|
},
|
|
945
1015
|
bulkBar: {
|
|
946
1016
|
label: "Bulk actions",
|
|
947
|
-
count: (e) => `${
|
|
1017
|
+
count: (e) => `${b(e, "en")} selected`,
|
|
948
1018
|
clear: "Clear selection"
|
|
949
1019
|
},
|
|
950
1020
|
field: { count: (e, t) => `${e}/${t}` },
|
|
@@ -988,9 +1058,9 @@ var r = [
|
|
|
988
1058
|
"Fri",
|
|
989
1059
|
"Sat"
|
|
990
1060
|
],
|
|
991
|
-
monthTitle: (e, t) => `${
|
|
992
|
-
weekTitle: ([e, t, n], [r, i,
|
|
993
|
-
workWeekTitle: ([, e, t], [n, r, i]) => `${
|
|
1061
|
+
monthTitle: (e, t) => `${s[e - 1]} ${t}`,
|
|
1062
|
+
weekTitle: ([e, t, n], [r, i, a]) => e === r && t === i ? `${s[t - 1]} ${n} – ${a}, ${r}` : e === r ? `${c[t - 1]} ${n} – ${c[i - 1]} ${a}, ${r}` : `${c[t - 1]} ${n}, ${e} – ${c[i - 1]} ${a}, ${r}`,
|
|
1063
|
+
workWeekTitle: ([, e, t], [n, r, i]) => `${l(e)}/${l(t)} – ${l(r)}/${l(i)}/${n}`,
|
|
994
1064
|
dayTitle: (e, [t, n, r]) => `${[
|
|
995
1065
|
"Sun",
|
|
996
1066
|
"Mon",
|
|
@@ -999,9 +1069,9 @@ var r = [
|
|
|
999
1069
|
"Thu",
|
|
1000
1070
|
"Fri",
|
|
1001
1071
|
"Sat"
|
|
1002
|
-
][e]}, ${
|
|
1003
|
-
dayLabel: (e, t) => `${
|
|
1004
|
-
dayShort: (e, t) => `${
|
|
1072
|
+
][e]}, ${l(n)}/${l(r)}/${t}`,
|
|
1073
|
+
dayLabel: (e, t) => `${s[e - 1]} ${t}`,
|
|
1074
|
+
dayShort: (e, t) => `${l(e)}/${l(t)}`,
|
|
1005
1075
|
views: {
|
|
1006
1076
|
month: "Month",
|
|
1007
1077
|
week: "Week",
|
|
@@ -1067,37 +1137,81 @@ var r = [
|
|
|
1067
1137
|
add: "Add rule",
|
|
1068
1138
|
fixed: "This rule is fixed: it always applies.",
|
|
1069
1139
|
fixedWhy: "Fixed rule: why"
|
|
1140
|
+
},
|
|
1141
|
+
whenField: {
|
|
1142
|
+
placeholder: "Pick the day and time",
|
|
1143
|
+
value: (e, t, n) => `${e}, ${t} to ${n}`,
|
|
1144
|
+
day: (e, t, n, r) => r ? `${l(t)}/${l(n)}/${e}` : `${l(t)}/${l(n)}`,
|
|
1145
|
+
start: "Starts",
|
|
1146
|
+
end: "Ends",
|
|
1147
|
+
endOption: (e, t) => `${e} (${t})`,
|
|
1148
|
+
done: "Done"
|
|
1149
|
+
},
|
|
1150
|
+
dateField: {
|
|
1151
|
+
weekdays: [
|
|
1152
|
+
"Sun",
|
|
1153
|
+
"Mon",
|
|
1154
|
+
"Tue",
|
|
1155
|
+
"Wed",
|
|
1156
|
+
"Thu",
|
|
1157
|
+
"Fri",
|
|
1158
|
+
"Sat"
|
|
1159
|
+
],
|
|
1160
|
+
months: s,
|
|
1161
|
+
monthsShort: c,
|
|
1162
|
+
monthTitle: (e, t) => `${s[e - 1]} ${t}`,
|
|
1163
|
+
monthValue: (e, t) => `${s[e - 1]} ${t}`,
|
|
1164
|
+
monthCell: (e, t) => `${s[e - 1]} ${t}`,
|
|
1165
|
+
date: (e, t, n) => `${l(t)}/${l(n)}/${e}`,
|
|
1166
|
+
datePlaceholder: "Select a date",
|
|
1167
|
+
dateTimePlaceholder: "Select date and time",
|
|
1168
|
+
monthPlaceholder: "Select a month",
|
|
1169
|
+
prevMonth: "Previous month",
|
|
1170
|
+
nextMonth: "Next month",
|
|
1171
|
+
prevYear: "Previous year",
|
|
1172
|
+
nextYear: "Next year",
|
|
1173
|
+
prevYears: "Previous years",
|
|
1174
|
+
nextYears: "Next years",
|
|
1175
|
+
pickYearMonth: "Choose the year and month",
|
|
1176
|
+
pickYear: "Choose the year",
|
|
1177
|
+
years: "Years",
|
|
1178
|
+
monthsOf: (e) => `Months of ${e}`,
|
|
1179
|
+
time: "Time",
|
|
1180
|
+
clear: "Clear",
|
|
1181
|
+
today: "Today",
|
|
1182
|
+
thisMonth: "This month",
|
|
1183
|
+
done: "Done"
|
|
1070
1184
|
}
|
|
1071
1185
|
};
|
|
1072
|
-
function
|
|
1186
|
+
function f(e, t) {
|
|
1073
1187
|
return e.length <= 1 ? e[0] ?? "" : `${e.slice(0, -1).join(", ")} ${t} ${e[e.length - 1]}`;
|
|
1074
1188
|
}
|
|
1075
|
-
var
|
|
1076
|
-
"pt-BR":
|
|
1077
|
-
en:
|
|
1078
|
-
},
|
|
1079
|
-
function
|
|
1080
|
-
return /* @__PURE__ */ n(
|
|
1189
|
+
var p = {
|
|
1190
|
+
"pt-BR": u,
|
|
1191
|
+
en: d
|
|
1192
|
+
}, m = e(null);
|
|
1193
|
+
function h({ locale: e, children: t }) {
|
|
1194
|
+
return /* @__PURE__ */ n(m.Provider, {
|
|
1081
1195
|
value: e,
|
|
1082
1196
|
children: t
|
|
1083
1197
|
});
|
|
1084
1198
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return t(
|
|
1199
|
+
function g() {
|
|
1200
|
+
return t(m) ?? "pt-BR";
|
|
1087
1201
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return t(
|
|
1202
|
+
function _() {
|
|
1203
|
+
return t(m);
|
|
1090
1204
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return
|
|
1205
|
+
function v() {
|
|
1206
|
+
return p[g()];
|
|
1093
1207
|
}
|
|
1094
|
-
function
|
|
1208
|
+
function y(e) {
|
|
1095
1209
|
return e === "en" ? "en-US" : "pt-BR";
|
|
1096
1210
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return e.toLocaleString(
|
|
1211
|
+
function b(e, t = "pt-BR") {
|
|
1212
|
+
return e.toLocaleString(y(t));
|
|
1099
1213
|
}
|
|
1100
1214
|
//#endregion
|
|
1101
|
-
export {
|
|
1215
|
+
export { h as SelectLocaleProvider, b as formatSelectNumber, y as selectIntlLocale, p as selectKitMessages, g as useSelectLocale, _ as useSelectLocaleIfSet, v as useSelectMessages };
|
|
1102
1216
|
|
|
1103
1217
|
//# sourceMappingURL=SelectLocale.js.map
|
package/dist/SelectMail.d.ts
CHANGED
|
@@ -346,6 +346,20 @@ export interface SelectMailComposerProps {
|
|
|
346
346
|
* coluna só) e a caixa no computador.
|
|
347
347
|
*/
|
|
348
348
|
shape?: 'box' | 'pill' | 'auto';
|
|
349
|
+
/**
|
|
350
|
+
* 0.1.267, no `chat`: o modo ESTREITO. `false` (o padrão) é a linha única de sempre. `'auto'` mede o próprio compositor:
|
|
351
|
+
* abaixo de 27rem de largura (a conversa estreita ao lado da lista, o menu aberto), o campo sobe para a linha de cima,
|
|
352
|
+
* inteiro, e o `start` e o `end` ficam embaixo, o `end` na ponta direita; `true` é o estreito sempre. Nos dois, a dica do
|
|
353
|
+
* campo (o `placeholder`) fica numa linha só e corta com reticências, em vez de quebrar.
|
|
354
|
+
*/
|
|
355
|
+
narrow?: boolean | 'auto';
|
|
356
|
+
/**
|
|
357
|
+
* 0.1.267: a folha de TELA CHEIA (o "Escrever" no celular). O compositor ocupa a altura que sobra no pai (uma coluna
|
|
358
|
+
* flex com a altura dada pelo app), os campos crescem e rolam por dentro, e o rodapé fica preso embaixo, com o `end` do
|
|
359
|
+
* `SelectMailComposerFooter` (o "Enviar") na ponta direita. A linha que vai logo acima do rodapé (o teto de envios) é o
|
|
360
|
+
* `above` do `SelectMailComposerFooter`. Para o `inline`.
|
|
361
|
+
*/
|
|
362
|
+
fill?: boolean;
|
|
349
363
|
/** O título da janela (`dock`): o assunto, ou "Nova mensagem". */
|
|
350
364
|
title?: ReactNode;
|
|
351
365
|
/** A janela recolhida: só o título. */
|
|
@@ -368,7 +382,7 @@ export interface SelectMailComposerProps {
|
|
|
368
382
|
children: ReactNode;
|
|
369
383
|
'aria-label'?: string;
|
|
370
384
|
}
|
|
371
|
-
export declare function SelectMailComposer({ variant, title, minimized, onToggleMinimize, onClose, closeLabel, error, attachments, onFiles, dropLabel, footer, start, end, hint, hintEnd, shape, children, 'aria-label': ariaLabel, }: SelectMailComposerProps): import("react").JSX.Element;
|
|
385
|
+
export declare function SelectMailComposer({ variant, title, minimized, onToggleMinimize, onClose, closeLabel, error, attachments, onFiles, dropLabel, footer, start, end, hint, hintEnd, shape, narrow, fill, children, 'aria-label': ariaLabel, }: SelectMailComposerProps): import("react").JSX.Element;
|
|
372
386
|
/** Uma linha do compositor: o rótulo ("Para", "Cc", "Assunto"), o campo e uma ação à direita ("Cc"). */
|
|
373
387
|
export declare function SelectMailComposerRow({ label, children, action }: {
|
|
374
388
|
label?: ReactNode;
|
|
@@ -451,8 +465,12 @@ export interface SelectMailUploadProps {
|
|
|
451
465
|
}
|
|
452
466
|
/** Um anexo no compositor: a extensão, o nome, o tamanho (ou o progresso, ou a recusa), tirar e tentar de novo. */
|
|
453
467
|
export declare function SelectMailUpload({ name, size, state, progress, error, onRemove, onRetry }: SelectMailUploadProps): import("react").JSX.Element;
|
|
454
|
-
/**
|
|
455
|
-
|
|
468
|
+
/**
|
|
469
|
+
* O rodapé: `start` (o modelo), a nota do meio (por onde sai) e `end` (descartar, enviar). 0.1.267: `above` é uma linha
|
|
470
|
+
* inteira logo acima deles, dentro do rodapé (o teto de envios da folha de tela cheia, `SelectMailComposer fill`).
|
|
471
|
+
*/
|
|
472
|
+
export declare function SelectMailComposerFooter({ above, start, note, end }: {
|
|
473
|
+
above?: ReactNode;
|
|
456
474
|
start?: ReactNode;
|
|
457
475
|
note?: ReactNode;
|
|
458
476
|
end?: ReactNode;
|