@esportsplus/ui 0.51.6 → 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/.github/workflows/bump.yml +4 -1
- package/.github/workflows/publish.yml +4 -0
- package/README.md +2 -3
- package/build/components/accordion/index.d.ts +22 -16
- package/build/components/accordion/index.js +10 -36
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/back/index.d.ts +16 -13
- package/build/components/back/index.js +11 -11
- package/build/components/button/index.d.ts +22 -22
- package/build/components/button/index.js +25 -25
- package/build/components/checkbox/index.d.ts +1 -1
- package/build/components/checkbox/index.js +27 -23
- package/build/components/clipboard/index.d.ts +23 -20
- package/build/components/clipboard/index.js +1 -0
- package/build/components/clipboard/onclick.d.ts +1 -1
- package/build/components/clipboard/onclick.js +16 -16
- package/build/components/clipboard/write.d.ts +1 -1
- package/build/components/counter/index.d.ts +5 -5
- package/build/components/counter/index.js +34 -34
- package/build/components/ellipsis/index.d.ts +1 -1
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.d.ts +3 -3
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +2 -2
- package/build/components/form/input.d.ts +8 -6
- 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.d.ts +17 -16
- package/build/components/highlight/index.js +16 -16
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +8 -8
- package/build/components/index.d.ts +1 -4
- package/build/components/index.js +1 -4
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +21 -21
- package/build/components/json/download.d.ts +1 -1
- package/build/components/loader/index.d.ts +17 -16
- package/build/components/loader/index.js +35 -35
- package/build/components/loader/scss/index.scss +1 -1
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/index.js +5 -5
- 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/radio/index.js +1 -1
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +26 -26
- package/build/components/root/index.d.ts +1 -4
- package/build/components/root/onclick.d.ts +4 -4
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +4 -7
- package/build/components/select/index.js +92 -98
- 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/switch/index.js +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +21 -21
- 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.d.ts +11 -12
- package/build/components/tooltip/menu.js +38 -24
- package/build/components/tooltip/onclick.d.ts +1151 -1151
- package/build/components/tooltip/onclick.js +17 -17
- package/build/components/tooltip/onhover.d.ts +17 -16
- package/build/components/tooltip/onhover.js +17 -17
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +16 -16
- 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 -0
- 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 +3 -4
- 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 -13
- 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
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
4
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../../components/template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
class
|
|
8
|
-
#highlight = this[
|
|
6
|
+
const template_0k38r592 = template_u1.template(`<div class='highlight' >`);
|
|
7
|
+
class ReactiveObject_0k38r590 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#highlight = this[reactivity_u0.SIGNAL](0);
|
|
9
9
|
constructor() {
|
|
10
10
|
super(null);
|
|
11
11
|
}
|
|
12
12
|
get highlight() {
|
|
13
|
-
return
|
|
13
|
+
return reactivity_u0.read(this.#highlight);
|
|
14
14
|
}
|
|
15
15
|
set highlight(_v0) {
|
|
16
|
-
|
|
16
|
+
reactivity_u0.write(this.#highlight, _v0);
|
|
17
17
|
}
|
|
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;
|
|
@@ -38,19 +38,19 @@ export default template.factory((attributes, content) => {
|
|
|
38
38
|
}
|
|
39
39
|
}, { threshold: 1 });
|
|
40
40
|
}
|
|
41
|
-
let state = new
|
|
41
|
+
let state = new ReactiveObject_0k38r590();
|
|
42
42
|
return (() => {
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
let root_0k38r591 = template_0k38r592(), element_0k38r593 = root_0k38r591.firstChild;
|
|
44
|
+
template_u1.setProperties(element_0k38r593, omit(attributes, OMIT));
|
|
45
|
+
template_u1.onrender(element_0k38r593, (element) => {
|
|
46
46
|
element[key] = state;
|
|
47
47
|
observer.observe(element);
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
template_u1.setList(element_0k38r593, 'style', [
|
|
50
50
|
() => `--highlight: ${state.highlight}`,
|
|
51
51
|
`--background: ${attributes.background}`,
|
|
52
52
|
]);
|
|
53
|
-
|
|
54
|
-
return
|
|
53
|
+
template_u1.slot(element_0k38r593, content, 1);
|
|
54
|
+
return root_0k38r591;
|
|
55
55
|
})();
|
|
56
56
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
(): ReturnType<(this: {
|
|
5
|
-
attributes?:
|
|
5
|
+
attributes?: template_u1.Attributes | undefined;
|
|
6
6
|
content?: string | undefined;
|
|
7
|
-
}, attributes: Readonly<
|
|
8
|
-
<T extends
|
|
9
|
-
attributes?:
|
|
7
|
+
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
8
|
+
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_u1.Attributes | undefined;
|
|
10
10
|
content?: string | undefined;
|
|
11
|
-
}, attributes: Readonly<
|
|
11
|
+
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
12
12
|
<T extends string>(content: T): ReturnType<(this: {
|
|
13
|
-
attributes?:
|
|
13
|
+
attributes?: template_u1.Attributes | undefined;
|
|
14
14
|
content?: string | undefined;
|
|
15
|
-
}, attributes: Readonly<
|
|
16
|
-
(attributes:
|
|
17
|
-
attributes?:
|
|
15
|
+
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
16
|
+
(attributes: template_u1.Attributes, content: string): ReturnType<(this: {
|
|
17
|
+
attributes?: template_u1.Attributes | undefined;
|
|
18
18
|
content?: string | undefined;
|
|
19
|
-
}, attributes: Readonly<
|
|
19
|
+
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
|
-
const
|
|
5
|
-
export default
|
|
4
|
+
const template_1lt0nhw1 = template_u1.template(`<div class='icon' ><svg><use href='' />`);
|
|
5
|
+
export default component((attributes, href) => {
|
|
6
6
|
if (href[0] !== '#') {
|
|
7
7
|
href = '#' + href;
|
|
8
8
|
}
|
|
9
9
|
return (() => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
10
|
+
let root_1lt0nhw0 = template_1lt0nhw1(), element_1lt0nhw2 = root_1lt0nhw0.firstChild, element_1lt0nhw3 = element_1lt0nhw2.firstElementChild.firstElementChild;
|
|
11
|
+
template_u1.setProperties(element_1lt0nhw2, attributes);
|
|
12
|
+
template_u1.setProperty(element_1lt0nhw3, 'href', href);
|
|
13
|
+
return root_1lt0nhw0;
|
|
14
14
|
})();
|
|
15
15
|
});
|
|
@@ -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,43 +1,43 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import form from '
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import form from '../form/index.js';
|
|
4
4
|
import './scss/index.scss';
|
|
5
|
-
const
|
|
6
|
-
class
|
|
7
|
-
#active = this[
|
|
8
|
-
#error = this[
|
|
5
|
+
const template_0j57g2t2 = template_u1.template(`<input class='input' />`);
|
|
6
|
+
class ReactiveObject_0j57g2t0 extends reactivity_u0.ReactiveObject {
|
|
7
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
8
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
9
9
|
constructor() {
|
|
10
10
|
super(null);
|
|
11
11
|
}
|
|
12
12
|
get active() {
|
|
13
|
-
return
|
|
13
|
+
return reactivity_u0.read(this.#active);
|
|
14
14
|
}
|
|
15
15
|
set active(_v0) {
|
|
16
|
-
|
|
16
|
+
reactivity_u0.write(this.#active, _v0);
|
|
17
17
|
}
|
|
18
18
|
get error() {
|
|
19
|
-
return
|
|
19
|
+
return reactivity_u0.read(this.#error);
|
|
20
20
|
}
|
|
21
21
|
set error(_v1) {
|
|
22
|
-
|
|
22
|
+
reactivity_u0.write(this.#error, _v1);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
export default function (attributes) {
|
|
26
|
-
let state = attributes.state || new
|
|
26
|
+
let state = attributes.state || new ReactiveObject_0j57g2t0();
|
|
27
27
|
return (() => {
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
let root_0j57g2t1 = template_0j57g2t2(), element_0j57g2t3 = root_0j57g2t1.firstChild;
|
|
29
|
+
template_u1.setProperties(element_0j57g2t3, this?.attributes);
|
|
30
|
+
template_u1.setProperties(element_0j57g2t3, attributes);
|
|
31
|
+
template_u1.setList(element_0j57g2t3, 'class', () => state.active && '--active');
|
|
32
|
+
template_u1.on(element_0j57g2t3, 'focusin', () => {
|
|
33
33
|
state.active = true;
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
template_u1.on(element_0j57g2t3, 'focusout', () => {
|
|
36
36
|
state.active = false;
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return
|
|
38
|
+
template_u1.onrender(element_0j57g2t3, form.input.onrender(state));
|
|
39
|
+
template_u1.setProperty(element_0j57g2t3, 'type', (attributes.type || 'text'));
|
|
40
|
+
return root_0j57g2t1;
|
|
41
41
|
})();
|
|
42
42
|
}
|
|
43
43
|
;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
3
|
import './scss/index.scss';
|
|
3
4
|
declare const _default: {
|
|
4
5
|
(): ReturnType<(this: {
|
|
5
|
-
attributes?:
|
|
6
|
-
content?:
|
|
7
|
-
}, attributes: Readonly<
|
|
8
|
-
<T extends
|
|
9
|
-
attributes?:
|
|
10
|
-
content?:
|
|
11
|
-
}, attributes: Readonly<
|
|
12
|
-
<T extends
|
|
13
|
-
attributes?:
|
|
14
|
-
content?:
|
|
15
|
-
}, attributes: Readonly<
|
|
16
|
-
(attributes:
|
|
17
|
-
attributes?:
|
|
18
|
-
content?:
|
|
19
|
-
}, attributes: Readonly<
|
|
6
|
+
attributes?: Attributes | undefined;
|
|
7
|
+
content?: template_u1.Renderable<any>;
|
|
8
|
+
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
9
|
+
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
10
|
+
attributes?: Attributes | undefined;
|
|
11
|
+
content?: template_u1.Renderable<any>;
|
|
12
|
+
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
13
|
+
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
14
|
+
attributes?: Attributes | undefined;
|
|
15
|
+
content?: template_u1.Renderable<any>;
|
|
16
|
+
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
17
|
+
(attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
18
|
+
attributes?: Attributes | undefined;
|
|
19
|
+
content?: template_u1.Renderable<any>;
|
|
20
|
+
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
20
21
|
};
|
|
21
22
|
export default _default;
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
4
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../../components/template/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
class
|
|
9
|
-
#load = this[
|
|
10
|
-
#remove = this[
|
|
11
|
-
#scale = this[
|
|
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
|
+
const template_0bvfqbq6 = template_u1.template(`<div class='loader '><div class='loader ' >`);
|
|
8
|
+
class ReactiveObject_0bvfqbq0 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#load = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
#remove = this[reactivity_u0.SIGNAL](false);
|
|
11
|
+
#scale = this[reactivity_u0.SIGNAL](false);
|
|
12
12
|
constructor() {
|
|
13
13
|
super(null);
|
|
14
14
|
}
|
|
15
15
|
get load() {
|
|
16
|
-
return
|
|
16
|
+
return reactivity_u0.read(this.#load);
|
|
17
17
|
}
|
|
18
18
|
set load(_v0) {
|
|
19
|
-
|
|
19
|
+
reactivity_u0.write(this.#load, _v0);
|
|
20
20
|
}
|
|
21
21
|
get remove() {
|
|
22
|
-
return
|
|
22
|
+
return reactivity_u0.read(this.#remove);
|
|
23
23
|
}
|
|
24
24
|
set remove(_v1) {
|
|
25
|
-
|
|
25
|
+
reactivity_u0.write(this.#remove, _v1);
|
|
26
26
|
}
|
|
27
27
|
get scale() {
|
|
28
|
-
return
|
|
28
|
+
return reactivity_u0.read(this.#scale);
|
|
29
29
|
}
|
|
30
30
|
set scale(_v2) {
|
|
31
|
-
|
|
31
|
+
reactivity_u0.write(this.#scale, _v2);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
const OMIT = ['loader-content', 'loader-logo'];
|
|
35
|
-
export default
|
|
36
|
-
let state = new
|
|
35
|
+
export default component((attributes, content) => {
|
|
36
|
+
let state = new ReactiveObject_0bvfqbq0();
|
|
37
37
|
return () => {
|
|
38
38
|
if (state.remove) {
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
let i = 0;
|
|
42
42
|
return (() => {
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
let root_0bvfqbq5 = template_0bvfqbq6(), element_0bvfqbq7 = root_0bvfqbq5.firstChild, element_0bvfqbq8 = element_0bvfqbq7.firstElementChild;
|
|
44
|
+
template_u1.setList(element_0bvfqbq7, 'class', () => state.load && 'loader--load');
|
|
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
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
template_u1.setProperties(element_0bvfqbq7, omit(attributes, OMIT));
|
|
52
|
+
template_u1.setList(element_0bvfqbq8, 'class', () => state.load && 'loader--load');
|
|
53
|
+
template_u1.setProperties(element_0bvfqbq8, !content && {
|
|
54
54
|
onconnect: () => {
|
|
55
55
|
state.load = true;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
template_u1.setProperties(element_0bvfqbq8, attributes.loader);
|
|
59
|
+
template_u1.slot(element_0bvfqbq8, content && (() => {
|
|
60
|
+
let root_0bvfqbq1 = template_0bvfqbq2(), element_0bvfqbq3 = root_0bvfqbq1.firstChild, element_0bvfqbq4 = element_0bvfqbq3.firstElementChild;
|
|
61
|
+
template_u1.setProperties(element_0bvfqbq3, attributes['loader-content']);
|
|
62
|
+
template_u1.setProperties(element_0bvfqbq4, attributes['loader-logo']);
|
|
63
|
+
template_u1.setList(element_0bvfqbq4, 'class', () => state.scale && 'loader-logo--scale');
|
|
64
|
+
template_u1.delegate(element_0bvfqbq4, 'animationend', ({ animationName: name }) => {
|
|
65
65
|
if (name === 'scale') {
|
|
66
66
|
state.load = true;
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
template_u1.onconnect(element_0bvfqbq4, () => {
|
|
70
70
|
state.scale = true;
|
|
71
71
|
});
|
|
72
|
-
|
|
73
|
-
return
|
|
72
|
+
template_u1.slot(element_0bvfqbq4, content, 1);
|
|
73
|
+
return root_0bvfqbq1;
|
|
74
74
|
})(), 1);
|
|
75
|
-
return
|
|
75
|
+
return root_0bvfqbq5;
|
|
76
76
|
})();
|
|
77
77
|
};
|
|
78
78
|
});
|
|
@@ -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,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
const
|
|
3
|
+
const template_17hj0u91 = template_u1.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);' >`);
|
|
4
4
|
export default (attributes) => {
|
|
5
5
|
return (() => {
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
return
|
|
6
|
+
let root_17hj0u90 = template_17hj0u91(), element_17hj0u92 = root_17hj0u90.firstChild;
|
|
7
|
+
template_u1.setProperties(element_17hj0u92, attributes);
|
|
8
|
+
return root_17hj0u90;
|
|
9
9
|
})();
|
|
10
10
|
};
|
|
@@ -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_0ip26l11 = template_u1.template(`<div class='overlay --scrollbar' >`);
|
|
5
|
+
export default component(function (attributes, content) {
|
|
6
|
+
return (() => {
|
|
7
|
+
let root_0ip26l10 = template_0ip26l11(), element_0ip26l12 = root_0ip26l10.firstChild;
|
|
8
|
+
template_u1.setProperties(element_0ip26l12, this?.attributes);
|
|
9
|
+
template_u1.setProperties(element_0ip26l12, attributes);
|
|
10
|
+
template_u1.slot(element_0ip26l12, content, 1);
|
|
11
|
+
return root_0ip26l10;
|
|
12
|
+
})();
|
|
7
13
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.overlay{cursor:default;z-index:9;flex-wrap:wrap;justify-content:flex-start;display:flex;position:fixed;inset:0
|
|
1
|
+
@layer components {.overlay{cursor:default;z-index:9;flex-wrap:wrap;justify-content:flex-start;display:flex;position:fixed;inset:0}.overlay:not(.--active) input[type=password]{display:none}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.page{--gap-horizontal:0px;--gap-vertical:0px}.page-subtitle,.page-suptitle{--color:var(--color-default);--color-default:var(--color-text-400);--font-size:var(--font-size-400);--line-height:var(--line-height-400)}.page-title{--color:var(--color-default);--color-default:var(--color-text-500);--line-height:var(--line-height-400)}.page{gap:var(--gap-vertical) 0px;flex-flow:column;width:
|
|
1
|
+
@layer components {.page{--gap-horizontal:0px;--gap-vertical:0px}.page-subtitle,.page-suptitle{--color:var(--color-default);--color-default:var(--color-text-400);--font-size:var(--font-size-400);--line-height:var(--line-height-400)}.page-title{--color:var(--color-default);--color-default:var(--color-text-500);--line-height:var(--line-height-400)}.page{gap:var(--gap-vertical) 0px;flex-flow:column;width:100%;min-height:100svh;display:flex;position:relative}.page-subtitle,.page-suptitle,.page-title{color:var(--color);line-height:var(--line-height);z-index:1;width:100%;display:block;position:relative}.page-subtitle,.page-suptitle{font-size:var(--font-size)}.page-suptitle+.page-title,.page-title+.page-subtitle{margin-top:var(--margin-vertical)}.page-title{text-wrap:balance}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import { root } from '@esportsplus/reactivity';
|
|
4
|
-
import form from '
|
|
4
|
+
import form from '../form/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
class
|
|
8
|
-
#active = this[
|
|
9
|
-
#error = this[
|
|
10
|
-
#value = this[
|
|
6
|
+
const template_0aka2e62 = template_u1.template(`<input class='range --border-state --border-black' type='range' />`);
|
|
7
|
+
class ReactiveObject_0aka2e60 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
9
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
10
|
+
#value = this[reactivity_u0.SIGNAL](0);
|
|
11
11
|
constructor() {
|
|
12
12
|
super(null);
|
|
13
13
|
}
|
|
14
14
|
get active() {
|
|
15
|
-
return
|
|
15
|
+
return reactivity_u0.read(this.#active);
|
|
16
16
|
}
|
|
17
17
|
set active(_v0) {
|
|
18
|
-
|
|
18
|
+
reactivity_u0.write(this.#active, _v0);
|
|
19
19
|
}
|
|
20
20
|
get error() {
|
|
21
|
-
return
|
|
21
|
+
return reactivity_u0.read(this.#error);
|
|
22
22
|
}
|
|
23
23
|
set error(_v1) {
|
|
24
|
-
|
|
24
|
+
reactivity_u0.write(this.#error, _v1);
|
|
25
25
|
}
|
|
26
26
|
get value() {
|
|
27
|
-
return
|
|
27
|
+
return reactivity_u0.read(this.#value);
|
|
28
28
|
}
|
|
29
29
|
set value(_v2) {
|
|
30
|
-
|
|
30
|
+
reactivity_u0.write(this.#value, _v2);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
export default function (attributes) {
|
|
34
|
-
let { max, min } = attributes, state = attributes.state || new
|
|
34
|
+
let { max, min } = attributes, state = attributes.state || new ReactiveObject_0aka2e60();
|
|
35
35
|
if (attributes?.value) {
|
|
36
36
|
state.value = Number(attributes.value);
|
|
37
37
|
}
|
|
38
38
|
return (() => {
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
let root_0aka2e61 = template_0aka2e62(), element_0aka2e63 = root_0aka2e61.firstChild;
|
|
40
|
+
template_u1.setList(element_0aka2e63, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
|
|
41
|
+
template_u1.setProperties(element_0aka2e63, this?.attributes);
|
|
42
|
+
template_u1.setProperties(element_0aka2e63, attributes);
|
|
43
|
+
template_u1.setList(element_0aka2e63, 'class', () => state.active && '--active');
|
|
44
|
+
template_u1.on(element_0aka2e63, 'focusin', () => {
|
|
45
45
|
state.active = true;
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
template_u1.on(element_0aka2e63, 'focusout', () => {
|
|
48
48
|
state.active = false;
|
|
49
49
|
});
|
|
50
|
-
|
|
50
|
+
template_u1.delegate(element_0aka2e63, 'input', (e) => {
|
|
51
51
|
state.value = Number(e.target.value);
|
|
52
52
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return
|
|
53
|
+
template_u1.onrender(element_0aka2e63, form.input.onrender(state));
|
|
54
|
+
template_u1.setProperty(element_0aka2e63, 'value', root(() => attributes?.value || state.value || 0));
|
|
55
|
+
return root_0aka2e61;
|
|
56
56
|
})();
|
|
57
57
|
}
|
|
58
58
|
;
|