@codebit-programando-solucoes/codebit-web-antd 1.1.39 → 1.1.40
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 +25 -34
- package/dist/index.css +0 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1206,11 +1206,6 @@ var __webpack_exports__ = {};
|
|
|
1206
1206
|
AudioPlayer.propTypes = {
|
|
1207
1207
|
audioUrl: external_prop_types_default().string.isRequired
|
|
1208
1208
|
};
|
|
1209
|
-
const PhoneInput_module = {
|
|
1210
|
-
container: "container-IJ_oCC",
|
|
1211
|
-
countrySelect: "countrySelect-hsVqWh",
|
|
1212
|
-
phoneInput: "phoneInput-Pz8eaz"
|
|
1213
|
-
};
|
|
1214
1209
|
const COUNTRIES = [
|
|
1215
1210
|
{
|
|
1216
1211
|
code: 'BR',
|
|
@@ -1473,35 +1468,31 @@ var __webpack_exports__ = {};
|
|
|
1473
1468
|
setDisplayValue(applyMask(rawDigits, selectedCountry.code));
|
|
1474
1469
|
onChange?.(selectedCountry.dialCode + rawDigits);
|
|
1475
1470
|
};
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
placeholder: placeholder,
|
|
1502
|
-
className: PhoneInput_module.phoneInput
|
|
1503
|
-
})
|
|
1504
|
-
]
|
|
1471
|
+
const countrySelector = /*#__PURE__*/ (0, jsx_runtime.jsx)(external_antd_namespaceObject.Select, {
|
|
1472
|
+
value: selectedCountry.code,
|
|
1473
|
+
onChange: handleCountryChange,
|
|
1474
|
+
disabled: disabled,
|
|
1475
|
+
size: size,
|
|
1476
|
+
style: {
|
|
1477
|
+
width: 110
|
|
1478
|
+
},
|
|
1479
|
+
popupMatchSelectWidth: false,
|
|
1480
|
+
showSearch: true,
|
|
1481
|
+
filterOption: (input, option)=>option?.searchLabel?.toLowerCase().includes(input.toLowerCase()) ?? false,
|
|
1482
|
+
options: COUNTRIES.map((c)=>({
|
|
1483
|
+
value: c.code,
|
|
1484
|
+
label: `${c.flag} +${c.dialCode}`,
|
|
1485
|
+
searchLabel: countrySearchLabel(c)
|
|
1486
|
+
})),
|
|
1487
|
+
optionRender: (option)=>option.data.searchLabel
|
|
1488
|
+
});
|
|
1489
|
+
return /*#__PURE__*/ (0, jsx_runtime.jsx)(external_antd_namespaceObject.Input, {
|
|
1490
|
+
addonBefore: countrySelector,
|
|
1491
|
+
value: displayValue,
|
|
1492
|
+
onChange: handleInputChange,
|
|
1493
|
+
disabled: disabled,
|
|
1494
|
+
size: size,
|
|
1495
|
+
placeholder: placeholder
|
|
1505
1496
|
});
|
|
1506
1497
|
};
|
|
1507
1498
|
PhoneInput.propTypes = {
|
package/dist/index.css
CHANGED
|
@@ -89,21 +89,6 @@ html.dark-theme {
|
|
|
89
89
|
min-width: 100px;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.container-IJ_oCC {
|
|
93
|
-
width: 100%;
|
|
94
|
-
display: flex !important;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.countrySelect-hsVqWh {
|
|
98
|
-
flex-shrink: 0;
|
|
99
|
-
width: 110px !important;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.phoneInput-Pz8eaz {
|
|
103
|
-
flex: 1;
|
|
104
|
-
min-width: 0;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
92
|
.layout-mL5o6I {
|
|
108
93
|
height: 100vh;
|
|
109
94
|
position: fixed;
|