This commit is contained in:
zhangkai
2024-06-22 18:34:39 +08:00
parent fb39b66431
commit 1c07d4b9df
72 changed files with 4283 additions and 2158 deletions

View File

@@ -14,14 +14,14 @@ export default function ActionButton({
...props
}) {
return <div className="flex items-center">
return <div className="flex items-center bg-[#1A1A1A]">
<>
{buttonTipContent ? <TooltipProvider>
<Tooltip delayDuration={delayDuration}>
<TooltipTrigger asChild>
<Button variant={variant} className={`rounded-r-none ${className}`} {...props}>{children}</Button>
</TooltipTrigger>
<TooltipContent className="bg-[#fff] text-gray-800">
<TooltipContent className="bg-[#1A1A1A] text-[#CCCCCC]">
{buttonTipContent}
</TooltipContent>
</Tooltip>
@@ -34,10 +34,11 @@ export default function ActionButton({
<Button
size="icon"
variant={variant}
className="rounded-l-none ml-[1px] [&[data-state=open]>svg]:rotate-180"
className=" ml-[1px] [&[data-state=open]>svg]:rotate-180 bg-[#262626] w-[18px] h-[18px] mr-[5px]"
style={{borderRadius:"3px"}}
><CaretDownIcon /></Button>
</PopoverTrigger>
<PopoverContent className="w-80 p-0" align={align}>
<PopoverContent className="w-80 p-0 bg-[#1A1A1A]" align={align}>
{dropDown}
</PopoverContent>
</Popover>

View File

@@ -115,7 +115,7 @@ const InputList = React.forwardRef<HTMLDivElement, InputProps & {
<Input
key={item.id}
defaultValue={item.value}
className={cname('pr-8', inputClassName)}
className={cname('pr-8 npcInput2', inputClassName)}
placeholder={props.placeholder || ''}
onChange={(e) => handleChange(e.target.value, item.id, index)}
onInput={(e) => {

View File

@@ -23,7 +23,7 @@ const SelectTrigger = React.forwardRef<
<SelectPrimitive.Trigger
ref={ref}
className={cname(
"group flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-[#1a1a1a] px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 data-[placeholder]:text-gray-400",
"group flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-[#1a1a1a] px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 data-[placeholder]:text-gray-400",
className
)}
{...props}

View File

@@ -40,7 +40,7 @@ const sheetVariants = cva(
"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
right:
"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
"inset-y-0 right-0 h-full w-3/4 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
},
},
defaultVariants: {

View File

@@ -99,7 +99,7 @@ const ToastTitle = React.forwardRef<
>(({ className, ...props }, ref) => (
<ToastPrimitives.Title
ref={ref}
className={cname("text-sm font-semibold text-[#fff] [&+div]:text-xs group-[.info]:text-[#fff] group-[.success]:text-[#fff] group-[.warning]:text-[#fff] group-[.error]:text-[#fff]", className)}
className={cname("text-sm font-semibold text-[#fff] [&+div]:text-xs group-[.info]:text-[#024FE5] group-[.success]:text-[#fff] group-[.warning]:text-[#EA991F] group-[.error]:text-[#D8341E]", className)}
{...props}
/>
))