@esportsplus/ui 0.13.1 → 0.13.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.
@@ -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
+ };
@@ -28,7 +28,7 @@ export { default as page } from './page/index.js';
28
28
  export { default as root } from './root/index.js';
29
29
  export * as row from './row/index.js';
30
30
  export { default as scrollbar } from './scrollbar/index.js';
31
- export * as sidebar from './sidebar/index.js';
31
+ export { default as sidebar } from './sidebar/index.js';
32
32
  export { default as site } from './site/index.js';
33
33
  export * as text from './text/index.js';
34
34
  export * as thumbnail from './thumbnail/index.js';
@@ -28,7 +28,7 @@ export { default as page } from './page/index.js';
28
28
  export { default as root } from './root/index.js';
29
29
  export * as row from './row/index.js';
30
30
  export { default as scrollbar } from './scrollbar/index.js';
31
- export * as sidebar from './sidebar/index.js';
31
+ export { default as sidebar } from './sidebar/index.js';
32
32
  export { default as site } from './site/index.js';
33
33
  export * as text from './text/index.js';
34
34
  export * as thumbnail from './thumbnail/index.js';
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.3",
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
+ };
@@ -28,7 +28,7 @@ export { default as page } from './page';
28
28
  export { default as root } from './root';
29
29
  export * as row from './row';
30
30
  export { default as scrollbar } from './scrollbar';
31
- export * as sidebar from './sidebar';
31
+ export { default as sidebar } from './sidebar';
32
32
  export { default as site } from './site';
33
33
  export * as text from './text';
34
34
  export * as thumbnail from './thumbnail';