@esportsplus/ui 0.49.3 → 0.49.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 (88) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +25 -15
  3. package/build/components/alert/index.d.ts +1 -1
  4. package/build/components/alert/index.js +64 -33
  5. package/build/components/back/index.d.ts +9 -9
  6. package/build/components/back/index.js +8 -8
  7. package/build/components/button/index.d.ts +22 -22
  8. package/build/components/button/index.js +36 -20
  9. package/build/components/checkbox/index.d.ts +1 -1
  10. package/build/components/checkbox/index.js +36 -19
  11. package/build/components/clipboard/index.d.ts +1120 -1120
  12. package/build/components/clipboard/onclick.d.ts +1 -1
  13. package/build/components/clipboard/onclick.js +21 -11
  14. package/build/components/counter/index.d.ts +1 -1
  15. package/build/components/counter/index.js +59 -28
  16. package/build/components/ellipsis/index.d.ts +1 -1
  17. package/build/components/ellipsis/index.js +5 -5
  18. package/build/components/form/action.d.ts +1 -1
  19. package/build/components/form/action.js +8 -8
  20. package/build/components/form/index.d.ts +3 -3
  21. package/build/components/form/input.d.ts +1 -1
  22. package/build/components/frame/index.d.ts +10 -10
  23. package/build/components/highlight/index.d.ts +16 -16
  24. package/build/components/highlight/index.js +23 -13
  25. package/build/components/icon/index.d.ts +11 -11
  26. package/build/components/icon/index.js +7 -7
  27. package/build/components/input/index.d.ts +1 -1
  28. package/build/components/input/index.js +32 -16
  29. package/build/components/loader/index.d.ts +16 -16
  30. package/build/components/loader/index.js +49 -27
  31. package/build/components/loading/index.d.ts +1 -1
  32. package/build/components/loading/index.js +5 -5
  33. package/build/components/overlay/index.d.ts +10 -10
  34. package/build/components/radio/index.d.ts +2 -2
  35. package/build/components/range/index.d.ts +1 -1
  36. package/build/components/range/index.js +42 -19
  37. package/build/components/scrollbar/index.d.ts +12 -12
  38. package/build/components/scrollbar/index.js +36 -20
  39. package/build/components/select/index.d.ts +1 -1
  40. package/build/components/select/index.js +61 -32
  41. package/build/components/sidebar/index.d.ts +10 -10
  42. package/build/components/site/index.d.ts +10 -10
  43. package/build/components/switch/index.d.ts +2 -2
  44. package/build/components/template/index.d.ts +1 -1
  45. package/build/components/textarea/index.d.ts +1 -1
  46. package/build/components/textarea/index.js +32 -16
  47. package/build/components/textarea/scss/index.scss +1 -1
  48. package/build/components/tooltip/index.d.ts +2295 -2295
  49. package/build/components/tooltip/menu.d.ts +12 -12
  50. package/build/components/tooltip/menu.js +20 -20
  51. package/build/components/tooltip/onclick.d.ts +1121 -1121
  52. package/build/components/tooltip/onclick.js +22 -10
  53. package/build/components/tooltip/onhover.d.ts +16 -16
  54. package/build/components/tooltip/onhover.js +23 -11
  55. package/build/components/typewriter/index.d.ts +11 -11
  56. package/build/components/typewriter/index.js +22 -10
  57. package/build/themes/dark/alert.d.ts +3 -3
  58. package/build/themes/dark/back.d.ts +11 -11
  59. package/build/themes/dark/input.d.ts +111 -111
  60. package/build/themes/dark/select.d.ts +1220 -1220
  61. package/build/themes/dark/textarea.d.ts +111 -111
  62. package/package.json +5 -4
  63. package/src/components/accordion/index.ts +2 -1
  64. package/src/components/alert/index.ts +2 -1
  65. package/src/components/back/index.ts +1 -1
  66. package/src/components/button/index.ts +2 -1
  67. package/src/components/checkbox/index.ts +2 -1
  68. package/src/components/clipboard/onclick.ts +2 -1
  69. package/src/components/counter/index.ts +2 -1
  70. package/src/components/ellipsis/index.ts +1 -1
  71. package/src/components/form/action.ts +1 -1
  72. package/src/components/form/input.ts +1 -1
  73. package/src/components/highlight/index.ts +2 -1
  74. package/src/components/icon/index.ts +1 -1
  75. package/src/components/input/index.ts +2 -1
  76. package/src/components/loader/index.ts +2 -1
  77. package/src/components/loading/index.ts +1 -1
  78. package/src/components/range/index.ts +2 -1
  79. package/src/components/scrollbar/index.ts +2 -1
  80. package/src/components/select/index.ts +2 -1
  81. package/src/components/template/index.ts +1 -1
  82. package/src/components/textarea/index.ts +2 -1
  83. package/src/components/textarea/scss/index.scss +1 -0
  84. package/src/components/tooltip/menu.ts +1 -1
  85. package/src/components/tooltip/onclick.ts +2 -1
  86. package/src/components/tooltip/onhover.ts +2 -1
  87. package/src/components/typewriter/index.ts +2 -1
  88. package/tsconfig.json +1 -1
