@esportsplus/ui 0.49.4 → 0.49.6

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,21 +1,21 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
6
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
7
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
8
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
10
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
11
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
12
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
14
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
15
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
16
- (attributes: template_b5a9a3f5040540948313f36934d7b05b1.Attributes, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
18
- content?: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>;
19
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
5
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
6
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
7
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
8
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
10
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
11
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
12
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
14
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
15
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
16
+ (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
18
+ content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
19
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,32 +1,42 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 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_b5a9a3f5040540948313f36934d7b05b3 = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div><!--$--></div>`);
6
+ const template_2a7920412bac4009b37c4d0863a6596e4 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div><!--$--></div>`);
7
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e2 extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
8
+ #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](0);
9
+ constructor() {
10
+ super(null);
11
+ }
12
+ get active() {
13
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
14
+ }
15
+ set active(_v0) {
16
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
17
+ }
18
+ }
7
19
  const OMIT = ['state'];
8
20
  let key = Symbol();
9
21
  export default template.factory(function (attributes, content) {
10
- let ref, state = attributes.state || reactive({
11
- active: 0
12
- });
22
+ let ref, state = attributes.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e2();
13
23
  return (() => {
14
- let root_b5a9a3f5040540948313f36934d7b05b2 = template_b5a9a3f5040540948313f36934d7b05b3(), element_b5a9a3f5040540948313f36934d7b05b4 = root_b5a9a3f5040540948313f36934d7b05b2.firstChild, element_b5a9a3f5040540948313f36934d7b05b5 = element_b5a9a3f5040540948313f36934d7b05b4.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b6 = {};
15
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b4, omit(attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b6);
16
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b4, 'class', () => {
24
+ let root_2a7920412bac4009b37c4d0863a6596e3 = template_2a7920412bac4009b37c4d0863a6596e4(), element_2a7920412bac4009b37c4d0863a6596e5 = root_2a7920412bac4009b37c4d0863a6596e3.firstChild, element_2a7920412bac4009b37c4d0863a6596e6 = element_2a7920412bac4009b37c4d0863a6596e5.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e7 = {};
25
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e5, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e7);
26
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e5, 'class', () => {
17
27
  return state.active && '--active';
18
- }, attributes_b5a9a3f5040540948313f36934d7b05b6);
19
- template_b5a9a3f5040540948313f36934d7b05b1.onrender(element_b5a9a3f5040540948313f36934d7b05b4, (element) => {
28
+ }, attributes_2a7920412bac4009b37c4d0863a6596e7);
29
+ template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e5, (element) => {
20
30
  (ref = element)[key] = state;
21
31
  });
22
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b4, 'style', () => {
32
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e5, 'style', () => {
23
33
  let parent = ref.closest('accordion');
24
34
  if (parent && key in parent) {
25
35
  parent[key].active = (+parent[key].active) + 1;
26
36
  }
27
37
  return state.active && `--max-height: ${ref.scrollHeight}`;
28
- }, attributes_b5a9a3f5040540948313f36934d7b05b6);
29
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05b5, content);
30
- return root_b5a9a3f5040540948313f36934d7b05b2;
38
+ }, attributes_2a7920412bac4009b37c4d0863a6596e7);
39
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e6, content);
40
+ return root_2a7920412bac4009b37c4d0863a6596e3;
31
41
  })();
32
42
  });
@@ -1,6 +1,6 @@
1
1
  import '@esportsplus/vite/global.d.ts';
2
2
  import { Response } from '@esportsplus/action';
3
- import { Attributes, Renderable } from '@esportsplus/frontend';
3
+ import { Attributes, Renderable } from '@esportsplus/template';
4
4
  import './scss/index.scss';
