import QtQuick
import "../config" as Cfg

PopupPanel {
    id: popup

    property color cardColor: "transparent"
    property color cardBorderColor: "transparent"
    property alias cardHeight: card.height
    property alias showShadow: card.showShadow
    property bool  layerEnabled: false
    property alias hasKeyboardFocus: popup.hasKeyboardFocus
    property alias card: card
    property int activeTab: 0

    default property alias popupContent: card._popupCardContent

    PopupCard {
        id: card
        popupOpen: popup.popupOpen
        isTop: popup.chipRoot ? popup.chipRoot.isTop : true
        animEnabled: popup.visible
        color: popup.cardColor
        radius: Cfg.Config.popupRadius
        border.color: popup.cardBorderColor
        border.width: Cfg.Config.popupBorderWidth
        layer.enabled: popup.layerEnabled

        Behavior on height  { NumberAnimation { duration: 220; easing.type: Easing.OutCubic } }
    }
}