@@ -1,4 +1,4 @@
1
- import { Attributes, Renderable } from '@esportsplus/frontend';
1
+ import { Attributes, Renderable } from '@esportsplus/template';
2
2
  type A = {
3
3
  timeout?: number;
4
4
  value: string;
@@ -1,18 +1,28 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
+ import * as reactivity_767c0c17891c439fbbf0bdc72f24ab6c0 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import write from './write.js';
6
- const template_6f5bab561bca4d9ab40f79d00d2111801d = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div><!--$--></div>`);
6
+ const template_767c0c17891c439fbbf0bdc72f24ab6c1i = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div><!--$--></div>`);
7
+ class ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c1g extends reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.ReactiveObject {
8
+ #copied = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.SIGNAL](false);
9
+ constructor() {
10
+ super(null);
11
+ }
12
+ get copied() {
13
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#copied);
14
+ }
15
+ set copied(_v0) {
16
+ reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.write(this.#copied, _v0);
17
+ }
18
+ }
7
19
  const OMIT = ['timeout', 'value'];
8
20
  export default template.factory(function (attributes, content) {
9
- let state = reactive({
10
- copied: false
11
- }), timeout = attributes.timeout || 1000 * 2;
21
+ let state = new ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c1g(), timeout = attributes.timeout || 1000 * 2;
12
22
  return (() => {
13
- let root_6f5bab561bca4d9ab40f79d00d2111801c = template_6f5bab561bca4d9ab40f79d00d2111801d(), element_6f5bab561bca4d9ab40f79d00d2111801e = root_6f5bab561bca4d9ab40f79d00d2111801c.firstChild, element_6f5bab561bca4d9ab40f79d00d2111801f = element_6f5bab561bca4d9ab40f79d00d2111801e.firstChild, attributes_6f5bab561bca4d9ab40f79d00d2111801g = {};
14
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111801e, omit(attributes, OMIT), attributes_6f5bab561bca4d9ab40f79d00d2111801g);
15
- template_6f5bab561bca4d9ab40f79d00d2111801.delegate(element_6f5bab561bca4d9ab40f79d00d2111801e, 'click', (e) => {
23
+ let root_767c0c17891c439fbbf0bdc72f24ab6c1h = template_767c0c17891c439fbbf0bdc72f24ab6c1i(), element_767c0c17891c439fbbf0bdc72f24ab6c1j = root_767c0c17891c439fbbf0bdc72f24ab6c1h.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c1k = element_767c0c17891c439fbbf0bdc72f24ab6c1j.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c1l = {};
24
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c1j, omit(attributes, OMIT), attributes_767c0c17891c439fbbf0bdc72f24ab6c1l);
25
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.delegate(element_767c0c17891c439fbbf0bdc72f24ab6c1j, 'click', (e) => {
16
26
  e.preventDefault();
17
27
  e.stopPropagation();
18
28
  write(attributes.value).then(() => {
@@ -22,7 +32,7 @@ export default template.factory(function (attributes, content) {
22
32
  }, timeout);
23
33
  });
24
34
  });
25
- new template_6f5bab561bca4d9ab40f79d00d2111801.EffectSlot(element_6f5bab561bca4d9ab40f79d00d2111801f, () => content(state));
26
- return root_6f5bab561bca4d9ab40f79d00d2111801c;
35
+ new template_767c0c17891c439fbbf0bdc72f24ab6c1.EffectSlot(element_767c0c17891c439fbbf0bdc72f24ab6c1k, () => content(state));
36
+ return root_767c0c17891c439fbbf0bdc72f24ab6c1h;
27
37
  })();
28
38
  });
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/frontend';
1
+ import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: (attributes: Attributes & {
4
4
  currency?: "IGNORE" | "EUR" | "GBP" | "USD";
@@ -1,24 +1,55 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
- import { effect, reactive } from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
+ import * as reactivity_767c0c17891c439fbbf0bdc72f24ab6c0 from '@esportsplus/reactivity';
3
+ import { effect } from '@esportsplus/reactivity';
3
4
  import { omit } from '@esportsplus/utilities';
4
5
  import './scss/index.scss';
5
- const template_6f5bab561bca4d9ab40f79d00d2111801i = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
6
- const template_6f5bab561bca4d9ab40f79d00d2111801l = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<span><!--$--></span>`);
7
- const template_6f5bab561bca4d9ab40f79d00d2111801o = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
8
- const template_6f5bab561bca4d9ab40f79d00d2111801t = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div class='counter'><!--$--></div>`);
6
+ const template_767c0c17891c439fbbf0bdc72f24ab6c1p = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
7
+ const template_767c0c17891c439fbbf0bdc72f24ab6c1s = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<span><!--$--></span>`);
8
+ const template_767c0c17891c439fbbf0bdc72f24ab6c1v = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
9
+ const template_767c0c17891c439fbbf0bdc72f24ab6c20 = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div class='counter'><!--$--></div>`);
10
+ class ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c1m extends reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.ReactiveObject {
11
+ #value = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.SIGNAL](-1);
12
+ constructor() {
13
+ super(null);
14
+ }
15
+ get value() {
16
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#value);
17
+ }
18
+ set value(_v0) {
19
+ reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.write(this.#value, _v0);
20
+ }
21
+ }
22
+ class ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c1n extends reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.ReactiveObject {
23
+ #length = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.SIGNAL](0);
24
+ #test;
25
+ #render;
26
+ constructor(_p0, _p1) {
27
+ super(null);
28
+ this.#test = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.COMPUTED](_p0);
29
+ this.#render = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.REACTIVE_ARRAY](_p1);
30
+ }
31
+ get length() {
32
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#length);
33
+ }
34
+ set length(_v0) {
35
+ reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.write(this.#length, _v0);
36
+ }
37
+ get test() {
38
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#test);
39
+ }
40
+ get render() {
41
+ return this.#render;
42
+ }
43
+ }
9
44
  const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
10
45
  let formatters = {};
11
46
  export default (attributes) => {
12
- let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || reactive({ value: -1 }), formatter = currency === 'IGNORE'
47
+ let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c1m(), formatter = currency === 'IGNORE'
13
48
  ? undefined
14
49
  : formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
15
50
  style: 'currency',
16
51
  currency: currency || 'USD'
17
- }), rendering = true, state = reactive({
18
- length: 0,
19
- test: () => 'sds',
20
- render: []
21
- }), render = reactive([]);
52
+ }), rendering = true, state = new ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c1n(() => 'sds', []), render = new reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.ReactiveArray();
22
53
  decimals ??= 2;
