@esportsplus/ui 0.39.2 → 0.39.4

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,7 +1,17 @@
1
- import { Attributes, Renderable } from '@esportsplus/template';
1
+ import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- declare const _default: ({ attributes, content }: {
4
- attributes?: Attributes;
5
- content?: Renderable<any>;
6
- }) => Node;
3
+ declare const _default: {
4
+ (): ReturnType<(this: {
5
+ attributes?: Attributes;
6
+ }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
+ <T extends Attributes>(attributes: T): ReturnType<(this: {
8
+ attributes?: Attributes;
9
+ }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
10
+ <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
11
+ attributes?: Attributes;
12
+ }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
13
+ (attributes: Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
14
+ attributes?: Attributes;
15
+ }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
16
+ };
7
17
  export default _default;
@@ -1,9 +1,14 @@
1
1
  import { html } from '@esportsplus/template';
2
+ import template from '../../components/template/index.js';
2
3
  import './scss/index.scss';
3
- export default ({ attributes, content }) => {
4
+ export default template.factory(function (attributes, content) {
4
5
  return html `
5
- <a class='back link --padding-0px --flex-vertical' ${attributes}>
6
- ${content}
7
- </a>
8
- `;
9
- };
6
+ <a
7
+ class='back link --padding-0px --flex-vertical'
8
+ ${this.attributes}
9
+ ${attributes}
10
+ >
11
+ ${content}
12
+ </a>
13
+ `;
14
+ });
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "private": false,
43
43
  "sideEffects": false,
44
44
  "type": "module",
45
- "version": "0.39.2",
45
+ "version": "0.39.4",
46
46
  "scripts": {
47
47
  "build": "run-s build:vite build:ts",
48
48
  "build:ts": "tsc && tsc-alias",
@@ -1,11 +1,18 @@
1
- import { html, Attributes, Renderable } from '@esportsplus/template';
1
+ import { html, Attributes } from '@esportsplus/template';
2
+ import template from '~/components/template';
2
3
  import './scss/index.scss';
3
4
 
4
5
 
5
- export default ({ attributes, content }: { attributes?: Attributes, content?: Renderable<any> }) => {
6
- return html`
7
- <a class='back link --padding-0px --flex-vertical' ${attributes}>
8
- ${content}
9
- </a>
10
- `;
11
- };
6
+ export default template.factory(
7
+ function (this: { attributes?: Attributes }, attributes, content) {
8
+ return html`
9
+ <a
10
+ class='back link --padding-0px --flex-vertical'
11
+ ${this.attributes}
12
+ ${attributes}
13
+ >
14
+ ${content}
15
+ </a>
16
+ `;
17
+ }
18
+ );