@jirawatpyk/aura-react 5.8.0 → 5.10.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.
Files changed (64) hide show
  1. package/README.md +36 -0
  2. package/dist/aura.bundle.js +1528 -1098
  3. package/dist/cjs/index.cjs +1528 -1098
  4. package/dist/esm/Accordion.js +2 -1
  5. package/dist/esm/Alert.js +2 -1
  6. package/dist/esm/AppShell.js +2 -1
  7. package/dist/esm/Breadcrumb.js +2 -1
  8. package/dist/esm/Button.js +2 -1
  9. package/dist/esm/Checkbox.js +2 -1
  10. package/dist/esm/Combobox.js +7 -6
  11. package/dist/esm/Command.js +3 -2
  12. package/dist/esm/DataTable.js +35 -13
  13. package/dist/esm/DatePicker.js +8 -7
  14. package/dist/esm/Dialog.js +38 -5
  15. package/dist/esm/DropdownMenu.js +1 -1
  16. package/dist/esm/Field.js +2 -1
  17. package/dist/esm/FileUpload.js +4 -3
  18. package/dist/esm/FilterBar.js +3 -2
  19. package/dist/esm/FormErrorSummary.js +2 -1
  20. package/dist/esm/Icon.js +50 -31
  21. package/dist/esm/Menu.js +37 -12
  22. package/dist/esm/NumberField.js +3 -2
  23. package/dist/esm/Pagination.js +3 -2
  24. package/dist/esm/PasswordField.js +2 -1
  25. package/dist/esm/Popover.js +2 -1
  26. package/dist/esm/RadioGroup.js +2 -1
  27. package/dist/esm/Select.js +4 -3
  28. package/dist/esm/SideNav.js +3 -2
  29. package/dist/esm/Stat.js +8 -1
  30. package/dist/esm/Stepper.js +2 -1
  31. package/dist/esm/Tabs.js +89 -13
  32. package/dist/esm/Tag.js +3 -2
  33. package/dist/esm/TimePicker.js +5 -4
  34. package/dist/esm/Toaster.js +3 -2
  35. package/dist/esm/classes.js +14 -1
  36. package/dist/esm/colorScheme.js +8 -1
  37. package/dist/esm/display.js +22 -12
  38. package/dist/esm/iconSvg.js +53 -0
  39. package/dist/esm/icons.js +531 -0
  40. package/dist/esm/index.js +2 -1
  41. package/dist/esm/internal.js +1 -14
  42. package/dist/esm/locale.js +7 -0
  43. package/dist/esm/strings.js +4 -245
  44. package/dist/esm/strings.sv.js +127 -0
  45. package/dist/esm/strings.th.js +127 -0
  46. package/dist/icons/index.cjs +613 -0
  47. package/dist/icons/index.d.cts +106 -0
  48. package/dist/icons/index.d.ts +106 -0
  49. package/dist/index.d.cts +52 -2
  50. package/dist/index.d.ts +52 -2
  51. package/dist/locales/sv.cjs +149 -0
  52. package/dist/locales/sv.d.cts +96 -0
  53. package/dist/locales/sv.d.ts +96 -0
  54. package/dist/locales/th.cjs +149 -0
  55. package/dist/locales/th.d.cts +96 -0
  56. package/dist/locales/th.d.ts +96 -0
  57. package/dist/server/index.cjs +445 -314
  58. package/dist/server/index.d.cts +24 -0
  59. package/dist/server/index.d.ts +24 -0
  60. package/dist/server/index.js +445 -314
  61. package/dist/styles.css +22 -1
  62. package/dist/styles.layer.css +22 -1
  63. package/package.json +35 -3
  64. package/scripts/aura-icons-codemod.mjs +345 -0
