@esportsplus/ui 0.51.5 → 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 (76) 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 +18 -18
  5. package/build/components/alert/index.d.ts +8 -8
  6. package/build/components/alert/index.js +43 -44
  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 +3 -3
  12. package/build/components/checkbox/index.js +23 -24
  13. package/build/components/clipboard/index.d.ts +40 -30
  14. package/build/components/clipboard/onclick.d.ts +1 -1
  15. package/build/components/clipboard/onclick.js +14 -14
  16. package/build/components/clipboard/write.d.ts +1 -1
  17. package/build/components/counter/index.d.ts +5 -5
  18. package/build/components/counter/index.js +35 -35
  19. package/build/components/ellipsis/index.d.ts +1 -1
  20. package/build/components/ellipsis/index.js +5 -5
  21. package/build/components/form/action.d.ts +3 -3
  22. package/build/components/form/action.js +8 -8
  23. package/build/components/form/index.d.ts +3 -3
  24. package/build/components/form/input.d.ts +8 -6
  25. package/build/components/frame/index.d.ts +10 -10
  26. package/build/components/frame/index.js +1 -1
  27. package/build/components/highlight/index.d.ts +17 -16
  28. package/build/components/highlight/index.js +16 -16
  29. package/build/components/icon/index.d.ts +11 -11
  30. package/build/components/icon/index.js +11 -9
  31. package/build/components/input/index.d.ts +2 -2
  32. package/build/components/input/index.js +21 -21
  33. package/build/components/json/download.d.ts +1 -1
  34. package/build/components/loader/index.d.ts +17 -16
  35. package/build/components/loader/index.js +35 -35
  36. package/build/components/loading/index.d.ts +1 -1
  37. package/build/components/loading/index.js +5 -5
  38. package/build/components/overlay/index.d.ts +10 -10
  39. package/build/components/overlay/index.js +1 -1
  40. package/build/components/radio/index.d.ts +1 -1
  41. package/build/components/radio/index.js +1 -1
  42. package/build/components/range/index.d.ts +2 -2
  43. package/build/components/range/index.js +26 -26
  44. package/build/components/root/index.d.ts +1 -4
  45. package/build/components/root/onclick.d.ts +4 -4
  46. package/build/components/scrollbar/index.d.ts +12 -12
  47. package/build/components/scrollbar/index.js +25 -25
  48. package/build/components/select/index.d.ts +2 -2
  49. package/build/components/select/index.js +45 -45
  50. package/build/components/sidebar/index.d.ts +10 -10
  51. package/build/components/sidebar/index.js +1 -1
  52. package/build/components/site/index.d.ts +10 -10
  53. package/build/components/site/index.js +2 -2
  54. package/build/components/switch/index.d.ts +1 -1
  55. package/build/components/switch/index.js +1 -1
  56. package/build/components/template/index.d.ts +10 -9
  57. package/build/components/textarea/index.d.ts +2 -2
  58. package/build/components/textarea/index.js +21 -21
  59. package/build/components/tooltip/index.d.ts +80 -60
  60. package/build/components/tooltip/menu.d.ts +11 -12
  61. package/build/components/tooltip/menu.js +22 -22
  62. package/build/components/tooltip/onclick.d.ts +1131 -1121
  63. package/build/components/tooltip/onclick.js +16 -16
  64. package/build/components/tooltip/onhover.d.ts +17 -16
  65. package/build/components/tooltip/onhover.js +16 -16
  66. package/build/components/typewriter/index.d.ts +11 -11
  67. package/build/components/typewriter/index.js +15 -15
  68. package/build/themes/dark/alert.d.ts +2 -2
  69. package/build/themes/dark/input.d.ts +5 -4
  70. package/build/themes/dark/select.d.ts +40 -30
  71. package/build/themes/dark/textarea.d.ts +5 -4
  72. package/package.json +8 -8
  73. package/pnpm-workspace.yaml +25 -0
  74. package/src/components/alert/index.ts +4 -6
  75. package/src/components/icon/index.ts +7 -3
  76. package/src/components/tooltip/onclick.ts +1 -1
