@visx/group
Advanced tools
Comparing version 3.0.0-alpha.0 to 3.0.0
import _pt from "prop-types"; | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var _excluded = ["top", "left", "transform", "className", "children", "innerRef"]; | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import React from 'react'; | ||
@@ -11,11 +9,10 @@ import cx from 'classnames'; | ||
var _ref$top = _ref.top, | ||
top = _ref$top === void 0 ? 0 : _ref$top, | ||
_ref$left = _ref.left, | ||
left = _ref$left === void 0 ? 0 : _ref$left, | ||
transform = _ref.transform, | ||
className = _ref.className, | ||
children = _ref.children, | ||
innerRef = _ref.innerRef, | ||
restProps = _objectWithoutPropertiesLoose(_ref, ["top", "left", "transform", "className", "children", "innerRef"]); | ||
top = _ref$top === void 0 ? 0 : _ref$top, | ||
_ref$left = _ref.left, | ||
left = _ref$left === void 0 ? 0 : _ref$left, | ||
transform = _ref.transform, | ||
className = _ref.className, | ||
children = _ref.children, | ||
innerRef = _ref.innerRef, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
return /*#__PURE__*/React.createElement("g", _extends({ | ||
@@ -22,0 +19,0 @@ ref: innerRef, |
@@ -5,26 +5,19 @@ "use strict"; | ||
exports.default = Group; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _excluded = ["top", "left", "transform", "className", "children", "innerRef"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
function Group(_ref) { | ||
var _ref$top = _ref.top, | ||
top = _ref$top === void 0 ? 0 : _ref$top, | ||
_ref$left = _ref.left, | ||
left = _ref$left === void 0 ? 0 : _ref$left, | ||
transform = _ref.transform, | ||
className = _ref.className, | ||
children = _ref.children, | ||
innerRef = _ref.innerRef, | ||
restProps = _objectWithoutPropertiesLoose(_ref, ["top", "left", "transform", "className", "children", "innerRef"]); | ||
top = _ref$top === void 0 ? 0 : _ref$top, | ||
_ref$left = _ref.left, | ||
left = _ref$left === void 0 ? 0 : _ref$left, | ||
transform = _ref.transform, | ||
className = _ref.className, | ||
children = _ref.children, | ||
innerRef = _ref.innerRef, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
return /*#__PURE__*/_react.default.createElement("g", _extends({ | ||
@@ -36,3 +29,2 @@ ref: innerRef, | ||
} | ||
Group.propTypes = { | ||
@@ -39,0 +31,0 @@ top: _propTypes.default.number, |
@@ -5,7 +5,4 @@ "use strict"; | ||
exports.Group = void 0; | ||
var _Group = _interopRequireDefault(require("./Group")); | ||
exports.Group = _Group.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "@visx/group", | ||
"version": "3.0.0-alpha.0", | ||
"version": "3.0.0", | ||
"description": "visx group", | ||
@@ -32,3 +32,3 @@ "sideEffects": false, | ||
"peerDependencies": { | ||
"react": "^16.0.0-0 || ^17.0.0-0" | ||
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0" | ||
}, | ||
@@ -43,3 +43,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "2f2fb26030b5f1328803b2bd7de171d66e088aff" | ||
"gitHead": "2fbffbaee80b88302274266112f8ad9a241def33" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7888
88
0