@esportsplus/ui 0.49.0 → 0.49.2
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/build/components/accordion/index.d.ts +16 -16
- package/build/components/accordion/index.js +15 -16
- package/build/components/alert/index.js +42 -50
- package/build/components/back/index.d.ts +8 -7
- package/build/components/back/index.js +10 -11
- package/build/components/button/index.d.ts +22 -21
- package/build/components/button/index.js +24 -24
- package/build/components/checkbox/index.d.ts +1 -1
- package/build/components/checkbox/index.js +18 -20
- package/build/components/clipboard/onclick.d.ts +1 -1
- package/build/components/clipboard/onclick.js +18 -17
- package/build/components/counter/index.d.ts +1 -1
- package/build/components/counter/index.js +34 -27
- package/build/components/ellipsis/index.js +7 -8
- package/build/components/form/action.js +12 -15
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +13 -14
- package/build/components/icon/index.d.ts +11 -10
- package/build/components/icon/index.js +9 -6
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +16 -17
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +37 -44
- package/build/components/loading/index.js +7 -9
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +19 -21
- package/build/components/scrollbar/index.d.ts +12 -11
- package/build/components/scrollbar/index.js +19 -32
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +83 -88
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +16 -17
- package/build/components/tooltip/menu.d.ts +12 -11
- package/build/components/tooltip/menu.js +29 -33
- package/build/components/tooltip/onclick.d.ts +1101 -1100
- package/build/components/tooltip/onclick.js +12 -14
- package/build/components/tooltip/onhover.d.ts +16 -16
- package/build/components/tooltip/onhover.js +14 -16
- package/build/components/typewriter/index.d.ts +11 -10
- package/build/components/typewriter/index.js +12 -10
- package/package.json +4 -4
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
|
|
2
|
+
import { reactive } from '@esportsplus/frontend';
|
|
2
3
|
import { omit } from '@esportsplus/utilities';
|
|
3
4
|
import { root } from '@esportsplus/ui';
|
|
4
5
|
import template from '../../components/template/index.js';
|
|
6
|
+
const template_0d7f5d57c4bb40d69aedf451c3798d4b4e = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='tooltip'><!--$--></div>`);
|
|
5
7
|
const OMIT = ['state', 'toggle'];
|
|
6
8
|
let parent = null, queue = [], running = false, scheduled = false;
|
|
7
9
|
function frame() {
|
|
@@ -24,13 +26,11 @@ function frame() {
|
|
|
24
26
|
}
|
|
25
27
|
export default template.factory((attributes, content) => {
|
|
26
28
|
let state = attributes.state || reactive({ active: false }), toggle = attributes.toggle || false;
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class: () => state.active && '--active',
|
|
33
|
-
onclick: function (e) {
|
|
29
|
+
return (() => {
|
|
30
|
+
let root_0d7f5d57c4bb40d69aedf451c3798d4b4d = template_0d7f5d57c4bb40d69aedf451c3798d4b4e(), element_0d7f5d57c4bb40d69aedf451c3798d4b4f = root_0d7f5d57c4bb40d69aedf451c3798d4b4d.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b4g = element_0d7f5d57c4bb40d69aedf451c3798d4b4f.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b4h = { "class": "tooltip" };
|
|
31
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b4f, omit(attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b4h);
|
|
32
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b4f, 'class', () => state.active && '--active', attributes_0d7f5d57c4bb40d69aedf451c3798d4b4h);
|
|
33
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b4f, 'click', function (e) {
|
|
34
34
|
let active = true, node = e.target;
|
|
35
35
|
if (this === node || (toggle && this.contains(node))) {
|
|
36
36
|
active = !state.active;
|
|
@@ -57,10 +57,8 @@ export default template.factory((attributes, content) => {
|
|
|
57
57
|
});
|
|
58
58
|
scheduled = true;
|
|
59
59
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</div>
|
|
65
|
-
`;
|
|
60
|
+
});
|
|
61
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b4g, content);
|
|
62
|
+
return root_0d7f5d57c4bb40d69aedf451c3798d4b4d;
|
|
63
|
+
})();
|
|
66
64
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
(): ReturnType<(this: {
|
|
4
|
-
attributes?: Attributes | undefined;
|
|
5
|
-
content?:
|
|
6
|
-
}, attributes: Readonly<Attributes>, content:
|
|
7
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
8
|
-
attributes?: Attributes | undefined;
|
|
9
|
-
content?:
|
|
10
|
-
}, attributes: Readonly<Attributes>, content:
|
|
11
|
-
<T extends
|
|
12
|
-
attributes?: Attributes | undefined;
|
|
13
|
-
content?:
|
|
14
|
-
}, attributes: Readonly<Attributes>, content:
|
|
15
|
-
(attributes: Attributes, content:
|
|
16
|
-
attributes?: Attributes | undefined;
|
|
17
|
-
content?:
|
|
18
|
-
}, attributes: Readonly<Attributes>, content:
|
|
4
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
5
|
+
content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
|
|
6
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
7
|
+
<T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>(attributes: T): ReturnType<(this: {
|
|
8
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
9
|
+
content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
|
|
10
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
11
|
+
<T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
12
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
13
|
+
content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
|
|
14
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
15
|
+
(attributes: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>): ReturnType<(this: {
|
|
16
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
17
|
+
content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
|
|
18
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
|
|
2
|
+
import { reactive } from '@esportsplus/frontend';
|
|
2
3
|
import { omit } from '@esportsplus/utilities';
|
|
3
4
|
import template from '../../components/template/index.js';
|
|
5
|
+
const template_0d7f5d57c4bb40d69aedf451c3798d4b4j = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='tooltip'><!--$--></div>`);
|
|
4
6
|
const OMIT = ['state'];
|
|
5
7
|
export default template.factory((attributes, content) => {
|
|
6
8
|
let state = attributes.state || reactive({ active: false });
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class: () => state.active && '--active',
|
|
13
|
-
onmouseover: () => {
|
|
9
|
+
return (() => {
|
|
10
|
+
let root_0d7f5d57c4bb40d69aedf451c3798d4b4i = template_0d7f5d57c4bb40d69aedf451c3798d4b4j(), element_0d7f5d57c4bb40d69aedf451c3798d4b4k = root_0d7f5d57c4bb40d69aedf451c3798d4b4i.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b4l = element_0d7f5d57c4bb40d69aedf451c3798d4b4k.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b4m = { "class": "tooltip" };
|
|
11
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b4k, omit(attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b4m);
|
|
12
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b4k, 'class', () => state.active && '--active', attributes_0d7f5d57c4bb40d69aedf451c3798d4b4m);
|
|
13
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b4k, 'mouseover', () => {
|
|
14
14
|
state.active = true;
|
|
15
|
-
}
|
|
16
|
-
|
|
15
|
+
});
|
|
16
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b4k, 'mouseout', () => {
|
|
17
17
|
state.active = false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
`;
|
|
18
|
+
});
|
|
19
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b4l, content);
|
|
20
|
+
return root_0d7f5d57c4bb40d69aedf451c3798d4b4i;
|
|
21
|
+
})();
|
|
24
22
|
});
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
|
|
1
2
|
import './scss/index.scss';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
(): ReturnType<(this: {
|
|
4
|
-
attributes?:
|
|
5
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
5
6
|
content?: string[] | undefined;
|
|
6
|
-
}, attributes: Readonly<
|
|
7
|
-
<T extends
|
|
8
|
-
attributes?:
|
|
7
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string[]) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
8
|
+
<T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
9
10
|
content?: string[] | undefined;
|
|
10
|
-
}, attributes: Readonly<
|
|
11
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string[]) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
11
12
|
<T extends string[]>(content: T): ReturnType<(this: {
|
|
12
|
-
attributes?:
|
|
13
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
13
14
|
content?: string[] | undefined;
|
|
14
|
-
}, attributes: Readonly<
|
|
15
|
-
(attributes:
|
|
16
|
-
attributes?:
|
|
15
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string[]) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
16
|
+
(attributes: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes, content: string[]): ReturnType<(this: {
|
|
17
|
+
attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
|
|
17
18
|
content?: string[] | undefined;
|
|
18
|
-
}, attributes: Readonly<
|
|
19
|
+
}, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string[]) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
|
|
19
20
|
};
|
|
20
21
|
export default _default;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
|
|
2
|
+
import { reactive } from '@esportsplus/frontend';
|
|
2
3
|
import template from '../../components/template/index.js';
|
|
3
4
|
import './scss/index.scss';
|
|
4
|
-
const
|
|
5
|
+
const template_0d7f5d57c4bb40d69aedf451c3798d4b4o = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='typewriter'><!--$--></div>`);
|
|
6
|
+
const template_0d7f5d57c4bb40d69aedf451c3798d4b4r = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(``);
|
|
7
|
+
const EMPTY_NODE = template_0d7f5d57c4bb40d69aedf451c3798d4b4r();
|
|
5
8
|
export default template.factory(function (_, content) {
|
|
6
9
|
let state = reactive({ text: '' });
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
onconnect
|
|
10
|
+
return (() => {
|
|
11
|
+
let root_0d7f5d57c4bb40d69aedf451c3798d4b4n = template_0d7f5d57c4bb40d69aedf451c3798d4b4o(), element_0d7f5d57c4bb40d69aedf451c3798d4b4p = root_0d7f5d57c4bb40d69aedf451c3798d4b4n.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b4q = element_0d7f5d57c4bb40d69aedf451c3798d4b4p.firstChild;
|
|
12
|
+
template_0d7f5d57c4bb40d69aedf451c3798d4b1.onconnect(element_0d7f5d57c4bb40d69aedf451c3798d4b4p, () => {
|
|
10
13
|
let character = 0, i = 0, isWriting = true, write = content[i];
|
|
11
14
|
function play() {
|
|
12
15
|
setTimeout(() => {
|
|
@@ -34,9 +37,8 @@ export default template.factory(function (_, content) {
|
|
|
34
37
|
}, isWriting ? 64 : 32);
|
|
35
38
|
}
|
|
36
39
|
play();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
`;
|
|
40
|
+
});
|
|
41
|
+
new template_0d7f5d57c4bb40d69aedf451c3798d4b1.EffectSlot(element_0d7f5d57c4bb40d69aedf451c3798d4b4q, () => state.text || EMPTY_NODE);
|
|
42
|
+
return root_0d7f5d57c4bb40d69aedf451c3798d4b4n;
|
|
43
|
+
})();
|
|
42
44
|
});
|
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"author": "ICJR",
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"@esportsplus/action": "^0.1.4",
|
|
5
|
-
"@esportsplus/frontend": "^0.1.
|
|
5
|
+
"@esportsplus/frontend": "^0.1.3",
|
|
6
6
|
"@esportsplus/queue": "^0.2.0",
|
|
7
7
|
"@esportsplus/utilities": "^0.27.2",
|
|
8
8
|
"@esportsplus/vite": "^0.12.7",
|
|
9
9
|
"modern-normalize": "^3.0.1"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@esportsplus/typescript": "^0.
|
|
13
|
-
"@types/node": "^25.0.
|
|
12
|
+
"@esportsplus/typescript": "^0.28.0",
|
|
13
|
+
"@types/node": "^25.0.6",
|
|
14
14
|
"@types/shelljs": "^0.10.0",
|
|
15
15
|
"autoprefixer": "^10.4.23",
|
|
16
16
|
"glob": "^13.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
60
|
"type": "module",
|
|
61
|
-
"version": "0.49.
|
|
61
|
+
"version": "0.49.2",
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "run-s build:vite build:ts",
|
|
64
64
|
"build:ts": "tsc",
|