tailwindcss-3d
Version:
Add 3D transforms to your TailwindCSS project
44 lines (43 loc) • 1.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "TransformBox", {
enumerable: true,
get: function() {
return TransformBox;
}
});
var _call_super = require("@swc/helpers/_/_call_super");
var _class_call_check = require("@swc/helpers/_/_class_call_check");
var _define_property = require("@swc/helpers/_/_define_property");
var _inherits = require("@swc/helpers/_/_inherits");
var _base = require("./base");
var TransformBox = /*#__PURE__*/ function(Base) {
"use strict";
_inherits._(TransformBox, Base);
function TransformBox() {
_class_call_check._(this, TransformBox);
var _this;
_this = _call_super._(this, TransformBox, arguments), _define_property._(_this, "utilities", function() {
_this.api.matchUtilities({
'transform-box': function(value) {
return {
'transform-box': value
};
}
}, {
values: _this.api.theme('transformBox')
});
});
return _this;
}
return TransformBox;
}(_base.Base);
_define_property._(TransformBox, "defaultTheme", {
content: 'content-box',
border: 'border-box',
fill: 'fill-box',
stroke: 'stroke-box',
view: 'view-box'
});