amotify 0.0.59 → 0.0.62

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 (79) hide show
  1. package/@types/_.tsx +5 -5
  2. package/@types/amot.tsx +11 -11
  3. package/@types/fn.tsx +14 -1
  4. package/@types/module.tsx +1 -1
  5. package/dist/amotify.js +1 -1
  6. package/dist/amotify.min.css +3 -3
  7. package/package.json +1 -1
  8. package/src/@atoms.tsx +3 -3
  9. package/src/@functions.tsx +11 -11
  10. package/src/@global.tsx +40 -40
  11. package/src/@jsminAmotifyExtension/_.tsx +4 -4
  12. package/src/@jsminAmotifyExtension/fetch.tsx +30 -30
  13. package/src/@jsminAmotifyExtension/formCollect.tsx +32 -32
  14. package/src/@jsminAmotifyExtension/spreadSheet.tsx +71 -71
  15. package/src/@jsminAmotifyExtension/variables.tsx +38 -38
  16. package/src/@molecules.tsx +6 -6
  17. package/src/@styles/props.scss +1 -1
  18. package/src/@styles/var.scss +0 -1
  19. package/src/@templates.tsx +1 -1
  20. package/src/@variables.tsx +2 -2
  21. package/src/atoms/FAI/parts.tsx +105 -105
  22. package/src/atoms/Logo/parts.tsx +19 -19
  23. package/src/atoms/Various/parts.tsx +26 -26
  24. package/src/config.tsx +62 -59
  25. package/src/functions/Button/_.tsx +49 -49
  26. package/src/functions/Cropper/parts.tsx +249 -249
  27. package/src/functions/Effects/Fade.tsx +18 -18
  28. package/src/functions/Effects/Ripple.tsx +24 -24
  29. package/src/functions/Effects/_.tsx +5 -5
  30. package/src/functions/Input/Chips/Selector.tsx +107 -107
  31. package/src/functions/Input/Chips/_.tsx +66 -66
  32. package/src/functions/Input/Contenteditable.tsx +18 -18
  33. package/src/functions/Input/DigitCharacters.tsx +48 -48
  34. package/src/functions/Input/File/_.tsx +114 -114
  35. package/src/functions/Input/Hidden.tsx +3 -3
  36. package/src/functions/Input/List/_.tsx +61 -61
  37. package/src/functions/Input/RichSelect/_.tsx +38 -38
  38. package/src/functions/Input/Segmented/_.tsx +30 -30
  39. package/src/functions/Input/Select/_.tsx +42 -42
  40. package/src/functions/Input/Slider/_.tsx +93 -93
  41. package/src/functions/Input/Switch/_.tsx +21 -21
  42. package/src/functions/Input/Text.tsx +99 -97
  43. package/src/functions/Input/TextArea.tsx +17 -17
  44. package/src/functions/Input/Time/Picker.tsx +199 -199
  45. package/src/functions/Input/Time/_.tsx +173 -173
  46. package/src/functions/Input/_.tsx +135 -135
  47. package/src/functions/Input/core.tsx +96 -96
  48. package/src/functions/Inputs/_.tsx +1 -1
  49. package/src/functions/Inputs/text.tsx +5 -5
  50. package/src/functions/Layout/PageNotFound.tsx +6 -6
  51. package/src/functions/Layout/PageRouter.tsx +28 -44
  52. package/src/functions/Layout/PageViewController/parts.tsx +7 -7
  53. package/src/functions/Layout/Plate.tsx +5 -5
  54. package/src/functions/Layout/RootViewController/parts.tsx +94 -71
  55. package/src/functions/Layout/RootViewController/style.module.scss +0 -1
  56. package/src/functions/Layout/SwipeView/parts.tsx +90 -90
  57. package/src/functions/Layout/TabBar.tsx +10 -10
  58. package/src/functions/Layout/_.tsx +7 -7
  59. package/src/functions/Loader/corner.tsx +10 -10
  60. package/src/functions/Loader/mini.tsx +25 -25
  61. package/src/functions/Loader/parts.tsx +31 -31
  62. package/src/functions/Loader/top.tsx +10 -10
  63. package/src/functions/Sheet/parts.tsx +219 -219
  64. package/src/functions/Sheet/style.module.scss +0 -20
  65. package/src/functions/SnackBar/parts.tsx +50 -50
  66. package/src/functions/Table/Data/parts.tsx +202 -202
  67. package/src/functions/Table/Drag/parts.tsx +76 -76
  68. package/src/functions/Table/Normal/parts.tsx +23 -23
  69. package/src/functions/Table/_.tsx +33 -33
  70. package/src/functions/Tooltips/parts.tsx +7 -7
  71. package/src/global/LaunchReactApplication.tsx +28 -28
  72. package/src/global/styleConverter.tsx +133 -133
  73. package/src/launch.tsx +27 -27
  74. package/src/molecules/Accordion/parts.tsx +41 -41
  75. package/src/molecules/LinkifyText/parts.tsx +18 -18
  76. package/src/molecules/List.tsx +6 -6
  77. package/src/preload.tsx +5 -45
  78. package/src/templates/PlayGround/parts.tsx +8 -8
  79. package/webpack.config.js +9 -9
