@esportsplus/ui 0.48.7 → 0.49.1

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 (87) hide show
  1. package/README.md +4 -4
  2. package/build/components/accordion/index.d.ts +16 -16
  3. package/build/components/accordion/index.js +12 -12
  4. package/build/components/alert/index.d.ts +1 -1
  5. package/build/components/alert/index.js +27 -27
  6. package/build/components/back/index.d.ts +9 -9
  7. package/build/components/back/index.js +8 -8
  8. package/build/components/button/index.d.ts +22 -22
  9. package/build/components/button/index.js +16 -16
  10. package/build/components/checkbox/index.d.ts +1 -1
  11. package/build/components/checkbox/index.js +15 -15
  12. package/build/components/clipboard/index.d.ts +1120 -1120
  13. package/build/components/clipboard/onclick.d.ts +1 -1
  14. package/build/components/clipboard/onclick.js +8 -8
  15. package/build/components/counter/index.d.ts +1 -1
  16. package/build/components/counter/index.js +21 -21
  17. package/build/components/ellipsis/index.d.ts +1 -1
  18. package/build/components/ellipsis/index.js +5 -5
  19. package/build/components/form/action.d.ts +1 -1
  20. package/build/components/form/action.js +8 -8
  21. package/build/components/form/index.d.ts +3 -3
  22. package/build/components/form/input.d.ts +1 -1
  23. package/build/components/frame/index.d.ts +10 -10
  24. package/build/components/highlight/index.d.ts +16 -16
  25. package/build/components/highlight/index.js +10 -10
  26. package/build/components/icon/index.d.ts +11 -11
  27. package/build/components/icon/index.js +7 -7
  28. package/build/components/input/index.d.ts +1 -1
  29. package/build/components/input/index.js +12 -12
  30. package/build/components/loader/index.d.ts +16 -16
  31. package/build/components/loader/index.js +22 -22
  32. package/build/components/loading/index.d.ts +1 -1
  33. package/build/components/loading/index.js +5 -5
  34. package/build/components/overlay/index.d.ts +10 -10
  35. package/build/components/radio/index.d.ts +2 -2
  36. package/build/components/range/index.d.ts +1 -1
  37. package/build/components/range/index.js +14 -14
  38. package/build/components/scrollbar/index.d.ts +12 -12
  39. package/build/components/scrollbar/index.js +16 -16
  40. package/build/components/select/index.d.ts +1 -1
  41. package/build/components/select/index.js +25 -25
  42. package/build/components/sidebar/index.d.ts +10 -10
  43. package/build/components/site/index.d.ts +10 -10
  44. package/build/components/switch/index.d.ts +2 -2
  45. package/build/components/template/index.d.ts +1 -1
  46. package/build/components/textarea/index.d.ts +1 -1
  47. package/build/components/textarea/index.js +12 -12
  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 +9 -9
  53. package/build/components/tooltip/onhover.d.ts +16 -16
  54. package/build/components/tooltip/onhover.js +10 -10
  55. package/build/components/typewriter/index.d.ts +11 -11
  56. package/build/components/typewriter/index.js +9 -9
  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 +3 -3
  63. package/src/components/accordion/index.ts +1 -1
  64. package/src/components/alert/index.ts +1 -1
  65. package/src/components/back/index.ts +1 -1
  66. package/src/components/button/index.ts +1 -1
  67. package/src/components/checkbox/index.ts +1 -1
  68. package/src/components/clipboard/onclick.ts +1 -1
  69. package/src/components/counter/index.ts +1 -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 +1 -1
  74. package/src/components/icon/index.ts +1 -1
  75. package/src/components/input/index.ts +1 -1
  76. package/src/components/loader/index.ts +1 -1
  77. package/src/components/loading/index.ts +1 -1
  78. package/src/components/range/index.ts +1 -1
  79. package/src/components/scrollbar/index.ts +1 -1
  80. package/src/components/select/index.ts +1 -1
  81. package/src/components/template/index.ts +1 -1
  82. package/src/components/textarea/index.ts +1 -1
  83. package/src/components/tooltip/menu.ts +1 -1
  84. package/src/components/tooltip/onclick.ts +1 -1
  85. package/src/components/tooltip/onhover.ts +1 -1
  86. package/src/components/typewriter/index.ts +1 -1
  87. package/tsconfig.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@ pnpm add @esportsplus/ui
