@elastic/eui 98.2.1-borealis.0 → 98.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 (599) hide show
  1. package/dist/{eui_theme_amsterdam_dark.json.d.ts → eui_theme_dark.json.d.ts} +1 -1
  2. package/dist/{eui_theme_amsterdam_light.json.d.ts → eui_theme_light.json.d.ts} +1 -1
  3. package/es/components/avatar/avatar.js +4 -10
  4. package/es/components/badge/badge.styles.js +2 -1
  5. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  6. package/es/components/badge/color_utils.js +8 -9
  7. package/es/components/beacon/beacon.styles.js +2 -2
  8. package/es/components/bottom_bar/bottom_bar.styles.js +2 -1
  9. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  10. package/es/components/button/button.js +1 -1
  11. package/es/components/button/button_display/_button_display.styles.js +1 -1
  12. package/es/components/button/button_empty/button_empty.js +1 -1
  13. package/es/components/button/button_group/button_group_button.js +1 -1
  14. package/es/components/button/button_group/button_group_button.styles.js +6 -6
  15. package/es/components/button/button_icon/button_icon.js +1 -1
  16. package/es/components/card/card.js +1 -1
  17. package/es/components/card/card.styles.js +3 -6
  18. package/es/components/code/code_block_annotations.js +1 -1
  19. package/es/components/code/code_block_line.styles.js +2 -1
  20. package/es/components/code/code_syntax.styles.js +27 -23
  21. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  22. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  23. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  24. package/es/components/color_picker/color_picker.js +3 -9
  25. package/es/components/color_picker/color_picker.styles.js +2 -1
  26. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  27. package/es/components/comment_list/comment.js +1 -1
  28. package/es/components/comment_list/comment_event.js +4 -5
  29. package/es/components/comment_list/comment_list.js +1 -1
  30. package/es/components/common.js +28 -0
  31. package/es/components/datagrid/data_grid.styles.js +7 -6
  32. package/es/components/date_picker/react_date_picker.styles.js +1 -2
  33. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  34. package/es/components/drag_and_drop/droppable.styles.js +4 -2
  35. package/es/components/empty_prompt/empty_prompt.js +1 -1
  36. package/es/components/empty_prompt/empty_prompt.styles.js +2 -6
  37. package/es/components/filter_group/filter_select_item.styles.js +2 -1
  38. package/es/components/flyout/_flyout_close_button.styles.js +2 -1
  39. package/es/components/flyout/flyout.js +1 -1
  40. package/es/components/flyout/flyout.styles.js +2 -7
  41. package/es/components/flyout/flyout_footer.styles.js +1 -1
  42. package/es/components/form/form.styles.js +32 -28
  43. package/es/components/form/range/range_tooltip.styles.js +13 -11
  44. package/es/components/form/switch/switch.js +7 -3
  45. package/es/components/form/switch/switch.styles.js +19 -16
  46. package/es/components/header/header.styles.js +7 -6
  47. package/es/components/icon/icon.styles.js +8 -9
  48. package/es/components/icon/named_colors.js +1 -1
  49. package/es/components/inline_edit/inline_edit_form.styles.js +2 -1
  50. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  51. package/es/components/list_group/list_group_item.styles.js +11 -9
  52. package/es/components/loading/loading_chart.styles.js +5 -18
  53. package/es/components/mark/mark.styles.js +9 -2
  54. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  55. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  56. package/es/components/modal/modal.styles.js +1 -1
  57. package/es/components/overlay_mask/overlay_mask.styles.js +2 -1
  58. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  59. package/es/components/panel/panel.js +1 -1
  60. package/es/components/panel/panel.styles.js +1 -1
  61. package/es/components/panel/split_panel/split_panel.js +1 -1
  62. package/es/components/popover/popover.js +1 -1
  63. package/es/components/popover/popover_arrow/_popover_arrow.js +3 -8
  64. package/es/components/popover/popover_arrow/_popover_arrow.styles.js +13 -18
  65. package/es/components/popover/popover_footer.styles.js +1 -1
  66. package/es/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  67. package/es/components/progress/progress.js +1 -1
  68. package/es/components/progress/progress.styles.js +28 -30
  69. package/es/components/resizable_container/resizable_panel.js +1 -1
  70. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  71. package/es/components/side_nav/side_nav_item.styles.js +2 -1
  72. package/es/components/skeleton/utils.js +7 -5
  73. package/es/components/steps/step_number.styles.js +1 -1
  74. package/es/components/table/table_cells_shared.styles.js +7 -2
  75. package/es/components/table/table_row.styles.js +10 -8
  76. package/es/components/text/text.styles.js +2 -2
  77. package/es/components/text/text_color.js +1 -1
  78. package/es/components/text/text_color.styles.js +5 -6
  79. package/es/components/toast/toast.styles.js +1 -1
  80. package/es/components/token/token.js +4 -10
  81. package/es/components/token/token.styles.js +3 -12
  82. package/es/components/token/token_map.js +1 -243
  83. package/es/components/tool_tip/tool_tip.styles.js +24 -12
  84. package/es/components/tour/_tour_footer.styles.js +4 -2
  85. package/es/components/tour/tour.styles.js +12 -8
  86. package/es/components/tree_view/tree_view_item.styles.js +2 -1
  87. package/es/global_styling/functions/math.js +49 -1
  88. package/es/global_styling/functions/size.js +17 -1
  89. package/es/global_styling/mixins/_color.js +31 -39
  90. package/es/global_styling/mixins/index.js +1 -2
  91. package/es/global_styling/reset/global_styles.js +2 -2
  92. package/es/global_styling/variables/_colors_vis.js +53 -1
  93. package/es/global_styling/variables/animations.js +22 -1
  94. package/es/global_styling/variables/breakpoint.js +7 -1
  95. package/es/global_styling/variables/levels.js +17 -1
  96. package/es/global_styling/variables/shadow.js +11 -1
  97. package/es/global_styling/variables/size.js +1 -1
  98. package/es/global_styling/variables/typography.js +32 -1
  99. package/es/services/color/eui_palettes.js +47 -116
  100. package/es/services/color/index.js +0 -1
  101. package/es/services/index.js +1 -1
  102. package/es/services/popover/index.js +1 -4
  103. package/es/services/popover/popover_positioning.js +17 -6
  104. package/es/services/theme/provider.js +2 -26
  105. package/es/services/theme/types.js +6 -1
  106. package/es/services/theme/utils.js +303 -1
  107. package/es/themes/amsterdam/global_styling/mixins/button.js +203 -1
  108. package/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  109. package/es/themes/amsterdam/global_styling/variables/_colors.js +19 -612
  110. package/es/themes/amsterdam/theme.js +1 -7
  111. package/es/themes/index.js +1 -1
  112. package/es/themes/themes.js +6 -9
  113. package/eui.d.ts +2831 -2383
  114. package/lib/components/avatar/avatar.js +2 -8
  115. package/lib/components/badge/badge.styles.js +2 -1
  116. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  117. package/lib/components/badge/color_utils.js +13 -14
  118. package/lib/components/beacon/beacon.styles.js +2 -2
  119. package/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
  120. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  121. package/lib/components/button/button.js +1 -1
  122. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  123. package/lib/components/button/button_empty/button_empty.js +1 -1
  124. package/lib/components/button/button_group/button_group_button.js +1 -1
  125. package/lib/components/button/button_group/button_group_button.styles.js +5 -5
  126. package/lib/components/button/button_icon/button_icon.js +1 -1
  127. package/lib/components/card/card.js +1 -1
  128. package/lib/components/card/card.styles.js +2 -5
  129. package/lib/components/code/code_block_annotations.js +1 -1
  130. package/lib/components/code/code_block_line.styles.js +2 -1
  131. package/lib/components/code/code_syntax.styles.js +27 -23
  132. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  133. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  134. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  135. package/lib/components/color_picker/color_picker.js +2 -8
  136. package/lib/components/color_picker/color_picker.styles.js +2 -1
  137. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  138. package/lib/components/comment_list/comment.js +1 -1
  139. package/lib/components/comment_list/comment_event.js +4 -5
  140. package/lib/components/comment_list/comment_list.js +1 -1
  141. package/lib/components/common.js +28 -0
  142. package/lib/components/datagrid/data_grid.styles.js +7 -6
  143. package/lib/components/date_picker/react_date_picker.styles.js +2 -3
  144. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
  145. package/lib/components/drag_and_drop/droppable.styles.js +4 -2
  146. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  147. package/lib/components/empty_prompt/empty_prompt.styles.js +1 -5
  148. package/lib/components/filter_group/filter_select_item.styles.js +2 -1
  149. package/lib/components/flyout/_flyout_close_button.styles.js +2 -1
  150. package/lib/components/flyout/flyout.js +1 -1
  151. package/lib/components/flyout/flyout.styles.js +2 -7
  152. package/lib/components/flyout/flyout_footer.styles.js +1 -1
  153. package/lib/components/form/form.styles.js +31 -27
  154. package/lib/components/form/range/range_tooltip.styles.js +13 -11
  155. package/lib/components/form/switch/switch.js +7 -3
  156. package/lib/components/form/switch/switch.styles.js +19 -16
  157. package/lib/components/header/header.styles.js +6 -5
  158. package/lib/components/icon/icon.styles.js +8 -9
  159. package/lib/components/icon/named_colors.js +1 -1
  160. package/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
  161. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  162. package/lib/components/list_group/list_group_item.styles.js +10 -8
  163. package/lib/components/loading/loading_chart.styles.js +5 -18
  164. package/lib/components/mark/mark.styles.js +9 -2
  165. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  166. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  167. package/lib/components/modal/modal.styles.js +1 -1
  168. package/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
  169. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  170. package/lib/components/panel/panel.js +1 -1
  171. package/lib/components/panel/panel.styles.js +1 -1
  172. package/lib/components/panel/split_panel/split_panel.js +1 -1
  173. package/lib/components/popover/popover.js +1 -1
  174. package/lib/components/popover/popover_arrow/_popover_arrow.js +3 -8
  175. package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +15 -18
  176. package/lib/components/popover/popover_footer.styles.js +1 -1
  177. package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  178. package/lib/components/progress/progress.js +1 -1
  179. package/lib/components/progress/progress.styles.js +27 -29
  180. package/lib/components/resizable_container/resizable_panel.js +1 -1
  181. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  182. package/lib/components/side_nav/side_nav_item.styles.js +2 -1
  183. package/lib/components/skeleton/utils.js +6 -4
  184. package/lib/components/steps/step_number.styles.js +1 -1
  185. package/lib/components/table/table_cells_shared.styles.js +7 -2
  186. package/lib/components/table/table_row.styles.js +9 -7
  187. package/lib/components/text/text.styles.js +1 -1
  188. package/lib/components/text/text_color.js +1 -1
  189. package/lib/components/text/text_color.styles.js +5 -6
  190. package/lib/components/toast/toast.styles.js +1 -1
  191. package/lib/components/token/token.js +4 -12
  192. package/lib/components/token/token.styles.js +3 -12
  193. package/lib/components/token/token_map.js +2 -244
  194. package/lib/components/tool_tip/tool_tip.styles.js +23 -11
  195. package/lib/components/tour/_tour_footer.styles.js +4 -2
  196. package/lib/components/tour/tour.styles.js +12 -8
  197. package/lib/components/tree_view/tree_view_item.styles.js +2 -1
  198. package/lib/global_styling/functions/math.js +58 -7
  199. package/lib/global_styling/functions/size.js +26 -7
  200. package/lib/global_styling/mixins/_color.js +30 -38
  201. package/lib/global_styling/mixins/index.js +0 -11
  202. package/lib/global_styling/reset/global_styles.js +1 -1
  203. package/lib/global_styling/variables/_colors_vis.js +61 -6
  204. package/lib/global_styling/variables/animations.js +31 -25
  205. package/lib/global_styling/variables/breakpoint.js +16 -7
  206. package/lib/global_styling/variables/levels.js +26 -7
  207. package/lib/global_styling/variables/shadow.js +20 -13
  208. package/lib/global_styling/variables/size.js +10 -7
  209. package/lib/global_styling/variables/typography.js +41 -19
  210. package/lib/services/color/eui_palettes.js +47 -116
  211. package/lib/services/color/index.js +0 -8
  212. package/lib/services/index.js +0 -7
  213. package/lib/services/popover/index.js +1 -8
  214. package/lib/services/popover/popover_positioning.js +17 -6
  215. package/lib/services/theme/provider.js +2 -26
  216. package/lib/services/theme/types.js +14 -13
  217. package/lib/services/theme/utils.js +303 -54
  218. package/lib/themes/amsterdam/global_styling/mixins/button.js +206 -45
  219. package/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  220. package/lib/themes/amsterdam/global_styling/variables/_colors.js +19 -611
  221. package/lib/themes/amsterdam/theme.js +1 -7
  222. package/lib/themes/index.js +0 -7
  223. package/lib/themes/themes.js +7 -10
  224. package/optimize/es/components/avatar/avatar.js +4 -10
  225. package/optimize/es/components/badge/badge.styles.js +2 -1
  226. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  227. package/optimize/es/components/badge/color_utils.js +8 -9
  228. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  229. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -1
  230. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  231. package/optimize/es/components/button/button.js +1 -1
  232. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  233. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  234. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  235. package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
  236. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  237. package/optimize/es/components/card/card.styles.js +3 -6
  238. package/optimize/es/components/code/code_block_annotations.js +1 -1
  239. package/optimize/es/components/code/code_block_line.styles.js +2 -1
  240. package/optimize/es/components/code/code_syntax.styles.js +27 -23
  241. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  242. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  243. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  244. package/optimize/es/components/color_picker/color_picker.js +3 -9
  245. package/optimize/es/components/color_picker/color_picker.styles.js +2 -1
  246. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  247. package/optimize/es/components/comment_list/comment_event.js +3 -4
  248. package/optimize/es/components/common.js +28 -0
  249. package/optimize/es/components/datagrid/data_grid.styles.js +7 -6
  250. package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -2
  251. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  252. package/optimize/es/components/drag_and_drop/droppable.styles.js +4 -2
  253. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +2 -6
  254. package/optimize/es/components/filter_group/filter_select_item.styles.js +2 -1
  255. package/optimize/es/components/flyout/_flyout_close_button.styles.js +2 -1
  256. package/optimize/es/components/flyout/flyout.js +1 -1
  257. package/optimize/es/components/flyout/flyout.styles.js +2 -7
  258. package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
  259. package/optimize/es/components/form/form.styles.js +32 -28
  260. package/optimize/es/components/form/range/range_tooltip.styles.js +13 -11
  261. package/optimize/es/components/form/switch/switch.js +2 -3
  262. package/optimize/es/components/form/switch/switch.styles.js +19 -16
  263. package/optimize/es/components/header/header.styles.js +7 -6
  264. package/optimize/es/components/icon/icon.styles.js +8 -9
  265. package/optimize/es/components/icon/named_colors.js +1 -1
  266. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +2 -1
  267. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  268. package/optimize/es/components/list_group/list_group_item.styles.js +11 -9
  269. package/optimize/es/components/loading/loading_chart.styles.js +5 -13
  270. package/optimize/es/components/mark/mark.styles.js +9 -2
  271. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  272. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  273. package/optimize/es/components/modal/modal.styles.js +1 -1
  274. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +2 -1
  275. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  276. package/optimize/es/components/panel/panel.styles.js +1 -1
  277. package/optimize/es/components/popover/popover.js +1 -1
  278. package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +3 -8
  279. package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +13 -15
  280. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  281. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  282. package/optimize/es/components/progress/progress.js +1 -1
  283. package/optimize/es/components/progress/progress.styles.js +28 -30
  284. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  285. package/optimize/es/components/side_nav/side_nav_item.styles.js +2 -1
  286. package/optimize/es/components/skeleton/utils.js +7 -5
  287. package/optimize/es/components/steps/step_number.styles.js +1 -1
  288. package/optimize/es/components/table/table_cells_shared.styles.js +7 -2
  289. package/optimize/es/components/table/table_row.styles.js +10 -8
  290. package/optimize/es/components/text/text.styles.js +2 -2
  291. package/optimize/es/components/text/text_color.js +1 -1
  292. package/optimize/es/components/text/text_color.styles.js +5 -6
  293. package/optimize/es/components/toast/toast.styles.js +1 -1
  294. package/optimize/es/components/token/token.js +4 -10
  295. package/optimize/es/components/token/token.styles.js +3 -12
  296. package/optimize/es/components/token/token_map.js +1 -243
  297. package/optimize/es/components/tool_tip/tool_tip.styles.js +24 -12
  298. package/optimize/es/components/tour/_tour_footer.styles.js +4 -2
  299. package/optimize/es/components/tour/tour.styles.js +12 -8
  300. package/optimize/es/components/tree_view/tree_view_item.styles.js +2 -1
  301. package/optimize/es/global_styling/functions/math.js +49 -1
  302. package/optimize/es/global_styling/functions/size.js +17 -1
  303. package/optimize/es/global_styling/mixins/_color.js +31 -39
  304. package/optimize/es/global_styling/mixins/index.js +1 -2
  305. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  306. package/optimize/es/global_styling/variables/_colors_vis.js +53 -1
  307. package/optimize/es/global_styling/variables/animations.js +22 -1
  308. package/optimize/es/global_styling/variables/breakpoint.js +7 -1
  309. package/optimize/es/global_styling/variables/levels.js +17 -1
  310. package/optimize/es/global_styling/variables/shadow.js +11 -1
  311. package/optimize/es/global_styling/variables/size.js +1 -1
  312. package/optimize/es/global_styling/variables/typography.js +32 -1
  313. package/optimize/es/services/color/eui_palettes.js +47 -116
  314. package/optimize/es/services/color/index.js +0 -1
  315. package/optimize/es/services/index.js +1 -1
  316. package/optimize/es/services/popover/index.js +1 -4
  317. package/optimize/es/services/popover/popover_positioning.js +17 -6
  318. package/optimize/es/services/theme/provider.js +2 -26
  319. package/optimize/es/services/theme/types.js +6 -1
  320. package/optimize/es/services/theme/utils.js +295 -1
  321. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +198 -1
  322. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  323. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +19 -612
  324. package/optimize/es/themes/amsterdam/theme.js +1 -7
  325. package/optimize/es/themes/index.js +1 -1
  326. package/optimize/es/themes/themes.js +6 -9
  327. package/optimize/lib/components/avatar/avatar.js +2 -8
  328. package/optimize/lib/components/badge/badge.styles.js +2 -1
  329. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  330. package/optimize/lib/components/badge/color_utils.js +13 -14
  331. package/optimize/lib/components/beacon/beacon.styles.js +2 -2
  332. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
  333. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  334. package/optimize/lib/components/button/button.js +1 -1
  335. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  336. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  337. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  338. package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
  339. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  340. package/optimize/lib/components/card/card.styles.js +2 -5
  341. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  342. package/optimize/lib/components/code/code_block_line.styles.js +2 -1
  343. package/optimize/lib/components/code/code_syntax.styles.js +27 -23
  344. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  345. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  346. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  347. package/optimize/lib/components/color_picker/color_picker.js +2 -8
  348. package/optimize/lib/components/color_picker/color_picker.styles.js +2 -1
  349. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  350. package/optimize/lib/components/comment_list/comment_event.js +3 -4
  351. package/optimize/lib/components/common.js +28 -0
  352. package/optimize/lib/components/datagrid/data_grid.styles.js +7 -6
  353. package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -3
  354. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
  355. package/optimize/lib/components/drag_and_drop/droppable.styles.js +4 -2
  356. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +1 -5
  357. package/optimize/lib/components/filter_group/filter_select_item.styles.js +2 -1
  358. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +2 -1
  359. package/optimize/lib/components/flyout/flyout.js +1 -1
  360. package/optimize/lib/components/flyout/flyout.styles.js +2 -7
  361. package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
  362. package/optimize/lib/components/form/form.styles.js +31 -27
  363. package/optimize/lib/components/form/range/range_tooltip.styles.js +13 -11
  364. package/optimize/lib/components/form/switch/switch.js +2 -3
  365. package/optimize/lib/components/form/switch/switch.styles.js +19 -16
  366. package/optimize/lib/components/header/header.styles.js +6 -5
  367. package/optimize/lib/components/icon/icon.styles.js +8 -9
  368. package/optimize/lib/components/icon/named_colors.js +1 -1
  369. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
  370. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  371. package/optimize/lib/components/list_group/list_group_item.styles.js +10 -8
  372. package/optimize/lib/components/loading/loading_chart.styles.js +5 -13
  373. package/optimize/lib/components/mark/mark.styles.js +9 -2
  374. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  375. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  376. package/optimize/lib/components/modal/modal.styles.js +1 -1
  377. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
  378. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  379. package/optimize/lib/components/panel/panel.styles.js +1 -1
  380. package/optimize/lib/components/popover/popover.js +1 -1
  381. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +3 -8
  382. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +15 -16
  383. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  384. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  385. package/optimize/lib/components/progress/progress.js +1 -1
  386. package/optimize/lib/components/progress/progress.styles.js +27 -29
  387. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  388. package/optimize/lib/components/side_nav/side_nav_item.styles.js +2 -1
  389. package/optimize/lib/components/skeleton/utils.js +6 -4
  390. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  391. package/optimize/lib/components/table/table_cells_shared.styles.js +7 -2
  392. package/optimize/lib/components/table/table_row.styles.js +9 -7
  393. package/optimize/lib/components/text/text.styles.js +1 -1
  394. package/optimize/lib/components/text/text_color.js +1 -1
  395. package/optimize/lib/components/text/text_color.styles.js +5 -6
  396. package/optimize/lib/components/toast/toast.styles.js +1 -1
  397. package/optimize/lib/components/token/token.js +4 -13
  398. package/optimize/lib/components/token/token.styles.js +3 -12
  399. package/optimize/lib/components/token/token_map.js +2 -244
  400. package/optimize/lib/components/tool_tip/tool_tip.styles.js +23 -11
  401. package/optimize/lib/components/tour/_tour_footer.styles.js +4 -2
  402. package/optimize/lib/components/tour/tour.styles.js +12 -8
  403. package/optimize/lib/components/tree_view/tree_view_item.styles.js +2 -1
  404. package/optimize/lib/global_styling/functions/math.js +59 -7
  405. package/optimize/lib/global_styling/functions/size.js +27 -7
  406. package/optimize/lib/global_styling/mixins/_color.js +30 -38
  407. package/optimize/lib/global_styling/mixins/index.js +0 -11
  408. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  409. package/optimize/lib/global_styling/variables/_colors_vis.js +61 -6
  410. package/optimize/lib/global_styling/variables/animations.js +31 -25
  411. package/optimize/lib/global_styling/variables/breakpoint.js +16 -7
  412. package/optimize/lib/global_styling/variables/levels.js +26 -7
  413. package/optimize/lib/global_styling/variables/shadow.js +20 -13
  414. package/optimize/lib/global_styling/variables/size.js +10 -7
  415. package/optimize/lib/global_styling/variables/typography.js +41 -19
  416. package/optimize/lib/services/color/eui_palettes.js +47 -116
  417. package/optimize/lib/services/color/index.js +0 -8
  418. package/optimize/lib/services/index.js +0 -7
  419. package/optimize/lib/services/popover/index.js +1 -8
  420. package/optimize/lib/services/popover/popover_positioning.js +17 -6
  421. package/optimize/lib/services/theme/provider.js +2 -26
  422. package/optimize/lib/services/theme/types.js +14 -13
  423. package/optimize/lib/services/theme/utils.js +296 -54
  424. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +203 -45
  425. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  426. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +19 -611
  427. package/optimize/lib/themes/amsterdam/theme.js +1 -7
  428. package/optimize/lib/themes/index.js +0 -7
  429. package/optimize/lib/themes/themes.js +7 -10
  430. package/package.json +3 -7
  431. package/src/global_styling/functions/_index.scss +5 -1
  432. package/src/global_styling/index.scss +10 -1
  433. package/src/global_styling/variables/_animations.scss +8 -1
  434. package/src/global_styling/variables/_borders.scss +9 -1
  435. package/src/global_styling/variables/_buttons.scss +18 -1
  436. package/src/global_styling/variables/_colors_vis.scss +70 -1
  437. package/src/global_styling/variables/_font_weight.scss +7 -1
  438. package/src/global_styling/variables/_form.scss +21 -2
  439. package/src/global_styling/variables/_responsive.scss +9 -1
  440. package/src/global_styling/variables/_shadows.scss +1 -1
  441. package/src/global_styling/variables/_size.scss +13 -1
  442. package/src/global_styling/variables/_states.scss +14 -1
  443. package/src/global_styling/variables/_typography.scss +75 -1
  444. package/src/global_styling/variables/_z_index.scss +33 -1
  445. package/src/themes/amsterdam/_colors_dark.scss +8 -80
  446. package/src/themes/amsterdam/_colors_light.scss +8 -80
  447. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -2
  448. package/test-env/components/avatar/avatar.js +2 -8
  449. package/test-env/components/badge/badge.styles.js +2 -1
  450. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  451. package/test-env/components/badge/color_utils.js +13 -14
  452. package/test-env/components/beacon/beacon.styles.js +2 -2
  453. package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -1
  454. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  455. package/test-env/components/button/button.js +1 -1
  456. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  457. package/test-env/components/button/button_empty/button_empty.js +1 -1
  458. package/test-env/components/button/button_group/button_group_button.js +1 -1
  459. package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
  460. package/test-env/components/button/button_icon/button_icon.js +1 -1
  461. package/test-env/components/card/card.js +1 -1
  462. package/test-env/components/card/card.styles.js +2 -5
  463. package/test-env/components/code/code_block_annotations.js +1 -1
  464. package/test-env/components/code/code_block_line.styles.js +2 -1
  465. package/test-env/components/code/code_syntax.styles.js +27 -23
  466. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  467. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  468. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  469. package/test-env/components/color_picker/color_picker.js +2 -8
  470. package/test-env/components/color_picker/color_picker.styles.js +2 -1
  471. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  472. package/test-env/components/comment_list/comment.js +1 -1
  473. package/test-env/components/comment_list/comment_event.js +4 -5
  474. package/test-env/components/comment_list/comment_list.js +1 -1
  475. package/test-env/components/common.js +28 -0
  476. package/test-env/components/datagrid/data_grid.styles.js +7 -6
  477. package/test-env/components/date_picker/react_date_picker.styles.js +2 -3
  478. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
  479. package/test-env/components/drag_and_drop/droppable.styles.js +4 -2
  480. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  481. package/test-env/components/empty_prompt/empty_prompt.styles.js +1 -5
  482. package/test-env/components/filter_group/filter_select_item.styles.js +2 -1
  483. package/test-env/components/flyout/_flyout_close_button.styles.js +2 -1
  484. package/test-env/components/flyout/flyout.styles.js +2 -7
  485. package/test-env/components/flyout/flyout_footer.styles.js +1 -1
  486. package/test-env/components/form/form.styles.js +31 -27
  487. package/test-env/components/form/range/range_tooltip.styles.js +13 -11
  488. package/test-env/components/form/switch/switch.js +2 -3
  489. package/test-env/components/form/switch/switch.styles.js +19 -16
  490. package/test-env/components/header/header.styles.js +6 -5
  491. package/test-env/components/icon/icon.styles.js +8 -9
  492. package/test-env/components/icon/named_colors.js +1 -1
  493. package/test-env/components/inline_edit/inline_edit_form.styles.js +2 -1
  494. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  495. package/test-env/components/list_group/list_group_item.styles.js +10 -8
  496. package/test-env/components/loading/loading_chart.styles.js +5 -13
  497. package/test-env/components/mark/mark.styles.js +9 -2
  498. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  499. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  500. package/test-env/components/modal/modal.styles.js +1 -1
  501. package/test-env/components/overlay_mask/overlay_mask.styles.js +2 -1
  502. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  503. package/test-env/components/panel/panel.js +1 -1
  504. package/test-env/components/panel/panel.styles.js +1 -1
  505. package/test-env/components/panel/split_panel/split_panel.js +1 -1
  506. package/test-env/components/popover/popover.js +1 -1
  507. package/test-env/components/popover/popover_arrow/_popover_arrow.js +3 -8
  508. package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +15 -16
  509. package/test-env/components/popover/popover_footer.styles.js +1 -1
  510. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  511. package/test-env/components/progress/progress.js +1 -1
  512. package/test-env/components/progress/progress.styles.js +27 -29
  513. package/test-env/components/resizable_container/resizable_panel.js +1 -1
  514. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  515. package/test-env/components/side_nav/side_nav_item.styles.js +2 -1
  516. package/test-env/components/skeleton/utils.js +6 -4
  517. package/test-env/components/steps/step_number.styles.js +1 -1
  518. package/test-env/components/table/table_cells_shared.styles.js +7 -2
  519. package/test-env/components/table/table_row.styles.js +9 -7
  520. package/test-env/components/text/text.styles.js +1 -1
  521. package/test-env/components/text/text_color.js +1 -1
  522. package/test-env/components/text/text_color.styles.js +5 -6
  523. package/test-env/components/toast/toast.styles.js +1 -1
  524. package/test-env/components/token/token.js +4 -13
  525. package/test-env/components/token/token.styles.js +3 -12
  526. package/test-env/components/token/token_map.js +2 -244
  527. package/test-env/components/tool_tip/tool_tip.styles.js +23 -11
  528. package/test-env/components/tour/_tour_footer.styles.js +4 -2
  529. package/test-env/components/tour/tour.styles.js +12 -8
  530. package/test-env/components/tree_view/tree_view_item.styles.js +2 -1
  531. package/test-env/global_styling/functions/math.js +59 -7
  532. package/test-env/global_styling/functions/size.js +27 -7
  533. package/test-env/global_styling/mixins/_color.js +30 -38
  534. package/test-env/global_styling/mixins/index.js +0 -11
  535. package/test-env/global_styling/reset/global_styles.js +1 -1
  536. package/test-env/global_styling/variables/_colors_vis.js +61 -6
  537. package/test-env/global_styling/variables/animations.js +31 -25
  538. package/test-env/global_styling/variables/breakpoint.js +16 -7
  539. package/test-env/global_styling/variables/levels.js +26 -7
  540. package/test-env/global_styling/variables/shadow.js +20 -13
  541. package/test-env/global_styling/variables/size.js +10 -7
  542. package/test-env/global_styling/variables/typography.js +41 -19
  543. package/test-env/services/color/eui_palettes.js +47 -116
  544. package/test-env/services/color/index.js +0 -8
  545. package/test-env/services/index.js +0 -7
  546. package/test-env/services/popover/index.js +1 -8
  547. package/test-env/services/popover/popover_positioning.js +17 -6
  548. package/test-env/services/theme/provider.js +2 -26
  549. package/test-env/services/theme/types.js +14 -13
  550. package/test-env/services/theme/utils.js +296 -54
  551. package/test-env/themes/amsterdam/global_styling/mixins/button.js +203 -45
  552. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  553. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +19 -611
  554. package/test-env/themes/amsterdam/theme.js +1 -7
  555. package/test-env/themes/index.js +0 -7
  556. package/test-env/themes/themes.js +7 -10
  557. package/dist/eui_theme_borealis_dark.json +0 -314
  558. package/dist/eui_theme_borealis_dark.json.d.ts +0 -317
  559. package/dist/eui_theme_borealis_light.json +0 -314
  560. package/dist/eui_theme_borealis_light.json.d.ts +0 -317
  561. package/es/global_styling/mixins/_button.js +0 -159
  562. package/es/services/color/vis_color_store.js +0 -13
  563. package/es/services/popover/popover_arrow.styles.js +0 -31
  564. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -281
  565. package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -94
  566. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -604
  567. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -161
  568. package/lib/global_styling/mixins/_button.js +0 -164
  569. package/lib/services/color/vis_color_store.js +0 -18
  570. package/lib/services/popover/popover_arrow.styles.js +0 -37
  571. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -285
  572. package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
  573. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -608
  574. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -165
  575. package/optimize/es/global_styling/mixins/_button.js +0 -159
  576. package/optimize/es/services/color/vis_color_store.js +0 -13
  577. package/optimize/es/services/popover/popover_arrow.styles.js +0 -31
  578. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -270
  579. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -94
  580. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -596
  581. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -153
  582. package/optimize/lib/global_styling/mixins/_button.js +0 -165
  583. package/optimize/lib/services/color/vis_color_store.js +0 -18
  584. package/optimize/lib/services/popover/popover_arrow.styles.js +0 -37
  585. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
  586. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
  587. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -601
  588. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -158
  589. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  590. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  591. package/test-env/global_styling/mixins/_button.js +0 -165
  592. package/test-env/services/color/vis_color_store.js +0 -18
  593. package/test-env/services/popover/popover_arrow.styles.js +0 -37
  594. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
  595. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
  596. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -601
  597. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -158
  598. /package/dist/{eui_theme_amsterdam_dark.json → eui_theme_dark.json} +0 -0
  599. /package/dist/{eui_theme_amsterdam_light.json → eui_theme_light.json} +0 -0
