@flodesk/grain 2.20.0 → 2.20.3

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.
Files changed (75) hide show
  1. package/es/components/arrange.js +33 -260
  2. package/es/components/box.js +62 -995
  3. package/es/components/button.js +36 -100
  4. package/es/components/icon-button.js +30 -93
  5. package/es/components/icon-toggle.js +39 -94
  6. package/es/components/icon.js +30 -126
  7. package/es/components/index.js +11 -107
  8. package/es/components/stack.js +26 -81
  9. package/es/components/text-button.js +28 -66
  10. package/es/components/text-input.js +76 -138
  11. package/es/components/text-toggle.js +32 -78
  12. package/es/components/text.js +33 -159
  13. package/es/foundational/index.js +9 -23
  14. package/es/hooks/index.js +1 -15
  15. package/es/hooks/useMedia.js +21 -17
  16. package/es/icons/icon-align-center.js +5 -43
  17. package/es/icons/icon-align-left.js +6 -44
  18. package/es/icons/icon-align-right.js +6 -44
  19. package/es/icons/icon-arrow-down.js +5 -43
  20. package/es/icons/icon-arrow-left.js +5 -43
  21. package/es/icons/icon-arrow-right.js +5 -43
  22. package/es/icons/icon-arrow-up.js +5 -43
  23. package/es/icons/icon-browser.js +9 -47
  24. package/es/icons/icon-chart.js +5 -43
  25. package/es/icons/icon-check.js +7 -45
  26. package/es/icons/icon-chevron-down.js +5 -43
  27. package/es/icons/icon-chevron-horizontal.js +5 -43
  28. package/es/icons/icon-chevron-left.js +5 -43
  29. package/es/icons/icon-chevron-right.js +10 -48
  30. package/es/icons/icon-chevron-up.js +10 -48
  31. package/es/icons/icon-chevron-vertical.js +13 -51
  32. package/es/icons/icon-clip.js +5 -43
  33. package/es/icons/icon-clock.js +6 -44
  34. package/es/icons/icon-crop.js +5 -43
  35. package/es/icons/icon-cross.js +5 -43
  36. package/es/icons/icon-download.js +8 -46
  37. package/es/icons/icon-duplicate.js +6 -44
  38. package/es/icons/icon-ellipsis.js +7 -45
  39. package/es/icons/icon-file.js +5 -43
  40. package/es/icons/icon-folder-add.js +5 -43
  41. package/es/icons/icon-folder.js +5 -43
  42. package/es/icons/icon-gear.js +6 -44
  43. package/es/icons/icon-globe.js +5 -43
  44. package/es/icons/icon-heart.js +5 -43
  45. package/es/icons/icon-image.js +5 -43
  46. package/es/icons/icon-link.js +6 -44
  47. package/es/icons/icon-mail.js +5 -43
  48. package/es/icons/icon-minus.js +5 -43
  49. package/es/icons/icon-monitor.js +5 -43
  50. package/es/icons/icon-pencil.js +5 -43
  51. package/es/icons/icon-phone.js +5 -43
  52. package/es/icons/icon-plus.js +5 -43
  53. package/es/icons/icon-redo.js +5 -43
  54. package/es/icons/icon-search.js +6 -44
  55. package/es/icons/icon-send.js +5 -43
  56. package/es/icons/icon-share.js +5 -43
  57. package/es/icons/icon-smile.js +8 -46
  58. package/es/icons/icon-switch.js +5 -43
  59. package/es/icons/icon-tablet.js +5 -43
  60. package/es/icons/icon-text-align-center.js +5 -43
  61. package/es/icons/icon-text-align-left.js +5 -43
  62. package/es/icons/icon-text-align-right.js +5 -43
  63. package/es/icons/icon-trash.js +5 -43
  64. package/es/icons/icon-type.js +5 -43
  65. package/es/icons/icon-undo.js +5 -43
  66. package/es/icons/icon-upload.js +8 -46
  67. package/es/icons/index.js +51 -417
  68. package/es/index.js +3 -52
  69. package/es/types.js +23 -38
  70. package/es/utilities/helpers.js +22 -50
  71. package/es/utilities/index.js +21 -145
  72. package/es/utilities/responsive.js +58 -79
  73. package/es/utilities/styles.js +45 -89
  74. package/es/variables.js +101 -110
  75. package/package.json +2 -2
