@elastic/eui 65.0.2 → 66.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.
Files changed (158) hide show
  1. package/dist/eui_theme_dark.css +24 -196
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +24 -196
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/basic_table/basic_table.js +13 -2
  6. package/es/components/basic_table/in_memory_table.js +13 -2
  7. package/es/components/card/card.styles.js +2 -2
  8. package/es/components/combo_box/combo_box.js +2 -15
  9. package/es/components/datagrid/body/data_grid_body.js +17 -6
  10. package/es/components/datagrid/body/data_grid_cell.js +29 -12
  11. package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  12. package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
  13. package/es/components/datagrid/data_grid.js +17 -6
  14. package/es/components/datagrid/utils/in_memory.js +17 -6
  15. package/es/components/description_list/description_list.js +11 -3
  16. package/es/components/description_list/description_list_context.js +2 -1
  17. package/es/components/description_list/description_list_description.js +3 -1
  18. package/es/components/description_list/description_list_description.styles.js +5 -2
  19. package/es/components/description_list/description_list_title.js +3 -2
  20. package/es/components/description_list/description_list_title.styles.js +7 -3
  21. package/es/components/description_list/description_list_types.js +2 -1
  22. package/es/components/form/field_search/field_search.js +6 -16
  23. package/es/components/form/range/range_input.js +1 -1
  24. package/es/components/header/header_section/header_section_item.js +4 -3
  25. package/es/components/icon/icon.js +1 -9
  26. package/es/components/list_group/list_group.js +7 -1
  27. package/es/components/list_group/list_group_item.js +10 -3
  28. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  29. package/es/components/modal/modal.js +1 -3
  30. package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  31. package/es/components/page/page_sidebar/page_sidebar.js +5 -1
  32. package/es/components/table/table_row_cell.js +4 -6
  33. package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  34. package/es/global_styling/mixins/_typography.js +1 -1
  35. package/es/services/theme/hooks.js +11 -16
  36. package/eui.d.ts +29 -10
  37. package/i18ntokens.json +18 -18
  38. package/lib/components/basic_table/basic_table.js +13 -2
  39. package/lib/components/basic_table/in_memory_table.js +13 -2
  40. package/lib/components/card/card.styles.js +2 -2
  41. package/lib/components/combo_box/combo_box.js +2 -15
  42. package/lib/components/datagrid/body/data_grid_body.js +17 -6
  43. package/lib/components/datagrid/body/data_grid_cell.js +29 -12
  44. package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  45. package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
  46. package/lib/components/datagrid/data_grid.js +17 -6
  47. package/lib/components/datagrid/utils/in_memory.js +17 -6
  48. package/lib/components/description_list/description_list.js +11 -3
  49. package/lib/components/description_list/description_list_context.js +2 -1
  50. package/lib/components/description_list/description_list_description.js +3 -1
  51. package/lib/components/description_list/description_list_description.styles.js +5 -2
  52. package/lib/components/description_list/description_list_title.js +3 -2
  53. package/lib/components/description_list/description_list_title.styles.js +7 -3
  54. package/lib/components/description_list/description_list_types.js +4 -2
  55. package/lib/components/form/field_search/field_search.js +6 -16
  56. package/lib/components/form/range/range_input.js +1 -1
  57. package/lib/components/header/header_section/header_section_item.js +4 -3
  58. package/lib/components/icon/icon.js +1 -9
  59. package/lib/components/list_group/list_group.js +7 -1
  60. package/lib/components/list_group/list_group_item.js +10 -3
  61. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  62. package/lib/components/modal/modal.js +1 -3
  63. package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  64. package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  65. package/lib/components/table/table_row_cell.js +4 -6
  66. package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  67. package/lib/global_styling/mixins/_typography.js +1 -1
  68. package/lib/services/theme/hooks.js +10 -15
  69. package/optimize/es/components/card/card.styles.js +2 -2
  70. package/optimize/es/components/combo_box/combo_box.js +2 -15
  71. package/optimize/es/components/description_list/description_list.js +5 -2
  72. package/optimize/es/components/description_list/description_list_context.js +2 -1
  73. package/optimize/es/components/description_list/description_list_description.js +3 -1
  74. package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
  75. package/optimize/es/components/description_list/description_list_title.js +3 -2
  76. package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
  77. package/optimize/es/components/description_list/description_list_types.js +2 -1
  78. package/optimize/es/components/form/field_search/field_search.js +6 -16
  79. package/optimize/es/components/form/range/range_input.js +1 -1
  80. package/optimize/es/components/header/header_section/header_section_item.js +4 -3
  81. package/optimize/es/components/icon/icon.js +1 -9
  82. package/optimize/es/components/list_group/list_group_item.js +3 -2
  83. package/optimize/es/components/modal/modal.js +1 -3
  84. package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  85. package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
  86. package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  87. package/optimize/es/global_styling/mixins/_typography.js +1 -1
  88. package/optimize/es/services/theme/hooks.js +11 -16
  89. package/optimize/lib/components/card/card.styles.js +2 -2
  90. package/optimize/lib/components/combo_box/combo_box.js +2 -15
  91. package/optimize/lib/components/description_list/description_list.js +5 -2
  92. package/optimize/lib/components/description_list/description_list_context.js +2 -1
  93. package/optimize/lib/components/description_list/description_list_description.js +3 -1
  94. package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
  95. package/optimize/lib/components/description_list/description_list_title.js +3 -2
  96. package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
  97. package/optimize/lib/components/description_list/description_list_types.js +4 -2
  98. package/optimize/lib/components/form/field_search/field_search.js +6 -16
  99. package/optimize/lib/components/form/range/range_input.js +1 -1
  100. package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
  101. package/optimize/lib/components/icon/icon.js +1 -9
  102. package/optimize/lib/components/list_group/list_group_item.js +3 -2
  103. package/optimize/lib/components/modal/modal.js +1 -3
  104. package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  105. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  106. package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  107. package/optimize/lib/global_styling/mixins/_typography.js +1 -1
  108. package/optimize/lib/services/theme/hooks.js +10 -15
  109. package/package.json +1 -1
  110. package/src/components/badge/_badge.scss +0 -5
  111. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  112. package/src/components/filter_group/_filter_group.scss +3 -1
  113. package/src/components/flex/_flex_group.scss +2 -11
  114. package/src/components/flex/_flex_item.scss +0 -6
  115. package/src/components/form/field_search/_field_search.scss +0 -5
  116. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
  117. package/src/components/form/form_row/_form_row.scss +0 -1
  118. package/src/components/header/header_section/_header_section_item.scss +1 -1
  119. package/src/components/list_group/_list_group_item.scss +3 -25
  120. package/src/components/modal/_modal.scss +5 -20
  121. package/src/components/page/page_content/_page_content.scss +0 -1
  122. package/src/components/table/_responsive.scss +0 -1
  123. package/src/components/table/_table.scss +0 -5
  124. package/src/global_styling/mixins/_form.scss +0 -4
  125. package/src/global_styling/mixins/_helpers.scss +0 -8
  126. package/src/global_styling/mixins/_typography.scss +1 -5
  127. package/src/global_styling/utility/_index.scss +0 -1
  128. package/test-env/components/basic_table/basic_table.js +13 -2
  129. package/test-env/components/basic_table/in_memory_table.js +13 -2
  130. package/test-env/components/card/card.styles.js +2 -2
  131. package/test-env/components/combo_box/combo_box.js +2 -15
  132. package/test-env/components/datagrid/body/data_grid_body.js +17 -6
  133. package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
  134. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  135. package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
  136. package/test-env/components/datagrid/data_grid.js +17 -6
  137. package/test-env/components/datagrid/utils/in_memory.js +17 -6
  138. package/test-env/components/description_list/description_list.js +11 -3
  139. package/test-env/components/description_list/description_list_context.js +2 -1
  140. package/test-env/components/description_list/description_list_description.js +3 -1
  141. package/test-env/components/description_list/description_list_description.styles.js +5 -2
  142. package/test-env/components/description_list/description_list_title.js +3 -2
  143. package/test-env/components/description_list/description_list_title.styles.js +7 -3
  144. package/test-env/components/description_list/description_list_types.js +4 -2
  145. package/test-env/components/form/field_search/field_search.js +6 -16
  146. package/test-env/components/form/range/range_input.js +1 -1
  147. package/test-env/components/header/header_section/header_section_item.js +4 -3
  148. package/test-env/components/list_group/list_group.js +7 -1
  149. package/test-env/components/list_group/list_group_item.js +10 -3
  150. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  151. package/test-env/components/modal/modal.js +1 -3
  152. package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
  153. package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
  154. package/test-env/components/table/table_row_cell.js +4 -6
  155. package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
  156. package/test-env/global_styling/mixins/_typography.js +1 -1
  157. package/test-env/services/theme/hooks.js +10 -15
  158. package/src/global_styling/utility/_utility.scss +0 -15
