@esportsplus/ui 0.46.0 → 0.48.0

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 (75) hide show
  1. package/.github/workflows/bump.yml +2 -2
  2. package/.github/workflows/dependabot.yml +1 -1
  3. package/.github/workflows/publish.yml +3 -3
  4. package/README.md +287 -0
  5. package/build/components/accordion/index.d.ts +16 -16
  6. package/build/components/accordion/index.js +15 -17
  7. package/build/components/alert/index.d.ts +1 -1
  8. package/build/components/alert/index.js +45 -51
  9. package/build/components/back/index.d.ts +8 -7
  10. package/build/components/back/index.js +11 -11
  11. package/build/components/button/index.d.ts +21 -20
  12. package/build/components/button/index.js +32 -23
  13. package/build/components/checkbox/index.d.ts +3 -3
  14. package/build/components/checkbox/index.js +18 -21
  15. package/build/components/clipboard/index.d.ts +90 -70
  16. package/build/components/clipboard/onclick.d.ts +1 -1
  17. package/build/components/clipboard/onclick.js +18 -18
  18. package/build/components/counter/index.d.ts +2 -2
  19. package/build/components/counter/index.js +37 -32
  20. package/build/components/ellipsis/index.d.ts +1 -1
  21. package/build/components/ellipsis/index.js +7 -8
  22. package/build/components/form/action.d.ts +1 -1
  23. package/build/components/form/action.js +13 -15
  24. package/build/components/form/index.d.ts +1 -1
  25. package/build/components/highlight/index.d.ts +16 -16
  26. package/build/components/highlight/index.js +13 -15
  27. package/build/components/icon/index.d.ts +11 -10
  28. package/build/components/icon/index.js +9 -6
  29. package/build/components/input/index.d.ts +2 -2
  30. package/build/components/input/index.js +18 -18
  31. package/build/components/loader/index.d.ts +16 -16
  32. package/build/components/loader/index.js +41 -45
  33. package/build/components/loading/index.d.ts +1 -1
  34. package/build/components/loading/index.js +9 -9
  35. package/build/components/radio/index.d.ts +1 -1
  36. package/build/components/range/index.d.ts +2 -2
  37. package/build/components/range/index.js +22 -22
  38. package/build/components/scrollbar/index.d.ts +12 -11
  39. package/build/components/scrollbar/index.js +22 -33
  40. package/build/components/select/index.d.ts +1 -1
  41. package/build/components/select/index.js +86 -80
  42. package/build/components/switch/index.d.ts +1 -1
  43. package/build/components/textarea/index.d.ts +2 -2
  44. package/build/components/textarea/index.js +17 -18
  45. package/build/components/tooltip/index.d.ts +180 -140
  46. package/build/components/tooltip/menu.d.ts +12 -11
  47. package/build/components/tooltip/menu.js +33 -33
  48. package/build/components/tooltip/onclick.d.ts +1121 -1100
  49. package/build/components/tooltip/onclick.js +13 -15
  50. package/build/components/tooltip/onhover.d.ts +16 -16
  51. package/build/components/tooltip/onhover.js +15 -17
  52. package/build/components/typewriter/index.d.ts +11 -10
  53. package/build/components/typewriter/index.js +12 -11
  54. package/build/themes/dark/alert.d.ts +1 -1
  55. package/build/themes/dark/input.d.ts +10 -8
  56. package/build/themes/dark/select.d.ts +90 -70
  57. package/build/themes/dark/textarea.d.ts +10 -8
  58. package/package.json +17 -14
  59. package/src/components/accordion/index.ts +1 -2
  60. package/src/components/alert/index.ts +1 -2
  61. package/src/components/button/index.ts +22 -15
  62. package/src/components/checkbox/index.ts +1 -2
  63. package/src/components/clipboard/onclick.ts +1 -2
  64. package/src/components/counter/index.ts +7 -8
  65. package/src/components/highlight/index.ts +1 -2
  66. package/src/components/input/index.ts +1 -2
  67. package/src/components/loader/index.ts +1 -2
  68. package/src/components/range/index.ts +1 -2
  69. package/src/components/scrollbar/index.ts +1 -2
  70. package/src/components/select/index.ts +14 -3
  71. package/src/components/textarea/index.ts +1 -2
  72. package/src/components/tooltip/onclick.ts +1 -2
  73. package/src/components/tooltip/onhover.ts +1 -2
  74. package/src/components/typewriter/index.ts +1 -2
  75. package/tsconfig.json +6 -1
@@ -1,8 +1,10 @@
1
- import { reactive } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
1
+ import * as template_ed8f776bb07a460eadcbcfe445975fdf1 from '@esportsplus/template';
2
+ import { reactive } from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import { root } from '@esportsplus/ui';
5
5
  import template from '../../components/template/index.js';
