@elastic/eui 65.0.0 → 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 (169) hide show
  1. package/dist/eui_theme_dark.css +28 -197
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +28 -197
  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/date_picker/react-datepicker/original.package.json +124 -0
  16. package/es/components/description_list/description_list.js +11 -3
  17. package/es/components/description_list/description_list_context.js +2 -1
  18. package/es/components/description_list/description_list_description.js +3 -1
  19. package/es/components/description_list/description_list_description.styles.js +5 -2
  20. package/es/components/description_list/description_list_title.js +4 -3
  21. package/es/components/description_list/description_list_title.styles.js +7 -3
  22. package/es/components/description_list/description_list_types.js +2 -1
  23. package/es/components/form/field_search/field_search.js +6 -16
  24. package/es/components/form/range/range_input.js +1 -1
  25. package/es/components/header/header_section/header_section_item.js +4 -3
  26. package/es/components/icon/icon.js +3 -10
  27. package/es/components/list_group/list_group.js +7 -1
  28. package/es/components/list_group/list_group_item.js +10 -3
  29. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  30. package/es/components/modal/modal.js +1 -3
  31. package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  32. package/es/components/page/page_sidebar/page_sidebar.js +5 -1
  33. package/es/components/table/table_row_cell.js +4 -6
  34. package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  35. package/es/global_styling/functions/logicals.json +56 -0
  36. package/es/global_styling/mixins/_typography.js +1 -1
  37. package/es/services/theme/hooks.js +11 -16
  38. package/eui.d.ts +29 -10
  39. package/i18ntokens.json +18 -18
  40. package/lib/components/basic_table/basic_table.js +13 -2
  41. package/lib/components/basic_table/in_memory_table.js +13 -2
  42. package/lib/components/card/card.styles.js +2 -2
  43. package/lib/components/combo_box/combo_box.js +2 -15
  44. package/lib/components/datagrid/body/data_grid_body.js +17 -6
  45. package/lib/components/datagrid/body/data_grid_cell.js +29 -12
  46. package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  47. package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
  48. package/lib/components/datagrid/data_grid.js +17 -6
  49. package/lib/components/datagrid/utils/in_memory.js +17 -6
  50. package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  51. package/lib/components/description_list/description_list.js +11 -3
  52. package/lib/components/description_list/description_list_context.js +2 -1
  53. package/lib/components/description_list/description_list_description.js +3 -1
  54. package/lib/components/description_list/description_list_description.styles.js +5 -2
  55. package/lib/components/description_list/description_list_title.js +4 -3
  56. package/lib/components/description_list/description_list_title.styles.js +7 -3
  57. package/lib/components/description_list/description_list_types.js +4 -2
  58. package/lib/components/form/field_search/field_search.js +6 -16
  59. package/lib/components/form/range/range_input.js +1 -1
  60. package/lib/components/header/header_section/header_section_item.js +4 -3
  61. package/lib/components/icon/icon.js +3 -10
  62. package/lib/components/list_group/list_group.js +7 -1
  63. package/lib/components/list_group/list_group_item.js +10 -3
  64. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  65. package/lib/components/modal/modal.js +1 -3
  66. package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  67. package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  68. package/lib/components/table/table_row_cell.js +4 -6
  69. package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  70. package/lib/global_styling/functions/logicals.json +56 -0
  71. package/lib/global_styling/mixins/_typography.js +1 -1
  72. package/lib/services/theme/hooks.js +10 -15
  73. package/optimize/es/components/card/card.styles.js +2 -2
  74. package/optimize/es/components/combo_box/combo_box.js +2 -15
  75. package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
  76. package/optimize/es/components/description_list/description_list.js +5 -2
  77. package/optimize/es/components/description_list/description_list_context.js +2 -1
  78. package/optimize/es/components/description_list/description_list_description.js +3 -1
  79. package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
  80. package/optimize/es/components/description_list/description_list_title.js +4 -3
  81. package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
  82. package/optimize/es/components/description_list/description_list_types.js +2 -1
  83. package/optimize/es/components/form/field_search/field_search.js +6 -16
  84. package/optimize/es/components/form/range/range_input.js +1 -1
  85. package/optimize/es/components/header/header_section/header_section_item.js +4 -3
  86. package/optimize/es/components/icon/icon.js +3 -10
  87. package/optimize/es/components/list_group/list_group_item.js +3 -2
  88. package/optimize/es/components/modal/modal.js +1 -3
  89. package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  90. package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
  91. package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  92. package/optimize/es/global_styling/functions/logicals.json +56 -0
  93. package/optimize/es/global_styling/mixins/_typography.js +1 -1
  94. package/optimize/es/services/theme/hooks.js +11 -16
  95. package/optimize/lib/components/card/card.styles.js +2 -2
  96. package/optimize/lib/components/combo_box/combo_box.js +2 -15
  97. package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  98. package/optimize/lib/components/description_list/description_list.js +5 -2
  99. package/optimize/lib/components/description_list/description_list_context.js +2 -1
  100. package/optimize/lib/components/description_list/description_list_description.js +3 -1
  101. package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
  102. package/optimize/lib/components/description_list/description_list_title.js +4 -3
  103. package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
  104. package/optimize/lib/components/description_list/description_list_types.js +4 -2
  105. package/optimize/lib/components/form/field_search/field_search.js +6 -16
  106. package/optimize/lib/components/form/range/range_input.js +1 -1
  107. package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
  108. package/optimize/lib/components/icon/icon.js +3 -10
  109. package/optimize/lib/components/list_group/list_group_item.js +3 -2
  110. package/optimize/lib/components/modal/modal.js +1 -3
  111. package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  112. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  113. package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  114. package/optimize/lib/global_styling/functions/logicals.json +56 -0
  115. package/optimize/lib/global_styling/mixins/_typography.js +1 -1
  116. package/optimize/lib/services/theme/hooks.js +10 -15
  117. package/package.json +1 -1
  118. package/src/components/badge/_badge.scss +0 -5
  119. package/src/components/datagrid/_data_grid_data_row.scss +7 -0
  120. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  121. package/src/components/filter_group/_filter_group.scss +3 -1
  122. package/src/components/flex/_flex_group.scss +2 -11
  123. package/src/components/flex/_flex_item.scss +0 -6
  124. package/src/components/form/field_search/_field_search.scss +0 -5
  125. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
  126. package/src/components/form/form_row/_form_row.scss +0 -1
  127. package/src/components/header/header_section/_header_section_item.scss +1 -1
  128. package/src/components/list_group/_list_group_item.scss +3 -25
  129. package/src/components/modal/_modal.scss +5 -20
  130. package/src/components/page/page_content/_page_content.scss +0 -1
  131. package/src/components/table/_responsive.scss +0 -1
  132. package/src/components/table/_table.scss +0 -5
  133. package/src/global_styling/mixins/_form.scss +0 -4
  134. package/src/global_styling/mixins/_helpers.scss +0 -8
  135. package/src/global_styling/mixins/_typography.scss +1 -5
  136. package/src/global_styling/utility/_index.scss +0 -1
  137. package/test-env/components/basic_table/basic_table.js +13 -2
  138. package/test-env/components/basic_table/in_memory_table.js +13 -2
  139. package/test-env/components/card/card.styles.js +2 -2
  140. package/test-env/components/combo_box/combo_box.js +2 -15
  141. package/test-env/components/datagrid/body/data_grid_body.js +17 -6
  142. package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
  143. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  144. package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
  145. package/test-env/components/datagrid/data_grid.js +17 -6
  146. package/test-env/components/datagrid/utils/in_memory.js +17 -6
  147. package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
  148. package/test-env/components/description_list/description_list.js +11 -3
  149. package/test-env/components/description_list/description_list_context.js +2 -1
  150. package/test-env/components/description_list/description_list_description.js +3 -1
  151. package/test-env/components/description_list/description_list_description.styles.js +5 -2
  152. package/test-env/components/description_list/description_list_title.js +4 -3
  153. package/test-env/components/description_list/description_list_title.styles.js +7 -3
  154. package/test-env/components/description_list/description_list_types.js +4 -2
  155. package/test-env/components/form/field_search/field_search.js +6 -16
  156. package/test-env/components/form/range/range_input.js +1 -1
  157. package/test-env/components/header/header_section/header_section_item.js +4 -3
  158. package/test-env/components/list_group/list_group.js +7 -1
  159. package/test-env/components/list_group/list_group_item.js +10 -3
  160. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  161. package/test-env/components/modal/modal.js +1 -3
  162. package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
  163. package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
  164. package/test-env/components/table/table_row_cell.js +4 -6
  165. package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
  166. package/test-env/global_styling/functions/logicals.json +56 -0
  167. package/test-env/global_styling/mixins/_typography.js +1 -1
  168. package/test-env/services/theme/hooks.js +10 -15
  169. package/src/global_styling/utility/_utility.scss +0 -15
