amotify 0.0.17 → 0.0.19

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 (44) hide show
  1. package/@types/state.tsx +9 -2
  2. package/dist/amotify.js +2 -2
  3. package/dist/amotify.min.css +3 -3
  4. package/dist/coreVender.js +2 -2
  5. package/package.json +2 -2
  6. package/src/atoms/FAI/parts.tsx +49 -49
  7. package/src/atoms/Logo/parts.tsx +14 -14
  8. package/src/atoms/Various/parts.tsx +6 -6
  9. package/src/functions/Button/_.tsx +23 -14
  10. package/src/functions/Button/style.module.scss +34 -60
  11. package/src/functions/Cropper/parts.tsx +119 -121
  12. package/src/functions/Effects/Fade.tsx +4 -4
  13. package/src/functions/Effects/style.module.scss +9 -1
  14. package/src/functions/Input/Chips/Selector.tsx +2 -2
  15. package/src/functions/Input/Chips/_.tsx +4 -4
  16. package/src/functions/Input/DigitCharacters.tsx +2 -2
  17. package/src/functions/Input/File/_.tsx +206 -213
  18. package/src/functions/Input/List/_.tsx +4 -4
  19. package/src/functions/Input/Segmented/_.tsx +12 -12
  20. package/src/functions/Input/Select/_.tsx +6 -7
  21. package/src/functions/Input/Slider/_.tsx +4 -4
  22. package/src/functions/Input/Text.tsx +104 -106
  23. package/src/functions/Input/TextArea.tsx +33 -35
  24. package/src/functions/Input/Time/Picker.tsx +14 -14
  25. package/src/functions/Input/Time/_.tsx +77 -79
  26. package/src/functions/Input/_.tsx +87 -93
  27. package/src/functions/Input/core.tsx +2 -2
  28. package/src/functions/Inputs/text.tsx +6 -8
  29. package/src/functions/Layout/PageNotFound.tsx +2 -2
  30. package/src/functions/Layout/PageViewController/parts.tsx +3 -5
  31. package/src/functions/Layout/Plate.tsx +2 -3
  32. package/src/functions/Layout/RootViewController/parts.tsx +4 -4
  33. package/src/functions/Layout/SwipeView/parts.tsx +4 -4
  34. package/src/functions/Layout/TabBar.tsx +2 -2
  35. package/src/functions/Sheet/parts.tsx +11 -11
  36. package/src/functions/SnackBar/parts.tsx +4 -3
  37. package/src/functions/Table/Data/parts.tsx +35 -37
  38. package/src/functions/Table/Drag/parts.tsx +6 -6
  39. package/src/functions/Table/Normal/parts.tsx +6 -6
  40. package/src/functions/Table/_.tsx +2 -2
  41. package/src/molecules/Accordion/parts.tsx +2 -2
  42. package/src/molecules/LinkifyText/parts.tsx +3 -5
  43. package/src/templates/PlayGround/parts.tsx +2 -2
  44. package/webpack.config.js +0 -6
@@ -765,7 +765,7 @@ const Comps: {
765
765
  }
766
766
  },[ val_grayScale,val_tone,val_rotate ] );
767
767
 
768
- return ( <Sheet.Comps.Body>
768
+ return <Sheet.Comps.Body>
769
769
  <Flex
770
770
  className={ [ style.Wrap,'Use_' + use ].join( ' ' ) }
771
771
  flexWrap={ false }
@@ -883,7 +883,7 @@ const Comps: {
883
883
  </Flex>
884
884
  </Column>
885
885
  </Flex>
886
- </Sheet.Comps.Body> );
886
+ </Sheet.Comps.Body>;
887
887
  },
888
888
  SettingRegion: ( params ) => {
889
889
  let ToneList: amotify.fn.Input.List.OptionParams[] = [];
@@ -907,126 +907,124 @@ const Comps: {
907
907
  } );
908
908
  }
909
909
 
