@esportsplus/ui 0.51.4 → 0.51.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 (57) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +17 -17
  3. package/build/components/alert/index.d.ts +1 -1
  4. package/build/components/alert/index.js +42 -43
  5. package/build/components/back/index.d.ts +8 -8
  6. package/build/components/back/index.js +8 -8
  7. package/build/components/button/index.d.ts +21 -21
  8. package/build/components/button/index.js +23 -23
  9. package/build/components/checkbox/index.d.ts +2 -2
  10. package/build/components/checkbox/index.js +22 -23
  11. package/build/components/clipboard/index.d.ts +40 -30
  12. package/build/components/clipboard/onclick.js +13 -13
  13. package/build/components/counter/index.d.ts +1 -1
  14. package/build/components/counter/index.js +35 -35
  15. package/build/components/ellipsis/index.d.ts +1 -1
  16. package/build/components/ellipsis/index.js +5 -5
  17. package/build/components/form/action.d.ts +1 -1
  18. package/build/components/form/action.js +8 -8
  19. package/build/components/form/index.d.ts +1 -1
  20. package/build/components/highlight/index.d.ts +16 -16
  21. package/build/components/highlight/index.js +15 -15
  22. package/build/components/icon/index.d.ts +11 -11
  23. package/build/components/icon/index.js +10 -8
  24. package/build/components/input/index.d.ts +1 -1
  25. package/build/components/input/index.js +20 -20
  26. package/build/components/loader/index.d.ts +16 -16
  27. package/build/components/loader/index.js +34 -34
  28. package/build/components/loading/index.d.ts +1 -1
  29. package/build/components/loading/index.js +5 -5
  30. package/build/components/radio/index.d.ts +1 -1
  31. package/build/components/range/index.d.ts +1 -1
  32. package/build/components/range/index.js +25 -25
  33. package/build/components/root/scss/index.scss +1 -1
  34. package/build/components/scrollbar/index.d.ts +11 -11
  35. package/build/components/scrollbar/index.js +24 -24
  36. package/build/components/select/index.js +41 -41
  37. package/build/components/switch/index.d.ts +1 -1
  38. package/build/components/textarea/index.d.ts +1 -1
  39. package/build/components/textarea/index.js +20 -20
  40. package/build/components/tooltip/index.d.ts +80 -60
  41. package/build/components/tooltip/menu.d.ts +11 -11
  42. package/build/components/tooltip/menu.js +21 -21
  43. package/build/components/tooltip/onclick.d.ts +1131 -1121
  44. package/build/components/tooltip/onclick.js +14 -14
  45. package/build/components/tooltip/onhover.d.ts +16 -16
  46. package/build/components/tooltip/onhover.js +15 -15
  47. package/build/components/typewriter/index.d.ts +11 -11
  48. package/build/components/typewriter/index.js +14 -14
  49. package/build/themes/dark/alert.d.ts +1 -1
  50. package/build/themes/dark/input.d.ts +5 -4
  51. package/build/themes/dark/select.d.ts +40 -30
  52. package/build/themes/dark/textarea.d.ts +5 -4
  53. package/package.json +7 -7
  54. package/pnpm-workspace.yaml +17 -0
  55. package/src/components/alert/index.ts +2 -4
  56. package/src/components/icon/index.ts +7 -3
  57. package/src/tokens/scss/font-size.scss +9 -9
