@elastic/eui 97.3.0-borealis.1 → 97.3.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 (466) 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 +0 -1
  5. package/es/components/badge/color_utils.js +7 -8
  6. package/es/components/badge/notification_badge/badge_notification.js +1 -1
  7. package/es/components/badge/notification_badge/badge_notification.styles.js +0 -1
  8. package/es/components/bottom_bar/bottom_bar.styles.js +2 -1
  9. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
  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 +2 -1
  19. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  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 +2 -1
  22. package/es/components/color_picker/color_picker.styles.js +2 -1
  23. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  24. package/es/components/common.js +28 -0
  25. package/es/components/datagrid/data_grid.styles.js +5 -3
  26. package/es/components/date_picker/react_date_picker.styles.js +1 -2
  27. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  28. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
  29. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +5 -4
  30. package/es/components/drag_and_drop/droppable.styles.js +4 -2
  31. package/es/components/empty_prompt/empty_prompt.styles.js +2 -5
  32. package/es/components/filter_group/filter_select_item.styles.js +2 -1
  33. package/es/components/flyout/_flyout_close_button.styles.js +2 -1
  34. package/es/components/form/form.styles.js +28 -21
  35. package/es/components/form/range/range_tooltip.styles.js +7 -3
  36. package/es/components/form/switch/switch.js +7 -3
  37. package/es/components/form/switch/switch.styles.js +19 -16
  38. package/es/components/header/header.styles.js +6 -5
  39. package/es/components/icon/icon.styles.js +8 -9
  40. package/es/components/icon/named_colors.js +1 -1
  41. package/es/components/inline_edit/inline_edit_form.styles.js +2 -1
  42. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  43. package/es/components/list_group/list_group_item.styles.js +11 -9
  44. package/es/components/mark/mark.styles.js +9 -2
  45. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  46. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  47. package/es/components/overlay_mask/overlay_mask.styles.js +2 -1
  48. package/es/components/page/page_header/page_header_content.js +2 -1
  49. package/es/components/page/page_header/page_header_content.styles.js +2 -1
  50. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  51. package/es/components/popover/popover_footer.styles.js +1 -1
  52. package/es/components/popover/popover_panel/_popover_panel.styles.js +4 -3
  53. package/es/components/progress/progress.js +1 -1
  54. package/es/components/progress/progress.styles.js +6 -8
  55. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  56. package/es/components/side_nav/side_nav_item.styles.js +2 -1
  57. package/es/components/skeleton/utils.js +5 -3
  58. package/es/components/steps/step_number.styles.js +1 -1
  59. package/es/components/table/table_cells_shared.styles.js +7 -2
  60. package/es/components/table/table_row.styles.js +10 -8
  61. package/es/components/text/text.styles.js +2 -2
  62. package/es/components/text/text_color.js +1 -1
  63. package/es/components/text/text_color.styles.js +5 -6
  64. package/es/components/tool_tip/tool_tip.styles.js +10 -8
  65. package/es/components/tour/_tour_footer.styles.js +4 -2
  66. package/es/components/tree_view/tree_view_item.styles.js +2 -1
  67. package/es/global_styling/functions/size.js +17 -1
  68. package/es/global_styling/mixins/_color.js +31 -40
  69. package/es/global_styling/mixins/index.js +1 -2
  70. package/es/global_styling/reset/global_styles.js +2 -2
  71. package/es/global_styling/variables/_colors_vis.js +53 -1
  72. package/es/global_styling/variables/animations.js +22 -1
  73. package/es/global_styling/variables/breakpoint.js +7 -1
  74. package/es/global_styling/variables/levels.js +17 -1
  75. package/es/global_styling/variables/shadow.js +11 -1
  76. package/es/global_styling/variables/size.js +1 -1
  77. package/es/global_styling/variables/typography.js +32 -1
  78. package/es/services/theme/provider.js +0 -11
  79. package/es/services/theme/types.js +6 -1
  80. package/es/services/theme/utils.js +303 -1
  81. package/es/themes/amsterdam/global_styling/mixins/button.js +203 -1
  82. package/es/themes/amsterdam/global_styling/variables/_colors.js +18 -587
  83. package/es/themes/amsterdam/theme.js +1 -3
  84. package/es/themes/index.js +1 -1
  85. package/es/themes/themes.js +0 -7
  86. package/eui.d.ts +2634 -2096
  87. package/i18ntokens.json +4 -4
  88. package/lib/components/badge/badge.js +1 -1
  89. package/lib/components/badge/badge.styles.js +2 -2
  90. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  91. package/lib/components/badge/beta_badge/beta_badge.styles.js +0 -1
  92. package/lib/components/badge/color_utils.js +12 -13
  93. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  94. package/lib/components/badge/notification_badge/badge_notification.styles.js +0 -1
  95. package/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
  96. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
  97. package/lib/components/button/button.js +1 -1
  98. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  99. package/lib/components/button/button_empty/button_empty.js +1 -1
  100. package/lib/components/button/button_group/button_group_button.js +1 -1
  101. package/lib/components/button/button_group/button_group_button.styles.js +3 -3
  102. package/lib/components/button/button_icon/button_icon.js +1 -1
  103. package/lib/components/card/card.styles.js +1 -1
  104. package/lib/components/code/code_block_annotations.js +1 -1
  105. package/lib/components/code/code_block_line.styles.js +2 -1
  106. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  107. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  108. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  109. package/lib/components/color_picker/color_picker.styles.js +2 -1
  110. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  111. package/lib/components/common.js +28 -0
  112. package/lib/components/datagrid/data_grid.styles.js +5 -3
  113. package/lib/components/date_picker/react_date_picker.styles.js +2 -3
  114. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  115. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  116. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  117. package/lib/components/drag_and_drop/droppable.styles.js +4 -2
  118. package/lib/components/empty_prompt/empty_prompt.styles.js +1 -4
  119. package/lib/components/filter_group/filter_select_item.styles.js +2 -1
  120. package/lib/components/flyout/_flyout_close_button.styles.js +2 -1
  121. package/lib/components/form/form.styles.js +27 -20
  122. package/lib/components/form/range/range_tooltip.styles.js +7 -3
  123. package/lib/components/form/switch/switch.js +7 -3
  124. package/lib/components/form/switch/switch.styles.js +19 -16
  125. package/lib/components/header/header.styles.js +5 -4
  126. package/lib/components/icon/icon.styles.js +8 -9
  127. package/lib/components/icon/named_colors.js +1 -1
  128. package/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
  129. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  130. package/lib/components/list_group/list_group_item.styles.js +10 -8
  131. package/lib/components/mark/mark.styles.js +9 -2
  132. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  133. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  134. package/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
  135. package/lib/components/page/page_header/page_header_content.js +2 -1
  136. package/lib/components/page/page_header/page_header_content.styles.js +2 -1
  137. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  138. package/lib/components/popover/popover_footer.styles.js +1 -1
  139. package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -3
  140. package/lib/components/progress/progress.js +1 -1
  141. package/lib/components/progress/progress.styles.js +6 -8
  142. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  143. package/lib/components/side_nav/side_nav_item.styles.js +2 -1
  144. package/lib/components/skeleton/utils.js +5 -3
  145. package/lib/components/steps/step_number.styles.js +1 -1
  146. package/lib/components/table/table_cells_shared.styles.js +7 -2
  147. package/lib/components/table/table_row.styles.js +9 -7
  148. package/lib/components/text/text.styles.js +1 -1
  149. package/lib/components/text/text_color.js +1 -1
  150. package/lib/components/text/text_color.styles.js +5 -6
  151. package/lib/components/tool_tip/tool_tip.styles.js +10 -8
  152. package/lib/components/tour/_tour_footer.styles.js +4 -2
  153. package/lib/components/tree_view/tree_view_item.styles.js +2 -1
  154. package/lib/global_styling/functions/size.js +26 -7
  155. package/lib/global_styling/mixins/_color.js +30 -39
  156. package/lib/global_styling/mixins/index.js +0 -11
  157. package/lib/global_styling/reset/global_styles.js +1 -1
  158. package/lib/global_styling/variables/_colors_vis.js +61 -6
  159. package/lib/global_styling/variables/animations.js +31 -25
  160. package/lib/global_styling/variables/breakpoint.js +16 -7
  161. package/lib/global_styling/variables/levels.js +26 -7
  162. package/lib/global_styling/variables/shadow.js +20 -13
  163. package/lib/global_styling/variables/size.js +10 -7
  164. package/lib/global_styling/variables/typography.js +41 -19
  165. package/lib/services/theme/provider.js +0 -11
  166. package/lib/services/theme/types.js +14 -13
  167. package/lib/services/theme/utils.js +303 -54
  168. package/lib/themes/amsterdam/global_styling/mixins/button.js +206 -45
  169. package/lib/themes/amsterdam/global_styling/variables/_colors.js +18 -586
  170. package/lib/themes/amsterdam/theme.js +1 -3
  171. package/lib/themes/index.js +0 -7
  172. package/lib/themes/themes.js +1 -8
  173. package/optimize/es/components/badge/badge.js +1 -1
  174. package/optimize/es/components/badge/badge.styles.js +2 -2
  175. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
  176. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +0 -1
  177. package/optimize/es/components/badge/color_utils.js +7 -8
  178. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  179. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +0 -1
  180. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -1
  181. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
  182. package/optimize/es/components/button/button.js +1 -1
  183. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  184. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  185. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  186. package/optimize/es/components/button/button_group/button_group_button.styles.js +4 -4
  187. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  188. package/optimize/es/components/card/card.styles.js +1 -1
  189. package/optimize/es/components/code/code_block_annotations.js +1 -1
  190. package/optimize/es/components/code/code_block_line.styles.js +2 -1
  191. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  192. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  193. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  194. package/optimize/es/components/color_picker/color_picker.styles.js +2 -1
  195. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  196. package/optimize/es/components/common.js +28 -0
  197. package/optimize/es/components/datagrid/data_grid.styles.js +5 -3
  198. package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -2
  199. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  200. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
  201. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +5 -4
  202. package/optimize/es/components/drag_and_drop/droppable.styles.js +4 -2
  203. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +2 -5
  204. package/optimize/es/components/filter_group/filter_select_item.styles.js +2 -1
  205. package/optimize/es/components/flyout/_flyout_close_button.styles.js +2 -1
  206. package/optimize/es/components/form/form.styles.js +28 -21
  207. package/optimize/es/components/form/range/range_tooltip.styles.js +7 -3
  208. package/optimize/es/components/form/switch/switch.js +2 -3
  209. package/optimize/es/components/form/switch/switch.styles.js +19 -16
  210. package/optimize/es/components/header/header.styles.js +6 -5
  211. package/optimize/es/components/icon/icon.styles.js +8 -9
  212. package/optimize/es/components/icon/named_colors.js +1 -1
  213. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +2 -1
  214. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  215. package/optimize/es/components/list_group/list_group_item.styles.js +11 -9
  216. package/optimize/es/components/mark/mark.styles.js +9 -2
  217. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  218. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  219. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +2 -1
  220. package/optimize/es/components/page/page_header/page_header_content.js +2 -1
  221. package/optimize/es/components/page/page_header/page_header_content.styles.js +2 -1
  222. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  223. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  224. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +4 -3
  225. package/optimize/es/components/progress/progress.js +1 -1
  226. package/optimize/es/components/progress/progress.styles.js +6 -8
  227. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  228. package/optimize/es/components/side_nav/side_nav_item.styles.js +2 -1
  229. package/optimize/es/components/skeleton/utils.js +5 -3
  230. package/optimize/es/components/steps/step_number.styles.js +1 -1
  231. package/optimize/es/components/table/table_cells_shared.styles.js +7 -2
  232. package/optimize/es/components/table/table_row.styles.js +10 -8
  233. package/optimize/es/components/text/text.styles.js +2 -2
  234. package/optimize/es/components/text/text_color.js +1 -1
  235. package/optimize/es/components/text/text_color.styles.js +5 -6
  236. package/optimize/es/components/tool_tip/tool_tip.styles.js +10 -8
  237. package/optimize/es/components/tour/_tour_footer.styles.js +4 -2
  238. package/optimize/es/components/tree_view/tree_view_item.styles.js +2 -1
  239. package/optimize/es/global_styling/functions/size.js +17 -1
  240. package/optimize/es/global_styling/mixins/_color.js +31 -40
  241. package/optimize/es/global_styling/mixins/index.js +1 -2
  242. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  243. package/optimize/es/global_styling/variables/_colors_vis.js +53 -1
  244. package/optimize/es/global_styling/variables/animations.js +22 -1
  245. package/optimize/es/global_styling/variables/breakpoint.js +7 -1
  246. package/optimize/es/global_styling/variables/levels.js +17 -1
  247. package/optimize/es/global_styling/variables/shadow.js +11 -1
  248. package/optimize/es/global_styling/variables/size.js +1 -1
  249. package/optimize/es/global_styling/variables/typography.js +32 -1
  250. package/optimize/es/services/theme/provider.js +0 -11
  251. package/optimize/es/services/theme/types.js +6 -1
  252. package/optimize/es/services/theme/utils.js +295 -1
  253. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +198 -1
  254. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +18 -587
  255. package/optimize/es/themes/amsterdam/theme.js +1 -3
  256. package/optimize/es/themes/index.js +1 -1
  257. package/optimize/es/themes/themes.js +0 -7
  258. package/optimize/lib/components/badge/badge.js +1 -1
  259. package/optimize/lib/components/badge/badge.styles.js +2 -2
  260. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
  261. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +0 -1
  262. package/optimize/lib/components/badge/color_utils.js +12 -13
  263. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  264. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +0 -1
  265. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
  266. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
  267. package/optimize/lib/components/button/button.js +1 -1
  268. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  269. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  270. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  271. package/optimize/lib/components/button/button_group/button_group_button.styles.js +3 -3
  272. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  273. package/optimize/lib/components/card/card.styles.js +1 -1
  274. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  275. package/optimize/lib/components/code/code_block_line.styles.js +2 -1
  276. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  277. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  278. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  279. package/optimize/lib/components/color_picker/color_picker.styles.js +2 -1
  280. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  281. package/optimize/lib/components/common.js +28 -0
  282. package/optimize/lib/components/datagrid/data_grid.styles.js +5 -3
  283. package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -3
  284. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  285. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  286. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  287. package/optimize/lib/components/drag_and_drop/droppable.styles.js +4 -2
  288. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +1 -4
  289. package/optimize/lib/components/filter_group/filter_select_item.styles.js +2 -1
  290. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +2 -1
  291. package/optimize/lib/components/form/form.styles.js +27 -20
  292. package/optimize/lib/components/form/range/range_tooltip.styles.js +7 -3
  293. package/optimize/lib/components/form/switch/switch.js +2 -3
  294. package/optimize/lib/components/form/switch/switch.styles.js +19 -16
  295. package/optimize/lib/components/header/header.styles.js +5 -4
  296. package/optimize/lib/components/icon/icon.styles.js +8 -9
  297. package/optimize/lib/components/icon/named_colors.js +1 -1
  298. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
  299. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  300. package/optimize/lib/components/list_group/list_group_item.styles.js +10 -8
  301. package/optimize/lib/components/mark/mark.styles.js +9 -2
  302. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  303. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  304. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
  305. package/optimize/lib/components/page/page_header/page_header_content.js +2 -1
  306. package/optimize/lib/components/page/page_header/page_header_content.styles.js +2 -1
  307. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  308. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  309. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -3
  310. package/optimize/lib/components/progress/progress.js +1 -1
  311. package/optimize/lib/components/progress/progress.styles.js +6 -8
  312. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  313. package/optimize/lib/components/side_nav/side_nav_item.styles.js +2 -1
  314. package/optimize/lib/components/skeleton/utils.js +5 -3
  315. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  316. package/optimize/lib/components/table/table_cells_shared.styles.js +7 -2
  317. package/optimize/lib/components/table/table_row.styles.js +9 -7
  318. package/optimize/lib/components/text/text.styles.js +1 -1
  319. package/optimize/lib/components/text/text_color.js +1 -1
  320. package/optimize/lib/components/text/text_color.styles.js +5 -6
  321. package/optimize/lib/components/tool_tip/tool_tip.styles.js +10 -8
  322. package/optimize/lib/components/tour/_tour_footer.styles.js +4 -2
  323. package/optimize/lib/components/tree_view/tree_view_item.styles.js +2 -1
  324. package/optimize/lib/global_styling/functions/size.js +27 -7
  325. package/optimize/lib/global_styling/mixins/_color.js +30 -39
  326. package/optimize/lib/global_styling/mixins/index.js +0 -11
  327. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  328. package/optimize/lib/global_styling/variables/_colors_vis.js +61 -6
  329. package/optimize/lib/global_styling/variables/animations.js +31 -25
  330. package/optimize/lib/global_styling/variables/breakpoint.js +16 -7
  331. package/optimize/lib/global_styling/variables/levels.js +26 -7
  332. package/optimize/lib/global_styling/variables/shadow.js +20 -13
  333. package/optimize/lib/global_styling/variables/size.js +10 -7
  334. package/optimize/lib/global_styling/variables/typography.js +41 -19
  335. package/optimize/lib/services/theme/provider.js +0 -11
  336. package/optimize/lib/services/theme/types.js +14 -13
  337. package/optimize/lib/services/theme/utils.js +296 -54
  338. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +203 -45
  339. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +18 -586
  340. package/optimize/lib/themes/amsterdam/theme.js +1 -3
  341. package/optimize/lib/themes/index.js +0 -7
  342. package/optimize/lib/themes/themes.js +1 -8
  343. package/package.json +3 -7
  344. package/src/global_styling/functions/_index.scss +5 -1
  345. package/src/global_styling/index.scss +16 -1
  346. package/src/global_styling/variables/_animations.scss +8 -1
  347. package/src/global_styling/variables/_borders.scss +9 -1
  348. package/src/global_styling/variables/_buttons.scss +18 -1
  349. package/src/global_styling/variables/_colors_vis.scss +70 -1
  350. package/src/global_styling/variables/_font_weight.scss +7 -1
  351. package/src/global_styling/variables/_form.scss +21 -2
  352. package/src/global_styling/variables/_responsive.scss +9 -1
  353. package/src/global_styling/variables/_shadows.scss +1 -1
  354. package/src/global_styling/variables/_size.scss +15 -1
  355. package/src/global_styling/variables/_states.scss +14 -1
  356. package/src/global_styling/variables/_typography.scss +75 -1
  357. package/src/global_styling/variables/_z_index.scss +33 -1
  358. package/src/themes/amsterdam/_colors_dark.scss +8 -80
  359. package/src/themes/amsterdam/_colors_light.scss +8 -80
  360. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
  361. package/test-env/components/badge/badge.js +1 -1
  362. package/test-env/components/badge/badge.styles.js +2 -2
  363. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  364. package/test-env/components/badge/beta_badge/beta_badge.styles.js +0 -1
  365. package/test-env/components/badge/color_utils.js +12 -13
  366. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  367. package/test-env/components/badge/notification_badge/badge_notification.styles.js +0 -1
  368. package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -1
  369. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
  370. package/test-env/components/button/button.js +1 -1
  371. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  372. package/test-env/components/button/button_empty/button_empty.js +1 -1
  373. package/test-env/components/button/button_group/button_group_button.js +1 -1
  374. package/test-env/components/button/button_group/button_group_button.styles.js +3 -3
  375. package/test-env/components/button/button_icon/button_icon.js +1 -1
  376. package/test-env/components/card/card.styles.js +1 -1
  377. package/test-env/components/code/code_block_annotations.js +1 -1
  378. package/test-env/components/code/code_block_line.styles.js +2 -1
  379. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  380. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  381. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  382. package/test-env/components/color_picker/color_picker.styles.js +2 -1
  383. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  384. package/test-env/components/common.js +28 -0
  385. package/test-env/components/datagrid/data_grid.styles.js +5 -3
  386. package/test-env/components/date_picker/react_date_picker.styles.js +2 -3
  387. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  388. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  389. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  390. package/test-env/components/drag_and_drop/droppable.styles.js +4 -2
  391. package/test-env/components/empty_prompt/empty_prompt.styles.js +1 -4
  392. package/test-env/components/filter_group/filter_select_item.styles.js +2 -1
  393. package/test-env/components/flyout/_flyout_close_button.styles.js +2 -1
  394. package/test-env/components/form/form.styles.js +27 -20
  395. package/test-env/components/form/range/range_tooltip.styles.js +7 -3
  396. package/test-env/components/form/switch/switch.js +2 -3
  397. package/test-env/components/form/switch/switch.styles.js +19 -16
  398. package/test-env/components/header/header.styles.js +5 -4
  399. package/test-env/components/icon/icon.styles.js +8 -9
  400. package/test-env/components/icon/named_colors.js +1 -1
  401. package/test-env/components/inline_edit/inline_edit_form.styles.js +2 -1
  402. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  403. package/test-env/components/list_group/list_group_item.styles.js +10 -8
  404. package/test-env/components/mark/mark.styles.js +9 -2
  405. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  406. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  407. package/test-env/components/overlay_mask/overlay_mask.styles.js +2 -1
  408. package/test-env/components/page/page_header/page_header_content.js +2 -1
  409. package/test-env/components/page/page_header/page_header_content.styles.js +2 -1
  410. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  411. package/test-env/components/popover/popover_footer.styles.js +1 -1
  412. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -3
  413. package/test-env/components/progress/progress.js +1 -1
  414. package/test-env/components/progress/progress.styles.js +6 -8
  415. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  416. package/test-env/components/side_nav/side_nav_item.styles.js +2 -1
  417. package/test-env/components/skeleton/utils.js +5 -3
  418. package/test-env/components/steps/step_number.styles.js +1 -1
  419. package/test-env/components/table/table_cells_shared.styles.js +7 -2
  420. package/test-env/components/table/table_row.styles.js +9 -7
  421. package/test-env/components/text/text.styles.js +1 -1
  422. package/test-env/components/text/text_color.js +1 -1
  423. package/test-env/components/text/text_color.styles.js +5 -6
  424. package/test-env/components/tool_tip/tool_tip.styles.js +10 -8
  425. package/test-env/components/tour/_tour_footer.styles.js +4 -2
  426. package/test-env/components/tree_view/tree_view_item.styles.js +2 -1
  427. package/test-env/global_styling/functions/size.js +27 -7
  428. package/test-env/global_styling/mixins/_color.js +30 -39
  429. package/test-env/global_styling/mixins/index.js +0 -11
  430. package/test-env/global_styling/reset/global_styles.js +1 -1
  431. package/test-env/global_styling/variables/_colors_vis.js +61 -6
  432. package/test-env/global_styling/variables/animations.js +31 -25
  433. package/test-env/global_styling/variables/breakpoint.js +16 -7
  434. package/test-env/global_styling/variables/levels.js +26 -7
  435. package/test-env/global_styling/variables/shadow.js +20 -13
  436. package/test-env/global_styling/variables/size.js +10 -7
  437. package/test-env/global_styling/variables/typography.js +41 -19
  438. package/test-env/services/theme/provider.js +0 -11
  439. package/test-env/services/theme/types.js +14 -13
  440. package/test-env/services/theme/utils.js +296 -54
  441. package/test-env/themes/amsterdam/global_styling/mixins/button.js +203 -45
  442. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +18 -586
  443. package/test-env/themes/amsterdam/theme.js +1 -3
  444. package/test-env/themes/index.js +0 -7
  445. package/test-env/themes/themes.js +1 -8
  446. package/es/global_styling/mixins/_button.js +0 -159
  447. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -281
  448. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -442
  449. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -149
  450. package/lib/global_styling/mixins/_button.js +0 -164
  451. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -285
  452. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -446
  453. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -153
  454. package/optimize/es/global_styling/mixins/_button.js +0 -159
  455. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -270
  456. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -434
  457. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -141
  458. package/optimize/lib/global_styling/mixins/_button.js +0 -165
  459. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
  460. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -439
  461. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -146
  462. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  463. package/test-env/global_styling/mixins/_button.js +0 -165
  464. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
  465. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -439
  466. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -146
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _exportNames = {
7
7
  EUI_THEMES: true,
8
8
  isDefaultTheme: true,
9
- isExperimentalThemeEnabled: true,
10
9
  AMSTERDAM_NAME_KEY: true,
11
10
  EuiThemeAmsterdam: true
12
11
  };
