amotify 0.0.13 → 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.
Files changed (66) hide show
  1. package/@types/amot.tsx +48 -63
  2. package/@types/fn.tsx +10 -16
  3. package/@types/state.tsx +2 -2
  4. package/dist/amotify.js +1 -1
  5. package/dist/amotify.min.css +12 -13
  6. package/dist/coreVender.js +14 -0
  7. package/package.json +27 -22
  8. package/src/@atoms.tsx +4 -2
  9. package/src/@global.tsx +5 -0
  10. package/src/@jsminAmotifyExtension/fetch.tsx +2 -0
  11. package/src/@jsminAmotifyExtension/variables.tsx +4 -0
  12. package/src/@organisms.tsx +1 -5
  13. package/src/@styles/UniStyling.scss +6 -0
  14. package/src/@styles/init.scss +42 -106
  15. package/src/@variables.tsx +70 -0
  16. package/src/atoms/FAI/parts.tsx +136 -0
  17. package/src/atoms/Logo/style.module.scss +6 -5
  18. package/src/atoms/Various/style.module.scss +11 -6
  19. package/src/config.tsx +31 -5
  20. package/src/functions/Button/_.tsx +27 -19
  21. package/src/functions/Button/style.module.scss +20 -22
  22. package/src/functions/Cropper/parts.tsx +18 -10
  23. package/src/functions/Cropper/style.module.scss +1 -0
  24. package/src/functions/Effects/Ripple.tsx +1 -1
  25. package/src/functions/Input/Chips/Selector.tsx +9 -9
  26. package/src/functions/Input/Chips/_.tsx +10 -3
  27. package/src/functions/Input/DigitCharacters.tsx +13 -15
  28. package/src/functions/Input/File/_.tsx +37 -67
  29. package/src/functions/Input/Hidden.tsx +3 -1
  30. package/src/functions/Input/List/_.tsx +8 -8
  31. package/src/functions/Input/Select/_.tsx +8 -7
  32. package/src/functions/Input/Select/style.module.scss +1 -0
  33. package/src/functions/Input/Slider/_.tsx +5 -5
  34. package/src/functions/Input/Switch/_.tsx +11 -8
  35. package/src/functions/Input/Text.tsx +3 -4
  36. package/src/functions/Input/TextArea.tsx +3 -3
  37. package/src/functions/Input/Time/Picker.tsx +10 -17
  38. package/src/functions/Input/Time/_.tsx +3 -2
  39. package/src/functions/Input/Time/style.module.scss +9 -2
  40. package/src/functions/Input/_.tsx +53 -42
  41. package/src/functions/Input/core.tsx +53 -54
  42. package/src/functions/Input/style.module.scss +66 -8
  43. package/src/functions/Layout/PageNotFound.tsx +2 -4
  44. package/src/functions/Layout/PageRouter.tsx +2 -3
  45. package/src/functions/Layout/RootViewController/parts.tsx +4 -16
  46. package/src/functions/Loader/parts.tsx +3 -1
  47. package/src/functions/Loader/style.module.scss +2 -1
  48. package/src/functions/Sheet/parts.tsx +45 -42
  49. package/src/functions/Sheet/style.module.scss +18 -25
  50. package/src/functions/SnackBar/parts.tsx +5 -3
  51. package/src/functions/SnackBar/style.module.scss +1 -1
  52. package/src/functions/Table/Data/parts.tsx +18 -12
  53. package/src/functions/Table/Drag/parts.tsx +7 -9
  54. package/src/functions/Table/_.tsx +2 -2
  55. package/src/global/LaunchReactApplication.tsx +17 -5
  56. package/src/launch.tsx +12 -5
  57. package/src/molecules/Accordion/parts.tsx +4 -1
  58. package/src/molecules/LinkifyText/parts.tsx +2 -3
  59. package/src/preload.tsx +19 -30
  60. package/tsconfig.json +19 -8
  61. package/webpack.config.js +16 -5
  62. package/src/atoms/FAIcon/parts.tsx +0 -118
  63. package/src/atoms/FAIcon/style.module.scss +0 -8
  64. package/src/organisms/DisplayStyleInput/_.tsx +0 -18
  65. package/src/organisms/DisplayStyleInput/darkmode.tsx +0 -107
  66. package/src/organisms/DisplayStyleInput/themeColor.tsx +0 -205
