@instructure/ui-tooltip 8.12.1-snapshot.43 → 8.12.1-snapshot.47
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.
|
@@ -27,15 +27,15 @@ import { parseQueryArguments } from '@instructure/ui-test-queries'; // eslint-di
|
|
|
27
27
|
import { PopoverLocator } from '@instructure/ui-popover/es/Popover/PopoverLocator';
|
|
28
28
|
import { Tooltip } from './index';
|
|
29
29
|
export const customMethods = {
|
|
30
|
-
findTrigger: (
|
|
31
|
-
const _parseQueryArguments = parseQueryArguments(...
|
|
30
|
+
findTrigger: function () {
|
|
31
|
+
const _parseQueryArguments = parseQueryArguments(...arguments),
|
|
32
32
|
element = _parseQueryArguments.element,
|
|
33
33
|
options = _parseQueryArguments.options;
|
|
34
34
|
|
|
35
35
|
return PopoverLocator.findTrigger(element, '[aria-describedby]', options);
|
|
36
36
|
},
|
|
37
|
-
findContent: (
|
|
38
|
-
const _parseQueryArguments2 = parseQueryArguments(...
|
|
37
|
+
findContent: function () {
|
|
38
|
+
const _parseQueryArguments2 = parseQueryArguments(...arguments),
|
|
39
39
|
element = _parseQueryArguments2.element,
|
|
40
40
|
options = _parseQueryArguments2.options;
|
|
41
41
|
|
package/es/Tooltip/index.js
CHANGED
|
@@ -44,8 +44,8 @@ category: components
|
|
|
44
44
|
**/
|
|
45
45
|
|
|
46
46
|
let Tooltip = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Tooltip extends Component {
|
|
47
|
-
constructor(
|
|
48
|
-
super(...
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments);
|
|
49
49
|
this._id = uid('Tooltip');
|
|
50
50
|
this.state = {
|
|
51
51
|
hasFocus: false
|
|
@@ -161,9 +161,9 @@ let Tooltip = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
161
161
|
offsetX: 0,
|
|
162
162
|
offsetY: 0,
|
|
163
163
|
onShowContent: event => {},
|
|
164
|
-
onHideContent: (event, {
|
|
165
|
-
documentClick
|
|
166
|
-
}
|
|
164
|
+
onHideContent: (event, _ref) => {
|
|
165
|
+
let documentClick = _ref.documentClick;
|
|
166
|
+
}
|
|
167
167
|
}, _temp)) || _class) || _class);
|
|
168
168
|
export default Tooltip;
|
|
169
169
|
export { Tooltip };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.customMethods = exports.TooltipLocator = void 0;
|
|
7
7
|
|
|
8
8
|
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
|
|
9
9
|
|
|
@@ -38,15 +38,15 @@ var _index = require("./index");
|
|
|
38
38
|
*/
|
|
39
39
|
// eslint-disable-next-line no-restricted-imports
|
|
40
40
|
const customMethods = {
|
|
41
|
-
findTrigger: (
|
|
42
|
-
const _parseQueryArguments = (0, _uiTestQueries.parseQueryArguments)(...
|
|
41
|
+
findTrigger: function () {
|
|
42
|
+
const _parseQueryArguments = (0, _uiTestQueries.parseQueryArguments)(...arguments),
|
|
43
43
|
element = _parseQueryArguments.element,
|
|
44
44
|
options = _parseQueryArguments.options;
|
|
45
45
|
|
|
46
46
|
return _PopoverLocator.PopoverLocator.findTrigger(element, '[aria-describedby]', options);
|
|
47
47
|
},
|
|
48
|
-
findContent: (
|
|
49
|
-
const _parseQueryArguments2 = (0, _uiTestQueries.parseQueryArguments)(...
|
|
48
|
+
findContent: function () {
|
|
49
|
+
const _parseQueryArguments2 = (0, _uiTestQueries.parseQueryArguments)(...arguments),
|
|
50
50
|
element = _parseQueryArguments2.element,
|
|
51
51
|
options = _parseQueryArguments2.options;
|
|
52
52
|
|
package/lib/Tooltip/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.Tooltip = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
|
|
@@ -45,8 +45,8 @@ category: components
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let Tooltip = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Tooltip extends _react.Component {
|
|
48
|
-
constructor(
|
|
49
|
-
super(...
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments);
|
|
50
50
|
this._id = (0, _uid.uid)('Tooltip');
|
|
51
51
|
this.state = {
|
|
52
52
|
hasFocus: false
|
|
@@ -161,9 +161,9 @@ let Tooltip = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
161
161
|
offsetX: 0,
|
|
162
162
|
offsetY: 0,
|
|
163
163
|
onShowContent: event => {},
|
|
164
|
-
onHideContent: (event, {
|
|
165
|
-
documentClick
|
|
166
|
-
}
|
|
164
|
+
onHideContent: (event, _ref) => {
|
|
165
|
+
let documentClick = _ref.documentClick;
|
|
166
|
+
}
|
|
167
167
|
}, _temp)) || _class) || _class);
|
|
168
168
|
exports.Tooltip = Tooltip;
|
|
169
169
|
var _default = Tooltip;
|
package/lib/Tooltip/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tooltip",
|
|
3
|
-
"version": "8.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.47+70bc15c4e",
|
|
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
|
"type": "commonjs",
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/emotion": "8.12.1-snapshot.
|
|
29
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/ui-popover": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-position": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/ui-prop-types": "8.12.1-snapshot.
|
|
33
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
34
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
35
|
-
"@instructure/uid": "8.12.1-snapshot.
|
|
28
|
+
"@instructure/emotion": "8.12.1-snapshot.47+70bc15c4e",
|
|
29
|
+
"@instructure/shared-types": "8.12.1-snapshot.47+70bc15c4e",
|
|
30
|
+
"@instructure/ui-popover": "8.12.1-snapshot.47+70bc15c4e",
|
|
31
|
+
"@instructure/ui-position": "8.12.1-snapshot.47+70bc15c4e",
|
|
32
|
+
"@instructure/ui-prop-types": "8.12.1-snapshot.47+70bc15c4e",
|
|
33
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.47+70bc15c4e",
|
|
34
|
+
"@instructure/ui-testable": "8.12.1-snapshot.47+70bc15c4e",
|
|
35
|
+
"@instructure/uid": "8.12.1-snapshot.47+70bc15c4e",
|
|
36
36
|
"prop-types": "^15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.12.1-snapshot.
|
|
40
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
41
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-test-queries": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
44
|
-
"@instructure/ui-themes": "8.12.1-snapshot.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.47+70bc15c4e",
|
|
40
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.47+70bc15c4e",
|
|
41
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.47+70bc15c4e",
|
|
42
|
+
"@instructure/ui-test-queries": "8.12.1-snapshot.47+70bc15c4e",
|
|
43
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.47+70bc15c4e",
|
|
44
|
+
"@instructure/ui-themes": "8.12.1-snapshot.47+70bc15c4e"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=16.8 <=17"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": false,
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "70bc15c4e8d89589a1372954f7a230ddde5ef71b"
|
|
54
54
|
}
|