@elastic/eui 98.2.1-borealis.0 → 98.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. package/dist/{eui_theme_amsterdam_dark.json.d.ts → eui_theme_dark.json.d.ts} +1 -1
  2. package/dist/{eui_theme_amsterdam_light.json.d.ts → eui_theme_light.json.d.ts} +1 -1
  3. package/es/components/avatar/avatar.js +4 -10
  4. package/es/components/badge/badge.styles.js +2 -1
  5. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  6. package/es/components/badge/color_utils.js +8 -9
  7. package/es/components/beacon/beacon.styles.js +2 -2
  8. package/es/components/bottom_bar/bottom_bar.styles.js +2 -1
  9. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  10. package/es/components/button/button.js +1 -1
  11. package/es/components/button/button_display/_button_display.styles.js +1 -1
  12. package/es/components/button/button_empty/button_empty.js +1 -1
  13. package/es/components/button/button_group/button_group_button.js +1 -1
  14. package/es/components/button/button_group/button_group_button.styles.js +6 -6
  15. package/es/components/button/button_icon/button_icon.js +1 -1
  16. package/es/components/card/card.js +1 -1
  17. package/es/components/card/card.styles.js +3 -6
  18. package/es/components/code/code_block_annotations.js +1 -1
  19. package/es/components/code/code_block_line.styles.js +2 -1
  20. package/es/components/code/code_syntax.styles.js +27 -23
  21. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  22. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  23. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  24. package/es/components/color_picker/color_picker.js +3 -9
  25. package/es/components/color_picker/color_picker.styles.js +2 -1
  26. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  27. package/es/components/comment_list/comment.js +1 -1
  28. package/es/components/comment_list/comment_event.js +4 -5
  29. package/es/components/comment_list/comment_list.js +1 -1
  30. package/es/components/common.js +28 -0
  31. package/es/components/datagrid/data_grid.styles.js +7 -6
  32. package/es/components/date_picker/react_date_picker.styles.js +1 -2
  33. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  34. package/es/components/drag_and_drop/droppable.styles.js +4 -2
  35. package/es/components/empty_prompt/empty_prompt.js +1 -1
  36. package/es/components/empty_prompt/empty_prompt.styles.js +2 -6
  37. package/es/components/filter_group/filter_select_item.styles.js +2 -1
  38. package/es/components/flyout/_flyout_close_button.styles.js +2 -1
  39. package/es/components/flyout/flyout.js +1 -1
  40. package/es/components/flyout/flyout.styles.js +2 -7
  41. package/es/components/flyout/flyout_footer.styles.js +1 -1
  42. package/es/components/form/form.styles.js +32 -28
  43. package/es/components/form/range/range_tooltip.styles.js +13 -11
  44. package/es/components/form/switch/switch.js +7 -3
  45. package/es/components/form/switch/switch.styles.js +19 -16
  46. package/es/components/header/header.styles.js +7 -6
  47. package/es/components/icon/icon.styles.js +8 -9
  48. package/es/components/icon/named_colors.js +1 -1
  49. package/es/components/inline_edit/inline_edit_form.styles.js +2 -1
  50. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  51. package/es/components/list_group/list_group_item.styles.js +11 -9
  52. package/es/components/loading/loading_chart.styles.js +5 -18
  53. package/es/components/mark/mark.styles.js +9 -2
  54. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  55. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  56. package/es/components/modal/modal.styles.js +1 -1
  57. package/es/components/overlay_mask/overlay_mask.styles.js +2 -1
  58. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  59. package/es/components/panel/panel.js +1 -1
  60. package/es/components/panel/panel.styles.js +1 -1
  61. package/es/components/panel/split_panel/split_panel.js +1 -1
  62. package/es/components/popover/popover.js +1 -1
  63. package/es/components/popover/popover_arrow/_popover_arrow.js +3 -8
  64. package/es/components/popover/popover_arrow/_popover_arrow.styles.js +13 -18
  65. package/es/components/popover/popover_footer.styles.js +1 -1
  66. package/es/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  67. package/es/components/progress/progress.js +1 -1
  68. package/es/components/progress/progress.styles.js +28 -30
  69. package/es/components/resizable_container/resizable_panel.js +1 -1
  70. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  71. package/es/components/side_nav/side_nav_item.styles.js +2 -1
  72. package/es/components/skeleton/utils.js +7 -5
  73. package/es/components/steps/step_number.styles.js +1 -1
  74. package/es/components/table/table_cells_shared.styles.js +7 -2
  75. package/es/components/table/table_row.styles.js +10 -8
  76. package/es/components/text/text.styles.js +2 -2
  77. package/es/components/text/text_color.js +1 -1
  78. package/es/components/text/text_color.styles.js +5 -6
  79. package/es/components/toast/toast.styles.js +1 -1
  80. package/es/components/token/token.js +4 -10
  81. package/es/components/token/token.styles.js +3 -12
  82. package/es/components/token/token_map.js +1 -243
  83. package/es/components/tool_tip/tool_tip.styles.js +24 -12
  84. package/es/components/tour/_tour_footer.styles.js +4 -2
  85. package/es/components/tour/tour.styles.js +12 -8
  86. package/es/components/tree_view/tree_view_item.styles.js +2 -1
  87. package/es/global_styling/functions/math.js +49 -1
  88. package/es/global_styling/functions/size.js +17 -1
  89. package/es/global_styling/mixins/_color.js +31 -39
  90. package/es/global_styling/mixins/index.js +1 -2
  91. package/es/global_styling/reset/global_styles.js +2 -2
  92. package/es/global_styling/variables/_colors_vis.js +53 -1
  93. package/es/global_styling/variables/animations.js +22 -1
  94. package/es/global_styling/variables/breakpoint.js +7 -1
  95. package/es/global_styling/variables/levels.js +17 -1
  96. package/es/global_styling/variables/shadow.js +11 -1
  97. package/es/global_styling/variables/size.js +1 -1
  98. package/es/global_styling/variables/typography.js +32 -1
  99. package/es/services/color/eui_palettes.js +47 -116
  100. package/es/services/color/index.js +0 -1
  101. package/es/services/index.js +1 -1
  102. package/es/services/popover/index.js +1 -4
  103. package/es/services/popover/popover_positioning.js +17 -6
  104. package/es/services/theme/provider.js +2 -26
  105. package/es/services/theme/types.js +6 -1
  106. package/es/services/theme/utils.js +303 -1
  107. package/es/themes/amsterdam/global_styling/mixins/button.js +203 -1
  108. package/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  109. package/es/themes/amsterdam/global_styling/variables/_colors.js +19 -612
  110. package/es/themes/amsterdam/theme.js +1 -7
  111. package/es/themes/index.js +1 -1
  112. package/es/themes/themes.js +6 -9
  113. package/eui.d.ts +2831 -2383
  114. package/lib/components/avatar/avatar.js +2 -8
  115. package/lib/components/badge/badge.styles.js +2 -1
  116. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  117. package/lib/components/badge/color_utils.js +13 -14
  118. package/lib/components/beacon/beacon.styles.js +2 -2
  119. package/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
  120. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  121. package/lib/components/button/button.js +1 -1
  122. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  123. package/lib/components/button/button_empty/button_empty.js +1 -1
  124. package/lib/components/button/button_group/button_group_button.js +1 -1
  125. package/lib/components/button/button_group/button_group_button.styles.js +5 -5
  126. package/lib/components/button/button_icon/button_icon.js +1 -1
  127. package/lib/components/card/card.js +1 -1
  128. package/lib/components/card/card.styles.js +2 -5
  129. package/lib/components/code/code_block_annotations.js +1 -1
  130. package/lib/components/code/code_block_line.styles.js +2 -1
  131. package/lib/components/code/code_syntax.styles.js +27 -23
  132. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  133. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  134. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  135. package/lib/components/color_picker/color_picker.js +2 -8
  136. package/lib/components/color_picker/color_picker.styles.js +2 -1
  137. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  138. package/lib/components/comment_list/comment.js +1 -1
  139. package/lib/components/comment_list/comment_event.js +4 -5
  140. package/lib/components/comment_list/comment_list.js +1 -1
  141. package/lib/components/common.js +28 -0
  142. package/lib/components/datagrid/data_grid.styles.js +7 -6
  143. package/lib/components/date_picker/react_date_picker.styles.js +2 -3
  144. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
  145. package/lib/components/drag_and_drop/droppable.styles.js +4 -2
  146. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  147. package/lib/components/empty_prompt/empty_prompt.styles.js +1 -5
  148. package/lib/components/filter_group/filter_select_item.styles.js +2 -1
  149. package/lib/components/flyout/_flyout_close_button.styles.js +2 -1
  150. package/lib/components/flyout/flyout.js +1 -1
  151. package/lib/components/flyout/flyout.styles.js +2 -7
  152. package/lib/components/flyout/flyout_footer.styles.js +1 -1
  153. package/lib/components/form/form.styles.js +31 -27
  154. package/lib/components/form/range/range_tooltip.styles.js +13 -11
  155. package/lib/components/form/switch/switch.js +7 -3
  156. package/lib/components/form/switch/switch.styles.js +19 -16
  157. package/lib/components/header/header.styles.js +6 -5
  158. package/lib/components/icon/icon.styles.js +8 -9
  159. package/lib/components/icon/named_colors.js +1 -1
  160. package/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
  161. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  162. package/lib/components/list_group/list_group_item.styles.js +10 -8
  163. package/lib/components/loading/loading_chart.styles.js +5 -18
  164. package/lib/components/mark/mark.styles.js +9 -2
  165. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  166. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  167. package/lib/components/modal/modal.styles.js +1 -1
  168. package/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
  169. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  170. package/lib/components/panel/panel.js +1 -1
  171. package/lib/components/panel/panel.styles.js +1 -1
  172. package/lib/components/panel/split_panel/split_panel.js +1 -1
  173. package/lib/components/popover/popover.js +1 -1
  174. package/lib/components/popover/popover_arrow/_popover_arrow.js +3 -8
  175. package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +15 -18
  176. package/lib/components/popover/popover_footer.styles.js +1 -1
  177. package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  178. package/lib/components/progress/progress.js +1 -1
  179. package/lib/components/progress/progress.styles.js +27 -29
  180. package/lib/components/resizable_container/resizable_panel.js +1 -1
  181. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  182. package/lib/components/side_nav/side_nav_item.styles.js +2 -1
  183. package/lib/components/skeleton/utils.js +6 -4
  184. package/lib/components/steps/step_number.styles.js +1 -1
  185. package/lib/components/table/table_cells_shared.styles.js +7 -2
  186. package/lib/components/table/table_row.styles.js +9 -7
  187. package/lib/components/text/text.styles.js +1 -1
  188. package/lib/components/text/text_color.js +1 -1
  189. package/lib/components/text/text_color.styles.js +5 -6
  190. package/lib/components/toast/toast.styles.js +1 -1
  191. package/lib/components/token/token.js +4 -12
  192. package/lib/components/token/token.styles.js +3 -12
  193. package/lib/components/token/token_map.js +2 -244
  194. package/lib/components/tool_tip/tool_tip.styles.js +23 -11
  195. package/lib/components/tour/_tour_footer.styles.js +4 -2
  196. package/lib/components/tour/tour.styles.js +12 -8
  197. package/lib/components/tree_view/tree_view_item.styles.js +2 -1
  198. package/lib/global_styling/functions/math.js +58 -7
  199. package/lib/global_styling/functions/size.js +26 -7
  200. package/lib/global_styling/mixins/_color.js +30 -38
  201. package/lib/global_styling/mixins/index.js +0 -11
  202. package/lib/global_styling/reset/global_styles.js +1 -1
  203. package/lib/global_styling/variables/_colors_vis.js +61 -6
  204. package/lib/global_styling/variables/animations.js +31 -25
  205. package/lib/global_styling/variables/breakpoint.js +16 -7
  206. package/lib/global_styling/variables/levels.js +26 -7
  207. package/lib/global_styling/variables/shadow.js +20 -13
  208. package/lib/global_styling/variables/size.js +10 -7
  209. package/lib/global_styling/variables/typography.js +41 -19
  210. package/lib/services/color/eui_palettes.js +47 -116
  211. package/lib/services/color/index.js +0 -8
  212. package/lib/services/index.js +0 -7
  213. package/lib/services/popover/index.js +1 -8
  214. package/lib/services/popover/popover_positioning.js +17 -6
  215. package/lib/services/theme/provider.js +2 -26
  216. package/lib/services/theme/types.js +14 -13
  217. package/lib/services/theme/utils.js +303 -54
  218. package/lib/themes/amsterdam/global_styling/mixins/button.js +206 -45
  219. package/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  220. package/lib/themes/amsterdam/global_styling/variables/_colors.js +19 -611
  221. package/lib/themes/amsterdam/theme.js +1 -7
  222. package/lib/themes/index.js +0 -7
  223. package/lib/themes/themes.js +7 -10
  224. package/optimize/es/components/avatar/avatar.js +4 -10
  225. package/optimize/es/components/badge/badge.styles.js +2 -1
  226. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  227. package/optimize/es/components/badge/color_utils.js +8 -9
  228. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  229. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -1
  230. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  231. package/optimize/es/components/button/button.js +1 -1
  232. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  233. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  234. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  235. package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
  236. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  237. package/optimize/es/components/card/card.styles.js +3 -6
  238. package/optimize/es/components/code/code_block_annotations.js +1 -1
  239. package/optimize/es/components/code/code_block_line.styles.js +2 -1
  240. package/optimize/es/components/code/code_syntax.styles.js +27 -23
  241. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  242. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  243. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  244. package/optimize/es/components/color_picker/color_picker.js +3 -9
  245. package/optimize/es/components/color_picker/color_picker.styles.js +2 -1
  246. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  247. package/optimize/es/components/comment_list/comment_event.js +3 -4
  248. package/optimize/es/components/common.js +28 -0
  249. package/optimize/es/components/datagrid/data_grid.styles.js +7 -6
  250. package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -2
  251. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
  252. package/optimize/es/components/drag_and_drop/droppable.styles.js +4 -2
  253. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +2 -6
  254. package/optimize/es/components/filter_group/filter_select_item.styles.js +2 -1
  255. package/optimize/es/components/flyout/_flyout_close_button.styles.js +2 -1
  256. package/optimize/es/components/flyout/flyout.js +1 -1
  257. package/optimize/es/components/flyout/flyout.styles.js +2 -7
  258. package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
  259. package/optimize/es/components/form/form.styles.js +32 -28
  260. package/optimize/es/components/form/range/range_tooltip.styles.js +13 -11
  261. package/optimize/es/components/form/switch/switch.js +2 -3
  262. package/optimize/es/components/form/switch/switch.styles.js +19 -16
  263. package/optimize/es/components/header/header.styles.js +7 -6
  264. package/optimize/es/components/icon/icon.styles.js +8 -9
  265. package/optimize/es/components/icon/named_colors.js +1 -1
  266. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +2 -1
  267. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  268. package/optimize/es/components/list_group/list_group_item.styles.js +11 -9
  269. package/optimize/es/components/loading/loading_chart.styles.js +5 -13
  270. package/optimize/es/components/mark/mark.styles.js +9 -2
  271. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  272. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  273. package/optimize/es/components/modal/modal.styles.js +1 -1
  274. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +2 -1
  275. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  276. package/optimize/es/components/panel/panel.styles.js +1 -1
  277. package/optimize/es/components/popover/popover.js +1 -1
  278. package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +3 -8
  279. package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +13 -15
  280. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  281. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  282. package/optimize/es/components/progress/progress.js +1 -1
  283. package/optimize/es/components/progress/progress.styles.js +28 -30
  284. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  285. package/optimize/es/components/side_nav/side_nav_item.styles.js +2 -1
  286. package/optimize/es/components/skeleton/utils.js +7 -5
  287. package/optimize/es/components/steps/step_number.styles.js +1 -1
  288. package/optimize/es/components/table/table_cells_shared.styles.js +7 -2
  289. package/optimize/es/components/table/table_row.styles.js +10 -8
  290. package/optimize/es/components/text/text.styles.js +2 -2
  291. package/optimize/es/components/text/text_color.js +1 -1
  292. package/optimize/es/components/text/text_color.styles.js +5 -6
  293. package/optimize/es/components/toast/toast.styles.js +1 -1
  294. package/optimize/es/components/token/token.js +4 -10
  295. package/optimize/es/components/token/token.styles.js +3 -12
  296. package/optimize/es/components/token/token_map.js +1 -243
  297. package/optimize/es/components/tool_tip/tool_tip.styles.js +24 -12
  298. package/optimize/es/components/tour/_tour_footer.styles.js +4 -2
  299. package/optimize/es/components/tour/tour.styles.js +12 -8
  300. package/optimize/es/components/tree_view/tree_view_item.styles.js +2 -1
  301. package/optimize/es/global_styling/functions/math.js +49 -1
  302. package/optimize/es/global_styling/functions/size.js +17 -1
  303. package/optimize/es/global_styling/mixins/_color.js +31 -39
  304. package/optimize/es/global_styling/mixins/index.js +1 -2
  305. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  306. package/optimize/es/global_styling/variables/_colors_vis.js +53 -1
  307. package/optimize/es/global_styling/variables/animations.js +22 -1
  308. package/optimize/es/global_styling/variables/breakpoint.js +7 -1
  309. package/optimize/es/global_styling/variables/levels.js +17 -1
  310. package/optimize/es/global_styling/variables/shadow.js +11 -1
  311. package/optimize/es/global_styling/variables/size.js +1 -1
  312. package/optimize/es/global_styling/variables/typography.js +32 -1
  313. package/optimize/es/services/color/eui_palettes.js +47 -116
  314. package/optimize/es/services/color/index.js +0 -1
  315. package/optimize/es/services/index.js +1 -1
  316. package/optimize/es/services/popover/index.js +1 -4
  317. package/optimize/es/services/popover/popover_positioning.js +17 -6
  318. package/optimize/es/services/theme/provider.js +2 -26
  319. package/optimize/es/services/theme/types.js +6 -1
  320. package/optimize/es/services/theme/utils.js +295 -1
  321. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +198 -1
  322. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  323. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +19 -612
  324. package/optimize/es/themes/amsterdam/theme.js +1 -7
  325. package/optimize/es/themes/index.js +1 -1
  326. package/optimize/es/themes/themes.js +6 -9
  327. package/optimize/lib/components/avatar/avatar.js +2 -8
  328. package/optimize/lib/components/badge/badge.styles.js +2 -1
  329. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  330. package/optimize/lib/components/badge/color_utils.js +13 -14
  331. package/optimize/lib/components/beacon/beacon.styles.js +2 -2
  332. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
  333. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  334. package/optimize/lib/components/button/button.js +1 -1
  335. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  336. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  337. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  338. package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
  339. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  340. package/optimize/lib/components/card/card.styles.js +2 -5
  341. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  342. package/optimize/lib/components/code/code_block_line.styles.js +2 -1
  343. package/optimize/lib/components/code/code_syntax.styles.js +27 -23
  344. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  345. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  346. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  347. package/optimize/lib/components/color_picker/color_picker.js +2 -8
  348. package/optimize/lib/components/color_picker/color_picker.styles.js +2 -1
  349. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  350. package/optimize/lib/components/comment_list/comment_event.js +3 -4
  351. package/optimize/lib/components/common.js +28 -0
  352. package/optimize/lib/components/datagrid/data_grid.styles.js +7 -6
  353. package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -3
  354. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
  355. package/optimize/lib/components/drag_and_drop/droppable.styles.js +4 -2
  356. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +1 -5
  357. package/optimize/lib/components/filter_group/filter_select_item.styles.js +2 -1
  358. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +2 -1
  359. package/optimize/lib/components/flyout/flyout.js +1 -1
  360. package/optimize/lib/components/flyout/flyout.styles.js +2 -7
  361. package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
  362. package/optimize/lib/components/form/form.styles.js +31 -27
  363. package/optimize/lib/components/form/range/range_tooltip.styles.js +13 -11
  364. package/optimize/lib/components/form/switch/switch.js +2 -3
  365. package/optimize/lib/components/form/switch/switch.styles.js +19 -16
  366. package/optimize/lib/components/header/header.styles.js +6 -5
  367. package/optimize/lib/components/icon/icon.styles.js +8 -9
  368. package/optimize/lib/components/icon/named_colors.js +1 -1
  369. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
  370. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  371. package/optimize/lib/components/list_group/list_group_item.styles.js +10 -8
  372. package/optimize/lib/components/loading/loading_chart.styles.js +5 -13
  373. package/optimize/lib/components/mark/mark.styles.js +9 -2
  374. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  375. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  376. package/optimize/lib/components/modal/modal.styles.js +1 -1
  377. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
  378. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  379. package/optimize/lib/components/panel/panel.styles.js +1 -1
  380. package/optimize/lib/components/popover/popover.js +1 -1
  381. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +3 -8
  382. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +15 -16
  383. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  384. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  385. package/optimize/lib/components/progress/progress.js +1 -1
  386. package/optimize/lib/components/progress/progress.styles.js +27 -29
  387. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  388. package/optimize/lib/components/side_nav/side_nav_item.styles.js +2 -1
  389. package/optimize/lib/components/skeleton/utils.js +6 -4
  390. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  391. package/optimize/lib/components/table/table_cells_shared.styles.js +7 -2
  392. package/optimize/lib/components/table/table_row.styles.js +9 -7
  393. package/optimize/lib/components/text/text.styles.js +1 -1
  394. package/optimize/lib/components/text/text_color.js +1 -1
  395. package/optimize/lib/components/text/text_color.styles.js +5 -6
  396. package/optimize/lib/components/toast/toast.styles.js +1 -1
  397. package/optimize/lib/components/token/token.js +4 -13
  398. package/optimize/lib/components/token/token.styles.js +3 -12
  399. package/optimize/lib/components/token/token_map.js +2 -244
  400. package/optimize/lib/components/tool_tip/tool_tip.styles.js +23 -11
  401. package/optimize/lib/components/tour/_tour_footer.styles.js +4 -2
  402. package/optimize/lib/components/tour/tour.styles.js +12 -8
  403. package/optimize/lib/components/tree_view/tree_view_item.styles.js +2 -1
  404. package/optimize/lib/global_styling/functions/math.js +59 -7
  405. package/optimize/lib/global_styling/functions/size.js +27 -7
  406. package/optimize/lib/global_styling/mixins/_color.js +30 -38
  407. package/optimize/lib/global_styling/mixins/index.js +0 -11
  408. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  409. package/optimize/lib/global_styling/variables/_colors_vis.js +61 -6
  410. package/optimize/lib/global_styling/variables/animations.js +31 -25
  411. package/optimize/lib/global_styling/variables/breakpoint.js +16 -7
  412. package/optimize/lib/global_styling/variables/levels.js +26 -7
  413. package/optimize/lib/global_styling/variables/shadow.js +20 -13
  414. package/optimize/lib/global_styling/variables/size.js +10 -7
  415. package/optimize/lib/global_styling/variables/typography.js +41 -19
  416. package/optimize/lib/services/color/eui_palettes.js +47 -116
  417. package/optimize/lib/services/color/index.js +0 -8
  418. package/optimize/lib/services/index.js +0 -7
  419. package/optimize/lib/services/popover/index.js +1 -8
  420. package/optimize/lib/services/popover/popover_positioning.js +17 -6
  421. package/optimize/lib/services/theme/provider.js +2 -26
  422. package/optimize/lib/services/theme/types.js +14 -13
  423. package/optimize/lib/services/theme/utils.js +296 -54
  424. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +203 -45
  425. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  426. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +19 -611
  427. package/optimize/lib/themes/amsterdam/theme.js +1 -7
  428. package/optimize/lib/themes/index.js +0 -7
  429. package/optimize/lib/themes/themes.js +7 -10
  430. package/package.json +3 -7
  431. package/src/global_styling/functions/_index.scss +5 -1
  432. package/src/global_styling/index.scss +10 -1
  433. package/src/global_styling/variables/_animations.scss +8 -1
  434. package/src/global_styling/variables/_borders.scss +9 -1
  435. package/src/global_styling/variables/_buttons.scss +18 -1
  436. package/src/global_styling/variables/_colors_vis.scss +70 -1
  437. package/src/global_styling/variables/_font_weight.scss +7 -1
  438. package/src/global_styling/variables/_form.scss +21 -2
  439. package/src/global_styling/variables/_responsive.scss +9 -1
  440. package/src/global_styling/variables/_shadows.scss +1 -1
  441. package/src/global_styling/variables/_size.scss +13 -1
  442. package/src/global_styling/variables/_states.scss +14 -1
  443. package/src/global_styling/variables/_typography.scss +75 -1
  444. package/src/global_styling/variables/_z_index.scss +33 -1
  445. package/src/themes/amsterdam/_colors_dark.scss +8 -80
  446. package/src/themes/amsterdam/_colors_light.scss +8 -80
  447. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -2
  448. package/test-env/components/avatar/avatar.js +2 -8
  449. package/test-env/components/badge/badge.styles.js +2 -1
  450. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  451. package/test-env/components/badge/color_utils.js +13 -14
  452. package/test-env/components/beacon/beacon.styles.js +2 -2
  453. package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -1
  454. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
  455. package/test-env/components/button/button.js +1 -1
  456. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  457. package/test-env/components/button/button_empty/button_empty.js +1 -1
  458. package/test-env/components/button/button_group/button_group_button.js +1 -1
  459. package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
  460. package/test-env/components/button/button_icon/button_icon.js +1 -1
  461. package/test-env/components/card/card.js +1 -1
  462. package/test-env/components/card/card.styles.js +2 -5
  463. package/test-env/components/code/code_block_annotations.js +1 -1
  464. package/test-env/components/code/code_block_line.styles.js +2 -1
  465. package/test-env/components/code/code_syntax.styles.js +27 -23
  466. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
  467. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  468. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
  469. package/test-env/components/color_picker/color_picker.js +2 -8
  470. package/test-env/components/color_picker/color_picker.styles.js +2 -1
  471. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  472. package/test-env/components/comment_list/comment.js +1 -1
  473. package/test-env/components/comment_list/comment_event.js +4 -5
  474. package/test-env/components/comment_list/comment_list.js +1 -1
  475. package/test-env/components/common.js +28 -0
  476. package/test-env/components/datagrid/data_grid.styles.js +7 -6
  477. package/test-env/components/date_picker/react_date_picker.styles.js +2 -3
  478. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
  479. package/test-env/components/drag_and_drop/droppable.styles.js +4 -2
  480. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  481. package/test-env/components/empty_prompt/empty_prompt.styles.js +1 -5
  482. package/test-env/components/filter_group/filter_select_item.styles.js +2 -1
  483. package/test-env/components/flyout/_flyout_close_button.styles.js +2 -1
  484. package/test-env/components/flyout/flyout.styles.js +2 -7
  485. package/test-env/components/flyout/flyout_footer.styles.js +1 -1
  486. package/test-env/components/form/form.styles.js +31 -27
  487. package/test-env/components/form/range/range_tooltip.styles.js +13 -11
  488. package/test-env/components/form/switch/switch.js +2 -3
  489. package/test-env/components/form/switch/switch.styles.js +19 -16
  490. package/test-env/components/header/header.styles.js +6 -5
  491. package/test-env/components/icon/icon.styles.js +8 -9
  492. package/test-env/components/icon/named_colors.js +1 -1
  493. package/test-env/components/inline_edit/inline_edit_form.styles.js +2 -1
  494. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
  495. package/test-env/components/list_group/list_group_item.styles.js +10 -8
  496. package/test-env/components/loading/loading_chart.styles.js +5 -13
  497. package/test-env/components/mark/mark.styles.js +9 -2
  498. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
  499. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  500. package/test-env/components/modal/modal.styles.js +1 -1
  501. package/test-env/components/overlay_mask/overlay_mask.styles.js +2 -1
  502. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  503. package/test-env/components/panel/panel.js +1 -1
  504. package/test-env/components/panel/panel.styles.js +1 -1
  505. package/test-env/components/panel/split_panel/split_panel.js +1 -1
  506. package/test-env/components/popover/popover.js +1 -1
  507. package/test-env/components/popover/popover_arrow/_popover_arrow.js +3 -8
  508. package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +15 -16
  509. package/test-env/components/popover/popover_footer.styles.js +1 -1
  510. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -4
  511. package/test-env/components/progress/progress.js +1 -1
  512. package/test-env/components/progress/progress.styles.js +27 -29
  513. package/test-env/components/resizable_container/resizable_panel.js +1 -1
  514. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
  515. package/test-env/components/side_nav/side_nav_item.styles.js +2 -1
  516. package/test-env/components/skeleton/utils.js +6 -4
  517. package/test-env/components/steps/step_number.styles.js +1 -1
  518. package/test-env/components/table/table_cells_shared.styles.js +7 -2
  519. package/test-env/components/table/table_row.styles.js +9 -7
  520. package/test-env/components/text/text.styles.js +1 -1
  521. package/test-env/components/text/text_color.js +1 -1
  522. package/test-env/components/text/text_color.styles.js +5 -6
  523. package/test-env/components/toast/toast.styles.js +1 -1
  524. package/test-env/components/token/token.js +4 -13
  525. package/test-env/components/token/token.styles.js +3 -12
  526. package/test-env/components/token/token_map.js +2 -244
  527. package/test-env/components/tool_tip/tool_tip.styles.js +23 -11
  528. package/test-env/components/tour/_tour_footer.styles.js +4 -2
  529. package/test-env/components/tour/tour.styles.js +12 -8
  530. package/test-env/components/tree_view/tree_view_item.styles.js +2 -1
  531. package/test-env/global_styling/functions/math.js +59 -7
  532. package/test-env/global_styling/functions/size.js +27 -7
  533. package/test-env/global_styling/mixins/_color.js +30 -38
  534. package/test-env/global_styling/mixins/index.js +0 -11
  535. package/test-env/global_styling/reset/global_styles.js +1 -1
  536. package/test-env/global_styling/variables/_colors_vis.js +61 -6
  537. package/test-env/global_styling/variables/animations.js +31 -25
  538. package/test-env/global_styling/variables/breakpoint.js +16 -7
  539. package/test-env/global_styling/variables/levels.js +26 -7
  540. package/test-env/global_styling/variables/shadow.js +20 -13
  541. package/test-env/global_styling/variables/size.js +10 -7
  542. package/test-env/global_styling/variables/typography.js +41 -19
  543. package/test-env/services/color/eui_palettes.js +47 -116
  544. package/test-env/services/color/index.js +0 -8
  545. package/test-env/services/index.js +0 -7
  546. package/test-env/services/popover/index.js +1 -8
  547. package/test-env/services/popover/popover_positioning.js +17 -6
  548. package/test-env/services/theme/provider.js +2 -26
  549. package/test-env/services/theme/types.js +14 -13
  550. package/test-env/services/theme/utils.js +296 -54
  551. package/test-env/themes/amsterdam/global_styling/mixins/button.js +203 -45
  552. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  553. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +19 -611
  554. package/test-env/themes/amsterdam/theme.js +1 -7
  555. package/test-env/themes/index.js +0 -7
  556. package/test-env/themes/themes.js +7 -10
  557. package/dist/eui_theme_borealis_dark.json +0 -314
  558. package/dist/eui_theme_borealis_dark.json.d.ts +0 -317
  559. package/dist/eui_theme_borealis_light.json +0 -314
  560. package/dist/eui_theme_borealis_light.json.d.ts +0 -317
  561. package/es/global_styling/mixins/_button.js +0 -159
  562. package/es/services/color/vis_color_store.js +0 -13
  563. package/es/services/popover/popover_arrow.styles.js +0 -31
  564. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -281
  565. package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -94
  566. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -604
  567. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -161
  568. package/lib/global_styling/mixins/_button.js +0 -164
  569. package/lib/services/color/vis_color_store.js +0 -18
  570. package/lib/services/popover/popover_arrow.styles.js +0 -37
  571. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -285
  572. package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
  573. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -608
  574. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -165
  575. package/optimize/es/global_styling/mixins/_button.js +0 -159
  576. package/optimize/es/services/color/vis_color_store.js +0 -13
  577. package/optimize/es/services/popover/popover_arrow.styles.js +0 -31
  578. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -270
  579. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -94
  580. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -596
  581. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -153
  582. package/optimize/lib/global_styling/mixins/_button.js +0 -165
  583. package/optimize/lib/services/color/vis_color_store.js +0 -18
  584. package/optimize/lib/services/popover/popover_arrow.styles.js +0 -37
  585. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
  586. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
  587. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -601
  588. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -158
  589. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  590. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  591. package/test-env/global_styling/mixins/_button.js +0 -165
  592. package/test-env/services/color/vis_color_store.js +0 -18
  593. package/test-env/services/popover/popover_arrow.styles.js +0 -37
  594. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
  595. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
  596. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -601
  597. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -158
  598. /package/dist/{eui_theme_amsterdam_dark.json → eui_theme_dark.json} +0 -0
  599. /package/dist/{eui_theme_amsterdam_light.json → eui_theme_light.json} +0 -0