910
- return (
911
- <>
912
- <Column gap={ '1/3' } >
913
- <Box>
914
- <FAI.Rotate
915
- fontSize='3.paragraph'
916
- fontColor='4.thin'
917
- /> Rotate
918
- </Box>
919
- <Row.Separate
920
- flexChilds='even'
921
- paddingLeft={ 2 }
910
+ return <>
911
+ <Column gap={ '1/3' } >
912
+ <Box>
913
+ <FAI.Rotate
914
+ fontSize='3.paragraph'
915
+ fontColor='4.thin'
916
+ /> Rotate
917
+ </Box>
918
+ <Row.Separate
919
+ flexChilds='even'
920
+ paddingLeft={ 2 }
921
+ >
922
+ <Buttons.Button.Border.R
923
+ onClick={ () => {
924
+ let next = params.val_rotate - 90;
925
+ if ( next < 0 ) next += 360;
926
+ params.set_rotate( next );
927
+ } }
922
928
  >
923
- <Buttons.Button.Border.R
924
- onClick={ () => {
925
- let next = params.val_rotate - 90;
926
- if ( next < 0 ) next += 360;
927
- params.set_rotate( next );
928
- } }
929
- >
930
- <FAI icon={ faRotateLeft } /> 左に回転
931
- </Buttons.Button.Border.R>
932
- <Buttons.Button.Border.R
933
- onClick={ () => {
934
- params.set_rotate( ( params.val_rotate + 90 ) % 360 );
935
- } }
936
- >
937
- 右に回転 <FAI icon={ faRotateRight } />
938
- </Buttons.Button.Border.R>
939
- </Row.Separate>
940
- </Column>
941
- <Column gap={ '1/3' } >
942
- <Box>
943
- <FAI.Search
944
- fontSize='3.paragraph'
945
- fontColor='4.thin'
946
- /> Zoom
947
- </Box>
948
- <Box paddingLeft={ 2 }>
949
- <Input.Slider
950
- override='force'
951
- value={ params.val_scale - 100 }
952
- min={ params.DefaultOptions.scale.min - 100 }
953
- max={ params.DefaultOptions.scale.max - 100 }
954
- step={ 25 }
955
- onUpdateValidValue={ ( { eventType,value } ) => {
956
- params.set_scale( value + 100 );
957
- } }
958
- legends={ {
959
- enable: true,
960
- custom: ( value ) => {
961
- let scale = Math.round( 100 + value );
962
- return 'x' + scale / 100;
963
- }
964
- } }
965
- />
966
- </Box>
967
- </Column>
968
- <Column gap={ '1/3' } >
969
- <Box>
970
- <FAI
971
- icon={ faPalette }
972
- fontSize='3.paragraph'
973
- fontColor='4.thin'
974
- /> Gray Scale
975
- </Box>
976
- <Box paddingLeft={ 2 }>
977
- <Input.Slider
978
- value={ params.val_grayScale }
979
- min={ 0 }
980
- max={ 100 }
981
- step={ 25 }
982
- onUpdateValidValue={ ( { value } ) => {
983
- params.set_grayScale( value );
984
- } }
985
- legends={ {
986
- enable: true,
987
- custom: ( value ) => ( value + '%' )
988
- } }
989
- />
990
- </Box>
991
- </Column>
992
- <Column gap={ '1/3' }>
993
- <Box>
994
- <FAI
995
- icon={ faBarsStaggered }
996
- fontSize='3.paragraph'
997
- fontColor='4.thin'
998
- /> Tone
999
- </Box>
1000
- <Box paddingLeft={ 2 }>
1001
- <Input.Radio
1002
- value={ params.val_tone }
1003
- gap={ '1/2' }
1004
- cellStyles={ {
1005
- isRounded: true,
1006
- borderWidth: 2,
1007
- borderColor: '1.thin',
1008
- padding: '1/2',
1009
- paddingRight: 1,
1010
- fontSize: '1.mini',
1011
- gap: '1/3',
1012
- flexSizing: 'auto'
1013
- } }
1014
- options={ [
1015
- {
1016
- value: 0,label: 'なし',
1017
- padding: [ '1/2',1 ],
1018
- flexCenter: true
1019
- },
1020
- ...ToneList
1021
- ] }
1022
- onUpdateValidValue={ ( { value } ) => {
1023
- params.set_tone( value[ 0 ] );
1024
- } }
1025
- />
1026
- </Box>
1027
- </Column>
1028
- </>
1029
- );
929
+ <FAI icon={ faRotateLeft } /> 左に回転
930
+ </Buttons.Button.Border.R>
931
+ <Buttons.Button.Border.R
932
+ onClick={ () => {
933
+ params.set_rotate( ( params.val_rotate + 90 ) % 360 );
934
+ } }
935
+ >
936
+ 右に回転 <FAI icon={ faRotateRight } />
937
+ </Buttons.Button.Border.R>
938
+ </Row.Separate>
939
+ </Column>
940
+ <Column gap={ '1/3' } >
941
+ <Box>
942
+ <FAI.Search
943
+ fontSize='3.paragraph'
944
+ fontColor='4.thin'
945
+ /> Zoom
946
+ </Box>
947
+ <Box paddingLeft={ 2 }>
948
+ <Input.Slider
949
+ override='force'
950
+ value={ params.val_scale - 100 }
951
+ min={ params.DefaultOptions.scale.min - 100 }
952
+ max={ params.DefaultOptions.scale.max - 100 }
953
+ step={ 25 }
954
+ onUpdateValidValue={ ( { eventType,value } ) => {
955
+ params.set_scale( value + 100 );
956
+ } }
957
+ legends={ {
958
+ enable: true,
959
+ custom: ( value ) => {
960
+ let scale = Math.round( 100 + value );
961
+ return 'x' + scale / 100;
962
+ }
963
+ } }
964
+ />
965
+ </Box>
966
+ </Column>
967
+ <Column gap={ '1/3' } >
968
+ <Box>
969
+ <FAI
970
+ icon={ faPalette }
971
+ fontSize='3.paragraph'
972
+ fontColor='4.thin'
973
+ /> Gray Scale
974
+ </Box>
975
+ <Box paddingLeft={ 2 }>
976
+ <Input.Slider
977
+ value={ params.val_grayScale }
978
+ min={ 0 }
979
+ max={ 100 }
980
+ step={ 25 }
981
+ onUpdateValidValue={ ( { value } ) => {
982
+ params.set_grayScale( value );
983
+ } }
984
+ legends={ {
985
+ enable: true,
986
+ custom: ( value ) => ( value + '%' )
987
+ } }
988
+ />
989
+ </Box>
990
+ </Column>
991
+ <Column gap={ '1/3' }>
992
+ <Box>
993
+ <FAI
994
+ icon={ faBarsStaggered }
995
+ fontSize='3.paragraph'
996
+ fontColor='4.thin'
997
+ /> Tone
998
+ </Box>
999
+ <Box paddingLeft={ 2 }>
1000
+ <Input.Radio
1001
+ value={ params.val_tone }
1002
+ gap={ '1/2' }
1003
+ cellStyles={ {
1004
+ isRounded: true,
1005
+ borderWidth: 2,
1006
+ borderColor: '1.thin',
1007
+ padding: '1/2',
1008
+ paddingRight: 1,
1009
+ fontSize: '1.mini',
1010
+ gap: '1/3',
1011
+ flexSizing: 'auto'
1012
+ } }
1013
+ options={ [
1014
+ {
1015
+ value: 0,label: 'なし',
1016
+ padding: [ '1/2',1 ],
1017
+ flexCenter: true
1018
+ },
1019
+ ...ToneList
1020
+ ] }
1021
+ onUpdateValidValue={ ( { value } ) => {
1022
+ params.set_tone( value[ 0 ] );
1023
+ } }
1024
+ />
1025
+ </Box>
1026
+ </Column>
1027
+ </>;
1030
1028
  }
