@deskpro/deskpro-ui 6.10.4 → 7.0.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.
Files changed (98) hide show
  1. package/dist/cjs/components/Avatar/Avatar.js +11 -2
  2. package/dist/cjs/components/Avatar/Avatar.js.map +1 -1
  3. package/dist/cjs/components/Avatar/AvatarGroup.js +4 -1
  4. package/dist/cjs/components/Avatar/AvatarGroup.js.map +1 -1
  5. package/dist/cjs/components/LabelTag/Tag.js +2 -2
  6. package/dist/cjs/components/LabelTag/Tag.js.map +1 -1
  7. package/dist/cjs/components/LabelTag/TagCircle.js +11 -2
  8. package/dist/cjs/components/LabelTag/TagCircle.js.map +1 -1
  9. package/dist/cjs/components/TabBar/TabBar.js +4 -7
  10. package/dist/cjs/components/TabBar/TabBar.js.map +1 -1
  11. package/dist/cjs/components/TextArea/TextArea.js +33 -31
  12. package/dist/cjs/components/TextArea/TextArea.js.map +1 -1
  13. package/dist/cjs/components/TippyTooltip/EllipsesTippyTooltip.js +18 -0
  14. package/dist/cjs/components/TippyTooltip/EllipsesTippyTooltip.js.map +1 -0
  15. package/dist/cjs/components/TippyTooltip/TippyTooltip.js +121 -0
  16. package/dist/cjs/components/TippyTooltip/TippyTooltip.js.map +1 -0
  17. package/dist/cjs/components/TippyTooltip/index.js +9 -0
  18. package/dist/cjs/components/TippyTooltip/index.js.map +1 -0
  19. package/dist/cjs/components/TippyTooltip/mergePlugins.js.map +1 -0
  20. package/dist/cjs/components/TippyTooltip/plugIns/disableForTouchDevicesPlugin.js.map +1 -0
  21. package/dist/cjs/components/TippyTooltip/plugIns/dpNamePlugin.js.map +1 -0
  22. package/dist/cjs/components/TippyTooltip/plugIns/escPlugin.js.map +1 -0
  23. package/dist/cjs/components/TippyTooltip/plugIns/index.js.map +1 -0
  24. package/dist/cjs/components/Tooltip/EllipsesTooltip.js +2 -3
  25. package/dist/cjs/components/Tooltip/EllipsesTooltip.js.map +1 -1
  26. package/dist/cjs/components/Tooltip/Tooltip.js +137 -101
  27. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  28. package/dist/cjs/components/Tooltip/index.js.map +1 -1
  29. package/dist/cjs/components/Tooltip/styles.js +201 -0
  30. package/dist/cjs/components/Tooltip/styles.js.map +1 -0
  31. package/dist/cjs/components/Tooltip/types.js +3 -0
  32. package/dist/cjs/components/Tooltip/types.js.map +1 -0
  33. package/dist/cjs/components/Tooltip/utils.js +193 -0
  34. package/dist/cjs/components/Tooltip/utils.js.map +1 -0
  35. package/dist/cjs/components/index.js +1 -0
  36. package/dist/cjs/components/index.js.map +1 -1
  37. package/dist/cjs/hooks/useOnClickOutside.js +27 -0
  38. package/dist/cjs/hooks/useOnClickOutside.js.map +1 -0
  39. package/dist/deskpro-ui.d.ts +79 -10
  40. package/dist/esm/components/Avatar/Avatar.js +11 -2
  41. package/dist/esm/components/Avatar/Avatar.js.map +1 -1
  42. package/dist/esm/components/Avatar/AvatarGroup.js +4 -1
  43. package/dist/esm/components/Avatar/AvatarGroup.js.map +1 -1
  44. package/dist/esm/components/LabelTag/Tag.js +3 -3
  45. package/dist/esm/components/LabelTag/Tag.js.map +1 -1
  46. package/dist/esm/components/LabelTag/TagCircle.js +11 -2
  47. package/dist/esm/components/LabelTag/TagCircle.js.map +1 -1
  48. package/dist/esm/components/TabBar/TabBar.js +4 -7
  49. package/dist/esm/components/TabBar/TabBar.js.map +1 -1
  50. package/dist/esm/components/TextArea/TextArea.js +33 -31
  51. package/dist/esm/components/TextArea/TextArea.js.map +1 -1
  52. package/dist/esm/components/TippyTooltip/EllipsesTippyTooltip.js +16 -0
  53. package/dist/esm/components/TippyTooltip/EllipsesTippyTooltip.js.map +1 -0
  54. package/dist/esm/components/TippyTooltip/TippyTooltip.js +117 -0
  55. package/dist/esm/components/TippyTooltip/TippyTooltip.js.map +1 -0
  56. package/dist/esm/components/TippyTooltip/index.js +3 -0
  57. package/dist/esm/components/TippyTooltip/index.js.map +1 -0
  58. package/dist/esm/components/TippyTooltip/mergePlugins.js.map +1 -0
  59. package/dist/esm/components/TippyTooltip/plugIns/disableForTouchDevicesPlugin.js.map +1 -0
  60. package/dist/esm/components/TippyTooltip/plugIns/dpNamePlugin.js.map +1 -0
  61. package/dist/esm/components/TippyTooltip/plugIns/escPlugin.js.map +1 -0
  62. package/dist/esm/components/TippyTooltip/plugIns/index.js.map +1 -0
  63. package/dist/esm/components/Tooltip/EllipsesTooltip.js +2 -3
  64. package/dist/esm/components/Tooltip/EllipsesTooltip.js.map +1 -1
  65. package/dist/esm/components/Tooltip/Tooltip.js +136 -101
  66. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  67. package/dist/esm/components/Tooltip/index.js.map +1 -1
  68. package/dist/esm/components/Tooltip/styles.js +197 -0
  69. package/dist/esm/components/Tooltip/styles.js.map +1 -0
  70. package/dist/esm/components/Tooltip/types.js +2 -0
  71. package/dist/esm/components/Tooltip/types.js.map +1 -0
  72. package/dist/esm/components/Tooltip/utils.js +187 -0
  73. package/dist/esm/components/Tooltip/utils.js.map +1 -0
  74. package/dist/esm/components/index.js +1 -0
  75. package/dist/esm/components/index.js.map +1 -1
  76. package/dist/esm/hooks/useOnClickOutside.js +23 -0
  77. package/dist/esm/hooks/useOnClickOutside.js.map +1 -0
  78. package/package.json +1 -1
  79. package/dist/cjs/components/Tooltip/mergePlugins.js.map +0 -1
  80. package/dist/cjs/components/Tooltip/plugIns/disableForTouchDevicesPlugin.js.map +0 -1
  81. package/dist/cjs/components/Tooltip/plugIns/dpNamePlugin.js.map +0 -1
  82. package/dist/cjs/components/Tooltip/plugIns/escPlugin.js.map +0 -1
  83. package/dist/cjs/components/Tooltip/plugIns/index.js.map +0 -1
  84. package/dist/esm/components/Tooltip/mergePlugins.js.map +0 -1
  85. package/dist/esm/components/Tooltip/plugIns/disableForTouchDevicesPlugin.js.map +0 -1
  86. package/dist/esm/components/Tooltip/plugIns/dpNamePlugin.js.map +0 -1
  87. package/dist/esm/components/Tooltip/plugIns/escPlugin.js.map +0 -1
  88. package/dist/esm/components/Tooltip/plugIns/index.js.map +0 -1
  89. /package/dist/cjs/components/{Tooltip → TippyTooltip}/mergePlugins.js +0 -0
  90. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/disableForTouchDevicesPlugin.js +0 -0
  91. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/dpNamePlugin.js +0 -0
  92. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/escPlugin.js +0 -0
  93. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/index.js +0 -0
  94. /package/dist/esm/components/{Tooltip → TippyTooltip}/mergePlugins.js +0 -0
  95. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/disableForTouchDevicesPlugin.js +0 -0
  96. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/dpNamePlugin.js +0 -0
  97. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/escPlugin.js +0 -0
  98. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/index.js +0 -0
