@elastic/eui 97.1.0 → 97.3.0-borealis.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (517) hide show
  1. package/es/components/badge/badge.js +1 -1
  2. package/es/components/badge/badge.styles.js +2 -2
  3. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  4. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  5. package/es/components/badge/color_utils.js +8 -7
  6. package/es/components/badge/notification_badge/badge_notification.js +1 -1
  7. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  8. package/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  9. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  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 +4 -4
  15. package/es/components/button/button_icon/button_icon.js +1 -1
  16. package/es/components/card/card.styles.js +1 -1
  17. package/es/components/code/code_block_annotations.js +1 -1
  18. package/es/components/code/code_block_line.styles.js +1 -2
  19. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  20. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  21. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  22. package/es/components/color_picker/color_picker.styles.js +1 -2
  23. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  24. package/es/components/combo_box/combo_box.js +9 -6
  25. package/es/components/common.js +0 -28
  26. package/es/components/context_menu/context_menu_panel.js +17 -1
  27. package/es/components/datagrid/body/cell/data_grid_cell.js +31 -8
  28. package/es/components/datagrid/body/data_grid_body.js +8 -0
  29. package/es/components/datagrid/body/data_grid_body_custom.js +8 -1
  30. package/es/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  31. package/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  32. package/es/components/datagrid/controls/display_selector.js +277 -207
  33. package/es/components/datagrid/data_grid.stories.utils.js +28 -2
  34. package/es/components/datagrid/data_grid.styles.js +4 -6
  35. package/es/components/datagrid/utils/col_widths.js +7 -13
  36. package/es/components/datagrid/utils/grid_height_width.js +1 -1
  37. package/es/components/datagrid/utils/row_heights.js +29 -13
  38. package/es/components/date_picker/react_date_picker.styles.js +2 -1
  39. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  40. package/es/components/drag_and_drop/droppable.styles.js +2 -4
  41. package/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  42. package/es/components/filter_group/filter_select_item.styles.js +1 -2
  43. package/es/components/flyout/_flyout_close_button.styles.js +1 -2
  44. package/es/components/form/form.styles.js +21 -28
  45. package/es/components/form/range/range_tooltip.styles.js +3 -7
  46. package/es/components/form/switch/switch.js +3 -7
  47. package/es/components/form/switch/switch.styles.js +16 -19
  48. package/es/components/header/header.styles.js +12 -6
  49. package/es/components/header/header_links/header_links.js +1 -1
  50. package/es/components/header/header_links/header_links.styles.js +1 -0
  51. package/es/components/icon/icon.styles.js +9 -8
  52. package/es/components/icon/named_colors.js +1 -1
  53. package/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  54. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  55. package/es/components/list_group/list_group_item.styles.js +9 -11
  56. package/es/components/mark/mark.styles.js +2 -9
  57. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  58. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  59. package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  60. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  61. package/es/components/popover/popover_footer.styles.js +1 -1
  62. package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  63. package/es/components/progress/progress.js +1 -1
  64. package/es/components/progress/progress.styles.js +8 -6
  65. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  66. package/es/components/side_nav/side_nav_item.styles.js +1 -2
  67. package/es/components/skeleton/utils.js +3 -5
  68. package/es/components/steps/step_number.styles.js +1 -1
  69. package/es/components/table/table_cells_shared.styles.js +2 -7
  70. package/es/components/table/table_row.styles.js +8 -10
  71. package/es/components/text/text.styles.js +2 -2
  72. package/es/components/text/text_color.js +1 -1
  73. package/es/components/text/text_color.styles.js +6 -5
  74. package/es/components/tool_tip/tool_tip.styles.js +8 -10
  75. package/es/components/tour/_tour_footer.styles.js +2 -4
  76. package/es/components/tree_view/tree_view_item.styles.js +1 -2
  77. package/es/global_styling/functions/size.js +1 -17
  78. package/es/global_styling/mixins/_button.js +159 -0
  79. package/es/global_styling/mixins/_color.js +40 -31
  80. package/es/global_styling/mixins/index.js +2 -1
  81. package/es/global_styling/reset/global_styles.js +2 -2
  82. package/es/global_styling/variables/_colors_vis.js +1 -53
  83. package/es/global_styling/variables/animations.js +1 -22
  84. package/es/global_styling/variables/breakpoint.js +1 -7
  85. package/es/global_styling/variables/levels.js +1 -17
  86. package/es/global_styling/variables/shadow.js +1 -11
  87. package/es/global_styling/variables/size.js +1 -1
  88. package/es/global_styling/variables/typography.js +1 -32
  89. package/es/services/hooks/useDeepEqual.js +18 -6
  90. package/es/services/theme/provider.js +11 -0
  91. package/es/services/theme/types.js +1 -6
  92. package/es/services/theme/utils.js +1 -303
  93. package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
  94. package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
  95. package/es/themes/amsterdam/global_styling/variables/_colors.js +587 -18
  96. package/es/themes/amsterdam/global_styling/variables/_components.js +442 -0
  97. package/es/themes/amsterdam/global_styling/variables/_forms.js +149 -0
  98. package/es/themes/amsterdam/theme.js +3 -1
  99. package/es/themes/index.js +1 -1
  100. package/es/themes/themes.js +7 -0
  101. package/eui.d.ts +2121 -2627
  102. package/i18ntokens.json +92 -110
  103. package/lib/components/badge/badge.js +1 -1
  104. package/lib/components/badge/badge.styles.js +2 -2
  105. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  106. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  107. package/lib/components/badge/color_utils.js +13 -12
  108. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  109. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  110. package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  111. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  112. package/lib/components/button/button.js +1 -1
  113. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  114. package/lib/components/button/button_empty/button_empty.js +1 -1
  115. package/lib/components/button/button_group/button_group_button.js +1 -1
  116. package/lib/components/button/button_group/button_group_button.styles.js +3 -3
  117. package/lib/components/button/button_icon/button_icon.js +1 -1
  118. package/lib/components/card/card.styles.js +1 -1
  119. package/lib/components/code/code_block_annotations.js +1 -1
  120. package/lib/components/code/code_block_line.styles.js +1 -2
  121. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  122. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  123. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  124. package/lib/components/color_picker/color_picker.styles.js +1 -2
  125. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  126. package/lib/components/combo_box/combo_box.js +9 -6
  127. package/lib/components/common.js +0 -28
  128. package/lib/components/context_menu/context_menu_panel.js +17 -1
  129. package/lib/components/datagrid/body/cell/data_grid_cell.js +31 -8
  130. package/lib/components/datagrid/body/data_grid_body.js +8 -0
  131. package/lib/components/datagrid/body/data_grid_body_custom.js +8 -1
  132. package/lib/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  133. package/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  134. package/lib/components/datagrid/controls/display_selector.js +275 -204
  135. package/lib/components/datagrid/data_grid.stories.utils.js +28 -2
  136. package/lib/components/datagrid/data_grid.styles.js +4 -6
  137. package/lib/components/datagrid/utils/col_widths.js +7 -13
  138. package/lib/components/datagrid/utils/grid_height_width.js +1 -1
  139. package/lib/components/datagrid/utils/row_heights.js +29 -13
  140. package/lib/components/date_picker/react_date_picker.styles.js +3 -2
  141. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  142. package/lib/components/drag_and_drop/droppable.styles.js +2 -4
  143. package/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  144. package/lib/components/filter_group/filter_select_item.styles.js +1 -2
  145. package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  146. package/lib/components/form/form.styles.js +20 -27
  147. package/lib/components/form/range/range_tooltip.styles.js +3 -7
  148. package/lib/components/form/switch/switch.js +3 -7
  149. package/lib/components/form/switch/switch.styles.js +16 -19
  150. package/lib/components/header/header.styles.js +11 -5
  151. package/lib/components/header/header_links/header_links.js +1 -1
  152. package/lib/components/header/header_links/header_links.styles.js +1 -0
  153. package/lib/components/icon/icon.styles.js +9 -8
  154. package/lib/components/icon/named_colors.js +1 -1
  155. package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  156. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  157. package/lib/components/list_group/list_group_item.styles.js +8 -10
  158. package/lib/components/mark/mark.styles.js +2 -9
  159. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  160. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  161. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  162. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  163. package/lib/components/popover/popover_footer.styles.js +1 -1
  164. package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  165. package/lib/components/progress/progress.js +1 -1
  166. package/lib/components/progress/progress.styles.js +8 -6
  167. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  168. package/lib/components/side_nav/side_nav_item.styles.js +1 -2
  169. package/lib/components/skeleton/utils.js +3 -5
  170. package/lib/components/steps/step_number.styles.js +1 -1
  171. package/lib/components/table/table_cells_shared.styles.js +2 -7
  172. package/lib/components/table/table_row.styles.js +7 -9
  173. package/lib/components/text/text.styles.js +1 -1
  174. package/lib/components/text/text_color.js +1 -1
  175. package/lib/components/text/text_color.styles.js +6 -5
  176. package/lib/components/tool_tip/tool_tip.styles.js +8 -10
  177. package/lib/components/tour/_tour_footer.styles.js +2 -4
  178. package/lib/components/tree_view/tree_view_item.styles.js +1 -2
  179. package/lib/global_styling/functions/size.js +7 -26
  180. package/lib/global_styling/mixins/_button.js +164 -0
  181. package/lib/global_styling/mixins/_color.js +39 -30
  182. package/lib/global_styling/mixins/index.js +11 -0
  183. package/lib/global_styling/reset/global_styles.js +1 -1
  184. package/lib/global_styling/variables/_colors_vis.js +6 -61
  185. package/lib/global_styling/variables/animations.js +25 -31
  186. package/lib/global_styling/variables/breakpoint.js +7 -16
  187. package/lib/global_styling/variables/levels.js +7 -26
  188. package/lib/global_styling/variables/shadow.js +13 -20
  189. package/lib/global_styling/variables/size.js +7 -10
  190. package/lib/global_styling/variables/typography.js +19 -41
  191. package/lib/services/hooks/useDeepEqual.js +17 -7
  192. package/lib/services/theme/provider.js +11 -0
  193. package/lib/services/theme/types.js +13 -14
  194. package/lib/services/theme/utils.js +54 -303
  195. package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
  196. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
  197. package/lib/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  198. package/lib/themes/amsterdam/global_styling/variables/_components.js +446 -0
  199. package/lib/themes/amsterdam/global_styling/variables/_forms.js +153 -0
  200. package/lib/themes/amsterdam/theme.js +3 -1
  201. package/lib/themes/index.js +7 -0
  202. package/lib/themes/themes.js +8 -1
  203. package/optimize/es/components/badge/badge.js +1 -1
  204. package/optimize/es/components/badge/badge.styles.js +2 -2
  205. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
  206. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  207. package/optimize/es/components/badge/color_utils.js +8 -7
  208. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  209. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  210. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  211. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  212. package/optimize/es/components/button/button.js +1 -1
  213. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  214. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  215. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  216. package/optimize/es/components/button/button_group/button_group_button.styles.js +4 -4
  217. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  218. package/optimize/es/components/card/card.styles.js +1 -1
  219. package/optimize/es/components/code/code_block_annotations.js +1 -1
  220. package/optimize/es/components/code/code_block_line.styles.js +1 -2
  221. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  222. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  223. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  224. package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
  225. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  226. package/optimize/es/components/combo_box/combo_box.js +9 -6
  227. package/optimize/es/components/common.js +0 -28
  228. package/optimize/es/components/context_menu/context_menu_panel.js +11 -1
  229. package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +15 -8
  230. package/optimize/es/components/datagrid/body/data_grid_body_custom.js +0 -1
  231. package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  232. package/optimize/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  233. package/optimize/es/components/datagrid/controls/display_selector.js +277 -207
  234. package/optimize/es/components/datagrid/data_grid.styles.js +4 -6
  235. package/optimize/es/components/datagrid/utils/col_widths.js +7 -13
  236. package/optimize/es/components/datagrid/utils/grid_height_width.js +1 -1
  237. package/optimize/es/components/datagrid/utils/row_heights.js +29 -13
  238. package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
  239. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  240. package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
  241. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  242. package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
  243. package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
  244. package/optimize/es/components/form/form.styles.js +21 -28
  245. package/optimize/es/components/form/range/range_tooltip.styles.js +3 -7
  246. package/optimize/es/components/form/switch/switch.js +3 -2
  247. package/optimize/es/components/form/switch/switch.styles.js +16 -19
  248. package/optimize/es/components/header/header.styles.js +12 -6
  249. package/optimize/es/components/header/header_links/header_links.js +1 -1
  250. package/optimize/es/components/header/header_links/header_links.styles.js +1 -0
  251. package/optimize/es/components/icon/icon.styles.js +9 -8
  252. package/optimize/es/components/icon/named_colors.js +1 -1
  253. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  254. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  255. package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
  256. package/optimize/es/components/mark/mark.styles.js +2 -9
  257. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  258. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  259. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  260. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  261. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  262. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  263. package/optimize/es/components/progress/progress.js +1 -1
  264. package/optimize/es/components/progress/progress.styles.js +8 -6
  265. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  266. package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
  267. package/optimize/es/components/skeleton/utils.js +3 -5
  268. package/optimize/es/components/steps/step_number.styles.js +1 -1
  269. package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
  270. package/optimize/es/components/table/table_row.styles.js +8 -10
  271. package/optimize/es/components/text/text.styles.js +2 -2
  272. package/optimize/es/components/text/text_color.js +1 -1
  273. package/optimize/es/components/text/text_color.styles.js +6 -5
  274. package/optimize/es/components/tool_tip/tool_tip.styles.js +8 -10
  275. package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
  276. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
  277. package/optimize/es/global_styling/functions/size.js +1 -17
  278. package/optimize/es/global_styling/mixins/_button.js +159 -0
  279. package/optimize/es/global_styling/mixins/_color.js +40 -31
  280. package/optimize/es/global_styling/mixins/index.js +2 -1
  281. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  282. package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
  283. package/optimize/es/global_styling/variables/animations.js +1 -22
  284. package/optimize/es/global_styling/variables/breakpoint.js +1 -7
  285. package/optimize/es/global_styling/variables/levels.js +1 -17
  286. package/optimize/es/global_styling/variables/shadow.js +1 -11
  287. package/optimize/es/global_styling/variables/size.js +1 -1
  288. package/optimize/es/global_styling/variables/typography.js +1 -32
  289. package/optimize/es/services/hooks/useDeepEqual.js +13 -6
  290. package/optimize/es/services/theme/provider.js +11 -0
  291. package/optimize/es/services/theme/types.js +1 -6
  292. package/optimize/es/services/theme/utils.js +1 -295
  293. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
  294. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
  295. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +587 -18
  296. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +434 -0
  297. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +141 -0
  298. package/optimize/es/themes/amsterdam/theme.js +3 -1
  299. package/optimize/es/themes/index.js +1 -1
  300. package/optimize/es/themes/themes.js +7 -0
  301. package/optimize/lib/components/badge/badge.js +1 -1
  302. package/optimize/lib/components/badge/badge.styles.js +2 -2
  303. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
  304. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  305. package/optimize/lib/components/badge/color_utils.js +13 -12
  306. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  307. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  308. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  309. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  310. package/optimize/lib/components/button/button.js +1 -1
  311. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  312. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  313. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  314. package/optimize/lib/components/button/button_group/button_group_button.styles.js +3 -3
  315. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  316. package/optimize/lib/components/card/card.styles.js +1 -1
  317. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  318. package/optimize/lib/components/code/code_block_line.styles.js +1 -2
  319. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  320. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  321. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  322. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
  323. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  324. package/optimize/lib/components/combo_box/combo_box.js +9 -6
  325. package/optimize/lib/components/common.js +0 -28
  326. package/optimize/lib/components/context_menu/context_menu_panel.js +11 -1
  327. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +15 -8
  328. package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +0 -1
  329. package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  330. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  331. package/optimize/lib/components/datagrid/controls/display_selector.js +274 -204
  332. package/optimize/lib/components/datagrid/data_grid.styles.js +4 -6
  333. package/optimize/lib/components/datagrid/utils/col_widths.js +7 -13
  334. package/optimize/lib/components/datagrid/utils/grid_height_width.js +1 -1
  335. package/optimize/lib/components/datagrid/utils/row_heights.js +29 -13
  336. package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
  337. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  338. package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
  339. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  340. package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
  341. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  342. package/optimize/lib/components/form/form.styles.js +20 -27
  343. package/optimize/lib/components/form/range/range_tooltip.styles.js +3 -7
  344. package/optimize/lib/components/form/switch/switch.js +3 -2
  345. package/optimize/lib/components/form/switch/switch.styles.js +16 -19
  346. package/optimize/lib/components/header/header.styles.js +11 -5
  347. package/optimize/lib/components/header/header_links/header_links.js +1 -1
  348. package/optimize/lib/components/header/header_links/header_links.styles.js +1 -0
  349. package/optimize/lib/components/icon/icon.styles.js +9 -8
  350. package/optimize/lib/components/icon/named_colors.js +1 -1
  351. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  352. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  353. package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
  354. package/optimize/lib/components/mark/mark.styles.js +2 -9
  355. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  356. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  357. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  358. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  359. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  360. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  361. package/optimize/lib/components/progress/progress.js +1 -1
  362. package/optimize/lib/components/progress/progress.styles.js +8 -6
  363. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  364. package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
  365. package/optimize/lib/components/skeleton/utils.js +3 -5
  366. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  367. package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
  368. package/optimize/lib/components/table/table_row.styles.js +7 -9
  369. package/optimize/lib/components/text/text.styles.js +1 -1
  370. package/optimize/lib/components/text/text_color.js +1 -1
  371. package/optimize/lib/components/text/text_color.styles.js +6 -5
  372. package/optimize/lib/components/tool_tip/tool_tip.styles.js +8 -10
  373. package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
  374. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
  375. package/optimize/lib/global_styling/functions/size.js +7 -27
  376. package/optimize/lib/global_styling/mixins/_button.js +165 -0
  377. package/optimize/lib/global_styling/mixins/_color.js +39 -30
  378. package/optimize/lib/global_styling/mixins/index.js +11 -0
  379. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  380. package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
  381. package/optimize/lib/global_styling/variables/animations.js +25 -31
  382. package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
  383. package/optimize/lib/global_styling/variables/levels.js +7 -26
  384. package/optimize/lib/global_styling/variables/shadow.js +13 -20
  385. package/optimize/lib/global_styling/variables/size.js +7 -10
  386. package/optimize/lib/global_styling/variables/typography.js +19 -41
  387. package/optimize/lib/services/hooks/useDeepEqual.js +12 -5
  388. package/optimize/lib/services/theme/provider.js +11 -0
  389. package/optimize/lib/services/theme/types.js +13 -14
  390. package/optimize/lib/services/theme/utils.js +54 -296
  391. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
  392. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  393. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  394. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +439 -0
  395. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +146 -0
  396. package/optimize/lib/themes/amsterdam/theme.js +3 -1
  397. package/optimize/lib/themes/index.js +7 -0
  398. package/optimize/lib/themes/themes.js +8 -1
  399. package/package.json +8 -3
  400. package/src/global_styling/functions/_index.scss +1 -5
  401. package/src/global_styling/index.scss +1 -16
  402. package/src/global_styling/variables/_animations.scss +1 -8
  403. package/src/global_styling/variables/_borders.scss +1 -9
  404. package/src/global_styling/variables/_buttons.scss +1 -18
  405. package/src/global_styling/variables/_colors_vis.scss +1 -70
  406. package/src/global_styling/variables/_font_weight.scss +1 -7
  407. package/src/global_styling/variables/_form.scss +2 -21
  408. package/src/global_styling/variables/_responsive.scss +1 -9
  409. package/src/global_styling/variables/_shadows.scss +1 -1
  410. package/src/global_styling/variables/_size.scss +1 -15
  411. package/src/global_styling/variables/_states.scss +1 -14
  412. package/src/global_styling/variables/_typography.scss +1 -75
  413. package/src/global_styling/variables/_z_index.scss +1 -33
  414. package/src/themes/amsterdam/_colors_dark.scss +80 -8
  415. package/src/themes/amsterdam/_colors_light.scss +80 -8
  416. package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
  417. package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
  418. package/test-env/components/badge/badge.js +1 -1
  419. package/test-env/components/badge/badge.styles.js +2 -2
  420. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  421. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -0
  422. package/test-env/components/badge/color_utils.js +13 -12
  423. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  424. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  425. package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
  426. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  427. package/test-env/components/button/button.js +1 -1
  428. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  429. package/test-env/components/button/button_empty/button_empty.js +1 -1
  430. package/test-env/components/button/button_group/button_group_button.js +1 -1
  431. package/test-env/components/button/button_group/button_group_button.styles.js +3 -3
  432. package/test-env/components/button/button_icon/button_icon.js +1 -1
  433. package/test-env/components/card/card.styles.js +1 -1
  434. package/test-env/components/code/code_block_annotations.js +1 -1
  435. package/test-env/components/code/code_block_line.styles.js +1 -2
  436. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  437. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  438. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  439. package/test-env/components/color_picker/color_picker.styles.js +1 -2
  440. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  441. package/test-env/components/combo_box/combo_box.js +9 -6
  442. package/test-env/components/common.js +0 -28
  443. package/test-env/components/context_menu/context_menu_panel.js +17 -1
  444. package/test-env/components/datagrid/body/cell/data_grid_cell.js +31 -8
  445. package/test-env/components/datagrid/body/data_grid_body.js +8 -0
  446. package/test-env/components/datagrid/body/data_grid_body_custom.js +8 -1
  447. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  448. package/test-env/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  449. package/test-env/components/datagrid/controls/display_selector.js +274 -204
  450. package/test-env/components/datagrid/data_grid.stories.utils.js +28 -2
  451. package/test-env/components/datagrid/data_grid.styles.js +4 -6
  452. package/test-env/components/datagrid/utils/col_widths.js +7 -13
  453. package/test-env/components/datagrid/utils/grid_height_width.js +1 -1
  454. package/test-env/components/datagrid/utils/row_heights.js +29 -13
  455. package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
  456. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  457. package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
  458. package/test-env/components/empty_prompt/empty_prompt.styles.js +4 -1
  459. package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
  460. package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
  461. package/test-env/components/form/form.styles.js +20 -27
  462. package/test-env/components/form/range/range_tooltip.styles.js +3 -7
  463. package/test-env/components/form/switch/switch.js +3 -2
  464. package/test-env/components/form/switch/switch.styles.js +16 -19
  465. package/test-env/components/header/header.styles.js +11 -5
  466. package/test-env/components/header/header_links/header_links.js +1 -1
  467. package/test-env/components/header/header_links/header_links.styles.js +1 -0
  468. package/test-env/components/icon/icon.styles.js +9 -8
  469. package/test-env/components/icon/named_colors.js +1 -1
  470. package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
  471. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  472. package/test-env/components/list_group/list_group_item.styles.js +8 -10
  473. package/test-env/components/mark/mark.styles.js +2 -9
  474. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  475. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  476. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
  477. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  478. package/test-env/components/popover/popover_footer.styles.js +1 -1
  479. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  480. package/test-env/components/progress/progress.js +1 -1
  481. package/test-env/components/progress/progress.styles.js +8 -6
  482. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  483. package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
  484. package/test-env/components/skeleton/utils.js +3 -5
  485. package/test-env/components/steps/step_number.styles.js +1 -1
  486. package/test-env/components/table/table_cells_shared.styles.js +2 -7
  487. package/test-env/components/table/table_row.styles.js +7 -9
  488. package/test-env/components/text/text.styles.js +1 -1
  489. package/test-env/components/text/text_color.js +1 -1
  490. package/test-env/components/text/text_color.styles.js +6 -5
  491. package/test-env/components/tool_tip/tool_tip.styles.js +8 -10
  492. package/test-env/components/tour/_tour_footer.styles.js +2 -4
  493. package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
  494. package/test-env/global_styling/functions/size.js +7 -27
  495. package/test-env/global_styling/mixins/_button.js +165 -0
  496. package/test-env/global_styling/mixins/_color.js +39 -30
  497. package/test-env/global_styling/mixins/index.js +11 -0
  498. package/test-env/global_styling/reset/global_styles.js +1 -1
  499. package/test-env/global_styling/variables/_colors_vis.js +6 -61
  500. package/test-env/global_styling/variables/animations.js +25 -31
  501. package/test-env/global_styling/variables/breakpoint.js +7 -16
  502. package/test-env/global_styling/variables/levels.js +7 -26
  503. package/test-env/global_styling/variables/shadow.js +13 -20
  504. package/test-env/global_styling/variables/size.js +7 -10
  505. package/test-env/global_styling/variables/typography.js +19 -41
  506. package/test-env/services/hooks/useDeepEqual.js +12 -5
  507. package/test-env/services/theme/provider.js +11 -0
  508. package/test-env/services/theme/types.js +13 -14
  509. package/test-env/services/theme/utils.js +54 -296
  510. package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
  511. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  512. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  513. package/test-env/themes/amsterdam/global_styling/variables/_components.js +439 -0
  514. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +146 -0
  515. package/test-env/themes/amsterdam/theme.js +3 -1
  516. package/test-env/themes/index.js +7 -0
  517. package/test-env/themes/themes.js +8 -1
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiToolTipStyles = exports.euiToolTipBorderColor = exports.euiToolTipBackgroundColor = exports.euiToolTipAnchorStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../global_styling");
9
- var _services = require("../../services");
10
9
  var _amsterdam = require("../../themes/amsterdam");
