react-iro-gradient-picker 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +0 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8382,12 +8382,10 @@ var IroGradient = function (_a) {
|
|
|
8382
8382
|
};
|
|
8383
8383
|
// Update iro picker when color is selected from default colors panel
|
|
8384
8384
|
var handleColorFromPanel = function (newColor) {
|
|
8385
|
-
console.log('handleColorFromPanel called with:', newColor);
|
|
8386
8385
|
// Ensure the gradient CSS string is properly set
|
|
8387
8386
|
if ((newColor === null || newColor === void 0 ? void 0 : newColor.stops) && !newColor.gradient) {
|
|
8388
8387
|
// Reconstruct the gradient string if missing
|
|
8389
8388
|
newColor.gradient = getGradient(newColor.type || 'linear', newColor.stops, newColor.modifier || 90, format, showAlpha);
|
|
8390
|
-
console.log('Reconstructed gradient:', newColor.gradient);
|
|
8391
8389
|
}
|
|
8392
8390
|
setColor(newColor);
|
|
8393
8391
|
if (newColor === null || newColor === void 0 ? void 0 : newColor.stops) {
|
|
@@ -8399,7 +8397,6 @@ var IroGradient = function (_a) {
|
|
|
8399
8397
|
loc: newColor.stops[newColor.stops.length - 1][1],
|
|
8400
8398
|
index: newColor.stops.length - 1
|
|
8401
8399
|
};
|
|
8402
|
-
console.log('Setting activeColor to:', newActiveColor);
|
|
8403
8400
|
setActiveColor(newActiveColor);
|
|
8404
8401
|
// Note: useEffect will handle iro picker update automatically when activeColor changes
|
|
8405
8402
|
}
|