@@ -6,7 +6,6 @@ import {
6
6
 
7
7
  import style from './style.module.scss';
8
8
 
9
-
10
9
  const Styles = {
11
10
  Size: (
12
11
  seed: amotify.fn.Buttons.Seeds,
@@ -58,66 +57,79 @@ const Styles = {
58
57
  size: amotify.fn.Buttons.Sizes,
59
58
  color: amotify.fn.Buttons.Colors
60
59
  ) => {
61
- let styles: amotifyUniStyleParams = {}
60
+ let styles: amotifyUniStyleParams = {
61
+ display: 'inlineBlock',
62
+ fontSize: 'inherit',
63
+ fontWeight: 'inherit',
64
+ fontColor: 'inherit',
65
+ border: 'unset'
66
+ }
62
67
 
63
68
  if ( tone == 'Plain' ) return styles;
64
69
  if ( tone == 'Link' ) {
65
70
  styles.fontColor = 'theme';
66
71
  styles.textAlign = 'left';
72
+ styles.backgroundColor = 'trans';
67
73
  } else if ( tone == 'Normal' ) {
68
74
  styles = {
75
+ ...styles,
69
76
  backgroundColor: 'trans'
70
- }
77
+ };
71
78
  } else if ( tone == 'Border' ) {
72
79
  styles = {
80
+ ...styles,
73
81
  backgroundColor: '1.layer.base',
74
82
  border: '2.normal',
83
+ borderStyle: 'solid',
75
84
  boxShadow: 0,
76
- }
85
+ };
77
86
  } else if ( tone == 'Prime' ) {
78
87
  styles = {
88
+ ...styles,
79
89
  isBoldFont: true,
80
90
  fontColor: 'white',
81
91
  backgroundColor: color as any,
82
92
  boxShadow: 1,
83
93
  ssEffectsOnActive: [ 'shrink','ripple.white' ]
84
- }
85
-
94
+ };
86
95
  if ( color == 'white' ) {
87
96
  styles = {
88
97
  ...styles,
89
98
  fontColor: 'theme',
90
99
  ssEffectsOnActive: [ 'shrink','ripple.cloud' ]
91
- }
100
+ };
92
101
  }
93
102
  } else if ( tone == 'Sub' ) {
94
103
  styles = {
104
+ ...styles,
95
105
  fontColor: color as any,
96
106
  ssEffectsOnActive: 'shrink'
97
- }
107
+ };
98
108
  } else if ( tone == 'Clear' ) {
99
109
  styles = {
110
+ ...styles,
100
111
  fontColor: color as any,
101
112
  backgroundColor: 'trans',
102
- }
113
+ };
103
114
  } else if ( tone == 'FillToBorder' ) {
104
115
  styles = {
116
+ ...styles,
105
117
  fontColor: 'white',
106
118
  boxShadow: 1,
107
119
  borderWidth: 2,
108
- borderStyle: 'solid',
109
120
  borderColor: color as any,
110
121
  backgroundColor: color as any,
111
- }
122
+ };
112
123
  } else if ( tone == 'BorderToFill' ) {
113
124
  styles = {
125
+ ...styles,
114
126
  fontColor: color as any,
115
127
  boxShadow: 1,
128
+ border: '2.normal',
116
129
  borderWidth: 2,
117
- borderStyle: 'solid',
118
130
  borderColor: color as any,
119
131
  backgroundColor: 'trans'
120
- }
132
+ };
121
133
  }
122
134
 
