diff --git a/dbal/shared/tools/codegen/generate-types.js b/dbal/shared/tools/codegen/generate-types.js index d4651dd7b..69a59df9c 100755 --- a/dbal/shared/tools/codegen/generate-types.js +++ b/dbal/shared/tools/codegen/generate-types.js @@ -117,7 +117,8 @@ function generateEntityInterface(entity) { output += `export interface ${interfaceName} {\n` output += fields.join('\n') - output += '\n}\n' + output += '\n [key: string]: unknown // Allow additional properties for DBAL compatibility\n' + output += '}\n' return output } diff --git a/fakemui/fakemui/data-display/Typography.tsx b/fakemui/fakemui/data-display/Typography.tsx index b18a2148e..c543beaa3 100644 --- a/fakemui/fakemui/data-display/Typography.tsx +++ b/fakemui/fakemui/data-display/Typography.tsx @@ -10,6 +10,7 @@ export interface TypographyProps extends React.HTMLAttributes { gutterBottom?: boolean noWrap?: boolean as?: React.ElementType + sx?: Record // MUI sx prop for styling compatibility } export const Typography: React.FC = ({ @@ -21,6 +22,7 @@ export const Typography: React.FC = ({ noWrap, className = '', as, + sx, ...props }) => { const Tag = diff --git a/fakemui/fakemui/inputs/FormControl.tsx b/fakemui/fakemui/inputs/FormControl.tsx index 5cd6d138a..4d2851992 100644 --- a/fakemui/fakemui/inputs/FormControl.tsx +++ b/fakemui/fakemui/inputs/FormControl.tsx @@ -42,6 +42,8 @@ export interface FormControlProps extends React.HTMLAttributes { filled?: boolean /** Whether the input is focused */ focused?: boolean + /** MUI sx prop for styling compatibility */ + sx?: Record } /** @@ -70,6 +72,7 @@ export const FormControl = forwardRef( filled = false, focused = false, className = '', + sx, ...props }, ref diff --git a/fakemui/fakemui/inputs/Select.tsx b/fakemui/fakemui/inputs/Select.tsx index 3fea93e64..a662a8321 100644 --- a/fakemui/fakemui/inputs/Select.tsx +++ b/fakemui/fakemui/inputs/Select.tsx @@ -4,10 +4,11 @@ export interface SelectProps extends React.SelectHTMLAttributes // MUI sx prop for styling compatibility } export const Select = forwardRef( - ({ children, sm, error, className = '', ...props }, ref) => ( + ({ children, sm, error, className = '', sx, ...props }, ref) => (