@@ -3,22 +3,44 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
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");
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
+ */
@@ -8,7 +8,6 @@ exports.euiPaletteWarm = exports.euiPaletteRed = exports.euiPaletteGreen = expor
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _chromaJs = _interopRequireDefault(require("chroma-js"));
10
10
  var _color_palette = require("./color_palette");
11
- var _vis_color_store = require("./vis_color_store");
12
11
  /*
13
12
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
13
  * or more contributor license agreements. Licensed under the Elastic License
@@ -32,14 +31,6 @@ var euiPalette = function euiPalette(colors, steps) {
32
31
  }
33
32
  return (0, _color_palette.colorPalette)(colors, steps, diverge, categorical);
34
33
  };
35
- /**
36
- * NOTE: These functions rely on base vis colors of the theme which are provided via a global
37
- * singleton instance `EUI_VIS_COLOR_STORE` that's updated by the EuiProvider on theme change.
38
- * Make sure the function is recalled on theme change to retrieve theme-related colors.
39
- *
40
- * Outside of a react component you can use the `subscibe()` method on the `EUI_VIS_COLOR_STORE`
41
- * to subscribe to updates and update your usages to ensure latest colors are loaded.
42
- */
43
34
  var euiPaletteColorBlind = exports.euiPaletteColorBlind = function euiPaletteColorBlind() {
44
35
  var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
45
36
  _ref2$rotations = _ref2.rotations,
@@ -53,8 +44,26 @@ var euiPaletteColorBlind = exports.euiPaletteColorBlind = function euiPaletteCol
53
44
  _ref2$sortShift = _ref2.sortShift,
54
45
  sortShift = _ref2$sortShift === void 0 ? '-100' : _ref2$sortShift;
55
46
  var colors = [];
56
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
57
- var base = [visColors.euiColorVis0, visColors.euiColorVis1, visColors.euiColorVis2, visColors.euiColorVis3, visColors.euiColorVis4, visColors.euiColorVis5, visColors.euiColorVis6, visColors.euiColorVis7, visColors.euiColorVis8, visColors.euiColorVis9];
47
+ var base = ['#54B399',
48
+ // 0 green
49
+ '#6092C0',
50
+ // 1 blue
51
+ '#D36086',
52
+ // 2 dark pink
53
+ '#9170B8',
54
+ // 3 purple
55
+ '#CA8EAE',
56
+ // 4 light pink
57
+ '#D6BF57',
58
+ // 5 yellow
59
+ '#B9A888',
60
+ // 6 tan
61
+ '#DA8B45',
62
+ // 7 orange
63
+ '#AA6556',
64
+ // 8 brown
65
+ '#E7664C' // 9 red
66
+ ];
58
67
  if (sortBy === 'natural') {
59
68
  // Sort the colors based on the color wheel, but shifting the values based on sortShift
60
69
  base = (0, _toConsumableArray2.default)(base).sort(function (a, b) {
@@ -100,156 +109,78 @@ var euiPaletteColorBlind = exports.euiPaletteColorBlind = function euiPaletteCol
100
109
  /**
101
110
  * Color blind palette with text is meant for use when text is applied on top of the color.
102
111
  * It increases the brightness of the color to give the text more contrast.
103
- *
104
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
105
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
106
112
  */
107
113
  var euiPaletteColorBlindBehindText = exports.euiPaletteColorBlindBehindText = function euiPaletteColorBlindBehindText() {
108
114
  var paletteProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
109
- var hasVisColorAdjustment = _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
110
115
  var originalPalette = euiPaletteColorBlind(paletteProps);
111
-
112
- // new theme palette has required contrast, we don't need to adjust them
113
- if (!hasVisColorAdjustment) return originalPalette;
114
116
  var newPalette = originalPalette.map(function (color) {
115
117
  return (0, _chromaJs.default)(color).brighten(0.5).hex();
116
118
  });
117
119
  return newPalette;
118
120
  };
119
- var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
120
- return keys.reduce(function (colors, curr) {
121
- return [].concat((0, _toConsumableArray2.default)(colors), [visColors[curr]]);
122
- }, []);
123
- };
124
-
125
- /**
126
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
127
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
128
- */
129
121
  var euiPaletteForLightBackground = exports.euiPaletteForLightBackground = function euiPaletteForLightBackground() {
130
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
131
- var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
132
- return color.includes('AsTextLight');
133
- });
134
- return _getVisColorsAsText(visColors, visColorsAsTextKeys);
122
+ return ['#006BB4', '#017D73', '#F5A700', '#BD271E', '#DD0A73'];
135
123
  };
136
-
137
- /**
138
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
139
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
140
- */
141
124
  var euiPaletteForDarkBackground = exports.euiPaletteForDarkBackground = function euiPaletteForDarkBackground() {
142
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
143
- var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
144
- return color.includes('AsTextDark');
145
- });
146
- return _getVisColorsAsText(visColors, visColorsAsTextKeys);
125
+ return ['#1BA9F5', '#7DE2D1', '#F990C0', '#F66', '#FFCE7A'];
147
126
  };
