@trackunit/css-class-variance-utilities 0.0.52 → 0.0.54

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/README.md CHANGED
@@ -1,7 +1,3 @@
1
- > **⚠️ Beta**
2
- >
3
- > This is a beta version and subject to change without notice.
4
-
5
1
  # Trackunit css-class-variance-utilities
6
2
 
7
3
  The `@trackunit/css-class-variance-utilities` package is the home of Trackunits custom implementation of the CVA and twMerge npm packages.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/css-class-variance-utilities",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
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<Component extends (...args: any) => any> = OriginalVariantProps<Component> & {
2
+ export type VariantProps<TComponent extends (...args: any) => any> = OriginalVariantProps<TComponent> & {
3
3
  className: string;
4
4
  };
5
5
  /**