react-best-gradient-color-picker
Advanced tools
Comparing version 3.0.7-beta.2 to 3.0.7-beta.3
@@ -90,2 +90,3 @@ "use strict"; | ||
cursor: 'ew-resize', | ||
boxSizing: 'border-box', | ||
}, onMouseDown: handleDown }), | ||
@@ -92,0 +93,0 @@ react_1.default.createElement("canvas", { ref: barRef, height: "14px", width: `${squareWidth}px`, onClick: (e) => handleClick(e), style: { position: 'relative', borderRadius: 14, verticalAlign: 'top' } }))); |
@@ -39,3 +39,3 @@ "use strict"; | ||
const contRef = (0, react_1.useRef)(null); | ||
return (react_1.default.createElement("div", { ref: contRef, className: className, style: { ...style, boxSizing: 'border-box', width: width } }, | ||
return (react_1.default.createElement("div", { ref: contRef, className: className, style: { ...style, width: width } }, | ||
react_1.default.createElement(context_js_1.default, { value: safeValue, classes: core_module_css_1.default, onChange: onChange, squareWidth: width, squareHeight: height, hideOpacity: hideOpacity }, | ||
@@ -42,0 +42,0 @@ react_1.default.createElement(Picker_js_1.default, { hideControls: hideControls, hideInputs: hideInputs, hidePresets: hidePresets, hideOpacity: hideOpacity, hideHue: hideHue, presets: presets, hideEyeDrop: hideEyeDrop, hideAdvancedSliders: hideAdvancedSliders, hideColorGuide: hideColorGuide, hideInputType: hideInputType, hideColorTypeBtns: hideColorTypeBtns, hideGradientType: hideGradientType, hideGradientAngle: hideGradientAngle, hideGradientStop: hideGradientStop, hideGradientControls: hideGradientControls, locales: locales })))); |
@@ -62,2 +62,3 @@ import React, { useRef, useState, useEffect } from 'react'; | ||
cursor: 'ew-resize', | ||
boxSizing: 'border-box', | ||
}, onMouseDown: handleDown }), | ||
@@ -64,0 +65,0 @@ React.createElement("canvas", { ref: barRef, height: "14px", width: `${squareWidth}px`, onClick: (e) => handleClick(e), style: { position: 'relative', borderRadius: 14, verticalAlign: 'top' } }))); |
@@ -10,5 +10,5 @@ import React, { useRef } from 'react'; | ||
const contRef = useRef(null); | ||
return (React.createElement("div", { ref: contRef, className: className, style: { ...style, boxSizing: 'border-box', width: width } }, | ||
return (React.createElement("div", { ref: contRef, className: className, style: { ...style, width: width } }, | ||
React.createElement(PickerContextWrapper, { value: safeValue, classes: coreCss, onChange: onChange, squareWidth: width, squareHeight: height, hideOpacity: hideOpacity }, | ||
React.createElement(Picker, { hideControls: hideControls, hideInputs: hideInputs, hidePresets: hidePresets, hideOpacity: hideOpacity, hideHue: hideHue, presets: presets, hideEyeDrop: hideEyeDrop, hideAdvancedSliders: hideAdvancedSliders, hideColorGuide: hideColorGuide, hideInputType: hideInputType, hideColorTypeBtns: hideColorTypeBtns, hideGradientType: hideGradientType, hideGradientAngle: hideGradientAngle, hideGradientStop: hideGradientStop, hideGradientControls: hideGradientControls, locales: locales })))); | ||
} |
{ | ||
"name": "react-best-gradient-color-picker", | ||
"version": "3.0.7-beta.2", | ||
"version": "3.0.7-beta.3", | ||
"description": "An easy to use color/gradient picker for React.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
374610
9937