11
10
  var _templateObject, _templateObject2;
12
11
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
@@ -17,11 +16,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
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 euiToolTipBackgroundColor = exports.euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme, colorMode) {
21
- return colorMode === _services.COLOR_MODES_STANDARD.dark ? (0, _services.shade)(euiTheme.colors.emptyShade, 1) : (0, _services.tint)(euiTheme.colors.fullShade, 0.25);
19
+ var euiToolTipBackgroundColor = exports.euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme) {
20
+ return euiTheme.components.tooltipBackground;
22
21
  };
23
- var euiToolTipBorderColor = exports.euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme, colorMode) {
24
- return colorMode === _services.COLOR_MODES_STANDARD.dark ? (0, _services.shade)(euiTheme.colors.fullShade, 0.8) : (0, _services.tint)(euiTheme.colors.fullShade, 0.35);
22
+ var euiToolTipBorderColor = exports.euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme) {
23
+ return euiTheme.components.tooltipBorder;
25
24
  };
26
25
  var euiToolTipAnimationVertical = function euiToolTipAnimationVertical(size) {
27
26
  return (0, _react.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
@@ -30,8 +29,7 @@ var euiToolTipAnimationHorizontal = function euiToolTipAnimationHorizontal(size)
30
29
  return (0, _react.keyframes)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n"])), size);
31
30
  };
32
31
  var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
33
- var euiTheme = euiThemeContext.euiTheme,
34
- colorMode = euiThemeContext.colorMode;
32
+ var euiTheme = euiThemeContext.euiTheme;
35
33
  var animationTiming = "".concat(euiTheme.animation.slow, " ease-out 0s forwards");
36
34
  // Shift arrow 1px more than half its size to account for border radius
37
35
  var arrowSize = euiTheme.size.m;
@@ -43,7 +41,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
43
41
  });
