@esportsplus/ui 0.50.12 → 0.50.13

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 (38) 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/checkbox/scss/index.scss +1 -1
  10. package/build/components/clipboard/onclick.js +13 -13
  11. package/build/components/counter/index.js +34 -34
  12. package/build/components/ellipsis/index.js +5 -5
  13. package/build/components/form/action.js +8 -8
  14. package/build/components/highlight/index.d.ts +16 -16
  15. package/build/components/highlight/index.js +15 -15
  16. package/build/components/icon/index.d.ts +11 -11
  17. package/build/components/icon/index.js +6 -6
  18. package/build/components/input/index.js +20 -20
  19. package/build/components/loader/index.d.ts +16 -16
  20. package/build/components/loader/index.js +33 -33
  21. package/build/components/loading/index.js +5 -5
  22. package/build/components/range/index.js +25 -25
  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/switch/scss/index.scss +1 -1
  27. package/build/components/textarea/index.js +20 -20
  28. package/build/components/tooltip/menu.d.ts +11 -11
  29. package/build/components/tooltip/menu.js +20 -20
  30. package/build/components/tooltip/onclick.d.ts +1101 -1101
  31. package/build/components/tooltip/onclick.js +14 -14
  32. package/build/components/tooltip/onhover.d.ts +16 -16
  33. package/build/components/tooltip/onhover.js +15 -15
  34. package/build/components/typewriter/index.d.ts +11 -11
  35. package/build/components/typewriter/index.js +14 -14
  36. package/package.json +1 -1
  37. package/src/components/checkbox/scss/variables.scss +4 -6
  38. package/src/components/switch/scss/variables.scss +4 -6
@@ -1,78 +1,78 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import './scss/index.scss';
6
- const template_31dfc3aae3354e00a148889c23732a6c2v = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
7
- const template_31dfc3aae3354e00a148889c23732a6c32 = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c2t extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
9
- #load = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
10
- #remove = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
11
- #scale = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
6
+ const template_8d320e78acc84a40aecd0d8b5125cc232v = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
7
+ const template_8d320e78acc84a40aecd0d8b5125cc2332 = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc232t extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
9
+ #load = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
10
+ #remove = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
11
+ #scale = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
12
12
  constructor() {
13
13
  super(null);
14
14
  }
15
15
  get load() {
16
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#load);
16
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#load);
17
17
  }
18
18
  set load(_v0) {
19
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#load, _v0);
19
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#load, _v0);
20
20
  }
21
21
  get remove() {
22
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#remove);
22
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#remove);
23
23
  }
24
24
  set remove(_v1) {
25
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#remove, _v1);
25
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#remove, _v1);
26
26
  }
27
27
  get scale() {
28
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#scale);
28
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#scale);
29
29
  }
30
30
  set scale(_v2) {
31
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#scale, _v2);
31
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#scale, _v2);
32
32
  }
33
33
  }
34
34
  const OMIT = ['loader-content', 'loader-logo'];
