@elastic/eui 97.2.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 (502) 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/grid_height_width.js +1 -1
  36. package/es/components/datagrid/utils/row_heights.js +29 -13
  37. package/es/components/date_picker/react_date_picker.styles.js +2 -1
  38. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  39. package/es/components/drag_and_drop/droppable.styles.js +2 -4
  40. package/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  41. package/es/components/filter_group/filter_select_item.styles.js +1 -2
  42. package/es/components/flyout/_flyout_close_button.styles.js +1 -2
  43. package/es/components/form/form.styles.js +21 -28
  44. package/es/components/form/range/range_tooltip.styles.js +3 -7
  45. package/es/components/form/switch/switch.js +3 -7
  46. package/es/components/form/switch/switch.styles.js +16 -19
  47. package/es/components/header/header.styles.js +12 -6
  48. package/es/components/icon/icon.styles.js +9 -8
  49. package/es/components/icon/named_colors.js +1 -1
  50. package/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  51. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  52. package/es/components/list_group/list_group_item.styles.js +9 -11
  53. package/es/components/mark/mark.styles.js +2 -9
  54. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  55. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  56. package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  57. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  58. package/es/components/popover/popover_footer.styles.js +1 -1
  59. package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  60. package/es/components/progress/progress.js +1 -1
  61. package/es/components/progress/progress.styles.js +8 -6
  62. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  63. package/es/components/side_nav/side_nav_item.styles.js +1 -2
  64. package/es/components/skeleton/utils.js +3 -5
  65. package/es/components/steps/step_number.styles.js +1 -1
  66. package/es/components/table/table_cells_shared.styles.js +2 -7
  67. package/es/components/table/table_row.styles.js +8 -10
  68. package/es/components/text/text.styles.js +2 -2
  69. package/es/components/text/text_color.js +1 -1
  70. package/es/components/text/text_color.styles.js +6 -5
  71. package/es/components/tool_tip/tool_tip.styles.js +8 -10
  72. package/es/components/tour/_tour_footer.styles.js +2 -4
  73. package/es/components/tree_view/tree_view_item.styles.js +1 -2
  74. package/es/global_styling/functions/size.js +1 -17
  75. package/es/global_styling/mixins/_button.js +159 -0
  76. package/es/global_styling/mixins/_color.js +40 -31
  77. package/es/global_styling/mixins/index.js +2 -1
  78. package/es/global_styling/reset/global_styles.js +2 -2
  79. package/es/global_styling/variables/_colors_vis.js +1 -53
  80. package/es/global_styling/variables/animations.js +1 -22
  81. package/es/global_styling/variables/breakpoint.js +1 -7
  82. package/es/global_styling/variables/levels.js +1 -17
  83. package/es/global_styling/variables/shadow.js +1 -11
  84. package/es/global_styling/variables/size.js +1 -1
  85. package/es/global_styling/variables/typography.js +1 -32
  86. package/es/services/hooks/useDeepEqual.js +18 -6
  87. package/es/services/theme/provider.js +11 -0
  88. package/es/services/theme/types.js +1 -6
  89. package/es/services/theme/utils.js +1 -303
  90. package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
  91. package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
  92. package/es/themes/amsterdam/global_styling/variables/_colors.js +587 -18
  93. package/es/themes/amsterdam/global_styling/variables/_components.js +442 -0
  94. package/es/themes/amsterdam/global_styling/variables/_forms.js +149 -0
  95. package/es/themes/amsterdam/theme.js +3 -1
  96. package/es/themes/index.js +1 -1
  97. package/es/themes/themes.js +7 -0
  98. package/eui.d.ts +2120 -2627
  99. package/i18ntokens.json +88 -106
  100. package/lib/components/badge/badge.js +1 -1
  101. package/lib/components/badge/badge.styles.js +2 -2
  102. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  103. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  104. package/lib/components/badge/color_utils.js +13 -12
  105. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  106. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  107. package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  108. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  109. package/lib/components/button/button.js +1 -1
  110. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  111. package/lib/components/button/button_empty/button_empty.js +1 -1
  112. package/lib/components/button/button_group/button_group_button.js +1 -1
  113. package/lib/components/button/button_group/button_group_button.styles.js +3 -3
  114. package/lib/components/button/button_icon/button_icon.js +1 -1
  115. package/lib/components/card/card.styles.js +1 -1
  116. package/lib/components/code/code_block_annotations.js +1 -1
  117. package/lib/components/code/code_block_line.styles.js +1 -2
  118. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  119. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  120. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  121. package/lib/components/color_picker/color_picker.styles.js +1 -2
  122. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  123. package/lib/components/combo_box/combo_box.js +9 -6
  124. package/lib/components/common.js +0 -28
  125. package/lib/components/context_menu/context_menu_panel.js +17 -1
  126. package/lib/components/datagrid/body/cell/data_grid_cell.js +31 -8
  127. package/lib/components/datagrid/body/data_grid_body.js +8 -0
  128. package/lib/components/datagrid/body/data_grid_body_custom.js +8 -1
  129. package/lib/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  130. package/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  131. package/lib/components/datagrid/controls/display_selector.js +275 -204
  132. package/lib/components/datagrid/data_grid.stories.utils.js +28 -2
  133. package/lib/components/datagrid/data_grid.styles.js +4 -6
  134. package/lib/components/datagrid/utils/grid_height_width.js +1 -1
  135. package/lib/components/datagrid/utils/row_heights.js +29 -13
  136. package/lib/components/date_picker/react_date_picker.styles.js +3 -2
  137. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  138. package/lib/components/drag_and_drop/droppable.styles.js +2 -4
  139. package/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  140. package/lib/components/filter_group/filter_select_item.styles.js +1 -2
  141. package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  142. package/lib/components/form/form.styles.js +20 -27
  143. package/lib/components/form/range/range_tooltip.styles.js +3 -7
  144. package/lib/components/form/switch/switch.js +3 -7
  145. package/lib/components/form/switch/switch.styles.js +16 -19
  146. package/lib/components/header/header.styles.js +11 -5
  147. package/lib/components/icon/icon.styles.js +9 -8
  148. package/lib/components/icon/named_colors.js +1 -1
  149. package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  150. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  151. package/lib/components/list_group/list_group_item.styles.js +8 -10
  152. package/lib/components/mark/mark.styles.js +2 -9
  153. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  154. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  155. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  156. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  157. package/lib/components/popover/popover_footer.styles.js +1 -1
  158. package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  159. package/lib/components/progress/progress.js +1 -1
  160. package/lib/components/progress/progress.styles.js +8 -6
  161. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  162. package/lib/components/side_nav/side_nav_item.styles.js +1 -2
  163. package/lib/components/skeleton/utils.js +3 -5
  164. package/lib/components/steps/step_number.styles.js +1 -1
  165. package/lib/components/table/table_cells_shared.styles.js +2 -7
  166. package/lib/components/table/table_row.styles.js +7 -9
  167. package/lib/components/text/text.styles.js +1 -1
  168. package/lib/components/text/text_color.js +1 -1
  169. package/lib/components/text/text_color.styles.js +6 -5
  170. package/lib/components/tool_tip/tool_tip.styles.js +8 -10
  171. package/lib/components/tour/_tour_footer.styles.js +2 -4
  172. package/lib/components/tree_view/tree_view_item.styles.js +1 -2
  173. package/lib/global_styling/functions/size.js +7 -26
  174. package/lib/global_styling/mixins/_button.js +164 -0
  175. package/lib/global_styling/mixins/_color.js +39 -30
  176. package/lib/global_styling/mixins/index.js +11 -0
  177. package/lib/global_styling/reset/global_styles.js +1 -1
  178. package/lib/global_styling/variables/_colors_vis.js +6 -61
  179. package/lib/global_styling/variables/animations.js +25 -31
  180. package/lib/global_styling/variables/breakpoint.js +7 -16
  181. package/lib/global_styling/variables/levels.js +7 -26
  182. package/lib/global_styling/variables/shadow.js +13 -20
  183. package/lib/global_styling/variables/size.js +7 -10
  184. package/lib/global_styling/variables/typography.js +19 -41
  185. package/lib/services/hooks/useDeepEqual.js +17 -7
  186. package/lib/services/theme/provider.js +11 -0
  187. package/lib/services/theme/types.js +13 -14
  188. package/lib/services/theme/utils.js +54 -303
  189. package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
  190. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
  191. package/lib/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  192. package/lib/themes/amsterdam/global_styling/variables/_components.js +446 -0
  193. package/lib/themes/amsterdam/global_styling/variables/_forms.js +153 -0
  194. package/lib/themes/amsterdam/theme.js +3 -1
  195. package/lib/themes/index.js +7 -0
  196. package/lib/themes/themes.js +8 -1
  197. package/optimize/es/components/badge/badge.js +1 -1
  198. package/optimize/es/components/badge/badge.styles.js +2 -2
  199. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
  200. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  201. package/optimize/es/components/badge/color_utils.js +8 -7
  202. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  203. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  204. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  205. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  206. package/optimize/es/components/button/button.js +1 -1
  207. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  208. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  209. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  210. package/optimize/es/components/button/button_group/button_group_button.styles.js +4 -4
  211. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  212. package/optimize/es/components/card/card.styles.js +1 -1
  213. package/optimize/es/components/code/code_block_annotations.js +1 -1
  214. package/optimize/es/components/code/code_block_line.styles.js +1 -2
  215. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  216. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  217. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  218. package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
  219. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  220. package/optimize/es/components/combo_box/combo_box.js +9 -6
  221. package/optimize/es/components/common.js +0 -28
  222. package/optimize/es/components/context_menu/context_menu_panel.js +11 -1
  223. package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +15 -8
  224. package/optimize/es/components/datagrid/body/data_grid_body_custom.js +0 -1
  225. package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  226. package/optimize/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  227. package/optimize/es/components/datagrid/controls/display_selector.js +277 -207
  228. package/optimize/es/components/datagrid/data_grid.styles.js +4 -6
  229. package/optimize/es/components/datagrid/utils/grid_height_width.js +1 -1
  230. package/optimize/es/components/datagrid/utils/row_heights.js +29 -13
  231. package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
  232. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  233. package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
  234. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  235. package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
  236. package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
  237. package/optimize/es/components/form/form.styles.js +21 -28
  238. package/optimize/es/components/form/range/range_tooltip.styles.js +3 -7
  239. package/optimize/es/components/form/switch/switch.js +3 -2
  240. package/optimize/es/components/form/switch/switch.styles.js +16 -19
  241. package/optimize/es/components/header/header.styles.js +12 -6
  242. package/optimize/es/components/icon/icon.styles.js +9 -8
  243. package/optimize/es/components/icon/named_colors.js +1 -1
  244. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  245. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  246. package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
  247. package/optimize/es/components/mark/mark.styles.js +2 -9
  248. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  249. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  250. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  251. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  252. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  253. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  254. package/optimize/es/components/progress/progress.js +1 -1
  255. package/optimize/es/components/progress/progress.styles.js +8 -6
  256. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  257. package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
  258. package/optimize/es/components/skeleton/utils.js +3 -5
  259. package/optimize/es/components/steps/step_number.styles.js +1 -1
  260. package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
  261. package/optimize/es/components/table/table_row.styles.js +8 -10
  262. package/optimize/es/components/text/text.styles.js +2 -2
  263. package/optimize/es/components/text/text_color.js +1 -1
  264. package/optimize/es/components/text/text_color.styles.js +6 -5
  265. package/optimize/es/components/tool_tip/tool_tip.styles.js +8 -10
  266. package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
  267. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
  268. package/optimize/es/global_styling/functions/size.js +1 -17
  269. package/optimize/es/global_styling/mixins/_button.js +159 -0
  270. package/optimize/es/global_styling/mixins/_color.js +40 -31
  271. package/optimize/es/global_styling/mixins/index.js +2 -1
  272. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  273. package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
  274. package/optimize/es/global_styling/variables/animations.js +1 -22
  275. package/optimize/es/global_styling/variables/breakpoint.js +1 -7
  276. package/optimize/es/global_styling/variables/levels.js +1 -17
  277. package/optimize/es/global_styling/variables/shadow.js +1 -11
  278. package/optimize/es/global_styling/variables/size.js +1 -1
  279. package/optimize/es/global_styling/variables/typography.js +1 -32
  280. package/optimize/es/services/hooks/useDeepEqual.js +13 -6
  281. package/optimize/es/services/theme/provider.js +11 -0
  282. package/optimize/es/services/theme/types.js +1 -6
  283. package/optimize/es/services/theme/utils.js +1 -295
  284. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
  285. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
  286. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +587 -18
  287. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +434 -0
  288. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +141 -0
  289. package/optimize/es/themes/amsterdam/theme.js +3 -1
  290. package/optimize/es/themes/index.js +1 -1
  291. package/optimize/es/themes/themes.js +7 -0
  292. package/optimize/lib/components/badge/badge.js +1 -1
  293. package/optimize/lib/components/badge/badge.styles.js +2 -2
  294. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
  295. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  296. package/optimize/lib/components/badge/color_utils.js +13 -12
  297. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  298. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  299. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  300. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  301. package/optimize/lib/components/button/button.js +1 -1
  302. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  303. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  304. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  305. package/optimize/lib/components/button/button_group/button_group_button.styles.js +3 -3
  306. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  307. package/optimize/lib/components/card/card.styles.js +1 -1
  308. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  309. package/optimize/lib/components/code/code_block_line.styles.js +1 -2
  310. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  311. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  312. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  313. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
  314. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  315. package/optimize/lib/components/combo_box/combo_box.js +9 -6
  316. package/optimize/lib/components/common.js +0 -28
  317. package/optimize/lib/components/context_menu/context_menu_panel.js +11 -1
  318. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +15 -8
  319. package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +0 -1
  320. package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  321. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  322. package/optimize/lib/components/datagrid/controls/display_selector.js +274 -204
  323. package/optimize/lib/components/datagrid/data_grid.styles.js +4 -6
  324. package/optimize/lib/components/datagrid/utils/grid_height_width.js +1 -1
  325. package/optimize/lib/components/datagrid/utils/row_heights.js +29 -13
  326. package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
  327. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  328. package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
  329. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  330. package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
  331. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  332. package/optimize/lib/components/form/form.styles.js +20 -27
  333. package/optimize/lib/components/form/range/range_tooltip.styles.js +3 -7
  334. package/optimize/lib/components/form/switch/switch.js +3 -2
  335. package/optimize/lib/components/form/switch/switch.styles.js +16 -19
  336. package/optimize/lib/components/header/header.styles.js +11 -5
  337. package/optimize/lib/components/icon/icon.styles.js +9 -8
  338. package/optimize/lib/components/icon/named_colors.js +1 -1
  339. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  340. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  341. package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
  342. package/optimize/lib/components/mark/mark.styles.js +2 -9
  343. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  344. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  345. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  346. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  347. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  348. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  349. package/optimize/lib/components/progress/progress.js +1 -1
  350. package/optimize/lib/components/progress/progress.styles.js +8 -6
  351. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  352. package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
  353. package/optimize/lib/components/skeleton/utils.js +3 -5
  354. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  355. package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
  356. package/optimize/lib/components/table/table_row.styles.js +7 -9
  357. package/optimize/lib/components/text/text.styles.js +1 -1
  358. package/optimize/lib/components/text/text_color.js +1 -1
  359. package/optimize/lib/components/text/text_color.styles.js +6 -5
  360. package/optimize/lib/components/tool_tip/tool_tip.styles.js +8 -10
  361. package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
  362. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
  363. package/optimize/lib/global_styling/functions/size.js +7 -27
  364. package/optimize/lib/global_styling/mixins/_button.js +165 -0
  365. package/optimize/lib/global_styling/mixins/_color.js +39 -30
  366. package/optimize/lib/global_styling/mixins/index.js +11 -0
  367. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  368. package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
  369. package/optimize/lib/global_styling/variables/animations.js +25 -31
  370. package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
  371. package/optimize/lib/global_styling/variables/levels.js +7 -26
  372. package/optimize/lib/global_styling/variables/shadow.js +13 -20
  373. package/optimize/lib/global_styling/variables/size.js +7 -10
  374. package/optimize/lib/global_styling/variables/typography.js +19 -41
  375. package/optimize/lib/services/hooks/useDeepEqual.js +12 -5
  376. package/optimize/lib/services/theme/provider.js +11 -0
  377. package/optimize/lib/services/theme/types.js +13 -14
  378. package/optimize/lib/services/theme/utils.js +54 -296
  379. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
  380. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  381. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  382. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +439 -0
  383. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +146 -0
  384. package/optimize/lib/themes/amsterdam/theme.js +3 -1
  385. package/optimize/lib/themes/index.js +7 -0
  386. package/optimize/lib/themes/themes.js +8 -1
  387. package/package.json +8 -3
  388. package/src/global_styling/functions/_index.scss +1 -5
  389. package/src/global_styling/index.scss +1 -16
  390. package/src/global_styling/variables/_animations.scss +1 -8
  391. package/src/global_styling/variables/_borders.scss +1 -9
  392. package/src/global_styling/variables/_buttons.scss +1 -18
  393. package/src/global_styling/variables/_colors_vis.scss +1 -70
  394. package/src/global_styling/variables/_font_weight.scss +1 -7
  395. package/src/global_styling/variables/_form.scss +2 -21
  396. package/src/global_styling/variables/_responsive.scss +1 -9
  397. package/src/global_styling/variables/_shadows.scss +1 -1
  398. package/src/global_styling/variables/_size.scss +1 -15
  399. package/src/global_styling/variables/_states.scss +1 -14
  400. package/src/global_styling/variables/_typography.scss +1 -75
  401. package/src/global_styling/variables/_z_index.scss +1 -33
  402. package/src/themes/amsterdam/_colors_dark.scss +80 -8
  403. package/src/themes/amsterdam/_colors_light.scss +80 -8
  404. package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
  405. package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
  406. package/test-env/components/badge/badge.js +1 -1
  407. package/test-env/components/badge/badge.styles.js +2 -2
  408. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  409. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -0
  410. package/test-env/components/badge/color_utils.js +13 -12
  411. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  412. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  413. package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
  414. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  415. package/test-env/components/button/button.js +1 -1
  416. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  417. package/test-env/components/button/button_empty/button_empty.js +1 -1
  418. package/test-env/components/button/button_group/button_group_button.js +1 -1
  419. package/test-env/components/button/button_group/button_group_button.styles.js +3 -3
  420. package/test-env/components/button/button_icon/button_icon.js +1 -1
  421. package/test-env/components/card/card.styles.js +1 -1
  422. package/test-env/components/code/code_block_annotations.js +1 -1
  423. package/test-env/components/code/code_block_line.styles.js +1 -2
  424. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  425. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  426. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  427. package/test-env/components/color_picker/color_picker.styles.js +1 -2
  428. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  429. package/test-env/components/combo_box/combo_box.js +9 -6
  430. package/test-env/components/common.js +0 -28
  431. package/test-env/components/context_menu/context_menu_panel.js +17 -1
  432. package/test-env/components/datagrid/body/cell/data_grid_cell.js +31 -8
  433. package/test-env/components/datagrid/body/data_grid_body.js +8 -0
  434. package/test-env/components/datagrid/body/data_grid_body_custom.js +8 -1
  435. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  436. package/test-env/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  437. package/test-env/components/datagrid/controls/display_selector.js +274 -204
  438. package/test-env/components/datagrid/data_grid.stories.utils.js +28 -2
  439. package/test-env/components/datagrid/data_grid.styles.js +4 -6
  440. package/test-env/components/datagrid/utils/grid_height_width.js +1 -1
  441. package/test-env/components/datagrid/utils/row_heights.js +29 -13
  442. package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
  443. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  444. package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
  445. package/test-env/components/empty_prompt/empty_prompt.styles.js +4 -1
  446. package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
  447. package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
  448. package/test-env/components/form/form.styles.js +20 -27
  449. package/test-env/components/form/range/range_tooltip.styles.js +3 -7
  450. package/test-env/components/form/switch/switch.js +3 -2
  451. package/test-env/components/form/switch/switch.styles.js +16 -19
  452. package/test-env/components/header/header.styles.js +11 -5
  453. package/test-env/components/icon/icon.styles.js +9 -8
  454. package/test-env/components/icon/named_colors.js +1 -1
  455. package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
  456. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  457. package/test-env/components/list_group/list_group_item.styles.js +8 -10
  458. package/test-env/components/mark/mark.styles.js +2 -9
  459. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  460. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  461. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
  462. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  463. package/test-env/components/popover/popover_footer.styles.js +1 -1
  464. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  465. package/test-env/components/progress/progress.js +1 -1
  466. package/test-env/components/progress/progress.styles.js +8 -6
  467. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  468. package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
  469. package/test-env/components/skeleton/utils.js +3 -5
  470. package/test-env/components/steps/step_number.styles.js +1 -1
  471. package/test-env/components/table/table_cells_shared.styles.js +2 -7
  472. package/test-env/components/table/table_row.styles.js +7 -9
  473. package/test-env/components/text/text.styles.js +1 -1
  474. package/test-env/components/text/text_color.js +1 -1
  475. package/test-env/components/text/text_color.styles.js +6 -5
  476. package/test-env/components/tool_tip/tool_tip.styles.js +8 -10
  477. package/test-env/components/tour/_tour_footer.styles.js +2 -4
  478. package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
  479. package/test-env/global_styling/functions/size.js +7 -27
  480. package/test-env/global_styling/mixins/_button.js +165 -0
  481. package/test-env/global_styling/mixins/_color.js +39 -30
  482. package/test-env/global_styling/mixins/index.js +11 -0
  483. package/test-env/global_styling/reset/global_styles.js +1 -1
  484. package/test-env/global_styling/variables/_colors_vis.js +6 -61
  485. package/test-env/global_styling/variables/animations.js +25 -31
  486. package/test-env/global_styling/variables/breakpoint.js +7 -16
  487. package/test-env/global_styling/variables/levels.js +7 -26
  488. package/test-env/global_styling/variables/shadow.js +13 -20
  489. package/test-env/global_styling/variables/size.js +7 -10
  490. package/test-env/global_styling/variables/typography.js +19 -41
  491. package/test-env/services/hooks/useDeepEqual.js +12 -5
  492. package/test-env/services/theme/provider.js +11 -0
  493. package/test-env/services/theme/types.js +13 -14
  494. package/test-env/services/theme/utils.js +54 -296
  495. package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
  496. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  497. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  498. package/test-env/themes/amsterdam/global_styling/variables/_components.js +439 -0
  499. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +146 -0
  500. package/test-env/themes/amsterdam/theme.js +3 -1
  501. package/test-env/themes/index.js +7 -0
  502. package/test-env/themes/themes.js +8 -1