44
42
  return {
45
43
  // Base
46
- euiToolTip: /*#__PURE__*/(0, _react.css)((0, _amsterdam.euiShadow)(euiThemeContext), " border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", (0, _global_styling.logicalCSS)('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme, colorMode), ";};label:euiToolTip;"),
44
+ euiToolTip: /*#__PURE__*/(0, _react.css)((0, _amsterdam.euiShadow)(euiThemeContext), " border-radius:", euiTheme.border.radius.medium, ";border:", euiTheme.border.width.thin, " solid ", euiTheme.components.tooltipBorderFloating, ";background-color:", euiToolTipBackgroundColor(euiTheme), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", (0, _global_styling.logicalCSS)('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme), ";};label:euiToolTip;"),
47
45
  // Sizes
48
46
  s: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";;label:s;"),
49
47
  // Positions
@@ -54,7 +52,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
54
52
  // Arrow
55
53
  euiToolTip__arrow: /*#__PURE__*/(0, _react.css)("content:'';position:absolute;transform-origin:center;border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
56
54
  return x / 2;
57
- }), ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";", (0, _global_styling.logicalSizeCSS)(arrowSize, arrowSize), ";;label:euiToolTip__arrow;"),
55
+ }), ";background-color:", euiToolTipBackgroundColor(euiTheme), ";", (0, _global_styling.logicalSizeCSS)(arrowSize, arrowSize), ";;label:euiToolTip__arrow;"),
58
56
  arrowPositions: {
59
57
  top: /*#__PURE__*/(0, _react.css)("transform:translateY(", arrowPlusSize, ") rotateZ(45deg);;label:top;"),
60
58
  bottom: /*#__PURE__*/(0, _react.css)("transform:translateY(", arrowMinusSize, ") rotateZ(45deg);;label:bottom;"),
@@ -62,7 +60,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
62
60
  right: /*#__PURE__*/(0, _react.css)("transform:translateX(", arrowMinusSize, ") rotateZ(45deg);;label:right;")
63
61
  },
