@esportsplus/ui 0.48.5 → 0.48.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +9 -9
  3. package/build/components/alert/index.js +26 -26
  4. package/build/components/back/index.d.ts +8 -8
  5. package/build/components/back/index.js +8 -8
  6. package/build/components/button/index.d.ts +21 -21
  7. package/build/components/button/index.js +15 -15
  8. package/build/components/checkbox/index.js +14 -14
  9. package/build/components/clipboard/onclick.js +7 -7
  10. package/build/components/counter/index.js +20 -20
  11. package/build/components/ellipsis/index.js +5 -5
  12. package/build/components/form/action.js +8 -8
  13. package/build/components/highlight/index.d.ts +16 -16
  14. package/build/components/highlight/index.js +8 -8
  15. package/build/components/icon/index.d.ts +11 -11
  16. package/build/components/icon/index.js +6 -6
  17. package/build/components/input/index.js +11 -11
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +20 -20
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +13 -13
  22. package/build/components/scrollbar/index.d.ts +11 -11
  23. package/build/components/scrollbar/index.js +14 -14
  24. package/build/components/select/index.js +24 -24
  25. package/build/components/textarea/index.js +11 -11
  26. package/build/components/tooltip/menu.d.ts +11 -11
  27. package/build/components/tooltip/menu.js +20 -20
  28. package/build/components/tooltip/onclick.d.ts +1101 -1101
  29. package/build/components/tooltip/onclick.js +8 -8
  30. package/build/components/tooltip/onhover.d.ts +16 -16
  31. package/build/components/tooltip/onhover.js +9 -9
  32. package/build/components/typewriter/index.d.ts +11 -11
  33. package/build/components/typewriter/index.js +8 -8
  34. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
- import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
1
+ import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
2
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_6f02f170823e4558bc9ed44ffd445e833g = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='tooltip'><!--$--></div>`);
6
+ const template_3ea7bdb36b1e42ed846a8dc5465fdb953g = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='tooltip'><!--$--></div>`);
7
7
  const OMIT = ['state', 'toggle'];
8
8
  let parent = null, queue = [], running = false, scheduled = false;
9
9
  function frame() {
@@ -27,10 +27,10 @@ function frame() {
27
27
  export default template.factory((attributes, content) => {
28
28
  let state = attributes.state || reactive({ active: false }), toggle = attributes.toggle || false;
29
29
  return (() => {
30
- let root_6f02f170823e4558bc9ed44ffd445e833f = template_6f02f170823e4558bc9ed44ffd445e833g(), element_6f02f170823e4558bc9ed44ffd445e833h = root_6f02f170823e4558bc9ed44ffd445e833f.firstChild, element_6f02f170823e4558bc9ed44ffd445e833i = element_6f02f170823e4558bc9ed44ffd445e833h.firstChild;
31
- template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e833h, omit(attributes, OMIT), { "class": "tooltip" });
32
- template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e833h, '', () => state.active && '--active');
33
- template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e833h, 'click', function (e) {
30
+ let root_3ea7bdb36b1e42ed846a8dc5465fdb953f = template_3ea7bdb36b1e42ed846a8dc5465fdb953g(), element_3ea7bdb36b1e42ed846a8dc5465fdb953h = root_3ea7bdb36b1e42ed846a8dc5465fdb953f.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb953i = element_3ea7bdb36b1e42ed846a8dc5465fdb953h.firstChild;
31
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb953h, omit(attributes, OMIT), { "class": "tooltip" });
32
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb953h, 'class', '', () => state.active && '--active');
33
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb953h, 'click', function (e) {
34
34
  let active = true, node = e.target;
35
35
  if (this === node || (toggle && this.contains(node))) {
36
36
  active = !state.active;
@@ -58,7 +58,7 @@ export default template.factory((attributes, content) => {
58
58
  scheduled = true;
59
59
  }
60
60
  });
61
- template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e833i, content);
62
- return root_6f02f170823e4558bc9ed44ffd445e833f;
61
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb953i, content);
62
+ return root_3ea7bdb36b1e42ed846a8dc5465fdb953f;
63
63
  })();
64
64
  });