@@ -1,45 +1,45 @@
1
1
  import {
2
2
  React
3
- } from '@global';
3
+ } from '@global'
4
4
  import {
5
5
  Box,
6
6
  Flex,
7
7
  FAI
8
- } from '@atoms';
8
+ } from '@atoms'
9
9
  import {
10
10
  Input,
11
11
  Buttons
12
- } from '@fn';
12
+ } from '@fn'
13
13
  import {
14
14
  BoxWrapper,
15
15
  CommonEffects,
16
16
  SubmitForm
17
- } from '../core';
18
- import style from './style.module.scss';
17
+ } from '../core'
18
+ import style from './style.module.scss'
19
19
 
20
20
  function DefaultValidation( props: {
21
21
  value: any
22
22
  params: any
23
23
  } ): amotify.fn.Input.Validation.Result {
24
- let { value,params } = props;
24
+ let { value,params } = props
25
25
  let {
26
26
  type,
27
27
  required,
28
28
  minSelect = 0
29
- } = params as amotify.fn.Input.List.OriginParams;
30
- let notice: amotify.fn.Input.Validation.NoticeTypes[] = [];
29
+ } = params as amotify.fn.Input.List.OriginParams
30
+ let notice: amotify.fn.Input.Validation.NoticeTypes[] = []
31
31
 
32
32
  if ( required ) {
33
33
  if ( !value.length ) {
34
34
  if ( type == 'radio' ) {
35
- notice.push( { type: 'invalid',label: '選択されていません' } );
35
+ notice.push( { type: 'invalid',label: '選択されていません' } )
36
36
  }
37
37
  }
38
38
  }
39
39
 
40
40
  if ( minSelect ) {
41
41
  if ( value.length < minSelect ) {
42
- notice.push( { type: 'invalid',label: `${ minSelect }個以上選択してください` } );
42
+ notice.push( { type: 'invalid',label: `${ minSelect }個以上選択してください` } )
43
43
  }
44
44
  }
45
45
 
@@ -50,30 +50,30 @@ function DefaultValidation( props: {
50
50
  }
51
51
 
52
52
  export const ListInput: React.FC<amotify.fn.Input.List.OriginParams> = ( props ) => {
53
- let { value,options = [] } = props;
54
- let Values = $.is.exist( value ) ? $.flatArray( value ) : [];
53
+ let { value,options = [] } = props
54
+ let Values = $.is.exist( value ) ? $.flatArray( value ) : []
55
55
  let DefaultOptions = options.map( ( option ) => {
56
- let { value,label } = option;
56
+ let { value,label } = option
57
57
 
58
58
  return {
59
59
  ...option,
60
60
  value: JSON.stringify( value ),
61
61
  label
62
62
  }
63
- } );
64
- let DefaultValues: string[] = [];
63
+ } )
64
+ let DefaultValues: string[] = []
65
65
  Values.forEach( ( value ) => {
66
- let Val = JSON.stringify( value );
67
- let Index = DefaultOptions.findIndex( ( option ) => option.value == Val );
68
- if ( Index == -1 ) return;
69
- DefaultValues.push( Val );
70
- } );
66
+ let Val = JSON.stringify( value )
67
+ let Index = DefaultOptions.findIndex( ( option ) => option.value == Val )
68
+ if ( Index == -1 ) return
69
+ DefaultValues.push( Val )
70
+ } )
71
71
 