148
-
149
- /**
150
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
151
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
152
- */
127
+ var greenColor = '#209280';
128
+ var redColor = '#CC5642';
129
+ var lightRedColor = euiPaletteColorBlind()[9];
130
+ var coolArray = [euiPaletteColorBlind()[1], '#6092C0'];
131
+ var warmArray = [euiPaletteColorBlind()[7], euiPaletteColorBlind()[9]];
153
132
  var euiPaletteForStatus = exports.euiPaletteForStatus = function euiPaletteForStatus(steps) {
154
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
155
133
  if (steps === 1) {
156
- return [visColors.euiColorVisSuccess0];
134
+ return [greenColor];
157
135
  }
158
136
  if (steps <= 3) {
159
- return euiPalette([visColors.euiColorVisSuccess0, visColors.euiColorVisWarning0, visColors.euiColorVisDanger0], steps, true);
137
+ return euiPalette([greenColor, euiPaletteColorBlind()[5], redColor], steps, true);
160
138
  }
161
- return euiPalette([visColors.euiColorVisSuccess0, visColors.euiColorVisSuccess1, visColors.euiColorVisWarning0, visColors.euiColorVisDanger1, visColors.euiColorVisDanger0], steps, true);
139
+ return euiPalette([greenColor, euiPaletteColorBlind()[0], euiPaletteColorBlind()[5], lightRedColor, redColor], steps, true);
162
140
  };
