amotify 0.2.233 → 0.2.235

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 (55) hide show
  1. package/demo/esbuild/server.ts +2 -2
  2. package/demo/next/next-env.d.ts +1 -0
  3. package/demo/next/next.config.ts +1 -1
  4. package/demo/next/package.json +9 -10
  5. package/dist/@declares/property.d.ts +1 -0
  6. package/dist/@utils/LaunchReactApp.d.ts +5 -3
  7. package/dist/atoms/Box.d.ts +2 -2
  8. package/dist/atoms/Box.js +1 -1
  9. package/dist/atoms/Logo.d.ts +14 -14
  10. package/dist/atoms/Logo.js +3 -3
  11. package/dist/fn/Button.d.ts +37 -3
  12. package/dist/fn/Button.js +1 -1
  13. package/dist/fn/Effect/index.d.ts +2 -2
  14. package/dist/fn/Input/Autocomplete.d.ts +3 -3
  15. package/dist/fn/Input/Autocomplete.js +1 -1
  16. package/dist/fn/Input/CollectForm.d.ts +1 -1
  17. package/dist/fn/Input/CollectForm.js +1 -1
  18. package/dist/fn/Input/Filer.js +1 -1
  19. package/dist/fn/Input/List.d.ts +12 -12
  20. package/dist/fn/Input/List.js +1 -1
  21. package/dist/fn/Input/Search.d.ts +1 -1
  22. package/dist/fn/Input/Search.js +1 -1
  23. package/dist/fn/Input/Segmented.d.ts +7 -7
  24. package/dist/fn/Input/Segmented.js +1 -1
  25. package/dist/fn/Input/Select.d.ts +1 -1
  26. package/dist/fn/Input/TextField.d.ts +1 -1
  27. package/dist/fn/Input/Time/index.d.ts +9 -9
  28. package/dist/fn/Input/Time/index.js +1 -1
  29. package/dist/fn/Input/core.js +1 -1
  30. package/dist/fn/Input/index.d.ts +1 -1
  31. package/dist/fn/Loader/index.d.ts +1 -1
  32. package/dist/fn/Loader/index.js +1 -1
  33. package/dist/fn/Sheet.d.ts +3 -3
  34. package/dist/fn/Sheet.js +1 -1
  35. package/dist/fn/Snackbar.d.ts +3 -3
  36. package/dist/fn/Snackbar.js +1 -1
  37. package/dist/fn/Table/Data.d.ts +1 -1
  38. package/dist/fn/Table/Wrapper.d.ts +1 -1
  39. package/dist/fn/Table/Wrapper.js +1 -1
  40. package/dist/fn/Tooltips.d.ts +1 -1
  41. package/dist/index.d.ts +24 -24
  42. package/dist/mols/List.d.ts +6 -6
  43. package/dist/mols/List.js +1 -1
  44. package/dist/mols/Literal.d.ts +1 -1
  45. package/dist/mols/Literal.js +1 -1
  46. package/package.json +6 -7
  47. package/demo/next/nodemon.json +0 -7
  48. package/demo/next/src/app/(hooks)/useClientEffect.tsx +0 -83
  49. package/demo/next/src/app/(router)/designbook/page.tsx +0 -2891
  50. package/demo/next/src/app/(router)/page.tsx +0 -206
  51. package/demo/next/src/app/apis/test/route.ts +0 -9
  52. package/demo/next/src/app/layout.tsx +0 -26
  53. package/demo/next/src/server/app.ts +0 -42
  54. package/demo/next/src/server/fin.ts +0 -11
  55. package/demo/next/src/server/index.ts +0 -4