23
54
  effect(() => {
24
55
  if (api.value !== -1) {
@@ -45,7 +76,7 @@ export default (attributes) => {
45
76
  padding--;
46
77
  value = '0';
47
78
  }
48
- render[i] = value;
79
+ render.$set(i, value);
49
80
  }
50
81
  if (rendering === true) {
51
82
  rendering = false;
@@ -53,33 +84,33 @@ export default (attributes) => {
53
84
  }
54
85
  });
55
86
  return (() => {
56
- let root_6f5bab561bca4d9ab40f79d00d2111801s = template_6f5bab561bca4d9ab40f79d00d2111801t(), element_6f5bab561bca4d9ab40f79d00d2111801u = root_6f5bab561bca4d9ab40f79d00d2111801s.firstChild, element_6f5bab561bca4d9ab40f79d00d2111801v = element_6f5bab561bca4d9ab40f79d00d2111801u.firstChild, attributes_6f5bab561bca4d9ab40f79d00d2111801w = { "class": "counter" };
57
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111801u, omit(attributes, OMIT), attributes_6f5bab561bca4d9ab40f79d00d2111801w);
58
- new template_6f5bab561bca4d9ab40f79d00d2111801.EffectSlot(element_6f5bab561bca4d9ab40f79d00d2111801v, () => {
87
+ let root_767c0c17891c439fbbf0bdc72f24ab6c1z = template_767c0c17891c439fbbf0bdc72f24ab6c20(), element_767c0c17891c439fbbf0bdc72f24ab6c21 = root_767c0c17891c439fbbf0bdc72f24ab6c1z.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c22 = element_767c0c17891c439fbbf0bdc72f24ab6c21.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c23 = { "class": "counter" };
88
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c21, omit(attributes, OMIT), attributes_767c0c17891c439fbbf0bdc72f24ab6c23);
89
+ new template_767c0c17891c439fbbf0bdc72f24ab6c1.EffectSlot(element_767c0c17891c439fbbf0bdc72f24ab6c22, () => {
59
90
  let n = state.length;
60
91
  if (n === 0) {
61
92
  return '';
62
93
  }
63
- return new template_6f5bab561bca4d9ab40f79d00d2111801.ArraySlot(render, function (value) {
94
+ return new template_767c0c17891c439fbbf0bdc72f24ab6c1.ArraySlot(render, function (value) {
64
95
  if (isNaN(parseInt(value, 10))) {
65
96
  return (() => {
66
- let root_6f5bab561bca4d9ab40f79d00d2111801h = template_6f5bab561bca4d9ab40f79d00d2111801i(), element_6f5bab561bca4d9ab40f79d00d2111801j = root_6f5bab561bca4d9ab40f79d00d2111801h.firstChild.firstChild;
67
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d2111801j, value);
68
- return root_6f5bab561bca4d9ab40f79d00d2111801h;
97
+ let root_767c0c17891c439fbbf0bdc72f24ab6c1o = template_767c0c17891c439fbbf0bdc72f24ab6c1p(), element_767c0c17891c439fbbf0bdc72f24ab6c1q = root_767c0c17891c439fbbf0bdc72f24ab6c1o.firstChild.firstChild;
98
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c1q, value);
99
+ return root_767c0c17891c439fbbf0bdc72f24ab6c1o;
69
100
  })();
70
101
  }
71
102
  return (() => {
72
- let root_6f5bab561bca4d9ab40f79d00d2111801n = template_6f5bab561bca4d9ab40f79d00d2111801o(), element_6f5bab561bca4d9ab40f79d00d2111801p = root_6f5bab561bca4d9ab40f79d00d2111801n.firstChild.firstElementChild, element_6f5bab561bca4d9ab40f79d00d2111801q = element_6f5bab561bca4d9ab40f79d00d2111801p.firstChild.nextSibling, attributes_6f5bab561bca4d9ab40f79d00d2111801r = { "class": "counter-character-track", "style": "" };
73
- template_6f5bab561bca4d9ab40f79d00d2111801.setList(element_6f5bab561bca4d9ab40f79d00d2111801p, 'style', `--value: ${value}`, attributes_6f5bab561bca4d9ab40f79d00d2111801r);
74
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d2111801q, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
75
- let root_6f5bab561bca4d9ab40f79d00d2111801k = template_6f5bab561bca4d9ab40f79d00d2111801l(), element_6f5bab561bca4d9ab40f79d00d2111801m = root_6f5bab561bca4d9ab40f79d00d2111801k.firstChild.firstChild;
76
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d2111801m, value);
77
- return root_6f5bab561bca4d9ab40f79d00d2111801k;
103
+ let root_767c0c17891c439fbbf0bdc72f24ab6c1u = template_767c0c17891c439fbbf0bdc72f24ab6c1v(), element_767c0c17891c439fbbf0bdc72f24ab6c1w = root_767c0c17891c439fbbf0bdc72f24ab6c1u.firstChild.firstElementChild, element_767c0c17891c439fbbf0bdc72f24ab6c1x = element_767c0c17891c439fbbf0bdc72f24ab6c1w.firstChild.nextSibling, attributes_767c0c17891c439fbbf0bdc72f24ab6c1y = { "class": "counter-character-track", "style": "" };
104
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setList(element_767c0c17891c439fbbf0bdc72f24ab6c1w, 'style', `--value: ${value}`, attributes_767c0c17891c439fbbf0bdc72f24ab6c1y);
105
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c1x, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
+ let root_767c0c17891c439fbbf0bdc72f24ab6c1r = template_767c0c17891c439fbbf0bdc72f24ab6c1s(), element_767c0c17891c439fbbf0bdc72f24ab6c1t = root_767c0c17891c439fbbf0bdc72f24ab6c1r.firstChild.firstChild;
107
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c1t, value);
108
+ return root_767c0c17891c439fbbf0bdc72f24ab6c1r;
78
109
  }));
79
- return root_6f5bab561bca4d9ab40f79d00d2111801n;
110
+ return root_767c0c17891c439fbbf0bdc72f24ab6c1u;
80
111
  })();
81
112
  });
