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

@uiw/react-color-material

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.14 to 0.0.15

112

lib/cjs/index.js

@@ -35,2 +35,4 @@ "use strict";

var _reactColorEditableInputRgba = _interopRequireDefault(require("@uiw/react-color-editable-input-rgba"));
var _excluded = ["prefixCls", "className", "style", "color", "onChange"];

@@ -57,37 +59,10 @@ var styleRBG = {

var hsva = typeof color === 'string' && (0, _colorConvert.validHex)(color) ? (0, _colorConvert.hexToHsva)(color) : color;
var rgba = color ? (0, _colorConvert.hsvaToRgba)(hsva) : {};
var hex = color ? (0, _colorConvert.hsvaToHex)(hsva).replace(/^#/, '') : '';
var handleChange = function handleChange(value, type, evn) {
if (typeof value === 'number') {
if (value > 255) {
value = 255;
evn.target.value = '255';
}
var handleChange = function handleChange(hsv) {
onChange && onChange((0, _colorConvert.color)(hsv));
};
if (value < 0) {
value = 0;
evn.target.value = '0';
}
if (type === 'r') {
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, rgba), {}, {
r: value
}))));
}
if (type === 'g') {
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, rgba), {}, {
g: value
}))));
}
if (type === 'b') {
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.rgbaToHsva)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, rgba), {}, {
b: value
}))));
}
}
if (typeof value === 'string' && type === 'hex' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.length))) {
var handleHex = function handleHex(value, evn) {
if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.length))) {
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hexToHsva)(value)));

@@ -97,10 +72,2 @@ }

