amotify 0.2.135 → 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.
- package/demo/esbuild/app.tsx +34 -18
- package/demo/esbuild/designBook.tsx +8 -7
- package/demo/esbuild/public/index.js +76 -170
- package/dist/fn/Input/Autocomplete.js +1 -1
- package/dist/fn/Input/TextField.d.ts +3 -1
- package/dist/fn/Input/TextField.js +3 -3
- package/dist/fn/Sheet.js +1 -1
- package/dist/mols/Accordion.js +1 -1
- package/package.json +2 -2
package/demo/esbuild/app.tsx
CHANGED
|
@@ -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'
|
|
@@ -29,25 +30,40 @@ import {
|
|
|
29
30
|
} from './designBook'
|
|
30
31
|
|
|
31
32
|
let Test = () => {
|
|
32
|
-
|
|
33
|
-
<Row.Center
|
|
34
|
-
flexWrap
|
|
35
|
-
padding={ 2 }
|
|
36
|
-
>
|
|
37
|
-
<Input.TextField
|
|
38
|
-
label='AAAA'
|
|
39
|
-
// multiline minRows={ 3 }
|
|
40
|
-
/>
|
|
41
|
-
<Input.TextField
|
|
42
|
-
label='AAAA'
|
|
43
|
-
fontHeight={ 1.2 }
|
|
44
|
-
// multiline minRows={ 3 }
|
|
45
|
-
/>
|
|
33
|
+
let [ val_value,set_value ] = useState( '' )
|
|
46
34
|
|
|
47
|
-
|
|
35
|
+
let accordionID = UUID()
|
|
48
36
|
|
|
49
|
-
|
|
50
|
-
|
|
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>
|
|
65
|
+
{/* <DesignBook
|
|
66
|
+
/> */}
|
|
51
67
|
</Box>
|
|
52
68
|
}
|
|
53
69
|
|
|
@@ -59,7 +75,7 @@ $$.scope( () => {
|
|
|
59
75
|
Config.launch( {
|
|
60
76
|
appRoot: root,
|
|
61
77
|
roundness: $$.localStrage.get( 'prf.roundness' ) ?? 4,
|
|
62
|
-
themeColor:
|
|
78
|
+
themeColor: 'battery',
|
|
63
79
|
darkMode: $$.localStrage.get( 'prf.darkMode' ) || 'auto',
|
|
64
80
|
} )
|
|
65
81
|
|
|
@@ -648,7 +648,7 @@ const Effections = {
|
|
|
648
648
|
</Text.SubTitle>
|
|
649
649
|
<Column padding={ 2 }>
|
|
650
650
|
<Button
|
|
651
|
-
onContextMenu={
|
|
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={
|
|
697
|
+
onMouseOver={ event => {
|
|
698
698
|
Tooltips.open( {
|
|
699
699
|
tipsID: 'tips-' + ( index + 1 ),
|
|
700
700
|
event,
|
|
@@ -1269,7 +1269,8 @@ const Inputs = () => {
|
|
|
1269
1269
|
<Input.TextField
|
|
1270
1270
|
label='Input.TextField (number.zeroStart)'
|
|
1271
1271
|
name='textfield.zeroStart'
|
|
1272
|
-
|
|
1272
|
+
allowZeroStart
|
|
1273
|
+
allowDecimals
|
|
1273
1274
|
value={ '0324' }
|
|
1274
1275
|
/>
|
|
1275
1276
|
<Box>
|
|
@@ -1310,7 +1311,7 @@ const Inputs = () => {
|
|
|
1310
1311
|
ssSphere={ 2 }
|
|
1311
1312
|
onClick={ async () => {
|
|
1312
1313
|
} }
|
|
1313
|
-
onMouseOver={
|
|
1314
|
+
onMouseOver={ event => {
|
|
1314
1315
|
Tips.open( event.currentTarget,'現在地を取得' )
|
|
1315
1316
|
} }
|
|
1316
1317
|
onMouseLeave={ () => { Tips.abort() } }
|
|
@@ -1521,7 +1522,7 @@ text5`}
|
|
|
1521
1522
|
isRounded
|
|
1522
1523
|
fontSize='3.paragraph'
|
|
1523
1524
|
fontColor={ p.isChecked ? 'theme' : '5.translucent' }
|
|
1524
|
-
onClick={
|
|
1525
|
+
onClick={ event => {
|
|
1525
1526
|
event.preventDefault()
|
|
1526
1527
|
event.stopPropagation()
|
|
1527
1528
|
p.toggle()
|
|
@@ -2199,7 +2200,7 @@ const Styling = () => {
|
|
|
2199
2200
|
</Button.Border>
|
|
2200
2201
|
|
|
2201
2202
|
<Button.Border
|
|
2202
|
-
onClick={
|
|
2203
|
+
onClick={ event => {
|
|
2203
2204
|
Tooltips.open( {
|
|
2204
2205
|
tipsID: 'test40',
|
|
2205
2206
|
parent: event.currentTarget,
|
|
@@ -2403,7 +2404,7 @@ const Tables = {
|
|
|
2403
2404
|
<Button.Clear
|
|
2404
2405
|
padding={ [ 0,1 ] }
|
|
2405
2406
|
color='white'
|
|
2406
|
-
onClick={
|
|
2407
|
+
onClick={ event => {
|
|
2407
2408
|
Tooltips.open( {
|
|
2408
2409
|
tipsID: UUID(),
|
|
2409
2410
|
parent: event.target,
|