1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.CTCMercuryStyleTemplates = exports.languagePickerTemplates = exports.modalStyleTemplates = exports.testStyles = exports.switchStyleTemplates = exports.buttonStyles = exports.cardStyles = undefined;
|
7 |
|
8 | var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
|
9 |
|
10 | var _defineProperty3 = _interopRequireDefault(_defineProperty2);
|
11 |
|
12 | var _buttonStyles;
|
13 |
|
14 | var _react = require('react');
|
15 |
|
16 | var _react2 = _interopRequireDefault(_react);
|
17 |
|
18 | var _helperFunctions = require('./helperFunctions');
|
19 |
|
20 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21 |
|
22 | var cardStyles = exports.cardStyles = {
|
23 | none: {
|
24 | baseContainerStyle: {},
|
25 | baseImageStyle: {
|
26 | backgroundRepeat: 'no-repeat',
|
27 | backgroundPosition: 'center',
|
28 | backgroundSize: 'contain'
|
29 | },
|
30 | baseSternStyle: {},
|
31 | baseStarboardStyle: {},
|
32 | baseTitleStyle: {},
|
33 | baseSubtitleStyle: {}
|
34 | },
|
35 | neutral: {
|
36 | baseContainerStyle: {
|
37 | backgroundColor: 'rgba(255, 255, 255, 0.8)',
|
38 | position: 'relative',
|
39 | padding: '0.5rem 1rem',
|
40 | marginLeft: '1rem',
|
41 | minWidth: '16rem'
|
42 | },
|
43 | baseImageStyle: {
|
44 | overflow: 'hidden',
|
45 | backgroundPosition: 'center',
|
46 | marginBottom: '8px',
|
47 | borderRadius: '3px 3px 0',
|
48 | display: 'flex',
|
49 | backgroundRepeat: 'no-repeat',
|
50 | backgroundSize: 'contain',
|
51 | height: '19rem'
|
52 | },
|
53 | baseSternStyle: {},
|
54 | baseStarboardStyle: {},
|
55 | baseTitleStyle: { textAlign: 'center', padding: '5px' },
|
56 | baseSubtitleStyle: { textAlign: 'center', padding: '5px' }
|
57 | }
|
58 | };
|
59 | var buttonStyles = exports.buttonStyles = (_buttonStyles = {
|
60 | vivid: {
|
61 | transition: 'darken',
|
62 | on: { backgroundColor: '#33aaff', color: '#fff' },
|
63 | off: { backgroundColor: '#ffbb33', color: '#333333' }
|
64 | },
|
65 | exotic: {
|
66 | transition: 'saturate',
|
67 | on: { backgroundColor: '#770077', color: '#ffff00' },
|
68 | off: { backgroundColor: '#ffff00', color: '#770077' }
|
69 | },
|
70 | facebook: {
|
71 | transition: 'darken',
|
72 | off: { backgroundColor: '#4267b2', color: '#eeeeee' },
|
73 | on: { backgroundColor: '#e4e4e4', color: '#333333' },
|
74 | diff: 5
|
75 | },
|
76 | google: {
|
77 | transition: 'darken',
|
78 | off: { backgroundColor: '#fff', color: '#5f646d' },
|
79 | on: { backgroundColor: '#e4e4e4', color: '#333333' },
|
80 | diff: 5
|
81 | },
|
82 | link: {
|
83 | on: { color: '#00ffff', backgroundColor: '#fff0' },
|
84 | off: { color: '#444444', backgroundColor: '#fff0' },
|
85 | disabled: { color: '#d33' },
|
86 | transition: 'mix',
|
87 | diff: 40
|
88 | },
|
89 | linkOpaque: {
|
90 | on: { backgroundColor: '#ccc', color: '#fff' },
|
91 | off: { backgroundColor: '#fff', color: '#050505' },
|
92 | disabled: { color: '#d33' },
|
93 | transition: 'mix',
|
94 | diff: 40
|
95 | },
|
96 | neutral: {
|
97 | transition: 'darken',
|
98 | on: { backgroundColor: '#dddddd', color: '#000000' },
|
99 | off: { backgroundColor: '#ffffff', color: '#000000' },
|
100 | disabled: { backgroundColor: '#ccc', color: '#888' },
|
101 | diff: 30
|
102 | },
|
103 | smoke: {
|
104 | transition: 'mix',
|
105 | on: { backgroundColor: '#ccc' },
|
106 | off: { backgroundColor: '#eee' },
|
107 | diff: 30
|
108 | },
|
109 | darksmoke: {
|
110 | transition: 'mix',
|
111 | on: { backgroundColor: '#aaa' },
|
112 | off: { backgroundColor: '#ccc' }
|
113 | },
|
114 | transparentNeutral: {
|
115 | transition: 'mix',
|
116 | on: { backgroundColor: '#aaa9' },
|
117 | off: { backgroundColor: '#0000' },
|
118 | disabled: { backgroundColor: '#ccc', color: '#888' },
|
119 | diff: 30
|
120 | },
|
121 | semiTransparentNeutral: {
|
122 | transition: 'mix',
|
123 | on: { backgroundColor: '#aaa9' },
|
124 | off: { backgroundColor: '#dadada99' },
|
125 | disabled: { backgroundColor: '#ccc', color: '#888' },
|
126 | diff: 30
|
127 | },
|
128 |
|
129 | vampire: {
|
130 | transition: 'mix',
|
131 | on: { backgroundColor: '#bb2222', color: '#eeeeee' },
|
132 | off: { backgroundColor: '#e4e4e4', color: '#333333' },
|
133 | diff: 20
|
134 | },
|
135 |
|
136 | redden: {
|
137 | transition: 'mix',
|
138 | on: { backgroundColor: '#ff8888', color: '#eeeeee' },
|
139 | off: { backgroundColor: '#0000', color: '#333333' },
|
140 | diff: 25
|
141 | },
|
142 | verdant: {
|
143 | transition: 'mix',
|
144 | on: { backgroundColor: '#66bb66', color: '#fff' },
|
145 | off: { backgroundColor: '#0000', color: '#333333' },
|
146 | diff: 20
|
147 | },
|
148 | traffic: {
|
149 | transition: 'contrast',
|
150 | on: { backgroundColor: '#dd3333', color: '#eeeeee' },
|
151 | off: { backgroundColor: '#33dd33', color: '#333333' },
|
152 | diff: 20
|
153 | },
|
154 | delphinium: {
|
155 | transition: 'mix',
|
156 | on: { backgroundColor: '#dd33dd88', color: '#111' },
|
157 | off: { backgroundColor: '#ffffff', color: '#111' },
|
158 | diff: 25
|
159 | },
|
160 | lisanthus: {
|
161 | transition: 'saturate',
|
162 | on: { backgroundColor: '#591b64', color: '#eee' },
|
163 | off: { backgroundColor: '#ffffff', color: '#414' },
|
164 | disabled: { backgroundColor: '#ffffff', color: '#777' },
|
165 | diff: 25
|
166 | },
|
167 | darken: {
|
168 | transition: 'mix',
|
169 | on: { backgroundColor: '#eeee' },
|
170 | off: { backgroundColor: '#3333' },
|
171 | diff: 20
|
172 | },
|
173 | yolk: {
|
174 | transition: 'mix',
|
175 | on: { backgroundColor: '#fcd12a', color: '#000000' },
|
176 | off: { backgroundColor: '#fcf4a3', color: '#000000' },
|
177 | diff: 20
|
178 | },
|
179 | monochrome: {
|
180 | transition: 'mix',
|
181 | on: { backgroundColor: '#333333', color: '#f4f4f4' },
|
182 | off: { backgroundColor: '#fafafa', color: '#333333' },
|
183 | diff: 20
|
184 | },
|
185 | icewind: {
|
186 | transition: 'mix',
|
187 | on: { backgroundColor: '#004', color: '#f4f4f4' },
|
188 | off: { backgroundColor: '#ddf8', color: '#333333' },
|
189 | diff: 40
|
190 | },
|
191 | surfing: {
|
192 | transition: 'mix',
|
193 | on: { backgroundColor: '#003b46', color: '#eeffff' },
|
194 | off: { backgroundColor: '#c4dfe6', color: '#001924' },
|
195 | diff: 10
|
196 | },
|
197 | highlight: {
|
198 | transition: 'mix',
|
199 | on: { backgroundColor: '#eeea' },
|
200 | off: { backgroundColor: '#3333' },
|
201 | disabled: { backgroundColor: '#ccc', color: '#888' },
|
202 | diff: 30
|
203 | },
|
204 | darkhighlight: {
|
205 | transition: 'mix',
|
206 | on: { backgroundColor: '#bbba', color: '#504147' },
|
207 | off: { backgroundColor: '#8883', color: '#504147' },
|
208 | disabled: { backgroundColor: '#ccc', color: '#888' },
|
209 | diff: 30
|
210 | },
|
211 | monochromeTransparent: {
|
212 | tag: 'monochromeTransparent',
|
213 | transition: 'mix',
|
214 | on: { backgroundColor: '#333333bb', color: '#f4f4f4' },
|
215 | off: { backgroundColor: '#fafafabb', color: '#333333' },
|
216 | diff: 20
|
217 | }
|
218 | }, (0, _defineProperty3.default)(_buttonStyles, 'smoke', {
|
219 | transition: 'mix',
|
220 | on: { backgroundColor: '#ccc' },
|
221 | off: { backgroundColor: '#eee' },
|
222 | diff: 30
|
223 | }), (0, _defineProperty3.default)(_buttonStyles, 'lightsmoke', {
|
224 | transition: 'mix',
|
225 | on: { backgroundColor: '#d7d7d7' },
|
226 | off: { backgroundColor: '#f7f7f7' },
|
227 | diff: 30
|
228 | }), _buttonStyles);
|
229 | var switchStyleTemplates = exports.switchStyleTemplates = {
|
230 | default: {
|
231 | option: {
|
232 | cursor: 'pointer'
|
233 | },
|
234 | content: {
|
235 | transition: 'all 150ms ease-in-out'
|
236 | }
|
237 | }
|
238 | };
|
239 |
|
240 | var testStyles = exports.testStyles = {
|
241 | test1: {
|
242 | container: {
|
243 | position: 'relative',
|
244 | cursor: 'default',
|
245 | margin: '0 1rem',
|
246 | opacity: '1',
|
247 | color: '#020202',
|
248 | background: '#aaa',
|
249 | border: '1px solid #575757',
|
250 | zIndex: '0',
|
251 | borderRadius: '0.375rem'
|
252 | },
|
253 | getBody: function getBody(_ref) {
|
254 | var hasHeader = _ref.hasHeader,
|
255 | hasFooter = _ref.hasFooter,
|
256 | hasCloseModalButton = _ref.hasCloseModalButton;
|
257 |
|
258 | return {
|
259 | background: '#fed',
|
260 | padding: '2.4rem 2rem',
|
261 | overflowY: 'auto',
|
262 | borderRadius: (hasHeader ? '0 0' : hasCloseModalButton ? '0.375rem 0' : '0.375rem 0.375rem') + ' ' + (hasFooter ? '0 0' : '0.375rem 0.375rem')
|
263 | };
|
264 | },
|
265 | body: {
|
266 | background: '#fdfdfd',
|
267 | padding: '2.4rem 2rem',
|
268 | overflowY: 'auto'
|
269 | },
|
270 | background: {
|
271 | position: 'fixed',
|
272 | height: '100%',
|
273 | top: '0',
|
274 | left: '0',
|
275 | width: '100%',
|
276 | background: 'rgba(0, 0, 0, 0.5)',
|
277 | zIndex: '2',
|
278 | display: 'flex',
|
279 | alignItems: 'center',
|
280 | justifyContent: 'center',
|
281 | WebkitTapHighlightColor: 'transparent'
|
282 | },
|
283 | getHeader: function getHeader(_ref2) {
|
284 | var hasCloseModalButton = _ref2.hasCloseModalButton;
|
285 |
|
286 | return {
|
287 | display: 'flex',
|
288 | alignItems: 'center',
|
289 | justifyContent: 'center',
|
290 | margin: '0',
|
291 | padding: '2rem 2rem 1.5rem 2rem',
|
292 | borderBottom: '0.5rem solid #f0f0f0',
|
293 | background: '#444',
|
294 | borderRadius: hasCloseModalButton ? '0.375rem 0 0.375rem 0.375rem' : '0.375rem'
|
295 | };
|
296 | },
|
297 |
|
298 | buttons: {
|
299 | borderTop: '1px solid #575757',
|
300 | borderRadius: '0 0 0.375rem 0.375rem ',
|
301 | padding: '0.5rem',
|
302 | background: '#fafafa',
|
303 | display: 'flex',
|
304 | alignItems: 'center',
|
305 | justifyContent: 'flex-end'
|
306 | },
|
307 | closemodalbutton: {
|
308 | zIndex: 2,
|
309 | top: '2rem',
|
310 | right: '2rem',
|
311 | position: 'fixed',
|
312 | height: '1.75rem',
|
313 | cursor: 'pointer',
|
314 | background: '#fff',
|
315 | borderTop: '1px solid #575757',
|
316 | borderLeft: '1px solid #575757',
|
317 | borderRight: '1px solid #575757',
|
318 | borderRadius: '1rem',
|
319 | display: 'flex'
|
320 | }
|
321 | }
|
322 | };
|
323 | var modalStyleTemplates = exports.modalStyleTemplates = {
|
324 | basic: {
|
325 | container: {
|
326 | position: 'relative',
|
327 | cursor: 'default',
|
328 | background: '#fff'
|
329 | },
|
330 | getHeader: function getHeader() {
|
331 | return {};
|
332 | },
|
333 | getBody: function getBody() {
|
334 | return {};
|
335 | },
|
336 | body: {
|
337 | opacity: 1
|
338 | },
|
339 | background: {
|
340 | zIndex: 2,
|
341 | background: '#000a',
|
342 | position: 'fixed',
|
343 | height: '100%',
|
344 | top: '0',
|
345 | left: '0',
|
346 | width: '100%',
|
347 | display: 'flex',
|
348 | alignItems: 'center',
|
349 | justifyContent: 'center'
|
350 | },
|
351 | header: {},
|
352 | buttons: {},
|
353 | closemodalbutton: {
|
354 | zIndex: 1,
|
355 | cursor: 'pointer',
|
356 | position: 'absolute'
|
357 | }
|
358 | },
|
359 | default: {
|
360 | container: {},
|
361 | body: {},
|
362 | background: {},
|
363 | header: {},
|
364 | buttons: {},
|
365 | closemodalbutton: {}
|
366 | }
|
367 | };
|
368 | var languagePickerTemplates = exports.languagePickerTemplates = {
|
369 | none: {
|
370 | children: {
|
371 | position: 'absolute'
|
372 | },
|
373 | item: {},
|
374 | trigger: {}
|
375 | },
|
376 | default: {
|
377 | children: {
|
378 | position: 'absolute'
|
379 | },
|
380 | item: {
|
381 | width: '2.5rem',
|
382 | height: '2rem',
|
383 | backgroundRepeat: 'no-repeat',
|
384 | backgroundPosition: 'center',
|
385 | backgroundSize: '80%'
|
386 | },
|
387 | trigger: {
|
388 | width: '2.5rem',
|
389 | height: '2rem',
|
390 | backgroundRepeat: 'no-repeat',
|
391 | backgroundPosition: 'center',
|
392 | backgroundSize: '80%'
|
393 | }
|
394 | }
|
395 | };
|
396 |
|
397 | var CTCMercuryStyleTemplates = exports.CTCMercuryStyleTemplates = {
|
398 | default: {
|
399 | buttonColors: buttonStyles.neutral,
|
400 | getBarStyle: function getBarStyle(isOn) {
|
401 | return {
|
402 | transition: 'flex-grow 0.5s linear',
|
403 | padding: '0.25rem 0'
|
404 | };
|
405 | },
|
406 | getSideBarsStyle: function getSideBarsStyle(isOn) {
|
407 | return {
|
408 | flexGrow: isOn ? 0.5 : 1,
|
409 | backgroundColor: '#111',
|
410 | height: '1rem'
|
411 | };
|
412 | },
|
413 | getLeftBarStyle: function getLeftBarStyle(isOn) {
|
414 | return {};
|
415 | },
|
416 | getRightBarStyle: function getRightBarStyle(isOn) {
|
417 | return {};
|
418 | },
|
419 | getCenterBarStyle: function getCenterBarStyle(isOn) {
|
420 | return {
|
421 | flexGrow: isOn ? 1 : 0.5
|
422 | };
|
423 | }
|
424 | },
|
425 | weird: {
|
426 | buttonColors: buttonStyles.vivid,
|
427 | getBarStyle: function getBarStyle(isOn) {
|
428 | return {
|
429 | transition: 'flex-grow 0.5s linear',
|
430 | padding: '0.25rem 0'
|
431 | };
|
432 | },
|
433 | getSideBarsStyle: function getSideBarsStyle(isOn) {
|
434 | return {
|
435 | flexGrow: isOn ? 0.2 : 1,
|
436 | backgroundColor: isOn ? '#3c3' : '#464',
|
437 | height: '0.5rem'
|
438 | };
|
439 | },
|
440 | getLeftBarStyle: function getLeftBarStyle(isOn) {
|
441 | return {};
|
442 | },
|
443 | getRightBarStyle: function getRightBarStyle(isOn) {
|
444 | return {};
|
445 | },
|
446 | getCenterBarStyle: function getCenterBarStyle(isOn) {
|
447 | return {
|
448 | flexGrow: isOn ? 1 : 0.2,
|
449 | backgroundColor: '#000',
|
450 | color: '#fff'
|
451 | };
|
452 | }
|
453 | }
|
454 | }; |
\ | No newline at end of file |