@elastic/eui 97.3.0 → 97.3.1-borealis.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (569) hide show
  1. package/dist/{eui_theme_dark.json.d.ts → eui_theme_amsterdam_dark.json.d.ts} +1 -1
  2. package/dist/{eui_theme_light.json.d.ts → eui_theme_amsterdam_light.json.d.ts} +1 -1
  3. package/dist/eui_theme_borealis_dark.json +314 -0
  4. package/dist/eui_theme_borealis_dark.json.d.ts +317 -0
  5. package/dist/eui_theme_borealis_light.json +314 -0
  6. package/dist/eui_theme_borealis_light.json.d.ts +317 -0
  7. package/es/components/avatar/avatar.js +10 -4
  8. package/es/components/badge/badge.js +1 -1
  9. package/es/components/badge/badge.styles.js +2 -2
  10. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  11. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  12. package/es/components/badge/color_utils.js +8 -7
  13. package/es/components/badge/notification_badge/badge_notification.js +1 -1
  14. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  15. package/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  16. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  17. package/es/components/button/button.js +1 -1
  18. package/es/components/button/button_display/_button_display.styles.js +1 -1
  19. package/es/components/button/button_empty/button_empty.js +1 -1
  20. package/es/components/button/button_group/button_group_button.js +1 -1
  21. package/es/components/button/button_group/button_group_button.styles.js +6 -6
  22. package/es/components/button/button_icon/button_icon.js +1 -1
  23. package/es/components/card/card.styles.js +6 -3
  24. package/es/components/code/code_block_annotations.js +1 -1
  25. package/es/components/code/code_block_line.styles.js +1 -2
  26. package/es/components/code/code_syntax.styles.js +23 -27
  27. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  28. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  29. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  30. package/es/components/color_picker/color_picker.js +9 -3
  31. package/es/components/color_picker/color_picker.styles.js +1 -2
  32. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  33. package/es/components/combo_box/combo_box.js +9 -6
  34. package/es/components/common.js +0 -28
  35. package/es/components/datagrid/data_grid.styles.js +3 -5
  36. package/es/components/date_picker/react_date_picker.styles.js +2 -1
  37. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  38. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
  39. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
  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/flyout/flyout.js +1 -1
  45. package/es/components/flyout/flyout.styles.js +7 -2
  46. package/es/components/form/form.styles.js +27 -29
  47. package/es/components/form/range/range_tooltip.styles.js +3 -7
  48. package/es/components/form/switch/switch.js +3 -7
  49. package/es/components/form/switch/switch.styles.js +16 -19
  50. package/es/components/header/header.styles.js +6 -7
  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/loading/loading_chart.styles.js +18 -5
  57. package/es/components/mark/mark.styles.js +2 -9
  58. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  59. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  60. package/es/components/modal/modal.styles.js +1 -1
  61. package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  62. package/es/components/page/page_header/page_header_content.js +2 -1
  63. package/es/components/page/page_header/page_header_content.styles.js +2 -1
  64. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  65. package/es/components/panel/panel.styles.js +1 -1
  66. package/es/components/popover/popover_arrow/_popover_arrow.styles.js +23 -9
  67. package/es/components/popover/popover_footer.styles.js +1 -1
  68. package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  69. package/es/components/progress/progress.js +1 -1
  70. package/es/components/progress/progress.styles.js +30 -28
  71. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  72. package/es/components/side_nav/side_nav_item.styles.js +1 -2
  73. package/es/components/skeleton/utils.js +5 -7
  74. package/es/components/steps/step_number.styles.js +1 -1
  75. package/es/components/table/table_cells_shared.styles.js +2 -7
  76. package/es/components/table/table_row.styles.js +8 -10
  77. package/es/components/text/text.styles.js +2 -2
  78. package/es/components/text/text_color.js +1 -1
  79. package/es/components/text/text_color.styles.js +6 -5
  80. package/es/components/toast/toast.styles.js +1 -1
  81. package/es/components/token/token.js +10 -4
  82. package/es/components/token/token.styles.js +12 -3
  83. package/es/components/token/token_map.js +243 -1
  84. package/es/components/tool_tip/tool_tip.styles.js +12 -14
  85. package/es/components/tour/_tour_footer.styles.js +2 -4
  86. package/es/components/tree_view/tree_view_item.styles.js +1 -2
  87. package/es/global_styling/functions/size.js +1 -17
  88. package/es/global_styling/mixins/_button.js +159 -0
  89. package/es/global_styling/mixins/_color.js +40 -31
  90. package/es/global_styling/mixins/index.js +2 -1
  91. package/es/global_styling/reset/global_styles.js +2 -2
  92. package/es/global_styling/variables/_colors_vis.js +1 -53
  93. package/es/global_styling/variables/animations.js +1 -22
  94. package/es/global_styling/variables/breakpoint.js +1 -7
  95. package/es/global_styling/variables/levels.js +1 -17
  96. package/es/global_styling/variables/shadow.js +1 -11
  97. package/es/global_styling/variables/size.js +1 -1
  98. package/es/global_styling/variables/typography.js +1 -32
  99. package/es/services/color/eui_palettes.js +116 -47
  100. package/es/services/color/index.js +1 -0
  101. package/es/services/color/vis_color_store.js +13 -0
  102. package/es/services/index.js +1 -1
  103. package/es/services/theme/provider.js +26 -2
  104. package/es/services/theme/types.js +1 -6
  105. package/es/services/theme/utils.js +1 -303
  106. package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
  107. package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
  108. package/es/themes/amsterdam/global_styling/variables/_colors.js +590 -19
  109. package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +94 -0
  110. package/es/themes/amsterdam/global_styling/variables/_components.js +579 -0
  111. package/es/themes/amsterdam/global_styling/variables/_forms.js +153 -0
  112. package/es/themes/amsterdam/theme.js +7 -1
  113. package/es/themes/index.js +1 -1
  114. package/es/themes/themes.js +9 -6
  115. package/eui.d.ts +2170 -2620
  116. package/i18ntokens.json +4 -4
  117. package/lib/components/avatar/avatar.js +8 -2
  118. package/lib/components/badge/badge.js +1 -1
  119. package/lib/components/badge/badge.styles.js +2 -2
  120. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  121. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  122. package/lib/components/badge/color_utils.js +13 -12
  123. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  124. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  125. package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  126. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  127. package/lib/components/button/button.js +1 -1
  128. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  129. package/lib/components/button/button_empty/button_empty.js +1 -1
  130. package/lib/components/button/button_group/button_group_button.js +1 -1
  131. package/lib/components/button/button_group/button_group_button.styles.js +5 -5
  132. package/lib/components/button/button_icon/button_icon.js +1 -1
  133. package/lib/components/card/card.styles.js +5 -2
  134. package/lib/components/code/code_block_annotations.js +1 -1
  135. package/lib/components/code/code_block_line.styles.js +1 -2
  136. package/lib/components/code/code_syntax.styles.js +23 -27
  137. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  138. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  139. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  140. package/lib/components/color_picker/color_picker.js +8 -2
  141. package/lib/components/color_picker/color_picker.styles.js +1 -2
  142. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  143. package/lib/components/combo_box/combo_box.js +9 -6
  144. package/lib/components/common.js +0 -28
  145. package/lib/components/datagrid/data_grid.styles.js +3 -5
  146. package/lib/components/date_picker/react_date_picker.styles.js +3 -2
  147. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  148. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  149. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  150. package/lib/components/drag_and_drop/droppable.styles.js +2 -4
  151. package/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  152. package/lib/components/filter_group/filter_select_item.styles.js +1 -2
  153. package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  154. package/lib/components/flyout/flyout.js +1 -1
  155. package/lib/components/flyout/flyout.styles.js +7 -2
  156. package/lib/components/form/form.styles.js +26 -28
  157. package/lib/components/form/range/range_tooltip.styles.js +3 -7
  158. package/lib/components/form/switch/switch.js +3 -7
  159. package/lib/components/form/switch/switch.styles.js +16 -19
  160. package/lib/components/header/header.styles.js +5 -6
  161. package/lib/components/icon/icon.styles.js +9 -8
  162. package/lib/components/icon/named_colors.js +1 -1
  163. package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  164. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  165. package/lib/components/list_group/list_group_item.styles.js +8 -10
  166. package/lib/components/loading/loading_chart.styles.js +18 -5
  167. package/lib/components/mark/mark.styles.js +2 -9
  168. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  169. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  170. package/lib/components/modal/modal.styles.js +1 -1
  171. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  172. package/lib/components/page/page_header/page_header_content.js +2 -1
  173. package/lib/components/page/page_header/page_header_content.styles.js +2 -1
  174. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  175. package/lib/components/panel/panel.styles.js +1 -1
  176. package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
  177. package/lib/components/popover/popover_footer.styles.js +1 -1
  178. package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  179. package/lib/components/progress/progress.js +1 -1
  180. package/lib/components/progress/progress.styles.js +29 -27
  181. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  182. package/lib/components/side_nav/side_nav_item.styles.js +1 -2
  183. package/lib/components/skeleton/utils.js +4 -6
  184. package/lib/components/steps/step_number.styles.js +1 -1
  185. package/lib/components/table/table_cells_shared.styles.js +2 -7
  186. package/lib/components/table/table_row.styles.js +7 -9
  187. package/lib/components/text/text.styles.js +1 -1
  188. package/lib/components/text/text_color.js +1 -1
  189. package/lib/components/text/text_color.styles.js +6 -5
  190. package/lib/components/toast/toast.styles.js +1 -1
  191. package/lib/components/token/token.js +12 -4
  192. package/lib/components/token/token.styles.js +12 -3
  193. package/lib/components/token/token_map.js +244 -2
  194. package/lib/components/tool_tip/tool_tip.styles.js +12 -14
  195. package/lib/components/tour/_tour_footer.styles.js +2 -4
  196. package/lib/components/tree_view/tree_view_item.styles.js +1 -2
  197. package/lib/global_styling/functions/size.js +7 -26
  198. package/lib/global_styling/mixins/_button.js +164 -0
  199. package/lib/global_styling/mixins/_color.js +39 -30
  200. package/lib/global_styling/mixins/index.js +11 -0
  201. package/lib/global_styling/reset/global_styles.js +1 -1
  202. package/lib/global_styling/variables/_colors_vis.js +6 -61
  203. package/lib/global_styling/variables/animations.js +25 -31
  204. package/lib/global_styling/variables/breakpoint.js +7 -16
  205. package/lib/global_styling/variables/levels.js +7 -26
  206. package/lib/global_styling/variables/shadow.js +13 -20
  207. package/lib/global_styling/variables/size.js +7 -10
  208. package/lib/global_styling/variables/typography.js +19 -41
  209. package/lib/services/color/eui_palettes.js +116 -47
  210. package/lib/services/color/index.js +8 -0
  211. package/lib/services/color/vis_color_store.js +18 -0
  212. package/lib/services/index.js +7 -0
  213. package/lib/services/theme/provider.js +26 -2
  214. package/lib/services/theme/types.js +13 -14
  215. package/lib/services/theme/utils.js +54 -303
  216. package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
  217. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
  218. package/lib/themes/amsterdam/global_styling/variables/_colors.js +589 -19
  219. package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
  220. package/lib/themes/amsterdam/global_styling/variables/_components.js +583 -0
  221. package/lib/themes/amsterdam/global_styling/variables/_forms.js +157 -0
  222. package/lib/themes/amsterdam/theme.js +7 -1
  223. package/lib/themes/index.js +7 -0
  224. package/lib/themes/themes.js +10 -7
  225. package/optimize/es/components/avatar/avatar.js +10 -4
  226. package/optimize/es/components/badge/badge.js +1 -1
  227. package/optimize/es/components/badge/badge.styles.js +2 -2
  228. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
  229. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  230. package/optimize/es/components/badge/color_utils.js +8 -7
  231. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  232. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  233. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  234. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  235. package/optimize/es/components/button/button.js +1 -1
  236. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  237. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  238. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  239. package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
  240. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  241. package/optimize/es/components/card/card.styles.js +6 -3
  242. package/optimize/es/components/code/code_block_annotations.js +1 -1
  243. package/optimize/es/components/code/code_block_line.styles.js +1 -2
  244. package/optimize/es/components/code/code_syntax.styles.js +23 -27
  245. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  246. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  247. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  248. package/optimize/es/components/color_picker/color_picker.js +9 -3
  249. package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
  250. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  251. package/optimize/es/components/combo_box/combo_box.js +9 -6
  252. package/optimize/es/components/common.js +0 -28
  253. package/optimize/es/components/datagrid/data_grid.styles.js +3 -5
  254. package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
  255. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  256. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
  257. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
  258. package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
  259. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  260. package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
  261. package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
  262. package/optimize/es/components/flyout/flyout.js +1 -1
  263. package/optimize/es/components/flyout/flyout.styles.js +7 -2
  264. package/optimize/es/components/form/form.styles.js +27 -29
  265. package/optimize/es/components/form/range/range_tooltip.styles.js +3 -7
  266. package/optimize/es/components/form/switch/switch.js +3 -2
  267. package/optimize/es/components/form/switch/switch.styles.js +16 -19
  268. package/optimize/es/components/header/header.styles.js +6 -7
  269. package/optimize/es/components/icon/icon.styles.js +9 -8
  270. package/optimize/es/components/icon/named_colors.js +1 -1
  271. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  272. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  273. package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
  274. package/optimize/es/components/loading/loading_chart.styles.js +13 -5
  275. package/optimize/es/components/mark/mark.styles.js +2 -9
  276. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  277. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  278. package/optimize/es/components/modal/modal.styles.js +1 -1
  279. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  280. package/optimize/es/components/page/page_header/page_header_content.js +2 -1
  281. package/optimize/es/components/page/page_header/page_header_content.styles.js +2 -1
  282. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  283. package/optimize/es/components/panel/panel.styles.js +1 -1
  284. package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +23 -9
  285. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  286. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  287. package/optimize/es/components/progress/progress.js +1 -1
  288. package/optimize/es/components/progress/progress.styles.js +30 -28
  289. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  290. package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
  291. package/optimize/es/components/skeleton/utils.js +5 -7
  292. package/optimize/es/components/steps/step_number.styles.js +1 -1
  293. package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
  294. package/optimize/es/components/table/table_row.styles.js +8 -10
  295. package/optimize/es/components/text/text.styles.js +2 -2
  296. package/optimize/es/components/text/text_color.js +1 -1
  297. package/optimize/es/components/text/text_color.styles.js +6 -5
  298. package/optimize/es/components/toast/toast.styles.js +1 -1
  299. package/optimize/es/components/token/token.js +10 -4
  300. package/optimize/es/components/token/token.styles.js +12 -3
  301. package/optimize/es/components/token/token_map.js +243 -1
  302. package/optimize/es/components/tool_tip/tool_tip.styles.js +12 -14
  303. package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
  304. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
  305. package/optimize/es/global_styling/functions/size.js +1 -17
  306. package/optimize/es/global_styling/mixins/_button.js +159 -0
  307. package/optimize/es/global_styling/mixins/_color.js +40 -31
  308. package/optimize/es/global_styling/mixins/index.js +2 -1
  309. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  310. package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
  311. package/optimize/es/global_styling/variables/animations.js +1 -22
  312. package/optimize/es/global_styling/variables/breakpoint.js +1 -7
  313. package/optimize/es/global_styling/variables/levels.js +1 -17
  314. package/optimize/es/global_styling/variables/shadow.js +1 -11
  315. package/optimize/es/global_styling/variables/size.js +1 -1
  316. package/optimize/es/global_styling/variables/typography.js +1 -32
  317. package/optimize/es/services/color/eui_palettes.js +116 -47
  318. package/optimize/es/services/color/index.js +1 -0
  319. package/optimize/es/services/color/vis_color_store.js +13 -0
  320. package/optimize/es/services/index.js +1 -1
  321. package/optimize/es/services/theme/provider.js +26 -2
  322. package/optimize/es/services/theme/types.js +1 -6
  323. package/optimize/es/services/theme/utils.js +1 -295
  324. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
  325. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
  326. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +590 -19
  327. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +94 -0
  328. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +571 -0
  329. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +145 -0
  330. package/optimize/es/themes/amsterdam/theme.js +7 -1
  331. package/optimize/es/themes/index.js +1 -1
  332. package/optimize/es/themes/themes.js +9 -6
  333. package/optimize/lib/components/avatar/avatar.js +8 -2
  334. package/optimize/lib/components/badge/badge.js +1 -1
  335. package/optimize/lib/components/badge/badge.styles.js +2 -2
  336. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
  337. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  338. package/optimize/lib/components/badge/color_utils.js +13 -12
  339. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  340. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  341. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  342. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  343. package/optimize/lib/components/button/button.js +1 -1
  344. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  345. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  346. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  347. package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
  348. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  349. package/optimize/lib/components/card/card.styles.js +5 -2
  350. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  351. package/optimize/lib/components/code/code_block_line.styles.js +1 -2
  352. package/optimize/lib/components/code/code_syntax.styles.js +23 -27
  353. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  354. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  355. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  356. package/optimize/lib/components/color_picker/color_picker.js +8 -2
  357. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
  358. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  359. package/optimize/lib/components/combo_box/combo_box.js +9 -6
  360. package/optimize/lib/components/common.js +0 -28
  361. package/optimize/lib/components/datagrid/data_grid.styles.js +3 -5
  362. package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
  363. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  364. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  365. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  366. package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
  367. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  368. package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
  369. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  370. package/optimize/lib/components/flyout/flyout.js +1 -1
  371. package/optimize/lib/components/flyout/flyout.styles.js +7 -2
  372. package/optimize/lib/components/form/form.styles.js +26 -28
  373. package/optimize/lib/components/form/range/range_tooltip.styles.js +3 -7
  374. package/optimize/lib/components/form/switch/switch.js +3 -2
  375. package/optimize/lib/components/form/switch/switch.styles.js +16 -19
  376. package/optimize/lib/components/header/header.styles.js +5 -6
  377. package/optimize/lib/components/icon/icon.styles.js +9 -8
  378. package/optimize/lib/components/icon/named_colors.js +1 -1
  379. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  380. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  381. package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
  382. package/optimize/lib/components/loading/loading_chart.styles.js +13 -5
  383. package/optimize/lib/components/mark/mark.styles.js +2 -9
  384. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  385. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  386. package/optimize/lib/components/modal/modal.styles.js +1 -1
  387. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  388. package/optimize/lib/components/page/page_header/page_header_content.js +2 -1
  389. package/optimize/lib/components/page/page_header/page_header_content.styles.js +2 -1
  390. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  391. package/optimize/lib/components/panel/panel.styles.js +1 -1
  392. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
  393. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  394. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  395. package/optimize/lib/components/progress/progress.js +1 -1
  396. package/optimize/lib/components/progress/progress.styles.js +29 -27
  397. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  398. package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
  399. package/optimize/lib/components/skeleton/utils.js +4 -6
  400. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  401. package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
  402. package/optimize/lib/components/table/table_row.styles.js +7 -9
  403. package/optimize/lib/components/text/text.styles.js +1 -1
  404. package/optimize/lib/components/text/text_color.js +1 -1
  405. package/optimize/lib/components/text/text_color.styles.js +6 -5
  406. package/optimize/lib/components/toast/toast.styles.js +1 -1
  407. package/optimize/lib/components/token/token.js +13 -4
  408. package/optimize/lib/components/token/token.styles.js +12 -3
  409. package/optimize/lib/components/token/token_map.js +244 -2
  410. package/optimize/lib/components/tool_tip/tool_tip.styles.js +12 -14
  411. package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
  412. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
  413. package/optimize/lib/global_styling/functions/size.js +7 -27
  414. package/optimize/lib/global_styling/mixins/_button.js +165 -0
  415. package/optimize/lib/global_styling/mixins/_color.js +39 -30
  416. package/optimize/lib/global_styling/mixins/index.js +11 -0
  417. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  418. package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
  419. package/optimize/lib/global_styling/variables/animations.js +25 -31
  420. package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
  421. package/optimize/lib/global_styling/variables/levels.js +7 -26
  422. package/optimize/lib/global_styling/variables/shadow.js +13 -20
  423. package/optimize/lib/global_styling/variables/size.js +7 -10
  424. package/optimize/lib/global_styling/variables/typography.js +19 -41
  425. package/optimize/lib/services/color/eui_palettes.js +116 -47
  426. package/optimize/lib/services/color/index.js +8 -0
  427. package/optimize/lib/services/color/vis_color_store.js +18 -0
  428. package/optimize/lib/services/index.js +7 -0
  429. package/optimize/lib/services/theme/provider.js +26 -2
  430. package/optimize/lib/services/theme/types.js +13 -14
  431. package/optimize/lib/services/theme/utils.js +54 -296
  432. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
  433. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  434. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +589 -19
  435. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
  436. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +576 -0
  437. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +150 -0
  438. package/optimize/lib/themes/amsterdam/theme.js +7 -1
  439. package/optimize/lib/themes/index.js +7 -0
  440. package/optimize/lib/themes/themes.js +10 -7
  441. package/package.json +7 -3
  442. package/src/global_styling/functions/_index.scss +1 -5
  443. package/src/global_styling/index.scss +1 -16
  444. package/src/global_styling/variables/_animations.scss +1 -8
  445. package/src/global_styling/variables/_borders.scss +1 -9
  446. package/src/global_styling/variables/_buttons.scss +1 -18
  447. package/src/global_styling/variables/_colors_vis.scss +1 -70
  448. package/src/global_styling/variables/_font_weight.scss +1 -7
  449. package/src/global_styling/variables/_form.scss +2 -21
  450. package/src/global_styling/variables/_responsive.scss +1 -9
  451. package/src/global_styling/variables/_shadows.scss +1 -1
  452. package/src/global_styling/variables/_size.scss +1 -15
  453. package/src/global_styling/variables/_states.scss +1 -14
  454. package/src/global_styling/variables/_typography.scss +1 -75
  455. package/src/global_styling/variables/_z_index.scss +1 -33
  456. package/src/themes/amsterdam/_colors_dark.scss +80 -8
  457. package/src/themes/amsterdam/_colors_light.scss +80 -8
  458. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +72 -0
  459. package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
  460. package/src/themes/amsterdam/global_styling/variables/_index.scss +2 -0
  461. package/test-env/components/avatar/avatar.js +8 -2
  462. package/test-env/components/badge/badge.js +1 -1
  463. package/test-env/components/badge/badge.styles.js +2 -2
  464. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  465. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -0
  466. package/test-env/components/badge/color_utils.js +13 -12
  467. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  468. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  469. package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
  470. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  471. package/test-env/components/button/button.js +1 -1
  472. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  473. package/test-env/components/button/button_empty/button_empty.js +1 -1
  474. package/test-env/components/button/button_group/button_group_button.js +1 -1
  475. package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
  476. package/test-env/components/button/button_icon/button_icon.js +1 -1
  477. package/test-env/components/card/card.styles.js +5 -2
  478. package/test-env/components/code/code_block_annotations.js +1 -1
  479. package/test-env/components/code/code_block_line.styles.js +1 -2
  480. package/test-env/components/code/code_syntax.styles.js +23 -27
  481. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  482. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  483. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  484. package/test-env/components/color_picker/color_picker.js +8 -2
  485. package/test-env/components/color_picker/color_picker.styles.js +1 -2
  486. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  487. package/test-env/components/combo_box/combo_box.js +9 -6
  488. package/test-env/components/common.js +0 -28
  489. package/test-env/components/datagrid/data_grid.styles.js +3 -5
  490. package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
  491. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  492. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  493. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  494. package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
  495. package/test-env/components/empty_prompt/empty_prompt.styles.js +4 -1
  496. package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
  497. package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
  498. package/test-env/components/flyout/flyout.styles.js +7 -2
  499. package/test-env/components/form/form.styles.js +26 -28
  500. package/test-env/components/form/range/range_tooltip.styles.js +3 -7
  501. package/test-env/components/form/switch/switch.js +3 -2
  502. package/test-env/components/form/switch/switch.styles.js +16 -19
  503. package/test-env/components/header/header.styles.js +5 -6
  504. package/test-env/components/icon/icon.styles.js +9 -8
  505. package/test-env/components/icon/named_colors.js +1 -1
  506. package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
  507. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  508. package/test-env/components/list_group/list_group_item.styles.js +8 -10
  509. package/test-env/components/loading/loading_chart.styles.js +13 -5
  510. package/test-env/components/mark/mark.styles.js +2 -9
  511. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  512. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  513. package/test-env/components/modal/modal.styles.js +1 -1
  514. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
  515. package/test-env/components/page/page_header/page_header_content.js +2 -1
  516. package/test-env/components/page/page_header/page_header_content.styles.js +2 -1
  517. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  518. package/test-env/components/panel/panel.styles.js +1 -1
  519. package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
  520. package/test-env/components/popover/popover_footer.styles.js +1 -1
  521. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  522. package/test-env/components/progress/progress.js +1 -1
  523. package/test-env/components/progress/progress.styles.js +29 -27
  524. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  525. package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
  526. package/test-env/components/skeleton/utils.js +4 -6
  527. package/test-env/components/steps/step_number.styles.js +1 -1
  528. package/test-env/components/table/table_cells_shared.styles.js +2 -7
  529. package/test-env/components/table/table_row.styles.js +7 -9
  530. package/test-env/components/text/text.styles.js +1 -1
  531. package/test-env/components/text/text_color.js +1 -1
  532. package/test-env/components/text/text_color.styles.js +6 -5
  533. package/test-env/components/toast/toast.styles.js +1 -1
  534. package/test-env/components/token/token.js +13 -4
  535. package/test-env/components/token/token.styles.js +12 -3
  536. package/test-env/components/token/token_map.js +244 -2
  537. package/test-env/components/tool_tip/tool_tip.styles.js +12 -14
  538. package/test-env/components/tour/_tour_footer.styles.js +2 -4
  539. package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
  540. package/test-env/global_styling/functions/size.js +7 -27
  541. package/test-env/global_styling/mixins/_button.js +165 -0
  542. package/test-env/global_styling/mixins/_color.js +39 -30
  543. package/test-env/global_styling/mixins/index.js +11 -0
  544. package/test-env/global_styling/reset/global_styles.js +1 -1
  545. package/test-env/global_styling/variables/_colors_vis.js +6 -61
  546. package/test-env/global_styling/variables/animations.js +25 -31
  547. package/test-env/global_styling/variables/breakpoint.js +7 -16
  548. package/test-env/global_styling/variables/levels.js +7 -26
  549. package/test-env/global_styling/variables/shadow.js +13 -20
  550. package/test-env/global_styling/variables/size.js +7 -10
  551. package/test-env/global_styling/variables/typography.js +19 -41
  552. package/test-env/services/color/eui_palettes.js +116 -47
  553. package/test-env/services/color/index.js +8 -0
  554. package/test-env/services/color/vis_color_store.js +18 -0
  555. package/test-env/services/index.js +7 -0
  556. package/test-env/services/theme/provider.js +26 -2
  557. package/test-env/services/theme/types.js +13 -14
  558. package/test-env/services/theme/utils.js +54 -296
  559. package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
  560. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  561. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +589 -19
  562. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
  563. package/test-env/themes/amsterdam/global_styling/variables/_components.js +576 -0
  564. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +150 -0
  565. package/test-env/themes/amsterdam/theme.js +7 -1
  566. package/test-env/themes/index.js +7 -0
  567. package/test-env/themes/themes.js +10 -7
  568. /package/dist/{eui_theme_dark.json → eui_theme_amsterdam_dark.json} +0 -0
  569. /package/dist/{eui_theme_light.json → eui_theme_amsterdam_light.json} +0 -0
