(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "react", "./styles"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var tslib_1 = require("tslib");
    var react_1 = (0, tslib_1.__importStar)(require("react"));
    var styles_1 = require("./styles");
    var P1 = (0, react_1.forwardRef)(function (_a, ref) {
        var className = _a.className, title = _a.title, children = _a.children, size = _a.size, type = _a.type, onClick = _a.onClick, color = _a.color, _b = _a.as, as = _b === void 0 ? "span" : _b, props = (0, tslib_1.__rest)(_a, ["className", "title", "children", "size", "type", "onClick", "color", "as"]);
        return (react_1.default.createElement(styles_1.P1Styled, (0, tslib_1.__assign)({ size: size, type: type, onClick: onClick, className: className, color: color, as: as, title: title, ref: ref }, props), children));
    });
    P1.displayName = "P1";
    exports.default = P1;
});