@@ -7,6 +7,7 @@ exports.euiTourStyles = exports.euiTourBeaconStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../global_styling");
9
9
  var _popover_panel = require("../popover/popover_panel/_popover_panel.styles");
10
+ var _popover_arrow = require("../popover/popover_arrow/_popover_arrow.styles");
10
11
  var _tour_footer = require("./_tour_footer.styles");
11
12
  /*
12
13
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -19,23 +20,26 @@ var _tour_footer = require("./_tour_footer.styles");
19
20
  var euiTourStyles = exports.euiTourStyles = function euiTourStyles(euiThemeContext) {
20
21
  return {
21
22
  // Targets EuiPopoverPanel
22
- euiTour: /*#__PURE__*/(0, _react.css)("[data-popover-arrow='top']{background-color:", (0, _tour_footer._tourFooterBgColor)(euiThemeContext), ";};label:euiTour;")
23
+ euiTour: /*#__PURE__*/(0, _react.css)("[data-popover-arrow='top']::before{", (0, _global_styling.logicalCSS)('border-top-color', (0, _tour_footer._tourFooterBgColor)(euiThemeContext)), ";};label:euiTour;")
23
24
  };
24
25
  };
25
26
  var euiTourBeaconStyles = exports.euiTourBeaconStyles = function euiTourBeaconStyles(_ref) {
26
27
  var euiTheme = _ref.euiTheme;
27
- var beaconSize = euiTheme.size.m;
28
- var beaconOffset = (0, _global_styling.mathWithUnits)(beaconSize, function (x) {
29
- return x / -2;
28
+ var arrowSize = euiTheme.size[_popover_arrow.popoverArrowSize];
29
+ var arrowHalfSize = (0, _global_styling.mathWithUnits)(arrowSize, function (x) {
30
+ return x / 2;
31
+ });
32
+ var arrowOffset = (0, _global_styling.mathWithUnits)(arrowSize, function (x) {
33
+ return x * -2;
30
34
  });
31
35
  return {
32
36
  // Base
33
37
  euiTourBeacon: /*#__PURE__*/(0, _react.css)("pointer-events:none;position:absolute;", _global_styling.euiCanAnimate, "{opacity:0;transition:opacity 0s ", euiTheme.animation[_popover_panel.openAnimationTiming], ";};label:euiTourBeacon;"),
34
38
  isOpen: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{opacity:1;};label:isOpen;"),
35
39
  // Positions
36
- right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', '50%'), " ", (0, _global_styling.logicalCSS)('left', '-50%'), " ", (0, _global_styling.logicalCSS)('margin-top', beaconOffset), ";;label:right;"),
37
- left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', '50%'), " ", (0, _global_styling.logicalCSS)('right', '-50%'), " ", (0, _global_styling.logicalCSS)('margin-top', beaconOffset), ";;label:left;"),
38
- top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', '50%'), " ", (0, _global_styling.logicalCSS)('bottom', '-50%'), " ", (0, _global_styling.logicalCSS)('margin-left', beaconOffset), ";;label:top;"),
39
- bottom: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', '50%'), " ", (0, _global_styling.logicalCSS)('top', '-50%'), " ", (0, _global_styling.logicalCSS)('margin-left', beaconOffset), ";;label:bottom;")
40
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', arrowHalfSize), " ", (0, _global_styling.logicalCSS)('left', arrowOffset), ";;label:right;"),
41
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', arrowHalfSize), " ", (0, _global_styling.logicalCSS)('left', arrowSize), ";;label:left;"),
42
+ top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', arrowSize), " ", (0, _global_styling.logicalCSS)('left', arrowHalfSize), ";;label:top;"),
43
+ bottom: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', arrowOffset), " ", (0, _global_styling.logicalCSS)('left', arrowHalfSize), ";;label:bottom;")
40
44
  };
41
45
  };
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiTreeViewItemStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _services = require("../../services");
8
9
  var _global_styling = require("../../global_styling");
9
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
10
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -33,7 +34,7 @@ var euiTreeViewItemStyles = exports.euiTreeViewItemStyles = function euiTreeView
33
34
  expanded: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', '100vh'), ";;label:expanded;")
34
35
  },
35
36
  button: {
36
- euiTreeView__nodeInner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xxs), " display:flex;align-items:center;&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:hover,&:active,&:focus{background-color:", euiTheme.components.treeViewItemBackgroundHover, ";};label:euiTreeView__nodeInner;"),
37
+ euiTreeView__nodeInner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xxs), " display:flex;align-items:center;&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:hover,&:active,&:focus{background-color:", (0, _services.transparentize)(euiTheme.colors.text, euiTheme.focus.transparency), ";};label:euiTreeView__nodeInner;"),
37
38
  default: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', defaultSize), " gap:", euiTheme.size.s, ";border-radius:", euiTheme.border.radius.medium, ";;label:default;"),
