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

@uiw/react-color-compact

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-color-compact - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

19

lib/index.js

@@ -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

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