"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_STYLE = void 0;
const field_1 = require("../../../../../client/field");
exports.DEFAULT_STYLE = {
    display: 'block',
    color: 'inherit',
    backgroundColor: '#00000000',
    padding: '0',
    border: 'none',
    borderRadius: '0',
};
class Color extends field_1.Field {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('input'), {
            valueKey: 'value',
            defaultStyle: exports.DEFAULT_STYLE,
        });
        const { value = '#000000', tabIndex = -1 } = $props;
        this.$element.value = value;
        this.$element.type = 'color';
        this.$element.tabIndex = tabIndex;
    }
}
exports.default = Color;
//# sourceMappingURL=Component.js.map