@@ -1,41 +1,41 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import * as reactivity_u0 from '@esportsplus/reactivity';
3
3
  import { effect } from '@esportsplus/reactivity';
4
4
  import { omit } from '@esportsplus/utilities';
5
5
  import './scss/index.scss';
6
- const template_eea410626b3047bfa8387f56255749631p = template_eea410626b3047bfa8387f56255749631.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
7
- const template_eea410626b3047bfa8387f56255749631s = template_eea410626b3047bfa8387f56255749631.template(`<span><!--$--></span>`);
8
- const template_eea410626b3047bfa8387f56255749631v = template_eea410626b3047bfa8387f56255749631.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
9
- const template_eea410626b3047bfa8387f562557496320 = template_eea410626b3047bfa8387f56255749631.template(`<div class='counter'><!--$--></div>`);
10
- class ReactiveObject_eea410626b3047bfa8387f56255749631m extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
11
- #value = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](-1);
6
+ const template_00nd5up3 = template_u1.template(`<span class='counter-character counter-character--symbol'>`);
7
+ const template_00nd5up6 = template_u1.template(`<span>`);
8
+ const template_00nd5up9 = template_u1.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0`);
9
+ const template_00nd5upd = template_u1.template(`<div class='counter' >`);
10
+ class ReactiveObject_00nd5up0 extends reactivity_u0.ReactiveObject {
11
+ #value = this[reactivity_u0.SIGNAL](-1);
12
12
  constructor() {
13
13
  super(null);
14
14
  }
15
15
  get value() {
16
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#value);
16
+ return reactivity_u0.read(this.#value);
17
17
  }
18
18
  set value(_v0) {
19
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#value, _v0);
19
+ reactivity_u0.write(this.#value, _v0);
20
20
  }
21
21
  }
22
- class ReactiveObject_eea410626b3047bfa8387f56255749631n extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
23
- #length = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](0);
22
+ class ReactiveObject_00nd5up1 extends reactivity_u0.ReactiveObject {
23
+ #length = this[reactivity_u0.SIGNAL](0);
24
24
  #test;
25
25
  #render;
26
26
  constructor(_p0, _p1) {
27
27
  super(null);
28
- this.#test = this[reactivity_eea410626b3047bfa8387f56255749630.COMPUTED](_p0);
29
- this.#render = this[reactivity_eea410626b3047bfa8387f56255749630.REACTIVE_ARRAY](_p1);
28
+ this.#test = this[reactivity_u0.COMPUTED](_p0);
29
+ this.#render = this[reactivity_u0.REACTIVE_ARRAY](_p1);
30
30
  }
31
31
  get length() {
32
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#length);
32
+ return reactivity_u0.read(this.#length);
33
33
  }
34
34
  set length(_v0) {
35
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#length, _v0);
35
+ reactivity_u0.write(this.#length, _v0);
36
36
  }
37
37
  get test() {
38
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#test);
38
+ return reactivity_u0.read(this.#test);
39
39
  }
40
40
  get render() {
41
41
  return this.#render;
@@ -44,12 +44,12 @@ class ReactiveObject_eea410626b3047bfa8387f56255749631n extends reactivity_eea41
44
44
  const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
45
45
  let formatters = {};
46
46
  export default (attributes) => {
47
- let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_eea410626b3047bfa8387f56255749631m(), formatter = currency === 'IGNORE'
47
+ let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_00nd5up0(), formatter = currency === 'IGNORE'
48
48
  ? undefined
49
49
  : formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
50
50
  style: 'currency',
51
51
  currency: currency || 'USD'
52
- }), rendering = true, state = new ReactiveObject_eea410626b3047bfa8387f56255749631n(() => 'sds', []), render = new reactivity_eea410626b3047bfa8387f56255749630.ReactiveArray();
52
+ }), rendering = true, state = new ReactiveObject_00nd5up1(() => 'sds', []), render = new reactivity_u0.ReactiveArray();
53
53
  decimals ??= 2;
54
54
  effect(() => {
55
55
  if (api.value !== -1) {
@@ -84,33 +84,33 @@ export default (attributes) => {
84
84
  }
85
85
  });
86
86
  return (() => {
87
- let root_eea410626b3047bfa8387f56255749631z = template_eea410626b3047bfa8387f562557496320(), element_eea410626b3047bfa8387f562557496321 = root_eea410626b3047bfa8387f56255749631z.firstChild, element_eea410626b3047bfa8387f562557496322 = element_eea410626b3047bfa8387f562557496321.firstChild, attributes_eea410626b3047bfa8387f562557496323 = { "class": " counter" };
88
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496321, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f562557496323);
89
- new template_eea410626b3047bfa8387f56255749631.EffectSlot(element_eea410626b3047bfa8387f562557496322, () => {
87
+ let root_00nd5upc = template_00nd5upd(), element_00nd5upe = root_00nd5upc.firstChild;
88
+ template_u1.setProperties(element_00nd5upe, omit(attributes, OMIT));
89
+ new template_u1.EffectSlot(element_00nd5upe, () => {
90
90
  let n = state.length;
91
91
  if (n === 0) {
92
92
  return '';
93
93
  }
94
- return new template_eea410626b3047bfa8387f56255749631.ArraySlot(render, function (value) {
94
+ return new template_u1.ArraySlot(render, function (value) {
95
95
  if (isNaN(parseInt(value, 10))) {
96
96
  return (() => {
97
- let root_eea410626b3047bfa8387f56255749631o = template_eea410626b3047bfa8387f56255749631p(), element_eea410626b3047bfa8387f56255749631q = root_eea410626b3047bfa8387f56255749631o.firstChild.firstChild;
98
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749631q, value);
99
- return root_eea410626b3047bfa8387f56255749631o;
97
+ let root_00nd5up2 = template_00nd5up3(), element_00nd5up4 = root_00nd5up2.firstChild;
98
+ template_u1.slot(element_00nd5up4, value, 1);
99
+ return root_00nd5up2;
100
100
  })();
101
101
  }
102
102
  return (() => {
103
- let root_eea410626b3047bfa8387f56255749631u = template_eea410626b3047bfa8387f56255749631v(), element_eea410626b3047bfa8387f56255749631w = root_eea410626b3047bfa8387f56255749631u.firstChild.firstElementChild, element_eea410626b3047bfa8387f56255749631x = element_eea410626b3047bfa8387f56255749631w.firstChild.nextSibling, attributes_eea410626b3047bfa8387f56255749631y = { "class": " counter-character-track", "style": " " };
104
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749631w, 'style', `--value: ${value}`, attributes_eea410626b3047bfa8387f56255749631y);
105
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749631x, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
- let root_eea410626b3047bfa8387f56255749631r = template_eea410626b3047bfa8387f56255749631s(), element_eea410626b3047bfa8387f56255749631t = root_eea410626b3047bfa8387f56255749631r.firstChild.firstChild;
107
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749631t, value);
108
- return root_eea410626b3047bfa8387f56255749631r;
103
+ let root_00nd5up8 = template_00nd5up9(), element_00nd5upa = root_00nd5up8.firstChild.firstElementChild, element_00nd5upb = element_00nd5upa.firstChild.nextSibling;
104
+ template_u1.setList(element_00nd5upa, 'style', `--value: ${value}`);
105
+ template_u1.slot(element_00nd5upb, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
+ let root_00nd5up5 = template_00nd5up6(), element_00nd5up7 = root_00nd5up5.firstChild;
107
+ template_u1.slot(element_00nd5up7, value, 1);
108
+ return root_00nd5up5;
109
109
  }));
110
- return root_eea410626b3047bfa8387f56255749631u;
110
+ return root_00nd5up8;
111
111
  })();
112
112
  });
113
- });
114
- return root_eea410626b3047bfa8387f56255749631z;
113
+ }, 1);
114
+ return root_00nd5upc;
115
115
  })();
116
116
  };
@@ -1,4 +1,4 @@
1
1
  import { Attributes } from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- declare const _default: (attributes?: Attributes) => DocumentFragment;
4
3
  export default _default;
4
+ declare function _default(attributes?: Attributes): DocumentFragment | Text;
@@ -1,8 +1,8 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_eea410626b3047bfa8387f562557496325 = template_eea410626b3047bfa8387f56255749631.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
3
+ const template_0bfeb8u1 = template_u1.template(`<div class='ellipsis' ><span></span><span></span><span>`);
4
4
  export default (attributes) => {
5
- let root_eea410626b3047bfa8387f562557496324 = template_eea410626b3047bfa8387f562557496325(), element_eea410626b3047bfa8387f562557496326 = root_eea410626b3047bfa8387f562557496324.firstChild, attributes_eea410626b3047bfa8387f562557496327 = { "class": " ellipsis" };
6
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496326, attributes, attributes_eea410626b3047bfa8387f562557496327);
7
- return root_eea410626b3047bfa8387f562557496324;
5
+ let root_0bfeb8u0 = template_0bfeb8u1(), element_0bfeb8u2 = root_0bfeb8u0.firstChild;
6
+ template_u1.setProperties(element_0bfeb8u2, attributes);
7
+ return root_0bfeb8u0;
8
8
  };
@@ -3,7 +3,8 @@ import { Attributes, Renderable } from '@esportsplus/template';
3
3
  type Errors = {
4
4
  errors: Response<unknown>['errors'];
5
5
  };
6
- declare const _default: <T extends Record<string, any>>(attributes: {
6
+ export default _default;
7
+ declare function _default<T extends Record<string, any>>(attributes: {
7
8
  action: (data: {
8
9
  input: T;
9
10
  response: typeof response;
@@ -11,5 +12,4 @@ declare const _default: <T extends Record<string, any>>(attributes: {
11
12
  state?: {
12
13
  processing: boolean;
13
14
  };
14
- } & Attributes, content: Renderable<any>) => DocumentFragment;
15
- export default _default;
15
+ } & Attributes, content: Renderable<any>): DocumentFragment | Text;
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
+ import * as template_u1 from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_eea410626b3047bfa8387f562557496329 = template_eea410626b3047bfa8387f56255749631.template(`<form class='form'><!--$--></form>`);
5
+ const template_1ajnoyj1 = template_u1.template(`<form class='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_eea410626b3047bfa8387f562557496328 = template_eea410626b3047bfa8387f562557496329(), element_eea410626b3047bfa8387f56255749632a = root_eea410626b3047bfa8387f562557496328.firstChild, element_eea410626b3047bfa8387f56255749632b = element_eea410626b3047bfa8387f56255749632a.firstChild, attributes_eea410626b3047bfa8387f56255749632c = { "class": " form" };
33
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749632a, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749632c);
34
- template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f56255749632a, 'click', function (event) {
32
+ let root_1ajnoyj0 = template_1ajnoyj1(), element_1ajnoyj2 = root_1ajnoyj0.firstChild;
33
+ template_u1.setProperties(element_1ajnoyj2, omit(attributes, OMIT));
34
+ template_u1.delegate(element_1ajnoyj2, '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_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f56255749632a, 'submit', async function (event) {
42
+ template_u1.on(element_1ajnoyj2, '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_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749632b, content);
63
- return root_eea410626b3047bfa8387f562557496328;
62
+ template_u1.slot(element_1ajnoyj2, content, 1);
63
+ return root_1ajnoyj0;
64
64
  })();
65
65
  };