@@ -34,12 +33,6 @@ Object.defineProperty(exports, "isDefaultTheme", {
34
33
  return _themes.isDefaultTheme;
35
34
  }
36
35
  });
37
- Object.defineProperty(exports, "isExperimentalThemeEnabled", {
38
- enumerable: true,
39
- get: function get() {
40
- return _themes.isExperimentalThemeEnabled;
41
- }
42
- });
43
36
  var _themes = require("./themes");
44
37
  var _theme = require("./amsterdam/theme");
45
38
  var _amsterdam = require("./amsterdam");
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isExperimentalThemeEnabled = exports.isDefaultTheme = exports.EUI_THEMES = exports.EUI_EXPERIMENTAL_THEME_ENABLED_KEY = void 0;
6
+ exports.isDefaultTheme = exports.EUI_THEMES = void 0;
7
7
  var _theme = require("./amsterdam/theme");
8
8
  /*
9
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -24,11 +24,4 @@ var EUI_THEMES = exports.EUI_THEMES = [{
24
24
  }];
25
25
  var isDefaultTheme = exports.isDefaultTheme = function isDefaultTheme(name) {
26
26
  return name === _theme.AMSTERDAM_NAME_KEY;
27
- };
28
- var EUI_EXPERIMENTAL_THEME_ENABLED_KEY = exports.EUI_EXPERIMENTAL_THEME_ENABLED_KEY = 'eui-experimental-theme-enabled';
29
- var isExperimentalThemeEnabled = exports.isExperimentalThemeEnabled = function isExperimentalThemeEnabled() {
30
- if (typeof localStorage !== 'undefined') {
31
- return localStorage.getItem(EUI_EXPERIMENTAL_THEME_ENABLED_KEY) === 'true';
32
- }
33
- return false;
34
27
  };
@@ -23,7 +23,7 @@ import { getTextColor, getColorContrast, getIsValidColor } from './color_utils';
23
23
  import { euiBadgeStyles } from './badge.styles';
24
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
25
25
  export var ICON_SIDES = ['left', 'right'];
26
- export var COLORS = ['default', 'hollow', 'primary', 'success', 'accent', 'accentSecondary', 'warning', 'danger'];
26
+ export var COLORS = ['default', 'hollow', 'primary', 'success', 'accent', 'warning', 'danger'];
27
27
  export var EuiBadge = function EuiBadge(_ref) {
28
28
  var children = _ref.children,
29
29
  _ref$color = _ref.color,
@@ -9,6 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
9
 
10
10
  import { css } from '@emotion/react';
11
11
  import { euiFontSize, euiFocusRing, euiTextTruncate, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, mathWithUnits } from '../../global_styling';
12
+ import { transparentize } from '../../services';
12
13
  import { euiBadgeColors } from './color_utils';
13
14
  var _ref = process.env.NODE_ENV === "production" ? {
14
15
  name: "1hw5vc4-clickable",
@@ -38,7 +39,6 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
38
39
  hollow: /*#__PURE__*/css(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
39
40
  primary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
40
41
  accent: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
41
- accentSecondary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accentSecondary), ";label:accentSecondary;"),
42
42
  warning: /*#__PURE__*/css(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
43
43
  danger: /*#__PURE__*/css(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
44
44
  success: /*#__PURE__*/css(setBadgeColorVars(badgeColors.success), ";label:success;"),
@@ -62,7 +62,7 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
62
62
  },
63
63
  // Clickable icons (iconOnClick)
64
64
  iconButton: {
65
- euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", euiTheme.components.badgeIconButtonBackgroundHover, ";color:", euiTheme.colors.ink, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
65
+ euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", transparentize(euiTheme.colors.ghost, 0.8), ";color:", euiTheme.colors.ink, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
66
66
  return x / 2;
67
67
  }), ";}&:disabled{cursor:not-allowed;}.euiBadge__icon{margin:0!important;};label:euiBadge__iconButton;"),