@@ -1,21 +1,21 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
6
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
7
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
8
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
10
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
11
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
12
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
14
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
15
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
16
- (attributes: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
18
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
19
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
5
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
6
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
7
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
8
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
10
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
11
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
12
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
14
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
15
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
16
+ (attributes: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
18
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
19
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,42 +1,42 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
- import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 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_b7478c4a5ff041d4bc1434ee94c2db374 = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div><!--$--></div>`);
7
- class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db372 extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
8
- #active = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](0);
6
+ const template_0ff113fe0a6246fbbfe92857b2a0303c4 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div>`);
7
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2 extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
8
+ #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get active() {
13
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#active);
13
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#active, _v0);
16
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['state'];
20
20
  let key = Symbol();
21
21
  export default template.factory(function (attributes, content) {
22
- let ref, state = attributes.state || new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db372();
22
+ let ref, state = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2();
23
23
  return (() => {
24
- let root_b7478c4a5ff041d4bc1434ee94c2db373 = template_b7478c4a5ff041d4bc1434ee94c2db374(), element_b7478c4a5ff041d4bc1434ee94c2db375 = root_b7478c4a5ff041d4bc1434ee94c2db373.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db376 = element_b7478c4a5ff041d4bc1434ee94c2db375.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db377 = {};
25
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db375, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db377);
26
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db375, 'class', () => {
24
+ let root_0ff113fe0a6246fbbfe92857b2a0303c3 = template_0ff113fe0a6246fbbfe92857b2a0303c4(), element_0ff113fe0a6246fbbfe92857b2a0303c5 = root_0ff113fe0a6246fbbfe92857b2a0303c3.firstChild;
25
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c5, omit(attributes, OMIT));
26
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c5, 'class', () => {
27
27
  return state.active && '--active';
28
- }, attributes_b7478c4a5ff041d4bc1434ee94c2db377);
29
- template_b7478c4a5ff041d4bc1434ee94c2db371.onrender(element_b7478c4a5ff041d4bc1434ee94c2db375, (element) => {
28
+ });
29
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303c5, (element) => {
30
30
  (ref = element)[key] = state;
31
31
  });
32
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db375, 'style', () => {
32
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c5, 'style', () => {
33
33
  let parent = ref.closest('accordion');
34
34
  if (parent && key in parent) {
35
35
  parent[key].active = (+parent[key].active) + 1;
36
36
  }
37
37
  return state.active && `--max-height: ${ref.scrollHeight}`;
38
- }, attributes_b7478c4a5ff041d4bc1434ee94c2db377);
39
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db376, content);
40
- return root_b7478c4a5ff041d4bc1434ee94c2db373;
38
+ });
39
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c5, content, 1);
40
+ return root_0ff113fe0a6246fbbfe92857b2a0303c3;
41
41
  })();
42
42
  });
@@ -7,7 +7,7 @@ declare const _default: (attributes: Attributes & {
7
7
  "alert-messages"?: Attributes;
8
8
  "alert-message"?: Attributes;
9
9
  }) => {
10
- content: DocumentFragment;
10
+ content: DocumentFragment | Text;
11
11
  deactivate: () => void;
12
12
  error: {
13
13
  (messages: Renderable<any>, seconds?: number): void;
@@ -1,50 +1,49 @@
1
1
  import '@esportsplus/vite/global.d.ts';
2
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
3
- import { svg } from '@esportsplus/template';
4
- import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
2
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
3
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
5
4
  import { omit } from '@esportsplus/utilities';
6
5
  import { icon } from '@esportsplus/ui';
7
6
  import check from './svg/check.svg';
8
7
  import close from './svg/close.svg';
9
8
  import e from './svg/error.svg';
10
9
  import './scss/index.scss';
11
- const template_b7478c4a5ff041d4bc1434ee94c2db37a = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='--flex-vertical'><!--$--></div>`);
12
- const template_b7478c4a5ff041d4bc1434ee94c2db37f = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<p><!--$--></p>`);
13
- const template_b7478c4a5ff041d4bc1434ee94c2db37k = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='--flex-start'><!--$--></div>`);
14
- const template_b7478c4a5ff041d4bc1434ee94c2db37n = template_b7478c4a5ff041d4bc1434ee94c2db371.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_b7478c4a5ff041d4bc1434ee94c2db378 extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
16
- #active = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](false);
10
+ const template_0ff113fe0a6246fbbfe92857b2a0303c8 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='--flex-vertical'>`);
11
+ const template_0ff113fe0a6246fbbfe92857b2a0303cb = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<p>`);
12
+ const template_0ff113fe0a6246fbbfe92857b2a0303ce = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='--flex-start'>`);
13
+ const template_0ff113fe0a6246fbbfe92857b2a0303ch = template_0ff113fe0a6246fbbfe92857b2a0303c1.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'>`);
14
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c6 extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
15
+ #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
17
16
  #messages;
18
- #rerender = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](0);
17
+ #rerender = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
19
18
  #type;
20
19
  constructor(_p0, _p1) {
21
20
  super(null);
22
- this.#messages = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](_p0);
23
- this.#type = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](_p1);
21
+ this.#messages = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](_p0);
22
+ this.#type = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](_p1);
24
23
  }
25
24
  get active() {
26
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#active);
25
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
27
26
  }
28
27
  set active(_v0) {
29
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#active, _v0);
28
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
30
29
  }
31
30
  get messages() {
32
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#messages);
31
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#messages);
33
32
  }
34
33
  set messages(_v1) {
35
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#messages, _v1);
34
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#messages, _v1);
36
35
  }
