@esportsplus/ui 0.50.10 → 0.50.12

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 (44) 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 -24
  8. package/build/components/button/scss/index.scss +1 -1
  9. package/build/components/checkbox/index.js +23 -23
  10. package/build/components/checkbox/scss/index.scss +1 -1
  11. package/build/components/clipboard/onclick.js +13 -13
  12. package/build/components/counter/index.js +34 -34
  13. package/build/components/ellipsis/index.js +5 -5
  14. package/build/components/form/action.js +8 -8
  15. package/build/components/highlight/index.d.ts +16 -16
  16. package/build/components/highlight/index.js +15 -15
  17. package/build/components/icon/index.d.ts +11 -11
  18. package/build/components/icon/index.js +6 -6
  19. package/build/components/input/index.js +20 -20
  20. package/build/components/loader/index.d.ts +16 -16
  21. package/build/components/loader/index.js +33 -33
  22. package/build/components/loading/index.js +5 -5
  23. package/build/components/range/index.js +25 -25
  24. package/build/components/scrollbar/index.d.ts +11 -11
  25. package/build/components/scrollbar/index.js +24 -24
  26. package/build/components/select/index.js +40 -40
  27. package/build/components/switch/scss/index.scss +1 -1
  28. package/build/components/textarea/index.js +20 -20
  29. package/build/components/tooltip/menu.d.ts +11 -11
  30. package/build/components/tooltip/menu.js +20 -20
  31. package/build/components/tooltip/onclick.d.ts +1101 -1101
  32. package/build/components/tooltip/onclick.js +14 -14
  33. package/build/components/tooltip/onhover.d.ts +16 -16
  34. package/build/components/tooltip/onhover.js +15 -15
  35. package/build/components/typewriter/index.d.ts +11 -11
  36. package/build/components/typewriter/index.js +14 -14
  37. package/build/css-utilities/focus/scss/index.scss +1 -1
  38. package/build/css-utilities/index.scss +1 -1
  39. package/package.json +2 -2
  40. package/src/components/button/index.ts +1 -1
  41. package/src/components/button/scss/index.scss +1 -0
  42. package/src/components/checkbox/scss/variables.scss +3 -2
  43. package/src/components/switch/scss/variables.scss +3 -2
  44. package/src/css-utilities/focus/scss/index.scss +1 -1