10
10
 
11
11
  ## Dependencies
12
12
 
13
- - `@esportsplus/template` - Tagged template literals with compile-time transforms and reactive state management
13
+ - `@esportsplus/frontend` - Tagged template literals with compile-time transforms and reactive state management
14
14
  - `@esportsplus/action` - Response/error handling
15
15
  - `@esportsplus/utilities` - Core utilities
16
16
 
@@ -18,7 +18,7 @@ pnpm add @esportsplus/ui
18
18
 
19
19
  ```typescript
20
20
  import { button, form, input, select } from '@esportsplus/ui';
21
- import { html } from '@esportsplus/template';
21
+ import { html } from '@esportsplus/frontend';
22
22
 
23
23
  // Simple component
24
24
  html`${button({}, 'Click Me')}`;
@@ -123,7 +123,7 @@ component({ class: 'custom' }, html`<span>Content</span>`)
123
123
  Components can accept and return reactive state:
124
124
 
125
125
  ```typescript
126
- import { reactive } from '@esportsplus/template';
126
+ import { reactive } from '@esportsplus/frontend';
127
127
 
128
128
  let state = reactive({ active: false });
129
129
 
@@ -261,7 +261,7 @@ build/
261
261
  Full type safety with zero `any` types:
262
262
 
263
263
  ```typescript
264
- import type { Attributes } from '@esportsplus/template';
264
+ import type { Attributes } from '@esportsplus/frontend';
265
265
 
266
266
  // Components are generic
267
267
  template.factory<A extends Attributes, C>(fn);
@@ -1,21 +1,21 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
6
- content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
7
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
8
- <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
10
- content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
11
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
12
- <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
14
- content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
15
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
16
- (attributes: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
18
- content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
19
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
5
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
6
+ content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
7
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
8
+ <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
10
+ content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
11
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
12
+ <T extends template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
14
+ content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
15
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
16
+ (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
18
+ content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
19
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,9 +1,9 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
- import { reactive } from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
+ import { reactive } from '@esportsplus/frontend';
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_69d8ea42df6d40bfb4950d47c33fd3633 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div><!--$--></div>`);
6
+ const template_88a2fd04bc87484a954d07fc771290fa2 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div><!--$--></div>`);
7
7
  const OMIT = ['state'];
8
8
  let key = Symbol();
9
9
  export default template.factory(function (attributes, content) {
@@ -11,22 +11,22 @@ export default template.factory(function (attributes, content) {
11
11
  active: 0
12
12
  });
13
13
  return (() => {
14
- let root_69d8ea42df6d40bfb4950d47c33fd3632 = template_69d8ea42df6d40bfb4950d47c33fd3633(), element_69d8ea42df6d40bfb4950d47c33fd3634 = root_69d8ea42df6d40bfb4950d47c33fd3632.firstChild, element_69d8ea42df6d40bfb4950d47c33fd3635 = element_69d8ea42df6d40bfb4950d47c33fd3634.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3636 = {};
15
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3634, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3636);
16
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3634, 'class', () => {
14
+ let root_88a2fd04bc87484a954d07fc771290fa1 = template_88a2fd04bc87484a954d07fc771290fa2(), element_88a2fd04bc87484a954d07fc771290fa3 = root_88a2fd04bc87484a954d07fc771290fa1.firstChild, element_88a2fd04bc87484a954d07fc771290fa4 = element_88a2fd04bc87484a954d07fc771290fa3.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa5 = {};
15
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa3, omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa5);
16
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa3, 'class', () => {
17
17
  return state.active && '--active';
18
- }, attributes_69d8ea42df6d40bfb4950d47c33fd3636);
19
- template_69d8ea42df6d40bfb4950d47c33fd3631.onrender(element_69d8ea42df6d40bfb4950d47c33fd3634, (element) => {
18
+ }, attributes_88a2fd04bc87484a954d07fc771290fa5);
19
+ template_88a2fd04bc87484a954d07fc771290fa0.onrender(element_88a2fd04bc87484a954d07fc771290fa3, (element) => {
20
20
  (ref = element)[key] = state;
21
21
  });
22
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3634, 'style', () => {
22
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa3, 'style', () => {
23
23
  let parent = ref.closest('accordion');
24
24
  if (parent && key in parent) {
25
25
  parent[key].active = (+parent[key].active) + 1;
26
26
  }
27
27
  return state.active && `--max-height: ${ref.scrollHeight}`;
28
- }, attributes_69d8ea42df6d40bfb4950d47c33fd3636);
29
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd3635, content);
30
- return root_69d8ea42df6d40bfb4950d47c33fd3632;
28
+ }, attributes_88a2fd04bc87484a954d07fc771290fa5);
29
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa4, content);
30
+ return root_88a2fd04bc87484a954d07fc771290fa1;
31
31
  })();
32
32
  });
@@ -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/template';
3
+ import { Attributes, Renderable } from '@esportsplus/frontend';
4
4
  import './scss/index.scss';
5
5
  declare const _default: (attributes: Attributes & {
6
6
  "alert-close"?: Attributes;
@@ -1,16 +1,16 @@
1
1
  import '@esportsplus/vite/global.d.ts';
2
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
3
- import { reactive, svg } from '@esportsplus/template';
2
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
3
+ import { reactive, svg } from '@esportsplus/frontend';
4
4
  import { omit } from '@esportsplus/utilities';
5
5
  import { icon } from '@esportsplus/ui';
6
6
  import check from './svg/check.svg';
7
7
  import close from './svg/close.svg';
8
8
  import e from './svg/error.svg';
9
9
  import './scss/index.scss';
10
- const template_69d8ea42df6d40bfb4950d47c33fd3638 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='--flex-vertical'><!--$--></div>`);
11
- const template_69d8ea42df6d40bfb4950d47c33fd363d = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<p><!--$--></p>`);
12
- const template_69d8ea42df6d40bfb4950d47c33fd363i = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='--flex-start'><!--$--></div>`);
13
- const template_69d8ea42df6d40bfb4950d47c33fd363l = template_69d8ea42df6d40bfb4950d47c33fd3631.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>`);
10
+ const template_88a2fd04bc87484a954d07fc771290fa7 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='--flex-vertical'><!--$--></div>`);
11
+ const template_88a2fd04bc87484a954d07fc771290fac = template_88a2fd04bc87484a954d07fc771290fa0.template(`<p><!--$--></p>`);
12
+ const template_88a2fd04bc87484a954d07fc771290fah = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='--flex-start'><!--$--></div>`);
13
+ const template_88a2fd04bc87484a954d07fc771290fak = template_88a2fd04bc87484a954d07fc771290fa0.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>`);
14
14
  const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
