Fixxed bugs From form and Fields
This commit is contained in:
@@ -89,7 +89,7 @@ const helpCls = "mt-2 text-sm text-gray-500 dark:text-neutral-500";
|
||||
const errCls = "text-sm text-red-600 mt-2";
|
||||
const groupCls = "relative flex items-stretch";
|
||||
const addonBase =
|
||||
"px-4 inline-flex items-center min-w-fit rounded-s-md border border-e-0 border-gray-200 bg-gray-50 text-sm text-gray-500 dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400";
|
||||
"px-4 inline-flex items-center min-w-fit rounded-md border border-gray-200 bg-gray-50 text-sm text-gray-500 dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400";
|
||||
const controlWrap = "relative";
|
||||
---
|
||||
|
||||
@@ -144,8 +144,6 @@ const controlWrap = "relative";
|
||||
}),
|
||||
p.prefixText && "rounded-l-none",
|
||||
p.suffixText && "rounded-r-none",
|
||||
p.iconLeft && "rounded-l-none",
|
||||
p.iconRight && "rounded-r-none",
|
||||
p.error &&
|
||||
"border-danger focus-visible:ring-danger/40",
|
||||
)}
|
||||
@@ -217,8 +215,6 @@ const controlWrap = "relative";
|
||||
"block w-full border border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 file:bg-gray-50 file:border-0 file:me-4 file:py-3 file:px-4 dark:file:bg-neutral-700 dark:file:text-neutral-400",
|
||||
p.prefixText && "rounded-l-none",
|
||||
p.suffixText && "rounded-r-none",
|
||||
p.iconLeft && "rounded-l-none",
|
||||
p.iconRight && "rounded-r-none",
|
||||
p.error &&
|
||||
"border-danger focus-visible:ring-danger/40",
|
||||
)}
|
||||
@@ -281,8 +277,6 @@ const controlWrap = "relative";
|
||||
: p.size === "lg"
|
||||
? "text-base p-4"
|
||||
: "text-sm p-3",
|
||||
p.iconLeft && "rounded-l-none",
|
||||
p.iconRight && "rounded-r-none",
|
||||
p.error && "border-danger focus-visible:ring-danger/40",
|
||||
)}
|
||||
data-initial={typeof p.value === "string" ? p.value : ""}
|
||||
@@ -309,9 +303,7 @@ const controlWrap = "relative";
|
||||
}
|
||||
class={cn(
|
||||
selectBase({ size: p.size ?? "md" }),
|
||||
"appearance-none bg-[length:16px_16px] pr-9",
|
||||
p.iconLeft && "rounded-l-none",
|
||||
p.iconRight && "rounded-r-none",
|
||||
"appearance-none bg-none pr-9",
|
||||
p.error && "border-danger focus-visible:ring-danger/40",
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user