This commit is contained in:
seb
2026-10-14 01:13:09 +02:00
parent 2dd6533481
commit 424609a0f6
8 changed files with 16 additions and 14 deletions

View File

@@ -59,6 +59,7 @@ class AppDialog extends Component {
const {
transitionDuration: _transitionDuration,
TransitionProps: _transitionProps,
transitionProps: _lowerTransitionProps,
TransitionComponent: _transitionComponent,
// Legacy MUI prop (removed in v9) — merge into slotProps.paper instead
// of spreading onto Dialog/DOM where it triggers
@@ -71,6 +72,7 @@ class AppDialog extends Component {
} = this.props;
void _transitionDuration;
void _transitionProps;
void _lowerTransitionProps;
void _transitionComponent;
const userPaper = userSlotProps?.paper ?? {};

View File

@@ -209,7 +209,7 @@ class ClickTooltip extends PureComponent {
disableTouchListener
enterDelay={0}
leaveDelay={0}
TransitionProps={{ timeout: 0 }}
slotProps={{ transition: { timeout: 0 } }}
title={title}
arrow
placement="top"

View File

@@ -317,7 +317,7 @@ class RecordPaymentDialog extends PureComponent {
type="number"
value={amount}
onChange={(e) => this.setState({ amount: e.target.value })}
inputProps={{ min: 0.01, step: 'any' }}
slotProps={{ htmlInput: { min: 0.01, step: 'any' } }}
/>
</Box>

View File

@@ -388,7 +388,7 @@ class NewShipmentModal extends PureComponent {
value={currentVal}
onChange={(e) => this.handleAmountChange(line.sku, e.target.value)}
disabled={remaining <= 0}
inputProps={{ min: 0, max: remaining, step: 'any', style: { textAlign: 'right' } }}
slotProps={{ htmlInput: { min: 0, max: remaining, step: 'any', style: { textAlign: 'right' } } }}
sx={{ width: 100 }}
/>
</TableCell>

View File

@@ -212,7 +212,7 @@ export default class McpAuthorizationsPanel extends Component {
</Box>
<Box>
<Stack direction="row" alignItems="center" spacing={1} flexWrap="wrap">
<Stack direction="row" alignItems="center" spacing={1} useFlexGap sx={{ flexWrap: 'wrap' }}>
<Typography variant="subtitle1" sx={{ fontWeight: 600 }}>
{auth.clientName || 'Unbenannter Client'}
</Typography>

View File

@@ -227,7 +227,6 @@ export default class SettingsKeysPanel extends Component {
disabled={draft.busy}
onChange={(e) => this.handleChange(row.key, 'value', e.target.value)}
slotProps={{ htmlInput: { spellCheck: false } }}
inputProps={{ spellCheck: false }}
>
{enumOpts.map((opt) => {
const val = typeof opt === 'object' ? opt.value : opt;
@@ -258,7 +257,6 @@ export default class SettingsKeysPanel extends Component {
}}
autoComplete="off"
slotProps={{ htmlInput: { spellCheck: false, autoCorrect: 'off', autoCapitalize: 'off' } }}
inputProps={{ spellCheck: false, autoCorrect: 'off', autoCapitalize: 'off' }}
/>
)}
</TableCell>

View File

@@ -129,7 +129,7 @@ export default class VfsAppletForm extends PureComponent {
disabled={Boolean(readOnly)}
helperText={prop?.description || (prop?.default !== undefined ? `Standard: ${String(prop.default)}` : '')}
onChange={(e) => this.handleFieldChange(key, e.target.value)}
inputProps={{ autoComplete: 'off', autoCorrect: 'off', autoCapitalize: 'off', spellCheck: false }}
slotProps={{ htmlInput: { autoComplete: 'off', autoCorrect: 'off', autoCapitalize: 'off', spellCheck: false } }}
sx={{ '& .MuiInputBase-input': { fontSize: '0.85rem' } }}
/>
);

View File

@@ -399,13 +399,15 @@ class ArtikelVorlagenPage extends PureComponent {
onChange={this.handleHeightMmChange}
onBlur={this.handleHeightMmBlur}
disabled={saving}
InputProps={{
endAdornment: <InputAdornment position="end">mm</InputAdornment>,
}}
inputProps={{
min: MIN_HEIGHT_MM,
max: 300,
step: 1,
slotProps={{
input: {
endAdornment: <InputAdornment position="end">mm</InputAdornment>,
},
htmlInput: {
min: MIN_HEIGHT_MM,
max: 300,
step: 1,
},
}}
sx={{ width: 120 }}
/>