@charliearlie/ui
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -65,3 +65,3 @@ "use strict"; | ||
var import_react = __toESM(require("react")); | ||
var import_class_variance_authority = require("class-variance-authority"); | ||
var import_cva = require("cva"); | ||
var import_react_slot = require("@radix-ui/react-slot"); | ||
@@ -74,3 +74,4 @@ | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
var buttonVariants = (0, import_class_variance_authority.cva)(button_default.button, { | ||
var buttonVariants = (0, import_cva.cva)({ | ||
base: button_default.button, | ||
variants: { | ||
@@ -77,0 +78,0 @@ variant: { |
@@ -1,4 +0,3 @@ | ||
import * as class_variance_authority_types from 'class-variance-authority/types'; | ||
import React from 'react'; | ||
import { VariantProps } from 'class-variance-authority'; | ||
import { VariantProps } from 'cva'; | ||
@@ -9,7 +8,61 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> { | ||
declare const buttonVariants: (props?: ({ | ||
variant?: "default" | "primary" | "outline" | "secondary" | null | undefined; | ||
size?: "default" | "sm" | "lg" | "icon" | null | undefined; | ||
} & class_variance_authority_types.ClassProp) | undefined) => string; | ||
variant?: "default" | "primary" | "outline" | "secondary" | undefined; | ||
size?: "default" | "sm" | "lg" | "icon" | undefined; | ||
} & ({ | ||
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined; | ||
className?: undefined; | ||
} | { | ||
class?: undefined; | ||
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined)[] | { | ||
[x: string]: any; | ||
} | null | undefined; | ||
})) | undefined) => string; | ||
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; | ||
export { Button, type ButtonProps }; |
@@ -65,3 +65,3 @@ "use strict"; | ||
var import_react = __toESM(require("react")); | ||
var import_class_variance_authority = require("class-variance-authority"); | ||
var import_cva = require("cva"); | ||
var import_react_slot = require("@radix-ui/react-slot"); | ||
@@ -74,3 +74,4 @@ | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
var buttonVariants = (0, import_class_variance_authority.cva)(button_default.button, { | ||
var buttonVariants = (0, import_cva.cva)({ | ||
base: button_default.button, | ||
variants: { | ||
@@ -77,0 +78,0 @@ variant: { |
{ | ||
"name": "@charliearlie/ui", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "./dist/index.js", | ||
@@ -19,4 +19,4 @@ "module": "./dist/index.mjs", | ||
"typescript": "^5.3.3", | ||
"@repo/typescript-config": "0.0.0", | ||
"@repo/eslint-config": "0.0.0" | ||
"@repo/eslint-config": "0.0.0", | ||
"@repo/typescript-config": "0.0.0" | ||
}, | ||
@@ -28,3 +28,4 @@ "publishConfig": { | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"class-variance-authority": "^0.7.0" | ||
"clsx": "^2.1.0", | ||
"cva": "1.0.0-beta.1" | ||
}, | ||
@@ -31,0 +32,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
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
19751
478
3
+ Addedclsx@^2.1.0
+ Addedcva@1.0.0-beta.1
+ Addedclsx@2.1.1(transitive)
+ Addedcva@1.0.0-beta.1(transitive)
- Removedclass-variance-authority@^0.7.0
- Removedclass-variance-authority@0.7.0(transitive)