@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 +1 -1
- package/transition/_transition.scss +21 -15
- package/utils/_list.scss +8 -5
package/package.json
CHANGED
|
@@ -3,31 +3,37 @@
|
|
|
3
3
|
@use '../motion';
|
|
4
4
|
|
|
5
5
|
@function entrance($property, $duration: moderate, $delay: 0ms) {
|
|
6
|
-
$duration-value:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
meta.get-function('
|
|
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
|
|