@svar-ui/svelte-toolbar 2.5.0 → 2.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svar-ui/svelte-toolbar",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Svelte toolbar component. Lightweight, customizable, easy-to-use.",
5
5
  "productTag": "toolbar",
6
6
  "productTrial": false,
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "homepage": "https://svar.dev/svelte/core/",
35
35
  "dependencies": {
36
- "@svar-ui/svelte-core": "2.5.0",
36
+ "@svar-ui/svelte-core": "2.5.1",
37
37
  "@svar-ui/lib-dom": "0.12.1"
38
38
  },
39
39
  "files": [
@@ -12,6 +12,7 @@
12
12
  css = "",
13
13
  values = $bindable(null),
14
14
  overflow = "menu",
15
+ layout = "row",
15
16
  onclick,
16
17
  onchange,
17
18
  } = $props();
@@ -84,7 +85,7 @@
84
85
  let sum = 0;
85
86
  for (let i = 0; i < items.length; i++) {
86
87
  if (items[i].comp != "spacer") {
87
- sum += nodes[i].clientWidth;
88
+ sum += nodes[i]?.clientWidth || 0;
88
89
  if (items[i].comp == "separator") sum += 8;
89
90
  }
90
91
  }
@@ -150,6 +151,7 @@
150
151
  <div
151
152
  class="wx-toolbar {css}"
152
153
  class:wx-wrap={overflow === "wrap"}
154
+ class:wx-column={layout == "column"}
153
155
  bind:this={div}
154
156
  >
155
157
  {#each visibleItems as item}
@@ -182,4 +184,7 @@
182
184
  .wx-toolbar.wx-wrap {
183
185
  flex-wrap: wrap;
184
186
  }
187
+ .wx-column {
188
+ flex-flow: column;
189
+ }
185
190
  </style>
package/whatsnew.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 2.5.2
2
+
3
+ ### Fixes
4
+
5
+ - Impossible to arrange first level items as a column
6
+
7
+ ## 2.5.1
8
+
9
+ - Using Svelte Core v2.5.1
10
+
1
11
  ## 2.5.0
2
12
 
3
13
  - Using Svelte Core v2.5.0