@elastic/eui 90.0.0 → 90.0.1

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.
Files changed (84) hide show
  1. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  2. package/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +4 -1
  3. package/es/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +13 -9
  4. package/es/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -101
  5. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +20 -58
  6. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +89 -37
  7. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +67 -81
  8. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.styles.js +1 -19
  9. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +7 -102
  10. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +4 -4
  11. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +11 -90
  12. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +150 -130
  13. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +0 -10
  14. package/es/components/combo_box/combo_box.js +1 -1
  15. package/es/components/selectable/selectable.js +16 -1
  16. package/es/components/selectable/selectable_list/selectable_list.js +227 -78
  17. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -1
  18. package/es/components/text_truncate/text_truncate.js +33 -10
  19. package/eui.d.ts +381 -68
  20. package/i18ntokens.json +38 -38
  21. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  22. package/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +4 -1
  23. package/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +13 -9
  24. package/lib/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -101
  25. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +20 -58
  26. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +89 -37
  27. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +66 -80
  28. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.styles.js +11 -28
  29. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +7 -104
  30. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +4 -4
  31. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +10 -89
  32. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +150 -130
  33. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +0 -10
  34. package/lib/components/combo_box/combo_box.js +1 -1
  35. package/lib/components/selectable/selectable.js +16 -1
  36. package/lib/components/selectable/selectable_list/selectable_list.js +227 -78
  37. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -1
  38. package/lib/components/text_truncate/text_truncate.js +32 -9
  39. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  40. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +4 -1
  41. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +13 -9
  42. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -3
  43. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +10 -5
  44. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +8 -36
  45. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.styles.js +1 -19
  46. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +6 -23
  47. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +4 -4
  48. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +10 -10
  49. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +9 -5
  50. package/optimize/es/components/selectable/selectable_list/selectable_list.js +199 -76
  51. package/optimize/es/components/text_truncate/text_truncate.js +26 -9
  52. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  53. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +4 -1
  54. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +13 -9
  55. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -3
  56. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +10 -5
  57. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +8 -36
  58. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.styles.js +11 -28
  59. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +6 -26
  60. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +4 -4
  61. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +9 -9
  62. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +9 -5
  63. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +199 -76
  64. package/optimize/lib/components/text_truncate/text_truncate.js +25 -8
  65. package/package.json +1 -1
  66. package/test-env/components/auto_sizer/auto_sizer.js +10 -3
  67. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  68. package/test-env/components/collapsible_nav_beta/collapsible_nav_body_footer.js +4 -1
  69. package/test-env/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +13 -9
  70. package/test-env/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -101
  71. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +20 -58
  72. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +89 -37
  73. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +66 -80
  74. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.styles.js +11 -28
  75. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +7 -105
  76. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +4 -4
  77. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +10 -89
  78. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +150 -130
  79. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +0 -10
  80. package/test-env/components/combo_box/combo_box.js +1 -1
  81. package/test-env/components/selectable/selectable.js +16 -1
  82. package/test-env/components/selectable/selectable_list/selectable_list.js +227 -78
  83. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -1
  84. package/test-env/components/text_truncate/text_truncate.js +32 -9
@@ -17,7 +17,7 @@ var _collapsible_nav_group = require("./collapsible_nav_group");
17
17
  var _collapsible_nav_link = require("./collapsible_nav_link");
18
18
  var _collapsible_nav_item = require("./collapsible_nav_item.styles");
19
19
  var _react2 = require("@emotion/react");
20
- var _excluded = ["isSubItem", "title", "titleElement", "icon", "iconProps", "items", "isCollapsible", "accordionProps", "children"],
20
+ var _excluded = ["isSubItem", "title", "titleElement", "icon", "iconProps", "href", "linkProps", "items", "isCollapsible", "accordionProps", "children"],
21
21
  _excluded2 = ["renderItem", "className"],
22
22
  _excluded3 = ["items", "isSubItem", "isGroup", "className"],
23
23
  _excluded4 = ["className"];
@@ -40,12 +40,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
40
40
  * determine whether to render an accordion or a link
41
41
  */
42
42
  var EuiCollapsibleNavItemDisplay = function EuiCollapsibleNavItemDisplay(_ref) {
43
- var _props$linkProps;
44
43
  var isSubItem = _ref.isSubItem,
45
44
  title = _ref.title,
46
45
  titleElement = _ref.titleElement,
47
46
  icon = _ref.icon,
48
47
  iconProps = _ref.iconProps,
48
+ href = _ref.href,
49
+ linkProps = _ref.linkProps,
49
50
  items = _ref.items,
50
51
  _ref$isCollapsible = _ref.isCollapsible,
51
52
  isCollapsible = _ref$isCollapsible === void 0 ? true : _ref$isCollapsible,
@@ -58,7 +59,7 @@ var EuiCollapsibleNavItemDisplay = function EuiCollapsibleNavItemDisplay(_ref) {
58
59
  icon: icon,
59
60
  iconProps: iconProps
60
61
  });
