@megafon/ui-core 4.0.0-beta.21 → 4.0.0-beta.22
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/CHANGELOG.md +12 -0
- package/dist/es/components/Tabs/Tabs.css +1 -1
- package/dist/es/components/Tabs/Tabs.js +1 -1
- package/dist/es/components/TextField/TextField.js +2 -2
- package/dist/lib/components/Tabs/Tabs.css +1 -1
- package/dist/lib/components/Tabs/Tabs.js +1 -1
- package/dist/lib/components/TextField/TextField.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.0.0-beta.22](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.0-beta.21...@megafon/ui-core@4.0.0-beta.22) (2022-08-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **tabs:** fix swiper arrows ([cac401d](https://github.com/MegafonWebLab/megafon-ui/commit/cac401ddc6ecfde58353827f3a362d8d941d4db8))
|
|
12
|
+
* **textfield:** hide verification icon for disabled field ([c950d3c](https://github.com/MegafonWebLab/megafon-ui/commit/c950d3c64f13412e166c5d358b59638bc3c255ae))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [4.0.0-beta.21](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.0-beta.20...@megafon/ui-core@4.0.0-beta.21) (2022-08-24)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -78,7 +78,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
78
78
|
isBeginning = _React$useState4[0],
|
|
79
79
|
setBeginning = _React$useState4[1];
|
|
80
80
|
|
|
81
|
-
var _React$useState5 = React.useState(
|
|
81
|
+
var _React$useState5 = React.useState(true),
|
|
82
82
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
83
83
|
isEnd = _React$useState6[0],
|
|
84
84
|
setEnd = _React$useState6[1];
|
|
@@ -169,8 +169,8 @@ var TextField = function TextField(_ref) {
|
|
|
169
169
|
return isPasswordType && !isPasswordHidden;
|
|
170
170
|
}, [isPasswordHidden, isPasswordType]);
|
|
171
171
|
var hasValue = isControlled ? !!value : !!inputValue;
|
|
172
|
-
var isValidVerification = verification === Verification.VALID;
|
|
173
|
-
var isErrorVerification = verification === Verification.ERROR;
|
|
172
|
+
var isValidVerification = verification === Verification.VALID && !disabled;
|
|
173
|
+
var isErrorVerification = verification === Verification.ERROR && !disabled;
|
|
174
174
|
var hasValueForClear = hasValue && !isPasswordType && !customIcon && !isValidVerification;
|
|
175
175
|
var hasClearIcon = !disabled && (hasValueForClear || isErrorVerification);
|
|
176
176
|
var actualPlaceholder = placeholder || DEFAULT_PLACEHOLDERS[type];
|
|
@@ -108,7 +108,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
108
108
|
isBeginning = _React$useState4[0],
|
|
109
109
|
setBeginning = _React$useState4[1];
|
|
110
110
|
|
|
111
|
-
var _React$useState5 = React.useState(
|
|
111
|
+
var _React$useState5 = React.useState(true),
|
|
112
112
|
_React$useState6 = (0, _slicedToArray2["default"])(_React$useState5, 2),
|
|
113
113
|
isEnd = _React$useState6[0],
|
|
114
114
|
setEnd = _React$useState6[1];
|
|
@@ -197,8 +197,8 @@ var TextField = function TextField(_ref) {
|
|
|
197
197
|
return isPasswordType && !isPasswordHidden;
|
|
198
198
|
}, [isPasswordHidden, isPasswordType]);
|
|
199
199
|
var hasValue = isControlled ? !!value : !!inputValue;
|
|
200
|
-
var isValidVerification = verification === Verification.VALID;
|
|
201
|
-
var isErrorVerification = verification === Verification.ERROR;
|
|
200
|
+
var isValidVerification = verification === Verification.VALID && !disabled;
|
|
201
|
+
var isErrorVerification = verification === Verification.ERROR && !disabled;
|
|
202
202
|
var hasValueForClear = hasValue && !isPasswordType && !customIcon && !isValidVerification;
|
|
203
203
|
var hasClearIcon = !disabled && (hasValueForClear || isErrorVerification);
|
|
204
204
|
var actualPlaceholder = placeholder || DEFAULT_PLACEHOLDERS[type];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.22",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"react-popper": "^2.2.3",
|
|
98
98
|
"swiper": "^6.5.6"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "5a7ebe13c8ed8df1eaa2a38e83722b2b8d9e9d4b"
|
|
101
101
|
}
|