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
@@ -2,10 +2,12 @@ import React from 'react';
2
2
  export const HiddenInput: React.FC<amotify.fn.Input.Hidden.PlainParams> = ( params ) => {
3
3
  let {
4
4
  componentID = '',
5
+ enableFormSubmit,
6
+
5
7
  form,
6
8
  value = '',
7
9
  ...others
8
- } = params;
10
+ } = params;
9
11
 
10
12
  return <input
11
13
  value={ JSON.stringify( value ) }
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Box,
6
6
  Flex,
7
- FAIcon
7
+ FAI
8
8
  } from '@atoms';
9
9
  import {
10
10
  Input,
@@ -84,12 +84,12 @@ const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
84
84
  componentID = '',
85
85
  form,
86
86
  override,
87
- statusID,
87
+
88
88
  freeCSS,
89
89
  icon,
90
90
  iconType,
91
91
 
92
- enable_form_submit,
92
+ enableFormSubmit,
93
93
  defaultActiveStyling,
94
94
  checkValidationAtFirst,
95
95
  onValidate,
@@ -180,7 +180,7 @@ const CellList: React.FC<{
180
180
  cellCheckedStyles: DefaultCellCheckedStyles,
181
181
  cellCheckedClassName: DefaultCellCheckedClassName = '',
182
182
 
183
- enable_form_submit,
183
+ enableFormSubmit,
184
184
  defaultActiveStyling = true
185
185
  } = params;
186
186
  let {
@@ -240,6 +240,7 @@ const CellList: React.FC<{
240
240
 
241
241
  return [
242
242
  <input
243
+ key={ 'List-' + JSON.stringify( value ) }
243
244
  type={ type == 'radio' ? 'radio' : 'checkbox' }
244
245
  className={ [
245
246
  style.Input,
@@ -247,7 +248,6 @@ const CellList: React.FC<{
247
248
  ].join( ' ' ) }
248
249
  name={ 'RadioCheckbox-' + name }
249
250
  data-list-index={ componentID + '-' + index }
250
- key={ CellID }
251
251
  id={ CellID }
252
252
  value={ String( value ) }
253
253
  data-form-name={ form }
@@ -310,12 +310,12 @@ const CellList: React.FC<{
310
310
  }
311
311
  }
312
312
 
313
- if ( enable_form_submit ) SubmitForm( event );
313
+ if ( enableFormSubmit ) SubmitForm( event );
314
314
  } }
315
315
  tabIndex={ tabIndex }
316
316
  />,
317
317
  <Buttons.Label.Plain
318
- key={ 'Button-' + CellID }
318
+ key={ 'ListTrigger-' + JSON.stringify( value ) }
319
319
  htmlFor={ CellID }
320
320
  className={ ClassName.join( ' ' ) }
321
321
  tabIndex={ -1 }
@@ -371,7 +371,7 @@ const Comps = {
371
371
  position='relative'
372
372
  flexCenter
373
373
  >
374
- <FAIcon.Check
374
+ <FAI.Check
375
375
  className={ style.I }
376
376
  transition='middle'
377
377
  opacity='trans'
@@ -84,7 +84,7 @@ const Core: React.FC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
84
84
  form,
85
85
  className,
86
86
 
87
- enable_form_submit,
87
+ enableFormSubmit,
88
88
  enableUnSelected,
89
89
 
90
90
  checkValidationAtFirst,
@@ -96,7 +96,8 @@ const Core: React.FC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
96
96
  options,
97
97
  placeholder,
98
98
 
99
- leftIndicator,rightIndicator,rightIcon,
99
+ leftIndicator,rightIndicator,leftIcon,rightIcon,
100
+ componentID,status_id,
100
101
 
101
102
  ...others
102
103
  } = params;
@@ -158,7 +159,7 @@ const Core: React.FC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
158
159
  value={ val_status.dataValue }
159
160
  onKeyDown={ ( event ) => {
160
161
  if ( onKeyDown ) onKeyDown( event );
161
- if ( enable_form_submit ) SubmitForm( event );
162
+ if ( enableFormSubmit ) SubmitForm( event );
162
163
  } }
163
164
  onChange={ ( event ) => {
164
165
  let {
@@ -199,19 +200,19 @@ const Options: React.FC<{ params: amotify.fn.Input.Select.PlainParams }> = ( pro
199
200
  label,
200
201
  } = option;
201
202
  let Value = String( value );
202
- return ( <option
203
+ return <option
203
204
  value={ Value }
204
205
  key={ Value }
205
- selected={ Value == SelectedValue }
206
+ // selected={ Value == SelectedValue }
206
207
  children={ label }
207
- /> );
208
+ />;
208
209
  } );
209
210
 
210
211
  if ( enableUnSelected ) {
211
212
  Options.unshift( <option
212
213
  key={ 0 }
213
214
  value={ JSON.stringify( null ) }
214
- selected={ SelectedValue == 'null' }
215
+ // selected={ SelectedValue == 'null' }
215
216
  children={ placeholder }
216
217
  /> );
217
218
  }
@@ -1,5 +1,6 @@
1
1
  @use '@props' as *;
2
2
  .Select {
3
+ cursor: pointer;
3
4
  position: absolute;
4
5
  top: 0;
5
6
  left: 0;
@@ -78,7 +78,7 @@ export const SliderInput: React.FC<amotify.fn.Input.Slider.PlainParams> = ( para
78
78
  } = {},
79
79
  min,max,step,
80
80
 
81
- enable_form_submit,
81
+ enableFormSubmit,
82
82
 
83
83
  checkValidationAtFirst,
84
84
  onChange,onKeyDown,
@@ -160,7 +160,7 @@ export const SliderInput: React.FC<amotify.fn.Input.Slider.PlainParams> = ( para
160
160
  set_status={ set_status }
161
161
  DotData={ DotData }
162
162
  form={ form }
163
- enable_form_submit={ enable_form_submit! }
163
+ enableFormSubmit={ enableFormSubmit! }
164
164
  />
165
165
  { showLegends ? <Comps.IndicatorLabels
166
166
  componentID={ val_status.componentID }
@@ -277,14 +277,14 @@ const Comps = {
277
277
  set_status: React.Dispatch<React.SetStateAction<amotify.fn.Input.Status.Slider>>
278
278
  DotData: DataLevelingResult
279
279
  form: string
280
- enable_form_submit: boolean
280
+ enableFormSubmit: boolean
281
281
  } ) => {
282
282
  let {
283
283
  val_status,
284
284
  set_status,
285
285
  DotData,
286
286
  form,
287
- enable_form_submit
287
+ enableFormSubmit
288
288
  } = props;
289
289
  let {
290
290
  componentID
@@ -375,7 +375,7 @@ const Comps = {
375
375
  DotData
376
376
  } );
377
377
 
378
- if ( enable_form_submit ) SubmitForm( event );
378
+ if ( enableFormSubmit ) SubmitForm( event );
379
379
  } }
380
380
  />
381
381
  </Box>
@@ -3,7 +3,7 @@ import {
3
3
  } from '@global';
4
4
  import {
5
5
  Box,
6
- FAIcon
6
+ FAI
7
7
  } from '@atoms';
8
8
  import {
9
9
  Row
@@ -45,7 +45,7 @@ export const SwitchInput: React.FC<amotify.fn.Input.Switch.PlainParams> = ( para
45
45
  form,
46
46
  id,
47
47
 
48
- enable_form_submit,
48
+ enableFormSubmit,
49
49
 
50
50
  checkValidationAtFirst,
51
51
  onChange,onKeyDown,
@@ -85,7 +85,7 @@ export const SwitchInput: React.FC<amotify.fn.Input.Switch.PlainParams> = ( para
85
85
  },
86
86
  } );
87
87
 
88
- return ( <BoxWrapper
88
+ return <BoxWrapper
89
89
  val_status={ val_status }
90
90
  set_status={ set_status }
91
91
  val_validate={ val_validate }
@@ -103,7 +103,7 @@ export const SwitchInput: React.FC<amotify.fn.Input.Switch.PlainParams> = ( para
103
103
  id={ id }
104
104
  onKeyDown={ ( event ) => {
105
105
  if ( onKeyDown ) onKeyDown( event );
106
- if ( enable_form_submit ) SubmitForm( event );
106
+ if ( enableFormSubmit ) SubmitForm( event );
107
107
  } }
108
108
  onChange={ ( event ) => {
109
109
  if ( val_validate.ok ) set_validate( { ok: false,notice: [] } );
@@ -160,14 +160,17 @@ export const SwitchInput: React.FC<amotify.fn.Input.Switch.PlainParams> = ( para
160
160
  boxShadow={ 2 }
161
161
  className={ style.Dot }
162
162
  >
163
- { icon ? <FAIcon
163
+ { icon ? <Box
164
164
  transition='middle'
165
+ ssSquare={ 2 }
166
+ flexCenter
165
167
  fontColor={ appearance == 'applely' && isChecked ? color : 'white' }
166
- d={ icon }
167
- /> : null }
168
+ >
169
+ { icon }
170
+ </Box> : null }
168
171
  </Box>
169
172
  </Row.Center>
170
173
  </Box>
171
174
  </Buttons.Label.Plain>
172
- </BoxWrapper> );
175
+ </BoxWrapper>;
173
176
  }
@@ -256,7 +256,7 @@ export const TextInput: React.FC<amotify.fn.Input.Text.OriginParams> = ( params
256
256
  autoComplete = 'off',
257
257
  autoCapitalize = 'off',
258
258
 
259
- enable_form_submit,
259
+ enableFormSubmit,
260
260
  clearButton = false,
261
261
 
262
262
  checkValidationAtFirst,
@@ -265,11 +265,10 @@ export const TextInput: React.FC<amotify.fn.Input.Text.OriginParams> = ( params
265
265
  onUpdateValue,
266
266
  onUpdateValidValue,
267
267
  value = '',
268
- leftIndicator,rightIndicator,rightIcon,
268
+ leftIndicator,rightIndicator,leftIcon,rightIcon,
269
269
  maxLength,
270
270
  min,
271
271
  max,
272
-
273
272
  ...others
274
273
  } = params;
275
274
 
@@ -396,7 +395,7 @@ export const TextInput: React.FC<amotify.fn.Input.Text.OriginParams> = ( params
396
395
  }
397
396
 
398
397
  if ( onKeyDown ) onKeyDown( event );
399
- if ( enable_form_submit ) SubmitForm( event );
398
+ if ( enableFormSubmit ) SubmitForm( event );
400
399
  } }
401
400
  onChange={ ( event ) => {
402
401
  let {
@@ -35,7 +35,7 @@ export const TextAreaInput: React.FC<amotify.fn.Input.TextArea.PlainParams> = (
35
35
  required,
36
36
  form,
37
37
 
38
- enable_form_submit,
38
+ enableFormSubmit,
39
39
 
40
40
  checkValidationAtFirst,
41
41
  onChange,onKeyDown,
@@ -43,7 +43,7 @@ export const TextAreaInput: React.FC<amotify.fn.Input.TextArea.PlainParams> = (
43
43
  onUpdateValue,
44
44
  onUpdateValidValue,
45
45
  value = '',
46
- leftIndicator,rightIndicator,
46
+ leftIndicator,rightIndicator,leftIcon,rightIcon,
47
47
 
48
48
  ...others
49
49
  } = params;
@@ -87,7 +87,7 @@ export const TextAreaInput: React.FC<amotify.fn.Input.TextArea.PlainParams> = (
87
87
  value={ val_status.dataValue }
88
88
  onKeyDown={ ( event ) => {
89
89
  if ( onKeyDown ) onKeyDown( event );
90
- if ( enable_form_submit ) SubmitForm( event );
90
+ if ( enableFormSubmit ) SubmitForm( event );
91
91
  } }
92
92
  onChange={ ( event ) => {
93
93
  let {
@@ -5,7 +5,7 @@ import {
5
5
  Grid,
6
6
  Box,
7
7
  Flex,
8
- FAIcon
8
+ FAI
9
9
  } from '@atoms';
10
10
  import {
11
11
  Column,
@@ -213,7 +213,7 @@ const Comps = {
213
213
 
214
214
  let { hour,minutes } = val_value;
215
215
 
216
- return ( <Column
216
+ return <Column
217
217
  padding={ 1 }
218
218
  >
219
219
  <Flex
@@ -381,8 +381,7 @@ const Comps = {
381
381
  tipsID={ tipsID! }
382
382
  onValueUpdate={ onValueUpdate }
383
383
  />
384
- </Column>
385
- )
384
+ </Column>;
386
385
  },
387
386
  Hours: ( params: {
388
387
  min?: string
@@ -657,6 +656,7 @@ const Comps = {
657
656
  thisMonthDates.push( <Buttons.Button.Clear.R
658
657
  className={ [
659
658
  style.CalendarDay,
659
+ style[ 'isToday_' + isToday ]
660
660
  ].join( ' ' ) }
661
661
  { ...commonStyle }
662
662
  onClick={ () => {
@@ -671,10 +671,6 @@ const Comps = {
671
671
  padding={ 0 }
672
672
  flexCenter
673
673
  borderRadius={ 'sphere' }
674
- { ...isToday ? {
675
- backgroundColor: 'warn',
676
- fontColor: 'white'
677
- } : null }
678
674
  children={ i }
679
675
  /> );
680
676
  }
@@ -759,7 +755,6 @@ const Comps = {
759
755
  { Comps.Month.Months( {
760
756
  min,max,
761
757
  year: val_value.year,
762
- current: [ val_value.year,val_value.month ],
763
758
  callback: ( ( val: [ number,number,number ] ) => {
764
759
  let [ year,month ] = val;
765
760
  set_value( {
@@ -779,20 +774,18 @@ const Comps = {
779
774
  min?: string
780
775
  max?: string
781
776
  year: number
782
- current: [ number,number ]
783
777
  callback: any
784
778
  } ) => {
785
779
  let {
786
780
  year,
787
- current,
788
781
  callback
789
782
  } = params;
790
- let [ currentYear,currentMonth ] = current;
783
+ let Today = $.Time();
791
784
 
792
785
  let Months = [];
793
786
 
794
787
  for ( let index = 1; index <= 12; index++ ) {
795
- let Checked = year == currentYear && index == currentMonth;
788
+ let isThisMonth = year == Today.year && index == Today.month;
796
789
  let isLocked = false;
797
790
 
798
791
  {
@@ -809,7 +802,7 @@ const Comps = {
809
802
 
810
803
  let ClassName = [
811
804
  style.Cell,
812
- Checked ? style.Checked : ''
805
+ isThisMonth ? style.isThisMonth : ''
813
806
  ].join( ' ' );
814
807
 
815
808
  Months.push( <Buttons.Button.Clear.R
@@ -889,7 +882,7 @@ const Comps = {
889
882
  flexSizing={ 'none' }
890
883
  padding={ [ '2/3',1 ] }
891
884
  >
892
- <FAIcon.Times /> 削除
885
+ <FAI.Times /> 削除
893
886
  </Buttons.Button.Border.R>
894
887
  <Buttons.Button.Prime.R
895
888
  flexSizing={ 'auto' }
@@ -918,7 +911,7 @@ const Comps = {
918
911
  params.callback( -1 );
919
912
  } }
920
913
  >
921
- <FAIcon.ChevronLeft />
914
+ <FAI.ChevronLeft />
922
915
  </Buttons.Button.Clear.R>
923
916
  <Buttons.Button.Clear.R
924
917
  className={ style.RightButton }
@@ -929,7 +922,7 @@ const Comps = {
929
922
  params.callback( 1 );
930
923
  } }
931
924
  >
932
- <FAIcon.ChevronRight />
925
+ <FAI.ChevronRight />
933
926
  </Buttons.Button.Clear.R>
934
927
  </Flex >;
935
928
  },
@@ -306,7 +306,7 @@ export const TimeInput: React.FC<amotify.fn.Input.Time.OriginParams> = ( params
306
306
  min,max,
307
307
  className,
308
308
 
309
- enable_form_submit,
309
+ enableFormSubmit,
310
310
 
311
311
  checkValidationAtFirst,
312
312
  onKeyDown,
@@ -481,7 +481,7 @@ export const TimeInput: React.FC<amotify.fn.Input.Time.OriginParams> = ( params
481
481
  } );
482
482
 
483
483
  if ( onKeyDown ) onKeyDown( event );
484
- if ( enable_form_submit ) SubmitForm( event );
484
+ if ( enableFormSubmit ) SubmitForm( event );
485
485
  } }
486
486
  onKeyUp={ ( event ) => {
487
487
  if ( event.key == 'Tab' ) set_focus( {
@@ -506,6 +506,7 @@ export const TimeInput: React.FC<amotify.fn.Input.Time.OriginParams> = ( params
506
506
  } );
507
507
  event.preventDefault();
508
508
  } }
509
+ onChange={ () => { } }
509
510
  { ...others }
510
511
  /> }
511
512
  </BoxWrapper>
@@ -60,13 +60,20 @@
60
60
  .RightButton:active {
61
61
  left: $unit1_3 !important;
62
62
  }
63
- .Cell.Checked {
63
+ .Cell.isThisMonth {
64
64
  color: #fff !important;
65
- background-color: $color-theme !important;
65
+ background-color: $color-warning !important;
66
66
  box-shadow: $shadow2;
67
67
  }
68
68
  }
69
69
  .miniYearInput {
70
70
  width: 4em !important;
71
71
  text-align: center;
72
+ }
73
+ .CalendarDay {
74
+ &.isToday_true {
75
+ color: white !important;
76
+ background-color: $color-warning !important;
77
+ font-weight: bold;
78
+ }
72
79
  }