64
62
  // Title
65
- euiToolTip__title: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.bold, ";", (0, _global_styling.logicalCSS)('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme, colorMode))), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
63
+ euiToolTip__title: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.bold, ";", (0, _global_styling.logicalCSS)('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme))), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
66
64
  };
67
65
  };
68
66
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiTourFooterStyles = exports._tourFooterBgColor = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../services");
9
8
  var _global_styling = require("../../global_styling");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -16,9 +15,8 @@ var _global_styling = require("../../global_styling");
16
15
  */
17
16
 
18
17
  var _tourFooterBgColor = exports._tourFooterBgColor = function _tourFooterBgColor(_ref) {
19
- var colorMode = _ref.colorMode,
20
- euiTheme = _ref.euiTheme;
21
- return colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.lightestShade, 0.45) : (0, _services.tint)(euiTheme.colors.lightestShade, 0.5);
18
+ var euiTheme = _ref.euiTheme;
19
+ return euiTheme.components.tourFooterBackground;
22
20
  };
23
21
  var euiTourFooterStyles = exports.euiTourFooterStyles = function euiTourFooterStyles(euiThemeContext) {
24
22
  var euiTheme = euiThemeContext.euiTheme;
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiTreeViewItemStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../services");
9
8
  var _global_styling = require("../../global_styling");
10
9
  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)."; } /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -34,7 +33,7 @@ var euiTreeViewItemStyles = exports.euiTreeViewItemStyles = function euiTreeView