35
35
  export default template.factory((attributes, content) => {
36
- let state = new ReactiveObject_31dfc3aae3354e00a148889c23732a6c2t();
36
+ let state = new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc232t();
37
37
  return () => {
38
38
  if (state.remove) {
39
39
  return;
40
40
  }
41
41
  let i = 0;
42
42
  return (() => {
43
- let root_31dfc3aae3354e00a148889c23732a6c31 = template_31dfc3aae3354e00a148889c23732a6c32(), element_31dfc3aae3354e00a148889c23732a6c33 = root_31dfc3aae3354e00a148889c23732a6c31.firstChild, element_31dfc3aae3354e00a148889c23732a6c34 = element_31dfc3aae3354e00a148889c23732a6c33.firstElementChild, element_31dfc3aae3354e00a148889c23732a6c35 = element_31dfc3aae3354e00a148889c23732a6c34.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c36 = { "class": "loader" }, attributes_31dfc3aae3354e00a148889c23732a6c37 = { "class": "loader" };
44
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c33, 'class', () => state.load && 'loader--load', attributes_31dfc3aae3354e00a148889c23732a6c36);
45
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c33, 'animationend', (e) => {
43
+ let root_8d320e78acc84a40aecd0d8b5125cc2331 = template_8d320e78acc84a40aecd0d8b5125cc2332(), element_8d320e78acc84a40aecd0d8b5125cc2333 = root_8d320e78acc84a40aecd0d8b5125cc2331.firstChild, element_8d320e78acc84a40aecd0d8b5125cc2334 = element_8d320e78acc84a40aecd0d8b5125cc2333.firstElementChild, element_8d320e78acc84a40aecd0d8b5125cc2335 = element_8d320e78acc84a40aecd0d8b5125cc2334.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc2336 = { "class": "loader" }, attributes_8d320e78acc84a40aecd0d8b5125cc2337 = { "class": "loader" };
44
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc2333, 'class', () => state.load && 'loader--load', attributes_8d320e78acc84a40aecd0d8b5125cc2336);
45
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2333, 'animationend', (e) => {
46
46
  i++;
47
47
  if (e.animationName === 'move' && i > 1) {
48
48
  state.remove = true;
49
49
  }
50
50
  });
51
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c33, omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c36);
52
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c34, 'class', () => state.load && 'loader--load', attributes_31dfc3aae3354e00a148889c23732a6c37);
53
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c34, !content && {
51
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2333, omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc2336);
52
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc2334, 'class', () => state.load && 'loader--load', attributes_8d320e78acc84a40aecd0d8b5125cc2337);
53
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2334, !content && {
54
54
  onconnect: () => {
55
55
  state.load = true;
56
56
  }
57
- }, attributes_31dfc3aae3354e00a148889c23732a6c37);
58
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c34, attributes.loader, attributes_31dfc3aae3354e00a148889c23732a6c37);
59
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c35, content && (() => {
60
- let root_31dfc3aae3354e00a148889c23732a6c2u = template_31dfc3aae3354e00a148889c23732a6c2v(), element_31dfc3aae3354e00a148889c23732a6c2w = root_31dfc3aae3354e00a148889c23732a6c2u.firstChild, element_31dfc3aae3354e00a148889c23732a6c2x = element_31dfc3aae3354e00a148889c23732a6c2w.firstElementChild, element_31dfc3aae3354e00a148889c23732a6c2y = element_31dfc3aae3354e00a148889c23732a6c2x.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c2z = { "class": "loader-content" }, attributes_31dfc3aae3354e00a148889c23732a6c30 = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
61
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c2w, attributes['loader-content'], attributes_31dfc3aae3354e00a148889c23732a6c2z);
62
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c2x, attributes['loader-logo'], attributes_31dfc3aae3354e00a148889c23732a6c30);
63
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c2x, 'class', () => state.scale && 'loader-logo--scale', attributes_31dfc3aae3354e00a148889c23732a6c30);
64
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c2x, 'animationend', ({ animationName: name }) => {
57
+ }, attributes_8d320e78acc84a40aecd0d8b5125cc2337);
58
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2334, attributes.loader, attributes_8d320e78acc84a40aecd0d8b5125cc2337);
59
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc2335, content && (() => {
60
+ let root_8d320e78acc84a40aecd0d8b5125cc232u = template_8d320e78acc84a40aecd0d8b5125cc232v(), element_8d320e78acc84a40aecd0d8b5125cc232w = root_8d320e78acc84a40aecd0d8b5125cc232u.firstChild, element_8d320e78acc84a40aecd0d8b5125cc232x = element_8d320e78acc84a40aecd0d8b5125cc232w.firstElementChild, element_8d320e78acc84a40aecd0d8b5125cc232y = element_8d320e78acc84a40aecd0d8b5125cc232x.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc232z = { "class": "loader-content" }, attributes_8d320e78acc84a40aecd0d8b5125cc2330 = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
61
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc232w, attributes['loader-content'], attributes_8d320e78acc84a40aecd0d8b5125cc232z);
62
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc232x, attributes['loader-logo'], attributes_8d320e78acc84a40aecd0d8b5125cc2330);
63
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc232x, 'class', () => state.scale && 'loader-logo--scale', attributes_8d320e78acc84a40aecd0d8b5125cc2330);
64
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc232x, 'animationend', ({ animationName: name }) => {
65
65
  if (name === 'scale') {
66
66
  state.load = true;
67
67
  }
68
68
  });
69
- template_31dfc3aae3354e00a148889c23732a6c1.onconnect(element_31dfc3aae3354e00a148889c23732a6c2x, () => {
69
+ template_8d320e78acc84a40aecd0d8b5125cc231.onconnect(element_8d320e78acc84a40aecd0d8b5125cc232x, () => {
70
70
  state.scale = true;
71
71
  });
72
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c2y, content);
73
- return root_31dfc3aae3354e00a148889c23732a6c2u;
72
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc232y, content);
73
+ return root_8d320e78acc84a40aecd0d8b5125cc232u;
74
74
  })());
75
- return root_31dfc3aae3354e00a148889c23732a6c31;
75
+ return root_8d320e78acc84a40aecd0d8b5125cc2331;
76
76
  })();
