@elastic/eui 111.0.0 → 111.1.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 (345) hide show
  1. package/es/components/avatar/avatar.js +1 -1
  2. package/es/components/badge/badge.js +1 -1
  3. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  4. package/es/components/basic_table/basic_table.js +36 -55
  5. package/es/components/basic_table/in_memory_table.js +6 -6
  6. package/es/components/beacon/beacon.styles.js +1 -1
  7. package/es/components/button/button_display/_button_display_content.js +1 -1
  8. package/es/components/button/button_empty/button_empty.js +1 -1
  9. package/es/components/button/button_group/button_group.js +1 -1
  10. package/es/components/button/button_group/button_group_button.js +1 -1
  11. package/es/components/button/button_icon/button_icon.js +1 -1
  12. package/es/components/button/index.js +2 -1
  13. package/es/components/button/split_button/index.js +10 -0
  14. package/es/components/button/split_button/split_button.js +120 -0
  15. package/es/components/button/split_button/split_button.styles.js +51 -0
  16. package/es/components/button/split_button/split_button_actions.js +115 -0
  17. package/es/components/button/split_button/split_button_context.js +14 -0
  18. package/es/components/call_out/call_out.js +1 -1
  19. package/es/components/card/card.js +1 -1
  20. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  21. package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  22. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  23. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  24. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  25. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  26. package/es/components/comment_list/comment.js +2 -2
  27. package/es/components/comment_list/comment_event.js +1 -1
  28. package/es/components/comment_list/comment_list.js +2 -2
  29. package/es/components/comment_list/comment_timeline.js +1 -1
  30. package/es/components/context_menu/context_menu_item.js +1 -1
  31. package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
  32. package/es/components/datagrid/body/data_grid_body.js +7 -7
  33. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  34. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  35. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  36. package/es/components/datagrid/controls/column_sorting.js +7 -7
  37. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  38. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  39. package/es/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
  40. package/es/components/datagrid/utils/in_memory.js +6 -6
  41. package/es/components/date_picker/date_picker.js +2 -2
  42. package/es/components/date_picker/date_picker_range.js +1 -1
  43. package/es/components/empty_prompt/empty_prompt.js +2 -2
  44. package/es/components/flex/flex_group.js +1 -1
  45. package/es/components/flyout/flyout.styles.js +1 -0
  46. package/es/components/form/field_number/field_number.js +2 -2
  47. package/es/components/form/field_text/field_text.js +2 -2
  48. package/es/components/form/form_control_button/form_control_button.js +1 -1
  49. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  50. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  51. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  52. package/es/components/form/text_area/text_area.js +2 -2
  53. package/es/components/header/header_links/header_link.js +1 -1
  54. package/es/components/header/header_links/header_links.js +1 -1
  55. package/es/components/header/header_logo/header_logo.js +1 -1
  56. package/es/components/header/header_section/header_section_item_button.js +1 -1
  57. package/es/components/horizontal_rule/horizontal_rule.js +1 -1
  58. package/es/components/icon/assets/agentBuilderRobot.js +37 -0
  59. package/es/components/icon/assets/cross_project_search.js +35 -0
  60. package/es/components/icon/assets/dashed_circle.js +35 -0
  61. package/es/components/icon/assets/product_robot.js +37 -0
  62. package/es/components/icon/icon.js +1 -1
  63. package/es/components/icon/icon_map.js +3 -0
  64. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  65. package/es/components/link/external_link_icon.js +6 -3
  66. package/es/components/list_group/list_group.js +2 -2
  67. package/es/components/list_group/list_group_item.js +2 -2
  68. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  69. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  70. package/es/components/loading/loading_logo.js +1 -1
  71. package/es/components/markdown_editor/markdown_editor.js +1 -1
  72. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  73. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  74. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  75. package/es/components/page/page_header/page_header_content.js +2 -2
  76. package/es/components/pagination/pagination_button.js +1 -1
  77. package/es/components/search_bar/search_bar.js +1 -1
  78. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  79. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  80. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  81. package/es/components/spacer/spacer.js +1 -1
  82. package/es/components/table/table_header_cell.js +1 -1
  83. package/es/components/timeline/timeline_item_icon.js +1 -1
  84. package/es/components/toast/global_toast_list.js +1 -1
  85. package/es/components/toast/toast.js +1 -1
  86. package/es/components/tool_tip/icon_tip.js +1 -1
  87. package/es/components/tour/tour_step_indicator.js +8 -3
  88. package/es/global_styling/mixins/_button.js +28 -9
  89. package/es/global_styling/mixins/_container_query.js +106 -0
  90. package/es/global_styling/mixins/index.js +1 -0
  91. package/es/services/container_query/container_query_hook.js +64 -0
  92. package/es/services/container_query/index.js +9 -0
  93. package/es/services/container_query/match_container.js +242 -0
  94. package/eui.d.ts +414 -61
  95. package/i18ntokens.json +1053 -1053
  96. package/lib/components/avatar/avatar.js +1 -1
  97. package/lib/components/badge/badge.js +1 -1
  98. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  99. package/lib/components/basic_table/basic_table.js +36 -55
  100. package/lib/components/basic_table/in_memory_table.js +6 -6
  101. package/lib/components/beacon/beacon.styles.js +1 -1
  102. package/lib/components/button/button_display/_button_display_content.js +1 -1
  103. package/lib/components/button/button_empty/button_empty.js +1 -1
  104. package/lib/components/button/button_group/button_group.js +1 -1
  105. package/lib/components/button/button_group/button_group_button.js +1 -1
  106. package/lib/components/button/button_icon/button_icon.js +1 -1
  107. package/lib/components/button/index.js +8 -1
  108. package/lib/components/button/split_button/index.js +25 -0
  109. package/lib/components/button/split_button/split_button.js +129 -0
  110. package/lib/components/button/split_button/split_button.styles.js +55 -0
  111. package/lib/components/button/split_button/split_button_actions.js +123 -0
  112. package/lib/components/button/split_button/split_button_context.js +20 -0
  113. package/lib/components/call_out/call_out.js +1 -1
  114. package/lib/components/card/card.js +1 -1
  115. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  116. package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  117. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  118. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  119. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  120. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  121. package/lib/components/comment_list/comment.js +2 -2
  122. package/lib/components/comment_list/comment_event.js +1 -1
  123. package/lib/components/comment_list/comment_list.js +2 -2
  124. package/lib/components/comment_list/comment_timeline.js +1 -1
  125. package/lib/components/context_menu/context_menu_item.js +1 -1
  126. package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
  127. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  128. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  129. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  130. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  131. package/lib/components/datagrid/controls/column_sorting.js +7 -7
  132. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  133. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  134. package/lib/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
  135. package/lib/components/datagrid/utils/in_memory.js +6 -6
  136. package/lib/components/date_picker/date_picker.js +2 -2
  137. package/lib/components/date_picker/date_picker_range.js +1 -1
  138. package/lib/components/empty_prompt/empty_prompt.js +2 -2
  139. package/lib/components/flex/flex_group.js +1 -1
  140. package/lib/components/flyout/flyout.styles.js +2 -1
  141. package/lib/components/form/field_number/field_number.js +2 -2
  142. package/lib/components/form/field_text/field_text.js +2 -2
  143. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  144. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  145. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  146. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  147. package/lib/components/form/text_area/text_area.js +2 -2
  148. package/lib/components/header/header_links/header_link.js +1 -1
  149. package/lib/components/header/header_links/header_links.js +1 -1
  150. package/lib/components/header/header_logo/header_logo.js +1 -1
  151. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  152. package/lib/components/horizontal_rule/horizontal_rule.js +1 -1
  153. package/lib/components/icon/assets/agentBuilderRobot.js +44 -0
  154. package/lib/components/icon/assets/cross_project_search.js +42 -0
  155. package/lib/components/icon/assets/dashed_circle.js +42 -0
  156. package/lib/components/icon/assets/product_robot.js +44 -0
  157. package/lib/components/icon/icon.js +1 -1
  158. package/lib/components/icon/icon_map.js +3 -0
  159. package/lib/components/icon/svgs/cross_project_search.svg +3 -0
  160. package/lib/components/icon/svgs/dashed_circle.svg +5 -0
  161. package/lib/components/icon/svgs/product_robot.svg +4 -0
  162. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  163. package/lib/components/link/external_link_icon.js +6 -3
  164. package/lib/components/list_group/list_group.js +2 -2
  165. package/lib/components/list_group/list_group_item.js +2 -2
  166. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  167. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  168. package/lib/components/loading/loading_logo.js +1 -1
  169. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  170. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  171. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  172. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  173. package/lib/components/page/page_header/page_header_content.js +2 -2
  174. package/lib/components/pagination/pagination_button.js +1 -1
  175. package/lib/components/search_bar/search_bar.js +1 -1
  176. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  177. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  178. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  179. package/lib/components/spacer/spacer.js +1 -1
  180. package/lib/components/table/table_header_cell.js +1 -1
  181. package/lib/components/timeline/timeline_item_icon.js +1 -1
  182. package/lib/components/toast/global_toast_list.js +1 -1
  183. package/lib/components/toast/toast.js +1 -1
  184. package/lib/components/tool_tip/icon_tip.js +1 -1
  185. package/lib/components/tour/tour_step_indicator.js +8 -3
  186. package/lib/global_styling/mixins/_button.js +29 -10
  187. package/lib/global_styling/mixins/_container_query.js +112 -0
  188. package/lib/global_styling/mixins/index.js +11 -0
  189. package/lib/services/container_query/container_query_hook.js +67 -0
  190. package/lib/services/container_query/index.js +16 -0
  191. package/lib/services/container_query/match_container.js +243 -0
  192. package/optimize/es/components/basic_table/basic_table.js +30 -49
  193. package/optimize/es/components/beacon/beacon.styles.js +1 -1
  194. package/optimize/es/components/button/index.js +2 -1
  195. package/optimize/es/components/button/split_button/index.js +10 -0
  196. package/optimize/es/components/button/split_button/split_button.js +98 -0
  197. package/optimize/es/components/button/split_button/split_button.styles.js +51 -0
  198. package/optimize/es/components/button/split_button/split_button_actions.js +89 -0
  199. package/optimize/es/components/button/split_button/split_button_context.js +14 -0
  200. package/optimize/es/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
  201. package/optimize/es/components/empty_prompt/empty_prompt.js +1 -1
  202. package/optimize/es/components/flex/flex_group.js +1 -1
  203. package/optimize/es/components/flyout/flyout.styles.js +1 -0
  204. package/optimize/es/components/horizontal_rule/horizontal_rule.js +1 -1
  205. package/optimize/es/components/icon/assets/agentBuilderRobot.js +36 -0
  206. package/optimize/es/components/icon/assets/cross_project_search.js +34 -0
  207. package/optimize/es/components/icon/assets/dashed_circle.js +34 -0
  208. package/optimize/es/components/icon/assets/product_robot.js +36 -0
  209. package/optimize/es/components/icon/icon_map.js +3 -0
  210. package/optimize/es/components/link/external_link_icon.js +6 -3
  211. package/optimize/es/components/page/page_header/page_header_content.js +1 -1
  212. package/optimize/es/components/search_bar/search_bar.js +1 -1
  213. package/optimize/es/components/spacer/spacer.js +1 -1
  214. package/optimize/es/components/tour/tour_step_indicator.js +8 -3
  215. package/optimize/es/global_styling/mixins/_button.js +28 -9
  216. package/optimize/es/global_styling/mixins/_container_query.js +106 -0
  217. package/optimize/es/global_styling/mixins/index.js +1 -0
  218. package/optimize/es/services/container_query/container_query_hook.js +59 -0
  219. package/optimize/es/services/container_query/index.js +9 -0
  220. package/optimize/es/services/container_query/match_container.js +229 -0
  221. package/optimize/lib/components/basic_table/basic_table.js +30 -49
  222. package/optimize/lib/components/beacon/beacon.styles.js +1 -1
  223. package/optimize/lib/components/button/index.js +8 -1
  224. package/optimize/lib/components/button/split_button/index.js +25 -0
  225. package/optimize/lib/components/button/split_button/split_button.js +107 -0
  226. package/optimize/lib/components/button/split_button/split_button.styles.js +55 -0
  227. package/optimize/lib/components/button/split_button/split_button_actions.js +98 -0
  228. package/optimize/lib/components/button/split_button/split_button_context.js +20 -0
  229. package/optimize/lib/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
  230. package/optimize/lib/components/empty_prompt/empty_prompt.js +1 -1
  231. package/optimize/lib/components/flex/flex_group.js +1 -1
  232. package/optimize/lib/components/flyout/flyout.styles.js +2 -1
  233. package/optimize/lib/components/horizontal_rule/horizontal_rule.js +1 -1
  234. package/optimize/lib/components/icon/assets/agentBuilderRobot.js +44 -0
  235. package/optimize/lib/components/icon/assets/cross_project_search.js +42 -0
  236. package/optimize/lib/components/icon/assets/dashed_circle.js +42 -0
  237. package/optimize/lib/components/icon/assets/product_robot.js +44 -0
  238. package/optimize/lib/components/icon/icon_map.js +3 -0
  239. package/optimize/lib/components/icon/svgs/cross_project_search.svg +3 -0
  240. package/optimize/lib/components/icon/svgs/dashed_circle.svg +5 -0
  241. package/optimize/lib/components/icon/svgs/product_robot.svg +4 -0
  242. package/optimize/lib/components/link/external_link_icon.js +6 -3
  243. package/optimize/lib/components/page/page_header/page_header_content.js +1 -1
  244. package/optimize/lib/components/search_bar/search_bar.js +1 -1
  245. package/optimize/lib/components/spacer/spacer.js +1 -1
  246. package/optimize/lib/components/tour/tour_step_indicator.js +8 -3
  247. package/optimize/lib/global_styling/mixins/_button.js +29 -10
  248. package/optimize/lib/global_styling/mixins/_container_query.js +112 -0
  249. package/optimize/lib/global_styling/mixins/index.js +11 -0
  250. package/optimize/lib/services/container_query/container_query_hook.js +65 -0
  251. package/optimize/lib/services/container_query/index.js +16 -0
  252. package/optimize/lib/services/container_query/match_container.js +231 -0
  253. package/package.json +4 -4
  254. package/test-env/components/avatar/avatar.js +1 -1
  255. package/test-env/components/badge/badge.js +1 -1
  256. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  257. package/test-env/components/basic_table/basic_table.js +36 -55
  258. package/test-env/components/basic_table/in_memory_table.js +6 -6
  259. package/test-env/components/beacon/beacon.styles.js +1 -1
  260. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  261. package/test-env/components/button/button_empty/button_empty.js +1 -1
  262. package/test-env/components/button/button_group/button_group.js +1 -1
  263. package/test-env/components/button/button_group/button_group_button.js +1 -1
  264. package/test-env/components/button/button_icon/button_icon.js +1 -1
  265. package/test-env/components/button/index.js +8 -1
  266. package/test-env/components/button/split_button/index.js +25 -0
  267. package/test-env/components/button/split_button/split_button.js +123 -0
  268. package/test-env/components/button/split_button/split_button.styles.js +55 -0
  269. package/test-env/components/button/split_button/split_button_actions.js +120 -0
  270. package/test-env/components/button/split_button/split_button_context.js +20 -0
  271. package/test-env/components/call_out/call_out.js +1 -1
  272. package/test-env/components/card/card.js +1 -1
  273. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  274. package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  275. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  276. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  277. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  278. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  279. package/test-env/components/comment_list/comment.js +2 -2
  280. package/test-env/components/comment_list/comment_event.js +1 -1
  281. package/test-env/components/comment_list/comment_list.js +2 -2
  282. package/test-env/components/comment_list/comment_timeline.js +1 -1
  283. package/test-env/components/context_menu/context_menu_item.js +1 -1
  284. package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
  285. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  286. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  287. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  288. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  289. package/test-env/components/datagrid/controls/column_sorting.js +7 -7
  290. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  291. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  292. package/test-env/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
  293. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  294. package/test-env/components/date_picker/date_picker.js +2 -2
  295. package/test-env/components/date_picker/date_picker_range.js +1 -1
  296. package/test-env/components/empty_prompt/empty_prompt.js +2 -2
  297. package/test-env/components/flex/flex_group.js +1 -1
  298. package/test-env/components/flyout/flyout.styles.js +2 -1
  299. package/test-env/components/form/field_number/field_number.js +2 -2
  300. package/test-env/components/form/field_text/field_text.js +2 -2
  301. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  302. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  303. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  304. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  305. package/test-env/components/form/text_area/text_area.js +2 -2
  306. package/test-env/components/header/header_links/header_link.js +1 -1
  307. package/test-env/components/header/header_links/header_links.js +1 -1
  308. package/test-env/components/header/header_logo/header_logo.js +1 -1
  309. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  310. package/test-env/components/horizontal_rule/horizontal_rule.js +1 -1
  311. package/test-env/components/icon/assets/agentBuilderRobot.js +44 -0
  312. package/test-env/components/icon/assets/cross_project_search.js +42 -0
  313. package/test-env/components/icon/assets/dashed_circle.js +42 -0
  314. package/test-env/components/icon/assets/product_robot.js +44 -0
  315. package/test-env/components/icon/icon_map.js +3 -0
  316. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  317. package/test-env/components/link/external_link_icon.js +6 -3
  318. package/test-env/components/list_group/list_group.js +2 -2
  319. package/test-env/components/list_group/list_group_item.js +2 -2
  320. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  321. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  322. package/test-env/components/loading/loading_logo.js +1 -1
  323. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  324. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  325. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  326. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  327. package/test-env/components/page/page_header/page_header_content.js +2 -2
  328. package/test-env/components/pagination/pagination_button.js +1 -1
  329. package/test-env/components/search_bar/search_bar.js +1 -1
  330. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  331. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  332. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  333. package/test-env/components/spacer/spacer.js +1 -1
  334. package/test-env/components/table/table_header_cell.js +1 -1
  335. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  336. package/test-env/components/toast/global_toast_list.js +1 -1
  337. package/test-env/components/toast/toast.js +1 -1
  338. package/test-env/components/tool_tip/icon_tip.js +1 -1
  339. package/test-env/components/tour/tour_step_indicator.js +8 -3
  340. package/test-env/global_styling/mixins/_button.js +29 -10
  341. package/test-env/global_styling/mixins/_container_query.js +112 -0
  342. package/test-env/global_styling/mixins/index.js +11 -0
  343. package/test-env/services/container_query/container_query_hook.js +65 -0
  344. package/test-env/services/container_query/index.js +16 -0
  345. package/test-env/services/container_query/match_container.js +231 -0