37
36
  get rerender() {
38
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#rerender);
37
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#rerender);
39
38
  }
40
39
  set rerender(_v2) {
41
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#rerender, _v2);
40
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#rerender, _v2);
42
41
  }
43
42
  get type() {
44
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#type);
43
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#type);
45
44
  }
46
45
  set type(_v3) {
47
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#type, _v3);
46
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#type, _v3);
48
47
  }
49
48
  }
50
49
  const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
@@ -93,7 +92,7 @@ function deactivate(state) {
93
92
  }, timeout);
94
93
  }
95
94
  export default (attributes) => {
96
- let state = new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db378(new Set(), '');
95
+ let state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c6(new Set(), '');
97
96
  const error = (messages, seconds = 0) => activate('error', messages, seconds, state);
98
97
  error.response = (response) => {
99
98
  if (response.ok) {
@@ -108,41 +107,41 @@ export default (attributes) => {
108
107
  };
109
108
  return {
110
109
  content: (() => {
111
- let root_b7478c4a5ff041d4bc1434ee94c2db37m = template_b7478c4a5ff041d4bc1434ee94c2db37n(), element_b7478c4a5ff041d4bc1434ee94c2db37o = root_b7478c4a5ff041d4bc1434ee94c2db37m.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db37p = element_b7478c4a5ff041d4bc1434ee94c2db37o.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db37q = element_b7478c4a5ff041d4bc1434ee94c2db37o.firstElementChild, element_b7478c4a5ff041d4bc1434ee94c2db37r = element_b7478c4a5ff041d4bc1434ee94c2db37q.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db37s = element_b7478c4a5ff041d4bc1434ee94c2db37q.nextElementSibling.firstElementChild, element_b7478c4a5ff041d4bc1434ee94c2db37t = element_b7478c4a5ff041d4bc1434ee94c2db37s.firstElementChild.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db37u = { "class": " alert anchor anchor--n --flex-row" }, attributes_b7478c4a5ff041d4bc1434ee94c2db37v = { "class": " alert-messages --flex-column --flex-fill" }, attributes_b7478c4a5ff041d4bc1434ee94c2db37w = { "class": " alert-close button --padding-300" };
112
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db37o, 'class', () => state.active && '--active', attributes_b7478c4a5ff041d4bc1434ee94c2db37u);
113
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db37o, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db37u);
114
- new template_b7478c4a5ff041d4bc1434ee94c2db371.EffectSlot(element_b7478c4a5ff041d4bc1434ee94c2db37p, () => {
110
+ let root_0ff113fe0a6246fbbfe92857b2a0303cg = template_0ff113fe0a6246fbbfe92857b2a0303ch(), element_0ff113fe0a6246fbbfe92857b2a0303ci = root_0ff113fe0a6246fbbfe92857b2a0303cg.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303cj = element_0ff113fe0a6246fbbfe92857b2a0303ci.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303ck = element_0ff113fe0a6246fbbfe92857b2a0303ci.firstElementChild, element_0ff113fe0a6246fbbfe92857b2a0303cl = element_0ff113fe0a6246fbbfe92857b2a0303ck.nextElementSibling.firstElementChild;
111
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303ci, 'class', () => state.active && '--active');
112
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303ci, omit(attributes, OMIT));
113
+ new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303cj, () => {
115
114
  let type = state.type;
116
115
  return (() => {
117
- let root_b7478c4a5ff041d4bc1434ee94c2db379 = template_b7478c4a5ff041d4bc1434ee94c2db37a(), element_b7478c4a5ff041d4bc1434ee94c2db37b = root_b7478c4a5ff041d4bc1434ee94c2db379.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db37c = element_b7478c4a5ff041d4bc1434ee94c2db37b.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db37d = { "class": " --flex-vertical", "style": " " };
118
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db37b, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_b7478c4a5ff041d4bc1434ee94c2db37d);
119
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db37c, icon({ class: '--size-500' }, type === 'error' ? e : check));
120
- return root_b7478c4a5ff041d4bc1434ee94c2db379;
116
+ let root_0ff113fe0a6246fbbfe92857b2a0303c7 = template_0ff113fe0a6246fbbfe92857b2a0303c8(), element_0ff113fe0a6246fbbfe92857b2a0303c9 = root_0ff113fe0a6246fbbfe92857b2a0303c7.firstChild;
117
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c9, 'style', `--color: var(--color-${modifiers[type]}-400);`);
118
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c9, icon({ class: '--size-500' }, type === 'error' ? e : check), 1);
119
+ return root_0ff113fe0a6246fbbfe92857b2a0303c7;
121
120
  })();
122
121
  });
