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;
};
import { css, html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { styleMap } from 'lit/directives/style-map.js';
// FIXME: horizontal
let MenuDivider = class MenuDivider extends LitElement {
    constructor() {
        super(...arguments);
        this.vertical = false;
        this.dividerMargin = 7;
    }
    render() {
        const dividerStyles = styleMap({
            '--divider-margin': `${this.dividerMargin}px`,
        });
        return html `<div
      class="divider ${this.vertical ? 'vertical' : 'horizontal'}"
      style=${dividerStyles}
    ></div>`;
    }
};
MenuDivider.styles = css `
    :host {
      display: inline-block;
    }

    .divider {
      background-color: var(--affine-border-color);
    }

    .divider.vertical {
      width: 1px;
      height: 100%;
      margin: 0 var(--divider-margin);
    }

    .divider.horizontal {
      width: 100%;
      height: 1px;
      margin: var(--divider-margin) 0;
    }
  `;
__decorate([
    property({ attribute: false })
], MenuDivider.prototype, "vertical", void 0);
__decorate([
    property({ attribute: false })
], MenuDivider.prototype, "dividerMargin", void 0);
MenuDivider = __decorate([
    customElement('menu-divider')
], MenuDivider);
export { MenuDivider };
//# sourceMappingURL=menu-divider.js.map