72
72
  return <Core
73
73
  { ...props }
74
74
  value={ DefaultValues }
75
75
  options={ DefaultOptions }
76
- />;
76
+ />
77
77
  }
78
78
 
79
79
  const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
@@ -104,7 +104,7 @@ const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
104
104
  cellCheckedStyles,cellCheckedClassName,
105
105
 
106
106
  ...others
107
- } = params;
107
+ } = params
108
108
 
109
109
  let Default_Status: amotify.fn.Input.Status.Plain = {
110
110
  componentID,
@@ -112,11 +112,11 @@ const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
112
112
  eventType: 'init',
113
113
  eventID: $.uuidGen()
114
114
  }
115
- let [ val_status,set_status ] = React.useState( Default_Status );
115
+ let [ val_status,set_status ] = React.useState( Default_Status )
116
116
  let [ val_validate,set_validate ] = React.useState( {
117
117
  ok: false,
118
118
  notice: []
119
- } as amotify.fn.Input.Validation.Result );
119
+ } as amotify.fn.Input.Validation.Result )
120
120
 
121
121
  CommonEffects( {
122
122
  type: 'list',
@@ -127,7 +127,7 @@ const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
127
127
  set_validate,
128
128
  onUpdateValue,onUpdateValidValue,
129
129
  DefaultValidation
130
- } );
130
+ } )
131
131
 
132
132
  return <BoxWrapper
133
133
  val_status={ val_status }
@@ -148,7 +148,7 @@ const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
148
148
  val_status={ val_status }
149
149
  set_status={ set_status }
150
150
  />
151
- </BoxWrapper>;
151
+ </BoxWrapper>
152
152
  }
153
153
 
154
154
  const CellList: React.FC<{
@@ -160,7 +160,7 @@ const CellList: React.FC<{
160
160
  params,
161
161
  val_status,
162
162
  set_status
163
- } = props;
163
+ } = props
164
164
 
165
165
  let {
166
166
  componentID,
@@ -182,16 +182,16 @@ const CellList: React.FC<{
182
182
 
183
183
  enableFormSubmit,
184
184
  defaultActiveStyling = true
185
- } = params;
185
+ } = params
186
186
  let {
187
187
  dataValue
188
- } = val_status;
188
+ } = val_status
189
189
 
190
190
  let IconBox = icon ? <Box
191
191
  flexSizing={ 'none' }
192
192
  children={ params.iconType == 'radio' ? <Comps.RadioIcon /> :
193
193
  params.iconType == 'checkbox' ? <Comps.CheckboxIcon /> : null }
194
- /> : null;
194
+ /> : null
195
195
 