@@ -35,14 +35,15 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
35
35
  // Base
36
36
  euiIcon: /*#__PURE__*/css("flex-shrink:0;display:inline-block;vertical-align:middle;fill:currentColor;transform:translate(0, 0);.euiIcon__fillNegative{fill:", euiTheme.colors.darkestShade, ";};label:euiIcon;"),
37
37
  // Colors
38
- accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
39
- danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
38
+ accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
39
+ accentSecondary: /*#__PURE__*/css("color:", euiTheme.colors.textAccentSecondary, ";;label:accentSecondary;"),
40
+ danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
40
41
  ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:ghost;"),
41
- primary: /*#__PURE__*/css("color:", euiTheme.colors.primaryText, ";;label:primary;"),
42
- success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
43
- subdued: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";;label:subdued;"),
44
- text: /*#__PURE__*/css("color:", euiTheme.colors.title, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
45
- warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
42
+ primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
43
+ success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
44
+ subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
45
+ text: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
46
+ warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
46
47
  inherit: _ref2,
47
48
  default: /*#__PURE__*/css(";label:default;"),
48
49
  customColor: /*#__PURE__*/css(";label:customColor;"),
@@ -56,7 +57,7 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
56
57
  xxl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xxl), ";label:xxl;"),
57
58
  // Variants
