@esportsplus/ui 0.51.6 → 0.53.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 (183) hide show
  1. package/.github/workflows/bump.yml +4 -1
  2. package/.github/workflows/publish.yml +4 -0
  3. package/README.md +2 -3
  4. package/build/components/accordion/index.d.ts +22 -16
  5. package/build/components/accordion/index.js +10 -36
  6. package/build/components/accordion/scss/index.scss +1 -1
  7. package/build/components/back/index.d.ts +16 -13
  8. package/build/components/back/index.js +11 -11
  9. package/build/components/button/index.d.ts +22 -22
  10. package/build/components/button/index.js +25 -25
  11. package/build/components/checkbox/index.d.ts +1 -1
  12. package/build/components/checkbox/index.js +27 -23
  13. package/build/components/clipboard/index.d.ts +23 -20
  14. package/build/components/clipboard/index.js +1 -0
  15. package/build/components/clipboard/onclick.d.ts +1 -1
  16. package/build/components/clipboard/onclick.js +16 -16
  17. package/build/components/clipboard/write.d.ts +1 -1
  18. package/build/components/counter/index.d.ts +5 -5
  19. package/build/components/counter/index.js +34 -34
  20. package/build/components/ellipsis/index.d.ts +1 -1
  21. package/build/components/ellipsis/index.js +5 -5
  22. package/build/components/form/action.d.ts +3 -3
  23. package/build/components/form/action.js +8 -8
  24. package/build/components/form/index.d.ts +2 -2
  25. package/build/components/form/input.d.ts +8 -6
  26. package/build/components/form/input.js +3 -3
  27. package/build/components/frame/index.d.ts +16 -15
  28. package/build/components/frame/index.js +11 -5
  29. package/build/components/highlight/index.d.ts +17 -16
  30. package/build/components/highlight/index.js +16 -16
  31. package/build/components/icon/index.d.ts +11 -11
  32. package/build/components/icon/index.js +8 -8
  33. package/build/components/index.d.ts +1 -4
  34. package/build/components/index.js +1 -4
  35. package/build/components/input/index.d.ts +1 -1
  36. package/build/components/input/index.js +21 -21
  37. package/build/components/json/download.d.ts +1 -1
  38. package/build/components/loader/index.d.ts +17 -16
  39. package/build/components/loader/index.js +35 -35
  40. package/build/components/loader/scss/index.scss +1 -1
  41. package/build/components/loading/index.d.ts +1 -1
  42. package/build/components/loading/index.js +5 -5
  43. package/build/components/overlay/index.d.ts +16 -15
  44. package/build/components/overlay/index.js +11 -5
  45. package/build/components/overlay/scss/index.scss +1 -1
  46. package/build/components/page/scss/index.scss +1 -1
  47. package/build/components/radio/index.js +1 -1
  48. package/build/components/range/index.d.ts +1 -1
  49. package/build/components/range/index.js +26 -26
  50. package/build/components/root/index.d.ts +1 -4
  51. package/build/components/root/onclick.d.ts +4 -4
  52. package/build/components/root/scss/index.scss +1 -1
  53. package/build/components/select/index.d.ts +4 -7
  54. package/build/components/select/index.js +92 -98
  55. package/build/components/sidebar/index.d.ts +16 -15
  56. package/build/components/sidebar/index.js +11 -5
  57. package/build/components/sidebar/scss/index.scss +1 -1
  58. package/build/components/switch/index.js +1 -1
  59. package/build/components/textarea/index.d.ts +1 -1
  60. package/build/components/textarea/index.js +21 -21
  61. package/build/components/toast/index.d.ts +9 -0
  62. package/build/components/toast/index.js +157 -0
  63. package/build/components/toast/manager.d.ts +60 -0
  64. package/build/components/toast/manager.js +203 -0
  65. package/build/components/toast/scss/index.scss +2 -0
  66. package/build/components/toast/svg/check.svg +1 -0
  67. package/build/components/toast/svg/chevron.svg +1 -0
  68. package/build/components/toast/svg/close.svg +1 -0
  69. package/build/components/toast/svg/copy.svg +1 -0
  70. package/build/components/toast/svg/error.svg +1 -0
  71. package/build/components/toast/svg/info.svg +1 -0
  72. package/build/components/toast/svg/loading.svg +1 -0
  73. package/build/components/toast/svg/success.svg +1 -0
  74. package/build/components/toast/svg/warning.svg +1 -0
  75. package/build/components/tooltip/index.d.ts +40 -40
  76. package/build/components/tooltip/menu.d.ts +11 -12
  77. package/build/components/tooltip/menu.js +38 -24
  78. package/build/components/tooltip/onclick.d.ts +1151 -1151
  79. package/build/components/tooltip/onclick.js +17 -17
  80. package/build/components/tooltip/onhover.d.ts +17 -16
  81. package/build/components/tooltip/onhover.js +17 -17
  82. package/build/components/typewriter/index.d.ts +11 -11
  83. package/build/components/typewriter/index.js +16 -16
  84. package/build/css-utilities/index.scss +1 -1
  85. package/build/css-utilities/scroll-fade/scss/index.scss +2 -0
  86. package/build/css-utilities/scrollbar/scss/index.scss +2 -0
  87. package/build/themes/dark/back.d.ts +8 -4
  88. package/build/themes/dark/index.d.ts +0 -1
  89. package/build/themes/dark/index.js +0 -1
  90. package/build/themes/dark/input.d.ts +2 -2
  91. package/build/themes/dark/select.d.ts +60 -110
  92. package/build/themes/dark/textarea.d.ts +2 -2
  93. package/package.json +15 -15
  94. package/pnpm-workspace.yaml +11 -0
  95. package/src/components/accordion/index.ts +7 -30
  96. package/src/components/accordion/scss/index.scss +9 -12
  97. package/src/components/back/index.ts +4 -5
  98. package/src/components/button/index.ts +2 -3
  99. package/src/components/checkbox/index.ts +7 -2
  100. package/src/components/clipboard/index.ts +2 -1
  101. package/src/components/clipboard/onclick.ts +3 -4
  102. package/src/components/form/input.ts +4 -4
  103. package/src/components/frame/index.ts +9 -5
  104. package/src/components/highlight/index.ts +2 -3
  105. package/src/components/icon/index.ts +2 -3
  106. package/src/components/index.ts +1 -4
  107. package/src/components/loader/index.ts +5 -6
  108. package/src/components/loader/scss/index.scss +1 -1
  109. package/src/components/overlay/index.ts +9 -5
  110. package/src/components/overlay/scss/index.scss +0 -1
  111. package/src/components/page/scss/index.scss +1 -1
  112. package/src/components/root/scss/index.scss +35 -4
  113. package/src/components/root/scss/variables.scss +1 -2
  114. package/src/components/select/index.ts +71 -83
  115. package/src/components/sidebar/index.ts +9 -5
  116. package/src/components/sidebar/scss/index.scss +0 -1
  117. package/src/components/toast/index.ts +188 -0
  118. package/src/components/toast/manager.ts +312 -0
  119. package/src/components/toast/scss/index.scss +276 -0
  120. package/src/components/toast/scss/variables.scss +19 -0
  121. package/src/components/toast/svg/check.svg +1 -0
  122. package/src/components/toast/svg/chevron.svg +1 -0
  123. package/src/components/toast/svg/close.svg +1 -0
  124. package/src/components/toast/svg/copy.svg +1 -0
  125. package/src/components/toast/svg/error.svg +1 -0
  126. package/src/components/toast/svg/info.svg +1 -0
  127. package/src/components/toast/svg/loading.svg +1 -0
  128. package/src/components/toast/svg/success.svg +1 -0
  129. package/src/components/toast/svg/warning.svg +1 -0
  130. package/src/components/tooltip/menu.ts +8 -4
  131. package/src/components/tooltip/onclick.ts +3 -4
  132. package/src/components/tooltip/onhover.ts +2 -3
  133. package/src/components/typewriter/index.ts +2 -3
  134. package/src/css-utilities/index.scss +3 -2
  135. package/src/css-utilities/scroll-fade/scss/index.scss +47 -0
  136. package/src/css-utilities/scroll-fade/scss/variables.scss +3 -0
  137. package/src/css-utilities/scrollbar/scss/index.scss +53 -0
  138. package/src/css-utilities/scrollbar/scss/variables.scss +5 -0
  139. package/src/themes/dark/index.ts +0 -1
  140. package/src/tokens/scss/color.scss +14 -14
  141. package/src/tokens/scss/font-size.scss +12 -11
  142. package/src/tokens/scss/line-height.scss +7 -4
  143. package/src/tokens/scss/scale.scss +22 -0
  144. package/src/tokens/scss/size.scss +12 -9
  145. package/src/tokens/scss/spacer.scss +9 -9
  146. package/storage/svg/bolt.svg +1 -0
  147. package/storage/svg/star.svg +1 -0
  148. package/tsconfig.json +6 -2
  149. package/vite-env.d.ts +1 -0
  150. package/vite.config.ts +73 -72
  151. package/build/components/alert/index.d.ts +0 -19
  152. package/build/components/alert/index.js +0 -151
  153. package/build/components/alert/scss/index.scss +0 -2
  154. package/build/components/alert/svg/check.svg +0 -11
  155. package/build/components/alert/svg/close.svg +0 -12
  156. package/build/components/alert/svg/error.svg +0 -18
  157. package/build/components/scrollbar/index.d.ts +0 -27
  158. package/build/components/scrollbar/index.js +0 -56
  159. package/build/components/scrollbar/scss/index.scss +0 -2
  160. package/build/components/site/index.d.ts +0 -20
  161. package/build/components/site/index.js +0 -9
  162. package/build/components/site/scss/index.scss +0 -2
  163. package/build/components/template/index.d.ts +0 -13
  164. package/build/components/template/index.js +0 -21
  165. package/build/css-utilities/scroller/scss/index.scss +0 -2
  166. package/build/themes/dark/alert.d.ts +0 -11
  167. package/build/themes/dark/alert.js +0 -20
  168. package/src/components/accordion/scss/variables.scss +0 -9
  169. package/src/components/alert/index.ts +0 -165
  170. package/src/components/alert/scss/index.scss +0 -25
  171. package/src/components/alert/scss/variables.scss +0 -3
  172. package/src/components/alert/svg/check.svg +0 -11
  173. package/src/components/alert/svg/close.svg +0 -12
  174. package/src/components/alert/svg/error.svg +0 -18
  175. package/src/components/scrollbar/index.ts +0 -70
  176. package/src/components/scrollbar/scss/index.scss +0 -82
  177. package/src/components/scrollbar/scss/variables.scss +0 -6
  178. package/src/components/site/index.ts +0 -11
  179. package/src/components/site/scss/index.scss +0 -3
  180. package/src/components/template/index.ts +0 -40
  181. package/src/css-utilities/scroller/scss/index.scss +0 -8
  182. package/src/css-utilities/scroller/scss/variables.scss +0 -4
  183. package/src/themes/dark/alert.ts +0 -23
