mui-tel-input 1.1.0 → 1.3.1
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/README.md +19 -1
- package/dist/mui-tel-input.es.js +814 -10812
- package/dist/mui-tel-input.umd.js +17 -3
- package/dist/shared/constants/lang.d.ts +0 -1
- package/package.json +48 -49
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
<div align="center">
|
|
13
13
|
<img src="https://github.com/viclafouch/mui-tel-input/blob/master/mui-tel-input.gif" width="100%" />
|
|
14
14
|
</div>
|
|
15
|
+
|
|
16
|
+
## ➡️ ➡ ➡️ [DEMO](https://codesandbox.io/s/mui-tel-input-p7b2jz) ⬅️ ⬅️ ⬅️
|
|
15
17
|
|
|
16
18
|
</div>
|
|
17
19
|
|
|
@@ -68,7 +70,7 @@ const MyComponent = () => {
|
|
|
68
70
|
}
|
|
69
71
|
```
|
|
70
72
|
|
|
71
|
-
##
|
|
73
|
+
## Props
|
|
72
74
|
|
|
73
75
|
| Name | Type | Description |
|
|
74
76
|
| --------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -91,6 +93,22 @@ const MyComponent = () => {
|
|
|
91
93
|
|
|
92
94
|
While not explicitly documented above, the props of the [TextField](https://mui.com/api/text-field) component are also available on MuiTelInput.
|
|
93
95
|
|
|
96
|
+
## CSS
|
|
97
|
+
|
|
98
|
+
| Global class | Description |
|
|
99
|
+
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
100
|
+
| `.MuiTelInput-TextField` | Styles applied to the root element. |
|
|
101
|
+
| `.MuiTelInput-IconButton` | Styles applied to the [IconButton](https://mui.com/material-ui/api/icon-button/) of the current flag. |
|
|
102
|
+
| `.MuiTelInput-Flag` | Styles applied to a flag. |
|
|
103
|
+
| `.MuiTelInput-Menu` | Styles applied to [Menu](https://mui.com/material-ui/api/menu/) component. |
|
|
104
|
+
| `.MuiTelInput-MenuItem` | Styles applied to a flag item of the [Menu](https://mui.com/material-ui/api/menu/). |
|
|
105
|
+
| `.MuiTelInput-ListItemIcon-flag` | Styles applied to the [ListItemIcon](https://mui.com/material-ui/api/list-item-icon/) of a flag item |
|
|
106
|
+
| `.MuiTelInput-ListItemText-country` | Styles applied to the [ListItemText](https://mui.com/material-ui/api/list-item-text/) of a flag item |
|
|
107
|
+
| `.MuiTelInput-Typography-calling-code` | Styles applied to the calling code of a flag item |
|
|
108
|
+
|
|
109
|
+
You can override the style of the component with a [global class name](https://mui.com/material-ui/guides/interoperability/#global-css).
|
|
110
|
+
|
|
111
|
+
|
|
94
112
|
|
|
95
113
|
## Country code
|
|
96
114
|
|