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

rc-tooltip

Package Overview
Dependencies
Maintainers
7
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tooltip - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

2

es/Content.d.ts

@@ -1,2 +0,2 @@

import React from 'react';
import * as React from 'react';
export interface ContentProps {

@@ -3,0 +3,0 @@ prefixCls?: string;

@@ -1,2 +0,2 @@

import React from 'react';
import * as React from 'react';

@@ -3,0 +3,0 @@ var Content = function Content(props) {

@@ -1,2 +0,2 @@

import React from 'react';
import * as React from 'react';
import { TriggerProps } from 'rc-trigger';

@@ -3,0 +3,0 @@ import { AlignType, AnimationType, ActionType } from 'rc-trigger/lib/interface';

@@ -13,3 +13,4 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

import React, { useRef, useImperativeHandle, forwardRef } from 'react';
import * as React from 'react';
import { useRef, useImperativeHandle, forwardRef } from 'react';
import Trigger from 'rc-trigger';

@@ -16,0 +17,0 @@ import { placements } from './placements';

@@ -1,2 +0,2 @@

import React from 'react';
import * as React from 'react';
export interface ContentProps {

@@ -3,0 +3,0 @@ prefixCls?: string;

"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {

@@ -8,6 +10,8 @@ value: true

var _react = _interopRequireDefault(require("react"));
var React = _interopRequireWildcard(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var Content = function Content(props) {

@@ -18,3 +22,3 @@ var overlay = props.overlay,

overlayInnerStyle = props.overlayInnerStyle;
return _react.default.createElement("div", {
return React.createElement("div", {
className: "".concat(prefixCls, "-inner"),

@@ -21,0 +25,0 @@ id: id,

@@ -1,2 +0,2 @@

import React from 'react';
import * as React from 'react';
import { TriggerProps } from 'rc-trigger';

@@ -3,0 +3,0 @@ import { AlignType, AnimationType, ActionType } from 'rc-trigger/lib/interface';

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

var _react = _interopRequireWildcard(require("react"));
var React = _interopRequireWildcard(require("react"));

@@ -62,4 +62,4 @@ var _rcTrigger = _interopRequireDefault(require("rc-trigger"));

var domRef = (0, _react.useRef)(null);
(0, _react.useImperativeHandle)(ref, function () {
var domRef = (0, React.useRef)(null);
(0, React.useImperativeHandle)(ref, function () {
return domRef.current;

@@ -79,6 +79,6 @@ });

id = props.id;
return [_react.default.createElement("div", {
return [React.createElement("div", {
className: "".concat(prefixCls, "-arrow"),
key: "arrow"
}, arrowContent), _react.default.createElement(_Content.default, {
}, arrowContent), React.createElement(_Content.default, {
key: "content",

@@ -103,3 +103,3 @@ prefixCls: prefixCls,

return _react.default.createElement(_rcTrigger.default, Object.assign({
return React.createElement(_rcTrigger.default, Object.assign({
popupClassName: overlayClassName,

@@ -127,4 +127,4 @@ prefixCls: prefixCls,

var _default = (0, _react.forwardRef)(Tooltip);
var _default = (0, React.forwardRef)(Tooltip);
exports.default = _default;
{
"name": "rc-tooltip",
"version": "4.2.1",
"version": "4.2.2",
"description": "React Tooltip",

@@ -43,3 +43,3 @@ "keywords": [

"devDependencies": {
"@types/jest": "^25.1.0",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.9",

@@ -52,2 +52,3 @@ "@types/react-dom": "^16.9.2",

"enzyme-to-json": "^3.4.3",
"eslint": "^7.1.0",
"father": "^2.23.1",

@@ -54,0 +55,0 @@ "less": "^3.11.1",

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