Skip to content

Commit 304919d

Browse files
committed
v2-beta1
1 parent c2a16d4 commit 304919d

File tree

4 files changed

+147
-111
lines changed

4 files changed

+147
-111
lines changed

examples/demos/demo1.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default class DEMO extends Component {
6767
<TriggerButton
6868
placement="bottomLeft"
6969
action="contextMenu"
70+
hideAction="mouseDown"
7071
text="action:contextMenu"
7172
popupTransition={{ classNames: animateClassNames, timeout: 300 }}
7273
/>
@@ -89,6 +90,12 @@ export default class DEMO extends Component {
8990
text="action:focus"
9091
popupTransition={{ classNames: animateClassNames, timeout: 300 }}
9192
/>
93+
<TriggerButton
94+
placement="bottomLeft"
95+
action="mouseDown"
96+
text="action:mouseDown"
97+
popupTransition={{ classNames: animateClassNames, timeout: 300 }}
98+
/>
9299
<hr />
93100
<TriggerButton placement="bottomLeft" mask text="mask" />
94101
<TriggerButton

package-lock.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-widget-trigger",
3-
"version": "1.1.3",
3+
"version": "2.0.0-beta1",
44
"description": "trigger",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -28,6 +28,7 @@
2828
},
2929
"keywords": [
3030
"react",
31+
"react-widget",
3132
"react-widget-trigger",
3233
"trigger"
3334
],
@@ -55,6 +56,7 @@
5556
"@types/enzyme": "^3.10.5",
5657
"@types/enzyme-adapter-react-16": "^1.0.6",
5758
"@types/react": "^16.9.34",
59+
"@types/react-dom": "^16.9.8",
5860
"babel-plugin-search-and-replace": "^1.0.1",
5961
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
6062
"enzyme": "^3.11.0",

0 commit comments

Comments
 (0)