@@ -5,14 +5,14 @@ declare const _default: {
5
5
  input: T;
6
6
  response: typeof import("@esportsplus/action").default;
7
7
  }) => (Promise<{
8
- errors: import("@esportsplus/action").Response<unknown>["errors"];
8
+ errors: import("@esportsplus/action").Response<unknown>['errors'];
9
9
  }> | {
10
- errors: import("@esportsplus/action").Response<unknown>["errors"];
10
+ errors: import("@esportsplus/action").Response<unknown>['errors'];
11
11
  });
12
12
  state?: {
13
13
  processing: boolean;
14
14
  };
15
- } & import("@esportsplus/template").Attributes, content: import("@esportsplus/template").Renderable<any>) => DocumentFragment;
15
+ } & import("@esportsplus/template").Attributes, content: import("@esportsplus/template").Renderable<any>) => DocumentFragment | Text;
16
16
  input: {
17
17
  get: (element?: import("@esportsplus/template").Element) => {
18
18
  error: string;
@@ -1,10 +1,12 @@
1
1
  import { Element } from '@esportsplus/template';
2
+ declare const get: (element?: Element) => {
3
+ error: string;
4
+ } | undefined;
5
+ declare const onrender: (reactive: {
6
+ error: string;
7
+ }) => (element: Element) => void;
2
8
  declare const _default: {
3
- get: (element?: Element) => {
4
- error: string;
5
- } | undefined;
6
- onrender: (reactive: {
7
- error: string;
8
- }) => (element: Element) => void;
9
+ get: typeof get;
10
+ onrender: typeof onrender;
9
11
  };
10
12
  export default _default;
@@ -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,21 +1,22 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import { Attributes } from '@esportsplus/template';
2
3
  import './scss/index.scss';
3
4
  declare const _default: {
4
5
  (): ReturnType<(this: {
5
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
6
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
7
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
8
- <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
10
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
11
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
12
- <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
14
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
15
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
16
- (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
18
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
19
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.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,19 +1,19 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 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_eea410626b3047bfa8387f56255749632f = template_eea410626b3047bfa8387f56255749631.template(`<div class='highlight'><!--$--></div>`);
7
- class ReactiveObject_eea410626b3047bfa8387f56255749632d extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
- #highlight = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](0);
6
+ const template_0k38r592 = template_u1.template(`<div class='highlight' >`);
7
+ class ReactiveObject_0k38r590 extends reactivity_u0.ReactiveObject {
8
+ #highlight = this[reactivity_u0.SIGNAL](0);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get highlight() {
13
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#highlight);
13
+ return reactivity_u0.read(this.#highlight);
14
14
  }
15
15
  set highlight(_v0) {
16
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#highlight, _v0);
16
+ reactivity_u0.write(this.#highlight, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['background'];
@@ -38,19 +38,19 @@ export default template.factory((attributes, content) => {
38
38
  }
39
39
  }, { threshold: 1 });
40
40
  }
41
- let state = new ReactiveObject_eea410626b3047bfa8387f56255749632d();
41
+ let state = new ReactiveObject_0k38r590();
42
42
  return (() => {
43
- let root_eea410626b3047bfa8387f56255749632e = template_eea410626b3047bfa8387f56255749632f(), element_eea410626b3047bfa8387f56255749632g = root_eea410626b3047bfa8387f56255749632e.firstChild, element_eea410626b3047bfa8387f56255749632h = element_eea410626b3047bfa8387f56255749632g.firstChild, attributes_eea410626b3047bfa8387f56255749632i = { "class": " highlight" };
44
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749632g, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749632i);
45
- template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f56255749632g, (element) => {
43
+ let root_0k38r591 = template_0k38r592(), element_0k38r593 = root_0k38r591.firstChild;
44
+ template_u1.setProperties(element_0k38r593, omit(attributes, OMIT));
45
+ template_u1.onrender(element_0k38r593, (element) => {
46
46
  element[key] = state;
47
47
  observer.observe(element);
48
48
  });
49
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749632g, 'style', [
49
+ template_u1.setList(element_0k38r593, 'style', [
50
50
  () => `--highlight: ${state.highlight}`,
51
51
  `--background: ${attributes.background}`,
52
- ], attributes_eea410626b3047bfa8387f56255749632i);
53
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749632h, content);
54
- return root_eea410626b3047bfa8387f56255749632e;
52
+ ]);
53
+ template_u1.slot(element_0k38r593, content, 1);
54
+ return root_0k38r591;
55
55
  })();
56
56
  });
@@ -1,21 +1,21 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
5
+ attributes?: template_u1.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: string) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
8
- <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
7
+ }, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
8
+ <T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_u1.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: string) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
11
+ }, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
13
+ attributes?: template_u1.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: string) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
16
- (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
15
+ }, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
16
+ (attributes: template_u1.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_u1.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: string) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
19
+ }, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,15 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import { svg } from '@esportsplus/template';
3
- import template from '../../components/template/index.js';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import template from '../template/index.js';
4
3
  import './scss/index.scss';
