@zendeskgarden/react-tooltips 8.74.3 → 8.75.1

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 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.74.3'
82
+ 'data-garden-version': '8.75.1'
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.74.3'
94
+ 'data-garden-version': '8.75.1'
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.getColor('chromeHue', 600, theme, 0.15));
177
- let backgroundColor = reactTheming.getColor('chromeHue', 700, theme);
178
- let color = theme.colors.background;
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.getColor('chromeHue', 600, theme, 0.15));
182
- border = `${theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, theme)}`;
183
- backgroundColor = theme.colors.background;
184
- color = reactTheming.getColor('neutralHue', 700, theme);
185
- titleColor = theme.colors.foreground;
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.74.3'
191
+ 'data-garden-version': '8.75.1'
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, getColor } from '@zendeskgarden/react-theming';
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.74.3'
73
+ 'data-garden-version': '8.75.1'
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.74.3'
85
+ 'data-garden-version': '8.75.1'
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`, getColor('chromeHue', 600, theme, 0.15));
168
- let backgroundColor = getColor('chromeHue', 700, theme);
169
- let color = theme.colors.background;
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`, getColor('chromeHue', 600, theme, 0.15));
173
- border = `${theme.borders.sm} ${getColor('neutralHue', 300, theme)}`;
174
- backgroundColor = theme.colors.background;
175
- color = getColor('neutralHue', 700, theme);
176
- titleColor = theme.colors.foreground;
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.74.3'
182
+ 'data-garden-version': '8.75.1'
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.74.3",
3
+ "version": "8.75.1",
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.74.3"
38
+ "@zendeskgarden/react-theming": "^8.75.1"
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": "2ae5e421f4bad609f443d6b227e00b6d8e77a06d"
50
+ "gitHead": "8e2bb36bcfef722db47a135fc987f72597be5000"
51
51
  }