@elastic/eui 62.0.3 → 62.2.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 (306) hide show
  1. package/dist/eui_theme_dark.css +1 -783
  2. package/dist/eui_theme_dark.json +0 -57
  3. package/dist/eui_theme_dark.json.d.ts +0 -57
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +1 -783
  6. package/dist/eui_theme_light.json +0 -57
  7. package/dist/eui_theme_light.json.d.ts +0 -57
  8. package/dist/eui_theme_light.min.css +1 -1
  9. package/es/components/breadcrumbs/breadcrumb.js +199 -0
  10. package/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  11. package/es/components/breadcrumbs/breadcrumbs.js +115 -187
  12. package/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  13. package/es/components/code/code_block.js +119 -107
  14. package/es/components/collapsible_nav/collapsible_nav.js +2 -2
  15. package/es/components/control_bar/control_bar.js +13 -0
  16. package/es/components/datagrid/body/data_grid_body.js +12 -2
  17. package/es/components/datagrid/body/data_grid_cell.js +31 -3
  18. package/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
  19. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  20. package/es/components/datagrid/data_grid.js +10 -2
  21. package/es/components/datagrid/utils/row_heights.js +33 -4
  22. package/es/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  23. package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  24. package/es/components/description_list/description_list.js +22 -26
  25. package/es/components/description_list/description_list.styles.js +25 -0
  26. package/es/components/description_list/description_list_context.js +14 -0
  27. package/es/components/description_list/description_list_description.js +43 -2
  28. package/es/components/description_list/description_list_description.styles.js +47 -0
  29. package/es/components/description_list/description_list_title.js +43 -2
  30. package/es/components/description_list/description_list_title.styles.js +37 -0
  31. package/es/components/description_list/description_list_types.js +10 -0
  32. package/es/components/header/header.js +1 -27
  33. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +22 -2
  34. package/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  35. package/es/components/header/header_links/header_links.js +9 -9
  36. package/es/components/icon/assets/tokenStruct.js +1 -1
  37. package/es/components/page/page_header/page_header.js +1 -0
  38. package/es/components/page/page_header/page_header_content.js +2 -1
  39. package/es/components/page/page_template.js +1 -0
  40. package/es/components/pagination/pagination.js +1 -1
  41. package/es/components/panel/split_panel/split_panel.js +2 -2
  42. package/es/components/provider/provider.js +2 -2
  43. package/es/components/responsive/hide_for.js +6 -38
  44. package/es/components/responsive/show_for.js +6 -38
  45. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +17 -36
  46. package/es/components/side_nav/side_nav.js +1 -1
  47. package/es/components/table/table_row_cell.js +1 -2
  48. package/es/components/toast/global_toast_list.js +208 -241
  49. package/es/components/toast/global_toast_list.styles.js +38 -0
  50. package/es/components/toast/global_toast_list_item.js +12 -7
  51. package/es/components/toast/toast.js +25 -25
  52. package/es/components/toast/toast.styles.js +55 -0
  53. package/es/components/token/index.js +2 -1
  54. package/es/components/token/token.js +48 -112
  55. package/es/components/token/token.styles.js +93 -0
  56. package/es/components/token/token_map.js +6 -9
  57. package/es/components/token/token_types.js +11 -0
  58. package/es/global_styling/reset/global_styles.js +1 -1
  59. package/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  60. package/es/services/{hooks/useIsWithinBreakpoints.js → breakpoint/current_breakpoint.js} +26 -28
  61. package/es/services/breakpoint/current_breakpoint_hook.js +20 -0
  62. package/es/services/breakpoint/index.js +11 -0
  63. package/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  64. package/es/services/hooks/index.js +0 -1
  65. package/es/services/index.js +1 -1
  66. package/es/test/rtl/component_helpers.js +60 -1
  67. package/eui.d.ts +1704 -1475
  68. package/i18ntokens.json +36 -36
  69. package/lib/components/breadcrumbs/breadcrumb.js +225 -0
  70. package/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  71. package/lib/components/breadcrumbs/breadcrumbs.js +125 -188
  72. package/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  73. package/lib/components/code/code_block.js +118 -106
  74. package/lib/components/collapsible_nav/collapsible_nav.js +2 -2
  75. package/lib/components/control_bar/control_bar.js +13 -0
  76. package/lib/components/datagrid/body/data_grid_body.js +12 -2
  77. package/lib/components/datagrid/body/data_grid_cell.js +31 -3
  78. package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
  79. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  80. package/lib/components/datagrid/data_grid.js +10 -2
  81. package/lib/components/datagrid/utils/row_heights.js +33 -4
  82. package/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  83. package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  84. package/lib/components/description_list/description_list.js +25 -31
  85. package/lib/components/description_list/description_list.styles.js +36 -0
  86. package/lib/components/description_list/description_list_context.js +24 -0
  87. package/lib/components/description_list/description_list_description.js +52 -2
  88. package/lib/components/description_list/description_list_description.styles.js +51 -0
  89. package/lib/components/description_list/description_list_title.js +52 -2
  90. package/lib/components/description_list/description_list_title.styles.js +50 -0
  91. package/lib/components/description_list/description_list_types.js +20 -0
  92. package/lib/components/header/header.js +1 -27
  93. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  94. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  95. package/lib/components/header/header_links/header_links.js +8 -8
  96. package/lib/components/icon/assets/tokenStruct.js +1 -1
  97. package/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  98. package/lib/components/page/page_header/page_header.js +1 -0
  99. package/lib/components/page/page_header/page_header_content.js +3 -2
  100. package/lib/components/page/page_template.js +1 -0
  101. package/lib/components/pagination/pagination.js +1 -1
  102. package/lib/components/panel/split_panel/split_panel.js +3 -3
  103. package/lib/components/provider/provider.js +1 -1
  104. package/lib/components/responsive/hide_for.js +12 -44
  105. package/lib/components/responsive/show_for.js +12 -44
  106. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  107. package/lib/components/side_nav/side_nav.js +1 -1
  108. package/lib/components/table/table_row_cell.js +1 -3
  109. package/lib/components/toast/global_toast_list.js +209 -238
  110. package/lib/components/toast/global_toast_list.styles.js +45 -0
  111. package/lib/components/toast/global_toast_list_item.js +14 -7
  112. package/lib/components/toast/toast.js +27 -25
  113. package/lib/components/toast/toast.styles.js +66 -0
  114. package/lib/components/token/index.js +5 -3
  115. package/lib/components/token/token.js +50 -120
  116. package/lib/components/token/token.styles.js +101 -0
  117. package/lib/components/token/token_map.js +6 -9
  118. package/lib/components/token/token_types.js +22 -0
  119. package/lib/global_styling/reset/global_styles.js +1 -1
  120. package/{test-env/services → lib/services/breakpoint}/breakpoint.js +5 -9
  121. package/lib/services/breakpoint/current_breakpoint.js +69 -0
  122. package/lib/services/breakpoint/current_breakpoint_hook.js +31 -0
  123. package/lib/services/breakpoint/index.js +57 -0
  124. package/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  125. package/lib/services/hooks/index.js +0 -13
  126. package/lib/services/index.js +28 -0
  127. package/lib/test/rtl/component_helpers.js +69 -3
  128. package/optimize/es/components/breadcrumbs/breadcrumb.js +136 -0
  129. package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  130. package/optimize/es/components/breadcrumbs/breadcrumbs.js +92 -165
  131. package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  132. package/optimize/es/components/code/code_block.js +106 -107
  133. package/optimize/es/components/datagrid/body/data_grid_body.js +2 -0
  134. package/optimize/es/components/datagrid/body/data_grid_cell.js +13 -1
  135. package/optimize/es/components/datagrid/utils/row_heights.js +33 -4
  136. package/optimize/es/components/description_list/description_list.js +20 -24
  137. package/optimize/es/components/description_list/description_list.styles.js +25 -0
  138. package/optimize/es/components/description_list/description_list_context.js +14 -0
  139. package/optimize/es/components/description_list/description_list_description.js +32 -2
  140. package/optimize/es/components/description_list/description_list_description.styles.js +47 -0
  141. package/optimize/es/components/description_list/description_list_title.js +32 -2
  142. package/optimize/es/components/description_list/description_list_title.styles.js +37 -0
  143. package/optimize/es/components/description_list/description_list_types.js +10 -0
  144. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +8 -1
  145. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  146. package/optimize/es/components/header/header_links/header_links.js +8 -8
  147. package/optimize/es/components/icon/assets/tokenStruct.js +1 -1
  148. package/optimize/es/components/page/page_header/page_header_content.js +1 -1
  149. package/optimize/es/components/panel/split_panel/split_panel.js +1 -1
  150. package/optimize/es/components/provider/provider.js +2 -2
  151. package/optimize/es/components/responsive/hide_for.js +5 -27
  152. package/optimize/es/components/responsive/show_for.js +5 -27
  153. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -35
  154. package/optimize/es/components/table/table_row_cell.js +1 -2
  155. package/optimize/es/components/toast/global_toast_list.js +199 -230
  156. package/optimize/es/components/toast/global_toast_list.styles.js +38 -0
  157. package/optimize/es/components/toast/global_toast_list_item.js +11 -6
  158. package/optimize/es/components/toast/toast.js +24 -24
  159. package/optimize/es/components/toast/toast.styles.js +55 -0
  160. package/optimize/es/components/token/index.js +2 -1
  161. package/optimize/es/components/token/token.js +46 -69
  162. package/optimize/es/components/token/token.styles.js +83 -0
  163. package/optimize/es/components/token/token_map.js +6 -9
  164. package/optimize/es/components/token/token_types.js +11 -0
  165. package/optimize/es/global_styling/reset/global_styles.js +1 -1
  166. package/optimize/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  167. package/optimize/es/services/breakpoint/current_breakpoint.js +44 -0
  168. package/optimize/es/services/breakpoint/current_breakpoint_hook.js +20 -0
  169. package/optimize/es/services/breakpoint/index.js +11 -0
  170. package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  171. package/optimize/es/services/hooks/index.js +0 -1
  172. package/optimize/es/services/index.js +1 -1
  173. package/optimize/es/test/rtl/component_helpers.js +60 -1
  174. package/optimize/lib/components/breadcrumbs/breadcrumb.js +162 -0
  175. package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  176. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +99 -164
  177. package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  178. package/optimize/lib/components/code/code_block.js +105 -106
  179. package/optimize/lib/components/datagrid/body/data_grid_body.js +2 -0
  180. package/optimize/lib/components/datagrid/body/data_grid_cell.js +13 -1
  181. package/optimize/lib/components/datagrid/utils/row_heights.js +33 -4
  182. package/optimize/lib/components/description_list/description_list.js +23 -28
  183. package/optimize/lib/components/description_list/description_list.styles.js +36 -0
  184. package/optimize/lib/components/description_list/description_list_context.js +24 -0
  185. package/optimize/lib/components/description_list/description_list_description.js +43 -2
  186. package/optimize/lib/components/description_list/description_list_description.styles.js +51 -0
  187. package/optimize/lib/components/description_list/description_list_title.js +43 -2
  188. package/optimize/lib/components/description_list/description_list_title.styles.js +50 -0
  189. package/optimize/lib/components/description_list/description_list_types.js +20 -0
  190. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +10 -1
  191. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  192. package/optimize/lib/components/header/header_links/header_links.js +7 -7
  193. package/optimize/lib/components/icon/assets/tokenStruct.js +1 -1
  194. package/optimize/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  195. package/optimize/lib/components/page/page_header/page_header_content.js +2 -2
  196. package/optimize/lib/components/panel/split_panel/split_panel.js +2 -2
  197. package/optimize/lib/components/provider/provider.js +1 -1
  198. package/optimize/lib/components/responsive/hide_for.js +4 -33
  199. package/optimize/lib/components/responsive/show_for.js +4 -33
  200. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +14 -34
  201. package/optimize/lib/components/table/table_row_cell.js +1 -3
  202. package/optimize/lib/components/toast/global_toast_list.js +206 -220
  203. package/optimize/lib/components/toast/global_toast_list.styles.js +47 -0
  204. package/optimize/lib/components/toast/global_toast_list_item.js +14 -7
  205. package/optimize/lib/components/toast/toast.js +26 -24
  206. package/optimize/lib/components/toast/toast.styles.js +66 -0
  207. package/optimize/lib/components/token/index.js +5 -3
  208. package/optimize/lib/components/token/token.js +50 -76
  209. package/optimize/lib/components/token/token.styles.js +91 -0
  210. package/optimize/lib/components/token/token_map.js +6 -9
  211. package/optimize/lib/components/token/token_types.js +22 -0
  212. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  213. package/optimize/lib/services/{breakpoint.js → breakpoint/breakpoint.js} +5 -9
  214. package/optimize/lib/services/breakpoint/current_breakpoint.js +68 -0
  215. package/optimize/lib/services/breakpoint/current_breakpoint_hook.js +31 -0
  216. package/optimize/lib/services/breakpoint/index.js +57 -0
  217. package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  218. package/optimize/lib/services/hooks/index.js +0 -13
  219. package/optimize/lib/services/index.js +28 -0
  220. package/optimize/lib/test/rtl/component_helpers.js +69 -3
  221. package/package.json +2 -2
  222. package/src/components/control_bar/_control_bar.scss +1 -1
  223. package/src/components/header/_index.scss +0 -1
  224. package/src/components/index.scss +0 -5
  225. package/src/themes/amsterdam/overrides/_breadcrumbs.scss +0 -12
  226. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  227. package/test-env/components/breadcrumbs/breadcrumb.js +211 -0
  228. package/test-env/components/breadcrumbs/breadcrumb.styles.js +68 -0
  229. package/test-env/components/breadcrumbs/breadcrumbs.js +122 -174
  230. package/test-env/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  231. package/test-env/components/collapsible_nav/collapsible_nav.js +2 -2
  232. package/test-env/components/control_bar/control_bar.js +13 -0
  233. package/test-env/components/datagrid/body/data_grid_body.js +12 -2
  234. package/test-env/components/datagrid/body/data_grid_cell.js +31 -3
  235. package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
  236. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  237. package/test-env/components/datagrid/data_grid.js +10 -2
  238. package/test-env/components/datagrid/utils/row_heights.js +33 -4
  239. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  240. package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
  241. package/test-env/components/description_list/description_list.js +25 -30
  242. package/test-env/components/description_list/description_list.styles.js +36 -0
  243. package/test-env/components/description_list/description_list_context.js +24 -0
  244. package/test-env/components/description_list/description_list_description.js +43 -2
  245. package/test-env/components/description_list/description_list_description.styles.js +51 -0
  246. package/test-env/components/description_list/description_list_title.js +43 -2
  247. package/test-env/components/description_list/description_list_title.styles.js +50 -0
  248. package/test-env/components/description_list/description_list_types.js +20 -0
  249. package/test-env/components/header/header.js +1 -27
  250. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  251. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  252. package/test-env/components/header/header_links/header_links.js +8 -8
  253. package/test-env/components/icon/assets/tokenStruct.js +1 -1
  254. package/test-env/components/observer/resize_observer/resize_observer.js +43 -126
  255. package/test-env/components/page/page_header/page_header.js +1 -0
  256. package/test-env/components/page/page_header/page_header_content.js +3 -2
  257. package/test-env/components/page/page_template.js +1 -0
  258. package/test-env/components/pagination/pagination.js +1 -1
  259. package/test-env/components/panel/split_panel/split_panel.js +3 -3
  260. package/test-env/components/provider/provider.js +1 -1
  261. package/test-env/components/responsive/hide_for.js +5 -34
  262. package/test-env/components/responsive/show_for.js +5 -34
  263. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  264. package/test-env/components/side_nav/side_nav.js +1 -1
  265. package/test-env/components/table/table_row_cell.js +1 -3
  266. package/test-env/components/toast/global_toast_list.js +206 -220
  267. package/test-env/components/toast/global_toast_list.styles.js +47 -0
  268. package/test-env/components/toast/global_toast_list_item.js +14 -7
  269. package/test-env/components/toast/toast.js +27 -25
  270. package/test-env/components/toast/toast.styles.js +66 -0
  271. package/test-env/components/token/index.js +5 -3
  272. package/test-env/components/token/token.js +51 -120
  273. package/test-env/components/token/token.styles.js +91 -0
  274. package/test-env/components/token/token_map.js +6 -9
  275. package/test-env/components/token/token_types.js +22 -0
  276. package/test-env/global_styling/reset/global_styles.js +1 -1
  277. package/{lib/services → test-env/services/breakpoint}/breakpoint.js +5 -9
  278. package/test-env/services/breakpoint/current_breakpoint.js +68 -0
  279. package/test-env/services/breakpoint/current_breakpoint_hook.js +33 -0
  280. package/test-env/services/breakpoint/index.js +57 -0
  281. package/test-env/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  282. package/test-env/services/hooks/index.js +0 -13
  283. package/test-env/services/index.js +28 -0
  284. package/test-env/test/rtl/component_helpers.js +69 -3
  285. package/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  286. package/optimize/es/services/hooks/useIsWithinBreakpoints.js +0 -46
  287. package/optimize/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  288. package/src/components/breadcrumbs/_breadcrumbs.scss +0 -79
  289. package/src/components/breadcrumbs/_index.scss +0 -2
  290. package/src/components/breadcrumbs/_variables.scss +0 -2
  291. package/src/components/description_list/_description_list.scss +0 -211
  292. package/src/components/description_list/_index.scss +0 -1
  293. package/src/components/header/header_breadcrumbs/_header_breadcrumbs.scss +0 -8
  294. package/src/components/header/header_breadcrumbs/_index.scss +0 -1
  295. package/src/components/portal/_index.scss +0 -1
  296. package/src/components/portal/_portal.scss +0 -6
  297. package/src/components/toast/_global_toast_list.scss +0 -90
  298. package/src/components/toast/_index.scss +0 -4
  299. package/src/components/toast/_toast.scss +0 -103
  300. package/src/components/token/_index.scss +0 -2
  301. package/src/components/token/_token.scss +0 -85
  302. package/src/components/token/_variables.scss +0 -13
  303. package/src/themes/amsterdam/overrides/_header_breadcrumbs.scss +0 -71
  304. package/src/themes/amsterdam/overrides/_toast.scss +0 -21
  305. package/src/themes/amsterdam/overrides/_token.scss +0 -4
  306. package/test-env/services/hooks/useIsWithinBreakpoints.js +0 -57