15
15
  let modifiers = {
16
16
  error: 'red',
@@ -77,41 +77,41 @@ export default (attributes) => {
77
77
  };
78
78
  return {
79
79
  content: (() => {
80
- let root_69d8ea42df6d40bfb4950d47c33fd363k = template_69d8ea42df6d40bfb4950d47c33fd363l(), element_69d8ea42df6d40bfb4950d47c33fd363m = root_69d8ea42df6d40bfb4950d47c33fd363k.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363n = element_69d8ea42df6d40bfb4950d47c33fd363m.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363o = element_69d8ea42df6d40bfb4950d47c33fd363m.firstElementChild, element_69d8ea42df6d40bfb4950d47c33fd363p = element_69d8ea42df6d40bfb4950d47c33fd363o.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363q = element_69d8ea42df6d40bfb4950d47c33fd363o.nextElementSibling.firstElementChild, element_69d8ea42df6d40bfb4950d47c33fd363r = element_69d8ea42df6d40bfb4950d47c33fd363q.firstElementChild.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd363s = { "class": "alert anchor anchor--n --flex-row" }, attributes_69d8ea42df6d40bfb4950d47c33fd363t = { "class": "alert-messages --flex-column --flex-fill" }, attributes_69d8ea42df6d40bfb4950d47c33fd363u = { "class": "alert-close button --padding-300" };
81
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd363m, 'class', () => state.active && '--active', attributes_69d8ea42df6d40bfb4950d47c33fd363s);
82
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd363m, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd363s);
83
- new template_69d8ea42df6d40bfb4950d47c33fd3631.EffectSlot(element_69d8ea42df6d40bfb4950d47c33fd363n, () => {
80
+ let root_88a2fd04bc87484a954d07fc771290faj = template_88a2fd04bc87484a954d07fc771290fak(), element_88a2fd04bc87484a954d07fc771290fal = root_88a2fd04bc87484a954d07fc771290faj.firstChild, element_88a2fd04bc87484a954d07fc771290fam = element_88a2fd04bc87484a954d07fc771290fal.firstChild, element_88a2fd04bc87484a954d07fc771290fan = element_88a2fd04bc87484a954d07fc771290fal.firstElementChild, element_88a2fd04bc87484a954d07fc771290fao = element_88a2fd04bc87484a954d07fc771290fan.firstChild, element_88a2fd04bc87484a954d07fc771290fap = element_88a2fd04bc87484a954d07fc771290fan.nextElementSibling.firstElementChild, element_88a2fd04bc87484a954d07fc771290faq = element_88a2fd04bc87484a954d07fc771290fap.firstElementChild.firstChild, attributes_88a2fd04bc87484a954d07fc771290far = { "class": "alert anchor anchor--n --flex-row" }, attributes_88a2fd04bc87484a954d07fc771290fas = { "class": "alert-messages --flex-column --flex-fill" }, attributes_88a2fd04bc87484a954d07fc771290fat = { "class": "alert-close button --padding-300" };
81
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fal, 'class', () => state.active && '--active', attributes_88a2fd04bc87484a954d07fc771290far);
82
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fal, omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290far);
83
+ new template_88a2fd04bc87484a954d07fc771290fa0.EffectSlot(element_88a2fd04bc87484a954d07fc771290fam, () => {
84
84
  let type = state.type;
85
85
  return (() => {
86
- let root_69d8ea42df6d40bfb4950d47c33fd3637 = template_69d8ea42df6d40bfb4950d47c33fd3638(), element_69d8ea42df6d40bfb4950d47c33fd3639 = root_69d8ea42df6d40bfb4950d47c33fd3637.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363a = element_69d8ea42df6d40bfb4950d47c33fd3639.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd363b = { "class": "--flex-vertical", "style": "" };
87
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3639, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_69d8ea42df6d40bfb4950d47c33fd363b);
88
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd363a, icon({ class: '--size-500' }, type === 'error' ? e : check));
89
- return root_69d8ea42df6d40bfb4950d47c33fd3637;
86
+ let root_88a2fd04bc87484a954d07fc771290fa6 = template_88a2fd04bc87484a954d07fc771290fa7(), element_88a2fd04bc87484a954d07fc771290fa8 = root_88a2fd04bc87484a954d07fc771290fa6.firstChild, element_88a2fd04bc87484a954d07fc771290fa9 = element_88a2fd04bc87484a954d07fc771290fa8.firstChild, attributes_88a2fd04bc87484a954d07fc771290faa = { "class": "--flex-vertical", "style": "" };
87
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa8, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_88a2fd04bc87484a954d07fc771290faa);
88
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa9, icon({ class: '--size-500' }, type === 'error' ? e : check));
89
+ return root_88a2fd04bc87484a954d07fc771290fa6;
90
90
  })();