68
68
  right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.xs), ";;label:right;"),
@@ -17,7 +17,7 @@ import { EuiToolTip } from '../../tool_tip';
17
17
  import { EuiIcon } from '../../icon';
18
18
  import { euiBetaBadgeStyles } from './beta_badge.styles';
19
19
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
- export var COLORS = ['accent', 'accentSecondary', 'subdued', 'hollow'];
20
+ export var COLORS = ['accent', 'subdued', 'hollow'];
21
21
  export var SIZES = ['s', 'm'];
22
22
  export var ALIGNMENTS = ['baseline', 'middle'];
23
23
 
@@ -44,7 +44,6 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
44
44
  }), ";};label:euiBetaBadge;"),
45
45
  // Colors
46
46
  accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
47
- accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
48
47
  subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;"),
49
48
  hollow: /*#__PURE__*/css("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", badgeColors.hollow.borderColor, ";;label:hollow;"),
50
49
  // Font sizes
@@ -11,11 +11,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
  */
12
12
 
13
13
  import chroma from 'chroma-js';
14
- import { isColorDark } from '../../services';
15
- import { euiButtonColor, euiButtonFillColor } from '../../global_styling/mixins/_button';
14
+ import { isColorDark, tint } from '../../services';
15
+ import { euiButtonColor, euiButtonFillColor } from '../../themes/amsterdam/global_styling/mixins';
16
16
  import { chromaValid, parseColor } from '../color_picker/utils';
