tailwind-variants 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -275,8 +275,7 @@ export declare const tv: TV;
275
275
 
276
276
  export declare const defaultConfig: TVConfig;
277
277
 
278
- export type VariantProps<T> = T extends {variants: infer V}
279
- ? V extends TVVariantsDefault<any, undefined>
280
- ? {[K in TVVariantKeys<V, any>[number]]?: keyof V[K]}
281
- : never
282
- : never;
278
+ export type VariantProps<Component extends (...args: any) => any> = Omit<
279
+ OmitUndefined<Parameters<Component>[0]>,
280
+ "class" | "className"
281
+ >;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-variants",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "🦄 Tailwindcss first-class variant API",
5
5
  "author": "Junior Garcia <jrgarciadev@gmail.com>",
6
6
  "license": "MIT",