UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

35 lines (32 loc) 1.53 kB
import _defineProperty from '@babel/runtime/helpers/defineProperty'; import '../../../../utils/metaAttribute/index.js'; import { jsx } from 'react/jsx-runtime'; import { metaAttribute } from '../../../../utils/metaAttribute/metaAttribute.web.js'; function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } var Rect = function Rect(_ref) { var height = _ref.height, width = _ref.width, rx = _ref.rx, ry = _ref.ry, x = _ref.x, y = _ref.y, fill = _ref.fill, fillOpacity = _ref.fillOpacity, transform = _ref.transform; return /*#__PURE__*/jsx("rect", _objectSpread(_objectSpread({}, metaAttribute({ name: 'svg-rect' })), {}, { height: height, width: width, rx: rx, ry: ry, x: x, y: y, fill: fill, fillOpacity: fillOpacity, transform: transform })); }; export { Rect as default }; //# sourceMappingURL=Rect.web.js.map