5
5
  declare const _default: (attributes: Attributes & {
6
6
  "alert-close"?: Attributes;
@@ -1,16 +1,52 @@
1
1
  import '@esportsplus/vite/global.d.ts';
2
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
3
- import { reactive, svg } from '@esportsplus/frontend';
2
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
3
+ import { svg } from '@esportsplus/template';
4
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
4
5
  import { omit } from '@esportsplus/utilities';
5
6
  import { icon } from '@esportsplus/ui';
6
7
  import check from './svg/check.svg';
7
8
  import close from './svg/close.svg';
8
9
  import e from './svg/error.svg';
9
10
  import './scss/index.scss';
10
- const template_b5a9a3f5040540948313f36934d7b05b8 = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='--flex-vertical'><!--$--></div>`);
11
- const template_b5a9a3f5040540948313f36934d7b05bd = template_b5a9a3f5040540948313f36934d7b05b1.template(`<p><!--$--></p>`);
12
- const template_b5a9a3f5040540948313f36934d7b05bi = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='--flex-start'><!--$--></div>`);
13
- const template_b5a9a3f5040540948313f36934d7b05bl = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='alert anchor anchor--n --flex-row'><!--$--><div class='alert-messages --flex-column --flex-fill'><!--$--></div><div class="--flex-vertical"><div class='alert-close button --padding-300'><div class="icon" style='--size: 14px;'><!--$--></div></div></div></div>`);
11
+ const template_2a7920412bac4009b37c4d0863a6596ea = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='--flex-vertical'><!--$--></div>`);
12
+ const template_2a7920412bac4009b37c4d0863a6596ef = template_2a7920412bac4009b37c4d0863a6596e1.template(`<p><!--$--></p>`);
13
+ const template_2a7920412bac4009b37c4d0863a6596ek = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='--flex-start'><!--$--></div>`);
14
+ const template_2a7920412bac4009b37c4d0863a6596en = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='alert anchor anchor--n --flex-row'><!--$--><div class='alert-messages --flex-column --flex-fill'><!--$--></div><div class="--flex-vertical"><div class='alert-close button --padding-300'><div class="icon" style='--size: 14px;'><!--$--></div></div></div></div>`);
15
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e8 extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
16
+ #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
17
+ #messages;
18
+ #rerender = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](0);
19
+ #type;
20
+ constructor(_p0, _p1) {
21
+ super(null);
22
+ this.#messages = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](_p0);
23
+ this.#type = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](_p1);
24
+ }
25
+ get active() {
26
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
27
+ }
28
+ set active(_v0) {
29
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
30
+ }
31
+ get messages() {
32
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#messages);
33
+ }
34
+ set messages(_v1) {
35
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#messages, _v1);
36
+ }
37
+ get rerender() {
38
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#rerender);
39
+ }
40
+ set rerender(_v2) {
41
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#rerender, _v2);
42
+ }
43
+ get type() {
44
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#type);
45
+ }
46
+ set type(_v3) {
47
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#type, _v3);
48
+ }
49
+ }
14
50
  const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
15
51
  let modifiers = {
16
52
  error: 'red',
@@ -57,12 +93,7 @@ function deactivate(state) {
57
93
  }, timeout);
58
94
  }
