@elastic/eui 60.1.1 → 60.1.2

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.
@@ -172,6 +172,8 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
172
172
  setActiveOptionIndex(index);
173
173
  },
174
174
  onClick: function onClick(event) {
175
+ event.persist(); // NOTE: This is needed for React v16 backwards compatibility
176
+
175
177
  _this.onAddOrRemoveOption(option, event);
176
178
  },
177
179
  ref: ref ? ref.bind(null, index) : undefined,
@@ -46,6 +46,7 @@ export var EuiText = function EuiText(_ref) {
46
46
  if (color) {
47
47
  text = ___EmotionJSX(EuiTextColor, {
48
48
  color: color,
49
+ className: classes,
49
50
  cloneElement: true
50
51
  }, text);
51
52
  }
@@ -53,6 +54,7 @@ export var EuiText = function EuiText(_ref) {
53
54
  if (textAlign) {
54
55
  text = ___EmotionJSX(EuiTextAlign, {
55
56
  textAlign: textAlign,
57
+ className: classes,
56
58
  cloneElement: true
57
59
  }, text);
58
60
  }
@@ -161,6 +161,7 @@ var createKeyDownHandler = function createKeyDownHandler(_ref2) {
161
161
 
162
162
  var key = event.key,
163
163
  ctrlKey = event.ctrlKey;
164
+ console.log('???', event);
164
165
 
165
166
  if (key === _services.keys.ARROW_DOWN) {
166
167
  event.preventDefault();
@@ -186,6 +186,8 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
186
186
  setActiveOptionIndex(index);
187
187
  },
188
188
  onClick: function onClick(event) {
189
+ event.persist(); // NOTE: This is needed for React v16 backwards compatibility
190
+
189
191
  _this.onAddOrRemoveOption(option, event);
190
192
  },
191
193
  ref: ref ? ref.bind(null, index) : undefined,
@@ -57,6 +57,7 @@ var EuiText = function EuiText(_ref) {
57
57
  if (color) {
58
58
  text = (0, _react2.jsx)(_text_color.EuiTextColor, {
59
59
  color: color,
60
+ className: classes,
60
61
  cloneElement: true
61
62
  }, text);
62
63
  }
@@ -64,6 +65,7 @@ var EuiText = function EuiText(_ref) {
64
65
  if (textAlign) {
65
66
  text = (0, _react2.jsx)(_text_align.EuiTextAlign, {
66
67
  textAlign: textAlign,
68
+ className: classes,
67
69
  cloneElement: true
68
70
  }, text);
69
71
  }
@@ -141,6 +141,7 @@ export var createKeyDownHandler = function createKeyDownHandler(_ref2) {
141
141
 
142
142
  var key = event.key,
143
143
  ctrlKey = event.ctrlKey;
144
+ console.log('???', event);
144
145
 
145
146
  if (key === keys.ARROW_DOWN) {
146
147
  event.preventDefault();
@@ -154,6 +154,8 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
154
154
  setActiveOptionIndex(index);
155
155
  },
156
156
  onClick: function onClick(event) {
157
+ event.persist(); // NOTE: This is needed for React v16 backwards compatibility
158
+
157
159
  _this.onAddOrRemoveOption(option, event);
158
160
  },
159
161
  ref: ref ? ref.bind(null, index) : undefined,
@@ -41,6 +41,7 @@ export var EuiText = function EuiText(_ref) {
41
41
  if (color) {
42
42
  text = ___EmotionJSX(EuiTextColor, {
43
43
  color: color,
44
+ className: classes,
44
45
  cloneElement: true
45
46
  }, text);
46
47
  }
@@ -48,6 +49,7 @@ export var EuiText = function EuiText(_ref) {
48
49
  if (textAlign) {
49
50
  text = ___EmotionJSX(EuiTextAlign, {
50
51
  textAlign: textAlign,
52
+ className: classes,
51
53
  cloneElement: true
52
54
  }, text);
53
55
  }
@@ -160,6 +160,7 @@ var createKeyDownHandler = function createKeyDownHandler(_ref2) {
160
160
 
161
161
  var key = event.key,
162
162
  ctrlKey = event.ctrlKey;
163
+ console.log('???', event);
163
164
 
164
165
  if (key === _services.keys.ARROW_DOWN) {
165
166
  event.preventDefault();
@@ -170,6 +170,8 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
170
170
  setActiveOptionIndex(index);
171
171
  },
172
172
  onClick: function onClick(event) {
173
+ event.persist(); // NOTE: This is needed for React v16 backwards compatibility
174
+
173
175
  _this.onAddOrRemoveOption(option, event);
174
176
  },
175
177
  ref: ref ? ref.bind(null, index) : undefined,
@@ -51,6 +51,7 @@ var EuiText = function EuiText(_ref) {
51
51
  if (color) {
52
52
  text = (0, _react2.jsx)(_text_color.EuiTextColor, {
53
53
  color: color,
54
+ className: classes,
54
55
  cloneElement: true
55
56
  }, text);
56
57
  }
@@ -58,6 +59,7 @@ var EuiText = function EuiText(_ref) {
58
59
  if (textAlign) {
59
60
  text = (0, _react2.jsx)(_text_align.EuiTextAlign, {
60
61
  textAlign: textAlign,
62
+ className: classes,
61
63
  cloneElement: true
62
64
  }, text);
63
65
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "60.1.1",
4
+ "version": "60.1.2",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -160,6 +160,7 @@ var createKeyDownHandler = function createKeyDownHandler(_ref2) {
160
160
 
161
161
  var key = event.key,
162
162
  ctrlKey = event.ctrlKey;
163
+ console.log('???', event);
163
164
 
164
165
  if (key === _services.keys.ARROW_DOWN) {
165
166
  event.preventDefault();
@@ -172,6 +172,8 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
172
172
  setActiveOptionIndex(index);
173
173
  },
174
174
  onClick: function onClick(event) {
175
+ event.persist(); // NOTE: This is needed for React v16 backwards compatibility
176
+
175
177
  _this.onAddOrRemoveOption(option, event);
176
178
  },
177
179
  ref: ref ? ref.bind(null, index) : undefined,
@@ -53,6 +53,7 @@ var EuiText = function EuiText(_ref) {
53
53
  if (color) {
54
54
  text = (0, _react2.jsx)(_text_color.EuiTextColor, {
55
55
  color: color,
56
+ className: classes,
56
57
  cloneElement: true
57
58
  }, text);
58
59
  }
@@ -60,6 +61,7 @@ var EuiText = function EuiText(_ref) {
60
61
  if (textAlign) {
61
62
  text = (0, _react2.jsx)(_text_align.EuiTextAlign, {
62
63
  textAlign: textAlign,
64
+ className: classes,
63
65
  cloneElement: true
64
66
  }, text);
65
67
  }