@esportsplus/ui 0.50.5 → 0.50.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.
Files changed (35) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +17 -17
  3. package/build/components/alert/index.js +41 -41
  4. package/build/components/back/index.d.ts +8 -8
  5. package/build/components/back/index.js +8 -8
  6. package/build/components/button/index.d.ts +21 -21
  7. package/build/components/button/index.js +24 -24
  8. package/build/components/checkbox/index.js +23 -23
  9. package/build/components/clipboard/onclick.js +13 -13
  10. package/build/components/counter/index.js +34 -34
  11. package/build/components/ellipsis/index.js +5 -5
  12. package/build/components/form/action.js +8 -8
  13. package/build/components/highlight/index.d.ts +16 -16
  14. package/build/components/highlight/index.js +15 -15
  15. package/build/components/icon/index.d.ts +11 -11
  16. package/build/components/icon/index.js +6 -6
  17. package/build/components/input/index.js +20 -20
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +33 -33
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +25 -25
  22. package/build/components/scrollbar/index.d.ts +11 -11
  23. package/build/components/scrollbar/index.js +24 -24
  24. package/build/components/select/index.js +46 -41
  25. package/build/components/textarea/index.js +20 -20
  26. package/build/components/tooltip/menu.d.ts +11 -11
  27. package/build/components/tooltip/menu.js +20 -20
  28. package/build/components/tooltip/onclick.d.ts +1101 -1101
  29. package/build/components/tooltip/onclick.js +14 -14
  30. package/build/components/tooltip/onhover.d.ts +16 -16
  31. package/build/components/tooltip/onhover.js +15 -15
  32. package/build/components/typewriter/index.d.ts +11 -11
  33. package/build/components/typewriter/index.js +14 -14
  34. package/package.json +1 -1
  35. package/src/components/select/index.ts +6 -1
@@ -1,4 +1,4 @@
1
- import * as template_d7803d698a6048559dad248aa1d3adda1 from '@esportsplus/template';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 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?: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>) => Renderable<any>>;
19
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => Renderable<any>>;
21
21
  <T extends A>(attributes: T): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>) => Renderable<any>>;
