@ringcentral/juno 2.12.3 → 2.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ exports.hoverTransition = function (_a) {
12
12
  });
13
13
  };
14
14
  exports.CardHoverActionsStyle = function () {
15
- return foundation_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n "], ["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n "])), foundation_1.spacing(4), exports.hoverTransition);
15
+ return foundation_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n ", "\n z-index: 1;\n "], ["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n ",
16
+ "\n z-index: 1;\n "])), foundation_1.spacing(4), exports.hoverTransition, '' /* make sure `CardHoverActions` would not be covered by `CardActionArea` */);
16
17
  };
17
18
  var templateObject_1;
@@ -10,6 +10,7 @@ export var hoverTransition = function (_a) {
10
10
  });
11
11
  };
12
12
  export var CardHoverActionsStyle = function () {
13
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n "], ["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n "])), spacing(4), hoverTransition);
13
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n ", "\n z-index: 1;\n "], ["\n position: absolute;\n right: 0;\n top: 0;\n padding: ", ";\n transition: ", ";\n ",
14
+ "\n z-index: 1;\n "])), spacing(4), hoverTransition, '' /* make sure `CardHoverActions` would not be covered by `CardActionArea` */);
14
15
  };
15
16
  var templateObject_1;
@@ -1,4 +1,3 @@
1
- import { SyntheticEvent } from 'react';
2
1
  import { RefOrElementOrCallback } from '../../utils';
3
2
  export declare type UseEventListenerAction = {
4
3
  listen: () => void;
@@ -12,5 +11,5 @@ export declare type UseEventListenerConfig = {
12
11
  */
13
12
  startImmediately?: boolean;
14
13
  };
15
- export declare function useEventListener<T = SyntheticEvent>(target: RefOrElementOrCallback | EventTarget, key: string, callback: (event?: T) => void, config?: UseEventListenerConfig): UseEventListenerAction;
16
- export declare function useEventListener<T = SyntheticEvent>(target: RefOrElementOrCallback | EventTarget, key: string, callback: (event?: T) => void, options?: AddEventListenerOptions | boolean, config?: UseEventListenerConfig): UseEventListenerAction;
14
+ export declare function useEventListener<T = Event>(target: RefOrElementOrCallback | EventTarget, key: string, callback: (event: T) => void, config?: UseEventListenerConfig): UseEventListenerAction;
15
+ export declare function useEventListener<T = Event>(target: RefOrElementOrCallback | EventTarget, key: string, callback: (event: T) => void, options?: AddEventListenerOptions | boolean, config?: UseEventListenerConfig): UseEventListenerAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",