@esportsplus/ui 0.51.4 → 0.51.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 (57) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +17 -17
  3. package/build/components/alert/index.d.ts +1 -1
  4. package/build/components/alert/index.js +42 -43
  5. package/build/components/back/index.d.ts +8 -8
  6. package/build/components/back/index.js +8 -8
  7. package/build/components/button/index.d.ts +21 -21
  8. package/build/components/button/index.js +23 -23
  9. package/build/components/checkbox/index.d.ts +2 -2
  10. package/build/components/checkbox/index.js +22 -23
  11. package/build/components/clipboard/index.d.ts +40 -30
  12. package/build/components/clipboard/onclick.js +13 -13
  13. package/build/components/counter/index.d.ts +1 -1
  14. package/build/components/counter/index.js +35 -35
  15. package/build/components/ellipsis/index.d.ts +1 -1
  16. package/build/components/ellipsis/index.js +5 -5
  17. package/build/components/form/action.d.ts +1 -1
  18. package/build/components/form/action.js +8 -8
  19. package/build/components/form/index.d.ts +1 -1
  20. package/build/components/highlight/index.d.ts +16 -16
  21. package/build/components/highlight/index.js +15 -15
  22. package/build/components/icon/index.d.ts +11 -11
  23. package/build/components/icon/index.js +10 -8
  24. package/build/components/input/index.d.ts +1 -1
  25. package/build/components/input/index.js +20 -20
  26. package/build/components/loader/index.d.ts +16 -16
  27. package/build/components/loader/index.js +34 -34
  28. package/build/components/loading/index.d.ts +1 -1
  29. package/build/components/loading/index.js +5 -5
  30. package/build/components/radio/index.d.ts +1 -1
  31. package/build/components/range/index.d.ts +1 -1
  32. package/build/components/range/index.js +25 -25
  33. package/build/components/root/scss/index.scss +1 -1
  34. package/build/components/scrollbar/index.d.ts +11 -11
  35. package/build/components/scrollbar/index.js +24 -24
  36. package/build/components/select/index.js +41 -41
  37. package/build/components/switch/index.d.ts +1 -1
  38. package/build/components/textarea/index.d.ts +1 -1
  39. package/build/components/textarea/index.js +20 -20
  40. package/build/components/tooltip/index.d.ts +80 -60
  41. package/build/components/tooltip/menu.d.ts +11 -11
  42. package/build/components/tooltip/menu.js +21 -21
  43. package/build/components/tooltip/onclick.d.ts +1131 -1121
  44. package/build/components/tooltip/onclick.js +14 -14
  45. package/build/components/tooltip/onhover.d.ts +16 -16
  46. package/build/components/tooltip/onhover.js +15 -15
  47. package/build/components/typewriter/index.d.ts +11 -11
  48. package/build/components/typewriter/index.js +14 -14
  49. package/build/themes/dark/alert.d.ts +1 -1
  50. package/build/themes/dark/input.d.ts +5 -4
  51. package/build/themes/dark/select.d.ts +40 -30
  52. package/build/themes/dark/textarea.d.ts +5 -4
  53. package/package.json +7 -7
  54. package/pnpm-workspace.yaml +17 -0
  55. package/src/components/alert/index.ts +2 -4
  56. package/src/components/icon/index.ts +7 -3
  57. package/src/tokens/scss/font-size.scss +9 -9
@@ -1,4 +1,4 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
2
2
  import { Attributes, Renderable } from '@esportsplus/template';