function handleBlur(evn) {
var value = Number(evn.target.value);
if (value && value > 255) {
evn.target.value = '255';
}
}
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({

@@ -118,3 +85,3 @@ ref: ref,

onChange: function onChange(evn, val) {
return handleChange(val, 'hex', evn);
return handleHex(val, evn);
},

@@ -143,49 +110,34 @@ onBlur: function onBlur(evn) {

}
}), /*#__PURE__*/_react.default.createElement("div", {
}), /*#__PURE__*/_react.default.createElement(_reactColorEditableInputRgba.default, {
hsva: hsva,
placement: "top",
style: {
display: 'flex',
marginTop: 11
}
}, /*#__PURE__*/_react.default.createElement(_reactColorEditableInput.default, {
label: "R",
value: rgba.r || 0,
inputStyle: (0, _objectSpread2.default)({}, styleRBG),
onBlur: handleBlur,
onChange: function onChange(evn, val) {
return handleChange(val, 'r', evn);
},
style: {
flexDirection: 'column-reverse',
alignItems: 'flex-start'
}
}), /*#__PURE__*/_react.default.createElement(_reactColorEditableInput.default, {
label: "G",
value: rgba.g || 0,
inputStyle: (0, _objectSpread2.default)({}, styleRBG),
onBlur: handleBlur,
onChange: function onChange(evn, val) {
return handleChange(val, 'g', evn);
rProps: {
style: {
alignItems: 'flex-start'
},
inputStyle: (0, _objectSpread2.default)({}, styleRBG)
},
style: {
marginLeft: 5,
flexDirection: 'column-reverse',
alignItems: 'flex-start'
}
}), /*#__PURE__*/_react.default.createElement(_reactColorEditableInput.default, {
label: "B",
value: rgba.b || 0,
inputStyle: (0, _objectSpread2.default)({}, styleRBG),
onBlur: handleBlur,
onChange: function onChange(evn, val) {
return handleChange(val, 'b', evn);
gProps: {
style: {
alignItems: 'flex-start'
},
inputStyle: (0, _objectSpread2.default)({}, styleRBG)
},
style: {
marginLeft: 5,
flexDirection: 'column-reverse',
alignItems: 'flex-start'
bProps: {
style: {
alignItems: 'flex-start'
},
inputStyle: (0, _objectSpread2.default)({}, styleRBG)
},
aProps: false,
onChange: function onChange(result) {
return handleChange(result.hsva);
}
})));
}));
});
exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsic3R5bGVSQkciLCJib3hTaGFkb3ciLCJib3JkZXJXaWR0aCIsImJvcmRlckJvdHRvbUNvbG9yIiwiYm9yZGVyQm90dG9tU3R5bGUiLCJoZWlnaHQiLCJvdXRsaW5lIiwiZm9udFNpemUiLCJwYWRkaW5nIiwiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJzdHlsZSIsImNvbG9yIiwib25DaGFuZ2UiLCJvdGhlciIsImhzdmEiLCJyZ2JhIiwiaGV4IiwicmVwbGFjZSIsImhhbmRsZUNoYW5nZSIsInZhbHVlIiwidHlwZSIsImV2biIsInRhcmdldCIsInIiLCJnIiwiYiIsInRlc3QiLCJTdHJpbmciLCJsZW5ndGgiLCJoYW5kbGVCbHVyIiwiTnVtYmVyIiwiZmlsdGVyIiwiQm9vbGVhbiIsImpvaW4iLCJ3aWR0aCIsImZvbnRGYW1pbHkiLCJ0b0xvY2FsZVVwcGVyQ2FzZSIsInZhbCIsInNsaWNlIiwiYm9yZGVyIiwiZmxleERpcmVjdGlvbiIsImFsaWduSXRlbXMiLCJkaXNwbGF5IiwibWFyZ2luVG9wIiwibWFyZ2luTGVmdCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQWFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBRkE7OztBQVVBLElBQU1BLFFBQTZCLEdBQUc7QUFDcENDLEVBQUFBLFNBQVMsRUFBRSxTQUR5QjtBQUVwQ0MsRUFBQUEsV0FBVyxFQUFFLFdBRnVCO0FBR3BDQyxFQUFB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CAwfVxuICAgICAgICAgIGlucHV0U3R5bGU9e3tcbiAgICAgICAgICAgIC4uLnN0eWxlUkJHLFxuICAgICAgICAgIH19XG4gICAgICAgICAgb25CbHVyPXtoYW5kbGVCbHVyfVxuICAgICAgICAgIG9uQ2hhbmdlPXsoZXZuLCB2YWwpID0+IGhhbmRsZUNoYW5nZSh2YWwsICdnJywgZXZuKX1cbiAgICAgICAgICBzdHlsZT17eyBtYXJnaW5MZWZ0OiA1LCBmbGV4RGlyZWN0aW9uOiAnY29sdW1uLXJldmVyc2UnLCBhbGlnbkl0ZW1zOiAnZmxleC1zdGFydCcgfX1cbiAgICAgICAgLz5cbiAgICAgICAgPEVkaXRhYmxlSW5wdXRcbiAgICAgICAgICBsYWJlbD1cIkJcIlxuICAgICAgICAgIHZhbHVlPXtyZ2JhLmIgfHwgMH1cbiAgICAgICAgICBpbnB1dFN0eWxlPXt7XG4gICAgICAgICAgICAuLi5zdHlsZVJCRyxcbiAgICAgICAgICB9fVxuICAgICAgICAgIG9uQmx1cj17aGFuZGxlQmx1cn1cbiAgICAgICAgICBvbkNoYW5nZT17KGV2biwgdmFsKSA9PiBoYW5kbGVDaGFuZ2UodmFsLCAnYicsIGV2bil9XG4gICAgICAgICAgc3R5bGU9e3sgbWFyZ2luTGVmdDogNSwgZmxleERpcmVjdGlvbjogJ2NvbHVtbi1yZXZlcnNlJywgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnIH19XG4gICAgICAgIC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsic3R5bGVSQkciLCJib3hTaGFkb3ciLCJib3JkZXJXaWR0aCIsImJvcmRlckJvdHRvbUNvbG9yIiwiYm9yZGVyQm90dG9tU3R5bGUiLCJoZWlnaHQiLCJvdX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2lkdGg6ICcwIDAgMnB4IDAnLFxuICAgICAgICAgIGJvcmRlckJvdHRvbUNvbG9yOiBoZXggPyBgIyR7aGV4fWAgOiAnI2VlZScsXG4gICAgICAgICAgYm9yZGVyQm90dG9tU3R5bGU6ICdzb2xpZCcsXG4gICAgICAgIH19XG4gICAgICAgIHN0eWxlPXt7IGZsZXhEaXJlY3Rpb246ICdjb2x1bW4tcmV2ZXJzZScsIGFsaWduSXRlbXM6ICdmbGV4LXN0YXJ0JyB9fVxuICAgICAgLz5cblxuICAgICAgPFJHQkFcbiAgICAgICAgaHN2YT17aHN2YX1cbiAgICAgICAgcGxhY2VtZW50PVwidG9wXCJcbiAgICAgICAgc3R5bGU9e3sgbWFyZ2luVG9wOiAxMSB9fVxuICAgICAgICByUHJvcHM9e3tcbiAgICAgICAgICBzdHlsZToge1xuICAgICAgICAgICAgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgaW5wdXRTdHlsZTogeyAuLi5zdHlsZVJCRyB9LFxuICAgICAgICB9fVxuICAgICAgICBnUHJvcHM9e3tcbiAgICAgICAgICBzdHlsZToge1xuICAgICAgICAgICAgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgaW5wdXRTdHlsZTogeyAuLi5zdHlsZVJCRyB9LFxuICAgICAgICB9fVxuICAgICAgICBiUHJvcHM9e3tcbiAgICAgICAgICBzdHlsZToge1xuICAgICAgICAgICAgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgaW5wdXRTdHlsZTogeyAuLi5zdHlsZVJCRyB9LFxuICAgICAgICB9fVxuICAgICAgICBhUHJvcHM9e2ZhbHNlfVxuICAgICAgICBvbkNoYW5nZT17KHJlc3VsdCkgPT4gaGFuZGxlQ2hhbmdlKHJlc3VsdC5oc3ZhKX1cbiAgICAgIC8+XG4gICAgPC9kaXY+XG4gICk7XG59KTtcbiJdfQ==

