@esportsplus/ui 0.53.0 → 0.54.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 (308) hide show
  1. package/README.md +51 -6
  2. package/build/components/accordion/index.d.ts +2 -19
  3. package/build/components/accordion/index.js +7 -7
  4. package/build/components/anchor/scss/index.scss +1 -1
  5. package/build/components/button/scss/index.scss +1 -1
  6. package/build/components/card/scss/index.scss +1 -1
  7. package/build/components/checkbox/index.d.ts +12 -12
  8. package/build/components/checkbox/index.js +64 -36
  9. package/build/components/checkbox/scss/index.scss +1 -1
  10. package/build/components/checkbox/svg/check.svg +1 -0
  11. package/build/components/clipboard/copy.d.ts +11 -0
  12. package/build/components/clipboard/copy.js +49 -0
  13. package/build/components/clipboard/index.d.ts +1435 -1229
  14. package/build/components/clipboard/index.js +3 -2
  15. package/build/components/clipboard/onclick.d.ts +4 -38
  16. package/build/components/clipboard/onclick.js +7 -7
  17. package/build/components/counter/index.js +58 -66
  18. package/build/components/counter/scss/index.scss +1 -1
  19. package/build/components/form/action.js +8 -8
  20. package/build/components/form/index.d.ts +4 -4
  21. package/build/components/form/input.d.ts +4 -4
  22. package/build/components/grid/scss/index.scss +1 -1
  23. package/build/components/icon/index.d.ts +2 -19
  24. package/build/components/icon/index.js +6 -6
  25. package/build/components/icon/scss/index.scss +1 -1
  26. package/build/components/index.d.ts +0 -7
  27. package/build/components/index.js +0 -7
  28. package/build/components/input/index.d.ts +1 -1
  29. package/build/components/input/index.js +11 -11
  30. package/build/components/input/scss/index.scss +1 -1
  31. package/build/components/link/scss/index.scss +1 -1
  32. package/build/components/loading/index.js +5 -5
  33. package/build/components/modal/scss/index.scss +1 -1
  34. package/build/components/normalize/scss/index.scss +1 -1
  35. package/build/components/overlay/index.d.ts +2 -19
  36. package/build/components/overlay/index.js +7 -7
  37. package/build/components/page/scss/index.scss +1 -1
  38. package/build/components/radio/index.d.ts +1436 -4
  39. package/build/components/radio/index.js +0 -1
  40. package/build/components/range/index.d.ts +1 -1
  41. package/build/components/range/index.js +13 -13
  42. package/build/components/range/scss/index.scss +1 -1
  43. package/build/components/root/scss/index.scss +1 -1
  44. package/build/components/select/index.d.ts +5 -48
  45. package/build/components/select/index.js +41 -53
  46. package/build/components/select/scss/index.scss +1 -1
  47. package/build/components/sidebar/index.d.ts +2 -19
  48. package/build/components/sidebar/index.js +7 -7
  49. package/build/components/sidebar/scss/index.scss +1 -1
  50. package/build/components/switch/index.d.ts +1436 -4
  51. package/build/components/switch/index.js +0 -1
  52. package/build/components/tabs/scss/index.scss +2 -0
  53. package/build/components/text/scss/index.scss +1 -1
  54. package/build/components/textarea/index.d.ts +719 -6
  55. package/build/components/textarea/index.js +37 -15
  56. package/build/components/textarea/scss/index.scss +1 -1
  57. package/build/components/toast/index.js +43 -43
  58. package/build/components/toast/scss/index.scss +1 -1
  59. package/build/components/tooltip/index.d.ts +2151 -2544
  60. package/build/components/tooltip/menu.d.ts +2 -18
  61. package/build/components/tooltip/menu.js +21 -21
  62. package/build/components/tooltip/onclick.d.ts +717 -1229
  63. package/build/components/tooltip/onclick.js +16 -52
  64. package/build/components/tooltip/onhover.d.ts +713 -20
  65. package/build/components/tooltip/onhover.js +9 -9
  66. package/build/components/tooltip/scss/index.scss +1 -1
  67. package/build/components/typewriter/index.d.ts +2 -19
  68. package/build/components/typewriter/index.js +8 -8
  69. package/build/css-utilities/background/scss/index.scss +1 -1
  70. package/build/css-utilities/border/scss/index.scss +1 -1
  71. package/build/css-utilities/color/scss/index.scss +1 -1
  72. package/build/css-utilities/font/geist/scss/Geist-Italic-Variable.woff2 +0 -0
  73. package/build/css-utilities/font/geist/scss/Geist-Variable.woff2 +0 -0
  74. package/build/css-utilities/font/geist/scss/GeistMono-Italic-Variable.woff2 +0 -0
  75. package/build/css-utilities/font/geist/scss/GeistMono-Variable.woff2 +0 -0
  76. package/build/css-utilities/font/geist/scss/index.scss +2 -0
  77. package/build/css-utilities/font/montserrat/index.d.ts +1 -0
  78. package/build/css-utilities/font/montserrat/index.js +1 -0
  79. package/build/css-utilities/font/montserrat/scss/index.scss +2 -0
  80. package/build/css-utilities/index.scss +1 -1
  81. package/build/css-utilities/inline/scss/index.scss +1 -1
  82. package/build/css-utilities/scrollbar/scss/index.scss +1 -1
  83. package/build/css-utilities/tabular/scss/index.scss +2 -0
  84. package/build/css-utilities/text/scss/index.scss +1 -1
  85. package/build/themes/dark/index.d.ts +0 -1
  86. package/build/themes/dark/index.js +0 -1
  87. package/build/themes/dark/input.d.ts +708 -114
  88. package/build/themes/dark/select.d.ts +732 -1406
  89. package/build/themes/dark/select.js +7 -5
  90. package/build/themes/dark/textarea.d.ts +716 -119
  91. package/package.json +12 -12
  92. package/pnpm-workspace.yaml +4 -3
  93. package/scripts/css-variables.test.mjs +50 -0
  94. package/scripts/sort-scss.md +57 -0
  95. package/scripts/sort-scss.mjs +233 -0
  96. package/scripts/sort-scss.test.mjs +217 -0
  97. package/src/components/anchor/scss/index.scss +2 -2
  98. package/src/components/button/scss/index.scss +23 -57
  99. package/src/components/button/scss/variables.scss +1 -19
  100. package/src/components/card/scss/index.scss +11 -46
  101. package/src/components/card/scss/variables.scss +1 -2
  102. package/src/components/checkbox/index.ts +27 -31
  103. package/src/components/checkbox/scss/index.scss +86 -28
  104. package/src/components/checkbox/scss/variables.scss +71 -30
  105. package/src/components/checkbox/svg/check.svg +1 -0
  106. package/src/components/clipboard/copy.ts +60 -0
  107. package/src/components/clipboard/index.ts +3 -2
  108. package/src/components/counter/index.ts +57 -57
  109. package/src/components/counter/scss/index.scss +4 -5
  110. package/src/components/counter/scss/variables.scss +0 -1
  111. package/src/components/form/input.ts +4 -3
  112. package/src/components/grid/scss/index.scss +1 -1
  113. package/src/components/icon/scss/variables.scss +0 -1
  114. package/src/components/index.ts +1 -8
  115. package/src/components/input/index.ts +1 -1
  116. package/src/components/input/scss/index.scss +8 -7
  117. package/src/components/input/scss/variables.scss +0 -1
  118. package/src/components/link/scss/index.scss +9 -34
  119. package/src/components/link/scss/variables.scss +0 -12
  120. package/src/components/modal/scss/index.scss +4 -4
  121. package/src/components/normalize/scss/index.scss +0 -1
  122. package/src/components/page/scss/index.scss +0 -6
  123. package/src/components/page/scss/variables.scss +0 -2
  124. package/src/components/radio/index.ts +0 -1
  125. package/src/components/range/index.ts +1 -1
  126. package/src/components/range/scss/index.scss +5 -5
  127. package/src/components/root/scss/index.scss +37 -63
  128. package/src/components/root/scss/variables.scss +37 -67
  129. package/src/components/select/index.ts +16 -33
  130. package/src/components/select/scss/index.scss +10 -7
  131. package/src/components/select/scss/variables.scss +0 -1
  132. package/src/components/sidebar/scss/index.scss +3 -3
  133. package/src/components/switch/index.ts +1 -2
  134. package/src/components/tabs/scss/index.scss +62 -0
  135. package/src/components/tabs/scss/variables.scss +4 -0
  136. package/src/components/text/scss/index.scss +8 -1
  137. package/src/components/text/scss/variables.scss +5 -3
  138. package/src/components/textarea/index.ts +38 -5
  139. package/src/components/textarea/scss/index.scss +24 -13
  140. package/src/components/textarea/scss/variables.scss +0 -1
  141. package/src/components/toast/scss/index.scss +1 -1
  142. package/src/components/tooltip/onclick.ts +11 -67
  143. package/src/components/tooltip/scss/index.scss +2 -3
  144. package/src/css-utilities/background/scss/variables.scss +2 -2
  145. package/src/css-utilities/border/scss/index.scss +1 -27
  146. package/src/css-utilities/border/scss/variables.scss +3 -34
  147. package/src/css-utilities/color/scss/variables.scss +2 -6
  148. package/src/css-utilities/font/geist/scss/Geist-Italic-Variable.woff2 +0 -0
  149. package/src/css-utilities/font/geist/scss/Geist-Variable.woff2 +0 -0
  150. package/src/css-utilities/font/geist/scss/GeistMono-Italic-Variable.woff2 +0 -0
  151. package/src/css-utilities/font/geist/scss/GeistMono-Variable.woff2 +0 -0
  152. package/src/css-utilities/font/geist/scss/index.scss +55 -0
  153. package/src/css-utilities/font/montserrat/index.ts +1 -0
  154. package/src/{fonts → css-utilities/font}/montserrat/scss/index.scss +15 -0
  155. package/src/css-utilities/index.scss +6 -12
  156. package/src/css-utilities/inline/scss/index.scss +0 -1
  157. package/src/css-utilities/scrollbar/scss/index.scss +42 -0
  158. package/src/css-utilities/tabular/scss/index.scss +3 -0
  159. package/src/css-utilities/text/scss/index.scss +30 -71
  160. package/src/lib/scss/css-variables.scss +29 -5
  161. package/src/themes/dark/index.ts +0 -1
  162. package/src/themes/dark/select.ts +7 -5
  163. package/src/tokens/index.scss +1 -3
  164. package/src/tokens/scss/border-radius.scss +1 -6
  165. package/src/tokens/scss/color.scss +3 -3
  166. package/src/tokens/scss/scale.scss +1 -1
  167. package/src/tokens/scss/size.scss +7 -0
  168. package/src/tokens/scss/transition.scss +4 -0
  169. package/storage/svg/arrow-left.svg +1 -0
  170. package/storage/svg/arrow-right.svg +1 -0
  171. package/storage/svg/book.svg +1 -0
  172. package/storage/svg/cube.svg +1 -0
  173. package/storage/svg/github.svg +1 -0
  174. package/storage/svg/info.svg +1 -0
  175. package/storage/svg/palette.svg +1 -0
  176. package/storage/svg/search.svg +2 -0
  177. package/storage/svg/type.svg +1 -0
  178. package/vite.config.ts +8 -3
  179. package/build/components/back/index.d.ts +0 -21
  180. package/build/components/back/index.js +0 -16
  181. package/build/components/back/scss/index.scss +0 -2
  182. package/build/components/back/svg/arrow.svg +0 -15
  183. package/build/components/bubble/scss/index.scss +0 -2
  184. package/build/components/button/index.d.ts +0 -103
  185. package/build/components/button/index.js +0 -60
  186. package/build/components/ellipsis/index.d.ts +0 -4
  187. package/build/components/ellipsis/index.js +0 -8
  188. package/build/components/ellipsis/scss/index.scss +0 -2
  189. package/build/components/frame/index.d.ts +0 -21
  190. package/build/components/frame/index.js +0 -13
  191. package/build/components/frame/scss/index.scss +0 -2
  192. package/build/components/highlight/index.d.ts +0 -22
  193. package/build/components/highlight/index.js +0 -56
  194. package/build/components/highlight/scss/index.scss +0 -2
  195. package/build/components/loader/index.d.ts +0 -22
  196. package/build/components/loader/index.js +0 -78
  197. package/build/components/loader/scss/index.scss +0 -2
  198. package/build/components/radio/scss/index.scss +0 -2
  199. package/build/components/root/index.d.ts +0 -7
  200. package/build/components/root/index.js +0 -4
  201. package/build/components/root/onclick.d.ts +0 -5
  202. package/build/components/root/onclick.js +0 -12
  203. package/build/components/switch/scss/index.scss +0 -2
  204. package/build/css-utilities/[margin,padding]/scss/index.scss +0 -2
  205. package/build/css-utilities/error/scss/index.scss +0 -2
  206. package/build/css-utilities/flicker/scss/index.scss +0 -2
  207. package/build/css-utilities/focus/scss/index.scss +0 -2
  208. package/build/css-utilities/gap/scss/index.scss +0 -2
  209. package/build/css-utilities/line-height/scss/index.scss +0 -2
  210. package/build/css-utilities/pointer/scss/index.scss +0 -2
  211. package/build/css-utilities/scroll-fade/scss/index.scss +0 -2
  212. package/build/css-utilities/size/scss/index.scss +0 -2
  213. package/build/css-utilities/viewport/scss/index.scss +0 -2
  214. package/build/css-utilities/width/scss/index.scss +0 -2
  215. package/build/fonts/index.d.ts +0 -1
  216. package/build/fonts/index.js +0 -1
  217. package/build/fonts/montserrat/scss/index.scss +0 -2
  218. package/build/themes/dark/back.d.ts +0 -19
  219. package/build/themes/dark/back.js +0 -7
  220. package/build/themes/dark/button/scss/index.scss +0 -2
  221. package/build/themes/dark/link/scss/index.scss +0 -2
  222. package/src/components/back/index.ts +0 -20
  223. package/src/components/back/scss/index.scss +0 -17
  224. package/src/components/back/svg/arrow.svg +0 -15
  225. package/src/components/bubble/scss/index.scss +0 -32
  226. package/src/components/bubble/scss/variables.scss +0 -20
  227. package/src/components/button/index.ts +0 -53
  228. package/src/components/ellipsis/index.ts +0 -11
  229. package/src/components/ellipsis/scss/index.scss +0 -30
  230. package/src/components/ellipsis/scss/variables.scss +0 -5
  231. package/src/components/frame/index.ts +0 -13
  232. package/src/components/frame/scss/index.scss +0 -39
  233. package/src/components/frame/scss/variables.scss +0 -4
  234. package/src/components/highlight/index.ts +0 -66
  235. package/src/components/highlight/scss/index.scss +0 -7
  236. package/src/components/highlight/scss/variables.scss +0 -4
  237. package/src/components/loader/index.ts +0 -80
  238. package/src/components/loader/scss/index.scss +0 -71
  239. package/src/components/loader/scss/variables.scss +0 -6
  240. package/src/components/radio/scss/index.scss +0 -50
  241. package/src/components/radio/scss/variables.scss +0 -67
  242. package/src/components/root/index.ts +0 -6
  243. package/src/components/root/onclick.ts +0 -20
  244. package/src/components/switch/scss/index.scss +0 -48
  245. package/src/components/switch/scss/variables.scss +0 -74
  246. package/src/css-utilities/[margin,padding]/scss/index.scss +0 -43
  247. package/src/css-utilities/[margin,padding]/scss/variables.scss +0 -54
  248. package/src/css-utilities/error/scss/index.scss +0 -24
  249. package/src/css-utilities/error/scss/variables.scss +0 -3
  250. package/src/css-utilities/flicker/scss/index.scss +0 -15
  251. package/src/css-utilities/flicker/scss/variables.scss +0 -5
  252. package/src/css-utilities/focus/scss/index.scss +0 -7
  253. package/src/css-utilities/focus/scss/variables.scss +0 -5
  254. package/src/css-utilities/gap/scss/index.scss +0 -13
  255. package/src/css-utilities/gap/scss/variables.scss +0 -39
  256. package/src/css-utilities/line-height/scss/index.scss +0 -1
  257. package/src/css-utilities/line-height/scss/variables.scss +0 -10
  258. package/src/css-utilities/pointer/scss/index.scss +0 -5
  259. package/src/css-utilities/scroll-fade/scss/index.scss +0 -47
  260. package/src/css-utilities/scroll-fade/scss/variables.scss +0 -3
  261. package/src/css-utilities/size/scss/index.scss +0 -1
  262. package/src/css-utilities/size/scss/variables.scss +0 -12
  263. package/src/css-utilities/text/scss/variables.scss +0 -31
  264. package/src/css-utilities/viewport/scss/index.scss +0 -5
  265. package/src/css-utilities/width/scss/index.scss +0 -5
  266. package/src/css-utilities/width/scss/variables.scss +0 -9
  267. package/src/fonts/index.ts +0 -1
  268. package/src/themes/dark/back.ts +0 -9
  269. package/src/themes/dark/button/scss/index.scss +0 -46
  270. package/src/themes/dark/link/scss/index.scss +0 -26
  271. package/src/tokens/scss/font-weight.scss +0 -6
  272. package/src/tokens/scss/line-height.scss +0 -9
  273. package/src/tokens/scss/transition-duration.scss +0 -1
  274. /package/build/{fonts/montserrat → css-utilities/font/geist}/index.d.ts +0 -0
  275. /package/build/{fonts/montserrat → css-utilities/font/geist}/index.js +0 -0
  276. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff +0 -0
  277. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff2 +0 -0
  278. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
  279. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
  280. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff +0 -0
  281. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff2 +0 -0
  282. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff +0 -0
  283. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff2 +0 -0
  284. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
  285. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
  286. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff +0 -0
  287. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff2 +0 -0
  288. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff +0 -0
  289. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
  290. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
  291. /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
  292. /package/src/{fonts/montserrat → css-utilities/font/geist}/index.ts +0 -0
  293. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff +0 -0
  294. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff2 +0 -0
  295. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
  296. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
  297. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff +0 -0
  298. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff2 +0 -0
  299. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff +0 -0
  300. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff2 +0 -0
  301. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
  302. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
  303. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff +0 -0
  304. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff2 +0 -0
  305. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff +0 -0
  306. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
  307. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
  308. /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