34
33
  expanded: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', '100vh'), ";;label:expanded;")
35
34
  },
36
35
  button: {
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;"),
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;"),
38
37
  default: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', defaultSize), " gap:", euiTheme.size.s, ";border-radius:", euiTheme.border.radius.medium, ";;label:default;"),
39
38
  compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedSize), " gap:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";;label:compressed;")
40
39
  },
@@ -3,29 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.sizeToPixel = void 0;
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- /*
9
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
- * or more contributor license agreements. Licensed under the Elastic License
11
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
12
- * in compliance with, at your election, the Elastic License 2.0 or the Server
13
- * Side Public License, v 1.
14
- */
15
-
16
- /**
17
- * Calculates the `px` value based on a scale multiplier
18
- * @param scale - The font scale multiplier
19
- * *
20
- * @param themeOrBase - Theme base value
21
- * *
22
- * @returns string - Rem unit aligned to baseline
23
- */
24
-
25
- var sizeToPixel = exports.sizeToPixel = function sizeToPixel() {
26
- var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
27
- return function (themeOrBase) {
28
- var base = _typeof(themeOrBase) === 'object' ? themeOrBase.base : themeOrBase;
29
- return "".concat(base * scale, "px");
30
- };
31
- };
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");
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
9
+ var _services = require("../../services");
10
+ var _templateObject;
11
+ /*
12
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
13
+ * or more contributor license agreements. Licensed under the Elastic License
14
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
15
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
16
+ * Side Public License, v 1.
17
+ */
18
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
19
+ var BUTTON_COLORS = exports.BUTTON_COLORS = ['text', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
20
+ var BUTTON_DISPLAYS = exports.BUTTON_DISPLAYS = ['base', 'fill', 'empty'];
21
+ /**
22
+ * Creates the `base` version of button styles with proper text contrast.
23
+ * @param euiThemeContext
24
+ * @param color One of the named button colors or 'disabled'
25
+ * @returns Style object `{ backgroundColor, color }`
26
+ */
27
+ var euiButtonColor = exports.euiButtonColor = function euiButtonColor(euiThemeContext, color) {
28
+ var euiTheme = euiThemeContext.euiTheme;
29
+ var backgroundTokenName = (0, _euiThemeCommon.getTokenName)('background', color);
30
+ var textTokenName = (0, _euiThemeCommon.getTokenName)('textColor', color);
31
+ var foreground = euiTheme.components.buttons[textTokenName];
32
+ var background = euiTheme.components.buttons[backgroundTokenName];
33
+ return {
34
+ color: background === 'transparent' || color === 'disabled' ? foreground : (0, _services.makeHighContrastColor)(foreground)(background),
35
+ backgroundColor: background
36
+ };
37
+ };
38
+
39
+ /**
40
+ * Creates the `fill` version of buttons styles with proper text contrast.
41
+ * @param euiThemeContext
42
+ * @param color One of the named button colors or 'disabled'
43
+ * @returns Style object `{ backgroundColor, color }`
44
+ */
45
+ var euiButtonFillColor = exports.euiButtonFillColor = function euiButtonFillColor(euiThemeContext, color) {
46
+ var euiTheme = euiThemeContext.euiTheme;
47
+ var backgroundTokenName = (0, _euiThemeCommon.getTokenName)('backgroundFilled', color);
48
+ var textColorTokenName = (0, _euiThemeCommon.getTokenName)('textColorFilled', color);
49
+ var foreground = euiTheme.components.buttons[textColorTokenName];
50
+ var background = euiTheme.components.buttons[backgroundTokenName];
51
+ return {
52
+ color: foreground,
53
+ backgroundColor: background
54
+ };
55
+ };
56
+
57
+ /**
58
+ * Creates the `empty` version of button styles using the text-variant and adding interactive styles.
59
+ * @param euiThemeContext
60
+ * @param color One of the named button colors or 'disabled'
61
+ * @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
62
+ */
63
+ var euiButtonEmptyColor = exports.euiButtonEmptyColor = function euiButtonEmptyColor(euiThemeContext, color) {
64
+ var foreground;
65
+ var background;
66
+ switch (color) {
67
+ case 'disabled':
68
+ foreground = euiButtonColor(euiThemeContext, color).color;
69
+ background = 'transparent';
70
+ break;
71
+ default:
72
+ {
73
+ var backgroundToken = (0, _euiThemeCommon.getTokenName)('backgroundEmpty', color, 'hover');
74
+ foreground = euiButtonColor(euiThemeContext, color).color;
75
+ background = euiThemeContext.euiTheme.components.buttons[backgroundToken];
76
+ break;
77
+ }
78
+ }
79
+ return {
80
+ color: foreground,
81
+ backgroundColor: background
82
+ };
83
+ };
84
+
85
+ /**
86
+ * Given the button display type, returns the Emotion based color keys.
87
+ * @param options Button display type
88
+ * @returns An object of `_EuiButtonColor` keys including `disabled`
89
+ */
90
+ var useEuiButtonColorCSS = exports.useEuiButtonColorCSS = function useEuiButtonColorCSS() {
91
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
92
+ var _options$display = options.display,
93
+ display = _options$display === void 0 ? 'base' : _options$display;
94
+ var colorsDisplaysMap = (0, _services.useEuiMemoizedStyles)(euiButtonDisplaysColors);
95
+ return colorsDisplaysMap[display];
96
+ };
97
+ var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
98
+ var COLORS = [].concat(BUTTON_COLORS, ['disabled']);
99
+ var displaysColorsMap = {};
100
+ BUTTON_DISPLAYS.forEach(function (display) {
101
+ displaysColorsMap[display] = {};
102
+ COLORS.forEach(function (color) {
103
+ switch (display) {
104
+ case 'base':
105
+ displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonColor(euiThemeContext, color), ";;label:displaysColorsMap-display-color;");
106
+ break;
107
+ case 'fill':
108
+ displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";;label:displaysColorsMap-display-color;");
109
+ break;
110
+ case 'empty':
111
+ displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";&:focus,&:active{background-color:", euiButtonEmptyColor(euiThemeContext, color).backgroundColor, ";};label:displaysColorsMap-display-color;");
112
+ break;
113
+ }
114
+
115
+ // Tweak auto-generated Emotion label/className output
116
+ var emotionOutput = displaysColorsMap[display][color];
117
+ emotionOutput.styles = emotionOutput.styles.replace('label:displaysColorsMap-display-color;', "label:".concat(display, "-").concat(color, ";"));
118
+ });
119
+ });
120
+ return displaysColorsMap;
121
+ };
122
+
123
+ /**
124
+ * Creates the translate animation when button is in focus.
125
+ * @returns string
126
+ */
127
+ var useEuiButtonFocusCSS = exports.useEuiButtonFocusCSS = function useEuiButtonFocusCSS() {
128
+ return (0, _services.useEuiMemoizedStyles)(euiButtonFocusCSS);
129
+ };
130
+ var euiButtonFocusAnimation = (0, _react.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 50% {\n transform: translateY(1px);\n }\n"])));
131
+ var euiButtonFocusCSS = function euiButtonFocusCSS(_ref) {
132
+ var euiTheme = _ref.euiTheme;
133
+ var focusCSS = /*#__PURE__*/(0, _react.css)(_euiThemeCommon.euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ease-in-out,background-color ", euiTheme.animation.normal, " ease-in-out;&:hover:not(:disabled){transform:translateY(-1px);}&:focus{animation:", euiButtonFocusAnimation, " ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";}&:active:not(:disabled){transform:translateY(1px);}};label:focusCSS;");
134
+ // Remove the auto-generated label.
135
+ // We could typically avoid a label by using a plain string `` instead of css``,
136
+ // but we need css`` for keyframes`` to work for the focus animation
137
+ focusCSS.styles = focusCSS.styles.replace('label:focusCSS;', '');
138
+ return focusCSS;
139
+ };
140
+
141
+ /**
142
+ * Map of `size` props to various sizings/scales
143
+ * that should remain consistent across all buttons
144
+ */
145
+ var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(_ref2) {
146
+ var euiTheme = _ref2.euiTheme;
147
+ return {
148
+ xs: {
149
+ height: euiTheme.size.l,
150
+ radius: euiTheme.border.radius.small,
151
+ fontScale: 'xs'
152
+ },
153
+ s: {
154
+ height: euiTheme.size.xl,
155
+ radius: euiTheme.border.radius.small,
156
+ fontScale: 's'
157
+ },
158
+ m: {
159
+ height: euiTheme.size.xxl,
160
+ radius: euiTheme.border.radius.medium,
161
+ fontScale: 's'
162
+ }
163
+ };
164
+ };
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useEuiBorderColorCSS = exports.useEuiBackgroundColorCSS = exports.useEuiBackgroundColor = exports.euiBorderColor = exports.euiBackgroundColor = exports.BACKGROUND_COLORS = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _services = require("../../services");
9
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
9
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
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; }
11
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) { _defineProperty(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; }
@@ -18,40 +19,27 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
19
  * in compliance with, at your election, the Elastic License 2.0 or the Server
19
20
  * Side Public License, v 1.
20
21
  */
21
- var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'primary', 'success', 'warning', 'danger'];
22
+ var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
22
23
  /**
24
+ * @deprecated - use background tokens directly
23
25
  * @returns A single background color with optional alpha transparency
24
26
  */