@@ -300,7 +300,13 @@ EuiDataGridCellContent.propTypes = {
300
300
  * Pass-through ref reference specifically for targeting
301
301
  * instances where the item content is rendered as a `button`
302
302
  */
303
- buttonRef: _propTypes.default.any
303
+ buttonRef: _propTypes.default.any,
304
+
305
+ /**
306
+ * Text to be displayed in the tooltip when `showToolTip` is true.
307
+ * By default the text will be same as the label text.
308
+ */
309
+ toolTipText: _propTypes.default.string
304
310
  }).isRequired]),
305
311
 
306
312
  /**
@@ -344,7 +350,8 @@ EuiDataGridCellContent.propTypes = {
344
350
  }),
345
351
  onClick: _propTypes.default.func,
346
352
  wrapText: _propTypes.default.bool,
347
- buttonRef: _propTypes.default.any
353
+ buttonRef: _propTypes.default.any,
354
+ toolTipText: _propTypes.default.string
348
355
  }).isRequired]),
349
356
 
350
357
  /**
@@ -388,7 +395,8 @@ EuiDataGridCellContent.propTypes = {
388
395
  }),
389
396
  onClick: _propTypes.default.func,
390
397
  wrapText: _propTypes.default.bool,
391
- buttonRef: _propTypes.default.any
398
+ buttonRef: _propTypes.default.any,
399
+ toolTipText: _propTypes.default.string
392
400
  }).isRequired]),
393
401
 
394
402
  /**
@@ -432,7 +440,8 @@ EuiDataGridCellContent.propTypes = {
432
440
  }),
433
441
  onClick: _propTypes.default.func,
434
442
  wrapText: _propTypes.default.bool,
435
- buttonRef: _propTypes.default.any
443
+ buttonRef: _propTypes.default.any,
444
+ toolTipText: _propTypes.default.string
436
445
  }).isRequired]),
437
446
 
438
447
  /**
@@ -476,7 +485,8 @@ EuiDataGridCellContent.propTypes = {
476
485
  }),
477
486
  onClick: _propTypes.default.func,
478
487
  wrapText: _propTypes.default.bool,
479
- buttonRef: _propTypes.default.any
488
+ buttonRef: _propTypes.default.any,
489
+ toolTipText: _propTypes.default.string
480
490
  }).isRequired]),
481
491
 
482
492
  /**
@@ -520,7 +530,8 @@ EuiDataGridCellContent.propTypes = {
520
530
  }),
521
531
  onClick: _propTypes.default.func,
522
532
  wrapText: _propTypes.default.bool,
523
- buttonRef: _propTypes.default.any
533
+ buttonRef: _propTypes.default.any,
534
+ toolTipText: _propTypes.default.string
524
535
  }).isRequired)
525
536
  }).isRequired]),
526
537
 
@@ -1315,7 +1326,8 @@ EuiDataGridCell.propTypes = {
1315
1326
  }),
1316
1327
  onClick: _propTypes.default.func,
1317
1328
  wrapText: _propTypes.default.bool,
1318
- buttonRef: _propTypes.default.any
1329
+ buttonRef: _propTypes.default.any,
1330
+ toolTipText: _propTypes.default.string
1319
1331
  }).isRequired]),
1320
1332
 
1321
1333
  /**
@@ -1359,7 +1371,8 @@ EuiDataGridCell.propTypes = {
1359
1371
  }),
1360
1372
  onClick: _propTypes.default.func,
1361
1373
  wrapText: _propTypes.default.bool,
1362
- buttonRef: _propTypes.default.any
1374
+ buttonRef: _propTypes.default.any,
1375
+ toolTipText: _propTypes.default.string
1363
1376
  }).isRequired]),
1364
1377
 
1365
1378
  /**
@@ -1403,7 +1416,8 @@ EuiDataGridCell.propTypes = {
1403
1416
  }),
1404
1417
  onClick: _propTypes.default.func,
1405
1418
  wrapText: _propTypes.default.bool,
1406
- buttonRef: _propTypes.default.any
1419
+ buttonRef: _propTypes.default.any,
1420
+ toolTipText: _propTypes.default.string
1407
1421
  }).isRequired]),
1408
1422
 
1409
1423
  /**
@@ -1447,7 +1461,8 @@ EuiDataGridCell.propTypes = {
1447
1461
  }),
1448
1462
  onClick: _propTypes.default.func,
1449
1463
  wrapText: _propTypes.default.bool,
1450
- buttonRef: _propTypes.default.any
1464
+ buttonRef: _propTypes.default.any,
1465
+ toolTipText: _propTypes.default.string
1451
1466
  }).isRequired]),
1452
1467
 
1453
1468
  /**
@@ -1491,7 +1506,8 @@ EuiDataGridCell.propTypes = {
1491
1506
  }),
1492
1507
  onClick: _propTypes.default.func,
1493
1508
  wrapText: _propTypes.default.bool,
1494
- buttonRef: _propTypes.default.any
1509
+ buttonRef: _propTypes.default.any,
1510
+ toolTipText: _propTypes.default.string
1495
1511
  }).isRequired]),
1496
1512
 
1497
1513
  /**
@@ -1535,7 +1551,8 @@ EuiDataGridCell.propTypes = {
1535
1551
  }),
1536
1552
  onClick: _propTypes.default.func,
1537
1553
  wrapText: _propTypes.default.bool,
1538
- buttonRef: _propTypes.default.any
1554
+ buttonRef: _propTypes.default.any,
1555
+ toolTipText: _propTypes.default.string
1539
1556
  }).isRequired)
1540
1557
  }).isRequired]),
1541
1558
 
@@ -376,7 +376,13 @@ EuiDataGridHeaderCell.propTypes = {
376
376
  * Pass-through ref reference specifically for targeting
377
377
  * instances where the item content is rendered as a `button`
378
378
  */
