@uiw/react-color-github
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,8 +7,10 @@ "use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = exports.GithubPlacement = void 0; | ||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
@@ -59,3 +61,3 @@ var _react = _interopRequireWildcard(require("react")); | ||
onChange = props.onChange, | ||
other = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded); | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color; | ||
@@ -72,4 +74,4 @@ var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : ''; | ||
}; | ||
var arrBrStyl = (0, _extends2["default"])({}, rStyle); | ||
var arrStyl = (0, _extends2["default"])({}, rStyle); | ||
var arrBrStyl = (0, _objectSpread2["default"])({}, rStyle); | ||
var arrStyl = (0, _objectSpread2["default"])({}, rStyle); | ||
@@ -178,3 +180,3 @@ if (/^T/.test(placement)) { | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch["default"], (0, _extends2["default"])({ | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
ref: ref, | ||
@@ -186,10 +188,10 @@ className: [prefixCls, className].filter(Boolean).join(' '), | ||
var key = _ref.key, | ||
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded2); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Point["default"], (0, _extends2["default"])({}, props, { | ||
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded2); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Point["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), {}, { | ||
rectProps: rectProps | ||
}), key); | ||
} | ||
}, other, { | ||
}, other), {}, { | ||
onChange: handleChange, | ||
style: (0, _extends2["default"])({ | ||
style: (0, _objectSpread2["default"])({ | ||
width: 200, | ||
@@ -196,0 +198,0 @@ borderRadius: 4, |
@@ -7,6 +7,8 @@ "use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = Point; | ||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
@@ -37,10 +39,10 @@ var _react = _interopRequireWildcard(require("react")); | ||
}, [checked]); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", (0, _extends2["default"])({ | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
ref: btn, | ||
title: title | ||
}, rectProps, { | ||
}, rectProps), {}, { | ||
onClick: onClick, | ||
onMouseEnter: handleMouseEnter, | ||
onMouseLeave: handleMouseLeave, | ||
style: (0, _extends2["default"])({}, style, { | ||
style: (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, style), {}, { | ||
marginRight: 0, | ||
@@ -58,7 +60,5 @@ marginBottom: 0, | ||
zIndex: 0 | ||
}, rectProps.style) | ||
}), rectProps.style) | ||
})); | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=Point.js.map |
{ | ||
"name": "@uiw/react-color-github", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Color Github Picker", | ||
@@ -33,8 +33,8 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@babel/runtime": "7.15.3", | ||
"@babel/runtime": "7.15.4", | ||
"@uiw/color-convert": "^1.0.0", | ||
"@uiw/react-color-swatch": "^1.0.0" | ||
"@uiw/react-color-swatch": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "17.0.19", | ||
"@types/react": "17.0.20", | ||
"@types/react-dom": "17.0.9", | ||
@@ -41,0 +41,0 @@ "@types/react-test-renderer": "17.0.1", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36277
516
0
+ Added@babel/runtime@7.15.4(transitive)
- Removed@babel/runtime@7.15.3(transitive)
Updated@babel/runtime@7.15.4