Skip to content

Commit

Permalink
refactor: bump @rc-component/trigger version (#602)
Browse files Browse the repository at this point in the history
* chore: bump trigger version

* test: update snapshot
  • Loading branch information
zombieJ authored Mar 6, 2023
1 parent b92dcf8 commit 1ca5aef
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"@rc-component/trigger": "^1.5.0",
"classnames": "^2.2.1",
"rc-trigger": "^5.0.4",
"rc-util": "^5.27.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

import classNames from 'classnames';
import type { AlignType } from 'rc-trigger/lib/interface';
import type { AlignType } from '@rc-component/trigger/lib/interface';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import warning from 'rc-util/lib/warning';
import * as React from 'react';
Expand Down
4 changes: 2 additions & 2 deletions src/PickerTrigger.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import classNames from 'classnames';
import Trigger from 'rc-trigger';
import type { AlignType } from 'rc-trigger/lib/interface';
import Trigger from '@rc-component/trigger';
import type { AlignType } from '@rc-component/trigger/lib/interface';

const BUILT_IN_PLACEMENTS = {
bottomLeft: {
Expand Down
36 changes: 16 additions & 20 deletions tests/__snapshots__/range.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -133,30 +133,26 @@ exports[`Picker.Range panelRender 1`] = `
/>
</div>
</div>
<div
style="position: absolute; top: 0px; left: 0px; width: 100%;"
>
<div>
<div>
<div
class="rc-picker-dropdown rc-picker-dropdown-range rc-picker-dropdown-placement-bottomLeft"
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
>
<div
class="rc-picker-dropdown rc-picker-dropdown-range"
style="opacity: 0;"
class="rc-picker-range-wrapper rc-picker-date-range-wrapper"
style="min-width: 0;"
>
<div
class="rc-picker-range-wrapper rc-picker-date-range-wrapper"
style="min-width: 0;"
class="rc-picker-range-arrow"
style="left: 0px;"
/>
<div
class="rc-picker-panel-container"
style="margin-left: 0px;"
>
<div
class="rc-picker-range-arrow"
style="left: 0px;"
/>
<div
class="rc-picker-panel-container"
style="margin-left: 0px;"
>
<h1>
Light
</h1>
</div>
<h1>
Light
</h1>
</div>
</div>
</div>
Expand Down

0 comments on commit 1ca5aef

Please sign in to comment.