@elastic/eui 99.4.0-snapshot.1741184063218 → 100.0.0

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.
@@ -3,6 +3,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
4
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
5
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
6
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
7
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
9
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
10
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
11
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
14
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -248,7 +254,11 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
248
254
  var searchValue = _this.state.searchValue;
249
255
  var delimiter = _this.props.delimiter;
250
256
  if (delimiter) {
251
- searchValue.split(delimiter).forEach(function (option) {
257
+ var trimmed = searchValue.split(delimiter).map(function (value) {
258
+ return value.trim();
259
+ });
260
+ var values = _toConsumableArray(new Set(_toConsumableArray(trimmed)));
261
+ values.forEach(function (option) {
252
262
  if (option.length > 0) _this.addCustomOption(isContainerBlur, option);
253
263
  });
254
264
  } else {
@@ -25,6 +25,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
25
25
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
26
26
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
27
27
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
28
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
29
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
30
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
31
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
32
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
33
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28
34
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29
35
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30
36
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -252,7 +258,11 @@ var EuiComboBox = exports.EuiComboBox = /*#__PURE__*/function (_Component) {
252
258
  var searchValue = _this.state.searchValue;
253
259
  var delimiter = _this.props.delimiter;
254
260
  if (delimiter) {
255
- searchValue.split(delimiter).forEach(function (option) {
261
+ var trimmed = searchValue.split(delimiter).map(function (value) {
262
+ return value.trim();
263
+ });
264
+ var values = _toConsumableArray(new Set(_toConsumableArray(trimmed)));
265
+ values.forEach(function (option) {
256
266
  if (option.length > 0) _this.addCustomOption(isContainerBlur, option);
257
267
  });
258
268
  } else {
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
5
  import _createClass from "@babel/runtime/helpers/createClass";
5
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
@@ -240,7 +241,11 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
240
241
  var searchValue = _this.state.searchValue;
241
242
  var delimiter = _this.props.delimiter;
242
243
  if (delimiter) {
243
- searchValue.split(delimiter).forEach(function (option) {
244
+ var trimmed = searchValue.split(delimiter).map(function (value) {
245
+ return value.trim();
246
+ });
247
+ var values = _toConsumableArray(new Set(_toConsumableArray(trimmed)));
248
+ values.forEach(function (option) {
244
249
  if (option.length > 0) _this.addCustomOption(isContainerBlur, option);
245
250
  });
246
251
  } else {
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.EuiComboBox = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
12
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
13
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
14
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -245,7 +246,11 @@ var EuiComboBox = exports.EuiComboBox = /*#__PURE__*/function (_Component) {
245
246
  var searchValue = _this.state.searchValue;
246
247
  var delimiter = _this.props.delimiter;
247
248
  if (delimiter) {
248
- searchValue.split(delimiter).forEach(function (option) {
249
+ var trimmed = searchValue.split(delimiter).map(function (value) {
250
+ return value.trim();
251
+ });
252
+ var values = (0, _toConsumableArray2.default)(new Set((0, _toConsumableArray2.default)(trimmed)));
253
+ values.forEach(function (option) {
249
254
  if (option.length > 0) _this.addCustomOption(isContainerBlur, option);
250
255
  });
251
256
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "99.4.0-snapshot.1741184063218",
4
+ "version": "100.0.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -52,7 +52,7 @@
52
52
  "url": "https://github.com/elastic/eui.git"
53
53
  },
54
54
  "dependencies": {
55
- "@elastic/eui-theme-common": "0.0.11-snapshot.1741184063218",
55
+ "@elastic/eui-theme-common": "0.0.11",
56
56
  "@elastic/prismjs-esql": "^1.0.0",
57
57
  "@hello-pangea/dnd": "^16.6.0",
58
58
  "@types/lodash": "^4.14.202",
@@ -106,7 +106,7 @@
106
106
  "@cypress/webpack-dev-server": "^1.7.0",
107
107
  "@elastic/charts": "^64.1.0",
108
108
  "@elastic/datemath": "^5.0.3",
109
- "@elastic/eui-theme-borealis": "0.0.11-snapshot.1741184063218",
109
+ "@elastic/eui-theme-borealis": "0.0.11",
110
110
  "@emotion/babel-preset-css-prop": "^11.11.0",
111
111
  "@emotion/cache": "^11.11.0",
112
112
  "@emotion/css": "^11.11.0",
@@ -258,7 +258,7 @@
258
258
  },
259
259
  "peerDependencies": {
260
260
  "@elastic/datemath": "^5.0.2",
261
- "@elastic/eui-theme-borealis": "0.0.11-snapshot.1741184063218",
261
+ "@elastic/eui-theme-borealis": "0.0.11",
262
262
  "@emotion/css": "11.x",
263
263
  "@emotion/react": "11.x",
264
264
  "@types/react": "^16.9 || ^17.0 || ^18.0",
@@ -282,6 +282,5 @@
282
282
  ],
283
283
  "installConfig": {
284
284
  "hoistingLimits": "workspaces"
285
- },
286
- "stableVersion": "99.4.0-borealis.0"
285
+ }
287
286
  }
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.EuiComboBox = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
12
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
13
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
14
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -246,7 +247,11 @@ var EuiComboBox = exports.EuiComboBox = /*#__PURE__*/function (_Component) {
246
247
  var searchValue = _this.state.searchValue;
247
248
  var delimiter = _this.props.delimiter;
248
249
  if (delimiter) {
249
- searchValue.split(delimiter).forEach(function (option) {
250
+ var trimmed = searchValue.split(delimiter).map(function (value) {
251
+ return value.trim();
252
+ });
253
+ var values = (0, _toConsumableArray2.default)(new Set((0, _toConsumableArray2.default)(trimmed)));
254
+ values.forEach(function (option) {
250
255
  if (option.length > 0) _this.addCustomOption(isContainerBlur, option);
251
256
  });
252
257
  } else {