@esportsplus/ui 0.51.7 → 0.53.0
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 +2 -3
- package/build/components/accordion/index.d.ts +15 -10
- package/build/components/accordion/index.js +8 -34
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/back/index.d.ts +14 -11
- package/build/components/back/index.js +3 -3
- package/build/components/button/index.js +2 -2
- package/build/components/checkbox/index.js +7 -3
- package/build/components/clipboard/index.d.ts +23 -20
- package/build/components/clipboard/index.js +1 -0
- package/build/components/clipboard/onclick.js +3 -3
- package/build/components/form/input.js +3 -3
- package/build/components/frame/index.d.ts +16 -15
- package/build/components/frame/index.js +11 -5
- package/build/components/highlight/index.js +2 -2
- package/build/components/icon/index.js +2 -2
- package/build/components/index.d.ts +1 -4
- package/build/components/index.js +1 -4
- package/build/components/loader/index.js +4 -4
- package/build/components/loader/scss/index.scss +1 -1
- package/build/components/overlay/index.d.ts +16 -15
- package/build/components/overlay/index.js +11 -5
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +3 -6
- package/build/components/select/index.js +72 -78
- package/build/components/sidebar/index.d.ts +16 -15
- package/build/components/sidebar/index.js +11 -5
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/toast/index.d.ts +9 -0
- package/build/components/toast/index.js +157 -0
- package/build/components/toast/manager.d.ts +60 -0
- package/build/components/toast/manager.js +203 -0
- package/build/components/toast/scss/index.scss +2 -0
- package/build/components/toast/svg/check.svg +1 -0
- package/build/components/toast/svg/chevron.svg +1 -0
- package/build/components/toast/svg/close.svg +1 -0
- package/build/components/toast/svg/copy.svg +1 -0
- package/build/components/toast/svg/error.svg +1 -0
- package/build/components/toast/svg/info.svg +1 -0
- package/build/components/toast/svg/loading.svg +1 -0
- package/build/components/toast/svg/success.svg +1 -0
- package/build/components/toast/svg/warning.svg +1 -0
- package/build/components/tooltip/index.d.ts +40 -40
- package/build/components/tooltip/menu.js +37 -23
- package/build/components/tooltip/onclick.d.ts +20 -20
- package/build/components/tooltip/onclick.js +2 -2
- package/build/components/tooltip/onhover.js +2 -2
- package/build/components/typewriter/index.js +2 -2
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/scroll-fade/scss/index.scss +2 -0
- package/build/css-utilities/scrollbar/scss/index.scss +2 -0
- package/build/themes/dark/back.d.ts +8 -4
- package/build/themes/dark/index.d.ts +0 -1
- package/build/themes/dark/index.js +0 -1
- package/build/themes/dark/input.d.ts +2 -2
- package/build/themes/dark/select.d.ts +60 -110
- package/build/themes/dark/textarea.d.ts +2 -2
- package/package.json +15 -15
- package/pnpm-workspace.yaml +11 -8
- package/src/components/accordion/index.ts +7 -30
- package/src/components/accordion/scss/index.scss +9 -12
- package/src/components/back/index.ts +4 -5
- package/src/components/button/index.ts +2 -3
- package/src/components/checkbox/index.ts +7 -2
- package/src/components/clipboard/index.ts +2 -1
- package/src/components/clipboard/onclick.ts +3 -4
- package/src/components/form/input.ts +4 -4
- package/src/components/frame/index.ts +9 -5
- package/src/components/highlight/index.ts +2 -3
- package/src/components/icon/index.ts +2 -3
- package/src/components/index.ts +1 -4
- package/src/components/loader/index.ts +5 -6
- package/src/components/loader/scss/index.scss +1 -1
- package/src/components/overlay/index.ts +9 -5
- package/src/components/overlay/scss/index.scss +0 -1
- package/src/components/page/scss/index.scss +1 -1
- package/src/components/root/scss/index.scss +35 -4
- package/src/components/root/scss/variables.scss +1 -2
- package/src/components/select/index.ts +71 -83
- package/src/components/sidebar/index.ts +9 -5
- package/src/components/sidebar/scss/index.scss +0 -1
- package/src/components/toast/index.ts +188 -0
- package/src/components/toast/manager.ts +312 -0
- package/src/components/toast/scss/index.scss +276 -0
- package/src/components/toast/scss/variables.scss +19 -0
- package/src/components/toast/svg/check.svg +1 -0
- package/src/components/toast/svg/chevron.svg +1 -0
- package/src/components/toast/svg/close.svg +1 -0
- package/src/components/toast/svg/copy.svg +1 -0
- package/src/components/toast/svg/error.svg +1 -0
- package/src/components/toast/svg/info.svg +1 -0
- package/src/components/toast/svg/loading.svg +1 -0
- package/src/components/toast/svg/success.svg +1 -0
- package/src/components/toast/svg/warning.svg +1 -0
- package/src/components/tooltip/menu.ts +8 -4
- package/src/components/tooltip/onclick.ts +2 -3
- package/src/components/tooltip/onhover.ts +2 -3
- package/src/components/typewriter/index.ts +2 -3
- package/src/css-utilities/index.scss +3 -2
- package/src/css-utilities/scroll-fade/scss/index.scss +47 -0
- package/src/css-utilities/scroll-fade/scss/variables.scss +3 -0
- package/src/css-utilities/scrollbar/scss/index.scss +53 -0
- package/src/css-utilities/scrollbar/scss/variables.scss +5 -0
- package/src/themes/dark/index.ts +0 -1
- package/src/tokens/scss/color.scss +14 -14
- package/src/tokens/scss/font-size.scss +12 -11
- package/src/tokens/scss/line-height.scss +7 -4
- package/src/tokens/scss/scale.scss +22 -0
- package/src/tokens/scss/size.scss +12 -9
- package/src/tokens/scss/spacer.scss +9 -9
- package/storage/svg/bolt.svg +1 -0
- package/storage/svg/star.svg +1 -0
- package/tsconfig.json +6 -2
- package/vite-env.d.ts +1 -0
- package/vite.config.ts +73 -72
- package/build/components/alert/index.d.ts +0 -19
- package/build/components/alert/index.js +0 -151
- package/build/components/alert/scss/index.scss +0 -2
- package/build/components/alert/svg/check.svg +0 -11
- package/build/components/alert/svg/close.svg +0 -12
- package/build/components/alert/svg/error.svg +0 -18
- package/build/components/scrollbar/index.d.ts +0 -27
- package/build/components/scrollbar/index.js +0 -56
- package/build/components/scrollbar/scss/index.scss +0 -2
- package/build/components/site/index.d.ts +0 -20
- package/build/components/site/index.js +0 -9
- package/build/components/site/scss/index.scss +0 -2
- package/build/components/template/index.d.ts +0 -14
- package/build/components/template/index.js +0 -21
- package/build/css-utilities/scroller/scss/index.scss +0 -2
- package/build/themes/dark/alert.d.ts +0 -11
- package/build/themes/dark/alert.js +0 -20
- package/src/components/accordion/scss/variables.scss +0 -9
- package/src/components/alert/index.ts +0 -165
- package/src/components/alert/scss/index.scss +0 -25
- package/src/components/alert/scss/variables.scss +0 -3
- package/src/components/alert/svg/check.svg +0 -11
- package/src/components/alert/svg/close.svg +0 -12
- package/src/components/alert/svg/error.svg +0 -18
- package/src/components/scrollbar/index.ts +0 -70
- package/src/components/scrollbar/scss/index.scss +0 -82
- package/src/components/scrollbar/scss/variables.scss +0 -6
- package/src/components/site/index.ts +0 -11
- package/src/components/site/scss/index.scss +0 -3
- package/src/components/template/index.ts +0 -40
- package/src/css-utilities/scroller/scss/index.scss +0 -8
- package/src/css-utilities/scroller/scss/variables.scss +0 -4
- package/src/themes/dark/alert.ts +0 -23
package/README.md
CHANGED
|
@@ -85,10 +85,9 @@ html`
|
|
|
85
85
|
### Layout
|
|
86
86
|
| Component | Description |
|
|
87
87
|
|-----------|-------------|
|
|
88
|
-
| `scrollbar` |
|
|
88
|
+
| `scrollbar` | Native scrollbar styling |
|
|
89
89
|
| `frame` | Scrollable frame |
|
|
90
90
|
| `sidebar` | Side navigation |
|
|
91
|
-
| `site` | Site wrapper |
|
|
92
91
|
| `overlay` | Modal/overlay container |
|
|
93
92
|
|
|
94
93
|
### Utility
|
|
@@ -212,7 +211,7 @@ Each component exposes CSS custom properties:
|
|
|
212
211
|
```scss
|
|
213
212
|
.ui-button {
|
|
214
213
|
--background: var(--color-blue-400);
|
|
215
|
-
--color: var(--color-white);
|
|
214
|
+
--color: var(--color-white-400);
|
|
216
215
|
--border-radius: var(--border-radius-300);
|
|
217
216
|
--padding-horizontal: 16px;
|
|
218
217
|
--padding-vertical: 8px;
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import { Attributes } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
|
+
type A = Attributes & {
|
|
5
|
+
state: {
|
|
6
|
+
active: boolean | number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
declare const _default: {
|
|
5
10
|
(): ReturnType<(this: {
|
|
6
|
-
attributes?:
|
|
11
|
+
attributes?: A | undefined;
|
|
7
12
|
content?: template_u1.Renderable<any>;
|
|
8
|
-
}, attributes: Readonly<
|
|
9
|
-
<T extends
|
|
10
|
-
attributes?:
|
|
13
|
+
}, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
14
|
+
<T extends A>(attributes: T): ReturnType<(this: {
|
|
15
|
+
attributes?: A | undefined;
|
|
11
16
|
content?: template_u1.Renderable<any>;
|
|
12
|
-
}, attributes: Readonly<
|
|
17
|
+
}, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
13
18
|
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
14
|
-
attributes?:
|
|
19
|
+
attributes?: A | undefined;
|
|
15
20
|
content?: template_u1.Renderable<any>;
|
|
16
|
-
}, attributes: Readonly<
|
|
17
|
-
(attributes:
|
|
18
|
-
attributes?:
|
|
21
|
+
}, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
22
|
+
(attributes: A, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
23
|
+
attributes?: A | undefined;
|
|
19
24
|
content?: template_u1.Renderable<any>;
|
|
20
|
-
}, attributes: Readonly<
|
|
25
|
+
}, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
21
26
|
};
|
|
22
27
|
export default _default;
|
|
@@ -1,42 +1,16 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../template/index.js';
|
|
5
4
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
class ReactiveObject_04mlrpv0 extends reactivity_u0.ReactiveObject {
|
|
8
|
-
#active = this[reactivity_u0.SIGNAL](0);
|
|
9
|
-
constructor() {
|
|
10
|
-
super(null);
|
|
11
|
-
}
|
|
12
|
-
get active() {
|
|
13
|
-
return reactivity_u0.read(this.#active);
|
|
14
|
-
}
|
|
15
|
-
set active(_v0) {
|
|
16
|
-
reactivity_u0.write(this.#active, _v0);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
5
|
+
const template_04mlrpv1 = template_u1.template(`<div class='accordion' ><div class='accordion-content'>`);
|
|
19
6
|
const OMIT = ['state'];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
let ref, state = attributes.state || new ReactiveObject_04mlrpv0();
|
|
7
|
+
export default component(function (attributes, content) {
|
|
8
|
+
let state = attributes.state;
|
|
23
9
|
return (() => {
|
|
24
|
-
let
|
|
25
|
-
template_u1.setProperties(
|
|
26
|
-
template_u1.
|
|
27
|
-
return state.active && '--active';
|
|
28
|
-
});
|
|
29
|
-
template_u1.onrender(element_04mlrpv3, (element) => {
|
|
30
|
-
(ref = element)[key] = state;
|
|
31
|
-
});
|
|
32
|
-
template_u1.setList(element_04mlrpv3, 'style', () => {
|
|
33
|
-
let parent = ref.closest('accordion');
|
|
34
|
-
if (parent && key in parent) {
|
|
35
|
-
parent[key].active = (+parent[key].active) + 1;
|
|
36
|
-
}
|
|
37
|
-
return state.active && `--max-height: ${ref.scrollHeight}`;
|
|
38
|
-
});
|
|
10
|
+
let root_04mlrpv0 = template_04mlrpv1(), element_04mlrpv2 = root_04mlrpv0.firstChild, element_04mlrpv3 = element_04mlrpv2.firstElementChild;
|
|
11
|
+
template_u1.setProperties(element_04mlrpv2, omit(attributes, OMIT));
|
|
12
|
+
template_u1.setProperty(element_04mlrpv2, 'inert', () => !state.active);
|
|
39
13
|
template_u1.slot(element_04mlrpv3, content, 1);
|
|
40
|
-
return
|
|
14
|
+
return root_04mlrpv0;
|
|
41
15
|
})();
|
|
42
16
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.accordion
|
|
1
|
+
@layer components {.accordion{grid-template-rows:1fr;transition:grid-template-rows .3s;display:grid}.accordion[inert]{grid-template-rows:0fr}.accordion-content{min-height:0;overflow:hidden}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { Attributes } from '@esportsplus/template';
|
|
3
2
|
import './scss/index.scss';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
(): ReturnType<(this: {
|
|
6
|
-
attributes?: Attributes;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
attributes?: template_u1.Attributes | undefined;
|
|
6
|
+
content?: template_u1.Renderable<any>;
|
|
7
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
8
|
+
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_u1.Attributes | undefined;
|
|
10
|
+
content?: template_u1.Renderable<any>;
|
|
11
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
11
12
|
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
12
|
-
attributes?: Attributes;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
attributes?: template_u1.Attributes | undefined;
|
|
14
|
+
content?: template_u1.Renderable<any>;
|
|
15
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
16
|
+
(attributes: template_u1.Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
17
|
+
attributes?: template_u1.Attributes | undefined;
|
|
18
|
+
content?: template_u1.Renderable<any>;
|
|
19
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
17
20
|
};
|
|
18
21
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
2
3
|
import icon from '../icon/index.js';
|
|
3
|
-
import template from '../template/index.js';
|
|
4
4
|
import arrow from './svg/arrow.svg';
|
|
5
5
|
import './scss/index.scss';
|
|
6
6
|
const template_1hhpvdm1 = template_u1.template(`<a class='back link --padding-0px --flex-vertical' ><!--$-->`);
|
|
7
|
-
export default
|
|
7
|
+
export default component(function (attributes, content) {
|
|
8
8
|
return (() => {
|
|
9
9
|
let root_1hhpvdm0 = template_1hhpvdm1(), element_1hhpvdm2 = root_1hhpvdm0.firstChild, element_1hhpvdm3 = element_1hhpvdm2.firstChild;
|
|
10
|
-
template_u1.setProperties(element_1hhpvdm2, this
|
|
10
|
+
template_u1.setProperties(element_1hhpvdm2, this?.attributes);
|
|
11
11
|
template_u1.setProperties(element_1hhpvdm2, attributes);
|
|
12
12
|
template_u1.slot(element_1hhpvdm3, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
|
|
13
13
|
template_u1.slot(element_1hhpvdm2, content, 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
2
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
-
import template from '../template/index.js';
|
|
4
4
|
import './scss/index.scss';
|
|
5
5
|
const template_1u9ndnf2 = template_u1.template(`<div class='button ' >`);
|
|
6
6
|
class ReactiveObject_1u9ndnf0 extends reactivity_u0.ReactiveObject {
|
|
@@ -22,7 +22,7 @@ class ReactiveObject_1u9ndnf0 extends reactivity_u0.ReactiveObject {
|
|
|
22
22
|
reactivity_u0.write(this.#holding, _v1);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
const hold =
|
|
25
|
+
const hold = component(function (attributes, content) {
|
|
26
26
|
let end = () => {
|
|
27
27
|
if (!state.complete) {
|
|
28
28
|
state.holding = false;
|
|
@@ -4,7 +4,7 @@ import { root } from '@esportsplus/reactivity';
|
|
|
4
4
|
import { omit } from '@esportsplus/utilities';
|
|
5
5
|
import form from '../form/index.js';
|
|
6
6
|
import './scss/index.scss';
|
|
7
|
-
const template_0l38kpg2 = template_u1.template(`<div
|
|
7
|
+
const template_0l38kpg2 = template_u1.template(`<div><input >`);
|
|
8
8
|
class ReactiveObject_0l38kpg0 extends reactivity_u0.ReactiveObject {
|
|
9
9
|
#active = this[reactivity_u0.SIGNAL](false);
|
|
10
10
|
#error = this[reactivity_u0.SIGNAL]('');
|
|
@@ -27,20 +27,24 @@ class ReactiveObject_0l38kpg0 extends reactivity_u0.ReactiveObject {
|
|
|
27
27
|
const OMIT = ['checked', 'value'];
|
|
28
28
|
const factory = (type) => {
|
|
29
29
|
function template(attributes) {
|
|
30
|
-
let state = attributes?.state || new ReactiveObject_0l38kpg0();
|
|
30
|
+
let ref, state = attributes?.state || new ReactiveObject_0l38kpg0();
|
|
31
31
|
if (attributes?.checked) {
|
|
32
32
|
state.active = true;
|
|
33
33
|
}
|
|
34
34
|
return (() => {
|
|
35
35
|
let root_0l38kpg1 = template_0l38kpg2(), element_0l38kpg3 = root_0l38kpg1.firstChild, element_0l38kpg4 = element_0l38kpg3.firstElementChild;
|
|
36
|
-
template_u1.setList(element_0l38kpg3, 'class', (
|
|
36
|
+
template_u1.setList(element_0l38kpg3, 'class', () => state.active ? type + " --active" : type);
|
|
37
37
|
template_u1.setProperties(element_0l38kpg3, this?.attributes && omit(this.attributes, OMIT));
|
|
38
38
|
template_u1.setProperties(element_0l38kpg3, attributes && omit(attributes, OMIT));
|
|
39
|
+
template_u1.delegate(element_0l38kpg3, 'click', () => ref.click());
|
|
39
40
|
template_u1.setProperty(element_0l38kpg4, 'checked', attributes?.checked || root(() => state.active));
|
|
40
41
|
template_u1.setList(element_0l38kpg4, 'class', `${type}-tag`);
|
|
41
42
|
template_u1.delegate(element_0l38kpg4, 'change', (e) => {
|
|
42
43
|
state.active = e.target.checked;
|
|
43
44
|
});
|
|
45
|
+
template_u1.onconnect(element_0l38kpg4, (input) => {
|
|
46
|
+
ref = input;
|
|
47
|
+
});
|
|
44
48
|
template_u1.onrender(element_0l38kpg4, form.input.onrender(state));
|
|
45
49
|
template_u1.setProperty(element_0l38kpg4, 'type', type === 'radio' ? 'radio' : 'checkbox');
|
|
46
50
|
template_u1.setProperty(element_0l38kpg4, 'value', attributes?.value || 1);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import onclick from './onclick.js';
|
|
2
|
+
import write from './write.js';
|
|
1
3
|
declare const _default: {
|
|
2
4
|
onclick: {
|
|
3
5
|
(): ReturnType<(this: {
|
|
@@ -5,8 +7,8 @@ declare const _default: {
|
|
|
5
7
|
timeout?: number;
|
|
6
8
|
value: string;
|
|
7
9
|
} & {
|
|
8
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
9
|
-
[key: `data-${string}`]: string | undefined;
|
|
10
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
11
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
10
12
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
11
13
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
12
14
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -128,8 +130,8 @@ declare const _default: {
|
|
|
128
130
|
timeout?: number;
|
|
129
131
|
value: string;
|
|
130
132
|
} & {
|
|
131
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
132
|
-
[key: `data-${string}`]: string | undefined;
|
|
133
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
134
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
133
135
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
134
136
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
135
137
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -250,8 +252,8 @@ declare const _default: {
|
|
|
250
252
|
timeout?: number;
|
|
251
253
|
value: string;
|
|
252
254
|
} & {
|
|
253
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
254
|
-
[key: `data-${string}`]: string | undefined;
|
|
255
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
256
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
255
257
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
256
258
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
257
259
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -370,8 +372,8 @@ declare const _default: {
|
|
|
370
372
|
timeout?: number;
|
|
371
373
|
value: string;
|
|
372
374
|
} & {
|
|
373
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
374
|
-
[key: `data-${string}`]: string | undefined;
|
|
375
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
376
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
375
377
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
376
378
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
377
379
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -493,8 +495,8 @@ declare const _default: {
|
|
|
493
495
|
timeout?: number;
|
|
494
496
|
value: string;
|
|
495
497
|
} & {
|
|
496
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
497
|
-
[key: `data-${string}`]: string | undefined;
|
|
498
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
499
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
498
500
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
499
501
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
500
502
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -618,8 +620,8 @@ declare const _default: {
|
|
|
618
620
|
timeout?: number;
|
|
619
621
|
value: string;
|
|
620
622
|
} & {
|
|
621
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
622
|
-
[key: `data-${string}`]: string | undefined;
|
|
623
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
624
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
623
625
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
624
626
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
625
627
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -741,8 +743,8 @@ declare const _default: {
|
|
|
741
743
|
timeout?: number;
|
|
742
744
|
value: string;
|
|
743
745
|
} & {
|
|
744
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
745
|
-
[key: `data-${string}`]: string | undefined;
|
|
746
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
747
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
746
748
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
747
749
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
748
750
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -863,8 +865,8 @@ declare const _default: {
|
|
|
863
865
|
timeout?: number;
|
|
864
866
|
value: string;
|
|
865
867
|
} & {
|
|
866
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
867
|
-
[key: `data-${string}`]: string | undefined;
|
|
868
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
869
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
868
870
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
869
871
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
870
872
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -985,8 +987,8 @@ declare const _default: {
|
|
|
985
987
|
timeout?: number;
|
|
986
988
|
value: string;
|
|
987
989
|
} & {
|
|
988
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
989
|
-
[key: `data-${string}`]: string | undefined;
|
|
990
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
991
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
990
992
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
991
993
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
992
994
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1108,8 +1110,8 @@ declare const _default: {
|
|
|
1108
1110
|
timeout?: number;
|
|
1109
1111
|
value: string;
|
|
1110
1112
|
} & {
|
|
1111
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1112
|
-
[key: `data-${string}`]: string | undefined;
|
|
1113
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1114
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1113
1115
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1114
1116
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1115
1117
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1230,3 +1232,4 @@ declare const _default: {
|
|
|
1230
1232
|
write: (value: string) => Promise<boolean>;
|
|
1231
1233
|
};
|
|
1232
1234
|
export default _default;
|
|
1235
|
+
export { onclick, write };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
2
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
4
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../template/index.js';
|
|
5
5
|
import write from './write.js';
|
|
6
6
|
const template_0g8trzu2 = template_u1.template(`<div>`);
|
|
7
7
|
class ReactiveObject_0g8trzu0 extends reactivity_u0.ReactiveObject {
|
|
@@ -17,7 +17,7 @@ class ReactiveObject_0g8trzu0 extends reactivity_u0.ReactiveObject {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
const OMIT = ['timeout', 'value'];
|
|
20
|
-
export default
|
|
20
|
+
export default component(function (attributes, content) {
|
|
21
21
|
let state = new ReactiveObject_0g8trzu0(), timeout = attributes.timeout || 1000 * 2;
|
|
22
22
|
return (() => {
|
|
23
23
|
let root_0g8trzu1 = template_0g8trzu2(), element_0g8trzu3 = root_0g8trzu1.firstChild;
|
|
@@ -25,7 +25,7 @@ export default template.factory(function (attributes, content) {
|
|
|
25
25
|
template_u1.delegate(element_0g8trzu3, 'click', (e) => {
|
|
26
26
|
e.preventDefault();
|
|
27
27
|
e.stopPropagation();
|
|
28
|
-
write(attributes.value).then(() => {
|
|
28
|
+
void write(attributes.value).then(() => {
|
|
29
29
|
state.copied = true;
|
|
30
30
|
setTimeout(() => {
|
|
31
31
|
state.copied = false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
const KEY = Symbol();
|
|
2
2
|
const get = (element) => {
|
|
3
3
|
if (element) {
|
|
4
|
-
return element[
|
|
4
|
+
return element[KEY];
|
|
5
5
|
}
|
|
6
6
|
return undefined;
|
|
7
7
|
};
|
|
8
8
|
const onrender = (reactive) => {
|
|
9
9
|
return (element) => {
|
|
10
|
-
element[
|
|
10
|
+
element[KEY] = reactive;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export default { get, onrender };
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
1
2
|
import './scss/index.scss';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
(): ReturnType<(this: {
|
|
4
|
-
attributes?:
|
|
5
|
-
content?:
|
|
6
|
-
}, attributes: Readonly<
|
|
7
|
-
<T extends
|
|
8
|
-
attributes?:
|
|
9
|
-
content?:
|
|
10
|
-
}, attributes: Readonly<
|
|
11
|
-
<T extends
|
|
12
|
-
attributes?:
|
|
13
|
-
content?:
|
|
14
|
-
}, attributes: Readonly<
|
|
15
|
-
(attributes:
|
|
16
|
-
attributes?:
|
|
17
|
-
content?:
|
|
18
|
-
}, attributes: Readonly<
|
|
5
|
+
attributes?: template_u1.Attributes | undefined;
|
|
6
|
+
content?: template_u1.Renderable<any>;
|
|
7
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
8
|
+
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_u1.Attributes | undefined;
|
|
10
|
+
content?: template_u1.Renderable<any>;
|
|
11
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
12
|
+
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
13
|
+
attributes?: template_u1.Attributes | undefined;
|
|
14
|
+
content?: template_u1.Renderable<any>;
|
|
15
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
16
|
+
(attributes: template_u1.Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
17
|
+
attributes?: template_u1.Attributes | undefined;
|
|
18
|
+
content?: template_u1.Renderable<any>;
|
|
19
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
19
20
|
};
|
|
20
21
|
export default _default;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
2
3
|
import './scss/index.scss';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const template_0f2789a1 = template_u1.template(`<div class='frame --scrollbar' >`);
|
|
5
|
+
export default component(function (attributes, content) {
|
|
6
|
+
return (() => {
|
|
7
|
+
let root_0f2789a0 = template_0f2789a1(), element_0f2789a2 = root_0f2789a0.firstChild;
|
|
8
|
+
template_u1.setProperties(element_0f2789a2, this?.attributes);
|
|
9
|
+
template_u1.setProperties(element_0f2789a2, attributes);
|
|
10
|
+
template_u1.slot(element_0f2789a2, content, 1);
|
|
11
|
+
return root_0f2789a0;
|
|
12
|
+
})();
|
|
7
13
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
2
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
4
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
6
|
const template_0k38r592 = template_u1.template(`<div class='highlight' >`);
|
|
7
7
|
class ReactiveObject_0k38r590 extends reactivity_u0.ReactiveObject {
|
|
@@ -18,7 +18,7 @@ class ReactiveObject_0k38r590 extends reactivity_u0.ReactiveObject {
|
|
|
18
18
|
}
|
|
19
19
|
const OMIT = ['background'];
|
|
20
20
|
let key = Symbol(), observer = null;
|
|
21
|
-
export default
|
|
21
|
+
export default component((attributes, content) => {
|
|
22
22
|
if (observer === null) {
|
|
23
23
|
observer = new IntersectionObserver((entries) => {
|
|
24
24
|
let disconnected = 0, n = entries.length;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
4
|
const template_1lt0nhw1 = template_u1.template(`<div class='icon' ><svg><use href='' />`);
|
|
5
|
-
export default
|
|
5
|
+
export default component((attributes, href) => {
|
|
6
6
|
if (href[0] !== '#') {
|
|
7
7
|
href = '#' + href;
|
|
8
8
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as accordion } from './accordion/index.js';
|
|
2
|
-
export { default as alert } from './alert/index.js';
|
|
3
2
|
export { default as back } from './back/index.js';
|
|
4
3
|
export { default as button } from './button/index.js';
|
|
5
4
|
export { default as checkbox } from './checkbox/index.js';
|
|
@@ -21,11 +20,9 @@ export { default as range } from './range/index.js';
|
|
|
21
20
|
export { default as root } from './root/index.js';
|
|
22
21
|
export { default as select } from './select/index.js';
|
|
23
22
|
export { default as switch } from './switch/index.js';
|
|
24
|
-
export { default as scrollbar } from './scrollbar/index.js';
|
|
25
23
|
export { default as sidebar } from './sidebar/index.js';
|
|
26
|
-
export { default as site } from './site/index.js';
|
|
27
|
-
export { default as template } from './template/index.js';
|
|
28
24
|
export { default as textarea } from './textarea/index.js';
|
|
25
|
+
export { default as toaster, toast } from './toast/index.js';
|
|
29
26
|
export { default as tooltip } from './tooltip/index.js';
|
|
30
27
|
export { default as truncate } from './truncate/index.js';
|
|
31
28
|
export { default as typewriter } from './typewriter/index.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as accordion } from './accordion/index.js';
|
|
2
|
-
export { default as alert } from './alert/index.js';
|
|
3
2
|
export { default as back } from './back/index.js';
|
|
4
3
|
export { default as button } from './button/index.js';
|
|
5
4
|
export { default as checkbox } from './checkbox/index.js';
|
|
@@ -21,11 +20,9 @@ export { default as range } from './range/index.js';
|
|
|
21
20
|
export { default as root } from './root/index.js';
|
|
22
21
|
export { default as select } from './select/index.js';
|
|
23
22
|
export { default as switch } from './switch/index.js';
|
|
24
|
-
export { default as scrollbar } from './scrollbar/index.js';
|
|
25
23
|
export { default as sidebar } from './sidebar/index.js';
|
|
26
|
-
export { default as site } from './site/index.js';
|
|
27
|
-
export { default as template } from './template/index.js';
|
|
28
24
|
export { default as textarea } from './textarea/index.js';
|
|
25
|
+
export { default as toaster, toast } from './toast/index.js';
|
|
29
26
|
export { default as tooltip } from './tooltip/index.js';
|
|
30
27
|
export { default as truncate } from './truncate/index.js';
|
|
31
28
|
export { default as typewriter } from './typewriter/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
2
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
4
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
6
|
const template_0bvfqbq2 = template_u1.template(`<div class='loader-content' ><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);' >`);
|
|
7
7
|
const template_0bvfqbq6 = template_u1.template(`<div class='loader '><div class='loader ' >`);
|
|
@@ -32,7 +32,7 @@ class ReactiveObject_0bvfqbq0 extends reactivity_u0.ReactiveObject {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
const OMIT = ['loader-content', 'loader-logo'];
|
|
35
|
-
export default
|
|
35
|
+
export default component((attributes, content) => {
|
|
36
36
|
let state = new ReactiveObject_0bvfqbq0();
|
|
37
37
|
return () => {
|
|
38
38
|
if (state.remove) {
|
|
@@ -42,9 +42,9 @@ export default template.factory((attributes, content) => {
|
|
|
42
42
|
return (() => {
|
|
43
43
|
let root_0bvfqbq5 = template_0bvfqbq6(), element_0bvfqbq7 = root_0bvfqbq5.firstChild, element_0bvfqbq8 = element_0bvfqbq7.firstElementChild;
|
|
44
44
|
template_u1.setList(element_0bvfqbq7, 'class', () => state.load && 'loader--load');
|
|
45
|
-
template_u1.delegate(element_0bvfqbq7, 'animationend', (
|
|
45
|
+
template_u1.delegate(element_0bvfqbq7, 'animationend', ({ animationName: name }) => {
|
|
46
46
|
i++;
|
|
47
|
-
if (
|
|
47
|
+
if (name === 'move' && i > 1) {
|
|
48
48
|
state.remove = true;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.loader-logo{--size:10svh;--translateY:8px}.loader{opacity:1;pointer-events:none;visibility:visible;z-index:9999;background-color:#01020964;transition:
|
|
1
|
+
@layer components {.loader-logo{--size:10svh;--translateY:8px}.loader{opacity:1;pointer-events:none;visibility:visible;z-index:9999;background-color:#01020964;transition:opacity .3s ease-in-out,visibility .3s ease-in-out;position:fixed;inset:0}.loader--load{animation:.4s ease-in-out .2s both loaderMove}.loader--load .loader--load{animation:.4s ease-in-out both loaderMove}@keyframes loaderMove{0%{transform:translateY(0)}80%{transform:translateY(-102%)}to{transform:translateY(-102%)}}.loader .loader{background-color:var(--color-black-400)}.loader-content{position:absolute;inset:50% auto auto 50%;transform:translate(-50%)translateY(-50%)}.loader-logo{color:#fff}.loader-logo--scale{animation:.32s both loaderLogoScale}@keyframes loaderLogoScale{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale3d(1.8,1.8,1.8)}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
1
2
|
import './scss/index.scss';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
(): ReturnType<(this: {
|
|
4
|
-
attributes?:
|
|
5
|
-
content?:
|
|
6
|
-
}, attributes: Readonly<
|
|
7
|
-
<T extends
|
|
8
|
-
attributes?:
|
|
9
|
-
content?:
|
|
10
|
-
}, attributes: Readonly<
|
|
11
|
-
<T extends
|
|
12
|
-
attributes?:
|
|
13
|
-
content?:
|
|
14
|
-
}, attributes: Readonly<
|
|
15
|
-
(attributes:
|
|
16
|
-
attributes?:
|
|
17
|
-
content?:
|
|
18
|
-
}, attributes: Readonly<
|
|
5
|
+
attributes?: template_u1.Attributes | undefined;
|
|
6
|
+
content?: template_u1.Renderable<any>;
|
|
7
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
8
|
+
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_u1.Attributes | undefined;
|
|
10
|
+
content?: template_u1.Renderable<any>;
|
|
11
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
12
|
+
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
13
|
+
attributes?: template_u1.Attributes | undefined;
|
|
14
|
+
content?: template_u1.Renderable<any>;
|
|
15
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
16
|
+
(attributes: template_u1.Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
17
|
+
attributes?: template_u1.Attributes | undefined;
|
|
18
|
+
content?: template_u1.Renderable<any>;
|
|
19
|
+
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
19
20
|
};
|
|
20
21
|
export default _default;
|