17
17
  export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
18
- var euiTheme = euiThemeContext.euiTheme;
18
+ var euiTheme = euiThemeContext.euiTheme,
19
+ colorMode = euiThemeContext.colorMode;
19
20
  return {
20
21
  // Colors shared between buttons and badges
21
22
  primary: euiButtonFillColor(euiThemeContext, 'primary'),
@@ -23,18 +24,16 @@ export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
23
24
  warning: euiButtonFillColor(euiThemeContext, 'warning'),
24
25
  danger: euiButtonFillColor(euiThemeContext, 'danger'),
25
26
  accent: euiButtonFillColor(euiThemeContext, 'accent'),
26
- accentSecondary: euiButtonFillColor(euiThemeContext, 'accentSecondary'),
27
27
  disabled: euiButtonColor(euiThemeContext, 'disabled'),
28
28
  // Colors unique to badges
29
29
  default: getBadgeColors(euiThemeContext, euiTheme.colors.lightShade),
30
30
  // Hollow has a border and is used for autocompleters and beta badges
31
31
  hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
32
- borderColor: euiTheme.components.badgeBorderColorHollow
32
+ borderColor: colorMode === 'DARK' ? tint(euiTheme.border.color, 0.15) : euiTheme.border.color
33
33
  }),
34
34
  // Colors used by beta and notification badges
