@symbo.ls/preview 0.0.49 → 0.0.50
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/package.json +1 -1
- package/src/pages/Spaces/buttons.js +32 -17
- package/src/pages/Spaces/index.js +0 -4
- /package/src/{pages/Spaces/__ → __}/boxModel.js +0 -0
- /package/src/{pages/Spaces/__ → __}/index copy.js +0 -0
- /package/src/{pages/Spaces/__ → __}/preview.js +0 -0
- /package/src/{pages/Spaces/__ → __}/sequence.js +0 -0
- /package/src/{pages/Spaces/__ → __}/style.js +0 -0
package/package.json
CHANGED
|
@@ -24,7 +24,8 @@ const ChoosableButton = {
|
|
|
24
24
|
color: 'gray7'
|
|
25
25
|
},
|
|
26
26
|
':hover': {
|
|
27
|
-
theme: 'quaternary'
|
|
27
|
+
theme: 'quaternary',
|
|
28
|
+
'.active': { color: 'blue' }
|
|
28
29
|
},
|
|
29
30
|
'.active': {
|
|
30
31
|
theme: null
|
|
@@ -97,10 +98,8 @@ const BUTTONS = {
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
let keys
|
|
101
101
|
const cachedKeys = state => {
|
|
102
|
-
|
|
103
|
-
return keys
|
|
102
|
+
return Object.keys(BUTTONS[state.value]).filter(v => v !== 'maxValue')
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
export default {
|
|
@@ -114,9 +113,9 @@ export default {
|
|
|
114
113
|
extend: [ChoosableButton, DropdownParent, WiderButton],
|
|
115
114
|
|
|
116
115
|
props: ({ key, state, parent }) => ({
|
|
116
|
+
lazyLoad: true,
|
|
117
117
|
active: state.parent.parent.props[state.value] === state.parent.key,
|
|
118
118
|
icon: { name: state.value },
|
|
119
|
-
lazyLoad: true,
|
|
120
119
|
|
|
121
120
|
'.active': {
|
|
122
121
|
color: 'blue',
|
|
@@ -169,18 +168,21 @@ export default {
|
|
|
169
168
|
return {
|
|
170
169
|
lazyLoad: true,
|
|
171
170
|
active,
|
|
172
|
-
icon: {
|
|
173
|
-
name: iconKey
|
|
174
|
-
},
|
|
171
|
+
icon: { name: iconKey },
|
|
175
172
|
gridArea: keys.length > 3 && diffPropPosition(propState.value, state.value),
|
|
176
173
|
theme: null,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
color: 'blue',
|
|
174
|
+
'@dark': {
|
|
175
|
+
background: 'transparent 0',
|
|
176
|
+
color: 'gray7',
|
|
181
177
|
':hover': {
|
|
182
|
-
|
|
178
|
+
theme: 'quinary',
|
|
179
|
+
color: 'gray8'
|
|
183
180
|
}
|
|
181
|
+
},
|
|
182
|
+
':hover': null,
|
|
183
|
+
'.active': {
|
|
184
|
+
theme: null,
|
|
185
|
+
color: 'blue'
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
},
|
|
@@ -244,6 +246,9 @@ export default {
|
|
|
244
246
|
const tableState = rowState.parent
|
|
245
247
|
const propKey = diffPropValue(propState.value, state.value)
|
|
246
248
|
const active = tableState.props[propKey] === rowState.key
|
|
249
|
+
|
|
250
|
+
const isRadius = propState.value === 'borderRadius'
|
|
251
|
+
|
|
247
252
|
return {
|
|
248
253
|
position: 'absolute',
|
|
249
254
|
round: '100%',
|
|
@@ -252,11 +257,21 @@ export default {
|
|
|
252
257
|
lazyLoad: true,
|
|
253
258
|
|
|
254
259
|
hide: !active,
|
|
260
|
+
isRadius,
|
|
261
|
+
|
|
262
|
+
'!isRadius': {
|
|
263
|
+
':nth-child(1)': { left: '50%', top: 'W' },
|
|
264
|
+
':nth-child(2)': { right: 'W', top: '50%' },
|
|
265
|
+
':nth-child(3)': { left: '50%', bottom: 'W' },
|
|
266
|
+
':nth-child(4)': { left: 'W', top: '50%' }
|
|
267
|
+
},
|
|
255
268
|
|
|
256
|
-
'
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
269
|
+
'.isRadius': {
|
|
270
|
+
':nth-child(1)': { left: 'X2', top: 'X2' },
|
|
271
|
+
':nth-child(2)': { right: 'X2', top: 'X2' },
|
|
272
|
+
':nth-child(3)': { right: 'X2', bottom: 'X2' },
|
|
273
|
+
':nth-child(4)': { left: 'X2', bottom: 'X2' }
|
|
274
|
+
}
|
|
260
275
|
}
|
|
261
276
|
}
|
|
262
277
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|