amotify 0.0.14 → 0.0.15
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/@types/state.tsx +2 -2
- package/dist/amotify.js +1 -1
- package/dist/amotify.min.css +10 -10
- package/dist/coreVender.js +2 -2
- package/package.json +1 -1
- package/src/@styles/UniStyling.scss +6 -0
- package/src/@styles/init.scss +42 -106
- package/src/atoms/FAI/parts.tsx +9 -7
- package/src/atoms/Logo/style.module.scss +6 -5
- package/src/atoms/Various/style.module.scss +11 -6
- package/src/functions/Button/_.tsx +27 -18
- package/src/functions/Button/style.module.scss +20 -22
- package/src/functions/Cropper/style.module.scss +1 -0
- package/src/functions/Input/File/_.tsx +2 -4
- package/src/functions/Input/Select/style.module.scss +1 -0
- package/src/functions/Input/Switch/_.tsx +2 -0
- package/src/functions/Input/_.tsx +34 -35
- package/src/functions/Input/core.tsx +44 -45
- package/src/functions/Input/style.module.scss +51 -6
- package/src/functions/Layout/RootViewController/parts.tsx +4 -16
- package/src/functions/Loader/style.module.scss +2 -1
- package/src/functions/Sheet/parts.tsx +1 -1
- package/src/functions/Sheet/style.module.scss +4 -4
- package/src/functions/SnackBar/style.module.scss +1 -1
- package/src/global/LaunchReactApplication.tsx +2 -1
- package/src/preload.tsx +4 -4
package/package.json
CHANGED
|
@@ -166,6 +166,9 @@
|
|
|
166
166
|
&3#{ $DS } {
|
|
167
167
|
font-weight: bold;
|
|
168
168
|
}
|
|
169
|
+
&inherit#{ $DS } {
|
|
170
|
+
font-weight: inherit;
|
|
171
|
+
}
|
|
169
172
|
}
|
|
170
173
|
}
|
|
171
174
|
&bgc {
|
|
@@ -556,6 +559,9 @@
|
|
|
556
559
|
&dotted#{ $DS } {
|
|
557
560
|
border-style: dotted;
|
|
558
561
|
}
|
|
562
|
+
&none#{ $DS } {
|
|
563
|
+
border-style: none;
|
|
564
|
+
}
|
|
559
565
|
}
|
|
560
566
|
}
|
|
561
567
|
&r_ {
|
package/src/@styles/init.scss
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
@use './props' as *;
|
|
2
|
-
* {
|
|
3
|
-
padding: 0;
|
|
4
|
-
margin: 0;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
&:before, &:after {
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
2
|
html {
|
|
11
3
|
&.usrDevice_ {
|
|
12
4
|
&Windows {
|
|
@@ -28,15 +20,26 @@ html {
|
|
|
28
20
|
&iPhone {}
|
|
29
21
|
&iPad {}
|
|
30
22
|
}
|
|
31
|
-
* {
|
|
32
|
-
line-height: 1.5;
|
|
33
|
-
&::selection {
|
|
34
|
-
background-color: $color-theme !important;
|
|
35
|
-
color: #fff !important;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
23
|
}
|
|
39
|
-
|
|
24
|
+
.AMOTIFY_be_body {
|
|
25
|
+
padding: 0;
|
|
26
|
+
margin: 0;
|
|
27
|
+
transition: opacity $animation-time-middle;
|
|
28
|
+
background-color: $color-dark;
|
|
29
|
+
}
|
|
30
|
+
.AMOTIFY_be_origin {
|
|
31
|
+
max-width: 200rem;
|
|
32
|
+
min-height: $viewHeight;
|
|
33
|
+
background-color: $color-base;
|
|
34
|
+
position: relative;
|
|
35
|
+
margin: 0 auto;
|
|
36
|
+
padding: 0;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
.AMOTIFY_be {
|
|
40
|
+
padding: 0;
|
|
41
|
+
margin: 0;
|
|
42
|
+
box-sizing: border-box;
|
|
40
43
|
letter-spacing: .5px;
|
|
41
44
|
word-wrap: break-word;
|
|
42
45
|
word-break: normal;
|
|
@@ -54,101 +57,34 @@ body {
|
|
|
54
57
|
font-kerning: normal;
|
|
55
58
|
// -webkit-font-smoothing: antialiased;
|
|
56
59
|
caret-color: $color-theme;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
.amotify_base_element_root {
|
|
60
|
-
max-width: 200rem;
|
|
61
|
-
min-height: $viewHeight;
|
|
62
|
-
background-color: $color-base;
|
|
63
|
-
position: relative;
|
|
64
|
-
margin: 0 auto;
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
* {
|
|
65
62
|
padding: 0;
|
|
66
|
-
|
|
63
|
+
margin: 0;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
&:before, &:after {
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
}
|
|
67
68
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
font-weight: inherit;
|
|
74
|
-
color: inherit;
|
|
75
|
-
outline: none;
|
|
76
|
-
-webkit-appearance: none;
|
|
77
|
-
-webkit-tap-highlight-color: rgba(#000, 0);
|
|
78
|
-
touch-action: manipulation;
|
|
79
|
-
background-color: transparent;
|
|
80
|
-
border: none;
|
|
81
|
-
border-style: none;
|
|
82
|
-
text-decoration: none;
|
|
83
|
-
}
|
|
84
|
-
input, select, textarea {
|
|
85
|
-
&[ disabled] {
|
|
86
|
-
box-shadow: none !important;
|
|
87
|
-
background-color: $color-layer3 !important;
|
|
88
|
-
color: $font-color5 !important;
|
|
89
|
-
filter: grayscale(50%);
|
|
90
|
-
cursor: not-allowed !important;
|
|
69
|
+
* {
|
|
70
|
+
&::selection {
|
|
71
|
+
background-color: $color-theme !important;
|
|
72
|
+
color: #fff !important;
|
|
73
|
+
}
|
|
91
74
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
}
|
|
96
|
-
input, textarea {
|
|
97
|
-
cursor: text;
|
|
98
|
-
}
|
|
99
|
-
input, textarea {
|
|
100
|
-
&::placeholder {
|
|
75
|
+
button, a, label, input, select, textarea {
|
|
76
|
+
line-height: inherit;
|
|
101
77
|
font-family: inherit;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
&:-webkit-autofill {
|
|
107
|
-
box-shadow: 0 0 0 100rem $color-layer3 inset !important;
|
|
108
|
-
-webkit-text-fill-color: $font-color3;
|
|
109
|
-
}
|
|
110
|
-
&[ type="radio"], &[ type="checkbox"], &[ type="file"] {
|
|
111
|
-
opacity: 0;
|
|
112
|
-
width: 0;
|
|
113
|
-
height: 0;
|
|
114
|
-
overflow: hidden;
|
|
115
|
-
position: absolute;
|
|
116
|
-
appearance: none;
|
|
78
|
+
outline: none;
|
|
79
|
+
-webkit-appearance: none;
|
|
80
|
+
-webkit-tap-highlight-color: rgba(#000, 0);
|
|
81
|
+
touch-action: manipulation;
|
|
117
82
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
&[ type="text"], &[ type="number"] {
|
|
121
|
-
width: 100%;
|
|
83
|
+
button, a, label {
|
|
84
|
+
cursor: pointer;
|
|
122
85
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
-webkit-appearance: none;
|
|
127
|
-
}
|
|
86
|
+
svg {
|
|
87
|
+
vertical-align: top;
|
|
88
|
+
object-fit: cover;
|
|
128
89
|
}
|
|
129
|
-
}
|
|
130
|
-
textarea {
|
|
131
|
-
display: block;
|
|
132
|
-
width: 100%;
|
|
133
|
-
min-height: $unit4;
|
|
134
|
-
}
|
|
135
|
-
a, label, button, canvas {
|
|
136
|
-
vertical-align: bottom;
|
|
137
|
-
}
|
|
138
|
-
svg {
|
|
139
|
-
vertical-align: top;
|
|
140
|
-
object-fit: cover;
|
|
141
|
-
height: 100%;
|
|
142
|
-
}
|
|
143
|
-
img {
|
|
144
|
-
user-drag: none;
|
|
145
|
-
-webkit-user-drag: none;
|
|
146
|
-
-moz-user-select: none;
|
|
147
|
-
}
|
|
148
|
-
img, video, iframe {
|
|
149
|
-
vertical-align: top;
|
|
150
|
-
object-fit: cover;
|
|
151
|
-
width: 100%;
|
|
152
|
-
height: 100%;
|
|
153
|
-
border-radius: inherit;
|
|
154
90
|
}
|
package/src/atoms/FAI/parts.tsx
CHANGED
|
@@ -63,19 +63,21 @@ const FAIComps: React.FC<amotify.atoms.FAI.FAIParams> = ( params ) => {
|
|
|
63
63
|
} = params;
|
|
64
64
|
|
|
65
65
|
return <Box
|
|
66
|
-
|
|
67
|
-
horizontalAlign='center'
|
|
66
|
+
flexCenter
|
|
68
67
|
{ ...others }
|
|
69
68
|
freeCSS={ {
|
|
70
69
|
display: 'inline-flex',
|
|
71
70
|
...others.freeCSS
|
|
72
71
|
} }
|
|
73
72
|
>
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
<Box freeCSS={ { aspectRatio: 1 } }>
|
|
74
|
+
<FontAwesomeIcon
|
|
75
|
+
icon={ icon }
|
|
76
|
+
fixedWidth
|
|
77
|
+
size='sm'
|
|
78
|
+
{ ...iconParams }
|
|
79
|
+
/>
|
|
80
|
+
</Box>
|
|
79
81
|
</Box>;
|
|
80
82
|
}
|
|
81
83
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use '@props' as *;
|
|
2
|
-
|
|
3
2
|
.Size_ {
|
|
4
3
|
&S {
|
|
5
4
|
width: $unit2;
|
|
@@ -27,15 +26,17 @@
|
|
|
27
26
|
font-size: $unit4;
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
|
|
31
29
|
.Icon {
|
|
32
|
-
|
|
30
|
+
svg {
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
33
|
}
|
|
34
34
|
.Title {
|
|
35
35
|
width: auto;
|
|
36
|
+
svg {
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
40
|
.ComunIcon {
|
|
40
41
|
path {
|
|
41
42
|
filter: drop-shadow($shadow4);
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
@use '@props' as *;
|
|
2
2
|
@use'@styleSet' as *;
|
|
3
|
-
|
|
4
3
|
.Img {
|
|
4
|
+
user-drag: none;
|
|
5
|
+
-webkit-user-drag: none;
|
|
6
|
+
-moz-user-select: none;
|
|
7
|
+
vertical-align: top;
|
|
8
|
+
object-fit: cover;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
border-radius: inherit;
|
|
5
12
|
&.ShowExpand_true {
|
|
6
13
|
transition: $animation-time-middle;
|
|
7
14
|
&:hover {
|
|
@@ -28,14 +35,12 @@
|
|
|
28
35
|
width: 40%;
|
|
29
36
|
background: linear-gradient(to right,
|
|
30
37
|
transparent,
|
|
31
|
-
$color-layer5
|
|
32
|
-
);
|
|
38
|
+
$color-layer5 );
|
|
33
39
|
animation: 1.5s PlaceholderEffect linear infinite;
|
|
34
40
|
&.Color_white {
|
|
35
41
|
background: linear-gradient(to right,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
);
|
|
42
|
+
transparent,
|
|
43
|
+
$color-layer3 );
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -57,66 +57,79 @@ const Styles = {
|
|
|
57
57
|
size: amotify.fn.Buttons.Sizes,
|
|
58
58
|
color: amotify.fn.Buttons.Colors
|
|
59
59
|
) => {
|
|
60
|
-
let styles: amotifyUniStyleParams = {
|
|
60
|
+
let styles: amotifyUniStyleParams = {
|
|
61
|
+
display: 'inlineBlock',
|
|
62
|
+
fontSize: 'inherit',
|
|
63
|
+
fontWeight: 'inherit',
|
|
64
|
+
fontColor: 'inherit',
|
|
65
|
+
border: 'unset'
|
|
66
|
+
}
|
|
61
67
|
|
|
62
68
|
if ( tone == 'Plain' ) return styles;
|
|
63
69
|
if ( tone == 'Link' ) {
|
|
64
70
|
styles.fontColor = 'theme';
|
|
65
71
|
styles.textAlign = 'left';
|
|
72
|
+
styles.backgroundColor = 'trans';
|
|
66
73
|
} else if ( tone == 'Normal' ) {
|
|
67
74
|
styles = {
|
|
75
|
+
...styles,
|
|
68
76
|
backgroundColor: 'trans'
|
|
69
|
-
}
|
|
77
|
+
};
|
|
70
78
|
} else if ( tone == 'Border' ) {
|
|
71
79
|
styles = {
|
|
80
|
+
...styles,
|
|
72
81
|
backgroundColor: '1.layer.base',
|
|
73
82
|
border: '2.normal',
|
|
83
|
+
borderStyle: 'solid',
|
|
74
84
|
boxShadow: 0,
|
|
75
|
-
}
|
|
85
|
+
};
|
|
76
86
|
} else if ( tone == 'Prime' ) {
|
|
77
87
|
styles = {
|
|
88
|
+
...styles,
|
|
78
89
|
isBoldFont: true,
|
|
79
90
|
fontColor: 'white',
|
|
80
91
|
backgroundColor: color as any,
|
|
81
92
|
boxShadow: 1,
|
|
82
93
|
ssEffectsOnActive: [ 'shrink','ripple.white' ]
|
|
83
|
-
}
|
|
84
|
-
|
|
94
|
+
};
|
|
85
95
|
if ( color == 'white' ) {
|
|
86
96
|
styles = {
|
|
87
97
|
...styles,
|
|
88
98
|
fontColor: 'theme',
|
|
89
99
|
ssEffectsOnActive: [ 'shrink','ripple.cloud' ]
|
|
90
|
-
}
|
|
100
|
+
};
|
|
91
101
|
}
|
|
92
102
|
} else if ( tone == 'Sub' ) {
|
|
93
103
|
styles = {
|
|
104
|
+
...styles,
|
|
94
105
|
fontColor: color as any,
|
|
95
106
|
ssEffectsOnActive: 'shrink'
|
|
96
|
-
}
|
|
107
|
+
};
|
|
97
108
|
} else if ( tone == 'Clear' ) {
|
|
98
109
|
styles = {
|
|
110
|
+
...styles,
|
|
99
111
|
fontColor: color as any,
|
|
100
112
|
backgroundColor: 'trans',
|
|
101
|
-
}
|
|
113
|
+
};
|
|
102
114
|
} else if ( tone == 'FillToBorder' ) {
|
|
103
115
|
styles = {
|
|
116
|
+
...styles,
|
|
104
117
|
fontColor: 'white',
|
|
105
118
|
boxShadow: 1,
|
|
106
119
|
borderWidth: 2,
|
|
107
|
-
borderStyle: 'solid',
|
|
108
120
|
borderColor: color as any,
|
|
109
121
|
backgroundColor: color as any,
|
|
110
|
-
}
|
|
122
|
+
};
|
|
111
123
|
} else if ( tone == 'BorderToFill' ) {
|
|
112
124
|
styles = {
|
|
125
|
+
...styles,
|
|
113
126
|
fontColor: color as any,
|
|
114
127
|
boxShadow: 1,
|
|
128
|
+
border: '2.normal',
|
|
115
129
|
borderWidth: 2,
|
|
116
|
-
borderStyle: 'solid',
|
|
117
130
|
borderColor: color as any,
|
|
118
131
|
backgroundColor: 'trans'
|
|
119
|
-
}
|
|
132
|
+
};
|
|
120
133
|
}
|
|
121
134
|
|
|
122
135
|
if ( tone != 'Link' ) {
|
|
@@ -173,14 +186,10 @@ const SeedWrapper = ( params: SeedWrapperInput ) => {
|
|
|
173
186
|
style[ 'isLocked_' + isLocked ],
|
|
174
187
|
style[ 'Tone_' + tone ],
|
|
175
188
|
style[ 'Color_' + color ],
|
|
189
|
+
style[ 'Tone_' + tone + '_Color_' + color ],
|
|
176
190
|
].join( ' ' );
|
|
177
191
|
|
|
178
|
-
if ( [ 'Link','Plain' ].includes( Params.tone ) ) {
|
|
179
|
-
Params.className = [
|
|
180
|
-
Params.className,
|
|
181
|
-
style.uae_blur
|
|
182
|
-
].join( ' ' );
|
|
183
|
-
} else {
|
|
192
|
+
if ( ![ 'Link','Plain' ].includes( Params.tone ) ) {
|
|
184
193
|
Params.className = [
|
|
185
194
|
Params.className,
|
|
186
195
|
style.uae_remark
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@use '@props' as *;
|
|
2
2
|
@use'@styleSet' as *;
|
|
3
|
-
|
|
4
3
|
.Wrap {
|
|
4
|
+
text-decoration: none;
|
|
5
|
+
vertical-align: bottom;
|
|
5
6
|
position: relative;
|
|
6
7
|
@include DisableduserSelect();
|
|
7
8
|
> * {
|
|
@@ -17,20 +18,17 @@
|
|
|
17
18
|
background-color: $color-layer4 !important;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
box-shadow: 0 0 0 transparent inset, $shadow3;
|
|
27
|
-
}
|
|
21
|
+
.uae_remark {
|
|
22
|
+
&:active {
|
|
23
|
+
box-shadow: $shadow2 inset, 0 0 0 transparent !important;
|
|
24
|
+
}
|
|
25
|
+
&:focus {
|
|
26
|
+
box-shadow: 0 0 0 transparent inset, $shadow3;
|
|
28
27
|
}
|
|
29
|
-
&blur {}
|
|
30
28
|
}
|
|
31
29
|
.Tone_ {
|
|
32
|
-
&
|
|
33
|
-
|
|
30
|
+
&Sub_, &Clear_ {
|
|
31
|
+
&Color_ {
|
|
34
32
|
&theme {
|
|
35
33
|
background-color: $color-theme-opacity-few;
|
|
36
34
|
}
|
|
@@ -70,8 +68,8 @@
|
|
|
70
68
|
text-decoration: underline !important;
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
|
-
&
|
|
74
|
-
|
|
71
|
+
&Normal_ {
|
|
72
|
+
&Color_ {
|
|
75
73
|
&plain {
|
|
76
74
|
background-color: $color-layer3;
|
|
77
75
|
color: $font-color2;
|
|
@@ -94,14 +92,14 @@
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
|
-
&
|
|
95
|
+
&Border_ {
|
|
98
96
|
background-color: $color-cloud;
|
|
99
97
|
}
|
|
100
|
-
&
|
|
98
|
+
&Prime_ {
|
|
101
99
|
opacity: .85;
|
|
102
100
|
}
|
|
103
|
-
&
|
|
104
|
-
|
|
101
|
+
&Sub_, &Clear_ {
|
|
102
|
+
&Color_ {
|
|
105
103
|
&theme {
|
|
106
104
|
background-color: $color-theme-opacity-low;
|
|
107
105
|
color: $color-theme;
|
|
@@ -130,9 +128,9 @@
|
|
|
130
128
|
}
|
|
131
129
|
}
|
|
132
130
|
}
|
|
133
|
-
&
|
|
131
|
+
&FillToBorder_ {
|
|
134
132
|
background-color: $color-layer1;
|
|
135
|
-
|
|
133
|
+
&Color_ {
|
|
136
134
|
&theme {
|
|
137
135
|
color: $color-theme;
|
|
138
136
|
}
|
|
@@ -154,9 +152,9 @@
|
|
|
154
152
|
}
|
|
155
153
|
}
|
|
156
154
|
}
|
|
157
|
-
&
|
|
155
|
+
&BorderToFill_ {
|
|
158
156
|
color: white;
|
|
159
|
-
|
|
157
|
+
&Color_ {
|
|
160
158
|
&theme {
|
|
161
159
|
background-color: $color-theme;
|
|
162
160
|
}
|
|
@@ -259,11 +259,9 @@ const FileList: React.FC<{
|
|
|
259
259
|
icon={ faCloudArrowUp }
|
|
260
260
|
className={ style.Icon }
|
|
261
261
|
fontColor={ 'theme' }
|
|
262
|
+
fontSize='4.thirdTitle'
|
|
262
263
|
backgroundColor={ 'tcOpLow' }
|
|
263
|
-
|
|
264
|
-
unitWidth={ 4 }
|
|
265
|
-
unitHeight={ 4 }
|
|
266
|
-
isRounded
|
|
264
|
+
ssSphere={ 4 }
|
|
267
265
|
/>
|
|
268
266
|
</Box>
|
|
269
267
|
<Box>
|
|
@@ -162,6 +162,8 @@ export const SwitchInput: React.FC<amotify.fn.Input.Switch.PlainParams> = ( para
|
|
|
162
162
|
>
|
|
163
163
|
{ icon ? <Box
|
|
164
164
|
transition='middle'
|
|
165
|
+
ssSquare={ 2 }
|
|
166
|
+
flexCenter
|
|
165
167
|
fontColor={ appearance == 'applely' && isChecked ? color : 'white' }
|
|
166
168
|
>
|
|
167
169
|
{ icon }
|