38
39
  compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedSize), " gap:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";;label:compressed;")
39
40
  },
@@ -1,12 +1,64 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
- Object.defineProperty(exports, "mathWithUnits", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.mathWithUnits;
10
- }
11
- });
12
- var _euiThemeCommon = require("@elastic/eui-theme-common");
8
+ exports.mathWithUnits = void 0;
9
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
10
+ var _setPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/setPrototypeOf"));
11
+ function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), (0, _setPrototypeOf2.default)(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return (0, _inherits2.default)(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
12
+ /*
13
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
+ * or more contributor license agreements. Licensed under the Elastic License
15
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
16
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
17
+ * Side Public License, v 1.
18
+ */
19
+
20
+ /**
21
+ * Utility for performing math callbacks on a string with CSS units
22
+ * and returning a string with its unit preserved.
23
+ *
24
+ * Example usage:
25
+ * mathWithUnits('4px', (x) => x / 2) = '2px';
26
+ * mathWithUnits(euiTheme.size.xs, (x) => x + 2) = '6px';
27
+ * mathWithUnits([euiTheme.size.l, euiTheme.size.s], (x, y) => x - y) = '16px';
28
+ */
29
+ // Unfortunately, this is the CSSProperties[] type used for several euiTheme vars
30
+
31
+ var mathWithUnits = exports.mathWithUnits = function mathWithUnits(values, callback) {
32
+ var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
33
+ if (!Array.isArray(values)) values = [values];
34
+ var foundNumericValues = [];
35
+ var foundUnit = '';
36
+ values.forEach(function (value) {
37
+ if (typeof value === 'string') {
38
+ var _matches$groups, _matches$groups2;
39
+ var regex = /*#__PURE__*/_wrapRegExp(/(\x2D?[\d.]+)(%|[a-zA-Z]*)/, {
40
+ value: 1,
41
+ unit: 2
42
+ });
43
+ var matches = regex.exec(value);
44
+ var numericValue = Number(matches === null || matches === void 0 || (_matches$groups = matches.groups) === null || _matches$groups === void 0 ? void 0 : _matches$groups.value);
45
+ if (!isNaN(numericValue)) {
46
+ foundNumericValues.push(numericValue);
47
+ } else {
48
+ throw new Error('No valid numeric value found');
49
+ }
50
+ if (!unit && matches !== null && matches !== void 0 && (_matches$groups2 = matches.groups) !== null && _matches$groups2 !== void 0 && _matches$groups2.unit) {
51
+ if (!foundUnit) {
52
+ foundUnit = matches.groups.unit;
53
+ } else if (foundUnit !== matches.groups.unit) {
54
+ throw new Error('Multiple units found. Use `calc()` to mix and math multiple unit types (e.g. `%` & `px`) instead');
55
+ }
56
+ }
57
+ } else if (typeof value === 'number') {
58
+ foundNumericValues.push(value);
59
+ } else {
60
+ throw new Error('Invalid value type - pass a string or number');
61
+ }
62
+ });
63
+ return "".concat(callback.apply(void 0, foundNumericValues)).concat(unit || foundUnit);
64
+ };
@@ -1,12 +1,32 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- Object.defineProperty(exports, "sizeToPixel", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.sizeToPixel;
10
- }
11
- });
12
- var _euiThemeCommon = require("@elastic/eui-theme-common");
7
+ exports.sizeToPixel = void 0;
8
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
+ /*
10
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
11
+ * or more contributor license agreements. Licensed under the Elastic License
12
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
13
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
14
+ * Side Public License, v 1.
15
+ */
16
+
17
+ /**
18
+ * Calculates the `px` value based on a scale multiplier
19
+ * @param scale - The font scale multiplier
20
+ * *
21
+ * @param themeOrBase - Theme base value
22
+ * *
23
+ * @returns string - Rem unit aligned to baseline
24
+ */
25
+
26
+ var sizeToPixel = exports.sizeToPixel = function sizeToPixel() {
27
+ var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
28
+ return function (themeOrBase) {
29
+ var base = (0, _typeof2.default)(themeOrBase) === 'object' ? themeOrBase.base : themeOrBase;
30
+ return "".concat(base * scale, "px");
31
+ };
32
+ };
@@ -8,7 +8,6 @@ exports.useEuiBorderColorCSS = exports.useEuiBackgroundColorCSS = exports.useEui
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _services = require("../../services");
11
- var _euiThemeCommon = require("@elastic/eui-theme-common");
12
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
14
13
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -17,27 +16,40 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
17
16
  * in compliance with, at your election, the Elastic License 2.0 or the Server
