poe-svelte-ui-lib 1.102.0 → 1.104.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.
@@ -1,4 +1,4 @@
1
- <!-- $lib/Accordion/Accordion.svelte - заголовок не увеличивается при раскрытии, радиус 14. Мастер-цвет (componentClass) - как у смарт-виджетов: иконка и текст заголовка цветом, фон заголовка - его мягким оттенком. -->
1
+ <!-- $lib/Accordion/Accordion.svelte - заголовок не увеличивается при раскрытии, радиус 14. Мастер-цвет (componentClass) - как у смарт-виджетов: иконка и текст заголовка его цветом текста, фон заголовка - 22% мастер-цвета поверх фона. -->
2
2
  <script lang="ts">
3
3
  import { slide } from "svelte/transition"
4
4
  import type { IAccordionProps } from "../types"
@@ -28,19 +28,19 @@
28
28
  transition:slide={{ duration: 200 }}
29
29
  >
30
30
  <div class="overflow-hidden rounded-[14px] border border-(--hairline-color) bg-(--back-color)">
31
- <!-- Фон заголовка - мягкий оттенок мастер-цвета (светлый в светлой теме, тёмный в тёмной), текст - мастер-цвет с цветом шрифта 60/40, раскрытое содержимое остаётся на чистом фоне (--back-color). -->
31
+ <!-- Фон заголовка - мастер-цвет 22% поверх фона, чтобы свёрнутый раздел не сливался с панелью; текст - цвет текста мастер-цвета 70% с цветом шрифта; раскрытое содержимое на чистом фоне (--back-color). -->
32
32
  <!-- Заголовок: кнопка сворачивания на всю ширину и необязательные кнопки справа (actions) - вне неё, чтобы не сворачивать блок -->
33
33
  <div
34
- class="flex w-full items-center bg-(--accent-soft) transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--accent-color)_12%,var(--accent-soft))]"
34
+ class="flex w-full items-center bg-[color-mix(in_srgb,var(--accent-color)_22%,var(--back-color))] transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--accent-color)_30%,var(--back-color))]"
35
35
  >
36
36
  <button
37
- class="flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-left text-[color-mix(in_srgb,var(--accent-color)_35%,var(--font-color))]"
37
+ class="flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-left text-[color-mix(in_srgb,var(--accent-text)_70%,var(--font-color))]"
38
38
  onclick={toggle}
39
39
  >
40
40
  <div class="flex min-w-0 flex-1 items-center gap-3">
41
41
  {#if label?.icon}
42
42
  <span
43
- class="flex h-[18px] w-[18px] shrink-0 items-center justify-center text-[color-mix(in_srgb,var(--accent-color)_35%,var(--font-color))] [&_svg]:h-full [&_svg]:w-full"
43
+ class="flex h-[18px] w-[18px] shrink-0 items-center justify-center text-[color-mix(in_srgb,var(--accent-text)_70%,var(--font-color))] [&_svg]:h-full [&_svg]:w-full"
44
44
  >
45
45
  {#if typeof label?.icon === "string"}
46
46
  {@html label.icon}
@@ -50,13 +50,13 @@
50
50
  {/if}
51
51
  </span>
52
52
  {/if}
53
- <span class={twMerge(`min-w-0 truncate text-[14px] font-semibold`, label.class)}>{label?.name}</span>
53
+ <span class={twMerge(`min-w-0 truncate text-[15px] font-semibold`, label.class)}>{label?.name}</span>
54
54
  </div>
55
55
 
56
56
  {#if chevron}
57
57
  <svg
58
58
  xmlns="http://www.w3.org/2000/svg"
59
- class="h-[14px] w-[14px] shrink-0 text-[color-mix(in_srgb,var(--accent-color)_35%,var(--font-color))] transition-transform duration-200"
59
+ class="h-[14px] w-[14px] shrink-0 text-[color-mix(in_srgb,var(--accent-text)_70%,var(--font-color))] transition-transform duration-200"
60
60
  style="transform: rotate({isOpen ? 180 : 0}deg)"
61
61
  viewBox="0 0 24 24"
62
62
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.102.0",
3
+ "version": "1.104.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Oleg-Perevyshin/ElementsUI.git"
@@ -62,10 +62,10 @@
62
62
  "@sveltejs/kit": "^3.1.1",
63
63
  "@sveltejs/package": "^3.0.2",
64
64
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
65
- "@tailwindcss/vite": "^4.3.4",
65
+ "@tailwindcss/vite": "^4.3.5",
66
66
  "@types/node": "^26.6.6",
67
67
  "dompurify": "^3.4.17",
68
- "maplibre-gl": "^6.16.0",
68
+ "maplibre-gl": "^6.17.0",
69
69
  "marked": "^18.1.3",
70
70
  "prettier": "^3.9.10",
71
71
  "prettier-plugin-svelte": "^4.1.1",
@@ -73,10 +73,13 @@
73
73
  "publint": "^0.3.25",
74
74
  "svelte": "^5.57.3",
75
75
  "svelte-check": "^4.7.8",
76
- "tailwindcss": "^4.3.4",
76
+ "tailwindcss": "^4.3.5",
77
77
  "tsx": "^4.23.15",
78
78
  "typescript": "^6.0.3",
79
- "vite": "^8.3.5",
79
+ "vite": "^8.3.6",
80
80
  "vite-plugin-compression": "^0.5.1"
81
+ },
82
+ "allowScripts": {
83
+ "esbuild@0.28.2": true
81
84
  }
82
85
  }