196
196
  let Cells = options.map( ( option,index ) => {
197
197
  let {
@@ -202,10 +202,10 @@ const CellList: React.FC<{
202
202
  checkedStyles,
203
203
  checkedClassName = '',
204
204
  ...styles
205
- } = option;
205
+ } = option
206
206
 
207
- let CellID = $.uuidGen();
208
- let Checked = dataValue.findIndex( ( v: string ) => v === value ) != -1;
207
+ let CellID = $.uuidGen()
208
+ let Checked = dataValue.findIndex( ( v: string ) => v === value ) != -1
209
209
 
210
210
  let Styles = {
211
211
  ...DefaultCellStyles,
@@ -216,7 +216,7 @@ const CellList: React.FC<{
216
216
  style[ 'defaultActiveStyling_' + !!defaultActiveStyling ],
217
217
  DefaultCellClassName,
218
218
  className
219
- ];
219
+ ]
220
220
 
221
221
  if ( Checked ) {
222
222
  Styles = {
@@ -235,7 +235,7 @@ const CellList: React.FC<{
235
235
  ...ClassName,
236
236
  DefaultCellCheckedClassName,
237
237
  checkedClassName
238
- ];
238
+ ]
239
239
  }
240
240
 
241
241
  return [
@@ -254,32 +254,32 @@ const CellList: React.FC<{
254
254
  disabled={ disabled }
255
255
  checked={ Checked }
256
256
  onFocus={ ( event ) => {
257
- if ( disabled ) return;
258
- if ( type != 'radio' ) return;
259
- if ( val_status.dataValue.length ) return;
260
- let { value,checked } = event.target;
261
- let nextValue: any = [ value ];
257
+ if ( disabled ) return
258
+ if ( type != 'radio' ) return
259
+ if ( val_status.dataValue.length ) return
260
+ let { value,checked } = event.target
261
+ let nextValue: any = [ value ]
262
262
 
263
263
  set_status( {
264
264
  ...val_status,
265
265
  dataValue: nextValue,
266
266
  eventType: 'update',
267
267
  eventID: $.uuidGen()
268
- } );
268
+ } )
269
269
  } }
270
270
  onChange={ ( event ) => {
271
- if ( disabled ) return;
272
- let { value,checked } = event.target;
273
- let nextValue = [];
271
+ if ( disabled ) return
272
+ let { value,checked } = event.target
273
+ let nextValue = []
274
274
  if ( type == 'radio' ) {
275
- nextValue = [ value ];
275
+ nextValue = [ value ]
276
276
  } else if ( type == 'checkbox' || type == 'checker' ) {
277
277
  if ( checked ) {
278
- nextValue = [ ...val_status.dataValue,value ];
278
+ nextValue = [ ...val_status.dataValue,value ]
279
279
  } else {
280
- let prevValue = [ ...val_status.dataValue ];
281
- prevValue.splice( val_status.dataValue.findIndex( ( v: any ) => v == value ),1 );
282
- nextValue = prevValue;
280
+ let prevValue = [ ...val_status.dataValue ]
281
+ prevValue.splice( val_status.dataValue.findIndex( ( v: any ) => v == value ),1 )
282
+ nextValue = prevValue
283
283
  }
284
284
  }
285
285
 
@@ -288,29 +288,29 @@ const CellList: React.FC<{
288
288
  dataValue: nextValue,
289
289
  eventType: 'update',
290
290
  eventID: $.uuidGen()
291
- } );
291
+ } )
292
292
  } }
293
293
  onKeyDown={ ( event ) => {
294
- let { key,shiftKey } = event;
294
+ let { key,shiftKey } = event
295
295
  if ( type == 'checkbox' || type == 'checker' ) {
296
296
  if ( key == 'Tab' ) {
297
297
  if ( shiftKey ) { } else { }
298
298
  } else if ( key.match( /Arrow/ ) ) {
299
- event.preventDefault();
299
+ event.preventDefault()
300
300
 
301
- let dir = [ 'ArrowLeft','ArrowUp' ].includes( key ) ? -1 : 1;
302
- let nextIndex = index + dir;
301
+ let dir = [ 'ArrowLeft','ArrowUp' ].includes( key ) ? -1 : 1
302
+ let nextIndex = index + dir
303
303
 
304
304
  if ( nextIndex < 0 ) {
305
- nextIndex = options.length - 1;
305
+ nextIndex = options.length - 1
306
306
  } else if ( nextIndex >= options.length ) {
307
- nextIndex = 0;
307
+ nextIndex = 0
308
308
  }
309
- $( `input[data-list-index="${ componentID }-${ nextIndex }"]` ).focus();
309
+ $( `input[data-list-index="${ componentID }-${ nextIndex }"]` ).focus()
310
310
  }
311
311
  }
312
312
 
313
- if ( enableFormSubmit ) SubmitForm( event );
313
+ if ( enableFormSubmit ) SubmitForm( event )
314
314
  } }
315
315
  tabIndex={ tabIndex }
316
316
  />,
@@ -329,8 +329,8 @@ const CellList: React.FC<{
329
329
  { IconBox }
330
330
  { $.is.string( label ) ? <Box children={ label } /> : label }
331
331
  </Buttons.Label.Plain>
332
- ];
333
- } );
332
+ ]
333
+ } )
334
334
 
335
335
  return <Flex
336
336
  flexSizing={ 'auto' }
@@ -345,7 +345,7 @@ const CellList: React.FC<{
345
345
  style[ 'Tone_' + tone ]
346
346
  ].join( ' ' ) }
347
347
  children={ Cells }
348
- />;
348
+ />
349
349
  }
350
350
 
351
351
  const Comps = {
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  React,
3
- } from '@global';
3
+ } from '@global'
4
4
 
