@esportsplus/ui 0.51.6 → 0.51.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 (68) hide show
  1. package/.github/workflows/bump.yml +4 -1
  2. package/.github/workflows/publish.yml +4 -0
  3. package/build/components/accordion/index.d.ts +17 -16
  4. package/build/components/accordion/index.js +16 -16
  5. package/build/components/alert/index.d.ts +7 -7
  6. package/build/components/alert/index.js +42 -42
  7. package/build/components/back/index.d.ts +8 -8
  8. package/build/components/back/index.js +10 -10
  9. package/build/components/button/index.d.ts +22 -22
  10. package/build/components/button/index.js +23 -23
  11. package/build/components/checkbox/index.d.ts +1 -1
  12. package/build/components/checkbox/index.js +23 -23
  13. package/build/components/clipboard/onclick.d.ts +1 -1
  14. package/build/components/clipboard/onclick.js +14 -14
  15. package/build/components/clipboard/write.d.ts +1 -1
  16. package/build/components/counter/index.d.ts +5 -5
  17. package/build/components/counter/index.js +34 -34
  18. package/build/components/ellipsis/index.d.ts +1 -1
  19. package/build/components/ellipsis/index.js +5 -5
  20. package/build/components/form/action.d.ts +3 -3
  21. package/build/components/form/action.js +8 -8
  22. package/build/components/form/index.d.ts +2 -2
  23. package/build/components/form/input.d.ts +8 -6
  24. package/build/components/frame/index.d.ts +10 -10
  25. package/build/components/frame/index.js +1 -1
  26. package/build/components/highlight/index.d.ts +17 -16
  27. package/build/components/highlight/index.js +15 -15
  28. package/build/components/icon/index.d.ts +11 -11
  29. package/build/components/icon/index.js +7 -7
  30. package/build/components/input/index.d.ts +1 -1
  31. package/build/components/input/index.js +21 -21
  32. package/build/components/json/download.d.ts +1 -1
  33. package/build/components/loader/index.d.ts +17 -16
  34. package/build/components/loader/index.js +33 -33
  35. package/build/components/loading/index.d.ts +1 -1
  36. package/build/components/loading/index.js +5 -5
  37. package/build/components/overlay/index.d.ts +10 -10
  38. package/build/components/overlay/index.js +1 -1
  39. package/build/components/radio/index.js +1 -1
  40. package/build/components/range/index.d.ts +1 -1
  41. package/build/components/range/index.js +26 -26
  42. package/build/components/root/index.d.ts +1 -4
  43. package/build/components/root/onclick.d.ts +4 -4
  44. package/build/components/scrollbar/index.d.ts +12 -12
  45. package/build/components/scrollbar/index.js +24 -24
  46. package/build/components/select/index.d.ts +2 -2
  47. package/build/components/select/index.js +44 -44
  48. package/build/components/sidebar/index.d.ts +10 -10
  49. package/build/components/sidebar/index.js +1 -1
  50. package/build/components/site/index.d.ts +10 -10
  51. package/build/components/site/index.js +2 -2
  52. package/build/components/switch/index.js +1 -1
  53. package/build/components/template/index.d.ts +10 -9
  54. package/build/components/textarea/index.d.ts +1 -1
  55. package/build/components/textarea/index.js +21 -21
  56. package/build/components/tooltip/menu.d.ts +11 -12
  57. package/build/components/tooltip/menu.js +21 -21
  58. package/build/components/tooltip/onclick.d.ts +1131 -1131
  59. package/build/components/tooltip/onclick.js +16 -16
  60. package/build/components/tooltip/onhover.d.ts +17 -16
  61. package/build/components/tooltip/onhover.js +16 -16
  62. package/build/components/typewriter/index.d.ts +11 -11
  63. package/build/components/typewriter/index.js +15 -15
  64. package/build/themes/dark/alert.d.ts +1 -1
  65. package/package.json +8 -8
  66. package/pnpm-workspace.yaml +8 -0
  67. package/src/components/alert/index.ts +2 -2
  68. package/src/components/tooltip/onclick.ts +1 -1