@@ -0,0 +1,124 @@
1
+ {
2
+ "author": "HackerOne",
3
+ "name": "@elastic/react-datepicker",
4
+ "description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
5
+ "private": true,
6
+ "version": "2.0.0",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/Hacker0x01/react-datepicker",
9
+ "main": "lib",
10
+ "files": [
11
+ "*.md",
12
+ "dist",
13
+ "datepicker-lib",
14
+ "es",
15
+ "src/stylesheets"
16
+ ],
17
+ "resolutions": {
18
+ "**/diff": "^3.5.0"
19
+ },
20
+ "devDependencies": {
21
+ "babel-core": "^6.26.0",
22
+ "babel-eslint": "^8.0.2",
23
+ "babel-loader": "^6.2.10",
24
+ "babel-plugin-add-react-displayname": "^0.0.4",
25
+ "babel-plugin-external-helpers": "^6.22.0",
26
+ "babel-plugin-react-transform": "^3.0.0",
27
+ "babel-plugin-transform-class-properties": "^6.24.1",
28
+ "babel-plugin-transform-react-remove-prop-types": "^0.4.10",
29
+ "babel-polyfill": "^6.26.0",
30
+ "babel-preset-airbnb": "^2.4.0",
31
+ "babel-preset-env": "^1.6.1",
32
+ "babel-preset-react": "^6.24.1",
33
+ "babel-preset-stage-0": "^6.24.1",
34
+ "chai": "^3.5.0",
35
+ "cross-env": "^5.1.1",
36
+ "css-loader": "^1.0.0",
37
+ "enzyme": "^3.10.0",
38
+ "enzyme-adapter-react-16": "^1.14.0",
39
+ "eslint": "^4.18.2",
40
+ "eslint-plugin-import": "^2.8.0",
41
+ "eslint-plugin-node": "^5.2.1",
42
+ "eslint-plugin-promise": "^3.6.0",
43
+ "eslint-plugin-react": "^7.4.0",
44
+ "express": "^4.16.2",
45
+ "extract-text-webpack-plugin": "^1.0.1",
46
+ "flow-bin": "^0.68.0",
47
+ "highlight.js": "^9.12.0",
48
+ "husky": "^0.14.3",
49
+ "isparta-loader": "^2.0.0",
50
+ "karma": "^1.7.1",
51
+ "karma-chai": "^0.1.0",
52
+ "karma-coverage": "^1.1.1",
53
+ "karma-firefox-launcher": "^1.0.1",
54
+ "karma-mocha": "^1.3.0",
55
+ "karma-sinon": "^1.0.5",
56
+ "karma-sourcemap-loader": "^0.3.7",
57
+ "karma-webpack": "^2.0.5",
58
+ "lint-staged": "^6.0.0",
59
+ "lodash": "^4.17.13",
60
+ "mocha": "^4.0.1",
61
+ "moment": "^2.20.1",
62
+ "node-sass": "^4.13.1",
63
+ "npm-run-all": "^4.1.2",
64
+ "prettier": "^1.9.2",
65
+ "react": "^16.2.0",
66
+ "react-docgen": "^2.20.0",
67
+ "react-dom": "^16.2.0",
68
+ "react-test-renderer": "^16.8.6",
69
+ "react-transform-hmr": "^1.0.4",
70
+ "rimraf": "^2.6.2",
71
+ "rollup": "^0.62.0",
72
+ "rollup-plugin-babel": "^3.0.2",
73
+ "rollup-plugin-commonjs": "^8.2.6",
74
+ "rollup-plugin-node-resolve": "^3.0.0",
75
+ "rollup-plugin-uglify": "^2.0.1",
76
+ "sass-lint": "^1.12.1",
77
+ "sass-loader": "^4.1.1",
78
+ "sinon": "^4.1.2",
79
+ "style-loader": "^0.19.0",
80
+ "webpack": "^1.13.0",
81
+ "webpack-dev-middleware": "^1.12.0",
82
+ "webpack-dev-server": "^3.1.14",
83
+ "webpack-hot-middleware": "^2.20.0"
84
+ },
85
+ "peerDependencies": {
86
+ "moment": "^2.20.0",
87
+ "react": "^16.0.0",
88
+ "react-dom": "^16.0.0"
89
+ },
90
+ "dependencies": {
91
+ "classnames": "^2.2.5",
92
+ "focus-trap-react": "^4.0.0",
93
+ "json-loader": "^0.5.7",
94
+ "prop-types": "^15.6.0",
95
+ "react-onclickoutside": "^6.7.1",
96
+ "react-popper": "^1.0.2"
97
+ },
98
+ "scripts": {
99
+ "eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
100
+ "flow": "flow",
101
+ "precommit": "lint-staged",
102
+ "sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
103
+ "lint": "run-p eslint flow sass-lint",
104
+ "start": "cross-env MODULES=false node server.js",
105
+ "test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
106
+ "prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
107
+ "prepare": "npm run build",
108
+ "prebuild": "rimraf es lib dist",
109
+ "build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
110
+ "build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
111
+ "css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
112
+ "css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
113
+ "css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
114
+ "css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
115
+ "build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
116
+ "build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
117
+ },
118
+ "lint-staged": {
119
+ "*.{js,jsx,json,css,scss,md}": [
120
+ "prettier --write",
121
+ "git add"
122
+ ]
123
+ }
124
+ }
@@ -1,4 +1,4 @@
1
- var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type"];
1
+ var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
2
2
 