35
- subdued: getBadgeColors(euiThemeContext, euiTheme.components.badgeBackgroundSubdued),
36
- accentText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccent),
37
- accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
35
+ subdued: getBadgeColors(euiThemeContext, tint(euiTheme.colors.lightShade, 0.3)),
36
+ accentText: getBadgeColors(euiThemeContext, euiTheme.colors.accentText)
38
37
  };
39
38
  };
40
39
  export var getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
@@ -14,7 +14,7 @@ import classNames from 'classnames';
14
14
  import { useEuiMemoizedStyles } from '../../../services';
15
15
  import { euiNotificationBadgeStyles } from './badge_notification.styles';
16
16
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
- export var COLORS = ['accent', 'accentSecondary', 'subdued', 'success'];
17
+ export var COLORS = ['accent', 'subdued', 'success'];
18
18
  export var SIZES = ['s', 'm'];
19
19
  export var EuiNotificationBadge = function EuiNotificationBadge(_ref) {
20
20
  var children = _ref.children,
@@ -23,7 +23,6 @@ export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiT
23
23
  })), " ", logicalCSS('min-width', euiTheme.size.l), ";;label:m;"),
24
24
  // Colors
25
25
  accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
26
- accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
27
26
  success: /*#__PURE__*/css(badgeColors.success, ";label:success;"),
28
27
  subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;")
29
28
  };
@@ -10,6 +10,7 @@ var _templateObject;
10
10
 
11
11
  import { css, keyframes } from '@emotion/react';
12
12
  import { euiCanAnimate } from '../../global_styling';
13
+ import { shade } from '../../services';
13
14
  import { euiShadowFlat } from '../../themes/amsterdam/global_styling/mixins';
14
15
  var euiBottomBarAppear = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n"])));
15
16
  export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
@@ -17,7 +18,7 @@ export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
17
18
  return {
18
19
  // Base
19
20
  // `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
20
- euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", euiTheme.components.bottomBarBackground, ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
21
+ euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", shade(euiTheme.colors.lightestShade, 0.5), ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
21
22
  static: /*#__PURE__*/css(";label:static;"),
22
23
  // Default
23
24
  fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
@@ -7,14 +7,16 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { tintOrShade } from '../../services/color';
10
11
  import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits } from '../../global_styling';
11
- import { euiButtonColor } from '../../global_styling/mixins/_button';
12
+ import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins/button';
12
13
 
13
14
  /**
14
15
  * Styles cast to inner <a>, <button>, <span> elements
15
16
  */
16
17
  export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
17
- var euiTheme = euiThemeContext.euiTheme;
18
+ var euiTheme = euiThemeContext.euiTheme,
19
+ colorMode = euiThemeContext.colorMode;
18
20
 
19
21
  // Reuse button colors for `type="application`" clickable breadcrumbs
20
22
  var applicationButtonColors = euiButtonColor(euiThemeContext, 'primary');
@@ -22,8 +24,8 @@ export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiT
22
24
  // Create custom darker gray colors for non-clickable application breadcrumbs
23
25
  // The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
24
26
  var applicationTextColors = {
25
- backgroundColor: euiTheme.components.breadcrumbsApplicationBackground,
26
- color: euiTheme.components.breadcrumbsApplicationColor
27
+ backgroundColor: tintOrShade(euiTheme.colors.darkestShade, colorMode === 'DARK' ? 0.7 : 0.85, colorMode),
28
+ color: tintOrShade(euiTheme.colors.darkestShade, 0.2, colorMode)
27
29
  };