@@ -1,43 +1,43 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
- import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
3
- import form from '../../components/form/index.js';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import * as reactivity_u0 from '@esportsplus/reactivity';
3
+ import form from '../form/index.js';
4
4
  import './scss/index.scss';
5
- const template_0ff113fe0a6246fbbfe92857b2a0303c1y = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<input class='input' />`);
6
- class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c1w extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
7
- #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
8
- #error = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL]('');
5
+ const template_0j57g2t2 = template_u1.template(`<input class='input' />`);
6
+ class ReactiveObject_0j57g2t0 extends reactivity_u0.ReactiveObject {
7
+ #active = this[reactivity_u0.SIGNAL](false);
8
+ #error = this[reactivity_u0.SIGNAL]('');
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get active() {
13
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
13
+ return reactivity_u0.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
16
+ reactivity_u0.write(this.#active, _v0);
17
17
  }
18
18
  get error() {
19
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#error);
19
+ return reactivity_u0.read(this.#error);
20
20
  }
21
21
  set error(_v1) {
22
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#error, _v1);
22
+ reactivity_u0.write(this.#error, _v1);
23
23
  }
24
24
  }
25
25
  export default function (attributes) {
26
- let state = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c1w();
26
+ let state = attributes.state || new ReactiveObject_0j57g2t0();
27
27
  return (() => {
28
- let root_0ff113fe0a6246fbbfe92857b2a0303c1x = template_0ff113fe0a6246fbbfe92857b2a0303c1y(), element_0ff113fe0a6246fbbfe92857b2a0303c1z = root_0ff113fe0a6246fbbfe92857b2a0303c1x.firstChild;
29
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c1z, this?.attributes);
30
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c1z, attributes);
31
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c1z, 'class', () => state.active && '--active');
32
- template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c1z, 'focusin', () => {
28
+ let root_0j57g2t1 = template_0j57g2t2(), element_0j57g2t3 = root_0j57g2t1.firstChild;
29
+ template_u1.setProperties(element_0j57g2t3, this?.attributes);
30
+ template_u1.setProperties(element_0j57g2t3, attributes);
31
+ template_u1.setList(element_0j57g2t3, 'class', () => state.active && '--active');
32
+ template_u1.on(element_0j57g2t3, 'focusin', () => {
33
33
  state.active = true;
34
34
  });
35
- template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c1z, 'focusout', () => {
35
+ template_u1.on(element_0j57g2t3, 'focusout', () => {
36
36
  state.active = false;
37
37
  });
38
- template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303c1z, form.input.onrender(state));
39
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c1z, 'type', (attributes.type || 'text'));
40
- return root_0ff113fe0a6246fbbfe92857b2a0303c1x;
38
+ template_u1.onrender(element_0j57g2t3, form.input.onrender(state));
39
+ template_u1.setProperty(element_0j57g2t3, 'type', (attributes.type || 'text'));
40
+ return root_0j57g2t1;
41
41
  })();
42
42
  }
43
43
  ;
@@ -1,2 +1,2 @@
1
- declare const _default: (content: any[] | Record<PropertyKey, any>, name: string) => void;
2
1
  export default _default;
2
+ declare function _default(content: any[] | Record<PropertyKey, any>, name: string): void;
@@ -1,21 +1,22 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import { type Attributes } from '@esportsplus/template';
2
3
  import './scss/index.scss';
3
4
  declare const _default: {
4
5
  (): ReturnType<(this: {
5
- attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
6
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
7
- }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
8
- <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
10
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
11
- }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
12
- <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
14
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
15
- }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
16
- (attributes: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes | undefined;
18
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
19
- }, attributes: Readonly<template_0ff113fe0a6246fbbfe92857b2a0303c1.Attributes>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
6
+ attributes?: Attributes | undefined;
7
+ content?: template_u1.Renderable<any>;
8
+ }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
9
+ <T extends Attributes>(attributes: T): ReturnType<(this: {
10
+ attributes?: Attributes | undefined;
11
+ content?: template_u1.Renderable<any>;
12
+ }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
13
+ <T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
14
+ attributes?: Attributes | undefined;
15
+ content?: template_u1.Renderable<any>;
16
+ }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
17
+ (attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
18
+ attributes?: Attributes | undefined;
19
+ content?: template_u1.Renderable<any>;
20
+ }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
20
21
  };
21
22
  export default _default;
@@ -1,78 +1,78 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
- import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import * as reactivity_u0 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
- import template from '../../components/template/index.js';
4
+ import template from '../template/index.js';
5
5
  import './scss/index.scss';
6
- const template_0ff113fe0a6246fbbfe92857b2a0303c22 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'>`);
7
- const template_0ff113fe0a6246fbbfe92857b2a0303c26 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='loader '><div class='loader '>`);
8
- class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c20 extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
9
- #load = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
10
- #remove = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
11
- #scale = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
6
+ const template_0bvfqbq2 = template_u1.template(`<div class='loader-content' ><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);' >`);
7
+ const template_0bvfqbq6 = template_u1.template(`<div class='loader '><div class='loader ' >`);
8
+ class ReactiveObject_0bvfqbq0 extends reactivity_u0.ReactiveObject {
9
+ #load = this[reactivity_u0.SIGNAL](false);
10
+ #remove = this[reactivity_u0.SIGNAL](false);
11
+ #scale = this[reactivity_u0.SIGNAL](false);
12
12
  constructor() {
13
13
  super(null);
14
14
  }
15
15
  get load() {
16
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#load);
16
+ return reactivity_u0.read(this.#load);
17
17
  }
18
18
  set load(_v0) {
19
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#load, _v0);
19
+ reactivity_u0.write(this.#load, _v0);
20
20
  }
21
21
  get remove() {
22
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#remove);
22
+ return reactivity_u0.read(this.#remove);
23
23
  }
24
24
  set remove(_v1) {
25
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#remove, _v1);
25
+ reactivity_u0.write(this.#remove, _v1);
26
26
  }
27
27
  get scale() {
28
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#scale);
28
+ return reactivity_u0.read(this.#scale);
29
29
  }
30
30
  set scale(_v2) {
31
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#scale, _v2);
31
+ reactivity_u0.write(this.#scale, _v2);
32
32
  }
33
33
  }
34
34
  const OMIT = ['loader-content', 'loader-logo'];
35
35
  export default template.factory((attributes, content) => {
36
- let state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c20();
36
+ let state = new ReactiveObject_0bvfqbq0();
37
37
  return () => {
38
38
  if (state.remove) {
39
39
  return;
40
40
  }
41
41
  let i = 0;
42
42
  return (() => {
43
- let root_0ff113fe0a6246fbbfe92857b2a0303c25 = template_0ff113fe0a6246fbbfe92857b2a0303c26(), element_0ff113fe0a6246fbbfe92857b2a0303c27 = root_0ff113fe0a6246fbbfe92857b2a0303c25.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c28 = element_0ff113fe0a6246fbbfe92857b2a0303c27.firstElementChild;
44
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c27, 'class', () => state.load && 'loader--load');
45
- template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c27, 'animationend', (e) => {
43
+ let root_0bvfqbq5 = template_0bvfqbq6(), element_0bvfqbq7 = root_0bvfqbq5.firstChild, element_0bvfqbq8 = element_0bvfqbq7.firstElementChild;
44
+ template_u1.setList(element_0bvfqbq7, 'class', () => state.load && 'loader--load');
45
+ template_u1.delegate(element_0bvfqbq7, 'animationend', (e) => {
46
46
  i++;
47
47
  if (e.animationName === 'move' && i > 1) {
48
48
  state.remove = true;
49
49
  }
50
50
  });
51
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c27, omit(attributes, OMIT));
52
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c28, 'class', () => state.load && 'loader--load');
53
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c28, !content && {
51
+ template_u1.setProperties(element_0bvfqbq7, omit(attributes, OMIT));
52
+ template_u1.setList(element_0bvfqbq8, 'class', () => state.load && 'loader--load');
53
+ template_u1.setProperties(element_0bvfqbq8, !content && {
54
54
  onconnect: () => {
55
55
  state.load = true;
56
56
  }
57
57
  });
58
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c28, attributes.loader);
59
- template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c28, content && (() => {
60
- let root_0ff113fe0a6246fbbfe92857b2a0303c21 = template_0ff113fe0a6246fbbfe92857b2a0303c22(), element_0ff113fe0a6246fbbfe92857b2a0303c23 = root_0ff113fe0a6246fbbfe92857b2a0303c21.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c24 = element_0ff113fe0a6246fbbfe92857b2a0303c23.firstElementChild;
61
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c23, attributes['loader-content']);
62
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c24, attributes['loader-logo']);
63
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c24, 'class', () => state.scale && 'loader-logo--scale');
64
- template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c24, 'animationend', ({ animationName: name }) => {
58
+ template_u1.setProperties(element_0bvfqbq8, attributes.loader);
59
+ template_u1.slot(element_0bvfqbq8, content && (() => {
60
+ let root_0bvfqbq1 = template_0bvfqbq2(), element_0bvfqbq3 = root_0bvfqbq1.firstChild, element_0bvfqbq4 = element_0bvfqbq3.firstElementChild;
61
+ template_u1.setProperties(element_0bvfqbq3, attributes['loader-content']);
62
+ template_u1.setProperties(element_0bvfqbq4, attributes['loader-logo']);
63
+ template_u1.setList(element_0bvfqbq4, 'class', () => state.scale && 'loader-logo--scale');
64
+ template_u1.delegate(element_0bvfqbq4, 'animationend', ({ animationName: name }) => {
65
65
  if (name === 'scale') {
66
66
  state.load = true;
67
67
  }
68
68
  });
69
- template_0ff113fe0a6246fbbfe92857b2a0303c1.onconnect(element_0ff113fe0a6246fbbfe92857b2a0303c24, () => {
69
+ template_u1.onconnect(element_0bvfqbq4, () => {
70
70
  state.scale = true;
71
71
  });
72
- template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c24, content, 1);
73
- return root_0ff113fe0a6246fbbfe92857b2a0303c21;
72
+ template_u1.slot(element_0bvfqbq4, content, 1);
73
+ return root_0bvfqbq1;
74
74
  })(), 1);
75
- return root_0ff113fe0a6246fbbfe92857b2a0303c25;
75
+ return root_0bvfqbq5;
76
76
  })();
77
77
  };
78
78
  });
@@ -1,4 +1,4 @@
1
1
  import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- declare const _default: (attributes?: Attributes) => DocumentFragment | Text;
4
3
  export default _default;
4
+ declare function _default(attributes?: Attributes): DocumentFragment | Text;
@@ -1,10 +1,10 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_0ff113fe0a6246fbbfe92857b2a0303c2a = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'>`);
3
+ const template_17hj0u91 = template_u1.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);' >`);
4
4
  export default (attributes) => {
5
5
  return (() => {
6
- let root_0ff113fe0a6246fbbfe92857b2a0303c29 = template_0ff113fe0a6246fbbfe92857b2a0303c2a(), element_0ff113fe0a6246fbbfe92857b2a0303c2b = root_0ff113fe0a6246fbbfe92857b2a0303c29.firstChild;
7
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2b, attributes);
8
- return root_0ff113fe0a6246fbbfe92857b2a0303c29;
6
+ let root_17hj0u90 = template_17hj0u91(), element_17hj0u92 = root_17hj0u90.firstChild;
7
+ template_u1.setProperties(element_17hj0u92, attributes);
8
+ return root_17hj0u90;
9
9
  })();
10
10
  };
@@ -1,20 +1,20 @@
1
1
  import './scss/index.scss';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
- attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
4
+ attributes?: import("../scrollbar/index.js").Attributes | undefined;
5
5
  content?: import("@esportsplus/template").Renderable<any>;
6
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
- <T extends import("../../components/scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
8
- attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
6
+ }, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
+ <T extends import("../scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
8
+ attributes?: import("../scrollbar/index.js").Attributes | undefined;
9
9
  content?: import("@esportsplus/template").Renderable<any>;
10
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
10
+ }, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
11
11
  <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
12
- attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
12
+ attributes?: import("../scrollbar/index.js").Attributes | undefined;
13
13
  content?: import("@esportsplus/template").Renderable<any>;
14
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
15
- (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
16
- attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
14
+ }, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
15
+ (attributes: import("../scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
16
+ attributes?: import("../scrollbar/index.js").Attributes | undefined;
17
17
  content?: import("@esportsplus/template").Renderable<any>;
18
- }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
18
+ }, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,4 +1,4 @@
1
- import scrollbar from '../../components/scrollbar/index.js';
1
+ import scrollbar from '../scrollbar/index.js';
2
2
  import './scss/index.scss';
3
3
  export default scrollbar.bind({
4
4
  attributes: {
@@ -1,3 +1,3 @@
1
- import { factory } from '../../components/checkbox/index.js';
1
+ import { factory } from '../checkbox/index.js';
2
2
  import './scss/index.scss';
3
3
  export default factory('radio');
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/template';
1
+ import { type Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  export default function (this: {
4
4
  attributes?: Attributes;
@@ -1,58 +1,58 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
- import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import * as reactivity_u0 from '@esportsplus/reactivity';
3
3
  import { root } from '@esportsplus/reactivity';
4
- import form from '../../components/form/index.js';
4
+ import form from '../form/index.js';
5
5
  import './scss/index.scss';
6
- const template_0ff113fe0a6246fbbfe92857b2a0303c2e = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<input class='range --border-state --border-black' type='range' />`);
7
- class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2c extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
8
- #active = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](false);
9
- #error = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL]('');
10
- #value = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
6
+ const template_0aka2e62 = template_u1.template(`<input class='range --border-state --border-black' type='range' />`);
7
+ class ReactiveObject_0aka2e60 extends reactivity_u0.ReactiveObject {
8
+ #active = this[reactivity_u0.SIGNAL](false);
9
+ #error = this[reactivity_u0.SIGNAL]('');
10
+ #value = this[reactivity_u0.SIGNAL](0);
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#active);
15
+ return reactivity_u0.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#active, _v0);
18
+ reactivity_u0.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#error);
21
+ return reactivity_u0.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#error, _v1);
24
+ reactivity_u0.write(this.#error, _v1);
25
25
  }
26
26
  get value() {
27
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#value);
27
+ return reactivity_u0.read(this.#value);
28
28
  }
29
29
  set value(_v2) {
30
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#value, _v2);
30
+ reactivity_u0.write(this.#value, _v2);
31
31
  }
32
32
  }
33
33
  export default function (attributes) {
34
- let { max, min } = attributes, state = attributes.state || new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2c();
34
+ let { max, min } = attributes, state = attributes.state || new ReactiveObject_0aka2e60();
35
35
  if (attributes?.value) {
36
36
  state.value = Number(attributes.value);
37
37
  }
38
38
  return (() => {
39
- let root_0ff113fe0a6246fbbfe92857b2a0303c2d = template_0ff113fe0a6246fbbfe92857b2a0303c2e(), element_0ff113fe0a6246fbbfe92857b2a0303c2f = root_0ff113fe0a6246fbbfe92857b2a0303c2d.firstChild;
40
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
41
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2f, this?.attributes);
42
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2f, attributes);
43
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'class', () => state.active && '--active');
44
- template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'focusin', () => {
39
+ let root_0aka2e61 = template_0aka2e62(), element_0aka2e63 = root_0aka2e61.firstChild;
40
+ template_u1.setList(element_0aka2e63, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
41
+ template_u1.setProperties(element_0aka2e63, this?.attributes);
42
+ template_u1.setProperties(element_0aka2e63, attributes);
43
+ template_u1.setList(element_0aka2e63, 'class', () => state.active && '--active');
44
+ template_u1.on(element_0aka2e63, 'focusin', () => {
45
45
  state.active = true;
46
46
  });
47
- template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'focusout', () => {
47
+ template_u1.on(element_0aka2e63, 'focusout', () => {
48
48
  state.active = false;
49
49
  });
50
- template_0ff113fe0a6246fbbfe92857b2a0303c1.delegate(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'input', (e) => {
50
+ template_u1.delegate(element_0aka2e63, 'input', (e) => {
51
51
  state.value = Number(e.target.value);
52
52
  });
53
- template_0ff113fe0a6246fbbfe92857b2a0303c1.onrender(element_0ff113fe0a6246fbbfe92857b2a0303c2f, form.input.onrender(state));
54
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperty(element_0ff113fe0a6246fbbfe92857b2a0303c2f, 'value', root(() => attributes?.value || state.value || 0));
55
- return root_0ff113fe0a6246fbbfe92857b2a0303c2d;
53
+ template_u1.onrender(element_0aka2e63, form.input.onrender(state));
54
+ template_u1.setProperty(element_0aka2e63, 'value', root(() => attributes?.value || state.value || 0));
55
+ return root_0aka2e61;
56
56
  })();
57
57
  }
58
58
  ;
@@ -1,10 +1,7 @@
1
1
  import onclick from './onclick.js';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
- onclick: {
5
- (): Promise<void>;
6
- push(fn: VoidFunction): void;
7
- };
4
+ onclick: typeof onclick;
8
5
  };
9
6
  export default _default;
10
7
  export { onclick };
@@ -1,5 +1,5 @@
1
- declare const onclick: {
2
- (): Promise<void>;
3
- push(fn: VoidFunction): void;
4
- };
1
+ declare function onclick(): Promise<void>;
2
+ declare namespace onclick {
3
+ var push: (fn: VoidFunction) => void;
4
+ }
5
5
  export default onclick;
@@ -1,5 +1,5 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
- import { Attributes } from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import { type Attributes } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  type A = Attributes & {
5
5
  scrollbar?: 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_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
11
+ content?: template_u1.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
17
- <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_u1.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
17
+ <T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
21
- (attributes: A, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>): ReturnType<(this: {
19
+ content?: template_u1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
21
+ (attributes: A, content: template_u1.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>;
23
+ content?: template_u1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,39 +1,39 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
- import * as reactivity_0ff113fe0a6246fbbfe92857b2a0303c0 from '@esportsplus/reactivity';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import * as reactivity_u0 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
- import template from '../../components/template/index.js';
4
+ import template from '../template/index.js';
5
5
  import './scss/index.scss';
6
- const template_0ff113fe0a6246fbbfe92857b2a0303c2i = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'></div><div class='scrollbar'>`);
7
- class ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2g extends reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.ReactiveObject {
8
- #height = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](100);
9
- #translate = this[reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.SIGNAL](0);
6
+ const template_1aruxaj2 = template_u1.template(`<div class='scrollbar-container' ><div class='scrollbar-container-content' ></div><div class='scrollbar' >`);
7
+ class ReactiveObject_1aruxaj0 extends reactivity_u0.ReactiveObject {
8
+ #height = this[reactivity_u0.SIGNAL](100);
9
+ #translate = this[reactivity_u0.SIGNAL](0);
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get height() {
14
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#height);
14
+ return reactivity_u0.read(this.#height);
15
15
  }
16
16
  set height(_v0) {
17
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#height, _v0);
17
+ reactivity_u0.write(this.#height, _v0);
18
18
  }
19
19
  get translate() {
20
- return reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.read(this.#translate);
20
+ return reactivity_u0.read(this.#translate);
21
21
  }
22
22
  set translate(_v1) {
23
- reactivity_0ff113fe0a6246fbbfe92857b2a0303c0.write(this.#translate, _v1);
23
+ reactivity_u0.write(this.#translate, _v1);
24
24
  }
25
25
  }
26
26
  const OMIT = ['scrollbar', 'scrollbar-container-content'];
27
27
  let root = document.body, width;
28
28
  export default template.factory(function (attributes, content) {
29
- let state = new ReactiveObject_0ff113fe0a6246fbbfe92857b2a0303c2g();
29
+ let state = new ReactiveObject_1aruxaj0();
30
30
  return (() => {
31
- let root_0ff113fe0a6246fbbfe92857b2a0303c2h = template_0ff113fe0a6246fbbfe92857b2a0303c2i(), element_0ff113fe0a6246fbbfe92857b2a0303c2j = root_0ff113fe0a6246fbbfe92857b2a0303c2h.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c2k = element_0ff113fe0a6246fbbfe92857b2a0303c2j.firstElementChild, element_0ff113fe0a6246fbbfe92857b2a0303c2l = element_0ff113fe0a6246fbbfe92857b2a0303c2k.nextElementSibling;
32
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2j, this?.attributes && omit(this.attributes, OMIT));
33
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2j, omit(attributes, OMIT));
34
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2k, this?.attributes?.['scrollbar-container-content']);
35
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2k, attributes['scrollbar-container-content']);
36
- template_0ff113fe0a6246fbbfe92857b2a0303c1.on(element_0ff113fe0a6246fbbfe92857b2a0303c2k, 'scroll', function () {
31
+ let root_1aruxaj1 = template_1aruxaj2(), element_1aruxaj3 = root_1aruxaj1.firstChild, element_1aruxaj4 = element_1aruxaj3.firstElementChild, element_1aruxaj5 = element_1aruxaj4.nextElementSibling;
32
+ template_u1.setProperties(element_1aruxaj3, this?.attributes && omit(this.attributes, OMIT));
33
+ template_u1.setProperties(element_1aruxaj3, omit(attributes, OMIT));
34
+ template_u1.setProperties(element_1aruxaj4, this?.attributes?.['scrollbar-container-content']);
35
+ template_u1.setProperties(element_1aruxaj4, attributes['scrollbar-container-content']);
36
+ template_u1.on(element_1aruxaj4, 'scroll', function () {
37
37
  if (width === undefined) {
38
38
  width = this.offsetWidth - this.clientWidth;
39
39
  if (width && width !== 17) {
@@ -43,14 +43,14 @@ export default template.factory(function (attributes, content) {
43
43
  state.height = (this.clientHeight / this.scrollHeight) * 100;
44
44
  state.translate = (this.scrollTop / this.clientHeight) * 100;
45
45
  });
46
- template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c2k, content, 1);
47
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2l, this?.attributes?.scrollbar);
48
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c2l, attributes.scrollbar);
49
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2l, 'class', () => state.height >= 100 && 'scrollbar--hidden');
50
- template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c2l, 'style', () => `
46
+ template_u1.slot(element_1aruxaj4, content, 1);
47
+ template_u1.setProperties(element_1aruxaj5, this?.attributes?.scrollbar);
48
+ template_u1.setProperties(element_1aruxaj5, attributes.scrollbar);
49
+ template_u1.setList(element_1aruxaj5, 'class', () => state.height >= 100 && 'scrollbar--hidden');
50
+ template_u1.setList(element_1aruxaj5, 'style', () => `
51
51
  --translate: translate3d(0, ${state.translate}%, 0);
52
52
  --height: ${state.height}%;
53
53
  `);
54
- return root_0ff113fe0a6246fbbfe92857b2a0303c2h;
54
+ return root_1aruxaj1;
55
55
  })();
56
56
  });
@@ -1,5 +1,5 @@
1
- import { Attributes, Renderable } from '@esportsplus/template';
2
- import { Attributes as Attr } from '../../components/scrollbar/index.js';
1
+ import { type Attributes, type Renderable } from '@esportsplus/template';
2
+ import { Attributes as Attr } from '../scrollbar/index.js';
3
3
  import './scss/index.scss';
4
4
  type A = {
5
5
  arrow?: Attributes;