@esportsplus/ui 0.49.3 → 0.49.5

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 (88) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +25 -15
  3. package/build/components/alert/index.d.ts +1 -1
  4. package/build/components/alert/index.js +64 -33
  5. package/build/components/back/index.d.ts +9 -9
  6. package/build/components/back/index.js +8 -8
  7. package/build/components/button/index.d.ts +22 -22
  8. package/build/components/button/index.js +36 -20
  9. package/build/components/checkbox/index.d.ts +1 -1
  10. package/build/components/checkbox/index.js +36 -19
  11. package/build/components/clipboard/index.d.ts +1120 -1120
  12. package/build/components/clipboard/onclick.d.ts +1 -1
  13. package/build/components/clipboard/onclick.js +21 -11
  14. package/build/components/counter/index.d.ts +1 -1
  15. package/build/components/counter/index.js +59 -28
  16. package/build/components/ellipsis/index.d.ts +1 -1
  17. package/build/components/ellipsis/index.js +5 -5
  18. package/build/components/form/action.d.ts +1 -1
  19. package/build/components/form/action.js +8 -8
  20. package/build/components/form/index.d.ts +3 -3
  21. package/build/components/form/input.d.ts +1 -1
  22. package/build/components/frame/index.d.ts +10 -10
  23. package/build/components/highlight/index.d.ts +16 -16
  24. package/build/components/highlight/index.js +23 -13
  25. package/build/components/icon/index.d.ts +11 -11
  26. package/build/components/icon/index.js +7 -7
  27. package/build/components/input/index.d.ts +1 -1
  28. package/build/components/input/index.js +32 -16
  29. package/build/components/loader/index.d.ts +16 -16
  30. package/build/components/loader/index.js +49 -27
  31. package/build/components/loading/index.d.ts +1 -1
  32. package/build/components/loading/index.js +5 -5
  33. package/build/components/overlay/index.d.ts +10 -10
  34. package/build/components/radio/index.d.ts +2 -2
  35. package/build/components/range/index.d.ts +1 -1
  36. package/build/components/range/index.js +42 -19
  37. package/build/components/scrollbar/index.d.ts +12 -12
  38. package/build/components/scrollbar/index.js +36 -20
  39. package/build/components/select/index.d.ts +1 -1
  40. package/build/components/select/index.js +61 -32
  41. package/build/components/sidebar/index.d.ts +10 -10
  42. package/build/components/site/index.d.ts +10 -10
  43. package/build/components/switch/index.d.ts +2 -2
  44. package/build/components/template/index.d.ts +1 -1
  45. package/build/components/textarea/index.d.ts +1 -1
  46. package/build/components/textarea/index.js +32 -16
  47. package/build/components/textarea/scss/index.scss +1 -1
  48. package/build/components/tooltip/index.d.ts +2295 -2295
  49. package/build/components/tooltip/menu.d.ts +12 -12
  50. package/build/components/tooltip/menu.js +20 -20
  51. package/build/components/tooltip/onclick.d.ts +1121 -1121
  52. package/build/components/tooltip/onclick.js +22 -10
  53. package/build/components/tooltip/onhover.d.ts +16 -16
  54. package/build/components/tooltip/onhover.js +23 -11
  55. package/build/components/typewriter/index.d.ts +11 -11
  56. package/build/components/typewriter/index.js +22 -10
  57. package/build/themes/dark/alert.d.ts +3 -3
  58. package/build/themes/dark/back.d.ts +11 -11
  59. package/build/themes/dark/input.d.ts +111 -111
  60. package/build/themes/dark/select.d.ts +1220 -1220
  61. package/build/themes/dark/textarea.d.ts +111 -111
  62. package/package.json +5 -4
  63. package/src/components/accordion/index.ts +2 -1
  64. package/src/components/alert/index.ts +2 -1
  65. package/src/components/back/index.ts +1 -1
  66. package/src/components/button/index.ts +2 -1
  67. package/src/components/checkbox/index.ts +2 -1
  68. package/src/components/clipboard/onclick.ts +2 -1
  69. package/src/components/counter/index.ts +2 -1
  70. package/src/components/ellipsis/index.ts +1 -1
  71. package/src/components/form/action.ts +1 -1
  72. package/src/components/form/input.ts +1 -1
  73. package/src/components/highlight/index.ts +2 -1
  74. package/src/components/icon/index.ts +1 -1
  75. package/src/components/input/index.ts +2 -1
  76. package/src/components/loader/index.ts +2 -1
  77. package/src/components/loading/index.ts +1 -1
  78. package/src/components/range/index.ts +2 -1
  79. package/src/components/scrollbar/index.ts +2 -1
  80. package/src/components/select/index.ts +2 -1
  81. package/src/components/template/index.ts +1 -1
  82. package/src/components/textarea/index.ts +2 -1
  83. package/src/components/textarea/scss/index.scss +1 -0
  84. package/src/components/tooltip/menu.ts +1 -1
  85. package/src/components/tooltip/onclick.ts +2 -1
  86. package/src/components/tooltip/onhover.ts +2 -1
  87. package/src/components/typewriter/index.ts +2 -1
  88. package/tsconfig.json +1 -1