61
- if (items && items.length > 0) {
62
+ if (items) {
62
63
  if (isCollapsible) {
63
64
  return (0, _react2.jsx)(_collapsible_nav_accordion.EuiCollapsibleNavAccordion, _extends({
64
65
  buttonContent: headerContent,
@@ -76,11 +77,14 @@ var EuiCollapsibleNavItemDisplay = function EuiCollapsibleNavItemDisplay(_ref) {
76
77
  }));
77
78
  }
78
79
  }
79
- return (0, _react2.jsx)(_collapsible_nav_link.EuiCollapsibleNavLink, _extends({}, props, {
80
+ return (0, _react2.jsx)(_collapsible_nav_link.EuiCollapsibleNavLink, _extends({
81
+ href: href,
82
+ linkProps: linkProps
83
+ }, props, {
80
84
  // EuiLink ExclusiveUnion type shenanigans
81
85
  isSubItem: isSubItem,
82
86
  isNotAccordion: true,
83
- isInteractive: !!(props.href || props.onClick || (_props$linkProps = props.linkProps) !== null && _props$linkProps !== void 0 && _props$linkProps.onClick)
87
+ isInteractive: !!(href || props.onClick || linkProps !== null && linkProps !== void 0 && linkProps.onClick)
84
88
  }), headerContent);
85
89
  };
86
90
 
@@ -88,6 +92,15 @@ var EuiCollapsibleNavItemDisplay = function EuiCollapsibleNavItemDisplay(_ref) {
88
92
  * Internal subcomponent for title display
89
93
  */
90
94
  EuiCollapsibleNavItemDisplay.propTypes = {
95
+ className: _propTypes.default.string,
96
+ "aria-label": _propTypes.default.string,
97
+ "data-test-subj": _propTypes.default.string,
98
+ css: _propTypes.default.any,
99
+ /**
100
+ * Highlights whether an item is currently selected, e.g.
101
+ * if the user is on the same page as the nav link
102
+ */
103
+ isSelected: _propTypes.default.bool,
91
104
  /**
92
105
  * Required text to render as the nav item title
93
106
  */
@@ -106,47 +119,42 @@ EuiCollapsibleNavItemDisplay.propTypes = {
106
119
  * Optional props to pass to the title icon
107
120
  */
108
121
  iconProps: _propTypes.default.any,
109
- className: _propTypes.default.string,
110
- "aria-label": _propTypes.default.string,
111
- "data-test-subj": _propTypes.default.string,
112
- css: _propTypes.default.any,
113
122
  /**
114
- * The nav item link.
115
- * If not included, and no `onClick` is specified, the nav item
116
- * will render as an non-interactive `<span>`.
117
- */
123
+ * The nav item link.
124
+ *
125
+ * If not included, and no `onClick` is specified, the nav item
126
+ * will render as an non-interactive `<span>`.
127
+ *
128
+ * Should not be used together with `items`, as the title will
129
+ * trigger the accordion collapse/expand action instead of a link.
130
+ */
118
131
  href: _propTypes.default.string,
119
132
  /**
120
- * Will render either an accordion or group of nested child item links.
121
- *
122
- * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
123
- * subitem content, pass an object with a `renderItem` callback.
124
- */
133
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
134
+ */
135
+ linkProps: _propTypes.default.any,
136
+ /**
137
+ * Will render either an accordion or group of nested child item links.
138
+ *
139
+ * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
140
+ * subitem content, pass an object with a `renderItem` callback.
141
+ */
125
142
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
126
143
  renderItem: _propTypes.default.func
127
144
  }).isRequired),
128
145
  /**
129
- * If set to false, will (visually) render an always-open accordion that cannot
130
- * be toggled closed. Ignored if `items` is not passed.
131
- *
132
- * @default true
133
- */
146
+ * If set to false, will (visually) render an always-open accordion that cannot
147
+ * be toggled closed. Ignored if `items` is not passed.
148
+ *
149
+ * @default true
150
+ */
134
151
  isCollapsible: _propTypes.default.bool,
135
152
  /**
136
- * If `items` is specified, and `isCollapsible` is not set to false, you may
137
- * use this prop to pass any prop that `EuiAccordion` accepts, including props
138
- * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
139
- */
153
+ * If `items` is specified, and `isCollapsible` is not set to false, you may
154
+ * use this prop to pass any prop that `EuiAccordion` accepts, including props
155
+ * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
156
+ */
140
157
  accordionProps: _propTypes.default.any,
141
- /**
142
- * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
143
- */
144
- linkProps: _propTypes.default.any,
145
- /**
146
- * Highlights whether an item is currently selected, e.g.
147
- * if the user is on the same page as the nav link
148
- */
149
- isSelected: _propTypes.default.bool,
150
158
  /**
151
159
  * Determines whether the item should render as a top-level nav item
152
160
  * or a nested nav subitem. Set internally by EUI
@@ -195,6 +203,15 @@ var EuiCollapsibleNavSubItem = function EuiCollapsibleNavSubItem(_ref3) {
195
203
  */
196
204
  exports.EuiCollapsibleNavSubItem = EuiCollapsibleNavSubItem;
197
205
  EuiCollapsibleNavSubItem.propTypes = {
206
+ className: _propTypes.default.string,
207
+ "aria-label": _propTypes.default.string,
208
+ "data-test-subj": _propTypes.default.string,
209
+ css: _propTypes.default.any,
210
+ /**
211
+ * Highlights whether an item is currently selected, e.g.
212
+ * if the user is on the same page as the nav link
213
+ */
214
+ isSelected: _propTypes.default.bool,
198
215
  /**
199
216
  * Required text to render as the nav item title
200
217
  */
@@ -213,45 +230,40 @@ EuiCollapsibleNavSubItem.propTypes = {
213
230
  * Optional props to pass to the title icon
214
231
  */
215
232
  iconProps: _propTypes.default.any,
216
- className: _propTypes.default.string,
217
- "aria-label": _propTypes.default.string,
218
- "data-test-subj": _propTypes.default.string,
219
- css: _propTypes.default.any,
220
233
  /**
221
- * The nav item link.
222
- * If not included, and no `onClick` is specified, the nav item
223
- * will render as an non-interactive `<span>`.
224
- */
234
+ * The nav item link.
235
+ *
236
+ * If not included, and no `onClick` is specified, the nav item
237
+ * will render as an non-interactive `<span>`.
238
+ *
239
+ * Should not be used together with `items`, as the title will
240
+ * trigger the accordion collapse/expand action instead of a link.
241
+ */
225
242
  href: _propTypes.default.string,
226
243
  /**
227
- * Will render either an accordion or group of nested child item links.
228
- *
229
- * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
230
- * subitem content, pass an object with a `renderItem` callback.
231
- */
244
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
245
+ */
246
+ linkProps: _propTypes.default.any,
247
+ /**
248
+ * Will render either an accordion or group of nested child item links.
249
+ *
250
+ * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
251
+ * subitem content, pass an object with a `renderItem` callback.
252
+ */
232
253
  items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
233
254
  /**
234
- * If set to false, will (visually) render an always-open accordion that cannot
235
- * be toggled closed. Ignored if `items` is not passed.
236
- *
237
- * @default true
238
- */
255
+ * If set to false, will (visually) render an always-open accordion that cannot
256
+ * be toggled closed. Ignored if `items` is not passed.
257
+ *
258
+ * @default true
259
+ */
239
260
  isCollapsible: _propTypes.default.bool,
240
261
  /**
241
- * If `items` is specified, and `isCollapsible` is not set to false, you may
242
- * use this prop to pass any prop that `EuiAccordion` accepts, including props
243
- * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
244
- */
262
+ * If `items` is specified, and `isCollapsible` is not set to false, you may
263
+ * use this prop to pass any prop that `EuiAccordion` accepts, including props
264
+ * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
265
+ */
245
266
  accordionProps: _propTypes.default.any,
246
- /**
247
- * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
248
- */
249
- linkProps: _propTypes.default.any,
250
- /**
251
- * Highlights whether an item is currently selected, e.g.
252
- * if the user is on the same page as the nav link
253
- */
254
- isSelected: _propTypes.default.bool,
255
267
  renderItem: _propTypes.default.func
256
268
  };
257
269
  var EuiCollapsibleNavSubItems = function EuiCollapsibleNavSubItems(_ref4) {
@@ -300,6 +312,15 @@ EuiCollapsibleNavSubItems.propTypes = {
300
312
  */
301
313
  isSubItem: _propTypes.default.bool,
302
314
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
315
+ className: _propTypes.default.string,
316
+ "aria-label": _propTypes.default.string,
317
+ "data-test-subj": _propTypes.default.string,
318
+ css: _propTypes.default.any,
319
+ /**
320
+ * Highlights whether an item is currently selected, e.g.
321
+ * if the user is on the same page as the nav link
322
+ */
323
+ isSelected: _propTypes.default.bool,
303
324
  /**
304
325
  * Required text to render as the nav item title
305
326
  */
@@ -318,45 +339,40 @@ EuiCollapsibleNavSubItems.propTypes = {
318
339
  * Optional props to pass to the title icon
319
340
  */
320
341
  iconProps: _propTypes.default.any,
321
- className: _propTypes.default.string,
322
- "aria-label": _propTypes.default.string,
323
- "data-test-subj": _propTypes.default.string,
324
- css: _propTypes.default.any,
325
342
  /**
326
- * The nav item link.
327
- * If not included, and no `onClick` is specified, the nav item
328
- * will render as an non-interactive `<span>`.
329
- */
343
+ * The nav item link.
344
+ *
345
+ * If not included, and no `onClick` is specified, the nav item
346
+ * will render as an non-interactive `<span>`.
347
+ *
348
+ * Should not be used together with `items`, as the title will
349
+ * trigger the accordion collapse/expand action instead of a link.
350
+ */
330
351
  href: _propTypes.default.string,
331
352
  /**
332
- * Will render either an accordion or group of nested child item links.
333
- *
334
- * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
335
- * subitem content, pass an object with a `renderItem` callback.
336
- */
353
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
354
+ */
355
+ linkProps: _propTypes.default.any,
356
+ /**
357
+ * Will render either an accordion or group of nested child item links.
358
+ *
359
+ * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
360
+ * subitem content, pass an object with a `renderItem` callback.
361
+ */
337
362
  items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
338
363
  /**
339
- * If set to false, will (visually) render an always-open accordion that cannot
340
- * be toggled closed. Ignored if `items` is not passed.
341
- *
342
- * @default true
343
- */
364
+ * If set to false, will (visually) render an always-open accordion that cannot
365
+ * be toggled closed. Ignored if `items` is not passed.
366
+ *
367
+ * @default true
368
+ */
344
369
  isCollapsible: _propTypes.default.bool,
345
370
  /**
346
- * If `items` is specified, and `isCollapsible` is not set to false, you may
347
- * use this prop to pass any prop that `EuiAccordion` accepts, including props
348
- * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
349
- */
371
+ * If `items` is specified, and `isCollapsible` is not set to false, you may
372
+ * use this prop to pass any prop that `EuiAccordion` accepts, including props
373
+ * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
374
+ */
350
375
  accordionProps: _propTypes.default.any,
351
- /**
352
- * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
353
- */
354
- linkProps: _propTypes.default.any,
355
- /**
356
- * Highlights whether an item is currently selected, e.g.
357
- * if the user is on the same page as the nav link
358
- */
359
- isSelected: _propTypes.default.bool,
360
376
  renderItem: _propTypes.default.func
361
377
  }).isRequired).isRequired,
362
378
  isGroup: _propTypes.default.bool
@@ -378,6 +394,15 @@ var EuiCollapsibleNavItem = function EuiCollapsibleNavItem(_ref5) {
378
394
  };
379
395
  exports.EuiCollapsibleNavItem = EuiCollapsibleNavItem;
380
396
  EuiCollapsibleNavItem.propTypes = {
397
+ className: _propTypes.default.string,
398
+ "aria-label": _propTypes.default.string,
399
+ "data-test-subj": _propTypes.default.string,
400
+ css: _propTypes.default.any,
401
+ /**
402
+ * Highlights whether an item is currently selected, e.g.
403
+ * if the user is on the same page as the nav link
404
+ */
405
+ isSelected: _propTypes.default.bool,
381
406
  /**
382
407
  * Required text to render as the nav item title
383
408
  */
@@ -396,45 +421,40 @@ EuiCollapsibleNavItem.propTypes = {
396
421
  * Optional props to pass to the title icon
397
422
  */
398
423
  iconProps: _propTypes.default.any,
399
- className: _propTypes.default.string,
400
- "aria-label": _propTypes.default.string,
401
- "data-test-subj": _propTypes.default.string,
402
- css: _propTypes.default.any,
403
424
  /**
404
- * The nav item link.
405
- * If not included, and no `onClick` is specified, the nav item
406
- * will render as an non-interactive `<span>`.
407
- */
425
+ * The nav item link.
426
+ *
427
+ * If not included, and no `onClick` is specified, the nav item
428
+ * will render as an non-interactive `<span>`.
429
+ *
430
+ * Should not be used together with `items`, as the title will
431
+ * trigger the accordion collapse/expand action instead of a link.
432
+ */
408
433
  href: _propTypes.default.string,
409
434
  /**
410
- * Will render either an accordion or group of nested child item links.
411
- *
412
- * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
413
- * subitem content, pass an object with a `renderItem` callback.
414
- */
435
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
436
+ */
437
+ linkProps: _propTypes.default.any,
438
+ /**
439
+ * Will render either an accordion or group of nested child item links.
440
+ *
441
+ * Accepts any #EuiCollapsibleNavItemProps. Or, to render completely custom
442
+ * subitem content, pass an object with a `renderItem` callback.
443
+ */
415
444
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
416
445
  renderItem: _propTypes.default.func
417
446
  }).isRequired),
418
447
  /**
419
- * If set to false, will (visually) render an always-open accordion that cannot
420
- * be toggled closed. Ignored if `items` is not passed.
421
- *
422
- * @default true
423
- */
448
+ * If set to false, will (visually) render an always-open accordion that cannot
449
+ * be toggled closed. Ignored if `items` is not passed.
450
+ *
451
+ * @default true
452
+ */
424
453
  isCollapsible: _propTypes.default.bool,
425
454
  /**
426
- * If `items` is specified, and `isCollapsible` is not set to false, you may
427
- * use this prop to pass any prop that `EuiAccordion` accepts, including props
428
- * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
429
- */
430
- accordionProps: _propTypes.default.any,
431
- /**
432
- * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
433
- */
434
- linkProps: _propTypes.default.any,
435
- /**
436
- * Highlights whether an item is currently selected, e.g.
437
- * if the user is on the same page as the nav link
438
- */
439
- isSelected: _propTypes.default.bool
455
+ * If `items` is specified, and `isCollapsible` is not set to false, you may
456
+ * use this prop to pass any prop that `EuiAccordion` accepts, including props
457
+ * that control the toggled state of the accordion (e.g. `initialIsOpen`, `forceState`)
458
+ */
459
+ accordionProps: _propTypes.default.any
440
460
  };
@@ -74,16 +74,6 @@ EuiCollapsibleNavLink.propTypes = {
74
74
  "aria-label": _propTypes.default.string,
75
75
  "data-test-subj": _propTypes.default.string,
76
76
  css: _propTypes.default.any,
77
- /**
78
- * The nav item link.
79
- * If not included, and no `onClick` is specified, the nav item
80
- * will render as an non-interactive `<span>`.
81
- */
82
- href: _propTypes.default.string,
83
- /**
84
- * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
85
- */
86
- linkProps: _propTypes.default.any,
87
77
  /**
88
78
  * Highlights whether an item is currently selected, e.g.
89
79
  * if the user is on the same page as the nav link
@@ -735,7 +735,7 @@ EuiComboBox.propTypes = {
735
735
  /**
736
736
  * By default, EuiComboBox will truncate option labels at the end of
737
737
  * the string. You can use pass in a custom truncation configuration that
738
- * accepts any prop that [EuiTextTruncate](/#/utilities/text-truncate) prop
738
+ * accepts any [EuiTextTruncate](/#/utilities/text-truncation) prop,
739
739
  * except for `text` and `children`.
740
740
  *
741
741
  * Note: when searching, custom truncation props are ignored. The highlighted search
@@ -631,7 +631,22 @@ EuiSelectable.propTypes = {
631
631
  * Option data to pass through to the `renderOptions` element.
632
632
  * Bypass `EuiSelectableItem` and avoid DOM attribute warnings.
633
633
  */
634
- data: _propTypes.default.shape({})
634
+ data: _propTypes.default.shape({}),
635
+ /**
636
+ * How to handle long text within the item.
637
+ * Wrapping only works if `isVirtualization` is false.
638
+ * @default 'truncate'
639
+ */
640
+ textWrap: _propTypes.default.oneOf(["truncate", "wrap"]),
641
+ /**
642
+ * If textWrap is set to `truncate`, you can pass a custom truncation configuration
643
+ * that accepts any [EuiTextTruncate](/#/utilities/text-truncation) prop except for
644
+ * `text` and `children`.
645
+ *
646
+ * Note: when searching, custom truncation props are ignored. The highlighted search
647
+ * text will always take precedence.
648
+ */
649
+ truncationProps: _propTypes.default.any
635
650
  }).isRequired).isRequired,
636
651
  /**
637
652
  * Passes back the altered `options` array with selected options having `checked: 'on'`.