18
17
  * Side Public License, v 1.
19
18
  */
20
- var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'highlighted', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
19
+ var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'primary', 'success', 'warning', 'danger'];
21
20
  /**
22
- * @deprecated - use background tokens directly
23
21
  * @returns A single background color with optional alpha transparency
24
22
  */
25
23
  var euiBackgroundColor = exports.euiBackgroundColor = function euiBackgroundColor(_ref, color) {
26
- var euiTheme = _ref.euiTheme;
24
+ var euiTheme = _ref.euiTheme,
25
+ colorMode = _ref.colorMode;
27
26
  var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
28
27
  method = _ref2.method;
29
28
  if (color === 'transparent') return 'transparent';
30
29
  if (method === 'transparent') {
31
- var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundTransparent', color);
32
- return euiTheme.colors[tokenName];
30
+ if (color === 'plain') {
31
+ return (0, _services.transparentize)(euiTheme.colors.ghost, 0.2);
32
+ } else if (color === 'subdued') {
33
+ return colorMode === 'DARK' ? (0, _services.transparentize)(euiTheme.colors.lightShade, 0.4) : (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
34
+ } else {
35
+ return (0, _services.transparentize)(euiTheme.colors[color], 0.1);
36
+ }
33
37
  } else {
34
- var _tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
35
- return euiTheme.colors[_tokenName];
38
+ var _tintOrShade = function _tintOrShade(color) {
39
+ return colorMode === 'DARK' ? (0, _services.shade)(color, 0.8) : (0, _services.tint)(color, 0.9);
40
+ };
41
+ switch (color) {
42
+ case 'plain':
43
+ return euiTheme.colors.emptyShade;
44
+ case 'subdued':
45
+ return euiTheme.colors.body;
46
+ default:
47
+ return _tintOrShade(euiTheme.colors[color]);
48
+ }
36
49
  }
37
50
  };
38
51
 
39
52
  /**
40
- * @deprecated
41
53
  * @returns An object map of color keys to color values, categorized by
42
54
  * opaque (default) vs transparency (hover/focus states) methods.
43
55
  * e.g. {
@@ -57,10 +69,6 @@ var _euiBackgroundColorMap = function _euiBackgroundColorMap(euiThemeContext) {
57
69
  }, {})
58
70
  };
59
71
  };
60
-
61
- /**
62
- * @deprecated
63
- */
64
72
  var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackgroundColor(color) {
65
73
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
66
74
  method = _ref3.method;
@@ -74,37 +82,29 @@ var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackg
74
82
  */
75
83
  var _euiBackgroundColors = function _euiBackgroundColors(euiThemeContext) {
76
84
  return BACKGROUND_COLORS.reduce(function (acc, color) {
77
- var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
78
- var backgroundColor = color === 'transparent' ? 'transparent' : euiThemeContext.euiTheme.colors[tokenName];
79
- return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("background-color:", backgroundColor, ";label:", color, ";")));
85
+ return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("background-color:", euiBackgroundColor(euiThemeContext, color), ";label:", color, ";")));
80
86
  }, {});