@@ -1,93 +1,87 @@
1
- "use strict";
2
-
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
- var _utilities = require("../utilities");
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
+ import "core-js/modules/es.object.define-property.js";
8
+ var _excluded = ["children", "color", "backgroundColor", "borderColor", "borderWidth", "borderSide", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "overflow", "aspectRatio"];
19
9
 
20
- var _react = _interopRequireDefault(require("react"));
10
+ var _templateObject, _Box$propTypes;
21
11
 
22
- var _styled = _interopRequireDefault(require("@emotion/styled"));
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; }
23
13
 
24
- var _types = require("../types");
14
+ import "core-js/modules/es.object.assign.js";
25
15
 
26
- var _excluded = ["children", "color", "backgroundColor", "borderColor", "borderWidth", "borderSide", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "overflow", "aspectRatio"];
16
+ 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; }
27
17
 
28
- var _templateObject;
18
+ 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; }
29
19
 
30
- var __jsx = _react.default.createElement;
20
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
31
21
 
32
- 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 ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n color: ", ";\n background-color: ", ";\n \n position: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: ", ";\n aspect-ratio: ", ";\n"])), function (p) {
33
- return (0, _utilities.getBorder)(p.borderSide, p.borderWidth, p.borderColor);
22
+ import { getBorder, getColor, getRadius, getResponsiveSpace, getShadow, getResponsiveDimension } from '../utilities';
23
+ import React from "react";
24
+ import styled from "@emotion/styled";
25
+ import { types } from '../types';
26
+ import { PropTypes } from 'prop-types';
27
+ 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 ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n color: ", ";\n background-color: ", ";\n \n position: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: ", ";\n aspect-ratio: ", ";\n"])), function (p) {
28
+ return getBorder(p.borderSide, p.borderWidth, p.borderColor);
34
29
  }, function (p) {
35
- return (0, _utilities.getResponsiveSpace)('padding', p.padding);
30
+ return getResponsiveSpace('padding', p.padding);
36
31
  }, function (p) {
37
- return (0, _utilities.getResponsiveSpace)('padding-top', p.paddingTop);
32
+ return getResponsiveSpace('padding-top', p.paddingTop);
38
33
  }, function (p) {
39
- return (0, _utilities.getResponsiveSpace)('padding-bottom', p.paddingBottom);
34
+ return getResponsiveSpace('padding-bottom', p.paddingBottom);
40
35
  }, function (p) {
41
- return (0, _utilities.getResponsiveSpace)('padding-left', p.paddingLeft);
36
+ return getResponsiveSpace('padding-left', p.paddingLeft);
42
37
  }, function (p) {
43
- return (0, _utilities.getResponsiveSpace)('padding-right', p.paddingRight);
38
+ return getResponsiveSpace('padding-right', p.paddingRight);
44
39
  }, function (p) {
45
- return (0, _utilities.getResponsiveSpace)('margin', p.margin);
40
+ return getResponsiveSpace('margin', p.margin);
46
41
  }, function (p) {
47
- return (0, _utilities.getResponsiveSpace)('margin-top', p.marginTop);
42
+ return getResponsiveSpace('margin-top', p.marginTop);
48
43
  }, function (p) {
49
- return (0, _utilities.getResponsiveSpace)('margin-bottom', p.marginBottom);
44
+ return getResponsiveSpace('margin-bottom', p.marginBottom);
50
45
  }, function (p) {
51
- return (0, _utilities.getResponsiveSpace)('margin-left', p.marginLeft);
46
+ return getResponsiveSpace('margin-left', p.marginLeft);
52
47
  }, function (p) {
53
- return (0, _utilities.getResponsiveSpace)('margin-right', p.marginRight);
48
+ return getResponsiveSpace('margin-right', p.marginRight);
54
49
  }, function (p) {
55
- return (0, _utilities.getResponsiveSpace)('top', p.top);
50
+ return getResponsiveSpace('top', p.top);
56
51
  }, function (p) {
57
- return (0, _utilities.getResponsiveSpace)('bottom', p.bottom);
52
+ return getResponsiveSpace('bottom', p.bottom);
58
53
  }, function (p) {
59
- return (0, _utilities.getResponsiveSpace)('left', p.left);
54
+ return getResponsiveSpace('left', p.left);
60
55
  }, function (p) {
61
- return (0, _utilities.getResponsiveSpace)('right', p.right);
56
+ return getResponsiveSpace('right', p.right);
62
57
  }, function (p) {
63
- return (0, _utilities.getResponsiveDimension)('width', p.width);
58
+ return getResponsiveDimension('width', p.width);
64
59
  }, function (p) {
65
- return (0, _utilities.getResponsiveDimension)('min-width', p.minWidth);
60
+ return getResponsiveDimension('min-width', p.minWidth);
66
61
  }, function (p) {
67
- return (0, _utilities.getResponsiveDimension)('max-width', p.maxWidth);
62
+ return getResponsiveDimension('max-width', p.maxWidth);
68
63
  }, function (p) {
69
- return (0, _utilities.getResponsiveDimension)('height', p.height);
64
+ return getResponsiveDimension('height', p.height);
70
65
  }, function (p) {
71
- return (0, _utilities.getResponsiveDimension)('min-height', p.minHeight);
66
+ return getResponsiveDimension('min-height', p.minHeight);
72
67
  }, function (p) {
73
- return (0, _utilities.getResponsiveDimension)('max-height', p.maxHeight);
68
+ return getResponsiveDimension('max-height', p.maxHeight);
74
69
  }, function (p) {
75
- return (0, _utilities.getColor)(p.color);
70
+ return getColor(p.color);
76
71
  }, function (p) {
77
- return (0, _utilities.getColor)(p.backgroundColor);
72
+ return getColor(p.backgroundColor);
78
73
  }, function (p) {
79
74
  return p.position;
80
75
  }, function (p) {
81
- return (0, _utilities.getRadius)(p.radius);
76
+ return getRadius(p.radius);
82
77
  }, function (p) {
83
- return (0, _utilities.getShadow)(p.shadow);
78
+ return getShadow(p.shadow);
84
79
  }, function (p) {
85
80
  return p.overflow;
86
81
  }, function (p) {
87
82
  return p.aspectRatio;
88
83
  });