58
59
  // App icons are two-toned. This provides the base color.
59
- app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.successText, ";};label:app;"),
60
+ app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.textSuccess, ";};label:app;"),
60
61
  logo: /*#__PURE__*/css(";label:logo;"),
61
62
  // Loading states
62
63
  isLoading: /*#__PURE__*/css("opacity:", iconLoadingOpacity, ";background-color:currentColor;border-radius:", euiTheme.border.radius.small, ";;label:isLoading;"),
@@ -6,7 +6,7 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- export var COLORS = ['default', 'primary', 'success', 'accent', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
9
+ export var COLORS = ['default', 'primary', 'success', 'accent', 'accentSecondary', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
10
10
  export function isNamedColor(name) {
11
11
  return COLORS.includes(name);
12
12
  }
@@ -7,13 +7,12 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { tint } from '../../services';
11
10
  export var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
12
11
  var euiTheme = _ref.euiTheme;
13
12
  return {
14
13
  euiInlineEditReadMode: /*#__PURE__*/css(";label:euiInlineEditReadMode;"),
15
14
  // Override the cursor and allow users to highlight text when in the read only state
16
15
  isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
17
- hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", tint(euiTheme.colors.subduedText, 0.08), ";};label:hasPlaceholder;")
16
+ hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", euiTheme.components.forms.colorHasPlaceholder, ";};label:hasPlaceholder;")
18
17
  };
