amotify 0.2.96 → 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.
@@ -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
  />
@@ -9,8 +9,8 @@ esbuild.build( {
9
9
  target: [ "ES6" ],
10
10
  platform: 'node',
11
11
  define: {
12
- 'process.env.NODE_ENV': '"production"',
13
- // 'process.env.NODE_ENV': '"development"'
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
- Sheet.open( {
2689
- sheetID: 'darkModeSelector',
2690
- type: 'custom',
2691
- parent: document.body,
2692
- gravityPoint: 19,
2693
- closeAtAroundClick: false,
2694
- content: () => {
2695
- return <Box padding={ 1 }>
2696
- <Input.Segmented.Cloud
2697
- cellStyles={ {
2698
- flexCenter: true,
2699
- padding: [ '1/4','1/2' ],
2700
- isRounded: true,
2701
- } }
2702
- cellCheckedStyles={ {
2703
- boxShadow: '2.normal',
2704
- backgroundColor: 'theme',
2705
- fontColor: 'white'
2706
- } }
2707
- ssCardBox
2708
- backgroundColor={ 'layer.1' }
2709
- isRounded
2710
- gap={ '1/6' }
2711
- fontColor={ '4.thin' }
2712
- { ...p }
2713
- options={ [
2714
- { value: 'light',label: 'Light' },
2715
- { value: 'dim',label: 'Dim' },
2716
- { value: 'dark',label: 'Dark' }
2717
- ] }
2718
- value={ Config.get().darkMode }
2719
- onUpdateValidValue={ ( { value } ) => {
2720
- let nextValue = value
2721
- $$.localStrage.set( 'prf.darkMode',nextValue )
2722
- Config.update.darkMode( nextValue )
2723
- } }
2724
- />
2725
- </Box>
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
- Sheet.open( {
2844
- sheetID: 'themeColorSelector',
2845
- type: 'custom',
2846
- parent: document.body,
2847
- gravityPoint: 17,
2848
- closeAtParentBlur: false,
2849
- closeAtAroundClick: false,
2850
- content: () => {
2851
- return <Box padding={ 1 }>
2852
- <Button.Border
2853
- isRounded
2854
- fontColor='theme'
2855
- onClick={ ( e ) => {
2856
- OpenThemeSheet( {
2857
- defaultColor: Config.get().themeColor,
2858
- cb: ( newColor ) => { }
2859
- } )
2860
- } }
2861
- >
2862
- <Row.Center gap={ '1/3' }>
2863
- <Box
2864
- boxShadow={ '2.normal' }
2865
- ssSquare={ 1 }
2866
- borderRadius={ '1/3' }
2867
- backgroundColor={ 'theme' }
2868
- />
2869
- Theme: { Config.get().themeColor.toCapital() }
2870
- </Row.Center>
2871
- </Button.Border>
2872
- </Box>
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