opus-toolkit-components 0.2.6 → 0.2.7
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.
|
@@ -585,21 +585,21 @@ const Accordion = _ref => {
|
|
|
585
585
|
setInternalActiveIndex(activeIndex);
|
|
586
586
|
}
|
|
587
587
|
}, [activeIndex]);
|
|
588
|
-
return /*#__PURE__*/
|
|
588
|
+
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
589
589
|
className: "accordion rounded-md"
|
|
590
|
-
}, /*#__PURE__*/
|
|
590
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
591
591
|
className: "accordion-item border-2 rounded-lg border-gray-200",
|
|
592
592
|
key: index
|
|
593
|
-
}, /*#__PURE__*/
|
|
593
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
594
594
|
className: "accordion-header flex justify-between p-2",
|
|
595
595
|
onClick: toggle // Handle both internal and external toggles
|
|
596
596
|
,
|
|
597
597
|
style: {
|
|
598
598
|
cursor: "pointer"
|
|
599
599
|
}
|
|
600
|
-
}, /*#__PURE__*/
|
|
601
|
-
className: "text-
|
|
602
|
-
}, title), /*#__PURE__*/
|
|
600
|
+
}, /*#__PURE__*/external_react_default().createElement("h2", {
|
|
601
|
+
className: "text-1xl text-gray-800"
|
|
602
|
+
}, title), /*#__PURE__*/external_react_default().createElement("div", null, isActive ? "-" : "+"))), isActive && /*#__PURE__*/external_react_default().createElement("div", {
|
|
603
603
|
className: "accordion-body p-2"
|
|
604
604
|
}, children));
|
|
605
605
|
};
|
|
@@ -9029,9 +9029,6 @@ function Dropdown(_ref) {
|
|
|
9029
9029
|
value: selectedValue
|
|
9030
9030
|
}
|
|
9031
9031
|
};
|
|
9032
|
-
|
|
9033
|
-
// Log the synthetic event
|
|
9034
|
-
console.log('Synthetic event:', event);
|
|
9035
9032
|
onChange(event); // Pass the synthetic event object
|
|
9036
9033
|
};
|
|
9037
9034
|
return /*#__PURE__*/external_react_default().createElement(rn, {
|
|
@@ -9055,6 +9052,8 @@ function Dropdown(_ref) {
|
|
|
9055
9052
|
active
|
|
9056
9053
|
} = _ref2;
|
|
9057
9054
|
return /*#__PURE__*/external_react_default().createElement("button", {
|
|
9055
|
+
type: "button" // Prevent form submission
|
|
9056
|
+
,
|
|
9058
9057
|
onClick: () => handleSelect(item.value),
|
|
9059
9058
|
className: `block w-full px-4 py-2 text-left text-sm text-gray-700 ${active ? 'bg-gray-100 text-gray-900' : ''}`
|
|
9060
9059
|
}, item.label);
|
|
@@ -9075,4 +9074,4 @@ function Dropdown(_ref) {
|
|
|
9075
9074
|
/******/ })()
|
|
9076
9075
|
;
|
|
9077
9076
|
});
|
|
9078
|
-
//# sourceMappingURL=main.
|
|
9077
|
+
//# sourceMappingURL=main.b13d480da4cf0f5654a5.js.map
|