amotify 0.0.46 → 0.0.48
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 +4 -2
- package/dist/amotify.js +1 -1
- package/dist/amotify.min.css +1 -1
- package/package.json +1 -1
- package/src/@molecules.tsx +4 -4
- package/src/@styles/UniStyling.scss +18 -3
- package/src/@styles/init.scss +12 -19
- package/src/functions/Button/_.tsx +2 -2
- package/src/functions/Cropper/parts.tsx +1 -1
- package/src/functions/Input/Chips/Selector.tsx +2 -2
- package/src/functions/Input/File/_.tsx +2 -2
- package/src/functions/Input/Segmented/_.tsx +1 -1
- package/src/functions/Input/Time/Picker.tsx +2 -2
- package/src/functions/Input/_.tsx +1 -1
- package/src/functions/Layout/PageNotFound.tsx +1 -1
- package/src/functions/Layout/RootViewController/parts.tsx +2 -2
- package/src/functions/Loader/corner.tsx +1 -1
- package/src/functions/Table/Data/parts.tsx +1 -1
- package/src/global/styleConverter.tsx +11 -1
- package/src/preload.tsx +0 -29
package/package.json
CHANGED
package/src/@molecules.tsx
CHANGED
|
@@ -11,22 +11,22 @@ import { LinkifyText } from './molecules/LinkifyText/parts';
|
|
|
11
11
|
const Text = {
|
|
12
12
|
Title: ( params: amotify.atoms.BoxInput ) => ( <Box
|
|
13
13
|
fontSize='6.title'
|
|
14
|
-
fontWeight='3.
|
|
14
|
+
fontWeight='3.semiBold'
|
|
15
15
|
{ ...params }
|
|
16
16
|
/> ),
|
|
17
17
|
SubTitle: ( params: amotify.atoms.BoxInput ) => ( <Box
|
|
18
18
|
fontSize='5.subTitle'
|
|
19
|
-
fontWeight='3.
|
|
19
|
+
fontWeight='3.semiBold'
|
|
20
20
|
{ ...params }
|
|
21
21
|
/> ),
|
|
22
22
|
ThirdTitle: ( params: amotify.atoms.BoxInput ) => ( <Box
|
|
23
23
|
fontSize='4.thirdTitle'
|
|
24
|
-
fontWeight='3.
|
|
24
|
+
fontWeight='3.semiBold'
|
|
25
25
|
{ ...params }
|
|
26
26
|
/> ),
|
|
27
27
|
Paragraph: ( params: amotify.atoms.BoxInput ) => ( <Box
|
|
28
28
|
fontSize='3.paragraph'
|
|
29
|
-
fontWeight='3.
|
|
29
|
+
fontWeight='3.semiBold'
|
|
30
30
|
{ ...params }
|
|
31
31
|
/> ),
|
|
32
32
|
Normal: ( params: amotify.atoms.BoxInput ) => ( <Box
|
|
@@ -160,18 +160,33 @@
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
&wt {
|
|
163
|
+
&0#{ $DS } {
|
|
164
|
+
font-weight: 100; // thin
|
|
165
|
+
}
|
|
163
166
|
&1#{ $DS } {
|
|
164
|
-
font-weight:
|
|
167
|
+
font-weight: 300; // light
|
|
165
168
|
}
|
|
166
169
|
&2#{ $DS } {
|
|
167
|
-
font-weight: normal
|
|
170
|
+
font-weight: 400; // normal
|
|
168
171
|
}
|
|
169
172
|
&3#{ $DS } {
|
|
170
|
-
font-weight: bold
|
|
173
|
+
font-weight: 600; // semi-bold
|
|
174
|
+
}
|
|
175
|
+
&4#{ $DS } {
|
|
176
|
+
font-weight: 700; // bold
|
|
177
|
+
}
|
|
178
|
+
&5#{ $DS } {
|
|
179
|
+
font-weight: 800; // extra-bold
|
|
171
180
|
}
|
|
172
181
|
&inherit#{ $DS } {
|
|
173
182
|
font-weight: inherit;
|
|
174
183
|
}
|
|
184
|
+
&lighter#{ $DS } {
|
|
185
|
+
font-weight: lighter;
|
|
186
|
+
}
|
|
187
|
+
&bolder#{ $DS } {
|
|
188
|
+
font-weight: bolder;
|
|
189
|
+
}
|
|
175
190
|
}
|
|
176
191
|
}
|
|
177
192
|
&bgc {
|
package/src/@styles/init.scss
CHANGED
|
@@ -45,26 +45,19 @@ html {
|
|
|
45
45
|
word-break: normal;
|
|
46
46
|
color: $font-color2;
|
|
47
47
|
font-size: $font-size2;
|
|
48
|
-
font-family:
|
|
49
|
-
Noto Sans,
|
|
50
|
-
Noto Sans JP,
|
|
51
|
-
-apple-system,
|
|
52
|
-
BlinkMacSystemFont,
|
|
53
|
-
Segoe UI,
|
|
54
|
-
Helvetica,
|
|
55
|
-
Arial,
|
|
56
|
-
sans-serif;
|
|
57
48
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
49
|
+
font-family:
|
|
50
|
+
-apple-system,
|
|
51
|
+
BlinkMacSystemFont,
|
|
52
|
+
"Segoe UI",
|
|
53
|
+
"Roboto",
|
|
54
|
+
"Helvetica Neue",
|
|
55
|
+
"Ubuntu",
|
|
56
|
+
"Hiragino Sans",
|
|
57
|
+
"Yu Gothic UI",
|
|
58
|
+
"Meiryo UI",
|
|
59
|
+
"Hiragino Kaku Gothic ProN"
|
|
60
|
+
;
|
|
68
61
|
font-kerning: normal;
|
|
69
62
|
// -webkit-font-smoothing: antialiased;
|
|
70
63
|
caret-color: $color-theme;
|
|
@@ -41,7 +41,7 @@ const Styles = {
|
|
|
41
41
|
} else if ( size == 'L' ) {
|
|
42
42
|
styles.padding = [ 1,3 ];
|
|
43
43
|
styles.fontSize = '3.paragraph';
|
|
44
|
-
styles.
|
|
44
|
+
styles.isSemiBoldFont = true;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
styles = {
|
|
@@ -87,7 +87,7 @@ const Styles = {
|
|
|
87
87
|
} else if ( tone == 'Prime' ) {
|
|
88
88
|
styles = {
|
|
89
89
|
...styles,
|
|
90
|
-
|
|
90
|
+
isSemiBoldFont: true,
|
|
91
91
|
fontColor: 'white',
|
|
92
92
|
backgroundColor: color as any,
|
|
93
93
|
boxShadow: 1,
|
|
@@ -177,7 +177,7 @@ const Selector = ( params: {
|
|
|
177
177
|
if ( isSelected || isFocused ) {
|
|
178
178
|
styles = {
|
|
179
179
|
fontColor: 'theme',
|
|
180
|
-
|
|
180
|
+
isSemiBoldFont: true,
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
if ( isFocused ) {
|
|
@@ -340,7 +340,7 @@ const Selector = ( params: {
|
|
|
340
340
|
<Span
|
|
341
341
|
fontSize='3.paragraph'
|
|
342
342
|
fontColor='theme'
|
|
343
|
-
|
|
343
|
+
isSemiBoldFont
|
|
344
344
|
>
|
|
345
345
|
{ val_selected.length }
|
|
346
346
|
</Span> / { params.limit } 件
|
|
@@ -265,10 +265,10 @@ const FileList: React.FC<{
|
|
|
265
265
|
children={ 'ファイルを選択' + `(${ Left })` }
|
|
266
266
|
fontColor={ 'theme' }
|
|
267
267
|
fontSize={ '2.normal' }
|
|
268
|
-
|
|
268
|
+
isSemiBoldFont
|
|
269
269
|
/>
|
|
270
270
|
<Box
|
|
271
|
-
|
|
271
|
+
isSemiBoldFont
|
|
272
272
|
fontColor={ '4.thin' }
|
|
273
273
|
fontSize={ '0.xs' }
|
|
274
274
|
>
|
|
@@ -355,7 +355,7 @@ const Comps = {
|
|
|
355
355
|
<Box
|
|
356
356
|
flexCenter
|
|
357
357
|
fontSize='3.paragraph'
|
|
358
|
-
|
|
358
|
+
isSemiBoldFont
|
|
359
359
|
>
|
|
360
360
|
{ val_value.hour.zeroEmbed( 2 ) } : { val_value.minutes.zeroEmbed( 2 ) }
|
|
361
361
|
</Box>
|
|
@@ -960,7 +960,7 @@ const Comps = {
|
|
|
960
960
|
let isActiveStyles: amotifyUniStyleParams = {
|
|
961
961
|
backgroundColor: 'cloud',
|
|
962
962
|
fontColor: '2.normal',
|
|
963
|
-
|
|
963
|
+
isSemiBoldFont: true
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
return <Column
|
|
@@ -232,7 +232,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
|
|
|
232
232
|
ssEffectsOnActive='ripple.cloud'
|
|
233
233
|
verticalAlign='center'
|
|
234
234
|
textAlign='left'
|
|
235
|
-
|
|
235
|
+
isSemiBoldFont
|
|
236
236
|
isActive={ isActive }
|
|
237
237
|
isActiveStyles={ {
|
|
238
238
|
fontColor: 'theme',
|
|
@@ -255,7 +255,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
|
|
|
255
255
|
/> ),
|
|
256
256
|
Title: ( params ) => ( <Box
|
|
257
257
|
fontSize='3.paragraph'
|
|
258
|
-
|
|
258
|
+
isSemiBoldFont
|
|
259
259
|
padding={ [ 0,1 ] }
|
|
260
260
|
{ ...params }
|
|
261
261
|
/> ),
|
|
@@ -251,7 +251,9 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
251
251
|
flexCenter,
|
|
252
252
|
flexNewLine,
|
|
253
253
|
|
|
254
|
+
isLightFont,
|
|
254
255
|
isBoldFont,
|
|
256
|
+
isSemiBoldFont,
|
|
255
257
|
isRounded,
|
|
256
258
|
...ReturnParams
|
|
257
259
|
} = params;
|
|
@@ -379,9 +381,17 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
379
381
|
verticalAlign: 'center',
|
|
380
382
|
...ReturnParams
|
|
381
383
|
} );
|
|
384
|
+
!isLightFont || ( ReturnParams = {
|
|
385
|
+
...ReturnParams,
|
|
386
|
+
fontWeight: '1.light',
|
|
387
|
+
} );
|
|
388
|
+
!isSemiBoldFont || ( ReturnParams = {
|
|
389
|
+
...ReturnParams,
|
|
390
|
+
fontWeight: '3.semiBold',
|
|
391
|
+
} );
|
|
382
392
|
!isBoldFont || ( ReturnParams = {
|
|
383
393
|
...ReturnParams,
|
|
384
|
-
fontWeight: '
|
|
394
|
+
fontWeight: '4.bold',
|
|
385
395
|
} );
|
|
386
396
|
!isRounded || ( ReturnParams = {
|
|
387
397
|
...ReturnParams,
|
package/src/preload.tsx
CHANGED
|
@@ -7,35 +7,6 @@ let tags: Jsmin.CreateElement.Args[] = [
|
|
|
7
7
|
attr: {
|
|
8
8
|
name: 'viewport',content: 'width=device-width,initial-scale=1.0,maximum-scale=5.0,minimum-scale=1.0,viewport-fit=cover'
|
|
9
9
|
},
|
|
10
|
-
},{
|
|
11
|
-
tag: 'link',
|
|
12
|
-
parent: document.head,
|
|
13
|
-
attr: {
|
|
14
|
-
href: 'https://fonts.googleapis.com',rel: 'preconnect',async: true
|
|
15
|
-
}
|
|
16
|
-
},{
|
|
17
|
-
tag: 'link',
|
|
18
|
-
parent: document.head,
|
|
19
|
-
attr: {
|
|
20
|
-
href: 'https://fonts.gstatic.com',rel: 'preconnect',async: true
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
tag: 'link',
|
|
25
|
-
parent: document.head,
|
|
26
|
-
attr: {
|
|
27
|
-
href: 'https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap',
|
|
28
|
-
rel: 'stylesheet',
|
|
29
|
-
async: true
|
|
30
|
-
}
|
|
31
|
-
},{
|
|
32
|
-
tag: 'link',
|
|
33
|
-
parent: document.head,
|
|
34
|
-
attr: {
|
|
35
|
-
href: 'https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;400;600&display=swap',
|
|
36
|
-
rel: 'stylesheet',
|
|
37
|
-
async: true
|
|
38
|
-
}
|
|
39
10
|
},{
|
|
40
11
|
tag: 'meta',
|
|
41
12
|
parent: document.head,
|