poe-svelte-ui-lib 1.5.3 → 1.5.5

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
@@ -8,6 +8,7 @@
8
8
  isOpen = $bindable(false),
9
9
  title,
10
10
  wrapperClass = '',
11
+ mainClass = '',
11
12
  main,
12
13
  footer,
13
14
  onCancel = () => (isOpen = false),
@@ -15,6 +16,7 @@
15
16
  isOpen?: boolean
16
17
  title?: string
17
18
  wrapperClass?: string
19
+ mainClass?: string
18
20
  main: Snippet
19
21
  footer?: Snippet
20
22
  onCancel?: () => void
@@ -44,7 +46,7 @@
44
46
  <button class="h-6 w-6 cursor-pointer" onclick={onCancel}> <CrossIcon /> </button>
45
47
  </div>
46
48
 
47
- <div class="flex h-full w-full flex-col overflow-auto p-2">
49
+ <div class={twMerge('flex h-full w-full flex-col overflow-auto p-2', mainClass)}>
48
50
  {@render main?.()}
49
51
  </div>
50
52
  {#if footer}
@@ -3,6 +3,7 @@ type $$ComponentProps = {
3
3
  isOpen?: boolean;
4
4
  title?: string;
5
5
  wrapperClass?: string;
6
+ mainClass?: string;
6
7
  main: Snippet;
7
8
  footer?: Snippet;
8
9
  onCancel?: () => void;
@@ -29,7 +29,7 @@
29
29
  <div id={`${id}-${crypto.randomUUID().slice(0, 6)}`} class="w-full h-full flex flex-col rounded-2xl bg-(--back-color) overflow-hidden">
30
30
  <!-- Вкладки -->
31
31
  <div
32
- class="{twMerge('bg-blue z-50 flex h-fit items-center rounded-t-2xl overflow-x-auto px-1', wrapperClass)}
32
+ class="{twMerge(`bg-blue z-50 flex h-fit items-center rounded-t-2xl overflow-x-auto px-1`, wrapperClass)}
33
33
  bg-(--bg-color)"
34
34
  >
35
35
  {#each items as item, index}
@@ -89,10 +89,10 @@
89
89
 
90
90
  <style>
91
91
  ::-webkit-scrollbar-track {
92
- background: var(--red-color);
92
+ background: var(--back-color);
93
93
  }
94
94
  ::-webkit-scrollbar-thumb {
95
- background-color: color-mix(in srgb, var(--bg-color), var(--back-color) 20%);
95
+ background-color: color-mix(in srgb, var(--blue-color), white);
96
96
  border-radius: 8px;
97
97
  cursor: pointer;
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@sveltejs/adapter-static": "^3.0.10",
47
- "@sveltejs/kit": "^2.49.1",
47
+ "@sveltejs/kit": "^2.49.2",
48
48
  "@sveltejs/package": "^2.5.7",
49
49
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
50
- "@types/node": "^24.10.1",
50
+ "@types/node": "^24.10.2",
51
51
  "publint": "^0.3.15",
52
- "svelte": "^5.45.6",
52
+ "svelte": "^5.45.8",
53
53
  "svelte-preprocess": "^6.0.3",
54
54
  "vite": "^7.2.7",
55
55
  "vite-plugin-compression": "^0.5.1"