379
- buttonRef: _propTypes.default.any
379
+ buttonRef: _propTypes.default.any,
380
+
381
+ /**
382
+ * Text to be displayed in the tooltip when `showToolTip` is true.
383
+ * By default the text will be same as the label text.
384
+ */
385
+ toolTipText: _propTypes.default.string
380
386
  }).isRequired]),
381
387
 
382
388
  /**
@@ -420,7 +426,8 @@ EuiDataGridHeaderCell.propTypes = {
420
426
  }),
421
427
  onClick: _propTypes.default.func,
422
428
  wrapText: _propTypes.default.bool,
423
- buttonRef: _propTypes.default.any
429
+ buttonRef: _propTypes.default.any,
430
+ toolTipText: _propTypes.default.string
424
431
  }).isRequired]),
425
432
 
426
433
  /**
@@ -464,7 +471,8 @@ EuiDataGridHeaderCell.propTypes = {
464
471
  }),
465
472
  onClick: _propTypes.default.func,
466
473
  wrapText: _propTypes.default.bool,
467
- buttonRef: _propTypes.default.any
474
+ buttonRef: _propTypes.default.any,
475
+ toolTipText: _propTypes.default.string
468
476
  }).isRequired]),
469
477
 
470
478
  /**
@@ -508,7 +516,8 @@ EuiDataGridHeaderCell.propTypes = {
508
516
  }),
509
517
  onClick: _propTypes.default.func,
510
518
  wrapText: _propTypes.default.bool,
511
- buttonRef: _propTypes.default.any
519
+ buttonRef: _propTypes.default.any,
520
+ toolTipText: _propTypes.default.string
512
521
  }).isRequired]),
513
522
 
514
523
  /**
@@ -552,7 +561,8 @@ EuiDataGridHeaderCell.propTypes = {
552
561
  }),
553
562
  onClick: _propTypes.default.func,
554
563
  wrapText: _propTypes.default.bool,
555
- buttonRef: _propTypes.default.any
564
+ buttonRef: _propTypes.default.any,
565
+ toolTipText: _propTypes.default.string
556
566
  }).isRequired]),
557
567
 
558
568
  /**
@@ -596,7 +606,8 @@ EuiDataGridHeaderCell.propTypes = {
596
606
  }),
597
607
  onClick: _propTypes.default.func,
598
608
  wrapText: _propTypes.default.bool,
599
- buttonRef: _propTypes.default.any
609
+ buttonRef: _propTypes.default.any,
610
+ toolTipText: _propTypes.default.string
600
611
  }).isRequired)
601
612
  }).isRequired]),
602
613
 
@@ -323,7 +323,13 @@ EuiDataGridHeaderRow.propTypes = {
323
323
  * Pass-through ref reference specifically for targeting
324
324
  * instances where the item content is rendered as a `button`
325
325
  */
