amotify 0.2.131 → 0.2.133

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.
@@ -29,127 +29,9 @@ import {
29
29
  } from './designBook'
30
30
 
31
31
  let Test = () => {
32
- let [ val_open,set_open ] = useState( false )
33
-
34
- let [ val_uuid,set_uuid ] = useState( UUID() )
35
- useEffect( () => {
36
- if ( !val_open ) return
37
- $$.interval.once( () => {
38
- set_uuid( UUID() )
39
- },1000 )
40
- },[ val_open ] )
41
- Sheet.open( {
42
- type: 'normal.middleCenter',
43
- size: 'S',
44
- content: <Sheet.Body>
45
- AAA
46
- </Sheet.Body>
47
- } )
48
-
49
32
  return <Box>
50
- <Box
51
- padding={ 6 }
52
- >
53
- <Column>
54
- <Row.Center>
55
- <Input.Switch.S value icon={ <FAI.Plus /> } isApply color='choco' />
56
- <Input.Switch.R value icon={ <FAI.Plus /> } isApply color='warn' />
57
- <Input.Switch.L value icon={ <FAI.Plus /> } isApply color='posi' />
58
- </Row.Center>
59
- <Row.Center>
60
- <Input.Switch.S value icon={ <FAI.Plus /> } color='amazon' />
61
- <Input.Switch.R value icon={ <FAI.Plus /> } color='battery' />
62
- <Input.Switch.L value icon={ <FAI.Plus /> } color='bat' />
63
- </Row.Center>
64
- </Column>
65
- </Box>
66
- <Text.Paragraph>
67
- sheet: { String( val_open ) }
68
- </Text.Paragraph>
69
- <Button.Prime
70
- onClick={ () => {
71
- set_open( !val_open )
72
- } }
73
- >
74
- Submit
75
- </Button.Prime>
76
- <Sheet.Element
77
- type='custom'
78
- isOpen={ val_open }
79
- size='S'
80
- >
81
- Hello
82
- </Sheet.Element>
83
- <Sheet.Element
84
- key={ val_uuid }
85
- sheetID='testSheet'
86
- type='normal.middleCenter'
87
- size='S'
88
- isOpen={ val_open }
89
- openAfter={ () => {
90
- set_open( true )
91
- } }
92
- closeAfter={ () => {
93
- set_open( false )
94
- } }
95
- >
96
- <Sheet.Body>
97
- <Column padding={ 2 }>
98
- <Row.Separate>
99
- <Text.Paragraph>
100
- Title
101
- </Text.Paragraph>
102
- <Button.Sub
103
- color='cloud'
104
- ssSphere={ 3 }
105
- onClick={ () => {
106
- set_open( false )
107
- } }
108
- >
109
- <FAI.Times />
110
- </Button.Sub>
111
- </Row.Separate>
112
- { val_uuid }
113
- </Column>
114
- </Sheet.Body>
115
- </Sheet.Element>
116
- {/* <DesignBook
117
- /> */}
118
-
119
- {/* <Row.Center
120
- padding={ 2 }
121
- >
122
- <a href='#section1'>
123
- #Section1
124
- </a>
125
- <a href='#section2'>
126
- #Section2
127
- </a>
128
- <Anchor.Prime
129
- href='#section1'
130
- >
131
- #Section1
132
- </Anchor.Prime>
133
- <Anchor.Prime
134
- href='#section2'
135
- >
136
- #Section2
137
- </Anchor.Prime>
138
- </Row.Center>
139
- <Box
140
- id='section1'
141
- backgroundColor='posi'
142
- height={ 'viewHeight' }
143
- >
144
- #section1
145
- </Box>
146
- <Box
147
- id='section2'
148
- backgroundColor='nega'
149
- height={ 'viewHeight' }
150
- >
151
- #section2
152
- </Box> */}
33
+ <DesignBook
34
+ />
153
35
  </Box>
154
36
  }
155
37
 
@@ -160,12 +42,9 @@ $$.scope( () => {
160
42
 
161
43
  Config.launch( {
162
44
  appRoot: root,
163
- roundness: 4,
164
-
45
+ roundness: $$.localStrage.get( 'prf.roundness' ) ?? 4,
165
46
  themeColor: $$.localStrage.get( 'prf.themeColor' ) || 'battery',
166
- // darkMode: $$.getLocalStrageData( 'prf.darkMode' ) || 'dark',
167
- // darkMode: 'dark',
168
- // darkMode: 'dim'
47
+ darkMode: $$.localStrage.get( 'prf.darkMode' ) || 'auto',
169
48
  } )
170
49
 
171
50
  const AppRouter = () => {