@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 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
@@ -21,5 +21,5 @@
21
21
  },
22
22
  "sideEffects": false,
23
23
  "types": "build/index.d.ts",
24
- "version": "0.7.1"
24
+ "version": "0.7.3"
25
25
  }
@@ -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
- import '@esportsplus/webpack/global.d.ts';
2
-
3
- export { default as accordion }from './components/accordion';
4
- export { default as clipboard }from './components/clipboard';
5
- export { default as counter }from './components/counter';
6
- export { default as ellipsis }from './components/ellipsis';
7
- export { default as form }from './components/form';
8
- export { default as json }from './components/json';
9
- export { default as link }from './components/link';
10
- export { default as loader }from './components/loader';
11
- export { default as loading }from './components/loading';
12
- export { default as magnet }from './components/magnet';
13
- export { default as number }from './components/number';
14
- export { default as page }from './components/page';
15
- export { default as root }from './components/root';
16
- export { default as scrollbar }from './components/scrollbar';
17
- export { default as site }from './components/site';
18
- export { default as tooltip }from './components/tooltip';
19
- export { default as truncate }from './components/truncate';
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
+
@@ -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
  }
@@ -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