@sveltia/ui 0.72.1 → 0.72.2

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
1
  /**
2
2
  * Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
3
3
  */
4
- export const UI_VERSION: "0.72.1";
4
+ export const UI_VERSION: "0.72.2";
@@ -3,4 +3,4 @@
3
3
  /**
4
4
  * Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
5
5
  */
6
- export const UI_VERSION = '0.72.1';
6
+ export const UI_VERSION = '0.72.2';
@@ -211,8 +211,7 @@
211
211
  align-items: center;
212
212
  gap: 4px;
213
213
  border-radius: var(--sui-tree-item-border-radius, var(--sui-option-border-radius, 4px));
214
- padding: var(--sui-tree-item-padding, 0 8px 0 4px);
215
- padding-inline-start: calc((var(--sui-tree-item-level, 1) - 1) * var(--sui-tree-item-indent, 16px) + 4px);
214
+ padding: var(--sui-tree-item-padding, var(--sui-option-padding, 0 8px));
216
215
  min-height: var(--sui-tree-item-height, var(--sui-option-height));
217
216
  cursor: pointer;
218
217
  transition: background-color 200ms;
@@ -223,6 +222,7 @@
223
222
  display: flex;
224
223
  align-items: center;
225
224
  justify-content: center;
225
+ margin-inline-start: calc((var(--sui-tree-item-level, 1) - 1) * var(--sui-tree-item-indent, 16px));
226
226
  width: var(--sui-tree-item-chevron-size, 24px);
227
227
  height: var(--sui-tree-item-chevron-size, 24px);
228
228
  transition: transform 200ms;
@@ -231,6 +231,7 @@
231
231
  .label {
232
232
  flex: auto;
233
233
  overflow: hidden;
234
+ padding: 0 4px;
234
235
  white-space: nowrap;
235
236
  text-overflow: ellipsis;
236
237
  }
@@ -241,6 +241,7 @@
241
241
  --sui-tree-foreground-color: var(--sui-control-foreground-color);
242
242
  --sui-tree-background-color: hsl(var(--sui-background-color-1-hsl));
243
243
  --sui-tree-item-border-radius: var(--sui-control-medium-border-radius);
244
+ --sui-tree-item-padding: var(--sui-option-padding);
244
245
  --sui-tree-item-height: var(--sui-control-medium-height);
245
246
  --sui-tree-item-indent: 16px;
246
247
  --sui-textbox-border-radius: var(--sui-control-medium-border-radius);
@@ -227,6 +227,7 @@
227
227
  --sui-tree-foreground-color: var(--sui-control-foreground-color);
228
228
  --sui-tree-background-color: hsl(var(--sui-background-color-1-hsl));
229
229
  --sui-tree-item-border-radius: var(--sui-control-medium-border-radius);
230
+ --sui-tree-item-padding: var(--sui-option-padding);
230
231
  --sui-tree-item-height: var(--sui-control-medium-height);
231
232
  --sui-tree-item-indent: 16px;
232
233
  // Textbox: singleline & multiline text fields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.72.1",
3
+ "version": "0.72.2",
4
4
  "description": "A collection of Svelte components and utilities for building user interfaces.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,16 +59,16 @@
59
59
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
60
60
  "@vitest/browser-playwright": "^5.0.0",
61
61
  "@vitest/coverage-v8": "^5.0.0",
62
- "cspell": "^10.3.0",
62
+ "cspell": "^10.3.1",
63
63
  "eslint": "^9.39.5",
64
64
  "eslint-config-airbnb-extended": "^3.2.0",
65
65
  "eslint-config-prettier": "^10.1.8",
66
66
  "eslint-plugin-import": "^2.32.0",
67
- "eslint-plugin-jsdoc": "^64.3.9",
68
- "eslint-plugin-package-json": "^1.8.0",
67
+ "eslint-plugin-jsdoc": "^64.3.10",
68
+ "eslint-plugin-package-json": "^1.8.1",
69
69
  "eslint-plugin-svelte": "^3.23.0",
70
70
  "globals": "^17.12.0",
71
- "happy-dom": "^20.14.3",
71
+ "happy-dom": "^20.14.5",
72
72
  "oxlint": "^1.82.0",
73
73
  "playwright": "^1.63.0",
74
74
  "postcss": "^8.5.28",
@@ -76,7 +76,7 @@
76
76
  "prettier": "^3.9.6",
77
77
  "prettier-plugin-svelte": "^4.1.1",
78
78
  "rolldown": "^1.2.8",
79
- "sass": "^1.104.0",
79
+ "sass": "^1.104.1",
80
80
  "shiki": "^4.4.3",
81
81
  "stylelint": "^17.15.0",
82
82
  "stylelint-config-recommended-scss": "^17.0.1",