77
77
  };
78
78
  });
@@ -1,10 +1,10 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_31dfc3aae3354e00a148889c23732a6c39 = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
3
+ const template_8d320e78acc84a40aecd0d8b5125cc2339 = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
4
4
  export default (attributes) => {
5
5
  return (() => {
6
- let root_31dfc3aae3354e00a148889c23732a6c38 = template_31dfc3aae3354e00a148889c23732a6c39(), element_31dfc3aae3354e00a148889c23732a6c3a = root_31dfc3aae3354e00a148889c23732a6c38.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c3b = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3a, attributes, attributes_31dfc3aae3354e00a148889c23732a6c3b);
8
- return root_31dfc3aae3354e00a148889c23732a6c38;
6
+ let root_8d320e78acc84a40aecd0d8b5125cc2338 = template_8d320e78acc84a40aecd0d8b5125cc2339(), element_8d320e78acc84a40aecd0d8b5125cc233a = root_8d320e78acc84a40aecd0d8b5125cc2338.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc233b = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233a, attributes, attributes_8d320e78acc84a40aecd0d8b5125cc233b);
8
+ return root_8d320e78acc84a40aecd0d8b5125cc2338;
9
9
  })();
10
10
  };
@@ -1,58 +1,58 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import { root } from '@esportsplus/reactivity';
4
4
  import form from '../../components/form/index.js';
5
5
  import './scss/index.scss';
