amotify 0.2.96 → 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 +38 -217
- package/demo/esbuild/bundler.ts +2 -2
- package/demo/esbuild/designBook.tsx +94 -73
- package/demo/esbuild/public/index.js +221 -134
- package/dist/@utils/LaunchReactApp.js +1 -1
- package/dist/atoms/Img.js +1 -1
- package/dist/fn/Cropper.js +1 -1
- package/dist/fn/Input/Autocomplete.js +1 -1
- package/dist/fn/Input/Slider.js +1 -1
- package/dist/fn/Input/core.js +1 -1
- package/dist/fn/RootViewController.js +1 -1
- package/dist/fn/Sheet.d.ts +1 -1
- package/dist/fn/Sheet.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/Table/Drag.js +1 -1
- package/dist/fn/Tips.js +1 -1
- package/package.json +2 -2
package/demo/esbuild/app.tsx
CHANGED
|
@@ -30,235 +30,56 @@ 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++ ) {
|
|
86
36
|
optionElms.push( <option key={ i } value={ i }>{ i }</option> )
|
|
87
37
|
}
|
|
38
|
+
|
|
39
|
+
useEffect( () => {
|
|
40
|
+
let A = $$.interval.once( () => {
|
|
41
|
+
console.log( 'testInterval' )
|
|
42
|
+
},1000,'testInterval' )
|
|
43
|
+
|
|
44
|
+
console.log( A )
|
|
45
|
+
},[] )
|
|
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
|
+
|
|
88
55
|
return <>
|
|
89
|
-
<DesignBook
|
|
90
|
-
/>
|
|
56
|
+
{/* <DesignBook
|
|
57
|
+
/> */}
|
|
91
58
|
<Row.Center
|
|
92
59
|
flexCenter
|
|
93
60
|
freeCSS={ {
|
|
94
61
|
height: '100vh'
|
|
95
62
|
} }
|
|
96
63
|
>
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<Input.Select
|
|
117
|
-
unitWidth={ 8 }
|
|
118
|
-
wrapStyles={ {
|
|
119
|
-
unitWidth: 8
|
|
120
|
-
} }
|
|
121
|
-
options={ [
|
|
122
|
-
{ value: 1,label: 'Option1' },
|
|
123
|
-
{ value: 2,label: 'Option2' },
|
|
124
|
-
] }
|
|
125
|
-
/>
|
|
126
|
-
</Box>
|
|
127
|
-
<Box
|
|
128
|
-
// unitWidth={ 8 }
|
|
129
|
-
padding={ '1/4' }
|
|
130
|
-
backgroundColor='nega'
|
|
131
|
-
>
|
|
132
|
-
<Input.TextField
|
|
133
|
-
wrapStyles={ {
|
|
134
|
-
unitWidth: 8
|
|
135
|
-
} }
|
|
136
|
-
/>
|
|
137
|
-
</Box>
|
|
138
|
-
<Row.Left>
|
|
139
|
-
<Input.Switch.S
|
|
140
|
-
icon={ <FAI.Check /> }
|
|
141
|
-
/>
|
|
142
|
-
<Input.Switch
|
|
143
|
-
icon={ <FAI.Check /> }
|
|
144
|
-
/>
|
|
145
|
-
<Input.Switch.L
|
|
146
|
-
icon={ <FAI.Check /> }
|
|
147
|
-
/>
|
|
148
|
-
</Row.Left>
|
|
149
|
-
<Row.Left>
|
|
150
|
-
<Input.Switch.S
|
|
151
|
-
isApply
|
|
152
|
-
icon={ <FAI.Check /> }
|
|
153
|
-
/>
|
|
154
|
-
<Input.Switch
|
|
155
|
-
isApply
|
|
156
|
-
icon={ <FAI.Check /> }
|
|
157
|
-
/>
|
|
158
|
-
<Input.Switch.L
|
|
159
|
-
isApply
|
|
160
|
-
icon={ <FAI.Check /> }
|
|
161
|
-
/>
|
|
162
|
-
</Row.Left>
|
|
163
|
-
|
|
164
|
-
<Input.Radio
|
|
165
|
-
gap={ 1 }
|
|
166
|
-
iconSize='small'
|
|
167
|
-
iconColor='posi'
|
|
168
|
-
value={ 1 }
|
|
169
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
170
|
-
/>
|
|
171
|
-
<Input.Radio
|
|
172
|
-
gap={ 1 }
|
|
173
|
-
// iconSize='large'
|
|
174
|
-
iconColor='nega'
|
|
175
|
-
value={ 1 }
|
|
176
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
177
|
-
/>
|
|
178
|
-
<Input.Radio
|
|
179
|
-
gap={ 1 }
|
|
180
|
-
iconSize='large'
|
|
181
|
-
iconColor='warn'
|
|
182
|
-
value={ 1 }
|
|
183
|
-
options={ [
|
|
184
|
-
{ value: 1,label: <Box>Option1</Box> },
|
|
185
|
-
{ value: 2,label: <Box>Option2</Box> },
|
|
186
|
-
{ value: 3,label: <Box>Option3</Box> }
|
|
187
|
-
] }
|
|
188
|
-
/>
|
|
189
|
-
<Input.Checkbox
|
|
190
|
-
gap={ 1 }
|
|
191
|
-
iconSize='small'
|
|
192
|
-
value={ 1 }
|
|
193
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
194
|
-
/>
|
|
195
|
-
<Input.Checkbox
|
|
196
|
-
gap={ 1 }
|
|
197
|
-
value={ 1 }
|
|
198
|
-
iconColor='theater'
|
|
199
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
200
|
-
/>
|
|
201
|
-
<Input.Checkbox
|
|
202
|
-
gap={ 1 }
|
|
203
|
-
iconSize='large'
|
|
204
|
-
value={ 1 }
|
|
205
|
-
iconColor='tree3'
|
|
206
|
-
options={ [ { value: 1,label: "Option1" },{ value: 2,label: "Option2" },{ value: 3,label: "Option3" } ] }
|
|
207
|
-
/>
|
|
208
|
-
|
|
209
|
-
<Row.Center>
|
|
210
|
-
<Button.Prime
|
|
211
|
-
onClick={ () => {
|
|
212
|
-
Sheet.open( {
|
|
213
|
-
type: 'normal.middleCenter',
|
|
214
|
-
hold_state: true,
|
|
215
|
-
content: () => {
|
|
216
|
-
return <Sheet.Body>
|
|
217
|
-
<Column
|
|
218
|
-
padding={ 2 }
|
|
219
|
-
>
|
|
220
|
-
<Button.Sub
|
|
221
|
-
ssEffectsOnActive='ripple.theme'
|
|
222
|
-
onClick={ ( e ) => {
|
|
223
|
-
Tooltips.open( {
|
|
224
|
-
parent: e.currentTarget,
|
|
225
|
-
closeAtParentBlur: false,
|
|
226
|
-
content: <Tooltips.Body>
|
|
227
|
-
<Column
|
|
228
|
-
padding={ 4 }
|
|
229
|
-
>
|
|
230
|
-
AAAA
|
|
231
|
-
</Column>
|
|
232
|
-
</Tooltips.Body>
|
|
233
|
-
} )
|
|
234
|
-
} }
|
|
235
|
-
>
|
|
236
|
-
Open Tooltips
|
|
237
|
-
</Button.Sub>
|
|
238
|
-
</Column>
|
|
239
|
-
</Sheet.Body>
|
|
240
|
-
}
|
|
241
|
-
} )
|
|
242
|
-
} }
|
|
243
|
-
>
|
|
244
|
-
Submit
|
|
245
|
-
</Button.Prime>
|
|
246
|
-
<Button.Prime
|
|
247
|
-
onClick={ () => {
|
|
248
|
-
OpenSheetA()
|
|
249
|
-
} }
|
|
250
|
-
>
|
|
251
|
-
Sheet A
|
|
252
|
-
</Button.Prime>
|
|
253
|
-
<Button.Prime
|
|
254
|
-
onClick={ () => {
|
|
255
|
-
OpenSheetB()
|
|
256
|
-
} }
|
|
257
|
-
>
|
|
258
|
-
Sheet B
|
|
259
|
-
</Button.Prime>
|
|
260
|
-
</Row.Center>
|
|
261
|
-
</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
|
+
/>
|
|
262
83
|
</Row.Center>
|
|
263
84
|
</>
|
|
264
85
|
}
|
package/demo/esbuild/bundler.ts
CHANGED
|
@@ -9,8 +9,8 @@ esbuild.build( {
|
|
|
9
9
|
target: [ "ES6" ],
|
|
10
10
|
platform: 'node',
|
|
11
11
|
define: {
|
|
12
|
-
'process.env.NODE_ENV': '"production"',
|
|
13
|
-
|
|
12
|
+
// 'process.env.NODE_ENV': '"production"',
|
|
13
|
+
'process.env.NODE_ENV': '"development"'
|
|
14
14
|
},
|
|
15
15
|
|
|
16
16
|
entryPoints: [
|
|
@@ -2571,7 +2571,7 @@ const Tables = {
|
|
|
2571
2571
|
cellStyles={ {
|
|
2572
2572
|
padding: '1/2'
|
|
2573
2573
|
} }
|
|
2574
|
-
filter={ [ true ] }
|
|
2574
|
+
filter={ [ true,true ] }
|
|
2575
2575
|
checker
|
|
2576
2576
|
/>
|
|
2577
2577
|
</Column>
|
|
@@ -2620,6 +2620,23 @@ const Cropping = () => {
|
|
|
2620
2620
|
<FAI.Image /> イメージを選択
|
|
2621
2621
|
</Button>
|
|
2622
2622
|
|
|
2623
|
+
<Row.Center>
|
|
2624
|
+
<Button.Prime
|
|
2625
|
+
onClick={ () => {
|
|
2626
|
+
Sheet.open( {
|
|
2627
|
+
type: 'image',
|
|
2628
|
+
src: [
|
|
2629
|
+
'https://png.pngtree.com/background/20210714/original/pngtree-futuristic-shape-abstract-background-chemistry-technology-concept-for-website-picture-image_1250295.jpg',
|
|
2630
|
+
'https://png.pngtree.com/background/20210711/original/pngtree-set-of-instagram-stories-sale-banner-background-instagram-template-photo-can-picture-image_1167343.jpg',
|
|
2631
|
+
'https://png.pngtree.com/background/20210715/original/pngtree-website-banner-abstract-purple-blue-gradient-background-picture-image_1298439.jpg'
|
|
2632
|
+
]
|
|
2633
|
+
} )
|
|
2634
|
+
} }
|
|
2635
|
+
>
|
|
2636
|
+
Open Image Sheet
|
|
2637
|
+
</Button.Prime>
|
|
2638
|
+
</Row.Center>
|
|
2639
|
+
|
|
2623
2640
|
<Flex gap={ 1 } verticalAlign='top'>
|
|
2624
2641
|
{ val_ImageUrl1 && <Img
|
|
2625
2642
|
isRounded
|
|
@@ -2685,46 +2702,48 @@ const Cropping = () => {
|
|
|
2685
2702
|
const DesignConfig = {
|
|
2686
2703
|
Darkmode: ( p: Omit<Input.List.Input,'options'> ) => {
|
|
2687
2704
|
useEffect( () => {
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
<
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
{
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2705
|
+
$$.interval.once( () => {
|
|
2706
|
+
Sheet.open( {
|
|
2707
|
+
sheetID: 'darkModeSelector',
|
|
2708
|
+
type: 'custom',
|
|
2709
|
+
parent: document.body,
|
|
2710
|
+
gravityPoint: 19,
|
|
2711
|
+
closeAtAroundClick: false,
|
|
2712
|
+
content: () => {
|
|
2713
|
+
return <Box padding={ 1 }>
|
|
2714
|
+
<Input.Segmented.Cloud
|
|
2715
|
+
cellStyles={ {
|
|
2716
|
+
flexCenter: true,
|
|
2717
|
+
padding: [ '1/4','1/2' ],
|
|
2718
|
+
isRounded: true,
|
|
2719
|
+
} }
|
|
2720
|
+
cellCheckedStyles={ {
|
|
2721
|
+
boxShadow: '2.normal',
|
|
2722
|
+
backgroundColor: 'theme',
|
|
2723
|
+
fontColor: 'white'
|
|
2724
|
+
} }
|
|
2725
|
+
ssCardBox
|
|
2726
|
+
backgroundColor={ 'layer.1' }
|
|
2727
|
+
isRounded
|
|
2728
|
+
gap={ '1/6' }
|
|
2729
|
+
fontColor={ '4.thin' }
|
|
2730
|
+
{ ...p }
|
|
2731
|
+
options={ [
|
|
2732
|
+
{ value: 'light',label: 'Light' },
|
|
2733
|
+
{ value: 'dim',label: 'Dim' },
|
|
2734
|
+
{ value: 'dark',label: 'Dark' }
|
|
2735
|
+
] }
|
|
2736
|
+
value={ Config.get().darkMode }
|
|
2737
|
+
onUpdateValidValue={ ( { value } ) => {
|
|
2738
|
+
let nextValue = value
|
|
2739
|
+
$$.localStrage.set( 'prf.darkMode',nextValue )
|
|
2740
|
+
Config.update.darkMode( nextValue )
|
|
2741
|
+
} }
|
|
2742
|
+
/>
|
|
2743
|
+
</Box>
|
|
2744
|
+
}
|
|
2745
|
+
} )
|
|
2746
|
+
},100 )
|
|
2728
2747
|
},[] )
|
|
2729
2748
|
|
|
2730
2749
|
return null
|
|
@@ -2840,38 +2859,40 @@ const DesignConfig = {
|
|
|
2840
2859
|
}
|
|
2841
2860
|
useEffect( () => {
|
|
2842
2861
|
$$.scope( async () => {
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
<
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
<
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2862
|
+
$$.interval.once( () => {
|
|
2863
|
+
Sheet.open( {
|
|
2864
|
+
sheetID: 'themeColorSelector',
|
|
2865
|
+
type: 'custom',
|
|
2866
|
+
parent: document.body,
|
|
2867
|
+
gravityPoint: 17,
|
|
2868
|
+
closeAtParentBlur: false,
|
|
2869
|
+
closeAtAroundClick: false,
|
|
2870
|
+
content: () => {
|
|
2871
|
+
return <Box padding={ 1 }>
|
|
2872
|
+
<Button.Border
|
|
2873
|
+
isRounded
|
|
2874
|
+
fontColor='theme'
|
|
2875
|
+
onClick={ ( e ) => {
|
|
2876
|
+
OpenThemeSheet( {
|
|
2877
|
+
defaultColor: Config.get().themeColor,
|
|
2878
|
+
cb: ( newColor ) => { }
|
|
2879
|
+
} )
|
|
2880
|
+
} }
|
|
2881
|
+
>
|
|
2882
|
+
<Row.Center gap={ '1/3' }>
|
|
2883
|
+
<Box
|
|
2884
|
+
boxShadow={ '2.normal' }
|
|
2885
|
+
ssSquare={ 1 }
|
|
2886
|
+
borderRadius={ '1/3' }
|
|
2887
|
+
backgroundColor={ 'theme' }
|
|
2888
|
+
/>
|
|
2889
|
+
Theme: { Config.get().themeColor.toCapital() }
|
|
2890
|
+
</Row.Center>
|
|
2891
|
+
</Button.Border>
|
|
2892
|
+
</Box>
|
|
2893
|
+
}
|
|
2894
|
+
} )
|
|
2895
|
+
},100 )
|
|
2875
2896
|
} )
|
|
2876
2897
|
},[] )
|
|
2877
2898
|
|