@esportsplus/ui 0.48.1 → 0.48.2

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 (34) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +9 -9
  3. package/build/components/alert/index.js +26 -26
  4. package/build/components/back/index.d.ts +8 -8
  5. package/build/components/back/index.js +8 -8
  6. package/build/components/button/index.d.ts +21 -21
  7. package/build/components/button/index.js +15 -15
  8. package/build/components/checkbox/index.js +14 -14
  9. package/build/components/clipboard/onclick.js +7 -7
  10. package/build/components/counter/index.js +20 -20
  11. package/build/components/ellipsis/index.js +5 -5
  12. package/build/components/form/action.js +8 -8
  13. package/build/components/highlight/index.d.ts +16 -16
  14. package/build/components/highlight/index.js +8 -8
  15. package/build/components/icon/index.d.ts +11 -11
  16. package/build/components/icon/index.js +6 -6
  17. package/build/components/input/index.js +11 -11
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +20 -20
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +13 -13
  22. package/build/components/scrollbar/index.d.ts +11 -11
  23. package/build/components/scrollbar/index.js +14 -14
  24. package/build/components/select/index.js +24 -24
  25. package/build/components/textarea/index.js +11 -11
  26. package/build/components/tooltip/menu.d.ts +11 -11
  27. package/build/components/tooltip/menu.js +20 -20
  28. package/build/components/tooltip/onclick.d.ts +1101 -1101
  29. package/build/components/tooltip/onclick.js +8 -8
  30. package/build/components/tooltip/onhover.d.ts +16 -16
  31. package/build/components/tooltip/onhover.js +9 -9
  32. package/build/components/typewriter/index.d.ts +11 -11
  33. package/build/components/typewriter/index.js +8 -8
  34. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
2
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_23a4f055a2904f1fa5d72b30cc2abc501o = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<form
5
+ const template_e90343e05b274f9c8b2074a07cff2a541o = template_e90343e05b274f9c8b2074a07cff2a541.template(`<form
6
6
  class='form'><!--$--></form>`);
7
7
  const OMIT = ['action', 'state'];
