// #region Imports
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Orientable } from '../../../Behaviors/Orientable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { dividerElementTemplate } from './DividerElementTemplate';
import { dividerElementJoyStyle } from './Themes/DividerElement.Joy';
import { dividerElementMemphisStyle } from './Themes/DividerElement.Memphis';
import { dividerElementCosmopolitanStyle } from './Themes/DividerElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Divider - A visual separator element that creates distinct sections within layouts.
 *
 * Renders as a horizontal or vertical line to separate content areas, groups, or sections.
 * Supports customizable thickness and adapts styling based on the current theme.
 * Commonly used in menus, lists, forms, and content layouts.
 *
 * @name DividerElement
 * @element mosaik-divider
 * @category Primitive
 *
 * @csspart divider - The main divider line element
 *
 * @cssprop --divider-color - Color of the divider line
 * @cssprop --divider-thickness - Thickness of the divider line in pixels
 * @cssprop --divider-opacity - Opacity level of the divider
 * @cssprop --divider-margin - Margin space around the divider
 *
 * @example
 * ```html
 * <!-- Horizontal divider (default) -->
 * <div>Section 1</div>
 * <mosaik-divider></mosaik-divider>
 * <div>Section 2</div>
 *
 * <!-- Vertical divider -->
 * <div style="display: flex; align-items: center;">
 *   <span>Item 1</span>
 *   <mosaik-divider orientation="vertical"></mosaik-divider>
 *   <span>Item 2</span>
 * </div>
 *
 * <!-- Custom thickness divider -->
 * <mosaik-divider thickness="3"></mosaik-divider>
 *
 * <!-- In navigation menu -->
 * <nav>
 *   <a href="/home">Home</a>
 *   <mosaik-divider orientation="vertical"></mosaik-divider>
 *   <a href="/about">About</a>
 *   <mosaik-divider orientation="vertical"></mosaik-divider>
 *   <a href="/contact">Contact</a>
 * </nav>
 * ```
 *
 * @public
 */
let DividerElement = class DividerElement extends Themeable(Orientable(CustomElement)) {
    // #region Fields
    _thickness;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._thickness = undefined;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-divider';
    }
    // #endregion
    // #region Methods
    /**
     * Gets or sets the thickness property.
     *
     * @public
     * @attr
     */
    get thickness() {
        return this._thickness;
    }
    set thickness(value) {
        if (this._thickness !== value) {
            this._thickness = value;
            this.requestUpdate('thickness');
        }
    }
};
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], DividerElement.prototype, "thickness", null);
DividerElement = __decorate([
    Component({
        selector: 'mosaik-divider',
        template: dividerElementTemplate,
        themes: {
            joy: dividerElementJoyStyle,
            memphis: dividerElementMemphisStyle,
            cosmopolitan: dividerElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], DividerElement);
export { DividerElement };
//# sourceMappingURL=DividerElement.js.map