@xsolla/xui-input-phone 0.158.0 → 0.159.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 +18 -7
- package/native/index.js.map +1 -1
- package/native/index.mjs +18 -7
- package/native/index.mjs.map +1 -1
- package/package.json +3 -3
- package/web/index.js +19 -7
- package/web/index.js.map +1 -1
- package/web/index.mjs +19 -7
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -214,6 +214,8 @@ var Text = ({
|
|
|
214
214
|
numberOfLines,
|
|
215
215
|
id,
|
|
216
216
|
role,
|
|
217
|
+
testID,
|
|
218
|
+
"data-testid": dataTestId,
|
|
217
219
|
style: styleProp,
|
|
218
220
|
...props
|
|
219
221
|
}) => {
|
|
@@ -243,7 +245,7 @@ var Text = ({
|
|
|
243
245
|
{
|
|
244
246
|
style: baseStyle,
|
|
245
247
|
numberOfLines,
|
|
246
|
-
testID: id,
|
|
248
|
+
testID: dataTestId || testID || id,
|
|
247
249
|
accessibilityRole,
|
|
248
250
|
children
|
|
249
251
|
}
|
|
@@ -254,7 +256,13 @@ var Text = ({
|
|
|
254
256
|
import React from "react";
|
|
255
257
|
import { View as View2 } from "react-native";
|
|
256
258
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
257
|
-
var Icon = ({
|
|
259
|
+
var Icon = ({
|
|
260
|
+
children,
|
|
261
|
+
color,
|
|
262
|
+
size,
|
|
263
|
+
testID,
|
|
264
|
+
"data-testid": dataTestId
|
|
265
|
+
}) => {
|
|
258
266
|
const style = {
|
|
259
267
|
width: typeof size === "number" ? size : void 0,
|
|
260
268
|
height: typeof size === "number" ? size : void 0,
|
|
@@ -271,7 +279,7 @@ var Icon = ({ children, color, size }) => {
|
|
|
271
279
|
}
|
|
272
280
|
return child;
|
|
273
281
|
});
|
|
274
|
-
return /* @__PURE__ */ jsx3(View2, { style, children: childrenWithProps });
|
|
282
|
+
return /* @__PURE__ */ jsx3(View2, { style, testID: dataTestId || testID, children: childrenWithProps });
|
|
275
283
|
};
|
|
276
284
|
|
|
277
285
|
// ../../foundation/primitives-native/src/Input.tsx
|
|
@@ -330,7 +338,8 @@ var InputPrimitive = forwardRef(
|
|
|
330
338
|
"aria-describedby": ariaDescribedBy,
|
|
331
339
|
"aria-label": ariaLabel,
|
|
332
340
|
"aria-disabled": ariaDisabled,
|
|
333
|
-
"data-testid": dataTestId
|
|
341
|
+
"data-testid": dataTestId,
|
|
342
|
+
testID
|
|
334
343
|
}, ref) => {
|
|
335
344
|
const handleChangeText = (text) => {
|
|
336
345
|
onChangeText?.(text);
|
|
@@ -390,7 +399,7 @@ var InputPrimitive = forwardRef(
|
|
|
390
399
|
],
|
|
391
400
|
placeholderTextColor,
|
|
392
401
|
maxLength,
|
|
393
|
-
testID: dataTestId || id,
|
|
402
|
+
testID: dataTestId || testID || id,
|
|
394
403
|
accessibilityLabel: ariaLabel,
|
|
395
404
|
accessibilityHint: ariaDescribedBy,
|
|
396
405
|
accessibilityState: {
|
|
@@ -437,6 +446,7 @@ var BaseIcon = ({
|
|
|
437
446
|
className,
|
|
438
447
|
style,
|
|
439
448
|
"data-testid": testId,
|
|
449
|
+
testID,
|
|
440
450
|
"aria-label": ariaLabel,
|
|
441
451
|
"aria-hidden": ariaHidden
|
|
442
452
|
}) => {
|
|
@@ -449,7 +459,7 @@ var BaseIcon = ({
|
|
|
449
459
|
$color: color,
|
|
450
460
|
className,
|
|
451
461
|
style,
|
|
452
|
-
"data-testid": testId,
|
|
462
|
+
"data-testid": testId || testID,
|
|
453
463
|
role: ariaLabel ? "img" : void 0,
|
|
454
464
|
"aria-label": ariaLabel,
|
|
455
465
|
"aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),
|
|
@@ -503,6 +513,7 @@ var FlagIcon = ({
|
|
|
503
513
|
className,
|
|
504
514
|
style,
|
|
505
515
|
"data-testid": testId,
|
|
516
|
+
testID,
|
|
506
517
|
"aria-label": ariaLabel,
|
|
507
518
|
"aria-hidden": ariaHidden
|
|
508
519
|
}) => /* @__PURE__ */ jsx10(
|
|
@@ -511,7 +522,7 @@ var FlagIcon = ({
|
|
|
511
522
|
$size: size,
|
|
512
523
|
className,
|
|
513
524
|
style,
|
|
514
|
-
"data-testid": testId,
|
|
525
|
+
"data-testid": testId || testID,
|
|
515
526
|
role: ariaLabel ? "img" : void 0,
|
|
516
527
|
"aria-label": ariaLabel,
|
|
517
528
|
"aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),
|