6
+ const template_ed8f776bb07a460eadcbcfe445975fdf3g = template_ed8f776bb07a460eadcbcfe445975fdf1.template(`<div
7
+ class='tooltip'><!--$--></div>`);
6
8
  const OMIT = ['state', 'toggle'];
7
9
  let parent = null, queue = [], running = false, scheduled = false;
8
10
  function frame() {
@@ -25,13 +27,11 @@ function frame() {
25
27
  }
26
28
  export default template.factory((attributes, content) => {
27
29
  let state = attributes.state || reactive({ active: false }), toggle = attributes.toggle || false;
28
- return html `
29
- <div
30
- class='tooltip'
31
- ${omit(attributes, OMIT)}
32
- ${{
33
- class: () => state.active && '--active',
34
- onclick: function (e) {
30
+ return (() => {
31
+ let root_ed8f776bb07a460eadcbcfe445975fdf3f = template_ed8f776bb07a460eadcbcfe445975fdf3g(), element_ed8f776bb07a460eadcbcfe445975fdf3h = root_ed8f776bb07a460eadcbcfe445975fdf3f.firstChild, element_ed8f776bb07a460eadcbcfe445975fdf3i = element_ed8f776bb07a460eadcbcfe445975fdf3h.firstChild;
32
+ template_ed8f776bb07a460eadcbcfe445975fdf1.setProperties(element_ed8f776bb07a460eadcbcfe445975fdf3h, omit(attributes, OMIT));
33
+ template_ed8f776bb07a460eadcbcfe445975fdf1.setClass(element_ed8f776bb07a460eadcbcfe445975fdf3h, '', () => state.active && '--active');
34
+ template_ed8f776bb07a460eadcbcfe445975fdf1.delegate(element_ed8f776bb07a460eadcbcfe445975fdf3h, 'click', function (e) {
35
35
  let active = true, node = e.target;
36
36
  if (this === node || (toggle && this.contains(node))) {
37
37
  active = !state.active;
@@ -58,10 +58,8 @@ export default template.factory((attributes, content) => {
58
58
  });
59
59
  scheduled = true;
60
60
  }
61
- }
62
- }}
63
- >
64
- ${content}
65
- </div>
66
- `;
61
+ });
62
+ template_ed8f776bb07a460eadcbcfe445975fdf1.slot(element_ed8f776bb07a460eadcbcfe445975fdf3i, content);
63
+ return root_ed8f776bb07a460eadcbcfe445975fdf3f;
64
+ })();
67
65
  });
