Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/ui-tooltip

Package Overview
Dependencies
Maintainers
0
Versions
1239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-tooltip - npm Package Compare versions

Comparing version 8.56.5-pr-snapshot-1729507712924 to 8.56.5-pr-snapshot-1729546148514

2

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [8.56.5-pr-snapshot-1729507712924](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1729507712924) (2024-10-21)
## [8.56.5-pr-snapshot-1729546148514](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1729546148514) (2024-10-21)

@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/ui-tooltip

@@ -10,10 +10,5 @@ "use strict";

var _react = require("react");
var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
var _ensureSingleChild = require("@instructure/ui-react-utils/lib/ensureSingleChild.js");
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
var _testable = require("@instructure/ui-testable/lib/testable.js");
var _Popover = require("@instructure/ui-popover/lib/Popover");
var _uiReactUtils = require("@instructure/ui-react-utils");
var _uiTestable = require("@instructure/ui-testable");
var _uiPopover = require("@instructure/ui-popover");
var _emotion = require("@instructure/emotion");

@@ -54,3 +49,3 @@ var _styles = _interopRequireDefault(require("./styles"));

**/
let Tooltip = exports.Tooltip = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Tooltip extends _react.Component {
let Tooltip = exports.Tooltip = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Tooltip extends _react.Component {
constructor(props) {

@@ -98,4 +93,4 @@ super(props);

if (as) {
const Trigger = (0, _getElementType.getElementType)(Tooltip, this.props);
const props = (0, _omitProps.omitProps)(this.props, Tooltip.allowedProps);
const Trigger = (0, _uiReactUtils.getElementType)(Tooltip, this.props);
const props = (0, _uiReactUtils.omitProps)(this.props, Tooltip.allowedProps);
return (0, _emotion.jsx)(Trigger, Object.assign({}, props, triggerProps), children /*TODO check if it can be TooltipRenderChildren, this might cause a crash*/);

@@ -111,3 +106,3 @@ } else if (typeof children === 'function') {

} else {
return (0, _ensureSingleChild.ensureSingleChild)(children, triggerProps);
return (0, _uiReactUtils.ensureSingleChild)(children, triggerProps);
}

@@ -132,3 +127,3 @@ }

rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
return (0, _emotion.jsx)(_Popover.Popover, Object.assign({}, (0, _passthroughProps.passthroughProps)(rest), {
return (0, _emotion.jsx)(_uiPopover.Popover, Object.assign({}, (0, _uiReactUtils.passthroughProps)(rest), {
isShowingContent: isShowingContent,

@@ -158,3 +153,3 @@ defaultIsShowingContent: defaultIsShowingContent,

role: "tooltip"
}, (0, _callRenderProp.callRenderProp)(renderTip)));
}, (0, _uiReactUtils.callRenderProp)(renderTip)));
}

@@ -161,0 +156,0 @@ }, _class2.displayName = "Tooltip", _class2.componentId = 'Tooltip', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {

@@ -9,4 +9,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var _PositionPropTypes = require("@instructure/ui-position/lib/PositionPropTypes.js");
var _element = require("@instructure/ui-prop-types/lib/element.js");
var _uiPosition = require("@instructure/ui-position");
var _uiPropTypes = require("@instructure/ui-prop-types");
/*

@@ -48,8 +48,8 @@ * The MIT License (MIT)

color: _propTypes.default.oneOf(['primary', 'primary-inverse']),
placement: _PositionPropTypes.PositionPropTypes.placement,
mountNode: _PositionPropTypes.PositionPropTypes.mountNode,
constrain: _PositionPropTypes.PositionPropTypes.constrain,
placement: _uiPosition.PositionPropTypes.placement,
mountNode: _uiPosition.PositionPropTypes.mountNode,
constrain: _uiPosition.PositionPropTypes.constrain,
offsetX: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
offsetY: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
positionTarget: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]),
positionTarget: _propTypes.default.oneOfType([_uiPropTypes.element, _propTypes.default.func]),
onShowContent: _propTypes.default.func,

@@ -56,0 +56,0 @@ onHideContent: _propTypes.default.func

@@ -7,3 +7,3 @@ "use strict";

exports.customMethods = exports.TooltipLocator = void 0;
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
var _uiTestLocator = require("@instructure/ui-test-locator");
var _uiTestQueries = require("@instructure/ui-test-queries");

@@ -55,2 +55,2 @@ var _PopoverLocator = require("@instructure/ui-popover/lib/Popover/PopoverLocator");

// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
const TooltipLocator = exports.TooltipLocator = (0, _locator.locator)(_index.Tooltip.selector, customMethods);
const TooltipLocator = exports.TooltipLocator = (0, _uiTestLocator.locator)(_index.Tooltip.selector, customMethods);
{
"name": "@instructure/ui-tooltip",
"version": "8.56.5-pr-snapshot-1729507712924",
"version": "8.56.5-pr-snapshot-1729546148514",
"description": "A component for showing small text-only overlays on hover/focus.",

@@ -27,19 +27,19 @@ "author": "Instructure, Inc. Engineering and Product Design",

"@babel/runtime": "^7.23.2",
"@instructure/emotion": "8.56.5-pr-snapshot-1729507712924",
"@instructure/shared-types": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-popover": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-position": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-prop-types": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-testable": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-utils": "8.56.5-pr-snapshot-1729507712924",
"@instructure/emotion": "8.56.5-pr-snapshot-1729546148514",
"@instructure/shared-types": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-popover": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-position": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-prop-types": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-testable": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-utils": "8.56.5-pr-snapshot-1729546148514",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-color-utils": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-test-locator": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-test-queries": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1729507712924",
"@instructure/ui-themes": "8.56.5-pr-snapshot-1729507712924"
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-color-utils": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-test-locator": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-test-queries": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1729546148514",
"@instructure/ui-themes": "8.56.5-pr-snapshot-1729546148514"
},

@@ -46,0 +46,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc