@esportsplus/ui 0.7.1 → 0.7.3
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/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/src/components/root/scss/variables.scss +2 -1
- package/src/index.ts +19 -20
- package/src/lib/scss/breakpoint.scss +1 -1
- package/src/lib/scss/css-variables.scss +5 -2
- package/src/lib/scss/list.scss +6 -5
- package/src/lib/scss/position.scss +11 -9
- package/src/lib/scss/string.scss +2 -1
- package/src/tokens/scss/state.scss +3 -2
package/build/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '@esportsplus/webpack/global.d.ts';
|
|
2
1
|
export { default as accordion } from './components/accordion';
|
|
3
2
|
export { default as clipboard } from './components/clipboard';
|
|
4
3
|
export { default as counter } from './components/counter';
|
|
5
4
|
export { default as ellipsis } from './components/ellipsis';
|
|
5
|
+
export { default as footer } from './components/footer';
|
|
6
6
|
export { default as form } from './components/form';
|
|
7
7
|
export { default as json } from './components/json';
|
|
8
8
|
export { default as link } from './components/link';
|
package/build/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '@esportsplus/webpack/global.d.ts';
|
|
2
1
|
export { default as accordion } from './components/accordion';
|
|
3
2
|
export { default as clipboard } from './components/clipboard';
|
|
4
3
|
export { default as counter } from './components/counter';
|
|
5
4
|
export { default as ellipsis } from './components/ellipsis';
|
|
5
|
+
export { default as footer } from './components/footer';
|
|
6
6
|
export { default as form } from './components/form';
|
|
7
7
|
export { default as json } from './components/json';
|
|
8
8
|
export { default as link } from './components/link';
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
1
2
|
@use '/lib';
|
|
2
3
|
@use '/tokens';
|
|
3
4
|
|
|
@@ -82,7 +83,7 @@ h1, h2, h3, h4, h5 {
|
|
|
82
83
|
|
|
83
84
|
// Loop Through Font Size Keys To Set Header Font Size + Line Height
|
|
84
85
|
$keys: lib.map-keys(tokens.$font-size);
|
|
85
|
-
$i: nth($keys, lib.list-length($keys));
|
|
86
|
+
$i: list.nth($keys, lib.list-length($keys));
|
|
86
87
|
|
|
87
88
|
@each $h in h1 h2 h3 h4 h5 {
|
|
88
89
|
#{$h} {
|
package/src/index.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as typewriter }from './components/typewriter';
|
|
1
|
+
export { default as accordion } from './components/accordion';
|
|
2
|
+
export { default as clipboard } from './components/clipboard';
|
|
3
|
+
export { default as counter } from './components/counter';
|
|
4
|
+
export { default as ellipsis } from './components/ellipsis';
|
|
5
|
+
export { default as footer } from './components/footer';
|
|
6
|
+
export { default as form } from './components/form';
|
|
7
|
+
export { default as json } from './components/json';
|
|
8
|
+
export { default as link } from './components/link';
|
|
9
|
+
export { default as loader } from './components/loader';
|
|
10
|
+
export { default as loading } from './components/loading';
|
|
11
|
+
export { default as magnet } from './components/magnet';
|
|
12
|
+
export { default as number } from './components/number';
|
|
13
|
+
export { default as page } from './components/page';
|
|
14
|
+
export { default as root } from './components/root';
|
|
15
|
+
export { default as scrollbar } from './components/scrollbar';
|
|
16
|
+
export { default as site } from './components/site';
|
|
17
|
+
export { default as tooltip } from './components/tooltip';
|
|
18
|
+
export { default as truncate } from './components/truncate';
|
|
19
|
+
export { default as typewriter } from './components/typewriter';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
@else if $function == between-width {
|
|
13
|
-
@media only screen and (min-width: #{nth($param, 1) + 1px}) and (max-width: nth($param, 2)) {
|
|
13
|
+
@media only screen and (min-width: #{list.nth($param, 1) + 1px}) and (max-width: list.nth($param, 2)) {
|
|
14
14
|
@content;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
@mixin css-variables($prefix, $tokens) {
|
|
2
5
|
@each $key, $value in $tokens {
|
|
3
|
-
@if type-of($value) == 'map' {
|
|
6
|
+
@if meta.type-of($value) == 'map' {
|
|
4
7
|
@each $subkey, $subvalue in $value {
|
|
5
8
|
--#{$prefix}-#{$key}-#{$subkey}: #{$subvalue};
|
|
6
9
|
}
|
|
@@ -10,4 +13,4 @@
|
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
|
-
|
|
16
|
+
|
package/src/lib/scss/list.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:list';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use 'sass:string';
|
|
3
4
|
|
|
4
5
|
@forward 'sass:list';
|
|
@@ -20,15 +21,15 @@
|
|
|
20
21
|
$list: unique($list);
|
|
21
22
|
$output: null;
|
|
22
23
|
|
|
23
|
-
@if type-of($list) != list {
|
|
24
|
+
@if meta.type-of($list) != list {
|
|
24
25
|
@error "#{$list} Is Not A Valid List";
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
@for $i from 1 through list.length($list) {
|
|
28
|
-
$m: nth($list, $i);
|
|
29
|
+
$m: list.nth($list, $i);
|
|
29
30
|
|
|
30
31
|
// If $k Is A List Flatten By Running Through Function Again
|
|
31
|
-
@if type-of($m) == list {
|
|
32
|
+
@if meta.type-of($m) == list {
|
|
32
33
|
$output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
|
|
33
34
|
}
|
|
34
35
|
// Piece Together String
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
@function to-list($input) {
|
|
48
49
|
$output: $input;
|
|
49
50
|
|
|
50
|
-
@if type-of($input) != list {
|
|
51
|
+
@if meta.type-of($input) != list {
|
|
51
52
|
$output: ($input,);
|
|
52
53
|
}
|
|
53
54
|
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
@function unique($list, $recursive: false) {
|
|
58
59
|
$result: ();
|
|
59
60
|
|
|
60
|
-
@if type-of($list) != list {
|
|
61
|
+
@if meta.type-of($list) != list {
|
|
61
62
|
@error "#{$list} Is Not A Valid List";
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@use 'list';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
@mixin position($position, $value: null) {
|
|
4
6
|
position: $position;
|
|
@@ -31,23 +33,23 @@
|
|
|
31
33
|
bottom: 50%;
|
|
32
34
|
transform: translateY(50%);
|
|
33
35
|
}
|
|
34
|
-
@else if $value and type-of($value) == list {
|
|
36
|
+
@else if $value and meta.type-of($value) == list {
|
|
35
37
|
$length: list.length($value);
|
|
36
38
|
|
|
37
|
-
@if $length > 0 and nth($value, 1) != null {
|
|
38
|
-
top: nth($value, 1);
|
|
39
|
+
@if $length > 0 and list.nth($value, 1) != null {
|
|
40
|
+
top: list.nth($value, 1);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
@if $length > 1 and nth($value, 2) != null {
|
|
42
|
-
right: nth($value, 2);
|
|
43
|
+
@if $length > 1 and list.nth($value, 2) != null {
|
|
44
|
+
right: list.nth($value, 2);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
@if $length > 2 and nth($value, 3) != null {
|
|
46
|
-
bottom: nth($value, 3);
|
|
47
|
+
@if $length > 2 and list.nth($value, 3) != null {
|
|
48
|
+
bottom: list.nth($value, 3);
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
@if $length > 3 and nth($value, 4) != null {
|
|
50
|
-
left: nth($value, 4);
|
|
51
|
+
@if $length > 3 and list.nth($value, 4) != null {
|
|
52
|
+
left: list.nth($value, 4);
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
}
|
package/src/lib/scss/string.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'list';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use 'sass:string';
|
|
3
4
|
|
|
4
5
|
@forward 'sass:string';
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
@function replace($find, $replace, $haystack) {
|
|
22
|
-
@if type-of($haystack) != string {
|
|
23
|
+
@if meta.type-of($haystack) != string {
|
|
23
24
|
@error "#{$haystack} Is Not A Valid String";
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
@use 'sass:meta';
|
|
21
22
|
@use '../../lib';
|
|
22
23
|
|
|
23
24
|
$state: (
|
|
@@ -39,7 +40,7 @@ $state: (
|
|
|
39
40
|
// To Avoid Overcomplicating The Responsibility Of This Function Limit
|
|
40
41
|
// Replace Parameter To String Values Only
|
|
41
42
|
@if $replace {
|
|
42
|
-
@if type-of($replace) != 'string' or type-of($selector) != 'string' {
|
|
43
|
+
@if meta.type-of($replace) != 'string' or meta.type-of($selector) != 'string' {
|
|
43
44
|
@error "'lib.string-replace' Cannot Be Used On A List!";
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -69,7 +70,7 @@ $state: (
|
|
|
69
70
|
@mixin state-utility($class, $property, $values) {
|
|
70
71
|
$keys: $values;
|
|
71
72
|
|
|
72
|
-
@if type-of($keys) == 'map' {
|
|
73
|
+
@if meta.type-of($keys) == 'map' {
|
|
73
74
|
$keys: lib.map-keys($keys);
|
|
74
75
|
}
|
|
75
76
|
|