326
- buttonRef: _propTypes.default.any
326
+ buttonRef: _propTypes.default.any,
327
+
328
+ /**
329
+ * Text to be displayed in the tooltip when `showToolTip` is true.
330
+ * By default the text will be same as the label text.
331
+ */
332
+ toolTipText: _propTypes.default.string
327
333
  }).isRequired]),
328
334
 
329
335
  /**
@@ -367,7 +373,8 @@ EuiDataGridHeaderRow.propTypes = {
367
373
  }),
368
374
  onClick: _propTypes.default.func,
369
375
  wrapText: _propTypes.default.bool,
370
- buttonRef: _propTypes.default.any
376
+ buttonRef: _propTypes.default.any,
377
+ toolTipText: _propTypes.default.string
371
378
  }).isRequired]),
372
379
 
373
380
  /**
@@ -411,7 +418,8 @@ EuiDataGridHeaderRow.propTypes = {
411
418
  }),
412
419
  onClick: _propTypes.default.func,
413
420
  wrapText: _propTypes.default.bool,
414
- buttonRef: _propTypes.default.any
421
+ buttonRef: _propTypes.default.any,
422
+ toolTipText: _propTypes.default.string
415
423
  }).isRequired]),
416
424
 
417
425
  /**
@@ -455,7 +463,8 @@ EuiDataGridHeaderRow.propTypes = {
455
463
  }),
456
464
  onClick: _propTypes.default.func,
457
465
  wrapText: _propTypes.default.bool,
458
- buttonRef: _propTypes.default.any
466
+ buttonRef: _propTypes.default.any,
467
+ toolTipText: _propTypes.default.string
459
468
  }).isRequired]),
460
469
 
461
470
  /**
@@ -499,7 +508,8 @@ EuiDataGridHeaderRow.propTypes = {
499
508
  }),
500
509
  onClick: _propTypes.default.func,
501
510
  wrapText: _propTypes.default.bool,
502
- buttonRef: _propTypes.default.any
511
+ buttonRef: _propTypes.default.any,
512
+ toolTipText: _propTypes.default.string
503
513
  }).isRequired]),
504
514
 
505
515
  /**
@@ -543,7 +553,8 @@ EuiDataGridHeaderRow.propTypes = {
543
553
  }),
544
554
  onClick: _propTypes.default.func,
545
555
  wrapText: _propTypes.default.bool,
546
- buttonRef: _propTypes.default.any
556
+ buttonRef: _propTypes.default.any,
557
+ toolTipText: _propTypes.default.string
547
558
  }).isRequired)
548
559
  }).isRequired]),
549
560
 
@@ -613,7 +613,13 @@ EuiDataGrid.propTypes = {
613
613
  * Pass-through ref reference specifically for targeting
614
614
  * instances where the item content is rendered as a `button`
615
615
  */
