@esportsplus/ui 0.5.4 → 0.5.5
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 +22 -22
- package/.github/workflows/bump.yml +6 -6
- package/.github/workflows/publish.yml +13 -13
- package/build/components/aurora/index.js +4 -4
- package/build/components/counter/index.js +16 -16
- package/build/components/ellipsis/index.js +6 -6
- package/build/components/footer/index.js +46 -46
- package/build/components/form/layout.js +10 -10
- package/build/components/magnet/index.js +7 -7
- package/build/components/scrollbar/index.js +9 -9
- package/build/components/site/index.js +5 -5
- package/lib.scss +1 -1
- package/package.json +25 -25
- package/src/components/accordion/index.ts +34 -34
- package/src/components/accordion/scss/index.scss +16 -16
- package/src/components/accordion/scss/variables.scss +9 -9
- package/src/components/anchor/scss/index.scss +41 -41
- package/src/components/anchor/scss/variables.scss +4 -4
- package/src/components/aurora/index.ts +21 -21
- package/src/components/aurora/scss/index.scss +59 -59
- package/src/components/banner/scss/index.scss +40 -40
- package/src/components/banner/scss/variables.scss +9 -9
- 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 +114 -114
- package/src/components/button/scss/variables.scss +66 -66
- package/src/components/card/scss/index.scss +35 -35
- package/src/components/card/scss/variables.scss +41 -41
- package/src/components/clipboard/index.ts +3 -3
- package/src/components/clipboard/write.ts +8 -8
- package/src/components/container/scss/index.scss +8 -8
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/counter/index.ts +93 -93
- package/src/components/counter/scss/index.scss +61 -61
- package/src/components/counter/scss/variables.scss +26 -26
- package/src/components/ellipsis/index.ts +9 -9
- package/src/components/ellipsis/scss/index.scss +27 -27
- package/src/components/ellipsis/scss/variables.scss +4 -4
- package/src/components/footer/index.ts +78 -78
- package/src/components/footer/scss/index.scss +25 -25
- package/src/components/form/action.ts +80 -80
- 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/grid/scss/index.scss +9 -9
- package/src/components/grid/scss/variables.scss +5 -5
- package/src/components/group/scss/index.scss +36 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/highlight/index.ts +47 -47
- package/src/components/highlight/scss/index.scss +4 -4
- package/src/components/highlight/scss/variables.scss +3 -3
- package/src/components/icon/scss/index.scss +16 -16
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/json/download.ts +14 -14
- package/src/components/json/index.ts +3 -3
- package/src/components/link/scss/index.scss +28 -28
- package/src/components/link/scss/variables.scss +46 -46
- package/src/components/loading/scss/index.scss +16 -16
- package/src/components/loading/scss/variables.scss +5 -5
- package/src/components/magnet/index.ts +54 -54
- package/src/components/magnet/scss/index.scss +16 -16
- package/src/components/magnet/scss/variables.scss +4 -4
- package/src/components/modal/scss/index.scss +34 -34
- package/src/components/modal/scss/variables.scss +6 -6
- package/src/components/number/index.ts +23 -23
- package/src/components/page/index.ts +14 -14
- package/src/components/page/scss/index.scss +31 -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 +99 -99
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +43 -43
- package/src/components/scrollbar/scss/index.scss +70 -70
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/scss/index.scss +49 -49
- package/src/components/sidebar/scss/variables.scss +20 -20
- package/src/components/site/index.ts +26 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/scss/index.scss +9 -9
- package/src/components/text/scss/variables.scss +8 -8
- package/src/components/thumbnail/scss/index.scss +7 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +84 -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 +93 -93
- package/src/components/tooltip/scss/variables.scss +24 -24
- package/src/components/truncate/index.ts +13 -13
- 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 +36 -36
- 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/squircle/scss/index.scss +4 -4
- package/src/css-utilities/text/scss/index.scss +89 -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 +3 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/index.ts +16 -16
- 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 +53 -53
- 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 +21 -21
- package/src/tokens/scss/color.scss +64 -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 +8 -8
- package/src/tokens/scss/state.scss +86 -86
- package/src/tokens/scss/transition-duration.scss +1 -1
- package/storage/fonts/montserrat/index.css +79 -79
- package/tokens.scss +1 -1
- package/tsconfig.json +2 -2
- package/utilities/styles.css +1 -1
- package/utilities/variables.css +1 -1
- package/webpack.config.ts +25 -25
|
@@ -1,93 +1,93 @@
|
|
|
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
|
+
@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,24 +1,24 @@
|
|
|
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
|
-
--width: auto;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-message {
|
|
17
|
-
--background-default: var(--color-black-400);
|
|
18
|
-
--color: var(--color-white-400);
|
|
19
|
-
--font-size: var(--font-size-300);
|
|
20
|
-
--font-weight: var(--font-weight-400);
|
|
21
|
-
--padding-horizontal: var(--size-300);
|
|
22
|
-
--padding-vertical: var(--size-300);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
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
|
+
--width: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-message {
|
|
17
|
+
--background-default: var(--color-black-400);
|
|
18
|
+
--color: var(--color-white-400);
|
|
19
|
+
--font-size: var(--font-size-300);
|
|
20
|
+
--font-weight: var(--font-weight-400);
|
|
21
|
+
--padding-horizontal: var(--size-300);
|
|
22
|
+
--padding-vertical: var(--size-300);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const center = (str: string, { prefix, suffix }: { prefix?: number, suffix?: number } = {}) => {
|
|
2
|
-
return str.slice(0, prefix || 5) + '...' + str.slice(str.length - (suffix || 7));
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
const end = (str: string, prefix: number = 7) => {
|
|
6
|
-
return str.slice(0, prefix) + '...';
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const start = (str: string, suffix: number = 7) => {
|
|
10
|
-
return '...' + str.slice(str.length - suffix);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
const center = (str: string, { prefix, suffix }: { prefix?: number, suffix?: number } = {}) => {
|
|
2
|
+
return str.slice(0, prefix || 5) + '...' + str.slice(str.length - (suffix || 7));
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
const end = (str: string, prefix: number = 7) => {
|
|
6
|
+
return str.slice(0, prefix) + '...';
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const start = (str: string, suffix: number = 7) => {
|
|
10
|
+
return '...' + str.slice(str.length - suffix);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
|
|
14
14
|
export default { center, end, start };
|
|
@@ -1,41 +1,41 @@
|
|
|
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
|
+
@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 +1,54 @@
|
|
|
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
|
+
@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,36 +1,36 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
|
|
3
|
-
.--absolute {
|
|
4
|
-
&-horizontal,
|
|
5
|
-
&-vertical {
|
|
6
|
-
&-bottom {
|
|
7
|
-
bottom: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&-top {
|
|
11
|
-
top: 0;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-horizontal {
|
|
16
|
-
&,
|
|
17
|
-
&-bottom,
|
|
18
|
-
&-top {
|
|
19
|
-
@include lib.position(absolute, horizontal);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-vertical {
|
|
24
|
-
&,
|
|
25
|
-
&-left,
|
|
26
|
-
&-right {
|
|
27
|
-
@include lib.position(absolute, vertical);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@each $direction in 'bottom' 'center' 'full' 'left' 'right' 'top' {
|
|
32
|
-
&-#{$direction} {
|
|
33
|
-
@include lib.position(absolute, $direction);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
|
|
3
|
+
.--absolute {
|
|
4
|
+
&-horizontal,
|
|
5
|
+
&-vertical {
|
|
6
|
+
&-bottom {
|
|
7
|
+
bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-top {
|
|
11
|
+
top: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-horizontal {
|
|
16
|
+
&,
|
|
17
|
+
&-bottom,
|
|
18
|
+
&-top {
|
|
19
|
+
@include lib.position(absolute, horizontal);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-vertical {
|
|
24
|
+
&,
|
|
25
|
+
&-left,
|
|
26
|
+
&-right {
|
|
27
|
+
@include lib.position(absolute, vertical);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@each $direction in 'bottom' 'center' 'full' 'left' 'right' 'top' {
|
|
32
|
+
&-#{$direction} {
|
|
33
|
+
@include lib.position(absolute, $direction);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
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
|
+
@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 +1,21 @@
|
|
|
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
|
+
.--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
|
+
}
|