@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 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
 
@@ -92,7 +92,7 @@
92
92
  width: 16px;
93
93
  height: 16px;
94
94
  border-radius: 50%;
95
- background-color: var(--stcBlack);
95
+ background-color: var(--content);
96
96
  -webkit-transform: translateY(-50%);
97
97
  transform: translateY(-50%);
98
98
  cursor: pointer;
@@ -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(false),
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];
@@ -92,7 +92,7 @@
92
92
  width: 16px;
93
93
  height: 16px;
94
94
  border-radius: 50%;
95
- background-color: var(--stcBlack);
95
+ background-color: var(--content);
96
96
  -webkit-transform: translateY(-50%);
97
97
  transform: translateY(-50%);
98
98
  cursor: pointer;
@@ -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(false),
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.21",
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": "a7d71802fa5f705eff107f5329412ef55a68159e"
100
+ "gitHead": "5a7ebe13c8ed8df1eaa2a38e83722b2b8d9e9d4b"
101
101
  }