@deskpro/deskpro-ui 6.10.4 → 7.1.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 +144 -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 +202 -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 +247 -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 +80 -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 +143 -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 +198 -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 +240 -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,158 @@
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, VIEWPORT_PADDING } 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, preventOverflow, }) => {
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 [maxDimensions, setMaxDimensions] = useState();
21
+ const [calculatedPlacement, setCalculatedPlacement] = useState(placement);
22
+ const triggerRef = useRef(null);
23
+ const tooltipRef = useRef(null);
24
+ const delayOpenRef = useRef();
25
+ const delayCloseRef = useRef();
26
+ const openDelay = typeof delay === "number" ? delay : delay && delay.length ? delay[0] : 0;
27
+ const closeDelay = typeof delay === "number" ? delay : delay && delay.length ? delay[1] : 0;
28
+ const calculatedOffset = offset || [offsetLeft !== null && offsetLeft !== void 0 ? offsetLeft : 0, offsetTop !== null && offsetTop !== void 0 ? offsetTop : 0];
29
+ const isDisabled = disabled || (isTouch() && !enableOnTouchDevices);
30
+ const handleOpen = useCallback(() => {
31
+ setIsOpen(true);
32
+ onShow === null || onShow === void 0 ? void 0 : onShow();
33
+ }, [onShow]);
34
+ const handleClose = useCallback(() => {
35
+ setIsOpen(false);
36
+ onHide === null || onHide === void 0 ? void 0 : onHide();
37
+ }, [onHide]);
38
+ const onClickOutsideHandler = useCallback(() => {
39
+ if (hideOnClick) {
40
+ handleClose();
41
+ }
42
+ onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside();
43
+ }, [handleClose, hideOnClick, onClickOutside]);
44
+ useOnClickOutside(tooltipRef, isOpen ? onClickOutsideHandler : undefined);
45
+ useEffect(() => {
46
+ if (!isDisabled && visible !== undefined) {
47
+ visible ? handleOpen() : handleClose();
48
+ }
49
+ }, [handleClose, handleOpen, isDisabled, visible]);
50
+ useEffect(() => {
51
+ const handleEsc = (event) => {
52
+ if (event.key === "Escape") {
53
+ onPressEsc === null || onPressEsc === void 0 ? void 0 : onPressEsc();
54
+ }
55
+ };
56
+ if (isOpen) {
57
+ window.addEventListener("keydown", handleEsc);
58
+ }
59
+ return () => {
60
+ window.removeEventListener("keydown", handleEsc);
61
+ };
62
+ }, [isOpen, onPressEsc]);
63
+ useEffect(() => {
64
+ return () => {
65
+ delayOpenRef.current && clearTimeout(delayOpenRef.current);
66
+ delayCloseRef.current && clearTimeout(delayCloseRef.current);
67
+ };
68
+ }, []);
69
+ const positionTooltip = useCallback(() => {
70
+ var _a, _b, _c;
71
+ if (isOpen && !isDisabled) {
72
+ const triggerRect = (_b = (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
73
+ const tooltipRect = (_c = tooltipRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect();
74
+ if (triggerRect && tooltipRect) {
75
+ if (preventOverflow) {
76
+ setMaxDimensions({
77
+ width: window.innerWidth - 2 * VIEWPORT_PADDING,
78
+ height: window.innerHeight - 2 * VIEWPORT_PADDING,
79
+ });
80
+ }
81
+ const { position, calculatedPlacement } = getPositionAndPlacement(placementMap[placement], triggerRect, tooltipRect, preventOverflow);
82
+ setPosition(position);
83
+ setCalculatedPlacement(calculatedPlacement);
84
+ if (arrow) {
85
+ const arrowPosition = getArrowPosition(calculatedPlacement, triggerRect, {
86
+ x: position.x,
87
+ y: position.y,
88
+ width: tooltipRect.width,
89
+ height: tooltipRect.height,
90
+ });
91
+ setArrowPosition(arrowPosition);
92
+ }
93
+ }
94
+ }
95
+ }, [arrow, isDisabled, isOpen, placement, preventOverflow]);
96
+ const throttledPositionTooltip = useMemo(() => throttle(positionTooltip, 100), [positionTooltip]);
97
+ useLayoutEffect(() => {
98
+ positionTooltip();
99
+ }, [positionTooltip]);
100
+ const onMouseEnterTrigger = useCallback(() => {
101
+ if (visible === undefined) {
102
+ delayOpenRef.current = setTimeout(() => {
103
+ handleOpen();
104
+ }, openDelay);
104
105
  }
105
- }
106
- `}
107
- `;
106
+ }, [handleOpen, openDelay, visible]);
107
+ const onMouseLeaveTrigger = useCallback(() => {
108
+ delayOpenRef.current && clearTimeout(delayOpenRef.current);
109
+ delayOpenRef.current = undefined;
110
+ if (visible === undefined) {
111
+ delayCloseRef.current = setTimeout(() => {
112
+ handleClose();
113
+ }, closeDelay);
114
+ }
115
+ }, [closeDelay, handleClose, visible]);
116
+ const onMouseEnterTooltip = useCallback(() => {
117
+ if (interactive) {
118
+ delayCloseRef.current && clearTimeout(delayCloseRef.current);
119
+ delayCloseRef.current = undefined;
120
+ handleOpen();
121
+ }
122
+ }, [handleOpen, interactive]);
123
+ const onMouseLeaveTooltip = useCallback(() => {
124
+ if (visible === undefined) {
125
+ delayOpenRef.current && clearTimeout(delayOpenRef.current);
126
+ delayCloseRef.current = setTimeout(() => {
127
+ handleClose();
128
+ }, closeDelay);
129
+ }
130
+ }, [closeDelay, handleClose, visible]);
131
+ useEffect(() => {
132
+ window.addEventListener("resize", throttledPositionTooltip);
133
+ return () => window.removeEventListener("resize", throttledPositionTooltip);
134
+ }, [throttledPositionTooltip]);
135
+ if (isDisabled) {
136
+ return React.createElement(React.Fragment, null, children);
137
+ }
138
+ return (React.createElement(React.Fragment, null,
139
+ isOpen ? (React.createElement(Portal, null,
140
+ React.createElement(Wrapper, { isOpen: isOpen, position: position, isVisible: true, className: "tooltip-wrapper" },
141
+ React.createElement(Root, { ref: tooltipRef, width: width, maxHeight: maxDimensions === null || maxDimensions === void 0 ? void 0 : maxDimensions.height, maxWidth: (maxDimensions === null || maxDimensions === void 0 ? void 0 : maxDimensions.width) || maxWidth, placement: calculatedPlacement, className: `tooltip-root ${className !== null && className !== void 0 ? className : ""}`, onMouseEnter: onMouseEnterTooltip, onMouseLeave: onMouseLeaveTooltip, styledCss: styledCss },
142
+ React.createElement(ResizeObserver, { onResize: () => {
143
+ positionTooltip();
144
+ } }),
145
+ React.createElement(Box, { padding: customComponent ? "0" : undefined, styleType: styleType, borderRadius: borderRadius, offset: calculatedOffset, className: "tooltip-box", duration: duration },
146
+ React.createElement(Content, { className: "tooltip-content" }, content),
147
+ arrow ? (React.createElement(Arrow, { placement: calculatedPlacement, position: arrowPosition, arrowColor: arrowColor, styleType: styleType, className: "tooltip-arrow" })) : null))))) : null,
148
+ React.createElement(Trigger, { ref: triggerRef, onMouseEnter: onMouseEnterTrigger, onMouseLeave: onMouseLeaveTrigger }, children)));
149
+ };
108
150
  /**
109
151
  * @public
110
152
  */
111
153
  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" },
154
+ return (React.createElement(Tooltip, { ...dpNameProp("Tooltip"), content: content, placement: placement, styleType: styleType },
155
+ React.createElement("span", null,
114
156
  React.createElement(Icon, { icon: faQuestionCircle, themeColor: "grey40", size: iconSize }))));
115
157
  }
116
158
  //# 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;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B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAC,eAAe,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,CACJ,CACD,CACC,CACH,CACV,CAAC,CAAC,CAAC,IAAI;QACR,oBAAC,OAAO,IACN,GAAG,EAAE,UAAU,EACf,YAAY,EAAE,mBAAmB,EACjC,YAAY,EAAE,mBAAmB,IAEhC,QAAQ,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAYF;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,OAAO,EACP,SAAS,GAAG,OAAO,EACnB,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,EAAE,GACU;IACvB,OAAO,CACL,oBAAC,OAAO,OACF,UAAU,CAAC,SAAS,CAAC,EACzB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS;QAEpB;YACE,oBAAC,IAAI,IAAC,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAI,CACjE,CACC,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
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;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,198 @@
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
+ width: ${({ width }) => width};
21
+ max-width: ${({ maxWidth }) => maxWidth
22
+ ? typeof maxWidth === "string"
23
+ ? `${maxWidth} !important`
24
+ : `${maxWidth}px !important`
25
+ : undefined};
26
+ max-height: ${({ maxHeight }) => maxHeight}px !important;
27
+ ${({ styledCss }) => styledCss}
28
+ `;
29
+ const getPositionPadding = (placement) => placement.includes("top")
30
+ ? `0 0 ${DEFAULT_OFFSET}px 0`
31
+ : placement.includes("bottom")
32
+ ? `${DEFAULT_OFFSET}px 0 0 0`
33
+ : placement.includes("left")
34
+ ? `0 ${DEFAULT_OFFSET}px 0 0`
35
+ : `0 0 0 ${DEFAULT_OFFSET}px`;
36
+ export const Box = styled.div `
37
+ position: relative;
38
+ padding: ${({ padding }) => padding !== null && padding !== void 0 ? padding : "5px 9px"};
39
+ z-index: 1;
40
+
41
+ background-color: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).backgroundColor};
42
+ color: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).color};
43
+ box-shadow: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).boxShadow};
44
+ border: ${({ theme, styleType = "light" }) => getStyle(styleType, theme).border};
45
+ border-radius: ${({ borderRadius }) => (borderRadius ? borderRadius : 3)}px;
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ font-family: ${(props) => props.theme.fonts.primary};
50
+ font-style: normal;
51
+ font-weight: normal;
52
+ font-size: 11px;
53
+ line-height: 150%;
54
+ word-break: break-word;
55
+ ${({ offset: [, offsetTop] }) => offsetTop && `top: ${offsetTop}px !important`};
56
+ ${({ offset: [offsetLeft] }) => offsetLeft && `left: ${offsetLeft}px !important`};
57
+ transition-property: transform, visibility, opacity;
58
+ transition-duration: ${({ duration = 250 }) => duration}ms;
59
+ `;
60
+ export const Content = styled.div ``;
61
+ export const Trigger = styled.div `
62
+ display: contents;
63
+ `;
64
+ export const Arrow = styled.div `
65
+ position: absolute;
66
+ width: ${ARROW_WIDTH}px;
67
+ height: ${ARROW_WIDTH}px;
68
+ transform: ${({ position }) => `translate(${position.x}px, ${position.y}px)`};
69
+ ${({ placement, arrowColor, theme, styleType }) => getArrowCss(placement, arrowColor, theme, styleType)}
70
+
71
+ &::before {
72
+ content: "";
73
+ position: absolute;
74
+ ${({ placement, arrowColor, theme, styleType }) => getArrowPseudoCss("before", placement, arrowColor, theme, styleType)}
75
+ }
76
+
77
+ &::after {
78
+ content: "";
79
+ z-index: -1;
80
+ position: absolute;
81
+ ${({ placement, arrowColor, theme, styleType }) => getArrowPseudoCss("after", placement, arrowColor, theme, styleType)}
82
+ }
83
+ `;
84
+ const getArrowCss = (placement, arrowColor, theme, styleType = "light") => {
85
+ const color = arrowColor ? theme.colors[arrowColor] : getStyle(styleType, theme).backgroundColor;
86
+ return match(placement)
87
+ .when((placement) => placement.includes("bottom"), () => css `
88
+ top: 0;
89
+ left: 0;
90
+ color: ${color};
91
+ border-top-color: ${color};
92
+ `)
93
+ .when((placement) => placement.includes("top"), () => css `
94
+ bottom: 0;
95
+ left: 0;
96
+ color: ${color};
97
+ border-bottom-color: ${color};
98
+ `)
99
+ .when((placement) => placement.includes("left"), () => css `
100
+ right: 0;
101
+ top: 0;
102
+ color: ${color};
103
+ border-left-color: ${color};
104
+ `)
105
+ .when((placement) => placement.includes("right"), () => css `
106
+ left: 0;
107
+ top: 0;
108
+ color: ${color};
109
+ border-right-color: ${color};
110
+ `)
111
+ .otherwise(() => undefined);
112
+ };
113
+ const getArrowPseudoCss = (type, placement, arrowColor, theme, styleType = "light") => {
114
+ const borderColor = type === "before"
115
+ ? "initial"
116
+ : arrowColor
117
+ ? theme.colors[arrowColor]
118
+ : getStyle(styleType, theme).borderColor;
119
+ const offset = type === "before" ? "-7px" : "-8px";
120
+ const halfArrowWidth = `${ARROW_WIDTH / 2}px`;
121
+ return match(placement)
122
+ .when((placement) => placement.includes("bottom"), () => css `
123
+ left: 0;
124
+ top: ${offset};
125
+ border-color: transparent;
126
+ border-bottom-color: ${borderColor};
127
+ border-width: 0 ${halfArrowWidth} ${halfArrowWidth};
128
+ border-style: solid;
129
+ `)
130
+ .when((placement) => placement.includes("top"), () => css `
131
+ left: 0;
132
+ bottom: ${offset};
133
+ border-color: transparent;
134
+ border-top-color: ${borderColor};
135
+ border-width: ${halfArrowWidth} ${halfArrowWidth} 0;
136
+ border-style: solid;
137
+ `)
138
+ .when((placement) => placement.includes("left"), () => css `
139
+ top: 0;
140
+ right: ${offset};
141
+ border-color: transparent;
142
+ border-left-color: ${borderColor};
143
+ border-width: ${halfArrowWidth} 0 ${halfArrowWidth} ${halfArrowWidth};
144
+ border-style: solid;
145
+ `)
146
+ .when((placement) => placement.includes("right"), () => css `
147
+ top: 0;
148
+ left: ${offset};
149
+ border-color: transparent;
150
+ border-right-color: ${borderColor};
151
+ border-width: ${halfArrowWidth} ${halfArrowWidth} ${halfArrowWidth} 0;
152
+ border-style: solid;
153
+ `)
154
+ .otherwise(() => undefined);
155
+ };
156
+ export const getStyle = (styleType, theme) => {
157
+ const styles = {
158
+ light: {
159
+ backgroundColor: theme.colors.grey3,
160
+ color: theme.colors.grey_black100,
161
+ border: `1px solid ${theme.colors.systemShade30}`,
162
+ borderColor: theme.colors.systemShade30,
163
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
164
+ },
165
+ lightBox: {
166
+ backgroundColor: theme.colors.white,
167
+ color: theme.colors.grey100,
168
+ border: `1px solid ${theme.colors.grey20}`,
169
+ borderColor: theme.colors.grey20,
170
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
171
+ },
172
+ // this type is based of the same styling as the modal component
173
+ lightBoxModal: {
174
+ backgroundColor: theme.colors.white,
175
+ color: theme.colors.grey100,
176
+ border: `1px solid ${theme.colors.grey20}`,
177
+ borderColor: theme.colors.grey20,
178
+ boxShadow: "0px 4px 16px rgba(0, 0, 0, 0.3)",
179
+ },
180
+ dark: {
181
+ backgroundColor: theme.colors.grey_black100,
182
+ color: theme.colors.white,
183
+ border: `1px solid ${theme.colors.grey_black100}`,
184
+ borderColor: theme.colors.grey_black100,
185
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
186
+ },
187
+ extraDark: {
188
+ backgroundColor: theme.colors.grey100,
189
+ color: theme.colors.white,
190
+ border: `1px solid ${theme.colors.grey100}`,
191
+ borderColor: theme.colors.grey100,
192
+ boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);",
193
+ },
194
+ };
195
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
196
+ return styles[styleType] || styles.dark;
197
+ };
198
+ //# 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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AC,MAAM;YAChC,SAAS,EAAE,4EAA4E;SACxF;QACD,gEAAgE;QAChE,aAAa,EAAE;YACb,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACnC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YAC3B,MAAM,EAAE,aAAa,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;YAC1C,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;YAChC,SAAS,EAAE,iCAAiC;SAC7C;QACD,IAAI,EAAE;YACJ,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa;YAC3C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACzB,MAAM,EAAE,aAAa,KAAK,CAAC,MAAM,CAAC,aAAa,EAAE;YACjD,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa;YACvC,SAAS,EAAE,4EAA4E;SACxF;QACD,SAAS,EAAE;YACT,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YACrC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACzB,MAAM,EAAE,aAAa,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;YAC3C,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YACjC,SAAS,EAAE,4EAA4E;SACxF;KACF,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":""}