1031
1029
  }
1032
1030
 
@@ -30,14 +30,14 @@ export const FadeEffects: amotify.fn.Effects.Methods = {
30
30
  },animationDelay );
31
31
  },[] );
32
32
 
33
- return ( <Box
33
+ return <Box
34
34
  { ...others }
35
35
  freeCSS={ {
36
36
  ...others.freeCSS,
37
37
  opacity: 0,
38
38
  } }
39
39
  componentID={ val_componentID }
40
- /> );
40
+ />;
41
41
  },
42
42
  FadeUp: ( params ) => {
43
43
  let {
@@ -63,7 +63,7 @@ export const FadeEffects: amotify.fn.Effects.Methods = {
63
63
  },animationDelay );
64
64
  },[] );
65
65
 
66
- return ( <Box
66
+ return <Box
67
67
  paddingTop={ 2 }
68
68
  { ...others }
69
69
  freeCSS={ {
@@ -71,6 +71,6 @@ export const FadeEffects: amotify.fn.Effects.Methods = {
71
71
  opacity: 0,
72
72
  } }
73
73
  componentID={ val_componentID }
74
- /> );
74
+ />;
75
75
  }
76
76
  }
@@ -8,7 +8,7 @@
8
8
  &.Color_ {
9
9
  &white .RippleWrap {}
10
10
  &cloud .RippleWrap .Wave {
11
- background-color: rgba(var(--color-dark-rgb), .4) !important;
11
+ background-color: rgba(var(--color-dark-rgb), .25) !important;
12
12
  }
13
13
  &theme .RippleWrap .Wave {
14
14
  background-color: $color-theme-lighter !important;
@@ -79,5 +79,13 @@
79
79
  transition: $animation-time-short;
80
80
  transform: scale(0.97);
81
81
  }
82
+ &push {
83
+ &:active {
84
+ box-shadow: $shadow2 inset, 0 0 0 transparent !important;
85
+ }
86
+ &:focus {
87
+ box-shadow: 0 0 0 transparent inset, $shadow3;
88
+ }
89
+ }
82
90
  }
