@esportsplus/ui 0.48.6 → 0.48.7

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 +11 -11
  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 +9 -9
  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 +21 -21
  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 +15 -15
  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 +3 -3
@@ -1,8 +1,8 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_3ea7bdb36b1e42ed846a8dc5465fdb951l = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
3
+ const template_69d8ea42df6d40bfb4950d47c33fd3631y = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
4
4
  export default (attributes) => {
5
- let root_3ea7bdb36b1e42ed846a8dc5465fdb951k = template_3ea7bdb36b1e42ed846a8dc5465fdb951l(), element_3ea7bdb36b1e42ed846a8dc5465fdb951m = root_3ea7bdb36b1e42ed846a8dc5465fdb951k.firstChild;
6
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb951m, attributes, { "class": "ellipsis" });
7
- return root_3ea7bdb36b1e42ed846a8dc5465fdb951k;
5
+ let root_69d8ea42df6d40bfb4950d47c33fd3631x = template_69d8ea42df6d40bfb4950d47c33fd3631y(), element_69d8ea42df6d40bfb4950d47c33fd3631z = root_69d8ea42df6d40bfb4950d47c33fd3631x.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd36320 = { "class": "ellipsis" };
6
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3631z, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36320);
7
+ return root_69d8ea42df6d40bfb4950d47c33fd3631x;
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
2
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_3ea7bdb36b1e42ed846a8dc5465fdb951o = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<form class='form'><!--$--></form>`);
5
+ const template_69d8ea42df6d40bfb4950d47c33fd36322 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<form class='form'><!--$--></form>`);
6
6
  const OMIT = ['action', 'state'];
