@esportsplus/ui 0.39.2 → 0.39.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,7 +1,20 @@
|
|
|
1
|
-
import { Attributes, Renderable } from '@esportsplus/template';
|
|
2
1
|
import './scss/index.scss';
|
|
3
|
-
declare const _default:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): ReturnType<(this: {
|
|
4
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
5
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
6
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
7
|
+
<T extends import("@esportsplus/template").Attributes>(attributes: T): ReturnType<(this: {
|
|
8
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
9
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
10
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
11
|
+
<T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
|
|
12
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
13
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
14
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
15
|
+
(attributes: import("@esportsplus/template").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
16
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
17
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
18
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
19
|
+
};
|
|
7
20
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { html } from '@esportsplus/template';
|
|
2
|
+
import template from '../../components/template/index.js';
|
|
2
3
|
import './scss/index.scss';
|
|
3
|
-
export default (
|
|
4
|
+
export default template.factory((attributes, content) => {
|
|
4
5
|
return html `
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
6
|
+
<a class='back link --padding-0px --flex-vertical' ${attributes}>
|
|
7
|
+
${content}
|
|
8
|
+
</a>
|
|
9
|
+
`;
|
|
10
|
+
});
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { html
|
|
1
|
+
import { html } from '@esportsplus/template';
|
|
2
|
+
import template from '~/components/template';
|
|
2
3
|
import './scss/index.scss';
|
|
3
4
|
|
|
4
5
|
|
|
5
|
-
export default (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
${
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
export default template.factory(
|
|
7
|
+
(attributes, content) => {
|
|
8
|
+
return html`
|
|
9
|
+
<a class='back link --padding-0px --flex-vertical' ${attributes}>
|
|
10
|
+
${content}
|
|
11
|
+
</a>
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
);
|