@@ -8,6 +8,7 @@ exports.useEuiBorderColorCSS = exports.useEuiBackgroundColorCSS = exports.useEui
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _services = require("../../services");
11
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
11
12
  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; }
12
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
13
14
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -16,40 +17,27 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
17
  * in compliance with, at your election, the Elastic License 2.0 or the Server
17
18
  * Side Public License, v 1.
18
19
  */
19
- var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'primary', 'success', 'warning', 'danger'];
20
+ var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
20
21
  /**
22
+ * @deprecated - use background tokens directly
21
23
  * @returns A single background color with optional alpha transparency
22
24
  */
23
25
  var euiBackgroundColor = exports.euiBackgroundColor = function euiBackgroundColor(_ref, color) {
24
- var euiTheme = _ref.euiTheme,
25
- colorMode = _ref.colorMode;
26
+ var euiTheme = _ref.euiTheme;
26
27
  var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
27
28
  method = _ref2.method;
28
29
  if (color === 'transparent') return 'transparent';
29
30
  if (method === 'transparent') {
30
- if (color === 'plain') {
31
- return (0, _services.transparentize)(euiTheme.colors.ghost, 0.2);
32
- } else if (color === 'subdued') {
33
- return colorMode === 'DARK' ? (0, _services.transparentize)(euiTheme.colors.lightShade, 0.4) : (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
34
- } else {
35
- return (0, _services.transparentize)(euiTheme.colors[color], 0.1);
36
- }
31
+ var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundTransparent', color);
32
+ return euiTheme.colors[tokenName];
37
33
  } else {
38
- var _tintOrShade = function _tintOrShade(color) {
39
- return colorMode === 'DARK' ? (0, _services.shade)(color, 0.8) : (0, _services.tint)(color, 0.9);
40
- };
41
- switch (color) {
42
- case 'plain':
43
- return euiTheme.colors.emptyShade;
44
- case 'subdued':
45
- return euiTheme.colors.body;
46
- default:
47
- return _tintOrShade(euiTheme.colors[color]);
48
- }
34
+ var _tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
35
+ return euiTheme.colors[_tokenName];
49
36
  }
50
37
  };
51
38
 
52
39
  /**
40
+ * @deprecated
53
41
  * @returns An object map of color keys to color values, categorized by
54
42
  * opaque (default) vs transparency (hover/focus states) methods.
55
43
  * e.g. {
@@ -69,6 +57,10 @@ var _euiBackgroundColorMap = function _euiBackgroundColorMap(euiThemeContext) {
69
57
  }, {})
70
58
  };
71
59
  };
60
+
61
+ /**
62
+ * @deprecated
63
+ */
72
64
  var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackgroundColor(color) {
73
65
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
74
66
  method = _ref3.method;
@@ -77,34 +69,44 @@ var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackg
77
69
  };
78
70
 
79
71
  /**
72
+ * @deprecated
80
73
  * @returns An object map of color keys to CSS,
81
74
  * e.g. { danger: css``, success: css``, ... }
82
75
  */
83
76
  var _euiBackgroundColors = function _euiBackgroundColors(euiThemeContext) {
84
77
  return BACKGROUND_COLORS.reduce(function (acc, color) {
85
- return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("background-color:", euiBackgroundColor(euiThemeContext, color), ";label:", color, ";")));
78
+ var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
79
+ var backgroundColor = color === 'transparent' ? 'transparent' : euiThemeContext.euiTheme.colors[tokenName];
80
+ return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("background-color:", backgroundColor, ";label:", color, ";")));
86
81
  }, {});