19
18
  };
@@ -7,7 +7,6 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { transparentize } from '../../services';
11
10
  import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
12
11
  import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
13
12
  import { euiScreenReaderOnly } from '../accessibility';
@@ -22,7 +21,7 @@ export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeCo
22
21
  selected: /*#__PURE__*/css("color:", euiTheme.colors.title, ";background-color:", euiTheme.focus.backgroundColor, ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.primaryText, ";};label:selected;"),
23
22
  disabled: {
24
23
  disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";.euiKeyPadMenuItem__icon{filter:grayscale(100%);svg *{fill:", euiTheme.colors.disabledText, ";}};label:disabled;"),
25
- selected: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.disabled, euiTheme.focus.transparency), ";;label:selected;")
24
+ selected: /*#__PURE__*/css("background-color:", euiTheme.components.keyPadMenuItemBackgroundDisabledSelect, ";;label:selected;")
26
25
  }
27
26
  };
28
27
  };
@@ -8,16 +8,14 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS, euiBackgroundColor, euiTextTruncate, euiTextBreakWord } from '../../global_styling';
12
- import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins/button';
11
+ import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS, euiTextTruncate, euiTextBreakWord } from '../../global_styling';
12
+ import { euiButtonColor } from '../../global_styling/mixins/_button';
13
13
  export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeContext) {
14
14
  var euiTheme = euiThemeContext.euiTheme;
15
- var primaryBgColor = euiBackgroundColor(euiThemeContext, 'primary', {
16
- method: 'transparent'
17
- });
18
- var subduedBgColor = euiBackgroundColor(euiThemeContext, 'subdued', {
19
- method: 'transparent'
20
- });
15
+ var primaryBgColor = euiTheme.components.listGroupItemBackgroundPrimaryActive;
16
+ var subduedBgColor = euiTheme.components.listGroupItemBackgroundSubduedActive;
17
+ var backgroundHover = euiTheme.components.listGroupItemBackgroundHover;
18
+ var backgroundPrimaryHover = euiTheme.components.listGroupItemBackgroundPrimaryHover;
21
19
  return {
22
20
  // Base
23
21
  euiListGroupItem: /*#__PURE__*/css("padding:0;display:flex;align-items:center;position:relative;", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, ";};label:euiListGroupItem;"),
@@ -34,9 +32,9 @@ export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeCont
34
32
  subdued: /*#__PURE__*/css("background-color:", subduedBgColor, ";;label:subdued;")
35
33
  },
36
34
  isClickable: {
37
- primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", primaryBgColor, ";};label:primary;"),
38
- text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", subduedBgColor, ";};label:text;"),
39
- subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", subduedBgColor, ";};label:subdued;")
35
+ primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundPrimaryHover, ";};label:primary;"),
36
+ text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundHover, ";};label:text;"),
37
+ subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundHover, ";};label:subdued;")
40
38
  }
41
39
  }
42
40
  };
@@ -7,18 +7,11 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { transparentize } from '../../services';
11
10
  import { euiScreenReaderOnly } from '../accessibility';
12
11
  export var euiMarkStyles = function euiMarkStyles(_ref) {
13
- var euiTheme = _ref.euiTheme,
14
- colorMode = _ref.colorMode;
15
- // TODO: Was $euiFocusBackgroundColor
16
- var transparency = {
17
- LIGHT: 0.1,
18
- DARK: 0.3
19
- };
12
+ var euiTheme = _ref.euiTheme;
20
13
  return {
21
- euiMark: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.primary, transparency[colorMode]), ";font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.text, ";;label:euiMark;")
14
+ euiMark: /*#__PURE__*/css("background-color:", euiTheme.components.markBackground, ";font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.text, ";;label:euiMark;")
22
15
  };
23
16
  };
