Rebuild with custom components

This commit is contained in:
2025-09-03 20:48:50 +02:00
parent 63618d15f4
commit 22e3ec7929
54 changed files with 8423 additions and 11407 deletions

View File

@@ -0,0 +1,40 @@
import { ColorPaletteProp } from '@mui/joy'
export enum TState {
clean,
dirty,
busy,
success,
failure,
}
export const TDisabled = (state: TState): boolean => {
switch (state) {
case TState.busy:
return true
default:
return false
}
}
export const TColor = (state: TState): ColorPaletteProp => {
switch (state) {
case TState.clean:
return 'primary'
case TState.dirty:
return 'warning'
case TState.busy:
return 'neutral'
case TState.success:
return 'success'
case TState.failure:
return 'warning'
}
}
export default interface TProps {
disabled?: boolean
completionAction?: (
value: string | number | readonly string[] | undefined
) => Promise<void>
}