@mezzanine-ui/system 1.0.0-rc.1 → 1.0.0-rc.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mezzanine-ui/system",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "Design System for mezzanine-ui",
5
5
  "author": "Mezzanine",
6
6
  "repository": {
@@ -3,31 +3,37 @@
3
3
  @use '../motion';
4
4
 
5
5
  @function entrance($property, $duration: moderate, $delay: 0ms) {
6
- $duration-value: if(
7
- meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') != null,
8
- $duration,
9
- motion.duration($duration)
10
- );
6
+ $duration-value: null;
7
+
8
+ @if meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') {
9
+ $duration-value: $duration;
10
+ } @else {
11
+ $duration-value: motion.duration($duration);
12
+ }
11
13
 
12
14
  @return $property $duration-value motion.easing(entrance) $delay;
13
15
  }
14
16
 
15
17
  @function exit($property, $duration: moderate, $delay: 0ms) {
16
- $duration-value: if(
17
- meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') != null,
18
- $duration,
19
- motion.duration($duration)
20
- );
18
+ $duration-value: null;
19
+
20
+ @if meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') {
21
+ $duration-value: $duration;
22
+ } @else {
23
+ $duration-value: motion.duration($duration);
24
+ }
21
25
 
22
26
  @return $property $duration-value motion.easing(exit) $delay;
23
27
  }
24
28
 
25
29
  @function standard($property, $duration: moderate, $delay: 0ms) {
26
- $duration-value: if(
27
- meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') != null,
28
- $duration,
29
- motion.duration($duration)
30
- );
30
+ $duration-value: null;
31
+
32
+ @if meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') {
33
+ $duration-value: $duration;
34
+ } @else {
35
+ $duration-value: motion.duration($duration);
36
+ }
31
37
 
32
38
  @return $property $duration-value motion.easing(standard) $delay;
33
39
  }
package/utils/_list.scss CHANGED
@@ -12,11 +12,14 @@
12
12
 
13
13
  @function flat-push($list, $values...) {
14
14
  @each $value in $values {
15
- $pusher: if(
16
- meta.type-of($value) == list,
17
- meta.get-function('join', $module: list),
18
- meta.get-function('append', $module: list)
19
- );
15
+ $pusher: null;
16
+
17
+ @if meta.type-of($value) == list {
18
+ $pusher: meta.get-function('join', $module: list);
19
+ } @else {
20
+ $pusher: meta.get-function('append', $module: list);
21
+ }
22
+
20
23
  $list: meta.call($pusher, $list, $value);
21
24
  }
22
25