@esportsplus/ui 0.48.7 → 0.49.0

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 (87) hide show
  1. package/README.md +4 -4
  2. package/build/components/accordion/index.d.ts +16 -16
  3. package/build/components/accordion/index.js +16 -15
  4. package/build/components/alert/index.d.ts +1 -1
  5. package/build/components/alert/index.js +50 -42
  6. package/build/components/back/index.d.ts +8 -9
  7. package/build/components/back/index.js +11 -10
  8. package/build/components/button/index.d.ts +21 -22
  9. package/build/components/button/index.js +24 -24
  10. package/build/components/checkbox/index.d.ts +1 -1
  11. package/build/components/checkbox/index.js +20 -18
  12. package/build/components/clipboard/index.d.ts +1120 -1120
  13. package/build/components/clipboard/onclick.d.ts +1 -1
  14. package/build/components/clipboard/onclick.js +17 -18
  15. package/build/components/counter/index.d.ts +1 -1
  16. package/build/components/counter/index.js +27 -34
  17. package/build/components/ellipsis/index.d.ts +1 -1
  18. package/build/components/ellipsis/index.js +8 -7
  19. package/build/components/form/action.d.ts +1 -1
  20. package/build/components/form/action.js +15 -12
  21. package/build/components/form/index.d.ts +3 -3
  22. package/build/components/form/input.d.ts +1 -1
  23. package/build/components/frame/index.d.ts +10 -10
  24. package/build/components/highlight/index.d.ts +16 -16
  25. package/build/components/highlight/index.js +14 -13
  26. package/build/components/icon/index.d.ts +10 -11
  27. package/build/components/icon/index.js +6 -9
  28. package/build/components/input/index.d.ts +1 -1
  29. package/build/components/input/index.js +17 -16
  30. package/build/components/loader/index.d.ts +16 -16
  31. package/build/components/loader/index.js +44 -37
  32. package/build/components/loading/index.d.ts +1 -1
  33. package/build/components/loading/index.js +9 -7
  34. package/build/components/overlay/index.d.ts +10 -10
  35. package/build/components/radio/index.d.ts +2 -2
  36. package/build/components/range/index.d.ts +1 -1
  37. package/build/components/range/index.js +21 -19
  38. package/build/components/scrollbar/index.d.ts +11 -12
  39. package/build/components/scrollbar/index.js +32 -19
  40. package/build/components/select/index.d.ts +1 -1
  41. package/build/components/select/index.js +88 -83
  42. package/build/components/sidebar/index.d.ts +10 -10
  43. package/build/components/site/index.d.ts +10 -10
  44. package/build/components/switch/index.d.ts +2 -2
  45. package/build/components/template/index.d.ts +1 -1
  46. package/build/components/textarea/index.d.ts +1 -1
  47. package/build/components/textarea/index.js +17 -16
  48. package/build/components/tooltip/index.d.ts +2295 -2295
  49. package/build/components/tooltip/menu.d.ts +11 -12
  50. package/build/components/tooltip/menu.js +33 -29
  51. package/build/components/tooltip/onclick.d.ts +1120 -1121
  52. package/build/components/tooltip/onclick.js +14 -12
  53. package/build/components/tooltip/onhover.d.ts +16 -16
  54. package/build/components/tooltip/onhover.js +16 -14
  55. package/build/components/typewriter/index.d.ts +10 -11
  56. package/build/components/typewriter/index.js +10 -12
  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 +2 -2
  63. package/src/components/accordion/index.ts +1 -1
  64. package/src/components/alert/index.ts +1 -1
  65. package/src/components/back/index.ts +1 -1
  66. package/src/components/button/index.ts +1 -1
  67. package/src/components/checkbox/index.ts +1 -1
  68. package/src/components/clipboard/onclick.ts +1 -1
  69. package/src/components/counter/index.ts +1 -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 +1 -1
  74. package/src/components/icon/index.ts +1 -1
  75. package/src/components/input/index.ts +1 -1
  76. package/src/components/loader/index.ts +1 -1
  77. package/src/components/loading/index.ts +1 -1
  78. package/src/components/range/index.ts +1 -1
  79. package/src/components/scrollbar/index.ts +1 -1
  80. package/src/components/select/index.ts +1 -1
  81. package/src/components/template/index.ts +1 -1
  82. package/src/components/textarea/index.ts +1 -1
  83. package/src/components/tooltip/menu.ts +1 -1
  84. package/src/components/tooltip/onclick.ts +1 -1
  85. package/src/components/tooltip/onhover.ts +1 -1
  86. package/src/components/typewriter/index.ts +1 -1
  87. package/tsconfig.json +1 -1
