diff --git a/.gitignore b/.gitignore index fd3dbb5..3f5808a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ /build # misc +.idea .DS_Store *.pem diff --git a/src/app/page.tsx b/src/app/page.tsx index 876f282..f926f2d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1436,6 +1436,28 @@ export default function AnimationsExample() {

+
+
+ + {}} + defaultValue={["web-app"]} + animationConfig={{ + badgeAnimation: "none", + popoverAnimation: "none", + optionHoverAnimation: "none", + }} + placeholder="Without animation effect" + /> +

+ With animation effects disabled +

+
+
( case "flip": return "animate-flipIn"; case "none": - return ""; + return "!animate-none"; default: return ""; } @@ -858,7 +858,10 @@ export const MultiSelect = React.forwardRef( key={value} className={cn( getBadgeAnimationClass(), - multiSelectVariants({ variant }), + multiSelectVariants({ + variant, + badgeAnimation: animationConfig?.badgeAnimation + }), customStyle?.gradient && "text-white border-transparent", responsiveSettings.compactMode && @@ -930,7 +933,10 @@ export const MultiSelect = React.forwardRef( className={cn( "bg-transparent text-foreground border-foreground/1 hover:bg-transparent", getBadgeAnimationClass(), - multiSelectVariants({ variant }), + multiSelectVariants({ + variant, + badgeAnimation: animationConfig?.badgeAnimation + }), responsiveSettings.compactMode && "text-xs px-1.5 py-0.5", singleLine && "flex-shrink-0 whitespace-nowrap",