@ehfuse/mui-form-controls 3.1.58 → 3.1.60

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
@@ -385,6 +385,12 @@ export type NumberTextFieldProps = Omit<TextFieldProps, "type"> & BaseTextFieldP
385
385
  };
386
386
  export interface AddressTextFieldProps extends Omit<TextFieldProps, "type">, BaseTextFieldProps {
387
387
  spellCheck?: boolean;
388
+ /**
389
+ * 우편번호 검색 팝업에서 주소를 선택했을 때 호출된다.
390
+ * 화면에 반영된 주소 문자열과 Daum 우편번호 API 원본 데이터를 함께 전달한다.
391
+ * (우편번호는 `data.zonecode`)
392
+ */
393
+ onAddressComplete?: (address: string, data: DaumPostcodeData) => void;
388
394
  }
389
395
  /** Daum 우편번호 API 응답 데이터 타입 */
390
396
  export interface DaumPostcodeData {
@@ -545,6 +551,18 @@ export type BizNumTextFieldProps = Omit<TextFieldProps, "type" | "value"> & Base
545
551
  fontColor?: string;
546
552
  fontFamily?: string;
547
553
  };
554
+ /**
555
+ * 법인등록번호 텍스트 필드 타입
556
+ */
557
+ export type CorpNumTextFieldProps = Omit<TextFieldProps, "type" | "value"> & BaseTextFieldProps & ValidatableTextFieldProps & {
558
+ value?: string;
559
+ includeDash?: boolean;
560
+ validate?: boolean;
561
+ copyIcon?: boolean;
562
+ fontSize?: string | number;
563
+ fontColor?: string;
564
+ fontFamily?: string;
565
+ };
548
566
  /** CardNumTextField ref — `focus()`는 이어 쓸 위치로, `blur()`는 포커스 해제 */
549
567
  export type CardNumTextFieldHandle = {
550
568
  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.60",
4
4
  "description": "Material-UI form controls and text fields for complex forms",
5
5
  "private": false,
6
6
  "publishConfig": {