@reach/accordion
Advanced tools
Comparing version 0.8.5 to 0.8.6
@@ -30,11 +30,5 @@ 'use strict'; | ||
var AccordionDescendantContext = | ||
/*#__PURE__*/ | ||
descendants.createDescendantContext("AccordionDescendantContext"); | ||
var AccordionContext = | ||
/*#__PURE__*/ | ||
utils.createNamedContext("AccordionContext", {}); | ||
var AccordionItemContext = | ||
/*#__PURE__*/ | ||
utils.createNamedContext("AccordionItemContext", {}); | ||
var AccordionDescendantContext = /*#__PURE__*/descendants.createDescendantContext("AccordionDescendantContext"); | ||
var AccordionContext = /*#__PURE__*/utils.createNamedContext("AccordionContext", {}); | ||
var AccordionItemContext = /*#__PURE__*/utils.createNamedContext("AccordionItemContext", {}); | ||
@@ -65,5 +59,3 @@ var useAccordionContext = function useAccordionContext() { | ||
var Accordion = | ||
/*#__PURE__*/ | ||
React.forwardRef(function Accordion(_ref, forwardedRef) { | ||
var Accordion = /*#__PURE__*/React.forwardRef(function Accordion(_ref, forwardedRef) { | ||
var children = _ref.children, | ||
@@ -203,7 +195,3 @@ defaultIndex = _ref.defaultIndex, | ||
children: PropTypes.node.isRequired, | ||
defaultIndex: | ||
/*#__PURE__*/ | ||
PropTypes.oneOfType([PropTypes.number, | ||
/*#__PURE__*/ | ||
PropTypes.arrayOf(PropTypes.number)]), | ||
defaultIndex: /*#__PURE__*/PropTypes.oneOfType([PropTypes.number, /*#__PURE__*/PropTypes.arrayOf(PropTypes.number)]), | ||
index: function index(props, name, compName, location, propName) { | ||
@@ -253,5 +241,3 @@ var val = props[name]; | ||
var AccordionItem = | ||
/*#__PURE__*/ | ||
utils.forwardRefWithAs(function AccordionItem(_ref2, forwardedRef) { | ||
var AccordionItem = /*#__PURE__*/utils.forwardRefWithAs(function AccordionItem(_ref2, forwardedRef) { | ||
var _ref2$as = _ref2.as, | ||
@@ -321,5 +307,3 @@ Comp = _ref2$as === void 0 ? "div" : _ref2$as, | ||
var AccordionButton = | ||
/*#__PURE__*/ | ||
utils.forwardRefWithAs(function AccordionButton(_ref3, forwardedRef) { | ||
var AccordionButton = /*#__PURE__*/utils.forwardRefWithAs(function AccordionButton(_ref3, forwardedRef) { | ||
var _ref3$as = _ref3.as, | ||
@@ -403,5 +387,3 @@ Comp = _ref3$as === void 0 ? "button" : _ref3$as, | ||
var AccordionPanel = | ||
/*#__PURE__*/ | ||
utils.forwardRefWithAs(function AccordionPanel(_ref4, forwardedRef) { | ||
var AccordionPanel = /*#__PURE__*/utils.forwardRefWithAs(function AccordionPanel(_ref4, forwardedRef) { | ||
var _ref4$as = _ref4.as, | ||
@@ -408,0 +390,0 @@ Comp = _ref4$as === void 0 ? "div" : _ref4$as, |
@@ -23,11 +23,5 @@ import React, { forwardRef, useRef, useState, useCallback, useMemo, useEffect, useContext } from 'react'; | ||
var AccordionDescendantContext = | ||
/*#__PURE__*/ | ||
createDescendantContext("AccordionDescendantContext"); | ||
var AccordionContext = | ||
/*#__PURE__*/ | ||
createNamedContext("AccordionContext", {}); | ||
var AccordionItemContext = | ||
/*#__PURE__*/ | ||
createNamedContext("AccordionItemContext", {}); | ||
var AccordionDescendantContext = /*#__PURE__*/createDescendantContext("AccordionDescendantContext"); | ||
var AccordionContext = /*#__PURE__*/createNamedContext("AccordionContext", {}); | ||
var AccordionItemContext = /*#__PURE__*/createNamedContext("AccordionItemContext", {}); | ||
@@ -61,5 +55,3 @@ var useAccordionContext = function useAccordionContext() { | ||
var Accordion = | ||
/*#__PURE__*/ | ||
forwardRef(function Accordion(_ref, forwardedRef) { | ||
var Accordion = /*#__PURE__*/forwardRef(function Accordion(_ref, forwardedRef) { | ||
var children = _ref.children, | ||
@@ -199,7 +191,3 @@ defaultIndex = _ref.defaultIndex, | ||
children: PropTypes.node.isRequired, | ||
defaultIndex: | ||
/*#__PURE__*/ | ||
PropTypes.oneOfType([PropTypes.number, | ||
/*#__PURE__*/ | ||
PropTypes.arrayOf(PropTypes.number)]), | ||
defaultIndex: /*#__PURE__*/PropTypes.oneOfType([PropTypes.number, /*#__PURE__*/PropTypes.arrayOf(PropTypes.number)]), | ||
index: function index(props, name, compName, location, propName) { | ||
@@ -249,5 +237,3 @@ var val = props[name]; | ||
var AccordionItem = | ||
/*#__PURE__*/ | ||
forwardRefWithAs(function AccordionItem(_ref2, forwardedRef) { | ||
var AccordionItem = /*#__PURE__*/forwardRefWithAs(function AccordionItem(_ref2, forwardedRef) { | ||
var _ref2$as = _ref2.as, | ||
@@ -317,5 +303,3 @@ Comp = _ref2$as === void 0 ? "div" : _ref2$as, | ||
var AccordionButton = | ||
/*#__PURE__*/ | ||
forwardRefWithAs(function AccordionButton(_ref3, forwardedRef) { | ||
var AccordionButton = /*#__PURE__*/forwardRefWithAs(function AccordionButton(_ref3, forwardedRef) { | ||
var _ref3$as = _ref3.as, | ||
@@ -399,5 +383,3 @@ Comp = _ref3$as === void 0 ? "button" : _ref3$as, | ||
var AccordionPanel = | ||
/*#__PURE__*/ | ||
forwardRefWithAs(function AccordionPanel(_ref4, forwardedRef) { | ||
var AccordionPanel = /*#__PURE__*/forwardRefWithAs(function AccordionPanel(_ref4, forwardedRef) { | ||
var _ref4$as = _ref4.as, | ||
@@ -404,0 +386,0 @@ Comp = _ref4$as === void 0 ? "div" : _ref4$as, |
{ | ||
"name": "@reach/accordion", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "Accessible React accordion component", | ||
@@ -18,5 +18,5 @@ "author": "React Training <hello@reacttraining.com>", | ||
"dependencies": { | ||
"@reach/auto-id": "^0.8.5", | ||
"@reach/descendants": "^0.8.5", | ||
"@reach/utils": "^0.8.5", | ||
"@reach/auto-id": "^0.8.6", | ||
"@reach/descendants": "^0.8.6", | ||
"@reach/utils": "^0.8.6", | ||
"tslib": "^1.10.0", | ||
@@ -37,3 +37,3 @@ "warning": "^4.0.3" | ||
], | ||
"gitHead": "ac419cf63d0827016ca448bf95482bcd4c5f879e" | ||
"gitHead": "0c71a018a11055b17815f0fb127cdcd981cd760e" | ||
} |
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
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
136492
938
Updated@reach/auto-id@^0.8.6
Updated@reach/descendants@^0.8.6
Updated@reach/utils@^0.8.6