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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "UI Component for React",
5
5
  "main": "dist/launch.js",
6
6
  "types": "dist/@types.d.ts",
@@ -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.bold'
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.bold'
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.bold'
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.bold'
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: lighter;
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 {
@@ -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
- font-family:
59
- -apple-system,
60
- BlinkMacSystemFont,
61
- Segoe UI,
62
- Helvetica,
63
- Arial,
64
- Noto Sans JP,
65
- sans-serif,
66
- "Apple Color Emoji",
67
- "Segoe UI Emoji";
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.isBoldFont = true;
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
- isBoldFont: true,
90
+ isSemiBoldFont: true,
91
91
  fontColor: 'white',
92
92
  backgroundColor: color as any,
93
93
  boxShadow: 1,
@@ -827,7 +827,7 @@ const Comps: {
827
827
  <Box
828
828
  flexSizing='none'
829
829
  fontSize='4.thirdTitle'
830
- isBoldFont
830
+ isSemiBoldFont
831
831
  >
832
832
  フィルター
833
833
  </Box>
@@ -177,7 +177,7 @@ const Selector = ( params: {
177
177
  if ( isSelected || isFocused ) {
178
178
  styles = {
179
179
  fontColor: 'theme',
180
- isBoldFont: true,
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
- isBoldFont
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
- isBoldFont
268
+ isSemiBoldFont
269
269
  />
270
270
  <Box
271
- isBoldFont
271
+ isSemiBoldFont
272
272
  fontColor={ '4.thin' }
273
273
  fontSize={ '0.xs' }
274
274
  >
@@ -227,7 +227,7 @@ const Core: React.FC<CoreParams> = ( params ) => {
227
227
  style[ 'Tone_' + appearance ]
228
228
  ].join( ' ' ) }
229
229
  cellCheckedStyles={ {
230
- isBoldFont: true,
230
+ isSemiBoldFont: true,
231
231
  ...cellCheckedStyles,
232
232
  } }
233
233
  cellCheckedClassName={ [
@@ -355,7 +355,7 @@ const Comps = {
355
355
  <Box
356
356
  flexCenter
357
357
  fontSize='3.paragraph'
358
- isBoldFont
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
- isBoldFont: true
963
+ isSemiBoldFont: true
964
964
  }
965
965
 
966
966
  return <Column
@@ -720,7 +720,7 @@ const DefaultStyles = {
720
720
  gap: '1/2',
721
721
  ...params,
722
722
  cellStyles: {
723
- isBoldFont: true,
723
+ isSemiBoldFont: true,
724
724
  ...params.cellStyles,
725
725
  },
726
726
  cellCheckedStyles: {
@@ -50,7 +50,7 @@ export const PageNotFound: React.FC<{}> = () => {
50
50
  <Text.Normal
51
51
  textAlign='left'
52
52
  ssCardBox='cloud'
53
- isBoldFont
53
+ isSemiBoldFont
54
54
  padding={ 1 }
55
55
  >
56
56
  ・リンクが正しいか
@@ -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
- isBoldFont
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
- isBoldFont
258
+ isSemiBoldFont
259
259
  padding={ [ 0,1 ] }
260
260
  { ...params }
261
261
  /> ),
@@ -66,7 +66,7 @@ export const Corner = () => {
66
66
  <Box
67
67
  fontColor='white'
68
68
  fontSize='0.xs'
69
- isBoldFont
69
+ isSemiBoldFont
70
70
  >
71
71
  Loading
72
72
  </Box>
@@ -350,8 +350,8 @@ const Components = {
350
350
  flexWrap={ false }
351
351
  horizontalAlign='center'
352
352
  >
353
- { DisplayLabel }
354
353
  { OrderButton }
354
+ { DisplayLabel }
355
355
  </Flex>
356
356
  </Flex>
357
357
  </Comps.TH> );
@@ -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: '3.bold',
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,