@twstyled/core
Version:
twstyled -- the full-featured Tailwind CSS + CSS in JS solution with blazing fast build times and no runtime overhead
40 lines (39 loc) • 1.78 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.cx = exports.tw = exports.css = exports.styled = exports.default = void 0;
var clsx_1 = __importDefault(require("clsx"));
var styled_1 = require("./styled");
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(styled_1).default; } });
var styled_2 = require("./styled");
Object.defineProperty(exports, "styled", { enumerable: true, get: function () { return __importDefault(styled_2).default; } });
__exportStar(require("./types"), exports);
function css(strings) {
var exprs = [];
for (var _i = 1; _i < arguments.length; _i++) {
exprs[_i - 1] = arguments[_i];
}
throw new Error('twstyled - Configure the babel plugin correctly to handle css template strings');
}
exports.css = css;
var tw = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
throw new Error('twstyled - Configure the babel plugin correctly to handle tw template strings');
};
exports.tw = tw;
exports.cx = clsx_1.default;