25
27
  var euiBackgroundColor = exports.euiBackgroundColor = function euiBackgroundColor(_ref, color) {
26
- var euiTheme = _ref.euiTheme,
27
- colorMode = _ref.colorMode;
28
+ var euiTheme = _ref.euiTheme;
28
29
  var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
29
30
  method = _ref2.method;
30
31
  if (color === 'transparent') return 'transparent';
31
32
  if (method === 'transparent') {
32
- if (color === 'plain') {
33
- return (0, _services.transparentize)(euiTheme.colors.ghost, 0.2);
34
- } else if (color === 'subdued') {
35
- return colorMode === 'DARK' ? (0, _services.transparentize)(euiTheme.colors.lightShade, 0.4) : (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
36
- } else {
37
- return (0, _services.transparentize)(euiTheme.colors[color], 0.1);
38
- }
33
+ var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundTransparent', color);
34
+ return euiTheme.colors[tokenName];
39
35
  } else {
40
- var _tintOrShade = function _tintOrShade(color) {
41
- return colorMode === 'DARK' ? (0, _services.shade)(color, 0.8) : (0, _services.tint)(color, 0.9);
42
- };
43
- switch (color) {
44
- case 'plain':
45
- return euiTheme.colors.emptyShade;
46
- case 'subdued':
47
- return euiTheme.colors.body;
48
- default:
49
- return _tintOrShade(euiTheme.colors[color]);
50
- }
36
+ var _tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
37
+ return euiTheme.colors[_tokenName];
51
38
  }
52
39
  };
53
40
 
54
41
  /**
42
+ * @deprecated
55
43
  * @returns An object map of color keys to color values, categorized by
56
44
  * opaque (default) vs transparency (hover/focus states) methods.
57
45
  * e.g. {
@@ -71,6 +59,10 @@ var _euiBackgroundColorMap = function _euiBackgroundColorMap(euiThemeContext) {
71
59
  }, {})
72
60
  };
73
61
  };
62
+
63
+ /**
64
+ * @deprecated
65
+ */
74
66
  var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackgroundColor(color) {
75
67
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
76
68
  method = _ref3.method;
@@ -79,34 +71,44 @@ var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackg
79
71
  };
80
72
 
81
73
  /**
74
+ * @deprecated
82
75
  * @returns An object map of color keys to CSS,
83
76
  * e.g. { danger: css``, success: css``, ... }
84
77
  */
85
78
  var _euiBackgroundColors = function _euiBackgroundColors(euiThemeContext) {
86
79
  return BACKGROUND_COLORS.reduce(function (acc, color) {
87
- return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/(0, _react.css)("background-color:", euiBackgroundColor(euiThemeContext, color), ";label:", color, ";")));
80
+ var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
81
+ var backgroundColor = color === 'transparent' ? 'transparent' : euiThemeContext.euiTheme.colors[tokenName];
82
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/(0, _react.css)("background-color:", backgroundColor, ";label:", color, ";")));
88
83
  }, {});
