"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var vdom_1 = require("@dojo/framework/core/vdom");
var theme_1 = require("../middleware/theme");
var util_1 = require("../common/util");
var css = require("../theme/default/icon.m.css");
var factory = vdom_1.create({ theme: theme_1.default }).properties();
exports.Icon = factory(function Icon(_a) {
    var properties = _a.properties, theme = _a.middleware.theme;
    var _b = properties(), _c = _b.aria, aria = _c === void 0 ? {} : _c, type = _b.type, altText = _b.altText, size = _b.size;
    var classes = theme.classes(css);
    var sizeClass = size && classes[size];
    return (vdom_1.tsx("i", tslib_1.__assign({ classes: [theme.variant(), classes.root, classes.icon, classes[type], sizeClass], role: "img", "aria-hidden": altText ? 'false' : 'true', "aria-label": altText }, util_1.formatAriaProperties(aria))));
});
exports.default = exports.Icon;

/*# sourceMappingURL=index.js.map*/