5
- const template_eea410626b3047bfa8387f56255749632k = template_eea410626b3047bfa8387f56255749631.template(`<div class='icon'><!--$--></div>`);
6
- export default template.factory((attributes, icon) => {
4
+ const template_1lt0nhw1 = template_u1.template(`<div class='icon' ><svg><use href='' />`);
5
+ export default template.factory((attributes, href) => {
6
+ if (href[0] !== '#') {
7
+ href = '#' + href;
8
+ }
7
9
  return (() => {
8
- let root_eea410626b3047bfa8387f56255749632j = template_eea410626b3047bfa8387f56255749632k(), element_eea410626b3047bfa8387f56255749632l = root_eea410626b3047bfa8387f56255749632j.firstChild, element_eea410626b3047bfa8387f56255749632m = element_eea410626b3047bfa8387f56255749632l.firstChild, attributes_eea410626b3047bfa8387f56255749632n = { "class": " icon" };
9
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749632l, attributes, attributes_eea410626b3047bfa8387f56255749632n);
10
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749632m, svg.sprite(icon));
11
- return root_eea410626b3047bfa8387f56255749632j;
10
+ let root_1lt0nhw0 = template_1lt0nhw1(), element_1lt0nhw2 = root_1lt0nhw0.firstChild, element_1lt0nhw3 = element_1lt0nhw2.firstElementChild.firstElementChild;
11
+ template_u1.setProperties(element_1lt0nhw2, attributes);
12
+ template_u1.setProperty(element_1lt0nhw3, 'href', href);
13
+ return root_1lt0nhw0;
12
14
  })();
13
15
  });
