@instructure/ui-tooltip 8.18.0 → 8.18.1-snapshot.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/LICENSE.md ADDED
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: The MIT License (MIT)
3
+ category: Getting Started
4
+ order: 9
5
+ ---
6
+
7
+ # The MIT License (MIT)
8
+
9
+ Copyright (c) 2015 Instructure, Inc.
10
+
11
+ **Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions.**
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
@@ -72,11 +72,15 @@ let Tooltip = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, ge
72
72
  }
73
73
 
74
74
  componentDidMount() {
75
- this.props.makeStyles?.();
75
+ var _this$props$makeStyle, _this$props;
76
+
77
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
76
78
  }
77
79
 
78
80
  componentDidUpdate() {
79
- this.props.makeStyles?.();
81
+ var _this$props$makeStyle2, _this$props2;
82
+
83
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
80
84
  }
81
85
 
82
86
  renderTrigger() {
@@ -105,22 +109,22 @@ let Tooltip = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, ge
105
109
  }
106
110
 
107
111
  render() {
108
- const _this$props = this.props,
109
- renderTip = _this$props.renderTip,
110
- isShowingContent = _this$props.isShowingContent,
111
- defaultIsShowingContent = _this$props.defaultIsShowingContent,
112
- on = _this$props.on,
113
- color = _this$props.color,
114
- placement = _this$props.placement,
115
- mountNode = _this$props.mountNode,
116
- constrain = _this$props.constrain,
117
- offsetX = _this$props.offsetX,
118
- offsetY = _this$props.offsetY,
119
- positionTarget = _this$props.positionTarget,
120
- onShowContent = _this$props.onShowContent,
121
- onHideContent = _this$props.onHideContent,
122
- styles = _this$props.styles,
123
- rest = _objectWithoutProperties(_this$props, _excluded);
112
+ const _this$props3 = this.props,
113
+ renderTip = _this$props3.renderTip,
114
+ isShowingContent = _this$props3.isShowingContent,
115
+ defaultIsShowingContent = _this$props3.defaultIsShowingContent,
116
+ on = _this$props3.on,
117
+ color = _this$props3.color,
118
+ placement = _this$props3.placement,
119
+ mountNode = _this$props3.mountNode,
120
+ constrain = _this$props3.constrain,
121
+ offsetX = _this$props3.offsetX,
122
+ offsetY = _this$props3.offsetY,
123
+ positionTarget = _this$props3.positionTarget,
124
+ onShowContent = _this$props3.onShowContent,
125
+ onHideContent = _this$props3.onHideContent,
126
+ styles = _this$props3.styles,
127
+ rest = _objectWithoutProperties(_this$props3, _excluded);
124
128
 
125
129
  return jsx(Popover, Object.assign({}, passthroughProps(rest), {
126
130
  isShowingContent: isShowingContent,
@@ -144,7 +148,7 @@ let Tooltip = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, ge
144
148
  elementRef: this.handleRef
145
149
  }), jsx("span", {
146
150
  id: this._id,
147
- css: styles?.tooltip,
151
+ css: styles === null || styles === void 0 ? void 0 : styles.tooltip,
148
152
  role: "tooltip"
149
153
  }, callRenderProp(renderTip)));
150
154
  }
