Brand ESM diff

Created Diff never expires
36 हटाए गए
लाइनें
कुल
हटाया गया
शब्द
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diffchecker logo
Diffchecker Pro
33 लाइनें
9 जोड़े गए
लाइनें
कुल
जोड़ा गया
शब्द
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diffchecker logo
Diffchecker Pro
10 लाइनें
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