UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

14 lines (12 loc) 840 B
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import React from 'react'; import { deprecate, deprecateInnerRef } from '../../deprecate'; import { Flex } from '../flex'; // TODO: remove once 2.0.0 hits export var Box = React.forwardRef(function (props, ref) { deprecate('<Box> has been renamed to <Flex> recently. Please import Flex directly as Box will be reused as a more basic building block component in version 2.0.0.', true); deprecateInnerRef(props); return React.createElement(Flex, _extends({}, props, { ref: ref })); }); Box.displayName = 'Box';