6
- const template_31dfc3aae3354e00a148889c23732a6c3e = template_31dfc3aae3354e00a148889c23732a6c1.template(`<input class='range --border-state --border-black' type='range' />`);
7
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c3c extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
8
- #active = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
9
- #error = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL]('');
10
- #value = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](0);
6
+ const template_8d320e78acc84a40aecd0d8b5125cc233e = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<input class='range --border-state --border-black' type='range' />`);
7
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc233c extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
8
+ #active = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
9
+ #error = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL]('');
10
+ #value = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](0);
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
15
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
18
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#error);
21
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#error, _v1);
24
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#error, _v1);
25
25
  }
26
26
  get value() {
27
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#value);
27
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#value);
28
28
  }
29
29
  set value(_v2) {
30
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#value, _v2);
30
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#value, _v2);
31
31
  }
32
32
  }
33
33
  export default function (attributes) {
34
- let { max, min } = attributes, state = attributes.state || new ReactiveObject_31dfc3aae3354e00a148889c23732a6c3c();
34
+ let { max, min } = attributes, state = attributes.state || new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc233c();
35
35
  if (attributes?.value) {
36
36
  state.value = Number(attributes.value);
37
37
  }
38
38
  return (() => {
39
- let root_31dfc3aae3354e00a148889c23732a6c3d = template_31dfc3aae3354e00a148889c23732a6c3e(), element_31dfc3aae3354e00a148889c23732a6c3f = root_31dfc3aae3354e00a148889c23732a6c3d.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c3g = { "class": "range --border-state --border-black", "style": "" };
40
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c3f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_31dfc3aae3354e00a148889c23732a6c3g);
41
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3f, this?.attributes, attributes_31dfc3aae3354e00a148889c23732a6c3g);
42
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3f, attributes, attributes_31dfc3aae3354e00a148889c23732a6c3g);
43
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c3f, 'class', () => state.active && '--active', attributes_31dfc3aae3354e00a148889c23732a6c3g);
44
- template_31dfc3aae3354e00a148889c23732a6c1.on(element_31dfc3aae3354e00a148889c23732a6c3f, 'focusin', () => {
39
+ let root_8d320e78acc84a40aecd0d8b5125cc233d = template_8d320e78acc84a40aecd0d8b5125cc233e(), element_8d320e78acc84a40aecd0d8b5125cc233f = root_8d320e78acc84a40aecd0d8b5125cc233d.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc233g = { "class": "range --border-state --border-black", "style": "" };
40
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc233f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_8d320e78acc84a40aecd0d8b5125cc233g);
41
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233f, this?.attributes, attributes_8d320e78acc84a40aecd0d8b5125cc233g);
42
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233f, attributes, attributes_8d320e78acc84a40aecd0d8b5125cc233g);
43
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc233f, 'class', () => state.active && '--active', attributes_8d320e78acc84a40aecd0d8b5125cc233g);
44
+ template_8d320e78acc84a40aecd0d8b5125cc231.on(element_8d320e78acc84a40aecd0d8b5125cc233f, 'focusin', () => {
45
45
  state.active = true;
46
46
  });
47
- template_31dfc3aae3354e00a148889c23732a6c1.on(element_31dfc3aae3354e00a148889c23732a6c3f, 'focusout', () => {
47
+ template_8d320e78acc84a40aecd0d8b5125cc231.on(element_8d320e78acc84a40aecd0d8b5125cc233f, 'focusout', () => {
48
48
  state.active = false;
49
49
  });
50
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c3f, 'input', (e) => {
50
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc233f, 'input', (e) => {
51
51
  state.value = Number(e.target.value);
52
52
  });
53
- template_31dfc3aae3354e00a148889c23732a6c1.onrender(element_31dfc3aae3354e00a148889c23732a6c3f, form.input.onrender(state));
54
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c3f, 'value', root(() => attributes?.value || state.value || 0));
55
- return root_31dfc3aae3354e00a148889c23732a6c3d;
53
+ template_8d320e78acc84a40aecd0d8b5125cc231.onrender(element_8d320e78acc84a40aecd0d8b5125cc233f, form.input.onrender(state));
54
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc233f, 'value', root(() => attributes?.value || state.value || 0));
55
+ return root_8d320e78acc84a40aecd0d8b5125cc233d;
56
56
  })();
57
57
  }
58
58
  ;
@@ -1,4 +1,4 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
2
  import { Attributes } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  type A = Attributes & {
@@ -8,20 +8,20 @@ type A = Attributes & {
8
8
  declare const _default: {
9
9
  (): ReturnType<(this: {
10
10
  attributes?: A | undefined;
11
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
11
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
17
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
17
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
21
- (attributes: A, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>): ReturnType<(this: {
19
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
21
+ (attributes: A, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
23
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,39 +1,39 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import './scss/index.scss';
6
- const template_31dfc3aae3354e00a148889c23732a6c3j = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c3h extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
8
- #height = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](100);
9
- #translate = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](0);
6
+ const template_8d320e78acc84a40aecd0d8b5125cc233j = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc233h extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
8
+ #height = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](100);
9
+ #translate = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](0);
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get height() {
14
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#height);
14
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#height);
15
15
  }
16
16
  set height(_v0) {
17
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#height, _v0);
17
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#height, _v0);
18
18
  }
19
19
  get translate() {
20
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#translate);
20
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#translate);
21
21
  }
22
22
  set translate(_v1) {
23
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#translate, _v1);
23
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#translate, _v1);
24
24
  }
25
25
  }
26
26
  const OMIT = ['scrollbar', 'scrollbar-container-content'];
27
27
  let root = document.body, width;
28
28
  export default template.factory(function (attributes, content) {
29
- let state = new ReactiveObject_31dfc3aae3354e00a148889c23732a6c3h();
29
+ let state = new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc233h();
30
30
  return (() => {
31
- let root_31dfc3aae3354e00a148889c23732a6c3i = template_31dfc3aae3354e00a148889c23732a6c3j(), element_31dfc3aae3354e00a148889c23732a6c3k = root_31dfc3aae3354e00a148889c23732a6c3i.firstChild, element_31dfc3aae3354e00a148889c23732a6c3l = element_31dfc3aae3354e00a148889c23732a6c3k.firstElementChild, element_31dfc3aae3354e00a148889c23732a6c3m = element_31dfc3aae3354e00a148889c23732a6c3l.firstChild, element_31dfc3aae3354e00a148889c23732a6c3n = element_31dfc3aae3354e00a148889c23732a6c3l.nextElementSibling, attributes_31dfc3aae3354e00a148889c23732a6c3o = { "class": "scrollbar-container" }, attributes_31dfc3aae3354e00a148889c23732a6c3p = { "class": "scrollbar-container-content" }, attributes_31dfc3aae3354e00a148889c23732a6c3q = { "class": "scrollbar" };
32
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3k, this?.attributes && omit(this.attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c3o);
33
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3k, omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c3o);
34
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3l, this?.attributes?.['scrollbar-container-content'], attributes_31dfc3aae3354e00a148889c23732a6c3p);
35
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3l, attributes['scrollbar-container-content'], attributes_31dfc3aae3354e00a148889c23732a6c3p);
36
- template_31dfc3aae3354e00a148889c23732a6c1.on(element_31dfc3aae3354e00a148889c23732a6c3l, 'scroll', function () {
31
+ let root_8d320e78acc84a40aecd0d8b5125cc233i = template_8d320e78acc84a40aecd0d8b5125cc233j(), element_8d320e78acc84a40aecd0d8b5125cc233k = root_8d320e78acc84a40aecd0d8b5125cc233i.firstChild, element_8d320e78acc84a40aecd0d8b5125cc233l = element_8d320e78acc84a40aecd0d8b5125cc233k.firstElementChild, element_8d320e78acc84a40aecd0d8b5125cc233m = element_8d320e78acc84a40aecd0d8b5125cc233l.firstChild, element_8d320e78acc84a40aecd0d8b5125cc233n = element_8d320e78acc84a40aecd0d8b5125cc233l.nextElementSibling, attributes_8d320e78acc84a40aecd0d8b5125cc233o = { "class": "scrollbar-container" }, attributes_8d320e78acc84a40aecd0d8b5125cc233p = { "class": "scrollbar-container-content" }, attributes_8d320e78acc84a40aecd0d8b5125cc233q = { "class": "scrollbar" };
32
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233k, this?.attributes && omit(this.attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc233o);
33
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233k, omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc233o);
34
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233l, this?.attributes?.['scrollbar-container-content'], attributes_8d320e78acc84a40aecd0d8b5125cc233p);
35
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233l, attributes['scrollbar-container-content'], attributes_8d320e78acc84a40aecd0d8b5125cc233p);
36
+ template_8d320e78acc84a40aecd0d8b5125cc231.on(element_8d320e78acc84a40aecd0d8b5125cc233l, 'scroll', function () {
37
37
  if (width === undefined) {
38
38
  width = this.offsetWidth - this.clientWidth;
39
39
  if (width && width !== 17) {
@@ -43,14 +43,14 @@ export default template.factory(function (attributes, content) {
43
43
  state.height = (this.clientHeight / this.scrollHeight) * 100;
44
44
  state.translate = (this.scrollTop / this.clientHeight) * 100;
45
45
  });
46
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c3m, content);
47
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3n, this?.attributes?.scrollbar, attributes_31dfc3aae3354e00a148889c23732a6c3q);
48
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3n, attributes.scrollbar, attributes_31dfc3aae3354e00a148889c23732a6c3q);
49
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c3n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_31dfc3aae3354e00a148889c23732a6c3q);
50
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c3n, 'style', () => `
46
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc233m, content);
47
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233n, this?.attributes?.scrollbar, attributes_8d320e78acc84a40aecd0d8b5125cc233q);
48
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233n, attributes.scrollbar, attributes_8d320e78acc84a40aecd0d8b5125cc233q);
49
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc233n, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_8d320e78acc84a40aecd0d8b5125cc233q);
50
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc233n, 'style', () => `
51
51
  --translate: translate3d(0, ${state.translate}%, 0);
52
52
  --height: ${state.height}%;
53
- `, attributes_31dfc3aae3354e00a148889c23732a6c3q);
54
- return root_31dfc3aae3354e00a148889c23732a6c3i;
53
+ `, attributes_8d320e78acc84a40aecd0d8b5125cc233q);
54
+ return root_8d320e78acc84a40aecd0d8b5125cc233i;
55
55
  })();
56
56
  });
@@ -1,45 +1,45 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import { EMPTY_ARRAY, omit, toArray } from '@esportsplus/utilities';
4
4
  import form from '../../components/form/index.js';
5
5
  import root from '../../components/root/index.js';
6
6
  import scrollbar from '../../components/scrollbar/index.js';
7
7
  import template from '../../components/template/index.js';
8
8
  import './scss/index.scss';
9
- const template_31dfc3aae3354e00a148889c23732a6c3t = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='link select-option '><!--$--></div>`);
10
- const template_31dfc3aae3354e00a148889c23732a6c3y = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
11
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c3r extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
12
- #active = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
13
- #error = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL]('');
14
- #render = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
9
+ const template_8d320e78acc84a40aecd0d8b5125cc233t = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='link select-option '><!--$--></div>`);
10
+ const template_8d320e78acc84a40aecd0d8b5125cc233y = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='select tooltip '><!--$--><div class='select-arrow'></div><input class='select-tag' /><!--$--></div>`);
11
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc233r extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
12
+ #active = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
13
+ #error = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL]('');
14
+ #render = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
15
15
  #selected;
