@deskpro/deskpro-ui 6.10.3 → 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 (110) 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/Drilldown/DrilldownItem.js +1 -1
  6. package/dist/cjs/components/Drilldown/DrilldownItem.js.map +1 -1
  7. package/dist/cjs/components/Dropdown/Dropdown.js +1 -1
  8. package/dist/cjs/components/Dropdown/Dropdown.js.map +1 -1
  9. package/dist/cjs/components/Input/Input.js +1 -1
  10. package/dist/cjs/components/Input/Input.js.map +1 -1
  11. package/dist/cjs/components/LabelTag/Tag.js +2 -2
  12. package/dist/cjs/components/LabelTag/Tag.js.map +1 -1
  13. package/dist/cjs/components/LabelTag/TagCircle.js +11 -2
  14. package/dist/cjs/components/LabelTag/TagCircle.js.map +1 -1
  15. package/dist/cjs/components/TabBar/TabBar.js +4 -7
  16. package/dist/cjs/components/TabBar/TabBar.js.map +1 -1
  17. package/dist/cjs/components/TextArea/TextArea.js +33 -31
  18. package/dist/cjs/components/TextArea/TextArea.js.map +1 -1
  19. package/dist/cjs/components/TippyTooltip/EllipsesTippyTooltip.js +18 -0
  20. package/dist/cjs/components/TippyTooltip/EllipsesTippyTooltip.js.map +1 -0
  21. package/dist/cjs/components/TippyTooltip/TippyTooltip.js +121 -0
  22. package/dist/cjs/components/TippyTooltip/TippyTooltip.js.map +1 -0
  23. package/dist/cjs/components/TippyTooltip/index.js +9 -0
  24. package/dist/cjs/components/TippyTooltip/index.js.map +1 -0
  25. package/dist/cjs/components/TippyTooltip/mergePlugins.js.map +1 -0
  26. package/dist/cjs/components/TippyTooltip/plugIns/disableForTouchDevicesPlugin.js.map +1 -0
  27. package/dist/cjs/components/TippyTooltip/plugIns/dpNamePlugin.js.map +1 -0
  28. package/dist/cjs/components/TippyTooltip/plugIns/escPlugin.js.map +1 -0
  29. package/dist/cjs/components/TippyTooltip/plugIns/index.js.map +1 -0
  30. package/dist/cjs/components/Tooltip/EllipsesTooltip.js +2 -3
  31. package/dist/cjs/components/Tooltip/EllipsesTooltip.js.map +1 -1
  32. package/dist/cjs/components/Tooltip/Tooltip.js +137 -101
  33. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  34. package/dist/cjs/components/Tooltip/index.js.map +1 -1
  35. package/dist/cjs/components/Tooltip/styles.js +201 -0
  36. package/dist/cjs/components/Tooltip/styles.js.map +1 -0
  37. package/dist/cjs/components/Tooltip/types.js +3 -0
  38. package/dist/cjs/components/Tooltip/types.js.map +1 -0
  39. package/dist/cjs/components/Tooltip/utils.js +193 -0
  40. package/dist/cjs/components/Tooltip/utils.js.map +1 -0
  41. package/dist/cjs/components/index.js +1 -0
  42. package/dist/cjs/components/index.js.map +1 -1
  43. package/dist/cjs/hooks/useOnClickOutside.js +27 -0
  44. package/dist/cjs/hooks/useOnClickOutside.js.map +1 -0
  45. package/dist/deskpro-ui.d.ts +79 -10
  46. package/dist/esm/components/Avatar/Avatar.js +11 -2
  47. package/dist/esm/components/Avatar/Avatar.js.map +1 -1
  48. package/dist/esm/components/Avatar/AvatarGroup.js +4 -1
  49. package/dist/esm/components/Avatar/AvatarGroup.js.map +1 -1
  50. package/dist/esm/components/Drilldown/DrilldownItem.js +1 -1
  51. package/dist/esm/components/Drilldown/DrilldownItem.js.map +1 -1
  52. package/dist/esm/components/Dropdown/Dropdown.js +1 -1
  53. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  54. package/dist/esm/components/Input/Input.js +1 -1
  55. package/dist/esm/components/Input/Input.js.map +1 -1
  56. package/dist/esm/components/LabelTag/Tag.js +3 -3
  57. package/dist/esm/components/LabelTag/Tag.js.map +1 -1
  58. package/dist/esm/components/LabelTag/TagCircle.js +11 -2
  59. package/dist/esm/components/LabelTag/TagCircle.js.map +1 -1
  60. package/dist/esm/components/TabBar/TabBar.js +4 -7
  61. package/dist/esm/components/TabBar/TabBar.js.map +1 -1
  62. package/dist/esm/components/TextArea/TextArea.js +33 -31
  63. package/dist/esm/components/TextArea/TextArea.js.map +1 -1
  64. package/dist/esm/components/TippyTooltip/EllipsesTippyTooltip.js +16 -0
  65. package/dist/esm/components/TippyTooltip/EllipsesTippyTooltip.js.map +1 -0
  66. package/dist/esm/components/TippyTooltip/TippyTooltip.js +117 -0
  67. package/dist/esm/components/TippyTooltip/TippyTooltip.js.map +1 -0
  68. package/dist/esm/components/TippyTooltip/index.js +3 -0
  69. package/dist/esm/components/TippyTooltip/index.js.map +1 -0
  70. package/dist/esm/components/TippyTooltip/mergePlugins.js.map +1 -0
  71. package/dist/esm/components/TippyTooltip/plugIns/disableForTouchDevicesPlugin.js.map +1 -0
  72. package/dist/esm/components/TippyTooltip/plugIns/dpNamePlugin.js.map +1 -0
  73. package/dist/esm/components/TippyTooltip/plugIns/escPlugin.js.map +1 -0
  74. package/dist/esm/components/TippyTooltip/plugIns/index.js.map +1 -0
  75. package/dist/esm/components/Tooltip/EllipsesTooltip.js +2 -3
  76. package/dist/esm/components/Tooltip/EllipsesTooltip.js.map +1 -1
  77. package/dist/esm/components/Tooltip/Tooltip.js +136 -101
  78. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  79. package/dist/esm/components/Tooltip/index.js.map +1 -1
  80. package/dist/esm/components/Tooltip/styles.js +197 -0
  81. package/dist/esm/components/Tooltip/styles.js.map +1 -0
  82. package/dist/esm/components/Tooltip/types.js +2 -0
  83. package/dist/esm/components/Tooltip/types.js.map +1 -0
  84. package/dist/esm/components/Tooltip/utils.js +187 -0
  85. package/dist/esm/components/Tooltip/utils.js.map +1 -0
  86. package/dist/esm/components/index.js +1 -0
  87. package/dist/esm/components/index.js.map +1 -1
  88. package/dist/esm/hooks/useOnClickOutside.js +23 -0
  89. package/dist/esm/hooks/useOnClickOutside.js.map +1 -0
  90. package/package.json +1 -1
  91. package/dist/cjs/components/Tooltip/mergePlugins.js.map +0 -1
  92. package/dist/cjs/components/Tooltip/plugIns/disableForTouchDevicesPlugin.js.map +0 -1
  93. package/dist/cjs/components/Tooltip/plugIns/dpNamePlugin.js.map +0 -1
  94. package/dist/cjs/components/Tooltip/plugIns/escPlugin.js.map +0 -1
  95. package/dist/cjs/components/Tooltip/plugIns/index.js.map +0 -1
  96. package/dist/esm/components/Tooltip/mergePlugins.js.map +0 -1
  97. package/dist/esm/components/Tooltip/plugIns/disableForTouchDevicesPlugin.js.map +0 -1
  98. package/dist/esm/components/Tooltip/plugIns/dpNamePlugin.js.map +0 -1
  99. package/dist/esm/components/Tooltip/plugIns/escPlugin.js.map +0 -1
  100. package/dist/esm/components/Tooltip/plugIns/index.js.map +0 -1
  101. /package/dist/cjs/components/{Tooltip → TippyTooltip}/mergePlugins.js +0 -0
  102. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/disableForTouchDevicesPlugin.js +0 -0
  103. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/dpNamePlugin.js +0 -0
  104. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/escPlugin.js +0 -0
  105. /package/dist/cjs/components/{Tooltip → TippyTooltip}/plugIns/index.js +0 -0
  106. /package/dist/esm/components/{Tooltip → TippyTooltip}/mergePlugins.js +0 -0
  107. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/disableForTouchDevicesPlugin.js +0 -0
  108. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/dpNamePlugin.js +0 -0
  109. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/escPlugin.js +0 -0
  110. /package/dist/esm/components/{Tooltip → TippyTooltip}/plugIns/index.js +0 -0