616
- buttonRef: _propTypes.default.any
616
+ buttonRef: _propTypes.default.any,
617
+
618
+ /**
619
+ * Text to be displayed in the tooltip when `showToolTip` is true.
620
+ * By default the text will be same as the label text.
621
+ */
622
+ toolTipText: _propTypes.default.string
617
623
  }).isRequired]),
618
624
 
619
625
  /**
@@ -657,7 +663,8 @@ EuiDataGrid.propTypes = {
657
663
  }),
658
664
  onClick: _propTypes.default.func,
659
665
  wrapText: _propTypes.default.bool,
660
- buttonRef: _propTypes.default.any
666
+ buttonRef: _propTypes.default.any,
667
+ toolTipText: _propTypes.default.string
661
668
  }).isRequired]),
662
669
 
663
670
  /**
@@ -701,7 +708,8 @@ EuiDataGrid.propTypes = {
701
708
  }),
702
709
  onClick: _propTypes.default.func,
703
710
  wrapText: _propTypes.default.bool,
704
- buttonRef: _propTypes.default.any
711
+ buttonRef: _propTypes.default.any,
712
+ toolTipText: _propTypes.default.string
705
713
  }).isRequired]),
706
714
 
707
715
  /**
@@ -745,7 +753,8 @@ EuiDataGrid.propTypes = {
745
753
  }),
746
754
  onClick: _propTypes.default.func,
747
755
  wrapText: _propTypes.default.bool,
748
- buttonRef: _propTypes.default.any
756
+ buttonRef: _propTypes.default.any,
757
+ toolTipText: _propTypes.default.string
749
758
  }).isRequired]),
750
759
 
751
760
  /**
@@ -789,7 +798,8 @@ EuiDataGrid.propTypes = {
789
798
  }),
790
799
  onClick: _propTypes.default.func,
791
800
  wrapText: _propTypes.default.bool,
792
- buttonRef: _propTypes.default.any
801
+ buttonRef: _propTypes.default.any,
802
+ toolTipText: _propTypes.default.string
793
803
  }).isRequired]),
794
804
 
795
805
  /**
@@ -833,7 +843,8 @@ EuiDataGrid.propTypes = {
833
843
  }),
834
844
  onClick: _propTypes.default.func,
835
845
  wrapText: _propTypes.default.bool,
836
- buttonRef: _propTypes.default.any
846
+ buttonRef: _propTypes.default.any,
847
+ toolTipText: _propTypes.default.string
837
848
  }).isRequired)
838
849
  }).isRequired]),
839
850
 
@@ -416,7 +416,13 @@ EuiDataGridInMemoryRenderer.propTypes = {
416
416
  * Pass-through ref reference specifically for targeting
417
417
  * instances where the item content is rendered as a `button`
418
418
  */