@@ -48,6 +48,7 @@ __export(server_exports, {
48
48
  fromISO: () => fromISO,
49
49
  parseDate: () => parseDate,
50
50
  parseTime: () => parseTime,
51
+ registerIcons: () => registerIcons,
51
52
  statusTone: () => toneFor,
52
53
  toISO: () => toISO,
53
54
  todayIn: () => todayIn
@@ -56,8 +57,8 @@ module.exports = __toCommonJS(server_exports);
56
57
 
57
58
  // src/dates.ts
58
59
  var ERA = /^พ\.ศ\.\s?|\s?(BE|พ\.ศ\.)$/g;
59
- var pad = function(n2) {
60
- return (n2 < 10 ? "0" : "") + n2;
60
+ var pad = function(n3) {
61
+ return (n3 < 10 ? "0" : "") + n3;
61
62
  };
62
63
  function toISO(d) {
63
64
  if (!d) return null;
@@ -109,9 +110,9 @@ function monthIndex(word) {
109
110
  ["th-TH", "en-GB", "sv-SE"].forEach(function(tag) {
110
111
  ["short", "long"].forEach(function(w) {
111
112
  for (let i = 0; i < 12; i++) {
112
- const n2 = new Intl.DateTimeFormat(tag, { month: w }).format(new Date(2020, i, 1)).toLowerCase().replace(/\.$/, "");
113
- MONTHS[n2] = i;
114
- if (/^[a-zåäö]/.test(n2)) MONTHS[n2.slice(0, 3)] = i;
113
+ const n3 = new Intl.DateTimeFormat(tag, { month: w }).format(new Date(2020, i, 1)).toLowerCase().replace(/\.$/, "");
114
+ MONTHS[n3] = i;
115
+ if (/^[a-zåäö]/.test(n3)) MONTHS[n3.slice(0, 3)] = i;
115
116
  }
116
117
  });
117
118
  });
@@ -163,18 +164,18 @@ function todayIn(timeZone) {
163
164
  }
164
165
 
165
166
  // src/text.ts
166
- function formatBytes(n2) {
167
- if (n2 == null) return "";
168
- if (n2 < 1024) return n2 + " B";
167
+ function formatBytes(n3) {
168
+ if (n3 == null) return "";
169
+ if (n3 < 1024) return n3 + " B";
169
170
  let u = ["KB", "MB", "GB"], i = -1;
170
171
  do {
171
- n2 /= 1024;
172
+ n3 /= 1024;
172
173
  i++;
173
- } while (n2 >= 1024 && i < u.length - 1);
174
- return (n2 >= 10 || Math.round(n2) === n2 ? Math.round(n2) : n2.toFixed(1)) + " " + u[i];
174
+ } while (n3 >= 1024 && i < u.length - 1);
175
+ return (n3 >= 10 || Math.round(n3) === n3 ? Math.round(n3) : n3.toFixed(1)) + " " + u[i];
175
176
  }
176
- function pad2(n2) {
177
- return (n2 < 10 ? "0" : "") + n2;
177
+ function pad2(n3) {
178
+ return (n3 < 10 ? "0" : "") + n3;
178
179
  }
179
180
  function parseTime(text) {
180
181
  let s = String(text || "").trim().toLowerCase().replace(/\s*(น\.?|นาฬิกา)$/, "").trim();
@@ -203,13 +204,262 @@ function toneFor(status) {
203
204
  return "neutral";
204
205
  }
205
206
 
206
- // src/strings.ts
207
+ // src/strings.th.ts
207
208
  var n = function(x) {
208
209
  return Number(x).toLocaleString("en");
209
210
  };
211
+ var th = {
212
+ close: "\u0E1B\u0E34\u0E14",
213
+ dismiss: "\u0E1B\u0E34\u0E14",
214
+ dismissToast: "\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
215
+ showPassword: "\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",
216
+ filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
217
+ search: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
218
+ clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
219
+ results: function(n3) {
220
+ return n3.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
221
+ },
222
+ commandMenu: "\u0E40\u0E21\u0E19\u0E39\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07",
223
+ commandPlaceholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
224
+ commandHint: "\u2191\u2193 \u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19 \xB7 Enter \u0E40\u0E1B\u0E34\u0E14 \xB7 Esc \u0E1B\u0E34\u0E14",
225
+ errorSummary: function(n3) {
226
+ return "\u0E41\u0E01\u0E49\u0E44\u0E02 " + n3 + " \u0E0A\u0E48\u0E2D\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E44\u0E1B\u0E15\u0E48\u0E2D";
227
+ },
228
+ notifications: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
229
+ mainNav: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01",
230
+ breadcrumb: "\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07",
231
+ navigation: "\u0E40\u0E21\u0E19\u0E39",
232
+ openNav: "\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E21\u0E19\u0E39",
233
+ collapseNav: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
234
+ expandNav: "\u0E02\u0E22\u0E32\u0E22\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
235
+ searching: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
236
+ noMatches: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
237
+ clear: function(what) {
238
+ return "\u0E25\u0E49\u0E32\u0E07" + (what || "\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01");
239
+ },
240
+ keepTyping: function(total) {
241
+ 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";
242
+ },
243
+ sortAsc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
244
+ sortDesc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
245
+ pin: "\u0E15\u0E23\u0E36\u0E07\u0E44\u0E27\u0E49\u0E0B\u0E49\u0E32\u0E22",
246
+ unpin: "\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
247
+ moveLeft: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E0B\u0E49\u0E32\u0E22",
248
+ moveRight: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E02\u0E27\u0E32",
249
+ hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
250
+ resetColumns: "\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
251
+ selectRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E16\u0E27",
252
+ selectAllRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
253
+ deselectAllRows: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
254
+ selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
255
+ selectRow: function(k) {
256
+ return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + k;
257
+ },
258
+ selectedCount: function(c) {
259
+ return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + n(c) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
260
+ },
261
+ pinned: "\u0E15\u0E23\u0E36\u0E07\u0E2D\u0E22\u0E39\u0E48",
262
+ columnOptions: function(label) {
263
+ return "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label;
264
+ },
265
+ column: function(label) {
266
+ return label ? "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label : "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C";
267
+ },
268
+ columns: "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
269
+ showHideColumns: "\u0E41\u0E2A\u0E14\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
270
+ empty: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
271
+ loading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u2026",
272
+ loadingRows: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
273
+ range: function(a, b, total) {
274
+ return a + "\u2013" + b + " \u0E08\u0E32\u0E01 " + n(total);
275
+ },
276
+ page: function(p, total) {
277
+ return "\u0E2B\u0E19\u0E49\u0E32 " + p + " / " + total;
278
+ },
279
+ rangeOpen: function(a, b) {
280
+ return a + "\u2013" + b + " \u0E08\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
281
+ },
282
+ pageOpen: function(p) {
283
+ return "\u0E2B\u0E19\u0E49\u0E32 " + p;
284
+ },
285
+ prevPage: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
286
+ nextPage: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
287
+ totals: "\u0E23\u0E27\u0E21",
288
+ rowCount: function(c) {
289
+ return n(c) + " \u0E41\u0E16\u0E27";
290
+ },
291
+ actions: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23",
292
+ optional: "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A",
293
+ timePlaceholder: "\u0E0A\u0E0A:\u0E19\u0E19",
294
+ timeInvalid: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A 09:30",
295
+ timeOutOfRange: function(a, b) {
296
+ return "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 " + a + "\u2013" + b + " \u0E19.";
297
+ },
298
+ 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",
299
+ dropFiles: "\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E27\u0E32\u0E07 \u0E2B\u0E23\u0E37\u0E2D",
300
+ browse: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
301
+ browseOne: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
302
+ remove: function(n3) {
303
+ return "\u0E25\u0E1A " + n3;
304
+ },
305
+ fileTooBig: function(max) {
306
+ return "\u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19 " + max;
307
+ },
308
+ fileWrongType: "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E0A\u0E19\u0E34\u0E14\u0E19\u0E35\u0E49",
309
+ tooManyFiles: function(n3) {
310
+ return "\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + n3 + " \u0E44\u0E1F\u0E25\u0E4C";
311
+ },
312
+ colorScheme: "\u0E42\u0E2B\u0E21\u0E14\u0E2A\u0E35",
313
+ increase: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
314
+ decrease: "\u0E25\u0E14",
315
+ stepDone: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
316
+ stepOf: function(i, total) {
317
+ return "\u0E02\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48 " + i + " \u0E08\u0E32\u0E01 " + total;
318
+ },
319
+ schemeLight: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
320
+ schemeDark: "\u0E21\u0E37\u0E14",
321
+ schemeSystem: "\u0E15\u0E32\u0E21\u0E23\u0E30\u0E1A\u0E1A",
322
+ uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u2026",
323
+ images: "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",
324
+ pagination: "\u0E40\u0E25\u0E02\u0E2B\u0E19\u0E49\u0E32",
325
+ pageN: function(p) {
326
+ return "\u0E2B\u0E19\u0E49\u0E32 " + p;
327
+ },
328
+ accepts: function(list, max) {
329
+ return [list, max && "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + max + " \u0E15\u0E48\u0E2D\u0E44\u0E1F\u0E25\u0E4C"].filter(Boolean).join(" \xB7 ");
330
+ }
331
+ };
332
+
333
+ // src/strings.sv.ts
210
334
  var nsv = function(x) {
211
335
  return Number(x).toLocaleString("sv-SE");
212
336
  };
337
+ var sv = {
338
+ close: "St\xE4ng",
339
+ dismiss: "St\xE4ng",
340
+ dismissToast: "St\xE4ng aviseringen",
341
+ showPassword: "Visa l\xF6senord",
342
+ filters: "Filter",
343
+ search: "S\xF6k",
344
+ clearFilters: "Rensa alla",
345
+ results: function(n3) {
346
+ return n3 === 1 ? "1 tr\xE4ff" : n3.toLocaleString("sv-SE") + " tr\xE4ffar";
347
+ },
348
+ commandMenu: "Kommandomeny",
349
+ commandPlaceholder: "Skriv ett kommando eller s\xF6k\u2026",
350
+ commandHint: "\u2191\u2193 flytta \xB7 Enter \xF6ppna \xB7 Esc st\xE4ng",
351
+ errorSummary: function(n3) {
352
+ return n3 === 1 ? "R\xE4tta 1 f\xE4lt f\xF6r att forts\xE4tta" : "R\xE4tta " + n3 + " f\xE4lt f\xF6r att forts\xE4tta";
353
+ },
354
+ notifications: "Aviseringar",
355
+ mainNav: "Huvudmeny",
356
+ breadcrumb: "Br\xF6dsmulor",
357
+ navigation: "Navigering",
358
+ openNav: "\xD6ppna menyn",
359
+ collapseNav: "F\xE4ll ihop sidof\xE4ltet",
360
+ expandNav: "F\xE4ll ut sidof\xE4ltet",
361
+ searching: "S\xF6ker\u2026",
362
+ noMatches: "Inga tr\xE4ffar",
363
+ clear: function(what) {
364
+ return "Rensa " + (what || "urvalet");
365
+ },
366
+ keepTyping: function(total) {
367
+ return "Skriv mer f\xF6r att begr\xE4nsa " + nsv(total) + " alternativ";
368
+ },
369
+ sortAsc: "Sortera stigande",
370
+ sortDesc: "Sortera fallande",
371
+ pin: "F\xE4st till v\xE4nster",
372
+ unpin: "Lossa kolumnen",
373
+ moveLeft: "Flytta v\xE4nster",
374
+ moveRight: "Flytta h\xF6ger",
375
+ hideColumn: "D\xF6lj kolumnen",
376
+ resetColumns: "\xC5terst\xE4ll kolumner",
377
+ selectRows: "V\xE4lj rader",
378
+ selectAllRows: "V\xE4lj alla rader",
379
+ deselectAllRows: "Avmarkera alla rader",
380
+ selectAll: "V\xE4lj alla",
381
+ selectRow: function(k) {
382
+ return "V\xE4lj " + k;
383
+ },
384
+ selectedCount: function(c) {
385
+ return nsv(c) + " valda";
386
+ },
387
+ pinned: "F\xE4st",
388
+ columnOptions: function(label) {
389
+ return "Alternativ f\xF6r kolumnen " + label;
390
+ },
391
+ column: function(label) {
392
+ return label ? "Kolumnen " + label : "Kolumn";
393
+ },
394
+ columns: "Kolumner",
395
+ showHideColumns: "Visa eller d\xF6lj kolumner",
396
+ empty: "Inget h\xE4r \xE4nnu",
397
+ loading: "Laddar\u2026",
398
+ loadingRows: "Laddar rader",
399
+ range: function(a, b, total) {
400
+ return a + "\u2013" + b + " av " + nsv(total);
401
+ },
402
+ page: function(p, total) {
403
+ return "Sida " + p + " av " + total;
404
+ },
405
+ rangeOpen: function(a, b) {
406
+ return a + "\u2013" + b + " av m\xE5nga";
407
+ },
408
+ pageOpen: function(p) {
409
+ return "Sida " + p;
410
+ },
411
+ prevPage: "F\xF6reg\xE5ende sida",
412
+ nextPage: "N\xE4sta sida",
413
+ totals: "Summa",
414
+ rowCount: function(c) {
415
+ return nsv(c) + " rader";
416
+ },
417
+ actions: "\xC5tg\xE4rder",
418
+ optional: "valfritt",
419
+ timePlaceholder: "tt:mm",
420
+ timeInvalid: "Skriv en tid som 09:30",
421
+ timeOutOfRange: function(a, b) {
422
+ return "V\xE4lj en tid mellan " + a + " och " + b;
423
+ },
424
+ timeUnavailable: "Den tiden \xE4r inte ledig. V\xE4lj en annan.",
425
+ dropFiles: "Dra filer hit eller",
426
+ browse: "V\xE4lj filer",
427
+ browseOne: "V\xE4lj en fil",
428
+ remove: function(n3) {
429
+ return "Ta bort " + n3;
430
+ },
431
+ fileTooBig: function(max) {
432
+ return "St\xF6rre \xE4n " + max;
433
+ },
434
+ fileWrongType: "Den h\xE4r filtypen godtas inte",
435
+ tooManyFiles: function(n3) {
436
+ return "H\xF6gst " + n3 + " filer";
437
+ },
438
+ colorScheme: "F\xE4rgl\xE4ge",
439
+ increase: "\xD6ka",
440
+ decrease: "Minska",
441
+ stepDone: "klart",
442
+ stepOf: function(i, total) {
443
+ return "Steg " + i + " av " + total;
444
+ },
445
+ schemeLight: "Ljust",
446
+ schemeDark: "M\xF6rkt",
447
+ schemeSystem: "System",
448
+ uploading: "Laddar upp\u2026",
449
+ images: "Bilder",
450
+ pagination: "Sidnumrering",
451
+ pageN: function(p) {
452
+ return "Sida " + p;
453
+ },
454
+ accepts: function(list, max) {
455
+ return [list, max && "h\xF6gst " + max + " per fil"].filter(Boolean).join(", ");
456
+ }
457
+ };
458
+
459
+ // src/strings.ts
460
+ var n2 = function(x) {
461
+ return Number(x).toLocaleString("en");
462
+ };
213
463
  var STRINGS = {
214
464
  en: {
215
465
  close: "Close",
@@ -219,14 +469,14 @@ var STRINGS = {
219
469
  filters: "Filters",
220
470
  search: "Search",
221
471
  clearFilters: "Clear all",
222
- results: function(n2) {
223
- return n2 === 1 ? "1 result" : n2.toLocaleString("en") + " results";
472
+ results: function(n3) {
473
+ return n3 === 1 ? "1 result" : n3.toLocaleString("en") + " results";
224
474
  },
225
475
  commandMenu: "Command menu",
226
476
  commandPlaceholder: "Type a command or search\u2026",
227
477
  commandHint: "\u2191\u2193 to move \xB7 Enter to open \xB7 Esc to close",
228
- errorSummary: function(n2) {
229
- return n2 === 1 ? "Fix 1 field to continue" : "Fix " + n2 + " fields to continue";
478
+ errorSummary: function(n3) {
479
+ return n3 === 1 ? "Fix 1 field to continue" : "Fix " + n3 + " fields to continue";
230
480
  },
231
481
  notifications: "Notifications",
232
482
  mainNav: "Main",
@@ -241,7 +491,7 @@ var STRINGS = {
241
491
  return "Clear " + (what || "selection");
242
492
  },
243
493
  keepTyping: function(total) {
244
- return "Keep typing to narrow " + n(total) + " options";
494
+ return "Keep typing to narrow " + n2(total) + " options";
245
495
  },
246
496
  sortAsc: "Sort ascending",
247
497
  sortDesc: "Sort descending",
@@ -259,7 +509,7 @@ var STRINGS = {
259
509
  return "Select " + k;
260
510
  },
261
511
  selectedCount: function(c) {
262
- return n(c) + " selected";
512
+ return n2(c) + " selected";
263
513
  },
264
514
  pinned: "Pinned",
265
515
  columnOptions: function(label) {
@@ -274,7 +524,7 @@ var STRINGS = {
274
524
  loading: "Loading\u2026",
275
525
  loadingRows: "Loading rows",
276
526
  range: function(a, b, total) {
277
- return a + "\u2013" + b + " of " + n(total);
527
+ return a + "\u2013" + b + " of " + n2(total);
278
528
  },
279
529
  page: function(p, total) {
280
530
  return "Page " + p + " of " + total;
@@ -289,7 +539,7 @@ var STRINGS = {
289
539
  nextPage: "Next page",
290
540
  totals: "Totals",
291
541
  rowCount: function(c) {
292
- return n(c) + " rows";
542
+ return n2(c) + " rows";
293
543
  },
294
544
  actions: "Actions",
295
545
  optional: "optional",
@@ -302,15 +552,15 @@ var STRINGS = {
302
552
  dropFiles: "Drag files here or",
303
553
  browse: "Choose files",
304
554
  browseOne: "Choose a file",
305
- remove: function(n2) {
306
- return "Remove " + n2;
555
+ remove: function(n3) {
556
+ return "Remove " + n3;
307
557
  },
308
558
  fileTooBig: function(max) {
309
559
  return "Larger than " + max;
310
560
  },
311
561
  fileWrongType: "This file type isn\u2019t accepted",
312
- tooManyFiles: function(n2) {
313
- return "Up to " + n2 + " files";
562
+ tooManyFiles: function(n3) {
563
+ return "Up to " + n3 + " files";
314
564
  },
315
565
  colorScheme: "Colour scheme",
316
566
  increase: "Increase",
@@ -332,248 +582,8 @@ var STRINGS = {
332
582
  return [list, max && "up to " + max + " each"].filter(Boolean).join(", ");
333
583
  }
334
584
  },
335
- th: {
336
- close: "\u0E1B\u0E34\u0E14",
337
- dismiss: "\u0E1B\u0E34\u0E14",
338
- dismissToast: "\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
339
- showPassword: "\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",
340
- filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
341
- search: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
342
- clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
343
- results: function(n2) {
344
- return n2.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
345
- },
346
- commandMenu: "\u0E40\u0E21\u0E19\u0E39\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07",
347
- commandPlaceholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
348
- commandHint: "\u2191\u2193 \u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19 \xB7 Enter \u0E40\u0E1B\u0E34\u0E14 \xB7 Esc \u0E1B\u0E34\u0E14",
349
- errorSummary: function(n2) {
350
- return "\u0E41\u0E01\u0E49\u0E44\u0E02 " + n2 + " \u0E0A\u0E48\u0E2D\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E44\u0E1B\u0E15\u0E48\u0E2D";
351
- },
352
- notifications: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
353
- mainNav: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01",
354
- breadcrumb: "\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07",
355
- navigation: "\u0E40\u0E21\u0E19\u0E39",
356
- openNav: "\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E21\u0E19\u0E39",
357
- collapseNav: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
358
- expandNav: "\u0E02\u0E22\u0E32\u0E22\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
359
- searching: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
360
- noMatches: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
361
- clear: function(what) {
362
- return "\u0E25\u0E49\u0E32\u0E07" + (what || "\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01");
363
- },
364
- keepTyping: function(total) {
365
- 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";
366
- },
367
- sortAsc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
368
- sortDesc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
369
- pin: "\u0E15\u0E23\u0E36\u0E07\u0E44\u0E27\u0E49\u0E0B\u0E49\u0E32\u0E22",
370
- unpin: "\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
371
- moveLeft: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E0B\u0E49\u0E32\u0E22",
372
- moveRight: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E02\u0E27\u0E32",
373
- hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
374
- resetColumns: "\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
375
- selectRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E16\u0E27",
376
- selectAllRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
377
- deselectAllRows: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
378
- selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
379
- selectRow: function(k) {
380
- return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + k;
381
- },
382
- selectedCount: function(c) {
383
- return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + n(c) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
384
- },
385
- pinned: "\u0E15\u0E23\u0E36\u0E07\u0E2D\u0E22\u0E39\u0E48",
386
- columnOptions: function(label) {
387
- return "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label;
388
- },
389
- column: function(label) {
390
- return label ? "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label : "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C";
391
- },
392
- columns: "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
393
- showHideColumns: "\u0E41\u0E2A\u0E14\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
394
- empty: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
395
- loading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u2026",
396
- loadingRows: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
397
- range: function(a, b, total) {
398
- return a + "\u2013" + b + " \u0E08\u0E32\u0E01 " + n(total);
399
- },
400
- page: function(p, total) {
401
- return "\u0E2B\u0E19\u0E49\u0E32 " + p + " / " + total;
402
- },
403
- rangeOpen: function(a, b) {
404
- return a + "\u2013" + b + " \u0E08\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
405
- },
406
- pageOpen: function(p) {
407
- return "\u0E2B\u0E19\u0E49\u0E32 " + p;
408
- },
409
- prevPage: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
410
- nextPage: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
411
- totals: "\u0E23\u0E27\u0E21",
412
- rowCount: function(c) {
413
- return n(c) + " \u0E41\u0E16\u0E27";
414
- },
415
- actions: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23",
416
- optional: "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A",
417
- timePlaceholder: "\u0E0A\u0E0A:\u0E19\u0E19",
418
- timeInvalid: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A 09:30",
419
- timeOutOfRange: function(a, b) {
420
- return "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 " + a + "\u2013" + b + " \u0E19.";
421
- },
422
- 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",
423
- dropFiles: "\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E27\u0E32\u0E07 \u0E2B\u0E23\u0E37\u0E2D",
424
- browse: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
425
- browseOne: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
426
- remove: function(n2) {
427
- return "\u0E25\u0E1A " + n2;
428
- },
429
- fileTooBig: function(max) {
430
- return "\u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19 " + max;
431
- },
432
- fileWrongType: "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E0A\u0E19\u0E34\u0E14\u0E19\u0E35\u0E49",
433
- tooManyFiles: function(n2) {
434
- return "\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + n2 + " \u0E44\u0E1F\u0E25\u0E4C";
435
- },
436
- colorScheme: "\u0E42\u0E2B\u0E21\u0E14\u0E2A\u0E35",
437
- increase: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
438
- decrease: "\u0E25\u0E14",
439
- stepDone: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
440
- stepOf: function(i, total) {
441
- return "\u0E02\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48 " + i + " \u0E08\u0E32\u0E01 " + total;
442
- },
443
- schemeLight: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
444
- schemeDark: "\u0E21\u0E37\u0E14",
445
- schemeSystem: "\u0E15\u0E32\u0E21\u0E23\u0E30\u0E1A\u0E1A",
446
- uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u2026",
447
- images: "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",
448
- pagination: "\u0E40\u0E25\u0E02\u0E2B\u0E19\u0E49\u0E32",
449
- pageN: function(p) {
450
- return "\u0E2B\u0E19\u0E49\u0E32 " + p;
451
- },
452
- accepts: function(list, max) {
453
- return [list, max && "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + max + " \u0E15\u0E48\u0E2D\u0E44\u0E1F\u0E25\u0E4C"].filter(Boolean).join(" \xB7 ");
454
- }
455
- },
456
- sv: {
457
- close: "St\xE4ng",
458
- dismiss: "St\xE4ng",
459
- dismissToast: "St\xE4ng aviseringen",
460
- showPassword: "Visa l\xF6senord",
461
- filters: "Filter",
462
- search: "S\xF6k",
463
- clearFilters: "Rensa alla",
464
- results: function(n2) {
465
- return n2 === 1 ? "1 tr\xE4ff" : n2.toLocaleString("sv-SE") + " tr\xE4ffar";
466
- },
467
- commandMenu: "Kommandomeny",
468
- commandPlaceholder: "Skriv ett kommando eller s\xF6k\u2026",
469
- commandHint: "\u2191\u2193 flytta \xB7 Enter \xF6ppna \xB7 Esc st\xE4ng",
470
- errorSummary: function(n2) {
471
- return n2 === 1 ? "R\xE4tta 1 f\xE4lt f\xF6r att forts\xE4tta" : "R\xE4tta " + n2 + " f\xE4lt f\xF6r att forts\xE4tta";
472
- },
473
- notifications: "Aviseringar",
474
- mainNav: "Huvudmeny",
475
- breadcrumb: "Br\xF6dsmulor",
476
- navigation: "Navigering",
477
- openNav: "\xD6ppna menyn",
478
- collapseNav: "F\xE4ll ihop sidof\xE4ltet",
479
- expandNav: "F\xE4ll ut sidof\xE4ltet",
480
- searching: "S\xF6ker\u2026",
481
- noMatches: "Inga tr\xE4ffar",
482
- clear: function(what) {
483
- return "Rensa " + (what || "urvalet");
484
- },
485
- keepTyping: function(total) {
486
- return "Skriv mer f\xF6r att begr\xE4nsa " + nsv(total) + " alternativ";
487
- },
488
- sortAsc: "Sortera stigande",
489
- sortDesc: "Sortera fallande",
490
- pin: "F\xE4st till v\xE4nster",
491
- unpin: "Lossa kolumnen",
492
- moveLeft: "Flytta v\xE4nster",
493
- moveRight: "Flytta h\xF6ger",
494
- hideColumn: "D\xF6lj kolumnen",
495
- resetColumns: "\xC5terst\xE4ll kolumner",
496
- selectRows: "V\xE4lj rader",
497
- selectAllRows: "V\xE4lj alla rader",
498
- deselectAllRows: "Avmarkera alla rader",
499
- selectAll: "V\xE4lj alla",
500
- selectRow: function(k) {
501
- return "V\xE4lj " + k;
502
- },
503
- selectedCount: function(c) {
504
- return nsv(c) + " valda";
505
- },
506
- pinned: "F\xE4st",
507
- columnOptions: function(label) {
508
- return "Alternativ f\xF6r kolumnen " + label;
509
- },
510
- column: function(label) {
511
- return label ? "Kolumnen " + label : "Kolumn";
512
- },
513
- columns: "Kolumner",
514
- showHideColumns: "Visa eller d\xF6lj kolumner",
515
- empty: "Inget h\xE4r \xE4nnu",
516
- loading: "Laddar\u2026",
517
- loadingRows: "Laddar rader",
518
- range: function(a, b, total) {
519
- return a + "\u2013" + b + " av " + nsv(total);
520
- },
521
- page: function(p, total) {
522
- return "Sida " + p + " av " + total;
523
- },
524
- rangeOpen: function(a, b) {
525
- return a + "\u2013" + b + " av m\xE5nga";
526
- },
527
- pageOpen: function(p) {
528
- return "Sida " + p;
529
- },
530
- prevPage: "F\xF6reg\xE5ende sida",
531
- nextPage: "N\xE4sta sida",
532
- totals: "Summa",
533
- rowCount: function(c) {
534
- return nsv(c) + " rader";
535
- },
536
- actions: "\xC5tg\xE4rder",
537
- optional: "valfritt",
538
- timePlaceholder: "tt:mm",
539
- timeInvalid: "Skriv en tid som 09:30",
540
- timeOutOfRange: function(a, b) {
541
- return "V\xE4lj en tid mellan " + a + " och " + b;
542
- },
543
- timeUnavailable: "Den tiden \xE4r inte ledig. V\xE4lj en annan.",
544
- dropFiles: "Dra filer hit eller",
545
- browse: "V\xE4lj filer",
546
- browseOne: "V\xE4lj en fil",
547
- remove: function(n2) {
548
- return "Ta bort " + n2;
549
- },
550
- fileTooBig: function(max) {
551
- return "St\xF6rre \xE4n " + max;
552
- },
553
- fileWrongType: "Den h\xE4r filtypen godtas inte",
554
- tooManyFiles: function(n2) {
555
- return "H\xF6gst " + n2 + " filer";
556
- },
557
- colorScheme: "F\xE4rgl\xE4ge",
558
- increase: "\xD6ka",
559
- decrease: "Minska",
560
- stepDone: "klart",
561
- stepOf: function(i, total) {
562
- return "Steg " + i + " av " + total;
563
- },
564
- schemeLight: "Ljust",
565
- schemeDark: "M\xF6rkt",
566
- schemeSystem: "System",
567
- uploading: "Laddar upp\u2026",
568
- images: "Bilder",
569
- pagination: "Sidnumrering",
570
- pageN: function(p) {
571
- return "Sida " + p;
572
- },
573
- accepts: function(list, max) {
574
- return [list, max && "h\xF6gst " + max + " per fil"].filter(Boolean).join(", ");
575
- }
576
- }
585
+ th,
586
+ sv
577
587
  };
578
588
 
579
589
  // src/theme.ts
@@ -590,8 +600,8 @@ function hexToRgb(hex) {
590
600
  }
591
601
  function rgbToHex(rgb) {
592
602
  return "#" + rgb.map(function(v) {
593
- const n2 = Math.round(Math.min(1, Math.max(0, v)) * 255);
594
- return (n2 < 16 ? "0" : "") + n2.toString(16);
603
+ const n3 = Math.round(Math.min(1, Math.max(0, v)) * 255);
604
+ return (n3 < 16 ? "0" : "") + n3.toString(16);
595
605
  }).join("");
596
606
  }
597
607
  function lin(c) {
@@ -861,10 +871,10 @@ function colorSchemeScript(options) {
861
871
  var breakpoints = { sm: 640, md: 768, lg: 1024, xl: 1280 };
862
872
 
863
873
  // src/display.tsx
864
- var React2 = __toESM(require("react"), 1);
874
+ var React3 = __toESM(require("react"), 1);
865
875
 
866
876
  // src/Icon.tsx
867
- var React = __toESM(require("react"), 1);
877
+ var React2 = __toESM(require("react"), 1);
868
878
 
869
879
  // src/classes.ts
870
880
  function cx() {
@@ -881,26 +891,29 @@ var TONES = ["neutral", "accent", "success", "warning", "danger"];
881
891
  function tone(t) {
882
892
  return TONES.indexOf(t) >= 0 ? t : "neutral";
883
893
  }
894
+ var warned = {};
895
+ function devWarnOnce(key, message) {
896
+ if (warned[key]) return;
897
+ let dev = false;
898
+ try {
899
+ dev = process.env.NODE_ENV !== "production";
900
+ } catch (e) {
901
+ dev = false;
902
+ }
903
+ if (!dev) return;
904
+ warned[key] = true;
905
+ console.warn("[AURA] " + message);
906
+ }
884
907
 
885
- // src/Icon.tsx
908
+ // src/iconSvg.tsx
909
+ var React = __toESM(require("react"), 1);
886
910
  var h = React.createElement;
887
- var ICONS = { "check": [["path", { "d": "M20 6 9 17l-5-5" }]], "x": [["path", { "d": "M18 6 6 18" }], ["path", { "d": "m6 6 12 12" }]], "plus": [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]], "minus": [["path", { "d": "M5 12h14" }]], "search": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]], "chevron-down": [["path", { "d": "m6 9 6 6 6-6" }]], "chevron-up": [["path", { "d": "m18 15-6-6-6 6" }]], "chevron-left": [["path", { "d": "m15 18-6-6 6-6" }]], "chevron-right": [["path", { "d": "m9 18 6-6-6-6" }]], "arrow-right": [["path", { "d": "M5 12h14" }], ["path", { "d": "m12 5 7 7-7 7" }]], "arrow-up-right": [["path", { "d": "M7 7h10v10" }], ["path", { "d": "M7 17 17 7" }]], "arrow-up-down": [["path", { "d": "m21 16-4 4-4-4" }], ["path", { "d": "M17 20V4" }], ["path", { "d": "m3 8 4-4 4 4" }], ["path", { "d": "M7 4v16" }]], "loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]], "circle-alert": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "12", "x2": "12", "y1": "8", "y2": "12" }], ["line", { "x1": "12", "x2": "12.01", "y1": "16", "y2": "16" }]], "circle-check": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "info": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 16v-4" }], ["path", { "d": "M12 8h.01" }]], "triangle-alert": [["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { "d": "M12 9v4" }], ["path", { "d": "M12 17h.01" }]], "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "user": [["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { "cx": "12", "cy": "7", "r": "4" }]], "users": [["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }], ["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }], ["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }], ["circle", { "cx": "9", "cy": "7", "r": "4" }]], "filter": [["path", { "d": "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]], "ellipsis": [["circle", { "cx": "12", "cy": "12", "r": "1" }], ["circle", { "cx": "19", "cy": "12", "r": "1" }], ["circle", { "cx": "5", "cy": "12", "r": "1" }]], "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], "copy": [["rect", { "width": "14", "height": "14", "x": "8", "y": "8", "rx": "2", "ry": "2" }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]], "trash-2": [["path", { "d": "M10 11v6" }], ["path", { "d": "M14 11v6" }], ["path", { "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { "d": "M3 6h18" }], ["path", { "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]], "pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]], "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]], "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]], "calendar": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }]], "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], "menu": [["path", { "d": "M4 5h16" }], ["path", { "d": "M4 12h16" }], ["path", { "d": "M4 19h16" }]], "eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "log-out": [["path", { "d": "m16 17 5-5-5-5" }], ["path", { "d": "M21 12H9" }], ["path", { "d": "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }]], "circle": [["circle", { "cx": "12", "cy": "12", "r": "10" }]], "circle-dot-dashed": [["path", { "d": "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }], ["path", { "d": "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }], ["path", { "d": "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }], ["path", { "d": "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }], ["path", { "d": "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }], ["path", { "d": "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }], ["path", { "d": "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }], ["path", { "d": "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }], ["circle", { "cx": "12", "cy": "12", "r": "1" }]], "ban": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M4.929 4.929 19.07 19.071" }]], "arrow-up": [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]], "arrow-down": [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]], "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], "pin": [["path", { "d": "M12 17v5" }], ["path", { "d": "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]], "pin-off": [["path", { "d": "M12 17v5" }], ["path", { "d": "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }], ["path", { "d": "m2 2 20 20" }], ["path", { "d": "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]], "eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }], ["path", { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }], ["path", { "d": "m2 2 20 20" }]], "columns-3": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "M15 3v18" }]], "arrow-left": [["path", { "d": "m12 19-7-7 7-7" }], ["path", { "d": "M19 12H5" }]], "rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]], "house": [["path", { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], "layout-dashboard": [["rect", { "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }]], "folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], "chart-column": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "M18 17V9" }], ["path", { "d": "M13 17V5" }], ["path", { "d": "M8 17v-3" }]], "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]], "mail": [["path", { "d": "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }]], "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]], "clock": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 6v6l4 2" }]], "trending-up": [["path", { "d": "M16 7h6v6" }], ["path", { "d": "m22 7-8.5 8.5-5-5L2 17" }]], "trending-down": [["path", { "d": "M16 17h6v-6" }], ["path", { "d": "m22 17-8.5-8.5-5 5L2 7" }]], "image": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }], ["circle", { "cx": "9", "cy": "9", "r": "2" }], ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]], "paperclip": [["path", { "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }]], "cloud-upload": [["path", { "d": "M12 13v8" }], ["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "m8 17 4-4 4 4" }]], "file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]], "sun": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M12 20v2" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "m17.66 17.66 1.41 1.41" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "m6.34 17.66-1.41 1.41" }], ["path", { "d": "m19.07 4.93-1.41 1.41" }]], "moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]], "monitor": [["rect", { "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }], ["line", { "x1": "8", "x2": "16", "y1": "21", "y2": "21" }], ["line", { "x1": "12", "x2": "12", "y1": "17", "y2": "21" }]], "panel-left-close": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m16 15-3-3 3-3" }]], "panel-left-open": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m14 9 3 3-3 3" }]], "server": [["rect", { "width": "20", "height": "8", "x": "2", "y": "2", "rx": "2", "ry": "2" }], ["rect", { "width": "20", "height": "8", "x": "2", "y": "14", "rx": "2", "ry": "2" }], ["line", { "x1": "6", "x2": "6.01", "y1": "6", "y2": "6" }], ["line", { "x1": "6", "x2": "6.01", "y1": "18", "y2": "18" }]], "globe": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }], ["path", { "d": "M2 12h20" }]], "activity": [["path", { "d": "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" }]], "shield-alert": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { "d": "M12 8v4" }], ["path", { "d": "M12 16h.01" }]], "phone": [["path", { "d": "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" }]], "wrench": [["path", { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]] };
888
911
  var SIZES = { sm: 16, md: 20, lg: 24 };
889
- var Icon = React.forwardRef(function Icon2(props, ref) {
890
- const size = SIZES[props.size] || props.size || 16;
891
- if (React.isValidElement(props.name)) {
892
- return /* @__PURE__ */ React.createElement(
893
- "span",
894
- {
895
- className: cx("aura-icon", "aura-icon--custom", props.className),
896
- style: { width: size, height: size, ["--aura-icon-stroke"]: props.strokeWidth || 2 },
897
- ...props.label ? { role: "img", "aria-label": props.label } : { "aria-hidden": true }
898
- },
899
- props.name
900
- );
901
- }
902
- const shapes = ICONS[props.name];
903
- if (!shapes) return null;
912
+ function iconSize(size) {
913
+ return SIZES[size] || size || 16;
914
+ }
915
+ function iconSvg(shapes, props, ref) {
916
+ const size = iconSize(props.size);
904
917
  const a11y = props.label ? { role: "img", "aria-label": props.label } : { "aria-hidden": true, focusable: "false" };
905
918
  return /* @__PURE__ */ React.createElement(
906
919
  "svg",
@@ -924,21 +937,139 @@ var Icon = React.forwardRef(function Icon2(props, ref) {
924
937
  return h(s[0], attrs);
925
938
  })
926
939
  );
940
+ }
941
+ function defineIcon(name, shapes) {
942
+ const C = React.forwardRef(function AuraIcon(props, ref) {
943
+ return iconSvg(shapes, props, ref);
944
+ });
945
+ C.displayName = "Icon" + name.split("-").map(function(p) {
946
+ return p.charAt(0).toUpperCase() + p.slice(1);
947
+ }).join("");
948
+ return Object.assign(C, { auraShapes: shapes, iconName: name });
949
+ }
950
+ function shapesOf(el) {
951
+ if (!React.isValidElement(el)) return null;
952
+ const t = el.type;
953
+ return typeof t !== "string" && t && t.auraShapes || null;
954
+ }
955
+
956
+ // src/Icon.tsx
957
+ var map = { "check": [["path", { "d": "M20 6 9 17l-5-5" }]], "x": [["path", { "d": "M18 6 6 18" }], ["path", { "d": "m6 6 12 12" }]], "plus": [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]], "minus": [["path", { "d": "M5 12h14" }]], "search": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]], "chevron-down": [["path", { "d": "m6 9 6 6 6-6" }]], "chevron-up": [["path", { "d": "m18 15-6-6-6 6" }]], "chevron-left": [["path", { "d": "m15 18-6-6 6-6" }]], "chevron-right": [["path", { "d": "m9 18 6-6-6-6" }]], "arrow-right": [["path", { "d": "M5 12h14" }], ["path", { "d": "m12 5 7 7-7 7" }]], "arrow-up-right": [["path", { "d": "M7 7h10v10" }], ["path", { "d": "M7 17 17 7" }]], "arrow-up-down": [["path", { "d": "m21 16-4 4-4-4" }], ["path", { "d": "M17 20V4" }], ["path", { "d": "m3 8 4-4 4 4" }], ["path", { "d": "M7 4v16" }]], "loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]], "circle-alert": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "12", "x2": "12", "y1": "8", "y2": "12" }], ["line", { "x1": "12", "x2": "12.01", "y1": "16", "y2": "16" }]], "circle-check": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "info": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 16v-4" }], ["path", { "d": "M12 8h.01" }]], "triangle-alert": [["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { "d": "M12 9v4" }], ["path", { "d": "M12 17h.01" }]], "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "user": [["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { "cx": "12", "cy": "7", "r": "4" }]], "users": [["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }], ["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }], ["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }], ["circle", { "cx": "9", "cy": "7", "r": "4" }]], "filter": [["path", { "d": "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]], "ellipsis": [["circle", { "cx": "12", "cy": "12", "r": "1" }], ["circle", { "cx": "19", "cy": "12", "r": "1" }], ["circle", { "cx": "5", "cy": "12", "r": "1" }]], "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], "copy": [["rect", { "width": "14", "height": "14", "x": "8", "y": "8", "rx": "2", "ry": "2" }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]], "trash-2": [["path", { "d": "M10 11v6" }], ["path", { "d": "M14 11v6" }], ["path", { "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { "d": "M3 6h18" }], ["path", { "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]], "pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]], "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]], "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]], "calendar": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }]], "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], "menu": [["path", { "d": "M4 5h16" }], ["path", { "d": "M4 12h16" }], ["path", { "d": "M4 19h16" }]], "eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "log-out": [["path", { "d": "m16 17 5-5-5-5" }], ["path", { "d": "M21 12H9" }], ["path", { "d": "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }]], "circle": [["circle", { "cx": "12", "cy": "12", "r": "10" }]], "circle-dot-dashed": [["path", { "d": "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }], ["path", { "d": "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }], ["path", { "d": "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }], ["path", { "d": "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }], ["path", { "d": "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }], ["path", { "d": "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }], ["path", { "d": "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }], ["path", { "d": "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }], ["circle", { "cx": "12", "cy": "12", "r": "1" }]], "ban": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M4.929 4.929 19.07 19.071" }]], "arrow-up": [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]], "arrow-down": [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]], "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], "pin": [["path", { "d": "M12 17v5" }], ["path", { "d": "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]], "pin-off": [["path", { "d": "M12 17v5" }], ["path", { "d": "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }], ["path", { "d": "m2 2 20 20" }], ["path", { "d": "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]], "eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }], ["path", { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }], ["path", { "d": "m2 2 20 20" }]], "columns-3": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "M15 3v18" }]], "arrow-left": [["path", { "d": "m12 19-7-7 7-7" }], ["path", { "d": "M19 12H5" }]], "rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]], "house": [["path", { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], "layout-dashboard": [["rect", { "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }]], "folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], "chart-column": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "M18 17V9" }], ["path", { "d": "M13 17V5" }], ["path", { "d": "M8 17v-3" }]], "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]], "mail": [["path", { "d": "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }]], "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]], "clock": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 6v6l4 2" }]], "trending-up": [["path", { "d": "M16 7h6v6" }], ["path", { "d": "m22 7-8.5 8.5-5-5L2 17" }]], "trending-down": [["path", { "d": "M16 17h6v-6" }], ["path", { "d": "m22 17-8.5-8.5-5 5L2 7" }]], "image": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }], ["circle", { "cx": "9", "cy": "9", "r": "2" }], ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]], "paperclip": [["path", { "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }]], "cloud-upload": [["path", { "d": "M12 13v8" }], ["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "m8 17 4-4 4 4" }]], "file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]], "sun": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M12 20v2" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "m17.66 17.66 1.41 1.41" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "m6.34 17.66-1.41 1.41" }], ["path", { "d": "m19.07 4.93-1.41 1.41" }]], "moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]], "monitor": [["rect", { "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }], ["line", { "x1": "8", "x2": "16", "y1": "21", "y2": "21" }], ["line", { "x1": "12", "x2": "12", "y1": "17", "y2": "21" }]], "panel-left-close": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m16 15-3-3 3-3" }]], "panel-left-open": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m14 9 3 3-3 3" }]], "server": [["rect", { "width": "20", "height": "8", "x": "2", "y": "2", "rx": "2", "ry": "2" }], ["rect", { "width": "20", "height": "8", "x": "2", "y": "14", "rx": "2", "ry": "2" }], ["line", { "x1": "6", "x2": "6.01", "y1": "6", "y2": "6" }], ["line", { "x1": "6", "x2": "6.01", "y1": "18", "y2": "18" }]], "globe": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }], ["path", { "d": "M2 12h20" }]], "activity": [["path", { "d": "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" }]], "shield-alert": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { "d": "M12 8v4" }], ["path", { "d": "M12 16h.01" }]], "phone": [["path", { "d": "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" }]], "wrench": [["path", { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]] };
958
+ var registered = {};
959
+ function registerIcons(icons) {
960
+ for (let i = 0; i < icons.length; i++) {
961
+ const c = icons[i];
962
+ if (c && c.auraShapes) {
963
+ map[c.iconName] = c.auraShapes;
964
+ registered[c.iconName] = true;
965
+ }
966
+ }
967
+ }
968
+ var Icon = React2.forwardRef(function Icon2(props, ref) {
969
+ const own = shapesOf(props.name);
970
+ if (own) {
971
+ const ep = props.name.props;
972
+ return iconSvg(
973
+ own,
974
+ {
975
+ size: props.size || ep.size,
976
+ label: props.label || ep.label,
977
+ strokeWidth: props.strokeWidth || ep.strokeWidth,
978
+ className: cx(ep.className, props.className) || void 0
979
+ },
980
+ ref
981
+ );
982
+ }
983
+ const drawn = props.name;
984
+ if (React2.isValidElement(drawn) && drawn.type === "svg" && /(^| )aura-icon( |$)/.test(String(drawn.props.className || "")) && !/aura-icon--custom/.test(String(drawn.props.className || ""))) {
985
+ const dp = drawn.props;
986
+ const o = { ref };
987
+ if (props.size) o.width = o.height = iconSize(props.size);
988
+ if (props.strokeWidth) o.strokeWidth = props.strokeWidth;
989
+ if (props.className) o.className = cx(String(dp.className), props.className);
990
+ if (props.label)
991
+ Object.assign(o, { role: "img", "aria-label": props.label, "aria-hidden": void 0, focusable: void 0 });
992
+ return React2.cloneElement(drawn, o);
993
+ }
994
+ if (React2.isValidElement(props.name)) {
995
+ const size = iconSize(props.size);
996
+ return /* @__PURE__ */ React2.createElement(
997
+ "span",
998
+ {
999
+ className: cx("aura-icon", "aura-icon--custom", props.className),
1000
+ style: { width: size, height: size, ["--aura-icon-stroke"]: props.strokeWidth || 2 },
1001
+ ...props.label ? { role: "img", "aria-label": props.label } : { "aria-hidden": true }
1002
+ },
1003
+ props.name
1004
+ );
1005
+ }
1006
+ if (typeof props.name === "string" && !registered[props.name])
1007
+ devWarnOnce(
1008
+ "icon-names",
1009
+ 'Icon names as strings (icon="' + props.name + '") need registerIcons() from 6.0. Import icons from "@jirawatpyk/aura-react/icons" (npx aura-icons-codemod), or call registerIcons(allIcons) once.'
1010
+ );
1011
+ const shapes = map[props.name];
1012
+ if (!shapes) return null;
1013
+ return iconSvg(shapes, props, ref);
927
1014
  });