@@ -6,4 +6,5 @@ import _extends from "@babel/runtime/helpers/extends";

import React from 'react';
import { color as handleColor, validHex, rgbaToHsva, hexToHsva, hsvaToRgba, hsvaToHex } from '@uiw/color-convert';
import { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';
import EditableInput from '@uiw/react-color-editable-input';
import RGBA from '@uiw/react-color-editable-input-rgba';
export * from '@uiw/color-convert';

@@ -30,37 +31,10 @@ var styleRBG = {

var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;
var rgba = color ? hsvaToRgba(hsva) : {};
var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';
var handleChange = function handleChange(value, type, evn) {
if (typeof value === 'number') {
if (value > 255) {
value = 255;
evn.target.value = '255';
}
var handleChange = function handleChange(hsv) {
onChange && onChange(handleColor(hsv));
};
if (value < 0) {
value = 0;
evn.target.value = '0';
}
if (type === 'r') {
onChange && onChange(handleColor(rgbaToHsva(_objectSpread(_objectSpread({}, rgba), {}, {
r: value
}))));
}
if (type === 'g') {
onChange && onChange(handleColor(rgbaToHsva(_objectSpread(_objectSpread({}, rgba), {}, {
g: value
}))));
}
if (type === 'b') {
onChange && onChange(handleColor(rgbaToHsva(_objectSpread(_objectSpread({}, rgba), {}, {
b: value
}))));
}
}
if (typeof value === 'string' && type === 'hex' && validHex(value) && /(3|6)/.test(String(value.length))) {
var handleHex = function handleHex(value, evn) {
if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {
onChange && onChange(handleColor(hexToHsva(value)));

@@ -70,10 +44,2 @@ }

function handleBlur(evn) {
var value = Number(evn.target.value);
if (value && value > 255) {
evn.target.value = '255';
}
}
return /*#__PURE__*/React.createElement("div", _extends({

@@ -91,3 +57,3 @@ ref: ref,

onChange: function onChange(evn, val) {
return handleChange(val, 'hex', evn);
return handleHex(val, evn);
},

@@ -116,47 +82,32 @@ onBlur: function onBlur(evn) {

}
}), /*#__PURE__*/React.createElement("div", {
}), /*#__PURE__*/React.createElement(RGBA, {
hsva: hsva,
placement: "top",
style: {
display: 'flex',
marginTop: 11
}
}, /*#__PURE__*/React.createElement(EditableInput, {
label: "R",
value: rgba.r || 0,
inputStyle: _objectSpread({}, styleRBG),
onBlur: handleBlur,
onChange: function onChange(evn, val) {
return handleChange(val, 'r', evn);
},
style: {
flexDirection: 'column-reverse',
alignItems: 'flex-start'
}
}), /*#__PURE__*/React.createElement(EditableInput, {
label: "G",
value: rgba.g || 0,
inputStyle: _objectSpread({}, styleRBG),
onBlur: handleBlur,
onChange: function onChange(evn, val) {
return handleChange(val, 'g', evn);
rProps: {
style: {
alignItems: 'flex-start'
},
inputStyle: _objectSpread({}, styleRBG)
},
style: {
marginLeft: 5,
flexDirection: 'column-reverse',
alignItems: 'flex-start'
}
}), /*#__PURE__*/React.createElement(EditableInput, {
label: "B",
value: rgba.b || 0,
inputStyle: _objectSpread({}, styleRBG),
onBlur: handleBlur,
onChange: function onChange(evn, val) {
return handleChange(val, 'b', evn);
gProps: {
style: {
alignItems: 'flex-start'
},
inputStyle: _objectSpread({}, styleRBG)
},
style: {
marginLeft: 5,
flexDirection: 'column-reverse',
alignItems: 'flex-start'
bProps: {
style: {
alignItems: 'flex-start'
},
inputStyle: _objectSpread({}, styleRBG)
},
aProps: false,
onChange: function onChange(result) {
return handleChange(result.hsva);
}
})));
}));
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJjb2xvciIsImhhbmRsZUNvbG9yIiwidmFsaWRIZXgiLCJyZ2JhVG9Ic3ZhIiwiaGV4VG9Ic3ZhIiwiaHN2YVRvUmdiYSIsImhzdmFUb0hleCIsIkVkaXRhYmxlSW5wdXQiLCJzdHlsZVJCRyIsImJveFNoYWRvdyIsImJvcmRlcldpZHRoIiwiYm9yZGVyQm90dG9tQ29sb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iAgICAgICAgICAgIC4uLnN0eWxlUkJHLFxuICAgICAgICAgIH19XG4gICAgICAgICAgb25CbHVyPXtoYW5kbGVCbHVyfVxuICAgICAgICAgIG9uQ2hhbmdlPXsoZXZuLCB2YWwpID0+IGhhbmRsZUNoYW5nZSh2YWwsICdnJywgZXZuKX1cbiAgICAgICAgICBzdHlsZT17eyBtYXJnaW5MZWZ0OiA1LCBmbGV4RGlyZWN0aW9uOiAnY29sdW1uLXJldmVyc2UnLCBhbGlnbkl0ZW1zOiAnZmxleC1zdGFydCcgfX1cbiAgICAgICAgLz5cbiAgICAgICAgPEVkaXRhYmxlSW5wdXRcbiAgICAgICAgICBsYWJlbD1cIkJcIlxuICAgICAgICAgIHZhbHVlPXtyZ2JhLmIgfHwgMH1cbiAgICAgICAgICBpbnB1dFN0eWxlPXt7XG4gICAgICAgICAgICAuLi5zdHlsZVJCRyxcbiAgICAgICAgICB9fVxuICAgICAgICAgIG9uQmx1cj17aGFuZGxlQmx1cn1cbiAgICAgICAgICBvbkNoYW5nZT17KGV2biwgdmFsKSA9PiBoYW5kbGVDaGFuZ2UodmFsLCAnYicsIGV2bil9XG4gICAgICAgICAgc3R5bGU9e3sgbWFyZ2luTGVmdDogNSwgZmxleERpcmVjdGlvbjogJ2NvbHVtbi1yZXZlcnNlJywgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnIH19XG4gICAgICAgIC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJjb2xvciIsImhhbmRsZUNvbG9yIiwidmFsaWRIZXgiLCJoZXhUb0hzdmEiLCJoc3ZhVG9IZXgiLCJFZGl0YWJsZUlucHV0IiwiUkdCQSIsInN0eWxlUkJHIiwiYm94U2hhZG93IiwiYm9yZ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B9XG4gICAgICAgIH19XG4gICAgICAgIGlucHV0U3R5bGU9e3tcbiAgICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgICBoZWlnaHQ6IDMwLFxuICAgICAgICAgIGZvbnRTaXplOiAxNSxcbiAgICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAgIGJveFNoYWRvdzogJ2luaXRpYWwnLFxuICAgICAgICAgIGJvcmRlcldpZHRoOiAnMCAwIDJweCAwJyxcbiAgICAgICAgICBib3JkZXJCb3R0b21Db2xvcjogaGV4ID8gYCMke2hleH1gIDogJyNlZWUnLFxuICAgICAgICAgIGJvcmRlckJvdHRvbVN0eWxlOiAnc29saWQnLFxuICAgICAgICB9fVxuICAgICAgICBzdHlsZT17eyBmbGV4RGlyZWN0aW9uOiAnY29sdW1uLXJldmVyc2UnLCBhbGlnbkl0ZW1zOiAnZmxleC1zdGFydCcgfX1cbiAgICAgIC8+XG5cbiAgICAgIDxSR0JBXG4gICAgICAgIGhzdmE9e2hzdmF9XG4gICAgICAgIHBsYWNlbWVudD1cInRvcFwiXG4gICAgICAgIHN0eWxlPXt7IG1hcmdpblRvcDogMTEgfX1cbiAgICAgICAgclByb3BzPXt7XG4gICAgICAgICAgc3R5bGU6IHtcbiAgICAgICAgICAgIGFsaWduSXRlbXM6ICdmbGV4LXN0YXJ0JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGlucHV0U3R5bGU6IHsgLi4uc3R5bGVSQkcgfSxcbiAgICAgICAgfX1cbiAgICAgICAgZ1Byb3BzPXt7XG4gICAgICAgICAgc3R5bGU6IHtcbiAgICAgICAgICAgIGFsaWduSXRlbXM6ICdmbGV4LXN0YXJ0JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGlucHV0U3R5bGU6IHsgLi4uc3R5bGVSQkcgfSxcbiAgICAgICAgfX1cbiAgICAgICAgYlByb3BzPXt7XG4gICAgICAgICAgc3R5bGU6IHtcbiAgICAgICAgICAgIGFsaWduSXRlbXM6ICdmbGV4LXN0YXJ0JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGlucHV0U3R5bGU6IHsgLi4uc3R5bGVSQkcgfSxcbiAgICAgICAgfX1cbiAgICAgICAgYVByb3BzPXtmYWxzZX1cbiAgICAgICAgb25DaGFuZ2U9eyhyZXN1bHQpID0+IGhhbmRsZUNoYW5nZShyZXN1bHQuaHN2YSl9XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApO1xufSk7XG4iXX0=
{
"name": "@uiw/react-color-material",
"version": "0.0.14",
"version": "0.0.15",
"description": "Color Material",

@@ -32,8 +32,9 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"@babel/runtime": "7.14.6",
"@uiw/color-convert": "^0.0.14",
"@uiw/react-color-editable-input": "^0.0.14"
"@uiw/color-convert": "^0.0.15",
"@uiw/react-color-editable-input": "^0.0.15",
"@uiw/react-color-editable-input-rgba": "^0.0.15"
},
"devDependencies": {
"@types/react": "17.0.13",
"@types/react-dom": "17.0.8",
"@types/react": "17.0.14",
"@types/react-dom": "17.0.9",
"@types/react-test-renderer": "17.0.1",

@@ -40,0 +41,0 @@ "react": "17.0.2",

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