82
113
  });
83
- return root_6f5bab561bca4d9ab40f79d00d2111801s;
114
+ return root_767c0c17891c439fbbf0bdc72f24ab6c1z;
84
115
  })();
85
116
  };
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/frontend';
1
+ import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: (attributes?: Attributes) => DocumentFragment;
4
4
  export default _default;
@@ -1,8 +1,8 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_6f5bab561bca4d9ab40f79d00d2111801y = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
3
+ const template_767c0c17891c439fbbf0bdc72f24ab6c25 = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
4
4
  export default (attributes) => {
5
- let root_6f5bab561bca4d9ab40f79d00d2111801x = template_6f5bab561bca4d9ab40f79d00d2111801y(), element_6f5bab561bca4d9ab40f79d00d2111801z = root_6f5bab561bca4d9ab40f79d00d2111801x.firstChild, attributes_6f5bab561bca4d9ab40f79d00d21118020 = { "class": "ellipsis" };
6
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111801z, attributes, attributes_6f5bab561bca4d9ab40f79d00d21118020);
7
- return root_6f5bab561bca4d9ab40f79d00d2111801x;
5
+ let root_767c0c17891c439fbbf0bdc72f24ab6c24 = template_767c0c17891c439fbbf0bdc72f24ab6c25(), element_767c0c17891c439fbbf0bdc72f24ab6c26 = root_767c0c17891c439fbbf0bdc72f24ab6c24.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c27 = { "class": "ellipsis" };
6
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c26, attributes, attributes_767c0c17891c439fbbf0bdc72f24ab6c27);
7
+ return root_767c0c17891c439fbbf0bdc72f24ab6c24;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import response, { Response } from '@esportsplus/action';
2
- import { Attributes, Renderable } from '@esportsplus/frontend';
2
+ import { Attributes, Renderable } from '@esportsplus/template';
3
3
  type Errors = {
4
4
  errors: Response<unknown>['errors'];
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_6f5bab561bca4d9ab40f79d00d21118022 = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<form class='form'><!--$--></form>`);
5
+ const template_767c0c17891c439fbbf0bdc72f24ab6c29 = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<form class='form'><!--$--></form>`);
6
6
  const OMIT = ['action', 'state'];