24
17
  export var euiMarkScreenReaderStyles = function euiMarkScreenReaderStyles(highlightStart, highlightEnd) {
@@ -8,7 +8,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { transparentize } from '../../services';
12
11
  import { logicalCSS } from '../../global_styling';
13
12
  import { euiMarkdownEditorVariables } from './markdown_editor.styles';
14
13
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -25,8 +24,8 @@ export var euiMarkdownEditorDropZoneStyles = function euiMarkdownEditorDropZoneS
25
24
  minHeight = _euiMarkdownEditorVar.minHeight;
26
25
  return {
27
26
  euiMarkdownEditorDropZone: /*#__PURE__*/css("position:relative;display:flex;flex-direction:column;", logicalCSS('min-height', minHeight), ";;label:euiMarkdownEditorDropZone;"),
28
- isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", transparentize(euiTheme.colors.primary, 0.1), "!important;};label:isDragging;"),
29
- isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", transparentize(euiTheme.colors.danger, 0.1), "!important;};label:isDraggingError;"),
27
+ isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.backgroundTransparentPrimary, "!important;};label:isDragging;"),
28
+ isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.backgroundTransparentDanger, "!important;};label:isDraggingError;"),
30
29
  hasError: /*#__PURE__*/css(".euiMarkdownEditorTextArea{--euiFormControlStateColor:", euiTheme.colors.danger, "!important;background-size:100% 100%;};label:hasError;"),
31
30
  euiMarkdownEditorDropZone__input: _ref
32
31
  };
@@ -7,7 +7,6 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { transparentize } from '../../services';
11
10
  import { logicalCSS, euiFontSize, mathWithUnits } from '../../global_styling';
12
11
 
13
12
  /**
@@ -55,10 +54,11 @@ export var euiMarkdownFormatStyles = function euiMarkdownFormatStyles(euiTheme)
55
54
  unit: 'em'
56
55
  }), ";label:relative;"),
57
56
  colors: {
58
- default: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, transparentize(euiTheme.euiTheme.colors.fullShade, 0.15)), ";label:default;"),
57
+ default: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.components.markdownFormatTableBorderColor), ";label:default;"),
59
58
  subdued: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.subduedText), ";label:subdued;"),
60
59
  success: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.success), ";label:success;"),
61
60
  accent: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.accent), ";label:accent;"),
61
+ accentSecondary: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.accentSecondary), ";label:accentSecondary;"),
62
62
  warning: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.warning), ";label:warning;"),
63
63
  danger: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.danger), ";label:danger;"),
64
64
  ghost: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.ghost), ";label:ghost;"),
@@ -8,11 +8,10 @@
8
8
 
9
9
  import { css } from '@emotion/css';
10
10
  import { logicalCSS, euiAnimFadeIn } from '../../global_styling';
11
- import { transparentize } from '../../services';
12
11
  export var euiOverlayMaskStyles = function euiOverlayMaskStyles(_ref) {
13
12
  var euiTheme = _ref.euiTheme;
14
13
  return {
15
- euiOverlayMask: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('left', 0), " ", logicalCSS('right', 0), " ", logicalCSS('bottom', 0), " display:flex;align-items:center;justify-content:center;", logicalCSS('padding-bottom', '10vh'), " animation:", euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:", transparentize(euiTheme.colors.ink, 0.5), ";;label:euiOverlayMask;"),
14
+ euiOverlayMask: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('left', 0), " ", logicalCSS('right', 0), " ", logicalCSS('bottom', 0), " display:flex;align-items:center;justify-content:center;", logicalCSS('padding-bottom', '10vh'), " animation:", euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:", euiTheme.colors.backgroundBaseInteractiveOverlay, ";;label:euiOverlayMask;"),
16
15
  aboveHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.mask, ";;label:aboveHeader;"),
17
16
  belowHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.maskBelowHeader, ";", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), ";;label:belowHeader;")
18
17
  };
@@ -8,12 +8,12 @@
8
8
 
9
9
  import { css } from '@emotion/react';
10
10
  import { euiShadow } from '../../../themes/amsterdam/global_styling/mixins';
11
- import { euiBackgroundColor, logicalCSS } from '../../../global_styling';
11
+ import { logicalCSS } from '../../../global_styling';
12
12
  export var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
13
13
  var euiTheme = euiThemeContext.euiTheme;
14
14
  return {
15
15
  euiPageInner: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", logicalCSS('max-width', '100%'), " ", logicalCSS('min-width', '0'), ";;label:euiPageInner;"),
16
- panelled: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'plain'), ";", euiShadow(euiThemeContext, 'm'), ";;label:panelled;"),
16
+ panelled: /*#__PURE__*/css("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", euiShadow(euiThemeContext, 'm'), ";;label:panelled;"),
17
17
  border: {
18
18
  top: /*#__PURE__*/css(logicalCSS('border-top', euiTheme.border.thin), ";;label:top;"),
19
19
  left: /*#__PURE__*/css(logicalCSS('border-left', euiTheme.border.thin), ";;label:left;")
@@ -12,7 +12,7 @@ export var euiPopoverFooterStyles = function euiPopoverFooterStyles(euiThemeCont
12
12
  var euiTheme = euiThemeContext.euiTheme;
13
13
  return {
14
14
  // Base
15
- euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', euiTheme.border.thin), ";;label:euiPopoverFooter;"),
15
+ euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.popoverFooterBorderColor)), ";;label:euiPopoverFooter;"),
16
16
  // If the popover's containing panel has padding applied,
17
17
  // ensure the title expands to cover that padding via negative margins
18
18
  panelPaddingSizes: {
@@ -10,7 +10,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
  import { euiShadow, euiShadowFlat, euiShadowMedium } from '../../../themes/amsterdam/global_styling/mixins';
12
12
  import { getShadowColor } from '../../../themes/amsterdam/global_styling/functions';
13
- import { tint } from '../../../services';
14
13
  import { euiCanAnimate, logicalCSS, mathWithUnits } from '../../../global_styling';
15
14
  export var openAnimationTiming = 'slow';
16
15
 
@@ -39,11 +38,11 @@ export var euiPopoverPanelStyles = function euiPopoverPanelStyles(euiThemeContex
39
38
  }));