3
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -36,6 +36,8 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
36
36
  titleProps = _ref.titleProps,
37
37
  _ref$type = _ref.type,
38
38
  type = _ref$type === void 0 ? 'row' : _ref$type,
39
+ _ref$gutterSize = _ref.gutterSize,
40
+ gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
39
41
  rest = _objectWithoutProperties(_ref, _excluded);
40
42
 
41
43
  var euiTheme = useEuiTheme();
@@ -61,7 +63,8 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
61
63
  type: type,
62
64
  compressed: compressed,
63
65
  textStyle: textStyle,
64
- align: align
66
+ align: align,
67
+ gutterSize: gutterSize
65
68
  }
66
69
  }, ___EmotionJSX("dl", _extends({
67
70
  className: classes,
@@ -119,5 +122,10 @@ EuiDescriptionList.propTypes = {
119
122
  "aria-label": PropTypes.string,
120
123
  "data-test-subj": PropTypes.string,
121
124
  css: PropTypes.any
122
- })
125
+ }),
126
+
127
+ /**
128
+ * Vertical spacing added between `EuiDescriptionList` elements
129
+ */
130
+ gutterSize: PropTypes.any
123
131
  };
@@ -9,6 +9,7 @@ import { createContext } from 'react';
9
9
  export var contextDefaults = {
10
10
  type: 'row',
11
11
  textStyle: 'normal',
12
- align: 'left'
12
+ align: 'left',
13
+ gutterSize: 'm'
13
14
  };
