amotify 0.2.95 → 0.2.97
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 +9 -0
- package/demo/esbuild/bundler.ts +2 -2
- package/demo/esbuild/designBook.tsx +94 -73
- package/demo/esbuild/public/index.js +240 -55
- 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
|
@@ -85,6 +85,15 @@ let Test = () => {
|
|
|
85
85
|
for ( let i = 0; i < 100; i++ ) {
|
|
86
86
|
optionElms.push( <option key={ i } value={ i }>{ i }</option> )
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
useEffect( () => {
|
|
90
|
+
let A = $$.interval.once( () => {
|
|
91
|
+
console.log( 'testInterval' )
|
|
92
|
+
},1000,'testInterval' )
|
|
93
|
+
|
|
94
|
+
console.log( A )
|
|
95
|
+
},[] )
|
|
96
|
+
|
|
88
97
|
return <>
|
|
89
98
|
<DesignBook
|
|
90
99
|
/>
|
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
|
|