@ehfuse/mui-form-controls 3.2.3 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,6 +48,13 @@ export type NumberBaseProps = BaseNumberField.Root.Props & {
|
|
|
48
48
|
};
|
|
49
49
|
/** 다양한 입력(문자열·null 포함)을 NumberField 내부 숫자 값으로 정규화 */
|
|
50
50
|
export declare function normalizeNumberFieldValue(value: unknown): number | null;
|
|
51
|
+
/**
|
|
52
|
+
* 입력칸 keydown 을 감싸 Shift+Home/End 를 Base UI 로 넘기지 않는다.
|
|
53
|
+
* Base UI NumberField 는 spinbutton 규약대로 Home=min · End=max 로 값을 바꾸는데,
|
|
54
|
+
* Shift 를 누른 Home/End 는 값 이동이 아니라 텍스트 선택 의도이므로 브라우저 기본 동작만 남긴다.
|
|
55
|
+
* (Ctrl/Alt/Meta 조합은 Base UI 가 이미 건너뛴다)
|
|
56
|
+
*/
|
|
57
|
+
export declare function wrapNumberInputKeyDown(handler: React.KeyboardEventHandler<HTMLInputElement> | undefined): React.KeyboardEventHandler<HTMLInputElement>;
|
|
51
58
|
/** default OutlinedInput과 동일한 입력 영역 높이 */
|
|
52
59
|
export declare function getNumberFieldControlHeight(size: "small" | "medium"): 40 | 56;
|
|
53
60
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { type ThousandSeparatorProp } from "../utils/number";
|
|
12
|
-
export declare function useNumberFieldLiveGrouping({ thousandSeparator, locale, format, clearWhenZero,
|
|
12
|
+
export declare function useNumberFieldLiveGrouping({ thousandSeparator, locale, format, clearWhenZero, max, }: {
|
|
13
13
|
thousandSeparator?: ThousandSeparatorProp;
|
|
14
14
|
locale?: Intl.LocalesArgument;
|
|
15
15
|
format?: Intl.NumberFormatOptions;
|
|
@@ -19,9 +19,7 @@ export declare function useNumberFieldLiveGrouping({ thousandSeparator, locale,
|
|
|
19
19
|
* @default false
|
|
20
20
|
*/
|
|
21
21
|
clearWhenZero?: boolean;
|
|
22
|
-
/** 입력 중 즉시 경계값으로 고정하기 위한
|
|
23
|
-
min?: number;
|
|
24
|
-
/** 입력 중 즉시 경계값으로 고정하기 위한 최대값 */
|
|
22
|
+
/** 입력 중 즉시 경계값으로 고정하기 위한 최대값(min은 입력 중 적용하지 않는다 — blur 확정 시 보정) */
|
|
25
23
|
max?: number;
|
|
26
24
|
}): {
|
|
27
25
|
getDisplayValue: (baseInputValue: string) => string;
|