@flodesk/grain 2.7.2 → 2.7.5

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.
@@ -1,34 +1,46 @@
1
- import "core-js/modules/es.array.slice.js";
2
- import "core-js/modules/es.object.freeze.js";
3
- import "core-js/modules/es.object.define-properties.js";
4
- import "core-js/modules/es.object.keys.js";
5
- import "core-js/modules/es.array.index-of.js";
6
- import "core-js/modules/es.symbol.js";
7
- var _excluded = ["children", "color", "backgroundColor", "borderSide", "borderWidth", "borderColor", "width", "height", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow"];
1
+ "use strict";
8
2
 
9
- var _templateObject;
3
+ require("core-js/modules/es.object.define-property.js");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.Box = void 0;
11
+
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+
16
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
17
+
18
+ require("core-js/modules/es.array.concat.js");
19
+
20
+ var _utilities = require("../../utilities");
21
+
22
+ var _react = _interopRequireDefault(require("react"));
10
23
 
11
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
12
25
 
13
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
+ var _types = require("../../types");
14
27
 
15
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
+ var _excluded = ["children", "color", "backgroundColor", "borderSide", "borderWidth", "borderColor", "width", "height", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "overflow", "aspectRatio"];
16
29
 
17
- import "core-js/modules/es.array.concat.js";
18
- import "core-js/modules/es.object.assign.js";
19
- import { getBorder, getColor, getRadius, getSpace, getShadow } from '../../utilities';
20
- import React from "react";
21
- import styled from "@emotion/styled";
22
- import { types } from '../../types';
30
+ var _templateObject;
31
+
32
+ var __jsx = _react.default.createElement;
23
33
 
24
34
  var getSpaceCss = function getSpaceCss(propertyName, propertyValue) {
25
35
  if (propertyValue || propertyValue === 0) {
26
- return "".concat(propertyName, ": ").concat(getSpace(propertyValue));
36
+ return "".concat(propertyName, ": ").concat((0, _utilities.getSpace)(propertyValue));
27
37
  }
28
38
  };
29
39
 
30
- var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n \n color: ", ";\n background-color: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n"])), function (p) {
31
- return getBorder(p.borderSide, p.borderWidth, p.borderColor);
40
+ var Wrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n \n position: ", ";\n color: ", ";\n background-color: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: ", ";\n aspect-ratio: ", ";\n"])), function (p) {
41
+ return (0, _utilities.getBorder)(p.borderSide, p.borderWidth, p.borderColor);
42
+ }, function (p) {
43
+ return getSpaceCss('padding', p.padding);
32
44
  }, function (p) {
33
45
  return getSpaceCss('padding-top', p.paddingTop);
34
46
  }, function (p) {
@@ -37,6 +49,8 @@ var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLi
37
49
  return getSpaceCss('padding-left', p.paddingLeft);
38
50
  }, function (p) {
39
51
  return getSpaceCss('padding-right', p.paddingRight);
52
+ }, function (p) {
53
+ return getSpaceCss('margin', p.margin);
40
54
  }, function (p) {
41
55
  return getSpaceCss('margin-top', p.marginTop);
42
56
  }, function (p) {
@@ -54,21 +68,26 @@ var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLi
54
68
  }, function (p) {
55
69
  return getSpaceCss('right', p.right);
56
70
  }, function (p) {
57
- return p.position && "position: ".concat(p.position);
71
+ return p.position;
72
+ }, function (p) {
73
+ return (0, _utilities.getColor)(p.color);
58
74
  }, function (p) {
59
- return getColor(p.color);
75
+ return (0, _utilities.getColor)(p.backgroundColor);
60
76
  }, function (p) {
61
- return getColor(p.backgroundColor);
77
+ return (0, _utilities.getSpace)(p.width);
62
78
  }, function (p) {
63
- return getSpace(p.width);
79
+ return (0, _utilities.getSpace)(p.height);
64
80
  }, function (p) {
65
- return getSpace(p.height);
81
+ return (0, _utilities.getRadius)(p.radius);
66
82
  }, function (p) {
67
- return getRadius(p.radius);
83
+ return (0, _utilities.getShadow)(p.shadow);
68
84
  }, function (p) {
69
- return getShadow(p.shadow);
85
+ return p.overflow;
86
+ }, function (p) {
87
+ return p.aspectRatio;
70
88
  });