@@ -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,EAA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E;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":""}
@@ -0,0 +1,187 @@
1
+ import { match } from "ts-pattern";
2
+ export const ARROW_WIDTH = 16;
3
+ /**
4
+ * Calculates the postion of the tooltip relative to the top left of the viewport,
5
+ * based upon the position of the trigger, the size of the tooltip, and the placement.
6
+ */
7
+ const calcPosition = (placement, triggerRect, tooltipRect) => {
8
+ switch (placement) {
9
+ case "bottom":
10
+ return {
11
+ x: triggerRect.x - (tooltipRect.width - triggerRect.width) / 2,
12
+ y: triggerRect.y + triggerRect.height,
13
+ };
14
+ case "top":
15
+ return {
16
+ x: triggerRect.x - (tooltipRect.width - triggerRect.width) / 2,
17
+ y: triggerRect.y - tooltipRect.height,
18
+ };
19
+ case "left":
20
+ return {
21
+ x: triggerRect.x - tooltipRect.width,
22
+ y: triggerRect.y - (tooltipRect.height - triggerRect.height) / 2,
23
+ };
24
+ case "right":
25
+ return {
26
+ x: triggerRect.x + triggerRect.width,
27
+ y: triggerRect.y - (tooltipRect.height - triggerRect.height) / 2,
28
+ };
29
+ case "bottom-start":
30
+ return {
31
+ x: triggerRect.x,
32
+ y: triggerRect.y + triggerRect.height,
33
+ };
34
+ case "bottom-end":
35
+ return {
36
+ x: triggerRect.x + triggerRect.width - tooltipRect.width,
37
+ y: triggerRect.y + triggerRect.height,
38
+ };
39
+ case "top-start":
40
+ return {
41
+ x: triggerRect.x,
42
+ y: triggerRect.y - tooltipRect.height,
43
+ };
44
+ case "top-end":
45
+ return {
46
+ x: triggerRect.x + triggerRect.width - tooltipRect.width,
47
+ y: triggerRect.y - tooltipRect.height,
48
+ };
49
+ case "right-start":
50
+ return {
51
+ x: triggerRect.x + triggerRect.width,
52
+ y: triggerRect.y,
53
+ };
54
+ case "right-end":
55
+ return {
56
+ x: triggerRect.x + triggerRect.width,
57
+ y: triggerRect.y + triggerRect.height - tooltipRect.height,
58
+ };
59
+ case "left-start":
60
+ return {
61
+ x: triggerRect.x - tooltipRect.width,
62
+ y: triggerRect.y,
63
+ };
64
+ case "left-end":
65
+ return {
66
+ x: triggerRect.x - tooltipRect.width,
67
+ y: triggerRect.y + triggerRect.height - tooltipRect.height,
68
+ };
69
+ }
70
+ };
71
+ /**
72
+ * Map the placement to its flipped equivalent, or for auto try all of them
73
+ */
74
+ export const placementMap = {
75
+ bottom: ["bottom", "top"],
76
+ top: ["top", "bottom"],
77
+ left: ["left", "right"],
78
+ right: ["right", "left"],
79
+ "bottom-start": ["bottom-start", "top-start"],
80
+ "bottom-end": ["bottom-end", "top-end"],
81
+ "top-start": ["top-start", "bottom-start"],
82
+ "top-end": ["top-end", "bottom-end"],
83
+ "right-start": ["right-start", "left-start"],
84
+ "right-end": ["right-end", "left-end"],
85
+ "left-start": ["left-start", "right-start"],
86
+ "left-end": ["left-end", "right-end"],
87
+ auto: ["top", "bottom", "left", "right"],
88
+ "auto-start": ["top-start", "bottom-start", "left-start", "right-start"],
89
+ "auto-end": ["top-end", "bottom-end", "left-end", "right-end"],
90
+ };
91
+ /**
92
+ * Calculates whether the tooltip will fit in the viewport given its placement and position
93
+ */
94
+ const fitsInViewport = (tooltipRect, position) => {
95
+ return (position.x >= 0 &&
96
+ position.x + tooltipRect.width <= window.innerWidth &&
97
+ position.y >= 0 &&
98
+ position.y + tooltipRect.height <= window.innerHeight);
99
+ };
100
+ /**
101
+ * Calculates the position of the tooltip and the placement of the tooltip.
102
+ * If the tooltip does not fit in the viewport, then it will try to position in such that it fits in the viewport,
103
+ * (essentially ignoring the -start, -end or middle positioning from the placement).
104
+ * If it still does not fit, it will try to flip the placement and run the same logic to fit it within the viewport.
105
+ * If the flipped placement does not fit it uses the original placement.
106
+ */
107
+ export const getPositionAndPlacement = (placement, triggerRect, tooltipRect,
108
+ /** Pass down the first position calculated so we can default back to that if none of the placements fit */
109
+ initialPositionAndPlacement) => {
110
+ // We've tried all placements and none of them fit, so use the first one
111
+ if (placement.length === 0) {
112
+ if (initialPositionAndPlacement) {
113
+ return { ...initialPositionAndPlacement };
114
+ }
115
+ else {
116
+ // Should never reach here
117
+ throw new Error("No placement found");
118
+ }
119
+ }
120
+ const position = calcPosition(placement[0], triggerRect, tooltipRect);
121
+ // If it fits in the view port return the placement and position, otherwise try the next one
122
+ if (fitsInViewport(tooltipRect, position)) {
123
+ return { position, calculatedPlacement: placement[0] };
124
+ }
125
+ else {
126
+ const noOverflowPosition = getNoOverflowPosition(placement[0], triggerRect, tooltipRect, position);
127
+ if (noOverflowPosition && fitsInViewport(tooltipRect, noOverflowPosition)) {
128
+ return { position: noOverflowPosition, calculatedPlacement: placement[0] };
129
+ }
130
+ return getPositionAndPlacement(placement.slice(1), triggerRect, tooltipRect, initialPositionAndPlacement !== null && initialPositionAndPlacement !== void 0 ? initialPositionAndPlacement : {
131
+ position,
132
+ calculatedPlacement: placement[0],
133
+ });
134
+ }
135
+ };
136
+ const VIEWPORT_PADDING = 5;
137
+ export const getNoOverflowPosition = (placement, triggerRect, tooltipRect, position) => {
138
+ switch (placement) {
139
+ case "bottom":
140
+ case "bottom-start":
141
+ case "bottom-end":
142
+ case "top":
143
+ case "top-start":
144
+ case "top-end": {
145
+ const fitsWidth = tooltipRect.width + VIEWPORT_PADDING < window.innerWidth;
146
+ if (fitsWidth) {
147
+ return position.x < 0
148
+ ? { x: VIEWPORT_PADDING, y: position.y }
149
+ : { x: window.innerWidth - tooltipRect.width - VIEWPORT_PADDING, y: position.y };
150
+ }
151
+ return false;
152
+ }
153
+ case "left":
154
+ case "left-start":
155
+ case "left-end":
156
+ case "right":
157
+ case "right-start":
158
+ case "right-end": {
159
+ const fitsHeight = tooltipRect.height + VIEWPORT_PADDING < window.innerHeight;
160
+ if (fitsHeight) {
161
+ return position.y < 0
162
+ ? { x: position.x, y: VIEWPORT_PADDING }
163
+ : { x: position.x, y: window.innerHeight - tooltipRect.height - VIEWPORT_PADDING };
164
+ }
165
+ return false;
166
+ }
167
+ }
168
+ };
169
+ export const getArrowPosition = (tooltipPlacement, triggerRect, tooltipRect) => {
170
+ return match(tooltipPlacement)
171
+ .when((placement) => placement.includes("top") || placement.includes("bottom"), () => {
172
+ return {
173
+ x: triggerRect.x > tooltipRect.x
174
+ ? triggerRect.x - tooltipRect.x + triggerRect.width / 2 - ARROW_WIDTH / 2
175
+ : tooltipRect.width / 2 - ARROW_WIDTH / 2,
176
+ y: 0,
177
+ };
178
+ })
179
+ .when((placement) => placement.includes("left") || placement.includes("right"), () => ({
180
+ x: 0,
181
+ y: triggerRect.y > tooltipRect.y
182
+ ? triggerRect.y - tooltipRect.y + triggerRect.height / 2 - ARROW_WIDTH / 2
183
+ : tooltipRect.height / 2 - ARROW_WIDTH / 2,
184
+ }))
185
+ .otherwise(() => ({ x: 0, y: 0 }));
186
+ };
187
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAE9B;;;GAGG;AACH,MAAM,YAAY,GAAG,CACnB,SAAiC,EACjC,WAAoB,EACpB,WAAoB,EACV,EAAE;IACZ,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ;YACX,OAAO;gBACL,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;gBAC9D,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM;aACtC,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;gBAC9D,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM;aACtC,CAAC;QAEJ,KAAK,MAAM;YACT,OAAO;gBACL,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK;gBACpC,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC;aACjE,CAAC;QAEJ,KAAK,OAAO;YACV,OAAO;gBACL,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC,KAA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;KAC/C,CAAC,CACH;SACA,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,CAAC,CAAC"}
@@ -39,6 +39,7 @@ export * from "./Tabs";
39
39
  export * from "./TextArea";