59
95
  export default (attributes) => {
60
- let state = reactive({
61
- active: false,
62
- messages: new Set(),
63
- rerender: 0,
64
- type: ''
65
- });
96
+ let state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e8(new Set(), '');
66
97
  const error = (messages, seconds = 0) => activate('error', messages, seconds, state);
67
98
  error.response = (response) => {
68
99
  if (response.ok) {
@@ -77,41 +108,41 @@ export default (attributes) => {
77
108
  };
78
109
  return {
79
110
  content: (() => {
80
- let root_b5a9a3f5040540948313f36934d7b05bk = template_b5a9a3f5040540948313f36934d7b05bl(), element_b5a9a3f5040540948313f36934d7b05bm = root_b5a9a3f5040540948313f36934d7b05bk.firstChild, element_b5a9a3f5040540948313f36934d7b05bn = element_b5a9a3f5040540948313f36934d7b05bm.firstChild, element_b5a9a3f5040540948313f36934d7b05bo = element_b5a9a3f5040540948313f36934d7b05bm.firstElementChild, element_b5a9a3f5040540948313f36934d7b05bp = element_b5a9a3f5040540948313f36934d7b05bo.firstChild, element_b5a9a3f5040540948313f36934d7b05bq = element_b5a9a3f5040540948313f36934d7b05bo.nextElementSibling.firstElementChild, element_b5a9a3f5040540948313f36934d7b05br = element_b5a9a3f5040540948313f36934d7b05bq.firstElementChild.firstChild, attributes_b5a9a3f5040540948313f36934d7b05bs = { "class": "alert anchor anchor--n --flex-row" }, attributes_b5a9a3f5040540948313f36934d7b05bt = { "class": "alert-messages --flex-column --flex-fill" }, attributes_b5a9a3f5040540948313f36934d7b05bu = { "class": "alert-close button --padding-300" };
81
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05bm, 'class', () => state.active && '--active', attributes_b5a9a3f5040540948313f36934d7b05bs);
82
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05bm, omit(attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05bs);
83
- new template_b5a9a3f5040540948313f36934d7b05b1.EffectSlot(element_b5a9a3f5040540948313f36934d7b05bn, () => {
111
+ let root_2a7920412bac4009b37c4d0863a6596em = template_2a7920412bac4009b37c4d0863a6596en(), element_2a7920412bac4009b37c4d0863a6596eo = root_2a7920412bac4009b37c4d0863a6596em.firstChild, element_2a7920412bac4009b37c4d0863a6596ep = element_2a7920412bac4009b37c4d0863a6596eo.firstChild, element_2a7920412bac4009b37c4d0863a6596eq = element_2a7920412bac4009b37c4d0863a6596eo.firstElementChild, element_2a7920412bac4009b37c4d0863a6596er = element_2a7920412bac4009b37c4d0863a6596eq.firstChild, element_2a7920412bac4009b37c4d0863a6596es = element_2a7920412bac4009b37c4d0863a6596eq.nextElementSibling.firstElementChild, element_2a7920412bac4009b37c4d0863a6596et = element_2a7920412bac4009b37c4d0863a6596es.firstElementChild.firstChild, attributes_2a7920412bac4009b37c4d0863a6596eu = { "class": "alert anchor anchor--n --flex-row" }, attributes_2a7920412bac4009b37c4d0863a6596ev = { "class": "alert-messages --flex-column --flex-fill" }, attributes_2a7920412bac4009b37c4d0863a6596ew = { "class": "alert-close button --padding-300" };
112
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596eo, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596eu);
113
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596eo, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596eu);
114
+ new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596ep, () => {
84
115
  let type = state.type;
85
116
  return (() => {
86
- let root_b5a9a3f5040540948313f36934d7b05b7 = template_b5a9a3f5040540948313f36934d7b05b8(), element_b5a9a3f5040540948313f36934d7b05b9 = root_b5a9a3f5040540948313f36934d7b05b7.firstChild, element_b5a9a3f5040540948313f36934d7b05ba = element_b5a9a3f5040540948313f36934d7b05b9.firstChild, attributes_b5a9a3f5040540948313f36934d7b05bb = { "class": "--flex-vertical", "style": "" };
87
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b9, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_b5a9a3f5040540948313f36934d7b05bb);
88
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05ba, icon({ class: '--size-500' }, type === 'error' ? e : check));
89
- return root_b5a9a3f5040540948313f36934d7b05b7;
117
+ let root_2a7920412bac4009b37c4d0863a6596e9 = template_2a7920412bac4009b37c4d0863a6596ea(), element_2a7920412bac4009b37c4d0863a6596eb = root_2a7920412bac4009b37c4d0863a6596e9.firstChild, element_2a7920412bac4009b37c4d0863a6596ec = element_2a7920412bac4009b37c4d0863a6596eb.firstChild, attributes_2a7920412bac4009b37c4d0863a6596ed = { "class": "--flex-vertical", "style": "" };
118
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596eb, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_2a7920412bac4009b37c4d0863a6596ed);
119
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596ec, icon({ class: '--size-500' }, type === 'error' ? e : check));
120
+ return root_2a7920412bac4009b37c4d0863a6596e9;
90
121
  })();
91
122
  });
