Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useColorDrag from '../hooks/useColorDrag';
import type { BaseColorPickerProps, TransformOffset } from '../interface';
import { calcOffset, calculateColor } from '../util';

import { useEvent } from 'rc-util';
import { useEvent } from '@rc-component/util';
import Handler from './Handler';
import Palette from './Palette';
import Transform from './Transform';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import useColorDrag from '../hooks/useColorDrag';
import type { HsbaColorType, TransformOffset } from '../interface';
import Palette from './Palette';

import { useEvent } from '@rc-component/util';
import classNames from 'classnames';
import { useEvent } from 'rc-util';
import { Color } from '../color';
import { calcOffset, calculateColor } from '../util';
import Gradient from './Gradient';
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useColorState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useMergedState } from 'rc-util';
import { useMergedState } from '@rc-component/util';
import { useMemo } from 'react';
import type { Color } from '../color';
import type { ColorGenInput } from '../interface';
Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-loop-func */
import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook';
import { act, createEvent, fireEvent, render } from '@testing-library/react';
import { spyElementPrototypes } from 'rc-util/lib/test/domHook';
import React, { useState } from 'react';
import { expect } from 'vitest';
import ColorPicker, { Color } from '../src';
Expand Down