@megafon/ui-core 4.0.0-beta.11 → 4.0.0-beta.12

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,17 @@
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.12](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.0-beta.11...@megafon/ui-core@4.0.0-beta.12) (2022-08-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **select:** update value check for undefined ([06f8dbf](https://github.com/MegafonWebLab/megafon-ui/commit/06f8dbfb065eaef7f6151cb88cebffe68d668ef8))
12
+
13
+
14
+
15
+
16
+
6
17
  # [4.0.0-beta.11](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.0-beta.10...@megafon/ui-core@4.0.0-beta.11) (2022-07-27)
7
18
 
8
19
 
@@ -44,6 +44,7 @@ export var SelectTypes = {
44
44
  // - Opened dropdown could be closed only via value choose, click outside of select and on TAB press.
45
45
  // - Should add event listener for outside of dropdown click on list open and remove it on list close.
46
46
  // - onClose callback shouldn't fire multiple times on outside click if dropdown was opened multiple times.
47
+ // - If item with currentValue is not found in items, input value will not be displayed
47
48
 
48
49
  var cn = cnCreate('mfui-select');
49
50
 
@@ -350,7 +351,7 @@ var Select = function Select(_ref) {
350
351
  onClick: handleSelectClick
351
352
  }), /*#__PURE__*/React.createElement("div", {
352
353
  className: cn('title-inner', {
353
- 'hide-value': !currentValue
354
+ 'hide-value': !item
354
355
  }, [classes === null || classes === void 0 ? void 0 : classes.titleInner])
355
356
  }, /*#__PURE__*/React.createElement("div", {
356
357
  className: cn('title-value')
@@ -77,6 +77,7 @@ var SelectTypes = {
77
77
  // - Opened dropdown could be closed only via value choose, click outside of select and on TAB press.
78
78
  // - Should add event listener for outside of dropdown click on list open and remove it on list close.
79
79
  // - onClose callback shouldn't fire multiple times on outside click if dropdown was opened multiple times.
80
+ // - If item with currentValue is not found in items, input value will not be displayed
80
81
 
81
82
  exports.SelectTypes = SelectTypes;
82
83
  var cn = (0, _uiHelpers.cnCreate)('mfui-select');
@@ -384,7 +385,7 @@ var Select = function Select(_ref) {
384
385
  onClick: handleSelectClick
385
386
  }), /*#__PURE__*/React.createElement("div", {
386
387
  className: cn('title-inner', {
387
- 'hide-value': !currentValue
388
+ 'hide-value': !item
388
389
  }, [classes === null || classes === void 0 ? void 0 : classes.titleInner])
389
390
  }, /*#__PURE__*/React.createElement("div", {
390
391
  className: cn('title-value')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-core",
3
- "version": "4.0.0-beta.11",
3
+ "version": "4.0.0-beta.12",
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": "d2ab3895bb362d32ec75864fdc04431c53a09df9"
100
+ "gitHead": "02c2d9beac42e00355d6797aa7db1e0e76b583f4"
101
101
  }