diff --git a/components/docs/forms/text-field/text-field-pending-demo.tsx b/components/docs/forms/text-field/text-field-pending-demo.tsx index 5c9c307d..ffe680af 100644 --- a/components/docs/forms/text-field/text-field-pending-demo.tsx +++ b/components/docs/forms/text-field/text-field-pending-demo.tsx @@ -3,5 +3,5 @@ import { TextField } from "ui" export default function TextFieldPendingDemo() { - return + return } diff --git a/components/ui/badge.tsx b/components/ui/badge.tsx index cf34bd73..feb5b645 100644 --- a/components/ui/badge.tsx +++ b/components/ui/badge.tsx @@ -6,8 +6,9 @@ import { tv, type VariantProps } from "tailwind-variants" const badgeIntents = { primary: - "bg-primary/10 dark:bg-primary/15 text-primary dark:text-primary group-hover:bg-primary/15 dark:group-hover:bg-primary/10", - secondary: "bg-secondary dark:bg-secondary text-secondary-fg", + "bg-primary/10 dark:bg-primary/15 text-primary dark:text-primary group-hover:bg-primary/15 dark:group-hover:bg-primary/20", + secondary: + "bg-secondary/90 group-hover:bg-secondary dark:bg-secondary/90 dark:group-hover:bg-secondary text-secondary-fg", success: "bg-emerald-500/15 text-emerald-700 group-hover:bg-emerald-500/25 dark:bg-emerald-500/10 dark:text-emerald-400 dark:group-hover:bg-emerald-500/20", info: "bg-info/15 dark:bg-info/15 text-info group-hover:bg-info/15 dark:group-hover:bg-info/10", diff --git a/components/ui/color-field.tsx b/components/ui/color-field.tsx index af022d3d..b5a1f8b6 100644 --- a/components/ui/color-field.tsx +++ b/components/ui/color-field.tsx @@ -43,7 +43,7 @@ const ColorField = ({ aria-label={props["aria-label"] ?? "Color field"} className={ctr( className, - "[&_[data-slot=color-swatch]]:ml-2 group w-full flex flex-col gap-y-1" + "[&_[data-slot=color-swatch]]:-ml-0.5 group w-full flex flex-col gap-y-1" )} > {label && } @@ -67,7 +67,7 @@ const ColorField = ({ )} - + {suffix ? ( diff --git a/components/ui/combo-box.tsx b/components/ui/combo-box.tsx index 9cf68024..6efc9174 100644 --- a/components/ui/combo-box.tsx +++ b/components/ui/combo-box.tsx @@ -81,7 +81,7 @@ const ComboBoxInput = (props: InputProps) => { const context = useSlottedContext(ComboBoxContext)! return ( - + diff --git a/components/ui/field.tsx b/components/ui/field.tsx index beeddf5b..7372a942 100644 --- a/components/ui/field.tsx +++ b/components/ui/field.tsx @@ -56,7 +56,7 @@ const fieldStyles = tv({ label: "w-fit cursor-default font-medium text-secondary-fg text-sm", fieldError: "text-sm text-danger forced-colors:text-[Mark]", input: [ - "w-full min-w-0 [&::-ms-reveal]:hidden bg-transparent p-2 text-base text-fg placeholder-muted-fg outline-none focus:outline-none lg:text-sm" + "w-full min-w-0 [&::-ms-reveal]:hidden bg-transparent py-2 px-2.5 text-base text-fg placeholder-muted-fg outline-none focus:outline-none lg:text-sm" ] } }) @@ -88,7 +88,7 @@ const FieldError = ({ className, ...props }: FieldErrorProps) => { const fieldGroupStyles = tv({ base: [ - "group flex h-10 items-center overflow-hidden rounded-lg border border-input bg-bg transition forced-colors:bg-[Field]" + "group [&>[data-slot=icon]]:shrink-0 flex h-10 items-center overflow-hidden rounded-lg border border-input bg-bg transition forced-colors:bg-[Field]" ], variants: { isDisabled: { diff --git a/components/ui/search-field.tsx b/components/ui/search-field.tsx index 2cc05f1f..42a65d76 100644 --- a/components/ui/search-field.tsx +++ b/components/ui/search-field.tsx @@ -17,16 +17,11 @@ const searchFieldStyles = tv({ slots: { base: "group flex min-w-10 flex-col gap-1", searchIcon: - "ml-2 size-4 shrink-0 text-muted-fg group-disabled:text-muted-fg/50 forced-colors:text-[ButtonText] forced-colors:group-disabled:text-[GrayText]", + "ml-2.5 size-4 shrink-0 text-muted-fg group-disabled:text-muted-fg forced-colors:text-[ButtonText] forced-colors:group-disabled:text-[GrayText]", clearButton: [ "mr-1 size-8 text-muted-fg group-empty:invisible pressed:bg-transparent hover:bg-transparent hover:text-fg pressed:text-fg" ], input: "[&::-webkit-search-cancel-button]:hidden" - }, - variants: { - isPending: { - true: "" - } } }) @@ -60,7 +55,7 @@ const SearchField = ({ {isPending ? ( - + ) : (