419
- buttonRef: _propTypes.default.any
419
+ buttonRef: _propTypes.default.any,
420
+
421
+ /**
422
+ * Text to be displayed in the tooltip when `showToolTip` is true.
423
+ * By default the text will be same as the label text.
424
+ */
425
+ toolTipText: _propTypes.default.string
420
426
  }).isRequired]),
421
427
 
422
428
  /**
@@ -460,7 +466,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
460
466
  }),
461
467
  onClick: _propTypes.default.func,
462
468
  wrapText: _propTypes.default.bool,
463
- buttonRef: _propTypes.default.any
469
+ buttonRef: _propTypes.default.any,
470
+ toolTipText: _propTypes.default.string
464
471
  }).isRequired]),
465
472
 
466
473
  /**
@@ -504,7 +511,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
504
511
  }),
505
512
  onClick: _propTypes.default.func,
506
513
  wrapText: _propTypes.default.bool,
507
- buttonRef: _propTypes.default.any
514
+ buttonRef: _propTypes.default.any,
515
+ toolTipText: _propTypes.default.string
508
516
  }).isRequired]),
509
517
 
510
518
  /**
@@ -548,7 +556,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
548
556
  }),
549
557
  onClick: _propTypes.default.func,
550
558
  wrapText: _propTypes.default.bool,
551
- buttonRef: _propTypes.default.any
559
+ buttonRef: _propTypes.default.any,
560
+ toolTipText: _propTypes.default.string
552
561
  }).isRequired]),
553
562
 
554
563
  /**
@@ -592,7 +601,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
592
601
  }),
593
602
  onClick: _propTypes.default.func,
594
603
  wrapText: _propTypes.default.bool,
595
- buttonRef: _propTypes.default.any
604
+ buttonRef: _propTypes.default.any,
605
+ toolTipText: _propTypes.default.string
596
606
  }).isRequired]),
597
607
 
598
608
  /**
@@ -636,7 +646,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
636
646
  }),
637
647
  onClick: _propTypes.default.func,
638
648
  wrapText: _propTypes.default.bool,
639
- buttonRef: _propTypes.default.any
649
+ buttonRef: _propTypes.default.any,
650
+ toolTipText: _propTypes.default.string
640
651
  }).isRequired)
641
652
  }).isRequired]),
642
653
 
@@ -29,7 +29,7 @@ var _description_list_context = require("./description_list_context");
29
29
 
30
30
  var _react2 = require("@emotion/react");
31
31
 
32
- var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type"];
32
+ var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
33
33
 
34
34
  var EuiDescriptionList = function EuiDescriptionList(_ref) {
35
35
  var _ref$align = _ref.align,
@@ -45,6 +45,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
45
45
  titleProps = _ref.titleProps,
46
46
  _ref$type = _ref.type,
47
47
  type = _ref$type === void 0 ? 'row' : _ref$type,
48
+ _ref$gutterSize = _ref.gutterSize,
49
+ gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
48
50
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
49
51
  var euiTheme = (0, _services.useEuiTheme)();
50
52
  var styles = (0, _description_list.euiDescriptionListStyles)(euiTheme);
@@ -69,7 +71,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
69
71
  type: type,
70
72
  compressed: compressed,
71
73
  textStyle: textStyle,
72
- align: align
74
+ align: align,
75
+ gutterSize: gutterSize
73
76
  }
74
77
  }, (0, _react2.jsx)("dl", (0, _extends2.default)({
75
78
  className: classes,
@@ -129,5 +132,10 @@ EuiDescriptionList.propTypes = {
129
132
  "aria-label": _propTypes.default.string,
130
133
  "data-test-subj": _propTypes.default.string,
131
134
  css: _propTypes.default.any
132
- })
135
+ }),
136
+
137
+ /**
138
+ * Vertical spacing added between `EuiDescriptionList` elements
139
+ */
140
+ gutterSize: _propTypes.default.any
133
141
  };
@@ -17,7 +17,8 @@ var _react = require("react");
17
17
  var contextDefaults = {
18
18
  type: 'row',
19
19
  textStyle: 'normal',
20
- align: 'left'
20
+ align: 'left',
21
+ gutterSize: 'm'
21
22
  };