@@ -1,20 +1,20 @@
1
- import { Attributes } from '@esportsplus/template';
1
+ import * as template_ed8f776bb07a460eadcbcfe445975fdf1 from '@esportsplus/template';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
- attributes?: Attributes | undefined;
5
- content?: import("@esportsplus/template").Renderable<any>;
6
- }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
7
- <T extends Attributes>(attributes: T): ReturnType<(this: {
8
- attributes?: Attributes | undefined;
9
- content?: import("@esportsplus/template").Renderable<any>;
10
- }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
11
- <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
12
- attributes?: Attributes | undefined;
13
- content?: import("@esportsplus/template").Renderable<any>;
14
- }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
15
- (attributes: Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
16
- attributes?: Attributes | undefined;
17
- content?: import("@esportsplus/template").Renderable<any>;
18
- }, attributes: Readonly<Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
4
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
5
+ content?: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>;
6
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
7
+ <T extends template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>(attributes: T): ReturnType<(this: {
8
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
9
+ content?: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>;
10
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
11
+ <T extends template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>(content: T): ReturnType<(this: {
12
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
13
+ content?: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>;
14
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
15
+ (attributes: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes, content: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>): ReturnType<(this: {
16
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
17
+ content?: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>;
18
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,25 +1,23 @@
1
- import { reactive } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
1
+ import * as template_ed8f776bb07a460eadcbcfe445975fdf1 from '@esportsplus/template';
2
+ import { reactive } from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
+ const template_ed8f776bb07a460eadcbcfe445975fdf3k = template_ed8f776bb07a460eadcbcfe445975fdf1.template(`<div
6
+ class='tooltip'><!--$--></div>`);
5
7
  const OMIT = ['state'];
6
8
  export default template.factory((attributes, content) => {
7
9
  let state = attributes.state || reactive({ active: false });
8
- return html `
9
- <div
10
- class='tooltip'
11
- ${omit(attributes, OMIT)}
12
- ${{
13
- class: () => state.active && '--active',
14
- onmouseover: () => {
10
+ return (() => {
11
+ let root_ed8f776bb07a460eadcbcfe445975fdf3j = template_ed8f776bb07a460eadcbcfe445975fdf3k(), element_ed8f776bb07a460eadcbcfe445975fdf3l = root_ed8f776bb07a460eadcbcfe445975fdf3j.firstChild, element_ed8f776bb07a460eadcbcfe445975fdf3m = element_ed8f776bb07a460eadcbcfe445975fdf3l.firstChild;
12
+ template_ed8f776bb07a460eadcbcfe445975fdf1.setProperties(element_ed8f776bb07a460eadcbcfe445975fdf3l, omit(attributes, OMIT));
13
+ template_ed8f776bb07a460eadcbcfe445975fdf1.setClass(element_ed8f776bb07a460eadcbcfe445975fdf3l, '', () => state.active && '--active');
14
+ template_ed8f776bb07a460eadcbcfe445975fdf1.delegate(element_ed8f776bb07a460eadcbcfe445975fdf3l, 'mouseover', () => {
15
15
  state.active = true;
16
- },
17
- onmouseout: () => {
16
+ });
17
+ template_ed8f776bb07a460eadcbcfe445975fdf1.delegate(element_ed8f776bb07a460eadcbcfe445975fdf3l, 'mouseout', () => {
18
18
  state.active = false;
19
- }
20
- }}
21
- >
22
- ${content}
23
- </div>
24
- `;
19
+ });
20
+ template_ed8f776bb07a460eadcbcfe445975fdf1.slot(element_ed8f776bb07a460eadcbcfe445975fdf3m, content);
21
+ return root_ed8f776bb07a460eadcbcfe445975fdf3j;
22
+ })();
25
23
  });
@@ -1,20 +1,21 @@
1
+ import * as template_ed8f776bb07a460eadcbcfe445975fdf1 from '@esportsplus/template';
1
2
  import './scss/index.scss';
2
3
  declare const _default: {
3
4
  (): ReturnType<(this: {
4
- attributes?: import("@esportsplus/template").Attributes | undefined;
5
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
5
6
  content?: string[] | undefined;
6
- }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
7
- <T extends import("@esportsplus/template").Attributes>(attributes: T): ReturnType<(this: {
8
- attributes?: import("@esportsplus/template").Attributes | undefined;
7
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: string[]) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
8
+ <T extends template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
9
10
  content?: string[] | undefined;
10
- }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
11
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: string[]) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
11
12
  <T extends string[]>(content: T): ReturnType<(this: {
12
- attributes?: import("@esportsplus/template").Attributes | undefined;
13
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
13
14
  content?: string[] | undefined;
14
- }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
15
- (attributes: import("@esportsplus/template").Attributes, content: string[]): ReturnType<(this: {
16
- attributes?: import("@esportsplus/template").Attributes | undefined;
15
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: string[]) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
16
+ (attributes: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes, content: string[]): ReturnType<(this: {
17
+ attributes?: template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes | undefined;
17
18
  content?: string[] | undefined;
18
- }, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
19
+ }, attributes: Readonly<template_ed8f776bb07a460eadcbcfe445975fdf1.Attributes>, content: string[]) => template_ed8f776bb07a460eadcbcfe445975fdf1.Renderable<any>>;
19
20
  };
20
21
  export default _default;
@@ -1,13 +1,15 @@
1
- import { html } from '@esportsplus/template';
2
- import { reactive } from '@esportsplus/reactivity';
1
+ import * as template_ed8f776bb07a460eadcbcfe445975fdf1 from '@esportsplus/template';
2
+ import { reactive } from '@esportsplus/template';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const EMPTY_NODE = html ` `;
5
+ const template_ed8f776bb07a460eadcbcfe445975fdf3o = template_ed8f776bb07a460eadcbcfe445975fdf1.template(`<div class='typewriter'><!--$--></div>`);
6
+ const template_ed8f776bb07a460eadcbcfe445975fdf3r = template_ed8f776bb07a460eadcbcfe445975fdf1.template(``);
7
+ const EMPTY_NODE = template_ed8f776bb07a460eadcbcfe445975fdf3r();
6
8
  export default template.factory(function (_, content) {
7
9
  let state = reactive({ text: '' });
8
- return html `
9
- <div class='typewriter' ${{
10
- onconnect: () => {
10
+ return (() => {
11
+ let root_ed8f776bb07a460eadcbcfe445975fdf3n = template_ed8f776bb07a460eadcbcfe445975fdf3o(), element_ed8f776bb07a460eadcbcfe445975fdf3p = root_ed8f776bb07a460eadcbcfe445975fdf3n.firstChild, element_ed8f776bb07a460eadcbcfe445975fdf3q = element_ed8f776bb07a460eadcbcfe445975fdf3p.firstChild;
12
+ template_ed8f776bb07a460eadcbcfe445975fdf1.onconnect(element_ed8f776bb07a460eadcbcfe445975fdf3p, () => {
11
13
  let character = 0, i = 0, isWriting = true, write = content[i];
12
14
  function play() {
13
15
  setTimeout(() => {
@@ -35,9 +37,8 @@ export default template.factory(function (_, content) {
35
37
  }, isWriting ? 64 : 32);
36
38
  }
37
39
  play();
38
- }
39
- }}>
40
- ${() => state.text || EMPTY_NODE}
41
- </div>
42
- `;
40
+ });
41
+ new template_ed8f776bb07a460eadcbcfe445975fdf1.EffectSlot(element_ed8f776bb07a460eadcbcfe445975fdf3q, () => state.text || EMPTY_NODE);
42
+ return root_ed8f776bb07a460eadcbcfe445975fdf3n;
43
+ })();
43
44
  });
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- content: Node;
2
+ content: DocumentFragment;
3
3
  deactivate: () => void;
