@ehfuse/mui-form-controls 3.1.14 → 3.1.16

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.
package/dist/types.d.ts CHANGED
@@ -529,6 +529,11 @@ export type BizNumTextFieldProps = Omit<TextFieldProps, "type" | "value"> & Base
529
529
  fontColor?: string;
530
530
  fontFamily?: string;
531
531
  };
532
+ /** CardNumTextField ref — `focus()`는 이어 쓸 위치로, `blur()`는 포커스 해제 */
533
+ export type CardNumTextFieldHandle = {
534
+ focus: () => void;
535
+ blur: () => void;
536
+ };
532
537
  /**
533
538
  * 카드번호 텍스트 필드 타입
534
539
  */
@@ -8,7 +8,7 @@
8
8
  export { isLeapYear, getDaysInMonth, getSeparator, formatDate, getMaxLength, getCompleteLength, parseDateParts, validateDate, parseToDate, clampDateValue, extractDateFormat, hasSecondField, constrainDateNumbers, formatDateValue, formatToPlaceholder, getSegmentRange, hasYearInFormat, has2DigitYear, convertYY2YYYY, parseDateWithInternalYear, buildDateOutputValue, dateToNumbers, tryParsePastedDateTimeClipboard, tryParsePastedDateClipboard, } from "./date";
9
9
  export type { ParsedPasteDateTime, ParsedPasteDateOnly } from "./date";
10
10
  export { getTimeFieldCount, is12HourFormat, validateTime, clampTimeValue, } from "./time";
11
- export { formatNumber, parseNumber } from "./number";
11
+ export { clampNumberToRange, formatNumber, formatNumberFieldDisplay, parseNumber, } from "./number";
12
12
  export { DEFAULT_EMAIL_DOMAINS, validateEmail } from "./email";
13
13
  export { formatPhoneNumber, getPhoneMaxLength } from "./phone";
14
14
  export { DEFAULT_SPECIAL_CHARS, DEFAULT_PASSWORD_VALIDATION_RULES, validatePassword, } from "./password";
@@ -13,3 +13,7 @@ export declare function formatNumber(value: string, thousandSeparator: boolean,
13
13
  * 표시 값에서 실제 숫자 값 추출
14
14
  */
15
15
  export declare function parseNumber(displayValue: string): string;
16
+ /** min/max 범위로 숫자 값 보정 (경계 미지정 시 해당 방향은 보정하지 않음) */
17
+ export declare function clampNumberToRange(value: number | null | undefined, min?: number, max?: number): number | null;
18
+ /** NumberField 입력란에 표시할 포맷 문자열 */
19
+ export declare function formatNumberFieldDisplay(value: number, locale?: Intl.LocalesArgument, format?: Intl.NumberFormatOptions): string;
@@ -0,0 +1,5 @@
1
+ import type { SxProps, Theme } from "@mui/material/styles";
2
+ export declare const CLOSED_OUTLINED_BORDER_COLOR = "rgba(0, 0, 0, 0.23)";
3
+ export declare const CLOSED_OUTLINED_LABEL_COLOR = "rgba(0, 0, 0, 0.6)";
4
+ export declare const outlinedFieldFocusToneSx: SxProps<Theme>;
5
+ export declare const outlinedFieldReadonlyToneSx: SxProps<Theme>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/mui-form-controls",
3
- "version": "3.1.14",
3
+ "version": "3.1.16",
4
4
  "description": "Material-UI form controls and text fields for complex forms",
5
5
  "private": false,
6
6
  "publishConfig": {