@esportsplus/ui 0.0.114 → 0.0.117
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/package.json +8 -4
- package/src/components/export/clipboard.ts +12 -0
- package/src/components/export/index.ts +5 -0
- package/src/components/export/json.ts +15 -0
- package/src/components/index.ts +1 -0
- package/.editorconfig +0 -9
- package/.gitattributes +0 -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/alert/index.d.ts +0 -10
- package/build/components/alert/index.js +0 -124
- package/build/components/field/checkbox.d.ts +0 -17
- package/build/components/field/checkbox.js +0 -46
- package/build/components/field/description.d.ts +0 -4
- package/build/components/field/description.js +0 -11
- package/build/components/field/error.d.ts +0 -4
- package/build/components/field/error.js +0 -13
- package/build/components/field/file.d.ts +0 -18
- package/build/components/field/file.js +0 -50
- package/build/components/field/index.d.ts +0 -222
- package/build/components/field/index.js +0 -13
- package/build/components/field/optional.d.ts +0 -92
- package/build/components/field/optional.js +0 -21
- package/build/components/field/select.d.ts +0 -32
- package/build/components/field/select.js +0 -108
- package/build/components/field/switch.d.ts +0 -3
- package/build/components/field/switch.js +0 -11
- package/build/components/field/text.d.ts +0 -21
- package/build/components/field/text.js +0 -51
- package/build/components/field/textarea.d.ts +0 -3
- package/build/components/field/textarea.js +0 -10
- package/build/components/field/title.d.ts +0 -5
- package/build/components/field/title.js +0 -21
- package/build/components/form/action.d.ts +0 -5
- package/build/components/form/action.js +0 -51
- package/build/components/form/index.d.ts +0 -23
- package/build/components/form/index.js +0 -9
- package/build/components/form/input.d.ts +0 -9
- package/build/components/form/input.js +0 -12
- package/build/components/form/layout.d.ts +0 -12
- package/build/components/form/layout.js +0 -14
- package/build/components/form/types.d.ts +0 -12
- package/build/components/form/types.js +0 -2
- package/build/components/index.d.ts +0 -9
- package/build/components/index.js +0 -24
- package/build/components/number/index.d.ts +0 -8
- package/build/components/number/index.js +0 -20
- package/build/components/overlay/index.d.ts +0 -6
- package/build/components/overlay/index.js +0 -8
- package/build/components/page/header.d.ts +0 -6
- package/build/components/page/header.js +0 -22
- package/build/components/page/index.d.ts +0 -22
- package/build/components/page/index.js +0 -16
- package/build/components/page/layout.d.ts +0 -5
- package/build/components/page/layout.js +0 -8
- package/build/components/root/index.d.ts +0 -9
- package/build/components/root/index.js +0 -9
- package/build/components/root/onclick.d.ts +0 -5
- package/build/components/root/onclick.js +0 -16
- package/build/components/scrollbar/index.d.ts +0 -11
- package/build/components/scrollbar/index.js +0 -38
- package/build/components/site/index.d.ts +0 -9
- package/build/components/site/index.js +0 -17
- package/build/components/tooltip/index.d.ts +0 -58
- package/build/components/tooltip/index.js +0 -75
- package/build/components/tooltip/menu.d.ts +0 -25
- package/build/components/tooltip/menu.js +0 -46
- package/build/index.d.ts +0 -2
- package/css/components/styles.css +0 -1
- package/css/components/variables.css +0 -1
- package/css/fonts/montserrat.css +0 -1
- package/css/normalizer.css +0 -1
- package/css/utilities/styles.css +0 -1
- package/css/utilities/variables.css +0 -1
- package/lib.scss +0 -3
- package/src/components/accordion/scss/index.scss +0 -16
- package/src/components/accordion/scss/variables.scss +0 -4
- package/src/components/alert/scss/index.scss +0 -55
- package/src/components/alert/scss/variables.scss +0 -8
- package/src/components/anchor/scss/index.scss +0 -41
- package/src/components/anchor/scss/variables.scss +0 -5
- package/src/components/banner/scss/index.scss +0 -40
- package/src/components/banner/scss/variables.scss +0 -6
- package/src/components/border/scss/index.scss +0 -10
- package/src/components/border/scss/variables.scss +0 -6
- package/src/components/bubble/scss/index.scss +0 -30
- package/src/components/bubble/scss/variables.scss +0 -19
- package/src/components/button/scss/index.scss +0 -92
- package/src/components/button/scss/variables.scss +0 -69
- package/src/components/card/scss/index.scss +0 -35
- package/src/components/card/scss/variables.scss +0 -42
- package/src/components/container/scss/index.scss +0 -10
- package/src/components/container/scss/variables.scss +0 -5
- package/src/components/ellipsis/scss/index.scss +0 -72
- package/src/components/ellipsis/scss/variables.scss +0 -3
- package/src/components/field/scss/_check.scss +0 -225
- package/src/components/field/scss/_normalize.scss +0 -36
- package/src/components/field/scss/_text.scss +0 -106
- package/src/components/field/scss/index.scss +0 -159
- package/src/components/field/scss/variables.scss +0 -138
- package/src/components/group/scss/index.scss +0 -36
- package/src/components/group/scss/variables.scss +0 -17
- package/src/components/icon/scss/index.scss +0 -17
- package/src/components/icon/scss/variables.scss +0 -7
- package/src/components/link/scss/index.scss +0 -28
- package/src/components/link/scss/variables.scss +0 -47
- package/src/components/loading/scss/index.scss +0 -24
- package/src/components/loading/scss/variables.scss +0 -31
- package/src/components/modal/scss/index.scss +0 -32
- package/src/components/modal/scss/variables.scss +0 -10
- package/src/components/page/scss/index.scss +0 -27
- package/src/components/page/scss/variables.scss +0 -27
- package/src/components/processing/scss/index.scss +0 -47
- package/src/components/processing/scss/variables.scss +0 -11
- package/src/components/root/scss/index.scss +0 -93
- package/src/components/root/scss/variables.scss +0 -55
- package/src/components/row/scss/index.scss +0 -7
- package/src/components/scrollbar/scss/index.scss +0 -59
- package/src/components/scrollbar/scss/variables.scss +0 -6
- package/src/components/sidebar/scss/index.scss +0 -50
- package/src/components/sidebar/scss/variables.scss +0 -21
- package/src/components/site/scss/index.scss +0 -3
- package/src/components/text/scss/index.scss +0 -12
- package/src/components/text/scss/variables.scss +0 -9
- package/src/components/thumbnail/scss/index.scss +0 -7
- package/src/components/thumbnail/scss/variables.scss +0 -7
- package/src/components/tooltip/scss/_center.scss +0 -13
- package/src/components/tooltip/scss/_east.scss +0 -34
- package/src/components/tooltip/scss/_north.scss +0 -34
- package/src/components/tooltip/scss/_south.scss +0 -35
- package/src/components/tooltip/scss/_west.scss +0 -34
- package/src/components/tooltip/scss/index.scss +0 -93
- package/src/components/tooltip/scss/variables.scss +0 -25
- package/src/css-utilities/[margin,padding]/scss/index.scss +0 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +0 -54
- package/src/css-utilities/absolute/scss/index.scss +0 -59
- package/src/css-utilities/background/scss/variables.scss +0 -27
- package/src/css-utilities/border/scss/index.scss +0 -21
- package/src/css-utilities/border/scss/variables.scss +0 -66
- package/src/css-utilities/color/scss/variables.scss +0 -31
- package/src/css-utilities/disabled/scss/index.scss +0 -4
- package/src/css-utilities/flex/scss/index.scss +0 -65
- package/src/css-utilities/glass/scss/index.scss +0 -3
- package/src/css-utilities/glass/scss/variables.scss +0 -3
- package/src/css-utilities/hidden/scss/index.scss +0 -28
- package/src/css-utilities/index.scss +0 -14
- package/src/css-utilities/inline/scss/index.scss +0 -7
- package/src/css-utilities/line-height/scss/variables.scss +0 -10
- package/src/css-utilities/not-allowed/scss/index.scss +0 -7
- package/src/css-utilities/overflow/scss/index.scss +0 -5
- package/src/css-utilities/pointer/scss/index.scss +0 -5
- package/src/css-utilities/size/scss/variables.scss +0 -12
- package/src/css-utilities/slide/scss/index.scss +0 -20
- package/src/css-utilities/slide/scss/variables.scss +0 -6
- package/src/css-utilities/text/scss/index.scss +0 -93
- package/src/css-utilities/text/scss/variables.scss +0 -31
- package/src/css-utilities/transition/scss/variables.scss +0 -14
- package/src/css-utilities/viewport/scss/index.scss +0 -5
- package/src/css-utilities/width/scss/index.scss +0 -3
- package/src/css-utilities/width/scss/variables.scss +0 -9
- package/src/index.ts +0 -2
- package/src/lib/index.scss +0 -7
- package/src/lib/scss/breakpoint.scss +0 -41
- package/src/lib/scss/color.scss +0 -1
- package/src/lib/scss/css-variables.scss +0 -13
- package/src/lib/scss/list.scss +0 -76
- package/src/lib/scss/map.scss +0 -1
- package/src/lib/scss/position.scss +0 -77
- package/src/lib/scss/string.scss +0 -33
- package/src/tokens/index.scss +0 -11
- package/src/tokens/scss/border-radius.scss +0 -12
- package/src/tokens/scss/border-width.scss +0 -6
- package/src/tokens/scss/box-shadow.scss +0 -13
- package/src/tokens/scss/color.scss +0 -64
- package/src/tokens/scss/font-size.scss +0 -12
- package/src/tokens/scss/font-weight.scss +0 -6
- package/src/tokens/scss/line-height.scss +0 -6
- package/src/tokens/scss/size.scss +0 -13
- package/src/tokens/scss/spacer.scss +0 -8
- package/src/tokens/scss/state.scss +0 -86
- package/src/tokens/scss/transition-duration.scss +0 -5
- 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/storage/psd/Color Palette.psd +0 -0
- package/tokens.scss +0 -3
- package/tsconfig.json +0 -11
- package/webpack.config.ts +0 -33
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@mixin center($active) {
|
|
2
|
-
&--c {
|
|
3
|
-
bottom: 50%;
|
|
4
|
-
position: absolute;
|
|
5
|
-
right: 50%;
|
|
6
|
-
transform: translate(50%, 50%) scale(var(--scaleX), var(--scaleY));
|
|
7
|
-
transform-origin: center center;
|
|
8
|
-
|
|
9
|
-
#{$active} {
|
|
10
|
-
transform: translate(50%, 50%) scale(1);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@mixin east($active) {
|
|
2
|
-
&--en,
|
|
3
|
-
&--es {
|
|
4
|
-
left: calc(100% - var(--spacer));
|
|
5
|
-
position: absolute;
|
|
6
|
-
transform: scale(var(--scaleX), var(--scaleY));
|
|
7
|
-
|
|
8
|
-
#{$active} {
|
|
9
|
-
transform: translateX(calc(var(--spacer) * 2));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&--e {
|
|
14
|
-
bottom: 50%;
|
|
15
|
-
left: calc(100% - var(--spacer));
|
|
16
|
-
position: absolute;
|
|
17
|
-
transform: translateY(50%) scaleX(var(--scaleX));
|
|
18
|
-
transform-origin: center left;
|
|
19
|
-
|
|
20
|
-
#{$active} {
|
|
21
|
-
transform: translate(calc(var(--spacer) * 2), 50%) scale(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--en {
|
|
26
|
-
top: 0;
|
|
27
|
-
transform-origin: top left;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--es {
|
|
31
|
-
bottom: 0;
|
|
32
|
-
transform-origin: bottom left;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@mixin north($active) {
|
|
2
|
-
&--ne,
|
|
3
|
-
&--nw {
|
|
4
|
-
bottom: calc(100% - var(--spacer));
|
|
5
|
-
position: absolute;
|
|
6
|
-
transform: scale(var(--scaleX), var(--scaleY));
|
|
7
|
-
|
|
8
|
-
#{$active} {
|
|
9
|
-
transform: translateY(calc(var(--spacer) * -2));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&--n {
|
|
14
|
-
bottom: calc(100% - var(--spacer));
|
|
15
|
-
position: absolute;
|
|
16
|
-
right: 50%;
|
|
17
|
-
transform: translateX(50%) scaleY(var(--scaleY));
|
|
18
|
-
transform-origin: center bottom;
|
|
19
|
-
|
|
20
|
-
#{$active} {
|
|
21
|
-
transform: translate(50%, calc(var(--spacer) * -2)) scale(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--ne {
|
|
26
|
-
right: 0;
|
|
27
|
-
transform-origin: bottom right;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--nw {
|
|
31
|
-
left: 0;
|
|
32
|
-
transform-origin: bottom left;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@mixin south($active) {
|
|
2
|
-
&--se,
|
|
3
|
-
&--sw {
|
|
4
|
-
position: absolute;
|
|
5
|
-
top: calc(100% - var(--spacer));
|
|
6
|
-
transform: scale(var(--scaleX), var(--scaleY));
|
|
7
|
-
|
|
8
|
-
#{$active} {
|
|
9
|
-
transform: translateY(calc(var(--spacer) * 2));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&--s {
|
|
14
|
-
position: absolute;
|
|
15
|
-
right: 50%;
|
|
16
|
-
top: calc(100% - var(--spacer));
|
|
17
|
-
transform: translateX(50%) scaleY(var(--scaleY));
|
|
18
|
-
transform-origin: center top;
|
|
19
|
-
|
|
20
|
-
#{$active} {
|
|
21
|
-
transform: translate(50%, calc(var(--spacer) * 2)) scale(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--se {
|
|
26
|
-
right: 0;
|
|
27
|
-
transform-origin: top right;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--sw {
|
|
31
|
-
left: 0;
|
|
32
|
-
transform-origin: top left;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@mixin west($active) {
|
|
2
|
-
&--wn,
|
|
3
|
-
&--ws {
|
|
4
|
-
position: absolute;
|
|
5
|
-
right: calc(100% - var(--spacer));
|
|
6
|
-
transform: scale(var(--scale));
|
|
7
|
-
|
|
8
|
-
#{$active} {
|
|
9
|
-
transform: translateX(calc(var(--spacer) * -2));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&--w {
|
|
14
|
-
bottom: 50%;
|
|
15
|
-
position: absolute;
|
|
16
|
-
right: calc(100% - var(--spacer));
|
|
17
|
-
transform: translateY(50%) scaleX(var(--scaleX));
|
|
18
|
-
transform-origin: center right;
|
|
19
|
-
|
|
20
|
-
#{$active} {
|
|
21
|
-
transform: translate(calc(var(--spacer) * -2), 50%) scale(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--wn {
|
|
26
|
-
top: 0;
|
|
27
|
-
transform-origin: top right;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--ws {
|
|
31
|
-
bottom: 0;
|
|
32
|
-
transform-origin: bottom right;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
@use 'center' as *;
|
|
4
|
-
@use 'east' as *;
|
|
5
|
-
@use 'north' as *;
|
|
6
|
-
@use 'south' as *;
|
|
7
|
-
@use 'west' as *;
|
|
8
|
-
|
|
9
|
-
.tooltip {
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
position: relative;
|
|
12
|
-
z-index: 8;
|
|
13
|
-
|
|
14
|
-
@include tokens.state(active) {
|
|
15
|
-
z-index: 9;
|
|
16
|
-
|
|
17
|
-
// Add invisible box to increase activation/hover area
|
|
18
|
-
&.tooltip--box {
|
|
19
|
-
$size: calc(100% + var(--spacer) * 2.5);
|
|
20
|
-
|
|
21
|
-
&::before {
|
|
22
|
-
@include lib.position(absolute, center);
|
|
23
|
-
content: '';
|
|
24
|
-
height: $size;
|
|
25
|
-
width: $size;
|
|
26
|
-
z-index: -1;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Rotate arrow only if parent tooltip is active
|
|
31
|
-
:not(.tooltip) .tooltip-arrow,
|
|
32
|
-
> .tooltip-arrow {
|
|
33
|
-
transform: rotate(-90deg);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
&-arrow {
|
|
39
|
-
margin: 0 -1px;
|
|
40
|
-
transform: rotate(90deg);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
&-content,
|
|
45
|
-
&-message {
|
|
46
|
-
background: var(--background);
|
|
47
|
-
border-radius: var(--border-radius);
|
|
48
|
-
box-shadow: var(--box-shadow);
|
|
49
|
-
max-width: var(--max-width);
|
|
50
|
-
min-width: var(--min-width);
|
|
51
|
-
opacity: 0;
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
transition:
|
|
54
|
-
opacity var(--transition-duration) ease-in-out,
|
|
55
|
-
transform var(--transition-duration) ease-in-out;
|
|
56
|
-
width: var(--width);
|
|
57
|
-
z-index: 9;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// Shared With Positioning CSS
|
|
61
|
-
$active: '#{tokens.state(active, ".tooltip")} > &, #{tokens.state(active, ".tooltip")} :not(.tooltip) > &';
|
|
62
|
-
$not-active: '#{tokens.state(inactive, ".tooltip")} > &, #{tokens.state(inactive, ".tooltip")} :not(.tooltip) > &';
|
|
63
|
-
|
|
64
|
-
#{$active} {
|
|
65
|
-
opacity: 1;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
#{$not-active} {
|
|
69
|
-
&, * {
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
@include center($active);
|
|
76
|
-
@include east($active);
|
|
77
|
-
@include north($active);
|
|
78
|
-
@include south($active);
|
|
79
|
-
@include west($active);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&-message {
|
|
83
|
-
background: var(--background);
|
|
84
|
-
color: var(--color);
|
|
85
|
-
cursor: auto;
|
|
86
|
-
font-size: var(--font-size);
|
|
87
|
-
font-weight: var(--font-weight);
|
|
88
|
-
line-height: normal;
|
|
89
|
-
padding: var(--padding-vertical) var(--padding-horizontal);
|
|
90
|
-
pointer-events: none;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.tooltip {
|
|
2
|
-
&-content,
|
|
3
|
-
&-message {
|
|
4
|
-
--background: var(--background-default);
|
|
5
|
-
--background-default: transparent;
|
|
6
|
-
--border-radius: var(--border-radius-300);
|
|
7
|
-
--box-shadow: var(--box-shadow-400);
|
|
8
|
-
--max-width: calc(90vw - (var(--size-700) * 2));
|
|
9
|
-
--min-width: auto;
|
|
10
|
-
--scaleX: 0.64;
|
|
11
|
-
--scaleY: 0.64;
|
|
12
|
-
--spacer: var(--size-300);
|
|
13
|
-
--transition-duration: var(--transition-duration-300);
|
|
14
|
-
--width: auto;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-message {
|
|
18
|
-
--background-default: var(--color-black-400);
|
|
19
|
-
--color: var(--color-white-400);
|
|
20
|
-
--font-size: var(--font-size-300);
|
|
21
|
-
--font-weight: var(--font-weight-400);
|
|
22
|
-
--padding-horizontal: var(--size-300);
|
|
23
|
-
--padding-vertical: var(--size-300);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@each $property in margin padding {
|
|
2
|
-
.--#{$property} {
|
|
3
|
-
&,
|
|
4
|
-
&-horizontal {
|
|
5
|
-
#{$property}-left: var(--#{$property}-horizontal);
|
|
6
|
-
#{$property}-right: var(--#{$property}-horizontal);
|
|
7
|
-
|
|
8
|
-
@if ($property == padding) {
|
|
9
|
-
&.--border {
|
|
10
|
-
padding-left: calc(var(--padding-horizontal) - var(--border-width));
|
|
11
|
-
padding-right: calc(var(--padding-horizontal) - var(--border-width));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&,
|
|
17
|
-
&-vertical {
|
|
18
|
-
#{$property}-bottom: var(--#{$property}-vertical);
|
|
19
|
-
#{$property}-top: var(--#{$property}-vertical);
|
|
20
|
-
|
|
21
|
-
@if ($property == padding) {
|
|
22
|
-
&.--border {
|
|
23
|
-
padding-bottom: calc(var(--padding-vertical) - var(--border-width));
|
|
24
|
-
padding-top: calc(var(--padding-vertical) - var(--border-width));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@each $direction in 'bottom' 'top' {
|
|
30
|
-
&-#{$direction} {
|
|
31
|
-
#{$property}-#{$direction}: var(--#{$property}-vertical);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@each $direction in 'left' 'right' {
|
|
36
|
-
&-#{$direction} {
|
|
37
|
-
#{$property}-#{$direction}: var(--#{$property}-horizontal);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -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,59 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
|
|
3
|
-
.--absolute {
|
|
4
|
-
&-bottom,
|
|
5
|
-
&-top {
|
|
6
|
-
left: 0;
|
|
7
|
-
position: absolute;
|
|
8
|
-
right: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&-left,
|
|
12
|
-
&-right {
|
|
13
|
-
bottom: 0;
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-center {
|
|
19
|
-
@include lib.position(absolute, center);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-full {
|
|
23
|
-
@include lib.position(absolute, full);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-horizontal {
|
|
27
|
-
&,
|
|
28
|
-
&-bottom,
|
|
29
|
-
&-top {
|
|
30
|
-
@include lib.position(absolute, horizontal);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-vertical {
|
|
35
|
-
&,
|
|
36
|
-
&-left,
|
|
37
|
-
&-right {
|
|
38
|
-
@include lib.position(absolute, vertical);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@each $direction in 'bottom' 'top' {
|
|
43
|
-
&,
|
|
44
|
-
&-horizontal {
|
|
45
|
-
&-#{$direction} {
|
|
46
|
-
#{$direction}: 0;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@each $direction in 'left' 'right' {
|
|
52
|
-
&,
|
|
53
|
-
&-vertical {
|
|
54
|
-
&-#{$direction} {
|
|
55
|
-
#{$direction}: 0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use '/tokens';
|
|
2
|
-
|
|
3
|
-
.--background {
|
|
4
|
-
&-state {
|
|
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
|
-
|
|
11
|
-
@include tokens.state(active) {
|
|
12
|
-
--background: var(--background-active);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include tokens.state(hover) {
|
|
16
|
-
--background: var(--background-hover);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@include tokens.state(pressed) {
|
|
20
|
-
--background: var(--background-pressed);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin css-variables($colors) {
|
|
26
|
-
@include tokens.state-utility('.--background', 'background', $colors);
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.--border {
|
|
2
|
-
border: var(--border-width) var(--border-style) var(--border-color);
|
|
3
|
-
|
|
4
|
-
@each $key in 'bottom' 'left' 'right' 'top' {
|
|
5
|
-
&-#{$key} {
|
|
6
|
-
border-#{$key}: var(--border-width) var(--border-style) var(--border-color);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&-offset {
|
|
11
|
-
@each $key in 'bottom' 'left' 'right' 'top' {
|
|
12
|
-
&-#{$key} {
|
|
13
|
-
margin-#{$key}: calc(var(--border-width) * -1);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-radius {
|
|
19
|
-
border-radius: var(--border-radius);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--border {
|
|
5
|
-
&,
|
|
6
|
-
&-bottom,
|
|
7
|
-
&-left,
|
|
8
|
-
&-right,
|
|
9
|
-
&-top {
|
|
10
|
-
--border-color: var(--border-color-default);
|
|
11
|
-
--border-style: solid;
|
|
12
|
-
--border-width: var(--border-width-400);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-dashed {
|
|
16
|
-
--border-style: dashed;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-dotted {
|
|
20
|
-
--border-style: dotted;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-radius {
|
|
24
|
-
--border-radius: var(--border-radius-400);
|
|
25
|
-
|
|
26
|
-
@each $key in lib.map-keys(tokens.$border-radius) {
|
|
27
|
-
&-#{$key} {
|
|
28
|
-
--border-radius: var(--border-radius-#{$key});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-state {
|
|
34
|
-
--border-color: var(--border-color-default);
|
|
35
|
-
--border-color-active: var(--border-color-default);
|
|
36
|
-
--border-color-default: transparent;
|
|
37
|
-
--border-color-hover: var(--border-color-default);
|
|
38
|
-
--border-color-pressed: var(--border-color-default);
|
|
39
|
-
|
|
40
|
-
@include tokens.state(active) {
|
|
41
|
-
--border-color: var(--border-color-active);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@include tokens.state(hover) {
|
|
45
|
-
--border-color: var(--border-color-hover);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@include tokens.state(pressed) {
|
|
49
|
-
--border-color: var(--border-color-pressed);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&-width {
|
|
54
|
-
--border-width: var(--border-width-400);
|
|
55
|
-
|
|
56
|
-
@each $key in lib.map-keys(tokens.$border-width) {
|
|
57
|
-
&-#{$key} {
|
|
58
|
-
--border-width: var(--border-width-#{$key});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@mixin css-variables($colors) {
|
|
65
|
-
@include tokens.state-utility('.--border', 'border-color', $colors);
|
|
66
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@use '/tokens';
|
|
2
|
-
|
|
3
|
-
.--color {
|
|
4
|
-
&-inherit {
|
|
5
|
-
--color: inherit;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-state {
|
|
9
|
-
--color: var(--color-default);
|
|
10
|
-
--color-active: var(--color-default);
|
|
11
|
-
--color-default: var(--color-text-400);
|
|
12
|
-
--color-hover: var(--color-default);
|
|
13
|
-
--color-pressed: var(--color-default);
|
|
14
|
-
|
|
15
|
-
@include tokens.state(active) {
|
|
16
|
-
--color: var(--color-active);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@include tokens.state(hover) {
|
|
20
|
-
--color: var(--color-hover);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@include tokens.state(pressed) {
|
|
24
|
-
--color: var(--color-pressed);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin css-variables($colors) {
|
|
30
|
-
@include tokens.state-utility('.--color', 'color', $colors);
|
|
31
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
.--flex {
|
|
2
|
-
&-center {
|
|
3
|
-
align-content: center;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&-column {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-flow: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-end {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-wrap: wrap;
|
|
17
|
-
justify-content: flex-end;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-fill {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex: 1;
|
|
23
|
-
min-width: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-fixed {
|
|
27
|
-
display: flex;
|
|
28
|
-
flex: 0 0 var(--width);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-horizontal {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-wrap: wrap;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
|
|
36
|
-
&-space-between {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-wrap: wrap;
|
|
39
|
-
justify-content: space-between;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-row {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-flow: row;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&-start {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-wrap: wrap;
|
|
51
|
-
justify-content: flex-start;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-vertical {
|
|
55
|
-
align-items: center;
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-wrap: wrap;
|
|
58
|
-
|
|
59
|
-
&-space-between {
|
|
60
|
-
align-items: space-between;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-wrap: wrap;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.--hidden {
|
|
5
|
-
display: none;
|
|
6
|
-
|
|
7
|
-
&-active {
|
|
8
|
-
@include tokens.state(active) {
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&-inactive {
|
|
14
|
-
@include tokens.state(inactive) {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-visibility {
|
|
20
|
-
@include lib.position(absolute, 0 null null 0);
|
|
21
|
-
appearance: none;
|
|
22
|
-
height: 0px;
|
|
23
|
-
opacity: 0;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
width: 0px;
|
|
26
|
-
z-index: -1;
|
|
27
|
-
}
|
|
28
|
-
}
|