@dreamcommerce/aurora 3.0.0-271 → 3.0.0-272

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.
@@ -29,10 +29,17 @@ _rollupPluginBabelHelpers.defineProperty(SelectUtils, "localSearchIsHeaderVisibl
29
29
  return visible;
30
30
  });
31
31
  _rollupPluginBabelHelpers.defineProperty(SelectUtils, "findValueInOptions", function (value, options) {
32
+ var _option;
32
33
  if (!value) return undefined;
33
- return options.find(function (opt) {
34
+ var option = options.find(function (opt) {
34
35
  return opt.value === value || opt.originalValue === value;
35
36
  });
37
+ if ((_option = option) !== null && _option !== void 0 && _option.originalValue) {
38
+ option = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, option), {}, {
39
+ value: option.originalValue
40
+ });
41
+ }
42
+ return option;
36
43
  });
37
44
 
38
45
  exports.SelectUtils = SelectUtils;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,4 +1,4 @@
1
- import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
 
3
3
  var _SelectUtils;
4
4
  var SelectUtils = /*#__PURE__*/_createClass(function SelectUtils() {
@@ -25,10 +25,17 @@ _defineProperty(SelectUtils, "localSearchIsHeaderVisible", function (search, opt
25
25
  return visible;
26
26
  });
27
27
  _defineProperty(SelectUtils, "findValueInOptions", function (value, options) {
28
+ var _option;
28
29
  if (!value) return undefined;
29
- return options.find(function (opt) {
30
+ var option = options.find(function (opt) {
30
31
  return opt.value === value || opt.originalValue === value;
31
32
  });
33
+ if ((_option = option) !== null && _option !== void 0 && _option.originalValue) {
34
+ option = _objectSpread2(_objectSpread2({}, option), {}, {
35
+ value: option.originalValue
36
+ });
37
+ }
38
+ return option;
32
39
  });
33
40
 
34
41
  export { SelectUtils };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "3.0.0-271",
5
+ "version": "3.0.0-272",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",