mui-tel-input 1.0.1 → 1.0.2
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/mui-tel-input.es.js
CHANGED
|
@@ -265,9 +265,9 @@ const Styled$1 = {
|
|
|
265
265
|
return {
|
|
266
266
|
display: "inline-block",
|
|
267
267
|
backgroundSize: "cover",
|
|
268
|
-
"--
|
|
269
|
-
height: "var(--
|
|
270
|
-
width: "calc(var(--
|
|
268
|
+
"--mui-tel-input-flag-height": "0.8em",
|
|
269
|
+
height: "var(--mui-tel-input-flag-height)",
|
|
270
|
+
width: "calc(var(--mui-tel-input-flag-height)*3/2)"
|
|
271
271
|
};
|
|
272
272
|
}),
|
|
273
273
|
Span: styled("span")(() => {
|
|
@@ -290,6 +290,7 @@ const Flag = (props) => {
|
|
|
290
290
|
const svgFlag = isoCode && isoCode in FLAGS_SVG ? `"${FLAGS_SVG[isoCode]}"` : unknownFlag;
|
|
291
291
|
return /* @__PURE__ */ jsx(Styled$1.Flag, {
|
|
292
292
|
"data-testid": isoCode,
|
|
293
|
+
className: "MuiTelInput-Flag",
|
|
293
294
|
style: {
|
|
294
295
|
backgroundImage: `url(${svgFlag})`
|
|
295
296
|
},
|
|
@@ -309,6 +310,7 @@ const FlagButton = (props) => {
|
|
|
309
310
|
if (disableDropdown) {
|
|
310
311
|
return /* @__PURE__ */ jsx(IconButton, {
|
|
311
312
|
tabIndex: -1,
|
|
313
|
+
className: "MuiTelInput-IconButton",
|
|
312
314
|
role: "",
|
|
313
315
|
disableRipple: true,
|
|
314
316
|
sx: {
|
|
@@ -323,6 +325,7 @@ const FlagButton = (props) => {
|
|
|
323
325
|
return /* @__PURE__ */ jsx(IconButton, {
|
|
324
326
|
...iconButtonProps,
|
|
325
327
|
"aria-label": "Select country",
|
|
328
|
+
className: "MuiTelInput-Flag",
|
|
326
329
|
"aria-haspopup": "listbox",
|
|
327
330
|
"aria-controls": isFlagsMenuOpened ? "select-country" : void 0,
|
|
328
331
|
"aria-expanded": isFlagsMenuOpened ? "true" : "false",
|
|
@@ -10422,15 +10425,19 @@ const FlagMenuItem = (props) => {
|
|
|
10422
10425
|
onClick: handleClick,
|
|
10423
10426
|
role: "option",
|
|
10424
10427
|
"data-testid": `option-${isoCode}`,
|
|
10428
|
+
className: "MuiTelInput-MenuItem",
|
|
10425
10429
|
children: [/* @__PURE__ */ jsx(Styled.ListItemIcon, {
|
|
10430
|
+
className: "MuiTelInput-ListItemIcon-country-code",
|
|
10426
10431
|
children: /* @__PURE__ */ jsx(Flag, {
|
|
10427
10432
|
isoCode
|
|
10428
10433
|
})
|
|
10429
10434
|
}), /* @__PURE__ */ jsx(Styled.ListItemText, {
|
|
10435
|
+
className: "MuiTelInput-ListItemText-country",
|
|
10430
10436
|
children: countryName
|
|
10431
10437
|
}), /* @__PURE__ */ jsxs(Typography, {
|
|
10432
10438
|
variant: "body2",
|
|
10433
10439
|
color: "text.secondary",
|
|
10440
|
+
className: "MuiTelInput-Typography-calling-code",
|
|
10434
10441
|
children: ["+", COUNTRIES[isoCode][0]]
|
|
10435
10442
|
})]
|
|
10436
10443
|
});
|
|
@@ -10818,6 +10825,7 @@ const FlagsMenu = (props) => {
|
|
|
10818
10825
|
anchorEl,
|
|
10819
10826
|
open: Boolean(anchorEl),
|
|
10820
10827
|
id: "select-country",
|
|
10828
|
+
className: "MuiTelInput-Menu",
|
|
10821
10829
|
MenuListProps: {
|
|
10822
10830
|
role: "listbox",
|
|
10823
10831
|
"aria-activedescendant": isoCode ? `country-${isoCode}` : "",
|
|
@@ -16331,6 +16339,7 @@ const MuiTelInput = React.forwardRef((props, propRef) => {
|
|
|
16331
16339
|
continents,
|
|
16332
16340
|
preferredCountries,
|
|
16333
16341
|
MenuProps,
|
|
16342
|
+
className,
|
|
16334
16343
|
...restTextFieldProps
|
|
16335
16344
|
} = props;
|
|
16336
16345
|
const textFieldRef = React.useRef(null);
|
|
@@ -16420,6 +16429,7 @@ const MuiTelInput = React.forwardRef((props, propRef) => {
|
|
|
16420
16429
|
ref: handleRef,
|
|
16421
16430
|
onDoubleClick: handleDoubleClick,
|
|
16422
16431
|
inputRef: handleRefInput,
|
|
16432
|
+
className: `MuiTelInput-TextField ${className || ""}`,
|
|
16423
16433
|
onChange: onInputChange,
|
|
16424
16434
|
inputProps: {
|
|
16425
16435
|
onCopy: handleCopy,
|