@xsolla/xui-input-phone 0.216.1 → 0.218.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/package.json +3 -3
- package/web/index.js +18 -0
- package/web/index.js.map +1 -1
- package/web/index.mjs +18 -0
- package/web/index.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-input-phone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.218.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-core": "0.
|
|
17
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-core": "0.218.0",
|
|
17
|
+
"@xsolla/xui-primitives-core": "0.218.0",
|
|
18
18
|
"libphonenumber-js": "^1.10.56"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
package/web/index.js
CHANGED
|
@@ -431,6 +431,24 @@ var StyledInput = (0, import_styled_components4.default)(FilteredInput)`
|
|
|
431
431
|
cursor: not-allowed;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
+
/*
|
|
435
|
+
* Hide the native number spin buttons. type="number" is rendered with the
|
|
436
|
+
* toolkit's own chevron stepper (see Input "Type number" in Figma), so the
|
|
437
|
+
* OS chrome must not show alongside it. Keyboard ArrowUp / ArrowDown are
|
|
438
|
+
* unaffected — this only removes the painted control.
|
|
439
|
+
*/
|
|
440
|
+
&[type="number"] {
|
|
441
|
+
-moz-appearance: textfield;
|
|
442
|
+
appearance: textfield;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
&[type="number"]::-webkit-outer-spin-button,
|
|
446
|
+
&[type="number"]::-webkit-inner-spin-button {
|
|
447
|
+
-webkit-appearance: none;
|
|
448
|
+
appearance: none;
|
|
449
|
+
margin: 0;
|
|
450
|
+
}
|
|
451
|
+
|
|
434
452
|
/* Override browser autofill background */
|
|
435
453
|
&:-webkit-autofill,
|
|
436
454
|
&:-webkit-autofill:hover,
|