5
5
  import {
6
6
  Box
7
- } from '@atoms';
7
+ } from '@atoms'
8
8
  import {
9
9
  Column
10
- } from '@mols';
10
+ } from '@mols'
11
11
  import {
12
12
  BoxWrapper,
13
13
  SubmitForm,
14
14
  ValidationCheck,
15
15
  CommonEffects
16
- } from '../core';
16
+ } from '../core'
17
17
  import {
18
18
  Input,
19
19
  Tooltips,
20
20
  Buttons
21
- } from '@fn';
21
+ } from '@fn'
22
22
 
23
23
 
24
- import style from './style.module.scss';
25
- import coreStyle from '../style.module.scss';
24
+ import style from './style.module.scss'
25
+ import coreStyle from '../style.module.scss'
26
26
 
27
27
  function DefaultValidation( props: {
28
28
  value: any
@@ -31,16 +31,16 @@ function DefaultValidation( props: {
31
31
  let {
32
32
  value,
33
33
  params
34
- } = props;
34
+ } = props
35
35
  let {
36
36
  required,
37
37
  options
38
- } = params as amotify.fn.Input.RichSelect.PlainParams;
39
- let notice: amotify.fn.Input.Validation.NoticeTypes[] = [];
38
+ } = params as amotify.fn.Input.RichSelect.PlainParams
39
+ let notice: amotify.fn.Input.Validation.NoticeTypes[] = []
40
40
 
41
41
  if ( required ) {
42
42
  if ( !options.length || ( options.length && $.is.nullish( JSON.parse( value ) ) ) ) {
43
- notice.push( { type: 'invalid',label: '必須項目です' } );
43
+ notice.push( { type: 'invalid',label: '必須項目です' } )
44
44
  }
45
45
  }
46
46
 
@@ -55,30 +55,30 @@ export const RichSelectInput: React.FC<amotify.fn.Input.RichSelect.PlainParams>
55
55
  value = null,
56
56
  placeholder,
57
57
  options = []
58
- } = params;
58
+ } = params
59
59
 
60
- let SelectedExist = 0;
61
- let SelectedValue = JSON.stringify( value );
60
+ let SelectedExist = 0
61
+ let SelectedValue = JSON.stringify( value )
62
62
  let DefaultOptions = options.map( ( option ) => {
63
- let { type,value } = option;
64
- let Value = JSON.stringify( value );
65
- let Selected = Value == SelectedValue;
66
- SelectedExist |= Number( Selected );
63
+ let { type,value } = option
64
+ let Value = JSON.stringify( value )
65
+ let Selected = Value == SelectedValue
66
+ SelectedExist |= Number( Selected )
67
67
 
68
68
  return {
69
69
  ...option,
70
70
  type: type || 'button',
71
71
  value: Value
72
72
  }
73
- } );
74
- if ( !SelectedExist ) value = null;
75
- let DefaultValue = JSON.stringify( value );
73
+ } )
74
+ if ( !SelectedExist ) value = null
75
+ let DefaultValue = JSON.stringify( value )
76
76
 
77
77
  return <Core
78
78
  { ...params }
79
79
  value={ DefaultValue }
80
80
  options={ DefaultOptions }
81
- />;
81
+ />
82
82
  }
83
83
 
84
84
  const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
@@ -108,7 +108,7 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
108
108
 
109
109
  gravityPoint,
110
110
  ...others
111
- } = params;
111
+ } = params
112
112
 
113
113
  let Default_Status: amotify.fn.Input.Status.Plain = {
114
114
  componentID: params.componentID || '',
@@ -116,12 +116,12 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
116
116
  eventType: 'init',
117
117
  eventID: $.uuidGen()
118
118
  }
119
- let [ val_tipID ] = React.useState( $.uuid.gen() );
120
- let [ val_status,set_status ] = React.useState( Default_Status );
119
+ let [ val_tipID ] = React.useState( $.uuid.gen() )
120
+ let [ val_status,set_status ] = React.useState( Default_Status )
121
121
  let [ val_validate,set_validate ] = React.useState( {
122
122
  ok: false,
123
123
  notice: []
124
- } as amotify.fn.Input.Validation.Result );
124
+ } as amotify.fn.Input.Validation.Result )
125
125
 