40
39
  return {
41
40
  // Base
42
- euiPopover__panel: /*#__PURE__*/css("position:absolute;", logicalCSS('min-width', "".concat(euiTheme.base * 7, "px")), logicalCSS('max-width', "calc(100vw - ".concat(euiTheme.size.xl, ")")), "backface-visibility:hidden;pointer-events:none;opacity:0;background-color:var(--euiPopoverBackgroundColor);", euiCanAnimate, "{transition:", opacityTransition, ",", transformTransition, ";}&:focus{outline-offset:0;};label:euiPopover__panel;"),
41
+ euiPopover__panel: /*#__PURE__*/css("position:absolute;", logicalCSS('min-width', "".concat(euiTheme.base * 7, "px")), logicalCSS('max-width', "calc(100vw - ".concat(euiTheme.size.xl, ")")), "backface-visibility:hidden;pointer-events:none;opacity:0;background-color:var(--euiPopoverBackgroundColor);", euiCanAnimate, "{transition:", opacityTransition, ",", transformTransition, ";}&:focus{outline-offset:0;}&::before{content:'';position:absolute;inset:0;border-radius:inherit;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFloating, ";pointer-events:none;};label:euiPopover__panel;"),
43
42
  isOpen: _ref,
44
43
  /* 4 */
45
- light: /*#__PURE__*/css("--euiPopoverBackgroundColor:", euiTheme.colors.emptyShade, ";;label:light;"),
46
- dark: /*#__PURE__*/css("--euiPopoverBackgroundColor:", tint(euiTheme.colors.emptyShade, 0.025), ";;label:dark;"),
44
+ light: /*#__PURE__*/css("--euiPopoverBackgroundColor:", euiTheme.components.popoverPanelBackground, ";;label:light;"),
45
+ dark: /*#__PURE__*/css("--euiPopoverBackgroundColor:", euiTheme.components.popoverPanelBackground, ";;label:dark;"),
47
46
  // Regular popover with an arrow, a transform animation/transition, and a
48
47
  // drop shadow via `filter` (which automatically handles the arrow)
49
48
  hasTransform: {
@@ -20,7 +20,7 @@ import { useEuiTheme, makeHighContrastColor } from '../../services';
20
20
  import { euiProgressStyles, euiProgressDataStyles, euiProgressLabelStyles, euiProgressValueTextStyles } from './progress.styles';
21
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
22
22
  export var SIZES = ['xs', 's', 'm', 'l'];
23
- export var COLORS = ['primary', 'success', 'warning', 'danger', 'subdued', 'accent', 'vis0', 'vis1', 'vis2', 'vis3', 'vis4', 'vis5', 'vis6', 'vis7', 'vis8', 'vis9'];
23
+ export var COLORS = ['primary', 'success', 'warning', 'danger', 'subdued', 'accent', 'accentSecondary', 'vis0', 'vis1', 'vis2', 'vis3', 'vis4', 'vis5', 'vis6', 'vis7', 'vis8', 'vis9'];
24
24
  export var POSITIONS = ['fixed', 'absolute', 'static'];
25
25
  export var EuiProgress = function EuiProgress(_ref) {
26
26
  var className = _ref.className,
@@ -84,6 +84,7 @@ export var euiProgressStyles = function euiProgressStyles(_ref3, isNative) {
84
84
  danger: /*#__PURE__*/css(nativeVsIndeterminateColor(euiTheme.colors.danger, isNative), ";;label:danger;"),
85
85
  subdued: /*#__PURE__*/css(nativeVsIndeterminateColor(euiTheme.colors.subduedText, isNative), ";;label:subdued;"),
86
86
  accent: /*#__PURE__*/css(nativeVsIndeterminateColor(euiTheme.colors.accent, isNative), ";;label:accent;"),
87
+ accentSecondary: /*#__PURE__*/css(nativeVsIndeterminateColor(euiTheme.colors.accentSecondary, isNative), ";;label:accentSecondary;"),
87
88
  vis0: /*#__PURE__*/css(nativeVsIndeterminateColor(visColors[0], isNative), ";;label:vis0;"),
88
89
  vis1: /*#__PURE__*/css(nativeVsIndeterminateColor(visColors[1], isNative), ";;label:vis1;"),
89
90
  vis2: /*#__PURE__*/css(nativeVsIndeterminateColor(visColors[2], isNative), ";;label:vis2;"),
@@ -124,12 +125,13 @@ export var euiProgressValueTextStyles = function euiProgressValueTextStyles(_ref
124
125
  return {
125
126
  euiProgress__valueText: /*#__PURE__*/css("flex-grow:1;flex-shrink:0;font-feature-settings:'tnum' 1;", logicalTextAlignCSS('right'), " ", euiTextTruncate(), ";;label:euiProgress__valueText;"),
126
127
  // Colors
127
- primary: /*#__PURE__*/css("color:", euiTheme.colors.primaryText, ";;label:primary;"),
128
- success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
129
- warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
130
- danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
131
- subdued: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";;label:subdued;"),
132
- accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
128
+ primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
129
+ success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
130
+ warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
131
+ danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
132
+ subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
133
+ accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
134
+ accentSecondary: /*#__PURE__*/css("color:", euiTheme.colors.textAccentSecondary, ";;label:accentSecondary;"),
133
135
  vis0: /*#__PURE__*/css("color:", makeHighContrastColor(visColors[0])(euiTheme), ";;label:vis0;"),
134
136
  vis1: /*#__PURE__*/css("color:", makeHighContrastColor(visColors[1])(euiTheme), ";;label:vis1;"),
135
137
  vis2: /*#__PURE__*/css("color:", makeHighContrastColor(visColors[2])(euiTheme), ";;label:vis2;"),
@@ -8,11 +8,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { transparentize } from '../../../services';
12
11
  import { euiFontSize, euiTextTruncate, logicalCSS } from '../../../global_styling';
13
12
  export var euiSelectableListItemVariables = function euiSelectableListItemVariables(_ref2) {
14
13
  var euiTheme = _ref2.euiTheme;
15
- var lighterBorder = transparentize(euiTheme.border.color, 0.4);
14
+ var lighterBorder = euiTheme.components.selectableListItemBorderColor;
16
15
  return {
17
16
  border: "".concat(euiTheme.border.width.thin, " solid ").concat(lighterBorder),
18
17
  paddingHorizontal: euiTheme.size.m,
@@ -14,12 +14,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
14
14
  */
15
15
 
16
16
  import { css } from '@emotion/react';
17
- import { transparentize } from '../../services';
18
17
  import { euiFontSize, logicalCSS, mathWithUnits } from '../../global_styling';
19
18
  import { euiTitle } from '../title/title.styles';
20
19
  export var euiSideNavItemStyles = function euiSideNavItemStyles(euiThemeContext) {
21
20
  var euiTheme = euiThemeContext.euiTheme;
22
- var emphasizedBackgroundColor = transparentize(euiTheme.colors.lightShade, 0.3);
21
+ var emphasizedBackgroundColor = euiTheme.components.sideNavItemEmphasizedBackground;
23
22
  return {
24
23
  euiSideNavItem: /*#__PURE__*/css(";label:euiSideNavItem;"),
25
24
  emphasized: /*#__PURE__*/css("background-color:", emphasizedBackgroundColor, ";color:", euiTheme.colors.title, ";box-shadow:100px 0 0 0 ", emphasizedBackgroundColor, ",-100px 0 0 0 ", emphasizedBackgroundColor, ";& &{background-color:transparent;box-shadow:none;};label:emphasized;"),
@@ -7,18 +7,16 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { shade, tint } from '../../services';
11
10
  import { euiCanAnimate, logicalCSS } from '../../global_styling';
12
11
  import { euiAnimSlideX } from '../../global_styling/utility/animations';
13
12
  export var euiSkeletonGradientAnimation = function euiSkeletonGradientAnimation(_ref) {
14
- var euiTheme = _ref.euiTheme,
15
- colorMode = _ref.colorMode;
13
+ var euiTheme = _ref.euiTheme;
16
14
  var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
17
15
  _ref2$slideSize = _ref2.slideSize,
18
16
  slideSize = _ref2$slideSize === void 0 ? '-53%' : _ref2$slideSize,
19
17
  _ref2$gradientSize = _ref2.gradientSize,
20
18
  gradientSize = _ref2$gradientSize === void 0 ? '220%' : _ref2$gradientSize;
21
- var gradientStartStop = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.12) : tint(euiTheme.colors.lightShade, 0.65);
22
- var gradientMiddle = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.24) : tint(euiTheme.colors.lightShade, 0.8);
19
+ var gradientStartStop = euiTheme.colors.backgroundBaseSkeletonEdge;
20
+ var gradientMiddle = euiTheme.colors.backgroundBaseSkeletonMiddle;
23
21
  return /*#__PURE__*/css("background-color:", gradientStartStop, ";", euiCanAnimate, "{overflow:hidden;isolation:isolate;&::after{content:'';display:block;", logicalCSS('width', gradientSize), " ", logicalCSS('height', '100%'), " background:linear-gradient(\n 137deg,\n ", gradientStartStop, " 45%,\n ", gradientMiddle, " 50%,\n ", gradientStartStop, " 55%\n );animation:", euiAnimSlideX(slideSize), " 1.5s ", euiTheme.animation.resistance, " infinite;}};label:euiSkeletonGradientAnimation;");
24
22
  };
@@ -10,7 +10,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
  import { mathWithUnits, logicalCSS, euiFontSizeFromScale, euiCanAnimate, euiAnimScale, logicalSizeCSS } from '../../global_styling';
12
12
  import { euiStepVariables } from './step.styles';
13
- import { euiButtonFillColor } from '../../themes/amsterdam/global_styling/mixins';
13
+ import { euiButtonFillColor } from '../../global_styling/mixins';
14
14
  var _ref = process.env.NODE_ENV === "production" ? {
15
15
  name: "76s2de-loading",
16
16
  styles: "background:transparent;label:loading;"
@@ -13,12 +13,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
13
13
  */
14
14
 
15
15
  import { css } from '@emotion/react';
16
- import { makeHighContrastColor, tintOrShade } from '../../services';
17
16
  import { euiFontSize, logicalCSS, logicalTextAlignCSS } from '../../global_styling';
18
17
  import { euiTableVariables } from './table.styles';
19
18
  export var euiTableHeaderFooterCellStyles = function euiTableHeaderFooterCellStyles(euiThemeContext) {
20
- var euiTheme = euiThemeContext.euiTheme,
21
- colorMode = euiThemeContext.colorMode;
19
+ var euiTheme = euiThemeContext.euiTheme;
22
20
 
23
21
  // euiFontSize returns an object, so we keep object notation here to merge into css``
24
22
  var sharedStyles = _objectSpread(_objectSpread({}, euiFontSize(euiThemeContext, 'xs')), {}, {
@@ -29,10 +27,7 @@ export var euiTableHeaderFooterCellStyles = function euiTableHeaderFooterCellSty
29
27
  return {
30
28
  euiTableHeaderCell: /*#__PURE__*/css(sharedStyles, ";;label:euiTableHeaderCell;"),
31
29
  euiTableHeaderCell__content: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:euiTableHeaderCell__content;"),
32
- euiTableHeaderCell__button: /*#__PURE__*/css(logicalCSS('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:", makeHighContrastColor(
33
- // Tint it arbitrarily high, the contrast util will take care of lowering back down to WCAG
34
- tintOrShade(euiTheme.colors.subduedText, 0.9, colorMode), 3 // 3:1 ratio from https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html
35
- )(euiTheme.colors.emptyShade), ";}&:hover,&:focus{color:", euiTheme.colors.primaryText, ";text-decoration:underline;.euiTableSortIcon--sortable{color:", euiTheme.colors.primaryText, ";}};label:euiTableHeaderCell__button;"),
30
+ euiTableHeaderCell__button: /*#__PURE__*/css(logicalCSS('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:", euiTheme.components.tableCellSortableIconColor, ";}&:hover,&:focus{color:", euiTheme.colors.primaryText, ";text-decoration:underline;.euiTableSortIcon--sortable{color:", euiTheme.colors.primaryText, ";}};label:euiTableHeaderCell__button;"),
36
31
  euiTableFooterCell: /*#__PURE__*/css(sharedStyles, " background-color:", euiTheme.colors.lightestShade, ";;label:euiTableFooterCell;")
37
32
  };
38
33
  };
@@ -9,8 +9,7 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
9
9
  */
10
10
 
11
11
  import { css, keyframes } from '@emotion/react';
12
- import { tint, shade, transparentize } from '../../services';
13
- import { euiCanAnimate, euiBackgroundColor, logicalCSS } from '../../global_styling';
12
+ import { euiCanAnimate, logicalCSS } from '../../global_styling';
14
13
  import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
15
14
  import { euiTableVariables } from './table.styles';
16
15
  export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
@@ -33,7 +32,7 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
33
32
  checkboxOffset: /*#__PURE__*/css("&>.euiTableRowCell:first-child{", logicalCSS('padding-left', checkboxSize), ";};label:checkboxOffset;")
34
33
  },
35
34
  mobile: {
36
- mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), euiShadow(euiThemeContext, 's'), " background-color:", euiBackgroundColor(euiThemeContext, 'plain'), ";border-radius:", euiTheme.border.radius.medium, ";;label:mobile;"),
35
+ mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), euiShadow(euiThemeContext, 's'), " background-color:", euiTheme.colors.backgroundBasePlain, ";border-radius:", euiTheme.border.radius.medium, ";;label:mobile;"),
37
36
  selected: /*#__PURE__*/css("&,&+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.color, ";};label:selected;"),
38
37
  /**
39
38
  * Left column offset (no border)
@@ -62,17 +61,16 @@ var _expandedRowAnimation = function _expandedRowAnimation(_ref) {
62
61
  return /*#__PURE__*/css(euiCanAnimate, "{.euiTableCellContent{animation:", euiTheme.animation.fast, " ", euiTheme.animation.resistance, " 1 normal none ", expandRow, ";}}");
63
62
  };
64
63
  var _rowColorVariables = function _rowColorVariables(_ref2) {
65
- var euiTheme = _ref2.euiTheme,
66
- colorMode = _ref2.colorMode;
64
+ var euiTheme = _ref2.euiTheme;
67
65
  return {
68
- hover: colorMode === 'DARK' ? euiTheme.colors.lightestShade : tint(euiTheme.colors.lightestShade, 0.5),
66
+ hover: euiTheme.components.tableRowBackgroundHover,
69
67
  selected: {
70
- color: colorMode === 'DARK' ? shade(euiTheme.colors.primary, 0.7) : tint(euiTheme.colors.primary, 0.96),
71
- hover: colorMode === 'DARK' ? shade(euiTheme.colors.primary, 0.75) : tint(euiTheme.colors.primary, 0.9)
68
+ color: euiTheme.components.tableRowBackgroundSelected,
69
+ hover: euiTheme.components.tableRowBackgroundSelectedHover
72
70
  },
73
71
  clickable: {
74
- hover: transparentize(euiTheme.colors.primary, 0.05),
75
- focus: transparentize(euiTheme.colors.primary, 0.1)
72
+ hover: euiTheme.components.tableRowInteractiveBackgroundHover,
73
+ focus: euiTheme.components.tableRowInteractiveBackgroundFocus
76
74
  }
77
75
  };
78
76
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, euiFontSize, euiBackgroundColor, mathWithUnits } from '../../global_styling';
10
+ import { logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, euiFontSize, mathWithUnits } from '../../global_styling';
11
11
  import { euiLinkCSS } from '../link/link.styles';
12
12
  import { euiTitle } from '../title/title.styles';
13
13
 
@@ -65,7 +65,7 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
65
65
  export var euiTextStyles = function euiTextStyles(euiThemeContext) {
66
66
  var euiTheme = euiThemeContext.euiTheme;
67
67
  return {
68
- euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.subduedText, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", euiBackgroundColor(euiThemeContext, 'subdued'), ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", logicalCSS('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", logicalCSS('padding-vertical', euiTheme.size.xxs), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.text, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
68
+ euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.subduedText, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", euiTheme.colors.backgroundBaseSubdued, ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", logicalCSS('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", logicalCSS('padding-vertical', euiTheme.size.xxs), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.text, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
69
69
  return x / 2;
70
70
  }), ";};label:euiText;"),
71
71
  constrainedWidth: /*#__PURE__*/css(logicalCSS('max-width', euiTextConstrainedMaxWidth), ";;label:constrainedWidth;"),
@@ -20,7 +20,7 @@ import PropTypes from "prop-types";
20
20
  import { useEuiMemoizedStyles, cloneElementWithCss } from '../../services';
21
21
  import { euiTextColorStyles } from './text_color.styles';
22
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
23
- export var COLORS = ['default', 'subdued', 'success', 'accent', 'danger', 'warning', 'ghost', 'inherit'];
23
+ export var COLORS = ['default', 'subdued', 'success', 'accent', 'accentSecondary', 'danger', 'warning', 'ghost', 'inherit'];
24
24
  export var _isNamedColor = function _isNamedColor(color) {
25
25
  return COLORS.includes(color);
26
26
  };
@@ -21,11 +21,12 @@ export var euiTextColorStyles = function euiTextColorStyles(_ref2) {
21
21
  return {
22
22
  euiTextColor: /*#__PURE__*/css(";label:euiTextColor;"),
23
23
  default: /*#__PURE__*/css("color:", euiTheme.colors.text, ";;label:default;"),
24
- subdued: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";;label:subdued;"),
25
- success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
26
- accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
27
- danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
28
- warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
24
+ subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
25
+ success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
26
+ accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
27
+ accentSecondary: /*#__PURE__*/css("color:", euiTheme.colors.textAccentSecondary, ";;label:accentSecondary;"),
28
+ danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
29
+ warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
29
30
  ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, "!important;;label:ghost;"),
30
31
  inherit: _ref,
31
32
  customColor: /*#__PURE__*/css(";label:customColor;") // Handled by `style` tag - this is just here for a className hook
@@ -11,13 +11,12 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
11
11
 
12
12
  import { css, keyframes } from '@emotion/react';
13
13
  import { logicalCSS, logicalSizeCSS, euiFontSize, euiCanAnimate, mathWithUnits } from '../../global_styling';
14
- import { COLOR_MODES_STANDARD, tint, shade } from '../../services';
15
14
  import { euiShadow } from '../../themes/amsterdam';
16
- export var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme, colorMode) {
17
- return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.emptyShade, 1) : tint(euiTheme.colors.fullShade, 0.25);
15
+ export var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme) {
16
+ return euiTheme.components.tooltipBackground;
18
17
  };
19
- export var euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme, colorMode) {
20
- return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.fullShade, 0.8) : tint(euiTheme.colors.fullShade, 0.35);
18
+ export var euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme) {
19
+ return euiTheme.components.tooltipBorder;
21
20
  };
22
21
  var euiToolTipAnimationVertical = function euiToolTipAnimationVertical(size) {
23
22
  return 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);
@@ -26,8 +25,7 @@ var euiToolTipAnimationHorizontal = function euiToolTipAnimationHorizontal(size)
26
25
  return 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);
27
26
  };
28
27
  export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
29
- var euiTheme = euiThemeContext.euiTheme,
30
- colorMode = euiThemeContext.colorMode;
28
+ var euiTheme = euiThemeContext.euiTheme;
31
29
  var animationTiming = "".concat(euiTheme.animation.slow, " ease-out 0s forwards");
32
30
  // Shift arrow 1px more than half its size to account for border radius
33
31
  var arrowSize = euiTheme.size.m;
@@ -39,7 +37,7 @@ export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
39
37
  });