@@ -2,19 +2,19 @@ import './scss/index.scss';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
4
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
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>>;
5
+ content?: import("@esportsplus/frontend").Renderable<any>;
6
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
7
7
  <T extends import("../../components/scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
8
8
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
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>>;
11
- <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
9
+ content?: import("@esportsplus/frontend").Renderable<any>;
10
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
11
+ <T extends import("@esportsplus/frontend").Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
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: {
13
+ content?: import("@esportsplus/frontend").Renderable<any>;
14
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
15
+ (attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/frontend").Renderable<any>): ReturnType<(this: {
16
16
  attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
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>>;
17
+ content?: import("@esportsplus/frontend").Renderable<any>;
18
+ }, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/frontend").Renderable<any>) => import("@esportsplus/frontend").Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import './scss/index.scss';
2
2
  declare const _default: (this: {
3
- attributes?: import("@esportsplus/template").Attributes;
4
- } | any, attributes?: import("@esportsplus/template").Attributes & {
3
+ attributes?: import("@esportsplus/frontend").Attributes;
4
+ } | any, attributes?: import("@esportsplus/frontend").Attributes & {
5
5
  state?: {
6
6
  active: boolean;
7
7
  error: string;
@@ -1,4 +1,4 @@
1
- import { Attributes, Renderable } from '@esportsplus/template';
1
+ import { Attributes, Renderable } from '@esportsplus/frontend';
2
2
  declare const _default: {
3
3
  factory: <A extends Attributes, C = Renderable<any>, Context = {
4
4
  attributes?: A;
@@ -1,4 +1,4 @@
1
- import { Attributes } from '@esportsplus/template';
1
+ import { type Attributes } from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
3
  export default function (this: {
4
4
  attributes?: Attributes;
@@ -1,29 +1,30 @@
1
- import * as template_69d8ea42df6d40bfb4950d47c33fd3631 from '@esportsplus/template';
2
- import { reactive } from '@esportsplus/template';
1
+ import { html, reactive } from '@esportsplus/frontend';
3
2
  import { omit } from '@esportsplus/utilities';
4
3
  import form from '../../components/form/index.js';
5
4
  import './scss/index.scss';
6
- const template_69d8ea42df6d40bfb4950d47c33fd3633u = template_69d8ea42df6d40bfb4950d47c33fd3631.template(`<textarea class='textarea'></textarea>`);
7
5
  const OMIT = ['state'];
8
6
  export default function (attributes) {
9
7
  let state = attributes.state || reactive({
10
8
  active: false,
11
9
  error: ''
12
10
  });
13
- return (() => {
14
- let root_69d8ea42df6d40bfb4950d47c33fd3633t = template_69d8ea42df6d40bfb4950d47c33fd3633u(), element_69d8ea42df6d40bfb4950d47c33fd3633v = root_69d8ea42df6d40bfb4950d47c33fd3633t.firstChild, attributes_69d8ea42df6d40bfb4950d47c33fd3633w = { "class": "textarea" };
15
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3633v, this?.attributes && omit(this.attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3633w);
16
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperties(element_69d8ea42df6d40bfb4950d47c33fd3633v, omit(attributes, OMIT), attributes_69d8ea42df6d40bfb4950d47c33fd3633w);
17
- template_69d8ea42df6d40bfb4950d47c33fd3631.setList(element_69d8ea42df6d40bfb4950d47c33fd3633v, 'class', () => state.active && '--active', attributes_69d8ea42df6d40bfb4950d47c33fd3633w);
18
- template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd3633v, 'focusin', () => {
11
+ return html `
12
+ <textarea
13
+ class='textarea'
14
+ ${this?.attributes && omit(this.attributes, OMIT)}
15
+ ${omit(attributes, OMIT)}
16
+ ${{
17
+ class: () => state.active && '--active',
18
+ onfocusin: () => {
19
19
  state.active = true;
20
- });
21
- template_69d8ea42df6d40bfb4950d47c33fd3631.on(element_69d8ea42df6d40bfb4950d47c33fd3633v, 'focusout', () => {
20
+ },
21
+ onfocusout: () => {
22
22
  state.active = false;
23
- });
24
- template_69d8ea42df6d40bfb4950d47c33fd3631.onrender(element_69d8ea42df6d40bfb4950d47c33fd3633v, form.input.onrender(state));
25
- template_69d8ea42df6d40bfb4950d47c33fd3631.setProperty(element_69d8ea42df6d40bfb4950d47c33fd3633v, 'value', attributes?.value || '');
26
- return root_69d8ea42df6d40bfb4950d47c33fd3633t;
27
- })();
23
+ },
24
+ onrender: form.input.onrender(state),
25
+ value: attributes?.value || ''
26
+ }}
27
+ ></textarea>
28
+ `;
28
29
  }
29
30
  ;