14
15
  export var EuiDescriptionListContext = /*#__PURE__*/createContext(contextDefaults);
@@ -42,7 +42,8 @@ export var EuiDescriptionListDescription = function EuiDescriptionListDescriptio
42
42
  type = _useContext.type,
43
43
  textStyle = _useContext.textStyle,
44
44
  compressed = _useContext.compressed,
45
- align = _useContext.align;
45
+ align = _useContext.align,
46
+ gutterSize = _useContext.gutterSize;
46
47
 
47
48
  var theme = useEuiTheme();
48
49
  var styles = euiDescriptionListDescriptionStyles(theme);
@@ -59,6 +60,7 @@ export var EuiDescriptionListDescription = function EuiDescriptionListDescriptio
59
60
  conditionalStyles.push(styles.left);
60
61
  }
61
62
 
63
+ conditionalStyles.push(styles[gutterSize]);
62
64
  break;
63
65
  }
64
66
 
@@ -22,7 +22,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
22
22
 
23
23
  export var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
24
24
  var euiTheme = euiThemeContext.euiTheme;
25
- var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat(logicalCSS('padding-left', euiTheme.size.s), "\n &:not(:first-of-type) {\n ").concat(logicalCSS('margin-top', euiTheme.size.base), "\n }\n ");
25
+ var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), "\n ").concat(logicalCSS('padding-left', euiTheme.size.s), "\n ");
26
26
  return {
27
27
  euiDescriptionList__description: /*#__PURE__*/css(";label:euiDescriptionList__description;"),
28
28
  // Types
@@ -42,6 +42,9 @@ export var euiDescriptionListDescriptionStyles = function euiDescriptionListDesc
42
42
  normal: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), ";;label:normal;")
43
43
  },
44
44
  // Column types should align description text to the left when EuiDecriptionList is centered
45
- left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;")
45
+ left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;"),
46
+ // Gutter
47
+ s: /*#__PURE__*/css("&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.s), ";};label:s;"),
48
+ m: /*#__PURE__*/css("&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.base), ";};label:m;")
46
49
  };
47
50
  };
@@ -42,11 +42,12 @@ export var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
42
42
  type = _useContext.type,
43
43
  textStyle = _useContext.textStyle,
44
44
  compressed = _useContext.compressed,
45
- align = _useContext.align;
45
+ align = _useContext.align,
46
+ gutterSize = _useContext.gutterSize;
46
47
 
47
48
  var theme = useEuiTheme();
48
49
  var styles = euiDescriptionListTitleStyles(theme);
49
- var conditionalStyles = compressed && textStyle === 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
50
+ var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
50
51
 