126
126
  CommonEffects( {
127
127
  type: 'richSelect',
@@ -137,13 +137,13 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
137
137
  DefaultValidation,
138
138
  onUpdateValue,
139
139
  onUpdateValidValue
140
- } );
140
+ } )
141
141
 
142
- let SelectedElement: ReactElement = <Box fontColor='4.thin' textAlign='left'>{ placeholder || '選択' }</Box>;
142
+ let SelectedElement: ReactElement = <Box fontColor='4.thin' textAlign='left'>{ placeholder || '選択' }</Box>
143
143
  if ( val_status.dataValue ) {
144
- let Selected = options.find( ( option ) => option.type == 'button' && option.value == val_status.dataValue );
144
+ let Selected = options.find( ( option ) => option.type == 'button' && option.value == val_status.dataValue )
145
145
  if ( Selected ) {
146
- SelectedElement = Selected.selectedLabel || Selected.label;
146
+ SelectedElement = Selected.selectedLabel || Selected.label
147
147
  }
148
148
  }
149
149
 
@@ -179,7 +179,7 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
179
179
  type,
180
180
  value,
181
181
  label
182
- } = option;
182
+ } = option
183
183
 
184
184
  if ( type == 'button' ) {
185
185
  return <Buttons.Button.Clear.R
@@ -194,17 +194,17 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
194
194
  dataValue: value,
195
195
  eventType: 'update',
196
196
  eventID: $.uuidGen()
197
- } );
198
- Tooltips.close( val_tipID );
197
+ } )
198
+ Tooltips.close( val_tipID )
199
199
  } }
200
200
  { ...cellStyles }
201
201
  >
202
202
  { label }
203
203
  </Buttons.Button.Clear.R>
204
204
  } else {
205
- return label;
205
+ return label
206
206
  }
207
- } );
207
+ } )
208
208
  return <Column
209
209
  ssCardBox
210
210
  padding={ [ 1,0 ] }
@@ -219,12 +219,12 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
219
219
  } }
220
220
  >
221
221
  { Options }
222
- </Column>;
222
+ </Column>
223
223
  }
224
- } );
224
+ } )
225
225
  } }
226
226
  >
227
227
  { SelectedElement }
228
228
  </button>
229
- </BoxWrapper>;
229
+ </BoxWrapper>
230
230
  }
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  React
3
- } from '@global';
3
+ } from '@global'
4
4
 
5
- import { ListInputs } from '../_';
5
+ import { ListInputs } from '../_'
6
6
 
7
- import style from './style.module.scss';
7
+ import style from './style.module.scss'
8
8
 
9
9
  export const Segmented: amotify.fn.Input.Segmented.Types = {
10
10
  Auto: ( params ) => {
11
- params = { ...params };
11
+ params = { ...params }
12
12
  params = {
13
13
  padding: '1/3',
14
14
  gap: '1/3',
@@ -26,10 +26,10 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
26
26
  },
27
27
  }
28
28
 
29
- return <Core appearance={ ( params as any ).tone || 'Auto' } { ...params } />;
29
+ return <Core appearance={ ( params as any ).tone || 'Auto' } { ...params } />
30
30
  },
31
31
  Normal: ( params ) => {
32
- params = { ...params };
32
+ params = { ...params }
33
33
  params = {
34
34
  border: true,
35
35
  borderColor: 'theme',
@@ -50,12 +50,12 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
50
50
  ...params.cellCheckedStyles
51
51
  }
52
52
  };
53
- ( params as any ).tone = 'ThemeBorder';
53
+ ( params as any ).tone = 'ThemeBorder'
54
54
 
55
- return <Core appearance={ 'Border' } { ...params } />;
55
+ return <Core appearance={ 'Border' } { ...params } />
56
56
  },
57
57
  Cloud: ( params ) => {
58
- params = { ...params };
58
+ params = { ...params }
59
59
  params = {
60
60
  padding: '1/3',
61
61
  gap: '1/3',
@@ -73,11 +73,11 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
73
73
  },
74
74
  }
75
75
 
76
- return <Core appearance={ ( params as any ).tone || 'Cloud' } { ...params } />;
76
+ return <Core appearance={ ( params as any ).tone || 'Cloud' } { ...params } />
77
77
  },
