@eightshift/ui-components 1.2.1 → 1.2.2
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.
|
@@ -72,10 +72,10 @@ const ContainerPanel = (props) => {
|
|
|
72
72
|
Button,
|
|
73
73
|
{
|
|
74
74
|
onPress: () => setOpen(!open),
|
|
75
|
-
icon: open ? icons.caretDownFill : icons.caretDown,
|
|
75
|
+
icon: (typeof use !== "undefined" ? open && use : open) ? icons.caretDownFill : icons.caretDown,
|
|
76
76
|
type: "ghost",
|
|
77
77
|
size: "small",
|
|
78
|
-
className: clsx("[&>svg]:es-uic-size-5 [&>svg]:es-uic-transition-transform", open && "[&>svg]:-es-uic-scale-y-100"),
|
|
78
|
+
className: clsx("[&>svg]:es-uic-size-5 [&>svg]:es-uic-transition-transform", (typeof use !== "undefined" ? open && use : open) && "[&>svg]:-es-uic-scale-y-100"),
|
|
79
79
|
disabled: typeof use !== "undefined" && !use
|
|
80
80
|
}
|
|
81
81
|
)
|
|
@@ -106,7 +106,7 @@ const ContainerPanel = (props) => {
|
|
|
106
106
|
children
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
typeof use !== "undefined" &&
|
|
109
|
+
typeof use !== "undefined" && /* @__PURE__ */ jsx(
|
|
110
110
|
AnimatedVisibility,
|
|
111
111
|
{
|
|
112
112
|
visible: closable ? use && open : use,
|