@@ -1,116 +1,151 @@
1
1
  import * as React from "react";
2
- import styled, { css } from "styled-components";
3
- import Tippy from "@tippyjs/react";
4
- import { Stack } from "../../layout";
2
+ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
5
3
  import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
6
4
  import { Icon } from "../Icon";
7
5
  import { dpNameProp } from "../../utils/dpName";
8
- import mergePlugins from "./mergePlugins";
9
- import { dpNamePlugin, escPlugin, disableForTouchDevicesPlugin } from "./plugIns";
10
- import { useMemo } from "react";
11
- const getStyle = (styleType, theme) => {
12
- const styles = {
13
- light: {
14
- backgroundColor: theme.colors.grey3,
15
- color: theme.colors.grey_black100,
16
- border: `1px solid ${theme.colors.systemShade30}`,
17
- boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
18
- },
19
- lightBox: {
20
- backgroundColor: theme.colors.white,
21
- color: theme.colors.grey100,
22
- border: `1px solid ${theme.colors.grey20}`,
23
- borderColor: theme.colors.grey20,
24
- boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
25
- },
26
- // this type is based of the same styling as the modal component
27
- lightBoxModal: {
28
- backgroundColor: theme.colors.white,
29
- color: theme.colors.grey100,
30
- border: `1px solid ${theme.colors.grey20}`,
31
- borderColor: theme.colors.grey20,
32
- boxShadow: "0px 4px 16px rgba(0, 0, 0, 0.3)",
33
- },
34
- dark: {
35
- backgroundColor: theme.colors.grey_black100,
36
- color: theme.colors.white,
37
- border: "none",
38
- boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
39
- },
40
- extraDark: {
41
- backgroundColor: theme.colors.grey100,
42
- color: theme.colors.white,
43
- border: "none",
44
- borderColor: theme.colors.grey100,
45
- boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
46
- },
47
- };
48
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
49
- return styles[styleType] || styles.dark;
50
- };
6
+ import { Portal } from "../Portal";
7
+ import { Box, Content, Trigger, Wrapper, Root, Arrow } from "./styles";
8
+ import { useOnClickOutside } from "../../hooks/useOnClickOutside";
9
+ import { isTouch } from "../../utils";
10
+ import { getArrowPosition, getPositionAndPlacement, placementMap } from "./utils";
11
+ import { throttle } from "lodash";
12
+ import ResizeObserver from "react-resize-observer";
51
13
  /**
52
14
  * @public
53
15
  */
