chore: adjust DateInput styling

This commit is contained in:
ValdiANS
2026-01-27 16:53:17 +07:00
parent 80d9dd689a
commit 98608576b9
+7 -4
View File
@@ -226,7 +226,7 @@ const DateInput = ({
<div
className={cn(
'input h-12 bg-inherit px-3 py-2.5 text-base font-normal leading-6 w-full rounded-lg transition-all duration-200 flex items-center border border-base-content/10',
'input h-fit bg-inherit px-3 py-2.5 text-base font-normal leading-6 w-full rounded-lg transition-all duration-200 flex items-center border border-base-content/10',
{
'border-error': finalIsError,
'border-success': externalValid && !finalIsError,
@@ -245,7 +245,10 @@ const DateInput = ({
disabled={disabled}
readOnly // ✅ tidak bisa diketik manual
className={cn(
'grow bg-transparent cursor-pointer focus:outline-none',
'grow bg-transparent cursor-pointer focus:outline-none text-sm leading-tight',
{
'cursor-not-allowed': readOnly,
},
className?.input
)}
/>
@@ -257,8 +260,8 @@ const DateInput = ({
)}
<Icon
icon='heroicons:calendar-date-range'
width={14}
height={14}
width={15}
height={15}
className='cursor-pointer text-base-content/20'
onClick={(e) =>
handleClick(e as unknown as React.MouseEvent<HTMLInputElement>)