123
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db37q, attributes['alert-messages'], attributes_b7478c4a5ff041d4bc1434ee94c2db37v);
124
- new template_b7478c4a5ff041d4bc1434ee94c2db371.EffectSlot(element_b7478c4a5ff041d4bc1434ee94c2db37r, () => {
122
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303ck, attributes['alert-messages']);
123
+ new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303ck, () => {
125
124
  let message = attributes['alert-message'];
126
125
  return state.rerender && [...state.messages].map((content) => {
127
126
  if (typeof content === 'string') {
128
127
  return (() => {
129
- let root_b7478c4a5ff041d4bc1434ee94c2db37e = template_b7478c4a5ff041d4bc1434ee94c2db37f(), element_b7478c4a5ff041d4bc1434ee94c2db37g = root_b7478c4a5ff041d4bc1434ee94c2db37e.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db37h = element_b7478c4a5ff041d4bc1434ee94c2db37g.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db37i = {};
130
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db37g, message, attributes_b7478c4a5ff041d4bc1434ee94c2db37i);
131
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db37h, content);
132
- return root_b7478c4a5ff041d4bc1434ee94c2db37e;
128
+ let root_0ff113fe0a6246fbbfe92857b2a0303ca = template_0ff113fe0a6246fbbfe92857b2a0303cb(), element_0ff113fe0a6246fbbfe92857b2a0303cc = root_0ff113fe0a6246fbbfe92857b2a0303ca.firstChild;
129
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303cc, message);
130
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303cc, content, 1);
131
+ return root_0ff113fe0a6246fbbfe92857b2a0303ca;
133
132
  })();
134
133
  }
135
134
  return (() => {
136
- let root_b7478c4a5ff041d4bc1434ee94c2db37j = template_b7478c4a5ff041d4bc1434ee94c2db37k(), element_b7478c4a5ff041d4bc1434ee94c2db37l = root_b7478c4a5ff041d4bc1434ee94c2db37j.firstChild.firstChild;
137
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db37l, content);
138
- return root_b7478c4a5ff041d4bc1434ee94c2db37j;
135
+ let root_0ff113fe0a6246fbbfe92857b2a0303cd = template_0ff113fe0a6246fbbfe92857b2a0303ce(), element_0ff113fe0a6246fbbfe92857b2a0303cf = root_0ff113fe0a6246fbbfe92857b2a0303cd.firstChild;
136
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303cf, content, 1);
137
+ return root_0ff113fe0a6246fbbfe92857b2a0303cd;
139
138
  })();
140
139
  });
141
- });
142
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db37s, 'click', () => deactivate(state));
143
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db37s, attributes['alert-close'], attributes_b7478c4a5ff041d4bc1434ee94c2db37w);
144
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db37t, svg.sprite(close));
145
- return root_b7478c4a5ff041d4bc1434ee94c2db37m;
140
+ }, 1);
141
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303cl, 'click', () => deactivate(state));
142
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303cl, attributes['alert-close']);
143
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303cl, icon({ style: '--size: 14px;' }, close), 1);
144
+ return root_0ff113fe0a6246fbbfe92857b2a0303cg;
146
145
  })(),
147
146
  deactivate: () => deactivate(state),
148
147
  error,