16
16
  constructor(_p0) {
17
17
  super(null);
18
- this.#selected = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](_p0);
18
+ this.#selected = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](_p0);
19
19
  }
20
20
  get active() {
21
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
21
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#active);
22
22
  }
23
23
  set active(_v0) {
24
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
24
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#active, _v0);
25
25
  }
26
26
  get error() {
27
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#error);
27
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#error);
28
28
  }
29
29
  set error(_v1) {
30
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#error, _v1);
30
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#error, _v1);
31
31
  }
32
32
  get render() {
33
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#render);
33
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#render);
34
34
  }
35
35
  set render(_v2) {
36
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#render, _v2);
36
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#render, _v2);
37
37
  }
38
38
  get selected() {
39
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#selected);
39
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#selected);
40
40
  }
41
41
  set selected(_v3) {
42
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#selected, _v3);
42
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#selected, _v3);
43
43
  }
44
44
  }
45
45
  const OMIT = [
@@ -78,19 +78,19 @@ function set(current, value) {
78
78
  }
79
79
  }
80
80
  const select = template.factory(function (attributes, content) {
81
- let { options, option } = attributes, state = attributes.state || new ReactiveObject_31dfc3aae3354e00a148889c23732a6c3r(attributes.selected || Object.keys(options)[0]);
81
+ let { options, option } = attributes, state = attributes.state || new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc233r(attributes.selected || Object.keys(options)[0]);
82
82
  return (() => {
83
- let root_31dfc3aae3354e00a148889c23732a6c3x = template_31dfc3aae3354e00a148889c23732a6c3y(), element_31dfc3aae3354e00a148889c23732a6c3z = root_31dfc3aae3354e00a148889c23732a6c3x.firstChild, element_31dfc3aae3354e00a148889c23732a6c40 = element_31dfc3aae3354e00a148889c23732a6c3z.firstChild, element_31dfc3aae3354e00a148889c23732a6c41 = element_31dfc3aae3354e00a148889c23732a6c3z.firstElementChild, element_31dfc3aae3354e00a148889c23732a6c42 = element_31dfc3aae3354e00a148889c23732a6c41.nextElementSibling, element_31dfc3aae3354e00a148889c23732a6c43 = element_31dfc3aae3354e00a148889c23732a6c40.nextSibling.nextSibling.nextSibling, attributes_31dfc3aae3354e00a148889c23732a6c44 = { "class": "select tooltip" }, attributes_31dfc3aae3354e00a148889c23732a6c45 = { "class": "select-arrow" };
84
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c3z, 'class', () => state.active && '--active', attributes_31dfc3aae3354e00a148889c23732a6c44);
85
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3z, this?.attributes && omit(this.attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c44);
86
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3z, omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c44);
87
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c3z, 'click', () => {
83
+ let root_8d320e78acc84a40aecd0d8b5125cc233x = template_8d320e78acc84a40aecd0d8b5125cc233y(), element_8d320e78acc84a40aecd0d8b5125cc233z = root_8d320e78acc84a40aecd0d8b5125cc233x.firstChild, element_8d320e78acc84a40aecd0d8b5125cc2340 = element_8d320e78acc84a40aecd0d8b5125cc233z.firstChild, element_8d320e78acc84a40aecd0d8b5125cc2341 = element_8d320e78acc84a40aecd0d8b5125cc233z.firstElementChild, element_8d320e78acc84a40aecd0d8b5125cc2342 = element_8d320e78acc84a40aecd0d8b5125cc2341.nextElementSibling, element_8d320e78acc84a40aecd0d8b5125cc2343 = element_8d320e78acc84a40aecd0d8b5125cc2340.nextSibling.nextSibling.nextSibling, attributes_8d320e78acc84a40aecd0d8b5125cc2344 = { "class": "select tooltip" }, attributes_8d320e78acc84a40aecd0d8b5125cc2345 = { "class": "select-arrow" };
84
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc233z, 'class', () => state.active && '--active', attributes_8d320e78acc84a40aecd0d8b5125cc2344);
85
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233z, this?.attributes && omit(this.attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc2344);
86
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233z, omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc2344);
87
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc233z, 'click', () => {
88
88
  if (state.render) {
89
89
  set(state, !state.active);
90
90
  }
91
91
  state.render = true;
92
92
  });
