@esportsplus/ui 0.13.1 → 0.13.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 +1,4 @@
1
+ import { svg } from '@esportsplus/template';
1
2
  import './scss/index.scss';
3
+ declare const _default: (attributes: Record<string, unknown>, icon: Parameters<typeof svg.sprite>[0]) => import("@esportsplus/template/build/types").RenderableTemplate;
4
+ export default _default;
@@ -1 +1,9 @@
1
+ import { html, svg } from '@esportsplus/template';
1
2
  import './scss/index.scss';
3
+ export default (attributes, icon) => {
4
+ return html `
5
+ <div class='icon' ${attributes}>
6
+ ${svg.sprite(icon)}
7
+ </div>
8
+ `;
9
+ };
package/package.json CHANGED
@@ -47,7 +47,7 @@
47
47
  "private": false,
48
48
  "sideEffects": false,
49
49
  "type": "module",
50
- "version": "0.13.1",
50
+ "version": "0.13.2",
51
51
  "scripts": {
52
52
  "build": "run-s build:vite build:ts",
53
53
  "build:ts": "tsc && tsc-alias",
@@ -1 +1,11 @@
1
- import './scss/index.scss';
1
+ import { html, svg } from '@esportsplus/template';
2
+ import './scss/index.scss';
3
+
4
+
5
+ export default (attributes: Record<string, unknown>, icon: Parameters<typeof svg.sprite>[0]) => {
6
+ return html`
7
+ <div class='icon' ${attributes}>
8
+ ${svg.sprite(icon)}
9
+ </div>
10
+ `;
11
+ };