Brand ESM diff
36 removals
Words removed | 168 |
Total words | 233 |
Words removed (%) | 72.10 |
33 lines
9 additions
Words added | 13 |
Total words | 78 |
Words added (%) | 16.67 |
10 lines
import _pt from "prop-types";
import { __rest } from "tslib";
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); }
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; }
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; }
import * as React from 'react';
import * as React from 'react';
import { css } from '@patternfly/react-styles';
import { css } from '@patternfly/react-styles';
export const Brand = (_ref) => {
export const Brand = (_a) => {
let {
var { className = '', src = '', alt } = _a, props = __rest(_a, ["className", "src", "alt"]);
className = '',
return (
src = '',
alt
} = _ref,
props = _objectWithoutProperties(_ref, ["className", "src", "alt"]);
return (
/** the brand component currently contains no styling the 'pf-c-brand' string will be used for the className */
/** the brand component currently contains no styling the 'pf-c-brand' string will be used for the className */
React.createElement("img", _extends({}, props, {
React.createElement("img", Object.assign({}, props, { className: css('pf-c-brand', className), src: src, alt: alt })));
className: css('pf-c-brand', className),
src: src,
alt: alt
}))
);
};
Brand.propTypes = {
className: _pt.string,
src: _pt.string,
alt: _pt.string.isRequired
};
};
//# sourceMappingURL=Brand.js.map
//# sourceMappingURL=Brand.js.map