87
82
  };
83
+
84
+ /**
85
+ * @deprecated - use background tokens directly
86
+ * Hook to retrieve background style for a background color variant
87
+ * @returns An object map of color keys to CSS,
88
+ * e.g. { danger: css``, success: css``, ... }
89
+ */
88
90
  var useEuiBackgroundColorCSS = exports.useEuiBackgroundColorCSS = function useEuiBackgroundColorCSS() {
89
91
  return (0, _services.useEuiMemoizedStyles)(_euiBackgroundColors);
90
92
  };
91
93
 
92
94
  /**
93
95
  * Border colors
96
+ * @deprecated - use border tokens directly or use
97
+ * `useEuiBorderColorCSS()` for composed styles
94
98
  */
95
99
 
96
100
  var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, color) {
97
- var euiTheme = _ref4.euiTheme,
98
- colorMode = _ref4.colorMode;
101
+ var euiTheme = _ref4.euiTheme;
99
102
  switch (color) {
100
103
  case 'transparent':
101
- case 'plain':
102
- case 'subdued':
103
104
  return euiTheme.border.color;
104
- case 'warning':
105
- return (0, _services.tintOrShade)(euiTheme.colors.warning, 0.4, colorMode);
106
105
  default:
107
- return (0, _services.tintOrShade)(euiTheme.colors[color], 0.6, colorMode);
106
+ {
107
+ var tokenName = (0, _euiThemeCommon.getTokenName)('borderStrong', color);
108
+ return euiTheme.colors[tokenName];
109
+ }
108
110
  }
109
111
  };