89
-
90
- var Box = function Box(_ref) {
84
+ export var Box = function Box(_ref) {
91
85
  var children = _ref.children,
92
86
  color = _ref.color,
93
87
  backgroundColor = _ref.backgroundColor,
@@ -125,8 +119,9 @@ var Box = function Box(_ref) {
125
119
  shadow = _ref.shadow,
126
120
  overflow = _ref.overflow,
127
121
  aspectRatio = _ref.aspectRatio,
128
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
129
- return __jsx(Wrapper, (0, _extends2.default)({
122
+ props = _objectWithoutProperties(_ref, _excluded);
123
+
124
+ return /*#__PURE__*/React.createElement(Wrapper, Object.assign({
130
125
  backgroundColor: backgroundColor,
131
126
  color: color,
132
127
  borderSide: borderSide,
@@ -159,944 +154,16 @@ var Box = function Box(_ref) {
159
154
  aspectRatio: aspectRatio
160
155
  }, props), children);
161
156
  };
162
-
163
- exports.Box = Box;
164
- Box.__docgenInfo = {
165
- "description": "",
166
- "methods": [],
167
- "displayName": "Box",
168
- "props": {
169
- "borderColor": {
170
- "defaultValue": {
171
- "value": "'border'",
172
- "computed": false
173
- },
174
- "type": {
175
- "name": "union",
176
- "value": [{
177
- "name": "enum",
178
- "value": [{
179
- "value": "\"greys\"",
180
- "computed": false
181
- }, {
182
- "value": "\"fades\"",
183
- "computed": false
184
- }, {
185
- "value": "\"baseColors\"",
186
- "computed": false
187
- }, {
188
- "value": "\"semanticColors\"",
189
- "computed": false
190
- }]
191
- }, {
192
- "name": "string"
193
- }]
194
- },
195
- "required": false,
196
- "description": ""
197
- },
198
- "borderWidth": {
199
- "defaultValue": {
200
- "value": "'1px'",
201
- "computed": false
202
- },
203
- "type": {
204
- "name": "union",
205
- "value": [{
206
- "name": "number"
207
- }, {
208
- "name": "string"
209
- }]
210
- },
211
- "required": false,
212
- "description": ""
213
- },
214
- "color": {
215
- "type": {
216
- "name": "union",
217
- "value": [{
218
- "name": "enum",
219
- "value": [{
220
- "value": "\"greys\"",
221
- "computed": false
222
- }, {
223
- "value": "\"fades\"",
224
- "computed": false
225
- }, {
226
- "value": "\"baseColors\"",
227
- "computed": false
228
- }, {
229
- "value": "\"semanticColors\"",
230
- "computed": false
231
- }]
232
- }, {
233
- "name": "string"
234
- }]
235
- },
236
- "required": false,
237
- "description": ""
238
- },
239
- "backgroundColor": {
240
- "type": {
241
- "name": "union",
242
- "value": [{
243
- "name": "enum",
244
- "value": [{
245
- "value": "\"greys\"",
246
- "computed": false
247
- }, {
248
- "value": "\"fades\"",
249
- "computed": false
250
- }, {
251
- "value": "\"baseColors\"",
252
- "computed": false
253
- }, {
254
- "value": "\"semanticColors\"",
255
- "computed": false
256
- }]
257
- }, {
258
- "name": "string"
259
- }]
260
- },
261
- "required": false,
262
- "description": ""
263
- },
264
- "borderSide": {
265
- "type": {
266
- "name": "enum",
267
- "value": [{
268
- "value": "\"all\"",
269
- "computed": false
270
- }, {
271
- "value": "\"left\"",
272
- "computed": false
273
- }, {
274
- "value": "\"right\"",
275
- "computed": false
276
- }, {
277
- "value": "\"top\"",
278
- "computed": false
279
- }, {
280
- "value": "\"bottom\"",
281
- "computed": false
282
- }, {
283
- "value": "\"x\"",
284
- "computed": false
285
- }, {
286
- "value": "\"y\"",
287
- "computed": false
288
- }]
289
- },
290
- "required": false,
291
- "description": ""
292
- },
293
- "width": {
294
- "type": {
295
- "name": "union",
296
- "value": [{
297
- "name": "number"
298
- }, {
299
- "name": "string"
300
- }, {
301
- "name": "object"
302
- }]
303
- },
304
- "required": false,
305
- "description": ""
306
- },
307
- "minWidth": {
308
- "type": {
309
- "name": "union",
310
- "value": [{
311
- "name": "number"
312
- }, {
313
- "name": "string"
314
- }, {
315
- "name": "object"
316
- }]
317
- },
318
- "required": false,
319
- "description": ""
320
- },
321
- "maxWidth": {
322
- "type": {
323
- "name": "union",
324
- "value": [{
325
- "name": "number"
326
- }, {
327
- "name": "string"
328
- }, {
329
- "name": "object"
330
- }]
331
- },
332
- "required": false,
333
- "description": ""
334
- },
335
- "height": {
336
- "type": {
337
- "name": "union",
338
- "value": [{
339
- "name": "number"
340
- }, {
341
- "name": "string"
342
- }, {
343
- "name": "object"
344
- }]
345
- },
346
- "required": false,
347
- "description": ""
348
- },
349
- "minHeight": {
350
- "type": {
351
- "name": "union",
352
- "value": [{
353
- "name": "number"
354
- }, {
355
- "name": "string"
356
- }, {
357
- "name": "object"
358
- }]
359
- },
360
- "required": false,
361
- "description": ""
362
- },
363
- "maxHeight": {
364
- "type": {
365
- "name": "union",
366
- "value": [{
367
- "name": "number"
368
- }, {
369
- "name": "string"
370
- }, {
371
- "name": "object"
372
- }]
373
- },
374
- "required": false,
375
- "description": ""
376
- },
377
- "radius": {
378
- "type": {
379
- "name": "union",
380
- "value": [{
381
- "name": "enum",
382
- "value": [{
383
- "value": "\"s\"",
384
- "computed": false
385
- }, {
386
- "value": "\"m\"",
387
- "computed": false
388
- }, {
389
- "value": "\"l\"",
390
- "computed": false
391
- }]
392
- }, {
393
- "name": "string"
394
- }]
395
- },
396
- "required": false,
397
- "description": ""
398
- },
399
- "shadow": {
400
- "type": {
401
- "name": "union",
402
- "value": [{
403
- "name": "enum",
404
- "value": [{
405
- "value": "\"s\"",
406
- "computed": false
407
- }, {
408
- "value": "\"m\"",
409
- "computed": false
410
- }, {
411
- "value": "\"l\"",
412
- "computed": false
413
- }]
414
- }, {
415
- "name": "string"
416
- }]
417
- },
418
- "required": false,
419
- "description": ""
420
- },
421
- "padding": {
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
- "name": "object"
451
- }]
452
- },
453
- "required": false,
454
- "description": ""
455
- },
456
- "paddingTop": {
457
- "type": {
458
- "name": "union",
459
- "value": [{
460
- "name": "enum",
461
- "value": [{
462
- "value": "\"xs\"",
463
- "computed": false
464
- }, {
465
- "value": "\"s\"",
466
- "computed": false
467
- }, {
468
- "value": "\"m\"",
469
- "computed": false
470
- }, {
471
- "value": "\"l\"",
472
- "computed": false
473
- }, {
474
- "value": "\"xl\"",
475
- "computed": false
476
- }, {
477
- "value": "\"xxl\"",
478
- "computed": false
479
- }]
480
- }, {
481
- "name": "number"
482
- }, {
483
- "name": "string"
484
- }, {
485
- "name": "object"
486
- }]
487
- },
488
- "required": false,
489
- "description": ""
490
- },
491
- "paddingBottom": {
492
- "type": {
493
- "name": "union",
494
- "value": [{
495
- "name": "enum",
496
- "value": [{
497
- "value": "\"xs\"",
498
- "computed": false
499
- }, {
500
- "value": "\"s\"",
501
- "computed": false
502
- }, {
503
- "value": "\"m\"",
504
- "computed": false
505
- }, {
506
- "value": "\"l\"",
507
- "computed": false
508
- }, {
509
- "value": "\"xl\"",
510
- "computed": false
511
- }, {
512
- "value": "\"xxl\"",
513
- "computed": false
514
- }]
515
- }, {
516
- "name": "number"
517
- }, {
518
- "name": "string"
519
- }, {
520
- "name": "object"
521
- }]
522
- },
523
- "required": false,
524
- "description": ""
525
- },
526
- "paddingLeft": {
527
- "type": {
528
- "name": "union",
529
- "value": [{
530
- "name": "enum",
531
- "value": [{
532
- "value": "\"xs\"",
533
- "computed": false
534
- }, {
535
- "value": "\"s\"",
536
- "computed": false
537
- }, {
538
- "value": "\"m\"",
539
- "computed": false
540
- }, {
541
- "value": "\"l\"",
542
- "computed": false
543
- }, {
544
- "value": "\"xl\"",
545
- "computed": false
546
- }, {
547
- "value": "\"xxl\"",
548
- "computed": false
549
- }]
550
- }, {
551
- "name": "number"
552
- }, {
553
- "name": "string"
554
- }, {
555
- "name": "object"
556
- }]
557
- },
558
- "required": false,
559
- "description": ""
560
- },
561
- "paddingRight": {
562
- "type": {
563
- "name": "union",
564
- "value": [{
565
- "name": "enum",
566
- "value": [{
567
- "value": "\"xs\"",
568
- "computed": false
569
- }, {
570
- "value": "\"s\"",
571
- "computed": false
572
- }, {
573
- "value": "\"m\"",
574
- "computed": false
575
- }, {
576
- "value": "\"l\"",
577
- "computed": false
578
- }, {
579
- "value": "\"xl\"",
580
- "computed": false
581
- }, {
582
- "value": "\"xxl\"",
583
- "computed": false
584
- }]
585
- }, {
586
- "name": "number"
587
- }, {
588
- "name": "string"
589
- }, {
590
- "name": "object"
591
- }]
592
- },
593
- "required": false,
594
- "description": ""
595
- },
596
- "paddingX": {
597
- "type": {
598
- "name": "union",
599
- "value": [{
600
- "name": "enum",
601
- "value": [{
602
- "value": "\"xs\"",
603
- "computed": false
604
- }, {
605
- "value": "\"s\"",
606
- "computed": false
607
- }, {
608
- "value": "\"m\"",
609
- "computed": false
610
- }, {
611
- "value": "\"l\"",
612
- "computed": false
613
- }, {
614
- "value": "\"xl\"",
615
- "computed": false
616
- }, {
617
- "value": "\"xxl\"",
618
- "computed": false
619
- }]
620
- }, {
621
- "name": "number"
622
- }, {
623
- "name": "string"
624
- }, {
625
- "name": "object"
626
- }]
627
- },
628
- "required": false,
629
- "description": ""
630
- },
631
- "paddingY": {
632
- "type": {
633
- "name": "union",
634
- "value": [{
635
- "name": "enum",
636
- "value": [{
637
- "value": "\"xs\"",
638
- "computed": false
639
- }, {
640
- "value": "\"s\"",
641
- "computed": false
642
- }, {
643
- "value": "\"m\"",
644
- "computed": false
645
- }, {
646
- "value": "\"l\"",
647
- "computed": false
648
- }, {
649
- "value": "\"xl\"",
650
- "computed": false
651
- }, {
652
- "value": "\"xxl\"",
653
- "computed": false
654
- }]
655
- }, {
656
- "name": "number"
657
- }, {
658
- "name": "string"
659
- }, {
660
- "name": "object"
661
- }]
662
- },
663
- "required": false,
664
- "description": ""
665
- },
666
- "margin": {
667
- "type": {
668
- "name": "union",
669
- "value": [{
670
- "name": "enum",
671
- "value": [{
672
- "value": "\"xs\"",
673
- "computed": false
674
- }, {
675
- "value": "\"s\"",
676
- "computed": false
677
- }, {
678
- "value": "\"m\"",
679
- "computed": false
680
- }, {
681
- "value": "\"l\"",
682
- "computed": false
683
- }, {
684
- "value": "\"xl\"",
685
- "computed": false
686
- }, {
687
- "value": "\"xxl\"",
688
- "computed": false
689
- }]
690
- }, {
691
- "name": "number"
692
- }, {
693
- "name": "string"
694
- }, {
695
- "name": "object"
696
- }]
697
- },
698
- "required": false,
699
- "description": ""
700
- },
701
- "marginTop": {
702
- "type": {
703
- "name": "union",
704
- "value": [{
705
- "name": "enum",
706
- "value": [{
707
- "value": "\"xs\"",
708
- "computed": false
709
- }, {
710
- "value": "\"s\"",
711
- "computed": false
712
- }, {
713
- "value": "\"m\"",
714
- "computed": false
715
- }, {
716
- "value": "\"l\"",
717
- "computed": false
718
- }, {
719
- "value": "\"xl\"",
720
- "computed": false
721
- }, {
722
- "value": "\"xxl\"",
723
- "computed": false
724
- }]
725
- }, {
726
- "name": "number"
727
- }, {
728
- "name": "string"
729
- }, {
730
- "name": "object"
731
- }]
732
- },
733
- "required": false,
734
- "description": ""
735
- },
736
- "marginBottom": {
737
- "type": {
738
- "name": "union",
739
- "value": [{
740
- "name": "enum",
741
- "value": [{
742
- "value": "\"xs\"",
743
- "computed": false
744
- }, {
745
- "value": "\"s\"",
746
- "computed": false
747
- }, {
748
- "value": "\"m\"",
749
- "computed": false
750
- }, {
751
- "value": "\"l\"",
752
- "computed": false
753
- }, {
754
- "value": "\"xl\"",
755
- "computed": false
756
- }, {
757
- "value": "\"xxl\"",
758
- "computed": false
759
- }]
760
- }, {
761
- "name": "number"
762
- }, {
763
- "name": "string"
764
- }, {
765
- "name": "object"
766
- }]
767
- },
768
- "required": false,
769
- "description": ""
770
- },
771
- "marginLeft": {
772
- "type": {
773
- "name": "union",
774
- "value": [{
775
- "name": "enum",
776
- "value": [{
777
- "value": "\"xs\"",
778
- "computed": false
779
- }, {
780
- "value": "\"s\"",
781
- "computed": false
782
- }, {
783
- "value": "\"m\"",
784
- "computed": false
785
- }, {
786
- "value": "\"l\"",
787
- "computed": false
788
- }, {
789
- "value": "\"xl\"",
790
- "computed": false
791
- }, {
792
- "value": "\"xxl\"",
793
- "computed": false
794
- }]
795
- }, {
796
- "name": "number"
797
- }, {
798
- "name": "string"
799
- }, {
800
- "name": "object"
801
- }]
802
- },
803
- "required": false,
804
- "description": ""
805
- },
806
- "marginRight": {
807
- "type": {
808
- "name": "union",
809
- "value": [{
810
- "name": "enum",
811
- "value": [{
812
- "value": "\"xs\"",
813
- "computed": false
814
- }, {
815
- "value": "\"s\"",
816
- "computed": false
817
- }, {
818
- "value": "\"m\"",
819
- "computed": false
820
- }, {
821
- "value": "\"l\"",
822
- "computed": false
823
- }, {
824
- "value": "\"xl\"",
825
- "computed": false
826
- }, {
827
- "value": "\"xxl\"",
828
- "computed": false
829
- }]
830
- }, {
831
- "name": "number"
832
- }, {
833
- "name": "string"
834
- }, {
835
- "name": "object"
836
- }]
837
- },
838
- "required": false,
839
- "description": ""
840
- },
841
- "marginX": {
842
- "type": {
843
- "name": "union",
844
- "value": [{
845
- "name": "enum",
846
- "value": [{
847
- "value": "\"xs\"",
848
- "computed": false
849
- }, {
850
- "value": "\"s\"",
851
- "computed": false
852
- }, {
853
- "value": "\"m\"",
854
- "computed": false
855
- }, {
856
- "value": "\"l\"",
857
- "computed": false
858
- }, {
859
- "value": "\"xl\"",
860
- "computed": false
861
- }, {
862
- "value": "\"xxl\"",
863
- "computed": false
864
- }]
865
- }, {
866
- "name": "number"
867
- }, {
868
- "name": "string"
869
- }, {
870
- "name": "object"
871
- }]
872
- },
873
- "required": false,
874
- "description": ""
875
- },
876
- "marginY": {
877
- "type": {
878
- "name": "union",
879
- "value": [{
880
- "name": "enum",
881
- "value": [{
882
- "value": "\"xs\"",
883
- "computed": false
884
- }, {
885
- "value": "\"s\"",
886
- "computed": false
887
- }, {
888
- "value": "\"m\"",
889
- "computed": false
890
- }, {
891
- "value": "\"l\"",
892
- "computed": false
893
- }, {
894
- "value": "\"xl\"",
895
- "computed": false
896
- }, {
897
- "value": "\"xxl\"",
898
- "computed": false
899
- }]
900
- }, {
901
- "name": "number"
902
- }, {
903
- "name": "string"
904
- }, {
905
- "name": "object"
906
- }]
907
- },
908
- "required": false,
909
- "description": ""
910
- },
911
- "position": {
912
- "type": {
913
- "name": "enum",
914
- "value": [{
915
- "value": "\"static\"",
916
- "computed": false
917
- }, {
918
- "value": "\"relative\"",
919
- "computed": false
920
- }, {
921
- "value": "\"fixed\"",
922
- "computed": false
923
- }, {
924
- "value": "\"absolute\"",
925
- "computed": false
926
- }, {
927
- "value": "\"sticky\"",
928
- "computed": false
929
- }]
930
- },
931
- "required": false,
932
- "description": ""
933
- },
934
- "top": {
935
- "type": {
936
- "name": "union",
937
- "value": [{
938
- "name": "enum",
939
- "value": [{
940
- "value": "\"xs\"",
941
- "computed": false
942
- }, {
943
- "value": "\"s\"",
944
- "computed": false
945
- }, {
946
- "value": "\"m\"",
947
- "computed": false
948
- }, {
949
- "value": "\"l\"",
950
- "computed": false
951
- }, {
952
- "value": "\"xl\"",
953
- "computed": false
954
- }, {
955
- "value": "\"xxl\"",
956
- "computed": false
957
- }]
958
- }, {
959
- "name": "number"
960
- }, {
961
- "name": "string"
962
- }, {
963
- "name": "object"
964
- }]
965
- },
966
- "required": false,
967
- "description": ""
968
- },
969
- "bottom": {
970
- "type": {
971
- "name": "union",
972
- "value": [{
973
- "name": "enum",
974
- "value": [{
975
- "value": "\"xs\"",
976
- "computed": false
977
- }, {
978
- "value": "\"s\"",
979
- "computed": false
980
- }, {
981
- "value": "\"m\"",
982
- "computed": false
983
- }, {
984
- "value": "\"l\"",
985
- "computed": false
986
- }, {
987
- "value": "\"xl\"",
988
- "computed": false
989
- }, {
990
- "value": "\"xxl\"",
991
- "computed": false
992
- }]
993
- }, {
994
- "name": "number"
995
- }, {
996
- "name": "string"
997
- }, {
998
- "name": "object"
999
- }]
1000
- },
1001
- "required": false,
1002
- "description": ""
1003
- },
1004
- "left": {
1005
- "type": {
1006
- "name": "union",
1007
- "value": [{
1008
- "name": "enum",
1009
- "value": [{
1010
- "value": "\"xs\"",
1011
- "computed": false
1012
- }, {
1013
- "value": "\"s\"",
1014
- "computed": false
1015
- }, {
1016
- "value": "\"m\"",
1017
- "computed": false
1018
- }, {
1019
- "value": "\"l\"",
1020
- "computed": false
1021
- }, {
1022
- "value": "\"xl\"",
1023
- "computed": false
1024
- }, {
1025
- "value": "\"xxl\"",
1026
- "computed": false
1027
- }]
1028
- }, {
1029
- "name": "number"
1030
- }, {
1031
- "name": "string"
1032
- }, {
1033
- "name": "object"
1034
- }]
1035
- },
1036
- "required": false,
1037
- "description": ""
1038
- },
1039
- "right": {
1040
- "type": {
1041
- "name": "union",
1042
- "value": [{
1043
- "name": "enum",
1044
- "value": [{
1045
- "value": "\"xs\"",
1046
- "computed": false
1047
- }, {
1048
- "value": "\"s\"",
1049
- "computed": false
1050
- }, {
1051
- "value": "\"m\"",
1052
- "computed": false
1053
- }, {
1054
- "value": "\"l\"",
1055
- "computed": false
1056
- }, {
1057
- "value": "\"xl\"",
1058
- "computed": false
1059
- }, {
1060
- "value": "\"xxl\"",
1061
- "computed": false
1062
- }]
1063
- }, {
1064
- "name": "number"
1065
- }, {
1066
- "name": "string"
1067
- }, {
1068
- "name": "object"
1069
- }]
1070
- },
1071
- "required": false,
1072
- "description": ""
1073
- },
1074
- "overflow": {
1075
- "type": {
1076
- "name": "enum",
1077
- "value": [{
1078
- "value": "\"visible\"",
1079
- "computed": false
1080
- }, {
1081
- "value": "\"hidden\"",
1082
- "computed": false
1083
- }, {
1084
- "value": "\"scroll\"",
1085
- "computed": false
1086
- }, {
1087
- "value": "\"auto\"",
1088
- "computed": false
1089
- }]
1090
- },
1091
- "required": false,
1092
- "description": ""
1093
- },
1094
- "aspectRatio": {
1095
- "type": {
1096
- "name": "string"
1097
- },
1098
- "required": false,
1099
- "description": ""
1100
- }
1101
- }
1102
- };
157
+ Box.propTypes = (_Box$propTypes = {
158
+ color: types.color,
159
+ backgroundColor: types.color,
160
+ borderSide: types.side,
161
+ borderWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
162
+ borderColor: types.color,
163
+ width: types.dimension,
164
+ minWidth: types.dimension,
165
+ maxWidth: types.dimension,
166
+ height: types.dimension,
167
+ minHeight: types.dimension,
168
+ maxHeight: types.dimension
169
+ }, _defineProperty(_Box$propTypes, "height", types.dimension), _defineProperty(_Box$propTypes, "radius", types.radius), _defineProperty(_Box$propTypes, "shadow", types.shadow), _defineProperty(_Box$propTypes, "padding", types.space), _defineProperty(_Box$propTypes, "paddingTop", types.space), _defineProperty(_Box$propTypes, "paddingBottom", types.space), _defineProperty(_Box$propTypes, "paddingLeft", types.space), _defineProperty(_Box$propTypes, "paddingRight", types.space), _defineProperty(_Box$propTypes, "paddingX", types.space), _defineProperty(_Box$propTypes, "paddingY", types.space), _defineProperty(_Box$propTypes, "margin", types.space), _defineProperty(_Box$propTypes, "marginTop", types.space), _defineProperty(_Box$propTypes, "marginBottom", types.space), _defineProperty(_Box$propTypes, "marginLeft", types.space), _defineProperty(_Box$propTypes, "marginRight", types.space), _defineProperty(_Box$propTypes, "marginX", types.space), _defineProperty(_Box$propTypes, "marginY", types.space), _defineProperty(_Box$propTypes, "position", types.position), _defineProperty(_Box$propTypes, "top", types.space), _defineProperty(_Box$propTypes, "bottom", types.space), _defineProperty(_Box$propTypes, "left", types.space), _defineProperty(_Box$propTypes, "right", types.space), _defineProperty(_Box$propTypes, "overflow", types.overflow), _defineProperty(_Box$propTypes, "aspectRatio", PropTypes.string), _Box$propTypes);