A full-featured CRM built with React, shadcn/ui, and Supabase.
fix prettier
erwanMarmelabf6ea7017273d
diff --git a/src/components/admin/array-input.tsx b/src/components/admin/array-input.tsxindex be535534..7e76ed50 100644--- a/src/components/admin/array-input.tsx+++ b/src/components/admin/array-input.tsx@@ -103,10 +103,8 @@ export const ArrayInput = (props: ArrayInputProps) => {);};-export interface ArrayInputProps extends Omit<- InputProps,- "disabled" | "readOnly"-> {+export interface ArrayInputProps+ extends Omit<InputProps, "disabled" | "readOnly"> {className?: string;children: React.ReactNode;isFetching?: boolean;diff --git a/src/components/admin/badge-field.tsx b/src/components/admin/badge-field.tsxindex f1ca3cff..39aaab30 100644--- a/src/components/admin/badge-field.tsx+++ b/src/components/admin/badge-field.tsx@@ -59,6 +59,7 @@ export const BadgeField = <RecordType extends RaRecord = RaRecord>({};export interface BadgeFieldProps<RecordType extends RaRecord = RaRecord>- extends FieldProps<RecordType>, BadgeProps {+ extends FieldProps<RecordType>,+ BadgeProps {variant?: "default" | "outline" | "secondary" | "destructive";}diff --git a/src/components/admin/data-table.tsx b/src/components/admin/data-table.tsxindex 452eb17a..706fa3f2 100644--- a/src/components/admin/data-table.tsx+++ b/src/components/admin/data-table.tsx@@ -293,9 +293,8 @@ const DataTableEmpty = () => {);};-export interface DataTableProps<- RecordType extends RaRecord = RaRecord,-> extends Partial<DataTableBaseProps<RecordType>> {+export interface DataTableProps<RecordType extends RaRecord = RaRecord>+ extends Partial<DataTableBaseProps<RecordType>> {children: ReactNode;className?: string;rowClassName?: (record: RecordType) => string | undefined;diff --git a/src/components/admin/date-field.tsx b/src/components/admin/date-field.tsxindex 4a4f78f3..5af7e0a9 100644--- a/src/components/admin/date-field.tsx+++ b/src/components/admin/date-field.tsx@@ -108,8 +108,8 @@ export const DateField = genericMemo(DateFieldImpl);export interface DateFieldProps<// eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, HTMLAttributes<HTMLSpanElement> {+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {locales?: Intl.LocalesArgument;options?: Intl.DateTimeFormatOptions;showTime?: boolean;diff --git a/src/components/admin/email-field.tsx b/src/components/admin/email-field.tsxindex 14e40174..3ce0231f 100644--- a/src/components/admin/email-field.tsx+++ b/src/components/admin/email-field.tsx@@ -65,8 +65,8 @@ export const EmailField = genericMemo(EmailFieldImpl);export interface EmailFieldProps<// eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, AnchorHTMLAttributes<HTMLAnchorElement> {}+> extends FieldProps<RecordType>,+ AnchorHTMLAttributes<HTMLAnchorElement> {}// useful to prevent click bubbling in a DataTable with rowClickconst stopPropagation = (e: React.MouseEvent<HTMLAnchorElement>) =>diff --git a/src/components/admin/error.tsx b/src/components/admin/error.tsxindex df7832ba..0d03acab 100644--- a/src/components/admin/error.tsx+++ b/src/components/admin/error.tsx@@ -106,7 +106,8 @@ export const Error = (props: InternalErrorProps & {}) => {};interface InternalErrorProps- extends Omit<HtmlHTMLAttributes<HTMLDivElement>, "title">, FallbackProps {+ extends Omit<HtmlHTMLAttributes<HTMLDivElement>, "title">,+ FallbackProps {className?: string;errorInfo?: ErrorInfo;}diff --git a/src/components/admin/file-field.tsx b/src/components/admin/file-field.tsxindex c50c9f8c..51a0c2a2 100644--- a/src/components/admin/file-field.tsx+++ b/src/components/admin/file-field.tsx@@ -111,8 +111,8 @@ export const FileField = <export interface FileFieldProps<// eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, HTMLAttributes<HTMLElement> {+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLElement> {/*** The source of the link to the file, for an array of files.*/diff --git a/src/components/admin/icon-button-with-tooltip.tsx b/src/components/admin/icon-button-with-tooltip.tsxindex d084f89d..55700c20 100644--- a/src/components/admin/icon-button-with-tooltip.tsx+++ b/src/components/admin/icon-button-with-tooltip.tsx@@ -78,7 +78,8 @@ export const IconButtonWithTooltip = ({);};-export interface IconButtonWithTooltipProps extends React.ComponentProps<"button"> {+export interface IconButtonWithTooltipProps+ extends React.ComponentProps<"button"> {label: React.ReactNode;children: React.ReactNode;}diff --git a/src/components/admin/image-field.tsx b/src/components/admin/image-field.tsxindex 16ca3390..adb3129f 100644--- a/src/components/admin/image-field.tsx+++ b/src/components/admin/image-field.tsx@@ -93,8 +93,8 @@ ImageField.displayName = "ImageField";export interface ImageFieldProps<RecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, HTMLAttributes<HTMLSpanElement> {+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {defaultValue?: any;src?: string;title?: HintedString<ExtractRecordPaths<RecordType>>;diff --git a/src/components/admin/list.tsx b/src/components/admin/list.tsxindex ab6d80ab..4e4035c9 100644--- a/src/components/admin/list.tsx+++ b/src/components/admin/list.tsx@@ -90,7 +90,8 @@ export const List = <RecordType extends RaRecord = RaRecord>(};export interface ListProps<RecordType extends RaRecord = RaRecord>- extends ListBaseProps<RecordType>, ListViewProps<RecordType> {}+ extends ListBaseProps<RecordType>,+ ListViewProps<RecordType> {}/*** The view component for List pages with layout and UI.diff --git a/src/components/admin/number-field.tsx b/src/components/admin/number-field.tsxindex c13ffba9..b65c9fa0 100644--- a/src/components/admin/number-field.tsx+++ b/src/components/admin/number-field.tsx@@ -68,8 +68,8 @@ export const NumberField = <export interface NumberFieldProps<RecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, HTMLAttributes<HTMLSpanElement> {+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {locales?: string | string[];options?: object;transform?: (value: any) => number;diff --git a/src/components/admin/number-input.tsx b/src/components/admin/number-input.tsxindex c035b80c..ddfdebf7 100644--- a/src/components/admin/number-input.tsx+++ b/src/components/admin/number-input.tsx@@ -107,8 +107,7 @@ export const NumberInput = (props: NumberInputProps) => {};export interface NumberInputProps- extends- InputProps,+ extends InputProps,Omit<React.ComponentProps<"input">,"defaultValue" | "onBlur" | "onChange" | "type"diff --git a/src/components/admin/radio-button-group-input.tsx b/src/components/admin/radio-button-group-input.tsxindex e726d71b..89e0bbcf 100644--- a/src/components/admin/radio-button-group-input.tsx+++ b/src/components/admin/radio-button-group-input.tsx@@ -174,8 +174,7 @@ export const RadioButtonGroupInput = (inProps: RadioButtonGroupInputProps) => {};export interface RadioButtonGroupInputProps- extends- Partial<InputProps>,+ extends Partial<InputProps>,ChoicesProps,Omit<React.ComponentProps<typeof RadioGroup>,diff --git a/src/components/admin/reference-array-input.tsx b/src/components/admin/reference-array-input.tsxindex f23110f5..3934143e 100644--- a/src/components/admin/reference-array-input.tsx+++ b/src/components/admin/reference-array-input.tsx@@ -62,6 +62,7 @@ const defaultChildren = <AutocompleteArrayInput />;const defaultFilter = {};export interface ReferenceArrayInputProps- extends InputProps, UseReferenceArrayInputParams {+ extends InputProps,+ UseReferenceArrayInputParams {children?: ReactElement;}diff --git a/src/components/admin/reference-many-field.tsx b/src/components/admin/reference-many-field.tsxindex 06c08a27..7d6aed43 100644--- a/src/components/admin/reference-many-field.tsx+++ b/src/components/admin/reference-many-field.tsx@@ -61,9 +61,10 @@ export const ReferenceManyField = <export interface ReferenceManyFieldProps<RecordType extends RaRecord = RaRecord,ReferenceRecordType extends RaRecord = RaRecord,->- extends- UseReferenceManyFieldControllerParams<RecordType, ReferenceRecordType>,+> extends UseReferenceManyFieldControllerParams<+ RecordType,+ ReferenceRecordType+ >,ReferenceManyFieldViewProps<ReferenceRecordType> {}const ReferenceManyFieldView = <diff --git a/src/components/admin/select-field.tsx b/src/components/admin/select-field.tsxindex b02e2c97..3763c5ad 100644--- a/src/components/admin/select-field.tsx+++ b/src/components/admin/select-field.tsx@@ -102,8 +102,9 @@ export const SelectField = genericMemo(SelectFieldImpl);export interface SelectFieldProps<// eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,->- extends- Omit<ChoicesProps, "disableValue" | "createValue" | "createHintValue">,+> extends Omit<+ ChoicesProps,+ "disableValue" | "createValue" | "createHintValue"+ >,FieldProps<RecordType>,HTMLAttributes<HTMLSpanElement> {}diff --git a/src/components/admin/show.tsx b/src/components/admin/show.tsxindex 44480840..f1f6ac40 100644--- a/src/components/admin/show.tsx+++ b/src/components/admin/show.tsx@@ -21,7 +21,8 @@ import { cn } from "@/lib/utils";import { EditButton } from "@/components/admin/edit-button";export interface ShowProps- extends ShowViewProps, Omit<ShowBaseProps, "children"> {}+ extends ShowViewProps,+ Omit<ShowBaseProps, "children"> {}/*** A complete show page with breadcrumb, title, and default actions.diff --git a/src/components/admin/simple-form-iterator.tsx b/src/components/admin/simple-form-iterator.tsxindex 1c40e3be..4c13fac0 100644--- a/src/components/admin/simple-form-iterator.tsx+++ b/src/components/admin/simple-form-iterator.tsx@@ -248,7 +248,8 @@ export const SimpleFormIteratorItem = React.forwardRef(},);-export interface SimpleFormIteratorItemProps extends SimpleFormIteratorItemBaseProps {+export interface SimpleFormIteratorItemProps+ extends SimpleFormIteratorItemBaseProps {disabled?: boolean;disableRemove?: boolean | SimpleFormIteratorDisableRemoveFunction;disableReordering?: boolean;diff --git a/src/components/admin/spinner.tsx b/src/components/admin/spinner.tsxindex 09e85f28..259f8eb4 100644--- a/src/components/admin/spinner.tsx+++ b/src/components/admin/spinner.tsx@@ -29,8 +29,7 @@ const loaderVariants = cva("animate-spin text-primary", {});interface SpinnerContentProps- extends- VariantProps<typeof spinnerVariants>,+ extends VariantProps<typeof spinnerVariants>,VariantProps<typeof loaderVariants> {className?: string;}diff --git a/src/components/admin/text-field.tsx b/src/components/admin/text-field.tsxindex 6d7bb6a8..d0a8cb0f 100644--- a/src/components/admin/text-field.tsx+++ b/src/components/admin/text-field.tsx@@ -57,5 +57,5 @@ export const TextField = <export interface TextFieldProps<RecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, HTMLAttributes<HTMLSpanElement> {}+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {}diff --git a/src/components/admin/url-field.tsx b/src/components/admin/url-field.tsxindex ac5bc512..5d5e82f6 100644--- a/src/components/admin/url-field.tsx+++ b/src/components/admin/url-field.tsx@@ -74,8 +74,8 @@ export const UrlField = genericMemo(UrlFieldImpl);export interface UrlFieldProps<//eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,->- extends FieldProps<RecordType>, AnchorHTMLAttributes<HTMLAnchorElement> {}+> extends FieldProps<RecordType>,+ AnchorHTMLAttributes<HTMLAnchorElement> {}// useful to prevent click bubbling in a DataTable with rowClickconst stopPropagation = (e: React.MouseEvent<HTMLAnchorElement>) =>diff --git a/src/components/atomic-crm/simple-list/SimpleList.tsx b/src/components/atomic-crm/simple-list/SimpleList.tsxindex 648d6ede..91c50431 100644--- a/src/components/atomic-crm/simple-list/SimpleList.tsx+++ b/src/components/atomic-crm/simple-list/SimpleList.tsx@@ -125,9 +125,8 @@ export const SimpleList = <RecordType extends RaRecord = any>();};-export interface SimpleListProps<- RecordType extends RaRecord = any,-> extends SimpleListBaseProps<RecordType> {+export interface SimpleListProps<RecordType extends RaRecord = any>+ extends SimpleListBaseProps<RecordType> {className?: string;empty?: ReactElement;// can be injected when using the component without contextdiff --git a/src/components/atomic-crm/simple-list/SimpleListItem.tsx b/src/components/atomic-crm/simple-list/SimpleListItem.tsxindex d201572b..e0e62b62 100644--- a/src/components/atomic-crm/simple-list/SimpleListItem.tsx+++ b/src/components/atomic-crm/simple-list/SimpleListItem.tsx@@ -122,9 +122,8 @@ export interface SimpleListBaseProps<RecordType extends RaRecord = any> {tertiaryText?: FunctionToElement<RecordType> | ReactElement | string;}-export interface SimpleListItemProps<- RecordType extends RaRecord = any,-> extends SimpleListBaseProps<RecordType> {+export interface SimpleListItemProps<RecordType extends RaRecord = any>+ extends SimpleListBaseProps<RecordType> {rowIndex: number;className?: string;style?: CSSProperties;diff --git a/src/components/ui/spinner.tsx b/src/components/ui/spinner.tsxindex 95c6682b..d2c0e604 100644--- a/src/components/ui/spinner.tsx+++ b/src/components/ui/spinner.tsx@@ -30,8 +30,7 @@ const loaderVariants = cva("animate-spin text-primary", {})interface SpinnerContentProps- extends- VariantProps<typeof spinnerVariants>,+ extends VariantProps<typeof spinnerVariants>,VariantProps<typeof loaderVariants> {className?: stringchildren?: React.ReactNode