@paprika/helpers
Advanced tools
Comparing version 2.2.0 to 2.2.1-next.0
# Changelog | ||
## 2.2.1-next.0 | ||
### Patch Changes | ||
- 63f9a05: Added `container` prop to Panel to support Shadow DOM | ||
## 2.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -8,5 +8,5 @@ export default Portal; | ||
declare namespace propTypes { | ||
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>; | ||
const active: PropTypes.Requireable<boolean>; | ||
const container: PropTypes.Requireable<PropTypes.ReactNodeLike>; | ||
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>; | ||
export const active: PropTypes.Requireable<boolean>; | ||
export { DOMElementType as container }; | ||
} | ||
@@ -18,5 +18,5 @@ declare namespace defaultProps { | ||
export { active_1 as active }; | ||
const container_1: null; | ||
export { container_1 as container }; | ||
export const container: null; | ||
} | ||
import PropTypes from "prop-types"; | ||
import { DOMElementType } from "../customPropTypes"; |
@@ -19,6 +19,8 @@ "use strict"; | ||
var _ = require(".."); | ||
var propTypes = { | ||
children: _propTypes["default"].node, | ||
active: _propTypes["default"].bool, | ||
container: _propTypes["default"].node | ||
container: _.DOMElementType | ||
}; | ||
@@ -25,0 +27,0 @@ var defaultProps = { |
@@ -32,2 +32,3 @@ export namespace ShirtSizes { | ||
}>>; | ||
export const DOMElementType: PropTypes.Requireable<Element | ShadowRoot>; | ||
import PropTypes from "prop-types"; |
@@ -11,3 +11,3 @@ "use strict"; | ||
exports.RefOf = exports.FocusPropTypes = exports.deprecated = exports.AlignTypes = exports.ShirtSizes = void 0; | ||
exports.DOMElementType = exports.RefOf = exports.FocusPropTypes = exports.deprecated = exports.AlignTypes = exports.ShirtSizes = void 0; | ||
@@ -79,2 +79,6 @@ var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values")); | ||
exports.RefOf = RefOf; | ||
var DOMElementType = _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(Element), _propTypes["default"].instanceOf(ShadowRoot)]); | ||
exports.DOMElementType = DOMElementType; | ||
//# sourceMappingURL=customPropTypes.js.map |
@@ -8,5 +8,5 @@ export default Portal; | ||
declare namespace propTypes { | ||
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>; | ||
const active: PropTypes.Requireable<boolean>; | ||
const container: PropTypes.Requireable<PropTypes.ReactNodeLike>; | ||
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>; | ||
export const active: PropTypes.Requireable<boolean>; | ||
export { DOMElementType as container }; | ||
} | ||
@@ -18,5 +18,5 @@ declare namespace defaultProps { | ||
export { active_1 as active }; | ||
const container_1: null; | ||
export { container_1 as container }; | ||
export const container: null; | ||
} | ||
import PropTypes from "prop-types"; | ||
import { DOMElementType } from "../customPropTypes"; |
import ReactDOM from "react-dom"; | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { DOMElementType } from ".."; | ||
var propTypes = { | ||
children: PropTypes.node, | ||
active: PropTypes.bool, | ||
container: PropTypes.node | ||
container: DOMElementType | ||
}; | ||
@@ -9,0 +10,0 @@ var defaultProps = { |
@@ -32,2 +32,3 @@ export namespace ShirtSizes { | ||
}>>; | ||
export var DOMElementType: PropTypes.Requireable<Element | ShadowRoot>; | ||
import PropTypes from "prop-types"; |
@@ -55,2 +55,3 @@ import _Object$values from "@babel/runtime-corejs2/core-js/object/values"; | ||
}; | ||
export var DOMElementType = PropTypes.oneOfType([PropTypes.instanceOf(Element), PropTypes.instanceOf(ShadowRoot)]); | ||
//# sourceMappingURL=customPropTypes.js.map |
{ | ||
"name": "@paprika/helpers", | ||
"version": "2.2.0", | ||
"version": "2.2.1-next.0", | ||
"description": "JavaScript and React helper utilities", | ||
@@ -5,0 +5,0 @@ "author": "@paprika", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
122149
1221
2