@zendeskgarden/react-tooltips 8.74.2 → 8.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +11 -11
- package/dist/index.esm.js +12 -12
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -79,7 +79,7 @@ function getArrowPosition(popperPlacement) {
|
|
|
79
79
|
const COMPONENT_ID$2 = 'tooltip.paragraph';
|
|
80
80
|
const StyledParagraph = styled__default.default.p.attrs({
|
|
81
81
|
'data-garden-id': COMPONENT_ID$2,
|
|
82
|
-
'data-garden-version': '8.
|
|
82
|
+
'data-garden-version': '8.75.0'
|
|
83
83
|
}).withConfig({
|
|
84
84
|
displayName: "StyledParagraph",
|
|
85
85
|
componentId: "sc-wuqkfc-0"
|
|
@@ -91,7 +91,7 @@ StyledParagraph.defaultProps = {
|
|
|
91
91
|
const COMPONENT_ID$1 = 'tooltip.title';
|
|
92
92
|
const StyledTitle = styled__default.default.strong.attrs({
|
|
93
93
|
'data-garden-id': COMPONENT_ID$1,
|
|
94
|
-
'data-garden-version': '8.
|
|
94
|
+
'data-garden-version': '8.75.0'
|
|
95
95
|
}).withConfig({
|
|
96
96
|
displayName: "StyledTitle",
|
|
97
97
|
componentId: "sc-vnjcvz-0"
|
|
@@ -173,22 +173,22 @@ const colorStyles = _ref2 => {
|
|
|
173
173
|
type
|
|
174
174
|
} = _ref2;
|
|
175
175
|
let border;
|
|
176
|
-
let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.
|
|
177
|
-
let backgroundColor = reactTheming.
|
|
178
|
-
let color =
|
|
176
|
+
let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
177
|
+
let backgroundColor = reactTheming.getColorV8('chromeHue', 700, theme);
|
|
178
|
+
let color = reactTheming.getColorV8('background', 600 , theme);
|
|
179
179
|
let titleColor;
|
|
180
180
|
if (type === 'light') {
|
|
181
|
-
boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, reactTheming.
|
|
182
|
-
border = `${theme.borders.sm} ${reactTheming.
|
|
183
|
-
backgroundColor =
|
|
184
|
-
color = reactTheming.
|
|
185
|
-
titleColor =
|
|
181
|
+
boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
182
|
+
border = `${theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, theme)}`;
|
|
183
|
+
backgroundColor = reactTheming.getColorV8('background', 600 , theme);
|
|
184
|
+
color = reactTheming.getColorV8('neutralHue', 700, theme);
|
|
185
|
+
titleColor = reactTheming.getColorV8('foreground', 600 , theme);
|
|
186
186
|
}
|
|
187
187
|
return styled.css(["border:", ";box-shadow:", ";background-color:", ";color:", ";", "{color:", ";}"], border, boxShadow, backgroundColor, color, StyledTitle, titleColor);
|
|
188
188
|
};
|
|
189
189
|
const StyledTooltip = styled__default.default.div.attrs({
|
|
190
190
|
'data-garden-id': COMPONENT_ID,
|
|
191
|
-
'data-garden-version': '8.
|
|
191
|
+
'data-garden-version': '8.75.0'
|
|
192
192
|
}).withConfig({
|
|
193
193
|
displayName: "StyledTooltip",
|
|
194
194
|
componentId: "sc-gzzjq4-0"
|
package/dist/index.esm.js
CHANGED
|
@@ -13,7 +13,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
13
13
|
import { useTooltip } from '@zendeskgarden/container-tooltip';
|
|
14
14
|
import { getControlledValue, composeEventHandlers } from '@zendeskgarden/container-utilities';
|
|
15
15
|
import { Manager, Reference, Popper } from 'react-popper';
|
|
16
|
-
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, arrowStyles,
|
|
16
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, arrowStyles, getColorV8 } from '@zendeskgarden/react-theming';
|
|
17
17
|
|
|
18
18
|
function getPopperPlacement(gardenPlacement) {
|
|
19
19
|
const gardenToPopperMapping = {
|
|
@@ -70,7 +70,7 @@ function getArrowPosition(popperPlacement) {
|
|
|
70
70
|
const COMPONENT_ID$2 = 'tooltip.paragraph';
|
|
71
71
|
const StyledParagraph = styled.p.attrs({
|
|
72
72
|
'data-garden-id': COMPONENT_ID$2,
|
|
73
|
-
'data-garden-version': '8.
|
|
73
|
+
'data-garden-version': '8.75.0'
|
|
74
74
|
}).withConfig({
|
|
75
75
|
displayName: "StyledParagraph",
|
|
76
76
|
componentId: "sc-wuqkfc-0"
|
|
@@ -82,7 +82,7 @@ StyledParagraph.defaultProps = {
|
|
|
82
82
|
const COMPONENT_ID$1 = 'tooltip.title';
|
|
83
83
|
const StyledTitle = styled.strong.attrs({
|
|
84
84
|
'data-garden-id': COMPONENT_ID$1,
|
|
85
|
-
'data-garden-version': '8.
|
|
85
|
+
'data-garden-version': '8.75.0'
|
|
86
86
|
}).withConfig({
|
|
87
87
|
displayName: "StyledTitle",
|
|
88
88
|
componentId: "sc-vnjcvz-0"
|
|
@@ -164,22 +164,22 @@ const colorStyles = _ref2 => {
|
|
|
164
164
|
type
|
|
165
165
|
} = _ref2;
|
|
166
166
|
let border;
|
|
167
|
-
let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`,
|
|
168
|
-
let backgroundColor =
|
|
169
|
-
let color = theme
|
|
167
|
+
let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColorV8('chromeHue', 600, theme, 0.15));
|
|
168
|
+
let backgroundColor = getColorV8('chromeHue', 700, theme);
|
|
169
|
+
let color = getColorV8('background', 600 , theme);
|
|
170
170
|
let titleColor;
|
|
171
171
|
if (type === 'light') {
|
|
172
|
-
boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`,
|
|
173
|
-
border = `${theme.borders.sm} ${
|
|
174
|
-
backgroundColor = theme
|
|
175
|
-
color =
|
|
176
|
-
titleColor = theme
|
|
172
|
+
boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColorV8('chromeHue', 600, theme, 0.15));
|
|
173
|
+
border = `${theme.borders.sm} ${getColorV8('neutralHue', 300, theme)}`;
|
|
174
|
+
backgroundColor = getColorV8('background', 600 , theme);
|
|
175
|
+
color = getColorV8('neutralHue', 700, theme);
|
|
176
|
+
titleColor = getColorV8('foreground', 600 , theme);
|
|
177
177
|
}
|
|
178
178
|
return css(["border:", ";box-shadow:", ";background-color:", ";color:", ";", "{color:", ";}"], border, boxShadow, backgroundColor, color, StyledTitle, titleColor);
|
|
179
179
|
};
|
|
180
180
|
const StyledTooltip = styled.div.attrs({
|
|
181
181
|
'data-garden-id': COMPONENT_ID,
|
|
182
|
-
'data-garden-version': '8.
|
|
182
|
+
'data-garden-version': '8.75.0'
|
|
183
183
|
}).withConfig({
|
|
184
184
|
displayName: "StyledTooltip",
|
|
185
185
|
componentId: "sc-gzzjq4-0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-tooltips",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.75.0",
|
|
4
4
|
"description": "Collection of components and render prop containers relating to Tooltips in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@zendeskgarden/react-theming": "^8.
|
|
38
|
+
"@zendeskgarden/react-theming": "^8.75.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
41
41
|
"components",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"zendeskgarden:src": "src/index.ts",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "56a54793a611efc223b8e36262d428365613c853"
|
|
51
51
|
}
|