28
30
  return {
29
31
  euiBreadcrumb__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
@@ -11,7 +11,7 @@ var _excluded = ["className", "buttonRef", "size", "color", "fill"];
11
11
 
12
12
  import React from 'react';
13
13
  import classNames from 'classnames';
14
- import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../global_styling/mixins/_button';
14
+ import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
15
15
  import { EuiButtonDisplay, isButtonDisabled } from './button_display/_button_display';
16
16
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
17
  export var COLORS = BUTTON_COLORS;
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
  import { css } from '@emotion/react';
10
10
  import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
11
- import { euiButtonSizeMap } from '../../../global_styling/mixins';
11
+ import { euiButtonSizeMap } from '../../../themes/amsterdam/global_styling/mixins';
12
12
  // Provides a solid reset and base for handling sizing layout
13
13
  // Does not include any visual styles
14
14
  export var euiButtonBaseCSS = function euiButtonBaseCSS() {
@@ -16,7 +16,7 @@ import React from 'react';
16
16
  import classNames from 'classnames';
17
17
  import { useEuiMemoizedStyles, getSecureRelForTarget } from '../../../services';
18
18
  import { EuiButtonDisplayContent } from '../button_display/_button_display_content';
19
- import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
19
+ import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
20
20
  import { isButtonDisabled } from '../button_display/_button_display';
21
21
  import { euiButtonEmptyStyles } from './button_empty.styles';
22
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  import classNames from 'classnames';
17
17
  import React from 'react';
18
18
  import { useEuiMemoizedStyles } from '../../../services';
19
- import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
19
+ import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
20
20
  import { useInnerText } from '../../inner_text';
21
21
  import { EuiButtonDisplay } from '../button_display/_button_display';
22
22
  import { euiButtonGroupButtonStyles, _compressedButtonFocusColors } from './button_group_button.styles';
@@ -12,9 +12,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
12
12
  */
13
13
 
14
14
  import { css } from '@emotion/react';
15
- import { makeDisabledContrastColor } from '../../../services';
15
+ import { makeDisabledContrastColor, transparentize } from '../../../services';
16
16
  import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate } from '../../../global_styling';
17
- import { euiButtonFillColor, BUTTON_COLORS } from '../../../global_styling/mixins/_button';
17
+ import { euiButtonFillColor, BUTTON_COLORS } from '../../../themes/amsterdam/global_styling/mixins/button';
18
18
  import { euiScreenReaderOnly } from '../../accessibility';
19
19
  import { euiFormVariables } from '../../form/form.styles';
20
20
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -53,8 +53,8 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
53
53
  uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
54
54
  get borders() {
55
55
  var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
56
- var selectedColor = euiTheme.components.buttonGroupBorderColorSelected;
57
- var unselectedColor = euiTheme.components.buttonGroupBorderColor;
56
+ var selectedColor = transparentize(euiTheme.colors.emptyShade, 0.2);
57
+ var unselectedColor = transparentize(euiTheme.colors.fullShade, 0.1);
58
58
  var borderWidth = euiTheme.border.width.thin;
59
59
 
60
60
  // "Borders" between buttons should be present between two of the same colored buttons,
@@ -14,7 +14,7 @@ import classNames from 'classnames';
14
14
  import { getSecureRelForTarget, useEuiMemoizedStyles } from '../../../services';
15
15
  import { EuiIcon } from '../../icon';
16
16
  import { EuiLoadingSpinner } from '../../loading';
17
- import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../global_styling/mixins/_button';
17
+ import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
18
18
  import { isButtonDisabled } from '../button_display/_button_display';
19
19
  import { euiButtonIconStyles, _emptyHoverStyles } from './button_icon.styles';
20
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -9,7 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
9
 
10
10
  import { css } from '@emotion/react';
11
11
  import { euiPaddingSize, euiSupportsHas, logicalCSS, logicals, logicalTextAlignCSS } from '../../global_styling';
12
- import { euiButtonColor } from '../../global_styling/mixins';
12
+ import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins';
13
13
  var paddingKey = 'm';
14
14
  var halfPaddingKey = 's';
15
15
 
@@ -12,7 +12,7 @@ var _excluded = ["lineNumber", "children"];
12
12
 
13
13
  import React, { useState } from 'react';
14
14
  import { useEuiTheme, useEuiMemoizedStyles } from '../../services';
15
- import { useEuiButtonFocusCSS } from '../../global_styling/mixins/_button';
15
+ import { useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
16
16
  import { useEuiI18n } from '../i18n';
17
17
  import { EuiPopover } from '../popover';
18
18
  import { EuiIcon } from '../icon';
@@ -15,6 +15,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
15
15
  */
16
16
 
17
17
  import { css } from '@emotion/css';
18
+ import { euiBackgroundColor } from '../../global_styling';
18
19
  // Note: These styles must be in a separate file due to using `css` from `@emotion/css`
19
20
  // (i.e., applying styles in vanilla JS / directly to DOM nodes instead of React)
20
21
 
@@ -39,7 +40,7 @@ export var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeCont
39
40
  }),
40
41
  lineText: {
41
42
  euiCodeBlock__lineText: /*#__PURE__*/css("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.m, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
42
- isHighlighted: /*#__PURE__*/css("background:", euiTheme.colors.backgroundBasePrimary, ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
43
+ isHighlighted: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'primary'), ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
43
44
  },
44
45
  lineNumber: {
45
46
  euiCodeBlock__lineNumberWrapper: /*#__PURE__*/css("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
@@ -7,15 +7,17 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { shade } from '../../../services';
10
11
  import { logicalCSS } from '../../../global_styling';
11
12
  export var euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(_ref) {
12
- var euiTheme = _ref.euiTheme;
13
+ var euiTheme = _ref.euiTheme,
14
+ colorMode = _ref.colorMode;
13
15
  return {
14
16
  euiCollapsibleNavGroup: /*#__PURE__*/css("&:not(:first-child){", logicalCSS('border-top', euiTheme.border.thin), ";};label:euiCollapsibleNavGroup;"),
15
17
  // Background colors
16
18
  none: /*#__PURE__*/css(";label:none;"),
17
- light: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackground, ";;label:light;"),
18
- dark: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackgroundDark, ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
19
+ light: /*#__PURE__*/css("background-color:", euiTheme.colors.body, ";;label:light;"),
20
+ dark: /*#__PURE__*/css("background-color:", colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.2), ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
19
21
  // Header padding
20
22
  isCollapsible: /*#__PURE__*/css(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
21
23
  notCollapsible: /*#__PURE__*/css(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
@@ -12,7 +12,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
12
12
 
13
13
  import { css } from '@emotion/react';
14
14
  import { logicalCSS, mathWithUnits, euiFontSize } from '../../../global_styling';
15
- import { euiButtonColor } from '../../../global_styling/mixins/_button';
15
+ import { euiButtonColor } from '../../../themes/amsterdam/global_styling/mixins/button';
16
16
 
17
17
  /**
18
18
  * Style variables shared between accordion, link, and sub items
@@ -7,12 +7,13 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { transparentize } from '../../../services';
10
11
  import { logicalCSS } from '../../../global_styling';
11
12
  export var euiColorPaletteDisplayStyles = function euiColorPaletteDisplayStyles(euiThemeContext) {
12
13
  var euiTheme = euiThemeContext.euiTheme;
13
14
 
14
15
  // Border is a pseudo element with transparency
15
- var border = "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBaseFormsColorSwatch);
16
+ var border = "".concat(euiTheme.border.width.thin, " solid ").concat(transparentize(euiTheme.colors.darkestShade, 0.2));
16
17
  return {
17
18
  euiColorPaletteDisplay: /*#__PURE__*/css("position:relative;display:flex;flex-direction:row;overflow:hidden;&::after{content:'';position:absolute;inset:0;pointer-events:none;border:", border, ";border-radius:inherit;};label:euiColorPaletteDisplay;"),
18
19
  // Sizes
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { transparentize } from '../../services';
10
11
  import { logicalCSS, mathWithUnits } from '../../global_styling';
11
12
  export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext) {
12
13
  var euiTheme = euiThemeContext.euiTheme;
@@ -21,6 +22,6 @@ export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext)
21
22
  euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), ";};label:euiColorPicker__alphaRange;"),
22
23
  // Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
23
24
  // Targets a custom className applied directly to the <svg> icon
24
- euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", euiTheme.colors.borderBaseFormsColorSwatch, ";};label:euiColorPicker__swatchInputIcon;")
25
+ euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", transparentize(euiTheme.colors.fullShade, 0.2), ";};label:euiColorPicker__swatchInputIcon;")
25
26
  };
26
27
  };