89
84
  };
85
+
86
+ /**
87
+ * @deprecated - use background tokens directly
88
+ * Hook to retrieve background style for a background color variant
89
+ * @returns An object map of color keys to CSS,
90
+ * e.g. { danger: css``, success: css``, ... }
91
+ */
90
92
  var useEuiBackgroundColorCSS = exports.useEuiBackgroundColorCSS = function useEuiBackgroundColorCSS() {
91
93
  return (0, _services.useEuiMemoizedStyles)(_euiBackgroundColors);
92
94
  };
93
95
 
94
96
  /**
95
97
  * Border colors
98
+ * @deprecated - use border tokens directly or use
99
+ * `useEuiBorderColorCSS()` for composed styles
96
100
  */
97
101
 
98
102
  var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, color) {
99
- var euiTheme = _ref4.euiTheme,
100
- colorMode = _ref4.colorMode;
103
+ var euiTheme = _ref4.euiTheme;
101
104
  switch (color) {
102
105
  case 'transparent':
103
- case 'plain':
104
- case 'subdued':
105
106
  return euiTheme.border.color;
106
- case 'warning':
107
- return (0, _services.tintOrShade)(euiTheme.colors.warning, 0.4, colorMode);
108
107
  default:
109
- return (0, _services.tintOrShade)(euiTheme.colors[color], 0.6, colorMode);
108
+ {
109
+ var tokenName = (0, _euiThemeCommon.getTokenName)('borderStrong', color);
110
+ return euiTheme.colors[tokenName];
111
+ }
110
112
  }
111
113
  };
