td-stylekit 25.4.0 → 25.5.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [25.5.0](https://github.com/treasure-data/td-stylekit/compare/v25.4.0...v25.5.0) (2022-02-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **TooltipPopover:** Expose onClickOutside property in TooltipPopover ([#1231](https://github.com/treasure-data/td-stylekit/issues/1231)) ([1e0e53f](https://github.com/treasure-data/td-stylekit/commit/1e0e53f))
|
|
7
|
+
|
|
1
8
|
# [25.4.0](https://github.com/treasure-data/td-stylekit/compare/v25.3.0...v25.4.0) (2022-02-18)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -13,7 +13,7 @@ export declare type TooltipPopoverProps = {
|
|
|
13
13
|
target: DOMContainer;
|
|
14
14
|
escClose?: boolean;
|
|
15
15
|
} & Omit<TippyProps, // https://atomiks.github.io/tippyjs/v6/all-props/
|
|
16
|
-
'allowHTML' | 'arrow' | 'animateFill' | 'content' | 'inlinePositioning' | '
|
|
16
|
+
'allowHTML' | 'arrow' | 'animateFill' | 'content' | 'inlinePositioning' | 'onHide' | 'placement' | 'plugins' | 'reference' | 'singleton' | 'visible' | 'render'>;
|
|
17
17
|
/**
|
|
18
18
|
* A popover handler built on Tippy.js.
|
|
19
19
|
* Compose with the Popover wrapper for popover content.
|
|
@@ -17,7 +17,7 @@ var _Modal = _interopRequireDefault(require("../Modal"));
|
|
|
17
17
|
|
|
18
18
|
var _useWaitForDOMRef = require("./useWaitForDOMRef");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["data-instrumentation", "arrowHidden", "children", "hideOnClick", "interactive", "onHide", "show", "showOnCreate", "target", "trigger", "escClose"];
|
|
20
|
+
var _excluded = ["data-instrumentation", "arrowHidden", "children", "hideOnClick", "interactive", "onHide", "onClickOutside", "show", "showOnCreate", "target", "trigger", "escClose"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -74,6 +74,7 @@ var TooltipPopover = function TooltipPopover(props) {
|
|
|
74
74
|
_props$interactive = props.interactive,
|
|
75
75
|
interactive = _props$interactive === void 0 ? true : _props$interactive,
|
|
76
76
|
onHide = props.onHide,
|
|
77
|
+
onClickOutside = props.onClickOutside,
|
|
77
78
|
show = props.show,
|
|
78
79
|
showOnCreate = props.showOnCreate,
|
|
79
80
|
target = props.target,
|
|
@@ -138,7 +139,8 @@ var TooltipPopover = function TooltipPopover(props) {
|
|
|
138
139
|
onHidden: function onHidden() {
|
|
139
140
|
return setMounted(false);
|
|
140
141
|
},
|
|
141
|
-
reference: triggerTarget
|
|
142
|
+
reference: triggerTarget,
|
|
143
|
+
onClickOutside: onClickOutside
|
|
142
144
|
/** Tippy is very strict about the rules of what props are allowed.
|
|
143
145
|
* An instrumentation plugin adds in `data-gs-c` and `data-gs`.
|
|
144
146
|
* By defining as tippy plugins we can make these props acceptable. */
|