3
3
  type A = Attributes & {
4
4
  options: (Attributes & {
@@ -16,19 +16,19 @@ type A = Attributes & {
16
16
  declare const _default: {
17
17
  (): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
19
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => Renderable<any>>;
21
21
  <T extends A>(attributes: T): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
25
- <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>(content: T): ReturnType<(this: {
23
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => Renderable<any>>;
25
+ <T extends template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>>(content: T): ReturnType<(this: {
26
26
  attributes?: A | undefined;
27
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>): ReturnType<(this: {
27
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
28
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => Renderable<any>>;
29
+ (attributes: A, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>): ReturnType<(this: {
30
30
  attributes?: A | undefined;
31
- content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => Renderable<any>>;
31
+ content?: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
32
+ }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => Renderable<any>>;
33
33
  };
34
34
  export default _default;
@@ -1,38 +1,38 @@
1
- import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
1
+ import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 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_b7478c4a5ff041d4bc1434ee94c2db374c = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<a class='link --width-full' target='_blank'><!--$--></a>`);
6
- const template_b7478c4a5ff041d4bc1434ee94c2db374h = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='link --width-full'><!--$--></div>`);
7
- const template_b7478c4a5ff041d4bc1434ee94c2db374m = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<!--$--><div class='tooltip-content '><!--$--></div>`);
5
+ const template_0ff113fe0a6246fbbfe92857b2a0303c31 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<a class='link --width-full' target='_blank'>`);
6
+ const template_0ff113fe0a6246fbbfe92857b2a0303c34 = template_0ff113fe0a6246fbbfe92857b2a0303c1.template(`<div class='link --width-full'>`);
7
+ const template_0ff113fe0a6246fbbfe92857b2a0303c37 = template_0ff113fe0a6246fbbfe92857b2a0303c1.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_b7478c4a5ff041d4bc1434ee94c2db374l = template_b7478c4a5ff041d4bc1434ee94c2db374m(), element_b7478c4a5ff041d4bc1434ee94c2db374n = root_b7478c4a5ff041d4bc1434ee94c2db374l.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db374o = element_b7478c4a5ff041d4bc1434ee94c2db374n.nextSibling, element_b7478c4a5ff041d4bc1434ee94c2db374p = element_b7478c4a5ff041d4bc1434ee94c2db374o.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374q = { "class": " tooltip-content " };
15
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374n, content);
16
- template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db374o, 'class', `tooltip-content--${tooltipContentDirection}`, attributes_b7478c4a5ff041d4bc1434ee94c2db374q);
17
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374o, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT), attributes_b7478c4a5ff041d4bc1434ee94c2db374q);
18
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374p, options.map((o) => {
14
+ let root_0ff113fe0a6246fbbfe92857b2a0303c36 = template_0ff113fe0a6246fbbfe92857b2a0303c37(), element_0ff113fe0a6246fbbfe92857b2a0303c38 = root_0ff113fe0a6246fbbfe92857b2a0303c36.firstChild, element_0ff113fe0a6246fbbfe92857b2a0303c39 = element_0ff113fe0a6246fbbfe92857b2a0303c38.nextSibling;
15
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c38, content);
16
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setList(element_0ff113fe0a6246fbbfe92857b2a0303c39, 'class', `tooltip-content--${tooltipContentDirection}`);
17
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c39, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT));
18
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c39, options.map((o) => {
19
19
  if (o.href) {
20
20
  return (() => {
21
- let root_b7478c4a5ff041d4bc1434ee94c2db374b = template_b7478c4a5ff041d4bc1434ee94c2db374c(), element_b7478c4a5ff041d4bc1434ee94c2db374d = root_b7478c4a5ff041d4bc1434ee94c2db374b.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db374e = element_b7478c4a5ff041d4bc1434ee94c2db374d.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374f = { "class": " link --width-full" };
22
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374d, omit(o, OMIT_OPTION), attributes_b7478c4a5ff041d4bc1434ee94c2db374f);
23
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374d, option, attributes_b7478c4a5ff041d4bc1434ee94c2db374f);
24
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374e, o.content);
25
- return root_b7478c4a5ff041d4bc1434ee94c2db374b;
21
+ let root_0ff113fe0a6246fbbfe92857b2a0303c30 = template_0ff113fe0a6246fbbfe92857b2a0303c31(), element_0ff113fe0a6246fbbfe92857b2a0303c32 = root_0ff113fe0a6246fbbfe92857b2a0303c30.firstChild;
22
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c32, omit(o, OMIT_OPTION));
23
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c32, option);
24
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c32, o.content, 1);
25
+ return root_0ff113fe0a6246fbbfe92857b2a0303c30;
26
26
  })();
27
27
  }
28
28
  return (() => {
29
- let root_b7478c4a5ff041d4bc1434ee94c2db374g = template_b7478c4a5ff041d4bc1434ee94c2db374h(), element_b7478c4a5ff041d4bc1434ee94c2db374i = root_b7478c4a5ff041d4bc1434ee94c2db374g.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db374j = element_b7478c4a5ff041d4bc1434ee94c2db374i.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db374k = { "class": " link --width-full" };
30
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374i, omit(o, OMIT_OPTION), attributes_b7478c4a5ff041d4bc1434ee94c2db374k);
31
- template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db374i, option, attributes_b7478c4a5ff041d4bc1434ee94c2db374k);
32
- template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db374j, o.content);
33
- return root_b7478c4a5ff041d4bc1434ee94c2db374g;
29
+ let root_0ff113fe0a6246fbbfe92857b2a0303c33 = template_0ff113fe0a6246fbbfe92857b2a0303c34(), element_0ff113fe0a6246fbbfe92857b2a0303c35 = root_0ff113fe0a6246fbbfe92857b2a0303c33.firstChild;
30
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c35, omit(o, OMIT_OPTION));
31
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.setProperties(element_0ff113fe0a6246fbbfe92857b2a0303c35, option);
32
+ template_0ff113fe0a6246fbbfe92857b2a0303c1.slot(element_0ff113fe0a6246fbbfe92857b2a0303c35, o.content, 1);
33
+ return root_0ff113fe0a6246fbbfe92857b2a0303c33;
34
34
  })();
35
- }));
36
- return root_b7478c4a5ff041d4bc1434ee94c2db374l;
35
+ }), 1);
36
+ return root_0ff113fe0a6246fbbfe92857b2a0303c36;
37
37
  })());
38
38
  });