@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,5 +1,4 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
- import { Attributes, Renderable } from '@esportsplus/template';
1
+ import { type Attributes, type Renderable } from '@esportsplus/template';
3
2
  type A = Attributes & {
4
3
  options: (Attributes & {
5
4
  content: Renderable<unknown>;
@@ -16,19 +15,19 @@ type A = Attributes & {
16
15
  declare const _default: {
17
16
  (): ReturnType<(this: {
18
17
  attributes?: A | undefined;
19
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
18
+ content?: Renderable<any>;
19
+ }, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
21
20
  <T extends A>(attributes: T): ReturnType<(this: {
22
21
  attributes?: A | undefined;
23
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
25
- <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
22
+ content?: Renderable<any>;
23
+ }, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
24
+ <T extends Renderable<any>>(content: T): ReturnType<(this: {
26
25
  attributes?: A | undefined;
27
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
26
+ content?: Renderable<any>;
27
+ }, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
28
+ (attributes: A, content: Renderable<any>): ReturnType<(this: {
30
29
  attributes?: A | undefined;
31
- content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => Renderable<any>>;
30
+ content?: Renderable<any>;
31
+ }, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
33
32
  };
34
33
  export default _default;
@@ -1,38 +1,38 @@
1
- import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
2
  import { omit } from '@esportsplus/utilities';
3
- import template from '../../components/template/index.js';
3
+ import template from '../template/index.js';
4
4
  import onclick from './onclick.js';
5
- const template_eea410626b3047bfa8387f56255749634c = template_eea410626b3047bfa8387f56255749631.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
- const template_eea410626b3047bfa8387f56255749634h = template_eea410626b3047bfa8387f56255749631.template(`<div class='link --width-full'><!--$--></div>`);
7
- const template_eea410626b3047bfa8387f56255749634m = template_eea410626b3047bfa8387f56255749631.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
5
+ const template_0p4v5171 = template_u1.template(`<a class='link --width-full' target='_blank' >`);
6
+ const template_0p4v5174 = template_u1.template(`<div class='link --width-full' >`);
7
+ const template_0p4v5177 = template_u1.template(`<!--$--><div class='tooltip-content ' >`);
8
8
  const OMIT = ['options', 'option', 'tooltip-content'];
9
9
  const OMIT_OPTION = ['content'];
10
10
  const OMIT_TOOLTIP_CONTENT = ['direction'];
11
11
  export default template.factory((attributes, content) => {
12
12
  let options = attributes.options, option = attributes.option, tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
13
13
  return onclick(omit(attributes, OMIT), (() => {
14
- let root_eea410626b3047bfa8387f56255749634l = template_eea410626b3047bfa8387f56255749634m(), element_eea410626b3047bfa8387f56255749634n = root_eea410626b3047bfa8387f56255749634l.firstChild, element_eea410626b3047bfa8387f56255749634o = element_eea410626b3047bfa8387f56255749634n.nextSibling, element_eea410626b3047bfa8387f56255749634p = element_eea410626b3047bfa8387f56255749634o.firstChild, attributes_eea410626b3047bfa8387f56255749634q = { "class": " tooltip-content " };
15
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634n, content);
16
- template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749634o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_eea410626b3047bfa8387f56255749634q);
17
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_eea410626b3047bfa8387f56255749634q);
18
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634p, options.map((o) => {
14
+ let root_0p4v5176 = template_0p4v5177(), element_0p4v5178 = root_0p4v5176.firstChild, element_0p4v5179 = element_0p4v5178.nextSibling;
15
+ template_u1.slot(element_0p4v5178, content);
16
+ template_u1.setList(element_0p4v5179, 'class', `tooltip-content--${tooltipContentDirection}`);
17
+ template_u1.setProperties(element_0p4v5179, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT));
18
+ template_u1.slot(element_0p4v5179, options.map((o) => {
19
19
  if (o.href) {
20
20
  return (() => {
21
- let root_eea410626b3047bfa8387f56255749634b = template_eea410626b3047bfa8387f56255749634c(), element_eea410626b3047bfa8387f56255749634d = root_eea410626b3047bfa8387f56255749634b.firstChild, element_eea410626b3047bfa8387f56255749634e = element_eea410626b3047bfa8387f56255749634d.firstChild, attributes_eea410626b3047bfa8387f56255749634f = { "class": " link --width-full" };
22
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634d, omit(o, OMIT_OPTION), attributes_eea410626b3047bfa8387f56255749634f);
23
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634d, option, attributes_eea410626b3047bfa8387f56255749634f);
24
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634e, o.content);
25
- return root_eea410626b3047bfa8387f56255749634b;
21
+ let root_0p4v5170 = template_0p4v5171(), element_0p4v5172 = root_0p4v5170.firstChild;
22
+ template_u1.setProperties(element_0p4v5172, omit(o, OMIT_OPTION));
23
+ template_u1.setProperties(element_0p4v5172, option);
24
+ template_u1.slot(element_0p4v5172, o.content, 1);
25
+ return root_0p4v5170;
26
26
  })();
27
27
  }
28
28
  return (() => {
29
- let root_eea410626b3047bfa8387f56255749634g = template_eea410626b3047bfa8387f56255749634h(), element_eea410626b3047bfa8387f56255749634i = root_eea410626b3047bfa8387f56255749634g.firstChild, element_eea410626b3047bfa8387f56255749634j = element_eea410626b3047bfa8387f56255749634i.firstChild, attributes_eea410626b3047bfa8387f56255749634k = { "class": " link --width-full" };
30
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634i, omit(o, OMIT_OPTION), attributes_eea410626b3047bfa8387f56255749634k);
31
- template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749634i, option, attributes_eea410626b3047bfa8387f56255749634k);
32
- template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749634j, o.content);
33
- return root_eea410626b3047bfa8387f56255749634g;
29
+ let root_0p4v5173 = template_0p4v5174(), element_0p4v5175 = root_0p4v5173.firstChild;
30
+ template_u1.setProperties(element_0p4v5175, omit(o, OMIT_OPTION));
31
+ template_u1.setProperties(element_0p4v5175, option);
32
+ template_u1.slot(element_0p4v5175, o.content, 1);
33
+ return root_0p4v5173;
34
34
  })();
35
- }));
36
- return root_eea410626b3047bfa8387f56255749634l;
35
+ }), 1);
36
+ return root_0p4v5176;
37
37
  })());
38
38
  });