import { Host, h } from "@stencil/core";
export class PdsDivider {
    constructor() {
        this.componentId = undefined;
        this.offset = undefined;
        this.vertical = false;
    }
    classNames() {
        const classNames = ['pds-divider'];
        if (this.vertical) {
            classNames.push('pds-divider--vertical');
        }
        if (this.offset) {
            const offsetClassName = 'pds-divider--offset-' + this.offset;
            classNames.push(offsetClassName);
        }
        return classNames.join(' ');
    }
    render() {
        return (h(Host, { key: '2fd0d24d893d6936915480731948caa8de5007fa', id: this.componentId }, h("hr", { key: 'dacc620d9f1cb7b2a05f0e0205e2df3d3bfbfcd7', class: this.classNames() })));
    }
    static get is() { return "pds-divider"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["pds-divider.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["pds-divider.css"]
        };
    }
    static get properties() {
        return {
            "componentId": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "A unique identifier used for the underlying component `id` attribute."
                },
                "attribute": "component-id",
                "reflect": false
            },
            "offset": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'",
                    "resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\" | \"xxl\" | \"xxs\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Adds offset margin/padding to expand the width (horizontal) or the height (vertical) of divider."
                },
                "attribute": "offset",
                "reflect": false
            },
            "vertical": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "defaultValue",
                            "text": "false"
                        }],
                    "text": "Sets divider to display vertically"
                },
                "attribute": "vertical",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
//# sourceMappingURL=pds-divider.js.map