8
8
  function parse(input) {
@@ -30,9 +30,9 @@ function parse(input) {
30
30
  export default (attributes, content) => {
31
31
  let { action, state } = attributes;
32
32
  return (() => {
33
- let root_23a4f055a2904f1fa5d72b30cc2abc501n = template_23a4f055a2904f1fa5d72b30cc2abc501o(), element_23a4f055a2904f1fa5d72b30cc2abc501p = root_23a4f055a2904f1fa5d72b30cc2abc501n.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc501q = element_23a4f055a2904f1fa5d72b30cc2abc501p.firstChild;
34
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc501p, omit(attributes, OMIT));
35
- template_23a4f055a2904f1fa5d72b30cc2abc501.delegate(element_23a4f055a2904f1fa5d72b30cc2abc501p, 'click', function (event) {
33
+ let root_e90343e05b274f9c8b2074a07cff2a541n = template_e90343e05b274f9c8b2074a07cff2a541o(), element_e90343e05b274f9c8b2074a07cff2a541p = root_e90343e05b274f9c8b2074a07cff2a541n.firstChild, element_e90343e05b274f9c8b2074a07cff2a541q = element_e90343e05b274f9c8b2074a07cff2a541p.firstChild;
34
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a541p, omit(attributes, OMIT));
35
+ template_e90343e05b274f9c8b2074a07cff2a541.delegate(element_e90343e05b274f9c8b2074a07cff2a541p, 'click', function (event) {
36
36
  let trigger = event.target;
37
37
  if (trigger?.type !== 'submit') {
38
38
  return;
@@ -40,7 +40,7 @@ export default (attributes, content) => {
40
40
  event.preventDefault();
41
41
  this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
42
42
  });
43
- template_23a4f055a2904f1fa5d72b30cc2abc501.on(element_23a4f055a2904f1fa5d72b30cc2abc501p, 'submit', async function (event) {
43
+ template_e90343e05b274f9c8b2074a07cff2a541.on(element_e90343e05b274f9c8b2074a07cff2a541p, 'submit', async function (event) {
44
44
  event.preventDefault();
45
45
  if (state) {
46
46
  state.processing = true;
@@ -60,7 +60,7 @@ export default (attributes, content) => {
60
60
  state.processing = false;
61
61
  }
62
62
  });
63
- template_23a4f055a2904f1fa5d72b30cc2abc501.slot(element_23a4f055a2904f1fa5d72b30cc2abc501q, content);
64
- return root_23a4f055a2904f1fa5d72b30cc2abc501n;
63
+ template_e90343e05b274f9c8b2074a07cff2a541.slot(element_e90343e05b274f9c8b2074a07cff2a541q, content);
64
+ return root_e90343e05b274f9c8b2074a07cff2a541n;
65
65
  })();
66
66
  };
@@ -1,21 +1,21 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
6
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
7
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
8
- <T extends template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
10
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
11
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
12
- <T extends template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
14
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
15
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
16
- (attributes: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
18
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
19
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
5
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
6
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
7
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
8
+ <T extends template_e90343e05b274f9c8b2074a07cff2a541.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
10
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
11
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
12
+ <T extends template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
14
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
15
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
16
+ (attributes: template_e90343e05b274f9c8b2074a07cff2a541.Attributes, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
18
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
19
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,9 +1,9 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { reactive } from '@esportsplus/template';
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_23a4f055a2904f1fa5d72b30cc2abc501s = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<div class='highlight'><!--$--></div>`);
6
+ const template_e90343e05b274f9c8b2074a07cff2a541s = template_e90343e05b274f9c8b2074a07cff2a541.template(`<div class='highlight'><!--$--></div>`);
7
7
  const OMIT = ['background'];
8
8
  let key = Symbol(), observer = null;
9
9
  export default template.factory((attributes, content) => {
@@ -30,17 +30,17 @@ export default template.factory((attributes, content) => {
30
30
  highlight: 0
31
31
  });
32
32
  return (() => {
33
- let root_23a4f055a2904f1fa5d72b30cc2abc501r = template_23a4f055a2904f1fa5d72b30cc2abc501s(), element_23a4f055a2904f1fa5d72b30cc2abc501t = root_23a4f055a2904f1fa5d72b30cc2abc501r.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc501u = element_23a4f055a2904f1fa5d72b30cc2abc501t.firstChild;
34
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc501t, omit(attributes, OMIT));
35
- template_23a4f055a2904f1fa5d72b30cc2abc501.onrender(element_23a4f055a2904f1fa5d72b30cc2abc501t, (element) => {
33
+ let root_e90343e05b274f9c8b2074a07cff2a541r = template_e90343e05b274f9c8b2074a07cff2a541s(), element_e90343e05b274f9c8b2074a07cff2a541t = root_e90343e05b274f9c8b2074a07cff2a541r.firstChild, element_e90343e05b274f9c8b2074a07cff2a541u = element_e90343e05b274f9c8b2074a07cff2a541t.firstChild;
34
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a541t, omit(attributes, OMIT));
35
+ template_e90343e05b274f9c8b2074a07cff2a541.onrender(element_e90343e05b274f9c8b2074a07cff2a541t, (element) => {
36
36
  element[key] = state;
37
37
  observer.observe(element);
38
38
  });
39
- template_23a4f055a2904f1fa5d72b30cc2abc501.setStyle(element_23a4f055a2904f1fa5d72b30cc2abc501t, '', [
39
+ template_e90343e05b274f9c8b2074a07cff2a541.setStyle(element_e90343e05b274f9c8b2074a07cff2a541t, '', [
40
40
  () => `--highlight: ${state.highlight}`,
41
41
  `--background: ${attributes.background}`,
42
42
  ]);
43
- template_23a4f055a2904f1fa5d72b30cc2abc501.slot(element_23a4f055a2904f1fa5d72b30cc2abc501u, content);
44
- return root_23a4f055a2904f1fa5d72b30cc2abc501r;
43
+ template_e90343e05b274f9c8b2074a07cff2a541.slot(element_e90343e05b274f9c8b2074a07cff2a541u, content);
44
+ return root_e90343e05b274f9c8b2074a07cff2a541r;
45
45
  })();
46
46
  });
@@ -1,21 +1,21 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
5
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: string) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
8
- <T extends template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
7
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: string) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
8
+ <T extends template_e90343e05b274f9c8b2074a07cff2a541.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: string) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
11
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: string) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
13
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: string) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
16
- (attributes: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
15
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: string) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
16
+ (attributes: template_e90343e05b274f9c8b2074a07cff2a541.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: string) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
19
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: string) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,13 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { svg } from '@esportsplus/template';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_23a4f055a2904f1fa5d72b30cc2abc501w = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<div class='icon'><!--$--></div>`);
5
+ const template_e90343e05b274f9c8b2074a07cff2a541w = template_e90343e05b274f9c8b2074a07cff2a541.template(`<div class='icon'><!--$--></div>`);
6
6
  export default template.factory((attributes, icon) => {
7
7
  return (() => {
8
- let root_23a4f055a2904f1fa5d72b30cc2abc501v = template_23a4f055a2904f1fa5d72b30cc2abc501w(), element_23a4f055a2904f1fa5d72b30cc2abc501x = root_23a4f055a2904f1fa5d72b30cc2abc501v.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc501y = element_23a4f055a2904f1fa5d72b30cc2abc501x.firstChild;
9
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc501x, attributes);
10
- template_23a4f055a2904f1fa5d72b30cc2abc501.slot(element_23a4f055a2904f1fa5d72b30cc2abc501y, svg.sprite(icon));
11
- return root_23a4f055a2904f1fa5d72b30cc2abc501v;
8
+ let root_e90343e05b274f9c8b2074a07cff2a541v = template_e90343e05b274f9c8b2074a07cff2a541w(), element_e90343e05b274f9c8b2074a07cff2a541x = root_e90343e05b274f9c8b2074a07cff2a541v.firstChild, element_e90343e05b274f9c8b2074a07cff2a541y = element_e90343e05b274f9c8b2074a07cff2a541x.firstChild;
9
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a541x, attributes);
10
+ template_e90343e05b274f9c8b2074a07cff2a541.slot(element_e90343e05b274f9c8b2074a07cff2a541y, svg.sprite(icon));
11
+ return root_e90343e05b274f9c8b2074a07cff2a541v;
12
12
  })();
13
13
  });
@@ -1,8 +1,8 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { reactive } from '@esportsplus/template';
3
3
  import form from '../../components/form/index.js';
4
4
  import './scss/index.scss';
5
- const template_23a4f055a2904f1fa5d72b30cc2abc5020 = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<input
5
+ const template_e90343e05b274f9c8b2074a07cff2a5420 = template_e90343e05b274f9c8b2074a07cff2a541.template(`<input
6
6
  class='input'
7
7
  />`);
8
8
  export default function (attributes) {
@@ -11,19 +11,19 @@ export default function (attributes) {
11
11
  error: ''
12
12
  });
13
13
  return (() => {
14
- let root_23a4f055a2904f1fa5d72b30cc2abc501z = template_23a4f055a2904f1fa5d72b30cc2abc5020(), element_23a4f055a2904f1fa5d72b30cc2abc5021 = root_23a4f055a2904f1fa5d72b30cc2abc501z.firstChild;
15
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc5021, this?.attributes);
16
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc5021, attributes);
17
- template_23a4f055a2904f1fa5d72b30cc2abc501.setClass(element_23a4f055a2904f1fa5d72b30cc2abc5021, '', () => state.active && '--active');
18
- template_23a4f055a2904f1fa5d72b30cc2abc501.on(element_23a4f055a2904f1fa5d72b30cc2abc5021, 'focusin', () => {
14
+ let root_e90343e05b274f9c8b2074a07cff2a541z = template_e90343e05b274f9c8b2074a07cff2a5420(), element_e90343e05b274f9c8b2074a07cff2a5421 = root_e90343e05b274f9c8b2074a07cff2a541z.firstChild;
15
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a5421, this?.attributes);
16
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a5421, attributes);
17
+ template_e90343e05b274f9c8b2074a07cff2a541.setClass(element_e90343e05b274f9c8b2074a07cff2a5421, '', () => state.active && '--active');
18
+ template_e90343e05b274f9c8b2074a07cff2a541.on(element_e90343e05b274f9c8b2074a07cff2a5421, 'focusin', () => {
19
19
  state.active = true;
20
20
  });
21
- template_23a4f055a2904f1fa5d72b30cc2abc501.on(element_23a4f055a2904f1fa5d72b30cc2abc5021, 'focusout', () => {
21
+ template_e90343e05b274f9c8b2074a07cff2a541.on(element_e90343e05b274f9c8b2074a07cff2a5421, 'focusout', () => {
22
22
  state.active = false;
23
23
  });
24
- template_23a4f055a2904f1fa5d72b30cc2abc501.onrender(element_23a4f055a2904f1fa5d72b30cc2abc5021, form.input.onrender(state));
25
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperty(element_23a4f055a2904f1fa5d72b30cc2abc5021, 'type', (attributes.type || 'text'));
26
- return root_23a4f055a2904f1fa5d72b30cc2abc501z;
24
+ template_e90343e05b274f9c8b2074a07cff2a541.onrender(element_e90343e05b274f9c8b2074a07cff2a5421, form.input.onrender(state));
25
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperty(element_e90343e05b274f9c8b2074a07cff2a5421, 'type', (attributes.type || 'text'));
26
+ return root_e90343e05b274f9c8b2074a07cff2a541z;
27
27
  })();
28
28
  }
29
29
  ;
@@ -1,21 +1,21 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
6
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
7
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
8
- <T extends template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
10
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
11
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
12
- <T extends template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
14
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
15
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
16
- (attributes: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes | undefined;
18
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
19
- }, attributes: Readonly<template_23a4f055a2904f1fa5d72b30cc2abc501.Attributes>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
5
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
6
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
7
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
8
+ <T extends template_e90343e05b274f9c8b2074a07cff2a541.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
10
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
11
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
12
+ <T extends template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
14
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
15
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
16
+ (attributes: template_e90343e05b274f9c8b2074a07cff2a541.Attributes, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_e90343e05b274f9c8b2074a07cff2a541.Attributes | undefined;
18
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
19
+ }, attributes: Readonly<template_e90343e05b274f9c8b2074a07cff2a541.Attributes>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,12 +1,12 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { reactive } from '@esportsplus/template';
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_23a4f055a2904f1fa5d72b30cc2abc5023 = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<div class='loader-content'><div
6
+ const template_e90343e05b274f9c8b2074a07cff2a5423 = template_e90343e05b274f9c8b2074a07cff2a541.template(`<div class='loader-content'><div
7
7
  class='loader-logo text --flex-center --text-uppercase --text-600'
8
8
  style='color: var(--color-grey-500);'><!--$--></div></div>`);
9
- const template_23a4f055a2904f1fa5d72b30cc2abc5028 = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<div
9
+ const template_e90343e05b274f9c8b2074a07cff2a5428 = template_e90343e05b274f9c8b2074a07cff2a541.template(`<div
10
10
  class='loader '><div
11
11
  class='loader '><!--$--></div></div>`);
12
12
  const OMIT = ['loader-content', 'loader-logo'];
@@ -22,39 +22,39 @@ export default template.factory((attributes, content) => {
22
22
  }
23
23
  let i = 0;
24
24
  return (() => {
25
- let root_23a4f055a2904f1fa5d72b30cc2abc5027 = template_23a4f055a2904f1fa5d72b30cc2abc5028(), element_23a4f055a2904f1fa5d72b30cc2abc5029 = root_23a4f055a2904f1fa5d72b30cc2abc5027.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc502a = element_23a4f055a2904f1fa5d72b30cc2abc5029.firstElementChild, element_23a4f055a2904f1fa5d72b30cc2abc502b = element_23a4f055a2904f1fa5d72b30cc2abc502a.firstChild;
26
- template_23a4f055a2904f1fa5d72b30cc2abc501.setClass(element_23a4f055a2904f1fa5d72b30cc2abc5029, ' ', () => state.load && 'loader--load');
27
- template_23a4f055a2904f1fa5d72b30cc2abc501.delegate(element_23a4f055a2904f1fa5d72b30cc2abc5029, 'animationend', (e) => {
25
+ let root_e90343e05b274f9c8b2074a07cff2a5427 = template_e90343e05b274f9c8b2074a07cff2a5428(), element_e90343e05b274f9c8b2074a07cff2a5429 = root_e90343e05b274f9c8b2074a07cff2a5427.firstChild, element_e90343e05b274f9c8b2074a07cff2a542a = element_e90343e05b274f9c8b2074a07cff2a5429.firstElementChild, element_e90343e05b274f9c8b2074a07cff2a542b = element_e90343e05b274f9c8b2074a07cff2a542a.firstChild;
26
+ template_e90343e05b274f9c8b2074a07cff2a541.setClass(element_e90343e05b274f9c8b2074a07cff2a5429, ' ', () => state.load && 'loader--load');
27
+ template_e90343e05b274f9c8b2074a07cff2a541.delegate(element_e90343e05b274f9c8b2074a07cff2a5429, 'animationend', (e) => {
28
28
  i++;
29
29
  if (e.animationName === 'move' && i > 1) {
30
30
  state.remove = true;
31
31
  }
32
32
  });
33
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc5029, omit(attributes, OMIT));
34
- template_23a4f055a2904f1fa5d72b30cc2abc501.setClass(element_23a4f055a2904f1fa5d72b30cc2abc502a, ' ', () => state.load && 'loader--load');
35
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502a, !content && {
33
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a5429, omit(attributes, OMIT));
34
+ template_e90343e05b274f9c8b2074a07cff2a541.setClass(element_e90343e05b274f9c8b2074a07cff2a542a, ' ', () => state.load && 'loader--load');
35
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542a, !content && {
36
36
  onconnect: () => {
37
37
  state.load = true;
38
38
  }
39
39
  });
40
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502a, attributes.loader);
41
- template_23a4f055a2904f1fa5d72b30cc2abc501.slot(element_23a4f055a2904f1fa5d72b30cc2abc502b, content && (() => {
42
- let root_23a4f055a2904f1fa5d72b30cc2abc5022 = template_23a4f055a2904f1fa5d72b30cc2abc5023(), element_23a4f055a2904f1fa5d72b30cc2abc5024 = root_23a4f055a2904f1fa5d72b30cc2abc5022.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc5025 = element_23a4f055a2904f1fa5d72b30cc2abc5024.firstElementChild, element_23a4f055a2904f1fa5d72b30cc2abc5026 = element_23a4f055a2904f1fa5d72b30cc2abc5025.firstChild;
43
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc5024, attributes['loader-content']);
44
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc5025, attributes['loader-logo']);
45
- template_23a4f055a2904f1fa5d72b30cc2abc501.setClass(element_23a4f055a2904f1fa5d72b30cc2abc5025, '', () => state.scale && 'loader-logo--scale');
46
- template_23a4f055a2904f1fa5d72b30cc2abc501.delegate(element_23a4f055a2904f1fa5d72b30cc2abc5025, 'animationend', ({ animationName: name }) => {
40
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542a, attributes.loader);
41
+ template_e90343e05b274f9c8b2074a07cff2a541.slot(element_e90343e05b274f9c8b2074a07cff2a542b, content && (() => {
42
+ let root_e90343e05b274f9c8b2074a07cff2a5422 = template_e90343e05b274f9c8b2074a07cff2a5423(), element_e90343e05b274f9c8b2074a07cff2a5424 = root_e90343e05b274f9c8b2074a07cff2a5422.firstChild, element_e90343e05b274f9c8b2074a07cff2a5425 = element_e90343e05b274f9c8b2074a07cff2a5424.firstElementChild, element_e90343e05b274f9c8b2074a07cff2a5426 = element_e90343e05b274f9c8b2074a07cff2a5425.firstChild;
43
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a5424, attributes['loader-content']);
44
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a5425, attributes['loader-logo']);
45
+ template_e90343e05b274f9c8b2074a07cff2a541.setClass(element_e90343e05b274f9c8b2074a07cff2a5425, '', () => state.scale && 'loader-logo--scale');
46
+ template_e90343e05b274f9c8b2074a07cff2a541.delegate(element_e90343e05b274f9c8b2074a07cff2a5425, 'animationend', ({ animationName: name }) => {
47
47
  if (name === 'scale') {
48
48
  state.load = true;
49
49
  }
50
50
  });
51
- template_23a4f055a2904f1fa5d72b30cc2abc501.onconnect(element_23a4f055a2904f1fa5d72b30cc2abc5025, () => {
51
+ template_e90343e05b274f9c8b2074a07cff2a541.onconnect(element_e90343e05b274f9c8b2074a07cff2a5425, () => {
52
52
  state.scale = true;
53
53
  });
54
- template_23a4f055a2904f1fa5d72b30cc2abc501.slot(element_23a4f055a2904f1fa5d72b30cc2abc5026, content);
55
- return root_23a4f055a2904f1fa5d72b30cc2abc5022;
54
+ template_e90343e05b274f9c8b2074a07cff2a541.slot(element_e90343e05b274f9c8b2074a07cff2a5426, content);
55
+ return root_e90343e05b274f9c8b2074a07cff2a5422;
56
56
  })());
57
- return root_23a4f055a2904f1fa5d72b30cc2abc5027;
57
+ return root_e90343e05b274f9c8b2074a07cff2a5427;
58
58
  })();
59
59
  };
60
60
  });
@@ -1,12 +1,12 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_23a4f055a2904f1fa5d72b30cc2abc502d = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<div
3
+ const template_e90343e05b274f9c8b2074a07cff2a542d = template_e90343e05b274f9c8b2074a07cff2a541.template(`<div
4
4
  class='loading --border-width-700 --size-800'
5
5
  style='--border-color: var(--color-border-500);'></div>`);
6
6
  export default (attributes) => {
7
7
  return (() => {
8
- let root_23a4f055a2904f1fa5d72b30cc2abc502c = template_23a4f055a2904f1fa5d72b30cc2abc502d(), element_23a4f055a2904f1fa5d72b30cc2abc502e = root_23a4f055a2904f1fa5d72b30cc2abc502c.firstChild;
9
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502e, attributes);
10
- return root_23a4f055a2904f1fa5d72b30cc2abc502c;
8
+ let root_e90343e05b274f9c8b2074a07cff2a542c = template_e90343e05b274f9c8b2074a07cff2a542d(), element_e90343e05b274f9c8b2074a07cff2a542e = root_e90343e05b274f9c8b2074a07cff2a542c.firstChild;
9
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542e, attributes);
10
+ return root_e90343e05b274f9c8b2074a07cff2a542c;
11
11
  })();
12
12
  };
@@ -1,8 +1,8 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { reactive, root } from '@esportsplus/template';
3
3
  import form from '../../components/form/index.js';
4
4
  import './scss/index.scss';
5
- const template_23a4f055a2904f1fa5d72b30cc2abc502g = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<input
5
+ const template_e90343e05b274f9c8b2074a07cff2a542g = template_e90343e05b274f9c8b2074a07cff2a541.template(`<input
6
6
  class='range --border-state --border-black'
7
7
  type='range'
8
8
  />`);
@@ -16,23 +16,23 @@ export default function (attributes) {
16
16
  state.value = Number(attributes.value);
17
17
  }
18
18
  return (() => {
19
- let root_23a4f055a2904f1fa5d72b30cc2abc502f = template_23a4f055a2904f1fa5d72b30cc2abc502g(), element_23a4f055a2904f1fa5d72b30cc2abc502h = root_23a4f055a2904f1fa5d72b30cc2abc502f.firstChild;
20
- template_23a4f055a2904f1fa5d72b30cc2abc501.setStyle(element_23a4f055a2904f1fa5d72b30cc2abc502h, ';', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
21
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502h, this?.attributes);
22
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502h, attributes);
23
- template_23a4f055a2904f1fa5d72b30cc2abc501.setClass(element_23a4f055a2904f1fa5d72b30cc2abc502h, '', () => state.active && '--active');
24
- template_23a4f055a2904f1fa5d72b30cc2abc501.on(element_23a4f055a2904f1fa5d72b30cc2abc502h, 'focusin', () => {
19
+ let root_e90343e05b274f9c8b2074a07cff2a542f = template_e90343e05b274f9c8b2074a07cff2a542g(), element_e90343e05b274f9c8b2074a07cff2a542h = root_e90343e05b274f9c8b2074a07cff2a542f.firstChild;
20
+ template_e90343e05b274f9c8b2074a07cff2a541.setStyle(element_e90343e05b274f9c8b2074a07cff2a542h, ';', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
21
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542h, this?.attributes);
22
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542h, attributes);
23
+ template_e90343e05b274f9c8b2074a07cff2a541.setClass(element_e90343e05b274f9c8b2074a07cff2a542h, '', () => state.active && '--active');
24
+ template_e90343e05b274f9c8b2074a07cff2a541.on(element_e90343e05b274f9c8b2074a07cff2a542h, 'focusin', () => {
25
25
  state.active = true;
26
26
  });
27
- template_23a4f055a2904f1fa5d72b30cc2abc501.on(element_23a4f055a2904f1fa5d72b30cc2abc502h, 'focusout', () => {
27
+ template_e90343e05b274f9c8b2074a07cff2a541.on(element_e90343e05b274f9c8b2074a07cff2a542h, 'focusout', () => {
28
28
  state.active = false;
29
29
  });
30
- template_23a4f055a2904f1fa5d72b30cc2abc501.delegate(element_23a4f055a2904f1fa5d72b30cc2abc502h, 'input', (e) => {
30
+ template_e90343e05b274f9c8b2074a07cff2a541.delegate(element_e90343e05b274f9c8b2074a07cff2a542h, 'input', (e) => {
31
31
  state.value = Number(e.target.value);
32
32
  });
33
- template_23a4f055a2904f1fa5d72b30cc2abc501.onrender(element_23a4f055a2904f1fa5d72b30cc2abc502h, form.input.onrender(state));
34
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperty(element_23a4f055a2904f1fa5d72b30cc2abc502h, 'value', root(() => attributes?.value || state.value || 0));
35
- return root_23a4f055a2904f1fa5d72b30cc2abc502f;
33
+ template_e90343e05b274f9c8b2074a07cff2a541.onrender(element_e90343e05b274f9c8b2074a07cff2a542h, form.input.onrender(state));
34
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperty(element_e90343e05b274f9c8b2074a07cff2a542h, 'value', root(() => attributes?.value || state.value || 0));
35
+ return root_e90343e05b274f9c8b2074a07cff2a542f;
36
36
  })();
37
37
  }
38
38
  ;
@@ -1,4 +1,4 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { Attributes } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  type A = Attributes & {
@@ -8,20 +8,20 @@ type A = Attributes & {
8
8
  declare const _default: {
9
9
  (): ReturnType<(this: {
10
10
  attributes?: A | undefined;
11
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
11
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
17
- <T extends template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
17
+ <T extends template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
21
- (attributes: A, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>): ReturnType<(this: {
19
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
21
+ (attributes: A, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>) => template_23a4f055a2904f1fa5d72b30cc2abc501.Renderable<any>>;
23
+ content?: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>) => template_e90343e05b274f9c8b2074a07cff2a541.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,9 +1,9 @@
1
- import * as template_23a4f055a2904f1fa5d72b30cc2abc501 from '@esportsplus/template';
1
+ import * as template_e90343e05b274f9c8b2074a07cff2a541 from '@esportsplus/template';
2
2
  import { reactive } from '@esportsplus/template';
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_23a4f055a2904f1fa5d72b30cc2abc502j = template_23a4f055a2904f1fa5d72b30cc2abc501.template(`<div
6
+ const template_e90343e05b274f9c8b2074a07cff2a542j = template_e90343e05b274f9c8b2074a07cff2a541.template(`<div
7
7
  class='scrollbar-container'><div
8
8
  class='scrollbar-container-content'><!--$--></div><div
9
9
  class='scrollbar'></div></div>`);
@@ -15,12 +15,12 @@ export default template.factory(function (attributes, content) {
15
15
  translate: 0
16
16
  });
17
17
  return (() => {
18
- let root_23a4f055a2904f1fa5d72b30cc2abc502i = template_23a4f055a2904f1fa5d72b30cc2abc502j(), element_23a4f055a2904f1fa5d72b30cc2abc502k = root_23a4f055a2904f1fa5d72b30cc2abc502i.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc502l = element_23a4f055a2904f1fa5d72b30cc2abc502k.firstElementChild, element_23a4f055a2904f1fa5d72b30cc2abc502m = element_23a4f055a2904f1fa5d72b30cc2abc502l.firstChild, element_23a4f055a2904f1fa5d72b30cc2abc502n = element_23a4f055a2904f1fa5d72b30cc2abc502l.nextElementSibling;
19
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502k, this?.attributes && omit(this.attributes, OMIT));
20
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502k, omit(attributes, OMIT));
21
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502l, this?.attributes?.['scrollbar-container-content']);
22
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502l, attributes['scrollbar-container-content']);
23
- template_23a4f055a2904f1fa5d72b30cc2abc501.on(element_23a4f055a2904f1fa5d72b30cc2abc502l, 'scroll', function () {
18
+ let root_e90343e05b274f9c8b2074a07cff2a542i = template_e90343e05b274f9c8b2074a07cff2a542j(), element_e90343e05b274f9c8b2074a07cff2a542k = root_e90343e05b274f9c8b2074a07cff2a542i.firstChild, element_e90343e05b274f9c8b2074a07cff2a542l = element_e90343e05b274f9c8b2074a07cff2a542k.firstElementChild, element_e90343e05b274f9c8b2074a07cff2a542m = element_e90343e05b274f9c8b2074a07cff2a542l.firstChild, element_e90343e05b274f9c8b2074a07cff2a542n = element_e90343e05b274f9c8b2074a07cff2a542l.nextElementSibling;
19
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542k, this?.attributes && omit(this.attributes, OMIT));
20
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542k, omit(attributes, OMIT));
21
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542l, this?.attributes?.['scrollbar-container-content']);
22
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542l, attributes['scrollbar-container-content']);
23
+ template_e90343e05b274f9c8b2074a07cff2a541.on(element_e90343e05b274f9c8b2074a07cff2a542l, 'scroll', function () {
24
24
  if (width === undefined) {
25
25
  width = this.offsetWidth - this.clientWidth;
26
26
  if (width && width !== 17) {
@@ -30,14 +30,14 @@ export default template.factory(function (attributes, content) {
30
30
  state.height = (this.clientHeight / this.scrollHeight) * 100;
31
31
  state.translate = (this.scrollTop / this.clientHeight) * 100;
32
32
  });
33
- template_23a4f055a2904f1fa5d72b30cc2abc501.slot(element_23a4f055a2904f1fa5d72b30cc2abc502m, content);
34
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502n, this?.attributes?.scrollbar);
35
- template_23a4f055a2904f1fa5d72b30cc2abc501.setProperties(element_23a4f055a2904f1fa5d72b30cc2abc502n, attributes.scrollbar);
36
- template_23a4f055a2904f1fa5d72b30cc2abc501.setClass(element_23a4f055a2904f1fa5d72b30cc2abc502n, '', () => state.height >= 100 && 'scrollbar--hidden');
37
- template_23a4f055a2904f1fa5d72b30cc2abc501.setStyle(element_23a4f055a2904f1fa5d72b30cc2abc502n, '', () => `
33
+ template_e90343e05b274f9c8b2074a07cff2a541.slot(element_e90343e05b274f9c8b2074a07cff2a542m, content);
34
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542n, this?.attributes?.scrollbar);
35
+ template_e90343e05b274f9c8b2074a07cff2a541.setProperties(element_e90343e05b274f9c8b2074a07cff2a542n, attributes.scrollbar);
36
+ template_e90343e05b274f9c8b2074a07cff2a541.setClass(element_e90343e05b274f9c8b2074a07cff2a542n, '', () => state.height >= 100 && 'scrollbar--hidden');
37
+ template_e90343e05b274f9c8b2074a07cff2a541.setStyle(element_e90343e05b274f9c8b2074a07cff2a542n, '', () => `
38
38
  --translate: translate3d(0, ${state.translate}%, 0);
39
39
  --height: ${state.height}%;
40
40
  `);
41
- return root_23a4f055a2904f1fa5d72b30cc2abc502i;
41
+ return root_e90343e05b274f9c8b2074a07cff2a542i;
42
42
  })();
43
43
  });