@zendeskgarden/react-tooltips 9.0.0-next.4 → 9.0.0-next.5

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
@@ -41,7 +41,7 @@ function _extends() {
41
41
  const COMPONENT_ID$2 = 'tooltip.paragraph';
42
42
  const StyledParagraph = styled__default.default.p.attrs({
43
43
  'data-garden-id': COMPONENT_ID$2,
44
- 'data-garden-version': '9.0.0-next.4'
44
+ 'data-garden-version': '9.0.0-next.5'
45
45
  }).withConfig({
46
46
  displayName: "StyledParagraph",
47
47
  componentId: "sc-wuqkfc-0"
@@ -53,7 +53,7 @@ StyledParagraph.defaultProps = {
53
53
  const COMPONENT_ID$1 = 'tooltip.title';
54
54
  const StyledTitle = styled__default.default.strong.attrs({
55
55
  'data-garden-id': COMPONENT_ID$1,
56
- 'data-garden-version': '9.0.0-next.4'
56
+ 'data-garden-version': '9.0.0-next.5'
57
57
  }).withConfig({
58
58
  displayName: "StyledTitle",
59
59
  componentId: "sc-vnjcvz-0"
@@ -135,22 +135,22 @@ const colorStyles = _ref2 => {
135
135
  type
136
136
  } = _ref2;
137
137
  let border;
138
- let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColor('chromeHue', 600, theme, 0.15));
139
- let backgroundColor = reactTheming.getColor('chromeHue', 700, theme);
138
+ let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
139
+ let backgroundColor = reactTheming.getColorV8('chromeHue', 700, theme);
140
140
  let color = theme.colors.background;
141
141
  let titleColor;
142
142
  if (type === 'light') {
143
- boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, reactTheming.getColor('chromeHue', 600, theme, 0.15));
144
- border = `${theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, theme)}`;
143
+ boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
144
+ border = `${theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, theme)}`;
145
145
  backgroundColor = theme.colors.background;
146
- color = reactTheming.getColor('neutralHue', 700, theme);
146
+ color = reactTheming.getColorV8('neutralHue', 700, theme);
147
147
  titleColor = theme.colors.foreground;
148
148
  }
149
149
  return styled.css(["border:", ";box-shadow:", ";background-color:", ";color:", ";", "{color:", ";}"], border, boxShadow, backgroundColor, color, StyledTitle, titleColor);
150
150
  };
151
151
  const StyledTooltip = styled__default.default.div.attrs({
152
152
  'data-garden-id': COMPONENT_ID,
153
- 'data-garden-version': '9.0.0-next.4'
153
+ 'data-garden-version': '9.0.0-next.5'
154
154
  }).withConfig({
155
155
  displayName: "StyledTooltip",
156
156
  componentId: "sc-gzzjq4-0"
package/dist/index.esm.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  import React, { forwardRef, useContext, useRef, useEffect, cloneElement } from 'react';
9
9
  import styled, { css, ThemeContext } from 'styled-components';
10
- import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, arrowStyles, getArrowPosition, getColor, PLACEMENT as PLACEMENT$1, getFloatingPlacements } from '@zendeskgarden/react-theming';
10
+ import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, arrowStyles, getArrowPosition, getColorV8, PLACEMENT as PLACEMENT$1, getFloatingPlacements } from '@zendeskgarden/react-theming';
11
11
  import { createPortal } from 'react-dom';
12
12
  import PropTypes from 'prop-types';
13
13
  import { mergeRefs } from 'react-merge-refs';
@@ -33,7 +33,7 @@ function _extends() {
33
33
  const COMPONENT_ID$2 = 'tooltip.paragraph';
34
34
  const StyledParagraph = styled.p.attrs({
35
35
  'data-garden-id': COMPONENT_ID$2,
36
- 'data-garden-version': '9.0.0-next.4'
36
+ 'data-garden-version': '9.0.0-next.5'
37
37
  }).withConfig({
38
38
  displayName: "StyledParagraph",
39
39
  componentId: "sc-wuqkfc-0"
@@ -45,7 +45,7 @@ StyledParagraph.defaultProps = {
45
45
  const COMPONENT_ID$1 = 'tooltip.title';
46
46
  const StyledTitle = styled.strong.attrs({
47
47
  'data-garden-id': COMPONENT_ID$1,
48
- 'data-garden-version': '9.0.0-next.4'
48
+ 'data-garden-version': '9.0.0-next.5'
49
49
  }).withConfig({
50
50
  displayName: "StyledTitle",
51
51
  componentId: "sc-vnjcvz-0"
@@ -127,22 +127,22 @@ const colorStyles = _ref2 => {
127
127
  type
128
128
  } = _ref2;
129
129
  let border;
130
- let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColor('chromeHue', 600, theme, 0.15));
131
- let backgroundColor = getColor('chromeHue', 700, theme);
130
+ let boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColorV8('chromeHue', 600, theme, 0.15));
131
+ let backgroundColor = getColorV8('chromeHue', 700, theme);
132
132
  let color = theme.colors.background;
133
133
  let titleColor;
134
134
  if (type === 'light') {
135
- boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor('chromeHue', 600, theme, 0.15));
136
- border = `${theme.borders.sm} ${getColor('neutralHue', 300, theme)}`;
135
+ boxShadow = theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColorV8('chromeHue', 600, theme, 0.15));
136
+ border = `${theme.borders.sm} ${getColorV8('neutralHue', 300, theme)}`;
137
137
  backgroundColor = theme.colors.background;
138
- color = getColor('neutralHue', 700, theme);
138
+ color = getColorV8('neutralHue', 700, theme);
139
139
  titleColor = theme.colors.foreground;
140
140
  }
141
141
  return css(["border:", ";box-shadow:", ";background-color:", ";color:", ";", "{color:", ";}"], border, boxShadow, backgroundColor, color, StyledTitle, titleColor);
142
142
  };
143
143
  const StyledTooltip = styled.div.attrs({
144
144
  'data-garden-id': COMPONENT_ID,
145
- 'data-garden-version': '9.0.0-next.4'
145
+ 'data-garden-version': '9.0.0-next.5'
146
146
  }).withConfig({
147
147
  displayName: "StyledTooltip",
148
148
  componentId: "sc-gzzjq4-0"
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
+ * @deprecated use `Tooltip.Paragraph` instead
10
+ *
9
11
  * @extends HTMLAttributes<HTMLParagraphElement>
10
12
  */
11
13
  export declare const Paragraph: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
+ * @deprecated use `Tooltip.Title` instead
10
+ *
9
11
  * @extends HTMLAttributes<HTMLDivElement>
10
12
  */
11
13
  export declare const Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -4,9 +4,7 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- /** @deprecated use `Tooltip.Paragraph` instead */
8
7
  export { Paragraph } from './elements/Paragraph';
9
- /** @deprecated use `Tooltip.Title` instead */
10
8
  export { Title } from './elements/Title';
11
9
  export { Tooltip } from './elements/Tooltip';
12
10
  export type { ITooltipProps } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-tooltips",
3
- "version": "9.0.0-next.4",
3
+ "version": "9.0.0-next.5",
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>",
@@ -32,10 +32,10 @@
32
32
  "@zendeskgarden/react-theming": "^8.1.0",
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
- "styled-components": "^5.1.0"
35
+ "styled-components": "^5.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@zendeskgarden/react-theming": "^9.0.0-next.4"
38
+ "@zendeskgarden/react-theming": "^9.0.0-next.5"
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": "749220247e3a22d2d502dcb3691d81e6a3d52b02"
50
+ "gitHead": "806fa33feb06142c3f69b6a87b53628469117e4d"
51
51
  }