@social-mail/social-mail-client 1.5.19 → 1.5.21

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": "@social-mail/social-mail-client",
3
- "version": "1.5.19",
3
+ "version": "1.5.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,20 +1,23 @@
1
1
  import XNode from "@web-atoms/core/dist/core/XNode";
2
- import { DropDownProperty, ExpanderPropertyEditor } from "../controls/PropertyEditor";
2
+ import { BindEditor, DropDownProperty, ExpanderPropertyEditor } from "../controls/PropertyEditor";
3
3
  import { MultiValueProperty } from "../controls/MultiValueProperty";
4
+ import Bind from "@web-atoms/core/dist/core/Bind";
4
5
 
5
6
  export default function AnimateGroupEditor() {
6
7
  return <ExpanderPropertyEditor label="Animate">
7
- <MultiValueProperty
8
- label="On Reveal"
9
- attributeName="styler-on-reveal"
10
- />
11
- <DropDownProperty
12
- label="Timing"
13
- attributeName="styler-animation-timing-function"
14
- />
15
8
  <DropDownProperty
16
- label="Duration"
17
- attributeName="styler-animation-duration"
9
+ label="On Enter"
10
+ attributeName="styler-on-enter"
18
11
  />
12
+ <div style-display={BindEditor.oneWay((s) => s.selection.element.matches("[styler-on-enter]"))}>
13
+ <DropDownProperty
14
+ label="On Enter Timing"
15
+ attributeName="styler-on-enter-timing-function"
16
+ />
17
+ <DropDownProperty
18
+ label="On Enter Duration"
19
+ attributeName="styler-on-enter-duration"
20
+ />
21
+ </div>
19
22
  </ExpanderPropertyEditor>;
20
23
  }
@@ -9,4 +9,3 @@
9
9
  @import "./styles/animations/**/*.less";
10
10
 
11
11
  @import "./end.less";