78
78
  Cloud2: ( params ) => {
79
79
  params = { ...params };
80
- ( params as any ).tone = 'WhiteCloud';
80
+ ( params as any ).tone = 'WhiteCloud'
81
81
  return <Segmented.Cloud
82
82
  fontColor='3.blur'
83
83
  { ...params }
@@ -85,11 +85,11 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
85
85
  fontColor: '1.clear',
86
86
  ...params.cellCheckedStyles
87
87
  } }
88
- />;
88
+ />
89
89
  },
90
90
  Cloud3: ( params ) => {
91
91
  params = { ...params };
92
- ( params as any ).tone = 'ThemeCloud';
92
+ ( params as any ).tone = 'ThemeCloud'
93
93
  return <Segmented.Cloud
94
94
  backgroundColor='tcOpFew'
95
95
  fontColor='theme'
@@ -97,10 +97,10 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
97
97
  cellStyles={ {
98
98
  ...params.cellStyles
99
99
  } }
100
- />;
100
+ />
101
101
  },
102
102
  Border: ( params ) => {
103
- params = { ...params };
103
+ params = { ...params }
104
104
  params = {
105
105
  backgroundColor: '1.layer.base',
106
106
  border: '2.normal',
@@ -121,10 +121,10 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
121
121
  },
122
122
  }
123
123
 
124
- return <Core appearance={ ( params as any ).tone || 'Border' } { ...params } />;
124
+ return <Core appearance={ ( params as any ).tone || 'Border' } { ...params } />
125
125
  },
126
126
  Border2: ( params ) => {
127
- params = { ...params };
127
+ params = { ...params }
128
128
  params = {
129
129
  border: true,
130
130
  borderColor: 'theme',
@@ -146,12 +146,12 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
146
146
  ...params.cellCheckedStyles
147
147
  }
148
148
  };
149
- ( params as any ).tone = 'ThemeBorder';
149
+ ( params as any ).tone = 'ThemeBorder'
150
150
 
151
- return <Core appearance={ 'Border' } { ...params } />;
151
+ return <Core appearance={ 'Border' } { ...params } />
152
152
  },
153
153
  BottomLine: ( params ) => {
154
- params = { ...params };
154
+ params = { ...params }
155
155
  params = {
156
156
  gap: 0,
157
157
  fontColor: '3.blur',
@@ -168,7 +168,7 @@ export const Segmented: amotify.fn.Input.Segmented.Types = {
168
168
  }
169
169
  }
170
170
 
171
- return <Core appearance={ 'BottomLine' } { ...params } />;
171
+ return <Core appearance={ 'BottomLine' } { ...params } />
172
172
  },
173
173
  }
174
174
 
@@ -189,15 +189,15 @@ const Core: React.FC<CoreParams> = ( params ) => {
189
189
  cellCheckedClassName,
190
190
  cellCheckedStyles,
191
191
  ...others
192
- } = params;
192
+ } = params
193
193
 
194
- let [ val_componentID ] = React.useState( $.uuidGen() );
194
+ let [ val_componentID ] = React.useState( $.uuidGen() )
195
195
 
196
- let [ val_defValue,set_defValue ] = React.useState( value );
197
- let [ val_value,set_value ] = React.useState( val_defValue );
196
+ let [ val_defValue,set_defValue ] = React.useState( value )
197
+ let [ val_value,set_value ] = React.useState( val_defValue )
198
198
  if ( val_defValue != value ) {
199
- set_defValue( value );
200
- set_value( value );
199
+ set_defValue( value )
200
+ set_value( value )
201
201
  }
202
202
 
203
203
  return <ListInputs.Radio
@@ -237,10 +237,10 @@ const Core: React.FC<CoreParams> = ( params ) => {
237
237
  tone={ 'custom' as any }
238
238
  onUpdateValue={ onUpdateValue }
239
239
  onUpdateValidValue={ ( args ) => {
240
- if ( onUpdateValidValue ) onUpdateValidValue( args );
240
+ if ( onUpdateValidValue ) onUpdateValidValue( args )
241
241
  if ( appearance == 'BottomLine' ) {
242
- set_value( args.value[ 0 ] );
242
+ set_value( args.value[ 0 ] )
243
243
  }
244
244
  } }
245
- />;
245
+ />
246
246
  }