Refactor spreadsheet import (#11250)

Mostly renaming objects to avoid conflicts (it was painful because names
were too generic so you could cmd+replace easily)

Also refactoring `useBuildAvailableFieldsForImport`
This commit is contained in:
Félix Malfait
2025-03-28 07:56:51 +01:00
committed by GitHub
parent 9af2628264
commit e9e33c4d29
84 changed files with 960 additions and 916 deletions

View File

@ -27,3 +27,4 @@ export * from './components/Radio';
export * from './components/RadioGroup';
export * from './components/Toggle';
export * from './types/ColorScheme';
export * from './types/SelectOption';

View File

@ -0,0 +1,12 @@
import { IconComponent } from '@ui/display';
import { ThemeColor } from '@ui/theme';
export type SelectOption<
Value extends string | number | boolean | null = string,
> = {
Icon?: IconComponent | null;
label: string;
value: Value;
disabled?: boolean;
color?: ThemeColor | 'transparent';
};