This commit is contained in:
2025-12-11 21:06:25 +01:00
parent c49ea2598d
commit ec3ddc3a5c
227 changed files with 3496 additions and 2083 deletions

View File

@@ -2,7 +2,7 @@ import React, { InputHTMLAttributes, ReactNode } from 'react';
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
error?: boolean;
errorMessage?: string;
errorMessage?: string | undefined;
}
export default function Input({

View File

@@ -70,7 +70,11 @@ export default function Modal({
if (focusable.length === 0) return;
const first = focusable[0];
const last = focusable[focusable.length - 1];
const last = focusable[focusable.length - 1] ?? first;
if (!first || !last) {
return;
}
if (!event.shiftKey && document.activeElement === last) {
event.preventDefault();

View File

@@ -10,7 +10,7 @@ interface RangeFieldProps {
step?: number;
onChange: (value: number) => void;
helperText?: string;
error?: string;
error?: string | undefined;
disabled?: boolean;
unitLabel?: string;
rangeHint?: string;