@xsolla/xui-input-phone 0.140.0 → 0.141.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.
- package/native/index.js +6 -0
- package/native/index.js.map +1 -1
- package/native/index.mjs +6 -0
- package/native/index.mjs.map +1 -1
- package/package.json +3 -3
- package/web/index.js +3 -1
- package/web/index.js.map +1 -1
- package/web/index.mjs +3 -1
- package/web/index.mjs.map +1 -1
package/native/index.js
CHANGED
|
@@ -350,6 +350,7 @@ var InputPrimitive = (0, import_react2.forwardRef)(
|
|
|
350
350
|
style,
|
|
351
351
|
color,
|
|
352
352
|
fontSize,
|
|
353
|
+
fontFamily,
|
|
353
354
|
placeholderTextColor,
|
|
354
355
|
maxLength,
|
|
355
356
|
type,
|
|
@@ -380,6 +381,10 @@ var InputPrimitive = (0, import_react2.forwardRef)(
|
|
|
380
381
|
};
|
|
381
382
|
const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
|
|
382
383
|
const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
|
|
384
|
+
let resolvedFontFamily = fontFamily ? fontFamily.split(",")[0].replace(/['"]/g, "").trim() : void 0;
|
|
385
|
+
if (resolvedFontFamily === "Pilat Wide" || resolvedFontFamily === "Pilat Wide Bold" || resolvedFontFamily === "Aktiv Grotesk") {
|
|
386
|
+
resolvedFontFamily = void 0;
|
|
387
|
+
}
|
|
383
388
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
384
389
|
import_react_native4.TextInput,
|
|
385
390
|
{
|
|
@@ -406,6 +411,7 @@ var InputPrimitive = (0, import_react2.forwardRef)(
|
|
|
406
411
|
{
|
|
407
412
|
color,
|
|
408
413
|
fontSize: typeof fontSize === "number" ? fontSize : void 0,
|
|
414
|
+
fontFamily: resolvedFontFamily,
|
|
409
415
|
flex: 1,
|
|
410
416
|
padding: 0,
|
|
411
417
|
textAlign: style?.textAlign || "left"
|