Merge branch 'domain-revamp' of https://github.com/open-metadata/OpenMetadata into domain-revamp

This commit is contained in:
Satish 2025-10-01 15:43:28 +05:30
commit cad41cd445
4 changed files with 8 additions and 1 deletions

View File

@ -83,6 +83,9 @@ const AddDomainForm = ({
type === DomainFormType.DATA_PRODUCT type === DomainFormType.DATA_PRODUCT
? DEFAULT_DATA_PRODUCT_ICON ? DEFAULT_DATA_PRODUCT_ICON
: DEFAULT_DOMAIN_ICON, : DEFAULT_DOMAIN_ICON,
customStyles: {
searchBoxWidth: 366,
},
}, },
formItemLayout: FormItemLayout.HORIZONTAL, formItemLayout: FormItemLayout.HORIZONTAL,
formItemProps: { formItemProps: {

View File

@ -38,4 +38,5 @@ export interface MUIIconPickerProps {
backgroundColor?: string; backgroundColor?: string;
toolTip?: ReactNode; toolTip?: ReactNode;
defaultIcon?: IconDefinition; defaultIcon?: IconDefinition;
customStyles?: Record<string, string | number>;
} }

View File

@ -44,6 +44,7 @@ const MUIIconPicker: FC<MUIIconPickerProps> = ({
toolTip, toolTip,
defaultIcon, defaultIcon,
onChange, onChange,
customStyles,
}) => { }) => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation(); const { t } = useTranslation();
@ -91,6 +92,7 @@ const MUIIconPicker: FC<MUIIconPickerProps> = ({
searchPlaceholder: t('label.search'), searchPlaceholder: t('label.search'),
onSearchChange: setSearchQuery, onSearchChange: setSearchQuery,
initialSearchQuery: '', initialSearchQuery: '',
customStyles,
}); });
const filteredIcons = searchQuery const filteredIcons = searchQuery

View File

@ -21,6 +21,7 @@ interface SearchConfig {
searchPlaceholder: string; searchPlaceholder: string;
onSearchChange: (query: string) => void; onSearchChange: (query: string) => void;
initialSearchQuery?: string; initialSearchQuery?: string;
customStyles?: Record<string, string | number>;
} }
export const useSearch = (config: SearchConfig) => { export const useSearch = (config: SearchConfig) => {
@ -73,7 +74,7 @@ export const useSearch = (config: SearchConfig) => {
}, },
}} }}
sx={{ sx={{
width: 354, width: config.customStyles?.searchBoxWidth ?? 354,
'& .MuiOutlinedInput-root': { '& .MuiOutlinedInput-root': {
width: '100%', width: '100%',
backgroundColor: theme.palette.allShades?.blueGray?.[40], backgroundColor: theme.palette.allShades?.blueGray?.[40],