83
91
  }
@@ -238,7 +238,7 @@ const Selector = ( params: {
238
238
  ];
239
239
  }
240
240
 
241
- return ( <>
241
+ return <>
242
242
  <Column
243
243
  padding={ '2/3' }
244
244
  gap={ '2/3' }
@@ -364,7 +364,7 @@ const Selector = ( params: {
364
364
  { List }
365
365
  </Column>
366
366
  { params.bottomContent }
367
- </> );
367
+ </>;
368
368
  }
369
369
 
370
370
  export const ChipsInputFNs: amotify.fn.Input.Chips.FNs = {
@@ -56,7 +56,7 @@ const DataWrapping: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) =>
56
56
  let DefaultValues = [ ...( params.value || [] ) ];
57
57
  let Values = DefaultValues.splice( 0,params.limit || 65535 );
58
58
 
59
- return ( <Core
59
+ return <Core
60
60
  SelectedCellComponent={ ( params ) => {
61
61
  let {
62
62
  value,
@@ -91,7 +91,7 @@ const DataWrapping: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) =>
91
91
  } }
92
92
  { ...params }
93
93
  value={ Values }
94
- /> );
94
+ />;
95
95
  }
96
96
 
97
97
  const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
@@ -229,7 +229,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
229
229
  />
230
230
  } );
231
231
 
232
- return ( <BoxWrapper
232
+ return <BoxWrapper
233
233
  val_status={ val_status }
234
234
  set_status={ set_status }
235
235
  val_validate={ val_validate }
@@ -280,7 +280,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
280
280
  /> : null }
281
281
  { Selected }
282
282
  </button>
283
- </BoxWrapper> );
283
+ </BoxWrapper>;
284
284
  }
285
285
 
286
286
  const ChipsInput: amotify.fn.Input.Chips.Methods = DataWrapping as any;
@@ -207,7 +207,7 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
207
207
  /> );
208
208
  }
209
209
 
210
- return ( <BoxWrapper
210
+ return <BoxWrapper
211
211
  val_status={ val_status }
212
212
  set_status={ set_status }
213
213
  val_validate={ val_validate }
@@ -231,5 +231,5 @@ export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.Pla
231
231
  >
232
232
  { Digits }
233
233
  </Flex>
234
- </BoxWrapper> );
234
+ </BoxWrapper>;
235
235
  }