163
-
164
- /**
165
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
166
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
167
- */
168
141
  var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
169
- var hasVisColorAdjustment = _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment,
170
- visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
142
+ var cools = (0, _color_palette.colorPalette)([].concat((0, _toConsumableArray2.default)(coolArray.slice().reverse()), ['#EBEFF5']), 3);
143
+ var warms = (0, _color_palette.colorPalette)(['#F4F3DB'].concat(warmArray), 3);
171
144
  if (steps === 1) {
172
- return [visColors.euiColorVisCool2];
145
+ return [cools[0]];
173
146
  } else if (steps <= 3) {
174
- return euiPalette([visColors.euiColorVisCool2, visColors.euiColorVisWarm2], steps, true);
147
+ return euiPalette([cools[0], lightRedColor], steps, true);
175
148
  }
176
- var cools = (0, _color_palette.colorPalette)([visColors.euiColorVisCool2, visColors.euiColorVisCool1, visColors.euiColorVisCool0], 3);
177
- var warms = (0, _color_palette.colorPalette)([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], 3);
178
- var paletteColors = hasVisColorAdjustment ? [].concat((0, _toConsumableArray2.default)(cools), (0, _toConsumableArray2.default)(warms)) : [].concat((0, _toConsumableArray2.default)(cools), [visColors.euiColorVisNeutral0], (0, _toConsumableArray2.default)(warms));
179
- return euiPalette(paletteColors, steps, true);
149
+ return euiPalette([].concat((0, _toConsumableArray2.default)(cools), (0, _toConsumableArray2.default)(warms)), steps, true);
180
150
  };