928
- var iconNames = Object.keys(ICONS);
1015
+ var iconNames = Object.keys(map);
1016
+
1017
+ // src/icons.ts
1018
+ var IconCircleAlert = /* @__PURE__ */ defineIcon("circle-alert", [
1019
+ ["circle", { cx: "12", cy: "12", r: "10" }],
1020
+ ["line", { x1: "12", x2: "12", y1: "8", y2: "12" }],
1021
+ ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16" }]
1022
+ ]);
1023
+ var IconCircleCheck = /* @__PURE__ */ defineIcon("circle-check", [
1024
+ ["circle", { cx: "12", cy: "12", r: "10" }],
1025
+ ["path", { d: "m16 9-5.5 5.5L8 12" }]
1026
+ ]);
1027
+ var IconInfo = /* @__PURE__ */ defineIcon("info", [
1028
+ ["circle", { cx: "12", cy: "12", r: "10" }],
1029
+ ["path", { d: "M12 16v-4" }],
1030
+ ["path", { d: "M12 8h.01" }]
1031
+ ]);
1032
+ var IconTriangleAlert = /* @__PURE__ */ defineIcon("triangle-alert", [
1033
+ ["path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }],
1034
+ ["path", { d: "M12 9v4" }],
1035
+ ["path", { d: "M12 17h.01" }]
1036
+ ]);
1037
+ var IconCircle = /* @__PURE__ */ defineIcon("circle", [["circle", { cx: "12", cy: "12", r: "10" }]]);
1038
+ var IconCircleDotDashed = /* @__PURE__ */ defineIcon("circle-dot-dashed", [
1039
+ ["path", { d: "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }],
1040
+ ["path", { d: "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }],
1041
+ ["path", { d: "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }],
1042
+ ["path", { d: "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }],
1043
+ ["path", { d: "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }],
1044
+ ["path", { d: "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }],
1045
+ ["path", { d: "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }],
1046
+ ["path", { d: "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }],
1047
+ ["circle", { cx: "12", cy: "12", r: "1" }]
1048
+ ]);
1049
+ var IconBan = /* @__PURE__ */ defineIcon("ban", [
1050
+ ["circle", { cx: "12", cy: "12", r: "10" }],
1051
+ ["path", { d: "M4.929 4.929 19.07 19.071" }]
1052
+ ]);
1053
+ var IconInbox = /* @__PURE__ */ defineIcon("inbox", [
1054
+ ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12" }],
1055
+ [
1056
+ "path",
1057
+ { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }
1058
+ ]
1059
+ ]);
929
1060
 
930
1061
  // src/display.tsx
931
- var h2 = React2.createElement;
1062
+ var h2 = React3.createElement;
932
1063
  var ALERT_ICON = {
933
- info: "info",
934
- success: "circle-check",
935
- warning: "triangle-alert",
936
- danger: "circle-alert"
1064
+ info: IconInfo,
1065
+ success: IconCircleCheck,
1066
+ warning: IconTriangleAlert,
1067
+ danger: IconCircleAlert
937
1068
  };
938
1069
  function alertElement(props, ref, close) {
939
1070
  const tone2 = props.tone || "info";
940
1071
  const rest = omit(props, ["tone", "title", "children", "action", "onDismiss", "className", "role", "icon"]);
941
- return /* @__PURE__ */ React2.createElement(
1072
+ return /* @__PURE__ */ React3.createElement(
942
1073
  "div",
943
1074
  {
944
1075
  ...rest,
@@ -946,8 +1077,8 @@ function alertElement(props, ref, close) {
946
1077
  className: cx("aura-alert", "aura-alert--" + tone2, props.className),
947
1078
  role: props.role || (tone2 === "danger" || tone2 === "warning" ? "alert" : "status")
948
1079
  },
949
- /* @__PURE__ */ React2.createElement(Icon, { name: props.icon || ALERT_ICON[tone2], className: "aura-alert__icon" }),
950
- /* @__PURE__ */ React2.createElement("div", { className: "aura-alert__body" }, props.title ? /* @__PURE__ */ React2.createElement("p", { className: "aura-alert__title" }, props.title) : null, props.children ? /* @__PURE__ */ React2.createElement("div", { className: "aura-alert__text" }, props.children) : null, props.action ? /* @__PURE__ */ React2.createElement("div", { className: "aura-alert__action" }, props.action) : null),
1080
+ /* @__PURE__ */ React3.createElement(Icon, { name: props.icon || h2(ALERT_ICON[tone2]), className: "aura-alert__icon" }),
1081
+ /* @__PURE__ */ React3.createElement("div", { className: "aura-alert__body" }, props.title ? /* @__PURE__ */ React3.createElement("p", { className: "aura-alert__title" }, props.title) : null, props.children ? /* @__PURE__ */ React3.createElement("div", { className: "aura-alert__text" }, props.children) : null, props.action ? /* @__PURE__ */ React3.createElement("div", { className: "aura-alert__action" }, props.action) : null),
951
1082
  close
952
1083
  );
953
1084
  }
@@ -979,26 +1110,26 @@ function cardElement(props, ref) {
979
1110
  /* A titled card is labelled by its title; otherwise the caller's aria-labelledby stays (5.8). */
980
1111
  "aria-labelledby": props.title && props.titleId ? props.titleId : props["aria-labelledby"]
981
1112
  }),
982
- props.title || props.actions ? /* @__PURE__ */ React2.createElement("div", { className: "aura-card__head" }, /* @__PURE__ */ React2.createElement("div", { className: "aura-card__heading" }, props.title ? h2("h" + (props.headingLevel || 3), { className: "aura-card__title", id: props.titleId }, props.title) : null, props.description ? /* @__PURE__ */ React2.createElement("p", { className: "aura-card__desc" }, props.description) : null), props.actions ? /* @__PURE__ */ React2.createElement("div", { className: "aura-card__actions" }, props.actions) : null) : null,
983
- props.children ? /* @__PURE__ */ React2.createElement("div", { className: "aura-card__body" }, props.children) : null,
984
- props.footer ? /* @__PURE__ */ React2.createElement("div", { className: "aura-card__foot" }, props.footer) : null
1113
+ props.title || props.actions ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__head" }, /* @__PURE__ */ React3.createElement("div", { className: "aura-card__heading" }, props.title ? h2("h" + (props.headingLevel || 3), { className: "aura-card__title", id: props.titleId }, props.title) : null, props.description ? /* @__PURE__ */ React3.createElement("p", { className: "aura-card__desc" }, props.description) : null), props.actions ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__actions" }, props.actions) : null) : null,
1114
+ props.children ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__body" }, props.children) : null,
1115
+ props.footer ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__foot" }, props.footer) : null
985
1116
  );
986
1117
  }
987
1118
  var PILL_ICON = {
988
- neutral: "circle",
989
- progress: "circle-dot-dashed",
990
- ready: "circle-check",
991
- warning: "triangle-alert",
992
- blocked: "ban"
1119
+ neutral: IconCircle,
1120
+ progress: IconCircleDotDashed,
1121
+ ready: IconCircleCheck,
1122
+ warning: IconTriangleAlert,
1123
+ blocked: IconBan
993
1124
  };
994
1125
  function statusPillElement(props, ref) {
995
1126
  const tone2 = props.tone || toneFor(props.children);
996
1127
  const rest = omit(props, ["tone", "className", "children"]);
997
- return /* @__PURE__ */ React2.createElement("span", { ...rest, ref, className: cx("aura-pill", "aura-pill--" + tone2, props.className) }, /* @__PURE__ */ React2.createElement(Icon, { name: PILL_ICON[tone2] || "circle", size: 12 }), props.children);
1128
+ return /* @__PURE__ */ React3.createElement("span", { ...rest, ref, className: cx("aura-pill", "aura-pill--" + tone2, props.className) }, /* @__PURE__ */ React3.createElement(Icon, { name: h2(PILL_ICON[tone2] || IconCircle), size: 12 }), props.children);
998
1129
  }
999
1130
  function badgeElement(props, ref) {
1000
1131
  const rest = omit(props, ["tone", "variant", "icon", "className", "children"]);
1001
- return /* @__PURE__ */ React2.createElement(
1132
+ return /* @__PURE__ */ React3.createElement(
1002
1133
  "span",
1003
1134
  {
1004
1135
  ...rest,
@@ -1011,22 +1142,22 @@ function badgeElement(props, ref) {
1011
1142
  props.className
1012
1143
  )
1013
1144
  },
1014
- props.icon ? /* @__PURE__ */ React2.createElement(Icon, { name: props.icon, size: 12 }) : null,
1145
+ props.icon ? /* @__PURE__ */ React3.createElement(Icon, { name: props.icon, size: 12 }) : null,
1015
1146
  props.children
1016
1147
  );
1017
1148
  }
1018
1149
  function emptyStateElement(props, ref) {
1019
1150
  const HT = "h" + (props.headingLevel || 3);
1020
- return /* @__PURE__ */ React2.createElement(
1151
+ return /* @__PURE__ */ React3.createElement(
1021
1152
  "div",
1022
1153
  {
1023
1154
  ref,
1024
1155
  className: cx("aura-empty", props.size === "sm" && "is-sm", props.bordered && "is-bordered", props.className)
1025
1156
  },
1026
- /* @__PURE__ */ React2.createElement("span", { className: "aura-empty__icon", "aria-hidden": true }, /* @__PURE__ */ React2.createElement(Icon, { name: props.icon || "inbox", size: props.size === "sm" ? "md" : "lg" })),
1027
- /* @__PURE__ */ React2.createElement(HT, { className: "aura-empty__title" }, props.title),
1028
- props.description ? /* @__PURE__ */ React2.createElement("p", { className: "aura-empty__text" }, props.description) : null,
1029
- props.action ? /* @__PURE__ */ React2.createElement("div", { className: "aura-empty__action" }, props.action) : null
1157
+ /* @__PURE__ */ React3.createElement("span", { className: "aura-empty__icon", "aria-hidden": true }, /* @__PURE__ */ React3.createElement(Icon, { name: props.icon || /* @__PURE__ */ React3.createElement(IconInbox, null), size: props.size === "sm" ? "md" : "lg" })),
1158
+ /* @__PURE__ */ React3.createElement(HT, { className: "aura-empty__title" }, props.title),
1159
+ props.description ? /* @__PURE__ */ React3.createElement("p", { className: "aura-empty__text" }, props.description) : null,
1160
+ props.action ? /* @__PURE__ */ React3.createElement("div", { className: "aura-empty__action" }, props.action) : null
1030
1161
  );
1031
1162
  }
1032
1163
  function buttonClass(opts = {}) {