92
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05bo, attributes['alert-messages'], attributes_b5a9a3f5040540948313f36934d7b05bt);
93
- new template_b5a9a3f5040540948313f36934d7b05b1.EffectSlot(element_b5a9a3f5040540948313f36934d7b05bp, () => {
123
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596eq, attributes['alert-messages'], attributes_2a7920412bac4009b37c4d0863a6596ev);
124
+ new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596er, () => {
94
125
  let message = attributes['alert-message'];
95
126
  return state.rerender && [...state.messages].map((content) => {
96
127
  if (typeof content === 'string') {
97
128
  return (() => {
98
- let root_b5a9a3f5040540948313f36934d7b05bc = template_b5a9a3f5040540948313f36934d7b05bd(), element_b5a9a3f5040540948313f36934d7b05be = root_b5a9a3f5040540948313f36934d7b05bc.firstChild, element_b5a9a3f5040540948313f36934d7b05bf = element_b5a9a3f5040540948313f36934d7b05be.firstChild, attributes_b5a9a3f5040540948313f36934d7b05bg = {};
99
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05be, message, attributes_b5a9a3f5040540948313f36934d7b05bg);
100
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05bf, content);
101
- return root_b5a9a3f5040540948313f36934d7b05bc;
129
+ let root_2a7920412bac4009b37c4d0863a6596ee = template_2a7920412bac4009b37c4d0863a6596ef(), element_2a7920412bac4009b37c4d0863a6596eg = root_2a7920412bac4009b37c4d0863a6596ee.firstChild, element_2a7920412bac4009b37c4d0863a6596eh = element_2a7920412bac4009b37c4d0863a6596eg.firstChild, attributes_2a7920412bac4009b37c4d0863a6596ei = {};
130
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596eg, message, attributes_2a7920412bac4009b37c4d0863a6596ei);
131
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596eh, content);
132
+ return root_2a7920412bac4009b37c4d0863a6596ee;
102
133
  })();
103
134
  }
104
135
  return (() => {
105
- let root_b5a9a3f5040540948313f36934d7b05bh = template_b5a9a3f5040540948313f36934d7b05bi(), element_b5a9a3f5040540948313f36934d7b05bj = root_b5a9a3f5040540948313f36934d7b05bh.firstChild.firstChild;
106
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05bj, content);
107
- return root_b5a9a3f5040540948313f36934d7b05bh;
136
+ let root_2a7920412bac4009b37c4d0863a6596ej = template_2a7920412bac4009b37c4d0863a6596ek(), element_2a7920412bac4009b37c4d0863a6596el = root_2a7920412bac4009b37c4d0863a6596ej.firstChild.firstChild;
137
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596el, content);
138
+ return root_2a7920412bac4009b37c4d0863a6596ej;
108
139
  })();
109
140
  });
110
141
  });
111
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05bq, 'click', () => deactivate(state));
112
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05bq, attributes['alert-close'], attributes_b5a9a3f5040540948313f36934d7b05bu);
113
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05br, svg.sprite(close));
114
- return root_b5a9a3f5040540948313f36934d7b05bk;
142
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596es, 'click', () => deactivate(state));
143
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596es, attributes['alert-close'], attributes_2a7920412bac4009b37c4d0863a6596ew);
144
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596et, svg.sprite(close));
145
+ return root_2a7920412bac4009b37c4d0863a6596em;
115
146
  })(),
116
147
  deactivate: () => deactivate(state),
117
148
  error,
