amotify 0.2.136 → 0.2.137

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.
@@ -20,6 +20,7 @@ import {
20
20
  Sheet,
21
21
  Text,
22
22
  FAI,
23
+ Accordion,
23
24
  } from 'amotify'
24
25
 
25
26
  import '../../dist/@styles/style.css'
@@ -31,43 +32,36 @@ import {
31
32
  let Test = () => {
32
33
  let [ val_value,set_value ] = useState( '' )
33
34
 
34
- return <Box>
35
- <Column
36
- gap={ 2 }
37
- flexWrap
38
- padding={ 2 }
39
- >
40
- <Input.TextField.Number
41
- label='number'
42
- allowZeroStart
43
- allowDecimals
44
- onUpdateValidValue={ value => {
45
- console.log( value )
46
- } }
47
- />
48
- <Input.TextField.Number
49
- label='allowDecimals'
50
- allowDecimals
51
- // max={ 10 }
52
- onUpdateValidValue={ value => {
53
- console.log( value )
54
- } }
55
- />
56
-
57
- <Input.TextField.Number
58
- label='allowZeroStart,allowDecimals'
59
- allowZeroStart
60
- allowDecimals
61
- min={ 0 }
62
- />
63
- <Input.TextField.DigitNumber
64
- label='allowDecimals,allowZeroStart'
65
- allowDecimals
66
- allowZeroStart
67
- />
68
-
69
- </Column>
35
+ let accordionID = UUID()
70
36
 
37
+ return <Box>
38
+ <Plate size='S'>
39
+ <Column
40
+ padding={ 2 }
41
+ >
42
+ <Button.Sub
43
+ onClick={ () => {
44
+ Accordion.fn.toggle( accordionID )
45
+ } }
46
+ >
47
+ Open Accordion
48
+ </Button.Sub>
49
+ <Accordion
50
+ accordionID={ accordionID }
51
+ // defaultOpen={ false }
52
+ >
53
+ <Box
54
+ ssCardBox
55
+ padding={ 2 }
56
+ >
57
+ Hello World <br />
58
+ Hello World <br />
59
+ Hello World <br />
60
+ Hello World
61
+ </Box>
62
+ </Accordion>
63
+ </Column>
64
+ </Plate>
71
65
  {/* <DesignBook
72
66
  /> */}
73
67
  </Box>
@@ -648,7 +648,7 @@ const Effections = {
648
648
  </Text.SubTitle>
649
649
  <Column padding={ 2 }>
650
650
  <Button
651
- onContextMenu={ ( event ) => {
651
+ onContextMenu={ event => {
652
652
  event.preventDefault()
653
653
  Tooltips.open( {
654
654
  tipsID: 'testTooltips',
@@ -694,7 +694,7 @@ const Effections = {
694
694
  Array.from( { length: 25 } ).map( ( a,index ) => {
695
695
  return <Button.Border
696
696
  key={ index }
697
- onMouseOver={ ( event ) => {
697
+ onMouseOver={ event => {
698
698
  Tooltips.open( {
699
699
  tipsID: 'tips-' + ( index + 1 ),
700
700
  event,
@@ -1311,7 +1311,7 @@ const Inputs = () => {
1311
1311
  ssSphere={ 2 }
1312
1312
  onClick={ async () => {
1313
1313
  } }
1314
- onMouseOver={ ( event ) => {
1314
+ onMouseOver={ event => {
1315
1315
  Tips.open( event.currentTarget,'現在地を取得' )
1316
1316
  } }
1317
1317
  onMouseLeave={ () => { Tips.abort() } }
@@ -1522,7 +1522,7 @@ text5`}
1522
1522
  isRounded
1523
1523
  fontSize='3.paragraph'
1524
1524
  fontColor={ p.isChecked ? 'theme' : '5.translucent' }
1525
- onClick={ ( event ) => {
1525
+ onClick={ event => {
1526
1526
  event.preventDefault()
1527
1527
  event.stopPropagation()
1528
1528
  p.toggle()
@@ -2200,7 +2200,7 @@ const Styling = () => {
2200
2200
  </Button.Border>
2201
2201
 
2202
2202
  <Button.Border
2203
- onClick={ ( event ) => {
2203
+ onClick={ event => {
2204
2204
  Tooltips.open( {
2205
2205
  tipsID: 'test40',
2206
2206
  parent: event.currentTarget,
@@ -2404,7 +2404,7 @@ const Tables = {
2404
2404
  <Button.Clear
2405
2405
  padding={ [ 0,1 ] }
2406
2406
  color='white'
2407
- onClick={ ( event ) => {
2407
+ onClick={ event => {
2408
2408
  Tooltips.open( {
2409
2409
  tipsID: UUID(),
2410
2410
  parent: event.target,