@esportsplus/ui 0.1.8 → 0.2.2
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/build/components/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +34 -36
- package/build/components/export/clipboard.js +1 -3
- package/build/components/export/index.js +3 -8
- package/build/components/export/json.js +1 -3
- package/build/components/field/checkbox.d.ts +1 -1
- package/build/components/field/checkbox.js +32 -37
- package/build/components/field/description.d.ts +1 -1
- package/build/components/field/description.js +4 -6
- package/build/components/field/error.d.ts +1 -1
- package/build/components/field/error.js +4 -6
- package/build/components/field/file.d.ts +1 -1
- package/build/components/field/file.js +36 -41
- package/build/components/field/index.d.ts +8 -8
- package/build/components/field/index.js +8 -13
- package/build/components/field/optional.d.ts +2 -2
- package/build/components/field/optional.js +8 -13
- package/build/components/field/select.d.ts +1 -1
- package/build/components/field/select.js +65 -70
- package/build/components/field/switch.d.ts +1 -1
- package/build/components/field/switch.js +3 -8
- package/build/components/field/text.d.ts +1 -1
- package/build/components/field/text.js +37 -42
- package/build/components/field/textarea.d.ts +1 -1
- package/build/components/field/textarea.js +3 -8
- package/build/components/field/title.d.ts +1 -1
- package/build/components/field/title.js +14 -19
- package/build/components/form/action.js +7 -13
- package/build/components/form/index.d.ts +1 -1
- package/build/components/form/index.js +4 -9
- package/build/components/form/input.js +1 -3
- package/build/components/form/layout.d.ts +1 -1
- package/build/components/form/layout.js +11 -13
- package/build/components/form/types.d.ts +1 -1
- package/build/components/form/types.js +1 -2
- package/build/components/number/index.js +2 -6
- package/build/components/page/index.js +2 -7
- package/build/components/root/index.js +3 -9
- package/build/components/root/onclick.js +1 -3
- package/build/components/scrollbar/index.d.ts +3 -3
- package/build/components/scrollbar/index.js +13 -15
- package/build/components/site/index.d.ts +1 -1
- package/build/components/site/index.js +10 -15
- package/build/components/tooltip/index.d.ts +5 -5
- package/build/components/tooltip/index.js +8 -13
- package/build/components/tooltip/menu.d.ts +1 -1
- package/build/components/tooltip/menu.js +34 -36
- package/build/index.js +11 -27
- package/lib.scss +1 -1
- package/package.json +25 -25
- package/src/components/accordion/scss/index.scss +16 -16
- package/src/components/accordion/scss/variables.scss +4 -4
- package/src/components/alert/index.ts +156 -156
- package/src/components/alert/scss/index.scss +54 -54
- package/src/components/alert/scss/variables.scss +8 -8
- package/src/components/anchor/scss/index.scss +41 -41
- package/src/components/anchor/scss/variables.scss +5 -5
- package/src/components/banner/scss/index.scss +40 -40
- package/src/components/banner/scss/variables.scss +5 -5
- package/src/components/border/scss/index.scss +10 -10
- package/src/components/border/scss/variables.scss +6 -6
- package/src/components/bubble/scss/index.scss +30 -30
- package/src/components/bubble/scss/variables.scss +19 -19
- package/src/components/button/scss/index.scss +92 -92
- package/src/components/button/scss/variables.scss +69 -69
- package/src/components/card/scss/index.scss +35 -35
- package/src/components/card/scss/variables.scss +42 -42
- package/src/components/container/scss/index.scss +10 -10
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/ellipsis/scss/index.scss +71 -71
- package/src/components/ellipsis/scss/variables.scss +2 -2
- package/src/components/export/clipboard.ts +11 -11
- package/src/components/export/index.ts +4 -4
- package/src/components/export/json.ts +14 -14
- package/src/components/field/checkbox.ts +60 -60
- package/src/components/field/description.ts +11 -11
- package/src/components/field/error.ts +13 -13
- package/src/components/field/file.ts +64 -64
- package/src/components/field/index.ts +9 -9
- package/src/components/field/optional.ts +26 -26
- package/src/components/field/scss/_check.scss +225 -225
- package/src/components/field/scss/_normalize.scss +36 -36
- package/src/components/field/scss/_text.scss +106 -106
- package/src/components/field/scss/index.scss +158 -158
- package/src/components/field/scss/variables.scss +138 -138
- package/src/components/field/select.ts +150 -150
- package/src/components/field/switch.ts +8 -8
- package/src/components/field/text.ts +68 -68
- package/src/components/field/textarea.ts +7 -7
- package/src/components/field/title.ts +22 -22
- package/src/components/form/action.ts +67 -67
- package/src/components/form/index.ts +5 -5
- package/src/components/form/input.ts +14 -14
- package/src/components/form/layout.ts +25 -25
- package/src/components/form/types.ts +15 -15
- package/src/components/group/scss/index.scss +36 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/icon/scss/index.scss +17 -17
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/link/scss/index.scss +28 -28
- package/src/components/link/scss/variables.scss +47 -47
- package/src/components/loading/scss/index.scss +24 -24
- package/src/components/loading/scss/variables.scss +31 -31
- package/src/components/modal/scss/index.scss +31 -31
- package/src/components/modal/scss/variables.scss +10 -10
- package/src/components/number/index.ts +23 -23
- package/src/components/page/index.ts +14 -14
- package/src/components/page/scss/index.scss +27 -27
- package/src/components/page/scss/variables.scss +27 -27
- package/src/components/processing/scss/index.scss +46 -46
- package/src/components/processing/scss/variables.scss +11 -11
- package/src/components/root/index.ts +4 -4
- package/src/components/root/onclick.ts +20 -20
- package/src/components/root/scss/index.scss +93 -93
- package/src/components/root/scss/variables.scss +55 -55
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +43 -43
- package/src/components/scrollbar/scss/index.scss +59 -59
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/scss/index.scss +50 -50
- package/src/components/sidebar/scss/variables.scss +21 -21
- package/src/components/site/index.ts +26 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/scss/index.scss +12 -12
- package/src/components/text/scss/variables.scss +9 -9
- package/src/components/thumbnail/scss/index.scss +7 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +93 -93
- package/src/components/tooltip/menu.ts +70 -70
- 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 +93 -93
- package/src/components/tooltip/scss/variables.scss +25 -25
- package/src/css-utilities/[margin,padding]/scss/index.scss +41 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
- package/src/css-utilities/absolute/scss/index.scss +59 -59
- package/src/css-utilities/background/scss/variables.scss +27 -27
- package/src/css-utilities/border/scss/index.scss +21 -21
- package/src/css-utilities/border/scss/variables.scss +66 -66
- package/src/css-utilities/color/scss/variables.scss +31 -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 +2 -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.scss +14 -14
- package/src/css-utilities/inline/scss/index.scss +7 -7
- 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/overflow/scss/index.scss +4 -4
- package/src/css-utilities/pointer/scss/index.scss +5 -5
- package/src/css-utilities/size/scss/variables.scss +12 -12
- package/src/css-utilities/slide/scss/index.scss +21 -21
- package/src/css-utilities/slide/scss/variables.scss +10 -10
- package/src/css-utilities/text/scss/index.scss +93 -93
- package/src/css-utilities/text/scss/variables.scss +31 -31
- package/src/css-utilities/transition/scss/variables.scss +14 -14
- package/src/css-utilities/viewport/scss/index.scss +4 -4
- package/src/css-utilities/width/scss/index.scss +3 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/index.ts +11 -11
- 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 +13 -13
- package/src/lib/scss/list.scss +76 -76
- package/src/lib/scss/map.scss +1 -1
- package/src/lib/scss/position.scss +77 -77
- package/src/lib/scss/string.scss +33 -33
- 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 +13 -13
- package/src/tokens/scss/color.scss +64 -64
- package/src/tokens/scss/font-size.scss +12 -12
- 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 +8 -8
- package/src/tokens/scss/state.scss +86 -86
- package/src/tokens/scss/transition-duration.scss +5 -5
- package/storage/fonts/montserrat/index.css +79 -79
- package/tokens.scss +1 -1
- package/tsconfig.json +10 -10
- package/utilities/styles.css +1 -1
- package/utilities/variables.css +1 -1
- package/webpack.config.ts +25 -25
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--line-height {
|
|
5
|
-
@each $key in lib.map-keys(tokens.$line-height) {
|
|
6
|
-
&-#{$key} {
|
|
7
|
-
--line-height: var(--line-height-#{$key});
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
.--line-height {
|
|
5
|
+
@each $key in lib.map-keys(tokens.$line-height) {
|
|
6
|
+
&-#{$key} {
|
|
7
|
+
--line-height: var(--line-height-#{$key});
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.--not-allowed {
|
|
2
|
-
cursor: not-allowed;
|
|
3
|
-
|
|
4
|
-
* {
|
|
5
|
-
pointer-events: none;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
.--not-allowed {
|
|
2
|
+
cursor: not-allowed;
|
|
3
|
+
|
|
4
|
+
* {
|
|
5
|
+
pointer-events: none;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.--overflow {
|
|
2
|
-
&-hidden {
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
}
|
|
1
|
+
.--overflow {
|
|
2
|
+
&-hidden {
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.--pointer {
|
|
2
|
-
&-none {
|
|
3
|
-
pointer-events: none;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
.--pointer {
|
|
2
|
+
&-none {
|
|
3
|
+
pointer-events: none;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--size {
|
|
5
|
-
--size: var(--size-400);
|
|
6
|
-
|
|
7
|
-
@each $key in lib.map-keys(tokens.$size) {
|
|
8
|
-
&-#{$key} {
|
|
9
|
-
--size: var(--size-#{$key});
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
.--size {
|
|
5
|
+
--size: var(--size-400);
|
|
6
|
+
|
|
7
|
+
@each $key in lib.map-keys(tokens.$size) {
|
|
8
|
+
&-#{$key} {
|
|
9
|
+
--size: var(--size-#{$key});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.--slide {
|
|
2
|
-
&-in,
|
|
3
|
-
&-in-reverse {
|
|
4
|
-
animation-duration: var(--transition-duration);
|
|
5
|
-
animation-name: --slide-in;
|
|
6
|
-
animation-timing-function: ease-in-out;
|
|
7
|
-
transform-origin: top center;
|
|
8
|
-
|
|
9
|
-
@keyframes --slide-in {
|
|
10
|
-
from {
|
|
11
|
-
opacity: 0;
|
|
12
|
-
transform: translateY(var(--translateY));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
to {
|
|
16
|
-
opacity: 1;
|
|
17
|
-
transform: translateY(0);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
.--slide {
|
|
2
|
+
&-in,
|
|
3
|
+
&-in-reverse {
|
|
4
|
+
animation-duration: var(--transition-duration);
|
|
5
|
+
animation-name: --slide-in;
|
|
6
|
+
animation-timing-function: ease-in-out;
|
|
7
|
+
transform-origin: top center;
|
|
8
|
+
|
|
9
|
+
@keyframes --slide-in {
|
|
10
|
+
from {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
transform: translateY(var(--translateY));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
to {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
transform: translateY(0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.--slide {
|
|
2
|
-
&-in {
|
|
3
|
-
--transition-duration: 0.48s;
|
|
4
|
-
--translateY: 32px;
|
|
5
|
-
|
|
6
|
-
&-reverse {
|
|
7
|
-
--translateY: -32px;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
.--slide {
|
|
2
|
+
&-in {
|
|
3
|
+
--transition-duration: 0.48s;
|
|
4
|
+
--translateY: 32px;
|
|
5
|
+
|
|
6
|
+
&-reverse {
|
|
7
|
+
--translateY: -32px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--text {
|
|
5
|
-
&-bold {
|
|
6
|
-
font-weight: var(--font-weight-500);
|
|
7
|
-
|
|
8
|
-
@each $key in lib.map-keys(tokens.$font-weight) {
|
|
9
|
-
@if $key > 500 {
|
|
10
|
-
&-#{$key} {
|
|
11
|
-
font-weight: var(--font-weight-#{$key});
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-center {
|
|
18
|
-
text-align: center;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-crop {
|
|
22
|
-
&::after,
|
|
23
|
-
&::before,
|
|
24
|
-
&-bottom::after,
|
|
25
|
-
&-top::before {
|
|
26
|
-
content: '';
|
|
27
|
-
display: block;
|
|
28
|
-
height: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&::after,
|
|
33
|
-
&-bottom::after {
|
|
34
|
-
margin-bottom: calc((1 - var(--line-height)) * 0.618em);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&::before,
|
|
38
|
-
&-top::before {
|
|
39
|
-
margin-top: calc((1 - var(--line-height)) * 0.618em);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-italic {
|
|
44
|
-
font-style: italic;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-linethrough {
|
|
48
|
-
text-decoration: line-through;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-multiplier {
|
|
52
|
-
font-size: calc(var(--font-size) * var(--text-multiplier));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-outline {
|
|
56
|
-
color: var(--color);
|
|
57
|
-
word-break: break-word;
|
|
58
|
-
word-wrap: break-word;
|
|
59
|
-
|
|
60
|
-
@supports (-webkit-text-stroke-width: 1px) {
|
|
61
|
-
color: transparent;
|
|
62
|
-
-webkit-text-fill-color: transparent;
|
|
63
|
-
-webkit-text-stroke-color: var(--color);
|
|
64
|
-
-webkit-text-stroke-width: var(--stroke-width);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&-strike-through {
|
|
69
|
-
text-decoration: line-through;
|
|
70
|
-
text-decoration-thickness: var(--line-width);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&-truncate {
|
|
74
|
-
line-height: var(--size);
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
text-overflow: ellipsis;
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-underline {
|
|
82
|
-
text-decoration: underline;
|
|
83
|
-
|
|
84
|
-
&-dotted {
|
|
85
|
-
text-decoration: underline;
|
|
86
|
-
text-decoration-style: dotted;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&-uppercase {
|
|
91
|
-
text-transform: uppercase;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
.--text {
|
|
5
|
+
&-bold {
|
|
6
|
+
font-weight: var(--font-weight-500);
|
|
7
|
+
|
|
8
|
+
@each $key in lib.map-keys(tokens.$font-weight) {
|
|
9
|
+
@if $key > 500 {
|
|
10
|
+
&-#{$key} {
|
|
11
|
+
font-weight: var(--font-weight-#{$key});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-center {
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-crop {
|
|
22
|
+
&::after,
|
|
23
|
+
&::before,
|
|
24
|
+
&-bottom::after,
|
|
25
|
+
&-top::before {
|
|
26
|
+
content: '';
|
|
27
|
+
display: block;
|
|
28
|
+
height: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&::after,
|
|
33
|
+
&-bottom::after {
|
|
34
|
+
margin-bottom: calc((1 - var(--line-height)) * 0.618em);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::before,
|
|
38
|
+
&-top::before {
|
|
39
|
+
margin-top: calc((1 - var(--line-height)) * 0.618em);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-italic {
|
|
44
|
+
font-style: italic;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-linethrough {
|
|
48
|
+
text-decoration: line-through;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-multiplier {
|
|
52
|
+
font-size: calc(var(--font-size) * var(--text-multiplier));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-outline {
|
|
56
|
+
color: var(--color);
|
|
57
|
+
word-break: break-word;
|
|
58
|
+
word-wrap: break-word;
|
|
59
|
+
|
|
60
|
+
@supports (-webkit-text-stroke-width: 1px) {
|
|
61
|
+
color: transparent;
|
|
62
|
+
-webkit-text-fill-color: transparent;
|
|
63
|
+
-webkit-text-stroke-color: var(--color);
|
|
64
|
+
-webkit-text-stroke-width: var(--stroke-width);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-strike-through {
|
|
69
|
+
text-decoration: line-through;
|
|
70
|
+
text-decoration-thickness: var(--line-width);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-truncate {
|
|
74
|
+
line-height: var(--size);
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
text-overflow: ellipsis;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-underline {
|
|
82
|
+
text-decoration: underline;
|
|
83
|
+
|
|
84
|
+
&-dotted {
|
|
85
|
+
text-decoration: underline;
|
|
86
|
+
text-decoration-style: dotted;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-uppercase {
|
|
91
|
+
text-transform: uppercase;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--text {
|
|
5
|
-
@each $key in lib.map-keys(tokens.$font-size) {
|
|
6
|
-
&-#{$key} {
|
|
7
|
-
--font-size: var(--font-size-#{$key});
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&-outline {
|
|
12
|
-
--color: inherit;
|
|
13
|
-
--stroke-width: var(--border-width-400);
|
|
14
|
-
|
|
15
|
-
@each $key in lib.map-keys(tokens.$border-width) {
|
|
16
|
-
&-#{$key} {
|
|
17
|
-
--stroke-width: var(--border-width-#{$key});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-strike-through {
|
|
23
|
-
--line-width: var(--border-width-400);
|
|
24
|
-
|
|
25
|
-
@each $key in lib.map-keys(tokens.$border-width) {
|
|
26
|
-
&-#{$key} {
|
|
27
|
-
--line-width: var(--border-width-#{$key});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
.--text {
|
|
5
|
+
@each $key in lib.map-keys(tokens.$font-size) {
|
|
6
|
+
&-#{$key} {
|
|
7
|
+
--font-size: var(--font-size-#{$key});
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-outline {
|
|
12
|
+
--color: inherit;
|
|
13
|
+
--stroke-width: var(--border-width-400);
|
|
14
|
+
|
|
15
|
+
@each $key in lib.map-keys(tokens.$border-width) {
|
|
16
|
+
&-#{$key} {
|
|
17
|
+
--stroke-width: var(--border-width-#{$key});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-strike-through {
|
|
23
|
+
--line-width: var(--border-width-400);
|
|
24
|
+
|
|
25
|
+
@each $key in lib.map-keys(tokens.$border-width) {
|
|
26
|
+
&-#{$key} {
|
|
27
|
+
--line-width: var(--border-width-#{$key});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--transition {
|
|
5
|
-
&-duration {
|
|
6
|
-
--transition-duration: var(--transition-duration-400);
|
|
7
|
-
|
|
8
|
-
@each $key in lib.map-keys(tokens.$transition-duration) {
|
|
9
|
-
&-#{$key} {
|
|
10
|
-
--transition-duration: var(--transition-duration-#{$key});
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
.--transition {
|
|
5
|
+
&-duration {
|
|
6
|
+
--transition-duration: var(--transition-duration-400);
|
|
7
|
+
|
|
8
|
+
@each $key in lib.map-keys(tokens.$transition-duration) {
|
|
9
|
+
&-#{$key} {
|
|
10
|
+
--transition-duration: var(--transition-duration-#{$key});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.--viewport {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
height: calc(100svh - var(--margin-vertical, 0px) * 2);
|
|
4
|
-
width: calc(100vw - var(--margin-horizontal, 0px) * 2);
|
|
1
|
+
.--viewport {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
height: calc(100svh - var(--margin-vertical, 0px) * 2);
|
|
4
|
+
width: calc(100vw - var(--margin-horizontal, 0px) * 2);
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.--width {
|
|
2
|
-
width: var(--width);
|
|
3
|
-
}
|
|
1
|
+
.--width {
|
|
2
|
+
width: var(--width);
|
|
3
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.--width {
|
|
2
|
-
&-full {
|
|
3
|
-
--width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
&-half {
|
|
7
|
-
--width: 50%;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
.--width {
|
|
2
|
+
&-full {
|
|
3
|
+
--width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&-half {
|
|
7
|
+
--width: 50%;
|
|
8
|
+
}
|
|
9
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '@esportsplus/webpack/global.d.ts';
|
|
2
|
-
|
|
3
|
-
export { default as alert }from './components/alert';
|
|
4
|
-
export { default as export }from './components/export';
|
|
5
|
-
export { default as field }from './components/field';
|
|
6
|
-
export { default as form }from './components/form';
|
|
7
|
-
export { default as number }from './components/number';
|
|
8
|
-
export { default as page }from './components/page';
|
|
9
|
-
export { default as root }from './components/root';
|
|
10
|
-
export { default as scrollbar }from './components/scrollbar';
|
|
11
|
-
export { default as site }from './components/site';
|
|
1
|
+
import '@esportsplus/webpack/global.d.ts';
|
|
2
|
+
|
|
3
|
+
export { default as alert }from './components/alert';
|
|
4
|
+
export { default as export }from './components/export';
|
|
5
|
+
export { default as field }from './components/field';
|
|
6
|
+
export { default as form }from './components/form';
|
|
7
|
+
export { default as number }from './components/number';
|
|
8
|
+
export { default as page }from './components/page';
|
|
9
|
+
export { default as root }from './components/root';
|
|
10
|
+
export { default as scrollbar }from './components/scrollbar';
|
|
11
|
+
export { default as site }from './components/site';
|
|
12
12
|
export { default as tooltip }from './components/tooltip';
|
package/src/lib/index.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@forward 'scss/breakpoint';
|
|
2
|
-
@forward 'scss/color' as color-*;
|
|
3
|
-
@forward 'scss/css-variables';
|
|
4
|
-
@forward 'scss/list' as list-*;
|
|
5
|
-
@forward 'scss/map' as map-*;
|
|
6
|
-
@forward 'scss/position';
|
|
7
|
-
@forward 'scss/string' as string-*;
|
|
1
|
+
@forward 'scss/breakpoint';
|
|
2
|
+
@forward 'scss/color' as color-*;
|
|
3
|
+
@forward 'scss/css-variables';
|
|
4
|
+
@forward 'scss/list' as list-*;
|
|
5
|
+
@forward 'scss/map' as map-*;
|
|
6
|
+
@forward 'scss/position';
|
|
7
|
+
@forward 'scss/string' as string-*;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
@mixin breakpoint($function, $param: null) {
|
|
2
|
-
@if $function == min-width or $function == min-height {
|
|
3
|
-
@media only screen and ($function: $param + 1px) {
|
|
4
|
-
@content;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
@else if $function == max-width or $function == max-height {
|
|
8
|
-
@media only screen and ($function: $param) {
|
|
9
|
-
@content;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
@else if $function == between-width {
|
|
13
|
-
@media only screen and (min-width: nth($param, 1) + 1px) and (max-width: nth($param, 2)) {
|
|
14
|
-
@content;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
@else if $function == orientation {
|
|
18
|
-
@if $param == landscape {
|
|
19
|
-
@media only screen and (min-aspect-ratio: 13/9) {
|
|
20
|
-
@content;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
@else if $param == portrait {
|
|
24
|
-
@media only screen and (max-aspect-ratio: 13/9) {
|
|
25
|
-
@content;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
@else if $function == retina {
|
|
30
|
-
@media
|
|
31
|
-
only screen and (-webkit-min-device-pixel-ratio: 1.25),
|
|
32
|
-
only screen and ( min--moz-device-pixel-ratio: 1.25),
|
|
33
|
-
only screen and ( -o-min-device-pixel-ratio: 1.25/1),
|
|
34
|
-
only screen and ( min-device-pixel-ratio: 1.25),
|
|
35
|
-
only screen and ( min-resolution: 200dpi),
|
|
36
|
-
only screen and ( min-resolution: 1.25dppx)
|
|
37
|
-
{
|
|
38
|
-
@content;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
@mixin breakpoint($function, $param: null) {
|
|
2
|
+
@if $function == min-width or $function == min-height {
|
|
3
|
+
@media only screen and ($function: $param + 1px) {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
@else if $function == max-width or $function == max-height {
|
|
8
|
+
@media only screen and ($function: $param) {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
@else if $function == between-width {
|
|
13
|
+
@media only screen and (min-width: nth($param, 1) + 1px) and (max-width: nth($param, 2)) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@else if $function == orientation {
|
|
18
|
+
@if $param == landscape {
|
|
19
|
+
@media only screen and (min-aspect-ratio: 13/9) {
|
|
20
|
+
@content;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
@else if $param == portrait {
|
|
24
|
+
@media only screen and (max-aspect-ratio: 13/9) {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@else if $function == retina {
|
|
30
|
+
@media
|
|
31
|
+
only screen and (-webkit-min-device-pixel-ratio: 1.25),
|
|
32
|
+
only screen and ( min--moz-device-pixel-ratio: 1.25),
|
|
33
|
+
only screen and ( -o-min-device-pixel-ratio: 1.25/1),
|
|
34
|
+
only screen and ( min-device-pixel-ratio: 1.25),
|
|
35
|
+
only screen and ( min-resolution: 200dpi),
|
|
36
|
+
only screen and ( min-resolution: 1.25dppx)
|
|
37
|
+
{
|
|
38
|
+
@content;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/lib/scss/color.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward 'sass:color';
|
|
1
|
+
@forward 'sass:color';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@mixin css-variables($prefix, $tokens) {
|
|
2
|
-
@each $key, $value in $tokens {
|
|
3
|
-
@if type-of($value) == 'map' {
|
|
4
|
-
@each $subkey, $subvalue in $value {
|
|
5
|
-
--#{$prefix}-#{$key}-#{$subkey}: #{$subvalue};
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
@else {
|
|
9
|
-
--#{$prefix}-#{$key}: #{$value};
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
@mixin css-variables($prefix, $tokens) {
|
|
2
|
+
@each $key, $value in $tokens {
|
|
3
|
+
@if type-of($value) == 'map' {
|
|
4
|
+
@each $subkey, $subvalue in $value {
|
|
5
|
+
--#{$prefix}-#{$key}-#{$subkey}: #{$subvalue};
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
@else {
|
|
9
|
+
--#{$prefix}-#{$key}: #{$value};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|