@@ -1,18 +1,18 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { Attributes } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import { Attributes } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  declare const _default: {
5
5
  (): ReturnType<(this: {
6
6
  attributes?: Attributes;
7
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
8
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Attributes>(attributes: T): ReturnType<(this: {
7
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
8
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
9
9
  attributes?: Attributes;
10
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
11
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>(content: T): ReturnType<(this: {
10
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
11
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: Attributes;
13
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
14
- (attributes: template_b5a9a3f5040540948313f36934d7b05b1.Attributes, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>): ReturnType<(this: {
13
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
14
+ (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>): ReturnType<(this: {
15
15
  attributes?: Attributes;
16
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>) => template_b5a9a3f5040540948313f36934d7b05b1.Renderable<any>>;
16
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
17
17
  };
18
18
  export default _default;
@@ -1,16 +1,16 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
2
  import icon from '../../components/icon/index.js';
3
3
  import template from '../../components/template/index.js';
4
4
  import arrow from './svg/arrow.svg';
5
5
  import './scss/index.scss';
6
- const template_b5a9a3f5040540948313f36934d7b05bw = template_b5a9a3f5040540948313f36934d7b05b1.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
6
+ const template_2a7920412bac4009b37c4d0863a6596ey = template_2a7920412bac4009b37c4d0863a6596e1.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
7
7
  export default template.factory(function (attributes, content) {
8
8
  return (() => {
9
- let root_b5a9a3f5040540948313f36934d7b05bv = template_b5a9a3f5040540948313f36934d7b05bw(), element_b5a9a3f5040540948313f36934d7b05bx = root_b5a9a3f5040540948313f36934d7b05bv.firstChild, element_b5a9a3f5040540948313f36934d7b05by = element_b5a9a3f5040540948313f36934d7b05bx.firstChild, element_b5a9a3f5040540948313f36934d7b05bz = element_b5a9a3f5040540948313f36934d7b05by.nextSibling, attributes_b5a9a3f5040540948313f36934d7b05b10 = { "class": "back link --padding-0px --flex-vertical" };
10
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05bx, this.attributes, attributes_b5a9a3f5040540948313f36934d7b05b10);
11
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05bx, attributes, attributes_b5a9a3f5040540948313f36934d7b05b10);
12
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05by, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
- template_b5a9a3f5040540948313f36934d7b05b1.slot(element_b5a9a3f5040540948313f36934d7b05bz, content);
14
- return root_b5a9a3f5040540948313f36934d7b05bv;
9
+ let root_2a7920412bac4009b37c4d0863a6596ex = template_2a7920412bac4009b37c4d0863a6596ey(), element_2a7920412bac4009b37c4d0863a6596ez = root_2a7920412bac4009b37c4d0863a6596ex.firstChild, element_2a7920412bac4009b37c4d0863a6596e10 = element_2a7920412bac4009b37c4d0863a6596ez.firstChild, element_2a7920412bac4009b37c4d0863a6596e11 = element_2a7920412bac4009b37c4d0863a6596e10.nextSibling, attributes_2a7920412bac4009b37c4d0863a6596e12 = { "class": "back link --padding-0px --flex-vertical" };
10
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596ez, this.attributes, attributes_2a7920412bac4009b37c4d0863a6596e12);
11
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596ez, attributes, attributes_2a7920412bac4009b37c4d0863a6596e12);
12
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e10, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
+ template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e11, content);
14
+ return root_2a7920412bac4009b37c4d0863a6596ex;
15
15
  })();
16
16
  });
@@ -1,24 +1,24 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { Renderable } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import { Renderable } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  declare const hold: {
5
5
  (): ReturnType<(this: {
6
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
6
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
7
7
  content?: ((state: {
8
8
  holding: boolean;
9
9
  complete: boolean;
10
10
  }) => Renderable<any>) | undefined;
11
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
11
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
12
12
  holding: boolean;
13
13
  complete: boolean;
14
14
  }) => Renderable<any>) => Renderable<any>>;
15
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Attributes>(attributes: T): ReturnType<(this: {
16
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
15
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
16
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
17
17
  content?: ((state: {
18
18
  holding: boolean;
19
19
  complete: boolean;
20
20
  }) => Renderable<any>) | undefined;
21
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
21
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
22
22
  holding: boolean;
23
23
  complete: boolean;
24
24
  }) => Renderable<any>) => Renderable<any>>;
@@ -26,25 +26,25 @@ declare const hold: {
26
26
  holding: boolean;
27
27
  complete: boolean;
28
28
  }) => Renderable<any>>(content: T): ReturnType<(this: {
29
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
29
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
30
30
  content?: ((state: {
31
31
  holding: boolean;
32
32
  complete: boolean;
33
33
  }) => Renderable<any>) | undefined;
34
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
34
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
35
35
  holding: boolean;
36
36
  complete: boolean;
37
37
  }) => Renderable<any>) => Renderable<any>>;
38
- (attributes: template_b5a9a3f5040540948313f36934d7b05b1.Attributes, content: (state: {
38
+ (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: (state: {
39
39
  holding: boolean;
40
40
  complete: boolean;
41
41
  }) => Renderable<any>): ReturnType<(this: {
42
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
42
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
43
43
  content?: ((state: {
44
44
  holding: boolean;
45
45
  complete: boolean;
46
46
  }) => Renderable<any>) | undefined;
47
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
47
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
48
48
  holding: boolean;
49
49
  complete: boolean;
50
50
  }) => Renderable<any>) => Renderable<any>>;
@@ -52,22 +52,22 @@ declare const hold: {
52
52
  declare const _default: {
53
53
  hold: {
54
54
  (): ReturnType<(this: {
55
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
55
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
56
56
  content?: ((state: {
57
57
  holding: boolean;
58
58
  complete: boolean;
59
59
  }) => Renderable<any>) | undefined;
60
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
60
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
61
61
  holding: boolean;
62
62
  complete: boolean;
63
63
  }) => Renderable<any>) => Renderable<any>>;
64
- <T extends template_b5a9a3f5040540948313f36934d7b05b1.Attributes>(attributes: T): ReturnType<(this: {
65
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
64
+ <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
65
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
66
66
  content?: ((state: {
67
67
  holding: boolean;
68
68
  complete: boolean;
69
69
  }) => Renderable<any>) | undefined;
70
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
70
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
71
71
  holding: boolean;
72
72
  complete: boolean;
73
73
  }) => Renderable<any>) => Renderable<any>>;
@@ -75,25 +75,25 @@ declare const _default: {
75
75
  holding: boolean;
76
76
  complete: boolean;
77
77
  }) => Renderable<any>>(content: T): ReturnType<(this: {
78
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
78
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
79
79
  content?: ((state: {
80
80
  holding: boolean;
81
81
  complete: boolean;
82
82
  }) => Renderable<any>) | undefined;
83
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
83
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
84
84
  holding: boolean;
85
85
  complete: boolean;
86
86
  }) => Renderable<any>) => Renderable<any>>;
87
- (attributes: template_b5a9a3f5040540948313f36934d7b05b1.Attributes, content: (state: {
87
+ (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: (state: {
88
88
  holding: boolean;
89
89
  complete: boolean;
90
90
  }) => Renderable<any>): ReturnType<(this: {
91
- attributes?: template_b5a9a3f5040540948313f36934d7b05b1.Attributes | undefined;
91
+ attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
92
92
  content?: ((state: {
93
93
  holding: boolean;
94
94
  complete: boolean;
95
95
  }) => Renderable<any>) | undefined;
96
- }, attributes: Readonly<template_b5a9a3f5040540948313f36934d7b05b1.Attributes>, content: (state: {
96
+ }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: (state: {
97
97
  holding: boolean;
98
98
  complete: boolean;
99
99
  }) => Renderable<any>) => Renderable<any>>;
@@ -1,44 +1,60 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
3
3
  import template from '../template/index.js';
4
4
  import './scss/index.scss';
5
- const template_b5a9a3f5040540948313f36934d7b05b12 = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div class='button '><!--$--></div>`);
5
+ const template_2a7920412bac4009b37c4d0863a6596e15 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='button '><!--$--></div>`);
6
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e13 extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
7
+ #complete = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
8
+ #holding = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
9
+ constructor() {
10
+ super(null);
11
+ }
12
+ get complete() {
13
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#complete);
14
+ }
15
+ set complete(_v0) {
16
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#complete, _v0);
17
+ }
18
+ get holding() {
19
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#holding);
20
+ }
21
+ set holding(_v1) {
22
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#holding, _v1);
23
+ }
24
+ }
6
25
  const hold = template.factory(function (attributes, content) {
7
26
  let end = () => {
8
27
  if (!state.complete) {
9
28
  state.holding = false;
10
29
  }
11
- }, state = reactive({
12
- complete: false,
13
- holding: false
14
- });
30
+ }, state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e13();
15
31
  return (() => {
16
- let root_b5a9a3f5040540948313f36934d7b05b11 = template_b5a9a3f5040540948313f36934d7b05b12(), element_b5a9a3f5040540948313f36934d7b05b13 = root_b5a9a3f5040540948313f36934d7b05b11.firstChild, element_b5a9a3f5040540948313f36934d7b05b14 = element_b5a9a3f5040540948313f36934d7b05b13.firstChild, attributes_b5a9a3f5040540948313f36934d7b05b15 = { "class": "button" };
17
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b13, 'class', () => state.holding && 'button--holding', attributes_b5a9a3f5040540948313f36934d7b05b15);
18
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b13, 'class', () => state.complete && '--active', attributes_b5a9a3f5040540948313f36934d7b05b15);
19
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'mousedown', (e) => {
32
+ let root_2a7920412bac4009b37c4d0863a6596e14 = template_2a7920412bac4009b37c4d0863a6596e15(), element_2a7920412bac4009b37c4d0863a6596e16 = root_2a7920412bac4009b37c4d0863a6596e14.firstChild, element_2a7920412bac4009b37c4d0863a6596e17 = element_2a7920412bac4009b37c4d0863a6596e16.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e18 = { "class": "button" };
33
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e16, 'class', () => state.holding && 'button--holding', attributes_2a7920412bac4009b37c4d0863a6596e18);
34
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e16, 'class', () => state.complete && '--active', attributes_2a7920412bac4009b37c4d0863a6596e18);
35
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'mousedown', (e) => {
20
36
  e.preventDefault();
21
37
  state.holding = true;
22
38
  });
23
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b13, attributes, attributes_b5a9a3f5040540948313f36934d7b05b15);
24
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'animationend', (e) => {
39
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e16, attributes, attributes_2a7920412bac4009b37c4d0863a6596e18);
40
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'animationend', (e) => {
25
41
  if (e.animationName === 'buttonHolding') {
26
42
  state.complete = true;
27
43
  }
28
44
  });
29
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'click', () => { });
30
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'mousedown', (e) => {
45
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'click', () => { });
46
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'mousedown', (e) => {
31
47
  e.preventDefault();
32
48
  state.holding = true;
33
49
  });
