@uiw/react-color-compact
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"] = 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")); | ||
@@ -51,3 +53,3 @@ var _react = _interopRequireWildcard(require("react")); | ||
colors = _props$colors === void 0 ? COLORS : _props$colors, | ||
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; | ||
@@ -75,5 +77,5 @@ var hex = color ? (0, _colorConvert.hsvaToHex)(hsva).replace(/^#/, '') : ''; | ||
}; | ||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _extends2["default"])({ | ||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
ref: ref, | ||
style: (0, _extends2["default"])({ | ||
style: (0, _objectSpread2["default"])({ | ||
background: '#f6f6f6', | ||
@@ -88,3 +90,3 @@ borderRadius: 3, | ||
className: [prefixCls, className || ''].filter(Boolean).join(' ') | ||
}, other, { | ||
}, other), {}, { | ||
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch["default"], { | ||
@@ -122,3 +124,3 @@ colors: colors, | ||
height: 8, | ||
backgroundColor: "#" + hex | ||
backgroundColor: "#".concat(hex) | ||
} | ||
@@ -154,3 +156,2 @@ }), | ||
exports["default"] = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@uiw/react-color-compact", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Color Compact component for React.", | ||
@@ -32,10 +32,10 @@ "homepage": "https://uiwjs.github.io/react-color/#react-color-compact", | ||
"dependencies": { | ||
"@babel/runtime": "7.15.3", | ||
"@babel/runtime": "7.15.4", | ||
"@uiw/color-convert": "^1.0.0", | ||
"@uiw/react-color-editable-input": "^1.0.0", | ||
"@uiw/react-color-editable-input-rgba": "^1.0.0", | ||
"@uiw/react-color-swatch": "^1.0.0" | ||
"@uiw/react-color-editable-input": "^1.0.1", | ||
"@uiw/react-color-editable-input-rgba": "^1.0.1", | ||
"@uiw/react-color-swatch": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "17.0.19", | ||
"@types/react": "17.0.20", | ||
"@types/react-dom": "17.0.9", | ||
@@ -42,0 +42,0 @@ "@types/react-test-renderer": "17.0.1", |
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
21147
291
0
+ Added@babel/runtime@7.15.4(transitive)
- Removed@babel/runtime@7.15.3(transitive)
Updated@babel/runtime@7.15.4