81
87
  };
82
-
83
- /**
84
- * Hook to retrieve background style for a background color variant
85
- * @returns An object map of color keys to CSS,
86
- * e.g. { danger: css``, success: css``, ... }
87
- */
88
88
  var useEuiBackgroundColorCSS = exports.useEuiBackgroundColorCSS = function useEuiBackgroundColorCSS() {
89
89
  return (0, _services.useEuiMemoizedStyles)(_euiBackgroundColors);
90
90
  };
91
91
 
92
92
  /**
93
93
  * Border colors
94
- * @deprecated - use border tokens directly or use
95
- * `useEuiBorderColorCSS()` for composed styles
96
94
  */
97
95
 
98
96
  var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, color) {
99
- var euiTheme = _ref4.euiTheme;
97
+ var euiTheme = _ref4.euiTheme,
98
+ colorMode = _ref4.colorMode;
100
99
  switch (color) {
101
100
  case 'transparent':
101
+ case 'plain':
102
+ case 'subdued':
102
103
  return euiTheme.border.color;
104
+ case 'warning':
105
+ return (0, _services.tintOrShade)(euiTheme.colors.warning, 0.4, colorMode);
103
106
  default:
104
- {
105
- var tokenName = (0, _euiThemeCommon.getTokenName)('borderBase', color);
106
- return euiTheme.colors[tokenName];
107
- }
107
+ return (0, _services.tintOrShade)(euiTheme.colors[color], 0.6, colorMode);
108
108
  }
109
109
  };