123
135
  if ( tone != 'Link' ) {
@@ -174,14 +186,10 @@ const SeedWrapper = ( params: SeedWrapperInput ) => {
174
186
  style[ 'isLocked_' + isLocked ],
175
187
  style[ 'Tone_' + tone ],
176
188
  style[ 'Color_' + color ],
189
+ style[ 'Tone_' + tone + '_Color_' + color ],
177
190
  ].join( ' ' );
178
191
 
179
- if ( [ 'Link','Plain' ].includes( Params.tone ) ) {
180
- Params.className = [
181
- Params.className,
182
- style.uae_blur
183
- ].join( ' ' );
184
- } else {
192
+ if ( ![ 'Link','Plain' ].includes( Params.tone ) ) {
185
193
  Params.className = [
186
194
  Params.className,
187
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
- .uae_ {
21
- &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;
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
- &Sub, &Clear {
33
- &.Color_ {
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
- &Normal {
74
- &.Color_ {
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
- &Border {
95
+ &Border_ {
98
96
  background-color: $color-cloud;
99
97
  }
100
- &Prime {
98
+ &Prime_ {
101
99
  opacity: .85;
102
100
  }
103
- &Sub, &Clear {
104
- &.Color_ {
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
- &FillToBorder {
131
+ &FillToBorder_ {
134
132
  background-color: $color-layer1;
135
- &.Color_ {
133
+ &Color_ {
136
134
  &theme {
137
135
  color: $color-theme;
138
136
  }
@@ -154,9 +152,9 @@
154
152
  }
155
153
  }
156
154
  }
157
- &BorderToFill {
155
+ &BorderToFill_ {
158
156
  color: white;
159
- &.Color_ {
157
+ &Color_ {
160
158
  &theme {
161
159
  background-color: $color-theme;
162
160
  }
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  Box,
7
7
  Flex,
8
- FAIcon
8
+ FAI
9
9
  } from '@atoms';
10
10
  import {
11
11
  Column,
@@ -20,6 +20,11 @@ import {
20
20
  Loader
21
21
  } from '@fn';
22
22
 
23
+ import { faPalette } from '@fortawesome/pro-solid-svg-icons/faPalette';
24
+ import { faBarsStaggered } from '@fortawesome/pro-solid-svg-icons/faBarsStaggered';
25
+ import { faRotateLeft } from '@fortawesome/pro-solid-svg-icons/faRotateLeft';
26
+ import { faRotateRight } from '@fortawesome/pro-solid-svg-icons/faRotateRight';
27
+
23
28
  import style from './style.module.scss';
24
29
 
25
30
  type CoreProps = {
@@ -906,8 +911,9 @@ const Comps: {
906
911
  <>
907
912
  <Column gap={ '1/3' } >
908
913
  <Box>
909
- <FAIcon.Rotate
914
+ <FAI.Rotate
910
915
  fontSize='3.paragraph'
916
+ fontColor='4.thin'
911
917
  /> Rotate
912
918
  </Box>
913
919
  <Row.Separate
@@ -921,22 +927,22 @@ const Comps: {
921
927
  params.set_rotate( next );
922
928
  } }
923
929
  >
924
- <FAIcon.RotateLeft /> 左に回転
930
+ <FAI icon={ faRotateLeft } /> 左に回転
925
931
  </Buttons.Button.Border.R>
926
932
  <Buttons.Button.Border.R
927
933
  onClick={ () => {
928
934
  params.set_rotate( ( params.val_rotate + 90 ) % 360 );
929
935
  } }
930
936
  >
931
- 右に回転 <FAIcon.RotateRight />
937
+ 右に回転 <FAI icon={ faRotateRight } />
932
938
  </Buttons.Button.Border.R>
933
939
  </Row.Separate>
934
940
  </Column>
935
941
  <Column gap={ '1/3' } >
936
942
  <Box>
937
- <FAIcon
943
+ <FAI.Search
938
944
  fontSize='3.paragraph'
939
- d='magnifying-glass-plus'
945
+ fontColor='4.thin'
940
946
  /> Zoom
941
947
  </Box>
942
948
  <Box paddingLeft={ 2 }>
@@ -961,9 +967,10 @@ const Comps: {
961
967
  </Column>
962
968
  <Column gap={ '1/3' } >
963
969
  <Box>
964
- <FAIcon
970
+ <FAI
971
+ icon={ faPalette }
965
972
  fontSize='3.paragraph'
966
- d='palette'
973
+ fontColor='4.thin'
967
974
  /> Gray Scale
968
975
  </Box>
969
976
  <Box paddingLeft={ 2 }>
@@ -984,9 +991,10 @@ const Comps: {
984
991
  </Column>
985
992
  <Column gap={ '1/3' }>
986
993
  <Box>
987
- <FAIcon
994
+ <FAI
995
+ icon={ faBarsStaggered }
988
996
  fontSize='3.paragraph'
989
- d='bars-staggered'
997
+ fontColor='4.thin'
990
998
  /> Tone
991
999
  </Box>
992
1000
  <Box paddingLeft={ 2 }>
@@ -1,5 +1,6 @@
1
1
  @use '@props' as *;
2
2
  .Wrap {
3
+ vertical-align: bottom;
3
4
  &.Use_ {
4
5
  &profile {
5
6
  max-width: calc($unit1 * 38);
@@ -1,7 +1,7 @@
1
1
  import style from './style.module.scss';
2
2
 
3
3
  type InfoProps = {
4
- RippleElement: Jsmin.Method
4
+ RippleElement: Jsmin.Methods
5
5
  startedAt: number
6
6
  size: number
7
7
  }
@@ -4,8 +4,7 @@ import {
4
4
  } from '@global';
5
5
  import {
6
6
  Box,
7
- Flex,
8
- FAIcon,
7
+ FAI,
9
8
  Span
10
9
  } from '@atoms';
11
10
  import {
@@ -20,6 +19,8 @@ import {
20
19
  Sheet
21
20
  } from '@fn';
22
21
 
22
+ import { faWindowMinimize } from '@fortawesome/pro-solid-svg-icons/faWindowMinimize';
23
+
23
24
  import style from './style.module.scss';
24
25
 
25
26
  const Selector = ( params: {
@@ -196,6 +197,7 @@ const Selector = ( params: {
196
197
  }
197
198
 
198
199
  return <Buttons.Button.Clear.R
200
+ key={ index }
199
201
  color='cloud'
200
202
  padding={ '1/3' }
201
203
  tabIndex={ -1 }
@@ -256,7 +258,7 @@ const Selector = ( params: {
256
258
  fontSize={ '1.mini' }
257
259
  fontColor='3.blur'
258
260
  >
259
- <FAIcon.Search />
261
+ <FAI.Search />
260
262
  </Input.Comps.LeftIcon> }
261
263
  onKeyDown={ ( event ) => {
262
264
  let {
@@ -312,9 +314,7 @@ const Selector = ( params: {
312
314
  Sheet.close( params.selectorID! );
313
315
  } }
314
316
  >
315
- <FAIcon
316
- d='window-minimize'
317
- />
317
+ <FAI icon={ faWindowMinimize } />
318
318
  </Buttons.Button.Border.S>
319
319
  </Row.Separate>
320
320
  <Row.Separate>
@@ -386,9 +386,9 @@ export const ChipsInputFNs: amotify.fn.Input.Chips.FNs = {
386
386
 
387
387
  SelectorCellComponent = SelectorCellComponent || ( ( params ) => {
388
388
  return <Row.Left>
389
- <FAIcon.CheckCircle
390
- isSolidIcon={ params.isSelected }
391
- isRegularIcon={ !params.isSelected }
389
+ <FAI.CheckCircle
390
+ // isSolidIcon={ params.isSelected }
391
+ // isRegularIcon={ !params.isSelected }
392
392
  fontColor={ params.isSelected ? 'theme' : '6.clear' }
393
393
  />
394
394
  { params.label }
@@ -2,7 +2,7 @@ import {
2
2
  React
3
3
  } from '@global';
4
4
  import {
5
- FAIcon
5
+ FAI
6
6
  } from '@atoms';
7
7
  import {
8
8
  Column,
@@ -85,7 +85,7 @@ const DataWrapping: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) =>
85
85
  props.openCallback();
86
86
  } }
87
87
  >
88
- <FAIcon.Plus />
88
+ <FAI.Plus />
89
89
  追加する
90
90
  </Buttons.Button.Sub.R>;
91
91
  } }
@@ -106,9 +106,15 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
106
106
  value = [],
107
107
  limit,
108
108
 
109
+ leftIndicator,rightIndicator,leftIcon,rightIcon,
110
+
109
111
  SelectedCellComponent,
110
112
  AddButtonComponent,
111
113
 
114
+ componentID,
115
+ defaultOptions,
116
+ enableFormSubmit,
117
+
112
118
  ...others
113
119
  } = params;
114
120
  AddButtonComponent = AddButtonComponent!;
@@ -202,6 +208,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
202
208
  }
203
209
  }
204
210
  return <SelectedCellComponent
211
+ key={ JSON.stringify( value ) }
205
212
  value={ value }
206
213
  label={ label }
207
214
  removeCallback={ removeCallback }
@@ -214,7 +221,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
214
221
  removeCallback();
215
222
  } }
216
223
  >
217
- <FAIcon.Times />
224
+ <FAI.Times />
218
225
  </Buttons.Button.Sub.S> }
219
226
  openCallback={ () => {
220
227
  OpenSelector();
@@ -77,7 +77,7 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
77
77
  className = '',
78
78
  digits,
79
79
  numericOnly = false,
80
- enable_form_submit,
80
+ enableFormSubmit,
81
81
 
82
82
  checkValidationAtFirst,
83
83
  onChange,onKeyDown,
@@ -87,7 +87,7 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
87
87
  value = '',
88
88
 
89
89
  override,
90
- statusID,
90
+
91
91
  componentID,
92
92
  listStyles,
93
93
  ...others
@@ -127,27 +127,24 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
127
127
 
128
128
  let Styles: React.CSSProperties = {}
129
129
 
130
+ let ClassName = className;
131
+
130
132
  if ( params.combineInput ) {
131
- if ( index == 0 ) {
132
- Styles = {
133
- borderTopLeftRadius: 'inherit',
134
- borderBottomLeftRadius: 'inherit'
135
- }
136
- } else if ( index == digits - 1 ) {
137
- Styles = {
138
- borderTopRightRadius: 'inherit',
139
- borderBottomRightRadius: 'inherit'
140
- }
141
- }
133
+ ClassName = [
134
+ className,
135
+ style.DigitCharacterCell,
136
+ style.Combined
137
+ ].join( ' ' );
142
138
  }
143
139
 
144
140
  Digits.push( <input
141
+ key={ index }
145
142
  type={ 'text' }
146
143
  inputMode={ params.inputMode || 'text' }
147
144
  value={ Character }
148
145
  data-form-name={ form }
149
146
  id={ 'Digit-' + index + '-' + val_status.componentID }
150
- className={ className }
147
+ className={ ClassName }
151
148
  style={ {
152
149
  ...params.style,
153
150
  ...Styles
@@ -177,7 +174,7 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
177
174
  let dir = Number( key == 'ArrowRight' ) * 2 - 1;
178
175
  nextFocusIndex = index + dir;
179
176
  } else {
180
- if ( enable_form_submit ) SubmitForm( event );
177
+ if ( enableFormSubmit ) SubmitForm( event );
181
178
 
182
179
  ( () => {
183
180
  let regExp = code.match( /^(Key(.)|Digit(\d)|Numpad(\d))/ );
@@ -206,6 +203,7 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
206
203
  $( '#Digit-' + nextFocusIndex + '-' + val_status.componentID ).focus();
207
204
  }
208
205
  } }
206
+ onChange={ () => { } }
209
207
  /> );
210
208
  }
211
209
 
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  Box,
7
7
  Flex,
8
- FAIcon
8
+ FAI
9
9
  } from '@atoms';
10
10
  import {
11
11
  Column,
@@ -26,6 +26,8 @@ import {
26
26
  } from '../core';
27
27
  import style from './style.module.scss';
28
28
 
29
+ import { faCloudArrowUp } from '@fortawesome/pro-solid-svg-icons/faCloudArrowUp';
30
+
29
31
  function DefaultValidation( props: {
30
32
  value: any
31
33
  params: any
@@ -64,6 +66,9 @@ const FileComponent: React.FC<amotify.fn.Input.Filer.PlainParams> = ( params ) =
64
66
 
65
67
  cellStyles,cellClassName,
66
68
 
69
+ componentID,status_id,
70
+ enableFormSubmit,
71
+
67
72
  ...others
68
73
  } = params;
69
74
 
@@ -250,15 +255,13 @@ const FileList: React.FC<{
250
255
  isRounded
251
256
  className={ style.AddIcon }
252
257
  >
253
- <FAIcon
254
- d={ 'cloud-arrow-up' }
258
+ <FAI
259
+ icon={ faCloudArrowUp }
255
260
  className={ style.Icon }
256
261
  fontColor={ 'theme' }
262
+ fontSize='4.thirdTitle'
257
263
  backgroundColor={ 'tcOpLow' }
258
- padding={ 0 }
259
- unitWidth={ 4 }
260
- unitHeight={ 4 }
261
- isRounded
264
+ ssSphere={ 4 }
262
265
  />
263
266
  </Box>
264
267
  <Box>
@@ -316,70 +319,31 @@ const FileCell: React.FC<{
316
319
  .replace( /\s/,'' )
317
320
  .replace( /(.*)\.(.*)$/,'$1 $2' ).split( ' ' );
318
321
 
319
- let FileType = {
320
- name: '不明',
321
- icon: 'fal file'
322
- }
322
+ let FileName = 'ファイル';
323
323
  if ( type.match( /image/ ) ) {
324
- FileType = {
325
- name: type.replace( /image\//,'' ),
326
- icon: 'image'
327
- }
324
+ FileName = type.replace( /image\//,'' );
328
325
  } else if ( type.match( /pdf/ ) ) {
329
- FileType = {
330
- name: 'PDF',
331
- icon: 'file-pdf'
332
- }
326
+ FileName = 'PDF';
333
327
  } else if ( type.match( /csv/ ) ) {
334
- FileType = {
335
- name: 'CSV',
336
- icon: 'file-csv'
337
- }
328
+ FileName = 'CSV';
338
329
  } else if ( type.match( /spreadsheet/ ) ) {
339
- FileType = {
340
- name: 'SpreadSheet',
341
- icon: 'file-excel'
342
- }
330
+ FileName = 'SpreadSheet';
343
331
  } else if ( type.match( /presentation/ ) ) {
344
- FileType = {
345
- name: 'PowerPoint',
346
- icon: 'file-powerpoint'
347
- }
332
+ FileName = 'PowerPoint';
348
333
  } else if ( type.match( /word/ ) ) {
349
- FileType = {
350
- name: 'Word',
351
- icon: 'file-word'
352
- }
334
+ FileName = 'Word';
353
335
  } else if ( type.match( /zip/ ) ) {
354
- FileType = {
355
- name: 'Zip',
356
- icon: 'file-zipper'
357
- }
336
+ FileName = 'Zip';
358
337
  } else if ( type.match( /powerpoint/ ) ) {
359
- FileType = {
360
- name: 'PowerPoint',
361
- icon: 'file-powerpoint'
362
- }
338
+ FileName = 'PowerPoint';
363
339
  } else if ( type.match( /html/ ) ) {
364
- FileType = {
365
- name: 'HTML',
366
- icon: 'fab html5'
367
- }
340
+ FileName = 'HTML';
368
341
  } else if ( type.match( /js/ ) ) {
369
- FileType = {
370
- name: 'JS',
371
- icon: 'fab js-square'
372
- }
342
+ FileName = 'JavaScript';
373
343
  } else if ( type.match( /css/ ) ) {
374
- FileType = {
375
- name: 'CSS',
376
- icon: 'fab css3-alt'
377
- }
344
+ FileName = 'CSS';
378
345
  } else if ( type.match( /text\/plain/ ) ) {
379
- FileType = {
380
- name: 'テキスト',
381
- icon: 'file-lines'
382
- }
346
+ FileName = 'テキスト';
383
347
  }
384
348
 
385
349
  React.useEffect( () => {
@@ -397,10 +361,9 @@ const FileCell: React.FC<{
397
361
  gap={ 1 }
398
362
  className={ className }
399
363
  >
400
- <FAIcon
364
+ <FAI.File
401
365
  fontSize={ '4.thirdTitle' }
402
- fontColor={ 'theme' }
403
- d={ FileType.icon }
366
+ fontColor={ '4.thin' }
404
367
  />
405
368
  <Box flexSizing={ 0 }>
406
369
  <Box>
@@ -413,13 +376,18 @@ const FileCell: React.FC<{
413
376
  { fileName }
414
377
  { fileNameEdit ?
415
378
  <Buttons.Button.Clear.R
379
+ ssSphere={ 2.5 }
380
+ flexSizing={ 'none' }
381
+ color='cloud'
382
+ fontColor='4.thin'
416
383
  padding={ '1/3' }
417
384
  ssEffectsOnActive={ 'expand' }
418
- children={ <FAIcon d='pen' /> }
419
385
  onClick={ () => {
420
386
  set_edit( true );
421
387
  } }
422
- /> : null
388
+ >
389
+ <FAI.Pen />
390
+ </Buttons.Button.Clear.R> : null
423
391
  }
424
392
  </> : <>
425
393
  <Column
@@ -440,7 +408,7 @@ const FileCell: React.FC<{
440
408
  required
441
409
  id={ FileID }
442
410
  form={ 'form-' + FileID }
443
- enable_form_submit
411
+ enableFormSubmit
444
412
  value={ name }
445
413
  onKeyDown={ ( event ) => {
446
414
  let { key } = event;
@@ -509,11 +477,13 @@ const FileCell: React.FC<{
509
477
  fontSize={ '1.mini' }
510
478
  fontColor={ '4.thin' }
511
479
  flexSizing={ 0 }
512
- children={ FileType.name + 'ファイル / ' + Size + 'B' }
480
+ children={ FileName + 'ファイル / ' + Size + 'B' }
513
481
  />
514
482
  </> : null }
515
483
  </Box>
516
484
  <Buttons.Button.Sub.R
485
+ color='cloud'
486
+ fontColor='4.thin'
517
487
  ssSphere={ 3 }
518
488
  onClick={ () => {
519
489
  let nextFiles = [ ...val_status.dataValue ];
@@ -529,7 +499,7 @@ const FileCell: React.FC<{
529
499
  } )
530
500
  } }
531
501
  >
532
- <FAIcon.Times />
502
+ <FAI.Times />
533
503
  </Buttons.Button.Sub.R>
534
504
  </Flex>
535
505
  );