opus-toolkit-components 1.0.1 → 1.0.3
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.
|
@@ -802,7 +802,8 @@ const Accordion = _ref => {
|
|
|
802
802
|
isPill = false,
|
|
803
803
|
pillText,
|
|
804
804
|
pillStatus,
|
|
805
|
-
pillIcon
|
|
805
|
+
pillIcon,
|
|
806
|
+
disabled = false
|
|
806
807
|
} = _ref;
|
|
807
808
|
const [internalActiveIndex, setInternalActiveIndex] = (0,external_react_.useState)(null);
|
|
808
809
|
|
|
@@ -826,20 +827,29 @@ const Accordion = _ref => {
|
|
|
826
827
|
}, [activeIndex]);
|
|
827
828
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
828
829
|
id: `accordion-${index}`,
|
|
829
|
-
className:
|
|
830
|
+
className: `
|
|
831
|
+
accordion
|
|
832
|
+
rounded-md
|
|
833
|
+
bg-[--color-primary-bg]
|
|
834
|
+
border border-[--color-stroke]
|
|
835
|
+
w-full
|
|
836
|
+
${disabled ? "opacity-50 pointer-events-none" : ""}
|
|
837
|
+
`
|
|
830
838
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
831
839
|
className: "accordion-item rounded-lg",
|
|
832
840
|
key: index
|
|
833
841
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
834
842
|
className: "accordion-header flex justify-between items-center py-2 px-4 cursor-pointer",
|
|
835
843
|
onClick: toggle
|
|
844
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
845
|
+
className: "flex items-center gap-2 justify-between cursor-pointer"
|
|
836
846
|
}, isPill ? /*#__PURE__*/external_react_default().createElement(Pills_Pill, {
|
|
837
847
|
text: pillText,
|
|
838
848
|
status: pillStatus,
|
|
839
849
|
icon: pillIcon
|
|
840
850
|
}) : null, /*#__PURE__*/external_react_default().createElement("h2", {
|
|
841
851
|
className: "text-h4 text-[--color-text-strong]"
|
|
842
|
-
}, title), isPreview ? /*#__PURE__*/external_react_default().createElement(esm_PencilSquareIcon, {
|
|
852
|
+
}, title)), isPreview ? /*#__PURE__*/external_react_default().createElement(esm_PencilSquareIcon, {
|
|
843
853
|
className: "w-5 h-5 text-[--color-text-strong]"
|
|
844
854
|
}) : /*#__PURE__*/external_react_default().createElement(esm_ChevronDownIcon, {
|
|
845
855
|
className: `w-4 h-4 text-[--color-text-strong] transition-transform transform ${isActive ? "rotate-180" : "rotate-0"}`
|
|
@@ -12922,4 +12932,4 @@ function Loader(_ref) {
|
|
|
12922
12932
|
/******/ })()
|
|
12923
12933
|
;
|
|
12924
12934
|
});
|
|
12925
|
-
//# sourceMappingURL=main.
|
|
12935
|
+
//# sourceMappingURL=main.f38c49804e7248368b68.js.map
|