110
110
 
@@ -114,17 +114,9 @@ var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, col
114
114
  */
115
115
  var _euiBorderColors = function _euiBorderColors(euiThemeContext) {
116
116
  return BACKGROUND_COLORS.reduce(function (acc, color) {
117
- var borderToken = (0, _euiThemeCommon.getTokenName)('borderBase', color);
118
- var borderColor = color === 'transparent' ? euiThemeContext.euiTheme.border.color : euiThemeContext.euiTheme.colors[borderToken];
119
- return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("border-color:", borderColor, ";label:", color, ";")));
117
+ return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("border-color:", euiBorderColor(euiThemeContext, color), ";label:", color, ";")));
120
118
  }, {});
121
119
  };
122
-
123
- /**
124
- * Hook to retrieve border style for a border variant
125
- * @returns An object map of color keys to CSS,
126
- * e.g. { danger: css``, success: css``, ... }
127
- */
128
120
  var useEuiBorderColorCSS = exports.useEuiBorderColorCSS = function useEuiBorderColorCSS() {
129
121
  return (0, _services.useEuiMemoizedStyles)(_euiBorderColors);
130
122
  };
@@ -68,15 +68,4 @@ Object.keys(_responsive).forEach(function (key) {
68
68
  return _responsive[key];
69
69
  }
70
70
  });