@@ -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;
@@ -7,4 +7,4 @@ export default function (this: {
7
7
  active: boolean;
8
8
  error: string;
9
9
  };
10
- }): DocumentFragment;
10
+ }): DocumentFragment | Text;
@@ -1,43 +1,43 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import * as reactivity_eea410626b3047bfa8387f56255749630 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_eea410626b3047bfa8387f56255749632q = template_eea410626b3047bfa8387f56255749631.template(`<input class='input' />`);
6
- class ReactiveObject_eea410626b3047bfa8387f56255749632o extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
7
- #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
8
- #error = this[reactivity_eea410626b3047bfa8387f56255749630.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_eea410626b3047bfa8387f56255749630.read(this.#active);
13
+ return reactivity_u0.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
16
+ reactivity_u0.write(this.#active, _v0);
17
17
  }
18
18
  get error() {
19
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
19
+ return reactivity_u0.read(this.#error);
20
20
  }
21
21
  set error(_v1) {
22
- reactivity_eea410626b3047bfa8387f56255749630.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_eea410626b3047bfa8387f56255749632o();
26
+ let state = attributes.state || new ReactiveObject_0j57g2t0();
27
27
  return (() => {
28
- let root_eea410626b3047bfa8387f56255749632p = template_eea410626b3047bfa8387f56255749632q(), element_eea410626b3047bfa8387f56255749632r = root_eea410626b3047bfa8387f56255749632p.firstChild, attributes_eea410626b3047bfa8387f56255749632s = { "class": " input" };
29
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749632r, this?.attributes, attributes_eea410626b3047bfa8387f56255749632s);
30
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749632r, attributes, attributes_eea410626b3047bfa8387f56255749632s);
31
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749632r, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f56255749632s);
32
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f56255749632r, '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_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f56255749632r, 'focusout', () => {
35
+ template_u1.on(element_0j57g2t3, 'focusout', () => {
36
36
  state.active = false;
37
37
  });
38
- template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f56255749632r, form.input.onrender(state));
39
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f56255749632r, 'type', (attributes.type || 'text'));
40
- return root_eea410626b3047bfa8387f56255749632p;
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_eea410626b3047bfa8387f56255749631 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_eea410626b3047bfa8387f56255749631.Attributes | undefined;
6
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
7
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
8
- <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
10
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
11
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
12
- <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
14
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
15
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
16
- (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
18
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
19
- }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.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;