54
- export const Tooltip = styled(({ suppressClassNameWarning, styleType, arrow = false, width, offsetTop, styledCss, customComponent, arrowColor, offsetLeft, borderRadius, onPresEsc, enableOnTouchDevices, ...props }) => {
55
- const plugins = useMemo(() => mergePlugins([
56
- dpNamePlugin,
57
- escPlugin,
58
- enableOnTouchDevices ? null : disableForTouchDevicesPlugin,
59
- ...(props.plugins || []),
60
- ], {
61
- onPresEsc,
62
- }), [enableOnTouchDevices, onPresEsc, props.plugins]);
63
- return React.createElement(Tippy, { arrow: arrow, ...props, plugins: plugins });
64
- }).attrs({
65
- suppressClassNameWarning: true,
66
- }) `
67
- &.tippy-box {
68
- background-color: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).backgroundColor};
69
- color: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).color};
70
- box-shadow: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).boxShadow};
71
- border: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).border};
72
- border-radius: ${({ borderRadius }) => (borderRadius ? borderRadius : 3)}px;
73
- display: flex;
74
- align-items: center;
75
- justify-content: center;
76
- font-family: ${(props) => props.theme.fonts.primary};
77
- font-style: normal;
78
- font-weight: normal;
79
- font-size: 11px;
80
- line-height: 150%;
81
- max-width: ${({ maxWidth }) => maxWidth}px !important;
82
- word-break: break-word;
83
- width: ${({ width }) => width};
84
- ${({ offsetTop }) => offsetTop && `top: ${offsetTop}px !important`};
85
- ${({ offsetLeft }) => offsetLeft && `left: ${offsetLeft}px !important`};
86
- }
87
- ${({ styledCss }) => styledCss}
88
- ${({ customComponent }) => customComponent &&
89
- css `
90
- .tippy-content {
91
- padding: 0;
92
- }
93
- `}
94
- ${({ arrowColor, theme, styleType = "light" }) => css `
95
- .tippy-arrow {
96
- color: ${getStyle(styleType, theme).backgroundColor};
97
- border-top-color: ${arrowColor
98
- ? theme.colors[arrowColor]
99
- : getStyle(styleType, theme).backgroundColor} !important;
100
- &::before {
101
- color: ${arrowColor
102
- ? theme.colors[arrowColor]
103
- : getStyle(styleType, theme).backgroundColor};
16
+ export const Tooltip = ({ styleType, width, maxWidth = 350, offsetTop, offsetLeft, offset, visible, interactive, styledCss, customComponent, borderRadius, onPressEsc, enableOnTouchDevices, placement = "top", disabled, content, className, delay = [200, 0], hideOnClick, onClickOutside, onShow, onHide, duration, arrow, arrowColor, children, }) => {
17
+ const [isOpen, setIsOpen] = useState(!!visible);
18
+ const [position, setPosition] = useState({ x: 0, y: 0 });
19
+ const [arrowPosition, setArrowPosition] = useState({ x: 0, y: 0 });
20
+ const [calculatedPlacement, setCalculatedPlacement] = useState(placement);
21
+ const triggerRef = useRef(null);
22
+ const tooltipRef = useRef(null);
23
+ const delayOpenRef = useRef();
24
+ const delayCloseRef = useRef();
25
+ const openDelay = typeof delay === "number" ? delay : delay && delay.length ? delay[0] : 0;
26
+ const closeDelay = typeof delay === "number" ? delay : delay && delay.length ? delay[1] : 0;
27
+ const calculatedOffset = offset || [offsetLeft !== null && offsetLeft !== void 0 ? offsetLeft : 0, offsetTop !== null && offsetTop !== void 0 ? offsetTop : 0];
28
+ const isDisabled = disabled || (isTouch() && !enableOnTouchDevices);
29
+ const handleOpen = useCallback(() => {
30
+ setIsOpen(true);
31
+ onShow === null || onShow === void 0 ? void 0 : onShow();
32
+ }, [onShow]);
33
+ const handleClose = useCallback(() => {
34
+ setIsOpen(false);
35
+ onHide === null || onHide === void 0 ? void 0 : onHide();
36
+ }, [onHide]);
37
+ const onClickOutsideHandler = useCallback(() => {
38
+ if (hideOnClick) {
39
+ handleClose();
40
+ }
41
+ onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside();
42
+ }, [handleClose, hideOnClick, onClickOutside]);
43
+ useOnClickOutside(tooltipRef, isOpen ? onClickOutsideHandler : undefined);
44
+ useEffect(() => {
45
+ if (!isDisabled && visible !== undefined) {
46
+ visible ? handleOpen() : handleClose();
47
+ }
48
+ }, [handleClose, handleOpen, isDisabled, visible]);
49
+ useEffect(() => {
50
+ const handleEsc = (event) => {
51
+ if (event.key === "Escape") {
52
+ onPressEsc === null || onPressEsc === void 0 ? void 0 : onPressEsc();
53
+ }
54
+ };
55
+ if (isOpen) {
56
+ window.addEventListener("keydown", handleEsc);
57
+ }
58
+ return () => {
59
+ window.removeEventListener("keydown", handleEsc);
60
+ };
61
+ }, [isOpen, onPressEsc]);
62
+ useEffect(() => {
63
+ return () => {
64
+ delayOpenRef.current && clearTimeout(delayOpenRef.current);
65
+ delayCloseRef.current && clearTimeout(delayCloseRef.current);
66
+ };
67
+ }, []);
68
+ const positionTooltip = useCallback(() => {
69
+ var _a, _b, _c;
70
+ if (isOpen && !isDisabled) {
71
+ const triggerRect = (_b = (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
72
+ const tooltipRect = (_c = tooltipRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect();
73
+ if (triggerRect && tooltipRect) {
74
+ const { position, calculatedPlacement } = getPositionAndPlacement(placementMap[placement], triggerRect, tooltipRect);
75
+ setPosition(position);
76
+ setCalculatedPlacement(calculatedPlacement);
77
+ if (arrow) {
78
+ const arrowPosition = getArrowPosition(calculatedPlacement, triggerRect, {
79
+ x: position.x,
80
+ y: position.y,
81
+ width: tooltipRect.width,
82
+ height: tooltipRect.height,
83
+ });
84
+ setArrowPosition(arrowPosition);
85
+ }
86
+ }
87
+ }
88
+ }, [arrow, isDisabled, isOpen, placement]);
89
+ const throttledPositionTooltip = useMemo(() => throttle(positionTooltip, 100), [positionTooltip]);
90
+ useLayoutEffect(() => {
91
+ positionTooltip();
92
+ }, [positionTooltip]);
93
+ const onMouseEnterTrigger = useCallback(() => {
94
+ if (visible === undefined) {
95
+ delayOpenRef.current = setTimeout(() => {
96
+ handleOpen();
97
+ }, openDelay);
104
98
  }
105
- }
106
- `}
107
- `;
99
+ }, [handleOpen, openDelay, visible]);
100
+ const onMouseLeaveTrigger = useCallback(() => {
101
+ delayOpenRef.current && clearTimeout(delayOpenRef.current);
102
+ delayOpenRef.current = undefined;
103
+ if (visible === undefined) {
104
+ delayCloseRef.current = setTimeout(() => {
105
+ handleClose();
106
+ }, closeDelay);
107
+ }
108
+ }, [closeDelay, handleClose, visible]);
109
+ const onMouseEnterTooltip = useCallback(() => {
110
+ if (interactive) {
111
+ delayCloseRef.current && clearTimeout(delayCloseRef.current);
112
+ delayCloseRef.current = undefined;
113
+ handleOpen();
114
+ }
115
+ }, [handleOpen, interactive]);
116
+ const onMouseLeaveTooltip = useCallback(() => {
117
+ if (visible === undefined) {
118
+ delayOpenRef.current && clearTimeout(delayOpenRef.current);
119
+ delayCloseRef.current = setTimeout(() => {
120
+ handleClose();
121
+ }, closeDelay);
122
+ }
123
+ }, [closeDelay, handleClose, visible]);
124
+ useEffect(() => {
125
+ window.addEventListener("resize", throttledPositionTooltip);
126
+ return () => window.removeEventListener("resize", throttledPositionTooltip);
127
+ }, [throttledPositionTooltip]);
128
+ if (isDisabled) {
129
+ return React.createElement(React.Fragment, null, children);
130
+ }
131
+ return (React.createElement(React.Fragment, null,
132
+ isOpen ? (React.createElement(Portal, null,
133
+ React.createElement(Wrapper, { isOpen: isOpen, position: position, isVisible: true, className: "tooltip-wrapper" },
134
+ React.createElement(Root, { ref: tooltipRef, width: width, maxWidth: maxWidth, placement: calculatedPlacement, className: `tooltip-root ${className !== null && className !== void 0 ? className : ""}`, onMouseEnter: onMouseEnterTooltip, onMouseLeave: onMouseLeaveTooltip, styledCss: styledCss },
135
+ React.createElement(ResizeObserver, { onResize: () => {
136
+ positionTooltip();
137
+ } }),
138
+ React.createElement(Box, { padding: customComponent ? "0" : undefined, styleType: styleType, borderRadius: borderRadius, offset: calculatedOffset, className: "tooltip-box", duration: duration },
139
+ React.createElement(Content, { className: "tooltip-content" }, content),
140
+ arrow ? (React.createElement(Arrow, { placement: calculatedPlacement, position: arrowPosition, arrowColor: arrowColor, styleType: styleType, className: "tooltip-arrow" })) : null))))) : null,
141
+ React.createElement(Trigger, { ref: triggerRef, onMouseEnter: onMouseEnterTrigger, onMouseLeave: onMouseLeaveTrigger }, children)));
142
+ };
108
143
  /**
109
144
  * @public
110
145
  */
111
146
  export function TooltipCommonIcon({ content, styleType = "light", placement = "top", iconSize = 10, }) {
112
- return (React.createElement(Tooltip, { ...dpNameProp("Tooltip"), content: content, suppressClassNameWarning: true, placement: placement, styleType: styleType },
113
- React.createElement(Stack, { align: "center" },
147
+ return (React.createElement(Tooltip, { ...dpNameProp("Tooltip"), content: content, placement: placement, styleType: styleType },
148
+ React.createElement("span", null,
114
149
  React.createElement(Icon, { icon: faQuestionCircle, themeColor: "grey40", size: iconSize }))));
115
150
  }
116
151
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,EAAE,EAAE,GAAG,EAAqD,MAAM,mBAAmB,CAAC;AACnG,OAAO,KAAqB,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AA6BhC,MAAM,QAAQ,GAAG,CAAC,SAA0B,EAAE,KAAmB,EAAE,EAAE;IACnE,MAAM,MAAM,GAAG;QACb,KAAK,EAAE;YACL,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACnC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa;YACjC,MAAM,EAAE,aAAa,KAAK,CAAC,MAAM,CAAC,aAAa,EAAE;YACjD,SAAS,EAAE,4EAA4E;SACxF;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACnC,KAAK,EAAE,KAAK,CA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":["../../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAOvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,197 @@
1
+ import { css } from "styled-components";
2
+ import styled from "styled-components";
3
+ import { match } from "ts-pattern";
4
+ import { ARROW_WIDTH } from "./utils";
5
+ const DEFAULT_OFFSET = 8;
6
+ export const Wrapper = styled.div `
7
+ z-index: 9999;
8
+ display: ${({ isOpen }) => (isOpen ? "block" : "none")};
9
+ visibility: ${({ isVisible }) => (isVisible ? "visible" : "hidden")};
10
+ position: absolute;
11
+ inset: 0px 0px auto auto;
12
+ margin: 0px;
13
+ top: 0;
14
+ left: 0;
15
+ transform: ${({ position }) => `translate(${position.x}px, ${position.y}px)`};
16
+ width: fit-content;
17
+ `;
18
+ export const Root = styled.div `
19
+ padding: ${({ placement }) => getPositionPadding(placement)};
20
+ max-width: ${({ maxWidth }) => maxWidth
21
+ ? typeof maxWidth === "string"
22
+ ? `${maxWidth} !important`
23
+ : `${maxWidth}px !important`
24
+ : undefined};
25
+ width: ${({ width }) => width};
26
+ ${({ styledCss }) => styledCss}
27
+ `;
28
+ const getPositionPadding = (placement) => placement.includes("top")
29
+ ? `0 0 ${DEFAULT_OFFSET}px 0`
30
+ : placement.includes("bottom")
31
+ ? `${DEFAULT_OFFSET}px 0 0 0`
32
+ : placement.includes("left")
33
+ ? `0 ${DEFAULT_OFFSET}px 0 0`
34
+ : `0 0 0 ${DEFAULT_OFFSET}px`;
35
+ export const Box = styled.div `
36
+ position: relative;
37
+ padding: ${({ padding }) => padding !== null && padding !== void 0 ? padding : "5px 9px"};
38
+ z-index: 1;
39
+
40
+ background-color: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).backgroundColor};
41
+ color: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).color};
42
+ box-shadow: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).boxShadow};
43
+ border: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).border};
44
+ border-radius: ${({ borderRadius }) => (borderRadius ? borderRadius : 3)}px;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ font-family: ${(props) => props.theme.fonts.primary};
49
+ font-style: normal;
50
+ font-weight: normal;
51
+ font-size: 11px;
52
+ line-height: 150%;
53
+ word-break: break-word;
54
+ ${({ offset: [, offsetTop] }) => offsetTop && `top: ${offsetTop}px !important`};
55
+ ${({ offset: [offsetLeft] }) => offsetLeft && `left: ${offsetLeft}px !important`};
56
+ transition-property: transform, visibility, opacity;
57
+ transition-duration: ${({ duration = 250 }) => duration}ms;
58
+ `;
59
+ export const Content = styled.div ``;
60
+ export const Trigger = styled.div `
61
+ display: contents;
62
+ `;
63
+ export const Arrow = styled.div `
64
+ position: absolute;
65
+ width: ${ARROW_WIDTH}px;
66
+ height: ${ARROW_WIDTH}px;
67
+ transform: ${({ position }) => `translate(${position.x}px, ${position.y}px)`};
68
+ ${({ placement, arrowColor, theme, styleType }) => getArrowCss(placement, arrowColor, theme, styleType)}
69
+
70
+ &::before {
71
+ content: "";
72
+ position: absolute;
73
+ ${({ placement, arrowColor, theme, styleType }) => getArrowPseudoCss("before", placement, arrowColor, theme, styleType)}
74
+ }
75
+
76
+ &::after {
77
+ content: "";
78
+ z-index: -1;
79
+ position: absolute;
80
+ ${({ placement, arrowColor, theme, styleType }) => getArrowPseudoCss("after", placement, arrowColor, theme, styleType)}
81
+ }
82
+ `;
83
+ const getArrowCss = (placement, arrowColor, theme, styleType = "light") => {
84
+ const color = arrowColor ? theme.colors[arrowColor] : getStyle(styleType, theme).backgroundColor;
85
+ return match(placement)
86
+ .when((placement) => placement.includes("bottom"), () => css `
87
+ top: 0;
88
+ left: 0;
89
+ color: ${color};
90
+ border-top-color: ${color};
91
+ `)
92
+ .when((placement) => placement.includes("top"), () => css `
93
+ bottom: 0;
94
+ left: 0;
95
+ color: ${color};
96
+ border-bottom-color: ${color};
97
+ `)
98
+ .when((placement) => placement.includes("left"), () => css `
99
+ right: 0;
100
+ top: 0;
101
+ color: ${color};
102
+ border-left-color: ${color};
103
+ `)
104
+ .when((placement) => placement.includes("right"), () => css `
105
+ left: 0;
106
+ top: 0;
107
+ color: ${color};
108
+ border-right-color: ${color};
109
+ `)
110
+ .otherwise(() => undefined);
111
+ };
112
+ const getArrowPseudoCss = (type, placement, arrowColor, theme, styleType = "light") => {
113
+ const borderColor = type === "before"
114
+ ? "initial"
115
+ : arrowColor
116
+ ? theme.colors[arrowColor]
117
+ : getStyle(styleType, theme).borderColor;
118
+ const offset = type === "before" ? "-7px" : "-8px";
119
+ const halfArrowWidth = `${ARROW_WIDTH / 2}px`;
120
+ return match(placement)
121
+ .when((placement) => placement.includes("bottom"), () => css `
122
+ left: 0;
123
+ top: ${offset};
124
+ border-color: transparent;
125
+ border-bottom-color: ${borderColor};
126
+ border-width: 0 ${halfArrowWidth} ${halfArrowWidth};
127
+ border-style: solid;
128
+ `)
129
+ .when((placement) => placement.includes("top"), () => css `
130
+ left: 0;
131
+ bottom: ${offset};
132
+ border-color: transparent;
133
+ border-top-color: ${borderColor};
134
+ border-width: ${halfArrowWidth} ${halfArrowWidth} 0;
135
+ border-style: solid;
136
+ `)
137
+ .when((placement) => placement.includes("left"), () => css `
138
+ top: 0;
139
+ right: ${offset};
140
+ border-color: transparent;
141
+ border-left-color: ${borderColor};
142
+ border-width: ${halfArrowWidth} 0 ${halfArrowWidth} ${halfArrowWidth};
143
+ border-style: solid;
144
+ `)
145
+ .when((placement) => placement.includes("right"), () => css `
146
+ top: 0;
147
+ left: ${offset};
148
+ border-color: transparent;
149
+ border-right-color: ${borderColor};
150
+ border-width: ${halfArrowWidth} ${halfArrowWidth} ${halfArrowWidth} 0;
151
+ border-style: solid;
152
+ `)
153
+ .otherwise(() => undefined);
154
+ };
155
+ export const getStyle = (styleType, theme) => {
156
+ const styles = {
157
+ light: {
158
+ backgroundColor: theme.colors.grey3,
159
+ color: theme.colors.grey_black100,
160
+ border: `1px solid ${theme.colors.systemShade30}`,
161
+ borderColor: theme.colors.systemShade30,
162
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
163
+ },
164
+ lightBox: {
165
+ backgroundColor: theme.colors.white,
166
+ color: theme.colors.grey100,
167
+ border: `1px solid ${theme.colors.grey20}`,
168
+ borderColor: theme.colors.grey20,
169
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
170
+ },
171
+ // this type is based of the same styling as the modal component
172
+ lightBoxModal: {
173
+ backgroundColor: theme.colors.white,
174
+ color: theme.colors.grey100,
175
+ border: `1px solid ${theme.colors.grey20}`,
176
+ borderColor: theme.colors.grey20,
177
+ boxShadow: "0px 4px 16px rgba(0, 0, 0, 0.3)",
178
+ },
179
+ dark: {
180
+ backgroundColor: theme.colors.grey_black100,
181
+ color: theme.colors.white,
182
+ border: `1px solid ${theme.colors.grey_black100}`,
183
+ borderColor: theme.colors.grey_black100,
184
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
185
+ },
186
+ extraDark: {
187
+ backgroundColor: theme.colors.grey100,
188
+ color: theme.colors.white,
189
+ border: `1px solid ${theme.colors.grey100}`,
190
+ borderColor: theme.colors.grey100,
191
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
192
+ },
193
+ };
194
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
195
+ return styles[styleType] || styles.dark;
196
+ };
197
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqD,MAAM,mBAAmB,CAAC;AAC3F,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAI/B;;aAEW,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;gBACxC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;;;;;;eAMtD,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,aAAa,QAAQ,CAAC,CAAC,OAAO,QAAQ,CAAC,CAAC,KAAK;;CAE7E,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAK5B;aACW,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC;eAC9C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC5B,QAAQ;IACN,CAAC,CAAC,OAAO,QAAQ,KAAK,QAAQ;QAC5B,CAAC,CAAC,GAAG,QAAQ,aAAa;QAC1B,CAAC,CAAC,GAAG,QAAQ,eAAe;IAC9B,CAAC,CAAC,SAAS;WACN,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;IAC3B,CAAC,EAA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ACF,CAAC;IACF,uEAAuE;IACvE,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC;AAC1C,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/types.ts"],"names":[],"mappings":""}