@ehfuse/mui-form-controls 3.1.58 → 3.1.59

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
@@ -545,6 +545,18 @@ export type BizNumTextFieldProps = Omit<TextFieldProps, "type" | "value"> & Base
545
545
  fontColor?: string;
546
546
  fontFamily?: string;
547
547
  };
548
+ /**
549
+ * 법인등록번호 텍스트 필드 타입
550
+ */
551
+ export type CorpNumTextFieldProps = Omit<TextFieldProps, "type" | "value"> & BaseTextFieldProps & ValidatableTextFieldProps & {
552
+ value?: string;
553
+ includeDash?: boolean;
554
+ validate?: boolean;
555
+ copyIcon?: boolean;
556
+ fontSize?: string | number;
557
+ fontColor?: string;
558
+ fontFamily?: string;
559
+ };
548
560
  /** CardNumTextField ref — `focus()`는 이어 쓸 위치로, `blur()`는 포커스 해제 */
549
561
  export type CardNumTextFieldHandle = {
550
562
  focus: () => void;
@@ -10,3 +10,9 @@
10
10
  * 사업자등록번호는 10자리 숫자이며, 마지막 자리가 검증번호입니다.
11
11
  */
12
12
  export declare function validateBusinessNumber(value: string): boolean;
13
+ /**
14
+ * 법인등록번호 유효성 검사 (검증 알고리즘)
15
+ * 법인등록번호는 13자리 숫자이며, 마지막 자리가 검증번호입니다.
16
+ * 가중치 1,2를 번갈아 곱해 합산한 뒤 10으로 나눈 나머지를 10에서 뺀 값이 검증번호입니다.
17
+ */
18
+ export declare function validateCorpNumber(value: string): boolean;
@@ -13,7 +13,7 @@ export type { ResolvedThousandSeparator, ThousandSeparatorProp, } from "./number
13
13
  export { DEFAULT_EMAIL_DOMAINS, validateEmail } from "./email";
14
14
  export { formatPhoneNumber, getPhoneMaxLength } from "./phone";
15
15
  export { DEFAULT_SPECIAL_CHARS, DEFAULT_PASSWORD_VALIDATION_RULES, validatePassword, } from "./password";
16
- export { validateBusinessNumber } from "./biznum";
16
+ export { validateBusinessNumber, validateCorpNumber } from "./biznum";
17
17
  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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/mui-form-controls",
3
- "version": "3.1.58",
3
+ "version": "3.1.59",
4
4
  "description": "Material-UI form controls and text fields for complex forms",
5
5
  "private": false,
6
6
  "publishConfig": {