71
- });
72
- var _button = require("./_button");
73
- Object.keys(_button).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _button[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function get() {
79
- return _button[key];
80
- }
81
- });
82
71
  });
@@ -36,7 +36,7 @@ var EuiGlobalStyles = exports.EuiGlobalStyles = function EuiGlobalStyles(_ref) {
36
36
  * so that it knows to use custom styles. Therefore, we just reuse the same scrollbar mixin with thick size.
37
37
  */
38
38
  var scrollbarStyles = (0, _mixins.euiScrollBarStyles)(euiThemeContext, {
39
- trackColor: euiTheme.components.scrollbarTrackColor,
39
+ trackColor: colorMode === 'LIGHT' ? (0, _color.shade)(colors.body, 0.03) : (0, _color.tint)(colors.body, 0.07),
40
40
  width: 'auto'
41
41
  });
42
42
 
@@ -3,10 +3,65 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "colorVis", {
7
- enumerable: true,
8
- get: function get() {
9
- return _colors_vis.colorVis;
6
+ exports.colorVis = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ /**
16
+ * NOTE: These were quick conversions of their Sass counterparts.
17
+ * They have yet to be used/tested.
18
+ * TODO: Make the graphic version available from `euiPaletteColorBlind()`
19
+ */
20
+
21
+ // Maps allow for easier JSON usage
22
+ // Use map_merge(euiColorVisColors, $yourMap) to change individual colors after importing ths file
23
+ // The `behindText` variant is a direct copy of the hex output by the JS euiPaletteColorBlindBehindText() function
24
+ var euiPaletteColorBlind = {
25
+ euiColorVis0: {
26
+ graphic: '#54B399'
27
+ },
28
+ euiColorVis1: {
29
+ graphic: '#6092C0'
30
+ },
31
+ euiColorVis2: {
32
+ graphic: '#D36086'
33
+ },
34
+ euiColorVis3: {
35
+ graphic: '#9170B8'
36
+ },
37
+ euiColorVis4: {
38
+ graphic: '#CA8EAE'
39
+ },
40
+ euiColorVis5: {
41
+ graphic: '#D6BF57'
42
+ },
43
+ euiColorVis6: {
44
+ graphic: '#B9A888'
45
+ },
46
+ euiColorVis7: {
47
+ graphic: '#DA8B45'
48
+ },
49
+ euiColorVis8: {
50
+ graphic: '#AA6556'
51
+ },
52
+ euiColorVis9: {
53
+ graphic: '#E7664C'
10
54
  }
11
- });
12
- var _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colors_vis");
55
+ };
56
+ var colorVis = exports.colorVis = {
57
+ euiColorVis0: euiPaletteColorBlind.euiColorVis0.graphic,
58
+ euiColorVis1: euiPaletteColorBlind.euiColorVis1.graphic,
59
+ euiColorVis2: euiPaletteColorBlind.euiColorVis2.graphic,
60
+ euiColorVis3: euiPaletteColorBlind.euiColorVis3.graphic,
61
+ euiColorVis4: euiPaletteColorBlind.euiColorVis4.graphic,
62
+ euiColorVis5: euiPaletteColorBlind.euiColorVis5.graphic,
63
+ euiColorVis6: euiPaletteColorBlind.euiColorVis6.graphic,
64
+ euiColorVis7: euiPaletteColorBlind.euiColorVis7.graphic,
65
+ euiColorVis8: euiPaletteColorBlind.euiColorVis8.graphic,
66
+ euiColorVis9: euiPaletteColorBlind.euiColorVis9.graphic
67
+ };
@@ -3,28 +3,34 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "EuiThemeAnimationEasings", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.EuiThemeAnimationEasings;
10
- }
11
- });
12
- Object.defineProperty(exports, "EuiThemeAnimationSpeeds", {
13
- enumerable: true,
14
- get: function get() {
15
- return _euiThemeCommon.EuiThemeAnimationSpeeds;
16
- }
17
- });
18
- Object.defineProperty(exports, "euiCanAnimate", {
19
- enumerable: true,
20
- get: function get() {
21
- return _euiThemeCommon.euiCanAnimate;
22
- }
23
- });
24
- Object.defineProperty(exports, "euiCantAnimate", {
25
- enumerable: true,
26
- get: function get() {
27
- return _euiThemeCommon.euiCantAnimate;
28
- }
29
- });
30
- var _euiThemeCommon = require("@elastic/eui-theme-common");
6
+ exports.euiCantAnimate = exports.euiCanAnimate = exports.EuiThemeAnimationSpeeds = exports.EuiThemeAnimationEasings = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ /**
16
+ * A constant storing the `prefers-reduced-motion` media query
17
+ * so that when it is turned off, animations are not run.
18
+ */
19
+ var euiCanAnimate = exports.euiCanAnimate = '@media screen and (prefers-reduced-motion: no-preference)';
20
+
21
+ /**
22
+ * A constant storing the `prefers-reduced-motion` media query that will
23
+ * only apply the content if the setting is off (reduce).
24
+ */
25
+ var euiCantAnimate = exports.euiCantAnimate = '@media screen and (prefers-reduced-motion: reduce)';
26
+
27
+ /**
28
+ * Speeds / Durations / Delays
29
+ */
30
+
31
+ var EuiThemeAnimationSpeeds = exports.EuiThemeAnimationSpeeds = ['extraFast', 'fast', 'normal', 'slow', 'extraSlow'];
32
+ /**
33
+ * Easings / Timing functions
34
+ */
35
+
36
+ var EuiThemeAnimationEasings = exports.EuiThemeAnimationEasings = ['bounce', 'resistance'];
@@ -3,10 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "EuiThemeBreakpoints", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.EuiThemeBreakpoints;
10
- }
11
- });
12
- var _euiThemeCommon = require("@elastic/eui-theme-common");
6
+ exports.EuiThemeBreakpoints = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ var EuiThemeBreakpoints = exports.EuiThemeBreakpoints = ['xs', 's', 'm', 'l', 'xl'];
16
+
17
+ // This type cannot be a string enum / must be a generic string
18
+ // in case consumers add custom breakpoint sizes, such as xxl or xxs
19
+
20
+ // Explicitly list out each key so we can document default values
21
+ // via JSDoc (which is available to devs in IDE via intellisense)
@@ -3,10 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "EuiThemeLevels", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.EuiThemeLevels;
10
- }
11
- });
12
- var _euiThemeCommon = require("@elastic/eui-theme-common");
6
+ exports.EuiThemeLevels = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ /**
16
+ * Z-Index
17
+ *
18
+ * Remember that z-index is relative to parent and based on the stacking context.
19
+ * z-indexes only compete against other z-indexes when they exist as children of
20
+ * that shared parent.
21
+ *
22
+ * That means a popover with a settings of 2, will still show above a modal
23
+ * with a setting of 100, if it is within that modal and not besides it.
24
+ *
25
+ * Generally that means it's a good idea to consider things added to this file
26
+ * as competitive only as siblings.
27
+ *
28
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
29
+ */
30
+
31
+ var EuiThemeLevels = exports.EuiThemeLevels = ['toast', 'modal', 'mask', 'navigation', 'menu', 'header', 'flyout', 'maskBelowHeader', 'content'];
@@ -3,16 +3,23 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "EuiThemeShadowSizes", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.EuiThemeShadowSizes;
10
- }
11
- });
12
- Object.defineProperty(exports, "_EuiShadowSizesDescriptions", {
13
- enumerable: true,
14
- get: function get() {
15
- return _euiThemeCommon._EuiShadowSizesDescriptions;
16
- }
17
- });
18
- var _euiThemeCommon = require("@elastic/eui-theme-common");
6
+ exports._EuiShadowSizesDescriptions = exports.EuiThemeShadowSizes = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ var EuiThemeShadowSizes = exports.EuiThemeShadowSizes = ['xs', 's', 'm', 'l', 'xl'];
16
+ /**
17
+ * Shadow t-shirt sizes descriptions
18
+ */
19
+ var _EuiShadowSizesDescriptions = exports._EuiShadowSizesDescriptions = {
20
+ xs: 'Very subtle shadow used on small components.',
21
+ s: 'Adds subtle depth, usually used in conjunction with a border.',
22
+ m: 'Used on small sized portalled content like popovers.',
23
+ l: 'Primary shadow used in most cases to add visible depth.',
24
+ xl: 'Very large shadows used for large portalled style containers like modals and flyouts.'
25
+ };
@@ -3,10 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "EuiThemeSizes", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.EuiThemeSizes;
10
- }
11
- });
12
- var _euiThemeCommon = require("@elastic/eui-theme-common");
6
+ exports.EuiThemeSizes = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ var EuiThemeSizes = exports.EuiThemeSizes = ['xxs', 'xs', 's', 'm', 'base', 'l', 'xl', 'xxl', 'xxxl', 'xxxxl'];