112
114
 
@@ -116,9 +118,16 @@ var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, col
116
118
  */
117
119
  var _euiBorderColors = function _euiBorderColors(euiThemeContext) {
118
120
  return BACKGROUND_COLORS.reduce(function (acc, color) {
119
- return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/(0, _react.css)("border-color:", euiBorderColor(euiThemeContext, color), ";label:", color, ";")));
121
+ var borderToken = (0, _euiThemeCommon.getTokenName)('borderBase', color);
122
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/(0, _react.css)("border-color:", euiThemeContext.euiTheme.colors[borderToken], ";label:", color, ";")));
120
123
  }, {});
121
124
  };
125
+
126
+ /**
127
+ * Hook to retrieve border style for a border variant
128
+ * @returns An object map of color keys to CSS,
129
+ * e.g. { danger: css``, success: css``, ... }
130
+ */
122
131
  var useEuiBorderColorCSS = exports.useEuiBorderColorCSS = function useEuiBorderColorCSS() {
123
132
  return (0, _services.useEuiMemoizedStyles)(_euiBorderColors);
124
133
  };
@@ -68,4 +68,15 @@ 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
+ });
71
82
  });
@@ -39,7 +39,7 @@ var EuiGlobalStyles = exports.EuiGlobalStyles = function EuiGlobalStyles(_ref) {
39
39
  * so that it knows to use custom styles. Therefore, we just reuse the same scrollbar mixin with thick size.
40
40
  */
41
41
  var scrollbarStyles = (0, _mixins.euiScrollBarStyles)(euiThemeContext, {
42
- trackColor: colorMode === 'LIGHT' ? (0, _color.shade)(colors.body, 0.03) : (0, _color.tint)(colors.body, 0.07),
42
+ trackColor: euiTheme.components.scrollbarTrackColor,
43
43
  width: 'auto'
44
44
  });
45
45
 
@@ -3,65 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
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'
6
+ Object.defineProperty(exports, "colorVis", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _euiThemeCommon.colorVis;
54
10
  }
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
- };
11
+ });
12
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
@@ -3,34 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
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'];
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");
@@ -3,19 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
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)
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");