@@ -1,45 +1,45 @@
1
- import * as template_30e69f1982b047989a988da1d268266a1 from '@esportsplus/template';
2
- import * as reactivity_30e69f1982b047989a988da1d268266a0 from '@esportsplus/reactivity';
1
+ import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
+ import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 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_30e69f1982b047989a988da1d268266a48 = template_30e69f1982b047989a988da1d268266a1.template(`<textarea class='textarea'></textarea>`);
7
- class ReactiveObject_30e69f1982b047989a988da1d268266a46 extends reactivity_30e69f1982b047989a988da1d268266a0.ReactiveObject {
8
- #active = this[reactivity_30e69f1982b047989a988da1d268266a0.SIGNAL](false);
9
- #error = this[reactivity_30e69f1982b047989a988da1d268266a0.SIGNAL]('');
6
+ const template_31dfc3aae3354e00a148889c23732a6c48 = template_31dfc3aae3354e00a148889c23732a6c1.template(`<textarea class='textarea'></textarea>`);
7
+ class ReactiveObject_31dfc3aae3354e00a148889c23732a6c46 extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
8
+ #active = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
9
+ #error = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL]('');
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get active() {
14
- return reactivity_30e69f1982b047989a988da1d268266a0.read(this.#active);
14
+ return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
15
15
  }
16
16
  set active(_v0) {
17
- reactivity_30e69f1982b047989a988da1d268266a0.write(this.#active, _v0);
17
+ reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
18
18
  }
19
19
  get error() {
20
- return reactivity_30e69f1982b047989a988da1d268266a0.read(this.#error);
20
+ return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#error);
21
21
  }
22
22
  set error(_v1) {
23
- reactivity_30e69f1982b047989a988da1d268266a0.write(this.#error, _v1);
23
+ reactivity_31dfc3aae3354e00a148889c23732a6c0.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_30e69f1982b047989a988da1d268266a46();
28
+ let state = attributes.state || new ReactiveObject_31dfc3aae3354e00a148889c23732a6c46();
29
29
  return (() => {
30
- let root_30e69f1982b047989a988da1d268266a47 = template_30e69f1982b047989a988da1d268266a48(), element_30e69f1982b047989a988da1d268266a49 = root_30e69f1982b047989a988da1d268266a47.firstChild, attributes_30e69f1982b047989a988da1d268266a4a = { "class": "textarea" };
31
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a49, this?.attributes && omit(this.attributes, OMIT), attributes_30e69f1982b047989a988da1d268266a4a);
32
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a49, omit(attributes, OMIT), attributes_30e69f1982b047989a988da1d268266a4a);
33
- template_30e69f1982b047989a988da1d268266a1.setList(element_30e69f1982b047989a988da1d268266a49, 'class', () => state.active && '--active', attributes_30e69f1982b047989a988da1d268266a4a);
34
- template_30e69f1982b047989a988da1d268266a1.on(element_30e69f1982b047989a988da1d268266a49, 'focusin', () => {
30
+ let root_31dfc3aae3354e00a148889c23732a6c47 = template_31dfc3aae3354e00a148889c23732a6c48(), element_31dfc3aae3354e00a148889c23732a6c49 = root_31dfc3aae3354e00a148889c23732a6c47.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c4a = { "class": "textarea" };
31
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c49, this?.attributes && omit(this.attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c4a);
32
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c49, omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c4a);
33
+ template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c49, 'class', () => state.active && '--active', attributes_31dfc3aae3354e00a148889c23732a6c4a);
34
+ template_31dfc3aae3354e00a148889c23732a6c1.on(element_31dfc3aae3354e00a148889c23732a6c49, 'focusin', () => {
35
35
  state.active = true;
36
36
  });
37
- template_30e69f1982b047989a988da1d268266a1.on(element_30e69f1982b047989a988da1d268266a49, 'focusout', () => {
37
+ template_31dfc3aae3354e00a148889c23732a6c1.on(element_31dfc3aae3354e00a148889c23732a6c49, 'focusout', () => {
38
38
  state.active = false;
39
39
  });
40
- template_30e69f1982b047989a988da1d268266a1.onrender(element_30e69f1982b047989a988da1d268266a49, form.input.onrender(state));
41
- template_30e69f1982b047989a988da1d268266a1.setProperty(element_30e69f1982b047989a988da1d268266a49, 'value', attributes?.value || '');
42
- return root_30e69f1982b047989a988da1d268266a47;
40
+ template_31dfc3aae3354e00a148889c23732a6c1.onrender(element_31dfc3aae3354e00a148889c23732a6c49, form.input.onrender(state));
41
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c49, 'value', attributes?.value || '');
42
+ return root_31dfc3aae3354e00a148889c23732a6c47;
43
43
  })();
44
44
  }
45
45
  ;
@@ -1,4 +1,4 @@
1
- import * as template_30e69f1982b047989a988da1d268266a1 from '@esportsplus/template';
1
+ import * as template_31dfc3aae3354e00a148889c23732a6c1 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_30e69f1982b047989a988da1d268266a1.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_30e69f1982b047989a988da1d268266a1.Renderable<any>) => Renderable<any>>;
19
+ content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => Renderable<any>>;
21
21
  <T extends A>(attributes: T): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_30e69f1982b047989a988da1d268266a1.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_30e69f1982b047989a988da1d268266a1.Renderable<any>) => Renderable<any>>;
25
- <T extends template_30e69f1982b047989a988da1d268266a1.Renderable<any>>(content: T): ReturnType<(this: {
23
+ content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => Renderable<any>>;
25
+ <T extends template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>(content: T): ReturnType<(this: {
26
26
  attributes?: A | undefined;
27
- content?: template_30e69f1982b047989a988da1d268266a1.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_30e69f1982b047989a988da1d268266a1.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_30e69f1982b047989a988da1d268266a1.Renderable<any>): ReturnType<(this: {
27
+ content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
28
+ }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => Renderable<any>>;
29
+ (attributes: A, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>): ReturnType<(this: {
30
30
  attributes?: A | undefined;
31
- content?: template_30e69f1982b047989a988da1d268266a1.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_30e69f1982b047989a988da1d268266a1.Renderable<any>) => Renderable<any>>;
31
+ content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
32
+ }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => Renderable<any>>;
33
33
  };
34
34
  export default _default;
@@ -1,38 +1,38 @@
1
- import * as template_30e69f1982b047989a988da1d268266a1 from '@esportsplus/template';
1
+ import * as template_31dfc3aae3354e00a148889c23732a6c1 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_30e69f1982b047989a988da1d268266a4c = template_30e69f1982b047989a988da1d268266a1.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
- const template_30e69f1982b047989a988da1d268266a4h = template_30e69f1982b047989a988da1d268266a1.template(`<div class='link --width-full'><!--$--></div>`);
7
- const template_30e69f1982b047989a988da1d268266a4m = template_30e69f1982b047989a988da1d268266a1.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
5
+ const template_31dfc3aae3354e00a148889c23732a6c4c = template_31dfc3aae3354e00a148889c23732a6c1.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
+ const template_31dfc3aae3354e00a148889c23732a6c4h = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='link --width-full'><!--$--></div>`);
7
+ const template_31dfc3aae3354e00a148889c23732a6c4m = template_31dfc3aae3354e00a148889c23732a6c1.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_30e69f1982b047989a988da1d268266a4l = template_30e69f1982b047989a988da1d268266a4m(), element_30e69f1982b047989a988da1d268266a4n = root_30e69f1982b047989a988da1d268266a4l.firstChild, element_30e69f1982b047989a988da1d268266a4o = element_30e69f1982b047989a988da1d268266a4n.nextSibling, element_30e69f1982b047989a988da1d268266a4p = element_30e69f1982b047989a988da1d268266a4o.firstChild, attributes_30e69f1982b047989a988da1d268266a4q = { "class": "tooltip-content" };
15
- template_30e69f1982b047989a988da1d268266a1.slot(element_30e69f1982b047989a988da1d268266a4n, content);
16
- template_30e69f1982b047989a988da1d268266a1.setList(element_30e69f1982b047989a988da1d268266a4o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_30e69f1982b047989a988da1d268266a4q);
17
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a4o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_30e69f1982b047989a988da1d268266a4q);
18
- template_30e69f1982b047989a988da1d268266a1.slot(element_30e69f1982b047989a988da1d268266a4p, options.map((o) => {
14
+ let root_31dfc3aae3354e00a148889c23732a6c4l = template_31dfc3aae3354e00a148889c23732a6c4m(), element_31dfc3aae3354e00a148889c23732a6c4n = root_31dfc3aae3354e00a148889c23732a6c4l.firstChild, element_31dfc3aae3354e00a148889c23732a6c4o = element_31dfc3aae3354e00a148889c23732a6c4n.nextSibling, element_31dfc3aae3354e00a148889c23732a6c4p = element_31dfc3aae3354e00a148889c23732a6c4o.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c4q = { "class": "tooltip-content" };
15
+ template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c4n, content);
16
+ template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c4o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_31dfc3aae3354e00a148889c23732a6c4q);
17
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c4o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_31dfc3aae3354e00a148889c23732a6c4q);
18
+ template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c4p, options.map((o) => {
19
19
  if (o.href) {
20
20
  return (() => {
21
- let root_30e69f1982b047989a988da1d268266a4b = template_30e69f1982b047989a988da1d268266a4c(), element_30e69f1982b047989a988da1d268266a4d = root_30e69f1982b047989a988da1d268266a4b.firstChild, element_30e69f1982b047989a988da1d268266a4e = element_30e69f1982b047989a988da1d268266a4d.firstChild, attributes_30e69f1982b047989a988da1d268266a4f = { "class": "link --width-full" };
22
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a4d, omit(o, OMIT_OPTION), attributes_30e69f1982b047989a988da1d268266a4f);
23
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a4d, option, attributes_30e69f1982b047989a988da1d268266a4f);
24
- template_30e69f1982b047989a988da1d268266a1.slot(element_30e69f1982b047989a988da1d268266a4e, o.content);
25
- return root_30e69f1982b047989a988da1d268266a4b;
21
+ let root_31dfc3aae3354e00a148889c23732a6c4b = template_31dfc3aae3354e00a148889c23732a6c4c(), element_31dfc3aae3354e00a148889c23732a6c4d = root_31dfc3aae3354e00a148889c23732a6c4b.firstChild, element_31dfc3aae3354e00a148889c23732a6c4e = element_31dfc3aae3354e00a148889c23732a6c4d.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c4f = { "class": "link --width-full" };
22
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c4d, omit(o, OMIT_OPTION), attributes_31dfc3aae3354e00a148889c23732a6c4f);
23
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c4d, option, attributes_31dfc3aae3354e00a148889c23732a6c4f);
24
+ template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c4e, o.content);
25
+ return root_31dfc3aae3354e00a148889c23732a6c4b;
26
26
  })();
27
27
  }
28
28
  return (() => {
29
- let root_30e69f1982b047989a988da1d268266a4g = template_30e69f1982b047989a988da1d268266a4h(), element_30e69f1982b047989a988da1d268266a4i = root_30e69f1982b047989a988da1d268266a4g.firstChild, element_30e69f1982b047989a988da1d268266a4j = element_30e69f1982b047989a988da1d268266a4i.firstChild, attributes_30e69f1982b047989a988da1d268266a4k = { "class": "link --width-full" };
30
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a4i, omit(o, OMIT_OPTION), attributes_30e69f1982b047989a988da1d268266a4k);
31
- template_30e69f1982b047989a988da1d268266a1.setProperties(element_30e69f1982b047989a988da1d268266a4i, option, attributes_30e69f1982b047989a988da1d268266a4k);
32
- template_30e69f1982b047989a988da1d268266a1.slot(element_30e69f1982b047989a988da1d268266a4j, o.content);
33
- return root_30e69f1982b047989a988da1d268266a4g;
29
+ let root_31dfc3aae3354e00a148889c23732a6c4g = template_31dfc3aae3354e00a148889c23732a6c4h(), element_31dfc3aae3354e00a148889c23732a6c4i = root_31dfc3aae3354e00a148889c23732a6c4g.firstChild, element_31dfc3aae3354e00a148889c23732a6c4j = element_31dfc3aae3354e00a148889c23732a6c4i.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c4k = { "class": "link --width-full" };
30
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c4i, omit(o, OMIT_OPTION), attributes_31dfc3aae3354e00a148889c23732a6c4k);
31
+ template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c4i, option, attributes_31dfc3aae3354e00a148889c23732a6c4k);
32
+ template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c4j, o.content);
33
+ return root_31dfc3aae3354e00a148889c23732a6c4g;
34
34
  })();
35
35
  }));
36
- return root_30e69f1982b047989a988da1d268266a4l;
36
+ return root_31dfc3aae3354e00a148889c23732a6c4l;
37
37
  })());
38
38
  });