amotify 0.2.194 → 0.2.196
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
CHANGED
|
@@ -58,9 +58,9 @@ $$.scope( () => {
|
|
|
58
58
|
|
|
59
59
|
Config.launch( {
|
|
60
60
|
appRoot: root,
|
|
61
|
-
roundness: $$.
|
|
61
|
+
roundness: $$.localStorage.get( 'prf.roundness' ) ?? 4,
|
|
62
62
|
themeColor: 'battery',
|
|
63
|
-
darkMode: $$.
|
|
63
|
+
darkMode: $$.localStorage.get( 'prf.darkMode' ) || 'auto',
|
|
64
64
|
} )
|
|
65
65
|
|
|
66
66
|
const AppRouter = () => {
|
|
@@ -2606,7 +2606,7 @@ const UserConfig = () => {
|
|
|
2606
2606
|
$$.scope( () => {
|
|
2607
2607
|
if ( val_theme === Config.get().themeColor ) return
|
|
2608
2608
|
Config.update.themeColor( val_theme )
|
|
2609
|
-
$$.
|
|
2609
|
+
$$.localStorage.set( 'prf.themeColor',val_theme )
|
|
2610
2610
|
} )
|
|
2611
2611
|
},[ val_theme ] )
|
|
2612
2612
|
|
|
@@ -2630,7 +2630,7 @@ const UserConfig = () => {
|
|
|
2630
2630
|
let nextValue = value
|
|
2631
2631
|
|
|
2632
2632
|
$$.interval.once( () => {
|
|
2633
|
-
$$.
|
|
2633
|
+
$$.localStorage.set( 'prf.roundness',nextValue )
|
|
2634
2634
|
Config.update.roundness( Number( nextValue ) as Roundness )
|
|
2635
2635
|
},1000,'updateRoundness' )
|
|
2636
2636
|
} }
|
|
@@ -2661,7 +2661,7 @@ const UserConfig = () => {
|
|
|
2661
2661
|
value={ Config.get().darkMode }
|
|
2662
2662
|
onUpdateValidValue={ value => {
|
|
2663
2663
|
let nextValue = value
|
|
2664
|
-
$$.
|
|
2664
|
+
$$.localStorage.set( 'prf.darkMode',nextValue )
|
|
2665
2665
|
Config.update.darkMode( nextValue )
|
|
2666
2666
|
} }
|
|
2667
2667
|
/>
|
package/demo/next/package.json
CHANGED
|
@@ -58,9 +58,9 @@ const UseClientEffect = ( args: {
|
|
|
58
58
|
Config.launch( {
|
|
59
59
|
appRoot: $$( '#RakumeoAppBody' )[ 0 ],
|
|
60
60
|
|
|
61
|
-
roundness: $$.
|
|
62
|
-
themeColor: $$.
|
|
63
|
-
darkMode: $$.
|
|
61
|
+
roundness: $$.localStorage.get( 'prf.roundness' ) ?? 4,
|
|
62
|
+
themeColor: $$.localStorage.get( 'prf.themeColor' ) || 'ninja',
|
|
63
|
+
darkMode: $$.localStorage.get( 'prf.darkMode' ) || 'light'
|
|
64
64
|
} )
|
|
65
65
|
|
|
66
66
|
pageRouter.setPushEffect( ( url ) => {
|
|
@@ -2609,7 +2609,7 @@ const UserConfig = () => {
|
|
|
2609
2609
|
$$.scope( () => {
|
|
2610
2610
|
if ( val_theme === Config.get().themeColor ) return
|
|
2611
2611
|
Config.update.themeColor( val_theme )
|
|
2612
|
-
$$.
|
|
2612
|
+
$$.localStorage.set( 'prf.themeColor',val_theme )
|
|
2613
2613
|
} )
|
|
2614
2614
|
},[ val_theme ] )
|
|
2615
2615
|
|
|
@@ -2633,7 +2633,7 @@ const UserConfig = () => {
|
|
|
2633
2633
|
let nextValue = value
|
|
2634
2634
|
|
|
2635
2635
|
$$.interval.once( () => {
|
|
2636
|
-
$$.
|
|
2636
|
+
$$.localStorage.set( 'prf.roundness',nextValue )
|
|
2637
2637
|
Config.update.roundness( Number( nextValue ) as Roundness )
|
|
2638
2638
|
},1000,'updateRoundness' )
|
|
2639
2639
|
} }
|
|
@@ -2664,7 +2664,7 @@ const UserConfig = () => {
|
|
|
2664
2664
|
value={ Config.get().darkMode }
|
|
2665
2665
|
onUpdateValidValue={ value => {
|
|
2666
2666
|
let nextValue = value
|
|
2667
|
-
$$.
|
|
2667
|
+
$$.localStorage.set( 'prf.darkMode',nextValue )
|
|
2668
2668
|
Config.update.darkMode( nextValue )
|
|
2669
2669
|
} }
|
|
2670
2670
|
/>
|
|
@@ -2797,8 +2797,29 @@ let DesignBook = () => {
|
|
|
2797
2797
|
padding={ 3 }
|
|
2798
2798
|
size="XS"
|
|
2799
2799
|
>
|
|
2800
|
-
<Column>
|
|
2800
|
+
<Column backgroundColor='cloud'>
|
|
2801
|
+
<Table.Normal
|
|
2802
|
+
colLength={ 2 }
|
|
2803
|
+
head={ false }
|
|
2804
|
+
backgroundColor='trans'
|
|
2805
|
+
rows={ [
|
|
2806
|
+
[
|
|
2807
|
+
{ children: '西暦' },
|
|
2808
|
+
{ children: '和暦' },
|
|
2809
|
+
{ children: '中華民国' },
|
|
2810
|
+
],[
|
|
2811
|
+
{ children: '西暦' },
|
|
2812
|
+
{ children: '和暦' },
|
|
2813
|
+
{ children: '中華民国' },
|
|
2814
|
+
],[
|
|
2815
|
+
{ children: '西暦' },
|
|
2816
|
+
{ children: '和暦' },
|
|
2817
|
+
{ children: '中華民国' },
|
|
2818
|
+
],
|
|
2819
|
+
] }
|
|
2820
|
+
/>
|
|
2801
2821
|
<Button.Sub
|
|
2822
|
+
backgroundColor='trans'
|
|
2802
2823
|
margin={ 'auto' }
|
|
2803
2824
|
>
|
|
2804
2825
|
Submit
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amotify",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.196",
|
|
4
4
|
"description": "UI Component for React,NextJS,esbuild",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "run-p clean build:*",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
91
91
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
92
92
|
"dotenv": "^17.0.1",
|
|
93
|
-
"jmini": "^0.0.
|
|
93
|
+
"jmini": "^0.0.91",
|
|
94
94
|
"react": "^18.3.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|