@uiw/react-color-slider
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -7,5 +7,5 @@ import React from 'react'; | ||
lightness?: number[]; | ||
onChange?: (color: ColorResult) => void; | ||
onChange?: (color: ColorResult, evn: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; | ||
} | ||
declare const _default: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>; | ||
export default _default; |
@@ -34,4 +34,4 @@ "use strict"; | ||
var handleClick = function handleClick(hslStr) { | ||
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hslStringToHsva)(hslStr))); | ||
var handleClick = function handleClick(hslStr, evn) { | ||
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hslStringToHsva)(hslStr)), evn); | ||
}; | ||
@@ -56,4 +56,4 @@ | ||
}, /*#__PURE__*/_react.default.createElement("div", { | ||
onClick: function onClick() { | ||
return handleClick(colorHSL); | ||
onClick: function onClick(evn) { | ||
return handleClick(colorHSL, evn); | ||
}, | ||
@@ -74,2 +74,2 @@ style: (0, _objectSpread2.default)({ | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJzdHlsZSIsIm9uQ2hhbmdlIiwiY29sb3IiLCJsaWdodG5lc3MiLCJvdGhlciIsImhzdmEiLCJoYW5kbGVDbGljayIsImhzbFN0ciIsImRpc3BsYXkiLCJmaWx0ZXIiLCJCb29sZWFuIiwiam9pbiIsIm1hcCIsIm51bSIsImlkeCIsImNvbG9ySFNMIiwiaCIsImNoZWNrZWQiLCJwYWRkaW5nTGVmdCIsIndpZHRoIiwibGVuZ3RoIiwiYm94U2l6aW5nIiwiYmFja2dyb3VuZENvbG9yIiwiaGVpZ2h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gICAgICAgICAgICAgYmFja2dyb3VuZENvbG9yOiBjb2xvckhTTCxcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDEyLFxuICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgIC4uLihjaGVja2VkXG4gICAgICAgICAgICAgICAgICA/IHtcbiAgICAgICAgICAgICAgICAgICAgICBib3JkZXJSYWRpdXM6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoMSwgMS41KScsXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIDoge30pLFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgKTtcbiAgICAgIH0pfVxuICAgIDwvZGl2PlxuICApO1xufSk7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJzdHlsZSIsIm9uQ2hhbmdlIiwiY29sb3IiLCJsaWdodG5lc3MiLCJvdGhlciIsImhzdmEiLCJoYW5kbGVDbGljayIsImhzbFN0ciIsImV2biIsImRpc3BsYXkiLCJmaWx0ZXIiLCJCb29sZWFuIiwiam9pbiIsIm1hcCIsIm51bSIsImlkeCIsImNvbG9ySFNMIiwiaCIsImNoZWNrZWQiLCJwYWRkaW5nTGVmdCIsIndpZHRoIiwibGVuZ3RoIiwiYm94U2l6aW5nIiwiYmFja2dyb3VuZENvbG9yIiwiaGVpZ2h0IiwiY3Vyc29yIiwiYm9yZGVyUmFkaXVzIiwidHJhbnNmb3JtIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7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gICAgPlxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICBvbkNsaWNrPXsoZXZuKSA9PiBoYW5kbGVDbGljayhjb2xvckhTTCwgZXZuKX1cbiAgICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6IGNvbG9ySFNMLFxuICAgICAgICAgICAgICAgIGhlaWdodDogMTIsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLi4uKGNoZWNrZWRcbiAgICAgICAgICAgICAgICAgID8ge1xuICAgICAgICAgICAgICAgICAgICAgIGJvcmRlclJhZGl1czogMixcbiAgICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgxLCAxLjUpJyxcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgOiB7fSksXG4gICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICApO1xuICAgICAgfSl9XG4gICAgPC9kaXY+XG4gICk7XG59KTtcbiJdfQ== |
@@ -7,5 +7,5 @@ import React from 'react'; | ||
lightness?: number[]; | ||
onChange?: (color: ColorResult) => void; | ||
onChange?: (color: ColorResult, evn: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; | ||
} | ||
declare const _default: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>; | ||
export default _default; |
@@ -20,4 +20,4 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var handleClick = function handleClick(hslStr) { | ||
onChange && onChange(handleColor(hslStringToHsva(hslStr))); | ||
var handleClick = function handleClick(hslStr, evn) { | ||
onChange && onChange(handleColor(hslStringToHsva(hslStr)), evn); | ||
}; | ||
@@ -42,4 +42,4 @@ | ||
}, /*#__PURE__*/React.createElement("div", { | ||
onClick: function onClick() { | ||
return handleClick(colorHSL); | ||
onClick: function onClick(evn) { | ||
return handleClick(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csIC4uLnN0eWxlIH19XG4gICAgICBjbGFzc05hbWU9e1twcmVmaXhDbHMsIGNsYXNzTmFtZSB8fCAnJ10uZmlsdGVyKEJvb2xlYW4pLmpvaW4oJyAnKX1cbiAgICAgIHsuLi5vdGhlcn1cbiAgICA+XG4gICAgICB7bGlnaHRuZXNzLm1hcCgobnVtLCBpZHgpID0+IHtcbiAgICAgICAgY29uc3QgY29sb3JIU0wgPSBgaHNsKCR7aHN2YS5ofWRlZyA1MCUgJHtudW19JSlgO1xuICAgICAgICBjb25zdCBjaGVja2VkID0gZXF1YWxDb2xvck9iamVjdHMoaHNsU3RyaW5nVG9Ic3ZhKGNvbG9ySFNMKSwgaHN2YSk7XG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgPGRpdlxuICAgICAgICAgICAga2V5PXtpZHh9XG4gICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogMSxcbiAgICAgICAgICAgICAgd2lkdGg6IGAkezEwMCAvIGxpZ2h0bmVzcy5sZW5ndGh9JWAsXG4gICAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLFxuICAgICAgICAgICAgfX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGhhbmRsZUNsaWNrKGNvbG9ySFNMKX1cbiAgICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6IGNvbG9ySFNMLFxuICAgICAgICAgICAgICAgIGhlaWdodDogMTIsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLi4uKGNoZWNrZWRcbiAgICAgICAgICAgICAgICAgID8ge1xuICAgICAgICAgICAgICAgICAgICAgIGJvcmRlclJhZGl1czogMixcbiAgICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgxLCAxLjUpJyxcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgOiB7fSksXG4gICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICApO1xuICAgICAgfSl9XG4gICAgPC9kaXY+XG4gICk7XG59KTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJjb2xvciIsImhhbmRsZUNvbG9yIiwiaGV4VG9Ic3ZhIiwiZXF1YWxDb2xvck9iamVjdHMiLCJ2YWxpZEhleCIsImhzbFN0cmluZ1RvSHN2YSIsImZvcndhcmRSZWYiLCJwcm9wcyIsInJlZiIsInByZWZpeENscyIsImNsYXNzTmFtZSIsInN0eWxlIiwib25DaGFuZ2UiLCJsaWdodG5lc3MiLCJvdGhlciIsImhzdmEiLCJoYW5kbGVDbGljayIsImhzbFN0ciIsImV2biIsImRpc3BsYXkiLCJmaWx0ZXIiLCJCb29sZWFuIiwiam9pbiIsIm1hcCIsIm51bSIsImlkeCIsImNvbG9ySFNMIiwiaCIsImNoZWNrZWQiLCJwYWRkaW5nTGVmdCIsIndpZHRoIiwibGVuZ3RoIiwiYm94U2l6aW5nIiwiYmFja2dyb3VuZENvbG9yIiwiaGVpZ2h0IiwiY3Vyc29yIiwiYm9yZGVyUmFkaXVzIiwidHJhbnNmb3JtIl0sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBT0EsS0FBUCxNQUFrQixPQUFsQjtBQUNBLFNBRUVDLEtBQUssSUFBSUMsV0FGWCxFQUdFQyxTQUhGLEVBSUVDLGlCQUpGLEVBS0VDLFFBTEYsRUFPRUMsZUFQRixRQVFPLG9CQVJQO0FBaUJBLDRCQUFlTixLQUFLLENBQUNPLFVBQU4sQ0FBOEMsVUFBQ0MsS0FBRCxFQUFRQyxHQ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2s9eyhldm4pID0+IGhhbmRsZUNsaWNrKGNvbG9ySFNMLCBldm4pfVxuICAgICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogY29sb3JIU0wsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAxMixcbiAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAuLi4oY2hlY2tlZFxuICAgICAgICAgICAgICAgICAgPyB7XG4gICAgICAgICAgICAgICAgICAgICAgYm9yZGVyUmFkaXVzOiAyLFxuICAgICAgICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDEsIDEuNSknLFxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICA6IHt9KSxcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICk7XG4gICAgICB9KX1cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19 |
{ | ||
"name": "@uiw/react-color-slider", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Color Slider component for React.", | ||
@@ -32,4 +32,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"@babel/runtime": "7.14.6", | ||
"@uiw/color-convert": "^0.0.8", | ||
"@uiw/react-color-alpha": "^0.0.8" | ||
"@uiw/color-convert": "^0.0.9", | ||
"@uiw/react-color-alpha": "^0.0.9" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
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
21394
+ Added@uiw/color-convert@0.0.9(transitive)
+ Added@uiw/react-color-alpha@0.0.9(transitive)
+ Added@uiw/react-drag-event-interactive@0.0.9(transitive)
- Removed@uiw/color-convert@0.0.8(transitive)
- Removed@uiw/react-color-alpha@0.0.8(transitive)
- Removed@uiw/react-drag-event-interactive@0.0.8(transitive)
Updated@uiw/color-convert@^0.0.9