12
-
@@ -0,0 +1,89 @@
1
+ @import (reference) "../../ref.less";
2
+
3
+ @animations: fade-in, fade-out, zoom-in, zoom-out;
4
+
5
+ each(@animations, .(@s) {
6
+ [styler-revealed][styler-on-enter=@{s}] {
7
+ animation-name: @s,
8
+ var(--styler-on-enter-effect-1, none),
9
+ var(--styler-on-enter-effect-2, none);
10
+ animation-duration: var(--styler-on-enter-duration, 1s),
11
+ var(--styler-on-enter-effect-1-duration, 1s),
12
+ var(--styler-on-enter-effect-2-duration, 1s);
13
+ animation-direction: var(--styler-on-enter-direction, unset),
14
+ var(--styler-on-enter-effect-1-direction, unset),
15
+ var(--styler-on-enter-effect-2-direction, unset);
16
+ animation-iteration-count: var(--styler-on-enter-iteration-count, 1),
17
+ var(--styler-on-enter-effect-1-iteration-count, 1),
18
+ var(--styler-on-enter-effect-2-iteration-count, 1);
19
+ animation-timing-function: var(--styler-on-enter-timing-function, ease),
20
+ var(--styler-on-enter-effect-1-timing-function, ease),
21
+ var(--styler-on-enter-effect-2-timing-function, ease);
22
+ animation-delay: var(--styler-on-enter-delay, unset),
23
+ var(--styler-on-enter-effect-1-delay, unset),
24
+ var(--styler-on-enter-effect-2-delay, unset);
25
+ }
26
+
27
+ [styler-on-click=@{s}] {
28
+ animation-name: @s,
29
+ var(--styler-on-click-effect-1, none),
30
+ var(--styler-on-click-effect-2, none);
31
+ animation-duration: var(--styler-on-click-duration, 1s),
32
+ var(--styler-on-click-effect-1-duration, 1s),
33
+ var(--styler-on-click-effect-2-duration, 1s);
34
+ animation-direction: var(--styler-on-click-direction, unset),
35
+ var(--styler-on-click-effect-1-direction, unset),
36
+ var(--styler-on-click-effect-2-direction, unset);
37
+ animation-iteration-count: var(--styler-on-click-iteration-count, 1),
38
+ var(--styler-on-click-effect-1-iteration-count, 1),
39
+ var(--styler-on-click-effect-2-iteration-count, 1);
40
+ animation-timing-function: var(--styler-on-click-timing-function, ease),
41
+ var(--styler-on-click-effect-1-timing-function, ease),
42
+ var(--styler-on-click-effect-2-timing-function, ease);
43
+ animation-delay: var(--styler-on-click-delay, unset),
44
+ var(--styler-on-click-effect-1-delay, unset),
45
+ var(--styler-on-click-effect-2-delay, unset);
46
+ }
47
+
48
+ [styler-on-hover=@{s}]:hover {
49
+ animation-name: @s,
50
+ var(--styler-on-hover-effect-1, none),
51
+ var(--styler-on-hover-effect-2, none);
52
+ animation-duration: var(--styler-on-hover-duration, 1s),
53
+ var(--styler-on-hover-effect-1-duration, 1s),
54
+ var(--styler-on-hover-effect-2-duration, 1s);
55
+ animation-direction: var(--styler-on-hover-direction, unset),
56
+ var(--styler-on-hover-effect-1-direction, unset),
57
+ var(--styler-on-hover-effect-2-direction, unset);
58
+ animation-iteration-count: var(--styler-on-hover-iteration-count, infinite),
59
+ var(--styler-on-hover-effect-1-iteration-count, infinite),
60
+ var(--styler-on-hover-effect-2-iteration-count, infinite);
61
+ animation-timing-function: var(--styler-on-hover-timing-function, ease),
62
+ var(--styler-on-hover-effect-1-timing-function, ease),
63
+ var(--styler-on-hover-effect-2-timing-function, ease);
64
+ animation-delay: var(--styler-on-hover-delay, unset),
65
+ var(--styler-on-hover-effect-1-delay, unset),
66
+ var(--styler-on-hover-effect-2-delay, unset);
67
+ }
68
+
69
+ [styler-on-leave=@{s}] {
70
+ animation-name: @s,
71
+ var(--styler-on-leave-effect-1, none),
72
+ var(--styler-on-leave-effect-2, none);
73
+ animation-duration: var(--styler-on-leave-duration, 1s),
74
+ var(--styler-on-leave-effect-1-duration, 1s),
75
+ var(--styler-on-leave-effect-2-duration, 1s);
76
+ animation-direction: var(--styler-on-leave-direction, unset),
77
+ var(--styler-on-leave-effect-1-direction, unset),
78
+ var(--styler-on-leave-effect-2-direction, unset);
79
+ animation-iteration-count: var(--styler-on-leave-iteration-count, 1),
80
+ var(--styler-on-leave-effect-1-iteration-count, 1),
81
+ var(--styler-on-leave-effect-2-iteration-count, 1);
82
+ animation-timing-function: var(--styler-on-leave-timing-function, ease),
83
+ var(--styler-on-leave-effect-1-timing-function, ease),
84
+ var(--styler-on-leave-effect-2-timing-function, ease);
85
+ animation-delay: var(--styler-on-leave-delay, unset),
86
+ var(--styler-on-leave-effect-1-delay, unset),
87
+ var(--styler-on-leave-effect-2-delay, unset);
88
+ }
89
+ });
@@ -0,0 +1,13 @@
1
+ @selectors: styler-on-enter-effect-1, styler-on-click-effect-1, styler-on-hover-effect-1,
2
+ styler-on-enter-effect-2, styler-on-click-effect-2, styler-on-hover-effect-2;
3
+ @effects: rotate;
4
+
5
+ each(@selectors, .(@s) {
6
+ @n: e('@{s}');
7
+ each(@effects, .(@v) {
8
+ @ns: e('@{n}=@{v}');
9
+ [@{ns}] {
10
+ --@{n}: @v;
11
+ }
12
+ })
13
+ });
@@ -0,0 +1,27 @@
1
+
2
+ @keyframes fade-in {
3
+ 0% {
4
+ opacity: 0.3;
5
+ }
6
+ 100% {
7
+ opacity: 1;
8
+ }
9
+ }
10
+
11
+ @keyframes fade-out {
12
+ 0% {
13
+ opacity: 1;
14
+ }
15
+ 100% {
16
+ opacity: 0.3;
17
+ }
18
+ }
19
+
20
+ @keyframes zoom-in {
21
+ 0% {
22
+ transform: scale(0.5, 0.5);
23
+ }
24
+ 100% {
25
+ transform: scale(1, 1);
26
+ }
27
+ }
@@ -0,0 +1,94 @@
1
+ @import (reference) "../ref.less";
2
+
3
+ @selectors: styler-on-enter, styler-on-click, styler-on-hover, styler-on-leave,
4
+ styler-on-enter-effect-1, styler-on-click-effect-1, styler-on-hover-effect-1,
5
+ styler-on-enter-effect-2, styler-on-click-effect-2, styler-on-hover-effect-2
6
+ ;
7
+
8
+ @animation-duration: inherit, initial, revert, revert-layer, unset,
9
+ 0.1s, 0.2s, 0.3s, 0.4s, 0.5s, 0.6s, 0.7s, 0.8s, 0.9s,
10
+ 1s, 2s, 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s;
11
+
12
+ each(@selectors, .(@s) {
13
+ @n: e('@{s}-duration');
14
+ [@{n}=custom] {
15
+ --none: 0;
16
+ }
17
+ each(@animation-duration, .(@v) {
18
+ @ns: e('@{n}=@{v}');
19
+ [@{ns}] {
20
+ --@{n}: @v;
21
+ }
22
+ })
23
+ });
24
+
25
+
26
+
27
+ @animation-timing-function: inherit, initial, revert, revert-layer, unset,
28
+ linear, ease, ease-in, ease-out, ease-in-out, step-start, step-end;
29
+
30
+ each(@selectors, .(@s) {
31
+ @n: e('@{s}-timing-function');
32
+ [@{n}=custom] {
33
+ --none: 0;
34
+ }
35
+ each(@animation-timing-function, .(@v) {
36
+ @ns: e('@{n}=@{v}');
37
+ [@{ns}] {
38
+ --@{n}: @v;
39
+ }
40
+ })
41
+ });
42
+
43
+
44
+
45
+ @animation-direction : inherit, initial, revert, revert-layer, unset,
46
+ normal, reverse, alternate, alternate-reverse;
47
+
48
+ each(@selectors, .(@s) {
49
+ @n: e('@{s}-direction');
50
+ [@{n}=custom] {
51
+ --none: 0;
52
+ }
53
+ each(@animation-direction, .(@v) {
54
+ @ns: e('@{n}=@{v}');
55
+ [@{ns}] {
56
+ --@{n}: @v;
57
+ }
58
+ })
59
+ });
60
+
61
+ @animation-iteration-count : inherit, initial, revert, revert-layer, unset,
62
+ infinite, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;
63
+
64
+ each(@selectors, .(@s) {
65
+ @n: e('@{s}-iteration-count');
66
+ [@{n}=custom] {
67
+ --none: 0;
68
+ }
69
+ each(@animation-iteration-count, .(@v) {
70
+ @ns: e('@{n}=@{v}');
71
+ [@{ns}] {
72
+ --@{n}: @v;
73
+ }
74
+ })
75
+ });
76
+
77
+ @animation-delay: inherit, initial, revert, revert-layer, unset,
78
+ 0,
79
+ 0.1s, 0.2s, 0.3s, 0.4s, 0.5s, 0.6s, 0.7s, 0.8s, 0.9s,
80
+ 1s, 2s, 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s;
81
+
82
+ each(@selectors, .(@s) {
83
+ @n: e('@{s}-delay');
84
+ [@{n}=custom] {
85
+ --none: 0;
86
+ }
87
+ each(@animation-delay, .(@v) {
88
+ @ns: e('@{n}=@{v}');
89
+ [@{ns}] {
90
+ --@{n}: @v;
91
+ }
92
+ })
93
+ });
94
+
@@ -32,4 +32,21 @@
32
32
  }
33
33
  });
34
34
  })
35
+ }
36
+
37
+ .each-var(@rules, @prefix: "") {
38
+ each(@rules .(@rule, @ruleName) {
39
+ @p1: e(replace(%("styler-%s%s", @prefix, @ruleName),"\@","", "g"));
40
+ @n1: e(replace(%("--styler-%s%s", @prefix, @ruleName),"\@","", "g"));
41
+ @sv1: e(replace(%("var(--styler-%s%s)", @prefix, @ruleName),"\@","", "g"));
42
+ [@{p1}=custom] {
43
+ @{n1}: @sv1;
44
+ }
45
+ each(@rule, .(@value) {
46
+ @sn1: e(replace(%("%s", @value),"\s","-", "g"));
47
+ [@{p1}=@{sn1}] {
48
+ @{n1}:@value;
49
+ }
50
+ });
51
+ })
35
52
  }