91
91
  });
92
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd363o, attributes['alert-messages'], attributes_69d8ea42df6d40bfb4950d47c33fd363t);
93
- new template_69d8ea42df6d40bfb4950d47c33fd3631.EffectSlot(element_69d8ea42df6d40bfb4950d47c33fd363p, () => {
92
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fan, attributes['alert-messages'], attributes_88a2fd04bc87484a954d07fc771290fas);
93
+ new template_88a2fd04bc87484a954d07fc771290fa0.EffectSlot(element_88a2fd04bc87484a954d07fc771290fao, () => {
94
94
  let message = attributes['alert-message'];
95
95
  return state.rerender && [...state.messages].map((content) => {
96
96
  if (typeof content === 'string') {
97
97
  return (() => {
98
- let root_69d8ea42df6d40bfb4950d47c33fd363c = template_69d8ea42df6d40bfb4950d47c33fd363d(), element_69d8ea42df6d40bfb4950d47c33fd363e = root_69d8ea42df6d40bfb4950d47c33fd363c.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363f = element_69d8ea42df6d40bfb4950d47c33fd363e.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd363g = {};
99
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd363e, message, attributes_69d8ea42df6d40bfb4950d47c33fd363g);
100
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd363f, content);
101
- return root_69d8ea42df6d40bfb4950d47c33fd363c;
98
+ let root_88a2fd04bc87484a954d07fc771290fab = template_88a2fd04bc87484a954d07fc771290fac(), element_88a2fd04bc87484a954d07fc771290fad = root_88a2fd04bc87484a954d07fc771290fab.firstChild, element_88a2fd04bc87484a954d07fc771290fae = element_88a2fd04bc87484a954d07fc771290fad.firstChild, attributes_88a2fd04bc87484a954d07fc771290faf = {};
99
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fad, message, attributes_88a2fd04bc87484a954d07fc771290faf);
100
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fae, content);
101
+ return root_88a2fd04bc87484a954d07fc771290fab;
102
102
  })();
103
103
  }
104
104
  return (() => {
105
- let root_69d8ea42df6d40bfb4950d47c33fd363h = template_69d8ea42df6d40bfb4950d47c33fd363i(), element_69d8ea42df6d40bfb4950d47c33fd363j = root_69d8ea42df6d40bfb4950d47c33fd363h.firstChild.firstChild;
106
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd363j, content);
107
- return root_69d8ea42df6d40bfb4950d47c33fd363h;
105
+ let root_88a2fd04bc87484a954d07fc771290fag = template_88a2fd04bc87484a954d07fc771290fah(), element_88a2fd04bc87484a954d07fc771290fai = root_88a2fd04bc87484a954d07fc771290fag.firstChild.firstChild;
106
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fai, content);
107
+ return root_88a2fd04bc87484a954d07fc771290fag;
108
108
  })();
