kk-web-components 1.3.2 → 1.3.3

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/README.md CHANGED
@@ -17,7 +17,6 @@ import "kk-web-components";
17
17
 
18
18
  // Optionally configure UiIcon globally
19
19
  window.UiIcon = {
20
- version: "1.0",
21
20
  filePath: "/icons/iconset.svg",
22
21
  defaultSize: 24,
23
22
  };
@@ -28,7 +27,7 @@ window.UiIcon = {
28
27
  #### `<ui-icon>`
29
28
 
30
29
  - **Attributes**:
31
- - `name`: The name of the icon in the sprite sheet.
30
+ - `icon`: The name of the icon in the sprite sheet.
32
31
  - `size`: The size of the icon (default: `24`).
33
32
  - `rotation`: Rotate the icon in degrees (default: `0`).
34
33
  - `viewbox`: Optional custom `viewBox` for the SVG.
@@ -36,6 +35,6 @@ window.UiIcon = {
36
35
  Example:
37
36
 
38
37
  ```html
39
- <ui-icon name="home" size="32" rotation="45"></ui-icon>
40
- <ui-icon name="settings"></ui-icon>
38
+ <ui-icon icon="home" size="32" rotation="45"></ui-icon>
39
+ <ui-icon icon="settings"></ui-icon>
41
40
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kk-web-components",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "A collection of reusable web components, including ui-icon and others.",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
package/src/ui-icon.js CHANGED
@@ -111,6 +111,7 @@ const sharedStylesText = `
111
111
  }
112
112
  svg {
113
113
  display: block;
114
+ pointer-events: none;
114
115
  }
115
116
  `;
116
117