@asyarb/twix
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -0,3 +1,37 @@ | ||
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/index.ts | ||
import clsx from "clsx"; | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
twix: () => twix | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
var import_clsx = __toESM(require("clsx")); | ||
function resolveVariants(defaultVariants, activeVariants) { | ||
@@ -50,8 +84,5 @@ const result = { ...defaultVariants }; | ||
} | ||
return clsx(classes, base, _class); | ||
return (0, import_clsx.default)(classes, base, _class); | ||
}; | ||
} | ||
export { | ||
twix | ||
}; | ||
module.exports = module.exports.default |
{ | ||
"name": "@asyarb/twix", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Create variant based className strings.", | ||
@@ -12,3 +12,2 @@ "repository": { | ||
"sideEffects": false, | ||
"type": "module", | ||
"publishConfig": { | ||
@@ -20,9 +19,9 @@ "access": "public" | ||
], | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
} | ||
@@ -50,6 +49,3 @@ }, | ||
"clsx": "^2" | ||
}, | ||
"engines": { | ||
"node": ">=12.7.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10369
169
No