110
112
 
@@ -114,9 +116,16 @@ var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, col
114
116
  */
115
117
  var _euiBorderColors = function _euiBorderColors(euiThemeContext) {
116
118
  return BACKGROUND_COLORS.reduce(function (acc, color) {
117
- return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("border-color:", euiBorderColor(euiThemeContext, color), ";label:", color, ";")));
119
+ var borderToken = (0, _euiThemeCommon.getTokenName)('borderBase', color);
120
+ return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("border-color:", euiThemeContext.euiTheme.colors[borderToken], ";label:", color, ";")));
118
121
  }, {});
119
122
  };
123
+
124
+ /**
125
+ * Hook to retrieve border style for a border variant
126
+ * @returns An object map of color keys to CSS,
127
+ * e.g. { danger: css``, success: css``, ... }
128
+ */
120
129
  var useEuiBorderColorCSS = exports.useEuiBorderColorCSS = function useEuiBorderColorCSS() {
121
130
  return (0, _services.useEuiMemoizedStyles)(_euiBorderColors);
122
131
  };
@@ -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
  });
@@ -36,7 +36,7 @@ var EuiGlobalStyles = exports.EuiGlobalStyles = function EuiGlobalStyles(_ref) {
36
36
  * so that it knows to use custom styles. Therefore, we just reuse the same scrollbar mixin with thick size.
37
37
  */
38
38
  var scrollbarStyles = (0, _mixins.euiScrollBarStyles)(euiThemeContext, {
39
- trackColor: colorMode === 'LIGHT' ? (0, _color.shade)(colors.body, 0.03) : (0, _color.tint)(colors.body, 0.07),
39
+ trackColor: euiTheme.components.scrollbarTrackColor,
40
40
  width: 'auto'
41
41
  });
42
42
 
@@ -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 _colors_vis.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 _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colors_vis");
@@ -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");
@@ -3,29 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EuiThemeLevels = void 0;
7
- /*
8
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
- * or more contributor license agreements. Licensed under the Elastic License
10
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
- * in compliance with, at your election, the Elastic License 2.0 or the Server
12
- * Side Public License, v 1.
13
- */
14
-
15
- /**
16
- * Z-Index
17
- *
18
- * Remember that z-index is relative to parent and based on the stacking context.
19
- * z-indexes only compete against other z-indexes when they exist as children of
20
- * that shared parent.
21
- *
22
- * That means a popover with a settings of 2, will still show above a modal
23
- * with a setting of 100, if it is within that modal and not besides it.
24
- *
25
- * Generally that means it's a good idea to consider things added to this file
26
- * as competitive only as siblings.
27
- *
28
- * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
29
- */
30
-
31
- var EuiThemeLevels = exports.EuiThemeLevels = ['toast', 'modal', 'mask', 'navigation', 'menu', 'header', 'flyout', 'maskBelowHeader', 'content'];
6
+ Object.defineProperty(exports, "EuiThemeLevels", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _euiThemeCommon.EuiThemeLevels;
10
+ }
11
+ });
12
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
@@ -3,23 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiShadowSizesDescriptions = exports.EuiThemeShadowSizes = void 0;
7
- /*
8
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
- * or more contributor license agreements. Licensed under the Elastic License
10
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
- * in compliance with, at your election, the Elastic License 2.0 or the Server
12
- * Side Public License, v 1.
13
- */
14
-
15
- var EuiThemeShadowSizes = exports.EuiThemeShadowSizes = ['xs', 's', 'm', 'l', 'xl'];
16
- /**
17
- * Shadow t-shirt sizes descriptions
18
- */
19
- var _EuiShadowSizesDescriptions = exports._EuiShadowSizesDescriptions = {
20
- xs: 'Very subtle shadow used on small components.',
21
- s: 'Adds subtle depth, usually used in conjunction with a border.',
22
- m: 'Used on small sized portalled content like popovers.',
23
- l: 'Primary shadow used in most cases to add visible depth.',
24
- xl: 'Very large shadows used for large portalled style containers like modals and flyouts.'
25
- };
6
+ Object.defineProperty(exports, "EuiThemeShadowSizes", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _euiThemeCommon.EuiThemeShadowSizes;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "_EuiShadowSizesDescriptions", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _euiThemeCommon._EuiShadowSizesDescriptions;
16
+ }
17
+ });
18
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
@@ -3,13 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EuiThemeSizes = void 0;
7
- /*
8
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
- * or more contributor license agreements. Licensed under the Elastic License
10
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
- * in compliance with, at your election, the Elastic License 2.0 or the Server
12
- * Side Public License, v 1.
13
- */
14
-
15
- var EuiThemeSizes = exports.EuiThemeSizes = ['xxs', 'xs', 's', 'm', 'base', 'l', 'xl', 'xxl', 'xxxl', 'xxxxl'];
6
+ Object.defineProperty(exports, "EuiThemeSizes", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _euiThemeCommon.EuiThemeSizes;
10
+ }
11
+ });
12
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
@@ -3,44 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EuiThemeFontWeights = exports.EuiThemeFontUnits = exports.EuiThemeFontScales = 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
- * Font units of measure
17
- */
18
-
19
- var EuiThemeFontUnits = exports.EuiThemeFontUnits = ['rem', 'px', 'em'];
20
- /*
21
- * Font scale
22
- */
23
-
24
- var EuiThemeFontScales = exports.EuiThemeFontScales = ['xxxs', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
25
-
26
- /*
27
- * Font base settings
28
- */
29
-
30
- /*
31
- * Font weights
32
- */
33
-
34
- var EuiThemeFontWeights = exports.EuiThemeFontWeights = ['light', 'regular', 'medium', 'semiBold', 'bold'];
35
-
36
- /**
37
- * Body / Base styles
38
- */
39
-
40
- /**
41
- * Title styles
42
- */
43
-
44
- /*
45
- * Font
46
- */
6
+ Object.defineProperty(exports, "EuiThemeFontScales", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _euiThemeCommon.EuiThemeFontScales;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "EuiThemeFontUnits", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _euiThemeCommon.EuiThemeFontUnits;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "EuiThemeFontWeights", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _euiThemeCommon.EuiThemeFontWeights;
22
+ }
23
+ });
24
+ var _euiThemeCommon = require("@elastic/eui-theme-common");