@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,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,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,5 +1,5 @@
1
- import { onclick } from '../../components/root/index.js';
2
- import scrollbar from '../../components/scrollbar/index.js';
1
+ import { onclick } from '../root/index.js';
2
+ import scrollbar from '../scrollbar/index.js';
3
3
  import './scss/index.scss';
4
4
  export default scrollbar.bind({
5
5
  attributes: {
@@ -6,5 +6,5 @@ declare const _default: (this: {
6
6
  active: boolean;
7
7
  error: string;
8
8
  };
9
- }) => DocumentFragment;
9
+ }) => DocumentFragment | Text;
10
10
  export default _default;
@@ -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('switch');
@@ -1,13 +1,14 @@
1
1
  import { Attributes, Renderable } from '@esportsplus/template';
2
+ declare const factory: <A extends Attributes, C = Renderable<any>, Context = {
3
+ attributes?: A;
4
+ content?: C;
5
+ }>(template: (this: Context, attributes: Readonly<A>, content: C) => Renderable<any>) => {
6
+ (): ReturnType<typeof template>;
7
+ <T extends A>(attributes: T): ReturnType<typeof template>;
8
+ <T extends C>(content: T): ReturnType<typeof template>;
9
+ (attributes: A, content: C): ReturnType<typeof template>;
10
+ };
2
11
  declare const _default: {
3
- factory: <A extends Attributes, C = Renderable<any>, Context = {
4
- attributes?: A;
5
- content?: C;
6
- }>(template: (this: Context, attributes: Readonly<A>, content: C) => Renderable<any>) => {
7
- (): ReturnType<typeof template>;
8
- <T extends A>(attributes: T): ReturnType<typeof template>;
9
- <T extends C>(content: T): ReturnType<typeof template>;
10
- (attributes: A, content: C): ReturnType<typeof template>;
11
- };
12
+ factory: typeof factory;
12
13
  };
13
14
  export default _default;
@@ -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,45 +1,45 @@
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 form from '../../components/form/index.js';
4
+ import form from '../form/index.js';
5
5
  import './scss/index.scss';
6
- const template_eea410626b3047bfa8387f562557496348 = template_eea410626b3047bfa8387f56255749631.template(`<textarea class='textarea'></textarea>`);
7
- class ReactiveObject_eea410626b3047bfa8387f562557496346 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
- #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
9
- #error = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL]('');
6
+ const template_1x5yfkx2 = template_u1.template(`<textarea class='textarea' >`);
7
+ class ReactiveObject_1x5yfkx0 extends reactivity_u0.ReactiveObject {
8
+ #active = this[reactivity_u0.SIGNAL](false);
9
+ #error = this[reactivity_u0.SIGNAL]('');
10
10
  constructor() {
11
11
  super(null);
12
12
  }
13
13
  get active() {
14
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
14
+ return reactivity_u0.read(this.#active);
15
15
  }
16
16
  set active(_v0) {
17
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
17
+ reactivity_u0.write(this.#active, _v0);
18
18
  }
19
19
  get error() {
20
- return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
20
+ return reactivity_u0.read(this.#error);
21
21
  }
22
22
  set error(_v1) {
23
- reactivity_eea410626b3047bfa8387f56255749630.write(this.#error, _v1);
23
+ reactivity_u0.write(this.#error, _v1);
24
24
  }
25
25
  }
26
26
  const OMIT = ['state'];
27
27
  export default function (attributes) {
28
- let state = attributes.state || new ReactiveObject_eea410626b3047bfa8387f562557496346();
28
+ let state = attributes.state || new ReactiveObject_1x5yfkx0();
29
29
  return (() => {
30
- let root_eea410626b3047bfa8387f562557496347 = template_eea410626b3047bfa8387f562557496348(), element_eea410626b3047bfa8387f562557496349 = root_eea410626b3047bfa8387f562557496347.firstChild, attributes_eea410626b3047bfa8387f56255749634a = { "class": " textarea" };
31
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496349, this?.attributes && omit(this.attributes, OMIT), attributes_eea410626b3047bfa8387f56255749634a);
32
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496349, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749634a);
33
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f562557496349, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f56255749634a);
34
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f562557496349, 'focusin', () => {
30
+ let root_1x5yfkx1 = template_1x5yfkx2(), element_1x5yfkx3 = root_1x5yfkx1.firstChild;
31
+ template_u1.setProperties(element_1x5yfkx3, this?.attributes && omit(this.attributes, OMIT));
32
+ template_u1.setProperties(element_1x5yfkx3, omit(attributes, OMIT));
33
+ template_u1.setList(element_1x5yfkx3, 'class', () => state.active && '--active');
34
+ template_u1.on(element_1x5yfkx3, 'focusin', () => {
35
35
  state.active = true;
36
36
  });
37
- template_eea410626b3047bfa8387f56255749631.on(element_eea410626b3047bfa8387f562557496349, 'focusout', () => {
37
+ template_u1.on(element_1x5yfkx3, 'focusout', () => {
38
38
  state.active = false;
39
39
  });
40
- template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f562557496349, form.input.onrender(state));
41
- template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f562557496349, 'value', attributes?.value || '');
42
- return root_eea410626b3047bfa8387f562557496347;
40
+ template_u1.onrender(element_1x5yfkx3, form.input.onrender(state));
41
+ template_u1.setProperty(element_1x5yfkx3, 'value', attributes?.value || '');
42
+ return root_1x5yfkx1;
43
43
  })();
44
44
  }
45
45
  ;