181
-
182
- /**
183
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
184
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
185
- */
186
151
  var euiPaletteComplementary = exports.euiPaletteComplementary = function euiPaletteComplementary(steps) {
187
- var hasVisColorAdjustment = _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment,
188
- visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
189
152
  if (steps === 1) {
190
- return [visColors.euiColorVisComplementary0];
153
+ return [euiPaletteColorBlind()[1]];
191
154
  }
192
- var paletteColors = hasVisColorAdjustment ? [visColors.euiColorVisComplementary0, visColors.euiColorVisComplementary1] : [visColors.euiColorVisComplementary0, visColors.euiColorVisNeutral0, visColors.euiColorVisComplementary1];
193
- return euiPalette(paletteColors, steps, true);
155
+ return euiPalette([euiPaletteColorBlind()[1], euiPaletteColorBlind()[7]], steps, true);
194
156
  };
195
-
196
- /**
197
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
198
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
199
- */
200
157
  var euiPaletteRed = exports.euiPaletteRed = function euiPaletteRed(steps) {
201
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
202
158
  if (steps === 1) {
203
- return [visColors.euiColorVisDanger1];
159
+ return [lightRedColor];
204
160
  }
205
- return euiPalette([visColors.euiColorVisNeutral0, visColors.euiColorVisDanger0], steps);
161
+ return euiPalette(['white', redColor], steps);
206
162
  };
