@joewinke/jatui 0.2.2 → 0.2.4

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 (33) hide show
  1. package/dist/components/CommandPalette.svelte +1 -1
  2. package/dist/components/ConfirmDialog.svelte +1 -1
  3. package/dist/components/InputDialog.svelte +1 -1
  4. package/dist/components/Tabs.svelte +6 -6
  5. package/dist/components/shell/Sidebar.svelte +1 -1
  6. package/dist/components/shell/Sidebar.svelte.d.ts +1 -1
  7. package/dist/components/shell/shell.js +63 -60
  8. package/dist/components/table/DataTable.svelte +10 -1
  9. package/dist/components/toast/ToastHost.svelte +1 -1
  10. package/dist/components/toast/ToastItem.svelte +1 -1
  11. package/dist/components/toast/ToastItem.svelte.d.ts +1 -1
  12. package/dist/dnd/createDndBoard.js +329 -0
  13. package/dist/dnd/index.d.ts +2 -2
  14. package/dist/dnd/index.js +1 -1
  15. package/dist/dnd/types.d.ts +9 -0
  16. package/dist/index.d.ts +8 -8
  17. package/dist/index.js +4 -4
  18. package/dist/showcase/AnimatedBeam.svelte +13 -10
  19. package/dist/stores/commandPalette.js +116 -0
  20. package/dist/stores/confirmDialog.js +37 -0
  21. package/dist/stores/inputDialog.js +37 -0
  22. package/dist/stores/toast.js +53 -0
  23. package/package.json +2 -2
  24. package/dist/dnd/createDndBoard.svelte.js +0 -217
  25. package/dist/stores/commandPalette.svelte.js +0 -82
  26. package/dist/stores/confirmDialog.svelte.js +0 -31
  27. package/dist/stores/inputDialog.svelte.js +0 -32
  28. package/dist/stores/toast.svelte.js +0 -33
  29. /package/dist/dnd/{createDndBoard.svelte.d.ts → createDndBoard.d.ts} +0 -0
  30. /package/dist/stores/{commandPalette.svelte.d.ts → commandPalette.d.ts} +0 -0
  31. /package/dist/stores/{confirmDialog.svelte.d.ts → confirmDialog.d.ts} +0 -0
  32. /package/dist/stores/{inputDialog.svelte.d.ts → inputDialog.d.ts} +0 -0
  33. /package/dist/stores/{toast.svelte.d.ts → toast.d.ts} +0 -0
@@ -1,33 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- var nextId = 0;
11
- var toasts = $state([]);
12
- export function getToasts() {
13
- return toasts;
14
- }
15
- export function showToast(options) {
16
- var _a, _b;
17
- var id = ++nextId;
18
- var toast = {
19
- id: id,
20
- type: (_a = options.type) !== null && _a !== void 0 ? _a : 'info',
21
- message: options.message,
22
- action: options.action,
23
- durationMs: (_b = options.durationMs) !== null && _b !== void 0 ? _b : 5000,
24
- onUndo: options.onUndo
25
- };
26
- toasts = __spreadArray(__spreadArray([], toasts, true), [toast], false);
27
- return {
28
- dismiss: function () { return dismissToast(id); }
29
- };
30
- }
31
- export function dismissToast(id) {
32
- toasts = toasts.filter(function (t) { return t.id !== id; });
33
- }
File without changes