34
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'mouseup', end);
35
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'touchend', end);
36
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b13, 'touchstart', (e) => {
50
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'mouseup', end);
51
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'touchend', end);
52
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e16, 'touchstart', (e) => {
37
53
  e.preventDefault();
38
54
  state.holding = true;
39
55
  });
40
- new template_b5a9a3f5040540948313f36934d7b05b1.EffectSlot(element_b5a9a3f5040540948313f36934d7b05b14, () => content(state));
41
- return root_b5a9a3f5040540948313f36934d7b05b11;
56
+ new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596e17, () => content(state));
57
+ return root_2a7920412bac4009b37c4d0863a6596e14;
42
58
  })();
43
59
  });
44
60
  export default { hold };
@@ -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 factory: (type: string) => (this: {
4
4
  attributes?: Attributes;
@@ -1,34 +1,51 @@
1
- import * as template_b5a9a3f5040540948313f36934d7b05b1 from '@esportsplus/frontend';
2
- import { reactive, root } from '@esportsplus/frontend';
1
+ import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
3
+ import { root } from '@esportsplus/reactivity';
3
4
  import { omit } from '@esportsplus/utilities';
4
5
  import form from '../../components/form/index.js';
5
6
  import './scss/index.scss';
6
- const template_b5a9a3f5040540948313f36934d7b05b17 = template_b5a9a3f5040540948313f36934d7b05b1.template(`<div><input></div>`);
7
+ const template_2a7920412bac4009b37c4d0863a6596e1b = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div><input></div>`);
8
+ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e19 extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
9
+ #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
10
+ #error = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL]('');
11
+ constructor() {
12
+ super(null);
13
+ }
14
+ get active() {
15
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
16
+ }
17
+ set active(_v0) {
18
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
19
+ }
20
+ get error() {
21
+ return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#error);
22
+ }
23
+ set error(_v1) {
24
+ reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#error, _v1);
25
+ }
26
+ }
7
27
  const OMIT = ['checked', 'value'];
8
28
  const factory = (type) => {
9
29
  function template(attributes) {
10
- let state = attributes?.state || reactive({
11
- active: false,
12
- error: ''
13
- });
30
+ let state = attributes?.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e19();
14
31
  if (attributes?.checked) {
15
32
  state.active = true;
16
33
  }
17
34
  return (() => {
18
- let root_b5a9a3f5040540948313f36934d7b05b16 = template_b5a9a3f5040540948313f36934d7b05b17(), element_b5a9a3f5040540948313f36934d7b05b18 = root_b5a9a3f5040540948313f36934d7b05b16.firstChild, element_b5a9a3f5040540948313f36934d7b05b19 = element_b5a9a3f5040540948313f36934d7b05b18.firstElementChild, attributes_b5a9a3f5040540948313f36934d7b05b1a = { "class": "" }, attributes_b5a9a3f5040540948313f36934d7b05b1b = {};
19
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b18, 'class', type, attributes_b5a9a3f5040540948313f36934d7b05b1a);
20
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b18, 'class', () => state.active && '--active', attributes_b5a9a3f5040540948313f36934d7b05b1a);
21
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b18, this?.attributes && omit(this.attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b1a);
22
- template_b5a9a3f5040540948313f36934d7b05b1.setProperties(element_b5a9a3f5040540948313f36934d7b05b18, attributes && omit(attributes, OMIT), attributes_b5a9a3f5040540948313f36934d7b05b1a);
23
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b19, 'checked', attributes?.checked || root(() => state.active));
24
- template_b5a9a3f5040540948313f36934d7b05b1.setList(element_b5a9a3f5040540948313f36934d7b05b19, 'class', `${type}-tag`, attributes_b5a9a3f5040540948313f36934d7b05b1b);
25
- template_b5a9a3f5040540948313f36934d7b05b1.delegate(element_b5a9a3f5040540948313f36934d7b05b19, 'change', (e) => {
35
+ let root_2a7920412bac4009b37c4d0863a6596e1a = template_2a7920412bac4009b37c4d0863a6596e1b(), element_2a7920412bac4009b37c4d0863a6596e1c = root_2a7920412bac4009b37c4d0863a6596e1a.firstChild, element_2a7920412bac4009b37c4d0863a6596e1d = element_2a7920412bac4009b37c4d0863a6596e1c.firstElementChild, attributes_2a7920412bac4009b37c4d0863a6596e1e = { "class": "" }, attributes_2a7920412bac4009b37c4d0863a6596e1f = {};
36
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1c, 'class', type, attributes_2a7920412bac4009b37c4d0863a6596e1e);
37
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1c, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596e1e);
38
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e1c, this?.attributes && omit(this.attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e1e);
39
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e1c, attributes && omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e1e);
40
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e1d, 'checked', attributes?.checked || root(() => state.active));
41
+ template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1d, 'class', `${type}-tag`, attributes_2a7920412bac4009b37c4d0863a6596e1f);
42
+ template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e1d, 'change', (e) => {
26
43
  state.active = e.target.checked;
27
44
  });
28
- template_b5a9a3f5040540948313f36934d7b05b1.onrender(element_b5a9a3f5040540948313f36934d7b05b19, form.input.onrender(state));
29
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b19, 'type', type === 'radio' ? 'radio' : 'checkbox');
30
- template_b5a9a3f5040540948313f36934d7b05b1.setProperty(element_b5a9a3f5040540948313f36934d7b05b19, 'value', attributes?.value || 1);
31
- return root_b5a9a3f5040540948313f36934d7b05b16;
45
+ template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e1d, form.input.onrender(state));
46
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e1d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
+ template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e1d, 'value', attributes?.value || 1);
48
+ return root_2a7920412bac4009b37c4d0863a6596e1a;
32
49
  })();
33
50
  }
34
51
  return template;