40
40
  export * from "./TimeInput";
41
41
  export * from "./Toggle";
42
+ export * from "./TippyTooltip";
42
43
  export * from "./Tooltip";
43
44
  export * from "./Typography";
44
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CA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c,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { useEffect } from "react";
2
+ export function useOnClickOutside(ref, handler) {
3
+ useEffect(() => {
4
+ if (!handler)
5
+ return;
6
+ const listener = (event) => {
7
+ const el = ref.current;
8
+ // Do nothing if clicking ref's element or descendent elements
9
+ if (!el || el.contains(event.target)) {
10
+ return;
11
+ }
12
+ handler === null || handler === void 0 ? void 0 : handler(event);
13
+ };
14
+ document.addEventListener(`mousedown`, listener);
15
+ document.addEventListener(`touchstart`, listener);
16
+ return () => {
17
+ document.removeEventListener(`mousedown`, listener);
18
+ document.removeEventListener(`touchstart`, listener);
19
+ };
20
+ // Reload only if ref or handler changes
21
+ }, [ref, handler]);
22
+ }
23
+ //# sourceMappingURL=useOnClickOutside.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnClickOutside.js","sourceRoot":"","sources":["../../../src/hooks/useOnClickOutside.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,MAAM,UAAU,iBAAiB,CAC/B,GAAiB,EACjB,OAAmC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,QAAQ,GAAG,CAAC,KAAe,EAAE,EAAE;YACnC,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;YAEvB,8DAA8D;YAC9D,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE;gBAC5C,OAAO;aACR;YAED,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACjD,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAElD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;YACpD,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QACvD,CAAC,CAAC;QAEF,wCAAwC;IAC1C,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AACrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deskpro/deskpro-ui",
3
- "version": "6.10.3",
3
+ "version": "7.0.0",
4
4
  "description": "Deskpro UI components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/deskpro/deskpro-ui/issues"
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergePlugins.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/mergePlugins.ts"],"names":[],"mappings":";;AAMA,SAAS,YAAY,CAAI,OAA8B,EAAE,KAAQ;IAC/D,OAAO,OAAO,CAAC,MAAM,CAAW,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QAC5C,IAAI,CAAC,IAAI;YAAE,OAAO,GAAG,CAAC;QACtB,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;YAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;SACxC;QACD,OAAO,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,kBAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"disableForTouchDevicesPlugin.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/disableForTouchDevicesPlugin.ts"],"names":[],"mappings":";;AACA,0CAAyC;AAEzC,MAAM,4BAA4B,GAAW;IAC3C,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACjB,MAAM,EAAE,GAAG,EAAE;YACX,IAAI,IAAA,eAAO,GAAE;gBAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,IAAA,eAAO,GAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/D,CAAC;KACF,CAAC;CACH,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dpNamePlugin.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/dpNamePlugin.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAW;IAC3B,uFAAuF;IACvF,IAAI,EAAE,cAAc;IACpB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;CACf,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"escPlugin.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/escPlugin.ts"],"names":[],"mappings":";;AAEA,MAAM,SAAS,GAAG,CAAC,KAAkC,EAAiB,EAAE;IACtE,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA;QAAE,OAAO,IAAI,CAAC;IACnC,SAAS,SAAS,CAAC,KAAoB;QACrC,IAAI,KAAK,CAAC,OAAO,KAAK,EAAE,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA,EAAE;YAC5C,KAAK,CAAC,SAAS,EAAE,CAAC;SACnB;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,YAAY,EAAE,IAAI;QAClB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YACT,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC;YAC7D,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC;SACjE,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AAAhD,4GAAA,OAAO,OAAgB;AAChC,yCAAmD;AAA1C,sGAAA,OAAO,OAAa;AAC7B,+EAAyF;AAAhF,4IAAA,OAAO,OAAgC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergePlugins.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/mergePlugins.ts"],"names":[],"mappings":"AAMA,SAAS,YAAY,CAAI,OAA8B,EAAE,KAAQ;IAC/D,OAAO,OAAO,CAAC,MAAM,CAAW,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QAC5C,IAAI,CAAC,IAAI;YAAE,OAAO,GAAG,CAAC;QACtB,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;YAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;SACxC;QACD,OAAO,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"disableForTouchDevicesPlugin.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/disableForTouchDevicesPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,4BAA4B,GAAW;IAC3C,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACjB,MAAM,EAAE,GAAG,EAAE;YACX,IAAI,OAAO,EAAE;gBAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/D,CAAC;KACF,CAAC;CACH,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dpNamePlugin.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/dpNamePlugin.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAW;IAC3B,uFAAuF;IACvF,IAAI,EAAE,cAAc;IACpB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;CACf,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"escPlugin.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/escPlugin.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,CAAC,KAAkC,EAAiB,EAAE;IACtE,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA;QAAE,OAAO,IAAI,CAAC;IACnC,SAAS,SAAS,CAAC,KAAoB;QACrC,IAAI,KAAK,CAAC,OAAO,KAAK,EAAE,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA,EAAE;YAC5C,KAAK,CAAC,SAAS,EAAE,CAAC;SACnB;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,YAAY,EAAE,IAAI;QAClB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YACT,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC;YAC7D,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC;SACjE,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Tooltip/plugIns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}