51
52
  switch (type) {
52
53
  case 'inline':
@@ -62,7 +63,7 @@ export var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
62
63
  break;
63
64
  }
64
65
 
65
- var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat(_toConsumableArray(conditionalStyles));
66
+ var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat(_toConsumableArray(conditionalStyles));
66
67
  var classes = classNames('euiDescriptionList__title', className);
67
68
  return ___EmotionJSX("dt", _extends({
68
69
  className: classes,
@@ -12,9 +12,9 @@ import { euiTitle } from '../title/title.styles';
12
12
  export var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
13
13
  var euiTheme = euiThemeContext.euiTheme,
14
14
  colorMode = euiThemeContext.colorMode;
15
- var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat(logicalCSS('padding-right', euiTheme.size.s), "\n ");
15
+ var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), "\n ").concat(logicalCSS('padding-right', euiTheme.size.s), "\n ");
16
16
  return {
17
- euiDescriptionList__title: /*#__PURE__*/css(euiTextBreakWord(), "&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.base), ";};label:euiDescriptionList__title;"),
17
+ euiDescriptionList__title: /*#__PURE__*/css(euiTextBreakWord(), ";;label:euiDescriptionList__title;"),
18
18
  // Types
19
19
  row: /*#__PURE__*/css(";label:row;"),
20
20
  column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
@@ -32,6 +32,10 @@ export var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyle
32
32
  compressed: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), ";", logicalCSS('padding-vertical', '0'), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), ";;label:compressed;")
33
33
  },
34
34
  // Alignment
35
- right: /*#__PURE__*/css(logicalTextAlignCSS('right'), ";;label:right;")
35
+ right: /*#__PURE__*/css(logicalTextAlignCSS('right'), ";;label:right;"),
36
+ // Gutter
37
+ // Add margin only to the non-first <dt>.
38
+ s: /*#__PURE__*/css("&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.s), ";};label:s;"),
39
+ m: /*#__PURE__*/css("&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.base), ";};label:m;")
36
40
  };
37
41
  };
@@ -7,4 +7,5 @@
7
7
  */
8
8
  export var TYPES = ['row', 'inline', 'column', 'responsiveColumn'];
9
9
  export var ALIGNMENTS = ['center', 'left'];
10
- export var TEXT_STYLES = ['normal', 'reverse'];
10
+ export var TEXT_STYLES = ['normal', 'reverse'];
11
+ export var GUTTER_SIZES = ['s', 'm'];
@@ -86,26 +86,16 @@ export var EuiFieldSearch = /*#__PURE__*/function (_Component) {
86
86
 
87
87
  if (nativeInputValueSetter) {
88
88
  nativeInputValueSetter.call(_this.inputElement, '');
89
- } // dispatch input event, with IE11 support/fallback
89
+ } // dispatch input event
90
90
 
91
91
 
92
- var event;
93
-
94
- if ('Event' in window && typeof Event === 'function') {
95
- event = new Event('input', {
96
- bubbles: true,
97
- cancelable: false
98
- });
99
- } else {
100
- // IE11
101
- event = document.createEvent('Event');
102
- event.initEvent('input', true, false);
103
- }
92
+ var event = new Event('input', {
93
+ bubbles: true,
94
+ cancelable: false
95
+ });
104
96
 