7
7
  function parse(input) {
8
8
  let data = {};
@@ -29,9 +29,9 @@ function parse(input) {
29
29
  export default (attributes, content) => {
30
30
  let { action, state } = attributes;
31
31
  return (() => {
32
- let root_3ea7bdb36b1e42ed846a8dc5465fdb951n = template_3ea7bdb36b1e42ed846a8dc5465fdb951o(), element_3ea7bdb36b1e42ed846a8dc5465fdb951p = root_3ea7bdb36b1e42ed846a8dc5465fdb951n.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb951q = element_3ea7bdb36b1e42ed846a8dc5465fdb951p.firstChild;
33
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb951p, omit(attributes, OMIT), { "class": "form" });
34
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb951p, 'click', function (event) {
32
+ let root_69d8ea42df6d40bfb4950d47c33fd36321 = template_69d8ea42df6d40bfb4950d47c33fd36322(), element_69d8ea42df6d40bfb4950d47c33fd36323 = root_69d8ea42df6d40bfb4950d47c33fd36321.firstChild, element_69d8ea42df6d40bfb4950d47c33fd36324 = element_69d8ea42df6d40bfb4950d47c33fd36323.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd36325 = { "class": "form" };
33
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36323, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd36325);
34
+ template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36323, 'click', function (event) {
35
35
  let trigger = event.target;
36
36
  if (trigger?.type !== 'submit') {
37
37
  return;
@@ -39,7 +39,7 @@ export default (attributes, content) => {
39
39
  event.preventDefault();
40
40
  this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
41
41
  });
42
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.on(element_3ea7bdb36b1e42ed846a8dc5465fdb951p, 'submit', async function (event) {
42
+ template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd36323, 'submit', async function (event) {
43
43
  event.preventDefault();
44
44
  if (state) {
45
45
  state.processing = true;
@@ -59,7 +59,7 @@ export default (attributes, content) => {
59
59
  state.processing = false;
60
60
  }
61
61
  });
62
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb951q, content);
63
- return root_3ea7bdb36b1e42ed846a8dc5465fdb951n;
62
+ template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd36324, content);
63
+ return root_69d8ea42df6d40bfb4950d47c33fd36321;
64
64
  })();
65
65
  };
@@ -1,21 +1,21 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
6
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
7
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
8
- <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
10
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
11
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
12
- <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
14
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
15
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
16
- (attributes: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
18
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
19
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
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>>;
20
20
  };
21
21
  export default _default;
@@ -1,9 +1,9 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb951s = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='highlight'><!--$--></div>`);
6
+ const template_69d8ea42df6d40bfb4950d47c33fd36327 = template_69d8ea42df6d40bfb4950d47c33fd3631.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_3ea7bdb36b1e42ed846a8dc5465fdb951r = template_3ea7bdb36b1e42ed846a8dc5465fdb951s(), element_3ea7bdb36b1e42ed846a8dc5465fdb951t = root_3ea7bdb36b1e42ed846a8dc5465fdb951r.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb951u = element_3ea7bdb36b1e42ed846a8dc5465fdb951t.firstChild;
34
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb951t, omit(attributes, OMIT), { "class": "highlight" });
35
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.onrender(element_3ea7bdb36b1e42ed846a8dc5465fdb951t, (element) => {
33
+ let root_69d8ea42df6d40bfb4950d47c33fd36326 = template_69d8ea42df6d40bfb4950d47c33fd36327(), element_69d8ea42df6d40bfb4950d47c33fd36328 = root_69d8ea42df6d40bfb4950d47c33fd36326.firstChild, element_69d8ea42df6d40bfb4950d47c33fd36329 = element_69d8ea42df6d40bfb4950d47c33fd36328.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3632a = { "class": "highlight" };
34
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36328, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3632a);
35
+ template_69d8ea42df6d40bfb4950d47c33fd3631.onrender(element_69d8ea42df6d40bfb4950d47c33fd36328, (element) => {
36
36
  element[key] = state;
37
37
  observer.observe(element);
38
38
  });
39
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb951t, 'style', '', [
39
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36328, 'style', [
40
40
  () => `--highlight: ${state.highlight}`,
41
41
  `--background: ${attributes.background}`,
42
- ]);
43
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb951u, content);
44
- return root_3ea7bdb36b1e42ed846a8dc5465fdb951r;
42
+ ], attributes_69d8ea42df6d40bfb4950d47c33fd3632a);
43
+ template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd36329, content);
44
+ return root_69d8ea42df6d40bfb4950d47c33fd36326;
45
45
  })();
46
46
  });
@@ -1,21 +1,21 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
5
+ attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
8
- <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
7
+ }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: string) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
8
+ <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
11
+ }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: string) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
13
+ attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
16
- (attributes: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
15
+ }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: string) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
16
+ (attributes: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
19
+ }, attributes: Readonly<template_69d8ea42df6d40bfb4950d47c33fd3631.Attributes>, content: string) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,13 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb951w = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='icon'><!--$--></div>`);
5
+ const template_69d8ea42df6d40bfb4950d47c33fd3632c = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='icon'><!--$--></div>`);
6
6
  export default template.factory((attributes, icon) => {
7
7
  return (() => {
8
- let root_3ea7bdb36b1e42ed846a8dc5465fdb951v = template_3ea7bdb36b1e42ed846a8dc5465fdb951w(), element_3ea7bdb36b1e42ed846a8dc5465fdb951x = root_3ea7bdb36b1e42ed846a8dc5465fdb951v.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb951y = element_3ea7bdb36b1e42ed846a8dc5465fdb951x.firstChild;
9
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb951x, attributes, { "class": "icon" });
10
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb951y, svg.sprite(icon));
11
- return root_3ea7bdb36b1e42ed846a8dc5465fdb951v;
8
+ let root_69d8ea42df6d40bfb4950d47c33fd3632b = template_69d8ea42df6d40bfb4950d47c33fd3632c(), element_69d8ea42df6d40bfb4950d47c33fd3632d = root_69d8ea42df6d40bfb4950d47c33fd3632b.firstChild, element_69d8ea42df6d40bfb4950d47c33fd3632e = element_69d8ea42df6d40bfb4950d47c33fd3632d.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3632f = { "class": "icon" };
9
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632d, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd3632f);
10
+ template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd3632e, svg.sprite(icon));
11
+ return root_69d8ea42df6d40bfb4950d47c33fd3632b;
12
12
  })();
13
13
  });
@@ -1,27 +1,27 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb9520 = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<input class='input' />`);
5
+ const template_69d8ea42df6d40bfb4950d47c33fd3632h = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<input class='input' />`);
6
6
  export default function (attributes) {
7
7
  let state = attributes.state || reactive({
8
8
  active: false,
9
9
  error: ''
10
10
  });
11
11
  return (() => {
12
- let root_3ea7bdb36b1e42ed846a8dc5465fdb951z = template_3ea7bdb36b1e42ed846a8dc5465fdb9520(), element_3ea7bdb36b1e42ed846a8dc5465fdb9521 = root_3ea7bdb36b1e42ed846a8dc5465fdb951z.firstChild;
13
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, this?.attributes, { "class": "input" });
14
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, attributes, { "class": "input" });
15
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, 'class', '', () => state.active && '--active');
16
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.on(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, 'focusin', () => {
12
+ let root_69d8ea42df6d40bfb4950d47c33fd3632g = template_69d8ea42df6d40bfb4950d47c33fd3632h(), element_69d8ea42df6d40bfb4950d47c33fd3632i = root_69d8ea42df6d40bfb4950d47c33fd3632g.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3632j = { "class": "input" };
13
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632i, this?.attributes, attributes_69d8ea42df6d40bfb4950d47c33fd3632j);
14
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632i, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd3632j);
15
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3632i, 'class', () => state.active && '--active', attributes_69d8ea42df6d40bfb4950d47c33fd3632j);
16
+ template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd3632i, 'focusin', () => {
17
17
  state.active = true;
18
18
  });
19
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.on(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, 'focusout', () => {
19
+ template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd3632i, 'focusout', () => {
20
20
  state.active = false;
21
21
  });
22
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.onrender(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, form.input.onrender(state));
23
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperty(element_3ea7bdb36b1e42ed846a8dc5465fdb9521, 'type', (attributes.type || 'text'));
24
- return root_3ea7bdb36b1e42ed846a8dc5465fdb951z;
22
+ template_69d8ea42df6d40bfb4950d47c33fd3631.onrender(element_69d8ea42df6d40bfb4950d47c33fd3632i, form.input.onrender(state));
23
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperty(element_69d8ea42df6d40bfb4950d47c33fd3632i, 'type', (attributes.type || 'text'));
24
+ return root_69d8ea42df6d40bfb4950d47c33fd3632g;
25
25
  })();
26
26
  }
27
27
  ;
@@ -1,21 +1,21 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
6
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
7
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
8
- <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
10
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
11
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
12
- <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
14
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
15
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
16
- (attributes: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
18
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
19
- }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
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>>;
20
20
  };
21
21
  export default _default;
@@ -1,10 +1,10 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb9523 = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
7
- const template_3ea7bdb36b1e42ed846a8dc5465fdb9528 = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
6
+ const template_69d8ea42df6d40bfb4950d47c33fd3632l = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
7
+ const template_69d8ea42df6d40bfb4950d47c33fd3632s = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
8
  const OMIT = ['loader-content', 'loader-logo'];
9
9
  export default template.factory((attributes, content) => {
10
10
  let state = reactive({
@@ -18,39 +18,39 @@ export default template.factory((attributes, content) => {
18
18
  }
19
19
  let i = 0;
20
20
  return (() => {
21
- let root_3ea7bdb36b1e42ed846a8dc5465fdb9527 = template_3ea7bdb36b1e42ed846a8dc5465fdb9528(), element_3ea7bdb36b1e42ed846a8dc5465fdb9529 = root_3ea7bdb36b1e42ed846a8dc5465fdb9527.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb952a = element_3ea7bdb36b1e42ed846a8dc5465fdb9529.firstElementChild, element_3ea7bdb36b1e42ed846a8dc5465fdb952b = element_3ea7bdb36b1e42ed846a8dc5465fdb952a.firstChild;
22
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb9529, 'class', '', () => state.load && 'loader--load');
23
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb9529, 'animationend', (e) => {
21
+ let root_69d8ea42df6d40bfb4950d47c33fd3632r = template_69d8ea42df6d40bfb4950d47c33fd3632s(), element_69d8ea42df6d40bfb4950d47c33fd3632t = root_69d8ea42df6d40bfb4950d47c33fd3632r.firstChild, element_69d8ea42df6d40bfb4950d47c33fd3632u = element_69d8ea42df6d40bfb4950d47c33fd3632t.firstElementChild, element_69d8ea42df6d40bfb4950d47c33fd3632v = element_69d8ea42df6d40bfb4950d47c33fd3632u.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3632w = { "class": "loader" }, attributes_69d8ea42df6d40bfb4950d47c33fd3632x = { "class": "loader" };
22
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3632t, 'class', () => state.load && 'loader--load', attributes_69d8ea42df6d40bfb4950d47c33fd3632w);
23
+ template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd3632t, 'animationend', (e) => {
24
24
  i++;
25
25
  if (e.animationName === 'move' && i > 1) {
26
26
  state.remove = true;
27
27
  }
28
28
  });
29
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb9529, omit(attributes, OMIT), { "class": "" });
30
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb952a, 'class', '', () => state.load && 'loader--load');
31
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952a, !content && {
29
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632t, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3632w);
30
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3632u, 'class', () => state.load && 'loader--load', attributes_69d8ea42df6d40bfb4950d47c33fd3632x);
31
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632u, !content && {
32
32
  onconnect: () => {
33
33
  state.load = true;
34
34
  }
35
- }, { "class": "" });
36
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952a, attributes.loader, { "class": "" });
37
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb952b, content && (() => {
38
- let root_3ea7bdb36b1e42ed846a8dc5465fdb9522 = template_3ea7bdb36b1e42ed846a8dc5465fdb9523(), element_3ea7bdb36b1e42ed846a8dc5465fdb9524 = root_3ea7bdb36b1e42ed846a8dc5465fdb9522.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb9525 = element_3ea7bdb36b1e42ed846a8dc5465fdb9524.firstElementChild, element_3ea7bdb36b1e42ed846a8dc5465fdb9526 = element_3ea7bdb36b1e42ed846a8dc5465fdb9525.firstChild;
39
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb9524, attributes['loader-content'], { "class": "loader-content" });
40
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb9525, attributes['loader-logo'], { "class": "--text-600", "style": "var(--color-grey-500);" });
41
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb9525, 'class', '', () => state.scale && 'loader-logo--scale');
42
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb9525, 'animationend', ({ animationName: name }) => {
35
+ }, attributes_69d8ea42df6d40bfb4950d47c33fd3632x);
36
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632u, attributes.loader, attributes_69d8ea42df6d40bfb4950d47c33fd3632x);
37
+ template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd3632v, content && (() => {
38
+ let root_69d8ea42df6d40bfb4950d47c33fd3632k = template_69d8ea42df6d40bfb4950d47c33fd3632l(), element_69d8ea42df6d40bfb4950d47c33fd3632m = root_69d8ea42df6d40bfb4950d47c33fd3632k.firstChild, element_69d8ea42df6d40bfb4950d47c33fd3632n = element_69d8ea42df6d40bfb4950d47c33fd3632m.firstElementChild, element_69d8ea42df6d40bfb4950d47c33fd3632o = element_69d8ea42df6d40bfb4950d47c33fd3632n.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3632p = { "class": "loader-content" }, attributes_69d8ea42df6d40bfb4950d47c33fd3632q = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
39
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632m, attributes['loader-content'], attributes_69d8ea42df6d40bfb4950d47c33fd3632p);
40
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3632n, attributes['loader-logo'], attributes_69d8ea42df6d40bfb4950d47c33fd3632q);
41
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3632n, 'class', () => state.scale && 'loader-logo--scale', attributes_69d8ea42df6d40bfb4950d47c33fd3632q);
42
+ template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd3632n, 'animationend', ({ animationName: name }) => {
43
43
  if (name === 'scale') {
44
44
  state.load = true;
45
45
  }
46
46
  });
47
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.onconnect(element_3ea7bdb36b1e42ed846a8dc5465fdb9525, () => {
47
+ template_69d8ea42df6d40bfb4950d47c33fd3631.onconnect(element_69d8ea42df6d40bfb4950d47c33fd3632n, () => {
48
48
  state.scale = true;
49
49
  });
50
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb9526, content);
51
- return root_3ea7bdb36b1e42ed846a8dc5465fdb9522;
50
+ template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd3632o, content);
51
+ return root_69d8ea42df6d40bfb4950d47c33fd3632k;
52
52
  })());
53
- return root_3ea7bdb36b1e42ed846a8dc5465fdb9527;
53
+ return root_69d8ea42df6d40bfb4950d47c33fd3632r;
54
54
  })();
55
55
  };
56
56
  });
@@ -1,10 +1,10 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_3ea7bdb36b1e42ed846a8dc5465fdb952d = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
3
+ const template_69d8ea42df6d40bfb4950d47c33fd3632z = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
4
4
  export default (attributes) => {
5
5
  return (() => {
6
- let root_3ea7bdb36b1e42ed846a8dc5465fdb952c = template_3ea7bdb36b1e42ed846a8dc5465fdb952d(), element_3ea7bdb36b1e42ed846a8dc5465fdb952e = root_3ea7bdb36b1e42ed846a8dc5465fdb952c.firstChild;
7
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952e, attributes, { "class": "--size-800", "style": "var(--color-border-500);" });
8
- return root_3ea7bdb36b1e42ed846a8dc5465fdb952c;
6
+ let root_69d8ea42df6d40bfb4950d47c33fd3632y = template_69d8ea42df6d40bfb4950d47c33fd3632z(), element_69d8ea42df6d40bfb4950d47c33fd36330 = root_69d8ea42df6d40bfb4950d47c33fd3632y.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd36331 = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36330, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36331);
8
+ return root_69d8ea42df6d40bfb4950d47c33fd3632y;
9
9
  })();
10
10
  };
@@ -1,8 +1,8 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb952g = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<input class='range --border-state --border-black' type='range' />`);
5
+ const template_69d8ea42df6d40bfb4950d47c33fd36333 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<input class='range --border-state --border-black' type='range' />`);
6
6
  export default function (attributes) {
7
7
  let { max, min } = attributes, state = attributes.state || reactive({
8
8
  active: false,
@@ -13,23 +13,23 @@ export default function (attributes) {
13
13
  state.value = Number(attributes.value);
14
14
  }
15
15
  return (() => {
16
- let root_3ea7bdb36b1e42ed846a8dc5465fdb952f = template_3ea7bdb36b1e42ed846a8dc5465fdb952g(), element_3ea7bdb36b1e42ed846a8dc5465fdb952h = root_3ea7bdb36b1e42ed846a8dc5465fdb952f.firstChild;
17
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, 'style', '', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
18
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, this?.attributes, { "class": "--border-black", "style": "" });
19
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, attributes, { "class": "--border-black", "style": "" });
20
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, 'class', '', () => state.active && '--active');
21
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.on(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, 'focusin', () => {
16
+ let root_69d8ea42df6d40bfb4950d47c33fd36332 = template_69d8ea42df6d40bfb4950d47c33fd36333(), element_69d8ea42df6d40bfb4950d47c33fd36334 = root_69d8ea42df6d40bfb4950d47c33fd36332.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd36335 = { "class": "range --border-state --border-black", "style": "" };
17
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36334, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_69d8ea42df6d40bfb4950d47c33fd36335);
18
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36334, this?.attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36335);
19
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36334, attributes, attributes_69d8ea42df6d40bfb4950d47c33fd36335);
20
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd36334, 'class', () => state.active && '--active', attributes_69d8ea42df6d40bfb4950d47c33fd36335);
21
+ template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd36334, 'focusin', () => {
22
22
  state.active = true;
23
23
  });
24
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.on(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, 'focusout', () => {
24
+ template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd36334, 'focusout', () => {
25
25
  state.active = false;
26
26
  });
27
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, 'input', (e) => {
27
+ template_69d8ea42df6d40bfb4950d47c33fd3631.delegate(element_69d8ea42df6d40bfb4950d47c33fd36334, 'input', (e) => {
28
28
  state.value = Number(e.target.value);
29
29
  });
30
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.onrender(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, form.input.onrender(state));
31
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperty(element_3ea7bdb36b1e42ed846a8dc5465fdb952h, 'value', root(() => attributes?.value || state.value || 0));
32
- return root_3ea7bdb36b1e42ed846a8dc5465fdb952f;
30
+ template_69d8ea42df6d40bfb4950d47c33fd3631.onrender(element_69d8ea42df6d40bfb4950d47c33fd36334, form.input.onrender(state));
31
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperty(element_69d8ea42df6d40bfb4950d47c33fd36334, 'value', root(() => attributes?.value || state.value || 0));
32
+ return root_69d8ea42df6d40bfb4950d47c33fd36332;
33
33
  })();
34
34
  }
35
35
  ;
@@ -1,4 +1,4 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
11
+ content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
17
- <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
17
+ <T extends template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
21
- (attributes: A, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>): ReturnType<(this: {
19
+ content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
21
+ (attributes: A, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
23
+ content?: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>) => template_69d8ea42df6d40bfb4950d47c33fd3631.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,9 +1,9 @@
1
- import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
1
+ import * as template_69d8ea42df6d40bfb4950d47c33fd3631 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_3ea7bdb36b1e42ed846a8dc5465fdb952j = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
6
+ const template_69d8ea42df6d40bfb4950d47c33fd36337 = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
7
  const OMIT = ['scrollbar', 'scrollbar-container-content'];
8
8
  let root = document.body, width;
9
9
  export default template.factory(function (attributes, content) {
@@ -12,12 +12,12 @@ export default template.factory(function (attributes, content) {
12
12
  translate: 0
13
13
  });
14
14
  return (() => {
15
- let root_3ea7bdb36b1e42ed846a8dc5465fdb952i = template_3ea7bdb36b1e42ed846a8dc5465fdb952j(), element_3ea7bdb36b1e42ed846a8dc5465fdb952k = root_3ea7bdb36b1e42ed846a8dc5465fdb952i.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb952l = element_3ea7bdb36b1e42ed846a8dc5465fdb952k.firstElementChild, element_3ea7bdb36b1e42ed846a8dc5465fdb952m = element_3ea7bdb36b1e42ed846a8dc5465fdb952l.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb952n = element_3ea7bdb36b1e42ed846a8dc5465fdb952l.nextElementSibling;
16
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952k, this?.attributes && omit(this.attributes, OMIT), { "class": "scrollbar-container" });
17
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952k, omit(attributes, OMIT), { "class": "scrollbar-container" });
18
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952l, this?.attributes?.['scrollbar-container-content'], { "class": "scrollbar-container-content" });
19
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952l, attributes['scrollbar-container-content'], { "class": "scrollbar-container-content" });
20
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.on(element_3ea7bdb36b1e42ed846a8dc5465fdb952l, 'scroll', function () {
15
+ let root_69d8ea42df6d40bfb4950d47c33fd36336 = template_69d8ea42df6d40bfb4950d47c33fd36337(), element_69d8ea42df6d40bfb4950d47c33fd36338 = root_69d8ea42df6d40bfb4950d47c33fd36336.firstChild, element_69d8ea42df6d40bfb4950d47c33fd36339 = element_69d8ea42df6d40bfb4950d47c33fd36338.firstElementChild, element_69d8ea42df6d40bfb4950d47c33fd3633a = element_69d8ea42df6d40bfb4950d47c33fd36339.firstChild, element_69d8ea42df6d40bfb4950d47c33fd3633b = element_69d8ea42df6d40bfb4950d47c33fd36339.nextElementSibling, attributes_69d8ea42df6d40bfb4950d47c33fd3633c = { "class": "scrollbar-container" }, attributes_69d8ea42df6d40bfb4950d47c33fd3633d = { "class": "scrollbar-container-content" }, attributes_69d8ea42df6d40bfb4950d47c33fd3633e = { "class": "scrollbar" };
16
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36338, this?.attributes && omit(this.attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3633c);
17
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36338, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3633c);
18
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36339, this?.attributes?.['scrollbar-container-content'], attributes_69d8ea42df6d40bfb4950d47c33fd3633d);
19
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd36339, attributes['scrollbar-container-content'], attributes_69d8ea42df6d40bfb4950d47c33fd3633d);
20
+ template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd36339, 'scroll', function () {
21
21
  if (width === undefined) {
22
22
  width = this.offsetWidth - this.clientWidth;
23
23
  if (width && width !== 17) {
@@ -27,14 +27,14 @@ export default template.factory(function (attributes, content) {
27
27
  state.height = (this.clientHeight / this.scrollHeight) * 100;
28
28
  state.translate = (this.scrollTop / this.clientHeight) * 100;
29
29
  });
30
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb952m, content);
31
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952n, this?.attributes?.scrollbar, { "class": "scrollbar" });
32
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb952n, attributes.scrollbar, { "class": "scrollbar" });
33
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb952n, 'class', '', () => state.height >= 100 && 'scrollbar--hidden');
34
- template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb952n, 'style', '', () => `
30
+ template_69d8ea42df6d40bfb4950d47c33fd3631.slot(element_69d8ea42df6d40bfb4950d47c33fd3633a, content);
31
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3633b, this?.attributes?.scrollbar, attributes_69d8ea42df6d40bfb4950d47c33fd3633e);
32
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3633b, attributes.scrollbar, attributes_69d8ea42df6d40bfb4950d47c33fd3633e);
33
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3633b, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_69d8ea42df6d40bfb4950d47c33fd3633e);
34
+ template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3633b, 'style', () => `
35
35
  --translate: translate3d(0, ${state.translate}%, 0);
36
36
  --height: ${state.height}%;
37
- `);
38
- return root_3ea7bdb36b1e42ed846a8dc5465fdb952i;
37
+ `, attributes_69d8ea42df6d40bfb4950d47c33fd3633e);
38
+ return root_69d8ea42df6d40bfb4950d47c33fd36336;
39
39
  })();
40
40
  });