@esportsplus/ui 0.0.1
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 -0
- package/.gitattributes +2 -0
- package/components/accordion/scss/accordion.scss +16 -0
- package/components/accordion/scss/variables.scss +4 -0
- package/components/alert/scss/alert.scss +104 -0
- package/components/alert/scss/variables.scss +25 -0
- package/components/anchor/scss/anchor.scss +41 -0
- package/components/anchor/scss/anchors.scss +9 -0
- package/components/anchor/scss/variables.scss +5 -0
- package/components/banner/scss/banner.scss +13 -0
- package/components/border/scss/border.scss +10 -0
- package/components/border/scss/variables.scss +6 -0
- package/components/bubble/scss/bubble.scss +30 -0
- package/components/bubble/scss/variables.scss +19 -0
- package/components/button/scss/button.scss +93 -0
- package/components/button/scss/variables.scss +70 -0
- package/components/card/scss/card.scss +36 -0
- package/components/card/scss/variables.scss +42 -0
- package/components/container/scss/container.scss +10 -0
- package/components/container/scss/variables.scss +5 -0
- package/components/ellipsis/scss/ellipsis.scss +72 -0
- package/components/ellipsis/scss/variables.scss +3 -0
- package/components/field/scss/_check.scss +225 -0
- package/components/field/scss/_normalize.scss +36 -0
- package/components/field/scss/_text.scss +103 -0
- package/components/field/scss/field.scss +132 -0
- package/components/field/scss/variables.scss +133 -0
- package/components/group/scss/group.scss +41 -0
- package/components/group/scss/variables.scss +25 -0
- package/components/icon/scss/icon.scss +18 -0
- package/components/icon/scss/variables.scss +8 -0
- package/components/link/scss/link.scss +29 -0
- package/components/link/scss/variables.scss +48 -0
- package/components/loading/scss/loading.scss +24 -0
- package/components/loading/scss/variables.scss +31 -0
- package/components/page/scss/page.scss +22 -0
- package/components/page/scss/variables.scss +19 -0
- package/components/processing/scss/processing.scss +47 -0
- package/components/processing/scss/variables.scss +11 -0
- package/components/root/scss/root.scss +93 -0
- package/components/root/scss/variables.scss +54 -0
- package/components/row/scss/row.scss +8 -0
- package/components/row/scss/variables.scss +3 -0
- package/components/scrollbar/scss/scrollbar.scss +51 -0
- package/components/scrollbar/scss/variables.scss +8 -0
- package/components/sidebar/scss/sidebar.scss +50 -0
- package/components/sidebar/scss/sidebars.scss +13 -0
- package/components/sidebar/scss/variables.scss +25 -0
- package/components/site/scss/site.scss +3 -0
- package/components/text/scss/text.scss +12 -0
- package/components/text/scss/variables.scss +9 -0
- package/components/thumbnail/scss/thumbnail.scss +7 -0
- package/components/thumbnail/scss/variables.scss +7 -0
- package/components/tooltip/scss/_center.scss +13 -0
- package/components/tooltip/scss/_east.scss +34 -0
- package/components/tooltip/scss/_north.scss +34 -0
- package/components/tooltip/scss/_south.scss +35 -0
- package/components/tooltip/scss/_west.scss +34 -0
- package/components/tooltip/scss/tooltip.scss +107 -0
- package/components/tooltip/scss/variables.scss +25 -0
- package/css-utilities/[margin,padding]/scss/styles.scss +41 -0
- package/css-utilities/[margin,padding]/scss/variables.scss +52 -0
- package/css-utilities/[max,min]/scss/styles.scss +11 -0
- package/css-utilities/[max,min]/scss/variables.scss +23 -0
- package/css-utilities/absolute/scss/absolute.scss +59 -0
- package/css-utilities/background/scss/variables.scss +28 -0
- package/css-utilities/border/scss/border.scss +21 -0
- package/css-utilities/border/scss/variables.scss +66 -0
- package/css-utilities/color/scss/variables.scss +32 -0
- package/css-utilities/disabled/scss/disabled.scss +17 -0
- package/css-utilities/disabled/scss/variables.scss +4 -0
- package/css-utilities/flex/scss/flex.scss +67 -0
- package/css-utilities/hidden/scss/hidden.scss +28 -0
- package/css-utilities/index.scss +14 -0
- package/css-utilities/inline/scss/inline.scss +7 -0
- package/css-utilities/line-height/scss/variables.scss +10 -0
- package/css-utilities/not-allowed/scss/not-allowed.scss +14 -0
- package/css-utilities/overflow/scss/overflow.scss +5 -0
- package/css-utilities/pointer/scss/pointer.scss +5 -0
- package/css-utilities/size/scss/variables.scss +12 -0
- package/css-utilities/slide/scss/slide.scss +20 -0
- package/css-utilities/slide/scss/variables.scss +6 -0
- package/css-utilities/text/scss/text.scss +93 -0
- package/css-utilities/text/scss/variables.scss +31 -0
- package/css-utilities/width/scss/variables.scss +12 -0
- package/css-utilities/width/scss/width.scss +3 -0
- package/index.scss +1 -0
- package/lib/index.scss +7 -0
- package/lib/scss/breakpoint.scss +41 -0
- package/lib/scss/color.scss +8 -0
- package/lib/scss/css-variables.scss +13 -0
- package/lib/scss/list.scss +112 -0
- package/lib/scss/map.scss +8 -0
- package/lib/scss/position.scss +84 -0
- package/lib/scss/string.scss +54 -0
- package/package.json +22 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Bold.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Bold.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-BoldItalic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-BoldItalic.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Italic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Italic.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Medium.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Medium.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-MediumItalic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-MediumItalic.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Regular.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Regular.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBold.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBold.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBoldItalic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/storage/fonts/Montserrat/montserrat.css +79 -0
- package/storage/psd/Color Palette.psd +0 -0
- package/tokens/index.scss +11 -0
- package/tokens/scss/border-radius.scss +12 -0
- package/tokens/scss/border-width.scss +6 -0
- package/tokens/scss/box-shadow.scss +13 -0
- package/tokens/scss/breakpoints.scss +13 -0
- package/tokens/scss/color.scss +71 -0
- package/tokens/scss/font-size.scss +12 -0
- package/tokens/scss/font-weight.scss +6 -0
- package/tokens/scss/line-height.scss +6 -0
- package/tokens/scss/size.scss +13 -0
- package/tokens/scss/state.scss +93 -0
- package/tokens/scss/transition-duration.scss +5 -0
- package/webpack.sass.config.js +59 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use 'background/scss/variables' as background;
|
|
2
|
+
@use 'border/scss/variables' as border;
|
|
3
|
+
@use 'color/scss/variables' as color;
|
|
4
|
+
@use 'ui/lib';
|
|
5
|
+
@use 'ui/tokens';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@mixin css-variables($colors) {
|
|
9
|
+
@include background.css-variables($colors);
|
|
10
|
+
@include border.css-variables($colors);
|
|
11
|
+
@include color.css-variables($colors);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include css-variables(lib.list-join(primary secondary, lib.map-keys(tokens.$color)));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.--slide {
|
|
2
|
+
&-in {
|
|
3
|
+
animation-duration: var(--transition-duration);
|
|
4
|
+
animation-name: --slide-in;
|
|
5
|
+
animation-timing-function: ease-in-out;
|
|
6
|
+
transform-origin: top center;
|
|
7
|
+
|
|
8
|
+
@keyframes --slide-in {
|
|
9
|
+
from {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transform: translateY(var(--translateY));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
to {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transform: translateY(0);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/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
|
+
}
|
package/index.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward 'lib';
|
package/lib/index.scss
ADDED
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
*------------------------------------------------------------------------------
|
|
6
|
+
*
|
|
7
|
+
* Wrap Native FN
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@forward 'sass:list';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
*------------------------------------------------------------------------------
|
|
15
|
+
*
|
|
16
|
+
* Simplify Searching For Value(s) Within List
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
@function contains($needles, $haystack) {
|
|
21
|
+
$haystack: to-list($haystack);
|
|
22
|
+
$needles: to-list($needles);
|
|
23
|
+
|
|
24
|
+
@each $needle in $needles {
|
|
25
|
+
@if list.index($haystack, $needle) {
|
|
26
|
+
@return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
*------------------------------------------------------------------------------
|
|
35
|
+
*
|
|
36
|
+
* Join List Elements With A String
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
@function implode($glue, $list) {
|
|
41
|
+
$list: unique($list);
|
|
42
|
+
$output: null;
|
|
43
|
+
|
|
44
|
+
@if type-of($list) != list {
|
|
45
|
+
@error "#{$list} Is Not A Valid List";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@for $i from 1 through list.length($list) {
|
|
49
|
+
$m: nth($list, $i);
|
|
50
|
+
|
|
51
|
+
// If $k Is A List Flatten By Running Through Function Again
|
|
52
|
+
@if type-of($m) == list {
|
|
53
|
+
$output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
|
|
54
|
+
}
|
|
55
|
+
// Piece Together String
|
|
56
|
+
@else {
|
|
57
|
+
$output: string.unquote("#{$output}#{$glue}#{$m}");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@if $output != null {
|
|
62
|
+
$output: string.slice($output, string.length($glue) + 1, -1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@return $output;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*------------------------------------------------------------------------------
|
|
70
|
+
*
|
|
71
|
+
* Convert Input To List
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
@function to-list($input) {
|
|
76
|
+
$output: $input;
|
|
77
|
+
|
|
78
|
+
@if type-of($input) != list {
|
|
79
|
+
$output: ($input,);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@return $output;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
*------------------------------------------------------------------------------
|
|
88
|
+
*
|
|
89
|
+
* Remove Duplicate Values From List
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
@function unique($list, $recursive: false) {
|
|
94
|
+
$result: ();
|
|
95
|
+
|
|
96
|
+
@if type-of($list) != list {
|
|
97
|
+
@error "#{$list} Is Not A Valid List";
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@each $item in $list {
|
|
101
|
+
@if not list.index($result, $item) and $item != '' {
|
|
102
|
+
@if list.length($item) > 1 and $recursive {
|
|
103
|
+
$result: list.append($result, unique($item, $recursive));
|
|
104
|
+
}
|
|
105
|
+
@else {
|
|
106
|
+
$result: list.append($result, $item);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@return $result;
|
|
112
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*------------------------------------------------------------------------------
|
|
3
|
+
*
|
|
4
|
+
* Simplify Positioning Elements
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use 'list';
|
|
9
|
+
|
|
10
|
+
@mixin position($position, $value: null) {
|
|
11
|
+
position: $position;
|
|
12
|
+
|
|
13
|
+
@if list.contains($value, center vertical) {
|
|
14
|
+
bottom: 50%;
|
|
15
|
+
}
|
|
16
|
+
@if list.contains($value, center horizontal) {
|
|
17
|
+
right: 50%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@if $value == center {
|
|
22
|
+
transform: translate(50%, 50%);
|
|
23
|
+
}
|
|
24
|
+
@else if $value == horizontal {
|
|
25
|
+
transform: translateX(50%);
|
|
26
|
+
}
|
|
27
|
+
@else if $value == vertical {
|
|
28
|
+
transform: translateY(50%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@if $value == full {
|
|
33
|
+
$value: 0 0 0 0;
|
|
34
|
+
}
|
|
35
|
+
@else if $value == top {
|
|
36
|
+
$value: 0 0 null 0;
|
|
37
|
+
}
|
|
38
|
+
@else if $value == right {
|
|
39
|
+
$value: 0 0 0 null;
|
|
40
|
+
}
|
|
41
|
+
@else if $value == bottom {
|
|
42
|
+
$value: null 0 0 0;
|
|
43
|
+
}
|
|
44
|
+
@else if $value == left {
|
|
45
|
+
$value: 0 null 0 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@if $value and type-of($value) == list {
|
|
50
|
+
$length: list.length($value);
|
|
51
|
+
|
|
52
|
+
@if $length > 0 {
|
|
53
|
+
$v: nth($value, 1);
|
|
54
|
+
|
|
55
|
+
@if $v != null {
|
|
56
|
+
top: $v;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@if $length > 1 {
|
|
61
|
+
$v: nth($value, 2);
|
|
62
|
+
|
|
63
|
+
@if $v != null {
|
|
64
|
+
right: $v;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@if $length > 2 {
|
|
69
|
+
$v: nth($value, 3);
|
|
70
|
+
|
|
71
|
+
@if $v != null {
|
|
72
|
+
bottom: $v;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if $length > 3 {
|
|
77
|
+
$v: nth($value, 4);
|
|
78
|
+
|
|
79
|
+
@if $v != null {
|
|
80
|
+
left: $v;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use 'list';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
*------------------------------------------------------------------------------
|
|
6
|
+
*
|
|
7
|
+
* Wrap Native FN
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@forward 'sass:string';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
*------------------------------------------------------------------------------
|
|
15
|
+
*
|
|
16
|
+
* Simplify Searching For Value(s) Within String
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
@function contains($needles, $haystack) {
|
|
21
|
+
$haystack: string.quote($haystack);
|
|
22
|
+
$needles: list.to-list($needles);
|
|
23
|
+
|
|
24
|
+
@each $needle in $needles {
|
|
25
|
+
$needle: string.quote($needle);
|
|
26
|
+
|
|
27
|
+
@if string.index($haystack, $needle) != null {
|
|
28
|
+
@return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*------------------------------------------------------------------------------
|
|
37
|
+
*
|
|
38
|
+
* Find And Replace A Value In String
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
@function replace($find, $replace, $haystack) {
|
|
43
|
+
@if type-of($haystack) != string {
|
|
44
|
+
@error "#{$haystack} Is Not A Valid String";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$index: string.index($haystack, string.quote($find));
|
|
48
|
+
|
|
49
|
+
@if $index {
|
|
50
|
+
$haystack: string.slice($haystack, 1, $index - 1) + $replace + replace($find, $replace, string.slice($haystack, $index + string.length($find)));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@return $haystack;
|
|
54
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "ICJR",
|
|
3
|
+
"devDependencies": {
|
|
4
|
+
"autoprefixer": "^10.4.8",
|
|
5
|
+
"css-loader": "^6.7.1",
|
|
6
|
+
"cssnano": "^5.1.13",
|
|
7
|
+
"glob": "^8.0.3",
|
|
8
|
+
"modern-normalize": "^1.1.0",
|
|
9
|
+
"path-browserify": "^1.0.1",
|
|
10
|
+
"postcss-loader": "^7.0.1",
|
|
11
|
+
"run-for-every-file": "^1.1.0",
|
|
12
|
+
"sass": "^1.54.9",
|
|
13
|
+
"sass-loader": "^13.0.2",
|
|
14
|
+
"style-loader": "^3.3.1",
|
|
15
|
+
"webpack": "^5.74.0",
|
|
16
|
+
"webpack-cli": "^4.10.0"
|
|
17
|
+
},
|
|
18
|
+
"description": "UI",
|
|
19
|
+
"name": "@esportsplus/ui",
|
|
20
|
+
"private": false,
|
|
21
|
+
"version": "0.0.1"
|
|
22
|
+
}
|
|
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
|