@esportsplus/ui 0.49.4 → 0.49.6
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 +25 -15
- package/build/components/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +64 -33
- package/build/components/back/index.d.ts +9 -9
- package/build/components/back/index.js +8 -8
- package/build/components/button/index.d.ts +22 -22
- package/build/components/button/index.js +36 -20
- package/build/components/checkbox/index.d.ts +1 -1
- package/build/components/checkbox/index.js +36 -19
- package/build/components/clipboard/index.d.ts +1120 -1120
- package/build/components/clipboard/onclick.d.ts +1 -1
- package/build/components/clipboard/onclick.js +21 -11
- package/build/components/counter/index.d.ts +1 -1
- package/build/components/counter/index.js +59 -28
- package/build/components/ellipsis/index.d.ts +1 -1
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.d.ts +1 -1
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +3 -3
- package/build/components/form/input.d.ts +1 -1
- package/build/components/frame/index.d.ts +10 -10
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +23 -13
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +7 -7
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +32 -16
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +49 -27
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/overlay/index.d.ts +10 -10
- package/build/components/radio/index.d.ts +2 -2
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +42 -19
- package/build/components/scrollbar/index.d.ts +12 -12
- package/build/components/scrollbar/index.js +36 -20
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +61 -32
- package/build/components/sidebar/index.d.ts +10 -10
- package/build/components/site/index.d.ts +10 -10
- package/build/components/switch/index.d.ts +2 -2
- package/build/components/template/index.d.ts +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +32 -16
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/tooltip/index.d.ts +2295 -2295
- package/build/components/tooltip/menu.d.ts +12 -12
- package/build/components/tooltip/menu.js +20 -20
- package/build/components/tooltip/onclick.d.ts +1121 -1121
- package/build/components/tooltip/onclick.js +22 -10
- package/build/components/tooltip/onhover.d.ts +16 -16
- package/build/components/tooltip/onhover.js +23 -11
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +22 -10
- package/build/themes/dark/alert.d.ts +3 -3
- package/build/themes/dark/back.d.ts +11 -11
- package/build/themes/dark/input.d.ts +111 -111
- package/build/themes/dark/select.d.ts +1220 -1220
- package/build/themes/dark/textarea.d.ts +111 -111
- package/package.json +5 -4
- package/src/components/accordion/index.ts +2 -1
- package/src/components/alert/index.ts +2 -1
- package/src/components/back/index.ts +1 -1
- package/src/components/button/index.ts +2 -1
- package/src/components/checkbox/index.ts +2 -1
- package/src/components/clipboard/onclick.ts +2 -1
- package/src/components/counter/index.ts +2 -1
- package/src/components/ellipsis/index.ts +1 -1
- package/src/components/form/action.ts +1 -1
- package/src/components/form/input.ts +1 -1
- package/src/components/highlight/index.ts +2 -1
- package/src/components/icon/index.ts +1 -1
- package/src/components/input/index.ts +2 -1
- package/src/components/loader/index.ts +2 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/range/index.ts +2 -1
- package/src/components/scrollbar/index.ts +2 -1
- package/src/components/select/index.ts +2 -1
- package/src/components/template/index.ts +1 -1
- package/src/components/textarea/index.ts +2 -1
- package/src/components/textarea/scss/index.scss +1 -0
- package/src/components/tooltip/menu.ts +1 -1
- package/src/components/tooltip/onclick.ts +2 -1
- package/src/components/tooltip/onhover.ts +2 -1
- package/src/components/typewriter/index.ts +2 -1
- package/tsconfig.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Attributes, Renderable } from '@esportsplus/
|
|
1
|
+
import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
|
|
2
|
+
import { Attributes, Renderable } from '@esportsplus/template';
|
|
3
3
|
type A = Attributes & {
|
|
4
4
|
options: (Attributes & {
|
|
5
5
|
content: Renderable<unknown>;
|
|
@@ -16,19 +16,19 @@ type A = Attributes & {
|
|
|
16
16
|
declare const _default: {
|
|
17
17
|
(): ReturnType<(this: {
|
|
18
18
|
attributes?: A | undefined;
|
|
19
|
-
content?:
|
|
20
|
-
}, attributes: Readonly<A>, content:
|
|
19
|
+
content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
|
|
20
|
+
}, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => Renderable<any>>;
|
|
21
21
|
<T extends A>(attributes: T): ReturnType<(this: {
|
|
22
22
|
attributes?: A | undefined;
|
|
23
|
-
content?:
|
|
24
|
-
}, attributes: Readonly<A>, content:
|
|
25
|
-
<T extends
|
|
23
|
+
content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
|
|
24
|
+
}, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => Renderable<any>>;
|
|
25
|
+
<T extends template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
26
26
|
attributes?: A | undefined;
|
|
27
|
-
content?:
|
|
28
|
-
}, attributes: Readonly<A>, content:
|
|
29
|
-
(attributes: A, content:
|
|
27
|
+
content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
|
|
28
|
+
}, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => Renderable<any>>;
|
|
29
|
+
(attributes: A, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>): ReturnType<(this: {
|
|
30
30
|
attributes?: A | undefined;
|
|
31
|
-
content?:
|
|
32
|
-
}, attributes: Readonly<A>, content:
|
|
31
|
+
content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
|
|
32
|
+
}, attributes: Readonly<A>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => Renderable<any>>;
|
|
33
33
|
};
|
|
34
34
|
export default _default;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
|
|
2
2
|
import { omit } from '@esportsplus/utilities';
|
|
3
3
|
import template from '../../components/template/index.js';
|
|
4
4
|
import onclick from './onclick.js';
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const template_2a7920412bac4009b37c4d0863a6596e4c = template_2a7920412bac4009b37c4d0863a6596e1.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
|
|
6
|
+
const template_2a7920412bac4009b37c4d0863a6596e4h = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='link --width-full'><!--$--></div>`);
|
|
7
|
+
const template_2a7920412bac4009b37c4d0863a6596e4m = template_2a7920412bac4009b37c4d0863a6596e1.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
|
|
8
8
|
const OMIT = ['options', 'option', 'tooltip-content'];
|
|
9
9
|
const OMIT_OPTION = ['content'];
|
|
10
10
|
const OMIT_TOOLTIP_CONTENT = ['direction'];
|
|
11
11
|
export default template.factory((attributes, content) => {
|
|
12
12
|
let options = attributes.options, option = attributes.option, tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
|
|
13
13
|
return onclick(omit(attributes, OMIT), (() => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
let root_2a7920412bac4009b37c4d0863a6596e4l = template_2a7920412bac4009b37c4d0863a6596e4m(), element_2a7920412bac4009b37c4d0863a6596e4n = root_2a7920412bac4009b37c4d0863a6596e4l.firstChild, element_2a7920412bac4009b37c4d0863a6596e4o = element_2a7920412bac4009b37c4d0863a6596e4n.nextSibling, element_2a7920412bac4009b37c4d0863a6596e4p = element_2a7920412bac4009b37c4d0863a6596e4o.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e4q = { "class": "tooltip-content" };
|
|
15
|
+
template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e4n, content);
|
|
16
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e4o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_2a7920412bac4009b37c4d0863a6596e4q);
|
|
17
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e4o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_2a7920412bac4009b37c4d0863a6596e4q);
|
|
18
|
+
template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e4p, options.map((o) => {
|
|
19
19
|
if (o.href) {
|
|
20
20
|
return (() => {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
21
|
+
let root_2a7920412bac4009b37c4d0863a6596e4b = template_2a7920412bac4009b37c4d0863a6596e4c(), element_2a7920412bac4009b37c4d0863a6596e4d = root_2a7920412bac4009b37c4d0863a6596e4b.firstChild, element_2a7920412bac4009b37c4d0863a6596e4e = element_2a7920412bac4009b37c4d0863a6596e4d.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e4f = { "class": "link --width-full" };
|
|
22
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e4d, omit(o, OMIT_OPTION), attributes_2a7920412bac4009b37c4d0863a6596e4f);
|
|
23
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e4d, option, attributes_2a7920412bac4009b37c4d0863a6596e4f);
|
|
24
|
+
template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e4e, o.content);
|
|
25
|
+
return root_2a7920412bac4009b37c4d0863a6596e4b;
|
|
26
26
|
})();
|
|
27
27
|
}
|
|
28
28
|
return (() => {
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
29
|
+
let root_2a7920412bac4009b37c4d0863a6596e4g = template_2a7920412bac4009b37c4d0863a6596e4h(), element_2a7920412bac4009b37c4d0863a6596e4i = root_2a7920412bac4009b37c4d0863a6596e4g.firstChild, element_2a7920412bac4009b37c4d0863a6596e4j = element_2a7920412bac4009b37c4d0863a6596e4i.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e4k = { "class": "link --width-full" };
|
|
30
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e4i, omit(o, OMIT_OPTION), attributes_2a7920412bac4009b37c4d0863a6596e4k);
|
|
31
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e4i, option, attributes_2a7920412bac4009b37c4d0863a6596e4k);
|
|
32
|
+
template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e4j, o.content);
|
|
33
|
+
return root_2a7920412bac4009b37c4d0863a6596e4g;
|
|
34
34
|
})();
|
|
35
35
|
}));
|
|
36
|
-
return
|
|
36
|
+
return root_2a7920412bac4009b37c4d0863a6596e4l;
|
|
37
37
|
})());
|
|
38
38
|
});
|