@esportsplus/ui 0.51.4 → 0.51.5

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 (36) 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 +23 -23
  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/root/scss/index.scss +1 -1
  23. package/build/components/scrollbar/index.d.ts +11 -11
  24. package/build/components/scrollbar/index.js +24 -24
  25. package/build/components/select/index.js +40 -40
  26. package/build/components/textarea/index.js +20 -20
  27. package/build/components/tooltip/menu.d.ts +11 -11
  28. package/build/components/tooltip/menu.js +20 -20
  29. package/build/components/tooltip/onclick.d.ts +1101 -1101
  30. package/build/components/tooltip/onclick.js +14 -14
  31. package/build/components/tooltip/onhover.d.ts +16 -16
  32. package/build/components/tooltip/onhover.js +15 -15
  33. package/build/components/typewriter/index.d.ts +11 -11
  34. package/build/components/typewriter/index.js +14 -14
  35. package/package.json +1 -1
  36. package/src/tokens/scss/font-size.scss +9 -9
@@ -1,45 +1,45 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
- import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
1
+ import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
+ import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import form from '../../components/form/index.js';
5
5
  import './scss/index.scss';
6
- const template_b7478c4a5ff041d4bc1434ee94c2db3748 = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<textarea class='textarea'></textarea>`);
7
- class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db3746 extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
8
- #active = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](false);
9
- #error = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL]('');
6
+ const template_eea410626b3047bfa8387f562557496348 = template_eea410626b3047bfa8387f56255749631.template(`<textarea class='textarea'></textarea>`);
7
+ class ReactiveObject_eea410626b3047bfa8387f562557496346 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
+ #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
9
+ #error = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL]('');
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get active() {
14
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#active);
14
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
15
15
  }
16
16
  set active(_v0) {
17
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#active, _v0);
17
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
18
18
  }
19
19
  get error() {
20
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#error);
20
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
21
21
  }
22
22
  set error(_v1) {
23
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#error, _v1);
23
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#error, _v1);
24
24
  }
25
25
  }
26
26
  const OMIT = ['state'];
27
27
  export default function (attributes) {
28
- let state = attributes.state || new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db3746();
28
+ let state = attributes.state || new ReactiveObject_eea410626b3047bfa8387f562557496346();
29
29
  return (() => {
30
- let root_b7478c4a5ff041d4bc1434ee94c2db3747 = template_b7478c4a5ff041d4bc1434ee94c2db3748(), element_b7478c4a5ff041d4bc1434ee94c2db3749 = root_b7478c4a5ff041d4bc1434ee94c2db3747.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374a = { "class": " textarea" };
31
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db3749, this?.attributes && omit(this.attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db374a);
32
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db3749, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db374a);
33
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db3749, 'class', () => state.active && '--active', attributes_b7478c4a5ff041d4bc1434ee94c2db374a);
34
- template_b7478c4a5ff041d4bc1434ee94c2db371.on(element_b7478c4a5ff041d4bc1434ee94c2db3749, 'focusin', () => {
30
+ let root_eea410626b3047bfa8387f562557496347 = template_eea410626b3047bfa8387f562557496348(), element_eea410626b3047bfa8387f562557496349 = root_eea410626b3047bfa8387f562557496347.firstChild, attributes_eea410626b3047bfa8387f56255749634a = { "class": " textarea" };
31
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496349, this?.attributes && omit(this.attributes, OMIT), attributes_eea410626b3047bfa8387f56255749634a);
32
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496349, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749634a);
33
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f562557496349, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f56255749634a);
34
+ template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f562557496349, 'focusin', () => {
35
35
  state.active = true;
36
36
  });
37
- template_b7478c4a5ff041d4bc1434ee94c2db371.on(element_b7478c4a5ff041d4bc1434ee94c2db3749, 'focusout', () => {
37
+ template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f562557496349, 'focusout', () => {
38
38
  state.active = false;
39
39
  });
40
- template_b7478c4a5ff041d4bc1434ee94c2db371.onrender(element_b7478c4a5ff041d4bc1434ee94c2db3749, form.input.onrender(state));
41
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperty(element_b7478c4a5ff041d4bc1434ee94c2db3749, 'value', attributes?.value || '');
42
- return root_b7478c4a5ff041d4bc1434ee94c2db3747;
40
+ template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f562557496349, form.input.onrender(state));
41
+ template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f562557496349, 'value', attributes?.value || '');
42
+ return root_eea410626b3047bfa8387f562557496347;
43
43
  })();
44
44
  }
45
45
  ;
@@ -1,4 +1,4 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_eea410626b3047bfa8387f56255749631 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_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
19
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
21
21
  <T extends A>(attributes: T): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
25
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>(content: T): ReturnType<(this: {
23
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
25
+ <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
26
26
  attributes?: A | undefined;
27
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>): ReturnType<(this: {
27
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
28
+ }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
29
+ (attributes: A, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
30
30
  attributes?: A | undefined;
31
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
31
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
32
+ }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
33
33
  };
34
34
  export default _default;
@@ -1,38 +1,38 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_eea410626b3047bfa8387f56255749631 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_b7478c4a5ff041d4bc1434ee94c2db374c = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
- const template_b7478c4a5ff041d4bc1434ee94c2db374h = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='link --width-full'><!--$--></div>`);
7
- const template_b7478c4a5ff041d4bc1434ee94c2db374m = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
5
+ const template_eea410626b3047bfa8387f56255749634c = template_eea410626b3047bfa8387f56255749631.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
+ const template_eea410626b3047bfa8387f56255749634h = template_eea410626b3047bfa8387f56255749631.template(`<div class='link --width-full'><!--$--></div>`);
7
+ const template_eea410626b3047bfa8387f56255749634m = template_eea410626b3047bfa8387f56255749631.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_b7478c4a5ff041d4bc1434ee94c2db374l = template_b7478c4a5ff041d4bc1434ee94c2db374m(), element_b7478c4a5ff041d4bc1434ee94c2db374n = root_b7478c4a5ff041d4bc1434ee94c2db374l.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db374o = element_b7478c4a5ff041d4bc1434ee94c2db374n.nextSibling, element_b7478c4a5ff041d4bc1434ee94c2db374p = element_b7478c4a5ff041d4bc1434ee94c2db374o.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374q = { "class": " tooltip-content " };
15
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374n, content);
16
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db374o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_b7478c4a5ff041d4bc1434ee94c2db374q);
17
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_b7478c4a5ff041d4bc1434ee94c2db374q);
18
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374p, options.map((o) => {
14
+ let root_eea410626b3047bfa8387f56255749634l = template_eea410626b3047bfa8387f56255749634m(), element_eea410626b3047bfa8387f56255749634n = root_eea410626b3047bfa8387f56255749634l.firstChild, element_eea410626b3047bfa8387f56255749634o = element_eea410626b3047bfa8387f56255749634n.nextSibling, element_eea410626b3047bfa8387f56255749634p = element_eea410626b3047bfa8387f56255749634o.firstChild, attributes_eea410626b3047bfa8387f56255749634q = { "class": " tooltip-content " };
15
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634n, content);
16
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749634o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_eea410626b3047bfa8387f56255749634q);
17
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_eea410626b3047bfa8387f56255749634q);
18
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634p, options.map((o) => {
19
19
  if (o.href) {
20
20
  return (() => {
21
- let root_b7478c4a5ff041d4bc1434ee94c2db374b = template_b7478c4a5ff041d4bc1434ee94c2db374c(), element_b7478c4a5ff041d4bc1434ee94c2db374d = root_b7478c4a5ff041d4bc1434ee94c2db374b.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db374e = element_b7478c4a5ff041d4bc1434ee94c2db374d.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374f = { "class": " link --width-full" };
22
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374d, omit(o, OMIT_OPTION), attributes_b7478c4a5ff041d4bc1434ee94c2db374f);
23
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374d, option, attributes_b7478c4a5ff041d4bc1434ee94c2db374f);
24
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374e, o.content);
25
- return root_b7478c4a5ff041d4bc1434ee94c2db374b;
21
+ let root_eea410626b3047bfa8387f56255749634b = template_eea410626b3047bfa8387f56255749634c(), element_eea410626b3047bfa8387f56255749634d = root_eea410626b3047bfa8387f56255749634b.firstChild, element_eea410626b3047bfa8387f56255749634e = element_eea410626b3047bfa8387f56255749634d.firstChild, attributes_eea410626b3047bfa8387f56255749634f = { "class": " link --width-full" };
22
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634d, omit(o, OMIT_OPTION), attributes_eea410626b3047bfa8387f56255749634f);
23
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634d, option, attributes_eea410626b3047bfa8387f56255749634f);
24
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634e, o.content);
25
+ return root_eea410626b3047bfa8387f56255749634b;
26
26
  })();