105
97
  if (_this.inputElement) {
106
- if (event) {
107
- _this.inputElement.dispatchEvent(event);
108
- } // set focus on the search field
98
+ _this.inputElement.dispatchEvent(event); // set focus on the search field
109
99
 
110
100
 
111
101
  _this.inputElement.focus();
@@ -34,7 +34,7 @@ export var EuiRangeInput = function EuiRangeInput(_ref) {
34
34
  autoSize = _ref$autoSize === void 0 ? true : _ref$autoSize,
35
35
  rest = _objectWithoutProperties(_ref, _excluded);
36
36
 
37
- // Chrome will properly size the input based on the max value, but FF & IE do not.
37
+ // Chrome will properly size the input based on the max value, but FF does not.
38
38
  // Calculate the width of the input based on highest number of characters.
39
39
  // Add 2 to accommodate for input stepper
40
40
  var widthStyle = autoSize ? {
@@ -29,10 +29,11 @@ export var EuiHeaderSectionItem = function EuiHeaderSectionItem(_ref) {
29
29
  className = _ref.className,
30
30
  rest = _objectWithoutProperties(_ref, _excluded);
31
31
 
32
- var classes = classNames('euiHeaderSectionItem', borderToClassNameMap[border], className);
33
- return ___EmotionJSX("div", _extends({
32
+ var classes = classNames('euiHeaderSectionItem', borderToClassNameMap[border], className); // we check if there is any children and if not, we don't render anything
33
+
34
+ return children ? ___EmotionJSX("div", _extends({
34
35
  className: classes
35
- }, rest), children);
36
+ }, rest), children) : null;
36
37
  };
37
38
  EuiHeaderSectionItem.propTypes = {
38
39
  className: PropTypes.string,
@@ -114,7 +114,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
114
114
 
115
115
  _this = _super.call(this, props);
116
116
 
117
- _defineProperty(_assertThisInitialized(_this), "isMounted", true);
117
+ _defineProperty(_assertThisInitialized(_this), "isMounted", false);
118
118
 
119
119
  _defineProperty(_assertThisInitialized(_this), "loadIconComponent", function (iconType) {
120
120
  if (iconComponentCache.hasOwnProperty(iconType)) {
@@ -172,6 +172,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
172
172
  _createClass(EuiIconClass, [{
173
173
  key: "componentDidMount",
174
174
  value: function componentDidMount() {
175
+ this.isMounted = true;
175
176
  var type = this.props.type;
176
177
 
177
178
  if (isEuiIconType(type) && this.state.icon == null) {
@@ -248,14 +249,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
248
249
 
249
250
  var styles = euiIconStyles(theme);
250
251
  var cssStyles = [styles.euiIcon, styles[size], color && isNamedColor(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
251
- var icon = this.state.icon || empty; // This is a fix for IE and Edge, which ignores tabindex="-1" on an SVG, but respects
252
- // focusable="false".
253
- // - If there's no tabindex specified, we'll default the icon to not be focusable,
254
- // which is how SVGs behave in Chrome, Safari, and FF.
255
- // - If tabindex is -1, then the consumer wants the icon to be focusable by JavaScript only.
256
- // - If the tabindex is 0, the consumer wants the icon to be keyboard focusable.
257
-
258
- var focusable = tabIndex == null || tabIndex === -1 ? 'false' : 'true';
252
+ var icon = this.state.icon || empty;
259
253
 
260
254
  if (typeof icon === 'string') {
261
255
  return ___EmotionJSX("img", _extends({
@@ -287,7 +281,6 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
287
281
  style: optionalCustomStyles,
288
282
  css: cssStyles,
289
283
  tabIndex: tabIndex,
290
- focusable: focusable,
291
284
  role: "img",
292
285
  title: title,
293
286
  "data-icon-type": iconTitle,
@@ -262,7 +262,13 @@ EuiListGroup.propTypes = {
262
262
  * Pass-through ref reference specifically for targeting
263
263
  * instances where the item content is rendered as a `button`
264
264
  */
265
- buttonRef: PropTypes.any
265
+ buttonRef: PropTypes.any,
266
+
267
+ /**
268
+ * Text to be displayed in the tooltip when `showToolTip` is true.
269
+ * By default the text will be same as the label text.
270
+ */
271
+ toolTipText: PropTypes.string
266
272
  }).isRequired),
267
273
 
268
274
  /**
@@ -1,4 +1,4 @@
1
- var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef"],
1
+ var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef", "toolTipText"],
2
2
  _excluded2 = ["iconType", "alwaysShow", "className", "isDisabled"];
3
3
 
4
4
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -74,6 +74,7 @@ export var EuiListGroupItem = function EuiListGroupItem(_ref) {
74
74
  showToolTip = _ref$showToolTip === void 0 ? false : _ref$showToolTip,
75
75
  wrapText = _ref.wrapText,
76
76
  buttonRef = _ref.buttonRef,
77
+ toolTipText = _ref.toolTipText,
77
78
  rest = _objectWithoutProperties(_ref, _excluded);
78
79
 
79
80
  var isHrefValid = !href || validateHref(href);
@@ -175,7 +176,7 @@ export var EuiListGroupItem = function EuiListGroupItem(_ref) {
175
176
  className: classes
176
177
  }, ___EmotionJSX(EuiToolTip, {
177
178
  anchorClassName: "euiListGroupItem__tooltip",
178
- content: label,
179
+ content: toolTipText !== null && toolTipText !== void 0 ? toolTipText : label,
179
180
  position: "right",
180
181
  delay: "long"
181
182
  }, itemContent));
@@ -318,5 +319,11 @@ EuiListGroupItem.propTypes = {
318
319
  * Pass-through ref reference specifically for targeting
319
320
  * instances where the item content is rendered as a `button`
320
321
  */
321
- buttonRef: PropTypes.any
322
+ buttonRef: PropTypes.any,
323
+
324
+ /**
325
+ * Text to be displayed in the tooltip when `showToolTip` is true.
326
+ * By default the text will be same as the label text.
327
+ */
328
+ toolTipText: PropTypes.string
322
329
  };
@@ -252,6 +252,12 @@ EuiPinnableListGroup.propTypes = {
252
252
  */
253
253
  buttonRef: PropTypes.any,
254
254
 
255
+ /**
256
+ * Text to be displayed in the tooltip when `showToolTip` is true.
257
+ * By default the text will be same as the label text.
258
+ */
259
+ toolTipText: PropTypes.string,
260
+
255
261
  /**
256
262
  * Saves the pinned status and changes the visibility of the pin icon
257
263
  */
@@ -362,7 +368,13 @@ EuiPinnableListGroup.propTypes = {
362
368
  * Pass-through ref reference specifically for targeting
363
369
  * instances where the item content is rendered as a `button`
364
370
  */
365
- buttonRef: PropTypes.any
371
+ buttonRef: PropTypes.any,
372
+
373
+ /**
374
+ * Text to be displayed in the tooltip when `showToolTip` is true.
375
+ * By default the text will be same as the label text.
376
+ */
377
+ toolTipText: PropTypes.string
366
378
  }).isRequired)]),
367
379
 
368
380
  /**
@@ -77,9 +77,7 @@ export var EuiModal = function EuiModal(_ref) {
77
77
  color: "text",
78
78
  "aria-label": closeModal
79
79
  });
80
- }), ___EmotionJSX("div", {
81
- className: "euiModal__flex"
82
- }, children))));
80
+ }), children)));
83
81
  };
84
82
  EuiModal.propTypes = {
85
83
  className: PropTypes.string,
@@ -65,7 +65,7 @@ export var EuiMutationObserver = /*#__PURE__*/function (_EuiObserver) {
65
65
  }(EuiObserver);
66
66
 
67
67
  var makeMutationObserver = function makeMutationObserver(node, _observerOptions, callback) {
68
- // IE11 and the MutationObserver polyfill used in Kibana (for Jest) implement
68
+ // The MutationObserver polyfill used in Kibana (for Jest) implements
69
69
  // an older spec in which specifying `attributeOldValue` or `attributeFilter`
70
70
  // without specifying `attributes` results in a `SyntaxError`.
71
71
  // The following logic patches the newer spec in which `attributes: true` can be
@@ -64,13 +64,17 @@ export var EuiPageSidebar = function EuiPageSidebar(_ref) {
64
64
  setInlineStyles = _useState2[1];
65
65
 
66
66
  useEffect(function () {
67
+ var updatedStyles = _objectSpread(_objectSpread({}, style), logicalStyle('min-width', isResponding ? '100%' : minWidth));
68
+
67
69
  if (sticky) {
68
70
  var _document$body$datase;
69
71
 
70
72
  var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
71
73
  var offset = _typeof(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
72
- setInlineStyles(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, style), logicalStyle('min-width', isResponding ? '100%' : minWidth)), logicalStyle('top', offset)), logicalStyle('max-height', "calc(100vh - ".concat(offset, "px)"))));
74
+ updatedStyles = _objectSpread(_objectSpread(_objectSpread({}, updatedStyles), logicalStyle('top', offset)), logicalStyle('max-height', "calc(100vh - ".concat(offset, "px)")));
73
75
  }
76
+
77
+ setInlineStyles(updatedStyles);
74
78
  }, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
75
79
  return ___EmotionJSX("div", _extends({
76
80
  className: className,
@@ -203,9 +203,8 @@ EuiTableRowCell.propTypes = {
203
203
  showOnHover: PropTypes.bool,
204
204
 
205
205
  /**
206
- * Setting `textOnly` to `false` will break words unnecessarily on FF and
207
- * IE. To combat this problem on FF, wrap contents with the css utility
208
- * `.eui-textBreakWord`.
206
+ * Creates a text wrapper around cell content that helps word break or truncate
207
+ * long text correctly.
209
208
  */
210
209
  textOnly: PropTypes.bool,
211
210
 
@@ -226,9 +225,8 @@ EuiTableRowCell.propTypes = {
226
225
  showOnHover: PropTypes.bool,
227
226
 
228
227
  /**
229
- * Setting `textOnly` to `false` will break words unnecessarily on FF and
230
- * IE. To combat this problem on FF, wrap contents with the css utility
231
- * `.eui-textBreakWord`.
228
+ * Creates a text wrapper around cell content that helps word break or truncate
229
+ * long text correctly.
232
230
  */
233
231
  textOnly: PropTypes.bool,
234
232
 
@@ -136,24 +136,6 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
136
136
  }
137
137
 
138
138
  _createClass(EuiTabbedContent, [{
139
- key: "componentDidMount",
140
- value: function componentDidMount() {
141
- // IE11 doesn't support the `relatedTarget` event property for blur events
142
- // but does add it for focusout. React doesn't support `onFocusOut` so here we are.
143
- if (this.tabsRef.current) {
144
- // Current short-term solution for event listener (see https://github.com/elastic/eui/pull/2717)
145
- this.tabsRef.current.addEventListener('focusout', this.removeFocus);
146
- }
147
- }
148
- }, {
149
- key: "componentWillUnmount",
150
- value: function componentWillUnmount() {
151
- if (this.tabsRef.current) {
152
- // Current short-term solution for event listener (see https://github.com/elastic/eui/pull/2717)
153
- this.tabsRef.current.removeEventListener('focusout', this.removeFocus);
154
- }
155
- }
156
- }, {
157
139
  key: "render",
158
140
  value: function render() {
159
141
  var _this2 = this;
@@ -182,7 +164,8 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
182
164
  ref: this.tabsRef,
183
165
  expand: expand,
184
166
  size: size,
185
- onFocus: this.initializeFocus
167
+ onFocus: this.initializeFocus,
168
+ onBlur: this.removeFocus
186
169
  }, tabs.map(function (tab) {
187
170
  var id = tab.id,
188
171
  name = tab.name,
@@ -0,0 +1,56 @@
1
+ {
2
+ "height": "block-size",
3
+ "width": "inline-size",
4
+ "max-height": "max-block-size",
5
+ "max-width": "max-inline-size",
6
+ "min-height": "min-block-size",
7
+ "min-width": "min-inline-size",
8
+ "top": "inset-block-start",
9
+ "right": "inset-inline-end",
10
+ "bottom": "inset-block-end",
11
+ "left": "inset-inline-start",
12
+ "horizontal": "inset-block",
13
+ "vertical": "inset-inline",
14
+ "margin-left": "margin-inline-start",
15
+ "margin-right": "margin-inline-end",
16
+ "margin-top": "margin-block-start",
17
+ "margin-bottom": "margin-block-end",
18
+ "margin-horizontal": "margin-inline",
19
+ "margin-vertical": "margin-block",
20
+ "padding-left": "padding-inline-start",
21
+ "padding-right": "padding-inline-end",
22
+ "padding-top": "padding-block-start",
23
+ "padding-bottom": "padding-block-end",
24
+ "padding-horizontal": "padding-inline",
25
+ "padding-vertical": "padding-block",
26
+ "overflow-x": "overflow-inline",
27
+ "overflow-y": "overflow-block",
28
+ "border-horizontal": "border-inline",
29
+ "border-horizontal-color": "border-inline-color",
30
+ "border-horizontal-width": "border-inline-width",
31
+ "border-horizontal-style": "border-inline-style",
32
+ "border-vertical": "border-block",
33
+ "border-vertical-color": "border-block-color",
34
+ "border-vertical-width": "border-block-width",
35
+ "border-vertical-style": "border-block-style",
36
+ "border-bottom": "border-block-end",
37
+ "border-bottom-color": "border-block-end-color",
38
+ "border-bottom-style": "border-block-end-style",
39
+ "border-bottom-width": "border-block-end-width",
40
+ "border-top": "border-block-start",
41
+ "border-top-color": "border-block-start-color",
42
+ "border-top-style": "border-block-start-style",
43
+ "border-top-width": "border-block-start-width",
44
+ "border-right": "border-inline-end",
45
+ "border-right-color": "border-inline-end-color",
46
+ "border-right-style": "border-inline-end-style",
47
+ "border-right-width": "border-inline-end-width",
48
+ "border-left": "border-inline-start",
49
+ "border-left-color": "border-inline-start-color",
50
+ "border-left-style": "border-inline-start-style",
51
+ "border-left-width": "border-inline-start-width",
52
+ "border-top-left-radius": "border-start-start-radius",
53
+ "border-top-right-radius": "border-start-end-radius",
54
+ "border-bottom-left-radius": "border-end-start-radius",
55
+ "border-bottom-right-radius": "border-end-end-radius"
56
+ }
@@ -29,7 +29,7 @@ export var useEuiFontSize = function useEuiFontSize(scale, options) {
29
29
  */
30
30
 
31
31
  export var euiTextBreakWord = function euiTextBreakWord() {
32
- return "\n overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container\n word-wrap: break-word !important; // spec says, they are literally just alternate names for each other but some browsers support one and not the other\n word-break: break-word; // IE doesn't understand but that's ok\n";
32
+ return "\n overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container\n word-break: break-word;\n";
33
33
  };
34
34
  /**
35
35
  * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.