22
23
  exports.contextDefaults = contextDefaults;
23
24
  var EuiDescriptionListContext = /*#__PURE__*/(0, _react.createContext)(contextDefaults);
@@ -44,7 +44,8 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
44
44
  type = _useContext.type,
45
45
  textStyle = _useContext.textStyle,
46
46
  compressed = _useContext.compressed,
47
- align = _useContext.align;
47
+ align = _useContext.align,
48
+ gutterSize = _useContext.gutterSize;
48
49
 
49
50
  var theme = (0, _services.useEuiTheme)();
50
51
  var styles = (0, _description_list_description.euiDescriptionListDescriptionStyles)(theme);
@@ -61,6 +62,7 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
61
62
  conditionalStyles.push(styles.left);
62
63
  }
63
64
 
65
+ conditionalStyles.push(styles[gutterSize]);
64
66
  break;
65
67
  }
66
68
 
@@ -24,7 +24,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
24
24
 
25
25
  var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
26
26
  var euiTheme = euiThemeContext.euiTheme;
27
- var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n &:not(:first-of-type) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), "\n }\n ");
27
+ var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n ");
28
28
  return {
29
29
  euiDescriptionList__description: /*#__PURE__*/(0, _react.css)(";label:euiDescriptionList__description;"),
30
30
  // Types
@@ -44,7 +44,10 @@ var euiDescriptionListDescriptionStyles = function euiDescriptionListDescription
44
44
  normal: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";;label:normal;")
45
45
  },
46
46
  // Column types should align description text to the left when EuiDecriptionList is centered
47
- left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;")
47
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;"),
48
+ // Gutter
49
+ s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
50
+ m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
48
51
  };
49
52
  };
50
53
 
@@ -44,7 +44,8 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
44
44
  type = _useContext.type,
45
45
  textStyle = _useContext.textStyle,
46
46
  compressed = _useContext.compressed,
47
- align = _useContext.align;
47
+ align = _useContext.align,
48
+ gutterSize = _useContext.gutterSize;
48
49
 
49
50
  var theme = (0, _services.useEuiTheme)();
50
51
  var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
@@ -64,7 +65,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
64
65
  break;
65
66
  }
66
67
 
67
- var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat((0, _toConsumableArray2.default)(conditionalStyles));
68
+ var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat((0, _toConsumableArray2.default)(conditionalStyles));
68
69
  var classes = (0, _classnames.default)('euiDescriptionList__title', className);
69
70
  return (0, _react2.jsx)("dt", (0, _extends2.default)({
70
71
  className: classes,
@@ -23,9 +23,9 @@ var _title = require("../title/title.styles");
23
23
  var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
24
24
  var euiTheme = euiThemeContext.euiTheme,
25
25
  colorMode = euiThemeContext.colorMode;
26
- var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), "\n ");
26
+ var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), "\n ");
27
27
  return {
28
- euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), "&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:euiDescriptionList__title;"),
28
+ euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), ";;label:euiDescriptionList__title;"),
29
29
  // Types
30
30
  row: /*#__PURE__*/(0, _react.css)(";label:row;"),
31
31
  column: /*#__PURE__*/(0, _react.css)(columnDisplay, ";;label:column;"),
@@ -43,7 +43,11 @@ var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiTh
43
43
  compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";", (0, _global_styling.logicalCSS)('padding-vertical', '0'), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), ";;label:compressed;")
44
44
  },
45
45
  // Alignment
46
- right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;")
46
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;"),
47
+ // Gutter
48
+ // Add margin only to the non-first <dt>.
49
+ s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
50
+ m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
47
51
  };
48
52
  };
49
53
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TYPES = exports.TEXT_STYLES = exports.ALIGNMENTS = void 0;
6
+ exports.TYPES = exports.TEXT_STYLES = exports.GUTTER_SIZES = exports.ALIGNMENTS = void 0;
7
7
 
8
8
  /*
9
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -17,4 +17,6 @@ exports.TYPES = TYPES;
17
17
  var ALIGNMENTS = ['center', 'left'];
18
18
  exports.ALIGNMENTS = ALIGNMENTS;
19
19
  var TEXT_STYLES = ['normal', 'reverse'];
20
- exports.TEXT_STYLES = TEXT_STYLES;
20
+ exports.TEXT_STYLES = TEXT_STYLES;
21
+ var GUTTER_SIZES = ['s', 'm'];
22
+ exports.GUTTER_SIZES = GUTTER_SIZES;
@@ -92,26 +92,16 @@ var EuiFieldSearch = /*#__PURE__*/function (_Component) {
92
92
 
93
93
  if (nativeInputValueSetter) {
94
94
  nativeInputValueSetter.call(_this.inputElement, '');
95
- } // dispatch input event, with IE11 support/fallback
95
+ } // dispatch input event
96
96
 
