feat(data overlay): add foreground background control plus orientation change in the UI and add RTDOSE support (#5007)

This commit is contained in:
Alireza authored and GitHub committed 2025-05-05 16:35:05 -04:00
1 parent c1fced0573
commit cd4e6408bc
105 files changed
+3117 -788

No files matched your search

@@ -29,6 +29,7 @@ interface NumericMetaContextValue {
min: number;
max: number;
step: number;
lockMode?: boolean;
}
const NumericMetaContext = createContext<NumericMetaContextValue | null>(null);
@@ -47,6 +48,7 @@ interface NumericMetaContainerProps {
max?: number;
step?: number;
className?: string;
lockMode?: boolean; // Add lock mode prop for doubleRange
}
function NumericMetaContainer({
@@ -60,6 +62,7 @@ function NumericMetaContainer({
max = 100,
step = 1,
className,
lockMode = false,
children,
}: PropsWithChildren<NumericMetaContainerProps>) {
// Calculate default values based on min and max
@@ -115,6 +118,7 @@ function NumericMetaContainer({
min,
max,
step,
lockMode,
}}
>
<div className={cn('flex flex-col', className)}>{children}</div>
@@ -236,7 +240,7 @@ function DoubleRange({ showNumberInputs, className }: DoubleRangeProps) {
throw new Error('DoubleRange must be used inside <Numeric.Container>.');
}
const { mode, doubleValue, setDoubleValue, min, max, step } = ctx;
const { mode, doubleValue, setDoubleValue, min, max, step, lockMode } = ctx;
const handleSliderChange = useCallback(
(values: [number, number]) => {
@@ -258,6 +262,7 @@ function DoubleRange({ showNumberInputs, className }: DoubleRangeProps) {
defaultValue={doubleValue}
onValueChange={handleSliderChange}
showNumberInputs={showNumberInputs}
lockMode={lockMode}
/>
</div>
);