@@ -1,20 +1,20 @@
1
- import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
1
+ import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
5
- content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
6
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
7
- <T extends template_6f02f170823e4558bc9ed44ffd445e831.Attributes>(attributes: T): ReturnType<(this: {
8
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
9
- content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
10
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
11
- <T extends template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>(content: T): ReturnType<(this: {
12
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
13
- content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
14
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
15
- (attributes: template_6f02f170823e4558bc9ed44ffd445e831.Attributes, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>): ReturnType<(this: {
16
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
17
- content?: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>;
18
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
4
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
5
+ content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
6
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
7
+ <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>(attributes: T): ReturnType<(this: {
8
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
9
+ content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
10
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
11
+ <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>(content: T): ReturnType<(this: {
12
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
13
+ content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
14
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
15
+ (attributes: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>): ReturnType<(this: {
16
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
17
+ content?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>;
18
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,22 +1,22 @@
1
- import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
1
+ import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
2
2
  import { reactive } from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
- const template_6f02f170823e4558bc9ed44ffd445e833k = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='tooltip'><!--$--></div>`);
5
+ const template_3ea7bdb36b1e42ed846a8dc5465fdb953k = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='tooltip'><!--$--></div>`);
6
6
  const OMIT = ['state'];
7
7
  export default template.factory((attributes, content) => {
8
8
  let state = attributes.state || reactive({ active: false });
9
9
  return (() => {
10
- let root_6f02f170823e4558bc9ed44ffd445e833j = template_6f02f170823e4558bc9ed44ffd445e833k(), element_6f02f170823e4558bc9ed44ffd445e833l = root_6f02f170823e4558bc9ed44ffd445e833j.firstChild, element_6f02f170823e4558bc9ed44ffd445e833m = element_6f02f170823e4558bc9ed44ffd445e833l.firstChild;
11
- template_6f02f170823e4558bc9ed44ffd445e831.setProperties(element_6f02f170823e4558bc9ed44ffd445e833l, omit(attributes, OMIT), { "class": "tooltip" });
12
- template_6f02f170823e4558bc9ed44ffd445e831.setClass(element_6f02f170823e4558bc9ed44ffd445e833l, '', () => state.active && '--active');
13
- template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e833l, 'mouseover', () => {
10
+ let root_3ea7bdb36b1e42ed846a8dc5465fdb953j = template_3ea7bdb36b1e42ed846a8dc5465fdb953k(), element_3ea7bdb36b1e42ed846a8dc5465fdb953l = root_3ea7bdb36b1e42ed846a8dc5465fdb953j.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb953m = element_3ea7bdb36b1e42ed846a8dc5465fdb953l.firstChild;
11
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.setProperties(element_3ea7bdb36b1e42ed846a8dc5465fdb953l, omit(attributes, OMIT), { "class": "tooltip" });
12
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.setList(element_3ea7bdb36b1e42ed846a8dc5465fdb953l, 'class', '', () => state.active && '--active');
13
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb953l, 'mouseover', () => {
14
14
  state.active = true;
15
15
  });
16
- template_6f02f170823e4558bc9ed44ffd445e831.delegate(element_6f02f170823e4558bc9ed44ffd445e833l, 'mouseout', () => {
16
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.delegate(element_3ea7bdb36b1e42ed846a8dc5465fdb953l, 'mouseout', () => {
17
17
  state.active = false;
18
18
  });
19
- template_6f02f170823e4558bc9ed44ffd445e831.slot(element_6f02f170823e4558bc9ed44ffd445e833m, content);
20
- return root_6f02f170823e4558bc9ed44ffd445e833j;
19
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.slot(element_3ea7bdb36b1e42ed846a8dc5465fdb953m, content);
20
+ return root_3ea7bdb36b1e42ed846a8dc5465fdb953j;
21
21
  })();
22
22
  });
@@ -1,21 +1,21 @@
1
- import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
1
+ import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
5
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
6
6
  content?: string[] | undefined;
7
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string[]) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
8
- <T extends template_6f02f170823e4558bc9ed44ffd445e831.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
7
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string[]) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
8
+ <T extends template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
10
10
  content?: string[] | undefined;
11
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string[]) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
11
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string[]) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
12
12
  <T extends string[]>(content: T): ReturnType<(this: {
13
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
13
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
14
14
  content?: string[] | undefined;
15
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string[]) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
16
- (attributes: template_6f02f170823e4558bc9ed44ffd445e831.Attributes, content: string[]): ReturnType<(this: {
17
- attributes?: template_6f02f170823e4558bc9ed44ffd445e831.Attributes | undefined;
15
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string[]) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
16
+ (attributes: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes, content: string[]): ReturnType<(this: {
17
+ attributes?: template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes | undefined;
18
18
  content?: string[] | undefined;
19
- }, attributes: Readonly<template_6f02f170823e4558bc9ed44ffd445e831.Attributes>, content: string[]) => template_6f02f170823e4558bc9ed44ffd445e831.Renderable<any>>;
19
+ }, attributes: Readonly<template_3ea7bdb36b1e42ed846a8dc5465fdb951.Attributes>, content: string[]) => template_3ea7bdb36b1e42ed846a8dc5465fdb951.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,15 +1,15 @@
1
- import * as template_6f02f170823e4558bc9ed44ffd445e831 from '@esportsplus/template';
1
+ import * as template_3ea7bdb36b1e42ed846a8dc5465fdb951 from '@esportsplus/template';
2
2
  import { reactive } from '@esportsplus/template';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_6f02f170823e4558bc9ed44ffd445e833o = template_6f02f170823e4558bc9ed44ffd445e831.template(`<div class='typewriter'><!--$--></div>`);
6
- const template_6f02f170823e4558bc9ed44ffd445e833r = template_6f02f170823e4558bc9ed44ffd445e831.template(``);
7
- const EMPTY_NODE = template_6f02f170823e4558bc9ed44ffd445e833r();
5
+ const template_3ea7bdb36b1e42ed846a8dc5465fdb953o = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(`<div class='typewriter'><!--$--></div>`);
6
+ const template_3ea7bdb36b1e42ed846a8dc5465fdb953r = template_3ea7bdb36b1e42ed846a8dc5465fdb951.template(``);
7
+ const EMPTY_NODE = template_3ea7bdb36b1e42ed846a8dc5465fdb953r();
8
8
  export default template.factory(function (_, content) {
9
9
  let state = reactive({ text: '' });
10
10
  return (() => {
11
- let root_6f02f170823e4558bc9ed44ffd445e833n = template_6f02f170823e4558bc9ed44ffd445e833o(), element_6f02f170823e4558bc9ed44ffd445e833p = root_6f02f170823e4558bc9ed44ffd445e833n.firstChild, element_6f02f170823e4558bc9ed44ffd445e833q = element_6f02f170823e4558bc9ed44ffd445e833p.firstChild;
12
- template_6f02f170823e4558bc9ed44ffd445e831.onconnect(element_6f02f170823e4558bc9ed44ffd445e833p, () => {
11
+ let root_3ea7bdb36b1e42ed846a8dc5465fdb953n = template_3ea7bdb36b1e42ed846a8dc5465fdb953o(), element_3ea7bdb36b1e42ed846a8dc5465fdb953p = root_3ea7bdb36b1e42ed846a8dc5465fdb953n.firstChild, element_3ea7bdb36b1e42ed846a8dc5465fdb953q = element_3ea7bdb36b1e42ed846a8dc5465fdb953p.firstChild;
12
+ template_3ea7bdb36b1e42ed846a8dc5465fdb951.onconnect(element_3ea7bdb36b1e42ed846a8dc5465fdb953p, () => {
13
13
  let character = 0, i = 0, isWriting = true, write = content[i];
14
14
  function play() {
15
15
  setTimeout(() => {
@@ -38,7 +38,7 @@ export default template.factory(function (_, content) {
38
38
  }
39
39
  play();
40
40
  });
41
- new template_6f02f170823e4558bc9ed44ffd445e831.EffectSlot(element_6f02f170823e4558bc9ed44ffd445e833q, () => state.text || EMPTY_NODE);
42
- return root_6f02f170823e4558bc9ed44ffd445e833n;
41
+ new template_3ea7bdb36b1e42ed846a8dc5465fdb951.EffectSlot(element_3ea7bdb36b1e42ed846a8dc5465fdb953q, () => state.text || EMPTY_NODE);
42
+ return root_3ea7bdb36b1e42ed846a8dc5465fdb953n;
43
43
  })();
44
44
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "dependencies": {
4
4
  "@esportsplus/action": "^0.1.4",
5
5
  "@esportsplus/queue": "^0.2.0",
6
- "@esportsplus/template": "^0.42.0",
6
+ "@esportsplus/template": "^0.42.1",
7
7
  "@esportsplus/utilities": "^0.27.2",
8
8
  "@esportsplus/vite": "^0.12.7",
9
9
  "modern-normalize": "^3.0.1"
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "sideEffects": false,
60
60
  "type": "module",
61
- "version": "0.48.5",
61
+ "version": "0.48.6",
62
62
  "scripts": {
63
63
  "build": "run-s build:vite build:ts",
64
64
  "build:ts": "tsc",