7
7
  function parse(input) {
8
8
  let data = {};
@@ -29,9 +29,9 @@ function parse(input) {
29
29
  export default (attributes, content) => {
30
30
  let { action, state } = attributes;
31
31
  return (() => {
32
- let root_6f5bab561bca4d9ab40f79d00d21118021 = template_6f5bab561bca4d9ab40f79d00d21118022(), element_6f5bab561bca4d9ab40f79d00d21118023 = root_6f5bab561bca4d9ab40f79d00d21118021.firstChild, element_6f5bab561bca4d9ab40f79d00d21118024 = element_6f5bab561bca4d9ab40f79d00d21118023.firstChild, attributes_6f5bab561bca4d9ab40f79d00d21118025 = { "class": "form" };
33
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d21118023, omit(attributes, OMIT), attributes_6f5bab561bca4d9ab40f79d00d21118025);
34
- template_6f5bab561bca4d9ab40f79d00d2111801.delegate(element_6f5bab561bca4d9ab40f79d00d21118023, 'click', function (event) {
32
+ let root_767c0c17891c439fbbf0bdc72f24ab6c28 = template_767c0c17891c439fbbf0bdc72f24ab6c29(), element_767c0c17891c439fbbf0bdc72f24ab6c2a = root_767c0c17891c439fbbf0bdc72f24ab6c28.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c2b = element_767c0c17891c439fbbf0bdc72f24ab6c2a.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c2c = { "class": "form" };
33
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c2a, omit(attributes, OMIT), attributes_767c0c17891c439fbbf0bdc72f24ab6c2c);
34
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.delegate(element_767c0c17891c439fbbf0bdc72f24ab6c2a, 'click', function (event) {
35
35
  let trigger = event.target;
36
36
  if (trigger?.type !== 'submit') {
37
37
  return;
@@ -39,7 +39,7 @@ export default (attributes, content) => {
39
39
  event.preventDefault();
40
40
  this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
41
41
  });
42
- template_6f5bab561bca4d9ab40f79d00d2111801.on(element_6f5bab561bca4d9ab40f79d00d21118023, 'submit', async function (event) {
42
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.on(element_767c0c17891c439fbbf0bdc72f24ab6c2a, 'submit', async function (event) {
43
43
  event.preventDefault();
44
44
  if (state) {
45
45
  state.processing = true;
@@ -59,7 +59,7 @@ export default (attributes, content) => {
59
59
  state.processing = false;
60
60
  }
61
61
  });
62
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d21118024, content);
63
- return root_6f5bab561bca4d9ab40f79d00d21118021;
62
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c2b, content);
63
+ return root_767c0c17891c439fbbf0bdc72f24ab6c28;
64
64
  })();
65
65
  };
@@ -12,14 +12,14 @@ declare const _default: {
12
12
  state?: {
13
13
  processing: boolean;
14
14
  };
15
- } & import("@esportsplus/frontend").Attributes, content: import("@esportsplus/frontend").Renderable<any>) => DocumentFragment;
15
+ } & import("@esportsplus/template").Attributes, content: import("@esportsplus/template").Renderable<any>) => DocumentFragment;
16
16
  input: {
17
- get: (element?: import("@esportsplus/frontend").Element) => {
17
+ get: (element?: import("@esportsplus/template").Element) => {
18
18
  error: string;
19
19
  } | undefined;
20
20
  onrender: (reactive: {
21
21
  error: string;
22
- }) => (element: import("@esportsplus/frontend").Element) => void;
22
+ }) => (element: import("@esportsplus/template").Element) => void;
23
23
  };
24
24
  };
