poe-svelte-ui-lib 1.5.16 → 1.5.18

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/dist/Modal.svelte CHANGED
@@ -36,7 +36,7 @@
36
36
  </script>
37
37
 
38
38
  {#if isOpen}
39
- <div class="fixed inset-0 z-60 flex items-center justify-center bg-black/50" transition:fade={{ duration: 200 }}>
39
+ <div class="fixed inset-0 z-100 flex items-center justify-center bg-black/50" transition:fade={{ duration: 200 }}>
40
40
  <div
41
41
  class={twMerge(`flex w-300 flex-col overflow-hidden rounded-2xl bg-(--back-color) text-center`, wrapperClass)}
42
42
  transition:scale={{ duration: 250, start: 0.8 }}
@@ -27,6 +27,9 @@
27
27
 
28
28
  let buffer: any[] = $state([])
29
29
 
30
+ export const clearBuffer = () => {
31
+ buffer = []
32
+ }
30
33
  /* Сортировка */
31
34
  let sortState: {
32
35
  key: string | null
@@ -328,7 +331,7 @@
328
331
  'absolute right-2 bg-(--back-color) rounded-full p-1 cursor-pointer [&_svg]:h-full [&_svg]:max-h-full [&_svg]:w-full [&_svg]:max-w-full',
329
332
  dataBuffer.clearClass,
330
333
  )}
331
- onclick={() => (buffer = [])}
334
+ onclick={clearBuffer}
332
335
  >
333
336
  <ButtonClear />
334
337
  </button>
@@ -1,4 +1,6 @@
1
1
  import type { ITableProps } from '../types';
2
- declare const Table: import("svelte").Component<ITableProps<any>, {}, "body" | "modalData">;
2
+ declare const Table: import("svelte").Component<ITableProps<any>, {
3
+ clearBuffer: () => void;
4
+ }, "body" | "modalData">;
3
5
  type Table = ReturnType<typeof Table>;
4
6
  export default Table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.5.16",
3
+ "version": "1.5.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -51,7 +51,7 @@
51
51
  "publint": "^0.3.16",
52
52
  "svelte": "^5.46.0",
53
53
  "svelte-preprocess": "^6.0.3",
54
- "vite": "^7.2.7",
54
+ "vite": "^7.3.0",
55
55
  "vite-plugin-compression": "^0.5.1"
56
56
  }
57
57
  }