@@ -1,2891 +0,0 @@
1
- "use client"
2
-
3
- // import {
4
- // useEffect,
5
- // useState
6
- // } from 'react'
7
-
8
- // import $$ from 'jmini'
9
- // import '../../../../../../dist/index'
10
- // import {
11
- // Column,
12
- // Literal,
13
- // Button,
14
- // Box,
15
- // Input,
16
- // RootViewController
17
- // } from '../../../../../../dist/index'
18
-
19
- export { }
20
- import $$,{ UUID,Filer } from 'jmini'
21
- import React,{
22
- useState,
23
- useEffect
24
- } from 'react'
25
-
26
- import {
27
- DarkMode,
28
- ThemeColor,
29
- ReactElement,
30
- Config,
31
- LaunchReactApp,
32
- ThemeColors,
33
- Box,
34
- Span,
35
- Grid,
36
- Flex,
37
- FAI,
38
- Img,
39
- Logo,
40
- Column,
41
- List,
42
- ListItem,
43
- Accordion,
44
- Row,
45
- Literal,
46
- PageViewController,
47
- SwipeView,
48
- TabBar,
49
- Plate,
50
- Table,
51
- Input,
52
- Button,
53
- Anchor,
54
- Label,
55
- Sheet,
56
- Snackbar,
57
- Tooltips,
58
- Tips,
59
- Loader,
60
- Effect,
61
- Cropper,
62
- RootViewController,
63
- StyleTags,
64
- Roundness,
65
- Card
66
- } from '../../../../../../dist/index'
67
-
68
- const Basic = {
69
- index: () => {
70
- return <>
71
- <Basic.Fonts />
72
- <Basic.Box />
73
- <Basic.Flex />
74
- <Basic.Grid />
75
- <Basic.Others />
76
- </>
77
- },
78
- Fonts: () => {
79
- return <Card padding={ 1 }>
80
- <Column>
81
- <Literal.SubTitle>Fonts</Literal.SubTitle>
82
- <Box overflow={ 'auto' }>
83
- <Column>
84
- <Row.Left
85
- ssCardBox
86
- padding={ 1.5 }
87
- >
88
- [GrayColor]
89
- <Box fontColor='1.clear'>1.clear</Box>
90
- <Box fontColor='2.normal'>2.normal</Box>
91
- <Box fontColor='3.blur'>3.blur</Box>
92
- <Box fontColor='4.thin'>4.thin</Box>
93
- <Box fontColor='5.translucent'>5.translucent</Box>
94
- <Box fontColor='6.clear'>6.clear</Box>
95
- </Row.Left>
96
- <Row.Left
97
- ssCardBox='plain'
98
- padding={ 1.5 }
99
- backgroundColor='dark'
100
- >
101
- <Box fontColor='white'>[GrayColor in Dark]</Box>
102
- <Box fontColor='1.clear'>1.clear</Box>
103
- <Box fontColor='2.normal'>2.normal</Box>
104
- <Box fontColor='3.blur'>3.blur</Box>
105
- <Box fontColor='4.thin'>4.thin</Box>
106
- <Box fontColor='5.translucent'>5.translucent</Box>
107
- <Box fontColor='6.clear'>6.clear</Box>
108
- </Row.Left>
109
- <Column ssCardBox padding={ 1.5 }>
110
- <Box>[size:Landing]</Box>
111
- <Box isSemiBoldFont fontSize='7.landing'>
112
- Visualize Your <Span fontColor='theme'>
113
- Colors
114
- </Span> On a Real Website
115
- </Box>
116
- </Column>
117
- <Column ssCardBox padding={ 1.5 }>
118
- <Box>[size:Title]</Box>
119
- <Box fontSize='6.title'>
120
- 令和4年度の国民負担率を公表します
121
- </Box>
122
- </Column>
123
- <Column ssCardBox padding={ 1.5 }>
124
- <Box>[size:Subtitle]</Box>
125
- <Box fontSize='5.subTitle'>
126
- 支払いを受け付ける
127
- </Box>
128
- </Column>
129
- <Column ssCardBox padding={ 1.5 }>
130
- <Box>[size:Thirdtitle]</Box>
131
- <Box fontSize='4.thirdTitle'>
132
- 租税負担率と社会保障負担率を合計した国民負担率について、令和4年度の見通しを推計しましたので、公表します。
133
- </Box>
134
- </Column>
135
- <Column ssCardBox padding={ 1.5 }>
136
- <Box>[size:Paragraph]</Box>
137
- <Literal.Paragraph>
138
- <Literal.Description>
139
- { `This article discusses performance best practices for fonts.
140
- There are a variety of ways in which web fonts impact performance`}
141
- </Literal.Description>
142
- </Literal.Paragraph>
143
- </Column>
144
- <Column ssCardBox padding={ 1.5 }>
145
- <Box>[size:Normal]</Box>
146
- <Literal>
147
- 効率的で持続可能な財政への転換を図り、この財政構造を各般の構造改革とともに推進することで、民間需要主導の持続的経済成長の実現を目指します。
148
- 少子・高齢化、国際化など経済社会の構造変化に対応できる21世紀のあるべき税制をきずきます。
149
- 財政投融資は、行財政改革の趣旨を踏まえ、民間ではできない分野・事業などに重点化を行い、真に政策的に必要な資金需要には的確に対応します。
150
- 金融庁と協力し、金融のセーフティネットを整備し、金融危機に素早く対応するなど、金融システムの安定の確保を目指します。
151
- 国際的な協力等に積極的に取り組むことにより、国際通貨システムの安定・国際貿易の秩序ある発展を目指します。
152
- </Literal>
153
- </Column>
154
- <Column ssCardBox padding={ 1.5 }>
155
- <Box>[size:Mini]</Box>
156
- <Literal.Supplement>
157
- Copyright © Ministry of Finance Japan. All Rights Reserved.
158
- </Literal.Supplement>
159
- </Column>
160
- <Column ssCardBox padding={ 1.5 }>
161
- <Box>[size:Micro]</Box>
162
- <Literal.Supplement fontSize='0.xs'>
163
- Copyright © Ministry of Finance Japan. All Rights Reserved.
164
- </Literal.Supplement>
165
- </Column>
166
- </Column>
167
- </Box>
168
- </Column>
169
- </Card>
170
- },
171
- Box: () => {
172
- return <Box ssCardBox>
173
- <Literal.SubTitle borderBottom padding={ 1 }>
174
- Box
175
- </Literal.SubTitle>
176
- <Box padding={ 1 } overflow={ 'auto' }>
177
- <Table.Normal
178
- ssCardBox={ false }
179
- borderRadius={ 0 }
180
- height={ 1 }
181
- tone='cellBorder'
182
- colLength={ 2 }
183
- head={ false }
184
- rows={ [
185
- [
186
- {
187
- children: <Literal.Description>
188
- { `<Box>
189
- helloWorld!!
190
- </Box>`}
191
- </Literal.Description>
192
- },{
193
- children: <Box> helloWorld!! </Box>
194
- }
195
- ],[
196
- {
197
- children: <Literal.Description>
198
- { `<Box
199
- children={ 'helloWorld!!' }
200
- />`}
201
- </Literal.Description>
202
- },{
203
- children: <Box children={ 'helloWorld!!' } />
204
- },
205
- ],[
206
- {
207
- children: <Literal.Description>
208
- { `<Box
209
- fontColor={ '4.thin' }
210
- padding={ 1 }
211
- margin={ 1 }
212
- textAlign='center'
213
- borderRadius={ 2 }
214
- border={ 'normal' }
215
- children={ 'styleBox' }
216
- />
217
- `}
218
- </Literal.Description>
219
- },{
220
- children: <Box
221
- fontColor={ '4.thin' }
222
- padding={ 1 }
223
- margin={ 1 }
224
- textAlign={ 'center' }
225
- borderRadius={ 2 }
226
- border
227
- children={ 'styleBox' }
228
- />
229
- }
230
- ]
231
- ] }
232
- />
233
- </Box>
234
- </Box>
235
- },
236
- Flex: () => {
237
- return <Box ssCardBox>
238
- <Literal.SubTitle borderBottom padding={ 1 }>
239
- Flex
240
- </Literal.SubTitle>
241
- <Box padding={ 1 } overflow={ 'auto' }>
242
- <Table.Normal
243
- ssCardBox={ false }
244
- borderRadius={ 0 }
245
- height={ 1 }
246
- colLength={ 2 }
247
- tone='cellBorder'
248
- head={ false }
249
- rows={ [
250
- [
251
- {
252
- children: <Literal.Description>
253
- {
254
- `<Flex flexType='row' gap={ 1 }>
255
- <Box children={ 'FlexBox1' } />
256
- <Box children={ 'FlexBox2' } />
257
- <Box children={ 'FlexBox3' } />
258
- <Box flexSizing={ 'auto' } children={ 'FlexBox3' } />
259
- </Flex>`
260
- }
261
- </Literal.Description>
262
- },{
263
- children: <Flex
264
- gap={ 1 }
265
- flexType='row'
266
- fontColor='theme'
267
- >
268
- <Card.Plain flexCenter padding={ 1 } backgroundColor='theme.opa.low'>FlexBox1</Card.Plain>
269
- <Card.Plain flexCenter padding={ 1 } backgroundColor={ 'theme.opa.middle' }>FlexBox2</Card.Plain>
270
- <Card.Plain flexCenter padding={ 1 } backgroundColor='theme.opa.high'>FlexBox3</Card.Plain>
271
- <Card.Plain flexCenter flexSizing={ 'auto' } padding={ 1 } backgroundColor='theme.opa.high'>FlexBox4</Card.Plain>
272
- </Flex>
273
- },
274
- ],[
275
- {
276
- children: <Literal.Description textAlign='left'>
277
- { `<Flex
278
- flexType='col'
279
- flexChilds={ 'auto' }
280
- >
281
- <Box />
282
- <Box />
283
- ...
284
- </Flex>`}
285
- </Literal.Description>
286
- },{
287
- children: <>
288
- <Flex gap={ 1 } flexCenter>
289
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme.lightest' />
290
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme.lighter' />
291
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme.lighten' />
292
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme' />
293
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme.darken' />
294
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme.darker' />
295
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='theme.darkest' />
296
- </Flex>
297
- <Flex gap={ 1 } flexCenter>
298
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='layer.1' />
299
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='layer.2' />
300
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='layer.3' />
301
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='layer.4' />
302
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='layer.5' />
303
- <Box flexCenter ssSphere={ 3 } boxShadow='0.normal' backgroundColor='layer.6' />
304
- </Flex>
305
- </>
306
- },
307
- ],[
308
- {
309
- children: <Literal.Description>
310
- {
311
- `<Flex gap={ 1 }>
312
- <Box flexGrid={ 2 } ... />
313
- <Box flexGrid={ 3 } ... />
314
- <Box flexGrid={ 4 } ... />
315
- </Flex>`
316
- }
317
- </Literal.Description>
318
- },{
319
- children: <Flex gap={ 1 } fontColor='white'>
320
- <Card.Plain flexCenter padding={ 1 } backgroundColor='posi' flexGrid={ 2 }>Box1</Card.Plain>
321
- <Card.Plain flexCenter padding={ 1 } backgroundColor='nega' flexGrid={ 3 }>Box2</Card.Plain>
322
- <Card.Plain flexCenter padding={ 1 } backgroundColor='warn' flexGrid={ 4 }>Box3</Card.Plain>
323
- </Flex>
324
- },
325
- ]
326
- ] }
327
- />
328
- </Box>
329
- </Box>
330
- },
331
- Grid: () => {
332
- return <Box ssCardBox>
333
- <Literal.SubTitle borderBottom padding={ 1 }>
334
- Grid
335
- </Literal.SubTitle>
336
- <Box style={ { padding: 1,overflow: 'auto' } }>
337
- <Table.Normal
338
- ssCardBox={ false }
339
- height={ 1 }
340
- backgroundColor='nega'
341
- borderRadius={ 0 }
342
- colLength={ 2 }
343
- tone='cellBorder'
344
- head={ false }
345
- rows={ [
346
- [
347
- {
348
- children: <Literal.Description>
349
- {
350
- `<Grid gridCols={ 3 } gap={ 1 }>
351
- <Box children={ 'GridBox1' } />
352
- <Box children={ 'GridBox2' } />
353
- <Box children={ 'GridBox3' } />
354
- <Box children={ 'GridBox4' } />
355
- <Box children={ 'GridBox5' } />
356
- <Box children={ 'GridBox6' } />
357
- </Grid>`
358
- }
359
- </Literal.Description>
360
- },{
361
- children: <Grid gridCols={ 3 } gap={ 1 }>
362
- <Card.Plain padding={ 1 } backgroundColor='layer.1'>GridBox1</Card.Plain>
363
- <Card.Plain padding={ 1 } backgroundColor='layer.2'>GridBox2</Card.Plain>
364
- <Card.Plain padding={ 1 } backgroundColor='layer.3'>GridBox3</Card.Plain>
365
- <Card.Plain padding={ 1 } backgroundColor='layer.4'>GridBox4</Card.Plain>
366
- <Card.Plain padding={ 1 } backgroundColor='layer.5'>GridBox5</Card.Plain>
367
- <Card.Plain padding={ 1 } backgroundColor='layer.6'>GridBox6</Card.Plain>
368
- </Grid>
369
- },
370
- ]
371
- ] }
372
- />
373
- </Box>
374
- </Box>
375
- },
376
- Others: () => {
377
- return <Box ssCardBox>
378
- <Literal.SubTitle borderBottom padding={ 1 }>
379
- Others
380
- </Literal.SubTitle>
381
- <Box padding={ 1 } overflow={ 'auto' }>
382
- <Table.Normal
383
- ssCardBox={ false }
384
- height={ 1 }
385
- borderRadius={ 0 }
386
- colLength={ 2 }
387
- tone='cellBorder'
388
- head={ false }
389
- rows={ [
390
- [
391
- {
392
- children: <>
393
- <Literal.Description>
394
- {
395
- `
396
- <Button.Label
397
- htmlFor='testAccordion'
398
- type='sub'
399
- children={ 'ToggleButton' }
400
- />
401
- <Accordion
402
- id='testAccordion'
403
- open
404
- children={
405
- <>
406
- in Accordion Element
407
- </>
408
- }
409
- />`
410
- }
411
- </Literal.Description>
412
- </>
413
- },{
414
- children: <Column>
415
- <Label.Sub
416
- children={ 'ToggleButton' }
417
- onClick={ () => {
418
- Accordion.fn.toggle( 'testAccordion' )
419
- } }
420
- />
421
- <Accordion
422
- accordionID={ 'testAccordion' }
423
- defaultOpen
424
- >
425
- in Accordion Element
426
- </Accordion>
427
- </Column>
428
- }
429
- ],[
430
- {
431
- children: <Literal.Description>
432
- {
433
- `
434
- <Img
435
- maxheight={ 8 }
436
- maxWidth={ 8 }
437
- src='...'
438
- alt='noImage'
439
- />
440
- `
441
- }
442
- </Literal.Description>
443
- },{
444
- children: <Row.Center>
445
- <Column
446
- ssCardBox
447
- gap={ 0 }
448
- overflow={ 'hidden' }
449
- >
450
- <Box>
451
- <Img
452
- className='test'
453
- src={ Logo.Images.defaultIcon( 'user' ) }
454
- alt='noImage'
455
- freeCSS={ {
456
- maxHeight: 12 * 8,
457
- maxWidth: 12 * 8
458
- } }
459
- />
460
- </Box>
461
- <Literal
462
- padding={ 1 }
463
- borderTop
464
- >
465
- Image
466
- </Literal>
467
- </Column>
468
- </Row.Center>
469
- }
470
- ]
471
- ] }
472
- />
473
- </Box>
474
- </Box>
475
- }
476
- }
477
- const Logos = {
478
- index: () => {
479
- return <Row.Left flexWrap flexChilds='auto'>
480
- <Logos.Mingoo />
481
- <Logos.Google />
482
- <Logos.Facebook />
483
- <Logos.Line />
484
- <Logos.Twitter />
485
- </Row.Left>
486
- },
487
- Mingoo: () => {
488
- return <Card>
489
- <Literal.SubTitle borderBottom padding={ 1 }>
490
- Mingoo
491
- </Literal.SubTitle>
492
- <Box padding={ 1 } overflow={ 'auto' }>
493
- <Row.Center
494
- gap={ 2 }
495
- padding={ 2 }
496
- flexType='col'
497
- >
498
- <Logo.Brands.MingooIcon size='S' />
499
- <Logo.Brands.MingooIcon size='R' />
500
- <Logo.Brands.MingooIcon size='L' />
501
- <Logo.Brands.MingooIcon size='2L' />
502
- <Logo.Brands.MingooIcon size='3L' />
503
- </Row.Center>
504
- </Box>
505
- </Card>
506
- },
507
- Google: () => {
508
- return <Card>
509
- <Literal.SubTitle borderBottom padding={ 1 }>Google</Literal.SubTitle>
510
- <Box padding={ 1 } overflow={ 'auto' }>
511
- <Row.Center flexType='col' gap={ 2 } padding={ 2 }>
512
- <Logo.Brands.Google size='S' />
513
- <Logo.Brands.Google size='R' />
514
- <Logo.Brands.Google size='L' />
515
- <Logo.Brands.Google size='2L' />
516
- <Logo.Brands.Google size='3L' />
517
- </Row.Center>
518
- </Box>
519
- </Card>
520
- },
521
- Facebook: () => {
522
- return <Card>
523
- <Literal.SubTitle borderBottom padding={ 1 }>Facebook</Literal.SubTitle>
524
- <Box padding={ 1 } overflow={ 'auto' }>
525
- <Row.Center flexType='col' gap={ 2 } padding={ 2 }>
526
- <Logo.Brands.Facebook size='S' />
527
- <Logo.Brands.Facebook size='R' />
528
- <Logo.Brands.Facebook size='L' />
529
- <Logo.Brands.Facebook size='2L' />
530
- <Logo.Brands.Facebook size='3L' />
531
- </Row.Center>
532
- </Box>
533
- </Card>
534
- },
535
- Line: () => {
536
- return <Card>
537
- <Literal.SubTitle borderBottom padding={ 1 }>LINE</Literal.SubTitle>
538
- <Box padding={ 1 } overflow={ 'auto' }>
539
- <Row.Center flexType='col' gap={ 2 } padding={ 2 }>
540
- <Logo.Brands.LINE size='S' />
541
- <Logo.Brands.LINE size='R' />
542
- <Logo.Brands.LINE size='L' />
543
- <Logo.Brands.LINE size='2L' />
544
- <Logo.Brands.LINE size='3L' />
545
- </Row.Center>
546
- </Box>
547
- </Card>
548
- },
549
- Twitter: () => {
550
- return <Card>
551
- <Literal.SubTitle borderBottom padding={ 1 }>Twitter</Literal.SubTitle>
552
- <Box padding={ 1 } overflow={ 'auto' }>
553
- <Row.Center flexType='col' gap={ 2 } padding={ 2 }>
554
- <Logo.Brands.Twitter size='S' />
555
- <Logo.Brands.Twitter size='R' />
556
- <Logo.Brands.Twitter size='L' />
557
- <Logo.Brands.Twitter size='2L' />
558
- <Logo.Brands.Twitter size='3L' />
559
- </Row.Center>
560
- </Box>
561
- </Card>
562
- }
563
- }
564
- const Effections = {
565
- index: () => {
566
- return <>
567
- <Effections.Ripple />
568
- <Effections.Variables />
569
- <Effections.Tooltips />
570
- <Effections.Snackbar />
571
- </>
572
- },
573
- Ripple: () => {
574
- return <Box ssCardBox>
575
- <Literal.SubTitle borderBottom padding={ 1 }>
576
- Ripple
577
- </Literal.SubTitle>
578
- <Column padding={ 2 }>
579
- <Literal.Description>
580
- {
581
- `<Element
582
- ssEffectsOnActive={ 'ripple.( cloud | theme | nega | posi | warn )' }
583
- />`
584
- }
585
- </Literal.Description>
586
- <Row.Center>
587
- <Box
588
- ssCardBox
589
- padding={ 1 }
590
- ssEffectsOnActive={ 'ripple.theme' }
591
- >
592
- DIV
593
- </Box>
594
- <Button.Prime ssEffectsOnActive={ 'ripple.white' }>
595
- White
596
- </Button.Prime>
597
- <Button.Border ssEffectsOnActive={ 'ripple.cloud' }>
598
- Cloud
599
- </Button.Border>
600
- <Button.Border ssEffectsOnActive={ 'ripple.theme' }>
601
- Theme
602
- </Button.Border>
603
- </Row.Center>
604
- </Column>
605
- </Box>
606
- },
607
- Variables: () => {
608
- return <Box ssCardBox>
609
- <Literal.SubTitle borderBottom padding={ 1 }>
610
- Effects
611
- </Literal.SubTitle>
612
- <Column padding={ 2 }>
613
- <Literal.Description>
614
- {
615
- `<Button
616
- ssEffectsOnActive={ 'shrink' }
617
- />`
618
- }
619
- </Literal.Description>
620
- <Row.Left>
621
- <Button
622
- onClick={ () => {
623
- Loader.fn.mini.active( 'testLoadingKey' )
624
- setTimeout( () => {
625
- Loader.fn.stopALL()
626
- },5000 )
627
- } }
628
- >
629
- <Row.Center gap={ 0 }>
630
- <Loader.White.S
631
- loaderID='testLoadingKey'
632
- marginRight={ 1 }
633
- />
634
- <Box textAlign='left'>
635
- Launch Mini Loader
636
- </Box>
637
- </Row.Center>
638
- </Button>
639
- </Row.Left>
640
- <Row.Left>
641
- <Button.Border ssEffectsOnActive={ 'shrink' }>
642
- Shrink
643
- </Button.Border>
644
- <Button.Border ssEffectsOnActive={ 'pudding' }>
645
- Pudding
646
- </Button.Border>
647
- <Button.Border ssEffectsOnActive={ 'expand' }>
648
- Expand
649
- </Button.Border>
650
- <Button.Border ssEffectsOnActive={ 'push' }>
651
- Push
652
- </Button.Border>
653
- <Button.Border
654
- children={ 'corner Loader' }
655
- onClick={ () => {
656
- Loader.fn.corner.active()
657
- setTimeout( () => {
658
- Loader.fn.corner.stop()
659
- },3000 )
660
- } }
661
- />
662
- </Row.Left>
663
- </Column>
664
- </Box>
665
- },
666
- Tooltips: () => {
667
- return <Box ssCardBox>
668
- <Literal.SubTitle borderBottom padding={ 1 }>
669
- Tooltips
670
- </Literal.SubTitle>
671
- <Column padding={ 2 }>
672
- <Button
673
- onContextMenu={ event => {
674
- event.preventDefault()
675
- Tooltips.open( {
676
- tipsID: 'testTooltips',
677
- event,
678
- nextToCursor: true,
679
- gravityPoint: 10,
680
- closeAtParentBlur: false,
681
- padding: 0,
682
- freeCSS: {
683
- minWidth: 12 * 16
684
- },
685
- content: <Column
686
- ssCardBox
687
- gap={ 0 }
688
- borderRadius={ '3.tone.tertiary' }
689
- padding={ '1/2' }
690
- >
691
- <Button.Clear.S color='cloud' fontColor='2.normal' textAlign='left'>
692
- Button Label1
693
- </Button.Clear.S>
694
- <Button.Clear.S color='cloud' fontColor='2.normal' textAlign='left'>
695
- Button Label2
696
- </Button.Clear.S>
697
- <Button.Clear.S color='cloud' fontColor='2.normal' textAlign='left'>
698
- Button Label3
699
- </Button.Clear.S>
700
- <Button.Clear.S color='cloud' fontColor='2.normal' textAlign='left'>
701
- Button Label4
702
- </Button.Clear.S>
703
- <Button.Clear.S color='cloud' fontColor='2.normal' textAlign='left'>
704
- Button Label5
705
- </Button.Clear.S>
706
- </Column>
707
- } )
708
- } }
709
- >
710
- OpenTooltips next to cursor
711
- <br />
712
- ( onContextMenu )
713
- </Button>
714
- <Grid gridCols={ 5 } gap={ 1 }>
715
- {
716
- Array.from( { length: 25 } ).map( ( a,index ) => {
717
- return <Button.Border
718
- key={ index }
719
- onMouseOver={ event => {
720
- Tooltips.open( {
721
- tipsID: 'tips-' + ( index + 1 ),
722
- event,
723
- gravityPoint: index + 1,
724
- closeAtParentBlur: false,
725
- padding: 0,
726
- content: <Tooltips.Body
727
- key={ index }
728
- >
729
- { ( index + 1 ).zeroEmbed( 2 ) }
730
- </Tooltips.Body>
731
- } )
732
- } }
733
- >
734
- { index + 1 }
735
- </Button.Border>
736
- } )
737
- }
738
- </Grid>
739
- </Column>
740
- </Box >
741
- },
742
- Snackbar: () => {
743
- return <Box ssCardBox>
744
- <Literal.SubTitle borderBottom padding={ 1 }>
745
- Snackbars
746
- </Literal.SubTitle>
747
- <Row.Center padding={ 2 }>
748
- <Button
749
- onClick={ () => {
750
- Snackbar.add( {
751
- secondsToClose: 3,
752
- // snackID: 'testSnackID0',
753
- children: 'hello World!!'
754
- } )
755
- } }
756
- >
757
- Add Normal Snackbar
758
- </Button>
759
- <Button
760
- onClick={ () => {
761
- Snackbar.add( {
762
- snackID: 'testSnackID1',
763
- secondsToClose: 30,
764
- children: <Row.Separate
765
- verticalAlign='baseline'
766
- paddingLeft={ '2/3' }
767
- >
768
- 予約時間が更新されました
769
- <Button.Sub.S
770
- color='white'
771
- fontColor='posi'
772
- >
773
- 元に戻す
774
- </Button.Sub.S>
775
- </Row.Separate>
776
- } )
777
- } }
778
- >
779
- Notices
780
- </Button>
781
- <Button
782
- onClick={ () => {
783
- let snackID = UUID()
784
- Snackbar.add( {
785
- snackID: snackID,
786
- children: <Column>
787
- <Row.Left verticalAlign='top'>
788
- <Img
789
- src={ Logo.Images.defaultIcon( 'user' ) }
790
- ssSphere={ 4 }
791
- />
792
- <Literal.Description>
793
- { `Some Text
794
- Some Text
795
- Some Text`}
796
- </Literal.Description>
797
- </Row.Left>
798
- <Row.Separate>
799
- <Button.Sub.S
800
- color='white'
801
- onClick={ () => {
802
- Snackbar.remove( snackID )
803
- } }
804
- >
805
- 閉じる
806
- </Button.Sub.S>
807
- <Anchor.Prime.S
808
- href=''
809
- >
810
- 詳細
811
- </Anchor.Prime.S>
812
- </Row.Separate>
813
- </Column>
814
- } )
815
- } }
816
- >
817
- Message
818
- </Button>
819
- </Row.Center>
820
- </Box>
821
- }
822
- }
823
- const Buttons = {
824
- index: () => {
825
- return <>
826
- <Buttons.Types />
827
- <Buttons.Tone />
828
- </>
829
- },
830
- Tone: () => {
831
- return <Box ssCardBox>
832
- <Literal.SubTitle borderBottom padding={ 1 }>
833
- Tone
834
- </Literal.SubTitle>
835
- <Box padding={ 1 } overflow={ 'auto' }>
836
- <Grid gridCols={ 2 } gap={ 2 }>
837
- <Box>
838
- <Box padding={ 1 } isBoldFont fontSize='3.paragraph'>
839
- ・Prime
840
- </Box>
841
- <Grid gridCols={ 3 } padding={ 1 } gap={ 1 }>
842
- <Button
843
- color='theme'
844
- children={ 'theme' }
845
- />
846
- <Button
847
- backgroundColor='coffee'
848
- children={ 'posi' }
849
- />
850
- <Button
851
- backgroundColor='ninja'
852
- children={ 'nega' }
853
- />
854
- <Button
855
- backgroundColor='droplet'
856
- children={ 'warn' }
857
- />
858
- <Button
859
- backgroundColor='googleBlue'
860
- children={ 'mono' }
861
- />
862
- <Button
863
- backgroundColor='poizon'
864
- >
865
- pozion
866
- </Button>
867
- </Grid>
868
- </Box>
869
- <Box>
870
- <Box padding={ 1 } isBoldFont fontSize='3.paragraph'>
871
- ・Sub
872
- </Box>
873
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 }>
874
- <Button.Sub
875
- color='theme'
876
- children={ 'theme' }
877
- />
878
- <Button.Sub
879
- color='posi'
880
- children={ 'posi' }
881
- />
882
- <Button.Sub
883
- color='nega'
884
- children={ 'nega' }
885
- />
886
- <Button.Sub
887
- color='warn'
888
- children={ 'warn' }
889
- />
890
- <Button.Sub
891
- color='cloud'
892
- children={ 'cloud' }
893
- />
894
- </Grid>
895
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 } ssCardBox backgroundColor='dark'>
896
- <Button.Sub
897
- color='white'
898
- children={ 'white' }
899
- />
900
- <Button.Sub
901
- color='cloud'
902
- children={ 'cloud' }
903
- />
904
- </Grid>
905
- </Box>
906
- <Box>
907
- <Box padding={ 1 } isBoldFont fontSize='3.paragraph'>
908
- ・Clear
909
- </Box>
910
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 }>
911
- <Button.Clear
912
- color='theme'
913
- children={ 'theme' }
914
- />
915
- <Button.Clear
916
- color='posi'
917
- children={ 'posi' }
918
- />
919
- <Button.Clear
920
- color='nega'
921
- children={ 'nega' }
922
- />
923
- <Button.Clear
924
- color='warn'
925
- children={ 'warn' }
926
- />
927
- <Button.Clear
928
- color='cloud'
929
- children={ 'cloud' }
930
- />
931
- </Grid>
932
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 } ssCardBox backgroundColor='dark'>
933
- <Button.Clear
934
- color='white'
935
- children={ 'white' }
936
- />
937
- <Button.Clear
938
- color='cloud'
939
- children={ 'cloud' }
940
- />
941
- </Grid>
942
- </Box>
943
- <Box>
944
- <Box padding={ 1 } isBoldFont fontSize='3.paragraph'>
945
- ・FillToBorder
946
- </Box>
947
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 }>
948
- <Button.FillToBorder
949
- color='theme'
950
- children={ 'theme' }
951
- />
952
- <Button.FillToBorder
953
- color='posi'
954
- children={ 'posi' }
955
- />
956
- <Button.FillToBorder
957
- color='nega'
958
- children={ 'nega' }
959
- />
960
- <Button.FillToBorder
961
- color='warn'
962
- children={ 'warn' }
963
- />
964
- </Grid>
965
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 } ssCardBox backgroundColor='dark'>
966
- <Button.FillToBorder
967
- color='white'
968
- children={ 'white' }
969
- />
970
- <Button.FillToBorder
971
- color='cloud'
972
- children={ 'cloud' }
973
- />
974
- </Grid>
975
- </Box>
976
- <Box>
977
- <Box padding={ 1 } isBoldFont fontSize='3.paragraph'>
978
- ・BorderToFill
979
- </Box>
980
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 }>
981
- <Button.BorderToFill
982
- color='theme'
983
- fontColor='nega'
984
- >
985
- <Box>
986
- theme
987
- </Box>
988
- </Button.BorderToFill>
989
- <Button.BorderToFill
990
- color='posi'
991
- >
992
- posi
993
- </Button.BorderToFill>
994
- <Button.BorderToFill
995
- color='nega'
996
- >
997
- nega
998
- </Button.BorderToFill>
999
- <Button.BorderToFill
1000
- color='warn'
1001
- >
1002
- warn
1003
- </Button.BorderToFill>
1004
- </Grid>
1005
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 } ssCardBox backgroundColor='dark'>
1006
- <Button.BorderToFill
1007
- color='white'
1008
- children={ 'white' }
1009
- />
1010
- <Button.BorderToFill
1011
- color='cloud'
1012
- children={ 'cloud' }
1013
- />
1014
- </Grid>
1015
- </Box>
1016
- <Box>
1017
- <Box padding={ 1 } isBoldFont fontSize='3.paragraph'>
1018
- ・Others
1019
- </Box>
1020
- <Grid gridCols={ 3 } gap={ 1 } padding={ 1 }>
1021
- <Button.Border
1022
- children={ 'Border' }
1023
- />
1024
-
1025
- <Button.Normal
1026
- children={ 'Normal' }
1027
- />
1028
-
1029
- <Button.Link
1030
- children={ 'Link' }
1031
- />
1032
- <Button.Plain
1033
- children={ 'Plain' }
1034
- />
1035
- </Grid>
1036
- </Box>
1037
- </Grid>
1038
- </Box>
1039
- </Box>
1040
- },
1041
- Types: () => {
1042
- return <Flex gap={ 2 } flexChilds='auto'>
1043
- <Box ssCardBox>
1044
- <Literal.ThirdTitle borderBottom padding={ 1 }>
1045
- ・Button
1046
- </Literal.ThirdTitle>
1047
- <Box padding={ 1 } overflow={ 'auto' }>
1048
- <List
1049
- items={ [
1050
- <>
1051
- <Button.Prime>
1052
- Button.Prime
1053
- </Button.Prime>
1054
- </>,<>
1055
- <Button.Sub>
1056
- Button.Sub
1057
- </Button.Sub>
1058
- </>,<>
1059
- <Button.Border>
1060
- Button.Border
1061
- </Button.Border>
1062
- </>
1063
- ] }
1064
- />
1065
- </Box>
1066
- </Box>
1067
- <Box ssCardBox>
1068
- <Literal.ThirdTitle borderBottom padding={ 1 }>
1069
- ・Label
1070
- </Literal.ThirdTitle>
1071
- <Box padding={ 1 } overflow={ 'auto' }>
1072
- <List
1073
- ListChildCallback={ ( { children } ) => {
1074
- return <Column
1075
- gap={ '1/3' }
1076
- padding={ [ 1,0 ] }
1077
- horizontalAlign='between'
1078
- borderBottom='2.normal'
1079
- >
1080
- { children }
1081
- </Column>
1082
- } }
1083
- items={ [
1084
- <>
1085
- Label.Prime
1086
- <Label.Prime>
1087
- Label.Prime
1088
- </Label.Prime>
1089
- </>,<>
1090
- Label.Sub
1091
- <Label.Sub>
1092
- Label.Sub
1093
- </Label.Sub>
1094
- </>,<>
1095
- Label.Border
1096
- <Label.Border>
1097
- Label.Border
1098
- </Label.Border>
1099
- </>
1100
- ] }
1101
- />
1102
- </Box>
1103
- </Box>
1104
- <Box ssCardBox>
1105
- <Literal.ThirdTitle borderBottom padding={ 1 }>
1106
- ・Anchor
1107
- </Literal.ThirdTitle>
1108
- <Box padding={ 1 } overflow={ 'auto' }>
1109
- <List
1110
- ListChildCallback={ ( { children } ) => {
1111
- return <Column
1112
- gap={ '1/3' }
1113
- padding={ [ 1,0 ] }
1114
- horizontalAlign='between'
1115
- borderBottom='2.normal'
1116
- >
1117
- { children }
1118
- </Column>
1119
- } }
1120
- items={ [
1121
- <>
1122
- Button.Anchor.Prime
1123
- <Anchor.Prime
1124
- href=""
1125
- >
1126
- Anchor.Prime
1127
- </Anchor.Prime>
1128
- </>,<>
1129
- Button.Anchor.Sub
1130
- <Anchor.Sub
1131
- href=""
1132
- >
1133
- Anchor.Sub
1134
- </Anchor.Sub>
1135
- </>,<>
1136
- Button.Anchor.Border
1137
- <Anchor.Border
1138
- href=""
1139
- >
1140
- Anchor.Border
1141
- </Anchor.Border>
1142
- </>
1143
- ] }
1144
- />
1145
- </Box>
1146
- </Box>
1147
- <Box ssCardBox>
1148
- <Literal.ThirdTitle borderBottom padding={ 1 }>
1149
- ・Sizes
1150
- </Literal.ThirdTitle>
1151
- <Column padding={ 2 } gap={ 2 }>
1152
- <Row.Left>
1153
- <Button.Prime.XS>size="XS"</Button.Prime.XS>
1154
- </Row.Left>
1155
- <Row.Left>
1156
- <Button.Prime.S>size="S"</Button.Prime.S>
1157
- </Row.Left>
1158
- <Row.Left>
1159
- <Button.Prime>size="R"</Button.Prime>
1160
- </Row.Left>
1161
- <Row.Left>
1162
- <Button.Prime.L>size="L"</Button.Prime.L>
1163
- </Row.Left>
1164
- </Column>
1165
- </Box>
1166
- </Flex>
1167
- },
1168
- }
1169
- const Shadows = {
1170
- index: () => {
1171
- let Cell = ( p: Box.DefaultInput ) => {
1172
- return <Box
1173
- flexCenter
1174
- ssCardBox={ 'plain' }
1175
- textAlign={ 'center' }
1176
- padding={ 2 }
1177
- { ...p }
1178
- />
1179
- }
1180
- return <Column gap={ 4 }>
1181
- <Column>
1182
- <Literal.Paragraph>
1183
- Shadows
1184
- </Literal.Paragraph>
1185
- <Grid gap={ 2 } gridCols={ 4 }>
1186
- <Cell boxShadow='0.min'>0.min</Cell>
1187
- <Cell boxShadow='0.normal'>0.normal</Cell>
1188
- <Cell boxShadow='0.remark'>0.remark</Cell>
1189
- <Cell boxShadow='0.max'>0.max</Cell>
1190
-
1191
- <Cell boxShadow='1.min'>1.min</Cell>
1192
- <Cell boxShadow='1.normal'>1.normal</Cell>
1193
- <Cell boxShadow='1.remark'>1.remark</Cell>
1194
- <Cell boxShadow='1.max'>1.max</Cell>
1195
-
1196
- <Cell boxShadow='2.min'>2.min</Cell>
1197
- <Cell boxShadow='2.normal'>2.normal</Cell>
1198
- <Cell boxShadow='2.remark'>2.remark</Cell>
1199
- <Cell boxShadow='2.max'>2.max</Cell>
1200
-
1201
- <Cell boxShadow='3.min'>3.min</Cell>
1202
- <Cell boxShadow='3.normal'>3.normal</Cell>
1203
- <Cell boxShadow='3.remark'>3.remark</Cell>
1204
- <Cell boxShadow='3.max'>3.max</Cell>
1205
-
1206
- <Cell boxShadow='4.min'>4.min</Cell>
1207
- <Cell boxShadow='4.normal'>4.normal</Cell>
1208
- <Cell boxShadow='4.remark'>4.remark</Cell>
1209
- <Cell boxShadow='4.max'>4.max</Cell>
1210
-
1211
- <Cell boxShadow='5.min'>5.min</Cell>
1212
- <Cell boxShadow='5.normal'>5.normal</Cell>
1213
- <Cell boxShadow='5.remark'>5.remark</Cell>
1214
- <Cell boxShadow='5.max'>5.max</Cell>
1215
- </Grid>
1216
- </Column>
1217
- <Column>
1218
- <Literal.Paragraph>
1219
- Inset Shadows
1220
- </Literal.Paragraph>
1221
- <Grid gap={ 2 } gridCols={ 4 }>
1222
- <Cell boxShadow='0.min.inset'>0.min.inset</Cell>
1223
- <Cell boxShadow='0.normal.inset'>0.normal.inset</Cell>
1224
- <Cell boxShadow='0.remark.inset'>0.remark.inset</Cell>
1225
- <Cell boxShadow='0.max.inset'>0.max.inset</Cell>
1226
-
1227
- <Cell boxShadow='1.min.inset'>1.min.inset</Cell>
1228
- <Cell boxShadow='1.normal.inset'>1.normal.inset</Cell>
1229
- <Cell boxShadow='1.remark.inset'>1.remark.inset</Cell>
1230
- <Cell boxShadow='1.max.inset'>1.max.inset</Cell>
1231
-
1232
- <Cell boxShadow='2.min.inset'>2.min.inset</Cell>
1233
- <Cell boxShadow='2.normal.inset'>2.normal.inset</Cell>
1234
- <Cell boxShadow='2.remark.inset'>2.remark.inset</Cell>
1235
- <Cell boxShadow='2.max.inset'>2.max.inset</Cell>
1236
-
1237
- <Cell boxShadow='3.min.inset'>3.min.inset</Cell>
1238
- <Cell boxShadow='3.normal.inset'>3.normal.inset</Cell>
1239
- <Cell boxShadow='3.remark.inset'>3.remark.inset</Cell>
1240
- <Cell boxShadow='3.max.inset'>3.max.inset</Cell>
1241
- </Grid>
1242
- </Column>
1243
- </Column>
1244
- }
1245
- }
1246
- const Inputs = () => {
1247
- const InputComps = {
1248
- Basic: () => {
1249
- return <Box ssCardBox>
1250
- <Literal.Paragraph borderBottom padding={ 1 }>
1251
- TextInput
1252
- </Literal.Paragraph>
1253
- <Column
1254
- padding={ 1 }
1255
- gap={ 2 }
1256
- >
1257
- <Row.Separate
1258
- marginBottom={ 2 }
1259
- >
1260
- <Literal.Description>
1261
- {
1262
- `<Input.Text
1263
- required
1264
- value={ 'hello React!!' }
1265
- />`
1266
- }
1267
- </Literal.Description>
1268
- <Input.TextField
1269
- tone='cloud'
1270
- name='textfield'
1271
- label='testInputLabel'
1272
- placeholder='testInputPlaceholder'
1273
- isLabelActive
1274
- required
1275
- value={ 'helloReact' }
1276
- />
1277
- </Row.Separate>
1278
- <Input.TextField.Email
1279
- label='Input.TextField.Email'
1280
- name='textfield.email'
1281
- autoComplete="off"
1282
- value={ 'test@gmail.com' }
1283
- />
1284
- <Input.TextField.Number
1285
- label='Input.TextField.Number'
1286
- value={ 324 }
1287
- onUpdateValidValue={ value => {
1288
- console.log( value )
1289
- } }
1290
- />
1291
- <Input.TextField
1292
- label='Input.TextField (number.zeroStart)'
1293
- name='textfield.zeroStart'
1294
- allowZeroStart
1295
- allowDecimals
1296
- value={ '0324' }
1297
- />
1298
- <Box>
1299
- Input.DigitCharacters
1300
- <Input.DigitCharacters
1301
- numericOnly
1302
- value={ '032421' }
1303
- name='digitCharacters'
1304
- digits={ 6 }
1305
- onUpdateValidValue={ value => {
1306
- console.log( value )
1307
- } }
1308
- />
1309
- </Box>
1310
- <Input.TextField.Tel
1311
- label='Input.TextField.Tel'
1312
- name='textfield.tel'
1313
- value={ '080-6995-2229' }
1314
- />
1315
- <Input.TextField.Money.JPY
1316
- value={ '3000' }
1317
- label='Input.TextField.Money.JPY'
1318
- name='textfield.money'
1319
- />
1320
- <Input.TextField.Url
1321
- label='Input.TextField.Url'
1322
- value={ 'http://google.com' }
1323
- name='textfield.url'
1324
- />
1325
- <Box>
1326
- <Input.TextField.Postal
1327
- label='Input.TextField.Postal'
1328
- name='textfield.postal'
1329
- override="force"
1330
- rightIcon={ <Input.RightIcon freeCSS={ { pointerEvents: 'all' } }>
1331
- <Button.Sub.S
1332
- borderRadius={ '3.tone.tertiary' }
1333
- ssSphere={ 2 }
1334
- onClick={ async () => {
1335
- } }
1336
- onMouseOver={ event => {
1337
- Tips.open( event.currentTarget,'現在地を取得' )
1338
- } }
1339
- onMouseLeave={ () => { Tips.abort() } }
1340
- >
1341
- <FAI.Location />
1342
- </Button.Sub.S>
1343
- </Input.RightIcon> }
1344
- />
1345
- <Box
1346
- id="postalResult"
1347
- padding={ 1 }
1348
- textAlign='left'
1349
- />
1350
- </Box>
1351
- <Input.TextField.Password
1352
- label='Input.TextField.Password'
1353
- name='textfield.password'
1354
- value={ 'onigiriUmai123' }
1355
- />
1356
- <Input.TextField
1357
- label='Input.TextField (multiline)'
1358
- name='textfield.multiline'
1359
- multiline
1360
- autoHeight={ false }
1361
- value={ `text1
1362
- text2
1363
- text3
1364
- text4
1365
- text5`}
1366
- minRows={ 5 }
1367
- />
1368
- <Input.TextField
1369
- label='Input.TextField'
1370
- name='textfield.autoHeight'
1371
- isLabelActive
1372
- placeholder='(autoHeight) (multiline)'
1373
- multiline
1374
- autoHeight
1375
- value={ '' }
1376
- freeCSS={ {
1377
- minHeight: 12 * 6
1378
- } }
1379
- onUpdateValidValue={ ( args ) => {
1380
- console.log( args )
1381
- } }
1382
- />
1383
-
1384
- <Input.TextField
1385
- label='Input.LeftIndicator'
1386
- leftIndicator={ <Input.LeftIndicator>
1387
- Left Indicator
1388
- </Input.LeftIndicator> }
1389
- />
1390
- <Input.TextField
1391
- label='Input.LeftIcon'
1392
- paddingLeft={ 6 }
1393
- leftIcon={ <Input.LeftIcon ssSquare={ void 0 } freeCSS={ { pointerEvents: 'all' } }>
1394
- <Button.Sub.S padding={ [ '1/3','1/2' ] }>
1395
- LeftTitle
1396
- </Button.Sub.S>
1397
- </Input.LeftIcon> }
1398
- />
1399
- <Input.TextField
1400
- label='Input.RightIcon'
1401
- paddingRight={ 6 }
1402
- rightIcon={ <Input.RightIcon ssSquare={ void 0 } freeCSS={ { pointerEvents: 'all' } }>
1403
- <Button.Sub.S padding={ [ '1/3','1/2' ] }>
1404
- RightTitle
1405
- </Button.Sub.S>
1406
- </Input.RightIcon> }
1407
- />
1408
- <Input.TextField
1409
- label='Input.LeftIndicator'
1410
- rightIndicator={ <Input.RightIndicator>
1411
- Right Indicator
1412
- </Input.RightIndicator> }
1413
- />
1414
- </Column>
1415
- </Box>
1416
- },
1417
- Time: () => ( <>
1418
- <Box ssCardBox>
1419
- <Literal.Paragraph borderBottom padding={ 1 }>
1420
- Time Input
1421
- </Literal.Paragraph>
1422
- <Box
1423
- padding={ 1 }
1424
- >
1425
- <Column gap={ 1.5 }>
1426
- <Input.Time.Clock
1427
- label='Input.Time.Clock'
1428
- name='time.clock'
1429
- />
1430
- <Input.Time.Date
1431
- label='Input.Time.Date'
1432
- name='time.date'
1433
- />
1434
- <Input.Time.Week
1435
- label='Input.Time.Week'
1436
- name='time.week'
1437
- />
1438
- <Input.Time.Month
1439
- label='Input.Time.Month'
1440
- name='time.month'
1441
- />
1442
- <Input.Time.Year
1443
- label='Input.Time.Year'
1444
- name='time.year'
1445
- />
1446
- <Input.Time.Periods.Date
1447
- label='Input.Time.Periods.Date'
1448
- name='time.periods.date'
1449
- />
1450
- <Input.Time.Periods.Month
1451
- label='Input.Time.Periods.Month'
1452
- name='time.periods.month'
1453
- />
1454
- <Input.Time.DateWareki
1455
- label='Input.Time.DateWareki'
1456
- name='time.dateWareki'
1457
- />
1458
- <Box>
1459
- <Input.Select
1460
- label='Input.TimePicker'
1461
- id="timePicker"
1462
- options={ [
1463
- { value: 'clock',label: 'clock' },
1464
- { value: 'date',label: 'date' },
1465
- { value: 'week',label: 'week' },
1466
- { value: 'month',label: 'month' },
1467
- { value: 'year',label: 'year' },
1468
- { value: 'dates',label: 'dates' },
1469
- { value: 'months',label: 'months' },
1470
- { value: 'dateWareki',label: 'dateWareki' },
1471
- ] }
1472
- onUpdateValidValue={ value => {
1473
- Input.Time.fn.picker.launch( {
1474
- parent: '#timePicker',
1475
- restrict: value as any,
1476
- defaultValue: '',
1477
- onValueUpdate: ( value ) => {
1478
- console.log( value )
1479
- }
1480
- } )
1481
- } }
1482
- />
1483
- </Box>
1484
- </Column>
1485
- </Box>
1486
- </Box>
1487
- </> ),
1488
- List: () => ( <>
1489
- <Box ssCardBox>
1490
- <Literal.Paragraph borderBottom padding={ 1 }>
1491
- Radio & Checkbox Input
1492
- </Literal.Paragraph>
1493
- <Box padding={ 1 }>
1494
- <Column>
1495
- <Flex gap={ 2 } flexChilds='auto'>
1496
- <Box>
1497
- Input.Checkbox
1498
- <Input.Checkbox
1499
- name='checkbox'
1500
- value={ [ 2,'3' ] }
1501
- min={ 2 }
1502
-
1503
- options={ [
1504
- { value: '1',label: 'Option1' },
1505
- { value: '2',label: 'Option2' },
1506
- { value: '3',label: 'Option3' }
1507
- ] }
1508
- />
1509
- </Box>
1510
- <Box>
1511
- Input.Radio
1512
- <Input.Radio
1513
- name='radio'
1514
- value={ 1 }
1515
- options={ [
1516
- { value: 1,label: 'Option1' },
1517
- { value: 2,label: 'Option2' },
1518
- { value: 3,label: 'Option3' },
1519
- { value: 4,label: 'Option4' },
1520
- { value: 5,label: 'Option5' },
1521
- ] }
1522
- onUpdateValidValue={ value => {
1523
-
1524
- } }
1525
- />
1526
- </Box>
1527
- <Box>
1528
- CustomIcon
1529
- <Input.Radio
1530
- name='radio.CustomIcon'
1531
- value={ [ 1 ] }
1532
- options={ [
1533
- { value: 1,label: 'Option1' },
1534
- { value: 2,label: 'Option2' },
1535
- { value: 3,label: 'Option3' },
1536
- ] }
1537
- CustomIcon={ p => {
1538
- return <Button.Normal.S
1539
- ssPushable
1540
- color='cloud'
1541
- tabIndex={ -1 }
1542
- ssEffectsOnActive='ripple.cloud'
1543
- // ssSphere={ 3 }
1544
- isRounded
1545
- fontSize='3.paragraph'
1546
- fontColor={ p.isChecked ? 'theme' : '5.translucent' }
1547
- onClick={ event => {
1548
- event.preventDefault()
1549
- event.stopPropagation()
1550
- p.toggle()
1551
- } }
1552
- >
1553
- <FAI.Heart /> 3
1554
- </Button.Normal.S>
1555
- } }
1556
- />
1557
- </Box>
1558
- <Box>
1559
- <Input.Checkbox.Border
1560
- name='checkbox.normala'
1561
- value={ [ 2,'3' ] }
1562
- flexType='col'
1563
- iconPosition='right'
1564
- hideInput
1565
- options={ [
1566
- {
1567
- value: '1',label: <Row.Separate flexSizing={ 0 }>
1568
- Option1
1569
- <Box padding={ 2 }>
1570
- <FAI.Heart />
1571
- </Box>
1572
- </Row.Separate>
1573
- },{
1574
- value: '2',label: <Row.Separate>
1575
- Option2
1576
- <Box padding={ 2 }>
1577
- <FAI.Heart />
1578
- </Box>
1579
- </Row.Separate>
1580
- },{
1581
- value: '3',label: <Row.Separate>
1582
- Option3
1583
- <Box padding={ 2 }>
1584
- <FAI.Heart />
1585
- </Box>
1586
- </Row.Separate>
1587
- }
1588
- ] }
1589
- />
1590
- </Box>
1591
- </Flex>
1592
- <Column>
1593
- <Literal.Paragraph>
1594
- Tones
1595
- </Literal.Paragraph>
1596
- <Column>
1597
- <Box>
1598
- Plain
1599
- <Input.Radio
1600
- name='radio.plain'
1601
- value={ [ 1 ] }
1602
- gap={ 1 }
1603
- options={ [
1604
- { value: 1,label: 'Option1' },
1605
- { value: 2,label: 'Option2' },
1606
- { value: 3,label: 'Option3' }
1607
- ] }
1608
- />
1609
- </Box>
1610
- <Box>
1611
- { "Plain icon={ false }" }
1612
- <Input.Checkbox
1613
- name='checkbox.plain'
1614
- icon={ false }
1615
- cellStyles={ {
1616
- padding: [ '1/3','2/3' ],
1617
- isRounded: true
1618
- } }
1619
- cellCheckedStyles={ {
1620
- fontColor: 'theme'
1621
- } }
1622
- value={ [ 2,'3' ] }
1623
- hideInput
1624
- options={ [
1625
- { value: '1',label: 'Option1' },
1626
- { value: '2',label: 'Option2' },
1627
- { value: '3',label: 'Option3' }
1628
- ] }
1629
- />
1630
- </Box>
1631
- <Box>
1632
- Simple
1633
- <Input.Checkbox.Simple
1634
- name='checkbox.simple'
1635
- value={ [ 2,'3' ] }
1636
- hideInput
1637
- options={ [
1638
- { value: '1',label: 'Option1' },
1639
- { value: '2',label: 'Option2' },
1640
- { value: '3',label: 'Option3' }
1641
- ] }
1642
- />
1643
- </Box>
1644
- <Box>
1645
- Normal
1646
- <Input.Checkbox.Normal
1647
- name='checkbox.normal'
1648
- value={ [ 2,'3' ] }
1649
- hideInput
1650
- options={ [
1651
- { value: '1',label: 'Option1' },
1652
- { value: '2',label: 'Option2' },
1653
- { value: '3',label: 'Option3' }
1654
- ] }
1655
- />
1656
- </Box>
1657
- <Box>
1658
- Vivid
1659
- <Input.Checkbox.Vivid
1660
- name='checkbox.vivid'
1661
- value={ [ 2,'3' ] }
1662
- hideInput
1663
- options={ [
1664
- { value: '1',label: 'Option1' },
1665
- { value: '2',label: 'Option2' },
1666
- { value: '3',label: 'Option3' }
1667
- ] }
1668
- />
1669
- </Box>
1670
- <Box>
1671
- Cloud
1672
- <Input.Checkbox.Cloud
1673
- name='checkbox.cloud'
1674
- value={ [ 1 ] }
1675
- options={ [
1676
- { value: 1,label: 'Option1' },
1677
- { value: 2,label: 'Option2' },
1678
- { value: 3,label: 'Option3' }
1679
- ] }
1680
- />
1681
- </Box>
1682
- <Box>
1683
- Border
1684
- <Input.Radio.Border
1685
- name='radio.border'
1686
- value={ [ 1 ] }
1687
- options={ [
1688
- { value: 1,label: 'Option1' },
1689
- { value: 2,label: 'Option2' },
1690
- { value: 3,label: 'Option3' }
1691
- ] }
1692
- />
1693
- </Box>
1694
- </Column>
1695
- </Column>
1696
- </Column>
1697
- </Box>
1698
- </Box>
1699
- </> ),
1700
- Select: () => ( <>
1701
- <Box ssCardBox>
1702
- <Literal.Paragraph borderBottom padding={ 1 }>
1703
- Select,Autocomplete Input
1704
- </Literal.Paragraph>
1705
- <Column
1706
- padding={ 2 }
1707
- gap={ 1.5 }
1708
- >
1709
- <Input.Select
1710
- name='select'
1711
- label='Input.Select'
1712
- isLabelActive
1713
- placeholder='Select'
1714
- required
1715
- value={ 3 }
1716
- options={ [
1717
- { value: 1,label: 'option1' },
1718
- { value: 2,label: 'option2' },
1719
- { value: 3,label: 'option3a' },
1720
- { value: 4,label: 'option4' }
1721
- ] }
1722
- />
1723
- <Input.Search
1724
- name='search'
1725
- label='Input.Search'
1726
- required
1727
- options={ [
1728
- { value: 1,label: '1' },
1729
- { value: { value1: 2,value2: 3 },label: 'Object' },
1730
- { value: 3,label: '3' },
1731
- { value: 101,label: '101' },
1732
- { value: 102,label: '102' }
1733
- ] }
1734
- />
1735
- <Input.Autocomplete
1736
- name='autocomplete'
1737
- label='Input.Autocomplete'
1738
- max={ 2 }
1739
- value={ [
1740
- 4
1741
- ] }
1742
- options={ [
1743
- { value: 1,label: 'X-men' },
1744
- { value: 2,label: 'ショーシャンクの空' },
1745
- { value: 3,label: 'スターウォーズ' },
1746
- { value: 4,label: 'ゴッドファーザー: Part II' },
1747
- { value: 5,label: 'ゴッドファーザー: Part III' },
1748
- { value: 6,label: 'インセプション' },
1749
- ] }
1750
- />
1751
- <Input.Autocomplete
1752
- name='autocomplete.dynamic'
1753
- label='Input.Search( Dynamic Search )'
1754
- options={ [
1755
- { value: 1,label: '1' },
1756
- { value: { value1: 2,value2: 3 },label: 'Object' },
1757
- { value: 3,label: '3' },
1758
- { value: 101,label: '101' },
1759
- { value: 102,label: '102' }
1760
- ] }
1761
- DynamicOptionsOnSearch={ async ( keyword ) => {
1762
- console.log( 'keyword',keyword )
1763
- await $$.pending( () => { },1000 )
1764
- let options: Input.Autocomplete.Option[] = []
1765
- for ( let i = 0; i < 100; i++ ) {
1766
- let index = i + 1
1767
- options.push( {
1768
- value: index,
1769
- label: 'option-' + index,
1770
- searchValue: keyword
1771
- } )
1772
- }
1773
- return options
1774
- } }
1775
- />
1776
- </Column>
1777
- </Box>
1778
- </> ),
1779
- Segmented: () => {
1780
- return <Box ssCardBox>
1781
- <Literal.ThirdTitle borderBottom padding={ 1 }>
1782
- Segmented
1783
- </Literal.ThirdTitle>
1784
- <Column padding={ 2 } gap={ 2 }>
1785
- <Row.Left>
1786
- <Input.Segmented
1787
- name='segmented'
1788
- value={ 1 }
1789
- options={ [
1790
- { value: 0,label: 'Home' },
1791
- { value: 1,label: 'Notice' },
1792
- { value: 2,label: 'Posts' },
1793
- { value: 3,label: 'Settings' }
1794
- ] }
1795
- />
1796
- </Row.Left>
1797
- <Row.Left>
1798
- <Input.Segmented.Cloud
1799
- name='segmented.cloud'
1800
- value={ 1 }
1801
- options={ [
1802
- { value: 0,label: <FAI.AngleLeft /> },
1803
- { value: 1,label: <FAI.AngleRight /> },
1804
- { value: 2,label: <FAI.AngleUp /> },
1805
- { value: 3,label: <FAI.AngleDown /> }
1806
- ] }
1807
- />
1808
- </Row.Left>
1809
- <Row.Left>
1810
- <Input.Segmented.CloudTheme
1811
- name='segmented.cloudTheme'
1812
- value={ 1 }
1813
- options={ [
1814
- { value: 0,label: <FAI.AngleLeft /> },
1815
- { value: 1,label: <FAI.AngleRight /> },
1816
- { value: 2,label: <FAI.AngleUp /> },
1817
- { value: 3,label: <FAI.AngleDown /> }
1818
- ] }
1819
- />
1820
- </Row.Left>
1821
- <Row.Left>
1822
- <Input.Segmented.CloudMono
1823
- name='segmented.cloudMono'
1824
- value={ 1 }
1825
- options={ [
1826
- { value: 0,label: <FAI.AngleLeft /> },
1827
- { value: 1,label: <FAI.AngleRight /> },
1828
- { value: 2,label: <FAI.AngleUp /> },
1829
- { value: 3,label: <FAI.AngleDown /> }
1830
- ] }
1831
- />
1832
- </Row.Left>
1833
- <Row.Left>
1834
- <Input.Segmented.Border
1835
- name='segmented.border'
1836
- value={ 1 }
1837
- options={ [
1838
- { value: 0,label: 'On' },
1839
- { value: 1,label: 'Off' }
1840
- ] }
1841
- />
1842
- </Row.Left>
1843
- <Row.Left>
1844
- <Input.Segmented.BorderVivid
1845
- name='segmented.borderVivid'
1846
- value={ 1 }
1847
- options={ [
1848
- { value: 0,label: 'On' },
1849
- { value: 1,label: 'Off' }
1850
- ] }
1851
- />
1852
- </Row.Left>
1853
- <Row.Left borderBottom>
1854
- <Input.Segmented.Bottomline
1855
- name='segmented.bottomline'
1856
- value={ 1 }
1857
- options={ [
1858
- { value: 0,label: 'Takana' },
1859
- { value: 1,label: 'Mentai' },
1860
- { value: 2,label: 'Mayo' },
1861
- { value: 3,label: 'Gyudon' }
1862
- ] }
1863
- />
1864
- </Row.Left>
1865
- </Column>
1866
- </Box>
1867
- },
1868
- Variables: () => ( <>
1869
- <Box ssCardBox>
1870
- <Literal.Paragraph borderBottom padding={ 1 }>
1871
- Variables
1872
- </Literal.Paragraph>
1873
- <Box padding={ 1 }>
1874
- <Column>
1875
- <Column gap={ 2 }>
1876
- <Box>
1877
- Input.File
1878
- <Input.Filer
1879
- name='filer'
1880
- limit={ 3 }
1881
- onUpdateValidValue={ value => {
1882
- console.log( value )
1883
- } }
1884
- />
1885
- </Box>
1886
- <Box>
1887
- Input.Switch
1888
- <Row.Left gap={ 2 }>
1889
- <Input.Switch
1890
- name='switch'
1891
- />
1892
- <Input.Switch
1893
- name='switch.applely'
1894
- isApply
1895
- color='icicles'
1896
- value
1897
- />
1898
- <Input.Switch
1899
- name='switch.warn'
1900
- isApply
1901
- icon={ <FAI.ExclamationTriangle /> }
1902
- color='warn'
1903
- value
1904
- />
1905
- </Row.Left>
1906
- </Box>
1907
- <Row.Left>
1908
- <Input.Color
1909
- name='color'
1910
- onUpdateValidValue={ value => {
1911
- console.log( value )
1912
- } }
1913
- value='#4332c3'
1914
- />
1915
- </Row.Left>
1916
- <Box flexNewLine>
1917
- Input.Slider
1918
- <Input.Slider
1919
- name='slider'
1920
- color='battery'
1921
- value={ 40 }
1922
- step={ 10 }
1923
- min={ 0 }
1924
- max={ 100 }
1925
- onUpdateValidValue={ value => {
1926
- console.log( value )
1927
- } }
1928
- />
1929
- </Box>
1930
- </Column>
1931
- </Column>
1932
- </Box>
1933
- </Box>
1934
- </> ),
1935
- }
1936
-
1937
- return <>
1938
- <Plate
1939
- size='L'
1940
- >
1941
- <Column>
1942
- <InputComps.Basic />
1943
- <InputComps.Select />
1944
- <InputComps.Time />
1945
- <InputComps.List />
1946
- <InputComps.Segmented />
1947
- <InputComps.Variables />
1948
- </Column>
1949
- </Plate>
1950
- </>
1951
- }
1952
- const Styling = () => {
1953
- const SheetContent = ( type: Sheet.Type,index?: number,opt?: Partial<Sheet.Input> ) => {
1954
- let sheetID = 'testModal' + index
1955
- Sheet.open( type,{
1956
- sheetID: sheetID,
1957
- size: 'S',
1958
- padding: 2,
1959
- ...opt,
1960
- content: <Sheet.Body padding={ 1 }>
1961
- <Box padding={ 2 }>
1962
- Content { index || 0 }
1963
- </Box>
1964
-
1965
- <Button.Sub
1966
- onClick={ () => {
1967
- SheetContent( type,index ? index + 1 : 1 )
1968
- } }
1969
- >
1970
- Open Nested
1971
- </Button.Sub>
1972
- <Row.Right>
1973
- <Button
1974
- onClick={ () => {
1975
- Sheet.close( sheetID )
1976
- } }
1977
- >
1978
- 閉じる
1979
- </Button>
1980
- </Row.Right>
1981
- </Sheet.Body>
1982
- } )
1983
- }
1984
-
1985
- return <>
1986
- <Box ssCardBox>
1987
- <Literal.SubTitle borderBottom padding={ 1 }>
1988
- CardBox
1989
- </Literal.SubTitle>
1990
- <Box padding={ 1 } overflow={ 'auto' }>
1991
- <Literal.Description>
1992
- {
1993
- `<Box styles={{ssCardBox:true}}>
1994
- <Box>
1995
- Header
1996
- </Box>
1997
- <Box padding={ 1 }
1998
- overflow='auto'>
1999
- Body
2000
- </Box>
2001
- <Box>
2002
- Footer
2003
- </Box>
2004
- </Box>`
2005
- }
2006
- </Literal.Description>
2007
- </Box>
2008
- <Box padding={ 2 }>
2009
- <Box ssCardBox>
2010
- <Literal.SubTitle borderBottom padding={ 1 }>
2011
- Header
2012
- </Literal.SubTitle>
2013
- <Box padding={ 1 } overflow={ 'auto' }>
2014
- Body
2015
- </Box>
2016
- <Box padding={ 1 }>
2017
- Footer
2018
- </Box>
2019
- </Box>
2020
- </Box>
2021
- </Box>
2022
- <Box ssCardBox>
2023
- <Literal.SubTitle borderBottom padding={ 1 }>
2024
- List
2025
- </Literal.SubTitle>
2026
- <Box padding={ 1 } overflow={ 'auto' }>
2027
- <Literal.Description>
2028
- {
2029
- `<List
2030
- options={ [
2031
- {
2032
- title?: LeftSideReactComponent,
2033
- content: RightSideReactComponent
2034
- }
2035
- ] }
2036
- />`
2037
- }
2038
- </Literal.Description>
2039
- </Box>
2040
- <Box padding={ 2 } overflow={ 'auto' }>
2041
- <List
2042
- ssCardBox
2043
- padding={ 1 }
2044
- >
2045
- <ListItem.Left>
2046
- <Box padding={ '1/2' } backgroundColor='cloud'>
2047
- Left
2048
- </Box>
2049
- <Box padding={ '1/2' } backgroundColor='cloud' flexSizing={ 0 }>
2050
- Right
2051
- </Box>
2052
- </ListItem.Left>
2053
- <ListItem.Right>
2054
- <Box padding={ '1/2' } backgroundColor='cloud' flexSizing={ 0 }>
2055
- Left
2056
- </Box>
2057
- <Box padding={ '1/2' } backgroundColor='cloud'>
2058
- Right
2059
- </Box>
2060
- </ListItem.Right>
2061
- <ListItem.Separate>
2062
- <Box padding={ '1/2' } backgroundColor='cloud'>
2063
- Left
2064
- </Box>
2065
- <Box padding={ '1/2' } backgroundColor='cloud'>
2066
- Right
2067
- </Box>
2068
- </ListItem.Separate>
2069
- <ListItem.Center gap={ '1/4' }>
2070
- <Box padding={ '1/2' } backgroundColor='cloud' flexGrid={ 1 }>
2071
- 1
2072
- </Box>
2073
- <Box padding={ '1/2' } backgroundColor='cloud' flexGrid={ 3 }>
2074
- 3
2075
- </Box>
2076
- <Box padding={ '1/2' } backgroundColor='cloud' flexGrid={ 2 }>
2077
- 2
2078
- </Box>
2079
- </ListItem.Center>
2080
- </List>
2081
- </Box>
2082
- </Box>
2083
- <Box ssCardBox>
2084
- <Literal.SubTitle borderBottom padding={ 1 }>
2085
- Sheet
2086
- </Literal.SubTitle>
2087
- <Box padding={ 1 } overflow={ 'auto' }>
2088
- <Literal.Description>
2089
- {
2090
- `Sheet.open( Type,{
2091
- sheetID: 'sheetID',
2092
- header: ReactElement | React.FC< { modalClose } >,
2093
- body: ReactElement | React.FC< { modalClose } >,
2094
- footer: ReactElement | React.FC< { modalClose } >
2095
- } )`
2096
- }
2097
- </Literal.Description>
2098
- </Box>
2099
- <Column padding={ 2 }>
2100
- <Button.Border
2101
- onClick={ ( e ) => {
2102
- Tooltips.open( {
2103
- tipsID: 'testTips',
2104
- parent: e.currentTarget,
2105
- closeAtParentBlur: false,
2106
- closeAtAroundClick: false,
2107
- closeAtEscapeKeyDown: true,
2108
- content: () => {
2109
- return <Sheet.Body padding={ 2 }>
2110
- <Button
2111
- onClick={ () => {
2112
- Sheet.open( 'middleLeft',{
2113
- sheetID: 'testSheet',
2114
- closeAtAroundClick: true,
2115
- content: () => {
2116
- return <Sheet.Body padding={ 2 }>
2117
- END
2118
- </Sheet.Body>
2119
- }
2120
- } )
2121
- } }
2122
- >
2123
- nest
2124
- </Button>
2125
- </Sheet.Body>
2126
- }
2127
- } )
2128
- } }
2129
- >
2130
- Tooltips with nested sheet
2131
- </Button.Border>
2132
- <Box flexCenter>
2133
- <Grid gridCols={ 3 } gap={ 1 }>
2134
- <Button.Border
2135
- onClick={ () => {
2136
- SheetContent( 'topLeft' )
2137
- } }
2138
- >
2139
- Top Left
2140
- </Button.Border>
2141
- <Button.Border
2142
- onClick={ () => {
2143
- SheetContent( 'topCenter' )
2144
- } }
2145
- >
2146
- Top Center
2147
- </Button.Border>
2148
- <Button.Border
2149
- onClick={ () => {
2150
- SheetContent( 'topRight' )
2151
- } }
2152
- >
2153
- Top Right
2154
- </Button.Border>
2155
- <Button.Border
2156
- onClick={ () => {
2157
- SheetContent( 'middleLeft' )
2158
- } }
2159
- >
2160
- Middle Left
2161
- </Button.Border>
2162
- <Button.Border
2163
- onClick={ () => {
2164
- SheetContent( 'middleCenter' )
2165
- } }
2166
- >
2167
- Middle Center
2168
- </Button.Border>
2169
- <Button.Border
2170
- onClick={ () => {
2171
- SheetContent( 'middleRight' )
2172
- } }
2173
- >
2174
- Middle Right
2175
- </Button.Border>
2176
- <Button.Border
2177
- onClick={ () => {
2178
- SheetContent( 'bottomLeft' )
2179
- } }
2180
- >
2181
- Bottom Left
2182
- </Button.Border>
2183
- <Button.Border
2184
- onClick={ () => {
2185
- SheetContent( 'bottomCenter' )
2186
- } }
2187
- >
2188
- Bottom Center
2189
- </Button.Border>
2190
- <Button.Border
2191
- onClick={ () => {
2192
- SheetContent( 'bottomRight' )
2193
- } }
2194
- >
2195
- Bottom Right
2196
- </Button.Border>
2197
-
2198
- <Button.Border
2199
- onClick={ () => {
2200
- SheetContent( 'drawer.left' )
2201
- } }
2202
- >
2203
- Drawer Left
2204
- </Button.Border>
2205
- <Button.Border
2206
- onClick={ () => {
2207
- SheetContent( 'drawer.bottom',10,{
2208
- size: 'R'
2209
- } )
2210
- } }
2211
- >
2212
- Drawer Bottom
2213
- </Button.Border>
2214
- <Button.Border
2215
- onClick={ () => {
2216
- SheetContent( 'drawer.right' )
2217
- } }
2218
- >
2219
- Drawer Right
2220
- </Button.Border>
2221
-
2222
- <Button.Border
2223
- onClick={ event => {
2224
- Tooltips.open( {
2225
- tipsID: 'test40',
2226
- parent: event.currentTarget,
2227
- content: <Box
2228
- padding={ 1 }
2229
- border
2230
- borderRadius={ 2 }
2231
- backgroundColor={ 'dark' }
2232
- fontColor={ 'white' }
2233
- >Content</Box>,
2234
- } )
2235
- } }
2236
- >
2237
- Open Tooltips
2238
- </Button.Border>
2239
- </Grid>
2240
- </Box>
2241
- <Row.Center>
2242
- Image Picker
2243
- <Img
2244
- src={ Logo.Images.defaultIcon( 'user' ) }
2245
- ssSphere={ 6 }
2246
- showExpand
2247
- />
2248
- </Row.Center>
2249
- </Column>
2250
- </Box>
2251
- </>
2252
- }
2253
- const Tables = {
2254
- index: () => {
2255
- return <>
2256
- <Column gap={ 3 }>
2257
- <Tables.Normal />
2258
- <Tables.Data />
2259
- <Tables.Drag />
2260
- <Tables.Spread />
2261
- </Column>
2262
- </>
2263
- },
2264
- Normal: () => {
2265
- let PureData: Table.Normal.BodyRow[] = []
2266
- for ( var i = 0; i < 10; i++ ) {
2267
- let Row: Table.Normal.BodyRow = [
2268
- { children: 'head_' + i },
2269
- { children: 'data_' + i },
2270
- { children: 'data_' + i },
2271
- ]
2272
- PureData.push( Row )
2273
- }
2274
-
2275
- return <>
2276
- <Box fontSize='5.subTitle'>
2277
- Table.Normal
2278
- </Box>
2279
- <Table.Normal
2280
- colLength={ 3 }
2281
- head={ [
2282
- { children: 'head1' },
2283
- { children: 'head2' },
2284
- {
2285
- children: 'head3',
2286
- // styles: {
2287
- // backgroundColor: 'nega'
2288
- // },
2289
- // freeCSS: {
2290
- // opacity: .3
2291
- // }
2292
- },
2293
- ] }
2294
- cellStylesCallback={ ( args ) => {
2295
- let styles: StyleTags.Properties = {}
2296
-
2297
- if ( args.isHeader ) {
2298
- styles = {
2299
- ...styles,
2300
- backgroundColor: 'cloud'
2301
- }
2302
- }
2303
- return styles
2304
- } }
2305
- rows={ PureData }
2306
- ssCardBox
2307
- onRowClick={ ( rowID ) => {
2308
- console.log( rowID )
2309
- } }
2310
- />
2311
- </>
2312
- },
2313
- Drag: () => {
2314
- let DragData: Table.Drag.BodyRow[] = []
2315
- for ( var i = 0; i < 4; i++ ) {
2316
- let Row: Table.Drag.BodyRow = [
2317
- { children: 'head_' + i },
2318
- { children: 'data_' + i },
2319
- {
2320
- children: 'data_' + i,
2321
- // styles: { backgroundColor: 'nega' },
2322
- // freeCSS: { opacity: .3 }
2323
- },
2324
- ]
2325
- Row.rowID = 'rowID-' + i
2326
- DragData.push( Row )
2327
- }
2328
-
2329
- return <>
2330
- <Box fontSize='5.subTitle'>
2331
- Table.Drag
2332
- </Box>
2333
- <Table.Drag
2334
- colLength={ 3 }
2335
- head={ [
2336
- { children: 'head1' },
2337
- { children: 'head2' },
2338
- {
2339
- children: 'head3',
2340
- // styles: { backgroundColor: 'nega' },
2341
- // freeCSS: { opacity: .3 }
2342
- },
2343
- ] }
2344
-
2345
- cellStyles={ {
2346
- // backgroundColor: 'posi',
2347
- // freeCSS: { opacity: .3 }
2348
- } }
2349
- cellStylesCallback={ () => {
2350
- return {
2351
- // backgroundColor: 'warn',
2352
- // freeCSS: { opacity: .3 }
2353
- }
2354
- } }
2355
-
2356
- rows={ DragData }
2357
- ssCardBox
2358
- onOrderChanged={ ( args ) => {
2359
- console.log( args )
2360
- } }
2361
- />
2362
- </>
2363
- },
2364
- Data: () => {
2365
- let [ val_keyword,set_keyword ] = useState( '' )
2366
- let DataData: Table.Data.BodyRow[] = []
2367
- for ( var i = 0; i < 100; i++ ) {
2368
- let random1 = Math.round( Math.random() * 50 + 1 )
2369
- let random2 = Math.round( Math.random() * 50 + 1 )
2370
- let random3 = Math.round( Math.random() * 50 + 1 )
2371
-
2372
- let Data1 = 'name_' + random1
2373
- let Data2 = 'data_' + random2
2374
- let Data3 = 'data_' + random3
2375
- let Row: Table.Data.BodyRow = [
2376
- {
2377
- type: 'th',
2378
- children: i + ':' + Data1,
2379
- data: Data1,
2380
- orderIndex: i
2381
- },{
2382
- type: 'td',
2383
- children: Data2,
2384
- data: Data2
2385
- },{
2386
- type: 'td',
2387
- children: Data3,
2388
- data: Data3,
2389
- // styles: { backgroundColor: 'greenTea' },
2390
- // freeCSS: { opacity: .3 }
2391
- }
2392
- ]
2393
- DataData.push( Row )
2394
- }
2395
- DataData[ 1 ].checked = true
2396
- DataData[ 4 ].checked = true
2397
- DataData[ 10 ].checked = true
2398
-
2399
- let tableID = 'testDataTable'
2400
- return <Column>
2401
- <Flex horizontalAlign='between'>
2402
- <Box fontSize='5.subTitle'>
2403
- Table.Data
2404
- </Box>
2405
- <Flex
2406
- gap={ '1/2' }
2407
- backgroundColor={ 'theme' }
2408
- borderRadius={ '1.tone.primary' }
2409
- overflow={ 'hidden' }
2410
- fontColor={ 'white' }
2411
- >
2412
- <Button.Clear
2413
- color='white'
2414
- >
2415
- SubmitButton
2416
- </Button.Clear>
2417
- <Box
2418
- flexSizing={ 'none' }
2419
- unitWidth={ '1/4' }
2420
- backgroundColor={ 'layer.4.opa.middle' }
2421
- isRounded
2422
- margin={ [ '2/3',0 ] }
2423
- />
2424
- <Button.Clear
2425
- padding={ [ 0,1 ] }
2426
- color='white'
2427
- onClick={ event => {
2428
- Tooltips.open( {
2429
- tipsID: UUID(),
2430
- parent: event.target,
2431
- gravityPoint: 24,
2432
- closeAtAroundClick: true,
2433
- closeAtParentBlur: false,
2434
- content: <Column
2435
- gap={ 0 }
2436
- padding={ [ '2/3',0 ] }
2437
- backgroundColor={ 'layer.1' }
2438
- borderRadius={ 2 }
2439
- boxShadow={ '0.normal' }
2440
- overflow={ 'hidden' }
2441
- >
2442
- <Button.Clear.S
2443
- borderRadius={ 0 }
2444
- borderBottom='1.thin'
2445
- >すべてを出力</Button.Clear.S>
2446
- <Button.Clear.S
2447
- borderRadius={ 0 }
2448
- borderBottom='1.thin'
2449
- >
2450
- このページのみ出力
2451
- </Button.Clear.S>
2452
- <Button.Clear.S borderRadius={ 0 }>
2453
- チェックした行のみ出力
2454
- </Button.Clear.S>
2455
- </Column>
2456
- } )
2457
- } }
2458
- >
2459
- <FAI.EllipsisV />
2460
- </Button.Clear>
2461
- </Flex>
2462
- </Flex>
2463
- <Row.Separate verticalAlign='bottom'>
2464
- <Row.Left verticalAlign='bottom'>
2465
- <Table.Data.SearchInput
2466
- tableID={ tableID }
2467
- onChange={ ( keyword ) => {
2468
- set_keyword( keyword )
2469
- } }
2470
- />
2471
- <Table.Data.Info tableID={ tableID } />
2472
- </Row.Left>
2473
- <Row.Right verticalAlign='unset'>
2474
- <Table.Data.RowLength
2475
- tableID={ tableID }
2476
- lengthSelect={ [ 30,50,100 ] }
2477
- />
2478
- <Table.Data.Paging tableID={ tableID } />
2479
- </Row.Right>
2480
- </Row.Separate>
2481
- <Table.Data
2482
- tableID={ tableID }
2483
- colLength={ 3 }
2484
- head={ [
2485
- { data: 'head1' },
2486
- { data: 'head2',children: <Box>head2</Box> },
2487
- {
2488
- data: 'head3',
2489
- // styles: { backgroundColor: 'angel' },
2490
- // freeCSS: { opacity: .3 }
2491
- }
2492
- ] }
2493
- rows={ DataData }
2494
- pageRowLength={ 30 }
2495
- ssCardBox
2496
-
2497
- cellStyles={ {
2498
- padding: '1/2'
2499
- } }
2500
- filter={ [ true,true ] }
2501
- checker
2502
- />
2503
- </Column>
2504
- },
2505
- Spread: () => {
2506
- return <>
2507
- <Box fontSize='5.subTitle'>
2508
- Table.Spread
2509
- </Box>
2510
- {/* <Table.Spread /> */ }
2511
- </>
2512
- }
2513
- }
2514
-
2515
-
2516
-
2517
-
2518
- const Cropping = () => {
2519
- let [ val_ImageUrl1,set_ImageUrl1 ] = useState( '' )
2520
- let [ val_ImageUrl2,set_ImageUrl2 ] = useState( '' )
2521
- let [ val_ImageUrl3,set_ImageUrl3 ] = useState( '' )
2522
-
2523
- return <>
2524
- <Box>
2525
- <Button
2526
- onClick={ () => {
2527
- Cropper.openDialogNEdit( {
2528
- // use: 'square',
2529
- use: '3:1',
2530
- develops: [
2531
- { size: 'S' },
2532
- { size: 'R' },
2533
- { size: 'L' }
2534
- ],
2535
- onProcessFinished: async ( develops ) => {
2536
- set_ImageUrl1( await ( await Filer.fromFile( develops[ 0 ] ) ).toDataURL() )
2537
- set_ImageUrl2( await ( await Filer.fromFile( develops[ 1 ] ) ).toDataURL() )
2538
- set_ImageUrl3( await ( await Filer.fromFile( develops[ 2 ] ) ).toDataURL() )
2539
-
2540
- // set_ImageUrl1( await develops[ 0 ].toDataUrl() )
2541
- // set_ImageUrl2( await develops[ 1 ].toDataUrl() )
2542
- // set_ImageUrl3( await develops[ 2 ].toDataUrl() )
2543
- }
2544
- } )
2545
- } }
2546
- >
2547
- <FAI.Image /> イメージを選択
2548
- </Button>
2549
-
2550
- <Row.Center>
2551
- <Button.Prime
2552
- onClick={ () => {
2553
- Sheet.image( {},[
2554
- 'https://png.pngtree.com/background/20210714/original/pngtree-futuristic-shape-abstract-background-chemistry-technology-concept-for-website-picture-image_1250295.jpg',
2555
- 'https://png.pngtree.com/background/20210711/original/pngtree-set-of-instagram-stories-sale-banner-background-instagram-template-photo-can-picture-image_1167343.jpg',
2556
- 'https://png.pngtree.com/background/20210715/original/pngtree-website-banner-abstract-purple-blue-gradient-background-picture-image_1298439.jpg'
2557
- ] )
2558
- } }
2559
- >
2560
- Open Image Sheet
2561
- </Button.Prime>
2562
- </Row.Center>
2563
-
2564
- <Flex gap={ 1 } verticalAlign='top'>
2565
- { val_ImageUrl1 && <Img
2566
- isRounded
2567
- src={ val_ImageUrl1 }
2568
- alt=''
2569
- showExpand
2570
- freeCSS={ {
2571
- maxWidth: 12 * 12
2572
- } }
2573
- /> }
2574
- { val_ImageUrl2 && <Img
2575
- style={ {
2576
- maxWidth: 24 * 12
2577
- } }
2578
- src={ val_ImageUrl2 }
2579
- alt=''
2580
- showExpand
2581
- /> }
2582
- { val_ImageUrl3 && <Img
2583
- style={ {
2584
- maxWidth: 24 * 12
2585
- } }
2586
- src={ val_ImageUrl3 }
2587
- alt=''
2588
- showExpand
2589
- /> }
2590
-
2591
- <SwipeView
2592
- border
2593
- borderWidth={ 3 }
2594
- margin={ [ 3,'auto' ] }
2595
- // padding={ [ 0,4 ] }
2596
- // margin={ 'auto' }
2597
- freeCSS={ {
2598
- // maxWidth: 12 * 30
2599
- width: 12 * 10
2600
- } }
2601
- slideIndex={ 1 }
2602
- options={ {
2603
- loop: true,
2604
- onSlideCallback: ( index ) => {
2605
- }
2606
- } }
2607
- slides={ [
2608
- <Box flexCenter padding={ 3 } backgroundColor='nega'>
2609
- test1
2610
- </Box>,
2611
- <Box flexCenter padding={ 3 } backgroundColor='posi'>
2612
- test2
2613
- </Box>,
2614
- <Box flexCenter padding={ 3 } backgroundColor='warn'>
2615
- test3
2616
- </Box>,
2617
- <Box flexCenter padding={ 3 } backgroundColor='theme'>
2618
- test4
2619
- </Box>,
2620
- ] }
2621
- />
2622
- </Flex>
2623
- </Box>
2624
- </>
2625
- }
2626
-
2627
- const UserConfig = () => {
2628
- let [ val_theme,set_theme ] = useState<ThemeColor>( Config.get().themeColor )
2629
- useEffect( () => {
2630
- $$.scope( () => {
2631
- if ( val_theme === Config.get().themeColor ) return
2632
- Config.update.themeColor( val_theme )
2633
- $$.localStorage.set( 'prf.themeColor',val_theme )
2634
- } )
2635
- },[ val_theme ] )
2636
-
2637
- return <Row.Left
2638
- borderBottom
2639
- gap={ 2 }
2640
- padding={ [ '1/2',2 ] }
2641
- overflow={ 'auto' }
2642
- freeCSS={ {
2643
- whiteSpace: 'nowrap'
2644
- } }
2645
- >
2646
- <Row.Left>
2647
- <Literal.Paragraph>Roundness</Literal.Paragraph>
2648
- <Input.Slider
2649
- min={ 0 }
2650
- max={ 5 }
2651
- step={ 1 }
2652
- value={ Config.get().roundness }
2653
- onUpdateValidValue={ value => {
2654
- let nextValue = value
2655
-
2656
- $$.interval.once( () => {
2657
- $$.localStorage.set( 'prf.roundness',nextValue )
2658
- Config.update.roundness( Number( nextValue ) as Roundness )
2659
- },1000,'updateRoundness' )
2660
- } }
2661
- />
2662
- </Row.Left>
2663
- <Row.Left>
2664
- <Literal.Paragraph>Dark</Literal.Paragraph>
2665
- <Input.Segmented.Cloud
2666
- cellStyles={ {
2667
- flexCenter: true,
2668
- padding: [ '1/4','1/2' ],
2669
- } }
2670
- cellCheckedStyles={ {
2671
- boxShadow: '2.normal',
2672
- backgroundColor: 'theme',
2673
- fontColor: 'white'
2674
- } }
2675
- ssCardBox
2676
- backgroundColor={ 'layer.1' }
2677
- gap={ '1/6' }
2678
- fontColor={ '4.thin' }
2679
- options={ [
2680
- { value: 'light',label: 'Light' },
2681
- { value: 'dim',label: 'Dim' },
2682
- { value: 'dark',label: 'Dark' },
2683
- { value: 'auto',label: 'Auto' },
2684
- ] }
2685
- value={ Config.get().darkMode }
2686
- onUpdateValidValue={ value => {
2687
- let nextValue = value
2688
- $$.localStorage.set( 'prf.darkMode',nextValue )
2689
- Config.update.darkMode( nextValue )
2690
- } }
2691
- />
2692
- </Row.Left>
2693
- <Row.Left>
2694
- <Literal.Paragraph>Color</Literal.Paragraph>
2695
- <Row.Left gap={ '1/6' }>
2696
- { Object.entries( ThemeColors ).map( ( [ key,themeColor ] ) => {
2697
- let isSelected = key === val_theme
2698
-
2699
- return <Button.Clear
2700
- key={ key }
2701
- color='cloud'
2702
- padding={ '1/2' }
2703
- textAlign='center'
2704
- opacity={ isSelected ? 'max' : 'low' }
2705
- isActive={ isSelected }
2706
- isActiveStyles={ {
2707
- boxShadow: '2.remark',
2708
- backgroundColor: key as ThemeColor,
2709
- fontColor: 'white'
2710
- } }
2711
- onClick={ () => {
2712
- set_theme( key as ThemeColor )
2713
- } }
2714
- >
2715
- <Column gap={ '1/2' } textAlign='center'>
2716
- <Box
2717
- position={ 'relative' }
2718
- margin={ 'auto' }
2719
- backgroundColor={ key as ThemeColor }
2720
- ssSquare={ 2 }
2721
- borderRadius={ '1.tone.primary' }
2722
- >
2723
- <Box
2724
- ssAbsoluteCovered
2725
- border
2726
- opacity={ isSelected ? 'max' : 'low' }
2727
- borderWidth={ 2 }
2728
- transition={ 'short' }
2729
- borderRadius={ '1.tone.primary' }
2730
- freeCSS={ {
2731
- transform: 'scale(1.25)',
2732
- } }
2733
- />
2734
- </Box>
2735
- <Literal.Supplement
2736
- display='none'
2737
- ssTextEllipsis
2738
- freeCSS={ {
2739
- lineHeight: 1.25
2740
- } }
2741
- >
2742
- { isSelected && <FAI.Check /> } { key.toCapital() }
2743
- </Literal.Supplement>
2744
- </Column>
2745
- </Button.Clear>
2746
- } ) }
2747
- </Row.Left>
2748
- </Row.Left>
2749
- </Row.Left>
2750
- }
2751
-
2752
- let DesignBook = () => {
2753
- let [ val_tabIndex,set_tabIndex ] = useState( Number( $$.url.search.get().ti ) || 0 )
2754
- useEffect( () => {
2755
- $$.url.search.set( { 'ti': String( val_tabIndex ) } )
2756
- },[ val_tabIndex ] )
2757
-
2758
- // let [ val_refresh,set_refresh ] = useState( UUID() )
2759
-
2760
- // let DataData: Table.Data.BodyRow[] = []
2761
- // for ( var i = 0; i < 100; i++ ) {
2762
- // let random1 = $$.randomNumber( 0,10000 )
2763
- // let random2 = $$.randomNumber( 0,10000 )
2764
-
2765
- // let Data1 = 'name_' + random1
2766
- // let Data2 = 'data_' + random2
2767
- // let Row: Table.Data.BodyRow = [
2768
- // {
2769
- // type: 'th',
2770
- // // children: i + ':' + Data1,
2771
- // children: [
2772
- // 'i=' + i,
2773
- // 'data=' + random1.toLocaleString(),
2774
- // ].join( '/' ),
2775
- // data: Data1,
2776
- // // orderIndex: random1.toLocaleString()
2777
- // orderIndex: random1
2778
- // },
2779
- // { type: 'td',children: Data2,data: Data2 },
2780
- // ]
2781
- // DataData.push( Row )
2782
- // }
2783
- // DataData[ 1 ].checked = true
2784
- // DataData[ 4 ].checked = true
2785
-
2786
- // return <Column>
2787
- // <Literal>Count: { DataData.length.toLocaleString() }</Literal>
2788
- // <Table.Data
2789
- // tableID={ 'aaaa' }
2790
- // colLength={ 2 }
2791
- // pageRowLength={ 100 }
2792
- // head={ [
2793
- // { data: 'head1' },
2794
- // { data: 'head2',children: <Box>head2</Box> },
2795
- // ] }
2796
- // rows={ DataData }
2797
- // ssCardBox
2798
-
2799
- // orderPriority='DESC'
2800
- // cellStyles={ {
2801
- // padding: '1/2'
2802
- // } }
2803
- // // filter={ [ true,true ] }
2804
- // // checker
2805
- // />
2806
- // </Column>
2807
-
2808
- return <>
2809
- <UserConfig />
2810
- <Column
2811
- gap={ 0 }
2812
- // minHeight={ 'contentHeight' }
2813
- // backgroundColor={ 'layer.1' }
2814
- // backgroundColor='gray'
2815
- // position={ 'relative' }
2816
- freeCSS={ {
2817
- zIndex: 1
2818
- } }
2819
- >
2820
- <TabBar
2821
- borderBottom
2822
- position={ 'sticky' }
2823
- backgroundColor={ 'layer.1' }
2824
- boxShadow='2.normal'
2825
- top={ 'topBase' }
2826
- tabIndex={ val_tabIndex }
2827
- tabs={ [
2828
- 'Basic',
2829
- 'Shadows',
2830
- 'Buttons',
2831
- 'Inputs',
2832
- 'Styling',
2833
- 'Effection',
2834
- 'Tables',
2835
- 'Croppie',
2836
- 'PlayGround',
2837
- 'Logo',
2838
- ] }
2839
- onTabChange={ ( index ) => {
2840
- localStorage.setItem( 'designTabHeader',String( index ) )
2841
- set_tabIndex( index )
2842
- } }
2843
- UnderBreakPointStyles={ {
2844
- position: 'static',
2845
- top: 0
2846
- } }
2847
- />
2848
- <Box
2849
- flexSizing={ 0 }
2850
- position={ 'relative' }
2851
- freeCSS={ {
2852
- zIndex: 1
2853
- } }
2854
- >
2855
- <PageViewController
2856
- viewIndex={ val_tabIndex }
2857
- views={ [
2858
- <Basic.index />,
2859
- <Shadows.index />,
2860
- <Buttons.index />,
2861
- <Inputs />,
2862
- <Styling />,
2863
- <Effections.index />,
2864
- <Tables.index />,
2865
- <Cropping />,
2866
- '',
2867
- <Logos.index />,
2868
- ] }
2869
- wrapper={ ( View ) => {
2870
- return <Effect.FadeIn
2871
- key={ val_tabIndex }
2872
- animationTime={ 200 }
2873
- >
2874
- <Plate>
2875
- <Flex
2876
- gap={ 2 }
2877
- padding={ 2 }
2878
- flexWrap
2879
- flexChilds={ 'auto' }
2880
- >{ View }</Flex>
2881
- </Plate>
2882
- </Effect.FadeIn>
2883
- } }
2884
- />
2885
- </Box>
2886
- </Column>
2887
- </>
2888
- }
2889
-
2890
- import dynamic from 'next/dynamic'
2891
- export default dynamic( () => Promise.resolve( DesignBook ),{ ssr: false } )