@jirawatpyk/aura-react 5.7.3 → 5.9.0
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 +40 -0
- package/dist/aura.bundle.js +1751 -1208
- package/dist/cjs/index.cjs +1751 -1208
- package/dist/esm/Accordion.js +2 -1
- package/dist/esm/Alert.js +7 -19
- package/dist/esm/AppShell.js +2 -1
- package/dist/esm/Badge.js +2 -19
- package/dist/esm/Breadcrumb.js +2 -1
- package/dist/esm/Button.js +17 -17
- package/dist/esm/Card.js +2 -19
- package/dist/esm/Checkbox.js +2 -1
- package/dist/esm/Combobox.js +7 -6
- package/dist/esm/Command.js +3 -2
- package/dist/esm/DataTable.js +35 -13
- package/dist/esm/DatePicker.js +8 -7
- package/dist/esm/Dialog.js +38 -5
- package/dist/esm/EmptyState.js +2 -15
- package/dist/esm/Field.js +2 -1
- package/dist/esm/FileUpload.js +4 -3
- package/dist/esm/FilterBar.js +3 -2
- package/dist/esm/FormErrorSummary.js +2 -1
- package/dist/esm/Icon.js +50 -31
- package/dist/esm/Menu.js +2 -1
- package/dist/esm/NumberField.js +3 -2
- package/dist/esm/Pagination.js +3 -2
- package/dist/esm/PasswordField.js +2 -1
- package/dist/esm/Popover.js +2 -1
- package/dist/esm/RadioGroup.js +2 -1
- package/dist/esm/Select.js +4 -3
- package/dist/esm/SideNav.js +3 -2
- package/dist/esm/Stat.js +8 -1
- package/dist/esm/StatusPill.js +4 -14
- package/dist/esm/Stepper.js +2 -1
- package/dist/esm/Table.js +104 -11
- package/dist/esm/Tabs.js +79 -9
- package/dist/esm/Tag.js +3 -2
- package/dist/esm/TimePicker.js +5 -4
- package/dist/esm/Toaster.js +3 -2
- package/dist/esm/classes.js +33 -0
- package/dist/esm/colorScheme.js +8 -1
- package/dist/esm/display.js +155 -0
- package/dist/esm/iconSvg.js +53 -0
- package/dist/esm/icons.js +531 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/internal.js +1 -27
- package/dist/esm/locale.js +7 -0
- package/dist/esm/strings.js +4 -245
- package/dist/esm/strings.sv.js +127 -0
- package/dist/esm/strings.th.js +127 -0
- package/dist/icons/index.cjs +613 -0
- package/dist/icons/index.d.cts +106 -0
- package/dist/icons/index.d.ts +106 -0
- package/dist/index.d.cts +69 -6
- package/dist/index.d.ts +69 -6
- package/dist/locales/sv.cjs +149 -0
- package/dist/locales/sv.d.cts +96 -0
- package/dist/locales/sv.d.ts +96 -0
- package/dist/locales/th.cjs +149 -0
- package/dist/locales/th.d.cts +96 -0
- package/dist/locales/th.d.ts +96 -0
- package/dist/server/index.cjs +618 -275
- package/dist/server/index.d.cts +141 -0
- package/dist/server/index.d.ts +141 -0
- package/dist/server/index.js +608 -275
- package/dist/styles.css +35 -0
- package/dist/styles.layer.css +35 -0
- package/package.json +35 -3
- package/scripts/aura-icons-codemod.mjs +345 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/strings.sv.ts
|
|
21
|
+
var strings_sv_exports = {};
|
|
22
|
+
__export(strings_sv_exports, {
|
|
23
|
+
sv: () => sv
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(strings_sv_exports);
|
|
26
|
+
var nsv = function(x) {
|
|
27
|
+
return Number(x).toLocaleString("sv-SE");
|
|
28
|
+
};
|
|
29
|
+
var sv = {
|
|
30
|
+
close: "St\xE4ng",
|
|
31
|
+
dismiss: "St\xE4ng",
|
|
32
|
+
dismissToast: "St\xE4ng aviseringen",
|
|
33
|
+
showPassword: "Visa l\xF6senord",
|
|
34
|
+
filters: "Filter",
|
|
35
|
+
search: "S\xF6k",
|
|
36
|
+
clearFilters: "Rensa alla",
|
|
37
|
+
results: function(n) {
|
|
38
|
+
return n === 1 ? "1 tr\xE4ff" : n.toLocaleString("sv-SE") + " tr\xE4ffar";
|
|
39
|
+
},
|
|
40
|
+
commandMenu: "Kommandomeny",
|
|
41
|
+
commandPlaceholder: "Skriv ett kommando eller s\xF6k\u2026",
|
|
42
|
+
commandHint: "\u2191\u2193 flytta \xB7 Enter \xF6ppna \xB7 Esc st\xE4ng",
|
|
43
|
+
errorSummary: function(n) {
|
|
44
|
+
return n === 1 ? "R\xE4tta 1 f\xE4lt f\xF6r att forts\xE4tta" : "R\xE4tta " + n + " f\xE4lt f\xF6r att forts\xE4tta";
|
|
45
|
+
},
|
|
46
|
+
notifications: "Aviseringar",
|
|
47
|
+
mainNav: "Huvudmeny",
|
|
48
|
+
breadcrumb: "Br\xF6dsmulor",
|
|
49
|
+
navigation: "Navigering",
|
|
50
|
+
openNav: "\xD6ppna menyn",
|
|
51
|
+
collapseNav: "F\xE4ll ihop sidof\xE4ltet",
|
|
52
|
+
expandNav: "F\xE4ll ut sidof\xE4ltet",
|
|
53
|
+
searching: "S\xF6ker\u2026",
|
|
54
|
+
noMatches: "Inga tr\xE4ffar",
|
|
55
|
+
clear: function(what) {
|
|
56
|
+
return "Rensa " + (what || "urvalet");
|
|
57
|
+
},
|
|
58
|
+
keepTyping: function(total) {
|
|
59
|
+
return "Skriv mer f\xF6r att begr\xE4nsa " + nsv(total) + " alternativ";
|
|
60
|
+
},
|
|
61
|
+
sortAsc: "Sortera stigande",
|
|
62
|
+
sortDesc: "Sortera fallande",
|
|
63
|
+
pin: "F\xE4st till v\xE4nster",
|
|
64
|
+
unpin: "Lossa kolumnen",
|
|
65
|
+
moveLeft: "Flytta v\xE4nster",
|
|
66
|
+
moveRight: "Flytta h\xF6ger",
|
|
67
|
+
hideColumn: "D\xF6lj kolumnen",
|
|
68
|
+
resetColumns: "\xC5terst\xE4ll kolumner",
|
|
69
|
+
selectRows: "V\xE4lj rader",
|
|
70
|
+
selectAllRows: "V\xE4lj alla rader",
|
|
71
|
+
deselectAllRows: "Avmarkera alla rader",
|
|
72
|
+
selectAll: "V\xE4lj alla",
|
|
73
|
+
selectRow: function(k) {
|
|
74
|
+
return "V\xE4lj " + k;
|
|
75
|
+
},
|
|
76
|
+
selectedCount: function(c) {
|
|
77
|
+
return nsv(c) + " valda";
|
|
78
|
+
},
|
|
79
|
+
pinned: "F\xE4st",
|
|
80
|
+
columnOptions: function(label) {
|
|
81
|
+
return "Alternativ f\xF6r kolumnen " + label;
|
|
82
|
+
},
|
|
83
|
+
column: function(label) {
|
|
84
|
+
return label ? "Kolumnen " + label : "Kolumn";
|
|
85
|
+
},
|
|
86
|
+
columns: "Kolumner",
|
|
87
|
+
showHideColumns: "Visa eller d\xF6lj kolumner",
|
|
88
|
+
empty: "Inget h\xE4r \xE4nnu",
|
|
89
|
+
loading: "Laddar\u2026",
|
|
90
|
+
loadingRows: "Laddar rader",
|
|
91
|
+
range: function(a, b, total) {
|
|
92
|
+
return a + "\u2013" + b + " av " + nsv(total);
|
|
93
|
+
},
|
|
94
|
+
page: function(p, total) {
|
|
95
|
+
return "Sida " + p + " av " + total;
|
|
96
|
+
},
|
|
97
|
+
rangeOpen: function(a, b) {
|
|
98
|
+
return a + "\u2013" + b + " av m\xE5nga";
|
|
99
|
+
},
|
|
100
|
+
pageOpen: function(p) {
|
|
101
|
+
return "Sida " + p;
|
|
102
|
+
},
|
|
103
|
+
prevPage: "F\xF6reg\xE5ende sida",
|
|
104
|
+
nextPage: "N\xE4sta sida",
|
|
105
|
+
totals: "Summa",
|
|
106
|
+
rowCount: function(c) {
|
|
107
|
+
return nsv(c) + " rader";
|
|
108
|
+
},
|
|
109
|
+
actions: "\xC5tg\xE4rder",
|
|
110
|
+
optional: "valfritt",
|
|
111
|
+
timePlaceholder: "tt:mm",
|
|
112
|
+
timeInvalid: "Skriv en tid som 09:30",
|
|
113
|
+
timeOutOfRange: function(a, b) {
|
|
114
|
+
return "V\xE4lj en tid mellan " + a + " och " + b;
|
|
115
|
+
},
|
|
116
|
+
timeUnavailable: "Den tiden \xE4r inte ledig. V\xE4lj en annan.",
|
|
117
|
+
dropFiles: "Dra filer hit eller",
|
|
118
|
+
browse: "V\xE4lj filer",
|
|
119
|
+
browseOne: "V\xE4lj en fil",
|
|
120
|
+
remove: function(n) {
|
|
121
|
+
return "Ta bort " + n;
|
|
122
|
+
},
|
|
123
|
+
fileTooBig: function(max) {
|
|
124
|
+
return "St\xF6rre \xE4n " + max;
|
|
125
|
+
},
|
|
126
|
+
fileWrongType: "Den h\xE4r filtypen godtas inte",
|
|
127
|
+
tooManyFiles: function(n) {
|
|
128
|
+
return "H\xF6gst " + n + " filer";
|
|
129
|
+
},
|
|
130
|
+
colorScheme: "F\xE4rgl\xE4ge",
|
|
131
|
+
increase: "\xD6ka",
|
|
132
|
+
decrease: "Minska",
|
|
133
|
+
stepDone: "klart",
|
|
134
|
+
stepOf: function(i, total) {
|
|
135
|
+
return "Steg " + i + " av " + total;
|
|
136
|
+
},
|
|
137
|
+
schemeLight: "Ljust",
|
|
138
|
+
schemeDark: "M\xF6rkt",
|
|
139
|
+
schemeSystem: "System",
|
|
140
|
+
uploading: "Laddar upp\u2026",
|
|
141
|
+
images: "Bilder",
|
|
142
|
+
pagination: "Sidnumrering",
|
|
143
|
+
pageN: function(p) {
|
|
144
|
+
return "Sida " + p;
|
|
145
|
+
},
|
|
146
|
+
accepts: function(list, max) {
|
|
147
|
+
return [list, max && "h\xF6gst " + max + " per fil"].filter(Boolean).join(", ");
|
|
148
|
+
}
|
|
149
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
/** Every built-in label. Function entries build the text from their arguments. */
|
|
4
|
+
export interface AuraStrings {
|
|
5
|
+
close: string;
|
|
6
|
+
dismiss: string;
|
|
7
|
+
dismissToast: string;
|
|
8
|
+
showPassword: string;
|
|
9
|
+
filters: string;
|
|
10
|
+
search: string;
|
|
11
|
+
clearFilters: string;
|
|
12
|
+
results: (n: number) => string;
|
|
13
|
+
commandMenu: string;
|
|
14
|
+
commandPlaceholder: string;
|
|
15
|
+
commandHint: string;
|
|
16
|
+
errorSummary: (n: number) => string;
|
|
17
|
+
notifications: string;
|
|
18
|
+
mainNav: string;
|
|
19
|
+
breadcrumb: string;
|
|
20
|
+
navigation: string;
|
|
21
|
+
openNav: string;
|
|
22
|
+
collapseNav: string;
|
|
23
|
+
expandNav: string;
|
|
24
|
+
searching: string;
|
|
25
|
+
noMatches: string;
|
|
26
|
+
clear: (what?: string) => string;
|
|
27
|
+
keepTyping: (total: number) => string;
|
|
28
|
+
sortAsc: string;
|
|
29
|
+
sortDesc: string;
|
|
30
|
+
pin: string;
|
|
31
|
+
unpin: string;
|
|
32
|
+
moveLeft: string;
|
|
33
|
+
moveRight: string;
|
|
34
|
+
hideColumn: string;
|
|
35
|
+
resetColumns: string;
|
|
36
|
+
selectRows: string;
|
|
37
|
+
selectAllRows: string;
|
|
38
|
+
deselectAllRows: string;
|
|
39
|
+
selectAll: string;
|
|
40
|
+
selectRow: (k: React$1.ReactNode) => string;
|
|
41
|
+
selectedCount: (c: number) => string;
|
|
42
|
+
pinned: string;
|
|
43
|
+
columnOptions: (label?: string) => string;
|
|
44
|
+
column: (label?: string) => string;
|
|
45
|
+
columns: string;
|
|
46
|
+
showHideColumns: string;
|
|
47
|
+
empty: string;
|
|
48
|
+
loading: string;
|
|
49
|
+
loadingRows: string;
|
|
50
|
+
range: (a: number | string, b: number | string, total: number) => string;
|
|
51
|
+
page: (p: number, total: number) => string;
|
|
52
|
+
/** Server paging without totalRows (5.2): the range and page when the total isn't known. */
|
|
53
|
+
rangeOpen: (a: number | string, b: number | string) => string;
|
|
54
|
+
pageOpen: (p: number) => string;
|
|
55
|
+
prevPage: string;
|
|
56
|
+
nextPage: string;
|
|
57
|
+
rowCount: (c: number) => string;
|
|
58
|
+
totals: string;
|
|
59
|
+
actions: string;
|
|
60
|
+
optional: string;
|
|
61
|
+
timePlaceholder: string;
|
|
62
|
+
timeInvalid: string;
|
|
63
|
+
timeOutOfRange: (a: number | string, b: number | string) => string;
|
|
64
|
+
/** A time inside the range that isTimeDisabled refuses (5.2). */
|
|
65
|
+
timeUnavailable: string;
|
|
66
|
+
dropFiles: string;
|
|
67
|
+
browse: string;
|
|
68
|
+
browseOne: string;
|
|
69
|
+
remove: (n: number | string) => string;
|
|
70
|
+
fileTooBig: (max?: number | string) => string;
|
|
71
|
+
fileWrongType: string;
|
|
72
|
+
tooManyFiles: (n: number | string) => string;
|
|
73
|
+
colorScheme: string;
|
|
74
|
+
increase: string;
|
|
75
|
+
decrease: string;
|
|
76
|
+
stepDone: string;
|
|
77
|
+
stepOf: (i: number, total: number) => string;
|
|
78
|
+
schemeLight: string;
|
|
79
|
+
schemeDark: string;
|
|
80
|
+
schemeSystem: string;
|
|
81
|
+
uploading: string;
|
|
82
|
+
images: string;
|
|
83
|
+
pagination: string;
|
|
84
|
+
pageN: (p: number) => string;
|
|
85
|
+
accepts: (list?: string, max?: number | string) => string;
|
|
86
|
+
}
|
|
87
|
+
/** Built-in strings by locale. th and sv also ship as packs (`@jirawatpyk/aura-react/locales/th`, `/sv`, 5.9); in 6.0
|
|
88
|
+
* only en stays built in and a Thai or Swedish app passes its pack to AuraProvider `strings`. */
|
|
89
|
+
/** A whole language for AuraProvider `strings` (5.9): every built-in label, and assignable to the prop. */
|
|
90
|
+
export type AuraLocalePack = AuraStrings & {
|
|
91
|
+
[key: string]: string | ((...args: any[]) => string);
|
|
92
|
+
};
|
|
93
|
+
/** Swedish built-in labels: `<AuraProvider locale="sv" strings={sv}>`. */
|
|
94
|
+
export declare const sv: AuraLocalePack;
|
|
95
|
+
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
/** Every built-in label. Function entries build the text from their arguments. */
|
|
4
|
+
export interface AuraStrings {
|
|
5
|
+
close: string;
|
|
6
|
+
dismiss: string;
|
|
7
|
+
dismissToast: string;
|
|
8
|
+
showPassword: string;
|
|
9
|
+
filters: string;
|
|
10
|
+
search: string;
|
|
11
|
+
clearFilters: string;
|
|
12
|
+
results: (n: number) => string;
|
|
13
|
+
commandMenu: string;
|
|
14
|
+
commandPlaceholder: string;
|
|
15
|
+
commandHint: string;
|
|
16
|
+
errorSummary: (n: number) => string;
|
|
17
|
+
notifications: string;
|
|
18
|
+
mainNav: string;
|
|
19
|
+
breadcrumb: string;
|
|
20
|
+
navigation: string;
|
|
21
|
+
openNav: string;
|
|
22
|
+
collapseNav: string;
|
|
23
|
+
expandNav: string;
|
|
24
|
+
searching: string;
|
|
25
|
+
noMatches: string;
|
|
26
|
+
clear: (what?: string) => string;
|
|
27
|
+
keepTyping: (total: number) => string;
|
|
28
|
+
sortAsc: string;
|
|
29
|
+
sortDesc: string;
|
|
30
|
+
pin: string;
|
|
31
|
+
unpin: string;
|
|
32
|
+
moveLeft: string;
|
|
33
|
+
moveRight: string;
|
|
34
|
+
hideColumn: string;
|
|
35
|
+
resetColumns: string;
|
|
36
|
+
selectRows: string;
|
|
37
|
+
selectAllRows: string;
|
|
38
|
+
deselectAllRows: string;
|
|
39
|
+
selectAll: string;
|
|
40
|
+
selectRow: (k: React$1.ReactNode) => string;
|
|
41
|
+
selectedCount: (c: number) => string;
|
|
42
|
+
pinned: string;
|
|
43
|
+
columnOptions: (label?: string) => string;
|
|
44
|
+
column: (label?: string) => string;
|
|
45
|
+
columns: string;
|
|
46
|
+
showHideColumns: string;
|
|
47
|
+
empty: string;
|
|
48
|
+
loading: string;
|
|
49
|
+
loadingRows: string;
|
|
50
|
+
range: (a: number | string, b: number | string, total: number) => string;
|
|
51
|
+
page: (p: number, total: number) => string;
|
|
52
|
+
/** Server paging without totalRows (5.2): the range and page when the total isn't known. */
|
|
53
|
+
rangeOpen: (a: number | string, b: number | string) => string;
|
|
54
|
+
pageOpen: (p: number) => string;
|
|
55
|
+
prevPage: string;
|
|
56
|
+
nextPage: string;
|
|
57
|
+
rowCount: (c: number) => string;
|
|
58
|
+
totals: string;
|
|
59
|
+
actions: string;
|
|
60
|
+
optional: string;
|
|
61
|
+
timePlaceholder: string;
|
|
62
|
+
timeInvalid: string;
|
|
63
|
+
timeOutOfRange: (a: number | string, b: number | string) => string;
|
|
64
|
+
/** A time inside the range that isTimeDisabled refuses (5.2). */
|
|
65
|
+
timeUnavailable: string;
|
|
66
|
+
dropFiles: string;
|
|
67
|
+
browse: string;
|
|
68
|
+
browseOne: string;
|
|
69
|
+
remove: (n: number | string) => string;
|
|
70
|
+
fileTooBig: (max?: number | string) => string;
|
|
71
|
+
fileWrongType: string;
|
|
72
|
+
tooManyFiles: (n: number | string) => string;
|
|
73
|
+
colorScheme: string;
|
|
74
|
+
increase: string;
|
|
75
|
+
decrease: string;
|
|
76
|
+
stepDone: string;
|
|
77
|
+
stepOf: (i: number, total: number) => string;
|
|
78
|
+
schemeLight: string;
|
|
79
|
+
schemeDark: string;
|
|
80
|
+
schemeSystem: string;
|
|
81
|
+
uploading: string;
|
|
82
|
+
images: string;
|
|
83
|
+
pagination: string;
|
|
84
|
+
pageN: (p: number) => string;
|
|
85
|
+
accepts: (list?: string, max?: number | string) => string;
|
|
86
|
+
}
|
|
87
|
+
/** Built-in strings by locale. th and sv also ship as packs (`@jirawatpyk/aura-react/locales/th`, `/sv`, 5.9); in 6.0
|
|
88
|
+
* only en stays built in and a Thai or Swedish app passes its pack to AuraProvider `strings`. */
|
|
89
|
+
/** A whole language for AuraProvider `strings` (5.9): every built-in label, and assignable to the prop. */
|
|
90
|
+
export type AuraLocalePack = AuraStrings & {
|
|
91
|
+
[key: string]: string | ((...args: any[]) => string);
|
|
92
|
+
};
|
|
93
|
+
/** Swedish built-in labels: `<AuraProvider locale="sv" strings={sv}>`. */
|
|
94
|
+
export declare const sv: AuraLocalePack;
|
|
95
|
+
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/strings.th.ts
|
|
21
|
+
var strings_th_exports = {};
|
|
22
|
+
__export(strings_th_exports, {
|
|
23
|
+
th: () => th
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(strings_th_exports);
|
|
26
|
+
var n = function(x) {
|
|
27
|
+
return Number(x).toLocaleString("en");
|
|
28
|
+
};
|
|
29
|
+
var th = {
|
|
30
|
+
close: "\u0E1B\u0E34\u0E14",
|
|
31
|
+
dismiss: "\u0E1B\u0E34\u0E14",
|
|
32
|
+
dismissToast: "\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
33
|
+
showPassword: "\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",
|
|
34
|
+
filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
35
|
+
search: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
36
|
+
clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
37
|
+
results: function(n2) {
|
|
38
|
+
return n2.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
39
|
+
},
|
|
40
|
+
commandMenu: "\u0E40\u0E21\u0E19\u0E39\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07",
|
|
41
|
+
commandPlaceholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
42
|
+
commandHint: "\u2191\u2193 \u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19 \xB7 Enter \u0E40\u0E1B\u0E34\u0E14 \xB7 Esc \u0E1B\u0E34\u0E14",
|
|
43
|
+
errorSummary: function(n2) {
|
|
44
|
+
return "\u0E41\u0E01\u0E49\u0E44\u0E02 " + n2 + " \u0E0A\u0E48\u0E2D\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E44\u0E1B\u0E15\u0E48\u0E2D";
|
|
45
|
+
},
|
|
46
|
+
notifications: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
47
|
+
mainNav: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01",
|
|
48
|
+
breadcrumb: "\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07",
|
|
49
|
+
navigation: "\u0E40\u0E21\u0E19\u0E39",
|
|
50
|
+
openNav: "\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E21\u0E19\u0E39",
|
|
51
|
+
collapseNav: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
52
|
+
expandNav: "\u0E02\u0E22\u0E32\u0E22\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
53
|
+
searching: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
54
|
+
noMatches: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
|
|
55
|
+
clear: function(what) {
|
|
56
|
+
return "\u0E25\u0E49\u0E32\u0E07" + (what || "\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01");
|
|
57
|
+
},
|
|
58
|
+
keepTyping: function(total) {
|
|
59
|
+
return "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E23\u0E2D\u0E07\u0E08\u0E32\u0E01 " + n(total) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
60
|
+
},
|
|
61
|
+
sortAsc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
|
|
62
|
+
sortDesc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
|
|
63
|
+
pin: "\u0E15\u0E23\u0E36\u0E07\u0E44\u0E27\u0E49\u0E0B\u0E49\u0E32\u0E22",
|
|
64
|
+
unpin: "\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
65
|
+
moveLeft: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E0B\u0E49\u0E32\u0E22",
|
|
66
|
+
moveRight: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E02\u0E27\u0E32",
|
|
67
|
+
hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
68
|
+
resetColumns: "\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
69
|
+
selectRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E16\u0E27",
|
|
70
|
+
selectAllRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
71
|
+
deselectAllRows: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
72
|
+
selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
73
|
+
selectRow: function(k) {
|
|
74
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + k;
|
|
75
|
+
},
|
|
76
|
+
selectedCount: function(c) {
|
|
77
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + n(c) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
78
|
+
},
|
|
79
|
+
pinned: "\u0E15\u0E23\u0E36\u0E07\u0E2D\u0E22\u0E39\u0E48",
|
|
80
|
+
columnOptions: function(label) {
|
|
81
|
+
return "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label;
|
|
82
|
+
},
|
|
83
|
+
column: function(label) {
|
|
84
|
+
return label ? "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label : "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C";
|
|
85
|
+
},
|
|
86
|
+
columns: "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
87
|
+
showHideColumns: "\u0E41\u0E2A\u0E14\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
88
|
+
empty: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
89
|
+
loading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
90
|
+
loadingRows: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
91
|
+
range: function(a, b, total) {
|
|
92
|
+
return a + "\u2013" + b + " \u0E08\u0E32\u0E01 " + n(total);
|
|
93
|
+
},
|
|
94
|
+
page: function(p, total) {
|
|
95
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p + " / " + total;
|
|
96
|
+
},
|
|
97
|
+
rangeOpen: function(a, b) {
|
|
98
|
+
return a + "\u2013" + b + " \u0E08\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
99
|
+
},
|
|
100
|
+
pageOpen: function(p) {
|
|
101
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
102
|
+
},
|
|
103
|
+
prevPage: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
|
104
|
+
nextPage: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
|
105
|
+
totals: "\u0E23\u0E27\u0E21",
|
|
106
|
+
rowCount: function(c) {
|
|
107
|
+
return n(c) + " \u0E41\u0E16\u0E27";
|
|
108
|
+
},
|
|
109
|
+
actions: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23",
|
|
110
|
+
optional: "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A",
|
|
111
|
+
timePlaceholder: "\u0E0A\u0E0A:\u0E19\u0E19",
|
|
112
|
+
timeInvalid: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A 09:30",
|
|
113
|
+
timeOutOfRange: function(a, b) {
|
|
114
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 " + a + "\u2013" + b + " \u0E19.";
|
|
115
|
+
},
|
|
116
|
+
timeUnavailable: "\u0E40\u0E27\u0E25\u0E32\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E27\u0E48\u0E32\u0E07 \u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E2D\u0E37\u0E48\u0E19",
|
|
117
|
+
dropFiles: "\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E27\u0E32\u0E07 \u0E2B\u0E23\u0E37\u0E2D",
|
|
118
|
+
browse: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
119
|
+
browseOne: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
120
|
+
remove: function(n2) {
|
|
121
|
+
return "\u0E25\u0E1A " + n2;
|
|
122
|
+
},
|
|
123
|
+
fileTooBig: function(max) {
|
|
124
|
+
return "\u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19 " + max;
|
|
125
|
+
},
|
|
126
|
+
fileWrongType: "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E0A\u0E19\u0E34\u0E14\u0E19\u0E35\u0E49",
|
|
127
|
+
tooManyFiles: function(n2) {
|
|
128
|
+
return "\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + n2 + " \u0E44\u0E1F\u0E25\u0E4C";
|
|
129
|
+
},
|
|
130
|
+
colorScheme: "\u0E42\u0E2B\u0E21\u0E14\u0E2A\u0E35",
|
|
131
|
+
increase: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
|
|
132
|
+
decrease: "\u0E25\u0E14",
|
|
133
|
+
stepDone: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
134
|
+
stepOf: function(i, total) {
|
|
135
|
+
return "\u0E02\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48 " + i + " \u0E08\u0E32\u0E01 " + total;
|
|
136
|
+
},
|
|
137
|
+
schemeLight: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
|
|
138
|
+
schemeDark: "\u0E21\u0E37\u0E14",
|
|
139
|
+
schemeSystem: "\u0E15\u0E32\u0E21\u0E23\u0E30\u0E1A\u0E1A",
|
|
140
|
+
uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
141
|
+
images: "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",
|
|
142
|
+
pagination: "\u0E40\u0E25\u0E02\u0E2B\u0E19\u0E49\u0E32",
|
|
143
|
+
pageN: function(p) {
|
|
144
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
145
|
+
},
|
|
146
|
+
accepts: function(list, max) {
|
|
147
|
+
return [list, max && "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + max + " \u0E15\u0E48\u0E2D\u0E44\u0E1F\u0E25\u0E4C"].filter(Boolean).join(" \xB7 ");
|
|
148
|
+
}
|
|
149
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
/** Every built-in label. Function entries build the text from their arguments. */
|
|
4
|
+
export interface AuraStrings {
|
|
5
|
+
close: string;
|
|
6
|
+
dismiss: string;
|
|
7
|
+
dismissToast: string;
|
|
8
|
+
showPassword: string;
|
|
9
|
+
filters: string;
|
|
10
|
+
search: string;
|
|
11
|
+
clearFilters: string;
|
|
12
|
+
results: (n: number) => string;
|
|
13
|
+
commandMenu: string;
|
|
14
|
+
commandPlaceholder: string;
|
|
15
|
+
commandHint: string;
|
|
16
|
+
errorSummary: (n: number) => string;
|
|
17
|
+
notifications: string;
|
|
18
|
+
mainNav: string;
|
|
19
|
+
breadcrumb: string;
|
|
20
|
+
navigation: string;
|
|
21
|
+
openNav: string;
|
|
22
|
+
collapseNav: string;
|
|
23
|
+
expandNav: string;
|
|
24
|
+
searching: string;
|
|
25
|
+
noMatches: string;
|
|
26
|
+
clear: (what?: string) => string;
|
|
27
|
+
keepTyping: (total: number) => string;
|
|
28
|
+
sortAsc: string;
|
|
29
|
+
sortDesc: string;
|
|
30
|
+
pin: string;
|
|
31
|
+
unpin: string;
|
|
32
|
+
moveLeft: string;
|
|
33
|
+
moveRight: string;
|
|
34
|
+
hideColumn: string;
|
|
35
|
+
resetColumns: string;
|
|
36
|
+
selectRows: string;
|
|
37
|
+
selectAllRows: string;
|
|
38
|
+
deselectAllRows: string;
|
|
39
|
+
selectAll: string;
|
|
40
|
+
selectRow: (k: React$1.ReactNode) => string;
|
|
41
|
+
selectedCount: (c: number) => string;
|
|
42
|
+
pinned: string;
|
|
43
|
+
columnOptions: (label?: string) => string;
|
|
44
|
+
column: (label?: string) => string;
|
|
45
|
+
columns: string;
|
|
46
|
+
showHideColumns: string;
|
|
47
|
+
empty: string;
|
|
48
|
+
loading: string;
|
|
49
|
+
loadingRows: string;
|
|
50
|
+
range: (a: number | string, b: number | string, total: number) => string;
|
|
51
|
+
page: (p: number, total: number) => string;
|
|
52
|
+
/** Server paging without totalRows (5.2): the range and page when the total isn't known. */
|
|
53
|
+
rangeOpen: (a: number | string, b: number | string) => string;
|
|
54
|
+
pageOpen: (p: number) => string;
|
|
55
|
+
prevPage: string;
|
|
56
|
+
nextPage: string;
|
|
57
|
+
rowCount: (c: number) => string;
|
|
58
|
+
totals: string;
|
|
59
|
+
actions: string;
|
|
60
|
+
optional: string;
|
|
61
|
+
timePlaceholder: string;
|
|
62
|
+
timeInvalid: string;
|
|
63
|
+
timeOutOfRange: (a: number | string, b: number | string) => string;
|
|
64
|
+
/** A time inside the range that isTimeDisabled refuses (5.2). */
|
|
65
|
+
timeUnavailable: string;
|
|
66
|
+
dropFiles: string;
|
|
67
|
+
browse: string;
|
|
68
|
+
browseOne: string;
|
|
69
|
+
remove: (n: number | string) => string;
|
|
70
|
+
fileTooBig: (max?: number | string) => string;
|
|
71
|
+
fileWrongType: string;
|
|
72
|
+
tooManyFiles: (n: number | string) => string;
|
|
73
|
+
colorScheme: string;
|
|
74
|
+
increase: string;
|
|
75
|
+
decrease: string;
|
|
76
|
+
stepDone: string;
|
|
77
|
+
stepOf: (i: number, total: number) => string;
|
|
78
|
+
schemeLight: string;
|
|
79
|
+
schemeDark: string;
|
|
80
|
+
schemeSystem: string;
|
|
81
|
+
uploading: string;
|
|
82
|
+
images: string;
|
|
83
|
+
pagination: string;
|
|
84
|
+
pageN: (p: number) => string;
|
|
85
|
+
accepts: (list?: string, max?: number | string) => string;
|
|
86
|
+
}
|
|
87
|
+
/** Built-in strings by locale. th and sv also ship as packs (`@jirawatpyk/aura-react/locales/th`, `/sv`, 5.9); in 6.0
|
|
88
|
+
* only en stays built in and a Thai or Swedish app passes its pack to AuraProvider `strings`. */
|
|
89
|
+
/** A whole language for AuraProvider `strings` (5.9): every built-in label, and assignable to the prop. */
|
|
90
|
+
export type AuraLocalePack = AuraStrings & {
|
|
91
|
+
[key: string]: string | ((...args: any[]) => string);
|
|
92
|
+
};
|
|
93
|
+
/** Thai built-in labels: `<AuraProvider locale="th" strings={th}>`. */
|
|
94
|
+
export declare const th: AuraLocalePack;
|
|
95
|
+
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
/** Every built-in label. Function entries build the text from their arguments. */
|
|
4
|
+
export interface AuraStrings {
|
|
5
|
+
close: string;
|
|
6
|
+
dismiss: string;
|
|
7
|
+
dismissToast: string;
|
|
8
|
+
showPassword: string;
|
|
9
|
+
filters: string;
|
|
10
|
+
search: string;
|
|
11
|
+
clearFilters: string;
|
|
12
|
+
results: (n: number) => string;
|
|
13
|
+
commandMenu: string;
|
|
14
|
+
commandPlaceholder: string;
|
|
15
|
+
commandHint: string;
|
|
16
|
+
errorSummary: (n: number) => string;
|
|
17
|
+
notifications: string;
|
|
18
|
+
mainNav: string;
|
|
19
|
+
breadcrumb: string;
|
|
20
|
+
navigation: string;
|
|
21
|
+
openNav: string;
|
|
22
|
+
collapseNav: string;
|
|
23
|
+
expandNav: string;
|
|
24
|
+
searching: string;
|
|
25
|
+
noMatches: string;
|
|
26
|
+
clear: (what?: string) => string;
|
|
27
|
+
keepTyping: (total: number) => string;
|
|
28
|
+
sortAsc: string;
|
|
29
|
+
sortDesc: string;
|
|
30
|
+
pin: string;
|
|
31
|
+
unpin: string;
|
|
32
|
+
moveLeft: string;
|
|
33
|
+
moveRight: string;
|
|
34
|
+
hideColumn: string;
|
|
35
|
+
resetColumns: string;
|
|
36
|
+
selectRows: string;
|
|
37
|
+
selectAllRows: string;
|
|
38
|
+
deselectAllRows: string;
|
|
39
|
+
selectAll: string;
|
|
40
|
+
selectRow: (k: React$1.ReactNode) => string;
|
|
41
|
+
selectedCount: (c: number) => string;
|
|
42
|
+
pinned: string;
|
|
43
|
+
columnOptions: (label?: string) => string;
|
|
44
|
+
column: (label?: string) => string;
|
|
45
|
+
columns: string;
|
|
46
|
+
showHideColumns: string;
|
|
47
|
+
empty: string;
|
|
48
|
+
loading: string;
|
|
49
|
+
loadingRows: string;
|
|
50
|
+
range: (a: number | string, b: number | string, total: number) => string;
|
|
51
|
+
page: (p: number, total: number) => string;
|
|
52
|
+
/** Server paging without totalRows (5.2): the range and page when the total isn't known. */
|
|
53
|
+
rangeOpen: (a: number | string, b: number | string) => string;
|
|
54
|
+
pageOpen: (p: number) => string;
|
|
55
|
+
prevPage: string;
|
|
56
|
+
nextPage: string;
|
|
57
|
+
rowCount: (c: number) => string;
|
|
58
|
+
totals: string;
|
|
59
|
+
actions: string;
|
|
60
|
+
optional: string;
|
|
61
|
+
timePlaceholder: string;
|
|
62
|
+
timeInvalid: string;
|
|
63
|
+
timeOutOfRange: (a: number | string, b: number | string) => string;
|
|
64
|
+
/** A time inside the range that isTimeDisabled refuses (5.2). */
|
|
65
|
+
timeUnavailable: string;
|
|
66
|
+
dropFiles: string;
|
|
67
|
+
browse: string;
|
|
68
|
+
browseOne: string;
|
|
69
|
+
remove: (n: number | string) => string;
|
|
70
|
+
fileTooBig: (max?: number | string) => string;
|
|
71
|
+
fileWrongType: string;
|
|
72
|
+
tooManyFiles: (n: number | string) => string;
|
|
73
|
+
colorScheme: string;
|
|
74
|
+
increase: string;
|
|
75
|
+
decrease: string;
|
|
76
|
+
stepDone: string;
|
|
77
|
+
stepOf: (i: number, total: number) => string;
|
|
78
|
+
schemeLight: string;
|
|
79
|
+
schemeDark: string;
|
|
80
|
+
schemeSystem: string;
|
|
81
|
+
uploading: string;
|
|
82
|
+
images: string;
|
|
83
|
+
pagination: string;
|
|
84
|
+
pageN: (p: number) => string;
|
|
85
|
+
accepts: (list?: string, max?: number | string) => string;
|
|
86
|
+
}
|
|
87
|
+
/** Built-in strings by locale. th and sv also ship as packs (`@jirawatpyk/aura-react/locales/th`, `/sv`, 5.9); in 6.0
|
|
88
|
+
* only en stays built in and a Thai or Swedish app passes its pack to AuraProvider `strings`. */
|
|
89
|
+
/** A whole language for AuraProvider `strings` (5.9): every built-in label, and assignable to the prop. */
|
|
90
|
+
export type AuraLocalePack = AuraStrings & {
|
|
91
|
+
[key: string]: string | ((...args: any[]) => string);
|
|
92
|
+
};
|
|
93
|
+
/** Thai built-in labels: `<AuraProvider locale="th" strings={th}>`. */
|
|
94
|
+
export declare const th: AuraLocalePack;
|
|
95
|
+
|
|
96
|
+
export {};
|