@@ -1,5 +1,5 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
2
- import { Attributes, Renderable } from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
+ import { Attributes, Renderable } from '@esportsplus/template';
3
3
  type A = Attributes & {
4
4
  options: (Attributes & {
5
5
  content: Renderable<unknown>;
@@ -16,19 +16,19 @@ type A = Attributes & {
16
16
  declare const _default: {
17
17
  (): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => Renderable<any>>;
19
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => Renderable<any>>;
21
21
  <T extends A>(attributes: T): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => Renderable<any>>;
25
- <T extends template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>>(content: T): ReturnType<(this: {
23
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => Renderable<any>>;
25
+ <T extends template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>>(content: T): ReturnType<(this: {
26
26
  attributes?: A | undefined;
27
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>): ReturnType<(this: {
27
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
28
+ }, attributes: Readonly<A>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => Renderable<any>>;
29
+ (attributes: A, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>): ReturnType<(this: {
30
30
  attributes?: A | undefined;
31
- content?: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_6f5bab561bca4d9ab40f79d00d2111801.Renderable<any>) => Renderable<any>>;
31
+ content?: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>;
32
+ }, attributes: Readonly<A>, content: template_767c0c17891c439fbbf0bdc72f24ab6c1.Renderable<any>) => Renderable<any>>;
33
33
  };
34
34
  export default _default;
@@ -1,38 +1,38 @@
1
- import * as template_6f5bab561bca4d9ab40f79d00d2111801 from '@esportsplus/frontend';
1
+ import * as template_767c0c17891c439fbbf0bdc72f24ab6c1 from '@esportsplus/template';
2
2
  import { omit } from '@esportsplus/utilities';
3
3
  import template from '../../components/template/index.js';
4
4
  import onclick from './onclick.js';
5
- const template_6f5bab561bca4d9ab40f79d00d2111803y = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
- const template_6f5bab561bca4d9ab40f79d00d21118043 = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<div class='link --width-full'><!--$--></div>`);
7
- const template_6f5bab561bca4d9ab40f79d00d21118048 = template_6f5bab561bca4d9ab40f79d00d2111801.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
5
+ const template_767c0c17891c439fbbf0bdc72f24ab6c4c = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
+ const template_767c0c17891c439fbbf0bdc72f24ab6c4h = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<div class='link --width-full'><!--$--></div>`);
7
+ const template_767c0c17891c439fbbf0bdc72f24ab6c4m = template_767c0c17891c439fbbf0bdc72f24ab6c1.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
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_6f5bab561bca4d9ab40f79d00d21118047 = template_6f5bab561bca4d9ab40f79d00d21118048(), element_6f5bab561bca4d9ab40f79d00d21118049 = root_6f5bab561bca4d9ab40f79d00d21118047.firstChild, element_6f5bab561bca4d9ab40f79d00d2111804a = element_6f5bab561bca4d9ab40f79d00d21118049.nextSibling, element_6f5bab561bca4d9ab40f79d00d2111804b = element_6f5bab561bca4d9ab40f79d00d2111804a.firstChild, attributes_6f5bab561bca4d9ab40f79d00d2111804c = { "class": "tooltip-content" };
15
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d21118049, content);
16
- template_6f5bab561bca4d9ab40f79d00d2111801.setList(element_6f5bab561bca4d9ab40f79d00d2111804a, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_6f5bab561bca4d9ab40f79d00d2111804c);
17
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111804a, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_6f5bab561bca4d9ab40f79d00d2111804c);
18
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d2111804b, options.map((o) => {
14
+ let root_767c0c17891c439fbbf0bdc72f24ab6c4l = template_767c0c17891c439fbbf0bdc72f24ab6c4m(), element_767c0c17891c439fbbf0bdc72f24ab6c4n = root_767c0c17891c439fbbf0bdc72f24ab6c4l.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c4o = element_767c0c17891c439fbbf0bdc72f24ab6c4n.nextSibling, element_767c0c17891c439fbbf0bdc72f24ab6c4p = element_767c0c17891c439fbbf0bdc72f24ab6c4o.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c4q = { "class": "tooltip-content" };
15
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c4n, content);
16
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setList(element_767c0c17891c439fbbf0bdc72f24ab6c4o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_767c0c17891c439fbbf0bdc72f24ab6c4q);
17
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c4o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_767c0c17891c439fbbf0bdc72f24ab6c4q);
18
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c4p, options.map((o) => {
19
19
  if (o.href) {
20
20
  return (() => {
21
- let root_6f5bab561bca4d9ab40f79d00d2111803x = template_6f5bab561bca4d9ab40f79d00d2111803y(), element_6f5bab561bca4d9ab40f79d00d2111803z = root_6f5bab561bca4d9ab40f79d00d2111803x.firstChild, element_6f5bab561bca4d9ab40f79d00d21118040 = element_6f5bab561bca4d9ab40f79d00d2111803z.firstChild, attributes_6f5bab561bca4d9ab40f79d00d21118041 = { "class": "link --width-full" };
22
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111803z, omit(o, OMIT_OPTION), attributes_6f5bab561bca4d9ab40f79d00d21118041);
23
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d2111803z, option, attributes_6f5bab561bca4d9ab40f79d00d21118041);
24
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d21118040, o.content);
25
- return root_6f5bab561bca4d9ab40f79d00d2111803x;
21
+ let root_767c0c17891c439fbbf0bdc72f24ab6c4b = template_767c0c17891c439fbbf0bdc72f24ab6c4c(), element_767c0c17891c439fbbf0bdc72f24ab6c4d = root_767c0c17891c439fbbf0bdc72f24ab6c4b.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c4e = element_767c0c17891c439fbbf0bdc72f24ab6c4d.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c4f = { "class": "link --width-full" };
22
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c4d, omit(o, OMIT_OPTION), attributes_767c0c17891c439fbbf0bdc72f24ab6c4f);
23
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c4d, option, attributes_767c0c17891c439fbbf0bdc72f24ab6c4f);
24
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c4e, o.content);
25
+ return root_767c0c17891c439fbbf0bdc72f24ab6c4b;
26
26
  })();
27
27
  }
