@esportsplus/ui 0.8.3 → 0.9.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/.editorconfig +9 -9
- package/.gitattributes +2 -2
- package/.github/dependabot.yml +23 -0
- package/.github/workflows/bump.yml +7 -0
- package/.github/workflows/publish.yml +14 -0
- package/package.json +9 -22
- package/src/components/accordion/index.ts +35 -34
- package/src/components/accordion/scss/index.scss +17 -16
- package/src/components/accordion/scss/variables.scss +9 -9
- package/src/components/anchor/index.ts +1 -0
- package/src/components/anchor/scss/index.scss +42 -41
- package/src/components/anchor/scss/variables.scss +4 -4
- package/src/components/banner/index.ts +1 -0
- package/src/components/banner/scss/index.scss +41 -40
- package/src/components/banner/scss/variables.scss +9 -9
- package/src/components/border/index.ts +1 -0
- package/src/components/border/scss/index.scss +12 -0
- package/src/components/border/scss/variables.scss +6 -0
- package/src/components/bubble/index.ts +1 -0
- package/src/components/bubble/scss/index.scss +32 -0
- package/src/components/bubble/scss/variables.scss +19 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button/scss/index.scss +115 -114
- package/src/components/button/scss/variables.scss +66 -66
- package/src/components/card/index.ts +1 -0
- package/src/components/card/scss/index.scss +36 -35
- package/src/components/card/scss/variables.scss +41 -41
- package/src/components/clipboard/index.ts +3 -4
- package/src/components/clipboard/write.ts +8 -8
- package/src/components/container/index.ts +1 -0
- package/src/components/container/scss/index.scss +10 -8
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/counter/index.ts +99 -93
- package/src/components/counter/scss/index.scss +63 -61
- package/src/components/counter/scss/variables.scss +26 -26
- package/src/components/ellipsis/index.ts +10 -9
- package/src/components/ellipsis/scss/index.scss +29 -27
- package/src/components/ellipsis/scss/variables.scss +4 -4
- package/src/components/field/checkbox.ts +71 -0
- package/src/components/field/description.ts +14 -0
- package/src/components/field/error.ts +16 -0
- package/src/components/field/file.ts +77 -0
- package/src/components/field/index.ts +11 -0
- package/src/components/field/optional.ts +23 -0
- package/src/components/field/scss/_check.scss +225 -0
- package/src/components/field/scss/_normalize.scss +36 -0
- package/src/components/field/scss/_text.scss +106 -0
- package/src/components/field/scss/index.scss +161 -0
- package/src/components/field/scss/variables.scss +139 -0
- package/src/components/field/select.ts +182 -0
- package/src/components/field/switch.ts +9 -0
- package/src/components/field/text.ts +92 -0
- package/src/components/field/textarea.ts +8 -0
- package/src/components/field/title.ts +24 -0
- package/src/components/footer/index.ts +83 -78
- package/src/components/footer/scss/index.scss +25 -25
- package/src/components/form/action.ts +79 -80
- package/src/components/form/index.ts +5 -6
- package/src/components/form/input.ts +17 -15
- package/src/components/form/types.ts +13 -15
- package/src/components/frame/index.ts +1 -0
- package/src/components/frame/scss/index.scss +11 -11
- package/src/components/grid/index.ts +1 -0
- package/src/components/grid/scss/index.scss +11 -9
- package/src/components/grid/scss/variables.scss +5 -5
- package/src/components/group/index.ts +1 -0
- package/src/components/group/scss/index.scss +38 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/highlight/index.ts +51 -47
- package/src/components/highlight/scss/index.scss +6 -4
- package/src/components/highlight/scss/variables.scss +3 -3
- package/src/components/icon/index.ts +1 -0
- package/src/components/icon/scss/index.scss +18 -16
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/index.ts +38 -19
- package/src/components/json/download.ts +14 -14
- package/src/components/json/index.ts +3 -3
- package/src/components/link/hover.ts +18 -18
- package/src/components/link/index.ts +4 -3
- package/src/components/link/scss/index.scss +66 -65
- package/src/components/link/scss/variables.scss +46 -46
- package/src/components/loader/index.ts +42 -34
- package/src/components/loader/scss/index.scss +70 -68
- package/src/components/loader/scss/variables.scss +5 -5
- package/src/components/loading/index.ts +13 -7
- package/src/components/loading/scss/index.scss +18 -16
- package/src/components/loading/scss/variables.scss +5 -5
- package/src/components/magnet/index.ts +55 -54
- package/src/components/magnet/scss/index.scss +17 -16
- package/src/components/magnet/scss/variables.scss +4 -4
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/scss/index.scss +35 -34
- package/src/components/modal/scss/variables.scss +6 -6
- package/src/components/normalize/index.ts +1 -0
- package/src/components/number/index.ts +4 -24
- package/src/components/page/index.ts +17 -15
- package/src/components/page/scss/index.scss +33 -31
- package/src/components/page/scss/variables.scss +15 -15
- package/src/components/root/index.ts +4 -4
- package/src/components/root/onclick.ts +20 -20
- package/src/components/root/scss/index.scss +94 -94
- package/src/components/root/scss/variables.scss +100 -100
- package/src/components/row/index.ts +1 -0
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +49 -43
- package/src/components/scrollbar/scss/index.scss +72 -70
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/index.ts +1 -0
- package/src/components/sidebar/scss/index.scss +50 -49
- package/src/components/sidebar/scss/variables.scss +20 -20
- package/src/components/site/index.ts +27 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/index.ts +1 -0
- package/src/components/text/scss/index.scss +11 -9
- package/src/components/text/scss/variables.scss +8 -8
- package/src/components/thumbnail/index.ts +1 -0
- package/src/components/thumbnail/scss/index.scss +9 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +85 -84
- package/src/components/tooltip/scss/_center.scss +13 -13
- package/src/components/tooltip/scss/_east.scss +34 -34
- package/src/components/tooltip/scss/_north.scss +34 -34
- package/src/components/tooltip/scss/_south.scss +35 -35
- package/src/components/tooltip/scss/_west.scss +34 -34
- package/src/components/tooltip/scss/index.scss +94 -93
- package/src/components/tooltip/scss/variables.scss +24 -24
- package/src/components/truncate/index.ts +4 -14
- package/src/components/typewriter/index.ts +54 -53
- package/src/components/typewriter/scss/index.scss +14 -14
- package/src/css-utilities/[margin,padding]/scss/index.scss +43 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
- package/src/css-utilities/absolute/scss/index.scss +36 -36
- package/src/css-utilities/background/scss/index.scss +1 -0
- package/src/css-utilities/background/scss/variables.scss +26 -27
- package/src/css-utilities/border/scss/index.scss +23 -21
- package/src/css-utilities/border/scss/variables.scss +64 -66
- package/src/css-utilities/color/scss/index.scss +1 -0
- package/src/css-utilities/color/scss/variables.scss +29 -31
- package/src/css-utilities/disabled/scss/index.scss +4 -4
- package/src/css-utilities/flex/scss/index.scss +65 -65
- package/src/css-utilities/glass/scss/index.scss +4 -2
- package/src/css-utilities/glass/scss/variables.scss +2 -2
- package/src/css-utilities/hidden/scss/index.scss +28 -28
- package/src/css-utilities/index.ts +18 -0
- package/src/css-utilities/inline/scss/index.scss +7 -7
- package/src/css-utilities/line-height/scss/index.scss +1 -0
- package/src/css-utilities/line-height/scss/variables.scss +10 -10
- package/src/css-utilities/not-allowed/scss/index.scss +7 -7
- package/src/css-utilities/pointer/scss/index.scss +5 -5
- package/src/css-utilities/size/scss/index.scss +1 -0
- package/src/css-utilities/size/scss/variables.scss +12 -12
- package/src/css-utilities/squircle/scss/index.scss +4 -4
- package/src/css-utilities/text/scss/index.scss +90 -89
- package/src/css-utilities/text/scss/variables.scss +31 -31
- package/src/css-utilities/viewport/scss/index.scss +4 -4
- package/src/css-utilities/width/scss/index.scss +5 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/lib/index.scss +7 -7
- package/src/lib/scss/breakpoint.scss +41 -41
- package/src/lib/scss/color.scss +1 -1
- package/src/lib/scss/css-variables.scss +16 -16
- package/src/lib/scss/list.scss +77 -77
- package/src/lib/scss/map.scss +1 -1
- package/src/lib/scss/position.scss +55 -55
- package/src/lib/scss/string.scss +34 -34
- package/src/tokens/index.scss +11 -11
- package/src/tokens/scss/border-radius.scss +12 -12
- package/src/tokens/scss/border-width.scss +6 -6
- package/src/tokens/scss/box-shadow.scss +39 -39
- package/src/tokens/scss/color.scss +68 -64
- package/src/tokens/scss/font-size.scss +16 -16
- package/src/tokens/scss/font-weight.scss +6 -6
- package/src/tokens/scss/line-height.scss +6 -6
- package/src/tokens/scss/size.scss +13 -13
- package/src/tokens/scss/spacer.scss +10 -10
- package/src/tokens/scss/state.scss +85 -87
- package/src/tokens/scss/transition-duration.scss +1 -1
- package/tsconfig.json +5 -2
- package/assets/0af89c10df9bc2f8d646.woff2 +0 -0
- package/assets/109e3207d9afea8524be.woff2 +0 -0
- package/assets/16663c3f6ab1da2d6c86.woff +0 -0
- package/assets/16e8721ef5837bc6375e.woff +0 -0
- package/assets/2a3e005f58bfca9c117e.woff +0 -0
- package/assets/58a8d7ebc386843b62c5.woff2 +0 -0
- package/assets/593de7c561e5ffe80c3e.woff2 +0 -0
- package/assets/68b7982c2b30b51bf932.woff2 +0 -0
- package/assets/a04b5e24af93da353f0e.woff +0 -0
- package/assets/bf331673b91821715c08.woff +0 -0
- package/assets/c54b0f4340f2914802d1.woff +0 -0
- package/assets/dd8646a41e4397b77fc4.woff2 +0 -0
- package/assets/e06c107cc50506570954.woff2 +0 -0
- package/assets/ecdfe4c05425592708aa.woff2 +0 -0
- package/assets/f0032576ac7462ccbd0c.woff +0 -0
- package/assets/f872e621917a45943fbc.woff +0 -0
- package/build/components/accordion/index.d.ts +0 -17
- package/build/components/accordion/index.js +0 -25
- package/build/components/clipboard/index.d.ts +0 -5
- package/build/components/clipboard/index.js +0 -3
- package/build/components/clipboard/write.d.ts +0 -2
- package/build/components/clipboard/write.js +0 -9
- package/build/components/counter/index.d.ts +0 -13
- package/build/components/counter/index.js +0 -72
- package/build/components/ellipsis/index.d.ts +0 -2
- package/build/components/ellipsis/index.js +0 -8
- package/build/components/footer/index.d.ts +0 -25
- package/build/components/footer/index.js +0 -55
- package/build/components/form/action.d.ts +0 -5
- package/build/components/form/action.js +0 -54
- package/build/components/form/index.d.ts +0 -23
- package/build/components/form/index.js +0 -4
- package/build/components/form/input.d.ts +0 -9
- package/build/components/form/input.js +0 -10
- package/build/components/form/layout.d.ts +0 -12
- package/build/components/form/layout.js +0 -12
- package/build/components/form/types.d.ts +0 -11
- package/build/components/form/types.js +0 -1
- package/build/components/highlight/index.d.ts +0 -8
- package/build/components/highlight/index.js +0 -36
- package/build/components/index.d.ts +0 -19
- package/build/components/index.js +0 -19
- package/build/components/json/download.d.ts +0 -2
- package/build/components/json/download.js +0 -8
- package/build/components/json/index.d.ts +0 -4
- package/build/components/json/index.js +0 -2
- package/build/components/link/hover.d.ts +0 -10
- package/build/components/link/hover.js +0 -17
- package/build/components/link/index.d.ts +0 -12
- package/build/components/link/index.js +0 -2
- package/build/components/loader/index.d.ts +0 -5
- package/build/components/loader/index.js +0 -31
- package/build/components/loading/index.d.ts +0 -2
- package/build/components/loading/index.js +0 -6
- package/build/components/magnet/index.d.ts +0 -10
- package/build/components/magnet/index.js +0 -46
- package/build/components/number/index.d.ts +0 -8
- package/build/components/number/index.js +0 -16
- package/build/components/page/index.d.ts +0 -22
- package/build/components/page/index.js +0 -11
- package/build/components/root/index.d.ts +0 -9
- package/build/components/root/index.js +0 -3
- package/build/components/root/onclick.d.ts +0 -5
- package/build/components/root/onclick.js +0 -14
- package/build/components/scrollbar/index.d.ts +0 -13
- package/build/components/scrollbar/index.js +0 -36
- package/build/components/site/index.d.ts +0 -8
- package/build/components/site/index.js +0 -16
- package/build/components/tooltip/index.d.ts +0 -23
- package/build/components/tooltip/index.js +0 -63
- package/build/components/truncate/index.d.ts +0 -9
- package/build/components/truncate/index.js +0 -10
- package/build/components/typewriter/index.d.ts +0 -8
- package/build/components/typewriter/index.js +0 -41
- package/build/index.d.ts +0 -19
- package/build/index.js +0 -19
- package/components/styles.css +0 -30
- package/components/variables.css +0 -24
- package/fonts/montserrat.css +0 -1
- package/lib.scss +0 -2
- package/normalize.css +0 -1
- package/src/components/clipboard/scss/index.scss +0 -3
- package/src/components/form/layout.ts +0 -26
- package/src/css-utilities/index.scss +0 -14
- package/src/css-utilities/overflow/scss/index.scss +0 -5
- package/src/index.ts +0 -19
- package/storage/fonts/montserrat/Montserrat-Bold.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-BoldItalic.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-BoldItalic.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-Italic.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-Medium.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-Medium.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-MediumItalic.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-MediumItalic.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-Regular.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-SemiBold.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
- package/storage/fonts/montserrat/Montserrat-SemiBoldItalic.woff +0 -0
- package/storage/fonts/montserrat/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/storage/fonts/montserrat/index.css +0 -79
- package/tokens.scss +0 -2
- package/utilities/styles.css +0 -16
- package/utilities/variables.css +0 -9
- package/webpack.config.ts +0 -26
|
@@ -1,64 +1,68 @@
|
|
|
1
|
-
@use '../../lib';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
@
|
|
64
|
-
|
|
1
|
+
@use '../../lib';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
$color: (
|
|
5
|
+
'black': (
|
|
6
|
+
300: #151726,
|
|
7
|
+
400: #020412,
|
|
8
|
+
500: #010312
|
|
9
|
+
),
|
|
10
|
+
'blue': (
|
|
11
|
+
300: #3755ff,
|
|
12
|
+
400: #2545ff,
|
|
13
|
+
500: #1e3def
|
|
14
|
+
),
|
|
15
|
+
'border': (
|
|
16
|
+
300: #bec3dd,
|
|
17
|
+
400: #b4b9d2,
|
|
18
|
+
500: #a5a9c2
|
|
19
|
+
),
|
|
20
|
+
'green': (
|
|
21
|
+
300: #6aff5c,
|
|
22
|
+
400: #15ff00,
|
|
23
|
+
500: #13eb00
|
|
24
|
+
),
|
|
25
|
+
'grey': (
|
|
26
|
+
300: #f4f9ff,
|
|
27
|
+
400: #e7f1fa,
|
|
28
|
+
500: #d4dde6
|
|
29
|
+
),
|
|
30
|
+
'purple': (
|
|
31
|
+
300: #7d15ff,
|
|
32
|
+
400: #7300ff,
|
|
33
|
+
500: #6a00eb
|
|
34
|
+
),
|
|
35
|
+
'red': (
|
|
36
|
+
300: #ff2a3d,
|
|
37
|
+
400: #ff0017,
|
|
38
|
+
500: #eb0015
|
|
39
|
+
),
|
|
40
|
+
'text': (
|
|
41
|
+
300: #1e243f,
|
|
42
|
+
400: #171d39,
|
|
43
|
+
500: #121832
|
|
44
|
+
),
|
|
45
|
+
'white': (
|
|
46
|
+
300: #fff,
|
|
47
|
+
400: #fff,
|
|
48
|
+
500: #fff
|
|
49
|
+
),
|
|
50
|
+
'yellow': (
|
|
51
|
+
300: #fbff5e,
|
|
52
|
+
400: #f9ff00,
|
|
53
|
+
500: #e3eb00
|
|
54
|
+
)
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
$colors: lib.list-join(primary secondary, lib.map-keys($color));
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@function color($keys, $opacity) {
|
|
61
|
+
$c: $color;
|
|
62
|
+
|
|
63
|
+
@each $key in $keys {
|
|
64
|
+
$c: lib.map-get($c, $key);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@return lib.color-change($c, $alpha: $opacity);
|
|
68
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// https://www.fluid-type-scale.com/calculate?minFontSize=12&minWidth=400&minRatio=1.16&maxFontSize=14&maxWidth=1400&maxRatio=1.32&steps=100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900&baseStep=400&prefix=-&useContainerWidth=false&includeFallbacks=false&useRems=true&remValue=16&decimals=2&previewFont=Montserrat&previewText=Almost+before+we+knew+it%2C+we+had+left+the+ground&previewWidth=1400
|
|
2
|
-
$font-size: (
|
|
3
|
-
100: clamp(0.48rem, -0.16vi + 0.52rem, 0.38rem),
|
|
4
|
-
200: clamp(0.56rem, -0.09vi + 0.58rem, 0.5rem),
|
|
5
|
-
300: clamp(0.65rem, 0.03vi + 0.64rem, 0.66rem),
|
|
6
|
-
400: clamp(0.75rem, 0.2vi + 0.7rem, 0.88rem),
|
|
7
|
-
500: clamp(0.87rem, 0.46vi + 0.76rem, 1.16rem),
|
|
8
|
-
|
|
9
|
-
// Primarily Used For Headers h1 - h4
|
|
10
|
-
600: clamp(1.01rem, 0.82vi + 0.8rem, 1.52rem),
|
|
11
|
-
700: clamp(1.17rem, 1.35vi + 0.83rem, 2.01rem),
|
|
12
|
-
800: clamp(1.36rem, 2.08vi + 0.84rem, 2.66rem),
|
|
13
|
-
900: clamp(1.58rem, 3.09vi + 0.8rem, 3.51rem),
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
// https://www.fluid-type-scale.com/calculate?minFontSize=12&minWidth=400&minRatio=1.16&maxFontSize=14&maxWidth=1400&maxRatio=1.32&steps=100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900&baseStep=400&prefix=-&useContainerWidth=false&includeFallbacks=false&useRems=true&remValue=16&decimals=2&previewFont=Montserrat&previewText=Almost+before+we+knew+it%2C+we+had+left+the+ground&previewWidth=1400
|
|
2
|
+
$font-size: (
|
|
3
|
+
100: clamp(0.48rem, -0.16vi + 0.52rem, 0.38rem),
|
|
4
|
+
200: clamp(0.56rem, -0.09vi + 0.58rem, 0.5rem),
|
|
5
|
+
300: clamp(0.65rem, 0.03vi + 0.64rem, 0.66rem),
|
|
6
|
+
400: clamp(0.75rem, 0.2vi + 0.7rem, 0.88rem),
|
|
7
|
+
500: clamp(0.87rem, 0.46vi + 0.76rem, 1.16rem),
|
|
8
|
+
|
|
9
|
+
// Primarily Used For Headers h1 - h4
|
|
10
|
+
600: clamp(1.01rem, 0.82vi + 0.8rem, 1.52rem),
|
|
11
|
+
700: clamp(1.17rem, 1.35vi + 0.83rem, 2.01rem),
|
|
12
|
+
800: clamp(1.36rem, 2.08vi + 0.84rem, 2.66rem),
|
|
13
|
+
900: clamp(1.58rem, 3.09vi + 0.8rem, 3.51rem),
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$font-weight: (
|
|
2
|
-
300: 400,
|
|
3
|
-
400: 500,
|
|
4
|
-
500: 600,
|
|
5
|
-
600: 700
|
|
6
|
-
);
|
|
1
|
+
$font-weight: (
|
|
2
|
+
300: 400,
|
|
3
|
+
400: 500,
|
|
4
|
+
500: 600,
|
|
5
|
+
600: 700
|
|
6
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$line-height: (
|
|
2
|
-
100: 1,
|
|
3
|
-
200: 1.2,
|
|
4
|
-
300: 1.4,
|
|
5
|
-
400: 1.6
|
|
6
|
-
);
|
|
1
|
+
$line-height: (
|
|
2
|
+
100: 1,
|
|
3
|
+
200: 1.2,
|
|
4
|
+
300: 1.4,
|
|
5
|
+
400: 1.6
|
|
6
|
+
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
$size: (
|
|
2
|
-
0px: 0px,
|
|
3
|
-
|
|
4
|
-
100: 4px,
|
|
5
|
-
200: 8px,
|
|
6
|
-
300: 12px,
|
|
7
|
-
400: 16px,
|
|
8
|
-
500: 20px,
|
|
9
|
-
600: 24px,
|
|
10
|
-
700: 32px,
|
|
11
|
-
800: 40px,
|
|
12
|
-
900: 48px
|
|
13
|
-
);
|
|
1
|
+
$size: (
|
|
2
|
+
0px: 0px,
|
|
3
|
+
|
|
4
|
+
100: 4px,
|
|
5
|
+
200: 8px,
|
|
6
|
+
300: 12px,
|
|
7
|
+
400: 16px,
|
|
8
|
+
500: 20px,
|
|
9
|
+
600: 24px,
|
|
10
|
+
700: 32px,
|
|
11
|
+
800: 40px,
|
|
12
|
+
900: 48px
|
|
13
|
+
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use '../../lib';
|
|
2
|
-
@use 'size';
|
|
3
|
-
|
|
4
|
-
$spacer: (
|
|
5
|
-
200: 60px,
|
|
6
|
-
300: 80px,
|
|
7
|
-
400: 120px,
|
|
8
|
-
500: 160px,
|
|
9
|
-
600: 180px,
|
|
10
|
-
);
|
|
1
|
+
@use '../../lib';
|
|
2
|
+
@use 'size';
|
|
3
|
+
|
|
4
|
+
$spacer: (
|
|
5
|
+
200: 60px,
|
|
6
|
+
300: 80px,
|
|
7
|
+
400: 120px,
|
|
8
|
+
500: 160px,
|
|
9
|
+
600: 180px,
|
|
10
|
+
);
|
|
@@ -1,87 +1,85 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*------------------------------------------------------------------------------
|
|
3
|
-
*
|
|
4
|
-
* Buttons, Links, And Other Modules Display CSS Properties Based On Module
|
|
5
|
-
* 'State' ( :hover, :active, etc. )
|
|
6
|
-
*
|
|
7
|
-
* Desired Result:
|
|
8
|
-
* - Default Colors Assigned To Element;
|
|
9
|
-
* - On 'highlight' Or ':hover' Display A Slightly Brighter Version Of
|
|
10
|
-
* The Default Color;
|
|
11
|
-
* - On 'pressed' Or ':active' Display Slightly Darker Version Of The
|
|
12
|
-
* Default Color;
|
|
13
|
-
*
|
|
14
|
-
* End Product Gives Off The Illusion Of A Static -> Hovering -> Pressed
|
|
15
|
-
* Button Without Dealing With Transforms To Shift Elements.
|
|
16
|
-
*
|
|
17
|
-
* Mixin Also Handles Removing Duplicate List Keys
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
@use 'sass:meta';
|
|
22
|
-
@use '../../lib';
|
|
23
|
-
|
|
24
|
-
$state: (
|
|
25
|
-
active: '&.--active',
|
|
26
|
-
inactive: '&:not(.--active)',
|
|
27
|
-
|
|
28
|
-
disabled: '&.--disabled',
|
|
29
|
-
enabled: '&:not(.--disabled)',
|
|
30
|
-
|
|
31
|
-
default: '&:not(.--active):not(:hover)',
|
|
32
|
-
hover: '&:not(.--active):hover',
|
|
33
|
-
pressed: '&:not(.--active):active'
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@function state($key, $replace: null) {
|
|
38
|
-
$selector: lib.map-get($state, $key);
|
|
39
|
-
|
|
40
|
-
// To Avoid Overcomplicating The Responsibility Of This Function Limit
|
|
41
|
-
// Replace Parameter To String Values Only
|
|
42
|
-
@if $replace {
|
|
43
|
-
@if meta.type-of($replace) != 'string' or meta.type-of($selector) != 'string' {
|
|
44
|
-
@error "'lib.string-replace' Cannot Be Used On A List!";
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
$selector: lib.string-replace('&', $replace, $selector);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@return $selector;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
@mixin state($states) {
|
|
55
|
-
$selector: ();
|
|
56
|
-
|
|
57
|
-
@each $s in lib.list-to-list($states) {
|
|
58
|
-
$section: state($s);
|
|
59
|
-
|
|
60
|
-
@if $section {
|
|
61
|
-
$selector: lib.list-append($selector, $section);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
#{lib.list-implode(',', lib.list-unique($selector))} {
|
|
66
|
-
@content;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@mixin state-utility($
|
|
71
|
-
$keys: $values;
|
|
72
|
-
|
|
73
|
-
@if meta.type-of($keys) == 'map' {
|
|
74
|
-
$keys: lib.map-keys($keys);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
*------------------------------------------------------------------------------
|
|
3
|
+
*
|
|
4
|
+
* Buttons, Links, And Other Modules Display CSS Properties Based On Module
|
|
5
|
+
* 'State' ( :hover, :active, etc. )
|
|
6
|
+
*
|
|
7
|
+
* Desired Result:
|
|
8
|
+
* - Default Colors Assigned To Element;
|
|
9
|
+
* - On 'highlight' Or ':hover' Display A Slightly Brighter Version Of
|
|
10
|
+
* The Default Color;
|
|
11
|
+
* - On 'pressed' Or ':active' Display Slightly Darker Version Of The
|
|
12
|
+
* Default Color;
|
|
13
|
+
*
|
|
14
|
+
* End Product Gives Off The Illusion Of A Static -> Hovering -> Pressed
|
|
15
|
+
* Button Without Dealing With Transforms To Shift Elements.
|
|
16
|
+
*
|
|
17
|
+
* Mixin Also Handles Removing Duplicate List Keys
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
@use 'sass:meta';
|
|
22
|
+
@use '../../lib';
|
|
23
|
+
|
|
24
|
+
$state: (
|
|
25
|
+
active: '&.--active',
|
|
26
|
+
inactive: '&:not(.--active)',
|
|
27
|
+
|
|
28
|
+
disabled: '&.--disabled',
|
|
29
|
+
enabled: '&:not(.--disabled)',
|
|
30
|
+
|
|
31
|
+
default: '&:not(.--active):not(:hover)',
|
|
32
|
+
hover: '&:not(.--active):hover',
|
|
33
|
+
pressed: '&:not(.--active):active'
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@function state($key, $replace: null) {
|
|
38
|
+
$selector: lib.map-get($state, $key);
|
|
39
|
+
|
|
40
|
+
// To Avoid Overcomplicating The Responsibility Of This Function Limit
|
|
41
|
+
// Replace Parameter To String Values Only
|
|
42
|
+
@if $replace {
|
|
43
|
+
@if meta.type-of($replace) != 'string' or meta.type-of($selector) != 'string' {
|
|
44
|
+
@error "'lib.string-replace' Cannot Be Used On A List!";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$selector: lib.string-replace('&', $replace, $selector);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@return $selector;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@mixin state($states) {
|
|
55
|
+
$selector: ();
|
|
56
|
+
|
|
57
|
+
@each $s in lib.list-to-list($states) {
|
|
58
|
+
$section: state($s);
|
|
59
|
+
|
|
60
|
+
@if $section {
|
|
61
|
+
$selector: lib.list-append($selector, $section);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#{lib.list-implode(',', lib.list-unique($selector))} {
|
|
66
|
+
@content;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@mixin state-utility($property, $values) {
|
|
71
|
+
$keys: $values;
|
|
72
|
+
|
|
73
|
+
@if meta.type-of($keys) == 'map' {
|
|
74
|
+
$keys: lib.map-keys($keys);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@each $key in $keys {
|
|
78
|
+
&-#{$key} {
|
|
79
|
+
--#{$property}-active: var(--color-#{$key}-300);
|
|
80
|
+
--#{$property}-default: var(--color-#{$key}-400);
|
|
81
|
+
--#{$property}-hover: var(--color-#{$key}-300);
|
|
82
|
+
--#{$property}-pressed: var(--color-#{$key}-500);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
$transition-duration: 0.16s;
|
|
1
|
+
$transition-duration: 0.16s;
|
package/tsconfig.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { reactive } from '@esportsplus/reactivity';
|
|
2
|
-
type Accordion = HTMLElement & {
|
|
3
|
-
[key: symbol]: {
|
|
4
|
-
active: boolean | number;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
declare const _default: () => {
|
|
8
|
-
attributes: {
|
|
9
|
-
class: () => any;
|
|
10
|
-
onrender: (element: Accordion) => void;
|
|
11
|
-
style: (element: Accordion) => any;
|
|
12
|
-
};
|
|
13
|
-
state: ReturnType<typeof reactive<{
|
|
14
|
-
active: boolean;
|
|
15
|
-
}>>;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { reactive } from '@esportsplus/reactivity';
|
|
2
|
-
let key = Symbol();
|
|
3
|
-
export default () => {
|
|
4
|
-
let state = reactive({
|
|
5
|
-
active: 0
|
|
6
|
-
});
|
|
7
|
-
return {
|
|
8
|
-
attributes: {
|
|
9
|
-
class: () => {
|
|
10
|
-
return state.active && '--active';
|
|
11
|
-
},
|
|
12
|
-
onrender: (element) => {
|
|
13
|
-
element[key] = state;
|
|
14
|
-
},
|
|
15
|
-
style: (element) => {
|
|
16
|
-
let parent = element.closest('accordion');
|
|
17
|
-
if (parent && key in parent) {
|
|
18
|
-
parent[key].active = (+parent[key].active) + 1;
|
|
19
|
-
}
|
|
20
|
-
return state.active && `--max-height: ${element.scrollHeight}`;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
state: state
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: ({ currency, delay, max, suffix, value }: {
|
|
2
|
-
currency?: "IGNORE" | "EUR" | "GBP" | "USD";
|
|
3
|
-
delay?: number;
|
|
4
|
-
max?: number;
|
|
5
|
-
suffix?: string;
|
|
6
|
-
value: number;
|
|
7
|
-
}) => {
|
|
8
|
-
html: import("@esportsplus/template/build/types").RenderableTemplate;
|
|
9
|
-
state: Prettify<{ [K in keyof T]: import("@esportsplus/reactivity").Infer<T[K]>; } & {
|
|
10
|
-
dispose: VoidFunction;
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { effect, reactive } from '@esportsplus/reactivity';
|
|
2
|
-
import { html } from '@esportsplus/template';
|
|
3
|
-
let formatters = {};
|
|
4
|
-
export default ({ currency, delay, max, suffix, value }) => {
|
|
5
|
-
let api = reactive({ value: -1 }), formatter = currency === 'IGNORE' ? undefined : formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
|
|
6
|
-
style: 'currency',
|
|
7
|
-
currency: currency || 'USD'
|
|
8
|
-
}), rendering = true, state = reactive({
|
|
9
|
-
length: 0,
|
|
10
|
-
render: []
|
|
11
|
-
});
|
|
12
|
-
effect(() => {
|
|
13
|
-
if (api.value !== -1) {
|
|
14
|
-
value = api.value;
|
|
15
|
-
}
|
|
16
|
-
let padding = (max || value).toFixed(2).length - value.toFixed(2).length, values = value.toString().padStart(value.toString().length + padding, '1');
|
|
17
|
-
if (formatter) {
|
|
18
|
-
values = formatter.format(values);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
values = Number(values).toLocaleString();
|
|
22
|
-
}
|
|
23
|
-
values = values.split('');
|
|
24
|
-
if (suffix) {
|
|
25
|
-
values.push(' ', ...suffix.split(''));
|
|
26
|
-
}
|
|
27
|
-
state.length = values.length;
|
|
28
|
-
for (let i = 0, n = values.length; i < n; i++) {
|
|
29
|
-
let value = values[i];
|
|
30
|
-
if (!isNaN(parseInt(value, 10)) && (rendering === true || padding > 0)) {
|
|
31
|
-
padding--;
|
|
32
|
-
value = '0';
|
|
33
|
-
}
|
|
34
|
-
state.render[i] = value;
|
|
35
|
-
}
|
|
36
|
-
if (rendering === true) {
|
|
37
|
-
rendering = false;
|
|
38
|
-
setTimeout(() => api.value = value, delay || 1000);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
return {
|
|
42
|
-
html: html `
|
|
43
|
-
<div class='counter'>
|
|
44
|
-
${() => {
|
|
45
|
-
let n = state.length;
|
|
46
|
-
if (n === 0) {
|
|
47
|
-
return '';
|
|
48
|
-
}
|
|
49
|
-
return html.reactive(state.render, function (value, i) {
|
|
50
|
-
if (isNaN(parseInt(value, 10))) {
|
|
51
|
-
return html `
|
|
52
|
-
<span class='counter-character counter-character--symbol'>
|
|
53
|
-
${value}
|
|
54
|
-
</span>
|
|
55
|
-
`;
|
|
56
|
-
}
|
|
57
|
-
return html `
|
|
58
|
-
<div class='counter-character ${i > n - 3 ? 'counter-character--fraction' : ''}'>
|
|
59
|
-
<div class='counter-character-track' style='${() => `--value: ${this[i]}`}'>
|
|
60
|
-
<span>9</span>
|
|
61
|
-
${[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => html `<span>${value}</span>`)}
|
|
62
|
-
<span>0</span>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
`;
|
|
66
|
-
});
|
|
67
|
-
}}
|
|
68
|
-
</div>
|
|
69
|
-
`,
|
|
70
|
-
state: api
|
|
71
|
-
};
|
|
72
|
-
};
|