@zendeskgarden/react-tooltips 9.11.1 → 9.11.2

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.
@@ -26,16 +26,16 @@ const PLACEMENT_DEFAULT = 'top';
26
26
  const TooltipComponent = _ref => {
27
27
  let {
28
28
  id,
29
- delayMS,
29
+ delayMS = 500,
30
30
  isInitialVisible,
31
31
  content,
32
- refKey,
33
- placement: _placement,
32
+ refKey = 'ref',
33
+ placement: _placement = PLACEMENT_DEFAULT,
34
34
  fallbackPlacements: _fallbackPlacements,
35
35
  children,
36
- hasArrow,
36
+ hasArrow = true,
37
37
  size,
38
- type,
38
+ type = 'dark',
39
39
  appendToNode,
40
40
  zIndex,
41
41
  isVisible: externalIsVisible,
@@ -129,13 +129,6 @@ TooltipComponent.propTypes = {
129
129
  isInitialVisible: PropTypes.bool,
130
130
  refKey: PropTypes.string
131
131
  };
132
- TooltipComponent.defaultProps = {
133
- hasArrow: true,
134
- type: 'dark',
135
- placement: PLACEMENT_DEFAULT,
136
- delayMS: 500,
137
- refKey: 'ref'
138
- };
139
132
  const Tooltip = TooltipComponent;
140
133
  Tooltip.Paragraph = Paragraph;
141
134
  Tooltip.Title = Title;
@@ -10,7 +10,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'tooltip.paragraph';
11
11
  const StyledParagraph = styled.p.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.11.1'
13
+ 'data-garden-version': '9.11.2'
14
14
  }).withConfig({
15
15
  displayName: "StyledParagraph",
16
16
  componentId: "sc-wuqkfc-0"
@@ -10,7 +10,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'tooltip.title';
11
11
  const StyledTitle = styled.strong.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.11.1'
13
+ 'data-garden-version': '9.11.2'
14
14
  }).withConfig({
15
15
  displayName: "StyledTitle",
16
16
  componentId: "sc-vnjcvz-0"
@@ -134,7 +134,7 @@ const colorStyles = _ref2 => {
134
134
  };
135
135
  const StyledTooltip = styled.div.attrs({
136
136
  'data-garden-id': COMPONENT_ID,
137
- 'data-garden-version': '9.11.1'
137
+ 'data-garden-version': '9.11.2'
138
138
  }).withConfig({
139
139
  displayName: "StyledTooltip",
140
140
  componentId: "sc-gzzjq4-0"
package/dist/index.cjs.js CHANGED
@@ -25,7 +25,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
25
25
  const COMPONENT_ID$2 = 'tooltip.paragraph';
26
26
  const StyledParagraph = styled__default.default.p.attrs({
27
27
  'data-garden-id': COMPONENT_ID$2,
28
- 'data-garden-version': '9.11.1'
28
+ 'data-garden-version': '9.11.2'
29
29
  }).withConfig({
30
30
  displayName: "StyledParagraph",
31
31
  componentId: "sc-wuqkfc-0"
@@ -34,7 +34,7 @@ const StyledParagraph = styled__default.default.p.attrs({
34
34
  const COMPONENT_ID$1 = 'tooltip.title';
35
35
  const StyledTitle = styled__default.default.strong.attrs({
36
36
  'data-garden-id': COMPONENT_ID$1,
37
- 'data-garden-version': '9.11.1'
37
+ 'data-garden-version': '9.11.2'
38
38
  }).withConfig({
39
39
  displayName: "StyledTitle",
40
40
  componentId: "sc-vnjcvz-0"
@@ -165,7 +165,7 @@ const colorStyles = _ref2 => {
165
165
  };
166
166
  const StyledTooltip = styled__default.default.div.attrs({
167
167
  'data-garden-id': COMPONENT_ID,
168
- 'data-garden-version': '9.11.1'
168
+ 'data-garden-version': '9.11.2'
169
169
  }).withConfig({
170
170
  displayName: "StyledTooltip",
171
171
  componentId: "sc-gzzjq4-0"
@@ -202,16 +202,16 @@ const PLACEMENT_DEFAULT = 'top';
202
202
  const TooltipComponent = _ref => {
203
203
  let {
204
204
  id,
205
- delayMS,
205
+ delayMS = 500,
206
206
  isInitialVisible,
207
207
  content,
208
- refKey,
209
- placement: _placement,
208
+ refKey = 'ref',
209
+ placement: _placement = PLACEMENT_DEFAULT,
210
210
  fallbackPlacements: _fallbackPlacements,
211
211
  children,
212
- hasArrow,
212
+ hasArrow = true,
213
213
  size,
214
- type,
214
+ type = 'dark',
215
215
  appendToNode,
216
216
  zIndex,
217
217
  isVisible: externalIsVisible,
@@ -305,13 +305,6 @@ TooltipComponent.propTypes = {
305
305
  isInitialVisible: PropTypes__default.default.bool,
306
306
  refKey: PropTypes__default.default.string
307
307
  };
308
- TooltipComponent.defaultProps = {
309
- hasArrow: true,
310
- type: 'dark',
311
- placement: PLACEMENT_DEFAULT,
312
- delayMS: 500,
313
- refKey: 'ref'
314
- };
315
308
  const Tooltip = TooltipComponent;
316
309
  Tooltip.Paragraph = Paragraph;
317
310
  Tooltip.Title = Title;
@@ -27,13 +27,6 @@ export declare const TooltipComponent: {
27
27
  isInitialVisible: PropTypes.Requireable<boolean>;
28
28
  refKey: PropTypes.Requireable<string>;
29
29
  };
30
- defaultProps: {
31
- hasArrow: boolean;
32
- type: string;
33
- placement: string;
34
- delayMS: number;
35
- refKey: string;
36
- };
37
30
  };
38
31
  /**
39
32
  * @extends HTMLAttributes<HTMLDivElement>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-tooltips",
3
- "version": "9.11.1",
3
+ "version": "9.11.2",
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,10 +35,10 @@
35
35
  "styled-components": "^5.3.1 || ^6.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@zendeskgarden/react-buttons": "^9.11.1",
39
- "@zendeskgarden/react-dropdowns": "^9.11.1",
40
- "@zendeskgarden/react-grid": "^9.11.1",
41
- "@zendeskgarden/react-theming": "^9.11.1"
38
+ "@zendeskgarden/react-buttons": "^9.11.2",
39
+ "@zendeskgarden/react-dropdowns": "^9.11.2",
40
+ "@zendeskgarden/react-grid": "^9.11.2",
41
+ "@zendeskgarden/react-theming": "^9.11.2"
42
42
  },
43
43
  "keywords": [
44
44
  "components",
@@ -50,5 +50,5 @@
50
50
  "access": "public"
51
51
  },
52
52
  "zendeskgarden:src": "src/index.ts",
53
- "gitHead": "c45a8893e0ed1fd9f1cf257b2badf6bbeae90bc0"
53
+ "gitHead": "3adb38d25d0a3fa38ff21c7707950623f22b5db7"
54
54
  }