1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 | var _breakpoints = require("../helpers/breakpoints");
|
9 |
|
10 | function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
11 |
|
12 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
13 |
|
14 | var unit = 15;
|
15 | var columns = 12;
|
16 | var globalRadius = 3;
|
17 | var color = {
|
18 | primary: '#324973',
|
19 | primarySaturated: '#224173',
|
20 | primaryDarker: '#1c355c',
|
21 | secondary: '#518cf4',
|
22 | secondarySaturated: '#4484f2',
|
23 | secondaryDarker: '#336ecc',
|
24 | success: '#3adb76',
|
25 | warning: '#ffae00',
|
26 | alert: '#d93900',
|
27 | successLight: '',
|
28 | warningLight: '',
|
29 | alertLight: '#fff0e9',
|
30 | successDark: '',
|
31 | warningDark: '',
|
32 | alertDark: '#a52c00',
|
33 | gray: '#ececec',
|
34 | grayLighter: '#f8f8f8',
|
35 | grayLight: '#f5f5f5',
|
36 | grayDark: '#9B9B9B',
|
37 | grayDarker: '#5F5F5F',
|
38 | grayDarkest: '#2e2e2e',
|
39 | blueGray: '#e6e9f0',
|
40 | blueGrayLightest: '#F7F9FB',
|
41 | blueGrayLighter: '#f4f6fb',
|
42 | blueGrayLight: '#EEF0F4',
|
43 | blueGrayDark: '#8096b7',
|
44 | black: '#0a0a0a',
|
45 | white: '#fefefe',
|
46 | shadow: 'rgba(0, 0, 0, .2)',
|
47 | shadowWeakest: 'rgba(0, 0, 0, .035)',
|
48 | shadowWeaker: 'rgba(0, 0, 0, .055)',
|
49 | shadowWeak: 'rgba(0, 0, 0, .1)',
|
50 | shadowStrong: 'rgba(0, 0, 0, .3)',
|
51 | shadowStronger: 'rgba(0, 0, 0, .5)',
|
52 | shadowStrongest: 'rgba(0, 0, 0, .7)',
|
53 | fog: 'rgba(255, 255, 255, .2)',
|
54 | fogWeakest: 'rgba(255, 255, 255, .075)',
|
55 | fogWeaker: 'rgba(255, 255, 255, .1)',
|
56 | fogWeak: 'rgba(255, 255, 255, .15)',
|
57 | fogStrong: 'rgba(255, 255, 255, .3)',
|
58 | fogStronger: 'rgba(255, 255, 255, .5)',
|
59 | fogStrongest: 'rgba(255, 255, 255, .7)',
|
60 | transparent: 'transparent'
|
61 | };
|
62 | var input = {
|
63 | background: color.grayLight,
|
64 | color: color.grayDarker,
|
65 | placeholderColor: color.grayDark,
|
66 | disabledBackground: color.gray,
|
67 | invalidBackground: color.alertLight,
|
68 | focusBackground: color.white,
|
69 | spacing: 0.5 * unit,
|
70 | border: {
|
71 | borderWidth: 1,
|
72 | borderStyle: 'solid',
|
73 | borderColor: color.grayLight,
|
74 | borderRadius: globalRadius
|
75 | },
|
76 | disabledBorder: {
|
77 | borderWidth: 1,
|
78 | borderStyle: 'solid',
|
79 | borderColor: color.gray,
|
80 | borderRadius: globalRadius
|
81 | },
|
82 | invalidBorder: {
|
83 | borderWidth: 1,
|
84 | borderStyle: 'solid',
|
85 | borderColor: color.alert,
|
86 | borderRadius: globalRadius
|
87 | },
|
88 | focusBorder: {
|
89 | borderWidth: 1,
|
90 | borderStyle: 'solid',
|
91 | borderColor: color.secondary,
|
92 | borderRadius: globalRadius
|
93 | },
|
94 | radioBorderRadius: '50%',
|
95 | checkboxBorderRadius: globalRadius
|
96 | };
|
97 | var font = {
|
98 | family: {
|
99 | default: 'Oxygen, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif',
|
100 | icon: 'cinnecta-suite'
|
101 | },
|
102 | size: {
|
103 | small: {
|
104 | title1: 32,
|
105 | title2: 26,
|
106 | title3: 21,
|
107 | large: 17,
|
108 | regular: 15,
|
109 | small: 14,
|
110 | micro: 8
|
111 | },
|
112 | large: {
|
113 | title1: 34,
|
114 | title2: 29,
|
115 | title3: 23,
|
116 | large: 18,
|
117 | regular: 16,
|
118 | small: 14,
|
119 | micro: 8
|
120 | }
|
121 | }
|
122 | };
|
123 | var map = [{
|
124 | featureType: 'all',
|
125 | elementType: 'labels.text.fill',
|
126 | stylers: [{
|
127 | saturation: 36
|
128 | }, {
|
129 | color: '#5f5f5f'
|
130 | }, {
|
131 | lightness: 40
|
132 | }]
|
133 | }, {
|
134 | featureType: 'all',
|
135 | elementType: 'labels.text.stroke',
|
136 | stylers: [{
|
137 | visibility: 'on'
|
138 | }, {
|
139 | color: '#ffffff'
|
140 | }, {
|
141 | 'lightness': 16
|
142 | }]
|
143 | }, {
|
144 | featureType: 'all',
|
145 | elementType: 'labels.icon',
|
146 | stylers: [{
|
147 | visibility: 'off'
|
148 | }]
|
149 | }, {
|
150 | featureType: 'administrative',
|
151 | elementType: 'geometry.fill',
|
152 | stylers: [{
|
153 | color: '#fefefe'
|
154 | }, {
|
155 | lightness: 20
|
156 | }]
|
157 | }, {
|
158 | featureType: 'administrative',
|
159 | elementType: 'geometry.stroke',
|
160 | stylers: [{
|
161 | color: '#fefefe'
|
162 | }, {
|
163 | lightness: 17
|
164 | }, {
|
165 | weight: 1.2
|
166 | }]
|
167 | }, {
|
168 | featureType: 'landscape.man_made',
|
169 | elementType: 'geometry',
|
170 | stylers: [{
|
171 | saturation: 22
|
172 | }, {
|
173 | lightness: 54
|
174 | }, {
|
175 | gamma: 0.17
|
176 | }, {
|
177 | hue: '#005cff'
|
178 | }]
|
179 | }, {
|
180 | featureType: 'landscape.natural',
|
181 | elementType: 'geometry',
|
182 | stylers: [{
|
183 | color: '#eef0f4'
|
184 | }]
|
185 | }, {
|
186 | "featureType": "poi",
|
187 | "elementType": "geometry",
|
188 | "stylers": [{
|
189 | "color": "#eef0f4"
|
190 | }, {
|
191 | "lightness": 21
|
192 | }]
|
193 | }, {
|
194 | "featureType": "poi.park",
|
195 | "elementType": "geometry",
|
196 | "stylers": [{
|
197 | "color": "#e6e9f0"
|
198 | }, {
|
199 | "lightness": 21
|
200 | }]
|
201 | }, {
|
202 | "featureType": "road.highway",
|
203 | "elementType": "geometry.fill",
|
204 | "stylers": [{
|
205 | "color": "#ffffff"
|
206 | }, {
|
207 | "lightness": 17
|
208 | }]
|
209 | }, {
|
210 | "featureType": "road.highway",
|
211 | "elementType": "geometry.stroke",
|
212 | "stylers": [{
|
213 | "color": "#ffffff"
|
214 | }, {
|
215 | "lightness": 29
|
216 | }, {
|
217 | "weight": 0.2
|
218 | }]
|
219 | }, {
|
220 | "featureType": "road.arterial",
|
221 | "elementType": "geometry",
|
222 | "stylers": [{
|
223 | "color": "#ffffff"
|
224 | }, {
|
225 | "lightness": 18
|
226 | }]
|
227 | }, {
|
228 | "featureType": "road.local",
|
229 | "elementType": "geometry",
|
230 | "stylers": [{
|
231 | "color": "#ffffff"
|
232 | }, {
|
233 | "lightness": 16
|
234 | }]
|
235 | }, {
|
236 | "featureType": "transit",
|
237 | "elementType": "geometry",
|
238 | "stylers": [{
|
239 | "color": "#eef0f4"
|
240 | }, {
|
241 | "lightness": 19
|
242 | }]
|
243 | }, {
|
244 | "featureType": "water",
|
245 | "elementType": "geometry",
|
246 | "stylers": [{
|
247 | "color": "#d7dae1"
|
248 | }, {
|
249 | "lightness": 17
|
250 | }]
|
251 | }];
|
252 | var _default = {
|
253 | unit: unit,
|
254 | units: function units(value) {
|
255 | return value * unit;
|
256 | },
|
257 | radius: globalRadius,
|
258 | columns: columns,
|
259 | map: map,
|
260 | icon: {
|
261 | defaultColor: color.grayDark,
|
262 | size: {
|
263 | micro: 8,
|
264 | smaller: 12,
|
265 | small: 16,
|
266 | default: 20,
|
267 | large: 24,
|
268 | huge: 36
|
269 | }
|
270 | },
|
271 | container: {
|
272 | micro: 800,
|
273 | small: 1200,
|
274 | default: 1440,
|
275 | large: 1800
|
276 | },
|
277 | weight: {
|
278 | light: 300,
|
279 | normal: 400,
|
280 | bold: 600
|
281 | },
|
282 | font: _objectSpread({}, font.family),
|
283 | input: {
|
284 | inlineSpacing: 32,
|
285 | spacing: input.spacing,
|
286 | borderRadius: globalRadius,
|
287 | background: input.background,
|
288 | color: input.color,
|
289 | placeholderColor: input.placeholderColor,
|
290 | verticalPadding: 10,
|
291 | horizontalPadding: 10,
|
292 | default: _objectSpread({}, input.border, {
|
293 | background: input.background,
|
294 | color: input.color,
|
295 | fontFamily: font.family.default,
|
296 | fontSize: font.size.small.regular,
|
297 | letterSpacing: 'normal',
|
298 | lineHeight: 1.3,
|
299 | marginBottom: input.spacing
|
300 | }),
|
301 | disabled: _objectSpread({
|
302 | background: input.disabledBackground
|
303 | }, input.disabledBorder),
|
304 | invalid: _objectSpread({
|
305 | background: input.invalidBackground
|
306 | }, input.invalidBorder),
|
307 | small: {
|
308 | color: color.grayDarker,
|
309 | fontFamily: font.family.default,
|
310 | fontSize: font.size.small.small,
|
311 | letterSpacing: 'normal',
|
312 | lineHeight: 1.4
|
313 | },
|
314 | focus: _objectSpread({}, input.focusBorder, {
|
315 | background: input.focusBackground
|
316 | }),
|
317 | radio: {
|
318 | size: 18,
|
319 | background: input.white,
|
320 | borderRadius: input.radioBorderRadius,
|
321 | border: _objectSpread({}, input.border, {
|
322 | borderColor: color.gray,
|
323 | borderRadius: input.radioBorderRadius
|
324 | }),
|
325 | disabled: {
|
326 | background: input.disabledBackground,
|
327 | border: _objectSpread({}, input.disabledBorder, {
|
328 | borderRadius: input.radioBorderRadius
|
329 | })
|
330 | },
|
331 | invalid: {
|
332 | background: input.invalidBackground,
|
333 | border: _objectSpread({}, input.invalidBorder, {
|
334 | borderRadius: input.radioBorderRadius
|
335 | })
|
336 | },
|
337 | checkMark: {
|
338 | width: 8,
|
339 | height: 8,
|
340 | background: color.secondary,
|
341 | borderRadius: input.radioBorderRadius
|
342 | }
|
343 | },
|
344 | checkbox: {
|
345 | size: 18,
|
346 | background: input.white,
|
347 | borderRadius: input.checkboxBorderRadius,
|
348 | border: _objectSpread({}, input.border, {
|
349 | borderColor: color.gray,
|
350 | borderRadius: input.checkboxBorderRadius
|
351 | }),
|
352 | disabled: {
|
353 | background: input.disabledBackground,
|
354 | border: _objectSpread({}, input.disabledBorder, {
|
355 | borderRadius: input.checkboxBorderRadius
|
356 | })
|
357 | },
|
358 | invalid: {
|
359 | background: input.invalidBackground,
|
360 | border: _objectSpread({}, input.invalidBorder, {
|
361 | borderRadius: input.checkboxBorderRadius
|
362 | })
|
363 | },
|
364 | checkMark: {
|
365 | width: 8,
|
366 | height: 8,
|
367 | background: color.secondary
|
368 | }
|
369 | }
|
370 | },
|
371 | fontSize: _objectSpread({}, font.size),
|
372 | lineHeight: {
|
373 | regular: 1.4,
|
374 | short: 1.125,
|
375 | tall: 1.6
|
376 | },
|
377 | shadow: {
|
378 | level0: {
|
379 | boxShadow: 'none'
|
380 | },
|
381 | level1: {
|
382 | boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)'
|
383 | },
|
384 | level2: {
|
385 | boxShadow: '0 4px 4px 0 rgba(0, 0, 0, 0.05)'
|
386 | },
|
387 | level3: {
|
388 | boxShadow: '0 3px 9px 3px rgba(0, 0, 0, 0.05)'
|
389 | }
|
390 | },
|
391 | color: _objectSpread({}, color, {
|
392 | shimmer: {
|
393 | from: color.blueGray,
|
394 | to: color.blueGrayLight
|
395 | },
|
396 | background: color.white
|
397 | }),
|
398 | breakpoint: {
|
399 | xlarge: "@media (min-width: ".concat(_breakpoints.breakpoints.xlarge - 1, "px)"),
|
400 | large: "@media (min-width: ".concat(_breakpoints.breakpoints.large - 1, "px)"),
|
401 | mediumAndAbove: "@media (min-width: ".concat(_breakpoints.breakpoints.medium, "px)"),
|
402 | medium: "@media (max-width: ".concat(_breakpoints.breakpoints.large - 1, "px)"),
|
403 | small: "@media (max-width: ".concat(_breakpoints.breakpoints.medium - 1, "px)")
|
404 | },
|
405 | animation: {
|
406 | shimmer: {
|
407 | '0%': {
|
408 | backgroundColor: '#e6e9f0'
|
409 | },
|
410 | '50%': {
|
411 | backgroundColor: '#EEF0F4'
|
412 | },
|
413 | '100%': {
|
414 | backgroundColor: '#e6e9f0'
|
415 | }
|
416 | },
|
417 | spinner: {
|
418 | from: {
|
419 | transform: 'rotate(0deg)'
|
420 | },
|
421 | to: {
|
422 | transform: 'rotate(360deg)'
|
423 | }
|
424 | }
|
425 | },
|
426 | gutter: {
|
427 | small: {
|
428 | micro: {
|
429 | top: .25 * unit,
|
430 | right: .25 * unit,
|
431 | bottom: .25 * unit,
|
432 | left: .25 * unit
|
433 | },
|
434 | small: {
|
435 | top: .5 * unit,
|
436 | right: .5 * unit,
|
437 | bottom: .5 * unit,
|
438 | left: .5 * unit
|
439 | },
|
440 | regular: {
|
441 | top: 1 * unit,
|
442 | right: 1 * unit,
|
443 | bottom: 1 * unit,
|
444 | left: 1 * unit
|
445 | },
|
446 | large: {
|
447 | top: 1 * unit,
|
448 | right: 1 * unit,
|
449 | bottom: 1 * unit,
|
450 | left: 1 * unit
|
451 | }
|
452 | },
|
453 | medium: {
|
454 | micro: {
|
455 | top: .25 * unit,
|
456 | right: .25 * unit,
|
457 | bottom: .25 * unit,
|
458 | left: .25 * unit
|
459 | },
|
460 | small: {
|
461 | top: .5 * unit,
|
462 | right: .5 * unit,
|
463 | bottom: .5 * unit,
|
464 | left: .5 * unit
|
465 | },
|
466 | regular: {
|
467 | top: .5 * unit,
|
468 | right: .5 * unit,
|
469 | bottom: .5 * unit,
|
470 | left: .5 * unit
|
471 | },
|
472 | large: {
|
473 | top: 1 * unit,
|
474 | right: 1 * unit,
|
475 | bottom: 1 * unit,
|
476 | left: 1 * unit
|
477 | }
|
478 | },
|
479 | large: {
|
480 | micro: {
|
481 | top: .25 * unit,
|
482 | right: .25 * unit,
|
483 | bottom: .25 * unit,
|
484 | left: .25 * unit
|
485 | },
|
486 | small: {
|
487 | top: .5 * unit,
|
488 | right: .5 * unit,
|
489 | bottom: .5 * unit,
|
490 | left: .5 * unit
|
491 | },
|
492 | regular: {
|
493 | top: .5 * unit,
|
494 | right: .5 * unit,
|
495 | bottom: .5 * unit,
|
496 | left: .5 * unit
|
497 | },
|
498 | large: {
|
499 | top: 1 * unit,
|
500 | right: 1 * unit,
|
501 | bottom: 1 * unit,
|
502 | left: 1 * unit
|
503 | }
|
504 | },
|
505 | xlarge: {
|
506 | micro: {
|
507 | top: .25 * unit,
|
508 | right: .25 * unit,
|
509 | bottom: .25 * unit,
|
510 | left: .25 * unit
|
511 | },
|
512 | small: {
|
513 | top: .5 * unit,
|
514 | right: .5 * unit,
|
515 | bottom: .5 * unit,
|
516 | left: .5 * unit
|
517 | },
|
518 | regular: {
|
519 | top: 1 * unit,
|
520 | right: 1 * unit,
|
521 | bottom: 1 * unit,
|
522 | left: 1 * unit
|
523 | },
|
524 | large: {
|
525 | top: 1 * unit,
|
526 | right: 1 * unit,
|
527 | bottom: 1 * unit,
|
528 | left: 1 * unit
|
529 | }
|
530 | }
|
531 | }
|
532 | };
|
533 | exports.default = _default; |
\ | No newline at end of file |