@nextui-org/theme
Advanced tools
Comparing version 0.0.0-dev-v2-20230424221531 to 0.0.0-dev-v2-20230424224035
@@ -27,8 +27,11 @@ import * as tailwind_variants from 'tailwind-variants'; | ||
}; | ||
isUnderline: { | ||
true: string; | ||
false: string; | ||
underline: { | ||
none: string; | ||
hover: string; | ||
always: string; | ||
active: string; | ||
focus: string; | ||
}; | ||
isBlock: { | ||
true: string; | ||
true: string[]; | ||
false: string; | ||
@@ -58,8 +61,11 @@ }; | ||
}; | ||
isUnderline: { | ||
true: string; | ||
false: string; | ||
underline: { | ||
none: string; | ||
hover: string; | ||
always: string; | ||
active: string; | ||
focus: string; | ||
}; | ||
isBlock: { | ||
true: string; | ||
true: string[]; | ||
false: string; | ||
@@ -66,0 +72,0 @@ }; |
@@ -27,17 +27,12 @@ "use strict"; | ||
var import_tailwind_variants = require("tailwind-variants"); | ||
// src/utils/classes.ts | ||
var focusVisibleClasses = [ | ||
"focus:outline-0", | ||
"focus-visible:ring-2", | ||
"focus-visible:ring-primary", | ||
"focus-visible:ring-offset-2", | ||
"focus-visible:transition-shadow", | ||
"focus-visible:ring-offset-background", | ||
"dark:focus-visible:ring-offset-background-dark" | ||
]; | ||
// src/components/link.ts | ||
var link = (0, import_tailwind_variants.tv)({ | ||
base: [...focusVisibleClasses, "relative inline-flex items-center [&_svg]:ml-1"], | ||
base: [ | ||
"relative inline-flex items-center outline-none", | ||
"data-[focus-visible=true]:outline-none", | ||
"data-[focus-visible=true]:ring-2", | ||
"data-[focus-visible=true]:ring-primary", | ||
"data-[focus-visible=true]:ring-offset-2", | ||
"data-[focus-visible=true]:ring-offset-background", | ||
"data-[focus-visible=true]:dark:ring-offset-background-dark" | ||
], | ||
variants: { | ||
@@ -59,8 +54,23 @@ size: { | ||
}, | ||
isUnderline: { | ||
true: "hover:underline active:underline focus:underline underline-offset-4", | ||
false: "no-underline" | ||
underline: { | ||
none: "no-underline", | ||
hover: "hover:underline", | ||
always: "underline", | ||
active: "active:underline", | ||
focus: "focus:underline" | ||
}, | ||
isBlock: { | ||
true: "px-2 py-1 hover:after:opacity-100 after:content-[' '] after:inset-0 after:opacity-0 after:w-full after:h-full after:rounded-xl after:transition-background after:absolute", | ||
true: [ | ||
"px-2", | ||
"py-1", | ||
"hover:after:opacity-100", | ||
"after:content-['']", | ||
"after:inset-0", | ||
"after:opacity-0", | ||
"after:w-full", | ||
"after:h-full", | ||
"after:rounded-xl", | ||
"after:transition-background", | ||
"after:absolute" | ||
], | ||
false: "hover:opacity-80 transition-opacity" | ||
@@ -105,2 +115,6 @@ }, | ||
class: "hover:after:bg-danger/20" | ||
}, | ||
{ | ||
underline: ["hover", "always", "active", "focus"], | ||
class: "underline-offset-4" | ||
} | ||
@@ -112,3 +126,3 @@ ], | ||
isBlock: false, | ||
isUnderline: false, | ||
underline: "none", | ||
isDisabled: false, | ||
@@ -115,0 +129,0 @@ disableAnimation: false |
{ | ||
"name": "@nextui-org/theme", | ||
"version": "0.0.0-dev-v2-20230424221531", | ||
"version": "0.0.0-dev-v2-20230424224035", | ||
"description": "The default theme for NextUI components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
822749
34110