@@ -3,8 +3,8 @@ declare const _default: {
3
3
  menu: {
4
4
  (): ReturnType<(this: {
5
5
  attributes?: ({
6
- [key: `aria-${string}`]: string | number | boolean | undefined;
7
- [key: `data-${string}`]: string | undefined;
6
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
7
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
8
8
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
9
9
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
10
10
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -133,8 +133,8 @@ declare const _default: {
133
133
  }) | undefined;
134
134
  content?: import("@esportsplus/template").Renderable<any>;
135
135
  }, attributes: Readonly<{
136
- [key: `aria-${string}`]: string | number | boolean | undefined;
137
- [key: `data-${string}`]: string | undefined;
136
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
137
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
138
138
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
139
139
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
140
140
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -262,8 +262,8 @@ declare const _default: {
262
262
  };
263
263
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
264
264
  <T extends {
265
- [key: `aria-${string}`]: string | number | boolean | undefined;
266
- [key: `data-${string}`]: string | undefined;
265
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
266
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
267
267
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
268
268
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
269
269
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -391,8 +391,8 @@ declare const _default: {
391
391
  };
392
392
  }>(attributes: T): ReturnType<(this: {
393
393
  attributes?: ({
394
- [key: `aria-${string}`]: string | number | boolean | undefined;
395
- [key: `data-${string}`]: string | undefined;
394
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
395
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
396
396
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
397
397
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
398
398
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -521,8 +521,8 @@ declare const _default: {
521
521
  }) | undefined;
522
522
  content?: import("@esportsplus/template").Renderable<any>;
523
523
  }, attributes: Readonly<{
524
- [key: `aria-${string}`]: string | number | boolean | undefined;
525
- [key: `data-${string}`]: string | undefined;
524
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
525
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
526
526
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
527
527
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
528
528
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -651,8 +651,8 @@ declare const _default: {
651
651
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
652
652
  <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
653
653
  attributes?: ({
654
- [key: `aria-${string}`]: string | number | boolean | undefined;
655
- [key: `data-${string}`]: string | undefined;
654
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
655
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
656
656
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
657
657
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
658
658
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -781,8 +781,8 @@ declare const _default: {
781
781
  }) | undefined;
782
782
  content?: import("@esportsplus/template").Renderable<any>;
783
783
  }, attributes: Readonly<{
784
- [key: `aria-${string}`]: string | number | boolean | undefined;
785
- [key: `data-${string}`]: string | undefined;
784
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
785
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
786
786
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
787
787
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
788
788
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -910,8 +910,8 @@ declare const _default: {
910
910
  };
911
911
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
912
912
  (attributes: {
913
- [key: `aria-${string}`]: string | number | boolean | undefined;
914
- [key: `data-${string}`]: string | undefined;
913
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
914
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
915
915
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
916
916
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
917
917
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1039,8 +1039,8 @@ declare const _default: {
1039
1039
  };
1040
1040
  }, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
1041
1041
  attributes?: ({
1042
- [key: `aria-${string}`]: string | number | boolean | undefined;
1043
- [key: `data-${string}`]: string | undefined;
1042
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1043
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1044
1044
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1045
1045
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1046
1046
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1169,8 +1169,8 @@ declare const _default: {
1169
1169
  }) | undefined;
1170
1170
  content?: import("@esportsplus/template").Renderable<any>;
1171
1171
  }, attributes: Readonly<{
1172
- [key: `aria-${string}`]: string | number | boolean | undefined;
1173
- [key: `data-${string}`]: string | undefined;
1172
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1173
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1174
1174
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1175
1175
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1176
1176
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1301,8 +1301,8 @@ declare const _default: {
1301
1301
  onclick: {
1302
1302
  (): ReturnType<(this: {
1303
1303
  attributes?: ({
1304
- [key: `aria-${string}`]: string | number | boolean | undefined;
1305
- [key: `data-${string}`]: string | undefined;
1304
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1305
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1306
1306
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1307
1307
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1308
1308
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1424,8 +1424,8 @@ declare const _default: {
1424
1424
  }) | undefined;
1425
1425
  content?: import("@esportsplus/template").Renderable<any>;
1426
1426
  }, attributes: Readonly<{
1427
- [key: `aria-${string}`]: string | number | boolean | undefined;
1428
- [key: `data-${string}`]: string | undefined;
1427
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1428
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1429
1429
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1430
1430
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1431
1431
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1546,8 +1546,8 @@ declare const _default: {
1546
1546
  toggle?: boolean;
1547
1547
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
1548
1548
  <T extends {
1549
- [key: `aria-${string}`]: string | number | boolean | undefined;
1550
- [key: `data-${string}`]: string | undefined;
1549
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1550
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1551
1551
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1552
1552
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1553
1553
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1668,8 +1668,8 @@ declare const _default: {
1668
1668
  toggle?: boolean;
1669
1669
  }>(attributes: T): ReturnType<(this: {
1670
1670
  attributes?: ({
1671
- [key: `aria-${string}`]: string | number | boolean | undefined;
1672
- [key: `data-${string}`]: string | undefined;
1671
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1672
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1673
1673
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1674
1674
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1675
1675
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1791,8 +1791,8 @@ declare const _default: {
1791
1791
  }) | undefined;
1792
1792
  content?: import("@esportsplus/template").Renderable<any>;
1793
1793
  }, attributes: Readonly<{
1794
- [key: `aria-${string}`]: string | number | boolean | undefined;
1795
- [key: `data-${string}`]: string | undefined;
1794
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1795
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1796
1796
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1797
1797
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1798
1798
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1914,8 +1914,8 @@ declare const _default: {
1914
1914
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
1915
1915
  <T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
1916
1916
  attributes?: ({
1917
- [key: `aria-${string}`]: string | number | boolean | undefined;
1918
- [key: `data-${string}`]: string | undefined;
1917
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1918
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
1919
1919
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
1920
1920
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
1921
1921
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2037,8 +2037,8 @@ declare const _default: {
2037
2037
  }) | undefined;
2038
2038
  content?: import("@esportsplus/template").Renderable<any>;
2039
2039
  }, attributes: Readonly<{
2040
- [key: `aria-${string}`]: string | number | boolean | undefined;
2041
- [key: `data-${string}`]: string | undefined;
2040
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2041
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2042
2042
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2043
2043
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2044
2044
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2159,8 +2159,8 @@ declare const _default: {
2159
2159
  toggle?: boolean;
2160
2160
  }>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
2161
2161
  (attributes: {
2162
- [key: `aria-${string}`]: string | number | boolean | undefined;
2163
- [key: `data-${string}`]: string | undefined;
2162
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2163
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2164
2164
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2165
2165
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2166
2166
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2281,8 +2281,8 @@ declare const _default: {
2281
2281
  toggle?: boolean;
2282
2282
  }, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
2283
2283
  attributes?: ({
2284
- [key: `aria-${string}`]: string | number | boolean | undefined;
2285
- [key: `data-${string}`]: string | undefined;
2284
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2285
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2286
2286
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2287
2287
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2288
2288
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -2404,8 +2404,8 @@ declare const _default: {
2404
2404
  }) | undefined;
2405
2405
  content?: import("@esportsplus/template").Renderable<any>;
2406
2406
  }, attributes: Readonly<{
2407
- [key: `aria-${string}`]: string | number | boolean | undefined;
2408
- [key: `data-${string}`]: string | undefined;
2407
+ [key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2408
+ [key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
2409
2409
  class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
2410
2410
  onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
2411
2411
  ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
@@ -1,5 +1,4 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 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_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.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_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: {
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_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
28
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>) => Renderable<any>>;
29
- (attributes: A, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.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_0ff113fe0a6246fbbfe92857b2a0303c1.Renderable<any>;
32
- }, attributes: Readonly<A>, content: template_0ff113fe0a6246fbbfe92857b2a0303c1.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,52 @@
1
- import * as template_0ff113fe0a6246fbbfe92857b2a0303c1 from '@esportsplus/template';
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import { component } from '@esportsplus/template';
3
+ import * as reactivity_u0 from '@esportsplus/reactivity';
2
4
  import { omit } from '@esportsplus/utilities';
3
- import template from '../../components/template/index.js';
4
5
  import onclick from './onclick.js';
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 '>`);
6
+ const template_0p4v5172 = template_u1.template(`<a class='link --width-full' target='_blank' >`);
7
+ const template_0p4v5175 = template_u1.template(`<div class='link --width-full' >`);
8
+ const template_0p4v5178 = template_u1.template(`<!--$--><div class='tooltip-content ' >`);
9
+ class ReactiveObject_0p4v5170 extends reactivity_u0.ReactiveObject {
10
+ #active = this[reactivity_u0.SIGNAL](false);
11
+ constructor() {
12
+ super(null);
13
+ }
14
+ get active() {
15
+ return reactivity_u0.read(this.#active);
16
+ }
17
+ set active(_v0) {
18
+ reactivity_u0.write(this.#active, _v0);
19
+ }
20
+ }
8
21
  const OMIT = ['options', 'option', 'tooltip-content'];
9
22
  const OMIT_OPTION = ['content'];
10
23
  const OMIT_TOOLTIP_CONTENT = ['direction'];
11
- export default template.factory((attributes, content) => {
12
- let options = attributes.options, option = attributes.option, tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
13
- return onclick(omit(attributes, OMIT), (() => {
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) => {
24
+ export default component((attributes, content) => {
25
+ let options = attributes.options, option = attributes.option, state = attributes.state || new ReactiveObject_0p4v5170(), tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
26
+ return onclick({ ...omit(attributes, OMIT), state }, (() => {
27
+ let root_0p4v5177 = template_0p4v5178(), element_0p4v5179 = root_0p4v5177.firstChild, element_0p4v517a = element_0p4v5179.nextSibling;
28
+ template_u1.slot(element_0p4v5179, content);
29
+ template_u1.setList(element_0p4v517a, 'class', `tooltip-content--${tooltipContentDirection}`);
30
+ template_u1.setProperties(element_0p4v517a, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT));
31
+ template_u1.setProperty(element_0p4v517a, 'inert', () => !state.active);
32
+ template_u1.slot(element_0p4v517a, options.map((o) => {
19
33
  if (o.href) {
20
34
  return (() => {
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;
35
+ let root_0p4v5171 = template_0p4v5172(), element_0p4v5173 = root_0p4v5171.firstChild;
36
+ template_u1.setProperties(element_0p4v5173, omit(o, OMIT_OPTION));
37
+ template_u1.setProperties(element_0p4v5173, option);
38
+ template_u1.slot(element_0p4v5173, o.content, 1);
39
+ return root_0p4v5171;
26
40
  })();
27
41
  }
28
42
  return (() => {
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;
43
+ let root_0p4v5174 = template_0p4v5175(), element_0p4v5176 = root_0p4v5174.firstChild;
44
+ template_u1.setProperties(element_0p4v5176, omit(o, OMIT_OPTION));
45
+ template_u1.setProperties(element_0p4v5176, option);
46
+ template_u1.slot(element_0p4v5176, o.content, 1);
47
+ return root_0p4v5174;
34
48
  })();
35
49
  }), 1);
36
- return root_0ff113fe0a6246fbbfe92857b2a0303c36;
50
+ return root_0p4v5177;
37
51
  })());
38
52
  });