@ehfuse/mui-form-controls 3.5.12 → 3.6.0

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.
@@ -0,0 +1,19 @@
1
+ /** 이 패키지가 아는 화면 언어 */
2
+ export type MuiFormControlsLang = "ko" | "en" | "ja" | "zh" | "de" | "fr" | "it" | "vi";
3
+ /** "en-US" · "zh_CN" 같은 값을 아는 언어로 — 모르면 영어 */
4
+ export declare function normalizeLang(lang?: string | null): MuiFormControlsLang;
5
+ /** 화면 언어를 정한다(앱 전역 — 앱이 언어를 바꿀 때마다 부른다). */
6
+ export declare function setMuiFormControlsLocale(lang: string): void;
7
+ /** 지금 화면 언어 */
8
+ export declare function getMuiFormControlsLocale(): MuiFormControlsLang;
9
+ export type TParams = Record<string, string | number | null | undefined>;
10
+ /** 열쇠 → 글. lang 을 주면 그 언어(컴포넌트 locale prop), 아니면 전역 언어. {{x}} 에 params 를 넣는다. */
11
+ export declare function t(key: string, params?: TParams, lang?: string | null): string;
12
+ /** Intl 에 줄 언어 태그(날짜 · 숫자) */
13
+ export declare function intlTag(lang?: string | null): string;
14
+ /** 컴포넌트용 — 전역 언어가 바뀌면 다시 그린다. localeProp 을 주면 그것이 이긴다. */
15
+ export declare function useI18n(localeProp?: string | null): {
16
+ t: (key: string, params?: TParams) => string;
17
+ lang: MuiFormControlsLang;
18
+ intlTag: string;
19
+ };
package/dist/index.d.ts CHANGED
@@ -53,3 +53,5 @@ export type { ReadonlyDisplayProps } from "./components/ReadonlyDisplay";
53
53
  export { ReadonlyField, shouldRenderReadonlyBox, } from "./components/ReadonlyField";
54
54
  export { CardIcon, VisaIcon, MastercardIcon, AmexIcon, JcbIcon, DinersIcon, DiscoverIcon, UnionPayIcon, BcIcon, } from "./icons";
55
55
  export type { SearchTextFieldProps, ClearTextFieldProps, TagsTextFieldProps, PasswordTextFieldProps, TextFieldProps, TextAreaProps, CheckboxProps, SwitchProps, RadioGroupProps, RadioOption, DateRangeProps, SliderProps, RatingProps, ToggleButtonProps, ToggleButtonGroupProps, ToggleButtonGroupOption, ButtonGroupProps, StepperProps, AutocompleteProps, AutocompleteOption, SelectProps, SelectOption, LabelSelectProps, LabelSelectOption, AddressTextFieldProps, DaumPostcodeData, PasswordValidationRules, PasswordValidationResult, PhoneTextFieldProps, PhoneFormat, NumberTextFieldProps, JuminTextFieldProps, JuminInfo, VerificationCodeTextFieldProps, VerificationCodeType, EmailTextFieldProps, CustomDomain, DateTextFieldProps, MonthTextFieldProps, YearTextFieldProps, PeriodTextFieldProps, DateFormat, TimeTextFieldProps, TimeFormat, DateTimeTextFieldProps, DateTimeFormat, BizNumTextFieldProps, CorpNumTextFieldProps, CardNumTextFieldProps, CardNumTextFieldHandle, BankAccountTextFieldProps, BankAccountVerifyRequest, BankAccountVerifyResult, BankAccountVerifyStatus, SelectChangeEvent, } from "./types";
56
+ export { setMuiFormControlsLocale, getMuiFormControlsLocale } from "./i18n";
57
+ export type { MuiFormControlsLang } from "./i18n";