@svar-ui/svelte-toolbar 2.3.0 → 2.4.1

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.3.0",
3
+ "version": "2.4.1",
4
4
  "description": "Svelte toolbar component. Lightweight, customizable, easy-to-use.",
5
5
  "productTag": "toolbar",
6
6
  "productTrial": false,
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "homepage": "https://svar.dev/svelte/core/",
35
35
  "dependencies": {
36
- "@svar-ui/svelte-core": "2.3.1",
37
- "@svar-ui/lib-dom": "0.9.2"
36
+ "@svar-ui/svelte-core": "2.4.1",
37
+ "@svar-ui/lib-dom": "0.12.0"
38
38
  },
39
39
  "files": [
40
40
  "src",
package/readme.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  # SVAR Svelte Toolbar
4
4
 
5
- [![npm](https://img.shields.io/npm/v/wx-svelte-toolbar.svg)](https://www.npmjs.com/package/wx-svelte-toolbar)
5
+ [![npm](https://img.shields.io/npm/v/@svar-ui/svelte-toolbar.svg)](https://www.npmjs.com/package/@svar-ui/svelte-toolbar)
6
6
  [![License](https://img.shields.io/github/license/svar-widgets/toolbar)](https://github.com/svar-widgets/toolbar/blob/main/license.txt)
7
- [![npm downloads](https://img.shields.io/npm/dm/wx-svelte-toolbar.svg)](https://www.npmjs.com/package/wx-svelte-toolbar)
7
+ [![npm downloads](https://img.shields.io/npm/dm/@svar-ui/svelte-toolbar.svg)](https://www.npmjs.com/package/@svar-ui/svelte-toolbar)
8
8
 
9
9
  </div>
10
10
 
@@ -22,7 +22,7 @@ To use the widget, simply import the package and include the component in your S
22
22
 
23
23
  ```svelte
24
24
  <script>
25
- import { Toolbar } from "wx-svelte-toolbar";
25
+ import { Toolbar } from "@svar-ui/svelte-toolbar";
26
26
 
27
27
  function onClick(item) {
28
28
  message = "Button '" + item.id + "' clicked";
@@ -1,4 +1,5 @@
1
1
  <script>
2
+ import { setID } from "@svar-ui/lib-dom";
2
3
  import { getItemHandler } from "../helpers";
3
4
  import Separator from "../buttons/Separator.svelte";
4
5
  import Spacer from "../buttons/Spacer.svelte";
@@ -31,7 +32,7 @@
31
32
  class="wx-tb-element {item.css || ''}"
32
33
  class:wx-spacer={item.spacer}
33
34
  class:wx-menu={menu}
34
- data-id={item.id}
35
+ data-id={setID(item.id)}
35
36
  >
36
37
  <SvelteComponent
37
38
  {value}
package/whatsnew.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 2.4.1
2
+
3
+ - Using Svelte Core v2.4.1
4
+
5
+ ## 2.4.0
6
+
7
+ - Using Svelte Core v2.4.0
8
+
1
9
  ## 2.3.0
2
10
 
3
11
  ### New features