chaser-components
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -1964,5 +1964,6 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
space: "xsmall", | ||
className: cx(style$f.accordionItem, open && style$f.open) | ||
}, /*#__PURE__*/React.createElement("button", { | ||
type: "button", | ||
onClick: () => setOpen(!open), | ||
className: cx(style$f.accordionItem, open && style$f.open) | ||
}, /*#__PURE__*/React.createElement("div", { | ||
className: style$f.header | ||
@@ -1969,0 +1970,0 @@ }, createHeader(header, open)), open && /*#__PURE__*/React.createElement("div", { |
@@ -1960,5 +1960,6 @@ import cx from 'classnames'; | ||
space: "xsmall", | ||
className: cx(style$f.accordionItem, open && style$f.open) | ||
}, /*#__PURE__*/createElement("button", { | ||
type: "button", | ||
onClick: () => setOpen(!open), | ||
className: cx(style$f.accordionItem, open && style$f.open) | ||
}, /*#__PURE__*/createElement("div", { | ||
className: style$f.header | ||
@@ -1965,0 +1966,0 @@ }, createHeader(header, open)), open && /*#__PURE__*/createElement("div", { |
{ | ||
"name": "chaser-components", | ||
"description": "Chaser HQ Component Library", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.modern.js", |
@@ -26,6 +26,5 @@ import * as React from 'react'; | ||
space="xsmall" | ||
onClick={() => setOpen(!open)} | ||
className={cx(style.accordionItem, open && style.open)} | ||
> | ||
<div className={style.header}>{createHeader(header, open)}</div> | ||
<button type="button" onClick={() => setOpen(!open)} className={style.header}>{createHeader(header, open)}</button> | ||
{open && <div className={style.content}>{createContent(content)}</div>} | ||
@@ -32,0 +31,0 @@ </Stack> |
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
567880
7943