@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.
- package/README.md +51 -6
- package/build/components/accordion/index.d.ts +2 -19
- package/build/components/accordion/index.js +7 -7
- package/build/components/anchor/scss/index.scss +1 -1
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/checkbox/index.d.ts +12 -12
- package/build/components/checkbox/index.js +64 -36
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/checkbox/svg/check.svg +1 -0
- package/build/components/clipboard/copy.d.ts +11 -0
- package/build/components/clipboard/copy.js +49 -0
- package/build/components/clipboard/index.d.ts +1435 -1229
- package/build/components/clipboard/index.js +3 -2
- package/build/components/clipboard/onclick.d.ts +4 -38
- package/build/components/clipboard/onclick.js +7 -7
- package/build/components/counter/index.js +58 -66
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +4 -4
- package/build/components/form/input.d.ts +4 -4
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +2 -19
- package/build/components/icon/index.js +6 -6
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/index.d.ts +0 -7
- package/build/components/index.js +0 -7
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +11 -11
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/modal/scss/index.scss +1 -1
- package/build/components/normalize/scss/index.scss +1 -1
- package/build/components/overlay/index.d.ts +2 -19
- package/build/components/overlay/index.js +7 -7
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/radio/index.d.ts +1436 -4
- package/build/components/radio/index.js +0 -1
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +13 -13
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +5 -48
- package/build/components/select/index.js +41 -53
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/sidebar/index.d.ts +2 -19
- package/build/components/sidebar/index.js +7 -7
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/switch/index.d.ts +1436 -4
- package/build/components/switch/index.js +0 -1
- package/build/components/tabs/scss/index.scss +2 -0
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +719 -6
- package/build/components/textarea/index.js +37 -15
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/toast/index.js +43 -43
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/index.d.ts +2151 -2544
- package/build/components/tooltip/menu.d.ts +2 -18
- package/build/components/tooltip/menu.js +21 -21
- package/build/components/tooltip/onclick.d.ts +717 -1229
- package/build/components/tooltip/onclick.js +16 -52
- package/build/components/tooltip/onhover.d.ts +713 -20
- package/build/components/tooltip/onhover.js +9 -9
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/typewriter/index.d.ts +2 -19
- package/build/components/typewriter/index.js +8 -8
- package/build/css-utilities/background/scss/index.scss +1 -1
- package/build/css-utilities/border/scss/index.scss +1 -1
- package/build/css-utilities/color/scss/index.scss +1 -1
- package/build/css-utilities/font/geist/scss/Geist-Italic-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/Geist-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/GeistMono-Italic-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/GeistMono-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/index.scss +2 -0
- package/build/css-utilities/font/montserrat/index.d.ts +1 -0
- package/build/css-utilities/font/montserrat/index.js +1 -0
- package/build/css-utilities/font/montserrat/scss/index.scss +2 -0
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/inline/scss/index.scss +1 -1
- package/build/css-utilities/scrollbar/scss/index.scss +1 -1
- package/build/css-utilities/tabular/scss/index.scss +2 -0
- package/build/css-utilities/text/scss/index.scss +1 -1
- package/build/themes/dark/index.d.ts +0 -1
- package/build/themes/dark/index.js +0 -1
- package/build/themes/dark/input.d.ts +708 -114
- package/build/themes/dark/select.d.ts +732 -1406
- package/build/themes/dark/select.js +7 -5
- package/build/themes/dark/textarea.d.ts +716 -119
- package/package.json +12 -12
- package/pnpm-workspace.yaml +4 -3
- package/scripts/css-variables.test.mjs +50 -0
- package/scripts/sort-scss.md +57 -0
- package/scripts/sort-scss.mjs +233 -0
- package/scripts/sort-scss.test.mjs +217 -0
- package/src/components/anchor/scss/index.scss +2 -2
- package/src/components/button/scss/index.scss +23 -57
- package/src/components/button/scss/variables.scss +1 -19
- package/src/components/card/scss/index.scss +11 -46
- package/src/components/card/scss/variables.scss +1 -2
- package/src/components/checkbox/index.ts +27 -31
- package/src/components/checkbox/scss/index.scss +86 -28
- package/src/components/checkbox/scss/variables.scss +71 -30
- package/src/components/checkbox/svg/check.svg +1 -0
- package/src/components/clipboard/copy.ts +60 -0
- package/src/components/clipboard/index.ts +3 -2
- package/src/components/counter/index.ts +57 -57
- package/src/components/counter/scss/index.scss +4 -5
- package/src/components/counter/scss/variables.scss +0 -1
- package/src/components/form/input.ts +4 -3
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/icon/scss/variables.scss +0 -1
- package/src/components/index.ts +1 -8
- package/src/components/input/index.ts +1 -1
- package/src/components/input/scss/index.scss +8 -7
- package/src/components/input/scss/variables.scss +0 -1
- package/src/components/link/scss/index.scss +9 -34
- package/src/components/link/scss/variables.scss +0 -12
- package/src/components/modal/scss/index.scss +4 -4
- package/src/components/normalize/scss/index.scss +0 -1
- package/src/components/page/scss/index.scss +0 -6
- package/src/components/page/scss/variables.scss +0 -2
- package/src/components/radio/index.ts +0 -1
- package/src/components/range/index.ts +1 -1
- package/src/components/range/scss/index.scss +5 -5
- package/src/components/root/scss/index.scss +37 -63
- package/src/components/root/scss/variables.scss +37 -67
- package/src/components/select/index.ts +16 -33
- package/src/components/select/scss/index.scss +10 -7
- package/src/components/select/scss/variables.scss +0 -1
- package/src/components/sidebar/scss/index.scss +3 -3
- package/src/components/switch/index.ts +1 -2
- package/src/components/tabs/scss/index.scss +62 -0
- package/src/components/tabs/scss/variables.scss +4 -0
- package/src/components/text/scss/index.scss +8 -1
- package/src/components/text/scss/variables.scss +5 -3
- package/src/components/textarea/index.ts +38 -5
- package/src/components/textarea/scss/index.scss +24 -13
- package/src/components/textarea/scss/variables.scss +0 -1
- package/src/components/toast/scss/index.scss +1 -1
- package/src/components/tooltip/onclick.ts +11 -67
- package/src/components/tooltip/scss/index.scss +2 -3
- package/src/css-utilities/background/scss/variables.scss +2 -2
- package/src/css-utilities/border/scss/index.scss +1 -27
- package/src/css-utilities/border/scss/variables.scss +3 -34
- package/src/css-utilities/color/scss/variables.scss +2 -6
- package/src/css-utilities/font/geist/scss/Geist-Italic-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/Geist-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/GeistMono-Italic-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/GeistMono-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/index.scss +55 -0
- package/src/css-utilities/font/montserrat/index.ts +1 -0
- package/src/{fonts → css-utilities/font}/montserrat/scss/index.scss +15 -0
- package/src/css-utilities/index.scss +6 -12
- package/src/css-utilities/inline/scss/index.scss +0 -1
- package/src/css-utilities/scrollbar/scss/index.scss +42 -0
- package/src/css-utilities/tabular/scss/index.scss +3 -0
- package/src/css-utilities/text/scss/index.scss +30 -71
- package/src/lib/scss/css-variables.scss +29 -5
- package/src/themes/dark/index.ts +0 -1
- package/src/themes/dark/select.ts +7 -5
- package/src/tokens/index.scss +1 -3
- package/src/tokens/scss/border-radius.scss +1 -6
- package/src/tokens/scss/color.scss +3 -3
- package/src/tokens/scss/scale.scss +1 -1
- package/src/tokens/scss/size.scss +7 -0
- package/src/tokens/scss/transition.scss +4 -0
- package/storage/svg/arrow-left.svg +1 -0
- package/storage/svg/arrow-right.svg +1 -0
- package/storage/svg/book.svg +1 -0
- package/storage/svg/cube.svg +1 -0
- package/storage/svg/github.svg +1 -0
- package/storage/svg/info.svg +1 -0
- package/storage/svg/palette.svg +1 -0
- package/storage/svg/search.svg +2 -0
- package/storage/svg/type.svg +1 -0
- package/vite.config.ts +8 -3
- package/build/components/back/index.d.ts +0 -21
- package/build/components/back/index.js +0 -16
- package/build/components/back/scss/index.scss +0 -2
- package/build/components/back/svg/arrow.svg +0 -15
- package/build/components/bubble/scss/index.scss +0 -2
- package/build/components/button/index.d.ts +0 -103
- package/build/components/button/index.js +0 -60
- package/build/components/ellipsis/index.d.ts +0 -4
- package/build/components/ellipsis/index.js +0 -8
- package/build/components/ellipsis/scss/index.scss +0 -2
- package/build/components/frame/index.d.ts +0 -21
- package/build/components/frame/index.js +0 -13
- package/build/components/frame/scss/index.scss +0 -2
- package/build/components/highlight/index.d.ts +0 -22
- package/build/components/highlight/index.js +0 -56
- package/build/components/highlight/scss/index.scss +0 -2
- package/build/components/loader/index.d.ts +0 -22
- package/build/components/loader/index.js +0 -78
- package/build/components/loader/scss/index.scss +0 -2
- package/build/components/radio/scss/index.scss +0 -2
- package/build/components/root/index.d.ts +0 -7
- package/build/components/root/index.js +0 -4
- package/build/components/root/onclick.d.ts +0 -5
- package/build/components/root/onclick.js +0 -12
- package/build/components/switch/scss/index.scss +0 -2
- package/build/css-utilities/[margin,padding]/scss/index.scss +0 -2
- package/build/css-utilities/error/scss/index.scss +0 -2
- package/build/css-utilities/flicker/scss/index.scss +0 -2
- package/build/css-utilities/focus/scss/index.scss +0 -2
- package/build/css-utilities/gap/scss/index.scss +0 -2
- package/build/css-utilities/line-height/scss/index.scss +0 -2
- package/build/css-utilities/pointer/scss/index.scss +0 -2
- package/build/css-utilities/scroll-fade/scss/index.scss +0 -2
- package/build/css-utilities/size/scss/index.scss +0 -2
- package/build/css-utilities/viewport/scss/index.scss +0 -2
- package/build/css-utilities/width/scss/index.scss +0 -2
- package/build/fonts/index.d.ts +0 -1
- package/build/fonts/index.js +0 -1
- package/build/fonts/montserrat/scss/index.scss +0 -2
- package/build/themes/dark/back.d.ts +0 -19
- package/build/themes/dark/back.js +0 -7
- package/build/themes/dark/button/scss/index.scss +0 -2
- package/build/themes/dark/link/scss/index.scss +0 -2
- package/src/components/back/index.ts +0 -20
- package/src/components/back/scss/index.scss +0 -17
- package/src/components/back/svg/arrow.svg +0 -15
- package/src/components/bubble/scss/index.scss +0 -32
- package/src/components/bubble/scss/variables.scss +0 -20
- package/src/components/button/index.ts +0 -53
- package/src/components/ellipsis/index.ts +0 -11
- package/src/components/ellipsis/scss/index.scss +0 -30
- package/src/components/ellipsis/scss/variables.scss +0 -5
- package/src/components/frame/index.ts +0 -13
- package/src/components/frame/scss/index.scss +0 -39
- package/src/components/frame/scss/variables.scss +0 -4
- package/src/components/highlight/index.ts +0 -66
- package/src/components/highlight/scss/index.scss +0 -7
- package/src/components/highlight/scss/variables.scss +0 -4
- package/src/components/loader/index.ts +0 -80
- package/src/components/loader/scss/index.scss +0 -71
- package/src/components/loader/scss/variables.scss +0 -6
- package/src/components/radio/scss/index.scss +0 -50
- package/src/components/radio/scss/variables.scss +0 -67
- package/src/components/root/index.ts +0 -6
- package/src/components/root/onclick.ts +0 -20
- package/src/components/switch/scss/index.scss +0 -48
- package/src/components/switch/scss/variables.scss +0 -74
- package/src/css-utilities/[margin,padding]/scss/index.scss +0 -43
- package/src/css-utilities/[margin,padding]/scss/variables.scss +0 -54
- package/src/css-utilities/error/scss/index.scss +0 -24
- package/src/css-utilities/error/scss/variables.scss +0 -3
- package/src/css-utilities/flicker/scss/index.scss +0 -15
- package/src/css-utilities/flicker/scss/variables.scss +0 -5
- package/src/css-utilities/focus/scss/index.scss +0 -7
- package/src/css-utilities/focus/scss/variables.scss +0 -5
- package/src/css-utilities/gap/scss/index.scss +0 -13
- package/src/css-utilities/gap/scss/variables.scss +0 -39
- package/src/css-utilities/line-height/scss/index.scss +0 -1
- package/src/css-utilities/line-height/scss/variables.scss +0 -10
- package/src/css-utilities/pointer/scss/index.scss +0 -5
- package/src/css-utilities/scroll-fade/scss/index.scss +0 -47
- package/src/css-utilities/scroll-fade/scss/variables.scss +0 -3
- package/src/css-utilities/size/scss/index.scss +0 -1
- package/src/css-utilities/size/scss/variables.scss +0 -12
- package/src/css-utilities/text/scss/variables.scss +0 -31
- package/src/css-utilities/viewport/scss/index.scss +0 -5
- package/src/css-utilities/width/scss/index.scss +0 -5
- package/src/css-utilities/width/scss/variables.scss +0 -9
- package/src/fonts/index.ts +0 -1
- package/src/themes/dark/back.ts +0 -9
- package/src/themes/dark/button/scss/index.scss +0 -46
- package/src/themes/dark/link/scss/index.scss +0 -26
- package/src/tokens/scss/font-weight.scss +0 -6
- package/src/tokens/scss/line-height.scss +0 -9
- package/src/tokens/scss/transition-duration.scss +0 -1
- /package/build/{fonts/montserrat → css-utilities/font/geist}/index.d.ts +0 -0
- /package/build/{fonts/montserrat → css-utilities/font/geist}/index.js +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- /package/src/{fonts/montserrat → css-utilities/font/geist}/index.ts +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
@use 'variables';
|
|
2
|
-
|
|
3
|
-
.loader {
|
|
4
|
-
background-color: #01020964;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
position: fixed;
|
|
8
|
-
opacity: 1;
|
|
9
|
-
pointer-events: none;
|
|
10
|
-
right: 0;
|
|
11
|
-
top: 0;
|
|
12
|
-
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
|
|
13
|
-
visibility: visible;
|
|
14
|
-
z-index: 9999;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
&--load {
|
|
18
|
-
animation: 0.4s 0.2s ease-in-out 1 both loaderMove;
|
|
19
|
-
|
|
20
|
-
& & {
|
|
21
|
-
animation: 0.4s ease-in-out 1 both loaderMove;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@keyframes loaderMove {
|
|
27
|
-
0% {
|
|
28
|
-
transform: translateY(0);
|
|
29
|
-
}
|
|
30
|
-
80% {
|
|
31
|
-
transform: translateY(-102%);
|
|
32
|
-
}
|
|
33
|
-
100% {
|
|
34
|
-
transform: translateY(-102%);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
& & {
|
|
40
|
-
background-color: var(--color-black-400);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-content {
|
|
44
|
-
bottom: auto;
|
|
45
|
-
left: 50%;
|
|
46
|
-
position: absolute;
|
|
47
|
-
right: auto;
|
|
48
|
-
top: 50%;
|
|
49
|
-
transform: translateX(-50%) translateY(-50%);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&-logo {
|
|
53
|
-
color: white;
|
|
54
|
-
|
|
55
|
-
&--scale {
|
|
56
|
-
animation: loaderLogoScale 0.32s 1;
|
|
57
|
-
animation-fill-mode: both;
|
|
58
|
-
|
|
59
|
-
@keyframes loaderLogoScale {
|
|
60
|
-
from {
|
|
61
|
-
opacity: 1;
|
|
62
|
-
transform: scale3d(1, 1, 1);
|
|
63
|
-
}
|
|
64
|
-
to {
|
|
65
|
-
opacity: 0;
|
|
66
|
-
transform: scale3d(1.8, 1.8, 1.8);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use 'variables';
|
|
3
|
-
|
|
4
|
-
.radio {
|
|
5
|
-
background: var(--background);
|
|
6
|
-
border-color: var(--border-color);
|
|
7
|
-
border-radius: var(--border-radius);
|
|
8
|
-
border-style: var(--border-style);
|
|
9
|
-
border-width: var(--border-width);
|
|
10
|
-
flex: 0 0 var(--width);
|
|
11
|
-
height: var(--height);
|
|
12
|
-
position: relative;
|
|
13
|
-
transition:
|
|
14
|
-
background var(--transition-duration) ease-in-out,
|
|
15
|
-
border-color var(--transition-duration) ease-in-out,
|
|
16
|
-
box-shadow var(--transition-duration) ease-in-out,
|
|
17
|
-
opacity var(--transition-duration) ease-in-out,
|
|
18
|
-
transform var(--transition-duration) ease-in-out;
|
|
19
|
-
width: var(--width);
|
|
20
|
-
|
|
21
|
-
&:invalid,
|
|
22
|
-
&:required {
|
|
23
|
-
box-shadow: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&::before {
|
|
27
|
-
background: var(--accent);
|
|
28
|
-
border-radius: inherit;
|
|
29
|
-
bottom: 50%;
|
|
30
|
-
box-shadow: var(--box-shadow);
|
|
31
|
-
content: '';
|
|
32
|
-
height: var(--height);
|
|
33
|
-
opacity: var(--opacity);
|
|
34
|
-
right: 50%;
|
|
35
|
-
position: absolute;
|
|
36
|
-
transform: translate(var(--translateX), var(--translateY)) rotate(var(--rotate)) scale(var(--scale));
|
|
37
|
-
transform-origin: center;
|
|
38
|
-
width: var(--width);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Hide HTML Field Element
|
|
42
|
-
&-tag {
|
|
43
|
-
@include lib.position(absolute, 0 null null 0);
|
|
44
|
-
height: 0px;
|
|
45
|
-
opacity: 0;
|
|
46
|
-
pointer-events: none;
|
|
47
|
-
width: 0px;
|
|
48
|
-
z-index: 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
@use '/tokens';
|
|
2
|
-
|
|
3
|
-
.radio {
|
|
4
|
-
--background: var(--background-default);
|
|
5
|
-
--background-active: var(--background-default);
|
|
6
|
-
--background-default: transparent;
|
|
7
|
-
--background-hover: var(--background-default);
|
|
8
|
-
--background-pressed: var(--background-default);
|
|
9
|
-
--border-color: var(--border-color-default);
|
|
10
|
-
--border-color-default: var(--background);
|
|
11
|
-
--border-radius: 100%;
|
|
12
|
-
--border-style: solid;
|
|
13
|
-
--border-width: 0px;
|
|
14
|
-
--box-shadow: var(--box-shadow-default);
|
|
15
|
-
--box-shadow-default: none;
|
|
16
|
-
--height: var(--size);
|
|
17
|
-
--margin-horizontal: calc(var(--width-switch) - var(--width));
|
|
18
|
-
--opacity: var(--opacity-default);
|
|
19
|
-
--opacity-active: 1;
|
|
20
|
-
--opacity-default: 0.4;
|
|
21
|
-
--opacity-hover: var(--opacity-default);
|
|
22
|
-
--opacity-pressed: var(--opacity-default);
|
|
23
|
-
--rotate: 0deg;
|
|
24
|
-
--scale: var(--scale-default);
|
|
25
|
-
--scale-active: 0.9;
|
|
26
|
-
--scale-default: 0;
|
|
27
|
-
--scale-hover: 0.8;
|
|
28
|
-
--scale-pressed: 0.7;
|
|
29
|
-
--size: var(--size-600);
|
|
30
|
-
--width: var(--height);
|
|
31
|
-
--width-switch: 40px;
|
|
32
|
-
|
|
33
|
-
&::before {
|
|
34
|
-
--height: calc((var(--size) / 2) - (var(--border-width) * 2));
|
|
35
|
-
--box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
|
|
36
|
-
--translateX: 50%;
|
|
37
|
-
--translateY: 50%;
|
|
38
|
-
--width: var(--height);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#{tokens.state(inactive, 'label')},
|
|
42
|
-
#{tokens.state(inactive)} {
|
|
43
|
-
@include tokens.state(hover) {
|
|
44
|
-
--background: var(--background-hover);
|
|
45
|
-
--border-color: var(--border-color-hover);
|
|
46
|
-
--box-shadow: var(--box-shadow-hover);
|
|
47
|
-
--opacity: var(--opacity-hover);
|
|
48
|
-
--scale: var(--scale-hover);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@include tokens.state(pressed) {
|
|
52
|
-
--background: var(--background-pressed);
|
|
53
|
-
--border-color: var(--border-color-pressed);
|
|
54
|
-
--box-shadow: var(--box-shadow-pressed);
|
|
55
|
-
--opacity: var(--opacity-pressed);
|
|
56
|
-
--scale: var(--scale-pressed);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
#{tokens.state(active)} {
|
|
61
|
-
--background: var(--background-active);
|
|
62
|
-
--border-color: var(--border-color-active);
|
|
63
|
-
--box-shadow: var(--box-shadow-active);
|
|
64
|
-
--opacity: var(--opacity-active);
|
|
65
|
-
--scale: var(--scale-active);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import factory from '@esportsplus/queue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let queue = factory<VoidFunction | (() => Promise<void>)>(64);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const onclick = async () => {
|
|
8
|
-
let item;
|
|
9
|
-
|
|
10
|
-
while (item = queue.next()) {
|
|
11
|
-
await item();
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
onclick.push = (fn: VoidFunction) => {
|
|
16
|
-
queue.add(fn);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export default onclick;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use 'variables';
|
|
3
|
-
|
|
4
|
-
.switch {
|
|
5
|
-
background: var(--background);
|
|
6
|
-
border-color: var(--border-color);
|
|
7
|
-
border-radius: var(--border-radius);
|
|
8
|
-
border-style: var(--border-style);
|
|
9
|
-
border-width: var(--border-width);
|
|
10
|
-
flex: 0 0 var(--width);
|
|
11
|
-
height: var(--height);
|
|
12
|
-
position: relative;
|
|
13
|
-
transition:
|
|
14
|
-
background var(--transition-duration) ease-in-out,
|
|
15
|
-
border-color var(--transition-duration) ease-in-out,
|
|
16
|
-
box-shadow var(--transition-duration) ease-in-out,
|
|
17
|
-
opacity var(--transition-duration) ease-in-out,
|
|
18
|
-
transform var(--transition-duration) ease-in-out;
|
|
19
|
-
width: var(--width);
|
|
20
|
-
|
|
21
|
-
&:invalid,
|
|
22
|
-
&:required {
|
|
23
|
-
box-shadow: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&::before {
|
|
27
|
-
@include lib.position(absolute, var(--padding-vertical) null null var(--padding-horizontal));
|
|
28
|
-
background: var(--accent);
|
|
29
|
-
border-radius: inherit;
|
|
30
|
-
box-shadow: var(--box-shadow);
|
|
31
|
-
content: '';
|
|
32
|
-
height: var(--height);
|
|
33
|
-
opacity: var(--opacity);
|
|
34
|
-
transform: translate(var(--translateX), var(--translateY)) rotate(var(--rotate)) scale(var(--scale));
|
|
35
|
-
transform-origin: center;
|
|
36
|
-
width: var(--width);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Hide HTML Field Element
|
|
40
|
-
&-tag {
|
|
41
|
-
@include lib.position(absolute, 0 null null 0);
|
|
42
|
-
height: 0px;
|
|
43
|
-
opacity: 0;
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
width: 0px;
|
|
46
|
-
z-index: 0;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.switch {
|
|
5
|
-
--background: var(--background-default);
|
|
6
|
-
--background-active: var(--background-default);
|
|
7
|
-
--background-default: transparent;
|
|
8
|
-
--background-hover: var(--background-default);
|
|
9
|
-
--background-pressed: var(--background-default);
|
|
10
|
-
--border-color: var(--border-color-default);
|
|
11
|
-
--border-color-default: var(--background);
|
|
12
|
-
--border-radius: 240px;
|
|
13
|
-
--border-style: solid;
|
|
14
|
-
--border-width: 0px;
|
|
15
|
-
--box-shadow: var(--box-shadow-default);
|
|
16
|
-
--box-shadow-default: none;
|
|
17
|
-
--height: var(--size);
|
|
18
|
-
--opacity: var(--opacity-default);
|
|
19
|
-
--opacity-active: var(--opacity-default);
|
|
20
|
-
--opacity-default: 1;
|
|
21
|
-
--opacity-hover: var(--opacity-default);
|
|
22
|
-
--opacity-pressed: var(--opacity-default);
|
|
23
|
-
--padding-horizontal: var(--border-width-400);
|
|
24
|
-
--padding-vertical: var(--border-width-400);
|
|
25
|
-
--rotate: 0deg;
|
|
26
|
-
--scale: var(--scale-default);
|
|
27
|
-
--scale-active: var(--scale-default);
|
|
28
|
-
--scale-default: 1;
|
|
29
|
-
--scale-hover: var(--scale-default);
|
|
30
|
-
--scale-pressed: var(--scale-default);
|
|
31
|
-
--size: var(--size-600);
|
|
32
|
-
--width: var(--width-switch);
|
|
33
|
-
--width-switch: 40px;
|
|
34
|
-
|
|
35
|
-
&::before {
|
|
36
|
-
--box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
|
|
37
|
-
--height: calc(var(--size) - (var(--border-width) * 2) - (var(--padding-vertical) * 2));
|
|
38
|
-
--translateX: 0px;
|
|
39
|
-
--translateY: 0px;
|
|
40
|
-
--width: var(--height);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
#{tokens.state(inactive)} {
|
|
44
|
-
@include tokens.state(hover) {
|
|
45
|
-
--background: var(--background-hover);
|
|
46
|
-
--border-color: var(--border-color-hover);
|
|
47
|
-
--box-shadow: var(--box-shadow-hover);
|
|
48
|
-
--color: var(--color-hover);
|
|
49
|
-
--opacity: var(--opacity-hover);
|
|
50
|
-
--scale: var(--scale-hover);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@include tokens.state(pressed) {
|
|
54
|
-
--background: var(--background-pressed);
|
|
55
|
-
--border-color: var(--border-color-pressed);
|
|
56
|
-
--box-shadow: var(--box-shadow-pressed);
|
|
57
|
-
--color: var(--color-pressed);
|
|
58
|
-
--opacity: var(--opacity-pressed);
|
|
59
|
-
--scale: var(--scale-pressed);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
#{tokens.state(active)} {
|
|
64
|
-
--background: var(--background-active);
|
|
65
|
-
--border-color: var(--border-color-active);
|
|
66
|
-
--box-shadow: var(--box-shadow-active);
|
|
67
|
-
--opacity: var(--opacity-active);
|
|
68
|
-
--scale: var(--scale-active);
|
|
69
|
-
|
|
70
|
-
&::before {
|
|
71
|
-
--translateX: calc(var(--width-switch) - (var(--border-width) * 2) - var(--height) - (var(--padding-horizontal) * 2));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@use './variables';
|
|
2
|
-
|
|
3
|
-
@each $property in margin padding {
|
|
4
|
-
.--#{$property} {
|
|
5
|
-
&,
|
|
6
|
-
&-horizontal {
|
|
7
|
-
#{$property}-left: var(--#{$property}-horizontal);
|
|
8
|
-
#{$property}-right: var(--#{$property}-horizontal);
|
|
9
|
-
|
|
10
|
-
@if ($property == padding) {
|
|
11
|
-
&.--border {
|
|
12
|
-
padding-left: calc(var(--padding-horizontal) - var(--border-width));
|
|
13
|
-
padding-right: calc(var(--padding-horizontal) - var(--border-width));
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&,
|
|
19
|
-
&-vertical {
|
|
20
|
-
#{$property}-bottom: var(--#{$property}-vertical);
|
|
21
|
-
#{$property}-top: var(--#{$property}-vertical);
|
|
22
|
-
|
|
23
|
-
@if ($property == padding) {
|
|
24
|
-
&.--border {
|
|
25
|
-
padding-bottom: calc(var(--padding-vertical) - var(--border-width));
|
|
26
|
-
padding-top: calc(var(--padding-vertical) - var(--border-width));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@each $direction in 'bottom' 'top' {
|
|
32
|
-
&-#{$direction} {
|
|
33
|
-
#{$property}-#{$direction}: var(--#{$property}-vertical);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@each $direction in 'left' 'right' {
|
|
38
|
-
&-#{$direction} {
|
|
39
|
-
#{$property}-#{$direction}: var(--#{$property}-horizontal);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
@each $property in margin padding {
|
|
5
|
-
.--#{$property} {
|
|
6
|
-
@each $direction in 'horizontal' 'vertical' {
|
|
7
|
-
&,
|
|
8
|
-
&-#{$direction} {
|
|
9
|
-
@each $key in lib.map-keys(tokens.$border-width) {
|
|
10
|
-
&-border-width {
|
|
11
|
-
--#{$property}-#{$direction}: var(--border-width-400);
|
|
12
|
-
|
|
13
|
-
&-#{$key} {
|
|
14
|
-
--#{$property}-#{$direction}: var(--border-width-#{$key});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@each $key in lib.map-keys(tokens.$spacer) {
|
|
20
|
-
&-spacer {
|
|
21
|
-
--#{$property}-#{$direction}: var(--spacer-400);
|
|
22
|
-
|
|
23
|
-
&-#{$key} {
|
|
24
|
-
--#{$property}-#{$direction}: var(--spacer-#{$key});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@each $key in lib.map-keys(tokens.$size) {
|
|
30
|
-
&-#{$key} {
|
|
31
|
-
--#{$property}-#{$direction}: var(--size-#{$key});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-inherit {
|
|
36
|
-
--#{$property}-#{$direction}: inherit;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@each $property in margin {
|
|
44
|
-
.--#{$property} {
|
|
45
|
-
@each $direction in 'horizontal' 'vertical' {
|
|
46
|
-
&,
|
|
47
|
-
&-#{$direction} {
|
|
48
|
-
&-auto {
|
|
49
|
-
--#{$property}-#{$direction}: auto;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.--error {
|
|
2
|
-
animation: error var(--animation-duration) 1 linear;
|
|
3
|
-
|
|
4
|
-
@keyframes error {
|
|
5
|
-
0% {
|
|
6
|
-
transform: translate(8px);
|
|
7
|
-
}
|
|
8
|
-
20% {
|
|
9
|
-
transform: translate(-8px);
|
|
10
|
-
}
|
|
11
|
-
40% {
|
|
12
|
-
transform: translate(4px);
|
|
13
|
-
}
|
|
14
|
-
60% {
|
|
15
|
-
transform: translate(-4px);
|
|
16
|
-
}
|
|
17
|
-
80% {
|
|
18
|
-
transform: translate(2px);
|
|
19
|
-
}
|
|
20
|
-
100% {
|
|
21
|
-
transform: translate(0px);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--gap {
|
|
5
|
-
@each $direction in 'horizontal' 'vertical' {
|
|
6
|
-
&,
|
|
7
|
-
&-#{$direction} {
|
|
8
|
-
@each $key in lib.map-keys(tokens.$border-width) {
|
|
9
|
-
&-border-width {
|
|
10
|
-
--gap-#{$direction}: var(--border-width-400);
|
|
11
|
-
|
|
12
|
-
&-#{$key} {
|
|
13
|
-
--gap-#{$direction}: var(--border-width-#{$key});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@each $key in lib.map-keys(tokens.$spacer) {
|
|
19
|
-
&-spacer {
|
|
20
|
-
--gap-#{$direction}: var(--spacer-400);
|
|
21
|
-
|
|
22
|
-
&-#{$key} {
|
|
23
|
-
--gap-#{$direction}: var(--spacer-#{$key});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@each $key in lib.map-keys(tokens.$size) {
|
|
29
|
-
&-#{$key} {
|
|
30
|
-
--gap-#{$direction}: var(--size-#{$key});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-inherit {
|
|
35
|
-
--gap-#{$direction}: inherit;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use './variables';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@use 'variables';
|
|
2
|
-
|
|
3
|
-
// Registered so the length custom properties can be interpolated by the
|
|
4
|
-
// scroll-driven animation below.
|
|
5
|
-
@property --scroll-fade-bottom {
|
|
6
|
-
inherits: false;
|
|
7
|
-
initial-value: 0px;
|
|
8
|
-
syntax: '<length>';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@property --scroll-fade-top {
|
|
12
|
-
inherits: false;
|
|
13
|
-
initial-value: 0px;
|
|
14
|
-
syntax: '<length>';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// A vertical scroll container that fades an edge only while there is content
|
|
18
|
-
// past it: no top fade at the very top, no bottom fade at the very end. Driven
|
|
19
|
-
// by the element's own scroll position (scroll-driven animations), so the fade
|
|
20
|
-
// is direction-aware rather than a static gradient that clips the ends.
|
|
21
|
-
.--scroll-fade {
|
|
22
|
-
overflow-y: auto;
|
|
23
|
-
|
|
24
|
-
@supports (animation-timeline: scroll()) {
|
|
25
|
-
animation: scroll-fade linear both;
|
|
26
|
-
animation-timeline: scroll(self);
|
|
27
|
-
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--scroll-fade-top), #000 calc(100% - var(--scroll-fade-bottom)), transparent);
|
|
28
|
-
mask-image: linear-gradient(to bottom, transparent, #000 var(--scroll-fade-top), #000 calc(100% - var(--scroll-fade-bottom)), transparent);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@keyframes scroll-fade {
|
|
33
|
-
0% {
|
|
34
|
-
--scroll-fade-bottom: var(--scroll-fade-size);
|
|
35
|
-
--scroll-fade-top: 0px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
5%, 95% {
|
|
39
|
-
--scroll-fade-bottom: var(--scroll-fade-size);
|
|
40
|
-
--scroll-fade-top: var(--scroll-fade-size);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
100% {
|
|
44
|
-
--scroll-fade-bottom: 0px;
|
|
45
|
-
--scroll-fade-top: var(--scroll-fade-size);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use './variables';
|