25
- <T extends template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>>(content: T): ReturnType<(this: {
23
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => Renderable<any>>;
25
+ <T extends template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>>(content: T): ReturnType<(this: {
26
26
  attributes?: A | undefined;
27
- content?: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>): ReturnType<(this: {
27
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
28
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => Renderable<any>>;
29
+ (attributes: A, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>): ReturnType<(this: {
30
30
  attributes?: A | undefined;
31
- content?: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_d7803d698a6048559dad248aa1d3adda1.Renderable<any>) => Renderable<any>>;
31
+ content?: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>;
32
+ }, attributes: Readonly<A>, content: template_f8d7c5e168a74d2d85c0f8e758b58e701.Renderable<any>) => Renderable<any>>;
33
33
  };
34
34
  export default _default;
@@ -1,38 +1,38 @@
1
- import * as template_d7803d698a6048559dad248aa1d3adda1 from '@esportsplus/template';
1
+ import * as template_f8d7c5e168a74d2d85c0f8e758b58e701 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 template_d7803d698a6048559dad248aa1d3adda4c = template_d7803d698a6048559dad248aa1d3adda1.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
- const template_d7803d698a6048559dad248aa1d3adda4h = template_d7803d698a6048559dad248aa1d3adda1.template(`<div class='link --width-full'><!--$--></div>`);
7
- const template_d7803d698a6048559dad248aa1d3adda4m = template_d7803d698a6048559dad248aa1d3adda1.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
5
+ const template_f8d7c5e168a74d2d85c0f8e758b58e704c = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
+ const template_f8d7c5e168a74d2d85c0f8e758b58e704h = template_f8d7c5e168a74d2d85c0f8e758b58e701.template(`<div class='link --width-full'><!--$--></div>`);
7
+ const template_f8d7c5e168a74d2d85c0f8e758b58e704m = template_f8d7c5e168a74d2d85c0f8e758b58e701.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 root_d7803d698a6048559dad248aa1d3adda4l = template_d7803d698a6048559dad248aa1d3adda4m(), element_d7803d698a6048559dad248aa1d3adda4n = root_d7803d698a6048559dad248aa1d3adda4l.firstChild, element_d7803d698a6048559dad248aa1d3adda4o = element_d7803d698a6048559dad248aa1d3adda4n.nextSibling, element_d7803d698a6048559dad248aa1d3adda4p = element_d7803d698a6048559dad248aa1d3adda4o.firstChild, attributes_d7803d698a6048559dad248aa1d3adda4q = { "class": "tooltip-content" };
15
- template_d7803d698a6048559dad248aa1d3adda1.slot(element_d7803d698a6048559dad248aa1d3adda4n, content);
16
- template_d7803d698a6048559dad248aa1d3adda1.setList(element_d7803d698a6048559dad248aa1d3adda4o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_d7803d698a6048559dad248aa1d3adda4q);
17
- template_d7803d698a6048559dad248aa1d3adda1.setProperties(element_d7803d698a6048559dad248aa1d3adda4o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_d7803d698a6048559dad248aa1d3adda4q);
18
- template_d7803d698a6048559dad248aa1d3adda1.slot(element_d7803d698a6048559dad248aa1d3adda4p, options.map((o) => {
14
+ let root_f8d7c5e168a74d2d85c0f8e758b58e704l = template_f8d7c5e168a74d2d85c0f8e758b58e704m(), element_f8d7c5e168a74d2d85c0f8e758b58e704n = root_f8d7c5e168a74d2d85c0f8e758b58e704l.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e704o = element_f8d7c5e168a74d2d85c0f8e758b58e704n.nextSibling, element_f8d7c5e168a74d2d85c0f8e758b58e704p = element_f8d7c5e168a74d2d85c0f8e758b58e704o.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e704q = { "class": "tooltip-content" };
15
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e704n, content);
16
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setList(element_f8d7c5e168a74d2d85c0f8e758b58e704o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_f8d7c5e168a74d2d85c0f8e758b58e704q);
17
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e704o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_f8d7c5e168a74d2d85c0f8e758b58e704q);
18
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e704p, options.map((o) => {
19
19
  if (o.href) {
20
20
  return (() => {
21
- let root_d7803d698a6048559dad248aa1d3adda4b = template_d7803d698a6048559dad248aa1d3adda4c(), element_d7803d698a6048559dad248aa1d3adda4d = root_d7803d698a6048559dad248aa1d3adda4b.firstChild, element_d7803d698a6048559dad248aa1d3adda4e = element_d7803d698a6048559dad248aa1d3adda4d.firstChild, attributes_d7803d698a6048559dad248aa1d3adda4f = { "class": "link --width-full" };
22
- template_d7803d698a6048559dad248aa1d3adda1.setProperties(element_d7803d698a6048559dad248aa1d3adda4d, omit(o, OMIT_OPTION), attributes_d7803d698a6048559dad248aa1d3adda4f);
23
- template_d7803d698a6048559dad248aa1d3adda1.setProperties(element_d7803d698a6048559dad248aa1d3adda4d, option, attributes_d7803d698a6048559dad248aa1d3adda4f);
24
- template_d7803d698a6048559dad248aa1d3adda1.slot(element_d7803d698a6048559dad248aa1d3adda4e, o.content);
25
- return root_d7803d698a6048559dad248aa1d3adda4b;
21
+ let root_f8d7c5e168a74d2d85c0f8e758b58e704b = template_f8d7c5e168a74d2d85c0f8e758b58e704c(), element_f8d7c5e168a74d2d85c0f8e758b58e704d = root_f8d7c5e168a74d2d85c0f8e758b58e704b.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e704e = element_f8d7c5e168a74d2d85c0f8e758b58e704d.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e704f = { "class": "link --width-full" };
22
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e704d, omit(o, OMIT_OPTION), attributes_f8d7c5e168a74d2d85c0f8e758b58e704f);
23
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e704d, option, attributes_f8d7c5e168a74d2d85c0f8e758b58e704f);
24
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e704e, o.content);
25
+ return root_f8d7c5e168a74d2d85c0f8e758b58e704b;
26
26
  })();
27
27
  }
28
28
  return (() => {
29
- let root_d7803d698a6048559dad248aa1d3adda4g = template_d7803d698a6048559dad248aa1d3adda4h(), element_d7803d698a6048559dad248aa1d3adda4i = root_d7803d698a6048559dad248aa1d3adda4g.firstChild, element_d7803d698a6048559dad248aa1d3adda4j = element_d7803d698a6048559dad248aa1d3adda4i.firstChild, attributes_d7803d698a6048559dad248aa1d3adda4k = { "class": "link --width-full" };
30
- template_d7803d698a6048559dad248aa1d3adda1.setProperties(element_d7803d698a6048559dad248aa1d3adda4i, omit(o, OMIT_OPTION), attributes_d7803d698a6048559dad248aa1d3adda4k);
31
- template_d7803d698a6048559dad248aa1d3adda1.setProperties(element_d7803d698a6048559dad248aa1d3adda4i, option, attributes_d7803d698a6048559dad248aa1d3adda4k);
32
- template_d7803d698a6048559dad248aa1d3adda1.slot(element_d7803d698a6048559dad248aa1d3adda4j, o.content);
33
- return root_d7803d698a6048559dad248aa1d3adda4g;
29
+ let root_f8d7c5e168a74d2d85c0f8e758b58e704g = template_f8d7c5e168a74d2d85c0f8e758b58e704h(), element_f8d7c5e168a74d2d85c0f8e758b58e704i = root_f8d7c5e168a74d2d85c0f8e758b58e704g.firstChild, element_f8d7c5e168a74d2d85c0f8e758b58e704j = element_f8d7c5e168a74d2d85c0f8e758b58e704i.firstChild, attributes_f8d7c5e168a74d2d85c0f8e758b58e704k = { "class": "link --width-full" };
30
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e704i, omit(o, OMIT_OPTION), attributes_f8d7c5e168a74d2d85c0f8e758b58e704k);
31
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.setProperties(element_f8d7c5e168a74d2d85c0f8e758b58e704i, option, attributes_f8d7c5e168a74d2d85c0f8e758b58e704k);
32
+ template_f8d7c5e168a74d2d85c0f8e758b58e701.slot(element_f8d7c5e168a74d2d85c0f8e758b58e704j, o.content);
33
+ return root_f8d7c5e168a74d2d85c0f8e758b58e704g;
34
34
  })();
35
35
  }));
36
- return root_d7803d698a6048559dad248aa1d3adda4l;
36
+ return root_f8d7c5e168a74d2d85c0f8e758b58e704l;
37
37
  })());
38
38
  });