@@ -1,5 +1,5 @@
1
1
  // LiftKit golden-ratio scale engine (github.com/Chainlift/liftkit)
2
- // One factor drives every ratio scale: type, size, spacer, line-height.
2
+ // One factor drives the type, size, and spacer scales.
3
3
  @use 'sass:math';
4
4
 
5
5
  $factor: 1.618;
@@ -1,5 +1,7 @@
1
1
  // Golden-ratio size ladder: 400 = 16px (1em), each key one φ half-step (×1.272).
2
2
  @use 'scale';
3
+ @use 'sass:math';
4
+ @use 'sass:map';
3
5
 
4
6
  $size: (
5
7
  100: scale.px(scale.step(-1.5)),
@@ -14,3 +16,8 @@ $size: (
14
16
 
15
17
  0px: 0px,
16
18
  );
19
+
20
+ // Snap the derived sizes to whole CSS pixels without changing the ratio engine.
21
+ @each $key, $value in $size {
22
+ $size: map.set($size, $key, math.round($value));
23
+ }
@@ -0,0 +1,4 @@
1
+ $transition: (
2
+ duration: 0.16s,
3
+ timing-function: cubic-bezier(0.4, 0, 0.2, 1)
4
+ );
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m10 4-4 4 4 4M6 8h8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m6 4 4 4-4 4M2 8h8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 5.5C6 4.4 8.5 4.5 11 6v14c-2.5-1.5-5-1.6-8-.5z" fill="currentColor" opacity=".4"/><path d="M13 6c2.5-1.5 5-1.6 8-.5v14c-3-1.1-5.5-1-8 .5z" fill="currentColor"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 2 10 5-10 5L2 7z" fill="currentColor" opacity=".3"/><path d="m2 9 9 4.5V23l-9-4.5z" fill="currentColor" opacity=".6"/><path d="m13 13.5 9-4.5v9.5L13 23z" fill="currentColor"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z'></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none"><circle cx='12' cy='12' r='9' stroke='currentColor' stroke-width='1.5'/><path d='M12 11v6M12 7v1' stroke='currentColor' stroke-width='1.5'/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 0 20h1a3 3 0 0 0 2.3-4.9.8.8 0 0 1 .6-1.3H18a4 4 0 0 0 4-4C22 6.4 17.5 2 12 2Z" fill="currentColor" opacity=".35"/><g fill="currentColor"><circle cx="7" cy="9" r="1.6"/><circle cx="12" cy="6" r="1.6"/><circle cx="17" cy="9" r="1.6"/><circle cx="6" cy="14" r="1.6"/></g></svg>
@@ -0,0 +1,2 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none"><circle cx='11' cy='11' r='7' stroke='currentColor' stroke-width='2'></circle>
2
+ <path d='m20 20-3.5-3.5' stroke='currentColor' stroke-linecap='round' stroke-width='2'></path></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2 4h14v4h-5v13H7V8H2z" fill="currentColor"/><path d="M14 10h9v3h-3v8h-3v-8h-3z" fill="currentColor" opacity=".4"/></svg>
package/vite.config.ts CHANGED
@@ -6,13 +6,15 @@ import shelljs from 'shelljs';
6
6
 
7
7
  export default defineConfig(() => {
8
8
  return {
9
+ base: './',
9
10
  build: {
10
11
  cssMinify: 'lightningcss',
11
12
  outDir: 'build',
12
13
  rollupOptions: {
13
14
  input: [
14
15
  ...glob.sync('./src/normalize/scss/index.scss'),
15
- ...glob.sync('./src/{components,css-utilities,fonts,themes/dark,themes/light}/*/scss/index.scss'),
16
+ ...glob.sync('./src/{components,css-utilities,themes/dark,themes/light}/*/scss/index.scss'),
17
+ ...glob.sync('./src/css-utilities/font/*/scss/index.scss'),
16
18
  ...glob.sync('./src/css-utilities/index.scss')
17
19
  ],
18
20
  output: {
@@ -33,7 +35,6 @@ export default defineConfig(() => {
33
35
 
34
36
  if (
35
37
  !filename.endsWith('.scss') ||
36
- filename.startsWith('fonts') ||
37
38
  file.type !== 'asset' ||
38
39
  typeof file.source !== 'string'
39
40
  ) {
@@ -66,10 +67,14 @@ export default defineConfig(() => {
66
67
  }
67
68
  },
68
69
  {
69
- name: '@esportsplus/ui-svg-copy',
70
+ name: '@esportsplus/ui-assets-copy',
70
71
  writeBundle() {
71
72
  let directories = glob.sync('./src/components/*/svg/');
72
73
 
74
+ for (let license of glob.sync('./src/css-utilities/font/*/OFL.txt')) {
75
+ shelljs.cp(license, license.replace('src', 'build'));
76
+ }
77
+
73
78
  for (let dir of directories) {
74
79
  shelljs.cp('-rf', dir, dir.replace('src', 'build'));
75
80
  }
@@ -1,21 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import './scss/index.scss';
3
- declare const _default: {
4
- (): ReturnType<(this: {
5
- attributes?: template_u1.Attributes | undefined;
6
- content?: template_u1.Renderable<any>;
7
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
8
- <T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_u1.Attributes | undefined;
10
- content?: template_u1.Renderable<any>;
11
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
12
- <T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_u1.Attributes | undefined;
14
- content?: template_u1.Renderable<any>;
15
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
16
- (attributes: template_u1.Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_u1.Attributes | undefined;
18
- content?: template_u1.Renderable<any>;
19
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
20
- };
21
- export default _default;
@@ -1,16 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { component } from '@esportsplus/template';
3
- import icon from '../icon/index.js';
4
- import arrow from './svg/arrow.svg';
5
- import './scss/index.scss';
6
- const template_1hhpvdm1 = template_u1.template(`<a class='back link --padding-0px --flex-vertical' ><!--$-->`);
7
- export default component(function (attributes, content) {
8
- return (() => {
9
- let root_1hhpvdm0 = template_1hhpvdm1(), element_1hhpvdm2 = root_1hhpvdm0.firstChild, element_1hhpvdm3 = element_1hhpvdm2.firstChild;
10
- template_u1.setProperties(element_1hhpvdm2, this?.attributes);
11
- template_u1.setProperties(element_1hhpvdm2, attributes);
12
- template_u1.slot(element_1hhpvdm3, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
- template_u1.slot(element_1hhpvdm2, content, 2);
14
- return root_1hhpvdm0;
15
- })();
16
- });
@@ -1,2 +0,0 @@
1
- @layer components {.back-arrow{transition:color var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;transform:rotate(-90deg)}.back:not(.--active):hover .back-arrow{transform:rotate(-90deg)translateY(-2px)}}
2
- /*$vite$:1*/
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
- width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
6
- <g opacity="0.4" enable-background="new ">
7
- <path d="M12,22c-0.552,0-1-0.447-1-1v-6c0-0.553,0.448-1,1-1c0.553,0,1,0.447,1,1v6C13,21.553,12.553,22,12,22z"/>
8
- </g>
9
- <g>
10
- <path d="M12,16c-0.552,0-1-0.447-1-1V5.414l-5.293,5.293c-0.391,0.391-1.023,0.391-1.414,0s-0.391-1.023,0-1.414l7-7
11
- c0.096-0.096,0.208-0.169,0.326-0.218C11.735,2.027,11.863,2,11.997,2l0,0c0.002,0,0.004,0,0.006,0l0,0
12
- c0.134,0,0.262,0.027,0.378,0.075c0.119,0.049,0.229,0.122,0.326,0.218l7,7c0.391,0.391,0.391,1.023,0,1.414s-1.023,0.391-1.414,0
13
- L13,5.414V15C13,15.553,12.553,16,12,16z"/>
14
- </g>
15
- </svg>
@@ -1,2 +0,0 @@
1
- @layer components {.bubble{--background:var(--background-default);--background-default:var(--color-border-400);--border-radius:100%;--height:var(--size);--margin-horizontal:var(--size-100);--size:6px;--width:var(--size)}.bubble--bottom-left,.bubble--bottom-right,.bubble--top-left,.bubble--top-right{--position-horizontal:calc(var(--size) / -2);--position-vertical:calc(var(--size) / -2)}.bubble{background:var(--background);border-radius:var(--border-radius);height:var(--height);width:var(--width)}.bubble--bottom-left,.bubble--bottom-right,.bubble--top-left,.bubble--top-right{position:absolute}.bubble--bottom-left,.bubble--top-left{left:var(--position-horizontal)}.bubble--bottom-right,.bubble--top-right{right:var(--position-horizontal)}.bubble--bottom-left,.bubble--bottom-right{bottom:var(--position-vertical)}.bubble--top-left,.bubble--top-right{top:var(--position-vertical)}}
2
- /*$vite$:1*/
@@ -1,103 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { type Renderable } from '@esportsplus/template';
3
- import './scss/index.scss';
4
- declare const hold: {
5
- (): ReturnType<(this: {
6
- attributes?: template_u1.Attributes | undefined;
7
- content?: ((state: {
8
- holding: boolean;
9
- complete: boolean;
10
- }) => Renderable<any>) | undefined;
11
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
12
- holding: boolean;
13
- complete: boolean;
14
- }) => Renderable<any>) => Renderable<any>>;
15
- <T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
16
- attributes?: template_u1.Attributes | undefined;
17
- content?: ((state: {
18
- holding: boolean;
19
- complete: boolean;
20
- }) => Renderable<any>) | undefined;
21
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
22
- holding: boolean;
23
- complete: boolean;
24
- }) => Renderable<any>) => Renderable<any>>;
25
- <T extends (state: {
26
- holding: boolean;
27
- complete: boolean;
28
- }) => Renderable<any>>(content: T): ReturnType<(this: {
29
- attributes?: template_u1.Attributes | undefined;
30
- content?: ((state: {
31
- holding: boolean;
32
- complete: boolean;
33
- }) => Renderable<any>) | undefined;
34
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
35
- holding: boolean;
36
- complete: boolean;
37
- }) => Renderable<any>) => Renderable<any>>;
38
- (attributes: template_u1.Attributes, content: (state: {
39
- holding: boolean;
40
- complete: boolean;
41
- }) => Renderable<any>): ReturnType<(this: {
42
- attributes?: template_u1.Attributes | undefined;
43
- content?: ((state: {
44
- holding: boolean;
45
- complete: boolean;
46
- }) => Renderable<any>) | undefined;
47
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
48
- holding: boolean;
49
- complete: boolean;
50
- }) => Renderable<any>) => Renderable<any>>;
51
- };
52
- declare const _default: {
53
- hold: {
54
- (): ReturnType<(this: {
55
- attributes?: template_u1.Attributes | undefined;
56
- content?: ((state: {
57
- holding: boolean;
58
- complete: boolean;
59
- }) => Renderable<any>) | undefined;
60
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
61
- holding: boolean;
62
- complete: boolean;
63
- }) => Renderable<any>) => Renderable<any>>;
64
- <T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
65
- attributes?: template_u1.Attributes | undefined;
66
- content?: ((state: {
67
- holding: boolean;
68
- complete: boolean;
69
- }) => Renderable<any>) | undefined;
70
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
71
- holding: boolean;
72
- complete: boolean;
73
- }) => Renderable<any>) => Renderable<any>>;
74
- <T extends (state: {
75
- holding: boolean;
76
- complete: boolean;
77
- }) => Renderable<any>>(content: T): ReturnType<(this: {
78
- attributes?: template_u1.Attributes | undefined;
79
- content?: ((state: {
80
- holding: boolean;
81
- complete: boolean;
82
- }) => Renderable<any>) | undefined;
83
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
84
- holding: boolean;
85
- complete: boolean;
86
- }) => Renderable<any>) => Renderable<any>>;
87
- (attributes: template_u1.Attributes, content: (state: {
88
- holding: boolean;
89
- complete: boolean;
90
- }) => Renderable<any>): ReturnType<(this: {
91
- attributes?: template_u1.Attributes | undefined;
92
- content?: ((state: {
93
- holding: boolean;
94
- complete: boolean;
95
- }) => Renderable<any>) | undefined;
96
- }, attributes: Readonly<template_u1.Attributes>, content: (state: {
97
- holding: boolean;
98
- complete: boolean;
99
- }) => Renderable<any>) => Renderable<any>>;
100
- };
101
- };
102
- export default _default;
103
- export { hold };
@@ -1,60 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { component } from '@esportsplus/template';
3
- import * as reactivity_u0 from '@esportsplus/reactivity';
4
- import './scss/index.scss';
5
- const template_1u9ndnf2 = template_u1.template(`<div class='button ' >`);
6
- class ReactiveObject_1u9ndnf0 extends reactivity_u0.ReactiveObject {
7
- #complete = this[reactivity_u0.SIGNAL](false);
8
- #holding = this[reactivity_u0.SIGNAL](false);
9
- constructor() {
10
- super(null);
11
- }
12
- get complete() {
13
- return reactivity_u0.read(this.#complete);
14
- }
15
- set complete(_v0) {
16
- reactivity_u0.write(this.#complete, _v0);
17
- }
18
- get holding() {
19
- return reactivity_u0.read(this.#holding);
20
- }
21
- set holding(_v1) {
22
- reactivity_u0.write(this.#holding, _v1);
23
- }
24
- }
25
- const hold = component(function (attributes, content) {
26
- let end = () => {
27
- if (!state.complete) {
28
- state.holding = false;
29
- }
30
- }, state = new ReactiveObject_1u9ndnf0();
31
- return (() => {
32
- let root_1u9ndnf1 = template_1u9ndnf2(), element_1u9ndnf3 = root_1u9ndnf1.firstChild;
33
- template_u1.setList(element_1u9ndnf3, 'class', () => state.holding && 'button--holding');
34
- template_u1.delegate(element_1u9ndnf3, 'mousedown', (e) => {
35
- e.preventDefault();
36
- state.holding = true;
37
- });
38
- template_u1.setProperties(element_1u9ndnf3, attributes);
39
- template_u1.delegate(element_1u9ndnf3, 'animationend', (e) => {
40
- if (e.animationName === 'buttonHolding') {
41
- state.complete = true;
42
- }
43
- });
44
- template_u1.delegate(element_1u9ndnf3, 'click', () => { });
45
- template_u1.delegate(element_1u9ndnf3, 'mousedown', (e) => {
46
- e.preventDefault();
47
- state.holding = true;
48
- });
49
- template_u1.delegate(element_1u9ndnf3, 'mouseup', end);
50
- template_u1.delegate(element_1u9ndnf3, 'touchend', end);
51
- template_u1.delegate(element_1u9ndnf3, 'touchstart', (e) => {
52
- e.preventDefault();
53
- state.holding = true;
54
- });
55
- new template_u1.EffectSlot(element_1u9ndnf3, () => content(state), 1);
56
- return root_1u9ndnf1;
57
- })();
58
- });
59
- export default { hold };
60
- export { hold };
@@ -1,4 +0,0 @@
1
- import { Attributes } from '@esportsplus/template';
2
- import './scss/index.scss';
3
- export default _default;
4
- declare function _default(attributes?: Attributes): DocumentFragment | Text;
@@ -1,8 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import './scss/index.scss';
3
- const template_0bfeb8u1 = template_u1.template(`<div class='ellipsis' ><span></span><span></span><span>`);
4
- export default (attributes) => {
5
- let root_0bfeb8u0 = template_0bfeb8u1(), element_0bfeb8u2 = root_0bfeb8u0.firstChild;
6
- template_u1.setProperties(element_0bfeb8u2, attributes);
7
- return root_0bfeb8u0;
8
- };
@@ -1,2 +0,0 @@
1
- @layer components {.ellipsis{--animation-duration:1.24s;--margin-horizontal:var(--size-100);--size:var(--size-200)}.ellipsis span{animation:ellipsis var(--animation-duration) infinite linear;background-color:var(--color);height:var(--size);margin:0 var(--margin-horizontal);width:var(--size);border-radius:100%;display:inline-block}.ellipsis span :nth-child(2){animation-delay:.24s}.ellipsis span :nth-child(3){animation-delay:.48s}@keyframes ellipsis{0%,to{opacity:.16}20%{opacity:1}}}
2
- /*$vite$:1*/
@@ -1,21 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import './scss/index.scss';
3
- declare const _default: {
4
- (): ReturnType<(this: {
5
- attributes?: template_u1.Attributes | undefined;
6
- content?: template_u1.Renderable<any>;
7
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
8
- <T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_u1.Attributes | undefined;
10
- content?: template_u1.Renderable<any>;
11
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
12
- <T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_u1.Attributes | undefined;
14
- content?: template_u1.Renderable<any>;
15
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
16
- (attributes: template_u1.Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_u1.Attributes | undefined;
18
- content?: template_u1.Renderable<any>;
19
- }, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
20
- };
21
- export default _default;
@@ -1,13 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { component } from '@esportsplus/template';
3
- import './scss/index.scss';
4
- const template_0f2789a1 = template_u1.template(`<div class='frame --scrollbar' >`);
5
- export default component(function (attributes, content) {
6
- return (() => {
7
- let root_0f2789a0 = template_0f2789a1(), element_0f2789a2 = root_0f2789a0.firstChild;
8
- template_u1.setProperties(element_0f2789a2, this?.attributes);
9
- template_u1.setProperties(element_0f2789a2, attributes);
10
- template_u1.slot(element_0f2789a2, content, 1);
11
- return root_0f2789a0;
12
- })();
13
- });
@@ -1,2 +0,0 @@
1
- @layer components {.frames{--gap:var(--size-400);--opacity:.4;gap:var(--gap);transform:translateX(calc(var(--i) * (100% + var(--gap))));transition:transform .3s;display:flex}.frames .frame{flex-shrink:0;width:100%;min-width:100%}.frames .frame:not(.--active){opacity:var(--opacity);display:flex}.frames .frame:not(.--active)>*{pointer-events:none}.frame{cursor:default;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:100%;display:none;position:relative}.frame.--active{display:flex}}
2
- /*$vite$:1*/
@@ -1,22 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { Attributes } from '@esportsplus/template';
3
- import './scss/index.scss';
4
- declare const _default: {
5
- (): ReturnType<(this: {
6
- attributes?: Attributes | undefined;
7
- content?: template_u1.Renderable<any>;
8
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
9
- <T extends Attributes>(attributes: T): ReturnType<(this: {
10
- attributes?: Attributes | undefined;
11
- content?: template_u1.Renderable<any>;
12
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
13
- <T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
14
- attributes?: Attributes | undefined;
15
- content?: template_u1.Renderable<any>;
16
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
17
- (attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
18
- attributes?: Attributes | undefined;
19
- content?: template_u1.Renderable<any>;
20
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
21
- };
22
- export default _default;
@@ -1,56 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { component } from '@esportsplus/template';
3
- import * as reactivity_u0 from '@esportsplus/reactivity';
4
- import { omit } from '@esportsplus/utilities';
5
- import './scss/index.scss';
6
- const template_0k38r592 = template_u1.template(`<div class='highlight' >`);
7
- class ReactiveObject_0k38r590 extends reactivity_u0.ReactiveObject {
8
- #highlight = this[reactivity_u0.SIGNAL](0);
9
- constructor() {
10
- super(null);
11
- }
12
- get highlight() {
13
- return reactivity_u0.read(this.#highlight);
14
- }
15
- set highlight(_v0) {
16
- reactivity_u0.write(this.#highlight, _v0);
17
- }
18
- }
19
- const OMIT = ['background'];
20
- let key = Symbol(), observer = null;
21
- export default component((attributes, content) => {
22
- if (observer === null) {
23
- observer = new IntersectionObserver((entries) => {
24
- let disconnected = 0, n = entries.length;
25
- for (let i = 0; i < n; i++) {
26
- let { isIntersecting, target } = entries[i];
27
- if (target.isConnected) {
28
- target[key].highlight = +isIntersecting;
29
- }
30
- else {
31
- disconnected++;
32
- observer.unobserve(target);
33
- }
34
- }
35
- if (n - disconnected === 0) {
36
- observer.disconnect();
37
- observer = null;
38
- }
39
- }, { threshold: 1 });
40
- }
41
- let state = new ReactiveObject_0k38r590();
42
- return (() => {
43
- let root_0k38r591 = template_0k38r592(), element_0k38r593 = root_0k38r591.firstChild;
44
- template_u1.setProperties(element_0k38r593, omit(attributes, OMIT));
45
- template_u1.onrender(element_0k38r593, (element) => {
46
- element[key] = state;
47
- observer.observe(element);
48
- });
49
- template_u1.setList(element_0k38r593, 'style', [
50
- () => `--highlight: ${state.highlight}`,
51
- `--background: ${attributes.background}`,
52
- ]);
53
- template_u1.slot(element_0k38r593, content, 1);
54
- return root_0k38r591;
55
- })();
56
- });
@@ -1,2 +0,0 @@
1
- @layer components {.highlight{--background:transparent;--highlight:1;background:linear-gradient(90deg, var(--background) 50%, transparent 50%) 110% 0/200% 100% no-repeat;background-position:calc((1 - var(--highlight)) * 110%) 0;transition:background-position .32s}}
2
- /*$vite$:1*/
@@ -1,22 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { type Attributes } from '@esportsplus/template';
3
- import './scss/index.scss';
4
- declare const _default: {
5
- (): ReturnType<(this: {
6
- attributes?: Attributes | undefined;
7
- content?: template_u1.Renderable<any>;
8
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
9
- <T extends Attributes>(attributes: T): ReturnType<(this: {
10
- attributes?: Attributes | undefined;
11
- content?: template_u1.Renderable<any>;
12
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
13
- <T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
14
- attributes?: Attributes | undefined;
15
- content?: template_u1.Renderable<any>;
16
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
17
- (attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
18
- attributes?: Attributes | undefined;
19
- content?: template_u1.Renderable<any>;
20
- }, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
21
- };
22
- export default _default;
@@ -1,78 +0,0 @@
1
- import * as template_u1 from '@esportsplus/template';
2
- import { component } from '@esportsplus/template';
3
- import * as reactivity_u0 from '@esportsplus/reactivity';
4
- import { omit } from '@esportsplus/utilities';
5
- import './scss/index.scss';
6
- const template_0bvfqbq2 = template_u1.template(`<div class='loader-content' ><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);' >`);
7
- const template_0bvfqbq6 = template_u1.template(`<div class='loader '><div class='loader ' >`);
8
- class ReactiveObject_0bvfqbq0 extends reactivity_u0.ReactiveObject {
9
- #load = this[reactivity_u0.SIGNAL](false);
10
- #remove = this[reactivity_u0.SIGNAL](false);
11
- #scale = this[reactivity_u0.SIGNAL](false);
12
- constructor() {
13
- super(null);
14
- }
15
- get load() {
16
- return reactivity_u0.read(this.#load);
17
- }
18
- set load(_v0) {
19
- reactivity_u0.write(this.#load, _v0);
20
- }
21
- get remove() {
22
- return reactivity_u0.read(this.#remove);
23
- }
24
- set remove(_v1) {
25
- reactivity_u0.write(this.#remove, _v1);
26
- }
27
- get scale() {
28
- return reactivity_u0.read(this.#scale);
29
- }
30
- set scale(_v2) {
31
- reactivity_u0.write(this.#scale, _v2);
32
- }
33
- }
34
- const OMIT = ['loader-content', 'loader-logo'];
35
- export default component((attributes, content) => {
36
- let state = new ReactiveObject_0bvfqbq0();
37
- return () => {
38
- if (state.remove) {
39
- return;
40
- }
41
- let i = 0;
42
- return (() => {
43
- let root_0bvfqbq5 = template_0bvfqbq6(), element_0bvfqbq7 = root_0bvfqbq5.firstChild, element_0bvfqbq8 = element_0bvfqbq7.firstElementChild;
44
- template_u1.setList(element_0bvfqbq7, 'class', () => state.load && 'loader--load');
45
- template_u1.delegate(element_0bvfqbq7, 'animationend', ({ animationName: name }) => {
46
- i++;
47
- if (name === 'move' && i > 1) {
48
- state.remove = true;
49
- }
50
- });
51
- template_u1.setProperties(element_0bvfqbq7, omit(attributes, OMIT));
52
- template_u1.setList(element_0bvfqbq8, 'class', () => state.load && 'loader--load');
53
- template_u1.setProperties(element_0bvfqbq8, !content && {
54
- onconnect: () => {
55
- state.load = true;
56
- }
57
- });
58
- template_u1.setProperties(element_0bvfqbq8, attributes.loader);
59
- template_u1.slot(element_0bvfqbq8, content && (() => {
60
- let root_0bvfqbq1 = template_0bvfqbq2(), element_0bvfqbq3 = root_0bvfqbq1.firstChild, element_0bvfqbq4 = element_0bvfqbq3.firstElementChild;
61
- template_u1.setProperties(element_0bvfqbq3, attributes['loader-content']);
62
- template_u1.setProperties(element_0bvfqbq4, attributes['loader-logo']);
63
- template_u1.setList(element_0bvfqbq4, 'class', () => state.scale && 'loader-logo--scale');
64
- template_u1.delegate(element_0bvfqbq4, 'animationend', ({ animationName: name }) => {
65
- if (name === 'scale') {
66
- state.load = true;
67
- }
68
- });
69
- template_u1.onconnect(element_0bvfqbq4, () => {
70
- state.scale = true;
71
- });
72
- template_u1.slot(element_0bvfqbq4, content, 1);
73
- return root_0bvfqbq1;
74
- })(), 1);
75
- return root_0bvfqbq5;
76
- })();
77
- };
78
- });
@@ -1,2 +0,0 @@
1
- @layer components {.loader-logo{--size:10svh;--translateY:8px}.loader{opacity:1;pointer-events:none;visibility:visible;z-index:9999;background-color:#01020964;transition:opacity .3s ease-in-out,visibility .3s ease-in-out;position:fixed;inset:0}.loader--load{animation:.4s ease-in-out .2s both loaderMove}.loader--load .loader--load{animation:.4s ease-in-out both loaderMove}@keyframes loaderMove{0%{transform:translateY(0)}80%{transform:translateY(-102%)}to{transform:translateY(-102%)}}.loader .loader{background-color:var(--color-black-400)}.loader-content{position:absolute;inset:50% auto auto 50%;transform:translate(-50%)translateY(-50%)}.loader-logo{color:#fff}.loader-logo--scale{animation:.32s both loaderLogoScale}@keyframes loaderLogoScale{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale3d(1.8,1.8,1.8)}}}
2
- /*$vite$:1*/
@@ -1,2 +0,0 @@
1
- @layer components {.radio{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:100%;--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--margin-horizontal:calc(var(--width-switch) - var(--width));--opacity:var(--opacity-default);--opacity-active:1;--opacity-default:.4;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--rotate:0deg;--scale:var(--scale-default);--scale-active:.9;--scale-default:0;--scale-hover:.8;--scale-pressed:.7;--size:var(--size-600);--width:var(--height);--width-switch:40px}.radio:before{--height:calc((var(--size) / 2) - (var(--border-width) * 2));--box-shadow:0 1px 0 #00000029;--translateX:50%;--translateY:50%;--width:var(--height)}.radio label:not(.--active):not(.--active):hover,.radio:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.radio label:not(.--active):not(.--active):active,.radio:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.radio.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.radio{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;width:var(--width);position:relative}.radio:invalid,.radio:required{box-shadow:none}.radio:before{background:var(--accent);border-radius:inherit;box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX), var(--translateY)) rotate(var(--rotate)) scale(var(--scale));transform-origin:50%;width:var(--width);position:absolute;bottom:50%;right:50%}.radio-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
2
- /*$vite$:1*/
@@ -1,7 +0,0 @@
1
- import onclick from './onclick.js';
2
- import './scss/index.scss';
3
- declare const _default: {
4
- onclick: typeof onclick;
5
- };
6
- export default _default;
7
- export { onclick };
@@ -1,4 +0,0 @@
1
- import onclick from './onclick.js';
2
- import './scss/index.scss';
3
- export default { onclick };
4
- export { onclick };
@@ -1,5 +0,0 @@
1
- declare function onclick(): Promise<void>;
2
- declare namespace onclick {
3
- var push: (fn: VoidFunction) => void;
4
- }
5
- export default onclick;
@@ -1,12 +0,0 @@
1
- import factory from '@esportsplus/queue';
2
- let queue = factory(64);
3
- const onclick = async () => {
4
- let item;
5
- while (item = queue.next()) {
6
- await item();
7
- }
8
- };
9
- onclick.push = (fn) => {
10
- queue.add(fn);
11
- };
12
- export default onclick;