27
27
  }
28
28
  return (() => {
29
- let root_b7478c4a5ff041d4bc1434ee94c2db374g = template_b7478c4a5ff041d4bc1434ee94c2db374h(), element_b7478c4a5ff041d4bc1434ee94c2db374i = root_b7478c4a5ff041d4bc1434ee94c2db374g.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db374j = element_b7478c4a5ff041d4bc1434ee94c2db374i.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374k = { "class": " link --width-full" };
30
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374i, omit(o, OMIT_OPTION), attributes_b7478c4a5ff041d4bc1434ee94c2db374k);
31
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374i, option, attributes_b7478c4a5ff041d4bc1434ee94c2db374k);
32
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374j, o.content);
33
- return root_b7478c4a5ff041d4bc1434ee94c2db374g;
29
+ let root_eea410626b3047bfa8387f56255749634g = template_eea410626b3047bfa8387f56255749634h(), element_eea410626b3047bfa8387f56255749634i = root_eea410626b3047bfa8387f56255749634g.firstChild, element_eea410626b3047bfa8387f56255749634j = element_eea410626b3047bfa8387f56255749634i.firstChild, attributes_eea410626b3047bfa8387f56255749634k = { "class": " link --width-full" };
30
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634i, omit(o, OMIT_OPTION), attributes_eea410626b3047bfa8387f56255749634k);
31
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634i, option, attributes_eea410626b3047bfa8387f56255749634k);
32
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634j, o.content);
33
+ return root_eea410626b3047bfa8387f56255749634g;
34
34
  })();
35
35
  }));
36
- return root_b7478c4a5ff041d4bc1434ee94c2db374l;
36
+ return root_eea410626b3047bfa8387f56255749634l;
37
37
  })());
38
38
  });