@@ -0,0 +1,242 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
6
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
7
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
8
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
9
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
10
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
11
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
12
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
13
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
14
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
18
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
19
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
20
+ function _wrapNativeSuper(t) { var r = "function" == typeof Map ? new Map() : void 0; return _wrapNativeSuper = function _wrapNativeSuper(t) { if (null === t || !_isNativeFunction(t)) return t; if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); if (void 0 !== r) { if (r.has(t)) return r.get(t); r.set(t, Wrapper); } function Wrapper() { return _construct(t, arguments, _getPrototypeOf(this).constructor); } return Wrapper.prototype = Object.create(t.prototype, { constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper, t); }, _wrapNativeSuper(t); }
21
+ function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
22
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
+ function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).indexOf("[native code]"); } catch (n) { return "function" == typeof t; } }
24
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
25
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
29
+ /*
30
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
31
+ * or more contributor license agreements. Licensed under the Elastic License
32
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
33
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
34
+ * Side Public License, v 1.
35
+ */
36
+
37
+ /**
38
+ * @license MIT License
39
+ *
40
+ * Copyright (c) 2025 Martin Winkler
41
+ *
42
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
43
+ * of this software and associated documentation files (the "Software"), to deal
44
+ * in the Software without restriction, including without limitation the rights
45
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46
+ * copies of the Software, and to permit persons to whom the Software is
47
+ * furnished to do so, subject to the following conditions:
48
+ *
49
+ * The above copyright notice and this permission notice shall be included in all
50
+ * copies or substantial portions of the Software.
51
+ *
52
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
58
+ * SOFTWARE.
59
+ *
60
+ * @see {@link https://github.com/teetotum/match-container/blob/main/matchContainer.js}
61
+ */
62
+
63
+ import { v1 as uuid } from 'uuid';
64
+
65
+ /**
66
+ * Listen for changes on a container query.
67
+ * Just like `window.matchMedia`.
68
+ *
69
+ * @example
70
+ * ```js
71
+ * const cql = matchContainer(element, '(width > 42rem)');
72
+ * cql.addEventListener('change', ({ matches }) {
73
+ * // ..
74
+ * })
75
+ * ```
76
+ *
77
+ * @param element
78
+ * @param containerQueryString e.g. (width > 42rem)
79
+ * @returns ContainerQueryList
80
+ */
81
+ export function matchContainer(element, containerQueryString) {
82
+ return new ContainerQueryList(element, containerQueryString);
83
+ }
84
+
85
+ /**
86
+ * `change` event dispatched by instances of {@link ContainerQueryList}
87
+ * whenever the value of `matches` changes
88
+ */
89
+ export var ContainerQueryListChangeEvent = /*#__PURE__*/function (_Event) {
90
+ function ContainerQueryListChangeEvent(matches, container) {
91
+ var _this;
92
+ _classCallCheck(this, ContainerQueryListChangeEvent);
93
+ _this = _callSuper(this, ContainerQueryListChangeEvent, ['change']);
94
+ /** Whether the container query matches */
95
+ _defineProperty(_this, "matches", void 0);
96
+ /** A string representation of the container query list e.g. "(width > 1000px)" */
97
+ _defineProperty(_this, "container", void 0);
98
+ _this.matches = matches;
99
+ _this.container = container;
100
+ return _this;
101
+ }
102
+ _inherits(ContainerQueryListChangeEvent, _Event);
103
+ return _createClass(ContainerQueryListChangeEvent);
104
+ }( /*#__PURE__*/_wrapNativeSuper(Event));
105
+
106
+ /**
107
+ * A hacky implementation of a possible native `ContainerQueryList`
108
+ * based on the teetotum/match-container polyfill:
109
+ * - based on a API proposal in W3C CSS WG {@link https://github.com/w3c/csswg-drafts/issues/6205})
110
+ * - mimicking MediaQueryList {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList}
111
+ *
112
+ * Not meant to be used directly, but rather call `matchContainer`.
113
+ *
114
+ * It works by listening on a `transitionrun` event on the element,
115
+ * that gets triggered by a container query changing a custom property.
116
+ * Setting `transition-behavior: allow-discrete` is what makes it possible
117
+ * to have a CSS `transition` for a custom property.
118
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/transition-behavior}
119
+ */
120
+ var _matches = /*#__PURE__*/new WeakMap();
121
+ export var ContainerQueryList = /*#__PURE__*/function (_EventTarget) {
122
+ function ContainerQueryList(element, containerQueryString) {
123
+ var _this2;
124
+ _classCallCheck(this, ContainerQueryList);
125
+ _this2 = _callSuper(this, ContainerQueryList);
126
+ _defineProperty(_this2, "element", null);
127
+ _defineProperty(_this2, "styleSheet", null);
128
+ _defineProperty(_this2, "markerAttributeName", '');
129
+ _defineProperty(_this2, "sentinelPropertyName", '');
130
+ _defineProperty(_this2, "computedStyle", null);
131
+ _defineProperty(_this2, "transitionRunListener", null);
132
+ _classPrivateFieldInitSpec(_this2, _matches, false);
133
+ /**
134
+ * A string representation of the container query list e.g. "(width > 1000px)"
135
+ * (the name is weird but it is so for consistency with mediaQueryList.media)
136
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/media}
137
+ * */
138
+ _defineProperty(_this2, "container", void 0);
139
+ _this2.container = containerQueryString;
140
+ _this2.element = element;
141
+ // we call this only once to try to avoid any impact on performance
142
+ _this2.computedStyle = getComputedStyle(_this2.element);
143
+ var uniqueName = "container-query-observer-".concat(uuid());
144
+ _this2.markerAttributeName = "data-".concat(uniqueName);
145
+ _this2.sentinelPropertyName = "--".concat(uniqueName);
146
+
147
+ // order is important (as in life)
148
+ _this2.applyMarkerAttribute();
149
+ _this2.createStyleSheet();
150
+ _classPrivateFieldSet(_matches, _this2, _this2.computedStyle.getPropertyValue(_this2.sentinelPropertyName) === '--true');
151
+ _this2.setupTransitionListener();
152
+ return _this2;
153
+ }
154
+
155
+ /**
156
+ * The marker attribute is `data-container-query-observer-{UUID}`,
157
+ * it will be used as a selector in the container query,
158
+ * in the global CSS that's being added below.
159
+ */
160
+ _inherits(ContainerQueryList, _EventTarget);
161
+ return _createClass(ContainerQueryList, [{
162
+ key: "matches",
163
+ get: /** Whether the container query matches */
164
+ function get() {
165
+ return _classPrivateFieldGet(_matches, this);
166
+ }
167
+ }, {
168
+ key: "applyMarkerAttribute",
169
+ value: function applyMarkerAttribute() {
170
+ this.element.setAttribute(this.markerAttributeName, '');
171
+ }
172
+
173
+ /**
174
+ * Create a CSS custom property with values either `--true` or `--false`,
175
+ * and add container query targetting the element.
176
+ * Whenever the container query matches, the custom property will be `--true`.
177
+ * This styles are added globaly via `document.adoptedStyleSheets`.
178
+ */
179
+ }, {
180
+ key: "createStyleSheet",
181
+ value: function createStyleSheet() {
182
+ var css = "\n @property ".concat(this.sentinelPropertyName, " {\n syntax: '<custom-ident>';\n inherits: false;\n initial-value: --false;\n }\n @container ").concat(this.container, " {\n [").concat(this.markerAttributeName, "] {\n ").concat(this.sentinelPropertyName, ": --true;\n }\n }\n ");
183
+ var styleSheet = new CSSStyleSheet();
184
+ styleSheet.replaceSync(css);
185
+ document.adoptedStyleSheets = [].concat(_toConsumableArray(document.adoptedStyleSheets), [styleSheet]);
186
+ this.styleSheet = styleSheet;
187
+ }
188
+
189
+ /**
190
+ * This is the key to the hack:
191
+ * - a `transition` style is added for the custom property
192
+ * - the `transitionrun` event will fire whenever the custom property value changes
193
+ * because of the container query
194
+ * - we get the value from computed styles
195
+ * - the `matches` value is updated and
196
+ * - a ContainerQueryListChangeEvent event is dispatched
197
+ */
198
+ }, {
199
+ key: "setupTransitionListener",
200
+ value: function setupTransitionListener() {
201
+ var _this3 = this;
202
+ var element = this.element,
203
+ computedStyle = this.computedStyle,
204
+ sentinelPropertyName = this.sentinelPropertyName;
205
+ if (!element) return;
206
+ var currentValue = computedStyle.getPropertyValue(sentinelPropertyName);
207
+ element.style.setProperty('transition', "".concat(sentinelPropertyName, " 0.001ms step-start"));
208
+ element.style.setProperty('transition-behavior', 'allow-discrete');
209
+ this.transitionRunListener = function (event) {
210
+ if (event.target !== element) return;
211
+ var nextValue = computedStyle.getPropertyValue(sentinelPropertyName);
212
+ if (nextValue === currentValue) return;
213
+ currentValue = nextValue;
214
+ _classPrivateFieldSet(_matches, _this3, nextValue === '--true');
215
+ _this3.dispatchEvent(new ContainerQueryListChangeEvent(_classPrivateFieldGet(_matches, _this3), _this3.container));
216
+ };
217
+ element.addEventListener('transitionrun', this.transitionRunListener);
218
+ }
219
+ }, {
220
+ key: "dispose",
221
+ value: function dispose() {
222
+ var _this4 = this;
223
+ // remove the stylesheet from adoptedStyleSheets
224
+ if (this.styleSheet) {
225
+ document.adoptedStyleSheets = document.adoptedStyleSheets.filter(function (sheet) {
226
+ return sheet !== _this4.styleSheet;
227
+ });
228
+ }
229
+ if (!this.element) return;
230
+ if (this.transitionRunListener) {
231
+ this.element.removeEventListener('transitionrun', this.transitionRunListener);
232
+ }
233
+ this.element.removeAttribute(this.markerAttributeName);
234
+ this.element.style.removeProperty('transition');
235
+ this.element.style.removeProperty('transition-behavior');
236
+ this.element = null;
237
+ this.styleSheet = null;
238
+ this.computedStyle = null;
239
+ this.transitionRunListener = null;
240
+ }
241
+ }]);
242
+ }( /*#__PURE__*/_wrapNativeSuper(EventTarget));