@uiw/react-color-material
Advanced tools
Comparing version 0.0.1 to 0.0.14
@@ -59,10 +59,12 @@ "use strict"; | ||
var handleChange = function handleChange(value, type) { | ||
var handleChange = function handleChange(value, type, evn) { | ||
if (typeof value === 'number') { | ||
if (value > 255) value = 255; | ||
if (value > 255) { | ||
value = 255; | ||
evn.target.value = '255'; | ||
} | ||
if (type === 'a') { | ||
onChange && onChange((0, _colorConvert.color)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, hsva), {}, { | ||
a: value / 100 | ||
}))); | ||
if (value < 0) { | ||
value = 0; | ||
evn.target.value = '0'; | ||
} | ||
@@ -94,4 +96,13 @@ | ||
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)({ | ||
ref: ref, | ||
className: [prefixCls, className || ''].filter(Boolean).join(' '), | ||
style: (0, _objectSpread2.default)({ | ||
@@ -106,4 +117,11 @@ padding: 16, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'hex'); | ||
return handleChange(val, 'hex', evn); | ||
}, | ||
onBlur: function onBlur(evn) { | ||
var value = evn.target.value; | ||
if (value.length > 6) { | ||
evn.target.value = value.slice(0, 6); | ||
} | ||
}, | ||
inputStyle: { | ||
@@ -133,4 +151,5 @@ outline: 0, | ||
inputStyle: (0, _objectSpread2.default)({}, styleRBG), | ||
onBlur: handleBlur, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'r'); | ||
return handleChange(val, 'r', evn); | ||
}, | ||
@@ -145,4 +164,5 @@ style: { | ||
inputStyle: (0, _objectSpread2.default)({}, styleRBG), | ||
onBlur: handleBlur, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'g'); | ||
return handleChange(val, 'g', evn); | ||
}, | ||
@@ -158,4 +178,5 @@ style: { | ||
inputStyle: (0, _objectSpread2.default)({}, styleRBG), | ||
onBlur: handleBlur, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'b'); | ||
return handleChange(val, 'b', evn); | ||
}, | ||
@@ -171,2 +192,2 @@ style: { | ||
exports.default = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsic3R5bGVSQkciLCJib3hTaGFkb3ciLCJib3JkZXJXaWR0aCIsImJvcmRlckJvdHRvbUNvbG9yIiwiYm9yZGVyQm90dG9tU3R5bGUiLCJoZWlnaHQiLCJvdXRsaW5lIiwiZm9udFNpemUiLCJwYWRkaW5nIiwiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJzdHlsZSIsImNvbG9yIiwib25DaGFuZ2UiLCJvdGhlciIsImhzdmEiLCJyZ2JhIiwiaGV4IiwicmVwbGFjZSIsImhhbmRsZUNoYW5nZSIsInZhbHVlIiwidHlwZSIsImEiLCJyIiwiZyIsImIiLCJ0ZXN0IiwiU3RyaW5nIiwibGVuZ3RoIiwid2lkdGgiLCJmb250RmFtaWx5IiwidG9Mb2NhbGVVcHBlckNhc2UiLCJldm4iLCJ2YWwiLCJib3JkZXIiLCJmbGV4RGlyZWN0aW9uIiwiYWxpZ25JdGVtcyIsImRpc3BsYXkiLCJtYXJnaW5Ub3AiLCJtYXJnaW5MZWZ0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBR0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFGQTs7O0FBVUEsSUFBTUEsUUFBNkIsR0FBRztBQUNwQ0MsRUFBQUEsU0FBUyxFQUFFLFNBRHlCO0FBRXBDQyxFQUFBQSxXQUFXLEVBQUUsV0FGdUI7QUFHcENDLEVBQUFBLGlCQU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Y9e3JlZn0gc3R5bGU9e3sgcGFkZGluZzogMTYsIHdpZHRoOiA5OCwgZm9udEZhbWlseTogJ1JvYm90bycsIC4uLnN0eWxlIH19IHsuLi5vdGhlcn0+XG4gICAgICA8RWRpdGFibGVJbnB1dFxuICAgICAgICBsYWJlbD1cIkhleFwiXG4gICAgICAgIHZhbHVlPXtoZXgudG9Mb2NhbGVVcHBlckNhc2UoKX1cbiAgICAgICAgb25DaGFuZ2U9eyhldm4sIHZhbCkgPT4gaGFuZGxlQ2hhbmdlKHZhbCwgJ2hleCcpfVxuICAgICAgICBpbnB1dFN0eWxlPXt7XG4gICAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgICAgaGVpZ2h0OiAzMCxcbiAgICAgICAgICBmb250U2l6ZTogMTUsXG4gICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICBib3hTaGFkb3c6ICdpbml0aWFsJyxcbiAgICAgICAgICBib3JkZXJXaWR0aDogJzAgMCAycHggMCcsXG4gICAgICAgICAgYm9yZGVyQm90dG9tQ29sb3I6IGhleCA/IGAjJHtoZXh9YCA6ICcjZWVlJyxcbiAgICAgICAgICBib3JkZXJCb3R0b21TdHlsZTogJ3NvbGlkJyxcbiAgICAgICAgfX1cbiAgICAgICAgc3R5bGU9e3sgZmxleERpcmVjdGlvbjogJ2NvbHVtbi1yZXZlcnNlJywgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnIH19XG4gICAgICAvPlxuICAgICAgPGRpdiBzdHlsZT17eyBkaXNwbGF5OiAnZmxleCcsIG1hcmdpblRvcDogMTEgfX0+XG4gICAgICAgIDxFZGl0YWJsZUlucHV0XG4gICAgICAgICAgbGFiZWw9XCJSXCJcbiAgICAgICAgICB2YWx1ZT17cmdiYS5yIHx8IDB9XG4gICAgICAgICAgaW5wdXRTdHlsZT17e1xuICAgICAgICAgICAgLi4uc3R5bGVSQkcsXG4gICAgICAgICAgfX1cbiAgICAgICAgICBvbkNoYW5nZT17KGV2biwgdmFsKSA9PiBoYW5kbGVDaGFuZ2UodmFsLCAncicpfVxuICAgICAgICAgIHN0eWxlPXt7IGZsZXhEaXJlY3Rpb246ICdjb2x1bW4tcmV2ZXJzZScsIGFsaWduSXRlbXM6ICdmbGV4LXN0YXJ0JyB9fVxuICAgICAgICAvPlxuICAgICAgICA8RWRpdGFibGVJbnB1dFxuICAgICAgICAgIGxhYmVsPVwiR1wiXG4gICAgICAgICAgdmFsdWU9e3JnYmEuZyB8fCAwfVxuICAgICAgICAgIGlucHV0U3R5bGU9e3tcbiAgICAgICAgICAgIC4uLnN0eWxlUkJHLFxuICAgICAgICAgIH19XG4gICAgICAgICAgb25DaGFuZ2U9eyhldm4sIHZhbCkgPT4gaGFuZGxlQ2hhbmdlKHZhbCwgJ2cnKX1cbiAgICAgICAgICBzdHlsZT17eyBtYXJnaW5MZWZ0OiA1LCBmbGV4RGlyZWN0aW9uOiAnY29sdW1uLXJldmVyc2UnLCBhbGlnbkl0ZW1zOiAnZmxleC1zdGFydCcgfX1cbiAgICAgICAgLz5cbiAgICAgICAgPEVkaXRhYmxlSW5wdXRcbiAgICAgICAgICBsYWJlbD1cIkJcIlxuICAgICAgICAgIHZhbHVlPXtyZ2JhLmIgfHwgMH1cbiAgICAgICAgICBpbnB1dFN0eWxlPXt7XG4gICAgICAgICAgICAuLi5zdHlsZVJCRyxcbiAgICAgICAgICB9fVxuICAgICAgICAgIG9uQ2hhbmdlPXsoZXZuLCB2YWwpID0+IGhhbmRsZUNoYW5nZSh2YWwsICdiJyl9XG4gICAgICAgICAgc3R5bGU9e3sgbWFyZ2luTGVmdDogNSwgZmxleERpcmVjdGlvbjogJ2NvbHVtbi1yZXZlcnNlJywgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnIH19XG4gICAgICAgIC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8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0eWxlUkJHLFxuICAgICAgICAgIH19XG4gICAgICAgICAgb25CbHVyPXtoYW5kbGVCbHVyfVxuICAgICAgICAgIG9uQ2hhbmdlPXsoZXZuLCB2YWwpID0+IGhhbmRsZUNoYW5nZSh2YWwsICdnJywgZXZuKX1cbiAgICAgICAgICBzdHlsZT17eyBtYXJnaW5MZWZ0OiA1LCBmbGV4RGlyZWN0aW9uOiAnY29sdW1uLXJldmVyc2UnLCBhbGlnbkl0ZW1zOiAnZmxleC1zdGFydCcgfX1cbiAgICAgICAgLz5cbiAgICAgICAgPEVkaXRhYmxlSW5wdXRcbiAgICAgICAgICBsYWJlbD1cIkJcIlxuICAgICAgICAgIHZhbHVlPXtyZ2JhLmIgfHwgMH1cbiAgICAgICAgICBpbnB1dFN0eWxlPXt7XG4gICAgICAgICAgICAuLi5zdHlsZVJCRyxcbiAgICAgICAgICB9fVxuICAgICAgICAgIG9uQmx1cj17aGFuZGxlQmx1cn1cbiAgICAgICAgICBvbkNoYW5nZT17KGV2biwgdmFsKSA9PiBoYW5kbGVDaGFuZ2UodmFsLCAnYicsIGV2bil9XG4gICAgICAgICAgc3R5bGU9e3sgbWFyZ2luTGVmdDogNSwgZmxleERpcmVjdGlvbjogJ2NvbHVtbi1yZXZlcnNlJywgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnIH19XG4gICAgICAgIC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19 |
@@ -32,10 +32,12 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var handleChange = function handleChange(value, type) { | ||
var handleChange = function handleChange(value, type, evn) { | ||
if (typeof value === 'number') { | ||
if (value > 255) value = 255; | ||
if (value > 255) { | ||
value = 255; | ||
evn.target.value = '255'; | ||
} | ||
if (type === 'a') { | ||
onChange && onChange(handleColor(_objectSpread(_objectSpread({}, hsva), {}, { | ||
a: value / 100 | ||
}))); | ||
if (value < 0) { | ||
value = 0; | ||
evn.target.value = '0'; | ||
} | ||
@@ -67,4 +69,13 @@ | ||
function handleBlur(evn) { | ||
var value = Number(evn.target.value); | ||
if (value && value > 255) { | ||
evn.target.value = '255'; | ||
} | ||
} | ||
return /*#__PURE__*/React.createElement("div", _extends({ | ||
ref: ref, | ||
className: [prefixCls, className || ''].filter(Boolean).join(' '), | ||
style: _objectSpread({ | ||
@@ -79,4 +90,11 @@ padding: 16, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'hex'); | ||
return handleChange(val, 'hex', evn); | ||
}, | ||
onBlur: function onBlur(evn) { | ||
var value = evn.target.value; | ||
if (value.length > 6) { | ||
evn.target.value = value.slice(0, 6); | ||
} | ||
}, | ||
inputStyle: { | ||
@@ -106,4 +124,5 @@ outline: 0, | ||
inputStyle: _objectSpread({}, styleRBG), | ||
onBlur: handleBlur, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'r'); | ||
return handleChange(val, 'r', evn); | ||
}, | ||
@@ -118,4 +137,5 @@ style: { | ||
inputStyle: _objectSpread({}, styleRBG), | ||
onBlur: handleBlur, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'g'); | ||
return handleChange(val, 'g', evn); | ||
}, | ||
@@ -131,4 +151,5 @@ style: { | ||
inputStyle: _objectSpread({}, styleRBG), | ||
onBlur: handleBlur, | ||
onChange: function onChange(evn, val) { | ||
return handleChange(val, 'b'); | ||
return handleChange(val, 'b', evn); | ||
}, | ||
@@ -142,2 +163,2 @@ style: { | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJjb2xvciIsImhhbmRsZUNvbG9yIiwidmFsaWRIZXgiLCJyZ2JhVG9Ic3ZhIiwiaGV4VG9Ic3ZhIiwiaHN2YVRvUmdiYSIsImhzdmFUb0hleCIsIkVkaXRhYmxlSW5wdXQiLCJzdHlsZVJCRyIsImJ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2UodmFsLCAnaGV4JywgZXZuKX1cbiAgICAgICAgb25CbHVyPXsoZXZuKSA9PiB7XG4gICAgICAgICAgY29uc3QgdmFsdWUgPSBldm4udGFyZ2V0LnZhbHVlO1xuICAgICAgICAgIGlmICh2YWx1ZS5sZW5ndGggPiA2KSB7XG4gICAgICAgICAgICBldm4udGFyZ2V0LnZhbHVlID0gdmFsdWUuc2xpY2UoMCwgNik7XG4gICAgICAgICAgfVxuICAgICAgICB9fVxuICAgICAgICBpbnB1dFN0eWxlPXt7XG4gICAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgICAgaGVpZ2h0OiAzMCxcbiAgICAgICAgICBmb250U2l6ZTogMTUsXG4gICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICBib3hTaGFkb3c6ICdpbml0aWFsJyxcbiAgICAgICAgICBib3JkZXJXaWR0aDogJzAgMCAycHggMCcsXG4gICAgICAgICAgYm9yZGVyQm90dG9tQ29sb3I6IGhleCA/IGAjJHtoZXh9YCA6ICcjZWVlJyxcbiAgICAgICAgICBib3JkZXJCb3R0b21TdHlsZTogJ3NvbGlkJyxcbiAgICAgICAgfX1cbiAgICAgICAgc3R5bGU9e3sgZmxleERpcmVjdGlvbjogJ2NvbHVtbi1yZXZlcnNlJywgYWxpZ25JdGVtczogJ2ZsZXgtc3RhcnQnIH19XG4gICAgICAvPlxuICAgICAgPGRpdiBzdHlsZT17eyBkaXNwbGF5OiAnZmxleCcsIG1hcmdpblRvcDogMTEgfX0+XG4gICAgICAgIDxFZGl0YWJsZUlucHV0XG4gICAgICAgICAgbGFiZWw9XCJSXCJcbiAgICAgICAgICB2YWx1ZT17cmdiYS5yIHx8IDB9XG4gICAgICAgICAgaW5wdXRTdHlsZT17e1xuICAgICAgICAgICAgLi4uc3R5bGVSQkcsXG4gICAgICAgICAgfX1cbiAgICAgICAgICBvbkJsdXI9e2hhbmRsZUJsdXJ9XG4gICAgICAgICAgb25DaGFu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+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19 |
{ | ||
"name": "@uiw/react-color-material", | ||
"version": "0.0.1", | ||
"version": "0.0.14", | ||
"description": "Color Material", | ||
"author": "Kenny Wong <wowohoo@qq.com>", | ||
"homepage": "https://uiwjs.github.io/react-color/#react-color-material", | ||
"main": "lib/cjs/index.js", | ||
@@ -31,4 +32,4 @@ "module": "lib/esm/index.js", | ||
"@babel/runtime": "7.14.6", | ||
"@uiw/color-convert": "^0.0.10", | ||
"@uiw/react-color-editable-input": "^0.0.10" | ||
"@uiw/color-convert": "^0.0.14", | ||
"@uiw/react-color-editable-input": "^0.0.14" | ||
}, | ||
@@ -35,0 +36,0 @@ "devDependencies": { |
@@ -6,3 +6,3 @@ React Color Material | ||
![image](https://user-images.githubusercontent.com/1680273/124278948-7d05f400-db79-11eb-9358-e290a0b636a2.png) | ||
![react-color-material](https://user-images.githubusercontent.com/1680273/125121610-c1b7ff00-e126-11eb-8928-0b2817f07e1a.png) | ||
@@ -21,8 +21,8 @@ ## Install | ||
function Demo() { | ||
const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); | ||
const [hex, setHex] = useState("#fff"); | ||
return ( | ||
<Material | ||
hsva={hsva} | ||
onChange={(newColor) => { | ||
setHsva({ ...hsva, ...newColor, a: hsva.a }); | ||
color={hex} | ||
onChange={(color) => { | ||
setHex(color.hex); | ||
}} | ||
@@ -37,9 +37,8 @@ /> | ||
```ts | ||
import { HsvaColor } from '@uiw/color-convert'; | ||
import { HsvaColor, ColorResult } from '@uiw/color-convert'; | ||
interface SaturationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> { | ||
interface MaterialProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> { | ||
prefixCls?: string; | ||
/** hsva => `{ h: 0, s: 75, v: 82, a: 1 }` */ | ||
hsva: HsvaColor; | ||
onChange?: (newColor: HsvaColor) => void; | ||
color?: string | HsvaColor; | ||
onChange?: (color: ColorResult) => void; | ||
} | ||
@@ -46,0 +45,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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
43242
461
1
49
+ Added@uiw/color-convert@0.0.14(transitive)
+ Added@uiw/react-color-editable-input@0.0.14(transitive)
- Removed@uiw/color-convert@0.0.10(transitive)
- Removed@uiw/react-color-editable-input@0.0.10(transitive)
Updated@uiw/color-convert@^0.0.14