109
109
  });
110
110
  });
111
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd363q, 'click', () => deactivate(state));
112
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd363q, attributes['alert-close'], attributes_69d8ea42df6d40bfb4950d47c33fd363u);
113
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd363r, svg.sprite(close));
114
- return root_69d8ea42df6d40bfb4950d47c33fd363k;
111
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fap, 'click', () => deactivate(state));
112
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fap, attributes['alert-close'], attributes_88a2fd04bc87484a954d07fc771290fat);
113
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290faq, svg.sprite(close));
114
+ return root_88a2fd04bc87484a954d07fc771290faj;
115
115
  })(),
116
116
  deactivate: () => deactivate(state),
117
117
  error,
@@ -1,18 +1,18 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
- import { Attributes } from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
+ import { Attributes } from '@esportsplus/frontend';
3
3
  import './scss/index.scss';
4
4
  declare const _default: {
5
5
  (): ReturnType<(this: {
6
6
  attributes?: Attributes;
7
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
8
- <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>(attributes: T): ReturnType<(this: {
7
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
8
+ <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
9
9
  attributes?: Attributes;
10
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
11
- <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>(content: T): ReturnType<(this: {
10
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
11
+ <T extends template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: Attributes;
13
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
14
- (attributes: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>): ReturnType<(this: {
13
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
14
+ (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>): ReturnType<(this: {
15
15
  attributes?: Attributes;
16
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
16
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
17
17
  };
18
18
  export default _default;
@@ -1,16 +1,16 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
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_69d8ea42df6d40bfb4950d47c33fd363w = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
6
+ const template_88a2fd04bc87484a954d07fc771290fav = template_88a2fd04bc87484a954d07fc771290fa0.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_69d8ea42df6d40bfb4950d47c33fd363v = template_69d8ea42df6d40bfb4950d47c33fd363w(), element_69d8ea42df6d40bfb4950d47c33fd363x = root_69d8ea42df6d40bfb4950d47c33fd363v.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363y = element_69d8ea42df6d40bfb4950d47c33fd363x.firstChild, element_69d8ea42df6d40bfb4950d47c33fd363z = element_69d8ea42df6d40bfb4950d47c33fd363y.nextSibling, attributes_69d8ea42df6d40bfb4950d47c33fd36310 = { "class": "back link --padding-0px --flex-vertical" };
10
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd363x, this.attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36310);
11
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd363x, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36310);
12
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd363y, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
- template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd363z, content);
14
- return root_69d8ea42df6d40bfb4950d47c33fd363v;
9
+ let root_88a2fd04bc87484a954d07fc771290fau = template_88a2fd04bc87484a954d07fc771290fav(), element_88a2fd04bc87484a954d07fc771290faw = root_88a2fd04bc87484a954d07fc771290fau.firstChild, element_88a2fd04bc87484a954d07fc771290fax = element_88a2fd04bc87484a954d07fc771290faw.firstChild, element_88a2fd04bc87484a954d07fc771290fay = element_88a2fd04bc87484a954d07fc771290fax.nextSibling, attributes_88a2fd04bc87484a954d07fc771290faz = { "class": "back link --padding-0px --flex-vertical" };
10
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290faw, this.attributes, attributes_88a2fd04bc87484a954d07fc771290faz);
11
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290faw, attributes, attributes_88a2fd04bc87484a954d07fc771290faz);
12
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fax, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
+ template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fay, content);
14
+ return root_88a2fd04bc87484a954d07fc771290fau;
15
15
  })();
16
16
  });
