amotify 0.2.97 → 0.2.98
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 +29 -217
- package/demo/esbuild/public/index.js +75 -173
- package/dist/fn/Cropper.js +1 -1
- package/dist/fn/Input/Autocomplete.js +1 -1
- package/dist/fn/Input/core.js +1 -1
- package/dist/fn/RootViewController.js +1 -1
- package/dist/fn/Snackbar.js +1 -1
- package/dist/fn/SwipeView.js +1 -1
- package/dist/fn/Table/Data.js +1 -1
- package/dist/fn/Tips.js +1 -1
- package/package.json +1 -1
package/demo/esbuild/app.tsx
CHANGED
|
@@ -30,56 +30,6 @@ import {
|
|
|
30
30
|
DesignBook
|
|
31
31
|
} from './designBook'
|
|
32
32
|
|
|
33
|
-
const OpenSheetA = () => {
|
|
34
|
-
Sheet.open( {
|
|
35
|
-
sheetID: 'sheetA',
|
|
36
|
-
type: 'normal.middleCenter',
|
|
37
|
-
hold_state: true,
|
|
38
|
-
content: <Sheet.Body>
|
|
39
|
-
<Column padding={ 1 }>
|
|
40
|
-
<Button.Sub
|
|
41
|
-
color='cloud'
|
|
42
|
-
ssSphere={ 3 }
|
|
43
|
-
onClick={ () => {
|
|
44
|
-
Sheet.close( 'sheetA' )
|
|
45
|
-
} }
|
|
46
|
-
><FAI.Times /></Button.Sub>
|
|
47
|
-
<Input.TextField
|
|
48
|
-
/>
|
|
49
|
-
<Text.Paragraph>SheetA(holdState)</Text.Paragraph>
|
|
50
|
-
</Column>
|
|
51
|
-
</Sheet.Body>
|
|
52
|
-
} )
|
|
53
|
-
}
|
|
54
|
-
const OpenSheetB = () => {
|
|
55
|
-
Sheet.open( {
|
|
56
|
-
sheetID: 'sheetB',
|
|
57
|
-
type: 'drawer.left',
|
|
58
|
-
content: () => {
|
|
59
|
-
return <Column padding={ 1 }>
|
|
60
|
-
<Button.Sub
|
|
61
|
-
color='cloud'
|
|
62
|
-
ssSphere={ 3 }
|
|
63
|
-
onClick={ () => {
|
|
64
|
-
Sheet.close( 'sheetB' )
|
|
65
|
-
} }
|
|
66
|
-
><FAI.Times /></Button.Sub>
|
|
67
|
-
<Text.Paragraph>SheetB</Text.Paragraph>
|
|
68
|
-
<Input.TextField.Email
|
|
69
|
-
/>
|
|
70
|
-
<Input.Time.Clock
|
|
71
|
-
/>
|
|
72
|
-
<Button.Border
|
|
73
|
-
onClick={ () => {
|
|
74
|
-
OpenSheetA()
|
|
75
|
-
} }
|
|
76
|
-
>
|
|
77
|
-
Open SheetA
|
|
78
|
-
</Button.Border>
|
|
79
|
-
</Column>
|
|
80
|
-
}
|
|
81
|
-
} )
|
|
82
|
-
}
|
|
83
33
|
let Test = () => {
|
|
84
34
|
let optionElms: ReactElement[] = []
|
|
85
35
|
for ( let i = 0; i < 100; i++ ) {
|
|
@@ -94,180 +44,42 @@ let Test = () => {
|
|
|
94
44
|
console.log( A )
|
|
95
45
|
},[] )
|
|
96
46
|
|
|
47
|
+
let Options: Input.Autocomplete.Option[] = []
|
|
48
|
+
for ( let i = 0; i < 100; i++ ) {
|
|
49
|
+
Options.push( { value: 'option' + i,label: 'オプション-' + i } )
|
|
50
|
+
}
|
|
51
|
+
for ( let i = 0; i < 100; i++ ) {
|
|
52
|
+
Options.push( { value: 'optionJP' + i,label: '選択肢-' + i } )
|
|
53
|
+
}
|
|
54
|
+
|
|
97
55
|
return <>
|
|
98
|
-
<DesignBook
|
|
99
|
-
/>
|
|
56
|
+
{/* <DesignBook
|
|
57
|
+
/> */}
|
|
100
58
|
<Row.Center
|
|
101
59
|
flexCenter
|
|
102
60
|
freeCSS={ {
|
|
103
61
|
height: '100vh'
|
|
104
62
|
} }
|
|
105
63
|
>
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<Input.Select
|
|
126
|
-
unitWidth={ 8 }
|
|
127
|
-
wrapStyles={ {
|
|
128
|
-
unitWidth: 8
|
|
129
|
-
} }
|
|
130
|
-
options={ [
|
|
131
|
-
{ value: 1,label: 'Option1' },
|
|
132
|
-
{ value: 2,label: 'Option2' },
|
|
133
|
-
] }
|
|
134
|
-
/>
|
|
135
|
-
</Box>
|
|
136
|
-
<Box
|
|
137
|
-
// unitWidth={ 8 }
|
|
138
|
-
padding={ '1/4' }
|
|
139
|
-
backgroundColor='nega'
|
|
140
|
-
>
|
|
141
|
-
<Input.TextField
|
|
142
|
-
wrapStyles={ {
|
|
143
|
-
unitWidth: 8
|
|
144
|
-
} }
|
|
145
|
-
/>
|
|
146
|
-
</Box>
|
|
147
|
-
<Row.Left>
|
|
148
|
-
<Input.Switch.S
|
|
149
|
-
icon={ <FAI.Check /> }
|
|
150
|
-
/>
|
|
151
|
-
<Input.Switch
|
|
152
|
-
icon={ <FAI.Check /> }
|
|
153
|
-
/>
|
|
154
|
-
<Input.Switch.L
|
|
155
|
-
icon={ <FAI.Check /> }
|
|
156
|
-
/>
|
|
157
|
-
</Row.Left>
|
|
158
|
-
<Row.Left>
|
|
159
|
-
<Input.Switch.S
|
|
160
|
-
isApply
|
|
161
|
-
icon={ <FAI.Check /> }
|
|
162
|
-
/>
|
|
163
|
-
<Input.Switch
|
|
164
|
-
isApply
|
|
165
|
-
icon={ <FAI.Check /> }
|
|
166
|
-
/>
|
|
167
|
-
<Input.Switch.L
|
|
168
|
-
isApply
|
|
169
|
-
icon={ <FAI.Check /> }
|
|
170
|
-
/>
|
|
171
|
-
</Row.Left>
|
|
172
|
-
|
|
173
|
-
<Input.Radio
|
|
174
|
-
gap={ 1 }
|
|
175
|
-
iconSize='small'
|
|
176
|
-
iconColor='posi'
|
|
177
|
-
value={ 1 }
|
|
178
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
179
|
-
/>
|
|
180
|
-
<Input.Radio
|
|
181
|
-
gap={ 1 }
|
|
182
|
-
// iconSize='large'
|
|
183
|
-
iconColor='nega'
|
|
184
|
-
value={ 1 }
|
|
185
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
186
|
-
/>
|
|
187
|
-
<Input.Radio
|
|
188
|
-
gap={ 1 }
|
|
189
|
-
iconSize='large'
|
|
190
|
-
iconColor='warn'
|
|
191
|
-
value={ 1 }
|
|
192
|
-
options={ [
|
|
193
|
-
{ value: 1,label: <Box>Option1</Box> },
|
|
194
|
-
{ value: 2,label: <Box>Option2</Box> },
|
|
195
|
-
{ value: 3,label: <Box>Option3</Box> }
|
|
196
|
-
] }
|
|
197
|
-
/>
|
|
198
|
-
<Input.Checkbox
|
|
199
|
-
gap={ 1 }
|
|
200
|
-
iconSize='small'
|
|
201
|
-
value={ 1 }
|
|
202
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
203
|
-
/>
|
|
204
|
-
<Input.Checkbox
|
|
205
|
-
gap={ 1 }
|
|
206
|
-
value={ 1 }
|
|
207
|
-
iconColor='theater'
|
|
208
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
209
|
-
/>
|
|
210
|
-
<Input.Checkbox
|
|
211
|
-
gap={ 1 }
|
|
212
|
-
iconSize='large'
|
|
213
|
-
value={ 1 }
|
|
214
|
-
iconColor='tree3'
|
|
215
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
216
|
-
/>
|
|
217
|
-
|
|
218
|
-
<Row.Center>
|
|
219
|
-
<Button.Prime
|
|
220
|
-
onClick={ () => {
|
|
221
|
-
Sheet.open( {
|
|
222
|
-
type: 'normal.middleCenter',
|
|
223
|
-
hold_state: true,
|
|
224
|
-
content: () => {
|
|
225
|
-
return <Sheet.Body>
|
|
226
|
-
<Column
|
|
227
|
-
padding={ 2 }
|
|
228
|
-
>
|
|
229
|
-
<Button.Sub
|
|
230
|
-
ssEffectsOnActive='ripple.theme'
|
|
231
|
-
onClick={ ( e ) => {
|
|
232
|
-
Tooltips.open( {
|
|
233
|
-
parent: e.currentTarget,
|
|
234
|
-
closeAtParentBlur: false,
|
|
235
|
-
content: <Tooltips.Body>
|
|
236
|
-
<Column
|
|
237
|
-
padding={ 4 }
|
|
238
|
-
>
|
|
239
|
-
AAAA
|
|
240
|
-
</Column>
|
|
241
|
-
</Tooltips.Body>
|
|
242
|
-
} )
|
|
243
|
-
} }
|
|
244
|
-
>
|
|
245
|
-
Open Tooltips
|
|
246
|
-
</Button.Sub>
|
|
247
|
-
</Column>
|
|
248
|
-
</Sheet.Body>
|
|
249
|
-
}
|
|
250
|
-
} )
|
|
251
|
-
} }
|
|
252
|
-
>
|
|
253
|
-
Submit
|
|
254
|
-
</Button.Prime>
|
|
255
|
-
<Button.Prime
|
|
256
|
-
onClick={ () => {
|
|
257
|
-
OpenSheetA()
|
|
258
|
-
} }
|
|
259
|
-
>
|
|
260
|
-
Sheet A
|
|
261
|
-
</Button.Prime>
|
|
262
|
-
<Button.Prime
|
|
263
|
-
onClick={ () => {
|
|
264
|
-
OpenSheetB()
|
|
265
|
-
} }
|
|
266
|
-
>
|
|
267
|
-
Sheet B
|
|
268
|
-
</Button.Prime>
|
|
269
|
-
</Row.Center>
|
|
270
|
-
</Column>
|
|
64
|
+
<Input.Search
|
|
65
|
+
freeCSS={ { minWidth: 12 * 12 } }
|
|
66
|
+
name='search'
|
|
67
|
+
label='Input.Search'
|
|
68
|
+
required
|
|
69
|
+
options={ Options }
|
|
70
|
+
// DynamicOptionsOnSearch={ async ( keyword ) => {
|
|
71
|
+
// console.log( 'keyword',keyword )
|
|
72
|
+
// let options: Input.Autocomplete.Option[] = []
|
|
73
|
+
// for ( let i = 0; i < 100; i++ ) {
|
|
74
|
+
// options.push( {
|
|
75
|
+
// value: i,
|
|
76
|
+
// label: String( i ),
|
|
77
|
+
// searchValue: keyword
|
|
78
|
+
// } )
|
|
79
|
+
// }
|
|
80
|
+
// return options
|
|
81
|
+
// } }
|
|
82
|
+
/>
|
|
271
83
|
</Row.Center>
|
|
272
84
|
</>
|
|
273
85
|
}
|