@xfers/design-system 3.1.25 → 3.1.26

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.
@@ -3,28 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
4
  return cooked;
5
5
  };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
6
  Object.defineProperty(exports, "__esModule", { value: true });
29
7
  var react_1 = require("react");
30
8
  var tooltip_1 = require("antd/es/tooltip");
@@ -37,14 +15,8 @@ var TypographyStyles_1 = require("src/shared/TypographyStyles");
37
15
  var ColorStyles_1 = require("src/shared/ColorStyles");
38
16
  var theme_1 = require("src/theme/theme");
39
17
  var Typography_1 = require("../Typography");
40
- var defaultOverlayStyle = emotion_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n max-width: 200px;\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ", ";\n }\n\n ", " {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ", ";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"], ["\n max-width: 200px;\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ", ";\n }\n\n ", " {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ", ";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"])), fontStyles_1.MAIN_FONT, TypographyStyles_1.FONT_SIZE.P1, TypographyStyles_1.FONT_WEIGHT.REGULAR, theme_1.straitsXTheme.text.white, theme_1.straitsXTheme.brand.primary.contrast, breakPoints_1.DESKTOP_BREAKPOINT, theme_1.straitsXTheme.brand.primary.contrast);
41
- var Container = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n line-height: 22px;\n"], ["\n line-height: 22px;\n"])));
42
- var FooterContainer = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-top: 24px;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin-left: 20px;\n }\n"], ["\n margin-top: 24px;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin-left: 20px;\n }\n"])));
43
- var Badge = styled_1.default.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n margin-left: 8px;\n padding: 2px 6px;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n border-radius: 4px;\n"], ["\n display: inline-block;\n margin-left: 8px;\n padding: 2px 6px;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n border-radius: 4px;\n"])), ColorStyles_1.GREEN_COLORS.G400, theme_1.straitsXTheme.text.white, TypographyStyles_1.FONT_SIZE.SMALL, TypographyStyles_1.FONT_WEIGHT.BOLD);
44
- var ActionButton = styled_1.default.a(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"], ["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"])), TypographyStyles_1.FONT_WEIGHT.BOLD, theme_1.straitsXTheme.brand.action.default, theme_1.straitsXTheme.brand.action.hover);
45
- var DismissButton = styled_1.default.a(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"], ["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"])), TypographyStyles_1.FONT_WEIGHT.BOLD, theme_1.straitsXTheme.text.white, theme_1.straitsXTheme.text.white);
46
18
  function default_1(_a) {
47
- var children = _a.children, _b = _a.placement, placement = _b === void 0 ? 'bottomRight' : _b, _c = _a.overlayClassName, overlayClassName = _c === void 0 ? defaultOverlayStyle : _c, _d = _a.arrowPointAtCenter, arrowPointAtCenter = _d === void 0 ? true : _d, color = _a.color, title = _a.title, content = _a.content, _e = _a.mouseEnterDelay, mouseEnterDelay = _e === void 0 ? 0 : _e, _f = _a.mouseLeaveDelay, mouseLeaveDelay = _f === void 0 ? 0 : _f, _g = _a.isNew, isNew = _g === void 0 ? false : _g, actionTitle = _a.actionTitle, dismissTitle = _a.dismissTitle, onAction = _a.onAction, onDismiss = _a.onDismiss, rest = __rest(_a, ["children", "placement", "overlayClassName", "arrowPointAtCenter", "color", "title", "content", "mouseEnterDelay", "mouseLeaveDelay", "isNew", "actionTitle", "dismissTitle", "onAction", "onDismiss"]);
19
+ var children = _a.children, _b = _a.placement, placement = _b === void 0 ? 'bottomRight' : _b, _c = _a.overlayClassName, overlayClassName = _c === void 0 ? defaultOverlayStyle : _c, _d = _a.arrowPointAtCenter, arrowPointAtCenter = _d === void 0 ? true : _d, _e = _a.trigger, trigger = _e === void 0 ? 'hover' : _e, color = _a.color, title = _a.title, content = _a.content, _f = _a.mouseEnterDelay, mouseEnterDelay = _f === void 0 ? 0 : _f, _g = _a.mouseLeaveDelay, mouseLeaveDelay = _g === void 0 ? 0 : _g, _h = _a.isNew, isNew = _h === void 0 ? false : _h, actionTitle = _a.actionTitle, dismissTitle = _a.dismissTitle, maxWidth = _a.maxWidth, onAction = _a.onAction, onDismiss = _a.onDismiss;
48
20
  var onDismissButtonClick = function (e) {
49
21
  e.preventDefault();
50
22
  if (onDismiss) {
@@ -57,7 +29,8 @@ function default_1(_a) {
57
29
  onAction();
58
30
  }
59
31
  };
60
- return (react_1.default.createElement(tooltip_1.default, __assign({ overlayClassName: overlayClassName, arrowPointAtCenter: arrowPointAtCenter, color: color, placement: placement, title: react_1.default.createElement(Container, null,
32
+ var overlayStyle = maxWidth ? { maxWidth: maxWidth } : undefined;
33
+ return (react_1.default.createElement(tooltip_1.default, { overlayClassName: overlayClassName, arrowPointAtCenter: arrowPointAtCenter, trigger: trigger, color: color, placement: placement, overlayStyle: overlayStyle, title: react_1.default.createElement(Container, null,
61
34
  title && (react_1.default.createElement(Typography_1.P1Bold, { style: {
62
35
  fontSize: TypographyStyles_1.FONT_SIZE.P1,
63
36
  marginBottom: '16px',
@@ -68,8 +41,14 @@ function default_1(_a) {
68
41
  content,
69
42
  (actionTitle || dismissTitle) && (react_1.default.createElement(FooterContainer, null,
70
43
  react_1.default.createElement(DismissButton, { onClick: onDismissButtonClick }, dismissTitle),
71
- react_1.default.createElement(ActionButton, { onClick: onActionButtonClick }, actionTitle)))), mouseEnterDelay: mouseEnterDelay, mouseLeaveDelay: mouseLeaveDelay }, rest), children));
44
+ react_1.default.createElement(ActionButton, { onClick: onActionButtonClick }, actionTitle)))), mouseEnterDelay: mouseEnterDelay, mouseLeaveDelay: mouseLeaveDelay }, children));
72
45
  }
73
46
  exports.default = default_1;
47
+ var defaultOverlayStyle = emotion_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n max-width: 200px;\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ", ";\n }\n\n ", " {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ", ";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"], ["\n max-width: 200px;\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ", ";\n }\n\n ", " {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ", ";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n\n &.ant-tooltip-placement-topRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-top .ant-tooltip-arrow {\n bottom: -3px;\n }\n &.ant-tooltip-placement-bottomRight .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n &.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n top: -3px;\n }\n &.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-right .ant-tooltip-arrow {\n left: -3px;\n }\n &.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,\n &.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n &.ant-tooltip-placement-left .ant-tooltip-arrow {\n right: -3px;\n }\n"])), fontStyles_1.MAIN_FONT, TypographyStyles_1.FONT_SIZE.P1, TypographyStyles_1.FONT_WEIGHT.REGULAR, theme_1.straitsXTheme.text.white, theme_1.straitsXTheme.brand.primary.contrast, breakPoints_1.DESKTOP_BREAKPOINT, theme_1.straitsXTheme.brand.primary.contrast);
48
+ var Container = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n line-height: 22px;\n"], ["\n line-height: 22px;\n"])));
49
+ var FooterContainer = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"], ["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"])));
50
+ var Badge = styled_1.default.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n border-radius: 4px;\n"], ["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n border-radius: 4px;\n"])), ColorStyles_1.GREEN_COLORS.G400, theme_1.straitsXTheme.text.white, TypographyStyles_1.FONT_SIZE.SMALL, TypographyStyles_1.FONT_WEIGHT.BOLD);
51
+ var ActionButton = styled_1.default.a(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"], ["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"])), TypographyStyles_1.FONT_WEIGHT.BOLD, theme_1.straitsXTheme.brand.action.default, theme_1.straitsXTheme.brand.action.hover);
52
+ var DismissButton = styled_1.default.a(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"], ["\n font-weight: ", ";\n color: ", ";\n &:hover {\n color: ", ";\n }\n"])), TypographyStyles_1.FONT_WEIGHT.BOLD, theme_1.straitsXTheme.text.white, theme_1.straitsXTheme.text.white);
74
53
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
75
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAyB;AACzB,2CAAqC;AACrC,qCAAkC;AAElC,0CAAoC;AACpC,mCAA6B;AAC7B,yDAA8D;AAC9D,uDAAoD;AACpD,gEAAoE;AACpE,sDAAqD;AACrD,yCAA+C;AAC/C,4CAAsC;AAkCtC,IAAM,mBAAmB,GAAG,aAAG,mzCAAA,wCAEd,EAAS,kBACX,EAAY,oBACV,EAAmB,cACzB,EAAwB,8IAOX,EAAoC,cAGxD,EAAkB,6JASI,EAAoC,60BA2B7D,KAjDgB,sBAAS,EACX,4BAAS,CAAC,EAAE,EACV,8BAAW,CAAC,OAAO,EACzB,qBAAa,CAAC,IAAI,CAAC,KAAK,EAOX,qBAAa,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAGxD,gCAAkB,EASI,qBAAa,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CA2B7D,CAAA;AACD,IAAM,SAAS,GAAG,gBAAM,CAAC,GAAG,6FAAA,0BAE3B,IAAA,CAAA;AACD,IAAM,eAAe,GAAG,gBAAM,CAAC,GAAG,kLAAA,+GAQjC,IAAA,CAAA;AACD,IAAM,KAAK,GAAG,gBAAM,CAAC,IAAI,uPAAA,4FAIH,EAAiB,cAC5B,EAAwB,kBACpB,EAAe,oBACb,EAAgB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AAmB,GAAG,UAAC,CAAsC;QACjE,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,IAAI,QAAQ,EAAE;YACZ,QAAQ,EAAE,CAAA;SACX;IACH,CAAC,CAAA;IAED,OAAO,CACL,8BAAC,iBAAO,aACN,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,KAAK,EACH,8BAAC,SAAS;YACP,KAAK,IAAI,CACR,8BAAC,mBAAM,IACL,KAAK,EAAE;oBACL,QAAQ,EAAE,4BAAS,CAAC,EAAE;oBACtB,YAAY,EAAE,MAAM;oBACpB,KAAK,EAAE,qBAAa,CAAC,IAAI,CAAC,KAAK;iBAChC;gBAEA,KAAK;gBACL,KAAK,KAAK,IAAI,IAAI,8BAAC,KAAK,cAAY,CAC9B,CACV;YACA,OAAO;YACP,CAAC,WAAW,IAAI,YAAY,CAAC,IAAI,CAChC,8BAAC,eAAe;gBACd,8BAAC,aAAa,IAAC,OAAO,EAAE,oBAAoB,IACzC,YAAY,CACC;gBAChB,8BAAC,YAAY,IAAC,OAAO,EAAE,mBAAmB,IACvC,WAAW,CACC,CACC,CACnB,CACS,EAEd,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,eAAe,IAC5B,IAAI,GAEP,QAAQ,CACD,CACX,CAAA;AACH,CAAC;AAtED,4BAsEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+BAAyB;AACzB,2CAAqC;AACrC,qCAAkC;AAElC,0CAAoC;AACpC,mCAA6B;AAC7B,yDAA8D;AAC9D,uDAAoD;AACpD,gEAAoE;AACpE,sDAAqD;AACrD,yCAA+C;AAC/C,4CAAsC;AAiCtC,mBAAwB,EAiBhB;QAhBN,QAAQ,cAAA,EACR,iBAAyB,EAAzB,SAAS,mBAAG,aAAa,KAAA,EACzB,wBAAsC,EAAt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,qBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAEhC,qBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAE5C,CAAA;AACD,IAAM,aAAa,GAAG,gBAAM,CAAC,CAAC,iJAAA,mBACb,EAAgB,cACtB,EAAwB,6BAEtB,EAAwB,UAEpC,KALgB,8BAAW,CAAC,IAAI,EACtB,qBAAa,CAAC,IAAI,CAAC,KAAK,EAEtB,qBAAa,CAAC,IAAI,CAAC,KAAK,CAEpC,CAAA"}
@@ -1,22 +1,24 @@
1
1
  import React from 'react';
2
2
  import 'antd/es/tooltip/style/css';
3
- declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
3
+ declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
4
+ declare type TooltipTrigger = 'hover' | 'click';
4
5
  declare type Props = {
5
6
  children: React.ReactElement;
7
+ content: string | React.ReactElement;
8
+ title?: string;
6
9
  isNew?: boolean;
10
+ color?: string;
7
11
  placement?: TooltipPlacement;
8
- overlayClassName?: string;
12
+ trigger?: TooltipTrigger;
13
+ arrowPointAtCenter?: boolean;
9
14
  mouseEnterDelay?: number;
10
15
  mouseLeaveDelay?: number;
11
- arrowPointAtCenter?: boolean;
12
- color?: string;
13
- overlayStyle?: object;
14
- title?: string;
15
- content?: string | React.ReactElement;
16
16
  actionTitle?: string;
17
17
  dismissTitle?: string;
18
+ maxWidth?: string;
18
19
  onAction?: () => void;
19
20
  onDismiss?: () => void;
21
+ overlayClassName?: string;
20
22
  };
21
- export default function ({ children, placement, overlayClassName, arrowPointAtCenter, color, title, content, mouseEnterDelay, mouseLeaveDelay, isNew, actionTitle, dismissTitle, onAction, onDismiss, ...rest }: Props): JSX.Element;
23
+ export default function ({ children, placement, overlayClassName, arrowPointAtCenter, trigger, color, title, content, mouseEnterDelay, mouseLeaveDelay, isNew, actionTitle, dismissTitle, maxWidth, onAction, onDismiss }: Props): JSX.Element;
22
24
  export {};