93
- new template_31dfc3aae3354e00a148889c23732a6c1.EffectSlot(element_31dfc3aae3354e00a148889c23732a6c40, content ? (() => content(state)) : (() => {
93
+ new template_8d320e78acc84a40aecd0d8b5125cc231.EffectSlot(element_8d320e78acc84a40aecd0d8b5125cc2340, content ? (() => content(state)) : (() => {
94
94
  let selected = options[state.selected];
95
95
  if (!selected) {
96
96
  return '-';
@@ -100,17 +100,17 @@ const select = template.factory(function (attributes, content) {
100
100
  }
101
101
  return selected;
102
102
  }));
103
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c41, this?.attributes?.arrow, attributes_31dfc3aae3354e00a148889c23732a6c45);
104
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c41, attributes.arrow, attributes_31dfc3aae3354e00a148889c23732a6c45);
105
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c42, 'name', attributes.name);
106
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c42, 'click', () => { });
107
- template_31dfc3aae3354e00a148889c23732a6c1.onrender(element_31dfc3aae3354e00a148889c23732a6c42, form.input.onrender(state));
108
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c42, 'value', () => state.selected);
109
- new template_31dfc3aae3354e00a148889c23732a6c1.EffectSlot(element_31dfc3aae3354e00a148889c23732a6c43, () => {
103
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2341, this?.attributes?.arrow, attributes_8d320e78acc84a40aecd0d8b5125cc2345);
104
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2341, attributes.arrow, attributes_8d320e78acc84a40aecd0d8b5125cc2345);
105
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc2342, 'name', attributes.name);
106
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2342, 'click', () => { });
107
+ template_8d320e78acc84a40aecd0d8b5125cc231.onrender(element_8d320e78acc84a40aecd0d8b5125cc2342, form.input.onrender(state));
108
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc2342, 'value', () => state.selected);
109
+ new template_8d320e78acc84a40aecd0d8b5125cc231.EffectSlot(element_8d320e78acc84a40aecd0d8b5125cc2343, () => {
110
110
  if (!state.render) {
111
111
  return;
112
112
  }
113
- let keys = Object.keys(options), selected = reactivity_31dfc3aae3354e00a148889c23732a6c0.reactive(Object.fromEntries(keys.map(key => [key, false])));
113
+ let keys = Object.keys(options), selected = reactivity_8d320e78acc84a40aecd0d8b5125cc230.reactive(Object.fromEntries(keys.map(key => [key, false])));
114
114
  return sb({
115
115
  ...this?.attributes?.['tooltip-content'] || EMPTY_ARRAY,
116
116
  ...attributes['tooltip-content'],
@@ -154,17 +154,17 @@ const select = template.factory(function (attributes, content) {
154
154
  content = content.content;
155
155
  }
156
156
  return (() => {
157
- let root_31dfc3aae3354e00a148889c23732a6c3s = template_31dfc3aae3354e00a148889c23732a6c3t(), element_31dfc3aae3354e00a148889c23732a6c3u = root_31dfc3aae3354e00a148889c23732a6c3s.firstChild, element_31dfc3aae3354e00a148889c23732a6c3v = element_31dfc3aae3354e00a148889c23732a6c3u.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c3w = { "class": "link select-option" };
158
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c3u, 'class', () => selected[key] && '--active', attributes_31dfc3aae3354e00a148889c23732a6c3w);
159
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3u, this?.attributes?.option, attributes_31dfc3aae3354e00a148889c23732a6c3w);
160
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c3u, option, attributes_31dfc3aae3354e00a148889c23732a6c3w);
161
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c3u, 'data-key', key);
162
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c3v, content);
163
- return root_31dfc3aae3354e00a148889c23732a6c3s;
157
+ let root_8d320e78acc84a40aecd0d8b5125cc233s = template_8d320e78acc84a40aecd0d8b5125cc233t(), element_8d320e78acc84a40aecd0d8b5125cc233u = root_8d320e78acc84a40aecd0d8b5125cc233s.firstChild, element_8d320e78acc84a40aecd0d8b5125cc233v = element_8d320e78acc84a40aecd0d8b5125cc233u.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc233w = { "class": "link select-option" };
158
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc233u, 'class', () => selected[key] && '--active', attributes_8d320e78acc84a40aecd0d8b5125cc233w);
159
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233u, this?.attributes?.option, attributes_8d320e78acc84a40aecd0d8b5125cc233w);
160
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc233u, option, attributes_8d320e78acc84a40aecd0d8b5125cc233w);
161
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc233u, 'data-key', key);
162
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc233v, content);
163
+ return root_8d320e78acc84a40aecd0d8b5125cc233s;
164
164
  })();
