@esportsplus/ui 0.49.6 → 0.49.7
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 +17 -17
- package/build/components/alert/index.js +41 -41
- package/build/components/back/index.d.ts +8 -8
- package/build/components/back/index.js +8 -8
- package/build/components/button/index.d.ts +21 -21
- package/build/components/button/index.js +24 -24
- package/build/components/checkbox/index.js +23 -23
- package/build/components/clipboard/onclick.js +13 -13
- package/build/components/counter/index.js +34 -34
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.js +8 -8
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +15 -15
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +6 -6
- package/build/components/input/index.js +20 -20
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +33 -33
- package/build/components/loading/index.js +5 -5
- package/build/components/range/index.js +25 -25
- package/build/components/scrollbar/index.d.ts +11 -11
- package/build/components/scrollbar/index.js +24 -24
- package/build/components/select/index.js +40 -40
- package/build/components/textarea/index.js +20 -20
- package/build/components/tooltip/menu.d.ts +11 -11
- package/build/components/tooltip/menu.js +20 -20
- package/build/components/tooltip/onclick.d.ts +1101 -1101
- package/build/components/tooltip/onclick.js +14 -14
- package/build/components/tooltip/onhover.d.ts +16 -16
- package/build/components/tooltip/onhover.js +15 -15
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +14 -14
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
|
|
2
2
|
import { Attributes, Renderable } from '@esportsplus/template';
|
|
3
3
|
type A = Attributes & {
|
|
4
4
|
options: (Attributes & {
|
|
@@ -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_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
|
|
20
|
+
}, attributes: Readonly<A>, content: template_674b8ccc1a634e6cb7742603036f95971.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_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
|
|
24
|
+
}, attributes: Readonly<A>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => Renderable<any>>;
|
|
25
|
+
<T extends template_674b8ccc1a634e6cb7742603036f95971.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_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
|
|
28
|
+
}, attributes: Readonly<A>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => Renderable<any>>;
|
|
29
|
+
(attributes: A, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>): ReturnType<(this: {
|
|
30
30
|
attributes?: A | undefined;
|
|
31
|
-
content?:
|
|
32
|
-
}, attributes: Readonly<A>, content:
|
|
31
|
+
content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
|
|
32
|
+
}, attributes: Readonly<A>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => Renderable<any>>;
|
|
33
33
|
};
|
|
34
34
|
export default _default;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_674b8ccc1a634e6cb7742603036f95971 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_674b8ccc1a634e6cb7742603036f95974c = template_674b8ccc1a634e6cb7742603036f95971.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
|
|
6
|
+
const template_674b8ccc1a634e6cb7742603036f95974h = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='link --width-full'><!--$--></div>`);
|
|
7
|
+
const template_674b8ccc1a634e6cb7742603036f95974m = template_674b8ccc1a634e6cb7742603036f95971.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_674b8ccc1a634e6cb7742603036f95974l = template_674b8ccc1a634e6cb7742603036f95974m(), element_674b8ccc1a634e6cb7742603036f95974n = root_674b8ccc1a634e6cb7742603036f95974l.firstChild, element_674b8ccc1a634e6cb7742603036f95974o = element_674b8ccc1a634e6cb7742603036f95974n.nextSibling, element_674b8ccc1a634e6cb7742603036f95974p = element_674b8ccc1a634e6cb7742603036f95974o.firstChild, attributes_674b8ccc1a634e6cb7742603036f95974q = { "class": "tooltip-content" };
|
|
15
|
+
template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95974n, content);
|
|
16
|
+
template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95974o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_674b8ccc1a634e6cb7742603036f95974q);
|
|
17
|
+
template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95974o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_674b8ccc1a634e6cb7742603036f95974q);
|
|
18
|
+
template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95974p, options.map((o) => {
|
|
19
19
|
if (o.href) {
|
|
20
20
|
return (() => {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
21
|
+
let root_674b8ccc1a634e6cb7742603036f95974b = template_674b8ccc1a634e6cb7742603036f95974c(), element_674b8ccc1a634e6cb7742603036f95974d = root_674b8ccc1a634e6cb7742603036f95974b.firstChild, element_674b8ccc1a634e6cb7742603036f95974e = element_674b8ccc1a634e6cb7742603036f95974d.firstChild, attributes_674b8ccc1a634e6cb7742603036f95974f = { "class": "link --width-full" };
|
|
22
|
+
template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95974d, omit(o, OMIT_OPTION), attributes_674b8ccc1a634e6cb7742603036f95974f);
|
|
23
|
+
template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95974d, option, attributes_674b8ccc1a634e6cb7742603036f95974f);
|
|
24
|
+
template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95974e, o.content);
|
|
25
|
+
return root_674b8ccc1a634e6cb7742603036f95974b;
|
|
26
26
|
})();
|
|
27
27
|
}
|
|
28
28
|
return (() => {
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
29
|
+
let root_674b8ccc1a634e6cb7742603036f95974g = template_674b8ccc1a634e6cb7742603036f95974h(), element_674b8ccc1a634e6cb7742603036f95974i = root_674b8ccc1a634e6cb7742603036f95974g.firstChild, element_674b8ccc1a634e6cb7742603036f95974j = element_674b8ccc1a634e6cb7742603036f95974i.firstChild, attributes_674b8ccc1a634e6cb7742603036f95974k = { "class": "link --width-full" };
|
|
30
|
+
template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95974i, omit(o, OMIT_OPTION), attributes_674b8ccc1a634e6cb7742603036f95974k);
|
|
31
|
+
template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95974i, option, attributes_674b8ccc1a634e6cb7742603036f95974k);
|
|
32
|
+
template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95974j, o.content);
|
|
33
|
+
return root_674b8ccc1a634e6cb7742603036f95974g;
|
|
34
34
|
})();
|
|
35
35
|
}));
|
|
36
|
-
return
|
|
36
|
+
return root_674b8ccc1a634e6cb7742603036f95974l;
|
|
37
37
|
})());
|
|
38
38
|
});
|