You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							55 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
	
	
							55 lines
						
					
					
						
							1.0 KiB
						
					
					
				"use strict";
 | 
						|
 | 
						|
exports.__esModule = true;
 | 
						|
exports["default"] = exports.layout = void 0;
 | 
						|
 | 
						|
var _core = require("@styled-system/core");
 | 
						|
 | 
						|
var isNumber = function isNumber(n) {
 | 
						|
  return typeof n === 'number' && !isNaN(n);
 | 
						|
};
 | 
						|
 | 
						|
var getWidth = function getWidth(n, scale) {
 | 
						|
  return (0, _core.get)(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + '%');
 | 
						|
};
 | 
						|
 | 
						|
var config = {
 | 
						|
  width: {
 | 
						|
    property: 'width',
 | 
						|
    scale: 'sizes',
 | 
						|
    transform: getWidth
 | 
						|
  },
 | 
						|
  height: {
 | 
						|
    property: 'height',
 | 
						|
    scale: 'sizes'
 | 
						|
  },
 | 
						|
  minWidth: {
 | 
						|
    property: 'minWidth',
 | 
						|
    scale: 'sizes'
 | 
						|
  },
 | 
						|
  minHeight: {
 | 
						|
    property: 'minHeight',
 | 
						|
    scale: 'sizes'
 | 
						|
  },
 | 
						|
  maxWidth: {
 | 
						|
    property: 'maxWidth',
 | 
						|
    scale: 'sizes'
 | 
						|
  },
 | 
						|
  maxHeight: {
 | 
						|
    property: 'maxHeight',
 | 
						|
    scale: 'sizes'
 | 
						|
  },
 | 
						|
  size: {
 | 
						|
    properties: ['width', 'height'],
 | 
						|
    scale: 'sizes'
 | 
						|
  },
 | 
						|
  overflow: true,
 | 
						|
  overflowX: true,
 | 
						|
  overflowY: true,
 | 
						|
  display: true,
 | 
						|
  verticalAlign: true
 | 
						|
};
 | 
						|
var layout = (0, _core.system)(config);
 | 
						|
exports.layout = layout;
 | 
						|
var _default = layout;
 | 
						|
exports["default"] = _default; |