@@ -14,6 +14,6 @@ export var euiColorPickerSwatchStyles = function euiColorPickerSwatchStyles(euiT
14
14
  return {
15
15
  euiColorPickerSwatch: /*#__PURE__*/css("display:inline-block;", logicalSizeCSS(euiTheme.size.l), " border-radius:", mathWithUnits(euiTheme.border.radius.medium, function (x) {
16
16
  return x / 2;
17
- }), ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFormsColorSwatch, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
17
+ }), ";border:", euiTheme.border.width.thin, " solid ", transparentize(euiTheme.colors.fullShade, 0.1), ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
18
18
  };
19
19
  };
@@ -28,6 +28,12 @@ export function keysOf(obj) {
28
28
  return Object.keys(obj);
29
29
  }
30
30
 
31
+ /**
32
+ * Like `keyof typeof`, but for getting values instead of keys
33
+ * ValueOf<typeof {key1: 'value1', key2: 'value2'}>
34
+ * Results in `'value1' | 'value2'`
35
+ */
36
+
31
37
  // Returns the props of a given HTML element
32
38
 
33
39
  // Utility methods for ApplyClassComponentDefaults
@@ -120,4 +126,26 @@ React.FunctionComponent<ExclusiveUnion<Spanlike, Buttonlike>>
120
126
  * type ButtonLike = PropsForButton<BaseProps>
121
127
  * type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
122
128
  * const Component: FunctionComponent<ComponentProps> ...
129
+ */
130
+
131
+ /**
132
+ * Replaces all properties on any type as optional, includes nested types
133
+ *
134
+ * @example
135
+ * ```ts
136
+ * interface Person {
137
+ * name: string;
138
+ * age?: number;
139
+ * spouse: Person;
140
+ * children: Person[];
141
+ * }
142
+ * type PartialPerson = RecursivePartial<Person>;
143
+ * // results in
144
+ * interface PartialPerson {
145
+ * name?: string;
146
+ * age?: number;
147
+ * spouse?: RecursivePartial<Person>;
148
+ * children?: RecursivePartial<Person>[]
149
+ * }
150
+ * ```
123
151
  */
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { tintOrShade } from '../../services';
10
11
  import { euiFontSize, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../global_styling';
11
12
  export var euiDataGridVariables = function euiDataGridVariables(euiThemeContext) {
12
13
  var euiTheme = euiThemeContext.euiTheme;
@@ -36,13 +37,14 @@ export var euiDataGridVariables = function euiDataGridVariables(euiThemeContext)
36
37
  };
37
38
  };
38
39
  export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
39
- var euiTheme = euiThemeContext.euiTheme;
40
+ var euiTheme = euiThemeContext.euiTheme,
41
+ colorMode = euiThemeContext.colorMode;
40
42
  var _euiDataGridVariables = euiDataGridVariables(euiThemeContext),
41
43
  _cellPadding = _euiDataGridVariables.cellPadding,
42
44
  lineHeight = _euiDataGridVariables.lineHeight,
43
45
  _fontSize = _euiDataGridVariables.fontSize;
44
46
  return {
45
- euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.colors.emptyShade, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowBackgroundStriped, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";};label:euiDataGrid;"),
47
+ euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.colors.emptyShade, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.colors.lightestShade, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.colors.highlight, ";};label:euiDataGrid;"),
46
48
  cellPadding: {
47
49
  cellPadding: function cellPadding(size) {
48
50
  return /*#__PURE__*/css(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}/* Workaround to trim line-clamp and padding - @see https://github.com/elastic/eui/issues/7780 */.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", logicalCSS('padding-bottom', 0), " ", logicalCSS('border-bottom', "".concat(_cellPadding[size], " solid transparent")), ";}.euiDataGridHeaderCell__button{margin-block:-", _cellPadding[size], ";};label:cellPadding;");
@@ -76,7 +78,7 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
76
78
  none: null,
77
79
  horizontal: /*#__PURE__*/css("label:borders;.euiDataGridRowCell:not(.euiDataGridFooterCell),.euiDataGridFooter,&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}.euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";};label:horizontal;"),
78
80
  all: /*#__PURE__*/css("label:borders;.euiDataGridRowCell{&:not(.euiDataGridFooterCell){", logicalCSS('border-bottom', euiTheme.border.thin), " ", logicalCSS('border-right', // Visually lighten vertical borders
79
- "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.dataGridVerticalLineBorderColor)), ";}&--firstColumn{", logicalCSS('border-left', euiTheme.border.thin), ";}&--lastColumn{", logicalCSS('border-right-color', euiTheme.border.color), ";}}.euiDataGridFooterCell,.euiDataGridHeaderCell{", logicalCSS('border-right', euiTheme.border.thin), " &:first-of-type{", logicalCSS('border-left', euiTheme.border.thin), ";}}.euiDataGridFooter{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:is(.euiDataGrid--noControls) .euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";}.euiDataGrid__controls{border:", euiTheme.border.thin, ";background-color:", euiTheme.colors.body, ";};label:all;")
81
+ "".concat(euiTheme.border.width.thin, " solid ").concat(tintOrShade(euiTheme.border.color, 0.3, colorMode))), ";}&--firstColumn{", logicalCSS('border-left', euiTheme.border.thin), ";}&--lastColumn{", logicalCSS('border-right-color', euiTheme.border.color), ";}}.euiDataGridFooterCell,.euiDataGridHeaderCell{", logicalCSS('border-right', euiTheme.border.thin), " &:first-of-type{", logicalCSS('border-left', euiTheme.border.thin), ";}}.euiDataGridFooter{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:is(.euiDataGrid--noControls) .euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";}.euiDataGrid__controls{border:", euiTheme.border.thin, ";background-color:", euiTheme.colors.body, ";};label:all;")
80
82
  },
