@ehfuse/mui-form-controls 3.3.0 → 3.3.2
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/dist/types.d.ts +2 -0
- package/dist/utils/bankAccount.d.ts +5 -0
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -330,6 +330,7 @@ export type TagsTextFieldProps = Omit<TextFieldProps, "value" | "defaultValue" |
|
|
|
330
330
|
deleteIconSx?: SxProps<Theme>;
|
|
331
331
|
draggable?: boolean;
|
|
332
332
|
spaceToConfirm?: boolean;
|
|
333
|
+
tagPrefix?: string;
|
|
333
334
|
backspaceToDelete?: boolean;
|
|
334
335
|
showDeleteIcon?: boolean;
|
|
335
336
|
/**
|
|
@@ -613,6 +614,7 @@ export type BankAccountTextFieldProps = Omit<TextFieldProps, "type" | "value"> &
|
|
|
613
614
|
bank?: string | null;
|
|
614
615
|
includeDash?: boolean;
|
|
615
616
|
copyIcon?: boolean;
|
|
617
|
+
validate?: boolean;
|
|
616
618
|
verify?: (request: BankAccountVerifyRequest) => Promise<BankAccountVerifyResult>;
|
|
617
619
|
verifyButtonText?: string;
|
|
618
620
|
identityNum?: string;
|
|
@@ -55,6 +55,11 @@ export declare function getBankAccountGroups(bank: string | BankInfo | null | un
|
|
|
55
55
|
export declare function formatBankAccount(bank: string | BankInfo | null | undefined, raw: string | null | undefined): string;
|
|
56
56
|
/** 그 은행에서 알려진 계좌번호 자리수 목록(오름차순). 모르면 빈 배열. */
|
|
57
57
|
export declare function getBankAccountLengths(bank: string | BankInfo | null | undefined): number[];
|
|
58
|
+
/**
|
|
59
|
+
* 자리수가 맞지 않을 때 보여줄 안내 문구. 유효하거나 비어 있으면 null.
|
|
60
|
+
* 예: "국민은행 계좌번호는 보통 12·14자리입니다 (현재 11자리)"
|
|
61
|
+
*/
|
|
62
|
+
export declare function describeBankAccountLengthIssue(bank: string | BankInfo | null | undefined, raw: string | null | undefined): string | null;
|
|
58
63
|
/**
|
|
59
64
|
* 자리수 기준 형식 검사. 계좌번호에는 공통 검증번호 알고리즘이 없어(은행마다 비공개) 자리수만 본다.
|
|
60
65
|
* - 은행 형식을 알면: 알려진 자리수 중 하나이거나 평생계좌(010 11자리)면 유효.
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export { validateCardNumber, detectCardBrand } from "./card";
|
|
|
18
18
|
export type { CardBrand } from "./card";
|
|
19
19
|
export { REGION_MAP, extractJuminInfo, validateJuminChecksum, validateJuminBirthDate, isJuminValueValid, isJuminValueInvalidState, sanitizeJuminFrontBirthDigits, canAppendJuminBirthDigit, maxDayForJuminFrontYyMm, } from "./jumin";
|
|
20
20
|
export { isInteractionLocked, interactionLockSx, withInteractionLockSx, interactionLockInputProps, } from "./readonly";
|
|
21
|
-
export { BANKS, BANK_ACCOUNT_MAX_LENGTH, resolveBank, sanitizeBankAccount, formatBankAccount, getBankAccountGroups, getBankAccountLengths, isBankAccountLengthValid, } from "./bankAccount";
|
|
21
|
+
export { BANKS, BANK_ACCOUNT_MAX_LENGTH, resolveBank, sanitizeBankAccount, formatBankAccount, getBankAccountGroups, getBankAccountLengths, isBankAccountLengthValid, describeBankAccountLengthIssue, } from "./bankAccount";
|
|
22
22
|
export type { BankInfo } from "./bankAccount";
|