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.
- package/@types/state.tsx +9 -2
- package/dist/amotify.js +2 -2
- package/dist/amotify.min.css +3 -3
- package/dist/coreVender.js +2 -2
- package/package.json +2 -2
- package/src/atoms/FAI/parts.tsx +49 -49
- package/src/atoms/Logo/parts.tsx +14 -14
- package/src/atoms/Various/parts.tsx +6 -6
- package/src/functions/Button/_.tsx +23 -14
- package/src/functions/Button/style.module.scss +34 -60
- package/src/functions/Cropper/parts.tsx +119 -121
- package/src/functions/Effects/Fade.tsx +4 -4
- package/src/functions/Effects/style.module.scss +9 -1
- package/src/functions/Input/Chips/Selector.tsx +2 -2
- package/src/functions/Input/Chips/_.tsx +4 -4
- package/src/functions/Input/DigitCharacters.tsx +2 -2
- package/src/functions/Input/File/_.tsx +206 -213
- package/src/functions/Input/List/_.tsx +4 -4
- package/src/functions/Input/Segmented/_.tsx +12 -12
- package/src/functions/Input/Select/_.tsx +6 -7
- package/src/functions/Input/Slider/_.tsx +4 -4
- package/src/functions/Input/Text.tsx +104 -106
- package/src/functions/Input/TextArea.tsx +33 -35
- package/src/functions/Input/Time/Picker.tsx +14 -14
- package/src/functions/Input/Time/_.tsx +77 -79
- package/src/functions/Input/_.tsx +87 -93
- package/src/functions/Input/core.tsx +2 -2
- package/src/functions/Inputs/text.tsx +6 -8
- package/src/functions/Layout/PageNotFound.tsx +2 -2
- package/src/functions/Layout/PageViewController/parts.tsx +3 -5
- package/src/functions/Layout/Plate.tsx +2 -3
- package/src/functions/Layout/RootViewController/parts.tsx +4 -4
- package/src/functions/Layout/SwipeView/parts.tsx +4 -4
- package/src/functions/Layout/TabBar.tsx +2 -2
- package/src/functions/Sheet/parts.tsx +11 -11
- package/src/functions/SnackBar/parts.tsx +4 -3
- package/src/functions/Table/Data/parts.tsx +35 -37
- package/src/functions/Table/Drag/parts.tsx +6 -6
- package/src/functions/Table/Normal/parts.tsx +6 -6
- package/src/functions/Table/_.tsx +2 -2
- package/src/molecules/Accordion/parts.tsx +2 -2
- package/src/molecules/LinkifyText/parts.tsx +3 -5
- package/src/templates/PlayGround/parts.tsx +2 -2
- package/webpack.config.js +0 -6
|
@@ -69,7 +69,7 @@ const UniComponent: React.FC<{
|
|
|
69
69
|
children: Children
|
|
70
70
|
} = props;
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return <Children { ...props.params } />;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const TextInputs: amotify.fn.Input.Text.Methods = {
|
|
@@ -79,11 +79,11 @@ const TextInputs: amotify.fn.Input.Text.Methods = {
|
|
|
79
79
|
if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3;
|
|
80
80
|
if ( rawParams.leftIcon ) rawParams.paddingLeft = rawParams.paddingLeft ?? 3;
|
|
81
81
|
|
|
82
|
-
return
|
|
82
|
+
return <UniComponent
|
|
83
83
|
componentID={ rawParams.componentID }
|
|
84
84
|
children={ TextInput }
|
|
85
85
|
params={ DefaultStyles.Boxish( rawParams ) }
|
|
86
|
-
|
|
86
|
+
/>;
|
|
87
87
|
},
|
|
88
88
|
CreditCard: ( props ) => ( <TextInputs.Normal
|
|
89
89
|
restrict='creditCard'
|
|
@@ -110,62 +110,60 @@ const TextInputs: amotify.fn.Input.Text.Methods = {
|
|
|
110
110
|
}
|
|
111
111
|
},[] );
|
|
112
112
|
|
|
113
|
-
return
|
|
113
|
+
return <TextInputs.Normal
|
|
114
114
|
restrict='postal'
|
|
115
115
|
placeholder='郵便番号'
|
|
116
116
|
leftIndicator={ <Input.Comps.LeftIndicator children={ '〒' } /> }
|
|
117
117
|
{ ...params }
|
|
118
|
-
|
|
118
|
+
/>;
|
|
119
119
|
},
|
|
120
120
|
Password: ( props ) => {
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
121
|
+
return <TextInputs.Normal
|
|
122
|
+
restrict='password'
|
|
123
|
+
placeholder='パスワードを入力'
|
|
124
|
+
rightIndicator={
|
|
125
|
+
<Input.Comps.RightIndicator
|
|
126
|
+
padding={ 0 }
|
|
127
|
+
>
|
|
128
|
+
<Buttons.Button.Normal.R
|
|
129
|
+
padding={ [ 0,1 ] }
|
|
130
|
+
fontColor='theme'
|
|
131
|
+
borderRadius={ 'inherit' }
|
|
132
|
+
backgroundColor='inherit'
|
|
133
|
+
height={ 1 }
|
|
134
|
+
ssEffectsOnActive={ [ 'expand' ] }
|
|
135
|
+
onMouseOver={ ( event ) => {
|
|
136
|
+
Tooltips.open( {
|
|
137
|
+
parent: event.currentTarget,
|
|
138
|
+
gravityPoint: 24,
|
|
139
|
+
padding: [ 1,0 ],
|
|
140
|
+
content: <Tooltips.Comps.Body>
|
|
141
|
+
パスワードを表示
|
|
142
|
+
</Tooltips.Comps.Body>
|
|
143
|
+
} );
|
|
144
|
+
} }
|
|
145
|
+
tabIndex={ -1 }
|
|
146
|
+
onClick={ ( event ) => {
|
|
147
|
+
$( event.target )
|
|
148
|
+
.parent().parent().parent()
|
|
149
|
+
.find( 'input' )
|
|
150
|
+
.callback( ( input ) => {
|
|
151
|
+
let Input = input[ 0 ];
|
|
152
|
+
Input.type = Input.type === 'password' ? 'text' : 'password';
|
|
144
153
|
} );
|
|
154
|
+
} }
|
|
155
|
+
>
|
|
156
|
+
<FAI
|
|
157
|
+
icon={ faEye }
|
|
158
|
+
freeCSS={ {
|
|
159
|
+
pointerEvents: 'none'
|
|
145
160
|
} }
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
let Input = input[ 0 ];
|
|
153
|
-
Input.type = Input.type === 'password' ? 'text' : 'password';
|
|
154
|
-
} );
|
|
155
|
-
} }
|
|
156
|
-
>
|
|
157
|
-
<FAI
|
|
158
|
-
icon={ faEye }
|
|
159
|
-
freeCSS={ {
|
|
160
|
-
pointerEvents: 'none'
|
|
161
|
-
} }
|
|
162
|
-
/>
|
|
163
|
-
</Buttons.Button.Normal.R>
|
|
164
|
-
</Input.Comps.RightIndicator>
|
|
165
|
-
}
|
|
166
|
-
{ ...props }
|
|
167
|
-
/>
|
|
168
|
-
);
|
|
161
|
+
/>
|
|
162
|
+
</Buttons.Button.Normal.R>
|
|
163
|
+
</Input.Comps.RightIndicator>
|
|
164
|
+
}
|
|
165
|
+
{ ...props }
|
|
166
|
+
/>;
|
|
169
167
|
},
|
|
170
168
|
Money: {
|
|
171
169
|
JPY: ( props ) => ( <TextInputs.DigitNumber
|
|
@@ -216,11 +214,11 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
|
|
|
216
214
|
</Input.Comps.RightIndicator>
|
|
217
215
|
}
|
|
218
216
|
|
|
219
|
-
return
|
|
217
|
+
return <UniComponent
|
|
220
218
|
componentID={ rawParams.componentID! }
|
|
221
219
|
children={ TimeInput }
|
|
222
220
|
params={ DefaultStyles.Boxish( rawParams ) }
|
|
223
|
-
|
|
221
|
+
/>;
|
|
224
222
|
},
|
|
225
223
|
Clock: ( props ) => ( <TimeInputs.Origin restrict='clock' era='clock' { ...props } /> ),
|
|
226
224
|
Date: ( props ) => ( <TimeInputs.Origin restrict='date' { ...props } /> ),
|
|
@@ -259,7 +257,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
|
|
|
259
257
|
}
|
|
260
258
|
}
|
|
261
259
|
|
|
262
|
-
return
|
|
260
|
+
return <TimeInputs.Origin
|
|
263
261
|
restrict='dateWareki'
|
|
264
262
|
leftIndicator={ <Input.Select
|
|
265
263
|
enableUnSelected={ false }
|
|
@@ -289,7 +287,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
|
|
|
289
287
|
/> }
|
|
290
288
|
{ ...params }
|
|
291
289
|
era={ era }
|
|
292
|
-
|
|
290
|
+
/>;
|
|
293
291
|
},
|
|
294
292
|
Periods: {
|
|
295
293
|
Date: ( props ) => ( <TimeInputs.Origin restrict='dates' { ...props } /> ),
|
|
@@ -310,11 +308,11 @@ const ChipsInputs = ( rawParams: amotify.fn.Input.Chips.PlainParams ) => {
|
|
|
310
308
|
}
|
|
311
309
|
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.Chips.PlainParams;
|
|
312
310
|
|
|
313
|
-
return
|
|
311
|
+
return <UniComponent
|
|
314
312
|
componentID={ rawParams.componentID }
|
|
315
313
|
children={ ChipsInput }
|
|
316
314
|
params={ params }
|
|
317
|
-
|
|
315
|
+
/>;
|
|
318
316
|
};
|
|
319
317
|
ChipsInputs.fn = ChipsInput.fn;
|
|
320
318
|
|
|
@@ -330,11 +328,11 @@ const FileInputs = ( rawParams: amotify.fn.Input.Filer.PlainParams ) => {
|
|
|
330
328
|
} ).className,
|
|
331
329
|
].join( ' ' );
|
|
332
330
|
|
|
333
|
-
return
|
|
331
|
+
return <UniComponent
|
|
334
332
|
componentID={ rawParams.componentID }
|
|
335
333
|
children={ FileInput }
|
|
336
334
|
params={ params }
|
|
337
|
-
|
|
335
|
+
/>;
|
|
338
336
|
}
|
|
339
337
|
FileInputs.fn = FileInput.fn;
|
|
340
338
|
|
|
@@ -344,11 +342,11 @@ export const ListInputs: amotify.fn.Input.List.Methods & {
|
|
|
344
342
|
Origin: ( rawParams ) => {
|
|
345
343
|
rawParams = { ...rawParams }
|
|
346
344
|
let params = DefaultStyles.ListCell( rawParams );
|
|
347
|
-
return
|
|
345
|
+
return <UniComponent
|
|
348
346
|
componentID={ rawParams.componentID }
|
|
349
347
|
children={ ListInput }
|
|
350
348
|
params={ params }
|
|
351
|
-
|
|
349
|
+
/>;
|
|
352
350
|
},
|
|
353
351
|
Radio: ( params ) => ( <ListInputs.Origin
|
|
354
352
|
iconType='radio'
|
|
@@ -366,11 +364,11 @@ export const ListInputs: amotify.fn.Input.List.Methods & {
|
|
|
366
364
|
export const Input: amotify.fn.Input.Methods = {
|
|
367
365
|
Plain: ( params ) => ( <input { ...StyleConverter.ToClassName( params ) } /> ),
|
|
368
366
|
Hidden: ( rawParams ) => {
|
|
369
|
-
return
|
|
367
|
+
return <UniComponent
|
|
370
368
|
componentID={ rawParams.componentID }
|
|
371
369
|
children={ HiddenInput }
|
|
372
370
|
params={ rawParams }
|
|
373
|
-
|
|
371
|
+
/>;
|
|
374
372
|
},
|
|
375
373
|
Text: TextInputs,
|
|
376
374
|
TextArea: ( rawParams ) => {
|
|
@@ -380,11 +378,11 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
380
378
|
|
|
381
379
|
let params = DefaultStyles.Boxish( rawParams );
|
|
382
380
|
params.rows = params.rows || 5;
|
|
383
|
-
return
|
|
381
|
+
return <UniComponent
|
|
384
382
|
componentID={ rawParams.componentID }
|
|
385
383
|
children={ TextAreaInput }
|
|
386
384
|
params={ params }
|
|
387
|
-
|
|
385
|
+
/>;
|
|
388
386
|
},
|
|
389
387
|
DigitCharacters: ( rawParams ) => {
|
|
390
388
|
rawParams = { ...rawParams }
|
|
@@ -413,13 +411,11 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
413
411
|
}
|
|
414
412
|
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.DigitCharacters.PlainParams;
|
|
415
413
|
|
|
416
|
-
return
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
/>
|
|
422
|
-
);
|
|
414
|
+
return <UniComponent
|
|
415
|
+
componentID={ rawParams.componentID }
|
|
416
|
+
children={ DigitCharactersInput }
|
|
417
|
+
params={ params }
|
|
418
|
+
/>;
|
|
423
419
|
},
|
|
424
420
|
Time: TimeInputs,
|
|
425
421
|
Select: ( rawParams ) => {
|
|
@@ -438,13 +434,11 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
438
434
|
|
|
439
435
|
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.Select.PlainParams;
|
|
440
436
|
delete params.rightIconStyles;
|
|
441
|
-
return
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
/>
|
|
447
|
-
);
|
|
437
|
+
return <UniComponent
|
|
438
|
+
componentID={ rawParams.componentID }
|
|
439
|
+
children={ SelectInput }
|
|
440
|
+
params={ params }
|
|
441
|
+
/>;
|
|
448
442
|
},
|
|
449
443
|
Radio: ListInputs.Radio,
|
|
450
444
|
Checkbox: ListInputs.Checkbox,
|
|
@@ -480,23 +474,23 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
480
474
|
Switch: ( rawParams ) => {
|
|
481
475
|
rawParams = { ...rawParams }
|
|
482
476
|
rawParams.color = rawParams.color || 'theme';
|
|
483
|
-
return
|
|
477
|
+
return <UniComponent
|
|
484
478
|
componentID={ rawParams.componentID }
|
|
485
479
|
children={ SwitchInput }
|
|
486
480
|
params={ rawParams }
|
|
487
|
-
|
|
481
|
+
/>;
|
|
488
482
|
},
|
|
489
483
|
Slider: ( rawParams ) => {
|
|
490
484
|
rawParams = { ...rawParams }
|
|
491
|
-
return
|
|
485
|
+
return <UniComponent
|
|
492
486
|
componentID={ rawParams.componentID }
|
|
493
487
|
children={ SliderInput }
|
|
494
488
|
params={ StyleConverter.ToClassName( rawParams ) }
|
|
495
|
-
|
|
489
|
+
/>;
|
|
496
490
|
},
|
|
497
491
|
Checker: ( rawParams ) => {
|
|
498
492
|
rawParams = { ...rawParams }
|
|
499
|
-
return
|
|
493
|
+
return <ListInputs.Origin
|
|
500
494
|
{ ...rawParams }
|
|
501
495
|
tone='plain'
|
|
502
496
|
icon
|
|
@@ -518,14 +512,14 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
518
512
|
value: Value
|
|
519
513
|
} );
|
|
520
514
|
} }
|
|
521
|
-
|
|
515
|
+
/>;
|
|
522
516
|
},
|
|
523
517
|
|
|
524
518
|
Segmented: Segmented,
|
|
525
519
|
|
|
526
520
|
Comps: {
|
|
527
521
|
RequiredSign: ( params ) => {
|
|
528
|
-
return
|
|
522
|
+
return <Span
|
|
529
523
|
fontColor='white'
|
|
530
524
|
fontSize={ '0.xs' }
|
|
531
525
|
padding={ [ '1/4','1/3' ] }
|
|
@@ -533,19 +527,19 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
533
527
|
borderRadius={ '3.tone.tertiary' }
|
|
534
528
|
children={ '必須' }
|
|
535
529
|
{ ...params }
|
|
536
|
-
|
|
530
|
+
/>;
|
|
537
531
|
},
|
|
538
532
|
RequiredShortSign: ( params ) => {
|
|
539
|
-
return
|
|
533
|
+
return <Span
|
|
540
534
|
fontColor='nega'
|
|
541
535
|
padding={ [ '1/4','1/3' ] }
|
|
542
536
|
borderRadius={ '3.tone.tertiary' }
|
|
543
537
|
children={ '*' }
|
|
544
538
|
{ ...params }
|
|
545
|
-
|
|
539
|
+
/>;
|
|
546
540
|
},
|
|
547
541
|
OmitSign: ( params ) => {
|
|
548
|
-
return
|
|
542
|
+
return <Span
|
|
549
543
|
fontColor='white'
|
|
550
544
|
fontSize={ '0.xs' }
|
|
551
545
|
padding={ [ '1/4','1/3' ] }
|
|
@@ -553,7 +547,7 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
553
547
|
backgroundColor='6.layer.darkest'
|
|
554
548
|
children={ '省略可' }
|
|
555
549
|
{ ...params }
|
|
556
|
-
|
|
550
|
+
/>;
|
|
557
551
|
},
|
|
558
552
|
LeftIndicator: ( params ) => {
|
|
559
553
|
let {
|
|
@@ -561,12 +555,12 @@ export const Input: amotify.fn.Input.Methods = {
|
|
|
561
555
|
...others
|
|
562
556
|
} = params;
|
|
563
557
|
|
|
564
|
-
return
|
|
558
|
+
return <Box
|
|
565
559
|
{ ...DefaultStyles.Indicator( tone! ) }
|
|
566
560
|
borderTopRightRadius={ '2/3' }
|
|
567
561
|
borderBottomRightRadius={ '2/3' }
|
|
568
562
|
{ ...others }
|
|
569
|
-
|
|
563
|
+
/>;
|
|
570
564
|
},
|
|
571
565
|
RightIndicator: ( params ) => {
|
|
572
566
|
let {
|
|
@@ -44,12 +44,10 @@ export const TextInput = ( params: TextInputs.Text.Params ) => {
|
|
|
44
44
|
...params
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
47
|
+
return <input
|
|
48
|
+
type="text"
|
|
49
|
+
placeholder='fvdgsbsfgdvs'
|
|
50
|
+
// value={ 'AAAA' }
|
|
51
|
+
{ ...StyleConverter.ToClassName( params ) }
|
|
52
|
+
/>;
|
|
55
53
|
}
|
|
@@ -16,7 +16,7 @@ export const PageNotFound: React.FC<{}> = () => {
|
|
|
16
16
|
|
|
17
17
|
let { href } = location;
|
|
18
18
|
|
|
19
|
-
return
|
|
19
|
+
return <Row.Center
|
|
20
20
|
padding={ [ 4,1 ] }
|
|
21
21
|
>
|
|
22
22
|
<Column
|
|
@@ -74,5 +74,5 @@ export const PageNotFound: React.FC<{}> = () => {
|
|
|
74
74
|
children={ 'ホームに戻る' }
|
|
75
75
|
/>
|
|
76
76
|
</Column>
|
|
77
|
-
</Row.Center
|
|
77
|
+
</Row.Center>;
|
|
78
78
|
}
|
|
@@ -21,9 +21,7 @@ export const PageViewController: React.FC<amotify.fn.Layout.PageViewController.P
|
|
|
21
21
|
let [ val_index,set_index ] = React.useState( viewIndex );
|
|
22
22
|
if ( val_index != viewIndex ) set_index( viewIndex );
|
|
23
23
|
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</>
|
|
28
|
-
);
|
|
24
|
+
return <>
|
|
25
|
+
{ wrapper( views[ viewIndex ] ) }
|
|
26
|
+
</>;
|
|
29
27
|
}
|
|
@@ -18,7 +18,7 @@ export const Plate: React.FC<amotify.fn.Layout.Plate.Params> = ( props ) => {
|
|
|
18
18
|
'MAX': 120,
|
|
19
19
|
}[ size ];
|
|
20
20
|
|
|
21
|
-
return
|
|
21
|
+
return <Box
|
|
22
22
|
margin={ [ 0,'auto' ] }
|
|
23
23
|
width={ 1 }
|
|
24
24
|
{ ...others }
|
|
@@ -26,6 +26,5 @@ export const Plate: React.FC<amotify.fn.Layout.Plate.Params> = ( props ) => {
|
|
|
26
26
|
maxWidth: 12 * Size,
|
|
27
27
|
...others.freeCSS
|
|
28
28
|
} }
|
|
29
|
-
|
|
30
|
-
);
|
|
29
|
+
/>;
|
|
31
30
|
}
|
|
@@ -134,7 +134,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
|
|
|
134
134
|
...others
|
|
135
135
|
} = params;
|
|
136
136
|
|
|
137
|
-
return
|
|
137
|
+
return <Box
|
|
138
138
|
flexSizing={ 'none' }
|
|
139
139
|
className={ [
|
|
140
140
|
className,
|
|
@@ -142,7 +142,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
|
|
|
142
142
|
].join( ' ' ) }
|
|
143
143
|
minHeight='sideNavigationHeight'
|
|
144
144
|
{ ...others }
|
|
145
|
-
|
|
145
|
+
/>;
|
|
146
146
|
},
|
|
147
147
|
FooterNavigation: ( params ) => {
|
|
148
148
|
let {
|
|
@@ -158,7 +158,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
|
|
|
158
158
|
$( document.body ).setStyleProperty( '--footerNavHeight',height + 'px' );
|
|
159
159
|
},[] );
|
|
160
160
|
|
|
161
|
-
return
|
|
161
|
+
return <Flex
|
|
162
162
|
data-id={ val_componentID }
|
|
163
163
|
borderTop
|
|
164
164
|
position='sticky'
|
|
@@ -184,7 +184,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
|
|
|
184
184
|
margin={ 'auto' }
|
|
185
185
|
{ ...others }
|
|
186
186
|
/>
|
|
187
|
-
</Flex
|
|
187
|
+
</Flex>;
|
|
188
188
|
},
|
|
189
189
|
Comps: {
|
|
190
190
|
Button: ( params ) => {
|
|
@@ -28,10 +28,10 @@ type SliderInfoProps = {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export const SwipeView = ( params: amotify.fn.Layout.SwipeView.Params ) => {
|
|
31
|
-
return
|
|
31
|
+
return <Core
|
|
32
32
|
{ ...params }
|
|
33
33
|
slideIndex={ Math.max( Math.min( params.slideIndex!,params.slides.length - 1 ),0 ) }
|
|
34
|
-
|
|
34
|
+
/>;
|
|
35
35
|
}
|
|
36
36
|
export const Core: React.FC<amotify.fn.Layout.SwipeView.Params> = ( params ) => {
|
|
37
37
|
let {
|
|
@@ -173,7 +173,7 @@ export const Core: React.FC<amotify.fn.Layout.SwipeView.Params> = ( params ) =>
|
|
|
173
173
|
|
|
174
174
|
let Index = val_event.index + ( loop ? 1 : 0 );
|
|
175
175
|
|
|
176
|
-
return
|
|
176
|
+
return <Box
|
|
177
177
|
overflow='hidden'
|
|
178
178
|
position='relative'
|
|
179
179
|
{ ...others }
|
|
@@ -209,7 +209,7 @@ export const Core: React.FC<amotify.fn.Layout.SwipeView.Params> = ( params ) =>
|
|
|
209
209
|
} }
|
|
210
210
|
children={ Slides }
|
|
211
211
|
/>
|
|
212
|
-
</Box
|
|
212
|
+
</Box>;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
const FNs = {
|
|
@@ -25,7 +25,7 @@ export const TabBar: React.FC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
|
|
|
25
25
|
if ( componentDidMount ) componentDidMount();
|
|
26
26
|
},[] );
|
|
27
27
|
|
|
28
|
-
return
|
|
28
|
+
return <Flex
|
|
29
29
|
position='relative'
|
|
30
30
|
overflow={ 'auto' }
|
|
31
31
|
flexWrap={ false }
|
|
@@ -56,5 +56,5 @@ export const TabBar: React.FC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
|
|
|
56
56
|
} }
|
|
57
57
|
/>
|
|
58
58
|
</Box>
|
|
59
|
-
</Flex
|
|
59
|
+
</Flex>;
|
|
60
60
|
}
|
|
@@ -326,7 +326,7 @@ const Comps = {
|
|
|
326
326
|
SysStyles.marginLeft = 'auto';
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
return
|
|
329
|
+
return <Box
|
|
330
330
|
className={ [
|
|
331
331
|
style.BB,
|
|
332
332
|
className
|
|
@@ -350,7 +350,7 @@ const Comps = {
|
|
|
350
350
|
...freeCSS
|
|
351
351
|
} }
|
|
352
352
|
children={ $.is.function( Content ) ? <Content /> : Content }
|
|
353
|
-
|
|
353
|
+
/>;
|
|
354
354
|
},
|
|
355
355
|
Edge: ( params: amotify.fn.Sheet.NormalParams ) => {
|
|
356
356
|
let {
|
|
@@ -367,7 +367,7 @@ const Comps = {
|
|
|
367
367
|
...styles
|
|
368
368
|
} = params;
|
|
369
369
|
|
|
370
|
-
return
|
|
370
|
+
return <Box
|
|
371
371
|
opacity='trans'
|
|
372
372
|
transition='long'
|
|
373
373
|
position='relative'
|
|
@@ -397,7 +397,7 @@ const Comps = {
|
|
|
397
397
|
...freeCSS
|
|
398
398
|
} }
|
|
399
399
|
children={ $.is.function( Content ) ? <Content /> : Content }
|
|
400
|
-
|
|
400
|
+
/>;
|
|
401
401
|
},
|
|
402
402
|
Bottom: ( params: amotify.fn.Sheet.Bottom.Params ) => {
|
|
403
403
|
let {
|
|
@@ -554,7 +554,7 @@ const Comps = {
|
|
|
554
554
|
}
|
|
555
555
|
},[ val_stableSize ] );
|
|
556
556
|
|
|
557
|
-
return
|
|
557
|
+
return <Box
|
|
558
558
|
className={ style.BB }
|
|
559
559
|
margin={ [ 0,'auto' ] }
|
|
560
560
|
marginTop={ 'auto' }
|
|
@@ -629,7 +629,7 @@ const Comps = {
|
|
|
629
629
|
children={ $.is.function( Content ) ? <Content /> : Content }
|
|
630
630
|
/>
|
|
631
631
|
</Column>
|
|
632
|
-
</Box
|
|
632
|
+
</Box>;
|
|
633
633
|
},
|
|
634
634
|
Custom: ( params: amotify.fn.Sheet.CustomParams ) => {
|
|
635
635
|
let {
|
|
@@ -728,9 +728,9 @@ const Comps = {
|
|
|
728
728
|
} );
|
|
729
729
|
},[] );
|
|
730
730
|
|
|
731
|
-
if ( !Parent[ 0 ] ) return
|
|
731
|
+
if ( !Parent[ 0 ] ) return null;
|
|
732
732
|
|
|
733
|
-
return
|
|
733
|
+
return <Box
|
|
734
734
|
className={ [
|
|
735
735
|
style.BB,
|
|
736
736
|
style.CustomSheet
|
|
@@ -760,7 +760,7 @@ const Comps = {
|
|
|
760
760
|
children={ $.is.function( Content ) ? <Content /> : Content }
|
|
761
761
|
/>
|
|
762
762
|
</Flex>
|
|
763
|
-
</Box
|
|
763
|
+
</Box>;
|
|
764
764
|
},
|
|
765
765
|
},
|
|
766
766
|
TapSensor: ( params: {
|
|
@@ -866,7 +866,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
|
|
|
866
866
|
src={ $.flatArray( src )[ 0 ] }
|
|
867
867
|
/> );
|
|
868
868
|
} )
|
|
869
|
-
return
|
|
869
|
+
return <Column
|
|
870
870
|
gap={ 0 }
|
|
871
871
|
>
|
|
872
872
|
<Row.Separate
|
|
@@ -918,7 +918,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
|
|
|
918
918
|
{ View }
|
|
919
919
|
</Box> ) }
|
|
920
920
|
/>
|
|
921
|
-
</Column
|
|
921
|
+
</Column>;
|
|
922
922
|
},
|
|
923
923
|
} );
|
|
924
924
|
return;
|
|
@@ -100,6 +100,7 @@ const Cell: React.FC<ElementParams> = ( props ) => {
|
|
|
100
100
|
<Buttons.Button.Clear.R
|
|
101
101
|
color='layer'
|
|
102
102
|
backgroundColor='lcOpLow'
|
|
103
|
+
fontColor='white'
|
|
103
104
|
ssSphere={ 2.5 }
|
|
104
105
|
onClick={ () => {
|
|
105
106
|
SnackBar.remove( snackID );
|
|
@@ -183,9 +184,9 @@ const SnackBarsWrap: React.FC<{}> = () => {
|
|
|
183
184
|
} );
|
|
184
185
|
},[] );
|
|
185
186
|
|
|
186
|
-
let SnackBars = SnackBarElements.map( ( el ) => { return
|
|
187
|
+
let SnackBars = SnackBarElements.map( ( el ) => { return <Cell { ...el } key={ el.snackID } />; } )
|
|
187
188
|
|
|
188
|
-
return
|
|
189
|
+
return <Flex
|
|
189
190
|
className={ style.SnackBarsWrap }
|
|
190
191
|
position='fixed'
|
|
191
192
|
right={ 0 }
|
|
@@ -201,7 +202,7 @@ const SnackBarsWrap: React.FC<{}> = () => {
|
|
|
201
202
|
paddingLeft: 1,
|
|
202
203
|
width: 'auto'
|
|
203
204
|
} }
|
|
204
|
-
|
|
205
|
+
/>;
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
LaunchReactApplication( {
|