@hashicorp/react-accordion
Advanced tools
Comparing version 0.2.3-alpha.43 to 0.2.3-alpha.45
@@ -163,7 +163,7 @@ 'use strict'; | ||
function AccordionItem(props) { | ||
var heading = props.heading, | ||
children = props.children, | ||
isCollapsed = props.isCollapsed, | ||
toggleCollapsed = props.toggleCollapsed; | ||
function AccordionItem(_ref) { | ||
var heading = _ref.heading, | ||
children = _ref.children, | ||
isCollapsed = _ref.isCollapsed, | ||
toggleCollapsed = _ref.toggleCollapsed; | ||
return /*#__PURE__*/React__default.createElement("div", { | ||
@@ -190,3 +190,5 @@ className: "g-accordion-item" | ||
function AccordionItems(props) { | ||
function AccordionItems(_ref2) { | ||
var items = _ref2.items; | ||
var _useState = React.useState(null), | ||
@@ -197,3 +199,2 @@ _useState2 = _slicedToArray(_useState, 2), | ||
var items = props.items; | ||
return /*#__PURE__*/React__default.createElement("div", { | ||
@@ -223,5 +224,5 @@ className: "g-accordion-items" | ||
function Accordion(props) { | ||
var heading = props.heading, | ||
items = props.items; | ||
function Accordion(_ref) { | ||
var heading = _ref.heading, | ||
items = _ref.items; | ||
return /*#__PURE__*/React__default.createElement("section", { | ||
@@ -228,0 +229,0 @@ className: "g-accordion" |
{ | ||
"name": "@hashicorp/react-accordion", | ||
"version": "0.2.3-alpha.43+7662925d", | ||
"version": "0.2.3-alpha.45+03faf699", | ||
"description": "A block that displays a set of title + content items, with content collapsed by default, but expandable to view. Also includes an optional heading for the block.", | ||
@@ -19,3 +19,3 @@ "main": "dist", | ||
}, | ||
"gitHead": "7662925dab5bbfbf0947f78a0550d014377d9de8" | ||
"gitHead": "03faf699668bedc1cc965b2b0e872a89f276e6ea" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
29082
335