71
- export var Box = function Box(_ref) {
89
+
90
+ var Box = function Box(_ref) {
72
91
  var children = _ref.children,
73
92
  color = _ref.color,
74
93
  backgroundColor = _ref.backgroundColor,
@@ -98,9 +117,10 @@ export var Box = function Box(_ref) {
98
117
  left = _ref.left,
99
118
  right = _ref.right,
100
119
  shadow = _ref.shadow,
101
- props = _objectWithoutProperties(_ref, _excluded);
102
-
103
- return /*#__PURE__*/React.createElement(Wrapper, Object.assign({
120
+ overflow = _ref.overflow,
121
+ aspectRatio = _ref.aspectRatio,
122
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
123
+ return __jsx(Wrapper, (0, _extends2.default)({
104
124
  backgroundColor: backgroundColor,
105
125
  color: color,
106
126
  borderSide: borderSide,
@@ -109,45 +129,773 @@ export var Box = function Box(_ref) {
109
129
  width: width,
110
130
  height: height,
111
131
  radius: radius,
112
- paddingTop: padding || paddingY || paddingTop,
113
- paddingBottom: padding || paddingY || paddingBottom,
114
- paddingLeft: padding || paddingX || paddingLeft,
115
- paddingRight: padding || paddingX || paddingRight,
116
- marginTop: margin || marginY || marginTop,
117
- marginBottom: margin || marginY || marginBottom,
118
- marginLeft: margin || marginX || marginLeft,
119
- marginRight: margin || marginX || marginRight,
132
+ padding: padding,
133
+ paddingTop: paddingY || paddingTop,
134
+ paddingBottom: paddingY || paddingBottom,
135
+ paddingLeft: paddingX || paddingLeft,
136
+ paddingRight: paddingX || paddingRight,
137
+ margin: margin,
138
+ marginTop: marginY || marginTop,
139
+ marginBottom: marginY || marginBottom,
140
+ marginLeft: marginX || marginLeft,
141
+ marginRight: marginX || marginRight,
120
142
  position: position,
121
143
  top: top,
122
144
  bottom: bottom,
123
145
  left: left,
124
146
  right: right,
125
- shadow: shadow
147
+ shadow: shadow,
148
+ overflow: overflow,
149
+ aspectRatio: aspectRatio
126
150
  }, props), children);
127
151
  };
128
- Box.propTypes = {
129
- color: types.color,
130
- borderSide: types.side,
131
- width: types.space,
132
- height: types.space,
133
- radius: types.radius,
134
- padding: types.space,
135
- paddingTop: types.space,
136
- paddingBottom: types.space,
137
- paddingLeft: types.space,
138
- paddingRight: types.space,
139
- paddingX: types.space,
140
- paddingY: types.space,
141
- margin: types.space,
142
- marginTop: types.space,
143
- marginBottom: types.space,
144
- marginLeft: types.space,
145
- marginRight: types.space,
146
- marginX: types.space,
147
- marginY: types.space,
148
- position: types.position,
149
- top: types.space,
150
- bottom: types.space,
151
- left: types.space,
152
- right: types.space
152
+
153
+ exports.Box = Box;
154
+ Box.__docgenInfo = {
155
+ "description": "",
156
+ "methods": [],
157
+ "displayName": "Box",
158
+ "props": {
159
+ "color": {
160
+ "type": {
161
+ "name": "union",
162
+ "value": [{
163
+ "name": "enum",
164
+ "value": [{
165
+ "value": "\"greys\"",
166
+ "computed": false
167
+ }, {
168
+ "value": "\"baseColors\"",
169
+ "computed": false
170
+ }, {
171
+ "value": "\"semanticColors\"",
172
+ "computed": false
173
+ }]
174
+ }, {
175
+ "name": "string"
176
+ }]
177
+ },
178
+ "required": false,
179
+ "description": ""
180
+ },
181
+ "borderSide": {
182
+ "type": {
183
+ "name": "enum",
184
+ "value": [{
185
+ "value": "\"all\"",
186
+ "computed": false
187
+ }, {
188
+ "value": "\"left\"",
189
+ "computed": false
190
+ }, {
191
+ "value": "\"right\"",
192
+ "computed": false
193
+ }, {
194
+ "value": "\"top\"",
195
+ "computed": false
196
+ }, {
197
+ "value": "\"bottom\"",
198
+ "computed": false
199
+ }, {
200
+ "value": "\"x\"",
201
+ "computed": false
202
+ }, {
203
+ "value": "\"y\"",
204
+ "computed": false
205
+ }]
206
+ },
207
+ "required": false,
208
+ "description": ""
209
+ },
210
+ "width": {
211
+ "type": {
212
+ "name": "union",
213
+ "value": [{
214
+ "name": "number"
215
+ }, {
216
+ "name": "string"
217
+ }]
218
+ },
219
+ "required": false,
220
+ "description": ""
221
+ },
222
+ "height": {
223
+ "type": {
224
+ "name": "union",
225
+ "value": [{
226
+ "name": "number"
227
+ }, {
228
+ "name": "string"
229
+ }]
230
+ },
231
+ "required": false,
232
+ "description": ""
233
+ },
234
+ "radius": {
235
+ "type": {
236
+ "name": "union",
237
+ "value": [{
238
+ "name": "enum",
239
+ "value": [{
240
+ "value": "\"s\"",
241
+ "computed": false
242
+ }, {
243
+ "value": "\"m\"",
244
+ "computed": false
245
+ }, {
246
+ "value": "\"l\"",
247
+ "computed": false
248
+ }]
249
+ }, {
250
+ "name": "string"
251
+ }]
252
+ },
253
+ "required": false,
254
+ "description": ""
255
+ },
256
+ "padding": {
257
+ "type": {
258
+ "name": "union",
259
+ "value": [{
260
+ "name": "enum",
261
+ "value": [{
262
+ "value": "\"xs\"",
263
+ "computed": false
264
+ }, {
265
+ "value": "\"s\"",
266
+ "computed": false
267
+ }, {
268
+ "value": "\"m\"",
269
+ "computed": false
270
+ }, {
271
+ "value": "\"l\"",
272
+ "computed": false
273
+ }, {
274
+ "value": "\"xl\"",
275
+ "computed": false
276
+ }, {
277
+ "value": "\"xxl\"",
278
+ "computed": false
279
+ }]
280
+ }, {
281
+ "name": "number"
282
+ }, {
283
+ "name": "string"
284
+ }]
285
+ },
286
+ "required": false,
287
+ "description": ""
288
+ },
289
+ "paddingTop": {
290
+ "type": {
291
+ "name": "union",
292
+ "value": [{
293
+ "name": "enum",
294
+ "value": [{
295
+ "value": "\"xs\"",
296
+ "computed": false
297
+ }, {
298
+ "value": "\"s\"",
299
+ "computed": false
300
+ }, {
301
+ "value": "\"m\"",
302
+ "computed": false
303
+ }, {
304
+ "value": "\"l\"",
305
+ "computed": false
306
+ }, {
307
+ "value": "\"xl\"",
308
+ "computed": false
309
+ }, {
310
+ "value": "\"xxl\"",
311
+ "computed": false
312
+ }]
313
+ }, {
314
+ "name": "number"
315
+ }, {
316
+ "name": "string"
317
+ }]
318
+ },
319
+ "required": false,
320
+ "description": ""
321
+ },
322
+ "paddingBottom": {
323
+ "type": {
324
+ "name": "union",
325
+ "value": [{
326
+ "name": "enum",
327
+ "value": [{
328
+ "value": "\"xs\"",
329
+ "computed": false
330
+ }, {
331
+ "value": "\"s\"",
332
+ "computed": false
333
+ }, {
334
+ "value": "\"m\"",
335
+ "computed": false
336
+ }, {
337
+ "value": "\"l\"",
338
+ "computed": false
339
+ }, {
340
+ "value": "\"xl\"",
341
+ "computed": false
342
+ }, {
343
+ "value": "\"xxl\"",
344
+ "computed": false
345
+ }]
346
+ }, {
347
+ "name": "number"
348
+ }, {
349
+ "name": "string"
350
+ }]
351
+ },
352
+ "required": false,
353
+ "description": ""
354
+ },
355
+ "paddingLeft": {
356
+ "type": {
357
+ "name": "union",
358
+ "value": [{
359
+ "name": "enum",
360
+ "value": [{
361
+ "value": "\"xs\"",
362
+ "computed": false
363
+ }, {
364
+ "value": "\"s\"",
365
+ "computed": false
366
+ }, {
367
+ "value": "\"m\"",
368
+ "computed": false
369
+ }, {
370
+ "value": "\"l\"",
371
+ "computed": false
372
+ }, {
373
+ "value": "\"xl\"",
374
+ "computed": false
375
+ }, {
376
+ "value": "\"xxl\"",
377
+ "computed": false
378
+ }]
379
+ }, {
380
+ "name": "number"
381
+ }, {
382
+ "name": "string"
383
+ }]
384
+ },
385
+ "required": false,
386
+ "description": ""
387
+ },
388
+ "paddingRight": {
389
+ "type": {
390
+ "name": "union",
391
+ "value": [{
392
+ "name": "enum",
393
+ "value": [{
394
+ "value": "\"xs\"",
395
+ "computed": false
396
+ }, {
397
+ "value": "\"s\"",
398
+ "computed": false
399
+ }, {
400
+ "value": "\"m\"",
401
+ "computed": false
402
+ }, {
403
+ "value": "\"l\"",
404
+ "computed": false
405
+ }, {
406
+ "value": "\"xl\"",
407
+ "computed": false
408
+ }, {
409
+ "value": "\"xxl\"",
410
+ "computed": false
411
+ }]
412
+ }, {
413
+ "name": "number"
414
+ }, {
415
+ "name": "string"
416
+ }]
417
+ },
418
+ "required": false,
419
+ "description": ""
420
+ },
421
+ "paddingX": {
422
+ "type": {
423
+ "name": "union",
424
+ "value": [{
425
+ "name": "enum",
426
+ "value": [{
427
+ "value": "\"xs\"",
428
+ "computed": false
429
+ }, {
430
+ "value": "\"s\"",
431
+ "computed": false
432
+ }, {
433
+ "value": "\"m\"",
434
+ "computed": false
435
+ }, {
436
+ "value": "\"l\"",
437
+ "computed": false
438
+ }, {
439
+ "value": "\"xl\"",
440
+ "computed": false
441
+ }, {
442
+ "value": "\"xxl\"",
443
+ "computed": false
444
+ }]
445
+ }, {
446
+ "name": "number"
447
+ }, {
448
+ "name": "string"
449
+ }]
450
+ },
451
+ "required": false,
452
+ "description": ""
453
+ },
454
+ "paddingY": {
455
+ "type": {
456
+ "name": "union",
457
+ "value": [{
458
+ "name": "enum",
459
+ "value": [{
460
+ "value": "\"xs\"",
461
+ "computed": false
462
+ }, {
463
+ "value": "\"s\"",
464
+ "computed": false
465
+ }, {
466
+ "value": "\"m\"",
467
+ "computed": false
468
+ }, {
469
+ "value": "\"l\"",
470
+ "computed": false
471
+ }, {
472
+ "value": "\"xl\"",
473
+ "computed": false
474
+ }, {
475
+ "value": "\"xxl\"",
476
+ "computed": false
477
+ }]
478
+ }, {
479
+ "name": "number"
480
+ }, {
481
+ "name": "string"
482
+ }]
483
+ },
484
+ "required": false,
485
+ "description": ""
486
+ },
487
+ "margin": {
488
+ "type": {
489
+ "name": "union",
490
+ "value": [{
491
+ "name": "enum",
492
+ "value": [{
493
+ "value": "\"xs\"",
494
+ "computed": false
495
+ }, {
496
+ "value": "\"s\"",
497
+ "computed": false
498
+ }, {
499
+ "value": "\"m\"",
500
+ "computed": false
501
+ }, {
502
+ "value": "\"l\"",
503
+ "computed": false
504
+ }, {
505
+ "value": "\"xl\"",
506
+ "computed": false
507
+ }, {
508
+ "value": "\"xxl\"",
509
+ "computed": false
510
+ }]
511
+ }, {
512
+ "name": "number"
513
+ }, {
514
+ "name": "string"
515
+ }]
516
+ },
517
+ "required": false,
518
+ "description": ""
519
+ },
520
+ "marginTop": {
521
+ "type": {
522
+ "name": "union",
523
+ "value": [{
524
+ "name": "enum",
525
+ "value": [{
526
+ "value": "\"xs\"",
527
+ "computed": false
528
+ }, {
529
+ "value": "\"s\"",
530
+ "computed": false
531
+ }, {
532
+ "value": "\"m\"",
533
+ "computed": false
534
+ }, {
535
+ "value": "\"l\"",
536
+ "computed": false
537
+ }, {
538
+ "value": "\"xl\"",
539
+ "computed": false
540
+ }, {
541
+ "value": "\"xxl\"",
542
+ "computed": false
543
+ }]
544
+ }, {
545
+ "name": "number"
546
+ }, {
547
+ "name": "string"
548
+ }]
549
+ },
550
+ "required": false,
551
+ "description": ""
552
+ },
553
+ "marginBottom": {
554
+ "type": {
555
+ "name": "union",
556
+ "value": [{
557
+ "name": "enum",
558
+ "value": [{
559
+ "value": "\"xs\"",
560
+ "computed": false
561
+ }, {
562
+ "value": "\"s\"",
563
+ "computed": false
564
+ }, {
565
+ "value": "\"m\"",
566
+ "computed": false
567
+ }, {
568
+ "value": "\"l\"",
569
+ "computed": false
570
+ }, {
571
+ "value": "\"xl\"",
572
+ "computed": false
573
+ }, {
574
+ "value": "\"xxl\"",
575
+ "computed": false
576
+ }]
577
+ }, {
578
+ "name": "number"
579
+ }, {
580
+ "name": "string"
581
+ }]
582
+ },
583
+ "required": false,
584
+ "description": ""
585
+ },
586
+ "marginLeft": {
587
+ "type": {
588
+ "name": "union",
589
+ "value": [{
590
+ "name": "enum",
591
+ "value": [{
592
+ "value": "\"xs\"",
593
+ "computed": false
594
+ }, {
595
+ "value": "\"s\"",
596
+ "computed": false
597
+ }, {
598
+ "value": "\"m\"",
599
+ "computed": false
600
+ }, {
601
+ "value": "\"l\"",
602
+ "computed": false
603
+ }, {
604
+ "value": "\"xl\"",
605
+ "computed": false
606
+ }, {
607
+ "value": "\"xxl\"",
608
+ "computed": false
609
+ }]
610
+ }, {
611
+ "name": "number"
612
+ }, {
613
+ "name": "string"
614
+ }]
615
+ },
616
+ "required": false,
617
+ "description": ""
618
+ },
619
+ "marginRight": {
620
+ "type": {
621
+ "name": "union",
622
+ "value": [{
623
+ "name": "enum",
624
+ "value": [{
625
+ "value": "\"xs\"",
626
+ "computed": false
627
+ }, {
628
+ "value": "\"s\"",
629
+ "computed": false
630
+ }, {
631
+ "value": "\"m\"",
632
+ "computed": false
633
+ }, {
634
+ "value": "\"l\"",
635
+ "computed": false
636
+ }, {
637
+ "value": "\"xl\"",
638
+ "computed": false
639
+ }, {
640
+ "value": "\"xxl\"",
641
+ "computed": false
642
+ }]
643
+ }, {
644
+ "name": "number"
645
+ }, {
646
+ "name": "string"
647
+ }]
648
+ },
649
+ "required": false,
650
+ "description": ""
651
+ },
652
+ "marginX": {
653
+ "type": {
654
+ "name": "union",
655
+ "value": [{
656
+ "name": "enum",
657
+ "value": [{
658
+ "value": "\"xs\"",
659
+ "computed": false
660
+ }, {
661
+ "value": "\"s\"",
662
+ "computed": false
663
+ }, {
664
+ "value": "\"m\"",
665
+ "computed": false
666
+ }, {
667
+ "value": "\"l\"",
668
+ "computed": false
669
+ }, {
670
+ "value": "\"xl\"",
671
+ "computed": false
672
+ }, {
673
+ "value": "\"xxl\"",
674
+ "computed": false
675
+ }]
676
+ }, {
677
+ "name": "number"
678
+ }, {
679
+ "name": "string"
680
+ }]
681
+ },
682
+ "required": false,
683
+ "description": ""
684
+ },
685
+ "marginY": {
686
+ "type": {
687
+ "name": "union",
688
+ "value": [{
689
+ "name": "enum",
690
+ "value": [{
691
+ "value": "\"xs\"",
692
+ "computed": false
693
+ }, {
694
+ "value": "\"s\"",
695
+ "computed": false
696
+ }, {
697
+ "value": "\"m\"",
698
+ "computed": false
699
+ }, {
700
+ "value": "\"l\"",
701
+ "computed": false
702
+ }, {
703
+ "value": "\"xl\"",
704
+ "computed": false
705
+ }, {
706
+ "value": "\"xxl\"",
707
+ "computed": false
708
+ }]
709
+ }, {
710
+ "name": "number"
711
+ }, {
712
+ "name": "string"
713
+ }]
714
+ },
715
+ "required": false,
716
+ "description": ""
717
+ },
718
+ "position": {
719
+ "type": {
720
+ "name": "enum",
721
+ "value": [{
722
+ "value": "\"static\"",
723
+ "computed": false
724
+ }, {
725
+ "value": "\"relative\"",
726
+ "computed": false
727
+ }, {
728
+ "value": "\"fixed\"",
729
+ "computed": false
730
+ }, {
731
+ "value": "\"absolute\"",
732
+ "computed": false
733
+ }, {
734
+ "value": "\"sticky\"",
735
+ "computed": false
736
+ }]
737
+ },
738
+ "required": false,
739
+ "description": ""
740
+ },
741
+ "top": {
742
+ "type": {
743
+ "name": "union",
744
+ "value": [{
745
+ "name": "enum",
746
+ "value": [{
747
+ "value": "\"xs\"",
748
+ "computed": false
749
+ }, {
750
+ "value": "\"s\"",
751
+ "computed": false
752
+ }, {
753
+ "value": "\"m\"",
754
+ "computed": false
755
+ }, {
756
+ "value": "\"l\"",
757
+ "computed": false
758
+ }, {
759
+ "value": "\"xl\"",
760
+ "computed": false
761
+ }, {
762
+ "value": "\"xxl\"",
763
+ "computed": false
764
+ }]
765
+ }, {
766
+ "name": "number"
767
+ }, {
768
+ "name": "string"
769
+ }]
770
+ },
771
+ "required": false,
772
+ "description": ""
773
+ },
774
+ "bottom": {
775
+ "type": {
776
+ "name": "union",
777
+ "value": [{
778
+ "name": "enum",
779
+ "value": [{
780
+ "value": "\"xs\"",
781
+ "computed": false
782
+ }, {
783
+ "value": "\"s\"",
784
+ "computed": false
785
+ }, {
786
+ "value": "\"m\"",
787
+ "computed": false
788
+ }, {
789
+ "value": "\"l\"",
790
+ "computed": false
791
+ }, {
792
+ "value": "\"xl\"",
793
+ "computed": false
794
+ }, {
795
+ "value": "\"xxl\"",
796
+ "computed": false
797
+ }]
798
+ }, {
799
+ "name": "number"
800
+ }, {
801
+ "name": "string"
802
+ }]
803
+ },
804
+ "required": false,
805
+ "description": ""
806
+ },
807
+ "left": {
808
+ "type": {
809
+ "name": "union",
810
+ "value": [{
811
+ "name": "enum",
812
+ "value": [{
813
+ "value": "\"xs\"",
814
+ "computed": false
815
+ }, {
816
+ "value": "\"s\"",
817
+ "computed": false
818
+ }, {
819
+ "value": "\"m\"",
820
+ "computed": false
821
+ }, {
822
+ "value": "\"l\"",
823
+ "computed": false
824
+ }, {
825
+ "value": "\"xl\"",
826
+ "computed": false
827
+ }, {
828
+ "value": "\"xxl\"",
829
+ "computed": false
830
+ }]
831
+ }, {
832
+ "name": "number"
833
+ }, {
834
+ "name": "string"
835
+ }]
836
+ },
837
+ "required": false,
838
+ "description": ""
839
+ },
840
+ "right": {
841
+ "type": {
842
+ "name": "union",
843
+ "value": [{
844
+ "name": "enum",
845
+ "value": [{
846
+ "value": "\"xs\"",
847
+ "computed": false
848
+ }, {
849
+ "value": "\"s\"",
850
+ "computed": false
851
+ }, {
852
+ "value": "\"m\"",
853
+ "computed": false
854
+ }, {
855
+ "value": "\"l\"",
856
+ "computed": false
857
+ }, {
858
+ "value": "\"xl\"",
859
+ "computed": false
860
+ }, {
861
+ "value": "\"xxl\"",
862
+ "computed": false
863
+ }]
864
+ }, {
865
+ "name": "number"
866
+ }, {
867
+ "name": "string"
868
+ }]
869
+ },
870
+ "required": false,
871
+ "description": ""
872
+ },
873
+ "overflow": {
874
+ "type": {
875
+ "name": "enum",
876
+ "value": [{
877
+ "value": "\"visible\"",
878
+ "computed": false
879
+ }, {
880
+ "value": "\"hidden\"",
881
+ "computed": false
882
+ }, {
883
+ "value": "\"scroll\"",
884
+ "computed": false
885
+ }, {
886
+ "value": "\"auto\"",
887
+ "computed": false
888
+ }]
889
+ },
890
+ "required": false,
891
+ "description": ""
892
+ },
893
+ "aspectRatio": {
894
+ "type": {
895
+ "name": "string"
896
+ },
897
+ "required": false,
898
+ "description": ""
899
+ }
900
+ }
153
901
  };