207
-
208
- /**
209
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
210
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
211
- */
212
163
  var euiPaletteGreen = exports.euiPaletteGreen = function euiPaletteGreen(steps) {
213
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
214
164
  if (steps === 1) {
215
- return [visColors.euiColorVisSuccess1];
165
+ return [euiPaletteColorBlind()[0]];
216
166
  }
217
- return euiPalette([visColors.euiColorVisNeutral0, visColors.euiColorVisSuccess0], steps);
167
+ return euiPalette(['white', greenColor], steps);
218
168
  };
219
-
220
- /**
221
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
222
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
223
- */
224
169
  var euiPaletteCool = exports.euiPaletteCool = function euiPaletteCool(steps) {
225
- var hasVisColorAdjustment = _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment,
226
- visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
227
170
  if (steps === 1) {
228
- return [visColors.euiColorVisCool1];
171
+ return [coolArray[1]];
229
172
  }
230
- return euiPalette([hasVisColorAdjustment ? visColors.euiColorVisNeutral0 : visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
173
+ return euiPalette(['white'].concat(coolArray), steps);
231
174
  };
232
-
233
- /**
234
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
235
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
236
- */
237
175
  var euiPaletteWarm = exports.euiPaletteWarm = function euiPaletteWarm(steps) {
238
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
239
176
  if (steps === 1) {
240
- return [visColors.euiColorVisWarm2];
177
+ return [lightRedColor];
241
178
  }
242
- return euiPalette([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], steps);
179
+ return euiPalette(['#FBFBDC'].concat(warmArray), steps);
243
180
  };
244
-
245
- /**
246
- * NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
247
- * EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
248
- */
249
181
  var euiPaletteGray = exports.euiPaletteGray = function euiPaletteGray(steps) {
250
- var visColors = _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
251
182
  if (steps === 1) {
252
- return [visColors.euiColorVisGrey1];
183
+ return ['#98a2b3'];
253
184
  }
254
- return euiPalette([visColors.euiColorVisNeutral0, visColors.euiColorVisGrey0, visColors.euiColorVisGrey1, visColors.euiColorVisGrey2, visColors.euiColorVisGrey3], steps, false);
185
+ return euiPalette(['white', '#d3dae6', '#98a2b3', '#69707d', '#343741'], steps, false);
255
186
  };
@@ -16,7 +16,6 @@ var _exportNames = {
16
16
  calculateLuminance: true,
17
17
  VISUALIZATION_COLORS: true,
18
18
  DEFAULT_VISUALIZATION_COLOR: true,
19
- EUI_VIS_COLOR_STORE: true,
20
19
  colorPalette: true,
21
20
  euiPaletteForLightBackground: true,
22
21
  euiPaletteForDarkBackground: true,
@@ -38,12 +37,6 @@ Object.defineProperty(exports, "DEFAULT_VISUALIZATION_COLOR", {
38
37
  return _visualization_colors.DEFAULT_VISUALIZATION_COLOR;
39
38
  }
40
39
  });
41
- Object.defineProperty(exports, "EUI_VIS_COLOR_STORE", {
42
- enumerable: true,
43
- get: function get() {
44
- return _vis_color_store.EUI_VIS_COLOR_STORE;
45
- }
46
- });
47
40
  Object.defineProperty(exports, "VISUALIZATION_COLORS", {
48
41
  enumerable: true,
49
42
  get: function get() {
@@ -204,7 +197,6 @@ var _rgb_to_hex = require("./rgb_to_hex");
204
197
  var _rgb_to_hsv = require("./rgb_to_hsv");
205
198
  var _luminance_and_contrast = require("./luminance_and_contrast");
206
199
  var _visualization_colors = require("./visualization_colors");
207
- var _vis_color_store = require("./vis_color_store");
208
200
  var _color_palette = require("./color_palette");
209
201
  var _eui_palettes = require("./eui_palettes");
210
202
  var _stepped_gradient = require("./stepped_gradient");
@@ -56,7 +56,6 @@ var _exportNames = {
56
56
  tintOrShade: true,
57
57
  transparentize: true,
58
58
  VISUALIZATION_COLORS: true,
59
- EUI_VIS_COLOR_STORE: true,
60
59
  wcagContrastMin: true,
61
60
  useColorPickerState: true,
62
61
  useColorStopsState: true,
@@ -123,12 +122,6 @@ Object.defineProperty(exports, "DEFAULT_VISUALIZATION_COLOR", {
123
122
  return _color.DEFAULT_VISUALIZATION_COLOR;
124
123
  }
125
124
  });
126
- Object.defineProperty(exports, "EUI_VIS_COLOR_STORE", {
127
- enumerable: true,
128
- get: function get() {
129
- return _color.EUI_VIS_COLOR_STORE;
130
- }
131
- });
132
125
  Object.defineProperty(exports, "EuiWindowEvent", {
133
126
  enumerable: true,
134
127
  get: function get() {
@@ -3,12 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "_popoverArrowStyles", {
7
- enumerable: true,
8
- get: function get() {
9
- return _popover_arrow._popoverArrowStyles;
10
- }
11
- });
12
6
  Object.defineProperty(exports, "calculatePopoverPosition", {
13
7
  enumerable: true,
14
8
  get: function get() {
@@ -28,5 +22,4 @@ Object.defineProperty(exports, "getElementZIndex", {
28
22
  }
29
23
  });
30
24
  var _calculate_popover_position = require("./calculate_popover_position");
31
- var _popover_positioning = require("./popover_positioning");
32
- var _popover_arrow = require("./popover_arrow.styles");
25
+ var _popover_positioning = require("./popover_positioning");
@@ -299,9 +299,11 @@ function getPopoverScreenCoordinates(_ref2) {
299
299
  position: position,
300
300
  offset: offset,
301
301
  popoverBoundingBox: popoverBoundingBox,
302
- anchorBoundingBox: anchorBoundingBox
302
+ anchorBoundingBox: anchorBoundingBox,
303
+ arrowConfig: arrowConfig
303
304
  }),
304
- primaryAxisPosition = _getPrimaryAxisPositi.primaryAxisPosition;
305
+ primaryAxisPosition = _getPrimaryAxisPositi.primaryAxisPosition,
306
+ primaryAxisArrowPosition = _getPrimaryAxisPositi.primaryAxisArrowPosition;
305
307
  var popoverPlacement = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, crossAxisFirstSide, crossAxisPosition), primaryAxisPositionName, primaryAxisPosition);
306
308
 
307
309
  // calculate the fit of the popover in this location
@@ -322,12 +324,15 @@ function getPopoverScreenCoordinates(_ref2) {
322
324
  width: popoverBoundingBox.width,
323
325
  height: popoverBoundingBox.height
324
326
  }, combinedBoundingBox);
325
- var arrow = arrowConfig ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, crossAxisFirstSide, crossAxisArrowPosition - popoverPlacement[crossAxisFirstSide] - 1), position, '100%') : undefined;
327
+ var arrow = arrowConfig ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, crossAxisFirstSide, crossAxisArrowPosition - popoverPlacement[crossAxisFirstSide]), primaryAxisPositionName, primaryAxisArrowPosition) : undefined;
326
328
  return {
327
329
  fit: fit,
328
330
  top: popoverPlacement.top,
329
331
  left: popoverPlacement.left,
330
- arrow: arrow
332
+ arrow: arrow ? {
333
+ left: arrow.left,
334
+ top: arrow.top
335
+ } : undefined
331
336
  };
332
337
  }
