amotify 0.2.132 → 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
33
  <DesignBook
51
34
  />
52
- <Box
53
- padding={ 6 }
54
- >
55
- <Column>
56
- <Row.Center>
57
- <Input.Switch.S value icon={ <FAI.Plus /> } isApply color='choco' />
58
- <Input.Switch.R value icon={ <FAI.Plus /> } isApply color='warn' />
59
- <Input.Switch.L value icon={ <FAI.Plus /> } isApply color='posi' />
60
- </Row.Center>
61
- <Row.Center>
62
- <Input.Switch.S value icon={ <FAI.Plus /> } color='amazon' />
63
- <Input.Switch.R value icon={ <FAI.Plus /> } color='battery' />
64
- <Input.Switch.L value icon={ <FAI.Plus /> } color='bat' />
65
- </Row.Center>
66
- </Column>
67
- </Box>
68
- <Text.Paragraph>
69
- sheet: { String( val_open ) }
70
- </Text.Paragraph>
71
- <Button.Prime
72
- onClick={ () => {
73
- set_open( !val_open )
74
- } }
75
- >
76
- Submit
77
- </Button.Prime>
78
- <Sheet.Element
79
- type='custom'
80
- isOpen={ val_open }
81
- size='S'
82
- >
83
- Hello
84
- </Sheet.Element>
85
- <Sheet.Element
86
- key={ val_uuid }
87
- sheetID='testSheet'
88
- type='normal.middleCenter'
89
- size='S'
90
- isOpen={ val_open }
91
- openAfter={ () => {
92
- set_open( true )
93
- } }
94
- closeAfter={ () => {
95
- set_open( false )
96
- } }
97
- >
98
- <Sheet.Body>
99
- <Column padding={ 2 }>
100
- <Row.Separate>
101
- <Text.Paragraph>
102
- Title
103
- </Text.Paragraph>
104
- <Button.Sub
105
- color='cloud'
106
- ssSphere={ 3 }
107
- onClick={ () => {
108
- set_open( false )
109
- } }
110
- >
111
- <FAI.Times />
112
- </Button.Sub>
113
- </Row.Separate>
114
- { val_uuid }
115
- </Column>
116
- </Sheet.Body>
117
- </Sheet.Element>
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> */}
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 = () => {