25
25
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Element } from '@esportsplus/frontend';
1
+ import { Element } from '@esportsplus/template';
2
2
  declare const _default: {
3
3
  get: (element?: Element) => {
4
4
  error: string;
@@ -2,19 +2,19 @@ import './scss/index.scss';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
4
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
5
- content?: import("@esportsplus/frontend").Renderable<any>;
6
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
5
+ content?: import("@esportsplus/template").Renderable<any>;
6
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
7
  <T extends import("../../components/scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
8
8
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
9
- content?: import("@esportsplus/frontend").Renderable<any>;
10
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
11
- <T extends import("@esportsplus/frontend").Renderable<any>>(content: T): ReturnType<(this: {
9
+ content?: import("@esportsplus/template").Renderable<any>;
10
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
11
+ <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
13
- content?: import("@esportsplus/frontend").Renderable<any>;
14
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
15
- (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/frontend").Renderable<any>): ReturnType<(this: {
13
+ content?: import("@esportsplus/template").Renderable<any>;
14
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
15
+ (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
16
16
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
17
- content?: import("@esportsplus/frontend").Renderable<any>;
18
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
17
+ content?: import("@esportsplus/template").Renderable<any>;
18
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,21 +1,21 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
6
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
7
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
8
- <T extends template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
10
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
11
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
12
- <T extends template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
14
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
15
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
16
- (attributes: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
18
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
19
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
5
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
6
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
7
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
8
+ <T extends template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
10
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
11
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
12
+ <T extends template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
14
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
15
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
16
+ (attributes: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
18
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
19
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,9 +1,21 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
+ import * as reactivity_767c0c17891c439fbbf0bdc72f24ab6c0 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_6f5bab561bca4d9ab40f79d00d21118027 = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div class='highlight'><!--$--></div>`);
6
+ const template_767c0c17891c439fbbf0bdc72f24ab6c2f = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div class='highlight'><!--$--></div>`);
7
+ class ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c2d extends reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.ReactiveObject {
8
+ #highlight = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.SIGNAL](0);
9
+ constructor() {
10
+ super(null);
11
+ }
12
+ get highlight() {
13
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#highlight);
14
+ }
15
+ set highlight(_v0) {
16
+ reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.write(this.#highlight, _v0);
17
+ }
18
+ }
7
19
  const OMIT = ['background'];
8
20
  let key = Symbol(), observer = null;
9
21
  export default template.factory((attributes, content) => {
@@ -26,21 +38,19 @@ export default template.factory((attributes, content) => {
26
38
  }
27
39
  }, { threshold: 1 });
28
40
  }
29
- let state = reactive({
30
- highlight: 0
31
- });
41
+ let state = new ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c2d();
32
42
  return (() => {
33
- let root_6f5bab561bca4d9ab40f79d00d21118026 = template_6f5bab561bca4d9ab40f79d00d21118027(), element_6f5bab561bca4d9ab40f79d00d21118028 = root_6f5bab561bca4d9ab40f79d00d21118026.firstChild, element_6f5bab561bca4d9ab40f79d00d21118029 = element_6f5bab561bca4d9ab40f79d00d21118028.firstChild, attributes_6f5bab561bca4d9ab40f79d00d2111802a = { "class": "highlight" };
34
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d21118028, omit(attributes, OMIT), attributes_6f5bab561bca4d9ab40f79d00d2111802a);
35
- template_6f5bab561bca4d9ab40f79d00d2111801.onrender(element_6f5bab561bca4d9ab40f79d00d21118028, (element) => {
43
+ let root_767c0c17891c439fbbf0bdc72f24ab6c2e = template_767c0c17891c439fbbf0bdc72f24ab6c2f(), element_767c0c17891c439fbbf0bdc72f24ab6c2g = root_767c0c17891c439fbbf0bdc72f24ab6c2e.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c2h = element_767c0c17891c439fbbf0bdc72f24ab6c2g.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c2i = { "class": "highlight" };
44
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c2g, omit(attributes, OMIT), attributes_767c0c17891c439fbbf0bdc72f24ab6c2i);
45
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.onrender(element_767c0c17891c439fbbf0bdc72f24ab6c2g, (element) => {
36
46
  element[key] = state;
37
47
  observer.observe(element);
38
48
  });
39
- template_6f5bab561bca4d9ab40f79d00d2111801.setList(element_6f5bab561bca4d9ab40f79d00d21118028, 'style', [
49
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setList(element_767c0c17891c439fbbf0bdc72f24ab6c2g, 'style', [
40
50
  () => `--highlight: ${state.highlight}`,
41
51
  `--background: ${attributes.background}`,
42
- ], attributes_6f5bab561bca4d9ab40f79d00d2111802a);
43
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d21118029, content);
44
- return root_6f5bab561bca4d9ab40f79d00d21118026;
52
+ ], attributes_767c0c17891c439fbbf0bdc72f24ab6c2i);
53
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c2h, content);
54
+ return root_767c0c17891c439fbbf0bdc72f24ab6c2e;
45
55
  })();
46
56
  });
@@ -1,21 +1,21 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
5
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: string) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
8
- <T extends template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
7
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: string) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
8
+ <T extends template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: string) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
11
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: string) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
13
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: string) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
16
- (attributes: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
15
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: string) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
16
+ (attributes: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: string) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
19
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: string) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,13 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
- import { svg } from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
+ import { svg } from '@esportsplus/template';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_6f5bab561bca4d9ab40f79d00d2111802c = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div class='icon'><!--$--></div>`);
5
+ const template_767c0c17891c439fbbf0bdc72f24ab6c2k = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div class='icon'><!--$--></div>`);
6
6
  export default template.factory((attributes, icon) => {
7
7
  return (() => {
8
- let root_6f5bab561bca4d9ab40f79d00d2111802b = template_6f5bab561bca4d9ab40f79d00d2111802c(), element_6f5bab561bca4d9ab40f79d00d2111802d = root_6f5bab561bca4d9ab40f79d00d2111802b.firstChild, element_6f5bab561bca4d9ab40f79d00d2111802e = element_6f5bab561bca4d9ab40f79d00d2111802d.firstChild, attributes_6f5bab561bca4d9ab40f79d00d2111802f = { "class": "icon" };
9
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111802d, attributes, attributes_6f5bab561bca4d9ab40f79d00d2111802f);
10
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d2111802e, svg.sprite(icon));
11
- return root_6f5bab561bca4d9ab40f79d00d2111802b;
8
+ let root_767c0c17891c439fbbf0bdc72f24ab6c2j = template_767c0c17891c439fbbf0bdc72f24ab6c2k(), element_767c0c17891c439fbbf0bdc72f24ab6c2l = root_767c0c17891c439fbbf0bdc72f24ab6c2j.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c2m = element_767c0c17891c439fbbf0bdc72f24ab6c2l.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c2n = { "class": "icon" };
9
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c2l, attributes, attributes_767c0c17891c439fbbf0bdc72f24ab6c2n);
10
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c2m, svg.sprite(icon));
11
+ return root_767c0c17891c439fbbf0bdc72f24ab6c2j;
12
12
  })();