40
38
  return {
41
39
  // Base
42
- euiToolTip: /*#__PURE__*/css(euiShadow(euiThemeContext), " border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", logicalCSS('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", euiFontSize(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme, colorMode), ";};label:euiToolTip;"),
40
+ euiToolTip: /*#__PURE__*/css(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, ";", logicalCSS('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", euiFontSize(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme), ";};label:euiToolTip;"),
43
41
  // Sizes
44
42
  s: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), ";;label:s;"),
45
43
  // Positions
@@ -50,7 +48,7 @@ export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
50
48
  // Arrow
51
49
  euiToolTip__arrow: /*#__PURE__*/css("content:'';position:absolute;transform-origin:center;border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
52
50
  return x / 2;
53
- }), ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";", logicalSizeCSS(arrowSize, arrowSize), ";;label:euiToolTip__arrow;"),
51
+ }), ";background-color:", euiToolTipBackgroundColor(euiTheme), ";", logicalSizeCSS(arrowSize, arrowSize), ";;label:euiToolTip__arrow;"),
54
52
  arrowPositions: {
55
53
  top: /*#__PURE__*/css("transform:translateY(", arrowPlusSize, ") rotateZ(45deg);;label:top;"),
56
54
  bottom: /*#__PURE__*/css("transform:translateY(", arrowMinusSize, ") rotateZ(45deg);;label:bottom;"),
@@ -58,7 +56,7 @@ export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
58
56
  right: /*#__PURE__*/css("transform:translateX(", arrowMinusSize, ") rotateZ(45deg);;label:right;")
59
57
  },