4
4
  error: {
5
5
  (messages: import("@esportsplus/template").Renderable<any>, seconds?: number): void;
@@ -1,33 +1,34 @@
1
1
  declare const _default: (attributes: {
2
2
  [key: `aria-${string}`]: string | number | boolean | undefined;
3
3
  [key: `data-${string}`]: string | undefined;
4
- class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
4
+ class?: import("node_modules/@esportsplus/template/build/types").Attribute | import("node_modules/@esportsplus/template/build/types").Attribute[];
5
5
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
6
6
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
7
7
  onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
8
8
  ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
9
- style?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
9
+ style?: import("node_modules/@esportsplus/template/build/types").Attribute | import("node_modules/@esportsplus/template/build/types").Attribute[];
10
10
  } & {
11
11
  onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
12
12
  onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
13
13
  onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
14
14
  onanimationiteration?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
15
15
  onanimationstart?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
16
- onauxclick?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
16
+ onauxclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
17
17
  onbeforeinput?: ((this: import("@esportsplus/template").Element, event: InputEvent) => void) | undefined;
18
- onbeforetoggle?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
18
+ onbeforematch?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
19
+ onbeforetoggle?: ((this: import("@esportsplus/template").Element, event: ToggleEvent) => void) | undefined;
19
20
  onblur?: ((this: import("@esportsplus/template").Element, event: FocusEvent) => void) | undefined;
20
21
  oncancel?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
21
22
  oncanplay?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
22
23
  oncanplaythrough?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
23
24
  onchange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
24
- onclick?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
25
+ onclick?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
25
26
  onclose?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
26
27
  oncompositionend?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
27
28
  oncompositionstart?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
28
29
  oncompositionupdate?: ((this: import("@esportsplus/template").Element, event: CompositionEvent) => void) | undefined;
29
30
  oncontextlost?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
30
- oncontextmenu?: ((this: import("@esportsplus/template").Element, event: MouseEvent) => void) | undefined;
31
+ oncontextmenu?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
31
32
  oncontextrestored?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
32
33
  oncopy?: ((this: import("@esportsplus/template").Element, event: ClipboardEvent) => void) | undefined;
33
34
  oncuechange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
@@ -77,6 +78,7 @@ declare const _default: (attributes: {
77
78
  onpointermove?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
78
79
  onpointerout?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
79
80
  onpointerover?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
81
+ onpointerrawupdate?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
80
82
  onpointerup?: ((this: import("@esportsplus/template").Element, event: PointerEvent) => void) | undefined;
81
83
  onprogress?: ((this: import("@esportsplus/template").Element, event: ProgressEvent<EventTarget>) => void) | undefined;
82
84
  onratechange?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
@@ -95,7 +97,7 @@ declare const _default: (attributes: {
95
97
  onsubmit?: ((this: import("@esportsplus/template").Element, event: SubmitEvent) => void) | undefined;
96
98
  onsuspend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
97
99
  ontimeupdate?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
98
- ontoggle?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
100
+ ontoggle?: ((this: import("@esportsplus/template").Element, event: ToggleEvent) => void) | undefined;
99
101
  ontouchcancel?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
100
102
  ontouchend?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
101
103
  ontouchmove?: ((this: import("@esportsplus/template").Element, event: TouchEvent) => void) | undefined;
@@ -116,5 +118,5 @@ declare const _default: (attributes: {
116
118
  active: boolean;
117
119
  error: string;
118
120
  };
119
- }) => Node;
121
+ }) => DocumentFragment;
120
122
  export default _default;