@@ -1,24 +1,24 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
- import { Renderable } from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
+ import { Renderable } from '@esportsplus/frontend';
3
3
  import './scss/index.scss';
4
4
  declare const hold: {
5
5
  (): ReturnType<(this: {
6
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
6
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
7
7
  content?: ((state: {
8
8
  holding: boolean;
9
9
  complete: boolean;
10
10
  }) => Renderable<any>) | undefined;
11
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
11
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: (state: {
12
12
  holding: boolean;
13
13
  complete: boolean;
14
14
  }) => Renderable<any>) => Renderable<any>>;
15
- <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>(attributes: T): ReturnType<(this: {
16
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
15
+ <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
16
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
17
17
  content?: ((state: {
18
18
  holding: boolean;
19
19
  complete: boolean;
20
20
  }) => Renderable<any>) | undefined;
21
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
21
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.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_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
29
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
30
30
  content?: ((state: {
31
31
  holding: boolean;
32
32
  complete: boolean;
33
33
  }) => Renderable<any>) | undefined;
34
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
34
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: (state: {
35
35
  holding: boolean;
36
36
  complete: boolean;
37
37
  }) => Renderable<any>) => Renderable<any>>;
38
- (attributes: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes, content: (state: {
38
+ (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: (state: {
39
39
  holding: boolean;
40
40
  complete: boolean;
41
41
  }) => Renderable<any>): ReturnType<(this: {
42
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
42
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
43
43
  content?: ((state: {
44
44
  holding: boolean;
45
45
  complete: boolean;
46
46
  }) => Renderable<any>) | undefined;
47
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
47
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.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_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
55
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
56
56
  content?: ((state: {
57
57
  holding: boolean;
58
58
  complete: boolean;
59
59
  }) => Renderable<any>) | undefined;
60
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
60
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: (state: {
61
61
  holding: boolean;
62
62
  complete: boolean;
63
63
  }) => Renderable<any>) => Renderable<any>>;
64
- <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>(attributes: T): ReturnType<(this: {
65
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
64
+ <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
65
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
66
66
  content?: ((state: {
67
67
  holding: boolean;
68
68
  complete: boolean;
69
69
  }) => Renderable<any>) | undefined;
70
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
70
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.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_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
78
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
79
79
  content?: ((state: {
80
80
  holding: boolean;
81
81
  complete: boolean;
82
82
  }) => Renderable<any>) | undefined;
83
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
83
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: (state: {
84
84
  holding: boolean;
85
85
  complete: boolean;
86
86
  }) => Renderable<any>) => Renderable<any>>;
87
- (attributes: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes, content: (state: {
87
+ (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: (state: {
88
88
  holding: boolean;
89
89
  complete: boolean;
90
90
  }) => Renderable<any>): ReturnType<(this: {
91
- attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
91
+ attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
92
92
  content?: ((state: {
93
93
  holding: boolean;
94
94
  complete: boolean;
95
95
  }) => Renderable<any>) | undefined;
96
- }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: (state: {
96
+ }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: (state: {
97
97
  holding: boolean;
98
98
  complete: boolean;
99
99
  }) => Renderable<any>) => Renderable<any>>;
@@ -1,8 +1,8 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
- import { reactive } from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
+ import { reactive } from '@esportsplus/frontend';
3
3
  import template from '../template/index.js';
4
4
  import './scss/index.scss';
5
- const template_69d8ea42df6d40bfb4950d47c33fd36312 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='button '><!--$--></div>`);
5
+ const template_88a2fd04bc87484a954d07fc771290fa11 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='button '><!--$--></div>`);
6
6
  const hold = template.factory(function (attributes, content) {
7
7
  let end = () => {
8
8
  if (!state.complete) {
@@ -13,32 +13,32 @@ const hold = template.factory(function (attributes, content) {
13
13
  holding: false
14
14
  });
15
15
  return (() => {
16
- let root_69d8ea42df6d40bfb4950d47c33fd36311 = template_69d8ea42df6d40bfb4950d47c33fd36312(), element_69d8ea42df6d40bfb4950d47c33fd36313 = root_69d8ea42df6d40bfb4950d47c33fd36311.firstChild, element_69d8ea42df6d40bfb4950d47c33fd36314 = element_69d8ea42df6d40bfb4950d47c33fd36313.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd36315 = { "class": "button" };
17
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36313, 'class', () => state.holding && 'button--holding', attributes_69d8ea42df6d40bfb4950d47c33fd36315);
18
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36313, 'class', () => state.complete && '--active', attributes_69d8ea42df6d40bfb4950d47c33fd36315);
19
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'mousedown', (e) => {
16
+ let root_88a2fd04bc87484a954d07fc771290fa10 = template_88a2fd04bc87484a954d07fc771290fa11(), element_88a2fd04bc87484a954d07fc771290fa12 = root_88a2fd04bc87484a954d07fc771290fa10.firstChild, element_88a2fd04bc87484a954d07fc771290fa13 = element_88a2fd04bc87484a954d07fc771290fa12.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa14 = { "class": "button" };
17
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa12, 'class', () => state.holding && 'button--holding', attributes_88a2fd04bc87484a954d07fc771290fa14);
18
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa12, 'class', () => state.complete && '--active', attributes_88a2fd04bc87484a954d07fc771290fa14);
19
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'mousedown', (e) => {
20
20
  e.preventDefault();
21
21
  state.holding = true;
22
22
  });
23
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36313, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36315);
24
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'animationend', (e) => {
23
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa12, attributes, attributes_88a2fd04bc87484a954d07fc771290fa14);
24
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'animationend', (e) => {
25
25
  if (e.animationName === 'buttonHolding') {
26
26
  state.complete = true;
27
27
  }
28
28
  });
29
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'click', () => { });
30
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'mousedown', (e) => {
29
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'click', () => { });
30
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'mousedown', (e) => {
31
31
  e.preventDefault();
32
32
  state.holding = true;
33
33
  });
34
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'mouseup', end);
35
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'touchend', end);
36
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36313, 'touchstart', (e) => {
34
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'mouseup', end);
35
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'touchend', end);
36
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa12, 'touchstart', (e) => {
37
37
  e.preventDefault();
38
38
  state.holding = true;
39
39
  });
40
- new template_69d8ea42df6d40bfb4950d47c33fd3631.EffectSlot(element_69d8ea42df6d40bfb4950d47c33fd36314, () => content(state));
41
- return root_69d8ea42df6d40bfb4950d47c33fd36311;
40
+ new template_88a2fd04bc87484a954d07fc771290fa0.EffectSlot(element_88a2fd04bc87484a954d07fc771290fa13, () => content(state));
41
+ return root_88a2fd04bc87484a954d07fc771290fa10;
42
42
  })();
43
43
  });
44
44
  export default { hold };
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/template';
1
+ import { Attributes } from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
3
  declare const factory: (type: string) => (this: {
4
4
  attributes?: Attributes;
@@ -1,9 +1,9 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
- import { reactive, root } from '@esportsplus/template';
1
+ import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
+ import { reactive, root } from '@esportsplus/frontend';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import form from '../../components/form/index.js';
5
5
  import './scss/index.scss';
6
- const template_69d8ea42df6d40bfb4950d47c33fd36317 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div><input></div>`);
6
+ const template_88a2fd04bc87484a954d07fc771290fa16 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div><input></div>`);
7
7
  const OMIT = ['checked', 'value'];
8
8
  const factory = (type) => {
9
9
  function template(attributes) {
@@ -15,20 +15,20 @@ const factory = (type) => {
15
15
  state.active = true;
16
16
  }
17
17
  return (() => {
18
- let root_69d8ea42df6d40bfb4950d47c33fd36316 = template_69d8ea42df6d40bfb4950d47c33fd36317(), element_69d8ea42df6d40bfb4950d47c33fd36318 = root_69d8ea42df6d40bfb4950d47c33fd36316.firstChild, element_69d8ea42df6d40bfb4950d47c33fd36319 = element_69d8ea42df6d40bfb4950d47c33fd36318.firstElementChild, attributes_69d8ea42df6d40bfb4950d47c33fd3631a = { "class": "" }, attributes_69d8ea42df6d40bfb4950d47c33fd3631b = {};
19
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36318, 'class', type, attributes_69d8ea42df6d40bfb4950d47c33fd3631a);
20
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36318, 'class', () => state.active && '--active', attributes_69d8ea42df6d40bfb4950d47c33fd3631a);
21
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36318, this?.attributes && omit(this.attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3631a);
22
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36318, attributes && omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3631a);
23
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperty(element_69d8ea42df6d40bfb4950d47c33fd36319, 'checked', attributes?.checked || root(() => state.active));
24
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36319, 'class', `${type}-tag`, attributes_69d8ea42df6d40bfb4950d47c33fd3631b);
25
- template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36319, 'change', (e) => {
18
+ let root_88a2fd04bc87484a954d07fc771290fa15 = template_88a2fd04bc87484a954d07fc771290fa16(), element_88a2fd04bc87484a954d07fc771290fa17 = root_88a2fd04bc87484a954d07fc771290fa15.firstChild, element_88a2fd04bc87484a954d07fc771290fa18 = element_88a2fd04bc87484a954d07fc771290fa17.firstElementChild, attributes_88a2fd04bc87484a954d07fc771290fa19 = { "class": "" }, attributes_88a2fd04bc87484a954d07fc771290fa1a = {};
19
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa17, 'class', type, attributes_88a2fd04bc87484a954d07fc771290fa19);
20
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa17, 'class', () => state.active && '--active', attributes_88a2fd04bc87484a954d07fc771290fa19);
21
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa17, this?.attributes && omit(this.attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa19);
22
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa17, attributes && omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa19);
23
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperty(element_88a2fd04bc87484a954d07fc771290fa18, 'checked', attributes?.checked || root(() => state.active));
24
+ template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa18, 'class', `${type}-tag`, attributes_88a2fd04bc87484a954d07fc771290fa1a);
25
+ template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa18, 'change', (e) => {
26
26
  state.active = e.target.checked;
27
27
  });
28
- template_69d8ea42df6d40bfb4950d47c33fd3631.onrender(element_69d8ea42df6d40bfb4950d47c33fd36319, form.input.onrender(state));
29
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperty(element_69d8ea42df6d40bfb4950d47c33fd36319, 'type', type === 'radio' ? 'radio' : 'checkbox');
30
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperty(element_69d8ea42df6d40bfb4950d47c33fd36319, 'value', attributes?.value || 1);
31
- return root_69d8ea42df6d40bfb4950d47c33fd36316;
28
+ template_88a2fd04bc87484a954d07fc771290fa0.onrender(element_88a2fd04bc87484a954d07fc771290fa18, form.input.onrender(state));
29
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperty(element_88a2fd04bc87484a954d07fc771290fa18, 'type', type === 'radio' ? 'radio' : 'checkbox');
30
+ template_88a2fd04bc87484a954d07fc771290fa0.setProperty(element_88a2fd04bc87484a954d07fc771290fa18, 'value', attributes?.value || 1);
31
+ return root_88a2fd04bc87484a954d07fc771290fa15;
32
32
  })();
33
33
  }
34
34
  return template;