60
58
  // Title
61
- euiToolTip__title: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";", logicalCSS('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme, colorMode))), " ", logicalCSS('padding-bottom', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
59
+ euiToolTip__title: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";", logicalCSS('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme))), " ", logicalCSS('padding-bottom', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
62
60
  };
63
61
  };
64
62
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -7,12 +7,10 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { shade, tint } from '../../services';
11
10
  import { logicalCSS } from '../../global_styling';
12
11
  export var _tourFooterBgColor = function _tourFooterBgColor(_ref) {
13
- var colorMode = _ref.colorMode,
14
- euiTheme = _ref.euiTheme;
15
- return colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.45) : tint(euiTheme.colors.lightestShade, 0.5);
12
+ var euiTheme = _ref.euiTheme;
13
+ return euiTheme.components.tourFooterBackground;
16
14
  };
17
15
  export var euiTourFooterStyles = function euiTourFooterStyles(euiThemeContext) {
18
16
  var euiTheme = euiThemeContext.euiTheme;
@@ -8,7 +8,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { transparentize } from '../../services';
12
11
  import { euiFocusRing, logicalCSS, mathWithUnits } from '../../global_styling';
13
12
  var _ref = process.env.NODE_ENV === "production" ? {
14
13
  name: "22lgun-euiTreeView__node",
@@ -30,7 +29,7 @@ export var euiTreeViewItemStyles = function euiTreeViewItemStyles(euiThemeContex
30
29
  expanded: /*#__PURE__*/css(logicalCSS('max-height', '100vh'), ";;label:expanded;")
31
30
  },
32
31
  button: {
33
- euiTreeView__nodeInner: /*#__PURE__*/css(logicalCSS('width', '100%'), " ", logicalCSS('padding-left', euiTheme.size.s), " ", logicalCSS('padding-right', euiTheme.size.xxs), " display:flex;align-items:center;&:focus{", euiFocusRing(euiThemeContext, 'inset'), ";}&:hover,&:active,&:focus{background-color:", transparentize(euiTheme.colors.text, euiTheme.focus.transparency), ";};label:euiTreeView__nodeInner;"),
32
+ euiTreeView__nodeInner: /*#__PURE__*/css(logicalCSS('width', '100%'), " ", logicalCSS('padding-left', euiTheme.size.s), " ", logicalCSS('padding-right', euiTheme.size.xxs), " display:flex;align-items:center;&:focus{", euiFocusRing(euiThemeContext, 'inset'), ";}&:hover,&:active,&:focus{background-color:", euiTheme.components.treeViewItemBackgroundHover, ";};label:euiTreeView__nodeInner;"),
34
33
  default: /*#__PURE__*/css(logicalCSS('height', defaultSize), " gap:", euiTheme.size.s, ";border-radius:", euiTheme.border.radius.medium, ";;label:default;"),
35
34
  compressed: /*#__PURE__*/css(logicalCSS('height', compressedSize), " gap:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";;label:compressed;")
36
35
  },