97
97
 
98
- var event;
99
-
100
- if ('Event' in window && typeof Event === 'function') {
101
- event = new Event('input', {
102
- bubbles: true,
103
- cancelable: false
104
- });
105
- } else {
106
- // IE11
107
- event = document.createEvent('Event');
108
- event.initEvent('input', true, false);
109
- }
98
+ var event = new Event('input', {
99
+ bubbles: true,
100
+ cancelable: false
101
+ });
110
102
 
111
103
  if (_this.inputElement) {
112
- if (event) {
113
- _this.inputElement.dispatchEvent(event);
114
- } // set focus on the search field
104
+ _this.inputElement.dispatchEvent(event); // set focus on the search field
115
105
 
116
106
 
117
107
  _this.inputElement.focus();
@@ -37,7 +37,7 @@ var EuiRangeInput = function EuiRangeInput(_ref) {
37
37
  _ref$autoSize = _ref.autoSize,
38
38
  autoSize = _ref$autoSize === void 0 ? true : _ref$autoSize,
39
39
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
40
- // Chrome will properly size the input based on the max value, but FF & IE do not.
40
+ // Chrome will properly size the input based on the max value, but FF does not.
41
41
  // Calculate the width of the input based on highest number of characters.
42
42
  // Add 2 to accommodate for input stepper
43
43
  var widthStyle = autoSize ? {
@@ -32,10 +32,11 @@ var EuiHeaderSectionItem = function EuiHeaderSectionItem(_ref) {
32
32
  children = _ref.children,
33
33
  className = _ref.className,
34
34
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
35
- var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className);
36
- return (0, _react2.jsx)("div", (0, _extends2.default)({
35
+ var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className); // we check if there is any children and if not, we don't render anything
36
+
37
+ return children ? (0, _react2.jsx)("div", (0, _extends2.default)({
37
38
  className: classes
38
- }, rest), children);
39
+ }, rest), children) : null;
39
40
  };
40
41
 
41
42
  exports.EuiHeaderSectionItem = EuiHeaderSectionItem;
@@ -270,7 +270,13 @@ EuiListGroup.propTypes = {
270
270
  * Pass-through ref reference specifically for targeting
271
271
  * instances where the item content is rendered as a `button`
272
272
  */
273
- buttonRef: _propTypes.default.any
273
+ buttonRef: _propTypes.default.any,
274
+
275
+ /**
276
+ * Text to be displayed in the tooltip when `showToolTip` is true.
277
+ * By default the text will be same as the label text.
278
+ */
279
+ toolTipText: _propTypes.default.string
274
280
  }).isRequired),
275
281
 
276
282
  /**
@@ -35,7 +35,7 @@ var _href_validator = require("../../services/security/href_validator");
35
35
 
36
36
  var _react2 = require("@emotion/react");
37
37
 
38
- var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef"],
38
+ var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef", "toolTipText"],
39
39
  _excluded2 = ["iconType", "alwaysShow", "className", "isDisabled"];
40
40
 
41
41
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -83,6 +83,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
83
83
  showToolTip = _ref$showToolTip === void 0 ? false : _ref$showToolTip,
84
84
  wrapText = _ref.wrapText,
85
85
  buttonRef = _ref.buttonRef,
86
+ toolTipText = _ref.toolTipText,
86
87
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
87
88
 
88
89
  var isHrefValid = !href || (0, _href_validator.validateHref)(href);
@@ -184,7 +185,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
184
185
  className: classes
185
186
  }, (0, _react2.jsx)(_tool_tip.EuiToolTip, {
186
187
  anchorClassName: "euiListGroupItem__tooltip",
187
- content: label,
188
+ content: toolTipText !== null && toolTipText !== void 0 ? toolTipText : label,
188
189
  position: "right",
189
190
  delay: "long"
190
191
  }, itemContent));
@@ -329,5 +330,11 @@ EuiListGroupItem.propTypes = {
329
330
  * Pass-through ref reference specifically for targeting
330
331
  * instances where the item content is rendered as a `button`
331
332
  */
332
- buttonRef: _propTypes.default.any
333
+ buttonRef: _propTypes.default.any,
334
+
335
+ /**
336
+ * Text to be displayed in the tooltip when `showToolTip` is true.
337
+ * By default the text will be same as the label text.
338
+ */
339
+ toolTipText: _propTypes.default.string
333
340
  };