@@ -31,10 +31,10 @@ const generateComponentTheme = theme => {
31
31
  const typography = theme.typography,
32
32
  spacing = theme.spacing;
33
33
  const componentVariables = {
34
- fontFamily: typography?.fontFamily,
35
- fontWeight: typography?.fontWeightNormal,
36
- fontSize: typography?.fontSizeSmall,
37
- padding: spacing?.small
34
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
35
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
36
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
37
+ padding: spacing === null || spacing === void 0 ? void 0 : spacing.small
38
38
  };
39
39
  return { ...componentVariables
40
40
  };
@@ -74,11 +74,15 @@ let Tooltip = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (
74
74
  }
75
75
 
76
76
  componentDidMount() {
77
- this.props.makeStyles?.();
77
+ var _this$props$makeStyle, _this$props;
78
+
79
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
78
80
  }
79
81
 
80
82
  componentDidUpdate() {
81
- this.props.makeStyles?.();
83
+ var _this$props$makeStyle2, _this$props2;
84
+
85
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
82
86
  }
83
87
 
84
88
  renderTrigger() {
@@ -107,22 +111,22 @@ let Tooltip = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (
107
111
  }
108
112
 
109
113
  render() {
110
- const _this$props = this.props,
111
- renderTip = _this$props.renderTip,
112
- isShowingContent = _this$props.isShowingContent,
113
- defaultIsShowingContent = _this$props.defaultIsShowingContent,
114
- on = _this$props.on,
115
- color = _this$props.color,
116
- placement = _this$props.placement,
117
- mountNode = _this$props.mountNode,
118
- constrain = _this$props.constrain,
119
- offsetX = _this$props.offsetX,
120
- offsetY = _this$props.offsetY,
121
- positionTarget = _this$props.positionTarget,
122
- onShowContent = _this$props.onShowContent,
123
- onHideContent = _this$props.onHideContent,
124
- styles = _this$props.styles,
125
- rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
114
+ const _this$props3 = this.props,
115
+ renderTip = _this$props3.renderTip,
116
+ isShowingContent = _this$props3.isShowingContent,
117
+ defaultIsShowingContent = _this$props3.defaultIsShowingContent,
118
+ on = _this$props3.on,
119
+ color = _this$props3.color,
120
+ placement = _this$props3.placement,
121
+ mountNode = _this$props3.mountNode,
122
+ constrain = _this$props3.constrain,
123
+ offsetX = _this$props3.offsetX,
124
+ offsetY = _this$props3.offsetY,
125
+ positionTarget = _this$props3.positionTarget,
126
+ onShowContent = _this$props3.onShowContent,
127
+ onHideContent = _this$props3.onHideContent,
128
+ styles = _this$props3.styles,
129
+ rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
126
130
  return (0, _emotion.jsx)(_Popover.Popover, Object.assign({}, (0, _passthroughProps.passthroughProps)(rest), {
127
131
  isShowingContent: isShowingContent,
128
132
  defaultIsShowingContent: defaultIsShowingContent,
@@ -145,7 +149,7 @@ let Tooltip = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (
145
149
  elementRef: this.handleRef
146
150
  }), (0, _emotion.jsx)("span", {
147
151
  id: this._id,
148
- css: styles?.tooltip,
152
+ css: styles === null || styles === void 0 ? void 0 : styles.tooltip,
149
153
  role: "tooltip"
150
154
  }, (0, _callRenderProp.callRenderProp)(renderTip)));
151
155
  }
@@ -38,10 +38,10 @@ const generateComponentTheme = theme => {
38
38
  const typography = theme.typography,
39
39
  spacing = theme.spacing;
40
40
  const componentVariables = {
41
- fontFamily: typography?.fontFamily,
42
- fontWeight: typography?.fontWeightNormal,
43
- fontSize: typography?.fontSizeSmall,
44
- padding: spacing?.small
41
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
42
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
43
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
44
+ padding: spacing === null || spacing === void 0 ? void 0 : spacing.small
45
45
  };
46
46
  return { ...componentVariables
47
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tooltip",
3
- "version": "8.18.0",
3
+ "version": "8.18.1-snapshot.0+435c9ae79",
4
4
  "description": "A component for showing small text-only overlays on hover/focus.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,23 +24,23 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/emotion": "8.18.0",
28
- "@instructure/shared-types": "8.18.0",
29
- "@instructure/ui-popover": "8.18.0",
30
- "@instructure/ui-position": "8.18.0",
31
- "@instructure/ui-prop-types": "8.18.0",
32
- "@instructure/ui-react-utils": "8.18.0",
33
- "@instructure/ui-testable": "8.18.0",
34
- "@instructure/ui-utils": "8.18.0",
27
+ "@instructure/emotion": "8.18.1-snapshot.0+435c9ae79",
28
+ "@instructure/shared-types": "8.18.1-snapshot.0+435c9ae79",
29
+ "@instructure/ui-popover": "8.18.1-snapshot.0+435c9ae79",
30
+ "@instructure/ui-position": "8.18.1-snapshot.0+435c9ae79",
31
+ "@instructure/ui-prop-types": "8.18.1-snapshot.0+435c9ae79",
32
+ "@instructure/ui-react-utils": "8.18.1-snapshot.0+435c9ae79",
33
+ "@instructure/ui-testable": "8.18.1-snapshot.0+435c9ae79",
34
+ "@instructure/ui-utils": "8.18.1-snapshot.0+435c9ae79",
35
35
  "prop-types": "^15"
36
36
  },
37
37
  "devDependencies": {
38
- "@instructure/ui-babel-preset": "8.18.0",
39
- "@instructure/ui-color-utils": "8.18.0",
40
- "@instructure/ui-test-locator": "8.18.0",
41
- "@instructure/ui-test-queries": "8.18.0",
42
- "@instructure/ui-test-utils": "8.18.0",
43
- "@instructure/ui-themes": "8.18.0"
38
+ "@instructure/ui-babel-preset": "8.18.1-snapshot.0+435c9ae79",
39
+ "@instructure/ui-color-utils": "8.18.1-snapshot.0+435c9ae79",
40
+ "@instructure/ui-test-locator": "8.18.1-snapshot.0+435c9ae79",
41
+ "@instructure/ui-test-queries": "8.18.1-snapshot.0+435c9ae79",
42
+ "@instructure/ui-test-utils": "8.18.1-snapshot.0+435c9ae79",
43
+ "@instructure/ui-themes": "8.18.1-snapshot.0+435c9ae79"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -48,5 +48,6 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false
51
+ "sideEffects": false,
52
+ "gitHead": "435c9ae794c15e2bd103f700f8c4e946d91c1b59"
52
53
  }