333
338
  function getCrossAxisPosition(_ref4) {
@@ -419,7 +424,8 @@ function getPrimaryAxisPosition(_ref5) {
419
424
  var position = _ref5.position,
420
425
  offset = _ref5.offset,
421
426
  popoverBoundingBox = _ref5.popoverBoundingBox,
422
- anchorBoundingBox = _ref5.anchorBoundingBox;
427
+ anchorBoundingBox = _ref5.anchorBoundingBox,
428
+ arrowConfig = _ref5.arrowConfig;
423
429
  // if positioning to the top or left, the target position decreases
424
430
  // from the anchor's top or left, otherwise the position adds to the anchor's
425
431
  var isOffsetDecreasing = position === 'top' || position === 'left';
@@ -435,8 +441,13 @@ function getPrimaryAxisPosition(_ref5) {
435
441
  var primaryAxisOffset = isOffsetDecreasing ? popoverSizeOnPrimaryAxis : anchorSizeOnPrimaryAxis;
436
442
  var contentOffset = (offset + primaryAxisOffset) * (isOffsetDecreasing ? -1 : 1);
437
443
  var primaryAxisPosition = anchorEdgeOrigin + contentOffset;
444
+ var primaryAxisArrowPosition;
445
+ if (arrowConfig) {
446
+ primaryAxisArrowPosition = isOffsetDecreasing ? popoverSizeOnPrimaryAxis : 0;
447
+ }
438
448
  return {
439
- primaryAxisPosition: primaryAxisPosition
449
+ primaryAxisPosition: primaryAxisPosition,
450
+ primaryAxisArrowPosition: primaryAxisArrowPosition
440
451
  };
441
452
  }
442
453
 
@@ -14,7 +14,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
14
14
  var _react = require("@emotion/react");
15
15
  var _react2 = _interopRequireWildcard(require("react"));
16
16
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
17
- var _themes = require("../../themes/themes");
18
17
  var _emotion = require("../emotion");
19
18
  var _css2 = require("../emotion/css");
20
19
  var _current_breakpoint = require("../breakpoint/current_breakpoint");
@@ -22,7 +21,6 @@ var _context = require("./context");
22
21
  var _emotion2 = require("./emotion");
23
22
  var _style_memoization = require("./style_memoization");
24
23
  var _utils = require("./utils");
25
- var _color = require("../color");
26
24
  var _excluded = ["cloneElement", "className"];
27
25
  var _templateObject;
28
26
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -73,41 +71,19 @@ var EuiThemeProvider = exports.EuiThemeProvider = function EuiThemeProvider(_ref
73
71
  setColorMode = _useState6[1];
74
72
  var prevColorMode = (0, _react2.useRef)(colorMode);
75
73
  var isParentTheme = (0, _react2.useRef)(prevSystemKey.current === parentSystem.key && colorMode === parentColorMode && (0, _isEqual.default)(parentModifications, modifications));
76
- var updateVisColorStore = (0, _react2.useCallback)(function (theme) {
77
- var _theme$flags$hasVisCo, _theme$flags;
78
- _color.EUI_VIS_COLOR_STORE.setVisColors(theme.colors.vis, (_theme$flags$hasVisCo = (_theme$flags = theme.flags) === null || _theme$flags === void 0 ? void 0 : _theme$flags.hasVisColorAdjustment) !== null && _theme$flags$hasVisCo !== void 0 ? _theme$flags$hasVisCo : true);
79
- }, []);
80
- var getInitialTheme = function getInitialTheme() {
81
- var theme = (0, _utils.getComputed)(system, (0, _utils.buildTheme)(modifications, "_".concat(system.key)), colorMode);
82
- setTimeout(function () {
83
- updateVisColorStore(theme);
84
- });
85
- return theme;
86
- };
87
74
  var _useState7 = (0, _react2.useState)(isParentTheme.current && Object.keys(parentTheme).length ? _objectSpread({}, parentTheme) // Intentionally create a new object to break referential equality
88
- : getInitialTheme()),
75
+ : (0, _utils.getComputed)(system, (0, _utils.buildTheme)(modifications, "_".concat(system.key)), colorMode)),
89
76
  _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
90
77
  theme = _useState8[0],
91
78
  setTheme = _useState8[1];
92
-
93
- // TODO: temp. testing code only, remove once obsolete
94
- (0, _react2.useEffect)(function () {
95
- if (process.env.NODE_ENV === 'development') {
96
- var isEnabled = localStorage.getItem(_themes.EUI_EXPERIMENTAL_THEME_ENABLED_KEY) != null;
97
- if (!isEnabled) {
98
- localStorage.setItem(_themes.EUI_EXPERIMENTAL_THEME_ENABLED_KEY, 'true');
99
- }
100
- }
101
- }, []);
102
79
  (0, _react2.useEffect)(function () {
103
80
  var newSystem = _system || parentSystem;
104
81
  if (prevSystemKey.current !== newSystem.key) {
105
82
  setSystem(newSystem);
106
83
  prevSystemKey.current = newSystem.key;
107
84
  isParentTheme.current = false;
108
- updateVisColorStore(theme);
109
85
  }
110
- }, [_system, parentSystem, theme, updateVisColorStore]);
86
+ }, [_system, parentSystem]);
111
87
  (0, _react2.useEffect)(function () {
112
88
  var newModifications = (0, _utils.mergeDeep)(parentModifications, _modifications);
113
89
  if (!(0, _isEqual.default)(prevModifications.current, newModifications)) {
@@ -3,16 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "COLOR_MODES_INVERSE", {
7
- enumerable: true,
8
- get: function get() {
9
- return _euiThemeCommon.COLOR_MODES_INVERSE;
10
- }
11
- });
12
- Object.defineProperty(exports, "COLOR_MODES_STANDARD", {
13
- enumerable: true,
14
- get: function get() {
15
- return _euiThemeCommon.COLOR_MODES_STANDARD;
16
- }
17
- });
18
- var _euiThemeCommon = require("@elastic/eui-theme-common");
6
+ exports.COLOR_MODES_STANDARD = exports.COLOR_MODES_INVERSE = 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 COLOR_MODES_STANDARD = exports.COLOR_MODES_STANDARD = {
16
+ light: 'LIGHT',
17
+ dark: 'DARK'
18
+ };
19
+ var COLOR_MODES_INVERSE = exports.COLOR_MODES_INVERSE = 'INVERSE';