165
165
  }));
166
166
  });
167
- return root_31dfc3aae3354e00a148889c23732a6c3x;
167
+ return root_8d320e78acc84a40aecd0d8b5125cc233x;
168
168
  })();
169
169
  });
170
170
  export default select;
@@ -1,2 +1,2 @@
1
- @layer components {.switch{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:240px;--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--padding-horizontal:var(--border-width-400);--padding-vertical:var(--border-width-400);--rotate:0deg;--scale:var(--scale-default);--scale-active:var(--scale-default);--scale-default:1;--scale-hover:var(--scale-default);--scale-pressed:var(--scale-default);--size:var(--size-600);--width:var(--width-switch);--width-switch:40px}.switch:before{--box-shadow:0 1px 0 #00000029;--height:calc(var(--size) - (var(--border-width)*2) - (var(--padding-vertical)*2));--translateX:0px;--translateY:0px;--width:var(--height)}.switch:not(.--active):not(:hover):before{--translateX:calc(var(--width-switch) - (var(--border-width)*2) - var(--height) - (var(--padding-horizontal)*2))}.switch:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.switch:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.switch.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.switch{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:var(--width);position:relative}.switch:invalid,.switch:required{box-shadow:none}.switch:before{top:var(--padding-vertical);left:var(--padding-horizontal);background:var(--accent);border-radius:inherit;box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX),var(--translateY))rotate(var(--rotate))scale(var(--scale));transform-origin:50%;width:var(--width);position:absolute}.switch-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
1
+ @layer components {.switch{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:240px;--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--padding-horizontal:var(--border-width-400);--padding-vertical:var(--border-width-400);--rotate:0deg;--scale:var(--scale-default);--scale-active:var(--scale-default);--scale-default:1;--scale-hover:var(--scale-default);--scale-pressed:var(--scale-default);--size:var(--size-600);--width:var(--width-switch);--width-switch:40px}.switch:before{--box-shadow:0 1px 0 #00000029;--height:calc(var(--size) - (var(--border-width)*2) - (var(--padding-vertical)*2));--translateX:0px;--translateY:0px;--width:var(--height)}.switch:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.switch:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.switch.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.switch.--active:before{--translateX:calc(var(--width-switch) - (var(--border-width)*2) - var(--height) - (var(--padding-horizontal)*2))}.switch{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:var(--width);position:relative}.switch:invalid,.switch:required{box-shadow:none}.switch:before{top:var(--padding-vertical);left:var(--padding-horizontal);background:var(--accent);border-radius:inherit;box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX),var(--translateY))rotate(var(--rotate))scale(var(--scale));transform-origin:50%;width:var(--width);position:absolute}.switch-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
2
2
  /*$vite$:1*/
@@ -1,45 +1,45 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 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_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]('');
6
+ const template_8d320e78acc84a40aecd0d8b5125cc2348 = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<textarea class='textarea'></textarea>`);
7
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc2346 extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
8
+ #active = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
9
+ #error = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL]('');
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get active() {
14
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
14
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#active);
15
15
  }
16
16
  set active(_v0) {
17
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
17
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#active, _v0);
18
18
  }
19
19
  get error() {
20
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#error);
20
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#error);
21
21
  }
22
22
  set error(_v1) {
23
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#error, _v1);
23
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.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_31dfc3aae3354e00a148889c23732a6c46();
28
+ let state = attributes.state || new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc2346();
29
29
  return (() => {
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', () => {
30
+ let root_8d320e78acc84a40aecd0d8b5125cc2347 = template_8d320e78acc84a40aecd0d8b5125cc2348(), element_8d320e78acc84a40aecd0d8b5125cc2349 = root_8d320e78acc84a40aecd0d8b5125cc2347.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc234a = { "class": "textarea" };
31
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2349, this?.attributes && omit(this.attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc234a);
32
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2349, omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc234a);
33
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc2349, 'class', () => state.active && '--active', attributes_8d320e78acc84a40aecd0d8b5125cc234a);
34
+ template_8d320e78acc84a40aecd0d8b5125cc231.on(element_8d320e78acc84a40aecd0d8b5125cc2349, 'focusin', () => {
35
35
  state.active = true;
36
36
  });
37
- template_31dfc3aae3354e00a148889c23732a6c1.on(element_31dfc3aae3354e00a148889c23732a6c49, 'focusout', () => {
37
+ template_8d320e78acc84a40aecd0d8b5125cc231.on(element_8d320e78acc84a40aecd0d8b5125cc2349, 'focusout', () => {
38
38
  state.active = false;
39
39
  });
40
- template_31dfc3aae3354e00a148889c23732a6c1.onrender(element_31dfc3aae3354e00a148889c23732a6c49, form.input.onrender(state));
41
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c49, 'value', attributes?.value || '');
42
- return root_31dfc3aae3354e00a148889c23732a6c47;
40
+ template_8d320e78acc84a40aecd0d8b5125cc231.onrender(element_8d320e78acc84a40aecd0d8b5125cc2349, form.input.onrender(state));
41
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc2349, 'value', attributes?.value || '');
42
+ return root_8d320e78acc84a40aecd0d8b5125cc2347;
43
43
  })();
44
44
  }
45
45
  ;