class-variance-authority
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -1,2 +0,2 @@ | ||
import clsx from "clsx"; | ||
import { clsx } from "clsx"; | ||
import type { ClassProp, ClassValue, OmitUndefined, StringToBoolean } from "./types"; | ||
@@ -3,0 +3,0 @@ export type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">; |
@@ -6,10 +6,5 @@ "use strict"; | ||
exports.cva = exports.cx = void 0; | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
var _clsx = require("clsx"); | ||
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value; | ||
const cx = _clsx.default; | ||
const cx = _clsx.clsx; | ||
exports.cx = cx; | ||
@@ -16,0 +11,0 @@ const cva = (base, config)=>{ |
{ | ||
"name": "class-variance-authority", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Class Variance Authority 🧬", | ||
@@ -43,4 +43,16 @@ "keywords": [ | ||
], | ||
"scripts": { | ||
"build": "run-p build:**", | ||
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs", | ||
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ", | ||
"build:tsc": "tsc --project .config/tsconfig.build.json", | ||
"check": "tsc --project tsconfig.json --noEmit", | ||
"dev": "jest --config .config/jest.config.ts --watch", | ||
"prepublishOnly": "pnpm build", | ||
"test": "run-p test:*", | ||
"test:jest": "jest --config .config/jest.config.ts --coverage", | ||
"test:size": "pnpm build && bundlesize -f 'dist/*.js' -s 850B" | ||
}, | ||
"dependencies": { | ||
"clsx": "1.2.1" | ||
"clsx": "2.0.0" | ||
}, | ||
@@ -63,14 +75,3 @@ "devDependencies": { | ||
"typescript": "5.1.3" | ||
}, | ||
"scripts": { | ||
"build": "run-p build:**", | ||
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs", | ||
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ", | ||
"build:tsc": "tsc --project .config/tsconfig.build.json", | ||
"check": "tsc --project tsconfig.json --noEmit", | ||
"dev": "jest --config .config/jest.config.ts --watch", | ||
"test": "run-p test:*", | ||
"test:jest": "jest --config .config/jest.config.ts --coverage", | ||
"test:size": "pnpm build && bundlesize -f 'dist/*.js' -s 850B" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
8931
8
129
+ Addedclsx@2.0.0(transitive)
- Removedclsx@1.2.1(transitive)
Updatedclsx@2.0.0