81
83
  // Sits below the controls above it and pagination below it
82
84
  euiDataGrid__content: /*#__PURE__*/css("z-index:1;position:relative;flex-grow:1;", logicalSizeCSS('100%'), " ", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", euiTheme.colors.body, ";font-feature-settings:'tnum' 1;;label:euiDataGrid__content;"),
@@ -9,8 +9,7 @@
9
9
  // Needs to use vanilla `css` to pass a className directly to react-datepicker
10
10
  import { css } from '@emotion/css';
11
11
  import { euiCanAnimate, euiMaxBreakpoint, euiFontSize, euiYScroll, logicalCSS, mathWithUnits } from '../../global_styling';
12
- import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor } from '../../global_styling/mixins';
13
- import { euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
12
+ import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor, euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
14
13
  import { euiFormControlStyles, euiFormControlText, euiFormControlDefaultShadow } from '../form/form.styles';
15
14
  export var euiDatePickerVariables = function euiDatePickerVariables(_ref) {
16
15
  var euiTheme = _ref.euiTheme;
@@ -85,7 +85,9 @@ export var EuiDatePopoverButton = function EuiDatePopoverButton(props) {
85
85
  anchorPosition: position === 'start' ? 'downLeft' : 'downRight',
86
86
  display: "block",
87
87
  panelPaddingSize: "none"
88
- }, rest), ___EmotionJSX(EuiDatePopoverContent, {
88
+ }, rest, {
89
+ css: value === 'now' && styles.now
90
+ }), ___EmotionJSX(EuiDatePopoverContent, {
89
91
  value: value,
90
92
  roundUp: roundUp,
91
93
  canRoundRelativeUnits: canRoundRelativeUnits,
@@ -1,3 +1,4 @@
1
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
1
2
  /*
2
3
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
4
  * or more contributor license agreements. Licensed under the Elastic License
@@ -8,8 +9,17 @@
8
9
 
9
10
  import { css } from '@emotion/react';
10
11
  import { _buttonStyles } from '../super_date_picker.styles';
12
+ var _ref = process.env.NODE_ENV === "production" ? {
13
+ name: "170kc3d-now",
14
+ styles: "flex-grow:0.5!important;label:now;"
15
+ } : {
16
+ name: "170kc3d-now",
17
+ styles: "flex-grow:0.5!important;label:now;",
18
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
+ };
11
20
  export var euiDatePopoverButtonStyles = function euiDatePopoverButtonStyles(euiThemeContext) {
12
21
  return {
13
- euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;")
22
+ euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;"),
23
+ now: _ref
14
24
  };
15
25
  };
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { makeHighContrastColor } from '../../../services';
11
+ import { tint, shade, makeHighContrastColor } from '../../../services';
12
12
  import { euiFontSize, euiMaxBreakpoint, logicalCSS, mathWithUnits } from '../../../global_styling';
13
13
  import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles } from '../../form/form.styles';
14
14
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -20,7 +20,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
20
20
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
21
  };
22
22
  export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiThemeContext) {
23
- var euiTheme = euiThemeContext.euiTheme;
23
+ var euiTheme = euiThemeContext.euiTheme,
24
+ colorMode = euiThemeContext.colorMode;
24
25
  var forms = euiFormVariables(euiThemeContext);
25
26
  var inputWidth = euiTheme.base * 30;
26
27
  var buttonWidth = euiTheme.base * 7; // @see _button_display.styles.ts
@@ -38,7 +39,7 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
38
39
  });
39
40
 
40
41
  // Needs updating colors
41
- var needsUpdatingBackgroundColor = euiTheme.components.superDatePickerBackgroundSuccees;
42
+ var needsUpdatingBackgroundColor = colorMode === 'DARK' ? shade(euiTheme.colors.success, 0.7) : tint(euiTheme.colors.success, 0.9);
42
43
  var needsUpdatingTextColor = makeHighContrastColor(euiTheme.colors.success)(needsUpdatingBackgroundColor);
43
44
  return {
44
45
  euiSuperDatePicker: /*#__PURE__*/css("display:flex;gap:", gap, ";", logicalCSS('max-width', '100%'), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), ";};label:euiSuperDatePicker;"),
@@ -63,7 +64,7 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
63
64
  // isQuickSelectOnly forces `width` to be `auto`
64
65
  isQuickSelectOnly: /*#__PURE__*/css(logicalCSS('min-width', 0), ".euiFormControlLayout__prepend{", logicalCSS('max-width', 'none'), ";};label:isQuickSelectOnly;"),
65
66
  euiSuperDatePicker__range: _ref,
66
- euiSuperDatePicker__rangeInput: /*#__PURE__*/css("flex-grow:1;", logicalCSS('width', 'auto'), ";;label:euiSuperDatePicker__rangeInput;"),
67
+ euiSuperDatePicker__rangeInput: /*#__PURE__*/css("flex-grow:1;", logicalCSS('width', 'auto'), " overflow:hidden;;label:euiSuperDatePicker__rangeInput;"),
67
68
  euiSuperDatePicker__prettyFormat: /*#__PURE__*/css(_buttonStyles(euiThemeContext), " text-align:start;;label:euiSuperDatePicker__prettyFormat;"),
68
69
  // Form states
69
70
  states: {
@@ -8,6 +8,7 @@ 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';
11
12
  import { euiCanAnimate } from '../../global_styling';
12
13
  var _ref = process.env.NODE_ENV === "production" ? {
13
14
  name: "jkp921-noGrow",
@@ -27,10 +28,11 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
27
28
  };
28
29
  export var euiDroppableStyles = function euiDroppableStyles(euiThemeContext) {
29
30
  var euiTheme = euiThemeContext.euiTheme;
31
+ var droppableColor = euiTheme.colors.success;
30
32
  return {
31
33
  euiDroppable: /*#__PURE__*/css(euiCanAnimate, "{transition:background-color ", euiTheme.animation.slow, " ease;};label:euiDroppable;"),
32
- isDragging: /*#__PURE__*/css("background-color:", euiTheme.components.dragDropDraggingBackground, ";;label:isDragging;"),
33
- isDraggingOver: /*#__PURE__*/css("background-color:", euiTheme.components.dragDropDraggingOverBackground, ";;label:isDraggingOver;"),
34
+ isDragging: /*#__PURE__*/css("background-color:", transparentize(droppableColor, 0.1), ";;label:isDragging;"),
35
+ isDraggingOver: /*#__PURE__*/css("background-color:", transparentize(droppableColor, 0.25), ";;label:isDraggingOver;"),
34
36
  grow: _ref2,
35
37
  noGrow: _ref,
36
38
  spacing: sharedSpacingPadding(euiThemeContext)