react-iro-gradient-picker 2.0.2 → 2.0.3

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 CHANGED
@@ -6877,7 +6877,6 @@ var IroColorPicker = forwardRef(function (_a, ref) {
6877
6877
  var theme = detectedTheme;
6878
6878
  var isUpdatingColor = useRef(false);
6879
6879
  var _o = __read(useState(width || 200), 2), containerWidth = _o[0], setContainerWidth = _o[1];
6880
- var _p = __read(useState(true), 2), isLoading = _p[0], setIsLoading = _p[1];
6881
6880
  // Set up ResizeObserver to make the color picker responsive
6882
6881
  // Only when width prop is NOT provided (parent doesn't control width)
6883
6882
  useEffect(function () {
@@ -7036,15 +7035,12 @@ var IroColorPicker = forwardRef(function (_a, ref) {
7036
7035
  if (!colorPickerRef.current || !colorPickerRef.current.color) {
7037
7036
  throw new Error('ColorPicker was not created properly');
7038
7037
  }
7039
- // Update picker ready state and notify parent
7040
- setIsLoading(false);
7041
7038
  // Force update of imperative handle by calling onMount callback
7042
7039
  if (onMount) {
7043
7040
  setTimeout(function () { return onMount(colorPickerRef.current); }, 0);
7044
7041
  }
7045
7042
  }
7046
7043
  catch (error) {
7047
- setIsLoading(false);
7048
7044
  colorPickerRef.current = null;
7049
7045
  return null; // Return null to indicate failure
7050
7046
  }
@@ -7365,25 +7361,10 @@ var IroColorPicker = forwardRef(function (_a, ref) {
7365
7361
  minWidth: 0,
7366
7362
  overflow: 'hidden',
7367
7363
  justifyContent: 'center',
7368
- minHeight: isLoading ? width || containerWidth : 'auto',
7364
+ minHeight: 'auto',
7369
7365
  position: 'relative',
7370
7366
  backgroundColor: 'transparent'
7371
- } }, isLoading && (React.createElement("div", { style: {
7372
- position: 'absolute',
7373
- inset: 0,
7374
- display: 'flex',
7375
- alignItems: 'center',
7376
- justifyContent: 'center',
7377
- background: 'var(--colorpicker-panel-bg, #1e293b)'
7378
- } },
7379
- React.createElement("div", { style: {
7380
- width: '32px',
7381
- height: '32px',
7382
- border: '3px solid rgba(59, 130, 246, 0.3)',
7383
- borderTop: '3px solid rgb(59, 130, 246)',
7384
- borderRadius: '50%',
7385
- animation: 'spin 0.8s linear infinite'
7386
- } })))));
7367
+ } }));
7387
7368
  });
7388
7369
  IroColorPicker.displayName = 'IroColorPicker';
7389
7370