@popsure/dirty-swan 0.27.15 → 0.27.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13562,7 +13562,7 @@ var ChevronSVG = function (_a) {
13562
13562
  return (jsxRuntime.jsx("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className }, { children: jsxRuntime.jsx("path", { d: "M18 15L12 9L6 15", stroke: "#b4b4ba", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, void 0) }), void 0));
13563
13563
  };
13564
13564
  var AccordionItem = function (_a) {
13565
- var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.headerClassName, headerClassName = _c === void 0 ? '' : _c, _d = _a.iconSrc, iconSrc = _d === void 0 ? '' : _d, isOpen = _a.isOpen, onOpen = _a.onOpen, onClose = _a.onClose, title = _a.title;
13565
+ var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.headerClassName, headerClassName = _c === void 0 ? '' : _c, isOpen = _a.isOpen, onOpen = _a.onOpen, onClose = _a.onClose, label = _a.label;
13566
13566
  var handleClick = function () {
13567
13567
  if (!isOpen) {
13568
13568
  onOpen();
@@ -13571,8 +13571,7 @@ var AccordionItem = function (_a) {
13571
13571
  onClose();
13572
13572
  }
13573
13573
  };
13574
- return (jsxRuntime.jsxs("div", __assign({ className: "d-flex fd-column " + className + " " + styles$7.container }, { children: [jsxRuntime.jsxs("button", __assign({ className: "d-flex ai-center jc-between " + styles$7.headerButton + " " + headerClassName, onClick: handleClick, type: "button" }, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex ai-center " + styles$7.iconAndTextContainer }, { children: [!!iconSrc && jsxRuntime.jsx("img", { src: iconSrc, alt: title + " icon" }, void 0),
13575
- jsxRuntime.jsx("h4", __assign({ className: "p-h4" }, { children: title }), void 0)] }), void 0),
13574
+ return (jsxRuntime.jsxs("div", __assign({ className: "d-flex fd-column " + className + " " + styles$7.container }, { children: [jsxRuntime.jsxs("button", __assign({ className: "d-flex ai-center jc-between " + styles$7.headerButton + " " + headerClassName, onClick: handleClick, type: "button" }, { children: [jsxRuntime.jsx("div", __assign({ className: "d-flex ai-center " + styles$7.iconAndTextContainer }, { children: typeof label === 'string' ? (jsxRuntime.jsx("h4", __assign({ className: "p-h4" }, { children: label }), void 0)) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: label }, void 0)) }), void 0),
13576
13575
  jsxRuntime.jsx(ChevronSVG, { className: styles$7.chevron + " " + (!isOpen && styles$7.chevronClosed) }, void 0)] }), void 0),
13577
13576
  jsxRuntime.jsx(AnimateHeight, __assign({ duration: 300, height: isOpen ? 'auto' : 0.1 }, { children: children }), void 0)] }), void 0));
13578
13577
  };
@@ -13819,7 +13818,7 @@ var ComparisonTable = function (props) {
13819
13818
  return null;
13820
13819
  return (jsxRuntime.jsx(Row$1, { rowId: rowId, cell: cell, data: data }, rowId));
13821
13820
  });
13822
- return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerGroup.label && collapsibleSections ? (jsxRuntime.jsx(AccordionItem, __assign({ className: "mt8", title: String(headerGroup.label), headerClassName: "p24 br8", isOpen: selectedSection === String(headerGroup.label), onOpen: function () {
13821
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerGroup.label && collapsibleSections ? (jsxRuntime.jsx(AccordionItem, __assign({ className: "mt8", label: headerGroup.label, headerClassName: "p24 br8", isOpen: selectedSection === String(headerGroup.label), onOpen: function () {
13823
13822
  return setSelectedSection(String(headerGroup.label));
13824
13823
  }, onClose: function () { return setSelectedSection(''); } }, { children: jsxRuntime.jsx(dist.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.container, styles === null || styles === void 0 ? void 0 : styles.container, (_a = {},
13825
13824
  _a[baseStyles.noScrollBars] = hideScrollBars,