28
28
  return (() => {
29
- let root_6f5bab561bca4d9ab40f79d00d21118042 = template_6f5bab561bca4d9ab40f79d00d21118043(), element_6f5bab561bca4d9ab40f79d00d21118044 = root_6f5bab561bca4d9ab40f79d00d21118042.firstChild, element_6f5bab561bca4d9ab40f79d00d21118045 = element_6f5bab561bca4d9ab40f79d00d21118044.firstChild, attributes_6f5bab561bca4d9ab40f79d00d21118046 = { "class": "link --width-full" };
30
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d21118044, omit(o, OMIT_OPTION), attributes_6f5bab561bca4d9ab40f79d00d21118046);
31
- template_6f5bab561bca4d9ab40f79d00d2111801.setProperties(element_6f5bab561bca4d9ab40f79d00d21118044, option, attributes_6f5bab561bca4d9ab40f79d00d21118046);
32
- template_6f5bab561bca4d9ab40f79d00d2111801.slot(element_6f5bab561bca4d9ab40f79d00d21118045, o.content);
33
- return root_6f5bab561bca4d9ab40f79d00d21118042;
29
+ let root_767c0c17891c439fbbf0bdc72f24ab6c4g = template_767c0c17891c439fbbf0bdc72f24ab6c4h(), element_767c0c17891c439fbbf0bdc72f24ab6c4i = root_767c0c17891c439fbbf0bdc72f24ab6c4g.firstChild, element_767c0c17891c439fbbf0bdc72f24ab6c4j = element_767c0c17891c439fbbf0bdc72f24ab6c4i.firstChild, attributes_767c0c17891c439fbbf0bdc72f24ab6c4k = { "class": "link --width-full" };
30
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c4i, omit(o, OMIT_OPTION), attributes_767c0c17891c439fbbf0bdc72f24ab6c4k);
31
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.setProperties(element_767c0c17891c439fbbf0bdc72f24ab6c4i, option, attributes_767c0c17891c439fbbf0bdc72f24ab6c4k);
32
+ template_767c0c17891c439fbbf0bdc72f24ab6c1.slot(element_767c0c17891c439fbbf0bdc72f24ab6c4j, o.content);
33
+ return root_767c0c17891c439fbbf0bdc72f24ab6c4g;
34
34
  })();
35
35
  }));
36
- return root_6f5bab561bca4d9ab40f79d00d21118047;
36
+ return root_767c0c17891c439fbbf0bdc72f24ab6c4l;
37
37
  })());
38
38
  });