Skip to content

Commit a12f6d4

Browse files
committed
chore: init with react
1 parent 6f33772 commit a12f6d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+50
-3716
lines changed

.dumirc.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import path from 'path';
33

44
export default defineConfig({
55
alias: {
6-
'rc-trigger$': path.resolve('src'),
7-
'rc-trigger/es': path.resolve('src'),
6+
'@ant-design/v5-patch-for-react-19$': path.resolve('src'),
7+
'@ant-design/v5-patch-for-react-19/es': path.resolve('src'),
88
},
99
mfsu: false,
1010
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
1111
themeConfig: {
12-
name: 'Trigger',
12+
name: 'Patch for React 19',
1313
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
1414
},
1515
styles: [

HISTORY.md

-58
This file was deleted.

README.md

+21-36
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @rc-component/trigger
1+
# @ant-design/v5-patch-for-react-19
22

33
React Trigger Component
44

@@ -9,50 +9,35 @@ React Trigger Component
99
[![bundle size][bundlephobia-image]][bundlephobia-url]
1010
[![dumi][dumi-image]][dumi-url]
1111

12-
[npm-image]: http://img.shields.io/npm/v/@rc-component/trigger.svg?style=flat-square
13-
[npm-url]: http://npmjs.org/package/@rc-component/trigger
14-
[github-actions-image]: https://github.com/react-component/trigger/workflows/CI/badge.svg
15-
[github-actions-url]: https://github.com/react-component/trigger/actions
16-
[circleci-image]: https://img.shields.io/circleci/react-component/trigger/master?style=flat-square
17-
[circleci-url]: https://circleci.com/gh/react-component/trigger
18-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/trigger/master.svg?style=flat-square
19-
[codecov-url]: https://app.codecov.io/gh/react-component/trigger
20-
[david-url]: https://david-dm.org/react-component/trigger
21-
[david-image]: https://david-dm.org/react-component/trigger/status.svg?style=flat-square
22-
[david-dev-url]: https://david-dm.org/react-component/trigger?type=dev
23-
[david-dev-image]: https://david-dm.org/react-component/trigger/dev-status.svg?style=flat-square
24-
[download-image]: https://img.shields.io/npm/dm/@rc-component/trigger.svg?style=flat-square
25-
[download-url]: https://npmjs.org/package/@rc-component/trigger
26-
[bundlephobia-url]: https://bundlephobia.com/result?p=@rc-component/trigger
27-
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/trigger
12+
[npm-image]: http://img.shields.io/npm/v/@ant-design/v5-patch-for-react-19.svg?style=flat-square
13+
[npm-url]: http://npmjs.org/package/@ant-design/v5-patch-for-react-19
14+
[github-actions-image]: https://github.com/ant-design/v5-patch-for-react-19/workflows/CI/badge.svg
15+
[github-actions-url]: https://github.com/ant-design/v5-patch-for-react-19/actions
16+
[circleci-image]: https://img.shields.io/circleci/ant-design/v5-patch-for-react-19/master?style=flat-square
17+
[circleci-url]: https://circleci.com/gh/ant-design/v5-patch-for-react-19
18+
[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/v5-patch-for-react-19/master.svg?style=flat-square
19+
[codecov-url]: https://app.codecov.io/gh/ant-design/v5-patch-for-react-19
20+
[david-url]: https://david-dm.org/ant-design/v5-patch-for-react-19
21+
[david-image]: https://david-dm.org/ant-design/v5-patch-for-react-19/status.svg?style=flat-square
22+
[david-dev-url]: https://david-dm.org/ant-design/v5-patch-for-react-19?type=dev
23+
[david-dev-image]: https://david-dm.org/ant-design/v5-patch-for-react-19/dev-status.svg?style=flat-square
24+
[download-image]: https://img.shields.io/npm/dm/@ant-design/v5-patch-for-react-19.svg?style=flat-square
25+
[download-url]: https://npmjs.org/package/@ant-design/v5-patch-for-react-19
26+
[bundlephobia-url]: https://bundlephobia.com/result?p=@ant-design/v5-patch-for-react-19
27+
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@ant-design/v5-patch-for-react-19
2828
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
2929
[dumi-url]: https://github.com/umijs/dumi
3030

3131
## Install
3232

33-
[![@rc-component/trigger](https://nodei.co/npm/@rc-component/trigger.png)](https://npmjs.org/package/@rc-component/trigger)
33+
[![@ant-design/v5-patch-for-react-19](https://nodei.co/npm/@ant-design/v5-patch-for-react-19.png)](https://npmjs.org/package/@ant-design/v5-patch-for-react-19)
3434

3535
## Usage
3636

37-
Include the default [styling](https://github.com/react-component/trigger/blob/master/assets/index.less#L4:L11) and then:
37+
Include the default [styling](https://github.com/ant-design/v5-patch-for-react-19/blob/master/assets/index.less#L4:L11) and then:
3838

3939
```js
40-
import React from 'react';
41-
import ReactDOM from 'react-dom';
42-
import Trigger from '@rc-component/trigger';
43-
44-
ReactDOM.render((
45-
<Trigger
46-
action={['click']}
47-
popup={<span>popup</span>}
48-
popupAlign={{
49-
points: ['tl', 'bl'],
50-
offset: [0, 3]
51-
}}
52-
>
53-
<a href='#'>hover</a>
54-
</Trigger>
55-
), container);
40+
import '@ant-design/v5-patch-for-react-19';
5641
```
5742

5843
## Compatibility
@@ -65,7 +50,7 @@ ReactDOM.render((
6550

6651
http://localhost:9001
6752

68-
online example: http://react-component.github.io/trigger/
53+
online example: http://ant-design.github.io/trigger/
6954

7055
## Development
7156

assets/index.less

-79
This file was deleted.

assets/index/Mask.less

-63
This file was deleted.

assets/index/Mobile.less

-25
This file was deleted.
File renamed without changes.

docs/demos/body-overflow.md

-8
This file was deleted.

docs/demos/case.md

-8
This file was deleted.

docs/demos/click-nested.md

-8
This file was deleted.

docs/demos/container.md

-8
This file was deleted.

docs/demos/inside.md

-8
This file was deleted.

docs/demos/large-popup.md

-8
This file was deleted.

0 commit comments

Comments
 (0)