'use strict';

var _tslib = require('../_virtual/_tslib.js');
var index = require('../external/classnames/index.js');
var bundleMjs = require('../packages/subframe-core/external/tailwind-merge/dist/bundle-mjs.js');

// HACK: keep this in sync with the default fonts
var SUBFRAME_FONT_MIXINS = [
    // old font mixins
    "text-label",
    "text-label-bold",
    "text-body",
    "text-body-bold",
    "text-subheader",
    "text-section-header",
    "text-header",
    "text-monospace-body",
    // new font mixins
    "text-caption",
    "text-caption-bold",
    "text-heading-3",
    "text-heading-2",
    "text-heading-1",
];
var customTWMerge = bundleMjs.createTailwindMerge(function () {
    var defaultConfig = bundleMjs.getDefaultConfig();
    return _tslib.__assign(_tslib.__assign({}, defaultConfig), { classGroups: _tslib.__assign(_tslib.__assign({}, defaultConfig.classGroups), { 
            // "subframe-colors": [{ text: [isTextColor] }],
            "subframe-font-mixins": SUBFRAME_FONT_MIXINS }), conflictingClassGroups: {
            // font colors
            // "text-color": ["subframe-colors"],
            // font mixins
            "subframe-font-mixins": ["font-size", "leading", "font-weight"],
            "font-size": ["subframe-font-mixins"],
            leading: ["subframe-font-mixins"],
            "font-weight": ["subframe-font-mixins"],
        } });
});
function twClassNames() {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    return customTWMerge(index.apply(void 0, args));
}

exports.SUBFRAME_FONT_MIXINS = SUBFRAME_FONT_MIXINS;
exports.twClassNames = twClassNames;
//# sourceMappingURL=tw-classnames.js.map
