New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mbao01/common

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mbao01/common - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

14

dist/types/components/Button/Button.d.ts
import React from "react";
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "default" | "error" | "ghost" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
isLoading?: boolean | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
variant?: "accent" | "default" | "error" | "ghost" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
outline?: boolean | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
isLoading?: boolean | undefined;
} & {
as?: "a" | "span" | "p" | undefined;
} & React.RefAttributes<HTMLButtonElement>>;
export { Button };

@@ -14,3 +14,3 @@ import * as React from "react";

onValueChange?: ((search: string) => void) | undefined;
} & React.RefAttributes<HTMLInputElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
} & React.RefAttributes<HTMLInputElement>, "ref"> & {} & React.RefAttributes<HTMLInputElement>>;
List: React.ForwardRefExoticComponent<Omit<{

@@ -17,0 +17,0 @@ children?: React.ReactNode;

@@ -13,5 +13,5 @@ import * as React from "react";

};
Title: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLHeadingElement>>;
Description: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLParagraphElement>>;
Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
Title: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & {} & React.RefAttributes<HTMLHeadingElement>>;
Description: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & {} & React.RefAttributes<HTMLParagraphElement>>;
Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {} & React.RefAttributes<HTMLDivElement>>;
Footer: {

@@ -21,4 +21,4 @@ ({ className, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;

};
Overlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
Overlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & {} & React.RefAttributes<HTMLDivElement>>;
};
export { Dialog };
import * as React from "react";
declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & {
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLInputElement>>;
export { Checkbox };
import React from "react";
export declare const Input: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
export declare const Input: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & {
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
outline?: boolean | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLInputElement>>;
import React from "react";
declare const Phone: React.ForwardRefExoticComponent<Omit<import("../Input/types").InputProps, "size" | "label" | "inputMode" | "type"> & {
inputProps?: import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> | undefined;
buttonProps?: import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "default" | "error" | "ghost" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
isLoading?: boolean | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> | undefined;
} & React.RefAttributes<HTMLInputElement>>;
import { type PhoneProps } from "./types";
declare const Phone: React.ForwardRefExoticComponent<PhoneProps & React.RefAttributes<HTMLInputElement>>;
export { Phone };

@@ -1,8 +0,2 @@

import { type VariantProps } from "../../../libs";
import { type InputProps } from "../Input/types";
import { getInputClasses } from "../Input/constants";
import { getButtonClasses } from "../../Button/constants";
export type PhoneProps = Omit<InputProps, "type" | "size" | "label" | "inputMode"> & {
inputProps?: VariantProps<typeof getInputClasses>;
buttonProps?: VariantProps<typeof getButtonClasses>;
};
export type PhoneProps = Omit<InputProps, "type" | "label" | "inputMode">;
import * as React from "react";
declare const Radio: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
declare const Radio: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & {
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLInputElement>>;
export { Radio };
import * as React from "react";
declare const Range: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
disabled?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
declare const Range: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & {
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
disabled?: boolean | undefined;
} & React.RefAttributes<HTMLInputElement>>;
export { Range };

@@ -7,18 +7,18 @@ import * as React from "react";

Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
position?: "popper" | "item-aligned" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
outline?: boolean | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLButtonElement>>;
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
position?: "popper" | "item-aligned" | undefined;
} & React.RefAttributes<HTMLDivElement>>;
Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
outline?: boolean | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLDivElement>>;
Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;

@@ -25,0 +25,0 @@ ScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;

import * as React from "react";
import * as SliderPrimitive from "@radix-ui/react-slider";
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("class-variance-authority").VariantProps<(props?: ({
disabled?: boolean | null | undefined;
wide?: boolean | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLSpanElement>>;
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
} & {
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & {
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & {
wide?: boolean | undefined;
disabled?: boolean | undefined;
} & React.RefAttributes<HTMLSpanElement>>;
export { Slider };
import * as React from "react";
declare const Switch: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
declare const Switch: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & {
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLInputElement>>;
export { Switch };
import * as React from "react";
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "ref"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLTextAreaElement>>;
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "ref"> & {
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
outline?: boolean | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & React.RefAttributes<HTMLTextAreaElement>>;
export { Textarea };
import React from "react";
export declare const TextField: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
outline?: boolean | null | undefined;
wide?: boolean | null | undefined;
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
export declare const TextField: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & {
variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
outline?: boolean | undefined;
wide?: boolean | undefined;
size?: "xs" | "sm" | "md" | "lg" | undefined;
} & {
info?: React.ReactNode;
error?: string | string[] | null | undefined;
} & React.RefAttributes<HTMLInputElement>>;

@@ -6,5 +6,5 @@ import * as React from "react";

(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
Content: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
Content: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {} & React.RefAttributes<HTMLDivElement>>;
Trigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
};
export { Popover };
import React from "react";
import * as ProgressPrimitive from "@radix-ui/react-progress";
export declare const Progress: React.ForwardRefExoticComponent<Omit<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref">, "asChild"> & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "ghost" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | "base" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
export declare const Progress: React.ForwardRefExoticComponent<Omit<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref">, "asChild"> & {
variant?: "accent" | "error" | "ghost" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | "base" | undefined;
} & React.RefAttributes<HTMLDivElement>>;

@@ -6,5 +6,5 @@ import React from "react";

(props: TooltipPrimitive.TooltipProps): import("react/jsx-runtime").JSX.Element;
Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & TooltipPrimitive.TooltipContentProps & import("class-variance-authority").VariantProps<(props?: ({
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & TooltipPrimitive.TooltipContentProps & {
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
} & React.RefAttributes<HTMLDivElement>>;
Arrow: ({ className, variant, ...props }: TooltipArrowProps) => import("react/jsx-runtime").JSX.Element;

@@ -11,0 +11,0 @@ Portal: React.FC<TooltipPrimitive.TooltipPortalProps>;

@@ -1,1 +0,6 @@

export { cva, type VariantProps } from "class-variance-authority";
import { type VariantProps as OriginalVariantProps } from "class-variance-authority";
export { cva } from "class-variance-authority";
type ExcludeNull<T> = {
[P in keyof T]: Exclude<T[P], null>;
};
export type VariantProps<T extends (...args: any) => any> = ExcludeNull<OriginalVariantProps<T>>;
{
"name": "@mbao01/common",
"private": false,
"version": "0.0.8",
"version": "0.0.9",
"type": "module",

@@ -128,3 +128,3 @@ "author": "Ayomide Bakare",

},
"gitHead": "b7bb9c19b245e54a221c02998dc7ec6815cead56"
"gitHead": "c069fb2a492bd2e36c3b637275498dc88ca05a62"
}

@@ -6,3 +6,3 @@ import { cva } from "../../../libs";

export const getPhoneInputClasses = cva(
"input join-item input-bordered h-10 w-full rounded-md !rounded-r-md !pl-2 text-sm transition-all duration-100"
"input join-item input-bordered w-full !rounded-l-none !pl-2 transition-all duration-100"
);

@@ -1,12 +0,3 @@

import { type VariantProps } from "../../../libs";
import { type InputProps } from "../Input/types";
import { getInputClasses } from "../Input/constants";
import { getButtonClasses } from "../../Button/constants";
export type PhoneProps = Omit<
InputProps,
"type" | "size" | "label" | "inputMode"
> & {
inputProps?: VariantProps<typeof getInputClasses>;
buttonProps?: VariantProps<typeof getButtonClasses>;
};
export type PhoneProps = Omit<InputProps, "type" | "label" | "inputMode">;

@@ -60,3 +60,3 @@ import { cva } from "../../../libs";

export const getSelectContentClasses = cva(
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-base-100 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
{

@@ -63,0 +63,0 @@ variants: {

import { cva } from "../../libs";
export const getPopoverContentClasses = cva(
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
"z-50 w-72 rounded-md border bg-base-100 p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
);

@@ -1,1 +0,10 @@

export { cva, type VariantProps } from "class-variance-authority";
import { type VariantProps as OriginalVariantProps } from "class-variance-authority";
export { cva } from "class-variance-authority";
type ExcludeNull<T> = { [P in keyof T]: Exclude<T[P], null> };
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type VariantProps<T extends (...args: any) => any> = ExcludeNull<
OriginalVariantProps<T>
>;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc