@trackunit/css-class-variance-utilities 0.0.53 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +2 -0
- package/index.esm.js +2 -0
- package/package.json +1 -1
- package/src/cva.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
var classVarianceAuthority = require('class-variance-authority');
|
|
4
4
|
var tailwindMerge = require('tailwind-merge');
|
|
5
5
|
|
|
6
|
+
// This _is_ the wrapper, so it's the only place we need to import directly from class-variance-authority.
|
|
7
|
+
// eslint-disable-next-line no-restricted-imports
|
|
6
8
|
/**
|
|
7
9
|
* A wrapper around CVA that uses tailwind-merge to merge the classes.
|
|
8
10
|
*/
|
package/index.esm.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { cva } from 'class-variance-authority';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
|
|
4
|
+
// This _is_ the wrapper, so it's the only place we need to import directly from class-variance-authority.
|
|
5
|
+
// eslint-disable-next-line no-restricted-imports
|
|
4
6
|
/**
|
|
5
7
|
* A wrapper around CVA that uses tailwind-merge to merge the classes.
|
|
6
8
|
*/
|
package/package.json
CHANGED
package/src/cva.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva as OriginalCva, type VariantProps as OriginalVariantProps } from "class-variance-authority";
|
|
2
|
-
export type VariantProps<
|
|
2
|
+
export type VariantProps<TComponent extends (...args: any) => any> = OriginalVariantProps<TComponent> & {
|
|
3
3
|
className: string;
|
|
4
4
|
};
|
|
5
5
|
/**
|