@@ -1,18 +1,18 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
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_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
8
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>(attributes: T): ReturnType<(this: {
7
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
8
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>(attributes: T): ReturnType<(this: {
9
9
  attributes?: Attributes;
10
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
11
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>(content: T): ReturnType<(this: {
10
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
11
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: Attributes;
13
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
14
- (attributes: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>): ReturnType<(this: {
13
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
14
+ (attributes: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>): ReturnType<(this: {
15
15
  attributes?: Attributes;
16
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
16
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
17
17
  };
18
18
  export default _default;
@@ -1,16 +1,16 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 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_b7478c4a5ff041d4bc1434ee94c2db37y = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
6
+ const template_0ff113fe0a6246fbbfe92857b2a0303cn = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<a class='back link --padding-0px --flex-vertical'><!--$-->`);
7
7
  export default template.factory(function (attributes, content) {
8
8
  return (() => {
9
- let root_b7478c4a5ff041d4bc1434ee94c2db37x = template_b7478c4a5ff041d4bc1434ee94c2db37y(), element_b7478c4a5ff041d4bc1434ee94c2db37z = root_b7478c4a5ff041d4bc1434ee94c2db37x.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db3710 = element_b7478c4a5ff041d4bc1434ee94c2db37z.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db3711 = element_b7478c4a5ff041d4bc1434ee94c2db3710.nextSibling, attributes_b7478c4a5ff041d4bc1434ee94c2db3712 = { "class": " back link --padding-0px --flex-vertical" };
10
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db37z, this.attributes, attributes_b7478c4a5ff041d4bc1434ee94c2db3712);
11
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db37z, attributes, attributes_b7478c4a5ff041d4bc1434ee94c2db3712);
12
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db3710, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db3711, content);
14
- return root_b7478c4a5ff041d4bc1434ee94c2db37x;
9
+ let root_0ff113fe0a6246fbbfe92857b2a0303cm = template_0ff113fe0a6246fbbfe92857b2a0303cn(), element_0ff113fe0a6246fbbfe92857b2a0303co = root_0ff113fe0a6246fbbfe92857b2a0303cm.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303cp = element_0ff113fe0a6246fbbfe92857b2a0303co.firstChild;
10
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303co, this.attributes);
11
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303co, attributes);
12
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303cp, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303co, content, 2);
14
+ return root_0ff113fe0a6246fbbfe92857b2a0303cm;
15
15
  })();
16
16
  });
@@ -1,24 +1,24 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
2
  import { Renderable } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  declare const hold: {
5
5
  (): ReturnType<(this: {
6
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
6
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
7
7
  content?: ((state: {
8
8
  holding: boolean;
9
9
  complete: boolean;
10
10
  }) => Renderable<any>) | undefined;
11
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
11
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: (state: {
12
12
  holding: boolean;
13
13
  complete: boolean;
14
14
  }) => Renderable<any>) => Renderable<any>>;
15
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>(attributes: T): ReturnType<(this: {
16
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
15
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>(attributes: T): ReturnType<(this: {
16
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
17
17
  content?: ((state: {
18
18
  holding: boolean;
19
19
  complete: boolean;
20
20
  }) => Renderable<any>) | undefined;
21
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
21
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.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_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
29
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
30
30
  content?: ((state: {
31
31
  holding: boolean;
32
32
  complete: boolean;
33
33
  }) => Renderable<any>) | undefined;
34
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
34
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: (state: {
35
35
  holding: boolean;
36
36
  complete: boolean;
37
37
  }) => Renderable<any>) => Renderable<any>>;
38
- (attributes: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes, content: (state: {
38
+ (attributes: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes, content: (state: {
39
39
  holding: boolean;
40
40
  complete: boolean;
41
41
  }) => Renderable<any>): ReturnType<(this: {
42
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
42
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
43
43
  content?: ((state: {
44
44
  holding: boolean;
45
45
  complete: boolean;
46
46
  }) => Renderable<any>) | undefined;
47
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
47
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.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_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
55
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
56
56
  content?: ((state: {
57
57
  holding: boolean;
58
58
  complete: boolean;
59
59
  }) => Renderable<any>) | undefined;
60
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
60
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: (state: {
61
61
  holding: boolean;
62
62
  complete: boolean;
63
63
  }) => Renderable<any>) => Renderable<any>>;
64
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>(attributes: T): ReturnType<(this: {
65
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
64
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>(attributes: T): ReturnType<(this: {
65
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
66
66
  content?: ((state: {
67
67
  holding: boolean;
68
68
  complete: boolean;
69
69
  }) => Renderable<any>) | undefined;
70
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
70
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.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_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
78
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
79
79
  content?: ((state: {
80
80
  holding: boolean;
81
81
  complete: boolean;
82
82
  }) => Renderable<any>) | undefined;
83
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
83
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: (state: {
84
84
  holding: boolean;
85
85
  complete: boolean;
86
86
  }) => Renderable<any>) => Renderable<any>>;
87
- (attributes: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes, content: (state: {
87
+ (attributes: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes, content: (state: {
88
88
  holding: boolean;
89
89
  complete: boolean;
90
90
  }) => Renderable<any>): ReturnType<(this: {
91
- attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
91
+ attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
92
92
  content?: ((state: {
93
93
  holding: boolean;
94
94
  complete: boolean;
95
95
  }) => Renderable<any>) | undefined;
96
- }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: (state: {
96
+ }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: (state: {
97
97
  holding: boolean;
98
98
  complete: boolean;
99
99
  }) => Renderable<any>) => Renderable<any>>;
@@ -1,25 +1,25 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
- import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
+ import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
3
3
  import template from '../template/index.js';
4
4
  import './scss/index.scss';
5
- const template_b7478c4a5ff041d4bc1434ee94c2db3715 = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='button '><!--$--></div>`);
6
- class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db3713 extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
7
- #complete = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](false);
8
- #holding = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](false);
5
+ const template_0ff113fe0a6246fbbfe92857b2a0303cs = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='button '>`);
6
+ class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303cq extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
7
+ #complete = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
8
+ #holding = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get complete() {
13
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#complete);
13
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#complete);
14
14
  }
15
15
  set complete(_v0) {
16
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#complete, _v0);
16
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#complete, _v0);
17
17
  }
18
18
  get holding() {
19
- return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#holding);
19
+ return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#holding);
20
20
  }
21
21
  set holding(_v1) {
22
- reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#holding, _v1);
22
+ reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#holding, _v1);
23
23
  }
24
24
  }
25
25
  const hold = template.factory(function (attributes, content) {
@@ -27,33 +27,33 @@ const hold = template.factory(function (attributes, content) {
27
27
  if (!state.complete) {
28
28
  state.holding = false;
29
29
  }
30
- }, state = new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db3713();
30
+ }, state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303cq();
31
31
  return (() => {
32
- let root_b7478c4a5ff041d4bc1434ee94c2db3714 = template_b7478c4a5ff041d4bc1434ee94c2db3715(), element_b7478c4a5ff041d4bc1434ee94c2db3716 = root_b7478c4a5ff041d4bc1434ee94c2db3714.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db3717 = element_b7478c4a5ff041d4bc1434ee94c2db3716.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db3718 = { "class": " button " };
33
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'class', () => state.holding && 'button--holding', attributes_b7478c4a5ff041d4bc1434ee94c2db3718);
34
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'mousedown', (e) => {
32
+ let root_0ff113fe0a6246fbbfe92857b2a0303cr = template_0ff113fe0a6246fbbfe92857b2a0303cs(), element_0ff113fe0a6246fbbfe92857b2a0303ct = root_0ff113fe0a6246fbbfe92857b2a0303cr.firstChild;
33
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'class', () => state.holding && 'button--holding');
34
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'mousedown', (e) => {
35
35
  e.preventDefault();
36
36
  state.holding = true;
37
37
  });
38
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db3716, attributes, attributes_b7478c4a5ff041d4bc1434ee94c2db3718);
39
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'animationend', (e) => {
38
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303ct, attributes);
39
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'animationend', (e) => {
40
40
  if (e.animationName === 'buttonHolding') {
41
41
  state.complete = true;
42
42
  }
43
43
  });
44
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'click', () => { });
45
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'mousedown', (e) => {
44
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'click', () => { });
45
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'mousedown', (e) => {
46
46
  e.preventDefault();
47
47
  state.holding = true;
48
48
  });
49
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'mouseup', end);
50
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'touchend', end);
51
- template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db3716, 'touchstart', (e) => {
49
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'mouseup', end);
50
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'touchend', end);
51
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303ct, 'touchstart', (e) => {
52
52
  e.preventDefault();
53
53
  state.holding = true;
54
54
  });
55
- new template_b7478c4a5ff041d4bc1434ee94c2db371.EffectSlot(element_b7478c4a5ff041d4bc1434ee94c2db3717, () => content(state));
56
- return root_b7478c4a5ff041d4bc1434ee94c2db3714;
55
+ new template_0ff113fe0a6246fbbfe92857b2a0303c1.EffectSlot(element_0ff113fe0a6246fbbfe92857b2a0303ct, () => content(state), 1);
56
+ return root_0ff113fe0a6246fbbfe92857b2a0303cr;
57
57
  })();
58
58
  });
59
59
  export default { hold };
@@ -7,7 +7,7 @@ declare const factory: (type: string) => (this: {
7
7
  active: boolean;
8
8
  error: string;
9
9
  };
10
- }) => DocumentFragment;
10
+ }) => DocumentFragment | Text;
11
11
  declare const _default: (this: {
12
12
  attributes?: Attributes;
13
13
  } | any, attributes?: Attributes & {
@@ -15,6 +15,6 @@ declare const _default: (this: {
15
15
  active: boolean;
16
16
  error: string;
17
17
  };
18
- }) => DocumentFragment;
18
+ }) => DocumentFragment | Text;
19
19
  export default _default;
20
20
  export { factory };