Skip to content

Commit

Permalink
feat: dom-align => @rc-component/dom-align
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 13, 2023
1 parent 9fe9998 commit e35fadd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rc-align
---

React Align Component. Wrapper around https://github.com/yiminghe/dom-align.
React Align Component. Wrapper around https://github.com/react-component/dom-align.

[![NPM version][npm-image]][npm-url]
[![build status][github-actions-image]][github-actions-url]
Expand Down Expand Up @@ -78,7 +78,7 @@ will align child with target when mounted or align is changed
<td>align</td>
<td>Object</td>
<td></td>
<td>same with alignConfig from https://github.com/yiminghe/dom-align</td>
<td>same with alignConfig from https://github.com/react-component/dom-align</td>
</tr>
<tr>
<td>onAlign</td>
Expand All @@ -95,7 +95,7 @@ will align child with target when mounted or align is changed
</td>
<td>function(){return window;}</td>
<td>
a function which returned value or point is used for target from https://github.com/yiminghe/dom-align
a function which returned value or point is used for target from https://github.com/react-component/dom-align
</td>
</tr>
<tr>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"tsc": "tsc --noEmit"
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"@babel/runtime": "^7.23.2",
"classnames": "2.x",
"dom-align": "^1.7.0",
"rc-util": "^5.26.0",
"@rc-component/dom-align": "^2.0.1",
"rc-util": "^5.38.0",
"resize-observer-polyfill": "^1.5.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Align.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* - childrenProps
*/

import { alignElement, alignPoint } from 'dom-align';
import { alignElement, alignPoint } from '@rc-component/dom-align';
import isEqual from 'rc-util/lib/isEqual';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import isVisible from 'rc-util/lib/Dom/isVisible';
Expand Down

0 comments on commit e35fadd

Please sign in to comment.