@chekinapp/ui 0.0.141 → 0.0.142
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.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14594,14 +14594,15 @@ var PhoneInput = React50.forwardRef(
|
|
|
14594
14594
|
className,
|
|
14595
14595
|
autoDetectCode = true,
|
|
14596
14596
|
searchable = true,
|
|
14597
|
-
defaultCode
|
|
14597
|
+
defaultCode,
|
|
14598
|
+
defaultNumber
|
|
14598
14599
|
}, ref) {
|
|
14599
14600
|
const { t } = (0, import_react_i18next33.useTranslation)();
|
|
14600
14601
|
const groupLabelId = React50.useId();
|
|
14601
14602
|
const errorMsgId = React50.useId();
|
|
14602
14603
|
const numberInputRef = React50.useRef(null);
|
|
14603
14604
|
const [codeSearchValue, setCodeSearchValue] = React50.useState("");
|
|
14604
|
-
const safeValue = toPhoneValue(value);
|
|
14605
|
+
const safeValue = toPhoneValue(value, defaultCode, defaultNumber);
|
|
14605
14606
|
const effectiveCode = safeValue.code || defaultCode || "";
|
|
14606
14607
|
const resolvedLabel = label ?? "";
|
|
14607
14608
|
const hasExternalError = Boolean(error);
|