Migrate to Mantine v8 and Design Changes (#961)

* mantine v8 migration

* various design changes and improvements
This commit is contained in:
Jeff
2025-06-24 00:04:36 -07:00
committed by GitHub
parent bea55d48a8
commit c1330d92b2
473 changed files with 12469 additions and 11607 deletions
@@ -0,0 +1,19 @@
.root {
& [data-disabled='true'] {
opacity: 0.6;
}
}
.input {
color: var(--theme-colors-surface-foreground);
background: var(--theme-colors-surface);
border: 1px solid transparent;
}
.section {
color: var(--theme-colors-foreground-muted);
}
.required {
color: var(--theme-colors-state-error);
}
@@ -0,0 +1,35 @@
import type { DateInputProps as MantineDateInputProps } from '@mantine/dates';
import { DateInput as MantineDateInput } from '@mantine/dates';
import styles from './date-picker.module.css';
interface DateInputProps extends MantineDateInputProps {
maxWidth?: number | string;
width?: number | string;
}
export const DateInput = ({
classNames,
maxWidth,
size = 'sm',
style,
width,
...props
}: DateInputProps) => {
return (
<MantineDateInput
classNames={{
input: styles.input,
label: styles.label,
required: styles.required,
root: styles.root,
section: styles.section,
...classNames,
}}
size={size}
style={{ maxWidth, width, ...style }}
{...props}
/>
);
};