feat(ui): agregar variante "card" a varios editores de cliente y ajustar clase en RdxPageContent
This commit is contained in:
parent
569f150c19
commit
450cc8d7bd
@ -20,6 +20,7 @@ export const CustomerAdditionalConfigEditor = ({
|
||||
description={t("form_groups.preferences.description")}
|
||||
icon={<Settings2Icon className="size-5" />}
|
||||
title={t("form_groups.preferences.title")}
|
||||
variant="card"
|
||||
>
|
||||
<RdxFormGrid>
|
||||
<SelectField
|
||||
|
||||
@ -20,6 +20,7 @@ export const CustomerAddressEditor = ({
|
||||
description={t("form_groups.address.description")}
|
||||
icon={<MapPinIcon className="size-5" />}
|
||||
title={t("form_groups.address.title")}
|
||||
variant="card"
|
||||
>
|
||||
<RdxFormGrid className="md:grid-cols-2">
|
||||
<TextField
|
||||
|
||||
@ -36,6 +36,7 @@ export const CustomerBasicInfoEditor = ({
|
||||
description={t("form_groups.basic_info.description")}
|
||||
icon={<FileTextIcon className="size-5" />}
|
||||
title={t("form_groups.basic_info.title")}
|
||||
variant="card"
|
||||
>
|
||||
<RdxFormGrid className="md:grid-cols-2">
|
||||
<TextField
|
||||
|
||||
@ -27,6 +27,7 @@ export const CustomerContactEditor = ({
|
||||
description={t("form_groups.contact_info.description")}
|
||||
icon={<PhoneIcon className="size-5" />}
|
||||
title={t("form_groups.contact_info.title")}
|
||||
variant="card"
|
||||
>
|
||||
<RdxFormGrid>
|
||||
<TextField
|
||||
|
||||
@ -31,6 +31,7 @@ export const CustomerFiscalEditor = ({
|
||||
description={t("form_groups.fiscal_info.description")}
|
||||
icon={<LandmarkIcon className="size-5" />}
|
||||
title={t("form_groups.fiscal_info.title")}
|
||||
variant="card"
|
||||
>
|
||||
<RdxFormGrid className="md:grid-cols-2">
|
||||
<SelectField
|
||||
|
||||
@ -73,7 +73,7 @@ export const CustomerUpdatePage = () => {
|
||||
<FormProvider {...updateCtrl.form}>
|
||||
<UnsavedChangesProvider isDirty={updateCtrl.form.formState.isDirty}>
|
||||
<RdxPageFrame
|
||||
contentClassName="bg-red-500"
|
||||
contentClassName="bg-muted/20"
|
||||
header={
|
||||
<CustomerUpdateHeader
|
||||
formId={updateCtrl.formId}
|
||||
|
||||
@ -62,10 +62,11 @@ export const SwitchField = <TFormValues extends FieldValues>({
|
||||
name={name}
|
||||
render={({ field, fieldState }) => {
|
||||
const hasError = Boolean(fieldState.error);
|
||||
|
||||
return (
|
||||
<Field
|
||||
className={cn("gap-2", className)}
|
||||
// Radix UI renderiza un input nativo absoluto para Switch.
|
||||
// Este containing block evita que genere overflow a nivel de documento.
|
||||
className={cn("gap-2 relative", className)}
|
||||
data-invalid={hasError}
|
||||
orientation={orientation}
|
||||
>
|
||||
|
||||
@ -32,7 +32,7 @@ export const RdxPageContent = ({
|
||||
if (!aside) {
|
||||
return (
|
||||
<div
|
||||
className={cn("flex min-w-0 flex-col", SPACING_CLASSNAME[spacing], className)}
|
||||
className={cn("flex min-w-0 flex-col ", SPACING_CLASSNAME[spacing], className)}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user