opus-toolkit-components 1.2.0 → 1.2.1
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.
|
@@ -830,12 +830,12 @@ const Accordion = _ref => {
|
|
|
830
830
|
}, [activeIndex]);
|
|
831
831
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
832
832
|
id: "accordion-".concat(index),
|
|
833
|
-
className: "\n accordion\n border border-[--color-stroke]\n w-full\n ".concat(disabled ?
|
|
833
|
+
className: "\n accordion\n border border-[--color-stroke]\n w-full\n shadow-lg\n ".concat(disabled ? 'opacity-50 pointer-events-none' : '', "\n ").concat(isActive || isPreview ? 'rounded-lg' : 'rounded-lg', "\n ")
|
|
834
834
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
835
835
|
className: "accordion-item",
|
|
836
836
|
key: index
|
|
837
837
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
838
|
-
className: "\n accordion-header\n flex justify-between items-center cursor-pointer\n bg-[--color-accordion-header]\n rounded-t-lg\n ".concat(isActive || isPreview ?
|
|
838
|
+
className: "\n accordion-header\n flex justify-between items-center cursor-pointer\n bg-[--color-accordion-header]\n rounded-t-lg\n ".concat(isActive || isPreview ? '' : 'rounded-b-lg', "\n ")
|
|
839
839
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
840
840
|
className: "flex items-center gap-2 justify-between cursor-pointer"
|
|
841
841
|
}, /*#__PURE__*/external_react_default().createElement("h2", {
|
|
@@ -856,7 +856,7 @@ const Accordion = _ref => {
|
|
|
856
856
|
onExitPreview(); // trigger exit
|
|
857
857
|
}
|
|
858
858
|
}) : /*#__PURE__*/external_react_default().createElement(esm_ChevronDownIcon, {
|
|
859
|
-
className: "w-4 h-4 text-[--color-text-strong] transition-transform transform ".concat(isActive ?
|
|
859
|
+
className: "w-4 h-4 text-[--color-text-strong] transition-transform transform ".concat(isActive ? 'rotate-180' : 'rotate-0')
|
|
860
860
|
}))))), isActive && /*#__PURE__*/external_react_default().createElement("div", {
|
|
861
861
|
className: "accordion-body rounded-b-lg text-[--color-text-weak] bg-[--color-accordion-body] border-0 border-t-2 border-solid border-[--color-stroke] p-3"
|
|
862
862
|
}, children.content), isPreview && activeIndex !== index && /*#__PURE__*/external_react_default().createElement("div", {
|
|
@@ -3708,6 +3708,7 @@ const getDataCy = function () {
|
|
|
3708
3708
|
|
|
3709
3709
|
// Import a spinner icon
|
|
3710
3710
|
|
|
3711
|
+
// test 2 for Husky
|
|
3711
3712
|
function Button(_ref) {
|
|
3712
3713
|
let {
|
|
3713
3714
|
type = 'button',
|
|
@@ -12774,7 +12775,7 @@ function Dropdown(_ref) {
|
|
|
12774
12775
|
className: "-mr-1 h-5 w-5 text-[--color-text-weak] transition-transform duration-200 ".concat(isOpen ? 'rotate-180' : 'rotate-0')
|
|
12775
12776
|
}))), !disabled && /*#__PURE__*/external_react_default().createElement(Pt, {
|
|
12776
12777
|
transition: true,
|
|
12777
|
-
className: "absolute
|
|
12778
|
+
className: " absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-[--color-primary-bg] shadow-lg ring-1 ring-[--color-stroke] ring-opacity-1 transition focus:outline-none max-h-48 overflow-y-auto ",
|
|
12778
12779
|
onClick: () => setIsOpen(false)
|
|
12779
12780
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
12780
12781
|
className: "py-1"
|
|
@@ -13017,4 +13018,4 @@ const CookieBanner = _ref => {
|
|
|
13017
13018
|
/******/ })()
|
|
13018
13019
|
;
|
|
13019
13020
|
});
|
|
13020
|
-
//# sourceMappingURL=main.
|
|
13021
|
+
//# sourceMappingURL=main.8da5d73984c35f0a61f6.js.map
|