/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Widget
 */
/**
 * Describes the visibility and mounting state of a widget.
 * @public
 */
export var WidgetState;
(function (WidgetState) {
    /**
     * Both the widget tab and its content are visible.
     */
    WidgetState[WidgetState["Open"] = 0] = "Open";
    /**
     * The widget tab is visible, but the widget content is not visible.
     */
    WidgetState[WidgetState["Closed"] = 1] = "Closed";
    /**
     * Neither the widget tab nor its content are visible, but the widget's React node is still rendered.
     * Useful for pre-initialization and preserving widget state while the widget is not visible.
     */
    WidgetState[WidgetState["Hidden"] = 2] = "Hidden";
    /**
     * Widget is in a floating state. Widget content visibility depends on internal logic, but the widget tab is visible.
     */
    WidgetState[WidgetState["Floating"] = 3] = "Floating";
    /**
     * Neither the widget tab nor its content are visible, and the widget's React node is not rendered.
     * Changing the widget state to `Unloaded` will unmount the content node if it was previously rendered.
     */
    WidgetState[WidgetState["Unloaded"] = 4] = "Unloaded";
})(WidgetState || (WidgetState = {}));
//# sourceMappingURL=WidgetState.js.map