import { r as registerInstance, h, H as Host } from './index-BIRwgFLv.js';

const verdocsRadioButtonCss = "verdocs-radio-button{font-family:var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif);width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:\"\";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#f3f3fc;background:#f3f3fc}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}";

const VerdocsRadioButton = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        /**
         * Whether the radio button is currently selected.
         */
        this.checked = false;
        /**
         * HTML form field name for the input.
         */
        this.name = '';
        /**
         * Value to track with the input.
         */
        this.value = '';
        /**
         * If set, the button will still be displayed but not selectable.
         */
        this.disabled = false;
    }
    render() {
        return (h(Host, { key: '5b18b354b3f366588b927e86bc50c78823b0170a', class: { disabled: this.disabled } }, h("input", { key: '4ce54812b031e4c4834c120e1590182603a6c048', type: "radio", value: this.value, name: this.name, id: `verdocs-radio-button-${this.name}-${this.value}`, checked: this.checked, disabled: this.disabled }), h("label", { key: '01a9bc0b36ae4f7a6d3d9c5a6bc53b9c41881bc3', htmlFor: `verdocs-radio-button-${this.name}-${this.value}` })));
    }
};
VerdocsRadioButton.style = verdocsRadioButtonCss;

export { VerdocsRadioButton as verdocs_radio_button };
//# sourceMappingURL=verdocs-radio-button.entry.js.map
