@uiw/react-tag
Advanced tools
Comparing version 4.21.28 to 4.22.0
@@ -14,3 +14,3 @@ import React from 'react'; | ||
} | ||
declare const _default: (props?: TagProps) => JSX.Element | null; | ||
declare const _default: (props?: TagProps) => React.JSX.Element | null; | ||
export default _default; |
@@ -50,2 +50,12 @@ "use strict"; | ||
} | ||
var iconClose = !disabled && closable && /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", { | ||
onClick: onClose, | ||
className: "".concat(prefixCls, "-close"), | ||
width: "15", | ||
height: "15", | ||
viewBox: "0 0 16 16", | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { | ||
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z" | ||
}) | ||
}); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
@@ -55,16 +65,6 @@ className: cls, | ||
}, other), {}, { | ||
children: [title || children, !disabled && closable ? /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", { | ||
onClick: onClose, | ||
className: "".concat(prefixCls, "-close"), | ||
width: "15", | ||
height: "15", | ||
viewBox: "0 0 16 16", | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { | ||
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z" | ||
}) | ||
}) : null] | ||
children: [title || children, iconClose] | ||
})); | ||
}; | ||
exports["default"] = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map | ||
module.exports = exports.default; |
@@ -14,3 +14,3 @@ import React from 'react'; | ||
} | ||
declare const _default: (props?: TagProps) => JSX.Element | null; | ||
declare const _default: (props?: TagProps) => React.JSX.Element | null; | ||
export default _default; |
@@ -42,2 +42,12 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
} | ||
var iconClose = !disabled && closable && /*#__PURE__*/_jsx("svg", { | ||
onClick: onClose, | ||
className: prefixCls + "-close", | ||
width: "15", | ||
height: "15", | ||
viewBox: "0 0 16 16", | ||
children: /*#__PURE__*/_jsx("path", { | ||
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z" | ||
}) | ||
}); | ||
return /*#__PURE__*/_jsxs("span", _extends({ | ||
@@ -47,14 +57,4 @@ className: cls, | ||
}, other, { | ||
children: [title || children, !disabled && closable ? /*#__PURE__*/_jsx("svg", { | ||
onClick: onClose, | ||
className: prefixCls + "-close", | ||
width: "15", | ||
height: "15", | ||
viewBox: "0 0 16 16", | ||
children: /*#__PURE__*/_jsx("path", { | ||
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z" | ||
}) | ||
}) : null] | ||
children: [title || children, iconClose] | ||
})); | ||
}); | ||
//# sourceMappingURL=index.js.map | ||
}); |
{ | ||
"name": "@uiw/react-tag", | ||
"version": "4.21.28", | ||
"version": "4.22.0", | ||
"description": "Tag component", | ||
@@ -47,4 +47,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.21.28" | ||
"@uiw/utils": "^4.22.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308
25216
13
Updated@uiw/utils@^4.22.0