Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-card

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-card - npm Package Compare versions

Comparing version 4.3.1 to 4.4.0

4

lib/cjs/index.d.ts

@@ -14,3 +14,3 @@ import React from 'react';

}
declare const _default: (props?: CardProps) => JSX.Element;
export default _default;
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
export default Card;

@@ -22,4 +22,5 @@ "use strict";

var _default = function _default() {
function InternalCard() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var ref = arguments.length > 1 ? arguments[1] : undefined;
var _props$prefixCls = props.prefixCls,

@@ -41,2 +42,8 @@ prefixCls = _props$prefixCls === void 0 ? 'w-card' : _props$prefixCls,

resetProps = (0, _objectWithoutProperties2.default)(props, ["prefixCls", "className", "title", "extra", "footer", "bordered", "noHover", "active", "bodyStyle", "bodyClassName", "children"]);
var divRef = /*#__PURE__*/_react.default.createRef();
(0, _react.useImperativeHandle)(ref, function () {
return divRef.current;
});
var cls = (0, _react.useMemo)(function () {

@@ -48,3 +55,4 @@ var _classnames;

return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
className: cls
className: cls,
ref: divRef
}), (title || extra) && /*#__PURE__*/_react.default.createElement("div", {

@@ -62,6 +70,9 @@ className: "".concat(prefixCls, "-head")

}, footer));
};
}
var Card = /*#__PURE__*/_react.default.forwardRef(InternalCard);
var _default = Card;
exports.default = _default;
module.exports = exports.default;
//# sourceMappingURL=index.js.map

@@ -14,3 +14,3 @@ import React from 'react';

}
declare const _default: (props?: CardProps) => JSX.Element;
export default _default;
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
export default Card;
import _extends from "@babel/runtime/helpers/esm/extends";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React, { useMemo } from 'react';
import React, { useMemo, useImperativeHandle } from 'react';
import classnames from 'classnames';
import "./style/index.css";
export default (function () {
function InternalCard() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var ref = arguments.length > 1 ? arguments[1] : undefined;

@@ -27,2 +29,6 @@ var _props$prefixCls = props.prefixCls,

var divRef = /*#__PURE__*/React.createRef();
useImperativeHandle(ref, function () {
return divRef.current;
});
var cls = useMemo(function () {

@@ -34,3 +40,4 @@ var _classnames;

return /*#__PURE__*/React.createElement("div", _extends({}, resetProps, {
className: cls
className: cls,
ref: divRef
}), (title || extra) && /*#__PURE__*/React.createElement("div", {

@@ -48,3 +55,6 @@ className: "".concat(prefixCls, "-head")

}, footer));
});
}
var Card = /*#__PURE__*/React.forwardRef(InternalCard);
export default Card;
//# sourceMappingURL=index.js.map
{
"name": "@uiw/react-card",
"version": "4.3.1",
"version": "4.4.0",
"description": "Card component",

@@ -46,3 +46,3 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/utils": "^4.3.1",
"@uiw/utils": "^4.4.0",
"classnames": "2.2.6"

@@ -58,3 +58,3 @@ },

},
"gitHead": "f469dd7fc4c211873d65efcc065e2d0de2c64fed"
"gitHead": "efc1f4d8d93eb92af00649e92dd922b3074b0cab"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc