@elastic/eui 99.4.0 → 100.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (779) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{eui_theme_dark.json → eui_theme_amsterdam_dark.json} +177 -65
  3. package/dist/{eui_theme_light.json.d.ts → eui_theme_amsterdam_dark.json.d.ts} +178 -66
  4. package/dist/{eui_theme_light.json → eui_theme_amsterdam_light.json} +177 -65
  5. package/dist/eui_theme_amsterdam_light.json.d.ts +425 -0
  6. package/dist/eui_theme_borealis_dark.json +422 -0
  7. package/dist/{eui_theme_dark.json.d.ts → eui_theme_borealis_dark.json.d.ts} +178 -66
  8. package/dist/eui_theme_borealis_light.json +422 -0
  9. package/dist/eui_theme_borealis_light.json.d.ts +425 -0
  10. package/es/components/avatar/avatar.js +4 -4
  11. package/es/components/badge/badge.styles.js +1 -2
  12. package/es/components/badge/beta_badge/beta_badge.styles.js +3 -1
  13. package/es/components/badge/color_utils.js +9 -8
  14. package/es/components/beacon/beacon.styles.js +2 -2
  15. package/es/components/bottom_bar/bottom_bar.styles.js +2 -3
  16. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
  17. package/es/components/button/button.js +1 -1
  18. package/es/components/button/button_display/_button_display.styles.js +1 -1
  19. package/es/components/button/button_empty/button_empty.js +1 -1
  20. package/es/components/button/button_group/button_group_button.js +1 -1
  21. package/es/components/button/button_group/button_group_button.styles.js +6 -6
  22. package/es/components/button/button_icon/button_icon.js +1 -1
  23. package/es/components/button/button_icon/button_icon.styles.js +1 -1
  24. package/es/components/call_out/call_out.styles.js +4 -4
  25. package/es/components/card/card.js +1 -1
  26. package/es/components/card/card.styles.js +6 -3
  27. package/es/components/code/code_block_annotations.js +1 -1
  28. package/es/components/code/code_block_line.styles.js +1 -2
  29. package/es/components/code/code_syntax.styles.js +24 -28
  30. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  31. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  32. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  33. package/es/components/color_picker/color_picker.js +4 -3
  34. package/es/components/color_picker/color_picker.styles.js +1 -2
  35. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  36. package/es/components/combo_box/combo_box.js +11 -1
  37. package/es/components/comment_list/comment.js +1 -1
  38. package/es/components/comment_list/comment_event.js +5 -4
  39. package/es/components/comment_list/comment_list.js +1 -1
  40. package/es/components/common.js +0 -28
  41. package/es/components/datagrid/data_grid.styles.js +6 -7
  42. package/es/components/date_picker/date_picker.styles.js +1 -1
  43. package/es/components/date_picker/date_picker_range.styles.js +1 -1
  44. package/es/components/date_picker/react_date_picker.styles.js +2 -1
  45. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
  46. package/es/components/drag_and_drop/droppable.styles.js +2 -4
  47. package/es/components/empty_prompt/empty_prompt.js +1 -1
  48. package/es/components/empty_prompt/empty_prompt.styles.js +6 -2
  49. package/es/components/expression/expression.styles.js +13 -13
  50. package/es/components/filter_group/filter_select_item.styles.js +1 -2
  51. package/es/components/flyout/_flyout_close_button.styles.js +2 -3
  52. package/es/components/flyout/flyout.js +1 -1
  53. package/es/components/flyout/flyout.styles.js +8 -3
  54. package/es/components/flyout/flyout_footer.styles.js +1 -1
  55. package/es/components/form/form.styles.js +24 -32
  56. package/es/components/form/range/range_tooltip.styles.js +11 -13
  57. package/es/components/form/switch/switch.js +3 -7
  58. package/es/components/form/switch/switch.styles.js +16 -19
  59. package/es/components/header/header.styles.js +7 -8
  60. package/es/components/icon/icon.styles.js +9 -8
  61. package/es/components/icon/named_colors.js +1 -1
  62. package/es/components/image/image.styles.js +1 -1
  63. package/es/components/image/image_button.styles.js +1 -1
  64. package/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  65. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
  66. package/es/components/link/link.styles.js +6 -6
  67. package/es/components/list_group/list_group_item.styles.js +9 -11
  68. package/es/components/loading/loading_chart.styles.js +18 -5
  69. package/es/components/loading/loading_spinner.styles.js +2 -2
  70. package/es/components/mark/mark.styles.js +2 -9
  71. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  72. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  73. package/es/components/modal/modal.styles.js +2 -2
  74. package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  75. package/es/components/page_template/inner/page_inner.styles.js +3 -3
  76. package/es/components/pagination/pagination.styles.js +2 -2
  77. package/es/components/panel/panel.js +1 -1
  78. package/es/components/panel/panel.styles.js +3 -2
  79. package/es/components/panel/split_panel/split_panel.js +1 -1
  80. package/es/components/popover/popover.js +1 -1
  81. package/es/components/popover/popover_arrow/_popover_arrow.js +8 -3
  82. package/es/components/popover/popover_arrow/_popover_arrow.styles.js +18 -13
  83. package/es/components/popover/popover_footer.styles.js +1 -1
  84. package/es/components/popover/popover_panel/_popover_panel.styles.js +7 -6
  85. package/es/components/progress/progress.js +1 -1
  86. package/es/components/progress/progress.styles.js +30 -28
  87. package/es/components/provider/provider.js +2 -2
  88. package/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
  89. package/es/components/resizable_container/resizable_panel.js +1 -1
  90. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
  91. package/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
  92. package/es/components/side_nav/side_nav_item.styles.js +6 -7
  93. package/es/components/skeleton/utils.js +5 -7
  94. package/es/components/stat/stat.styles.js +5 -5
  95. package/es/components/steps/step_number.styles.js +1 -1
  96. package/es/components/table/table_cells_shared.styles.js +3 -8
  97. package/es/components/table/table_row.styles.js +9 -11
  98. package/es/components/tabs/tab.styles.js +2 -2
  99. package/es/components/text/text.styles.js +2 -2
  100. package/es/components/text/text_color.js +1 -1
  101. package/es/components/text/text_color.styles.js +6 -5
  102. package/es/components/text_diff/text_diff.styles.js +1 -1
  103. package/es/components/toast/toast.styles.js +2 -2
  104. package/es/components/token/token.js +10 -4
  105. package/es/components/token/token.styles.js +14 -5
  106. package/es/components/token/token_map.js +243 -1
  107. package/es/components/tool_tip/tool_tip.styles.js +13 -25
  108. package/es/components/tour/_tour_footer.styles.js +2 -4
  109. package/es/components/tour/tour.styles.js +8 -12
  110. package/es/components/tree_view/tree_view_item.styles.js +1 -2
  111. package/es/global_styling/functions/math.js +1 -49
  112. package/es/global_styling/functions/size.js +1 -17
  113. package/es/global_styling/mixins/_button.js +159 -0
  114. package/es/global_styling/mixins/_color.js +39 -31
  115. package/es/global_styling/mixins/_shadow.js +31 -0
  116. package/es/global_styling/mixins/index.js +3 -1
  117. package/es/global_styling/reset/global_styles.js +3 -3
  118. package/es/global_styling/variables/animations.js +1 -22
  119. package/es/global_styling/variables/breakpoint.js +1 -7
  120. package/es/global_styling/variables/levels.js +1 -17
  121. package/es/global_styling/variables/shadow.js +1 -11
  122. package/es/global_styling/variables/size.js +1 -1
  123. package/es/global_styling/variables/typography.js +1 -32
  124. package/es/services/color/eui_palettes.js +148 -54
  125. package/es/services/color/eui_palettes_hooks.js +74 -0
  126. package/es/services/color/index.js +2 -0
  127. package/es/services/color/vis_color_store.js +13 -0
  128. package/es/services/index.js +2 -1
  129. package/es/services/popover/index.js +4 -1
  130. package/es/services/popover/popover_arrow.styles.js +31 -0
  131. package/es/services/popover/popover_positioning.js +6 -17
  132. package/es/services/theme/context.js +3 -3
  133. package/es/services/theme/provider.js +15 -2
  134. package/es/services/theme/types.js +1 -6
  135. package/es/services/theme/utils.js +1 -303
  136. package/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
  137. package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
  138. package/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
  139. package/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  140. package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
  141. package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
  142. package/es/themes/amsterdam/global_styling/variables/_colors.js +612 -19
  143. package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +133 -0
  144. package/es/themes/amsterdam/global_styling/variables/_components.js +619 -0
  145. package/es/themes/amsterdam/global_styling/variables/_forms.js +161 -0
  146. package/es/themes/amsterdam/theme.js +7 -1
  147. package/es/themes/index.js +1 -2
  148. package/es/themes/themes.js +1 -21
  149. package/eui.d.ts +2726 -3183
  150. package/lib/components/avatar/avatar.js +2 -2
  151. package/lib/components/badge/badge.styles.js +1 -2
  152. package/lib/components/badge/beta_badge/beta_badge.styles.js +3 -1
  153. package/lib/components/badge/color_utils.js +14 -13
  154. package/lib/components/beacon/beacon.styles.js +2 -2
  155. package/lib/components/bottom_bar/bottom_bar.styles.js +2 -3
  156. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
  157. package/lib/components/button/button.js +1 -1
  158. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  159. package/lib/components/button/button_empty/button_empty.js +1 -1
  160. package/lib/components/button/button_group/button_group_button.js +1 -1
  161. package/lib/components/button/button_group/button_group_button.styles.js +5 -5
  162. package/lib/components/button/button_icon/button_icon.js +1 -1
  163. package/lib/components/button/button_icon/button_icon.styles.js +1 -1
  164. package/lib/components/call_out/call_out.styles.js +4 -4
  165. package/lib/components/card/card.js +1 -1
  166. package/lib/components/card/card.styles.js +5 -2
  167. package/lib/components/code/code_block_annotations.js +1 -1
  168. package/lib/components/code/code_block_line.styles.js +1 -2
  169. package/lib/components/code/code_syntax.styles.js +24 -28
  170. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  171. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  172. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  173. package/lib/components/color_picker/color_picker.js +3 -2
  174. package/lib/components/color_picker/color_picker.styles.js +1 -2
  175. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  176. package/lib/components/combo_box/combo_box.js +11 -1
  177. package/lib/components/comment_list/comment.js +1 -1
  178. package/lib/components/comment_list/comment_event.js +5 -4
  179. package/lib/components/comment_list/comment_list.js +1 -1
  180. package/lib/components/common.js +0 -28
  181. package/lib/components/datagrid/data_grid.styles.js +6 -7
  182. package/lib/components/date_picker/date_picker.styles.js +2 -2
  183. package/lib/components/date_picker/date_picker_range.styles.js +2 -2
  184. package/lib/components/date_picker/react_date_picker.styles.js +3 -2
  185. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  186. package/lib/components/drag_and_drop/droppable.styles.js +2 -4
  187. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  188. package/lib/components/empty_prompt/empty_prompt.styles.js +5 -1
  189. package/lib/components/expression/expression.styles.js +13 -13
  190. package/lib/components/filter_group/filter_select_item.styles.js +1 -2
  191. package/lib/components/flyout/_flyout_close_button.styles.js +3 -4
  192. package/lib/components/flyout/flyout.js +1 -1
  193. package/lib/components/flyout/flyout.styles.js +8 -3
  194. package/lib/components/flyout/flyout_footer.styles.js +1 -1
  195. package/lib/components/form/form.styles.js +23 -31
  196. package/lib/components/form/range/range_tooltip.styles.js +11 -13
  197. package/lib/components/form/switch/switch.js +3 -7
  198. package/lib/components/form/switch/switch.styles.js +16 -19
  199. package/lib/components/header/header.styles.js +7 -8
  200. package/lib/components/icon/icon.styles.js +9 -8
  201. package/lib/components/icon/named_colors.js +1 -1
  202. package/lib/components/icon/svgs/aggregate.svg +0 -0
  203. package/lib/components/icon/svgs/color.svg +0 -0
  204. package/lib/components/icon/svgs/continuityAbove.svg +0 -0
  205. package/lib/components/icon/svgs/continuityAboveBelow.svg +0 -0
  206. package/lib/components/icon/svgs/continuityBelow.svg +0 -0
  207. package/lib/components/icon/svgs/continuityWithin.svg +0 -0
  208. package/lib/components/icon/svgs/documentation.svg +0 -0
  209. package/lib/components/icon/svgs/eraser.svg +0 -0
  210. package/lib/components/icon/svgs/folder_check.svg +0 -0
  211. package/lib/components/icon/svgs/folder_closed.svg +0 -0
  212. package/lib/components/icon/svgs/folder_exclamation.svg +0 -0
  213. package/lib/components/icon/svgs/folder_open.svg +0 -0
  214. package/lib/components/icon/svgs/fullScreenExit.svg +0 -0
  215. package/lib/components/icon/svgs/function.svg +0 -0
  216. package/lib/components/icon/svgs/layers.svg +0 -0
  217. package/lib/components/icon/svgs/menu.svg +0 -0
  218. package/lib/components/icon/svgs/ml_data_visualizer.svg +0 -0
  219. package/lib/components/icon/svgs/pageSelect.svg +0 -0
  220. package/lib/components/icon/svgs/pagesSelect.svg +0 -0
  221. package/lib/components/icon/svgs/percent.svg +0 -0
  222. package/lib/components/icon/svgs/push.svg +0 -0
  223. package/lib/components/icon/svgs/quote.svg +0 -0
  224. package/lib/components/icon/svgs/reporter.svg +0 -0
  225. package/lib/components/icon/svgs/securitySignal.svg +0 -0
  226. package/lib/components/icon/svgs/securitySignalDetected.svg +0 -0
  227. package/lib/components/icon/svgs/securitySignalResolved.svg +0 -0
  228. package/lib/components/icon/svgs/timeline.svg +0 -0
  229. package/lib/components/icon/svgs/users.svg +0 -0
  230. package/lib/components/icon/svgs/wordWrap.svg +0 -0
  231. package/lib/components/icon/svgs/wordWrapDisabled.svg +0 -0
  232. package/lib/components/image/image.styles.js +2 -2
  233. package/lib/components/image/image_button.styles.js +3 -3
  234. package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  235. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
  236. package/lib/components/link/link.styles.js +6 -6
  237. package/lib/components/list_group/list_group_item.styles.js +8 -10
  238. package/lib/components/loading/loading_chart.styles.js +18 -5
  239. package/lib/components/loading/loading_spinner.styles.js +2 -2
  240. package/lib/components/mark/mark.styles.js +2 -9
  241. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  242. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  243. package/lib/components/modal/modal.styles.js +3 -3
  244. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  245. package/lib/components/page_template/inner/page_inner.styles.js +2 -2
  246. package/lib/components/pagination/pagination.styles.js +2 -2
  247. package/lib/components/panel/panel.js +1 -1
  248. package/lib/components/panel/panel.styles.js +4 -3
  249. package/lib/components/panel/split_panel/split_panel.js +1 -1
  250. package/lib/components/popover/popover.js +1 -1
  251. package/lib/components/popover/popover_arrow/_popover_arrow.js +8 -3
  252. package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +18 -15
  253. package/lib/components/popover/popover_footer.styles.js +1 -1
  254. package/lib/components/popover/popover_panel/_popover_panel.styles.js +10 -9
  255. package/lib/components/progress/progress.js +1 -1
  256. package/lib/components/progress/progress.styles.js +29 -27
  257. package/lib/components/provider/provider.js +2 -2
  258. package/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
  259. package/lib/components/resizable_container/resizable_panel.js +1 -1
  260. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
  261. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
  262. package/lib/components/side_nav/side_nav_item.styles.js +6 -7
  263. package/lib/components/skeleton/utils.js +4 -6
  264. package/lib/components/stat/stat.styles.js +5 -5
  265. package/lib/components/steps/step_number.styles.js +1 -1
  266. package/lib/components/table/table_cells_shared.styles.js +3 -8
  267. package/lib/components/table/table_row.styles.js +8 -10
  268. package/lib/components/tabs/tab.styles.js +2 -2
  269. package/lib/components/text/text.styles.js +1 -1
  270. package/lib/components/text/text_color.js +1 -1
  271. package/lib/components/text/text_color.styles.js +6 -5
  272. package/lib/components/text_diff/text_diff.styles.js +1 -1
  273. package/lib/components/toast/toast.styles.js +2 -2
  274. package/lib/components/token/token.js +12 -4
  275. package/lib/components/token/token.styles.js +14 -5
  276. package/lib/components/token/token_map.js +244 -2
  277. package/lib/components/tool_tip/tool_tip.styles.js +12 -24
  278. package/lib/components/tour/_tour_footer.styles.js +2 -4
  279. package/lib/components/tour/tour.styles.js +8 -12
  280. package/lib/components/tree_view/tree_view_item.styles.js +1 -2
  281. package/lib/global_styling/functions/math.js +7 -58
  282. package/lib/global_styling/functions/size.js +7 -26
  283. package/lib/global_styling/mixins/_button.js +164 -0
  284. package/lib/global_styling/mixins/_color.js +38 -30
  285. package/lib/global_styling/mixins/_shadow.js +84 -0
  286. package/lib/global_styling/mixins/index.js +22 -0
  287. package/lib/global_styling/reset/global_styles.js +2 -2
  288. package/lib/global_styling/variables/animations.js +25 -31
  289. package/lib/global_styling/variables/breakpoint.js +7 -16
  290. package/lib/global_styling/variables/levels.js +7 -26
  291. package/lib/global_styling/variables/shadow.js +13 -20
  292. package/lib/global_styling/variables/size.js +7 -10
  293. package/lib/global_styling/variables/typography.js +19 -41
  294. package/lib/services/color/eui_palettes.js +148 -54
  295. package/lib/services/color/eui_palettes_hooks.js +78 -0
  296. package/lib/services/color/index.js +20 -0
  297. package/lib/services/color/vis_color_store.js +18 -0
  298. package/lib/services/index.js +19 -0
  299. package/lib/services/popover/index.js +8 -1
  300. package/lib/services/popover/popover_arrow.styles.js +37 -0
  301. package/lib/services/popover/popover_positioning.js +6 -17
  302. package/lib/services/theme/context.js +3 -3
  303. package/lib/services/theme/provider.js +15 -2
  304. package/lib/services/theme/types.js +13 -14
  305. package/lib/services/theme/utils.js +54 -303
  306. package/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
  307. package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
  308. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
  309. package/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  310. package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
  311. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
  312. package/lib/themes/amsterdam/global_styling/variables/_colors.js +616 -24
  313. package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +139 -0
  314. package/lib/themes/amsterdam/global_styling/variables/_components.js +623 -0
  315. package/lib/themes/amsterdam/global_styling/variables/_forms.js +165 -0
  316. package/lib/themes/amsterdam/theme.js +7 -1
  317. package/lib/themes/index.js +4 -11
  318. package/lib/themes/themes.js +1 -23
  319. package/optimize/es/components/avatar/avatar.js +4 -4
  320. package/optimize/es/components/badge/badge.styles.js +1 -2
  321. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +3 -1
  322. package/optimize/es/components/badge/color_utils.js +9 -8
  323. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  324. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -3
  325. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
  326. package/optimize/es/components/button/button.js +1 -1
  327. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  328. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  329. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  330. package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
  331. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  332. package/optimize/es/components/button/button_icon/button_icon.styles.js +1 -1
  333. package/optimize/es/components/call_out/call_out.styles.js +4 -4
  334. package/optimize/es/components/card/card.styles.js +6 -3
  335. package/optimize/es/components/code/code_block_annotations.js +1 -1
  336. package/optimize/es/components/code/code_block_line.styles.js +1 -2
  337. package/optimize/es/components/code/code_syntax.styles.js +24 -28
  338. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  339. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  340. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  341. package/optimize/es/components/color_picker/color_picker.js +4 -3
  342. package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
  343. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  344. package/optimize/es/components/combo_box/combo_box.js +6 -1
  345. package/optimize/es/components/comment_list/comment_event.js +4 -3
  346. package/optimize/es/components/common.js +0 -28
  347. package/optimize/es/components/datagrid/data_grid.styles.js +6 -7
  348. package/optimize/es/components/date_picker/date_picker.styles.js +1 -1
  349. package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
  350. package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
  351. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
  352. package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
  353. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +6 -2
  354. package/optimize/es/components/expression/expression.styles.js +13 -13
  355. package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
  356. package/optimize/es/components/flyout/_flyout_close_button.styles.js +2 -3
  357. package/optimize/es/components/flyout/flyout.js +1 -1
  358. package/optimize/es/components/flyout/flyout.styles.js +8 -3
  359. package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
  360. package/optimize/es/components/form/form.styles.js +24 -32
  361. package/optimize/es/components/form/range/range_tooltip.styles.js +11 -13
  362. package/optimize/es/components/form/switch/switch.js +3 -2
  363. package/optimize/es/components/form/switch/switch.styles.js +16 -19
  364. package/optimize/es/components/header/header.styles.js +7 -8
  365. package/optimize/es/components/icon/icon.styles.js +9 -8
  366. package/optimize/es/components/icon/named_colors.js +1 -1
  367. package/optimize/es/components/image/image.styles.js +1 -1
  368. package/optimize/es/components/image/image_button.styles.js +1 -1
  369. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  370. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
  371. package/optimize/es/components/link/link.styles.js +6 -6
  372. package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
  373. package/optimize/es/components/loading/loading_chart.styles.js +13 -5
  374. package/optimize/es/components/loading/loading_spinner.styles.js +2 -2
  375. package/optimize/es/components/mark/mark.styles.js +2 -9
  376. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  377. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  378. package/optimize/es/components/modal/modal.styles.js +2 -2
  379. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  380. package/optimize/es/components/page_template/inner/page_inner.styles.js +3 -3
  381. package/optimize/es/components/pagination/pagination.styles.js +2 -2
  382. package/optimize/es/components/panel/panel.styles.js +3 -2
  383. package/optimize/es/components/popover/popover.js +1 -1
  384. package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +8 -3
  385. package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +15 -13
  386. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  387. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +7 -6
  388. package/optimize/es/components/progress/progress.js +1 -1
  389. package/optimize/es/components/progress/progress.styles.js +30 -28
  390. package/optimize/es/components/provider/provider.js +2 -2
  391. package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
  392. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
  393. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
  394. package/optimize/es/components/side_nav/side_nav_item.styles.js +6 -7
  395. package/optimize/es/components/skeleton/utils.js +5 -7
  396. package/optimize/es/components/stat/stat.styles.js +5 -5
  397. package/optimize/es/components/steps/step_number.styles.js +1 -1
  398. package/optimize/es/components/table/table_cells_shared.styles.js +3 -8
  399. package/optimize/es/components/table/table_row.styles.js +9 -11
  400. package/optimize/es/components/tabs/tab.styles.js +2 -2
  401. package/optimize/es/components/text/text.styles.js +2 -2
  402. package/optimize/es/components/text/text_color.js +1 -1
  403. package/optimize/es/components/text/text_color.styles.js +6 -5
  404. package/optimize/es/components/text_diff/text_diff.styles.js +1 -1
  405. package/optimize/es/components/toast/toast.styles.js +2 -2
  406. package/optimize/es/components/token/token.js +10 -4
  407. package/optimize/es/components/token/token.styles.js +14 -5
  408. package/optimize/es/components/token/token_map.js +243 -1
  409. package/optimize/es/components/tool_tip/tool_tip.styles.js +13 -25
  410. package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
  411. package/optimize/es/components/tour/tour.styles.js +8 -12
  412. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
  413. package/optimize/es/global_styling/functions/math.js +1 -49
  414. package/optimize/es/global_styling/functions/size.js +1 -17
  415. package/optimize/es/global_styling/mixins/_button.js +159 -0
  416. package/optimize/es/global_styling/mixins/_color.js +39 -31
  417. package/optimize/es/global_styling/mixins/_shadow.js +31 -0
  418. package/optimize/es/global_styling/mixins/index.js +3 -1
  419. package/optimize/es/global_styling/reset/global_styles.js +3 -3
  420. package/optimize/es/global_styling/variables/animations.js +1 -22
  421. package/optimize/es/global_styling/variables/breakpoint.js +1 -7
  422. package/optimize/es/global_styling/variables/levels.js +1 -17
  423. package/optimize/es/global_styling/variables/shadow.js +1 -11
  424. package/optimize/es/global_styling/variables/size.js +1 -1
  425. package/optimize/es/global_styling/variables/typography.js +1 -32
  426. package/optimize/es/services/color/eui_palettes.js +148 -54
  427. package/optimize/es/services/color/eui_palettes_hooks.js +71 -0
  428. package/optimize/es/services/color/index.js +2 -0
  429. package/optimize/es/services/color/vis_color_store.js +13 -0
  430. package/optimize/es/services/index.js +2 -1
  431. package/optimize/es/services/popover/index.js +4 -1
  432. package/optimize/es/services/popover/popover_arrow.styles.js +31 -0
  433. package/optimize/es/services/popover/popover_positioning.js +6 -17
  434. package/optimize/es/services/theme/context.js +3 -3
  435. package/optimize/es/services/theme/provider.js +15 -2
  436. package/optimize/es/services/theme/types.js +1 -6
  437. package/optimize/es/services/theme/utils.js +1 -295
  438. package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
  439. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
  440. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
  441. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  442. package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
  443. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
  444. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +612 -19
  445. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +133 -0
  446. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +611 -0
  447. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +153 -0
  448. package/optimize/es/themes/amsterdam/theme.js +7 -1
  449. package/optimize/es/themes/index.js +1 -2
  450. package/optimize/es/themes/themes.js +1 -21
  451. package/optimize/lib/components/avatar/avatar.js +2 -2
  452. package/optimize/lib/components/badge/badge.styles.js +1 -2
  453. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +3 -1
  454. package/optimize/lib/components/badge/color_utils.js +14 -13
  455. package/optimize/lib/components/beacon/beacon.styles.js +2 -2
  456. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -3
  457. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
  458. package/optimize/lib/components/button/button.js +1 -1
  459. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  460. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  461. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  462. package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
  463. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  464. package/optimize/lib/components/button/button_icon/button_icon.styles.js +1 -1
  465. package/optimize/lib/components/call_out/call_out.styles.js +4 -4
  466. package/optimize/lib/components/card/card.styles.js +5 -2
  467. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  468. package/optimize/lib/components/code/code_block_line.styles.js +1 -2
  469. package/optimize/lib/components/code/code_syntax.styles.js +24 -28
  470. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  471. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  472. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  473. package/optimize/lib/components/color_picker/color_picker.js +3 -2
  474. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
  475. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  476. package/optimize/lib/components/combo_box/combo_box.js +6 -1
  477. package/optimize/lib/components/comment_list/comment_event.js +4 -3
  478. package/optimize/lib/components/common.js +0 -28
  479. package/optimize/lib/components/datagrid/data_grid.styles.js +6 -7
  480. package/optimize/lib/components/date_picker/date_picker.styles.js +2 -2
  481. package/optimize/lib/components/date_picker/date_picker_range.styles.js +2 -2
  482. package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
  483. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  484. package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
  485. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +5 -1
  486. package/optimize/lib/components/expression/expression.styles.js +13 -13
  487. package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
  488. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +3 -4
  489. package/optimize/lib/components/flyout/flyout.js +1 -1
  490. package/optimize/lib/components/flyout/flyout.styles.js +8 -3
  491. package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
  492. package/optimize/lib/components/form/form.styles.js +23 -31
  493. package/optimize/lib/components/form/range/range_tooltip.styles.js +11 -13
  494. package/optimize/lib/components/form/switch/switch.js +3 -2
  495. package/optimize/lib/components/form/switch/switch.styles.js +16 -19
  496. package/optimize/lib/components/header/header.styles.js +7 -8
  497. package/optimize/lib/components/icon/icon.styles.js +9 -8
  498. package/optimize/lib/components/icon/named_colors.js +1 -1
  499. package/optimize/lib/components/icon/svgs/aggregate.svg +0 -0
  500. package/optimize/lib/components/icon/svgs/color.svg +0 -0
  501. package/optimize/lib/components/icon/svgs/continuityAbove.svg +0 -0
  502. package/optimize/lib/components/icon/svgs/continuityAboveBelow.svg +0 -0
  503. package/optimize/lib/components/icon/svgs/continuityBelow.svg +0 -0
  504. package/optimize/lib/components/icon/svgs/continuityWithin.svg +0 -0
  505. package/optimize/lib/components/icon/svgs/documentation.svg +0 -0
  506. package/optimize/lib/components/icon/svgs/eraser.svg +0 -0
  507. package/optimize/lib/components/icon/svgs/folder_check.svg +0 -0
  508. package/optimize/lib/components/icon/svgs/folder_closed.svg +0 -0
  509. package/optimize/lib/components/icon/svgs/folder_exclamation.svg +0 -0
  510. package/optimize/lib/components/icon/svgs/folder_open.svg +0 -0
  511. package/optimize/lib/components/icon/svgs/fullScreenExit.svg +0 -0
  512. package/optimize/lib/components/icon/svgs/function.svg +0 -0
  513. package/optimize/lib/components/icon/svgs/layers.svg +0 -0
  514. package/optimize/lib/components/icon/svgs/menu.svg +0 -0
  515. package/optimize/lib/components/icon/svgs/ml_data_visualizer.svg +0 -0
  516. package/optimize/lib/components/icon/svgs/pageSelect.svg +0 -0
  517. package/optimize/lib/components/icon/svgs/pagesSelect.svg +0 -0
  518. package/optimize/lib/components/icon/svgs/percent.svg +0 -0
  519. package/optimize/lib/components/icon/svgs/push.svg +0 -0
  520. package/optimize/lib/components/icon/svgs/quote.svg +0 -0
  521. package/optimize/lib/components/icon/svgs/reporter.svg +0 -0
  522. package/optimize/lib/components/icon/svgs/securitySignal.svg +0 -0
  523. package/optimize/lib/components/icon/svgs/securitySignalDetected.svg +0 -0
  524. package/optimize/lib/components/icon/svgs/securitySignalResolved.svg +0 -0
  525. package/optimize/lib/components/icon/svgs/timeline.svg +0 -0
  526. package/optimize/lib/components/icon/svgs/users.svg +0 -0
  527. package/optimize/lib/components/icon/svgs/wordWrap.svg +0 -0
  528. package/optimize/lib/components/icon/svgs/wordWrapDisabled.svg +0 -0
  529. package/optimize/lib/components/image/image.styles.js +2 -2
  530. package/optimize/lib/components/image/image_button.styles.js +3 -3
  531. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  532. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
  533. package/optimize/lib/components/link/link.styles.js +6 -6
  534. package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
  535. package/optimize/lib/components/loading/loading_chart.styles.js +13 -5
  536. package/optimize/lib/components/loading/loading_spinner.styles.js +2 -2
  537. package/optimize/lib/components/mark/mark.styles.js +2 -9
  538. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  539. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  540. package/optimize/lib/components/modal/modal.styles.js +3 -3
  541. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  542. package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
  543. package/optimize/lib/components/pagination/pagination.styles.js +2 -2
  544. package/optimize/lib/components/panel/panel.styles.js +4 -3
  545. package/optimize/lib/components/popover/popover.js +1 -1
  546. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +8 -3
  547. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +16 -15
  548. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  549. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +10 -9
  550. package/optimize/lib/components/progress/progress.js +1 -1
  551. package/optimize/lib/components/progress/progress.styles.js +29 -27
  552. package/optimize/lib/components/provider/provider.js +2 -2
  553. package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
  554. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
  555. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
  556. package/optimize/lib/components/side_nav/side_nav_item.styles.js +6 -7
  557. package/optimize/lib/components/skeleton/utils.js +4 -6
  558. package/optimize/lib/components/stat/stat.styles.js +5 -5
  559. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  560. package/optimize/lib/components/table/table_cells_shared.styles.js +3 -8
  561. package/optimize/lib/components/table/table_row.styles.js +8 -10
  562. package/optimize/lib/components/tabs/tab.styles.js +2 -2
  563. package/optimize/lib/components/text/text.styles.js +1 -1
  564. package/optimize/lib/components/text/text_color.js +1 -1
  565. package/optimize/lib/components/text/text_color.styles.js +6 -5
  566. package/optimize/lib/components/text_diff/text_diff.styles.js +1 -1
  567. package/optimize/lib/components/toast/toast.styles.js +2 -2
  568. package/optimize/lib/components/token/token.js +13 -4
  569. package/optimize/lib/components/token/token.styles.js +14 -5
  570. package/optimize/lib/components/token/token_map.js +244 -2
  571. package/optimize/lib/components/tool_tip/tool_tip.styles.js +12 -24
  572. package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
  573. package/optimize/lib/components/tour/tour.styles.js +8 -12
  574. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
  575. package/optimize/lib/global_styling/functions/math.js +7 -59
  576. package/optimize/lib/global_styling/functions/size.js +7 -27
  577. package/optimize/lib/global_styling/mixins/_button.js +165 -0
  578. package/optimize/lib/global_styling/mixins/_color.js +38 -30
  579. package/optimize/lib/global_styling/mixins/_shadow.js +84 -0
  580. package/optimize/lib/global_styling/mixins/index.js +22 -0
  581. package/optimize/lib/global_styling/reset/global_styles.js +2 -2
  582. package/optimize/lib/global_styling/variables/animations.js +25 -31
  583. package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
  584. package/optimize/lib/global_styling/variables/levels.js +7 -26
  585. package/optimize/lib/global_styling/variables/shadow.js +13 -20
  586. package/optimize/lib/global_styling/variables/size.js +7 -10
  587. package/optimize/lib/global_styling/variables/typography.js +19 -41
  588. package/optimize/lib/services/color/eui_palettes.js +148 -54
  589. package/optimize/lib/services/color/eui_palettes_hooks.js +76 -0
  590. package/optimize/lib/services/color/index.js +20 -0
  591. package/optimize/lib/services/color/vis_color_store.js +18 -0
  592. package/optimize/lib/services/index.js +19 -0
  593. package/optimize/lib/services/popover/index.js +8 -1
  594. package/optimize/lib/services/popover/popover_arrow.styles.js +37 -0
  595. package/optimize/lib/services/popover/popover_positioning.js +6 -17
  596. package/optimize/lib/services/theme/context.js +3 -3
  597. package/optimize/lib/services/theme/provider.js +15 -2
  598. package/optimize/lib/services/theme/types.js +13 -14
  599. package/optimize/lib/services/theme/utils.js +54 -296
  600. package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
  601. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
  602. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
  603. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  604. package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
  605. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  606. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +616 -24
  607. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +139 -0
  608. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +616 -0
  609. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +158 -0
  610. package/optimize/lib/themes/amsterdam/theme.js +7 -1
  611. package/optimize/lib/themes/index.js +4 -11
  612. package/optimize/lib/themes/themes.js +1 -23
  613. package/package.json +8 -4
  614. package/src/global_styling/functions/_colors.scss +3 -3
  615. package/src/global_styling/functions/_index.scss +1 -5
  616. package/src/global_styling/index.scss +1 -10
  617. package/src/global_styling/mixins/_shadow.scss +1 -1
  618. package/src/global_styling/mixins/_typography.scss +2 -2
  619. package/src/global_styling/variables/_animations.scss +1 -8
  620. package/src/global_styling/variables/_borders.scss +1 -9
  621. package/src/global_styling/variables/_buttons.scss +1 -18
  622. package/src/global_styling/variables/_font_weight.scss +1 -7
  623. package/src/global_styling/variables/_form.scss +2 -21
  624. package/src/global_styling/variables/_index.scss +0 -1
  625. package/src/global_styling/variables/_responsive.scss +1 -9
  626. package/src/global_styling/variables/_shadows.scss +1 -1
  627. package/src/global_styling/variables/_size.scss +1 -13
  628. package/src/global_styling/variables/_states.scss +1 -14
  629. package/src/global_styling/variables/_typography.scss +1 -75
  630. package/src/global_styling/variables/_z_index.scss +1 -33
  631. package/src/themes/amsterdam/_colors_dark.scss +80 -8
  632. package/src/themes/amsterdam/_colors_light.scss +80 -8
  633. package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
  634. package/src/themes/amsterdam/global_styling/variables/_index.scss +2 -0
  635. package/test-env/components/avatar/avatar.js +2 -2
  636. package/test-env/components/badge/badge.styles.js +1 -2
  637. package/test-env/components/badge/beta_badge/beta_badge.styles.js +3 -1
  638. package/test-env/components/badge/color_utils.js +14 -13
  639. package/test-env/components/beacon/beacon.styles.js +2 -2
  640. package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -3
  641. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
  642. package/test-env/components/button/button.js +1 -1
  643. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  644. package/test-env/components/button/button_empty/button_empty.js +1 -1
  645. package/test-env/components/button/button_group/button_group_button.js +1 -1
  646. package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
  647. package/test-env/components/button/button_icon/button_icon.js +1 -1
  648. package/test-env/components/button/button_icon/button_icon.styles.js +1 -1
  649. package/test-env/components/call_out/call_out.styles.js +4 -4
  650. package/test-env/components/card/card.js +1 -1
  651. package/test-env/components/card/card.styles.js +5 -2
  652. package/test-env/components/code/code_block_annotations.js +1 -1
  653. package/test-env/components/code/code_block_line.styles.js +1 -2
  654. package/test-env/components/code/code_syntax.styles.js +24 -28
  655. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  656. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  657. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  658. package/test-env/components/color_picker/color_picker.js +3 -2
  659. package/test-env/components/color_picker/color_picker.styles.js +1 -2
  660. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  661. package/test-env/components/combo_box/combo_box.js +6 -1
  662. package/test-env/components/comment_list/comment.js +1 -1
  663. package/test-env/components/comment_list/comment_event.js +5 -4
  664. package/test-env/components/comment_list/comment_list.js +1 -1
  665. package/test-env/components/common.js +0 -28
  666. package/test-env/components/datagrid/data_grid.styles.js +6 -7
  667. package/test-env/components/date_picker/date_picker.styles.js +2 -2
  668. package/test-env/components/date_picker/date_picker_range.styles.js +2 -2
  669. package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
  670. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  671. package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
  672. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  673. package/test-env/components/empty_prompt/empty_prompt.styles.js +5 -1
  674. package/test-env/components/expression/expression.styles.js +13 -13
  675. package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
  676. package/test-env/components/flyout/_flyout_close_button.styles.js +3 -4
  677. package/test-env/components/flyout/flyout.styles.js +8 -3
  678. package/test-env/components/flyout/flyout_footer.styles.js +1 -1
  679. package/test-env/components/form/form.styles.js +23 -31
  680. package/test-env/components/form/range/range_tooltip.styles.js +11 -13
  681. package/test-env/components/form/switch/switch.js +3 -2
  682. package/test-env/components/form/switch/switch.styles.js +16 -19
  683. package/test-env/components/header/header.styles.js +7 -8
  684. package/test-env/components/icon/icon.styles.js +9 -8
  685. package/test-env/components/icon/named_colors.js +1 -1
  686. package/test-env/components/image/image.styles.js +2 -2
  687. package/test-env/components/image/image_button.styles.js +3 -3
  688. package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
  689. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
  690. package/test-env/components/link/link.styles.js +6 -6
  691. package/test-env/components/list_group/list_group_item.styles.js +8 -10
  692. package/test-env/components/loading/loading_chart.styles.js +13 -5
  693. package/test-env/components/loading/loading_spinner.styles.js +2 -2
  694. package/test-env/components/mark/mark.styles.js +2 -9
  695. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  696. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  697. package/test-env/components/modal/modal.styles.js +3 -3
  698. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
  699. package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
  700. package/test-env/components/pagination/pagination.styles.js +2 -2
  701. package/test-env/components/panel/panel.js +1 -1
  702. package/test-env/components/panel/panel.styles.js +4 -3
  703. package/test-env/components/panel/split_panel/split_panel.js +1 -1
  704. package/test-env/components/popover/popover.js +1 -1
  705. package/test-env/components/popover/popover_arrow/_popover_arrow.js +8 -3
  706. package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +16 -15
  707. package/test-env/components/popover/popover_footer.styles.js +1 -1
  708. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +10 -9
  709. package/test-env/components/progress/progress.js +1 -1
  710. package/test-env/components/progress/progress.styles.js +29 -27
  711. package/test-env/components/provider/provider.js +2 -2
  712. package/test-env/components/resizable_container/resizable_collapse_button.styles.js +2 -2
  713. package/test-env/components/resizable_container/resizable_panel.js +1 -1
  714. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
  715. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
  716. package/test-env/components/side_nav/side_nav_item.styles.js +6 -7
  717. package/test-env/components/skeleton/utils.js +4 -6
  718. package/test-env/components/stat/stat.styles.js +5 -5
  719. package/test-env/components/steps/step_number.styles.js +1 -1
  720. package/test-env/components/table/table_cells_shared.styles.js +3 -8
  721. package/test-env/components/table/table_row.styles.js +8 -10
  722. package/test-env/components/tabs/tab.styles.js +2 -2
  723. package/test-env/components/text/text.styles.js +1 -1
  724. package/test-env/components/text/text_color.js +1 -1
  725. package/test-env/components/text/text_color.styles.js +6 -5
  726. package/test-env/components/text_diff/text_diff.styles.js +1 -1
  727. package/test-env/components/toast/toast.styles.js +2 -2
  728. package/test-env/components/token/token.js +13 -4
  729. package/test-env/components/token/token.styles.js +14 -5
  730. package/test-env/components/token/token_map.js +244 -2
  731. package/test-env/components/tool_tip/tool_tip.styles.js +12 -24
  732. package/test-env/components/tour/_tour_footer.styles.js +2 -4
  733. package/test-env/components/tour/tour.styles.js +8 -12
  734. package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
  735. package/test-env/global_styling/functions/math.js +7 -59
  736. package/test-env/global_styling/functions/size.js +7 -27
  737. package/test-env/global_styling/mixins/_button.js +165 -0
  738. package/test-env/global_styling/mixins/_color.js +38 -30
  739. package/test-env/global_styling/mixins/_shadow.js +84 -0
  740. package/test-env/global_styling/mixins/index.js +22 -0
  741. package/test-env/global_styling/reset/global_styles.js +2 -2
  742. package/test-env/global_styling/variables/animations.js +25 -31
  743. package/test-env/global_styling/variables/breakpoint.js +7 -16
  744. package/test-env/global_styling/variables/levels.js +7 -26
  745. package/test-env/global_styling/variables/shadow.js +13 -20
  746. package/test-env/global_styling/variables/size.js +7 -10
  747. package/test-env/global_styling/variables/typography.js +19 -41
  748. package/test-env/services/breakpoint/current_breakpoint_hook.js +3 -3
  749. package/test-env/services/color/eui_palettes.js +148 -54
  750. package/test-env/services/color/eui_palettes_hooks.js +76 -0
  751. package/test-env/services/color/index.js +20 -0
  752. package/test-env/services/color/vis_color_store.js +18 -0
  753. package/test-env/services/index.js +19 -0
  754. package/test-env/services/popover/index.js +8 -1
  755. package/test-env/services/popover/popover_arrow.styles.js +37 -0
  756. package/test-env/services/popover/popover_positioning.js +6 -17
  757. package/test-env/services/theme/context.js +3 -3
  758. package/test-env/services/theme/provider.js +15 -2
  759. package/test-env/services/theme/types.js +13 -14
  760. package/test-env/services/theme/utils.js +54 -296
  761. package/test-env/themes/amsterdam/global_styling/functions/shadows.js +7 -19
  762. package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
  763. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
  764. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +3 -3
  765. package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
  766. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  767. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +616 -24
  768. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +139 -0
  769. package/test-env/themes/amsterdam/global_styling/variables/_components.js +616 -0
  770. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +158 -0
  771. package/test-env/themes/amsterdam/theme.js +7 -1
  772. package/test-env/themes/index.js +4 -11
  773. package/test-env/themes/themes.js +1 -23
  774. package/es/global_styling/variables/_colors_vis.js +0 -61
  775. package/lib/global_styling/variables/_colors_vis.js +0 -67
  776. package/optimize/es/global_styling/variables/_colors_vis.js +0 -61
  777. package/optimize/lib/global_styling/variables/_colors_vis.js +0 -67
  778. package/test-env/global_styling/variables/_colors_vis.js +0 -67
  779. /package/src/{global_styling → themes/amsterdam/global_styling}/variables/_colors_vis.scss +0 -0
@@ -0,0 +1,611 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ /*
6
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
7
+ * or more contributor license agreements. Licensed under the Elastic License
8
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
9
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
10
+ * Side Public License, v 1.
11
+ */
12
+
13
+ import { computed } from '../../../../services/theme/utils';
14
+ import { shade, tint, transparentize } from '../../../../services/color/manipulation';
15
+ import { makeHighContrastColor } from '../../../../services/color/contrast';
16
+ import { buttons } from './_buttons';
17
+ import { forms } from './_forms';
18
+ import { colorVis } from './_colors_vis';
19
+ var component_colors = {
20
+ badgeBackground: computed(function (_ref) {
21
+ var _ref2 = _slicedToArray(_ref, 1),
22
+ lightShade = _ref2[0];
23
+ return lightShade;
24
+ }, ['colors.lightShade']),
25
+ badgeBackgroundSubdued: computed(function (_ref3) {
26
+ var _ref4 = _slicedToArray(_ref3, 1),
27
+ lightShade = _ref4[0];
28
+ return tint(lightShade, 0.3);
29
+ }, ['colors.lightShade']),
30
+ badgeBorderColorHollow: computed(function (_ref5) {
31
+ var _ref6 = _slicedToArray(_ref5, 1),
32
+ color = _ref6[0];
33
+ return color;
34
+ }, ['border.color']),
35
+ badgeIconButtonBackgroundHover: computed(function (_ref7) {
36
+ var _ref8 = _slicedToArray(_ref7, 1),
37
+ ghost = _ref8[0];
38
+ return transparentize(ghost, 0.8);
39
+ }, ['colors.ghost']),
40
+ breadcrumbsApplicationBackground: computed(function (_ref9) {
41
+ var _ref10 = _slicedToArray(_ref9, 1),
42
+ darkestShade = _ref10[0];
43
+ return tint(darkestShade, 0.85);
44
+ }, ['colors.darkestShade']),
45
+ breadcrumbsApplicationColor: computed(function (_ref11) {
46
+ var _ref12 = _slicedToArray(_ref11, 1),
47
+ darkestShade = _ref12[0];
48
+ return tint(darkestShade, 0.2);
49
+ }, ['colors.darkestShade']),
50
+ buttonGroupBorderColor: computed(function (_ref13) {
51
+ var _ref14 = _slicedToArray(_ref13, 1),
52
+ fullShade = _ref14[0];
53
+ return transparentize(fullShade, 0.1);
54
+ }, ['colors.fullShade']),
55
+ buttonGroupBorderColorSelected: computed(function (_ref15) {
56
+ var _ref16 = _slicedToArray(_ref15, 1),
57
+ emptyShade = _ref16[0];
58
+ return transparentize(emptyShade, 0.2);
59
+ }, ['colors.emptyShade']),
60
+ buttonGroupFocusColor: computed(function (_ref17) {
61
+ var _ref18 = _slicedToArray(_ref17, 1),
62
+ fullShade = _ref18[0];
63
+ return fullShade;
64
+ }, ['colors.fullShade']),
65
+ bottomBarBackground: computed(function (_ref19) {
66
+ var _ref20 = _slicedToArray(_ref19, 1),
67
+ lightestShade = _ref20[0];
68
+ return shade(lightestShade, 0.5);
69
+ }, ['colors.lightestShade']),
70
+ codeBackground: computed(function (_ref21) {
71
+ var _ref22 = _slicedToArray(_ref21, 1),
72
+ lightestShade = _ref22[0];
73
+ return lightestShade;
74
+ }, ['colors.lightestShade']),
75
+ codeBackgroundSelected: 'inherit',
76
+ codeColor: computed(function (_ref23) {
77
+ var _ref24 = _slicedToArray(_ref23, 2),
78
+ lightestShade = _ref24[0],
79
+ text = _ref24[1];
80
+ return makeHighContrastColor(text)(lightestShade);
81
+ }, ['colors.lightestShade', 'colors.text']),
82
+ codeInlineColor: computed(function (_ref25) {
83
+ var _ref26 = _slicedToArray(_ref25, 1),
84
+ lightestShade = _ref26[0];
85
+ return makeHighContrastColor(colorVis.euiColorVis3)(lightestShade);
86
+ }, ['colors.lightestShade']),
87
+ codeCommentColor: computed(function (_ref27) {
88
+ var _ref28 = _slicedToArray(_ref27, 2),
89
+ lightestShade = _ref28[0],
90
+ subduedText = _ref28[1];
91
+ return makeHighContrastColor(subduedText)(lightestShade);
92
+ }, ['colors.lightestShade', 'colors.subduedText']),
93
+ codeSelectorColor: 'inherit',
94
+ codeStringColor: computed(function (_ref29) {
95
+ var _ref30 = _slicedToArray(_ref29, 1),
96
+ lightestShade = _ref30[0];
97
+ return makeHighContrastColor(colorVis.euiColorVis2)(lightestShade);
98
+ }, ['colors.lightestShade']),
99
+ codeTagColor: computed(function (_ref31) {
100
+ var _ref32 = _slicedToArray(_ref31, 1),
101
+ lightestShade = _ref32[0];
102
+ return makeHighContrastColor(colorVis.euiColorVis1)(lightestShade);
103
+ }, ['colors.lightestShade']),
104
+ codeNameColor: computed(function (_ref33) {
105
+ var _ref34 = _slicedToArray(_ref33, 1),
106
+ lightestShade = _ref34[0];
107
+ return makeHighContrastColor(colorVis.euiColorVis1)(lightestShade);
108
+ }, ['colors.lightestShade']),
109
+ codeNumberColor: computed(function (_ref35) {
110
+ var _ref36 = _slicedToArray(_ref35, 1),
111
+ lightestShade = _ref36[0];
112
+ return makeHighContrastColor(colorVis.euiColorVis0)(lightestShade);
113
+ }, ['colors.lightestShade']),
114
+ codeInlineCodeKeywordColor: computed(function (_ref37) {
115
+ var _ref38 = _slicedToArray(_ref37, 1),
116
+ lightestShade = _ref38[0];
117
+ return makeHighContrastColor(colorVis.euiColorVis6)(lightestShade);
118
+ }, ['colors.lightestShade']),
119
+ codeKeywordColor: computed(function (_ref39) {
120
+ var _ref40 = _slicedToArray(_ref39, 1),
121
+ lightestShade = _ref40[0];
122
+ return makeHighContrastColor(colorVis.euiColorVis3)(lightestShade);
123
+ }, ['colors.lightestShade']),
124
+ codeFunctionTitleColor: 'inherit',
125
+ codeTypeColor: computed(function (_ref41) {
126
+ var _ref42 = _slicedToArray(_ref41, 1),
127
+ lightestShade = _ref42[0];
128
+ return makeHighContrastColor(colorVis.euiColorVis1)(lightestShade);
129
+ }, ['colors.lightestShade']),
130
+ codeAttributeColor: 'inherit',
131
+ codeSymbolColor: computed(function (_ref43) {
132
+ var _ref44 = _slicedToArray(_ref43, 1),
133
+ lightestShade = _ref44[0];
134
+ return makeHighContrastColor(colorVis.euiColorVis9)(lightestShade);
135
+ }, ['colors.lightestShade']),
136
+ codeParamsColor: 'inherit',
137
+ codeMetaColor: computed(function (_ref45) {
138
+ var _ref46 = _slicedToArray(_ref45, 2),
139
+ lightestShade = _ref46[0],
140
+ subduedText = _ref46[1];
141
+ return makeHighContrastColor(subduedText)(lightestShade);
142
+ }, ['colors.lightestShade', 'colors.subduedText']),
143
+ codeTitleColor: computed(function (_ref47) {
144
+ var _ref48 = _slicedToArray(_ref47, 1),
145
+ lightestShade = _ref48[0];
146
+ return makeHighContrastColor(colorVis.euiColorVis7)(lightestShade);
147
+ }, ['colors.lightestShade']),
148
+ codeSectionColor: computed(function (_ref49) {
149
+ var _ref50 = _slicedToArray(_ref49, 1),
150
+ lightestShade = _ref50[0];
151
+ return makeHighContrastColor(colorVis.euiColorVis9)(lightestShade);
152
+ }, ['colors.lightestShade']),
153
+ codeAdditionColor: computed(function (_ref51) {
154
+ var _ref52 = _slicedToArray(_ref51, 1),
155
+ lightestShade = _ref52[0];
156
+ return makeHighContrastColor(colorVis.euiColorVis0)(lightestShade);
157
+ }, ['colors.lightestShade']),
158
+ codeDeletionColor: computed(function (_ref53) {
159
+ var _ref54 = _slicedToArray(_ref53, 2),
160
+ lightestShade = _ref54[0],
161
+ danger = _ref54[1];
162
+ return makeHighContrastColor(danger)(lightestShade);
163
+ }, ['colors.lightestShade', 'colors.danger']),
164
+ codeSelectorClassColor: 'inherit',
165
+ codeSelectorIdColor: 'inherit',
166
+ collapsibleNavGroupBackground: computed(function (_ref55) {
167
+ var _ref56 = _slicedToArray(_ref55, 1),
168
+ body = _ref56[0];
169
+ return body;
170
+ }, ['colors.body']),
171
+ collapsibleNavGroupBackgroundDark: computed(function (_ref57) {
172
+ var _ref58 = _slicedToArray(_ref57, 1),
173
+ darkestShade = _ref58[0];
174
+ return shade(darkestShade, 0.2);
175
+ }, ['colors.darkestShade']),
176
+ dataGridBorderColor: computed(function (_ref59) {
177
+ var _ref60 = _slicedToArray(_ref59, 1),
178
+ color = _ref60[0];
179
+ return color;
180
+ }, ['border.color']),
181
+ dataGridVerticalLineBorderColor: computed(function (_ref61) {
182
+ var _ref62 = _slicedToArray(_ref61, 1),
183
+ color = _ref62[0];
184
+ return tint(color, 0.3);
185
+ }, ['border.color']),
186
+ dataGridRowBackgroundStriped: computed(function (_ref63) {
187
+ var _ref64 = _slicedToArray(_ref63, 1),
188
+ lightestShade = _ref64[0];
189
+ return lightestShade;
190
+ }, ['colors.lightestShade']),
191
+ dataGridRowBackgroundHover: computed(function (_ref65) {
192
+ var _ref66 = _slicedToArray(_ref65, 1),
193
+ highlight = _ref66[0];
194
+ return highlight;
195
+ }, ['colors.highlight']),
196
+ dataGridRowBackgroundSelect: computed(function (_ref67) {
197
+ var _ref68 = _slicedToArray(_ref67, 1),
198
+ highlight = _ref68[0];
199
+ return highlight;
200
+ }, ['colors.highlight']),
201
+ dragDropDraggingBackground: computed(function (_ref69) {
202
+ var _ref70 = _slicedToArray(_ref69, 1),
203
+ success = _ref70[0];
204
+ return transparentize(success, 0.1);
205
+ }, ['colors.success']),
206
+ dragDropDraggingOverBackground: computed(function (_ref71) {
207
+ var _ref72 = _slicedToArray(_ref71, 1),
208
+ success = _ref72[0];
209
+ return transparentize(success, 0.25);
210
+ }, ['colors.success']),
211
+ filterSelectItemBackgroundFocusDisabled: computed(function (_ref73) {
212
+ var _ref74 = _slicedToArray(_ref73, 1),
213
+ disabled = _ref74[0];
214
+ return transparentize(disabled, 0.1);
215
+ }, ['colors.disabled']),
216
+ flyoutFooterBackground: computed(function (_ref75) {
217
+ var _ref76 = _slicedToArray(_ref75, 1),
218
+ lightestShade = _ref76[0];
219
+ return lightestShade;
220
+ }, ['colors.lightestShade']),
221
+ flyoutCloseButtonInsideBackground: computed(function (_ref77) {
222
+ var _ref78 = _slicedToArray(_ref77, 1),
223
+ emptyShade = _ref78[0];
224
+ return transparentize(emptyShade, 0.9);
225
+ }, ['colors.emptyShade']),
226
+ headerBackground: computed(function (_ref79) {
227
+ var _ref80 = _slicedToArray(_ref79, 1),
228
+ emptyShade = _ref80[0];
229
+ return emptyShade;
230
+ }, ['colors.emptyShade']),
231
+ headerDarkBackground: computed(function (_ref81) {
232
+ var _ref82 = _slicedToArray(_ref81, 1),
233
+ darkestShade = _ref82[0];
234
+ return shade(darkestShade, 0.28);
235
+ }, ['colors.darkestShade']),
236
+ headerDarkSearchBorderColor: computed(function (_ref83) {
237
+ var _ref84 = _slicedToArray(_ref83, 1),
238
+ ghost = _ref84[0];
239
+ return transparentize(ghost, 0.3);
240
+ }, ['colors.ghost']),
241
+ headerDarkSectionItemBackgroundFocus: computed(function (_ref85) {
242
+ var _ref86 = _slicedToArray(_ref85, 1),
243
+ primary = _ref86[0];
244
+ return shade(primary, 0.5);
245
+ }, ['colors.primary']),
246
+ keyPadMenuItemBackgroundDisabledSelect: computed(function (_ref87) {
247
+ var _ref88 = _slicedToArray(_ref87, 1),
248
+ disabled = _ref88[0];
249
+ return transparentize(disabled, 0.1);
250
+ }, ['colors.disabled']),
251
+ listGroupItemBackgroundPrimaryActive: computed(function (_ref89) {
252
+ var _ref90 = _slicedToArray(_ref89, 1),
253
+ lightShade = _ref90[0];
254
+ return transparentize(lightShade, 0.2);
255
+ }, ['colors.lightShade']),
256
+ listGroupItemBackgroundSubduedActive: computed(function (_ref91) {
257
+ var _ref92 = _slicedToArray(_ref91, 1),
258
+ primary = _ref92[0];
259
+ return transparentize(primary, 0.1);
260
+ }, ['colors.primary']),
261
+ listGroupItemBackgroundHover: computed(function (_ref93) {
262
+ var _ref94 = _slicedToArray(_ref93, 1),
263
+ lightShade = _ref94[0];
264
+ return transparentize(lightShade, 0.2);
265
+ }, ['colors.lightShade']),
266
+ listGroupItemBackgroundPrimaryHover: computed(function (_ref95) {
267
+ var _ref96 = _slicedToArray(_ref95, 1),
268
+ primary = _ref96[0];
269
+ return transparentize(primary, 0.1);
270
+ }, ['colors.primary']),
271
+ loadingSpinnerBorder: computed(function (_ref97) {
272
+ var _ref98 = _slicedToArray(_ref97, 1),
273
+ lightShade = _ref98[0];
274
+ return lightShade;
275
+ }, ['colors.lightShade']),
276
+ loadingSpinnerHighlight: computed(function (_ref99) {
277
+ var _ref100 = _slicedToArray(_ref99, 1),
278
+ primary = _ref100[0];
279
+ return primary;
280
+ }, ['colors.primary']),
281
+ loadingChartMonoBackground0: computed(function (_ref101) {
282
+ var _ref102 = _slicedToArray(_ref101, 1),
283
+ lightShade = _ref102[0];
284
+ return lightShade;
285
+ }, ['colors.lightShade']),
286
+ loadingChartMonoBackground1: computed(function (_ref103) {
287
+ var _ref104 = _slicedToArray(_ref103, 1),
288
+ lightShade = _ref104[0];
289
+ return shade(lightShade, 0.04);
290
+ }, ['colors.lightShade']),
291
+ loadingChartMonoBackground2: computed(function (_ref105) {
292
+ var _ref106 = _slicedToArray(_ref105, 1),
293
+ lightShade = _ref106[0];
294
+ return shade(lightShade, 0.08);
295
+ }, ['colors.lightShade']),
296
+ loadingChartMonoBackground3: computed(function (_ref107) {
297
+ var _ref108 = _slicedToArray(_ref107, 1),
298
+ lightShade = _ref108[0];
299
+ return shade(lightShade, 0.12);
300
+ }, ['colors.lightShade']),
301
+ markBackground: computed(function (_ref109) {
302
+ var _ref110 = _slicedToArray(_ref109, 1),
303
+ primary = _ref110[0];
304
+ return transparentize(primary, 0.1);
305
+ }, ['colors.primary']),
306
+ markdownFormatTableBorderColor: computed(function (_ref111) {
307
+ var _ref112 = _slicedToArray(_ref111, 1),
308
+ fullShade = _ref112[0];
309
+ return transparentize(fullShade, 0.15);
310
+ }, ['colors.fullShade']),
311
+ popoverPanelBackground: computed(function (_ref113) {
312
+ var _ref114 = _slicedToArray(_ref113, 1),
313
+ emptyShade = _ref114[0];
314
+ return emptyShade;
315
+ }, ['colors.emptyShade']),
316
+ popoverFooterBorderColor: computed(function (_ref115) {
317
+ var _ref116 = _slicedToArray(_ref115, 1),
318
+ color = _ref116[0];
319
+ return color;
320
+ }, ['border.color']),
321
+ scrollbarTrackColor: computed(function (_ref117) {
322
+ var _ref118 = _slicedToArray(_ref117, 1),
323
+ body = _ref118[0];
324
+ return shade(body, 0.03);
325
+ }, ['colors.body']),
326
+ sideNavItemEmphasizedBackground: computed(function (_ref119) {
327
+ var _ref120 = _slicedToArray(_ref119, 1),
328
+ lightShade = _ref120[0];
329
+ return transparentize(lightShade, 0.3);
330
+ }, ['colors.lightShade']),
331
+ selectableListItemBorderColor: computed(function (_ref121) {
332
+ var _ref122 = _slicedToArray(_ref121, 1),
333
+ color = _ref122[0];
334
+ return transparentize(color, 0.4);
335
+ }, ['border.color']),
336
+ superDatePickerBackgroundSuccees: computed(function (_ref123) {
337
+ var _ref124 = _slicedToArray(_ref123, 1),
338
+ success = _ref124[0];
339
+ return tint(success, 0.9);
340
+ }, ['colors.success']),
341
+ switchBackgroundOn: computed(function (_ref125) {
342
+ var _ref126 = _slicedToArray(_ref125, 1),
343
+ primary = _ref126[0];
344
+ return primary;
345
+ }, ['colors.primary']),
346
+ switchBackgroundOff: computed(function (_ref127) {
347
+ var _ref128 = _slicedToArray(_ref127, 1),
348
+ lightestShade = _ref128[0];
349
+ return shade(lightestShade, 0.4);
350
+ }, ['colors.lightestShade']),
351
+ switchUncompressedBackgroundDisabled: computed(function (_ref129) {
352
+ var _ref130 = _slicedToArray(_ref129, 1),
353
+ lightShade = _ref130[0];
354
+ return tint(lightShade, 0.5);
355
+ }, ['colors.lightShade']),
356
+ switchCompressedBackgroundDisabled: computed(function (_ref131) {
357
+ var _ref132 = _slicedToArray(_ref131, 1),
358
+ lightShade = _ref132[0];
359
+ return tint(lightShade, 0.25);
360
+ }, ['colors.lightShade']),
361
+ switchMiniBackgroundDisabled: computed(function (_ref133) {
362
+ var _ref134 = _slicedToArray(_ref133, 1),
363
+ lightShade = _ref134[0];
364
+ return tint(lightShade, 0);
365
+ }, ['colors.lightShade']),
366
+ switchThumbBackgroundDisabled: 'transparent',
367
+ switchThumbBorderOn: computed(function (_ref135) {
368
+ var _ref136 = _slicedToArray(_ref135, 1),
369
+ lightestShade = _ref136[0];
370
+ return shade(lightestShade, 0.4);
371
+ }, ['colors.lightestShade']),
372
+ switchThumbBorderOff: computed(function (_ref137) {
373
+ var _ref138 = _slicedToArray(_ref137, 1),
374
+ lightestShade = _ref138[0];
375
+ return shade(lightestShade, 0.4);
376
+ }, ['colors.lightestShade']),
377
+ switchIconDisabled: computed(function (_ref139) {
378
+ var _ref140 = _slicedToArray(_ref139, 1),
379
+ lightestShade = _ref140[0];
380
+ return shade(lightestShade, 0.4);
381
+ }, ['colors.lightestShade']),
382
+ tableRowBackgroundHover: computed(function (_ref141) {
383
+ var _ref142 = _slicedToArray(_ref141, 1),
384
+ lightestShade = _ref142[0];
385
+ return tint(lightestShade, 0.5);
386
+ }, ['colors.lightestShade']),
387
+ tableRowBackgroundSelected: computed(function (_ref143) {
388
+ var _ref144 = _slicedToArray(_ref143, 1),
389
+ primary = _ref144[0];
390
+ return tint(primary, 0.96);
391
+ }, ['colors.primary']),
392
+ tableRowBackgroundSelectedHover: computed(function (_ref145) {
393
+ var _ref146 = _slicedToArray(_ref145, 1),
394
+ primary = _ref146[0];
395
+ return tint(primary, 0.9);
396
+ }, ['colors.primary']),
397
+ tableRowInteractiveBackgroundHover: computed(function (_ref147) {
398
+ var _ref148 = _slicedToArray(_ref147, 1),
399
+ primary = _ref148[0];
400
+ return transparentize(primary, 0.05);
401
+ }, ['colors.primary']),
402
+ tableRowInteractiveBackgroundFocus: computed(function (_ref149) {
403
+ var _ref150 = _slicedToArray(_ref149, 1),
404
+ primary = _ref150[0];
405
+ return transparentize(primary, 0.1);
406
+ }, ['colors.primary']),
407
+ tableCellSortableIconColor: computed(function (_ref151) {
408
+ var _ref152 = _slicedToArray(_ref151, 2),
409
+ emptyShade = _ref152[0],
410
+ subduedText = _ref152[1];
411
+ var color = tint(subduedText, 0.9);
412
+ return makeHighContrastColor(
413
+ // Tint it arbitrarily high, the contrast util will take care of lowering back down to WCAG
414
+ color, 3 // 3:1 ratio from https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html
415
+ )(emptyShade);
416
+ }, ['colors.emptyShade', 'colors.subduedText']),
417
+ tooltipBackground: computed(function (_ref153) {
418
+ var _ref154 = _slicedToArray(_ref153, 1),
419
+ fullShade = _ref154[0];
420
+ return tint(fullShade, 0.25);
421
+ }, ['colors.fullShade']),
422
+ tooltipBorder: computed(function (_ref155) {
423
+ var _ref156 = _slicedToArray(_ref155, 1),
424
+ fullShade = _ref156[0];
425
+ return tint(fullShade, 0.35);
426
+ }, ['colors.fullShade']),
427
+ tooltipBorderFloating: computed(function (_ref157) {
428
+ var _ref158 = _slicedToArray(_ref157, 1),
429
+ borderBaseFloating = _ref158[0];
430
+ return borderBaseFloating;
431
+ }, ['colors.borderBaseFloating']),
432
+ tourFooterBackground: computed(function (_ref159) {
433
+ var _ref160 = _slicedToArray(_ref159, 1),
434
+ lightestShade = _ref160[0];
435
+ return tint(lightestShade, 0.5);
436
+ }, ['colors.lightestShade']),
437
+ treeViewItemBackgroundHover: computed(function (_ref161) {
438
+ var _ref162 = _slicedToArray(_ref161, 1),
439
+ text = _ref162[0];
440
+ return transparentize(text, 0.1);
441
+ }, ['colors.text'])
442
+ };
443
+ export var components = {
444
+ buttons: buttons,
445
+ forms: forms,
446
+ LIGHT: component_colors,
447
+ DARK: _objectSpread(_objectSpread({}, component_colors), {}, {
448
+ badgeBorderColorHollow: computed(function (_ref163) {
449
+ var _ref164 = _slicedToArray(_ref163, 1),
450
+ color = _ref164[0];
451
+ return tint(color, 0.15);
452
+ }, ['border.color']),
453
+ breadcrumbsApplicationBackground: computed(function (_ref165) {
454
+ var _ref166 = _slicedToArray(_ref165, 1),
455
+ darkestShade = _ref166[0];
456
+ return shade(darkestShade, 0.7);
457
+ }, ['colors.darkestShade']),
458
+ breadcrumbsApplicationColor: computed(function (_ref167) {
459
+ var _ref168 = _slicedToArray(_ref167, 1),
460
+ darkestShade = _ref168[0];
461
+ return shade(darkestShade, 0.2);
462
+ }, ['colors.darkestShade']),
463
+ collapsibleNavGroupBackground: computed(function (_ref169) {
464
+ var _ref170 = _slicedToArray(_ref169, 1),
465
+ lightestShade = _ref170[0];
466
+ return shade(lightestShade, 0.5);
467
+ }, ['colors.lightestShade']),
468
+ collapsibleNavGroupBackgroundDark: computed(function (_ref171) {
469
+ var _ref172 = _slicedToArray(_ref171, 1),
470
+ lightestShade = _ref172[0];
471
+ return shade(lightestShade, 0.5);
472
+ }, ['colors.lightestShade']),
473
+ dataGridVerticalLineBorderColor: computed(function (_ref173) {
474
+ var _ref174 = _slicedToArray(_ref173, 1),
475
+ color = _ref174[0];
476
+ return shade(color, 0.3);
477
+ }, ['border.color']),
478
+ headerDarkBackground: computed(function (_ref175) {
479
+ var _ref176 = _slicedToArray(_ref175, 1),
480
+ lightestShade = _ref176[0];
481
+ return shade(lightestShade, 0.5);
482
+ }, ['colors.lightestShade']),
483
+ keyPadMenuItemBackgroundDisabledSelect: computed(function (_ref177) {
484
+ var _ref178 = _slicedToArray(_ref177, 1),
485
+ disabled = _ref178[0];
486
+ return transparentize(disabled, 0.2);
487
+ }, ['colors.disabled']),
488
+ listGroupItemBackgroundSubduedActive: computed(function (_ref179) {
489
+ var _ref180 = _slicedToArray(_ref179, 1),
490
+ lightShade = _ref180[0];
491
+ return transparentize(lightShade, 0.4);
492
+ }, ['colors.lightShade']),
493
+ loadingChartMonoBackground0: computed(function (_ref181) {
494
+ var _ref182 = _slicedToArray(_ref181, 1),
495
+ lightShade = _ref182[0];
496
+ return lightShade;
497
+ }, ['colors.lightShade']),
498
+ loadingChartMonoBackground1: computed(function (_ref183) {
499
+ var _ref184 = _slicedToArray(_ref183, 1),
500
+ lightShade = _ref184[0];
501
+ return tint(lightShade, 0.04);
502
+ }, ['colors.lightShade']),
503
+ loadingChartMonoBackground2: computed(function (_ref185) {
504
+ var _ref186 = _slicedToArray(_ref185, 1),
505
+ lightShade = _ref186[0];
506
+ return tint(lightShade, 0.08);
507
+ }, ['colors.lightShade']),
508
+ loadingChartMonoBackground3: computed(function (_ref187) {
509
+ var _ref188 = _slicedToArray(_ref187, 1),
510
+ lightShade = _ref188[0];
511
+ return tint(lightShade, 0.12);
512
+ }, ['colors.lightShade']),
513
+ markBackground: computed(function (_ref189) {
514
+ var _ref190 = _slicedToArray(_ref189, 1),
515
+ primary = _ref190[0];
516
+ return transparentize(primary, 0.3);
517
+ }, ['colors.primary']),
518
+ popoverPanelBackground: computed(function (_ref191) {
519
+ var _ref192 = _slicedToArray(_ref191, 1),
520
+ emptyShade = _ref192[0];
521
+ return tint(emptyShade, 0.025);
522
+ }, ['colors.emptyShade']),
523
+ scrollbarTrackColor: computed(function (_ref193) {
524
+ var _ref194 = _slicedToArray(_ref193, 1),
525
+ body = _ref194[0];
526
+ return tint(body, 0.07);
527
+ }, ['colors.body']),
528
+ superDatePickerBackgroundSuccees: computed(function (_ref195) {
529
+ var _ref196 = _slicedToArray(_ref195, 1),
530
+ success = _ref196[0];
531
+ return shade(success, 0.7);
532
+ }, ['colors.success']),
533
+ switchBackgroundOff: computed(function (_ref197) {
534
+ var _ref198 = _slicedToArray(_ref197, 1),
535
+ lightestShade = _ref198[0];
536
+ return tint(lightestShade, 0.31);
537
+ }, ['colors.lightestShade']),
538
+ switchUncompressedBackgroundDisabled: computed(function (_ref199) {
539
+ var _ref200 = _slicedToArray(_ref199, 1),
540
+ lightShade = _ref200[0];
541
+ return lightShade;
542
+ }, ['colors.lightShade']),
543
+ switchCompressedBackgroundDisabled: computed(function (_ref201) {
544
+ var _ref202 = _slicedToArray(_ref201, 1),
545
+ lightShade = _ref202[0];
546
+ return lightShade;
547
+ }, ['colors.lightShade']),
548
+ switchMiniBackgroundDisabled: computed(function (_ref203) {
549
+ var _ref204 = _slicedToArray(_ref203, 1),
550
+ lightShade = _ref204[0];
551
+ return lightShade;
552
+ }, ['colors.lightShade']),
553
+ switchThumbBorderOn: computed(function (_ref205) {
554
+ var _ref206 = _slicedToArray(_ref205, 1),
555
+ lightestShade = _ref206[0];
556
+ return tint(lightestShade, 0.31);
557
+ }, ['colors.lightestShade']),
558
+ switchThumbBorderOff: computed(function (_ref207) {
559
+ var _ref208 = _slicedToArray(_ref207, 1),
560
+ lightestShade = _ref208[0];
561
+ return tint(lightestShade, 0.31);
562
+ }, ['colors.lightestShade']),
563
+ switchIconDisabled: computed(function (_ref209) {
564
+ var _ref210 = _slicedToArray(_ref209, 1),
565
+ lightestShade = _ref210[0];
566
+ return tint(lightestShade, 0.31);
567
+ }, ['colors.lightestShade']),
568
+ tableRowBackgroundHover: computed(function (_ref211) {
569
+ var _ref212 = _slicedToArray(_ref211, 1),
570
+ lightestShade = _ref212[0];
571
+ return lightestShade;
572
+ }, ['colors.lightestShade']),
573
+ tableRowBackgroundSelected: computed(function (_ref213) {
574
+ var _ref214 = _slicedToArray(_ref213, 1),
575
+ primary = _ref214[0];
576
+ return shade(primary, 0.7);
577
+ }, ['colors.primary']),
578
+ tableRowBackgroundSelectedHover: computed(function (_ref215) {
579
+ var _ref216 = _slicedToArray(_ref215, 1),
580
+ primary = _ref216[0];
581
+ return shade(primary, 0.75);
582
+ }, ['colors.primary']),
583
+ tableCellSortableIconColor: computed(function (_ref217) {
584
+ var _ref218 = _slicedToArray(_ref217, 2),
585
+ emptyShade = _ref218[0],
586
+ subduedText = _ref218[1];
587
+ var color = shade(subduedText, 0.9);
588
+ return makeHighContrastColor(color, 3)(emptyShade);
589
+ }, ['colors.emptyShade', 'colors.subduedText']),
590
+ tooltipBackground: computed(function (_ref219) {
591
+ var _ref220 = _slicedToArray(_ref219, 1),
592
+ emptyShade = _ref220[0];
593
+ return shade(emptyShade, 1);
594
+ }, ['colors.emptyShade']),
595
+ tooltipBorder: computed(function (_ref221) {
596
+ var _ref222 = _slicedToArray(_ref221, 1),
597
+ fullShade = _ref222[0];
598
+ return shade(fullShade, 0.8);
599
+ }, ['colors.fullShade']),
600
+ tourFooterBackground: computed(function (_ref223) {
601
+ var _ref224 = _slicedToArray(_ref223, 1),
602
+ lightestShade = _ref224[0];
603
+ return shade(lightestShade, 0.45);
604
+ }, ['colors.lightestShade']),
605
+ treeViewItemBackgroundHover: computed(function (_ref225) {
606
+ var _ref226 = _slicedToArray(_ref225, 1),
607
+ text = _ref226[0];
608
+ return transparentize(text, 0.2);
609
+ }, ['colors.text'])
610
+ })
611
+ };