13
13
  });
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/frontend';
1
+ import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  export default function (this: {
4
4
  attributes?: Attributes;
@@ -1,27 +1,43 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
+ import * as reactivity_767c0c17891c439fbbf0bdc72f24ab6c0 from '@esportsplus/reactivity';
3
3
  import form from '../../components/form/index.js';
4
4
  import './scss/index.scss';
5
- const template_6f5bab561bca4d9ab40f79d00d2111802h = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<input class='input' />`);
5
+ const template_767c0c17891c439fbbf0bdc72f24ab6c2q = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<input class='input' />`);
6
+ class ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c2o extends reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.ReactiveObject {
7
+ #active = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.SIGNAL](false);
8
+ #error = this[reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.SIGNAL]('');
9
+ constructor() {
10
+ super(null);
11
+ }
12
+ get active() {
13
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#active);
14
+ }
15
+ set active(_v0) {
16
+ reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.write(this.#active, _v0);
17
+ }
18
+ get error() {
19
+ return reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.read(this.#error);
20
+ }
21
+ set error(_v1) {
22
+ reactivity_767c0c17891c439fbbf0bdc72f24ab6c0.write(this.#error, _v1);
23
+ }
24
+ }
6
25
  export default function (attributes) {
7
- let state = attributes.state || reactive({
8
- active: false,
9
- error: ''
10
- });
26
+ let state = attributes.state || new ReactiveObject_767c0c17891c439fbbf0bdc72f24ab6c2o();
11
27
  return (() => {
12
- let root_6f5bab561bca4d9ab40f79d00d2111802g = template_6f5bab561bca4d9ab40f79d00d2111802h(), element_6f5bab561bca4d9ab40f79d00d2111802i = root_6f5bab561bca4d9ab40f79d00d2111802g.firstChild, attributes_6f5bab561bca4d9ab40f79d00d2111802j = { "class": "input" };
13
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111802i, this?.attributes, attributes_6f5bab561bca4d9ab40f79d00d2111802j);
14
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111802i, attributes, attributes_6f5bab561bca4d9ab40f79d00d2111802j);
15
- template_6f5bab561bca4d9ab40f79d00d2111801.setList(element_6f5bab561bca4d9ab40f79d00d2111802i, 'class', () => state.active && '--active', attributes_6f5bab561bca4d9ab40f79d00d2111802j);
16
- template_6f5bab561bca4d9ab40f79d00d2111801.on(element_6f5bab561bca4d9ab40f79d00d2111802i, 'focusin', () => {
28
+ let root_767c0c17891c439fbbf0bdc72f24ab6c2p = template_767c0c17891c439fbbf0bdc72f24ab6c2q(), element_767c0c17891c439fbbf0bdc72f24ab6c2r = root_767c0c17891c439fbbf0bdc72f24ab6c2p.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c2s = { "class": "input" };
29
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c2r, this?.attributes, attributes_767c0c17891c439fbbf0bdc72f24ab6c2s);
30
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c2r, attributes, attributes_767c0c17891c439fbbf0bdc72f24ab6c2s);
31
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setList(element_767c0c17891c439fbbf0bdc72f24ab6c2r, 'class', () => state.active && '--active', attributes_767c0c17891c439fbbf0bdc72f24ab6c2s);
32
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.on(element_767c0c17891c439fbbf0bdc72f24ab6c2r, 'focusin', () => {
17
33
  state.active = true;
18
34
  });
19
- template_6f5bab561bca4d9ab40f79d00d2111801.on(element_6f5bab561bca4d9ab40f79d00d2111802i, 'focusout', () => {
35
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.on(element_767c0c17891c439fbbf0bdc72f24ab6c2r, 'focusout', () => {
20
36
  state.active = false;
21
37
  });
22
- template_6f5bab561bca4d9ab40f79d00d2111801.onrender(element_6f5bab561bca4d9ab40f79d00d2111802i, form.input.onrender(state));
23
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperty(element_6f5bab561bca4d9ab40f79d00d2111802i, 'type', (attributes.type || 'text'));
24
- return root_6f5bab561bca4d9ab40f79d00d2111802g;
38
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.onrender(element_767c0c17891c439fbbf0bdc72f24ab6c2r, form.input.onrender(state));
39
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperty(element_767c0c17891c439fbbf0bdc72f24ab6c2r, 'type', (attributes.type || 'text'));
40
+ return root_767c0c17891c439fbbf0bdc72f24ab6c2p;
25
41
  })();
26
42
  }
27
43
  ;
@@ -1,21 +1,21 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
6
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
7
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
8
- <T extends template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
10
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
11
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
12
- <T extends template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
14
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
15
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
16
- (attributes: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_6f5bab561bca4d9ab40f79d00d2111801.Attributes | undefined;
18
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
19
- }, attributes: Readonly<template_6f5bab561bca4d9ab40f79d00d2111801.Attributes>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>;
5
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
6
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
7
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
8
+ <T extends template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
10
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
11
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
12
+ <T extends template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
14
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
15
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
16
+ (attributes: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes | undefined;
18
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
19
+ }, attributes: Readonly<template_767c0c17891c439fbbf0bdc72f24ab6c1.Attributes>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>;
20
20
  };
21
21
  export default _default;