@@ -1,211 +0,0 @@
1
- .euiDescriptionList {
2
- // sass-lint:disable-block nesting-depth
3
-
4
- &.euiDescriptionList--row {
5
-
6
- .euiDescriptionList__title {
7
- @include euiTitle('xs');
8
- line-height: $euiLineHeight;
9
- margin-top: $euiSize;
10
-
11
- // Make sure the first <dt> doesn't get a margin.
12
- &:first-of-type {
13
- margin-top: 0;
14
- }
15
- }
16
-
17
- .euiDescriptionList__description {
18
- @include euiFontSizeS;
19
- }
20
-
21
- // Lists can be aligned.
22
- &.euiDescriptionList--center {
23
- text-align: center;
24
- }
25
-
26
- // Reversed makes the description larger than the title
27
- &.euiDescriptionList--reverse {
28
- .euiDescriptionList__title {
29
- @include euiText;
30
- @include euiFontSizeS;
31
- }
32
-
33
- .euiDescriptionList__description {
34
- @include euiTitle('xs');
35
- }
36
- }
37
-
38
- // Compressed gets smaller fonts.
39
- &.euiDescriptionList--compressed {
40
-
41
- .euiDescriptionList__title {
42
- @include euiTitle('xxs');
43
- line-height: $euiLineHeight;
44
- }
45
-
46
- .euiDescriptionList__description {
47
- @include euiFontSizeS;
48
- }
49
-
50
- &.euiDescriptionList--reverse {
51
- .euiDescriptionList__title {
52
- @include euiText;
53
- @include euiFontSizeS;
54
- }
55
-
56
- .euiDescriptionList__description {
57
- @include euiTitle('xxs');
58
- line-height: $euiLineHeight;
59
- }
60
- }
61
- }
62
- }
63
-
64
-
65
- &.euiDescriptionList--column,
66
- &.euiDescriptionList--responsiveColumn {
67
- display: flex;
68
- align-items: stretch;
69
- flex-wrap: wrap;
70
-
71
- > * {
72
- margin-top: $euiSize;
73
- }
74
-
75
- // First two items don't have margin
76
- > *:first-child,
77
- > :nth-child(2) {
78
- margin-top: 0;
79
- }
80
-
81
- .euiDescriptionList__title {
82
- @include euiTitle('xs');
83
- line-height: $euiLineHeight;
84
- width: 50%; // Flex-basis doesn't work in IE with padding
85
- padding-right: $euiSizeS;
86
- }
87
-
88
- .euiDescriptionList__description {
89
- @include euiFontSize;
90
- width: 50%; // Flex-basis doesn't work in IE with padding
91
- padding-left: $euiSizeS;
92
- }
93
-
94
- // Align the title to smash against the description.
95
- &.euiDescriptionList--center {
96
- .euiDescriptionList__title {
97
- text-align: right;
98
- }
99
- }
100
-
101
- &.euiDescriptionList--reverse {
102
- .euiDescriptionList__title {
103
- @include euiText;
104
- @include euiFontSize;
105
- }
106
-
107
- .euiDescriptionList__description {
108
- @include euiTitle('xs');
109
- line-height: $euiLineHeight;
110
- }
111
- }
112
-
113
- &.euiDescriptionList--compressed {
114
- .euiDescriptionList__title {
115
- @include euiTitle('xxs');
116
- line-height: $euiLineHeight;
117
- }
118
-
119
- .euiDescriptionList__description {
120
- @include euiFontSizeS;
121
- }
122
-
123
- &.euiDescriptionList--reverse {
124
- .euiDescriptionList__title {
125
- @include euiText;
126
- @include euiFontSizeS;
127
- }
128
-
129
- .euiDescriptionList__description {
130
- @include euiTitle('xxs');
131
- line-height: $euiLineHeight;
132
- }
133
- }
134
- }
135
- }
136
-
137
- &.euiDescriptionList--responsiveColumn {
138
- @include euiBreakpoint('xs', 's') {
139
- display: block;
140
-
141
- .euiDescriptionList__title,
142
- .euiDescriptionList__description {
143
- width: 100%;
144
- padding: 0;
145
- }
146
-
147
- .euiDescriptionList__description {
148
- @include euiFontSizeS;
149
- margin-top: 0;
150
- }
151
-
152
- &.euiDescriptionList--center {
153
- .euiDescriptionList__title,
154
- .euiDescriptionList__description {
155
- text-align: center;
156
- }
157
- }
158
-
159
- &.euiDescriptionList--reverse {
160
- .euiDescriptionList__title {
161
- @include euiFontSizeS;
162
- }
163
-
164
- .euiDescriptionList__description {
165
- @include euiTitle('xs');
166
- }
167
- }
168
- }
169
- }
170
-
171
- &.euiDescriptionList--inline {
172
-
173
- .euiDescriptionList__title {
174
- @include euiFontSizeS;
175
- display: inline;
176
- border-radius: $euiBorderRadiusSmall;
177
- font-weight: $euiFontWeightMedium;
178
- background-color: tintOrShade($euiColorLightShade, 50%, 0%);
179
- padding: 1px $euiSizeXS;
180
- margin: 0 $euiSizeXS;
181
-
182
- // Make sure the first <dt> doesn't get a margin.
183
- &:first-of-type {
184
- margin-left: 0;
185
- }
186
- }
187
-
188
- .euiDescriptionList__description {
189
- @include euiFontSizeS;
190
- display: inline;
191
- }
192
-
193
- // Compressed when inline is even smaller.
194
- &.euiDescriptionList--compressed {
195
-
196
- .euiDescriptionList__title {
197
- @include euiFontSizeXS;
198
- padding: 0 $euiSizeXS;
199
- }
200
-
201
- .euiDescriptionList__description {
202
- @include euiFontSizeXS;
203
- }
204
- }
205
-
206
- &.euiDescriptionList--center {
207
- text-align: center;
208
- }
209
- }
210
-
211
- }
@@ -1 +0,0 @@
1
- @import 'description_list';
@@ -1,8 +0,0 @@
1
- .euiHeaderBreadcrumbs {
2
- @include euiTextTruncate;
3
- margin-left: $euiSizeM;
4
- margin-right: $euiSizeM;
5
- display: flex;
6
- align-items: center;
7
- flex-grow: 1;
8
- }
@@ -1 +0,0 @@
1
- @import 'header_breadcrumbs';
@@ -1 +0,0 @@
1
- @import 'portal';
@@ -1,6 +0,0 @@
1
- /**
2
- * 1. Portal content is absolutely positioned (e.g. tooltips, popovers, flyouts).
3
- */
4
- .euiBody-hasPortalContent {
5
- position: relative; /* 1 */
6
- }
@@ -1,90 +0,0 @@
1
- /**
2
- * 1. Allow list to expand as items are added, but cap it at the screen height.
3
- * 2. Allow some padding for shadow
4
- */
5
- .euiGlobalToastList {
6
- @include euiScrollBar;
7
- display: flex;
8
- flex-direction: column;
9
- align-items: stretch;
10
- position: fixed;
11
- z-index: $euiZToastList;
12
- bottom: 0;
13
- width: $euiToastWidth + ($euiSize * 5); /* 2 */
14
- max-height: 100vh; /* 1 */
15
- overflow-y: auto;
16
-
17
- // Hide the scrollbar entirely
18
- // sass-lint:disable-block no-misspelled-properties
19
- scrollbar-width: none;
20
-
21
- // sass-lint:disable-block no-vendor-prefixes
22
- &::-webkit-scrollbar {
23
- width: 0;
24
- height: 0;
25
- }
26
-
27
- // The top and bottom padding give height to the list creating a dead-zone effect
28
- // when there's no toasts in the list, meaning you can't click anything beneath it.
29
- // Only add the padding if there's content.
30
- &:not(:empty) {
31
- padding: $euiSize;
32
- }
33
- }
34
-
35
- .euiGlobalToastList--right:not(:empty) {
36
- right: 0;
37
- padding-left: $euiSize * 4; /* 2 */
38
- }
39
-
40
- .euiGlobalToastList--left:not(:empty) {
41
- left: 0;
42
- padding-right: $euiSize * 4; /* 2 */
43
- }
44
-
45
- .euiGlobalToastListItem {
46
- margin-bottom: $euiSize;
47
- animation: $euiAnimSpeedNormal euiShowToast $euiAnimSlightResistance;
48
- opacity: 1;
49
-
50
- /**
51
- * 1. justify-content: flex-end interferes with overflowing content, so we'll use this to push
52
- * items to the bottom instead.
53
- */
54
- &:first-child {
55
- margin-top: auto; /* 1 */
56
- }
57
-
58
- &:last-child {
59
- margin-bottom: 0;
60
- }
61
-
62
- &.euiGlobalToastListItem-isDismissed {
63
- transition: opacity $euiAnimSpeedNormal;
64
- opacity: 0;
65
- }
66
- }
67
-
68
- @keyframes euiShowToast {
69
- from {
70
- transform: translateY($euiSizeL) scale(.9);
71
- opacity: 0;
72
- }
73
-
74
- to {
75
- transform: translateY(0) scale(1);
76
- opacity: 1;
77
- }
78
- }
79
-
80
- @include euiBreakpoint('xs', 's') {
81
- /**
82
- * 1. Mobile we make these 100%. Matching change happens on the item as well.
83
- */
84
- .euiGlobalToastList:not(:empty) {
85
- left: 0;
86
- padding-left: $euiSize;
87
- padding-right: $euiSize;
88
- width: 100%; /* 1 */
89
- }
90
- }
@@ -1,4 +0,0 @@
1
- $euiToastWidth: $euiSize * 20;
2
-
3
- @import 'global_toast_list';
4
- @import 'toast';
@@ -1,103 +0,0 @@
1
- .euiToast {
2
- border: $euiBorderThin;
3
- // This overwrites some of the border above
4
- // sass-lint:disable-block mixins-before-declarations
5
- @include euiBottomShadowLarge;
6
-
7
- position: relative;
8
- padding: $euiSize;
9
- background-color: $euiColorEmptyShade;
10
- width: 100%;
11
-
12
- &:hover .euiToast__closeButton,
13
- &:focus .euiToast__closeButton {
14
- opacity: 1;
15
- }
16
- }
17
-
18
- /**
19
- * 1. Fit button to icon.
20
- */
21
- .euiToast__closeButton {
22
- position: absolute;
23
- top: $euiSize;
24
- right: $euiSize;
25
- line-height: 0; /* 1 */
26
- appearance: none;
27
- opacity: 0;
28
- transition: opacity $euiAnimSpeedFast $euiAnimSlightResistance;
29
-
30
- svg {
31
- fill: tintOrShade($euiTitleColor, 50%, 70%);
32
- }
33
-
34
- &:hover {
35
- svg {
36
- fill: $euiTitleColor;
37
- }
38
- }
39
-
40
- &:focus {
41
- background-color: $euiFocusBackgroundColor;
42
- opacity: 1;
43
-
44
- svg {
45
- fill: $euiColorPrimary;
46
- }
47
- }
48
- }
49
-
50
- // Modifier naming and colors.
51
- $euiToastTypes: (
52
- primary: makeGraphicContrastColor($euiColorPrimary, $euiColorEmptyShade),
53
- success: makeGraphicContrastColor($euiColorSuccess, $euiColorEmptyShade),
54
- warning: makeGraphicContrastColor($euiColorWarning, $euiColorEmptyShade),
55
- danger: makeGraphicContrastColor($euiColorDanger, $euiColorEmptyShade),
56
- );
57
-
58
- // Create button modifiers based upon the map.
59
- @each $name, $color in $euiToastTypes {
60
- .euiToast--#{$name} {
61
- border-top: 2px solid $color;
62
- }
63
- }
64
-
65
- /**
66
- * 1. Align icon with first line of title text if it wraps.
67
- * 2. Apply margin to all but last item in the flex.
68
- * 3. Account for close button.
69
- */
70
- .euiToastHeader {
71
- padding-right: $euiSizeL; /* 3 */
72
- display: flex;
73
- align-items: baseline; /* 1 */
74
-
75
- > * + * {
76
- margin-left: $euiSizeS; /* 2 */
77
- }
78
- }
79
-
80
- /**
81
- * 1. Vertically center icon with first line of title.
82
- */
83
- .euiToastHeader__icon {
84
- flex: 0 0 auto;
85
- fill: $euiTitleColor;
86
- transform: translateY(2px); /* 1 */
87
- }
88
-
89
- .euiToastHeader__title {
90
- @include euiTitle('xs');
91
- font-weight: $euiFontWeightLight;
92
- }
93
-
94
- .euiToastHeader--withBody {
95
- margin-bottom: $euiSizeS;
96
- }
97
-
98
- /**
99
- * 1. Prevent long lines from overflowing.
100
- */
101
- .euiToastBody {
102
- word-wrap: break-word; /* 1 */
103
- }
@@ -1,2 +0,0 @@
1
- @import 'variables';
2
- @import 'token';
@@ -1,85 +0,0 @@
1
- .euiToken {
2
- display: inline-flex;
3
- align-items: center;
4
- justify-content: center;
5
-
6
- svg {
7
- height: 100%;
8
- margin: auto;
9
- }
10
- }
11
-
12
- .euiToken--circle {
13
- border-radius: 50%;
14
- }
15
-
16
- .euiToken--square {
17
- // These are pretty small elements, the standard size
18
- // is just slightly too large.
19
- border-radius: $euiBorderRadius - 1px;
20
- }
21
-
22
- .euiToken--xsmall {
23
- width: $euiSizeM;
24
- height: $euiSizeM;
25
-
26
- &.euiToken--rectangle {
27
- padding: 0 $euiSizeXS;
28
- }
29
- }
30
-
31
- .euiToken--small {
32
- width: $euiSize;
33
- height: $euiSize;
34
-
35
- &.euiToken--rectangle {
36
- padding: 0 $euiSizeXS;
37
- }
38
- }
39
-
40
- .euiToken--medium {
41
- width: $euiSizeL;
42
- height: $euiSizeL;
43
-
44
- &.euiToken--rectangle {
45
- padding: 0 $euiSizeS;
46
- }
47
- }
48
-
49
- .euiToken--large {
50
- width: $euiSizeXL;
51
- height: $euiSizeXL;
52
-
53
- &.euiToken--rectangle {
54
- padding: 0 ($euiSize * .5);
55
- }
56
- }
57
-
58
- .euiToken--rectangle {
59
- box-sizing: content-box;
60
- }
61
-
62
- @each $type in $euiTokenTypeKeys {
63
- .euiToken--#{$type} {
64
- $color: map-get(map-get($euiTokenTypes, $type), 'graphic');
65
- $backgroundColor: tintOrShade($color, 90%, 70%);
66
- $fillColor: makeHighContrastColor($color, $backgroundColor);
67
-
68
- // Without a background, the fill color should be the graphic color
69
- color: $color;
70
-
71
- &.euiToken--light {
72
- color: $fillColor;
73
- background-color: $backgroundColor;
74
- box-shadow: inset 0 0 0 1px tintOrShade($color, 70%, 60%);
75
- }
76
-
77
- // Dark tokens uses the main color as the background against light or dark text
78
- $color: map-get(map-get($euiTokenTypes, $type), 'behindText');
79
-
80
- &.euiToken--dark {
81
- background-color: $color;
82
- color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
83
- }
84
- }
85
- }
@@ -1,13 +0,0 @@
1
- // sass-lint:disable indentation
2
-
3
- $euiTokenGrayColor: lightOrDarkTheme($euiColorDarkShade, $euiColorMediumShade);
4
-
5
- // Appends the gray color to the color blind palette
6
- $euiTokenTypes: map-merge($euiPaletteColorBlind, (
7
- 'gray': (
8
- graphic: $euiTokenGrayColor,
9
- behindText: $euiTokenGrayColor,
10
- )
11
- ));
12
-
13
- $euiTokenTypeKeys: map-keys($euiTokenTypes);
@@ -1,71 +0,0 @@
1
- // sass-lint:disable nesting-depth
2
-
3
- .euiHeaderBreadcrumbs {
4
- line-height: $euiSize;
5
- margin-left: $euiSizeS;
6
- margin-right: $euiSizeS;
7
-
8
- // Only the header breadcrumbs get the new Amsterdam style so that there can
9
- // still be default text only breadcrumbs for places like EuiControlBar
10
- .euiBreadcrumb__content {
11
- @include euiButtonDefaultStyle($euiTextColor);
12
- font-size: $euiFontSizeXS;
13
- line-height: $euiSize;
14
- font-weight: $euiFontWeightMedium;
15
- padding: $euiSizeXS $euiSize;
16
- clip-path: polygon(0 0, calc(100% - #{$euiSizeS}) 0, 100% 50%, calc(100% - #{$euiSizeS}) 100%, 0 100%, $euiSizeS 50%);
17
-
18
- &.euiLink {
19
- @include euiButtonDefaultStyle($euiColorPrimary);
20
-
21
- &:focus {
22
- @include euiFocusRing(null, 'inner');
23
-
24
- // Turn clip path off and add full border-radius when in focus so the focus ring looks correct.
25
- // This won't work in Safari, but that's ok
26
- &:focus-visible {
27
- border-radius: $euiBorderRadius;
28
- clip-path: none;
29
- }
30
- }
31
- }
32
- }
33
-
34
- .euiBreadcrumb {
35
- // Remove separator
36
- &::after {
37
- display: none;
38
- }
39
-
40
- &:not(.euiBreadcrumb--last) {
41
- margin-right: -$euiSizeXS;
42
- }
43
-
44
- &:first-child {
45
- .euiBreadcrumb__content {
46
- padding-left: $euiSizeM;
47
- border-radius: $euiBorderRadius 0 0 $euiBorderRadius;
48
- clip-path: polygon(0 0, calc(100% - #{$euiSizeS}) 0, 100% 50%, calc(100% - #{$euiSizeS}) 100%, 0 100%);
49
- }
50
- }
51
-
52
- // In case the item is first AND last, aka only, just make it a fully rounded item.
53
- // Needs to come after `:first-child` for specificity
54
- &:only-child {
55
- .euiBreadcrumb__content {
56
- clip-path: none;
57
- padding-left: $euiSizeM;
58
- padding-right: $euiSizeM;
59
- border-radius: $euiBorderRadius;
60
- }
61
- }
62
- }
63
-
64
- .euiBreadcrumb--last {
65
- .euiBreadcrumb__content {
66
- border-radius: 0 $euiBorderRadius $euiBorderRadius 0;
67
- padding-right: $euiSizeM;
68
- clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, #{$euiSizeS} 50%);
69
- }
70
- }
71
- }
@@ -1,21 +0,0 @@
1
- .euiToast {
2
- border: none;
3
- border-radius: $euiBorderRadius;
4
- }
5
-
6
- $euiToastTypes: (
7
- primary: $euiColorPrimary,
8
- success: $euiColorSuccess,
9
- warning: $euiColorWarning,
10
- danger: $euiColorDanger
11
- );
12
-
13
- @each $name, $color in $euiToastTypes {
14
- .euiToast--#{$name} {
15
- border-top: 2px solid $color;
16
- }
17
- }
18
-
19
- .euiToastHeader__title {
20
- font-weight: $euiFontWeightBold;
21
- }
@@ -1,4 +0,0 @@
1
- .euiToken--square {
2
- // Same border radius as the legacy theme
3
- border-radius: $euiBorderRadiusSmall - 1px;
4
- }
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.useIsWithinBreakpoints = useIsWithinBreakpoints;
9
-
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
-
12
- var _react = require("react");
13
-
14
- var _breakpoint = require("../breakpoint");
15
-
16
- /*
17
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
18
- * or more contributor license agreements. Licensed under the Elastic License
19
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
20
- * in compliance with, at your election, the Elastic License 2.0 or the Server
21
- * Side Public License, v 1.
22
- */
23
-
24
- /**
25
- * Given the current window.innerWidth and an array of breakpoint keys,
26
- * this hook stores state and returns true or false if the window.innerWidth
27
- * falls within any of the named breakpoints.
28
- *
29
- * @param {EuiBreakpointSize[]} sizes An array of named breakpoints
30
- * @param {boolean} isActive Manages whether the resize handler should be active
31
- * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
32
- */
33
- function useIsWithinBreakpoints(sizes) {
34
- var isActive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
35
-
36
- var _useState = (0, _react.useState)(false),
37
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
38
- isWithinBreakpointsValue = _useState2[0],
39
- setIsWithinBreakpointsValue = _useState2[1];
40
-
41
- (0, _react.useEffect)(function () {
42
- function handleResize() {
43
- setIsWithinBreakpointsValue((0, _breakpoint.isWithinBreakpoints)(window.innerWidth, sizes));
44
- }
45
-
46
- if (isActive) {
47
- window.removeEventListener('resize', handleResize);
48
- window.addEventListener('resize', handleResize);
49
- handleResize();
50
- }
51
-
52
- return function () {
53
- return window.removeEventListener('resize', handleResize);
54
- };
55
- }, [sizes, isActive]);
56
- return isWithinBreakpointsValue;
57
- }